]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC 303109: Update crashinfo to work with newer gdb from ports.
authorjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 27 Jul 2016 17:55:40 +0000 (17:55 +0000)
committerjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 27 Jul 2016 17:55:40 +0000 (17:55 +0000)
commit2919f96c1755a17afa8c41fe247bef4bc68d1071
tree30e46fe5cd857aed56c36a249820f3123228a00a
parentf7434292f76fcc9bf276d1f73d608456eb0ea641
MFC 303109: Update crashinfo to work with newer gdb from ports.

If gdb from ports is installed, use it instead of the base system gdb
to extract variables from a kernel.  Note that base gdb and ports gdb
do not support the same options for invoking a single command in batch
mode, so a wrapper shell function is used.  In addition, prefer kgdb
from ports when generating a backtrace if present.

PR: 193335

git-svn-id: svn://svn.freebsd.org/base/stable/9@303403 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
usr.sbin/crashinfo/crashinfo.sh