recurse.c

来自「这个是LINUX下的GDB调度工具的源码」· C语言 代码 · 共 32 行

C
32
字号
/* Trivial code used to test watchpoints in recursive code and    auto-deletion of watchpoints as they go out of scope.  */#ifdef PROTOTYPESstatic intrecurse (int a)#elsestatic int recurse (a)     int a;#endif{  int b = 0;  if (a == 1)    return 1;  b = a;  b *= recurse (a - 1);  return b;}int main(){#ifdef usestubs  set_debug_traps();  breakpoint();#endif  recurse (10);  return 0;}

⌨️ 快捷键说明

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