From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 107084 invoked by alias); 18 Dec 2019 15:49:27 -0000 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 Received: (qmail 107076 invoked by uid 89); 18 Dec 2019 15:49:27 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-5.3 required=5.0 tests=AWL,BAYES_00,HTML_MESSAGE,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 spammy=on, cdt, CDT, hosts X-HELO: pb-smtp1.pobox.com Received: from pb-smtp1.pobox.com (HELO pb-smtp1.pobox.com) (64.147.108.70) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 18 Dec 2019 15:49:25 +0000 Received: from pb-smtp1.pobox.com (unknown [127.0.0.1]) by pb-smtp1.pobox.com (Postfix) with ESMTP id C704025335 for ; Wed, 18 Dec 2019 10:49:22 -0500 (EST) (envelope-from jonah@kichwacoders.com) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=mime-version :references:in-reply-to:from:date:message-id:subject:to:cc :content-type; s=sasl; bh=Z1cLnP+FJu23WcfZGS+io1hl2sU=; b=b2WgeN WqVqhujktTHpMjiWcoB3oRXc7FrPSdxDIovIvFOXR18IaW6BEWAdtNEwUIIjaOLi hWCg+i7aZzSyVaxKKW+p7uoERHxqhnhwjV17eGcyKm5/aAZLmfqc+gBO7pJWZSkJ cVYbQLj7fU5TWzzj4+iPGY/LVvAjDC8N1M85Y= Received: from pb-smtp1.nyi.icgroup.com (unknown [127.0.0.1]) by pb-smtp1.pobox.com (Postfix) with ESMTP id BE6FB25334 for ; Wed, 18 Dec 2019 10:49:22 -0500 (EST) (envelope-from jonah@kichwacoders.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=kichwacoders.com; h=mime-version:references:in-reply-to:from:date:message-id:subject:to:cc:content-type; s=mesmtp; bh=RSQmQoY+CY48RlckK33IZv9ZliGNmCdRchlm3CAgT9c=; b=sAtYIg4jYMAzZPsGAEgs5U3Zty+Z1LqoTq7IXQTM8+PdSOfI3AdonVO1tbnnBgBh5WxTlJeUNndD06CBOtsSF4HYWDWT2HUlfKNNHalyBG60/BpWuBOwjSZxmbl0b8LlOzHvd8BTTlUIpl89IJykJ+IdvT193vL1mn0XV7/kD9Y= Received: from mail-qt1-f177.google.com (unknown [209.85.160.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pb-smtp1.pobox.com (Postfix) with ESMTPSA id 3CEFB25333 for ; Wed, 18 Dec 2019 10:49:22 -0500 (EST) (envelope-from jonah@kichwacoders.com) Received: by mail-qt1-f177.google.com with SMTP id d5so2327781qto.0 for ; Wed, 18 Dec 2019 07:49:22 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Jonah Graham Date: Wed, 18 Dec 2019 15:49:00 -0000 Message-ID: Subject: Re: GDB doesn't interrupt target To: Pedro Alves Cc: Tudor Popescu , GDB Development X-Pobox-Relay-ID: F5A75746-21AD-11EA-B715-C28CBED8090B-18936988!pb-smtp1.pobox.com Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes X-SW-Source: 2019-12/txt/msg00033.txt.bz2 On Wed, 18 Dec 2019 at 09:59, Pedro Alves wrote: > On 12/18/19 2:20 PM, Tudor Popescu wrote: > > What I need, is a way to interrupt the target while target is running. > The way to do this is press the "Suspend" button in the toolbar in Eclipse, or typing the "interrupt" command in the Debugger Console. If these don't both work for you, there may be a bug in CDT. Please raise a bug against CDT on https://bugs.eclipse.org/bugs/enter_bug.cgi?product=CDT and I will look at it. Please be sure to include where you got your Eclipse from - if it is from a vendor they may be the one with the issue and you should probably be in touch with them first. > > Also, I would like to understand what is causing the above mentioned > > behavior. I know that GDB 7.12+ introduced some changes to support a > > prettier Debugger Console in eclipse and this seems to impact somehow the > > interrupt functionality in my case. > Yes, this is the case. The GDB folk did some great work so that a fully fledged GDB console can be integrated in an IDE and that is what CDT does with GDB >= 7.12 on Linux hosts. > > > > So the main question is how do I make GDB 8.2.1 behave like GDB 7.11.1 > when > > it comes to target interrupting (e.g. Ctrl+C)? Are there any special > > arguments that need to be passed to GDB? > You would have to change how GDB is integrated into CDT rather than changing GDB. However I hope the above answers mean you don't need that. > > So what _do_ you see when you "kill -2" gdb? Do you see a "Quit" being > printed? > I.e., the GDB console is accepting commands while the target is running? > > I assume Eclipse sends "set mi-async on" or "set target-async on" nowadays. > > CDT uses -gdb-set target-async on > The right way to interrupt the target is to send -exec-interrupt via the > MI channel. > > That is what CDT does . I hope that helps, Jonah ~~~ Jonah Graham Kichwa Coders www.kichwacoders.com