2 # This script attempts to find all typedef's in the postgres binaries
3 # by using 'nm' to report all typedef debugging symbols.
5 # For this program to work, you must have compiled all binaries with
8 # This is run on BSD/OS 4.0, so you may need to make changes.
10 # Ignore the nm errors about a file not being a binary file.
12 # Remember, debugging symbols are your friends.
15 if [ "$#" -ne 1 -o ! -d "$1" ]
16 then echo "Usage: $0 postgres_binary_directory" 1>&2
20 objdump --stabs "$1"/* |
24 sed 's/^\([^:]*\).*$/\1/' |
25 grep -v ' ' | # some typedefs have spaces, remove them