Skip to content

Commit

Permalink
drgn: refactor, cull dead code, and disable inline
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeHillion committed May 4, 2023
1 parent f70d349 commit 96c80cb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 7 additions & 3 deletions oi/SymbolService.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -500,6 +500,7 @@ static void parseFormalParam(Dwarf_Die& param,
VLOG(1) << "Adding function arg address: " << farg;
}

/*
static bool handleInlinedFunction(const irequest& request,
std::shared_ptr<FuncDesc> funcDesc,
struct drgn_qualified_type& funcType,
Expand Down Expand Up @@ -577,6 +578,7 @@ static bool handleInlinedFunction(const irequest& request,
module = inlinedInstance->_private.module;
return true;
}
*/

static std::optional<std::shared_ptr<FuncDesc>> createFuncDesc(
struct drgn_program* prog, const irequest& request) {
Expand All @@ -603,9 +605,11 @@ static std::optional<std::shared_ptr<FuncDesc>> createFuncDesc(
}

if (dwarf_func_inline(&funcDie) == 1) {
if (!handleInlinedFunction(request, fd, *ft, funcDie, module)) {
return std::nullopt;
}
// if (!handleInlinedFunction(request, fd, *ft, funcDie, module)) {
// return std::nullopt;
// }
LOG(ERROR) << "inlined functions are not supported";
return std::nullopt;
}

ptrdiff_t offset = 0;
Expand Down

0 comments on commit 96c80cb

Please sign in to comment.