diff options
author | Doug Evans <dje@google.com> | 1998-03-02 18:20:39 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 1998-03-02 18:20:39 +0000 |
commit | de13b4cbdb68b397ce3b4d4fde376a40565069cf (patch) | |
tree | 7ef5275ced9abe3bbec0fdcf6eaa2abe3a8ad1d0 | |
parent | 8c6a2b75b9c91a27a8dc1c4a8be2fface3a115e4 (diff) | |
download | gdb-de13b4cbdb68b397ce3b4d4fde376a40565069cf.zip gdb-de13b4cbdb68b397ce3b4d4fde376a40565069cf.tar.gz gdb-de13b4cbdb68b397ce3b4d4fde376a40565069cf.tar.bz2 |
* sim-core.c (sim_core_attach): Use xmalloc instead of zalloc.
(sim_core_map_detach): Use free instead of zfree.
-rw-r--r-- | sim/common/ChangeLog | 5 | ||||
-rw-r--r-- | sim/common/sim-core.c | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog index d775359..034201c 100644 --- a/sim/common/ChangeLog +++ b/sim/common/ChangeLog @@ -1,3 +1,8 @@ +Mon Mar 2 10:20:06 1998 Doug Evans <devans@seba.cygnus.com> + + * sim-core.c (sim_core_attach): Use xmalloc instead of zalloc. + (sim_core_map_detach): Use free instead of zfree. + Fri Feb 27 19:09:57 1998 Doug Evans <devans@canuck.cygnus.com> * sim-module.c (*): Fix typos in assertion tests. diff --git a/sim/common/sim-core.c b/sim/common/sim-core.c index f6db47a..6444f2e 100644 --- a/sim/common/sim-core.c +++ b/sim/common/sim-core.c @@ -22,6 +22,7 @@ #ifndef _SIM_CORE_C_ #define _SIM_CORE_C_ +#include "libiberty.h" #include "sim-main.h" #include "sim-assert.h" @@ -338,7 +339,7 @@ sim_core_attach (SIM_DESC sd, if (optional_buffer == NULL) { int padding = (addr % sizeof (unsigned64)); - free_buffer = zalloc ((modulo == 0 ? nr_bytes : modulo) + padding); + free_buffer = xmalloc ((modulo == 0 ? nr_bytes : modulo) + padding); buffer = (char*) free_buffer + padding; } else @@ -422,7 +423,7 @@ sim_core_map_detach (SIM_DESC sd, sim_core_mapping *dead = (*entry); (*entry) = dead->next; if (dead->free_buffer != NULL) - zfree (dead->free_buffer); + free (dead->free_buffer); zfree (dead); return; } |