mirror of
https://github.com/libretro/Mu.git
synced 2026-02-15 13:45:58 +00:00
48 lines
764 B
C++
48 lines
764 B
C++
/* Declarations for debug.c */
|
|
#ifndef H_DEBUG
|
|
#define H_DEBUG
|
|
|
|
#include <stdbool.h>
|
|
#include <stdint.h>
|
|
#include <stddef.h>
|
|
#include <stdio.h>
|
|
|
|
#ifdef __cplusplus
|
|
|
|
#include <string>
|
|
|
|
extern "C" {
|
|
#endif
|
|
|
|
/*
|
|
extern FILE *debugger_input;
|
|
#define gdb_connected false
|
|
#define in_debugger false
|
|
#define rdbg_port 0
|
|
*/
|
|
|
|
enum DBG_REASON {
|
|
DBG_USER,
|
|
DBG_EXCEPTION,
|
|
DBG_EXEC_BREAKPOINT,
|
|
DBG_READ_BREAKPOINT,
|
|
DBG_WRITE_BREAKPOINT,
|
|
};
|
|
|
|
/*
|
|
void *virt_mem_ptr(uint32_t addr, uint32_t size);
|
|
void backtrace(uint32_t fp);
|
|
int process_debug_cmd(char *cmdline);
|
|
void debugger(enum DBG_REASON reason, uint32_t addr);
|
|
void rdebug_recv(void);
|
|
bool rdebug_bind(unsigned int port);
|
|
void rdebug_quit();
|
|
*/
|
|
#define debugger(x, y)
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|