From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-f52.google.com (mail-wm1-f52.google.com [209.85.128.52]) by sourceware.org (Postfix) with ESMTPS id 233DD386F802 for ; Fri, 10 May 2024 19:23:54 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 233DD386F802 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=palves.net Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 233DD386F802 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=209.85.128.52 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1715369035; cv=none; b=GhfruwakS05hRCFJJLWk8yIE/TAZkavyIfSyhoYpYJMDQ5ScbFnBfGPYd9RumDc39r2vR3tRdveQk5+3WVqdxKZx5EcHHdkFaX27e3ev+A80f8mbPLIOmsmSr0k4FfrK+cMoe86zUbZg/JdC+O91CawJBlAwFUrJlGPg+gwgC/c= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1715369035; c=relaxed/simple; bh=/soo/gWnqNgrCbmPjKVPKa4UdIabUsHchBrErByLLsY=; h=Message-ID:Date:MIME-Version:Subject:To:From; b=shjST/MSYxNKxKOeBwo5Pdxh7vdlgId3lHIAA+3mdcZeDIFCPtn5liqY000Y+3oL35EydQd7QMcoqUq6QZFbWNnUVIhuTU7yEytg4R201mXxoU7sjt4AzCl+LIk19mNXPUUenCOHuWyWjnG0BKJvrE8Zv8MmQZ4C4zuI1JzO+Ag= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-wm1-f52.google.com with SMTP id 5b1f17b1804b1-41f9ce16ed8so23785065e9.0 for ; Fri, 10 May 2024 12:23:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715369033; x=1715973833; h=content-transfer-encoding:in-reply-to:content-language:from :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=25NRvQc3QhLzaHLHlxBPsVFxNuNEPDDtxTJgwjgx8X8=; b=WPzEkIvIuNUsPyZUN2iNpM049szogwB7TibBZIIgnsIAbQkB3RTOYHB4MLncss0d+y Aj0gONwLwOZzzqXDGRRap9wiQCXYdrcx4j3FWdgR46t4PGJ8ImJ4osTK8+leiolyBgHr iv9G8HJmpcg/9EoJFER3+9ZRyPKDLqtXOxnMrewuaoSYPQ52gBEX9RIJOudkH1VPvw6N kxUhHYjmuf/tG6V99cQp1pgSheeGcyqCLnrlCBC/7V2rTrnxKwsq7BtHDAJ3T0vUudh5 dHDzB4HGSDLnrTV98UeCidEUdf0ljqfECX5UwareKRBMX6r39ZXi8LOeOuZdCB9DTB2q lm3Q== X-Gm-Message-State: AOJu0Yz3Zc0q+wXoaXXAEsF5IxmV8nG8UWZxZyhgREO/xpVQ/oPLfnpd Jfphwepd1IARNG52qs8PyskHF5Itizqhb1ZyJiN9UVNwQnzUeAtaN1ErmyJj X-Google-Smtp-Source: AGHT+IEC1zDciJAQlWxLBNIRPBIG/YskhL0sV1yKzJCH9sl9nU4Pv38/JzPadtPiWa/b3/k6kD066Q== X-Received: by 2002:a5d:6982:0:b0:346:bc1b:4e7c with SMTP id ffacd0b85a97d-3504a73e009mr2933758f8f.35.1715369032823; Fri, 10 May 2024 12:23:52 -0700 (PDT) Received: from ?IPV6:2001:8a0:f908:4900:6534:b101:e988:663d? ([2001:8a0:f908:4900:6534:b101:e988:663d]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3502b89573csm5262494f8f.29.2024.05.10.12.23.49 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 10 May 2024 12:23:52 -0700 (PDT) Message-ID: Date: Fri, 10 May 2024 20:23:45 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Optionally print source code to gdb console window To: Robert Rossi , Tom Tromey Cc: gdb-patches@sourceware.org References: <87ikzpa7k6.fsf@tromey.com> From: Pedro Alves Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.9 required=5.0 tests=BAYES_00,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,KAM_DMARC_STATUS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On 2024-05-07 22:33, Robert Rossi wrote: > Which is not what the user wants. They don't want to see the updates in the console > regarding source positions. > In addition, you can see capabilities they may want, 'list', no longer work. > > The reason this issue was noticed in the first place is because this was the > vision of the original gdb maintainers when using annotate=2. In that mode, > no source code would be printed to the console. However, in mi new-ui mode > gdb does print the source code to the console. > > My personal opinion is that gdb shouldn't print code to the console in mi mode > or in new-ui mode. However, there were some people from eclipse a few years > ago that said they disagreed and that gdb should behave identical in new-ui > mode and not in new-ui mode, so i've attempted to make an option. You may be thinking of me. But yes, I disagree, and do think that gdb should behave identical by default, that was part of the intent/design. I think I suggested making it an option, so I definitely agree with having one.