ghidra icon indicating copy to clipboard operation
ghidra copied to clipboard

Converting constants to a char sequence in assembly view does not reflect in the decompile view

Open fridtjof opened this issue 6 years ago • 2 comments

To Reproduce Steps to reproduce the behavior:

  1. Convert a constant in assembly view to a char sequence, using the "Convert" menu on right click.
  2. Refresh decompile view

Expected behavior The decompile view shows the constant in the same way as the assembly view.

Actual behavior The constant is being shown as an integer.

Screenshots image

Environment (please complete the following information):

  • OS: macOS 10.14.4
  • Java Version: 11.0.2
  • Ghidra Version: 9.0.2

fridtjof avatar Apr 28 '19 17:04 fridtjof

changing the type to char[3] in the decompiler for a global in a call to printf worked for me.. maybe only related to non globals/immediate values.

MrSapps avatar Jun 11 '19 11:06 MrSapps

Seems this is still an issue in 2022. Trying to parse a lot of chunk header IDs in a binary file reader and it's a lot of work to figure out what I'm looking at without seeing them as strings when I select convert.

Mgamerz avatar Sep 03 '22 15:09 Mgamerz

Can we do a bit better than this?

image

sad-dev avatar Jul 13 '23 02:07 sad-dev