From: Jakub Jelinek Date: Fri, 12 Jan 2007 14:54:57 +0000 (+0000) Subject: * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0 X-Git-Tag: cvs/fedora-glibc-2_5-20070712T1701~111 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f40372e632b5bef034a9cfc23ba7e6a85680fb79;p=thirdparty%2Fglibc.git * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0 rather than r->r_brk. --- diff --git a/ChangeLog b/ChangeLog index 6d50310173d..bb4739b5596 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-10-09 Jakub Jelinek + + * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0 + rather than r->r_brk. + 2006-10-06 Ulrich Drepper * nis/nis_table.c (nis_list): If __follow_path fails in the new diff --git a/elf/dl-debug.c b/elf/dl-debug.c index d00fe87fbbf..2538364aec8 100644 --- a/elf/dl-debug.c +++ b/elf/dl-debug.c @@ -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 */;