mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2025-01-31 14:04:12 +00:00
* config/pa/xm-hppah.h (malloc): Really delete declaration
(MALLOC_INCOMPATIBLE): Really delete macro. * cli/cli-cmds.c (apropos_command): Use xcalloc.
This commit is contained in:
parent
93d56215df
commit
2e94c45304
@ -1,3 +1,9 @@
|
||||
2001-03-28 Andrew Cagney <ac131313@redhat.com>
|
||||
|
||||
* config/pa/xm-hppah.h (malloc): Really delete declaration
|
||||
(MALLOC_INCOMPATIBLE): Really delete macro.
|
||||
* cli/cli-cmds.c (apropos_command): Use xcalloc.
|
||||
|
||||
2001-03-28 Andrew Cagney <ac131313@redhat.com>
|
||||
|
||||
* configure.in (build_warnings): Add -Wuninitialized.
|
||||
|
@ -542,7 +542,7 @@ apropos_command (char *searchstr, int from_tty)
|
||||
regex_t pattern;
|
||||
char *pattern_fastmap;
|
||||
char errorbuffer[512];
|
||||
pattern_fastmap=calloc(256,sizeof(char));
|
||||
pattern_fastmap = xcalloc (256, sizeof (char));
|
||||
if (searchstr == NULL)
|
||||
error("REGEXP string is empty");
|
||||
|
||||
|
@ -30,10 +30,3 @@
|
||||
#define USG
|
||||
|
||||
#define HAVE_TERMIOS
|
||||
|
||||
/* HP defines malloc and realloc as returning void *, even for non-ANSI
|
||||
compilations (such as with the native compiler). */
|
||||
|
||||
#define MALLOC_INCOMPATIBLE
|
||||
|
||||
extern void *malloc (size_t);
|
||||
|
@ -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.
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user