This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [commit] check exit code of dwp
- From: Doug Evans <dje at google dot com>
- To: gdb-patches <gdb-patches at sourceware dot org>
- Date: Wed, 3 Apr 2013 11:58:27 -0700
- Subject: Re: [commit] check exit code of dwp
- References: <yjt27gkv5buk dot fsf at ruffy2 dot mtv dot corp dot google dot com>
On Mon, Mar 25, 2013 at 3:54 PM, Doug Evans <dje@google.com> wrote:
> 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
>
fyi, I committed this to the 7.6 branch.