Java Code Examples for ghidra.program.model.symbol.SymbolTable#removeSymbolSpecial()

The following examples show how to use ghidra.program.model.symbol.SymbolTable#removeSymbolSpecial() . 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: LabelMarkupUtils.java    From ghidra with Apache License 2.0 5 votes vote down vote up
public static void removeDefaultLabels( Program destinationProgram, Address address ) {
    SymbolTable symbolTable = destinationProgram.getSymbolTable();
    Symbol[] symbols = symbolTable.getSymbols( address );
    for ( Symbol symbol : symbols ) {
        if ( symbol instanceof FunctionSymbol ) {
            continue;
        }
        
        if ( !symbol.isDynamic() ) {
            continue;
        }
        
        symbolTable.removeSymbolSpecial( symbol );
    }
}
 
Example 2
Source File: LabelMarkupUtils.java    From ghidra with Apache License 2.0 5 votes vote down vote up
public static void removeAllLabels( Program destinationProgram, Address address ) {
    SymbolTable symbolTable = destinationProgram.getSymbolTable();
    Symbol[] symbols = symbolTable.getSymbols( address );
    for ( Symbol symbol : symbols ) {
        if ( symbol instanceof FunctionSymbol ) {
            continue;
        }
        symbolTable.removeSymbolSpecial( symbol );
    }
}