Register data symbols as well

This commit is contained in:
Dmitry Stogov 2023-12-26 15:22:59 +03:00
parent 0dddad676d
commit 03fef453b6

View File

@ -551,6 +551,9 @@ static bool ir_loader_sym_dcl(ir_loader *loader, const char *name, uint32_t flag
if (l->dump_asm) {
ir_disasm_add_symbol(name, (uintptr_t)data, size);
}
if (l->run) {
ir_gdb_register(name, data, size, 0, 0);
}
} else {
ir_loader_add_sym(loader, name, NULL);
}