Commit Graph

12 Commits

Author SHA1 Message Date
chs
cba709e375 the netbsd version of PT_LWPINFO is different from the freebsd version
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-26 14:29:58 +00:00
chs
d22d83420c use the netbsd path for separate debuginfo files.
only attempt to look up symbols in the dynsym table if the object
actually has one, which a separate debuginfo file does not.
2016-04-26 14:28:39 +00:00
mrg
aba4e15c03 don't try to do c++ if MKCXX == "no". 2016-03-15 03:17:59 +00:00
roy
af0a4ca738 Only build tests if MKATF != no 2016-02-05 10:16:12 +00:00
christos
ffeb8dbf4e Define _KERNTYPES for things that need it. 2016-01-23 21:22:45 +00:00
wiz
dde3b33e50 Mark as using c++ using LIBISCXX instead of manual workaround.
The workaround was confused when MKLLVM was set, but HAVE_LLVM was not.

Solution suggested by joerg.
2015-12-24 00:36:43 +00:00
christos
58ec3b3ba7 remove caddr_t 2015-09-25 19:09:38 +00:00
christos
800ae96385 Fix the broken detach code and make the proc tests detach instead
of continue, so that we don't get kernel diagnostic messages about
detaching traced processes.
2015-09-25 19:08:32 +00:00
christos
9a58287b9b Add a proc_breakpoint_t and a proc_regval_t to abstract some types. 2015-09-25 16:07:32 +00:00
christos
c4db460182 Elf64_Sym.st_value (Elf64_Addr) which is what GElf_Sym using, is wider than
uintptr_t on 32 bit machines, so cast to it.
2015-09-24 19:25:37 +00:00
christos
52ebe1c2c4 Add glue, adjust for NetBSD. 2015-09-24 14:12:47 +00:00
christos
fbcd1dd103 Import libproc from FreeBSD 2015-09-24 14:05:35 +00:00