summaryrefslogtreecommitdiff
path: root/tools/debugscripts
AgeCommit message (Collapse)Author
2006-05-22o Correct comments: remove a reference to non-existent gdbinit.9 man page;Maxim Konovalov
correct a path to the kernel build directory; gdb lost -k key. Reviewed by: grog MFC after: 1 week Notes: svn path=/head/; revision=158820
2005-03-20I forgot to commit this fix that is now kgdb aware...John-Mark Gurney
Notes: svn path=/head/; revision=143864
2004-11-20Remove the uarea column from the DDB 'ps' display, and from grog's gdbDavid Schultz
scripts. Reviewed by: arch@ Notes: svn path=/head/; revision=137923
2004-11-19Catch up with PHK's sio(4) cuaa->cuad rework [sys/dev/sio/sio.c rev. 1.456].David E. O'Brien
Notes: svn path=/head/; revision=137882
2004-11-04Remove vinum bits.Poul-Henning Kamp
Notes: svn path=/head/; revision=137206
2004-08-04add a set of scripts that I posted to -current last year. This makesJohn-Mark Gurney
debugging kernels and kernel modules much easier. It will automaticly locate kernel source, extract kernel module information, and rerun gdb to load kernel module symbol information (if available by compiling module w/ debuging symbols). I have not run these recently, so may need to be updated to work with gdb6. Feel free to fix as appropriate for -current. Notes: svn path=/head/; revision=133123
2003-12-31Rename "msgbuf" to "dmesg", a more easily remembered name.Greg Lehey
"Fix" documentation by removing periods and commas. Notes: svn path=/head/; revision=124009
2003-12-30Remove calls to 'y' macro.Greg Lehey
Notes: svn path=/head/; revision=123983
2003-12-30Remove current implementation of kldstat macro.Greg Lehey
Add new kldstat, kldstat-v and kernel macros. The kldstat macro is functionally equivalent to the previous implementation, but it looks prettier and it matches the kldstat-v macro better. kldstat-v gives output similar to userland kldstat -v (note lacking space), and kernel loads a new kernel and dump. Submitted by: des Notes: svn path=/head/; revision=123979
2003-12-29Add documentation for previously undocumented macros, and correctGreg Lehey
existing documentation. This is not made any easier by the brain-damaged format required for the documentation: one line, no full stops or commas. Notes: svn path=/head/; revision=123953
2003-12-29Add documentation for previously undocumented macros. This is notGreg Lehey
made any easier by the brain-damaged format required for the documentation: one line, no full stops or commas. Remove macro xy. I can't see any use for it any more. Notes: svn path=/head/; revision=123952
2003-12-29Add comments to deter people from using this file directly. That'sGreg Lehey
not the intention. Rearrange "you may want to change these values" values to the top, and reduce their number as much as possible. tr macro: Require a parameter (because gdb is too stupid to understand optional parameters), and create macros tr0, tr1 and trf which call it to connect to /dev/cuaa0, /dev/cuaa1 and firewire connections respectively. Split kld symbol load into two separate macros: revision 1.5 simplified things for the /dev/mem case, but broke it for anything else. Now the simple /dev/mem version is called kldsyms, and the version for serial debugging and processor dumps is called getsyms, and still requires this irritating cut and paste. Change comments on startup to make life easier for the poor (de)bugger. Notes: svn path=/head/; revision=123951
2003-12-22Explain what all this is about.Greg Lehey
Notes: svn path=/head/; revision=123709
2003-11-04Add a "-f" flag for asf(8) which performs a search to find the each moduleBrian Feldman
no matter where in the directory structure it may be. Use this and the "-k" flag in the generated gdbinit files so that the "getsyms" function in gdb requires no user intervention to run and will find every module if they're in the kernel build's module directory. This is still quite useful for cases where gdb knows that the path for some modules is /boot/kernel and others are in the object directory for /usr/src/sys/$ARCH/compile/kernel. Approved by: grog Notes: svn path=/head/; revision=122033
2003-06-12Replace hard-coded module path with a keyword which gets changed whenGreg Lehey
the kernel is built. Notes: svn path=/head/; revision=116253
2003-06-08Make defproc work.Greg Lehey
Notes: svn path=/head/; revision=116008
2003-06-08Make btpp and fr work. There's still more to be done.Greg Lehey
Notes: svn path=/head/; revision=116007
2003-06-08Terminate echoed lines. Unlike echo(1), gdb echo doesen'tGreg Lehey
automatically terminate them. Notes: svn path=/head/; revision=116006
2003-06-07Get the manual section number for kldstat(8) right. Comment change only.Greg Lehey
Pointed out by: yar Notes: svn path=/head/; revision=115929
2003-06-07Modify startup mode: don't specify the file name for the debug kernel,Greg Lehey
so it needs to be (and can be) specified on the command line. Don't try to automatically connect to a remote machine, so that the same .gdbinit file can be used for analysing processor dumps. Notes: svn path=/head/; revision=115928
2003-06-07Add macros for kernel debugging. These have been around for aGreg Lehey
while, and they will need some more tuning before they're really useful, but at the moment they're better than nothing. Indirectly reminded by: dwhite Notes: svn path=/head/; revision=115926