Вопрос

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'..

Это было полезно?

Решение

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.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top