This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: adding new commandline interface to gdb ?
- From: teawater <teawater at gmail dot com>
- To: raja dot saleru at iap-online dot com
- Cc: gdb at sourceware dot org
- Date: Wed, 7 Jan 2009 17:09:03 +0800
- Subject: Re: adding new commandline interface to gdb ?
- References: <33036.210.143.35.19.1225860010.squirrel@www.iap-online.com> <59596.210.143.35.18.1226650013.squirrel@www.iap-online.com> <28893.210.143.35.18.1227662837.squirrel@www.iap-online.com> <17669.210.143.35.18.1231238129.squirrel@www.iap-online.com>
Read source in
src/gdb/remote.c
void
_initialize_remote (void)
On Tue, Jan 6, 2009 at 18:35, <raja.saleru@iap-online.com> wrote:
>
> Hi,
>
> We are connecting gdb running on cygwin host into gdbserver running on
> target using the command "target remote host:port". The gdbserver contains
> the name of the target, for example
>
> TargetName = "xxx".
>
> We would like to read the name of the target from gdb, using command-line
> interface.
> Lets say we would like to add the new command
>
> (gdb) target info target-name
>
> This should display the target name "xxx".
>
> Initially before thinking on RSP protocol, we need to register this command.
>
> Please give us some guidelines on how to register or how to proceed to add
> new commandline interface to get the target name.
>
> Thanks in advance
> Raja Saleru
>