diff options
author | rh87107 <none@none> | 2008-07-22 02:02:19 -0700 |
---|---|---|
committer | rh87107 <none@none> | 2008-07-22 02:02:19 -0700 |
commit | 4bfb3cb6ef3fb38c53dd286090e19e92ab8a45fb (patch) | |
tree | 200e961f6a4f1c2497abd720c47e36de90cf5281 /usr/src/lib/libproc/common/Psymtab.c | |
parent | 6de4f663f1451acc7a8968bb7891bc18eaba0db5 (diff) | |
download | illumos-joyent-4bfb3cb6ef3fb38c53dd286090e19e92ab8a45fb.tar.gz |
6707832 Pupdate_syms should get file_info_t pointer after calling Pupdate_maps
Diffstat (limited to 'usr/src/lib/libproc/common/Psymtab.c')
-rw-r--r-- | usr/src/lib/libproc/common/Psymtab.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr/src/lib/libproc/common/Psymtab.c b/usr/src/lib/libproc/common/Psymtab.c index 0b98622759..9b14931a18 100644 --- a/usr/src/lib/libproc/common/Psymtab.c +++ b/usr/src/lib/libproc/common/Psymtab.c @@ -20,7 +20,7 @@ */ /* - * Copyright 2007 Sun Microsystems, Inc. All rights reserved. + * Copyright 2008 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ @@ -564,12 +564,13 @@ Pupdate_maps(struct ps_prochandle *P) void Pupdate_syms(struct ps_prochandle *P) { - file_info_t *fptr = list_next(&P->file_head); + file_info_t *fptr; int i; Pupdate_maps(P); - for (i = 0; i < P->num_files; i++, fptr = list_next(fptr)) { + for (i = 0, fptr = list_next(&P->file_head); i < P->num_files; + i++, fptr = list_next(fptr)) { Pbuild_file_symtab(P, fptr); (void) Pbuild_file_ctf(P, fptr); } |