当前位置:Gxlcms > 数据库问题 > using gdb to debug c program

using gdb to debug c program

时间:2021-07-01 10:21:17 帮助过:23人阅读

  printf("   x is %d and is stored at %p.\n", x, &x);

6, 继续。 gdb> c

Continuing.
   x is 5 and is stored at 0xbfffeb58.
   xptr points to 0xbfffeb58 which holds 5.


Breakpoint 2, main () at test.c:10
10   display(x, xptr);

7, 继续。 gdb> c

Continuing.
In display():
   z is 5 and is stored at 0xbfffeb40.
   zptr points to 0xbfffeb58 which holds 5.
[Inferior 1 (process 11616) exited normally]




9, for step, using step

10, for backtrace, using bt


版权声明:本文为博主原创文章,未经博主允许不得转载。

using gdb to debug c program

标签:c   gdb   dbug   break point   

人气教程排行