summaryrefslogtreecommitdiff
path: root/external/bsd/libproc
AgeCommit message (Collapse)Author
2019-12-07Switch proc_getlwpstatus from PT_LWPINFO to PT_GET_SIGINFO for NetBSDkamil
PT_LWPINFO from FreeBSD is almost never intended to be expressed with PT_LWPINFO in NetBSD. PT_GET_SIGINFO reads siginfo_t with the signal information about the event, on FreeBSD siginfo_t is merged into ptrace_lwpinfo and returns the thread that received the event (not the first one in a list like on NetBSD).
2018-07-20unbreak aarch64christos
2018-02-25add some flag definitions from a newer version of FreeBSD's libprocchs
that are needed by the new dtrace. these don't do anything yet, but dtrace doesn't mind. I'll do a full resync to the latest FreeBSD libproc / librtld_db later.
2017-12-08Use PRIxPTR instead of lx to print pointers. Fix debug build with LLVM.rin
Also use PRIxPTR instead of PRIuPTR, which is apparently misused.
2017-10-06bump because of libstdc++christos
2017-06-15Don't include <sys/user.h> on NetBSD in libprockamil
This header in this context is freebsdism.
2017-06-09add a proc_getmodel() interface to return whether a processchs
is a 32-bit or 64-bit process. the interface is from freebsd but the implementation is different. needed by dtrace.
2017-02-01implement proc_getlwpstatus() for netbsd using PT_GET_SIGINFO.chs
2016-04-26the netbsd version of PT_LWPINFO is different from the freebsd versionchs
in that we use lp_lwpid as an input to say which lwp to operate on. freebsd passes the lwpid as the pid, which works fine there since freebsd has globally unique LWP IDs which are also distinct from process IDs. the libproc interface that uses this ptrace() call is only supposed to return info for the process's representative LWP, so just initialize pl_lwpid to 1 before using it.
2016-04-26use the netbsd path for separate debuginfo files.chs
only attempt to look up symbols in the dynsym table if the object actually has one, which a separate debuginfo file does not.
2016-03-15don't try to do c++ if MKCXX == "no".mrg
2016-02-05Only build tests if MKATF != noroy
2016-01-23Define _KERNTYPES for things that need it.christos
2015-12-24Mark as using c++ using LIBISCXX instead of manual workaround.wiz
The workaround was confused when MKLLVM was set, but HAVE_LLVM was not. Solution suggested by joerg.
2015-09-25remove caddr_tchristos
2015-09-25Fix the broken detach code and make the proc tests detach insteadchristos
of continue, so that we don't get kernel diagnostic messages about detaching traced processes.
2015-09-25Add a proc_breakpoint_t and a proc_regval_t to abstract some types.christos
2015-09-24Elf64_Sym.st_value (Elf64_Addr) which is what GElf_Sym using, is wider thanchristos
uintptr_t on 32 bit machines, so cast to it.
2015-09-24Add glue, adjust for NetBSD.christos
2015-09-24Import libproc from FreeBSDchristos