From 466ea08da7a171c58b4e183e5fc37dd5d403ee26 Mon Sep 17 00:00:00 2001 From: Sergio Durigan Junior Date: Tue, 5 Sep 2017 14:15:09 -0400 Subject: [PATCH] Implement system_debuginfo_location --- master.cfg | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/master.cfg b/master.cfg index fd58066..10d0b5b 100644 --- a/master.cfg +++ b/master.cfg @@ -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):