drgn: refactor, cull dead code, and disable inline

This commit is contained in:
Jake Hillion 2023-05-03 07:26:05 -07:00 committed by Jake Hillion
parent f70d34961d
commit 96c80cbb78
2 changed files with 8 additions and 4 deletions

2
extern/drgn vendored

@ -1 +1 @@
Subproject commit 5b2110c7c2a2a46c3cf3d79ea802929758692635
Subproject commit 9871f3ec178bbe7c5331da7595de6f4f252b8a10

View File

@ -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,
@ -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) {
@ -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;