Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* gdbserver and "shared library event"
@ 2007-01-17  8:21 Markus Deuling
  2007-01-17  9:08 ` Ramana Radhakrishnan
  2007-01-17 21:53 ` Mark Kettenis
  0 siblings, 2 replies; 3+ messages in thread
From: Markus Deuling @ 2007-01-17  8:21 UTC (permalink / raw)
  To: GDB Discuss

Hi,

I try to figure out how gdbserver tells gdb that a shared library event occured eg after dlopen().
I don't find it neither in "GDB Remote Serial Protocol" nor in gdbserver source.

Are shared libraries only handled in GDB ? Why is there nothing with solib in gdbserver ?

Thanks in advance.


Regards,
Markus

-- 
Markus Deuling
GNU Toolchain for Linux on Cell BE
deuling@de.ibm.com 


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

* Re: gdbserver and "shared library event"
  2007-01-17  8:21 gdbserver and "shared library event" Markus Deuling
@ 2007-01-17  9:08 ` Ramana Radhakrishnan
  2007-01-17 21:53 ` Mark Kettenis
  1 sibling, 0 replies; 3+ messages in thread
From: Ramana Radhakrishnan @ 2007-01-17  9:08 UTC (permalink / raw)
  To: Markus Deuling; +Cc: GDB Discuss

Hi ,

On Wed, 2007-01-17 at 09:19 +0100, Markus Deuling wrote:
> Hi,
> 
> I try to figure out how gdbserver tells gdb that a shared library event occured eg after dlopen().
> I don't find it neither in "GDB Remote Serial Protocol" nor in gdbserver source.
> 
> Are shared libraries only handled in GDB ? Why is there nothing with solib in gdbserver ?

Shared libraries are handled only in GDB. Internal breakpoints on
_dl_debug_state would take care of this - Look at solib_breaknames in
solib-svr4.c . 

cheers
Ramana

> 
> Thanks in advance.
> 
> 
> Regards,
> Markus
> 
-- 
Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
Codito Technologies Pvt. Ltd.


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

* Re: gdbserver and "shared library event"
  2007-01-17  8:21 gdbserver and "shared library event" Markus Deuling
  2007-01-17  9:08 ` Ramana Radhakrishnan
@ 2007-01-17 21:53 ` Mark Kettenis
  1 sibling, 0 replies; 3+ messages in thread
From: Mark Kettenis @ 2007-01-17 21:53 UTC (permalink / raw)
  To: deuling; +Cc: gdb

> Date: Wed, 17 Jan 2007 09:19:53 +0100
> From: Markus Deuling <deuling@de.ibm.com>
> 
> Hi,
> 
> I try to figure out how gdbserver tells gdb that a shared library
> event occured eg after dlopen().
> I don't find it neither in "GDB Remote Serial Protocol" nor in
> gdbserver source.
> 
> Are shared libraries only handled in GDB ? Why is there nothing with
> solib in gdbserver ?
> 
> Thanks in advance.

Shared library support is a high-level feature that is implemented
using low-level features like target memory read and breakpoints.

Mark


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

end of thread, other threads:[~2007-01-17 21:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-17  8:21 gdbserver and "shared library event" Markus Deuling
2007-01-17  9:08 ` Ramana Radhakrishnan
2007-01-17 21:53 ` Mark Kettenis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox