diff --git a/doc/fortunes.fun b/doc/fortunes.fun index 77420fccff..d059a0d8e7 100644 --- a/doc/fortunes.fun +++ b/doc/fortunes.fun @@ -143,3 +143,5 @@ When you sold that exploit, what they really bought, was your silence. Greetings, human. nothing personal, just bitness Too old to crash +Finnished a beer +ESIL ruined my life diff --git a/libr/debug/p/debug_native.c b/libr/debug/p/debug_native.c index c75dc2483b..0eb0a580e9 100644 --- a/libr/debug/p/debug_native.c +++ b/libr/debug/p/debug_native.c @@ -1077,7 +1077,7 @@ eprintf ("++ EFL = 0x%08x %d\n", ctx.EFlags, r_offsetof (CONTEXT, EFlags)); int i; #if __x86_64__ #if !__ANDROID__ - ret1 = ptrace (PTRACE_GETFPREGS, tid, NULL, &fpregs); + ret1 = ptrace (PTRACE_GETFPREGS, pid, NULL, &fpregs); eprintf ("---- x86-64 ----\n "); eprintf ("cwd = 0x%04x ; control ", fpregs.cwd); eprintf ("swd = 0x%04x ; status\n", fpregs.swd); @@ -1121,7 +1121,7 @@ eprintf ("++ EFL = 0x%08x %d\n", ctx.EFlags, r_offsetof (CONTEXT, EFlags)); memcpy (buf, &fpregs, size); return sizeof (fpregs); #else - ret1 = ptrace (PTRACE_GETFPREGS, tid, NULL, &fpregs); + ret1 = ptrace (PTRACE_GETFPREGS, pid, NULL, &fpregs); eprintf ("cwd = 0x%04x ; control ", fpregs.cwd); eprintf ("swd = 0x%04x ; status\n", fpregs.swd); eprintf ("ftw = 0x%04x ", fpregs.ftw);