diff options
author | Bryan Cantrill <bryan@joyent.com> | 2013-03-25 16:08:28 +0000 |
---|---|---|
committer | Bryan Cantrill <bryan@joyent.com> | 2013-03-25 17:08:16 +0000 |
commit | 5ead6e8b9ba1f811e31c504ffde831c27acf7d8c (patch) | |
tree | f59f133d7218c518c33b16e3f2532c92db53437b /usr/src/cmd/ptools | |
parent | d08958852b74577c6c21fa6bf2fb5dbc92b5e2a7 (diff) | |
download | illumos-joyent-5ead6e8b9ba1f811e31c504ffde831c27acf7d8c.tar.gz |
OS-2062 mdb/pmap should show unresolved map names on core dumps
Reviewed by: Robert Mustacchi <rm@joyent.com>
Diffstat (limited to 'usr/src/cmd/ptools')
-rw-r--r-- | usr/src/cmd/ptools/pmap/pmap_common.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr/src/cmd/ptools/pmap/pmap_common.c b/usr/src/cmd/ptools/pmap/pmap_common.c index 7594fd30e3..fff55ffdbc 100644 --- a/usr/src/cmd/ptools/pmap/pmap_common.c +++ b/usr/src/cmd/ptools/pmap/pmap_common.c @@ -23,6 +23,9 @@ * Copyright 2008 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ +/* + * Copyright (c) 2013, Joyent, Inc. All rights reserved. + */ #include <fcntl.h> #include <libproc.h> @@ -68,7 +71,7 @@ make_name(struct ps_prochandle *Pr, int lflag, uintptr_t addr, char path[PATH_MAX]; int len; - if (lflag) { + if (lflag || Pstate(Pr) == PS_DEAD) { if (Pobjname(Pr, addr, buf, bufsz) != NULL) return (buf); } else { |