projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
89b308f
)
* sim-break.c (sim_set_breakpoint sim_clear_breakpoint): Use ZALLOC
author
Stu Grossman
<grossman@cygnus>
Thu, 25 Sep 1997 18:22:46 +0000
(18:22 +0000)
committer
Stu Grossman
<grossman@cygnus>
Thu, 25 Sep 1997 18:22:46 +0000
(18:22 +0000)
and zfree instead of xmalloc and free. Prevents warnings.
sim/common/sim-break.c
patch
|
blob
|
history
diff --git
a/sim/common/sim-break.c
b/sim/common/sim-break.c
index 809f3abdcd7f7046ba9f3c59c7abaf3bf753dad2..d735c8572dd3de74732545e0cd6f0f2d018727e1 100644
(file)
--- 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);
+
z
free (bp);
return SIM_RC_OK;
}