[Lldb-commits] [PATCH] Linux - debugging of local processes via lldb-gdbserver
Vince Harron
vharron at google.com
Wed Feb 11 16:26:09 PST 2015
Changed from reading env variable to reading setting
http://reviews.llvm.org/D7567
Files:
source/Plugins/Platform/Linux/PlatformLinux.cpp
test/dotest.py
test/lldbtest.py
Index: source/Plugins/Platform/Linux/PlatformLinux.cpp
===================================================================
--- source/Plugins/Platform/Linux/PlatformLinux.cpp
+++ source/Plugins/Platform/Linux/PlatformLinux.cpp
@@ -64,13 +64,13 @@
static PropertyDefinition
g_properties[] =
{
- { "use-llgs-for-local" , OptionValue::eTypeBoolean, true, false, NULL, NULL, "Control whether the platform uses llgs for local debug sessions." },
+ { "use-llgs-for-local" , OptionValue::eTypeBoolean, true, true, NULL, NULL, "Control whether the platform uses llgs for local debug sessions." },
{ NULL , OptionValue::eTypeInvalid, false, 0 , NULL, NULL, NULL }
};
- // Allow environment variable to force using llgs-local.
- if (getenv("PLATFORM_LINUX_FORCE_LLGS_LOCAL"))
- g_properties[ePropertyUseLlgsForLocal].default_uint_value = true;
+ // Allow environment variable to disable llgs-local.
+ if (getenv("PLATFORM_LINUX_DISABLE_LLGS_LOCAL"))
+ g_properties[ePropertyUseLlgsForLocal].default_uint_value = false;
return g_properties;
}
Index: test/dotest.py
===================================================================
--- test/dotest.py
+++ test/dotest.py
@@ -139,6 +139,9 @@
# Don't do lldb-gdbserver (llgs) tests on anything except Linux.
dont_do_llgs_test = not ("linux" in sys.platform)
+# Is linux local debugging done via lldb-gdbserver
+llgs_local = None
+
# The blacklist is optional (-b blacklistFile) and allows a central place to skip
# testclass's and/or testclass.testmethod's.
blacklist = None
Index: test/lldbtest.py
===================================================================
--- test/lldbtest.py
+++ test/lldbtest.py
@@ -595,7 +595,11 @@
def expectedFailureLLGS(bugnumber=None, compilers=None):
def fn(self):
- return 'PLATFORM_LINUX_FORCE_LLGS_LOCAL' in os.environ and self.expectedCompiler(compilers)
+ # llgs local is only an option on Linux systems
+ if 'linux' not in sys.platform:
+ return False
+ self.runCmd('settings show platform.plugin.linux.use-llgs-for-local')
+ return 'true' in self.res.GetOutput() and self.expectedCompiler(compilers)
if bugnumber: return expectedFailure(fn, bugnumber)
def skipIfRemote(func):
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D7567.19795.patch
Type: text/x-patch
Size: 2374 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20150212/c4ac90aa/attachment.bin>
More information about the lldb-commits
mailing list