diff options
author | hp.com!davidm <hp.com!davidm> | 2005-03-31 21:18:27 +0000 |
---|---|---|
committer | hp.com!davidm <hp.com!davidm> | 2005-03-31 21:18:27 +0000 |
commit | ea7155ebfd6f792539674d71299f8fa018c11eff (patch) | |
tree | d01cf7f310b7cc7b6ec9c83a01a3a28e4fd82395 /src/ptrace | |
parent | affe34c053904d2b0959861f1fb03c7945771fbc (diff) | |
download | libunwind-ea7155ebfd6f792539674d71299f8fa018c11eff.tar.gz |
(get_list_addr): Clear ui->ei.image/ui->ei.size after unmapping the
image.
(Logical change 1.286)
Diffstat (limited to 'src/ptrace')
-rw-r--r-- | src/ptrace/_UPT_get_dyn_info_list_addr.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ptrace/_UPT_get_dyn_info_list_addr.c b/src/ptrace/_UPT_get_dyn_info_list_addr.c index 68a89ca8..a1b24455 100644 --- a/src/ptrace/_UPT_get_dyn_info_list_addr.c +++ b/src/ptrace/_UPT_get_dyn_info_list_addr.c @@ -1,5 +1,5 @@ /* libunwind - a platform-independent unwind library - Copyright (C) 2003-2004 Hewlett-Packard Co + Copyright (C) 2003-2005 Hewlett-Packard Co Contributed by David Mosberger-Tang <davidm@hpl.hp.com> This file is part of libunwind. @@ -50,6 +50,8 @@ get_list_addr (unw_addr_space_t as, unw_word_t *dil_addr, void *arg, if (ui->ei.image) { munmap (ui->ei.image, ui->ei.size); + ui->ei.image = NULL; + ui->ei.size = 0; /* invalidate the cache: */ ui->di_cache.start_ip = ui->di_cache.end_ip = 0; } |