Skip to content

Ghidra is a software reverse engineering (SRE) framework

Initialize ID lookup tables to fix sleighexample

Eric Kilmerae78cca16d5d
diff --git a/Ghidra/Features/Decompiler/src/decompile/cpp/sleighexample.cc b/Ghidra/Features/Decompiler/src/decompile/cpp/sleighexample.cc
index 3a61418e63..87a4d79802 100644
--- a/Ghidra/Features/Decompiler/src/decompile/cpp/sleighexample.cc
+++ b/Ghidra/Features/Decompiler/src/decompile/cpp/sleighexample.cc
@@ -294,6 +294,9 @@ int main(int argc,char **argv)
}
string action(argv[1]);
+ AttributeId::initialize();
+ ElementId::initialize();
+
// Set up the loadimage
MyLoadImage loader(0x80483b4,myprog,408);
// loader->open();