Tighten typedef check for Linux.
authorBruce Momjian <bruce@momjian.us>
Fri, 12 Jun 2009 03:09:07 +0000 (03:09 +0000)
committerBruce Momjian <bruce@momjian.us>
Fri, 12 Jun 2009 03:09:07 +0000 (03:09 +0000)
src/tools/find_typedef

index 9f8e2381778943837fe85557439675940bd3554e..4811673aba128b310874cfcf725f425e8e843e06 100755 (executable)
@@ -45,7 +45,7 @@ do    # if objdump -W is recognized, only one line of error should appear
                # the typedef references, not the definitions, so I think it might
                # be fine
                objdump -W "$DIR"/* |
-               egrep -A3 'DW_TAG_typedef' |
+               egrep -A3 '\(DW_TAG_typedef\)' |
                awk ' $2 == "DW_AT_name" {print $NF}'
        elif [ `readelf -w 2>&1 | wc -l` -gt 1 ]
        then    # FreeBSD, similar output to Linux