Re: [hatari-devel] Entering Hatari debugger on ILLEGAL instruction

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


Hi Eero,

I might not be using this tool correctly, because it does not work. My use
case is an ILLEGAL opcode in the executable root sector of a hard drive,
i.e. this code is executed by TOS in an early stage of the boot process.
Assuming that I have to start this tool while Hatari is running and before
the first ILLEGAL instruction is executed is hardly possible from a timing
perspective.

IMHO using a tool is quite inconvenient. Using an ILLEGAL instruction for a
breakpoint is a common use case. But in my case I cannot start my code
inside a debugger (e. g. PD) within Hatari. Being able to tell Hatari on the
command line to enter the debugger on an ILLEGAL instruction is what I had
hoped for.

Best regards

Uwe

> Hi Uwe,
> 
> On 26.7.2024 19.22, Uwe Seimet wrote:
> > I may have missed it in the Hatari debugger documentation: Is there any way
> > to enter the Hatari debugger when the emulation hits the ILLEGAL opcode? Or
> > is there another way to force the Hatari debugger to be entered when the
> > emulation hits a particular opcode?
> 
> There's a tool for that:
> -------------------------------------------------------------
> hatari$ tools/debugger/m68k-instructions.py
> 
> *************************************************************
> * m68k instruction information, Hatari debugger breakpoints *
> * for them and C-code table for matching them.              *
> *                                                           *
> * To see instructions, use the TAB key; to see instruction  *
> * information, complete it and press Enter. "code" command  *
> * shows the C-code, "check" shows potential instruction     *
> * conflicts, "help" shows this help and "exit" exits.       *
> *************************************************************
> 
> m68k-instruction: illegal
> 
> Instruction:
>    illegal - 0100101011111100
> 
> Hatari breakpoint:
>    b  (pc).w = $4afc
> -------------------------------------------------------------
> 
> 
> 	- Eero
> 
> 



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/