|
1 | 1 | #!/bin/sh
|
2 | 2 |
|
3 |
| -# $PostgreSQL: pgsql/src/tools/find_typedef,v 1.14 2009/06/11 03:14:08 momjian Exp $ |
| 3 | +# $PostgreSQL: pgsql/src/tools/find_typedef,v 1.15 2009/06/12 03:04:48 momjian Exp $ |
4 | 4 |
|
5 | 5 | # This script attempts to find all typedef's in the postgres binaries
|
6 | 6 | # by using 'nm' to report all typedef debugging symbols.
|
@@ -53,6 +53,8 @@ do# if objdump -W is recognized, only one line of error should appear
|
53 | 53 | egrep -A3'\(DW_TAG_typedef\)'|
|
54 | 54 | awk' $1 == "DW_AT_name" {print $NF}'
|
55 | 55 | else# BSD/OS
|
| 56 | +# BSD/OS reports all typedefs, even those defined in system |
| 57 | +# include files but never referenced in the PG code. |
56 | 58 | objdump --stabs"$DIR"/*|
|
57 | 59 | awk' $2 == "LSYM" && $7 ~ /:t/ {sub(":.*", "", $7); print $7}'
|
58 | 60 | fi
|
|