Skip to content

"Create Function Here" has weird ARM vs Thumb behavior #1177

@percontation

Description

@percontation

Setup:

  1. I have a small raw binary, it's mostly thumb instructions
  2. I mark some functions as thumb, so Binary Ninja now shows the default architecture as thumb.
  3. There are additional chunks of data I would like to mark as thumb functions.

Behavior:

In the Linear Disassembly view, pressing "P" to mark new functions (on data that hasn't been identified as code) creates non-thumb ARM functions. In the right-click context menu, the "Create Function Here      P" option does not have a submenu that would allow creating a thumb function.

In the Hex Editor view, things are different. The default "P" action does create thumb functions, and the right-click context menu has a submenu that would allow me to pick ARM, Thumb, or whatever else I wanted.

Issue:

The default behavior of the "P" hotkey in Linear Disassembly view isn't what I wanted here. I'm not sure if it's incorrectly using ARM when it should be using thumb, or some heuristics about when to switch between ARM/thumb are just off in this case. Either way, I should have the option to override the default.

Hex Editor view behaves as desired (but obviously, is not convenient to access).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: UIIssue needs changes to the user interfaceEffort: TrivialIssues require < 1 day of workImpact: MediumIssue is impactful with a bad, or no, workaroundUI: GraphIssues with the FlowGraph class or Graph viewUI: LinearIssues with the Linear view

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions