From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5447 invoked by alias); 6 Oct 2011 15:29:07 -0000 Received: (qmail 5419 invoked by uid 22791); 6 Oct 2011 15:29:06 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO sourceware.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 06 Oct 2011 15:28:53 +0000 From: "christian.prochaska@genode-labs.com" To: gdb-prs@sourceware.org Subject: [Bug breakpoints/13247] Wrong breakpoint address for ARM binary built with -O2 Date: Thu, 06 Oct 2011 15:29:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: breakpoints X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: christian.prochaska@genode-labs.com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org X-SW-Source: 2011-q4/txt/msg00027.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=13247 --- Comment #2 from Christian Prochaska 2011-10-06 15:28:31 UTC --- According to the comments linked from Bug 12573 the function prologue is not to be skipped at all for -O2 and instead it is assumed that DWARF location information is always correct. So I guess in my case the location information is incorrect? <2><175>: Abbrev Number: 6 (DW_TAG_formal_parameter) <176> DW_AT_name : (indirect string, offset: 0x65): func1_args <17a> DW_AT_decl_file : 1 <17b> DW_AT_decl_line : 3 <17c> DW_AT_type : <0x106> <180> DW_AT_location : 2 byte block: 91 70 (DW_OP_fbreg: -16) >>From my current understanding, DW_AT_location is rather supposed to link to a location list containing the information that a part of func1_args is stored in registers for PC values 0x838c-0x8394 and in memory later, starting with PC value 0x8398? -- 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.