From 02684e8d7cb5292867ebcdea06879b94ba63aef4 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Sun, 28 Apr 2019 01:00:24 -0700 Subject: 5133 - show instruction source in trace It's a little hacky in some corner cases. In particular, if debug information isn't available the trace will contain duplicated lines. This is because I don't want the core trace lines all my tests rely on (introduced in the 'vm' layer) to have to know about debug info (introduced in the 'labels' and 'debug' layers). Thanks Charles Saternos for the feedback and suggestion! --- subx/Readme.md | 1 + 1 file changed, 1 insertion(+) (limited to 'subx/Readme.md') diff --git a/subx/Readme.md b/subx/Readme.md index 15cb9972..e8e4ad6d 100644 --- a/subx/Readme.md +++ b/subx/Readme.md @@ -43,6 +43,7 @@ Emulated runs generate a trace that permits [time-travel debugging](https://gith ```sh $ ./subx --debug translate examples/factorial.subx -o examples/factorial saving address->label information to 'labels' + saving address->source information to 'source_lines' $ ./subx --debug --trace run examples/factorial saving trace to 'last_run' $ ../browse_trace/browse_trace last_run # text-mode debugger UI -- cgit 1.4.1-2-gfad0