1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-06-26 11:21:44 +02:00

(get_list_addr): Clear ui->ei.image/ui->ei.size after unmapping the

image.

(Logical change 1.286)
This commit is contained in:
hp.com!davidm 2005-03-31 21:18:27 +00:00
parent affe34c053
commit ea7155ebfd

View file

@ -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;
}