From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14975 invoked by alias); 29 Apr 2010 22:54:39 -0000 Received: (qmail 14965 invoked by uid 22791); 29 Apr 2010 22:54:38 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=BAYES_00,MSGID_MULTIPLE_AT X-Spam-Check-By: sourceware.org Received: from mailhost.u-strasbg.fr (HELO mailhost.u-strasbg.fr) (130.79.200.155) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 29 Apr 2010 22:54:32 +0000 Received: from baal.u-strasbg.fr (baal.u-strasbg.fr [IPv6:2001:660:2402::41]) by mailhost.u-strasbg.fr (8.14.3/jtpda-5.5pre1) with ESMTP id o3TMs7iR022913 ; Fri, 30 Apr 2010 00:54:08 +0200 (CEST) (envelope-from pierre.muller@ics-cnrs.unistra.fr) Received: from mailserver.u-strasbg.fr (ms1.u-strasbg.fr [IPv6:2001:660:2402:d::10]) by baal.u-strasbg.fr (8.14.0/jtpda-5.5pre1) with ESMTP id o3TMs7rb055031 ; Fri, 30 Apr 2010 00:54:07 +0200 (CEST) (envelope-from pierre.muller@ics-cnrs.unistra.fr) Received: from d620muller (lec67-4-82-230-53-140.fbx.proxad.net [82.230.53.140]) (user=mullerp mech=LOGIN) by mailserver.u-strasbg.fr (8.14.3/jtpda-5.5pre1) with ESMTP id o3TMs4AJ036063 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO) ; Fri, 30 Apr 2010 00:54:07 +0200 (CEST) (envelope-from pierre.muller@ics-cnrs.unistra.fr) From: "Pierre Muller" To: "'Joel Brobecker'" Cc: References: <002101cae7e9$e7229540$b567bfc0$@muller@ics-cnrs.unistra.fr> <20100429223157.GA2768@adacore.com> In-Reply-To: <20100429223157.GA2768@adacore.com> Subject: RE: [RFC] pascal: Add lowercase copy of symbol name Date: Thu, 29 Apr 2010 22:54:00 -0000 Message-ID: <002a01cae7ee$e144b6d0$a3ce2470$@muller@ics-cnrs.unistra.fr> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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/msg00972.txt.bz2 > 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? The problem is that if we want to keep the true case of the symbols (which I at least want), doing case-insensitive searching required practically to lowercase on the fly all pascal symbol each time an expression is evaluated. This is very inefficient. > 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... There are some internal functions or variables inside Free Pascal that are lowercase to avoid possible conflict with explicitly declared functions or variables (who are completely UPPERCASED in Free Pascal). GNU pascal uses First Letter Capitalization for its declared function/variables (I don't know the internals of GPC). In the printout, I would like to keep this difference between internal and declared variables. If I have an internal variable named stdout, and a declared variable STDOUT. I would really prefer to still be able to only get one matching variable if I use the exact matching stdout or STDOUT. Pierre Muller Pascal language support maintainer for GDB