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
This commit is contained in:
@@ -1,19 +1,22 @@
|
||||
/*
|
||||
** Copyright 2004, Axel Dörfler, [email protected]. All rights reserved.
|
||||
** Distributed under the terms of the Haiku License.
|
||||
*/
|
||||
* Copyright 2004-2006, Axel Dörfler, [email protected]. All rights reserved.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*/
|
||||
|
||||
|
||||
#include <unistd.h>
|
||||
#include <errno.h>
|
||||
|
||||
|
||||
/* 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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user