iPXE
Data Fields
gdb_transport Struct Reference

A transport mechanism for the GDB protocol. More...

#include <gdbstub.h>

Data Fields

const char * name
 Transport name.
int(* init )(int argc, char **argv)
 Set up the transport given a list of arguments.
size_t(* recv )(char *buf, size_t len)
 Perform a blocking read.
void(* send )(const char *buf, size_t len)
 Write, may block.

Detailed Description

A transport mechanism for the GDB protocol.

Definition at line 20 of file gdbstub.h.


Field Documentation

const char* gdb_transport::name

Transport name.

Definition at line 22 of file gdbstub.h.

Referenced by find_gdb_transport().

int( * gdb_transport::init)(int argc, char **argv)

Set up the transport given a list of arguments.

Parameters:
argcNumber of arguments
argvArgument list
Return values:
Returnstatus code

Note that arguments start at argv[0].

Definition at line 32 of file gdbstub.h.

Referenced by gdbstub_exec().

Perform a blocking read.

Parameters:
bufBuffer
lenSize of buffer
Return values:
Numberof bytes read into buffer

Definition at line 40 of file gdbstub.h.

Referenced by gdbstub_handler().

void( * gdb_transport::send)(const char *buf, size_t len)

Write, may block.

Parameters:
bufBuffer
lenSize of buffer

Definition at line 47 of file gdbstub.h.

Referenced by gdbstub_state_cksum2(), and gdbstub_tx_packet().


The documentation for this struct was generated from the following file: