summaryrefslogtreecommitdiff
path: root/mysql-test/resolve-stack
diff options
context:
space:
mode:
Diffstat (limited to 'mysql-test/resolve-stack')
-rwxr-xr-xmysql-test/resolve-stack8
1 files changed, 8 insertions, 0 deletions
diff --git a/mysql-test/resolve-stack b/mysql-test/resolve-stack
new file mode 100755
index 00000000000..cdbe362c752
--- /dev/null
+++ b/mysql-test/resolve-stack
@@ -0,0 +1,8 @@
+#! /bin/sh
+# A shortcut for resolving stacks when debugging when
+# we cannot duplicate the crash in a debugger and have to
+# resort to using stack traces
+
+nm --numeric-sort ../sql/mysqld > var/tmp/mysqld.sym
+echo "Please type or paste the numeric stack trace,Ctrl-C to quit:"
+../extra/resolve_stack_dump -s var/tmp/mysqld.sym