[hatari-devel] unexpected output of 'm' with count or range in debugger |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
- To: hatari-devel@xxxxxxxxxxxxxxxxxxx
- Subject: [hatari-devel] unexpected output of 'm' with count or range in debugger
- From: "J.Young" <jyoung8299@xxxxxxxxxx>
- Date: Sun, 25 Feb 2024 21:04:00 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1708895042; bh=Oxr4Nx3sx2GqRGtARi8BPaByW3Fs81GsBCrnkp9F/TQ=; h=Message-ID:Date:MIME-Version:Subject:To:From:Content-Type: Content-Transfer-Encoding:From; b=J9Bq5EPkr5uIleXInE47H/fJGDTMofbcriyryOxfhAlQGUK0kDQG55hxrn/8tAa8G Vbsczer9Kb86CWt3F3HOPF2wygAP5ojaBmVKtVZwYcFhAvZQ4oKY/6DYeRJtO3N3sg 4B3IV6I8LXzMAIhuSwvvJw/BCyAuGxAT5iVz9LRWEDr7hfXLS1FD9tN2kfAyogR3lz s+nj22wxT8cggmtq3g4mlKrOQxUAVBvyWMhNHLwMP2OB6zqcGa0Bj6qwxxOJNV02eO xJt5pku703SRPX0H4qM7+PJzld7QpHv4g6AeeFbhQDDcTvRy4Ndg/MTibZTKatUJ66 cmd/dSqeQ+Y9g==
In the debugger I wanted see a single byte so I issued a "m b 5120 1"
expecting a single byte to echo back. Instead it printed 1 *line* of
output.
Likewise, specifying a range "m b 5120-5120" or "m b 5120-5121" prints
an entire line also.
The reason I bring this up is that being able to print a byte, word or
long only or any arbitrary number instead of line granularity would be
very helpful when looking at structures.
Example, breaking on the change of a variable and printing the structure
associated with it with each line showing a member of the structure.
'b ($5120).b ! ($5120).b :file breakpoint.bkp'
and $5120 is the beginning of a structure with two bytes and a word just
for example.
So in the breakpoint file "breakpoint.bkp" it could print the structure out:
m b $5120 1
m b $5121 1
m w $5122 1
which could be very helpful visualizing structure changes. Is this
possible?