diff options
Diffstat (limited to 'gcore')
-rwxr-xr-x | gcore | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -0,0 +1,8 @@ +#!/bin/sh + +if [[ -z $1 ]]; then + echo "usage: gcore <pid>" + exit 1 +fi + +exec gdb -batch -ex "attach $1" -ex "generate-core-file" -ex "detach" |