diff options
| author | Johnny Chen <johnny.chen@apple.com> | 2010-10-07 22:15:58 +0000 |
|---|---|---|
| committer | Johnny Chen <johnny.chen@apple.com> | 2010-10-07 22:15:58 +0000 |
| commit | 28ae29420a66397cebbfdb0f226c7bba190beca3 (patch) | |
| tree | 5465aa7bbfec6430b9a7fb1f9f17bbfea30a9ea5 /lldb/test/lldbtest.py | |
| parent | 33c1eb16e890d4b3d67c9dafc6ab22492af08fec (diff) | |
| download | bcm5719-llvm-28ae29420a66397cebbfdb0f226c7bba190beca3.tar.gz bcm5719-llvm-28ae29420a66397cebbfdb0f226c7bba190beca3.zip | |
Move the enum to string utility functions from lldbtest.py to lldbuti.py and
update the affected API clients.
llvm-svn: 115995
Diffstat (limited to 'lldb/test/lldbtest.py')
| -rw-r--r-- | lldb/test/lldbtest.py | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/lldb/test/lldbtest.py b/lldb/test/lldbtest.py index a313be4b864..3876cae3666 100644 --- a/lldb/test/lldbtest.py +++ b/lldb/test/lldbtest.py @@ -165,58 +165,6 @@ def CMD_MSG(str, exe): return "'%s' compares successfully" % str # -# Returns the stateType string given an enum. -# -def StateTypeString(enum): - if enum == lldb.eStateInvalid: - return "Invalid" - elif enum == lldb.eStateUnloaded: - return "Unloaded" - elif enum == lldb.eStateAttaching: - return "Attaching" - elif enum == lldb.eStateLaunching: - return "Launching" - elif enum == lldb.eStateStopped: - return "Stopped" - elif enum == lldb.eStateRunning: - return "Running" - elif enum == lldb.eStateStepping: - return "Stepping" - elif enum == lldb.eStateCrashed: - return "Crashed" - elif enum == lldb.eStateDetached: - return "Detached" - elif enum == lldb.eStateExited: - return "Exited" - elif enum == lldb.eStateSuspended: - return "Suspended" - else: - raise Exception("Unknown stopReason enum") - -# -# Returns the stopReason string given an enum. -# -def StopReasonString(enum): - if enum == lldb.eStopReasonInvalid: - return "Invalid" - elif enum == lldb.eStopReasonNone: - return "None" - elif enum == lldb.eStopReasonTrace: - return "Trace" - elif enum == lldb.eStopReasonBreakpoint: - return "Breakpoint" - elif enum == lldb.eStopReasonWatchpoint: - return "Watchpoint" - elif enum == lldb.eStopReasonSignal: - return "Signal" - elif enum == lldb.eStopReasonException: - return "Exception" - elif enum == lldb.eStopReasonPlanComplete: - return "PlanComplete" - else: - raise Exception("Unknown stopReason enum") - -# # Returns an env variable array from the os.environ map object. # def EnvArray(): |

