Date: Thu, 29 Nov 2018 03:57:06 +0000 (UTC) From: Justin Hibbits <jhibbits@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r341179 - head/usr.bin/truss Message-ID: <201811290357.wAT3v6E9038318@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jhibbits Date: Thu Nov 29 03:57:06 2018 New Revision: 341179 URL: https://svnweb.freebsd.org/changeset/base/341179 Log: Allow truss to operate on ELFv2 processes. Summary: Currently, truss doesn't work on ELFv2 processes due to not recognizing the ABI. Since there's no special handling needed here, just adding a PROCABI struct for it is sufficient to get it working. Submitted by: git_bdragon.rtk0.net Differential Revision: https://reviews.freebsd.org/D18352 Modified: head/usr.bin/truss/powerpc64-freebsd.c Modified: head/usr.bin/truss/powerpc64-freebsd.c ============================================================================== --- head/usr.bin/truss/powerpc64-freebsd.c Thu Nov 29 03:44:02 2018 (r341178) +++ head/usr.bin/truss/powerpc64-freebsd.c Thu Nov 29 03:57:06 2018 (r341179) @@ -117,3 +117,14 @@ static struct procabi powerpc64_freebsd = { }; PROCABI(powerpc64_freebsd); + +static struct procabi powerpc64_freebsd_elfv2 = { + "FreeBSD ELF64 V2", + SYSDECODE_ABI_FREEBSD, + powerpc64_fetch_args, + powerpc64_fetch_retval, + STAILQ_HEAD_INITIALIZER(powerpc64_freebsd_elfv2.extra_syscalls), + { NULL } +}; + +PROCABI(powerpc64_freebsd_elfv2);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201811290357.wAT3v6E9038318>