I have a program which uses some methods and types from an extern shared library. I want to analyse the binary with the gdb. All works fine. I can step through the program and can print the variables. But if I want to print a struct defined in a header file of the shared library I get the following message
No symbol "_t_TYPE" in current context.
print hierarchy
(gdb) print vType
$3 = (TYPE) 0x7fffe75e69d0
(gdb) print (TYPE) 0x7fffe75e69d0
$4 = (_t_TYPE *) 0x7fffe75e69d0
(gdb) print (_t_TYPE *) 0x7fffe75e69d0
No symbol "_t_TYPE" in current context.
I am not able to compile the library with debug flags or without optimizations.
I know the file is stripped. The result of "file library.so" is:
library: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=3f26c595cb3a940260bb82dfa7ec60094db4928c, stripped
Is there a way to print the structure?