commit | 4c70f287ea336c4a0c599431bfc2b5a9a618ab5e | [log] [tgz] |
---|---|---|
author | Johnny Chen <johnny.chen@apple.com> | Wed Mar 02 01:36:45 2011 +0000 |
committer | Johnny Chen <johnny.chen@apple.com> | Wed Mar 02 01:36:45 2011 +0000 |
tree | 192499d1ad275861db8fbee263ae70d5aef4681f | |
parent | 78fb5638da9c01a39443f3339ede2f02056822cf [diff] |
Add two utility functions to lldbutil.py: o int_to_bytearray() o bytearray_to_int() They return/interpret the bytearray in the little endian format. For big endian, simply perform ba.reverse() on the bytearray object. And modify TestProcessAPI.py to take advantage of the functions. git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@126813 91177308-0d34-0410-b5e6-96231b3b80d8