This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug python/19288] need a way to see if an address is covered by some existing object
- From: "tromey at sourceware dot org" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Wed, 25 Nov 2015 18:13:00 +0000
- Subject: [Bug python/19288] need a way to see if an address is covered by some existing object
- Auto-submitted: auto-generated
- References: <bug-19288-4717 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=19288
--- Comment #3 from Tom Tromey <tromey at sourceware dot org> ---
(In reply to Pedro Alves from comment #2)
> Did you consider exposing the list of Objfile sections to Python?
> Something like Objfile.sections() to get the section list, and then each
> Section object could expose the addr/endaddr range.
Yeah, that would work nicely.
I also thought about just having my python code parse /proc/$/maps :)
--
You are receiving this mail because:
You are on the CC list for the bug.