From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13742 invoked by alias); 2 Mar 2011 13:07:32 -0000 Received: (qmail 13614 invoked by uid 22791); 2 Mar 2011 13:07:31 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,TW_QE X-Spam-Check-By: sourceware.org Received: from mel.act-europe.fr (HELO mel.act-europe.fr) (194.98.77.210) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 02 Mar 2011 13:07:26 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id 887C6CB02E0; Wed, 2 Mar 2011 14:07:23 +0100 (CET) Received: from mel.act-europe.fr ([127.0.0.1]) by localhost (smtp.eu.adacore.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YLpypFfWr1Yj; Wed, 2 Mar 2011 14:07:20 +0100 (CET) Received: from ulanbator.act-europe.fr (ulanbator.act-europe.fr [10.10.1.67]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mel.act-europe.fr (Postfix) with ESMTP id 6A04FCB0368; Wed, 2 Mar 2011 14:07:20 +0100 (CET) Subject: Re: gdb + remote qemu, Ctrl-C does not work Mime-Version: 1.0 (Apple Message framework v1082) Content-Type: text/plain; charset=us-ascii From: Tristan Gingold In-Reply-To: <201103021249.34558.pedro@codesourcery.com> Date: Wed, 02 Mar 2011 13:07:00 -0000 Cc: gdb@sourceware.org, Mike Frysinger Content-Transfer-Encoding: quoted-printable Message-Id: <0EA5A1E3-9098-457F-9334-74476345C908@adacore.com> References: <201103020945.11471.pedro@codesourcery.com> <201103021249.34558.pedro@codesourcery.com> To: Pedro Alves , dpc@ucore.info X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2011-03/txt/msg00016.txt.bz2 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 wr= ote: >>> Do you have qemu running on the same terminal as gdb? >>=20 >> Well yes, I guess. I'm running it in the same script like this: >>=20 >> qemu someoptions & >> sleep 1 >> gdb -x somefile >=20 > 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: >=20 > 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 befo= re acking the packet. Tristan.