unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Guard against prev_cache_entry == NULL when moving a cache entry to the head of...
2005-12-15 Andrew Haley <aph@redhat.com> * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Guard against prev_cache_entry == NULL when moving a cache entry to the head of the list. From-SVN: r108582
This commit is contained in:
parent
6c9ac67a41
commit
a8acd1c480
2 changed files with 10 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
2005-12-15 Andrew Haley <aph@redhat.com>
|
||||
|
||||
* unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Guard
|
||||
against prev_cache_entry == NULL when moving a cache entry to the
|
||||
head of the list.
|
||||
|
||||
2005-12-15 Nathan Sidwell <nathan@codesourcery.com>
|
||||
|
||||
* config/mt/mt.c (mt_override_options): Require lower case
|
||||
|
|
|
@ -257,7 +257,10 @@ _Unwind_IteratePhdrCallback (struct dl_phdr_info *info, size_t size, void *ptr)
|
|||
|
||||
if (size >= sizeof (struct ext_dl_phdr_info))
|
||||
{
|
||||
if (last_cache_entry != NULL)
|
||||
/* Move the cache entry we're about to overwrite to the head of
|
||||
the list. If either last_cache_entry or prev_cache_entry are
|
||||
NULL, that cache entry is already at the head. */
|
||||
if (last_cache_entry != NULL && prev_cache_entry != NULL)
|
||||
{
|
||||
prev_cache_entry->link = last_cache_entry->link;
|
||||
last_cache_entry->link = frame_hdr_cache_head;
|
||||
|
|
Loading…
Add table
Reference in a new issue