[Lldb-commits] [lldb] r116706 - /lldb/trunk/test/lldbutil.py
Johnny Chen
johnny.chen at apple.com
Mon Oct 18 08:46:54 PDT 2010
Author: johnny
Date: Mon Oct 18 10:46:54 2010
New Revision: 116706
URL: http://llvm.org/viewvc/llvm-project?rev=116706&view=rev
Log:
Also change the utility functions in lldbutil.py, too, to correspond to the StateType representation change.
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=116706&r1=116705&r2=116706&view=diff
==============================================================================
--- lldb/trunk/test/lldbutil.py (original)
+++ lldb/trunk/test/lldbutil.py Mon Oct 18 10:46:54 2010
@@ -42,48 +42,48 @@
def StateTypeString(enum):
"""Returns the stateType string given an enum."""
if enum == lldb.eStateInvalid:
- return "Invalid"
+ return "invalid"
elif enum == lldb.eStateUnloaded:
- return "Unloaded"
+ return "unloaded"
elif enum == lldb.eStateAttaching:
- return "Attaching"
+ return "attaching"
elif enum == lldb.eStateLaunching:
- return "Launching"
+ return "launching"
elif enum == lldb.eStateStopped:
- return "Stopped"
+ return "stopped"
elif enum == lldb.eStateRunning:
- return "Running"
+ return "running"
elif enum == lldb.eStateStepping:
- return "Stepping"
+ return "stepping"
elif enum == lldb.eStateCrashed:
- return "Crashed"
+ return "crashed"
elif enum == lldb.eStateDetached:
- return "Detached"
+ return "detached"
elif enum == lldb.eStateExited:
- return "Exited"
+ return "exited"
elif enum == lldb.eStateSuspended:
- return "Suspended"
+ return "suspended"
else:
raise Exception("Unknown stopReason enum")
def StopReasonString(enum):
"""Returns the stopReason string given an enum."""
if enum == lldb.eStopReasonInvalid:
- return "Invalid"
+ return "invalid"
elif enum == lldb.eStopReasonNone:
- return "None"
+ return "none"
elif enum == lldb.eStopReasonTrace:
- return "Trace"
+ return "trace"
elif enum == lldb.eStopReasonBreakpoint:
- return "Breakpoint"
+ return "breakpoint"
elif enum == lldb.eStopReasonWatchpoint:
- return "Watchpoint"
+ return "watchpoint"
elif enum == lldb.eStopReasonSignal:
- return "Signal"
+ return "signal"
elif enum == lldb.eStopReasonException:
- return "Exception"
+ return "exception"
elif enum == lldb.eStopReasonPlanComplete:
- return "PlanComplete"
+ return "plancomplete"
else:
raise Exception("Unknown stopReason enum")
More information about the lldb-commits
mailing list