aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2013-03-25 22:53:54 +0000
committerDoug Evans <dje@google.com>2013-03-25 22:53:54 +0000
commitebcdfe33431165983acb9daa04e41c2e9f527d5c (patch)
treeadb499939dd62afaeccade2faa275c4de8551f76 /gdb
parent676ee43ba968fa057afd3e468e340bdffcb1d5d5 (diff)
downloadgdb-ebcdfe33431165983acb9daa04e41c2e9f527d5c.zip
gdb-ebcdfe33431165983acb9daa04e41c2e9f527d5c.tar.gz
gdb-ebcdfe33431165983acb9daa04e41c2e9f527d5c.tar.bz2
* contrib/cc-with-tweaks.sh: Check exit code of dwp.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog4
-rwxr-xr-xgdb/contrib/cc-with-tweaks.sh2
2 files changed, 6 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 2b2a089..2aa6ee3 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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:
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