Call remote_check_symbols even if only symbol-file (not file) has been given
authorChristian Eggers <ceggers@gmx.de>
Tue, 4 Feb 2014 19:42:12 +0000 (19:42 +0000)
committerPedro Alves <palves@redhat.com>
Tue, 4 Feb 2014 19:42:12 +0000 (19:42 +0000)
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.

gdb/ChangeLog
gdb/remote.c

index 9f4636f90a87ed01f1e586a9b037eb5257bf2ca6..8cd059ffd27398a6b554acea9c2438ac229e71b0 100644 (file)
@@ -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.
index 7297df01e7565261d4a879800114e3878fee731a..4227ed5b307f587da8b8e155082c9440c32b81e1 100644 (file)
@@ -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 ();
     }
 
This page took 0.029362 seconds and 4 git commands to generate.