[Lldb-commits] [lldb] r259131 - Fix a bug where LLDB would not print the name of the function that a scripted summary is bound to

Zachary Turner via lldb-commits lldb-commits at lists.llvm.org
Fri Jan 29 01:13:00 PST 2016


On Thu, Jan 28, 2016 at 5:00 PM Enrico Granata via lldb-commits <
lldb-commits at lists.llvm.org> wrote:

>
> +        # This is the function to remove the custom formats in order to
> have a
> +        # clean slate for the next test case.
> +        def cleanup():
> +            self.runCmd('type category delete TSLSFormatters',
> check=False)
> +            self.runCmd('type format clear', check=False)
> +            self.runCmd('type summary clear', check=False)
> +            self.runCmd('type filter clear', check=False)
> +            self.runCmd('type synth clear', check=False)
> +
> +        self.addTearDownHook(cleanup)
>
Can this go in either the tearDown() function (i.e. analogue to setUp() or
in a try/finally block?  I'm planning to remove the teardownhook
functionality in the future because it fundamentally doesn't work so the
fewer we add the better.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20160129/aa33e312/attachment.html>


More information about the lldb-commits mailing list