Re: [hatari-devel] Entering Hatari debugger on ILLEGAL instruction |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
- To: hatari-devel@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [hatari-devel] Entering Hatari debugger on ILLEGAL instruction
- From: Uwe Seimet <Uwe.Seimet@xxxxxxxxx>
- Date: Fri, 26 Jul 2024 22:31:56 +0200
- Arc-authentication-results: i=1; strato.com; arc=none; dkim=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1722025919; s=strato-dkim-0002; d=strato.com; h=In-Reply-To:References:Message-ID:Subject:To:From:Date:Cc:Date:From: Subject:Sender; bh=cKORXAXbOmAyCcKBIyz4yFdeUyuKvfmmNaGzQcf0QH4=; b=F2taJfaR32Bnelocf1NlUt66sS9YA4X56+l+1ZzIjqLZi6LKgAtLdFvSusu8Nhhfp4 xV9QZYaIdkeThuqT6hMN+DJbuhmDBKkl+u7E2depkO1w6oNZiSHoFnPDp3VqtUSUttls /vOTVNkC0j1fB3z4gj0f3GTmsAPeVwEP3JO0oLef6QTKI9SFyLQP8seAPZ2DYNob0APn UoSawZnbSE9HUyCAcI6bZe+AsN67PNxzBl6hbl2r7FCPr+TLm2YGD2ocWktvC6QtP65P pzD1uk2WzJrLotHjQY5xWafQ1cboJ0Pr3PQircjOK4TQlfkWAXcVtYB4sa88N7BFv9nH 4Oog==
- Arc-seal: i=1; a=rsa-sha256; t=1722025919; cv=none; d=strato.com; s=strato-dkim-0002; b=teK7TAtr81MDeZmDf6XHgTmEq89NZJH3bmAfOriIgQwEOw3dYctgqngHGhx0g1/Tii 2+Iim3Zg1buVFflnICrAURM2Wfz9HEXG4hzgfHMqH485b3Zqap7oGTAfnSXaU044LEpp wUeWDkevySnWg5Dzvh0fyzR+4rW2A6JQ7Z+H6YjF6/WbnTIE+18gsmAiYL9FnpHw0GKU u2QhSJsNvasSZCxJEMn6fxgUHVQVzU+12NdrndajbQdXiSsldfnK0XCK8vPbr/p0v3++ isOF9l5GY2OA9Xi4GhlRntkpbiKLgAXMk4d1cn+lVwODaietYgoTh4Xccg9xo01KlLLn /tzw==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1722025919; s=strato-dkim-0002; d=seimet.de; h=In-Reply-To:References:Message-ID:Subject:To:From:Date:Cc:Date:From: Subject:Sender; bh=cKORXAXbOmAyCcKBIyz4yFdeUyuKvfmmNaGzQcf0QH4=; b=cSDwAdBeA8PIRP/em6M4gzFDQ/sIeARiExGp5L8OyEtt+VCe+OajHj84LnesIKDP1a SKgpFo5TgiPtkylkBsvUbPdP66b+2P3AACkdMyABGicVu4/3OhDvvNcyZU6u180M/3m6 9U3S5Q7ILS2IdkNEouNNyEiaLrXH4aDgyl8TgGaChHTqPPo6s3CPOBRCxfmjDourUGpf mYcXQwsUC9mQm/Zl8Cu4AwJHlF2EBYBaA/YvTBncCwwgdiTXDdtoifJNHyntoEEaKr2w PuLohFsWm/t9qonseMlVIwuZOyxs1mddok+3b1Gbqo/W+qc6a+nfBLJnXqsQOXoLflXi GRZg==
- Dkim-signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1722025918; s=strato-dkim-0003; d=seimet.de; h=In-Reply-To:References:Message-ID:Subject:To:From:Date:Cc:Date:From: Subject:Sender; bh=cKORXAXbOmAyCcKBIyz4yFdeUyuKvfmmNaGzQcf0QH4=; b=u0reDubwPnVeP4SREgMBKIk/0Wt0p9OkP+KHGsQBuxQwW5z6liyQsYqHDh5CZax7g+ nVGuzv3fajhL+VlfvLCA==
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
>
>