GPU: Add quick method for debugging.

Helps when you want to bail out to the debugger quickly.
This commit is contained in:
Unknown W. Brackets 2017-12-24 18:05:44 -08:00
parent f5b2a6601e
commit a37a8ca4f0
2 changed files with 8 additions and 0 deletions

View File

@ -322,6 +322,12 @@ void AddTextureChangeTempBreakpoint() {
textureChangeTemp = true;
}
void AddAnyTempBreakpoint() {
for (int i = 0; i < 256; ++i) {
AddCmdBreakpoint(i, true);
}
}
void RemoveAddressBreakpoint(u32 addr) {
std::lock_guard<std::mutex> guard(breaksLock);

View File

@ -38,6 +38,8 @@ namespace GPUBreakpoints {
void AddTextureBreakpoint(u32 addr, bool temp = false);
void AddTextureChangeTempBreakpoint();
void AddRenderTargetBreakpoint(u32 addr, bool temp = false);
// Quick way to trigger GE debugger statically.
void AddAnyTempBreakpoint();
void RemoveAddressBreakpoint(u32 addr);
void RemoveCmdBreakpoint(u8 cmd);