aboutsummaryrefslogtreecommitdiff
path: root/gdb/ser-unix.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2005-01-14 01:59:20 +0000
committerMichael Snyder <msnyder@vmware.com>2005-01-14 01:59:20 +0000
commit2c1ab592667d25321f3da573c5fe1ebcc67d2f10 (patch)
treeb3727d5abb3d09b4854d2cefac4cfec6ff745b80 /gdb/ser-unix.c
parent41ccc9f609deaf4bc719005e83c59caf84eab13b (diff)
downloadgdb-2c1ab592667d25321f3da573c5fe1ebcc67d2f10.zip
gdb-2c1ab592667d25321f3da573c5fe1ebcc67d2f10.tar.gz
gdb-2c1ab592667d25321f3da573c5fe1ebcc67d2f10.tar.bz2
2005-01-13 Michael Snyder <msnyder@redhat.com>
* ser-tcp.c: Whitespace tweaks. * ser-unix.c: Whitespace tweaks. * serial.h: Whitespace tweaks.
Diffstat (limited to 'gdb/ser-unix.c')
-rw-r--r--gdb/ser-unix.c21
1 files changed, 11 insertions, 10 deletions
diff --git a/gdb/ser-unix.c b/gdb/ser-unix.c
index 6f64f41..cf77be0 100644
--- a/gdb/ser-unix.c
+++ b/gdb/ser-unix.c
@@ -565,11 +565,12 @@ do_hardwire_readchar (struct serial *scb, int timeout)
if (timeout > 0)
timeout++;
- /* We have to be able to keep the GUI alive here, so we break the original
- timeout into steps of 1 second, running the "keep the GUI alive" hook
- each time through the loop.
- Also, timeout = 0 means to poll, so we just set the delta to 0, so we
- will only go through the loop once. */
+ /* We have to be able to keep the GUI alive here, so we break the
+ original timeout into steps of 1 second, running the "keep the
+ GUI alive" hook each time through the loop.
+
+ Also, timeout = 0 means to poll, so we just set the delta to 0,
+ so we will only go through the loop once. */
delta = (timeout == 0 ? 0 : 1);
while (1)
@@ -944,12 +945,12 @@ do_unix_readchar (struct serial *scb, int timeout)
int status;
int delta;
- /* We have to be able to keep the GUI alive here, so we break the original
- timeout into steps of 1 second, running the "keep the GUI alive" hook
- each time through the loop.
+ /* We have to be able to keep the GUI alive here, so we break the
+ original timeout into steps of 1 second, running the "keep the
+ GUI alive" hook each time through the loop.
- Also, timeout = 0 means to poll, so we just set the delta to 0, so we
- will only go through the loop once. */
+ Also, timeout = 0 means to poll, so we just set the delta to 0,
+ so we will only go through the loop once. */
delta = (timeout == 0 ? 0 : 1);
while (1)