diff options
author | Doug Evans <dje@google.com> | 2013-03-25 22:53:54 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2013-03-25 22:53:54 +0000 |
commit | ebcdfe33431165983acb9daa04e41c2e9f527d5c (patch) | |
tree | adb499939dd62afaeccade2faa275c4de8551f76 /gdb/contrib | |
parent | 676ee43ba968fa057afd3e468e340bdffcb1d5d5 (diff) | |
download | gdb-ebcdfe33431165983acb9daa04e41c2e9f527d5c.zip gdb-ebcdfe33431165983acb9daa04e41c2e9f527d5c.tar.gz gdb-ebcdfe33431165983acb9daa04e41c2e9f527d5c.tar.bz2 |
* contrib/cc-with-tweaks.sh: Check exit code of dwp.
Diffstat (limited to 'gdb/contrib')
-rwxr-xr-x | gdb/contrib/cc-with-tweaks.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/contrib/cc-with-tweaks.sh b/gdb/contrib/cc-with-tweaks.sh index f012c28..c03d87f 100755 --- a/gdb/contrib/cc-with-tweaks.sh +++ b/gdb/contrib/cc-with-tweaks.sh @@ -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 |