<incomplete type> in python api

Tom Tromey tom@tromey.com
Wed Jun 26 17:18:27 GMT 2024


>>>>> "Dmitry" == Dmitry Neverov via Gdb <gdb@sourceware.org> writes:

Dmitry> When debug info is missing, -mi-var-create returns the '<incomplete type>' value:
Dmitry>   41-mi-var-create var1_buf * \"buf\""
Dmitry>   41^done,name="var1_buf",numchild="0",value="<incomplete type>",type="std::stringbuf",thread-id="1",displayhint="string",dynamic="1",has_more="0"

Dmitry> Debugger users can google for '<incomplete type>' and find possible ways
Dmitry> to address the problem.

Dmitry> Is it possible to detect such an incomplete type in python api?

Not really.  type::is_stub could probably be exposed to Python though.

Tom


More information about the Gdb mailing list