diff options
Diffstat (limited to 'buildtools')
-rwxr-xr-x | buildtools/scripts/abi_gen.sh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/buildtools/scripts/abi_gen.sh b/buildtools/scripts/abi_gen.sh new file mode 100755 index 0000000000..fa708dd8e4 --- /dev/null +++ b/buildtools/scripts/abi_gen.sh @@ -0,0 +1,20 @@ +#!/bin/sh +# generate a set of ABI signatures from a shared library + +SHAREDLIB="$1" + +GDBSCRIPT="gdb_syms.$$" + +( +cat <<EOF +set height 0 +set width 0 +EOF +nm $SHAREDLIB | cut -c18- | egrep '^[DGTRVW]' | grep -v @ | cut -c3- | sort | while read s; do + echo "echo $s: " + echo p $s +done +) > $GDBSCRIPT + +gdb -batch -x $GDBSCRIPT $SHAREDLIB < /dev/null +rm -f $GDBSCRIPT |