llvm-project/lldb/packages/Python/lldbsuite/test/functionalities/breakpoint
Jim Ingham 738af7a624 Add the ability to pass extra args to a Python breakpoint callback.
For example, it is pretty easy to write a breakpoint command that implements "stop when my caller is Foo", and
    it is pretty easy to write a breakpoint command that implements "stop when my caller is Bar". But there's no
    way to write a generic "stop when my caller is..." function, and then specify the caller when you add the
    command to a breakpoint.

    With this patch, you can pass this data in a SBStructuredData dictionary. That will get stored in
    the PythonCommandBaton for the breakpoint, and passed to the implementation function (if it has the right
    signature) when the breakpoint is hit. Then in lldb, you can say:

    (lldb) break com add -F caller_is -k caller_name -v Foo

    More generally this will allow us to write reusable Python breakpoint commands.

    Differential Revision: https://reviews.llvm.org/D68671
2019-10-25 14:05:07 -07:00
..
address_breakpoints Canonicalize variable usage in testsuite Makefiles 2019-09-25 00:36:00 +00:00
auto_continue Canonicalize variable usage in testsuite Makefiles 2019-09-25 00:36:00 +00:00
breakpoint_by_line_and_column Canonicalize variable usage in testsuite Makefiles 2019-09-25 00:36:00 +00:00
breakpoint_command Add the ability to pass extra args to a Python breakpoint callback. 2019-10-25 14:05:07 -07:00
breakpoint_conditions Canonicalize variable usage in testsuite Makefiles 2019-09-25 00:36:00 +00:00
breakpoint_hit_count [lldb][NFC] Simplify makefiles also for breakpoint tests 2019-09-12 14:21:59 +00:00
breakpoint_ids Canonicalize variable usage in testsuite Makefiles 2019-09-25 00:36:00 +00:00
breakpoint_ignore_count [lldb][NFC] Simplify makefiles also for breakpoint tests 2019-09-12 14:21:59 +00:00
breakpoint_in_delayslot [lldb][NFC] Simplify makefiles also for breakpoint tests 2019-09-12 14:21:59 +00:00
breakpoint_language [lldb][NFC] Simplify makefiles also for breakpoint tests 2019-09-12 14:21:59 +00:00
breakpoint_locations Canonicalize variable usage in testsuite Makefiles 2019-09-25 00:36:00 +00:00
breakpoint_names [lldb][NFC] Simplify makefiles also for breakpoint tests 2019-09-12 14:21:59 +00:00
breakpoint_options [lldb][NFC] Simplify makefiles also for breakpoint tests 2019-09-12 14:21:59 +00:00
breakpoint_set_restart [lldb][NFC] Simplify makefiles also for breakpoint tests 2019-09-12 14:21:59 +00:00
comp_dir_symlink [lldb][NFC] Simplify makefiles also for breakpoint tests 2019-09-12 14:21:59 +00:00
consecutive_breakpoints Canonicalize variable usage in testsuite Makefiles 2019-09-25 00:36:00 +00:00
cpp Canonicalize variable usage in testsuite Makefiles 2019-09-25 00:36:00 +00:00
cpp_exception [lldb][NFC] Simplify makefiles also for breakpoint tests 2019-09-12 14:21:59 +00:00
debugbreak [lldb][NFC] Simplify makefiles also for breakpoint tests 2019-09-12 14:21:59 +00:00
dummy_target_breakpoints Canonicalize variable usage in testsuite Makefiles 2019-09-25 00:36:00 +00:00
global_constructor [lldb][NFC] Simplify makefiles also for breakpoint tests 2019-09-12 14:21:59 +00:00
hardware_breakpoints/hardware_breakpoint_on_multiple_threads [lldb][NFC] Simplify makefiles also for breakpoint tests 2019-09-12 14:21:59 +00:00
inlined_breakpoints [lldb][NFC] Simplify makefiles also for breakpoint tests 2019-09-12 14:21:59 +00:00
move_nearest [lldb][NFC] Simplify makefiles also for breakpoint tests 2019-09-12 14:21:59 +00:00
objc Canonicalize variable usage in testsuite Makefiles 2019-09-25 00:36:00 +00:00
require_hw_breakpoints Canonicalize variable usage in testsuite Makefiles 2019-09-25 00:36:00 +00:00
scripted_bkpt Break out the Python class & key/value options into a separate OptionGroup. 2019-10-03 22:18:51 +00:00
serialize Remove merge marker :-) 2019-10-10 18:30:47 +00:00
source_regexp [lldb][NFC] Simplify makefiles also for breakpoint tests 2019-09-12 14:21:59 +00:00
step_over_breakpoint Canonicalize variable usage in testsuite Makefiles 2019-09-25 00:36:00 +00:00