* top.h (lim_at_start): Declare.
[deliverable/binutils-gdb.git] / gdb / main.c
index fd25750b94e5306fbe189a91e73c499d8a4e4653..240aa00acfdb76bf2e80e3c8bb62b873169cd48d 100644 (file)
@@ -168,6 +168,10 @@ captured_main (void *data)
   /* This needs to happen before the first use of malloc.  */
   init_malloc (NULL);
 
+#ifdef HAVE_SBRK
+  lim_at_start = (char *) sbrk (0);
+#endif
+
 #if defined (ALIGN_STACK_ON_STARTUP)
   i = (int) &count & 0x3;
   if (i != 0)
This page took 0.026781 seconds and 4 git commands to generate.