Posted: Sun Dec 29, 2013 12:32 am
really....Strange !
need to check this!
need to check this!
Sega Megadrive/Genesis development
http://gendev.spritesmind.net/forum/
http://gendev.spritesmind.net/forum/viewtopic.php?f=7&t=1551
Code: Select all
ifdef DEBUG
FLAGS+= -DDEBUG=1 -g
else
FLAGS+= -O1
endif
Code: Select all
.SECONDARY:
out/rom.out
Code: Select all
m68k-elf-gdb my/directory/out/rom.out
Code: Select all
cd my/directory
Code: Select all
target remote localhost:6868
Code: Select all
break main
jump _Entry_Point
Code: Select all
continue
Sure - no problem. I was mostly adding things that I needed. No point in hoarding. Thanks for taking the patches.KanedaFr wrote:While I alread did it so many times this past month, I won't thank enough Graz who devoted so many hours to add/fix feature for this new version.
I've never really messed with Eclipse enough to set it up for cross debugging. If there's GDB protocol missing, post instructions on what you're doing to get as far as you have and I will add the missing parts.KanedaFr wrote:I tried to use it with Eclipse but unfortunatly I was unable to do so...
Eclipse uses too much gdb command for simple step...
Probably, never tried.djcouchycouch wrote:SGDK projects work with the gdb?
If you have debugging symbols, yes.djcouchycouch wrote:Variables and function names are shown and not just addresses?
No. That could be added. I haven't looked into it.djcouchycouch wrote:Do the kdeug messages appear in gdb output?
Do you need to change the default makefile to get GDB to work? I haven't had the chance to try it yet.KanedaFr wrote: And yes, of course, it works with SGDK...it's the one I use!
Code: Select all
00000000
00X00000
00000X00
00000000
Code: Select all
-------------x--------
----------------------
-------00000000-------
-------00X00000-------
--x----00000X00---x---
-------00000000-------
----------------------
---xx-----------------
see what to change in 2 msgs before... (remove optimisation, add debug support, keep rom.out file)djcouchycouch wrote:Do you need to change the default makefile to get GDB to work? I haven't had the chance to try it yet.KanedaFr wrote: And yes, of course, it works with SGDK...it's the one I use!
Code: Select all
//////////////////YM2612
//line 7805
if (YM2612.REG[part][0x60 + chan + 4*op]&0x80)
lstrcat(debug_string, "ON\n");
else
lstrcat(debug_string, "OFF\n"); // correct handling of AM on/off
//line 7834
wsprintf(tmp_string,"0x%0.2X\n", YM2612.REG[part][0xB4 + chan]&0x07); //correct handling of FMS modulation.
//////////////////PSG
//line 8256
wsprintf(debug_string,"%s", (PSG.Register[6]>>2)==1 ? "White" : "Periodic"); // simply invert white & periodic status :)
Hi, Visual Studio 2012 doesn't produce XP compatible binaries by default.djcouchycouch wrote:Just tried this as well. Doesn't run on 32bit XP.