]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
* elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
authorJakub Jelinek <jakub@redhat.com>
Fri, 12 Jan 2007 14:54:57 +0000 (14:54 +0000)
committerJakub Jelinek <jakub@redhat.com>
Fri, 12 Jan 2007 14:54:57 +0000 (14:54 +0000)
rather than r->r_brk.

ChangeLog
elf/dl-debug.c

index 6d50310173d6bc4adeb1433c646f9d3528687673..bb4739b55965bca3e6addaad26a9765492d7b296 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
index d00fe87fbbfb006c9f573c0a1d963fdb04092872..2538364aec8f0f3d19684744708b19f6ba2350e1 100644 (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 */;