The first question:
there was a warning about this.
&warning: GDB: Failed to set controlling terminal:\346\227\240\346\225\210\347\232\204\345\217\202\346\225\260\n"
The tools->Options->Debugger->Gdb has already chained. /usr/bin/gdb
The second question :
I used the ace libary, used ACE_Dev_Poll_Reactor, it had worked.But When i debuged this,
The QtCreator had outputed "1094719808:work_pending_i:Interrupted system call."
I track ACE code.
result = this->work_pending_i (max_wait_time);
if (result == -1 && (this->restart_ == 0 || errno != EINTR))
ACE_ERROR ((LM_ERROR, ACE_TEXT("%t: %p\n"), ACE_TEXT("work_pending_i")));
while (result == -1 && this->restart_ != 0 && errno == EINTR);
The message maybe print from here.I am not sure.
There was a warning "warning :gdb failed to set .." when i had debuged a project with qtcreator.