Skip to content

Commit 3761f47

Browse files
committed
No symbol support on unix.
1 parent 5d37af1 commit 3761f47

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

Symbols/SymbolStore.cs

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
using Dia2Lib;
88
using Microsoft.Win32;
99
using ReClassNET.Memory;
10+
using ReClassNET.Native;
1011
using ReClassNET.Util;
1112

1213
namespace ReClassNET.Symbols
@@ -66,6 +67,13 @@ public class SymbolStore
6667

6768
public SymbolStore()
6869
{
70+
if (NativeMethods.IsUnix())
71+
{
72+
// TODO: Are there symbol files like on windows?
73+
74+
return;
75+
}
76+
6977
ResolveSearchPath();
7078

7179
var blacklistPath = Path.Combine(SymbolCachePath, BlackListFile);
@@ -112,6 +120,11 @@ public void TryResolveSymbolsForModule(Module module)
112120
Contract.Requires(module != null);
113121
Contract.Requires(module.Name != null);
114122

123+
if (NativeMethods.IsUnix())
124+
{
125+
return;
126+
}
127+
115128
var name = module.Name.ToLower();
116129

117130
bool isBlacklisted;
@@ -146,6 +159,11 @@ public void LoadSymbolsForModule(Module module)
146159
Contract.Requires(module != null);
147160
Contract.Requires(module.Name != null);
148161

162+
if (NativeMethods.IsUnix())
163+
{
164+
return;
165+
}
166+
149167
var moduleName = module.Name.ToLower();
150168

151169
bool createNew;
@@ -169,6 +187,11 @@ public void LoadSymbolsFromPDB(string path)
169187
{
170188
Contract.Requires(path != null);
171189

190+
if (NativeMethods.IsUnix())
191+
{
192+
return;
193+
}
194+
172195
var moduleName = Path.GetFileName(path).ToLower();
173196

174197
bool createNew;
@@ -193,6 +216,11 @@ public SymbolReader GetSymbolsForModule(Module module)
193216
Contract.Requires(module != null);
194217
Contract.Requires(module.Name != null);
195218

219+
if (NativeMethods.IsUnix())
220+
{
221+
return null;
222+
}
223+
196224
var name = module.Name.ToLower();
197225

198226
lock (symbolReaders)

0 commit comments

Comments
 (0)