Commit Graph

15 Commits

Author SHA1 Message Date
Greg Lehey
a783ff949c Rename "msgbuf" to "dmesg", a more easily remembered name.
"Fix" documentation by removing periods and commas.
2003-12-31 00:37:24 +00:00
Greg Lehey
e1e5f8baf2 Remove calls to 'y' macro. 2003-12-30 02:08:29 +00:00
Greg Lehey
1cff4d0c1f Remove current implementation of kldstat macro.
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
2003-12-30 01:23:16 +00:00
Greg Lehey
410b51e72b Add documentation for previously undocumented macros, and correct
existing documentation.  This is not made any easier by the
brain-damaged format required for the documentation: one line, no full
stops or commas.
2003-12-29 06:38:27 +00:00
Greg Lehey
8454e168a9 Add documentation for previously undocumented macros. This is not
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.
2003-12-29 06:37:11 +00:00
Greg Lehey
747ca5f521 Add comments to deter people from using this file directly. That's
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.
2003-12-29 06:35:14 +00:00
Greg Lehey
0fa02ea5f7 Explain what all this is about. 2003-12-22 00:01:53 +00:00
Brian Feldman
afdc68c42f Add a "-f" flag for asf(8) which performs a search to find the each module
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
2003-11-04 06:38:37 +00:00
Greg Lehey
403de99214 Replace hard-coded module path with a keyword which gets changed when
the kernel is built.
2003-06-12 08:11:08 +00:00
Greg Lehey
36572f4867 Make defproc work. 2003-06-08 06:11:15 +00:00
Greg Lehey
3a40ab54ef Make btpp and fr work. There's still more to be done. 2003-06-08 06:10:45 +00:00
Greg Lehey
ec9e4dd1da Terminate echoed lines. Unlike echo(1), gdb echo doesen't
automatically terminate them.
2003-06-08 06:08:28 +00:00
Greg Lehey
fd23735366 Get the manual section number for kldstat(8) right. Comment change only.
Pointed out by:	yar
2003-06-07 01:17:04 +00:00
Greg Lehey
b38d4c0188 Modify startup mode: don't specify the file name for the debug kernel,
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.
2003-06-07 01:15:07 +00:00
Greg Lehey
030b9a7c93 Add macros for kernel debugging. These have been around for a
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
2003-06-07 01:01:42 +00:00