Ghidra: SymbolType is missing a LABEL static field

Created on 21 Jun 2019  路  4Comments  路  Source: NationalSecurityAgency/ghidra

There is no SymbolType.LABEL which seems expected considering there are SymbolType.FUNCTION et al.

Environment:

  • OS: macOS 10.14.5
  • Java Version: 12.0.1
  • Ghidra Version: 9.0.4
Bug

Most helpful comment

Well, it's definitely counterintuitive that the "Label" symbol type constant is called CODE while all the other ones match pretty closely. Is there a reason why it shouldn't change to LABEL or the description change to "Code"?

All 4 comments

@rgov can I close this out?

Well, it's definitely counterintuitive that the "Label" symbol type constant is called CODE while all the other ones match pretty closely. Is there a reason why it shouldn't change to LABEL or the description change to "Code"?

It looks like we recently renamed the name to "Label" but didn't fix up the name of the variable, probably for backwards compatibility purposes. We should rename it to LABEL, and deprecate CODE, removing it in a few releases so we don't break anything.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

CalcProgrammer1 picture CalcProgrammer1  路  3Comments

toor-de-force picture toor-de-force  路  3Comments

loudinthecloud picture loudinthecloud  路  3Comments

ghost picture ghost  路  3Comments

marcushall42 picture marcushall42  路  3Comments