| 1 | #ifndef __VB_DEBUG_H |
| 2 | #define __VB_DEBUG_H |
| 3 | |
| 4 | void VBDBG_FlushBreakPoints(int type); |
| 5 | void VBDBG_AddBreakPoint(int type, unsigned int A1, unsigned int A2, bool logical); |
| 6 | void VBDBG_Disassemble(uint32 &a, uint32 SpecialA, char *); |
| 7 | |
| 8 | uint32 VBDBG_MemPeek(uint32 A, unsigned int bsize, bool hl, bool logical); |
| 9 | uint32 VBDBG_GetRegister(const std::string &name, std::string *special); |
| 10 | void VBDBG_SetRegister(const std::string &name, uint32 value); |
| 11 | |
| 12 | void VBDBG_SetCPUCallback(void (*callb)(uint32 PC, bool bpoint), bool continuous); |
| 13 | |
| 14 | void VBDBG_EnableBranchTrace(bool enable); |
| 15 | std::vector<BranchTraceResult> VBDBG_GetBranchTrace(void); |
| 16 | |
| 17 | void VBDBG_CheckBP(int type, uint32 address, uint32 value, unsigned int len); |
| 18 | |
| 19 | void VBDBG_SetLogFunc(void (*func)(const char *, const char *)); |
| 20 | |
| 21 | void VBDBG_DoLog(const char *type, const char *format, ...); |
| 22 | |
| 23 | |
| 24 | extern bool VB_LoggingOn; |
| 25 | |
| 26 | bool VBDBG_Init(void); |
| 27 | |
| 28 | #endif |