aboutsummaryrefslogtreecommitdiff
path: root/elf/dl-debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'elf/dl-debug.c')
-rw-r--r--elf/dl-debug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/elf/dl-debug.c b/elf/dl-debug.c
index d00fe87fbb..2538364aec 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 */;