解决方法
你试过设置打印对象吗?
(gdb) help set print object Set printing of object's derived type based on vtable info.
(gdb) help set print object Set printing of object's derived type based on vtable info.