binutils-gdb/gdb/testsuite/gdb.server
Yao Qi 605fd3c659 Fix GDBserver build failure when $development is false
When we set bfd/development.sh:$development to false, GDBserver failed to
build,

selftest.o: In function `selftests::run_tests(char const*)':
binutils-gdb/gdb/gdbserver/../common/selftest.c:97:undefined reference to `selftests::reset()'
collect2: error: ld returned 1 exit status

selftest.o shouldn't be compiled and linked when $development is false.
With this patch, in release mode, GDBserver doesn't nothing with option
--selftest,

$ ./gdbserver --selftest=foo
Selftests are not available in a non-development build.
$ ./gdbserver --selftest
Selftests are not available in a non-development build.

gdb/gdbserver:

2018-01-08  Yao Qi  <yao.qi@linaro.org>
	    Simon Marchi  <simon.marchi@ericsson.com>

	* Makefile.in (OBS): Remove selftest.o.
	* configure.ac: Set srv_selftest_objs if $development is true.
	(GDBSERVER_DEPFILES): Append $srv_selftest_objs.
	* configure: Re-generated.
	* server.c (captured_main): Wrap variable selftest_filter with
	GDB_SELF_TEST.

gdb/testsuite:

2018-01-08  Simon Marchi  <simon.marchi@ericsson.com>

	* gdb.server/unittest.exp: Match the output in non-development
	mode.
2018-01-08 10:09:33 +00:00
..
connect-stopped-target.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
connect-stopped-target.exp Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
connect-with-no-symbol-file.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
connect-with-no-symbol-file.exp Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
connect-without-multi-process.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
connect-without-multi-process.exp Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
ext-attach.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
ext-attach.exp Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
ext-restart.exp Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
ext-run.exp Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
ext-wrapper.exp Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
file-transfer.exp Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
no-thread-db.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
no-thread-db.exp Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
non-existing-program.exp Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
normal.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
reconnect-ctrl-c.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
reconnect-ctrl-c.exp Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
run-without-local-binary.exp Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
server-exec-info.exp Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
server-kill.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
server-kill.exp Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
server-mon.exp Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
server-run.exp Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
server.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
solib-list-lib.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
solib-list-main.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
solib-list.exp Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
transfer.txt
unittest.exp Fix GDBserver build failure when $development is false 2018-01-08 10:09:33 +00:00
wrapper.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
wrapper.exp Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00