* symfile.c (separate_debug_file_exists): Update.
[deliverable/binutils-gdb.git] / gdb / solib-svr4.c
index a639f4dabcbe547312e8ebb1ea7b2520a57e9a3a..307e48392fe17ef3ca0d6dcf45df1b500ed99dbf 100644 (file)
@@ -1260,6 +1260,14 @@ svr4_current_sos (void)
   int ignore_first;
   struct svr4_library_list library_list;
 
+  /* Fall back to manual examination of the target if the packet is not
+     supported or gdbserver failed to find DT_DEBUG.  gdb.server/solib-list.exp
+     tests a case where gdbserver cannot find the shared libraries list while
+     GDB itself is able to find it via SYMFILE_OBJFILE.
+
+     Unfortunately statically linked inferiors will also fall back through this
+     suboptimal code path.  */
+
   if (svr4_current_sos_via_xfer_libraries (&library_list))
     {
       if (library_list.main_lm)
@@ -1699,7 +1707,7 @@ enable_break (struct svr4_info *info, int from_tty)
        }
     }
 
-  if (!current_inferior ()->attach_flag)
+  if (interp_name != NULL && !current_inferior ()->attach_flag)
     {
       for (bkpt_namep = bkpt_names; *bkpt_namep != NULL; bkpt_namep++)
        {
This page took 0.025289 seconds and 4 git commands to generate.