PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
iop_debug.c File Reference
#include <tamtypes.h>
#include <excepman.h>
#include <iop_cop0_defs.h>
#include <ps2_debug.h>
#include "iopdebug.h"
#include "iopdebug_priv.h"
#include "iopdebug_defs.h"
+ Include dependency graph for iop_debug.c:

Go to the source code of this file.

Functions

IOP_ExceptionHandler * iop_dbg_get_handler (int cause)
 
IOP_ExceptionHandler * iop_dbg_set_handler (int cause, IOP_ExceptionHandler *handler)
 
void iop_exception_dispatcher (IOP_RegFrame *frame)
 
void _iop_dbg_set_bpda (u32 addr, u32 mask, u32 user_mask)
 
void _iop_dbg_set_bpx (u32 addr, u32 mask, u32 user_mask)
 
void iop_dbg_set_bpr (u32 addr, u32 mask, u32 user_mask)
 
void iop_dbg_set_bpw (u32 addr, u32 mask, u32 user_mask)
 
void iop_dbg_set_bpx (u32 addr, u32 mask, u32 user_mask)
 
void iop_dbg_clr_bpda (void)
 
void iop_dbg_clr_bpx (void)
 
void iop_dbg_clr_bps (void)
 
void _iop_ex_def_handler (void)
 
void _iop_ex_dbg_handler (void)
 
void _iop_ex_break_handler (void)
 
int iop_dbg_install (void)
 
int iop_dbg_remove (void)
 
void iop_dbg_get_reg_frames (IOP_RegFrame **def_frame_ptr, IOP_RegFrame **dbg_frame_ptr)
 

Variables

u32 _iop_ex_def_stack [_EX_DEF_STACK_SIZE/4]
 
u32 _iop_ex_dbg_stack [_EX_DBG_STACK_SIZE/4]
 
IOP_RegFrame _iop_ex_def_frame
 
IOP_RegFrame _iop_ex_dbg_frame
 
static int _is_iop_dbg_installed = 0
 
static void * orig_iop_def_ex_handler = NULL
 
static void * orig_iop_break_ex_handler = NULL
 
static void * orig_iop_dbg_ex_handler = NULL
 
static IOP_ExceptionHandler * iop_exception_handlers [16]
 

Detailed Description

IOPDEBUG - IOP debugging library. high-level IOP debugging library code.

Definition in file iop_debug.c.

Function Documentation

◆ iop_dbg_get_handler()

IOP_ExceptionHandler * iop_dbg_get_handler ( int  cause)

Definition at line 40 of file iop_debug.c.

◆ iop_dbg_set_handler()

IOP_ExceptionHandler * iop_dbg_set_handler ( int  cause,
IOP_ExceptionHandler *  handler 
)

Definition at line 47 of file iop_debug.c.

◆ iop_exception_dispatcher()

void iop_exception_dispatcher ( IOP_RegFrame frame)

Definition at line 65 of file iop_debug.c.

◆ iop_dbg_set_bpr()

void iop_dbg_set_bpr ( u32  addr,
u32  mask,
u32  user_mask 
)

Definition at line 80 of file iop_debug.c.

◆ iop_dbg_set_bpw()

void iop_dbg_set_bpw ( u32  addr,
u32  mask,
u32  user_mask 
)

Definition at line 83 of file iop_debug.c.

◆ iop_dbg_set_bpx()

void iop_dbg_set_bpx ( u32  addr,
u32  mask,
u32  user_mask 
)

Definition at line 86 of file iop_debug.c.

◆ iop_dbg_clr_bpda()

void iop_dbg_clr_bpda ( void  )

Definition at line 88 of file iop_debug.c.

◆ iop_dbg_clr_bpx()

void iop_dbg_clr_bpx ( void  )

Definition at line 96 of file iop_debug.c.

◆ iop_dbg_clr_bps()

void iop_dbg_clr_bps ( void  )

Definition at line 104 of file iop_debug.c.

◆ iop_dbg_install()

int iop_dbg_install ( void  )

Definition at line 117 of file iop_debug.c.

◆ iop_dbg_remove()

int iop_dbg_remove ( void  )

Definition at line 166 of file iop_debug.c.

◆ iop_dbg_get_reg_frames()

void iop_dbg_get_reg_frames ( IOP_RegFrame **  def_frame_ptr,
IOP_RegFrame **  dbg_frame_ptr 
)

Definition at line 193 of file iop_debug.c.

Variable Documentation

◆ _iop_ex_def_stack

u32 _iop_ex_def_stack[_EX_DEF_STACK_SIZE/4]

Definition at line 26 of file iop_debug.c.

◆ _iop_ex_dbg_stack

u32 _iop_ex_dbg_stack[_EX_DBG_STACK_SIZE/4]

Definition at line 27 of file iop_debug.c.

◆ _iop_ex_def_frame

IOP_RegFrame _iop_ex_def_frame

Definition at line 29 of file iop_debug.c.

◆ _iop_ex_dbg_frame

IOP_RegFrame _iop_ex_dbg_frame

Definition at line 30 of file iop_debug.c.

◆ _is_iop_dbg_installed

int _is_iop_dbg_installed = 0
static

Definition at line 32 of file iop_debug.c.

◆ orig_iop_def_ex_handler

void* orig_iop_def_ex_handler = NULL
static

Definition at line 34 of file iop_debug.c.

◆ orig_iop_break_ex_handler

void* orig_iop_break_ex_handler = NULL
static

Definition at line 35 of file iop_debug.c.

◆ orig_iop_dbg_ex_handler

void* orig_iop_dbg_ex_handler = NULL
static

Definition at line 36 of file iop_debug.c.

◆ iop_exception_handlers

IOP_ExceptionHandler* iop_exception_handlers[16]
static

Definition at line 38 of file iop_debug.c.