diff options
Diffstat (limited to 'gdb/solib-svr4.c')
-rw-r--r-- | gdb/solib-svr4.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/solib-svr4.c b/gdb/solib-svr4.c index bcb94e7..f668f83 100644 --- a/gdb/solib-svr4.c +++ b/gdb/solib-svr4.c @@ -2188,6 +2188,11 @@ svr4_solib_create_inferior_hook (int from_tty) /* Relocate the main executable if necessary. */ svr4_relocate_main_executable (); + /* No point setting a breakpoint in the dynamic linker if we can't + hit it (e.g., a core file, or a trace file). */ + if (!target_has_execution) + return; + if (!svr4_have_link_map_offsets ()) return; |