[clang] [llvm] [clang][DebugInfo] Add symbol for debugger with VTable information. (PR #130255)

Tom Tromey via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 31 08:30:40 PDT 2025


tromey wrote:

> Removing the vtable global variable and moving the "location info" into the static within the class, will work for the SCE debugger.

I was thinking about this last night and wondering if the vtable will appear as a class member even if the class is local to a function?

If so then it seems like this would be hard for gdb to find (can't speak for other debuggers).  The issue being that gdb tends not to read DIEs that it thinks are uninteresting, and this means function bodies in general are skipped.

If the vtable were a global-but-artificial object, then it would readily be found by the initial scan.

https://github.com/llvm/llvm-project/pull/130255


More information about the llvm-commits mailing list