This is the mail archive of the gdb-prs@sources.redhat.com 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]

gdb/459: DWARF2 and unknown languages



>Number:         459
>Category:       gdb
>Synopsis:       DWARF2 and unknown languages
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Apr 04 21:28:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     fw@deneb.enyo.de
>Release:        GDB 5.1.1, 5.2 (end of March)
>Organization:
>Environment:
Debian GNU/Linux unstable, x86
>Description:
It seems that GDB (starting with 5.1.1 or so) can no longer debug programs written in languages unknown to it.  With previous GDB versions, you could at least set breakpoints, get backtraces, and examine most variables, although you had to take name mangling into account.

For example, if I try to set a breakpoint in an Ada program, I just get the error message "internal error - unimplemented function unk_lang_create_fundamental_type called."

This behavior only occurs with DWARF2 debugging information, as far as I can tell.
>How-To-Repeat:
Compile the no_debug.adb file using a recent GCC version (3.1 or 3.2; you have to run gnatchop first), with: "gcc -g -S no_debug.adb" and "gcc no_debug.s".  Run "gdb a.out", try to set a breakpoint on "main".
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="no_debug.ada"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="no_debug.ada"

cGFja2FnZSBOb19EZWJ1ZyBpcwoKICAgcHJvY2VkdXJlIE1haW47CiAgIHByYWdtYSBFeHBvcnQg
KEMsIE1haW4sICJtYWluIik7CgplbmQgTm9fRGVidWc7Cgp3aXRoIFN5c3RlbTsgdXNlIFN5c3Rl
bTsKCnBhY2thZ2UgYm9keSBOb19EZWJ1ZyBpcwoKICAgcHJvY2VkdXJlIFB1dHMgKFN0ciA6IEFk
ZHJlc3MpOwogICBwcmFnbWEgSW1wb3J0IChDLCBQdXRzLCAicHV0cyIpOwoKICAgTWVzc2FnZSA6
IGNvbnN0YW50IFN0cmluZyA6PSAiSGVsbG8sIHdvcmxkISIgJiBBU0NJSS5OVUw7CgogICBwcm9j
ZWR1cmUgTWFpbiBpcwogICBiZWdpbgogICAgICBQdXRzIChNZXNzYWdlJ0FkZHJlc3MpOwogICBl
bmQgTWFpbjsKCmVuZCBOb19EZWJ1ZzsK


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