|Re: [hatari-devel] symbols not always loaded when entering debugger ?|
[ Thread Index |
| More lists.tuxfamily.org/hatari-devel Archives
Le 16/11/2017 à 13:51, Thorsten Otto a écrit :
On Donnerstag, 16. November 2017 11:18:42 CET Nicolas Pomarède wrote:
An address error will
cause a jump into TOS handler for this exception, display 3 bombs on
screen and at this point if you press alt+pause, symbols are not there
Yes, thats the problem, the only thing you could do to prevent this is to hook
the etv_term vector, and wait for a keypress or something if the program was
not terminated normally.
Thats also the difference in EmuTOS: it displays the panic, then waits for a
keypress before terminating the program and returning to the desktop. If you
enter debugger at this point, symbols should still be there.
Which is why I suggest that by default symbols are never flushed
automatically : you flush them if the user explicitely ask to do it or
if another prg is loaded ; but apart from these cases, I think symbols
should remain loaded.
Also, not all people are coders aware of gem/tos variables to hook such
or such event ; demo coders are often used to code the "bare metal",
basically going to supervisor mode and then don't use the OS anymore,
just acces the HW directly.