工程配置如图1% e6 ~* _8 R" V1 S h. b+ f
工程编译后的结果如图2 ' f D$ n K) w+ K开始Debug后,在main.c文件里正常,指针停在m_structdef.readContainer();这个函数的位置,如图3$ i, M6 x4 r+ ?5 J y( Y
执行下一步会出现问题,如图4 % {- O, G: s+ A& p' y s * \& b ^8 z+ v ) t$ d2 Z* F9 |这是什么情况, The gdb process terminated readContainer()函数在structdef.cpp文件中定义 7 C7 b; n4 P9 I! t0 T* X# n1 c' w6 T* F: ]" ^ C! ]6 x) g