KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
breaking.c File Reference
#include <dc/ubc.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdalign.h>
#include <stdatomic.h>

Macros

#define VERIFY(expr)
 

Functions

static bool on_break (const ubc_breakpoint_t *bp, const irq_context_t *ctx, void *ud)
 
static __noinline int test_function (const char *str1, const char *str2)
 
static bool break_on_instruction (void)
 
static bool break_on_data_region_read (void)
 
static bool break_on_sized_data_write_value (void)
 
static bool break_on_sized_operand_region_access_value_range (void)
 
bool break_on_sequence (void)
 
int main (int argc, char *argv[])
 

Variables

static atomic_bool handled = false
 

Macro Definition Documentation

◆ VERIFY

#define VERIFY ( expr)
Value:
do { \
if(!(expr)) { \
fprintf(stderr, "%s failed at %s:%d!\n", \
#expr, __FUNCTION__, __LINE__); \
return false; \
} \
} while(0);

Referenced by break_on_data_region_read(), break_on_instruction(), break_on_sequence(), break_on_sized_data_write_value(), and break_on_sized_operand_region_access_value_range().

Function Documentation

◆ break_on_data_region_read()

static bool break_on_data_region_read ( void )
static

◆ break_on_instruction()

static bool break_on_instruction ( void )
static

◆ break_on_sequence()

◆ break_on_sized_data_write_value()

static bool break_on_sized_data_write_value ( void )
static

◆ break_on_sized_operand_region_access_value_range()

static bool break_on_sized_operand_region_access_value_range ( void )
static

◆ main()

◆ on_break()

◆ test_function()

static __noinline int test_function ( const char * str1,
const char * str2 )
static

Variable Documentation

◆ handled