Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* RE: GDB solib interface
@ 2007-01-04 21:32 Smith, Stephen (SWCOE)
  2007-01-04 21:40 ` Daniel Jacobowitz
  0 siblings, 1 reply; 33+ messages in thread
From: Smith, Stephen (SWCOE) @ 2007-01-04 21:32 UTC (permalink / raw)
  To: Daniel Jacobowitz, General GDB Mailing List

Ok - I am not getting any T stop packets on the gdbserver end.  Is there
something I have to do to get gdb to issue them?

The text you wrote:

Reporting DLL events
--------------------

The `T' stop packet response is extended to take three additional
N:R pairs.  When any of these are encountered, the stopped thread
is assumed to be at a DLL event.  The signal should be SIGTRAP.
There may be multiple load and unload events in the stop packet.

  `load:Name=HEXSTR,TextSeg=ADDR,DataSeg=ADDR[,nop]'

    A new DLL has been loaded; it is described in the stop packet.

    If "nop" is specified, this DLL was already loaded, e.g. by
    an earlier call to dlopen.

  `unload:IDENTIFIER=VALUE[,nop]'

    A DLL has been unloaded.  A single identifier is provided to
    uniquely identify which DLL has been unloaded.  Depending
    on the target, this may be the text or data address; the name
    can be used, but may not be unambiguous.

    If "nop" is specified, this DLL was not unloaded, e.g. because
    another thread still had a handle to it.

  `dll:dll'

    Multiple DLL events have occured.  GDB should query the target for
the
    current state of DLLs.


^ permalink raw reply	[flat|nested] 33+ messages in thread
* Re: GDB solib interface
@ 2006-12-04 22:12 Smith, Stephen (SWCOE)
  2006-12-04 22:25 ` Michael Snyder
  2006-12-04 22:28 ` Daniel Jacobowitz
  0 siblings, 2 replies; 33+ messages in thread
From: Smith, Stephen (SWCOE) @ 2006-12-04 22:12 UTC (permalink / raw)
  To: General GDB Mailing List


I'm sorry - way back when Kevin asked that I investigate this.  So now I
am.  

Anyway - Pretend that my "custom" GDB remote.c has been told that a
library has been loaded - what would I need to write to use the solib
interface?   Another way of asking the question would be,  what would I
need to add to my remote interface file (remote.c) to have it load the
symbols.

I am not looking for a command, per se,  just trying to figure out what
functions/structures etc I need to write to have my "custom" GDB load
the libraries symbols.

-----Original Message-----
From: Daniel Jacobowitz [mailto:drow@false.org] 
Sent: Monday, December 04, 2006 2:58 PM
To: Smith, Stephen (SWCOE)
Cc: General GDB Mailing List
Subject: Re: GDB solib interface

On Mon, Dec 04, 2006 at 02:55:28PM -0700, Smith, Stephen (SWCOE) wrote:
> I am running GDB to debug a remote application.  If I find that a
shared
> library has been loaded, I would like to use the solib interface to
load
> the appropriate shared library symbols.  
> 
> So lets assume that I have the file name of the shared library, that
was
> just loaded, how do I inform the solib subsystem that to load the
> symbols.

There's no command for this.  The solib system is designed for targets
where the target can report that the library was loaded, or where GDB
can otherwise detect it.  If you're willing to have a custom GDB for
your platform, you might be able to make it examine the shared library
table in your target, assuming there is one.

-- 
Daniel Jacobowitz
CodeSourcery


^ permalink raw reply	[flat|nested] 33+ messages in thread
* GDB solib interface
@ 2006-12-04 21:55 Smith, Stephen (SWCOE)
  2006-12-04 21:57 ` Daniel Jacobowitz
  0 siblings, 1 reply; 33+ messages in thread
From: Smith, Stephen (SWCOE) @ 2006-12-04 21:55 UTC (permalink / raw)
  To: General GDB Mailing List

I am running GDB to debug a remote application.  If I find that a shared
library has been loaded, I would like to use the solib interface to load
the appropriate shared library symbols.  

So lets assume that I have the file name of the shared library, that was
just loaded, how do I inform the solib subsystem that to load the
symbols.

Having used the debugger to look at my cross debugger (which is the one
that is doing the remote debugging) I see that both solib-null.c and
solib-svr4.c are both being compiled and linked in.

The debugger is built with --host=i686-pc-cygwin and
--target=powerpc-motorola-elf


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

end of thread, other threads:[~2007-02-07 23:57 UTC | newest]

Thread overview: 33+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-04 21:32 GDB solib interface Smith, Stephen (SWCOE)
2007-01-04 21:40 ` Daniel Jacobowitz
2007-01-04 21:46   ` Smith, Stephen (SWCOE)
2007-01-04 21:49     ` Daniel Jacobowitz
2007-01-05  3:39       ` Stephen & Linda Smith
2007-01-05  3:48         ` Daniel Jacobowitz
     [not found]           ` <EF244E26469B2C42B2B72AC465843D6B03E34F88@AZ18EV808.global.ds.honeywell.com>
2007-01-05  4:01             ` Daniel Jacobowitz
2007-01-05 19:26               ` Smith, Stephen (SWCOE)
2007-02-07 19:41                 ` Smith, Stephen (SWCOE)
2007-02-07 23:57                   ` Smith, Stephen (SWCOE)
  -- strict thread matches above, loose matches on Subject: below --
2006-12-04 22:12 Smith, Stephen (SWCOE)
2006-12-04 22:25 ` Michael Snyder
2006-12-04 22:29   ` Daniel Jacobowitz
2006-12-04 22:28 ` Daniel Jacobowitz
2006-12-04 22:48   ` Smith, Stephen (SWCOE)
2006-12-04 23:48     ` Michael Snyder
2006-12-05  2:09       ` Smith, Stephen (SWCOE)
2006-12-05 23:03   ` Smith, Stephen (SWCOE)
2006-12-08 21:19   ` Daniel Jacobowitz
2006-12-08 22:23     ` Smith, Stephen (SWCOE)
2006-12-08 23:21       ` Daniel Jacobowitz
2006-12-15 21:12     ` Smith, Stephen (SWCOE)
2006-12-15 22:39       ` Daniel Jacobowitz
2006-12-17  0:42     ` Smith, Stephen (SWCOE)
2006-12-17  2:16       ` Daniel Jacobowitz
2006-12-17  6:37         ` Stephen & Linda Smith
2006-12-17 15:24           ` Daniel Jacobowitz
2006-12-29 22:08         ` Stephen & Linda Smith
2006-12-29 22:54           ` Stephen & Linda Smith
2007-01-04 20:37     ` Smith, Stephen (SWCOE)
2007-01-04 20:38       ` Daniel Jacobowitz
2006-12-04 21:55 Smith, Stephen (SWCOE)
2006-12-04 21:57 ` Daniel Jacobowitz

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