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: [PATCH 2/4] Perf test framework


On 11/05/2013 12:24 AM, Tom Tromey wrote:
Yao> +	if { "$GDB_PERFTEST_MODE" != "compile"
Yao> +	     && "$GDB_PERFTEST_MODE" != "run"
Yao> +	     && "$GDB_PERFTEST_MODE" != "both" } {
Yao> +	    # GDB_PERFTEST_MODE=compile|run|both is allowed.
Yao> +	    unsupported "Unknown value of GDB_PERFTEST_MODE."
Yao> +	    return 1

This is basically an internal error.
Calling "error" and having a backtrace in the log seems better to me.

Fixed it in the commit.  Thanks for the review.

--
Yao (éå)


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