[Lldb-commits] [lldb] r131168 - /lldb/trunk/test/lldbutil.py
Johnny Chen
johnny.chen at apple.com
Tue May 10 16:01:44 PDT 2011
Author: johnny
Date: Tue May 10 18:01:44 2011
New Revision: 131168
URL: http://llvm.org/viewvc/llvm-project?rev=131168&view=rev
Log:
Add more docstrings for get_GPRs(frame), getFPRs(frame), and get_ESRs(frame).
Modified:
lldb/trunk/test/lldbutil.py
Modified: lldb/trunk/test/lldbutil.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lldbutil.py?rev=131168&r1=131167&r2=131168&view=diff
==============================================================================
--- lldb/trunk/test/lldbutil.py (original)
+++ lldb/trunk/test/lldbutil.py Tue May 10 18:01:44 2011
@@ -442,20 +442,38 @@
def get_GPRs(frame):
"""Returns the general purpose registers of the frame as an SBValue.
- The returned SBValue object is iterable.
+ The returned SBValue object is iterable. An example:
+ ...
+ from lldbutil import get_GPRs
+ regs = get_GPRs(frame)
+ for reg in regs:
+ print "%s => %s" % (reg.GetName(), reg.GetValue())
+ ...
"""
return get_registers(frame, "general purpose")
def get_FPRs(frame):
"""Returns the floating point registers of the frame as an SBValue.
- The returned SBValue object is iterable.
+ The returned SBValue object is iterable. An example:
+ ...
+ from lldbutil import get_FPRs
+ regs = get_FPRs(frame)
+ for reg in regs:
+ print "%s => %s" % (reg.GetName(), reg.GetValue())
+ ...
"""
return get_registers(frame, "floating point")
def get_ESRs(frame):
"""Returns the exception state registers of the frame as an SBValue.
- The returned SBValue object is iterable.
+ The returned SBValue object is iterable. An example:
+ ...
+ from lldbutil import get_ESRs
+ regs = get_ESRs(frame)
+ for reg in regs:
+ print "%s => %s" % (reg.GetName(), reg.GetValue())
+ ...
"""
return get_registers(frame, "exception state")
More information about the lldb-commits
mailing list