From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15183 invoked by alias); 24 Apr 2002 11:56:07 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 15152 invoked by uid 71); 24 Apr 2002 11:56:04 -0000 Resent-Date: 24 Apr 2002 11:56:03 -0000 Resent-Message-ID: <20020424115603.15149.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-To: nobody@gcc.gnu.org Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, fmoraes@nc.rr.com Received:(qmail 9655 invoked from network); 24 Apr 2002 11:47:30 -0000 Received: from unknown (HELO mail8.nc.rr.com) (24.93.67.55) by sources.redhat.com with SMTP; 24 Apr 2002 11:47:30 -0000 Received: from nc.rr.com ([66.26.242.205]) by mail8.nc.rr.com with Microsoft SMTPSVC(5.5.1877.687.68); Wed, 24 Apr 2002 07:47:28 -0400 Received: by nc.rr.com (sSMTP sendmail emulation); Wed, 24 Apr 2002 07:47:28 -0400 Message-Id:<0e8ab2847111842FE8@mail8.nc.rr.com> Date: Wed, 24 Apr 2002 04:56:00 -0000 From: U-FRANFrancisco Reply-To: fmoraes@nc.rr.com To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version:3.113 Subject: debug/6434: Thumb compilation yields no DWARF FDE instructions X-SW-Source: 2002-04/txt/msg01242.txt.bz2 List-Id: >Number: 6434 >Category: debug >Synopsis: Thumb compilation produces no DWARF FDE instructions >Confidential: no >Severity: non-critical >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Wed Apr 24 04:56:02 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Francisco >Release: 3.0.4 (DevKit-Advance) >Organization: Personal >Environment: System: CYGWIN_NT-5.1 FRAN 1.3.10(0.51/3/2) 2002-02-25 11:14 i686 unknown host: i686-pc-cygwin build: i686-pc-cygwin target: arm-agb-elf configured with: ../gcc-3.0.4/configure --prefix=/devkitadv --build=i686-pc-cygwin --host=i686-pc-cygwin --target=arm-agb-elf --with-cpu=arm7tdmi --without-local-prefix --with-newlib --with-headers=../newlib-1.10.0/newlib/libc/include/ --enable-multilib --enable-interwork --enable-languages=c++ --enable-targets=arm-elf,arm-coff,arm-aout --disable-win32-registry --disable-threads -v >Description: Code compiled with -marm correctly produces DWARF call frame instructions. Example: 00000608 00000020 0000034c FDE cie=0000034c pc=02001634..020016a0 DW_CFA_advance_loc: 4 to 02001638 DW_CFA_def_cfa_reg: r12 DW_CFA_advance_loc: 4 to 0200163c DW_CFA_offset: r14 at cfa-8 DW_CFA_offset: r13 at cfa-12 DW_CFA_offset: r11 at cfa-16 DW_CFA_advance_loc4: 4 to 02001640 DW_CFA_def_cfa: r11 ofs 4 DW_CFA_nop DW_CFA_nop Code compiled with -mthumb doesn't contain any call frame instructions. Example: 0000063c 0000000c 0000062c FDE cie=0000062c pc=020016a0..020017a8 >How-To-Repeat: Compile the following simple example: void a() { } void main(int argc, char **argv) { a(); } Compile with -marm: gcc -c -marm -o test.o test.c Check output with readelf -w and look at the .debug_frame section Output correctly includes CFA instructions. Now compile with -mthumb: gcc -c -mthumb -o test.o test.c Check output with readelf -w and look at the .debug_frame section Output is missing CFA instructions preventing a debugger to show call frame information. >Fix: Unknown. >Release-Note: >Audit-Trail: >Unformatted: