* anon-union.exp stabs debug problem
@ 2006-02-25 11:28 Randolph Chung
2006-03-30 16:58 ` Daniel Jacobowitz
0 siblings, 1 reply; 3+ messages in thread
From: Randolph Chung @ 2006-02-25 11:28 UTC (permalink / raw)
To: gdb-patches
[-- 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 $" {
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: anon-union.exp stabs debug problem
2006-02-25 11:28 anon-union.exp stabs debug problem Randolph Chung
@ 2006-03-30 16:58 ` Daniel Jacobowitz
2006-03-31 8:00 ` Randolph Chung
0 siblings, 1 reply; 3+ messages in thread
From: Daniel Jacobowitz @ 2006-03-30 16:58 UTC (permalink / raw)
To: Randolph Chung; +Cc: gdb-patches
On Sat, Feb 25, 2006 at 07:12:20PM +0800, Randolph Chung wrote:
> I had this patch lying around in my tree, dunno if others find it useful
> - should I commit it?
> 2006-02-25 Randolph Chung <tausq@debian.org>
>
> * gdb.cp/anon-union.exp: XFAIL tests that hit a gcc bug.
I can't see why not; sure, go ahead.
This test still seems to fail using GCC 4.0.3 and -gstabs+. I'm not
sure why, and I don't plan to track it down; it works fine with
DWARF-2.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: anon-union.exp stabs debug problem
2006-03-30 16:58 ` Daniel Jacobowitz
@ 2006-03-31 8:00 ` Randolph Chung
0 siblings, 0 replies; 3+ messages in thread
From: Randolph Chung @ 2006-03-31 8:00 UTC (permalink / raw)
To: Daniel Jacobowitz; +Cc: gdb-patches
> I can't see why not; sure, go ahead.
>
> This test still seems to fail using GCC 4.0.3 and -gstabs+. I'm not
> sure why, and I don't plan to track it down; it works fine with
> DWARF-2.
fyi, HPUX SOM doesn't yet work well with dwarf debug, so this target
(32-bit hppa-hpux) will probably need stabs support for some time. There
are quite a few funny stabs bugs, unfortunately.
randolph
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-03-30 23:05 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-25 11:28 anon-union.exp stabs debug problem Randolph Chung
2006-03-30 16:58 ` Daniel Jacobowitz
2006-03-31 8:00 ` Randolph Chung
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox