This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
RE: gdbserver: should use __ARCH_HAS_MMU__ rather than__UCLIBC_HAS_MMU__
- From: "Jon Ringle" <JRingle at vertical dot com>
- To: "Michael Snyder" <Michael dot Snyder at palmsource dot com>, "Jon Ringle" <jon at ringle dot org>
- Cc: <gdb-patches at sourceware dot org>
- Date: Wed, 7 Mar 2007 14:13:45 -0500
- Subject: RE: gdbserver: should use __ARCH_HAS_MMU__ rather than__UCLIBC_HAS_MMU__
Michael Snyder wrote:
> On Tue, 2007-03-06 at 23:21 -0500, Jon Ringle wrote:
> > +#if !(defined(__UCLIBC_HAS_MMU__) || defined(__ARCH_HAS_MMU__))
>
> Shouldn't it be !defined(__ARCH_HAS_MMU__)?
>
What I have there is correct. Look carefully that the ! and the outer
parenthesis I have. I could have also written it as:
#if !defined(__UCLIBC_HAS_MMU__) && !defined(__ARCH_HAS_MMU__)
But what I have works too.
>
> And please remove the change below -- I'm sure it has
> nothing to do with the one above.
Yes. That was not intended to be there.
Jon