iPXE
Functions
gdbserial.h File Reference

GDB remote debugging over serial. More...

Go to the source code of this file.

Functions

 FILE_LICENCE (GPL2_OR_LATER_OR_UBDL)
 
struct gdb_transportgdbserial_configure (const char *port, unsigned int baud)
 

Detailed Description

GDB remote debugging over serial.

Definition in file gdbserial.h.

Function Documentation

◆ FILE_LICENCE()

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL  )

◆ gdbserial_configure()

struct gdb_transport* gdbserial_configure ( const char *  port,
unsigned int  baud 
)

Definition at line 86 of file gdbserial.c.

87  {
88  int rc;
89 
90  uart_put ( gdbserial_uart );
92 
94  if ( ! gdbserial_uart )
95  return NULL;
96  uart_get ( gdbserial_uart );
97 
98  gdbserial_uart->baud = baud;
99 
100  if ( ( rc = uart_init ( gdbserial_uart ) ) != 0 )
101  return NULL;
102 
103  return &serial_gdb_transport;
104 }
struct arbelprm_rc_send_wqe rc
Definition: arbel.h:14
const char * name
Definition: ath9k_hw.c:1984
static struct uart * gdbserial_uart
GDB serial UART.
Definition: gdbserial.c:42
unsigned int baud
Baud rate (if specified)
Definition: uart.h:26
struct uart * uart_find(const char *name)
Find named UART.
Definition: uart.c:130
#define NULL
NULL pointer (VOID *)
Definition: Base.h:321

References uart::baud, gdbserial_uart, name, NULL, rc, and uart_find().

Referenced by gdbserial_init().