Question

I'm attempting to debug some code (in assembly view), and all I see are character arrays when I expand the xmm registers. Is there a way to view them in a more user-friendly way?

Thanks to the answer below, I came up with the following so as to not go crazy:

expr (void)printf("xmm0: %f\n xmm1: %f\n xmm2: %f\n xmm3: %f\n xmm4: %f\n xmm5: %f\n xmm6: %f\n xmm7: %f\n xmm8: %f\n",$xmm0, $xmm1, $xmm2, $xmm3, $xmm4, $xmm5, $xmm6, $xmm7, $xmm8)
Was it helpful?

Solution

I think part of the problem was running the iOS simulator as 32-bit rather than 64-bit. If I right click on expressions, "Add Expression", I can do this:

(double&)$xmm0

You may also right click on the register and place this in summary format:

{(double&)$VAR}

OTHER TIPS

Using LLDB (while in the Xcode console), you can use:

expr (void)printf("%f\n",$xmm0)

(or any other XMM register...

enter image description here

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top