Fix nat/linux-personality.c regression on RHEL-5
authorSergio Durigan Junior <sergiodj@redhat.com>
Fri, 16 Jan 2015 16:42:28 +0000 (11:42 -0500)
committerSergio Durigan Junior <sergiodj@redhat.com>
Fri, 16 Jan 2015 16:42:28 +0000 (11:42 -0500)
commit4c347be60a1c25f78826fbf86d416a278740145b
tree99db2c5ebafec058b3758aa4bea22670e8e22e73
parentc54da50d66b46166e3542f64429741bd29e74eba
Fix nat/linux-personality.c regression on RHEL-5

This commit fixes the regression on RHEL-5 systems introduced by
nat/linux-personality.c's check of HAVE_DECL_ADDR_NO_RANDOMIZE.
RHEL-5 systems define HAVE_DECL_ADDR_NO_RANDOMIZE as zero, so we
cannot use #ifndef; instead this patch uses the "#if !" construction.

The regression was reported by Ulrich Weigand here:

  <https://sourceware.org/ml/gdb-patches/2015-01/msg00458.html>

gdb/ChangeLog
2015-01-16  Sergio Durigan Junior  <sergiodj@redhat.com>

* nat/linux-personality.c: Replace "#ifndef
HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
!HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
systems.
gdb/ChangeLog
gdb/nat/linux-personality.c
This page took 0.047076 seconds and 4 git commands to generate.