2020-03-02 19:06:28 +00:00
Disassembly Context Menu
==============================
2020-03-03 17:03:49 +00:00
.. toctree ::
:maxdepth: 1
:glob:
disassembly-context-menu/*
2020-07-26 04:56:46 +00:00
The Disassembly context menu contains actions that operate with selected instruction in disassembly and graph widgets.
2020-03-03 17:03:49 +00:00
2020-03-02 19:06:28 +00:00
Copy
----------------------------------------
**Description:** Copy the selected text.
2020-07-26 04:56:46 +00:00
**Steps:** Right-click on a selected text and choose `` Copy ``
2020-03-02 19:06:28 +00:00
**Shortcut:** :kbd: `Ctrl` + :kbd: `C`
Copy Address
----------------------------------------
**Description:** Copy the address of the location under the cursor.
2020-07-26 04:56:46 +00:00
**Steps:** Right-click on a location and choose `` Copy address ``
2020-03-02 19:06:28 +00:00
**Shortcut:** :kbd: `Ctrl` + :kbd: `Shift` + :kbd: `C`
Show address in another widget
----------------------------------------
**Description:** Show the selected address or item in another opened widget, or open a new one.
2020-07-26 04:56:46 +00:00
**Steps:** Right-click on an address or an item in instruction and choose the `` Show in `` sub-menu
2020-03-02 19:06:28 +00:00
Add Comment
----------------------------------------
**Description:** Add a comment in the current location.
2020-07-26 04:56:46 +00:00
**Steps:** Right-click an address and choose `Add Comment` .
2020-03-02 19:06:28 +00:00
**Shortcut:** :kbd: `;`
Add Flag
----------------------------------------
2020-07-26 04:56:46 +00:00
**Description:** Add a flag to the selected item or location by bookmarking and giving it a name.
2020-03-02 19:06:28 +00:00
**Steps:** Right-click an address or item and choose `` Add Flag `` . This will open the Flag dialog in which you can name the location.
Rename
----------------------------------------
2020-12-04 17:08:56 +00:00
**Description:** Rename the flag, function or local variable at current location. If empty, remove the currently associated name.
2020-03-02 19:06:28 +00:00
**Steps:** Right-click an address or item and choose `` Rename ``
**Shortcut:** :kbd: `N`
Edit Function
----------------------------------------
2020-07-26 04:56:46 +00:00
**Description:** Open the Function edit dialog in which you can define the name of the function, its start address, stack size, calling convention, and more.
2020-03-02 19:06:28 +00:00
2020-07-26 04:56:46 +00:00
**Steps:** Right-click on a location inside a function and choose `` Edit function `` .
2020-03-02 19:06:28 +00:00
**Shortcut:** :kbd: `Shift` + :kbd: `P`
2020-06-27 18:51:05 +00:00
Re-type Local Variables
2020-03-02 19:06:28 +00:00
----------------------------------------
**Description:** Rename or set the types of the function's variables and arguments.
2020-07-26 04:56:46 +00:00
**Steps:** Right-click anywhere inside a function and then choose `` Re-type Local Variables `` .
2020-03-02 19:06:28 +00:00
**Shortcut:** :kbd: `Y`
2020-07-26 04:56:46 +00:00
Delete a Comment
2020-03-02 19:06:28 +00:00
----------------------------------------
**Description:** Delete the comment at the current address. This option only available for addresses with user-defined comments.
2020-07-26 04:56:46 +00:00
**Steps:** Right-click on an instruction with a user-defined comment and choose `` Delete comment ``
2020-03-02 19:06:28 +00:00
2020-07-26 04:56:46 +00:00
Delete a Flag
2020-03-02 19:06:28 +00:00
----------------------------------------
**Description:** Delete the flag at the current location.
2020-07-26 04:56:46 +00:00
**Steps:** Right-click on a location with a flag and choose `` Delete flag `` .
2020-03-02 19:06:28 +00:00
2020-07-26 04:56:46 +00:00
Undefine a Function
2020-03-02 19:06:28 +00:00
----------------------------------------
**Description:** Undefine the current function. This will remove the function and its associated meta-data. You can always re-define the function, but every change that was made to the previously defined function (e.g variable renaming) would not be restored.
**Steps:** Right-Click on the name of the function and choose `` Undefine function `` .
**Shortcut:** :kbd: `U`
Define a function
----------------------------------------
**Description:** Define a function starting from the current location. Cutter will automatically guess the size of the function. This can later be changed using the function editor.
2020-07-26 04:56:46 +00:00
**Steps:** Right-click on an instruction and choose `` Define function here `` .
2020-03-02 19:06:28 +00:00
**Shortcut:** :kbd: `P`
2020-07-26 04:56:46 +00:00
Set Structure Offset
2020-03-02 19:06:28 +00:00
----------------------------------------
**Description:** Present the current value is an offset in a structure.
**Steps:** -> Structure offset
2020-07-26 04:56:46 +00:00
Link a Type to Address
2020-03-02 19:06:28 +00:00
----------------------------------------
**Description:** You can link type, enum or structure to a specific address. Types, structures and enums can be defined in the Types widget.
2020-07-26 04:56:46 +00:00
**Steps:** Right-click on an instruction and choose `` Link Type to Address `` .
2020-03-02 19:06:28 +00:00
**Shortcut:** :kbd: `L`
Show Cross References
----------------------------------------
2020-07-26 04:56:46 +00:00
**Description:** Show X-Refs from and to the specific location. This option will open Cutter's X-Refs dialog in which you will be able to see a list of X-Refs from and to the selected location, in addition to a preview of each cross-reference to quickly inspect the different usages.
2020-03-02 19:06:28 +00:00
2020-07-26 04:56:46 +00:00
**Steps:** Right-click on an instruction and choose `` Show X-Refs ``
2020-03-02 19:06:28 +00:00
2020-03-03 17:03:49 +00:00
**Shortcut:** :kbd: `X`