Fixed up gdb-remote auxv regex issues with binary data.
authorTodd Fiala <todd.fiala@gmail.com>
Thu, 19 Jun 2014 17:35:40 +0000 (17:35 +0000)
committerTodd Fiala <todd.fiala@gmail.com>
Thu, 19 Jun 2014 17:35:40 +0000 (17:35 +0000)
commit4c24eba7788fe9ddfd4695610f9c94c6109f754f
tree9ce199ec25be443c01289b4b87fad5accfdaf8df
parent660839f210b94c7677f7856139e6c95329ea1f32
Fixed up gdb-remote auxv regex issues with binary data.
Fixes two causes for https://github.com/tfiala/lldb/issues/7.

1. Ensures the inferior program has started executing, by printing
a message on output first thing (per the "message:" command line arg)
and waiting for that text to arrive before doing any checks related
to auxv support.

2. Fixes up auxv-related regex patterns to be compiled with the Python
re.MULTILINE and re.DOTALL options.  The multiline is needed because
the binary data can include what look like newlines when interpreted
as text, and the DOTALL is needed to have the (.*) content portion match
newlines.

Added interrupt packet helper methods to add interrupt test sequence
packets and parse the results from them.

llvm-svn: 211283
lldb/test/tools/lldb-gdbserver/TestGdbRemoteAuxvSupport.py
lldb/test/tools/lldb-gdbserver/gdbremote_testcase.py
lldb/test/tools/lldb-gdbserver/lldbgdbserverutils.py