summaryrefslogtreecommitdiffstats
path: root/gcore
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2011-10-23 21:51:36 +0200
committerFlorian Pritz <bluewind@xinu.at>2011-10-23 21:51:36 +0200
commit523b47ba579089de73958e3459b1d12bd4628486 (patch)
tree2c38cdefe65d854088b6c3b04a3e5abea9321cb9 /gcore
parent6ad11bc11c499cb83db71f9ec0b2fc7816947ce6 (diff)
downloadbin-523b47ba579089de73958e3459b1d12bd4628486.tar.gz
bin-523b47ba579089de73958e3459b1d12bd4628486.tar.xz
add some scripts
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'gcore')
-rwxr-xr-xgcore8
1 files changed, 8 insertions, 0 deletions
diff --git a/gcore b/gcore
new file mode 100755
index 0000000..590fb19
--- /dev/null
+++ b/gcore
@@ -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"