mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-03 05:12:28 +08:00
* 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:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user