This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: how to make gdb happy with my linkmap


On Fri, Dec 26, 2008 at 11:39:59AM +0100, Mathieu Lacage wrote:
> Ok, it appears that this is, indeed, sufficient to get good debugging
> when running the executable from a PT_INTERP. However, as you
> mentioned above, running the executable from the command-line without
> an associated PT_INTERP entry seems to confuse gdb quite a bit: it
> seems unable to place or handle breakpoints. Is there something I
> could do to help alleviate this problem (I would be happy to do
> whatever is needed in gdb proper) ? Maybe I could go and hack the
> on-stack aux vectors to help gdb ?

Does it work any better with ld.so?  I doubt it - GDB doesn't do
this well, and I don't have any clear idea on how to improve it.
Sorry.  There's probably a way that I haven't thought of.

Modifying the on-stack auxv copy won't make a difference; GDB uses the
read-only copy in the kernel (since locating the stack copy is
unreliable, and it is prone to corruption).

-- 
Daniel Jacobowitz
CodeSourcery


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]