mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-06-02 03:57:13 +08:00
Merge remote-tracking branch
'origin/GP-4203_ghidra1_AutoDefaultReferenceInByteMappedBlock' into patch (Closes #6081)
This commit is contained in:
+1
-6
@@ -2094,13 +2094,8 @@ public class CodeManager implements ErrorHandler, ManagerDB {
|
|||||||
* data.
|
* data.
|
||||||
*/
|
*/
|
||||||
private void addDataReferences(Data data, List<Address> longSegmentAddressList) {
|
private void addDataReferences(Data data, List<Address> longSegmentAddressList) {
|
||||||
Memory mem = program.getMemory();
|
|
||||||
MemoryBlock block = mem.getBlock(data.getAddress());
|
|
||||||
if (block == null || !block.isInitialized()) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
DataType dt = data.getDataType();
|
DataType dt = data.getDataType();
|
||||||
if (Address.class.equals(dt.getValueClass(null))) {
|
if (Address.class.equals(dt.getValueClass(data))) {
|
||||||
Object obj = data.getValue();
|
Object obj = data.getValue();
|
||||||
if (obj instanceof Address) {
|
if (obj instanceof Address) {
|
||||||
// creates a reference unless the value is 0 or all f's
|
// creates a reference unless the value is 0 or all f's
|
||||||
|
|||||||
Reference in New Issue
Block a user