Page 1 of 1

WIP - ZEsarUX remote debugger

Posted: Fri Jun 02, 2017 11:47 am
by SavourySnaX
Hi,

I've had a quick play with ZEsarUX (@chernandezba great work btw).

I know a few people are working on these (or IDEs), but I`m impatient :)


(Note turn on subtitles for explanation - No audio)

I`ll stick the code up on github over the weekend (http://github.com/SavourySnaX/Remote-Debugger/) (its pretty simplistic), note it is windows only (due to my use of winforms, win docks and remote window capture). It needs the latest (source code) version of ZEsarUX.

I need to investigate adding breakpoint support, however this is complicated at present due to breakpoints causing the ZEsarUX emulator to go into menu mode - which isn't desirable - or I`m doing something wrong :) ).

Re: WIP - ZEsarUX remote debugger

Posted: Fri Jun 02, 2017 12:00 pm
by chernandezba
Great job! About breakpoints, execute "enter-cpu-step" (pauses emulation), then "run". After that, telnet is suspended, and resumed again when a breakpoint is fired (and the menu won't open)

Re: WIP - ZEsarUX remote debugger

Posted: Fri Jun 02, 2017 12:01 pm
by chernandezba
BTW tell me about that write-mapped-memory-ex command ;)

Re: WIP - ZEsarUX remote debugger

Posted: Fri Jun 02, 2017 12:06 pm
by SavourySnaX
I'll give it another go, tonight. My first experiments involved setting a breakpoint and then running randomize use 32768, it fired... but returned back at 2 instructions beyond that.. which was a bit odd :)

Write-memory-mapped-ex (wmmex).
wmmex address length *hex-bytes

Basically just adds a length and loops through all bytes (much quicker than sending each byte one at a time).
However I had to increase the buffer sizes from 1024 to 65536*4 to allow enough space to send a reasonably long chunk of data.

Re: WIP - ZEsarUX remote debugger

Posted: Fri Jun 02, 2017 12:55 pm
by Uto
I....WANT....THAT.... :lol:

Awesome work, I had started something similar myself but lack of time and too many projects didn't let me progress. Now it's too late for me, I'll use yours :-D

Re: WIP - ZEsarUX remote debugger

Posted: Sat Jun 03, 2017 9:10 am
by SavourySnaX
Source code : http://github.com/SavourySnaX/Remote-Debugger/
First Windows Release : http://github.com/SavourySnaX/Remote-De ... rsion0.0.0

You will need the latest source code version of ZEsarUX (Cesar reworked the wmm to remove the need for my hack :) )

It is still very much a Proof Of Concept!!

Re: WIP - ZEsarUX remote debugger

Posted: Sat Jun 03, 2017 4:47 pm
by jsj
Impressive!!!

Re: WIP - ZEsarUX remote debugger

Posted: Sat Jun 03, 2017 7:30 pm
by SavourySnaX
New Release : http://github.com/SavourySnaX/Remote-De ... ses/latest

Has more configuration plus basic breakpoint support. (Also now works if ZEsarUX isn't running before hand -- i hope)

Me rambling on about the debugger (I`ll try and improve this if I do another video!)
https://www.youtube.com/watch?v=on-aeVxCAsI