This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gdb + remote qemu, Ctrl-C does not work


On Wednesday 02 March 2011 12:29:40, dpc@ucore.info wrote:
> On Wed, Mar 2, 2011 at 10:45 AM, Pedro Alves <pedro@codesourcery.com> wrote:
> > Do you have qemu running on the same terminal as gdb?
> 
> Well yes, I guess. I'm running it in the same script like this:
> 
> qemu someoptions &
> sleep 1
> gdb -x somefile

Your ctrl-c is reaching qemu as well, which is making it
commit suicide.  Notice on your OP:

 Continuing.
 ^CRemote communication error.  Target disconnected.: Connection reset by peer.
                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

This not a GDB problem.

I'd run qemu through a pipe ("target remote | qemu") instead
of using tcp.

-- 
Pedro Alves


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]