From: Randolph Chung <randolph@tausq.org>
To: gdb-patches@sources.redhat.com
Subject: anon-union.exp stabs debug problem
Date: Sat, 25 Feb 2006 11:28:00 -0000 [thread overview]
Message-ID: <44003B94.2000900@tausq.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 107 bytes --]
I had this patch lying around in my tree, dunno if others find it useful
- should I commit it?
randolph
[-- Attachment #2: anon.diff --]
[-- Type: text/x-patch, Size: 2504 bytes --]
2006-02-25 Randolph Chung <tausq@debian.org>
* 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 $" {
next reply other threads:[~2006-02-25 11:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-25 11:28 Randolph Chung [this message]
2006-03-30 16:58 ` Daniel Jacobowitz
2006-03-31 8:00 ` Randolph Chung
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=44003B94.2000900@tausq.org \
--to=randolph@tausq.org \
--cc=gdb-patches@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox