From 506c8fbbbff63d14f464e580ab1a6d64b48c86fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Thu, 25 May 2006 18:17:55 +0000 Subject: [PATCH] Disabled sbrk() since it doesn't seem to work yet (makes GDB crash). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17590 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/libroot/posix/unistd/sbrk.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/system/libroot/posix/unistd/sbrk.c b/src/system/libroot/posix/unistd/sbrk.c index 455ceb31a8..b0603d5acf 100644 --- a/src/system/libroot/posix/unistd/sbrk.c +++ b/src/system/libroot/posix/unistd/sbrk.c @@ -1,19 +1,22 @@ /* -** Copyright 2004, Axel Dörfler, axeld@pinc-software.de. All rights reserved. -** Distributed under the terms of the Haiku License. -*/ + * Copyright 2004-2006, Axel Dörfler, axeld@pinc-software.de. All rights reserved. + * Distributed under the terms of the MIT License. + */ #include #include + /* in hoard wrapper */ extern void *(*sbrk_hook)(long); + void * sbrk(long increment) { - if (sbrk_hook) - return (*sbrk_hook)(increment); +// TODO: disabled for now - let's GDB crash, so it obviously doesn't work yet +// if (sbrk_hook) +// return (*sbrk_hook)(increment); return NULL; }