Page MenuHomeFreeBSD

Update crashinfo to work with newer gdb from ports.
ClosedPublic

Authored by jhb on Jul 15 2016, 2:59 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Apr 20, 8:07 AM
Unknown Object (File)
Mar 22 2024, 9:09 PM
Unknown Object (File)
Mar 22 2024, 9:09 PM
Unknown Object (File)
Mar 22 2024, 9:06 PM
Unknown Object (File)
Mar 8 2024, 6:04 AM
Unknown Object (File)
Mar 7 2024, 3:32 PM
Unknown Object (File)
Feb 27 2024, 10:26 AM
Unknown Object (File)
Feb 27 2024, 10:13 AM
Subscribers

Details

Summary

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

Note that after this I think we can disable gdb by default on at least
amd64. In theory the 'gdbcommand' function is easily adaptable to lldb
if it supports 'printf' as a command. Still need a kernel target to
do the kernel backtrace though.

Test Plan
  • Run modified crashinfo in a VM with the ports gdb installed and compare output with the stock crashinfo.
  • Run modified crashinfo in a VM without ports gdb installed and comprae output with the stock crashinfo.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

jhb retitled this revision from to Update crashinfo to work with newer gdb from ports..
jhb updated this object.
jhb edited the test plan for this revision. (Show Details)
jhb added a reviewer: emaste.
emaste edited edge metadata.
This revision is now accepted and ready to land.Jul 20 2016, 2:55 PM
This revision was automatically updated to reflect the committed changes.