Lines Matching refs:kdb

2 Using kgdb, kdb and the kernel debugger internals
10 The kernel has two different debugger front ends (kdb and kgdb) which
46 - In order to enable compilation of kdb, you must first enable kgdb.
92 Kernel config options for kdb
99 ``lsmod``, or ``ps``. In order to build kdb into the kernel you follow the
102 The main config option for kdb is ``CONFIG_KGDB_KDB`` which is called
103 :menuselection:`KGDB_KDB: include kdb frontend for kgdb` in the config menu.
105 ``CONFIG_KGDB_SERIAL_CONSOLE`` interface if you plan on using kdb on a
108 If you want to use a PS/2-style keyboard with kdb, you would select
112 option only works with kdb.
114 Here is an example set of ``.config`` symbols to enable/disable kdb::
128 using kdb and kgdb as well as providing some examples of the
137 to interact with the kdb shell.
154 with kdb while allowing the full graphics console applications to run.
173 depending on if you are using kdb and/or kgdb, in one of the following
224 depending on if you are using kdb and/or kgdb, in one of the following
227 1. kdb and kgdb over only a serial port::
235 2. kdb and kgdb with keyboard and a serial port::
243 3. kdb with a keyboard::
247 4. kdb with kernel mode setting::
251 5. kdb with kernel mode setting and kgdb over a serial port::
383 Using kdb
386 Quick start for kdb on a serial port
389 This is a quick example of how to use kdb.
424 3. From the kdb prompt you can run the ``help`` command to see a complete
427 Some useful commands in kdb include:
439 4. When you are done using kdb you need to consider rebooting the system
446 Quick start for kdb using a keyboard connected console
449 This is a quick example of how to use kdb with a keyboard.
494 3. Now type in a kdb command such as ``help``, ``dmesg``, ``bt`` or ``go`` to
585 kgdb and kdb interoperability
588 It is possible to transition between kdb and kgdb dynamically. The debug
592 Switching between kdb and kgdb
595 Switching from kgdb to kdb
598 There are two ways to switch from kgdb to kdb: you can use gdb to issue
605 1. Change from kgdb to kdb by blindly typing::
609 2. Change from kgdb to kdb with gdb::
620 Change from kdb to kgdb
623 There are two ways you can change from kdb to kgdb. You can manually
624 enter kgdb mode by issuing the kgdb command from the kdb shell prompt,
625 or you can connect gdb while the kdb shell prompt is active. The kdb
630 1. From kdb issue the command::
636 2. At the kdb prompt, disconnect the terminal program and connect gdb in
639 Running kdb commands from gdb
642 It is possible to run a limited set of kdb commands from gdb, using the
648 information commands. To see all the kdb commands you can run
710 - The API to invoke either the kdb or kgdb frontend to the debug
745 4. kdb frontend
747 The kdb debugger shell is broken down into a number of components.
748 The kdb core is located in kernel/debug/kdb. There are a number of
750 possible for kdb to examine and report information about the kernel
751 without taking locks that could cause a kernel deadlock. The kdb core
756 - The kdb core command set
758 - A registration API to register additional kdb shell commands.
760 - A good example of a self-contained kdb module is the ``ftdump``
764 - For an example of how to dynamically register a new kdb command
766 ``samples/kdb/kdb_hello.c``. To build this example you can set
769 enter the kdb shell, you can run the ``hello`` command.
774 - SW / HW breakpoint management for the kdb shell
937 In Jan 2010 this document was updated to include kdb.