This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: gdb + remote qemu, Ctrl-C does not work
On Mar 2, 2011, at 1:49 PM, Pedro Alves wrote:
> 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.
Usually background processes don't get C-c.
> Notice on your OP:
>
> Continuing.
> ^CRemote communication error. Target disconnected.: Connection reset by peer.
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
IIRC we also had this issue. This was due to the fact that qemu exits before acking the packet.
Tristan.