Hatari debugger
Moderators: simonsunnyboy, npomarede, thothy, Moderator Team
Hatari debugger
I have searched this forum and performed a general internet search for the answer to this but to no avail.
Why has Hatari debugger got no search/find in memory or mnemonic functionality?
I find this a basic action that most if not all debuggers usually have, or am I missing something?
Before I go poking around/hacking my own solution in the source code, does anyone know better?
Thanks.
Why has Hatari debugger got no search/find in memory or mnemonic functionality?
I find this a basic action that most if not all debuggers usually have, or am I missing something?
Before I go poking around/hacking my own solution in the source code, does anyone know better?
Thanks.
Re: Hatari debugger
I agree that would be welcome functionality. On the note on Hatari and debugging, you might want to look into hrdb if you haven't already: http://clarets.org/steve/projects/hrdb.html
- TheNameOfTheGame
- Fuji Shaped Bastard

- Posts: 2592
- Joined: Mon Jul 23, 2012 8:57 pm
- Location: Almost Heaven, West Virginia
Re: Hatari debugger
Eero was telling me that Hatari no longer needs SDL1 and SDL2 supports more than one window.
Might be time to get a debugger gui windowing system built-in to Hatari? Hatari already has so many debugger capabilities built-in, just have to get them available in a window.
Hrdb is well done and tat is a good guy, but it is really built for remote debugging and it works well for that, but has limitations due to it's primary mission. Having a gui built-in to Hatari would be the perfect answer.
Might be time to get a debugger gui windowing system built-in to Hatari? Hatari already has so many debugger capabilities built-in, just have to get them available in a window.
Hrdb is well done and tat is a good guy, but it is really built for remote debugging and it works well for that, but has limitations due to it's primary mission. Having a gui built-in to Hatari would be the perfect answer.
Re: Hatari debugger
Thanks. I'll take a look.troed wrote: ↑Wed Feb 28, 2024 11:18 am I agree that would be welcome functionality. On the note on Hatari and debugging, you might want to look into hrdb if you haven't already: http://clarets.org/steve/projects/hrdb.html
Re: Hatari debugger
Steem boiler room/debug has this functionSToS wrote: ↑Wed Feb 28, 2024 7:14 am I have searched this forum and performed a general internet search for the answer to this but to no avail.
Why has Hatari debugger got no search/find in memory or mnemonic functionality?
I find this a basic action that most if not all debuggers usually have, or am I missing something?
Before I go poking around/hacking my own solution in the source code, does anyone know better?
Thanks.
Re: Hatari debugger
Thanks thomas3, but not a Windows user and I wouldn't have the "power" to run an emulator under Wine under Linux.
I've not touched Windows since XP, but I do remember STeem (debug version) being very good though.
I think I'll take a look at the Hatari source code this weekend and see what I can come up with, if not I'll keep using xxd and grep for now.
Thanks again.
Re: Hatari debugger
Sorry, yes, hrdb has a search facility for hex or text strings. Hit Ctrl+F when you are in a Memory Window. I failed to add it in the instructions.
- Eero Tamminen
- Fuji Shaped Bastard

- Posts: 3899
- Joined: Sun Jul 31, 2011 1:11 pm
Re: Hatari debugger
It's been on TODO list, but nobody's had time to implement it yet. I don't remember anybody specifically asking for it either though.
Could you describe how exactly you think search functionality should work (in regards e.g. to quoting, repeating search etc)?
Re: Hatari debugger
Completely off the top of my head.Eero Tamminen wrote: ↑Thu Feb 29, 2024 4:23 pm It's been on TODO list, but nobody's had time to implement it yet. I don't remember anybody specifically asking for it either though.
Could you describe how exactly you think search functionality should work (in regards e.g. to quoting, repeating search etc)?
Keeping inline with the current format of commands maybe...
memfind (mf) [b|w|l|s] start_address length/end_address value1 [value2 ...]
b|w|l = usual byte|word|long
s = string
Length or End address? Not sure? Maybe prefix with + for length maybe.
It would probably make sense to limit the search value to 1 if it is a string search request.
Or just allow quoted characters for values using a byte (b) search?
As for repeat search, I think just finding and displaying ALL matches within the parameters defined is enough.
- Eero Tamminen
- Fuji Shaped Bastard

- Posts: 3899
- Joined: Sun Jul 31, 2011 1:11 pm
Re: Hatari debugger
Took a bit longer than I thought until I got time for this (=vacation), but change series implementing "find" command is now commited to git: https://git.tuxfamily.org/hatari/hatari.git/log/
(Handling character locale transitions between Atari and host required some additional work.)
It has simple pager that waits user input after each "page" of output.
(By default, page = how much fits into terminal, when one has built Hatari with readline support.)


