From 3dfd63b58463e8982af2e45fc6dc1d5b03a88535 Mon Sep 17 00:00:00 2001 From: Konstantin Belousov Date: Sun, 23 Aug 2026 02:04:32 +0300 Subject: [PATCH] ptrace.2: document PT_GET_ABI_NAME Reviewed by: markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D59113 --- lib/libsys/ptrace.2 | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lib/libsys/ptrace.2 b/lib/libsys/ptrace.2 index c8513c7ba12d..612de4c5fc31 100644 --- a/lib/libsys/ptrace.2 +++ b/lib/libsys/ptrace.2 @@ -1099,6 +1099,17 @@ The child process is exiting or is a zombie. The child process is currently being debugged by a process other than its parent process. .El +.It Dv PT_GET_ABI_NAME +Returns the string designating the Application Binary Interface (ABI) +of the traced process. +Among other details, the ABI defines the interpretation of system calls +numbers and arguments. +.Pp +The buffer where the name is returned is pointed to by the +.Fa addr +argument, the size of the buffer is passed in the +.Fa data +argument. .El .Sh PT_COREDUMP and PT_SC_REMOTE usage The process must be stopped before dumping or initiating a remote system call.