diff options
| author | Jason Molenda <jmolenda@apple.com> | 2012-08-28 23:46:12 +0000 |
|---|---|---|
| committer | Jason Molenda <jmolenda@apple.com> | 2012-08-28 23:46:12 +0000 |
| commit | e5ad3859eb59bdb3ec9b6ddcf8d6ab4f6dd8bdb9 (patch) | |
| tree | b160971af259a684e76ef6060c3e9a015b788f25 /lldb/examples/python | |
| parent | 407d659fa526cee5de1a2d5032ab60f7daa3c93a (diff) | |
| download | bcm5719-llvm-e5ad3859eb59bdb3ec9b6ddcf8d6ab4f6dd8bdb9.tar.gz bcm5719-llvm-e5ad3859eb59bdb3ec9b6ddcf8d6ab4f6dd8bdb9.zip | |
Instead of using re.split and requiring two spaces between the "regname: regvalue" pairs,
use re.findall and specify the regexp of regname: regvalue that we're interested in.
<rdar://problem/12188752>
llvm-svn: 162806
Diffstat (limited to 'lldb/examples/python')
| -rwxr-xr-x | lldb/examples/python/crashlog.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/examples/python/crashlog.py b/lldb/examples/python/crashlog.py index 07b87ad734d..2700cd8cbf7 100755 --- a/lldb/examples/python/crashlog.py +++ b/lldb/examples/python/crashlog.py @@ -316,7 +316,8 @@ class CrashLog(symbolication.Symbolicator): elif parse_mode == PARSE_MODE_THREGS: stripped_line = line.strip() - reg_values = re.split(' +', stripped_line); + # "r12: 0x00007fff6b5939c8 r13: 0x0000000007000006 r14: 0x0000000000002a03 r15: 0x0000000000000c00" + reg_values = re.findall ('([a-zA-Z0-9]+: 0[Xx][0-9a-fA-F]+) *', stripped_line); for reg_value in reg_values: #print 'reg_value = "%s"' % reg_value (reg, value) = reg_value.split(': ') |

