diff options
author | Tom Tromey <tromey@redhat.com> | 2013-12-28 15:31:23 -0700 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2014-01-13 07:31:28 -0700 |
commit | 70ba0933adb6b8d64b0687289d51837a58b804f9 (patch) | |
tree | 82e08cabb054d6942c907d54d0e91924f4a8b5dd /gdb/mi | |
parent | 41bf6acad7b02f67240f4cf84f066078f9ed7116 (diff) | |
download | gdb-70ba0933adb6b8d64b0687289d51837a58b804f9.zip gdb-70ba0933adb6b8d64b0687289d51837a58b804f9.tar.gz gdb-70ba0933adb6b8d64b0687289d51837a58b804f9.tar.bz2 |
replace XMALLOC with XNEW
This replaces XMALLOC with XNEW, and removes XMALLOC. The only
non-mechanical bit here was remembering to edit gdbarch.sh.
2014-01-13 Tom Tromey <tromey@redhat.com>
* defs.h (XMALLOC): Remove.
* avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
* bfin-tdep.c (bfin_gdbarch_init): Likewise.
* cli-out.c (struct ui_out *): Likewise.
* cli/cli-dump.c (add_dump_command): Likewise.
(add_dump_command): Likewise.
* complaints.c (get_complaints): Likewise.
(find_complaint): Likewise.
* dwarf2-frame.c (execute_cfa_program): Likewise.
* dwarf2read.c (abbrev_table_read_table): Likewise.
* gdbarch.sh: Likewise.
* gdbarch.c: Rebuild.
* inf-ttrace.c (inf_ttrace_add_page): Likewise.
* interps.c (interp_new): Likewise.
* lm32-tdep.c (lm32_gdbarch_init): Likewise.
* m32r-tdep.c (m32r_gdbarch_init): Likewise.
* mi/mi-console.c (mi_console_file_new): Likewise.
* mi/mi-interp.c (mi_interpreter_init): Likewise.
* mi/mi-out.c (mi_out_new): Likewise.
* mi/mi-parse.c (mi_parse): Likewise.
* microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
* moxie-tdep.c (moxie_gdbarch_init): Likewise.
* observer.c (xalloc_observer_list_node): Likewise.
* regcache.c (regcache_xmalloc_1): Likewise.
* reggroups.c (reggroup_new): Likewise.
(_initialize_reggroup): Likewise.
* registry.c (register_data_with_cleanup): Likewise.
* remote.c (remote_notif_stop_alloc_reply): Likewise.
* ser-base.c (serial_ttystate): Likewise.
* ser-mingw.c (make_pipe_state): Likewise.
* ser-pipe.c (pipe_open): Likewise.
* serial.c (serial_open): Likewise.
* sh64-tdep.c (sh64_gdbarch_init): Likewise.
* tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
(tui_alloc_win_info): Likewise.
(tui_add_content_elements): Likewise.
* tui/tui-file.c (tui_file_new): Likewise.
* tui/tui-out.c (tui_out_new): Likewise.
* ui-file.c (mem_file_new): Likewise.
* ui-out.c (push_level): Likewise.
(make_cleanup_ui_out_end): Likewise.
(append_header_to_list): Likewise.
(ui_out_new): Likewise.
* user-regs.c (user_reg_add_builtin): Likewise.
Diffstat (limited to 'gdb/mi')
-rw-r--r-- | gdb/mi/mi-console.c | 2 | ||||
-rw-r--r-- | gdb/mi/mi-interp.c | 2 | ||||
-rw-r--r-- | gdb/mi/mi-out.c | 2 | ||||
-rw-r--r-- | gdb/mi/mi-parse.c | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/gdb/mi/mi-console.c b/gdb/mi/mi-console.c index d2b8491..dbad199 100644 --- a/gdb/mi/mi-console.c +++ b/gdb/mi/mi-console.c @@ -52,7 +52,7 @@ struct ui_file * mi_console_file_new (struct ui_file *raw, const char *prefix, char quote) { struct ui_file *ui_file = ui_file_new (); - struct mi_console_file *mi_console = XMALLOC (struct mi_console_file); + struct mi_console_file *mi_console = XNEW (struct mi_console_file); mi_console->magic = &mi_console_file_magic; mi_console->raw = raw; diff --git a/gdb/mi/mi-interp.c b/gdb/mi/mi-interp.c index c13c0f1..25bf0a1 100644 --- a/gdb/mi/mi-interp.c +++ b/gdb/mi/mi-interp.c @@ -83,7 +83,7 @@ static int report_initial_inferior (struct inferior *inf, void *closure); static void * mi_interpreter_init (struct interp *interp, int top_level) { - struct mi_interp *mi = XMALLOC (struct mi_interp); + struct mi_interp *mi = XNEW (struct mi_interp); const char *name; int mi_version; diff --git a/gdb/mi/mi-out.c b/gdb/mi/mi-out.c index 4723d06..a8a3d8d 100644 --- a/gdb/mi/mi-out.c +++ b/gdb/mi/mi-out.c @@ -411,7 +411,7 @@ mi_out_new (int mi_version) { int flags = 0; - mi_out_data *data = XMALLOC (mi_out_data); + mi_out_data *data = XNEW (mi_out_data); data->suppress_field_separator = 0; data->suppress_output = 0; data->mi_version = mi_version; diff --git a/gdb/mi/mi-parse.c b/gdb/mi/mi-parse.c index 73151c2..161a16a 100644 --- a/gdb/mi/mi-parse.c +++ b/gdb/mi/mi-parse.c @@ -237,7 +237,7 @@ struct mi_parse * mi_parse (const char *cmd, char **token) { const char *chp; - struct mi_parse *parse = XMALLOC (struct mi_parse); + struct mi_parse *parse = XNEW (struct mi_parse); struct cleanup *cleanup; memset (parse, 0, sizeof (*parse)); |