Files
SVM/src/SVM.Core/DebugSymbol.cs

28 lines
567 B
C#
Raw Normal View History

2025-07-16 20:09:34 +08:00
using System;
using System.Collections.Generic;
namespace SVM.Core
{
[Serializable]
public class DebugSymbol
{
public Dictionary<string, uint> Functions = new Dictionary<string, uint>();
}
public class RuntimeBinary
{
public uint offset;
public SimpleVirtualMachine? BindedMachine;
public DebugSymbol? Symbol;
public bool Invoke(string funcName)
{
if (BindedMachine == null) return false;
if (Symbol == null) return false;
if (!Symbol.Functions.TryGetValue(funcName, out var func))
{
return false;
}
return false;
}
}
}