* remote-udi.c: Remove LOG_FILE stuff; superceded by "set remotedebug".

* remote-mon.c: Remove commented out "set remotedebug" command.
	* remote-nindy.c: Clean up comment about wanting alternative to
	options specified on the GDB command line.
This commit is contained in:
Jim Kingdon 1993-10-27 20:35:25 +00:00
parent bc28a06cc1
commit b10f4dd977
4 changed files with 9 additions and 30 deletions

View File

@ -1,5 +1,10 @@
Wed Oct 27 13:43:07 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
* remote-udi.c: Remove LOG_FILE stuff; superceded by "set remotedebug".
* remote-mon.c: Remove commented out "set remotedebug" command.
* remote-nindy.c: Clean up comment about wanting alternative to
options specified on the GDB command line.
* fork-child.c (fork_inferior): Set inferior_pid before calling
init_trace_fun. Move the code which gets us through the shell
to new function startup_inferior.

View File

@ -1177,14 +1177,6 @@ Specify the serial device it is connected to (e.g. /dev/ttya).",
void
_initialize_remote_monitors ()
{
/*** add_show_from_set (
add_set_cmd ("remotedebug", no_class, var_boolean,
(char *)&kiodebug,
"Set debugging of I/O to a serial based Monitor.\n\
When enabled, debugging info is displayed.",
&setlist),
&showlist);
***/
add_show_from_set (
add_set_cmd ("hash", no_class, var_boolean,
(char *)&hashmark,

View File

@ -174,9 +174,9 @@ nindy_close (quitting)
}
/* Open a connection to a remote debugger.
FIXME, there should be a way to specify the various options that are
now specified with gdb command-line options. (baud_rate, old_protocol,
and initial_brk) */
FIXME, there should be "set" commands for the options that are
now specified with gdb command-line options (old_protocol,
and initial_brk). */
void
nindy_open (name, from_tty)
char *name; /* "/dev/ttyXX", "ttyXX", or "XX": tty to be opened */
@ -188,7 +188,7 @@ nindy_open (name, from_tty)
error_no_arg ("serial port device name");
target_preopen (from_tty);
nindy_close (0);
have_regs = regs_changed = 0;

View File

@ -71,12 +71,6 @@ char CoffFileName[100] = "";
#define FREEZE_MODE (read_register(CPS_REGNUM) & 0x400)
#define USE_SHADOW_PC ((processor_type == a29k_freeze_mode) && FREEZE_MODE)
/* FIXME: Replace with `set remotedebug'. Also, seems not to be used. */
#define LLOG_FILE "udi.log"
#if defined (LOG_FILE)
FILE *log_file;
#endif
static int timeout = 5;
extern struct target_ops udi_ops; /* Forward declaration */
@ -234,11 +228,6 @@ udi_open (name, from_tty)
push_target (&udi_ops);
#if defined (LOG_FILE)
log_file = fopen (LOG_FILE, "w");
if (log_file == NULL)
error ("udi_open: fopen(%s) %s", LOG_FILE, safe_strerror(errno));
#endif
/*
** Initialize target configuration structure (global)
*/
@ -312,13 +301,6 @@ udi_close (quitting) /*FIXME: how is quitting used */
udi_session_id = -1;
inferior_pid = 0;
#if defined (LOG_FILE)
if (ferror (log_file))
printf ("Error writing log file.\n");
if (fclose (log_file) != 0)
printf ("Error closing log file.\n");
#endif
printf_filtered (" Ending remote debugging\n");
}