This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[COMMITTED PATCH] lib/gdb.exp (gdb_load): Always return a result.
- From: Doug Evans <xdje42 at gmail dot com>
- To: gdb-patches at sourceware dot org
- Date: Tue, 10 Feb 2015 22:10:14 -0800
- Subject: [COMMITTED PATCH] lib/gdb.exp (gdb_load): Always return a result.
- Authentication-results: sourceware.org; auth=none
Hi.
Committed as obvious.
2015-02-10 Doug Evans <xdje42@gmail.com>
* lib/gdb.exp (gdb_load): Always return a result.
diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp
index a6f200f..bbc657c 100644
--- a/gdb/testsuite/lib/gdb.exp
+++ b/gdb/testsuite/lib/gdb.exp
@@ -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",