gdbserver: should use __ARCH_HAS_MMU__ rather than__UCLIBC_HAS_MMU__

Jon Ringle JRingle@vertical.com
Wed Mar 7 19:14:00 GMT 2007


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



More information about the Gdb-patches mailing list