================ @@ -0,0 +1,38 @@ +# DExTer : Debugging Experience Tester +# ~~~~~~ ~ ~~ ~ ~~ +# +# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +# See https://llvm.org/LICENSE.txt for license information. +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +"""A Command that tells dexter to set a function breakpoint and step through +the function after hitting it. + +NOTE: Only supported for DAP based debuggers. +""" + +from dex.command.CommandBase import CommandBase + + +class DexStepFunction(CommandBase): + def __init__(self, *args, **kwargs): + if len(args) < 1: + raise TypeError("expected 1 positional argument") + self.expression = str(args[0]) # Function name. ---------------- SLTozer wrote:
Maybe name this `self.function` instead? https://github.com/llvm/llvm-project/pull/152720 _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits