Viktor2004
Posts: 2
Joined: Sun May 31, 2020 10:13 pm

DEBUG GDB

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?

mhoes
Posts: 130
Joined: Wed Oct 26, 2016 12:26 pm

Re: DEBUG GDB

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/

Viktor2004
Posts: 2
Joined: Sun May 31, 2020 10:13 pm

Re: DEBUG GDB

Thank you very much

Return to “MAME Discussion”