> * debugger config option for disassembly offset
When using fixed offset from PC (say "pc-16"),
instruction at PC was incorrect in disassembly
more often than not.
(This was easy to test with my patch in the other
mail that allows setting breakpoint for every
debug symbol address.)
Therefore Miro, this is definitely not a feature
to be enabled by default, although it has worked
well enough for you. I'm not sure it's even
worth pushing to Hatari repo. :-(
I'm sorry, I still haven't gotten into testing this. If the results are less than encouraging, perhaps this can't be solved by a simple patch. If I were implementing this, I would certainly try to cheat a little -- for instance, there's a pretty big probability that the past N instructions are located "above" current PC. So I would take the closest one to the top of the screen border and go with disassembly from there (naturally, showing only the portion which fits into the screen).
If it was a long jump directly onto the breakpoint then this wont work but maybe the approach above will flip the statistics from "more often than not". :) I'm sure there are other heuristics to take into account, this was just the first thing which came into my mind.