Module implementing a widget to visualize the Python Disassembly for some Python sources.
None |
PythonDisViewer | Class implementing a widget to visualize the Python Disassembly for some Python sources. |
PythonDisViewerModes | Class implementing the disassembly viewer operation modes. |
linestarts | Function to get the line starts for the given code object. |
tryCompile | Function to attempt to compile the given source, first as an expression and then as a statement if the first approach fails. |
Class implementing a widget to visualize the Python Disassembly for some Python sources.
CodeInfoRole |
EndLineRole |
StartLineRole |
None |
PythonDisViewer | Constructor |
__clearSelection | Private method to clear all selected items. |
__codeInfoContextMenuRequested | Private slot to show the context menu of the code info widget. |
__collapseAllCodeInfo | Private slot to collapse all items of the code info widget. |
__collapseAllDis | Private slot to collapse all items of the disassembly widget. |
__configure | Private method to open the configuration dialog. |
__createCodeInfo | Private method to create a dictionary containing the code info data. |
__createErrorItem | Private method to create a top level error item. |
__createInstructionItem | Private method to create an item for the given instruction. |
__createTitleItem | Private method to create a title item. |
__disContextMenuRequested | Private slot to show the context menu of the disassembly widget. |
__disItemClicked | Private slot handling a user click on a Disassembly node item. |
__disViewerStateChanged | Private slot to toggle the display of the Disassembly viewer. |
__disassembleObject | Private method to disassemble the given code object recursively. |
__editorChanged | Private slot to handle a change of the current editor. |
__editorLanguageChanged | Private slot to handle a change of the editor language. |
__editorLineChanged | Private slot to handle a mouse button double click in the editor. |
__editorSaved | Private slot to reload the Disassembly after the connected editor was saved. |
__expandAllCodeInfo | Private slot to expand all items of the code info widget. |
__expandAllDis | Private slot to expand all items of the disassembly widget. |
__lastEditorClosed | Private slot to handle the last editor closed signal of the view manager. |
__loadDIS | Private method to generate the Disassembly from the source of the current editor and visualize it. |
__resizeCodeInfoColumns | Private method to resize the columns of the code info widget to suitable values. |
__resizeDisColumns | Private method to resize the columns of the disassembly widget to suitable values. |
__selectChildren | Private method to select children of the given item covering the given line number. |
__selectItemForEditorLine | Private slot to select the items corresponding with the cursor line of the current editor. |
__showCodeInfo | Private slot handling the context menu action to show code info. |
__showCodeInfoData | Private method to show the passed code info data. |
__styleLabels | Private method to style the info labels iaw. |
__updateItemEndLine | Private method to update an items end line based on its children. |
clear | Public method to clear the display. |
createCodeInfoItems | Function to create code info items for the given list. |
hide | Public slot to hide the DIS viewer. |
preferencesChanged | Public slot handling changes of the Disassembly viewer settings. |
resizeEvent | Protected method to handle resize events. |
show | Public slot to show the DIS viewer. |
showDisassembly | Public slot to receive a code disassembly from the debug client. |
shutdown | Public method to perform shutdown actions. |
None |
Constructor
Private method to clear all selected items.
Private slot to show the context menu of the code info widget.
Private slot to collapse all items of the code info widget.
Private slot to collapse all items of the disassembly widget.
Private method to open the configuration dialog.
Private method to create a dictionary containing the code info data.
Private method to create a top level error item.
Private method to create an item for the given instruction.
Private method to create a title item.
Private slot to show the context menu of the disassembly widget.
Private slot handling a user click on a Disassembly node item.
Private slot to toggle the display of the Disassembly viewer.
Private method to disassemble the given code object recursively.
Private slot to handle a change of the current editor.
Private slot to handle a change of the editor language.
Private slot to handle a mouse button double click in the editor.
Private slot to reload the Disassembly after the connected editor was saved.
Private slot to expand all items of the code info widget.
Private slot to expand all items of the disassembly widget.
Private slot to handle the last editor closed signal of the view manager.
Private method to generate the Disassembly from the source of the current editor and visualize it.
Private method to resize the columns of the code info widget to suitable values.
Private method to resize the columns of the disassembly widget to suitable values.
Private method to select children of the given item covering the given line number.
Private slot to select the items corresponding with the cursor line of the current editor.
Private slot handling the context menu action to show code info.
Private method to show the passed code info data.
Private method to style the info labels iaw. selected colors.
Private method to update an items end line based on its children.
Public method to clear the display.
Function to create code info items for the given list.
Public slot to hide the DIS viewer.
Public slot handling changes of the Disassembly viewer settings.
Protected method to handle resize events.
Public slot to show the DIS viewer.
Public slot to receive a code disassembly from the debug client.
Public method to perform shutdown actions.
Class implementing the disassembly viewer operation modes.
SOURCEDISASSEMBLY |
TRACEBACK |
None |
None |
None |
Function to get the line starts for the given code object.
Function to attempt to compile the given source, first as an expression and then as a statement if the first approach fails.