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