mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
Make alias defs and temps more obvious in dumps.
This commit is contained in:
parent
f358364ef2
commit
b5a72320bb
2 changed files with 5 additions and 2 deletions
|
@ -173,6 +173,7 @@ alias_def (def_t *def, type_t *type, int offset)
|
||||||
return alias;
|
return alias;
|
||||||
}
|
}
|
||||||
ALLOC (16384, def_t, defs, alias);
|
ALLOC (16384, def_t, defs, alias);
|
||||||
|
alias->name = save_string (va ("[%s:%d]", def->name, offset));
|
||||||
alias->return_addr = __builtin_return_address (0);
|
alias->return_addr = __builtin_return_address (0);
|
||||||
alias->offset = offset;
|
alias->offset = offset;
|
||||||
alias->offset_reloc = 1;
|
alias->offset_reloc = 1;
|
||||||
|
|
|
@ -122,8 +122,10 @@ operand_string (operand_t *op)
|
||||||
case op_label:
|
case op_label:
|
||||||
return op->o.label->name;
|
return op->o.label->name;
|
||||||
case op_temp:
|
case op_temp:
|
||||||
while (op->o.tempop.alias)
|
if (op->o.tempop.alias)
|
||||||
op = op->o.tempop.alias;
|
return va ("<tmp %p:%d:%p:%d>", op, op->o.tempop.users,
|
||||||
|
op->o.tempop.alias,
|
||||||
|
op->o.tempop.alias->o.tempop.users);
|
||||||
return va ("<tmp %p:%d>", op, op->o.tempop.users);
|
return va ("<tmp %p:%d>", op, op->o.tempop.users);
|
||||||
}
|
}
|
||||||
return ("??");
|
return ("??");
|
||||||
|
|
Loading…
Reference in a new issue