Implement system_debuginfo_location

This commit is contained in:
Sergio Durigan Junior 2017-09-05 14:15:09 -04:00
parent a1b2dead62
commit 466ea08da7

View file

@ -892,6 +892,9 @@ The parameters of the class are:
with the "--with-separate-debug-dir" option set to
"/usr/lib/debug". Default is True.
- system_debuginfo_location: Set this to the location of the
debuginfo files in the system. Default: "/usr/lib/debug"
"""
ConfigureClass = ConfigureGDB
CompileClass = CompileGDB
@ -919,6 +922,7 @@ The parameters of the class are:
# Set this to False to disable using system's debuginfo files
# (i.e., do not use '--with-separate-debug-dir')
use_system_debuginfo = True
system_debuginfo_location = "/usr/lib/debug"
def __init__ (self, architecture_triplet = [], initial_delay = None):
factory.BuildFactory.__init__ (self)
@ -952,7 +956,7 @@ The parameters of the class are:
self.extra_conf_flags.append ('--enable-targets=all')
if self.use_system_debuginfo:
self.extra_conf_flags.append ('--with-separate-debug-dir=/usr/lib/debug')
self.extra_conf_flags.append ('--with-separate-debug-dir=%s' % system_debuginfo_location)
self.addStep (self.ConfigureClass (self.extra_conf_flags + architecture_triplet,
haltOnFailure = True))
@ -1148,6 +1152,7 @@ class RunTestGDBNetBSD_Common (BuildAndTestGDBFactory):
def __init__ (self, **kwargs):
self.make_command = 'gmake'
self.run_testsuite = False
self.system_debuginfo_location = "/usr/libdata/debug"
BuildAndTestGDBFactory.__init__ (self, **kwargs)
class RunTestGDBPlainNetBSD_c64 (RunTestGDBPlain_c64t64, RunTestGDBNetBSD_Common):