]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/solib-svr4.c
Handle an edge case for minisym TLS variable lookups.
[thirdparty/binutils-gdb.git] / gdb / solib-svr4.c
index 84693c17666b9b76fd3a4250fb29f0bca8f7b8a7..14a471b6dc0f9b675297023f65f9e9ae57d155ed 100644 (file)
@@ -1551,6 +1551,11 @@ svr4_fetch_objfile_link_map (struct objfile *objfile)
   if (objfile == symfile_objfile)
     return info->main_lm_addr;
 
+  /* If OBJFILE is a separate debug object file, look for the
+     original object file.  */
+  if (objfile->separate_debug_objfile_backlink != NULL)
+    objfile = objfile->separate_debug_objfile_backlink;
+
   /* The other link map addresses may be found by examining the list
      of shared libraries.  */
   for (so = master_so_list (); so; so = so->next)