This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Remote Commands and GDB
- To: Stephen Smith <ischis2 at home dot com>
- Subject: Re: Remote Commands and GDB
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Fri, 06 Apr 2001 14:30:36 -0400
- Cc: GDB <gdb at sourceware dot cygnus dot com>
- References: <3AB29394.E2EF4029@home.com>
Stephen Smith wrote:
>
> 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".
No unfortunatly, the protocol is very much based around GDB telling the
stub to do stuff. The only window of oportunity might be with the reply
to continue/stop et.al. packets.
Andrew