Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sam Joan Roque-Worcel
wine
Commits
699d3cf8
Commit
699d3cf8
authored
25 years ago
by
Alexandre Julliard
Browse files
Options
Downloads
Patches
Plain Diff
Added use_ptrace flag to disable ptrace usage. Should eventually be
made into an option.
parent
c38cb012
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
server/thread.c
+2
-1
2 additions, 1 deletion
server/thread.c
with
2 additions
and
1 deletion
server/thread.c
+
2
−
1
View file @
699d3cf8
...
...
@@ -82,6 +82,7 @@ static const struct object_ops thread_ops =
destroy_thread
};
static
const
int
use_ptrace
=
1
;
/* set to 0 to disable ptrace */
static
struct
thread
*
first_thread
;
/* allocate the buffer for the communication with the client */
...
...
@@ -292,7 +293,7 @@ void wait4_thread( struct thread *thread, int signal )
static
int
attach_thread
(
struct
thread
*
thread
)
{
/* this may fail if the client is already being debugged */
if
(
ptrace
(
PTRACE_ATTACH
,
thread
->
unix_pid
,
0
,
0
)
==
-
1
)
return
0
;
if
(
!
use_ptrace
||
(
ptrace
(
PTRACE_ATTACH
,
thread
->
unix_pid
,
0
,
0
)
==
-
1
)
)
return
0
;
if
(
debug_level
)
fprintf
(
stderr
,
"ptrace: attached to pid %d
\n
"
,
thread
->
unix_pid
);
thread
->
attached
=
1
;
wait4_thread
(
thread
,
SIGSTOP
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment