diff options
| author | Bruce Momjian | 1999-02-10 17:14:32 +0000 |
|---|---|---|
| committer | Bruce Momjian | 1999-02-10 17:14:32 +0000 |
| commit | d5a785cd5ae6781860276140aeb9c266445463d4 (patch) | |
| tree | 8737569fedf9888d2901735c016bfeaaecdc36e9 /src/tools | |
| parent | f859c81c18669d05ac53f2c1e0163c6b804fddd5 (diff) | |
Update find_typedefs for bsdi 4.0.
Diffstat (limited to 'src/tools')
| -rwxr-xr-x | src/tools/find_typedef | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/tools/find_typedef b/src/tools/find_typedef index 3017da5b70..6f4a91ea5d 100755 --- a/src/tools/find_typedef +++ b/src/tools/find_typedef @@ -5,8 +5,7 @@ # For this program to work, you must have compiled all binaries with # debugging symbols. # -# This is run on BSD/OS 3.0, so you may need to make changes for your -# version of nm. +# This is run on BSD/OS 4.0, so you may need to make changes. # # Ignore the nm errors about a file not being a binary file. # @@ -18,10 +17,12 @@ then echo "Usage: $0 postgres_binary_directory" 1>&2 exit 1 fi -nm -a "$1"/* | -grep LSYM | +objdump --stabs "$1"/* | +grep "LSYM" | +awk '{print $7}' | grep ':t' | -sed 's/^.*LSYM \([^:]*\):.*$/\1/' | -grep -v ' ' | # some typedefs have spaces, revove them -sort | +sed 's/^\([^:]*\).*$/\1/' | +grep -v ' ' | # some typedefs have spaces, remove them +sort | uniq + |
