Commit Graph

7 Commits

Author SHA1 Message Date
nc c0a904382b made first compute-offset test pass 2019-07-07 21:19:50 -04:00
Kartik Agaram 02684e8d7c 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!
2019-04-28 01:10:17 -07:00
Kartik Agaram cc1349523e 5065
Fix a documentation bug since commit 3765. Line-wise navigation in the
trace browser doesn't yet support scrolling.
2019-04-09 08:41:44 -07:00
Kartik Agaram ba80524a9f 5007 2019-03-17 19:09:55 -07:00
Kartik Agaram 6e80dc7d4a 5003 2019-03-13 09:47:05 -07:00
Kartik Agaram d274022caa 4990 2019-02-25 01:50:53 -08:00
Kartik Agaram c442a5ad80 4987 - support `browse_trace` tool in SubX
I've extracted it into a separate binary, independent of my Mu prototype.

I also cleaned up my tracing layer to be a little nicer. Major improvements:

- Realized that incremental tracing really ought to be the default.
  And to minimize printing traces to screen.

- Finally figured out how to combine layers and call stack frames in a
  single dimension of depth. The answer: optimize for the experience of
  `browse_trace`. Instructions occupy a range of depths based on their call
  stack frame, and minor details of an instruction lie one level deeper
  in each case.

Other than that, I spent some time adjusting levels everywhere to make
`browse_trace` useful.
2019-02-25 01:50:53 -08:00