Skip to content

Commit

Permalink
Un-indent the section on 'Writing Target Stop-Hooks in Python'
Browse files Browse the repository at this point in the history
it was ending up in a code block from the previous section,
instead of being its own section.
  • Loading branch information
jasonmolenda committed Oct 17, 2020
1 parent 62a0ec1 commit 32021ee
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions lldb/docs/use/python-reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -820,18 +820,18 @@ When the program is stopped at the beginning of the 'read' function in libc, we
(lldb) frame variable
(int) fd = 3

Writing Target Stop-Hooks in Python:
------------------------------------

Stop hooks fire whenever the process stops just before control is returned to the
user. Stop hooks can either be a set of lldb command-line commands, or can
be implemented by a suitably defined Python class. The Python based stop-hooks
can also be passed as set of -key -value pairs when they are added, and those
will get packaged up into a SBStructuredData Dictionary and passed to the
constructor of the Python object managing the stop hook. This allows for
parametrization of the stop hooks.

To add a Python-based stop hook, first define a class with the following methods:
Writing Target Stop-Hooks in Python:
------------------------------------

Stop hooks fire whenever the process stops just before control is returned to the
user. Stop hooks can either be a set of lldb command-line commands, or can
be implemented by a suitably defined Python class. The Python based stop-hooks
can also be passed as set of -key -value pairs when they are added, and those
will get packaged up into a SBStructuredData Dictionary and passed to the
constructor of the Python object managing the stop hook. This allows for
parametrization of the stop hooks.

To add a Python-based stop hook, first define a class with the following methods:

+--------------------+---------------------------------------+------------------------------------------------------------------------------------------------------------------+
| Name | Arguments | Description |
Expand Down

0 comments on commit 32021ee

Please sign in to comment.