about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2019-12-22 23:39:00 -0800
committerKartik Agaram <vc@akkartik.com>2019-12-22 23:39:00 -0800
commit47a15082c69d104cdcc907dee962af166f35e374 (patch)
treed595a2a42538777b3329d1f0a8ed05c4cdb62aff
parentce27f90f05edc605dd519b0794273233c2951a6b (diff)
downloadmu-47a15082c69d104cdcc907dee962af166f35e374.tar.gz
5822
-rw-r--r--010---vm.cc2
-rw-r--r--039debug.cc4
2 files changed, 3 insertions, 3 deletions
diff --git a/010---vm.cc b/010---vm.cc
index 56ff5cf5..6675cab9 100644
--- a/010---vm.cc
+++ b/010---vm.cc
@@ -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;
diff --git a/039debug.cc b/039debug.cc
index b308a7d4..e3dd8073 100644
--- a/039debug.cc
+++ b/039debug.cc
@@ -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) {