* infcmd.c (attach_command): Reread symbols if we already have
authorDaniel Jacobowitz <drow@false.org>
Tue, 23 Mar 2004 16:45:01 +0000 (16:45 +0000)
committerDaniel Jacobowitz <drow@false.org>
Tue, 23 Mar 2004 16:45:01 +0000 (16:45 +0000)
an exec file.

gdb/ChangeLog
gdb/infcmd.c

index bd92078ea73fbc527e9fc189e36a7f71b1801cf9..7f519fd174717175499dc84f20fa01be4e9a8055 100644 (file)
@@ -1,3 +1,8 @@
+2004-03-23  Daniel Jacobowitz  <drow@mvista.com>
+
+       * infcmd.c (attach_command): Reread symbols if we already have
+       an exec file.
+
 2004-03-23  Andrew Cagney  <cagney@redhat.com>
 
        * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
index 6e74f4e5431472eca4176c4b15ce530ee50e7496..1ad12bf706e12181be2caa07db98e0a322635612 100644 (file)
@@ -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.  */