mirror of
https://github.com/JakeHillion/object-introspection.git
synced 2024-09-19 11:09:05 +01:00
drgn: refactor, cull dead code, and disable inline
This commit is contained in:
parent
f70d34961d
commit
96c80cbb78
2
extern/drgn
vendored
2
extern/drgn
vendored
@ -1 +1 @@
|
||||
Subproject commit 5b2110c7c2a2a46c3cf3d79ea802929758692635
|
||||
Subproject commit 9871f3ec178bbe7c5331da7595de6f4f252b8a10
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user