]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC 303109: Update crashinfo to work with newer gdb from ports.
authorjhb <jhb@FreeBSD.org>
Wed, 27 Jul 2016 17:55:14 +0000 (17:55 +0000)
committerjhb <jhb@FreeBSD.org>
Wed, 27 Jul 2016 17:55:14 +0000 (17:55 +0000)
commit8fe5530ed02a06db19bfd09057f0cd59e7108871
tree1856196978da469a6e7c6de34159da39fbda9a7f
parentffa9fc325a05f754c4b9e308380e8cb736fab985
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
Approved by: re (gjb)
usr.sbin/crashinfo/crashinfo.sh