diff options
author | Kartik Agaram <vc@akkartik.com> | 2019-04-27 22:02:36 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2019-04-28 00:09:48 -0700 |
commit | ffe66972277c856f33e349b3d1fd1b2a6b5bfa2a (patch) | |
tree | 459ddc27acc99785a671a253d8807990acdf9483 /subx/039debug.cc | |
parent | f539a27245d31f4ba3c90389dce1f5f4d372bd27 (diff) | |
download | mu-ffe66972277c856f33e349b3d1fd1b2a6b5bfa2a.tar.gz |
5132
Stop hackily tracing function being called. Trying something better.
Diffstat (limited to 'subx/039debug.cc')
-rw-r--r-- | subx/039debug.cc | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/subx/039debug.cc b/subx/039debug.cc index b631336a..ebf39034 100644 --- a/subx/039debug.cc +++ b/subx/039debug.cc @@ -25,14 +25,6 @@ void load_map(const string& map_filename) { if (contains_key(Symbol_name, EIP)) trace(Callstack_depth, "run") << "== label " << get(Symbol_name, EIP) << end(); -//: make calls in particular more salient -:(before "End Trace Call Instruction") -// at this point we've skipped past the e8 opcode, but not the offset operand -int32_t offset = read_mem_i32(EIP); -uint32_t next_eip = EIP+offset+4; -if (contains_key(Symbol_name, next_eip)) - return "/call "+get(Symbol_name, next_eip); - //: If a label starts with '$watch-', make a note of the effective address //: computed by the next instruction. Start dumping out its contents to the //: trace after every subsequent instruction. |