This commit is contained in:
Kartik Agaram 2019-12-22 23:39:00 -08:00
parent ce27f90f05
commit 47a15082c6
2 changed files with 3 additions and 3 deletions

View File

@ -334,7 +334,7 @@ inline uint8_t next() {
void dump_registers() {
ostringstream out;
out << "registers before: ";
out << "regs: ";
for (int i = 0; i < NUM_INT_REGISTERS; ++i) {
if (i > 0) out << " ";
out << i << ": " << std::hex << std::setw(8) << std::setfill('_') << Reg[i].u;

View File

@ -39,10 +39,10 @@ void load_source_lines() {
if (contains_key(Symbol_name, EIP))
trace(Callstack_depth, "run") << "== label " << get(Symbol_name, EIP) << end();
if (contains_key(Source_line, EIP))
trace(Callstack_depth, "run") << "0x" << HEXWORD << EIP << ": " << get(Source_line, EIP) << end();
trace(Callstack_depth, "run") << "inst: " << get(Source_line, EIP) << end();
else
// no source line info; do what you can
trace(Callstack_depth, "run") << "0x" << HEXWORD << EIP << ": " << debug_info(EIP) << end();
trace(Callstack_depth, "run") << "inst: " << debug_info(EIP) << end();
:(code)
string debug_info(uint32_t inst_address) {