Fix zero_ext documentation
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.base / auxv.c
index bc033d8184b3bf86f2fae51744c5168db4fd4d1f..c895535bde7c00d1c899aa514a45162834752a48 100644 (file)
@@ -1,5 +1,4 @@
-/* Copyright 1992, 1993, 1994, 1995, 1996, 1999, 2004, 2007
-   Free Software Foundation, Inc.
+/* Copyright 1992-2016 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
 #define ABORT {char *invalid = 0; *invalid = 0xFF;}
 #endif
 
+#ifdef USE_RLIMIT
+# include <sys/resource.h>
+# ifndef RLIM_INFINITY
+#  define RLIM_INFINITY -1
+# endif
+#endif /* USE_RLIMIT */
+
 /* Don't make these automatic vars or we will have to walk back up the
    stack to access them. */
 
@@ -53,6 +59,14 @@ func2 (int x)
   int i;
   static int y;
 
+#ifdef USE_RLIMIT
+  {
+    struct rlimit rlim = { RLIM_INFINITY, RLIM_INFINITY };
+
+    setrlimit (RLIMIT_CORE, &rlim);
+  }
+#endif
+
   /* Make sure that coremaker_local doesn't get optimized away. */
   for (i = 0; i < 5; i++)
     coremaker_local[i] = i;
This page took 0.025146 seconds and 4 git commands to generate.