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