diff options
author | Mattias Andrée <maandree@kth.se> | 2020-06-01 21:15:49 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2020-06-01 21:15:49 +0200 |
commit | 06edb533f8f3d36a59baf87a31ff65afdd0f4222 (patch) | |
tree | 251f35be355e292905d753e9e5d934520c5c9f20 | |
parent | Add a todo (diff) | |
download | sctrace-06edb533f8f3d36a59baf87a31ff65afdd0f4222.tar.gz sctrace-06edb533f8f3d36a59baf87a31ff65afdd0f4222.tar.bz2 sctrace-06edb533f8f3d36a59baf87a31ff65afdd0f4222.tar.xz |
Fix typo and add rational for why the -a option (truncate arguments/outputs) is useful
Signed-off-by: Mattias Andrée <maandree@kth.se>
-rw-r--r-- | sctrace.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -21,7 +21,7 @@ handle_syscall(struct process *proc) switch ((int)proc->state) { default: - /* Get systemcall arguments */ + /* Get system call arguments */ if (ptrace(PTRACE_GETREGS, proc->pid, NULL, ®s)) eprintf("ptrace PTRACE_GETREGS %ju NULL <buffer>:", (uintmax_t)proc->pid); proc->scall = regs.orig_rax; @@ -183,7 +183,8 @@ main(int argc, char **argv) sigset_t sm; /* TODO add option to trace signals with siginfo (-s) */ - /* TODO add option to truncate long syscall arguments and outputs (-a) */ + /* TODO add option to truncate long syscall arguments and outputs (-a) + * This should be useful if your program does a lot of I/O */ ARGBEGIN { case '0': with_argv0 = 1; |