Home | History | Annotate | Download | only in include
History log of /src/sys/arch/aarch64/include/ptrace.h
RevisionDateAuthorComments
 1.12  07-Sep-2020  ryo Oops. revert my previous commit. AArch64 instructions are always LE.
 1.11  06-Sep-2020  ryo need swap for aarch64be
 1.10  02-Jul-2020  rin Add support of ptrace(2) for COMPAT_NETBSD32.

Now, GDB for arm32 is usable for debugging 32bit applications.

OK ryo@
 1.9  18-Jun-2019  kamil branches: 1.9.2;
Introduce PTRACE_REG_FP() a helper macro to retrieve the frame pointer

The macro is dummy for ia64 (the FP register is unknown and can change
freely) and sparc/sparc64 (not stored in struct reg).
 1.8  13-Dec-2018  ryo add support PT_STEP
 1.7  21-Jul-2018  ryo don't depend endian.
 1.6  20-Jul-2018  christos flip the byte order
 1.5  12-Apr-2017  kamil branches: 1.5.10; 1.5.12;
Add new macro PTRACE_BREAKPOINT_ASM in <sys/ptrace.h> MD part

This macro ships with a MD-specific assembly instruction triggering
a software breakpoint.

Missing instruction for powerpc targets.

This code is used in ATF tests (lib/libc/sys/t_ptrace_wait).

Original patch by Nick Hudson, thanks!
 1.4  25-Sep-2015  christos branches: 1.4.2; 1.4.4;
For processors that have memory breakpoints, add macros for them to help
libproc
 1.3  15-Sep-2015  christos Provide access to pc/sp/syscall-return registers like we have for mcontext
 1.2  11-Aug-2014  matt branches: 1.2.2; 1.2.4;
#include <arm/ptrace.h> instead of <arm/asm.h>
(opps)
 1.1  10-Aug-2014  matt Preliminary files for AARCH64 (64-bit ARM) support.
Enough for a distribution build.
 1.2.4.3  28-Aug-2017  skrll Sync with HEAD
 1.2.4.2  27-Dec-2015  skrll Sync with HEAD (as of 26th Dec)
 1.2.4.1  22-Sep-2015  skrll Sync with HEAD
 1.2.2.3  03-Dec-2017  jdolecek update from HEAD
 1.2.2.2  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.2.2.1  11-Aug-2014  tls file ptrace.h was added on branch tls-maxphys on 2014-08-20 00:02:39 +0000
 1.4.4.1  21-Apr-2017  bouyer Sync with HEAD
 1.4.2.1  26-Apr-2017  pgoyette Sync with HEAD
 1.5.12.2  13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.5.12.1  10-Jun-2019  christos Sync with HEAD
 1.5.10.2  26-Dec-2018  pgoyette Sync with HEAD, resolve a few conflicts
 1.5.10.1  28-Jul-2018  pgoyette Sync with HEAD
 1.9.2.1  01-Jan-2021  martin Pull up following revision(s) (requested by rin in ticket #1172):

sys/arch/aarch64/aarch64/trap.c: revision 1.30
sys/arch/aarch64/include/ptrace.h: revision 1.10
sys/arch/aarch64/include/netbsd32_machdep.h: revision 1.4 (patch)
sys/arch/aarch64/aarch64/netbsd32_machdep.c: revision 1.14
sys/arch/aarch64/aarch64/netbsd32_machdep.c: revision 1.15

Add support of ptrace(2) for COMPAT_NETBSD32.

Now, GDB for arm32 is usable for debugging 32bit applications.
OK ryo@

For rev 1.14 and before, netbsd32_process_write_regs() returns EINVAL
if non-modifiable bits are set in CPSR.
Instead, mask out non-modifiable bits and make this function success
regardless of value in CPSR. New behavior matches that of arm:
https://nxr.netbsd.org/xref/src/sys/arch/arm/arm/process_machdep.c#187

This fixes lib/libc/sys/t_ptrace_wait*:access_regs6 tests, in which
register contents retrieved by PT_GETREGS are set back by PT_SETREGS.

No new regression is observed in full ATF run.

OK ryo

RSS XML Feed