RetroArch
Macros | Functions | Variables
debug.h File Reference
#include <gctypes.h>
Include dependency graph for debug.h:

Go to the source code of this file.

Macros

#define GDBSTUB_DEVICE_USB   0
 
#define GDBSTUB_DEVICE_TCP   1
 
#define GDBSTUB_DEF_CHANNEL   0
 
#define GDBSTUB_DEF_TCPPORT   2828
 

Functions

void _break ()
 Stub function to insert the hardware break instruction. This function is used to enter the debug stub and to connect with the host. The developer is free to insert this function at any position in project's source code. More...
 
void DEBUG_Init (s32 device_type, s32 channel_port)
 Performs the initialization of the debug stub. More...
 

Variables

const char * tcp_localip
 
const char * tcp_netmask
 
const char * tcp_gateway
 

Macro Definition Documentation

◆ GDBSTUB_DEF_CHANNEL

#define GDBSTUB_DEF_CHANNEL   0

default EXI channel. channel can be 0 or 1. Note: Used for device type USBGecko

◆ GDBSTUB_DEF_TCPPORT

#define GDBSTUB_DEF_TCPPORT   2828

default TCP port. Note: Used for device type TCP

◆ GDBSTUB_DEVICE_TCP

#define GDBSTUB_DEVICE_TCP   1

device type: BBA-TCP

◆ GDBSTUB_DEVICE_USB

#define GDBSTUB_DEVICE_USB   0

device type: USBGecko

Function Documentation

◆ _break()

void _break ( void  )

Stub function to insert the hardware break instruction. This function is used to enter the debug stub and to connect with the host. The developer is free to insert this function at any position in project's source code.

Returns
none.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ DEBUG_Init()

void DEBUG_Init ( s32  device_type,
s32  channel_port 
)

Performs the initialization of the debug stub.

Parameters
[in]device_typetype of device to use. can be either USB or TCP.
[in]channel_portdepending on the used device this can be either the EXI channel or the TCP port.
Returns
none.
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ tcp_gateway

const char* tcp_gateway

◆ tcp_localip

const char* tcp_localip

◆ tcp_netmask

const char* tcp_netmask