Skip to content

Commit

Permalink
Documentation: move dev-tools debugging files to process/debugging/
Browse files Browse the repository at this point in the history
Move gdb and kgdb debugging documentation to the dedicated
debugging directory (Documentation/process/debugging/).
Adjust the index.rst files to follow the file movement.
Adjust files that refer to these moved files to follow the file movement.
Update location of kgdb.rst in MAINTAINERS file.
Add a link from dev-tools/index to process/debugging/index.

Note: translations are not updated.

Signed-off-by: Randy Dunlap <[email protected]>
Cc: Sebastian Fricke <[email protected]>
Cc: Jonathan Corbet <[email protected]>
Cc: [email protected]
Cc: Jason Wessel <[email protected]>
Cc: Daniel Thompson <[email protected]>
Cc: Douglas Anderson <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: Doug Anderson <[email protected]>
Cc: Alex Shi <[email protected]>
Cc: Hu Haowen <[email protected]>
Cc: Andrew Morton <[email protected]>
Cc: Greg Kroah-Hartman <[email protected]>
Cc: [email protected]
Acked-by: Greg Kroah-Hartman <[email protected]>
Acked-by: Daniel Thompson <[email protected]>
Reviewed-by: Douglas Anderson <[email protected]>
Signed-off-by: Jonathan Corbet <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
  • Loading branch information
rddunlap authored and Jonathan Corbet committed Dec 17, 2024
1 parent 270beb5 commit d5af79c
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Documentation/admin-guide/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -356,5 +356,5 @@ instructions at 'Documentation/admin-guide/reporting-issues.rst'.

Hints on understanding kernel bug reports are in
'Documentation/admin-guide/bug-hunting.rst'. More on debugging the kernel
with gdb is in 'Documentation/dev-tools/gdb-kernel-debugging.rst' and
'Documentation/dev-tools/kgdb.rst'.
with gdb is in 'Documentation/process/debugging/gdb-kernel-debugging.rst' and
'Documentation/process/debugging/kgdb.rst'.
5 changes: 3 additions & 2 deletions Documentation/dev-tools/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ whole; patches welcome!
A brief overview of testing-specific tools can be found in
Documentation/dev-tools/testing-overview.rst

Tools that are specific to debugging can be found in
Documentation/process/debugging/index.rst

.. toctree::
:caption: Table of contents
:maxdepth: 2
Expand All @@ -27,8 +30,6 @@ Documentation/dev-tools/testing-overview.rst
kmemleak
kcsan
kfence
gdb-kernel-debugging
kgdb
kselftest
kunit/index
ktap
Expand Down
2 changes: 2 additions & 0 deletions Documentation/process/debugging/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ general guides
:maxdepth: 1

driver_development_debugging_guide
gdb-kernel-debugging
kgdb
userspace_debugging_guide

.. only:: subproject and html
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -12811,7 +12811,7 @@ L: [email protected]
S: Maintained
W: http://kgdb.wiki.kernel.org/
T: git git://git.kernel.org/pub/scm/linux/kernel/git/jwessel/kgdb.git
F: Documentation/dev-tools/kgdb.rst
F: Documentation/process/debugging/kgdb.rst
F: drivers/misc/kgdbts.c
F: drivers/tty/serial/kgdboc.c
F: include/linux/kdb.h
Expand Down
2 changes: 1 addition & 1 deletion include/linux/tty_driver.h
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ struct serial_struct;
*
* @poll_init: ``int ()(struct tty_driver *driver, int line, char *options)``
*
* kgdboc support (Documentation/dev-tools/kgdb.rst). This routine is
* kgdboc support (Documentation/process/debugging/kgdb.rst). This routine is
* called to initialize the HW for later use by calling @poll_get_char or
* @poll_put_char.
*
Expand Down
2 changes: 1 addition & 1 deletion lib/Kconfig.debug
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ config GDB_SCRIPTS
build directory. If you load vmlinux into gdb, the helper
scripts will be automatically imported by gdb as well, and
additional functions are available to analyze a Linux kernel
instance. See Documentation/dev-tools/gdb-kernel-debugging.rst
instance. See Documentation/process/debugging/gdb-kernel-debugging.rst
for further details.

endif # DEBUG_INFO
Expand Down
2 changes: 1 addition & 1 deletion lib/Kconfig.kgdb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ menuconfig KGDB
CONFIG_FRAME_POINTER to aid in producing more reliable stack
backtraces in the external debugger. Documentation of
kernel debugger is available at http://kgdb.sourceforge.net
as well as in Documentation/dev-tools/kgdb.rst. If
as well as in Documentation/process/debugging/kgdb.rst. If
unsure, say N.

if KGDB
Expand Down

0 comments on commit d5af79c

Please sign in to comment.