tromey wrote:

> Uploaded a patch that eliminates the global variable and it moves the vtable 
> information into the static member; in that way, a consumer always will have 
> access to the vtable information, just by having the object instance or the 
> object definition.

IIUC this means that to see the vtable for a class, the debugger has to scan 
the class declaration itself -- the vtable isn't a separate CU-level global 
variable but is instead a static member of the class.

This approach won't work well for gdb.  gdb tries not to scan DIEs that it does 
not need, in order to improve startup times.  In particular it tries not to 
scan function bodies until necessary.

OTOH having a separate global variable representing the vtable itself is 
reasonably easy to handle.  And, it would solve the "function-local class" 
problem for gdb.

https://github.com/llvm/llvm-project/pull/130255
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to