| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
#ifndef _DEBUGGER_H |
| 13 |
#define _DEBUGGER_H |
| 14 |
|
| 15 |
#include <SDL.h> |
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
#include "debug_core.h" |
| 21 |
|
| 22 |
#ifdef __cplusplus |
| 23 |
extern "C" { |
| 24 |
#endif |
| 25 |
|
| 26 |
extern int showDebugOnRender; |
| 27 |
|
| 28 |
void DEBUGRenderDisplay(int width,int height); |
| 29 |
void DEBUGBreakToDebugger(void); |
| 30 |
void DEBUGBreakOnWatchpoint(void); |
| 31 |
int DEBUGGetCurrentStatus(void); |
| 32 |
void DEBUGInitUI(SDL_Renderer *pRenderer); |
| 33 |
void DEBUGFreeUI(); |
| 34 |
|
| 35 |
|
| 36 |
|
| 37 |
|
| 38 |
void DEBUGContinue(void); |
| 39 |
void DEBUGStepInto(void); |
| 40 |
|
| 41 |
|
| 42 |
|
| 43 |
|
| 44 |
void DEBUGStepOver(debug_owner_t owner); |
| 45 |
void DEBUGStepOut(debug_owner_t owner); |
| 46 |
|
| 47 |
|
| 48 |
|
| 49 |
|
| 50 |
|
| 51 |
|
| 52 |
|
| 53 |
|
| 54 |
|
| 55 |
void DEBUGStepIntoAuto(void); |
| 56 |
void DEBUGStepOverAuto(debug_owner_t owner); |
| 57 |
|
| 58 |
|
| 59 |
|
| 60 |
|
| 61 |
void DEBUGSetSourceStep(bool on); |
| 62 |
bool DEBUGGetSourceStep(void); |
| 63 |
void DEBUGCancelSourceStep(void); |
| 64 |
|
| 65 |
|
| 66 |
|
| 67 |
|
| 68 |
void DEBUGCancelStep(void); |
| 69 |
|
| 70 |
|
| 71 |
|
| 72 |
debug_owner_t DEBUGStepOwner(void); |
| 73 |
bool DEBUGCancelStepFor(debug_owner_t owner); |
| 74 |
|
| 75 |
void DEBUGPause(void); |
| 76 |
void DEBUGRunTo(uint16_t pc, uint8_t bank, debug_owner_t owner); |
| 77 |
bool DEBUGIsRunning(void); |
| 78 |
bool DEBUGIsPaused(void); |
| 79 |
|
| 80 |
|
| 81 |
|
| 82 |
|
| 83 |
|
| 84 |
void DEBUGSetFollowInterrupts(bool on); |
| 85 |
bool DEBUGGetFollowInterrupts(void); |
| 86 |
void DEBUGSetBreakOnInterrupt(bool on); |
| 87 |
bool DEBUGGetBreakOnInterrupt(void); |
| 88 |
|
| 89 |
|
| 90 |
|
| 91 |
|
| 92 |
|
| 93 |
void DEBUGSetStopReason(const char *reason); |
| 94 |
|
| 95 |
|
| 96 |
|
| 97 |
|
| 98 |
void DEBUGAnnounceStop(const char *reason); |
| 99 |
const char *DEBUGGetStopReason(void); |
| 100 |
|
| 101 |
#define DBG_WIDTH (60) |
| 102 |
#define DBG_HEIGHT (60) |
| 103 |
|
| 104 |
#define DBG_ASMX (1) |
| 105 |
#define DBG_LBLX (26) |
| 106 |
#define DBG_DATX (30) |
| 107 |
#define DBG_STCK (40) |
| 108 |
#define DBG_MEMX (1) |
| 109 |
#define DBG_ZP_REG (45) |
| 110 |
#define DBG_VERA_REGX (45) |
| 111 |
|
| 112 |
#define DMODE_STOP (0) |
| 113 |
#define DMODE_STEP (1) |
| 114 |
#define DMODE_RUN (2) |
| 115 |
|
| 116 |
|
| 117 |
|
| 118 |
|
| 119 |
extern int currentMode; |
| 120 |
#ifdef __cplusplus |
| 121 |
} |
| 122 |
#endif |
| 123 |
|
| 124 |
#endif |