aboutsummaryrefslogtreecommitdiff
path: root/gdb/mi
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2001-03-28 23:21:43 +0000
committerAndrew Cagney <cagney@redhat.com>2001-03-28 23:21:43 +0000
commit2e94c4530460ddbbe83590c7ea01e1128e36c126 (patch)
tree48ec9fb48125092aa4b159dc61ab1926742e7695 /gdb/mi
parent93d56215df715181dba7f5275de9863f28a6c941 (diff)
downloadgdb-2e94c4530460ddbbe83590c7ea01e1128e36c126.zip
gdb-2e94c4530460ddbbe83590c7ea01e1128e36c126.tar.gz
gdb-2e94c4530460ddbbe83590c7ea01e1128e36c126.tar.bz2
* config/pa/xm-hppah.h (malloc): Really delete declaration
(MALLOC_INCOMPATIBLE): Really delete macro. * cli/cli-cmds.c (apropos_command): Use xcalloc.
Diffstat (limited to 'gdb/mi')
-rw-r--r--gdb/mi/ChangeLog4
-rw-r--r--gdb/mi/mi-main.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/mi/ChangeLog b/gdb/mi/ChangeLog
index 6065a4f..1c8aa78 100644
--- a/gdb/mi/ChangeLog
+++ b/gdb/mi/ChangeLog
@@ -1,3 +1,7 @@
+2001-03-28 Andrew Cagney <ac131313@redhat.com>
+
+ * mi-main.c (mi_cmd_data_read_memory): Use xcalloc.
+
2001-03-26 Eli Zaretskii <eliz@is.elta.co.il>
* gdbmi.texinfo: Update copyright. Change Permissions to GFDL.
diff --git a/gdb/mi/mi-main.c b/gdb/mi/mi-main.c
index a7c23c0..06638bf 100644
--- a/gdb/mi/mi-main.c
+++ b/gdb/mi/mi-main.c
@@ -859,7 +859,7 @@ mi_cmd_data_read_memory (char *command, char **argv, int argc)
/* create a buffer and read it in. */
total_bytes = word_size * nr_rows * nr_cols;
- mbuf = calloc (total_bytes, 1);
+ mbuf = xcalloc (total_bytes, 1);
make_cleanup (xfree, mbuf);
if (mbuf == NULL)
{