Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add opname array toopcode.h of debug builds. #91428

Closed
Labels
3.11only security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)
@sweeneyde

Description

@sweeneyde

I suggest to include the following in opcode.h:

#ifdefPy_DEBUGconstchar*const_PyOpcode_OpName[256]= {    [0]="CACHE",    [1]="POP_TOP",    ...    [255]="DO_TRACING",};#endif

The 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_instr anddump_basicblock ofcompile.c become easier to understand.
  • One-off printf-style debugging of ceval.c and related functionality becomes easier.

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.11only security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp