gdb: jhn-log-syscalls takes an optional pid argument

This commit is contained in:
Giacomo Tesio 2018-11-20 00:52:38 +01:00
parent 7ee2b99c37
commit 43d27b7803
1 changed files with 6 additions and 1 deletions

View File

@ -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