diff options
author | Doug Evans <dje@google.com> | 2008-12-14 20:51:04 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2008-12-14 20:51:04 +0000 |
commit | bca929d3a66489b6b2aff2a9a81bc17853dff79e (patch) | |
tree | 01fb0fc214848cab8a2629b58956f92238f7edf5 /gdb/gdbserver/mem-break.c | |
parent | 023eb17ca2bc152be687b0b5676bdb6fda6cd9d1 (diff) | |
download | gdb-bca929d3a66489b6b2aff2a9a81bc17853dff79e.zip gdb-bca929d3a66489b6b2aff2a9a81bc17853dff79e.tar.gz gdb-bca929d3a66489b6b2aff2a9a81bc17853dff79e.tar.bz2 |
* utils.c (xmalloc,xcalloc,xstrdup): New fns.
* server.h (ATTR_MALLOC): New macro.
(xmalloc,xcalloc,xstrdup): Declare.
* hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
* inferiors.c: Ditto.
* linux-low.c: Ditto.
* mem-break.c: Ditto.
* regcache.c: Ditto.
* remote-utils.c: Ditto.
* server.c: Ditto.
* target.c: Ditto.
* win32-low.c: Ditto.
Diffstat (limited to 'gdb/gdbserver/mem-break.c')
-rw-r--r-- | gdb/gdbserver/mem-break.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/gdbserver/mem-break.c b/gdb/gdbserver/mem-break.c index 8f5872f..b4aeec2 100644 --- a/gdb/gdbserver/mem-break.c +++ b/gdb/gdbserver/mem-break.c @@ -55,7 +55,7 @@ set_breakpoint_at (CORE_ADDR where, int (*handler) (CORE_ADDR)) if (breakpoint_data == NULL) error ("Target does not support breakpoints."); - bp = malloc (sizeof (struct breakpoint)); + bp = xmalloc (sizeof (struct breakpoint)); memset (bp, 0, sizeof (struct breakpoint)); (*the_target->read_memory) (where, bp->old_data, |