mirror of
https://git.FreeBSD.org/src.git
synced 2024-11-25 07:49:18 +00:00
dtrace: Fix the i386 FBT build
Reported by: Jenkins
Fixes: 0e69c95915
("dtrace: Fix up %rip for invop probes on x86")
This commit is contained in:
parent
e7fe037310
commit
60013d9c50
@ -89,7 +89,11 @@ fbt_invop(uintptr_t addr, struct trapframe *frame, uintptr_t scratch __unused)
|
||||
* Report the address of the breakpoint for the benefit
|
||||
* of consumers fetching register values with regs[].
|
||||
*/
|
||||
#ifdef __i386__
|
||||
frame->tf_eip--;
|
||||
#else
|
||||
frame->tf_rip--;
|
||||
#endif
|
||||
for (; fbt != NULL; fbt = fbt->fbtp_tracenext) {
|
||||
ASSERT(fbt->fbtp_rval == fbtrval);
|
||||
if (fbt->fbtp_roffset == 0) {
|
||||
@ -150,7 +154,11 @@ fbt_invop(uintptr_t addr, struct trapframe *frame, uintptr_t scratch __unused)
|
||||
}
|
||||
}
|
||||
/* Advance to the instruction following the breakpoint. */
|
||||
#ifdef __i386__
|
||||
frame->tf_eip++;
|
||||
#else
|
||||
frame->tf_rip++;
|
||||
#endif
|
||||
return (fbtrval);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user