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 <sys/time.h>
#include "gdb_select.h"
#include "gdbcmd.h"
#include "filestuff.h"
Go to the source code of this file.
Classes | |
struct | hardwire_ttystate |
Macros | |
#define | B19200 EXTA |
#define | B38400 EXTB |
Variables | |
struct { | |
int rate | |
int code | |
} | baudtab [] |
static const struct serial_ops | hardwire_ops |
#define B19200 EXTA |
Definition at line 671 of file ser-unix.c.
#define B38400 EXTB |
Definition at line 675 of file ser-unix.c.
void _initialize_ser_hardwire | ( | void | ) |
Definition at line 986 of file ser-unix.c.
References _, add_setshow_boolean_cmd(), no_class, serial_add_interface(), setlist, and showlist.
Definition at line 594 of file ser-unix.c.
References serial::buf, serial::bufcnt, serial::bufp, deprecated_ui_loop_hook, serial::fd, read(), SERIAL_ERROR, SERIAL_TIMEOUT, status, serial::timeout_remaining, and wait_for().
Referenced by hardwire_readchar().
|
static |
Definition at line 119 of file ser-unix.c.
References serial::fd, and hardwire_ttystate::termios.
Referenced by hardwire_drain_output(), hardwire_get_tty_state(), hardwire_raw(), hardwire_setbaudrate(), hardwire_setparity(), hardwire_setstopbits(), and wait_for().
|
static |
Definition at line 943 of file ser-unix.c.
References serial::fd.
|
static |
Definition at line 195 of file ser-unix.c.
References xmalloc().
Definition at line 308 of file ser-unix.c.
References serial::fd, and get_tty_state().
Definition at line 355 of file ser-unix.c.
References serial::fd, and ser_base_flush_input().
Definition at line 338 of file ser-unix.c.
References serial::fd.
|
static |
Definition at line 179 of file ser-unix.c.
References get_tty_state(), xfree(), and xmalloc().
|
static |
Definition at line 216 of file ser-unix.c.
References set_tty_state().
Definition at line 109 of file ser-unix.c.
References serial::fd, and gdb_open_cloexec().
|
static |
Definition at line 249 of file ser-unix.c.
References fprintf_filtered(), int, and hardwire_ttystate::termios.
|
static |
Definition at line 401 of file ser-unix.c.
References serial::current_timeout, ECHO, fprintf_unfiltered(), gdb_stderr, get_tty_state(), safe_strerror(), set_tty_state(), and hardwire_ttystate::termios.
Definition at line 664 of file ser-unix.c.
References do_hardwire_readchar(), and generic_readchar().
Definition at line 374 of file ser-unix.c.
References serial::fd, gdb_usleep(), and status.
|
static |
Definition at line 206 of file ser-unix.c.
References set_tty_state().
Definition at line 816 of file ser-unix.c.
References get_tty_state(), rate_to_code(), set_tty_state(), and hardwire_ttystate::termios.
Definition at line 900 of file ser-unix.c.
References GDBPARITY_EVEN, GDBPARITY_NONE, GDBPARITY_ODD, get_tty_state(), internal_warning(), set_tty_state(), and hardwire_ttystate::termios.
Definition at line 855 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.
Definition at line 779 of file ser-unix.c.
References _, baudtab, and warning().
Referenced by hardwire_setbaudrate().
Definition at line 1006 of file ser-unix.c.
References serial::buf, serial::fd, read(), and status.
Definition at line 1020 of file ser-unix.c.
References serial::fd, and serial_ops::write.
|
static |
Definition at line 149 of file ser-unix.c.
References serial::fd, and hardwire_ttystate::termios.
Referenced by hardwire_noflush_set_tty_state(), hardwire_raw(), hardwire_set_tty_state(), hardwire_setbaudrate(), hardwire_setparity(), hardwire_setstopbits(), and wait_for().
Definition at line 470 of file ser-unix.c.
References serial::current_timeout, serial::fd, fprintf_unfiltered(), gdb_select(), gdb_stderr, get_tty_state(), safe_strerror(), SERIAL_ERROR, SERIAL_TIMEOUT, set_tty_state(), hardwire_ttystate::termios, timeout, and serial::timeout_remaining.
Referenced by do_hardwire_readchar().
struct { ... } baudtab[] |
Referenced by rate_to_code().
int code |
Definition at line 684 of file ser-unix.c.
Referenced by aarch64_return_in_memory(), alpha_return_value(), alphafbsd_return_in_memory(), amd64_classify(), apropos_command(), arch_type(), arm_return_in_memory(), c_compute_program(), c_print_type(), compile_rx_or_error(), compile_to_object(), darwin_encode_reply(), default_make_symbol_completion_list_break_on_1(), evaluate_subexp_standard(), f_print_type(), fixed_type_info(), gdbpy_initialize_breakpoints(), gdbpy_initialize_types(), handle_exception(), hppa64_convert_code_addr_to_fptr(), i386_reg_struct_return_p(), i386_return_value(), init_type(), lm32_return_value(), m32c_decode_sd23(), m32c_decode_srcdest4(), m32c_reg_arg_type(), m32c_return_by_passed_buf(), m68k_reg_struct_return_p(), m68k_return_value(), m68k_svr4_return_value(), pascal_print_type(), push_dummy_python_frame(), read_base_type(), read_sun_builtin_type(), read_type(), record_btrace_frame_this_id(), s390_function_arg_integer(), s390_register_return_value(), S_exception_raise_request(), source_section_scripts(), sparc32_struct_return_from_sym(), struct_return_convention(), unpack_double(), unpack_long(), value_from_double(), and xtensa_window_interrupt_insn().
|
static |
Definition at line 956 of file ser-unix.c.
int rate |
Definition at line 683 of file ser-unix.c.
Referenced by dos_setbaudrate(), print_transfer_performance(), and ser_windows_setbaudrate().