| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 |
|
| 6 | |
| 7 | Helper classes for ABI parser
|
| 8 |
|
| 9 |
|
| 10 | ABI_DIR = "Documentation/ABI/"
|
| 11 |
|
| 12 |
|
| 13 | class AbiDebug:
|
| 14 |
|
| 15 |
|
| 16 | WHAT_PARSING = 1 |
| 17 | WHAT_OPEN = 2 |
| 18 | DUMP_ABI_STRUCTS = 4 |
| 19 | UNDEFINED = 8 |
| 20 | REGEX = 16 |
| 21 | SUBGROUP_MAP = 32 |
| 22 | SUBGROUP_DICT = 64 |
| 23 | SUBGROUP_SIZE = 128 |
| 24 | GRAPH = 256 |
| 25 |
|
| 26 | |
| 27 | DEBUG_HELP = """
|
| 28 | 1 - enable debug parsing logic
|
| 29 | 2 - enable debug messages on file open
|
| 30 | 4 - enable debug for ABI parse data
|
| 31 | 8 - enable extra debug information to identify troubles
|
| 32 | with ABI symbols found at the local machine that
|
| 33 | weren't found on ABI documentation (used only for
|
| 34 | undefined subcommand)
|
| 35 | 16 - enable debug for what to regex conversion
|
| 36 | 32 - enable debug for symbol regex subgroups
|
| 37 | 64 - enable debug for sysfs graph tree variable
|
| 38 | 128 - enable debug of search groups
|
| 39 | 256 - enable displaying refrence tree graphs for undefined symbols.
|
| 40 | """
|