SDL2: Add GDB stub options to SDL2 frontend

This commit is contained in:
merry 2022-02-08 20:05:23 +00:00
parent 1118d82205
commit a22aec9978
2 changed files with 11 additions and 1 deletions

View file

@ -172,6 +172,14 @@ namespace Ryujinx.Headless.SDL2
[Option("ignore-missing-services", Required = false, Default = false, HelpText = "Enable ignoring missing services.")] [Option("ignore-missing-services", Required = false, Default = false, HelpText = "Enable ignoring missing services.")]
public bool? IgnoreMissingServices { get; set; } 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 // Values
[Value(0, MetaName = "input", HelpText = "Input to load.", Required = true)] [Value(0, MetaName = "input", HelpText = "Input to load.", Required = true)]

View file

@ -484,7 +484,9 @@ namespace Ryujinx.Headless.SDL2
options.MemoryManagerMode, options.MemoryManagerMode,
(bool)options.IgnoreMissingServices, (bool)options.IgnoreMissingServices,
options.AspectRatio, options.AspectRatio,
options.AudioVolume); options.AudioVolume,
(bool)options.EnableGdbStub,
(ushort)options.GdbStubPort);
return new Switch(configuration); return new Switch(configuration);
} }