next up previous contents index
Next: 10.18.8 gdb_serial_send: vector to Up: 10.18 Serial-line Remote Debugging Previous: 10.18.6 gdb_serial_puts: output a

10.18.7 gdb_serial_recv: vector to GDB serial line receive function

   

SYNOPSIS

#include <oskit/gdb_serial.h>

int (*gdb_serial_recv )(void);

DESCRIPTION

Before the remote serial-line debugging stub can be used, this global variable must be initialized to point to a function to call to read a character from the serial port. The function should not return until a character has been received; the GDB stub has no notion of timeouts or interruptions.

Calling functions in the GDB serial-line debugging stub before this variable is initialized (i.e., while it is still null) is guaranteed to be harmless.

RETURNS

Returns the character received.



University of Utah Flux Research Group