From: Jim Ingham <jingham@apple.com>
To: dsign <dignor.sign@gmail.com>
Cc: gdb@sourceware.org
Subject: Re: shared library events
Date: Mon, 11 Dec 2006 21:18:00 -0000 [thread overview]
Message-ID: <F617FC87-43AA-4430-90AB-D4A38BC08D58@apple.com> (raw)
In-Reply-To: <20061211195045.GA11215@nevyn.them.org>
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
prev parent reply other threads:[~2006-12-11 21:18 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <cbbabc2d0612111010h553d92e7qb522c85b6735c588@mail.gmail.com>
2006-12-11 18:13 ` dsign
2006-12-11 19:50 ` Daniel Jacobowitz
2006-12-11 21:18 ` Jim Ingham [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=F617FC87-43AA-4430-90AB-D4A38BC08D58@apple.com \
--to=jingham@apple.com \
--cc=dignor.sign@gmail.com \
--cc=gdb@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox