Add "The other debugger way"

This commit is contained in:
w-ew 2020-01-10 18:11:40 +01:00 committed by GitHub
parent 58e647a30c
commit 1f6dae3d3a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -467,6 +467,13 @@ $ lldb `which vim`
Ctrl-C q <Enter> <Enter>
```
## The other debugger way
Credit: @w-ew
```
$ ps aux | grep vim$ | grep -v grep | awk '{print $2}' | xargs -I{} gdb --pid {} --ex "call exit(-1)"
```
## The libcall way
Credit: @k-takata