Skip to content

Commit bdf8c99

Browse files
[lldb] Fix typos in documentation (llvm#139839)
1 parent b4b5013 commit bdf8c99

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

lldb/docs/resources/build.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ Windows
100100
* The Active Template Library (ATL).
101101
* `GnuWin32 <http://gnuwin32.sourceforge.net/>`_ for CoreUtils and Make.
102102
* `Python 3 <https://www.python.org/downloads/windows/>`_. Make sure to (1) get
103-
the x64 variant if that's what you're targetting and (2) install the debug
103+
the x64 variant if that's what you're targeting and (2) install the debug
104104
library if you want to build a debug lldb. The standalone installer is the
105105
easiest way to get the debug library.
106106
* `Python Tools for Visual Studio

lldb/docs/resources/contributing.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ in a few ways. The 2 main ones are:
3939
* `Use of asserts <https://llvm.org/docs/CodingStandards.html#assert-liberally>`_:
4040
See the :ref:`section below<Error Handling>`.
4141

42-
For any other contradications, consider the
42+
For any other contradictions, consider the
4343
`golden rule <https://llvm.org/docs/CodingStandards.html#introduction>`_
4444
before choosing to update the style of existing code.
4545

lldb/docs/resources/debugging.rst

+8-8
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ The inferior will stop, you place the breakpoint and then ``continue``. Go back
130130
to the inferior and input the command that should trigger the breakpoint.
131131

132132
If you are running debugger and inferior in the same window, input ``ctrl+c``
133-
instead of ``process interrupt`` and then folllow the rest of the steps.
133+
instead of ``process interrupt`` and then follow the rest of the steps.
134134

135135
If you are doing this with ``lldb-server`` and find your breakpoint is never
136136
hit, check that you are breaking in code that is actually run by
@@ -187,7 +187,7 @@ predictable way, or change the prompt of one or both copies of ``lldb``.
187187
If you are debugging a scenario where the ``lldb-server`` starts in ``platform``
188188
mode, but you want to debug the ``gdbserver`` mode you'll have to work out what
189189
subprocess it's starting for the ``gdbserver`` part. One way is to look at the
190-
list of runninng processes and take the command line from there.
190+
list of running processes and take the command line from there.
191191

192192
In theory it should be possible to use LLDB's
193193
``target.process.follow-fork-mode`` or GDB's ``follow-fork-mode`` to
@@ -387,20 +387,20 @@ an issue or asking for help. This is simply inspiration.
387387
Reduction
388388
*********
389389

390-
The first step is to reduce uneeded compexity where it is cheap to do so. If
391-
something is easily removed or frozen to a cerain value, do so. The goal is to
390+
The first step is to reduce unneeded complexity where it is cheap to do so. If
391+
something is easily removed or frozen to a certain value, do so. The goal is to
392392
keep the failure mode the same, with fewer dependencies.
393393

394394
This includes, but is not limited to:
395395

396396
* Removing test cases that don't crash.
397397
* Replacing dynamic lookups with constant values.
398398
* Replace supporting functions with stubs that do nothing.
399-
* Moving the test case to less unqiue system. If your machine has an exotic
399+
* Moving the test case to less unique system. If your machine has an exotic
400400
extension, try it on a readily available commodity machine.
401401
* Removing irrelevant parts of the test program.
402402
* Reproducing the issue without using the LLDB test runner.
403-
* Converting a remote debuging scenario into a local one.
403+
* Converting a remote debugging scenario into a local one.
404404

405405
Now we hopefully have a smaller reproducer than we started with. Next we need to
406406
find out what components of the software stack might be failing.
@@ -578,14 +578,14 @@ Doing it this way instead of exactly copying what LLDB does will save a few
578578
ptrace calls. The AArch64 example program shows how to do this.
579579

580580
* The inferior contains ``BRK #0`` then ``NOP``.
581-
* 2 4 byte instructins means 8 bytes of data to replace, which matches the
581+
* 2 4-byte instructions means 8 bytes of data to replace, which matches the
582582
minimum size you can write with ``PTRACE_POKETEXT``.
583583
* The inferior runs to the ``BRK``, which brings us into the debugger.
584584
* The debugger reads ``PC`` and writes ``NOP`` then ``NOP`` to the location
585585
pointed to by ``PC``.
586586
* The debugger then single steps the inferior to the next instruction
587587
(this is not required in this specific scenario, you could just continue but
588-
it is included because this more cloesly matches what ``lldb`` does).
588+
it is included because this more closely matches what ``lldb`` does).
589589
* The debugger then continues the inferior.
590590
* The inferior exits, and the whole program exits.
591591

lldb/docs/resources/qemu-testing.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ certainly not forwarded. An example of this is shown below.
156156

157157
::
158158

159-
$ lldb-server plaform --server --listen 0.0.0.0:54321 --gdbserver-port 49140
159+
$ lldb-server platform --server --listen 0.0.0.0:54321 --gdbserver-port 49140
160160

161161
The result of this is that:
162162

lldb/docs/use/variable.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -961,7 +961,7 @@ printed one by one.
961961
[1] The `max_children` argument is optional (since lldb 3.8.0) and indicates the
962962
maximum number of children that lldb is interested in (at this moment). If the
963963
computation of the number of children is expensive (for example, requires
964-
travesing a linked list to determine its size) your implementation may return
964+
traversing a linked list to determine its size) your implementation may return
965965
`max_children` rather than the actual number. If the computation is cheap (e.g., the
966966
number is stored as a field of the object), then you can always return the true
967967
number of children (that is, ignore the `max_children` argument).

0 commit comments

Comments
 (0)