mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
2d77c766fa
on PPC64 Linux systems a 'S' line from nm means "small object uninitialised data"
21 lines
373 B
Bash
Executable File
21 lines
373 B
Bash
Executable File
#!/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 -d' ' -f2- | egrep '^[BDGTRVWS]' | 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
|