This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Multi-process + multi-arch: GDB
- From: Tom Tromey <tromey at redhat dot com>
- To: Pedro Alves <palves at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Fri, 09 Nov 2012 11:24:36 -0700
- Subject: Re: [PATCH] Multi-process + multi-arch: GDB
- References: <20121109015149.13597.39322.stgit@brno.lan>
>>>>> "Pedro" == Pedro Alves <palves@redhat.com> writes:
Pedro> +/* This is a convenience wrapper for 'current_inferior ()->gdbarch'. */
Pedro> +#define target_gdbarch get_target_gdbarch ()
Pedro> +extern struct gdbarch *get_target_gdbarch (void);
I think object-like macros that expand to functions make the code harder
to read.
I can write up a patch to fix this if you agree.
Tom