aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2004-03-23 16:45:01 +0000
committerDaniel Jacobowitz <drow@false.org>2004-03-23 16:45:01 +0000
commit63ed89b41d67ffdda6fe57f014afa4e0dec8e169 (patch)
treeff0a9557ed11825af62ad84029f476cab53a39eb
parentf3b364276ef40d1aca0744b7e9cb80f9bca3e09d (diff)
downloadfsf-binutils-gdb-63ed89b41d67ffdda6fe57f014afa4e0dec8e169.zip
fsf-binutils-gdb-63ed89b41d67ffdda6fe57f014afa4e0dec8e169.tar.gz
fsf-binutils-gdb-63ed89b41d67ffdda6fe57f014afa4e0dec8e169.tar.bz2
* infcmd.c (attach_command): Reread symbols if we already have
an exec file.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/infcmd.c5
2 files changed, 10 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index bd92078..7f519fd 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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.
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. */