diff options
author | Michael Snyder <msnyder@vmware.com> | 2011-01-11 21:53:25 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 2011-01-11 21:53:25 +0000 |
commit | c378eb4eaae2baecb17b41ba928daf9dc74b1aab (patch) | |
tree | 0b086b28cdcda59cb9004a848297fb08d804ed20 /gdb/serial.c | |
parent | 6c162d5eb67081ad91106259239a9a1ef00ec7a6 (diff) | |
download | gdb-c378eb4eaae2baecb17b41ba928daf9dc74b1aab.zip gdb-c378eb4eaae2baecb17b41ba928daf9dc74b1aab.tar.gz gdb-c378eb4eaae2baecb17b41ba928daf9dc74b1aab.tar.bz2 |
2011-01-11 Michael Snyder <msnyder@vmware.com>
* s390-tdep.c: Comment cleanup, mostly periods and spaces.
* score-tdep.c: Ditto.
* score-tdep.h: Ditto.
* ser-base.c: Ditto.
* ser-go32.c: Ditto.
* serial.c: Ditto.
* serial.h: Ditto.
* ser-mingw.c: Ditto.
* ser-pipe.c: Ditto.
* ser-tcp.c: Ditto.
* ser-unix.c: Ditto.
* sh64-tdep.c: Ditto.
* shnbsd-nat.c: Ditto.
* sh-tdep.c: Ditto.
* sh-tdep.h: Ditto.
* solib.c: Ditto.
* solib-darwin.c: Ditto.
* solib-frv.c: Ditto.
* solib.h: Ditto.
* solib-irix.c: Ditto.
* solib-osf.c: Ditto.
* solib-pa64.c: Ditto.
* solib-som.c: Ditto.
* solib-spu.c: Ditto.
* solib-sunos.c: Ditto.
* solib-svr4.c: Ditto.
* solist.h: Ditto.
* sol-thread.c: Ditto.
* somread.c: Ditto.
* source.c: Ditto.
* source.h: Ditto.
* sparc64-linux-tdep.c: Ditto.
* sparc64-tdep.c: Ditto.
* sparc-linux-nat.c: Ditto.
* sparc-linux-tdep.c: Ditto.
* sparc-sol2-nat.c: Ditto.
* sparc-sol2-tdep.c: Ditto.
* sparc-tdep.c: Ditto.
* sparc-tdep.h: Ditto.
* spu-tdep.c: Ditto.
* stabsread.c: Ditto.
* stabsread.h: Ditto.
* stack.c: Ditto.
* symfile.c: Ditto.
* symfile.h: Ditto.
* symmisc.c: Ditto.
* symtab.c: Ditto.
* symtab.h: Ditto.
* target.c: Ditto.
* target-descriptions.c: Ditto.
* target-descriptions.h: Ditto.
* target.h: Ditto.
* target-memory.c: Ditto.
* terminal.h: Ditto.
* thread.c: Ditto.
* top.c: Ditto.
* tracepoint.c: Ditto.
* tracepoint.h: Ditto.
* trad-frame.h: Ditto.
* typeprint.c: Ditto.
Diffstat (limited to 'gdb/serial.c')
-rw-r--r-- | gdb/serial.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/gdb/serial.c b/gdb/serial.c index 10b37f1..8809abd 100644 --- a/gdb/serial.c +++ b/gdb/serial.c @@ -27,24 +27,24 @@ extern void _initialize_serial (void); -/* Is serial being debugged? */ +/* Is serial being debugged? */ static int global_serial_debug_p; -/* Linked list of serial I/O handlers */ +/* Linked list of serial I/O handlers. */ static struct serial_ops *serial_ops_list = NULL; -/* This is the last serial stream opened. Used by connect command. */ +/* This is the last serial stream opened. Used by connect command. */ static struct serial *last_serial_opened = NULL; -/* Pointer to list of scb's. */ +/* Pointer to list of scb's. */ static struct serial *scb_base; /* Non-NULL gives filename which contains a recording of the remote session, - suitable for playback by gdbserver. */ + suitable for playback by gdbserver. */ static char *serial_logfile = NULL; static struct ui_file *serial_logfp = NULL; @@ -62,7 +62,7 @@ static const char *serial_logbase = logbase_ascii; static int serial_current_type = 0; -/* Log char CH of type CHTYPE, with TIMEOUT */ +/* Log char CH of type CHTYPE, with TIMEOUT. */ /* Define bogus char to represent a BREAK. Should be careful to choose a value that can't be confused with a normal char, or an error code. */ @@ -143,7 +143,7 @@ serial_log_command (const char *cmd) fputs_unfiltered (cmd, serial_logfp); /* Make sure that the log file is as up-to-date as possible, - in case we are getting ready to dump core or something. */ + in case we are getting ready to dump core or something. */ gdb_flush (serial_logfp); } @@ -167,7 +167,7 @@ serial_add_interface (struct serial_ops *optable) serial_ops_list = optable; } -/* Open up a device or a network socket, depending upon the syntax of NAME. */ +/* Open up a device or a network socket, depending upon the syntax of NAME. */ struct serial * serial_open (const char *name) @@ -327,7 +327,7 @@ do_serial_close (struct serial *scb, int really_close) fputs_unfiltered ("\nEnd of log\n", serial_logfp); serial_current_type = 0; - /* XXX - What if serial_logfp == gdb_stdout or gdb_stderr? */ + /* XXX - What if serial_logfp == gdb_stdout or gdb_stderr? */ ui_file_delete (serial_logfp); serial_logfp = NULL; } @@ -342,7 +342,7 @@ do_serial_close (struct serial *scb, int really_close) if (scb->refcnt > 0) return; - /* ensure that the FD has been taken out of async mode */ + /* ensure that the FD has been taken out of async mode. */ if (scb->async_handler != NULL) serial_async (scb, NULL, NULL); @@ -385,7 +385,7 @@ serial_readchar (struct serial *scb, int timeout) int ch; /* FIXME: cagney/1999-10-11: Don't enable this check until the ASYNC - code is finished. */ + code is finished. */ if (0 && serial_is_async_p (scb) && timeout < 0) internal_error (__FILE__, __LINE__, _("serial_readchar: blocking read in async mode")); @@ -396,7 +396,7 @@ serial_readchar (struct serial *scb, int timeout) serial_logchar (serial_logfp, 'r', ch, timeout); /* Make sure that the log file is as up-to-date as possible, - in case we are getting ready to dump core or something. */ + in case we are getting ready to dump core or something. */ gdb_flush (serial_logfp); } if (serial_debug_p (scb)) @@ -421,7 +421,7 @@ serial_write (struct serial *scb, const char *str, int len) serial_logchar (serial_logfp, 'w', str[count] & 0xff, 0); /* Make sure that the log file is as up-to-date as possible, - in case we are getting ready to dump core or something. */ + in case we are getting ready to dump core or something. */ gdb_flush (serial_logfp); } if (serial_debug_p (scb)) @@ -557,7 +557,7 @@ int deprecated_serial_fd (struct serial *scb) { /* FIXME: should this output a warning that deprecated code is being - called? */ + called? */ if (scb->fd < 0) { internal_error (__FILE__, __LINE__, |