Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode debugging: how to view xmm registers in readable form

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)
like image 944
xtravar Avatar asked Dec 25 '22 10:12

xtravar


1 Answers

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}

like image 91
xtravar Avatar answered Mar 28 '23 03:03

xtravar