Merge remote-tracking branch 'origin/GP-1-dragonamcher-decompiler-stack-trace-10-29-21'

This commit is contained in:
Ryan Kurtz
2021-10-29 11:40:28 -04:00
@@ -31,6 +31,7 @@ import ghidra.program.model.pcode.*;
import ghidra.program.model.symbol.Symbol; import ghidra.program.model.symbol.Symbol;
import ghidra.program.model.symbol.SymbolTable; import ghidra.program.model.symbol.SymbolTable;
import ghidra.program.util.ProgramLocation; import ghidra.program.util.ProgramLocation;
import ghidra.util.UndefinedFunction;
import ghidra.util.data.DataTypeParser.AllowedDataTypes; import ghidra.util.data.DataTypeParser.AllowedDataTypes;
/** /**
@@ -216,7 +217,7 @@ public abstract class AbstractDecompilerAction extends DockingAction {
// prefer the decompiler's function reference over the program location's address // prefer the decompiler's function reference over the program location's address
Function function = getFunction(context); Function function = getFunction(context);
if (function != null) { if (function != null && !(function instanceof UndefinedFunction)) {
return function.getSymbol(); return function.getSymbol();
} }