GDB (API)
Enumerations | Functions
/home/stan/gdb/src/gdb/ser-base.c File Reference
#include "defs.h"
#include "serial.h"
#include "ser-base.h"
#include "event-loop.h"
#include "gdb_select.h"
#include "gdb_string.h"
#include "gdb_assert.h"
#include <sys/time.h>

Go to the source code of this file.

Enumerations

enum  { FD_SCHEDULED = -1, NOTHING_SCHEDULED = -2 }

Functions

int generic_readchar (struct serial *scb, int timeout, int(do_readchar)(struct serial *scb, int timeout))
int ser_base_readchar (struct serial *scb, int timeout)
int ser_base_write (struct serial *scb, const void *buf, size_t count)
int ser_base_flush_output (struct serial *scb)
int ser_base_flush_input (struct serial *scb)
int ser_base_send_break (struct serial *scb)
int ser_base_drain_output (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)
int ser_base_noflush_set_tty_state (struct serial *scb, serial_ttystate new_ttystate, serial_ttystate old_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)
void ser_base_async (struct serial *scb, int async_p)

Enumeration Type Documentation

anonymous enum
Enumerator:
FD_SCHEDULED 
NOTHING_SCHEDULED 

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


Function Documentation

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

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

void ser_base_async ( struct serial scb,
int  async_p 
)

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

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

int ser_base_drain_output ( struct serial scb)

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

int ser_base_flush_input ( struct serial scb)

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

int ser_base_flush_output ( struct serial scb)

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

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

int ser_base_noflush_set_tty_state ( struct serial scb,
serial_ttystate  new_ttystate,
serial_ttystate  old_ttystate 
)

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

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

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

void ser_base_raw ( struct serial scb)

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

int ser_base_readchar ( struct serial scb,
int  timeout 
)

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

int ser_base_send_break ( struct serial scb)

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

int ser_base_set_tty_state ( struct serial scb,
serial_ttystate  ttystate 
)

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

int ser_base_setbaudrate ( struct serial scb,
int  rate 
)

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

int ser_base_setstopbits ( struct serial scb,
int  num 
)

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

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

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

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines