From 54f202731dd1b39b5c0bc442efece4b6b743eae3 Mon Sep 17 00:00:00 2001 From: hakril Date: Wed, 11 Mar 2020 18:06:23 +0100 Subject: [PATCH] Added sample + link from debug.rst for FunctionCallBP --- docs/source/debug.rst | 10 +++++++++- docs/source/sample.rst | 14 ++++++++++++++ .../debug_change_function_ret_value.txt | 4 ++++ 3 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 docs/source/samples_output/debug_change_function_ret_value.txt diff --git a/docs/source/debug.rst b/docs/source/debug.rst index fe7953e..642b635 100644 --- a/docs/source/debug.rst +++ b/docs/source/debug.rst @@ -88,7 +88,15 @@ When a breakpoint is hit, its ``trigger`` function is called with the debugger a :inherited-members: :special-members: __init__ +.. note:: + + See sample :ref:`sample_debugger_bp_functioncallbp` + .. autoclass:: FunctionBP :members: :inherited-members: - :special-members: __init__ \ No newline at end of file + :special-members: __init__ + +.. note:: + + See sample :ref:`sample_debugger_bp_functionbp` \ No newline at end of file diff --git a/docs/source/sample.rst b/docs/source/sample.rst index 5b6a587..dd411cc 100644 --- a/docs/source/sample.rst +++ b/docs/source/sample.rst @@ -261,6 +261,20 @@ Output .. literalinclude:: samples_output\debug_debugger_membp_singlestep.txt + +.. _sample_debugger_bp_functioncallbp: + +:class:`windows.debug.FunctionCallBP` +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +.. literalinclude:: ..\..\samples\debug\change_function_ret_value.py + +Output + +.. literalinclude:: samples_output\debug_change_function_ret_value.txt + +.. _sample_debugger_bp_functionbp: + :class:`windows.debug.FunctionBP` ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/docs/source/samples_output/debug_change_function_ret_value.txt b/docs/source/samples_output/debug_change_function_ret_value.txt new file mode 100644 index 0000000..587a538 --- /dev/null +++ b/docs/source/samples_output/debug_change_function_ret_value.txt @@ -0,0 +1,4 @@ +(cmd) python debug\change_function_ret_value.py +[DEBUGGE] IsDebuggerPresent=42 +[DEBUGGE] IsDebuggerPresent=43 +[DEBUGGE] IsDebuggerPresent=44