diff options
Diffstat (limited to 'gdb/infcmd.c')
-rw-r--r-- | gdb/infcmd.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/infcmd.c b/gdb/infcmd.c index 6e74f4e..1ad12bf 100644 --- a/gdb/infcmd.c +++ b/gdb/infcmd.c @@ -1843,6 +1843,11 @@ attach_command (char *args, int from_tty) symbol_file_add_main (full_exec_path, from_tty); } } + else + { + reopen_exec_file (); + reread_symbols (); + } #ifdef SOLIB_ADD /* Add shared library symbols from the newly attached process, if any. */ |