mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-07-26 15:49:57 -06:00
gdb: Interrupt at currently selected thread
This commit is contained in:
@ -222,7 +222,7 @@ namespace Ryujinx.HLE.Debugger
|
|||||||
{
|
{
|
||||||
case BreakInMessage:
|
case BreakInMessage:
|
||||||
Logger.Notice.Print(LogClass.GdbStub, "Break-in requested");
|
Logger.Notice.Print(LogClass.GdbStub, "Break-in requested");
|
||||||
CommandQuery();
|
CommandInterrupt();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case SendNackMessage:
|
case SendNackMessage:
|
||||||
@ -731,6 +731,18 @@ namespace Ryujinx.HLE.Debugger
|
|||||||
Reply($"T05thread:{cThread:x};");
|
Reply($"T05thread:{cThread:x};");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CommandInterrupt()
|
||||||
|
{
|
||||||
|
// GDB is requesting an interrupt. Stop everything.
|
||||||
|
DebugProcess.DebugStop();
|
||||||
|
if (gThread == null || !GetThreads().Any(x => x.ThreadUid == gThread.Value))
|
||||||
|
{
|
||||||
|
gThread = cThread = DebugProcess.GetThreadUids().First();
|
||||||
|
}
|
||||||
|
|
||||||
|
Reply($"T02thread:{gThread:x};");
|
||||||
|
}
|
||||||
|
|
||||||
void CommandContinue(ulong? newPc)
|
void CommandContinue(ulong? newPc)
|
||||||
{
|
{
|
||||||
if (newPc.HasValue)
|
if (newPc.HasValue)
|
||||||
|
Reference in New Issue
Block a user