View Base Classes
angr management provides several base classes for creating views. Views are UI components that display different aspects of the binary analysis.BaseView
The base class for all main views.Constructor
The category of the view (e.g., “disassembly”, “pseudocode”, “hex”)
The workspace this view belongs to
Default docking position: “center”, “left”, “right”, “top”, or “bottom”
Properties
The workspace containing this view
The view category
Where the view should dock by default
Index number for this view instance (used in caption)
Base caption text for the view
Full caption including index (read-only property)
Icon for the view
Methods
focus
refresh
reload
InstanceView
Base class for views associated with an Instance.Constructor
The view category
The workspace this view belongs to
Default docking position
The instance this view is associated with
Properties
The instance containing project and analysis data
The current view state being published
Methods
on_focused
notify_view_state_updated
FunctionView
Base class for views that display function-specific content.Constructor
Properties
The currently displayed function (read/write property)
SynchronizedView
Base class for views that can be synchronized with other views.Properties
The synchronization state shared with other views
Methods
desync
sync_with_state_object
The view state to synchronize with, or None to create a new isolated state
sync_from_state
set_synchronized_cursor_address
The address to synchronize, or None to clear
on_synchronized_cursor_address_changed
set_synchronized_highlight_regions
The regions to highlight
on_synchronized_highlight_regions_changed
on_synchronized_view_group_changed
get_synchronize_with_submenu
A menu containing available view groups to synchronize with
SynchronizedInstanceView
Base class for views that are associated with an instance and can be synchronized. CombinesInstanceView and SynchronizedView functionality.
Constructor
SynchronizedFunctionView
Base class for views that are function-specific and can be synchronized. CombinesFunctionView and SynchronizedView functionality.
Constructor
ViewState
Represents the state of a view that can be published to other components.Constructor
List of cursor addresses in the view
Properties
List of cursor addresses
SynchronizedViewState
State tracking for synchronized views.Properties
Set of views participating in synchronization
The synchronized cursor address
Highlight regions contributed by each view
Methods
register_view
The view to register
unregister_view
The view to unregister
Common View Categories
The following view categories are used in angr management:disassembly- Disassembly view (graph and linear modes)pseudocode- Decompiled pseudocode viewhex- Hex editor viewfunctions- Functions list viewstrings- Strings viewconsole- Python console viewlog- Log messages viewjobs- Background jobs viewsymexec- Symbolic execution viewstates- States list viewtraces- Traces viewbreakpoints- Breakpoints viewregisters- Registers viewstack- Stack viewtypes- Types viewpatches- Patches viewproximity- Proximity graph viewcall_explorer- Call explorer viewdata_dependency- Data dependency graph view