From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21410 invoked by alias); 23 Apr 2013 12:25:31 -0000 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 Received: (qmail 21377 invoked by uid 48); 23 Apr 2013 12:25:31 -0000 From: "jan.kratochvil at redhat dot com" To: gdb-prs@sourceware.org Subject: [Bug symtab/15391] New: DW_OP_GNU_implicit_pointer bug Date: Tue, 23 Apr 2013 12:25:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: symtab X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jan.kratochvil at redhat dot 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: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 X-SW-Source: 2013-q2/txt/msg00130.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=15391 Bug #: 15391 Summary: DW_OP_GNU_implicit_pointer bug Product: gdb Version: HEAD Status: NEW Severity: normal Priority: P2 Component: symtab AssignedTo: unassigned@sourceware.org ReportedBy: jan.kratochvil@redhat.com CC: tromey@redhat.com Classification: Unclassified Target: x86_64-unknown-linux-gnu struct S { short a; char b, c; }; volatile int v; void foo (int x) { struct S s = { x, x + 2, x + 3 }; char *p = &s.b; s.a++; v++; /* line 8 */ } int main () { foo (1); return 0; } gcc-4.8.0-2.fc19.x86_64 gcc -g -O2 -fno-inline -fno-ipa-cp -o implptr implptr.c -Wall gdb ./implptr -ex 'b 8' -ex r -ex 'p p[-1]' -ex c -ex q -q Actual: $1 = 3 '\003' Expected: $1 = 0 '\000' Bugreported by Jakub Jelinek. Abbrev Number: 7 (DW_TAG_variable) DW_AT_name : s DW_AT_location : (DW_OP_breg5 (rdi): 1; DW_OP_stack_value; DW_OP_piece: 2; DW_OP_breg5 (rdi): 2; DW_OP_stack_value; DW_OP_piece: 1; DW_OP_breg5 (rdi): 3; DW_OP_stack_value; DW_OP_piece: 1) Abbrev Number: 7 (DW_TAG_variable) DW_AT_name : p DW_AT_location : (DW_OP_GNU_implicit_pointer: <0x88> 2) -- 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.