* contrib/cc-with-tweaks.sh: Check exit code of dwp.
authorDoug Evans <dje@google.com>
Mon, 25 Mar 2013 22:53:54 +0000 (22:53 +0000)
committerDoug Evans <dje@google.com>
Mon, 25 Mar 2013 22:53:54 +0000 (22:53 +0000)
gdb/ChangeLog
gdb/contrib/cc-with-tweaks.sh

index 2b2a0895c6512e5c11b000a6aa6b8609def67c8d..2aa6ee3db17d7882234df34f0855de28f3e4c454 100644 (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:
index f012c28bffcdebec642bd8efa543d0cbe9c44272..c03d87f4707add464801409f59c5828b082fa1b7 100755 (executable)
@@ -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