diff options
Diffstat (limited to 'gdb/solib-svr4.c')
-rw-r--r-- | gdb/solib-svr4.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/solib-svr4.c b/gdb/solib-svr4.c index a639f4dabcb..bd0141acef8 100644 --- a/gdb/solib-svr4.c +++ b/gdb/solib-svr4.c @@ -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) |