aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.HLE/Loaders
diff options
context:
space:
mode:
authorThog <me@thog.eu>2020-01-12 12:06:26 +0100
committerGitHub <noreply@github.com>2020-01-12 12:06:26 +0100
commit9c8d48edff8e43318550a087816542391dffea83 (patch)
tree66423944888c0f5c299846877762f87c693386a9 /Ryujinx.HLE/Loaders
parent78f6b1d3968a6c439cb36af74cae13c040c61af1 (diff)
Add 32 bits support to HleProcessDebugger (#859)
Co-authored-by: riperiperi <rhy3756547@hotmail.com>
Diffstat (limited to 'Ryujinx.HLE/Loaders')
-rw-r--r--Ryujinx.HLE/Loaders/Elf/ElfSymbol.cs8
-rw-r--r--Ryujinx.HLE/Loaders/Elf/ElfSymbol32.cs12
-rw-r--r--Ryujinx.HLE/Loaders/Elf/ElfSymbol64.cs12
3 files changed, 28 insertions, 4 deletions
diff --git a/Ryujinx.HLE/Loaders/Elf/ElfSymbol.cs b/Ryujinx.HLE/Loaders/Elf/ElfSymbol.cs
index b655816f..9961afe1 100644
--- a/Ryujinx.HLE/Loaders/Elf/ElfSymbol.cs
+++ b/Ryujinx.HLE/Loaders/Elf/ElfSymbol.cs
@@ -17,16 +17,16 @@ namespace Ryujinx.HLE.Loaders.Elf
Binding == ElfSymbolBinding.StbWeak;
public int ShIdx { get; private set; }
- public long Value { get; private set; }
- public long Size { get; private set; }
+ public ulong Value { get; private set; }
+ public ulong Size { get; private set; }
public ElfSymbol(
string name,
int info,
int other,
int shIdx,
- long value,
- long size)
+ ulong value,
+ ulong size)
{
Name = name;
Type = (ElfSymbolType)(info & 0xf);
diff --git a/Ryujinx.HLE/Loaders/Elf/ElfSymbol32.cs b/Ryujinx.HLE/Loaders/Elf/ElfSymbol32.cs
new file mode 100644
index 00000000..b7d98506
--- /dev/null
+++ b/Ryujinx.HLE/Loaders/Elf/ElfSymbol32.cs
@@ -0,0 +1,12 @@
+namespace Ryujinx.HLE.Loaders.Elf
+{
+ struct ElfSymbol32
+ {
+ public uint NameOffset;
+ public uint ValueAddress;
+ public uint Size;
+ public char Info;
+ public char Other;
+ public ushort SectionIndex;
+ }
+}
diff --git a/Ryujinx.HLE/Loaders/Elf/ElfSymbol64.cs b/Ryujinx.HLE/Loaders/Elf/ElfSymbol64.cs
new file mode 100644
index 00000000..662de1ff
--- /dev/null
+++ b/Ryujinx.HLE/Loaders/Elf/ElfSymbol64.cs
@@ -0,0 +1,12 @@
+namespace Ryujinx.HLE.Loaders.Elf
+{
+ struct ElfSymbol64
+ {
+ public uint NameOffset;
+ public char Info;
+ public char Other;
+ public ushort SectionIndex;
+ public ulong ValueAddress;
+ public ulong Size;
+ }
+}