tests/krb5: Make check_rep_padata() also work for checking TGS replies
[Samba.git] / buildtools / scripts / abi_gen.sh
blob6dd6d321f7756895c63f2c41886ca908962f5236
1 #!/bin/sh
2 # generate a set of ABI signatures from a shared library
4 SHAREDLIB="$1"
6 GDBSCRIPT="gdb_syms.$$"
9 cat <<EOF
10 set height 0
11 set width 0
12 EOF
13 nm "$SHAREDLIB" | cut -d' ' -f2- | egrep '^[BDGTRVWS]' | grep -v @ | egrep -v ' (__bss_start|_edata|_init|_fini|_end)' | cut -c3- | sort | while read s; do
14 echo "echo $s: "
15 echo p $s
16 done
17 ) > $GDBSCRIPT
19 # forcing the terminal avoids a problem on Fedora12
20 TERM=none gdb -n -batch -x $GDBSCRIPT "$SHAREDLIB" < /dev/null
21 rm -f $GDBSCRIPT