From: Daniel Jacobowitz Date: Tue, 13 Jun 2006 20:54:42 +0000 (+0000) Subject: * symfile.c (load_command): Check for a changed executable before X-Git-Tag: newlib-csl-sourcerygxx-3_4_4-25~294 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6490cafe41c702647f69e1cf6f10f1feb55f0650;p=thirdparty%2Fbinutils-gdb.git * symfile.c (load_command): Check for a changed executable before "load". --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 53d6a23a365..9a486f47724 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2006-06-13 Daniel Jacobowitz + + * symfile.c (load_command): Check for a changed executable before + "load". + 2006-06-13 Fred Fish * mips-tdep.c (mips_find_long_section): New function. diff --git a/gdb/symfile.c b/gdb/symfile.c index 59cd3dc7595..7dbbb7b53eb 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