Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/Ghidra_11.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanmkurtz committed May 9, 2024
2 parents 90925d1 + c6bf1f3 commit f02e6ea
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public enum DWARFAttribute {
DW_AT_call_all_tail_calls(0x7c, flag),
DW_AT_call_return_pc(0x7d, address),
DW_AT_call_value(0x7e, exprloc),
DW_AT_call_origin(0x7f, exprloc),
DW_AT_call_origin(0x7f, reference),
DW_AT_call_parameter(0x80, reference),
DW_AT_call_pc(0x81, address),
DW_AT_call_tail_call(0x82, flag),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1744,7 +1744,9 @@ private PcodeOp[] doCallOtherPcodeInjection(Instruction instr, Varnode ins[], Va
con.refAddr = con.callAddr;
con.inputlist = inputs;
con.output = new ArrayList<Varnode>();
con.output.add(out);
if (out != null) {
con.output.add(out);
}
try {
return payload.getPcode(prog, con);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@
import ghidra.program.model.address.*;
import ghidra.program.model.lang.*;
import ghidra.program.model.listing.*;
import ghidra.program.model.mem.MemoryAccessException;
import ghidra.program.model.mem.MemoryBlock;
import ghidra.program.model.mem.*;
import ghidra.program.model.symbol.*;
import ghidra.util.Msg;
import ghidra.util.exception.CancelledException;
Expand Down Expand Up @@ -619,15 +618,13 @@ private boolean checkLanguageCompilerSpec(Program program) {
* @return whether the function is external
*/
private static boolean functionIsExternal(Function function) {
if (function.isExternal()) {
return true;
}
Memory mem = function.getProgram().getMemory();
Address entryPoint = function.getEntryPoint();
MemoryBlock block = function.getProgram().getMemory().getBlock(entryPoint);
if (!block.isInitialized()) {
if (function.isExternal() || !mem.contains(entryPoint)) {
return true;
}
return false;
MemoryBlock block = function.getProgram().getMemory().getBlock(entryPoint);
return block == null || !block.isInitialized() || block.isExternalBlock();
}

private void exclude(DomainFile domainFile, Function function,
Expand Down

0 comments on commit f02e6ea

Please sign in to comment.