This is the mail archive of the
mailing list for the GDB project.
Remote Commands and GDB
- To: GDB <gdb at sourceware dot cygnus dot com>
- Subject: Remote Commands and GDB
- From: Stephen Smith <ischis2 at home dot com>
- Date: Fri, 16 Mar 2001 15:28:36 -0700
I may have found the answer to my shared library problem - the command "add-symbol-file FILENAME ADDRESS"
Now, if there is a way to have the stub/gdbserver on a target send a command to gdb on a host? If so, my server could
tell gdb what it needs to do with the above command.
For instance, let's say the the OS on the target loaded a process by the name of FOO, and FOO used a shared library
SO4FOO. Gdb and Gdbserver know how to debug FOO. Could gdbserver (since it can in my case read the headers and
therefore knows the libraries and their addresses) send a message back to gdb: "add-symbol-file SO4FOO 0x81000fee".