aboutsummaryrefslogtreecommitdiff
path: root/tools/debugscripts
Commit message (Collapse)AuthorAgeFilesLines
* Remove $FreeBSD$: one-line bare tagWarner Losh2023-08-161-1/+0
| | | | Remove /^\s*\$FreeBSD\$$\n/
* Remove $FreeBSD$: one-line sh patternWarner Losh2023-08-164-4/+0
| | | | Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
* since kld_deb.py was removed a while back, this script isn't usefulJohn-Mark Gurney2020-08-111-67/+0
| | | | | | | anymore... Notes: svn path=/head/; revision=364132
* Enhance the 'ps' command so that it prints a line per proc and a lineGleb Smirnoff2019-09-251-12/+13
| | | | | | | | | | per thread, so that instead of repeating the same info for all threads in proc, it would print thread specific info. Also includes thread number that would match 'info threads' info and can be used as argument for thread swithcing with 'thread' command. Notes: svn path=/head/; revision=352702
* remove obsolete kernel debugging scriptEd Maste2019-08-011-143/+0
| | | | | | | | | | | | | For quite some time kgdb has been internally handling FreeBSD kernel module state; add-on scripts and tools are not needed. asf(8) served a similar purpose to this script and was removed in r335222. PR: 229046 Reported by: jhb Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=350506
* Assorted grammar, spelling and punctuation fixes.Christian Brueffer2015-12-151-3/+3
| | | | | | | | | PR: 203336, 203339 Submitted by: espeyb@rpi.edu, themesta@gmail.com MFC after: 1 week Notes: svn path=/head/; revision=292263
* Use print as a function for Python 3 [PEP 3105]Craig Rodrigues2015-11-191-3/+4
| | | | | | | | | | | Import print_function from the __future__ module to activate this for Python 2. This works as far back as Python 2.6.0a2: https://docs.python.org/2/library/__future__.html [PEP 3105] https://www.python.org/dev/peps/pep-3105/ Notes: svn path=/head/; revision=291041
* Remove debugging code that sneaked in.Gleb Smirnoff2015-04-091-10/+0
| | | | Notes: svn path=/head/; revision=281292
* Provide a gdb script, that prints routing tables from a live kernel or aGleb Smirnoff2015-04-091-0/+173
| | | | | | | | | | | | | core file, much like 'netstat -anr' does it for living kernel. Right now only AF_INET routing table is printed. AF_INET6 needs to be done. But the most difficult part of the script (recursion!) is complete. Sponsored by: Nginx, Inc. Notes: svn path=/head/; revision=281290
* A number of places in the source tree still reference cuad.* afterEitan Adler2012-12-081-7/+7
| | | | | | | | | | | | | | sio(4) was deprecated by uart(4). s/cuad/cuau/g/ PR: docs/171533 Reviewed by: imp Approved by: cperciva (implicit) MFC after: 3 weeks Notes: svn path=/head/; revision=244040
* Spelling fixes for tools/Ulrich Spörlein2011-12-302-4/+4
| | | | | | | Add some $FreeBSD$ tags so svn will allow the commit. Notes: svn path=/head/; revision=228975
* Fix a couple of typos.Ulrich Spörlein2010-07-301-2/+2
| | | | | | | | | PR: docs/148891 Submitted by: olgeni MFC after: 1 week Notes: svn path=/head/; revision=210641
* o Correct comments: remove a reference to non-existent gdbinit.9 man page;Maxim Konovalov2006-05-221-3/+2
| | | | | | | | | | 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
* I forgot to commit this fix that is now kgdb aware...John-Mark Gurney2005-03-202-4/+5
| | | | Notes: svn path=/head/; revision=143864
* Remove the uarea column from the DDB 'ps' display, and from grog's gdbDavid Schultz2004-11-202-6/+6
| | | | | | | | | scripts. Reviewed by: arch@ Notes: svn path=/head/; revision=137923
* Catch up with PHK's sio(4) cuaa->cuad rework [sys/dev/sio/sio.c rev. 1.456].David E. O'Brien2004-11-191-7/+7
| | | | Notes: svn path=/head/; revision=137882
* Remove vinum bits.Poul-Henning Kamp2004-11-042-330/+0
| | | | Notes: svn path=/head/; revision=137206
* add a set of scripts that I posted to -current last year. This makesJohn-Mark Gurney2004-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. Notes: svn path=/head/; revision=133123
* Rename "msgbuf" to "dmesg", a more easily remembered name.Greg Lehey2003-12-311-4/+4
| | | | | | | "Fix" documentation by removing periods and commas. Notes: svn path=/head/; revision=124009
* Remove calls to 'y' macro.Greg Lehey2003-12-303-6/+0
| | | | Notes: svn path=/head/; revision=123983
* Remove current implementation of kldstat macro.Greg Lehey2003-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 Notes: svn path=/head/; revision=123979
* Add documentation for previously undocumented macros, and correctGreg Lehey2003-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. Notes: svn path=/head/; revision=123953
* Add documentation for previously undocumented macros. This is notGreg Lehey2003-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. Notes: svn path=/head/; revision=123952
* Add comments to deter people from using this file directly. That'sGreg Lehey2003-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. Notes: svn path=/head/; revision=123951
* Explain what all this is about.Greg Lehey2003-12-221-0/+16
| | | | Notes: svn path=/head/; revision=123709
* Add a "-f" flag for asf(8) which performs a search to find the each moduleBrian Feldman2003-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 Notes: svn path=/head/; revision=122033
* Replace hard-coded module path with a keyword which gets changed whenGreg Lehey2003-06-121-1/+1
| | | | | | | the kernel is built. Notes: svn path=/head/; revision=116253
* Make defproc work.Greg Lehey2003-06-081-14/+18
| | | | Notes: svn path=/head/; revision=116008
* Make btpp and fr work. There's still more to be done.Greg Lehey2003-06-081-28/+20
| | | | Notes: svn path=/head/; revision=116007
* Terminate echoed lines. Unlike echo(1), gdb echo doesen'tGreg Lehey2003-06-081-2/+2
| | | | | | | automatically terminate them. Notes: svn path=/head/; revision=116006
* Get the manual section number for kldstat(8) right. Comment change only.Greg Lehey2003-06-071-2/+2
| | | | | | | Pointed out by: yar Notes: svn path=/head/; revision=115929
* Modify startup mode: don't specify the file name for the debug kernel,Greg Lehey2003-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. Notes: svn path=/head/; revision=115928
* Add macros for kernel debugging. These have been around for aGreg Lehey2003-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 Notes: svn path=/head/; revision=115926