From f762c4d29e74c7819cd591b30334b87154c74852 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Fri, 12 Jun 2009 03:09:07 +0000 Subject: [PATCH] Tighten typedef check for Linux. --- src/tools/find_typedef | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/find_typedef b/src/tools/find_typedef index 9f8e238177..4811673aba 100755 --- a/src/tools/find_typedef +++ b/src/tools/find_typedef @@ -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 -- 2.39.5