|
GDB (xrefs)
|
#include "defs.h"#include "serial.h"#include "ser-base.h"#include "ser-unix.h"#include <fcntl.h>#include <sys/types.h>#include "terminal.h"#include <sys/socket.h>#include "gdbsupport/gdb_sys_time.h"#include "gdbsupport/gdb_select.h"#include "gdbcmd.h"#include "gdbsupport/filestuff.h"#include <termios.h>#include "gdbsupport/scoped_ignore_sigttou.h"Go to the source code of this file.
Classes | |
| struct | hardwire_ttystate |
Macros | |
| #define | B19200 EXTA |
| #define | B38400 EXTB |
Functions | |
| static int | hardwire_open (struct serial *scb, const char *name) |
| static void | hardwire_raw (struct serial *scb) |
| static int | rate_to_code (int rate) |
| static int | hardwire_setbaudrate (struct serial *scb, int rate) |
| static int | hardwire_setparity (struct serial *scb, int parity) |
| static void | hardwire_close (struct serial *scb) |
| static int | get_tty_state (struct serial *scb, struct hardwire_ttystate *state) |
| static int | set_tty_state (struct serial *scb, struct hardwire_ttystate *state) |
| static serial_ttystate | hardwire_get_tty_state (struct serial *scb) |
| static int | hardwire_set_tty_state (struct serial *scb, serial_ttystate state) |
| static void | hardwire_print_tty_state (struct serial *, serial_ttystate, struct ui_file *) |
| static int | hardwire_drain_output (struct serial *) |
| static int | hardwire_flush_output (struct serial *) |
| static int | hardwire_flush_input (struct serial *) |
| static int | hardwire_send_break (struct serial *) |
| static int | hardwire_setstopbits (struct serial *, int) |
| static serial_ttystate | hardwire_copy_tty_state (struct serial *scb, serial_ttystate ttystate) |
| void | _initialize_ser_hardwire () |
| int | ser_unix_read_prim (struct serial *scb, size_t count) |
| int | ser_unix_write_prim (struct serial *scb, const void *buf, size_t len) |
Variables | ||
| struct { | ||
| int rate | ||
| int code | ||
| } | baudtab [] | |
| static const struct serial_ops | hardwire_ops | |
| #define B19200 EXTA |
Definition at line 230 of file ser-unix.c.
| #define B38400 EXTB |
Definition at line 234 of file ser-unix.c.
| void _initialize_ser_hardwire | ( | ) |
Definition at line 568 of file ser-unix.c.
Referenced by initialize_all_files().
|
static |
Definition at line 86 of file ser-unix.c.
References serial::fd, and hardwire_ttystate::termios.
Referenced by hardwire_get_tty_state(), hardwire_raw(), hardwire_setbaudrate(), hardwire_setparity(), and hardwire_setstopbits().
|
static |
Definition at line 528 of file ser-unix.c.
References serial::fd.
|
static |
Definition at line 118 of file ser-unix.c.
|
static |
Definition at line 166 of file ser-unix.c.
References serial::fd.
|
static |
Definition at line 181 of file ser-unix.c.
References serial::fd, and ser_base_flush_input().
|
static |
Definition at line 175 of file ser-unix.c.
References serial::fd.
|
static |
Definition at line 104 of file ser-unix.c.
References get_tty_state(), and xfree().
|
static |
Definition at line 76 of file ser-unix.c.
References serial::fd, and name.
|
static |
Definition at line 138 of file ser-unix.c.
References gdb_printf(), and hardwire_ttystate::termios.
|
static |
Definition at line 195 of file ser-unix.c.
References gdb_printf(), gdb_stderr, get_tty_state(), set_tty_state(), and hardwire_ttystate::termios.
|
static |
Definition at line 189 of file ser-unix.c.
References serial::fd.
|
static |
Definition at line 128 of file ser-unix.c.
References set_tty_state().
|
static |
Definition at line 441 of file ser-unix.c.
References get_tty_state(), rate, rate_to_code(), set_tty_state(), and hardwire_ttystate::termios.
|
static |
Definition at line 496 of file ser-unix.c.
References GDBPARITY_EVEN, GDBPARITY_NONE, GDBPARITY_ODD, get_tty_state(), parity, set_tty_state(), and hardwire_ttystate::termios.
|
static |
Definition at line 464 of file ser-unix.c.
References get_tty_state(), SERIAL_1_AND_A_HALF_STOPBITS, SERIAL_1_STOPBITS, SERIAL_2_STOPBITS, set_tty_state(), and hardwire_ttystate::termios.
|
static |
Definition at line 404 of file ser-unix.c.
Referenced by hardwire_setbaudrate().
| int ser_unix_read_prim | ( | struct serial * | scb, |
| size_t | count ) |
Definition at line 586 of file ser-unix.c.
References serial::buf, serial::fd, and read().
| int ser_unix_write_prim | ( | struct serial * | scb, |
| const void * | buf, | ||
| size_t | len ) |
Definition at line 592 of file ser-unix.c.
References serial::fd, and serial_ops::write.
|
static |
Definition at line 95 of file ser-unix.c.
References serial::fd, and hardwire_ttystate::termios.
Referenced by hardwire_raw(), hardwire_set_tty_state(), hardwire_setbaudrate(), hardwire_setparity(), and hardwire_setstopbits().
| struct { ... } baudtab[] |
Referenced by rate_to_code().
| int code |
Definition at line 243 of file ser-unix.c.
|
static |
Definition at line 541 of file ser-unix.c.
| int rate |
Definition at line 242 of file ser-unix.c.
Referenced by captured_main_1(), dos_baudconv(), dos_setbaudrate(), hardwire_setbaudrate(), print_transfer_performance(), rate_to_code(), ser_windows_setbaudrate(), and serial_setbaudrate().