diff options
author | Stu Grossman <grossman@cygnus> | 1995-12-07 00:21:51 +0000 |
---|---|---|
committer | Stu Grossman <grossman@cygnus> | 1995-12-07 00:21:51 +0000 |
commit | 4c5bc9f44ce027ac41df9ca835b6893a09ce8e46 (patch) | |
tree | b1ebe18b0032ec6a85ac281070d25a429c94bc6e /gdb/remote-mips.c | |
parent | 95b3cb6b456cf873fed1a70d9bbb124cdf590690 (diff) | |
download | gdb-4c5bc9f44ce027ac41df9ca835b6893a09ce8e46.zip gdb-4c5bc9f44ce027ac41df9ca835b6893a09ce8e46.tar.gz gdb-4c5bc9f44ce027ac41df9ca835b6893a09ce8e46.tar.bz2 |
* remote-mips.c (mips_receive_header): Allow mips_syn_garbage to be
user-settable (via set syn-garbage-limit). Setting it to -1 makes
it unlimited.
Diffstat (limited to 'gdb/remote-mips.c')
-rw-r--r-- | gdb/remote-mips.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/gdb/remote-mips.c b/gdb/remote-mips.c index f6600b1..db3223b 100644 --- a/gdb/remote-mips.c +++ b/gdb/remote-mips.c @@ -509,7 +509,8 @@ mips_receive_header (hdr, pgarbage, ch, timeout) } ++*pgarbage; - if (*pgarbage > mips_syn_garbage) + if (mips_syn_garbage > 0 + && *pgarbage > mips_syn_garbage) mips_error ("Debug protocol failure: more than %d characters before a sync.", mips_syn_garbage); } @@ -2169,4 +2170,14 @@ _initialize_remote_mips () This is the number of seconds to wait for an acknowledgement to a packet\n\ before resending the packet.", &setlist), &showlist); + + add_show_from_set ( + add_set_cmd ("syn-garbage-limit", no_class, var_zinteger, + (char *) &mips_syn_garbage, +"Set the maximum number of characters to ignore when scanning for a SYN.\n\ +This is the maximum number of characters GDB will ignore when trying to\n\ +synchronize with the remote system. A value of -1 means that there is no limit\n\ +(Note that these characters are printed out even though they are ignored.)", + &setlist), + &showlist); } |