I tried to print some variables in a core dump earlier and gdb failed with
<incomplete type>. This trick from [1]
<http://stackoverflow.com/questions/232744/how-to-print-incomplete-type-variable-in-gdb>
 helped:

What I've found is that if you disassemble a function that uses the
> incomplete struct type gdb 'discovers' the struct members and can
> subsequently display them.


After disassmbling the function I could print a local variable (pointer on
the stack). Hope it will help someone else down the road.

Cheers, Lars

[1]
http://stackoverflow.com/questions/232744/how-to-print-incomplete-type-variable-in-gdb

Reply via email to