From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 62968 invoked by alias); 19 Jan 2017 16:27:20 -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 62957 invoked by uid 89); 19 Jan 2017 16:27:19 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.1 required=5.0 tests=AWL,BAYES_40,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 spammy=H*p:D*net, ctrlR, ctrlr, re-create X-HELO: mail-pf0-f177.google.com Received: from mail-pf0-f177.google.com (HELO mail-pf0-f177.google.com) (209.85.192.177) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 19 Jan 2017 16:27:09 +0000 Received: by mail-pf0-f177.google.com with SMTP id 189so14680717pfu.3 for ; Thu, 19 Jan 2017 08:27:09 -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=NZS0DwFhoMg8NSv/amujSzgm7x4AP+xFhk39Bh3bNrc=; b=F0g3CckuHIoLGSxdHBPpYjeEApmceouCT0sTxIq0VkVR+OSdVfitI4S0/V1AHcqFBz 4wd0Jk3clcUOpQG0TeVIy0S9V/7dYBErqIcpDGglsbzqSJMaJw7CQoWNhuI8cLpp05Sx Rbw7cSKMUkgOyST65ofD9GAd1vAkOA5hcECsV7TyJwzYZaFmuKpUIuIcAWNJUw3Xy4Cn kuasE5/hNDzVo96xtSLe8Z4os/w7ho34igKj5R5GDaeYSLa+06B9UMJQNH0cXg6gSWop uf/Kk2Zy2mMqIGZaMNrdqV0dgUIscADHbIBftYDFtuLoF6jnfwjDytIX1+jcY2pbK59y dl9Q== X-Gm-Message-State: AIkVDXJjmQb2w9axxB2Fu3KAbQsp2p3Y6KERnaHdg0+wQ9jmSxanJWNdI0sFGwRFemfWtA== X-Received: by 10.84.136.7 with SMTP id 7mr14584274plk.100.1484843228039; Thu, 19 Jan 2017 08:27:08 -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 w25sm10172333pge.9.2017.01.19.08.27.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Jan 2017 08:27:07 -0800 (PST) Date: Thu, 19 Jan 2017 16:27:00 -0000 From: Bob Rossi To: Simon Marchi Cc: Marc Khouzam , gdb@sourceware.org Subject: Re: GDB/MI questions Message-ID: <20170119162704.GE6289@xubuntu.brasko.net> References: <20170119031445.GA24616@xubuntu.brasko.net> <20170119151120.GB6289@xubuntu.brasko.net> <20170119160318.GD6289@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/msg00040.txt.bz2 On Thu, Jan 19, 2017 at 11:15:10AM -0500, Simon Marchi wrote: > On 2017-01-19 11:03, Bob Rossi wrote: > >On Thu, Jan 19, 2017 at 10:47:21AM -0500, Simon Marchi wrote: > >>On 2017-01-19 10:11, Bob Rossi wrote: > >>>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 > >> > >>From experience (I'd like to be proven wrong), it will be very difficult > >>to > >>accurately re-create the gdb console "experience" when using MI. The > >>commands that should or should not repeat is just one example. Consider > >>history, tab completion, readline bindings (e.g. ctrl-R), pagination, > >>etc. > >>How does that work with the MI version of cgdb? > > > >CGDB links to readline so the interaction is all very similar. > > I'm curious how completion works currently (with annotations) for example. > When the user presses tab, does readline call a callback that you specified > in CGDB in order to get the completion candidates? Then, you get that > information from gdb and return it? If so, how do you get it? The > "complete" command? > > If it already works fine like that, then I guess it can work Yes! Exactly. ... > >I might give that a try. However, since CGDB already has great terminal > >emulation, it's not a huge deal. The other downside is, CGDB works with > >lots of GDB's. Using this feature leaves behind many GDBs. Or I'd have > >to support two modes. Yuck. > > You are right, that's the downside of newer stuff... I'll have to check out this new functionality... Thanks, Bob Rossi