Bug 10224 - Please add dwarf3 DW_OP_call_frame_cfa
Summary: Please add dwarf3 DW_OP_call_frame_cfa
Status: RESOLVED FIXED
Alias: None
Product: gdb
Classification: Unclassified
Component: backtrace (show other bugs)
Version: unknown
: P2 enhancement
Target Milestone: 7.0
Assignee: Tom Tromey
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-01 16:14 UTC by Richard Henderson
Modified: 2009-09-14 15:58 UTC (History)
3 users (show)

See Also:
Host:
Target:
Build:
Last reconfirmed: 2009-06-02 23:27:09


Attachments
quick hack to make gcc generate DW_OP_call_frame_cfa (574 bytes, patch)
2009-06-03 00:07 UTC, Richard Henderson
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Richard Henderson 2009-06-01 16:14:05 UTC
Currently GCC has to describe the CFA twice, once for the unwind info
and once in the form of location lists for DW_AT_frame_base.  This
dwarf3 opcode allows DW_AT_frame_base to essentially reference the
unwind info definition.
Comment 1 Tom Tromey 2009-06-02 21:31:01 UTC
What is the simplest way to test a patch implementing this?
Comment 2 Richard Henderson 2009-06-02 23:11:26 UTC
We'll whip up a patch to generate the opcode, then ...

Probably to watch the value of a function argument on
the stack, while stepping through the prologue of a function.
Comment 3 Tom Tromey 2009-06-02 23:27:09 UTC
Sounds good.

I have a gdb patch; attach the gcc patch here and I will give it a try.
Comment 4 Richard Henderson 2009-06-03 00:07:22 UTC
Created attachment 3979 [details]
quick hack to make gcc generate DW_OP_call_frame_cfa

I'm not sure off-hand what conditional I should really be using,
but no conditional at all will work for testing.  =)
Comment 5 Tom Tromey 2009-09-14 15:58:27 UTC
I checked in the fix.