This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


>>>>> "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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]