I've been trying to debug a program that I leave running on over the weekend (takes a long time to segfault,) and the sleep for the debugging terminal is set to roughly a day. It's currently set to 80000 + PID. This should be set to something a little higher
80000 + PID + hour. The problem is if you debug a process for longer than a day the terminal's "sleep 80000+" will timeout and you can no longer get any output. I propose:
debuggergdb.cpp
cmd << wxString::Format(wxT("%d"),80000 + ::wxGetProcessId());
should be changed to
cmd << wxString::Format(wxT("%dh"),80000 + ::wxGetProcessId());
also, but not necessary:
uniqueSleepTimeStr << wxT("sleep ") << wxString::Format(wxT("%d"),80000 + ::wxGetProcessId());
to
uniqueSleepTimeStr << wxT("sleep ") << wxString::Format(wxT("%dh"),80000 + ::wxGetProcessId());