[lldb-dev] [Bug 42895] Segfault on `p $0`

via lldb-dev lldb-dev at lists.llvm.org
Mon Aug 5 18:24:14 PDT 2019


https://bugs.llvm.org/show_bug.cgi?id=42895

Davide Italiano <davide at freebsd.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|teemperor at gmail.com         |lldb-dev at lists.llvm.org

--- Comment #3 from Davide Italiano <davide at freebsd.org> ---
(In reply to Jim Ingham from comment #1)
> $<NUM> is the space reserved in the expression parser for result variables. 
> I don't think it is a good idea to name your registers $0...  If you are
> going to do that, then you probably need to teach the
> ClangPersistentVariables to start above the numbers you've taken over for
> registers.  But I think it would be less confusing if you chose a prefix for
> registers ($r0 or whatever).

LLDB shouldn't segfault regardless. Raphael fixed a similar bug recently, as
newer C/C++ standards allow identifiers to start with dollar sign, e.g. $0.
So, this happens to be an incarnation of a larger problem.

Raphael, do you have ideas on how to fix this?

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20190806/7285357a/attachment.html>


More information about the lldb-dev mailing list