This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [rfc]: Macros in gdbtypes
- From: Mark Kettenis <mark dot kettenis at xs4all dot nl>
- To: deuling at de dot ibm dot com
- Cc: gdb-patches at sourceware dot org, uweigand at de dot ibm dot com
- Date: Mon, 5 Nov 2007 15:15:48 +0100 (CET)
- Subject: Re: [rfc]: Macros in gdbtypes
- References: <472F0BF2.9010801@de.ibm.com>
> 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.