From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6639 invoked by alias); 9 Sep 2002 16:48:47 -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 6626 invoked from network); 9 Sep 2002 16:48:45 -0000 Received: from unknown (HELO takamaka.act-europe.fr) (142.179.108.108) by sources.redhat.com with SMTP; 9 Sep 2002 16:48:45 -0000 Received: by takamaka.act-europe.fr (Postfix, from userid 507) id 71E29D2CC1; Mon, 9 Sep 2002 09:48:45 -0700 (PDT) Date: Mon, 09 Sep 2002 09:48:00 -0000 From: Joel Brobecker To: Kevin Buettner Cc: Pierre Muller , gdb-patches@sources.redhat.com Subject: Re: New target method returning the name of the malloc function? Message-ID: <20020909164845.GW1169@gnat.com> References: <4.2.0.58.20020906091206.021019b8@ics.u-strasbg.fr> <1020906161422.ZM26295@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1020906161422.ZM26295@localhost.localdomain> User-Agent: Mutt/1.4i X-SW-Source: 2002-09/txt/msg00122.txt.bz2 > This would suggest that something other than a target dependent method > is needed. (It seems to me that it's both target and language dependent.) Do we have a mechanism already in place that would handle both target and language? I could not find any. An alternative is for me to add a target method (for interix), and Pierre adds a language method (for Pascal). We then change the code in valops to be something like: if (language_special_name_of_malloc ()) name_of_malloc = language_special_name_of_malloc (); else name_of_malloc = NAME_OF_MALLOC (); I am slightly confused by Michael Snyder's message, though. Did it mean that GDB has no intention of handling the cases where malloc is named differently? -- Joel