diff options
| author | Greg Clayton <gclayton@apple.com> | 2012-08-24 05:45:15 +0000 |
|---|---|---|
| committer | Greg Clayton <gclayton@apple.com> | 2012-08-24 05:45:15 +0000 |
| commit | 435ce13937537261e92578c2a1d476c465666b99 (patch) | |
| tree | 24e48d2db905d45069272baee689027f3126a12e /lldb/examples/python | |
| parent | 98e00797cdaf5f7e3c77378a2cb7993b0adfedee (diff) | |
| download | bcm5719-llvm-435ce13937537261e92578c2a1d476c465666b99.tar.gz bcm5719-llvm-435ce13937537261e92578c2a1d476c465666b99.zip | |
The OS plug-in can now get data from a python script that implements the protocol.
llvm-svn: 162540
Diffstat (limited to 'lldb/examples/python')
| -rw-r--r-- | lldb/examples/python/operating_system.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lldb/examples/python/operating_system.py b/lldb/examples/python/operating_system.py index d22b6a21180..59f93c7b9a9 100644 --- a/lldb/examples/python/operating_system.py +++ b/lldb/examples/python/operating_system.py @@ -1,6 +1,7 @@ #!/usr/bin/python import lldb +import struct class PlugIn(object): """Class that provides data for an instance of a LLDB 'OperatingSystemPython' plug-in class""" @@ -58,9 +59,9 @@ class PlugIn(object): def get_register_data(self, tid): if tid == 0x111111111: - return pack('Q',1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21); + return struct.pack('21Q',1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21); elif tid == 0x222222222: - return pack('Q',11,12,13,14,15,16,17,18,19,110,111,112,113,114,115,116,117,118,119,120,121); + return struct.pack('21Q',11,12,13,14,15,16,17,18,19,110,111,112,113,114,115,116,117,118,119,120,121); elif tid == 0x333333333: - return pack('Q',21,22,23,24,25,26,27,28,29,210,211,212,213,214,215,216,217,218,219,220,221); + return struct.pack('21Q',21,22,23,24,25,26,27,28,29,210,211,212,213,214,215,216,217,218,219,220,221); |

