svn commit: r270506 - head/lib/libproc
Mark Johnston
markj at FreeBSD.org
Sun Aug 24 17:02:27 UTC 2014
Author: markj
Date: Sun Aug 24 17:02:27 2014
New Revision: 270506
URL: http://svnweb.freebsd.org/changeset/base/270506
Log:
Fix a bug in r265255: only return NULL if the requested map wasn't found.
Submitted by: Luke Chang-Hsien Tsai <luke.tw at gmail.com>
MFC after: 1 week
Modified:
head/lib/libproc/proc_sym.c
Modified: head/lib/libproc/proc_sym.c
==============================================================================
--- head/lib/libproc/proc_sym.c Sun Aug 24 16:40:31 2014 (r270505)
+++ head/lib/libproc/proc_sym.c Sun Aug 24 17:02:27 2014 (r270506)
@@ -121,10 +121,12 @@ proc_obj2map(struct proc_handle *p, cons
break;
}
}
- if (rdl == NULL && strcmp(objname, "a.out") == 0 && p->rdexec != NULL)
- rdl = p->rdexec;
- else
- return (NULL);
+ if (rdl == NULL) {
+ if (strcmp(objname, "a.out") == 0 && p->rdexec != NULL)
+ rdl = p->rdexec;
+ else
+ return (NULL);
+ }
if ((map = malloc(sizeof(*map))) == NULL)
return (NULL);
More information about the svn-src-head
mailing list