diff options
author | Kevin Buettner <kevinb@redhat.com> | 2000-07-30 01:48:28 +0000 |
---|---|---|
committer | Kevin Buettner <kevinb@redhat.com> | 2000-07-30 01:48:28 +0000 |
commit | feb494d76a34e3ccf614ceccd68d6ce7b2f1cbd8 (patch) | |
tree | cfa1634e210020e9a0afea2b92c02c6afb77049f /gdb/remote-utils.c | |
parent | 6d631e9666c66111eadeebf8a41348817e73a590 (diff) | |
download | gdb-feb494d76a34e3ccf614ceccd68d6ce7b2f1cbd8.tar.gz |
Protoization.gdb-post-protoization-2000-07-29
Diffstat (limited to 'gdb/remote-utils.c')
-rw-r--r-- | gdb/remote-utils.c | 68 |
1 files changed, 22 insertions, 46 deletions
diff --git a/gdb/remote-utils.c b/gdb/remote-utils.c index de0cbebabb0..795ae39c038 100644 --- a/gdb/remote-utils.c +++ b/gdb/remote-utils.c @@ -78,9 +78,7 @@ static void usage (char *, char *); static void sr_com (char *, int); static void -usage (proto, junk) - char *proto; - char *junk; +usage (char *proto, char *junk) { if (junk != NULL) fprintf_unfiltered (gdb_stderr, "Unrecognized arguments: `%s'.\n", junk); @@ -103,9 +101,7 @@ where DEVICE is the name of a device or HOST:PORT", proto, proto); } void -sr_scan_args (proto, args) - char *proto; - char *args; +sr_scan_args (char *proto, char *args) { int n; char *p, *q; @@ -149,17 +145,14 @@ sr_scan_args (proto, args) } void -gr_generic_checkin () +gr_generic_checkin (void) { sr_write_cr (""); gr_expect_prompt (); } void -gr_open (args, from_tty, gr) - char *args; - int from_tty; - struct gr_settings *gr; +gr_open (char *args, int from_tty, struct gr_settings *gr) { target_preopen (from_tty); sr_scan_args (gr->ops->to_shortname, args); @@ -225,7 +218,7 @@ gr_open (args, from_tty, gr) and doing all the fancy timeout stuff. */ int -sr_readchar () +sr_readchar (void) { int buf; @@ -241,7 +234,7 @@ sr_readchar () } int -sr_pollchar () +sr_pollchar (void) { int buf; @@ -262,8 +255,7 @@ sr_pollchar () /* Keep discarding input from the remote system, until STRING is found. Let the user break out immediately. */ void -sr_expect (string) - char *string; +sr_expect (char *string) { char *p = string; @@ -285,9 +277,7 @@ sr_expect (string) } void -sr_write (a, l) - char *a; - int l; +sr_write (char *a, int l) { int i; @@ -302,8 +292,7 @@ sr_write (a, l) } void -sr_write_cr (s) - char *s; +sr_write_cr (char *s) { sr_write (s, strlen (s)); sr_write ("\r", 1); @@ -311,9 +300,7 @@ sr_write_cr (s) } int -sr_timed_read (buf, n) - char *buf; - int n; +sr_timed_read (char *buf, int n) { int i; char c; @@ -336,8 +323,7 @@ sr_timed_read (buf, n) ignore_space is nonzero, ignore spaces (not newline, tab, etc). */ int -sr_get_hex_digit (ignore_space) - int ignore_space; +sr_get_hex_digit (int ignore_space) { int ch; @@ -361,8 +347,7 @@ sr_get_hex_digit (ignore_space) /* Get a byte from the remote and put it in *BYT. Accept any number leading spaces. */ void -sr_get_hex_byte (byt) - char *byt; +sr_get_hex_byte (char *byt) { int val; @@ -373,7 +358,7 @@ sr_get_hex_byte (byt) /* Read a 32-bit hex word from the remote, preceded by a space */ long -sr_get_hex_word () +sr_get_hex_word (void) { long val; int j; @@ -391,9 +376,7 @@ sr_get_hex_word () FIXME: Can't handle commands that take input. */ static void -sr_com (args, fromtty) - char *args; - int fromtty; +sr_com (char *args, int fromtty) { sr_check_open (); @@ -409,8 +392,7 @@ sr_com (args, fromtty) } void -gr_close (quitting) - int quitting; +gr_close (int quitting) { gr_clear_all_breakpoints (); @@ -432,9 +414,7 @@ gr_close (quitting) with your gdb. */ void -gr_detach (args, from_tty) - char *args; - int from_tty; +gr_detach (char *args, int from_tty) { if (args) error ("Argument given to \"detach\" when remotely debugging."); @@ -450,8 +430,7 @@ gr_detach (args, from_tty) } void -gr_files_info (ops) - struct target_ops *ops; +gr_files_info (struct target_ops *ops) { #ifdef __GO32__ printf_filtered ("\tAttached to DOS asynctsr\n"); @@ -471,7 +450,7 @@ gr_files_info (ops) } void -gr_mourn () +gr_mourn (void) { gr_clear_all_breakpoints (); unpush_target (gr_get_ops ()); @@ -479,7 +458,7 @@ gr_mourn () } void -gr_kill () +gr_kill (void) { return; } @@ -487,10 +466,7 @@ gr_kill () /* This is called not only when we first attach, but also when the user types "run" after having attached. */ void -gr_create_inferior (execfile, args, env) - char *execfile; - char *args; - char **env; +gr_create_inferior (char *execfile, char *args, char **env) { int entry_pt; @@ -613,13 +589,13 @@ gr_multi_scan (list, passthrough) debugged. */ void -gr_prepare_to_store () +gr_prepare_to_store (void) { /* Do nothing, since we assume we can store individual regs */ } void -_initialize_sr_support () +_initialize_sr_support (void) { /* FIXME-now: if target is open... */ add_show_from_set (add_set_cmd ("remotedevice", no_class, |