mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2026-03-11 17:11:06 +00:00
- convert GdbRegisters utilities into extensions on IExecutionContext - add a Write/Read Register helper on Debugger that handles 32/64 bit instead of doing that for every usage of register reading/writing
26 lines
1.0 KiB
C#
26 lines
1.0 KiB
C#
using System.Collections.Generic;
|
|
using System.IO;
|
|
|
|
namespace Ryujinx.HLE.Debugger
|
|
{
|
|
class RegisterInformation
|
|
{
|
|
public static readonly Dictionary<string, string> Features = new()
|
|
{
|
|
{ "target64.xml", GetEmbeddedResourceContent("target64.xml") },
|
|
{ "target32.xml", GetEmbeddedResourceContent("target32.xml") },
|
|
{ "aarch64-core.xml", GetEmbeddedResourceContent("aarch64-core.xml") },
|
|
{ "aarch64-fpu.xml", GetEmbeddedResourceContent("aarch64-fpu.xml") },
|
|
{ "arm-core.xml", GetEmbeddedResourceContent("arm-core.xml") },
|
|
{ "arm-neon.xml", GetEmbeddedResourceContent("arm-neon.xml") },
|
|
};
|
|
|
|
private static string GetEmbeddedResourceContent(string resourceName)
|
|
{
|
|
using Stream stream = System.Reflection.Assembly.GetExecutingAssembly().GetManifestResourceStream("Ryujinx.HLE.Debugger.Gdb.Xml." + resourceName);
|
|
using StreamReader reader = new(stream);
|
|
return reader.ReadToEnd();
|
|
}
|
|
}
|
|
}
|