Skip to content
Snippets Groups Projects
Verified Commit 4c2d8599 authored by jD91mZM2's avatar jD91mZM2
Browse files

Add missing debug definitions

See [strace-redox#ea42589d](strace-redox@ea42589d)
parent 6a3825d4
No related branches found
No related tags found
1 merge request!106Drive ptrace into a wall, prepare for overhaul
...@@ -81,6 +81,17 @@ pub fn format_call(a: usize, b: usize, c: usize, d: usize, e: usize, f: usize) - ...@@ -81,6 +81,17 @@ pub fn format_call(a: usize, b: usize, c: usize, d: usize, e: usize, f: usize) -
}, },
d d
), ),
SYS_FCHMOD => format!(
"fchmod({}, {:#o})",
b,
c
),
SYS_FCHOWN => format!(
"fchown({}, {}, {})",
b,
c,
d
),
SYS_FCNTL => format!( SYS_FCNTL => format!(
"fcntl({}, {} ({}), {:#X})", "fcntl({}, {} ({}), {:#X})",
b, b,
...@@ -113,6 +124,11 @@ pub fn format_call(a: usize, b: usize, c: usize, d: usize, e: usize, f: usize) - ...@@ -113,6 +124,11 @@ pub fn format_call(a: usize, b: usize, c: usize, d: usize, e: usize, f: usize) -
c, c,
d d
), ),
SYS_FRENAME => format!(
"frename({}, {:?})",
b,
validate_slice(c as *const u8, d).map(ByteStr),
),
SYS_FSTAT => format!( SYS_FSTAT => format!(
"fstat({}, {:?})", "fstat({}, {:?})",
b, b,
...@@ -136,6 +152,14 @@ pub fn format_call(a: usize, b: usize, c: usize, d: usize, e: usize, f: usize) - ...@@ -136,6 +152,14 @@ pub fn format_call(a: usize, b: usize, c: usize, d: usize, e: usize, f: usize) -
b, b,
c c
), ),
SYS_FUTIMENS => format!(
"futimens({}, {:?})",
b,
validate_slice(
c as *const TimeSpec,
d/mem::size_of::<TimeSpec>()
),
),
SYS_BRK => format!( SYS_BRK => format!(
"brk({:#X})", "brk({:#X})",
...@@ -200,7 +224,9 @@ pub fn format_call(a: usize, b: usize, c: usize, d: usize, e: usize, f: usize) - ...@@ -200,7 +224,9 @@ pub fn format_call(a: usize, b: usize, c: usize, d: usize, e: usize, f: usize) -
SYS_GETEUID => format!("geteuid()"), SYS_GETEUID => format!("geteuid()"),
SYS_GETGID => format!("getgid()"), SYS_GETGID => format!("getgid()"),
SYS_GETNS => format!("getns()"), SYS_GETNS => format!("getns()"),
SYS_GETPGID => format!("getpgid()"),
SYS_GETPID => format!("getpid()"), SYS_GETPID => format!("getpid()"),
SYS_GETPPID => format!("getppid()"),
SYS_GETUID => format!("getuid()"), SYS_GETUID => format!("getuid()"),
SYS_IOPL => format!( SYS_IOPL => format!(
"iopl({})", "iopl({})",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment