I have confirmed that gdb continue works with the new version of mGBA.
Before you know it, it works properly.
However, I couldn’t set the break point well.
How do you set it up?
(gdb) target remote 127.0.0.1:2345
Remote debugging using 127.0.0.1:2345
warning: No executable has been specified and target does not support
determining executable automatically. Try using the "file" command.
0x000001f4 in ?? ()
We are Connected mGBA gdb server!
(gdb) bt
#0 0x000001f4 in ?? ()
#1 0x000000a4 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
umm…
(gdb) break 0x8023F21
No symbol table is loaded. Use the "file" command.
Make breakpoint pending on future shared library load? (y or [n]) y
Breakpoint 1 (0x8023F21) pending.
I want to set a breakpoint on 8023F20 SupplyUsability.
For the time being, I specified 0x8023F21.
(gdb) info b
Num Type Disp Enb Address What
1 breakpoint keep y <PENDING> 0x8023F21
I confirmed that it was set.
(gdb) c
Continuing.
continue the game.
However, the break point did not activate. T_T
Program received signal SIGINT, Interrupt.
0x030073e0 in ?? ()
(gdb) break 0x8023F20
No symbol table is loaded. Use the "file" command.
Make breakpoint pending on future shared library load? (y or [n]) y
Breakpoint 2 (0x8023F20) pending.
This time I set a breakpoint at 0x8023F20 instead of 0x8023F21.
(gdb) c
Continuing.
continue the game.
However, the break point did not activate. T_T
Program received signal SIGINT, Interrupt.
0x030072c8 in ?? ()
(gdb) break *0x8023F20
Breakpoint 3 at 0x8023f20
(gdb) c
Continuing.
According to a stack overflow expert, *0x8023F20 is set as a pointer.
Program received signal SIGILL, Illegal instruction.
0x00000004 in ?? ()
oh my god.
The mGBA gdb server has crashed!
(gdb) bt
#0 0x00000004 in ?? ()
(gdb) c
Continuing.
warning: Remote failure reply: E07
He died completely.
Resetting with mGDB didn’t help and I had no choice but to restart mGDB.
I tried it 3 times but it didn’t work.
How do you set breakpoints?
I also want to set a read break point and a write break point, what should I do?