[Lazarus] Remote debugger looses connection to target on Windows 7

Bernd Mueller mueller.b at gmx.net
Fri Apr 11 16:08:08 CEST 2014

Martin Frb wrote:

> There are several possibilities, that I can think off:
> 1) some setting the IDE uses.
> - Gather all the "set foo=" commands that the IDE sends, and see if 
> applying them to your manual driven gdb session makes a different.
> - Run your manual gdb with "gdb.exe -i mi " to enable mi mode (I  do not 
> think that is it, but ....)
> 2) Timing (again, and not unlikely)
> If you open gdb in a terminal, it prints to that terminal. In the IDE it 
> prints to a pipe. That may take different amount off time.

thank you, for pointing this out.

> Also, does your sniffer give the time, between the "step over" sent to 
> the target, and the packet that comes pack, and is ignored? compared to 
> when it works?

In both cases, it shows nearly identically times. It takes about 1,9 ms 
until the breakpoint reply packet has reached the host. Nearly the same 
on Win2000.

If I activate gdbservers debug log, then it takes about 5,2 ms.

Regards, Bernd.

More information about the Lazarus mailing list