From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gateway36.websitewelcome.com (gateway36.websitewelcome.com [192.185.185.36]) by sourceware.org (Postfix) with ESMTPS id D3DCC3858D34 for ; Fri, 27 Aug 2021 17:10:11 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org D3DCC3858D34 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=tromey.com Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=tromey.com Received: from cm17.websitewelcome.com (cm17.websitewelcome.com [100.42.49.20]) by gateway36.websitewelcome.com (Postfix) with ESMTP id F2BAC400E1BC2 for ; Fri, 27 Aug 2021 12:10:08 -0500 (CDT) Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with SMTP id JfMmmKqkeMGeEJfMmmN0jM; Fri, 27 Aug 2021 12:10:08 -0500 X-Authority-Reason: nr=8 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:In-Reply-To:Date:References :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=knUtLANkSVCs9p5zOs8ye7O9pZEMR/O75AmWZxZ8Cso=; b=Cvf4uR+IefNQrB7t5jxrR+de5q qC3qmIdIiZh8p1qpIKNw9NroWqxiVPymO0SbId6LHxYGduwouHJ+/jvKoUaizeq57QbmBLEOOe7mv h4vdWett+0LGf2eqHxPkMVtHT; Received: from 97-122-86-84.hlrn.qwest.net ([97.122.86.84]:40698 helo=murgatroyd) by box5379.bluehost.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1mJfMm-001JRJ-Na; Fri, 27 Aug 2021 11:10:08 -0600 From: Tom Tromey To: Simon Marchi via Gdb-patches Cc: Tom Tromey , Simon Marchi Subject: Re: [PATCH][gdb/testsuite] Support .debug_aranges in dwarf assembly References: <20210826115625.GA22715@delia> <87eeafovsa.fsf@tromey.com> <40b7d95e-cc02-38c7-5406-0fc83a2a1b28@polymtl.ca> <87tujaoofr.fsf@tromey.com> <5100b9c9-0a69-d392-1d45-9affe992acff@polymtl.ca> X-Attribution: Tom Date: Fri, 27 Aug 2021 11:10:08 -0600 In-Reply-To: <5100b9c9-0a69-d392-1d45-9affe992acff@polymtl.ca> (Simon Marchi via Gdb-patches's message of "Fri, 27 Aug 2021 13:03:43 -0400") Message-ID: <87eeaeolu7.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) 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.84 X-Source-L: No X-Exim-ID: 1mJfMm-001JRJ-Na X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 97-122-86-84.hlrn.qwest.net (murgatroyd) [97.122.86.84]:40698 X-Source-Auth: tom+tromey.com X-Email-Count: 5 X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-Spam-Status: No, score=-3022.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, JMQ_SPF_NEUTRAL, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, RCVD_IN_SBL_CSS, SPF_HELO_PASS, SPF_NEUTRAL, TXREP, URIBL_CSS_A autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Aug 2021 17:10:22 -0000 Simon> But doing it this way makes it so that you can only invoke arange when Simon> you are in aranges' body, isn't that useful? I guess the downside to Simon> redefining the proc everytime is performance, but that's really not a Simon> concern here (it runs quickly enough). >> To do that, it also have to delete the 'arange' proc after evaluating >> the body. I suppose that would be alright by me. Simon> Really? This technique is used in proc rnglists, and that doesn't seem Simon> to cause a problem. AFAIK Tcl doesn't have any kind of lexical scoping for procs. So, after "proc arange" is evaluated, the binding stays around. This contradicts the what you were saying: "you can only invoke arange when you are in aranges' body". I think that's not the case, you can invoke arange any time after any aranges call in the current invocation of runtest. I'm not concerned about the performance, I guess. It's just un-idiomatic to define a proc in a proc, normally this would only be used for tricky things like changing a proc body at runtime. So when I see this sort of thing, I start looking for the trick. There's nothing incorrect, it's just less clear than it could be. Tom