[phpBB Debug] PHP Warning: in file [ROOT]/vendor/symfony/filesystem/Filesystem.php on line 232: chown(): Operation not permitted
MAMEDEV Forum • DEBUG GDB
Page 1 of 1

DEBUG GDB

Posted: Sun Jun 13, 2021 5:41 pm
by Viktor2004
Starting with some version, the ability to use an external debugger gdb was inserted into this emulator
https://github.com/mamedev/mame/blob/ma ... dbstub.cpp
Please tell me how to use this function?
So I open the image in IDA Pro, run Remote debug there, waiting for port 1234
Now I need to run mame spectrum with the ability to connect a remote debugger.
In QEMU, this was done by adding two arguments -S -s to the startup line
How is this done in MAME?

Re: DEBUG GDB

Posted: Tue Jun 15, 2021 1:41 pm
by mhoes
Viktor2004 wrote:
Sun Jun 13, 2021 5:41 pm
Starting with some version, the ability to use an external debugger gdb was inserted into this emulator
https://github.com/mamedev/mame/blob/ma ... dbstub.cpp
Please tell me how to use this function?
So I open the image in IDA Pro, run Remote debug there, waiting for port 1234
Now I need to run mame spectrum with the ability to connect a remote debugger.
In QEMU, this was done by adding two arguments -S -s to the startup line
How is this done in MAME?
Does this help ? :
https://hex-rays.com/blog/extending-ida ... debugging/

Re: DEBUG GDB

Posted: Tue Jun 15, 2021 10:05 pm
by Viktor2004
Thank you very much