public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* qSymbol
@ 2003-06-16  2:46 saleru raja
  2003-06-16  3:23 ` qSymbol Daniel Jacobowitz
  0 siblings, 1 reply; 6+ messages in thread
From: saleru raja @ 2003-06-16  2:46 UTC (permalink / raw)
  To: gdb

Hello,

what is the functionality of "qSymbol" in Remote Serial Protocol used in GDB and GDB Server communication.

Your reply will be greately appriciated. Thanks in advance.

Regards
Raja Saleru

-- 
_______________________________________________
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: qSymbol
  2003-06-16  2:46 qSymbol saleru raja
@ 2003-06-16  3:23 ` Daniel Jacobowitz
  0 siblings, 0 replies; 6+ messages in thread
From: Daniel Jacobowitz @ 2003-06-16  3:23 UTC (permalink / raw)
  To: saleru raja; +Cc: gdb

On Sun, Jun 15, 2003 at 09:46:13PM -0500, saleru raja wrote:
> Hello,
> 
> what is the functionality of "qSymbol" in Remote Serial Protocol used in GDB and GDB Server communication.
> 
> Your reply will be greately appriciated. Thanks in advance.

The server uses it when it needs the address of a symbol.  This is in
the GDB manual, in the Remote Serial Protocol appendix.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: qSymbol
  2003-06-17  2:08   ` qSymbol Raja Saleru
@ 2003-06-17  2:18     ` Daniel Jacobowitz
  0 siblings, 0 replies; 6+ messages in thread
From: Daniel Jacobowitz @ 2003-06-17  2:18 UTC (permalink / raw)
  To: Raja Saleru; +Cc: saleru raja, gdb

On Mon, Jun 17, 2002 at 11:08:21AM +0900, Raja Saleru wrote:

For the fourth time, please fix the year on your computer if you wish
to continue this conversation.  Having your mail sort to the stop is
very annoying.

> Hello Sir, the following is the function definition,
> 
> static void
> linux_look_up_symbols (void)
> {
> #ifdef USE_THREAD_DB
>   if (using_threads)
>     return;
> 
>   using_threads = thread_db_init ();
> #endif
> }
> 
> assume that I am interested in only process debugging, but not thread
> debugging,
> so I am not defining USE_THREAD_DB macro.
> 
> I am getting confuse... why target sending symbols to host (gdb ) ?
> 
> If I compile the application at host side as re-locatable and relink it at
> target side, the sybols are there at host side only.
> the corresponding values at target side. This is what I thought.. what will
> be solution in this case ?
> can you carrify me more in details ?

qSymbol is a mechanism _for the target_ to ask the _host_ about the
address of a symbol.  You appear to have the opposite problem, so you
will need something different.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer

^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: qSymbol
  2003-06-16 12:50 ` qSymbol Daniel Jacobowitz
@ 2003-06-17  2:08   ` Raja Saleru
  2003-06-17  2:18     ` qSymbol Daniel Jacobowitz
  0 siblings, 1 reply; 6+ messages in thread
From: Raja Saleru @ 2003-06-17  2:08 UTC (permalink / raw)
  To: Daniel Jacobowitz, saleru raja; +Cc: gdb


Hello Sir, the following is the function definition,

static void
linux_look_up_symbols (void)
{
#ifdef USE_THREAD_DB
  if (using_threads)
    return;

  using_threads = thread_db_init ();
#endif
}

assume that I am interested in only process debugging, but not thread
debugging,
so I am not defining USE_THREAD_DB macro.

I am getting confuse... why target sending symbols to host (gdb ) ?

If I compile the application at host side as re-locatable and relink it at
target side, the sybols are there at host side only.
the corresponding values at target side. This is what I thought.. what will
be solution in this case ?
can you carrify me more in details ?

Regards
Raja S


-----Original Message-----
From: gdb-owner@sources.redhat.com [mailto:gdb-owner@sources.redhat.com]On
Behalf Of Daniel Jacobowitz
Sent: Monday, June 16, 2003 9:50 PM
To: saleru raja
Cc: gdb@sources.redhat.com
Subject: Re: qSymbol


On Sun, Jun 15, 2003 at 11:16:24PM -0500, saleru raja wrote:
> Yes, I got it in manual. Thanks for the same.
> In GDB Server, I think currently return only "OK".
>
> Does any implementation of qSymbol in GDB Server to send the values of
sybols to host side gdb ?
> If not, how we can implement the same ? any example or algorithmic way of
representing what needs to be implement ?

Other way around, friend.  Values of symbols are sent _to_ gdbserver.

See linux_look_up_symbols.

--
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: qSymbol
  2003-06-16  4:17 qSymbol saleru raja
@ 2003-06-16 12:50 ` Daniel Jacobowitz
  2003-06-17  2:08   ` qSymbol Raja Saleru
  0 siblings, 1 reply; 6+ messages in thread
From: Daniel Jacobowitz @ 2003-06-16 12:50 UTC (permalink / raw)
  To: saleru raja; +Cc: gdb

On Sun, Jun 15, 2003 at 11:16:24PM -0500, saleru raja wrote:
> Yes, I got it in manual. Thanks for the same.
> In GDB Server, I think currently return only "OK". 
> 
> Does any implementation of qSymbol in GDB Server to send the values of sybols to host side gdb ?
> If not, how we can implement the same ? any example or algorithmic way of representing what needs to be implement ?

Other way around, friend.  Values of symbols are sent _to_ gdbserver.

See linux_look_up_symbols.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: qSymbol
@ 2003-06-16  4:17 saleru raja
  2003-06-16 12:50 ` qSymbol Daniel Jacobowitz
  0 siblings, 1 reply; 6+ messages in thread
From: saleru raja @ 2003-06-16  4:17 UTC (permalink / raw)
  To: drow; +Cc: gdb

Yes, I got it in manual. Thanks for the same.
In GDB Server, I think currently return only "OK". 

Does any implementation of qSymbol in GDB Server to send the values of sybols to host side gdb ?
If not, how we can implement the same ? any example or algorithmic way of representing what needs to be implement ?

Regard
Raja S

----- Original Message -----
From: Daniel Jacobowitz <drow@mvista.com>
Date: Sun, 15 Jun 2003 23:22:44 -0400
To: saleru raja <saleru_raja@email.com>
Subject: Re: qSymbol

> On Sun, Jun 15, 2003 at 09:46:13PM -0500, saleru raja wrote:
> > Hello,
> > 
> > what is the functionality of "qSymbol" in Remote Serial Protocol used in GDB and GDB Server communication.
> > 
> > Your reply will be greately appriciated. Thanks in advance.
> 
> The server uses it when it needs the address of a symbol.  This is in
> the GDB manual, in the Remote Serial Protocol appendix.
> 
> -- 
> Daniel Jacobowitz
> MontaVista Software                         Debian GNU/Linux Developer

-- 
_______________________________________________
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2003-06-17  2:18 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-06-16  2:46 qSymbol saleru raja
2003-06-16  3:23 ` qSymbol Daniel Jacobowitz
2003-06-16  4:17 qSymbol saleru raja
2003-06-16 12:50 ` qSymbol Daniel Jacobowitz
2003-06-17  2:08   ` qSymbol Raja Saleru
2003-06-17  2:18     ` qSymbol Daniel Jacobowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).