Don't include sys/personality.h in linux-low.cc anymore

Lancelot pointed out that since the refactor at:

  https://sourceware.org/pipermail/gdb-patches/2015-January/120503.html

the sys/personality.h include is not needed in linux-low.cc anymore,
as it does not call personality directly itself anymore.

gdbserver/ChangeLog:

	* linux-low.cc: Don't include sys/personality.h or define
	ADDR_NO_RANDOMIZE.
This commit is contained in:
Pedro Alves 2021-05-08 12:54:43 +01:00
parent 8a16cc4b93
commit e2ea3a381a
2 changed files with 5 additions and 7 deletions

View file

@ -1,3 +1,8 @@
2021-05-08 Pedro Alves <pedro@palves.net>
* linux-low.cc: Don't include sys/personality.h or define
ADDR_NO_RANDOMIZE.
2021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
* server.cc (handle_v_attach)

View file

@ -60,13 +60,6 @@
#endif
#include "nat/linux-namespaces.h"
#ifdef HAVE_PERSONALITY
# include <sys/personality.h>
# if !HAVE_DECL_ADDR_NO_RANDOMIZE
# define ADDR_NO_RANDOMIZE 0x0040000
# endif
#endif
#ifndef O_LARGEFILE
#define O_LARGEFILE 0
#endif