This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[commit] check exit code of dwp
- From: Doug Evans <dje at google dot com>
- To: gdb-patches at sourceware dot org
- Date: Mon, 25 Mar 2013 15:54:59 -0700
- Subject: [commit] check exit code of dwp
Hi, fyi I checked this in.
2013-03-25 Doug Evans <dje@google.com>
* contrib/cc-with-tweaks.sh: Check exit code of dwp.
Index: contrib/cc-with-tweaks.sh
===================================================================
RCS file: /cvs/src/src/gdb/contrib/cc-with-tweaks.sh,v
retrieving revision 1.8
diff -u -p -r1.8 cc-with-tweaks.sh
--- contrib/cc-with-tweaks.sh 15 Feb 2013 20:30:16 -0000 1.8
+++ contrib/cc-with-tweaks.sh 25 Mar 2013 22:52:01 -0000
@@ -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