5822
This commit is contained in:
parent
ce27f90f05
commit
47a15082c6
|
@ -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;
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue