This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] testsuite: Fix mi-solib.exp without debuginfos [Re: [3/3] RFC: fix PR mi/8444]
- From: Tom Tromey <tromey at redhat dot com>
- To: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- Cc: Pedro Alves <pedro at codesourcery dot com>, gdb-patches at sourceware dot org, Ulrich Weigand <uweigand at de dot ibm dot com>
- Date: Fri, 09 Dec 2011 14:00:01 -0700
- Subject: Re: [patch] testsuite: Fix mi-solib.exp without debuginfos [Re: [3/3] RFC: fix PR mi/8444]
- References: <m31usz3la9.fsf@fleche.redhat.com> <201111251608.pAPG81oE002175@d06av02.portsmouth.uk.ibm.com> <20111202011800.GA23680@host2.jankratochvil.net>
>>>>> "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