aboutsummaryrefslogtreecommitdiff
path: root/gdb/symfile.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2006-06-13 20:54:42 +0000
committerDaniel Jacobowitz <drow@false.org>2006-06-13 20:54:42 +0000
commit6490cafe41c702647f69e1cf6f10f1feb55f0650 (patch)
treec2082d7a7e1adc454eb70c979881e77822251642 /gdb/symfile.c
parent22e47e37c4538f62b185716cd9deea856b4a27ee (diff)
downloadgdb-6490cafe41c702647f69e1cf6f10f1feb55f0650.zip
gdb-6490cafe41c702647f69e1cf6f10f1feb55f0650.tar.gz
gdb-6490cafe41c702647f69e1cf6f10f1feb55f0650.tar.bz2
* symfile.c (load_command): Check for a changed executable before
"load".
Diffstat (limited to 'gdb/symfile.c')
-rw-r--r--gdb/symfile.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/symfile.c b/gdb/symfile.c
index 59cd3dc..7dbbb7b 100644
--- a/gdb/symfile.c
+++ b/gdb/symfile.c
@@ -1500,6 +1500,11 @@ load_command (char *arg, int from_tty)
}
}
+ /* The user might be reloading because the binary has changed. Take
+ this opportunity to check. */
+ reopen_exec_file ();
+ reread_symbols ();
+
target_load (arg, from_tty);
/* After re-loading the executable, we don't really know which