Added readyRead handler code.

I copied the code from qt creator to onReadyRead(), these code read the gdb output and form it to complete responses.