From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id ac0FCsB1PmYGZg0AWB0awg (envelope-from ) for ; Fri, 10 May 2024 15:30:08 -0400 Received: by simark.ca (Postfix, from userid 112) id 1B83E1E0C1; Fri, 10 May 2024 15:30:08 -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 0311F1E092 for ; Fri, 10 May 2024 15:30:05 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 6A1CB3841888 for ; Fri, 10 May 2024 19:30:05 +0000 (GMT) Received: from mail-lj1-f178.google.com (mail-lj1-f178.google.com [209.85.208.178]) by sourceware.org (Postfix) with ESMTPS id 54945386F804 for ; Fri, 10 May 2024 19:29:45 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 54945386F804 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 54945386F804 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=209.85.208.178 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1715369386; cv=none; b=YwQ/tr0xYg0twSZIs3GfoQdlimEfyotN7JlNZSQ0Hj+wGq2Kj8vpZLdPWE+TnXMGmbpTDKotewDPSAWG76POO1sf/O16DjxzTcZfOiQCnW5HrsIuhtL61vXspHZ6ic8pVue3PQPij+De4k8lGPCaAAXH5RiGYgSzrnXFQPCqNDU= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1715369386; c=relaxed/simple; bh=5jKVafWKRS6HOMVFcaVbLQr/HRLqHMV+5QwCbPhDEEQ=; h=Message-ID:Date:MIME-Version:Subject:To:From; b=bgPMAkv3IoEuT9OvRQ5GNhNTFuHo0mqh93Q+AL9Ovml43Z5gZK5eNV+WGnzrxy+fnVsMU/YG6/RKC2dm2Ifn1VAPO6cli3+/fKmWMRErtaWkw3+lrdHWpXe/NcLqMrGWfQxlcrJnxwVxfcygzyp283DxggYyfK644omHAlDVoIc= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-lj1-f178.google.com with SMTP id 38308e7fff4ca-2e0a0cc5e83so39027831fa.1 for ; Fri, 10 May 2024 12:29:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715369384; x=1715974184; 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=hfgoRjxS/5d13BM8npbP5FvpJliiI9GMfeSUTSSniTA=; b=PPknwZDdzQDMtTQY1NfMJ4ZgTeQcZLntvrYKe791s3PBXMemDZWRHnaOl+bPJKzbG0 bnMVCJFETpmrPR2IEo9Rwuy87MjlIaMBqBZrvjYzOCMQruHYhBZYddXcrhS3z9tSNquX X+ss6aolX1IJA9sA/aMgtWhsP/mX+eIJ9wgvK8pVQ/72qNAo10dlRIfA8MMpdbleEFPE ar5AnQ/aDktuH3J7v+Fk9LLRQSxRXFe7ZHbjdxrWnCQjJ1LDU0k8q2TtMwbs6pzi+rIq yTY4dkzYEuCPpsLGUexn8ajNVy9hW7ZzEzDd04kYsE9Z0z28gdPnhkMSu6/yHNX6Wo/F kuWA== X-Gm-Message-State: AOJu0YwKn1/loTpyK2Vzcv1YhMqAVFod4IgShnx2HXCHyyNdVaN60wxA 72mUuRUNuMtKWku9TGbYr2ZWxQOwI36wCHPNF5QmYp8Ep03fC/AO X-Google-Smtp-Source: AGHT+IE36wuJzULsok3u2tU0DuEbcCCzrYOk6VVE2jl+6mxb9+BuYFUB4CmB2qhoqhIs6vWEm/JCtA== X-Received: by 2002:a2e:3506:0:b0:2e2:7f2:9f9d with SMTP id 38308e7fff4ca-2e520061fd2mr20722131fa.24.1715369383840; Fri, 10 May 2024 12:29:43 -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 5b1f17b1804b1-4200a8e6846sm13229575e9.15.2024.05.10.12.29.43 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 10 May 2024 12:29:43 -0700 (PDT) Message-ID: <58294b0a-c294-4034-acf6-297eb66265d0@palves.net> Date: Fri, 10 May 2024 20:29:41 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Optionally print source code to gdb console window To: Tom Tromey , Bob Rossi Cc: gdb-patches@sourceware.org References: <87ikzpa7k6.fsf@tromey.com> <87y18lunti.fsf@tromey.com> <87a5l05mt3.fsf@tromey.com> From: Pedro Alves Content-Language: en-US In-Reply-To: <87a5l05mt3.fsf@tromey.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.8 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 X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org On 2024-05-08 16:46, Tom Tromey wrote: > How about adding a new value to "set print frame-info"? > Like "set print frame-info nothing"? This would affect commands invoked on the command line too, like "frame". IIUC, Bob wants to suppress the automatic location printing that you get when gdb presents a stop, and affecting commands like "frame", etc. would be undesirable. A setting somewhere around events may be more appropriate, like Andrew suggested down thread.