finally I made #gcc plugin to collect struct/classes fields & virtual methods calls cross-references, part 1: redplait.blogspot.com/2023/0… plugin src: github.com/redplait/dwarfdum…
1
5
19
Replying to @real_redp
isn't -fdump-lang-class good enough to associate vtable offsets with methods?

Jul 31, 2023 · 7:59 AM UTC

1
Replying to @paxteam
no, it can show you vtables but not where are their methods called from
1
i see, for call sites i'd look at gimple instead, IMHO it's easier to find and analyze those GIMPLE_CALLs to vmethods (OBJ_TYPE_REF models the target of the call).
1