aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorDoug Evans <xdje42@gmail.com>2015-02-10 22:07:06 -0800
committerDoug Evans <xdje42@gmail.com>2015-02-10 22:07:06 -0800
commit7e60a48ee004387aefcef48391ec93af203c6369 (patch)
tree5f7d456bcc3461e65ed4ba761dfd9a77707b9b17 /gdb
parenteaaf76abdc6444e07860067e01c8135303a429ca (diff)
downloadgdb-7e60a48ee004387aefcef48391ec93af203c6369.zip
gdb-7e60a48ee004387aefcef48391ec93af203c6369.tar.gz
gdb-7e60a48ee004387aefcef48391ec93af203c6369.tar.bz2
lib/gdb.exp (gdb_load): Always return a result.
gdb/testsuite/ChangeLog: * lib/gdb.exp (gdb_load): Always return a result.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/testsuite/ChangeLog4
-rw-r--r--gdb/testsuite/lib/gdb.exp2
2 files changed, 6 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index bc4c022..a8ddf04 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -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.
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",