impala-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lars Volker ...@cloudera.com>
Subject Trick to fix gdb <incomplete type>
Date Fri, 07 Oct 2016 22:56:15 GMT
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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message