This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 7/9] Simple testsuite for DTrace USDT probes.
- From: jose dot marchesi at oracle dot com (Jose E. Marchesi)
- To: Sergio Durigan Junior <sergiodj at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Fri, 10 Oct 2014 18:41:00 +0200
- Subject: Re: [PATCH 7/9] Simple testsuite for DTrace USDT probes.
- Authentication-results: sourceware.org; auth=none
- References: <1411724905-31234-1-git-send-email-jose dot marchesi at oracle dot com> <1411724905-31234-8-git-send-email-jose dot marchesi at oracle dot com> <878ukqbbzh dot fsf at redhat dot com>
> + # Generate the demo program, which contains USDT probes. This
> + # involves running the `dtrace' program in order to generate some
> + # auxiliary files: a header file and an object file with the ELF
> + # sections containing the probes information.
> +
> + set dscript_file "${srcdir}/${subdir}/${testfile}.d"
> + set out_header_file "${srcdir}/${subdir}/${testfile}.h"
> + set result \
> + [catch "exec $dtrace -h -s $dscript_file -o $out_header_file" output]
> + verbose -log $output
> + if {$result != 0} {
> + fail "invoke dtrace -h to generate the header file for USDT probes"
> + return -1
> + }
> +
> + standard_testfile .c
This is unecessary, I believe. You already called standard_testfile above.
Yep, I just removed it.