Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F147213112
D26585.id79297.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D26585.id79297.diff
View Options
Index: head/sys/kern/subr_syscall.c
===================================================================
--- head/sys/kern/subr_syscall.c
+++ head/sys/kern/subr_syscall.c
@@ -97,21 +97,22 @@
if (p->p_ptevents & PTRACE_SCE)
ptracestop((td), SIGTRAP, NULL);
PROC_UNLOCK(p);
- }
- if (__predict_false((td->td_dbgflags & TDB_USERWR) != 0)) {
- /*
- * Reread syscall number and arguments if debugger
- * modified registers or memory.
- */
- error = (p->p_sysent->sv_fetch_syscall_args)(td);
- se = sa->callp;
+
+ if ((td->td_dbgflags & TDB_USERWR) != 0) {
+ /*
+ * Reread syscall number and arguments if debugger
+ * modified registers or memory.
+ */
+ error = (p->p_sysent->sv_fetch_syscall_args)(td);
+ se = sa->callp;
#ifdef KTRACE
- if (KTRPOINT(td, KTR_SYSCALL))
- ktrsyscall(sa->code, se->sy_narg, sa->args);
+ if (KTRPOINT(td, KTR_SYSCALL))
+ ktrsyscall(sa->code, se->sy_narg, sa->args);
#endif
- if (error != 0) {
- td->td_errno = error;
- goto retval;
+ if (error != 0) {
+ td->td_errno = error;
+ goto retval;
+ }
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Mar 10, 4:21 AM (6 h, 38 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29416185
Default Alt Text
D26585.id79297.diff (1 KB)
Attached To
Mode
D26585: Move TDB_USERWR check under 'if (traced)'
Attached
Detach File
Event Timeline
Log In to Comment