* symfile.c (load_command): Check for a changed executable before
authorDaniel Jacobowitz <drow@false.org>
Tue, 13 Jun 2006 20:54:42 +0000 (20:54 +0000)
committerDaniel Jacobowitz <drow@false.org>
Tue, 13 Jun 2006 20:54:42 +0000 (20:54 +0000)
"load".

gdb/ChangeLog
gdb/symfile.c

index 53d6a23a365108fcf399c6deef3a957a1b190138..9a486f4772478f1ad30de1bdbd09a7c5c20f1e88 100644 (file)
@@ -1,3 +1,8 @@
+2006-06-13  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * symfile.c (load_command): Check for a changed executable before
+       "load".
+
 2006-06-13  Fred Fish  <fnf@specifix.com>
 
        * mips-tdep.c (mips_find_long_section): New function.
index 59cd3dc75952e93490d2de5460d8f2303a600673..7dbbb7b53ebe876e1a68a51c7b541a982628a57c 100644 (file)
@@ -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
This page took 0.027511 seconds and 4 git commands to generate.