Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
K
kernel
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
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
redox-os
kernel
Commits
40449d32
Verified
Commit
40449d32
authored
5 years ago
by
jD91mZM2
Browse files
Options
Downloads
Patches
Plain Diff
Allow catching int3
parent
ad5f3814
No related branches found
No related tags found
1 merge request
!107
Ptrace overhaul & bitflags
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/arch/x86_64/interrupt/exception.rs
+9
-2
9 additions, 2 deletions
src/arch/x86_64/interrupt/exception.rs
syscall
+1
-1
1 addition, 1 deletion
syscall
with
10 additions
and
3 deletions
src/arch/x86_64/interrupt/exception.rs
+
9
−
2
View file @
40449d32
...
...
@@ -49,8 +49,15 @@ interrupt_stack!(non_maskable, stack, {
interrupt_stack!
(
breakpoint
,
stack
,
{
println!
(
"Breakpoint trap"
);
stack
.dump
();
ksignal
(
SIGTRAP
);
let
guard
=
ptrace
::
set_process_regs
(
stack
);
if
ptrace
::
breakpoint_callback
(
PTRACE_STOP_BREAKPOINT
,
None
)
.is_none
()
{
drop
(
guard
);
stack
.dump
();
ksignal
(
SIGTRAP
);
}
});
interrupt_stack!
(
overflow
,
stack
,
{
...
...
This diff is collapsed.
Click to expand it.
syscall
@
bf5e138d
Compare
75a1e6f9
...
bf5e138d
Subproject commit
75a1e6f970bad42c7460b8164e59028c61eaf645
Subproject commit
bf5e138def0f8ad9c4ce87b8eca2d96b57aef8ea
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