diff options
author | Florian Pritz <bluewind@xinu.at> | 2011-10-23 21:51:36 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2011-10-23 21:51:36 +0200 |
commit | 523b47ba579089de73958e3459b1d12bd4628486 (patch) | |
tree | 2c38cdefe65d854088b6c3b04a3e5abea9321cb9 /gcore | |
parent | 6ad11bc11c499cb83db71f9ec0b2fc7816947ce6 (diff) | |
download | bin-523b47ba579089de73958e3459b1d12bd4628486.tar.gz bin-523b47ba579089de73958e3459b1d12bd4628486.tar.xz |
add some scripts
Signed-off-by: Florian Pritz <bluewind@xinu.at>
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" |