Hi all,
Here's the source code of the debugger I've been working on the last couple of days. It's a command line debugger and it still misses two core features of a real debugger (it can't assemble commands and it can't single-step) that second key feature I'm going to work on now. For assembling you may have to wait a while.
Sourcode is included as filename.realextension.txt. I uploaded them as attachments because they are too big to post here. MPGH doesn't allow more than 1700000 characters, and the code contains much more than that
Commands
They are case sensitive
End: Aborts the program
Disasm: Disassembles the instructions at a given address with a given size
Note, the address and size are not validated, you can crash if you supply invalid/protected addresses
Cls: clears the screen
BP: Sets a breakpoint at the given address
Tbp: Shows all triggered breakpoints and their threads
Remove: Removes a breakpoint
Note, Remove can only remove breakpoints that have been triggered, also note: that you have to supply the thread number (found at Tbp) to specify which breakpoint you want removed
Registers: Shows the value the registers hold at a triggered breakpoint
Note: you'll also need to supply the thread number (found at Tbp)
Info: Displays basic information about the running process (it's PEB, number of threads, thread status and processid)
Pics
Credits:
Me, Isaac Sigasa (disclaimer & copyright in the source)
I hope someone likes it
