From b244a13e3b1cd2ee5b091c25509e97416b49f383 Mon Sep 17 00:00:00 2001 From: edef Date: Fri, 29 Jul 2022 23:03:13 +0000 Subject: ripple/minitrace: support zero-arg syscalls Change-Id: I5b29792ad80dd3f80a6f51db45bced09cdbdfd6a --- ripple/minitrace/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ripple') 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) -- cgit 1.4.1