* gdbserver Linux_low.c
@ 2003-06-09 9:55 Raja Saleru
2003-06-09 13:21 ` Daniel Jacobowitz
0 siblings, 1 reply; 3+ messages in thread
From: Raja Saleru @ 2003-06-09 9:55 UTC (permalink / raw)
To: Gdb Redhat
Hi
In gdbserver source file Linux_low.c look at the following data structure
static struct target_ops linux_target_ops = {
linux_create_inferior,
linux_attach,
linux_kill,
linux_thread_alive,
linux_resume,
linux_wait,
linux_fetch_registers,
linux_store_registers,
linux_read_memory,
linux_write_memory,
linux_look_up_symbols,
};
the last member linux_look_up_symbols, what this function does ?
This is assigned to the following function
linux_look_up_symbols (void)
{
#ifdef USE_THREAD_DB
if (using_threads)
return;
using_threads = thread_db_init ();
#endif
}
Actually where it does any symbol related functionality ?
can anybody clarrify these questions ? Thanks in advance
Regards
Raja Saleru
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: gdbserver Linux_low.c
2003-06-09 9:55 gdbserver Linux_low.c Raja Saleru
@ 2003-06-09 13:21 ` Daniel Jacobowitz
[not found] ` <3D040614.000001.01632@ADMIN.access.co.jp>
0 siblings, 1 reply; 3+ messages in thread
From: Daniel Jacobowitz @ 2003-06-09 13:21 UTC (permalink / raw)
To: Raja Saleru; +Cc: Gdb Redhat
On Mon, Jun 09, 2003 at 06:55:14PM +0900, Raja Saleru wrote:
>
> Hi
>
> In gdbserver source file Linux_low.c look at the following data structure
>
> static struct target_ops linux_target_ops = {
> linux_create_inferior,
> linux_attach,
> linux_kill,
> linux_thread_alive,
> linux_resume,
> linux_wait,
> linux_fetch_registers,
> linux_store_registers,
> linux_read_memory,
> linux_write_memory,
> linux_look_up_symbols,
> };
>
> the last member linux_look_up_symbols, what this function does ?
>
> This is assigned to the following function
>
> linux_look_up_symbols (void)
> {
> #ifdef USE_THREAD_DB
> if (using_threads)
> return;
>
> using_threads = thread_db_init ();
> #endif
> }
>
> Actually where it does any symbol related functionality ?
>
> can anybody clarrify these questions ? Thanks in advance
If you look at the linuxthreads_db/ directory in glibc source, you'll
see the trick - thread_db_init calls back into the application. Take a
look at gdbserver/proc-service.c, function ps_pglobal_lookup.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: gdbserver Linux_low.c
[not found] ` <3D040614.000001.01632@ADMIN.access.co.jp>
@ 2003-06-10 4:39 ` Daniel Jacobowitz
0 siblings, 0 replies; 3+ messages in thread
From: Daniel Jacobowitz @ 2003-06-10 4:39 UTC (permalink / raw)
To: Raja Saleru; +Cc: Gdb Redhat
You've started sending mail from 2002 again. Please fix that.
On Mon, Jun 10, 2002 at 10:51:19AM +0900, Raja Saleru wrote:
>
> Thank u very much, I will look at in depth.
>
> If we disable to thread support, then in gdb server side does it also does
> the symbolic adress finding ? I think not. Im I right ?
I don't know what you mean.
> To get all the posted mailings to my inbox what can I have to do ? can u
> tell me please ?
See http://sources.redhat.com/gdb/ for information on how to subscribe.
>
> Regards
> Raja S
>
>
>
>
>
> -------Original Message-------
>
> From: Daniel Jacobowitz
> Date: 2003?N06??09?? 22:21:04
> To: Raja Saleru
> Cc: Gdb Redhat
> Subject: Re: gdbserver Linux_low.c
>
> On Mon, Jun 09, 2003 at 06:55:14PM +0900, Raja Saleru wrote:
> >
> > Hi
> >
> > In gdbserver source file Linux_low.c look at the following data structure
> >
> > static struct target_ops linux_target_ops = {
> > linux_create_inferior,
> > linux_attach,
> > linux_kill,
> > linux_thread_alive,
> > linux_resume,
> > linux_wait,
> > linux_fetch_registers,
> > linux_store_registers,
> > linux_read_memory,
> > linux_write_memory,
> > linux_look_up_symbols,
> > };
> >
> > the last member linux_look_up_symbols, what this function does ?
> >
> > This is assigned to the following function
> >
> > linux_look_up_symbols (void)
> > {
> > #ifdef USE_THREAD_DB
> > if (using_threads)
> > return;
> >
> > using_threads = thread_db_init ();
> > #endif
> > }
> >
> > Actually where it does any symbol related functionality ?
> >
> > can anybody clarrify these questions ? Thanks in advance
>
> If you look at the linuxthreads_db/ directory in glibc source, you'll
> see the trick - thread_db_init calls back into the application. Take a
> look at gdbserver/proc-service.c, function ps_pglobal_lookup.
>
> --
> Daniel Jacobowitz
> MontaVista Software Debian GNU/Linux Developer
>
> .
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-06-10 4:39 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-06-09 9:55 gdbserver Linux_low.c Raja Saleru
2003-06-09 13:21 ` Daniel Jacobowitz
[not found] ` <3D040614.000001.01632@ADMIN.access.co.jp>
2003-06-10 4:39 ` Daniel Jacobowitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox