<div dir="ltr">Hi Pavel,<div><br></div><div>Will is trying to get this working downstream of here IIRC.</div><div><br></div><div>Greg, can you have a look and see what you think of the patch?  (Also see Pavel's comments).</div><div><br></div><div>Thanks!</div><div><br></div><div>-Todd</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 27, 2016 at 1:28 AM, Omair Javaid via lldb-dev <span dir="ltr"><<a href="mailto:lldb-dev@lists.llvm.org" target="_blank">lldb-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Will,<br>
<br>
I dont understand REPL and thus the benefits it will have by making<br>
change to architecture name. I would not recommend to drop any<br>
information that we get from the host operating system.<br>
<br>
LLDB maintains core information alongwith triple in ArchSpec, may be<br>
you can parse triple to reflect correct core and use core instead of<br>
architecture name where needed.<br>
<br>
Kindly elaborate in a bit detail what are we getting out of this<br>
change for more accurate comments.<br>
<br>
Thanks!<br>
<div class="HOEnZb"><div class="h5"><br>
On 26 January 2016 at 14:47, Pavel Labath <<a href="mailto:labath@google.com">labath@google.com</a>> wrote:<br>
> + Omair<br>
><br>
> I don't really understand arm (sub)-architectures or REPL. The patch<br>
> seems mostly harmless, but it also feels like a hack to me. A couple<br>
> of questions:<br>
> - why does this only pose a problem for REPL?<br>
> - If I understand correctly, the problem is that someone is looking at<br>
> the architecture string contained in the Triple, and not finding what<br>
> it expects. Is that so? Could you point me to (some of) the places<br>
> that do that.<br>
><br>
> Omair, any thoughts on this?<br>
><br>
> cheers,<br>
> pl<br>
><br>
><br>
> On 25 January 2016 at 18:55, Hans Wennborg <<a href="mailto:hans@chromium.org">hans@chromium.org</a>> wrote:<br>
>> This patch looks reasonable to me, but I don't know enough about LLDB<br>
>> to actually review it.<br>
>><br>
>> +Renato or Pavel maybe?<br>
>><br>
>> On Thu, Jan 14, 2016 at 11:32 AM, William Dillon via lldb-dev<br>
>> <<a href="mailto:lldb-dev@lists.llvm.org">lldb-dev@lists.llvm.org</a>> wrote:<br>
>>> Hi again, everyone<br>
>>><br>
>>> I’d like to ping on this patch now that the 3.8 branch is fairly new, and merging it over is fairly straight-forward.<br>
>>><br>
>>> Thanks in advance for your comments!<br>
>>> - Will<br>
>>><br>
>>>> There is a small change that enables correct calculation of arm sub architectures while using the REPL on arm-linux.  As you may of may or may not know, linux appends ‘l’ to arm architecture versions to denote little endian.  This sometimes interferes with the determination of the architecture in the triple.  I experimented with adding sub architecture entries for these within lldb, but I discovered a simpler (and less invasive) method.  Because LLVM already knows how to handle some of these cases (I have a patch submitted for review that enables v6l; v7l already works), I am relying on llvm to clean it up.  The gist of it is that the llvm constructor (when given a triple string) retains the provided string unless an accessor mutates it.  Meanwhile, the accessors for the components go through the aliasing and parsing logic.  This code detects whether the sub-architecture that armv6l or armv7l aliases to is detected, and re-sets the architecture in the triple.  This overwrites the architecture that comes from linux, thus sanitizing it.<br>
>>>><br>
>>>> Some kind of solution is required for the REPL to work on arm-linux.  Without it, the REPL crashes.<br>
_______________________________________________<br>
lldb-dev mailing list<br>
<a href="mailto:lldb-dev@lists.llvm.org">lldb-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">-Todd</div></div>
</div>