This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [commit] check exit code of dwp


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]