* elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0

rather than r->r_brk.
This commit is contained in:
Jakub Jelinek 2007-01-12 14:54:57 +00:00
parent 00e3dec802
commit f40372e632
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2006-10-09 Jakub Jelinek <jakub@redhat.com>
* elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
rather than r->r_brk.
2006-10-06 Ulrich Drepper <drepper@redhat.com>
* nis/nis_table.c (nis_list): If __follow_path fails in the new

View File

@ -54,7 +54,7 @@ _dl_debug_initialize (ElfW(Addr) ldbase, Lmid_t ns)
else
r = &GL(dl_ns)[ns]._ns_debug;
if (r->r_brk == 0 || ldbase != 0)
if (r->r_map == NULL || ldbase != 0)
{
/* Tell the debugger where to find the map of loaded objects. */
r->r_version = 1 /* R_DEBUG_VERSION XXX */;