aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote-utils.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-utils.c
parentfc81adb803b6f43bc80ebb049472b660bd2e33fa (diff)
downloadgdb-d0d8484a4a8b7c803473eaadb4a30513cd8b8d09.zip
gdb-d0d8484a4a8b7c803473eaadb4a30513cd8b8d09.tar.gz
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-utils.c')
-rw-r--r--gdb/remote-utils.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/gdb/remote-utils.c b/gdb/remote-utils.c
index efe1669..f4f25e4 100644
--- a/gdb/remote-utils.c
+++ b/gdb/remote-utils.c
@@ -52,8 +52,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "remote-utils.h"
struct _sr_settings sr_settings = {
- 0, /* debug */
- 9600, /* baud */
4, /* timeout:
remote-hms.c had 2
remote-bug.c had "with a timeout of 2, we time out waiting for
@@ -625,16 +623,9 @@ gr_store_word (addr, word)
void
_initialize_sr_support ()
{
- add_show_from_set (add_set_cmd ("remotedebug", no_class,
- var_zinteger, (char *)&sr_settings.debug,
- "Set debugging of remote serial I/O.\n\
-When non-zero, each packet sent or received with the remote target\n\
-is displayed. Higher numbers produce more debugging.", &setlist),
- &showlist);
-
/* FIXME-now: if target is open when baud changes... */
add_show_from_set (add_set_cmd ("remotebaud", no_class,
- var_zinteger, (char *)&sr_settings.baud_rate,
+ var_zinteger, (char *)&baud_rate,
"Set baud rate for remote serial I/O.\n\
This value is used to set the speed of the serial port when debugging\n\
using remote targets.", &setlist),