libabigail
Public Member Functions | List of all members
symtab_filter Class Reference

The symtab filter is the object passed to the symtab object in order to iterate over the symbols in the symtab while applying filters. More...

#include <abg-symtab-reader.h>

Public Member Functions

bool matches (const elf_symbol &symbol) const
 symtab_filter implementations More...
 
void set_functions (bool new_value=true)
 Enable or disable function filtering. More...
 
void set_kernel_symbols (bool new_value=true)
 Enable or disable kernel symbol filtering. More...
 
void set_public_symbols (bool new_value=true)
 Enable or disable public symbol filtering. More...
 
void set_undefined_symbols (bool new_value=true)
 Enable or disable undefined symbol filtering. More...
 
void set_variables (bool new_value=true)
 Enable or disable variable filtering. More...
 

Detailed Description

The symtab filter is the object passed to the symtab object in order to iterate over the symbols in the symtab while applying filters.

The general idea is that it consists of a set of optionally enforced flags, such as 'functions' or 'variables'. If not set, those are not filtered for, neither inclusive nor exclusive. If set they are all ANDed together.

Definition at line 37 of file abg-symtab-reader.h.

Member Function Documentation

◆ matches()

bool matches ( const elf_symbol symbol) const

symtab_filter implementations

Determine whether a symbol is matching the filter criteria of this filter object. In terms of a filter functionality, you would _not_ filter out this symbol if it passes this (i.e. returns true).

Parameters
symbolThe Elf symbol under test.
Returns
whether the symbol matches all relevant / required criteria

Definition at line 45 of file abg-symtab-reader.cc.

◆ set_functions()

void set_functions ( bool  new_value = true)
inline

Enable or disable function filtering.

Parameters
new_valuewhether to filter for functions

Definition at line 50 of file abg-symtab-reader.h.

◆ set_kernel_symbols()

void set_kernel_symbols ( bool  new_value = true)
inline

Enable or disable kernel symbol filtering.

Parameters
new_valuewhether to filter for kernel symbols

Definition at line 78 of file abg-symtab-reader.h.

◆ set_public_symbols()

void set_public_symbols ( bool  new_value = true)
inline

Enable or disable public symbol filtering.

Parameters
new_valuewhether to filter for public symbols

Definition at line 64 of file abg-symtab-reader.h.

◆ set_undefined_symbols()

void set_undefined_symbols ( bool  new_value = true)
inline

Enable or disable undefined symbol filtering.

Parameters
new_valuewhether to filter for undefined symbols

Definition at line 71 of file abg-symtab-reader.h.

◆ set_variables()

void set_variables ( bool  new_value = true)
inline

Enable or disable variable filtering.

Parameters
new_valuewhether to filter for variables

Definition at line 57 of file abg-symtab-reader.h.


The documentation for this class was generated from the following files: