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


>>>>> "Yao" == Yao Qi <yao@codesourcery.com> writes:

Yao> 	* lib/perftest.exp: New.
Yao> 	* gdb.perf/lib/perftest/__init__.py: New.
Yao> 	* gdb.perf/lib/perftest/measure.py: New.
Yao> 	* gdb.perf/lib/perftest/perftest.py: New.
Yao> 	* gdb.perf/lib/perftest/reporter.py: New.
Yao> 	* gdb.perf/lib/perftest/testresult.py: New.

Thanks for making that change, Yao.

One more little nit:

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.

Tom


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