lib/gdb.exp (gdb_load): Always return a result.

gdb/testsuite/ChangeLog:

	* lib/gdb.exp (gdb_load): Always return a result.
This commit is contained in:
Doug Evans 2015-02-10 22:07:06 -08:00
parent eaaf76abdc
commit 7e60a48ee0
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2015-02-10 Doug Evans <xdje42@gmail.com>
* lib/gdb.exp (gdb_load): Always return a result.
2015-02-10 Pedro Alves <palves@redhat.com>
* gdb.threads/signal-sigtrap.c: New file.

View File

@ -3701,12 +3701,14 @@ proc gdb_load_shlibs { args } {
#
# gdb_load -- load a file into the debugger. Specifying no file
# defaults to the executable currently being debugged.
# The return value is 0 for success, -1 for failure.
# Many files in config/*.exp override this procedure.
#
proc gdb_load { arg } {
if { $arg != "" } {
return [gdb_file_cmd $arg]
}
return 0
}
# gdb_reload -- load a file into the target. Called before "running",