From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id nUfCIJHWPGb65gsAWB0awg (envelope-from ) for ; Thu, 09 May 2024 09:58:41 -0400 Authentication-Results: simark.ca; dkim=fail reason="signature verification failed" (768-bit key; unprotected) header.d=tromey.com header.i=@tromey.com header.a=rsa-sha256 header.s=default header.b=vtlWK+TV; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 703D51E0C1; Thu, 9 May 2024 09:58:41 -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 5722F1E030 for ; Thu, 9 May 2024 09:58:39 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id EFCD2384AB52 for ; Thu, 9 May 2024 13:58:38 +0000 (GMT) Received: from omta034.useast.a.cloudfilter.net (omta034.useast.a.cloudfilter.net [44.202.169.33]) by sourceware.org (Postfix) with ESMTPS id E74963858D39 for ; Thu, 9 May 2024 13:58:19 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E74963858D39 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=tromey.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=tromey.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org E74963858D39 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=44.202.169.33 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1715263101; cv=none; b=T66h1bDtDCLV0wGpQd4Pr1xzJu9kskSn2VNKp3sHutHAR0f+WvT1gWiwRGCoVFlfoZcCDMOvZ2eNhDlYzhs2gAFvKS1HOBxMmK4UxL2ZINRXXkNyPcNBP11Ubkba5nCUqgKeuFotdPwcgS6DkLtvADRJYlpz/5dVFCqcyjfUzlA= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1715263101; c=relaxed/simple; bh=AAq9/bJWRxbovxwNGfUFM4erxmSXyFQsmEkGsDWbi0k=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=YP8U0MgDalIilN+B38jXpxAYjn6x9Fkk4HF2fyaL781uHrkFtA7wSz6Md3sbw4ZUlz9YQw7DaPlZXdapJps4nUoc00lZ0cyIA+g2e33e+l8+urWIHYXmjOgL6FRl0BhGz5wMiCEhwPb3FrmpaVS7UbRRY+p/d0y4zApgX2o0y4E= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from eig-obgw-5008a.ext.cloudfilter.net ([10.0.29.246]) by cmsmtp with ESMTPS id 4zjPsH7Ipxs4F54HrskZaK; Thu, 09 May 2024 13:58:19 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id 54HqsNkOBwT7p54Hrswguq; Thu, 09 May 2024 13:58:19 +0000 X-Authority-Analysis: v=2.4 cv=etXZzJpX c=1 sm=1 tr=0 ts=663cd67b a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=TpHVaj0NuXgA:10 a=Qbun_eYptAEA:10 a=8P9yrIRfAAAA:8 a=FcUgRsaQCLmsdGCQ30YA:9 a=QDITsWLpVu6j3kVAXn-k:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Type:MIME-Version:Message-ID:Date:References:In-Reply-To :Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=hRwd8gDWQzoV4RdIYGJ10JLIwZbuV4Re84LbY49KygQ=; b=vtlWK+TVuF9u7v7LBc4s3oiECA NW5//7RVBQT+WXmNORTzZYyg/tz6BYlN/Tr/z9X2GGCC7l5q2agckNR3dY7/asEHlOlMc0/1Gt6nN F3IWWv8THUEnAfhFfvz9yBU5C; Received: from 97-122-86-252.hlrn.qwest.net ([97.122.86.252]:56532 helo=murgatroyd) by box5379.bluehost.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96.2) (envelope-from ) id 1s54Hq-003LtD-20; Thu, 09 May 2024 07:58:18 -0600 From: Tom Tromey To: Bob Rossi Cc: Tom Tromey , gdb-patches@sourceware.org Subject: Re: Optionally print source code to gdb console window In-Reply-To: (Bob Rossi's message of "Wed, 8 May 2024 19:07:23 -0400") References: <87ikzpa7k6.fsf@tromey.com> <87y18lunti.fsf@tromey.com> <87a5l05mt3.fsf@tromey.com> X-Attribution: Tom Date: Thu, 09 May 2024 07:58:17 -0600 Message-ID: <878r0j3x52.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box5379.bluehost.com X-AntiAbuse: Original Domain - sourceware.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tromey.com X-BWhitelist: no X-Source-IP: 97.122.86.252 X-Source-L: No X-Exim-ID: 1s54Hq-003LtD-20 X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 97-122-86-252.hlrn.qwest.net (murgatroyd) [97.122.86.252]:56532 X-Source-Auth: tom+tromey.com X-Email-Count: 5 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfNF+EJEN3rygx54emu2bhvcFlVrCMn/B9nVCOQfvBrNMl7CqoIuPgWflq+wKdyjqD1Bse/ynRZMf4f/KMtRQ/jp4X2adY/5+/Ht2l2bLXO3WbfydD2j3 cXKxnDQPnAxKq8pskbfsMqQyE2XcJyJLqBimdiMaYrJrF6SDW8BGG1AJYUSIPN0rKQIdXpf79LpfTm2EpGYA7cCJfYp8Lvo8Qnk= X-Spam-Status: No, score=-3014.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, JMQ_SPF_NEUTRAL, 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 >>>>> "Bob" == Bob Rossi writes: Bob> I saw in the NEWS file, Bob> show print frame-info Bob> This controls what frame information is printed by the commands printing Bob> a frame. This setting will e.g. influence the behaviour of 'backtrace', Bob> 'frame', 'stepi'. The python frame filtering also respect this setting. Bob> The 'backtrace' '-frame-info' option can override this global setting. Yeah, sorry. I was hoping to find some simpler way but I think there isn't one. Bob> A new option, but separate from the existing frame-info command, as to Bob> not impact other areas of gdb. Bob> set print frame-info-source-line off Bob> This is very similar to your approach, however, it lets the user choose Bob> whatever they want with print frame-info, and then it lets cgdb "subtract" the Bob> source-line printing from the console in only that case (and not bt case). Bob> What do you think about this crazyiness? Works for me. Tom