From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10382 invoked by alias); 21 Jul 2010 07:59:03 -0000 Mailing-List: contact archer-help@sourceware.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Subscribe: List-Id: Received: (qmail 10364 invoked by uid 22791); 21 Jul 2010 07:59:01 -0000 X-SWARE-Spam-Status: No, hits=-6.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Date: Wed, 21 Jul 2010 07:59:00 -0000 From: Oleg Nesterov To: Roland McGrath Cc: Jan Kratochvil , archer@sourceware.org Subject: Re: BUG? gdb, non-stop && c -a Message-ID: <20100721075644.GA5740@redhat.com> References: <20100718174851.GA15528@redhat.com> <20100716205147.GA26313@redhat.com> <20100719160127.GA13331@host1.dyn.jankratochvil.net> <20100720131615.GA17450@redhat.com> <20100720140136.GA18643@redhat.com> <20100720141155.GA16382@host1.dyn.jankratochvil.net> <20100720194332.88ADA40162@magilla.sf.frob.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100720194332.88ADA40162@magilla.sf.frob.com> User-Agent: Mutt/1.5.18 (2008-05-17) X-SW-Source: 2010-q3/txt/msg00051.txt.bz2 On 07/20, Roland McGrath wrote: > > > non-stop mode should be generally used together with: > > (gdb) set target-async on > > IMHO if gdb confuses itself without these settings being in lock-step, > there should only be one setting. > > > > Now it sends "vCont;c:p4745.4745" and resumes the main thread. But > > > now gdb doesn't react to ^C and "hangs". (no, SIGINT is not blocked). > > > > CTRL-C is not useful in target-async mode. > > Now that's just a bug. Even if known and intended in the code, > it's clearly a misfeature from any sensible user perspective. To avoid the confusion, CTRL-C works with target-async && non-stop. It didn't work in my testing because I didn't know about "set target-async on" Oleg.