mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-04 18:29:37 +02:00
Merge remote-tracking branch 'origin/patch'
This commit is contained in:
commit
54b4f4cacb
5 changed files with 45 additions and 30 deletions
|
@ -2094,13 +2094,8 @@ public class CodeManager implements ErrorHandler, ManagerDB {
|
|||
* data.
|
||||
*/
|
||||
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();
|
||||
if (Address.class.equals(dt.getValueClass(null))) {
|
||||
if (Address.class.equals(dt.getValueClass(data))) {
|
||||
Object obj = data.getValue();
|
||||
if (obj instanceof Address) {
|
||||
// creates a reference unless the value is 0 or all f's
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue