Use '$enable_unittest' instead of '$development' on gdbserver/configure.srv (for...
authorSergio Durigan Junior <sergiodj@redhat.com>
Mon, 4 Mar 2019 17:44:20 +0000 (12:44 -0500)
committerSergio Durigan Junior <sergiodj@redhat.com>
Mon, 4 Mar 2019 17:47:35 +0000 (12:47 -0500)
commit45950eb60008c70fb79306012e76a024a8790ca3
tree132c400d5007cf8b2e61670282787ec3c0e837c3
parent7b63ad86ab1a56812772f266b345ecaa494ece95
Use '$enable_unittest' instead of '$development' on gdbserver/configure.srv (for 'aarch64*-*-linux*' case)

On commit 8ecfd7bd4acd69213c06fac6de9af38299123547 ("Add parameter to
allow enabling/disabling selftests via configure") it seems that I
forgot to use the proper '$enable_unittest' variable when checking to
see whether to add selftest-related objects to 'srv_regobj'.  This
causes a build failure on Aarch64 when 'development=false' (which is
the case for the 8.3 branch) and 'enable_unittest=true'.

This patch fixes the problem by using '$enable_unittest' instead of
'$development' when performing the check.  As a reminder, it's
important to notice that '$enable_unittest's default value (i.e., when
the option '--enable-unit-tests' is not passed to configure) is the
same as '$development', so this patch doesn't affect the current
build.

I'd like to install this patch both on master and on the 8.3 branch.

OK?

gdb/gdbserver/ChangeLog:
2019-03-04  Sergio Durigan Junior  <sergiodj@redhat.com>

* configure.srv: Use '$enable_unittest' instead of '$development'
when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
case.
gdb/gdbserver/ChangeLog
gdb/gdbserver/configure.srv
This page took 0.026332 seconds and 4 git commands to generate.