This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [rfc]: Macros in gdbtypes


> Date: Mon, 05 Nov 2007 13:26:26 +0100
> From: Markus Deuling <deuling@de.ibm.com>
> 
> 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]