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
a8f1c677
Commit
a8f1c677
authored
May 27, 2003
by
Ivan Kokshaysky
Committed by
Arnaldo Carvalho de Melo
May 27, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] alpha: single-step breakpoints - updated fix
Restore 2.4 behavior when setting the single step breakpoints.
parent
edddee1c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
arch/alpha/kernel/ptrace.c
arch/alpha/kernel/ptrace.c
+2
-2
arch/alpha/kernel/signal.c
arch/alpha/kernel/signal.c
+3
-0
No files found.
arch/alpha/kernel/ptrace.c
View file @
a8f1c677
...
@@ -366,8 +366,8 @@ do_sys_ptrace(long request, long pid, long addr, long data,
...
@@ -366,8 +366,8 @@ do_sys_ptrace(long request, long pid, long addr, long data,
ret
=
-
EIO
;
ret
=
-
EIO
;
if
((
unsigned
long
)
data
>
_NSIG
)
if
((
unsigned
long
)
data
>
_NSIG
)
break
;
break
;
/*
Set
single stepping. */
/*
Mark
single stepping. */
ptrace_set_bpt
(
child
)
;
child
->
thread_info
->
bpt_nsaved
=
-
1
;
clear_tsk_thread_flag
(
child
,
TIF_SYSCALL_TRACE
);
clear_tsk_thread_flag
(
child
,
TIF_SYSCALL_TRACE
);
wake_up_process
(
child
);
wake_up_process
(
child
);
child
->
exit_code
=
data
;
child
->
exit_code
=
data
;
...
...
arch/alpha/kernel/signal.c
View file @
a8f1c677
...
@@ -619,7 +619,10 @@ do_signal(sigset_t *oldset, struct pt_regs * regs, struct switch_stack * sw,
...
@@ -619,7 +619,10 @@ do_signal(sigset_t *oldset, struct pt_regs * regs, struct switch_stack * sw,
if
(
!
oldset
)
if
(
!
oldset
)
oldset
=
&
current
->
blocked
;
oldset
=
&
current
->
blocked
;
/* This lets the debugger run, ... */
signr
=
get_signal_to_deliver
(
&
info
,
regs
,
NULL
);
signr
=
get_signal_to_deliver
(
&
info
,
regs
,
NULL
);
/* ... so re-check the single stepping. */
single_stepping
|=
ptrace_cancel_bpt
(
current
);
if
(
signr
>
0
)
{
if
(
signr
>
0
)
{
/* Whee! Actually deliver the signal. */
/* Whee! Actually deliver the signal. */
...
...
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