This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: further help on dwarf2 debug
- From: dominiq at lps dot ens dot fr (Dominique Dhumieres)
- To: gcc at gcc dot gnu dot org
- Cc: developer at sandoe-acoustics dot co dot uk
- Date: Thu, 24 Sep 2009 11:27:12 +0200
- Subject: Re: further help on dwarf2 debug
With revision 152076 on i686-apple-darwin9 bootstrapped as described
in comment#61 of pr41405, I get:
[ibook-dhum] bug/debug% gcc45 -c -save-temps -dA -g -O0 -fverbose-asm -gno-strict-dwarf simplistic.c
[ibook-dhum] bug/debug% dwarfdump --debug-frame simplistic.o
----------------------------------------------------------------------
File: simplistic.o (i386)
----------------------------------------------------------------------
.debug_frame contents:
0x00000000: CIE
length: 0x00000010
CIE_id: 0xffffffff
version: 0x01
augmentation: ""
code_align: 1
data_align: -4
ra_register: 0x08
DW_CFA_def_cfa (esp, 4)
DW_CFA_offset (eip, 0)
DW_CFA_nop
DW_CFA_nop
Instructions: Init State: CFA=esp+4 eip=[esp+4]
0x00000014: FDE
length: 0x00000028
CIE_pointer: 0x00000000
start_addr: 0x00000000 testfunc
range_size: 0x00000012 (end_addr = 0x00000012)
Instructions: 0x00000000: CFA=esp+4 eip=[esp+4]
DW_CFA_advance_loc4 (1)
DW_CFA_def_cfa_offset (8)
DW_CFA_offset (ebp, -8)
0x00000001: CFA=esp+8 ebp=[esp] eip=[esp+8]
DW_CFA_advance_loc4 (2)
DW_CFA_def_cfa_register (ebp)
0x00000003: CFA=ebp+8 ebp=[ebp] eip=[ebp+8]
DW_CFA_advance_loc4 (14)
DW_CFA_restore (ebp)
DW_CFA_def_cfa (esp, 4)
DW_CFA_nop
DW_CFA_nop
DW_CFA_nop
0x00000011: CFA=esp+4 ebp=[esp-4] eip=[esp+4]
(same result with -gstrict-dwarf).
Following Jakub Jelinek's advice (sorry I cannot find the post) I have tried the
tests in gcc/testsuite/gcc.dg/guality/, but did not get any failure.
Cheers,
Dominique