ctfdwdiff: Handle files without DWARF info too

Such as some built-in.o files in the Linux kernel build process.

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
Arnaldo Carvalho de Melo 2009-03-20 23:44:12 -03:00
parent 9a3f5b2c9e
commit 17b83fcbf1
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ while read dir ; do
ls *.o 2> /dev/null |
while read obj ; do
ncus=$(readelf -wi $obj | grep DW_TAG_compile_unit | wc -l)
if [ $ncus -gt 1 ] ; then
if [ $ncus -ne 1 ] ; then
continue
fi
echo $obj