mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-06-28 00:16:23 +02:00
gdb: Interrupt at currently selected thread
This commit is contained in:
parent
1b37038d5a
commit
b932905053
1 changed files with 13 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue