Allow symbol table expansion. (#1191)

* Allow symbol table expansion.

* fix debugger

* fix bits_for_sym

* use a `static_assert` over `throw`
This commit is contained in:
ManDude
2022-02-25 03:43:00 +00:00
committed by GitHub
parent 9c00b0c135
commit 8adac544cf
20 changed files with 97 additions and 58 deletions
+2 -1
View File
@@ -10,6 +10,7 @@
#include "common/type_system/state.h"
#include "common/util/print_float.h"
#include "decompiler/IR2/ExpressionHelpers.h"
#include "decompiler/util/goal_constants.h"
/*
* TODO
@@ -956,7 +957,7 @@ void SimpleExpressionElement::update_from_stack_add_i(const Env& env,
// try to find symbol to string stuff
auto arg0_int = get_goal_integer_constant(args.at(0), env);
if (arg0_int && (*arg0_int == SYM_INFO_OFFSET + 4) &&
if (arg0_int && (*arg0_int == DECOMP_SYM_INFO_OFFSET + 4) &&
arg1_type.typespec() == TypeSpec("symbol")) {
result->push_back(pool.alloc_element<GetSymbolStringPointer>(args.at(1)));
return;