* sim-break.c (sim_set_breakpoint sim_clear_breakpoint): Use ZALLOC
and zfree instead of xmalloc and free. Prevents warnings.
This commit is contained in:
parent
89b308f49c
commit
68f92f98ac
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue