diff options
author | edef <edef@unfathomable.blue> | 2022-07-29 23:03:13 +0000 |
---|---|---|
committer | edef <edef@unfathomable.blue> | 2022-07-29 23:03:13 +0000 |
commit | b244a13e3b1cd2ee5b091c25509e97416b49f383 (patch) | |
tree | ccce6df89ed4df35f5e631c0db9f091cb865ec1e /ripple/minitrace | |
parent | 51e0657d496651fbbc73b34d85f949206491197a (diff) | |
download | unf-legacy-b244a13e3b1cd2ee5b091c25509e97416b49f383.tar.zst |
ripple/minitrace: support zero-arg syscalls
Change-Id: I5b29792ad80dd3f80a6f51db45bced09cdbdfd6a
Diffstat (limited to 'ripple/minitrace')
-rw-r--r-- | ripple/minitrace/src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ripple/minitrace/src/main.rs b/ripple/minitrace/src/main.rs index 4735603..287310b 100644 --- a/ripple/minitrace/src/main.rs +++ b/ripple/minitrace/src/main.rs @@ -112,7 +112,7 @@ macro_rules! define_syscalls { fn from_regs(process: &Process, regs: libc::user_regs_struct) -> Result<$SyscallEntry> { Ok(match (regs.orig_rax, [regs.rdi, regs.rsi, regs.rdx, regs.r10, regs.r8, regs.r9]) { $( - ($nr, [$($arg),*, ..]) => $SyscallEntry::$syscall { + ($nr, [$($arg,)* ..]) => $SyscallEntry::$syscall { $($arg: match ProcessSyscallArg::try_from_process_reg(process, $arg) { Some(x) => x, None => bail!("couldn't parse {}(2) {}: {:#08x}", stringify!($syscall), stringify!($arg), $arg) |