This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: debugging something with multiple text sections in onecompilation unit
On Fri, Aug 03, 2007 at 10:01:19AM -0400, Robin Getz wrote:
> Since gdb knows there are multiple discontinuous sections (via
> parsing .debug_aranges) why not just ask the kernel where the section was
> loaded?
>
> Or is it "it's possible, just not implemented"
Sure. Take a look at how qOffsets works. qOffsets is not rich enough
to specify what you need; but assuming you use sensible ELF segments,
the new code in HEAD after 6.6 could be easily exteneded to take more
than just a text and data segment. We just didn't, because we didn't
have any users for that.
--
Daniel Jacobowitz
CodeSourcery