mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2024-11-10 06:02:09 +00:00
Merge remote-tracking branch
'origin/GP-4667_emteere_PartialValueConstantReferenceDisplay' into Ghidra_11.2 (Closes #1564)
This commit is contained in:
commit
093f6115b6
@ -45,12 +45,12 @@ public class CodeUnitFormat {
|
||||
/**
|
||||
* Supported memory address shift cases (bits)
|
||||
*/
|
||||
private static final int[] SHIFT_CASES = new int[] { 1, 2, 8, 16, 32 };
|
||||
private static final int[] SHIFT_CASES = new int[] { 1, 2, 8, 16 };
|
||||
|
||||
/**
|
||||
* Supported memory address mask cases (mask value)
|
||||
*/
|
||||
private static final long[] MASK_CASES = new long[] { 0x0ff, 0x0ffff, 0x0ffffffff };
|
||||
private static final long[] MASK_CASES = new long[] { 0x0ffff, 0x0ffffffff };
|
||||
|
||||
/**
|
||||
* Default code unit format
|
||||
@ -834,6 +834,7 @@ public class CodeUnitFormat {
|
||||
if (addr.isMemoryAddress()) {
|
||||
|
||||
// Include "offset" prefix since addrOffset does not match originalValue
|
||||
if (options.includeScalarReferenceAdjustment) {
|
||||
list.add("offset ");
|
||||
|
||||
// Check for shift cases
|
||||
@ -859,6 +860,7 @@ public class CodeUnitFormat {
|
||||
return list;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: Check for "reasonable delta value", return null if bad value
|
||||
if (!scalarOperand) {
|
||||
|
Loading…
Reference in New Issue
Block a user