Jie Zhang wrote:
Hi,

I'm doing development on gdbproxy for Blackfin. I have a question on
the design of gdbproxy. For port of gdbproxy which can do restart,
gdbproxy will do reinitialization when the debug session is finished.
It needs several seconds to do that. During that period, gdbproxy does
not listen on the net port. This is not a problem for normal use.
However, when doing gcc regression testing through gdbproxy,
occasionally gdb cannot connect to gdbproxy if it happens to do the
connection while gdbproxy is doing the reinitialization.

Ah, there is a better way to fix the issue I raise. Currently, dbg_listen_sock is closed after accept succeeds and dbg_sock is created. Why close the dbg_listen_sock at all? If we keep it listening, gdb connect request will no be lost.

Jie

Reply via email to