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