From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6570 invoked by alias); 23 May 2012 21:13:24 -0000 Received: (qmail 6543 invoked by uid 22791); 23 May 2012 21:13:22 -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 sourceware.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 23 May 2012 21:13:09 +0000 From: "jan.kratochvil at redhat dot com" To: gdb-prs@sourceware.org Subject: [Bug symtab/14148] New: -fdebug-types-section regresses ststic scope of types Date: Wed, 23 May 2012 21:13: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 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: 2012-q2/txt/msg00163.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=14148 Bug #: 14148 Summary: -fdebug-types-section regresses ststic scope of types Product: gdb Version: HEAD Status: NEW Severity: normal Priority: P2 Component: symtab AssignedTo: unassigned@sourceware.org ReportedBy: jan.kratochvil@redhat.com Classification: Unclassified FAILing new testcase for -fdebug-types-section [Re: [RFC - Python scripting] New methods Symtab.global_block and Symtab.static_block (docs included)] http://sourceware.org/ml/gdb-patches/2012-05/msg00132.html PASS: C="gcc -fno-debug-types-section -g -c -x c -";echo 'struct s { int i; }; extern void f (void); int main (void) { struct s a; f (); return 0; }'|$C -o 36.o;echo 'struct s { int j; }; void f (void) { struct s b; }'|$C -o 36b.o;gcc -o 36 36.o 36b.o;./gdb -readnow ./36 -ex start -ex 'ptype struct s' -ex step -ex 'ptype struct s' -ex c -ex q 2>/dev/null|grep -w int int i; int j; FAIL: C="gcc -fdebug-types-section -g -c -x c -";echo 'struct s { int i; }; extern void f (void); int main (void) { struct s a; f (); return 0; }'|$C -o 36.o;echo 'struct s { int j; }; void f (void) { struct s b; }'|$C -o 36b.o;gcc -o 36 36.o 36b.o;./gdb -readnow ./36 -ex start -ex 'ptype struct s' -ex step -ex 'ptype struct s' -ex c -ex q 2>/dev/null|grep -w int int j; int j; In a different more readable form: ==> 36.c <== struct s { int i; }; extern void f (void); int main (void) { struct s a; f (); return 0; } ==> 36b.c <== struct s { int j; }; void f (void) { struct s b; } $ gcc -fdebug-types-section -o 36 36.c 36b.c -Wall -g $ ./gdb -readnow ./36 (gdb) start (gdb) ptype struct s type = struct s { int j; } (gdb) ptype a type = struct s { int i; } (gdb) whatis a type = struct s That is with -fdebug-types-section GDB no longer provides STATIC_BLOCK scope for DW_TAG_type_unit types. -- 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.