mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2025-03-14 17:00:17 +00:00
SDL2: Add GDB stub options to SDL2 frontend
This commit is contained in:
parent
1118d82205
commit
a22aec9978
2 changed files with 11 additions and 1 deletions
|
@ -172,6 +172,14 @@ namespace Ryujinx.Headless.SDL2
|
|||
[Option("ignore-missing-services", Required = false, Default = false, HelpText = "Enable ignoring missing services.")]
|
||||
public bool? IgnoreMissingServices { get; set; }
|
||||
|
||||
// Debug
|
||||
|
||||
[Option("enable-gdb-stub", Required = false, Default = false, HelpText = "Enables the GDB stub so that a developer can attach a debugger to the emulated process.")]
|
||||
public bool? EnableGdbStub { get; set; }
|
||||
|
||||
[Option("gdb-stub-port", Required = false, Default = 55555, HelpText = "Specifies which TCP port the GDB stub listens on.")]
|
||||
public ushort? GdbStubPort { get; set; }
|
||||
|
||||
// Values
|
||||
|
||||
[Value(0, MetaName = "input", HelpText = "Input to load.", Required = true)]
|
||||
|
|
|
@ -484,7 +484,9 @@ namespace Ryujinx.Headless.SDL2
|
|||
options.MemoryManagerMode,
|
||||
(bool)options.IgnoreMissingServices,
|
||||
options.AspectRatio,
|
||||
options.AudioVolume);
|
||||
options.AudioVolume,
|
||||
(bool)options.EnableGdbStub,
|
||||
(ushort)options.GdbStubPort);
|
||||
|
||||
return new Switch(configuration);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue