From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17138 invoked by alias); 11 May 2002 07:16:43 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 17088 invoked from network); 11 May 2002 07:16:40 -0000 Received: from unknown (HELO odin.inter.net.il) (192.114.186.10) by sources.redhat.com with SMTP; 11 May 2002 07:16:40 -0000 Received: from Zaretsky ([80.230.2.40]) by odin.inter.net.il (Mirapoint Messaging Server MOS 3.1.0.54-GA) with ESMTP id AED46843; Sat, 11 May 2002 10:16:27 +0300 (IDT) Date: Sat, 11 May 2002 00:16:00 -0000 From: "Eli Zaretskii" To: neil@daikokuya.demon.co.uk Message-Id: <8361-Sat11May2002101520+0300-eliz@is.elta.co.il> CC: jimb@redhat.com, gdb-patches@sources.redhat.com In-reply-to: <20020510230813.GA30884@daikokuya.demon.co.uk> (message from Neil Booth on Sat, 11 May 2002 00:08:13 +0100) Subject: Re: RFA: add macro commands Reply-to: Eli Zaretskii References: <20020509235822.DC4F95EA11@zwingli.cygnus.com> <8011-Fri10May2002101418+0300-eliz@is.elta.co.il> <20020510230813.GA30884@daikokuya.demon.co.uk> X-SW-Source: 2002-05/txt/msg00385.txt.bz2 > Date: Sat, 11 May 2002 00:08:13 +0100 > From: Neil Booth > > Jim Blandy wrote:- > > > Given that the macros are stored in a splay tree, they're all sorted > > in a way that would make efficient completion straightforward. So it > > wouldn't be too hard to write a macro-only completion function. > > Just in case you'd not realized, macro expansions are frequently > different, depending on location in the source files. I'm not sure I understand what you mean. I was talking about completing on macro _names_, not trhe results of their _expansion_. That is, if I type "print regnum < NUM_" and hit TAB, I'd expect to see NUM_REGS and NUM_PSEUDO_REGS as possible completions. But I don't care about the values these two expand to. So this kind of completion does not depend on the location in the source files, only on the macros recorded in the debug info. Am I missing something?