This commit is contained in:
w-ew 2024-09-27 17:00:08 +00:00 committed by GitHub
commit 4bf3f6cbfa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -500,6 +500,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