Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit f371fda

Browse files
committed
Fix BSD find_typedef logic.
1 parent 6c4b3f5 commit f371fda

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tools/find_typedef

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
22

3-
# $PostgreSQL: pgsql/src/tools/find_typedef,v 1.11 2008/03/18 23:23:08 momjian Exp $
3+
# $PostgreSQL: pgsql/src/tools/find_typedef,v 1.12 2009/06/10 03:38:32 momjian Exp $
44

55
# This script attempts to find all typedef's in the postgres binaries
66
# by using 'nm' to report all typedef debugging symbols.
@@ -49,7 +49,7 @@ do # if objdump -W is recognized, only one line of error should appear
4949
awk ' $2 == "DW_AT_name" {print $NF}'
5050
else # BSD/OS
5151
objdump --stabs "$DIR"/* |
52-
awk ' $2 == "LSYM" && $7 ~ /:[tT]/ {sub(":.*", "", $7); print $7}'
52+
awk ' $2 == "LSYM" && $7 ~ /:t/ {sub(":.*", "", $7); print $7}'
5353
fi
5454
done |
5555
grep -v ' ' | # some typedefs have spaces, remove them

0 commit comments

Comments
 (0)