mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-07-25 07:09:55 -06:00
gdb: Interrupt at currently selected thread
This commit is contained in:
@ -222,7 +222,7 @@ namespace Ryujinx.HLE.Debugger
|
||||
{
|
||||
case BreakInMessage:
|
||||
Logger.Notice.Print(LogClass.GdbStub, "Break-in requested");
|
||||
CommandQuery();
|
||||
CommandInterrupt();
|
||||
break;
|
||||
|
||||
case SendNackMessage:
|
||||
@ -731,6 +731,18 @@ namespace Ryujinx.HLE.Debugger
|
||||
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)
|
||||
{
|
||||
if (newPc.HasValue)
|
||||
|
Reference in New Issue
Block a user