Hacking the fs-uae console debugger
Being a noob I need a debugger. I think the UAE console debugger is pretty cool.
So today I hacked some stuff into it that I was used to coming from GDB. I thought I'd share this here in case anyone else finds it useful. Firstly I added gnu readline support. The main advantage this gives me is "up arrow" history. The history is saved to disk so each time I run FS-UAE, my commands from the previous run are there. You pretty much get all the features of the bash command editor (search, cut paste etc). I also made another small change so that hitting "enter" without a command runs the previous command, so if you're stepping through a bunch of code you can go "t" or "z", then just keep hitting enter. Next I wanted symbols. I only debug bootblock run programs, so there are no symbols on the adf, so I added an option to tell fs-uae to load the symbols from a file. The file is just is list of names and addresses, that I generate with vlink or objdump. So now, any command in the debugger that takes an address will optionally take a symbol: Code:
>f Entry Code:
>d MainLoop The last thing I added was tab completion for symbol names. So if you type a command then the start of a symbol you can hit TAB and it will complete it, or show you a list of matches: Code:
>d doy<TAB> Anyone have any other ideas for debugger hacks ? Source is on my fork of FS-UAE: https://github.com/alpine9000/fs-uae.git |
Jolly good!
|
All times are GMT +2. The time now is 06:37. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.