public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "tsandnes at atmel dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug target/17994] avr-gcc does not output a dwarf2 .debug_frame section Date: Fri, 23 Oct 2009 11:41:00 -0000 [thread overview] Message-ID: <20091023114130.13200.qmail@sourceware.org> (raw) In-Reply-To: <bug-17994-9466@http.gcc.gnu.org/bugzilla/> ------- Comment #3 from tsandnes at atmel dot com 2009-10-23 11:41 ------- I tried gcc 4.3.2 from the WinAVR distribution and also avr-gcc 4.4.1. The short story is: There is call frame information there, but not enough. Specifically, the Call Frame instructions to reconstruct the pc to unwind rule table are still missing, but the CIE and FDE are present. I compared gcc and avr-gcc output on linux with the following results: gcc: ----------------------------------------------------------------------- The section .debug_frame contains: 00000000 00000010 ffffffff CIE Version: 1 Augmentation: "" Code alignment factor: 1 Data alignment factor: -4 Return address column: 8 DW_CFA_def_cfa: r4 (esp) ofs 4 DW_CFA_offset: r8 (eip) at cfa-4 DW_CFA_nop DW_CFA_nop 00000014 00000024 00000000 FDE cie=00000000 pc=08048394..0804840a DW_CFA_advance_loc: 4 to 08048398 DW_CFA_def_cfa: r1 (ecx) ofs 0 DW_CFA_register: r4 (esp) in r1 (ecx) DW_CFA_advance_loc: 6 to 0804839e DW_CFA_def_cfa: r4 (esp) ofs 4 DW_CFA_advance_loc: 1 to 0804839f DW_CFA_def_cfa_offset: 8 DW_CFA_offset: r5 (ebp) at cfa-8 DW_CFA_advance_loc: 2 to 080483a1 DW_CFA_def_cfa_register: r5 (ebp) DW_CFA_advance_loc: 1 to 080483a2 DW_CFA_offset: r4 (esp) at cfa-12 DW_CFA_nop DW_CFA_nop 0000003c 00000014 00000000 FDE cie=00000000 pc=0804840a..0804841c DW_CFA_advance_loc: 1 to 0804840b DW_CFA_def_cfa_offset: 8 DW_CFA_offset: r5 (ebp) at cfa-8 DW_CFA_advance_loc: 2 to 0804840d DW_CFA_def_cfa_register: r5 (ebp) ----------------------------------------------------------------------- avr-gcc ----------------------------------------------------------------------- 00000000 0000000c ffffffff CIE Version: 1 Augmentation: "" Code alignment factor: 1 Data alignment factor: -1 Return address column: 36 DW_CFA_def_cfa: r32 ofs 0 00000010 0000000c 00000000 FDE cie=00000000 pc=000000ce..00000160 00000020 0000000c 00000000 FDE cie=00000000 pc=00000160..0000018c ----------------------------------------------------------------------- -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17994
next prev parent reply other threads:[~2009-10-23 11:41 UTC|newest] Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top [not found] <bug-17994-9466@http.gcc.gnu.org/bugzilla/> 2009-08-20 22:40 ` eric dot weddington at atmel dot com 2009-10-23 11:41 ` tsandnes at atmel dot com [this message] [not found] <bug-17994-4@http.gcc.gnu.org/bugzilla/> 2010-12-29 7:05 ` anitha.boyapati at atmel dot com 2010-12-29 7:08 ` anitha.boyapati at atmel dot com 2010-12-29 13:35 ` anitha.boyapati at atmel dot com 2011-02-15 19:39 ` rth at gcc dot gnu.org 2011-02-16 8:28 ` anitha.boyapati at atmel dot com 2011-02-16 18:16 ` rth at gcc dot gnu.org 2011-08-02 20:46 ` Torleif.Sandnes at atmel dot com 2011-08-02 20:50 ` rth at gcc dot gnu.org 2004-10-14 8:22 [Bug debug/17994] New: " tsandnes at atmel dot com 2004-10-14 13:24 ` [Bug target/17994] " pinskia at gcc dot gnu dot org 2004-10-14 13:24 ` pinskia at gcc dot gnu dot org 2004-10-14 16:39 ` ericw at evcohs dot com 2004-11-13 16:17 ` berndtrog at yahoo dot com 2005-02-11 23:09 ` ericw at evcohs dot com 2005-03-16 16:54 ` ericw at evcohs dot com 2005-05-06 13:59 ` bjoern dot m dot haase at web dot de 2005-07-27 23:37 ` giovannibajo at libero dot it
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20091023114130.13200.qmail@sourceware.org \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).