Skip to content

Commit 6fde438

Browse files
nir9Jonathan Corbet
authored andcommitted
Documentation: English fixes in kgdb/kdb article
Minor grammar and typos fixed in the kgdb/kdb article Signed-off-by: Nir Lichtman <[email protected]> Reviewed-by: Douglas Anderson <[email protected]> Signed-off-by: Jonathan Corbet <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent ca26a0a commit 6fde438

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

Documentation/dev-tools/kgdb.rst

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,11 @@ supports it for the architecture you are using, you can use hardware
7575
breakpoints if you desire to run with the ``CONFIG_STRICT_KERNEL_RWX``
7676
option turned on, else you need to turn off this option.
7777

78-
Next you should choose one of more I/O drivers to interconnect debugging
78+
Next you should choose one or more I/O drivers to interconnect the debugging
7979
host and debugged target. Early boot debugging requires a KGDB I/O
8080
driver that supports early debugging and the driver must be built into
8181
the kernel directly. Kgdb I/O driver configuration takes place via
82-
kernel or module parameters which you can learn more about in the in the
82+
kernel or module parameters which you can learn more about in the
8383
section that describes the parameter kgdboc.
8484

8585
Here is an example set of ``.config`` symbols to enable or disable for kgdb::
@@ -201,8 +201,8 @@ Using loadable module or built-in
201201
Configure kgdboc at runtime with sysfs
202202
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
203203

204-
At run time you can enable or disable kgdboc by echoing a parameters
205-
into the sysfs. Here are two examples:
204+
At run time you can enable or disable kgdboc by writing parameters
205+
into sysfs. Here are two examples:
206206

207207
1. Enable kgdboc on ttyS0::
208208

@@ -374,10 +374,10 @@ default behavior is always set to 0.
374374
Kernel parameter: ``nokaslr``
375375
-----------------------------
376376

377-
If the architecture that you are using enable KASLR by default,
377+
If the architecture that you are using enables KASLR by default,
378378
you should consider turning it off. KASLR randomizes the
379-
virtual address where the kernel image is mapped and confuse
380-
gdb which resolve kernel symbol address from symbol table
379+
virtual address where the kernel image is mapped and confuses
380+
gdb which resolves addresses of kernel symbols from the symbol table
381381
of vmlinux.
382382

383383
Using kdb
@@ -631,8 +631,6 @@ automatically changes into kgdb mode.
631631

632632
kgdb
633633

634-
Now disconnect your terminal program and connect gdb in its place
635-
636634
2. At the kdb prompt, disconnect the terminal program and connect gdb in
637635
its place.
638636

@@ -749,7 +747,7 @@ The kernel debugger is organized into a number of components:
749747
helper functions in some of the other kernel components to make it
750748
possible for kdb to examine and report information about the kernel
751749
without taking locks that could cause a kernel deadlock. The kdb core
752-
contains implements the following functionality.
750+
implements the following functionality.
753751

754752
- A simple shell
755753

0 commit comments

Comments
 (0)