mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2024-11-22 04:05:39 +00:00
Merge remote-tracking branch 'origin/caheckman_GT-2708' into Ghidra_9.0.2
This commit is contained in:
commit
da7a2e2235
@ -76,8 +76,9 @@ public class DecompilerHoverProvider extends AbstractHoverProvider {
|
||||
|
||||
Varnode vn = token.getVarnode();
|
||||
if (vn != null) {
|
||||
if (vn.getHigh() instanceof HighGlobal) {
|
||||
reference = vn.getAddress();
|
||||
HighVariable highVar = vn.getHigh();
|
||||
if (highVar instanceof HighGlobal) {
|
||||
reference = highVar.getRepresentative().getAddress();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -40,8 +40,7 @@ import ghidra.app.plugin.core.decompile.DecompileClipboardProvider;
|
||||
import ghidra.program.model.address.*;
|
||||
import ghidra.program.model.listing.Function;
|
||||
import ghidra.program.model.listing.Program;
|
||||
import ghidra.program.model.pcode.PcodeOp;
|
||||
import ghidra.program.model.pcode.Varnode;
|
||||
import ghidra.program.model.pcode.*;
|
||||
import ghidra.program.util.ProgramLocation;
|
||||
import ghidra.program.util.ProgramSelection;
|
||||
import ghidra.util.*;
|
||||
@ -419,6 +418,10 @@ public class DecompilerPanel extends JPanel implements FieldMouseListener, Field
|
||||
}
|
||||
|
||||
}
|
||||
HighVariable highVar = vn.getHigh();
|
||||
if (highVar instanceof HighGlobal) {
|
||||
vn = highVar.getRepresentative();
|
||||
}
|
||||
if (vn.isAddress()) {
|
||||
Address addr = vn.getAddress();
|
||||
if (addr.isMemoryAddress()) {
|
||||
|
Loading…
Reference in New Issue
Block a user