diff options
author | Pedro Alves <palves@redhat.com> | 2008-07-09 11:16:49 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2008-07-09 11:16:49 +0000 |
commit | 4487aabf2e89820ee5243a62c3d7ea9c0c5353f4 (patch) | |
tree | f7acd15d65c1a03c639fd21dda2e3d777ac44591 /gdb/symfile.c | |
parent | 9de2bdd7d43971a765aedb1773f9e175d98e98ba (diff) | |
download | gdb-4487aabf2e89820ee5243a62c3d7ea9c0c5353f4.zip gdb-4487aabf2e89820ee5243a62c3d7ea9c0c5353f4.tar.gz gdb-4487aabf2e89820ee5243a62c3d7ea9c0c5353f4.tar.bz2 |
gdb/
2008-07-09 Pedro Alves <pedro@codesourcery.com>
* symfile.c (load_command): Reopen the exec file and reread
symbols before anything else.
gdb/testsuite/
2008-07-09 Pedro Alves <pedro@codesourcery.com>
* gdb.base/chng-syms.exp: Don't expect "No symbol ...".
Diffstat (limited to 'gdb/symfile.c')
-rw-r--r-- | gdb/symfile.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/symfile.c b/gdb/symfile.c index d0596e6..d98f62b 100644 --- a/gdb/symfile.c +++ b/gdb/symfile.c @@ -1708,6 +1708,11 @@ find_sym_fns (bfd *abfd) static void 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 (); + if (arg == NULL) { char *parg; @@ -1745,11 +1750,6 @@ 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 |