From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12544 invoked by alias); 5 Nov 2007 14:15:56 -0000 Received: (qmail 12536 invoked by uid 22791); 5 Nov 2007 14:15:56 -0000 X-Spam-Check-By: sourceware.org Received: from sibelius.xs4all.nl (HELO brahms.sibelius.xs4all.nl) (82.92.89.47) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 05 Nov 2007 14:15:53 +0000 Received: from brahms.sibelius.xs4all.nl (kettenis@localhost.sibelius.xs4all.nl [127.0.0.1]) by brahms.sibelius.xs4all.nl (8.14.1/8.14.0) with ESMTP id lA5EFnmT018835; Mon, 5 Nov 2007 15:15:49 +0100 (CET) Received: (from kettenis@localhost) by brahms.sibelius.xs4all.nl (8.14.1/8.14.1/Submit) id lA5EFmvm024502; Mon, 5 Nov 2007 15:15:48 +0100 (CET) Date: Mon, 05 Nov 2007 14:15:00 -0000 Message-Id: <200711051415.lA5EFmvm024502@brahms.sibelius.xs4all.nl> From: Mark Kettenis To: deuling@de.ibm.com CC: gdb-patches@sourceware.org, uweigand@de.ibm.com In-reply-to: <472F0BF2.9010801@de.ibm.com> (message from Markus Deuling on Mon, 05 Nov 2007 13:26:26 +0100) Subject: Re: [rfc]: Macros in gdbtypes References: <472F0BF2.9010801@de.ibm.com> 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: 2007-11/txt/msg00059.txt.bz2 > Date: Mon, 05 Nov 2007 13:26:26 +0100 > From: Markus Deuling > > Hi, > > in gdbtypes.h are some macros based on current_gdbarch (eg. builtin_type_void_data_ptr). This patch > replaces builtin_type_void_data_ptr by its definition in the source tree and then replaces current_gdbarch > by appropriate methods were possible. > > This patch is **NOT** tested and shall no be committed right now. > > Before proceeding I want to hear from you if that's a way to go for those macros or if you would prefer s.th. else to get rid > of the current_gdbarch's in gdbtypes.h Please no! I think it obfuscates the code to much. It's probably better to change builtin_type_void_data_ptr to take a gdbarch argument.