Skip to content

"Display as" not respected in xrefs view #7191

@comex

Description

@comex

Version and Platform (required):

  • Binary Ninja Version: 5.2.8012-dev (aec518eb)
  • Edition: Commercial
  • OS: macOS
  • OS Version: 15.5 (24F74)
  • CPU Architecture: arm64

Bug Description:
The line previews in the Cross References view ignore any 'Display As' overrides affecting the line in question.

This also affects str(current_function.hlil) although I don't know whether that's somehow intentional.

Possibly related to #6079 ("Make preview column in cross references sensitive to active language representation"), although that seems to be working already when I try it (I already see Pseudo C or Pseudo Rust in the preview if I have those selected.)

Steps To Reproduce:
Open this simple binary.

In the function abcd, change 0x41424344 to appear as a character constant.

Then click on the variable x and look at the cross references view. The preview will still show 0x41424344 rather than the character constant.

Expected Behavior:
The preview should match the regular view.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: UIIssue needs changes to the user interfaceEffort: LowIssue should take < 1 weekImpact: LowIssue is a papercut or has a good, supported workaroundUI: Cross ReferencesIssues with the Cross References widget

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions