From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id FzbtAzSWNmbkMAYAWB0awg (envelope-from ) for ; Sat, 04 May 2024 16:10:28 -0400 Authentication-Results: simark.ca; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=brasko-net.20230601.gappssmtp.com header.i=@brasko-net.20230601.gappssmtp.com header.a=rsa-sha256 header.s=20230601 header.b=tiyQfuoP; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id E0AB01E0C1; Sat, 4 May 2024 16:10:27 -0400 (EDT) Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id CAB9E1E092 for ; Sat, 4 May 2024 16:10:25 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 775CC38449C7 for ; Sat, 4 May 2024 20:10:25 +0000 (GMT) Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) by sourceware.org (Postfix) with ESMTPS id 4F2383858C53 for ; Sat, 4 May 2024 20:09:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 4F2383858C53 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=brasko.net Authentication-Results: sourceware.org; spf=none smtp.mailfrom=brasko.net ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 4F2383858C53 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::133 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1714853400; cv=none; b=si6I70m/ddV/gClI/ZBAz7Z8bS43ApOls8/WFrByc3R3tINhSHpLX2XELsWBxh8wDjw0FoEY4koPDK3Sn2eTL1N4xcGtO87Me5/2oWza4FIPZ9uffm9QwRnbKUmKODTZHoh0gWa/3qxd0iVTRcVtHraW0Pbvezqx5wElr530SGE= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1714853400; c=relaxed/simple; bh=RIYklKtUjm1dWaroEXhZ4G8K9nW85OyLVU7bc+kt9Ak=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=fMyQgqCYIcYRqp/F9GLXQ0q4BPymepbqfSvMtrsn1uWXpau5FT0/OdxUy/aj2DiIDU8BBmVVLBsQQjB+Bb8EamjKxH5tla4U8KET9EkWvEKPjKoSHBDom46bTuvuAKnHNioBgtNeXT7xpgWcLfNVKL4X3y3cgDPmuapTj6fyVUA= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-lf1-x133.google.com with SMTP id 2adb3069b0e04-51f0602bc58so2916768e87.0 for ; Sat, 04 May 2024 13:09:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasko-net.20230601.gappssmtp.com; s=20230601; t=1714853396; x=1715458196; darn=sourceware.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=V2hA09rzUBefCPOPPMEneIjF/eqOMKYezBQdig5kGJ4=; b=tiyQfuoPdE3xWajmghATtJ/5eWoPKhCjNIErBTx26B/AK6LEtIlx3uVLeUmWEC2K5x LBlogYNeohyZwFCD88uXGTY/KNBIIyoTippPV2ehAggby0bMbMjI/CIA43LWB74MkdEl 8Gpe4dXlAPNTejOo75GtZq5vX9+qoZ4Dar2XMIdgHufPUYHyhLybzeUrfl55tMcFJCKj IzHgqupt/rWiJqhGWNhbrcGl1DakPFLXb6koW4o1fbwZDwYKdUL2WsYau7CXT2cWHvTU pmPHrJf+VsmK9XaVoipQTjTJNUIL4PlV5AFv/KIQx9tXKo3IMmsbMi2uGGv1V9o4iCXl qQZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714853396; x=1715458196; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=V2hA09rzUBefCPOPPMEneIjF/eqOMKYezBQdig5kGJ4=; b=sP4IPrnhCIF4oEP0ELh91lqBQI+FfoS1BELyKhExes/2m4sTh7ImJKcUT0niidOjdb HFCBGpoNqJXm2Admq3eFpPymilSRpjQakV9WlYmP6vFZwmUUiSnba1x2eHjC/YuzvETb WDWexSIzUU2rFHddTjvJ0fvaTZ7ALj5Ua7rpp1O9KLIGH2ikLc+iPkuhyoXZtwW9hD4F qzAb8UmTKirLE9CeLRlRcx4a5ibubsxPjlPCjx7OsnIda/XH2xDzoEHQXcQm7aXBe9y5 vegcaXyI1YRdyoXhCyi/sx8E4GpkMynbaSiRaWpHrIZzLGj7FQEV64CuTXL87aZUckjm qSzw== X-Forwarded-Encrypted: i=1; AJvYcCUXFN3p56I+GSYSOFQd7fyhWFAO32Sc4eizHPdQG3bRyHr686jgR/h7XQTPZwqiNhy5iCTp71fIEkQZoQzeSdlTNqg= X-Gm-Message-State: AOJu0YxL2c4InXHIc7oDlAX0O1MxkyBDuUXGsVK7DOG6fCwPRmDh6ux7 tE1ieSZkg+20VJQRAJCtprWkQRqqP1DICB4dfIENPpX2FhX2gp0wwFeqOOKZr8D7i3GxEqHHeXf e9VDit2CsobvK1t/2wG8JsYrqxuttnzQxaTZk4w== X-Google-Smtp-Source: AGHT+IE77oAfdrVdpsY1V/Temg7qgmly+RtxRfCy/ZUeRAh/9ZoHAk46o2i51MC7TaWyDQTn5e3pdl/3IyZnRFASzwQ= X-Received: by 2002:a19:7714:0:b0:51f:16bc:18f9 with SMTP id s20-20020a197714000000b0051f16bc18f9mr2417829lfc.25.1714853396384; Sat, 04 May 2024 13:09:56 -0700 (PDT) MIME-Version: 1.0 References: <20200404235424.GB5321@xubuntu.brasko.net> <20200414112304.GB22764@xubuntu.brasko.net> <20200414121705.GD2366@embecosm.com> <20200415021324.GB31494@xubuntu.brasko.net> <20200416174128.GA1633140@embecosm.com> <20210313170028.GA7813@xubuntu.brasko.net> <6f609020-19f6-3e47-3c3f-f268e4600b43@redhat.com> In-Reply-To: <6f609020-19f6-3e47-3c3f-f268e4600b43@redhat.com> From: Robert Rossi Date: Sat, 4 May 2024 16:09:45 -0400 Message-ID: Subject: Re: source annotation now prints source line To: Pedro Alves Cc: Andrew Burgess , gdb@sourceware.org, Marc Khouzam X-Spam-Status: No, score=-0.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, HTML_MESSAGE, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.30 X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb" Sorry to respond to an ancient thread. I thought the context might be helpful. I've been happily using the mi new-ui feature from gdb in cgdb for quite a while. Occasionally, I get people unhappy with gdb printing code out to the console when stepping through code. Here is an example, https://github.com/cgdb/cgdb/issues/336 Here is another example, https://github.com/cgdb/cgdb/issues/223 In the past, it was expressed by Pedro (i believe) that this was a feature. You can see from the requests some people do not want to see the code in the console. That's because they already see it more clearly in the code view. Can we consider disabling this behavior or making it optional somehow? Thoughts? Thanks, Bob Rossi On Mon, Mar 15, 2021 at 9:10=E2=80=AFAM Pedro Alves wro= te: > On 13/03/21 17:01, Bob Rossi wrote: > > On Thu, Apr 16, 2020 at 06:41:28PM +0100, Andrew Burgess wrote: > >> I'll take a look to see if there's a good way to give you the > >> functionality you're looking for and close the bugs off. > > > > Thank you for doing this Andrew, I appreciate it. > > > > Ironically, I just upgraded CGDB to no longer use annotations. > > I'm moved it from annotations to gdb/mi, in the same way that > > Eclipse uses MI, by using the new-ui feature of gdb. Now i see the > > source linse are still visible in the console. gdb doesn't know > > to not show them in this mode. > > > > To recap, > > - cgdb using annotations does not show code in console > > - cgdb using mi using new-ui does show code in console > > - gdb tui does not show code in console > > - eclipse probably shows code in console, as it uses mi and new-ui > > > > Would it be to much to ask that if new-ui is being used, that we > > assume a front end is being used, and not display the code in the > console? > > > > I've CC'd Pedro and Marc as I believe they may be the relevant people t= o > > have an opinion on how this would impact eclipse. > > > > A driving idea behind the new-ui work was that the CLI running inside > the console window would work exactly like a GDB running on a terminal. > > It should be possible even to start a GDB on a terminal, and then spawn a > separate Eclipse GUI connected to the GDB running on the terminal, still > outside > Eclipse, like a "launch-gui" command or some such written in python that > would spawn eclipse and have it connect to gdb with new-ui. I don't kno= w > whether > anyone ever implemented this in Eclipse, but it was a consideration in th= e > original design. It isn't clear to me that in this scenario you would no= t > want > print the source line in the console. I think I would want it. > > Also, while the new-ui feature was originally designed alongside Eclipse, > it has > potential for more usecases. A secondary MI channel could not be > displaying any > GUI at all, for example. > > I think that if you want to make GDB not print source lines, then that > should > be a separate option. > > Thanks, > Pedro Alves > >