(sim_core_map_detach): Use free instead of zfree.
+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.
#ifndef _SIM_CORE_C_
#define _SIM_CORE_C_
+#include "libiberty.h"
#include "sim-main.h"
#include "sim-assert.h"
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
sim_core_mapping *dead = (*entry);
(*entry) = dead->next;
if (dead->free_buffer != NULL)
- zfree (dead->free_buffer);
+ free (dead->free_buffer);
zfree (dead);
return;
}