From 43d27b7803fa28e8b45b1be6db0ebe3f4b0dfc06 Mon Sep 17 00:00:00 2001 From: Giacomo Tesio Date: Tue, 20 Nov 2018 00:52:38 +0100 Subject: [PATCH] gdb: jhn-log-syscalls takes an optional pid argument --- _gdb/functions | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/_gdb/functions b/_gdb/functions index e930e18..be318c8 100644 --- a/_gdb/functions +++ b/_gdb/functions @@ -27,7 +27,12 @@ define jhn-print-with-context end define jhn-log-syscalls - b syscall + if $argc == 0 + b syscall + end + if $argc == 1 + b syscall if up != 0 && $_streq(up->text, $arg0) + end commands jhn-print-with-context " pc = 0x%x " ureg->ip c