diff --git a/ir_main.c b/ir_main.c index 9f928d4..69d9ee4 100644 --- a/ir_main.c +++ b/ir_main.c @@ -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); }