Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions lldb/docs/use/map.rst
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,40 @@ Do a source level single step in the currently selected thread
(lldb) step
(lldb) s

Ignore a function when doing a source level single step in
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. code-block:: shell

(gdb) skip abc
Function abc will be skipped when stepping.

.. code-block:: shell

(lldb) settings show target.process.thread.step-avoid-regexp
target.process.thread.step-avoid-regexp (regex) = ^std::
(lldb) settings set target.process.thread.step-avoid-regexp (^std::)|(^abc)

Get the default value, make it into a capture group, then add another capture
group for the new function name.

You can ignore a function once using:

.. code-block:: shell

(lldb) thread step-in -r ^abc

Or you can do the opposite, only step into functions with a certain name:

.. code-block:: shell

(lldb) sif abc
# Which is equivalent to:
(lldb) thread step-in -t abc

``thread step-in`` has more options which cover some of ``skip``'s other
features. See ``help thread step-in`` for details.

Do a source level single step over in the currently selected thread
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Expand Down
Loading