From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 86622 invoked by alias); 19 Jan 2017 15:11:38 -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 83263 invoked by uid 89); 19 Jan 2017 15:11:34 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.3 required=5.0 tests=AWL,BAYES_20,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM autolearn=no version=3.3.2 spammy=H*p:D*net, Marc, differs, 58pm X-HELO: mail-pg0-f42.google.com Received: from mail-pg0-f42.google.com (HELO mail-pg0-f42.google.com) (74.125.83.42) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 19 Jan 2017 15:11:24 +0000 Received: by mail-pg0-f42.google.com with SMTP id 14so14958173pgg.1 for ; Thu, 19 Jan 2017 07:11:24 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=3HHGzay3uPTy8u+5m9D6EkzCWLPdCy8nQem1jbiYXGI=; b=nHrxvyNbVdGmWE+x/fQ8gRtXH9kL2hSzCnxZdVuesTQhu9H2TckheF0mjMFzw6Pv5e FbxtnxQfHJyABW5U1zFMw2FWvN+nQfMTHEdIGk+F5KVMtC6zBUxz/hhpYyWHj3+LumTm zpi2LCGzunQQxqA/HJCWJxj9tJluCzo2LpdWmxQd1knoSV5JUJIWQxVt5gvxn8Aa0KeY 2Q4HNPJ7Iz1BBp9+NuGaRBxrqlWiyz1gIxktHZBtQW82s5RrxU3BCl8CfRHgDzbi1ZVQ g0lwZELcJTo0K3dFug8YRgV7T4tNO5cUMUh8XvHEeHNw47MpwEWbnW0is4gtVtcZ9RnR AluQ== X-Gm-Message-State: AIkVDXIQxQ3vVUaKvpo6ahiJjuHWUSoHz4uVjeoqHNOL+gcrokcanpt9DoXKsTCEDNYi2g== X-Received: by 10.99.160.1 with SMTP id r1mr10749565pge.171.1484838683086; Thu, 19 Jan 2017 07:11:23 -0800 (PST) Received: from xubuntu.brasko.net (ip70-181-32-92.ri.ri.cox.net. [70.181.32.92]) by smtp.gmail.com with ESMTPSA id 19sm9673181pft.46.2017.01.19.07.11.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Jan 2017 07:11:22 -0800 (PST) Date: Thu, 19 Jan 2017 15:11:00 -0000 From: Bob Rossi To: Marc Khouzam Cc: "gdb@sourceware.org" Subject: Re: GDB/MI questions Message-ID: <20170119151120.GB6289@xubuntu.brasko.net> References: <20170119031445.GA24616@xubuntu.brasko.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-IsSubscribed: yes X-SW-Source: 2017-01/txt/msg00033.txt.bz2 On Thu, Jan 19, 2017 at 02:30:58PM +0000, Marc Khouzam wrote: > > Second, from the CLI if you run the command "next", then if you hit > > the enter key, GDB will run the "next" command again. > > However, in GDB/MI if you run -interpreter-exec console "next", and then > > follow that with the Enter key, GDB does nothing. > > Is there a way to run the last command? ... > But if you really want that for some reason, you can just keep track > of the last command you sent in MI, and then when getting an lone > Enter, you could send it again. But then you don't have the smarts > of GDB to know which commands should repeat and which should not. > I don't think this is a very good idea. I'm just trying to provide the same functionality I did when I was using annotations. This was one of the noted differences. Since the MI differs in this area, I've done as you suggested and that works well. I guess I'll see if there are any downsides here. Thanks, Bob Rossi