Profiling and debugging tools?

Talk about development tools here

Moderator: BigEvilCorporation

Post Reply
doragasu
Very interested
Posts: 125
Joined: Tue Oct 09, 2012 8:15 am

Profiling and debugging tools?

Post by doragasu » Tue Aug 27, 2013 11:45 am

Is there a way to use any Genesis emulator along with GDB? (preferably for Linux and not requiring an expensive computer). I know Gens Kmod has some fancy debugging facilities, but AFAIK it is Windows only and it doesn't look like it can be integrated with GDB or any other debugger. Also Exodus debugging support looks great, but again it is Windows only, and it also doesn't look that can be used with an external debugger like GDB.

If there is no Genesis emulator that can deal with GDB, is there other kind of simulator/emulator that allows it? (just for profiling/debugging some routines) I suppose it can be done with qemu, but it looks complicated. Anyone using qemu here for debugging 68k code?

What are your favorite tools for Genesis code profiling and debugging?

Stef
Very interested
Posts: 3057
Joined: Thu Nov 30, 2006 9:46 pm
Location: France - Sevres
Contact:

Post by Stef » Tue Aug 27, 2013 12:33 pm

This is a feature that i am really waiting for ! Currently there is no emulator with GDB support.

Graz
Very interested
Posts: 81
Joined: Thu Aug 23, 2007 12:36 am
Location: Orlando, FL

Post by Graz » Wed Aug 28, 2013 12:59 am

Stef wrote:... Currently there is no emulator with GDB support.
This is my patched version of Gens:

http://youtu.be/DgboHbCGsd4

Stef
Very interested
Posts: 3057
Joined: Thu Nov 30, 2006 9:46 pm
Location: France - Sevres
Contact:

Post by Stef » Wed Aug 28, 2013 11:01 am

Oh nice one, i was not aware of that ! And by the way, the rotozoom effect looks impressive :D
Is there any links where we can download it ? Having complete GDB interface would help a tons in debugging megadrive code !

Graz
Very interested
Posts: 81
Joined: Thu Aug 23, 2007 12:36 am
Location: Orlando, FL

Post by Graz » Wed Aug 28, 2013 11:25 am

I've never released this build of the emulator. It's got a bunch of other fixes and features. GDB support is basically just an implementation of the GDB remote debug protocol (http://sourceware.org/gdb/current/onlin ... tocol.html). I can debug both 68Ks in a CD system and both SH2s in a 32x simultaneously. The remote part of it works too - you can debug from one machine to another, including from Linux to Windows, etc.

I don't think I'll release this one as-is. There are too many hacked up copies of Gens floating around, and too many other hacks in my build. However, I'd be very happy to port GDB support into another emulator should there be an opening of source...

Stef
Very interested
Posts: 3057
Joined: Thu Nov 30, 2006 9:46 pm
Location: France - Sevres
Contact:

Post by Stef » Wed Aug 28, 2013 1:13 pm

I understand your point about having too much Gens hacks version, also Gens is not really accurate and probably not a good emulator to test homebrew dev. I think Genesis Plus would be a nice candidate for GDB support as Exodus (though it has the inconvenient of strong CPU requirement to run at full speed).

notaz
Very interested
Posts: 192
Joined: Mon Feb 04, 2008 11:58 pm
Location: Lithuania

Post by notaz » Wed Aug 28, 2013 5:38 pm

Graz wrote:I don't think I'll release this one as-is. There are too many hacked up copies of Gens floating around, and too many other hacks in my build. However, I'd be very happy to port GDB support into another emulator should there be an opening of source...
Feature like that would certainly be welcome in PicoDrive:
https://github.com/notaz/picodrive

It has 32X/CD support, but is performance oriented and has weaker VDP emulation compared to Genesis Plus, although I plan to work on that. Both emus aren't targeting windows though, so if that's what you are looking for we're out of luck I guess.

doragasu
Very interested
Posts: 125
Joined: Tue Oct 09, 2012 8:15 am

Post by doragasu » Wed Aug 28, 2013 9:06 pm

That would be a killer feature!

Chilly Willy
Very interested
Posts: 2854
Joined: Fri Aug 17, 2007 9:33 pm

Post by Chilly Willy » Thu Aug 29, 2013 3:53 am

I like Gens/GS r7 from over at SonicRetro, mainly because I patched the code for interrupt-driven DMA PWM audio on the 32X. It's the only 32X emulator to handle it properly.

notaz
Very interested
Posts: 192
Joined: Mon Feb 04, 2008 11:58 pm
Location: Lithuania

Post by notaz » Thu Aug 29, 2013 12:42 pm

FWIW it's working in PicoDrive too. Doesn't latest Kega do it too?

Chilly Willy
Very interested
Posts: 2854
Joined: Fri Aug 17, 2007 9:33 pm

Post by Chilly Willy » Thu Aug 29, 2013 9:36 pm

notaz wrote:FWIW it's working in PicoDrive too. Doesn't latest Kega do it too?
Cool! Great news about PicoDrive. :D

Any supposedly, it is in the LATEST Fusion... which is Windows only, yet somehow I and a few others cannot get the audio to work at all in Windows. The linux version is an update behind and sounds dreadful for DMA PWM... the MacOS version as well. WINE also doesn't give any audio for the newest Windows version of FUSION. :(

KanedaFr
Administrateur
Posts: 1131
Joined: Tue Aug 29, 2006 10:56 am
Contact:

Post by KanedaFr » Mon Sep 02, 2013 3:26 pm

From what I checked myself some months ago, it would be "easy" to add the feature on MESS.

I never did it myself because MESS lacks the features I made GensKMod for.

Graz
Very interested
Posts: 81
Joined: Thu Aug 23, 2007 12:36 am
Location: Orlando, FL

Post by Graz » Mon Sep 02, 2013 6:45 pm

KanedaFr wrote:I never did it myself because MESS lacks the features I made GensKMod for.
Indeed. The reason that I used KMod as a base for my own private hackings is that it already had many of the features I was looking for.

Post Reply