[all-commits] [llvm/llvm-project] 6c9f3f: [crashlog] Turn crash log parsing modes into a Pyt...
Jonas Devlieghere via All-commits
all-commits at lists.llvm.org
Mon Nov 2 19:42:51 PST 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 6c9f3fe908a70a646e619a1355df451c06f6c3a1
https://github.com/llvm/llvm-project/commit/6c9f3fe908a70a646e619a1355df451c06f6c3a1
Author: Jonas Devlieghere <jonas at devlieghere.com>
Date: 2020-11-02 (Mon, 02 Nov 2020)
Changed paths:
M lldb/examples/python/crashlog.py
Log Message:
-----------
[crashlog] Turn crash log parsing modes into a Python 'enum' (NFC)
Python doesn't support enums before PEP 435, but using a class with
constants is how it's commonly emulated. It can be converted into a real
Enum (in Python 3.4 and later) by extending the Enum class:
class CrashLogParseMode(Enum):
NORMAL = 0
THREAD = 1
IMAGES = 2
THREGS = 3
SYSTEM = 4
INSTRS = 5
More information about the All-commits
mailing list