OSDN Git Service

* config/gdbserver.exp (gdbserver_gdb_load): Rename from gdb_load.
authorDaniel Jacobowitz <dan@debian.org>
Sun, 18 Jan 2004 15:23:30 +0000 (15:23 +0000)
committerDaniel Jacobowitz <dan@debian.org>
Sun, 18 Jan 2004 15:23:30 +0000 (15:23 +0000)
commit9b1cfe5a11cd21175cbb001576873b3924f3a86d
treeb85664c5a936fafe3f3e380b4df93f9b581d0cbd
parent2e54e270bbc642da2a20c28a6ab549d0326453f8
* config/gdbserver.exp (gdbserver_gdb_load): Rename from gdb_load.
Remove downloading, guessing the host executable, the calls to
gdb_file_cmd and gdb_target_cmd, and "load" support.
(infer_host_exec): New function broken out from gdb_load.
(gdb_load): New wrapper for gdbserver_gdb_load.
* lib/mi-support.exp (mi_gdb_target_cmd): New function, based on
gdb_target_cmd.  Use -target-select.
(mi_gdb_file_cmd): New function, broken out from mi_gdb_load.
Download binaries to the host.  Clear last_mi_remote_file when
we load a new binary.
(mi_gdb_load): Call mi_gdb_file_cmd.  If gdbserver.exp is loaded,
call gdbserver_gdb_load and mi_gdb_target_cmd.
gdb/testsuite/ChangeLog
gdb/testsuite/config/gdbserver.exp
gdb/testsuite/lib/mi-support.exp