| Index: gdb/testsuite/gdb.base/funcargs.exp
|
| diff --git a/gdb/testsuite/gdb.base/funcargs.exp b/gdb/testsuite/gdb.base/funcargs.exp
|
| index f1236cf0a91321fc91829d81378604df8cbee275..5f1a81c76901281dfe80d55b679869db783aa166 100644
|
| --- a/gdb/testsuite/gdb.base/funcargs.exp
|
| +++ b/gdb/testsuite/gdb.base/funcargs.exp
|
| @@ -16,10 +16,6 @@
|
|
|
| # This file was written by Fred Fish. (fnf@cygnus.com)
|
|
|
| -if $tracelevel {
|
| - strace $tracelevel
|
| -}
|
| -
|
|
|
| set testfile "funcargs"
|
| set srcfile ${testfile}.c
|
| @@ -37,7 +33,7 @@ if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable $com
|
|
|
| # Create and source the file that provides information about the compiler
|
| # used to compile the test case.
|
| -if [get_compiler_info ${binfile}] {
|
| +if [get_compiler_info] {
|
| return -1;
|
| }
|
|
|
| @@ -269,7 +265,7 @@ proc complex_args {} {
|
| timeout { fail "(timeout) run to callca" ; gdb_suppress_tests; }
|
| }
|
| gdb_test "cont" ".* callcb \\(d1=3 \\+ 4 \\* I, d2=3 \\+ 4 \\* I, d3=3 \\+ 4 \\* I\\) .*" "continue to callcb"
|
| - gdb_test "cont" ".* callcc \\(ld1=5 \\+ 6 \\* I, ld2=5 \\+ 6 \\* I, ld3=5 \\+ 6 \\* I\\) .*" "continue to callcb"
|
| + gdb_test "cont" ".* callcc \\(ld1=5 \\+ 6 \\* I, ld2=5 \\+ 6 \\* I, ld3=5 \\+ 6 \\* I\\) .*" "continue to callcc"
|
| gdb_test "cont" ".* callcd \\(fc1=1 \\+ 2 \\* I, dc1=3 \\+ 4 \\* I, ldc1=5 \\+ 6 \\* I\\) .*" "continue to callcd"
|
| gdb_test "cont" ".* callce \\(dc1=3 \\+ 4 \\* I, ldc1=5 \\+ 6 \\* I, fc1=1 \\+ 2 \\* I\\) .*" "continue to callce"
|
| gdb_test "cont" ".* callcf \\(ldc1=5 \\+ 6 \\* I, fc1=1 \\+ 2 \\* I, dc1=3 \\+ 4 \\* I\\) .*" "continue to callcf"
|
| @@ -336,7 +332,7 @@ proc pointer_args {} {
|
|
|
| gdb_run_cmd
|
| gdb_expect {
|
| - -re ".* call3a \\(cp=$hex \"a.*\", sp=$hex, ip=$hex, lp=$hex\\) .*$gdb_prompt $" { pass "run to call3a" }
|
| + -re ".* call3a \\(cp=$hex <c> \"a.*\", sp=$hex <s>, ip=$hex <i>, lp=$hex <l>\\) .*$gdb_prompt $" { pass "run to call3a" }
|
| -re "$gdb_prompt $" { fail "run to call3a" ; gdb_suppress_tests; }
|
| timeout { fail "(timeout) run to call3a" ; gdb_suppress_tests; }
|
| }
|
| @@ -348,7 +344,7 @@ proc pointer_args {} {
|
|
|
| # Continue; should stop at call3b and print actual arguments.
|
| # Try dereferencing the arguments.
|
| - if [gdb_test "cont" ".* call3b \\(ucp=$hex \"b.*\", usp=$hex, uip=$hex, ulp=$hex\\) .*" "continue to call3b"] {
|
| + if [gdb_test "cont" ".* call3b \\(ucp=$hex <uc> \"b.*\", usp=$hex <us>, uip=$hex <ui>, ulp=$hex <ul>\\) .*" "continue to call3b"] {
|
| gdb_suppress_tests;
|
| }
|
|
|
| @@ -359,7 +355,7 @@ proc pointer_args {} {
|
|
|
| # Continue; should stop at call3c and print actual arguments.
|
| # Try dereferencing the arguments.
|
| - if [gdb_test "cont" ".* call3c \\(fp=$hex, dp=$hex\\) .*" "continue to call3c"] {
|
| + if [gdb_test "cont" ".* call3c \\(fp=$hex <f>, dp=$hex <d>\\) .*" "continue to call3c"] {
|
| gdb_suppress_tests;
|
| }
|
|
|
| @@ -392,7 +388,7 @@ proc structs_by_reference {} {
|
|
|
| gdb_run_cmd
|
| gdb_expect {
|
| - -re ".* call4a \\(stp=$hex\\) .*$gdb_prompt $" {
|
| + -re ".* call4a \\(stp=$hex <st>\\) .*$gdb_prompt $" {
|
| pass "run to call4a"
|
| }
|
| -re "$gdb_prompt $" { fail "run to call4a" ; gdb_suppress_tests; }
|
| @@ -403,7 +399,7 @@ proc structs_by_reference {} {
|
|
|
| # Continue; should stop at call4b and print actual arguments.
|
|
|
| - gdb_test "cont" ".* call4b \\(unp=$hex\\) .*" "continue to call4b"
|
| + gdb_test "cont" ".* call4b \\(unp=$hex <un>\\) .*" "continue to call4b"
|
|
|
| # Try dereferencing the arguments.
|
| if { $target_sizeof_long == $target_sizeof_int } {
|
| @@ -969,21 +965,6 @@ proc recursive_structs_by_value {} {
|
| gdb_stop_suppressing_tests;
|
| }
|
|
|
| -proc funcargs_reload { } {
|
| - global objdir
|
| - global subdir
|
| - global binfile
|
| - global srcdir
|
| -
|
| - if [istarget "mips-idt-*"] {
|
| - # Restart because IDT/SIM runs out of file descriptors.
|
| - gdb_exit
|
| - gdb_start
|
| - gdb_reinitialize_dir $srcdir/$subdir
|
| - gdb_load ${binfile}
|
| - }
|
| -}
|
| -
|
| #
|
| # Test for accessing local stack variables in functions which call alloca
|
| #
|
| @@ -1238,46 +1219,31 @@ gdb_test_multiple "show endian" "getting target endian" {
|
| gdb_test_no_output "set print frame-arguments all"
|
|
|
| integral_args
|
| -funcargs_reload
|
| unsigned_integral_args
|
| -funcargs_reload
|
| if {![target_info exists gdb,skip_float_tests]} {
|
| float_and_integral_args
|
| }
|
|
|
| # Test _Complex type here if supported.
|
| if [support_complex_tests] {
|
| - funcargs_reload
|
| complex_args
|
|
|
| - funcargs_reload
|
| complex_integral_args
|
|
|
| if {![target_info exists gdb,skip_float_tests]} {
|
| - funcargs_reload
|
| complex_float_integral_args
|
| }
|
| }
|
|
|
| -funcargs_reload
|
| pointer_args
|
| -funcargs_reload
|
| structs_by_reference
|
| -funcargs_reload
|
| structs_by_value
|
| -funcargs_reload
|
| discard_and_shuffle
|
| -funcargs_reload
|
| shuffle_round_robin
|
| -funcargs_reload
|
| recursive_structs_by_value
|
| -funcargs_reload
|
| localvars_after_alloca
|
| -funcargs_reload
|
| call_after_alloca
|
| -funcargs_reload
|
| localvars_in_indirect_call
|
| -funcargs_reload
|
| test_stepping_over_trampolines
|
|
|
| set timeout $prev_timeout
|
|
|