diff options
author | Jean-Francois Mauguit <jfmauguit@mac.com> | 2024-09-24 09:03:25 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-24 09:03:25 -0400 |
commit | bab614c421ed7ae329d26bf028c4a3b1d2450f5a (patch) | |
tree | 12f17f78986871dd2cfb0a56e5e93b545c1ae0d0 /Src/Wasabi/api/script/debugger/jitd.h | |
parent | 4bde6044fddf053f31795b9eaccdd2a5a527d21f (diff) | |
parent | 20d28e80a5c861a9d5f449ea911ab75b4f37ad0d (diff) | |
download | winamp-bab614c421ed7ae329d26bf028c4a3b1d2450f5a.tar.gz |
Merge pull request #5 from WinampDesktop/community
Merge to main
Diffstat (limited to 'Src/Wasabi/api/script/debugger/jitd.h')
-rw-r--r-- | Src/Wasabi/api/script/debugger/jitd.h | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/Src/Wasabi/api/script/debugger/jitd.h b/Src/Wasabi/api/script/debugger/jitd.h new file mode 100644 index 00000000..6cb41f72 --- /dev/null +++ b/Src/Wasabi/api/script/debugger/jitd.h @@ -0,0 +1,71 @@ +#ifndef __MAKIJITD_H +#define __MAKIJITD_H + +#include <bfc/ptrlist.h> + +class JITDBreakpoint; +class VCPUDebugger; +class svc_debuggerUI; +class SimpleDebuggerUI; +class DebuggerUI; +class DebugSymbols; +class SourceCodeLine; + +enum { + JITD_RETURN_STEPINTO = 0, + JITD_RETURN_STEPOVER = 1, + JITD_RETURN_STEPOUT = 2, + JITD_RETURN_TERMINATE = 3, + JITD_RETURN_CONTINUE = 4, +}; + +class MakiJITD { // dispatch me! + public: + MakiJITD(VCPUDebugger *debugger, int vcpuid); + virtual ~MakiJITD(); + + int getNumBreakpoints(); + JITDBreakpoint *enumBreakpoint(int n); + JITDBreakpoint *findBreakpoint(int pointer); + void addBreakpoint(int pointer); + void removeBreakpoint(JITDBreakpoint *breakpoint); + void clearAllBreakpoints(); + int isGlobalBreakpointSet(); + void setGlobalBreakpoint(int s); + void setSysBreakpoint(int pointer); // deactivates automatically next time the debugger is activated + int getVCPUId(); + void trace(); + int isActive(); + int isOnHold(); // 1 if running in the jitd's message loop + + int getVIP(); + int getVSD(); + int getVCC(); + int getVSP(); + + const char *getCodeBlock(); + + virtual int findLine(int pointer); + virtual int getNumLines(); + virtual SourceCodeLine *enumLine(int n); + + private: + void createUi(); + void enterUi(); + + int vcpuid; + int vip, vsd, vcc, vsp; + int globalbreakpoint; + + PtrList<JITDBreakpoint> breakpoints; + VCPUDebugger *debugger; + svc_debuggerUI *uisvc; + DebuggerUI *ui; + SimpleDebuggerUI *simpleui; + int onhold; + const char *codeblock; + JITDBreakpoint *sysbp; + DebugSymbols *symbols; +}; + +#endif
\ No newline at end of file |