4b8b5e7245
This commit introduces new shared files nat/linux-namespaces.[ch] containing code to support Linux namespaces that will be used by both GDB and gdbserver. gdb/ChangeLog: * configure.ac (AC_CHECK_FUNCS): Add setns. * config.in: Regenerate. * configure: Likewise. * nat/linux-namespaces.h: New file. * nat/linux-namespaces.c: Likewise. * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h. (linux-namespaces.o): New rule. * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o. * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise. * config/arm/linux.mh (NATDEPFILES): Likewise. * config/i386/linux.mh (NATDEPFILES): Likewise. * config/i386/linux64.mh (NATDEPFILES): Likewise. * config/ia64/linux.mh (NATDEPFILES): Likewise. * config/m32r/linux.mh (NATDEPFILES): Likewise. * config/m68k/linux.mh (NATDEPFILES): Likewise. * config/mips/linux.mh (NATDEPFILES): Likewise. * config/pa/linux.mh (NATDEPFILES): Likewise. * config/powerpc/linux.mh (NATDEPFILES): Likewise. * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise. * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise. * config/s390/linux.mh (NATDEPFILES): Likewise. * config/sparc/linux.mh (NATDEPFILES): Likewise. * config/sparc/linux64.mh (NATDEPFILES): Likewise. * config/tilegx/linux.mh (NATDEPFILES): Likewise. * config/xtensa/linux.mh (NATDEPFILES): Likewise. gdb/gdbserver/ChangeLog: * configure.ac (AC_CHECK_FUNCS): Add setns. * config.in: Regenerate. * configure: Likewise. * Makefile.in (SFILES): Add nat/linux-namespaces.c. (linux-namespaces.o): New rule. * configure.srv (srv_linux_obj): Add linux-namespaces.o.
21 lines
720 B
Text
21 lines
720 B
Text
# Host: PowerPC64, running Linux
|
|
|
|
XM_CLIBS=
|
|
|
|
NAT_FILE= config/nm-linux.h
|
|
NATDEPFILES= inf-ptrace.o fork-child.o \
|
|
ppc-linux-nat.o proc-service.o linux-thread-db.o \
|
|
linux-nat.o linux-osdata.o linux-fork.o linux-procfs.o linux-ptrace.o \
|
|
linux-waitpid.o ppc-linux.o linux-personality.o \
|
|
linux-namespaces.o
|
|
NAT_CDEPS = $(srcdir)/proc-service.list
|
|
|
|
# The PowerPC has severe limitations on TOC size, and uses them even
|
|
# for non-PIC code. GDB overflows those tables when compiling with
|
|
# -mfull-toc (the default), so we need to ask GCC to use as few TOC
|
|
# entries as possible.
|
|
MH_CFLAGS= -mminimal-toc
|
|
|
|
# The dynamically loaded libthread_db needs access to symbols in the
|
|
# gdb executable.
|
|
LOADLIBES= -ldl $(RDYNAMIC)
|