Host GDB disconnect while waiting for tracee status change

Dmitry Antipov dantipov@nvidia.com
Tue Aug 22 13:23:00 GMT 2017


Hello,

Is there a feature/option/etc. to gracefully handle the situation when gdbserver
sits waiting for tracee status change and the network connection is getting lost?

AFAICS in case of Linux, linux_wait_for_event_filtered() just enters sigsuspend()
waiting for SIGCHLD and ignoring anything else, thus having no opportunity to detect
any socket status changes even if the latter are signaled with SIGIOs requested
in enable_async_notification().

Thanks in advance,
Dmitry



More information about the Gdb mailing list