* contrib/cc-with-tweaks.sh: Check exit code of dwp.

This commit is contained in:
Doug Evans 2013-03-25 22:53:54 +00:00
parent 676ee43ba9
commit ebcdfe3343
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2013-03-25 Doug Evans <dje@google.com>
* contrib/cc-with-tweaks.sh: Check exit code of dwp.
2013-03-25 Tom Tromey <tromey@redhat.com>
PR symtab/11462:

View File

@ -180,6 +180,8 @@ if [ "$want_dwp" = true ]; then
dwo_files=$($READELF -wi "${output_file}" | grep _dwo_name | \
sed -e 's/^.*: //' | sort | uniq)
$DWP -o "${output_file}.dwp" ${dwo_files} > /dev/null
rc=$?
[ $rc != 0 ] && exit $rc
rm -f ${dwo_files}
fi