gdb: jhn-log-syscalls takes an optional pid argument
This commit is contained in:
		| @@ -27,7 +27,12 @@ define jhn-print-with-context | |||||||
| end | end | ||||||
|  |  | ||||||
| define jhn-log-syscalls | define jhn-log-syscalls | ||||||
|  | 	if $argc == 0 | ||||||
| 		b syscall | 		b syscall | ||||||
|  | 	end | ||||||
|  | 	if $argc == 1 | ||||||
|  | 		b syscall if up != 0 && $_streq(up->text, $arg0) | ||||||
|  | 	end | ||||||
| 	commands | 	commands | ||||||
| 		jhn-print-with-context " pc = 0x%x " ureg->ip | 		jhn-print-with-context " pc = 0x%x " ureg->ip | ||||||
| 		c | 		c | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user