[Lldb-commits] [PATCH] D41427: [lldb] Fix crash when parsing the type of a function without any arguments

Zachary Turner via lldb-commits lldb-commits at lists.llvm.org
Thu Dec 21 15:25:27 PST 2017


lldb-test doesn’t actually exercise any of this. It’s a pretty new addition
and doesn’t even support pdb yet as far as I know. So when you say it fails
without the other changes, but passes with this, I think you must be
talking about some test that runs via check-lldb, or some unittest.

To be clear, I’m talking about the executable lldb-test.exe, which was
recently introduced as a way to run FileCheck tests. I was thinking you
could add a flag to it and call it as

lldb-test.exe symbol -functions foo.exe

And have it just print function signatures and FileCheck the output for a
function you’ve written that takes no arguments. That should crash without
this patch but succeed with this patch alone right?

Since lldb-test is a tool whose sole purpose is printing stuff for testing
purposes, the format isn’t too important, the important thing is just that
it provides a really easy avenue for exercising this code.

LMK if this makes sense
On Thu, Dec 21, 2017 at 1:53 PM Aaron Smith via Phabricator <
reviews at reviews.llvm.org> wrote:

> asmith added a comment.
>
> This fix is part of a larger set of changes to retrieve the type for a
> function signature and I don't see how to test for this without those
> changes. With all the other changes, lldb-test fails without this fix and
> passes with it. So it's implicitly already tested.
>
>
> Repository:
>   rL LLVM
>
> https://reviews.llvm.org/D41427
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20171221/1a870dfa/attachment.html>


More information about the lldb-commits mailing list