最初学GDB调试时是参考皓哥的BLOG里做的:http://blog.csdn.net/haoel/article/details/2879
开发调试过程中,陆陆续续接触到一些新的调试场景,记录如下:
/*GDB测试*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
struct Person{
int Height;
int age;
};
int main(int argc,char **argv){
struct Person s_body;
memset(&s_body,0,sizeof(s_body));
s_body.H