summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephane Sezer <sas@cd80.net>2014-11-13 21:39:24 +0000
committerStephane Sezer <sas@cd80.net>2014-11-13 21:39:24 +0000
commit22ed42e4c84985830d4698af16fe3ad7ad6ecd97 (patch)
treed24eb07c432a85a651760673c647fa3640451011
parent3053155652cf1d1c3f82f230fe62fd4c1c80b9d4 (diff)
downloadbcm5719-llvm-22ed42e4c84985830d4698af16fe3ad7ad6ecd97.tar.gz
bcm5719-llvm-22ed42e4c84985830d4698af16fe3ad7ad6ecd97.zip
Specify checksums properly for llgs test suite packets.
Summary: These checksums are ignored by llgs but some implementations require them to be specified properly. Test Plan: Re-run llgs tests with the checksums and make sure we don't break anything. Reviewers: tfiala, clayborg Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D6254 llvm-svn: 221927
-rw-r--r--lldb/test/tools/lldb-gdbserver/TestGdbRemoteAuxvSupport.py2
-rw-r--r--lldb/test/tools/lldb-gdbserver/TestGdbRemoteExpeditedRegisters.py2
-rw-r--r--lldb/test/tools/lldb-gdbserver/TestGdbRemoteRegisterState.py2
-rw-r--r--lldb/test/tools/lldb-gdbserver/TestGdbRemoteThreadsInStopReply.py6
-rw-r--r--lldb/test/tools/lldb-gdbserver/TestGdbRemote_qThreadStopInfo.py2
-rw-r--r--lldb/test/tools/lldb-gdbserver/TestLldbGdbServer.py22
-rw-r--r--lldb/test/tools/lldb-gdbserver/gdbremote_testcase.py10
7 files changed, 23 insertions, 23 deletions
diff --git a/lldb/test/tools/lldb-gdbserver/TestGdbRemoteAuxvSupport.py b/lldb/test/tools/lldb-gdbserver/TestGdbRemoteAuxvSupport.py
index 358618b3727..152d6153529 100644
--- a/lldb/test/tools/lldb-gdbserver/TestGdbRemoteAuxvSupport.py
+++ b/lldb/test/tools/lldb-gdbserver/TestGdbRemoteAuxvSupport.py
@@ -17,7 +17,7 @@ class TestGdbRemoteAuxvSupport(gdbremote_testcase.GdbRemoteTestCaseBase):
# us in a stopped state.
self.test_sequence.add_log_lines([
# Start the inferior...
- "read packet: $c#00",
+ "read packet: $c#63",
# ... match output....
{ "type":"output_match", "regex":r"^message:main entered\r\n$" },
], True)
diff --git a/lldb/test/tools/lldb-gdbserver/TestGdbRemoteExpeditedRegisters.py b/lldb/test/tools/lldb-gdbserver/TestGdbRemoteExpeditedRegisters.py
index 11030a0b4fe..bf4d0455161 100644
--- a/lldb/test/tools/lldb-gdbserver/TestGdbRemoteExpeditedRegisters.py
+++ b/lldb/test/tools/lldb-gdbserver/TestGdbRemoteExpeditedRegisters.py
@@ -10,7 +10,7 @@ class TestGdbRemoteExpeditedRegisters(gdbremote_testcase.GdbRemoteTestCaseBase):
procs = self.prep_debug_monitor_and_inferior(inferior_args=["sleep:2"])
self.test_sequence.add_log_lines([
# Start up the inferior.
- "read packet: $c#00",
+ "read packet: $c#63",
# Immediately tell it to stop. We want to see what it reports.
"read packet: {}".format(chr(03)),
{"direction":"send", "regex":r"^\$T([0-9a-fA-F]+)([^#]+)#[0-9a-fA-F]{2}$", "capture":{1:"stop_result", 2:"key_vals_text"} },
diff --git a/lldb/test/tools/lldb-gdbserver/TestGdbRemoteRegisterState.py b/lldb/test/tools/lldb-gdbserver/TestGdbRemoteRegisterState.py
index 979c973c979..895f73a9ce6 100644
--- a/lldb/test/tools/lldb-gdbserver/TestGdbRemoteRegisterState.py
+++ b/lldb/test/tools/lldb-gdbserver/TestGdbRemoteRegisterState.py
@@ -18,7 +18,7 @@ class TestGdbRemoteRegisterState(gdbremote_testcase.GdbRemoteTestCaseBase):
self.add_threadinfo_collection_packets()
self.test_sequence.add_log_lines([
# Start the inferior...
- "read packet: $c#00",
+ "read packet: $c#63",
# ... match output....
{ "type":"output_match", "regex":r"^message:main entered\r\n$" },
], True)
diff --git a/lldb/test/tools/lldb-gdbserver/TestGdbRemoteThreadsInStopReply.py b/lldb/test/tools/lldb-gdbserver/TestGdbRemoteThreadsInStopReply.py
index 6fbed172070..ac0a3921d33 100644
--- a/lldb/test/tools/lldb-gdbserver/TestGdbRemoteThreadsInStopReply.py
+++ b/lldb/test/tools/lldb-gdbserver/TestGdbRemoteThreadsInStopReply.py
@@ -6,7 +6,7 @@ from lldbtest import *
class TestGdbRemoteThreadsInStopReply(gdbremote_testcase.GdbRemoteTestCaseBase):
ENABLE_THREADS_IN_STOP_REPLY_ENTRIES = [
- "read packet: $QListThreadsInStopReply#00",
+ "read packet: $QListThreadsInStopReply#21",
"send packet: $OK#00",
]
@@ -23,7 +23,7 @@ class TestGdbRemoteThreadsInStopReply(gdbremote_testcase.GdbRemoteTestCaseBase):
if post_startup_log_lines:
self.test_sequence.add_log_lines(post_startup_log_lines, True)
self.test_sequence.add_log_lines([
- "read packet: $c#00"
+ "read packet: $c#63"
], True)
context = self.expect_gdbremote_sequence()
self.assertIsNotNone(context)
@@ -46,7 +46,7 @@ class TestGdbRemoteThreadsInStopReply(gdbremote_testcase.GdbRemoteTestCaseBase):
# Run, then stop the process, grab the stop reply content.
self.reset_test_sequence()
self.test_sequence.add_log_lines([
- "read packet: $c#00",
+ "read packet: $c#63",
"read packet: {}".format(chr(03)),
{"direction":"send", "regex":r"^\$T([0-9a-fA-F]+)([^#]+)#[0-9a-fA-F]{2}$", "capture":{1:"stop_result", 2:"key_vals_text"} },
], True)
diff --git a/lldb/test/tools/lldb-gdbserver/TestGdbRemote_qThreadStopInfo.py b/lldb/test/tools/lldb-gdbserver/TestGdbRemote_qThreadStopInfo.py
index 1d8147a0695..18275030444 100644
--- a/lldb/test/tools/lldb-gdbserver/TestGdbRemote_qThreadStopInfo.py
+++ b/lldb/test/tools/lldb-gdbserver/TestGdbRemote_qThreadStopInfo.py
@@ -19,7 +19,7 @@ class TestGdbRemote_qThreadStopInfo(gdbremote_testcase.GdbRemoteTestCaseBase):
# Assumes test_sequence has anything added needed to setup the initial state.
# (Like optionally enabling QThreadsInStopReply.)
self.test_sequence.add_log_lines([
- "read packet: $c#00"
+ "read packet: $c#63"
], True)
context = self.expect_gdbremote_sequence()
self.assertIsNotNone(context)
diff --git a/lldb/test/tools/lldb-gdbserver/TestLldbGdbServer.py b/lldb/test/tools/lldb-gdbserver/TestLldbGdbServer.py
index fe121bb0828..6a3c56c7e09 100644
--- a/lldb/test/tools/lldb-gdbserver/TestLldbGdbServer.py
+++ b/lldb/test/tools/lldb-gdbserver/TestLldbGdbServer.py
@@ -189,7 +189,7 @@ class LldbGdbServerTestCase(gdbremote_testcase.GdbRemoteTestCaseBase):
self.add_no_ack_remote_stream()
self.add_verified_launch_packets(launch_args)
self.test_sequence.add_log_lines(
- ["read packet: $c#00",
+ ["read packet: $c#63",
"send packet: $W00#00"],
True)
@@ -755,7 +755,7 @@ class LldbGdbServerTestCase(gdbremote_testcase.GdbRemoteTestCaseBase):
# Launch/attach. (In our case, this should only ever be launched since we need inferior stdout/stderr).
procs = self.prep_debug_monitor_and_inferior(inferior_args=inferior_args)
- self.test_sequence.add_log_lines(["read packet: $c#00"], True)
+ self.test_sequence.add_log_lines(["read packet: $c#63"], True)
context = self.expect_gdbremote_sequence()
# Let the inferior process have a few moments to start up the thread when launched.
@@ -805,7 +805,7 @@ class LldbGdbServerTestCase(gdbremote_testcase.GdbRemoteTestCaseBase):
# Need to rectify behavior here. The linux behavior is more intuitive to me since we're essentially swapping out
# an about-to-be-delivered signal (for which we already sent a stop packet) to a different signal.
# {"direction":"send", "regex":r"^\$T([0-9a-fA-F]{2})thread:([0-9a-fA-F]+);", "capture":{1:"stop_signo", 2:"stop_thread_id"} },
- # "read packet: $c#00",
+ # "read packet: $c#63",
{ "type":"output_match", "regex":r"^received SIGUSR1 on thread id: ([0-9a-fA-F]+)\r\nthread ([0-9a-fA-F]+): past SIGSEGV\r\n", "capture":{ 1:"print_thread_id", 2:"post_handle_thread_id" } },
],
True)
@@ -869,7 +869,7 @@ class LldbGdbServerTestCase(gdbremote_testcase.GdbRemoteTestCaseBase):
self.test_sequence.add_log_lines(
[
# Start running after initial stop.
- "read packet: $c#00",
+ "read packet: $c#63",
# Match output line that prints the memory address of the message buffer within the inferior.
# Note we require launch-only testing so we can get inferior otuput.
{ "type":"output_match", "regex":r"^data address: 0x([0-9a-fA-F]+)\r\n$", "capture":{ 1:"message_address"} },
@@ -955,7 +955,7 @@ class LldbGdbServerTestCase(gdbremote_testcase.GdbRemoteTestCaseBase):
self.test_sequence.add_log_lines(
[
# Start running after initial stop.
- "read packet: $c#00",
+ "read packet: $c#63",
# Match output line that prints the memory address of the message buffer within the inferior.
# Note we require launch-only testing so we can get inferior otuput.
{ "type":"output_match", "regex":r"^code address: 0x([0-9a-fA-F]+)\r\n$", "capture":{ 1:"code_address"} },
@@ -1018,7 +1018,7 @@ class LldbGdbServerTestCase(gdbremote_testcase.GdbRemoteTestCaseBase):
self.test_sequence.add_log_lines(
[
# Start running after initial stop.
- "read packet: $c#00",
+ "read packet: $c#63",
# Match output line that prints the memory address of the message buffer within the inferior.
# Note we require launch-only testing so we can get inferior otuput.
{ "type":"output_match", "regex":r"^stack address: 0x([0-9a-fA-F]+)\r\n$", "capture":{ 1:"stack_address"} },
@@ -1081,7 +1081,7 @@ class LldbGdbServerTestCase(gdbremote_testcase.GdbRemoteTestCaseBase):
self.test_sequence.add_log_lines(
[
# Start running after initial stop.
- "read packet: $c#00",
+ "read packet: $c#63",
# Match output line that prints the memory address of the message buffer within the inferior.
# Note we require launch-only testing so we can get inferior otuput.
{ "type":"output_match", "regex":r"^heap address: 0x([0-9a-fA-F]+)\r\n$", "capture":{ 1:"heap_address"} },
@@ -1146,7 +1146,7 @@ class LldbGdbServerTestCase(gdbremote_testcase.GdbRemoteTestCaseBase):
self.add_process_info_collection_packets()
self.test_sequence.add_log_lines(
[# Start running after initial stop.
- "read packet: $c#00",
+ "read packet: $c#63",
# Match output line that prints the memory address of the function call entry point.
# Note we require launch-only testing so we can get inferior otuput.
{ "type":"output_match", "regex":r"^code address: 0x([0-9a-fA-F]+)\r\n$", "capture":{ 1:"function_address"} },
@@ -1226,7 +1226,7 @@ class LldbGdbServerTestCase(gdbremote_testcase.GdbRemoteTestCaseBase):
# Verify the stub could unset it.
"send packet: $OK#00",
# Continue running.
- "read packet: $c#00",
+ "read packet: $c#63",
# We should now receive the output from the call.
{ "type":"output_match", "regex":r"^hello, world\r\n$" },
# And wait for program completion.
@@ -1290,7 +1290,7 @@ class LldbGdbServerTestCase(gdbremote_testcase.GdbRemoteTestCaseBase):
self.test_sequence.add_log_lines(
[
# Start running after initial stop.
- "read packet: $c#00",
+ "read packet: $c#63",
# Match output line that prints the memory address of the message buffer within the inferior.
# Note we require launch-only testing so we can get inferior otuput.
{ "type":"output_match", "regex":r"^data address: 0x([0-9a-fA-F]+)\r\n$", "capture":{ 1:"message_address"} },
@@ -1314,7 +1314,7 @@ class LldbGdbServerTestCase(gdbremote_testcase.GdbRemoteTestCaseBase):
self.test_sequence.add_log_lines(
["read packet: $M{0:x},{1:x}:{2}#00".format(message_address, len(hex_encoded_message)/2, hex_encoded_message),
"send packet: $OK#00",
- "read packet: $c#00",
+ "read packet: $c#63",
{ "type":"output_match", "regex":r"^message: (.+)\r\n$", "capture":{ 1:"printed_message"} },
"send packet: $W00#00",
], True)
diff --git a/lldb/test/tools/lldb-gdbserver/gdbremote_testcase.py b/lldb/test/tools/lldb-gdbserver/gdbremote_testcase.py
index 32721e93915..35dcb478dc8 100644
--- a/lldb/test/tools/lldb-gdbserver/gdbremote_testcase.py
+++ b/lldb/test/tools/lldb-gdbserver/gdbremote_testcase.py
@@ -408,13 +408,13 @@ class GdbRemoteTestCaseBase(TestBase):
def add_thread_suffix_request_packets(self):
self.test_sequence.add_log_lines(
- ["read packet: $QThreadSuffixSupported#00",
+ ["read packet: $QThreadSuffixSupported#e4",
"send packet: $OK#00",
], True)
def add_process_info_collection_packets(self):
self.test_sequence.add_log_lines(
- ["read packet: $qProcessInfo#00",
+ ["read packet: $qProcessInfo#dc",
{ "direction":"send", "regex":r"^\$(.+)#[0-9a-fA-F]{2}$", "capture":{1:"process_info_raw"} }],
True)
@@ -626,7 +626,7 @@ class GdbRemoteTestCaseBase(TestBase):
if (do_continue):
self.test_sequence.add_log_lines(
[# Continue the inferior.
- "read packet: $c#00",
+ "read packet: $c#63",
# Expect a breakpoint stop report.
{"direction":"send", "regex":r"^\$T([0-9a-fA-F]{2})thread:([0-9a-fA-F]+);", "capture":{1:"stop_signo", 2:"stop_thread_id"} },
], True)
@@ -1035,7 +1035,7 @@ class GdbRemoteTestCaseBase(TestBase):
def add_vCont_query_packets(self):
self.test_sequence.add_log_lines([
- "read packet: $vCont?#00",
+ "read packet: $vCont?#49",
{"direction":"send", "regex":r"^\$(vCont)?(.*)#[0-9a-fA-F]{2}$", "capture":{2:"vCont_query_response" } },
], True)
@@ -1124,7 +1124,7 @@ class GdbRemoteTestCaseBase(TestBase):
# Run the process
self.test_sequence.add_log_lines(
[# Start running after initial stop.
- "read packet: $c#00",
+ "read packet: $c#63",
# Match output line that prints the memory address of the function call entry point.
# Note we require launch-only testing so we can get inferior otuput.
{ "type":"output_match", "regex":r"^code address: 0x([0-9a-fA-F]+)\r\ndata address: 0x([0-9a-fA-F]+)\r\ndata address: 0x([0-9a-fA-F]+)\r\n$",
OpenPOWER on IntegriCloud