[GDB] Impossible to put a break point during the application run with gdb-gdbserver

Jean Francois TRAP jean-francois.trap@wit.fr
Mon Feb 7 10:01:57 GMT 2022


Hello,

I'm doing a remote debug between 2 PCs running Windows 10.
On the first PC, I use gdb v10.2 with an application (32 bits) compiled in "-g".
On the second PC, I use gdbserver v10.2 with the same application.

Before launching the debug I position a break-point in a loop.
I launch the debug. Everything works correctly and the application stops at the break-point.
I restart and again there is a stop at the break-point. During the stop, I change the line to the break-point and everything works correctly.
If I delete any break-point and restart the application, I cannot put a new break-point. The application works and it is impossible to stop it.
If I force a total stop on the gdb side, this is the message that kept appearing on the gdbserver side:

"input_interrupt, count = -1 c = 0 (' ')"
"input_interrupt, count = -1 c = 0 (' ')"

I compiled gdb and gdbserver with the standard configuration
I did the test with gdb-gdbserver v7.7.1 same result
I am using Lazarus IDE v2.0.2 but I don't think it is important.

Thanks for your help.

Jean-François TRAP




More information about the Gdb mailing list