From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12252 invoked by alias); 7 Sep 2011 10:56:52 -0000 Received: (qmail 12242 invoked by uid 22791); 7 Sep 2011 10:56:51 -0000 X-SWARE-Spam-Status: No, hits=-2.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 07 Sep 2011 10:56:37 +0000 From: "jan.kratochvil at redhat dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug debug/50317] New: [4.7 Regression] missing DW_OP_GNU_implicit_pointer Date: Wed, 07 Sep 2011 10:57:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: debug X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jan.kratochvil at redhat dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2011-09/txt/msg00484.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50317 Bug #: 50317 Summary: [4.7 Regression] missing DW_OP_GNU_implicit_pointer Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: debug AssignedTo: unassigned@gcc.gnu.org ReportedBy: jan.kratochvil@redhat.com Target: i686-unknown-linux-gnu PASS: gcc (GCC) 4.6.2 20110907 (prerelease) <2><5e>: Abbrev Number: 5 (DW_TAG_variable) <5f> DW_AT_name : p <67> DW_AT_location : 16 byte block: f2 44 0 0 0 0 93 4 f2 51 0 0 0 0 93 4 (DW_OP_GNU_implicit_pointer: <0x44> 0; DW_OP_piece: 4; DW_OP_GNU_implicit_pointer: <0x51> 0; DW_OP_piece: 4) (gdb) print *p[1] $1 = 23 FAIL: gcc (GCC) 4.7.0 20110907 (experimental) <2><5b>: Abbrev Number: 5 (DW_TAG_variable) <5c> DW_AT_name : p <64> DW_AT_location : 10 byte block: f2 45 0 0 0 0 93 4 93 4 (DW_OP_GNU_implicit_pointer: <0x45> 0; DW_OP_piece: 4; DW_OP_piece: 4) (gdb) print *p[1] Cannot access memory at address 0x0 GNU gdb (GDB) 7.3.50.20110907-cvs (gdb) break foo (gdb) run (gdb) print *p[1] static __attribute__((noinline, noclone)) int foo (int i) { int j = i; int *p[2] = { &i, &j }; return *p[0] + *p[1]; } int main (void) { return foo (23); } That p[1] content definition is missing. There are many incompletele debug info cases around, filing it because it is a regression (visible on GDB testcase gdb.dwarf2/implptr.exp).