Ludovic Brenta wrote:
Kevin Brown <[EMAIL PROTECTED]> writes:

[...]

So I'm tempted to file another bug, this one against libgnat-4.1,
stating that we need to compile a debug version (that would land in
/usr/lib/debug) so that it's possible to set breakpoints within
library functions.  We should do so for the various libgtkada-2.8
libraries as well, but libgnat is by far the most important in this
regard.

Try to link statically against
/usr/lib/gcc/x86_64-linux-gnu/4.1.2/adalib/libgnat.a, it already
contains debugging symbols.

Well, this didn't help at all, unfortunately. Seems libgnat.a doesn't have any line number information in it. so it's not possible to set breakpoints within the functions, only at the beginning of the functions themselves. Since the error condition in question happens only conditionally, that's not really enough.

So the new bug (#401385) remains relevant despite the static library libgnat.a. :-(


Actually, aside from being able to generate programs that are statically-linked, I can't see any advantage at all to linking against libgnat.a. It doesn't have any line number information, so you can't set breakpoints within library functions, and it doesn't seem to allow you to see the arguments to the functions, either.

Did I miss something somewhere? It *is* linking against that library, and I did add "-g" to the linker switches.


--
Kevin Brown                                           [EMAIL PROTECTED]


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to