mirror of
https://github.com/danog/ir.git
synced 2024-12-11 16:59:46 +01:00
Register data symbols as well
This commit is contained in:
parent
0dddad676d
commit
03fef453b6
@ -551,6 +551,9 @@ static bool ir_loader_sym_dcl(ir_loader *loader, const char *name, uint32_t flag
|
|||||||
if (l->dump_asm) {
|
if (l->dump_asm) {
|
||||||
ir_disasm_add_symbol(name, (uintptr_t)data, size);
|
ir_disasm_add_symbol(name, (uintptr_t)data, size);
|
||||||
}
|
}
|
||||||
|
if (l->run) {
|
||||||
|
ir_gdb_register(name, data, size, 0, 0);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
ir_loader_add_sym(loader, name, NULL);
|
ir_loader_add_sym(loader, name, NULL);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user