Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* shared library events
       [not found] <cbbabc2d0612111010h553d92e7qb522c85b6735c588@mail.gmail.com>
@ 2006-12-11 18:13 ` dsign
  2006-12-11 19:50   ` Daniel Jacobowitz
  0 siblings, 1 reply; 3+ messages in thread
From: dsign @ 2006-12-11 18:13 UTC (permalink / raw)
  To: gdb

Is there any mi interface for handling shared library events?

If there isn't any, I could implement one. Please, any suggestions welcome.


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

* Re: shared library events
  2006-12-11 18:13 ` shared library events dsign
@ 2006-12-11 19:50   ` Daniel Jacobowitz
  2006-12-11 21:18     ` Jim Ingham
  0 siblings, 1 reply; 3+ messages in thread
From: Daniel Jacobowitz @ 2006-12-11 19:50 UTC (permalink / raw)
  To: dsign; +Cc: gdb

On Mon, Dec 11, 2006 at 10:13:15AM -0800, dsign wrote:
> Is there any mi interface for handling shared library events?
> 
> If there isn't any, I could implement one. Please, any suggestions welcome.

I recommend you check with Jim Ingham to see what Apple does about
this, since I believe they've got something similar on their branch.

-- 
Daniel Jacobowitz
CodeSourcery


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

* Re: shared library events
  2006-12-11 19:50   ` Daniel Jacobowitz
@ 2006-12-11 21:18     ` Jim Ingham
  0 siblings, 0 replies; 3+ messages in thread
From: Jim Ingham @ 2006-12-11 21:18 UTC (permalink / raw)
  To: dsign; +Cc: gdb

We implemented a "file-sharedlibrary-info" command to return  
information about all the currently loaded shared libraries, but we  
don't really use that.  It turned out that stopping the GUI to query  
for shared library information for every shared library event slowed  
down the UI, and didn't add any benefits.  Except for resolving  
breakpoints there wasn't anything we needed to do synchronously for  
shared library loads, and that's all taken care of on the gdb side.

We also added asynchronous shared library load notifications.   
Something like:

=shlibs-added,shlib-info=[num="4",name="Cocoa",kind="F",dyld- 
addr="0x90f43000",reason="dyld",requested-state="Y",state="Y",path="/ 
System/Library/Frameworks/Cocoa.framework/Versions/A/ 
Cocoa",description="/System/Library/Frameworks/Cocoa.framework/ 
Versions/A/Cocoa",loaded_addr="0x90f43000",slide="0x0",prefix=""]

Some of this info (requested-state & state are specific to some tricks  
we play to reduce the symbol footprint of all the libraries in X).   
The Xcode can keep track of the libraries as they load and update it's  
shared library display, without having to do a round trip with gdb.

Jim

On Dec 11, 2006, at 11:50 AM, Daniel Jacobowitz wrote:

> On Mon, Dec 11, 2006 at 10:13:15AM -0800, dsign wrote:
>> Is there any mi interface for handling shared library events?
>>
>> If there isn't any, I could implement one. Please, any suggestions  
>> welcome.
>
> I recommend you check with Jim Ingham to see what Apple does about
> this, since I believe they've got something similar on their branch.
>
> -- 
> Daniel Jacobowitz
> CodeSourcery


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

end of thread, other threads:[~2006-12-11 21:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <cbbabc2d0612111010h553d92e7qb522c85b6735c588@mail.gmail.com>
2006-12-11 18:13 ` shared library events dsign
2006-12-11 19:50   ` Daniel Jacobowitz
2006-12-11 21:18     ` Jim Ingham

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