summaryrefslogtreecommitdiffstats
path: root/debug/test/build_leak_list
diff options
context:
space:
mode:
Diffstat (limited to 'debug/test/build_leak_list')
-rwxr-xr-xdebug/test/build_leak_list11
1 files changed, 11 insertions, 0 deletions
diff --git a/debug/test/build_leak_list b/debug/test/build_leak_list
new file mode 100755
index 0000000..845692d
--- /dev/null
+++ b/debug/test/build_leak_list
@@ -0,0 +1,11 @@
+#! /bin/sh
+
+if test "x$TEST_PARTED_BASE" = "x"; then
+ TEST_PARTED_BASE=~parted/parted-dev
+fi
+
+mtrace $TEST_PARTED_BASE/parted/.libs/parted $MALLOC_TRACE \
+ | grep libparted \
+ | sed 's/ at.*//' \
+ | sed 's/^\(0x[0-9a-f]\+\) \+\(0x[0-9a-f]\+\) */ {\1, \2},/' \
+ | less