aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2004-02-01 10:17:36 +0000
committerMark Kettenis <kettenis@gnu.org>2004-02-01 10:17:36 +0000
commit5a01311c59ec8bc4978e1a102035798808b45696 (patch)
tree19f2cf96a708dafb247fc877e719a559a3c5bf62 /gdb
parent26ee262d1f4612dbda4777c1d148199d860f6536 (diff)
downloadgdb-5a01311c59ec8bc4978e1a102035798808b45696.zip
gdb-5a01311c59ec8bc4978e1a102035798808b45696.tar.gz
gdb-5a01311c59ec8bc4978e1a102035798808b45696.tar.bz2
* gdb.base/call-ar-st.exp: Call get_debug_format. Remove xfail on
sparc*-*-solaris* into a kfail PR gdb/1539 on sparc-*-* for stabs only on the "print_small_structs from print_long_arg_list" test.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/testsuite/ChangeLog6
-rw-r--r--gdb/testsuite/gdb.base/call-ar-st.exp15
2 files changed, 16 insertions, 5 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index f5b8acb..77776a9 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2004-02-01 Mark Kettenis <kettenis@gnu.org>
+
+ * gdb.base/call-ar-st.exp: Call get_debug_format. Remove xfail on
+ sparc*-*-solaris* into a kfail PR gdb/1539 on sparc-*-* for stabs
+ only on the "print_small_structs from print_long_arg_list" test.
+
2004-02-01 Daniel Jacobowitz <drow@mvista.com>
* gdb.base/completion.exp: Kill a stray backslash.
diff --git a/gdb/testsuite/gdb.base/call-ar-st.exp b/gdb/testsuite/gdb.base/call-ar-st.exp
index 1431bc5..9b0e539 100644
--- a/gdb/testsuite/gdb.base/call-ar-st.exp
+++ b/gdb/testsuite/gdb.base/call-ar-st.exp
@@ -105,6 +105,8 @@ if ![runto_main] then {
continue
}
+get_debug_format
+
#go -until 1209
gdb_test "tbreak 1209" \
"Breakpoint \[0-9\]+.*file.*$srcfile, line 1209.*" \
@@ -500,11 +502,14 @@ set ws "\[\n\r\t \]+"
if {![gdb_skip_float_test "print_small_structs from print_long_arg_list"] && \
![gdb_skip_stdio_test "print_small_structs from print_long_arg_list"] } {
- # On Solaris, some of the args are passed by ref, others by value,
- # and GDB gets confused and says "Invalid cast" because it thinks
- # it has to cast the structure into a pointer to structure. A real
- # GDB bug, probably for all Sparc configs, but obscure. -sts 1999-08-17.
- setup_xfail "sparc*-*-solaris*"
+
+ # On 32-bit SPARC, some of the args are passed by ref, others by
+ # value, and GDB gets confused and says "Invalid cast" because it
+ # thinks it has to cast the structure into a pointer to structure.
+ if { [test_debug_format "stabs"] } then {
+ setup_kfail "gdb/1539" "sparc-*-*"
+ }
+
send_gdb "print print_small_structs(struct1, struct2, struct3, struct4, flags, flags_combo, three_char, five_char, int_char_combo, d1, d2, d3, f1, f2, f3)\n"
gdb_expect_list "print print_small_structs from print_long_arg_list" ".*$gdb_prompt $" {
"\[\t\r\n \]+alpha"