summaryrefslogtreecommitdiffstats
path: root/tools/debugscripts
Commit message (Collapse)AuthorAgeFilesLines
* o Correct comments: remove a reference to non-existent gdbinit.9 man page;maxim2006-05-221-3/+2
| | | | | | | correct a path to the kernel build directory; gdb lost -k key. Reviewed by: grog MFC after: 1 week
* I forgot to commit this fix that is now kgdb aware...jmg2005-03-202-4/+5
|
* Remove the uarea column from the DDB 'ps' display, and from grog's gdbdas2004-11-202-6/+6
| | | | | | scripts. Reviewed by: arch@
* Catch up with PHK's sio(4) cuaa->cuad rework [sys/dev/sio/sio.c rev. 1.456].obrien2004-11-191-7/+7
|
* Remove vinum bits.phk2004-11-042-330/+0
|
* add a set of scripts that I posted to -current last year. This makesjmg2004-08-043-0/+213
| | | | | | | | | | 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.
* Rename "msgbuf" to "dmesg", a more easily remembered name.grog2003-12-311-4/+4
| | | | "Fix" documentation by removing periods and commas.
* Remove calls to 'y' macro.grog2003-12-303-6/+0
|
* Remove current implementation of kldstat macro.grog2003-12-301-18/+39
| | | | | | | | | | 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
* Add documentation for previously undocumented macros, and correctgrog2003-12-291-13/+20
| | | | | | existing documentation. This is not made any easier by the brain-damaged format required for the documentation: one line, no full stops or commas.
* Add documentation for previously undocumented macros. This is notgrog2003-12-291-16/+13
| | | | | | | 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.
* Add comments to deter people from using this file directly. That'sgrog2003-12-291-16/+96
| | | | | | | | | | | | | | | | | | | | | 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.
* Explain what all this is about.grog2003-12-221-0/+16
|
* Add a "-f" flag for asf(8) which performs a search to find the each modulegreen2003-11-041-4/+1
| | | | | | | | | | | 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
* Replace hard-coded module path with a keyword which gets changed whengrog2003-06-121-1/+1
| | | | the kernel is built.
* Make defproc work.grog2003-06-081-14/+18
|
* Make btpp and fr work. There's still more to be done.grog2003-06-081-28/+20
|
* Terminate echoed lines. Unlike echo(1), gdb echo doesen'tgrog2003-06-081-2/+2
| | | | automatically terminate them.
* Get the manual section number for kldstat(8) right. Comment change only.grog2003-06-071-2/+2
| | | | Pointed out by: yar
* Modify startup mode: don't specify the file name for the debug kernel,grog2003-06-071-5/+3
| | | | | | 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.
* Add macros for kernel debugging. These have been around for agrog2003-06-074-0/+1104
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
OpenPOWER on IntegriCloud