diff options
author | Jim Blandy <jimb@codesourcery.com> | 2001-12-07 21:17:00 +0000 |
---|---|---|
committer | Jim Blandy <jimb@codesourcery.com> | 2001-12-07 21:17:00 +0000 |
commit | 0bc695097fac7f4ab1d7a3a47864109e7bb85b68 (patch) | |
tree | 3c5be8b88a3781f97e0818b26b6fc8310baaefa3 | |
parent | f4697836921014a6a3a39f9fbcbfe707e62f4a98 (diff) | |
download | gdb-0bc695097fac7f4ab1d7a3a47864109e7bb85b68.zip gdb-0bc695097fac7f4ab1d7a3a47864109e7bb85b68.tar.gz gdb-0bc695097fac7f4ab1d7a3a47864109e7bb85b68.tar.bz2 |
* gdb.base/callfuncs.exp: The stabs generated by GCC don't tell us
whether functions are prototyped or not, so we can't possibly pass
arguments to t_float_values2 properly.
-rw-r--r-- | gdb/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/callfuncs.exp | 10 |
2 files changed, 14 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index ee5be1c..7ca7205 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,5 +1,9 @@ 2001-12-07 Jim Blandy <jimb@redhat.com> + * gdb.base/callfuncs.exp: The stabs generated by GCC don't tell us + whether functions are prototyped or not, so we can't possibly pass + arguments to t_float_values2 properly. + * gdb.base/break.exp: (test_next_with_recursion): Don't change the value of `timeout' for targets other than the mips*tx39-*. diff --git a/gdb/testsuite/gdb.base/callfuncs.exp b/gdb/testsuite/gdb.base/callfuncs.exp index 43d6177..86b7c04 100644 --- a/gdb/testsuite/gdb.base/callfuncs.exp +++ b/gdb/testsuite/gdb.base/callfuncs.exp @@ -142,6 +142,9 @@ proc do_function_calls {} { gdb_test "p t_float_values(float_val1,-2.3765)" " = 1" # Test passing of arguments which might not be widened. + # Under stabs, GCC doesn't tell us whether the function was + # prototyped or not. + if {$gcc_compiled} { setup_xfail_format "stabs" } gdb_test "p t_float_values2(0.0,0.0)" " = 0" # Although PR 5318 mentions SunOS specifically, this seems @@ -152,7 +155,12 @@ proc do_function_calls {} { setup_xfail "alpha-dec-osf2*" "i*86-*-sysv4*" 5318 } } + + # Under stabs, GCC doesn't tell us whether the function was + # prototyped or not. + if {$gcc_compiled} { setup_xfail_format "stabs" } gdb_test "p t_float_values2(3.14159,float_val2)" " = 1" + gdb_test "p t_small_values(1,2,3,4,5,6,7,8,9,10)" " = 55" gdb_test "p t_double_values(0.0,0.0)" " = 0" @@ -290,6 +298,8 @@ if { $hp_aCC_compiler } { } } +get_debug_format + # Make sure that malloc gets called and that the floating point unit # is initialized via a call to t_double_values. gdb_test "next" "t_double_values\\(double_val1, double_val2\\);.*" \ |