frida icon indicating copy to clipboard operation
frida copied to clipboard

为什么frida-Stalker不能打印浮点寄存器的数据?

Open eachlove opened this issue 3 years ago • 5 comments

Why can't Frida stallker print data from floating-point registers?

eachlove avatar Nov 03 '21 09:11 eachlove

frida can't support these registers now.
I use let s0 = ptr(this.context.sp-0x90).readFloat(); A trick to read/write register

b1ueb1ues avatar Nov 09 '21 02:11 b1ueb1ues

frida can't support these registers now. I use let s0 = ptr(this.context.sp-0x90).readFloat(); A trick to read/write register

why is the sp register minus 0x90 offset the s0 register??

XUCharles avatar Aug 29 '22 10:08 XUCharles

frida can't support these registers now. I use let s0 = ptr(this.context.sp-0x90).readFloat(); A trick to read/write register

why is the sp register minus 0x90 offset the s0 register??

frida need to save register on stack before do anything else, and restore them after. So we show/edit register data frida stored on stack.

b1ueb1ues avatar Aug 29 '22 10:08 b1ueb1ues

frida can't support these registers now. I use let s0 = ptr(this.context.sp-0x90).readFloat(); A trick to read/write register

why is the sp register minus 0x90 offset the s0 register??

frida need to save register on stack before do anything else, and restore them after. So we show/edit register data frida stored on stack.

So the offset is not a fixed 0x90, it's contextual and only specific to your case?

XUCharles avatar Aug 30 '22 02:08 XUCharles

frida can't support these registers now. I use let s0 = ptr(this.context.sp-0x90).readFloat(); A trick to read/write register

why is the sp register minus 0x90 offset the s0 register??

frida need to save register on stack before do anything else, and restore them after. So we show/edit register data frida stored on stack.

So the offset is not a fixed 0x90, it's contextual and only specific to your case?

I'm not sure. Afaik it depend on libunwind that frida use, maybe fixed.

b1ueb1ues avatar Aug 30 '22 03:08 b1ueb1ues

Close this issue? https://frida.re/news/2022/06/18/frida-15-1-25-released/ https://github.com/frida/frida-gum/pull/658

shatyuka avatar Jul 11 '23 02:07 shatyuka