diff options
Diffstat (limited to 'gdb/main.c')
-rw-r--r-- | gdb/main.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/main.c b/gdb/main.c index fd25750b94e..240aa00acfd 100644 --- a/gdb/main.c +++ b/gdb/main.c @@ -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) |