|
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 "gdb_sys_time.h"#include "gdb_select.h"#include "gdbcmd.h"#include "filestuff.h"#include <termios.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 (void) |
| 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 226 of file ser-unix.c.
| #define B38400 EXTB |
Definition at line 230 of file ser-unix.c.
| void _initialize_ser_hardwire | ( | void | ) |
Definition at line 498 of file ser-unix.c.
References _, add_setshow_boolean_cmd(), hardwire_ops, no_class, serial_add_interface(), setlist, and showlist.
|
static |
Definition at line 85 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 459 of file ser-unix.c.
References serial::fd.
|
static |
Definition at line 117 of file ser-unix.c.
References XNEW.
|
static |
Definition at line 165 of file ser-unix.c.
References serial::fd.
|
static |
Definition at line 177 of file ser-unix.c.
References serial::fd, and ser_base_flush_input().
|
static |
Definition at line 171 of file ser-unix.c.
References serial::fd.
|
static |
Definition at line 103 of file ser-unix.c.
References get_tty_state(), xfree(), and XNEW.
|
static |
Definition at line 75 of file ser-unix.c.
References serial::fd, gdb_open_cloexec(), and name.
|
static |
Definition at line 137 of file ser-unix.c.
References fprintf_filtered(), and hardwire_ttystate::termios.
|
static |
Definition at line 191 of file ser-unix.c.
References fprintf_unfiltered(), gdb_stderr, get_tty_state(), safe_strerror(), set_tty_state(), and hardwire_ttystate::termios.
|
static |
Definition at line 185 of file ser-unix.c.
References serial::fd.
|
static |
Definition at line 127 of file ser-unix.c.
References set_tty_state().
|
static |
Definition at line 371 of file ser-unix.c.
References get_tty_state(), rate, rate_to_code(), set_tty_state(), and hardwire_ttystate::termios.
|
static |
Definition at line 426 of file ser-unix.c.
References GDBPARITY_EVEN, GDBPARITY_NONE, GDBPARITY_ODD, get_tty_state(), internal_warning(), parity, set_tty_state(), and hardwire_ttystate::termios.
|
static |
Definition at line 394 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 334 of file ser-unix.c.
References _, baudtab, rate, and warning().
Referenced by hardwire_setbaudrate().
| int ser_unix_read_prim | ( | struct serial * | scb, |
| size_t | count | ||
| ) |
Definition at line 516 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 522 of file ser-unix.c.
References serial::fd, and serial_ops::write.
|
static |
Definition at line 94 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 239 of file ser-unix.c.
Referenced by _initialize_rust_exp(), ada_collect_symbol_completion_matches(), add_symtab_completions(), alpha_return_value(), amd64_classify(), arch_composite_type(), arch_type(), arm_return_in_memory(), c_print_type_1(), collect_symbol_completion_matches_type(), compile_to_object(), compiled_regex::compiled_regex(), complete_expression(), darwin_encode_reply(), default_collect_symbol_completion_matches(), default_collect_symbol_completion_matches_break_on(), dummy_python_frame::dummy_python_frame(), evaluate_subexp_standard(), f_collect_symbol_completion_matches(), 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(), lookup_opencl_vector_type(), 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(), parse_expression_for_completion(), pascal_print_type(), read_type(), record_btrace_frame_this_id(), s390_function_arg_integer(), s390_register_return_value(), S_exception_raise_request(), set_type_code(), source_section_scripts(), sparc32_struct_return_from_sym(), struct_return_convention(), unpack_long(), and xtensa_window_interrupt_insn().
|
static |
Definition at line 472 of file ser-unix.c.
Referenced by _initialize_ser_hardwire().
| int rate |
Definition at line 238 of file ser-unix.c.
Referenced by dos_baudconv(), dos_setbaudrate(), hardwire_setbaudrate(), print_transfer_performance(), rate_to_code(), ser_windows_setbaudrate(), and serial_setbaudrate().
1.8.14