replace XMALLOC with XNEW
[binutils-gdb.git] / gdb / ChangeLog
1 2014-01-13 Tom Tromey <tromey@redhat.com>
2
3 * defs.h (XMALLOC): Remove.
4 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
5 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
6 * cli-out.c (struct ui_out *): Likewise.
7 * cli/cli-dump.c (add_dump_command): Likewise.
8 (add_dump_command): Likewise.
9 * complaints.c (get_complaints): Likewise.
10 (find_complaint): Likewise.
11 * dwarf2-frame.c (execute_cfa_program): Likewise.
12 * dwarf2read.c (abbrev_table_read_table): Likewise.
13 * gdbarch.sh: Likewise.
14 * gdbarch.c: Rebuild.
15 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
16 * interps.c (interp_new): Likewise.
17 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
18 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
19 * mi/mi-console.c (mi_console_file_new): Likewise.
20 * mi/mi-interp.c (mi_interpreter_init): Likewise.
21 * mi/mi-out.c (mi_out_new): Likewise.
22 * mi/mi-parse.c (mi_parse): Likewise.
23 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
24 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
25 * observer.c (xalloc_observer_list_node): Likewise.
26 * regcache.c (regcache_xmalloc_1): Likewise.
27 * reggroups.c (reggroup_new): Likewise.
28 (_initialize_reggroup): Likewise.
29 * registry.c (register_data_with_cleanup): Likewise.
30 * remote.c (remote_notif_stop_alloc_reply): Likewise.
31 * ser-base.c (serial_ttystate): Likewise.
32 * ser-mingw.c (make_pipe_state): Likewise.
33 * ser-pipe.c (pipe_open): Likewise.
34 * serial.c (serial_open): Likewise.
35 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
36 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
37 (tui_alloc_win_info): Likewise.
38 (tui_add_content_elements): Likewise.
39 * tui/tui-file.c (tui_file_new): Likewise.
40 * tui/tui-out.c (tui_out_new): Likewise.
41 * ui-file.c (mem_file_new): Likewise.
42 * ui-out.c (push_level): Likewise.
43 (make_cleanup_ui_out_end): Likewise.
44 (append_header_to_list): Likewise.
45 (ui_out_new): Likewise.
46 * user-regs.c (user_reg_add_builtin): Likewise.
47
48 2014-01-13 Tom Tromey <tromey@redhat.com>
49
50 * defs.h (XZALLOC): Remove.
51 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
52 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
53 (get_ada_tasks_inferior_data): Likewise.
54 * auto-load.c (get_auto_load_pspace_data): Likewise.
55 * auxv.c (get_auxv_inferior_data): Likewise.
56 * bfd-target.c (target_bfd_reopen): Likewise.
57 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
58 (deprecated_insert_raw_breakpoint): Likewise.
59 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
60 * corelow.c (core_open): Likewise.
61 * darwin-nat.c (darwin_check_new_threads): Likewise.
62 (darwin_attach_pid): Likewise.
63 * dummy-frame.c (dummy_frame_push): Likewise.
64 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
65 * dwarf2loc.c (allocate_piece_closure): Likewise.
66 * elfread.c (elf_symfile_segments): Likewise.
67 * eval.c (ptrmath_type_p): Likewise.
68 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
69 * gdbtypes.c (alloc_type_arch): Likewise.
70 (alloc_type_instance): Likewise.
71 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
72 * inf-child.c (inf_child_can_use_agent): Likewise.
73 * inflow.c (get_inflow_inferior_data): Likewise.
74 * infrun.c (save_infcall_suspend_state): Likewise.
75 * jit.c (jit_reader_load): Likewise.
76 (get_jit_objfile_data): Likewise.
77 (get_jit_program_space_data): Likewise.
78 (jit_object_open_impl): Likewise.
79 (jit_symtab_open_impl): Likewise.
80 (jit_block_open_impl): Likewise.
81 (jit_frame_sniffer): Likewise.
82 * linux-fork.c (add_fork): Likewise.
83 * maint.c (make_command_stats_cleanup): Likewise.
84 * objfiles.c (get_objfile_pspace_data): Likewise.
85 * opencl-lang.c (struct lval_closure): Likewise.
86 * osdata.c (osdata_start_osdata): Likewise.
87 * progspace.c (new_address_space): Likewise.
88 (add_program_space): Likewise.
89 * remote-sim.c (get_sim_inferior_data): Likewise.
90 * sh-tdep.c (sh_gdbarch_init): Likewise.
91 * skip.c (Ignore): Likewise.
92 (skip_delete_command): Likewise.
93 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
94 (library_list_start_library): Likewise.
95 (solib_aix_current_sos): Likewise.
96 * solib-darwin.c (get_darwin_info): Likewise.
97 (darwin_current_sos): Likewise.
98 * solib-dsbt.c (get_dsbt_info): Likewise.
99 * solib-ia64-hpux.c (new_so_list): Likewise.
100 (ia64_hpux_get_solib_linkage_addr): Likewise.
101 * solib-spu.c (append_ocl_sos): Likewise.
102 (spu_current_sos): Likewise.
103 * solib-svr4.c (get_svr4_info): Likewise.
104 (svr4_keep_data_in_core): Likewise.
105 (library_list_start_library): Likewise.
106 (svr4_default_sos): Likewise.
107 (svr4_read_so_list): Likewise.
108 * solib-target.c (library_list_start_library): Likewise.
109 (solib_target_current_sos): Likewise.
110 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
111 * symfile-debug.c (install_symfile_debug_logging): Likewise.
112 * symfile.c (default_symfile_segments): Likewise.
113 * target-descriptions.c (tdesc_data_init): Likewise.
114 (tdesc_create_reg): Likewise.
115 (struct tdesc_type *): Likewise.
116 (tdesc_create_vector): Likewise.
117 (tdesc_set_struct_size): Likewise.
118 (struct tdesc_type *): Likewise.
119 (tdesc_free_feature): Likewise.
120 (tdesc_create_feature): Likewise.
121 * windows-nat.c (windows_add_thread): Likewise.
122 (windows_make_so): Likewise.
123 * xml-support.c (gdb_xml_body_text): Likewise.
124 (gdb_xml_create_parser_and_cleanup): Likewise.
125 (xml_process_xincludes): Likewise.
126 * xml-syscall.c (allocate_syscalls_info): Likewise.
127 (syscall_create_syscall_desc): Likewise.
128
129 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
130
131 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
132 function, with code from i386_stap_parse_special_token.
133 (i386_stap_parse_special_token_three_arg_disp): Likewise.
134 (i386_stap_parse_special_token): Move code to the two functions
135 above; simplify it.
136
137 2014-01-09 Pedro Alves <palves@redhat.com>
138 Hui Zhu <hui@codesourcery.com>
139
140 PR gdb/16101
141 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
142 bp_err_string. Don't mark the location shlib_disabled if the
143 error thrown wasn't a generic or memory error. Catch errors
144 thrown while inserting breakpoints in overlayed code. Output
145 error message of software breakpoints.
146 * remote.c (remote_insert_breakpoint): If this breakpoint has
147 target-side commands but this stub doesn't support Z0 packets,
148 throw NOT_SUPPORTED_ERROR error.
149 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
150 * target.h (target_insert_breakpoint): Extend comment.
151 (target_insert_hw_breakpoint): Add comment.
152
153 2014-01-08 Pedro Alves <palves@redhat.com>
154
155 * remote.c (remote_add_thread): Add threads silently if starting
156 up.
157 (remote_notice_new_inferior): If in all-stop, and starting up,
158 don't call notice_new_inferior.
159 (get_current_thread): New function, factored out from ...
160 (add_current_inferior_and_thread): ... this. Adjust.
161 (remote_start_remote) <all-stop>: Fetch the thread list. If we
162 found any thread, then select the remote's current thread as GDB's
163 current thread too.
164
165 2014-01-08 Joel Brobecker <brobecker@adacore.com>
166
167 * NEWS: Create a new section for the next release branch.
168 Rename the section of the current branch, now that it has
169 been cut.
170
171 2014-01-08 Joel Brobecker <brobecker@adacore.com>
172
173 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
174 * version.in: Bump version to 7.7.50.DATE-cvs.
175
176 2014-01-08 Yao Qi <yao@codesourcery.com>
177
178 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
179 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
180 (spu_xfer_partial): Cast 'buf' to 'const char *'.
181
182 2014-01-08 Yao Qi <yao@codesourcery.com>
183
184 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
185 return value of bfd_get_filename to symbol_file_add_from_bfd.
186
187 2014-01-08 Pierre Muller <muller@sourceware.org>
188
189 Fix PR16201.
190 * coff-pe-read.c (struct read_pe_section_data): Add index field.
191 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
192 to prim_record_mininal_symbol_and_info.
193 (add_pe_forwarded_sym): Use known section number of forwarded symbol
194 in call to prim_record_minimal_symbol_and_info.
195 (read_pe_exported_syms): Set index field of section_data.
196
197 2014-01-07 Andrew Pinski <apinski@cavium.com>
198
199 * features/aarch64-core.xml (cpsr): Change to be 64bit.
200 * features/aarch64.c: Regenerate.
201
202 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
203
204 * target.c (return_null): Define.
205 (update_current_target): Use it instead of return_zero for
206 functions that return a pointer.
207
208 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
209
210 * source.c (add_path): Fix check for duplicated paths in the previously
211 included paths.
212
213 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
214
215 * ada-lang.c: Remove duplicated include statements.
216 * alphabsd-nat.c: Ditto.
217 * amd64-darwin-tdep.c: Ditto.
218 * amd64fbsd-nat.c: Ditto.
219 * auto-load.c: Ditto.
220 * ax-gdb.c: Ditto.
221 * breakpoint.c: Ditto.
222 * dbxread.c: Ditto.
223 * fork-child.c: Ditto.
224 * gdb_usleep.c: Ditto.
225 * i386-darwin-tdep.c: Ditto.
226 * i386fbsd-nat.c: Ditto.
227 * infcmd.c: Ditto.
228 * inferior.c: Ditto.
229 * jv-lang.c: Ditto.
230 * linux-nat.c: Ditto.
231 * linux-tdep.c: Ditto.
232 * m68kbsd-nat.c: Ditto.
233 * m68klinux-nat.c: Ditto.
234 * microblaze-tdep.c: Ditto.
235 * mips-linux-tdep.c: Ditto.
236 * mn10300-tdep.c: Ditto.
237 * nto-tdep.c: Ditto.
238 * opencl-lang.c: Ditto.
239 * osdata.c: Ditto.
240 * printcmd.c: Ditto.
241 * regcache.c: Ditto.
242 * remote-m32r-sdi.c: Ditto.
243 * remote.c: Ditto.
244 * symfile.c: Ditto.
245 * symtab.c: Ditto.
246 * tilegx-linux-nat.c: Ditto.
247 * tilegx-tdep.c: Ditto.
248 * tracepoint.c: Ditto.
249 * valops.c: Ditto.
250 * vaxbsd-nat.c: Ditto.
251 * windows-nat.c: Ditto.
252 * xtensa-tdep.c: Ditto.
253
254 2014-01-07 Yao Qi <yao@codesourcery.com>
255
256 * spu-linux-nat.c (_initialize_spu_nat): Declare.
257
258 2014-01-07 Yao Qi <yao@codesourcery.com>
259 Joel Brobecker <brobecker@adacore.com>
260
261 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
262 (pdc_write_regs): Likewise.
263 (fetch_regs_kernel_thread): Likewise.
264 (store_regs_kernel_thread): Likewise.
265
266 2014-01-07 Joel Brobecker <brobecker@adacore.com>
267
268 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
269 tagged type objects to their actual type.
270
271 2014-01-07 Joel Brobecker <brobecker@adacore.com>
272
273 * ada-valprint.c (print_field_values): Add "language" parameter.
274 Update calls to print_field_values and print_variant_part.
275 Pass new parameter "language" in call to val_print instead
276 of "current_language". Replace call to ada_val_print by call
277 to val_print.
278 (print_variant_part): Add "language" parameter.
279 (ada_val_print_struct_union): Update call to print_field_values.
280
281 2014-01-07 Joel Brobecker <brobecker@adacore.com>
282
283 * ada-valprint.c (ui_memcpy): Delete.
284 (ada_print_floating): Update documentation. Add empty line
285 between between function documentation and implementation.
286 Delete variable "buffer". Use ui_file_xstrdup in place of
287 ui_file_put. Minor adjustments following this change.
288
289 2014-01-07 Joel Brobecker <brobecker@adacore.com>
290
291 * ada-valprint.c (ada_val_print_string): New function,
292 extracted from ada_val_print_array.
293 (ada_val_print_array): Replace extracted code by call
294 to ada_val_print_string followed by a return. Move
295 "else" branch to the function's top block.
296
297 2014-01-07 Joel Brobecker <brobecker@adacore.com>
298
299 * ada-valprint.c (ada_val_print_array): Move implementation
300 down. Rename parameter "offset" and "val" into "offset_aligned"
301 and "original_value" respectively. Add parameter "offset".
302
303 2014-01-07 Joel Brobecker <brobecker@adacore.com>
304
305 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
306 re-organizing the code. Change the "???" message printed
307 when target type is a TYPE_CODE_UNDEF into
308 "<ref to undefined type>".
309
310 2014-01-07 Joel Brobecker <brobecker@adacore.com>
311
312 * ada-valprint.c (print_record): Delete, implementation inlined...
313 (ada_val_print_struct_union): ... here. Remove call to
314 ada_check_typedef in inlined implementation.
315
316 2014-01-07 Joel Brobecker <brobecker@adacore.com>
317
318 * ada-valprint.c (ada_val_print_gnat_array): New function,
319 extracted from ada_val_print_1;
320 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
321 (ada_val_print_flt, ada_val_print_struct_union)
322 (ada_val_print_ref): Likewise.
323 (ada_val_print_1): Delete variables i and elttype.
324 Replace extracted-out code by call to corresponding
325 new functions.
326
327 2014-01-07 Joel Brobecker <brobecker@adacore.com>
328
329 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
330
331 2014-01-07 Joel Brobecker <brobecker@adacore.com>
332
333 * ada-valprint.c (ada_val_print_1): Replace calls to
334 ada_val_print_1 by calls to val_print.
335
336 2014-01-07 Joel Brobecker <brobecker@adacore.com>
337
338 * ada-valprint.c (ada_val_print_1): Add parameter "language".
339 Update calls to self accordingly. Replace calls to c_val_print
340 by calls to val_print.
341
342 2014-01-07 Joel Brobecker <brobecker@adacore.com>
343
344 * ada-valprint.c (print_record): Delete declaration.
345 (adjust_type_signedness, ada_val_print_1): Likewise.
346 (ada_val_print): Move function implementation down.
347 (print_variant_part, print_field_values, print_record):
348 Move function implementation up.
349
350 2014-01-07 Joel Brobecker <brobecker@adacore.com>
351
352 * python/py-type.c (typy_get_name): New function.
353 (type_object_getset): Add entry for attribute "name".
354 * NEWS: Add entry mentioning this new attribute.
355
356 2014-01-07 Yao Qi <yao@codesourcery.com>
357
358 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
359 statement.
360
361 2014-01-07 Yao Qi <yao@codesourcery.com>
362
363 * gnu-nat.c (info_port_rights): Add qualifier const to
364 argument args.
365
366 2014-01-07 Yao Qi <yao@codesourcery.com>
367
368 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
369
370 2014-01-07 Yao Qi <yao@codesourcery.com>
371
372 * gnu-nat.c (make_inf) Update declaration.
373 (make_inf): Make it static.
374 (inf_set_traced): Likewise.
375 (inf_port_to_thread, inf_task_died_status): Likewise.
376
377 2014-01-07 Yao Qi <yao@codesourcery.com>
378
379 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
380
381 2014-01-07 Yao Qi <yao@codesourcery.com>
382
383 * gnu-nat.c (_initialize_gnu_nat): Declare.
384
385 2014-01-07 Yao Qi <yao@codesourcery.com>
386
387 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
388 'enum bfd_endian'.
389 (struct gdbarch_info) <byte_order>: Change type to
390 'enum bfd_endian'.
391 <byte_order_for_code>: Likewise.
392 * gdbarch.c, gdbarch.h: Regenerated.
393
394 2014-01-06 Sasha Smundak <asmundak@google.com>
395
396 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
397
398 2014-01-06 Tom Tromey <tromey@redhat.com>
399
400 * doublest.c (convert_doublest_to_floatformat): Use const, not
401 CONST.
402 * somread.c (som_symtab_read): Likewise.
403
404 2014-01-07 Hui Zhu <hui@codesourcery.com>
405
406 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
407 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
408 (gdb_bfd_fopen): Ditto.
409 (gdb_bfd_openr): Ditto.
410 (gdb_bfd_openw): Ditto.
411 (gdb_bfd_openr_iovec): Ditto.
412 (gdb_bfd_fdopenr): Ditto.
413 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
414 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
415 with xstrdup.
416 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
417 with xstrdup.
418 * symfile-mem.c (symbol_file_add_from_memory): Removed
419 gdb_bfd_stash_filename.
420
421 2014-01-03 Doug Evans <dje@google.com>
422
423 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
424 output.
425
426 2014-01-01 Joel Brobecker <brobecker@adacore.com>
427
428 Update year range in copyright notice of all files.
429
430 2014-01-01 Joel Brobecker <brobecker@adacore.com>
431
432 * top.c (print_gdb_version): Set copyright year to 2014.
433
434 2014-01-01 Joel Brobecker <brobecker@adacore.com>
435
436 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
437
438 For older changes see ChangeLog-2013.
439 \f
440 Local Variables:
441 mode: change-log
442 left-margin: 8
443 fill-column: 74
444 version-control: never
445 coding: utf-8
446 End: