From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11453 invoked by alias); 25 Feb 2006 11:12:31 -0000 Received: (qmail 11445 invoked by uid 22791); 25 Feb 2006 11:12:30 -0000 X-Spam-Check-By: sourceware.org Received: from ip127.bb146.pacific.net.hk (HELO mailhub.stlglobal.com) (202.64.146.127) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 25 Feb 2006 11:12:28 +0000 Received: from localhost ([127.0.0.1]) by mailhub.stlglobal.com with esmtp (Exim 4.50) id 1FCxLS-0004PK-UM for gdb-patches@sources.redhat.com; Sat, 25 Feb 2006 19:12:15 +0800 Message-ID: <44003B94.2000900@tausq.org> Date: Sat, 25 Feb 2006 11:28:00 -0000 From: Randolph Chung User-Agent: Debian Thunderbird 1.0.2 (X11/20051002) MIME-Version: 1.0 To: gdb-patches@sources.redhat.com Subject: anon-union.exp stabs debug problem Content-Type: multipart/mixed; boundary="------------010400010900020409020005" Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-02/txt/msg00472.txt.bz2 This is a multi-part message in MIME format. --------------010400010900020409020005 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-length: 107 I had this patch lying around in my tree, dunno if others find it useful - should I commit it? randolph --------------010400010900020409020005 Content-Type: text/x-patch; name="anon.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="anon.diff" Content-length: 2504 2006-02-25 Randolph Chung * gdb.cp/anon-union.exp: XFAIL tests that hit a gcc bug. Index: testsuite/gdb.cp/anon-union.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.cp/anon-union.exp,v retrieving revision 1.2 diff -u -p -r1.2 anon-union.exp --- testsuite/gdb.cp/anon-union.exp 11 Feb 2004 14:01:25 -0000 1.2 +++ testsuite/gdb.cp/anon-union.exp 24 Feb 2006 23:57:32 -0000 @@ -41,18 +41,23 @@ if { [gdb_compile "${srcdir}/${subdir}/ continue } +if [get_compiler_info ${binfile} "c++"] { + return -1 +} + # Start with a fresh gdb gdb_exit gdb_start gdb_reinitialize_dir $srcdir/$subdir gdb_load ${binfile} - if ![runto_main] then { perror "couldn't run to breakpoint" continue } +get_debug_format + send_gdb "set width 0\n" gdb_expect -re "$gdb_prompt $" @@ -267,6 +272,9 @@ gdb_expect { # Tests for anon unions that are not members of a class or struct +if { [test_compiler_info gcc-3-4-*] && [test_debug_format "stabs"] } { + setup_xfail *-*-* gcc/20998 +} send_gdb "print w\n" gdb_expect { -re "\\$\[0-9\]* = 0\r\n$gdb_prompt $" { @@ -276,6 +284,9 @@ gdb_expect { timeout { fail "(timeout) print w 1" } } +if { [test_compiler_info gcc-3-4-*] && [test_debug_format "stabs"] } { + setup_xfail *-*-* gcc/20998 +} send_gdb "print z\n" gdb_expect { -re "\\$\[0-9\]* = 0\r\n$gdb_prompt $" { @@ -296,6 +307,9 @@ gdb_expect { } # See if the change in value is noticed +if { [test_compiler_info gcc-3-4-*] && [test_debug_format "stabs"] } { + setup_xfail *-*-* gcc/20998 +} send_gdb "print w\n" gdb_expect { -re "\\$\[0-9\]* = 45\r\n$gdb_prompt $" { @@ -306,6 +320,9 @@ gdb_expect { } # See if z shows the same value +if { [test_compiler_info gcc-3-4-*] && [test_debug_format "stabs"] } { + setup_xfail *-*-* gcc/20998 +} send_gdb "print z\n" gdb_expect { -re "\\$\[0-9\]* = 45\r\n$gdb_prompt $" { @@ -325,6 +342,9 @@ gdb_expect { } # See if the change in value is noticed +if { [test_compiler_info gcc-3-4-*] && [test_debug_format "stabs"] } { + setup_xfail *-*-* gcc/20998 +} send_gdb "print w\n" gdb_expect { -re "\\$\[0-9\]* = 27\r\n$gdb_prompt $" { @@ -335,6 +355,9 @@ gdb_expect { } # See if z shows the same value +if { [test_compiler_info gcc-3-4-*] && [test_debug_format "stabs"] } { + setup_xfail *-*-* gcc/20998 +} send_gdb "print z\n" gdb_expect { -re "\\$\[0-9\]* = 27\r\n$gdb_prompt $" { --------------010400010900020409020005--