diff options
author | Christian Eggers <ceggers@gmx.de> | 2014-02-04 19:42:12 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2014-02-04 19:42:12 +0000 |
commit | f4ccffad182295fda170179ee5315e60f23d89b7 (patch) | |
tree | 7cb4053b82370e285a470de5f99a33b33d8b1be3 | |
parent | 2915c55b41d00f12ed6bc54b4160e3367065c1c8 (diff) | |
download | gdb-f4ccffad182295fda170179ee5315e60f23d89b7.zip gdb-f4ccffad182295fda170179ee5315e60f23d89b7.tar.gz gdb-f4ccffad182295fda170179ee5315e60f23d89b7.tar.bz2 |
Call remote_check_symbols even if only symbol-file (not file) has been given
The Eclipse "C/C++ GDB Hardware Debugging" plugin runs only the
"symbol-file" command. In this case, remote_check_symbols is not
called and no qSymbol:: packet is sent to the server (OpenOCD in my
case).
gdb/
2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
* remote.c (remote_start_remote): Call remote_check_symbols even
if only symbol-file (not file) has been given.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/remote.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 9f4636f..8cd059f 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change) + + * remote.c (remote_start_remote): Call remote_check_symbols even + if only symbol-file (not file) has been given. + 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com> * gdbarch.sh (skip_entrypoint): New callback. diff --git a/gdb/remote.c b/gdb/remote.c index 7297df0..4227ed5 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -3668,7 +3668,7 @@ remote_start_remote (int from_tty, struct target_ops *target, int extended_p) /* If we connected to a live target, do some additional setup. */ if (target_has_execution) { - if (exec_bfd) /* No use without an exec file. */ + if (symfile_objfile) /* No use without a symbol-file. */ remote_check_symbols (); } |