[hatari-devel] Hatari debugger questions |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
- To: hatari-devel@xxxxxxxxxxxxxxxxxxx
- Subject: [hatari-devel] Hatari debugger questions
- From: Uwe Seimet <Uwe.Seimet@xxxxxxxxx>
- Date: Sun, 25 Feb 2018 22:34:43 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1519594483; s=strato-dkim-0002; d=seimet.de; h=Content-Type:Message-ID:Subject:To:From:Date:X-RZG-CLASS-ID: X-RZG-AUTH; bh=qWSbYRuBQJ5xEzJP1jbF/ql7HI9XHkQSmpuMGqmnEik=; b=ozWE6nkCq8oMt6+QQnhV7oOsXVY5TNhHywUKjqY1yg9F7wBB+2XX26j386H3OBsapJ jH6sRfy9mbtycP/ZuxKKbrzJXYqp4hlWiVJi68OeSVn5S5UvqhOqJidXsYq2ysANDa5g lBV5I5cmaL4aWjHlrJJp0/iAzo2ILrcs9imjowZO8l8aTmDGldReKAWfi8/s+a+cyfTS u5W+hARTYJiy6S5OjGiOoHqrS1s+93ipugAQtT98bVJ9+TVc3o5xNmi57laj9RfmRpqY uuvb3aePKvs58sUJTcE0DF6b14HvrQzGsSDlz+vH9VpgG1m2Y9ZXSQ3xOxUvH9rjDuFr Rqsg==
Hi,
when trying to use the debugger I stumbled upon some problems. The 'd'
command is supposed to "disassemble from PC, or given address". When I
enter 'd' without any parameters more than once my expectation is
that each time it disassembles starting at the PC location, but it does not:
> d
$00023752 : 41e8 0014 lea $14(a0),a0
$00023756 : 2148 fffc move.l a0,$fffc(a0)
$0002375a : 2049 movea.l a1,a0
$0002375c : 51c9 ffea dbra d1,$23748
$00023760 : 91c0 suba.l d0,a0
$00023762 : 4290 clr.l (a0)
$00023764 : 205f movea.l (sp)+,a0
$00023766 : 4e75 rts
> d
$00023768 : 207a ba2e movea.l $1f198(pc),a0
$0002376c : 4868 001c pea $1c(a0)
$00023770 : 2f00 move.l d0,-(sp)
$00023772 : 4267 clr.w -(sp)
$00023774 : 3f3c 004a move.w #$4a,-(sp)
$00023778 : 4e41 trap #1
$0002377a : 4fef 000c lea $c(sp),sp
$0002377e : 3f38 0446 move.w $0446.w,-(sp)
The second time it disassembles from the next address instead.
Further, when I change the pc value and then enter 's' my expectation is
that the first command at the new pc location is executed. What happens
instead is that the instruction at the previous (old) pc location is
executed.
Am I doing something wrong? What do I have to do in order to change the
pc value and then to single-step starting at the new pc location?
Best regards
Uwe