Print FPU registers in lldb

旧城冷巷雨未停 提交于 2021-01-28 02:06:38

问题


How do you print FPU registers using lldb?

In gdb, you would do something like p $st0, however doing the same in lldb results in the error: error: use of undeclared identifier '$st0'.

register read st0 doesn't work either and gives the error error: Invalid register name 'st0'..


回答1:


By using register read --all as suggested by paulsm4, I found that the name of the registers are actually stmm0 to stmm7 and not st0 to st7.

So doing register read stmm0 --format b will get you the binary representation of the float.



来源:https://stackoverflow.com/questions/14093585/print-fpu-registers-in-lldb

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!