[gdb/testsuite] Reduce errors after gdb exit in default_gdb_start
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.base / jump.c
index aae94f7e85a89b72af12a7761d29b174d981a006..376ea172d1d8de6f70e1d44856f6727e506c1740 100644 (file)
@@ -2,14 +2,9 @@
    particularly deep about the functionality nor names in here.
    */
 
-#ifdef PROTOTYPES
 static int square (int x)
-#else
-static int square (x)
-  int  x;
-#endif
 {
-  return x*x;
+  return x*x;                  /* out-of-func */
 }
 
 
@@ -18,7 +13,7 @@ int main ()
   int i = 99;
 
   i++;
-  i = square (i);
-  i--;
+  i = square (i);              /* bp-on-call */
+  i--;                         /* bp-on-non-call */
   return 0;
 }
This page took 0.036751 seconds and 4 git commands to generate.