PC-FX homebrew development with Mednafen. [message #3917] |
Mon, 23 February 2015 21:39 |
|
With both an updated GCC 4.5, and liberis ... the next step forward for homebrew development for the PC-FX would be a working GDB for full source-level debugging.
So ... I'm guessing that the approach to take would be an emulated serial port within the emulated PC-FX, that talks to Mednafen itself. Then Mednafen would create a tcp/ip debugging port and connect to an instance of GDB running on the "host".
GDB would think that it's just connected to the PC-FX through a tcp/ip link.
Does that sound like a sensible approach?
If it does ... then I assume that it could be applied to other emulated environments within Mednafen.
Does anybody have any comments/suggestions?
|
|
Re: PC-FX homebrew development with Mednafen. [message #3922 is a reply to message #3917 ] |
Mon, 02 March 2015 21:53 |
|
OK, I guess that I'm completely on my own with this one.
|
|
Re: PC-FX homebrew development with Mednafen. [message #3925 is a reply to message #3922 ] |
Thu, 05 March 2015 00:15 |
|
It might be better to add gdb functionality directly in Mednafen's CPU emulation and related code, rather than running a debugger on the emulated system, to prevent timing problems when debugging some types of code.
[Updated on: Thu, 05 March 2015 00:17]
|
|
Re: PC-FX homebrew development with Mednafen. [message #3926 is a reply to message #3925 ] |
Thu, 05 March 2015 21:51 |
|
That would definitely be the best way to do it with an emulator like Mednafen ... and it would be by far the most powerful way.
But I'm worried that it's also going to require a lot more knowledge of Mednafen's inner workings ... and that concerns me a little.
I'll give it a try ... I can always fall back to the other method if I have problems.
BTW ... I was really impressed with how easy it was to get Mednafen compiling with msys2 on Windows ... thanks for all your hard work.
|
|