|
1 | 1 | #!/bin/sh |
2 | 2 |
|
3 | | -# $PostgreSQL: pgsql/src/tools/find_typedef,v 1.15 2009/06/12 03:04:48 momjian Exp $ |
| 3 | +# $PostgreSQL: pgsql/src/tools/find_typedef,v 1.16 2009/06/12 03:09:07 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. |
@@ -45,7 +45,7 @@ do# if objdump -W is recognized, only one line of error should appear |
45 | 45 | # the typedef references, not the definitions, so I think it might |
46 | 46 | # be fine |
47 | 47 | objdump -W"$DIR"/*| |
48 | | -egrep -A3'DW_TAG_typedef'| |
| 48 | +egrep -A3'\(DW_TAG_typedef\)'| |
49 | 49 | awk' $2 == "DW_AT_name" {print $NF}' |
50 | 50 | elif [`readelf -w2>&1| wc -l`-gt 1 ] |
51 | 51 | then# FreeBSD, similar output to Linux |
|