<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:davide@freebsd.org" title="Davide Italiano <davide@freebsd.org>"> <span class="fn">Davide Italiano</span></a>
</span> changed
<a class="bz_bug_link
bz_status_NEW "
title="NEW - Segfault on `p $0`"
href="https://bugs.llvm.org/show_bug.cgi?id=42895">bug 42895</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Assignee</td>
<td>teemperor@gmail.com
</td>
<td>lldb-dev@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Segfault on `p $0`"
href="https://bugs.llvm.org/show_bug.cgi?id=42895#c3">Comment # 3</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Segfault on `p $0`"
href="https://bugs.llvm.org/show_bug.cgi?id=42895">bug 42895</a>
from <span class="vcard"><a class="email" href="mailto:davide@freebsd.org" title="Davide Italiano <davide@freebsd.org>"> <span class="fn">Davide Italiano</span></a>
</span></b>
<pre>(In reply to Jim Ingham from <a href="show_bug.cgi?id=42895#c1">comment #1</a>)
<span class="quote">> $<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).</span >
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?</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>