diff options
author | Andrew Cagney <cagney@redhat.com> | 2004-08-10 22:36:39 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2004-08-10 22:36:39 +0000 |
commit | e982ffaeea3882c6bb9afb5b7929a5444f098dd1 (patch) | |
tree | d56b8fef57c7eb8ebe1aadf2fab66b5a5e10b773 /gdb/utils.c | |
parent | ca42c670865be7b7646552c087f5a0af91af1a9b (diff) | |
download | gdb-e982ffaeea3882c6bb9afb5b7929a5444f098dd1.tar.gz |
2004-08-10 Andrew Cagney <cagney@gnu.org>
* main.c (captured_main): Delete call to init_malloc.
* defs.h (init_malloc): Delete declaration.
* utils.c (mmalloc, mrealloc, mcalloc, mfree)
(init_malloc): Delete functions.
Index: testsuite/ChangeLog
2004-08-10 Andrew Cagney <cagney@gnu.org>
* gdb.gdb/selftest.exp (do_steps_and_nexts): Remove code to skip
init_malloc call.
Diffstat (limited to 'gdb/utils.c')
-rw-r--r-- | gdb/utils.c | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/gdb/utils.c b/gdb/utils.c index 25fca5ae604..be99780cf69 100644 --- a/gdb/utils.c +++ b/gdb/utils.c @@ -983,42 +983,6 @@ request_quit (int signo) quit (); } -/* Memory management stuff (malloc friends). */ - -static void * -mmalloc (void *md, size_t size) -{ - return malloc (size); /* NOTE: GDB's only call to malloc() */ -} - -static void * -mrealloc (void *md, void *ptr, size_t size) -{ - if (ptr == 0) /* Guard against old realloc's */ - return mmalloc (md, size); - else - return realloc (ptr, size); /* NOTE: GDB's only call to ralloc() */ -} - -static void * -mcalloc (void *md, size_t number, size_t size) -{ - return calloc (number, size); /* NOTE: GDB's only call to calloc() */ -} - -static void -mfree (void *md, void *ptr) -{ - free (ptr); /* NOTE: GDB's only call to free() */ -} - -/* This used to do something interesting with USE_MMALLOC. - * It can be retired any time. -- chastain 2004-01-19. */ -void -init_malloc (void *md) -{ -} - /* Called when a memory allocation fails, with the number of bytes of memory requested in SIZE. */ |