diff options
author | Daniel Jacobowitz <drow@false.org> | 2007-03-27 17:59:38 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2007-03-27 17:59:38 +0000 |
commit | b741e217929039042129802a61e4510c580ecc79 (patch) | |
tree | 7f95fddc87c00954b65a276ae74af2533d50aa59 /gdb/testsuite/gdb.base/unload.exp | |
parent | d2449ee801d18f5af7317bc72c92bc9bbb7b669e (diff) | |
download | fsf-binutils-gdb-b741e217929039042129802a61e4510c580ecc79.zip fsf-binutils-gdb-b741e217929039042129802a61e4510c580ecc79.tar.gz fsf-binutils-gdb-b741e217929039042129802a61e4510c580ecc79.tar.bz2 |
* 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.base/unload.exp')
-rw-r--r-- | gdb/testsuite/gdb.base/unload.exp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/gdb/testsuite/gdb.base/unload.exp b/gdb/testsuite/gdb.base/unload.exp index 665cd06..105ddc4 100644 --- a/gdb/testsuite/gdb.base/unload.exp +++ b/gdb/testsuite/gdb.base/unload.exp @@ -90,26 +90,27 @@ gdb_test "info break" \ set unloadshr_line [gdb_get_line_number "unloadshr break" ${libsrcfile}] -gdb_test "run" \ -"Starting program.*unload.* -Breakpoint.*at.* +gdb_run_cmd +gdb_test "" \ +"Breakpoint.*at.* Pending breakpoint \"shrfunc1\" resolved.* Breakpoint.*, shrfunc1 \\\(x=3\\\).*unloadshr.c:$unloadshr_line.*" \ "running program" gdb_test "continue" \ -"Continuing.*y is 7.*warning: Temporarily disabling breakpoints for.*unloadshr.sl.*Program exited normally." \ +"Continuing.*warning: Temporarily disabling breakpoints for.*unloadshr.sl.*Program exited normally." \ "continuing to end of program" # # Try to rerun program and verify that shared breakpoint is reset properly # -gdb_test "run" \ +gdb_run_cmd +gdb_test "" \ ".*Breakpoint.*shrfunc1.*at.*unloadshr.c:$unloadshr_line.*" \ "rerun to shared library breakpoint" gdb_test "continue" \ -"Continuing.*y is 7.*warning: Temporarily disabling breakpoints for.*unloadshr.sl.*Program exited normally." \ +"Continuing.*warning: Temporarily disabling breakpoints for.*unloadshr.sl.*Program exited normally." \ "continuing to end of program second time" |