Debugger: Copy Actions

In the course of debugging, the user may want to capture certain state and annotations from the dynamic context into the static. This might include the contents of the stack, the heap, or example data stored in uninitialized memory. The copy actions allow for the easy movement of data and annotations from traces into programs. The actions are all accessed via the Debugger menu.

Actions

Copy Into Current Program

This action requires a selection of memory in a dynamic view. It copies selected contents from the current trace (at the current time) into the current program. The Copy Dialog is presented with the current program set as the destination.

Copy Into New Program

This action requires a selection of memory in a dynamic view. It copies selected contents from the current trace (at the current time) into a new program. The Copy Dialog is presented with <New Program> set as the destination.

Export Trace View

This action is available whenever a trace is open. The Export Dialog is presented for the current trace at the current time. This provides a mechanism for capturing a particular point in time from a trace to a file. The exported image can be analyzed in Ghidra or another tool.

Copy Dialog

The Copy Into... actions both present the same dialog: (The Export Trace View action uses a different dialog.)

The dialog consists of several options, followed by a table that displays the proposed ranges to copy. For selected ranges not contained in the destination program's memory, new blocks are proposed. The source selection is always broken apart by regions defined in the trace's memory manager.

Options

Table Columns

The table displays the proposal and allows for some adjustments. It has the following columns:

The Copy button confirms the dialog and copies all proposed ranges in the table. If successful, the dialog is closed. The Cancel button dismisses the dialog without performing any operation. The Reset button resets the proposal, in case entries were accidentally removed or modified.