mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-03 13:31:27 +12:00
PPU: correct behaviour under external debugger
May require setting "Assume External Debugger" to true.
This commit is contained in:
parent
e66d6a9399
commit
0a617a05d0
3 changed files with 25 additions and 6 deletions
|
@ -189,6 +189,13 @@ bool IsDebuggerPresent()
|
|||
}
|
||||
#endif
|
||||
|
||||
bool is_debugger_present()
|
||||
{
|
||||
if (g_cfg.core.external_debugger)
|
||||
return true;
|
||||
return IsDebuggerPresent();
|
||||
}
|
||||
|
||||
#if defined(ARCH_X64)
|
||||
enum x64_reg_t : u32
|
||||
{
|
||||
|
@ -1630,7 +1637,7 @@ static void append_thread_name(std::string& msg)
|
|||
|
||||
static LONG exception_handler(PEXCEPTION_POINTERS pExp) noexcept
|
||||
{
|
||||
if (pExp->ExceptionRecord->ExceptionCode == EXCEPTION_BREAKPOINT && IsDebuggerPresent())
|
||||
if (pExp->ExceptionRecord->ExceptionCode == EXCEPTION_BREAKPOINT)
|
||||
{
|
||||
return EXCEPTION_CONTINUE_SEARCH;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue