]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
ARM/FDPIC: Add gdbserver support
authorChristophe Lyon <christophe.lyon@linaro.org>
Wed, 14 Apr 2021 14:22:25 +0000 (14:22 +0000)
committerChristophe Lyon <christophe.lyon@linaro.org>
Wed, 14 Apr 2021 14:22:25 +0000 (14:22 +0000)
commit94fcbd8684092b9c36aba0a2c6cadccea1a76909
treec6f3e04a6b29e7b1b8416f0baf5e146a3e40fd0a
parent843ce98afdc862cfa2aab9d081078eab5a66ba06
ARM/FDPIC: Add gdbserver support

This patch extends the existing support for FDPIC on bfin/frv/sh to arm.
It is enabled when configuring with --host arm-none-uclinuxfdpiceabi,
using arm-none-uclinuxfdpiceabi-gcc.

We also change the way HAS_NOMMU is defined to make sure we use vfork
instead of fork (which is not available in the ARM FDPIC
configuration).

2021-04-14  Mickael Guene <mickael.guene@st.com>
Christophe Lyon <christophe.lyon@st.com>

* gdb/common/linux-ptrace.h: Define PTRACE for FDPIC for arm too.
* gdb/gdbserver/configure.srv: Accept arm*-*-uclinuxfdpiceabi
target.
* gdb/gdbserver/linux-low.c (elf32_fdpic_loadseg): New.
(elf32_fdpic_loadmap): New.
(HAS_NOMMU): Fix definition.
(linux_read_offsets): Add support for arm FDPIC.
gdb/common/linux-ptrace.h
gdb/gdbserver/configure.srv
gdb/gdbserver/linux-low.c