* 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

@ -312,6 +312,8 @@ eb_open (name, from_tty)
char *p;
target_preopen (from_tty);
/* Find the first whitespace character, it separates dev_name from
prog_name. */
if (name == 0)
@ -907,6 +909,11 @@ eb_read_inferior_memory(memaddr, myaddr, len)
struct target_ops eb_ops = {
"amd-eb", "Remote serial AMD EBMON target",
"Use a remote computer running EBMON connected by a serial line.\n\
Arguments are the name of the device for the serial line,\n\
the speed to connect at in bits per second, and the filename of the\n\
executable as it exists on the remote computer. For example,\n\
target amd-eb /dev/ttya 9600 demo",
eb_open, eb_close,
0, eb_detach, eb_resume, eb_wait,
eb_fetch_register, eb_store_register,