8000 Mention BSD/OS find_typedef behavior. · postgrespro/postgres_cluster@1ef4eee · GitHub
[go: up one dir, main page]

Skip to content

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 1ef4eee

Browse files
committed
Mention BSD/OS find_typedef behavior.
1 parent 6e8d957 commit 1ef4eee

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/tools/find_typedef

Lines changed: 3 additions & 1 deletion
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.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 $
44

55
# This script attempts to find all typedef's in the postgres binaries
66
# 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
5353
egrep -A3 '\(DW_TAG_typedef\)' |
5454
awk ' $1 == "DW_AT_name" {print $NF}'
5555
else # BSD/OS
56+
# BSD/OS reports all typedefs, even those defined in system
57+
# include files but never referenced in the PG code.
5658
objdump --stabs "$DIR"/* |
5759
awk ' $2 == "LSYM" && $7 ~ /:t/ {sub(":.*", "", $7); print $7}'
5860
fi

0 commit comments

Comments
 (0)
0