Skip to content

Commit

Permalink
Remove Module::findFunctionByEntryOffset
Browse files Browse the repository at this point in the history
This was added by c848409 in 2009, but never implemented. It looks
like this was copy/pasted from the earliest Symtab rewrite.
  • Loading branch information
hainest committed Oct 9, 2023
1 parent 7958fd6 commit 26a1da5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
10 changes: 0 additions & 10 deletions symtabAPI/doc/API/Symtab/Module.tex
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,6 @@ \subsection{Class Module}\label{Module}

\subsubsection{Function, Variable, Symbol lookup}

\begin{apient}
bool findFunctionByEntryOffset(Function *&ret,
const Offset offset)
\end{apient}
\apidesc{
This method returns the \code{Function} object that begins at \code{offset}. Returns \code{true} on
success and \code{false} if there is no matching function. The error value is set to
\code{No\_Such\_Function}.
}

\begin{apient}
typedef enum {
mangledName,
Expand Down
6 changes: 5 additions & 1 deletion symtabAPI/h/Module.h
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,11 @@ namespace Dyninst{

// Function based methods
bool getAllFunctions(std::vector<Function *>&ret);
bool findFunctionByEntryOffset(Function *&ret, const Offset offset);

bool findFunctionsByName(std::vector<Function *> &ret, const std::string& name,
NameType nameType = anyName,
bool isRegex = false,
bool checkCase = true);

// Variable based methods
bool findVariablesByOffset(std::vector<Variable *> &ret, const Offset offset);
Expand Down

0 comments on commit 26a1da5

Please sign in to comment.