* 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.
This commit is contained in:
Jim Kingdon
1991-04-19 01:36:57 +00:00
parent 70dcc196e1
commit f2fc6e7a5c
6 changed files with 101 additions and 76 deletions

View File

@@ -220,6 +220,8 @@ nindy_open (name, from_tty)
if (!name)
error_no_arg ("serial port device name");
target_preopen (from_tty);
nindy_close (0);
have_regs = regs_changed = 0;
@@ -932,6 +934,11 @@ nindy_before_main_loop ()
struct target_ops nindy_ops = {
"nindy", "Remote serial target in i960 NINDY-specific protocol",
"Use a remote i960 system running NINDY connected by a serial line.\n\
Specify the name of the device the serial line is connected to.\n\
The speed (baud rate), whether to use the old NINDY protocol,\n\
and whether to send a break on startup, are controlled by options\n\
specified when you started GDB.",
nindy_open, nindy_close,
0, nindy_detach, nindy_resume, nindy_wait,
nindy_fetch_registers, nindy_store_registers,