Running a program through gdb without "interfering"

Stef Walter stef-list at
Fri Oct 9 14:08:44 UTC 2009

Mel Flynn wrote:
> [1] In order to get this working I had to put a statically compiled ps in the 
> jail

This is a pretty standard practice. I always put these statically built
into any jails that don't match the outside system. I use the following
crunchgen config to accomplish that.



# Commands to build in
progs ps ipcs netstat pkill top w killall
progs systat iostat
progs jkill
progs kldstat

# Link these programs to each other
ln pkill pgrep
ln w uptime

# Libraries which we need
libs -lutil -lkvm -ldevstat -lncurses -ldevstat -lm -lnetgraph -lmemstat

More information about the freebsd-hackers mailing list