@@ -130,7 +130,7 @@ The inferior will stop, you place the breakpoint and then ``continue``. Go back
130
130
to the inferior and input the command that should trigger the breakpoint.
131
131
132
132
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.
134
134
135
135
If you are doing this with ``lldb-server `` and find your breakpoint is never
136
136
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``.
187
187
If you are debugging a scenario where the ``lldb-server `` starts in ``platform ``
188
188
mode, but you want to debug the ``gdbserver `` mode you'll have to work out what
189
189
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.
191
191
192
192
In theory it should be possible to use LLDB's
193
193
``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.
387
387
Reduction
388
388
*********
389
389
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
392
392
keep the failure mode the same, with fewer dependencies.
393
393
394
394
This includes, but is not limited to:
395
395
396
396
* Removing test cases that don't crash.
397
397
* Replacing dynamic lookups with constant values.
398
398
* 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
400
400
extension, try it on a readily available commodity machine.
401
401
* Removing irrelevant parts of the test program.
402
402
* 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.
404
404
405
405
Now we hopefully have a smaller reproducer than we started with. Next we need to
406
406
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
578
578
ptrace calls. The AArch64 example program shows how to do this.
579
579
580
580
* 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
582
582
minimum size you can write with ``PTRACE_POKETEXT ``.
583
583
* The inferior runs to the ``BRK ``, which brings us into the debugger.
584
584
* The debugger reads ``PC `` and writes ``NOP `` then ``NOP `` to the location
585
585
pointed to by ``PC ``.
586
586
* The debugger then single steps the inferior to the next instruction
587
587
(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).
589
589
* The debugger then continues the inferior.
590
590
* The inferior exits, and the whole program exits.
591
591
0 commit comments