Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
52c0adae
Commit
52c0adae
authored
May 19, 2003
by
Richard Henderson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ALPHA] Fix single-step breakpoints.
From Ivan Kokshaysky <ink@jurassic.park.msu.ru>.
parent
d8475074
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
arch/alpha/kernel/ptrace.c
arch/alpha/kernel/ptrace.c
+7
-7
No files found.
arch/alpha/kernel/ptrace.c
View file @
52c0adae
...
...
@@ -366,8 +366,8 @@ do_sys_ptrace(long request, long pid, long addr, long data,
ret
=
-
EIO
;
if
((
unsigned
long
)
data
>
_NSIG
)
break
;
/*
Mark
single stepping. */
child
->
thread_info
->
bpt_nsaved
=
-
1
;
/*
Set
single stepping. */
ptrace_set_bpt
(
child
)
;
clear_tsk_thread_flag
(
child
,
TIF_SYSCALL_TRACE
);
wake_up_process
(
child
);
child
->
exit_code
=
data
;
...
...
@@ -397,11 +397,11 @@ syscall_trace(void)
return
;
if
(
!
(
current
->
ptrace
&
PT_PTRACED
))
return
;
current
->
exit_code
=
SIGTRAP
|
((
current
->
ptrace
&
PT_TRACESYSGOOD
)
?
0x80
:
0
);
current
->
state
=
TASK_STOPPED
;
notify_parent
(
current
,
SIGCHLD
);
schedule
();
/* The 0x80 provides a way for the tracing parent to distinguish
between a syscall stop and SIGTRAP delivery */
ptrace_notify
(
SIGTRAP
|
((
current
->
ptrace
&
PT_TRACESYSGOOD
)
?
0x80
:
0
)
);
/*
* This isn't the same as continuing with a signal, but it will do
* for normal use. strace only continues with a signal if the
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment