$READELF --debug-dump=info baz.o) \
| grep -E 'DW_AT_(name|comp_dir)' \
| rev | cut -d: -f1 | rev | cut -c2- | grep ^/foo/bar/baz | sort -u
-]],[0],[expout])
+]],[0],[expout],[ignore])
AT_CLEANUP
$READELF --debug-dump=info baz.o) \
| grep -E 'DW_AT_(name|comp_dir)' \
| rev | cut -d: -f1 | rev | cut -c2- | grep ^/foo/bar/baz | sort -u
-]],[0],[expout])
+]],[0],[expout],[ignore])
AT_CLEANUP
$READELF --debug-dump=info ./foobarbaz.part.o \
| grep -E 'DW_AT_(name|comp_dir)' \
| rev | cut -d: -f1 | rev | cut -c2- | grep ^/foo/bar/baz | sort -u
-]],[0],[expout])
+]],[0],[expout],[ignore])
AT_CLEANUP
$READELF --debug-dump=info ./foobarbaz.part.o \
| grep -E 'DW_AT_(name|comp_dir)' \
| rev | cut -d: -f1 | rev | cut -c2- | grep ^/foo/bar/baz | sort -u
-]],[0],[expout])
+]],[0],[expout],[ignore])
AT_CLEANUP
AT_CHECK([[
$READELF --debug-dump=info ./foobarbaz.exe | grep -E 'DW_AT_(name|comp_dir)' \
| rev | cut -d: -f1 | rev | cut -c2- | grep ^/foo/bar/baz | sort -u
-]],[0],[expout])
+]],[0],[expout],[ignore])
AT_CLEANUP
AT_CHECK([[
$READELF --debug-dump=info ./foobarbaz.exe | grep -E 'DW_AT_(name|comp_dir)' \
| rev | cut -d: -f1 | rev | cut -c2- | grep ^/foo/bar/baz | sort -u
-]],[0],[expout])
+]],[0],[expout],[ignore])
AT_CLEANUP
| sed -n 's/^.*> *DW_AT_name *:.* \(stringp[^ ]*\|st.\)$/\1/p' \
| sort;
done
-]],[0],[expout])
+]],[0],[expout],[ignore])
AT_CLEANUP
| awk '/Abbrev Number:.*DW_TAG_type_unit/{p=1}{if(p)print}/^$/{p=0}' \
| sed -n 's/^.*> *DW_AT_name *:.* \(stringp[^ ]*\|st.\)$/\1/p' \
| sort
-]],[0],[expout])
+]],[0],[expout],[ignore])
AT_CLEANUP
| awk '/Abbrev Number:.*DW_TAG_type_unit/{p=1}{if(p)print}/^$/{p=0}' \
| sed -n 's/^.*> *DW_AT_name *:.* \(stringp[^ ]*\|st.\)$/\1/p' \
| sort
-]],[0],[expout])
+]],[0],[expout],[ignore])
AT_CLEANUP
| awk '/Abbrev Number:.*DW_TAG_type_unit/{p=1}{if(p)print}/^$/{p=0}' \
| sed -n 's/^.*> *DW_AT_name *:.* \(stringp[^ ]*\|st.\)$/\1/p' \
| sort
-]],[0],[expout])
+]],[0],[expout],[ignore])
AT_CLEANUP
$READELF --debug-dump=line subdir_bar/bar.o; \
$READELF --debug-dump=line baz.o) \
| grep -E -A5 "The (Directory|File Name) Table" | grep "^ [1234]"
-]],[0],[expout])
+]],[0],[expout],[ignore])
AT_CLEANUP
$READELF --debug-dump=line baz.o) \
| grep -E -A5 "The (Directory|File Name) Table" \
| grep "^ [01234]" | cut -f3 -d:
-]],[0],[expout])
+]],[0],[expout],[ignore])
AT_CLEANUP
$READELF --debug-dump=line ./foobarbaz.part.o \
| grep -E -A5 "The (Directory|File Name) Table" \
| grep "^ [1234]"
-]],[0],[expout])
+]],[0],[expout],[ignore])
AT_CLEANUP
$READELF --debug-dump=line ./foobarbaz.part.o \
| grep -E -A5 "The (Directory|File Name) Table" \
| grep "^ [01234]" | cut -f3 -d:
-]],[0],[expout])
+]],[0],[expout],[ignore])
AT_CLEANUP
$READELF --debug-dump=line ./foobarbaz.exe \
| grep -E -A5 "The (Directory|File Name) Table" \
| grep "^ [1234]"
-]],[0],[expout])
+]],[0],[expout],[ignore])
AT_CLEANUP
$READELF --debug-dump=line ./foobarbaz.exe \
| grep -E -A5 "The (Directory|File Name) Table" \
| grep "^ [01234]" | cut -f3 -d:
-]],[0],[expout])
+]],[0],[expout],[ignore])
AT_CLEANUP
$READELF --debug-dump=macro subdir_bar/bar.o; \
$READELF --debug-dump=macro baz.o) \
| grep NUMBER | rev | cut -d: -f1 | rev | cut -c2-
-]],[0],[expout])
+]],[0],[expout],[ignore])
AT_CLEANUP
AT_CHECK([[
$READELF --debug-dump=macro ./foobarbaz.part.o \
| grep NUMBER | rev | cut -d: -f1 | rev | cut -c2-
-]],[0],[expout])
+]],[0],[expout],[ignore])
AT_CLEANUP
AT_CHECK([[
$READELF --debug-dump=macro ./foobarbaz.exe \
| grep NUMBER | rev | cut -d: -f1 | rev | cut -c2-
-]],[0],[expout])
+]],[0],[expout],[ignore])
AT_CLEANUP
AT_CHECK([[
$READELF --debug-dump=macro ./foobarbaz.exe \
| grep NUMBER | rev | cut -d: -f1 | rev | cut -c2-
-]],[0],[expout])
+]],[0],[expout],[ignore])
AT_CLEANUP