diff options
author | Daniel Jacobowitz <dan@debian.org> | 2007-03-27 17:59:38 +0000 |
---|---|---|
committer | Daniel Jacobowitz <dan@debian.org> | 2007-03-27 17:59:38 +0000 |
commit | 0d3b3d239dd28f0772e46f27cad6a1e4a8c29cee (patch) | |
tree | 3aa5cc65aa431b781edfe9aa12ce3bc835c10738 /gdb/testsuite/gdb.server | |
parent | de0e08f74f39e1dc46f7761fbf9be6e849d1b5fb (diff) | |
download | gdb-0d3b3d239dd28f0772e46f27cad6a1e4a8c29cee.tar.gz |
* config/gdbserver.exp (gdbserver_gdb_load): Update argument list.
(gdb_load): Delete, replace with...
(gdb_reload): ...this.
* gdb.server/server-run.exp: Use gdb_load and gdbserver_run.
* gdb.server/server-mon.exp: Likewise.
* lib/gdb.exp (gdb_run_cmd): Use gdb_reload.
(gdb_start_cmd): New.
(gdb_file_cmd): Save the last loaded file.
(gdb_reload): New.
(gdb_gnu_strip_debug): Use transform.
* lib/gdbserver-support.exp (gdbserver_spawn): Move file download
support here. Use new $last_loaded_file. Check mtime.
(gdb_target_cmd): Handle ObjC failure case.
(infer_host_exec): Delete.
(gdbserver_load): Rename to...
(gdbserver_run): ...this. Simplify.
* lib/mi-support.exp (mi_gdb_file_cmd): Set last_loaded_file.
(mi_gdb_load): Move most contents to a new function...
(mi_gdb_target_load): ...here. Simplify call to gdbserver_gdb_load.
(mi_run_cmd): Use mi_gdb_target_load.
* gdb.base/break.exp, gdb.base/ending-run.exp, gdb.base/pending.exp,
gdb.base/sepdebug.exp, gdb.base/unload.exp, gdb.objc/objcdecode.exp:
Use gdb_run_cmd.
* gdb.base/charsign.exp: Remove incorrect comment.
* gdb.base/dbx.exp (gdb_file_cmd): Set last_loaded_file.
* gdb.ada/exec_changed.exp, gdb.ada/null_record.exp, gdb.ada/start.exp,
gdb.base/start.exp: Use gdb_start_cmd.
Diffstat (limited to 'gdb/testsuite/gdb.server')
-rw-r--r-- | gdb/testsuite/gdb.server/server-mon.exp | 5 | ||||
-rw-r--r-- | gdb/testsuite/gdb.server/server-run.exp | 3 |
2 files changed, 5 insertions, 3 deletions
diff --git a/gdb/testsuite/gdb.server/server-mon.exp b/gdb/testsuite/gdb.server/server-mon.exp index 579c13ed37f..d014a98eb62 100644 --- a/gdb/testsuite/gdb.server/server-mon.exp +++ b/gdb/testsuite/gdb.server/server-mon.exp @@ -34,10 +34,11 @@ if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb gdb_exit gdb_start - -gdbserver_load $binfile "" +gdb_load $binfile gdb_reinitialize_dir $srcdir/$subdir +gdbserver_run "" + gdb_test_multiple "monitor help" "" { -re "Unknown monitor command.*$gdb_prompt $" { fail "monitor help" diff --git a/gdb/testsuite/gdb.server/server-run.exp b/gdb/testsuite/gdb.server/server-run.exp index 039da5c32af..4cd8e62f3f3 100644 --- a/gdb/testsuite/gdb.server/server-run.exp +++ b/gdb/testsuite/gdb.server/server-run.exp @@ -34,8 +34,9 @@ if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb gdb_exit gdb_start +gdb_load $binfile -gdbserver_load $binfile "" +gdbserver_run "" gdb_reinitialize_dir $srcdir/$subdir gdb_breakpoint main |