open-power / pdbg

PowerPC FSI Debugger
Apache License 2.0
17 stars 39 forks source link

HTM issues from Anton #34

Open shenki opened 6 years ago

shenki commented 6 years ago
apopple commented 6 years ago

htm is hiding behind the mysterious --expert option

It didn't take @mikey long to convince me that --expert was at best ambiguous. It stems from my own ideas around debugging and pdbg were that it shouldn't ever change system state in "unexpected" ways.

So for example getgpr shouldn't stop instructions executing, but instead tell the user what needs to be done to stop instructions executing if they haven't already been. Reason is that generally you don't want your debugging tools screwing with your system in unexpected ways, but they should help a user discover what to do (whether or not we've succeeded with that is certainly debatable).

So the current thinking is we will make user-friendly versions of commands like getgpr and htm which will put the system in the right state if it isn't already and generally just "do what you want" (for certain values of "you" and "want") and a --safe mode which will only "do what you say".