Fix PR 20345 - call_function_by_hand_dummy: Assertion `tp->thread_fsm == &sm->thread_...
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.base / recurse.c
index 1d6892d0f6943b4803e6ade5e77a0db1e812b5b3..821c2de6de7723edc580f4f42666eb567f44c689 100644 (file)
@@ -1,9 +1,8 @@
 /* Trivial code used to test watchpoints in recursive code and 
    auto-deletion of watchpoints as they go out of scope.  */
 
-static int 
-recurse (a)
-     int a;
+static int
+recurse (int a)
 {
   int b = 0;
 
@@ -15,11 +14,8 @@ recurse (a)
   return b;
 }
 
-main()
+int main()
 {
-#ifdef usestubs
-  set_debug_traps();
-  breakpoint();
-#endif
   recurse (10);
+  return 0;
 }
This page took 0.0239 seconds and 4 git commands to generate.