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.
This commit is contained in:
parent
c54da50d66
commit
4c347be60a
|
@ -1,3 +1,10 @@
|
||||||
|
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.
|
||||||
|
|
||||||
2015-01-16 Eli Zaretskii <eliz@gnu.org>
|
2015-01-16 Eli Zaretskii <eliz@gnu.org>
|
||||||
|
|
||||||
* tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
|
* tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
|
|
||||||
#ifdef HAVE_PERSONALITY
|
#ifdef HAVE_PERSONALITY
|
||||||
# include <sys/personality.h>
|
# include <sys/personality.h>
|
||||||
# ifndef HAVE_DECL_ADDR_NO_RANDOMIZE
|
# if !HAVE_DECL_ADDR_NO_RANDOMIZE
|
||||||
# define ADDR_NO_RANDOMIZE 0x0040000
|
# define ADDR_NO_RANDOMIZE 0x0040000
|
||||||
# endif /* ! HAVE_DECL_ADDR_NO_RANDOMIZE */
|
# endif /* ! HAVE_DECL_ADDR_NO_RANDOMIZE */
|
||||||
#endif /* HAVE_PERSONALITY */
|
#endif /* HAVE_PERSONALITY */
|
||||||
|
|
Loading…
Reference in New Issue