Java Code Examples for ghidra.program.model.listing.Function#getPrototypeString()
The following examples show how to use
ghidra.program.model.listing.Function#getPrototypeString() .
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: FunctionSymbol.java From ghidra with Apache License 2.0 | 6 votes |
/** * @see ghidra.program.model.symbol.Symbol#getProgramLocation() */ @Override public ProgramLocation getProgramLocation() { lock.acquire(); try { if (!checkIsValid()) { return null; } Function f = (Function) getObject(); String signature = f.getPrototypeString(false, false); return new FunctionReturnTypeFieldLocation(getProgram(), address, 0, signature, f.getReturnType().getName()); } finally { lock.release(); } }
Example 2
Source File: FunctionSignatureTableColumn.java From ghidra with Apache License 2.0 | 6 votes |
String getSignature(Function function, Settings settings) { if (function == null) { return null; } StringBuilder buffy = new StringBuilder(); inline(function, settings, buffy); thunk(function, settings, buffy); noreturn(function, settings, buffy); String prototypeString = function.getPrototypeString(false, false); buffy.append(prototypeString); return buffy.toString(); }
Example 3
Source File: FunctionRowObjectToProgramLocationTableRowMapper.java From ghidra with Apache License 2.0 | 5 votes |
@Override public ProgramLocation map(FunctionRowObject rowObject, Program program, ServiceProvider serviceProvider) { Function function = rowObject.getFunction(); if (function == null) { return null; } return new FunctionSignatureFieldLocation(program, function.getEntryPoint(), null, 0, function.getPrototypeString(false, false)); }
Example 4
Source File: FunctionParameterCountTableColumn.java From ghidra with Apache License 2.0 | 5 votes |
@Override public ProgramLocation getProgramLocation(Address rowObject, Settings settings, Program program, ServiceProvider serviceProvider) { Function function = getFunctionContaining(rowObject, program); if (function != null) { return new FunctionNameFieldLocation(program, function.getEntryPoint(), 0, function.getPrototypeString(false, false), function.getName()); } return null; }
Example 5
Source File: FunctionNameTableColumn.java From ghidra with Apache License 2.0 | 5 votes |
@Override public ProgramLocation getProgramLocation(Address rowObject, Settings settings, Program program, ServiceProvider serviceProvider) { Function function = getFunctionContaining(rowObject, program); if (function != null) { return new FunctionNameFieldLocation(program, function.getEntryPoint(), 0, function.getPrototypeString(false, false), function.getName()); } return null; }
Example 6
Source File: FunctionSignatureTableColumn.java From ghidra with Apache License 2.0 | 5 votes |
@Override public ProgramLocation getProgramLocation(Function rowObject, Settings settings, Program program, ServiceProvider serviceProvider) { if (rowObject == null) { return null; } return new FunctionNameFieldLocation(program, rowObject.getEntryPoint(), 0, rowObject.getPrototypeString(false, false), rowObject.getName()); }
Example 7
Source File: FunctionToProgramLocationTableRowMapper.java From ghidra with Apache License 2.0 | 4 votes |
@Override public ProgramLocation map(Function rowObject, Program program, ServiceProvider serviceProvider) { return new FunctionSignatureFieldLocation(program, rowObject.getEntryPoint(), null, 0, rowObject.getPrototypeString(false, false)); }