]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Check the text segment size of the executable and the process. If
authorwosch <wosch@FreeBSD.org>
Mon, 24 Aug 1998 16:25:30 +0000 (16:25 +0000)
committerwosch <wosch@FreeBSD.org>
Mon, 24 Aug 1998 16:25:30 +0000 (16:25 +0000)
commit184c377af2dc581f60d15b7a84651cd16c04f83c
tree97b130473b38b244be4d269044f8084332bcb7bc
parent8a3c521f04ee9ad807d4c737f050230cb04ce36d
Check the text segment size of the executable and the process. If
not equal, the command line arguments are wrong. E.g.:

$./gcore /bin/sh 1761

$ ./gcore /usr/tmp/chroot/bin/sh 1761
gcore: The executable /usr/tmp/chroot/bin/sh does not belong to process 1761!
Text segment size (in bytes): executable 303104, process 294912
usr.bin/gcore/aoutcore.c
usr.bin/gcore/gcore.c