diff options
author | Stu Grossman <grossman@cygnus> | 1997-09-25 18:22:46 +0000 |
---|---|---|
committer | Stu Grossman <grossman@cygnus> | 1997-09-25 18:22:46 +0000 |
commit | 68f92f98acf240b5935438e18d1cc9a5bde1e6de (patch) | |
tree | 73dde549b0f48a7805d5bb3dac16627299d73faa /sim/common | |
parent | 89b308f49cd45843f65988fb6f021d29de0b38a0 (diff) | |
download | gdb-68f92f98acf240b5935438e18d1cc9a5bde1e6de.zip gdb-68f92f98acf240b5935438e18d1cc9a5bde1e6de.tar.gz gdb-68f92f98acf240b5935438e18d1cc9a5bde1e6de.tar.bz2 |
* sim-break.c (sim_set_breakpoint sim_clear_breakpoint): Use ZALLOC
and zfree instead of xmalloc and free. Prevents warnings.
Diffstat (limited to 'sim/common')
-rw-r--r-- | sim/common/sim-break.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sim/common/sim-break.c b/sim/common/sim-break.c index 809f3ab..d735c85 100644 --- a/sim/common/sim-break.c +++ b/sim/common/sim-break.c @@ -163,7 +163,7 @@ sim_set_breakpoint (sd, addr) else break; - bp = (struct sim_breakpoint *) xmalloc (sizeof (struct sim_breakpoint)); + bp = ZALLOC (struct sim_breakpoint); bp->addr = addr; bp->next = STATE_BREAKPOINTS (sd); @@ -200,7 +200,7 @@ sim_clear_breakpoint (sd, addr) else STATE_BREAKPOINTS (sd) = NULL; - free (bp); + zfree (bp); return SIM_RC_OK; } |