GDB (xrefs)

Functions
/tmp/gdb-8.1/gdb/ser-base.h File Reference
`#include "serial.h"`

Go to the source code of this file.

## Functions
int | generic_readchar (struct serial *scb, int timeout, int(*do_readchar)(struct serial *scb, int timeout))
int | ser_base_flush_output (struct serial *scb)
int | ser_base_flush_input (struct serial *scb)
int | ser_base_send_break (struct serial *scb)
void | ser_base_raw (struct serial *scb)
serial_ttystate | ser_base_get_tty_state (struct serial *scb)
serial_ttystate | ser_base_copy_tty_state (struct serial *scb, serial_ttystate ttystate)
int | ser_base_set_tty_state (struct serial *scb, serial_ttystate ttystate)
void | ser_base_print_tty_state (struct serial *scb, serial_ttystate ttystate, struct ui_file *stream)
int | ser_base_setbaudrate (struct serial *scb, int rate)
int | ser_base_setstopbits (struct serial *scb, int num)
int | ser_base_setparity (struct serial *scb, int parity)
int | ser_base_drain_output (struct serial *scb)
int | ser_base_write (struct serial *scb, const void *buf, size_t count)
void | ser_base_async (struct serial *scb, int async_p)
int | ser_base_readchar (struct serial *scb, int timeout)

## Function Documentation

## ◆ generic_readchar()

int generic_readchar | ( | struct serial * | scb,
|  | int | timeout,
|  | int(*)(struct serial *scb, int timeout) | do_readchar
| ) |  |

## ◆ ser_base_async()

void ser_base_async | ( | struct serial * | scb,
|  | int | async_p
| ) |  |

Definition at line 586 of file ser-base.c.

References add_file_handler(), serial::async_state, delete_file_handler(), delete_timer(), serial::error_fd, serial::fd, FD_SCHEDULED, fprintf_unfiltered(), gdb_stdlog, handle_error_fd(), NOTHING_SCHEDULED, reschedule(), and serial_debug_p().

## ◆ ser_base_copy_tty_state()

serial_ttystate ser_base_copy_tty_state | ( | struct serial * | scb,
|  | serial_ttystate | ttystate
| ) |  |

Definition at line 542 of file ser-base.c.

References XNEW.

## ◆ ser_base_drain_output()

int ser_base_drain_output | ( | struct serial * | scb | ) |

Definition at line 523 of file ser-base.c.

## ◆ ser_base_flush_input()

int ser_base_flush_input | ( | struct serial * | scb | ) |

Definition at line 504 of file ser-base.c.

References serial::buf, serial::bufcnt, serial::bufp, and SERIAL_ERROR.

Referenced by hardwire_flush_input().

## ◆ ser_base_flush_output()

int ser_base_flush_output | ( | struct serial * | scb | ) |

Definition at line 498 of file ser-base.c.

## ◆ ser_base_get_tty_state()

serial_ttystate ser_base_get_tty_state | ( | struct serial * | scb | ) |

Definition at line 535 of file ser-base.c.

References XNEW.

## ◆ ser_base_print_tty_state()

void ser_base_print_tty_state | ( | struct serial * | scb,
|  | serial_ttystate | ttystate,
|  | struct ui_file * | stream
| ) |  |

Definition at line 555 of file ser-base.c.

## ◆ ser_base_raw()

void ser_base_raw | ( | struct serial * | scb | ) |

Definition at line 529 of file ser-base.c.

## ◆ ser_base_readchar()

int ser_base_readchar | ( | struct serial * | scb,
|  | int | timeout
| ) |  |

Definition at line 468 of file ser-base.c.

References do_ser_base_readchar(), and generic_readchar().

## ◆ ser_base_send_break()

int ser_base_send_break | ( | struct serial * | scb | ) |

Definition at line 517 of file ser-base.c.

## ◆ ser_base_set_tty_state()

int ser_base_set_tty_state | ( | struct serial * | scb,
|  | serial_ttystate | ttystate
| ) |  |

Definition at line 549 of file ser-base.c.

## ◆ ser_base_setbaudrate()

int ser_base_setbaudrate | ( | struct serial * | scb,
|  | int | rate
| ) |  |

Definition at line 564 of file ser-base.c.

## ◆ ser_base_setparity()

int ser_base_setparity | ( | struct serial * | scb,
|  | int | parity
| ) |  |

Definition at line 578 of file ser-base.c.

## ◆ ser_base_setstopbits()

int ser_base_setstopbits | ( | struct serial * | scb,
|  | int | num
| ) |  |

Definition at line 570 of file ser-base.c.

## ◆ ser_base_write()

int ser_base_write | ( | struct serial * | scb,
|  | const void * | buf,
|  | size_t | count
| ) |  |

Definition at line 474 of file ser-base.c.

References serial::ops, QUIT, and serial_ops::write_prim.