diff options
author | Tom Tromey <tromey@redhat.com> | 2012-12-20 15:30:25 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2012-12-20 15:30:25 +0000 |
commit | 29f5339515927dd3928d88ce5d270f0ffda4bf3a (patch) | |
tree | 4ffc384b05564302343eff383670730b5438c1a6 | |
parent | 27210e125838a89133680ce2e87c0b9ae4844601 (diff) | |
download | gdb-29f5339515927dd3928d88ce5d270f0ffda4bf3a.zip gdb-29f5339515927dd3928d88ce5d270f0ffda4bf3a.tar.gz gdb-29f5339515927dd3928d88ce5d270f0ffda4bf3a.tar.bz2 |
* serial.c (deprecated_serial_fd): Remove.
* serial.h (deprecated_serial_fd): Remove.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/serial.c | 13 | ||||
-rw-r--r-- | gdb/serial.h | 7 |
3 files changed, 5 insertions, 20 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 103778f..7486371 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2012-12-20 Tom Tromey <tromey@redhat.com> + + * serial.c (deprecated_serial_fd): Remove. + * serial.h (deprecated_serial_fd): Remove. + 2012-12-20 Yao Qi <yao@codesourcery.com> * maint.c (_initialize_maint_cmds): Move code ... diff --git a/gdb/serial.c b/gdb/serial.c index 62d7fa9..5bd221a 100644 --- a/gdb/serial.c +++ b/gdb/serial.c @@ -546,19 +546,6 @@ serial_async (struct serial *scb, scb->ops->async (scb, handler != NULL); } -int -deprecated_serial_fd (struct serial *scb) -{ - /* FIXME: should this output a warning that deprecated code is being - called? */ - if (scb->fd < 0) - { - internal_error (__FILE__, __LINE__, - _("serial: FD not valid")); - } - return scb->fd; /* sigh */ -} - void serial_debug (struct serial *scb, int debug_p) { diff --git a/gdb/serial.h b/gdb/serial.h index b164062..84eaa5b 100644 --- a/gdb/serial.h +++ b/gdb/serial.h @@ -205,13 +205,6 @@ typedef void (serial_event_ftype) (struct serial *scb, void *context); extern void serial_async (struct serial *scb, serial_event_ftype *handler, void *context); -/* Provide direct access to the underlying FD (if any) used to - implement the serial device. This interface is clearly - deprecated. Will call internal_error() if the operation isn't - applicable to the current serial device. */ - -extern int deprecated_serial_fd (struct serial *scb); - /* Trace/debug mechanism. serial_debug() enables/disables internal debugging. |