consecutive.c

来自「gdb是linux下的一个远程调试环境.能让你很方便地调试linux下的代码.」· C语言 代码 · 共 21 行

C
21
字号
/*    Purpose of this test:  to test breakpoints on consecutive instructions.*/int a[7] = {1, 2, 3, 4, 5, 6, 7};/* assert: first line of foo has more than one instruction. */int foo (){  return a[0] + a[1] + a[2] + a[3] + a[4] + a[5] + a[6];}main(){#ifdef usestubs    set_debug_traps ();    breakpoint ();#endif  foo ();}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?