gdb: Fix some PEP 8 violationsSilence some warnings in my editor. No functional change intended.MFC after: 1 week
gdb: Make development a bit easierProvide a command which can be used to reload gdb modules.MFC after: 1 week
gdb: Improve doc stringsThese are printed by gdb when requesting help for the correspondingfunction or command, so phrase them such that they make sense in thatcontext.MFC after: 1 week
libexec/kgdb: Add new modules and install them together with debug infoThis change simplifies integration of gdb python scripts with our kerneldebugging infrastructure. Rather than putting debugg
libexec/kgdb: Add new modules and install them together with debug infoThis change simplifies integration of gdb python scripts with our kerneldebugging infrastructure. Rather than putting debugging scripts in/usr/libexec/kgdb, move them to <path-to-kernel-debug-symbols>/gdb, andadd a kernel-gdb.py which automatically loads modules from thatdirectory. kernel-gdb.py will be automatically executed by kgdb whenloading kernel debug symbols (assuming a default configuration), so oneno longer needs to do anything to use these modules.The change also adds a couple of new modules, vnet.py and pcpu.py, forconveniently accessing VNET symbols and PCPU/DPCPU fields, respectively.Note that these require a change to the kernel linker when accessingsymbols from a loadable kernel module.sys/tools/gdb/README.txt describes the scheme in more detail andprovides some rudiementary documentation for the commands and functionsadded by these modules. It should be updated when adding new features.sys/tools/gdb/selftest.py can be used to do some primitive testing ofthe modules. All it does is execute a number of gdb commands making useof commands and functions added by these modules. The developer isexpected to verify that the commands complete without errors and thatthe output looks sane.Discussed with: kp, avg, jhb, glebiusMFC after: 2 weeksDifferential Revision: https://reviews.freebsd.org/D50825
show more ...