From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25159 invoked by alias); 18 Mar 2002 13:00:29 -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 25040 invoked from network); 18 Mar 2002 13:00:18 -0000 Received: from unknown (HELO dberlin.org) (64.246.6.106) by sources.redhat.com with SMTP; 18 Mar 2002 13:00:18 -0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by dberlin.org (8.11.6/8.11.6) with ESMTP id g2ICxvm22714; Mon, 18 Mar 2002 07:59:57 -0500 Date: Mon, 18 Mar 2002 05:00:00 -0000 From: Daniel Berlin To: Zack Weinberg cc: Neil Booth , Jim Blandy , , Subject: Re: RFC: C/C++ preprocessor macro support for GDB In-Reply-To: <20020318083615.GH896@codesourcery.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2002-03/txt/msg00302.txt.bz2 On Mon, 18 Mar 2002, Zack Weinberg wrote: > On Mon, Mar 18, 2002 at 03:05:59AM -0500, Daniel Berlin wrote: > > I *really* don't see why Jim went to all the trouble, since it would > > probably have taken less than half a week to add the necessary > > changes to libcpp. > > This level of opprobrium is not constructive. cpplib's interface is > not well documented; I am not surprised that Jim was confused enough > that he thought it couldn't do what he wanted. Except that, had Jim *asked*, or looked back in the archives, he would have found out we had this exact discussion a year ago, except I took the position it was hard to do. Turns out, as Neil pointed out, that I was wrong. > I *think* that plain old cpp_get_token ought to handle returning > tokens one at a time as Jim needs, unless I've misunderstood something > about the problem. I'll be happy to work with Jim to clarify how to > use cpplib, and/or add features so that GDB can use it. Exactly. Which is why, had he mentioned it before, he probably could have avoided a lot of work. Whether you think it's constructive or not, it's becoming a problem, and it's not specific to Jim or GDB. > > zw >