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

[Bug c++/14999] Clang debug info crashes GDB when trying to collectlocal variables in a trace


http://sourceware.org/bugzilla/show_bug.cgi?id=14999

--- Comment #5 from Tom Tromey <tromey at redhat dot com> 2013-01-08 04:26:54 UTC ---
(In reply to comment #4)
> Created attachment 6801 [details]
> x86 assembly for trace.c from Clang with frame pointers
> 
> Since you mentioned something about frames, that reminded me that Clang does
> tend to be a bit conservative about frame pointers - so I thought I should
> mention/demonstrate (in case it's relevant) that this bug does still reproduce
> when I force Clang to emit frame pointers.

It isn't about frame pointers but about the DW_AT_frame_base.
GCC usually uses DW_OP_call_frame_cfa.
clang is emitting

    <41>   DW_AT_frame_base  : 1 byte block: 56     (DW_OP_reg6 (rbp))

The DWARF->AX translator was mishandling this -- just an oversight there.
I have a patch, and it works; I just need to turn the .s into
a test case.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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