summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Molenda <jmolenda@apple.com>2019-11-08 18:20:27 -0800
committerJason Molenda <jmolenda@apple.com>2019-11-08 18:21:57 -0800
commit60ab30ebce833c87bd4776f67cd9a82fe162ef9c (patch)
treead8ed2995fae2ef95f0b2d2016b7dc479f09413a
parent441a78533e61cfffb3fd59e2c169ca7ff7b286dc (diff)
downloadbcm5719-llvm-60ab30ebce833c87bd4776f67cd9a82fe162ef9c.tar.gz
bcm5719-llvm-60ab30ebce833c87bd4776f67cd9a82fe162ef9c.zip
Temporarily change the default for use-g-packet-for-reading to false,
until we can automatically fall back to p/P if g/G are not supported; it looks like there is a bug in debugserver's g/G packets taht needs to be fixed, or debugserver should stop supporting g/G until that bug is fixed. But we need lldb to be able to fall back to p/P correctly for that to be a viable workaround.
-rw-r--r--lldb/packages/Python/lldbsuite/test/functionalities/gdb_remote_client/TestGDBRemoteClient.py4
-rw-r--r--lldb/packages/Python/lldbsuite/test/functionalities/gdb_remote_client/TestNoGPacketSupported.py1
-rw-r--r--lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemoteProperties.td2
3 files changed, 5 insertions, 2 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/gdb_remote_client/TestGDBRemoteClient.py b/lldb/packages/Python/lldbsuite/test/functionalities/gdb_remote_client/TestGDBRemoteClient.py
index fd13b1f2cd6..8f0ed9a4933 100644
--- a/lldb/packages/Python/lldbsuite/test/functionalities/gdb_remote_client/TestGDBRemoteClient.py
+++ b/lldb/packages/Python/lldbsuite/test/functionalities/gdb_remote_client/TestGDBRemoteClient.py
@@ -52,6 +52,10 @@ class TestGDBRemoteClient(GDBRemoteTestBase):
def test_read_registers_using_g_packets(self):
"""Test reading registers using 'g' packets (default behavior)"""
+ self.dbg.HandleCommand(
+ "settings set plugin.process.gdb-remote.use-g-packet-for-reading true")
+ self.addTearDownHook(lambda:
+ self.runCmd("settings set plugin.process.gdb-remote.use-g-packet-for-reading false"))
self.server.responder = self.gPacketResponder()
target = self.createTarget("a.yaml")
process = self.connect(target)
diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/gdb_remote_client/TestNoGPacketSupported.py b/lldb/packages/Python/lldbsuite/test/functionalities/gdb_remote_client/TestNoGPacketSupported.py
index b2236768203..989684c6222 100644
--- a/lldb/packages/Python/lldbsuite/test/functionalities/gdb_remote_client/TestNoGPacketSupported.py
+++ b/lldb/packages/Python/lldbsuite/test/functionalities/gdb_remote_client/TestNoGPacketSupported.py
@@ -23,7 +23,6 @@ from gdbclientutils import *
class TestNoGPacketSupported(GDBRemoteTestBase):
@skipIfXmlSupportMissing
- @expectedFailureAll
def test(self):
class MyResponder(MockGDBServerResponder):
def haltReason(self):
diff --git a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemoteProperties.td b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemoteProperties.td
index 4c820294550..9cbe3d40ca2 100644
--- a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemoteProperties.td
+++ b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemoteProperties.td
@@ -15,6 +15,6 @@ let Definition = "processgdbremote" in {
Desc<"If true, the libraries-svr4 feature will be used to get a hold of the process's loaded modules.">;
def UseGPacketForReading: Property<"use-g-packet-for-reading", "Boolean">,
Global,
- DefaultTrue,
+ DefaultFalse,
Desc<"Specify if the server should use 'g' packets to read registers.">;
}
OpenPOWER on IntegriCloud