summaryrefslogtreecommitdiff
path: root/elf/dl-debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'elf/dl-debug.c')
-rw-r--r--elf/dl-debug.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/elf/dl-debug.c b/elf/dl-debug.c
index 2feb0c5b96..2e7b9e84b9 100644
--- a/elf/dl-debug.c
+++ b/elf/dl-debug.c
@@ -39,7 +39,9 @@ _dl_debug_initialize (ElfW(Addr) ldbase)
/* Tell the debugger where to find the map of loaded objects. */
_r_debug.r_version = 1 /* R_DEBUG_VERSION XXX */;
_r_debug.r_ldbase = ldbase;
- _r_debug.r_map = GL(dl_loaded);
+ // XXX This is problematic. It means we cannot tell the debugger
+ // XXX about namespaces other than the main one.
+ _r_debug.r_map = GL(dl_ns)[LM_ID_BASE]._ns_loaded;
_r_debug.r_brk = (ElfW(Addr)) &_dl_debug_state;
}