aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote.c
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1991-04-19 01:36:57 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1991-04-19 01:36:57 +0000
commitf2fc6e7a5c33740b298b2a6d24d89d4bd3a8607b (patch)
treef773467c87389748760e3ec0127f0ee9300ff236 /gdb/remote.c
parent70dcc196e1548122d4959b1e9e4b22c41c27a179 (diff)
downloadgdb-f2fc6e7a5c33740b298b2a6d24d89d4bd3a8607b.zip
gdb-f2fc6e7a5c33740b298b2a6d24d89d4bd3a8607b.tar.gz
gdb-f2fc6e7a5c33740b298b2a6d24d89d4bd3a8607b.tar.bz2
* target.h: Add to_doc and target_preopen.
target.c: Add target_preopen and target_command. Remove target_info. (add_target): Call add_cmd and mess with targetlist->doc. core.c, exec.c, remote-eb.c, remote-nindy.c, remote-vx.c, remote-vx.68.c, inftarg.c, remote.c: Add doc field to target struct. Call target_preopen from open routine.
Diffstat (limited to 'gdb/remote.c')
-rw-r--r--gdb/remote.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/remote.c b/gdb/remote.c
index 9ff5650..3e0acd3 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -162,6 +162,8 @@ remote_open (name, from_tty)
"To open a remote debug connection, you need to specify what serial\n\
device is attached to the remote system (e.g. /dev/ttya).");
+ target_preopen (from_tty);
+
remote_close (0);
#if 0
@@ -805,6 +807,8 @@ dcache_init ()
struct target_ops remote_ops = {
"remote", "Remote serial target in gdb-specific protocol",
+ "Use a remote computer via a serial line, using a gdb-specific protocol.\n\
+Specify the serial device it is connected to (e.g. /dev/ttya).",
remote_open, remote_close,
0, remote_detach, remote_resume, remote_wait, /* attach */
remote_fetch_registers, remote_store_registers,