RISC OS debugger?

bbc micro/electron/atom/risc os coding queries and routines
Post Reply
thoughstar
Posts: 12
Joined: Wed Jul 15, 2020 10:43 am
Location: Oslo, Norway
Contact:

RISC OS debugger?

Post by thoughstar » Mon Aug 03, 2020 5:42 pm

Hello again,

Are we still stuck in the dark ages of *showregs and *memoryi/a? Or are there proper debuggers for ARM assembler now, w/single stepping and arbitrary break points? Or, even better, is anyone aware of an emulator with a debugger API, like b2 has?

Tor

markdryan
Posts: 158
Joined: Sun Aug 20, 2017 11:37 pm
Contact:

Re: RISC OS debugger?

Post by markdryan » Mon Aug 03, 2020 8:09 pm

thoughstar wrote:
Mon Aug 03, 2020 5:42 pm
Hello again,

Are we still stuck in the dark ages of *showregs and *memoryi/a? Or are there proper debuggers for ARM assembler now, w/single stepping and arbitrary break points?
The DDE comes with an assembly language debugger called DDT which isn't too bad. It allows you to visually step through ARM instructions, view register and memory contents and set breakpoints. I use it a fair bit and find it quite useful. Unfortunately, the DDE isn't free (https://www.riscosopen.org/content/sales/dde).

markdryan
Posts: 158
Joined: Sun Aug 20, 2017 11:37 pm
Contact:

Re: RISC OS debugger?

Post by markdryan » Mon Aug 03, 2020 8:18 pm

Here's a screen shot of the DDT running in RPCEmu. Hopefully, this will give you some idea of what the tool looks like and what it can do.
ddt.png

thoughstar
Posts: 12
Joined: Wed Jul 15, 2020 10:43 am
Location: Oslo, Norway
Contact:

Re: RISC OS debugger?

Post by thoughstar » Mon Aug 03, 2020 8:24 pm

Many thanks for the screen shot; I have a feeling I used this back in the day.

Tor

steve3000
Posts: 2284
Joined: Sun Nov 25, 2012 12:43 am
Contact:

Re: RISC OS debugger?

Post by steve3000 » Mon Aug 03, 2020 9:41 pm

Also depends really what you want to debug...

If a desktop application or standalone utility, for example, then yes DDE is what you need.

But if a single tasking game or demo directly writing to the screen outside of OS routines, then you need something like Hacker or DesktopHacker, which works well with non-compliant software.

And finally if you’re not working on real hardware at all, see my thread from a couple of days ago about emulators with debuggers...MAME has a great debug tool, perfect for snooping the RISC OS ROM, for example, but the emulation isn’t perfect yet, especially for complex hardware effects in games/demos.

User avatar
helpful
Posts: 634
Joined: Tue Sep 22, 2009 1:18 pm
Location: London
Contact:

Re: RISC OS debugger?

Post by helpful » Tue Aug 04, 2020 4:38 pm

There's as thread on the ROOL forum discussing debugger features - https://www.riscosopen.org/forum/forums/2/topics/15491
RISC OS User Group Of London - http://www.rougol.jellybaby.net/
RISC OS London Show - http://www.riscoslondonshow.co.uk/

thoughstar
Posts: 12
Joined: Wed Jul 15, 2020 10:43 am
Location: Oslo, Norway
Contact:

Re: RISC OS debugger?

Post by thoughstar » Thu Aug 06, 2020 10:23 pm

steve3000 wrote:
Mon Aug 03, 2020 9:41 pm

But if a single tasking game or demo directly writing to the screen outside of OS routines, then you need something like Hacker or DesktopHacker, which works well with non-compliant software.
It is indeed a demo. Where is this Hacker/DesktopHacker of which you speak?

I did find Debugger Plus (https://web.archive.org/web/20051224224 ... bugger.zip). I'll give that a go.

Tor

User avatar
Dave Footitt
Posts: 924
Joined: Thu Jun 22, 2006 10:31 am
Location: Abandoned Uranium Workings
Contact:

Re: RISC OS debugger?

Post by Dave Footitt » Thu Aug 06, 2020 10:53 pm

There was also that QDBug but I don't know if it runs these days?

thoughstar
Posts: 12
Joined: Wed Jul 15, 2020 10:43 am
Location: Oslo, Norway
Contact:

Re: RISC OS debugger?

Post by thoughstar » Thu Aug 06, 2020 11:07 pm

Dave Footitt wrote:
Thu Aug 06, 2020 10:53 pm
There was also that QDBug but I don't know if it runs these days?
Cheers, will try to find that too. FWIW, I found ARM_Debug (https://web.archive.org/web/20030403180 ... Armdeb.zip); another one to try, I suppose.

Post Reply

Return to “programming”