<div dir="ltr">Or use po<div><br></div><div>
<p class=""><span class=""><b>(lldb) </b></span><b>p (char *)object_getClassName($eax)</b></p>
<p class="">(char *) $4 = 0x020255e8 "__NSCFConstantString"</p>
<p class=""><span class=""><b>(lldb) </b></span><b>po $eax</b></p>
<p class="">abc</p></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jan 2, 2014 at 11:14 AM, Greg Clayton <span dir="ltr"><<a href="mailto:gclayton@apple.com" target="_blank">gclayton@apple.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Yes, it is possible. In the expression parser, all registers are available if you prepend the register name with '$'. So as Enrico already suggested, you can do:<br>
<br>
(lldb) expr (NSString *)$rdx<br>
<div class="HOEnZb"><div class="h5"><br>
On Nov 28, 2013, at 2:43 PM, Vincent R. <<a href="mailto:forumer@smartmobili.com">forumer@smartmobili.com</a>> wrote:<br>
<br>
> Hi,<br>
><br>
> I am using xcode5 to debug an application and I would like to know the NSstring value stored inside the %rdx register.<br>
> Is it possible to do that ?<br>
><br>
> Thanks<br>
> _______________________________________________<br>
> lldb-dev mailing list<br>
> <a href="mailto:lldb-dev@cs.uiuc.edu">lldb-dev@cs.uiuc.edu</a><br>
> <a href="http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev</a><br>
<br>
_______________________________________________<br>
lldb-dev mailing list<br>
<a href="mailto:lldb-dev@cs.uiuc.edu">lldb-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev</a><br>
</div></div></blockquote></div><br></div>