GDB (API)
Defines | Functions | Variables
/home/stan/gdb/src/gdb/serial.c File Reference
#include "defs.h"
#include <ctype.h>
#include "serial.h"
#include "gdb_string.h"
#include "gdbcmd.h"
#include "cli/cli-utils.h"

Go to the source code of this file.

Defines

#define SERIAL_BREAK   1235

Functions

void _initialize_serial (void)
void serial_log_command (const char *cmd)
void serial_add_interface (struct serial_ops *optable)
struct serialserial_for_fd (int fd)
struct serialserial_open (const char *name)
struct serialserial_fdopen (const int fd)
void serial_close (struct serial *scb)
void serial_un_fdopen (struct serial *scb)
int serial_is_open (struct serial *scb)
void serial_ref (struct serial *scb)
void serial_unref (struct serial *scb)
int serial_readchar (struct serial *scb, int timeout)
int serial_write (struct serial *scb, const void *buf, size_t count)
void serial_printf (struct serial *desc, const char *format,...)
int serial_drain_output (struct serial *scb)
int serial_flush_output (struct serial *scb)
int serial_flush_input (struct serial *scb)
int serial_send_break (struct serial *scb)
void serial_raw (struct serial *scb)
serial_ttystate serial_get_tty_state (struct serial *scb)
serial_ttystate serial_copy_tty_state (struct serial *scb, serial_ttystate ttystate)
int serial_set_tty_state (struct serial *scb, serial_ttystate ttystate)
void serial_print_tty_state (struct serial *scb, serial_ttystate ttystate, struct ui_file *stream)
int serial_noflush_set_tty_state (struct serial *scb, serial_ttystate new_ttystate, serial_ttystate old_ttystate)
int serial_setbaudrate (struct serial *scb, int rate)
int serial_setstopbits (struct serial *scb, int num)
int serial_can_async_p (struct serial *scb)
int serial_is_async_p (struct serial *scb)
void serial_async (struct serial *scb, serial_event_ftype *handler, void *context)
void serial_debug (struct serial *scb, int debug_p)
int serial_debug_p (struct serial *scb)
int serial_pipe (struct serial *scbs[2])

Variables

int baud_rate = -1

Define Documentation

#define SERIAL_BREAK   1235

Definition at line 64 of file serial.c.


Function Documentation

void _initialize_serial ( void  )
void serial_add_interface ( struct serial_ops optable)

Definition at line 159 of file serial.c.

void serial_async ( struct serial scb,
serial_event_ftype handler,
void *  context 
)

Definition at line 538 of file serial.c.

int serial_can_async_p ( struct serial scb)

Definition at line 526 of file serial.c.

void serial_close ( struct serial scb)

Definition at line 338 of file serial.c.

serial_ttystate serial_copy_tty_state ( struct serial scb,
serial_ttystate  ttystate 
)

Definition at line 486 of file serial.c.

void serial_debug ( struct serial scb,
int  debug_p 
)

Definition at line 552 of file serial.c.

int serial_debug_p ( struct serial scb)

Definition at line 558 of file serial.c.

int serial_drain_output ( struct serial scb)

Definition at line 447 of file serial.c.

struct serial* serial_fdopen ( const int  fd) [read]

Definition at line 289 of file serial.c.

int serial_flush_input ( struct serial scb)

Definition at line 459 of file serial.c.

int serial_flush_output ( struct serial scb)

Definition at line 453 of file serial.c.

struct serial* serial_for_fd ( int  fd) [read]

Definition at line 169 of file serial.c.

Definition at line 480 of file serial.c.

int serial_is_async_p ( struct serial scb)

Definition at line 532 of file serial.c.

int serial_is_open ( struct serial scb)

Definition at line 350 of file serial.c.

void serial_log_command ( const char *  cmd)

Definition at line 130 of file serial.c.

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

Definition at line 506 of file serial.c.

struct serial* serial_open ( const char *  name) [read]

Definition at line 183 of file serial.c.

int serial_pipe ( struct serial scbs[2])

Definition at line 585 of file serial.c.

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

Definition at line 498 of file serial.c.

void serial_printf ( struct serial desc,
const char *  format,
  ... 
)

Definition at line 433 of file serial.c.

void serial_raw ( struct serial scb)

Definition at line 474 of file serial.c.

int serial_readchar ( struct serial scb,
int  timeout 
)

Definition at line 370 of file serial.c.

void serial_ref ( struct serial scb)

Definition at line 356 of file serial.c.

int serial_send_break ( struct serial scb)

Definition at line 465 of file serial.c.

int serial_set_tty_state ( struct serial scb,
serial_ttystate  ttystate 
)

Definition at line 492 of file serial.c.

int serial_setbaudrate ( struct serial scb,
int  rate 
)

Definition at line 514 of file serial.c.

int serial_setstopbits ( struct serial scb,
int  num 
)

Definition at line 520 of file serial.c.

void serial_un_fdopen ( struct serial scb)

Definition at line 344 of file serial.c.

void serial_unref ( struct serial scb)

Definition at line 362 of file serial.c.

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

Definition at line 401 of file serial.c.


Variable Documentation

int baud_rate = -1

Definition at line 629 of file serial.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines