aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote-udi.c
diff options
context:
space:
mode:
authorStu Grossman <grossman@cygnus>1993-10-21 00:49:42 +0000
committerStu Grossman <grossman@cygnus>1993-10-21 00:49:42 +0000
commitd0d8484a4a8b7c803473eaadb4a30513cd8b8d09 (patch)
treedf9a1980445b2eca7743d5f58970c8fae8947c5c /gdb/remote-udi.c
parentfc81adb803b6f43bc80ebb049472b660bd2e33fa (diff)
downloadfsf-binutils-gdb-d0d8484a4a8b7c803473eaadb4a30513cd8b8d09.zip
fsf-binutils-gdb-d0d8484a4a8b7c803473eaadb4a30513cd8b8d09.tar.gz
fsf-binutils-gdb-d0d8484a4a8b7c803473eaadb4a30513cd8b8d09.tar.bz2
* main.c: Make baud_rate and remote_debug be global variables,
remove #include "remote-utils.h". This makes it possible to build GDB without remote-utils.c. Also, move setting of remote_debug into main, so that all remote*.c files can use it (not just the serial line ones). And, make baud_rate be an int. * remote-udi.c: Change kiodebug to remote_debug. * remote-utils.c: Move setting of baud rate and debug into main.c. * remote-utils.h: Redefine sr_{get set}_debug and sr_{get set}_baud to use baud_rate and remote_debug globals for compatibility. * remote.c: Use remote_debug and baud_rate globals directly, instead of sr_ functions, so that we don't need to load remote-utils.c.
Diffstat (limited to 'gdb/remote-udi.c')
-rw-r--r--gdb/remote-udi.c17
1 files changed, 5 insertions, 12 deletions
diff --git a/gdb/remote-udi.c b/gdb/remote-udi.c
index bfcbea1..3044458 100644
--- a/gdb/remote-udi.c
+++ b/gdb/remote-udi.c
@@ -50,7 +50,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
/* access the register store directly, without going through
the normal handler functions. This avoids an extra data copy. */
-static int kiodebug;
+extern int remote_debug;
extern int stop_soon_quietly; /* for wait_for_inferior */
extern struct value *call_function_by_hand();
static void udi_resume PARAMS ((int pid, int step, int sig));
@@ -665,7 +665,7 @@ int regno;
register_valid[i] = 1;
}
- if (kiodebug)
+ if (remote_debug)
{
printf("Fetching all registers\n");
printf("Fetching PC0 = 0x%x, PC1 = 0x%x, PC2 = 0x%x\n",
@@ -706,7 +706,7 @@ int regno;
return;
}
- if (kiodebug)
+ if (remote_debug)
{
printf("Storing all registers\n");
printf("PC0 = 0x%x, PC1 = 0x%x, PC2 = 0x%x\n", read_register(NPC_REGNUM),
@@ -1331,7 +1331,7 @@ fetch_register (regno)
supply_register(regno, (char *) &To);
- if (kiodebug)
+ if (remote_debug)
printf("Fetching register %s = 0x%x\n", reg_names[regno], To);
}
/*****************************************************************************/
@@ -1352,7 +1352,7 @@ store_register (regno)
From = read_register (regno); /* get data value */
- if (kiodebug)
+ if (remote_debug)
printf("Storing register %s = 0x%x\n", reg_names[regno], From);
if (regno == GR1_REGNUM)
@@ -1542,13 +1542,6 @@ Arguments are\n\
void _initialize_remote_udi()
{
add_target (&udi_ops);
- add_show_from_set (
- add_set_cmd ("remotedebug", no_class, var_boolean,
- (char *)&kiodebug,
- "Set debugging of UDI I/O.\n\
-When enabled, debugging info is displayed.",
- &setlist),
- &showlist);
}
#ifdef NO_HIF_SUPPORT