28 lines
1.1 KiB
Diff
28 lines
1.1 KiB
Diff
--- libr/debug/p/native/linux/linux_debug.c.orig 2019-10-31 21:39:54.233871286 +0100
|
|
+++ libr/debug/p/native/linux/linux_debug.c 2019-10-31 21:40:30.488558728 +0100
|
|
@@ -874,13 +874,13 @@
|
|
struct user_fpxregs_struct fpxregs;
|
|
ret1 = r_debug_ptrace (dbg, PTRACE_GETFPXREGS, pid, NULL, &fpxregs);
|
|
if (ret1 == 0) {
|
|
- if (showfpu) print_fpu ((void *)&fpxregs, ret1);
|
|
+ if (showfpu) print_fpu ((void *)&fpxregs);
|
|
if (sizeof(fpxregs) < size) size = sizeof(fpxregs);
|
|
memcpy (buf, &fpxregs, size);
|
|
return sizeof(fpxregs);
|
|
} else {
|
|
ret1 = r_debug_ptrace (dbg, PTRACE_GETFPREGS, pid, NULL, &fpregs);
|
|
- if (showfpu) print_fpu ((void *)&fpregs, ret1);
|
|
+ if (showfpu) print_fpu ((void *)&fpregs);
|
|
if (ret1 != 0) return false;
|
|
if (sizeof(fpregs) < size) size = sizeof(fpregs);
|
|
memcpy (buf, &fpregs, size);
|
|
@@ -888,7 +888,7 @@
|
|
}
|
|
#else
|
|
ret1 = r_debug_ptrace (dbg, PTRACE_GETFPREGS, pid, NULL, &fpregs);
|
|
- if (showfpu) print_fpu ((void *)&fpregs, 1);
|
|
+ if (showfpu) print_fpu ((void *)&fpregs);
|
|
if (ret1 != 0) return false;
|
|
if (sizeof (fpregs) < size) size = sizeof(fpregs);
|
|
memcpy (buf, &fpregs, size);
|