iPXE
Functions
gdbserial.h File Reference

GDB remote debugging over serial. More...

#include <stdint.h>

Go to the source code of this file.

Functions

 FILE_LICENCE (GPL2_OR_LATER_OR_UBDL)
struct gdb_transportgdbserial_configure (unsigned int port, unsigned int baud, uint8_t lcr)

Detailed Description

GDB remote debugging over serial.

Definition in file gdbserial.h.


Function Documentation

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL  )
struct gdb_transport* gdbserial_configure ( unsigned int  port,
unsigned int  baud,
uint8_t  lcr 
) [read]

Definition at line 108 of file gdbserial.c.

References gdbserial_uart, NULL, rc, uart_init(), and uart_select().

Referenced by gdbserial_init().

                                                                              {
        int rc;

        if ( ( rc = uart_select ( &gdbserial_uart, port ) ) != 0 )
                return NULL;

        if ( ( rc = uart_init ( &gdbserial_uart, baud, lcr ) ) != 0 )
                return NULL;

        return &serial_gdb_transport;
}