From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26240 invoked by alias); 29 Apr 2010 22:32:06 -0000 Received: (qmail 26230 invoked by uid 22791); 29 Apr 2010 22:32:04 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=BAYES_00 X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 29 Apr 2010 22:32:01 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id BAE532BAB0B; Thu, 29 Apr 2010 18:31:59 -0400 (EDT) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id IdKCRVTl7o0x; Thu, 29 Apr 2010 18:31:59 -0400 (EDT) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 8A6CA2BAAFE; Thu, 29 Apr 2010 18:31:59 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id 18DDFF5896; Thu, 29 Apr 2010 15:31:57 -0700 (PDT) Date: Thu, 29 Apr 2010 22:32:00 -0000 From: Joel Brobecker To: Pierre Muller Cc: gdb-patches@sourceware.org Subject: Re: [RFC] pascal: Add lowercase copy of symbol name Message-ID: <20100429223157.GA2768@adacore.com> References: <002101cae7e9$e7229540$b567bfc0$@muller@ics-cnrs.unistra.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <002101cae7e9$e7229540$b567bfc0$@muller@ics-cnrs.unistra.fr> User-Agent: Mutt/1.5.20 (2009-06-14) Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2010-04/txt/msg00969.txt.bz2 > Here is a step in that direction: adding a new pascal_specific field > for general_symbol_info structure, fill it with a lowercase copy of > the symbol name and use that lowercase copy for searches if > case_sensitivityy is off. > > I did not yet really decide exactly how I am going to use this > inside that pascal expression parser. One idea would be to first > try an exact match, and if that fails, try again forcing > case_sensitivity to off temporarily. > > Comments? I can't really say that I am fond of this approach - at all. We already store the linkage name as well as the natural name. Can't you use that in the language-specific lookup routines to make the search case insensitive? There is also something I'm confused about: If Pascal is *not* case- sensitive, why make the debugger optionally case-sensitive? Why not always have a case-insensitive interpreter? You aluded that there were some reasons... -- Joel