sys_process.c (6f3544cd7084abbadd83637993a4f41fd30e6ccd) sys_process.c (7f08176ee8b672feebd8a12572b43dddcb88046e)
1/*-
2 * Copyright (c) 1994, Sean Eric Fagan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 79 unchanged lines hidden (view full) ---

88
89struct ptrace_lwpinfo32 {
90 lwpid_t pl_lwpid; /* LWP described. */
91 int pl_event; /* Event that stopped the LWP. */
92 int pl_flags; /* LWP flags. */
93 sigset_t pl_sigmask; /* LWP signal mask */
94 sigset_t pl_siglist; /* LWP pending signal */
95 struct siginfo32 pl_siginfo; /* siginfo for signal */
1/*-
2 * Copyright (c) 1994, Sean Eric Fagan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 79 unchanged lines hidden (view full) ---

88
89struct ptrace_lwpinfo32 {
90 lwpid_t pl_lwpid; /* LWP described. */
91 int pl_event; /* Event that stopped the LWP. */
92 int pl_flags; /* LWP flags. */
93 sigset_t pl_sigmask; /* LWP signal mask */
94 sigset_t pl_siglist; /* LWP pending signal */
95 struct siginfo32 pl_siginfo; /* siginfo for signal */
96 char pl_tdname[MAXCOMLEN + 1]; /* LWP name. */
96};
97
98#endif
99
100/*
101 * Functions implemented using PROC_ACTION():
102 *
103 * proc_read_regs(proc, regs)

--- 411 unchanged lines hidden (view full) ---

515{
516
517 pl32->pl_lwpid = pl->pl_lwpid;
518 pl32->pl_event = pl->pl_event;
519 pl32->pl_flags = pl->pl_flags;
520 pl32->pl_sigmask = pl->pl_sigmask;
521 pl32->pl_siglist = pl->pl_siglist;
522 siginfo_to_siginfo32(&pl->pl_siginfo, &pl32->pl_siginfo);
97};
98
99#endif
100
101/*
102 * Functions implemented using PROC_ACTION():
103 *
104 * proc_read_regs(proc, regs)

--- 411 unchanged lines hidden (view full) ---

516{
517
518 pl32->pl_lwpid = pl->pl_lwpid;
519 pl32->pl_event = pl->pl_event;
520 pl32->pl_flags = pl->pl_flags;
521 pl32->pl_sigmask = pl->pl_sigmask;
522 pl32->pl_siglist = pl->pl_siglist;
523 siginfo_to_siginfo32(&pl->pl_siginfo, &pl32->pl_siginfo);
524 strcpy(pl32->pl_tdname, pl->pl_tdname);
523}
524#endif /* COMPAT_FREEBSD32 */
525
526/*
527 * Process debugging system call.
528 */
529#ifndef _SYS_SYSPROTO_H_
530struct ptrace_args {

--- 628 unchanged lines hidden (view full) ---

1159 if (td2->td_dbgflags & TDB_SCE)
1160 pl->pl_flags |= PL_FLAG_SCE;
1161 else if (td2->td_dbgflags & TDB_SCX)
1162 pl->pl_flags |= PL_FLAG_SCX;
1163 if (td2->td_dbgflags & TDB_EXEC)
1164 pl->pl_flags |= PL_FLAG_EXEC;
1165 pl->pl_sigmask = td2->td_sigmask;
1166 pl->pl_siglist = td2->td_siglist;
525}
526#endif /* COMPAT_FREEBSD32 */
527
528/*
529 * Process debugging system call.
530 */
531#ifndef _SYS_SYSPROTO_H_
532struct ptrace_args {

--- 628 unchanged lines hidden (view full) ---

1161 if (td2->td_dbgflags & TDB_SCE)
1162 pl->pl_flags |= PL_FLAG_SCE;
1163 else if (td2->td_dbgflags & TDB_SCX)
1164 pl->pl_flags |= PL_FLAG_SCX;
1165 if (td2->td_dbgflags & TDB_EXEC)
1166 pl->pl_flags |= PL_FLAG_EXEC;
1167 pl->pl_sigmask = td2->td_sigmask;
1168 pl->pl_siglist = td2->td_siglist;
1169 strcpy(pl->pl_tdname, td2->td_name);
1167#ifdef COMPAT_FREEBSD32
1168 if (wrap32)
1169 ptrace_lwpinfo_to32(pl, pl32);
1170#endif
1171 break;
1172
1173 case PT_GETNUMLWPS:
1174 td->td_retval[0] = p->p_numthreads;

--- 84 unchanged lines hidden ---
1170#ifdef COMPAT_FREEBSD32
1171 if (wrap32)
1172 ptrace_lwpinfo_to32(pl, pl32);
1173#endif
1174 break;
1175
1176 case PT_GETNUMLWPS:
1177 td->td_retval[0] = p->p_numthreads;

--- 84 unchanged lines hidden ---