diff options
Diffstat (limited to 'gdb/tui')
-rw-r--r-- | gdb/tui/tui-data.c | 6 | ||||
-rw-r--r-- | gdb/tui/tui-file.c | 2 | ||||
-rw-r--r-- | gdb/tui/tui-out.c | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/gdb/tui/tui-data.c b/gdb/tui/tui-data.c index 1ceb80f..4deb006 100644 --- a/gdb/tui/tui-data.c +++ b/gdb/tui/tui-data.c @@ -447,7 +447,7 @@ tui_alloc_generic_win_info (void) { struct tui_gen_win_info *win; - if ((win = XMALLOC (struct tui_gen_win_info)) != NULL) + if ((win = XNEW (struct tui_gen_win_info)) != NULL) tui_init_generic_part (win); return win; @@ -570,7 +570,7 @@ tui_alloc_win_info (enum tui_win_type type) { struct tui_win_info *win_info; - win_info = XMALLOC (struct tui_win_info); + win_info = XNEW (struct tui_win_info); if (win_info != NULL) { win_info->generic.type = type; @@ -647,7 +647,7 @@ tui_add_content_elements (struct tui_gen_win_info *win_info, { for (i = index_start; (i < num_elements + index_start); i++) { - if ((element_ptr = XMALLOC (struct tui_win_element)) != NULL) + if ((element_ptr = XNEW (struct tui_win_element)) != NULL) { win_info->content[i] = (void *) element_ptr; init_content_element (element_ptr, win_info->type); diff --git a/gdb/tui/tui-file.c b/gdb/tui/tui-file.c index c86e260..8e84fc5 100644 --- a/gdb/tui/tui-file.c +++ b/gdb/tui/tui-file.c @@ -57,7 +57,7 @@ static int tui_file_magic; static struct ui_file * tui_file_new (void) { - struct tui_stream *tui = XMALLOC (struct tui_stream); + struct tui_stream *tui = XNEW (struct tui_stream); struct ui_file *file = ui_file_new (); set_ui_file_data (file, tui, tui_file_delete); diff --git a/gdb/tui/tui-out.c b/gdb/tui/tui-out.c index 9e89419..44f76a2 100644 --- a/gdb/tui/tui-out.c +++ b/gdb/tui/tui-out.c @@ -150,7 +150,7 @@ tui_out_new (struct ui_file *stream) { int flags = 0; - tui_out_data *data = XMALLOC (tui_out_data); + tui_out_data *data = XNEW (tui_out_data); /* Initialize base "class". */ cli_out_data_ctor (&data->base, stream); |