Skip to content

Commit 08e34d7

Browse files
committed
Arch specific ptrace commands for netbsd
1 parent dd8f56e commit 08e34d7

File tree

4 files changed

+32
-0
lines changed

4 files changed

+32
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
use self::*;
2+
13
pub type c_long = i64;
24
pub type c_ulong = u64;
35
pub type c_char = u8;
6+
7+
pub const PT_GETREGS: ::c_int = PT_FIRSTMACH + 0;
8+
pub const PT_SETREGS: ::c_int = PT_FIRSTMACH + 1;
9+
pub const PT_GETFPREGS: ::c_int = PT_FIRSTMACH + 2;
10+
pub const PT_SETFPREGS: ::c_int = PT_FIRSTMACH + 3;

src/unix/bsd/netbsdlike/netbsd/arm.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
use self::*;
2+
13
pub type c_long = i32;
24
pub type c_ulong = u32;
35
pub type c_char = u8;
6+
7+
pub const PT_GETREGS: ::c_int = PT_FIRSTMACH + 1;
8+
pub const PT_SETREGS: ::c_int = PT_FIRSTMACH + 2;
9+
pub const PT_GETFPREGS: ::c_int = PT_FIRSTMACH + 3;
10+
pub const PT_SETFPREGS: ::c_int = PT_FIRSTMACH + 4;
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
use self::*;
2+
13
pub type c_long = i32;
24
pub type c_ulong = u32;
35
pub type c_char = u8;
6+
7+
pub const PT_STEP: ::c_int = PT_FIRSTMACH + 0;
8+
pub const PT_GETREGS: ::c_int = PT_FIRSTMACH + 1;
9+
pub const PT_SETREGS: ::c_int = PT_FIRSTMACH + 2;
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
use self::*;
2+
13
pub type c_long = i64;
24
pub type c_ulong = u64;
35
pub type c_char = i8;
6+
7+
pub const PT_STEP: ::c_int = PT_FIRSTMACH + 0;
8+
pub const PT_GETREGS: ::c_int = PT_FIRSTMACH + 1;
9+
pub const PT_SETREGS: ::c_int = PT_FIRSTMACH + 2;
10+
pub const PT_GETFPREGS: ::c_int = PT_FIRSTMACH + 3;
11+
pub const PT_SETFPREGS: ::c_int = PT_FIRSTMACH + 4;
12+
pub const PT_GETDBREGS: ::c_int = PT_FIRSTMACH + 5;
13+
pub const PT_SETDBREGS: ::c_int = PT_FIRSTMACH + 6;
14+
pub const PT_SETSTEP: ::c_int = PT_FIRSTMACH + 7;
15+
pub const PT_CLEARSTEP: ::c_int = PT_FIRSTMACH + 8;

0 commit comments

Comments
 (0)