This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] Define DT_MIPS_RLD_MAP if not already defined.
- From: Thiago Jung Bauermann <thiago dot bauermann at linaro dot org>
- To: Pedro Alves <palves at redhat dot com>
- Cc: gdb-patches ml <gdb-patches at sourceware dot org>
- Date: Wed, 30 May 2012 15:35:35 -0300
- Subject: Re: [RFA] Define DT_MIPS_RLD_MAP if not already defined.
- References: <1338352816.3618.5.camel@hactar> <4FC660E6.9010904@redhat.com>
On Wed, 2012-05-30 at 19:03 +0100, Pedro Alves wrote:
> On 05/30/2012 05:40 AM, Thiago Jung Bauermann wrote:
> > Hello,
> >
> > Android doesn't support MIPS, so understandably there's no
> > DT_MIPS_RLD_MAP in its header files. This patch allows gdbserver to be
> > compiled for Android.
>
> Then why not '#ifdef DT_MIPS_RLD_MAP' out the bits that use DT_MIPS_RLD_MAP ?
> It's just dead code on non-MIPS ports.
I thought #ifdef'ing platform-specific code was discouraged in GDB. I
can certainly do that though.
--
[]'s
Thiago Jung Bauermann
Linaro Toolchain Working Group