[patch] testsuite: Fix mi-solib.exp without debuginfos [Re: [3/3] RFC: fix PR mi/8444]

Tom Tromey tromey@redhat.com
Fri Dec 9 21:26:00 GMT 2011


>>>>> "Jan" == Jan Kratochvil <jan.kratochvil@redhat.com> writes:

Jan> I have checked the result of mi_expect_stop is not used anywhere so it is
Jan> questionable what it should return.

Unfortunately, a Tcl proc returns its last computed value if there is no
explicit return.  So, this caused:

ERROR: tcl error sourcing ../../../archer/gdb/testsuite/gdb.ada/mi_catch_ex.exp.
ERROR: missing operand at _@_
in expression "!_@_"
    (parsing expression "!")
    invoked from within
"if ![mi_run_to_main] then {
   fail "Cannot run to main, testcase aborted"
   return 0
}"
    (file "../../../archer/gdb/testsuite/gdb.ada/mi_catch_ex.exp" line 109)
    invoked from within
"source ../../../archer/gdb/testsuite/gdb.ada/mi_catch_ex.exp"
    ("uplevel" body line 1)
    invoked from within
"uplevel #0 source ../../../archer/gdb/testsuite/gdb.ada/mi_catch_ex.exp"
    invoked from within
"catch "uplevel #0 source $test_file_name""

Tom



More information about the Gdb-patches mailing list