-
-
Notifications
You must be signed in to change notification settings - Fork 33.2k
Closed
Labels
3.11only security fixesonly security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)
Description
I suggest to include the following in opcode.h:
#ifdef Py_DEBUG
const char *const _PyOpcode_OpName[256] = {
[0] = "CACHE",
[1] = "POP_TOP",
...
[255] = "DO_TRACING",
};
#endifThe goal is to make debugging easier. Possible uses:
- This would greatly improve the readability of the output of the LLTRACE feature of ceval.
- This could help make opcode stats files readable between different interpreters without worry of opcode mismatches.
- Other debugging faculties like the
#if 0-ed outdump_instranddump_basicblockofcompile.cbecome easier to understand. - One-off printf-style debugging of ceval.c and related functionality becomes easier.
isidentical and brandtbucher
Metadata
Metadata
Assignees
Labels
3.11only security fixesonly security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)