Java Code Examples for ghidra.program.model.lang.Register#getChildRegisters()
The following examples show how to use
ghidra.program.model.lang.Register#getChildRegisters() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AbstractProgramContext.java From ghidra with Apache License 2.0 | 6 votes |
/** * Set those bits in the nonFlowingContextRegisterMask which should not * flow with context. * @param contextReg context register piece */ private void initContextBitMasks(Register contextReg) { byte[] subMask = contextReg.getBaseMask(); if (!contextReg.followsFlow()) { hasNonFlowingContext = true; for (int i = 0; i < nonFlowingContextRegisterMask.length; i++) { nonFlowingContextRegisterMask[i] |= subMask[i]; flowingContextRegisterMask[i] &= ~subMask[i]; } } else { for (int i = 0; i < flowingContextRegisterMask.length; i++) { flowingContextRegisterMask[i] |= subMask[i]; } if (contextReg.hasChildren()) { for (Register childReg : contextReg.getChildRegisters()) { initContextBitMasks(childReg); } } } }
Example 2
Source File: ListingHighlightProvider.java From ghidra with Apache License 2.0 | 5 votes |
private void accumulateSubRegisters(List<String> names, Register register) { names.add(register.getName()); List<Register> childRegisters = register.getChildRegisters(); for (Register childRegister : childRegisters) { accumulateSubRegisters(names, childRegister); } }
Example 3
Source File: AbstractStoredProgramContext.java From ghidra with Apache License 2.0 | 4 votes |
private void addRegisterWithValue(Register reg) { registersWithValues.add(reg); for (Register child : reg.getChildRegisters()) { addRegisterWithValue(child); } }
Example 4
Source File: RegisterTree.java From ghidra with Apache License 2.0 | 4 votes |
public RegisterTreeNode(Register register) { this.register = register; for (Register childRegister : register.getChildRegisters()) { addNode(new RegisterTreeNode(childRegister)); } }
Example 5
Source File: EditRegisterReferencePanel.java From ghidra with Apache License 2.0 | 4 votes |
private void addChildRegisters(Register reg, Set<Register> regSet) { for (Register child : reg.getChildRegisters()) { regSet.add(child); addChildRegisters(child, regSet); } }
Example 6
Source File: ListingHighlightProvider.java From ghidra with Apache License 2.0 | 4 votes |
private void addChildren(Register reg, Set<Register> regSet) { for (Register r : reg.getChildRegisters()) { regSet.add(r); addChildren(r, regSet); } }