1 2017-12-30 Simon Marchi <simon.marchi@ericsson.com>
3 * dwarf2read.c (struct mapped_debug_names): Make final.
4 (struct mapped_index): Make final.
6 2017-12-29 Simon Marchi <simon.marchi@ericsson.com>
9 (DIAGNOSTIC_IGNORE_SWITCH_DIFFERENT_ENUM_TYPES): New macro.
10 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Use it.
12 2017-12-29 Simon Marchi <simon.marchi@ericsson.com>
14 * linux-thread-db.c (thread_db_detach): Remove call to
15 delete_thread_db_info.
17 2017-12-28 Simon Marchi <simon.marchi@polymtl.ca>
19 * target.h (enum target_object) <TARGET_OBJECT_HPUX_UREGS,
20 TARGET_OBJECT_HPUX_SOLIB_GOT>: Remove.
22 2017-12-27 Franck Jullien <franck.jullien@gmail.com>
23 Stafford Horne <shorne@gmail.com>
25 * target-descriptions.c (tdesc_register_in_reggroup_p): Support
27 (tdesc_use_registers): Add logic to register new reggroups.
28 (tdesc_reg::group): Update comment to indicate we allow
30 * NEWS (Changes since GDB 8.0): Announce that GDB supports
33 2017-12-27 Stafford Horne <shorne@gmail.com>
35 * reggroups.c (reggroup_gdbarch_new): New function.
36 (reggroup_find): New function.
37 * reggroups.h (reggroup_gdbarch_new): New function.
38 (reggroup_find): New function.
40 2017-12-27 Stafford Horne <shorne@gmail.com>
42 * reggroups.c (reggroups_init): Change to depend only on
43 obstack rather than gdbarch.
44 (reggroup_add): Remove logic for forcing premature init.
45 (_initialize_reggroup): Set `reggroups_data` with
46 gdbarch_data_register_pre_init() rather than
47 gdbarch_data_register_post_init().
49 2017-12-27 Stafford Horne <shorne@gmail.com>
51 * infcmd.c (_initialize_infcmd): Add help for info reg $reggroup
52 and info all-registers $reggroup feature.
54 2017-12-23 Simon Marchi <simon.marchi@polymtl.ca>
56 * target-descriptions.c (print_c_tdesc)
57 <printf_field_type_assignment>: Add ATTRIBUTE_PRINTF.
59 2017-12-21 Simon Marchi <simon.marchi@ericsson.com>
60 Sergio Durigan Junior <sergiodj@redhat.com>
62 * target-descriptions.c (print_c_tdesc) <visit>: Don't output
63 field_type declaration, use printf_field_type_assignment
65 <printf_field_type_assignment>: New method.
66 * features/aarch64-core.c, features/aarch64-fpu.c
67 features/arc-arcompact.c, features/arc-v2.c,
68 features/arm/arm-with-iwmmxt.c, features/i386/32bit-core.c,
69 features/i386/32bit-mpx.c, features/i386/32bit-sse.c,
70 features/i386/64bit-avx512.c, features/i386/64bit-core.c,
71 features/i386/64bit-mpx.c, features/i386/64bit-sse.c,
72 features/i386/x32-core.c, features/or1k.c,
73 features/rs6000/powerpc-7400.c,
74 features/rs6000/powerpc-altivec32.c,
75 features/rs6000/powerpc-altivec32l.c,
76 features/rs6000/powerpc-altivec64.c,
77 features/rs6000/powerpc-altivec64l.c,
78 features/rs6000/powerpc-cell32l.c,
79 features/rs6000/powerpc-cell64l.c,
80 features/rs6000/powerpc-isa205-altivec32l.c,
81 features/rs6000/powerpc-isa205-altivec64l.c,
82 features/rs6000/powerpc-isa205-vsx32l.c,
83 features/rs6000/powerpc-isa205-vsx64l.c,
84 features/rs6000/powerpc-vsx32.c,
85 features/rs6000/powerpc-vsx32l.c,
86 features/rs6000/powerpc-vsx64.c,
87 features/rs6000/powerpc-vsx64l.c, features/s390-gs-linux64.c,
88 features/s390-tevx-linux64.c, features/s390-vx-linux64.c,
89 features/s390x-gs-linux64.c, features/s390x-tevx-linux64.c,
90 features/s390x-vx-linux64.c: Re-generate.
92 2017-12-20 Uros Bizjak <ubizjak@gmail.com>
94 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Remove
95 write-only assignment to "insn" variable.
97 2017-12-20 Ulrich Weigand <uweigand@de.ibm.com>
99 * spu-tdep.c (spu_gdbarch_init): Set set_gdbarch_significant_addr_bit
101 (ppc_linux_init_abi): Likewise, if Cell/B.E. is supported.
103 2017-12-18 Joel Brobecker <brobecker@adacore.com>
105 * ada-lang.c (ada_to_fixed_type_1): Rethrow errors with
106 a more detailed exception message when getting an exception
107 while trying to read the value of an XVZ variable.
108 * ada-valprint.c (ada_val_print): Only catch RETURN_MASK_ERROR
109 exceptions. Print an error message when an exception is caught.
111 2017-12-18 Joel Brobecker <brobecker@adacore.com>
113 * ada-lang.c (assign_component): Strip any TYPE_CODE_TYPEDEF
114 layer from lhs' type.
115 (assign_aggregate): Likewise.
117 2017-12-18 Xavier Roirand <roirand@adacore.com>
119 * ada-lang.c (ada_convert_actual): Change the way actual value
120 are passed to the inferior when the inferior expects a pointer type.
122 2017-12-17 Stafford Horne <shorne@gmail.com>
124 * gdb/or1k-tdep.c (show_or1k_debug): Fix function parameter alignment.
125 (or1k_analyse_inst): Likewise.
126 (or1k_single_step_through_delay): Likewise.
127 (or1k_frame_cache): Fix parameter alignment and use paddress()
130 2017-12-17 Stafford Horne <shorne@gmail.com>
132 * NEWS (Changes since GDB 8.0): Mention new or1k target and new
133 commands to set/show or1k debug.
135 2017-12-15 Sergio Durigan Junior <sergiodj@redhat.com>
137 * typeprint.c (whatis_exp): Fix ARI warning and reindent "if"
140 2017-12-15 Sergio Durigan Junior <sergiodj@redhat.com>
141 Pedro Alves <palves@redhat.com>
144 * NEWS (Changes since GDB 8.0): Mention new '/o' flag.
145 * c-typeprint.c (OFFSET_SPC_LEN): New define.
146 (c_type_print_varspec_prefix): New argument 'struct
147 print_offset_data *'.
148 (c_type_print_base_1): New function and prototype.
149 (c_print_type_1): New function, with code from 'c_print_type'.
150 (c_print_type): Use 'c_print_type_1'.
151 (c_type_print_varspec_prefix): New argument 'struct
152 print_offset_data *'. Use it. Call 'c_type_print_base_1'
153 instead of 'c_print_type_base'.
154 (print_spaces_filtered_with_print_options): New function.
155 (output_access_specifier): Take new argument FLAGS. Modify
156 function to call 'print_spaces_filtered_with_print_options'.
157 (c_print_type_vtable_offset_marker): New function.
158 (c_print_type_union_field_offset): New function.
159 (c_print_type_struct_field_offset): New function.
160 (c_print_type_no_offsets): New function.
161 (c_type_print_base_struct_union): New argument 'struct
162 print_offset_data *'. Print offsets and sizes for
163 struct/union/class fields.
164 * typeprint.c (const struct type_print_options
165 type_print_raw_options): Initialize 'print_offsets'.
166 (static struct type_print_options default_ptype_flags):
168 (struct print_offset_data print_offset_default_data): New
170 (whatis_exp): Handle '/o' option.
171 (_initialize_typeprint): Add '/o' flag to ptype's help.
172 * typeprint.h (struct print_offset_data): New struct.
173 (struct type_print_options) <print_offsets>: New field.
175 2017-12-15 Sergio Durigan Junior <sergiodj@redhat.com>
177 * c-typeprint.c (need_access_label_p): New function.
178 (c_type_print_base_struct_union): New function.
179 (c_type_print_base): Move code to handle
180 TYPE_CODE_{STRUCT,UNION} to the functions mentioned above.
182 2017-12-15 Richard Henderson <rth@redhat.com>
183 Uros Bizjak <ubizjak@gmail.com>
186 * alpha-tdep.c (alpha_software_single_step): Call
187 alpha_deal_with_atomic_sequence here.
188 (set_gdbarch_software_single_step): Set to
189 alpha_software_single_step.
190 * nat/linux-ptrace.h [__alpha__]: Define GDB_ARCH_IS_TRAP_BRKPT
191 and GDB_ARCH_IS_TRAP_HWBKPT.
193 2017-12-15 Yao Qi <yao.qi@linaro.org>
195 * unittests/memory-map-selftests.c: Wrap test with HAVE_LIBEXPAT.
197 2017-12-15 Xavier Roirand <roirand@adacore.com>
199 * ada-lang.c (ada_value_primitive_field): Handle field search
201 (find_struct_field): Ditto.
202 (ada_search_struct_field): Ditto.
203 (ada_value_struct_elt): Ditto.
204 (ada_lookup_struct_elt_type): Ditto.
206 2017-12-14 Simon Marchi <simon.marchi@ericsson.com>
208 * python/py-breakpoint.c (bppy_init): Use 'O' format specifier
209 for "qualified" and use PyObject_IsTrue.
211 2017-12-14 Jan Kratochvil <jan.kratochvil@redhat.com>
213 * dwarf2read.c (dw2_debug_names_iterator::next): Support
215 (debug_names::dwarf5_offset_size, unit_kind): New.
216 (debug_names::insert): Add parameter kind.
217 (debug_names::build): Support DW_IDX_type_unit.
218 (debug_names::recursively_write_psymbols): Update
219 (debug_names::write_psymbols caller.
220 (debug_names::write_one_signatured_type_data)
221 (debug_names::write_one_signatured_type): New.
222 (debug_names::index_key, debug_names::symbol_value)
223 (debug_names::write_psymbols): Add kind.
224 (debug_names::write_one_signatured_type): New.
225 (write_debug_names): Move dwarf5_offset_size to debug_names.
226 Use debug_names::write_one_signatured_type for type units.
228 2017-12-14 Joel Brobecker <brobecker@adacore.com>
230 * ada-lang.c (ada_value_equal): Add handling of typedef types
231 when comparing array objects.
233 2017-12-14 Joel Brobecker <brobecker@adacore.com>
235 * ada-tasks.c (read_atcb): Properly set task_info->ptid
236 when !target_has_execution as well.
237 (task_command): Remove error when !target_has_execution.
239 2017-12-13 Simon Marchi <simon.marchi@ericsson.com>
241 * location.h (string_to_event_location): Add match_type
243 * location.c (string_to_event_location): Likewise.
244 * python/py-breakpoint.c (bppy_init): Handle qualified
247 2017-12-13 Pedro Alves <palves@redhat.com>
249 * completer.c (completion_tracker::maybe_add_completion): New
250 'text' and 'word' parameters. Use make_completion_match_str.
251 (completion_tracker::add_completion): New 'text' and 'word'
252 parameters. Pass down.
253 (completion_tracker::recompute_lowest_common_denominator): Change
254 parameter type to gdb::unique_xmalloc_ptr rval ref. Adjust.
255 * completer.h (completion_tracker::add_completion): New 'text' and
257 (completion_tracker::recompute_lowest_common_denominator): Change
258 parameter type to gdb::unique_xmalloc_ptr rval ref.
259 (completion_tracker::recompute_lowest_common_denominator): Change
260 parameter type to gdb::unique_xmalloc_ptr rval ref.
261 * symtab.c (completion_list_add_name): Pass down 'text' and 'word'
264 2017-12-13 Pedro Alves <palves@redhat.com>
266 * cli/cli-decode.c (complete_on_cmdlist, complete_on_enum): Use
267 make_completion_match_str.
268 * completer.c: Use gdb::unique_xmalloc_ptr and
269 make_completion_match_str.
270 (make_completion_match_str_1): New.
271 (make_completion_match_str(const char *, const char *,
273 (make_completion_match_str(gdb::unique_xmalloc_ptr<char> &&,
274 const char *, const char *)): New.
275 * completer.h (make_completion_match_str(const char *,
276 const char *, const char *)): New.
277 (make_completion_match_str(gdb::unique_xmalloc_ptr<char> &&,
278 const char *, const char *)): New.
279 * interps.c (interpreter_completer): Use make_completion_match_str.
280 * symtab.c (completion_list_add_name, add_filename_to_list): Use
281 make_completion_match_str.
283 2017-12-13 Stafford Horne <shorne@gmail.com>
285 * or1k-tdep.c (or1k_analyse_inst): Use _() wrapper for message
287 (or1k_unwind_pc): Use paddress() instead of %p.
288 (or1k_unwind_sp): Likewise.
289 (or1k_frame_cache): Use host_address_to_string()/paddress()
290 instead of %p and use _() wrapper for message strings.
292 2017-12-13 Simon Marchi <simon.marchi@ericsson.com>
294 * contrib/ari/gdb_ari.sh: Fix typo in help.
296 2017-12-13 Joel Brobecker <brobecker@adacore.com>
298 * event-top.c (handle_line_of_input): Set server_command.
300 2017-12-12 Stafford Horne <shorne@gmail.com>
301 Stefan Wallentowitz <stefan@wallentowitz.de>
302 Stefan Kristiansson <stefan.kristiansson@saunalahti.fi>
303 Franck Jullien <franck.jullien@gmail.com>
304 Jeremy Bennett <jeremy.bennett@embecosm.com>
306 * configure.tgt: Add targets for or1k and or1knd.
307 * or1k-tdep.c: New file.
308 * or1k-tdep.h: New file.
309 * features/Makefile: Add or1k.xml to build.
310 * features/or1k.xml: New file.
311 * features/or1k-core.xml: New file.
312 * features/or1k.c: Generated.
314 2017-12-12 Alan Modra <amodra@gmail.com>
317 * ppc64-tdep.c (ppc64_plt_entry_point): Rewrite to take TOC-relative
318 PLT offset, and retrieve r2 from stack when executing in reverse.
319 (ppc64_standard_linkage1_target): Drop pc param. Calculate offset
320 rather than PLT address.
321 (ppc64_standard_linkage2_target): Likewise.
322 (ppc64_standard_linkage3_target): Likewise.
323 (ppc64_standard_linkage4_target): Likewise.
324 (ppc64_skip_trampoline_code_1): Adjust to suit.
326 2017-12-11 Simon Marchi <simon.marchi@ericsson.com>
329 * remote.c (remote_thread_name): Return NULL if name is empty.
330 (remote_threads_extra_info): Return NULL if extra info is empty.
332 2017-12-11 Pedro Alves <palves@redhat.com>
334 * defs.h (elf_sym_fns_lazy_psyms, elf_sym_fns_gdb_index)
335 (elf_sym_fns_debug_names): Move to elfread.c.
336 * dwarf2read.c (dwarf2_initialize_objfile): Return a boolean
337 instead of a sym_fns and add 'index_kind' output parameter. Fill
338 the latter in with the index variant kind if using an index.
339 (enum dw_index_kind): Moved to symfile.h.
340 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_debug_names)
341 (elf_sym_fns_lazy_psyms): Move from defs.h.
342 (elf_symfile_read): Adjust to new dwarf2_initialize_objfile
344 * symfile.h (enum class dw_index_kind): New, moved from
346 (dwarf2_initialize_objfile): Change prototype.
348 2017-12-11 Ulrich Weigand <uweigand@de.ibm.com>
350 * target-float.c (mpfr_float_ops::from_target): Use mpfr_set_ui
351 instead of mpfr_set_si to convert mantissa bits.
353 2017-12-11 Xavier Roirand <roirand@adacore.com>
354 Joel Brobecker <brobecker@adacore.com>
356 * ada-lang.c (ada_tag_value_at_base_address): Change the way
357 tagged type base address is computed.
358 (enum ada_primitive_types) <ada_primitive_type_storage_offset>:
360 (ada_language_arch_info): Set the ada_primitive_type_storage_offset
361 element of lai->primitive_type_vector.
363 2017-12-08 Pedro Alves <palves@redhat.com>
365 * dwarf2read.c (mock_mapped_index): Reimplement as an extension of
367 (check_match): Adjust to use mock_index directly.
368 (check_find_bounds_finds)
369 (test_mapped_index_find_name_component_bounds): Adjust to work
370 with a mapped_index_base.
372 2017-12-08 Pedro Alves <palves@redhat.com>
374 * dwarf2read.c (struct mapped_index_base): New, partially factored
376 (struct mapped_index): ... this. Inherit mapped_index_base.
377 (mapped_index::symbol_name_slot_invalid):
378 (mapped_index::symbol_name_at): Add override marker.
379 (mapped_index::symbol_name_count): New.
380 (struct mapped_debug_names): Inherit mapped_index_base.
381 (mapped_debug_names::symbol_name_at): New.
382 (mapped_debug_names::symbol_name_count): New.
383 (mapped_index::find_name_components_bounds): Rename to ...
384 (mapped_index_base::find_name_components_bounds): ... this.
385 (mapped_index::build_name_components): Rename to ...
386 (mapped_index_base::build_name_components): ... this. Adjust to
387 use mapped_index_base::symbol_name_count and
388 mapped_index_base::symbol_name_slot_invalid.
389 (dw2_expand_symtabs_matching_symbol): Take a mapped_index_base
390 instead of a mapped_index. Use
391 dw2_expand_symtabs_matching_symbol.
393 2017-12-08 Pedro Alves <palves@redhat.com>
395 * dwarf2read.c (mapped_index::symbol_table_slot): New.
396 (mapped_index::address_table): Now a gdb::array_view of const
398 (mapped_index::symbol_table): Now a gdb::array_view of
400 (mapped_index::address_table_size)
401 (mapped_index::symbol_table_slots): Delete.
402 (create_addrmap_from_index): Adjust.
403 (find_slot_in_mapped_hash): Adjust.
404 (read_index_from_section): Adjust.
405 (dwarf2_read_index): Adjust.
407 2017-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
408 Pedro Alves <palves@redhat.com>
410 * defs.h (elf_sym_fns_debug_names): New declaration.
411 * dwarf2read.c: Include "hash_enum.h".
412 (mapped_debug_names): New.
413 (struct dwarf2_per_objfile): Add debug_names, debug_aranges and
415 (dwarf2_elf_names): Add ".debug_names" and ".debug_aranges".
416 (struct dwz_file): Add debug_names.
417 (dwarf2_per_objfile::locate_sections): Handle debug_names and
419 (locate_dwz_sections): Handle debug_names.
420 (create_signatured_type_table_from_debug_names)
421 (create_addrmap_from_aranges): New.
422 (dwarf2_read_index): Update function comment.
423 (dwarf5_augmentation): Moved up.
424 (read_debug_names_from_section, create_cus_from_debug_names_list)
425 (create_cus_from_debug_names, dwarf2_read_debug_names): New.
426 (dwarf5_djb_hash): Moved up.
427 (dw2_debug_names_iterator): New.
428 (read_indirect_string_at_offset): New declaration.
429 (mapped_debug_names::namei_to_name)
430 (dw2_debug_names_iterator::find_vec_in_debug_names)
431 (dw2_debug_names_iterator::next, dw2_debug_names_lookup_symbol)
432 (dw2_debug_names_dump, dw2_debug_names_expand_symtabs_for_function)
433 (dw2_debug_names_expand_symtabs_matching, dwarf2_debug_names_functions):
435 (dwarf2_initialize_objfile): Return also elf_sym_fns_debug_names.
436 (debug_names::djb_hash): Rename it to dwarf5_djb_hash.
437 (debug_names::build): Update djb_hash caller.
438 (write_debug_names): Move out and rename augmentation to
440 * elfread.c (elf_sym_fns_debug_names): New.
441 * psymtab.h (dwarf2_debug_names_functions): New declaration.
442 * symfile.h (struct dwarf2_debug_sections): Add debug_names and
444 * xcoffread.c (dwarf2_xcoff_names): Add debug_names and debug_aranges.
446 2017-12-08 Pedro Alves <palves@redhat.com>
448 * common/hash_enum.h: New file.
450 2017-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
452 * dwarf2read.c (create_cu_from_index_list): New from ...
453 (create_cus_from_index_list): ... this function, use it.
454 (dw_expand_symtabs_matching_file_matcher)
455 (dw2_expand_symtabs_matching_one): New from ...
456 (dw2_expand_symtabs_matching): ... this function, use them.
458 2017-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
460 * defs.h (elf_sym_fns_lazy_psyms, elf_sym_fns_gdb_index): Move here
461 declarations from elfread.c.
462 (dwarf2_initialize_objfile): Change return value.
463 * elfread.c (elf_sym_fns_lazy_psyms, elf_sym_fns_gdb_index): Move these
464 declarations to defs.h.
465 (elf_symfile_read): Adjust dwarf2_initialize_objfile caller.
466 * symfile.h (dwarf2_initialize_objfile): Change return type.
468 2017-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
469 Pedro Alves <palves@redhat.com>
471 * contrib/gdb-add-index.sh (index): Rename to ...
473 (index5, debugstr, debugstrmerge, debugstrerr): New variables.
474 Support also .debug_names and .debug_str.
475 * dwarf2read.c: Include cmath, set, list.
476 (INDEX_SUFFIX): Rename to ...
477 (INDEX4_SUFFIX): ... here.
478 (INDEX5_SUFFIX, DEBUG_STR_SUFFIX): New.
479 (file_write(FILE *, const void *, size_t)): New.
480 (file_write(FILE *, const std::vector<Elem, Alloc> &)): New.
481 (data_buf::append_unsigned_leb128, data_buf::empty): New.
482 (data_buf::file_write): Use ::file_write.
483 (data_buf::c_str, dwarf5_djb_hash, debug_names)
484 (check_dwarf64_offsets): New.
485 (psyms_seen_size, write_gdbindex): New from
486 write_psymtabs_to_index code.
487 (dwarf5_gdb_augmentation, write_debug_names, assert_file_size)
488 (enum dw_index_kind): New.
489 (write_psymtabs_to_index): New parameter index_kind. Support
490 filename_str and out_file_str. Move code to write_gdbindex,
491 possibly call write_debug_names.
492 (save_gdb_index_command): New parameter -dwarf-5.
493 (_initialize_dwarf2_read): Document the new parameter -dwarf-5.
495 2017-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
496 Pedro Alves <palves@redhat.com>
498 * contrib/cc-with-tweaks.sh: Change interpreter to bash, incl. initial
500 (GDB_ADD_INDEX): New variable.
501 <$want_index>: Call $GDB_ADD_INDEX.
503 2017-12-08 Sergio Durigan Junior <sergiodj@redhat.com>
505 * dtrace-probe.c (dtrace_process_dof_probe): Do not declare a new
506 "expression_up" inside the TRY block.
508 2017-12-08 Yao Qi <yao.qi@linaro.org>
510 * breakpoint.c (update_watchpoint): Call
513 2017-12-08 Yao Qi <yao.qi@linaro.org>
515 * breakpoint.c (adjust_breakpoint_address): Call
518 2017-12-08 Yao Qi <yao.qi@linaro.org>
520 * aarch64-tdep.c (aarch64_gdbarch_init): Install gdbarch
521 significant_addr_bit.
522 * gdbarch.sh (significant_addr_bit): New.
523 * gdbarch.c, gdbarch.h: Re-generated.
524 * target.c (memory_xfer_partial): Call address_significant.
525 * utils.c (address_significant): New function.
526 * utils.h (address_significant): Declare.
528 2017-12-08 Tom Tromey <tom@tromey.com>
530 * printcmd.c (ui_printf): Update. Use std::vector.
531 * common/format.h (struct format_piece): Add constructor.
533 (class format_pieces): New class.
534 (parse_format_string, free_format_pieces)
535 (free_format_pieces_cleanup): Remove.
536 * common/format.c (format_pieces::format_pieces): Rename from
537 parse_format_string. Update.
538 (free_format_pieces, free_format_pieces_cleanup): Remove.
539 * breakpoint.c (parse_cmd_to_aexpr): Update. Use std::vector.
540 * ax-gdb.h (gen_printf): Remove argument.
541 * ax-gdb.c (gen_printf): Remove "frags" argument.
542 (maint_agent_printf_command): Update. Use std::vector.
544 2017-12-08 Yao Qi <yao.qi@linaro.org>
547 * linespec.c (minsym_found): Set sal.section.
549 2017-12-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
551 * configure.tgt (s390*-*-linux*): Add symfile-mem.o.
553 2017-12-07 Keith Seitz <keiths@redhat.com>
556 * location.c (string_to_explicit_location): When terminating
557 parsing early, break out of enclosing loop instead of returning.
559 2017-12-07 Keith Seitz <keiths@redhat.com>
561 * NEWS (New commands): Mention set/show print type nested-type-limit.
562 * c-typeprint.c (c_type_print_base): Print out nested types.
563 * dwarf2read.c (struct typedef_field_list): Rename to ...
564 (struct decl_field_list): ... this. Change all uses.
565 (struct field_info) <nested_types_list, nested_types_list_count>:
567 (add_partial_symbol): Look for nested type definitions in C++, too.
568 (dwarf2_add_typedef): Rename to ...
569 (dwarf2_add_type_defn): ... this.
570 (type_can_define_types): New function.
571 Update assertion to use type_can_define_types.
572 Permit NULL for a field's name.
573 (process_structure_scope): Handle child DIEs of types that can
575 Copy the list of nested types into the type struct.
576 * gdbtypes.h (struct typedef_field): Rename to ...
577 (struct decl_field): ... this. Change all uses.
578 [is_protected, is_private]: New fields.
579 (struct cplus_struct_type) <nested_types, nested_types_count>: New
581 (TYPE_NESTED_TYPES_ARRAY, TYPE_NESTED_TYPES_FIELD)
582 (TYPE_NESTED_TYPES_FIELD_NAME, TYPE_NESTED_TYPES_FIELD_TYPE)
583 (TYPE_NESTED_TYPES_COUNT, TYPE_NESTED_TYPES_FIELD_PROTECTED)
584 (TYPE_NESTED_TYPES_FIELD_PRIVATE): New macros.
585 * typeprint.c (type_print_raw_options, default_ptype_flags): Add
586 default value for print_nested_type_limit.
587 (print_nested_type_limit): New static variable.
588 (set_print_type_nested_types, show_print_type_nested_types): New
590 (_initialize_typeprint): Register new commands for set/show
591 `print-nested-type-limit'.
592 * typeprint.h (struct type_print_options) [print_nested_type_limit]:
595 2017-12-07 Tom Tromey <tom@tromey.com>
597 PR breakpoints/22511:
598 * breakpoint.c (commands_command_1): Don't throw an exception when
599 no commands have been read.
601 2017-12-07 Adam Stylinski <adam.stylinski@etegent.com>
604 * target-descriptions.c (print_c_tdesc::visit_pre): Change type of
607 2017-12-07 Simon Marchi <simon.marchi@ericsson.com>
609 * common/selftest.h (struct selftest): Add virtual destructor.
611 2017-12-07 Phil Muldoon <pmuldoon@redhat.com>
613 * python/py-breakpoint.c (bppy_init): Use string_to_event_location
614 over basic location code. Implement explicit location keywords.
615 (bppy_init_validate_args): New function.
616 * NEWS: Document Python explicit breakpoint locations.
618 2017-12-07 Joel Brobecker <brobecker@adacore.com>
620 * MAINTAINERS: Restore target entries for m68hc11-elf,
621 score-elf and xstormy16-elf, incorrectly removed in a previous
622 patch meant to only update the list of active maintainers.
624 2017-12-06 Pedro Alves <palves@redhat.com>
626 * break-catch-syscall.c (insert_catch_syscall)
627 (remove_catch_syscall): Adjust to pass reference to
628 inf_data->syscalls_counts directly via gdb::array_view.
629 * fbsd-nat.c (fbsd_set_syscall_catchpoint): Adjust to use bool
631 * linux-nat.c (linux_child_set_syscall_catchpoint): Likewise.
632 * remote.c (remote_set_syscall_catchpoint): Likewise.
633 * target-debug.h (target_debug_print_bool): New.
634 (define target_debug_print_gdb_array_view_const_int): New.
635 * target-delegates.c: Regenerate.
636 * target.h (target_ops) <to_set_syscall_catchpoint>: Use
637 gdb::array_view and bool.
638 (target_set_syscall_catchpoint): Likewise.
640 2017-12-06 Simon Marchi <simon.marchi@ericsson.com>
642 * break-catch-syscall.c (catch_syscall_completer): Get pointers
643 to syscall group strings after building the string vector.
645 2017-12-06 Pedro Alves <palves@redhat.com>
647 * remote.c (remote_query_supported): Don't send "xmlRegisters=" if
648 "qXfer:features:read"" is disabled.
649 (remote_write_qxfer, remote_read_qxfer, remote_search_memory):
650 Check packet_config_support instead of packet->support directly.
652 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
654 * target-descriptions.c (struct tdesc_feature) <registers>: Use
655 tdesc_reg_up typedef.
656 (struct target_desc) <features>: Use tdesc_feature_up typedef.
658 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
660 * target-descriptions.c (struct tdesc_type): Use default
664 (struct tdesc_type_builtin): New.
665 (struct tdesc_type_vector): New.
666 (struct tdesc_type_with_fields): New.
667 (tdesc_predefined_types): Change type to tdesc_type_builtin[].
668 (tdesc_gdb_type): Remove.
669 (tdesc_register_type): Adjust.
670 (tdesc_create_vector): Create tdesc_type_vector.
671 (tdesc_create_struct): Create tdesc_type_with_fields.
672 (tdesc_set_struct_size): Change parameter type.
673 (tdesc_create_union): Create tdesc_type_with_fields.
674 (tdesc_create_flags): Likewise.
675 (tdesc_create_enum): Likewise.
676 (tdesc_add_field): Change parameter type.
677 (tdesc_add_typed_bitfield): Likewise.
678 (tdesc_add_bitfield): Likewise.
679 (tdesc_add_flag): Likewise.
680 (tdesc_add_enum_value): Likewise.
681 (print_c_tdesc) <visit>: Remove overload with tdesc_type
682 parameter, add overloads for tdesc_type_builtin,
683 tdesc_type_with_fields and tdesc_type_vector.
684 <m_printed_type>: Remove.
685 <m_printed_element_type, m_printed_type_with_fields>: Add.
686 * target-descriptions.h (tdesc_create_enum): Change return type.
687 (tdesc_add_typed_bitfield): Change parameter type.
688 (tdesc_add_enum_value): Change parameter type.
689 * xml-tdesc.c (struct tdesc_parsing_data) <current_type>: Change
690 type to tdesc_type_with_fields.
691 (tdesc_start_struct): Adjust.
692 (tdesc_start_flags): Adjust.
693 (tdesc_start_enum): Adjust.
694 (tdesc_start_field): Adjust.
695 * arch/tdesc.h (struct tdesc_type_builtin): Forward-declare.
696 (struct tdesc_type_vector): Forward-declare.
697 (struct tdesc_type_with_fields): Forward-declare.
698 (tdesc_create_struct): Change return type.
699 (tdesc_create_union): Likewise.
700 (tdesc_create_flags): Likewise.
701 (tdesc_add_field): Change parameter type.
702 (tdesc_set_struct_size): Likewise.
703 (tdesc_add_bitfield): Likewise.
704 (tdesc_add_flag): Likewise.
705 * features: Re-generate C files.
707 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
709 * target-descriptions.c (tdesc_arch_reg): Remove typedef.
710 (struct tdesc_arch_reg): Add constructor.
711 (DEF_VEC_O (tdesc_arch_reg)): Remove.
712 (struct tdesc_arch_data): Initialize fields.
713 <arch_regs>: Change type to std::vector.
714 (target_find_description): Adjust.
715 (tdesc_find_type): Adjust.
716 (tdesc_data_init): Call tdesc_arch_data constructor.
717 (tdesc_data_alloc): Allocate tdesc_arch_data with new.
718 (tdesc_data_cleanup): Free data with delete.
719 (tdesc_numbered_register): Adjust.
720 (tdesc_find_arch_register): Adjust.
721 (tdesc_use_registers): Adjust.
723 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
725 * target-descriptions.c (tdesc_type_field): Remove typedef.
726 (DEF_VEC_O (tdesc_type_field)): Remove.
727 (struct tdesc_type_field): Add constructor.
728 <name>: Change type to std::string.
729 (struct tdesc_type) <tdesc_type>: Instantiate vector if the type
731 <~tdesc_type>: Destroy vector if the type kind uses it.
732 <u::u::fields>: Change type to std::vector.
733 (tdesc_gdb_type): Adjust.
734 (tdesc_add_field): Adjust.
735 (tdesc_add_typed_bitfield): Adjust.
736 (tdesc_add_field): Adjust.
737 (tdesc_add_enum_value): Adjust.
738 (class print_c_tdesc) <visit>: Adjust.
740 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
742 * target-descriptions.c (struct tdesc_type) <name>: Change type
744 <~tdesc_type>: Don't manually free name.
745 <operator==>: Adjust.
746 (tdesc_named_type): Adjust.
747 (tdesc_find_type): Adjust.
748 (tdesc_gdb_type): Adjust.
749 (class print_c_tdesc) <visit>: Adjust.
751 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
753 * target-descriptions.c (tdesc_type_p): Remove typedef.
754 (DEF_VEC_P (tdesc_type_p)): Remove.
755 (struct tdesc_feature) <types>: Change type to std::vector.
756 <~tdesc_feature>: Replace with default implementation.
758 (tdesc_named_type): Adjust.
759 (tdesc_create_vector): Adjust.
760 (tdesc_create_struct): Adjust.
761 (tdesc_create_union): Adjust.
762 (tdesc_create_flags): Adjust.
763 (tdesc_create_enum): Adjust.
765 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
767 * target-descriptions.c (struct tdesc_reg) <tdesc_reg>: Change
768 type of name_ parameter, adjust to std::string change.
769 <name, group, type>: Change type to std::string.
770 <~tdesc_reg>: Replace with default implementation.
771 <operator==>: Adjust.
772 (tdesc_find_register_early): Adjust.
773 (tdesc_register_name): Adjust.
774 (tdesc_register_type): Adjust.
775 (tdesc_register_in_reggroup_p): Adjust.
776 (class print_c_tdesc) <visit>: Adjust.
777 (class print_c_feature) <visit>: Adjust.
778 * features/arc-arcompact.c: Re-generate.
779 * features/arc-v2.c: Re-generate.
781 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
783 * target-descriptions.c (tdesc_reg_p): Remove typedef.
784 (DEF_VEC_P (tdesc_reg_p)): Remove.
785 (struct tdesc_feature) <registers>: Change type to std::vector.
786 <~tdesc_feature>: Don't manually free registers.
788 <operator==>: Adjust.
789 (tdesc_has_registers): Adjust.
790 (tdesc_find_register_early): Adjust.
791 (tdesc_use_registers): Adjust.
792 (tdesc_create_reg): Adjust.
794 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
796 * target-descriptions.c (tdesc_feature) <name>: Change type to
798 <~tdesc_feature>: Don't manually free name.
799 <operator==>: Adjust.
800 (tdesc_find_feature): Adjust.
801 (tdesc_feature_name): Adjust.
802 (class print_c_tdesc) <visit_pre>: Adjust.
803 (class print_c_feature) <visit_pre>: Adjust.
805 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
807 * target-descriptions.c (tdesc_feature_p): Remove typedef.
808 (DEF_VEC_P (tdesc_feature_p)): Remove.
809 (struct target_desc) <features>: Change type to std::vector.
810 <~target_desc>: Replace with default implementation.
812 <operator==>: Adjust.
813 (tdesc_has_registers): Adjust.
814 (tdesc_find_feature): Adjust.
815 (tdesc_use_registers): Adjust.
816 (tdesc_create_feature): Adjust.
818 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
820 * target-descriptions.c (arch_p): Remove typedef.
821 (DEF_VEC_P (arch_p)): Remove.
822 (struct target_desc) <compatible>: Change type to std::vector.
823 <~target_desc>: Don't manually free compatible.
824 (tdesc_compatible_p): Adjust.
825 (tdesc_add_compatible): Adjust.
826 (class print_c_tdesc) <visit_pre>: Adjust.
828 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
830 * target-descriptions.c (property_s): Remove typedef.
831 (DEF_VEC_O (property_s)): Remove.
832 (struct target_desc) <properties>: Make an std::vector.
833 <~target_desc>: Don't manually free properties.
834 (tdesc_property): Adjust.
835 (set_tdesc_property): Adjust.
836 (class print_c_tdesc) <visit_pre>: Adjust.
838 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
840 * common/gdb_assert.h (gdb_static_assert): Redefine using
843 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
845 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
847 (ada_is_redundant_range_encoding): Likewise.
848 * ada-varobj.c (ada_varobj_get_value_of_array_variable):
850 * alpha-tdep.c (alpha_software_single_step): Likewise.
851 * arm-tdep.c (_initialize_arm_tdep): Likewise.
852 * auto-load.c (info_auto_load_cmd): Likewise.
853 * break-catch-syscall.c (insert_catch_syscall): Likewise.
854 (remove_catch_syscall): Likewise.
855 * breakpoint.c (condition_completer): Likewise.
856 (clear_command): Likewise.
857 (update_breakpoint_locations): Likewise.
858 * btrace.c (btrace_disable): Likewise.
859 (btrace_teardown): Likewise.
860 (btrace_maint_update_pt_packets): Likewise.
861 (maint_btrace_clear_cmd): Likewise.
862 * cli/cli-decode.c (lookup_cmd_1): Likewise.
863 (lookup_cmd_composition): Likewise.
864 * cli/cli-dump.c (scan_filename): Likewise.
865 (restore_command): Likewise.
866 * compile/compile-loc2c.c (compute_stack_depth): Likewise.
867 * compile/compile-object-load.c (compile_object_load): Likewise.
868 * compile/compile-object-run.c (compile_object_run): Likewise.
869 * compile/compile.c (compile_to_object): Likewise.
870 * completer.c (filename_completer): Likewise.
871 (complete_files_symbols): Likewise.
872 (complete_expression): Likewise.
873 * corelow.c (core_open): Likewise.
874 * ctf.c (ctf_start): Likewise.
875 (ctf_write_status): Likewise.
876 (ctf_write_uploaded_tsv): Likewise.
877 (ctf_write_definition_end): Likewise.
878 (ctf_open_dir): Likewise.
879 (ctf_xfer_partial): Likewise.
880 (ctf_trace_find): Likewise.
881 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
883 * dwarf2loc.c (allocate_piece_closure): Likewise.
884 (indirect_pieced_value): Likewise.
885 (dwarf2_evaluate_loc_desc_full): Likewise.
886 * dwarf2read.c (dw2_expand_marked_cus): Likewise.
887 (dw2_expand_symtabs_matching): Likewise.
888 (dw2_map_symbol_filenames): Likewise.
889 (read_and_check_comp_unit_head): Likewise.
890 (read_cutu_die_from_dwo): Likewise.
891 (lookup_dwo_unit): Likewise.
892 (read_comp_units_from_section): Likewise.
893 (dwarf2_compute_name): Likewise.
894 (handle_DW_AT_stmt_list): Likewise.
895 (create_cus_hash_table): Likewise.
896 (create_dwp_v2_section): Likewise.
897 (dwarf2_rnglists_process): Likewise.
898 (dwarf2_ranges_process): Likewise.
899 (dwarf2_record_block_ranges): Likewise.
900 (is_vtable_name): Likewise.
901 (read_formatted_entries): Likewise.
902 (skip_form_bytes): Likewise.
903 * elfread.c (elf_symtab_read): Likewise.
904 * exec.c (exec_file_command): Likewise.
905 * f-valprint.c (f_val_print): Likewise.
906 (info_common_command_for_block): Likewise.
907 * guile/guile.c (initialize_scheme_side): Likewise.
908 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Likewise.
909 * guile/scm-cmd.c (cmdscm_completer): Likewise.
910 (gdbscm_register_command_x): Likewise.
911 * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
912 * guile/scm-param.c (gdbscm_parameter_value): Likewise.
913 * guile/scm-ports.c (file_port_magic): Likewise.
914 * guile/scm-pretty-print.c (ppscm_search_pp_list): Likewise.
915 (ppscm_pretty_print_one_value): Likewise.
916 (ppscm_print_children): Likewise.
917 * guile/scm-string.c (gdbscm_string_to_argv): Likewise.
918 * guile/scm-symtab.c (gdbscm_sal_symtab): Likewise.
919 * guile/scm-type.c (gdbscm_type_next_field_x): Likewise.
920 * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
921 * i386-tdep.c (i386_register_reggroup_p): Likewise.
922 * infcmd.c (run_command_1): Likewise.
923 (until_next_fsm_clean_up): Likewise.
924 * linespec.c (linespec_complete): Likewise.
925 (find_label_symbols): Likewise.
926 * m2-valprint.c (m2_val_print): Likewise.
927 * memattr.c (require_user_regions): Likewise.
928 (lookup_mem_region): Likewise.
929 (disable_mem_command): Likewise.
930 (mem_delete): Likewise.
931 * mep-tdep.c (mep_register_name): Likewise.
932 (mep_analyze_prologue): Likewise.
933 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Likewise.
934 * mi/mi-interp.c (mi_on_sync_execution_done): Likewise.
935 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
936 * microblaze-linux-tdep.c (microblaze_linux_init_abi): Likewise.
937 * minidebug.c (lzma_open): Likewise.
938 * minsyms.c (lookup_minimal_symbol): Likewise.
939 * mips-linux-tdep.c (mips64_fill_fpregset): Likewise.
940 * mips-tdep.c (mips_stub_frame_sniffer): Likewise.
941 (mips_o64_return_value): Likewise.
942 (mips_single_step_through_delay): Likewise.
943 (_initialize_mips_tdep): Likewise.
944 * nios2-tdep.c (nios2_push_dummy_call): Likewise.
945 (nios2_software_single_step): Likewise.
946 * parse.c (find_minsym_type_and_address): Likewise.
947 * psymtab.c (psym_relocate): Likewise.
948 * python/py-breakpoint.c (bppy_get_commands): Likewise.
949 (gdbpy_breakpoint_modified): Likewise.
950 * python/py-infevents.c (create_inferior_call_event_object):
952 * python/py-record-btrace.c (btpy_list_item): Likewise.
953 * python/py-type.c (typy_str): Likewise.
954 * python/py-value.c (valpy_call): Likewise.
955 * python/python.c (do_start_initialization): Likewise.
956 * record-btrace.c (record_btrace_insn_history_range): Likewise.
957 (record_btrace_call_history_range): Likewise.
958 (record_btrace_record_method): Likewise.
959 (record_btrace_xfer_partial): Likewise.
960 (btrace_get_frame_function): Likewise.
961 * record-full.c (record_full_open): Likewise.
962 * record.c (get_context_size): Likewise.
963 * registry.h (DEFINE_REGISTRY): Likewise.
964 * remote-fileio.c (remote_fileio_request): Likewise.
965 * remote.c (remote_update_thread_list): Likewise.
966 (remote_check_symbols): Likewise.
967 (remote_commit_resume): Likewise.
968 (remote_interrupt): Likewise.
969 (remote_insert_breakpoint): Likewise.
970 (compare_sections_command): Likewise.
971 * rust-exp.y (super_name): Likewise.
972 (lex_string): Likewise.
973 (convert_ast_to_type): Likewise.
974 (convert_ast_to_expression): Likewise.
975 * rust-lang.c (rust_print_struct_def): Likewise.
976 (rust_print_type): Likewise.
977 (rust_evaluate_subexp): Likewise.
978 * rx-tdep.c (rx_register_type): Likewise.
979 * ser-event.c (serial_event_clear): Likewise.
980 * serial.c (serial_open): Likewise.
981 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
982 * symfile.c (section_is_overlay): Likewise.
983 (overlay_unmapped_address): Likewise.
984 (overlay_mapped_address): Likewise.
985 (simple_overlay_update_1): Likewise.
986 (simple_overlay_update): Likewise.
987 * symtab.c (symbol_find_demangled_name): Likewise.
988 (search_symbols): Likewise.
989 * target-descriptions.c (tdesc_predefined_type): Likewise.
990 * target.c (target_commit_resume): Likewise.
991 * thread.c (print_selected_thread_frame): Likewise.
992 * top.c (new_ui_command): Likewise.
993 (gdb_readline_no_editing): Likewise.
994 * tracefile-tfile.c (tfile_open): Likewise.
995 * tracepoint.c (create_tsv_from_upload): Likewise.
996 * utils.c (quit): Likewise.
997 (defaulted_query): Likewise.
998 * valarith.c (value_concat): Likewise.
999 * xml-syscall.c (xml_list_syscalls_by_group): Likewise.
1000 * xml-tdesc.c (target_fetch_description_xml): Likewise.
1001 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
1002 (xtensa_pseudo_register_write): Likewise.
1004 2017-12-04 Tom Tromey <tom@tromey.com>
1006 * NEWS: Mention Rust trait object inspection.
1008 2017-12-04 Pedro Alves <palves@redhat.com>
1011 * amd64-tdep.c (amd64_insn::rex_offset): Rename to...
1012 (amd64_insn::enc_prefix_offset): ... this, and tweak comment.
1013 (vex2_prefix_p, vex3_prefix_p): New functions.
1014 (amd64_get_insn_details): Adjust to rename. Also skip VEX2 and
1016 (fixup_riprel): Set VEX3.!B.
1018 2017-12-03 Simon Marchi <simon.marchi@ericsson.com>
1020 * target.h (mem_region_vector): Remove.
1021 (struct target_ops) <to_memory_map>: Change return type to
1022 std::vector<mem_region>.
1023 * target-debug.h (target_debug_print_mem_region_vector): Rename
1025 (target_debug_print_std_vector_mem_region): ... this.
1026 * target-delegates.c: Re-generate.
1028 2017-12-03 Pedro Alves <palves@redhat.com>
1030 * make-target-delegates (munge_type): Also munge '<', '>', and
1031 ':'. Avoid double underscores in identifiers, and trailing
1034 (target_debug_print_VEC_static_tracepoint_marker_p__p): Rename to
1036 (target_debug_print_VEC_static_tracepoint_marker_p_p): ... this.
1037 * target-delegates.c: Regenerate.
1039 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1041 * common/poison.h (XDELETE): Fix typo.
1043 2017-12-01 Andrew Cagney <cagney@redhat.com>
1044 Joel Brobecker <brobecker@adacore.com>
1045 Sergio Durigan Junior <sergiodj@redhat.com>
1047 * NEWS (Changes since GDB 8.0: Mention new '--readnever'
1049 * coffread.c (coff_symfile_read): Do not map over sections with
1050 'coff_locate_sections' if readnever is on.
1051 * dwarf2read.c (dwarf2_has_info): Return 0 if
1053 * elfread.c (elf_symfile_read): Do not map over sections with
1054 'elf_locate_sections' if readnever is on.
1055 * main.c (validate_readnow_readnever): New function.
1056 (captured_main_1): Add support for --readnever.
1057 (print_gdb_help): Document --readnever.
1058 * objfile-flags.h (enum objfile_flag) <OBJF_READNEVER>: New
1060 * symfile.c (readnever_symbol_files): New global.
1061 (symbol_file_add_with_addrs): Set 'OBJF_READNEVER' when
1062 'READNEVER_SYMBOL_FILES' is set.
1063 (validate_readnow_readnever): New function.
1064 (symbol_file_command): Handle '-readnever' option.
1065 Call 'validate_readnow_readnever'.
1066 (add_symbol_file_command): Handle '-readnever' option.
1067 Call 'validate_readnow_readnever'.
1068 (_initialize_symfile): Document new '-readnever' option for
1069 both 'symbol-file' and 'add-symbol-file' commands.
1070 * top.h (readnever_symbol_files): New extern global.
1071 * xcoffread.c (xcoff_initial_scan): Do not read debug
1072 information if readnever is on.
1074 2017-12-01 Sergio Durigan Junior <sergiodj@redhat.com>
1076 * symfile.c (symbol_file_command): Call
1077 'symbol_file_add_main_1' only after processing all command
1079 (add_symbol_file_command): Modify logic to make arguments
1080 position-independent.
1082 2017-12-01 Joel Brobecker <brobecker@adacore.com>
1084 * ada-lang.c (symbol_list_obstack): Delete.
1085 (resolve_subexp): Make sure "candidates" gets xfree'ed.
1086 (ada_lookup_symbol_list_worker): Remove the limitation that
1087 the result is only good until the next call, now making it
1088 the responsibility of the caller to free the result when no
1089 longer needed. Adjust the function's intro comment accordingly.
1090 (ada_lookup_symbol_list): Adjust the function's intro comment.
1091 (ada_iterate_over_symbols): Make sure "results" gets xfree'ed.
1092 (ada_lookup_encoded_symbol, get_var_value): Likewise.
1093 (_initialize_ada_language): Remove symbol_list_obstack
1095 * ada-exp.y (block_lookup): Make sure "syms" gets xfree'ed.
1096 (write_var_or_type, write_name_assoc): Likewise.
1098 2017-12-01 Tom Tromey <tom@tromey.com>
1100 * Makefile.in (all_deps_files): New variable.
1101 Include .Po files using all_deps_files.
1103 2017-12-01 Joel Brobecker <brobecker@adacore.com>
1105 * MAINTAINERS: Update list of maintainers, moving those who
1106 stepped down or became inactive to the "Past Maintainers"
1109 2017-11-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1111 * configure.ac Don't check for sys/fault.h, sys/syscall.h,
1113 (NEW_PROC_API): Remove.
1114 (prsysent_t, pr_sigset_t, pr_sigaction64_t, pr_siginfo64_t):
1116 * common/common.m4 (GDB_AC_COMMON): Don't check for sys/syscall.h.
1117 * configure: Regenerate.
1118 * config.in: Regenerate.
1119 * gdbserver/configure: Regenerate.
1120 * gdbserver/config.in: Regenerate.
1122 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Remove
1124 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Likewise.
1126 * linux-btrace.c: Remove HAVE_SYS_SYSCALL_H test.
1128 * proc-api.c: Remove !NEW_PROC_API support.
1129 Remove HAVE_SYS_PROC_H and HAVE_SYS_USER_H tests.
1130 Remove tests for macros always defined on Solaris.
1131 * proc-events.c: Remove !NEW_PROC_API support.
1132 Remove Remove HAVE_SYS_SYSCALL_H, HAVE_SYS_PROC_H and
1133 HAVE_SYS_USER_H tests.
1134 (init_syscall_table): Remove non-Solaris syscalls.
1135 Remove tests for syscalls present on all Solaris versions.
1136 Add missing Solaris 10+ syscalls.
1137 (signal_table): Remove non-Solaris signals.
1138 Remove tests for signals present on all Solaris versions.
1139 (fault_table): Remove non-Solaris faults.
1140 Remove tests for faults present on all Solaris versions.
1141 * proc-flags.c: Remove !NEW_PROC_API support.
1142 (pr_flag_table): Remove non-Solaris and pre-Solaris 7 comments.
1143 Remove non-Solaris flags.
1144 * proc-why.c: Remove !NEW_PROC_API support.
1145 (pr_why_table): Remove meaningless comments.
1146 Remove tests for reasons present on all Solaris versions.
1148 (proc_prettyfprint_why): Likewise.
1150 * procfs.c: Remove !NEW_PROC_API and DYNAMIC_SYSCALLS support.
1151 Remove HAVE_SYS_FAULT_H and HAVE_SYS_SYSCALL_H tests.
1152 Remove WA_READ test, IRIX watchpoint support.
1153 (gdb_sigset_t, gdb_sigaction_t, gdb_siginfo_t): Replace by base
1154 types. Change users.
1155 (gdb_praddset, gdb_prdelset, gdb_premptysysset, gdb_praddsysset)
1156 (gdb_prdelset, gdb_pr_issyssetmember): Replace by base macros.
1158 Remove CTL_PROC_NAME_FMT tests.
1159 (gdb_prstatus_t, gdb_lwpstatus_t): Replace by base types. Change
1161 (sysset_t_size): Remove. Use sizeof (sysset_t) in callers.
1162 Remove PROCFS_DONT_PIOCSSIG_CURSIG support.
1163 (proc_modify_flag): Replace GDBRESET by PCUNSET.
1164 Remove PR_ASYNC, PR_KLC tests.
1165 (proc_unset_inherit_on_fork): Remove PR_ASYNC test.
1166 (proc_parent_pid): Remove PCWATCH etc. tests.
1167 (proc_set_watchpoint): Remove !PCWATCH && !PIOCSWATCH support.
1168 Remove PCAGENT test.
1169 (proc_get_nthreads) [PIOCNTHR && PIOCTLIST]: Remove.
1170 Remove SYS_lwpcreate || SYS_lwp_create test.
1171 (proc_get_current_thread): Likewise.
1172 [PIOCNTHR && PIOCTLIST]: Remove.
1173 [PIOCLSTATUS]: Remove.
1174 (procfs_debug_inferior): Remove non-Solaris cases, conditionals.
1175 [PRFS_STOPEXEC]: Remove.
1176 (syscall_is_lwp_exit): Remove non-Solaris cases, conditionals.
1177 (syscall_is_exit): Likewise.
1178 (syscall_is_exec): Likewise.
1179 (syscall_is_lwp_create): Likewise.
1180 Remove SYS_syssgi support.
1181 (procfs_wait): Remove PR_ASYNC, !PIOCSSPCACT tests.
1182 [SYS_syssgi]: Remove.
1183 Remove non-Solaris cases, conditionals.
1184 (unconditionally_kill_inferior) [PROCFS_NEED_PIOCSSIG_FOR_KILL]:
1186 (procfs_init_inferior) [SYS_syssgi]: Remove.
1187 (procfs_set_exec_trap) [PRFS_STOPEXEC]: Remove.
1188 (procfs_inferior_created) [SYS_syssgi]: Remove.
1189 (procfs_set_watchpoint): Remove !AIX5 test.
1190 (procfs_stopped_by_watchpoint): Remove FLTWATCH test, FLTKWATCH
1192 (mappingflags) [MA_PHYS]: Remove.
1193 (info_mappings_callback): Remove PCAGENT test.
1194 Remove PIOCOPENLWP || PCAGENT test.
1196 2017-11-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1198 * sol-thread.c (info_solthreads): Constify args.
1199 Cast args to void *.
1201 2017-11-29 John Baldwin <jhb@FreeBSD.org>
1203 * target-float.c [HAVE_LIBMPFR]: Define MPFR_USE_INTMAX_T.
1205 2017-11-29 Joel Brobecker <brobecker@adacore.com>
1207 * ada-lang.c (to_fixed_range_type): Make sure that the size
1208 of the range type being returned is the same as the size
1209 of the range type being fixed.
1211 2017-11-29 Pedro Alves <palves@redhat.com>
1214 * NEWS: Mention setting breakpoints on functions with C++ ABI
1216 * completer.h (completion_match_for_lcd) <match,
1217 mark_ignored_range>: New methods.
1218 <finish>: Consider ignored ranges.
1219 <clear>: Clear ignored ranges.
1220 <m_ignored_ranges, m_finished_storage>: New fields.
1221 * cp-support.c (cp_search_name_hash): Ignore ABI tags.
1222 (cp_symbol_name_matches_1, cp_fq_symbol_name_matches): Pass the
1223 completion_match_for_lcd pointer to strncmp_iw_with_mode.
1224 (test_cp_symbol_name_cmp): Add [abi:...] tags unit tests.
1225 * language.c (default_symbol_name_matcher): Pass the
1226 completion_match_for_lcd pointer to strncmp_iw_with_mode.
1227 * linespec.c (linespec_lexer_lex_string): Don't tokenize ABI tags.
1228 * utils.c (skip_abi_tag): New function.
1229 (strncmp_iw_with_mode): Add completion_match_for_lcd parameter.
1231 * utils.h (strncmp_iw_with_mode): Add completion_match_for_lcd
1234 2017-11-29 Pedro Alves <palves@redhat.com>
1237 * NEWS: Mention setting breakpoints on functions with C++ ABI
1239 * completer.h (completion_match_for_lcd) <match,
1240 mark_ignored_range>: New methods.
1241 <finish>: Consider ignored ranges.
1242 <clear>: Clear ignored ranges.
1243 <m_ignored_ranges, m_finished_storage>: New fields.
1244 * cp-support.c (cp_search_name_hash): Ignore ABI tags.
1245 (cp_symbol_name_matches_1, cp_fq_symbol_name_matches): Pass the
1246 completion_match_for_lcd pointer to strncmp_iw_with_mode.
1247 (test_cp_symbol_name_cmp): Add [abi:...] tags unit tests.
1248 * language.c (default_symbol_name_matcher): Pass the
1249 completion_match_for_lcd pointer to strncmp_iw_with_mode.
1250 * linespec.c (linespec_lexer_lex_string): Don't tokenize ABI tags.
1251 * utils.c (skip_abi_tag): New function.
1252 (strncmp_iw_with_mode): Add completion_match_for_lcd parameter.
1254 * utils.h (strncmp_iw_with_mode): Add completion_match_for_lcd
1257 2017-11-29 Pedro Alves <palves@redhat.com>
1259 * NEWS: Mention that breakpoints on C++ functions are now set on
1260 on all namespaces/classes by default, and mention "break
1262 * ax-gdb.c (agent_command_1): Adjust to pass a
1263 symbol_name_match_type to new_linespec_location.
1264 * breakpoint.c (parse_breakpoint_sals): Adjust to
1265 get_linespec_location's return type change.
1266 (strace_marker_create_sals_from_location): Adjust to pass a
1267 symbol_name_match_type to new_linespec_location.
1268 (strace_marker_decode_location): Adjust to get_linespec_location's
1270 (strace_command): Adjust to pass a symbol_name_match_type to
1271 new_linespec_location.
1272 (LOCATION_HELP_STRING): Add paragraph about wildmatching, and
1273 mention "-qualified".
1274 * c-lang.c (cplus_language_defn): Install cp_search_name_hash.
1275 * completer.c (explicit_location_match_type::MATCH_QUALIFIED): New
1277 (complete_address_and_linespec_locations): New parameter
1278 'match_type'. Pass it down.
1279 (explicit_options): Add "-qualified".
1280 (collect_explicit_location_matches): Pass the requested match type
1281 to the linespec completers. Handle MATCH_QUALIFIED.
1282 (location_completer): Handle "-qualified" combined with linespecs.
1283 * cp-support.c (cp_search_name_hash): New.
1284 (cp_symbol_name_matches_1): Implement wild matching for C++.
1285 (cp_fq_symbol_name_matches): Reimplement.
1286 (cp_get_symbol_name_matcher): Return different matchers depending
1287 on the lookup name's match type.
1288 (selftests::test_cp_symbol_name_matches): Add wild matching tests.
1289 * cp-support.h (cp_search_name_hash): New declaration.
1291 (selftests::dw2_expand_symtabs_matching::test_symbols): Add
1293 (test_dw2_expand_symtabs_matching_symbol): Add wild matching
1295 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Adjust to
1296 pass a symbol_name_match_type to new_linespec_location.
1297 * linespec.c (linespec_parse_basic): Lookup function symbols using
1298 the parser's symbol name match type.
1299 (convert_explicit_location_to_linespec): New
1300 symbol_name_match_type parameter. Pass it down to
1301 find_linespec_symbols.
1302 (convert_explicit_location_to_sals): Pass the location's name
1303 match type to convert_explicit_location_to_linespec.
1304 (parse_linespec): New match_type parameter. Save it in the
1306 (linespec_parser_new): Default to symbol_name_match_type::WILD.
1307 (linespec_complete_function): New symbol_name_match_type
1309 (complete_linespec_component): Pass down the parser's recorded
1311 (linespec_complete_label): New symbol_name_match_type parameter.
1313 (linespec_complete): New symbol_name_match_type parameter. Save
1314 it in the parser and pass it down. Adjust to
1315 get_linespec_location's prototype change.
1316 (find_function_symbols, find_linespec_symbols): New
1317 symbol_name_match_type parameter. Pass it down instead of
1318 assuming symbol_name_match_type::WILD.
1319 * linespec.h (linespec_complete, linespec_complete_function)
1320 (linespec_complete_label): New symbol_name_match_type parameter.
1321 * location.c (event_location::linespec_location): Now a struct
1323 (EL_LINESPEC): Adjust.
1324 (initialize_explicit_location): Default to
1325 symbol_name_match_type::WILD.
1326 (new_linespec_location): New symbol_name_match_type parameter.
1327 Record it in the location.
1328 (get_linespec_location): Now returns a struct linespec_location.
1329 (new_explicit_location): Also copy func_name_match_type.
1330 (explicit_to_string_internal)
1331 (string_to_explicit_location): Handle "-qualified".
1332 (copy_event_location): Adjust to LINESPEC_LOCATION type change.
1333 Copy symbol_name_match_type fields.
1334 (event_location_deleter::operator()): Adjust to LINESPEC_LOCATION
1336 (event_location_to_string): Adjust to LINESPEC_LOCATION type
1337 change. Handle "-qualfied".
1338 (string_to_explicit_location): Handle "-qualified".
1339 (string_to_event_location_basic): New symbol_name_match_type
1340 parameter. Pass it down.
1341 (string_to_event_location): Handle "-qualified".
1342 * location.h (struct linespec_location): New.
1343 (explicit_location::func_name_match_type): New field.
1344 (new_linespec_location): Now returns a const linespec_location *.
1345 (string_to_event_location_basic): New symbol_name_match_type
1347 (explicit_completion_info::saw_explicit_location_option): New
1349 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Adjust to pass a
1350 symbol_name_match_type to new_linespec_location.
1351 * python/py-breakpoint.c (bppy_init): Likewise.
1352 * python/python.c (gdbpy_decode_line): Likewise.
1354 2017-11-29 Pedro Alves <palves@redhat.com>
1356 * ada-lang.c (ada_lookup_name_info::matches): Change type of
1357 parameter from completion_match to completion_match_result.
1359 (do_wild_match, do_full_match, ada_symbol_name_matches): Likewise.
1360 * completer.c (completion_tracker::maybe_add_completion): Add
1361 match_for_lcd parameter and use it.
1362 (completion_tracker::add_completion): Likewise.
1363 * completer.h (class completion_match_for_lcd): New class.
1364 (completion_match_result::match_for_lcd): New field.
1365 (completion_match_result::set_match): New method.
1366 (completion_tracker): Add comments.
1367 (completion_tracker::add_completion): Add match_for_lcd parameter.
1368 (completion_tracker::reset_completion_match_result): Reset
1370 (completion_tracker::maybe_add_completion): Add match_for_lcd
1372 (completion_tracker::m_lowest_common_denominator_unique): Extend
1374 * cp-support.c (cp_symbol_name_matches_1)
1375 (cp_fq_symbol_name_matches): Change type of parameter from
1376 completion_match to completion_match_result. Adjust.
1377 * language.c (default_symbol_name_matcher): Change type of
1378 parameter from completion_match to completion_match_result.
1380 * language.h (completion_match_for_lcd): Forward declare.
1381 (default_symbol_name_matcher): Change type of parameter from
1382 completion_match to completion_match_result.
1383 * symtab.c (compare_symbol_name): Adjust.
1384 (completion_list_add_name): Pass the match_for_lcd to the tracker.
1385 * symtab.h (ada_lookup_name_info::matches): Change type of
1386 parameter from completion_match to completion_match_result.
1387 (symbol_name_matcher_ftype): Likewise, and update comments.
1389 2017-11-29 Pedro Alves <palves@redhat.com>
1391 * linespec.c (minsym_found, add_minsym): Use msymbol_is_function.
1392 * minsyms.c (msymbol_is_text): Delete.
1393 (msymbol_is_function): New function.
1394 * minsyms.h (msymbol_is_text): Delete.
1395 (msymbol_is_function): New declaration.
1396 * symtab.c (find_function_alias_target): Use msymbol_is_function.
1398 2017-11-29 Tom Tromey <tom@tromey.com>
1400 * Makefile.in (distclean): Handle the case where rmdir fails.
1402 2017-11-29 Tom Tromey <tom@tromey.com>
1404 * symfile.c (_initialize_symfile): Update usage text for
1405 add-symbol-file, symbol-file, load.
1407 2017-11-29 Tom Tromey <tom@tromey.com>
1409 * symfile.c (add_symbol_file_command): Error if some arguments to
1410 -s are missing. Change unrecognized-argument error message.
1411 (_initialize_symfile): Fix usage text for add-symbol-file.
1413 2017-11-27 Tom Tromey <tom@tromey.com>
1415 * Makefile.in (REMOTE_OBS): Remove.
1416 (SFILES): Remove remote sources.
1417 (COMMON_SFILES): Add remote sources.
1418 (ALLDEPFILES): Remove dcache.c.
1420 2017-11-27 Tom Tromey <tom@tromey.com>
1422 * Makefile.in (SUBDIR_TARGET_SRCS, SUBDIR_TARGET_OBS): New
1424 (SFILES): Use SUBDIR_TARGET_SRCS.
1425 (COMMON_OBS): Use SUBDIR_TARGET_OBS. Remove waitstatus.o.
1426 (CONFIG_SRC_SUBDIR): Add target.
1427 (%.o): Remove target rule.
1429 2017-11-27 Tom Tromey <tom@tromey.com>
1431 * Makefile.in (COMMON_OBS): Remove filename-seen-cache.o,
1432 registry.o, thread-fsm.o, debug.o.
1433 (COMMON_SFILES): Add filename-seen-cache.c, registry.c,
1434 thread-fsm.c, debug.c.
1436 2017-11-27 Tom Tromey <tom@tromey.com>
1438 * Makefile.in (COMMON_SFILES): New.
1439 (SFILES): Move some entries to COMMON_SFILES.
1440 (COMMON_OBS): Use COMMON_SFILES.
1442 2017-11-27 Tom Tromey <tom@tromey.com>
1444 * Makefile.in (YYFILES): Update comment.
1447 2017-11-27 Tom Tromey <tom@tromey.com>
1449 * Makefile.in (SUBDIR_PYTHON_OBS): Redefine.
1450 (CONFIG_SRC_SUBDIR): Add python.
1451 (%.o): Remove python rule.
1452 (python/%.o): New rule.
1453 * configure: Rebuild.
1454 * configure.ac (CONFIG_OBS): Refer to python/python.o
1456 2017-11-27 Tom Tromey <tom@tromey.com>
1458 * configure: Rebuild.
1459 * configure.ac (CONFIG_OBS): Refer to guile/guile.o.
1460 * Makefile.in (SUBDIR_GUILE_OBS): Redefine.
1461 (CONFIG_SRC_SUBDIR): Add guile.
1462 (%.o): Remove guile rule.
1464 2017-11-27 Tom Tromey <tom@tromey.com>
1466 * Makefile.in (SUBDIR_UNITTESTS_OBS): Redefine.
1467 (%.o): Remove unittests rule.
1468 (CONFIG_SRC_SUBDIR): Add unittests.
1470 2017-11-27 Tom Tromey <tom@tromey.com>
1472 * Makefile.in (SUBDIR_TUI_OBS): Redefine.
1473 (CONFIG_SRC_SUBDIR): Add tui.
1474 (%.o): Remove tui rule.
1476 2017-11-27 Tom Tromey <tom@tromey.com>
1478 * Makefile.in (SUBDIR_GCC_COMPILE_OBS): Redefine.
1479 (%.o): Remove compile rule.
1480 (CONFIG_SRC_SUBDIR): Add compile.
1482 2017-11-27 Tom Tromey <tom@tromey.com>
1484 * Makefile.in (SUBDIR_MI_OBS): Redefine.
1485 (%.o): Remove mi rule.
1486 (CONFIG_SRC_SUBDIR): Add mi.
1487 (COMMON_OBS): Use mi/mi-common.o
1489 2017-11-27 Tom Tromey <tom@tromey.com>
1491 * Makefile.in (SUBDIR_CLI_OBS): Redefine.
1492 (%.o): Remove cli rule.
1493 (CONFIG_SRC_SUBDIR): Add cli.
1495 2017-11-27 Tom Tromey <tom@tromey.com>
1497 * configure.ac (CONFIG_SRC_SUBDIR): Don't subst.
1498 * configure: Rebuild.
1499 * Makefile.in (CONFIG_SRC_SUBDIR): Redefine.
1500 (CONFIG_DEP_SUBDIR): New variable.
1501 (%.o): Add order-only dependency.
1502 ($(CONFIG_DEP_SUBDIR)): New target.
1504 2017-11-26 Dominik Czarnota <dominik.b.czarnota@gmail.com>
1507 * findcmd.c (_initialize_mem_search): Update find command help
1510 2017-11-26 Simon Marchi <simon.marchi@polymtl.ca>
1512 * python/python.c (do_start_initialization): Change progname
1513 type to gdb::unique_xmalloc_ptr. Release the pointer when using
1516 2017-11-26 Tom Tromey <tom@tromey.com>
1518 * common/format.h: Add include guards.
1520 2017-11-26 Tom Tromey <tom@tromey.com>
1522 * nat/linux-personality.h (class
1523 maybe_disable_address_space_randomization): New class.
1524 (maybe_disable_address_space_randomization): Don't declare
1526 * nat/linux-personality.c (restore_personality)
1527 (make_disable_asr_cleanup): Remove.
1528 (maybe_disable_address_space_randomization): Now a constructor.
1529 (~maybe_disable_address_space_randomization): New destructor.
1530 * linux-nat.c (linux_nat_create_inferior): Update.
1532 2017-11-26 Tom Tromey <tom@tromey.com>
1534 * gcore.c (write_gcore_file_1): Use gdb::unique_xmalloc_ptr.
1536 2017-11-26 Ulrich Weigand <uweigand@de.ibm.com>
1538 * spu-tdep.c (spu_software_single_step): Access SPU_LSLR_REGNUM as
1539 "cooked" register. Access only first four bytes of branch target
1542 2017-11-25 Sergio Durigan Junior <sergiodj@redhat.com>
1545 * stap-probe.c (relocate_address): New function.
1546 (stap_probe::get_relocated_address): Use 'relocate_address'.
1547 (stap_probe::set_semaphore): Use 'relocate_address' and pass
1549 (stap_probe::clear_semaphore): Likewise.
1551 2017-11-25 Pedro Alves <palves@redhat.com>
1553 * dictionary.c: Include "safe-ctype.h".
1554 * minsyms.c: Include "safe-ctype.h".
1555 * minsyms.c (SYMBOL_HASH_NEXT): Use TOLOWER instead of tolower.
1557 2017-11-25 Pedro Alves <palves@redhat.com>
1559 * completer.c (complete_line_internal_1): Skip spaces until the
1560 start of the command.
1562 2017-11-24 Pedro Alves <palves@redhat.com>
1564 * cp-support.c (cp_symbol_name_matches_1): New, factored out from
1565 cp_fq_symbol_name_matches. Pass language_cplus to
1567 (cp_fq_symbol_name_matches): Call cp_symbol_name_matches_1.
1568 (selftests::test_cp_symbol_name_cmp): New.
1569 (_initialize_cp_support): Register "cp_symbol_name_matches"
1571 * language.c (default_symbol_name_matcher): Pass language_minimal
1572 to strncmp_iw_with_mode.
1573 * utils.c: Include "cp-support.h" and <algorithm>.
1574 (valid_identifier_name_char, cp_skip_operator_token, skip_ws)
1575 (cp_is_operator): New functions.
1576 (strncmp_iw_with_mode): Use them. Add language parameter. Don't
1577 skip whitespace in the symbol name when the lookup name doesn't
1578 have spaces, and vice versa.
1579 (strncmp_iw, strcmp_iw): Pass language to strncmp_iw_with_mode.
1580 * utils.h (strncmp_iw_with_mode): Add language parameter.
1582 2017-11-24 Joel Brobecker <brobecker@adacore.com>
1584 * ada-lang.c (ada_exception_message_1, ada_exception_message):
1586 (print_it_exception): If available, display the exception
1588 * NEWS: Document new feature.
1590 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
1592 * configure.nat <spu-linux>: Add fork-inferior.o to NATDEPFILES.
1594 2017-11-24 Philipp Rudo <prudo@linux.vnet.ibm.com>
1596 * dtrace-probe.c (dtrace_probe::build_arg_exprs)
1597 (dtrace_probe::is_enabled, dtrace_probe::enable)
1598 (dtrace_probe::disable): Remove keyword 'struct' at for-range
1600 * probe.c (gen_ui_out_table_header_info)
1601 (print_ui_out_not_applicables): Remove keyword 'struct' at
1604 2017-11-24 Alan Hayward <alan.hayward@arm.com>
1606 * configure.tgt: Add arch/aarch64.o
1608 2017-11-24 Simon Marchi <simon.marchi@polymtl.ca>
1610 * common/common-utils.h: Include poison.h.
1611 (xfree): Remove declaration, add definition with static_assert.
1612 * common/common-utils.c (xfree): Remove.
1613 * common/poison.h (IsMallocatable): Define.
1614 (IsFreeable): Define.
1615 (free): Delete for non-freeable types.
1617 (XNEW): Undef and redefine.
1619 (XCNEW): Undef and redefine.
1621 (XDELETE): Undef and redefine.
1623 (XNEWVEC): Undef and redefine.
1625 (XCNEWVEC): Undef and redefine.
1627 (XRESIZEVEC): Undef and redefine.
1629 (XDELETEVEC): Undef and redefine.
1631 (XNEWVAR): Undef and redefine.
1633 (XCNEWVAR): Undef and redefine.
1635 (XRESIZEVAR): Undef and redefine.
1637 2017-11-24 Simon Marchi <simon.marchi@polymtl.ca>
1639 * gdbthread.h (private_thread_info): Define structure type, add
1640 virtual pure destructor.
1641 (thread_info) <priv>: Change type to unique_ptr.
1642 <private_dtor>: Remove.
1643 * thread.c (add_thread_with_info): Adjust to use of unique_ptr.
1644 (private_thread_info::~private_thread_info): Provide default
1646 (thread_info::~thread_info): Don't call private_dtor nor
1648 * aix-thread.c (private_thread_info): Rename to ...
1649 (aix_thread_info): ... this.
1650 (get_aix_thread_info): New.
1651 (sync_threadlists): Adjust.
1653 (aix_thread_resume): Adjust.
1654 (aix_thread_fetch_registers): Adjust.
1655 (aix_thread_store_registers): Adjust.
1656 (aix_thread_extra_thread_info): Adjust.
1657 * darwin-nat.h (private_thread_info): Rename to ...
1658 (darwin_thread_info): ... this.
1659 (get_darwin_thread_info): New.
1660 * darwin-nat.c (darwin_init_thread_list): Adjust.
1661 (darwin_check_new_threads): Adjust.
1662 (thread_info_from_private_thread_info): Adjust.
1663 * linux-thread-db.c (private_thread_info): Rename to ...
1664 (thread_db_thread_info): ... this, initialize fields.
1665 (get_thread_db_thread_info): New.
1666 <dying>: Change type to bool.
1667 (update_thread_state): Adjust to type rename.
1668 (record_thread): Adjust to type rename an use of unique_ptr.
1669 (thread_db_pid_to_str): Likewise.
1670 (thread_db_extra_thread_info): Likewise.
1671 (thread_db_thread_handle_to_thread_info): Likewise.
1672 (thread_db_get_thread_local_address): Likewise.
1673 * nto-tdep.h (private_thread_info): Rename to ...
1674 (nto_thread_info): ... this, initialize fields.
1675 (get_nto_thread_info): New.
1676 <name>: Change type to std::string.
1677 * nto-tdep.c (nto_extra_thread_info): Adjust to type rename and
1679 * nto-procfs.c (update_thread_private_data_name): Adjust to
1680 std::string change, allocate nto_private_thread_info with new.
1681 (update_thread_private_data): Adjust to unique_ptr.
1682 * remote.c (private_thread_info): Rename to ...
1683 (remote_thread_info): ... this, initialize data members with
1685 <extra, name>: Change type to std::string.
1686 <thread_handle>: Change type to non-pointer.
1687 (free_private_thread_info): Remove.
1688 (get_private_info_thread): Rename to...
1689 (get_remote_thread_info): ... this, change return type, adjust to
1690 use of unique_ptr, use remote_thread_info constructor.
1691 (remote_add_thread): Adjust.
1692 (get_private_info_ptid): Rename to...
1693 (get_remote_thread_info): ...this, change return type.
1694 (remote_thread_name): Use get_remote_thread_info, adjust to
1695 change to std::string.
1696 (struct thread_item) <~thread_item>: Remove.
1697 <thread_handle>: Make non pointer.
1698 (start_thread): Adjust to thread_item::thread_handle type
1700 (remote_update_thread_list): Adjust to type name change, move
1701 strings from temporary to long-lived object instead of
1703 (remote_threads_extra_info): Use get_remote_thread_info.
1704 (process_initial_stop_replies): Likewise.
1705 (resume_clear_thread_private_info): Likewise.
1706 (remote_resume): Adjust to type name change.
1707 (remote_commit_resume): Use get_remote_thread_info.
1708 (process_stop_reply): Adjust to type name change.
1709 (remote_stopped_by_sw_breakpoint): Use get_remote_thread_info.
1710 (remote_stopped_by_hw_breakpoint): Likewise.
1711 (remote_stopped_by_watchpoint): Likewise.
1712 (remote_stopped_data_address): Likewise.
1713 (remote_core_of_thread): Likewise.
1714 (remote_thread_handle_to_thread_info): Use
1715 get_private_info_thread, adjust to thread_handle field type
1718 2017-11-24 Simon Marchi <simon.marchi@polymtl.ca>
1720 * remote.c (struct thread_item): Add constructor, disable copy
1721 construction and copy assignment, define default move
1722 construction and move assignment.
1723 <extra, name>: Change type to std::string.
1725 <thread_handle>: Make non-pointer.
1726 (thread_item_t): Remove typedef.
1727 (DEF_VEC_O(thread_item_t)): Remove.
1728 (threads_listing_context) <contains_thread>: New method.
1729 <remove_thread>: New method.
1730 <items>: Change type to std::vector.
1731 (clear_threads_listing_context): Remove.
1732 (threads_listing_context_remove): Remove.
1733 (remote_newthread_step): Use thread_item constructor, adjust to
1734 change to std::vector.
1735 (start_thread): Use thread_item constructor, adjust to change to
1737 (end_thread): Adjust to change to std::vector and std::string.
1738 (remote_get_threads_with_qthreadinfo): Use thread_item
1739 constructor, adjust to std::vector.
1740 (remote_update_thread_list): Adjust to change to std::vector and
1741 std::string, use threads_listing_context methods.
1742 (remove_child_of_pending_fork): Adjust.
1743 (remove_new_fork_children): Adjust.
1744 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add rsp-low-selftests.c.
1745 (SUBDIR_UNITTESTS_OBS): Add rsp-low-selftests.o.
1746 * unittests/rsp-low-selftests.c: New file.
1747 * common/rsp-low.h: Include common/byte-vector.h.
1748 (hex2bin): New overload.
1749 * common/rsp-low.c (hex2bin): New overload.
1751 2017-11-24 Simon Marchi <simon.marchi@ericsson.com>
1753 * inferior.h (private_inferior): Define structure type, add
1754 virtual pure destructor.
1755 (inferior) <priv>: Change type to unique_ptr.
1756 * inferior.c (private_inferior::~private_inferior): Provide
1757 default implementation.
1758 (inferior::~inferior): Don't free priv field.
1759 (exit_inferior_1): Likewise.
1760 * darwin-nat.h (struct darwin_exception_info): Initialize fields.
1761 (darwin_exception_info): Remove typedef.
1762 (DEF_VEC_O (darwin_thread_t)); Remove.
1763 (private_inferior): Rename to ...
1764 (darwin_private_inferior): ... this, extend private_inferior.
1765 (get_darwin_inferior): New.
1766 <threads>: Change type to std::vector of darwin_thread_t pointers.
1767 * darwin-nat.c (darwin_check_new_threads): Adjust.
1768 (find_inferior_task_it): Adjust.
1769 (darwin_find_thread); Adjust.
1770 (darwin_suspend_inferior): Adjust.
1771 (darwin_resume_inferior): Adjust.
1772 (darwin_find_new_inferior): Adjust.
1773 (darwin_decode_notify_message): Adjust.
1774 (darwin_send_reply): Adjust.
1775 (darwin_resume_inferior_threads): Adjust.
1776 (darwin_suspend_inferior_threads): Adjust.
1777 (darwin_decode_message): Adjust.
1778 (darwin_wait): Adjust.
1779 (darwin_interrupt): Adjust.
1780 (darwin_deallocate_threads): Adjust.
1781 (darwin_mourn_inferior): Adjust, don't free private data.
1782 (darwin_reply_to_all_pending_messages): Adjust.
1783 (darwin_stop_inferior): Adjust.
1784 (darwin_setup_exceptions): Adjust.
1785 (darwin_kill_inferior): Adjust.
1786 (darwin_setup_request_notification): Adjust.
1787 (darwin_attach_pid): Adjust.
1788 (darwin_init_thread_list): Adjust.
1789 (darwin_setup_fake_stop_event): Adjust.
1790 (darwin_attach): Adjust.
1791 (darwin_detach): Adjust.
1792 (darwin_xfer_partial): Adjust.
1793 (set_enable_mach_exceptions): Adjust.
1794 (darwin_pid_to_exec_file): Adjust.
1795 (darwin_get_ada_task_ptid): Adjust.
1796 * darwin-nat-info.c (get_task_from_args): Adjust.
1797 (info_mach_ports_command): Adjust.
1798 (info_mach_region_command): Adjust.
1799 (info_mach_exceptions_command): Adjust.
1800 * remote.c (private_inferior): Rename to ...
1801 (remote_private_inferior): ... this, initialize fields.
1802 (get_remote_inferior); New.
1803 (remote_commit_resume): Use get_remote_inferior.
1804 (check_pending_event_prevents_wildcard_vcont_callback): Likewise.
1806 2017-11-24 Pedro Alves <palves@redhat.com>
1808 * NEWS: Mention linespecs and explicit locations, and completion
1811 2017-11-24 Yao Qi <yao.qi@linaro.org>
1813 * regcache.c (regcache::dump): Remove footnote_register_size.
1815 2017-11-24 Yao Qi <yao.qi@linaro.org>
1817 * regcache.c (cooked_read_test): Add more test for readonly
1820 2017-11-24 Yao Qi <yao.qi@linaro.org>
1822 * gdbarch-selftests.c (test_target_has_registers): Move it to
1824 (test_target_has_stack): Likewise.
1825 (test_target_has_memory): Likewise.
1826 (test_target_prepare_to_store): Likewise.
1827 (test_target_store_registers): Likewise.
1828 (test_target_ops): Likewise.
1829 * regcache.c: Include selftest-arch.h and gdbthread.h.
1830 (target_ops_no_register): New class.
1831 (test_target_fetch_registers): New.
1832 (test_target_store_registers): New.
1833 (test_target_xfer_partial): New.
1834 (readwrite_regcache): New.
1835 (cooked_read_test): New.
1836 (_initialize_regcache): Register the test.
1837 * target.c: (test_target_has_registers): Moved from
1838 gdbarch-selftests.c.
1839 (test_target_has_stack): Likewise.
1840 (test_target_has_memory): Likewise.
1841 (test_target_prepare_to_store): Likewise.
1842 (test_target_store_registers): Likewise.
1843 * target.h (test_target_ops): New class.
1845 2017-11-24 Alan Hayward <alan.hayward@arm.com>
1847 * aarch64-tdep.c (_initialize_aarch64_tdep): Add target desc
1850 2017-11-24 Alan Hayward <alan.hayward@arm.com>
1852 * aarch64-tdep.c (_initialize_aarch64_tdep): Remove init.
1853 * arch/aarch64.c (aarch64_create_target_description): Create
1854 new target description.
1855 * features/Makefile: Add new files.
1856 * features/aarch64.c: Remove file.
1857 * features/aarch64-core.c: New autogenerated file.
1858 * features/aarch64-fpu.c: New autogenerated file.
1859 * target-descriptions.c (maint_print_c_tdesc_cmd): Check for aarch64.
1861 2017-11-24 Alan Hayward <alan.hayward@arm.com>
1863 * Makefile.in: Add new files.
1864 * aarch64-linux-nat.c (aarch64_linux_read_description): Call
1865 aarch64_read_description.
1866 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
1867 Call aarch64_read_description.
1868 * aarch64-tdep.c (aarch64_read_description): New function.
1869 (aarch64_gdbarch_init): Call aarch64_read_description.
1870 * aarch64-tdep.h (aarch64_read_description): New function.
1871 * arch/aarch64.c: New file.
1872 * configure.tgt: Add new files.
1874 2017-11-24 Yao Qi <yao.qi@linaro.org>
1876 * mi/mi-main.c (register_changed_p): Update.
1877 * value.c (value_contents_bits_eq): Change return type.
1878 (value_contents_eq): Likewise.
1879 * value.h: Update comments.
1881 2017-11-24 Yao Qi <yao.qi@linaro.org>
1883 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Remove
1884 local 'changed'. Remove error.
1885 (register_changed_p): Change return type to bool.
1887 2017-11-24 Yao Qi <yao.qi@linaro.org>
1889 * arch/tic6x.c: New file.
1890 * arch/tic6x.h: New file.
1891 * features/Makefile (FEATURE_XMLFILES): Add tic6x-c6xp.xml,
1892 tic6x-core.xml and tic6x-gp.xml.
1893 * features/tic6x-c6xp.c: Generated.
1894 * features/tic6x-core.c: Generated.
1895 * features/tic6x-gp.c: Generated.
1896 * target-descriptions.c (maint_print_c_tdesc_cmd): Match
1899 2017-11-23 Simon Marchi <simon.marchi@ericsson.com>
1901 * mi/mi-main.c (list_available_thread_groups): Change map value
1902 type to std::vector.
1904 2017-11-23 Simon Marchi <simon.marchi@ericsson.com>
1906 * osdata.c (osdata_end_column, get_osdata): Remove std::move.
1908 2017-11-23 Simon Marchi <simon.marchi@ericsson.com>
1910 * varobj.c (struct varobj_dynamic) <children_requested_>: Rename
1912 <children_requested>: ... this.
1913 (varobj_get_num_children, varobj_update): Adjust.
1915 2017-11-23 Simon Marchi <simon.marchi@ericsson.com>
1917 * ada-varobj.c (ada_value_is_changeable_p): Change int to bool where applicable.
1918 (ada_value_has_mutated): Likewise.
1919 * c-varobj.c (varobj_is_anonymous_child): Likewise.
1920 (c_is_path_expr_parent): Likewise.
1921 * mi/mi-cmd-var.c (varobj_update_one): Likewise.
1922 (mi_cmd_var_set_frozen): Likewise.
1923 (mi_cmd_var_update_iter): Likewise.
1924 (mi_cmd_var_update): Likewise.
1925 * varobj.c (pretty_printing): Likewise.
1926 (varobj_enable_pretty_printing): Likewise.
1927 (struct varobj_root) <floating, is_valid>: Likewise.
1928 (struct varobj_dynamic) <children_requested>: Likewise.
1929 (delete_variable): Likewise.
1930 (delete_variable_1): Likewise.
1931 (install_variable): Likewise.
1932 (update_type_if_necessary): Likewise.
1933 (install_new_value): Likewise.
1934 (value_of_root): Likewise.
1935 (is_root_p): Likewise.
1936 (varobj_create): Likewise.
1937 (varobj_delete): Likewise.
1938 (varobj_has_more): Likewise.
1939 (varobj_set_frozen): Likewise.
1940 (varobj_get_frozen): Likewise.
1941 (install_dynamic_child): Likewise.
1942 (dynamic_varobj_has_child_method): Likewise.
1943 (update_dynamic_varobj_children): Likewise.
1944 (varobj_get_num_children): Likewise.
1945 (varobj_list_children): Likewise.
1946 (is_path_expr_parent): Likewise.
1947 (varobj_default_is_path_expr_parent): Likewise.
1948 (varobj_is_dynamic_p): Likewise.
1949 (varobj_set_value): Likewise.
1950 (varobj_value_has_mutated): Likewise.
1951 (varobj_update): Likewise.
1952 (check_scope): Likewise.
1953 (value_of_root_1): Likewise.
1954 (varobj_value_get_print_value): Likewise.
1955 (varobj_editable_p): Likewise.
1956 (varobj_value_is_changeable_p): Likewise.
1957 (varobj_floating_p): Likewise.
1958 (varobj_default_value_is_changeable_p): Likewise.
1959 (varobj_invalidate_iter): Likewise.
1960 * varobj.h (struct varobj_update_result) <type_changed,
1961 children_changed, changed, value_installed>: Likewise.
1962 (struct varobj) <updated, frozen, not_fetched>: Likewise.
1963 (struct lang_varobj_ops) <value_is_changeable_p,
1964 value_has_mutated, is_path_expr_parent>: Likewise.
1965 (varobj_delete): Likewise.
1966 (varobj_set_frozen): Likewise.
1967 (varobj_get_frozen): Likewise.
1968 (varobj_set_value): Likewise.
1969 (varobj_update): Likewise.
1970 (varobj_editable_p): Likewise.
1971 (varobj_floating_p): Likewise.
1972 (varobj_has_more): Likewise.
1973 (varobj_is_dynamic_p): Likewise.
1974 (varobj_default_value_is_changeable_p): Likewise.
1975 (varobj_value_is_changeable_p): Likewise.
1976 (varobj_is_anonymous_child): Likewise.
1977 (varobj_default_is_path_expr_parent): Likewise.
1979 2017-11-22 Sergio Durigan Junior <sergiodj@redhat.com>
1981 * dtrace-probe.c (struct probe_ops dtrace_probe_ops): Delete.
1982 (struct dtrace_probe_arg) <dtrace_probe_arg>: New constructor.
1983 <type_str>: Convert to 'std::string'.
1984 <expr>: Convert to 'expression_up'.
1985 (dtrace_probe_arg_s): Delete type and VEC.
1986 (dtrace_probe_enabler_s): Likewise.
1987 (struct dtrace_probe): Replace by...
1988 (class dtrace_static_probe_ops): ...this and...
1989 (class dtrace_probe): ...this.
1990 (dtrace_probe_is_linespec): Rename to...
1991 (dtrace_static_probe_ops::is_linespec): ...this. Adjust code
1993 (dtrace_process_dof_probe): Use 'std::vector' instead of VEC.
1994 Adjust code. Create new instance of 'dtrace_probe'.
1995 (dtrace_build_arg_exprs): Rename to...
1996 (dtrace_probe::build_arg_exprs): ...this. Adjust code to
1998 (dtrace_get_probes): Rename to...
1999 (dtrace_static_probe_ops::get_probes): ...this. Adjust code
2001 (dtrace_get_arg): Rename to...
2002 (dtrace_probe::get_arg_by_number): ...this. Adjust code to
2004 (dtrace_probe_is_enabled): Rename to...
2005 (dtrace_probe::is_enabled): ...this. Adjust code to reflect
2007 (dtrace_get_probe_address): Rename to...
2008 (dtrace_probe::get_relocated_address): ...this. Adjust code
2010 (dtrace_get_probe_argument_count): Rename to...
2011 (dtrace_probe::get_argument_count): ...this. Adjust code to
2013 (dtrace_can_evaluate_probe_arguments): Rename to...
2014 (dtrace_probe::can_evaluate_arguments): ...this. Adjust code
2016 (dtrace_evaluate_probe_argument): Rename to...
2017 (dtrace_probe::evaluate_argument): ...this. Adjust code to
2019 (dtrace_compile_to_ax): Rename to...
2020 (dtrace_probe::compile_to_ax): ...this. Adjust code to
2022 (dtrace_probe_destroy): Delete.
2023 (dtrace_type_name): Rename to...
2024 (dtrace_static_probe_ops::type_name): ...this. Adjust code to
2026 (dtrace_probe::get_static_ops): New method.
2027 (dtrace_gen_info_probes_table_header): Rename to...
2028 (dtrace_static_probe_ops::gen_info_probes_table_header):
2029 ...this. Adjust code to reflect change.
2030 (dtrace_gen_info_probes_table_values): Rename to...
2031 (dtrace_probe::gen_info_probes_table_values): ...this. Adjust
2032 code to reflect change.
2033 (dtrace_enable_probe): Rename to...
2034 (dtrace_probe::enable_probe): ...this. Adjust code to reflect
2036 (dtrace_disable_probe): Rename to...
2037 (dtrace_probe::disable_probe): ...this. Adjust code to reflect
2039 (struct probe_ops dtrace_probe_ops): Delete.
2040 (info_probes_dtrace_command): Call 'info_probes_for_spops'
2041 instead of 'info_probes_for_ops'.
2042 (_initialize_dtrace_probe): Use 'all_static_probe_ops' instead
2045 2017-11-22 Sergio Durigan Junior <sergiodj@redhat.com>
2046 Simon Marchi <simark@simark.ca>
2048 * stap-probe.c (struct probe_ops stap_probe_ops): Delete
2050 (struct stap_probe_arg) <stap_probe_arg>: New constructor.
2051 <aexpr>: Change type to 'expression_up'.
2052 (stap_probe_arg_s): Delete type and VEC.
2053 (struct stap_probe): Delete. Replace by...
2054 (class stap_static_probe_ops): ...this and...
2055 (class stap_probe): ...this. Rename variables to add 'm_'
2056 prefix. Do not use 'union' for arguments anymore.
2057 (stap_get_expected_argument_type): Receive probe name instead
2058 of 'struct stap_probe'. Adjust code.
2059 (stap_parse_probe_arguments): Rename to...
2060 (stap_probe::parse_arguments): ...this. Adjust code to
2062 (stap_get_probe_address): Rename to...
2063 (stap_probe::get_relocated_address): ...this. Adjust code
2065 (stap_get_probe_argument_count): Rename to...
2066 (stap_probe::get_argument_count): ...this. Adjust code
2068 (stap_get_arg): Rename to...
2069 (stap_probe::get_arg_by_number'): ...this. Adjust code to
2071 (can_evaluate_probe_arguments): Rename to...
2072 (stap_probe::can_evaluate_arguments): ...this. Adjust code
2074 (stap_evaluate_probe_argument): Rename to...
2075 (stap_probe::evaluate_argument): ...this. Adjust code
2077 (stap_compile_to_ax): Rename to...
2078 (stap_probe::compile_to_ax): ...this. Adjust code to
2080 (stap_probe_destroy): Delete.
2081 (stap_modify_semaphore): Adjust comment.
2082 (stap_set_semaphore): Rename to...
2083 (stap_probe::set_semaphore): ...this. Adjust code to reflect
2085 (stap_clear_semaphore): Rename to...
2086 (stap_probe::clear_semaphore): ...this. Adjust code to
2088 (stap_probe::get_static_ops): New method.
2089 (handle_stap_probe): Adjust code to create instance of
2091 (stap_get_probes): Rename to...
2092 (stap_static_probe_ops::get_probes): ...this. Adjust code to
2094 (stap_probe_is_linespec): Rename to...
2095 (stap_static_probe_ops::is_linespec): ...this. Adjust code to
2097 (stap_type_name): Rename to...
2098 (stap_static_probe_ops::type_name): ...this. Adjust code to
2100 (stap_gen_info_probes_table_header): Rename to...
2101 (stap_static_probe_ops::gen_info_probes_table_header):
2102 ...this. Adjust code to reflect change.
2103 (stap_gen_info_probes_table_values): Rename to...
2104 (stap_probe::gen_info_probes_table_values): ...this. Adjust
2105 code to reflect change.
2106 (struct probe_ops stap_probe_ops): Delete.
2107 (info_probes_stap_command): Use 'info_probes_for_spops'
2108 instead of 'info_probes_for_ops'.
2109 (_initialize_stap_probe): Use 'all_static_probe_ops' instead
2112 2017-11-22 Sergio Durigan Junior <sergiodj@redhat.com>
2114 * break-catch-throw.c (fetch_probe_arguments): Use
2115 'probe.prob' instead of 'probe.probe'.
2116 * breakpoint.c (create_longjmp_master_breakpoint): Call
2117 'can_evaluate_arguments' and 'get_relocated_address' methods
2119 (create_exception_master_breakpoint): Likewise.
2120 (add_location_to_breakpoint): Use 'sal->prob' instead of
2122 (bkpt_probe_insert_location): Call 'set_semaphore' method from
2124 (bkpt_probe_remove_location): Likewise, for 'clear_semaphore'.
2125 * elfread.c (elf_get_probes): Use 'static_probe_ops' instead
2127 (probe_key_free): Call 'delete' on probe.
2128 (check_exception_resume): Use 'probe.prob' instead of
2130 * location.c (string_to_event_location_basic): Call
2131 'probe_linespec_to_static_ops'.
2132 * probe.c (class any_static_probe_ops): New class.
2133 (any_static_probe_ops any_static_probe_ops): New variable.
2134 (parse_probes_in_pspace): Receive 'static_probe_ops' as
2135 argument. Adjust code to reflect change.
2136 (parse_probes): Use 'static_probe_ops' instead of
2137 'probe_ops'. Adjust code to reflect change.
2138 (find_probes_in_objfile): Call methods to get name and
2139 provider from probe.
2140 (find_probe_by_pc): Use 'result.prob' instead of
2141 'result.probe'. Call 'get_relocated_address' method from
2143 (collect_probes): Adjust comment and argument list to receive
2144 'static_probe_ops' instead of 'probe_ops'. Adjust code to
2145 reflect change. Call necessary methods from probe.
2146 (compare_probes): Call methods to get name and provider from
2148 (gen_ui_out_table_header_info): Receive 'static_probe_ops'
2149 instead of 'probe_ops'. Use 'std::vector' instead of VEC,
2150 adjust code accordingly.
2151 (print_ui_out_not_applicables): Likewise.
2152 (info_probes_for_ops): Rename to...
2153 (info_probes_for_spops): ...this. Receive 'static_probe_ops'
2154 as argument instead of 'probe_ops'. Adjust code. Call
2155 necessary methods from probe.
2156 (info_probes_command): Use 'info_probes_for_spops'.
2157 (enable_probes_command): Pass correct argument to
2158 'collect_probes'. Call methods from probe.
2159 (disable_probes_command): Likewise.
2160 (get_probe_address): Move to 'any_static_probe_ops::get_address'.
2161 (get_probe_argument_count): Move to
2162 'any_static_probe_ops::get_argument_count'.
2163 (can_evaluate_probe_arguments): Move to
2164 'any_static_probe_ops::can_evaluate_arguments'.
2165 (evaluate_probe_argument): Move to
2166 'any_static_probe_ops::evaluate_argument'.
2167 (probe_safe_evaluate_at_pc): Use 'probe.prob' instead of
2169 (probe_linespec_to_ops): Rename to...
2170 (probe_linespec_to_static_ops): ...this. Adjust code.
2171 (probe_any_is_linespec): Rename to...
2172 (any_static_probe_ops::is_linespec): ...this.
2173 (probe_any_get_probes): Rename to...
2174 (any_static_probe_ops::get_probes): ...this.
2175 (any_static_probe_ops::type_name): New method.
2176 (any_static_probe_ops::gen_info_probes_table_header): New
2178 (compute_probe_arg): Use 'pc_probe.prob' instead of
2179 'pc_probe.probe'. Call methods from probe.
2180 (compile_probe_arg): Likewise.
2181 (std::vector<const probe_ops *> all_probe_ops): Delete.
2182 (std::vector<const static_probe_ops *> all_static_probe_ops):
2184 (_initialize_probe): Use 'all_static_probe_ops' instead of
2186 * probe.h (struct info_probe_column) <field_name>: Delete
2188 (info_probe_column_s): Delete type and VEC.
2189 (struct probe_ops): Delete. Replace with...
2190 (class static_probe_ops): ...this and...
2191 (clas probe): ...this.
2192 (struct bound_probe) <bound_probe>: Delete extraneous
2193 newline. Adjust constructor to receive 'probe' instead of
2195 <probe>: Rename to...
2196 <prob>: ...this. Delete extraneous newline.
2197 <objfile>: Delete extraneous newline.
2198 (register_probe_ops): Delete unused prototype.
2199 (info_probes_for_ops): Rename to...
2200 (info_probes_for_spops): ...this. Adjust comment.
2201 (get_probe_address): Move to 'probe::get_address'.
2202 (get_probe_argument_count): Move to
2203 'probe::get_argument_count'.
2204 (can_evaluate_probe_arguments): Move to
2205 'probe::can_evaluate_arguments'.
2206 (evaluate_probe_argument): Move to 'probe::evaluate_argument'.
2207 * solib-svr4.c (struct svr4_info): Adjust comment.
2208 (struct probe_and_action) <probe>: Rename to...
2210 (register_solib_event_probe): Receive 'probe' instead of
2211 'struct probe' as argument. Use 'prob' instead of 'probe'
2213 (solib_event_probe_action): Call 'get_argument_count' method
2214 from probe. Adjust comment.
2215 (svr4_handle_solib_event): Adjust comment. Call
2216 'evaluate_argument' method from probe.
2217 (svr4_create_probe_breakpoints): Call 'get_relocated_address'
2219 (svr4_create_solib_event_breakpoints): Use 'probe' instead of
2220 'struct probe'. Call 'can_evaluate_arguments' from probe.
2221 * symfile.h: Forward declare 'class probe' instead of 'struct
2223 * symtab.h: Likewise.
2224 (struct symtab_and_line) <probe>: Rename to...
2226 * tracepoint.c (start_tracing): Use 'prob' when applicable.
2228 (stop_tracing): Likewise.
2230 2017-11-22 Joel Brobecker <brobecker@adacore.com>
2232 * ravenscar-thread.c (ravenscar_inferior_created): Remove
2233 trailing newline at end of string in call to warning.
2235 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
2237 * osdata.h: Include vector isntead of vec.h.
2238 (osdata_column_s): Remove typedef.
2239 (struct osdata_column): Add constructor.
2240 <name, value>: Change type to std::string.
2241 (DEF_VEC_O (osdata_column_s)): Remove.
2242 (osdata_item_s): Remove typedef.
2243 (struct osdata_item) <columns>: Change type to std::vector.
2244 (DEF_VEC_O (osdata_item_s)): Remove.
2245 (struct osdata): Add constructor.
2246 <type>: Change type to std::string.
2247 <items>: Change type to std::vector.
2248 (osdata_p): Remove typedef.
2249 (DEF_VEC_P (osdata_p)): Remove.
2250 (osdata_parse): Return a unique_ptr.
2251 (osdata_free): Remove.
2252 (make_cleanup_osdata_free): Remove.
2253 (get_osdata): Return a unique_ptr.
2254 (get_osdata_column): Return pointer to std::string, take a
2255 reference to osdata_item as parameter.
2256 * osdata.c (struct osdata_parsing_data) <osdata>: Change type to
2258 <property_name>: Change type to std::string.
2259 (osdata_start_osdata): Allocate osdata with new and adjust.
2260 (osdata_start_item): Adjust.
2261 (osdata_start_column): Adjust.
2262 (osdata_end_column): Adjust.
2263 (clear_parsing_data): Remove.
2264 (osdata_parse): Return a unique_ptr and adjust, remove cleanup.
2265 (osdata_item_clear): Remove.
2266 (get_osdata): return a unique_ptr and adjust.
2267 (get_osdata_column): Return a pointer to std::string and adjust.
2268 (info_osdata): Adjust.
2269 * mi/mi-main.c: Include <map>.
2270 (free_vector_of_osdata_items): Remove.
2271 (list_available_thread_groups): Adjust, use std::map instead of
2274 2017-11-22 Simon Marchi <simon.marchi@ericsson.com>
2276 * stack.c (iterate_over_block_locals): Add LOC_OPTIMIZED_OUT
2279 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
2281 * varobj.h (DEF_VEC_P (varobj_p)): Remove.
2283 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
2285 * varobj.h (struct varobj_update_result): Add constructor, add
2286 move constructor, disable copy and assign, initialize fields.
2287 <newobj>: Change type to std::vector.
2288 (varobj_update): Return std::vector.
2289 * varobj.c (install_dynamic_child): Change VEC parameters to
2290 std::vector and adjust.
2291 (update_dynamic_varobj_children): Likewise.
2292 (varobj_update): Return std::vector and adjust.
2293 * mi/mi-cmd-var.c (varobj_update_one): Adjust to vector changes.
2295 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
2297 * varobj.h (struct varobj) <parent>: Remove const.
2298 <children>: Change type to std::vector.
2299 (varobj_list_children): Return std::vector const reference.
2300 (varobj_restrict_range): Change parameter type to std::vector
2302 * varobj.c (varobj_has_more): Adjust.
2303 (varobj_restrict_range): Change parameter type to std::vector
2304 const reference and adjust.
2305 (install_dynamic_child): Adjust.
2306 (update_dynamic_varobj_children): Adjust.
2307 (varobj_list_children): Return std::vector const reference and
2309 (varobj_add_child): Adjust.
2310 (update_type_if_necessary): Adjust.
2311 (varobj_update): Adjust.
2312 (delete_variable_1): Adjust.
2313 * ada-varobj.c (ada_value_has_mutated): Adjust.
2314 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust.
2316 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
2318 * varobj.h (struct varobj): Add constructor and destructor,
2320 * varobj.c (struct varobj_root): Initialize fields.
2321 (struct varobj_dynamic): Initialize fields.
2322 (varobj_create): Use unique_ptr instead of cleanup. Create
2323 varobj with new instead of new_root_variable.
2324 (delete_variable_1): Free variable with delete instead of
2326 (create_child_with_value): Create variable with new instead of
2328 (varobj::varobj): New.
2329 (varobj::~varobj): New (body mostly coming from free_variable).
2330 (new_variable): Remove.
2331 (free_variable): Remove.
2332 (do_free_variable_cleanup): Remove.
2333 (make_cleanup_free_variable): Remove.
2335 2017-11-22 Ulrich Weigand <uweigand@de.ibm.com>
2337 * core-regset.c: Remove file.
2338 * Makefile.in (ALLDEPFILES): Remove core-regset.c.
2340 2017-11-22 Ulrich Weigand <uweigand@de.ibm.com>
2342 * NEWS: Document use of GNU MPFR.
2345 * Makefile.in (LIBMPFR): Add define.
2346 (CLIBS): Add $(LIBMPFR).
2347 * configure.ac: Add --with-mpfr configure option.
2348 * configure: Regenerate.
2349 * config.in: Regenerate.
2351 * target-float.c [HAVE_LIBMPFR]: Include <mpfr.h>.
2352 (class mpfr_float_ops): New type.
2353 (mpfr_float_ops::from_target): Two new overloaded functions.
2354 (mpfr_float_ops::to_target): Likewise.
2355 (mpfr_float_ops::to_string): New function.
2356 (mpfr_float_ops::from_string): Likewise.
2357 (mpfr_float_ops::to_longest): Likewise.
2358 (mpfr_float_ops::from_longest): Likewise.
2359 (mpfr_float_ops::from_ulongest): Likewise.
2360 (mpfr_float_ops::to_host_double): Likewise.
2361 (mpfr_float_ops::from_host_double): Likewise.
2362 (mpfr_float_ops::convert): Likewise.
2363 (mpfr_float_ops::binop): Likewise.
2364 (mpfr_float_ops::compare): Likewise.
2365 (get_target_float_ops): Use mpfr_float_ops if available.
2367 2017-11-22 Ulrich Weigand <uweigand@de.ibm.com>
2369 * target-float.c: Do not include <math.h>.
2370 Include <cmath> and <limits>.
2371 (DOUBLEST): Do not define.
2372 (class target_float_ops): New type.
2373 (class host_float_ops): New templated type.
2374 (class decimal_float_ops): New type.
2376 (floatformat_to_doublest): Rename to ...
2377 (host_float_ops<T>::from_target): ... this. Use template type T
2378 instead of DOUBLEST. Use C++ math routines. Update recursive calls.
2379 (host_float_ops<T>::from_target): New overload using a type argument.
2380 (floatformat_from_doublest): Rename to ...
2381 (host_float_ops<T>::to_target): ... this. Use template type T
2382 instead of DOUBLEST. Use C++ math routines. Update recursive calls.
2383 (host_float_ops<T>::to_target): New overload using a type argument.
2384 (floatformat_printf_format): New function.
2385 (struct printf_length_modifier): New templated type.
2386 (floatformat_to_string): Rename to ...
2387 (host_float_ops<T>::to_string): ... this. Use type instead of
2388 floatformat argument. Use floatformat_printf_format and
2389 printf_length_modifier. Remove special handling of invalid numbers,
2390 infinities and NaN (moved to target_float_to_string).
2391 (struct scanf_length_modifier): New templated type.
2392 (floatformat_from_string): Rename to ...
2393 (host_float_ops<T>::from_string): ... this. Use type instead of
2394 floatformat argument. Use scanf_length_modifier.
2395 (floatformat_to_longest): Rename to ...
2396 (host_float_ops<T>::to_longest): ... this. Use type instead of
2397 floatformat argument. Handle out-of-range values deterministically.
2398 (floatformat_from_longest): Rename to ...
2399 (host_float_ops<T>::from_longest): ... this. Use type instead of
2400 floatformat argument.
2401 (floatformat_from_ulongest): Rename to ...
2402 (host_float_ops<T>::from_ulongest): ... this. Use type instead of
2403 floatformat argument.
2404 (floatformat_to_host_double): Rename to ...
2405 (host_float_ops<T>::to_host_double): ... this. Use type instead of
2406 floatformat argument.
2407 (floatformat_from_host_double): Rename to ...
2408 (host_float_ops<T>::from_host_double): ... this. Use type instead of
2409 floatformat argument.
2410 (floatformat_convert): Rename to ...
2411 (host_float_ops<T>::convert): ... this. Use type instead of
2412 floatformat arguments. Remove handling of no-op conversions.
2413 (floatformat_binop): Rename to ...
2414 (host_float_ops<T>::binop): ... this. Use type instead of
2415 floatformat arguments.
2416 (floatformat_compare): Rename to ...
2417 (host_float_ops<T>::compare): ... this. Use type instead of
2418 floatformat arguments.
2420 (match_endianness): Use type instead of length/byte_order arguments.
2421 (set_decnumber_context): Likewise.
2422 (decimal_from_number): Likewise. Update calls.
2423 (decimal_to_number): Likewise.
2424 (decimal_is_zero): Likewise. Update calls. Move to earlier in file.
2425 (decimal_float_ops::to_host_double): New dummy function.
2426 (decimal_float_ops::from_host_double): Likewise.
2427 (decimal_to_string): Rename to ...
2428 (decimal_float_ops::to_string): ... this. Use type instead of
2429 length/byte_order arguments. Update calls.
2430 (decimal_from_string): Rename to ...
2431 (decimal_float_ops::from_string): ... this. Use type instead of
2432 length/byte_order arguments. Update calls.
2433 (decimal_from_longest): Rename to ...
2434 (decimal_float_ops::from_longest): ... this. Use type instead of
2435 length/byte_order arguments. Update calls.
2436 (decimal_from_ulongest): Rename to ...
2437 (decimal_float_ops::from_ulongest): ... this. Use type instead of
2438 length/byte_order arguments. Update calls.
2439 (decimal_to_longest): Rename to ...
2440 (decimal_float_ops::to_longest): ... this. Use type instead of
2441 length/byte_order arguments. Update calls.
2442 (decimal_binop): Rename to ...
2443 (decimal_float_ops::binop): ... this. Use type instead of
2444 length/byte_order arguments. Update calls.
2445 (decimal_compare): Rename to ...
2446 (decimal_float_ops::compare): ... this. Use type instead of
2447 length/byte_order arguments. Update calls.
2448 (decimal_convert): Rename to ...
2449 (decimal_float_ops::convert): ... this. Use type instead of
2450 length/byte_order arguments. Update calls.
2452 (target_float_same_category_p): New function.
2453 (target_float_same_format_p): Likewise.
2454 (target_float_format_length): Likewise.
2455 (enum target_float_ops_kind): New type.
2456 (get_target_float_ops_kind): New function.
2457 (get_target_float_ops): Three new overloaded functions.
2459 (target_float_is_zero): Update call.
2460 (target_float_to_string): Add special handling of invalid numbers,
2461 infinities and NaN (moved from floatformat_to_string). Use
2462 target_float_ops callback.
2463 (target_float_from_string): Use target_float_ops callback.
2464 (target_float_to_longest): Likewise.
2465 (target_float_from_longest): Likewise.
2466 (target_float_from_ulongest): Likewise.
2467 (target_float_to_host_double): Likewise.
2468 (target_float_from_host_double): Likewise.
2469 (target_float_convert): Add special case for no-op conversions.
2470 Use target_float_ops callback.
2471 (target_float_binop): Use target_float_ops callback.
2472 (target_float_compare): Likewise.
2474 2017-11-22 Yao Qi <yao.qi@linaro.org>
2476 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use strcpy.
2478 2017-11-22 Yao Qi <yao.qi@linaro.org>
2480 * cli/cli-decode.c (help_list): Use memcpy instead of strncpy.
2481 * cp-namespace.c (cp_lookup_transparent_type_loop): Likewise.
2483 2017-11-21 Jerome Guitton <guitton@adacore.com>
2485 * ravenscar-thread.c (ravenscar_wait): Update inferior ptid
2486 with event ptid from the lower layer before doing the
2487 ravenscar-specific update.
2489 2017-11-21 Joel Brobecker <brobecker@adacore.com>
2491 * ravenscar-thread.c (is_ravenscar_task): Also verify that
2492 the ptid's TID is nonzero.
2494 2017-11-21 Joel Brobecker <brobecker@adacore.com>
2496 * ada-lang.h (ada_get_tcb_types_info): Add declaration.
2497 * ada-tasks.c (ada_get_tcb_types_info): Renames get_tcb_types_info.
2498 Make non-static. Change return type to char *. Adjust code
2499 accordingly. Rewrite the function's documentation.
2500 (read_atcb): Adjust call to get_tcb_types_info accordingly.
2501 * ravenscar-thread.c (ravenscar_inferior_created): Check that
2502 we have enough debugging information in the runtime to support
2503 Ada task debugging before we enable the ravenscar-thread layer.
2505 2017-11-21 Joel Brobecker <brobecker@adacore.com>
2507 * ada-lang.h (ada_get_task_info_from_ptid): Add declaration.
2508 * ada-tasks.c (ada_get_task_info_from_ptid): New function.
2509 * ravenscar-thread.c: Add into comment.
2510 (base_magic_null_ptid): Delete.
2511 (base_ptid): Change documentation.
2512 (ravenscar_active_task): Renames ravenscar_running_thread.
2513 All callers updated throughout.
2514 (is_ravenscar_task, ravenscar_get_thread_base_cpu): New function.
2515 (ravenscar_task_is_currently_active): Likewise.
2516 (get_base_thread_from_ravenscar_task): Ditto.
2517 (ravenscar_update_inferior_ptid): Adjust to handle multiple CPUs.
2518 (ravenscar_runtime_initialized): Likewise.
2519 (get_running_thread_id): Add new parameter "cpu". Adjust
2520 implementation to handle this new parameter.
2521 (ravenscar_fetch_registers): Small adjustment to use
2522 is_ravenscar_task and ravenscar_task_is_currently_active in
2523 order to decide whether to use the target beneath or this
2525 (ravenscar_store_registers, ravenscar_prepare_to_store): Likewise.
2526 (ravenscar_stopped_by_sw_breakpoint): Use
2527 get_base_thread_from_ravenscar_task to get the underlying
2528 thread, rather than using base_ptid.
2529 (ravenscar_stopped_by_hw_breakpoint, ravenscar_stopped_by_watchpoint)
2530 (ravenscar_stopped_data_address, ravenscar_core_of_thread):
2532 (ravenscar_inferior_created): Do not set base_magic_null_ptid.
2534 2017-11-21 Joel Brobecker <brobecker@adacore.com>
2536 * ada-lang.h (struct ada_task_info) <base_cpu>: New field.
2537 * ada-lang.c (struct atcb_fieldno) <base_cpu>: New field.
2538 (get_tcb_types_info): Set fieldnos.base_cpu.
2539 (read_atcb): Set task_info->base_cpu.
2540 (info_task): Print "Base CPU" info if set by runtime.
2542 2017-11-21 Joel Brobecker <brobecker@adacore.com>
2544 * ravenscar-thread.c (ravenscar_stopped_by_sw_breakpoint)
2545 (ravenscar_stopped_by_hw_breakpoint, ravenscar_stopped_by_watchpoint)
2546 (ravenscar_stopped_data_address, ravenscar_core_of_thread):
2548 (init_ravenscar_thread_ops): Set the to_stopped_by_sw_breakpoint,
2549 to_stopped_by_hw_breakpoint, to_stopped_by_watchpoint,
2550 to_stopped_data_address and to_core_of_thread fields of
2553 2017-11-21 Ulrich Weigand <uweigand@de.ibm.com>
2555 * ppc-tdep.h (enum powerpc_long_double_abi): New data type.
2556 (struct gdbarch_tdep): New member long_double_abi.
2557 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize long_double_abi
2558 member of tdep struct based on Tag_GNU_Power_ABI_FP attribute.
2559 * ppc-linux-tdep.c (ppc_linux_init_abi): Install long double data
2560 format depending on long_double_abi tdep member.
2561 (ppc_floatformat_for_type): Handle __ibm128 type.
2563 2017-11-20 Simon Marchi <simon.marchi@polymtl.ca>
2565 * darwin-nat.c (set_enable_mach_exceptions): Constify parameter.
2567 2017-11-21 Pedro Alves <palves@redhat.com>
2569 * dwarf2read.c (mapped_index::find_name_components_bounds)
2570 <completion mode, upper bound>: Use std::lower_bound instead of
2572 (test_mapped_index_find_name_component_bounds): Remove incorrect
2573 "t1_fund" from expected symbols.
2575 2017-11-21 Pedro Alves <palves@redhat.com>
2577 * dwarf2read.c (mapped_index::name_components_casing): New field.
2578 (mapped_index) <build_name_components,
2579 find_name_components_bounds): Declare new methods.
2580 (mapped_index::find_name_components_bounds)
2581 (mapped_index::build_name_components): New methods, factored out
2582 from dw2_expand_symtabs_matching_symbol.
2583 (check_find_bounds_finds)
2584 (test_mapped_index_find_name_component_bounds): New.
2585 (run_test): Rename to ...
2586 (test_dw2_expand_symtabs_matching_symbol): ... this.
2587 (run_test): Reimplement.
2589 2017-11-21 Pedro Alves <palves@redhat.com>
2591 * cp-name-parser.y (cp_ident_is_alpha, cp_ident_is_alnum): New.
2592 (symbol_end): Use cp_ident_is_alnum.
2593 (yylex): Use cp_ident_is_alpha and cp_ident_is_alnum.
2594 * dwarf2read.c (make_sort_after_prefix_name): New function.
2595 (dw2_expand_symtabs_matching_symbol): Use it.
2596 (test_symbols): Add more symbols.
2597 (run_test): Add tests.
2599 2017-11-17 Tom Tromey <tom@tromey.com>
2601 * symtab.h (enum symbol_subclass_kind): New.
2602 (struct symbol) <is_cplus_template_function, is_rust_vtable>:
2604 <subclass>: New member.
2605 (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): Update.
2606 * rust-lang.c (rust_get_trait_object_pointer): Update.
2607 * dwarf2read.c (read_func_scope): Update.
2608 (read_variable): Update.
2610 2017-11-17 Tom Tromey <tom@tromey.com>
2612 * dwarf2read.c (read_func_scope): Update.
2613 * symtab.h (struct template_symbol): Derive from symbol.
2616 2017-11-17 Tom Tromey <tom@tromey.com>
2618 * symtab.h (struct symbol) <is_rust_vtable>: New member.
2619 (struct rust_vtable_symbol): New.
2620 (find_symbol_at_address): Declare.
2621 * symtab.c (find_symbol_at_address): New function.
2622 * symfile.h (struct quick_symbol_functions)
2623 <find_compunit_symtab_by_address>: New member.
2624 * symfile-debug.c (debug_qf_find_compunit_symtab_by_address): New
2626 (debug_sym_quick_functions): Link to
2627 debug_qf_find_compunit_symtab_by_address.
2628 * rust-lang.c (rust_get_trait_object_pointer): New function.
2629 (rust_evaluate_subexp) <case UNOP_IND>: New case. Call
2630 rust_get_trait_object_pointer.
2631 * psymtab.c (psym_relocate): Clear psymbol_map.
2632 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address): New
2634 (psym_functions): Link to psym_find_compunit_symtab_by_address.
2635 * objfiles.h (struct objfile) <psymbol_map>: New member.
2636 * dwarf2read.c (dwarf2_gdb_index_functions): Update.
2637 (process_die) <DW_TAG_variable>: New case. Call read_variable.
2638 (rust_containing_type, read_variable): New functions.
2640 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
2642 * common/gdb_vecs.h (DEF_VEC_I (int)): Remove.
2644 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
2646 * common/filestuff.c: Include <algorithm>.
2647 (open_fds): Change type to std::vector<int>.
2648 (do_mark_open_fd): Adjust.
2649 (unmark_fd_no_cloexec): Adjust.
2652 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
2654 * breakpoint.c (output_thread_groups): Take an std::vector.
2655 (print_one_breakpoint_location): Adjust.
2657 2017-11-17 Joel Brobecker <brobecker@adacore.com>
2659 * ada-lang.c (resolve_subexp): Add handling of OP_VAR_MSYM_VALUE.
2660 (ada_evaluate_subexp_for_cast): New function.
2661 (ada_evaluate_subexp) <UNOP_CAST>: Replace code by call to
2662 ada_evaluate_subexp_for_cast.
2663 (ada_evaluate_subexp) <nosideret>: Replace code by call to
2665 * eval.c (evaluate_var_value): Make non-static.
2666 (evaluate_var_msym_value, eval_skip_value): Likewise.
2667 * value.h (evaluate_var_value, evaluate_var_msym_value)
2668 (eval_skip_value): Declare.
2670 2017-11-16 Joel Brobecker <brobecker@adacore.com>
2672 * ada-lang.c (ada_value_cast): Remove parameter "noside".
2675 2017-11-16 Pedro Alves <palves@redhat.com>
2677 * python/py-unwind.c (pyuw_sniffer): Translate
2678 PyExc_KeyboardInterrupt to a GDB Quit exception.
2680 2017-11-16 Pedro Alves <palves@redhat.com>
2682 * infrun.c (resume_cleanups): Delete.
2683 (resume): No longer install a resume_cleanups cleanup nor call
2685 (proceed): Pass the terminal to the inferior.
2686 (keep_going_pass_signal): No longer install a resume_cleanups
2689 2017-11-16 Pedro Alves <palves@redhat.com>
2691 * inf-loop.c (inferior_event_handler): Don't swallow the exception
2692 if the prompt is blocked.
2694 2017-11-16 Pedro Alves <palves@redhat.com>
2696 * breakpoint.c (insert_bp_location): Replace bp_err and
2697 bp_err_message locals by a gdb_exception local.
2699 2017-11-16 Pedro Alves <palves@redhat.com>
2701 * inflow.c (scoped_ignore_sigttou): New class.
2702 (child_terminal_ours_1, new_tty): Use it.
2704 2017-11-16 Ulrich Weigand <uweigand@de.ibm.com>
2706 * target-float.c (decimal_from_number): Add byte_order argument and
2707 call match_endianness. Error if unknown floating-point type.
2708 (decimal_to_number): Add byte_order argument and call match_endianness.
2709 (decimal_from_longest): Update call. Do not call match_endianness.
2710 (decimal_from_ulongest): Likewise.
2711 (decimal_binop): Likewise.
2712 (decimal_is_zero): Likewise.
2713 (decimal_compare): Likewise.
2714 (decimal_convert): Likewise.
2716 2017-11-16 Phil Muldoon <pmuldoon@redhat.com>
2718 * python/python.c (gdbpy_rbreak): New function.
2719 * NEWS: Document Python rbreak feature.
2721 2017-11-16 Yao Qi <yao.qi@linaro.org>
2723 * features/tic6x-c62x.xml: Remove.
2724 * features/tic6x-c64x.xml: Remove.
2725 * features/tic6x-c64xp.xml: Remove.
2727 2017-11-15 John Baldwin <jhb@FreeBSD.org>
2729 * symtab.h: Include <array>.
2731 2017-11-15 John Baldwin <jhb@FreeBSD.org>
2733 * bsd-kvm.c (bsd_kvm_cmd): Constify 'arg'.
2734 (bsd_kvm_proc_cmd): Likewise.
2736 2017-11-15 Simon Marchi <simon.marchi@ericsson.com>
2738 * tui/tui-win.c (window_name_completer): Replace VEC with
2741 2017-11-15 Andrew Cagney <cagney@gnu.org>
2743 * MAINTAINERS: Remove no-longer applicable entries.
2745 2017-11-15 Andrew Cagney <cagney@gnu.org>
2747 * MAINTAINERS: Move self to Past Maintainers.
2749 2017-11-15 Yao Qi <yao.qi@linaro.org>
2751 * features/Makefile (XMLTOC): Remove nios2-linux.xml.
2752 * features/nios2-linux.c: Remove.
2753 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Don't call
2754 initialize_tdesc_nios2_linux.
2756 2017-11-15 Yao Qi <yao.qi@linaro.org>
2758 * m68hc11-tdep.c (M68HC11_NUM_REGS): Change it to
2759 M68HC11_LAST_HARD_REG + 1.
2761 2017-11-14 Paul Carroll <pcarroll@codesourcery.com>
2764 * remote.c (remote_write_bytes_aux, remote_read_bytes_1,
2765 remote_read_bytes, remote_write_qxfer, remote_xfer_partial):
2766 Return TARGET_XFER_EOF if size of returned data is 0.
2768 2017-11-14 Simon Marchi <simon.marchi@ericsson.com>
2770 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2771 memory-map-selftests.c.
2772 (SUBDIR_UNITTESTS_OBS): Add memory-map-selftests.o.
2773 * memory-map.c (memory_map_start_memory): Fix computation of hi
2775 * unittests/memory-map-selftests.c: New file.
2777 2017-11-09 Joel Brobecker <brobecker@adacore.com>
2779 * ada-lang.c: Fix some typos in the general command documenting
2780 how Ada expressions are being evaluated and how their result
2783 2017-11-09 Tom Tromey <tom@tromey.com>
2785 * psymtab.c (psymbol_hash): Do not hash string contents.
2786 (psymbol_compare): Add comment.
2788 2017-11-09 Tom Tromey <tom@tromey.com>
2790 * dictionary.c (dict_hash): Move "TKB" check into the "switch".
2792 2017-11-08 Joel Brobecker <brobecker@adacore.com>
2794 * ada-exp.y (write_var_from_sym): Remove parameter
2795 "orig_left_context". Update all callers.
2797 2017-11-08 Simon Marchi <simon.marchi@ericsson.com>
2799 * tracepoint.h (class collection_list) <stringify>: Return
2800 std::vector<std::string>.
2801 (encode_actions_rsp): Change parameters to
2802 std::vector<std::string> *.
2803 * tracepoint.c (collection_list::stringify): Return
2804 std::vector<std::string> and adjust accordingly.
2805 (encode_actions_rsp): Changee parameters to
2806 std::vector<std::string> and adjust accordingly.
2807 * remote.c (free_actions_list),
2808 free_actions_list_cleanup_wrapper): Remove.
2809 (remote_download_tracepoint): Adjust to std::vector.
2811 2017-11-08 Tom Tromey <tom@tromey.com>
2813 * dwarf2read.c (symbolp): Remove typedef.
2814 (read_func_scope): Use std::vector.
2815 (process_structure_scope): Use std::vector.
2817 2017-11-08 Pedro Alves <palves@redhat.com>
2819 * ada-lang.c (ada_make_symbol_completion_list): Use
2820 completion_skip_symbol.
2821 * symtab.c (symbol_is_function_or_method(minimal_symbol*)): New.
2822 (symbol_is_function_or_method(symbol*)): New.
2823 (add_symtab_completions): Add complete_symbol_mode parameter. Use
2824 completion_skip_symbol.
2825 (default_collect_symbol_completion_matches_break_on): Use
2826 completion_skip_symbol. Pass down mode.
2827 (collect_file_symbol_completion_matches): Pass down mode.
2828 * symtab.h (symbol_is_function_or_method): New declarations.
2829 (completion_skip_symbol): New template function.
2831 2017-11-08 Pedro Alves <palves@redhat.com>
2833 * linespec.c (iterate_over_all_matching_symtabs): Add
2834 search_domain parameter. Pass it down to expand_symtabs_matching.
2835 (decode_objc): Request FUNCTIONS_DOMAIN symbols only.
2836 (lookup_prefix_sym): Adjust by passing ALL_DOMAIN as
2838 (add_all_symbol_names_from_pspace): Add search_domain parameter.
2840 (find_method, find_function_symbols): Request FUNCTIONS_DOMAIN
2842 (add_matching_symbols_to_info): Add search_domain parameter. Pass
2845 2017-11-08 Pedro Alves <palves@redhat.com>
2847 * ada-lang.c (ada_make_symbol_completion_list): Remove text and
2848 text_len locals and don't pass them down.
2849 * symtab.c (completion_list_add_name): Remove
2850 sym_text/sym_text_len parameters and adjust.
2851 (completion_list_add_symbol, completion_list_add_msymbol)
2852 (completion_list_objc_symbol, completion_list_add_fields)
2853 (add_symtab_completions): Likewise.
2854 (default_collect_symbol_completion_matches_break_on)
2855 (collect_file_symbol_completion_matches): Remove sym_text_len
2856 local and don't pass it down.
2857 * symtab.h (completion_list_add_name): Remove
2858 sym_text/sym_text_len parameters.
2860 2017-11-08 Pedro Alves <palves@redhat.com>
2862 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2863 unittests/lookup_name_info-selftests.c.
2864 (SUBDIR_UNITTESTS_OBS): Add lookup_name_info-selftests.o.
2865 * cp-support.c: Include "selftest.h".
2866 (cp_remove_params_1): Rename from cp_remove_params. Add
2867 'require_param' parameter, and handle it.
2868 (cp_remove_params): Reimplement.
2869 (cp_remove_params_if_any): New.
2870 (selftests::quote): New.
2871 (selftests::check_remove_params): New.
2872 (selftests::test_cp_remove_params): New.
2873 (_initialize_cp_support): Install
2874 selftests::test_cp_remove_params.
2875 * cp-support.h (cp_remove_params_if_any): Declare.
2876 * dwarf2read.c :Include "selftest.h".
2877 (dw2_expand_symtabs_matching_symbol): Use
2878 lookup_name_info::make_ignore_params.
2879 (selftests::dw2_expand_symtabs_matching::mock_mapped_index)
2880 (selftests::dw2_expand_symtabs_matching::string_or_null)
2881 (selftests::dw2_expand_symtabs_matching::check_match)
2882 (selftests::dw2_expand_symtabs_matching::test_symbols)
2883 (selftests::dw2_expand_symtabs_matching::run_test): New.
2884 (_initialize_dwarf2_read): Register
2885 selftests::dw2_expand_symtabs_matching::run_test.
2886 * psymtab.c (psym_expand_symtabs_matching): Use
2887 lookup_name_info::make_ignore_params.
2888 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info):
2889 If the lookup name wants to ignore parameters, strip them.
2890 (compare_symbol_name): Remove sym_text/sym_text_len parameters and
2892 (completion_list_add_name): Don't pass down sym_text/sym_text_len.
2893 (default_collect_symbol_completion_matches_break_on): Don't try to
2895 * symtab.h (lookup_name_info::lookup_name_info): Add
2896 'ignore_parameters' parameter.
2897 (lookup_name_info::ignore_parameters)
2898 (lookup_name_info::make_ignore_params): New methods.
2899 (lookup_name_info::m_ignore_parameters): New field.
2900 * unittests/lookup_name_info-selftests.c: New file.
2902 2017-11-08 Pedro Alves <palves@redhat.com>
2904 * dwarf2read.c (dw2_expand_marked_cus)
2905 (dw2_expand_symtabs_matching_symbol): Remove forward declarations.
2906 (dw2_expand_symtabs_matching): Move further below.
2907 (dw2_expand_marked_cus): Reindent.
2909 2017-11-08 Pedro Alves <palves@redhat.com>
2911 * dwarf2read.c (byte_swap, MAYBE_SWAP): Move higher up in file.
2912 (struct name_component): New.
2913 (mapped_index::name_components): New field.
2914 (mapped_index::symbol_name_at): New method.
2915 (dwarf2_read_index): Call mapped_index ctor.
2916 (dw2_map_matching_symbols): Add comment about name_components
2918 (dw2_expand_symtabs_matching): Factor part to...
2919 (dw2_expand_symtabs_matching_symbol): ... this new function.
2920 Build name components table, and lookup symbols in it before
2921 calling the name matcher.
2922 (dw2_expand_marked_cus): New, factored out from
2923 dw2_expand_symtabs_matching.
2924 (dwarf2_per_objfile_free): Call the mapped_index's dtor.
2926 2017-11-08 Pedro Alves <palves@redhat.com>
2928 * ada-lang.c (ada_encode): Rename to ..
2929 (ada_encode_1): ... this. Add throw_errors parameter and handle
2931 (ada_encode): Reimplement.
2932 (match_name): Delete, folded into full_name.
2933 (resolve_subexp): No longer pass the encoded name to
2934 ada_lookup_symbol_list.
2935 (should_use_wild_match): Delete.
2936 (name_match_type_from_name): New.
2937 (ada_lookup_simple_minsym): Use lookup_name_info and the
2938 language's symbol_name_matcher_ftype.
2939 (add_symbols_from_enclosing_procs, ada_add_local_symbols)
2940 (ada_add_block_renamings): Adjust to use lookup_name_info.
2941 (ada_lookup_name): New.
2942 (add_nonlocal_symbols, ada_add_all_symbols)
2943 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list)
2944 (ada_iterate_over_symbols): Adjust to use lookup_name_info.
2945 (ada_name_for_lookup): Delete.
2946 (ada_lookup_encoded_symbol): Construct a verbatim name.
2947 (wild_match): Reverse sense of return type. Use bool.
2948 (full_match): Reverse sense of return type. Inline bits of old
2950 (ada_add_block_symbols): Adjust to use lookup_name_info.
2951 (symbol_completion_match): Delete, folded into...
2952 (ada_lookup_name_info::matches): ... .this new method.
2953 (symbol_completion_add): Delete.
2954 (ada_collect_symbol_completion_matches): Add name_match_type
2955 parameter. Adjust to use lookup_name_info and
2956 completion_list_add_name.
2957 (get_var_value, ada_add_global_exceptions): Adjust to use
2959 (ada_get_symbol_name_cmp): Delete.
2960 (do_wild_match, do_full_match): New functions.
2961 (ada_lookup_name_info::ada_lookup_name_info): New method.
2962 (ada_symbol_name_matches, ada_get_symbol_name_matcher): New
2964 (ada_language_defn): Install ada_get_symbol_name_matcher.
2965 * ada-lex.l (processId): If name starts with '<', copy it
2967 * block.c (block_iter_match_step, block_iter_match_first)
2968 (block_iter_match_next, block_lookup_symbol)
2969 (block_lookup_symbol_primary, block_find_symbol): Adjust to use
2971 * block.h (block_iter_match_first, block_iter_match_next)
2972 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use lookup_name_info.
2973 * c-lang.c (c_language_defn, cplus_language_defn)
2974 (asm_language_defn, minimal_language_defn): Adjust comments to
2975 refer to la_get_symbol_name_matcher.
2976 * completer.c (complete_files_symbols)
2977 (collect_explicit_location_matches, symbol_completer): Pass a
2978 symbol_name_match_type down.
2979 * completer.h (class completion_match, completion_match_result):
2981 (completion_tracker::reset_completion_match_result): New method.
2982 (completion_tracker::m_completion_match_result): New field.
2983 * cp-support.c (make_symbol_overload_list_block): Adjust to use
2985 (cp_fq_symbol_name_matches, cp_get_symbol_name_matcher): New
2987 * cp-support.h (cp_get_symbol_name_matcher): New declaration.
2988 * d-lang.c: Adjust comments to refer to
2989 la_get_symbol_name_matcher.
2990 * dictionary.c (dict_vector) <iter_match_first, iter_match_next>:
2991 Adjust to use lookup_name_info.
2992 (dict_iter_match_first, dict_iter_match_next)
2993 (iter_match_first_hashed, iter_match_next_hashed)
2994 (iter_match_first_linear, iter_match_next_linear): Adjust to work
2995 with a lookup_name_info.
2996 * dictionary.h (dict_iter_match_first, dict_iter_match_next):
2998 * dwarf2read.c (dw2_lookup_symbol): Adjust to use lookup_name_info.
2999 (dw2_map_matching_symbols): Adjust to use symbol_name_match_type.
3000 (gdb_index_symbol_name_matcher): New class.
3001 (dw2_expand_symtabs_matching) Adjust to use lookup_name_info and
3002 gdb_index_symbol_name_matcher. Accept a NULL symbol_matcher.
3003 * f-lang.c (f_collect_symbol_completion_matches): Adjust to work
3004 with a symbol_name_match_type.
3005 (f_language_defn): Adjust comments to refer to
3006 la_get_symbol_name_matcher.
3007 * go-lang.c (go_language_defn): Adjust comments to refer to
3008 la_get_symbol_name_matcher.
3009 * language.c (default_symbol_name_matcher)
3010 (language_get_symbol_name_matcher): New functions.
3011 (unknown_language_defn, auto_language_defn): Adjust comments to
3012 refer to la_get_symbol_name_matcher.
3013 * language.h (symbol_name_cmp_ftype): Delete.
3014 (language_defn) <la_collect_symbol_completion_matches>: Add match
3016 <la_get_symbol_name_cmp>: Delete field.
3017 <la_get_symbol_name_matcher>: New field.
3018 <la_iterate_over_symbols>: Adjust to use lookup_name_info.
3019 (default_symbol_name_matcher, language_get_symbol_name_matcher):
3021 * linespec.c (iterate_over_all_matching_symtabs)
3022 (iterate_over_file_blocks): Adjust to use lookup_name_info.
3023 (find_methods): Add language parameter, and use lookup_name_info
3024 and the language's symbol_name_matcher_ftype.
3025 (linespec_complete_function): Adjust.
3026 (lookup_prefix_sym): Use lookup_name_info.
3027 (add_all_symbol_names_from_pspace): Adjust.
3028 (find_superclass_methods): Add language parameter and pass it
3030 (find_method): Pass symbol language down.
3031 (find_linespec_symbols): Don't demangle or Ada encode here.
3032 (search_minsyms_for_name): Add lookup_name_info parameter.
3033 (add_matching_symbols_to_info): Add name_match_type parameter.
3034 Use lookup_name_info.
3035 * m2-lang.c (m2_language_defn): Adjust comments to refer to
3036 la_get_symbol_name_matcher.
3037 * minsyms.c: Include <algorithm>.
3038 (add_minsym_to_demangled_hash_table): Remove table parameter and
3039 add objfile parameter. Use search_name_hash, and add language to
3040 demangled languages vector.
3041 (struct found_minimal_symbols): New struct.
3042 (lookup_minimal_symbol_mangled, lookup_minimal_symbol_demangled):
3044 (lookup_minimal_symbol): Adjust to use them. Don't canonicalize
3045 input names here. Use lookup_name_info instead. Lookup up
3046 demangled names once for each language in the demangled names
3048 (iterate_over_minimal_symbols): Use lookup_name_info. Lookup up
3049 demangled names once for each language in the demangled names
3051 (build_minimal_symbol_hash_tables): Adjust.
3052 * minsyms.h (iterate_over_minimal_symbols): Adjust to pass down a
3054 * objc-lang.c (objc_language_defn): Adjust comment to refer to
3055 la_get_symbol_name_matcher.
3056 * objfiles.h: Include <vector>.
3057 (objfile_per_bfd_storage) <demangled_hash_languages>: New field.
3058 * opencl-lang.c (opencl_language_defn): Adjust comment to refer to
3059 la_get_symbol_name_matcher.
3060 * p-lang.c (pascal_language_defn): Adjust comment to refer to
3061 la_get_symbol_name_matcher.
3062 * psymtab.c (psym_lookup_symbol): Use lookup_name_info.
3063 (match_partial_symbol): Use symbol_name_match_type,
3064 lookup_name_info and psymbol_name_matches.
3065 (lookup_partial_symbol): Use lookup_name_info.
3066 (map_block): Use symbol_name_match_type and lookup_name_info.
3067 (psym_map_matching_symbols): Use symbol_name_match_type.
3068 (psymbol_name_matches): New.
3069 (recursively_search_psymtabs): Use lookup_name_info and
3070 psymbol_name_matches. Rename 'kind' parameter to 'domain'.
3071 (psym_expand_symtabs_matching): Use lookup_name_info. Rename
3072 'kind' parameter to 'domain'.
3073 * rust-lang.c (rust_language_defn): Adjust comment to refer to
3074 la_get_symbol_name_matcher.
3075 * symfile-debug.c (debug_qf_map_matching_symbols)
3076 (debug_qf_map_matching_symbols): Use symbol_name_match_type.
3077 (debug_qf_expand_symtabs_matching): Use lookup_name_info.
3078 * symfile.c (expand_symtabs_matching): Use lookup_name_info.
3079 * symfile.h (quick_symbol_functions) <map_matching_symbols>:
3080 Adjust to use symbol_name_match_type.
3081 <expand_symtabs_matching>: Adjust to use lookup_name_info.
3082 (expand_symtabs_matching): Adjust to use lookup_name_info.
3083 * symmisc.c (maintenance_expand_symtabs): Use
3084 lookup_name_info::match_any ().
3085 * symtab.c (symbol_matches_search_name): New.
3086 (eq_symbol_entry): Adjust to use lookup_name_info and the
3088 (demangle_for_lookup_info::demangle_for_lookup_info): New.
3089 (lookup_name_info::match_any): New.
3090 (iterate_over_symbols, search_symbols): Use lookup_name_info.
3091 (compare_symbol_name): Add language, lookup_name_info and
3092 completion_match_result parameters, and use them.
3093 (completion_list_add_name): Make extern. Add language and
3094 lookup_name_info parameters. Use them.
3095 (completion_list_add_symbol, completion_list_add_msymbol)
3096 (completion_list_objc_symbol): Add lookup_name_info parameters and
3097 adjust. Pass down language.
3098 (completion_list_add_fields): Add lookup_name_info parameters and
3099 adjust. Pass down language.
3100 (add_symtab_completions): Add lookup_name_info parameters and
3102 (default_collect_symbol_completion_matches_break_on): Add
3103 name_match_type parameter, and use it. Use lookup_name_info.
3104 (default_collect_symbol_completion_matches)
3105 (collect_symbol_completion_matches): Add name_match_type
3106 parameter, and pass it down.
3107 (collect_symbol_completion_matches_type): Adjust.
3108 (collect_file_symbol_completion_matches): Add name_match_type
3109 parameter, and use lookup_name_info.
3110 * symtab.h: Include <string> and "common/gdb_optional.h".
3111 (enum class symbol_name_match_type): New.
3112 (class ada_lookup_name_info): New.
3113 (struct demangle_for_lookup_info): New.
3114 (class lookup_name_info): New.
3115 (symbol_name_matcher_ftype): New.
3116 (SYMBOL_MATCHES_SEARCH_NAME): Use symbol_matches_search_name.
3117 (symbol_matches_search_name): Declare.
3118 (MSYMBOL_MATCHES_SEARCH_NAME): Delete.
3119 (default_collect_symbol_completion_matches)
3120 (collect_symbol_completion_matches)
3121 (collect_file_symbol_completion_matches): Add name_match_type
3123 (iterate_over_symbols): Use lookup_name_info.
3124 (completion_list_add_name): Declare.
3125 * utils.c (enum class strncmp_iw_mode): Moved to utils.h.
3126 (strncmp_iw_with_mode): Now extern.
3127 * utils.h (enum class strncmp_iw_mode): Moved from utils.c.
3128 (strncmp_iw_with_mode): Declare.
3130 2017-11-08 Keith Seitz <keiths@redhat.com>
3131 Pedro Alves <palves@redhat.com>
3133 * ada-lang.c (ada_language_defn): Install
3134 default_search_name_hash.
3135 * buildsym.c (struct buildsym_compunit): <language>: New field.
3136 (finish_block_internal): Pass language when creating dictionaries.
3137 (start_buildsym_compunit, start_symtab): New language parameters.
3139 (restart_symtab): Pass down compilation unit's language.
3140 * buildsym.h (enum language): Forward declare.
3141 (start_symtab): New 'language' parameter.
3142 * c-lang.c (c_language_defn, cplus_language_defn)
3143 (asm_language_defn, minimal_language_defn): Install
3144 default_search_name_hash.
3145 * coffread.c (coff_start_symtab): Adjust.
3146 * d-lang.c (d_language_defn): Install default_search_name_hash.
3147 * dbxread.c (struct symloc): Add 'pst_language' field.
3148 (PST_LANGUAGE): Define.
3149 (start_psymtab, read_ofile_symtab): Use it.
3150 (process_one_symbol): New 'language' parameter. Pass it down.
3151 * dictionary.c (struct dictionary) <language>: New field.
3152 (DICT_LANGUAGE): Define.
3153 (dict_create_hashed, dict_create_hashed_expandable)
3154 (dict_create_linear, dict_create_linear_expandable): New parameter
3155 'language'. Set the dictionary's language.
3156 (iter_match_first_hashed): Adjust to rename.
3157 (insert_symbol_hashed): Assert we don't see mismatching
3158 languages. Adjust to rename.
3159 (dict_hash): Rename to ...
3160 (default_search_name_hash): ... this and make extern.
3161 * dictionary.h (struct language_defn): Forward declare.
3162 (dict_create_hashed): New parameter 'language'.
3163 * dwarf2read.c (dwarf2_start_symtab): Pass down language.
3164 * f-lang.c (f_language_defn): Install default_search_name_hash.
3165 * go-lang.c (go_language_defn): Install default_search_name_hash.
3166 * jit.c (finalize_symtab): Pass compunit's language to dictionary
3168 * language.c (unknown_language_defn, auto_language_defn):
3169 * language.h (language_defn::la_search_name_hash): New field.
3170 (default_search_name_hash): Declare.
3171 * m2-lang.c (m2_language_defn): Install default_search_name_hash.
3172 * mdebugread.c (new_block): New parameter 'language'.
3173 * mdebugread.c (parse_symbol): Pass symbol language to block
3175 (psymtab_to_symtab_1): Pass down language.
3176 (new_symtab): Pass compunit's language to block allocation.
3177 * objc-lang.c (objc_language_defn): Install
3178 default_search_name_hash.
3179 * opencl-lang.c (opencl_language_defn):
3180 * p-lang.c (pascal_language_defn): Install
3181 default_search_name_hash.
3182 * rust-lang.c (rust_language_defn): Install
3183 default_search_name_hash.
3184 * stabsread.h (enum language): Forward declare.
3185 (process_one_symbol): Add 'language' parameter.
3186 * symtab.c (search_name_hash): New function.
3187 * symtab.h (search_name_hash): Declare.
3188 * xcoffread.c (read_xcoff_symtab): Pass language to start_symtab.
3190 2017-11-08 Pedro Alves <palves@redhat.com>
3192 * cp-name-parser.y (main): Don't initialize extra_chars.
3194 2017-11-07 Tom Tromey <tom@tromey.com>
3196 * event-top.h (command_handler): Constify.
3197 * record-full.c (cmd_record_full_start): Update.
3198 * thread.c (thread_apply_all_command): Update.
3199 * printcmd.c (eval_command): Update.
3200 * mi/mi-main.c (mi_execute_cli_command): Update.
3201 (mi_execute_async_cli_command): Update.
3202 * tui/tui-stack.c (tui_update_command): Update.
3203 * cli/cli-interp.c (safe_execute_command): Constify.
3204 * record.c (record_start): Update.
3205 (record_start, record_stop, cmd_record_start): Update.
3206 * record-btrace.c (cmd_record_btrace_bts_start): Update.
3207 (cmd_record_btrace_pt_start): Update.
3208 (cmd_record_btrace_start): Update.
3209 (cmd_record_btrace_start): Update.
3210 * reverse.c (exec_reverse_once): Update.
3211 * python/python.c (execute_gdb_command): Don't copy the command.
3212 * event-top.c (command_line_handler): Update.
3213 (command_handler): Constify.
3214 * defs.h (deprecated_call_command_hook): Constify.
3215 * cli/cli-script.h (execute_user_command): Constify.
3216 * cli/cli-script.c (execute_user_command): Constify.
3217 (execute_cmd_pre_hook, execute_cmd_post_hook): Constify.
3218 (enum command_control_type): Update.
3219 * main.c (catch_command_errors): Remove non-const overload.
3220 (catch_command_errors_ftype): Remove.
3221 * python/py-cmd.c (cmdpy_function): Constify.
3222 * guile/scm-cmd.c (cmdscm_function): Constify.
3223 * cli/cli-dump.c (call_dump_func): Constify.
3224 * cli/cli-decode.c (do_const_cfunc): Constify.
3225 (do_sfunc): Constify.
3226 (cmd_func): Constify.
3227 * gdbcmd.h (execute_command, execute_command_to_string): Constify.
3228 * top.h (execute_command): Constify.
3229 * top.c (execute_command): Constify.
3230 (execute_command_to_string): Constify.
3231 (deprecated_call_command_hook): Constify.
3232 * command.h (cmd_func): Constify.
3233 * cli/cli-decode.h (struct cmd_list_element) <func>: Constify.
3235 2017-11-07 Tom Tromey <tom@tromey.com>
3237 * ada-lang.c (catch_ada_exception_command): Constify.
3238 (catch_assert_command): Constify.
3239 * break-catch-throw.c (catch_catch_command, catch_throw_command)
3240 (catch_rethrow_command): Constify.
3241 (catch_exception_command_1): Constify.
3242 * breakpoint.h (add_catch_command): Constify.
3243 * break-catch-syscall.c (catch_syscall_command_1): Constify.
3244 (catch_syscall_split_args): Constify.
3245 * break-catch-sig.c (catch_signal_command): Constify.
3246 (catch_signal_split_args): Constify.
3247 * cli/cli-decode.h (struct cmd_list_element) <function>: Use
3248 cmd_const_sfunc_ftype.
3249 * cli/cli-decode.c (add_setshow_cmd_full): Constify.
3250 (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd)
3251 (add_setshow_boolean_cmd, add_setshow_filename_cmd)
3252 (add_setshow_string_cmd, struct cmd_list_element)
3253 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
3254 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
3255 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd):
3257 (set_cmd_sfunc): Constify.
3258 (empty_sfunc): Constify.
3259 * command.h (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd)
3260 (add_setshow_boolean_cmd, add_setshow_filename_cmd)
3261 (add_setshow_string_cmd, add_setshow_string_noescape_cmd)
3262 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
3263 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
3264 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
3266 (set_cmd_sfunc): Constify.
3267 (cmd_sfunc_ftype): Remove.
3268 * compile/compile.c (set_compile_args): Constify.
3269 * infrun.c (set_disable_randomization): Constify.
3270 * infcmd.c (set_args_command, set_cwd_command): Constify.
3271 * breakpoint.c (set_condition_evaluation_mode): Constify.
3272 (add_catch_command): Constify.
3273 (catch_fork_command_1, catch_exec_command_1)
3274 (catch_load_command_1, catch_unload_command_1): Constify.
3275 (catch_load_or_unload): Constify.
3276 * guile/scm-param.c (pascm_set_func): Constify.
3277 (add_setshow_generic): Constify.
3278 * python/py-param.c (get_set_value): Constify.
3279 * top.h (set_verbose): Constify.
3280 * tui/tui-win.c (tui_set_var_cmd): Constify.
3281 * mi/mi-main.c (set_mi_async_command): Constify.
3282 * cli/cli-logging.c (set_logging_overwrite)
3283 (set_logging_redirect): Constify.
3284 * value.c (set_max_value_size): Constify.
3285 * valprint.c (set_input_radix, set_output_radix): Constify.
3286 * utils.c (set_width_command, set_height_command): Constify.
3287 * typeprint.c (set_print_type_methods, set_print_type_typedefs): Constify.
3288 * tracepoint.c (set_disconnected_tracing)
3289 (set_circular_trace_buffer, set_trace_buffer_size)
3290 (set_trace_user, set_trace_notes, set_trace_stop_notes): Constify.
3291 * top.c (set_history_size_command, set_verbose, set_editing)
3292 (set_gdb_datadir, set_history_filename): Constify.
3293 * target.c (set_targetdebug, maint_set_target_async_command)
3294 (maint_set_target_non_stop_command, set_target_permissions)
3295 (set_write_memory_permission): Constify.
3296 (open_target): Constify.
3297 * target-descriptions.c (set_tdesc_filename_cmd): Constify.
3298 * target-dcache.c (set_stack_cache, set_code_cache): Constify.
3299 * symtab.c (set_symbol_cache_size_handler): Constify.
3300 * symfile.c (set_ext_lang_command): Constify.
3301 * symfile-debug.c (set_debug_symfile): Constify.
3302 * source.c (set_directories_command): Constify.
3303 * solib.c (reload_shared_libraries, gdb_sysroot_changed): Constify.
3304 * serial.c (set_parity): Constify.
3305 * rs6000-tdep.c (powerpc_set_soft_float, powerpc_set_vector_abi): Constify.
3306 * remote.c (set_remote_exec_file, set_remotebreak)
3307 (set_remote_protocol_Z_packet_cmd, set_range_stepping): Constify.
3308 * record.c (set_record_insn_history_size)
3309 (set_record_call_history_size): Constify.
3310 * record-full.c (set_record_full_insn_max_num): Constify.
3311 * proc-api.c (set_procfs_trace_cmd, set_procfs_file_cmd): Constify.
3312 * osabi.c (set_osabi): Constify.
3313 * mips-tdep.c (set_mips64_transfers_32bit_regs)
3314 (reinit_frame_cache_sfunc, mips_abi_update): Constify.
3315 * maint.c (maintenance_set_profile_cmd): Constify.
3316 * linux-thread-db.c (set_libthread_db_search_path): Constify.
3317 * language.c (set_language_command, set_range_command)
3318 (set_case_command): Constify.
3319 * infrun.c (set_non_stop, set_observer_mode)
3320 (set_stop_on_solib_events, set_schedlock_func)
3321 (set_exec_direction_func): Constify.
3322 * infcmd.c (set_inferior_tty_command): Constify.
3323 * disasm.c (set_disassembler_options_sfunc): Constify.
3324 * demangle.c (set_demangling_command): Constify.
3325 * dcache.c (set_dcache_size, set_dcache_line_size): Constify.
3326 * cris-tdep.c (set_cris_version, set_cris_mode)
3327 (set_cris_dwarf2_cfi): Constify.
3328 * corefile.c (set_gnutarget_command): Constify.
3329 * charset.c (set_host_charset_sfunc, set_target_charset_sfunc)
3330 (set_target_wide_charset_sfunc): Constify.
3331 * breakpoint.c (update_dprintf_commands): Constify.
3332 * auto-load.c (set_auto_load_dir, set_auto_load_safe_path): Constify.
3333 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi)
3334 (set_disassembly_style_sfunc): Constify.
3335 * arch-utils.c (set_endian, set_architecture): Constify.
3336 * alpha-tdep.c (reinit_frame_cache_sfunc): Constify.
3337 * agent.c (set_can_use_agent): Constify.
3339 2017-11-07 Tom Tromey <tom@tromey.com>
3341 * go32-nat.c (go32_sysinfo, go32_sldt, go32_sgdt, go32_sidt)
3342 (go32_pde, go32_pte, go32_pte_for_address): Constify.
3343 * gnu-nat.c (_parse_bool_arg, show_thread_default_pause_cmd)
3344 (set_thread_default_pause_cmd, set_thread_default_run_cmd)
3345 (show_thread_default_run_cmd, set_thread_default_detach_sc_cmd)
3346 (parse_int_arg, show_thread_default_detach_sc_cmd)
3347 (set_signals_cmd, show_signals_cmd, set_sig_thread_cmd)
3348 (show_sig_thread_cmd, set_stopped_cmd, show_stopped_cmd)
3349 (set_exceptions_cmd, show_exceptions_cmd, set_task_pause_cmd)
3350 (show_task_pause_cmd, set_task_detach_sc_cmd)
3351 (show_task_detach_sc_cmd, set_task_exc_port_cmd)
3352 (set_noninvasive_cmd, set_thread_pause_cmd)
3353 (show_thread_pause_cmd, set_thread_run_cmd, show_thread_run_cmd)
3354 (set_thread_detach_sc_cmd, show_thread_detach_sc_cmd)
3355 (set_thread_exc_port_cmd, thread_takeover_sc_cmd): Constify.
3356 * windows-nat.c (display_selectors): Constify.
3357 * cli/cli-decode.h (struct cmd_list_element) <function>: Remove
3359 * cli/cli-decode.c (set_cmd_cfunc): Remove non-const overload.
3360 (cmd_cfunc_eq): Likewise.
3361 (struct cmd_list_element): Likewise.
3363 (cli_user_command_p): Update.
3364 * command.h (add_cmd): Remove non-const overload.
3365 (cmd_cfunc_ftype): Remove typedef.
3366 (cmd_cfunc_eq): Remove non-const overload.
3367 * value.c (show_values): Constify.
3368 * thread.c (thread_apply_all_command): Constify.
3369 * symfile.c (load_command): Constify.
3370 * source.c (directory_command): Constify.
3371 * maint.c (maintenance_internal_error)
3372 (maintenance_demangler_warning, maintenance_space_display)
3373 (maintenance_print_architecture, maintenance_translate_address)
3374 (maintenance_info_selftests, maintenance_internal_warning):
3376 * breakpoint.c (disable_trace_command, enable_trace_command):
3378 * auto-load.c (info_auto_load_local_gdbinit, add_auto_load_dir):
3380 (add_auto_load_safe_path): Constify.
3381 * guile/scm-auto-load.c (info_auto_load_guile_scripts): Constify.
3382 * top.h (show_commands): Constify.
3383 * linux-thread-db.c (info_auto_load_libthread_db): Constify.
3384 * sparc64-tdep.c (adi_examine_command): Constify.
3385 (adi_assign_command): Constify.
3387 2017-11-07 Tom Tromey <tom@tromey.com>
3389 * frame.h (info_locals_command, info_args_command): Constify.
3390 * auto-load.h (auto_load_info_scripts): Constify.
3391 * inferior.h (registers_info): Constify.
3392 * copying.c: Rebuild.
3393 * copying.awk: Constify generated commands.
3394 * auto-load.c (auto_load_info_scripts)
3395 (info_auto_load_gdb_scripts): Constify.
3396 * cli/cli-decode.c (struct cmd_list_element): Take a
3397 cmd_const_cfunc_ftype.
3398 * command.h (add_info): Take a cmd_const_cfunc_ftype.
3399 * tui/tui-win.c (tui_all_windows_info): Constify.
3400 * python/py-auto-load.c (info_auto_load_python_scripts):
3402 * cli/cli-cmds.c (show_command): Remove non-const overload.
3403 * tracepoint.c (info_tvariables_command, info_scope_command):
3405 (info_static_tracepoint_markers_command): Constify.
3406 * thread.c (info_threads_command): Constify.
3407 (print_thread_info_1): Constify.
3408 * target.c (info_target_command): Constify.
3409 * symtab.c (info_sources_command, info_functions_command)
3410 (info_types_command): Constify.
3411 (info_variables_command): Remove non-const overload.
3412 * symfile.c (info_ext_lang_command): Constify.
3413 * stack.c (info_frame_command, info_locals_command)
3414 (info_args_command): Constify.
3415 (backtrace_command): Remove non-const overload.
3416 * source.c (info_source_command, info_line_command): Constify.
3417 * solib.c (info_sharedlibrary_command): Constify.
3418 * skip.c (info_skip_command): Constify.
3419 * ser-go32.c (info_serial_command): Constify.
3420 * reverse.c (info_bookmarks_command): Constify.
3421 * printcmd.c (info_symbol_command, info_address_command)
3422 (info_display_command): Constify.
3423 * osdata.c (info_osdata_command): Constify.
3424 * objc-lang.c (info_selectors_command, info_classes_command):
3426 * nto-procfs.c (procfs_pidlist, procfs_meminfo): Constify.
3427 * memattr.c (info_mem_command): Constify.
3428 * macrocmd.c (info_macro_command, info_macros_command): Constify.
3429 * linux-fork.c (info_checkpoints_command): Constify.
3430 * infrun.c (info_signals_command): Constify.
3431 * inflow.c (info_terminal_command): Constify.
3432 * inferior.c (info_inferiors_command): Constify.
3433 (print_inferior): Constify.
3434 * infcmd.c (info_program_command, info_all_registers_command)
3435 (info_registers_command, info_vector_command)
3436 (info_float_command): Constify.
3437 (registers_info): Constify.
3438 * gnu-nat.c (info_send_rights_cmd, info_recv_rights_cmd)
3439 (info_port_sets_cmd, info_dead_names_cmd, info_port_rights_cmd):
3441 * f-valprint.c (info_common_command): Constify.
3442 * dcache.c (info_dcache_command): Constify.
3443 (dcache_info_1): Constify.
3444 * darwin-nat-info.c (info_mach_tasks_command)
3445 (info_mach_task_command, info_mach_ports_command)
3446 (info_mach_port_command, info_mach_threads_command)
3447 (info_mach_thread_command, info_mach_regions_command)
3448 (info_mach_regions_recurse_command, info_mach_region_command)
3449 (info_mach_exceptions_command): Constify.
3450 (get_task_from_args): Constify.
3451 * cp-support.c (info_vtbl_command): Constify.
3452 * breakpoint.c (info_watchpoints_command)
3453 (info_tracepoints_command): Constify.
3454 (info_breakpoints_command): Remove non-const overload.
3455 * avr-tdep.c (avr_io_reg_read_command): Constify.
3456 * auxv.c (info_auxv_command): Constify.
3457 * ada-tasks.c (info_tasks_command): Constify.
3458 (info_task): Constify.
3459 * ada-lang.c (info_exceptions_command): Constify.
3461 2017-11-07 Tom Tromey <tom@tromey.com>
3463 * solib.h (no_shared_libraries): Constify.
3464 * frame.h (return_command): Constify.
3465 * cli/cli-cmds.h (quit_command): Constify.
3466 * top.h (quit_command, execute_command): Constify.
3467 * target.h (flash_erase_command): Constify.
3468 * inferior.h (set_inferior_args, attach_command): Constify.
3469 * tracepoint.h (start_tracing, stop_tracing): Constify.
3470 * breakpoint.h (break_command, tbreak_command)
3471 (hbreak_command_wrapper, thbreak_command_wrapper)
3472 (rbreak_command_wrapper, watch_command_wrapper)
3473 (awatch_command_wrapper, rwatch_command_wrapper)
3474 (get_tracepoint_by_number): Constify.
3475 * symtab.c (info_variables_command, rbreak_command)
3476 (symtab_symbol_info): Constify.
3477 (info_variables_command): Add non-const overload.
3478 * top.c (dont_repeat_command): Constify.
3479 * breakpoint.c (ignore_command, commands_command)
3480 (condition_command, tbreak_command, hbreak_command)
3481 (thbreak_command, clear_command, break_command)
3482 (info_breakpoints_command, watch_command, rwatch_command)
3483 (awatch_command, trace_command, ftrace_command, strace_command)
3484 (trace_pass_command, break_range_command, dprintf_command)
3485 (agent_printf_command, get_tracepoint_by_number)
3486 (watch_maybe_just_location, trace_pass_command): Constify.
3487 (info_breakpoints_command): Add non-const overload.
3488 * tracefile.c (tsave_command): Constify.
3489 * infcmd.c (attach_command, disconnect_command, signal_command)
3490 (queue_signal_command, stepi_command, nexti_command)
3491 (finish_command, next_command, step_command, until_command)
3492 (advance_command, jump_command, continue_command, run_command)
3493 (start_command, starti_command, interrupt_command)
3494 (run_command_1, set_inferior_args, step_1): Constify.
3495 * inferior.c (add_inferior_command, remove_inferior_command)
3496 (clone_inferior_command): Constify.
3497 * linux-fork.c (checkpoint_command, restart_command): Constify.
3498 * windows-nat.c (signal_event_command): Constify.
3499 * guile/guile.c (guile_repl_command, guile_command): Constify.
3500 * printcmd.c (x_command, display_command, printf_command)
3501 (output_command, set_command, call_command, print_command)
3502 (eval_command): Constify.
3503 (non_const_set_command): Remove.
3504 (_initialize_printcmd): Update.
3505 * source.c (forward_search_command, reverse_search_command):
3507 * jit.c (jit_reader_load_command, jit_reader_unload_command):
3509 * infrun.c (handle_command): Constify.
3510 * memattr.c (mem_command): Constify.
3511 * stack.c (return_command, up_command, up_silently_command)
3512 (down_command, down_silently_command, frame_command)
3513 (backtrace_command, func_command, backtrace_command_1): Constify.
3514 (backtrace_command): Add non-const overload.
3515 * remote-sim.c (simulator_command): Constify.
3516 * exec.c (set_section_command): Constify.
3517 * tracepoint.c (tdump_command, trace_variable_command)
3518 (tstatus_command, tstop_command, tstart_command)
3519 (end_actions_pseudocommand, while_stepping_pseudocommand)
3520 (collect_pseudocommand, teval_pseudocommand, actions_command)
3521 (start_tracing, stop_tracing): Constify.
3522 * value.c (init_if_undefined_command): Constify.
3523 * tui/tui-stack.c (tui_update_command): Constify.
3524 * tui/tui-win.c (tui_refresh_all_command)
3525 (tui_set_tab_width_command, tui_set_win_height_command)
3526 (tui_set_focus_command, tui_scroll_forward_command)
3527 (tui_scroll_backward_command, tui_scroll_left_command)
3528 (tui_scroll_right_command, parse_scrolling_args, tui_set_focus)
3529 (tui_set_win_height): Constify.
3530 * tui/tui-layout.c (tui_layout_command): Constify.
3531 * procfs.c (proc_trace_syscalls, proc_trace_sysentry_cmd)
3532 (proc_trace_sysexit_cmd, proc_untrace_sysentry_cmd)
3533 (proc_untrace_sysexit_cmd): Constify.
3534 * remote.c (threadlist_test_cmd, threadinfo_test_cmd)
3535 (threadset_test_cmd, threadlist_update_test_cmd)
3536 (threadalive_test): Constify.
3537 * objc-lang.c (print_object_command): Constify.
3538 * command.h (add_com): Constify.
3539 * cli/cli-dump.c (restore_command): Constify.
3540 * cli/cli-cmds.c (pwd_command, echo_command, quit_command)
3541 (help_command, complete_command, shell_command, edit_command)
3542 (list_command, disassemble_command, make_command)
3543 (apropos_command, alias_command): Constify.
3544 * cli/cli-script.c (document_command, define_command)
3545 (while_command, if_command, validate_comname): Constify.
3546 * cli/cli-decode.c (struct cmd_list_element): Change type of
3548 * target.c (do_monitor_command, flash_erase_command): Constify.
3549 * regcache.c (reg_flush_command): Constify.
3550 * reverse.c (reverse_step, reverse_next, reverse_stepi)
3551 (reverse_nexti, reverse_continue, reverse_finish)
3552 (save_bookmark_command, goto_bookmark_command)
3553 (exec_reverse_once): Constify.
3554 * python/python.c (python_interactive_command, python_command):
3556 * typeprint.c (ptype_command, whatis_command, whatis_exp):
3558 * solib.c (sharedlibrary_command, no_shared_libraries): Constify.
3559 * gcore.c (gcore_command): Constify.
3561 2017-11-07 Tom Tromey <tom@tromey.com>
3563 * printcmd.c (x_command): Call set_repeat_arguments.
3564 * cli/cli-cmds.c (list_command): Call set_repeat_arguments.
3565 * top.c (repeat_arguments): New global.
3566 (set_repeat_arguments): New function.
3567 (execute_command): Handle repeat_arguments.
3568 (show_commands): Calls set_repeat_arguments.
3569 * command.h (set_repeat_arguments): Declare.
3571 2017-11-07 Tom Tromey <tom@tromey.com>
3573 * stack.c (backtrace_command): Use std::string.
3574 (backtrace_command_1): Make "count_exp" const.
3576 2017-11-07 Tom Tromey <tom@tromey.com>
3578 * source.c (directory_switch, mod_path, add_path): Constify.
3579 * defs.h (add_path, mod_path, directory_switch): Constify.
3580 * mi/mi-cmd-env.c (env_mod_path): Constify.
3582 2017-11-07 Tom Tromey <tom@tromey.com>
3584 * infcmd.c (strip_bg_char): Return gdb::unique_xmalloc_ptr.
3585 (run_command_1, continue_command, step_1, jump_command)
3586 (signal_command, until_command, advance_command, finish_command)
3587 (attach_command): Update.
3589 2017-11-07 Tom Tromey <tom@tromey.com>
3591 * command.h (set_cmd_cfunc): Don't declare.
3592 * cli/cli-decode.c (set_cmd_cfunc): Now static.
3594 2017-11-07 Tom Tromey <tom@tromey.com>
3596 * stack.c (select_frame_command): Constify.
3597 * cli/cli-decode.c (add_com_suppress_notification): Constify.
3598 * command.h (add_com_suppress_notification): Constify.
3600 2017-11-07 Tom Tromey <tom@tromey.com>
3602 * breakpoint.c (stop_command): Constify.
3603 * cli/cli-decode.c (struct cmd_list_element): Constify.
3604 * command.h (add_abbrev_prefix_cmd): Constify.
3606 2017-11-07 Pedro Alves <palves@redhat.com>
3608 * breakpoint.c (extract_bp_kind): New enum.
3609 (extract_bp_num, extract_bp_or_bp_range): New functions, partially
3610 factored out from ...
3611 (extract_bp_number_and_location): ... here.
3612 * cli/cli-utils.c (get_number_trailer): Handle '-$variable'.
3614 2017-11-07 Pedro Alves <palves@redhat.com>
3616 * breakpoint.c (extract_bp_number_and_location): Change return
3617 type to void. Throw error instead of warning.
3618 (enable_disable_command): Adjust.
3620 2017-11-07 Xavier Roirand <roirand@adacore.com>
3621 Pedro Alves <palves@redhat.com>
3623 * breakpoint.c (map_breakpoint_number_range): New, factored out
3625 (map_breakpoint_numbers): ... here.
3626 (find_location_by_number): Change parameters from string to
3627 breakpoint number and location.
3628 (extract_bp_number_and_location): New function.
3629 (enable_disable_bp_num_loc)
3630 (enable_disable_breakpoint_location_range)
3631 (enable_disable_command): New functions, factored out ...
3632 (enable_command, disable_command): ... these functions, and
3633 adjusted to support ranges.
3634 * NEWS: Document enable/disable breakpoint location range feature.
3636 2017-11-06 Luis Machado <luis.machado@linaro.org>
3638 * MAINTAINERS (Write After Approval): Update my e-mail address.
3640 2017-11-06 Pedro Alves <palves@redhat.com>
3642 * gnu-nat.c (gnu_terminal_init): Delete.
3643 (gnu_target): Don't install gnu_terminal_init.
3644 * inflow.c (child_terminal_init_with_pgrp): Delete, merged with ...
3645 (child_terminal_init): ... this function.
3647 2017-11-06 Pedro Alves <palves@redhat.com>
3649 * common/common.m4 (GDB_AC_COMMON): No longer check termio.h nor
3651 * config.in, configure: Regenerate.
3653 2017-11-06 Pedro Alves <palves@redhat.com>
3655 * event-top.c: Check SIGTSTP instead of STOP_SIGNAL thoughout.
3656 (async_init_signals): Adjust.
3657 (handle_stop_sig): Rename to ...
3658 (handle_sigtstp): ... this.
3659 (async_stop_sig): Rename to ...
3660 (async_sigtstp_handler): ... this, and delete STOP_SIGNAL !=
3662 * event-top.h: Move signal.h include to the top. Check SIGTSTP
3663 instead of STOP_SIGNAL thoughout.
3664 (handle_stop_sig): Rename to ...
3665 (handle_sigtstp): ... this.
3666 * top.c (command_line_input): Replace STOP_SIGNAL -> SIGTSTP.
3668 2017-11-06 Pedro Alves <palves@redhat.com>
3670 * inflow.c (child_terminal_inferior, child_terminal_ours_1): No
3671 longer set flags twice in row.
3673 2017-11-06 Pedro Alves <palves@redhat.com>
3675 * Makefile.in (SER_HARDWIRE): Update comment.
3676 (HFILES_NO_SRCDIR): Remove gdb_termios.h.
3677 * common/gdb_termios.h: Delete file.
3678 * common/job-control.c: Include termios.h and unistd.h instead of
3680 (gdb_setpgid): Remove HAVE_TERMIOS || TIOCGPGRP preprocessor
3682 (have_job_control): Check HAVE_TERMIOS_H instead of HAVE_TERMIOS.
3684 * configure.ac: No longer check for termio.h and sgtty.h.
3685 * configure: Regenerate.
3686 * inflow.c: Include termios.h instead of gdb_termios.h. Replace
3687 PROCESS_GROUP_TYPE checks with HAVE_TERMIOS_H checks throughout.
3688 Replace PROCESS_GROUP_TYPE references with pid_t references
3690 (gdb_getpgrp): Delete.
3691 (set_initial_gdb_ttystate): Use tcgetpgrp instead of gdb_getpgrp.
3692 (child_terminal_inferior): Remove comment. Remove sgtty code.
3693 (child_terminal_ours_1): Use tcgetpgrp directly instead of
3694 gdb_getpgrp. Use serial_set_tty_state instead aof
3695 serial_noflush_set_tty_state. Remove sgtty code.
3696 * inflow.h: Include unistd.h instead of gdb_termios.h. Replace
3697 PROCESS_GROUP_TYPE check with HAVE_TERMIOS_H check.
3698 (inferior_process_group): Now returns pid_t.
3699 * ser-base.c (ser_base_noflush_set_tty_state): Delete.
3700 * ser-base.h (ser_base_noflush_set_tty_state): Delete.
3701 * ser-event.c (serial_event_ops): Update.
3702 * ser-go32.c (dos_noflush_set_tty_state): Delete.
3704 * ser-mingw.c (hardwire_ops, tty_ops, pipe_ops, tcp_ops): Update.
3705 * ser-pipe.c (pipe_ops): Update.
3706 * ser-tcp.c (tcp_ops): Update.
3707 * ser-unix.c: Include termios.h instead of gdb_termios.h. Remove
3708 HAVE_TERMIOS checks.
3709 [HAVE_TERMIO] (struct hardwire_ttystate): Delete.
3710 [HAVE_SGTTY] (struct hardwire_ttystate): Delete.
3711 (get_tty_state, set_tty_state): Drop termio and sgtty code, and
3713 (hardwire_noflush_set_tty_state): Delete.
3714 (hardwire_print_tty_state, hardwire_drain_output)
3715 (hardwire_flush_output, hardwire_flush_input)
3716 (hardwire_send_break, hardwire_raw, hardwire_setbaudrate)
3717 (hardwire_setstopbits, hardwire_setparity): Drop termio and sgtty
3718 code, and assume termios.
3719 (hardwire_ops): Update.
3720 (_initialize_ser_hardwire): Remove HAVE_TERMIOS check.
3721 * serial.c (serial_noflush_set_tty_state): Delete.
3722 * serial.h (serial_noflush_set_tty_state): Delete.
3723 (serial_ops::noflush_set_tty_state): Delete.
3725 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3727 * Makefile.in (SFILES): Remove doublest.c and dfp.c.
3728 (HFILES_NO_SRCDIR): Remove doublest.h and dfp.h.
3729 (COMMON_OBS): Remove doublest.o and dfp.o.
3730 Do not build target-float.c (instead of doublest.c)
3731 with -Wformat-nonliteral.
3733 * doublest.c: Remove file.
3734 * doublest.h: Remove file.
3735 * dfp.c: Remove file.
3736 * dfp.h: Remove file.
3738 * target-float.c: Do not include "doublest.h" and "dfp.h".
3739 (DOUBLEST): Move here from doublest.h.
3740 (enum float_kind): Likewise.
3741 (FLOATFORMAT_CHAR_BIT): Likewise.
3742 (FLOATFORMAT_LARGEST_BYTES): Likewise.
3743 (floatformat_totalsize_bytes): Move here from doublest.c. Make static.
3744 (floatformat_precision): Likewise.
3745 (floatformat_normalize_byteorder, get_field, put_field): Likewise.
3746 (floatformat_is_negative, floatformat_classify, floatformat_mantissa):
3748 (host_float_format, host_double_format, host_long_double_format):
3750 (floatformat_to_string, floatformat_from_string): Likewise.
3751 (floatformat_to_doublest): Likewise. Also, inline the original
3752 convert_floatformat_to_doublest.
3753 (floatformat_from_doublest): Likewise. Also, inline the original
3754 convert_floatformat_from_doublest.
3756 Include "dpd/decimal128.h", "dpd/decimal64.h", and "dpd/decimal32.h".
3757 (MAX_DECIMAL_STRING): Move here from dfp.c.
3758 (match_endianness): Likewise.
3759 (set_decnumber_context, decimal_check_errors): Likewise.
3760 (decimal_from_number, decimal_to_number): Likewise.
3761 (decimal_to_string, decimal_from_string): Likewise. Make static.
3762 (decimal_from_longest, decimal_from_ulongest): Likewise.
3763 (decimal_to_longest): Likewise.
3764 (decimal_binop, decimal_is_zero, decimal_compare): Likewise.
3765 (decimal_convert): Likewise.
3767 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3769 * doublest.c: Do not include "gdbtypes.h".
3770 (extract_typed_floating): Remove.
3771 (store_typed_floating): Remove.
3772 (convert_typed_floating): Remove.
3773 * doublest.h (struct type): Remove.
3774 (DOUBLEST_PRINT_FORMAT): Remove.
3775 (DOUBLEST_SCAN_FORMAT): Remove.
3776 (extract_typed_floating): Remove.
3777 (store_typed_floating): Remove.
3778 (convert_typed_floating): Remove.
3780 * dfp.c (decimal_from_doublest): Remove.
3781 (decimal_to_doublest): Remove.
3782 * dfp.h: Do not include "doublest.h".
3783 (decimal_from_doublest): Remove.
3784 (decimal_to_doublest): Remove.
3786 * value.c: Do not include "doublest.h" and "dfp.h".
3787 (value_as_double): Remove.
3788 (unpack_double): Remove.
3789 (value_from_double): Remove.
3790 (value_from_decfloat): Remove.
3791 * value.h: Do not include "doublest.h".
3792 (value_as_double): Remove.
3793 (unpack_double): Remove.
3794 (value_from_double): Remove.
3795 (value_from_decfloat): Remove.
3797 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3799 * i386-tdep.c: Include "target-float.h". Do not include "doublest.h".
3800 (i386_extract_return_value): Use target_float_convert.
3801 (i386_store_return_value): Likewise.
3802 * i387-tdep.c (i387_register_to_value): Use target_float_convert.
3803 (i387_value_to_register): Likewise.
3804 * ia64-tdep.c: Include "target-float.h". Do not include "doublest.h".
3805 (ia64_register_to_value): Use target_float_convert.
3806 (ia64_value_to_register): Likewise.
3807 (ia64_extract_return_value): Likewise.
3808 (ia64_store_return_value): Likewise.
3809 (ia64_push_dummy_call): Likewise.
3810 * m68k-tdep.c: Include "target-float.h".
3811 (m68k_register_to_value): Use target_float_convert.
3812 (m68k_value_to_register): Likewise.
3813 (m68k_svr4_extract_return_value): Likewise.
3814 (m68k_svr4_store_return_value): Likewise.
3815 * ppc-sysv-tdep.c: Include "target-float.h".
3816 (ppc_sysv_abi_push_dummy_call): Use target_float_convert.
3817 (do_ppc_sysv_return_value): Likewise.
3818 (ppc64_sysv_abi_push_freg): Likewise.
3819 (ppc64_sysv_abi_return_value_base): Likewise.
3820 * rs6000-aix-tdep.c: Include "target-float.h".
3821 (rs6000_push_dummy_call): Use target_float_convert.
3822 (rs6000_return_value): Likewise.
3823 * rs6000-lynx178-tdep.c: Include "target-float.h".
3824 (rs6000_lynx178_push_dummy_call): Use target_float_convert.
3825 (rs6000_lynx178_return_value): Likewise.
3826 * rs6000-tdep.c: Include "target-float.h". Do not include "doublest.h".
3827 (rs6000_register_to_value): Use target_float_convert.
3828 (rs6000_value_to_register): Likewise.
3829 * arm-tdep.c: Include "target-float.h". Do not include "doublest.h".
3830 (arm_extract_return_value): Use target_float_convert.
3831 (arm_store_return_value): Likewise.
3832 * sh-tdep.c: Include "target-float.h". Do not include "doublest.h".
3833 (sh_register_convert_to_virtual): Use target_float_convert.
3834 (sh_register_convert_to_raw): Likewise.
3835 * sh64-tdep.c: Include "target-float.h".
3836 (sh64_extract_return_value): Use target_float_convert.
3837 (sh64_register_convert_to_virtual): Likewise.
3838 (sh64_register_convert_to_raw): Likewise. Fix argument types.
3840 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3842 * target-float.c (floatformat_to_host_double): New function.
3843 (floatformat_from_host_double): Likewise.
3844 (target_float_to_host_double): Likewise.
3845 (target_float_from_host_double): Likewise.
3846 * target-float.h (target_float_to_host_double): Add prototype.
3847 (target_float_from_host_double): Likewise.
3849 * guile/scm-value.c: Include "target-float.h".
3850 (gdbscm_value_to_real): Use target_float_to_host_double.
3851 Handle integer source values via value_as_long.
3852 * guile/scm-math.c: Include "target-float.h". Do not include
3853 "doublest.h", "dfp.h", and "expression.h".
3854 (vlscm_convert_typed_number): Use target_float_from_host_double.
3855 (vlscm_convert_number): Likewise.
3857 * python/py-value.c (valpy_float): Use target_float_to_host_double.
3858 (convert_value_from_python): Use target_float_from_host_double.
3860 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3862 * ada-lang.c (cast_to_fixed): Reimplement in target arithmetic.
3863 (cast_from_fixed): Likewise.
3864 (ada_scaling_type): New function.
3865 (ada_delta): Return value instead of DOUBLEST. Perform target
3866 arithmetic instead of host arithmetic.
3867 (scaling_factor): Rename to ...
3868 (ada_scaling_factor) ... this. Make non-static. Return value instead
3869 of DOUBLEST. Perform target arithmetic instead of host arithmetic.
3870 (ada_fixed_to_float): Remove.
3871 (ada_float_to_fixed): Remove.
3872 * ada-lang.h (ada_fixed_to_float): Remove.
3873 (ada_float_to_fixed): Remove.
3874 (ada_delta): Return value instead of DOUBLEST.
3875 (ada_scaling_factor): Add prototype.
3877 * ada-typeprint.c: Include "target-float.h".
3878 (print_fixed_point_type): Perform target arithmetic instead of
3880 * ada-valprint.c: Include "target-float.h".
3881 (ada_val_print_num): Perform target arithmetic instead of
3882 host arithmetic for fixed-point types.
3884 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3886 * target-float.c: Include <math.h>.
3887 (floatformat_binop): New function.
3888 (floatformat_compare): Likewise.
3889 (target_float_binop): Likewise.
3890 (target_float_compare): Likewise.
3891 * target-float.h: Include "expression.h".
3892 (target_float_binop): Add prototype.
3893 (target_float_compare): Likewise.
3895 * valarith.c: Do not include "doublest.h" and "dfp.h".
3896 Include "common/byte-vector.h".
3897 (value_args_as_decimal): Remove, replace by ...
3898 (value_args_as_target_float): ... this function. Handle both
3899 binary and decimal target floating-point formats.
3900 (scalar_binop): Handle both binary and decimal FP using
3901 value_args_as_target_float and target_float_binop.
3902 (value_equal): Handle both binary and decimal FP using
3903 value_args_as_target_float and target_float_compare.
3904 (value_less): Likewise.
3905 (value_pos): Handle all scalar types as simple copy.
3906 (value_neg): Handle all scalar types via BINOP_SUB from 0.
3907 * dfp.c (decimal_binop): Throw error instead of internal_error
3908 when called with an unsupported operation code.
3910 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3912 * target-float.c (target_float_to_string): New function.
3913 (target_float_from_string): New function.
3914 * target-float.h (target_float_to_string): Add prototype.
3915 (target_float_from_string): Add prototype.
3917 * valprint.c: Include "target-float.h". Do not include
3918 "doublest.h" and "dfp.h".
3919 (print_floating): Use target_float_to_string.
3920 * printcmd.c: Include "target-float.h". Do not include "dfp.h".
3921 (printf_floating): Use target_float_to_string.
3922 * i387-tdep.c: Include "target-float.h". Do not include "doublest.h".
3923 (print_i387_value): Use target_float_to_string.
3924 * mips-tdep.c: Include "target-float.h".
3925 (mips_print_fp_register): Use target_float_to_string.
3926 * sh64-tdep.c: Include "target-float.h".
3927 (sh64_do_fp_register): Use target_float_to_string.
3929 * parse.c: Include "target-float.h". Do not include
3930 "doublest.h" and "dfp.h".
3931 (parse_float): Use target_float_from_string.
3932 * stabsread.c: Include "target-float.h". Do not include "doublest.h".
3933 (define_symbol): Use target_float_from_string.
3934 * gdbarch-selftests.c: Include "target-float.h".
3935 (register_to_value_test): Use target_float_from_string.
3937 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3939 * Makefile.c (SFILES): Add target-float.c.
3940 (HFILES_NO_SRCDIR): Add target-float.h.
3941 (COMMON_OBS): Add target-float.o.
3942 * target-float.h: New file.
3943 * target-float.c: New file.
3945 * doublest.c (floatformat_classify): Fix detection of float_zero.
3947 * gdbtypes.c (is_floating_type): New function.
3948 * gdbtypes.h (is_floating_type): Add prototype.
3950 * value.c: Do not include "floatformat.h".
3951 (unpack_double): Use target_float_is_valid.
3952 (is_floating_value): New function.
3953 * value.h (is_floating_value): Add prototype-
3955 * valarith.c: Include "target-float.h".
3956 (value_logical_not): Use target_float_is_zero.
3958 * python/py-value.c: Include "target-float.h".
3959 (valpy_nonzero): Use target_float_is_zero.
3961 2017-11-04 Tom Tromey <tom@tromey.com>
3963 * h8300-tdep.c (h8300_push_dummy_call): Use std::vector.
3965 2017-11-04 Tom Tromey <tom@tromey.com>
3967 * breakpoint.c (set_momentary_breakpoint): Return
3969 (until_break_command): Update.
3970 (new_until_break_fsm): Change argument types to
3972 (set_momentary_breakpoint_at_pc): Return breakpoint_up.
3973 (do_delete_breakpoint_cleanup, make_cleanup_delete_breakpoint):
3975 * infcmd.c (finish_forward): Update.
3976 * breakpoint.h (set_momentary_breakpoint)
3977 (set_momentary_breakpoint_at_pc): Return breakpoint_up.
3978 (make_cleanup_delete_breakpoint): Remove.
3979 (struct breakpoint_deleter): New.
3980 (breakpoint_up): New typedef.
3981 * infrun.c (insert_step_resume_breakpoint_at_sal_1): Update.
3982 (insert_exception_resume_breakpoint): Update.
3983 (insert_exception_resume_from_probe): Update.
3984 (insert_longjmp_resume_breakpoint): Update.
3985 * arm-linux-tdep.c (arm_linux_copy_svc): Update.
3986 * elfread.c (elf_gnu_ifunc_resolver_stop): Update.
3987 * infcall.c (call_function_by_hand_dummy): Update
3989 2017-11-04 Tom Tromey <tom@tromey.com>
3991 * c-typeprint.c (c_type_print_base): Use gdb::unique_xmalloc_ptr.
3993 2017-11-04 Tom Tromey <tom@tromey.com>
3995 * linux-tdep.c (linux_core_info_proc_mappings): Use
3997 (linux_get_siginfo_data): Return gdb::byte_vector. Remove
3999 (linux_corefile_thread): Update.
4000 (linux_make_corefile_notes): Remove unused variable.
4002 2017-11-04 Tom Tromey <tom@tromey.com>
4004 * ppc-linux-tdep.c (ppc_linux_get_syscall_number): Use
4007 2017-11-04 Tom Tromey <tom@tromey.com>
4009 * objfiles.c (do_free_objfile_cleanup): Remove.
4010 * compile/compile-object-load.c (compile_object_load): Update.
4011 * objfiles.h (make_cleanup_free_objfile): Remove.
4013 2017-11-04 Tom Tromey <tom@tromey.com>
4015 * sparc64-tdep.c (do_examine): Use gdb::def_vector.
4016 (adi_read_versions): Change "tags" to "gdb_byte *".
4017 (adi_print_versions): Likewise.
4019 2017-11-04 Tom Tromey <tom@tromey.com>
4022 (scoped_rbreak_breakpoints::scoped_rbreak_breakpoints): Rename
4023 from start_rbreak_breakpoints.
4024 (scoped_rbreak_breakpoints): Rename from end_rbreak_breakpoints.
4025 * breakpoint.h (class scoped_rbreak_breakpoints): New.
4026 (start_rbreak_breakpoints, end_rbreak_breakpoints): Remove.
4027 * symtab.c (do_end_rbreak_breakpoints): Remove.
4028 (rbreak_command): Use scoped_rbreak_breakpoints, std::string.
4030 2017-11-04 Tom Tromey <tom@tromey.com>
4032 * cp-namespace.c (reset_directive_searched): Remove.
4033 (cp_lookup_symbol_via_imports): Use scoped_restore.
4034 * cp-support.c (reset_directive_searched): Remove.
4035 (make_symbol_overload_list_using): Use scoped_restore.
4036 * d-namespace.c (d_lookup_symbol_imports): Use scoped_restore.
4037 (reset_directive_searched): Remove.
4039 2017-11-04 Tom Tromey <tom@tromey.com>
4041 * symfile.c (find_separate_debug_file_by_debuglink): Use
4044 2017-11-04 Tom Tromey <tom@tromey.com>
4046 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
4048 (compute_stack_depth): Likewise.
4049 (do_compile_dwarf_expr_to_c): Use std::vector.
4051 2017-11-04 Tom Tromey <tom@tromey.com>
4053 * compile/compile-object-load.c (link_callbacks_einfo): Use
4056 2017-11-04 Tom Tromey <tom@tromey.com>
4058 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
4059 Use scoped_free_pendings.
4060 * dbxread.c (dbx_symfile_read, dbx_psymtab_to_symtab_1): Use
4061 scoped_free_pendings.
4062 * xcoffread.c (xcoff_psymtab_to_symtab_1): Use scoped_free_pendings.
4063 (xcoff_initial_scan): Likewise.
4064 * buildsym.c (reset_symtab_globals): Update comment.
4065 (scoped_free_pendings): Rename from really_free_pendings.
4066 (prepare_for_building): Update comment.
4067 (buildsym_init): Likewise.
4068 * buildsym.h (class scoped_free_pendings): New class.
4069 (really_free_pendings): Don't declare.
4071 2017-11-03 Ulrich Weigand <uweigand@de.ibm.com>
4073 * doublest.c (convert_doublest_to_floatformat): Fix uninitialized
4074 output when converting a zero value to a special byteorder format.
4076 2017-11-02 Yao Qi <yao.qi@linaro.org>
4078 * frame.c (do_frame_register_read): Remove aspace.
4079 * jit.c (jit_frame_sniffer): Likwise.
4080 * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
4081 * regcache.c (regcache::regcache): Pass nullptr.
4082 (regcache_print): Caller updated.
4083 * regcache.h (regcache::regcache): Remove one constructor
4086 2017-11-02 Yao Qi <yao.qi@linaro.org>
4088 * regcache.h (regcache) <m_readonly_p>: Change it to const bool.
4090 2017-11-02 Yao Qi <yao.qi@linaro.org>
4092 * breakpoint.c (insert_single_step_breakpoints): Update.
4093 * frame.c (struct frame_info) <aspace>: Add const.
4094 (frame_save_as_regcache): Add const.
4095 (get_frame_address_space): Return const address_space *.
4096 * frame.h (get_frame_address_space): Update declaration.
4097 * infrun.c (struct step_over_info) <aspace>: Add const.
4098 (set_step_over_info): Make aspace const.
4099 (displaced_step_prepare_throw): Change variable const.
4101 (proceed): Likewise.
4102 (adjust_pc_after_break): Likewise.
4103 (save_waitstatus): Likewise.
4104 (handle_signal_stop): Likewise.
4105 (keep_going_pass_signal): Likewise.
4106 * jit.c (jit_frame_sniffer): Add const.
4107 * mips-tdep.c (mips_single_step_through_delay): Likewise.
4108 * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
4109 * record-full.c (record_full_wait_1): Likewise.
4110 * regcache.c (regcache::regcache): Change parameter to const.
4111 * regcache.h (regcache::regcache): Likewise.
4112 (regcache::aspace): Return const address_space *.
4113 (regcache) <m_aspace>: Add const.
4115 2017-11-02 Yao Qi <yao.qi@linaro.org>
4117 * darwin-nat.c (cancel_breakpoint): Use regcache->aspace ().
4118 * frame.c (create_sentinel_frame): Likewise.
4119 * infrun.c (displaced_step_prepare_throw): Likewise.
4121 (thread_still_needs_step_over_bp): Likewise.
4122 (proceed): Likewise.
4123 (do_target_wait): Likewise.
4124 (adjust_pc_after_break): Likewise.
4125 (handle_syscall_event): Likewise.
4126 (save_waitstatus): Likewise.
4127 (handle_inferior_event_1): Likewise.
4128 (handle_signal_stop): Likewise.
4129 (keep_going_pass_signal): Likewise.
4130 * linux-nat.c (status_callback): Likewise.
4131 (save_stop_reason): Likewise.
4132 (resume_stopped_resumed_lwps): Likewise.
4133 * record-full.c (record_full_exec_insn): Likewise.
4134 (record_full_wait_1): Likewise.
4135 * regcache.c (get_regcache_aspace): Remove.
4136 * regcache.h (get_regcache_aspace): Remove.
4138 2017-11-02 Yao Qi <yao.qi@linaro.org>
4140 * regcache.c (struct regcache_descr) <nr_raw_registers>: Remove.
4141 (init_regcache_descr): Use gdbarch_num_regs.
4142 (regcache::regcache): Likewise.
4143 (regcache::get_register_status): Likewise.
4144 (regcache::assert_raw_regnum): Likewise.
4145 (regcache::cooked_read): Likewise.
4146 (regcache::cooked_read_value): Likewise.
4147 (regcache::cooked_write): Likewise.
4148 (regcache::dump): Likewise.
4149 (regcache::num_raw_registers): New method.
4150 * regcache.h (class regcache) <num_raw_registers>: New.
4152 2017-11-02 Yao Qi <yao.qi@linaro.org>
4154 * regcache.c (regcache::assert_regnum): New method.
4155 (regcache::invalidate): Call assert_regnum.
4156 (regcache::raw_update): Likewise.
4157 (regcache::raw_write): Likewise.
4158 (regcache::raw_read_part): Likewise.
4159 (regcache::raw_write_part): Likewise.
4160 (regcache::raw_supply): Likewise.
4161 (regcache::raw_supply_integer): Likewise.
4162 (regcache::raw_supply_zeroed): Likewise.
4163 (regcache::raw_collect): Likewise.
4164 (regcache::raw_collect_integer): Likewise.
4165 * regcache.h (regcache::assert_regnum): Declare.
4167 2017-11-02 Yao Qi <yao.qi@linaro.org>
4169 * regcache.c (regcache::dump): Remove code.
4171 2017-11-02 Yao Qi <yao.qi@linaro.org>
4173 * regcache.c (struct regcache_descr) <sizeof_raw_register_status>:
4175 <sizeof_cooked_register_status>: Remove.
4176 (init_regcache_descr): Update.
4177 (regcache::regcache): Use nr_cooked_registers and nr_raw_registers.
4178 (regcache::save): Likewise.
4179 (regcache::dump): Likewise.
4181 2017-11-01 James Bowman <james.bowman@ftdichip.com>
4183 * ft32-tdep.c (ft32_fetch_instruction): New function.
4184 (ft32_analyze_prologue): Use ft32_fetch_instruction().
4186 2017-10-31 Simon Marchi <simon.marchi@polymtl.ca>
4188 * cli/cli-script.c (execute_control_command): Rename to ...
4189 (execute_control_command_1): ... this.
4190 (execute_control_command): New function.
4192 2017-10-31 Simon Marchi <simon.marchi@ericsson.com>
4194 * tracepoint.c (tfind_command): Remove const_cast.
4196 2017-10-30 Mike Gulick <mgulick@mathworks.com>
4198 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to gdb.h.
4200 2017-10-30 Simon Marchi <simon.marchi@ericsson.com>
4202 * common/common-utils.h (in_inclusive_range): New function.
4203 * arm-tdep.c (arm_record_extension_space): Use
4205 (thumb_record_ld_st_reg_offset): Use in_inclusive_range.
4206 * cris-tdep.c (cris_spec_reg_applicable): Use
4209 2017-10-30 Pedro Alves <palves@redhat.com>
4210 Simon Marchi <simon.marchi@ericsson.com>
4212 * remote.c (remote_set_syscall_catchpoint): Build a std::string
4213 instead of a gdb::unique_xmalloc_ptr, using string_appendf.
4215 2017-10-30 Pedro Alves <palves@redhat.com>
4217 * common/common-utils.c (string_appendf, string_vappendf): New
4219 * common/common-utils.h (string_appendf, string_vappendf): New
4221 * unittests/common-utils-selftests.c (string_appendf_func)
4222 (test_appendf_func, string_vappendf_wrapper, string_appendf_tests)
4223 (string_vappendf_tests): New functions.
4224 (_initialize_common_utils_selftests): Register "string_appendf" and
4225 "string_vappendf tests".
4227 2017-10-30 Pedro Alves <palves@redhat.com>
4229 * unittests/common-utils-selftests.c (format_func): New typedef.
4230 (string_printf_tests, string_vprintf_tests): Tests factored out
4232 (test_format_func): ... this new function.
4233 (string_printf_tests, string_vprintf_tests): Reimplement on top of
4236 2017-10-29 Simon Marchi <simon.marchi@ericsson.com>
4238 * darwin-nat.c: Remove include of gdb.h.
4240 2017-10-29 Simon Marchi <simon.marchi@ericsson.com>
4242 * xtensa-xtregs.c: Fix formatting issues.
4244 2017-10-29 Simon Marchi <simon.marchi@ericsson.com>
4246 * xtensa-xtregs.c (xtensa_regtable_t) <name>: Constify.
4248 2017-10-28 Maksim Dzabraev <dzabraew@gmail.com>
4251 * python/py-infthread.c (thpy_get_inferior): Increment reference
4252 of inferior before returning it.
4254 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
4256 * unittests/common-utils-selftests.c (format): Add
4259 2017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
4261 * xml-syscall.c (struct syscall_desc): Add constructor.
4262 <name>: Change type to std::string.
4263 (syscall_desc_up): New typedef.
4264 (syscall_desc_p): Remove typeder.
4265 (DEF_VEC_P(syscall_desc_p)): Remove.
4266 (struct syscall_group_desc): Add constructor.
4267 <name>: Change type to std::string.
4268 <syscalls>: Change type to std::vector.
4269 (syscall_group_desc_up): New typedef.
4270 (syscall_group_desc_p): Remove typedef.
4271 (DEF_VEC_P(syscall_group_desc_p)): Remove.
4272 (struct syscalls_info) <syscalls>: Change type to std::vector of
4275 <my_gdb_datadir>: Change type to std::string.
4276 (syscalls_info_up): New typedef.
4277 (allocate_syscalls_info): Remove.
4278 (syscalls_info_free_syscalls_desc): Remove.
4279 (syscalls_info_free_syscall_group_desc): Remove.
4280 (free_syscalls_info): Remove.
4281 (make_cleanup_free_syscalls_info): Remove.
4282 (syscall_group_create_syscall_group_desc): Adjust.
4283 (syscall_group_add_syscall): Adjust.
4284 (syscall_create_syscall_desc): Adjust.
4285 (syscall_parse_xml): Adjust, use unique_ptr instead of cleanup.
4286 (init_syscalls_info): Adjust.
4287 (syscall_group_get_group_by_name): Adjust.
4288 (xml_get_syscall_number): Adjust.
4289 (xml_get_syscall_name): Adjust.
4290 (xml_list_of_syscalls): Adjust.
4291 (xml_list_syscalls_by_group): Adjust.
4292 (xml_list_of_groups): Adjust.
4294 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
4296 * probe.h: Don't include gdb_vecs.h.
4297 (DEF_VEC_P (probe_p)): Remove.
4298 (find_probes_in_objfile): Return an std::vector.
4299 * probe.c (find_probes_in_objfile): Likewise.
4300 * breakpoint.c (breakpoint_objfile_data)
4301 <longjmp_probes>: Change type to std::vector.
4302 <exception_probes>: Likewise.
4303 (free_breakpoint_probes): Don't manually free vectors.
4304 (create_longjmp_master_breakpoint): Adjust.
4305 (create_exception_master_breakpoint): Adjust.
4306 * solib-svr4.c (svr4_create_probe_breakpoints): Change
4307 parameter type, adjust.
4308 (svr4_create_solib_event_breakpoints): Adjust.
4310 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
4312 * breakpoint.c (breakpoint_objfile_data): Initialize fields.
4313 (get_breakpoint_objfile_data): Allocate breakpoint_objfile_data
4315 (free_breakpoint_probes): Rename to ...
4316 (free_breakpoint_objfile_data): ... this, and call delete on
4319 2017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
4321 * auto-load.c: Don't include gdb_vecs.h, include algorithm.
4322 (loaded_script_ptr): Remove typedef.
4323 (DEF_VEC_P (loaded_script_ptr)): Remove.
4324 (struct collect_matching_scripts_data): Add constructor.
4325 <scripts_p>: Change type to (pointer to) std::vector.
4326 (collect_matching_scripts_data): Adjust.
4327 (sort_scripts_by_name): Make suitable for std::sort.
4328 (print_scripts): Don't sort vector, adjust to std::vector.
4329 (auto_load_info_scripts): Sort vectors, adjust to std::vector.
4331 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
4333 * symfile.c (filename_language): Make struct, not typedef. Add
4335 <ext>: Change type to std::string.
4336 (DEF_VEC_O (filename_language)): Remove.
4337 (filename_language_table): Change type to std::vector.
4338 (add_filename_language): Adjust.
4339 (set_ext_lang_command): Adjust.
4340 (info_ext_lang_command): Adjust.
4341 (deduce_language_from_filename): Adjust.
4342 (class scoped_restore_filename_language_table): Remove.
4343 (test_filename_language): Use scoped_restore.
4344 (test_set_ext_lang_command): Use scoped_restore, adjust to
4347 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
4349 * symfile.c: Include selftest.h.
4350 (class scoped_restore_filename_language_table): New.
4351 (test_filename_language): New test.
4352 (test_set_ext_lang_command): New test.
4353 (_initialize_symfile): Register tests.
4355 2017-10-27 Keith Seitz <keiths@redhat.com>
4357 * breakpoint.c (print_breakpoint_location): Use the symbol saved
4358 in the bp_location, falling back to find_pc_sect_function when
4360 (add_location_to_breakpoint): Save sal->symbol.
4361 * breakpoint.h (struct bp_location) <symbol>: New field.
4362 * symtab.c (find_function_start_sal): Save the symbol into the SaL.
4363 * symtab.h (struct symtab_and_line) <symbol>: New field.
4365 2017-10-26 Patrick Frants <osscontribute@gmail.com>
4368 * cp-valprint.c (cp_print_value_fields): Use obstack_blank_fast
4371 2017-10-26 Pedro Alves <palves@redhat.com>
4373 * remote.c (remote_async_terminal_ours_p): Delete.
4374 (remote_open_1, remote_terminal_inferior, remote_terminal_ours):
4375 Remove references to 'remote_async_terminal_ours_p'.
4377 2017-10-26 Yao Qi <yao.qi@linaro.org>
4379 * breakpoint.h (regular_breakpoint_inserted_here_p): Remove.
4381 2017-10-26 Yao Qi <yao.qi@linaro.org>
4383 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Make
4385 * break-catch-syscall.c (breakpoint_hit_catch_syscall):
4387 * breakpoint.c (bpstat_check_location): Remove cast.
4388 (breakpoint_hit_catch_fork): Make aspce const.
4389 (breakpoint_hit_catch_solib): Likewise.
4390 (breakpoint_hit_catch_exec): Likewise.
4391 (breakpoint_hit_ranged_breakpoint): Likewise.
4392 (breakpoint_hit_watchpoint): Likewise.
4393 (base_breakpoint_breakpoint_hit): Likewise.
4394 (bkpt_breakpoint_hit): Likewise.
4395 (dprintf_breakpoint_hit): Likewise.
4396 (tracepoint_breakpoint_hit): Likewise.
4397 * breakpoint.h (breakpoint_ops) <breakpoint_hit>: Likewise.
4399 2017-10-26 Yao Qi <yao.qi@linaro.org>
4401 * breakpoint.c (breakpoint_location_address_match): Change
4402 "struct address_space *" to "const address_space".
4403 (breakpoint_location_address_range_overlap): Likewise.
4404 (breakpoint_here_p): Likewise.
4405 (breakpoint_in_range_p): Likewise.
4406 (moribund_breakpoint_here_p): Likewise.
4407 (bp_location_inserted_here_p): Likewise.
4408 (software_breakpoint_inserted_here_p): Likewise.
4409 (hardware_breakpoint_inserted_here_p): Likewise.
4410 (hardware_watchpoint_inserted_in_range): Likewise.
4411 (bpstat_check_location): Likewise.
4412 (bpstat_stop_status): Likewise.
4413 (breakpoint_address_match): Likewise.
4414 (breakpoint_address_match_range): Likewise.
4415 (breakpoint_location_address_match): Likewise.
4416 (breakpoint_location_address_range_overlap): Likewise.
4417 (insert_single_step_breakpoint): Likewise.
4418 (breakpoint_has_location_inserted_here): Likewise.
4419 (single_step_breakpoint_inserted_here_p): Likewise.
4420 (pc_at_non_inline_function): Likewise.
4421 * breakpoint.h (bpstat_stop_status): Update declaration.
4422 (breakpoint_here_p): Likewise.
4423 (breakpoint_in_range_p): Likewise.
4424 (moribund_breakpoint_here_p): Likewise.
4425 (breakpoint_inserted_here_p): Likewise.
4426 (software_breakpoint_inserted_here_p): Likewise.
4427 (hardware_breakpoint_inserted_here_p): Likewise.
4428 (breakpoint_has_location_inserted_here): Likewise.
4429 (single_step_breakpoint_inserted_here_p): Likewise.
4430 (hardware_watchpoint_inserted_in_range): Likewise.
4431 (breakpoint_address_match): Likewise.
4432 (insert_single_step_breakpoint): Likewise.
4433 (pc_at_non_inline_function): Likewise.
4434 * gdbthread.h (thread_has_single_step_breakpoint_here): Likewise.
4435 * record.c (record_check_stopped_by_breakpoint): Likewise.
4436 * record.h (record_check_stopped_by_breakpoint): Likewise.
4437 * thread.c (thread_has_single_step_breakpoint_here): Likewise.
4439 2017-10-25 Yao Qi <yao.qi@linaro.org>
4441 * aarch32-linux-nat.c (aarch32_gp_regcache_supply): Use
4442 regcache->arch () instead get_regcache_arch.
4443 * aarch64-fbsd-nat.c (aarch64_fbsd_fetch_inferior_registers):
4445 (aarch64_fbsd_store_inferior_registers): Likewise.
4446 * aarch64-linux-nat.c (fetch_gregs_from_thread): Likewise.
4447 (store_gregs_to_thread): Likewise.
4448 (fetch_fpregs_from_thread): Likewise.
4449 (store_fpregs_to_thread): Likewise.
4450 * aarch64-tdep.c (aarch64_extract_return_value): Likewise.
4451 (aarch64_store_return_value): Likewise.
4452 (aarch64_software_single_step): Likewise.
4453 * aix-thread.c (aix_thread_wait): Likewise.
4454 (supply_reg32): Likewise.
4455 (supply_sprs64): Likewise.
4456 (supply_sprs32): Likewise.
4457 (fill_gprs64): Likewise.
4458 (fill_gprs32): Likewise.
4459 (fill_sprs64): Likewise.
4460 (fill_sprs32): Likewise.
4461 (store_regs_user_thread): Likewise.
4462 (store_regs_kernel_thread): Likewise.
4463 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
4464 (alphabsd_store_inferior_registers): Likewise.
4465 * alpha-tdep.c (alpha_extract_return_value): Likewise.
4466 (alpha_store_return_value): Likewise.
4467 (alpha_deal_with_atomic_sequence): Likewise.
4468 (alpha_next_pc): Likewise.
4469 (alpha_software_single_step): Likewise.
4470 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
4471 (amd64bsd_store_inferior_registers): Likewise.
4472 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
4474 (amd64_linux_store_inferior_registers): Likewise.
4475 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
4476 (amd64_collect_native_gregset): Likewise.
4477 * amd64-obsd-tdep.c (amd64obsd_supply_uthread): Likewise.
4478 (amd64obsd_collect_uthread): Likewise.
4479 * amd64-tdep.c (amd64_supply_fpregset): Likewise.
4480 (amd64_collect_fpregset): Likewise.
4481 (amd64_supply_fxsave): Likewise.
4482 (amd64_supply_xsave): Likewise.
4483 (amd64_collect_fxsave): Likewise.
4484 (amd64_collect_xsave): Likewise.
4485 * arc-tdep.c (arc_write_pc): Likewise.
4486 * arch-utils.c (default_skip_permanent_breakpoint): Likewise.
4487 * arm-fbsd-nat.c (arm_fbsd_fetch_inferior_registers): Likewise.
4488 (arm_fbsd_store_inferior_registers): Likewise.
4489 * arm-linux-nat.c (fetch_vfp_regs): Likewise.
4490 (store_vfp_regs): Likewise.
4491 (arm_linux_fetch_inferior_registers): Likewise.
4492 (arm_linux_store_inferior_registers): Likewise.
4493 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
4494 (arm_linux_sigreturn_next_pc): Likewise.
4495 (arm_linux_get_next_pcs_syscall_next_pc): Likewise.
4496 * arm-nbsd-nat.c (arm_supply_gregset): Likewise.
4497 (fetch_register): Likewise.
4498 (store_register): Likewise.
4499 * arm-tdep.c (arm_is_thumb): Likewise.
4500 (displaced_in_arm_mode): Likewise.
4501 (bx_write_pc): Likewise.
4502 (arm_get_next_pcs_addr_bits_remove): Likewise.
4503 (arm_software_single_step): Likewise.
4504 (arm_extract_return_value): Likewise.
4505 (arm_store_return_value): Likewise.
4506 (arm_write_pc): Likewise.
4507 * bfin-tdep.c (bfin_extract_return_value): Likewise.
4508 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
4509 (bsd_uthread_store_registers): Likewise.
4510 * core-regset.c (fetch_core_registers): Likewise.
4511 * corelow.c (get_core_registers): Likewise.
4512 * cris-tdep.c (cris_store_return_value): Likewise.
4513 (cris_extract_return_value): Likewise.
4514 (find_step_target): Likewise.
4515 (find_step_target): Likewise.
4516 (cris_software_single_step): Likewise.
4517 * ctf.c (ctf_fetch_registers): Likewise.
4518 * darwin-nat.c (cancel_breakpoint): Likewise.
4519 * fbsd-tdep.c (fbsd_collect_thread_registers): Likewise.
4520 * frv-tdep.c (frv_extract_return_value): Likewise.
4521 * ft32-tdep.c (ft32_store_return_value): Likewise.
4522 (ft32_extract_return_value): Likewise.
4523 * go32-nat.c (fetch_register): Likewise.
4524 (go32_fetch_registers): Likewise.
4525 (go32_store_registers): Likewise.
4526 (store_register): Likewise.
4527 * h8300-tdep.c (h8300_extract_return_value): Likewise.
4528 (h8300_store_return_value): Likewise.
4529 * hppa-linux-nat.c (fetch_register): Likewise.
4530 (store_register): Likewise.
4531 (hppa_linux_fetch_inferior_registers): Likewise.
4532 (hppa_linux_store_inferior_registers): Likewise.
4533 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Likewise.
4534 (i386_darwin_store_inferior_registers): Likewise.
4535 * i386-gnu-nat.c (gnu_fetch_registers): Likewise.
4536 (gnu_store_registers): Likewise.
4537 * i386-linux-nat.c (fetch_register): Likewise.
4538 (store_register): Likewise.
4539 (supply_gregset): Likewise.
4540 (fill_gregset): Likewise.
4541 (i386_linux_fetch_inferior_registers): Likewise.
4542 (i386_linux_store_inferior_registers): Likewise.
4543 (i386_linux_resume): Likewise.
4544 * i386-linux-tdep.c (i386_linux_get_syscall_number_from_regcache):
4546 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
4547 * i386-obsd-nat.c (i386obsd_supply_pcb): Likewise.
4548 * i386-obsd-tdep.c (i386obsd_supply_uthread): Likewise.
4549 (i386obsd_collect_uthread): Likewise.
4550 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
4551 (i386_supply_gregset): Likewise.
4552 (i386_collect_gregset): Likewise.
4553 (i386_supply_fpregset): Likewise.
4554 (i386_collect_fpregset): Likewise.
4555 (i386_mpx_bd_base): Likewise.
4556 * i386-v4-nat.c (supply_fpregset): Likewise.
4557 (fill_fpregset): Likewise.
4558 * i387-tdep.c (i387_supply_fsave): Likewise.
4559 (i387_collect_fsave): Likewise.
4560 (i387_supply_fxsave): Likewise.
4561 (i387_collect_fxsave): Likewise.
4562 (i387_supply_xsave): Likewise.
4563 (i387_collect_xsave): Likewise.
4564 * ia64-linux-nat.c (ia64_linux_fetch_registers): Likewise.
4565 (ia64_linux_store_registers): Likewise.
4566 * ia64-tdep.c (ia64_access_rse_reg): Likewise.
4567 (ia64_extract_return_value): Likewise.
4568 (ia64_store_return_value): Likewise.
4569 (find_func_descr): Likewise.
4570 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
4571 * inf-ptrace.c (inf_ptrace_fetch_registers): Likewise.
4572 (inf_ptrace_store_registers): Likewise.
4573 * infrun.c (use_displaced_stepping): Likewise.
4574 (displaced_step_prepare_throw): Likewise.
4576 (proceed): Likewise.
4577 (do_target_wait): Likewise.
4578 (adjust_pc_after_break): Likewise.
4579 (handle_inferior_event_1): Likewise.
4580 (handle_signal_stop): Likewise.
4581 (save_infcall_suspend_state): Likewise.
4582 (restore_infcall_suspend_state): Likewise.
4583 * iq2000-tdep.c (iq2000_extract_return_value): Likewise.
4584 * jit.c (jit_frame_prev_register): Likewise.
4585 * linux-nat.c (save_stop_reason): Likewise.
4586 (linux_nat_wait_1): Likewise.
4587 (resume_stopped_resumed_lwps): Likewise.
4588 * linux-record.c (record_linux_sockaddr): Likewise.
4589 (record_linux_msghdr): Likewise.
4590 (record_linux_system_call): Likewise.
4591 * linux-tdep.c (linux_collect_thread_registers): Likewise.
4592 * lm32-tdep.c (lm32_extract_return_value): Likewise.
4593 (lm32_store_return_value): Likewise.
4594 * m32c-tdep.c (m32c_read_flg): Likewise.
4595 (m32c_pseudo_register_read): Likewise.
4596 (m32c_pseudo_register_write): Likewise.
4597 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Likewise.
4598 (m32r_linux_collect_gregset): Likewise.
4599 * m32r-tdep.c (m32r_store_return_value): Likewise.
4600 (m32r_extract_return_value): Likewise.
4601 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
4602 (m68kbsd_collect_fpregset): Likewise.
4603 * m68k-bsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
4604 * m68k-linux-nat.c (fetch_register): Likewise.
4605 (old_fetch_inferior_registers): Likewise.
4606 (old_store_inferior_registers): Likewise.
4607 (store_regs): Likewise.
4608 * m68k-tdep.c (m68k_svr4_extract_return_value): Likewise.
4609 (m68k_svr4_store_return_value): Likewise.
4610 * m88k-tdep.c (m88k_store_arguments): Likewise.
4611 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Likewise.
4612 (mi_cmd_data_write_register_values): Likewise.
4613 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers): Likewise.
4614 (mips_fbsd_store_inferior_registers): Likewise.
4615 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Likewise.
4616 (mips_fbsd_supply_gregs): Likewise.
4617 (mips_fbsd_collect_fpregs): Likewise.
4618 (mips_fbsd_collect_gregs): Likewise.
4619 (mips_fbsd_supply_fpregset): Likewise.
4620 (mips_fbsd_collect_fpregset): Likewise.
4621 (mips_fbsd_supply_gregset): Likewise.
4622 (mips_fbsd_collect_gregset): Likewise.
4623 * mips-linux-nat.c (supply_gregset): Likewise.
4624 (fill_gregset): Likewise.
4625 (supply_fpregset): Likewise.
4626 (fill_fpregset): Likewise.
4627 * mips-linux-tdep.c (mips_supply_gregset): Likewise.
4628 (mips_fill_gregset): Likewise.
4629 (mips_supply_fpregset): Likewise.
4630 (mips_fill_fpregset): Likewise.
4631 (mips64_supply_gregset): Likewise.
4632 (micromips_linux_sigframe_validate): Likewise.
4633 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
4634 (mipsnbsd_fetch_inferior_registers): Likewise.
4635 (mipsnbsd_store_inferior_registers): Likewise.
4636 * mips-nbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
4637 (mipsnbsd_supply_gregset): Likewise.
4638 (mipsnbsd_iterate_over_regset_sections): Likewise.
4639 (mipsnbsd_supply_reg): Likewise.
4640 (mipsnbsd_supply_fpreg): Likewise.
4641 * mips-tdep.c (mips_in_frame_stub): Likewise.
4642 (mips_dummy_id): Likewise.
4643 (is_octeon_bbit_op): Likewise.
4644 (micromips_bc1_pc): Likewise.
4645 (extended_mips16_next_pc): Likewise.
4646 (mips16_next_pc): Likewise.
4647 (deal_with_atomic_sequence): Likewise.
4648 * moxie-tdep.c (moxie_process_readu): Likewise.
4649 * nios2-tdep.c (nios2_get_next_pc): Likewise.
4650 * nto-procfs.c (procfs_store_registers): Likewise.
4651 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers): Likewise.
4652 (ppcfbsd_store_inferior_registers): Likewise.
4653 * ppc-linux-nat.c (fetch_vsx_register): Likewise.
4654 (fetch_altivec_register): Likewise.
4655 (get_spe_registers): Likewise.
4656 (fetch_spe_register): Likewise.
4657 (fetch_altivec_registers): Likewise.
4658 (fetch_all_gp_regs): Likewise.
4659 (fetch_all_fp_regs): Likewise.
4660 (store_vsx_register): Likewise.
4661 (store_altivec_register): Likewise.
4662 (set_spe_registers): Likewise.
4663 (store_spe_register): Likewise.
4664 (store_altivec_registers): Likewise.
4665 (store_all_gp_regs): Likewise.
4666 (store_all_fp_regs): Likewise.
4667 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
4668 (ppc_linux_collect_gregset): Likewise.
4669 (ppc_canonicalize_syscall): Likewise.
4670 (ppc_linux_record_signal): Likewise.
4671 (ppu2spu_prev_register): Likewise.
4672 * ppc-nbsd-nat.c (ppcnbsd_supply_pcb): Likewise.
4673 * ppc-obsd-nat.c (ppcobsd_fetch_registers): Likewise.
4674 (ppcobsd_store_registers): Likewise.
4675 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_fetch_registers):
4677 (ppc_ravenscar_generic_store_registers): Likewise.
4678 * procfs.c (procfs_fetch_registers): Likewise.
4679 (procfs_store_registers): Likewise.
4680 * ravenscar-thread.c (ravenscar_fetch_registers): Likewise.
4681 (ravenscar_store_registers): Likewise.
4682 (ravenscar_prepare_to_store): Likewise.
4683 * record-btrace.c (record_btrace_fetch_registers): Likewise.
4684 * record-full.c (record_full_wait_1): Likewise.
4685 (record_full_registers_change): Likewise.
4686 (record_full_store_registers): Likewise.
4687 (record_full_core_fetch_registers): Likewise.
4688 (record_full_save): Likewise.
4689 (record_full_goto_insn): Likewise.
4690 * regcache.c (regcache_register_size): Likewise.
4691 (get_regcache_arch): Remove.
4692 (regcache_read_pc): Likewise.
4693 * regcache.h (get_regcache_arch): Remove.
4694 * remote-sim.c (gdbsim_fetch_register): Likewise.
4695 (gdbsim_store_register): Likewise.
4696 * remote.c (fetch_register_using_p): Likewise.
4697 (send_g_packet): Likewise.
4698 (remote_prepare_to_store): Likewise.
4699 (store_registers_using_G): Likewise.
4700 * reverse.c (save_bookmark_command): Likewise.
4701 (goto_bookmark_command): Likewise.
4702 * rs6000-aix-tdep.c (branch_dest): Likewise.
4703 * rs6000-nat.c (rs6000_ptrace64): Likewise.
4704 (fetch_register): Likewise.
4705 * rs6000-tdep.c (ppc_supply_reg): Likewise.
4706 (ppc_collect_reg): Likewise.
4707 (ppc_collect_gregset): Likewise.
4708 (ppc_collect_fpregset): Likewise.
4709 (ppc_collect_vsxregset): Likewise.
4710 (ppc_collect_vrregset): Likewise.
4711 (ppc_displaced_step_hw_singlestep): Likewise.
4712 (rs6000_pseudo_register_read): Likewise.
4713 (rs6000_pseudo_register_write): Likewise.
4714 * s390-linux-nat.c (supply_gregset): Likewise.
4715 (fill_gregset): Likewise.
4716 (s390_linux_fetch_inferior_registers): Likewise.
4717 * s390-linux-tdep.c (s390_write_pc): Likewise.
4718 (s390_software_single_step): Likewise.
4719 (s390_all_but_pc_registers_record): Likewise.
4720 (s390_linux_syscall_record): Likewise.
4721 * sentinel-frame.c (sentinel_frame_prev_arch): Likewise.
4722 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
4723 (shnbsd_store_inferior_registers): Likewise.
4724 * sh-tdep.c (sh_extract_return_value_nofpu): Likewise.
4725 (sh_extract_return_value_fpu): Likewise.
4726 (sh_store_return_value_nofpu): Likewise.
4727 (sh_corefile_supply_regset): Likewise.
4728 (sh_corefile_collect_regset): Likewise.
4729 * sh64-tdep.c (sh64_extract_return_value): Likewise.
4730 (sh64_store_return_value): Likewise.
4731 * sparc-linux-tdep.c (sparc32_linux_collect_core_fpregset): Likewise.
4732 * sparc-nat.c (sparc_fetch_inferior_registers): Likewise.
4733 (sparc_store_inferior_registers): Likewise.
4734 * sparc-ravenscar-thread.c (register_in_thread_descriptor_p): Likewise.
4735 (sparc_ravenscar_prepare_to_store): Likewise.
4736 * sparc-tdep.c (sparc32_store_arguments): Likewise.
4737 (sparc_analyze_control_transfer): Likewise.
4738 (sparc_step_trap): Likewise.
4739 (sparc_software_single_step): Likewise.
4740 (sparc32_gdbarch_init): Likewise.
4741 (sparc_supply_rwindow): Likewise.
4742 (sparc_collect_rwindow): Likewise.
4743 * sparc64-linux-tdep.c (sparc64_linux_collect_core_fpregset): Likewise.
4744 * sparc64-nbsd-nat.c (sparc64nbsd_supply_gregset): Likewise.
4745 (sparc64nbsd_collect_gregset): Likewise.
4746 (sparc64nbsd_supply_fpregset): Likewise.
4747 (sparc64nbsd_collect_fpregset): Likewise.
4748 * sparc64-tdep.c (sparc64_store_arguments): Likewise.
4749 (sparc64_supply_gregset): Likewise.
4750 (sparc64_collect_gregset): Likewise.
4751 (sparc64_supply_fpregset): Likewise.
4752 (sparc64_collect_fpregset): Likewise.
4753 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
4754 * spu-tdep.c (spu_unwind_sp): Likewise.
4755 (spu2ppu_prev_register): Likewise.
4756 (spu_memory_remove_breakpoint): Likewise.
4757 * stack.c (return_command): Likewise.
4758 * tic6x-tdep.c (tic6x_extract_signed_field): Likewise.
4759 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
4760 * tracefile.c (trace_save_ctf): Likewise.
4761 * windows-nat.c (do_windows_fetch_inferior_registers): Likewise.
4762 (do_windows_store_inferior_registers): Likewise.
4763 (windows_resume): Likewise.
4764 * xtensa-linux-nat.c (fill_gregset): Likewise.
4765 (supply_gregset_reg): Likewise.
4766 * xtensa-tdep.c (xtensa_register_write_masked): Likewise.
4767 (xtensa_register_read_masked): Likewise.
4768 (xtensa_supply_gregset): Likewise.
4769 (xtensa_extract_return_value): Likewise.
4770 (xtensa_store_return_value): Likewise.
4772 2017-10-25 Ulrich Weigand <uweigand@de.ibm.com>
4774 * doublest.c (floatformat_from_string): New function.
4775 * doublest.h (floatformat_from_string): Add prototype.
4777 * std-operator.def (OP_DOUBLE, OP_DECFLOAT): Remove, replace by ...
4778 (OP_FLOAT): ... this.
4779 * expression.h: Do not include "doublest.h".
4780 (union exp_element): Replace doubleconst and decfloatconst by
4781 new element floatconst.
4782 * ada-lang.c (resolve_subexp): Handle OP_FLOAT instead of OP_DOUBLE.
4783 (ada_evaluate_subexp): Likewise.
4784 * eval.c (evaluate_subexp_standard): Handle OP_FLOAT instead of
4785 OP_DOUBLE and OP_DECFLOAT.
4786 * expprint.c (print_subexp_standard): Likewise.
4787 (dump_subexp_body_standard): Likewise.
4788 * breakpoint.c (watchpoint_exp_is_const): Likewise.
4790 * parse.c: Include "dfp.h".
4791 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
4792 (write_exp_elt_floatcst): New function.
4793 (operator_length_standard): Handle OP_FLOAT instead of OP_DOUBLE
4795 (operator_check_standard): Likewise.
4796 (parse_float): Do not accept suffix. Take type as input. Return bool.
4797 Return target format buffer instead of host DOUBLEST.
4798 Use floatformat_from_string and decimal_from_string to parse
4799 either binary or decimal floating-point types.
4800 (parse_c_float): Remove.
4801 * parser-defs.h: Do not include "doublest.h".
4802 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
4803 (write_exp_elt_floatcst): Add prototype.
4804 (parse_float): Update prototype.
4805 (parse_c_float): Remove.
4807 * c-exp.y: Do not include "dfp.h".
4808 (typed_val_float): Use byte buffer instead of DOUBLEST.
4809 (typed_val_decfloat): Remove.
4811 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4812 (parse_number): Update to new parse_float interface.
4813 Parse suffixes and determine type before calling parse_float.
4814 Handle decimal and binary FP types the same way.
4816 * d-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
4817 (FLOAT_LITERAL): Use OP_FLOAT and write_exp_elt_floatcst.
4818 (parse_number): Update to new parse_float interface.
4819 Parse suffixes and determine type before calling parse_float.
4821 * f-exp.y: Replace dval by typed_val_float.
4822 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4823 (parse_number): Use parse_float instead of atof.
4825 * go-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
4826 (parse_go_float): Remove.
4827 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4828 (parse_number): Call parse_float instead of parse_go_float.
4829 Parse suffixes and determine type before calling parse_float.
4831 * p-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
4832 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4833 (parse_number): Update to new parse_float interface.
4834 Parse suffixes and determine type before calling parse_float.
4836 * m2-exp.y: Replace dval by byte buffer val.
4837 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4838 (parse_number): Call parse_float instead of atof.
4840 * rust-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
4841 (lex_number): Call parse_float instead of strtod.
4842 (ast_dliteral): Use OP_FLOAT instead of OP_DOUBLE.
4843 (convert_ast_to_expression): Handle OP_FLOAT instead of OP_DOUBLE.
4844 Use write_exp_elt_floatcst.
4845 (unit_testing): Remove static variable.
4846 (rust_type): Do not check unit_testing.
4847 (rust_lex_tests): Do not set uint_testing. Set up dummy rust_parser.
4849 * ada-exp.y (type_float, type_double): Remove.
4850 (typed_val_float): Use byte buffer instead of DOUBLEST.
4851 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4852 * ada-lex.l (processReal): Use parse_float instead of sscanf.
4854 2017-10-25 Alan Hayward <alan.hayward@arm.com>
4856 * aarch64-tdep.h (enum aarch64_regnum): Remove.
4857 * arch/aarch64.h: New file.
4859 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4861 * dfp.h (decimal_from_string): Use const reference for argument.
4862 * dfp.c (decimal_from_string): Likewise.
4864 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4866 * i387-tdep.c (print_i387_value): Use floatformat_to_string.
4867 * sh64-tdep.c (sh64_do_fp_register): Likewise.
4868 * mips-tdep.c (mips_print_fp_register): Likewise.
4870 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4872 * common/format.h (enum argclass): Replace decfloat_arg by
4873 dec32float_arg, dec64float_arg, and dec128float_arg.
4874 * common/format.c (parse_format_string): Update to return
4875 new decimal float argument classes.
4877 * printcmd.c (printf_decfloat): Rename to ...
4878 (printf_floating): ... this. Add argclass argument, and use it
4879 instead of parsing the format string again. Add support for
4880 binary floating-point values, using floatformat_to_string.
4881 Convert value to the target format if it doesn't already match.
4882 (ui_printf): Call printf_floating instead of printf_decfloat,
4883 also for double_arg / long_double_arg. Pass argclass.
4885 * dfp.c (decimal_to_string): Add format string argument.
4886 * dfp.h (decimal_to_string): Likewise.
4888 * doublest.c (floatformat_to_string): Add format string argument.
4889 * doublest.h (floatformat_to_string): Likewise.
4891 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4893 * doublest.c (floatformat_precision): New routine.
4894 (floatformat_to_string): Likewise.
4895 * doublest.c (floatformat_to_string): Add prototype.
4897 * printcmd.c (print_scalar_formatted): Only call print_floating
4898 on floating-point types.
4899 * valprint.c: Do not include "floatformat.h".
4900 (generic_val_print_decfloat): Remove.
4901 (generic_val_print): Call generic_val_print_float for both
4902 TYPE_CODE_FLT and TYPE_CODE_DECFLOAT.
4903 (print_floating): Use floatformat_to_string. Handle decimal float.
4904 (print_decimal_floating): Remove, merge into floatformat_to_string.
4905 * value.h (print_decimal_floating): Remove.
4907 * Makefile.in: Do not build doublest.c with -Wformat-nonliteral.
4909 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4911 * buildsym.c (end_symtab_get_static_block): Use std::stable_sort.
4913 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
4915 * memattr.h: Don't include vec.h.
4916 (struct mem_attrib): Initialize fields.
4917 <unknown>: New static method.
4918 (struct mem_region): Add constructors, operator<, initialize
4920 * memattr.c: Include algorithm.
4921 (default_mem_attrib, unknown_mem_attrib): Remove.
4922 (user_mem_region_list): New global.
4923 (target_mem_region_list, mem_region_list): Change type to
4924 std::vector<mem_region>.
4925 (mem_use_target): Now a function.
4926 (target_mem_regions_valid): Change type to bool.
4927 (mem_region_lessthan, mem_region_cmp, mem_region_init): Remove.
4928 (require_user_regions): Adjust.
4929 (require_target_regions): Adjust.
4930 (create_mem_region): Adjust.
4931 (lookup_mem_region): Adjust.
4932 (invalidate_target_mem_regions): Adjust.
4933 (mem_clear): Rename to...
4934 (user_mem_clear): ... this, and adjust.
4935 (mem_command): Adjust.
4936 (info_mem_command): Adjust.
4937 (mem_enable, enable_mem_command, mem_disable,
4938 disable_mem_command): Adjust.
4939 (mem_delete): Adjust.
4940 (delete_mem_command): Adjust.
4941 * memory-map.h (parse_memory_map): Return an std::vector.
4942 * memory-map.c (parse_memory_map): Likewise.
4943 (struct memory_map_parsing_data): Add constructor.
4944 <memory_map>: Point to std::vector.
4945 (memory_map_start_memory): Adjust.
4946 (memory_map_end_memory): Adjust.
4947 (memory_map_end_property): Adjust.
4948 (clear_result): Remove.
4949 * remote.c (remote_memory_map): Return an std::vector.
4950 * target-debug.h (target_debug_print_VEC_mem_region_s__p):
4952 (target_debug_print_mem_region_vector): New.
4953 * target-delegates.c: Regenerate.
4954 * target.h (mem_region_vector): New typedef.
4955 (to_memory_map): Return mem_region_vector.
4956 (target_memory_map): Return an std::vector.
4957 * target.c (target_memory_map): Return an std::vector.
4958 (flash_erase_command): Adjust.
4960 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
4962 * memory-map.c (struct memory_map_parsing_data) <property_name>:
4963 Change type to std::string.
4964 (memory_map_start_property): Adjust.
4965 (memory_map_end_property): Adjust.
4967 2017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
4969 * infrun.h: Include common/byte-vector.h.
4970 (struct displaced_step_closure): New struct.
4971 (struct buf_displaced_step_closure): New struct.
4972 * infrun.c (displaced_step_closure::~displaced_step_closure):
4973 Provide default implementation.
4974 (displaced_step_clear): Deallocate step closure with delete.
4975 * aarch64-tdep.c (displaced_step_closure): Rename to ...
4976 (aarch64_displaced_step_closure): ... this, extend
4977 displaced_step_closure.
4978 (aarch64_displaced_step_data) <dsc>: Change type to
4979 aarch64_displaced_step_closure.
4980 (aarch64_displaced_step_copy_insn): Adjust to type change, use
4982 (aarch64_displaced_step_fixup): Add cast for displaced step
4984 * amd64-tdep.c (displaced_step_closure): Rename to ...
4985 (amd64_displaced_step_closure): ... this, extend
4986 displaced_step_closure.
4987 <insn_buf>: Change type to std::vector<gdb_byte>.
4989 (fixup_riprel): Change type of DSC parameter, adjust to type
4991 (fixup_displaced_copy): Change type of DSC parameter.
4992 (amd64_displaced_step_copy_insn): Instantiate
4993 amd64_displaced_step_closure.
4994 (amd64_displaced_step_fixup): Add cast for closure type, adjust
4995 to type change of insn_buf.
4996 * arm-linux-tdep.c (arm_linux_cleanup_svc): Change type of
4998 (arm_linux_copy_svc): Likewise.
4999 (cleanup_kernel_helper_return): Likewise.
5000 (arm_catch_kernel_helper_return): Likewise.
5001 (arm_linux_displaced_step_copy_insn): Instantiate
5002 arm_displaced_step_closure.
5003 * arm-tdep.c (arm_pc_is_thumb): Add cast for closure.
5004 (displaced_read_reg): Change type of parameter DSC.
5005 (branch_write_pc): Likewise.
5006 (load_write_pc): Likewise.
5007 (alu_write_pc): Likewise.
5008 (displaced_write_reg): Likewise.
5009 (arm_copy_unmodified): Likewise.
5010 (thumb_copy_unmodified_32bit): Likewise.
5011 (thumb_copy_unmodified_16bit): Likewise.
5012 (cleanup_preload): Likewise.
5013 (install_preload): Likewise.
5014 (arm_copy_preload): Likewise.
5015 (thumb2_copy_preload): Likewise.
5016 (install_preload_reg): Likewise.
5017 (arm_copy_preload_reg): Likewise.
5018 (cleanup_copro_load_store): Likewise.
5019 (install_copro_load_store): Likewise.
5020 (arm_copy_copro_load_store) Likewise.
5021 (thumb2_copy_copro_load_store): Likewise.
5022 (cleanup_branch): Likewise.
5023 (install_b_bl_blx): Likewise.
5024 (arm_copy_b_bl_blx): Likewise.
5025 (thumb2_copy_b_bl_blx): Likewise.
5026 (thumb_copy_b): Likewise.
5027 (install_bx_blx_reg): Likewise.
5028 (arm_copy_bx_blx_reg): Likewise.
5029 (thumb_copy_bx_blx_reg): Likewise.
5030 (cleanup_alu_imm): Likewise.
5031 (arm_copy_alu_imm): Likewise.
5032 (thumb2_copy_alu_imm): Likewise.
5033 (cleanup_alu_reg): Likewise.
5034 (install_alu_reg): Likewise.
5035 (arm_copy_alu_reg): Likewise.
5036 (thumb_copy_alu_reg): Likewise.
5037 (cleanup_alu_shifted_reg): Likewise.
5038 (install_alu_shifted_reg): Likewise.
5039 (arm_copy_alu_shifted_reg): Likewise.
5040 (cleanup_load): Likewise.
5041 (cleanup_store): Likewise.
5042 (arm_copy_extra_ld_st): Likewise.
5043 (install_load_store): Likewise.
5044 (thumb2_copy_load_literal): Likewise.
5045 (thumb2_copy_load_reg_imm): Likewise.
5046 (arm_copy_ldr_str_ldrb_strb): Likewise.
5047 (cleanup_block_load_all): Likewise.
5048 (cleanup_block_store_pc): Likewise.
5049 (cleanup_block_load_pc): Likewise.
5050 (arm_copy_block_xfer): Likewise.
5051 (thumb2_copy_block_xfer): Likewise.
5052 (cleanup_svc): Likewise.
5053 (install_svc): Likewise.
5054 (arm_copy_svc): Likewise.
5055 (thumb_copy_svc): Likewise.
5056 (arm_copy_undef): Likewise.
5057 (thumb_32bit_copy_undef): Likewise.
5058 (arm_copy_unpred): Likewise.
5059 (arm_decode_misc_memhint_neon): Likewise.
5060 (arm_decode_unconditional): Likewise.
5061 (arm_decode_miscellaneous): Likewise.
5062 (arm_decode_dp_misc): Likewise.
5063 (arm_decode_ld_st_word_ubyte): Likewise.
5064 (arm_decode_media): Likewise.
5065 (arm_decode_b_bl_ldmstm): Likewise.
5066 (arm_decode_ext_reg_ld_st): Likewise.
5067 (thumb2_decode_dp_shift_reg): Likewise.
5068 (thumb2_decode_ext_reg_ld_st): Likewise.
5069 (arm_decode_svc_copro): Likewise.
5070 (thumb2_decode_svc_copro): Likewise.
5071 (install_pc_relative): Likewise.
5072 (thumb_copy_pc_relative_16bit): Likewise.
5073 (thumb_decode_pc_relative_16bit): Likewise.
5074 (thumb_copy_pc_relative_32bit): Likewise.
5075 (thumb_copy_16bit_ldr_literal): Likewise.
5076 (thumb_copy_cbnz_cbz): Likewise.
5077 (thumb2_copy_table_branch): Likewise.
5078 (cleanup_pop_pc_16bit_all): Likewise.
5079 (thumb_copy_pop_pc_16bit): Likewise.
5080 (thumb_process_displaced_16bit_insn): Likewise.
5081 (decode_thumb_32bit_ld_mem_hints): Likewise.
5082 (thumb_process_displaced_32bit_insn): Likewise.
5083 (thumb_process_displaced_insn): Likewise.
5084 (arm_process_displaced_insn): Likewise.
5085 (arm_displaced_init_closure): Likewise.
5086 (arm_displaced_step_fixup): Add cast for closure.
5087 * arm-tdep.h: Include infrun.h.
5088 (displaced_step_closure): Rename to ...
5089 (arm_displaced_step_closure): ... this, extend
5090 displaced_step_closure.
5091 <u::svc::copy_svc_os>: Change type of parameter DSC.
5092 <cleanup>: Likewise.
5093 (arm_process_displaced_insn): Likewise.
5094 (arm_displaced_init_closure): Likewise.
5095 (displaced_read_reg): Likewise.
5096 (displaced_write_reg): Likewise.
5097 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
5099 * i386-tdep.h: Include infrun.h.
5100 (i386_displaced_step_closure): New typedef.
5101 * i386-tdep.c (i386_displaced_step_copy_insn): Use
5102 i386_displaced_step_closure.
5103 (i386_displaced_step_fixup): Adjust.
5104 * rs6000-tdep.c (ppc_displaced_step_closure): New typedef.
5105 (ppc_displaced_step_copy_insn): Use ppc_displaced_step_closure
5107 (ppc_displaced_step_fixup): Adjust.
5108 * s390-linux-tdep.c (s390_displaced_step_closure): New typedef.
5109 (s390_displaced_step_copy_insn): Use s390_displaced_step_closure
5111 (s390_displaced_step_fixup): Adjust.
5113 2017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
5115 * interps.h (interp_resume, interp_suspend, interp_set_temp):
5116 Remove declarations.
5118 2017-10-20 Tom Tromey <tom@tromey.com>
5120 * gdb_bfd.c (struct gdb_bfd_data) <included_bfds>: Now a
5122 (gdb_bfd_record_inclusion): Update.
5123 (bfdp): Remove typedef.
5125 2017-10-20 Tom Tromey <tom@tromey.com>
5127 * gdb_bfd.c (gdb_bfd_ref): Use new.
5128 (struct gdb_bfd_data): Add constructor, destructor, and member
5130 (gdb_bfd_unref): Use delete.
5132 2017-10-20 Tom Tromey <tom@tromey.com>
5134 * exec.c (exec_file_attach): Use new_bfd_ref.
5135 * symfile-mem.c (symbol_file_add_from_memory): Use new_bfd_ref.
5136 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
5137 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_fdopenr): Use
5139 * gdb_bfd.h (new_bfd_ref): New function.
5141 2017-10-20 Pedro Alves <palves@redhat.com>
5143 * main.c (captured_command_loop): Add attribute noinline.
5145 2017-10-19 Simon Marchi <simon.marchi@ericsson.com>
5147 * interps.c (struct interp_factory): Add constructor.
5148 (interp_factory_p): Remove typedef.
5149 (DEF_VEC_P(interp_factory_p)): Remove.
5150 (interpreter_factories): Change type to std::vector.
5151 (interp_factory_register): Adjust.
5152 (interp_lookup): Adjust.
5153 (interpreter_completer): Adjust.
5155 2017-10-19 Tom Tromey <tom@tromey.com>
5157 * break-catch-syscall.c (catch_syscall_completer): Use
5158 std::string, gdb::unique_xmalloc_ptr.
5160 2017-10-19 Tom Tromey <tom@tromey.com>
5162 * infcall.c (call_function_by_hand_dummy): Use std::string.
5164 2017-10-19 Tom Tromey <tom@tromey.com>
5166 * mi/mi-main.c (mi_cmd_execute): Update.
5167 * top.h (prepare_execute_command): Return scoped_value_mark.
5168 * value.h (class scoped_value_mark): Use DISABLE_COPY_AND_ASSIGN.
5169 Add move constructor.
5170 * top.c (prepare_execute_command): Return scoped_value_mark.
5171 (execute_command): Update.
5173 2017-10-19 Pedro Alves <palves@redhat.com>
5175 * xml-support.c (xml_fetch_content_from_file): Check fread's
5178 2017-10-19 Pedro Alves <palves@redhat.com>
5180 * ser-base.c (ser_base_read_error_fd): Delete the file handler if
5182 (handle_error_fd): New function.
5183 (ser_base_async): Add/delete an event loop file handler for
5186 2017-10-19 Pedro Alves <palves@redhat.com>
5188 * xml-support.c (xml_fetch_content_from_file): Don't read in
5189 chunks. Instead use fseek to determine the file's size, and read
5192 2017-11-18 Keith Seitz <keiths@redhat.com>
5194 * c-exp.y (oper): Canonicalize conversion operators of user-defined
5196 Add whitespace to front of type name.
5198 2017-10-18 Keith Seitz <keiths@redhat.com>
5200 * dwarf2read.c (dwarf2_add_typedef): Issue a complaint on unhandled
5201 DW_AT_accessibility.
5203 2017-10-18 Yao Qi <yao.qi@linaro.org>
5205 * features/tic6x-c62x-linux.c: Remove.
5207 2017-10-17 Tom Tromey <tom@tromey.com>
5209 * disasm.c (do_mixed_source_and_assembly_deprecated): Use
5210 gdb::optional, ui_out_emit_list, ui_out_emit_tuple.
5211 (do_mixed_source_and_assembly): Likewise.
5213 2017-10-17 Tom Tromey <tom@tromey.com>
5215 * regcache.c (regcache::xfer_part): Remove assertion.
5217 2017-10-17 Pedro Alves <palves@redhat.com>
5219 * xml-support.c (xml_fetch_content_from_file): Call
5220 unique_ptr::release() instead unique_ptr::get() when passing
5223 2017-10-17 Yao Qi <yao.qi@linaro.org>
5225 * regcache.c (regcache::xfer_part): Remove parameters read and
5226 write, add parameter is_raw. All callers are updated.
5228 2017-10-16 Keith Seitz <keiths@redhat.com>
5230 * c-typeprint.c (enum access_specifier): Moved here from
5232 (output_access_specifier): New function.
5233 (c_type_print_base): Consider typedefs when assessing
5234 whether access labels are needed.
5235 Use output_access_specifier as needed.
5236 Output access specifier for typedefs, if needed.
5237 * dwarf2read.c (dwarf2_add_typedef): Record DW_AT_accessibility.
5238 * gdbtypes.h (struct typedef_field) <is_protected, is_private>: New
5240 (TYPE_TYPEDEF_FIELD_PROTECTED, TYPE_TYPEDEF_FIELD_PRIVATE): New
5243 2017-10-16 Tom Tromey <tom@tromey.com>
5245 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full)
5246 (linux_fill_prpsinfo, linux_vsyscall_range_raw): Update.
5247 * target.c (target_fileio_read_stralloc): Update.
5248 * sparc64-tdep.c (adi_is_addr_mapped): Update.
5249 * target.h (target_fileio_read_stralloc): Return
5252 2017-10-16 Tom Tromey <tom@tromey.com>
5254 * xml-syscall.c (xml_init_syscalls_info): Update.
5255 * xml-support.c (xinclude_start_include): Update.
5256 (xml_fetch_content_from_file): Return unique_xmalloc_ptr.
5257 * xml-support.h (xml_fetch_another): Return unique_xmalloc_ptr.
5258 (xml_fetch_content_from_file): Likewise.
5259 * osdata.c (get_osdata): Update.
5260 * target.h (target_read_stralloc, target_get_osdata): Return
5262 * solib-aix.c (solib_aix_get_library_list): Update.
5263 * solib-target.c (solib_target_current_sos): Update.
5264 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Update.
5265 * xml-tdesc.c (fetch_available_features_from_target): Update.
5266 (target_fetch_description_xml): Update.
5267 (file_read_description_xml): Update.
5268 * remote.c (remote_get_threads_with_qxfer, remote_memory_map)
5269 (remote_traceframe_info, btrace_read_config, remote_read_btrace)
5270 (remote_pid_to_exec_file): Update.
5271 * target.c (target_read_stralloc): Return unique_xmalloc_ptr.
5272 (target_get_osdata): Likewise.
5274 2017-10-16 Tom Tromey <tom@tromey.com>
5276 * remote.c (remote_register_number_and_offset): Use std::vector.
5277 (remote_set_syscall_catchpoint): Use gdb::unique_xmalloc_ptr.
5278 (putpkt_binary): Use gdb::def_vector.
5279 (compare_sections_command): Use gdb::byte_vector.
5281 2017-10-16 Tom Tromey <tom@tromey.com>
5283 * ppc-linux-nat.c (hwdebug_insert_point): Use
5284 gdb::unique_xmalloc_ptr, XDUP.
5286 2017-10-16 Tom Tromey <tom@tromey.com>
5288 * probe.c (parse_probes): Use std::string.
5289 (info_probes_for_ops, enable_probes_command)
5290 (disable_probes_command): Remove cleanups.
5292 2017-10-16 Tom Tromey <tom@tromey.com>
5294 * buildsym.c (block_compar): Remove.
5295 (end_symtab_get_static_block): Use std::vector.
5297 2017-10-16 Simon Marchi <simon.marchi@ericsson.com>
5299 * memrange.h (struct mem_range): Define operator< and operator==.
5300 (mem_range_s): Remove.
5301 (DEF_VEC_O (mem_range_s)): Remove.
5302 (normalize_mem_ranges): Change parameter type to std::vector.
5303 * memrange.c (compare_mem_ranges): Remove.
5304 (normalize_mem_ranges): Change parameter type to std::vector,
5305 adjust to vector change.
5306 * exec.c (section_table_available_memory): Return vector, remove
5308 (section_table_read_available_memory): Adjust to std::vector
5310 * remote.c (remote_read_bytes): Adjust to std::vector
5312 * tracepoint.h (traceframe_available_memory): Change parameter
5313 type to std::vector.
5314 * tracepoint.c (traceframe_available_memory): Change parameter
5315 type to std::vector, adjust.
5316 * gdb/mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to
5318 * gdb/Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5319 unittests/memrange-selftests.c.
5320 (SUBDIR_UNITTESTS_OBS): Add memrange-selftests.o.
5321 * gdb/unittests/memrange-selftests.c: New file.
5323 2017-10-16 Pedro Alves <palves@redhat.com>
5325 * elfread.c (probe_key_free): Rename range-for variable.
5326 * probe.c (parse_probes_in_pspace, find_probes_in_objfile)
5327 (find_probe_by_pc, collect_probes): Rename range-for variable.
5329 2017-10-16 Yao Qi <yao.qi@linaro.org>
5331 * features/Makefile (XMLTOC): Remove tic6x-*.xml.
5332 * features/tic6x-c62x.c: Remove.
5333 * features/tic6x-c64x-linux.c: Remove.
5334 * features/tic6x-c64x.c: Remove.
5335 * features/tic6x-c64xp-linux.c: Remove.
5336 * features/tic6x-c64xp.c: Remove.
5337 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Don't call
5338 initialize_tdesc_tic6x_*_linux functions.
5339 * tic6x-tdep.c (_initialize_tic6x_tdep): Don't call
5340 initialize_tdesc_tic6x_* functions.
5342 2017-10-16 Yao Qi <yao.qi@linaro.org>
5344 * features/Makefile (WHICH): Remove tic6x-c64xp, tic6x-c64x
5346 * regformats/tic6x-c62x.dat: Remove.
5347 * regformats/tic6x-c64x.dat: Remove.
5348 * regformats/tic6x-c64xp.dat: Remove.
5350 2017-10-15 Simon Marchi <simon.marchi@ericsson.com>
5352 * tracepoint.c (parse_traceframe_info): Return a unique_ptr
5353 (the !HAVE_LIBEXPAT version).
5355 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
5357 * nat/linux-osdata.c (struct pid_pgid_entry) <operator<>: Make
5360 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
5362 * target.h: Include tracepoint.h.
5363 (enum trace_find_type): Move to tracepoint.h.
5364 (struct target_ops) <to_traceframe_info>: Return a unique ptr.
5365 * tracepoint.h: Don't include target.h
5366 (enum trace_find_type): Move from target.h.
5367 (parse_traceframe_info): Return a unique ptr.
5368 * tracepoint.c (current_traceframe_info): Change type to unique
5370 (free_traceframe_info): Remove.
5371 (clear_traceframe_info): Don't manually free
5372 current_traceframe_info.
5373 (free_result): Remove.
5374 (parse_traceframe_info): Return a unique ptr.
5375 (get_traceframe_info): Adjust to unique ptr.
5376 * ctf.c (ctf_traceframe_info): Return a unique ptr.
5377 * remote.c (remote_traceframe_info): Return a unique ptr.
5378 * tracefile-tfile.c (tfile_traceframe_info): Return a unique
5380 * target-debug.h (target_debug_print_traceframe_info_up): New
5382 * target-delegates.c: Regenerate.
5384 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
5386 * memrange.h (struct mem_range): Add constructors.
5387 * tracepoint.h (struct traceframe_info) <memory>: Change type to
5388 std::vector<mem_range>.
5389 * tracepoint.c (free_traceframe_info): Don't manually free
5391 (traceframe_info_start_memory): Adjust to vector change.
5392 (traceframe_available_memory): Likewise.
5393 * tracefile-tfile.c (build_traceframe_info): Likewise.
5394 * ctf.c (ctf_traceframe_info): Likewise.
5396 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
5398 * tracepoint.h (struct traceframe_info) <tvars>: Change type to
5400 * tracepoint.c (free_traceframe_info): Deallocate with delete.
5401 (traceframe_info_start_tvar): Adjust to vector change.
5402 (parse_traceframe_info): Allocate with new.
5403 * ctf.c (ctf_traceframe_info): Allocate with new, adjust to
5405 * tracefile-tfile.c (build_traceframe_info): Adjust to vector
5407 tfile_traceframe_info): Allocate with new.
5408 * mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to vector
5411 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
5413 * tracepoint.c (traceframe_info): Rename to...
5414 (current_traceframe_info): ...this.
5415 (clear_traceframe_info): Adjust.
5416 (get_traceframe_info): Adjust.
5418 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
5420 * nat/linux-osdata.c: Include algorithm.
5421 (compare_processes): Remove.
5422 (struct pid_pgid_entry): New struct.
5423 (linux_xfer_osdata_processgroups): Use std::vector instead of
5426 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
5428 * objfiles.h: Don't include symfile.h.
5429 (struct partial_symbol): Remove forward-declaration.
5430 (struct objfile) <global_psymbols, static_psymbols>: Change type
5431 to std::vector<partial_symbol *>.
5432 * objfiles.c (objfile::objfile): Don't memset those fields.
5433 (objfile::~objfile): Don't free those fields.
5434 * psympriv.h (struct psymbol_allocation_list): Remove
5435 forward-declaration.
5436 (add_psymbol_to_list): Change psymbol_allocation_list parameter
5438 (start_psymtab_common): Change parameters to std::vector.
5439 * psymtab.c: Include algorithm.
5440 (require_partial_symbols): Call shrink_to_fit.
5441 (find_pc_sect_psymbol): Adjust to vector change.
5442 (match_partial_symbol): Likewise.
5443 (lookup_partial_symbol): Likewise.
5444 (psym_relocate): Likewise.
5445 (dump_psymtab): Likewise.
5446 (recursively_search_psymtabs): Likewise.
5447 (compare_psymbols): Remove.
5448 (sort_pst_symbols): Adjust to vector change.
5449 (start_psymtab_common): Likewise.
5450 (end_psymtab_common): Likewise.
5451 (psymbol_bcache_full): De-constify return value.
5452 (add_psymbol_to_bcache): Likewise.
5453 (extend_psymbol_list): Remove.
5454 (append_psymbol_to_list): Adjust to vector change.
5455 (add_psymbol_to_list): Likewise.
5456 (init_psymbol_list): Likewise.
5457 (maintenance_info_psymtabs): Likewise.
5458 (maintenance_check_psymtabs): Likewise.
5459 * symfile.h (struct psymbol_allocation_list): Remove.
5460 * symfile.c (reread_symbols): Adjust to vector change.
5461 * dbxread.c (start_psymtab): Change type of parameters.
5462 (dbx_symfile_read): Adjust to vector change.
5463 (read_dbx_symtab): Likewise.
5464 (start_psymtab): Change type of parameters.
5465 * dwarf2read.c (dwarf2_build_psymtabs): Adjust to vector change.
5466 (create_partial_symtab): Likewise.
5467 (add_partial_symbol): Likewise.
5468 (write_one_signatured_type): Likewise.
5469 (recursively_write_psymbols): Likewise.
5470 * mdebugread.c (parse_partial_symbols): Likewise.
5471 * xcoffread.c (xcoff_start_psymtab): Change type of parameters.
5472 (scan_xcoff_symtab): Adjust to vector change.
5473 (xcoff_initial_scan): Likewise.
5475 2017-10-13 Simon Marchi <simon.marchi@ericsson.com>
5477 * ada-typeprint.c (print_dynamic_range_bound): Use std::string.
5479 2017-10-13 Yao Qi <yao.qi@linaro.org>
5481 * features/Makefile: Remove tic6x-*-expedite, add tic6x-expedite.
5482 Remove s390x-*-expedite, add s390x-expedite.
5484 2017-10-13 Yao Qi <yao.qi@linaro.org>
5486 * features/s390-gs-linux64.c: Regenerated.
5487 * features/s390x-gs-linux64.c: Regenerated.
5489 2017-10-13 Tom Tromey <tom@tromey.com>
5491 * compile/compile-object-run.c (do_module_cleanup): Use delete.
5492 * solib.c (update_solib_list, reload_shared_libraries_1): Use
5494 * symfile.c (symbol_file_add_with_addrs): Use new.
5495 (symbol_file_add_separate): Update comment.
5496 (syms_from_objfile_1, remove_symbol_file_command): Use delete.
5497 * jit.c (jit_object_close_impl): Use new.
5498 (jit_unregister_code): Use delete.
5499 * objfiles.c (objfile::objfile): Rename from allocate_objfile.
5500 (~objfile): Rename from free_objfile.
5501 (free_objfile_separate_debug, do_free_objfile_cleanup)
5502 (free_all_objfiles, objfile_purge_solibs): Use delete.
5503 * objfiles.h (struct objfile): Add constructor and destructor.
5504 Use DISABLE_COPY_AND_ASSIGN. Add initializers to data members.
5505 (allocate_objfile, free_objfile): Don't declare.
5506 (struct objstats): Add initializers.
5508 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
5510 * arch-utils.h (simple_displaced_step_copy_insn): Remove.
5511 * arch-utils.c (simple_displaced_step_copy_insn): Remove.
5512 * gdbarch.sh (displaced_step_copy_insn): Adjust comment.
5513 * gdbarch.h: Regenerate.
5514 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
5516 * i386-tdep.c (i386_displaced_step_copy_insn): Adjust comment.
5517 (i386_displaced_step_fixup): Adjust comment.
5518 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Adjust comment.
5520 2017-10-12 Tom Tromey <tom@tromey.com>
5522 * prologue-value.h (pv_area::store_would_trash): Return bool.
5523 (pv_area::find_reg): Likewise.
5524 * prologue-value.c (pv_area::store_would_trash): Return bool.
5525 (pv_area::find_reg): Likewise.
5527 2017-10-12 Tom Tromey <tom@tromey.com>
5529 * s390-linux-tdep.c (s390_store, s390_load)
5530 (s390_check_for_saved, s390_analyze_prologue): Update.
5531 * rx-tdep.c (check_for_saved, rx_analyze_prologue): Update.
5532 * rl78-tdep.c (rl78_analyze_prologue, check_for_saved): Update.
5533 * prologue-value.h (class pv_area): Move from prologue-value.c.
5534 Change names of members. Add constructor, destructor, member
5536 (make_pv_area, free_pv_area, make_cleanup_free_pv_area)
5537 (pv_area_store, pv_area_fetch, pv_area_store_would_trash)
5538 (pv_area_fetch, pv_area_scan): Don't declare.
5539 * prologue-value.c (struct pv_area::area_entry): Now member of
5541 (struct pv_area): Move to prologue-value.h.
5542 (pv_area::pv_area): Rename from make_pv_area.
5543 (pv_area::~pv_area): Rename from free_pv_area.
5544 (do_free_pv_area_cleanup, make_cleanup_free_pv_area): Remove.
5545 (clear_entries, find_entry, overlaps, store_would_trash, store)
5546 (fetch, find_reg, scan): Now member of pv_area.
5547 Remove "area" argument. Update.
5548 * msp430-tdep.c (check_for_saved, msp430_analyze_prologue):
5550 * mn10300-tdep.c (push_reg, check_for_saved)
5551 (mn10300_analyze_prologue): Update.
5552 * mep-tdep.c (is_arg_spill, check_for_saved)
5553 (mep_analyze_prologue): Update.
5554 * m32c-tdep.c (m32c_pv_push, m32c_srcdest_fetch)
5555 (m32c_srcdest_store, m32c_pv_enter, m32c_is_arg_spill)
5556 (m32c_is_struct_return, m32c_analyze_prologue): Update.
5557 * arm-tdep.c (thumb_analyze_prologue, arm_analyze_prologue):
5559 * arc-tdep.c (arc_is_in_prologue, arc_analyze_prologue): Update.
5560 * aarch64-tdep.c (aarch64_analyze_prologue): Update.
5562 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
5564 * linux-nat.h (linux_nat_set_delete_thread): New declaration.
5565 * linux-nat.c (linux_nat_delete_thread): New variable.
5566 (lwp_free): Invoke linux_nat_delete_thread if set.
5567 (linux_nat_set_delete_thread): New function.
5568 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Assign
5569 thread delete callback.
5570 * arm-linux-nat.c (arm_linux_delete_thread): New function.
5571 (_initialize_arm_linux_nat): Assign thread delete callback.
5572 * s390-linux-nat.c (s390_delete_thread): New function.
5573 (_initialize_s390_nat): Assign thread delete callback.
5574 * x86-linux-nat.c (x86_linux_add_target): Likewise.
5575 * nat/aarch64-linux.c (aarch64_linux_delete_thread): New
5577 * nat/aarch64-linux.h (aarch64_linux_delete_thread): New
5579 * nat/x86-linux.c (x86_linux_delete_thread): New function.
5580 * nat/x86-linux.h (x86_linux_delete_thread): New declaration.
5582 2017-10-09 Tom Tromey <tom@tromey.com>
5584 * tui/tui-win.c (tui_set_win_height, parse_scrolling_args): Use
5586 * tui/tui-layout.c (enum tui_status): Use std::string.
5588 2017-10-11 Tom Tromey <tom@tromey.com>
5590 * gdbthread.h (thread_command): Constify.
5591 * inferior.h (detach_command): Constify.
5592 * top.h (set_history, show_history): Constify.
5593 * arm-tdep.c (set_arm_command, show_arm_command): Constify.
5594 * serial.c (serial_set_cmd, serial_show_cmd): Constify.
5595 * bsd-kvm.c (bsd_kvm_cmd): Constify.
5596 * printcmd.c (set_command): Constify.
5597 (non_const_set_command): New function.
5598 * dcache.c (set_dcache_command, show_dcache_command): Constify.
5599 * breakpoint.c (enable_command, disable_command, delete_command)
5600 (catch_command, tcatch_command, set_breakpoint_cmd)
5601 (show_breakpoint_cmd): Constify.
5602 * macrocmd.c (macro_command): Constify.
5603 * infcmd.c (unset_command, kill_command, detach_command)
5604 (info_proc_cmd): Constify.
5605 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Constify.
5606 * auto-load.c (show_auto_load_cmd, set_auto_load_cmd)
5607 (info_auto_load_cmd): Constify.
5608 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
5609 (unset_tdesc_cmd): Constify.
5610 * ada-lang.c (set_ada_command, show_ada_command)
5611 (maint_set_ada_cmd, maint_show_ada_cmd): Constify.
5612 * guile/guile.c (set_guile_command, show_guile_command)
5613 (info_guile_command): Constify.
5614 * tui/tui-win.c (tui_command, set_tui_cmd, show_tui_cmd):
5616 * skip.c (skip_command): Constify.
5617 * compile/compile.c (_initialize_compile): Constify.
5618 * dwarf2read.c (set_dwarf_cmd, show_dwarf_cmd): Constify.
5619 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
5620 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
5621 (maint_btrace_pt_show_cmd): Constify.
5622 * remote.c (set_remote_cmd, show_remote_cmd, remote_command):
5624 * python/python.c (user_show_python, user_set_python): Constify.
5625 * mips-tdep.c (set_mips_command, show_mips_command)
5626 (set_mipsfpu_command): Constify.
5627 * record-btrace.c (cmd_record_btrace_start)
5628 (cmd_set_record_btrace, cmd_show_record_btrace)
5629 (cmd_set_record_btrace_bts, cmd_show_record_btrace_bts)
5630 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): Constify.
5631 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command):
5633 * symfile.c (overlay_command): Constify.
5634 * spu-tdep.c (set_spu_command, show_spu_command): Constify.
5635 * cli/cli-logging.c (set_logging_command, show_logging_command):
5637 * cli/cli-dump.c (dump_command, append_command)
5638 (srec_dump_command, ihex_dump_command, verilog_dump_command)
5639 (tekhex_dump_command, binary_dump_command)
5640 (binary_append_command): Constify.
5641 * cli/cli-decode.c (struct cmd_list_element): Change type of
5643 * cli/cli-cmds.c (info_command, show_command, set_debug)
5644 (show_debug): Constify.
5645 (show_command): Add non-const overload.
5646 * top.c (set_history, show_history): Constify.
5647 * sh-tdep.c (set_sh_command, show_sh_command): Constify.
5648 * command.h (add_prefix_cmd): Accept a cmd_const_cfunc_ftype.
5649 * target.c (target_command): Constify.
5650 * sparc64-tdep.c (info_adi_command): Constify.
5651 * record-full.c (cmd_record_full_start): Constify.
5652 (set_record_full_command): Constify. Fix typo.
5653 (show_record_full_command): Constify.
5654 * thread.c (thread_command, thread_apply_command): Constify.
5655 * memattr.c (dummy_cmd): Constify.
5656 * value.c (function_command): Constify.
5657 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Constify.
5658 * probe.c (info_probes_command): Constify.
5659 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Constify.
5660 * gnu-nat.c (set_task_cmd, show_task_cmd, set_thread_cmd)
5661 (show_thread_cmd, set_thread_default_cmd)
5662 (show_thread_default_cmd): Constify.
5663 (check_empty): Constify.
5664 * tracepoint.c (tfind_command): Constify.
5665 * cp-support.c (maint_cplus_command): Constify.
5666 * windows-tdep.c (info_w32_command): Constify.
5667 * record.c (cmd_record_start, set_record_command)
5668 (show_record_command, info_record_command, cmd_record_goto):
5670 * ravenscar-thread.c (set_ravenscar_command)
5671 (show_ravenscar_command): Constify.
5672 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5674 (add_internal_problem_command): Remove casts.
5675 * arc-tdep.c (maintenance_print_arc_command): Constify.
5676 * valprint.c (set_print, show_print, set_print_raw)
5677 (show_print_raw): Constify.
5678 * maint.c (maintenance_command, maintenance_info_command)
5679 (maintenance_print_command, maintenance_set_cmd)
5680 (maintenance_show_cmd, set_per_command_cmd)
5681 (show_per_command_cmd, maintenance_check_command): Constify.
5682 * language.c (set_check, show_check): Constify.
5683 * typeprint.c (show_print_type, set_print_type): Constify.
5684 * go32-nat.c (go32_info_dos_command): Constify.
5686 2017-10-11 Tom Tromey <tom@tromey.com>
5688 * breakpoint.c (prepare_re_set_context): Remove.
5689 (breakpoint_re_set_one): Update. Don't use cleanups.
5690 (breakpoint_re_set): Use scoped_restore, std::string, and
5691 scoped_restore_current_language.
5693 2017-10-11 Tom Tromey <tom@tromey.com>
5695 * breakpoint.c (commands_command_1): Use std::string.
5696 (cleanup_executing_breakpoints): Remove.
5697 (bpstat_do_actions_1): Use scoped_restore.
5698 (bpstat_check_watchpoint): Use std::string.
5699 (decode_static_tracepoint_spec): Likewise.
5700 (break_range_command): Likewise.
5701 (watch_command_1): Likewise.
5702 (compare_breakpoints): Change argument types.
5703 (clear_command): Use std::vector.
5704 (cleanup_executing_breakpoints): Remove.
5705 (update_global_location_list): Use unique_xmalloc_ptr.
5706 (strace_command): Remove unused declaration.
5708 2017-10-11 John Baldwin <jhb@FreeBSD.org>
5710 * Makefile.in (ALLDEPFILES): Add arm-fbsd-nat.c.
5711 * NEWS: Mention new FreeBSD/arm native configuration.
5712 * configure.host: Add arm*-*-freebsd*.
5713 * configure.nat: Likewise.
5714 * arm-fbsd-nat.c: New file.
5716 2017-10-11 John Baldwin <jhb@FreeBSD.org>
5718 * Makefile.in (ALL_TARGET_OBS): Add arm-fbsd-tdep.o.
5719 (ALLDEPFILES): Add arm-fbsd-tdep.c.
5720 * NEWS: Mention new FreeBSD/arm target.
5721 * configure.tgt: Add arm*-*-freebsd*.
5722 * arm-fbsd-tdep.c: New file.
5723 * arm-fbsd-tdep.h: New file.
5725 2017-10-11 Maciej W. Rozycki <macro@imgtec.com>
5727 * linux-tdep.c (linux_make_corefile_notes): Remove call to
5728 `gdbarch_elfcore_write_linux_prpsinfo'.
5729 * gdbarch.sh (elfcore_write_linux_prpsinfo): Remove architecture
5731 (elf_internal_linux_prpsinfo): Remove declaration.
5732 * gdbarch.h: Regenerate.
5733 * gdbarch.c: Regenerate.
5735 2017-10-11 Maciej W. Rozycki <macro@imgtec.com>
5737 * ppc-linux-tdep.c (ppc_linux_init_abi): Remove call to
5738 `set_gdbarch_elfcore_write_linux_prpsinfo'.
5740 2017-10-11 Pedro Alves <palves@redhat.com>
5742 * breakpoint.c (reattach_breakpoints): Delete.
5743 * breakpoint.h (reattach_breakpoints): Delete.
5745 2017-10-11 Simon Marchi <simon.marchi@ericsson.com>
5747 * symfile.c (registered_sym_fns): Make struct, not typedef.
5748 (DEF_VEC_O (registered_sym_fns)): Remove.
5749 (symtab_fns): Change type to std::vector.
5750 (add_symtab_fns): Adjust.
5751 (find_sym_fns): Adjust.
5753 2017-10-11 Anton Kolesov <Anton.Kolesov@synopsys.com>
5755 * arc-tdep.c (arc_gdbarch_init): Pass proper cpu value to disassembler.
5756 * arc-tdep.h (arc_arch_is_em): New function.
5757 (arc_arch_is_hs): Likewise.
5759 2017-10-11 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com>
5761 * macrotab.h (macro_lookup_inclusion): Remove unnecessary
5762 parentheses in the declaration.
5763 (macro_lookup_inclusion): Likewise.
5764 (macro_lookup_definition): Likewise.
5765 * p-lang.h (pascal_builtin_types): Likewise.
5766 * tui/tui-data.c (tui_win_list): Likewise.
5767 * tui/tui-data.h (tui_win_list): Likewise.
5768 * utils.h (make_cleanup_free_section_addr_info): Likewise.
5770 2017-10-11 Mark Rages <markrages@gmail.com>
5772 * target-memory.c (block_boundaries): Fix for block address not
5773 aligned on block size.
5775 2017-10-10 Pedro Alves <palves@redhat.com>
5776 Tom Tromey <tom@tromey.com>
5778 * breakpoint.c (struct captured_breakpoint_query_args)
5779 (do_captured_breakpoint_query, gdb_breakpoint_query): Delete.
5780 (print_breakpoint): New.
5781 * breakpoint.h (print_breakpoint): Declare.
5782 * common/common-exceptions.h (enum return_reason): Remove
5783 references to catch_exceptions.
5784 * exceptions.c (catch_exceptions, catch_exceptions_with_msg):
5786 * exceptions.h (catch_exceptions_ftype, catch_exceptions)
5787 (catch_exception_ftype, catch_exceptions_with_msg): Delete.
5789 * gdbthread.h (thread_select): Declare.
5790 * mi/mi-cmd-break.c: Don't include gdb.h.
5791 (breakpoint_notify): Use print_breakpoint.
5792 * mi/mi-cmd-catch.c: Don't include gdb.h.
5793 * mi/mi-interp.c: Don't include gdb.h.
5794 (mi_print_breakpoint_for_event): New.
5795 (mi_breakpoint_created, mi_breakpoint_modified): Use
5796 mi_print_breakpoint_for_event.
5797 * mi/mi-main.c: Don't include gdb.h.
5798 (mi_cmd_thread_select): Parse the global thread ID here. Use
5799 thread_select instead of gdb_thread_select.
5800 (mi_cmd_thread_list_ids): Output "thread-ids" tuple here instead
5801 of using gdb_list_thread_ids.
5802 * remote-fileio.c (do_remote_fileio_request): Change type. Reply
5804 (remote_fileio_request): Use TRY/CATCH instead of
5806 * symfile-mem.c (struct symbol_file_add_from_memory_args)
5807 (symbol_file_add_from_memory_wrapper): Delete.
5808 (add_vsyscall_page): Use TRY/CATCH instead of catch_exceptions.
5809 * thread.c: Don't include gdb.h.
5810 (do_captured_list_thread_ids, gdb_list_thread_ids): Delete.
5811 (thread_alive): Use thread_select.
5812 (do_captured_thread_select): Delete, parts salvaged as ...
5813 (thread_select): ... this new function.
5814 (gdb_thread_select): Delete.
5816 2017-10-10 Pedro Alves <palves@redhat.com>
5817 Tom Tromey <tom@tromey.com>
5819 * breakpoint.c (breakpoint_cond_eval): Change return type to bool
5821 (WP_DELETED, WP_VALUE_CHANGED, WP_VALUE_NOT_CHANGED, WP_IGNORE):
5822 No longer macros. Instead ...
5823 (enum wp_check_result): They're now values of this new
5825 (watchpoint_check): Change return type to wp_check_result and
5826 parameter type to bpstat.
5827 (bpstat_check_watchpoint): Use TRY/CATCH instead of catch_errors.
5828 (bpstat_check_breakpoint_conditions): Use TRY/CATCH instead of
5829 catch_errors. Reverse logic of watchpoint_check call.
5830 (breakpoint_re_set_one): Now returns void and takes a breakpoint
5831 pointer as parameter.
5832 (breakpoint_re_set): Use TRY/CATCH instead of catch_errors.
5833 * common/common-exceptions.c (throw_exception_sjlj): Update
5834 comments to avoid mentioning catch_errors.
5835 * exceptions.c (catch_errors): Delete.
5836 * exceptions.h: Update comments to avoid mentioning catch_errors.
5837 (catch_errors_ftype, catch_errors): Delete.
5838 * infrun.c (normal_stop): Use TRY/CATCH instead of catch_errors.
5839 (hook_stop_stub): Delete.
5840 (restore_selected_frame): Change return type to void, and
5841 parameter type to const frame_id &.
5842 (restore_infcall_control_state): Use TRY/CATCH instead of
5844 * main.c (captured_command_loop): Return void and remove
5845 parameter. Remove references to catch_errors.
5846 (captured_main): Use TRY/CATCH instead of catch_errors.
5847 * objc-lang.c (objc_submethod_helper_data)
5848 (find_objc_msgcall_submethod_helper): Delete.
5849 (find_objc_msgcall_submethod): Use TRY/CATCH instead of
5851 * record-full.c (record_full_message): Return void.
5852 (record_full_message_args, record_full_message_wrapper): Delete.
5853 (record_full_message_wrapper_safe): Return bool and use TRY/CATCH
5854 instead of catch_errors.
5855 * solib-aix.c (solib_aix_open_symbol_file_object): Change
5856 parameter type to int.
5857 * solib-darwin.c (open_symbol_file_object): Ditto.
5858 * solib-dsbt.c (open_symbol_file_object): Ditto.
5859 * solib-frv.c (open_symbol_file_object): Ditto.
5860 * solib-svr4.c (open_symbol_file_object): Ditto.
5861 * solib-target.c (solib_target_open_symbol_file_object): Ditto.
5862 * solib.c (update_solib_list): Use TRY/CATCH instead of
5864 * solist.h (struct target_so_ops) <open_symbol_file_object>:
5866 * symmisc.c (struct print_symbol_args): Remove.
5867 (dump_symtab_1): Use TRY/CATCH instead of catch_errors.
5868 (print_symbol): Change type.
5869 * windows-nat.c (handle_load_dll, handle_unload_dll): Return void
5870 and remove parameters.
5871 (catch_errors): New.
5872 (get_windows_debug_event): Adjust.
5874 2017-10-09 Tom Tromey <tom@tromey.com>
5876 * mi/mi-main.c (free_splay_tree): Remove.
5877 (list_available_thread_groups): Use splay_tree_up.
5878 * common/gdb_splay_tree.h: New file.
5880 2017-10-09 Tom Tromey <tom@tromey.com>
5882 * mi/mi-main.c (do_nothing): Remove.
5883 (list_available_thread_groups): Update.
5885 2017-10-09 Pedro Alves <palves@redhat.com>
5887 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>: Skip
5888 reading registers when switching context.
5890 2017-10-09 John Baldwin <jhb@FreeBSD.org>
5892 * fbsd-nat.c (fbsd_siginfo_size): Use gdbarch_long_bit.
5893 (fbsd_convert_siginfo): Likewise.
5894 * fbsd-tdep.c (fbsd_core_xfer_siginfo): Likewise.
5896 2017-10-09 Simon Marchi <simon.marchi@polymtl.ca>
5898 * configure.ac (try_guile_versions): Remove guile-2.2.
5899 * configure: Regenerate.
5901 2017-10-09 Tom Tromey <tom@tromey.com>
5903 * Makefile.in (COMPILE.post, POSTCOMPILE): Restore $(basename).
5904 (COMPILE.pre): Use $(CXX).
5906 2017-10-09 Pedro Alves <palves@redhat.com>
5908 * cp-support.c (cp_remove_params): Return a gdb::unique_xmalloc_ptr.
5910 (overload_list_add_symbol): Adjust to use gdb::unique_xmalloc_ptr.
5911 * cp-support.h (cp_remove_params): Now returns a
5912 gdb::unique_xmalloc_ptr.
5913 * dwarf2read.c (find_slot_in_mapped_hash): Now returns bool.
5914 Adjust to cp_remove_params returning a gdb::unique_xmalloc_ptr.
5915 * psymtab.c (psymtab_search_name): Adjust to cp_remove_params
5916 returning a gdb::unique_xmalloc_ptr.
5917 (lookup_partial_symbol): Adjust to use gdb::unique_xmalloc_ptr.
5918 * stack.c (find_frame_funname): Adjust to cp_remove_params
5919 returning a gdb::unique_xmalloc_ptr.
5921 2017-10-08 Tom Tromey <tom@tromey.com>
5923 * dwarf2read.c (dwarf2_get_dwz_file): Use
5924 gdb::unique_xmalloc_ptr.
5925 (find_slot_in_mapped_hash): Likewise.
5926 (dwarf2_physname): Likewise.
5927 (create_dwo_unit_in_dwp_v1): Use std::string.
5928 (create_dwo_unit_in_dwp_v2): Likewise.
5929 (lookup_dwo_cutu): Likewise.
5930 (inherit_abstract_dies): Use std::vector.
5931 (read_array_type): Likewise.
5932 (dwarf_decode_macros): Remove unused declaration.
5933 (unsigned_int_compar): Remove.
5934 (dwarf2_build_psymtabs_hard): Use scoped_restore.
5935 (psymtabs_addrmap_cleanup): Remove.
5937 2017-10-08 Tom Tromey <tom@tromey.com>
5939 * frame-unwind.c (frame_unwind_try_unwinder): Update.
5940 * frame.h (frame_cleanup_after_sniffer): Declare.
5941 (frame_prepare_for_sniffer): Return void.
5942 * frame.c (frame_cleanup_after_sniffer): No longer static. Change
5944 (frame_prepare_for_sniffer): Return void.
5946 2017-10-08 Tom Tromey <tom@tromey.com>
5948 * utils.h (make_cleanup_value_free): Remove.
5949 * utils.c (do_value_free, struct cleanup): Remove.
5950 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>:
5952 * value.h (struct value_deleter): New.
5953 (gdb_value_up): New typedef.
5955 2017-10-08 Tom Tromey <tom@tromey.com>
5957 * symtab.c (free_search_symbols, do_free_search_symbols_cleanup)
5958 (make_cleanup_free_search_symbols): Remove.
5959 (search_symbols): Return std::vector.
5960 (symbol_search::compare_search_syms): Now member of
5961 symbol_search. Change arguments.
5962 (sort_search_symbols_remove_dups): Change arguments. Rewrite.
5963 (symtab_symbol_info, rbreak_command): Update.
5964 * symtab.h (struct symbol_search) <next>: Remove.
5966 (symbol_search::operator<): New function.
5967 (symbol_search::operator==): New function.
5968 (search_symbols): Remove std::vector.
5969 (free_search_symbols, make_cleanup_free_search_symbols): Remove.
5970 (symbol_search::compare_search_syms): Declare.
5972 2017-10-06 Yao Qi <yao.qi@linaro.org>
5974 * Makefile.in (ALL_64_TARGET_OBS): Replace aarch64-insn.o with
5975 arch/aarch64-insn.o.
5977 * configure.tgt: Replace aarch64-insn.o with arch/aarch64-insn.o.
5979 2017-10-06 Yao Qi <yao.qi@linaro.org>
5981 * Makefile.in (ALL_TARGET_OBS): Replace arm.o, arm-get-next-pcs.o,
5982 and arm-linux.o with arch/arm.o, arch/arm-get-next-pcs.o and
5983 arch/arm-linux.o respectively.
5984 * configure.tgt: Likewise.
5986 2017-10-06 Yao Qi <yao.qi@linaro.org>
5988 * Makefile.in (ALL_TARGET_OBS): Rename i386.o to arch/i386.o.
5989 * configure.tgt (i386_tobjs): Replace i386.o with arch/i386.o.
5991 2017-10-06 Pedro Alves <palves@redhat.com>
5993 * windows-nat.c: Include <algorithm>.
5995 2017-10-06 Yao Qi <yao.qi@linaro.org>
5997 * configure.tgt (i386_tobjs): New variable.
5998 (amd64_tobjs): New variable.
5999 Set $cpu_obs and $os_obs.
6001 2017-10-06 Yao Qi <yao.qi@linaro.org>
6003 * Makefile.in (CONFIG_SRC_SUBDIR): New.
6004 (ALL_64_TARGET_OBS): Replace amd64.o with arch/amd64.o.
6005 (clean): Remove object files and dependency files.
6006 (distclean): Remove the directory.
6007 * configure.ac: Invoke AC_CONFIG_COMMANDS.
6008 * configure: Re-generated.
6009 * configure.tgt: Replace amd64.o with arch/amd64.o.
6011 2017-10-05 Jose E. Marchesi <jose.marchesi@oracle.com>
6014 * arm-tdep.c (arm_decode_misc_memhint_neon): Fix decoding of CPS
6017 2017-10-05 Pedro Alves <palves@redhat.com>
6019 * linux-nat.c (linux_child_follow_fork): When following the parent
6020 and detaching the child, consult the parent thread's architecture
6021 instead of the child's.
6023 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
6025 * ax.h: Do not include "doublest.h".
6026 (union agent_val): Remove.
6028 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
6030 * dfp.h (MAX_DECIMAL_STRING): Move to dfp.c.
6031 (decimal_to_string): Return std::string object.
6032 (decimal_from_string): Accept std::string object. Return bool.
6033 (decimal_from_integral, decimal_from_doublest): Remove.
6034 (decimal_from_longest): Add prototype.
6035 (decimal_from_ulongest): Likewise.
6036 (decimal_to_longest): Likewise.
6037 (decimal_from_doublest): Likewise.
6038 * dfp.c: Do not include "gdbtypes.h" or "value.h".
6039 (MAX_DECIMAL_STRING): Move here.
6040 (decimal_to_string): Return std::string object.
6041 (decimal_from_string): Accept std::string object. Return bool.
6042 (decimal_from_integral): Remove, replace by ...
6043 (decimal_from_longest, decimal_from_ulongest): ... these new functions.
6044 (decimal_to_longest): New function.
6045 (decimal_from_floating): Remove, replace by ...
6046 (decimal_from_doublest): ... this new function.
6047 (decimal_to_doublest): Update to new decimal_to_string interface.
6049 * value.c (unpack_long): Use decimal_to_longest.
6050 * valops.c (value_cast): Use decimal_from_doublest instead of
6051 decimal_from_floating. Use decimal_from_[u]longest isntead of
6052 decimal_from_integral.
6053 * valarith.c (value_args_as_decimal): Likewise.
6054 * valprint.c (print_decimal_floating): Update to new
6055 decimal_to_string interface.
6056 * printcmd.c (printf_decfloat): Likewise.
6057 * c-exp.y (parse_number): Update to new decimal_from_string interface.
6059 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
6061 * doublest.h: Do not include "floatformat.h". Remove stale comments.
6062 * gdbtypes.c: Include "floatformat.h".
6063 * value.c: Likewise.
6064 * m68k-tdep.c: Likewise.
6066 * findvar.c: Do not include "floatformat.h".
6067 * amd64-darwin-tdep.c: Likewise.
6068 * arm-linux-tdep.c: Likewise.
6069 * i386-darwin-tdep.c: Likewise.
6070 * i387-tdep.c: Likewise.
6071 * m68k-linux-tdep.c: Likewise.
6072 * mep-tdep.c: Likewise.
6073 * mips-tdep.c: Likewise.
6074 * nios2-tdep.c: Likewise.
6075 * s390-linux-tdep.c: Likewise.
6076 * sparc-obsd-tdep.c: Likewise.
6077 * sparc-tdep.c: Likewise.
6078 * sparc64-tdep.c: Likewise.
6079 * spu-tdep.c: Likewise.
6080 * tic6x-tdep.c: Likewise.
6081 * tilegx-tdep.c: Likewise.
6082 * vax-tdep.c: Likewise.
6083 * xstormy16-tdep.c: Likewise.
6084 * xtensa-tdep.c: Likewise.
6086 * top.c: Do not include "doublest.h".
6087 * aarch64-tdep.c: Likewise.
6088 * alpha-tdep.c: Likewise.
6089 * arm-linux-tdep.c: Likewise.
6090 * m68k-linux-tdep.c: Likewise.
6091 * tilegx-tdep.c: Likewise.
6092 * xstormy16-tdep.c: Likewise.
6094 2017-10-05 John Baldwin <jhb@FreeBSD.org>
6096 * mips-fbsd-tdep.c (MIPS_INST_ADDIU_A0_SP_N32): Define.
6097 (mipsn32_fbsd_sigframe): Define.
6098 (mips_fbsd_init_abi): Install mipsn32_fbsd_sigframe unwinder
6099 for FreeBSD/mipsn32.
6101 2017-10-05 John Baldwin <jhb@FreeBSD.org>
6103 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_EHDRFLAGS and
6106 2017-10-05 Tristan Gingold <tgingold@free.fr>
6108 * MAINTAINERS (Misc): Update my email address.
6110 2017-10-04 Pedro Alves <palves@redhat.com>
6112 * remote.c (get_remote_arch_state): New 'gdbarch' parameter. Use
6113 it instead of target_gdbarch.
6114 (get_remote_state, get_remote_packet_size): Adjust
6115 get_remote_arch_state calls, passing down target_gdbarch
6117 (packet_reg_from_regnum, packet_reg_from_pnum): New parameter
6118 'gdbarch' and use it instead of target_gdbarch.
6119 (get_memory_packet_size): Adjust get_remote_arch_state calls,
6120 passing down target_gdbarch explicitly.
6121 (struct stop_reply) <arch>: New field.
6122 (remote_parse_stop_reply): Use the stopped thread's architecture,
6123 not the current inferior's. Save the architecture in the
6125 (process_stop_reply): Use the stop reply's architecture.
6126 (process_g_packet, remote_fetch_registers)
6127 (remote_prepare_to_store, store_registers_using_G)
6128 (remote_store_registers): Adjust get_remote_arch_state calls,
6129 using the regcache's architecture.
6130 (remote_get_trace_status): Adjust get_remote_arch_state calls,
6131 passing down target_gdbarch explicitly.
6132 * spu-multiarch.c (spu_thread_architecture): Defer to the target
6133 beneath instead of calling target_gdbarch.
6134 * target.c (default_thread_architecture): Use the specified
6135 inferior's architecture, instead of the current inferior's
6136 architecture (via target_gdbarch).
6138 2017-10-04 Pedro Alves <palves@redhat.com>
6140 * regcache.c (get_thread_arch_regcache): Remove null_ptid special
6142 (regcache_print): Handle !target_has_registers here instead.
6144 2017-10-04 Pedro Alves <palves@redhat.com>
6146 * frame.c (create_test_frame): Delete.
6147 * frame.h (create_test_frame): Delete.
6148 * gdbarch-selftests.c: Include gdbthread.h and target.h.
6149 (class regcache_test): Delete.
6150 (test_target_has_registers, test_target_has_stack)
6151 (test_target_has_memory, test_target_prepare_to_store)
6152 (test_target_store_registers): New functions.
6153 (test_target_ops): New class.
6154 (register_to_value_test): Error out if there's already a
6155 process_stratum (or higher) target pushed. Create a fuller mock
6156 environment, with mock target_ops, inferior, address space, thread
6158 * progspace.c (struct address_space): Move to ...
6159 * progspace.h (struct address_space): ... here.
6160 * regcache.h (regcache::~regcache, regcache::raw_write)
6161 [GDB_SELF_TEST]: No longer virtual.
6163 2017-10-04 Simon Marchi <simon.marchi@ericsson.com>
6165 * mi/mi-main.c (list_available_thread_groups): Reverse filter logic.
6167 2017-10-04 Pedro Alves <palves@redhat.com>
6169 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Move code
6170 out of 'between TRY and CATCH'.
6172 2017-10-04 Pedro Alves <palves@redhat.com>
6174 * cli/cli-cmds.c (complete_command): Add missing END_CATCH.
6175 * common/common-exceptions.h (TRY): Open an outermost scope.
6176 Expand intro comment.
6178 (END_CATCH): Close the outermost scope.
6179 * completer.c (complete_line_internal): Add missing END_CATCH.
6181 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6183 * NEWS (Changes since GDB 8.0): Add entry about new
6184 'set-cwd-on-gdbserver' feature.
6185 (New remote packets): Add entry for QSetWorkingDir.
6186 * common/common-inferior.h (set_inferior_cwd): New prototype.
6187 * infcmd.c (set_inferior_cwd): Remove "static".
6188 (show_cwd_command): Expand text to include remote debugging.
6189 * remote.c: Add PACKET_QSetWorkingDir.
6190 (remote_protocol_features) <QSetWorkingDir>: New entry for
6191 PACKET_QSetWorkingDir.
6192 (extended_remote_set_inferior_cwd): New function.
6193 (extended_remote_create_inferior): Call
6194 "extended_remote_set_inferior_cwd".
6195 (_initialize_remote): Call "add_packet_config_cmd" for
6198 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6200 * NEWS (New commands): Mention "set/show cwd".
6201 * cli/cli-cmds.c (_initialize_cli_cmds): Mention "set cwd" on
6202 "cd" command's help text.
6203 * common/common-inferior.h (get_inferior_cwd): New prototype.
6204 * infcmd.c (inferior_cwd_scratch): New global variable.
6205 (set_inferior_cwd): New function.
6206 (get_inferior_cwd): Likewise.
6207 (set_cwd_command): Likewise.
6208 (show_cwd_command): Likewise.
6209 (_initialize_infcmd): Add "set/show cwd" commands.
6210 * inferior.h (class inferior) <cwd>: New field.
6211 * nat/fork-inferior.c: Include "gdb_tilde_expand.h".
6212 (fork_inferior): Change inferior's cwd before its execution.
6213 * windows-nat.c (windows_create_inferior): Pass inferior's cwd
6216 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6218 * Makefile.in (SFILES): Add gdb_tilde_expand.c.
6219 (HFILES_NO_SRCDIR): Add gdb_tilde_expand.h.
6220 (COMMON_OBS): Add gdb_tilde_expand.o.
6221 * common/gdb_tilde_expand.c: New file.
6222 * common/gdb_tilde_expand.h: Likewise.
6224 2017-10-03 Maciej W. Rozycki <macro@imgtec.com>
6226 * gdbarch.sh (objfile): Remove duplicate declaration.
6227 * gdbarch.h: Regenerate.
6229 2017-10-03 Tom Tromey <tom@tromey.com>
6231 * utils.c (internal_vproblem): Use string_vprintf.
6233 2017-10-03 Tom Tromey <tom@tromey.com>
6235 * printcmd.c (info_symbol_command): Use std::string.
6237 2017-10-03 Tom Tromey <tom@tromey.com>
6239 * top.c (gdb_safe_append_history): Use std::string.
6241 2017-10-03 Tom Tromey <tom@tromey.com>
6243 * event-top.c (stdin_event_handler): Update.
6244 * main.c (captured_main_1): Update.
6245 * top.h (make_delete_ui_cleanup): Remove.
6246 (struct ui): Add constructor and destructor.
6247 (new_ui, delete_ui): Remove.
6248 * top.c (make_delete_ui_cleanup): Remove.
6249 (new_ui_command): Use std::unique_ptr.
6250 (delete_ui_cleanup): Remove.
6251 (ui::ui): Rename from new_ui. Update.
6253 (ui::~ui): Rename from delete_ui. Update.
6255 2017-10-03 Tom Tromey <tom@tromey.com>
6257 * symfile.c (load_progress): Use gdb::byte_vector.
6259 2017-10-03 Tom Tromey <tom@tromey.com>
6261 * mi/mi-main.c (mi_cmd_trace_frame_collected): Remove unused
6263 * printcmd.c (x_command): Remove unused declaration.
6264 * symfile.c (symbol_file_command): Remove unused declaration.
6266 2017-10-03 Tom Tromey <tom@tromey.com>
6268 * utils.c (internal_vproblem): Use std::string.
6269 (defaulted_query): Likewise.
6271 2017-10-03 Tom Tromey <tom@tromey.com>
6273 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Update.
6274 * top.c (execute_command_to_string): Update.
6275 * utils.c (make_cleanup_restore_page_info): Remove.
6276 (do_restore_page_info_cleanup): Remove.
6277 (set_batch_flag_and_restore_page_info):
6279 (make_cleanup_restore_page_info): Remove.
6280 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
6281 (~set_batch_flag_and_restore_page_info): New
6282 (make_cleanup_restore_uinteger): Remove.
6283 (make_cleanup_restore_integer): Remove.
6284 (struct restore_integer_closure): Remove.
6285 (restore_integer): Remove.
6286 * utils.h (struct set_batch_flag_and_restore_page_info): New
6288 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
6289 (make_cleanup_restore_page_info): Remove.
6290 (make_cleanup_restore_uinteger) Remove.
6291 (make_cleanup_restore_integer) Remove.
6293 2017-10-03 Tom Tromey <tom@tromey.com>
6295 * record-full.h (record_full_gdb_operation_disable_set): Return
6296 scoped_restore_tmpl<int>.
6297 * infrun.c (adjust_pc_after_break): Update.
6298 (handle_signal_stop): Update.
6299 * record-full.c (record_full_gdb_operation_disable_set): Return
6300 scoped_restore_tmpl<int>.
6301 (record_full_wait_1, record_full_insert_breakpoint)
6302 (record_full_remove_breakpoint, record_full_save)
6303 (record_full_goto_insn): Update.
6305 2017-10-02 Tom Tromey <tom@tromey.com>
6308 * rust-lang.c (rust_val_print_str): New function.
6309 (val_print_struct): Call it.
6310 (rust_subscript): Preserve name of slice type.
6312 2017-10-02 Tom Tromey <tom@tromey.com>
6314 * rust-lang.c (rust_subscript): Handle slices in
6315 EVAL_AVOID_SIDE_EFFECTS case.
6317 2017-10-02 Tom Tromey <tom@tromey.com>
6319 * rust-lang.c (rust_slice_type_p): Recognize &str as a slice type.
6321 2017-10-02 Tom Tromey <tom@tromey.com>
6323 * rust-lang.h (rust_slice_type): Add "extern".
6325 2017-10-02 Tom Tromey <tom@tromey.com>
6326 Pedro Alves <palves@redhat.com>
6328 * ada-lang.h (ada_exc_info::operator<): Make const.
6329 (ada_exc_info::operator==): Make const.
6330 * ada-lang.c (ada_exc_info::operator<, ada_exc_info::operator==):
6333 2017-09-29 Tom Tromey <tom@tromey.com>
6335 * target.c (read_whatever_is_readable): Change type of "result".
6337 (free_memory_read_result_vector): Remove.
6338 (read_memory_robust): Change return type. Update.
6339 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update. Use
6340 bin2hex, std::string.
6341 * target.h (memory_read_result_s): Remove typedef.
6342 (free_memory_read_result_vector): Remove.
6343 (read_memory_robust): Return std::vector.
6345 2017-09-29 Tom Tromey <tom@tromey.com>
6347 * mi/mi-main.c (captured_mi_execute_command): Use scope_restore.
6349 2017-09-29 Tom Tromey <tom@tromey.com>
6351 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Update.
6352 * ada-lang.h (struct ada_exc_info): Remove typedef. Declare
6353 operator< and operator==.
6354 (ada_exceptions_list): Return a std::vector.
6355 * ada-lang.c (ada_exc_info::operator<): Rename from
6356 compare_ada_exception_info.
6357 (ada_exc_info::operator==): New.
6358 (sort_remove_dups_ada_exceptions_list): Change type of
6360 (ada_add_standard_exceptions, ada_add_exceptions_from_frame)
6361 (ada_add_global_exceptions): Likewise.
6362 (ada_exceptions_list_1): Return a std::vector.
6363 (ada_exceptions_list): Likewise.
6365 2017-09-29 Tom Tromey <tom@tromey.com>
6367 * mi/mi-main.c (struct print_one_inferior_data) <inferiors>: Now a
6369 (print_one_inferior): Update.
6370 (free_vector_of_ints): Remove.
6371 (list_available_thread_groups): Change "ids" to std::set.
6372 (mi_cmd_list_thread_groups): Update.
6373 (struct collect_cores_data) <core>: Now a std::set.
6374 (collect_cores): Update.
6376 (print_one_inferior): Update.
6378 2017-09-29 Tom Tromey <tom@tromey.com>
6380 * mi/mi-main.c (mi_execute_cli_command): Use std::string.
6381 (mi_execute_async_cli_command): Likewise.
6382 (mi_cmd_trace_frame_collected): Use field_fmt.
6384 2017-09-29 Tom Tromey <tom@tromey.com>
6386 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Use
6389 2017-09-29 Tom Tromey <tom@tromey.com>
6391 * mi/mi-parse.c (mi_parse): Remove unused declaration.
6393 2017-09-29 Tom Tromey <tom@tromey.com>
6395 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Don't copy "oarg".
6397 2017-09-29 Tom Tromey <tom@tromey.com>
6399 * varobj.h (varobj_gen_name): Return std::string.
6400 * varobj.c (varobj_gen_name): Return std::string.
6401 * mi/mi-cmd-var.c (mi_cmd_var_create): Use std::string.
6402 (mi_cmd_var_delete): Don't copy "name".
6404 2017-09-29 Tom Tromey <tom@tromey.com>
6406 * mi/mi-cmd-break.c (mi_argv_to_format): Return std::string.
6407 (mi_cmd_break_insert_1): Update.
6409 2017-09-29 Tom Tromey <tom@tromey.com>
6411 * target.h (make_scoped_defer_target_commit_resume): Update.
6412 * target.c (make_scoped_defer_target_commit_resume): Rename from
6413 make_cleanup_defer_target_commit_resume. Return a
6415 * infrun.c (proceed): Use make_scoped_defer_target_commit_resume.
6417 2017-09-29 Tom Tromey <tom@tromey.com>
6419 * main.c (captured_main_1): Remove unused declaration.
6420 * spu-multiarch.c (parse_spufs_run): Remove unused declaration.
6422 2017-09-29 Tom Tromey <tom@tromey.com>
6424 * symtab.c (search_symbols): Remove unused outer cleanup.
6425 (make_source_files_completion_list): Remove unused declaration.
6427 2017-09-29 Tom Tromey <tom@tromey.com>
6429 * mt-tdep.c (mt_push_dummy_call): Use gdb::byte_vector.
6431 2017-09-29 Tom Tromey <tom@tromey.com>
6433 * xstormy16-tdep.c (xstormy16_push_dummy_call): Use
6436 2017-09-29 Tom Tromey <tom@tromey.com>
6438 * complaints.c (vcomplaint): Use std::string.
6440 2017-09-29 Tom Tromey <tom@tromey.com>
6442 * tracepoint.c (trace_variable_command): Use std::string.
6443 (encode_actions_1): Remove unused declarations.
6444 (create_tsv_from_upload): Use std::string.
6446 2017-09-29 Tom Tromey <tom@tromey.com>
6448 * cp-support.c (gdb_demangle): Use std::string.
6450 2017-09-29 Tom Tromey <tom@tromey.com>
6452 * stack.c (parse_frame_specification): Use std::string
6453 (info_frame_command): Use gdb::unique_xmalloc_ptr.
6455 2017-09-29 Tom Tromey <tom@tromey.com>
6457 * tilegx-tdep.c (tilegx_push_dummy_call): Use gdb::byte_vector.
6459 2017-09-29 Tom Tromey <tom@tromey.com>
6461 * utils.c (vfprintf_maybe_filtered): Use std::string.
6462 (vfprintf_unfiltered): Likewise.
6464 2017-09-29 Tom Tromey <tom@tromey.com>
6466 * event-top.c (top_level_prompt): Return std::string.
6467 (display_gdb_prompt): Update.
6469 2017-09-29 Tom Tromey <tom@tromey.com>
6471 * unittests/common-utils-selftests.c (format): New function.
6472 (string_vprintf_tests): New function.
6473 (_initialize_common_utils_selftests): Register new tests.
6474 * common/common-utils.c (string_vprintf): New function.
6475 * common/common-utils.h (string_vprintf): Declare.
6477 2017-09-29 Pedro Alves <palves@redhat.com>
6479 * common/rsp-low.c (unpack_varlen_hex): Constify.
6480 * common/rsp-low.h (unpack_varlen_hex): Constify.
6481 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
6483 * remote.c (remote_set_permissions, read_ptid)
6484 (remote_current_thread, remote_get_threads_with_qthreadinfo)
6485 (remote_static_tracepoint_marker_at)
6486 (remote_static_tracepoint_markers_by_strid)
6487 (stop_reply_extract_thread, remote_parse_stop_reply): Constify.
6488 * tracepoint.c (parse_trace_status, parse_tracepoint_status)
6489 (parse_tracepoint_definition, parse_tsv_definition)
6490 (parse_static_tracepoint_marker_definition): Constify.
6491 * tracepoint.h (parse_static_tracepoint_marker_definition)
6492 (parse_trace_status, parse_tracepoint_status)
6493 (parse_tracepoint_definition, parse_tsv_definition): Constify.
6495 2017-09-29 Pedro Alves <palves@redhat.com>
6497 * remote.c (target_buf, target_buf_size): Delete.
6498 (remote_get_noisy_reply): Remove buf_p and sizeof_buf parameters.
6499 Use the connection's packet buffer instead.
6500 All callers adjusted.
6501 (_initialize_remote): Remove references to target_buf and
6504 2017-09-28 Pedro Alves <palves@redhat.com>
6506 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
6507 unittests/common-utils-selftests.c.
6508 (SUBDIR_UNITTESTS_OBS): Add common-utils-selftests.o.
6509 (COMMON_OBS): Remove utils-selftests.o.
6510 * utils-selftests.c: Move to ...
6511 * unittests/common-utils-selftests.c: ... here and rename self
6512 test to "string_printf".
6514 2017-09-28 Alexander Shaposhnikov <alexander.v.shaposhnikov@gmail.com> (tiny patch)
6516 * dwarf2read.c (open_and_init_dwp_file): Protect against dwp_file
6517 having NULL cus or tus.
6519 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
6521 * arm-tdep.c: (convert_from_extended): Remove.
6522 (convert_to_extended): Likewise.
6523 (arm_extract_return_value): Use convert_typed_floating.
6524 (arm_store_return_value): Likewise.
6526 * sh-tdep.h (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
6527 * sh-tdep.c: Do not include "floatformat.h".
6528 (sh_littlebyte_bigword_type): New function.
6529 (sh_register_convert_to_virtual): Use convert_typed_floating.
6530 (sh_register_convert_to_raw): Likewise.
6531 * sh64-tdep.c: (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
6532 (sh64_littlebyte_bigword_type): New function.
6533 (sh64_extract_return_value): Use convert_typed_floating.
6534 (sh64_register_convert_to_virtual): Likewise.
6535 (sh64_register_convert_to_raw): Likewise.
6537 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
6539 * doublest.h (floatformat_from_type): Move to gdbtypes.h.
6540 * doublest.c (floatformat_from_type): Move to gdbtypes.c.
6542 * gdbtypes.h (union type_specific): Make field floatformat hold
6543 just a single struct floatformat, not an array.
6544 (floatformat_from_type): Move here.
6545 * gdbtypes.c (floatformat_from_type): Move here. Update to
6546 changed TYPE_FLOATFORMAT definition.
6547 (verify_floatformat): Update to changed TYPE_FLOATFORMAT.
6548 (recursive_dump_type): Likewise.
6549 (init_float_type): Install correct floatformat for byte order.
6550 (arch_float_type): Likewise.
6552 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
6554 * gdbtypes.c (init_type): Change incoming argument from
6555 length-in-bytes to length-in-bits. Assert length is a
6556 multiple of TARGET_CHAR_BITS.
6557 (arch_type, arch_flags_type): Likewise.
6558 (init_integer_type): Update call to init_type.
6559 (init_character_type): Likewise.
6560 (init_boolean_type): Likewise.
6561 (init_float_type): Likewise.
6562 (init_decfloat_type): Likewise.
6563 (init_complex_type): Likewise.
6564 (init_pointer_type): Likewise.
6565 (objfile_type): Likewise.
6566 (arch_integer_type): Update call to arch_type.
6567 (arch_character_type): Likewise.
6568 (arch_boolean_type): Likewise.
6569 (arch_float_type): Likewise.
6570 (arch_decfloat_type): Likewise.
6571 (arch_complex_type): Likewise.
6572 (arch_pointer_type): Likewise.
6573 (gdbtypes_post_init): Likewise.
6575 * dwarf2read.c (dwarf2_init_float_type): Update call to init_type.
6576 (read_base_type): Likewise.
6577 * mdebugread.c (basic_type): Likewise.
6578 * stabsread.c (dbx_init_float_type): Likewise.
6579 (rs6000_builtin_type): Likewise.
6580 (read_range_type): Likewise. Also, fix call to init_integer_type
6581 with erroneous length argument.
6583 * ada-lang.c (ada_language_arch_info): Update call to arch_type.
6584 * d-lang.c (build_d_types): Likewise.
6585 * f-lang.c (build_fortran_types): Likewise.
6586 * go-lang.c (build_go_types): Likewise.
6587 * opencl-lang.c (build_opencl_types): Likewise.
6588 * jit.c (finalize_symtab): Likewise.
6589 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
6590 (build_std_type_info_type): Likewise.
6591 * target-descriptions.c (tdesc_gdb_type): Likewise. Also,
6592 update call to arch_flags_type.
6594 * linux-tdep.c (linux_get_siginfo_type_with_fields): Update call to
6596 * fbsd-tdep.c (fbsd_get_siginfo_type): Likewise.
6597 * windows-tdep.c (windows_get_tlb_type): Likewise.
6599 * avr-tdep.c (avr_gdbarch_init): Update call to arch_type.
6600 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
6601 * m32c-tdep.c (make_types): Likewise.
6602 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
6603 (rl78_psw_type): Update call to arch_flags_type.
6604 * m68k-tdep.c (m68k_ps_type): Update call to arch_flags_type.
6605 * rx-tdep.c (rx_psw_type): Likewise.
6606 (rx_fpsw_type): Likewise.
6607 * sparc-tdep.c (sparc_psr_type): Likewise.
6608 (sparc_fsr_type): Likewise.
6609 * sparc64-tdep.c (sparc64_pstate_type): Likewise.
6610 (sparc64_ccr_type): Likewise.
6611 (sparc64_fsr_type): Likewise.
6612 (sparc64_fprs_type): Likewise.
6614 2017-09-27 Tom Tromey <tom@tromey.com>
6616 * findcmd.c (find_command): Constify.
6618 2017-09-27 Tom Tromey <tom@tromey.com>
6620 * ada-tasks.c (task_command_1, task_command): Constify.
6622 2017-09-27 Tom Tromey <tom@tromey.com>
6624 * symtab.c (maintenance_print_symbol_cache)
6625 (maintenance_flush_symbol_cache)
6626 (maintenance_print_symbol_cache_statistics): Constify.
6628 2017-09-27 Tom Tromey <tom@tromey.com>
6630 * inferior.c (detach_inferior_command, kill_inferior_command)
6631 (inferior_command): Constify.
6633 2017-09-27 Tom Tromey <tom@tromey.com>
6635 * regcache.c (regcache_print, maintenance_print_registers)
6636 (maintenance_print_raw_registers)
6637 (maintenance_print_cooked_registers)
6638 (maintenance_print_register_groups)
6639 (maintenance_print_remote_registers): Constify.
6641 2017-09-27 Tom Tromey <tom@tromey.com>
6643 * printcmd.c (map_display_numbers, undisplay_command)
6644 (enable_disable_display_command, enable_display_command)
6645 (disable_display_command): Constify.
6647 2017-09-27 Tom Tromey <tom@tromey.com>
6649 * breakpoint.h (delete_command): Don't declare.
6650 * breakpoint.c (delete_command, enable_once_command)
6651 (enable_count_command, enable_delete_command, breakpoint_1)
6652 (maintenance_info_breakpoints, stopin_command, stopat_command)
6653 (delete_command, delete_trace_command, save_breakpoints)
6654 (save_breakpoints_command, save_tracepoints_command): Constify.
6656 2017-09-27 Tom Tromey <tom@tromey.com>
6658 * macrocmd.c (macro_expand_command, macro_expand_once_command)
6659 (skip_ws, extract_identifier, macro_define_command)
6660 (macro_undef_command, macro_list_command): Constify.
6662 2017-09-27 Tom Tromey <tom@tromey.com>
6664 * infcmd.c (environment_info, set_environment_command)
6665 (unset_environment_command, path_info, info_proc_cmd_1)
6666 (info_proc_cmd_mappings, info_proc_cmd_stat)
6667 (info_proc_cmd_status, info_proc_cmd_cwd, info_proc_cmd_cmdline)
6668 (info_proc_cmd_exe, info_proc_cmd_all): Constify.
6670 2017-09-27 Tom Tromey <tom@tromey.com>
6672 * i386-tdep.c (i386_mpx_info_bounds, i386_mpx_set_bounds):
6675 2017-09-27 Tom Tromey <tom@tromey.com>
6677 * symfile-mem.c (add_symbol_file_from_memory_command): Constify.
6679 2017-09-27 Tom Tromey <tom@tromey.com>
6681 * demangle.c (demangle_command): Constify.
6683 2017-09-27 Tom Tromey <tom@tromey.com>
6685 * progspace.c (maintenance_info_program_spaces_command):
6688 2017-09-27 Tom Tromey <tom@tromey.com>
6690 * compile/compile.c (check_raw_argument, compile_file_command)
6691 (compile_code_command, compile_print_command): Constify.
6693 2017-09-27 Tom Tromey <tom@tromey.com>
6695 * reggroups.c (maintenance_print_reggroups): Constify.
6697 2017-09-27 Tom Tromey <tom@tromey.com>
6699 * dwarf2read.c (save_gdb_index_command): Constify.
6701 2017-09-27 Tom Tromey <tom@tromey.com>
6703 * stap-probe.c (info_probes_stap_command): Constify.
6705 2017-09-27 Tom Tromey <tom@tromey.com>
6707 * fork-child.c (unset_exec_wrapper_command): Constify.
6709 2017-09-27 Tom Tromey <tom@tromey.com>
6711 * btrace.c (get_uint, get_context_size, no_chunk)
6712 (maint_btrace_packet_history_cmd)
6713 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
6714 (maint_info_btrace_cmd): Constify.
6716 2017-09-27 Tom Tromey <tom@tromey.com>
6718 * reverse.c (delete_bookmark_command): Constify.
6720 2017-09-27 Tom Tromey <tom@tromey.com>
6722 * remote.c (set_memory_packet_size)
6723 (set_memory_write_packet_size, show_memory_write_packet_size)
6724 (set_memory_read_packet_size, show_memory_read_packet_size)
6725 (compare_sections_command, packet_command, remote_put_command)
6726 (remote_get_command, remote_delete_command): Constify.
6728 2017-09-27 Tom Tromey <tom@tromey.com>
6730 * mips-tdep.c (show_mipsfpu_command, set_mipsfpu_single_command)
6731 (set_mipsfpu_double_command, set_mipsfpu_none_command)
6732 (set_mipsfpu_auto_command): Constify.
6734 2017-09-27 Tom Tromey <tom@tromey.com>
6736 * cli/cli-cmds.h (cd_command): Constify.
6737 * cli/cli-cmds.c (cd_command): Constify.
6739 2017-09-27 Tom Tromey <tom@tromey.com>
6741 * thread.c (thread_name_command, thread_find_command): Constify.
6743 2017-09-27 Tom Tromey <tom@tromey.com>
6745 * probe.c (enable_probes_command, disable_probes_command):
6748 2017-09-27 Tom Tromey <tom@tromey.com>
6750 * symfile.c (symbol_file_command): Constify.
6751 * gdbcore.h (deprecated_file_changed_hook): Constify.
6752 * exec.c (deprecated_file_changed_hook, exec_file_command)
6753 (file_command): Constify.
6754 * defs.h (symbol_file_command): Constify.
6756 2017-09-27 Tom Tromey <tom@tromey.com>
6758 * remote-fileio.c (set_system_call_allowed)
6759 (show_system_call_allowed): Constify.
6761 2017-09-27 Tom Tromey <tom@tromey.com>
6763 * tracepoint.c (delete_trace_variable_command)
6764 (tfind_end_command, tfind_start_command, tfind_pc_command)
6765 (tfind_tracepoint_command, tfind_line_command)
6766 (tfind_range_command, tfind_outside_command): Constify.
6768 2017-09-27 Tom Tromey <tom@tromey.com>
6770 * ax-gdb.c (maint_agent_printf_command, agent_command)
6771 (agent_eval_command): Constify.
6773 2017-09-27 Tom Tromey <tom@tromey.com>
6775 * tracepoint.c (info_scope_command): Constify.
6776 * python/python.c (gdbpy_decode_line): Constify.
6777 * python/py-breakpoint.c (bppy_init): Constify.
6778 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Constify.
6779 * location.h: (new_linespec_location)
6780 (string_to_event_location_basic, string_to_event_location):
6782 * location.c (new_linespec_location)
6783 (string_to_event_location_basic, string_to_event_location):
6785 * linespec.h (decode_line_with_current_source)
6786 (decode_line_with_last_displayed, linespec_lex_to_end): Constify.
6787 * linespec.c (linespec_lex_to_end)
6788 (decode_line_with_current_source)
6789 (decode_line_with_last_displayed): Constify.
6790 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x):
6792 * cli/cli-cmds.c (edit_command, list_command): Constify.
6793 * breakpoint.h (until_break_command, watch_command_wrapper)
6794 (awatch_command_wrapper, rwatch_command_wrapper)
6795 (init_ada_exception_breakpoint): Constify.
6796 * breakpoint.c (break_command_1, dprintf_command)
6797 (break_range_command, watch_command_wrapper)
6798 (rwatch_command_wrapper, awatch_command_wrapper)
6799 (until_break_command, init_ada_exception_breakpoint)
6800 (strace_marker_create_sals_from_location, trace_command)
6801 (ftrace_command, strace_command, struct tracepoint): Constify.
6802 * ax-gdb.c (agent_command_1): Constify.
6803 * ada-lang.c (ada_exception_sal): Constify.
6805 2017-09-27 Tom Tromey <tom@tromey.com>
6807 * record.c (cmd_record_delete, cmd_record_stop, cmd_record_save)
6808 (cmd_record_goto_begin, cmd_record_goto_end, get_insn_number)
6809 (get_context_size, no_chunk, get_insn_history_modifiers)
6810 (cmd_record_insn_history, get_call_history_modifiers)
6811 (cmd_record_call_history): Constify.
6813 2017-09-27 Tom Tromey <tom@tromey.com>
6815 * source.c (show_substitute_path_command)
6816 (unset_substitute_path_command, set_substitute_path_command):
6819 2017-09-27 Tom Tromey <tom@tromey.com>
6821 * typeprint.c (maintenance_print_type): Constify.
6822 * maint.c (maintenance_dump_me, maintenance_demangle)
6823 (maintenance_time_display, maintenance_info_sections)
6824 (maintenance_print_statistics, maintenance_deprecate)
6825 (maintenance_undeprecate): Constify.
6826 (maintenance_do_deprecate): Constify. Use std::string.
6827 (maintenance_selftest): Constify.
6828 * gdbtypes.h (maintenance_print_type): Constify.
6830 2017-09-27 Tom Tromey <tom@tromey.com>
6832 * hppa-tdep.c (unwind_command): Constify.
6834 2017-09-27 Tom Tromey <tom@tromey.com>
6836 * target-descriptions.c (unset_tdesc_filename_cmd)
6837 (maint_print_c_tdesc_cmd, maintenance_check_xml_descriptions):
6840 2017-09-27 Tom Tromey <tom@tromey.com>
6842 * dummy-frame.c (maintenance_print_dummy_frames): Constify.
6844 2017-09-27 Tom Tromey <tom@tromey.com>
6846 * tui/tui.c (tui_enable_command, tui_disable_command): Constify.
6848 2017-09-27 Tom Tromey <tom@tromey.com>
6850 * tui/tui-regs.c (tui_reg_command): Constify.
6852 2017-09-27 Tom Tromey <tom@tromey.com>
6854 * skip.c (skip_file_command, skip_function_command)
6855 (skip_enable_command, skip_disable_command, skip_delete_command):
6858 2017-09-27 Tom Tromey <tom@tromey.com>
6860 * record-btrace.c (cmd_record_btrace_bts_start)
6861 (cmd_record_btrace_pt_start): Constify.
6863 2017-09-27 Tom Tromey <tom@tromey.com>
6865 * symmisc.c (maintenance_print_symbols)
6866 (maintenance_print_msymbols, maintenance_print_objfiles)
6867 (maintenance_info_symtabs, maintenance_check_symtabs)
6868 (maintenance_expand_symtabs, maintenance_info_line_tables):
6871 2017-09-27 Tom Tromey <tom@tromey.com>
6873 * top.c (new_ui_command): Constify.
6875 2017-09-27 Tom Tromey <tom@tromey.com>
6877 * symfile.c (add_symbol_file_command)
6878 (remove_symbol_file_command, list_overlays_command)
6879 (map_overlay_command, unmap_overlay_command)
6880 (overlay_auto_command, overlay_manual_command)
6881 (overlay_off_command, overlay_load_command): Constify.
6883 2017-09-27 Tom Tromey <tom@tromey.com>
6885 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
6886 (info_spu_mailbox_command, info_spu_dma_command)
6887 (info_spu_proxydma_command): Constify.
6889 2017-09-27 Tom Tromey <tom@tromey.com>
6891 * cli/cli-logging.c (set_logging_on, set_logging_off): Constify.
6893 2017-09-27 Tom Tromey <tom@tromey.com>
6895 * cli/cli-script.c (user_defined_command): Constify.
6897 2017-09-27 Tom Tromey <tom@tromey.com>
6899 * cli/cli-dump.c (dump_memory_command, dump_value_command)
6900 (dump_srec_memory, dump_srec_value, dump_ihex_memory)
6901 (dump_ihex_value, dump_verilog_memory, dump_verilog_value)
6902 (dump_tekhex_memory, dump_tekhex_value, dump_binary_memory)
6903 (dump_binary_value, append_binary_memory, append_binary_value):
6905 (struct dump_context) <func>: Constify.
6906 (add_dump_command): Update.
6908 2017-09-27 Tom Tromey <tom@tromey.com>
6910 * cli/cli-cmds.c (show_version, show_configuration)
6911 (source_command, show_user): Constify.
6913 2017-09-27 Tom Tromey <tom@tromey.com>
6915 * target.c (maintenance_print_target_stack): Constify.
6917 2017-09-27 Tom Tromey <tom@tromey.com>
6919 * interps.c (interpreter_exec_cmd): Constify.
6921 2017-09-27 Tom Tromey <tom@tromey.com>
6923 * record-full.c (cmd_record_full_restore): Constify.
6925 2017-09-27 Tom Tromey <tom@tromey.com>
6927 * memattr.c (enable_mem_command, disable_mem_command)
6928 (delete_mem_command): Constify.
6930 2017-09-27 Tom Tromey <tom@tromey.com>
6932 * value.c (show_convenience): Constify.
6934 2017-09-27 Tom Tromey <tom@tromey.com>
6936 * gdbcore.h (core_file_command): Update.
6937 * corefile.c (core_file_command): Constify.
6939 2017-09-27 Tom Tromey <tom@tromey.com>
6941 * user-regs.c (maintenance_print_user_registers): Constify.
6943 2017-09-27 Tom Tromey <tom@tromey.com>
6945 * cp-namespace.c (maintenance_cplus_namespace): Constify.
6947 2017-09-27 Tom Tromey <tom@tromey.com>
6949 * cp-support.c (first_component_command): Constify.
6951 2017-09-27 Tom Tromey <tom@tromey.com>
6953 * psymtab.c (maintenance_print_psymbols)
6954 (maintenance_info_psymtabs, maintenance_check_psymtabs):
6957 2017-09-27 Tom Tromey <tom@tromey.com>
6959 * windows-tdep.c (display_tib): Constify.
6961 2017-09-27 Tom Tromey <tom@tromey.com>
6963 * linux-fork.c (delete_checkpoint_command)
6964 (detach_checkpoint_command): Constify.
6966 2017-09-27 Tom Tromey <tom@tromey.com>
6968 * cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify.
6970 2017-09-27 Tom Tromey <tom@tromey.com>
6972 * arc-tdep.c (dump_arc_instruction_command): Constify.
6974 2017-09-27 Tom Tromey <tom@tromey.com>
6976 * valprint.c (set_radix, show_radix): Constify.
6978 2017-09-27 Tom Tromey <tom@tromey.com>
6980 * dtrace-probe.c (info_probes_dtrace_command): Constify.
6982 2017-09-27 Tom Tromey <tom@tromey.com>
6984 * command.h (not_just_help_class_command): Update.
6985 * cli/cli-decode.h (not_just_help_class_command): Update.
6986 * cli/cli-decode.c (not_just_help_class_command): Constify.
6988 2017-09-27 Tom Tromey <tom@tromey.com>
6990 * gdb_bfd.c (maintenance_info_bfds): Constify.
6992 2017-09-27 Tom Tromey <tom@tromey.com>
6994 * cli/cli-decode.c (add_cmd, set_cmd_cfunc): New function
6996 (do_add_cmd): Rename from add_cmd. Don't call set_cmd_cfunc.
6997 (do_const_cfunc): New function.
6998 (cmd_cfunc_eq): New overload.
6999 (cli_user_command_p): Check do_const_cfunc.
7000 * cli/cli-decode.h (struct cmd_list_element) <function>: New field
7002 * command.h (add_cmd): Add const overload and no-function
7004 (set_cmd_cfunc): Add const overload.
7005 (cmd_const_cfunc_ftype): Declare.
7006 (cmd_cfunc_eq): Add const overload.
7007 * breakpoint.c, cli-cmds.c, cli-dump.c, guile/scm-cmd.c,
7008 python/py-cmd.c, target.c, tracepoint.c: Use no-function add_cmd
7011 2017-09-27 Tom Tromey <tom@tromey.com>
7013 * macroexp.c (get_next_token_for_substitution): New function.
7014 (substitute_args): Call it. Check for __VA_OPT__.
7016 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
7017 Pedro Alves <palves@redhat.com>
7019 * dwarf2read.c (dwarf2_cu): Remove field producer_is_icc and add
7020 producer_is_icc_lt_14.
7021 (producer_is_icc_lt_14): New function.
7022 (check_producer): Add code for checking version of ICC.
7023 (producer_is_icc): Move to producer.c.
7024 (read_structure_type): Restrict ICC workaround to ICC<14.
7025 * producer.c: Include selftest.h.
7026 (producer_is_icc, producer_parsing_tests, _initialize_producer):
7028 * producer.h (producer_is_icc): New declaration.
7030 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
7032 * Makefile.in (SFILES): Add producer.c.
7033 (COMMON_OBS): Add producer.o
7034 * amd64-tdep.c (producer.h): Add new include.
7035 * dwarf2read.c (producer.h): Add new include.
7036 * producer.c: New file.
7037 * producer.h: New file.
7038 * utils.c (producer_is_gcc, producer_is_gcc_ge_4): Move to
7040 * utils.h (producer_is_gcc, producer_is_gcc_ge_4): Move to
7043 2017-09-26 Matthias Klose <doko@ubuntu.com>
7045 * configure.ac: Search ncursesw before ncurses.
7046 Check ncursesw/ncurses.h before ncurses/ncurses.h.
7047 * gdb_curses.h: Include <ncursesw/ncurses.h>
7048 * config.in, configure: Regenerate.
7050 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7053 * configure.host <*-*-solaris2.[01], *-*-solaris2.[2-9]*>: Mark as
7055 Use gdb_host sol2 for i[34567]86-*-solaris2*, x86_64-*-solaris2*.
7056 Remove i386sol2 support.
7057 * configure.nat <i386sol2>: Remove.
7058 <sol2-64>: Fold into ...
7060 Move common settings to default section.
7062 * configure.tgt <i[34567]86-*-solaris2.1[0-9]*,
7063 x86_64-*-solaris2.1[0-9]*>: Rename to ...
7064 <i[34567]86-*-solaris2*, x86_64-*-solaris2*>: ... this.
7065 <i[34567]86-*-solaris*>: Remove.
7066 <sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*>: Remove.
7068 * configure.ac: Remove wctype in libw check.
7069 (_MSE_INT_H): Don't define on Solaris 7-9.
7070 <solaris*>: Remove libthread_db.so.1 check.
7071 * configure: Regenerate.
7072 * config.in: Regenerate.
7074 * proc-service.c: Remove PROC_SERVICE_IS_OLD handling.
7075 (gdb_ps_prochandle_t, gdb_ps_read_buf_t, gdb_ps_write_buf_t)
7076 (gdb_ps_size_t): Remove.
7077 Use base types in users.
7078 * sol-thread.c: Likewise, also for gdb_ps_addr_t.
7080 * NEWS (Changes since GDB 8.0): Document Solaris 2.0-9 removal.
7082 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7085 * sparc64-tdep.c (adi_tag_fd): Print pid as long.
7086 (adi_is_addr_mapped): Likewise.
7087 (PSR_ICC): Don't redefine.
7088 (PSR_IMPL): Likewise.
7090 2017-09-25 Tom Tromey <tom@tromey.com>
7092 * regcache.c (regcache::dump): Use string_printf.
7094 2017-09-25 Tom Tromey <tom@tromey.com>
7096 * regcache.c (class regcache_invalidator): New.
7097 (struct register_to_invalidate): Remove.
7098 (make_cleanup_regcache_invalidate): Remove.
7099 (regcache::raw_write): Use regcache_invalidator.
7101 2017-09-25 Tom Tromey <tom@tromey.com>
7103 * spu-tdep.c (spu2ppu_sniffer): Update.
7104 * regcache.h (make_cleanup_regcache_xfree): Don't declare.
7105 * regcache.c (do_regcache_xfree, make_cleanup_regcache_xfree):
7107 * ppc-linux-tdep.c (ppu2spu_sniffer): Update.
7108 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Update.
7109 * frame.h (frame_save_as_regcache): Return std::unique_ptr.
7110 * frame.c (frame_save_as_regcache): Return std::unique_ptr.
7111 (frame_pop): Update.
7113 2017-09-25 Tom Tromey <tom@tromey.com>
7115 * spu-tdep.c (spu2ppu_dealloc_cache): Use delete.
7116 * regcache.h (regcache_xfree): Don't declare.
7117 * regcache.c (regcache_xfree): Remove.
7118 (do_regcache_xfree): Use delete.
7119 * ppc-linux-tdep.c (ppu2spu_dealloc_cache): Use delete.
7120 * linux-fork.c (free_fork): Use delete.
7121 (fork_save_infrun_state): Likewise.
7122 * jit.c (jit_dealloc_cache): Use delete.
7123 * infrun.c (discard_infcall_suspend_state): Use delete.
7125 2017-09-25 Tom Tromey <tom@tromey.com>
7127 * regcache.h (regcache_xmalloc): Don't declare.
7128 (regcache_raw_set_cached_value): Update comment.
7129 * regcache.c (regcache_xmalloc): Remove.
7130 * ppc-linux-tdep.c (ppu2spu_sniffer): Use new.
7131 * jit.c (jit_frame_sniffer): Use new.
7132 * frame.c (frame_save_as_regcache): Use new.
7134 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
7136 * NEWS: Advertise support for guarded-storage registers on IBM z.
7138 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
7140 * s390-linux-nat.c (have_regset_gs): New static variable.
7141 (s390_linux_fetch_inferior_registers): Handle guarded-storage
7142 control block and guarded-storage broadcast control regsets.
7143 (s390_read_description): Detect whether the target has
7144 guarded-storage support, return appropriate tdesc.
7145 * s390-linux-tdep.c (features/s390-gs-linux64.c): New include.
7146 (features/s390x-gs-linux64.c): Likewise.
7147 (struct gdbarch_tdep) <have_gs>: New field.
7148 (s390_regmap_gs, s390_regmap_gsbc, s390_gs_regset)
7149 (s390_gsbc_regset): New variables.
7150 (s390_iterate_over_regset_sections): Iterate over s390_gs_regset
7151 and s390_gsbc_regset, if applicable.
7152 (s390_core_read_description): Check whether core file was from a
7153 target with guarded-storage support; include appropriate regsets.
7154 (s390_gdbarch_init): Add registers for guarded-storage support.
7155 (_initialize_s390_tdep): Initialize new target descriptions that
7156 include registers for guarded-storage support.
7157 * s390-linux-tdep.h (HWCAP_S390_GS, S390_GSD_REGNUM)
7158 (S390_GSSM_REGNUM, S390_GSEPLA_REGNUM)
7159 (S390_BC_GSD_REGNUM, S390_BC_GSSM_REGNUM): New defines.
7160 (S390_NUM_REGS): Adjust macro definition.
7161 (s390_gs_regset, s390_gsbc_regset, tdesc_s390_gs_linux64)
7162 (tdesc_s390x_gs_linux64): New declarations.
7164 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
7166 * features/s390-gs-linux64.xml: New file.
7167 * features/s390-gs.xml: New file.
7168 * features/s390-gsbc.xml: New file.
7169 * features/s390x-gs-linux64.xml: New file.
7170 * features/Makefile (WHICH): Add s390-gs-linux64 and
7172 (s390-gs-linux64-expedite, s390x-gs-linux64-expedite): New macros.
7173 (XMLTOC): Add s390-gs-linux64.xml and s390x-linux64.xml.
7174 * features/s390-gs-linux64.c: New generated file.
7175 * features/s390x-gs-linux64.c: New file.
7176 * regformats/s390-gs-linux64.dat: New file.
7177 * regformats/s390x-gs-linux64.dat: New file.
7179 2017-09-23 Tom Tromey <tom@tromey.com>
7181 * defs.h (make_cleanup_override_quit_handler): Don't declare.
7183 2017-09-22 Tom Tromey <tom@tromey.com>
7185 * utils.c (class scoped_input_handler) <m_quit_handler>: Change
7186 type to scoped_restore_tmpl.
7187 <scoped_input_handler>: Initialize m_quit_handler directly.
7189 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
7191 * cli/cli-cmds.c (pwd_command): Use "getcwd (NULL, 0)".
7192 (cd_command): Likewise. Free "current_directory" before
7194 * main.c (captured_main_1): Use "getcwd (NULL, 0)".
7195 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Likewise.
7196 * top.c (gdb_dirbuf): Remove global declaration.
7197 * top.h (gdb_dirbuf): Likewise.
7199 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
7201 * gnulib/aclocal.m4: Regenerate.
7202 * gnulib/config.in: Regenerate.
7203 * gnulib/configure: Regenerate.
7204 * gnulib/import/Makefile.am: Regenerate.
7205 * gnulib/import/Makefile.in: Regenerate.
7206 * gnulib/import/assure.h: New file.
7207 * gnulib/import/at-func.c: Likewise
7208 * gnulib/import/chdir-long.c: New file.
7209 * gnulib/import/chdir-long.h: New file.
7210 * gnulib/import/cloexec.c: New file.
7211 * gnulib/import/cloexec.h: New file.
7212 * gnulib/import/close.c: New file.
7213 * gnulib/import/closedir.c: New file.
7214 * gnulib/import/dirent-private.h: New file.
7215 * gnulib/import/dup-safer.c: New file.
7216 * gnulib/import/dup.c: New file.
7217 * gnulib/import/dup2.c: New file.
7218 * gnulib/import/error.c: New file.
7219 * gnulib/import/error.h: New file.
7220 * gnulib/import/exitfail.c: New file.
7221 * gnulib/import/exitfail.h: New file.
7222 * gnulib/import/fchdir.c: New file.
7223 * gnulib/import/fcntl.c: New file.
7224 * gnulib/import/fcntl.in.h: New file.
7225 * gnulib/import/fd-hook.c: New file.
7226 * gnulib/import/fd-hook.h: New file.
7227 * gnulib/import/fd-safer.c: New file.
7228 * gnulib/import/fdopendir.c: New file.
7229 * gnulib/import/filename.h: New file.
7230 * gnulib/import/filenamecat-lgpl.c: New file.
7231 * gnulib/import/filenamecat.h: New file.
7232 * gnulib/import/fstat.c: New file.
7233 * gnulib/import/fstatat.c: New file.
7234 * gnulib/import/getcwd-lgpl.c: New file.
7235 * gnulib/import/getcwd.c: New file.
7236 * gnulib/import/getdtablesize.c: New file.
7237 * gnulib/import/getlogin_r.c: New file.
7238 * gnulib/import/getprogname.c: New file.
7239 * gnulib/import/getprogname.h: New file.
7240 * gnulib/import/gettext.h: New file.
7241 * gnulib/import/glob-libc.h: New file.
7242 * gnulib/import/glob.c: New file.
7243 * gnulib/import/glob.in.h: New file.
7244 * gnulib/import/intprops.h: New file.
7245 * gnulib/import/m4/chdir-long.m4: New file.
7246 * gnulib/import/m4/close.m4: New file.
7247 * gnulib/import/m4/closedir.m4: New file.
7248 * gnulib/import/m4/d-ino.m4: New file.
7249 * gnulib/import/m4/d-type.m4: New file.
7250 * gnulib/import/m4/dup.m4: New file.
7251 * gnulib/import/m4/dup2.m4: New file.
7252 * gnulib/import/m4/error.m4: New file.
7253 * gnulib/import/m4/fchdir.m4: New file.
7254 * gnulib/import/m4/fcntl.m4: New file.
7255 * gnulib/import/m4/fcntl_h.m4: New file.
7256 * gnulib/import/m4/fdopendir.m4: New file.
7257 * gnulib/import/m4/filenamecat.m4: New file.
7258 * gnulib/import/m4/fstat.m4: New file.
7259 * gnulib/import/m4/fstatat.m4: New file.
7260 * gnulib/import/m4/getcwd-abort-bug.m4: New file.
7261 * gnulib/import/m4/getcwd-path-max.m4: New file.
7262 * gnulib/import/m4/getcwd.m4: New file.
7263 * gnulib/import/m4/getdtablesize.m4: New file.
7264 * gnulib/import/m4/getlogin_r.m4: New file.
7265 * gnulib/import/m4/getprogname.m4: New file.
7266 * gnulib/import/m4/glob.m4: New file.
7267 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
7268 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
7269 * gnulib/import/m4/mempcpy.m4: New file.
7270 * gnulib/import/m4/memrchr.m4: New file.
7271 * gnulib/import/m4/mode_t.m4: New file.
7272 * gnulib/import/m4/msvc-inval.m4: New file.
7273 * gnulib/import/m4/msvc-nothrow.m4: New file.
7274 * gnulib/import/m4/open.m4: New file.
7275 * gnulib/import/m4/openat.m4: New file.
7276 * gnulib/import/m4/opendir.m4: New file.
7277 * gnulib/import/m4/readdir.m4: New file.
7278 * gnulib/import/m4/realloc.m4: New file.
7279 * gnulib/import/m4/rewinddir.m4: New file.
7280 * gnulib/import/m4/save-cwd.m4: New file.
7281 * gnulib/import/m4/strdup.m4: New file.
7282 * gnulib/import/m4/strerror.m4: New file.
7283 * gnulib/import/m4/unistd-safer.m4: New file.
7284 * gnulib/import/mempcpy.c: New file.
7285 * gnulib/import/memrchr.c: New file.
7286 * gnulib/import/msvc-inval.c: New file.
7287 * gnulib/import/msvc-inval.h: New file.
7288 * gnulib/import/msvc-nothrow.c: New file.
7289 * gnulib/import/msvc-nothrow.h: New file.
7290 * gnulib/import/open.c: New file.
7291 * gnulib/import/openat-die.c: New file.
7292 * gnulib/import/openat-priv.h: New file.
7293 * gnulib/import/openat-proc.c: New file.
7294 * gnulib/import/openat.c: New file.
7295 * gnulib/import/openat.h: New file.
7296 * gnulib/import/opendir.c: New file.
7297 * gnulib/import/pipe-safer.c: New file.
7298 * gnulib/import/readdir.c: New file.
7299 * gnulib/import/realloc.c: New file.
7300 * gnulib/import/rewinddir.c: New file.
7301 * gnulib/import/save-cwd.c: New file.
7302 * gnulib/import/save-cwd.h: New file.
7303 * gnulib/import/strdup.c: New file.
7304 * gnulib/import/strerror-override.c: New file.
7305 * gnulib/import/strerror-override.h: New file.
7306 * gnulib/import/strerror.c: New file.
7307 * gnulib/import/unistd--.h: New file.
7308 * gnulib/import/unistd-safer.h: New file.
7309 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
7310 "getcwd" and "glob".
7311 * ser-tcp.c: Undefine "close" before redefining it.
7313 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
7315 * guile/scm-value.c (gdbscm_value_address): Initialize address,
7318 2017-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7320 * configure.nat <i386sol2,i386>: Add fork-inferior.o to NATDEPFILES.
7321 <sol2,sparc>: Likewise.
7322 <sol2-64,i386>: Likewise.
7324 * warning.m4 (AM_GDB_WARNINGS): Disable -Wunknown-pragmas,
7325 -Wdeprecated-declarations on *-*-solaris*.
7326 * configure: Regenerate.
7328 * procfs.c: Include "nat/inferior.h".
7329 (procfs_info_proc): Fix typo.
7331 2017-09-21 Kevin Buettner <kevinb@redhat.com>
7333 * remote.c (vector): Include.
7334 (struct private_thread_info): Add field, thread_handle.
7335 (free_private_thread_info): Deallocate storage associated with
7337 (get_private_info_thread): Initialize `thread_handle' field.
7338 (struct thread_item): Add field, thread_handle.
7339 (clear_threads_listing_context): Deallocate storage associated
7341 (start_thread): Add support for "handle" attribute.
7342 (thread_attributes): Add "handle".
7343 (remote_get_threads_with_qthreadinfo): Initialize thread_handle
7345 (remote_update_thread_list): Update thread_handle.
7346 (remote_thread_handle_to_thread_info): New function.
7347 (init_remote_ops): Initialize to_thread_handle_to_thread_info.
7349 2017-09-21 Kevin Buettner <kevinb@redhat.com>
7351 * python/py-inferior.c (gdbpy_thread_from_thread_handle): New
7353 (inferior_object_methods): Add gdbpy_thread_from_thread_handle.
7354 * python/python-internal.h (thread_object_type): Declare.
7356 2017-09-21 Kevin Buettner <kevinb@redhat.com>
7358 * target.h (struct target_ops): Add to_thread_handle_to_thread_info.
7359 (target_thread_handle_to_thread_info): Declare.
7360 * target.c (target_thread_handle_to_thread_info): New function.
7361 * target-delegates.c: Regenerate.
7362 * gdbthread.h (find_thread_by_handle): Declare.
7363 * thread.c (find_thread_by_handle): New function.
7364 * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New
7366 (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info.
7368 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
7370 * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF.
7372 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
7374 * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF.
7376 2017-09-21 Yao Qi <yao.qi@linaro.org>
7378 * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o
7381 2017-09-20 Tom Tromey <tom@tromey.com>
7383 * breakpoint.c (struct counted_command_line): Remove.
7384 (breakpoint_commands): Update.
7385 (alloc_counted_command_line, incref_counted_command_line)
7386 (decref_counted_command_line, do_cleanup_counted_command_line)
7387 (make_cleanup_decref_counted_command_line): Remove.
7388 (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats)
7389 (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check)
7390 (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint)
7391 (save_breakpoints): Update.
7392 * breakpoint.h (counted_command_line): Now a typedef to
7394 (struct breakpoint) <commands>: Now a counted_command_line.
7395 (struct bpstats) <command>: Likewise.
7397 2017-09-20 Tom Tromey <tom@tromey.com>
7399 * breakpoint.c (struct commands_info, do_map_commands_command):
7401 (commands_command_1): Update.
7402 (iterate_over_related_breakpoints): Take a function_view.
7403 (do_delete_breakpoint, do_map_delete_breakpoint): Remove.
7404 (delete_command): Update.
7405 (map_breakpoint_numbers): Take a function_view.
7406 (do_disable_breakpoint, do_map_delete_breakpoint): Remove.
7407 (disable_command): Update.
7408 (do_enable_breakpoint, do_map_enable_breakpoint): Remove.
7409 (enable_command): Update.
7410 (struct disp_data, do_enable_breakpoint_disp)
7411 (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint)
7412 (do_map_enable_delete_breakpoint): Remove.
7413 (enable_once_command, enable_count_command, enable_delete_command)
7414 (delete_trace_variable_command): Update.
7416 2017-09-20 Tom Tromey <tom@tromey.com>
7418 * breakpoint.c (~bpstats): Rename from bpstat_free. Update.
7419 (bpstat_clear): Use delete.
7420 (bpstats): New constructors.
7421 (bpstat_copy, bpstat_stop_status): Use new.
7422 (dprintf_after_condition_true): Update.
7423 * breakpoint.h (bpstats::bpstats): Add constructors.
7424 (bpstats::~bpstats): Add destructor.
7426 2017-09-20 Pedro Alves <palves@redhat.com>
7428 * eval.c (make_params): Delete, refactored as ...
7429 (class fake_method): ... this new type's ctor.
7430 (fake_method::~fake_method): New.
7431 (evaluate_subexp_standard): Use 'fake_method'.
7433 2017-09-20 Tom Tromey <tom@tromey.com>
7435 * windows-nat.c (get_windows_debug_event, windows_wait)
7436 (do_initial_windows_stuff, windows_attach): Update.
7437 * utils.c (vwarning, internal_vproblem): Update.
7438 (ui_unregister_input_event_handler_cleanup)
7439 (prepare_to_handle_input): Remove.
7440 (class scoped_input_handler): New.
7441 (defaulted_query, prompt_for_continue): Update.
7442 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
7444 * top.c (undo_terminal_modifications_before_exit): Update.
7445 * target/target.h (target_terminal_init, target_terminal_inferior)
7446 (target_terminal_ours): Don't declare.
7447 (class target_terminal): New.
7448 * target.h (target_terminal_is_inferior, target_terminal_is_ours)
7449 (target_terminal_ours_for_output)
7450 (make_cleanup_restore_target_terminal): Don't declare.
7451 (target_terminal_info): Remove.
7452 * target.c (enum terminal_state, terminal_state): Remove.
7453 (target_terminal::terminal_state): Define.
7454 (target_terminal::init): Rename from target_terminal_init.
7455 (target_terminal::inferior): Rename from
7456 target_terminal_inferior.
7457 (target_terminal::ours): Rename from target_terminal_ours.
7458 (target_terminal::ours_for_output): Rename from
7459 target_terminal_ours_for_output.
7460 (target_terminal::info): New method.
7461 (cleanup_restore_target_terminal)
7462 (make_cleanup_restore_target_terminal): Remove.
7463 * solib.c (handle_solib_event): Update.
7464 * remote.c (remote_serial_quit_handler): Update.
7465 (remote_terminal_inferior, remote_wait_as): Update.
7466 * record-full.c (record_full_wait_1): Update.
7467 * nto-procfs.c (procfs_create_inferior): Update.
7468 * nat/fork-inferior.c (startup_inferior): Update.
7469 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
7470 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
7471 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
7472 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
7473 (mi_breakpoint_created, mi_breakpoint_deleted)
7474 (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded)
7475 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
7476 (mi_user_selected_context_changed, report_initial_inferior):
7478 * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours)
7479 (linux_nat_terminal_inferior): Update.
7480 * infrun.c (follow_fork_inferior)
7481 (handle_vfork_child_exec_or_exit, do_target_resume)
7482 (check_curr_ui_sync_execution_done, handle_inferior_event_1)
7483 (handle_signal_stop, maybe_remove_breakpoints, normal_stop):
7485 * inflow.c (child_terminal_init, info_terminal_command): Update.
7486 * infcmd.c (post_create_inferior, continue_1, prepare_one_step)
7487 (attach_command): Update.
7488 * infcall.c (call_thread_fsm_should_stop): Update.
7489 * gnu-nat.c (gnu_attach): Update.
7490 * extension.c (struct active_ext_lang_state)
7491 (restore_active_ext_lang): Update.
7492 * exceptions.c (print_flush): Update.
7493 * event-top.c (async_enable_stdin, default_quit_handler): Update.
7494 (struct quit_handler_cleanup_data, restore_quit_handler)
7495 (restore_quit_handler_dtor, make_cleanup_override_quit_handler):
7497 * cp-support.c (gdb_demangle): Update.
7498 * breakpoint.c (update_inserted_breakpoint_locations)
7499 (insert_breakpoint_locations, handle_jit_event)
7500 (disable_breakpoints_in_unloaded_shlib): Update.
7501 * annotate.c (annotate_breakpoints_invalid)
7502 (annotate_frames_invalid): Update.
7504 2017-09-20 Tom Tromey <tom@tromey.com>
7506 * main.c (catch_command_errors): Rename from
7507 catch_command_errors_const.
7508 (captured_main_1): Update.
7510 2017-09-20 Pedro Alves <palves@redhat.com>
7512 * cli/cli-cmds.c (list_command): Use print_sal_location.
7513 (print_sal_location): New function.
7514 (ambiguous_line_spec): Use print_sal_location.
7515 * linespec.c (symbol_to_sal): Record the symbol in the sal.
7516 * symtab.c (find_function_start_sal): Likewise.
7517 * symtab.h (symtab_and_line::symbol): New field.
7519 2017-09-20 Pedro Alves <palves@redhat.com>
7521 * linespec.c (minsym_found): Handle non-text minsyms.
7522 (symbol_to_sal): Record a sal.pc for non-block, non-label symbols.
7524 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
7526 * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing
7529 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
7531 * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use
7532 vmovups instead vmovaps.
7533 (move_zmm_data_to_memory): Use vmovups instead vmovaps.
7535 2017-09-19 John Baldwin <jhb@FreeBSD.org>
7537 * NEWS (Changes since GDB 8.0): Add starti.
7538 * infcmd.c (enum run_break): New.
7539 (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN
7541 (run_command): Use enum run_how.
7542 (start_command): Likewise.
7543 (starti_command): New function.
7544 (RUN_ARGS_HELP): New macro.
7545 (_initialize_infcmd): Use RUN_ARGS_HELP for run and start
7546 commands. Add starti command.
7548 2017-09-19 Yao Qi <yao.qi@linaro.org>
7550 * Makefile.in (monitor.o): Remove the rule.
7552 2017-09-19 Yao Qi <yao.qi@linaro.org>
7554 * annotate.h (struct annotate_arg_emitter): Use
7555 DISABLE_COPY_AND_ASSIGN.
7556 * common/refcounted-object.h (refcounted_object): Likewise.
7557 * completer.h (struct completion_result): Likewise.
7558 * dwarf2read.c (struct dwarf2_per_objfile): Likewise.
7559 * filename-seen-cache.h (filename_seen_cache): Likewise.
7560 * gdbcore.h (thread_section_name): Likewise.
7561 * gdb_regex.h (compiled_regex): Likewise.
7562 * gdbthread.h (scoped_restore_current_thread): Likewise.
7563 * inferior.h (scoped_restore_current_inferior): Likewise.
7564 * jit.c (jit_reader): Likewise.
7565 * linespec.h (struct linespec_result): Likewise.
7566 * mi/mi-parse.h (struct mi_parse): Likewise.
7567 * nat/fork-inferior.c (execv_argv): Likewise.
7568 * progspace.h (scoped_restore_current_program_space): Likewise.
7569 * python/python-internal.h (class gdbpy_enter): Likewise.
7570 * regcache.h (regcache): Likewise.
7571 * target-descriptions.c (struct tdesc_reg): Likewise.
7572 (struct tdesc_type): Likewise.
7573 (struct tdesc_feature): Likewise.
7574 * ui-out.h (ui_out_emit_type): Likewise.
7576 2017-09-18 Simon Marchi <simon.marchi@ericsson.com>
7578 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove
7579 label abort_expression.
7581 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7583 * common/buffer.c (buffer_xml_printf): Adjust.
7584 * common/xml-utils.c (xml_escape_text): Change return type to
7585 std::string, update code accordingly.
7586 * common/xml-utils.h (xml_escape_text): Change return type to
7588 * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust.
7589 * windows-tdep.c (windows_xfer_shared_library): Adjust.
7590 * unittests/xml-utils-selftests.c (test_xml_escape_text):
7593 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7595 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file.
7596 (SUBDIR_UNITTESTS_OBS): Add new object file.
7597 * unittests/xml-utils-selftests.c: New file.
7599 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7601 * common/selftest.h (selftest): New struct/interface.
7602 (register_test): Add name parameter, add new overload.
7603 (run_tests): Add filter parameter.
7604 (for_each_selftest_ftype): New typedef.
7605 (for_each_selftest): New declaration.
7606 * common/selftest.c (tests): Change type to
7607 map<string, unique_ptr<selftest>>.
7608 (simple_selftest): New struct.
7609 (register_test): New function.
7610 (register_test): Add name parameter and use it.
7611 (run_tests): Add filter parameter and use it. Add prints.
7612 Adjust to vector -> map change.
7613 * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when
7614 registering selftests.
7615 * arm-tdep.c (_initialize_arm_tdep): Likewise.
7616 * disasm-selftests.c (_initialize_disasm_selftests): Likewise.
7617 * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise.
7618 * dwarf2loc.c (_initialize_dwarf2loc): Likewise.
7619 * findvar.c (_initialize_findvar): Likewise.
7620 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise.
7621 * maint.c (maintenance_selftest): Update call to run_tests.
7622 (maintenance_info_selftests): New function.
7623 (_initialize_maint_cmds): Register "maintenance info selftests"
7624 command. Update "maintenance selftest" doc.
7625 * regcache.c (_initialize_regcache): Add names when registering
7627 * rust-exp.y (_initialize_rust_exp): Likewise.
7628 * selftest-arch.c (gdbarch_selftest): New struct.
7629 (gdbarch_tests): Remove.
7630 (register_test_foreach_arch): Add name parameter. Call
7632 (tests_with_arch): Remove, move most content to
7633 gdbarch_selftest::operator().
7634 (_initialize_selftests_foreach_arch): Remove.
7635 * selftest-arch.h (register_test_foreach_arch): Add name
7637 (run_tests_with_arch): New declaration.
7638 * utils-selftests.c (_initialize_utils_selftests): Add names
7639 when registering selftests.
7640 * utils.c (_initialize_utils): Likewise.
7641 * unittests/array-view-selftests.c
7642 (_initialize_array_view_selftests): Likewise.
7643 * unittests/environ-selftests.c (_initialize_environ_selftests):
7645 * unittests/function-view-selftests.c
7646 (_initialize_function_view_selftests): Likewise.
7647 * unittests/offset-type-selftests.c
7648 (_initialize_offset_type_selftests): Likewise.
7649 * unittests/optional-selftests.c
7650 (_initialize_optional_selftests): Likewise.
7651 * unittests/scoped_restore-selftests.c
7652 (_initialize_scoped_restore_selftests): Likewise.
7653 * NEWS: Document "maintenance selftest" and "maint info
7656 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7658 * mi/mi-main.c (mi_load_progress): Restore current_uiout using a
7661 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7663 * mi/mi-main.c (mi_load_progress): Make uiout variable
7666 2017-09-15 Pedro Alves <palves@redhat.com>
7668 * compile/compile-c-types.c (convert_enum, convert_int)
7669 (convert_float): Adjust to refer to int_type_v0 and float_type_v0.
7671 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7673 * dwarf2read.c (copy_string): Remove.
7674 (parse_macro_definition): Replace copy_string with savestring.
7676 2017-09-15 Yao Qi <yao.qi@linaro.org>
7678 * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to
7680 (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*):
7682 (i[34567]86-*-linux*): Likewise.
7684 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
7686 * dwarf2expr.h (dwarf_stack_value): Add constructor.
7687 (dwarf_expr_context) <~dwarf_expr_context>: Define as default.
7688 <stack>: Change type to std::vector.
7689 <stack_len, stack_allocated>: Remove.
7690 <grow_stack>: Remove.
7691 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
7692 (dwarf_expr_context::~dwarf_expr_context): Remove.
7693 (dwarf_expr_context::grow_stack): Remove.
7694 (dwarf_expr_context::push): Adjust.
7695 (dwarf_expr_context::pop): Adjust.
7696 (dwarf_expr_context::fetch): Adjust.
7697 (dwarf_expr_context::fetch_in_stack_memory): Adjust.
7698 (dwarf_expr_context::stack_empty_p): Adjust.
7699 (dwarf_expr_context::execute_stack_op): Adjust.
7701 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
7703 * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change
7704 return type to bool.
7705 * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise.
7707 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
7709 * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>:
7710 Change type to bool.
7711 (dwarf_stack_value) <in_stack_memory>: Likewise.
7712 (dwarf_expr_context) <push_address>: Change parameter type to
7714 <fetch_in_stack_memory>: Change return type to bool.
7715 <push>: Change parameter type to bool.
7716 * dwarf2expr.c (dwarf_expr_context::push): Change parameter type
7718 (dwarf_expr_context::push_address): Likewise.
7719 (dwarf_expr_context::fetch_in_stack_memory): Change return type
7721 (dwarf_expr_context::execute_stack_op): Adjust.
7722 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust.
7724 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
7726 * dwarf2expr.h (struct dwarf_expr_piece): Move up.
7727 (struct dwarf_expr_context) <n_pieces>: Remove.
7728 <pieces>: Change type to std::vector.
7729 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
7730 (dwarf_expr_context::~dwarf_expr_context): Don't manually free
7732 (dwarf_expr_context::add_piece): Adjust.
7733 * dwarf2loc.c (struct piece_closure): Initialize fields.
7735 <pieces>: Change type to std::vector.
7736 (allocate_piece_closure): Adjust, change parameter to
7737 std::vector rvalue and std::move it to piece_closure.
7738 (rw_pieced_value): Adjust.
7739 (check_pieced_synthetic_pointer): Adjust.
7740 (indirect_synthetic_pointer): Adjust.
7741 (coerce_pieced_ref): Adjust.
7742 (free_pieced_value_closure): Adjust. Use delete to free
7744 (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces
7745 to allocate_piece_closure.
7746 (dwarf2_loc_desc_get_symbol_read_needs): Adjust.
7748 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
7750 * probe.h (probe_ops_cp): Remove typedef.
7751 (DEF_VEC_P (probe_ops_cp)): Remove.
7752 (all_probe_ops): Change type to std::vector.
7753 * probe.c (info_probes_for_ops): Adjust to vector change.
7754 (probe_linespec_to_ops): Likewise.
7755 (all_probe_ops): Change type to std::vector.
7756 (_initialize_probe): Adjust to vector change.
7757 * dtrace-probe.c (_initialize_dtrace_probe): Likewise.
7758 * elfread.c (elf_get_probes): Likewise.
7759 * stap-probe.c (_initialize_stap_probe): Likewise.
7761 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
7763 * probe.h (struct bound_probe): Define constructors.
7764 * probe.c (bound_probe_s): Remove typedef.
7765 (DEF_VEC_O (bound_probe_s)): Remove VEC.
7766 (collect_probes): Change return type to std::vector, remove
7768 (compare_probes): Return bool, change parameter type. Change
7769 semantic to "less than".
7770 (gen_ui_out_table_header_info): Change parameter to std::vector
7772 (exists_probe_with_pops): Likewise.
7773 (info_probes_for_ops): Update to std::vector change.
7774 (enable_probes_command): Likewise.
7775 (disable_probes_command): Likewise.
7777 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
7779 * probe.h (struct probe_ops) <get_probes>: Change parameter from
7781 * probe.c (parse_probes_in_pspace): Update.
7782 (find_probes_in_objfile): Update.
7783 (find_probe_by_pc): Update.
7784 (collect_probes): Update.
7785 (probe_any_get_probes): Update.
7786 * symfile.h (struct sym_probe_fns) <sym_get_probes> Change
7787 return type to reference to std::vector.
7788 * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to
7789 std::vector and update.
7790 (dtrace_process_dof): Likewise.
7791 (dtrace_get_probes): Likewise.
7792 * elfread.c (elf_get_probes): Change return type to std::vector,
7793 store an std::vector in bfd_data.
7794 (probe_key_free): Update to std::vector.
7795 * stap-probe.c (handle_stap_probe): Change parameter to
7796 std::vector and update.
7797 (stap_get_probes): Likewise.
7798 * symfile-debug.c (debug_sym_get_probes): Change return type to
7799 std::vector and update.
7801 2017-09-11 Tom Tromey <tom@tromey.com>
7803 * breakpoint.c (program_breakpoint_here_p): Update.
7804 * target.c (make_scoped_restore_show_memory_breakpoints): Rename
7805 from make_show_memory_breakpoints_cleanup. Return a
7806 scoped_restore_tmpl<int>.
7807 (restore_show_memory_breakpoints): Remove.
7808 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update.
7809 * mem-break.c (memory_validate_breakpoint): Update.
7810 * ia64-tdep.c (ia64_memory_insert_breakpoint): Update.
7811 (ia64_memory_remove_breakpoint): Update.
7812 (ia64_breakpoint_from_pc): Update.
7813 * target.h (make_scoped_restore_show_memory_breakpoints): Rename
7814 from make_show_memory_breakpoints_cleanup.
7816 2017-09-11 Tom Tromey <tom@tromey.com>
7818 * d-namespace.c (d_lookup_symbol): Use std::string.
7819 (find_symbol_in_baseclass): Likewise.
7821 2017-09-11 Tom Tromey <tom@tromey.com>
7823 * ctf.c (ctf_start): Use std::string.
7825 2017-09-11 Tom Tromey <tom@tromey.com>
7827 * ada-lang.c (is_known_support_routine): Update.
7828 (ada_unhandled_exception_name_addr_from_raise): Update.
7829 * guile/scm-frame.c (gdbscm_frame_name): Update.
7830 * python/py-frame.c (frapy_name): Update.
7831 (frapy_function): Update.
7832 * stack.h (find_frame_funname): Update.
7833 * stack.c (find_frame_funname): Return unique_xmalloc_ptr.
7834 (print_frame): Update.
7836 2017-09-11 Tom Tromey <tom@tromey.com>
7838 * findcmd.c (put_bits): Take a gdb::byte_vector.
7839 (parse_find_args): Return gdb::byte_vector. "args" now const.
7840 Remove "pattern_bufp" and "pattern_lenp" parameters. Remove
7842 (find_command): Update.
7844 2017-09-11 Tom Tromey <tom@tromey.com>
7846 * cli/cli-script.c (class scoped_restore_hook_in): New.
7847 (clear_hook_in_cleanup): Remove.
7848 (execute_cmd_pre_hook, execute_cmd_post_hook): Use
7849 scoped_restore_hook_in.
7851 2017-09-11 Tom Tromey <tom@tromey.com>
7853 * cli/cli-script.c (restore_interp): Remove.
7854 (read_command_lines): Use scoped_restore_interp.
7855 * interps.c (scoped_restore_interp::set_temp): Rename from
7857 * interps.h (class scoped_restore_interp): New.
7858 (interp_set_temp): Remove.
7860 2017-09-11 Tom Tromey <tom@tromey.com>
7862 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
7863 (mi_cmd_catch_exception, mi_catch_load_unload): Update.
7864 * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a
7866 (mi_cmd_break_insert_1): Update.
7867 * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a
7870 2017-09-11 Tom Tromey <tom@tromey.com>
7872 * demangle.c (demangle_command): Update.
7873 * breakpoint.c (disable_command): Update.
7874 (enable_command): Update.
7875 (find_location_by_number): Make "number" const. Use
7877 * cli/cli-utils.c (extract_arg): Return std::string.
7878 * probe.c (parse_probe_linespec): Update. Change types.
7879 (collect_probes): Take string arguments.
7880 (parse_probe_linespec): Likewise.
7881 (info_probes_for_ops): Update.
7882 (enable_probes_command): Update.
7883 (disable_probes_command): Update.
7884 * break-catch-sig.c (catch_signal_split_args): Update.
7885 * mi/mi-parse.c (mi_parse): Update.
7887 2017-09-11 Tom Tromey <tom@tromey.com>
7889 * language.h (language_enum): Make argument const.
7890 * language.c (language_enum): Make argument const.
7892 2017-09-11 Tom Tromey <tom@tromey.com>
7894 * common/common-utils.h (skip_to_space): Remove macro, redeclare
7896 (skip_to_space): Rename from skip_to_space_const.
7897 * common/common-utils.c (skip_to_space): New function.
7898 (skip_to_space): Rename from skip_to_space_const.
7899 * cli/cli-utils.h (get_number): Rename from get_number_const.
7900 (extract_arg): Rename from extract_arg_const.
7901 * cli/cli-utils.c (get_number): Rename from get_number_const.
7902 (extract_arg): Rename from extract_arg_const.
7903 (number_or_range_parser::get_number): Use ::get_number.
7904 * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c,
7905 break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c,
7906 cli/cli-script.c, cli/cli-setshow.c, compile/compile.c,
7907 completer.c, demangle.c, disasm.c, findcmd.c, linespec.c,
7908 linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c,
7909 minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c,
7910 python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c,
7911 stap-probe.c, tid-parse.c, tracepoint.c: Update all callers.
7913 2017-09-11 Tom Tromey <tom@tromey.com>
7915 * python/python.c (do_start_initialization): Use
7916 py-event-types.def to initialize types.
7917 Define all object type structures.
7918 * python/python-internal.h: Don't declare event initialization
7920 * python/py-threadevent.c (thread_event_object_type): Don't
7922 * python/py-stopevent.c (stop_event_object_type): Don't define.
7923 * python/py-signalevent.c (signal_event_object_type): Don't
7925 * python/py-newobjfileevent.c (new_objfile_event_object_type)
7926 (clear_objfiles_event_object_type): Don't declare or define.
7927 * python/py-infevents.c (inferior_call_pre_event_object_type)
7928 (inferior_call_post_event_object_type)
7929 (register_changed_event_object_type)
7930 (memory_changed_event_object_type): Don't declare or define.
7931 * python/py-inferior.c (new_thread_event_object_type)
7932 (new_inferior_event_object_type)
7933 (inferior_deleted_event_object_type): Don't declare or define.
7934 * python/py-exitedevent.c (exited_event_object_type): Don't
7936 * python/py-evts.c (gdbpy_initialize_py_events): Use
7938 * python/py-events.h (thread_event_object_type): Don't declare.
7939 (events_object): Use py-all-events.def.
7940 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use
7942 * python/py-event-types.def: New file.
7943 * python/py-continueevent.c (create_continue_event_object): Don't
7945 * python/py-bpevent.c (breakpoint_event_object_type): Don't
7947 * python/py-all-events.def: New file.
7949 2017-09-11 Tom Tromey <tom@tromey.com>
7951 * python/py-threadevent.c (create_thread_event_object): Return
7953 * python/py-stopevent.h (create_stop_event_object)
7954 (create_breakpoint_event_object, create_signal_event_object):
7956 * python/py-stopevent.c (create_stop_event_object): Return
7958 (emit_stop_event): Update.
7959 * python/py-signalevent.c (create_signal_event_object): Return
7961 * python/py-infevents.c (create_inferior_call_event_object):
7963 * python/py-event.h (create_event_object)
7964 (create_thread_event_object): Update.
7965 * python/py-event.c (create_event_object): Return gdbpy_ref.
7966 * python/py-continueevent.c: Return gdbpy_ref.
7967 * python/py-bpevent.c (create_breakpoint_event_object): Return
7970 2017-09-11 Tom Tromey <tom@tromey.com>
7974 * python/python.c (do_start_initialization): Initialize new event
7976 * python/python-internal.h (gdbpy_initialize_new_inferior_event)
7977 (gdbpy_initialize_inferior_deleted_event)
7978 (gdbpy_initialize_new_thread_event): Declare.
7979 * python/py-threadevent.c (create_thread_event_object): Add option
7981 * python/py-inferior.c (new_thread_event_object_type)
7982 (new_inferior_event_object_type)
7983 (inferior_deleted_event_object_type): Declare.
7984 (python_new_inferior, python_inferior_deleted): New functions.
7985 (add_thread_object): Emit new_thread event.
7986 (gdbpy_initialize_inferior): Attach new functions to corresponding
7988 (new_thread, new_inferior, inferior_deleted): Define new event
7990 * python/py-evts.c (gdbpy_initialize_py_events): Add new
7992 * python/py-events.h (events_object) <new_inferior,
7993 inferior_deleted, new_thread>: New fields.
7994 * python/py-event.h (create_thread_event_breakpoint): Add optional
7997 2017-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
7999 * utils.c (abort_with_message): Don't compare gdb_stderr to NULL,
8000 check current_ui instead.
8001 (internal_vproblem): Likewise.
8003 2017-09-09 Simon Marchi <simon.marchi@ericsson.com>
8005 * thread.c (print_thread_info_1): Remove unnecessary calls to
8006 uiout->is_mi_like_p.
8008 2017-09-09 Tom Tromey <tom@tromey.com>
8010 * namespace.h (add_using_directive): Update.
8011 * namespace.c (add_using_directive): Change type of excludes to
8013 * dwarf2read.c (read_import_statement): Use std::vector.
8014 (read_namespace): Update.
8015 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
8017 2017-09-09 Tom Tromey <tom@tromey.com>
8019 * linespec.c (create_sals_line_offset): Use gdb::def_vector.
8021 2017-09-09 Tom Tromey <tom@tromey.com>
8023 * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector.
8025 2017-09-09 Tom Tromey <tom@tromey.com>
8027 * stack.c (func_command): Use gdb::def_vector.
8029 2017-09-09 Tom Tromey <tom@tromey.com>
8031 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional,
8032 ui_out_emit_list, ui_out_emit_tuple.
8033 (mi_cmd_var_update): Likewise.
8035 2017-09-09 Tom Tromey <tom@tromey.com>
8037 * mi/mi-interp.c (mi_user_selected_context_changed): Use
8038 ui_out_redirect_pop.
8039 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
8040 ui_out_redirect_pop.
8041 * utils.c (do_ui_out_redirect_pop)
8042 (make_cleanup_ui_out_redirect_pop): Remove.
8043 * top.c (execute_command_to_string): Use ui_out_redirect_pop.
8044 * utils.h (make_cleanup_ui_out_redirect_pop): Remove.
8045 * ui-out.h (ui_out_redirect_pop): New class.
8047 2017-09-09 Tom Tromey <tom@tromey.com>
8049 * mi/mi-main.c (output_cores): Use ui_out_emit_list.
8050 (list_available_thread_groups, mi_cmd_list_thread_groups)
8051 (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory)
8052 (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected):
8055 2017-09-09 Tom Tromey <tom@tromey.com>
8057 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
8060 2017-09-09 Tom Tromey <tom@tromey.com>
8062 * target.c (flash_erase_command): Use ui_out_emit_tuple.
8063 * stack.c (print_frame): Use ui_out_emit_tuple.
8064 * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple.
8065 (info_spu_mailbox_command, info_spu_dma_command)
8066 (info_spu_proxydma_command): Likewise.
8067 * mi/mi-main.c (mi_cmd_trace_frame_collected): Use
8068 ui_out_emit_tuple, gdb::byte_vector, bin2hex.
8069 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
8071 * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple.
8073 2017-09-09 Tom Tromey <tom@tromey.com>
8075 * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove.
8076 (class ui_out_emit_table): Update comment.
8077 * ui-out.c (do_cleanup_table_end)
8078 (make_cleanup_ui_out_table_begin_end): Remove.
8079 * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table.
8080 (info_spu_dma_cmdlist): Likewise.
8081 * probe.c (info_probes_for_ops): Use ui_out_emit_table.
8082 * darwin-nat-info.c (darwin_debug_regions_recurse): Use
8085 2017-09-09 Tom Tromey <tom@tromey.com>
8087 * thread.c (print_thread_info_1): Use ui_out_emit_table,
8088 ui_out_emit_list, gdb::optional.
8090 2017-09-09 John Baldwin <jhb@FreeBSD.org>
8092 * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat
8094 * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep
8096 * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep
8098 * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype.
8099 * ada-exp.y: Remove _initialize_ada_exp prototype.
8100 * ada-lang.c: Remove _initialize_ada_language prototype.
8101 * ada-tasks.c: Remove _initialize_tasks prototype.
8102 * addrmap.c: Remove _initialize_addrmap prototype.
8103 * agent.c: Remove _initialize_agent prototype.
8104 * aix-thread.c: Remove _initialize_aix_thread prototype.
8105 * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype.
8106 * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype.
8107 * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep
8109 * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype.
8110 * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype.
8111 * alpha-tdep.c: Remove _initialize_alpha_tdep prototype.
8112 * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep
8114 * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep
8116 * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype.
8117 * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype.
8118 * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype.
8119 * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep
8121 * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype.
8122 * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype.
8123 * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype.
8124 * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype.
8125 * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
8126 * amd64-tdep.c: Remove _initialize_amd64_tdep prototype.
8127 * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat
8129 * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep
8131 * annotate.c: Remove _initialize_annotate prototype.
8132 * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype.
8133 * arc-tdep.c: Remove _initialize_arc_tdep prototype.
8134 * arch-utils.c: Remove _initialize_gdbarch_utils prototype.
8135 * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype.
8136 * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype.
8137 * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype.
8138 * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype.
8139 * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep
8141 * arm-tdep.c: Remove _initialize_arm_tdep prototype.
8142 * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype.
8143 * auto-load.c: Remove _initialize_auto_load prototype.
8144 * auxv.c: Remove _initialize_auxv prototype.
8145 * avr-tdep.c: Remove _initialize_avr_tdep prototype.
8146 * ax-gdb.c: Remove _initialize_ax_gdb prototype.
8147 * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype.
8148 * bfin-tdep.c: Remove _initialize_bfin_tdep prototype.
8149 * break-catch-sig.c: Remove _initialize_break_catch_sig prototype.
8150 * break-catch-syscall.c: Remove _initialize_break_catch_syscall
8152 * break-catch-throw.c: Remove _initialize_break_catch_throw
8154 * breakpoint.c: Remove _initialize_breakpoint prototype.
8155 * bsd-uthread.c: Remove _initialize_bsd_uthread prototype.
8156 * btrace.c: Remove _initialize_btrace prototype.
8157 * charset.c: Remove _initialize_charset prototype.
8158 * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype.
8159 * cli/cli-dump.c: Remove _initialize_cli_dump prototype.
8160 * cli/cli-interp.c: Remove _initialize_cli_interp prototype.
8161 * cli/cli-logging.c: Remove _initialize_cli_logging prototype.
8162 * cli/cli-script.c: Remove _initialize_cli_script prototype.
8163 * coff-pe-read.c: Remove _initialize_coff_pe_read prototype.
8164 * coffread.c: Remove _initialize_coffread prototype.
8165 * compile/compile.c: Remove _initialize_compile prototype.
8166 * complaints.c: Remove _initialize_complaints prototype.
8167 * completer.c: Remove _initialize_completer prototype.
8168 * copying.awk: Remove _initialize_copying prototype.
8169 * copying.c: Regenerate.
8170 * core-regset.c: Remove _initialize_core_regset prototype.
8171 * corefile.c: Remove _initialize_core prototype.
8172 * corelow.c: Remove _initialize_corelow prototype.
8173 * cp-abi.c: Remove _initialize_cp_abi prototype.
8174 * cp-namespace.c: Remove _initialize_cp_namespace prototype.
8175 * cp-support.c: Remove _initialize_cp_support prototype.
8176 * cp-valprint.c: Remove _initialize_cp_valprint prototype.
8177 * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype.
8178 * cris-tdep.c: Remove _initialize_cris_tdep prototype.
8179 * ctf.c: Remove _initialize_ctf prototype.
8180 * d-lang.c: Remove _initialize_d_language prototype.
8181 * darwin-nat-info.c: Remove _initialize_darwin_info_commands
8183 * darwin-nat.c: Remove _initialize_darwin_inferior prototype.
8184 * dbxread.c: Remove _initialize_dbxread prototype.
8185 * dcache.c: Remove _initialize_dcache prototype.
8186 * demangle.c: Remove _initialize_demangler prototype.
8187 * disasm-selftests.c: Remove _initialize_disasm_selftests
8189 * disasm.c: Remove _initialize_disasm prototype.
8190 * dtrace-probe.c: Remove _initialize_dtrace_probe prototype.
8191 * dummy-frame.c: Remove _initialize_dummy_frame prototype.
8192 * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame
8194 * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype.
8195 * dwarf2expr.c: Remove _initialize_dwarf2expr prototype.
8196 * dwarf2loc.c: Remove _initialize_dwarf2loc prototype.
8197 * dwarf2read.c: Remove _initialize_dwarf2_read prototype.
8198 * elfread.c: Remove _initialize_elfread prototype.
8199 * exec.c: Remove _initialize_exec prototype.
8200 * extension.c: Remove _initialize_extension prototype.
8201 * f-lang.c: Remove _initialize_f_language prototype.
8202 * f-valprint.c: Remove _initialize_f_valprint prototype.
8203 * fbsd-nat.c: Remove _initialize_fbsd_nat prototype.
8204 * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype.
8205 * filesystem.c: Remove _initialize_filesystem prototype.
8206 * findcmd.c: Remove _initialize_mem_search prototype.
8207 * fork-child.c: Remove _initialize_fork_child prototype.
8208 * frame-base.c: Remove _initialize_frame_base prototype.
8209 * frame-unwind.c: Remove _initialize_frame_unwind prototype.
8210 * frame.c: Remove _initialize_frame prototype.
8211 * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype.
8212 * frv-tdep.c: Remove _initialize_frv_tdep prototype.
8213 * ft32-tdep.c: Remove _initialize_ft32_tdep prototype.
8214 * gcore.c: Remove _initialize_gcore prototype.
8215 * gdb_bfd.c: Remove _initialize_gdb_bfd prototype.
8216 * gdbarch.c: Regenerate.
8217 * gdbarch.sh: Remove _initialize_gdbarch prototype.
8218 * gdbtypes.c: Remove _initialize_gdbtypes prototype.
8219 * gnu-nat.c: Remove _initialize_gnu_nat prototype.
8220 * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype.
8221 * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype.
8222 * go-lang.c: Remove _initialize_go_language prototype.
8223 * go32-nat.c: Remove _initialize_go32_nat prototype.
8224 * guile/guile.c: Remove _initialize_guile prototype.
8225 * h8300-tdep.c: Remove _initialize_h8300_tdep prototype.
8226 * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype.
8227 * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype.
8228 * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype.
8229 * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype.
8230 * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype.
8231 * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype.
8232 * hppa-tdep.c: Remove _initialize_hppa_tdep prototype.
8233 * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype.
8234 * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep
8236 * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep
8238 * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype.
8239 * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype.
8240 * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype.
8241 * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype.
8242 * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype.
8243 * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype.
8244 * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype.
8245 * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype.
8246 * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype.
8247 * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype.
8248 * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype.
8249 * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype.
8250 * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype.
8251 * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
8252 * i386-tdep.c: Remove _initialize_i386_tdep prototype.
8253 * i386-windows-nat.c: Remove _initialize_i386_windows_nat
8255 * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame
8257 * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype.
8258 * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype.
8259 * ia64-tdep.c: Remove _initialize_ia64_tdep prototype.
8260 * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype.
8261 * infcall.c: Remove _initialize_infcall prototype.
8262 * infcmd.c: Remove _initialize_infcmd prototype.
8263 * inferior.c: Remove _initialize_inferiors prototype.
8264 * inflow.c: Remove _initialize_inflow prototype.
8265 * infrun.c: Remove _initialize_infrun prototype.
8266 * interps.c: Remove _initialize_interpreter prototype.
8267 * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype.
8268 * jit.c: Remove _initialize_jit prototype.
8269 * language.c: Remove _initialize_language prototype.
8270 * linux-fork.c: Remove _initialize_linux_fork prototype.
8271 * linux-nat.c: Remove _initialize_linux_nat prototype.
8272 * linux-tdep.c: Remove _initialize_linux_tdep prototype.
8273 * linux-thread-db.c: Remove _initialize_thread_db prototype.
8274 * lm32-tdep.c: Remove _initialize_lm32_tdep prototype.
8275 * m2-lang.c: Remove _initialize_m2_language prototype.
8276 * m32c-tdep.c: Remove _initialize_m32c_tdep prototype.
8277 * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype.
8278 * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype.
8279 * m32r-tdep.c: Remove _initialize_m32r_tdep prototype.
8280 * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype.
8281 * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
8282 * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
8283 * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype.
8284 * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype.
8285 * m68k-tdep.c: Remove _initialize_m68k_tdep prototype.
8286 * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
8287 * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
8288 * machoread.c: Remove _initialize_machoread prototype.
8289 * macrocmd.c: Remove _initialize_macrocmd prototype.
8290 * macroscope.c: Remove _initialize_macroscope prototype.
8291 * maint.c: Remove _initialize_maint_cmds prototype.
8292 * mdebugread.c: Remove _initialize_mdebugread prototype.
8293 * memattr.c: Remove _initialize_mem prototype.
8294 * mep-tdep.c: Remove _initialize_mep_tdep prototype.
8295 * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype.
8296 * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype.
8297 * mi/mi-interp.c: Remove _initialize_mi_interp prototype.
8298 * mi/mi-main.c: Remove _initialize_mi_main prototype.
8299 * microblaze-linux-tdep.c: Remove
8300 _initialize_microblaze_linux_tdep prototype.
8301 * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype.
8302 * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype.
8303 * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype.
8304 * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype.
8305 * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype.
8306 * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype.
8307 * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype.
8308 * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype.
8309 * mips-tdep.c: Remove _initialize_mips_tdep prototype.
8310 * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype.
8311 * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep
8313 * mipsread.c: Remove _initialize_mipsread prototype.
8314 * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep
8316 * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype.
8317 * moxie-tdep.c: Remove _initialize_moxie_tdep prototype.
8318 * msp430-tdep.c: Remove _initialize_msp430_tdep prototype.
8319 * mt-tdep.c: Remove _initialize_mt_tdep prototype.
8320 * nds32-tdep.c: Remove _initialize_nds32_tdep prototype.
8321 * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep
8323 * nios2-tdep.c: Remove _initialize_nios2_tdep prototype.
8324 * nto-procfs.c: Remove _initialize_procfs prototype.
8325 * nto-tdep.c: Remove _initialize_nto_tdep prototype.
8326 * objc-lang.c: Remove _initialize_objc_language prototype.
8327 * objfiles.c: Remove _initialize_objfiles prototype.
8328 * observer.c: Remove observer_test_first_notification_function,
8329 observer_test_second_notification_function,
8330 observer_test_third_notification_function, and
8331 _initialize_observer prototypes.
8332 * opencl-lang.c: Remove _initialize_opencl_language prototypes.
8333 * osabi.c: Remove _initialize_gdb_osabi prototype.
8334 * osdata.c: Remove _initialize_osdata prototype.
8335 * p-valprint.c: Remove _initialize_pascal_valprint prototype.
8336 * parse.c: Remove _initialize_parse prototype.
8337 * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype.
8338 * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype.
8339 * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype.
8340 * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype.
8341 * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype.
8342 * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype.
8343 * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype.
8344 * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype.
8345 * printcmd.c: Remove _initialize_printcmd prototype.
8346 * probe.c: Remove _initialize_probe prototype.
8347 * proc-api.c: Remove _initialize_proc_api prototype.
8348 * proc-events.c: Remove _initialize_proc_events prototype.
8349 * proc-service.c: Remove _initialize_proc_service prototype.
8350 * procfs.c: Remove _initialize_procfs prototype.
8351 * psymtab.c: Remove _initialize_psymtab prototype.
8352 * python/python.c: Remove _initialize_python prototype.
8353 * ravenscar-thread.c: Remove _initialize_ravenscar prototype.
8354 * record-btrace.c: Remove _initialize_record_btrace prototype.
8355 * record-full.c: Remove _initialize_record_full prototype.
8356 * record.c: Remove _initialize_record prototype.
8357 * regcache.c: Remove _initialize_regcache prototype.
8358 * reggroups.c: Remove _initialize_reggroup prototype.
8359 * remote-notif.c: Remove _initialize_notif prototype.
8360 * remote-sim.c: Remove _initialize_remote_sim prototype.
8361 * remote.c: Remove _initialize_remote prototype.
8362 * reverse.c: Remove _initialize_reverse prototype.
8363 * rl78-tdep.c: Remove _initialize_rl78_tdep prototype.
8364 * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype.
8365 * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep
8367 * rs6000-nat.c: Remove _initialize_rs6000_nat prototype.
8368 * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype.
8369 * rust-exp.y: Remove _initialize_rust_exp prototype.
8370 * rx-tdep.c: Remove _initialize_rx_tdep prototype.
8371 * s390-linux-nat.c: Remove _initialize_s390_nat prototype.
8372 * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype.
8373 * score-tdep.c: Remove _initialize_score_tdep prototype.
8374 * selftest-arch.c: Remove _initialize_selftests_foreach_arch
8376 * ser-go32.c: Remove _initialize_ser_dos prototype.
8377 * ser-mingw.c: Remove _initialize_ser_windows prototype.
8378 * ser-pipe.c: Remove _initialize_ser_pipe prototype.
8379 * ser-tcp.c: Remove _initialize_ser_tcp prototype.
8380 * ser-unix.c: Remove _initialize_ser_hardwire prototype.
8381 * serial.c: Remove _initialize_serial prototype.
8382 * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype.
8383 * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype.
8384 * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype.
8385 * sh-tdep.c: Remove _initialize_sh_tdep prototype.
8386 * skip.c: Remove _initialize_step_skip prototype.
8387 * sol-thread.c: Remove _initialize_sol_thread prototype.
8388 * solib-aix.c: Remove _initialize_solib_aix prototype.
8389 * solib-darwin.c: Remove _initialize_darwin_solib prototype.
8390 * solib-dsbt.c: Remove _initialize_dsbt_solib prototype.
8391 * solib-frv.c: Remove _initialize_frv_solib prototype.
8392 * solib-spu.c: Remove _initialize_spu_solib prototype.
8393 * solib-svr4.c: Remove _initialize_svr4_solib prototype.
8394 * solib-target.c: Remove _initialize_solib_target prototype.
8395 * solib.c: Remove _initialize_solib prototype.
8396 * source.c: Remove _initialize_source prototype.
8397 * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype.
8398 * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep
8400 * sparc-nat.c: Remove _initialize_sparc_nat prototype.
8401 * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype.
8402 * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype.
8403 * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep
8405 * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype.
8406 * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype.
8407 * sparc-tdep.c: Remove _initialize_sparc_tdep prototype.
8408 * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat
8410 * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep
8412 * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat
8414 * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep
8416 * sparc64-nat.c: Remove _initialize_sparc64_nat prototype.
8417 * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat
8419 * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep
8421 * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat
8423 * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep
8425 * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep
8427 * spu-linux-nat.c: Remove _initialize_spu_nat prototype.
8428 * spu-multiarch.c: Remove _initialize_spu_multiarch prototype.
8429 * spu-tdep.c: Remove _initialize_spu_tdep prototype.
8430 * stabsread.c: Remove _initialize_stabsread prototype.
8431 * stack.c: Remove _initialize_stack prototype.
8432 * stap-probe.c: Remove _initialize_stap_probe prototype.
8433 * std-regs.c: Remove _initialize_frame_reg prototype.
8434 * symfile-debug.c: Remove _initialize_symfile_debug prototype.
8435 * symfile-mem.c: Remove _initialize_symfile_mem prototype.
8436 * symfile.c: Remove _initialize_symfile prototype.
8437 * symmisc.c: Remove _initialize_symmisc prototype.
8438 * symtab.c: Remove _initialize_symtab prototype.
8439 * target-dcache.c: Remove _initialize_target_dcache prototype.
8440 * target-descriptions.c: Remove _initialize_target_descriptions
8442 * thread.c: Remove _initialize_thread prototype.
8443 * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep
8445 * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype.
8446 * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype.
8447 * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep
8449 * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype.
8450 * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype.
8451 * tracefile.c: Remove _initialize_tracefile prototype.
8452 * tracepoint.c: Remove _initialize_tracepoint prototype.
8453 * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype.
8454 * tui/tui-interp.c: Remove _initialize_tui_interp prototype.
8455 * tui/tui-layout.c: Remove _initialize_tui_layout prototype.
8456 * tui/tui-regs.c: Remove _initialize_tui_regs prototype.
8457 * tui/tui-stack.c: Remove _initialize_tui_stack prototype.
8458 * tui/tui-win.c: Remove _initialize_tui_win prototype.
8459 * tui/tui.c: Remove _initialize_tui prototype.
8460 * typeprint.c: Remove _initialize_typeprint prototype.
8461 * user-regs.c: Remove _initialize_user_regs prototype.
8462 * utils.c: Remove _initialize_utils prototype.
8463 * v850-tdep.c: Remove _initialize_v850_tdep prototype.
8464 * valarith.c: Remove _initialize_valarith prototype.
8465 * valops.c: Remove _initialize_valops prototype.
8466 * valprint.c: Remove _initialize_valprint prototype.
8467 * value.c: Remove _initialize_values prototype.
8468 * varobj.c: Remove _initialize_varobj prototype.
8469 * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype.
8470 * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype.
8471 * vax-tdep.c: Remove _initialize_vax_tdep prototype.
8472 * windows-nat.c: Remove _initialize_windows_nat,
8473 _initialize_check_for_gdb_ini, and _initialize_loadable
8475 * windows-tdep.c: Remove _initialize_windows_tdep prototype.
8476 * xcoffread.c: Remove _initialize_xcoffread prototype.
8477 * xml-support.c: Remove _initialize_xml_support prototype.
8478 * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype.
8479 * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat
8481 * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep
8483 * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype.
8485 2017-09-08 Keith Seitz <keiths@redhat.com>
8487 * dwarf2read.c (struct field_info) <fnfields>: Remove unused
8490 2017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com>
8492 * f-valprint.c (f_val_print): Remove check for one byte
8493 sized integers. Remove printing of character type.
8495 2017-09-08 Frank Penczek <frank.penczek@intel.com>
8496 Christoph Weinmann <christoph.t.weinmann@intel.com>
8497 Bernhard Heckel <bernhard.heckel@intel.com>
8499 * f-typeprint.c (f_type_print_base): Use fprintfi_filtered
8500 to maintain proper indentation when printing pointers/refs.
8502 2017-09-07 Joel Brobecker <brobecker@adacore.com>
8506 2017-09-07 Joel Brobecker <brobecker@adacore.com>
8508 * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell.
8510 2017-09-05 Tom Tromey <tom@tromey.com>
8512 * parse.c (funcall_chain): Now a std::vector.
8513 (start_arglist, end_arglist): Simplify.
8514 (free_funcalls): Remove.
8515 (parse_exp_in_context_1): Remove cleanup.
8517 2017-09-05 Tom Tromey <tom@tromey.com>
8519 * go-exp.y (go_parse): Don't create a cleanup.
8521 2017-09-05 Tom Tromey <tom@tromey.com>
8523 * d-exp.y (PrimaryExpression): Use std::string.
8524 (d_parse): Don't create a cleanup.
8526 2017-09-05 Tom Tromey <tom@tromey.com>
8528 * utils.c (do_clear_parser_state): Remove.
8529 (make_cleanup_clear_parser_state): Remove.
8530 * p-exp.y (pascal_parse): Use scoped_restore.
8531 * m2-exp.y (m2_parse): Use scoped_restore.
8532 * f-exp.y (f_parse): Use scoped_restore.
8533 * d-exp.y (d_parse): Use scoped_restore.
8534 * c-exp.y (c_parse): Use scoped_restore.
8535 * ada-exp.y (ada_parse): Use scoped_restore.
8536 * utils.h (make_cleanup_clear_parser_state): Remove.
8538 2017-09-06 Keith Seitz <keiths@redhat.com>
8540 * dwarf2read.c (dw2_linkage_name_attr): New function.
8541 (dw2_linkage_name): New function.
8542 (dwarf2_compute_name, dwarf2_physname, read_call_site_scope)
8543 (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name.
8544 (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr.
8546 2017-09-06 Kamil Rytarowski <n54@gmx.com>
8548 * config/djgpp/djconfig.sh: Correct shell portability issue.
8550 2017-09-06 Kamil Rytarowski <n54@gmx.com>
8552 * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD.
8554 2017-09-06 John Baldwin <jhb@FreeBSD.org>
8556 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
8557 * NEWS: Mention new FreeBSD/mips native configuration.
8558 * configure.host: Add aarch64*-*-freebsd*.
8559 * configure.nat: Likewise.
8560 * aarch64-fbsd-nat.c: New file.
8562 2017-09-06 John Baldwin <jhb@FreeBSD.org>
8564 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o.
8565 (ALLDEPFILES): Add aarch64-fbsd-tdep.c.
8566 * NEWS: Mention new FreeBSD/aarch64 target.
8567 * configure.tgt: Add aarch64*-*-freebsd*.
8568 * aarch64-fbsd-tdep.c: New file.
8569 * aarch64-fbsd-tdep.h: New file.
8571 2017-09-06 Kamil Rytarowski <n54@gmx.com>
8573 * MAINTAINERS (Write After Approval): Add Kamil Rytarowski.
8575 2017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
8577 * parse.c (find_minsym_type_and_address): Don't relocate addresses
8580 2017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8582 * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
8585 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
8587 * infrun.c (follow_exec): Call add_thread after
8588 target_find_description.
8590 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
8592 * infrun.c (handle_inferior_event_1): When exec'ing, read
8593 stop_pc after follow_exec.
8595 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
8597 * remote.c (process_g_packet): Update error message.
8599 2017-09-05 Yao Qi <yao.qi@linaro.org>
8601 * configure.tgt (gdb_target_obs): Add i386.o for x86_64-*
8604 2017-09-05 Pedro Alves <palves@redhat.com>
8606 * eval.c (eval_call, evaluate_funcall): New functions, factored
8608 (evaluate_subexp_standard): ... this.
8610 2017-09-05 Yao Qi <yao.qi@linaro.org>
8612 * amd64-tdep.c (amd64_target_description): Create target
8614 (_initialize_amd64_tdep): Don't call functions
8615 initialize_tdesc_amd64_*. Add self tests.
8616 * arch/amd64.c (amd64_create_target_description): Add parameter
8617 is_linux. Call set_tdesc_osabi if is_linux is true.
8618 * arch/amd64.h (amd64_create_target_description): Update the
8620 * arch/i386.c (i386_create_target_description): Add parameter
8621 is_linux. Call set_tdesc_osabi if is_linux is true.
8622 * arch/i386.h (i386_create_target_description): Update
8624 * configure.tgt: Add i386.o to gdb_target_obs.
8625 * features/Makefile (XMLTOC): Remove i386/*.xml.
8626 * features/i386/amd64-avx-avx512.c: Remove.
8627 * features/i386/amd64-avx-mpx-avx512-pku.c: Remove.
8628 * features/i386/amd64-avx-mpx.c: Remove.
8629 * features/i386/amd64-avx.c: Remove.
8630 * features/i386/amd64-mpx.c: Remove.
8631 * features/i386/amd64.c: Remove.
8632 * features/i386/i386-avx-avx512.c: Remove.
8633 * features/i386/i386-avx-mpx-avx512-pku.c: Remove.
8634 * features/i386/i386-avx-mpx.c: Remove.
8635 * features/i386/i386-avx.c: Remove.
8636 * features/i386/i386-mmx.c: Remove.
8637 * features/i386/i386-mpx.c: Remove.
8638 * features/i386/i386.c: Remove.
8639 * i386-tdep.c: Don't include features/i386/i386*.c., include
8640 target-descriptions.h and arch/i386.h.
8641 (i386_target_description): Create target descriptions.
8642 (i386_gdbarch_init): Don't call initialize_tdesc_i386_*
8643 functions. Do self tests.
8645 2017-09-05 Yao Qi <yao.qi@linaro.org>
8647 * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml.
8648 * features/i386/amd64-avx-avx512-linux.c: Removed.
8649 * features/i386/amd64-avx-linux.c: Removed.
8650 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed.
8651 * features/i386/amd64-avx-mpx-linux.c: Removed.
8652 * features/i386/amd64-linux.c: Removed.
8653 * features/i386/amd64-mpx-linux.c: Removed.
8654 * features/i386/x32-avx-avx512-linux.c: Removed.
8655 * features/i386/x32-avx-linux.c: Removed.
8656 * features/i386/x32-linux.c: Removed.
8658 2017-09-05 Yao Qi <yao.qi@linaro.org>
8660 * amd64-linux-tdep.c: Include arch/amd64.h. Don't include
8662 (amd64_linux_read_description): Call
8663 amd64_create_target_description.
8664 * arch/amd64.c: New file.
8665 * arch/amd64.h: New file.
8666 * configure.tgt (x86_64-*-linux*): Append amd64.o.
8667 * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o.
8669 2017-09-05 Yao Qi <yao.qi@linaro.org>
8671 * amd64-linux-tdep.c: Don't include amd64-XXX-linux and
8672 x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c.
8673 (amd64_linux_read_description): Create target descriptions.
8674 (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX
8675 functions. Add unit tests.
8676 * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and
8678 * features/i386/64bit-avx.c: Generated.
8679 * features/i386/64bit-avx512.c: Generated.
8680 * features/i386/64bit-core.c: Generated.
8681 * features/i386/64bit-linux.c: Generated.
8682 * features/i386/64bit-mpx.c: Generated.
8683 * features/i386/64bit-pkeys.c: Generated.
8684 * features/i386/64bit-segments.c: Generated.
8685 * features/i386/64bit-sse.c: Generated.
8686 * features/i386/x32-core.c: Generated.
8687 * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature
8688 c files for amd64-linux and x32-linux.
8690 2017-09-05 Yao Qi <yao.qi@linaro.org>
8692 * amd64-linux-tdep.c (amd64_linux_read_description): New
8694 (amd64_linux_core_read_description): Call
8695 amd64_linux_read_description.
8696 (amd64_linux_init_abi): Likewise.
8697 (amd64_x32_linux_init_abi): Likewise.
8698 * amd64-linux-tdep.h (amd64_linux_read_description): Declare.
8699 * x86-linux-nat.c (x86_linux_read_description): Call
8700 amd64_linux_read_description.
8702 2017-09-05 Yao Qi <yao.qi@linaro.org>
8704 * amd64-linux-tdep.c (amd64_linux_core_read_description): Update
8707 2017-09-05 Yao Qi <yao.qi@linaro.org>
8709 * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml.
8710 * features/i386/i386-avx-avx512-linux.c: Remove.
8711 * features/i386/i386-avx-linux.c: Remove.
8712 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove.
8713 * features/i386/i386-avx-mpx-linux.c: Remove.
8714 * features/i386/i386-linux.c: Remove.
8715 * features/i386/i386-mmx-linux.c: Remove.
8716 * features/i386/i386-mpx-linux.c: Remove.
8718 2017-09-05 Yao Qi <yao.qi@linaro.org>
8720 * Makefile.in (ALL_TARGET_OBS): Add i386.o.
8721 (SFILES): Add arch/i386.c.
8722 (HFILES_NO_SRCDIR): Add arch/i386.h.
8723 * arch/i386.c: New file.
8724 * arch/i386.h: New file.
8725 * arch/tdesc.h (allocate_target_description): Declare.
8726 (set_tdesc_architecture): Declare.
8727 (set_tdesc_osabi): Declare.
8728 * configure.tgt (i[34567]86-*-linux*): Add i386.o.
8729 * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c.
8730 include arch/i386.h.
8731 (i386_linux_read_description): Remove code and call
8732 i386_create_target_description.
8733 (set_tdesc_architecture): New function.
8734 (set_tdesc_osabi): New function.
8735 * target-descriptions.h (allocate_target_description): Remove.
8737 2017-09-05 Yao Qi <yao.qi@linaro.org>
8739 * arch/tdesc.h (tdesc_create_feature): Add an argument xml.
8740 * target-descriptions.c (tdesc_create_feature): Likewise, and
8742 * features/i386/32bit-avx.c: Re-generated.
8743 * features/i386/32bit-avx512.c: Re-generated.
8744 * features/i386/32bit-core.c: Re-generated.
8745 * features/i386/32bit-linux.c: Re-generated.
8746 * features/i386/32bit-mpx.c: Re-generated.
8747 * features/i386/32bit-pkeys.c: Re-generated.
8748 * features/i386/32bit-sse.c: Re-generated.
8750 2017-09-05 Yao Qi <yao.qi@linaro.org>
8752 * regformats/regdef.h (struct reg): Override operator == and !=.
8754 2017-09-05 Yao Qi <yao.qi@linaro.org>
8756 * arch/tdesc.h: New file.
8757 * regformats/regdat.sh: Generate code using tdesc_create_reg.
8758 * target-descriptions.c: Update comments.
8759 * target-descriptions.h: Include "arch/tdesc.h". Remove the
8761 * features/i386/32bit-avx.c: Re-generated.
8762 * features/i386/32bit-avx512.c: Re-generated.
8763 * features/i386/32bit-core.c: Re-generated.
8764 * features/i386/32bit-linux.c: Re-generated.
8765 * features/i386/32bit-mpx.c: Re-generated.
8766 * features/i386/32bit-pkeys.c: Re-generated.
8767 * features/i386/32bit-sse.c: Re-generated.
8769 2017-09-05 Yao Qi <yao.qi@linaro.org>
8771 * regformats/regdat.sh: Update generated code.
8773 2017-09-05 Yao Qi <yao.qi@linaro.org>
8775 * regformats/regdat.sh: Adjust code order.
8777 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
8779 * expprint.c (dump_subexp_body_standard): Use constant format
8780 string in fprintf_filtered call.
8782 2017-09-04 John Baldwin <jhb@FreeBSD.org>
8784 * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and
8786 * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX.
8788 2017-09-04 John Baldwin <jhb@FreeBSD.org>
8790 * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H.
8792 2017-09-04 John Baldwin <jhb@FreeBSD.org>
8794 * bsd-kvm.o: Define _KMEMUSER.
8795 * configure.ac: Define _KMEMUSER when checking for "struct lwp".
8796 * configure: Regenerate.
8798 2017-09-04 John Baldwin <jhb@FreeBSD.org>
8800 * amd64-fbsd-nat.c: Add include of "x86-xstate.h".
8801 * i386-fbsd-nat.c: Likewise.
8803 2017-09-04 John Baldwin <jhb@FreeBSD.org>
8805 * unittests/array-view-selftests.c: Add include of <array>.
8807 2017-09-04 John Baldwin <jhb@FreeBSD.org>
8809 * spu-tdep.c (flush_ea_cache): Add missing argument to
8810 call_function_by_hand.
8812 2017-09-04 Pedro Alves <palves@redhat.com>
8814 * NEWS (Safer support for debugging with no debug info): New.
8816 2017-09-04 Pedro Alves <palves@redhat.com>
8818 * c-exp.y (function_method, function_method_void): Add current
8819 instance flags to TYPE_INSTANCE.
8820 * dwarf2read.c (check_modifier): New.
8821 (compute_delayed_physnames): Assert that only C++ adds delayed
8822 physnames. Mark fn_fields as const/volatile depending on
8824 * eval.c (make_params): New type_instance_flags parameter. Use
8825 it as the new type's instance flags.
8826 (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance
8827 flags element and pass it to make_params.
8828 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle
8829 instance flags element.
8830 (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise.
8831 * gdbtypes.h: Include "enum-flags.h".
8832 (type_instance_flags): New enum-flags type.
8833 (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC)
8834 (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean.
8835 * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust.
8836 (follow_type_instance_flags): New function.
8837 (operator_check_standard) <TYPE_INSTANCE>: Adjust.
8838 * parser-defs.h (follow_type_instance_flags): Declare.
8839 * valops.c (value_struct_elt_for_reference): const/volatile must
8842 2017-09-04 Pedro Alves <palves@redhat.com>
8844 * cp-namespace.c (cp_search_static_and_baseclasses): Handle
8845 function/method scopes; lookup the nested name as a function local
8848 2017-09-04 Pedro Alves <palves@redhat.com>
8850 (%type <voidval>): Add function_method.
8851 * c-exp.y (exp): New production for calls with no arguments.
8852 (function_method, function_method_void_or_typelist): New
8854 (exp): New production for "method()::static_var".
8855 * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR.
8856 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
8857 Handle OP_FUNC_STATIC_VAR.
8858 * parse.c (operator_length_standard):
8859 Handle OP_FUNC_STATIC_VAR.
8861 2017-09-04 Pedro Alves <palves@redhat.com>
8863 * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS
8865 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
8867 * parse.c (operator_length_standard, operator_check_standard):
8869 * std-operator.def (UNOP_MEMVAL_TLS): Delete.
8871 2017-09-04 Pedro Alves <palves@redhat.com>
8873 * ax-gdb.c: Include "typeprint.h".
8874 (gen_expr_for_cast): New function.
8875 (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it.
8876 <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's
8878 * dwarf2read.c (new_symbol_full): Fallback to int instead of
8879 nodebug_data_symbol.
8880 * eval.c: Include "typeprint.h".
8881 (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>:
8882 Error out if symbol has unknown type.
8883 <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to
8884 evaluate_subexp_for_cast.
8885 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle
8887 (evaluate_subexp_for_cast): New function.
8888 * gdbtypes.c (init_nodebug_var_type): New function.
8889 (objfile_type): Use it to initialize types of variables with no
8891 * typeprint.c (error_unknown_type): New.
8892 * typeprint.h (error_unknown_type): New declaration.
8893 * compile/compile-c-types.c (convert_type_basic): Handle
8894 TYPE_CODE_ERROR; warn and fallback to int for variables with
8897 2017-09-04 Pedro Alves <palves@redhat.com>
8899 * eval.c (evaluate_var_value): New function, factored out from ...
8900 (evaluate_subexp_standard): ... here.
8902 2017-09-04 Pedro Alves <palves@redhat.com>
8904 * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>:
8905 Remove useless assignments to 'op'.
8907 2017-09-04 Pedro Alves <palves@redhat.com>
8909 * eval.c (eval_skip_value): New function.
8910 (evaluate_subexp_standard): Use it.
8912 2017-09-04 Pedro Alves <palves@redhat.com>
8914 * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract
8915 function name from symbol/minsym and pass it to
8916 error_call_unknown_return_type.
8918 2017-09-04 Pedro Alves <palves@redhat.com>
8920 * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE.
8921 * ax-gdb.c (gen_msym_var_ref): New function.
8922 (gen_expr): Handle OP_VAR_MSYM_VALUE.
8923 * eval.c (evaluate_var_msym_value): New function.
8924 * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE.
8925 <OP_FUNCALL>: Extract function name from symbol/minsym and pass it
8926 to call_function_by_hand.
8927 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
8928 Handle OP_VAR_MSYM_VALUE.
8929 (union exp_element) <msymbol>: New field.
8930 * minsyms.h (struct type): Forward declare.
8931 (find_minsym_type_and_address): Declare.
8932 * parse.c (write_exp_elt_msym): New function.
8933 (write_exp_msymbol): Delete, refactored as ...
8934 (find_minsym_type_and_address): ... this new function.
8935 (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE.
8936 (operator_length_standard, operator_check_standard): Handle
8938 * std-operator.def (OP_VAR_MSYM_VALUE): New.
8940 2017-09-04 Pedro Alves <palves@redhat.com>
8942 * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle
8943 TYPE_GNU_IFUNC specially here. Throw error if return type is
8945 * ada-typeprint.c (print_func_type): Handle functions with unknown
8947 * c-typeprint.c (c_type_print_base): Handle functions and methods
8948 with unknown return type.
8949 * compile/compile-c-symbols.c (convert_symbol_bmsym)
8950 <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol.
8951 * compile/compile-c-types.c: Include "objfiles.h".
8952 (convert_func): For functions with unknown return type, warn and
8954 * compile/compile-object-run.c (compile_object_run): Adjust call
8955 to call_function_by_hand_dummy.
8956 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to
8957 call_function_by_hand.
8958 * eval.c (evaluate_subexp_standard): Adjust calls to
8959 call_function_by_hand. Handle functions and methods with unknown
8960 return type. Pass expect_type to call_function_by_hand.
8961 * f-typeprint.c (f_type_print_base): Handle functions with unknown
8963 * gcore.c (call_target_sbrk): Adjust call to
8964 call_function_by_hand.
8965 * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL
8966 return type instead of int. Make nodebug_text_gnu_ifunc_symbol be
8967 an integer address type instead of nodebug.
8968 * guile/scm-value.c (gdbscm_value_call): Adjust call to
8969 call_function_by_hand.
8970 * infcall.c (error_call_unknown_return_type): New function.
8971 (call_function_by_hand): New "default_return_type" parameter.
8973 (call_function_by_hand_dummy): New "default_return_type"
8974 parameter. Use it instead of defaulting to int. If there's no
8975 default and the return type is unknown, throw an error. If
8976 there's a default return type, and the called function has no
8977 debug info, then assume the function is prototyped.
8978 * infcall.h (call_function_by_hand, call_function_by_hand_dummy):
8979 New "default_return_type" parameter.
8980 (error_call_unknown_return_type): New declaration.
8981 * linux-fork.c (call_lseek): Cast return type of lseek.
8982 (inferior_call_waitpid, checkpoint_command): Adjust calls to
8983 call_function_by_hand.
8984 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust
8985 calls to call_function_by_hand.
8986 * m2-typeprint.c (m2_procedure): Handle functions with unknown
8988 * objc-lang.c (lookup_objc_class, lookup_child_selector)
8989 (value_nsstring, print_object_command): Adjust calls to
8990 call_function_by_hand.
8991 * p-typeprint.c (pascal_type_print_varspec_prefix): Handle
8992 functions with unknown return type.
8993 (pascal_type_print_func_varspec_suffix): New function.
8994 (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC,
8995 TYPE_CODE_METHOD>: Use it.
8996 * python/py-value.c (valpy_call): Adjust call to
8997 call_function_by_hand.
8998 * rust-lang.c (rust_evaluate_funcall): Adjust call to
8999 call_function_by_hand.
9000 * valarith.c (value_x_binop, value_x_unop): Adjust calls to
9001 call_function_by_hand.
9002 * valops.c (value_allocate_space_in_inferior): Adjust call to
9003 call_function_by_hand.
9004 * typeprint.c (type_print_unknown_return_type): New function.
9005 * typeprint.h (type_print_unknown_return_type): New declaration.
9007 2017-09-04 Pedro Alves <palves@redhat.com>
9009 * gdbtypes.c (lookup_function_type_with_arguments): Mark function
9010 types with more than one parameter as prototyped.
9012 2017-09-04 Pedro Alves <palves@redhat.com>
9014 * cli/cli-cmds.c (print_disassembly, disassemble_current_function)
9015 (disassemble_command): Use gdb_disassembly_flags instead of bare
9017 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn)
9018 (dump_insns, do_mixed_source_and_assembly_deprecated)
9019 (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly):
9020 Use gdb_disassembly_flags instead of bare int.
9021 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN)
9022 (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME)
9023 (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE)
9024 (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're...
9025 (enum gdb_disassembly_flag): ... values of this new enumeration.
9026 (gdb_disassembly_flags): Define.
9028 (gdb_pretty_print_disassembler::pretty_print_insn): Use it.
9029 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use
9030 gdb_disassembly_flags instead of bare int.
9031 * record-btrace.c (btrace_insn_history)
9032 (record_btrace_insn_history, record_btrace_insn_history_range)
9033 (record_btrace_insn_history_from): Use gdb_disassembly_flags
9034 instead of bare int.
9035 * record.c (get_insn_history_modifiers, cmd_record_insn_history):
9036 Use gdb_disassembly_flags instead of bare int.
9037 * target-debug.h (target_debug_print_gdb_disassembly_flags):
9039 * target-delegates.c: Regenerate.
9040 * target.c (target_insn_history, target_insn_history_from)
9041 (target_insn_history_range): Use gdb_disassembly_flags instead of
9043 * target.h: Include "disasm.h".
9044 (struct target_ops) <to_insn_history, to_insn_history_from,
9045 to_insn_history_range>: Use gdb_disassembly_flags instead of bare
9047 (target_insn_history, target_insn_history_from)
9048 (target_insn_history_range): Use gdb_disassembly_flags instead of
9051 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
9053 * cli/cli-script.c (build_command_line): For if/while commands,
9054 check whether args is empty.
9056 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
9058 * cli/cli-script.h (enum misc_command_type): Move from defs.h.
9059 (enum command_control_type): Likewise.
9060 (struct command_line): Likewise.
9061 (free_command_lines): Likewise.
9062 (struct command_lines_deleter): Likewise.
9063 (command_line_up): Likewise.
9064 (read_command_lines): Likewise.
9065 (read_command_lines_1): Likewise.
9066 * defs.h (enum misc_command_type): Move to cli/cli-script.h.
9067 (enum command_control_type): Likewise.
9068 (struct command_line): Likewise.
9069 (free_command_lines): Likewise.
9070 (struct command_lines_deleter): Likewise.
9071 (command_line_up): Likewise.
9072 (read_command_lines): Likewise.
9073 (read_command_lines_1): Likewise.
9074 * breakpoint.h: Include cli/cli-script.h.
9075 * extension-priv.h: Likewise.
9076 * gdbcmd.h: Likewise.
9078 2017-09-04 Pedro Alves <palves@redhat.com>
9080 * ada-lang.c (is_known_support_routine): Move sal declaration to
9081 where it is initialized.
9082 * breakpoint.c (create_internal_breakpoint, init_catchpoint)
9083 (parse_breakpoint_sals, decode_static_tracepoint_spec)
9084 (clear_command, update_static_tracepoint): Remove init_sal
9085 references. Move declarations closer to initializations.
9086 * cli/cli-cmds.c (list_command): Move sal declarations closer to
9088 * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal
9089 references. Move sal declarations closer to initializations.
9090 * frame.c (find_frame_sal): Return a symtab_and_line via function
9091 return instead of output parameter. Remove init_sal references.
9092 * frame.h (find_frame_sal): Return a symtab_and_line via function
9093 return instead of output parameter.
9094 * guile/scm-frame.c (gdbscm_frame_sal): Adjust.
9095 * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new
9097 (gdbscm_find_pc_line): Remove init_sal reference.
9098 * infcall.c (call_function_by_hand_dummy): Remove init_sal
9099 references. Move declarations closer to initializations.
9100 * infcmd.c (set_step_frame): Update. Move declarations closer to
9102 (finish_backward): Remove init_sal references. Move declarations
9103 closer to initializations.
9104 * infrun.c (process_event_stop_test, handle_step_into_function)
9105 (insert_hp_step_resume_breakpoint_at_frame)
9106 (insert_step_resume_breakpoint_at_caller): Likewise.
9107 * linespec.c (create_sals_line_offset, decode_digits_ordinary)
9108 (symbol_to_sal): Likewise.
9109 * probe.c (parse_probes_in_pspace): Remove init_sal reference.
9110 * python/py-frame.c (frapy_find_sal): Move sal declaration closer
9111 to its initialization.
9112 * reverse.c (save_bookmark_command): Use new/delete. Remove
9113 init_sal references. Move declarations closer to initializations.
9114 * source.c (get_current_source_symtab_and_line): Remove brace
9116 (set_current_source_symtab_and_line): Now takes the sal by const
9117 reference. Remove brace initialization.
9118 (line_info): Remove init_sal reference.
9119 * source.h (set_current_source_symtab_and_line): Now takes a
9120 symtab_and_line via const reference.
9121 * stack.c (set_current_sal_from_frame): Adjust.
9122 (print_frame_info): Adjust.
9123 (get_last_displayed_sal): Return the sal via function return
9124 instead of via output parameter. Simplify.
9125 (frame_info): Adjust.
9126 * stack.h (get_last_displayed_sal): Return the sal via function
9127 return instead of via output parameter.
9128 * symtab.c (init_sal): Delete.
9129 (find_pc_sect_line): Remove init_sal references. Move
9130 declarations closer to initializations.
9131 (find_function_start_sal): Remove init_sal references. Move
9132 declarations closer to initializations.
9133 * symtab.h (struct symtab_and_line): In-class initialize all
9135 * tracepoint.c (set_traceframe_context)
9136 (print_one_static_tracepoint_marker): Remove init_sal references.
9137 Move declarations closer to initializations.
9138 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust.
9139 * tui/tui-stack.c (tui_show_frame_info): Adjust. Move
9140 declarations closer to initializations.
9141 * tui/tui-winsource.c (tui_update_source_window_as_is): Remove
9142 init_sal references. Adjust.
9144 2017-09-04 Pedro Alves <palves@redhat.com>
9146 * ax-gdb.c (agent_command_1): Use range-for.
9147 * break-catch-throw.c (re_set_exception_catchpoint): Update.
9148 * breakpoint.c: Include "common/array-view.h".
9149 (init_breakpoint_sal, create_breakpoint_sal): Change sals
9150 parameter from struct symtabs_and_lines to
9151 array_view<symtab_and_line>. Adjust. Use range-for. Update.
9152 (breakpoint_sals_to_pc): Change sals parameter from struct
9153 symtabs_and_lines to std::vector reference.
9154 (check_fast_tracepoint_sals): Change sals parameter from struct
9155 symtabs_and_lines to std::array_view. Use range-for.
9156 (decode_static_tracepoint_spec): Return a std::vector instead of
9157 symtabs_and_lines. Update.
9158 (create_breakpoint): Update.
9159 (break_range_command, until_break_command, clear_command): Update.
9160 (base_breakpoint_decode_location, bkpt_decode_location)
9161 (bkpt_probe_create_sals_from_location)
9162 (bkpt_probe_decode_location, tracepoint_decode_location)
9163 (tracepoint_probe_decode_location)
9164 (strace_marker_create_sals_from_location): Return a std::vector
9165 instead of symtabs_and_lines.
9166 (strace_marker_create_breakpoints_sal): Update.
9167 (strace_marker_decode_location): Return a std::vector instead of
9168 symtabs_and_lines. Update.
9169 (update_breakpoint_locations): Change struct symtabs_and_lines
9170 parameters to gdb::array_view. Adjust.
9171 (location_to_sals): Return a std::vector instead of
9172 symtabs_and_lines. Update.
9173 (breakpoint_re_set_default): Use std::vector instead of struct
9175 (decode_location_default): Return a std::vector instead of
9176 symtabs_and_lines. Update.
9177 * breakpoint.h: Include "common/array-view.h".
9178 (struct breakpoint_ops) <decode_location>: Now returns a
9179 std::vector instead of returning a symtabs_and_lines via output
9181 (update_breakpoint_locations): Change sals parameters to use
9183 * cli/cli-cmds.c (edit_command, list_command): Update to use
9184 std::vector and gdb::array_view.
9185 (ambiguous_line_spec): Adjust to use gdb::array_view and
9187 (compare_symtabs): Rename to ...
9188 (cmp_symtabs): ... this. Change parameters to symtab_and_line
9189 const reference and adjust.
9190 (filter_sals): Rewrite using std::vector and standard algorithms.
9191 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify.
9192 (jump_command): Update to use std::vector.
9193 * linespec.c (struct linespec_state) <canonical_names>: Update
9195 (add_sal_to_sals_basic): Delete.
9196 (add_sal_to_sals, filter_results, convert_results_to_lsals)
9197 (decode_line_2, create_sals_line_offset)
9198 (convert_address_location_to_sals, convert_linespec_to_sals)
9199 (convert_explicit_location_to_sals, parse_linespec)
9200 (event_location_to_sals, decode_line_full, decode_line_1)
9201 (decode_line_with_current_source)
9202 (decode_line_with_last_displayed, decode_objc)
9203 (decode_digits_list_mode, decode_digits_ordinary, minsym_found)
9204 (linespec_result::~linespec_result): Adjust to use std::vector
9205 instead of symtabs_and_lines.
9206 * linespec.h (linespec_sals::sals): Now a std::vector.
9207 (struct linespec_result): Use std::vector, bool, and in-class
9209 (decode_line_1, decode_line_with_current_source)
9210 (decode_line_with_last_displayed): Return std::vector.
9211 * macrocmd.c (info_macros_command): Use std::vector.
9212 * mi/mi-main.c (mi_cmd_trace_find): Use std::vector.
9213 * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use
9215 * probe.h (parse_probes): Return a std::vector.
9216 * python/python.c (gdbpy_decode_line): Use std::vector and
9218 * source.c (select_source_symtab, line_info): Use std::vector.
9219 * stack.c (func_command): Use std::vector.
9220 * symtab.h (struct symtabs_and_lines): Delete.
9221 * tracepoint.c (tfind_line_command, scope_info): Use std::vector.
9223 2017-09-04 Pedro Alves <palves@redhat.com>
9225 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9226 unittests/array-view-selftests.c.
9227 (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o.
9228 * common/array-view.h: New file.
9229 * unittests/array-view-selftests.c: New file.
9231 2017-09-04 Pedro Alves <palves@redhat.com>
9233 * cli/cli-cmds.c (edit_command): Pass message to
9234 ambiguous_line_spec.
9235 (list_command): Pass message to ambiguous_line_spec. Say
9236 "first"/"last" instead of "start" and "end" to be consistent with
9238 (ambiguous_line_spec): Add 'format' and vararg parameters. Use
9239 them to print formatted message.
9241 2017-09-04 Pedro Alves <palves@redhat.com>
9243 * btrace.c (ftrace_add_pt): Pass btrace_insn to
9244 ftrace_update_insns by reference instead of pointer.
9246 2017-09-04 Yao Qi <yao.qi@linaro.org>
9248 * i386-go32-tdep.c: Include x86-xstate.h.
9249 (i386_go32_init_abi): Call i386_target_description.
9250 * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx
9251 if xcr0 is X86_XSTATE_X87_MASK.
9252 * i386-tdep.h (tdesc_i386): Remove the declaration.
9253 (tdesc_i386_mmx): Likewise.
9255 2017-09-04 Yao Qi <yao.qi@linaro.org>
9257 * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return
9258 X86_XSTATE_SSE_MASK instead of 0.
9260 2017-09-04 Yao Qi <yao.qi@linaro.org>
9262 * amd64-fbsd-nat.c (amd64fbsd_read_description): Call
9263 i386_target_description.
9264 * i386-fbsd-nat.c (i386fbsd_read_description): Call
9265 i386_target_description.
9266 * i386-tdep.c (i386_gdbarch_init): Likewise.
9268 2017-09-04 Yao Qi <yao.qi@linaro.org>
9270 * amd64-darwin-tdep.c: Include "x86-xstate.h".
9271 (x86_darwin_init_abi_64): Call amd64_target_description.
9272 * amd64-dicos-tdep.c: Likewise.
9273 * amd64-fbsd-nat.c: Likewise.
9274 * amd64-fbsd-tdep.c: Likewise.
9275 * amd64-nbsd-tdep.c: Likewise.
9276 * amd64-obsd-tdep.c: Likewise.
9277 * amd64-sol2-tdep.c: Likewise.
9278 * amd64-windows-tdep.c: Likewise.
9279 * amd64-tdep.h (tdesc_amd64): Remove the declaration.
9281 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
9283 * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove.
9284 (btrace_function) <insn>: Change type to use std::vector.
9285 * btrace.c (ftrace_debug, ftrace_call_num_insn,
9286 ftrace_find_call, ftrace_new_gap, ftrace_update_function,
9287 ftrace_update_insns, ftrace_compute_global_level_offset,
9288 btrace_stitch_bts, btrace_clear, btrace_insn_get,
9289 btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to
9290 change to std::vector.
9291 (ftrace_update_insns): Adjust to change to std::vector, change
9292 type of INSN parameter.
9293 (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns.
9294 * record-btrace.c (btrace_call_history_insn_range,
9295 btrace_compute_src_line_range,
9296 record_btrace_frame_prev_register): Adjust to change to
9298 * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust
9299 to change to std::vector.
9301 2017-09-03 Tom Tromey <tom@tromey.com>
9303 * corefile.c (reopen_exec_file): Use std::string.
9305 2017-09-03 Tom Tromey <tom@tromey.com>
9307 * compile/compile.c (compile_register_name_mangled): Return
9309 * compile/compile-loc2c.c (pushf_register_address): Update.
9310 (pushf_register): Update.
9311 * compile/compile-c-types.c (convert_array): Update.
9312 * compile/compile-c-symbols.c (generate_vla_size): Update.
9313 (error_symbol_once): Use a gdb::unique_xmalloc_ptr.
9314 (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr.
9315 (convert_one_symbol): Update.
9316 (generate_c_for_for_one_variable): Update.
9317 * compile/compile-c-support.c (c_get_range_decl_name): Return a
9319 (generate_register_struct): Update.
9320 * compile/compile-internal.h (c_get_range_decl_name): Return a
9322 (compile_register_name_mangled): Return std::string.
9324 2017-09-03 Tom Tromey <tom@tromey.com>
9326 * utils.c (perror_string): Return a std::string.
9327 (throw_perror_with_name, perror_warning_with_name): Update.
9329 2017-09-03 Tom Tromey <tom@tromey.com>
9331 * demangle.c (demangle_command): Use std::string,
9334 2017-09-03 Tom Tromey <tom@tromey.com>
9336 * cli/cli-setshow.c (do_set_command): Use std::string.
9338 2017-09-03 Tom Tromey <tom@tromey.com>
9340 * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr.
9342 2017-09-03 Tom Tromey <tom@tromey.com>
9344 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string.
9346 2017-09-03 Tom Tromey <tom@tromey.com>
9348 * mi/mi-cmd-env.c (env_execute_cli_command): Use
9349 gdb::unique_xmalloc_ptr.
9351 2017-09-03 Tom Tromey <tom@tromey.com>
9353 * thread.c (print_thread_info_1): Use string_printf.
9354 (thread_apply_command, thread_apply_all_command): Use
9357 2017-09-03 Tom Tromey <tom@tromey.com>
9359 * valprint.c (val_print_string): Update.
9360 * gdbcore.h (memory_error_message): Return std::string.
9361 * corefile.c (memory_error_message): Return std::string.
9362 (memory_error): Update.
9363 * breakpoint.c (insert_bp_location): Update.
9365 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
9367 * target/waitstatus.h (target_waitstatus_to_string): Change
9368 return type to std::string.
9369 * target/waitstatus.c (target_waitstatus_to_string): Return
9371 * target.h (target_waitstatus_to_string): Remove declaration.
9372 * infrun.c (resume, clear_proceed_status_thread,
9373 print_target_wait_results, do_target_wait, save_waitstatus,
9374 stop_all_threads): Adjust.
9375 * record-btrace.c (record_btrace_wait): Adjust.
9377 (target_debug_print_struct_target_waitstatus_p): Adjust.
9379 2017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9382 * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED
9385 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
9387 * NEWS (Changes since GDB 8.0): Add entry mentioning new support
9388 for setting/unsetting environment variables on the remote target.
9389 (New remote packets): Add entries for QEnvironmentHexEncoded,
9390 QEnvironmentUnset and QEnvironmentReset.
9391 * common/environ.c (gdb_environ::operator=): Extend method to
9392 handle m_user_set_env_list and m_user_unset_env_list.
9393 (gdb_environ::clear): Likewise.
9394 (match_var_in_string): Change type of first parameter from 'char
9395 *' to 'const char *'.
9396 (gdb_environ::set): Extend method to handle
9397 m_user_set_env_list and m_user_unset_env_list.
9398 (gdb_environ::unset): Likewise.
9399 (gdb_environ::clear_user_set_env): New method.
9400 (gdb_environ::user_set_envp): Likewise.
9401 (gdb_environ::user_unset_envp): Likewise.
9402 * common/environ.h (gdb_environ): Handle m_user_set_env_list and
9403 m_user_unset_env_list on move constructor/assignment.
9404 (unset): Add new default parameter 'update_unset_list = true'.
9405 (clear_user_set_env): New method.
9406 (user_set_envp): Likewise.
9407 (user_unset_envp): Likewise.
9408 (m_user_set_env_list): New std::set.
9409 (m_user_unset_env_list): Likewise.
9410 * common/rsp-low.c (hex2str): New function.
9411 (bin2hex): New overload for bin2hex function.
9412 * common/rsp-low.c (hex2str): New prototype.
9413 (str2hex): New overload prototype.
9414 * remote.c: Include "environ.h". Add QEnvironmentHexEncoded,
9415 QEnvironmentUnset and QEnvironmentReset.
9416 (remote_protocol_features): Add QEnvironmentHexEncoded,
9417 QEnvironmentUnset and QEnvironmentReset packets.
9418 (send_environment_packet): New function.
9419 (extended_remote_environment_support): Likewise.
9420 (extended_remote_create_inferior): Call
9421 extended_remote_environment_support.
9422 (_initialize_remote): Add QEnvironmentHexEncoded,
9423 QEnvironmentUnset and QEnvironmentReset packet configs.
9424 * unittests/environ-selftests.c (gdb_selftest_env_var):
9426 (test_vector_initialization): New function.
9427 (test_init_from_host_environ): Likewise.
9428 (test_reinit_from_host_environ): Likewise.
9429 (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B):
9431 (test_unset_set_empty_vector): Likewise.
9432 (test_vector_clear): Likewise.
9433 (test_std_move): Likewise.
9434 (test_move_constructor):
9435 (test_self_move): Likewise.
9436 (test_set_unset_reset): Likewise.
9437 (run_tests): Rewrite in terms of the functions above.
9439 2017-08-31 Weimin Pan <weimin.pan@oracle.com>
9441 * sparc64-tdep.c (adi_stat_t): Fix comment formatting.
9442 (adi_available): Use a temp variable of type CORE_ADDR as argument
9443 3 when calling target_auxv_search.
9444 (adi_normalize_address): Use masks and xor operators to calculate
9446 (adi_read_versions, adi_write_versions, adi_print_versions)
9447 (do_examine, do_assign): Use paddress.
9449 2017-08-29 John Baldwin <jhb@FreeBSD.org>
9451 * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR.
9452 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR
9453 out of loop and add supply of FIR.
9454 (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and
9457 2017-08-28 Simon Marchi <simon.marchi@ericsson.com>
9460 * cli/cli-script.c (define_command): Don't convert command name
9463 2017-08-25 Joel Brobecker <brobecker@adacore.com>
9465 * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp".
9466 Update all callers accordingly. Remove all code blocks handling
9467 the case where DISPP is not NULL.
9469 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9472 * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow)
9473 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
9474 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const.
9476 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9478 * dwarf2read.c (build_type_psymtabs_reader): New prototype.
9479 (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES.
9480 (read_comp_units_from_section): New parameter abbrev_section, use
9481 read_and_check_comp_unit_head, allocate signatured_type if needed.
9482 (create_all_comp_units): Update read_comp_units_from_section caller.
9484 2017-08-23 Pedro Alves <palves@redhat.com>
9487 * remote.c (add_current_inferior_and_thread): Set inferior_ptid
9488 to null_ptid and switch to thread without reading the registers
9489 after adding the inferior.
9491 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9493 * NEWS (Changes since GDB 8.0): Add set compile-gcc and show
9495 * compile/compile.c (compile_gcc, show_compile_gcc): New.
9496 (compile_to_object): Implement compile_gcc.
9497 (_initialize_compile): Install "set compile-gcc". Initialize
9500 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9502 * compile/compile.c (compile_to_object): Conditionally call
9503 set_verbose. Conditionally call compile or compile_v0.
9505 2017-08-07 Weimin Pan <weimin.pan@oracle.com>
9507 * sparc64-tdep.h: (adi_normalize_address): New export.
9508 * sparc-nat.h: (open_adi_tag_fd): New export.
9509 * sparc64-linux-nat.c: (open_adi_tag_fd): New function.
9510 * sparc64-linux-tdep.c:
9511 (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines.
9512 (sparc64_linux_handle_segmentation_fault): New function.
9513 (sparc64_linux_init_abi): Register
9514 sparc64_linux_handle_segmentation_fault
9515 * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h.
9516 (sparc64_addr_bits_remove): New function.
9517 (sparc64_init_abi): Register sparc64_addr_bits_remove.
9518 (MAX_PROC_NAME_SIZE): New macro.
9519 (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines.
9520 (sparc64adilist): New variable.
9521 (adi_proc_list): New variable.
9522 (find_adi_info): New function.
9523 (add_adi_info): New function.
9524 (get_adi_info_proc): New function.
9525 (get_adi_info): New function.
9526 (info_adi_command): New function.
9527 (read_maps_entry): New function.
9528 (adi_available): New function.
9529 (adi_normalize_address): New function.
9530 (adi_align_address): New function.
9531 (adi_convert_byte_count): New function.
9532 (adi_tag_fd): New function.
9533 (adi_is_addr_mapped): New function.
9534 (adi_read_versions): New function.
9535 (adi_write_versions): New function.
9536 (adi_print_versions): New function.
9537 (do_examine): New function.
9538 (do_assign): New function.
9539 (adi_examine_command): New function.
9540 (adi_assign_command): New function.
9541 (_initialize_sparc64_adi_tdep): New function.
9543 2017-08-22 Simon Marchi <simon.marchi@ericsson.com>
9545 * breakpoint.c (breakpoints_info): Rename to ...
9546 (info_breakpoints_command): ... this.
9547 (watchpoints_info): Rename to ...
9548 (info_watchpoints_command): ... this.
9549 (tracepoints_info): Rename to ...
9550 (info_tracepoints_command): ... this.
9551 (_initialize_breakpoint): Adjust.
9552 * dcache.c (dcache_info): Rename to ...
9553 (info_display_command): ... this.
9554 (_initialize_dcache): Adjust.
9555 * frame.h (args_info): Rename to ...
9556 (info_args_command): ... this.
9557 (locals_info): Rename to ...
9558 (info_locals_command): ... this.
9559 * infcmd.c (nofp_registers_info): Rename to ...
9560 (info_registers_command): ... this.
9561 (float_info): Rename to ...
9562 (info_float_command): ... this.
9563 (program_info): Rename to ...
9564 (info_program_command): ... this.
9565 (all_registers_info): Rename to ...
9566 (info_all_registers_command): ... this.
9567 (vector_info): Rename to ...
9568 (info_vector_command): ... this.
9569 (float_info): Rename to ...
9570 (info_float_command): ... this.
9571 (_initialize_infcmd): Adjust.
9572 * inferior.h (term_info): Rename to ...
9573 (info_terminal_command): ... this.
9574 * inflow.c (term_info): Rename to ...
9575 (info_terminal_command): ... this.
9576 (_initialize_inflow): Adjust.
9577 * infrun.c (signals_info): Rename to ...
9578 (info_signals_command): ... this.
9579 (_initialize_infrun): Adjust.
9580 * objc-lang.c (classes_info): Rename to ...
9581 (info_classes_command): ... this.
9582 (selectors_info): Rename to ...
9583 (info_selectors_command): ... this.
9584 (_initialize_objc_language): Adjust.
9585 * printcmd.c (sym_info): Rename to ...
9586 (info_symbol_command): ... this.
9587 (address_info): Rename to ...
9588 (info_address_command): ... this.
9589 (display_info): Rename to ...
9590 (info_display_command): ... this.
9591 (_initialize_printcmd): Adjust.
9592 * reverse.c (bookmarks_info): Rename to ...
9593 (info_breakpoints_command): ... this.
9594 (_initialize_reverse): Adjust.
9595 * ser-go32.c (dos_info): Rename to ...
9596 (info_serial_command): ... this.
9597 (_initialize_ser_dos): Adjust.
9598 * skip.c (skip_info): Rename to ...
9599 (info_skip_command): ... this.
9600 (_initialize_step_skip): Adjust.
9601 * source.c (line_info): Rename to ...
9602 (info_line_command): ... this.
9603 (source_info): Rename to ...
9604 (info_source_command)
9605 * stack.c (frame_info): Rename to ...
9606 (info_frame_command): ... this.
9607 (locals_info): Rename to ...
9608 (info_locals_command): ... this.
9609 (args_info): Rename to ...
9610 (info_args_command): ... this.
9611 (_initialize_stack): Adjust.
9612 * symtab.c (sources_info): Rename to ...
9613 (info_sources_command): ... this.
9614 (variables_info): Rename to ...
9615 (info_variables_command): ... this.
9616 (functions_info): Rename to ...
9617 (info_functions_command): ... this.
9618 (types_info): Rename to ...
9619 (info_types_command): ... this.
9620 (_initialize_symtab): Adjust.
9621 * target.c (target_info): Rename to ...
9622 (info_target_command): ... this.
9623 (initialize_targets): Adjust.
9624 * tracepoint.c (tvariables_info): Rename to ...
9625 (info_tvariables_command): ... this.
9626 (scope_info): Rename to ...
9627 (info_scope_command): ... this.
9628 (trace_dump_actions): Adjust.
9629 (_initialize_tracepoint): Adjust.
9631 2017-08-22 Tom Tromey <tom@tromey.com>
9633 * breakpoint.h (install_breakpoint): Update.
9634 * breakpoint.c (add_solib_catchpoint): Update.
9635 (install_breakpoint): Change argument to a std::unique_ptr.
9636 (create_fork_vfork_event_catchpoint): Use std::unique_ptr.
9637 (create_breakpoint_sal, create_breakpoint): Update.
9638 (watch_command_1, catch_exec_command_1)
9639 (strace_marker_create_breakpoints_sal): Use std::unique_ptr.
9640 (add_to_breakpoint_chain): Change argument to a std::unique_ptr.
9641 Return the breakpoint.
9642 (set_raw_breakpoint_without_location, set_raw_breakpoint)
9643 (new_single_step_breakpoint): Update.
9644 * break-catch-throw.c (handle_gnu_v3_exceptions): Use
9646 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
9648 * break-catch-sig.c (create_signal_catchpoint): Use
9650 * ada-lang.c (create_ada_exception_catchpoint): Use
9653 2017-08-22 Tom Tromey <tom@tromey.com>
9655 * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr.
9657 2017-08-22 Tom Tromey <tom@tromey.com>
9659 * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr.
9660 (lookup_partial_symbol): Update.
9662 2017-08-22 Tom Tromey <tom@tromey.com>
9664 * source.h (rewrite_source_path): Return a unique_xmalloc_ptr.
9665 * source.c (rewrite_source_path): Return a unique_xmalloc_ptr.
9666 (find_and_open_source, symtab_to_fullname): Update.
9667 * psymtab.c (psymtab_to_fullname): Update.
9669 2017-08-22 Tom Tromey <tom@tromey.com>
9671 * exec.c (exec_file_attach): Update.
9672 * linux-thread-db.c (try_thread_db_load): Update.
9673 * guile/scm-safe-call.c (gdbscm_safe_source_script): Update.
9674 * utils.c (gdb_realpath): Change return type.
9675 (gdb_realpath_keepfile): Update.
9676 (gdb_realpath_check_trailer, gdb_realpath_tests): New functions.
9677 (_initialize_utils): Register the new self test.
9678 * source.c (openp): Update.
9679 (find_and_open_source): Update.
9680 * nto-tdep.c (nto_find_and_open_solib): Update.
9681 * main.c (set_gdb_data_directory): Update.
9682 (captured_main_1): Update.
9683 * dwarf2read.c (dwarf2_get_dwz_file): Update
9684 (dw2_map_symbol_filenames): Update.
9685 * auto-load.c (auto_load_safe_path_vec_update): Update.
9686 (filename_is_in_auto_load_safe_path_vec): Change type of
9688 (auto_load_objfile_script): Update.
9689 (file_is_auto_load_safe): Update. Use std::string.
9690 * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr.
9692 2017-08-22 Tom Tromey <tom@tromey.com>
9694 * utils.c (gdb_realpath_keepfile): Return a
9695 gdb::unique_xmalloc_ptr.
9696 * exec.c (exec_file_attach): Update.
9697 * utils.h (gdb_realpath_keepfile): Return a
9698 gdb::unique_xmalloc_ptr.
9700 2017-08-22 Tom Tromey <tom@tromey.com>
9702 * compile/compile.c (compile_file_command): Use
9703 gdb::unique_xmalloc_ptr, std::string.
9704 * utils.c (gdb_abspath): Change return type.
9705 * source.c (openp): Update.
9706 * objfiles.c (allocate_objfile): Update.
9707 * main.c (set_gdb_data_directory): Update.
9708 * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr.
9710 2017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com>
9712 * cli-cmds.c (list_commands): List actual code around more than
9715 2017-08-21 John Baldwin <jhb@FreeBSD.org>
9717 * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'.
9719 2017-08-21 Pedro Alves <palves@redhat.com>
9722 * c-exp.y (variable production): Handle function aliases.
9723 * minsyms.c (msymbol_is_text): New function.
9724 * minsyms.h (msymbol_is_text): Declare.
9725 * symtab.c (find_function_alias_target): New function.
9726 * symtab.h (find_function_alias_target): Declare.
9728 2017-08-21 Pedro Alves <palves@redhat.com>
9730 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past
9732 * typeprint.c (whatis_exp): If handling "whatis", and expression
9733 is OP_TYPE, strip one typedef level. Otherwise don't strip
9735 * valops.c (value_cast): Save "to" type before resolving
9736 stubs/typedefs. Use that type as resulting value's type.
9738 2017-08-18 Tom Tromey <tom@tromey.com>
9739 Pedro Alves <palves@redhat.com>
9741 * spu-multiarch.c (parse_spufs_run): Use scoped_restore.
9742 * sol-thread.c (sol_thread_resume, sol_thread_wait)
9743 (sol_thread_xfer_partial, rw_common): Use scoped_restore.
9744 * procfs.c (procfs_do_thread_registers): Use scoped_restore.
9745 * proc-service.c (ps_xfer_memory): Use scoped_restore.
9746 * linux-tdep.c (linux_corefile_thread): Remove a cleanup.
9747 (linux_get_siginfo_data): Add "thread" argument. Use
9749 * linux-nat.c (linux_child_follow_fork)
9750 (check_stopped_by_watchpoint): Use scoped_restore.
9751 * infrun.c (displaced_step_prepare_throw, write_memory_ptid)
9752 (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore.
9753 (restore_inferior_ptid, save_inferior_ptid): Remove.
9754 * btrace.c (btrace_fetch): Use scoped_restore.
9755 * bsd-uthread.c (bsd_uthread_fetch_registers)
9756 (bsd_uthread_store_registers): Use scoped_restore.
9757 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
9759 * aix-thread.c (aix_thread_resume, aix_thread_wait)
9760 (aix_thread_xfer_partial): Use scoped_restore.
9761 * inferior.h (save_inferior_ptid): Remove.
9763 2017-08-18 Yao Qi <yao.qi@linaro.org>
9766 * arm-tdep.c (gdb_print_insn_arm): Mark
9767 USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL.
9769 2017-08-18 Yao Qi <yao.qi@linaro.org>
9771 * NEWS: Mention GDBserver's new option "--selftest".
9772 * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c.
9773 * selftest.c: Move it to common/selftest.c.
9774 * selftest.h: Move it to common/selftest.h.
9775 * selftest-arch.c (reset): New function.
9776 (tests_with_arch): Call reset.
9778 2017-08-18 Yao Qi <yao.qi@linaro.org>
9780 * selftest.c (run_tests): Don't call QUIT. Call debug_printf
9781 instead of exception_fprintf and printf_filtered.
9783 2017-08-18 Yao Qi <yao.qi@linaro.org>
9785 * selftest.c (register_self_test): Rename it to
9786 selftests::register_test.
9787 (run_self_tests): selftest::run_tests.
9788 * selftest.h: Update declarations.
9789 * selftest-arch.c (register_self_test_foreach_arch): Rename it to
9790 selftests::register_test_foreach_arch.
9791 * selftest-arch.h: Update declaration.
9792 * aarch64-tdep.c: Update.
9793 * arm-tdep.c: Likewise.
9794 * disasm-selftests.c: Likewise.
9795 * dwarf2loc.c: Likewise.
9796 * dwarf2-frame.c: Likewise.
9797 * findvar.c: Likewise.
9798 * gdbarch-selftests.c: Likewise.
9799 * maint.c (maintenance_selftest): Likewise.
9800 * regcache.c: Likewise.
9801 * rust-exp.y: Likewise.
9802 * selftest-arch.c: Likewise.
9803 * unittests/environ-selftests.c: Likewise.
9804 * unittests/function-view-selftests.c: Likewise.
9805 * unittests/offset-type-selftests.c: Likewise.
9806 * unittests/optional-selftests.c: Likewise.
9807 * unittests/scoped_restore-selftests.c: Likewise.
9808 * utils-selftests.c: Likewise.
9810 2017-08-17 Pedro Alves <palves@redhat.com>
9812 * cli/cli-cmds.c (source_command): Delete 'old_source_verbose'
9815 2017-08-17 Pedro Alves <palves@redhat.com>
9817 * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New
9819 (reset_die_in_process): Delete, replaced by ...
9820 (process_die_scope): ... this new class. Make it responsible for
9821 freeing cu->line_header too.
9822 (process_die): Use process_die_scope.
9823 (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in
9824 cu->line_header_die_owner. Don't release the line header if it's
9826 (setup_type_unit_groups): Make the CU/DIE own the line header.
9827 Don't release the line header here.
9829 2017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change)
9831 * elfread.c (elf_read_minimal_symbols): xfree synthsyms.
9833 2017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com>
9835 * NEWS: Mention new shortcuts for nexti and stepi in TUI
9838 2017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com>
9840 * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key
9843 2017-08-15 Stafford Horne <shorne@gmail.com>
9845 * MAINTAINERS (Write After Approval): Add Stafford Horne.
9847 2017-08-15 Stafford Horne <shorne@gmail.com>
9849 * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname.
9851 2017-08-15 Sergio Durigan Junior <sergiodj@redhat.com>
9854 * infcmd.c (unset_environment_command): Use the 'clear' method on
9855 the environment instead of resetting it.
9857 2017-08-15 John Baldwin <jhb@FreeBSD.org>
9859 * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian
9862 2017-08-14 Tom Tromey <tom@tromey.com>
9864 * valprint.c (print_octal_chars): Use HOST_CHAR_BIT.
9865 (print_binary_chars): Likewise.
9866 (BITS_IN_BYTES): Remove.
9868 2017-08-14 Tom Tromey <tom@tromey.com>
9871 * valprint.c (LOW_ZERO): Change value to 034.
9872 (print_octal_chars): Add static_asserts for octal constants.
9873 * printcmd.c (print_scalar_formatted): Add 'd' case.
9875 2017-08-11 Tom Tromey <tom@tromey.com>
9877 * symfile.c (add_symbol_file_command): Use std::vector.
9879 2017-08-14 Tom Tromey <tom@tromey.com>
9881 * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move.
9882 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
9884 * break-catch-sig.c (create_signal_catchpoint): Use std::move.
9886 2017-08-11 Pedro Alves <palves@redhat.com>
9888 * infrun.c (process_event_stop_test): Adjust
9889 function_name_is_marked_for_skip call.
9890 * skip.c: Include <list>.
9891 (skiplist_entry): Make it a class with private fields, and
9893 (skiplist_entry_chain): Delete.
9894 (skiplist_entries): New.
9895 (skiplist_entry_count): Delete.
9896 (highest_skiplist_entry_num): New.
9897 (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete.
9898 (add_skiplist_entry): Delete.
9899 (skiplist_entry::skiplist_entry): New.
9900 (skiplist_entry::add_entry): New.
9901 (skip_file_command, skip_function): Adjust.
9902 (compile_skip_regexp): Delete.
9903 (skip_command): Don't compile regexp here. Adjust to use
9904 skiplist_entry::add_entry.
9905 (skip_info): Adjust to use range-for and getters.
9906 (skip_enable_command, skip_disable_command): Adjust to use
9907 range-for and setters.
9908 (skip_delete_command): Adjust to use std::list.
9909 (add_skiplist_entry): Delete.
9910 (skip_file_p): Delete, refactored as ...
9911 (skiplist_entry::do_skip_file_p): ... this new method.
9912 (skip_gfile_p): Delete, refactored as ...
9913 (skiplist_entry::do_gskip_file_p): ... this new method.
9914 (skip_function_p, skip_rfunction_p): Delete, refactored as ...
9915 (skiplist_entry::skip_function_p): ... this new method.
9916 (function_name_is_marked_for_skip): Now returns bool, and takes
9917 the function sal by const reference. Adjust to use range-for and
9918 skiplist_entry methods.
9919 (_initialize_step_skip): Remove references to
9920 skiplist_entry_chain, skiplist_entry_count.
9921 * skip.h (function_name_is_marked_for_skip): Now returns bool, and
9922 takes the function sal by const reference.
9924 2017-08-11 Yao Qi <yao.qi@linaro.org>
9926 * dwarf2-frame.c (clear_pointer_cleanup): Remove.
9927 (dwarf2_frame_cache): Remove reset_cache_cleanup.
9928 (dwarf2_frame_cache):
9929 * frame-unwind.c (frame_unwind_try_unwinder): Catch
9930 RETURN_MASK_ALL and set *this_case to NULL.
9931 * frame-unwind.h: Update comments.
9933 2017-08-11 Yao Qi <yao.qi@linaro.org>
9935 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove.
9936 (dwarf2_frame_state_copy_regs): Remove.
9937 (dwarf2_frame_state_free_regs): Remove.
9938 (dwarf2_frame_state::~dwarf2_frame_state): Remove.
9939 (dwarf2_restore_rule): Call method .alloc_regs instead of
9940 dwarf2_frame_state_alloc_regs.
9941 (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info
9942 constructor. Call std::move.
9943 (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs.
9944 (dwarf2_frame_cache): Likewise.
9946 [GDB_SELF_TEST]: Include selftest.h and
9948 [GDB_SELF_TEST] (execute_cfa_program_test): New function.
9949 (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register
9950 execute_cfa_program_test.
9952 * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor,
9953 copy ctor, assignment operator, move assignment.
9954 <alloc_regs>: New method.
9956 (struct dwarf2_frame_state): Delete dtor.
9957 (dwarf2_frame_state_alloc_regs): Remove declaration.
9958 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call
9959 dwarf2_frame_state_alloc_regs, use .alloc_regs instead.
9961 2017-08-11 Yao Qi <yao.qi@linaro.org>
9963 * dwarf2-frame.c (dwarf2_frame_state_free): Remove.
9964 (dwarf2_frame_state::dwarf2_frame_state): New.
9965 (dwarf2_frame_state::~dwarf2_frame_state): New.
9966 (dwarf2_fetch_cfa_info): Update.
9967 (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object
9968 rather than a pointer. Update code.
9969 * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and
9971 <data_align, code_align, retaddr_column>: Change them to const.
9972 <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them
9975 2017-08-11 Yao Qi <yao.qi@linaro.org>
9977 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove.
9978 <loc.exp>: New field.
9979 * dwarf2-frame.c (execute_cfa_program): Update.
9980 (dwarf2_frame_prev_register): Update.
9982 2017-08-10 Pedro Alves <palves@redhat.com>
9984 * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define.
9986 2017-08-09 John Baldwin <jhb@FreeBSD.org>
9988 * fbsd-nat.c (struct fbsd_fork_info): Remove.
9989 (fbsd_pending_children): Use std::list.
9990 (fbsd_remember_child): Likewise.
9991 (fbsd_is_child_pending): Likewise.
9992 (fbsd_pending_vfork_done): Use std::forward_list.
9993 (fbsd_add_vfork_done): Likewise.
9994 (fbsd_is_vfork_done_pending): Likewise.
9995 (fbsd_next_vfork_done): Likewise.
9997 2017-08-09 John Baldwin <jhb@FreeBSD.org>
9999 * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New.
10000 (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr.
10001 [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string
10003 (fbsd_xfer_partial): Use gdb::byte_vector.
10004 (fbsd_add_threads): Use gdb::unique_xmalloc_ptr.
10006 2017-08-09 John Baldwin <jhb@FreeBSD.org>
10008 * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and
10010 (fbsd_find_memory_regions): Fix `mapfile' initialization.
10012 2017-08-09 Tom Tromey <tom@tromey.com>
10014 * skip.c (skiplist_entry): New constructor.
10015 (skiplist_entry::enabled, skiplist_entry::function_is_regexp)
10016 (skiplist_entry::file_is_glob): Now bool.
10017 (skiplist_entry::file, skiplist_entry::function): Now
10019 (make_skip_entry): Return a unique_ptr. Use new.
10020 (free_skiplist_entry, free_skiplist_entry_cleanup)
10021 (make_free_skiplist_entry_cleanup): Remove.
10022 (skip_command, skip_disable_command, add_skiplist_entry)
10023 (skip_form_bytes, compile_skip_regexp, skip_command, skip_info)
10024 (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p)
10025 (function_name_is_marked_for_skip): Update.
10026 (skip_delete_command): Update. Use delete.
10028 2017-08-09 Jiong Wang <jiong.wang@arm.com>
10030 * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h".
10031 (aarch64_linux_core_read_description): New function.
10032 (aarch64_linux_init_abi): Register gdbarch_core_read_description.
10034 2017-08-09 Pedro Alves <palves@redhat.com>
10036 * cp-name-parser.y (cp_comp_to_string): Return a
10037 gdb::unique_xmalloc_ptr<char>.
10038 * cp-support.c (replace_typedefs_qualified_name)
10039 (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>.
10040 (cp_canonicalize_string_full): Use op= instead of explicit
10042 (cp_class_name_from_physname, method_name_from_physname)
10043 (cp_func_name, cp_remove_params): Adjust to use
10044 gdb::unique_xmalloc_ptr<char>.
10045 * cp-support.h (cp_comp_to_string): Return a
10046 gdb::unique_xmalloc_ptr<char>.
10047 * python/py-type.c (typy_lookup_type): Adjust to use
10048 gdb::unique_xmalloc_ptr<char>.
10050 2017-08-09 H.J. Lu <hongjiu.lu@intel.com>
10052 * dwarf2read.c (dwarf2_string_attr): Fix a typo.
10054 2017-08-09 Alex Lindsay <alexlindsay239@gmail.com>
10055 Yao Qi <yao.qi@linaro.org>
10057 * cp-support.c (cp_canonicalize_string_full): Use
10058 gdb::unique_xmalloc_ptr<char>.
10059 (cp_canonicalize_string): Likewise.
10061 2017-08-09 Yao Qi <yao.qi@linaro.org>
10063 * features/Makefile (WHICH): Remove i386/ non-linux stuff.
10064 * regformats/i386/amd64-avx-avx512.dat: Remove.
10065 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove.
10066 * regformats/i386/amd64-avx-mpx.dat:Remove.
10067 * regformats/i386/amd64-avx.dat: Remove.
10068 * regformats/i386/amd64-mpx.dat: Remove.
10069 * regformats/i386/i386-avx-avx512.dat: Remove.
10070 * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove.
10071 * regformats/i386/i386-avx-mpx.dat: Remove.
10072 * regformats/i386/i386-mmx.dat: Remove.
10073 * regformats/i386/i386-mpx.dat: Remove.
10075 2017-08-09 Yao Qi <yao.qi@linaro.org>
10077 * amd64-tdep.h (tdesc_x32): Remove the declaration.
10078 * amd64-tdep.c: Don't include features/i386/x32*.c.
10079 (_initialize_amd64_tdep): Don't call initialize_tdesc_x32*
10081 * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx,
10082 and i386/x32-avx-avx512.
10083 (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml,
10085 * features/i386/x32-avx-avx512.c: Removed.
10086 * features/i386/x32-avx-avx512.xml: Removed.
10087 * features/i386/x32-avx.c: Removed.
10088 * features/i386/x32-avx.xml: Removed.
10089 * features/i386/x32.c: Removed.
10090 * features/i386/x32.xml: Removed.
10091 * regformats/i386/x32-avx-avx512.dat: Removed.
10092 * regformats/i386/x32-avx.dat: Removed.
10093 * regformats/i386/x32.dat: Removed.
10095 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
10097 PR breakpoints/21886
10098 * mem-break.c (default_memory_insert_breakpoint): Use
10099 `->placed_address' rather than `->reqstd_address' for the
10100 breakpoint location.
10102 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
10104 * arch-utils.c (default_print_insn): Remove arch/mach/endian
10107 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
10109 * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with
10110 a union of `tdep_info', `tdesc_data' and `id'.
10111 * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data'
10112 rather than `info.tdep_info'.
10113 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
10114 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
10115 * i386-tdep.c (i386_gdbarch_init): Likewise.
10116 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
10117 * mips-tdep.c (mips_gdbarch_init): Likewise.
10118 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
10119 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10120 * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than
10122 (ppc_linux_init_abi): Use `info.tdesc_data' rather than
10124 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
10125 * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than
10127 * spu-tdep.c (spu_gdbarch_init): Likewise.
10128 * gdbarch.h: Regenerate.
10130 2017-08-07 Leszek Swirski <leszeks@google.com>
10133 * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt.
10135 2017-08-07 Simon Marchi <simon.marchi@ericsson.com>
10137 * remote-sim.c (gdbsim_load): Remove char **argv local variable.
10138 (gdbsim_open): Rename gdb_argv args object to argv.
10140 2017-08-05 Tom Tromey <tom@tromey.com>
10142 * compile/compile-object-load.c (compile_object_load): Use
10143 gdb::unique_xmalloc_ptr.
10144 * cli/cli-dump.c (scan_filename): Rename from
10145 scan_filename_with_cleanup. Change return type.
10146 (scan_expression): Rename from scan_expression_with_cleanup.
10147 Change return type.
10148 (dump_memory_to_file, dump_value_to_file, restore_command):
10149 Use gdb::unique_xmalloc_ptr. Update.
10150 * cli/cli-cmds.c (find_and_open_script): Use
10151 gdb::unique_xmalloc_ptr.
10152 * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr.
10153 * symmisc.c (maintenance_print_symbols)
10154 (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr.
10155 * symfile.c (symfile_bfd_open, generic_load)
10156 (add_symbol_file_command, remove_symbol_file_command): Use
10157 gdb::unique_xmalloc_ptr.
10158 * source.c (openp): Use gdb::unique_xmalloc_ptr.
10159 * psymtab.c (maintenance_print_psymbols): Use
10160 gdb::unique_xmalloc_ptr.
10161 * corelow.c (core_open): Use gdb::unique_xmalloc_ptr.
10162 * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr.
10163 * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr.
10164 (reload_shared_libraries_1): Likewise.
10166 2017-08-05 Tom Tromey <tom@tromey.com>
10168 * rust-exp.y (rust_op_ptr, set_field): Remove typedefs.
10169 (rust_op_vector, rust_set_vector): New typedefs.
10170 (current_parser): New global.
10171 (work_obstack): Change to pointer type. Update all users.
10172 (rust_ast, pstate): Remove globals.
10173 (struct rust_parser): New.
10174 (%union) <params, field_inits>: Change type.
10175 (start, tuple_expr, unit_expr, struct_expr_list, literal)
10176 (field_expr, expr_list, maybe_expr_list, type_list): Update.
10177 (ast_call_ish, ast_path, ast_function_type, ast_tuple_type)
10178 (convert_params_to_types, convert_params_to_expression): Change
10180 (ast_string): Change type of "fields".
10181 (rust_parse): Make a rust_parser. Remove cleanups.
10182 (rust_lex_tests): Make and install an auto_obstack.
10184 2017-08-04 Yao Qi <yao.qi@linaro.org>
10186 * configure.srv (ipa_x32_linux_regobj): New.
10187 * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
10188 instead of X86_TDESC_AVX512.
10189 (initialize_low_tracepoint): Call
10190 init_registers_x32_avx_avx512_linux.
10192 2017-08-04 Yao Qi <yao.qi@linaro.org>
10194 * utils.h (gdb_argv): Add namespace std for nullptr_t.
10196 2017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com>
10198 * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev.
10200 2017-08-03 Tom Tromey <tom@tromey.com>
10202 * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv):
10204 * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove.
10206 2017-08-03 Tom Tromey <tom@tromey.com>
10208 * python/py-param.c (compute_enum_values): Use gdb_argv.
10210 2017-08-03 Tom Tromey <tom@tromey.com>
10212 * utils.h (struct gdb_argv_deleter): New.
10213 (gdb_argv): New class.
10214 * utils.c (gdb_argv::reset): New method.
10215 * tracepoint.c (delete_trace_variable_command): Use gdb_argv.
10216 * tracefile.c (tsave_command): Use gdb_argv.
10217 * top.c (new_ui_command): Use gdb_argv.
10218 * symmisc.c (maintenance_print_symbols)
10219 (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv.
10220 * symfile.c (symbol_file_command, generic_load)
10221 (remove_symbol_file_command): Use gdb_argv.
10222 * stack.c (backtrace_command): Use gdb_argv.
10223 * source.c (add_path, show_substitute_path_command)
10224 (unset_substitute_path_command, set_substitute_path_command):
10226 * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv.
10227 * ser-mingw.c (pipe_windows_open): Use gdb_argv.
10228 * remote.c (extended_remote_run, remote_put_command)
10229 (remote_get_command, remote_delete_command): Use gdb_argv.
10230 * remote-sim.c (gdbsim_load, gdbsim_create_inferior)
10231 (gdbsim_open): Use gdb_argv.
10232 * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv.
10233 * psymtab.c (maintenance_print_psymbols): Use gdb_argv.
10234 * procfs.c (procfs_info_proc): Use gdb_argv.
10235 * interps.c (interpreter_exec_cmd): Use gdb_argv.
10236 * infrun.c (handle_command): Use gdb_argv.
10237 * inferior.c (add_inferior_command, clone_inferior_command):
10239 * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv.
10240 * exec.c (exec_file_command): Use gdb_argv.
10241 * cli/cli-cmds.c (alias_command): Use gdb_argv.
10242 * compile/compile.c (build_argc_argv): Use gdb_argv.
10244 2017-08-03 Tom Tromey <tom@tromey.com>
10246 * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr.
10248 2017-08-03 Tom Tromey <tom@tromey.com>
10250 * python/python.c (compute_python_string): Return std::string.
10251 (gdbpy_eval_from_control_command): Update.
10252 (do_start_initialization): Use std::string.
10253 * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not
10255 * python/py-breakpoint.c (local_setattro): Use string_printf, not
10258 2017-08-03 Tom Tromey <tom@tromey.com>
10260 * top.h (do_restore_instream_cleanup): Remove.
10261 * top.c (do_restore_instream_cleanup): Remove.
10262 (read_command_file): Use scoped_restore.
10263 * cli/cli-script.c (execute_user_command): Use scoped_restore.
10265 2017-08-03 Tom Tromey <tom@tromey.com>
10267 * cli/cli-script.c (execute_user_command)
10268 (execute_control_command): Use scoped_restore.
10270 2017-08-03 Tom Tromey <tom@tromey.com>
10272 * cli/cli-script.c (do_restore_user_call_depth): Remove.
10273 (execute_user_command): Remove user_call_depth; use
10274 user_args_stack's size instead.
10276 2017-08-03 Tom Tromey <tom@tromey.com>
10278 * top.h (in_user_command): Remove.
10279 * top.c (in_user_command): Remove.
10280 * cli/cli-script.c (do_restore_user_call_depth)
10281 (execute_user_command): Update.
10283 2017-08-03 Tom Tromey <tom@tromey.com>
10285 * valops.c (search_struct_method): Use gdb::byte_vector.
10286 * valarith.c (value_concat): Use std::vector.
10287 * target.c (memory_xfer_partial): Use gdb::byte_vector.
10288 (simple_search_memory): Likewise.
10289 * printcmd.c (find_string_backward): Use gdb::byte_vector.
10290 * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector.
10291 * gcore.c (gcore_copy_callback): Use gdb::byte_vector.
10292 * elfread.c (elf_rel_plt_read): Use std::string.
10293 * cp-valprint.c (cp_print_value): Use gdb::byte_vector.
10294 * cli/cli-dump.c (restore_section_callback): Use
10297 2017-08-03 Tom Tromey <tom@tromey.com>
10299 * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr.
10301 2017-08-03 Tom Tromey <tom@tromey.com>
10303 * tui/tui-regs.c (tui_restore_gdbout): Remove.
10304 (tui_register_format): Use scoped_restore.
10306 2017-08-03 Tom Tromey <tom@tromey.com>
10308 * reverse.c (exec_direction_default): Remove.
10309 (exec_reverse_once): Use scoped_restore.
10310 * remote.c (restore_remote_timeout): Remove.
10311 (remote_flash_erase, remote_flash_write, remote_flash_done)
10312 (readchar, remote_serial_write): Use scoped_restore.
10313 * cli/cli-script.c (struct source_cleanup_lines_args)
10314 (source_cleanup_lines): Remove.
10315 (script_from_file): Use scoped_restore.
10316 * cli/cli-cmds.c (source_verbose_cleanup): Remove.
10317 (source_command): Use scoped_restore.
10319 2017-08-03 Tom Tromey <tom@tromey.com>
10321 * utils.h (make_cleanup_free_so): Remove.
10322 * utils.c (do_free_so, make_cleanup_free_so): Remove.
10323 * solist.h (struct so_deleter): New.
10324 (so_list_up): New typedef.
10325 * solib-svr4.c (svr4_read_so_list): Use so_list_up.
10327 2017-08-03 Tom Tromey <tom@tromey.com>
10329 * utils.h (make_cleanup_restore_current_language): Remove.
10330 * utils.c (do_restore_current_language)
10331 (make_cleanup_restore_current_language): Remove.
10332 * parse.c (parse_exp_in_context_1)
10333 (parse_expression_with_language): Use
10334 scoped_restore_current_language.
10335 * mi/mi-main.c (mi_cmd_execute): Use
10336 scoped_restore_current_language.
10337 * language.h (scoped_restore_current_language): New class.
10339 2017-08-03 Tom Tromey <tom@tromey.com>
10341 * compile/compile.c (cleanup_unlink_file): Remove.
10342 (compile_to_object): Use gdb::unlinker.
10343 (eval_compile_command): Likewise.
10345 2017-08-03 Tom Tromey <tom@tromey.com>
10347 * utils.h (make_cleanup_fclose): Remove.
10348 * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove.
10350 2017-08-03 Tom Tromey <tom@tromey.com>
10352 * top.c (open_terminal_stream): Return gdb_file_up.
10353 (new_ui_command): Update.
10355 2017-08-03 Tom Tromey <tom@tromey.com>
10357 * source.c (print_source_lines_base, forward_search_command)
10358 (reverse_search_command): Use gdb_file_up.
10360 2017-08-03 Tom Tromey <tom@tromey.com>
10362 * fbsd-nat.c (fbsd_find_memory_regions): Update.
10364 2017-08-03 Tom Tromey <tom@tromey.com>
10366 * cli/cli-cmds.c (find_and_open_script): Change return type.
10367 Remove "streamp" and "full_path" parameters.
10368 (source_script_with_search): Update.
10369 * auto-load.c (source_script_file): Update.
10370 * cli/cli-cmds.h (find_and_open_script): Change type.
10371 (open_script): New struct.
10373 2017-08-03 Tom Tromey <tom@tromey.com>
10375 * xml-support.c (xml_fetch_content_from_file): Update.
10376 * ui-file.c (stdio_file::open): Update.
10377 * tracefile-tfile.c (tfile_start): Update.
10378 * remote.c (remote_file_put, remote_file_get): Update.
10379 * nat/linux-procfs.c (linux_proc_get_int)
10380 (linux_proc_pid_get_state, linux_proc_tid_get_name): Update.
10381 * nat/linux-osdata.c (linux_common_core_of_thread): Update.
10382 (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus)
10383 (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem)
10384 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update.
10385 * nat/linux-btrace.c (linux_determine_kernel_start): Update.
10386 * linux-nat.c (linux_proc_pending_signals): Update.
10387 * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up.
10388 (file_closer): Remove.
10389 * compile/compile.c (compile_to_object): Update.
10390 * common/filestuff.h (struct gdb_file_deleter): New.
10391 (gdb_file_up): New typedef.
10392 (gdb_fopen_cloexec): Change return type.
10393 * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up.
10394 * cli/cli-dump.c (fopen_with_cleanup): Remove.
10395 (dump_binary_file, restore_binary_file): Update.
10396 * auto-load.c (auto_load_objfile_script_1): Update.
10398 2017-08-03 Tom Tromey <tom@tromey.com>
10400 * tracepoint.c (tvariables_info_1): Use ui_out_emit_table.
10401 (info_static_tracepoint_markers_command): Likewise.
10402 * solib.c (info_sharedlibrary_command): Use ui_out_emit_table.
10403 * skip.c (skip_info): Use ui_out_emit_table.
10404 * progspace.c (print_program_space): Use ui_out_emit_table.
10405 * osdata.c (info_osdata): Use ui_out_emit_table.
10406 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use
10408 * linux-thread-db.c (info_auto_load_libthread_db): Use
10410 * inferior.c (print_inferior): Use ui_out_emit_table.
10411 * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table.
10412 * breakpoint.c (breakpoint_1): Use ui_out_emit_table.
10413 * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table.
10414 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table.
10415 * ui-out.h (class ui_out_emit_table): New.
10417 2017-08-02 Maciej W. Rozycki <macro@imgtec.com>
10419 * mips-tdep.c (mips_fpu_type_str): New function.
10420 (mips_dump_tdep): Call it.
10422 2017-08-01 Maciej W. Rozycki <macro@imgtec.com>
10424 * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access
10427 2017-07-31 Xavier Roirand <roirand@adacore.com>
10429 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
10431 2017-07-27 Xavier Roirand <roirand@adacore.com>
10433 * MAINTAINERS (Write After Approval): Add Xavier Roirand.
10435 2017-07-26 Yao Qi <yao.qi@linaro.org>
10437 * cli/cli-cmds.c (maintenancechecklist): New variable.
10438 * gdbcmd.h (maintenancechecklist): Declare it.
10439 * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]:
10440 Call i386_linux_read_description with different masks.
10441 * maint.c (maintenance_check_command): New function.
10442 (_initialize_maint_cmds): Call add_prefix_cmd.
10443 * target-descriptions.c (tdesc_reg): override operator != and ==.
10444 (tdesc_type): Likewise.
10445 (tdesc_feature): Likewise.
10446 (target_desc): Likewise.
10447 [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function.
10448 (maintenance_check_xml_descriptions): New function.
10449 (_initialize_target_descriptions) Add command "xml-descriptions".
10450 * target-descriptions.h (selftests::record_xml_tdesc): Declare.
10452 2017-07-26 Yao Qi <yao.qi@linaro.org>
10454 * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c.
10455 Include features/i386/32bit-*.c.
10456 (i386_linux_read_description): Generate target description if it
10458 (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386
10460 * features/i386/32bit-linux.c: Re-generated.
10461 * features/i386/32bit-sse.c: Likewise.
10462 * target-descriptions.c (print_c_feature::visit): Print code to
10463 set register number if needed.
10464 (print_c_feature) <m_next_regnum>: New field.
10466 2017-07-26 Yao Qi <yao.qi@linaro.org>
10468 * features/Makefile (CFILES): Rename with TDESC_CFILES.
10469 (FEATURE_XMLFILES): New.
10470 (FEATURE_CFILES): New.
10472 (clean-cfiles): Remove generated c files.
10473 * features/i386/32bit-avx.c: Generated.
10474 * features/i386/32bit-avx512.c: Generated.
10475 * features/i386/32bit-core.c: Generated.
10476 * features/i386/32bit-linux.c: Generated.
10477 * features/i386/32bit-mpx.c: Generated.
10478 * features/i386/32bit-pkeys.c: Generated.
10479 * features/i386/32bit-sse.c: Generated.
10480 * target-descriptions.c: Include algorithm.
10481 (tdesc_element_visitor): Add method visit_end.
10482 (print_c_tdesc): Implement visit_end.
10483 (print_c_tdesc:: m_filename_after_features): Move it to
10485 (print_c_feature): New class.
10486 (maint_print_c_tdesc_cmd): Use print_c_feature if XML file
10487 name starts with "i386/32bit-".
10489 2017-07-26 Yao Qi <yao.qi@linaro.org>
10491 * target-descriptions.c (tdesc_element_visitor): New class.
10492 (tdesc_element): New class.
10493 (tdesc_reg): Inherit from tdesc_element.
10494 (tdesc_reg::accept): New function.
10495 (tdesc_type): Inherit from tdesc_element.
10496 (tdesc_type::accept): New function.
10497 (tdesc_feature): Inherit from tdesc_element.
10498 (tdesc_feature::accept): New function.
10499 (target_desc): Inherit from tdesc_element.
10500 (target_desc::target_desc): New.
10501 (target_desc::~target_desc): New.
10502 (target_desc::accept): New.
10503 (allocate_target_description): Use new.
10504 (free_target_description): Use delete.
10505 (print_c_tdesc): New class.
10506 (maint_print_c_tdesc_cmd): Adjust.
10508 * features/aarch64.c: Re-generated.
10509 * features/arc-arcompact.c: Re-generated.
10510 * features/arc-v2.c: Re-generated.
10511 * features/arm/arm-with-iwmmxt.c: Re-generated.
10512 * features/arm/arm-with-m.c: Re-generated.
10513 * features/arm/arm-with-m-fpa-layout.c: Re-generated.
10514 * features/arm/arm-with-m-vfp-d16.c: Re-generated.
10515 * features/arm/arm-with-neon.c: Re-generated.
10516 * features/arm/arm-with-vfpv2.c: Re-generated.
10517 * features/arm/arm-with-vfpv3.c: Re-generated.
10518 * features/i386/amd64-avx-avx512.c: Re-generated.
10519 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
10520 * features/i386/amd64-avx.c: Re-generated.
10521 * features/i386/amd64-avx-linux.c: Re-generated.
10522 * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated.
10523 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
10524 * features/i386/amd64-avx-mpx.c: Re-generated.
10525 * features/i386/amd64-avx-mpx-linux.c: Re-generated.
10526 * features/i386/amd64.c: Re-generated.
10527 * features/i386/amd64-linux.c: Re-generated.
10528 * features/i386/amd64-mpx.c: Re-generated.
10529 * features/i386/amd64-mpx-linux.c: Re-generated.
10530 * features/i386/i386-avx-avx512.c: Re-generated.
10531 * features/i386/i386-avx-avx512-linux.c: Re-generated.
10532 * features/i386/i386-avx.c: Re-generated.
10533 * features/i386/i386-avx-linux.c: Re-generated.
10534 * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated.
10535 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated.
10536 * features/i386/i386-avx-mpx.c: Re-generated.
10537 * features/i386/i386-avx-mpx-linux.c: Re-generated.
10538 * features/i386/i386.c: Re-generated.
10539 * features/i386/i386-linux.c: Re-generated.
10540 * features/i386/i386-mmx.c: Re-generated.
10541 * features/i386/i386-mmx-linux.c: Re-generated.
10542 * features/i386/i386-mpx.c: Re-generated.
10543 * features/i386/i386-mpx-linux.c: Re-generated.
10544 * features/i386/x32-avx-avx512.c: Re-generated.
10545 * features/i386/x32-avx-avx512-linux.c: Re-generated.
10546 * features/i386/x32-avx.c: Re-generated.
10547 * features/i386/x32-avx-linux.c: Re-generated.
10548 * features/i386/x32.c: Re-generated.
10549 * features/i386/x32-linux.c: Re-generated.
10550 * features/microblaze.c: Re-generated.
10551 * features/microblaze-with-stack-protect.c: Re-generated.
10552 * features/mips64-dsp-linux.c: Re-generated.
10553 * features/mips64-linux.c: Re-generated.
10554 * features/mips-dsp-linux.c: Re-generated.
10555 * features/mips-linux.c: Re-generated.
10556 * features/nds32.c: Re-generated.
10557 * features/nios2.c: Re-generated.
10558 * features/nios2-linux.c: Re-generated.
10559 * features/rs6000/powerpc-32.c: Re-generated.
10560 * features/rs6000/powerpc-32l.c: Re-generated.
10561 * features/rs6000/powerpc-403.c: Re-generated.
10562 * features/rs6000/powerpc-403gc.c : Re-generated.
10563 * features/rs6000/powerpc-405.c: Re-generated.
10564 * features/rs6000/powerpc-505.c: Re-generated.
10565 * features/rs6000/powerpc-601.c: Re-generated.
10566 * features/rs6000/powerpc-602.c: Re-generated.
10567 * features/rs6000/powerpc-603.c: Re-generated.
10568 * features/rs6000/powerpc-604.c: Re-generated.
10569 * features/rs6000/powerpc-64.c: Re-generated.
10570 * features/rs6000/powerpc-64l.c: Re-generated.
10571 * features/rs6000/powerpc-7400.c: Re-generated.
10572 * features/rs6000/powerpc-750.c: Re-generated.
10573 * features/rs6000/powerpc-860.c: Re-generated.
10574 * features/rs6000/powerpc-altivec32.c: Re-generated.
10575 * features/rs6000/powerpc-altivec32l.c: Re-generated.
10576 * features/rs6000/powerpc-altivec64.c: Re-generated.
10577 * features/rs6000/powerpc-altivec64l.c: Re-generated.
10578 * features/rs6000/powerpc-cell32l.c: Re-generated.
10579 * features/rs6000/powerpc-cell64l.c: Re-generated.
10580 * features/rs6000/powerpc-e500.c: Re-generated.
10581 * features/rs6000/powerpc-e500l.c: Re-generated.
10582 * features/rs6000/powerpc-isa205-32l.c: Re-generated.
10583 * features/rs6000/powerpc-isa205-64l.c: Re-generated.
10584 * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated.
10585 * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated.
10586 * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated.
10587 * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated.
10588 * features/rs6000/powerpc-vsx32.c: Re-generated.
10589 * features/rs6000/powerpc-vsx32l.c: Re-generated.
10590 * features/rs6000/powerpc-vsx64.c: Re-generated.
10591 * features/rs6000/powerpc-vsx64l.c: Re-generated.
10592 * features/rs6000/rs6000.c: Re-generated.
10593 * features/s390-linux32.c: Re-generated.
10594 * features/s390-linux32v1.c: Re-generated.
10595 * features/s390-linux32v2.c: Re-generated.
10596 * features/s390-linux64.c: Re-generated.
10597 * features/s390-linux64v1.c: Re-generated.
10598 * features/s390-linux64v2.c: Re-generated.
10599 * features/s390-te-linux64.c: Re-generated.
10600 * features/s390-tevx-linux64.c: Re-generated.
10601 * features/s390-vx-linux64.c: Re-generated.
10602 * features/s390x-linux64.c: Re-generated.
10603 * features/s390x-linux64v1.c: Re-generated.
10604 * features/s390x-linux64v2.c: Re-generated.
10605 * features/s390x-te-linux64.c: Re-generated.
10606 * features/s390x-tevx-linux64.c: Re-generated.
10607 * features/s390x-vx-linux64.c: Re-generated.
10608 * features/sparc/sparc32-solaris.c: Re-generated.
10609 * features/sparc/sparc64-solaris.c: Re-generated.
10610 * features/tic6x-c62x.c: Re-generated.
10611 * features/tic6x-c62x-linux.c: Re-generated.
10612 * features/tic6x-c64x.c: Re-generated.
10613 * features/tic6x-c64x-linux.c: Re-generated.
10614 * features/tic6x-c64xp.c: Re-generated.
10615 * features/tic6x-c64xp-linux.c: Re-generated.
10617 2017-07-26 Yao Qi <yao.qi@linaro.org>
10619 * i386-linux-tdep.c (i386_linux_read_description): New function.
10620 (i386_linux_core_read_description): Call
10621 i386_linux_read_description.
10622 * i386-linux-tdep.h (i386_linux_read_description): Declare.
10623 (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations.
10624 (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise
10625 (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise.
10626 (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise.
10627 * x86-linux-nat.c (x86_linux_read_description): Call
10628 i386_linux_read_description.
10630 2017-07-26 Yao Qi <yao.qi@linaro.org>
10632 * NEWS: Mention it.
10633 * features/Makefile (%.c: %.xml): Pass the xml file name to
10634 command "maint print c-tdesc".
10635 * target-descriptions.c (maint_print_c_tdesc_cmd): Get file
10638 2017-07-26 Yao Qi <yao.qi@linaro.org>
10640 * target-descriptions.c (target_desc): Add ctor and dtor. Do
10641 in-class initialization.
10642 (tdesc_create_feature): Call new instead of XCNEW.
10643 (free_target_description): Ue delete.
10645 2017-07-25 John Baldwin <jhb@FreeBSD.org>
10647 * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo.
10649 2017-07-25 Yao Qi <yao.qi@linaro.org>
10651 * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc
10653 (amd64_x32_init_abi): Likewise.
10654 * amd64-tdep.h (amd64_init_abi): Update declaration.
10655 (amd64_x32_init_abi): Likewise.
10657 2017-07-25 Yao Qi <yao.qi@linaro.org>
10660 * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update
10661 condition for FPSCR.
10662 (arm_linux_store_inferior_registers): Likewise.
10664 2017-07-22 Tom Tromey <tom@tromey.com>
10666 * break-catch-syscall.c (struct catch_syscall_inferior_data)
10667 <syscalls_counts>: Now a std::vector.
10668 (get_catch_syscall_inferior_data): Use "new".
10669 (catch_syscall_inferior_data_cleanup): Use "delete".
10670 (insert_catch_syscall, remove_catch_syscall)
10671 (clear_syscall_counts): Update.
10673 2017-07-22 Tom Tromey <tom@tromey.com>
10675 * break-catch-syscall.c (syscall_catchpoint)
10676 <syscalls_to_be_caught>: Now a std::vector<int>
10677 (~syscall_catchpoint): Remove.
10678 (insert_catch_syscall, remove_catch_syscall)
10679 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
10680 (print_mention_catch_syscall, print_recreate_catch_syscall):
10682 (create_syscall_event_catchpoint): Change type of "filter"
10684 (catch_syscall_split_args): Return a std::vector.
10685 (catch_syscall_command_1, catching_syscall_number_1): Update.
10687 2017-07-22 Tom Tromey <tom@tromey.com>
10689 * break-catch-throw.c (struct exception_catchpoint)
10690 <exception_rx>: Now a std::string.
10691 (~exception_catchpoint): Remove.
10692 (print_one_detail_exception_catchpoint): Update.
10693 (handle_gnu_v3_exceptions): Change type of except_rx.
10694 (extract_exception_regexp): Return a std::string.
10695 (catch_exception_command_1): Update.
10697 2017-07-22 Tom Tromey <tom@tromey.com>
10699 * break-catch-sig.c (gdb_signal_type): Remove typedef.
10700 (struct signal_catchpoint) <signals_to_be_caught>: Now a
10702 <catch_all>: Now a bool.
10703 (~signal_catchpoint): Remove.
10704 (signal_catchpoint_insert_location)
10705 (signal_catchpoint_remove_location)
10706 (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one)
10707 (signal_catchpoint_print_mention)
10708 (signal_catchpoint_print_recreate)
10709 (signal_catchpoint_explains_signal): Update.
10710 (create_signal_catchpoint): Change type of "filter" and
10712 (catch_signal_split_args): Return a std::vector. Change type of
10714 (catch_signal_command): Update.
10716 2017-07-20 Pedro Alves <palves@redhat.com>
10718 * ada-lang.c (ada_language_defn): Make extern.
10719 (_initialize_ada_language): Remove add_language call.
10720 * c-lang.c (c_language_defn, cplus_language_defn)
10721 (asm_language_defn, minimal_language_defn): Make extern.
10722 (_initialize_c_language): Delete.
10723 * completer.c (compare_cstrings): Delete, moved to utils.h.
10724 * d-lang.c (d_language_defn): Make extern.
10725 (_initialize_d_language): Remove add_language calls.
10726 * defs.h (enum language): Add comment.
10727 * f-lang.c (f_language_defn): Make extern.
10728 (_initialize_f_language): Remove add_language call.
10729 * go-lang.c (go_language_defn): Make extern.
10730 (_initialize_go_language): Remove add_language call.
10731 * language.c: Include <algorithm>.
10732 (languages): Redefine as const array.
10733 (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete.
10734 (set_language_command): Handle "local". Use for-range loop.
10735 (set_language): Remove loop.
10736 (language_enum): Rewrite.
10737 (language_def, language_str): Remove loops.
10738 (add_language): Delete.
10739 (add_set_language_command): New, based on add_languages.
10740 (skip_language_trampoline): Adjust.
10741 (local_language_defn): Delete.
10742 (language_gdbarch_post_init): Adjust.
10743 (_initialize_language): Remove add_language calls. Call
10744 add_set_language_command.
10745 * language.h (add_language): Delete.
10746 (auto_language_defn)
10747 (unknown_language_defn, minimal_language_defn, ada_language_defn)
10748 (asm_language_defn, c_language_defn, cplus_language_defn)
10749 (d_language_defn, f_language_defn, go_language_defn)
10750 (m2_language_defn, objc_language_defn, opencl_language_defn)
10751 (pascal_language_defn, rust_language_defn): Declare.
10752 * m2-lang.c (m2_language_defn): Make extern.
10753 (_initialize_m2_language): Remove add_language call.
10754 * objc-lang.c (objc_language_defn): Make extern.
10755 (_initialize_objc_language): Remove add_language call.
10756 * opencl-lang.c (opencl_language_defn): Make extern.
10757 (_initialize_opencl_language): Remove add_language call.
10758 * p-lang.c (pascal_language_defn): Make extern.
10759 (_initialize_pascal_language): Delete.
10760 * rust-lang.c (rust_language_defn): Make extern.
10761 (_initialize_rust_language): Delete.
10762 * utils.h (compare_cstrings): New static inline function.
10764 2017-07-20 Pedro Alves <palves@redhat.com>
10766 * ada-lang.c (ada_to_fixed_type_1): Adjust.
10767 (get_var_value): Constify parameters.
10768 (get_int_var_value): Change prototype.
10769 (to_fixed_range_type): Adjust.
10770 * ada-lang.h (get_int_var_value): Change prototype.
10772 2017-07-20 Pedro Alves <palves@redhat.com>
10774 * dwarf2read.c (dw2_lookup_symbol): Use
10775 SYMBOL_MATCHES_SEARCH_NAME.
10776 * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME.
10778 2017-07-20 Pedro Alves <palves@redhat.com>
10780 * block.c (block_iter_name_step, block_iter_name_first)
10781 (block_iter_name_next): Delete.
10782 (block_lookup_symbol_primary): Adjust to use
10783 dict_iter_match_first/dict_iter_match_next.
10784 * block.h (block_iter_name_first, block_iter_name_next): Delete
10786 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use
10787 dict_iter_match_first/dict_iter_match_next.
10789 2017-07-20 Pedro Alves <palves@redhat.com>
10791 * cp-support.c (cp_find_first_component_aux): Add missing case for
10794 2017-07-18 David Blaikie <dblaikie@gmail.com>
10796 * dwarf2read.c (create_cus_hash_table): Re-add lost initialization
10797 of dwo_cu's dwo_file.
10799 2017-07-18 Yao Qi <yao.qi@linaro.org>
10801 * remote.c (store_registers_using_G): Remove one line comment.
10803 2017-07-18 Yao Qi <yao.qi@linaro.org>
10805 * regcache.c (regcache_cpy): Simplify it.
10806 (regcache::cpy_no_passthrough): Remove it.
10807 * regcache.h (cpy_no_passthrough): Remove it.
10808 (regcache_dup, regcache_cpy): Update comments.
10810 2017-07-18 Pedro Alves <palves@redhat.com>
10812 * remote-sim.c (sim_command_completer): Adjust to work with a
10813 completion_tracker instead of a VEC.
10815 2017-07-17 Pedro Alves <palves@redhat.com>
10817 * completer.c (complete_source_filenames): New function.
10818 (complete_address_and_linespec_locations): New function.
10819 (location_completer): Use complete_address_and_linespec_locations.
10820 (completion_tracker::build_completion_result): Honor the tracker's
10821 request to suppress append.
10822 * completer.h (completion_tracker::suppress_append_ws)
10823 (completion_tracker::set_suppress_append_ws): New methods.
10824 (completion_tracker::m_suppress_append_ws): New field.
10825 (complete_source_filenames): New declaration.
10826 * linespec.c (linespec_complete_what): New.
10827 (struct ls_parser) <complete_what, completion_word,
10828 completion_quote_char, completion_quote_end, completion_tracker>:
10830 (string_find_incomplete_keyword_at_end): New.
10831 (linespec_lexer_lex_string): Record quote char. If in completion
10833 (linespec_lexer_consume_token): Advance the completion word point.
10834 (linespec_lexer_peek_token): Save/restore completion info.
10835 (save_stream_and_consume_token): New.
10836 (set_completion_after_number): New.
10837 (linespec_parse_basic): Set what to complete next depending on
10838 token. Handle function and label completions specially.
10839 (parse_linespec): Disable objc shortcut in completion mode. Set
10840 what to complete next depending on token type. Skip keyword if in
10842 (complete_linespec_component, linespec_complete): New.
10843 * linespec.h (linespec_complete): Declare.
10845 2017-07-17 Pedro Alves <palves@redhat.com>
10847 * linespec.c (linespec_lexer_lex_string, find_toplevel_char):
10848 Handle 'operator<' / 'operator<<'.
10850 2017-07-17 Pedro Alves <palves@redhat.com>
10852 * completer.c (collect_explicit_location_matches): Handle
10854 (convert_explicit_location_to_linespec): New, factored out from
10856 (convert_explicit_location_to_sals): ... this.
10857 (complete_label): New.
10858 (linespec_complete_label, find_label_symbols_in_block): New.
10859 (find_label_symbols): Add completion_mode parameter and adjust to
10860 call find_label_symbols_in_block.
10861 * linespec.h (linespec_complete_label): Declare.
10863 2017-07-17 Pedro Alves <palves@redhat.com>
10865 * ada-lang.c (ada_collect_symbol_completion_matches): Add
10866 complete_symbol_mode parameter.
10867 * cli/cli-cmds.c (complete_command): Get the completion result out
10868 of the handle_brkchars tracker if used a custom word point.
10869 * completer.c: Include "linespec.h".
10870 (enum explicit_location_match_type) <MATCH_LINE>: New enumerator.
10871 (advance_to_expression_complete_word_point): New.
10872 (completion_tracker::completes_to_completion_word): New.
10873 (complete_files_symbols): Pass down
10874 complete_symbol_mode::EXPRESSION.
10875 (explicit_options, probe_options): New.
10876 (collect_explicit_location_matches): Complete on the
10877 explictit_loc->foo instead of word. Use
10878 linespec_complete_function. Handle MATCH_LINE. Handle offering
10879 keyword and options completions.
10880 (backup_text_ptr): Delete.
10881 (skip_keyword): New.
10882 (complete_explicit_location): Remove 'word' parameter. Add
10883 language, quoted_arg_start and quoted_arg_end parameters.
10884 Rewrite, parsing left to right.
10885 (location_completer): Rewrite.
10886 (location_completer_handle_brkchars): New function.
10887 (symbol_completer): Pass down complete_symbol_mode::EXPRESSION.
10888 (enum complete_line_internal_reason): Adjust comments.
10889 (completion_tracker::discard_completions): New.
10890 (completer_handle_brkchars_func_for_completer): Handle
10891 location_completer.
10892 (gdb_custom_word_point_brkchars)
10893 (gdb_org_rl_basic_quote_characters): New.
10894 (gdb_completion_word_break_characters_throw)
10895 (completion_find_completion_word): Handle trackers that use a
10897 (completion_tracker::advance_custom_word_point_by): New.
10898 (completion_tracker::build_completion_result): Don't rely on
10899 readline appending the quote char.
10900 (gdb_rl_attempted_completion_function_throw): Handle trackers that
10901 use a custom word point.
10902 (gdb_rl_attempted_completion_function): Restore
10903 rl_basic_quote_characters.
10904 * completer.h (class completion_tracker): Extend intro comment.
10905 (completion_tracker::set_quote_char)
10906 (completion_tracker::quote_char)
10907 (completion_tracker::set_use_custom_word_point)
10908 (completion_tracker::use_custom_word_point)
10909 (completion_tracker::custom_word_point)
10910 (completion_tracker::set_custom_word_point)
10911 (completion_tracker::advance_custom_word_point_by)
10912 (completion_tracker::completes_to_completion_word)
10913 (completion_tracker::discard_completions): New methods.
10914 (completion_tracker::m_quote_char)
10915 (completion_tracker::m_use_custom_word_point)
10916 (completion_tracker::m_custom_word_point): New fields.
10917 (advance_to_expression_complete_word_point): Declare.
10918 * f-lang.c (f_collect_symbol_completion_matches): Add
10919 complete_symbol_mode parameter.
10920 * language.h (struct language_defn)
10921 <la_collect_symbol_completion_matches>: Add complete_symbol_mode
10923 * linespec.c (linespec_keywords): Add NULL terminator. Make extern.
10924 (linespec_complete_function): New function.
10925 (linespec_lexer_lex_keyword): Adjust.
10926 * linespec.h (linespec_keywords, linespec_complete_function): New
10928 * location.c (find_end_quote): New function.
10929 (explicit_location_lex_one): Add explicit_completion_info
10930 parameter. Save quoting info. Don't throw if being called for
10931 completion. Don't handle Ada operators here.
10932 (is_cp_operator, skip_op_false_positives, first_of)
10933 (explicit_location_lex_one_function): New function.
10934 (string_to_explicit_location): Replace 'dont_throw' parameter with
10935 an explicit_completion_info pointer parameter. Handle it. Don't
10936 use explicit_location_lex_one to lex function names. Use
10937 explicit_location_lex_one_function instead.
10938 * location.h (struct explicit_completion_info): New.
10939 (string_to_explicit_location): Replace 'dont_throw' parameter with
10940 an explicit_completion_info pointer parameter.
10941 * symtab.c (default_collect_symbol_completion_matches_break_on):
10942 Add complete_symbol_mode parameter. Handle LINESPEC mode.
10943 (default_collect_symbol_completion_matches)
10944 (collect_symbol_completion_matches): Add complete_symbol_mode
10946 (collect_symbol_completion_matches_type): Pass down
10947 complete_symbol_mode::EXPRESSION.
10948 (collect_file_symbol_completion_matches): Add complete_symbol_mode
10949 parameter. Handle LINESPEC mode.
10950 * symtab.h (complete_symbol_mode): New.
10951 (default_collect_symbol_completion_matches_break_on)
10952 (default_collect_symbol_completion_matches)
10953 (collect_symbol_completion_matches)
10954 (collect_file_symbol_completion_matches): Add complete_symbol_mode
10957 2017-07-17 Pedro Alves <palves@redhat.com>
10959 * utils.c (enum class strncmp_iw_mode): New.
10960 (strcmp_iw): Rename to ...
10961 (strncmp_iw_with_mode): ... this. Add string2_len and mode
10962 parameters. Handle them.
10964 (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode.
10965 * utils.h (strncmp_iw): Declare.
10966 (strcmp_iw): Move describing comments here.
10968 2017-07-17 Pedro Alves <palves@redhat.com>
10970 * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and
10972 * c-typeprint.c (is_type_conversion_operator): Use
10974 * cp-support.c (LENGTH_OF_OPERATOR): Delete.
10975 (cp_find_first_component_aux): Use CP_OPERATOR_STR and
10977 * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New.
10978 * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR.
10979 * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR.
10980 * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and
10982 * location.c: Include "cp-support.h".
10983 (explicit_location_lex_one): Use CP_OPERATOR_LEN and
10985 * symtab.c (operator_chars): Use CP_OPERATOR_STR and
10988 2017-07-17 Pedro Alves <palves@redhat.com>
10990 * cli/cli-cmds.c (complete_command): Use a completion tracker
10991 along with completion_find_completion_word for handle_brkchars
10993 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
10994 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New.
10995 (struct gdb_rl_completion_word_info): New.
10996 (gdb_rl_find_completion_word): New.
10997 (completion_find_completion_word): New.
10998 * completer.h (completion_find_completion_word): Declare.
11000 2017-07-17 Pedro Alves <palves@redhat.com>
11002 * ada-lang.c (symbol_completion_match): Adjust comments.
11003 (symbol_completion_add): Replace vector parameter with
11004 completion_tracker parameter. Use it.
11005 (ada_make_symbol_completion_list): Rename to...
11006 (ada_collect_symbol_completion_matches): ... this. Add
11007 completion_tracker parameter and use it.
11008 (ada_language_defn): Adjust.
11009 * break-catch-syscall.c (catch_syscall_completer): Adjust
11010 prototype and work with completion_tracker instead of VEC.
11011 * breakpoint.c (condition_completer): Adjust prototype and work
11012 with completion_tracker instead of VEC.
11013 * c-lang.c (c_language_defn, cplus_language_defn)
11014 (asm_language_defn, minimal_language_defn): Adjust to renames.
11015 * cli/cli-cmds.c (complete_command): Rework using
11016 completion_tracker. Catch exceptions when completing.
11017 * cli/cli-decode.c (integer_unlimited_completer)
11018 (complete_on_cmdlist, complete_on_enum): Adjust prototype and work
11019 with completion_tracker instead of VEC.
11020 * command.h (struct completion_tracker): Forward declare.
11021 (completer_ftype, completer_handle_brkchars_ftype): Change
11023 (complete_on_cmdlist, complete_on_enum): Adjust.
11024 * completer.c: Include <algorithm>.
11025 (struct gdb_completer_state): New.
11026 (current_completion): New global.
11027 (readline_line_completion_function): Delete.
11028 (noop_completer, filename_completer)
11029 (filename_completer_handle_brkchars, complete_files_symbols)
11030 (linespec_location_completer): Adjust to work with a
11031 completion_tracker instead of a VEC.
11032 (string_or_empty): New.
11033 (collect_explicit_location_matches): Adjust to work with a
11034 completion_tracker instead of a VEC.
11035 (explicit_location_completer): Rename to ...
11036 (complete_explicit_location): ... this and adjust to work with a
11037 completion_tracker instead of a VEC.
11038 (location_completer): Adjust to work with a completion_tracker
11040 (add_struct_fields): Adjust to work with a completion_list instead
11042 (expression_completer): Rename to ...
11043 (complete_expression): ... this and adjust to work with a
11044 completion_tracker instead of a VEC. Use complete_files_symbols.
11045 (expression_completer): Reimplement on top of complete_expression.
11046 (symbol_completer): Adjust to work with a completion_tracker
11048 (enum complete_line_internal_reason): Add describing comments.
11049 (complete_line_internal_normal_command): Adjust to work with a
11050 completion_tracker instead of a VEC.
11051 (complete_line_internal): Rename to ...
11052 (complete_line_internal_1): ... this and adjust to work with a
11053 completion_tracker instead of a VEC. Assert TEXT is NULL in the
11054 handle_brkchars phase.
11055 (new_completion_tracker): Delete.
11056 (complete_line_internal): Reimplement as TRY/CATCH wrapper around
11057 complete_line_internal_1.
11058 (free_completion_tracker): Delete.
11059 (INITIAL_COMPLETION_HTAB_SIZE): New.
11060 (completion_tracker::completion_tracker)
11061 (completion_tracker::~completion_tracker): New.
11062 (maybe_add_completion): Delete.
11063 (completion_tracker::maybe_add_completion)
11064 (completion_tracker::add_completion)
11065 (completion_tracker::add_completions): New.
11066 (throw_max_completions_reached_error): Delete.
11067 (complete_line): Adjust to work with a completion_tracker instead
11068 of a VEC. Don't create a completion_tracker_t or check for max
11070 (command_completer, command_completer_handle_brkchars)
11071 (signal_completer, reg_or_group_completer_1)
11072 (reg_or_group_completer, default_completer_handle_brkchars):
11073 Adjust to work with a completion_tracker.
11074 (gdb_completion_word_break_characters_throw): New.
11075 (gdb_completion_word_break_characters): Reimplement.
11076 (line_completion_function): Delete.
11077 (completion_tracker::recompute_lowest_common_denominator)
11078 (expand_preserving_ws)
11079 (completion_tracker::build_completion_result)
11080 (completion_result::completion_result)
11081 (completion_result::completion_result)
11082 (completion_result::~completion_result)
11083 (completion_result::completion_result)
11084 (completion_result::release_match_list, compare_cstrings)
11085 (completion_result::sort_match_list)
11086 (completion_result::reset_match_list)
11087 (gdb_rl_attempted_completion_function_throw)
11088 (gdb_rl_attempted_completion_function): New.
11089 * completer.h (completion_list, struct completion_result)
11090 (class completion_tracker): New.
11091 (complete_line): Add completion_tracker parameter.
11092 (readline_line_completion_function): Delete.
11093 (gdb_rl_attempted_completion_function): New.
11094 (noop_completer, filename_completer, expression_completer)
11095 (location_completer, symbol_completer, command_completer)
11096 (signal_completer, reg_or_group_completer): Update prototypes.
11097 (completion_tracker_t, new_completion_tracker)
11098 (make_cleanup_free_completion_tracker): Delete.
11099 (enum maybe_add_completion_enum): Delete.
11100 (maybe_add_completion): Delete.
11101 (throw_max_completions_reached_error): Delete.
11102 * corefile.c (complete_set_gnutarget): Adjust to work with a
11103 completion_tracker instead of a VEC.
11104 * cp-abi.c (cp_abi_completer): Adjust to work with a
11105 completion_tracker instead of a VEC.
11106 * d-lang.c (d_language_defn): Adjust.
11107 * disasm.c (disassembler_options_completer): Adjust to work with a
11108 completion_tracker instead of a VEC.
11109 * f-lang.c (f_make_symbol_completion_list): Rename to ...
11110 (f_collect_symbol_completion_matches): ... this. Adjust to work
11111 with a completion_tracker instead of a VEC.
11112 (f_language_defn): Adjust.
11113 * go-lang.c (go_language_defn): Adjust.
11114 * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer):
11115 Adjust to work with a completion_tracker instead of a VEC.
11116 * infrun.c (handle_completer): Likewise.
11117 * interps.c (interpreter_completer): Likewise.
11118 * interps.h (interpreter_completer): Likewise.
11119 * language.c (unknown_language_defn, auto_language_defn)
11120 (local_language_defn): Adjust.
11121 * language.h (language_defn::la_make_symbol_completion_list):
11123 (language_defn::la_collect_symbol_completion_matches): ... this
11124 and adjust to work with a completion_tracker instead of a VEC.
11125 * m2-lang.c (m2_language_defn): Adjust.
11126 * objc-lang.c (objc_language_defn): Adjust.
11127 * opencl-lang.c (opencl_language_defn): Adjust.
11128 * p-lang.c (pascal_language_defn): Adjust.
11129 * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word.
11130 (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work
11131 with a completion_tracker.
11132 * rust-lang.c (rust_language_defn): Adjust.
11133 * symtab.c (free_completion_list, do_free_completion_list)
11134 (return_val, completion_tracker): Delete.
11135 (completion_list_add_name, completion_list_add_symbol)
11136 (completion_list_add_msymbol, completion_list_objc_symbol)
11137 (completion_list_add_fields, add_symtab_completions): Add
11138 completion_tracker parameter and use it.
11139 (default_make_symbol_completion_list_break_on_1): Rename to...
11140 (default_collect_symbol_completion_matches_break_on): ... this.
11141 Add completion_tracker parameter and use it instead of allocating
11142 a completion tracker here.
11143 (default_make_symbol_completion_list_break_on): Delete old
11145 (default_make_symbol_completion_list): Delete.
11146 (default_collect_symbol_completion_matches): New.
11147 (make_symbol_completion_list): Delete.
11148 (collect_symbol_completion_matches): New.
11149 (make_symbol_completion_type): Rename to ...
11150 (collect_symbol_completion_matches_type): ... this. Add
11151 completion_tracker parameter and use it instead of VEC.
11152 (make_file_symbol_completion_list_1): Rename to...
11153 (collect_file_symbol_completion_matches): ... this. Add
11154 completion_tracker parameter and use it instead of VEC.
11155 (make_file_symbol_completion_list): Delete.
11156 (add_filename_to_list): Use completion_list instead of a VEC.
11157 (add_partial_filename_data::list): Now a completion_list.
11158 (make_source_files_completion_list): Work with a completion_list
11160 * symtab.h: Include "completer.h".
11161 (default_make_symbol_completion_list_break_on)
11162 (default_make_symbol_completion_list, make_symbol_completion_list)
11163 (make_symbol_completion_type, make_file_symbol_completion_list)
11164 (make_source_files_completion_list): Delete.
11165 (default_collect_symbol_completion_matches_break_on)
11166 (default_collect_symbol_completion_matches)
11167 (collect_symbol_completion_matches)
11168 (collect_symbol_completion_matches_type)
11169 (collect_file_symbol_completion_matches)
11170 (make_source_files_completion_list): New.
11171 * top.c (init_main): Don't install a rl_completion_entry_function
11172 hook. Install a rl_attempted_completion_function hook instead.
11173 * tui/tui-layout.c (layout_completer): Adjust to work with a
11174 completion_tracker.
11175 * tui/tui-regs.c (tui_reggroup_completer):
11176 * tui/tui-win.c (window_name_completer, focus_completer)
11177 (winheight_completer): Adjust to work with a completion_tracker.
11178 * value.c: Include "completer.h".
11179 (complete_internalvar): Adjust to work with a completion_tracker.
11180 * value.h (complete_internalvar): Likewise.
11182 2017-07-17 Pedro Alves <palves@redhat.com>
11184 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to
11186 * cli/cli-decode.h (struct cmd_list_element) <completer>: Move
11187 comments to completer_ftype's declaration.
11188 <completer_handle_brkchars>: Change type to
11189 completer_handle_brkchars_ftype.
11190 * command.h (completer_ftype): Add describing comment and give
11191 names to parameters.
11192 (completer_ftype_void): Rename to ...
11193 (completer_handle_brkchars_ftype) ... this. Add describing comment.
11194 (set_cmd_completer_handle_brkchars): Adjust.
11195 * completer.c (filename_completer_handle_brkchars): New function.
11196 (complete_line_internal_normal_command): New function, factored
11198 (complete_line_internal): ... here.
11199 (command_completer_handle_brkchars)
11200 (default_completer_handle_brkchars)
11201 (completer_handle_brkchars_func_for_completer): New functions.
11202 * completer.h (set_gdb_completion_word_break_characters): Delete
11204 (completer_handle_brkchars_func_for_completer): New declaration.
11205 * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use
11206 completer_handle_brkchars_func_for_completer.
11208 2017-07-17 Pedro Alves <palves@redhat.com>
11210 * completer.c (symbol_completer): New function, based on
11211 make_symbol_completion_list_fn.
11212 * completer.h (symbol_completer): New declaration.
11213 * guile/scm-cmd.c (cmdscm_completers): Adjust.
11214 * python/py-cmd.c (completers): Adjust.
11215 * symtab.c (make_symbol_completion_list_fn): Delete.
11216 * symtab.h (make_symbol_completion_list_fn): Delete.
11217 * cli/cli-decode.c (add_cmd): Adjust.
11219 2017-07-17 Pedro Alves <palves@redhat.com>
11221 * Makefile.in (COMMON_OBS): Add filename-seen-cache.o.
11222 * dwarf2read.c: Include "filename-seen-cache.h".
11223 * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field.
11224 (dw2_map_symbol_filenames): Build and use a filenames_seen_cache.
11225 * filename-seen-cache.c: New file.
11226 * filename-seen-cache.h: New file.
11227 * symtab.c: Include "filename-seen-cache.h".
11228 (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE)
11229 (create_filename_seen_cache, clear_filename_seen_cache)
11230 (delete_filename_seen_cache, filename_seen): Delete, parts moved
11231 to filename-seen-cache.h/filename-seen-cache.c.
11232 (output_source_filename, sources_info)
11233 (maybe_add_partial_symtab_filename)
11234 (make_source_files_completion_list): Adjust to use
11235 filename_seen_cache.
11237 2017-07-17 Pedro Alves <palves@redhat.com>
11239 * dwarf2read.c (dwarf2_per_objfile): In-class initialize all
11241 (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const
11242 dwarf2_debug_sections*)): New.
11243 (dwarf2_per_objfile::dwarf2_per_objfile(const
11244 dwarf2_per_objfile&)): Declare as deleted.
11245 (dwarf2_per_objfile::operator=): Declare as deleted.
11246 (dwarf2_per_objfile::dwarf2_per_objfile)
11247 (dwarf2_per_objfile::~dwarf2_per_objfile)
11248 (dwarf2_per_objfile::free_cached_comp_units): New.
11249 (dwarf2_has_info): dwarf2_per_objfile initialization code moved to
11250 ctor. Call dwarf2_per_objfile's ctor manually.
11251 (dwarf2_locate_sections): Deleted/refactored as ...
11252 (dwarf2_per_objfile::locate_sections): ... this new method.
11253 (free_cached_comp_units): Defer to
11254 dwarf2_per_objfile::free_cached_comp_units.
11255 (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually.
11257 2017-07-14 Tom Tromey <tom@tromey.com>
11260 * rust-exp.y (convert_ast_to_expression): Add "want_type"
11262 <UNOP_SIZEOF>: Split into separate case.
11263 <UNOP_VAR_VALUE>: Handle want_type. Add error case.
11265 2017-07-14 Tom Tromey <tom@tromey.com>
11268 * symtab.c (symbol_matches_domain): Add language_rust to special
11270 * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't
11271 treat LOC_TYPEDEF symbols as variables.
11273 2017-07-14 Pedro Alves <palves@redhat.com>
11275 * symtab.c (make_file_symbol_completion_list_1): Iterate over
11276 symtabs matching all symtabs with SRCFILE as file name instead of
11277 only considering the first hit, with lookup_symtab.
11279 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
11281 * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and
11282 operator_name parameters.
11283 (gen_expr): Update function call.
11285 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
11287 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch
11289 * symtab.h (struct symbol_computed_ops::tracepoint_var_ref):
11291 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch
11292 parameter, use agent_expr::gdbarch instead, update function
11294 (locexpr_tracepoint_var_ref): Likewise.
11295 (loclist_tracepoint_var_ref): Likewise.
11296 * ax-gdb.c (gen_trace_static_fields): Likewise.
11297 (gen_traced_pop): Likewise.
11298 (gen_frame_args_address): Likewise.
11299 (gen_frame_locals_address): Likewise.
11300 (gen_var_ref): Likewise.
11301 (gen_struct_ref_recursive): Likewise.
11302 (gen_static_field): Likewise.
11303 (gen_maybe_namespace_elt): Likewise.
11304 (gen_expr): Likewise.
11305 (gen_trace_for_var): Likewise.
11306 (gen_trace_for_expr): Likewise.
11307 (gen_trace_for_return_address): Likewise.
11309 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
11311 * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax
11313 (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call.
11315 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
11317 * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch
11318 from ax, update calls.
11319 (gen_usual_arithmetic): Likewise.
11320 (gen_integral_promotions): Likewise.
11321 (gen_bitfield_ref): Likewise.
11322 (gen_primitive_field): Likewise.
11323 (gen_struct_ref_recursive): Likewise.
11324 (gen_struct_ref): Likewise.
11325 (gen_maybe_namespace_elt): Likewise.
11326 (gen_struct_elt_for_reference): Likewise.
11327 (gen_namespace_elt): Likewise.
11328 (gen_aggregate_elt_ref): Likewise.
11329 (gen_expr): Get gdbarch from ax, update calls.
11330 (gen_expr_binop_rest): Likewise.
11332 2017-07-13 Pedro Alves <palves@redhat.com>
11334 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64
11336 * amd64-dicos-tdep.c (amd64_dicos_init_abi):
11337 * amd64-fbsd-tdep.c (amd64fbsd_init_abi):
11338 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass
11339 tdesc_amd64_linux as default tdesc. Get final tdesc from the
11341 (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc.
11342 Get final tdesc from the tdep.
11343 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as
11345 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
11346 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
11347 * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter.
11348 Use it as default tdesc.
11349 (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it
11350 down to amd_init_abi. No longer handle fallback tdesc here.
11351 * amd64-tdep.h (tdesc_x32): Declare.
11352 (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc'
11354 * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64
11357 2017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11359 * s390-linux-tdep.c (s390_process_record): Add support for
11360 instructions new in arch12.
11362 2017-07-11 John Baldwin <jhb@FreeBSD.org>
11364 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
11365 PT_GETFSBASE and PT_GETGSBASE.
11366 (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and
11369 2017-07-11 John Baldwin <jhb@FreeBSD.org>
11371 * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat)
11372 (amd64-avx-mpx.dat, amd64-avx-avx512.dat)
11373 (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in
11375 * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml.
11376 * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml.
11377 * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml.
11378 * features/i386/amd64-avx.xml: Add 64bit-segments.xml.
11379 * features/i386/amd64-mpx.xml: Add 64bit-segments.xml.
11380 * features/i386/amd64.xml: Add 64bit-segments.xml.
11381 * features/i386/amd64-avx-avx512.c: Regenerated.
11382 * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated.
11383 * features/i386/amd64-avx-mpx.c: Regenerated.
11384 * features/i386/amd64-avx.c: Regenerated.
11385 * features/i386/amd64-mpx.c: Regenerated.
11386 * features/i386/amd64.c: Regenerated.
11387 * regformats/i386/amd64-avx-avx512.dat: Regenerated.
11388 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
11389 * regformats/i386/amd64-avx-mpx.dat: Regenerated.
11390 * regformats/i386/amd64-avx.dat: Regenerated.
11391 * regformats/i386/amd64-mpx.dat: Regenerated.
11392 * regformats/i386/amd64.dat: Regenerated.
11394 2017-07-10 Yao Qi <yao.qi@linaro.org>
11396 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
11397 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
11399 2017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com>
11401 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and
11403 * gnulib/aclocal.m4: Regenerate.
11404 * gnulib/config.in: Regenerate.
11405 * gnulib/configure: Regenerate.
11406 * gnulib/import/Makefile.am: Regenerate.
11407 * gnulib/import/Makefile.in: Regenerate.
11408 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
11409 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
11410 * gnulib/import/m4/environ.m4: New file.
11411 * gnulib/import/m4/setenv.m4: New file.
11412 * gnulib/import/setenv.c: New file.
11413 * gnulib/import/unsetenv.c: New file.
11415 2017-07-09 Simon Marchi <simon.marchi@ericsson.com>
11417 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read
11418 address when op is DW_OP_addr.
11420 2017-07-09 Tom Tromey <tom@tromey.com>
11422 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size
11423 check and apply to outer type.
11425 2017-07-07 John Baldwin <jhb@FreeBSD.org>
11427 * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS)
11428 (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI)
11429 (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New.
11430 (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method.
11432 2017-07-07 John Baldwin <jhb@FreeBSD.org>
11434 * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name.
11436 2017-07-07 John Baldwin <jhb@FreeBSD.org>
11438 * corelow.c (get_core_siginfo): Remove.
11439 (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method
11440 instead of get_core_siginfo.
11441 * gdbarch.sh (core_xfer_siginfo): New gdbarch callback.
11442 * gdbarch.h: Re-generate.
11443 * gdbarch.c: Re-generate.
11444 * linux-tdep.c (linux_core_xfer_siginfo): New.
11445 (linux_init_abi): Install gdbarch "core_xfer_siginfo" method.
11447 2017-07-07 John Baldwin <jhb@FreeBSD.org>
11449 * corelow.c (thread_section_name): Move to ...
11450 * gdbcore.h (thread_section_name): ... here.
11452 2017-07-07 John Baldwin <jhb@FreeBSD.org>
11454 * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32)
11455 (struct siginfo32): New.
11456 [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New.
11457 (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO
11458 via ptrace(PT_LWPINFO).
11460 2017-07-07 John Baldwin <jhb@FreeBSD.org>
11462 * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data)
11463 (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data)
11464 (fbsd_get_siginfo_type): New.
11465 (fbsd_init_abi): Install gdbarch "get_siginfo_type" method.
11466 (_initialize_fbsd_tdep): New.
11468 2017-07-06 David Blaikie <dblaikie@gmail.com>
11470 * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than
11471 a singular dwo_unit*) to support multiple CUs in the same way that
11472 multiple TUs are supported.
11473 (create_cus_hash_table): Replace create_dwo_cu with a function for
11474 parsing multiple CUs from a DWO file.
11475 (open_and_init_dwo_file): Use create_cus_hash_table rather than
11477 (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with
11478 htab_find, rather than comparing the signature to a singleton CU in
11481 2017-07-06 Pedro Alves <palves@redhat.com>
11483 * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition.
11485 2017-07-04 Pedro Alves <palves@redhat.com>
11487 * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC.
11488 * gdbtypes.h (TYPE_STATIC): Delete.
11489 (struct fn_field) <is_public, is_abstract, is_static, is_final,
11490 is_synchronized, is_native>: Delete.
11492 (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL)
11493 (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE)
11494 (TYPE_FN_FIELD_ABSTRACT): Delete.
11496 2017-07-03 Simon Marchi <simon.marchi@ericsson.com>
11498 * buffer.h (buffer_finish): Fix spelling mistakes.
11500 2017-07-01 Eli Zaretskii <eliz@gnu.org>
11502 * .dir-locals.el: Automatically switch to C-style comments in
11503 versions of Emacs that support the feature.
11505 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
11506 Pedro Alves <palves@redhat.com>
11509 * cli/cli-script.c (command_name_equals_not_inline): Remove function.
11510 (process_next_line): New variable 'inline_cmd'.
11511 Adjust 'if' clauses for "python", "compile" and "guile" to use
11512 'command_name_equals' and check for '!inline_cmd'.
11514 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
11517 * cli/cli-script.c (command_name_equals_not_inline): New function.
11518 (process_next_line): Adjust 'if' clauses for "python", "compile"
11519 and "guile" to use command_name_equals_not_inline.
11521 2017-06-29 Pedro Alves <palves@redhat.com>
11523 * completer.c (expression_completer): Call
11524 linespec_location_completer instead of location_completer.
11526 2017-06-29 Pedro Alves <palves@redhat.com>
11528 * completer.c (expression_completer): Remove code that recomputes
11529 'text' from 'word'.
11531 2017-06-29 Yao Qi <yao.qi@linaro.org>
11533 * regformats/regdat.sh: Generate code with
11534 "ifndef IN_PROCESS_AGENT".
11536 2017-06-28 Pedro Alves <palves@redhat.com>
11538 * command.h: Include "common/scoped_restore.h".
11540 2017-06-28 Yao Qi <yao.qi@linaro.org>
11542 * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str
11543 instead of obstack_grow.
11545 2017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com>
11548 * symfile.c (reread_symbols): Call objfiles_changed just before
11551 2017-06-27 Pedro Alves <palves@redhat.com>
11553 * symtab.c (COMPLETION_LIST_ADD_SYMBOL)
11554 (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ...
11555 (completion_list_add_symbol, completion_list_add_msymbol):
11556 ... these new functions.
11557 (add_symtab_completions)
11558 (default_make_symbol_completion_list_break_on_1): Adjust.
11560 2017-06-27 Pedro Alves <palves@redhat.com>
11562 * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of
11563 bfd_zalloc. Call objfile_per_bfd_storage's ctor.
11564 (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's
11566 * objfiles.h (objfile_per_bfd_storage): Add ctor. Make
11567 'storage_obstack' field an auto_obstack. In-class initialize all
11568 non-bitfield fields. Make minsyms_read bool.
11569 * symfile.c (read_symbols): Adjust.
11571 2017-06-27 Alan Hayward <alan.hayward@arm.com>
11573 * remote-sim.c (gdbsim_fetch_register): Use byte_vector.
11574 (gdbsim_store_register): Likewise.
11576 2017-06-27 Pedro Alves <palves@redhat.com>
11578 * c-exp.y (name_obstack): Now an auto_obstack.
11579 (yylex): Use auto_obstack::clear.
11580 (c_parse): Use auto_obstack::clear instead of reinitializing and
11581 freeing the obstack.
11582 * c-lang.c (evaluate_subexp_c): Use auto_obstack.
11583 * d-exp.y (name_obstack): Now an auto_obstack.
11584 (yylex): Use auto_obstack::clear.
11585 (d_parse): Use auto_obstack::clear instead of reinitializing and
11586 freeing the obstack.
11587 * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use
11589 * dwarf2read.c (create_addrmap_from_index)
11590 (dwarf2_build_psymtabs_hard)
11591 (update_enumeration_type_from_children): Likewise.
11592 * gdb_obstack.h (auto_obstack): New type.
11593 * go-exp.y (name_obstack): Now an auto_obstack.
11594 (build_packaged_name): Use auto_obstack::clear.
11595 (go_parse): Use auto_obstack::clear instead of reinitializing and
11596 freeing the obstack.
11597 * linux-tdep.c (linux_make_mappings_corefile_notes): Use
11599 * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack.
11600 * rust-exp.y (work_obstack): Now an auto_obstack.
11601 (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of
11602 reinitializing and freeing the obstack.
11603 * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete.
11604 (host_char_to_target): Use auto_obstack.
11605 * utils.h (make_cleanup_obstack_free): Delete declaration.
11606 * valprint.c (generic_emit_char, generic_printstr): Use
11609 2017-06-27 Simon Marchi <simon.marchi@ericsson.com>
11611 * darwin-nat.c (darwin_check_new_threads): Don't handle dummy
11613 (darwin_init_thread_list): Don't update dummy thread.
11614 (darwin_create_inferior, darwin_attach): Don't add a dummy thread.
11616 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
11618 * record-full.c (netorder16): Remove.
11620 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
11622 * common/diagnostics.h: Define macros for GCC.
11623 (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro.
11624 * common/vec.h: Include diagnostics.h.
11625 (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro.
11626 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function
11629 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
11631 * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER):
11633 * ada-lex.l: Ignore deprecated register warnings.
11635 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
11637 * main.c (get_init_files): Replace "SYSTEM_GDBINIT +
11638 datadir_len" with "&SYSTEM_GDBINIT[datadir_len]".
11640 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
11642 * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on
11645 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
11647 * nat/x86-dregs.c (x86_show_dr): Print registers one per line.
11649 2017-06-23 Alan Hayward <alan.hayward@arm.com>
11651 * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add.
11652 (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE.
11653 (xtensa_register_read_masked): Likewise.
11655 2017-06-22 Sergio Durigan Junior <sergiodj@redhat.com>
11657 * common/environ.c (gdb_environ::unset): Update comment.
11659 2017-06-22 Alan Hayward <alan.hayward@arm.com>
11661 * python/py-unwind.c (pyuw_sniffer): Allocate space for
11664 2017-06-22 Alan Hayward <alan.hayward@arm.com>
11666 * record-full.c (record_full_exec_insn): Use byte_vector.
11668 2017-06-22 Yao Qi <yao.qi@linaro.org>
11670 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated.
11671 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
11673 2017-06-22 Alan Hayward <alan.hayward@arm.com>
11675 * remote.c (cached_reg): Move from here...
11676 * regcache.h (cached_reg): ...to here.
11677 * python/py-unwind.c (struct reg_info): Remove.
11678 (cached_frame_info): Use cached_reg_t.
11679 (pyuw_prev_register): Likewise.
11680 (pyuw_sniffer): Use cached_reg_t and allocate registers.
11681 (pyuw_dealloc_cache): Free all registers.
11683 2017-06-22 Pedro Alves <palves@redhat.com>
11684 Simon Marchi <simon.marchi@ericsson.com>
11686 * unittests/environ-selftests.c (run_tests): Ignore -Wself-move
11688 * common/diagnostics.h: New file.
11690 2017-06-22 Pedro Alves <palves@redhat.com>
11692 * common/agent.h: Add include guards.
11694 2017-06-21 Simon Marchi <simon.marchi@ericsson.com>
11696 * target.h (struct target_ops) <to_xfer_partial>: Update doc to
11697 talk about addressable units instead of bytes.
11699 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
11701 * common/environ.c (gdb_environ::unset): Use '::iterator' instead
11702 of '::const_iterator'.
11704 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
11706 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11707 'unittests/environ-selftests.c'.
11708 (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'.
11709 * charset.c (find_charset_names): Declare object 'iconv_env'.
11710 Update code to use 'iconv_env' object. Remove call to
11712 * common/environ.c: Include <utility>.
11713 (make_environ): Delete function.
11714 (free_environ): Delete function.
11715 (gdb_environ::clear): New function.
11716 (gdb_environ::operator=): New function.
11717 (gdb_environ::get): Likewise.
11718 (environ_vector): Delete function.
11719 (set_in_environ): Delete function.
11720 (gdb_environ::set): New function.
11721 (unset_in_environ): Delete function.
11722 (gdb_environ::unset): New function.
11723 (gdb_environ::envp): Likewise.
11724 * common/environ.h: Include <vector>.
11725 (struct gdb_environ): Delete; transform into...
11726 (class gdb_environ): ... this class.
11727 (free_environ): Delete prototype.
11728 (init_environ, get_in_environ, set_in_environ, unset_in_environ,
11729 environ_vector): Likewise.
11730 * infcmd.c (run_command_1): Update code to call
11731 'envp' from 'gdb_environ' class.
11732 (environment_info): Update code to call methods from 'gdb_environ'
11734 (unset_environment_command): Likewise.
11735 (path_info): Likewise.
11736 (path_command): Likewise.
11737 * inferior.c (inferior::~inferior): Delete call to 'free_environ'.
11738 (inferior::inferior): Initialize 'environment' using the host's
11740 * inferior.h: Remove forward declaration of 'struct gdb_environ'.
11741 Include "environ.h".
11742 (class inferior) <environment>: Change type from 'struct
11743 gdb_environ' to 'gdb_environ'.
11744 * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call
11745 methods from 'gdb_environ' class.
11746 * solib.c (solib_find_1): Likewise
11747 * unittests/environ-selftests.c: New file.
11749 2017-06-20 Yao Qi <yao.qi@linaro.org>
11751 * features/i386/i386-linux.xml: Exchange the order of including
11752 32bit-linux.xml and 32bit-sse.xml.
11753 * features/i386/i386-linux.c: Regenerated.
11755 2017-06-20 Yao Qi <yao.qi@linaro.org>
11757 * target-descriptions.c (tdesc_reg): Add ctor, dtor.
11758 Delete copy ctor and assignment operator.
11759 (tdesc_type): Likewise.
11760 (tdesc_feature): Likewise.
11761 (tdesc_free_reg): Remove.
11762 (tdesc_create_reg): Use new.
11763 (tdesc_free_type): Remove.
11764 (tdesc_create_vector): Use new.
11765 (tdesc_create_union): Likewise.
11766 (tdesc_create_flags): Likewise.
11767 (tdesc_create_enum): Likewise.
11768 (tdesc_free_feature): Delete.
11769 (free_target_description): Use delete.
11771 2017-06-19 John Baldwin <jhb@FreeBSD.org>
11773 * mips-tdep.c (print_gp_register_row): Don't error for unavailable
11776 2017-06-19 Pedro Alves <palves@redhat.com>
11778 * dwarf2read.c (write_psymtabs_to_index): Construct file_closer
11779 after gdb::unlinker.
11781 2017-06-19 Sergio Durigan Junior <sergiodj@redhat.com>
11783 * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of
11784 gdb_environ to access an environment variable.
11786 2017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
11788 * nat/linux-ptrace.c (linux_fork_to_function): Add cast to
11791 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
11793 * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF.
11795 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
11797 * configure: Re-generate.
11798 * warning.m4 (build_warnings): Add -Wno-mismatched-tags.
11800 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
11802 * configure: Re-generate.
11803 * warning.m4: Pass -Werror to compiler when checking for
11804 supported warning flags.
11806 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
11808 * Makefile.in (COMPILE.pre): Add "-x c++".
11810 2017-06-16 Alan Hayward <alan.hayward@arm.com>
11811 Pedro Alves <palves@redhat.com>
11812 Yao Qi <yao.qi@linaro.org>
11814 * defs.h (RequireLongest): New.
11815 (extract_integer): Declare function template.
11816 (extract_signed_integer): Remove the declaration, but define it
11818 (extract_unsigned_integer): Likewise.
11819 (store_integer): Declare function template.
11820 (store_signed_integer): Remove the declaration, but define it
11822 (store_unsigned_integer): Likewise.
11823 * findvar.c (extract_integer): New function template.
11824 (extract_signed_integer): Remove.
11825 (extract_unsigned_integer): Remove.
11826 (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit
11828 (store_integer): New function template.
11829 (store_signed_integer): Remove.
11830 (store_unsigned_integer): Remove.
11831 (store_integer): Explicit instantiations.
11832 * regcache.c (regcache_raw_read_signed): Update.
11833 (regcache::raw_read): New function.
11834 (regcache::raw_read_signed): Remove.
11835 (regcache::raw_read_unsigned): Remove.
11836 (regcache_raw_read_unsigned): Update.
11837 (regcache_raw_write_unsigned): Update.
11838 (regcache::raw_write_signed): Remove.
11839 (regcache::raw_write): New function.
11840 (regcache_cooked_read_signed): Update.
11841 (regcache::raw_write_unsigned): Remove.
11842 (regcache::cooked_read_signed): Remove.
11843 (regcache_cooked_read_unsigned): Update.
11844 (regcache::cooked_read_unsigned): Remove.
11845 (regcache_cooked_write_signed): Update.
11846 (regcache_cooked_write_unsigned): Update.
11847 * regcache.h (regcache) <raw_read_signed>: Remove.
11848 <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove.
11849 <raw_read, raw_write>: New.
11850 <cooked_read_signed, cooked_write_signed>: Remove.
11851 <cooked_write_unsigned, cooked_read_unsigned>: Remove.
11852 <cooked_read, cooked_write>: New.
11853 * sh64-tdep.c (sh64_pseudo_register_read): Update.
11854 (sh64_pseudo_register_write): Update.
11856 2017-06-16 Anton Kolesov <anton.kolesov@synopsys.com>
11858 * arc-tdep.c (arc_disassembler_options): New variable.
11859 (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead
11860 of default_print_insn.
11861 (arc_delayed_print_insn): Set info->section when needed,
11862 use default_print_insn to retrieve a disassembler.
11864 2017-06-14 Sergio Durigan Junior <sergiodj@redhat.com>
11867 * infcmd.c (_initialize_infcmd): Expand "help run" documentation
11868 to mention $SHELL and startup-with-shell.
11870 2017-06-14 Max Filippov <jcmvbkbc@gmail.com>
11872 * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers.
11874 2017-06-14 Yao Qi <yao.qi@linaro.org>
11876 * aarch64-tdep.c (aarch64_gdb_print_insn): Call
11877 default_print_insn instead of print_insn_aarch64.
11878 * arm-tdep.c (gdb_print_insn_arm): Call
11879 default_print_insn instead of print_insn_big_arm
11880 and print_insn_little_arm.
11881 * i386-tdep.c (i386_print_insn): Call default_print_insn
11882 instead of print_insn_i386.
11883 * ia64-tdep.c (ia64_print_insn): Call
11884 default_print_insn instead of print_insn_ia64.
11885 * mips-tdep.c (gdb_print_insn_mips): Call
11886 default_print_insn instead of print_insn_big_mips
11887 and print_insn_little_mips.
11888 * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn
11889 instead of print_insn_spu.
11891 2017-06-14 Pedro Alves <palves@redhat.com>
11893 * ada-lang.c: Include "common/byte-vector.h".
11894 (ada_value_primitive_packed_val): Use gdb::byte_vector.
11895 * charset.c (wchar_iterator::iterate): Resize the vector instead
11897 * common/byte-vector.h: Include "common/def-vector.h".
11898 (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>.
11899 * cli/cli-dump.c: Include "common/byte-vector.h".
11900 (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector.
11901 * common/byte-vector.h: New file.
11902 * common/def-vector.h: New file.
11903 * common/default-init-alloc.h: New file.
11904 * dwarf2loc.c: Include "common/byte-vector.h".
11905 (rw_pieced_value): Use gdb::byte_vector, and resize the vector
11906 instead of reserving it.
11907 * dwarf2read.c: Include "common/byte-vector.h".
11908 (data_buf::m_vec): Now a gdb::byte_vector.
11909 * gdb_regex.c: Include "common/def-vector.h".
11910 (compiled_regex::compiled_regex): Use gdb::def_vector<char>.
11911 * mi/mi-main.c: Include "common/byte-vector.h".
11912 (mi_cmd_data_read_memory): Use gdb::byte_vector.
11913 * printcmd.c: Include "common/byte-vector.h".
11914 (print_scalar_formatted): Use gdb::byte_vector.
11915 * valprint.c: Include "common/byte-vector.h".
11916 (maybe_negate_by_bytes, print_decimal_chars): Use
11919 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
11921 * darwin-nat.c: Include "nat/fork-inferior.h".
11923 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
11925 * configure.nat: Factor out Darwin bits that are not
11926 architecture-specific. Add fork-inferior.o.
11928 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
11930 * configure.nat: Factor out AIX bits that are not
11931 architecture-specific. Add fork-inferior.o.
11933 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11935 * dwarf2loc.c (rw_pieced_value): New. Merge logic from...
11936 (read_pieced_value, write_pieced_value): ...here. Reduce to
11937 wrappers that just call rw_pieced_value.
11939 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11941 * dwarf2loc.c (write_pieced_value): When writing the data for a
11942 memory piece, use write_memory_with_notification instead of
11945 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11947 * valops.c (read_value_memory): Change embedded_offset to
11948 represent a bit offset instead of a byte offset.
11949 * value.h (read_value_memory): Adjust comment.
11951 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11953 * dwarf2loc.c (read_pieced_value): Remove unnecessary variables
11954 dest_offset_bits and source_offset_bits.
11955 (write_pieced_value): Likewise.
11957 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11959 * dwarf2loc.c (read_pieced_value): Respect the piece offset, as
11960 given by DW_OP_bit_piece.
11961 (write_pieced_value): Likewise.
11963 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11965 * dwarf2loc.c (read_pieced_value): Move the buffer allocation and
11966 some other preparations to the places where sufficient information
11968 (write_pieced_value): Likewise.
11970 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11972 * dwarf2loc.c (bits_to_bytes): New function.
11973 (read_pieced_value): Fix offset calculations for register pieces
11974 on big-endian targets.
11975 (write_pieced_value): Likewise.
11977 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11979 * dwarf2loc.c (read_pieced_value): Remove buffer_size variable.
11980 (write_pieced_value): Likewise.
11982 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11984 * dwarf2loc.c (write_pieced_value): When writing to a bit-field,
11985 transfer the source value's least significant bits, instead of its
11986 lowest-addressed ones. Rename type_len to max_offset.
11987 (read_pieced_value): Mirror above changes to write_pieced_value as
11990 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11992 * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY,
11993 truncate full bytes from dest_offset_bits before using it as an
11994 offset into the buffer.
11996 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11998 * dwarf2loc.c (write_pieced_value): Include transfer size in
12001 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
12003 * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the
12004 calculation of this_size.
12006 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
12008 * dwarf2loc.c (read_pieced_value): Respect parent value's offset
12009 when targeting a bit-field.
12010 (write_pieced_value): Likewise.
12012 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
12014 * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field.
12015 (allocate_piece_closure): Drop addr_size parameter.
12016 (dwarf2_evaluate_loc_desc_full): Adjust call to
12017 allocate_piece_closure.
12019 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
12022 * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at
12023 the LSB end, independent of endianness.
12025 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
12027 * dwarf2loc.c (write_pieced_value): Fix order of calculations for
12030 2017-06-13 Yao Qi <yao.qi@linaro.org>
12032 * mips-linux-nat.c: Move include features/mips*-linux.c to
12034 (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls
12035 to mips-linux-tdep.c.
12036 * mips-linux-tdep.c: Include features/mips*-linux.c
12037 (_initialize_mips_linux_tdep): Call initialize_tdesc_mips*
12039 * mips-linux-tdep.h (tdesc_mips_linux): Declare.
12040 (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare.
12041 (tdesc_mips64_dsp_linux): Declare.
12043 2017-06-12 Tom Tromey <tom@tromey.com>
12045 * valprint.h (val_print_type_code_int): Remove.
12046 * valprint.c (generic_val_print_int): Always call
12047 val_print_scalar_formatted.
12048 (val_print_type_code_int): Remove.
12049 * printcmd.c (print_scalar_formatted): Handle options->format==0.
12050 * f-valprint.c (f_val_print): Use val_print_scalar_formatted.
12051 * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted.
12052 * ada-valprint.c (ada_val_print_num): Use
12053 val_print_scalar_formatted.
12055 2017-06-12 Tom Tromey <tom@tromey.com>
12057 * printcmd.c (print_scalar_formatted): Unify the two switches.
12058 Don't convert scalars to LONGEST.
12060 2017-06-12 Tom Tromey <tom@tromey.com>
12063 * valprint.h (print_decimal_chars): Update.
12064 * valprint.c (maybe_negate_by_bytes): New function.
12065 (print_decimal_chars): Add "is_signed" argument.
12066 * printcmd.c (print_scalar_formatted): Update.
12068 2017-06-12 Tom Tromey <tom@tromey.com>
12071 * valprint.h (print_binary_chars, print_hex_chars): Update.
12072 * valprint.c (val_print_type_code_int): Update.
12073 (print_binary_chars): Add "zero_pad" argument.
12074 (emit_octal_digit): New function.
12075 (print_octal_chars): Don't zero-pad.
12076 (print_decimal_chars): Likewise.
12077 (print_hex_chars): Add "zero_pad" argument.
12078 * sh64-tdep.c (sh64_do_fp_register): Update.
12079 * regcache.c (regcache::dump): Update.
12080 * printcmd.c (print_scalar_formatted): Update.
12081 * infcmd.c (default_print_one_register_info): Update.
12083 2017-06-12 Pedro Alves <palves@redhat.com>
12084 Alan Hayward <alan.hayward@arm.com>
12086 * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New.
12087 (mips_eabi_push_dummy_call): Rename local 'regsize' to
12088 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and
12089 use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it.
12090 Assert that abi_regsize bytes fit in 'ref_valbuf'.
12092 2017-06-12 Pedro Alves <palves@redhat.com>
12094 * dwarf2read.c (mapped_symtab::data): Now a vector of
12095 symtab_index_entry instead of vector of
12096 std::unique_ptr<symtab_index_entry>. All users adjusted to check
12097 whether an element's name is NULL instead of checking whether the
12098 element itself is NULL.
12099 (find_slot): Change return type. Adjust.
12100 (hash_expand, , add_index_entry, uniquify_cu_indices)
12101 (write_hash_table): Adjust.
12103 2017-06-12 Pedro Alves <palves@redhat.com>
12105 * dwarf2read.c (recursively_count_psymbols): New function.
12106 (write_psymtabs_to_index): Call it to compute number of psyms and
12107 pass estimate size of psyms_seen to unordered_set's ctor.
12109 2017-06-12 Pedro Alves <palves@redhat.com>
12111 * dwarf2read.c (write_hash_table): Check if key already exists
12114 2017-06-12 Pedro Alves <palves@redhat.com>
12116 * dwarf2read.c (data_buf::append_space): Rename to...
12117 (data_buf::grow): ... this, and make private. Adjust all callers.
12118 (data_buf::append_uint): New method.
12119 (add_address_entry, write_one_signatured_type)
12120 (write_psymtabs_to_index): Use it.
12122 2017-06-12 Pedro Alves <palves@redhat.com>
12124 * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete.
12125 (file_write (FILE *, const std::vector<Elem>&)): Delete.
12126 (data_buf::file_write): Call ::fwrite directly.
12128 2017-06-12 Pedro Alves <palves@redhat.com>
12130 * dwarf2read.c (uniquify_cu_indices): Use std::unique and
12131 std::vector::erase.
12133 2017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com>
12135 Code cleanup: C++ify .gdb_index producer.
12136 * dwarf2read.c: Include <unordered_set> and <unordered_map>.
12137 (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type.
12138 (struct strtab_entry, hash_strtab_entry, eq_strtab_entry)
12139 (create_strtab, add_string): Remove.
12140 (file_write, data_buf): New.
12141 (struct symtab_index_entry): Use std::vector for cu_indices.
12142 (struct mapped_symtab): Use std::vector for data.
12143 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry)
12144 (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab):
12146 (find_slot): Change return type. Update it to the new data structures.
12147 (hash_expand, add_index_entry): Update it to the new data structures.
12148 (offset_type_compare): Remove.
12149 (uniquify_cu_indices): Update it to the new data structures.
12150 (c_str_view, c_str_view_hasher, vector_hasher): New.
12151 (add_indices_to_cpool): Remove.
12152 (write_hash_table): Update it to the new data structures.
12153 (struct psymtab_cu_index_map, hash_psymtab_cu_index)
12154 (eq_psymtab_cu_index): Remove.
12155 (psym_index_map): New typedef.
12156 (struct addrmap_index_data): Change addr_obstack pointer to data_buf
12157 reference and std::unordered_map for cu_index_htab.
12158 (add_address_entry, add_address_entry_worker, write_address_map)
12159 (write_psymbols): Update it to the new data structures.
12160 (write_obstack): Remove.
12161 (struct signatured_type_index_data): Change types_list to a data_buf
12162 reference and psyms_seen to a std::unordered_set reference.
12163 (write_one_signatured_type, recursively_write_psymbols)
12164 (write_psymtabs_to_index): Update it to the new data structures.
12166 2017-06-11 Simon Marchi <simon.marchi@ericsson.com>
12168 * NEWS (Changes since GDB 8.0): Announce {set,show} debug
12169 separate-debug-file commands.
12170 * symfile.h (separate_debug_file_debug): New global.
12171 * symfile.c (separate_debug_file_debug): New global.
12172 (separate_debug_file_exists, find_separate_debug_file): Add
12174 (_initialize_symfile): Add "set debug separate-debug-file"
12176 * build-id.c (build_id_to_debug_bfd,
12177 find_separate_debug_file_by_buildid): Add debug output.
12179 2017-06-10 Simon Marchi <simon.marchi@polymtl.ca>
12181 * gdbarch.sh (displaced_step_free_closure): Remove.
12182 * gdbarch.h, gdbarch.c: Re-generate.
12183 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set
12184 displaced_step_free_closure.
12185 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
12186 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
12187 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
12188 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
12189 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12190 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12191 * arch-utils.h (simple_displaced_step_free_closure): Remove.
12192 * arch-utils.c (simple_displaced_step_free_closure): Remove.
12193 * infrun.c (displaced_step_clear): Call xfree instead of
12194 gdbarch_displaced_step_free_closure.
12196 2017-06-08 Sergio Durigan Junior <sergiodj@redhat.com>
12198 * common/common-utils.c (stringify_argv): Check for "arg[0] !=
12201 2017-06-08 Alan Hayward <alan.hayward@arm.com>
12203 * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add.
12204 (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE.
12205 (mn10300_push_dummy_call): Likewise.
12207 2017-06-08 Alan Hayward <alan.hayward@arm.com>
12209 * mi/mi-main.c (register_changed_p): Use value_contents_eq.
12211 2017-06-08 Alan Hayward <alan.hayward@arm.com>
12213 * mi/mi-main.c (register_changed_p): Use cooked_read_value.
12215 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
12217 * NEWS (Changes since GDB 8.0): Announce that GDBserver is now
12218 able to start inferiors using a shell.
12219 (New remote packets): Announce new packet "QStartupWithShell".
12220 * remote.c: Add PACKET_QStartupWithShell.
12221 (extended_remote_create_inferior): Handle new
12222 PACKET_QStartupWithShell.
12223 (remote_protocol_features) <QStartupWithShell>: New entry for
12224 PACKET_QStartupWithShell.
12225 (_initialize_remote): Call "add_packet_config_cmd" for
12228 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
12229 Pedro Alves <palves@redhat.com>
12231 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h"
12232 and "nat/fork-inferior.h".
12233 * common/common-inferior.h: New file, with contents from
12235 * commom/common-utils.c: Include "common-utils.h".
12236 (stringify_argv): New function.
12237 * common/common-utils.h (stringify_argv): New prototype.
12238 * configure.nat: Add "fork-inferior.o" as a dependency for
12239 "*linux*", "fbsd*" and "nbsd*" hosts.
12240 * corefile.c (get_exec_file): Update comment.
12241 * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior"
12242 instead of "startup_inferior".
12243 (darwin_create_inferior): Call "add_thread_silent" after
12245 * fork-child.c: Cleanup unnecessary includes.
12246 (SHELL_FILE): Move to "common/common-fork-child.c".
12247 (environ): Likewise.
12248 (exec_wrapper): Initialize.
12249 (get_exec_wrapper): New function.
12250 (breakup_args): Move to "common/common-fork-child.c"; rename to
12251 "breakup_args_for_exec".
12252 (escape_bang_in_quoted_argument): Move to
12253 "common/common-fork-child.c".
12254 (saved_ui): New variable.
12255 (prefork_hook): New function.
12256 (postfork_hook): Likewise.
12257 (postfork_child_hook): Likewise.
12258 (gdb_startup_inferior): Likewise.
12259 (fork_inferior): Move to "common/common-fork-child.c". Update
12260 function to support gdbserver.
12261 (startup_inferior): Likewise.
12262 * gdbcore.h (get_exec_file): Remove declaration.
12263 * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior"
12264 instead of "startup_inferior". Call "add_thread_silent" after
12266 * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h".
12267 (inf_ptrace_create_inferior): Call "gdb_startup_inferior"
12268 instead of "startup_inferior". Call "add_thread_silent" after
12270 * inferior.h: Include "common-inferior.h".
12271 (trace_start_error): Move to "common/common-utils.h".
12272 (trace_start_error_with_name): Likewise.
12273 (fork_inferior): Move prototype to "nat/fork-inferior.h".
12274 (startup_inferior): Likewise.
12275 (gdb_startup_inferior): New prototype.
12276 * nat/fork-inferior.c: New file, with contents from "fork-child.c".
12277 * nat/fork-inferior.h: New file.
12278 * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior"
12279 instead of "startup_inferior". Call "add_thread_silent" after
12281 * target.h (target_terminal_init): Move prototype to
12283 (target_terminal_inferior): Likewise.
12284 (target_terminal_ours): Likewise.
12285 * target/target.h (target_terminal_init): New prototype, moved
12287 (target_terminal_inferior): Likewise.
12288 (target_terminal_ours): Likewise.
12289 * utils.c (gdb_flush_out_err): New function.
12291 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
12293 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h".
12294 * common/common-gdbthread.h: New file, with parts from
12296 * gdbthread.h: Include "common-gdbthread.h".
12297 (switch_to_thread): Moved to "common/common-gdbthread.h".
12299 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
12301 * Makefile.in (SFILES): Add "common/job-control.c".
12302 (HFILES_NO_SRCDIR): Add "common/job-control.h".
12303 (COMMON_OBS): Add "job-control.o".
12304 * common/job-control.c: New file, with contents from
12306 * common/job-control.h: New file, with contents from "terminal.h".
12307 * fork-child.c: Include "job-control.h".
12308 * inflow.c: Include "job-control.h".
12309 (gdb_setpgid): Move to "common/common-inflow.c".
12310 (_initialize_inflow): Move setting of "job_control" to
12311 "handle_job_control".
12312 * terminal.h (job_control): Moved to "common/common-terminal.h".
12313 (gdb_setpgid): Likewise.
12314 * top.c: Include "job_control.h".
12315 * utils.c: Likewise.
12316 (job_control): Moved to "job-control.c".
12318 2017-06-07 Pedro Alves <palves@redhat.com>
12320 * Makefile.in (SFILES): Add gdb_regex.c.
12321 (COMMON_OBS): Add gdb_regex.o.
12322 * ada-lang.c (ada_add_standard_exceptions)
12323 (ada_add_exceptions_from_frame, name_matches_regex)
12324 (ada_add_global_exceptions, ada_exceptions_list_1): Change regex
12325 parameter type to compiled_regex. Adjust.
12326 (ada_exceptions_list): Use compiled_regex.
12327 * break-catch-throw.c (exception_catchpoint::pattern): Now a
12328 std::unique_ptr<compiled_regex>.
12329 (exception_catchpoint::~exception_catchpoint): Remove regfree
12331 (check_status_exception_catchpoint): Adjust to use compiled_regex.
12332 (handle_gnu_v3_exceptions): Adjust to use compiled_regex.
12333 * breakpoint.c (solib_catchpoint::compiled): Now a
12334 std::unique_ptr<compiled_regex>.
12335 (solib_catchpoint::~solib_catchpoint): Remove regfree call.
12336 (check_status_catch_solib): Adjust to use compiled_regex.
12337 (add_solib_catchpoint): Adjust to use compiled_regex.
12338 * cli/cli-cmds.c (apropos_command): Use compiled_regex.
12339 * cli/cli-decode.c (apropos_cmd): Change regex parameter to
12340 compiled_regex reference. Adjust to use it.
12341 * cli/cli-decode.h: Remove struct re_pattern_buffer forward
12342 declaration. Include "gdb_regex.h".
12343 (apropos_cmd): Change regex parameter to compiled_regex reference.
12344 * gdb_regex.c: New file.
12345 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete
12347 (class compiled_regex): New.
12348 * linux-tdep.c: Include "common/gdb_optional.h".
12349 (struct mapping_regexes): New, factored out from
12350 mapping_is_anonymous_p, and adjusted to use compiled_regex.
12351 (mapping_is_anonymous_p): Use mapping_regexes wrapped in a
12352 gdb::optional and remove cleanups. Adjust to compiled_regex.
12353 * probe.c: Include "common/gdb_optional.h".
12354 (collect_probes): Use compiled_regex and gdb::optional and remove
12356 * skip.c: Include "common/gdb_optional.h".
12357 (skiplist_entry::compiled_function_regexp): Now a
12358 gdb::optional<compiled_regex>.
12359 (skiplist_entry::compiled_function_regexp_is_valid): Delete field.
12360 (free_skiplist_entry): Remove regfree call.
12361 (compile_skip_regexp, skip_rfunction_p): Adjust to use
12362 compiled_regex and gdb::optional.
12363 * symtab.c: Include "common/gdb_optional.h".
12364 (search_symbols): Use compiled_regex and gdb::optional.
12365 * utils.c (do_regfree_cleanup, make_regfree_cleanup)
12366 (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved
12369 2017-06-07 Alan Hayward <alan.hayward@arm.com>
12371 * regcache.c (regcache::save): Avoid buffer use.
12372 (regcache::dump): Likewise.
12374 2017-06-07 Alan Hayward <alan.hayward@arm.com>
12376 * sh-tdep.c (sh_pseudo_register_read): Remove
12378 (sh_pseudo_register_write): Likewise.
12379 * sh64-tdep.c (sh64_pseudo_register_read): Likewise.
12380 (sh64_pseudo_register_write): Likewise
12382 2017-06-07 Alan Hayward <alan.hayward@arm.com>
12384 * aarch64-tdep.c (aarch64_store_return_value): Use
12386 (aarch64_pseudo_read_value): Likewise.
12387 (aarch64_pseudo_write): Likewise.
12389 2017-06-06 Yao Qi <yao.qi@linaro.org>
12391 * regformats/regdef.h (set_register_cache): Remove the
12394 2017-06-06 Alan Hayward <alan.hayward@arm.com>
12396 * frame.c (frame_unwind_register_signed): Use
12397 frame_unwind_register_value.
12399 2017-06-06 Pedro Alves <palves@redhat.com>
12401 PR breakpoints/21553
12402 * breakpoint.c (create_breakpoints_sal_default)
12403 (init_breakpoint_sal, create_breakpoint_sal): Use
12404 gdb::unique_xmalloc_ptr for string parameters.
12405 (create_breakpoint): Constify 'extra_string' and 'cond_string'
12406 parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
12407 (base_breakpoint_create_breakpoints_sal)
12408 (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
12409 (strace_marker_create_breakpoints_sal)
12410 (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
12412 * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
12413 gdb::unique_xmalloc_ptr for string parameters.
12414 (create_breakpoint): Constify 'extra_string' and 'cond_string'
12417 2017-06-06 Alan Hayward <alan.hayward@arm.com>
12419 * alpha-tdep.c (alpha_register_to_value): Use
12420 get_frame_register_value.
12421 (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
12423 2017-06-06 Alan Hayward <alan.hayward@arm.com>
12425 * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
12426 (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
12427 (ia64_value_to_register): Likewise.
12428 (ia64_extract_return_value): Likewise.
12429 (ia64_store_return_value): Likewise.
12430 (ia64_push_dummy_call): Likewise.
12432 2017-06-04 Joel Brobecker <brobecker@adacore.com>
12436 2017-06-03 Simon Marchi <simon.marchi@ericsson.com>
12438 * x86-linux-nat.c (struct arch_lwp_info): Remove.
12440 2017-06-03 Simon Marchi <simon.marchi@polymtl.ca>
12442 * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
12444 (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
12446 2017-06-02 Simon Marchi <simon.marchi@ericsson.com>
12448 * event-loop.c (poll_timers): Unallocate timer using delete
12451 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
12453 * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
12454 (struct breakpoint) <~breakpoint>: New.
12455 (struct watchpoint): Inherit from breakpoint.
12456 <~watchpoint>: New.
12458 (struct tracepoint): Inherit from breakpoint.
12460 * breakpoint.c (longjmp_breakpoint_ops): Remove.
12461 (struct longjmp_breakpoint): Inherit from breakpoint.
12462 <~longjmp_breakpoint>: New.
12464 (new_breakpoint_from_type): Remove casts.
12465 (watchpoint_in_thread_scope): Remove reference to base field.
12466 (watchpoint_del_at_next_stop): Likewise.
12467 (update_watchpoint): Likewise.
12468 (watchpoint_check): Likewise.
12469 (bpstat_check_watchpoint): Likewise.
12470 (set_longjmp_breakpoint): Likewise.
12471 (struct fork_catchpoint): Inherit from breakpoint.
12473 (struct solib_catchpoint): Inherit from breakpoint.
12474 <~solib_catchpoint>: New.
12476 (dtor_catch_solib): Change to ...
12477 (solib_catchpoint::~solib_catchpoint): ... this.
12478 (breakpoint_hit_catch_solib): Remove reference to base field.
12479 (add_solib_catchpoint): Likewise.
12480 (create_fork_vfork_event_catchpoint): Likewise.
12481 (struct exec_catchpoint): Inherit from breakpoint.
12482 <~exec_catchpoint>: New.
12484 (dtor_catch_exec): Change to ...
12485 (exec_catchpoint::~exec_catchpoint): ... this.
12486 (dtor_watchpoint): Change to ...
12487 (watchpoint::~watchpoint): ... this.
12488 (watch_command_1): Remove reference to base field.
12489 (catch_exec_command_1): Likewise.
12490 (base_breakpoint_dtor): Change to ...
12491 (breakpoint::~breakpoint): ... this.
12492 (base_breakpoint_ops): Remove dtor field value.
12493 (longjmp_bkpt_dtor): Change to ...
12494 (longjmp_breakpoint::~longjmp_breakpoint): ... this.
12495 (strace_marker_create_breakpoints_sal): Remove reference to base
12497 (delete_breakpoint): Don't manually call breakpoint destructor.
12498 (create_tracepoint_from_upload): Remove reference to base field.
12499 (trace_pass_set_count): Likewise.
12500 (initialize_breakpoint_ops): Don't initialize
12501 momentary_breakpoint_ops, don't set dtors.
12502 * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
12503 <~ada_catchpoint>: New.
12505 (create_excep_cond_exprs): Remove reference to base field.
12506 (dtor_exception): Change to ...
12507 (ada_catchpoint::~ada_catchpoint): ... this.
12508 (dtor_catch_exception): Remove.
12509 (dtor_catch_exception_unhandled): Remove.
12510 (dtor_catch_assert): Remove.
12511 (create_ada_exception_catchpoint): Remove reference to base
12513 (initialize_ada_catchpoint_ops): Don't set dtors.
12514 * break-catch-sig.c (struct signal_catchpoint): Inherit from
12516 <~signal_catchpoint>: New.
12518 (signal_catchpoint_dtor): Change to ...
12519 (signal_catchpoint::~signal_catchpoint): ... this.
12520 (create_signal_catchpoint): Remove reference to base field.
12521 (initialize_signal_catchpoint_ops): Don't set dtor.
12522 * break-catch-syscall.c (struct syscall_catchpoint): Inherit
12524 <~syscall_catchpoint>: New.
12526 (dtor_catch_syscall): Change to ...
12527 (syscall_catchpoint::~syscall_catchpoint): ... this.
12528 (create_syscall_event_catchpoint): Remove reference to base
12530 (initialize_syscall_catchpoint_ops): Don't set dtor.
12531 * break-catch-throw.c (struct exception_catchpoint): Inherit
12533 <~exception_catchpoint>: New.
12535 (dtor_exception_catchpoint): Change to ...
12536 (exception_catchpoint::~exception_catchpoint): ... this.
12537 (handle_gnu_v3_exceptions): Remove reference to base field.
12538 (initialize_throw_catchpoint_ops): Don't set dtor.
12539 * ctf.c (ctf_get_traceframe_address): Remove reference to base
12541 * remote.c (remote_get_tracepoint_status): Likewise.
12542 * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
12543 * tracefile.c (tracefile_fetch_registers): Likewise.
12544 * tracepoint.c (actions_command): Likewise.
12545 (validate_actionline): Likewise.
12546 (tfind_1): Likewise.
12547 (get_traceframe_location): Likewise.
12548 (find_matching_tracepoint_location): Likewise.
12549 (parse_tracepoint_status): Likewise.
12550 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
12552 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
12554 * breakpoint.c (struct longjmp_breakpoint): New struct.
12555 (is_tracepoint_type): Change return type to bool.
12556 (is_longjmp_type): New function.
12557 (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
12558 (set_raw_breakpoint_without_location): Use
12559 new_breakpoint_from_type.
12560 (set_raw_breakpoint): Likewise.
12562 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
12564 * breakpoint.c (new_breakpoint_from_type): New function.
12565 (create_breakpoint_sal): Use new_breakpoint_from_type and
12567 (create_breakpoint): Likewise.
12569 2017-05-31 Simon Marchi <simon.marchi@ericsson.com>
12571 * memattr.c (mem_info_command): Rename to ...
12572 (info_mem_command): ... this.
12573 (mem_enable_command): Rename to ...
12574 (enable_mem_command): ... this.
12575 (mem_disable_command): Rename to ...
12576 (disable_mem_command): ... this.
12577 (mem_delete_command): Rename to ...
12578 (delete_mem_command): ... this.
12579 (_initialize_mem): Adjust function names.
12581 2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
12583 * btrace.c (handle_pt_insn_events): New.
12584 (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into
12585 STATUS. Split into this and ...
12586 (handle_pt_insn_event_flags): ... this.
12588 2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
12590 * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
12591 and struct pt_insn.resynced.
12592 * configure: Regenerated.
12593 * config.in: Regenerated.
12595 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12597 * btrace.c (ftrace_find_call_by_number): New function.
12598 (ftrace_new_function): Store objects, not pointers.
12599 (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
12600 ftrace_new_gap, ftrace_update_function,
12601 ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
12602 btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
12603 btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
12604 btrace_ends_with_single_insn, btrace_call_get): Account for
12605 btrace_thread_info::functions now storing objects.
12606 * btrace.h (struct btrace_thread_info): Add constructor.
12607 (struct btrace_thread_info) <functions>: Make std::vector.
12608 (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
12609 Initialize with default values.
12610 * record-btrace.c (record_btrace_frame_sniffer): Account for
12611 btrace_thread_info::functions now storing objects.
12613 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12615 * btrace.c: Remove typedef bfun_s.
12616 (ftrace_new_gap): Directly add gaps to the list of gaps.
12617 (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
12618 ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
12619 btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
12620 instead of gdb VEC.
12622 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12624 * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
12625 ftrace_bridge_gap): Replace references to btrace_thread_info::segment
12626 with btrace_thread_info::next_segment and
12627 btrace_thread_info::prev_segment.
12628 * btrace.h: Remove struct btrace_func_link.
12629 (struct btrace_function): Replace pair of function segment pointers
12630 with pair of indices.
12631 * python/py-record-btrace.c (btpy_call_prev_sibling,
12632 btpy_call_next_sibling): Replace references to
12633 btrace_thread_info::segment with btrace_thread_info::next_segment and
12634 btrace_thread_info::prev_segment.
12635 * record-btrace.c (record_btrace_frame_this_id): Use
12636 btrace_find_call_by_number.
12638 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12640 * btrace.c (ftrace_new_function, ftrace_fixup_level,
12641 ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
12642 btrace_insn_next, btrace_insn_prev): Remove references to
12643 btrace_thread_info::flow.
12644 * btrace.h (struct btrace_function): Remove FLOW.
12646 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12648 * btrace.c (ftrace_find_call_by_number): New function.
12649 (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
12650 ftrace_get_caller, ftrace_find_call, ftrace_new_return,
12651 ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
12652 ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
12654 * btrace.h (struct btrace_function): Turn UP into an index.
12655 * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
12657 * record-btrace.c (record_btrace_frame_unwind_stop_reason,
12658 record_btrace_frame_prev_register, record_btrace_frame_sniffer,
12659 record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
12661 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12663 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
12664 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
12665 ftrace_update_function, ftrace_compute_global_level_offset,
12666 btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
12667 btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
12668 btrace_insn_end, btrace_is_empty): Remove references to
12669 btrace_thread_info::begin and btrace_thread_info::end.
12670 * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
12671 (struct btrace_thread_info) <functions>: Adjust comment.
12672 * record-btrace.c (record_btrace_start_replaying): Remove reference to
12673 btrace_thread_info::begin.
12675 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12677 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
12678 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
12679 ftrace_update_function): Remove arguments that implicitly were always
12681 (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
12682 Don't pass BTINFO->END.
12684 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12686 * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
12687 btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
12688 btrace_find_insn_by_number): Replace function segment pointer with
12690 (btrace_insn_cmp): Simplify.
12691 * btrace.h: (struct btrace_insn_iterator) Rename index to
12692 insn_index. Replace function segment pointer with index into function
12694 * record-btrace.c (record_btrace_call_history): Replace function
12695 segment pointer use with index.
12696 (record_btrace_frame_sniffer): Retrieve function call segment through
12698 (record_btrace_set_replay): Remove defunc't safety check.
12700 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12702 * btrace.c (btrace_ends_with_single_insn): New function.
12703 (btrace_call_get, btrace_call_number, btrace_call_begin,
12704 btrace_call_end, btrace_call_next, btrace_call_prev,
12705 btrace_find_call_by_number): Use index into call segment vector
12706 instead of pointer.
12707 (btrace_call_cmp): Simplify.
12708 * btrace.h (struct btrace_call_iterator): Replace function call segment
12709 pointer with index into vector.
12710 * record-btrace.c (record_btrace_call_history): Use index instead of
12713 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12715 * btrace.c (btrace_insn_begin, btrace_insn_end,
12716 btrace_find_insn_by_number): Add btinfo to iterator.
12717 * btrace.h (struct btrace_insn_iterator): Add btinfo.
12719 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12721 * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
12722 and save pointers directly.
12723 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
12724 ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
12725 ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for
12726 changed signature of functions.
12727 (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
12728 (btrace_fetch): Remove code that adds btrace_function pointers to
12729 vector of btrace_functions.
12730 (btrace_clear): Simplify freeing vector of btrace_functions.
12732 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12734 * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
12735 Replace VEC_* with std::vector functions.
12736 * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
12737 (struct btrace_thread_info)<functions>: Change type to std::vector.
12739 2017-05-30 Simon Marchi <simon.marchi@ericsson.com>
12741 * NEWS (Changes in GDB 8.0): Remove extra empty line. Move
12742 "Removed targets and native configurations" up. Merge duplicate
12743 "New commands" sub-sections. Add "New options" sub-sections.
12745 2017-05-26 Alan Hayward <alan.hayward@arm.com>
12747 * defs.h (copy_integer_to_size): New declaration.
12748 * findvar.c (copy_integer_to_size): New function.
12749 (do_cint_test): New selftest function.
12750 (copy_integer_to_size_test): Likewise.
12751 (_initialize_findvar): Likewise.
12752 * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
12753 (mips_fbsd_collect_reg): Use raw_collect_integer.
12754 * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
12755 (mips64_fill_gregset): Use raw_collect_integer
12756 (mips64_fill_fpregset): Use raw_supply_integer.
12757 * regcache.c (regcache::raw_supply_integer): New function.
12758 (regcache::raw_collect_integer): Likewise.
12759 * regcache.h: (regcache::raw_supply_integer): New declaration.
12760 (regcache::raw_collect_integer): Likewise.
12762 2017-05-24 Yao Qi <yao.qi@linaro.org>
12764 * Makefile.in (SFILES): Add gdbarch-selftests.c.
12765 (COMMON_OBS): Add gdbarch-selftests.o.
12766 * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
12767 * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
12768 * gdbarch-selftests.c: New file.
12769 * regcache.h (regcache) <~regcache>: Mark it virtual if
12771 <raw_write>: Likewise.
12773 2017-05-24 Yao Qi <yao.qi@linaro.org>
12775 * regcache.c (current_regcache): Change it to
12776 regcache::current_regcache.
12777 (regcache_observer_target_changed): Update.
12778 (regcache_thread_ptid_changed): Make it a regcache static
12780 (regcache_thread_ptid_changed): Update.
12781 (class regcache_access): New.
12782 (current_regcache_test): Update.
12783 (_initialize_regcache): Update.
12784 * regcache.h: Include forward_list.
12785 (regcache): Declare regcache_thread_ptid_changed and declare
12786 registers_changed_ptid as friend.
12788 2017-05-24 Yao Qi <yao.qi@linaro.org>
12790 * i387-tdep.c (i387_register_to_value): Use register_size
12791 instead of TYPE_LENGTH.
12792 * m68k-tdep.c (m68k_register_to_value): Likewise.
12794 2017-05-24 Yao Qi <yao.qi@linaro.org>
12796 * i387-tdep.c (i387_convert_register_p): Return false if type
12797 code isn't TYPE_CODE_FLT.
12799 2017-05-24 Yao Qi <yao.qi@linaro.org>
12801 * alpha-tdep.c (alpha_convert_register_p): Return true if type
12803 (alpha_register_to_value): Remove type length check.
12804 (alpha_value_to_register): Likewise.
12806 2017-05-24 Yao Qi <yao.qi@linaro.org>
12808 * ia64-tdep.c (ia64_convert_register_p): Check type's code is
12811 2017-05-24 Yao Qi <yao.qi@linaro.org>
12813 * m68k-tdep.c (m68k_convert_register_p): Check type's code is
12814 TYPE_CODE_FLT or not.
12816 2017-05-24 Yao Qi <yao.qi@linaro.org>
12818 * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
12819 * avr-tdep.c (avr_gdbarch_init): Likewise.
12820 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12821 * cris-tdep.c (cris_gdbarch_init): Likewise.
12822 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
12823 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12824 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12825 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
12826 * mep-tdep.c (mep_gdbarch_init): Likewise.
12827 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12828 * mips-tdep.c (mips_gdbarch_init): Likewise.
12829 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
12830 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12831 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
12832 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12833 * v850-tdep.c (v850_gdbarch_init): Likewise.
12835 2017-05-24 Yao Qi <yao.qi@linaro.org>
12837 * selftest-arch.c (tests_with_arch): Call registers_changed
12838 and reinit_frame_cache.
12839 * selftest.c (run_self_tests): Likewise.
12841 2017-05-24 Yao Qi <yao.qi@linaro.org>
12843 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.
12844 (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn.
12846 2017-05-24 Yao Qi <yao.qi@linaro.org>
12848 * rl78-tdep.c (rl78_gdbarch_init): Don't call
12849 set_gdbarch_print_insn.
12851 2017-05-24 Yao Qi <yao.qi@linaro.org>
12853 * h8300-tdep.c (h8300_gdbarch_init): Don't call
12854 set_gdbarch_print_insn.
12856 2017-05-24 Yao Qi <yao.qi@linaro.org>
12858 * alpha-tdep.c (alpha_gdbarch_init): Don't call
12859 set_gdbarch_print_insn.
12860 * arc-tdep.c (arc_gdbarch_init): Likewise.
12861 * arch-utils.c: include dis-asm.h.
12862 (default_print_insn): New function.
12863 * arch-utils.h (default_print_insn): Declare.
12864 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
12865 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12866 * cris-tdep.c (cris_delayed_get_disassembler): Remove.
12867 (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
12868 * frv-tdep.c (frv_gdbarch_init): Likewise.
12869 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
12870 * gdbarch.sh (print_insn): Use default_print_insn.
12871 * gdbarch.c: Regenerated.
12872 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12873 * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
12874 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12875 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
12876 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12877 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
12878 (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
12879 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
12880 * m88k-tdep.c (m88k_gdbarch_init): Likewise.
12881 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12882 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
12883 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12884 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
12885 * mt-tdep.c (mt_gdbarch_init): Likewise.
12886 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
12887 * nios2-tdep.c (nios2_print_insn): Remove.
12888 (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
12889 * rx-tdep.c (rx_gdbarch_init): Likewise.
12890 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12891 * score-tdep.c (score_print_insn): Remove.
12892 (score_gdbarch_init): Don't call set_gdbarch_print_insn.
12893 * sh-tdep.c (sh_gdbarch_init): Likewise.
12894 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12895 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12896 * tic6x-tdep.c (tic6x_print_insn): Remove.
12897 (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
12898 * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
12899 * v850-tdep.c (v850_gdbarch_init): Likewise.
12900 * vax-tdep.c (vax_gdbarch_init): Likewise.
12901 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
12902 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
12904 2017-05-23 John Baldwin <jhb@FreeBSD.org>
12906 * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
12907 (MIPS_FP0_REGNUM): Remove.
12908 (MIPS_FSR_REGNUM): Remove.
12909 (mips_fbsd_supply_fpregs): Use mips_regnum.
12910 (mips_fbsd_supply_gregs): Likewise.
12911 (mips_fbsd_collect_fpregs): Likewise.
12912 (mips_fbsd_collect_gregs): Likewise.
12914 2017-05-23 John Baldwin <jhb@FreeBSD.org>
12916 * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
12917 (getpfpregs_supplies): New function.
12918 (mips_fbsd_fetch_inferior_registers): Remove early exit and use
12919 getfpregs_supplies.
12920 (mips_fbsd_store_inferior_registers): Likewise.
12922 2017-05-22 Pedro Alves <palves@redhat.com>
12924 * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
12927 2017-05-22 Alan Hayward <alan.hayward@arm.com>
12929 * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
12930 (store_register): Likewise.
12931 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
12932 (get_decimal_float_return_value): Likewise.
12933 (do_ppc_sysv_return_value): Likewise.
12934 (ppc64_sysv_abi_push_integer): Likewise.
12935 (ppc64_sysv_abi_push_freg): Likewise.
12936 (ppc64_sysv_abi_return_value_base): Likewise.
12937 (ppc64_sysv_abi_return_value): Likewise.
12938 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
12939 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
12940 * rs6000-nat.c: Likewise.
12941 * rs6000-tdep.c (rs6000_register_to_value): Likewise.
12942 (rs6000_value_to_register): Likewise.
12943 * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
12945 2017-05-21 Tom Tromey <tom@tromey.com>
12948 * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
12949 arrays as "[T]", not "[T; ]".
12951 2017-05-19 Tom Tromey <tom@tromey.com>
12954 * rust-lang.c (exp_descriptor_rust): New function.
12955 (rust_language_defn): Use it.
12956 * p-lang.c (pascal_language_defn): Update.
12957 * opencl-lang.c (opencl_language_defn): Update.
12958 * objc-lang.c (objc_language_defn): Update.
12959 * m2-lang.c (m2_language_defn): Update.
12960 * language.h (struct language_defn)
12961 <la_watch_location_expression>: New member.
12962 * language.c (unknown_language_defn, auto_language_defn)
12963 (local_language_defn): Update.
12964 * go-lang.c (go_language_defn): Update.
12965 * f-lang.c (f_language_defn): Update.
12966 * d-lang.c (d_language_defn): Update.
12967 * c-lang.h (c_watch_location_expression): Declare.
12968 * c-lang.c (c_watch_location_expression): New function.
12969 (c_language_defn, cplus_language_defn, asm_language_defn)
12970 (minimal_language_defn): Use it.
12971 * breakpoint.c (watch_command_1): Call
12972 la_watch_location_expression.
12973 * ada-lang.c (ada_language_defn): Update.
12975 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12978 * gdb_curses.h (NOMACROS): Define.
12979 (NCURSES_NOMACROS): Define.
12981 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12984 * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
12986 * tui/tui-wingeneral.c (box_win): Likewise.
12987 * tui/tui-winsource.c (tui_erase_source_content): Likewise.
12988 (tui_show_source_line): Likewise.
12989 (tui_show_exec_info_content): Likewise.
12991 2017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
12993 * sparc-tdep.c (sparc_structure_return_p)
12994 (sparc_arg_on_registers_p): New functions.
12995 (sparc32_store_arguments): Use them.
12996 * sparc64-tdep.c (sparc64_16_byte_align_p)
12997 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
12998 Handle TYPE_CODE_ARRAY.
13000 2017-05-17 Yao Qi <yao.qi@linaro.org>
13002 * cli/cli-decode.c (add_alias_cmd): New function.
13003 * command.h (add_alias_cmd): Declare.
13004 * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
13005 instead call add_alias_cmd.
13007 2017-05-17 Pedro Alves <palves@redhat.com>
13009 * Makefile.in (nat_extra_makefile_frag): Rename to ...
13010 (nat_makefile_frag): ... this. All references updated.
13011 * configure.ac: Likewise.
13012 * configure.nat: Likewise. Enhance comments.
13013 * configure: Regenerate.
13015 2017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13017 * procfs.c (procfs_create_inferior): Change prototype to match
13020 2017-05-13 Eli Zaretskii <eliz@gnu.org>
13022 * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
13023 C++ compiler warning.
13025 2017-05-12 Tom Tromey <tom@tromey.com>
13028 * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
13029 recurse, just call value_struct_elt directly.
13031 2017-05-12 Tom Tromey <tom@tromey.com>
13033 * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
13034 OP_RUST_ARRAY>: Fix.
13036 2017-05-12 Tom Tromey <tom@tromey.com>
13038 * rust-lang.c (rust_print_subexp): Replace "return" with "break".
13040 2017-05-09 Yao Qi <yao.qi@linaro.org>
13042 * regcache.c: Include <forward_list>.
13043 (struct regcache_list): Remove.
13044 (current_regcache): Update.
13045 (get_thread_arch_aspace_regcache): Update for std::forward_list.
13046 (regcache_thread_ptid_changed): Likewise.
13047 (registers_changed_ptid): Likewise.
13048 (current_regcache_size): Likewise.
13050 2017-05-09 Yao Qi <yao.qi@linaro.org>
13052 * regcache.c [GDB_SELF_TEST]: Include selftest.h.
13053 (current_regcache_size): New function.
13054 (current_regcache_test): New function.
13055 (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
13057 2017-05-08 Alan Hayward <alan.hayward@arm.com>
13059 * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
13060 (print_gp_register_row): Use get_frame_register_value.
13062 2017-05-08 Alan Hayward <alan.hayward@arm.com>
13064 * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
13065 (mips_supply_fpregset): Likewise.
13066 (mips64_supply_gregset): Likewise.
13068 2017-05-08 Alan Hayward <alan.hayward@arm.com>
13070 * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
13071 regcache->raw_supply_zeroed.
13073 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
13075 * configure.nat: Rearrange 'case' statements to match
13078 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
13080 * Makefile.in: Remove "@host_makefile_frag@". Add variables
13081 NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
13082 NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
13083 "@nat_extra_makefile_frag@".
13084 (Makefile): Remove dependency on "@frags@".
13085 ($(GNULIB_BUILDDIR)/Makefile): Likewise.
13086 (data-directory/Makefile): Likewise.
13087 * config/aarch64/linux.mh: Deleted; moved contents to
13088 "gdb/configure.nat".
13089 * config/alpha/alpha-linux.mh: Likewise.
13090 * config/alpha/nbsd.mh: Likewise.
13091 * config/arm/linux.mh: Likewise.
13092 * config/arm/nbsdelf.mh: Likewise.
13093 * config/i386/cygwin.mh: Likewise.
13094 * config/i386/cygwin64.mh: Likewise.
13095 * config/i386/darwin.mh: Likewise.
13096 * config/i386/fbsd.mh: Likewise.
13097 * config/i386/fbsd64.mh: Likewise.
13098 * config/i386/go32.mh: Likewise.
13099 * config/i386/i386gnu.mh: Likewise.
13100 * config/i386/i386sol2.mh: Likewise.
13101 * config/i386/linux.mh: Likewise.
13102 * config/i386/linux64.mh: Likewise.
13103 * config/i386/mingw.mh: Likewise.
13104 * config/i386/mingw64.mh: Likewise.
13105 * config/i386/nbsd64.mh: Likewise.
13106 * config/i386/nbsdelf.mh: Likewise.
13107 * config/i386/nto.mh: Likewise.
13108 * config/i386/obsd.mh: Likewise.
13109 * config/i386/obsd64.mh: Likewise.
13110 * config/i386/sol2-64.mh: Likewise.
13111 * config/ia64/linux.mh: Likewise.
13112 * config/m32r/linux.mh: Likewise.
13113 * config/m68k/linux.mh: Likewise.
13114 * config/m68k/nbsdelf.mh: Likewise.
13115 * config/m68k/obsd.mh: Likewise.
13116 * config/m88k/obsd.mh: Likewise.
13117 * config/mips/fbsd.mh: Likewise.
13118 * config/mips/linux.mh: Likewise.
13119 * config/mips/nbsd.mh: Likewise.
13120 * config/mips/obsd64.mh: Likewise.
13121 * config/pa/linux.mh: Likewise.
13122 * config/pa/nbsd.mh: Likewise.
13123 * config/pa/obsd.mh: Likewise.
13124 * config/powerpc/aix.mh: Likewise.
13125 * config/powerpc/fbsd.mh: Likewise.
13126 * config/powerpc/linux.mh: Likewise.
13127 * config/powerpc/nbsd.mh: Likewise.
13128 * config/powerpc/obsd.mh: Likewise.
13129 * config/powerpc/ppc64-linux.mh: Likewise.
13130 * config/powerpc/spu-linux.mh: Likewise.
13131 * config/s390/linux.mh: Likewise.
13132 * config/sh/nbsd.mh: Likewise.
13133 * config/sparc/fbsd.mh: Likewise.
13134 * config/sparc/linux.mh: Likewise.
13135 * config/sparc/linux64.mh: Likewise.
13136 * config/sparc/nbsd64.mh: Likewise.
13137 * config/sparc/nbsdelf.mh: Likewise.
13138 * config/sparc/obsd64.mh: Likewise.
13139 * config/sparc/sol2.mh: Likewise.
13140 * config/tilegx/linux.mh: Likewise.
13141 * config/vax/nbsdelf.mh: Likewise.
13142 * config/vax/obsd.mh: Likewise.
13143 * config/xtensa/linux.mh: Likewise.
13144 * config/i386/i386gnu.mn: New file, with excerpts from
13145 "config/i386/i386gnu.mh".
13146 * configure: Regenerate.
13147 * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
13148 *.mh files under "gdb/config".
13149 * configure.nat: New file, with contents from the
13150 "gdb/config/*/*.mh" files.
13152 2017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
13154 * btrace.c (btrace_clear): Free insn vector.
13156 2017-05-05 Pedro Alves <palves@redhat.com>
13158 * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
13159 * configure: Regenerate.
13161 2017-05-04 Pedro Alves <palves@redhat.com>
13163 * Makefile.in (SFILES): Add progspace-and-thread.c.
13164 (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
13165 (COMMON_OBS): Add progspace-and-thread.o.
13166 * breakpoint.c: Include "progspace-and-thread.h".
13167 (update_inserted_breakpoint_locations)
13168 (insert_breakpoint_locations, create_longjmp_master_breakpoint):
13169 Use scoped_restore_current_pspace_and_thread.
13170 (create_std_terminate_master_breakpoint): Use
13171 scoped_restore_current_program_space.
13172 (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
13173 (print_breakpoint_location): Use
13174 scoped_restore_current_program_space.
13175 (bp_loc_is_permanent): Use
13176 scoped_restore_current_pspace_and_thread.
13177 (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
13178 (download_tracepoint_locations): Use
13179 scoped_restore_current_pspace_and_thread.
13180 (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
13181 * exec.c (exec_close_1): Use scoped_restore_current_program_space.
13182 (enum step_over_calls_kind): Moved from inferior.h.
13183 (class scoped_restore_current_thread): New class.
13184 * gdbthread.h (make_cleanup_restore_current_thread): Delete
13186 (scoped_restore_current_thread): New class.
13187 * infcmd.c: Include "common/gdb_optional.h".
13188 (continue_1, proceed_after_attach): Use
13189 scoped_restore_current_thread.
13190 (notice_new_inferior): Use scoped_restore_current_thread.
13191 * inferior.c: Include "progspace-and-thread.h".
13192 (restore_inferior, save_current_inferior): Delete.
13193 (add_inferior_command, clone_inferior_command): Use
13194 scoped_restore_current_pspace_and_thread.
13195 * inferior.h (scoped_restore_current_inferior): New class.
13196 * infrun.c: Include "progspace-and-thread.h" and
13197 "common/gdb_optional.h".
13198 (follow_fork_inferior): Use
13199 scoped_restore_current_pspace_and_thread.
13200 (scoped_restore_exited_inferior): New class.
13201 (handle_vfork_child_exec_or_exit): Use
13202 scoped_restore_exited_inferior,
13203 scoped_restore_current_pspace_and_thread,
13204 scoped_restore_current_thread and scoped_restore.
13205 (fetch_inferior_event): Use scoped_restore_current_thread.
13206 * linespec.c (decode_line_full, decode_line_1): Use
13207 scoped_restore_current_program_space.
13208 * mi/mi-main.c: Include "progspace-and-thread.h".
13209 (exec_continue): Use scoped_restore_current_thread.
13210 (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
13211 (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
13212 * proc-service.c (ps_pglobal_lookup): Use
13213 scoped_restore_current_program_space.
13214 * progspace-and-thread.c: New file.
13215 * progspace-and-thread.h: New file.
13216 * progspace.c (release_program_space, clone_program_space): Use
13217 scoped_restore_current_program_space.
13218 (restore_program_space, save_current_program_space)
13219 (save_current_space_and_thread): Delete.
13220 (switch_to_program_space_and_thread): Moved to
13221 progspace-and-thread.c.
13222 * progspace.h (save_current_program_space)
13223 (save_current_space_and_thread): Delete declarations.
13224 (scoped_restore_current_program_space): New class.
13225 * remote.c (remote_btrace_maybe_reopen): Use
13226 scoped_restore_current_thread.
13227 * symtab.c: Include "progspace-and-thread.h".
13228 (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
13229 * thread.c (print_thread_info_1): Use
13230 scoped_restore_current_thread.
13231 (struct current_thread_cleanup): Delete.
13232 (do_restore_current_thread_cleanup)
13233 (restore_current_thread_cleanup_dtor): Rename/convert both to ...
13234 (scoped_restore_current_thread::~scoped_restore_current_thread):
13236 (make_cleanup_restore_current_thread): Rename/convert to ...
13237 (scoped_restore_current_thread::scoped_restore_current_thread):
13239 (thread_apply_all_command): Use scoped_restore_current_thread.
13240 (thread_apply_command): Use scoped_restore_current_thread.
13241 * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
13242 * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
13244 2017-05-04 Pedro Alves <palves@redhat.com>
13246 * thread.c (make_cleanup_restore_current_thread): Move
13247 find_thread_ptid call before the is_stopped call. Assert that the
13248 thread is found. Replace is_stopped call by checking the thread's
13249 state directly. Remove unnecessary NULL-thread check.
13251 2017-05-04 Pedro Alves <palves@redhat.com>
13253 * corelow.c (thread_section_name): New class.
13254 (get_core_register_section, get_core_siginfo): Use it.
13256 2017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
13258 * corelow.c (sniff_core_bfd): Remove extra semicolon.
13259 (get_core_register_section): Remove xfree of NULL pointer.
13261 2017-05-03 Alan Hayward <alan.hayward@arm.com>
13263 * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed.
13264 * regcache.c (regcache::raw_supply_zeroed): New function.
13265 * regcache.h (regcache::raw_supply_zeroed): New declaration.
13267 2017-05-03 Simon Marchi <simon.marchi@ericsson.com>
13269 * gdbarch.sh: Remove commented out definition of
13271 * gdbarch.h: Re-generate.
13273 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
13275 * configure: Regenerate.
13277 2017-05-02 Simon Marchi <simon.marchi@ericsson.com>
13279 * solib-target.c (solib_target_relocate_section_addresses):
13280 Remove num_section_bases, num_bases, segment_bases variables.
13282 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
13284 * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove.
13286 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
13288 * solib-target.c: Include <vector>
13289 (struct lm_info_target) <~lm_info_target>: Remove.
13290 <segment_bases, section_bases>: Change type to
13291 std::vector<CORE_ADDR>.
13292 (library_list_start_segment, library_list_start_section,
13293 library_list_end_library,
13294 solib_target_relocate_section_addresses): Adjust.
13296 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
13298 * gdbarch.sh (software_single_step): Change return type to
13299 std::vector<CORE_ADDR>.
13300 * gdbarch.c, gdbarch.h: Re-generate.
13301 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
13303 (arm_deal_with_atomic_sequence_raw): Adjust.
13304 (thumb_get_next_pcs_raw): Adjust.
13305 (arm_get_next_pcs_raw): Adjust.
13306 (arm_get_next_pcs): Adjust.
13307 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust.
13308 * aarch64-tdep.c (aarch64_software_single_step): Adjust.
13309 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust.
13310 (alpha_software_single_step): Adjust.
13311 * alpha-tdep.h (alpha_software_single_step): Adjust.
13312 * arm-linux-tdep.c (arm_linux_software_single_step): Adjust.
13313 * arm-tdep.c (arm_software_single_step): Adjust.
13314 (arm_breakpoint_kind_from_current_state): Adjust.
13315 * arm-tdep.h (arm_software_single_step): Adjust.
13316 * breakpoint.c (insert_single_step_breakpoint): Adjust.
13317 * cris-tdep.c (cris_software_single_step): Adjust.
13318 * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust.
13319 (micromips_deal_with_atomic_sequence): Adjust.
13320 (deal_with_atomic_sequence): Adjust.
13321 (mips_software_single_step): Adjust.
13322 * mips-tdep.h (mips_software_single_step): Adjust.
13323 * moxie-tdep.c (moxie_software_single_step): Adjust.
13324 * nios2-tdep.c (nios2_software_single_step): Adjust.
13325 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust.
13326 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
13327 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
13328 * s390-linux-tdep.c (s390_software_single_step): Adjust.
13329 * sparc-tdep.c (sparc_software_single_step): Adjust.
13330 * spu-tdep.c (spu_software_single_step): Adjust.
13331 * tic6x-tdep.c (tic6x_software_single_step): Adjust.
13333 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
13335 * gdbarch.sh: Use semi-colon as field separator instead of colon.
13336 * gdbarch.h: Re-generate.
13338 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
13340 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
13341 (SUBDIR_PYTHON_SRCS): Add py-instruction.c.
13342 * python/py-instruction.c, python/py-instruction.h: New file.
13343 * python/py-record.c: Add py-instruction.h include.
13344 (gdbpy_initialize_record): Make gdb.Instruction a super class of
13345 gdb.RecordInstruction.
13346 * python/python-internal.h: Add gdbpy_initialize_instruction
13348 * python/python.c (do_start_initialization): Add
13349 gdbpy_initialize_instruction.
13351 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
13353 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
13355 (btrace_func_from_recpy_func): New function.
13356 (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
13357 (btpy_call_level, btpy_call_symbol, btpy_call_instructions,
13358 btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
13359 (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
13360 recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
13361 Also, use new helper functions.
13362 (btpy_list_item): Use new helper functions.
13363 (recpy_bt_function_call_history): Use new type name.
13364 (btpy_call_getset): Remove.
13365 (gdbpy_initialize_btrace): Remove code to initialize
13366 gdb.BtraceFunctionCall.
13367 * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
13368 recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
13369 recpy_bt_func_prev, recpy_bt_func_next): New export.
13370 * python/py-record.c (recpy_func_type): New static object.
13371 (recpy_func_new, recpy_func_level, recpy_func_symbol,
13372 recpy_func_instructions, recpy_func_up, recpy_func_prev,
13373 recpy_func_next): New function.
13374 (recpy_element_hash, recpy_element_richcompare): Updated comment.
13375 (recpy_func_getset): New static object.
13376 (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
13377 * python/py-record.h (recpy_func_type, recpy_func_new): New export.
13379 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
13381 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove.
13382 (btpy_object, btpy_insn_type, btpy_new): Remove.
13383 (btpy_list_object): Use gdb.RecordInstruction type instead of
13384 gdb.BtraceInstruction type.
13385 (btrace_insn_from_recpy_insn): New function.
13386 (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of
13388 (btpy_call_new, btpy_list_item): Do not use btpy_new anymore.
13389 (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol,
13390 btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling,
13391 btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object
13392 instead of btpy_object.
13393 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
13394 btpy_insn_data, btpy_insn_decode): Rename to ...
13395 (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size,
13396 recpy_bt_insn_is_speculative, recpy_bt_insn_data,
13397 recpy_bt_insn_decode): This. Also, use new helper functions.
13398 (btpy_list_position, recpy_bt_goto): Use recpy_element_object and
13400 (btpy_insn_getset): Remove.
13401 (gdbpy_initialize_btrace): Remove code to initialize
13402 gdb.BtraceInstruction. Use recpy_element_object.
13403 * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal,
13404 recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded,
13405 recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export.
13406 * python/py-record.c (recpy_insn_type): New static object.
13407 (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data,
13408 recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative,
13409 recpy_element_number, recpy_element_hash, recpy_element_richcompare):
13411 (recpy_insn_getset): New static object.
13412 (gdbpy_initialize_record): Initialize gdb.RecordInstruction.
13413 * python/py-record.h (recpy_element_object): New typedef.
13414 (recpy_insn_type, recpy_insn_new): New export.
13416 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
13418 * py-record-btrace.c (btpy_insn_new): Removed.
13419 (btpy_insn_or_gap_new): New function.
13420 (btpy_insn_error): Removed.
13421 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
13422 btpy_insn_data, btpy_insn_decode): Remove code path for gaps.
13423 (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call
13424 btpy_insn_or_gap_new instead of btpy_insn_new.
13425 (btpy_insn_getset): Remove btpy_insn_error.
13426 * py-record.c (recpy_gap_type): New static object.
13427 (recpy_gap_object): New typedef.
13428 (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code,
13429 recpy_gap_reason_string): New function.
13430 (recpy_gap_getset): New static object.
13431 (gdbpy_initialize_record): Initialize gdb.RecordGap type.
13432 * py-record.h (recpy_gap_new): New export.
13434 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
13436 * python/py-record.c (recpy_ptid): Remove.
13437 (recpy_record_getset): Remove recpy_ptid.
13439 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
13441 * btrace.c (btrace_fetch): Set inferior_ptid.
13442 * python/py-record-btrace.c: Add "py-record.h" include.
13443 (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin,
13444 recpy_bt_end, recpy_bt_instruction_history,
13445 recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored
13446 in gdb.Record object instead of current ptid.
13447 * python/py-record.c: Include new "py-record.h" file.
13448 (recpy_record_object): Moved to py-record.h.
13449 * python/py-record.h: New file.
13451 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
13453 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
13454 BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
13457 2017-05-01 Joel Brobecker <brobecker@adacore.com>
13459 * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to
13460 the past maintainers section.
13462 2017-04-28 Yao Qi <yao.qi@linaro.org>
13464 * infcmd.c (get_return_value): Use regcache ctor, and remove
13467 2017-04-28 Yao Qi <yao.qi@linaro.org>
13468 Pedro Alves <palves@redhat.com>
13470 * regcache.c (regcache::regcache): New tag dispatch ctor.
13471 (do_cooked_read): Moved above.
13472 (regcache_dup): Use the tag dispatch ctor..
13473 * regcache.h (regcache): Declare ctor, delete copy ctor and
13474 assignment operator, remove friend regcache_dup.
13476 2017-04-28 Yao Qi <yao.qi@linaro.org>
13478 * regcache.c (regcache_dup): Assert !src->m_readonly_p and
13479 call method save instead of regcache_cpy.
13480 * regcache.h (struct regcache): Make regcache_dup a friend.
13482 2017-04-28 Yao Qi <yao.qi@linaro.org>
13484 * regcache.c (struct regcache): Move to regcache.h
13485 (regcache::arch): New method.
13486 (regcache_get_ptid): Update.
13487 (get_regcache_arch): Call arch method.
13488 (get_regcache_aspace): Call method aspace.
13489 (register_buffer): Change it to method.
13490 (regcache_save): Change it to regcache::save.
13491 (regcache_restore): Likewise.
13492 (regcache_cpy_no_passthrough): Remove the declaration.
13493 (regcache_cpy): Call methods restore and cpy_no_passthrough.
13494 (regcache_cpy_no_passthrough): Change it to method
13495 cpy_no_passthrough.
13496 (regcache_register_status): Change it to method
13497 get_register_status.
13498 (regcache_invalidate): Change it to method invalidate.
13499 (regcache_thread_ptid_changed): Use methods ptid and set_ptid.
13500 (regcache_raw_update): Change it to method raw_update.
13501 (regcache_raw_read): Likewise.
13502 (regcache_raw_read_signed): Likewise.
13503 (regcache_raw_read_unsigned): Likewise.
13504 (regcache_raw_write_signed): Likewise.
13505 (regcache_raw_write_unsigned): Likewise.
13506 (regcache_cooked_read): Likewise.
13507 (regcache_cooked_read_value): Likewise.
13508 (regcache_cooked_read_signed): Likewise.
13509 (regcache_cooked_read_unsigned): Likewise.
13510 (regcache_cooked_write_signed): Likewise.
13511 (regcache_cooked_write_unsigned): Likewise.
13512 (regcache_raw_set_cached_value): Likewise.
13513 (regcache_raw_write): Likewise.
13514 (regcache_cooked_write): Likewise.
13515 (regcache_xfer_part): Likewise.
13516 (regcache_raw_read_part): Likewise.
13517 (regcache_raw_write_part): Likewise.
13518 (regcache_cooked_read_part): Likewise.
13519 (regcache_cooked_write_part): Likewise.
13520 (regcache_raw_supply): Likewise.
13521 (regcache_raw_collect): Likewise.
13522 (regcache_transfer_regset): Likewise.
13523 (regcache_supply_regset): Likewise.
13524 (regcache_collect_regset): Likewise.
13525 (regcache_debug_print_register): Likewise.
13526 (enum regcache_dump_what): Move it to regcache.h.
13527 (regcache_dump): Change it to method dump.
13528 * regcache.h (enum regcache_dump_what): New.
13529 (class regcache): New.
13530 * target.c (target_fetch_registers): Call method
13531 debug_print_register.
13532 (target_store_registers): Likewise.
13534 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13536 * windows-nat.c (struct lm_info_windows): Initialize field.
13537 (windows_make_so): Allocate lm_info_windows with new.
13538 (windows_free_so): Free lm_info_windows with delete.
13540 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13542 * solib-darwin.c (struct lm_info_darwin): Initialize field.
13543 (darwin_current_sos): Allocate lm_info_darwin with new, remove
13545 (darwin_free_so): Free lm_info_darwin with delete.
13547 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13549 * solib-svr4.h (struct lm_info_svr4): Initialize fields.
13550 <l_addr_p>: Change type to bool.
13551 * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
13552 (svr4_free_so): Free lm_info_svr4 with delete.
13553 (svr4_copy_library_list): Replace memcpy with call to copy
13555 (library_list_start_library, svr4_default_sos): Allocate
13556 lm_info_svr4 with new.
13558 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13560 * solib-target.c (struct lm_info_target): Add destructor,
13562 <name>: Change type to std::string.
13563 (library_list_start_library): Allocate lm_info_target with new.
13564 (solib_target_free_library_list): Free lm_info_target with
13566 (solib_target_current_sos): Adapt to std::string.
13567 (solib_target_free_so): Free lm_info_target with delete.
13569 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13571 * solib-frv.c (struct lm_info_frv): Add destructor, initialize
13573 (frv_current_sos): Allocate lm_info_frv with new.
13574 (frv_relocate_main_executable): Free lm_info_frv with delete,
13576 (frv_clear_solib, frv_free_so): Free lm_info_frv with delete.
13578 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13580 * solib-frv.c (struct lm_info_frv): Fix indentation.
13582 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13584 * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
13586 (dsbt_current_sos): Allocate lm_info_dsbt with new.
13587 (dsbt_relocate_main_executable): Free lm_info_dsbt with delete
13588 and allocate with new.
13589 (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
13591 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13593 * solib-aix.c (struct lm_info_aix): Initialize fields in-class.
13594 <filename, member_name>: Change type to std::string.
13595 (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
13596 (library_list_start_library): Allocate lm_info_aix with new.
13597 (solib_aix_free_library_list, solib_aix_free_so): Free with delete.
13598 (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
13599 with copy constructor.
13601 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13603 * solist.h (struct lm_info): Remove.
13604 (struct lm_info_base): New class.
13605 (struct so_list) <lm_info>: Change type to lm_info_base *.
13606 * nto-tdep.c (struct lm_info): Remove.
13608 * solib-aix.c (struct lm_info): Rename to ...
13609 (struct lm_info_aix): ... this. Extend lm_info_base.
13610 (lm_info_p): Rename to ...
13611 (lm_info_aix_p): ... this, and adjust.
13612 (solib_aix_new_lm_info, solib_aix_xfree_lm_info,
13613 solib_aix_parse_libraries, library_list_start_library,
13614 solib_aix_free_library_list, solib_aix_parse_libraries,
13615 solib_aix_get_library_list,
13616 solib_aix_relocate_section_addresses, solib_aix_free_so,
13617 solib_aix_get_section_offsets,
13618 solib_aix_solib_create_inferior_hook, solib_aix_current_sos):
13620 (struct solib_aix_inferior_data) <library_list>: Adjust.
13621 * solib-darwin.c (struct lm_info): Rename to ...
13622 (struct lm_info_darwin): ... this. Extend lm_info_base.
13623 (darwin_current_sos, darwin_relocate_section_addresses): Adjust.
13624 * solib-dsbt.c (struct lm_info): Rename to ...
13625 (struct lm_info_dsbt): ... this. Extend lm_info_base.
13626 (struct dsbt_info) <main_executable_lm_info): Adjust.
13627 (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so,
13628 dsbt_relocate_section_addresses): Adjust.
13629 * solib-frv.c (struct lm_info): Rename to ...
13630 (struct lm_info_frv): ... this. Extend lm_info_base.
13631 (main_executable_lm_info): Adjust.
13632 (frv_current_sos, frv_relocate_main_executable, frv_free_so,
13633 frv_relocate_section_addresses, frv_fdpic_find_global_pointer,
13634 find_canonical_descriptor_in_load_object,
13635 frv_fdpic_find_canonical_descriptor): Adjust.
13636 * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed
13638 (lm_info_read, lm_addr_check, svr4_keep_data_in_core,
13639 svr4_clear_so, svr4_copy_library_list,
13640 library_list_start_library, svr4_default_sos, svr4_read_so_list,
13641 svr4_current_sos, svr4_fetch_objfile_link_map,
13642 solist_update_incremental): Adjust.
13643 * solib-svr4.h (struct lm_info_svr4): Move here from
13645 * solib-target.c (struct lm_info): Rename to ...
13646 (struct lm_info_target): ... this. Extend lm_info_base.
13647 (lm_info_p): Rename to ...
13648 (lm_info_target_p): ... this.
13649 (solib_target_parse_libraries, library_list_start_segment,
13650 library_list_start_section, library_list_start_library,
13651 library_list_end_library, solib_target_free_library_list,
13652 solib_target_current_sos, solib_target_free_so,
13653 solib_target_relocate_section_addresses): Adjust.
13654 * windows-nat.c (struct lm_info): Rename to ...
13655 (struct lm_info_windows): ... this. Extend lm_info_base.
13656 (windows_make_so, handle_load_dll, handle_unload_dll,
13657 windows_xfer_shared_libraries): Adjust.
13659 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13661 * solib-darwin.c (struct darwin_so_list): Remove.
13662 (darwin_current_sos): Allocate an so_list object instead of a
13663 darwin_so_list, separately allocate an lm_info object.
13664 (darwin_free_so): Free lm_info.
13666 2017-04-28 John Baldwin <jhb@FreeBSD.org>
13668 * mips-tdep.c (print_gp_register_row): Replace printf_filtered
13669 with fprintf_filtered.
13671 2017-04-28 Yao Qi <yao.qi@linaro.org>
13673 * regcache.c (regcache::regcache): New function.
13674 (regcache::~regcache): New function.
13675 (regcache_xmalloc_1): Remove.
13676 (regcache_xmalloc): Call new regcache.
13677 (regcache_xfree): Call delete regcache.
13678 (get_thread_arch_aspace_regcache): Call new regcache.
13680 2017-04-28 Yao Qi <yao.qi@linaro.org>
13682 * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
13683 lwp instead of ptid_get_lwp.
13685 2017-04-28 Yao Qi <yao.qi@linaro.org>
13687 * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
13688 lwp_info instead of getting from inferior_ptid.
13690 2017-04-27 Keith Seitz <keiths@redhat.com>
13692 * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS)
13693 DIFFERENT_REFERENCE_TYPE_BADNESS): Remove.
13694 (CV_CONVERSION_BADNESS): Define.
13695 (rank_one_type): Remove overly restrictive rvalue reference
13697 Add cv-qualifier checks and subranks for type equality.
13698 * gdbtypes.h (REFERENCE_CONVERSION_RVALUE,
13699 REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS,
13700 CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare.
13702 2017-04-27 Simon Marchi <simon.marchi@ericsson.com>
13704 * python/py-inferior.c (inferior_to_inferior_object): Increment reference
13705 count when creating the object.
13707 2017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
13708 Ulrich Weigand <uweigand@de.ibm.com>
13710 * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
13711 entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
13713 (read_xcoff_symtab): Handle C_WEAKEXT storage class.
13714 (process_xcoff_symbol): Likewise.
13715 (scan_xcoff_symtab): Likewise.
13717 2017-04-26 Alan Hayward <alan.hayward@arm.com>
13719 * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned.
13720 (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer.
13721 (ia64_access_reg): Use get_frame_register_unsigned.
13722 (ia64_access_rse_reg): Likewise.
13723 (ia64_libunwind_frame_prev_register): Likewise.
13725 2017-04-26 Jiong Wang <jiong.wang@arm.com>
13727 * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op.
13728 * gdbarch.c: Regenerated.
13729 * gdbarch.h: Regenerated.
13730 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the
13731 visibility external.
13732 (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI
13733 between DW_CFA_lo_user and DW_CFA_high_user inclusive.
13734 (enum cfa_how_kind): Move to ...
13735 (struct dwarf2_frame_state_reg_info): Likewise.
13736 (struct dwarf2_frame_state): Likewise.
13737 * dwarf2-frame.h: ... here.
13738 (dwarf2_frame_state_alloc_regs): New declaration.
13739 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function.
13740 (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook.
13742 2017-04-26 Alan Hayward <alan.hayward@arm.com>
13744 * xtensa-tdep.c (xtensa_pseudo_register_read): Use
13745 regcache_raw_read_unsigned.
13746 (xtensa_pseudo_register_write): Likewise.
13748 2017-04-26 Alan Hayward <alan.hayward@arm.com>
13750 * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors.
13751 (nds32_pseudo_register_write): Likewise.
13753 2017-04-25 Yao Qi <yao.qi@linaro.org>
13755 * regcache.c (struct regcache) <readonly_p>: Change its type
13757 (regcache_xmalloc_1): Update parameter type and callers update.
13759 2017-04-25 Yao Qi <yao.qi@linaro.org>
13761 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
13762 set_gdbarch_wchar_bit.
13763 * arm-tdep.c (arm_gdbarch_init): Likewise.
13765 2017-04-25 Pedro Alves <palves@redhat.com>
13767 * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
13768 (BothAreRelocatable, memcopy, memmove): Don't define.
13769 * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
13772 2017-04-25 Pedro Alves <palves@redhat.com>
13774 * common/common-defs.h: Include "common/poison.h".
13775 * common/function-view.h: (Not, Or, Requires): Move to traits.h
13777 * common/poison.h: New file.
13778 * common/traits.h: Include <type_traits>.
13779 (Not, Or, Requires): New, moved from common/function-view.h.
13781 2017-04-25 Pedro Alves <palves@redhat.com>
13783 * breakpoint.h (struct breakpoint): In-class initialize all
13784 fields. Make boolean fields "bool".
13785 * breakpoint.c (init_raw_breakpoint_without_location): Remove
13786 memset call and initializations no longer necessary.
13788 2017-04-25 Pedro Alves <palves@redhat.com>
13790 * btrace.c (pt_btrace_insn_flags): Change parameter type to
13792 (pt_btrace_insn): New function.
13793 (ftrace_add_pt): Remove memset call and use pt_btrace_insn.
13795 2017-04-25 Pedro Alves <palves@redhat.com>
13797 * ada-lang.c (ada_catchpoint_location): Now a "class". Remove
13798 "base" field and inherit from "bp_location" instead. Add
13800 (allocate_location_exception): Use new non-default ctor.
13801 * breakpoint.c (get_first_locp_gte_addr): Remove memset call.
13802 (init_bp_location): Convert to ...
13803 (bp_location::bp_location): ... this new ctor, and remove memset
13805 (base_breakpoint_allocate_location): Use the new non-default ctor.
13806 * breakpoint.h (bp_location): Now a class. Declare default and
13807 non-default ctors. In-class initialize all members.
13808 (init_bp_location): Remove declaration.
13810 2017-04-25 Pedro Alves <palves@redhat.com>
13812 * common/enum-flags.h (enum_flags): Don't implement copy ctor and
13813 assignment operator.
13815 2017-04-24 Yao Qi <yao.qi@linaro.org>
13817 * doublest.c (convert_doublest_to_floatformat): Call
13818 floatformat_totalsize_bytes.
13820 2017-04-22 Tom Tromey <tom@tromey.com>
13822 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
13824 * stack.c (print_frame): Use ui_out_emit_list.
13825 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
13827 * mi/mi-main.c (print_one_inferior)
13828 (mi_cmd_data_list_register_names)
13829 (mi_cmd_data_list_register_values, mi_cmd_list_features)
13830 (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use
13832 * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list.
13833 (mi_output_solib_attribs): Use ui_out_emit_list,
13835 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list.
13836 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
13837 (mi_cmd_stack_list_args, list_args_or_locals): Use
13839 * disasm.c (do_assembly_only): Use ui_out_emit_list.
13840 * breakpoint.c (print_solib_event, output_thread_groups): Use
13843 2017-04-22 Tom Tromey <tom@tromey.com>
13845 * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple.
13846 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple.
13847 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple.
13849 2017-04-22 Tom Tromey <tom@tromey.com>
13851 * tracepoint.c (tvariables_info_1)
13852 (print_one_static_tracepoint_marker): Use ui_out_emit_tuple.
13854 2017-04-22 Tom Tromey <tom@tromey.com>
13856 * stack.c (print_frame_arg): Use ui_out_emit_tuple,
13857 annotate_arg_emitter.
13858 * breakpoint.c (print_mention_watchpoint)
13859 (print_mention_masked_watchpoint): Use ui_out_emit_tuple.
13860 * annotate.h (struct annotate_arg_emitter): New.
13862 2017-04-22 Tom Tromey <tom@tromey.com>
13864 * record-btrace.c (record_btrace_insn_history)
13865 (record_btrace_insn_history_range, record_btrace_call_history)
13866 (record_btrace_call_history_range): Use ui_out_emit_tuple.
13867 * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use
13869 * stack.c (print_frame_info): Use ui_out_emit_tuple.
13870 * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple.
13871 * skip.c (skip_info): Use ui_out_emit_tuple.
13872 * remote.c (show_remote_cmd): Use ui_out_emit_tuple.
13873 * progspace.c (print_program_space): Use ui_out_emit_tuple.
13874 * probe.c (info_probes_for_ops): Use ui_out_emit_tuple.
13875 * osdata.c (info_osdata): Use ui_out_emit_tuple.
13876 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
13878 * mi/mi-main.c (print_one_inferior, list_available_thread_groups)
13879 (output_register, mi_cmd_data_read_memory)
13880 (mi_cmd_data_read_memory_bytes, mi_load_progress)
13881 (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple.
13882 * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one):
13883 Use ui_out_emit_tuple.
13884 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use
13886 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
13887 (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple.
13888 * linux-thread-db.c (info_auto_load_libthread_db): Use
13890 * inferior.c (print_inferior): Use ui_out_emit_tuple.
13891 * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple.
13892 * disasm.c (do_mixed_source_and_assembly_deprecated)
13893 (do_mixed_source_and_assembly): Use ui_out_emit_tuple.
13894 * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple.
13895 * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple.
13896 * breakpoint.c (print_one_breakpoint_location)
13897 (print_one_breakpoint): Use ui_out_emit_tuple.
13898 * auto-load.c (print_script, info_auto_load_cmd): Use
13900 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple.
13902 2017-04-21 Simon Marchi <simon.marchi@ericsson.com>
13904 * thread.c (print_thread_info_1): Remove dead code.
13906 2017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
13908 * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
13910 * arm-tdep.c (selftests::arm_record_test): Likewise.
13912 2017-04-21 Yao Qi <yao.qi@linaro.org>
13914 * regcache.c (regcache_restore): Remove argument 2. Replace
13915 argument 3 with regcache. Get register status from
13916 src->register_status and get register contents from
13917 register_buffer (src, regnum).
13918 (regcache_cpy): Update.
13920 2017-04-19 Pedro Alves <palves@redhat.com>
13922 * gdbthread.h (thread): Add missing closing parenthesis in
13925 2017-04-19 Pedro Alves <palves@redhat.com>
13927 * common/refcounted-object.h: New file.
13928 * gdbthread.h: Include "common/refcounted-object.h".
13929 (thread_info): Inherit from refcounted_object and add comments.
13930 (thread_info::incref, thread_info::decref)
13931 (thread_info::m_refcount): Delete.
13932 (thread_info::deletable): Use the refcounted_object::refcount()
13934 * inferior.c (current_inferior_): Add comment.
13935 (set_current_inferior): Increment/decrement refcounts.
13936 (prune_inferiors, remove_inferior_command): Skip inferiors marked
13937 not-deletable instead of comparing with the current inferior.
13938 (initialize_inferiors): Increment the initial inferior's refcount.
13939 * inferior.h (struct inferior): Forward declare.
13940 Include "common/refcounted-object.h".
13941 (current_inferior, set_current_inferior): Move declaration to
13942 before struct inferior's definition, and fix comment.
13943 (inferior): Inherit from refcounted_object. Add comments.
13944 * thread.c (switch_to_thread_no_regs): Reference the thread's
13945 inferior pointer directly instead of doing a ptid lookup.
13946 (switch_to_no_thread): New function.
13947 (switch_to_thread(thread_info *)): New function, factored out
13949 (switch_to_thread(ptid_t)): ... this.
13950 (restore_current_thread): Delete.
13951 (current_thread_cleanup): Remove 'inf_id' and 'was_removable'
13952 fields, and add 'inf' field.
13953 (do_restore_current_thread_cleanup): Check whether old->inf is
13954 alive instead of looking up an inferior by ptid. Use
13955 switch_to_thread and switch_to_no_thread.
13956 (restore_current_thread_cleanup_dtor): Use old->inf directly
13957 instead of lookup up an inferior by id. Decref the inferior.
13958 Don't restore 'removable'.
13959 (make_cleanup_restore_current_thread): Same the inferior pointer
13960 in old, instead of the inferior number. Incref the inferior.
13961 Don't save/clear 'removable'.
13963 2017-04-19 Pedro Alves <palves@redhat.com>
13965 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13966 unittests/scoped_restore-selftests.c.
13967 (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o.
13968 * common/scoped_restore.h (scoped_restore_base): Make "class".
13969 (scoped_restore_base::release): New public method.
13970 (scoped_restore_base::scoped_restore_base): New protected ctor.
13971 (scoped_restore_base::m_saved_var): New protected field.
13972 (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the
13973 scoped_restore_base base class instead of m_saved_var directly.
13974 (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise.
13975 (scoped_restore_tmpl::scoped_restore_tmpl(const
13976 scoped_restore_tmpl<T>&)): Likewise.
13977 (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var
13979 (scoped_restore_tmpl::saved_var): New method.
13980 (scoped_restore_tmpl::m_saved_var): Delete.
13981 * inferior.h (inferior::detaching): Now a bool.
13982 * infrun.c (prepare_for_detach): Use a scoped_restore instead of a
13984 * unittests/scoped_restore-selftests.c: New file.
13986 2017-04-19 Pedro Alves <palves@redhat.com>
13988 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS):
13989 Re-sort in alphabetic order.
13991 2017-04-18 Pedro Alves <palves@redhat.com>
13993 * xml-support.c (obstack_xml_printf): Delete.
13994 * xml-support.h (obstack_xml_printf): Delete.
13996 2017-04-18 Pedro Alves <palves@redhat.com>
13998 * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse,
13999 vdebug, verror, body_text, start_element, end_element, name,
14000 user_data, set_is_xinclude, set_error, expat_parser>: New methods.
14001 <name, user_data, expat_parser, scopes, error, last_line, dtd_name,
14002 is_xinclude>: Make private and add m_ prefix.
14003 (gdb_xml_parser::body_text): New method, based on ...
14004 (gdb_xml_body_text): ... this. Adjust.
14005 (gdb_xml_parser::vdebug): New method, based on ...
14006 (gdb_xml_debug): ... this. Adjust.
14007 (gdb_xml_parser::verror): New method, based on ...
14008 (gdb_xml_error): ... this. Adjust.
14009 (gdb_xml_parser::start_element): New method, based on ...
14010 (gdb_xml_start_element): ... this. Adjust.
14011 (gdb_xml_start_element_wrapper): Defer to
14012 gdb_xml_parser::start_element and gdb_xml_parser::set_error.
14013 (gdb_xml_parser::end_element): New method, based on ...
14014 (gdb_xml_end_element_wrapper): ... this. Adjust.
14015 (gdb_xml_parser::~gdb_xml_parser): Adjust.
14016 (gdb_xml_parser::gdb_xml_parser): Adjust to field renames.
14017 (gdb_xml_parser::use_dtd): New method, based on ...
14018 (gdb_xml_use_dtd): ... this. Adjust.
14019 (gdb_xml_parser::parse): New method, based on ...
14020 (gdb_xml_parse): ... this. Adjust.
14021 (gdb_xml_parse_quick): Adjust to call the parser's parse method.
14022 (xinclude_start_include): Adjust to call the parser's name method.
14023 (xml_xinclude_default, xml_xinclude_start_doctype)
14024 (xml_xinclude_end_doctype): Adjust to call the parser's user_data
14026 (xml_process_xincludes): Adjust to call parser methods.
14027 * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete
14030 2017-04-18 Pedro Alves <palves@redhat.com>
14032 * tracefile-tfile.c (tfile_write_tdesc): Adjust to use
14033 gdb::optional<std::string>.
14034 * xml-support.c: Include <string>.
14035 (scope_level::scope_level(scope_level &&))
14036 (scope_level::~scope_level): Delete.
14037 (scope_level::body): Now a std::string.
14038 (gdb_xml_body_text, gdb_xml_end_element): Adjust.
14039 (xinclude_parsing_data::xinclude_parsing_data): Add 'output'
14041 (xinclude_parsing_data::~xinclude_parsing_data): Delete.
14042 (xinclude_parsing_data::output): Now a std::string reference.
14043 (xinclude_start_include): Adjust.
14044 (xml_xinclude_default): Adjust.
14045 (xml_process_xincludes): Add 'output' parameter, and return bool.
14046 * xml-support.h (xml_process_xincludes): Add 'output' parameter,
14048 * xml-tdesc.c: Include <unordered_map> and <string>.
14049 (tdesc_xml_cache): Delete.
14050 (tdesc_xml_cache_s): Delete.
14051 (xml_cache): Now an std::unordered_map.
14052 (tdesc_parse_xml): Adjust to use std::string and unordered_map.
14053 (target_fetch_description_xml): Change return type to
14054 gdb::optional<std::string>, and adjust.
14055 * xml-tdesc.h: Include "common/gdb_optional.h" and <string>.
14056 (target_fetch_description_xml): Change return type to
14057 gdb::optional<std::string>.
14059 2017-04-18 Pedro Alves <palves@redhat.com>
14061 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14062 unittests/optional-selftests.c.
14063 (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o.
14064 * unittests/optional-selftests.c: New file.
14065 * unittests/optional/assignment/1.cc: New file.
14066 * unittests/optional/assignment/2.cc: New file.
14067 * unittests/optional/assignment/3.cc: New file.
14068 * unittests/optional/assignment/4.cc: New file.
14069 * unittests/optional/assignment/5.cc: New file.
14070 * unittests/optional/assignment/6.cc: New file.
14071 * unittests/optional/assignment/7.cc: New file.
14072 * unittests/optional/cons/copy.cc: New file.
14073 * unittests/optional/cons/default.cc: New file.
14074 * unittests/optional/cons/move.cc: New file.
14075 * unittests/optional/cons/value.cc: New file.
14076 * unittests/optional/in_place.cc: New file.
14077 * unittests/optional/observers/1.cc: New file.
14078 * unittests/optional/observers/2.cc: New file.
14080 2017-04-18 Pedro Alves <palves@redhat.com>
14082 * common/gdb_optional.h: Include common/traits.h.
14083 (in_place_t): New type.
14084 (in_place): New constexpr variable.
14085 (optional::optional): Remove member initialization of
14087 (optional::optional(in_place_t...)): New constructor.
14088 (optional::~optional): Use reset.
14089 (optional::optional(const optional&)): New.
14090 (optional::optional(const optional&&)): New.
14091 (optional::optional(T &)): New.
14092 (optional::optional(T &&)): New.
14093 (operator::operator=(const optional &)): New.
14094 (operator::operator=(optional &&)): New.
14095 (operator::operator= (const T &))
14096 (operator::operator= (T &&))
14097 (operator::emplace (Args &&... args)): Return a T&. Use reset.
14098 (operator::reset): New.
14099 (operator::m_instantiated):: Add in-class initializer.
14100 * common/traits.h: Include <type_traits>.
14101 (struct And): New types.
14103 2017-04-18 Pedro Alves <palves@redhat.com>
14105 * xml-support.c: Include <vector>.
14106 (scope_level::scope_level(const gdb_xml_element *))
14107 (scope_level::scope_level(scope_level&&)): New.
14108 (scope_level::~scope_level): New.
14109 (scope_level_s): Delete.
14110 (gdb_xml_parser::scopes): Now a std::vector.
14111 (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
14113 (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
14114 scope cleanup code.
14115 (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
14116 of the scopes member. Use std::vector::emplace_back.
14118 2017-04-18 Pedro Alves <palves@redhat.com>
14120 * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude
14122 (gdb_xml_end_element): Change type of first parameter.
14123 (gdb_xml_cleanup): Rename to ...
14124 (gdb_xml_parser::~gdb_xml_parser): ... this.
14125 (gdb_xml_create_parser_and_cleanup): Delete with ...
14126 (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
14128 (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
14129 using gdb_xml_create_parser_and_cleanup.
14130 (xinclude_parsing_data): Add ctor/dtor.
14131 (xml_xinclude_cleanup): Delete.
14132 (xml_process_xincludes): Create a local xinclude_parsing_data
14133 instead of heap-allocating one. Create a local gdb_xml_parser
14134 instead of heap-allocating one with
14135 gdb_xml_create_parser_and_cleanup.
14137 2017-04-18 John Baldwin <jhb@FreeBSD.org>
14140 * fbsd-nat.c (resume_one_thread_cb): Remove.
14141 (resume_all_threads_cb): Remove.
14142 (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
14143 iterate_over_threads.
14145 2017-04-17 Joel Brobecker <brobecker@adacore.com>
14147 * NEWS: Create a new section for the next release branch.
14148 Rename the section of the current branch, now that it has
14151 2017-04-17 Joel Brobecker <brobecker@adacore.com>
14153 GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
14154 * version.in: Bump version to 8.0.50.DATE-git.
14156 2017-04-13 Sergio Durigan Junior <sergiodj@redhat.com>
14159 * windows-nat.c (windows_create_inferior): Declare 'allargs'
14160 independently of the host, and fix build breakage on Cygwin.
14162 2017-04-13 Pedro Alves <palves@redhat.com>
14164 * inferior.c (free_inferior): Convert to ...
14165 (inferior::~inferior): ... this dtor.
14166 (inferior::inferior): New ctor, factored out from ...
14167 (add_inferior_silent): ... here. Allocate the inferior with a new
14169 (delete_inferior): Call delete instead of free_inferior.
14170 * inferior.h (gdb_environ, continuation): Forward declare.
14171 (inferior): Now a class. Add in-class initialization to all
14172 members. Make boolean fields bool, except 'detaching'.
14173 (inferior::inferior): New explicit ctor.
14174 (inferior::~inferior): New.
14176 2017-04-13 Pedro Alves <palves@redhat.com>
14178 * inferior.c (init_inferior_list): Delete.
14179 * inferior.h (init_inferior_list): Delete.
14181 2017-04-13 Pedro Alves <palves@redhat.com>
14184 * gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
14185 (top level): Call it twice, with different thread sets.
14187 2017-04-13 Pedro Alves <palves@redhat.com>
14189 * thread.c: Include <algorithm>.
14190 (thread_array_cleanup): Delete.
14191 (scoped_inc_dec_ref): New class.
14192 (live_threads_count): New function.
14193 (set_thread_refcount): Delete.
14194 (tp_array_compar_ascending): Now a bool.
14195 (tp_array_compar): Convert to a std::sort comparison function.
14196 (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
14197 and live_threads_count.
14199 2017-04-13 Pedro Alves <palves@redhat.com>
14201 * infrun.c (follow_fork_inferior): Also switch the current
14204 2017-04-13 Pedro Alves <palves@redhat.com>
14206 * breakpoint.c (watch_command_1): Save watchpoint-frame info
14207 before calling create_internal_breakpoint.
14209 2017-04-13 Pedro Alves <palves@redhat.com>
14211 * fork-child.c (execv_argv): New class.
14212 (breakup_args): Refactored as ...
14213 (execv_argv::init_for_no_shell): .. this method of execv_argv.
14214 Copy arguments to storage and replace separators with NULL
14215 terminators in place.
14216 (escape_bang_in_quoted_argument): Adjust to return bool.
14217 (execv_argv::execv_argv): New ctor.
14218 (execv_argv::init_for_shell): New method, factored out from
14219 fork_inferior. Don't strdup strings into the vector.
14220 (fork_inferior): Eliminate "shell" local and use execv_argv. Use
14221 Remove free_vector_argv call.
14223 2017-04-13 Yao Qi <yao.qi@linaro.org>
14225 * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
14228 2017-04-13 Yao Qi <yao.qi@linaro.org>
14230 * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
14231 * rx-tdep.c (rx_gdbarch_init): Likewise.
14233 2017-04-13 Pedro Alves <palves@redhat.com>
14235 * breakpoint.h (struct breakpoint): Reindent.
14237 2017-04-13 Pedro Alves <palves@redhat.com>
14239 * breakpoint.c (bp_location): Rename to ...
14240 (bp_locations): ... this. All references updated.
14241 (bp_location_count): Rename to ...
14242 (bp_locations_count): ... this. All references updated.
14243 (bp_location_placed_address_before_address_max): Rename to ...
14244 (bp_locations_placed_address_before_address_max): ... this. All
14245 references updated.
14246 (bp_location_shadow_len_after_address_max): Rename to ...
14247 (bp_locations_shadow_len_after_address_max): ... this. All
14248 references updated.
14249 (bp_location_compare_addrs): Rename to ...
14250 (bp_locations_compare_addrs): ... this. All references updated.
14251 (bp_location_compare):Rename to ...
14252 (bp_locations_compare): ... this. All references updated.
14253 (bp_location_target_extensions_update): Rename to ...
14254 (bp_locations_target_extensions_update): ... this. All references
14257 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
14259 * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
14260 * common/common.m4: Check headers 'termios.h', 'termio.h' and
14262 * common/gdb_termios.h: New file, with parts of "terminal.h".
14263 * inflow.c: Include "gdb_termios.h".
14264 * ser-unix.c: Include "gdb_termios.h".
14265 * terminal.h: Move terminal-related defines to
14266 "common/gdb_termios.h".
14268 2017-04-12 Tom Tromey <tom@tromey.com>
14270 * probe.c (parse_probes): Update.
14271 * location.h (delete_event_location): Don't declare.
14272 (event_location_deleter::operator()): Update.
14273 * location.c (event_location_deleter::operator()): Rename from
14274 delete_event_location.
14275 * linespec.h (linespec_result) <location>: Change type to
14277 * linespec.c (canonicalize_linespec, event_location_to_sals)
14278 (decode_objc): Update.
14279 (linespec_result): Don't call delete_event_location.
14280 * breakpoint.c (create_breakpoints_sal)
14281 (bkpt_probe_create_sals_from_location)
14282 (strace_marker_create_sals_from_location): Update.
14284 2017-04-12 Tom Tromey <tom@tromey.com>
14286 * linespec.h (struct linespec_result): Add constructor and
14288 (init_linespec_result, destroy_linespec_result)
14289 (make_cleanup_destroy_linespec_result): Don't declare.
14290 * linespec.c (init_linespec_result): Remove.
14291 (linespec_result::~linespec_result): Rename from
14292 destroy_linespec_result. Update.
14293 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
14295 * breakpoint.c (create_breakpoint, break_range_command)
14296 (decode_location_default): Update.
14297 * ax-gdb.c (agent_command_1): Update.
14299 2017-04-12 Tom Tromey <tom@tromey.com>
14301 * remote.c (remote_download_tracepoint): Update.
14302 * python/py-breakpoint.c (bppy_get_location): Update.
14303 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
14304 (gdbscm_breakpoint_location): Update.
14305 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
14306 * breakpoint.h (struct breakpoint) <location, location_range_end>:
14307 Change type to event_location_up.
14308 * breakpoint.c (create_overlay_event_breakpoint)
14309 (create_longjmp_master_breakpoint)
14310 (create_std_terminate_master_breakpoint)
14311 (create_exception_master_breakpoint)
14312 (breakpoint_event_location_empty_p, print_breakpoint_location)
14313 (print_one_breakpoint_location, create_thread_event_breakpoint)
14314 (init_breakpoint_sal, create_breakpoint)
14315 (print_recreate_ranged_breakpoint, break_range_command)
14316 (init_ada_exception_breakpoint, say_where): Update.
14317 (base_breakpoint_dtor): Don't call delete_event_location.
14318 (bkpt_print_recreate, tracepoint_print_recreate)
14319 (dprintf_print_recreate, update_static_tracepoint)
14320 (breakpoint_re_set_default): Update.
14322 2017-04-12 Tom Tromey <tom@tromey.com>
14324 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
14325 type of "to_do". Update.
14326 (compute_stack_depth): Use std::vector.
14328 2017-04-12 Tom Tromey <tom@tromey.com>
14330 * printcmd.c (find_instruction_backward): Use std::vector.
14332 2017-04-12 Tom Tromey <tom@tromey.com>
14334 * symfile.c (objfilep): Remove typedef.
14335 (reread_symbols): Use a std::vector.
14337 2017-04-12 Tom Tromey <tom@tromey.com>
14339 * mi/mi-main.c (exec_direction_forward): Remove.
14340 (exec_reverse_continue, mi_execute_command): Use scoped_restore.
14341 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
14343 * guile/guile.c (guile_repl_command, guile_command)
14344 (gdbscm_execute_gdb_command): Use scoped_restore.
14345 * go-exp.y (go_parse): Use scoped_restore.
14346 * d-exp.y (d_parse): Use scoped_restore.
14347 * cli/cli-decode.c (cmd_func): Use scoped_restore.
14348 * c-exp.y (c_parse): Use scoped_restore.
14350 2017-04-12 Tom Tromey <tom@tromey.com>
14352 * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
14353 (mi_parse): Update return type.
14354 (mi_parse_free): Remove.
14355 * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
14356 (mi_parse::~mi_parse): Rename from mi_parse_free.
14357 (mi_parse_cleanup): Remove.
14358 (mi_parse): Return a unique_ptr. Use new.
14359 * mi/mi-main.c (mi_execute_command): Update.
14361 2017-04-12 Tom Tromey <tom@tromey.com>
14363 * location.c (explicit_location_lex_one): Return a
14364 unique_xmalloc_ptr.
14365 (string_to_explicit_location): Update. Remove cleanups.
14367 2017-04-12 Tom Tromey <tom@tromey.com>
14369 * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
14370 (compare_value_and_voffset): Change type. Update.
14371 (compute_vtable_size): Change type of "offset_vec".
14372 (gnuv3_print_vtable): Use std::vector. Remove cleanups.
14373 (gnuv3_get_typeid): Remove extraneous declaration.
14375 2017-04-12 Tom Tromey <tom@tromey.com>
14377 * charset.h (wchar_iterator): Fix comment.
14379 2017-04-12 Tom Tromey <tom@tromey.com>
14381 * charset.c (iconv_wrapper): New class.
14382 (cleanup_iconv): Remove.
14383 (convert_between_encodings): Use it.
14385 2017-04-12 Tom Tromey <tom@tromey.com>
14387 * symfile.h (increment_reading_symtab): Update type.
14388 * symfile.c (decrement_reading_symtab): Remove.
14389 (increment_reading_symtab): Return a scoped_restore_tmpl<int>.
14390 * psymtab.c (psymtab_to_symtab): Update.
14391 * dwarf2read.c (dw2_instantiate_symtab): Update.
14393 2017-04-12 Tom Tromey <tom@tromey.com>
14395 * jit.c (struct jit_reader): Declare separately. Add constructor
14396 and destructor. Change type of "handle".
14397 (loaded_jit_reader): Define separately.
14398 (jit_reader_load): Update. New "new".
14399 (jit_reader_unload_command): Use "delete".
14400 * gdb-dlfcn.h (struct dlclose_deleter): New.
14401 (gdb_dlhandle_up): New typedef.
14402 (gdb_dlopen, gdb_dlsym): Update types.
14403 (gdb_dlclose): Remove.
14404 * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up.
14405 (gdb_dlsym): Change type of "handle".
14406 (make_cleanup_dlclose): Remove.
14407 (dlclose_deleter::operator()): Rename from gdb_dlclose.
14408 * compile/compile-c-support.c (load_libcc): Update.
14410 2017-04-12 Tom Tromey <tom@tromey.com>
14412 * symtab.h (find_pcs_for_symtab_line): Change return type.
14413 * symtab.c (find_pcs_for_symtab_line): Change return type.
14414 * python/py-linetable.c (build_line_table_tuple_from_pcs): Change
14415 type of "vec". Update.
14416 (ltpy_get_pcs_for_line): Update.
14417 * linespec.c (decode_digits_ordinary): Update.
14419 2017-04-12 Tom Tromey <tom@tromey.com>
14421 * tracepoint.c (actions_command): Update.
14422 * python/python.c (python_command, python_interactive_command):
14424 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
14425 * guile/guile.c (guile_command): Update.
14426 * defs.h (read_command_lines, read_command_lines_1): Return
14428 (command_lines_deleter): New struct.
14429 (command_line_up): New typedef.
14430 * compile/compile.c (compile_code_command)
14431 (compile_print_command): Update.
14432 * cli/cli-script.h (get_command_line, copy_command_lines): Return
14434 (make_cleanup_free_command_lines): Remove.
14435 * cli/cli-script.c (get_command_line, read_command_lines_1)
14436 (copy_command_lines): Return command_line_up.
14437 (while_command, if_command, read_command_lines, define_command)
14438 (document_command): Update.
14439 (do_free_command_lines_cleanup, make_cleanup_free_command_lines):
14441 * breakpoint.h (breakpoint_set_commands): Change type of
14443 * breakpoint.c (breakpoint_set_commands): Change type of
14444 "commands". Update.
14445 (do_map_commands_command, update_dprintf_command_list)
14446 (create_tracepoint_from_upload): Update.
14448 2017-04-12 Tom Tromey <tom@tromey.com>
14450 * tracepoint.c (scope_info): Update.
14451 * spu-tdep.c (spu_catch_start): Update.
14452 * python/python.c (gdbpy_decode_line): Update.
14453 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
14454 * python/py-breakpoint.c (bppy_init): Update.
14455 * probe.c (parse_probes): Update.
14456 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
14457 * location.h (event_location_deleter): New struct.
14458 (event_location_up): New typedef.
14459 (new_linespec_location, new_address_location, new_probe_location)
14460 (new_explicit_location, copy_event_location)
14461 (string_to_event_location, string_to_event_location_basic)
14462 (string_to_explicit_location): Update return type.
14463 (make_cleanup_delete_event_location): Remove.
14464 * location.c (new_linespec_location, new_address_location)
14465 (new_probe_location, new_explicit_location, copy_event_location):
14466 Return event_location_up.
14467 (delete_event_location_cleanup)
14468 (make_cleanup_delete_event_location): Remove.
14469 (string_to_explicit_location, string_to_event_location_basic)
14470 (string_to_event_location): Return event_location_up.
14471 * linespec.c (canonicalize_linespec, event_location_to_sals)
14472 (decode_line_with_current_source)
14473 (decode_line_with_last_displayed, decode_objc): Update.
14474 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
14475 * completer.c (location_completer): Update.
14476 * cli/cli-cmds.c (edit_command, list_command): Update.
14477 * breakpoint.c (create_overlay_event_breakpoint)
14478 (create_longjmp_master_breakpoint)
14479 (create_std_terminate_master_breakpoint)
14480 (create_exception_master_breakpoint)
14481 (create_thread_event_breakpoint): Update.
14482 (init_breakpoint_sal): Update. Remove some dead code.
14483 (create_breakpoint_sal): Change type of "location". Update.
14484 (create_breakpoints_sal, create_breakpoint, break_command_1)
14485 (dprintf_command, break_range_command, until_break_command)
14486 (init_ada_exception_breakpoint)
14487 (strace_marker_create_sals_from_location)
14488 (update_static_tracepoint, trace_command, ftrace_command)
14489 (strace_command, create_tracepoint_from_upload): Update.
14490 * break-catch-throw.c (re_set_exception_catchpoint): Update.
14491 * ax-gdb.c (agent_command_1): Update.
14493 2017-04-12 Pedro Alves <palves@redhat.com>
14495 * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o.
14496 * configure.tgt: Handle i[34567]86-*-go32* and
14497 i[34567]86-*-msdosdjgpp*.
14498 * i386-tdep.c (i386_svr4_reg_to_regnum):
14500 (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to
14502 (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c.
14503 * i386-go32-tdep.c: New file.
14504 * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New
14507 2017-04-12 Simon Marchi <simon.marchi@ericsson.com>
14509 * aix-thread.c (pd_status2str): Change return type to const char *.
14511 2017-04-12 Pedro Alves <palves@redhat.com>
14513 * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
14514 calls to set_gdbarch_gnu_triplet_regexp.
14516 2017-04-12 Pedro Alves <palves@redhat.com>
14519 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>:
14521 (cplus_language_arch_info): Register cplus_primitive_type_wchar_t.
14522 * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field.
14523 * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type.
14524 * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values.
14525 * gdbarch.h, gdbarch.c: Regenerate.
14526 * aarch64-tdep.c (aarch64_gdbarch_init): Override
14527 gdbarch_wchar_bit and gdbarch_wchar_signed.
14528 * alpha-tdep.c (alpha_gdbarch_init): Likewise.
14529 * arm-tdep.c (arm_gdbarch_init): Likewise.
14530 * avr-tdep.c (avr_gdbarch_init): Likewise.
14531 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
14532 * i386-nto-tdep.c (i386nto_init_abi): Likewise.
14533 * i386-tdep.c (i386_go32_init_abi): Likewise.
14534 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
14535 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
14536 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
14537 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
14538 * sh-tdep.c (sh_gdbarch_init): Likewise.
14539 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
14540 * sparc64-tdep.c (sparc64_init_abi): Likewise.
14541 * windows-tdep.c (windows_init_abi): Likewise.
14542 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
14544 2017-04-12 Pedro Alves <palves@redhat.com>
14547 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t,
14548 cplus_primitive_type_char32_t>: New enum values.
14549 (cplus_language_arch_info): Register cplus_primitive_type_char16_t
14550 and cplus_primitive_type_char32_t.
14551 * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or
14552 32, use the archtecture's built-in type for char16_t and char32_t,
14553 respectively. Otherwise, fallback to init_integer_type as before,
14554 but make the type unsigned, and issue a complaint.
14555 * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned.
14557 2017-04-12 Alan Hayward <alan.hayward@arm.com>
14559 * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added.
14560 (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
14562 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
14564 * windows-nat.c (windows_create_inferior): Declare 'toexec' as
14567 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
14569 * common/common-utils.c (free_vector_argv): New function.
14570 * common/common-utils.h: Include <vector>.
14571 (free_vector_argv): New prototype.
14572 * darwin-nat.c (darwin_create_inferior): Rewrite function
14573 prototype in order to constify "exec_file" and accept a
14574 "std::string" for "allargs".
14575 * fork-child.c: Include <vector>.
14576 (breakup_args): Rewrite function, using C++.
14577 (fork_inferior): Rewrite function header, constify "exec_file_arg"
14578 and accept "std::string" for "allargs". Update the code to
14579 calculate "argv" based on "allargs". Update calls to "exec_fun"
14581 * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in
14582 order to constify "exec_file" and accept a "std::string" for
14584 * go32-nat.c (go32_create_inferior): Likewise.
14585 * inf-ptrace.c (inf_ptrace_create_inferior): Likewise.
14586 * infcmd.c (run_command_1): Constify "exec_file". Use
14587 "std::string" for inferior arguments.
14588 * inferior.h (fork_inferior): Update prototype.
14589 * linux-nat.c (linux_nat_create_inferior): Rewrite function
14590 prototype in order to constify "exec_file" and accept a
14591 "std::string" for "allargs".
14592 * nto-procfs.c (procfs_create_inferior): Likewise.
14593 * procfs.c (procfs_create_inferior): Likewise.
14594 * remote-sim.c (gdbsim_create_inferior): Likewise.
14595 * remote.c (extended_remote_run): Update code to accept
14596 "std::string" as argument.
14597 (extended_remote_create_inferior): Rewrite function prototype in
14598 order to constify "exec_file" and accept a "std::string" for
14600 * rs6000-nat.c (super_create_inferior): Likewise.
14601 (rs6000_create_inferior): Likewise.
14602 * target.h (struct target_ops) <to_create_inferior>: Likewise.
14603 * windows-nat.c (windows_create_inferior): Likewise.
14605 2017-04-11 Pedro Alves <palves@redhat.com>
14607 * thread.c: Fix whitespace throughout.
14609 2017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com>
14611 * linux-nat.c (linux_nat_detach): Remove delete_lwp call.
14613 2017-04-11 Alan Hayward <alan.hayward@arm.com>
14615 * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
14617 2017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
14620 * osdata.c (info_osdata): Check if 'type' is an empty string
14623 2017-04-10 Pedro Alves <palves@redhat.com>
14625 * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid)
14626 (ptid_to_global_thread_id, in_thread_list)
14627 (do_captured_list_thread_ids, set_resumed, set_running)
14628 (set_executing, set_stop_requested, finish_thread_state)
14629 (validate_registers_access, can_access_registers_ptid)
14630 (print_thread_info_1, switch_to_thread)
14631 (do_restore_current_thread_cleanup)
14632 (make_cleanup_restore_current_thread, thread_command)
14633 (thread_name_command): Use operator== instead of ptid_equal.
14635 2017-04-10 Pedro Alves <palves@redhat.com>
14637 * thread.c (struct current_thread_cleanup) <next>: Delete field.
14638 (current_thread_cleanup_chain): Delete.
14639 (restore_current_thread_cleanup_dtor)
14640 (make_cleanup_restore_current_thread): Remove references to
14641 current_thread_cleanup_chain.
14643 2017-04-10 Alan Hayward <alan.hayward@arm.com>
14645 * msp430-tdep.c (msp430_pseudo_register_read): Never return
14648 2017-04-10 Yao Qi <yao.qi@linaro.org>
14651 * gdbthread.h (thread_info::deletable): New method.
14652 (thread_info::incref): New method.
14653 (thread_info::decref): New method.
14654 (thread_info::refcount): Move it to private.
14655 * infrun.c (save_stop_context): Call inc_refcount.
14656 (release_stop_context_cleanup): Likewise.
14657 * thread.c (set_thread_exited): New function.
14658 (init_thread_list): Delete "tp" only it is deletable, otherwise
14659 call set_thread_exited.
14660 (delete_thread_1): Call set_thread_exited.
14661 (current_thread_cleanup) <inferior_pid>: Remove.
14662 <thread>: New field.
14663 (restore_current_thread_ptid_changed): Removed.
14664 (do_restore_current_thread_cleanup): Adjust.
14665 (restore_current_thread_cleanup_dtor): Don't call
14667 (set_thread_refcount): Use dec_refcount.
14668 (make_cleanup_restore_current_thread): Adjust.
14669 (thread_apply_all_command): Call inc_refcount.
14670 (_initialize_thread): Don't call
14671 observer_attach_thread_ptid_changed.
14673 2017-04-10 Yao Qi <yao.qi@linaro.org>
14675 * thread.c (delete_thread_1): Hoist code on marking thread as
14678 2017-04-09 Simon Marchi <simon.marchi@polymtl.ca>
14680 * windows-nat.c (windows_detach): Initialize ptid with
14683 2017-04-07 Simon Marchi <simon.marchi@ericsson.com>
14685 * unittests/ptid-selftests.c: Fix erroneous assert messages.
14687 2017-04-07 Alan Hayward <alan.hayward@arm.com>
14689 * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
14690 (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE.
14691 (bfin_pseudo_register_write): Likewise
14693 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
14695 * common/ptid.h (struct ptid): Change to...
14696 (class ptid_t): ... this.
14697 <ptid_t>: New constructors.
14698 <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=,
14699 matches>: New methods.
14700 <make_null, make_minus_one>: New static methods.
14701 <pid>: Rename to...
14703 <lwp>: Rename to...
14705 <tid>: Rename to...
14707 (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
14708 ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments
14709 as references, move comment to class ptid_t.
14710 * common/ptid.c (null_ptid, minus_one_ptid): Initialize with
14711 ptid_t static methods.
14712 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid,
14713 ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match):
14714 Take ptid arguments as references, implement using ptid_t methods.
14715 * unittests/ptid-selftests.c: New file.
14716 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14717 unittests/ptid-selftests.c.
14718 (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o.
14720 2017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
14722 * python/python.c (python_run_simple_file): Cast mode literal to
14723 non-const char pointer as expected by PyFile_FromString.
14725 2017-04-05 Simon Marchi <simon.marchi@ericsson.com>
14727 * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with
14728 minus_one_ptid and null_ptid.
14730 2017-04-05 Pedro Alves <palves@redhat.com>
14732 * warning.m4 (build_warnings): Remove -Wno-write-strings.
14733 * configure: Regenerate.
14735 2017-04-05 Pedro Alves <palves@redhat.com>
14737 * ada-exp.y (yyerror): Constify.
14738 * ada-lang.c (bound_name, get_selections)
14739 (ada_variant_discrim_type)
14740 (ada_variant_discrim_name, ada_value_struct_elt)
14741 (ada_lookup_struct_elt_type, is_unchecked_variant)
14742 (ada_which_variant_applies, standard_exc, ada_get_next_arg)
14743 (catch_ada_exception_command_split)
14744 (catch_ada_assert_command_split, catch_assert_command)
14745 (ada_op_name): Constify.
14746 * ada-lang.h (ada_yyerror, get_selections)
14747 (ada_variant_discrim_name, ada_value_struct_elt): Constify.
14748 * arc-tdep.c (arc_print_frame_cache): Constify.
14749 * arm-tdep.c (arm_skip_stub): Constify.
14750 * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref)
14751 (gen_aggregate_elt_ref): Constify.
14752 * bcache.c (print_bcache_statistics): Constify.
14753 * bcache.h (print_bcache_statistics): Constify.
14754 * break-catch-throw.c (catch_exception_command_1):
14755 * breakpoint.c (struct ep_type_description::description):
14757 (add_solib_catchpoint): Constify.
14758 (catch_fork_command_1): Add cast.
14759 (add_catch_command): Constify.
14760 * breakpoint.h (add_catch_command, add_solib_catchpoint):
14762 * bsd-uthread.c (bsd_uthread_state): Constify.
14763 * buildsym.c (patch_subfile_names): Constify.
14764 * buildsym.h (next_symbol_text_func, patch_subfile_names):
14766 * c-exp.y (yyerror): Constify.
14767 (token::oper): Constify.
14768 * c-lang.h (c_yyerror, cp_print_class_member): Constify.
14769 * c-varobj.c (cplus_describe_child): Constify.
14770 * charset.c (find_charset_names): Add cast.
14771 (find_charset_names): Constify array and add const_cast.
14772 * cli/cli-cmds.c (complete_command, cd_command): Constify.
14773 (edit_command): Constify.
14774 * cli/cli-decode.c (lookup_cmd): Constify.
14775 * cli/cli-dump.c (dump_memory_command, dump_value_command):
14777 (struct dump_context): Constify.
14778 (add_dump_command, restore_command): Constify.
14779 * cli/cli-script.c (get_command_line): Constify.
14780 * cli/cli-script.h (get_command_line): Constify.
14781 * cli/cli-utils.c (check_for_argument): Constify.
14782 * cli/cli-utils.h (check_for_argument): Constify.
14783 * coff-pe-read.c (struct read_pe_section_data): Constify.
14784 * command.h (lookup_cmd): Constify.
14785 * common/print-utils.c (decimal2str): Constify.
14786 * completer.c (gdb_print_filename): Constify.
14787 * corefile.c (set_gnutarget): Constify.
14788 * cp-name-parser.y (yyerror): Constify.
14789 * cp-valprint.c (cp_print_class_member): Constify.
14790 * cris-tdep.c (cris_register_name, crisv32_register_name):
14792 * d-exp.y (yyerror): Constify.
14793 (struct token::oper): Constify.
14794 * d-lang.h (d_yyerror): Constify.
14795 * dbxread.c (struct header_file_location::name): Constify.
14796 (add_old_header_file, add_new_header_file, last_function_name)
14797 (dbx_next_symbol_text, add_bincl_to_list)
14798 (find_corresponding_bincl_psymtab, set_namestring)
14799 (find_stab_function_addr, read_dbx_symtab, start_psymtab)
14800 (dbx_end_psymtab, read_ofile_symtab, process_one_symbol):
14801 * defs.h (command_line_input, print_address_symbolic)
14802 (deprecated_readline_begin_hook): Constify.
14803 * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name):
14805 * event-top.c (handle_line_of_input): Constify and add cast.
14806 * exceptions.c (catch_errors): Constify.
14807 * exceptions.h (catch_errors): Constify.
14808 * expprint.c (print_subexp_standard, op_string, op_name)
14809 (op_name_standard, dump_raw_expression, dump_raw_expression):
14810 * expression.h (op_name, op_string, dump_raw_expression):
14812 * f-exp.y (yyerror): Constify.
14813 (struct token::oper): Constify.
14814 (struct f77_boolean_val::name): Constify.
14815 * f-lang.c (f_word_break_characters): Constify.
14816 * f-lang.h (f_yyerror): Constify.
14817 * fork-child.c (fork_inferior): Add cast.
14818 * frv-tdep.c (struct gdbarch_tdep::register_names): Constify.
14819 (new_variant): Constify.
14820 * gdbarch.sh (pstring_ptr, pstring_list): Constify.
14821 * gdbarch.c: Regenerate.
14822 * gdbcore.h (set_gnutarget): Constify.
14823 * go-exp.y (yyerror): Constify.
14824 (token::oper): Constify.
14825 * go-lang.h (go_yyerror): Constify.
14826 * go32-nat.c (go32_sysinfo): Constify.
14827 * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify.
14828 * guile/scm-cmd.c (cmdscm_function): Constify.
14829 * guile/scm-param.c (pascm_param_value): Constify.
14830 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
14831 (h8300sx_register_name): Constify.
14832 * hppa-tdep.c (hppa32_register_name, hppa64_register_name):
14834 * ia64-tdep.c (ia64_register_names): Constify.
14835 * infcmd.c (construct_inferior_arguments): Constify.
14836 (path_command, attach_post_wait): Constify.
14837 * language.c (show_range_command, show_case_command)
14838 (unk_lang_error): Constify.
14839 * language.h (language_defn::la_error)
14840 (language_defn::la_name_of_this): Constify.
14841 * linespec.c (decode_line_2): Constify.
14842 * linux-thread-db.c (thread_db_err_str): Constify.
14843 * lm32-tdep.c (lm32_register_name): Constify.
14844 * m2-exp.y (yyerror): Constify.
14845 * m2-lang.h (m2_yyerror): Constify.
14846 * m32r-tdep.c (m32r_register_names): Constify and make static.
14847 * m68hc11-tdep.c (m68hc11_register_names): Constify.
14848 * m88k-tdep.c (m88k_register_name): Constify.
14849 * macroexp.c (appendmem): Constify.
14850 * mdebugread.c (fdr_name, add_data_symbol, parse_type)
14851 (upgrade_type, parse_external, parse_partial_symbols)
14852 (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab)
14853 (new_symbol): Constify.
14854 * memattr.c (mem_info_command): Constify.
14855 * mep-tdep.c (register_name_from_keyword): Constify.
14856 * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env):
14858 * mi/mi-cmd-stack.c (list_args_or_locals): Constify.
14859 * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify.
14860 * mi/mi-main.c (captured_mi_execute_command): Constify and add
14862 (mi_execute_async_cli_command): Constify.
14863 * mips-tdep.c (mips_register_name): Constify.
14864 * mn10300-tdep.c (register_name, mn10300_generic_register_name)
14865 (am33_register_name, am33_2_register_name)
14866 * moxie-tdep.c (moxie_register_names): Constify.
14867 * nat/linux-osdata.c (osdata_type): Constify fields.
14868 * nto-tdep.c (nto_parse_redirection): Constify.
14869 * objc-lang.c (lookup_struct_typedef, lookup_objc_class)
14870 (lookup_child_selector): Constify.
14871 (objc_methcall::name): Constify.
14872 * objc-lang.h (lookup_objc_class, lookup_child_selector)
14873 (lookup_struct_typedef): Constify.
14874 * objfiles.c (pc_in_section): Constify.
14875 * objfiles.h (pc_in_section): Constify.
14876 * p-exp.y (struct token::oper): Constify.
14877 (yyerror): Constify.
14878 * p-lang.h (pascal_yyerror): Constify.
14879 * parser-defs.h (op_name_standard): Constify.
14880 (op_print::string): Constify.
14881 (exp_descriptor::op_name): Constify.
14882 * printcmd.c (print_address_symbolic): Constify.
14883 * psymtab.c (print_partial_symbols): Constify.
14884 * python/py-breakpoint.c (stop_func): Constify.
14885 (bppy_get_expression): Constify.
14886 * python/py-cmd.c (cmdpy_completer::name): Constify.
14887 (cmdpy_function): Constify.
14888 * python/py-event.c (evpy_add_attribute)
14889 (gdbpy_initialize_event_generic): Constify.
14890 * python/py-event.h (evpy_add_attribute)
14891 (gdbpy_initialize_event_generic): Constify.
14892 * python/py-evts.c (add_new_registry): Constify.
14893 * python/py-finishbreakpoint.c (outofscope_func): Constify.
14894 * python/py-framefilter.c (get_py_iter_from_func): Constify.
14895 * python/py-inferior.c (get_buffer): Add cast.
14896 * python/py-param.c (parm_constant::name): Constify.
14897 * python/py-unwind.c (fprint_frame_id): Constify.
14898 * python/python.c (gdbpy_parameter_value): Constify.
14899 * remote-fileio.c (remote_fio_func_map): Make 'name' const.
14900 * remote.c (memory_packet_config::name): Constify.
14901 (show_packet_config_cmd, remote_write_bytes)
14902 (remote_buffer_add_string):
14903 * reverse.c (exec_reverse_once): Constify.
14904 * rs6000-tdep.c (variant::name, variant::description): Constify.
14905 * rust-exp.y (rustyyerror): Constify.
14906 * rust-lang.c (rust_op_name): Constify.
14907 * rust-lang.h (rustyyerror): Constify.
14908 * serial.h (serial_ops::name): Constify.
14909 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
14910 (sh_sh3e_register_name, sh_sh2e_register_name)
14911 (sh_sh2a_register_name, sh_sh2a_nofpu_register_name)
14912 (sh_sh_dsp_register_name, sh_sh3_dsp_register_name)
14913 (sh_sh4_register_name, sh_sh4_nofpu_register_name)
14914 (sh_sh4al_dsp_register_name): Constify.
14915 * sh64-tdep.c (sh64_register_name): Constify.
14916 * solib-darwin.c (lookup_symbol_from_bfd): Constify.
14917 * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify.
14918 * stabsread.c (patch_block_stabs, read_type_number)
14919 (ref_map::stabs, ref_add, process_reference)
14920 (symbol_reference_defined, define_symbol, define_symbol)
14921 (error_type, read_type, read_member_functions, read_cpp_abbrev)
14922 (read_one_struct_field, read_struct_fields, read_baseclasses)
14923 (read_tilde_fields, read_struct_type, read_array_type)
14924 (read_enum_type, read_sun_builtin_type, read_sun_floating_type)
14925 (read_huge_number, read_range_type, read_args, common_block_start)
14926 (find_name_end): Constify.
14927 * stabsread.h (common_block_start, define_symbol)
14928 (process_one_symbol, symbol_reference_defined, ref_add):
14929 * symfile.c (get_section_index, add_symbol_file_command):
14930 * symfile.h (get_section_index): Constify.
14931 * target-descriptions.c (tdesc_type::name): Constify.
14932 (tdesc_free_type): Add cast.
14933 * target.c (find_default_run_target):
14934 (add_deprecated_target_alias, find_default_run_target)
14935 (target_announce_detach): Constify.
14936 (do_option): Constify.
14937 * target.h (add_deprecated_target_alias): Constify.
14938 * thread.c (print_thread_info_1): Constify.
14939 * top.c (deprecated_readline_begin_hook, command_line_input):
14941 (init_main): Add casts.
14942 * top.h (handle_line_of_input): Constify.
14943 * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify.
14944 * tracepoint.c (tvariables_info_1, trace_status_mi): Constify.
14945 (tfind_command): Rename to ...
14946 (tfind_command_1): ... this and constify.
14947 (tfind_command): New function.
14948 (tfind_end_command, tfind_start_command): Adjust.
14949 (encode_source_string): Constify.
14950 * tracepoint.h (encode_source_string): Constify.
14951 * tui/tui-data.c (tui_partial_win_by_name): Constify.
14952 * tui/tui-data.h (tui_partial_win_by_name): Constify.
14953 * tui/tui-source.c (tui_set_source_content_nil): Constify.
14954 * tui/tui-source.h (tui_set_source_content_nil): Constify.
14955 * tui/tui-win.c (parse_scrolling_args): Constify.
14956 * tui/tui-windata.c (tui_erase_data_content): Constify.
14957 * tui/tui-windata.h (tui_erase_data_content): Constify.
14958 * tui/tui-winsource.c (tui_erase_source_content): Constify.
14959 * tui/tui.c (tui_enable): Add cast.
14960 * utils.c (defaulted_query): Constify.
14961 (init_page_info): Add cast.
14962 (puts_debug, subset_compare): Constify.
14963 * utils.h (subset_compare): Constify.
14964 * varobj.c (varobj_format_string): Constify.
14965 * varobj.h (varobj_format_string): Constify.
14966 * vax-tdep.c (vax_register_name): Constify.
14967 * windows-nat.c (windows_detach): Constify.
14968 * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify.
14969 * xml-support.c (gdb_xml_end_element): Constify.
14970 * xml-tdesc.c (tdesc_start_reg): Constify.
14971 * xstormy16-tdep.c (xstormy16_register_name): Constify.
14972 * xtensa-tdep.c (xtensa_find_register_by_name): Constify.
14973 * xtensa-tdep.h (xtensa_register_t::name): Constify.
14975 2017-04-05 Pedro Alves <palves@redhat.com>
14977 * proc-api.c (struct trans): Constify.
14978 (procfs_note): Constify.
14979 * proc-events.c (struct trans, syscall_table):
14980 * proc-flags.c (struct trans): Constify.
14981 * proc-utils.h (procfs_note): Constify.
14982 * proc-why.c (struct trans): Constify.
14983 * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error)
14984 (procfs_detach): Constify.
14985 * sol-thread.c (struct string_map): Constify.
14986 (td_err_string, td_state_string): Constify.
14988 2017-04-05 Pedro Alves <palves@redhat.com>
14990 * proc-api.c (procfs_filename): Don't initialize
14992 (prepare_to_trace): Assume procfs_filename is non-NULL.
14993 (_initialize_proc_api): Give procfs_filename a default value here.
14995 2017-04-05 Pedro Alves <palves@redhat.com>
14997 * break-catch-throw.c (handle_gnu_v3_exceptions): Constify
14998 'cond_string' parameter.
14999 (extract_exception_regexp): Constify 'string' parameter.
15000 (catch_exception_command_1): Constify.
15001 * breakpoint.c (init_catchpoint)
15002 (create_fork_vfork_event_catchpoint): Constify 'cond_string'
15004 (ep_parse_optional_if_clause, catch_fork_command_1)
15005 (catch_exec_command_1): Constify.
15006 * breakpoint.h (init_catchpoint): Constify 'cond_string'
15008 (ep_parse_optional_if_clause): Constify.
15009 * cli/cli-utils.c (remove_trailing_whitespace)
15010 (check_for_argument): Constify.
15011 * cli/cli-utils.h (remove_trailing_whitespace): Constify and add
15012 non-const overload.
15013 (check_for_argument): Likewise.
15015 2017-04-05 Pedro Alves <palves@redhat.com>
15017 * event-top.c (command_line_handler): Add cast to execute_command
15019 * record-btrace.c (cmd_record_btrace_bts_start)
15020 (cmd_record_btrace_pt_start, cmd_record_btrace_start)
15021 (cmd_record_btrace_start): Add cast to execute_command call.
15022 * record-full.c (record_full_goto_insn):
15023 * record.c (record_start, record_stop): Add cast to
15024 execute_command_to_string calls.
15025 (cmd_record_start): Add cast to execute_command calls.
15027 2017-04-05 Pedro Alves <palves@redhat.com>
15029 * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New
15030 static inline function.
15031 * python/py-arch.c (archpy_disassemble): Constify 'keywords'
15032 array and use gdb_PyArg_ParseTupleAndKeywords.
15033 * python/py-cmd.c (cmdpy_init): Likewise.
15034 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
15035 * python/py-inferior.c (infpy_read_memory, infpy_write_memory)
15036 (infpy_search_memory): Likewise.
15037 * python/py-objfile.c (objfpy_add_separate_debug_file)
15038 (gdbpy_lookup_objfile): Likewise.
15039 * python/py-symbol.c (gdbpy_lookup_symbol)
15040 (gdbpy_lookup_global_symbol): Likewise.
15041 * python/py-type.c (gdbpy_lookup_type): Likewise.
15042 * python/py-value.c (valpy_lazy_string, valpy_string): Likewise.
15043 * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush):
15046 2017-04-05 Pedro Alves <palves@redhat.com>
15048 * python/python-internal.h (gdb_PyGetSetDef): New type.
15049 * python/py-block.c (block_object_getset)
15050 (breakpoint_object_getset): Now a gdb_PyGetSetDef array.
15051 * python/py-event.c (event_object_getset)
15052 (finish_breakpoint_object_getset): Likewise.
15053 * python/py-inferior.c (inferior_object_getset): Likewise.
15054 * python/py-infthread.c (thread_object_getset): Likewise.
15055 * python/py-lazy-string.c (lazy_string_object_getset): Likewise.
15056 * python/py-linetable.c (linetable_entry_object_getset): Likewise.
15057 * python/py-objfile.c (objfile_getset): Likewise.
15058 * python/py-progspace.c (pspace_getset): Likewise.
15059 * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset):
15061 * python/py-record.c (recpy_record_getset): Likewise.
15062 * python/py-symbol.c (symbol_object_getset): Likewise.
15063 * python/py-symtab.c (symtab_object_getset, sal_object_getset):
15065 * python/py-type.c (type_object_getset, field_object_getset):
15067 * python/py-value.c (value_object_getset): Likewise.
15069 2017-04-05 Pedro Alves <palves@redhat.com>
15071 * python/python-internal.h (gdb_PyObject_CallMethod)
15072 (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath):
15074 (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException)
15075 (PySys_GetObject, PySys_SetPath): New macros.
15077 2017-04-05 Pedro Alves <palves@redhat.com>
15079 * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of
15080 info_osdata_command.
15081 * osdata.c (info_osdata_command): Rename to ...
15082 (info_osdata): ... this. Constify 'type' parameter, and remove
15083 the 'from_tty' parameter. Accept NULL TYPE.
15084 (info_osdata_command): New function.
15085 * osdata.h (info_osdata_command): Remove declaration.
15086 (info_osdata): New declaration.
15088 2017-04-05 Pedro Alves <palves@redhat.com>
15090 * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert)
15091 (mi_cmd_dprintf_insert, mi_cmd_break_passcount)
15092 (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command'
15094 * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception)
15095 (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter.
15096 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command'
15098 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path)
15099 (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show)
15100 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
15101 (mi_cmd_file_list_exec_source_files)
15102 (mi_cmd_file_list_shared_libraries): Constify 'command' parameter.
15103 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
15104 (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command'
15106 * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters)
15107 (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth)
15108 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
15109 (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame)
15110 (mi_cmd_stack_info_frame): Constify 'command' parameter.
15111 * mi/mi-cmd-target.c (mi_cmd_target_file_get)
15112 (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify
15113 'command' parameter.
15114 * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete)
15115 (mi_cmd_var_set_format, mi_cmd_var_set_visualizer)
15116 (mi_cmd_var_set_frozen, mi_cmd_var_show_format)
15117 (mi_cmd_var_info_num_children, mi_cmd_var_list_children)
15118 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
15119 (mi_cmd_var_info_expression, mi_cmd_var_show_attributes)
15120 (mi_cmd_var_evaluate_expression, mi_cmd_var_assign)
15121 (mi_cmd_var_update, mi_cmd_enable_pretty_printing)
15122 (mi_cmd_var_set_update_range): Constify 'command' parameter.
15123 * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter.
15124 * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command'
15126 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next)
15127 (mi_cmd_exec_next_instruction, mi_cmd_exec_step)
15128 (mi_cmd_exec_step_instruction, mi_cmd_exec_finish)
15129 (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue)
15130 (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach)
15131 (mi_cmd_target_flash_erase, mi_cmd_thread_select)
15132 (mi_cmd_thread_list_ids, mi_cmd_thread_info)
15133 (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names)
15134 (mi_cmd_data_list_changed_registers)
15135 (mi_cmd_data_write_register_values)
15136 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
15137 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory)
15138 (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings)
15139 (mi_cmd_list_features, mi_cmd_list_target_features)
15140 (mi_cmd_add_inferior, mi_cmd_remove_inferior)
15141 (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables)
15142 (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start)
15143 (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info)
15144 (mi_cmd_trace_frame_collected): Constify 'command'
15146 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify
15147 'command' parameter.
15149 2017-04-05 Pedro Alves <palves@redhat.com>
15151 * ada-lang.c (ada_completer_word_break_characters): Now a const
15153 (ada_get_gdb_completer_word_break_characters): Constify.
15154 * completer.c (gdb_completer_command_word_break_characters)
15155 (gdb_completer_file_name_break_characters)
15156 (gdb_completer_quote_characters): Now const arrays.
15157 (get_gdb_completer_quote_characters): Constify.
15158 (set_rl_completer_word_break_characters): New function.
15159 (set_gdb_completion_word_break_characters)
15160 (complete_line_internal): Use it.
15161 * completer.h (get_gdb_completer_quote_characters): Constify.
15162 (set_rl_completer_word_break_characters): Declare.
15163 * f-lang.c (f_word_break_characters): Constify.
15164 * language.c (default_word_break_characters): Constify.
15165 * language.h (language_defn::la_word_break_characters): Constify.
15166 (default_word_break_characters): Constify.
15167 * top.c (init_main): Use set_rl_completer_word_break_characters.
15169 2017-04-05 Pedro Alves <palves@redhat.com>
15171 * aix-thread.c (aix_thread_pid_to_str)
15172 (aix_thread_extra_thread_info): Constify.
15173 * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
15174 * bsd-uthread.c (bsd_uthread_extra_thread_info)
15175 (bsd_uthread_pid_to_str): Constify.
15176 * corelow.c (core_pid_to_str): Constify.
15177 * darwin-nat.c (darwin_pid_to_str): Constify.
15178 * fbsd-nat.c (fbsd_pid_to_str): Constify.
15179 * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
15181 * gnu-nat.c (gnu_pid_to_str): Constify.
15182 * go32-nat.c (go32_pid_to_str): Constify.
15183 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
15184 * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
15185 * inferior.c (inferior_pid_to_str): Constify.
15186 * linux-nat.c (linux_nat_pid_to_str): Constify.
15187 * linux-tdep.c (linux_core_pid_to_str): Constify.
15188 * linux-thread-db.c (thread_db_pid_to_str)
15189 (thread_db_extra_thread_info): Constify.
15190 * nto-tdep.c (nto_extra_thread_info): Constify.
15191 * nto-tdep.h (nto_extra_thread_info): Constify.
15192 * obsd-nat.c (obsd_pid_to_str): Constify.
15193 * procfs.c (procfs_pid_to_str): Constify.
15194 * ravenscar-thread.c (ravenscar_extra_thread_info)
15195 (ravenscar_pid_to_str): Constify.
15196 * remote-sim.c (gdbsim_pid_to_str): Constify.
15197 * remote.c (remote_threads_extra_info, remote_pid_to_str):
15199 * sol-thread.c (solaris_pid_to_str): Constify.
15200 * sol2-tdep.c (sol2_core_pid_to_str): Constify.
15201 * sol2-tdep.h (sol2_core_pid_to_str): Constify.
15202 * target.c (default_pid_to_str, target_pid_to_str)
15203 (normal_pid_to_str, default_pid_to_str): Constify.
15204 * target.h (target_ops::to_pid_to_str)
15205 (target_ops::to_extra_thread_info): Constify.
15206 (target_pid_to_str, normal_pid_to_str): Constify.
15207 * windows-nat.c (windows_pid_to_str): Constify.
15208 * gdbarch.sh (core_pid_to_str): Constify.
15209 * target-delegates.c: Regenerate.
15210 * gdbarch.h, gdbarch.c: Regenerate.
15212 2017-04-05 Pedro Alves <palves@redhat.com>
15214 * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
15215 the memory of the temporary warning_pre_print override.
15216 * utils.c (warning_pre_print): Constify.
15217 * utils.h (warning_pre_print): Constify.
15219 2017-04-05 Pedro Alves <palves@redhat.com>
15221 * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
15222 (shell_command): New function.
15223 (make_command): Use std::string.
15224 (init_cli_cmds): Register shell_command instead of shell_escape.
15226 2017-04-05 Pedro Alves <palves@redhat.com>
15228 * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
15229 * tracepoint.c (default_collect): Don't initialize.
15231 2017-04-05 Pedro Alves <palves@redhat.com>
15233 * macroexp.c (macro_buffer::shared): Now a bool.
15234 (init_buffer): Update.
15235 (init_shared_buffer): Constify 'addr' parameter.
15236 (substitute_args, expand, macro_expand, macro_expand_next): Remove
15239 2017-04-05 Pedro Alves <palves@redhat.com>
15241 * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
15242 * disasm.c (set_disassembler_options): Constify local.
15243 * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
15245 2017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
15248 * tracefile.c (tsave_command): Fix argument parsing for '-r'
15251 2017-04-05 Yao Qi <yao.qi@linaro.org>
15253 * frame.c (frame_unwind_register_unsigned): Call
15254 frame_unwind_register_value.
15256 2017-04-05 Yao Qi <yao.qi@linaro.org>
15258 * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
15259 Use gdb_test_multiple, and don't match anchor.
15261 2017-04-05 Pedro Alves <palves@redhat.com>
15263 * MAINTAINERS (Global Maintainers): Add Simon Marchi.
15264 (Write After Approval): Remove Simon Marchi.
15266 2017-04-05 Pedro Alves <palves@redhat.com>
15268 * common/gdb_optional.h (optional::optional): Make constexpr and
15269 initialize m_dummy.
15271 2017-04-04 John Baldwin <jhb@FreeBSD.org>
15273 * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
15274 (amd64fbsd_jmp_buf_reg_offset): Remove.
15275 (amd64fbsd_supply_uthread): Remove function.
15276 (amd64fbsd_collect_uthread): Remove function.
15277 (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
15278 * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
15279 (x86_64-*-freebsd*): Remove bsd-uthread.o.
15280 (fbsd-nat.c): Update comment.
15281 * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
15282 (i386fbsd_jmp_buf_reg_offset): Remove.
15283 (i386fbsd_supply_uthread): Remove function.
15284 (i386fbsd_collect_uthread): Remove function.
15285 (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
15287 2017-04-04 John Baldwin <jhb@FreeBSD.org>
15289 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
15290 (ALLDEPFILES): Remove alpha-fbsd-tdep.c
15291 * NEWS: Mention that support for FreeBSD/alpha was removed.
15292 * alpha-fbsd-tdep.c: Delete file.
15293 * config/alpha/fbsd.mh: Delete file.
15294 * configure.host: Delete alpha*-*-freebsd* and
15295 alpha*-*-kfreebsd*-gnu.
15296 * configure.tgt: Delete alpha*-*-freebsd* and
15297 alpha*-*-kfreebsd*-gnu.
15299 2017-04-04 John Baldwin <jhb@FreeBSD.org>
15301 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
15302 amd64bsd_store_inferior_registers): Use ptid from regcache.
15304 2017-04-04 Pedro Alves <palves@redhat.com>
15306 * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
15307 data fields, make them private and add "m_" prefixes.
15308 (lnp_state_machine::lnp_state_machine): New ctor.
15309 (record_line, check_line_address, handle_set_discriminator)
15310 (handle_set_address, handle_advance_pc, handle_special_opcode)
15311 (handle_advance_line, handle_set_file, handle_negate_stmt)
15312 (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
15313 (end_sequence, advance_line): New methods.
15314 (m_gdbarch, m_record_lines_p): New fields.
15315 (lnp_reader_state): Delete.
15316 (dwarf_record_line): Rename to ...
15317 (lnp_state_machine::record_line): ... adjust.
15318 (init_lnp_state_machine): Delete.
15319 (lnp_state_machine::lnp_state_machine): New.
15320 (check_line_address): Rename to ...
15321 (lnp_state_machine::check_line_address): This.
15322 (dwarf_decode_lines_1): Remove reference to "reader_state".
15323 Adjust lnp_state_machine having a non-default ctor. Use bool.
15324 State machine internal state manipulation moved to
15325 lnp_state_machine methods.
15327 2017-04-04 Pedro Alves <palves@redhat.com>
15329 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
15330 unittests/offset-type-selftests.c.
15331 (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
15332 * common/offset-type.h: New file.
15333 * common/preprocessor.h: New file.
15334 * common/traits.h: New file.
15335 * common/valid-expr.h: New file.
15336 * dwarf2expr.c: Include "common/underlying.h". Adjust to use
15337 sect_offset and cu_offset strong typedefs throughout.
15338 * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
15339 typedefs throughout.
15340 * dwarf2loc.c: Include "common/underlying.h". Adjust to use
15341 sect_offset and cu_offset strong typedefs throughout.
15342 * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
15343 typedefs throughout.
15344 * gdbtypes.h: Include "common/offset-type.h".
15345 (cu_offset): Now an offset type (strong typedef) instead of a
15347 (sect_offset): Likewise.
15348 (union call_site_parameter_u): Rename "param_offset" field to
15350 * unittests/offset-type-selftests.c: New file.
15352 2017-04-04 Pedro Alves <palves@redhat.com>
15354 * common/underlying.h: New file.
15355 * dwarf2read.c: Include "common/gdb_optional.h" and
15356 "common/underlying.h".
15357 (dir_index, file_name_index): New types.
15358 (file_entry): Use them.
15359 (file_entry::include): Use to_underlying.
15360 (line_header::add_file_name): Use dir_index.
15361 (read_formatted_entries): Use gdb::optional. Read form before
15362 writting to file_entry.
15363 (dwarf_decode_line_header): Use dir_index.
15364 (lnp_state_machine::current_file): Use to_underlying.
15365 (lnp_state_machine::file): Change type to file_name_index.
15366 (dwarf_record_line): Use to_underlying.
15367 (init_lnp_state_machine): Use file_name_index.
15368 (dwarf_decode_lines_1): Use dir_index and file_name_index.
15370 2017-04-04 Pedro Alves <palves@redhat.com>
15372 * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
15373 operator bool, has_value and get methods.
15375 2017-04-04 Pedro Alves <palves@redhat.com>
15377 * dwarf2read.c (struct file_entry): Add ctors, and initialize all
15379 (line_header): Initialize all data fields. Change type of
15380 standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
15381 Change type of include_dirs to std::vector<const char *>. Remove
15382 num_include_dirs, include_dirs_size. Change type of file_names to
15383 std::vector<file_entry>. Remove num_file_names, file_names_size.
15384 (line_header::line_header): New.
15385 (line_header::add_include_dir, line_header::add_file_name): New
15387 (line_header::include_dir_at): Remove NULL check.
15388 (line_header::file_name_at): Add const overload.
15389 (line_header_up): New unique_ptr typedef.
15390 (dw2_get_file_names_reader): Use line_header_up. Adjust to use
15391 std::vector. Remove free_line_header call.
15392 (dwarf2_build_include_psymtabs): Use line_header_up. Remove
15393 free_line_header call.
15394 (free_cu_line_header): Delete.
15395 (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
15396 (setup_type_unit_groups): Use line_header_up instead of cleanups.
15397 Adjust to use std::vector.
15398 (free_line_header): Delete.
15399 (free_line_header_voidp): Use delete.
15400 (add_include_dir): Replace with ...
15401 (line_header::add_include_dir): ... this method. Use std::vector.
15402 (add_file_name): Replace with ...
15403 (line_header::add_file_name): ... this method. Use std::vector.
15404 (add_include_dir_stub): Delete.
15405 (read_formatted_entries): Remove memset.
15406 (dwarf_decode_line_header): Return a line_header_up instead of a
15407 raw pointer. Remove cleanup handling. Pass lambdas to
15408 read_formatted_entries. Adjust to use line_header methods.
15409 (dwarf_decode_lines_1): Adjust to use line_header methods.
15410 (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
15413 2017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
15415 * remote.c (set_general_thread, set_continue_thread): Use ptid_t
15416 instead of struct ptid.
15418 2017-05-04 Alan Hayward <alan.hayward@arm.com>
15420 * frame.c (get_frame_register_bytes): Unwind using value.
15421 (put_frame_register_bytes): Likewise.
15423 2017-03-30 Iain Buclaw <ibuclaw@gdcproject.org>
15425 * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
15428 2017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
15430 * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
15432 2017-03-29 Yao Qi <yao.qi@linaro.org>
15434 * gdbthread.h (struct thread_info): Declare constructor and
15435 destructor. Add some in-class member initializers.
15436 * thread.c (free_thread): Remove.
15437 (init_thread_list): Call delete instead of free_thread.
15438 (new_thread): Call thread_info constructor.
15439 (thread_info::thread_info): New function.
15440 (thread_info::~thread_info): New function.
15441 (delete_thread_1): Call delete instead of free_thread.
15442 (make_cleanup_restore_current_thread): Move tp and frame to
15445 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
15447 * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
15448 (arc_skip_prologue): Likewise.
15449 (arc_make_frame_cache): Likewise.
15450 (arc_pv_get_operand): New function.
15451 (arc_is_in_prologue): Likewise.
15452 (arc_analyze_prologue): Likewise.
15453 (arc_print_frame_cache): Likewise.
15454 (MAX_PROLOGUE_LENGTH): New constant.
15456 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
15458 * configure.tgt: Add arc-insn.o.
15459 * arc-tdep.c (arc_delayed_print_insn): Make non-static.
15460 (dump_arc_instruction_command): New function.
15461 (arc_fprintf_disasm): Likewise.
15462 (arc_disassemble_info): Likewise.
15463 (arc_insn_get_operand_value): Likewise.
15464 (arc_insn_get_operand_value_signed): Likewise.
15465 (arc_insn_get_memory_base_reg): Likewise.
15466 (arc_insn_get_memory_offset): Likewise.
15467 (arc_insn_get_branch_target): Likewise.
15468 (arc_insn_dump): Likewise.
15469 (arc_insn_get_linear_next_pc): Likewise.
15470 * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
15471 (arc_disassemble_info): Likewise.
15472 (arc_insn_get_branch_target): Likewise.
15473 (arc_insn_get_linear_next_pc): Likewise.
15474 * NEWS: Mention new "maint print arc arc-instruction".
15476 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
15478 * arc-tdep (maintenance_print_arc_list): New variable.
15479 (maintenance_print_arc_command): New function.
15481 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
15483 * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
15484 Add "limm" and "reserved".
15485 (arc_cannot_fetch_register, arc_cannot_store_register): Add
15486 ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
15487 * arc-tdep.h (arc_regnum): Likewise.
15489 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
15491 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
15492 for THREADPTR register.
15493 (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
15495 * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
15496 (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
15497 * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
15499 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
15501 * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
15502 registers above gdbarch_num_regs (gdbarch) as privileged in
15505 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
15507 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
15508 for a single specified register or for all registers in
15509 a0_base..a0_base + C0_NREGS range.
15510 (supply_gregset_reg): Call regcache_raw_supply for a single
15511 specified register or for all registers in a0_base..a0_base +
15514 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
15516 * arch/xtensa.h (C0_NREGS): Add definition.
15517 * xtensa-tdep.c (C0_NREGS): Remove definition.
15519 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
15521 * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
15522 Drop xtensa_default_isa initialization.
15523 (xtensa_gdbarch_init): Initialize xtensa_default_isa.
15525 2017-03-27 Pedro Alves <palves@redhat.com>
15527 * dwarf2read.c (file_entry) <dir_index>: Add comment.
15528 (file_entry::include_dir): New method.
15529 (line_header::include_dir_at, line_header::file_name_at): New
15531 (setup_type_unit_groups, setup_type_unit_groups)
15532 (psymtab_include_file_name): Simplify using the new methods.
15533 (lnp_state_machine) <the_line_header>: New field.
15534 <file>: Add comment.
15535 (lnp_state_machine::current_file): New method.
15536 (dwarf_record_line): Simplify using the new methods.
15537 (init_lnp_state_machine): Initialize the "the_line_header" field.
15538 (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
15539 Simplify using the new methods.
15541 2017-03-27 Pedro Alves <palves@redhat.com>
15543 * cp-name-parser.y (make_empty): Delete.
15544 (demangler_special, nested_name, ptr_operator, array_indicator)
15545 (direct_declarator, declarator_1): Use fill_comp instead of
15548 2017-03-27 Pedro Alves <palves@redhat.com>
15550 * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
15551 to ATTRIBUTE_PRINTF.
15552 * solib-target.c (library_list_start_list): Print "string" not
15554 * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
15555 gdb_xml_error call.
15557 2017-03-27 Pedro Alves <palves@redhat.com>
15559 * dwarf2read.c (struct file_and_directory): New.
15560 (dwarf2_get_dwz_file): Adjust to use std::string.
15561 (dw2_get_file_names_reader): Adjust to use file_and_directory.
15562 (find_file_and_directory): Adjust to return a file_and_directory
15564 (read_file_scope): Adjust to use file_and_directory. Remove
15565 make_cleanup/do_cleanups calls.
15566 (open_and_init_dwp_file): Adjust to use std::string. Remove
15567 make_cleanup/do_cleanups calls.
15568 * python/python.c (do_start_initialization): Adjust to ldirname
15569 returning a std::string.
15570 * utils.c (ldirname): Now returns a std::string.
15571 * utils.h (ldirname): Change return type to std::string.
15572 * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
15573 returning a std::string.
15574 * xml-tdesc.c (file_read_description_xml): Likewise.
15576 2017-03-24 Alan Hayward <alan.hayward@arm.com>
15578 * regcache.c (regcache_debug_print_register): New function.
15579 * regcache.h (regcache_debug_print_register): New declaration.
15580 * target.c (debug_print_register): Remove.
15581 (target_fetch_registers): Call regcache_debug_print_register.
15582 (target_store_registers): Likewise.
15584 2017-03-24 Pádraig Brady <pbrady@fb.com>
15586 * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
15587 reference beyond the 'lh->include_dirs' array before accessing to
15589 (psymtab_include_file_name): Likewise.
15590 (dwarf_decode_lines_1): Likewise.
15591 (dwarf_decode_lines): Likewise.
15592 (file_file_name): Likewise.
15594 2017-03-23 Simon Marchi <simon.marchi@ericsson.com>
15596 * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
15598 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
15599 ps_lsetfpregs): Likewise.
15600 * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
15601 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
15602 ps_lsetfpregs): Likewise.
15603 * target.c (target_fetch_registers, target_store_registers):
15606 2017-03-23 Alan Hayward <alan.hayward@arm.com>
15608 * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
15610 2017-03-23 Yao Qi <yao.qi@linaro.org>
15612 * aarch64-tdep.c (aarch64_process_record_test): Declare.
15613 (_initialize_aarch64_tdep): Register it.
15614 (aarch64_record_load_store): Handle PRFM instruction.
15615 (aarch64_process_record_test): New function.
15617 2017-03-23 Yao Qi <yao.qi@linaro.org>
15619 * aarch64-tdep.c (aarch64_record_load_store): Fix code
15622 2017-03-23 Yao Qi <yao.qi@linaro.org>
15624 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
15626 2017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
15628 python/python.c (do_start_initialization): Fix memory leak.
15630 2017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
15632 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
15633 using get_ptrace_pid.
15634 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
15636 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
15637 inferior_ptid instead of pid.
15639 2017-03-22 Yao Qi <yao.qi@linaro.org>
15641 * aarch64-tdep.c: Wrap locally used classes in anonymous
15643 * arm-tdep.c: Likewise.
15644 * linespec.c: Likewise.
15645 * ui-out.c: Likewise.
15647 2017-03-22 Jonah Graham <jonah@kichwacoders.com>
15650 * python/lib/gdb/printer/bound_registers.py: Import sys.
15652 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
15654 * windows-nat.c (do_windows_fetch_inferior_registers): Add
15655 windows_thread_info parameter and use it instead of
15657 (windows_fetch_inferior_registers): Don't set current_thread,
15658 pass the thread to do_windows_fetch_inferior_registers. Use
15659 ptid from regcache instead of inferior_ptid.
15660 (do_windows_store_inferior_registers): Add windows_thread_info
15661 parameter and use it instead of current_thread.
15662 (windows_store_inferior_registers): Don't set current_thread,
15663 pass the thread to do_windows_store_inferior_registers. Use
15664 ptid from regcache instead of inferior_ptid.
15666 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
15668 * ser-mingw.c (ser_windows_raw): Remove reference to
15669 struct serial::current_timeout.
15671 2017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
15674 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
15675 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
15676 (sparc64_fsr_type): Fix %fsr decoding.
15678 2017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
15680 * python/py-record-btrace.c (btpy_insn_data): Change return type
15683 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
15685 * spu-linux-nat.c (spu_fetch_inferior_registers,
15686 spu_store_inferior_registers): Use ptid from regcache, set and
15687 restore inferior_ptid.
15688 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
15691 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
15693 * i386-linux-nat.c (fetch_register, store_register,
15694 i386_linux_fetch_inferior_registers,
15695 i386_linux_store_inferior_registers): Use ptid from regcache.
15696 * ia64-linux-nat.c (ia64_linux_fetch_register,
15697 ia64_linux_store_register): Likewise.
15698 * inf-ptrace.c (inf_ptrace_fetch_register,
15699 inf_ptrace_store_register): Likewise.
15700 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
15701 m32r_linux_store_inferior_registers): Likewise.
15702 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
15703 m68kbsd_store_inferior_registers): Likewise.
15704 * m68k-linux-nat.c (fetch_register, store_register,
15705 m68k_linux_fetch_inferior_registers,
15706 m68k_linux_store_inferior_registers): Likewise.
15707 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
15708 m88kbsd_store_inferior_registers): Likewise.
15709 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
15710 mips_fbsd_store_inferior_registers): Likewise.
15711 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
15712 mips64_linux_regsets_store_registers): Likewise.
15713 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
15714 mipsnbsd_store_inferior_registers): Likewise.
15715 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
15716 mips64obsd_store_inferior_registers): Likewise.
15717 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
15719 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
15720 ppcfbsd_store_inferior_registers): Likewise.
15721 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
15722 ppc_linux_store_inferior_registers): Likewise.
15723 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
15724 ppcnbsd_store_inferior_registers): Likewise.
15725 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
15726 ppcobsd_store_registers): Likewise.
15727 * procfs.c (procfs_fetch_registers, procfs_store_registers):
15729 * ravenscar-thread.c (ravenscar_fetch_registers,
15730 ravenscar_store_registers, ravenscar_prepare_to_store):
15732 * record-btrace.c (record_btrace_fetch_registers,
15733 record_btrace_store_registers, record_btrace_prepare_to_store):
15735 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
15736 Lookup inferior using ptid from regcache, instead of
15738 * remote.c (remote_fetch_registers, remote_store_registers): Use
15739 ptid from regcache.
15740 * rs6000-nat.c (fetch_register, store_register): Likewise.
15741 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
15742 s390_linux_store_inferior_registers): Likewise.
15743 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
15744 shnbsd_store_inferior_registers): Likewise.
15745 * sol-thread.c (sol_thread_fetch_registers,
15746 sol_thread_store_registers): Likewise.
15747 * sparc-nat.c (sparc_fetch_inferior_registers,
15748 sparc_store_inferior_registers): Likewise.
15749 * tilegx-linux-nat.c (fetch_inferior_registers,
15750 store_inferior_registers): Likewise.
15751 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
15752 vaxbsd_store_inferior_registers): Likewise.
15753 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
15754 store_xtregs): Likewise.
15756 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15759 * NEWS: Mention support for rvalue references in GDB and python.
15760 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
15761 supports both lvalue and rvalue references.
15763 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15766 * gdbtypes.c (rank_one_type): Implement overloading
15767 resolution rules regarding rvalue references.
15769 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15772 * aarch64-tdep.c (aarch64_type_align)
15773 (aarch64_extract_return_value, aarch64_store_return_value): Change
15774 lvalue reference type checks to general reference type checks.
15775 * amd64-tdep.c (amd64_classify): Likewise.
15776 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
15778 * arm-tdep.c (arm_type_align, arm_extract_return_value)
15779 (arm_store_return_value): Likewise.
15780 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
15781 * c-typeprint.c (c_print_type): Likewise.
15782 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
15783 (cplus_number_of_children, cplus_describe_child): Likewise.
15784 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
15785 * completer.c (expression_completer): Likewise.
15786 * cp-support.c (make_symbol_overload_list_adl_namespace):
15788 * darwin-nat-info.c (info_mach_region_command): Likewise.
15789 * dwarf2loc.c (entry_data_value_coerce_ref)
15790 (value_of_dwarf_reg_entry): Likewise.
15791 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
15792 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
15794 * findvar.c (extract_typed_address, store_typed_address):
15796 * gdbtypes.c (rank_one_type): Likewise.
15797 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
15798 * infcall.c (value_arg_coerce): Likewise.
15799 * language.c (pointer_type): Likewise.
15800 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
15802 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
15803 * mn10300-tdep.c (mn10300_type_align): Likewise.
15804 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
15805 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
15806 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
15808 * printcmd.c (print_formatted, x_command): Likewise.
15809 * python/py-type.c (typy_get_composite, typy_template_argument):
15811 * python/py-value.c (valpy_referenced_value)
15812 (valpy_get_dynamic_type, value_has_field): Likewise.
15813 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
15814 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
15815 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
15816 * spu-tdep.c (spu_scalar_value_p): Likewise.
15817 * symtab.c (lookup_symbol_aux): Likewise.
15818 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
15819 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
15821 * valops.c (value_cast_pointers, value_cast)
15822 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
15823 (value_struct_elt, value_struct_elt_bitpos)
15824 (value_find_oload_method_list, find_overload_match)
15825 (value_rtti_indirect_type): Likewise.
15826 * valprint.c (val_print_scalar_type_p, generic_val_print):
15828 * value.c (value_actual_type, value_as_address, unpack_long)
15829 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
15830 (coerce_ref): Likewise.
15831 * varobj.c (varobj_get_value_type): Likewise.
15833 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15836 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
15837 table of constants.
15838 * python/lib/gdb/command/explore.py: Support exploring values
15839 of rvalue reference types.
15840 * python/lib/gdb/types.py: Implement get_basic_type() for
15841 rvalue reference types.
15842 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
15844 * python/py-value.c (valpy_getitem): Add an rvalue reference
15846 (valpy_reference_value): Add new parameter "refcode".
15847 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
15848 New wrappers for valpy_reference_value().
15849 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
15850 (gdbpy_invoke_xmethod): Likewise.
15852 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15855 * dwarf2read.c (process_die, read_type_die_1): Handle the
15856 DW_TAG_rvalue_reference_type DIE.
15857 (read_tag_reference_type): Add new parameter "refcode".
15859 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15862 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
15863 (c_type_print_modifier, c_type_print_varspec_suffix)
15864 (c_type_print_base): Support printing rvalue reference types.
15865 * c-valprint.c (c_val_print, c_value_print): Support printing
15866 rvalue reference values.
15868 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15871 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
15873 * cp-support.c (replace_typedefs): Handle
15874 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
15875 * python/py-type.c (typy_lookup_type): Likewise.
15877 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15880 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
15881 * parse.c (insert_type): Change assert statement.
15882 (follow_types): Handle rvalue reference types.
15883 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
15886 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15889 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
15890 value_ref() interface.
15891 * c-valprint.c (c_value_print): Likewise.
15892 * infcall.c (value_arg_coerce): Likewise.
15893 * python/py-value.c (valpy_reference_value): Likewise.
15894 * valops.c (value_cast, value_reinterpret_cast)
15895 (value_dynamic_cast, typecmp): Likewise.
15896 (value_ref): Parameterize by kind of return value reference type.
15897 * value.h (value_ref): Add new parameter "refcode".
15899 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15902 * dwarf2read.c (read_tag_reference_type): Use
15903 lookup_lvalue_reference_type() instead of lookup_reference_type().
15904 * eval.c (evaluate_subexp_standard): Likewise.
15905 * f-exp.y: Likewise.
15906 * gdbtypes.c (make_reference_type, lookup_reference_type):
15907 Generalize with rvalue reference types.
15908 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
15909 convenience wrappers for lookup_reference_type().
15910 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
15911 reference kind parameter.
15912 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
15913 wrappers for lookup_reference_type().
15914 * guile/scm-type.c (gdbscm_type_reference): Use
15915 lookup_lvalue_reference_type() instead of lookup_reference_type().
15916 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
15917 * parse.c (follow_types): Likewise.
15918 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
15919 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
15921 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
15922 (gdbpy_invoke_xmethod): Likewise.
15923 * stabsread.c: Provide extra argument to make_reference_type()
15925 * valops.c (value_ref, value_rtti_indirect_type): Use
15926 lookup_lvalue_reference_type() instead of lookup_reference_type().
15928 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15931 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
15932 (TYPE_IS_REFERENCE): New macro.
15933 (struct type): Add rvalue_reference_type field.
15934 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
15936 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
15938 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
15939 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
15940 New function definition.
15941 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
15942 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
15943 New function declaration.
15944 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
15945 * mi/mi-interp.h: New file.
15946 * solib.c (info_sharedlibrary_command): Replace for loop with
15948 * solib.h (update_solib_list): New function declaration.
15949 (so_list_head): Move macro.
15950 * solist.h (ALL_SO_LIBS): New macro.
15952 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
15954 * infcmd.c (post_create_inferior): Remove unused argument in
15956 * remote.c (remote_start_remote): Likewise.
15957 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
15958 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
15959 (enable_break): Likewise.
15960 * solib.c (update_solib_list): Remove unused target argument
15961 and its documentation.
15962 (solib_add): Remove unused target argument. Remove unused
15963 argument in call to update_solib_list.
15964 (info_sharedlibrary_command): Remove unused argument in call
15965 to update_solib_list.
15966 (sharedlibrary_command): Remove unused argument in call to
15968 (handle_solib_event): Likewise.
15969 (reload_shared_libraries): Likewise.
15970 * solib.h (solib_add): Remove unused target argument.
15972 2017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
15974 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
15975 (s390_displaced_step_fixup): Cover relative branches with the
15976 default fixup handling. This fixes lack of support for some
15977 relative branch instructions.
15979 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15981 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
15982 ptid from regcache.
15984 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15986 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
15987 i386_darwin_store_inferior_registers): Use ptid from regcache.
15989 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15991 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
15992 i386bsd_store_inferior_registers): Use ptid from regcache.
15994 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15996 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
15997 hppaobsd_store_registers): Use ptid from regcache.
15999 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
16001 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
16002 hppanbsd_store_registers): Use ptid from regcache.
16004 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
16006 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
16007 from regcache. Use get_ptrace_pid.
16009 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
16011 * corelow.c (get_core_register_section): Use ptid from regcache,
16014 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
16016 * bsd-uthread.c (bsd_uthread_fetch_registers,
16017 bsd_uthread_store_registers): Use ptid from regcache, set and
16018 restore inferior_ptid.
16020 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
16022 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
16023 fetch_fp_regs, store_register, store_regs, store_fp_register,
16024 store_fp_regs): Use ptid from regcache.
16026 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
16028 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
16029 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
16030 store_vfp_regs): Use ptid from regcache.
16032 2017-03-17 Pedro Alves <palves@redhat.com>
16035 * ser-base.c (ser_base_wait_for): Add comment.
16036 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
16038 * ser-unix.c (hardwire_raw): Remove reference to
16039 scb->current_timeout.
16040 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
16041 (hardwire_ops): Install ser_base_readchar instead of
16043 * serial.h (struct serial) <current_timeout, timeout_remaining>:
16046 2017-03-17 Jonah Graham <jonah@kichwacoders.com>
16049 * python/lib/gdb/printer/bound_registers.py: Add support for
16052 2017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
16054 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
16055 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
16056 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
16057 byte_offset to subobj_byte_offset. Fix the handling of
16058 DWARF_VALUE_STACK on big-endian targets when coming via an
16060 (dwarf2_evaluate_loc_desc): Adjust call to
16061 dwarf2_evaluate_loc_desc_full.
16062 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
16063 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
16065 2017-03-16 Yao Qi <yao.qi@linaro.org>
16067 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
16068 and REVSH instructions.
16070 2017-03-16 Yao Qi <yao.qi@linaro.org>
16072 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
16073 (arm_record_test): Declare.
16074 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
16075 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
16076 align with the manual.
16077 (thumb_record_misc): Adjust the code order to align with the
16079 (thumb2_record_decode_insn_handler): Fix instruction matching.
16080 (instruction_reader_thumb): New class.
16081 (arm_record_test): New function.
16083 2017-03-16 Yao Qi <yao.qi@linaro.org>
16085 * arm-tdep.c (abstract_memory_reader): New class.
16086 (instruction_reader): New class.
16087 (extract_arm_insn): Add argument 'reader'. Callers updated.
16088 (decode_insn): Likewise.
16090 2017-03-16 Doug Evans <dje@google.com>
16092 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
16093 member. Change type of TYPE member to SCM. All uses updated.
16094 (lsscm_make_lazy_string_smob): Add assert.
16095 (lsscm_make_lazy_string): Flag bad length values.
16096 (lsscm_elt_type): New function.
16097 (gdbscm_lazy_string_to_value): Rewrite to use
16098 lsscm_safe_lazy_string_to_value.
16099 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
16100 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
16101 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
16103 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
16104 * guile/scm-type.c (tyscm_scm_to_type): New function.
16106 2017-03-15 Doug Evans <dje@google.com>
16108 PR python/17728, python/18439, python/18779
16109 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
16110 member. Change type of TYPE member to PyObject *. All uses updated.
16111 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
16112 (gdbpy_create_lazy_string_object): Flag bad length values.
16113 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
16114 Handle typedefs in incoming type.
16115 (stpy_lazy_string_elt_type): New function.
16116 (gdbpy_extract_lazy_string): Call it.
16117 * python/py-value.c (valpy_lazy_string): Flag bad length values.
16118 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
16119 typedefs in incoming type.
16121 2017-03-16 Doug Evans <dje@google.com>
16123 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
16124 * guile/scm-type.c (tyscm_scm_to_type): New function.
16126 2017-03-16 Jiong Wang <jiong.wang@arm.com>
16128 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
16129 "ULONGEST" for "skip".
16131 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
16134 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
16135 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
16136 (inf_ptrace_peek_poke): ...here. New function. Now also loop
16137 over ptrace peek/poke until end of buffer or error.
16139 2017-03-14 Simon Marchi <simon.marchi@ericsson.com>
16141 * parse.c (length_of_subexp): Make static.
16142 * parser-defs.h (length_of_subexp): Remove.
16144 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
16146 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
16149 2017-03-14 Pedro Alves <palves@redhat.com>
16151 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
16152 (main): Use std::unique_ptr. Remove calls to
16153 cp_demangled_name_parse_free.
16155 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
16157 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
16158 alphabsd_store_inferior_registers): Use regcache->ptid instead
16161 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
16163 * aix-thread.c (aix_thread_fetch_registers,
16164 aix_thread_store_registers): Use regcache->ptid instead of
16167 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
16169 * aarch64-linux-nat.c (fetch_gregs_from_thread,
16170 store_gregs_to_thread, fetch_fpregs_from_thread,
16171 store_fpregs_to_thread): Use regcache->ptid instead of
16174 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
16176 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
16177 amd64_linux_fetch_inferior_registers): Use regcache->ptid
16178 instead of inferior_ptid.
16180 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
16182 * target.c (target_fetch_registers, target_store_registers): Add
16185 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
16187 * regcache.h (regcache_get_ptid): New function.
16188 * regcache.c (regcache_get_ptid): New function.
16190 2017-03-13 Mark Wielaard <mark@klomp.org>
16192 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
16194 2017-03-10 Keith Seitz <keiths@redhat.com>
16197 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
16199 2017-03-08 Pedro Alves <palves@redhat.com>
16202 * infrun.c (start_step_over, do_target_resume, resume)
16203 (restart_threads): Assert we're not resuming a thread that is
16204 meant to be stopped.
16205 (infrun_thread_stop_requested_callback): Delete.
16206 (infrun_thread_stop_requested): If the thread is internally
16207 stopped, queue a pending stop event and clear the thread's
16208 inline-frame state.
16209 (handle_stop_requested): New function.
16210 (handle_syscall_event, handle_inferior_event_1): Use
16211 handle_stop_requested.
16212 (handle_stop_requested): New function.
16213 (handle_signal_stop): Set the thread's stop_signal here instead of
16215 (finish_step_over): Clear step over info unconditionally.
16216 (handle_signal_stop): If the user had interrupted the event
16217 thread, consider the stop a random signal.
16218 (handle_signal_stop) <signal arrived while stepping over
16219 breakpoint>: Don't restart threads here.
16220 (stop_waiting): Don't clear step-over info here.
16222 2017-03-08 Pedro Alves <palves@redhat.com>
16225 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
16226 goes to argument 2, not 1.
16228 2017-03-08 Pedro Alves <palves@redhat.com>
16231 * top.c (gdb_readline_wrapper): Avoid passing NULL to
16232 display_gdb_prompt.
16233 (command_line_input): Add comment.
16235 2017-03-08 Pedro Alves <palves@redhat.com>
16238 * tui/tui-file.c (tui_file::write): New.
16239 * tui/tui-file.h (tui_file): Override "write".
16240 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
16241 factored out from ...
16242 (tui_puts): ... here.
16243 (tui_putc): Use them.
16244 (tui_write): New function.
16245 * tui/tui-io.h (tui_write): Declare.
16247 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
16249 * Makefile.in (SFILES): Replace "environ.c" with
16250 "common/environ.c".
16251 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
16252 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
16254 * common/environ.c: ... here.
16255 * environ.h: Moved to...
16256 * common/environ.h: ... here.
16258 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
16260 * gdbarch.sh (pstring_ptr): New static function.
16261 (gdbarch_disassembler_options): Use it.
16262 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
16263 not valid_disassembler_option->name.
16264 * gdbarch.c: Regenerate.
16266 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
16268 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
16270 2017-03-07 Pedro Alves <palves@redhat.com>
16272 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
16274 2017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
16276 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
16277 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
16278 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
16279 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
16281 2017-03-06 Simon Marchi <simon.marchi@ericsson.com>
16283 * xtensa-linux-nat.c (fetch_gregs): Remove const.
16285 2017-03-03 Simon Marchi <simon.marchi@ericsson.com>
16287 * remote.c (remote_add_target_side_commands): Use range-based
16290 2017-03-03 Yao Qi <yao.qi@linaro.org>
16293 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
16295 * valprint.c (common_val_print): Likewise.
16297 2017-02-28 Peter Bergner <bergner@vnet.ibm.com>
16299 * NEWS: Mention new set/show disassembler-options commands.
16300 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
16301 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
16302 (prospective_options): New static variable.
16303 (gdb_disassembler::gdb_disassembler): Initialize
16304 m_di.disassembler_options.
16305 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
16306 (get_disassembler_options): New function.
16307 (set_disassembler_options): Likewise.
16308 (set_disassembler_options_sfunc): Likewise.
16309 (show_disassembler_options_sfunc): Likewise.
16310 (disassembler_options_completer): Likewise.
16311 (_initialize_disasm): Likewise.
16312 * disasm.h (get_disassembler_options): New prototype.
16313 (set_disassembler_options): Likewise.
16314 * gdbarch.sh (gdbarch_disassembler_options): New variable.
16315 (gdbarch_verify_disassembler_options): Likewise.
16316 * gdbarch.c: Regenerate.
16317 * gdbarch.h: Likewise.
16318 * arm-tdep.c (num_disassembly_options): Delete.
16319 (set_disassembly_style): Likewise.
16320 (arm_disassembler_options): New static variable.
16321 (set_disassembly_style_sfunc): Convert short style name into long
16322 option name. Call set_disassembler_options.
16323 (show_disassembly_style_sfunc): New function.
16324 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
16325 set_gdbarch_verify_disassembler_options.
16326 (_initialize_arm_tdep): Delete regnames variable and update callers.
16327 (arm_disassembler_options): Initialize.
16328 (disasm_options): New variable.
16329 (num_disassembly_options): Rename from this...
16330 (num_disassembly_styles): ...to this. Compute by scanning through
16332 (valid_disassembly_styles): Initialize using disasm_options.
16333 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
16334 set_arm_regname_option.
16335 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
16336 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
16337 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
16338 set_gdbarch_verify_disassembler_options.
16339 * s390-tdep.c (s390_disassembler_options): New static variable.
16340 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
16341 set_gdbarch_verify_disassembler_options.
16343 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
16345 * remote.c (remote_add_target_side_condition): Remove "struct"
16346 keyword from range-based for loop.
16348 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
16350 * remote.c (remote_add_target_side_condition): Use range-based
16351 for loop. Update comment.
16353 2017-02-27 Yao Qi <yao.qi@linaro.org>
16355 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
16357 2017-02-26 Alan Hayward <alan.hayward@arm.com>
16359 * regcache.c (regcache_raw_update): New function.
16360 (regcache_raw_read): Move code to regcache_raw_update.
16361 * regcache.h (regcache_raw_update): New declaration.
16362 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
16364 2017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
16366 * dwarf2read.c (create_debug_type_hash_table): Initialize
16367 header.signature and header.type_offset_in_tu.
16369 2017-02-24 Pedro Alves <palves@redhat.com>
16371 * symtab.c (make_file_symbol_completion_list_1): Use
16372 add_symtab_completions.
16374 2017-02-24 Alan Hayward <alan.hayward@arm.com>
16376 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
16378 2017-02-24 Alan Hayward <alan.hayward@arm.com>
16380 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
16381 I386_MAX_REGISTER_SIZE.
16382 (i386_pseudo_register_write): Likewise.
16383 (i386_process_record): Likewise.
16384 * i387-tdep.c (i387_supply_xsave): Likewise.
16385 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
16386 (store_register): Likewise.
16388 2017-02-23 Pedro Alves <palves@redhat.com>
16390 * ada-lang.c: Include "common/function-view.h".
16391 (ada_iterate_over_symbols): Adjust to use function_view as
16393 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
16394 (ada_make_symbol_completion_list): Use a lambda.
16395 (ada_exc_search_name_matches): Delete.
16396 (name_matches_regex): New.
16397 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
16398 * compile/compile-c-support.c: Include "common/function-view.h".
16399 (print_one_macro): Change prototype to accept a ui_file pointer.
16400 (write_macro_definitions): Use a lambda.
16401 * dwarf2read.c: Include "common/function-view.h".
16402 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
16403 (dw2_expand_symtabs_matching): Adjust to use function_view as
16405 * language.h: Include "common/function-view.h".
16406 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
16407 function_view as callback type.
16408 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
16409 * linespec.c: Include "common/function-view.h".
16410 (collect_info::add_symbol): New method.
16411 (struct symbol_and_data_callback, iterate_inline_only, struct
16412 symbol_matcher_data, iterate_name_matcher): Delete.
16413 (iterate_over_all_matching_symtabs): Adjust to use function_view
16414 as callback type and lambdas.
16415 (iterate_over_file_blocks): Adjust to use function_view as
16417 (decode_compound_collector): Now a class with private fields.
16418 (decode_compound_collector::release_symbols): New method.
16419 (collect_one_symbol): Rename to...
16420 (decode_compound_collector::operator()): ... this and adjust.
16421 (lookup_prefix_sym): decode_compound_collector construction bits
16422 move to decode_compound_collector ctor. Pass the
16423 decode_compound_collector object directly as callback. Remove
16424 cleanups and use decode_compound_collector::release_symbols
16426 (symtab_collector): Now a class with private fields.
16427 (symtab_collector::release_symtabs): New method.
16428 (add_symtabs_to_list): Rename to...
16429 (symtab_collector::operator()): ... this and adjust.
16430 (collect_symtabs_from_filename): symtab_collector construction
16431 bits move to symtab_collector ctor. Pass the symtab_collector
16432 object directly as callback. Remove cleanups and use
16433 symtab_collector::release_symtabs instead.
16434 (collect_symbols): Delete.
16435 (add_matching_symbols_to_info): Use lambdas.
16436 * macrocmd.c (print_macro_callback): Delete.
16437 (info_macro_command): Use a lambda.
16438 (info_macros_command): Pass print_macro_definition as callable
16440 (print_one_macro): Remove 'ignore' parameter.
16441 (macro_list_command): Adjust.
16442 * macrotab.c (macro_for_each_data::fn): Now a function_view.
16443 (macro_for_each_data::user_data): Delete field.
16444 (foreach_macro): Adjust to call the function_view.
16445 (macro_for_each): Adjust to use function_view as callback type.
16446 (foreach_macro_in_scope): Adjust to call the function_view.
16447 (macro_for_each_in_scope): Adjust to use function_view as callback
16449 * macrotab.h: Include "common/function-view.h".
16450 (macro_callback_fn): Declare a prototype instead of a pointer.
16451 Remove "user_data" parameter.
16452 (macro_for_each, macro_for_each_in_scope): Adjust to use
16453 function_view as callback type.
16454 * psymtab.c (partial_map_expand_apply)
16455 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
16456 Adjust to use function_view as callback type and to return bool.
16457 (psym_expand_symtabs_matching): Adjust to use function_view as
16459 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
16460 to use function_view as callback type and to return bool.
16461 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
16463 * symfile.c (expand_symtabs_matching): Adjust to use function_view
16465 * symfile.h: Include "common/function-view.h".
16466 (expand_symtabs_file_matcher_ftype)
16467 (expand_symtabs_symbol_matcher_ftype)
16468 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
16470 (quick_symbol_functions::map_symtabs_matching_filename)
16471 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
16472 function_view as callback type and return bool.
16473 (expand_symtabs_matching): Adjust to use function_view as callback
16475 (maintenance_expand_name_matcher)
16476 (maintenance_expand_file_matcher): Delete.
16477 (maintenance_expand_symtabs): Use lambdas.
16478 * symtab.c (iterate_over_some_symtabs): Adjust to use
16479 function_view as callback types and return bool.
16480 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
16482 (lookup_symtab_callback): Delete.
16483 (lookup_symtab): Use a lambda.
16484 (iterate_over_symbols): Adjust to use function_view as callback
16486 (struct search_symbols_data, search_symbols_file_matches)
16487 (search_symbols_name_matches): Delete.
16488 (search_symbols): Use a pair of lambdas.
16489 (struct add_name_data, add_macro_name, symbol_completion_matcher)
16490 (symtab_expansion_callback): Delete.
16491 (default_make_symbol_completion_list_break_on_1): Use lambdas.
16492 * symtab.h: Include "common/function-view.h".
16493 (iterate_over_some_symtabs): Adjust to use function_view as
16494 callback type and return bool.
16495 (iterate_over_symtabs): Adjust to use function_view as callback
16497 (symbol_found_callback_ftype): Remove 'data' parameter and return
16499 (iterate_over_symbols): Adjust to use function_view as callback
16502 2017-02-23 Pedro Alves <palves@redhat.com>
16504 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
16505 (%.o) <unittests/%.c>: New pattern.
16506 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
16507 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
16508 * common/function-view.h: New file.
16509 * unittests/function-view-selftests.c: New file.
16510 * configure: Regenerate.
16512 2017-02-23 Simon Marchi <simon.marchi@ericsson.com>
16514 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
16516 * go32-nat.c (go32_thread_alive): Likewise.
16518 2017-02-23 Yao Qi <yao.qi@linaro.org>
16520 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
16523 2017-02-23 Yao Qi <yao.qi@linaro.org>
16525 * varobj.c (varobj_clear_saved_item): Use delete instead of
16527 (update_dynamic_varobj_children): Likewise.
16529 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
16531 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
16533 2017-02-21 Simon Marchi <simon.marchi@ericsson.com>
16535 * common/enum-flags.h (enum_flags::enum_flags): Initialize
16536 m_enum_value to 0 in default constructor.
16538 2017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
16540 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
16541 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
16542 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
16543 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
16544 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
16545 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
16546 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
16547 IS_STORE_CONDITIONAL_INSN.
16549 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
16551 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
16553 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16555 * NEWS (Changes since GDB 7.12): Add DWARF-5.
16557 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16559 * dwarf2read.c (skip_one_die, read_attribute_value)
16560 (dwarf2_const_value_attr, dump_die_shallow)
16561 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
16562 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
16564 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16566 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
16567 (dwarf_parse_macro_header): Accept DWARF version 5.
16568 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
16570 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16572 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
16574 * common/common-exceptions.h (enum errors): Likewise.
16575 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
16576 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
16577 (dwarf_expr_context::execute_stack_op): Likewise.
16578 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
16580 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
16581 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
16582 (show_entry_values_debug, call_site_to_target_addr)
16583 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
16584 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
16585 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
16586 (value_of_dwarf_block_entry, indirect_pieced_value)
16587 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
16588 (disassemble_dwarf_expression): Likewise.
16589 * dwarf2read.c (process_die, inherit_abstract_dies)
16590 (read_call_site_scope): Likewise.
16591 * gdbtypes.h (struct func_type, struct call_site_parameter)
16592 (struct call_site): Likewise.
16593 * stack.c (read_frame_arg): Likewise.
16594 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
16596 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16598 * defs.h (read_unsigned_leb128): New declaration.
16599 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
16600 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
16601 (dwarf2_find_location_expression): Call also
16602 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
16603 * dwarf2loc.h (dwarf2_version): New declaration.
16604 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
16606 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
16608 (struct dwop_section_names): Add loclists_dwo.
16609 (dwop_section_names): Add .debug_loclists.dwo.
16610 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
16611 (struct dwarf2_per_cu_data): Add dwarf_version.
16612 (struct dwo_sections): Add loclists.
16613 (struct attr_abbrev): Add implicit_const.
16614 (read_indirect_line_string): New declaration.
16615 (read_unsigned_leb128): Delete declaration.
16616 (rcuh_kind): New definition.
16617 (read_and_check_comp_unit_head): Change parameter
16618 is_debug_types_section to section_kind.
16619 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
16620 (read_comp_unit_head): Change parameter abfd to section, add parameter
16621 section_kind. Handle DWARF-5.
16622 (error_check_comp_unit_head): Accept also DWARF version 5.
16623 (read_and_check_comp_unit_head): Change parameter
16624 is_debug_types_section to section_kind.
16625 (read_and_check_type_unit_head): Delete function.
16626 (read_abbrev_offset): Handle DWARF-5.
16627 (create_debug_type_hash_table): Add parameter section_kind. Process
16628 only DW_UT_type. Use signature and type_offset_in_tu from struct
16630 (create_debug_types_hash_table): Update create_debug_type_hash_table
16632 (create_all_type_units): Call create_debug_type_hash_table.
16633 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
16634 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
16636 (skip_one_die): Handle DW_FORM_implicit_const.
16637 (dwarf2_rnglists_process): New function.
16638 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
16639 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
16640 (read_attribute_value): Handle DW_FORM_implicit_const,
16642 (read_attribute): Handle DW_FORM_implicit_const.
16643 (read_indirect_string_at_offset_from): New function from
16644 read_indirect_string_at_offset.
16645 (read_indirect_string_at_offset): Call
16646 read_indirect_string_at_offset_from.
16647 (read_indirect_line_string_at_offset): New function.
16648 (read_indirect_string): New function comment.
16649 (read_indirect_line_string): New function.
16650 (read_unsigned_leb128): Make it global.
16651 (dwarf2_string_attr): Handle DWARF-5.
16652 (add_include_dir_stub, read_formatted_entries): New functions.
16653 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
16655 (per_cu_header_read_in): Update read_comp_unit_head caller.
16656 (dwarf2_version): New function.
16657 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
16659 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
16662 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16664 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
16666 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16668 * dwarf2read.c (dwarf2_ranges_process): New function from
16669 dwarf2_ranges_read.
16670 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
16671 dwarf2_ranges_process.
16673 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16675 * dwarf2read.c (create_debug_type_hash_table): New function from
16676 create_debug_types_hash_table.
16677 (create_debug_types_hash_table): Call create_debug_type_hash_table.
16678 (create_all_type_units, open_and_init_dwo_file): Update
16679 create_debug_types_hash_table callers.
16681 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
16684 * fork-child.c (trace_start_error): Fix thinko. va_end should
16685 refer to 'ap', not 'args'.
16687 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
16688 Pedro Alves <palves@redhat.com>
16691 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
16693 * fork-child.c (trace_start_error): New function.
16694 (trace_start_error_with_name): Likewise.
16695 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
16696 * inf-ptrace.c (inf_ptrace_me): Likewise.
16697 * inferior.h (trace_start_error): New prototype.
16698 (trace_start_error_with_name): Likewise.
16700 2017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
16703 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
16704 NULL before using it.
16705 * symmisc.c (maintenance_print_symbols): Likewise.
16706 (maintenance_print_msymbols): Likewise.
16708 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16710 * NEWS: Add record Python bindings entry.
16712 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16714 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
16716 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
16717 * python/py-record-btrace.c, python/py-record-btrace.h,
16718 python/py-record-full.c, python/py-record-full.h: New file.
16719 * python/py-record.c: Add include for py-record-btrace.h and
16721 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
16722 recpy_instruction_history, recpy_function_call_history, recpy_begin,
16723 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
16724 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
16726 (gdbpy_initialize_btrace): New export.
16727 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
16729 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16731 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
16732 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
16733 * python/py-record.c: New file.
16734 * python/python-internal.h (gdbpy_start_recording,
16735 gdbpy_current_recording, gdpy_stop_recording,
16736 gdbpy_initialize_record): New export.
16737 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
16738 (python_GdbMethods): Add gdbpy_start_recording,
16739 gdbpy_current_recording and gdbpy_stop_recording.
16741 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16743 * record-btrace.c (record_btrace_record_method): New function.
16744 (init_record_btrace_ops): Initialize to_record_method.
16745 * record-full.c (record_full_record_method): New function.
16746 (init_record_full_ops, init_record_full_core_ops): Add
16747 record_full_record_method.
16748 * record.h (enum record_method): New enum.
16749 * target-debug.h (target_debug_print_enum_record_method: New define.
16750 * target-delegates.c: Regenerate.
16751 * target.c (target_record_method): New function.
16752 * target.h: Include record.h.
16753 (struct target_ops) <to_record_method>: New field.
16754 (target_record_method): New export.
16756 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16758 * record.h (record_start, record_stop): New export.
16759 * record.c (record_start, record_stop): New function.
16761 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16763 * btrace.c (btrace_fetch): Copy function call segments pointer
16765 (btrace_clear): Clear the vector.
16766 (btrace_find_insn_by_number): Use binary search to find the correct
16767 function call segment.
16768 * btrace.h (brace_fun_p): New typedef.
16769 (struct btrace_thread_info) <functions>: New field.
16771 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16773 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
16774 * btrace.c (btrace_decode_error): ... here. New function.
16775 * btrace.h (btrace_decode_error): New export.
16777 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16779 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
16780 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
16781 btrace_find_insn_by_number): Remove special case for gaps.
16782 * btrace.h (btrace_insn_get_error): New export.
16783 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
16784 * record-btrace.c (btrace_insn_history): Print number for gaps.
16785 (record_btrace_info, record_btrace_goto): Handle gaps.
16787 2017-02-14 Tom Tromey <tom@tromey.com>
16790 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
16792 * python/py-evts.c (gdbpy_initialize_py_events): Add
16793 before_prompt registry.
16794 * python/py-events.h (events_object) <before_prompt>: New field.
16796 2017-02-14 Markus Metzger <markus.t.metzger@intel.com>
16798 * btrace.c (ftrace_new_switch): Preserve up link and flags.
16800 2017-02-13 Luis Machado <lgustavo@codesourcery.com>
16802 * symfile (_initialize_symfile): Add usage text to the load command's
16805 2017-02-10 Simon Marchi <simon.marchi@ericsson.com>
16807 * utils.c (defaulted_query): Don't query on secondary UIs.
16809 2017-02-10 Tom Tromey <tom@tromey.com>
16811 * rust-lang.c (rust_get_disr_info): Remove unused variable.
16813 2017-02-10 Tom Tromey <tom@tromey.com>
16815 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
16817 * python/py-type.c (typy_legacy_template_argument): Remove
16818 unnecessary "cleanup" local.
16820 2017-02-10 Tom Tromey <tom@tromey.com>
16822 * python/python.c (do_start_initialization): New function, from
16823 _initialize_python.
16824 (_initialize_python): Call do_start_initialization.
16825 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
16828 2017-02-10 Tom Tromey <tom@tromey.com>
16830 * python/py-prettyprint.c (pretty_print_one_value): Use
16833 2017-02-10 Tom Tromey <tom@tromey.com>
16835 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
16836 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
16838 * python/py-type.c (field_new): Use gdbpy_ref.
16839 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
16841 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
16842 (py_free_pspace): Likewise.
16843 (pspace_to_pspace_object): Likewise.
16844 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
16845 (py_free_objfile): Likewise.
16846 (objfile_to_objfile_object): Likewise.
16847 * python/py-inferior.c (delete_thread_object): Use
16849 (infpy_read_memory): Likewise.
16850 (py_free_inferior): Likewise.
16851 * python/py-evtregistry.c (create_eventregistry_object): Use
16853 * python/py-event.c (create_event_object): Use gdbpy_ref.
16855 2017-02-10 Tom Tromey <tom@tromey.com>
16857 * python/py-ref.h (gdbpy_ref_policy): Now a template.
16858 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
16860 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
16861 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
16862 python/py-exitedevent.c, python/py-finishbreakpoint.c,
16863 python/py-framefilter.c, python/py-function.c,
16864 python/py-inferior.c, python/py-infevents.c,
16865 python/py-linetable.c, python/py-newobjfileevent.c,
16866 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
16867 python/py-signalevent.c, python/py-stopevent.c,
16868 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
16869 python/py-unwind.c, python/py-utils.c, python/py-value.c,
16870 python/py-varobj.c, python/py-xmethods.c, python/python.c,
16871 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
16873 2017-02-10 Tom Tromey <tom@tromey.com>
16875 * ui-out.h (ui_out_emit_type): New class.
16876 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
16877 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
16878 and ui_out_emit_tuple.
16879 (enumerate_locals): Likewise.
16880 (py_mi_print_variables, py_print_locals, py_print_args): Use
16882 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
16884 * common/gdb_optional.h: New file.
16886 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
16888 * MAINTAINERS (Write After Approval): Update my e-mail address.
16890 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
16893 * breakpoint.c (_initialize_breakpoint): Update the help description
16894 of the 'commands' command to indicate that it takes a list argument.
16896 2017-02-09 Simon Marchi <simon.marchi@ericsson.com>
16898 * interps.c (current_interp_set_logging): Remove "return".
16900 2017-02-09 Gary Benson <gbenson@redhat.com>
16902 * symtab.c (add_symtab_completions): Prevent NULL pointer
16905 2017-02-08 Pedro Alves <palves@redhat.com>
16907 * interps.c (interp::interp): Remove reference to quiet_p.
16908 (interp_set): Make static. Remove dead "Switching to" output
16910 (interp_quiet_p, interp_set_quiet): Delete.
16911 (interpreter_exec_cmd): Don't set the interpreter quiet.
16912 * interps.h (interp_quiet_p): Make static.
16913 (class interp) <quiet_p>: Remove field
16915 2017-02-08 Jerome Guitton <guitton@adacore.com>
16917 * cli/cli-decode.c (find_command_name_length): Make it extern.
16918 * cli/cli-decode.h (find_command_name_length): Declare.
16919 * cli/cli-script.c (command_name_equals, line_first_arg):
16921 (process_next_line): Use cli-decode to parse command names.
16922 (build_command_line): Make args a constant pointer.
16924 2017-02-08 Jerome Guitton <guitton@adacore.com>
16926 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
16927 Remove case-insensitive search.
16929 2017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
16931 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
16932 at the end of the line. Avoids an ARI warning.
16934 2017-02-06 Luis Machado <lgustavo@codesourcery.com>
16936 * NEWS: Mention support for record/replay of Intel 64 rdrand and
16937 rdseed instructions.
16938 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
16940 2017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
16943 Provide and use sparc32 and sparc64 target description XML files.
16944 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
16945 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
16946 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
16947 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
16948 * features/sparc/sparc32-solaris.xml: New file.
16949 * features/sparc/sparc64-solaris.xml: New file.
16950 * features/sparc/sparc32-solaris.c: Generated.
16951 * features/sparc/sparc64-solaris.c: Generated.
16952 * sparc-tdep.h: Account for differences in target descriptions.
16953 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
16954 (sparc32_register_type): Use target provided registers.
16955 (validate_tdesc_registers): New function.
16956 (sparc32_gdbarch_init): Use tdesc_has_registers.
16957 Set pseudoregister functions.
16958 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
16959 (sparc64_register_type): Use target provided registers.
16960 (sparc64_init_abi): Set pseudoregister functions.
16962 2017-02-03 Tom Tromey <tom@tromey.com>
16965 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
16966 with a single member.
16968 2017-02-03 Pedro Alves <palves@redhat.com>
16970 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
16971 (cli_interp_base::~cli_interp_base): New.
16972 (cli_interp): New struct.
16973 (as_cli_interp): Cast the interp itself to cli_interp.
16974 (cli_interpreter_pre_command_loop): Rename to ...
16975 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
16977 (cli_interpreter_init): Rename to ...
16978 (cli_interp::init): ... this. Remove 'self' parameter. Use
16979 boolean. Make extern.
16980 (cli_interpreter_resume): Rename to ...
16981 (cli_interp::resume): ... this. Remove 'data' parameter. Make
16983 (cli_interpreter_suspend): Rename to ...
16984 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
16986 (cli_interpreter_exec): Rename to ...
16987 (cli_interp::exec): ... this. Remove 'data' parameter. Make
16989 (cli_interpreter_supports_command_editing): Rename to ...
16990 (cli_interp_base::supports_command_editing): ... this. Remove
16991 'interp' parameter. Make extern.
16992 (cli_ui_out): Rename to ...
16993 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
16995 (cli_set_logging): Rename to ...
16996 (cli_interp_base::set_logging): ... this. Remove 'interp'
16997 parameter. Make extern.
16998 (cli_interp_procs): Delete.
16999 (cli_interp_factory): Adjust to use "new".
17000 * cli/cli-interp.h: Include "interps.h".
17001 (struct cli_interp_base): New struct.
17002 * interps.c (struct interp): Delete. Fields moved to interps.h.
17003 (interp_new): Delete.
17004 (interp::interp, interp::~interp): New.
17005 (interp_set): Use bool, and return void. Assume the interpreter
17006 has suspend, init and resume methods, and that the all return
17008 (set_top_level_interpreter): interp_set returns void.
17009 (interp_ui_out): Adapt.
17010 (current_interp_set_logging): Adapt.
17011 (interp_data): Delete.
17012 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
17013 (interp_exec): Adapt.
17014 (top_level_interpreter_data): Delete.
17015 * interps.h (interp_init_ftype, interp_resume_ftype)
17016 (interp_suspend_ftype, interp_exec_ftype)
17017 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
17018 (class interp): New.
17019 (interp_new): Delete.
17020 (interp_set): Now returns void. Use bool.
17021 (interp_data, top_level_interpreter_data): Delete.
17022 * mi/mi-common.h: Include interps.h.
17023 (class mi_interp): Inherit from interp. Define a ctor. Declare
17024 init, resume, suspect, exec, interp_ui_out, set_logging and
17025 pre_command_loop methods.
17026 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
17027 (mi_interpreter_init): Rename to ...
17028 (mi_interp::init): ... this. Remove the 'interp' parameter, use
17029 bool, return void and make extern. Adjust.
17030 (mi_interpreter_resume): ... Rename to ...
17031 (mi_interp::resume): ... this. Remove the 'data' parameter,
17032 return void and make extern. Adjust.
17033 (mi_interpreter_suspend): ... Rename to ...
17034 (mi_interp::suspend): ... this. Remove the 'data' parameter,
17035 return void and make extern. Adjust.
17036 (mi_interpreter_exec): ... Rename to ...
17037 (mi_interp::exec): ... this. Remove the 'data' parameter and make
17039 (mi_interpreter_pre_command_loop): ... Rename to ...
17040 (mi_interp::pre_command_loop): ... this. Remove the 'self'
17041 parameter and make extern.
17042 (mi_on_normal_stop_1): Adjust.
17043 (mi_ui_out): Rename to ...
17044 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
17045 parameter and make extern. Adjust.
17046 (mi_set_logging): Rename to ...
17047 (mi_interp::set_logging): ... this. Remove the 'interp'
17048 parameter and make extern. Adjust.
17049 (mi_interp_procs): Delete.
17050 (mi_interp_factory): Adjust to use 'new'.
17051 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
17052 (mi_print_exception, mi_execute_command, mi_load_progress):
17054 * tui/tui-interp.c (tui_interp): New class.
17055 (as_tui_interp): Return a tui_interp pointer.
17056 (tui_on_normal_stop, tui_on_signal_received)
17057 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
17058 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
17059 to use interp::interp_ui_out.
17060 (tui_init): Rename to ...
17061 (tui_interp::init): ... this. Remove the 'self' parameter, use
17062 bool, return void and make extern. Adjust.
17063 (tui_resume): Rename to ...
17064 (tui_interp::resume): ... this. Remove the 'data' parameter,
17065 return void and make extern. Adjust.
17066 (tui_suspend): Rename to ...
17067 (tui_interp::suspend): ... this. Remove the 'data' parameter,
17068 return void and make extern. Adjust.
17069 (tui_ui_out): Rename to ...
17070 (tui_interp::interp_ui_out): ... this. Remove the 'self'
17071 parameter, and make extern. Adjust.
17072 (tui_exec): Rename to ...
17073 (tui_interp::exec): ... this. Remove the 'data' parameter and
17075 (tui_interp_procs): Delete.
17076 (tui_interp_factory): Use "new".
17078 2017-02-02 Tom Tromey <tom@tromey.com>
17080 * rust-exp.y (ends_raw_string, space_then_number)
17081 (rust_identifier_start_p): Return bool.
17082 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
17083 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
17084 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
17085 (rust_chartype_p): Return bool.
17086 (val_print_struct, rust_print_struct_def, rust_print_type):
17088 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
17091 2017-02-02 Tom Tromey <tom@tromey.com>
17093 * rust-lang.c: Reindent.
17095 2017-02-02 Tom Tromey <tom@tromey.com>
17097 * rust-lang.h (rust_crate_for_block): Update.
17098 * rust-lang.c (rust_crate_for_block): Return std::string.
17099 (rust_get_disr_info): Use std:;string, not
17100 gdb::unique_xmalloc_ptr.
17101 * rust-exp.y (crate_name): Update.
17103 2017-02-02 Pedro Alves <palves@redhat.com>
17105 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
17106 field out of gdb_disassembler_test and make it static.
17108 2017-02-02 Pedro Alves <palves@redhat.com>
17110 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
17111 mi1_interp and mi_interp fields.
17113 2017-02-02 Pedro Alves <palves@redhat.com>
17115 * cli/cli-interp.c (struct saved_output_files, saved_output):
17116 Moved from cli/cli-logging.c.
17117 (cli_set_logging): New function.
17118 (cli_interp_procs): Install cli_set_logging.
17119 * cli/cli-interp.h (make_logging_output, cli_set_logging):
17121 * cli/cli-logging.c (struct saved_output_files, saved_output):
17122 Moved to cli/cli-interp.c.
17123 (pop_output_files): Don't save outputs here.
17124 (make_logging_output): New function.
17125 (handle_redirections): Don't build tee nor save previous outputs
17127 * interps.c (current_interp_set_logging): Change prototype.
17128 Assume there's always a set_logging_proc method installed.
17129 * interps.h (interp_set_logging_ftype): Change prototype.
17130 (current_interp_set_logging): Change prototype and adjust comment.
17131 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
17132 use make_logging_output.
17133 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
17134 2017-02-02 Pedro Alves <palves@redhat.com>
17136 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
17138 (set_logging_overwrite): ... here.
17139 (logging_no_redirect_file): Delete.
17140 (set_logging_redirect): Don't handle redirection on the fly.
17141 Instead warn that "logging off" / "logging on" is necessary.
17142 (pop_output_files): Delete references to logging_no_redirect_file.
17143 (show_logging_command): Always speak in terms of what will happen
17144 once logging is reenabled.
17146 2017-02-02 Pedro Alves <palves@redhat.com>
17148 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
17150 2017-02-02 Pedro Alves <palves@redhat.com>
17152 * disasm.c (gdb_pretty_print_insn): Rename to ...
17153 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
17154 Remove gdbarch parameter. Adapt to clear the object's buffers
17155 instead of allocating new buffers, and to print using the object's
17156 gdb_disassembler instead of calling gdb_print_insn.
17157 (dump_insns): Use gdb_pretty_print_disassembler.
17158 * disasm.h (gdb_pretty_print_insn): Delete declaration.
17159 (gdb_pretty_print_disassembler): New class.
17160 * record-btrace.c (btrace_insn_history): Use
17161 gdb_pretty_print_disassembler.
17163 2017-02-02 Pedro Alves <palves@redhat.com>
17165 * ada-lang.c (type_as_string): Use string_file.
17166 * ada-valprint.c (ada_print_floating): Use string_file.
17167 * ada-varobj.c (ada_varobj_scalar_image)
17168 (ada_varobj_get_value_image): Use string_file.
17169 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
17170 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
17171 * breakpoint.c (update_inserted_breakpoint_locations)
17172 (insert_breakpoint_locations, reattach_breakpoints)
17173 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
17174 (print_it_watchpoint): Use string_file.
17175 (save_breakpoints): Use stdio_file.
17176 * c-exp.y (oper): Use string_file.
17177 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
17179 (pop_output_files): Use delete.
17180 (handle_redirections): Use stdio_file and tee_file.
17181 * cli/cli-setshow.c (do_show_command): Use string_file.
17182 * compile/compile-c-support.c (c_compute_program): Use
17184 * compile/compile-c-symbols.c (generate_vla_size): Take a
17185 'string_file &' instead of a 'ui_file *'.
17186 (generate_c_for_for_one_variable): Take a 'string_file &' instead
17187 of a 'ui_file *'. Use string_file.
17188 (generate_c_for_variable_locations): Take a 'string_file &'
17189 instead of a 'ui_file *'.
17190 * compile/compile-internal.h (generate_c_for_for_one_variable):
17191 Take a 'string_file &' instead of a 'ui_file *'.
17192 * compile/compile-loc2c.c (push, pushf, unary, binary)
17193 (print_label, pushf_register_address, pushf_register)
17194 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
17195 'ui_file *'. Adjust.
17196 * compile/compile.c (compile_to_object): Use string_file.
17197 * compile/compile.h (compile_dwarf_expr_to_c)
17198 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
17200 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
17201 (replace_typedefs_qualified_name): Use string_file and
17203 * disasm.c (gdb_pretty_print_insn): Use string_file.
17204 (gdb_disassembly): Adjust reference the null_stream global.
17205 (do_ui_file_delete): Delete.
17206 (gdb_insn_length): Use null_stream.
17207 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
17208 * dwarf2loc.c (dwarf2_compile_property_to_c)
17209 (locexpr_generate_c_location, loclist_generate_c_location): Take a
17210 'string_file &' instead of a 'ui_file *'.
17211 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
17212 * dwarf2read.c (do_ui_file_peek_last): Delete.
17213 (dwarf2_compute_name): Use string_file.
17214 * event-top.c (gdb_setup_readline): Use stdio_file.
17215 * gdbarch.sh (verify_gdbarch): Use string_file.
17216 * gdbtypes.c (safe_parse_type): Use null_stream.
17217 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
17219 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
17220 'string_file *' instead of a 'ui_file *'.
17221 (gdbscm_arch_disassemble): Use string_file.
17222 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
17223 * guile/scm-ports.c (class ioscm_file_port): Now a class that
17224 inherits from ui_file.
17225 (ioscm_file_port_delete, ioscm_file_port_rewind)
17226 (ioscm_file_port_put): Delete.
17227 (ioscm_file_port_write): Rename to ...
17228 (ioscm_file_port::write): ... this. Remove file_port_magic
17230 (ioscm_file_port_new): Delete.
17231 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
17233 * guile/scm-type.c (tyscm_type_name): Use string_file.
17234 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
17236 * infcmd.c (print_return_value_1): Use string_file.
17237 * infrun.c (print_target_wait_results): Use string_file.
17238 * language.c (add_language): Use string_file.
17239 * location.c (explicit_to_string_internal): Use string_file.
17240 * main.c (captured_main_1): Use null_file.
17241 * maint.c (maintenance_print_architecture): Use stdio_file.
17242 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
17243 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
17244 event_channel>: Change type to mi_console_file pointer.
17245 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
17246 (mi_console_file_delete): Delete.
17247 (struct mi_console_file): Delete.
17248 (mi_console_file_magic): Delete.
17249 (mi_console_file_new): Delete.
17250 (mi_console_file::mi_console_file): New.
17251 (mi_console_file_delete): Delete.
17252 (mi_console_file_fputs): Delete.
17253 (mi_console_file::write): New.
17254 (mi_console_raw_packet): Delete.
17255 (mi_console_file::flush): New.
17256 (mi_console_file_flush): Delete.
17257 (mi_console_set_raw): Rename to ...
17258 (mi_console_file::set_raw): ... this.
17259 * mi/mi-console.h (class mi_console_file): New class.
17260 (mi_console_file_new, mi_console_set_raw): Delete.
17261 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
17262 (mi_set_logging): Use delete and tee_file. Adjust.
17263 * mi/mi-main.c (output_register): Use string_file.
17264 (mi_cmd_data_evaluate_expression): Use string_file.
17265 (mi_cmd_data_read_memory): Use string_file.
17266 (mi_cmd_execute, print_variable_or_computed): Use string_file.
17267 * mi/mi-out.c (mi_ui_out::main_stream): New.
17268 (mi_ui_out::rewind): Use main_stream and
17270 (mi_ui_out::put): Use main_stream and string_file.
17271 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
17272 Allocate a 'string_file' instead.
17273 (mi_out_new): Don't allocate a mem_fileopen stream here.
17274 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
17275 (mi_ui_out::main_stream): Declare method.
17276 * printcmd.c (eval_command): Use string_file.
17277 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
17278 * python/py-arch.c (archpy_disassemble): Use string_file.
17279 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
17280 * python/py-frame.c (frapy_str): Use string_file.
17281 * python/py-framefilter.c (py_print_type, py_print_single_arg):
17283 * python/py-type.c (typy_str): Use string_file.
17284 * python/py-unwind.c (unwind_infopy_str): Use string_file.
17285 * python/py-value.c (valpy_str): Use string_file.
17286 * record-btrace.c (btrace_insn_history): Use string_file.
17287 * regcache.c (regcache_print): Use stdio_file.
17288 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
17289 * remote.c (escape_buffer): Use string_file.
17290 * rust-lang.c (rust_get_disr_info): Use string_file.
17291 * serial.c (serial_open_ops_1): Use stdio_file.
17292 (do_serial_close): Use delete.
17293 * stack.c (print_frame_arg): Use string_file.
17294 (print_frame_args): Remove local mem_fileopen stream, not used.
17295 (print_frame): Use string_file.
17296 * symmisc.c (maintenance_print_symbols): Use stdio_file.
17297 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
17298 Take a 'string_file *' instead of a 'ui_file *'.
17299 * top.c (new_ui): Use stdio_file and stderr_file.
17300 (free_ui): Use delete.
17301 (execute_command_to_string): Use string_file.
17302 (quit_confirm): Use string_file.
17303 * tracepoint.c (collection_list::append_exp): Use string_file.
17304 * tui/tui-disasm.c (tui_disassemble): Use string_file.
17305 * tui/tui-file.c: Don't include "ui-file.h".
17306 (enum streamtype, struct tui_stream): Delete.
17307 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
17308 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
17309 (tui_file::tui_file): New method.
17310 (tui_file_fputs): Delete.
17311 (tui_file_get_strbuf): Delete.
17312 (tui_file::puts): New method.
17313 (tui_file_adjust_strbuf): Delete.
17314 (tui_file_flush): Delete.
17315 (tui_file::flush): New method.
17316 * tui/tui-file.h: Tweak intro comment.
17318 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
17319 (tui_file_adjust_strbuf): Delete declarations.
17320 (class tui_file): New class.
17321 * tui/tui-io.c (tui_initialize_io): Use tui_file.
17322 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
17323 (tui_register_format): Use string_stream.
17324 * tui/tui-stack.c (tui_make_status_line): Use string_file.
17325 (tui_get_function_from_frame): Use string_file.
17326 * typeprint.c (type_to_string): Use string_file.
17327 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
17328 (null_stream): New global.
17329 (ui_file_delete): Delete.
17330 (ui_file::ui_file): New.
17331 (null_file_isatty): Delete.
17332 (ui_file::~ui_file): New.
17333 (null_file_rewind): Delete.
17334 (ui_file::printf): New.
17335 (null_file_put): Delete.
17336 (null_file_flush): Delete.
17337 (ui_file::putstr): New.
17338 (null_file_write): Delete.
17339 (ui_file::putstrn): New.
17340 (null_file_read): Delete.
17341 (ui_file::putc): New.
17342 (null_file_fputs): Delete.
17343 (null_file_write_async_safe): Delete.
17344 (ui_file::vprintf): New.
17345 (null_file_delete): Delete.
17346 (null_file::write): New.
17347 (null_file_fseek): Delete.
17348 (null_file::puts): New.
17349 (ui_file_data): Delete.
17350 (null_file::write_async_safe): New.
17351 (gdb_flush, ui_file_isatty): Adjust.
17352 (ui_file_put, ui_file_rewind): Delete.
17353 (ui_file_write): Adjust.
17354 (ui_file_write_for_put): Delete.
17355 (ui_file_write_async_safe, ui_file_read): Adjust.
17356 (ui_file_fseek): Delete.
17357 (fputs_unfiltered): Adjust.
17358 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
17359 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
17360 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
17361 (set_ui_file_data): Delete.
17362 (string_file::~string_file, string_file::write)
17363 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
17364 (do_ui_file_as_string, ui_file_as_string): Delete.
17365 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
17366 (struct mem_file): Delete.
17367 (mem_file_new): Delete.
17368 (stdio_file::stdio_file): New.
17369 (mem_file_delete): Delete.
17370 (stdio_file::stdio_file): New.
17371 (mem_fileopen): Delete.
17372 (stdio_file::~stdio_file): New.
17373 (mem_file_rewind): Delete.
17374 (stdio_file::set_stream): New.
17375 (mem_file_put): Delete.
17376 (stdio_file::open): New.
17377 (mem_file_write): Delete.
17378 (stdio_file_magic, struct stdio_file): Delete.
17379 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
17380 (stdio_file::flush): New.
17381 (stdio_file_read): Rename to ...
17382 (stdio_file::read): ... this. Adjust.
17383 (stdio_file_write): Rename to ...
17384 (stdio_file::write): ... this. Adjust.
17385 (stdio_file_write_async_safe): Rename to ...
17386 (stdio_file::write_async_safe) ... this. Adjust.
17387 (stdio_file_fputs): Rename to ...
17388 (stdio_file::puts) ... this. Adjust.
17389 (stdio_file_isatty): Delete.
17390 (stdio_file_fseek): Delete.
17391 (stdio_file::isatty): New.
17392 (stderr_file_write): Rename to ...
17393 (stderr_file::write) ... this. Adjust.
17394 (stderr_file_fputs): Rename to ...
17395 (stderr_file::puts) ... this. Adjust.
17396 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
17397 (stderr_file::stderr_file): New.
17398 (tee_file_magic): Delete.
17399 (struct tee_file): Delete.
17400 (tee_file::tee_file): New.
17401 (tee_file_new): Delete.
17402 (tee_file::~tee_file): New.
17403 (tee_file_delete): Delete.
17404 (tee_file_flush): Rename to ...
17405 (tee_file::flush): ... this. Adjust.
17406 (tee_file_write): Rename to ...
17407 (tee_file::write): ... this. Adjust.
17408 (tee_file::write_async_safe): New.
17409 (tee_file_fputs): Rename to ...
17410 (tee_file::puts): ... this. Adjust.
17411 (tee_file_isatty): Rename to ...
17412 (tee_file::isatty): ... this. Adjust.
17413 * ui-file.h (struct obstack, struct ui_file): Don't
17415 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
17416 (ui_file_write_ftype)
17417 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
17418 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
17419 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
17420 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
17421 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
17422 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
17423 (set_ui_file_fseek): Delete.
17424 (ui_file_data, ui_file_delete, ui_file_rewind)
17425 (struct ui_file): New.
17427 (class null_file): New.
17428 (null_stream): Declare.
17429 (ui_file_write_for_put, ui_file_put): Delete.
17430 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
17432 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
17433 (gdb_fopen, tee_file_new): Delete.
17434 (struct string_file): New.
17435 (struct stdio_file): New.
17436 (stdio_file_up): New.
17437 (struct stderr_file): New.
17438 (class tee_file): New.
17439 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
17440 of a 'ui_file *'. Adjust.
17441 * ui-out.h (class ui_out) <field_stream>: Likewise.
17442 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
17443 (null_stream): Delete.
17444 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
17446 * utils.h (struct ui_file): Delete forward declaration..
17447 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
17448 (error_stream): Take a 'string_file &' instead of a
17450 * varobj.c (varobj_value_get_print_value): Use string_file.
17451 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
17452 * gdbarch.c: Regenerate.
17454 2017-02-02 Pedro Alves <palves@redhat.com>
17456 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
17457 (gdb_pretty_print_insn): ... this. Now a free function. Add back
17458 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
17459 Adjust to call gdb_print_insn instead of
17460 gdb_disassembler::print_insn.
17461 (dump_insns, do_mixed_source_and_assembly_deprecated)
17462 (do_mixed_source_and_assembly, do_assembly_only): Add back a
17463 'gdbarch' parameter. Remove gdb_disassembler parameter.
17464 (gdb_disassembly): Don't allocate a gdb_disassembler here.
17465 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
17467 (gdb_pretty_print_insn): Re-add declaration.
17468 * record-btrace.c (btrace_insn_history): Don't allocate a
17469 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
17471 2017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
17473 * disasm.h (gdb_disassembly): Remove file_string parameter.
17474 * disasm.c (gdb_disassembly): Likewise.
17475 * cli/cli-cmds.c (print_disassembly): Adapt.
17476 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
17477 * stack.c (do_gdb_disassembly): Likewise.
17479 2017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
17481 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
17482 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
17483 targets. And if the implicit value is longer than needed, extract
17484 the first bytes instead of the "least significant" ones.
17486 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
17488 * btrace.c (btrace_enable): Do not call btrace_add_pc for
17489 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
17490 (btrace_fetch): Assert can_access_registers_ptid.
17491 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
17492 validate_registers_access.
17494 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
17496 * gdbthread.h (can_access_registers_ptid): New.
17497 * thread.c (can_access_registers_ptid): New.
17499 2017-02-01 Pedro Alves <palves@redhat.com>
17501 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
17503 2017-01-31 Pedro Alves <palves@redhat.com>
17505 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
17508 2017-01-31 Pedro Alves <palves@redhat.com>
17510 * stack.c (print_frame_args): Remove local mem_fileopen stream,
17513 2017-01-31 Pedro Alves <palves@redhat.com>
17515 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
17517 2017-01-31 Pedro Alves <palves@redhat.com>
17519 * common/scoped_restore.h
17520 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
17521 change the value's parameter type to T2.
17522 (make_scoped_restore): Likewise.
17524 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
17525 Richard Henderson <rth@redhat.com>
17527 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
17528 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
17529 GS_BASE for older kernels.
17530 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
17531 GS_BASE for older kernels.
17532 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
17533 and GS_BASE to the offset table.
17534 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
17535 system register group.
17536 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
17538 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
17540 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
17541 AMD64_GSBASE_REGNUM.
17542 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
17543 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
17544 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
17545 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
17546 i386/64bit-segments.xml in those rules.
17547 * features/i386/64bit-segments.xml: New file.
17548 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
17549 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
17550 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
17551 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
17552 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
17553 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
17554 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
17555 * features/i386/amd64-avx-linux.c: Regenerated.
17556 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
17557 * features/i386/amd64-avx-mpx.c: Regenerated.
17558 * features/i386/amd64-avx512-linux.c: Regenerated.
17559 * features/i386/amd64-linux.c: Regenerated.
17560 * features/i386/amd64-mpx-linux.c: Regenerated.
17561 * features/i386/i386-avx-mpx-linux.c: Regenerated.
17562 * features/i386/i386-avx-mpx.c: Regenerated.
17563 * features/i386/x32-avx-linux.c: Regenerated.
17564 * features/i386/x32-avx512-linux.c: Regenerated.
17565 * regformats/i386/amd64-avx-linux.dat: Regenerated.
17566 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
17567 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
17568 * regformats/i386/amd64-linux.dat: Regenerated.
17569 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
17570 * regformats/i386/x32-avx-linux.dat: Regenerated.
17571 * regformats/i386/x32-avx512-linux.dat: Regenerated.
17572 * regformats/i386/x32-linux.dat: Regenerated.
17574 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
17576 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
17577 Set to AMD64_NUM_REGS.
17579 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
17581 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
17582 that checks validity of a register number.
17584 2017-01-27 Kees Cook <keescook@google.com>
17586 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
17587 fetch_fpregs if target has fpa registers.
17588 (arm_linux_store_inferior_registers): Call store_fpregs if target
17591 2017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
17593 * cris-tdep.c (cris_gdbarch_init): Remove check for
17594 info.byte_order and force it to BFD_ENDIAN_LITTLE.
17596 2017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
17598 * corelow.c (get_core_register_section): Check for regset
17599 existence before checking for REGSET_VARIABLE_SIZE.
17601 2017-01-26 Yao Qi <yao.qi@linaro.org>
17602 Pedro Alves <palves@redhat.com>
17605 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
17606 call memory_error, save memaddr instead.
17607 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
17608 negative, cal memory_error.
17609 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
17611 2017-01-26 Yao Qi <yao.qi@linaro.org>
17613 * disasm-selftests.c (memory_error_test): New function.
17614 (_initialize_disasm_selftests): Register memory_error_test.
17616 2017-01-26 Yao Qi <yao.qi@linaro.org>
17618 * Makefile.in (SFILES): Add disasm-selftests.c and
17620 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
17621 * disasm-selftests.c: New file.
17622 * selftest-arch.c: New file.
17623 * selftest-arch.h: New file.
17625 2017-01-26 Yao Qi <yao.qi@linaro.org>
17627 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
17628 to bfd_arch_mep. Don't return 0 if section is not
17629 found. Call print_insn_mep.
17631 2017-01-26 Pedro Alves <palves@redhat.com>
17632 Yao Qi <yao.qi@linaro.org>
17634 * arm-tdep.c: Include "disasm.h".
17635 (gdb_print_insn_arm): Update code to get gdbarch.
17636 * disasm.c (dis_asm_read_memory): Change it to
17637 gdb_disassembler::dis_asm_read_memory.
17638 (dis_asm_memory_error): Likewise.
17639 (dis_asm_print_address): Likewise.
17640 (gdb_pretty_print_insn): Change it to
17641 gdb_disassembler::pretty_print_insn.
17642 (dump_insns): Add one argument gdb_disassemlber. All
17644 (do_mixed_source_and_assembly_deprecated): Likewise.
17645 (do_mixed_source_and_assembly): Likewise.
17646 (do_assembly_only): Likewise.
17647 (gdb_disassembler::gdb_disassembler): New.
17648 (gdb_disassembler::print_insn): New.
17649 * disasm.h (class gdb_disassembler): New.
17650 (gdb_pretty_print_insn): Remove declaration.
17651 (gdb_disassemble_info): Likewise.
17652 * guile/scm-disasm.c (class gdbscm_disassembler): New.
17653 (gdbscm_disasm_read_memory_worker): Update.
17654 (gdbscm_disasm_read_memory): Update.
17655 (gdbscm_disasm_memory_error): Remove.
17656 (gdbscm_disasm_print_address): Remove.
17657 (gdbscm_disassembler::gdbscm_disassembler): New.
17658 (gdbscm_print_insn_from_port): Update.
17659 * mips-tdep.c: Include disasm.h.
17660 (gdb_print_insn_mips): Update code to get gdbarch.
17661 * record-btrace.c (btrace_insn_history): Update.
17662 * spu-tdep.c: Include disasm.h.
17663 (struct spu_dis_asm_data): Remove.
17664 (struct spu_dis_asm_info): New.
17665 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
17667 (gdb_print_insn_spu): Cast disassemble_info to
17670 2017-01-26 Yao Qi <yao.qi@linaro.org>
17672 * disasm.c (do_ui_file_delete): Delete.
17673 (gdb_insn_length): Move code creating stream to ...
17674 * utils.c (null_stream): ... here. New function.
17675 * utils.h (null_stream): Declare.
17677 2017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
17679 * python/py-inferior.c (find_thread_object): Return directly
17680 from the loop. Remove "found" variable.
17682 2017-01-21 Joel Brobecker <brobecker@adacore.com>
17684 GDB 7.12.1 released.
17686 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
17688 * python/py-function.c (fnpy_call): Reorder declarations to have
17689 the gdbpy_enter object declared first.
17690 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
17692 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
17695 * python/python-internal.h (PyMem_RawMalloc): Define for
17697 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
17698 PyMem_RawMalloc instead of PyMem_Malloc.
17700 2017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
17701 Luis Machado <lgustavo@codesourcery.com>
17703 * NEWS (New commands): Mention flash-erase.
17704 (New MI commands): Mention target-flash-erase.
17705 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
17707 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
17708 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
17709 * target.c (flash_erase_command): New function.
17710 (initialize_targets): Add new flash-erase command.
17711 * target.h (flash_erase_command): New declaration.
17713 2017-01-20 Joel Brobecker <brobecker@adacore.com>
17715 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
17716 HAVE_SYS_PROCFS_H is defined.
17718 2017-01-18 Alan Hayward <alan.hayward@arm.com>
17720 * remote.c (struct cached_reg): Change data into a pointer.
17721 * (stop_reply_dtr): Free data pointers before deleting vector.
17722 (process_stop_reply): Likewise.
17723 (remote_parse_stop_reply): Allocate space for data
17725 2017-01-18 Alan Hayward <alan.hayward@arm.com>
17727 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
17729 (amd64_pseudo_register_read_value): Likewise.
17730 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
17731 (store_register_using_P): Likewise.
17732 * regcache.c (regcache_xfer_part): Likewise.
17734 2017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
17736 Split real and pseudo registers.
17737 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
17738 (sparc32_pseudo_regnum): New enum.
17739 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
17740 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
17741 (SPARC32_CP0_REGISTERS): New macro.
17742 (sparc32_pseudo_register_name): New function.
17743 (sparc32_register_name): Use sparc32_pseudo_register_name.
17744 (sparc32_pseudo_register_type): New function.
17745 (sparc32_register_type): Use sparc32_pseudo_register_type.
17746 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
17747 pseudo register numbers.
17748 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
17749 (SPARC64_CP0_REGISTERS): New macro.
17750 (sparc64_pseudo_register_name): New function.
17751 (sparc64_register_name): Use sparc64_pseudo_register_name.
17752 (sparc64_pseudo_register_type): New function.
17753 (sparc64_register_type): Use sparc64_pseudo_register_type.
17754 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
17755 pseudo register numbers.
17756 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
17757 sparc64_store_arguments): Handle pseudo register numbers.
17759 2017-01-13 Yao Qi <yao.qi@linaro.org>
17761 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
17762 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
17764 (getpkt_or_notif_sane_1): Likewise.
17766 2017-01-13 Yao Qi <yao.qi@linaro.org>
17768 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
17769 of CC. Pass "-x c++-header" instead of "-x c".
17771 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
17773 * remote.c (remote_can_async_p): Update comment.
17775 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
17777 * linux-nat.c (linux_nat_can_async_p): Update comment.
17779 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
17781 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
17783 2017-01-11 Simon Marchi <simon.marchi@ericsson.com>
17785 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
17787 2017-01-10 Tom Tromey <tom@tromey.com>
17789 * python/py-type.c (typy_legacy_template_argument): Update.
17790 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
17791 ~demangle_parse_info): Declare new members.
17792 (cp_demangled_name_to_comp): Return unique_ptr.
17793 (cp_demangled_name_parse_free)
17794 (make_cleanup_cp_demangled_name_parse_free)
17795 (cp_new_demangle_parse_info): Remove.
17796 * cp-support.c (do_demangled_name_parse_free_cleanup)
17797 (make_cleanup_cp_demangled_name_parse_free): Remove.
17798 (inspect_type, cp_canonicalize_string_full)
17799 (cp_canonicalize_string): Update.
17800 (mangled_name_to_comp): Change return type.
17801 (cp_class_name_from_physname, method_name_from_physname)
17802 (cp_func_name, cp_remove_params): Update.
17803 * cp-name-parser.y (demangle_parse_info): New constructor, from
17804 cp_new_demangle_parse_info.
17805 (~demangle_parse_info): New destructor, from
17806 cp_demangled_name_parse_free.
17807 (cp_merge_demangle_parse_infos): Update.
17808 (cp_demangled_name_to_comp): Change return type.
17810 2017-01-10 Tom Tromey <tom@tromey.com>
17812 * top.c (prevent_dont_repeat): Change return type.
17813 * python/python.c (execute_gdb_command): Use std::string.
17815 * guile/guile.c (gdbscm_execute_gdb_command): Update.
17816 * command.h (prevent_dont_repeat): Change return type.
17817 * breakpoint.c (bpstat_do_actions_1): Update.
17819 2017-01-10 Tom Tromey <tom@tromey.com>
17821 * value.h (scoped_value_mark::~scoped_value_mark): Call
17823 (scoped_value_mark::free_to_mark): New method.
17824 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
17827 2017-01-10 Tom Tromey <tom@tromey.com>
17829 * python/py-value.c (valpy_dereference, valpy_referenced_value)
17830 (valpy_reference_value, valpy_const_value, valpy_get_address)
17831 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
17832 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
17833 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
17834 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
17836 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
17837 * value.h (scoped_value_mark): New class.
17839 2017-01-10 Tom Tromey <tom@tromey.com>
17841 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
17842 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
17843 * psymtab.c (discard_psymtabs_upto): Remove.
17844 (make_cleanup_discard_psymtabs): Remove.
17845 (struct psymtab_state): Remove.
17847 2017-01-10 Tom Tromey <tom@tromey.com>
17849 * record-full.c (record_full_save_cleanups): Remove.
17850 (record_full_save): Use gdb::unlinker.
17851 * gcore.c (do_bfd_delete_cleanup): Remove.
17852 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
17854 * dwarf2read.c (unlink_if_set): Remove.
17855 (write_psymtabs_to_index): Use gdb::unlinker.
17856 * common/gdb_unlinker.h: New file.
17858 2017-01-10 Tom Tromey <tom@tromey.com>
17860 * windows-tdep.c (windows_xfer_shared_library): Update.
17861 * windows-nat.c (windows_make_so): Update.
17862 * utils.h (make_cleanup_bfd_unref): Remove.
17863 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
17864 * symfile.h (symfile_bfd_open)
17865 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
17866 * symfile.c (read_symbols, symbol_file_add)
17867 (separate_debug_file_exists): Update.
17868 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
17869 (generic_load, reread_symbols): Update.
17870 * symfile-mem.c (symbol_file_add_from_memory): Update.
17871 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
17872 (spu_symbol_file_add_from_memory): Update.
17873 * solist.h (struct target_so_ops) <bfd_open>: Return
17875 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
17876 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
17878 (solib_map_sections, reload_shared_libraries_1): Update.
17879 * solib-svr4.c (enable_break): Update.
17880 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
17881 * solib-frv.c (enable_break2): Update.
17882 * solib-dsbt.c (enable_break): Update.
17883 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
17885 (darwin_solib_get_all_image_info_addr_at_init): Update.
17886 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
17887 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
17888 * record-full.c (record_full_save): Update.
17889 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
17890 * procfs.c (insert_dbx_link_bpt_in_file): Update.
17891 * minidebug.c (find_separate_debug_file_in_section): Return
17893 * machoread.c (macho_add_oso_symfile): Change abfd to
17895 (macho_symfile_read_all_oso): Update.
17896 (macho_check_dsym): Return gdb_bfd_ref_ptr.
17897 (macho_symfile_read): Update.
17898 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
17899 (jit_bfd_try_read_symtab): Update.
17900 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
17901 (gdb_bfd_openw, gdb_bfd_openr_iovec)
17902 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
17904 (gdb_bfd_ref_policy): New struct.
17905 (gdb_bfd_ref_ptr): New typedef.
17906 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
17907 (gdb_bfd_openw, gdb_bfd_openr_iovec)
17908 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
17910 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
17911 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
17912 (gcore_command): Update.
17913 * exec.c (exec_file_attach): Update.
17914 * elfread.c (elf_symfile_read): Update.
17915 * dwarf2read.c (dwarf2_get_dwz_file): Update.
17916 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
17917 (open_and_init_dwo_file): Update.
17918 (open_dwp_file): Return gdb_bfd_ref_ptr.
17919 (open_and_init_dwp_file): Update.
17920 * corelow.c (core_open): Update.
17921 * compile/compile-object-load.c (compile_object_load): Update.
17922 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
17923 * coffread.c (coff_symfile_read): Update.
17924 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
17925 gdb_bfd_ref_ptr. Rename.
17926 (dump_bfd_file, restore_command): Update.
17927 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
17928 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
17929 (find_separate_debug_file_by_buildid): Update.
17931 2017-01-10 Tom Tromey <tom@tromey.com>
17933 * common/gdb_ref_ptr.h: New file.
17934 * python/py-ref.h (struct gdbpy_ref_policy): New.
17935 (gdbpy_ref): Now a typedef.
17937 2017-01-10 Tom Tromey <tom@tromey.com>
17939 * utils.h (make_cleanup_htab_delete): Don't declare.
17940 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
17942 * linespec.c (decode_compound_collector): Add constructor,
17944 (lookup_prefix_sym): Remove cleanup.
17945 (symtab_collector): Add constructor, destructor.
17946 (collect_symtabs_from_filename): Remove cleanup.
17947 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
17948 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
17950 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
17951 * dwarf2read.c (dw2_expand_symtabs_matching)
17952 (dw2_map_symbol_filenames, dwarf_decode_macros)
17953 (write_psymtabs_to_index): Use htab_up.
17954 * dwarf2loc.c (func_verify_no_selftailcall)
17955 (call_site_find_chain_1, func_verify_no_selftailcall)
17956 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
17957 std::vector, gdb::unique_xmalloc_ptr.
17958 (call_sitep): Remove typedef.
17959 (dwarf2_locexpr_baton_eval): Remove unused variable.
17961 2017-01-10 Tom Tromey <tom@tromey.com>
17963 * python/python-internal.h (make_cleanup_py_decref)
17964 (make_cleanup_py_xdecref): Don't declare.
17965 * python/py-utils.c (py_decref, make_cleanup_py_decref)
17966 (py_xdecref, make_cleanup_py_xdecref): Remove.
17968 2017-01-10 Tom Tromey <tom@tromey.com>
17970 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
17971 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
17973 2017-01-10 Tom Tromey <tom@tromey.com>
17975 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
17977 2017-01-10 Tom Tromey <tom@tromey.com>
17979 * python/py-utils.c (unicode_to_encoded_string)
17980 (python_string_to_target_string)
17981 (python_string_to_target_python_string)
17982 (python_string_to_host_string, gdbpy_obj_to_string)
17983 (get_addr_from_python): Use gdbpy_ref.
17985 2017-01-10 Tom Tromey <tom@tromey.com>
17987 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
17990 2017-01-10 Tom Tromey <tom@tromey.com>
17992 * python/python.c (eval_python_command, gdbpy_decode_line)
17993 (gdbpy_run_events, gdbpy_start_type_printers)
17994 (gdbpy_apply_type_printers): Use gdbpy_ref.
17996 2017-01-10 Tom Tromey <tom@tromey.com>
17998 * python/py-param.c (get_doc_string, compute_enum_values): Use
18001 2017-01-10 Tom Tromey <tom@tromey.com>
18003 * python/py-inferior.c (find_thread_object, build_inferior_list):
18006 2017-01-10 Tom Tromey <tom@tromey.com>
18008 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
18010 2017-01-10 Tom Tromey <tom@tromey.com>
18012 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
18015 2017-01-10 Tom Tromey <tom@tromey.com>
18017 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
18019 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
18022 2017-01-10 Tom Tromey <tom@tromey.com>
18024 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
18027 2017-01-10 Tom Tromey <tom@tromey.com>
18029 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
18030 decref results of PyArg_ParseTupleAndKeywords.
18032 2017-01-10 Tom Tromey <tom@tromey.com>
18034 * python/python.c (python_run_simple_file): Use
18035 unique_xmalloc_ptr, gdbpy_ref.
18037 2017-01-10 Tom Tromey <tom@tromey.com>
18039 * python/py-prettyprint.c (print_stack_unless_memory_error)
18040 (print_string_repr, print_children): Use gdbpy_ref.
18041 (dummy_python_frame): New class.
18042 (dummy_python_frame::dummy_python_frame): Rename from
18043 push_dummy_python_frame.
18044 (py_restore_tstate): Remove.
18046 2017-01-10 Tom Tromey <tom@tromey.com>
18048 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
18050 2017-01-10 Tom Tromey <tom@tromey.com>
18052 * python/python.c (ensure_python_env, restore_python_env):
18054 * python/python-internal.h (ensure_python_env): Don't declare.
18055 * varobj.h (varobj_ensure_python_env): Don't declare.
18056 * varobj.c (varobj_ensure_python_env): Remove.
18058 2017-01-10 Tom Tromey <tom@tromey.com>
18060 * varobj.c (varobj_value_get_print_value): Use
18061 gdbpy_enter_varobj.
18063 2017-01-10 Tom Tromey <tom@tromey.com>
18065 * python/py-prettyprint.c (print_string_repr, print_children):
18067 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
18069 * varobj.c (varobj_value_get_print_value): Update.
18070 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
18072 2017-01-10 Tom Tromey <tom@tromey.com>
18074 * varobj.c (varobj_get_display_hint)
18075 (dynamic_varobj_has_child_method, install_new_value_visualizer)
18076 (varobj_set_visualizer, free_variable): Use
18077 gdbpy_enter_varobj.
18079 2017-01-10 Tom Tromey <tom@tromey.com>
18081 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
18082 (do_finish_initialization): New function. Use gdbpy_ref.
18083 (gdbpy_finish_initialization): Use gdbpy_enter. Call
18084 do_finish_initialization.
18086 2017-01-10 Tom Tromey <tom@tromey.com>
18088 * python/py-param.c (get_set_value, get_show_value): Use
18089 gdbpy_enter, gdbpy_ref.
18091 2017-01-10 Tom Tromey <tom@tromey.com>
18093 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
18095 2017-01-10 Tom Tromey <tom@tromey.com>
18097 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
18099 2017-01-10 Tom Tromey <tom@tromey.com>
18101 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
18102 Use gdbpy_enter_varobj.
18104 2017-01-10 Tom Tromey <tom@tromey.com>
18106 * varobj.c (gdbpy_enter_varobj): New constructor.
18107 * python/python-internal.h (gdbpy_enter_varobj): New class.
18108 * python/py-varobj.c (py_varobj_get_iterator): Use
18109 gdbpy_enter_varobj.
18111 2017-01-10 Tom Tromey <tom@tromey.com>
18113 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
18114 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
18115 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
18116 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
18117 unique_xmalloc_ptr.
18118 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
18120 2017-01-10 Tom Tromey <tom@tromey.com>
18122 * python/py-xmethods.c (invoke_match_method): Use
18125 2017-01-10 Tom Tromey <tom@tromey.com>
18127 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
18128 gdbpy_enter, gdbpy_ref.
18130 2017-01-10 Tom Tromey <tom@tromey.com>
18132 * python/python.c (python_interactive_command): Use gdbpy_enter.
18134 2017-01-10 Tom Tromey <tom@tromey.com>
18136 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
18139 2017-01-10 Tom Tromey <tom@tromey.com>
18141 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
18142 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
18144 2017-01-10 Tom Tromey <tom@tromey.com>
18146 * utils.h (htab_deleter): New struct.
18147 (htab_up): New typedef.
18148 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
18149 gdbpy_enter, gdbpy_ref, htab_up.
18151 2017-01-10 Tom Tromey <tom@tromey.com>
18153 * python/py-unwind.c (pending_frame_invalidate): Remove.
18154 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
18156 2017-01-10 Tom Tromey <tom@tromey.com>
18158 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
18159 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
18161 2017-01-10 Tom Tromey <tom@tromey.com>
18163 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
18165 2017-01-10 Tom Tromey <tom@tromey.com>
18167 * python/python.c (gdbpy_eval_from_control_command)
18168 (gdbpy_source_script, gdbpy_run_events)
18169 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
18170 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
18173 2017-01-10 Tom Tromey <tom@tromey.com>
18175 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
18177 2017-01-10 Tom Tromey <tom@tromey.com>
18179 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
18181 2017-01-10 Tom Tromey <tom@tromey.com>
18183 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
18184 (python_on_inferior_call_pre, python_on_inferior_call_post)
18185 (python_on_memory_change, python_on_register_change)
18186 (python_inferior_exit, python_new_objfile, add_thread_object)
18187 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
18189 2017-01-10 Tom Tromey <tom@tromey.com>
18191 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
18192 (bpfinishpy_handle_exit): Use gdbpy_enter.
18194 2017-01-10 Tom Tromey <tom@tromey.com>
18196 * python/py-cmd.c (cmdpy_destroyer)
18197 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
18200 2017-01-10 Tom Tromey <tom@tromey.com>
18202 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
18204 (gdbpy_breakpoint_has_cond): Likewise.
18206 2017-01-10 Tom Tromey <tom@tromey.com>
18208 * python/python.c (gdbpy_enter): New constructor.
18209 (~gdbpy_enter): New destructor.
18210 (restore_python_env, ensure_python_env): Rewrite.
18211 * python/python-internal.h (gdbpy_enter): New class.
18213 2017-01-10 Tom Tromey <tom@tromey.com>
18215 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
18217 2017-01-10 Tom Tromey <tom@tromey.com>
18219 * python/py-value.c (value_has_field, get_field_flag)
18220 (get_field_type, valpy_getitem, convert_value_from_python): Use
18223 2017-01-10 Tom Tromey <tom@tromey.com>
18225 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
18228 2017-01-10 Tom Tromey <tom@tromey.com>
18230 * python/py-prettyprint.c (search_pp_list)
18231 (find_pretty_printer_from_objfiles)
18232 (find_pretty_printer_from_progspace)
18233 (find_pretty_printer_from_gdb, find_pretty_printer)
18234 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
18237 2017-01-10 Tom Tromey <tom@tromey.com>
18239 * python/py-param.c (call_doc_function): Use gdbpy_ref.
18241 2017-01-10 Tom Tromey <tom@tromey.com>
18243 * python/py-linetable.c (build_line_table_tuple_from_pcs)
18244 (ltpy_get_all_source_lines): Use gdbpy_ref.
18246 2017-01-10 Tom Tromey <tom@tromey.com>
18248 * python/py-framefilter.c (extract_sym, extract_value)
18249 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
18252 2017-01-10 Tom Tromey <tom@tromey.com>
18254 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
18256 2017-01-10 Tom Tromey <tom@tromey.com>
18258 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
18260 2017-01-10 Tom Tromey <tom@tromey.com>
18262 * python/py-function.c (convert_values_to_python, fnpy_init): Use
18265 2017-01-10 Tom Tromey <tom@tromey.com>
18267 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
18269 2017-01-10 Tom Tromey <tom@tromey.com>
18271 * python/py-type.c (convert_field, make_fielditem, typy_fields)
18272 (typy_range): Use gdbpy_ref.
18274 2017-01-10 Tom Tromey <tom@tromey.com>
18276 * python/py-threadevent.c (create_thread_event_object): Use
18278 * python/py-stopevent.c (create_stop_event_object): Simplify.
18279 (emit_stop_event): Use gdbpy_ref.
18280 * python/py-signalevent.c (create_signal_event_object): Use
18282 * python/py-newobjfileevent.c (create_new_objfile_event_object)
18283 (emit_new_objfile_event, create_clear_objfiles_event_object)
18284 (emit_clear_objfiles_event): Use gdbpy_ref.
18285 * python/py-infevents.c (create_inferior_call_event_object)
18286 (create_register_changed_event_object)
18287 (create_memory_changed_event_object, emit_inferior_call_event)
18288 (emit_memory_changed_event, emit_register_changed_event): Use
18290 * python/py-exitedevent.c (create_exited_event_object)
18291 (emit_exited_event): Use gdbpy_ref.
18292 * python/py-event.h (evpy_emit_event): Remove
18293 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
18294 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
18295 * python/py-continueevent.c (emit_continue_event): Use
18297 * python/py-breakpoint.c (gdbpy_breakpoint_created)
18298 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
18300 * python/py-bpevent.c (create_breakpoint_event_object): Use
18303 2017-01-10 Tom Tromey <tom@tromey.com>
18305 * python/py-ref.h: New file.
18307 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
18309 * cli-out.c (cli_ui_out::do_redirect): Change return type to
18311 * cli-out.h (cli_ui_out::do_redirect): Likewise.
18312 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
18313 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
18314 * ui-out.c (ui_out::redirect): Likewise.
18315 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
18316 * cli/cli-logging.c (set_logging_redirect): Update call site of
18318 (handle_redirections): Likewise.
18319 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
18320 * top.c (execute_command_to_string): Likewise.
18321 * utils.c (do_ui_out_redirect_pop): Likewise.
18323 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
18325 * stack.c (_initialize_stack): Update "frame" command help message.
18327 2017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
18329 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
18331 2017-01-06 Yao Qi <yao.qi@linaro.org>
18333 * x86-linux-nat.h: Include gdb_proc_service.h.
18335 2017-01-06 Yao Qi <yao.qi@linaro.org>
18337 * ser-base.h: Include serial.h.
18339 2017-01-06 Yao Qi <yao.qi@linaro.org>
18341 * ppc-linux-tdep.h: Include ppc-tdep.h.
18343 2017-01-06 Yao Qi <yao.qi@linaro.org>
18345 * nat/amd64-linux-siginfo.h: Include signal.h.
18347 2017-01-06 Yao Qi <yao.qi@linaro.org>
18349 * nat/aarch64-linux-hw-point.h: Include break-common.h.
18351 2017-01-06 Yao Qi <yao.qi@linaro.org>
18353 * mi/mi-parse.h: Include mi-cmds.h.
18355 2017-01-06 Yao Qi <yao.qi@linaro.org>
18357 * inf-loop.c: Don't include "target.h".
18358 * inf-loop.h: Include it here.
18360 2017-01-06 Yao Qi <yao.qi@linaro.org>
18362 * dfp.h: Include "dboulest.h" and "expression.h".
18364 2017-01-06 Yao Qi <yao.qi@linaro.org>
18366 * ax-gdb.h: Include "ax.h".
18368 2017-01-06 Yao Qi <yao.qi@linaro.org>
18370 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
18371 with nat/gdb_ptrace.h.
18373 2017-01-05 Yao Qi <yao.qi@linaro.org>
18375 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
18377 (mips64_fbsd_sigframe_init): Likewise.
18379 2017-01-04 John Baldwin <jhb@FreeBSD.org>
18381 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
18382 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
18384 2017-01-04 John Baldwin <jhb@FreeBSD.org>
18386 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
18387 * NEWS: Mention new FreeBSD/mips native configuration.
18388 * config/mips/fbsd.mh: New file.
18389 * configure.host: Add mips*-*-freebsd*.
18390 * mips-fbsd-nat.c: New file.
18392 2017-01-04 John Baldwin <jhb@FreeBSD.org>
18394 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
18395 (ALLDEPFILES): Add mips-fbsd-tdep.c.
18396 * NEWS: Mention new FreeBSD/mips target.
18397 * configure.tgt: Add mips*-*-freebsd*.
18398 * mips-fbsd-tdep.c: New file.
18399 * mips-fbsd-tdep.h: New file.
18401 2017-01-04 Yao Qi <yao.qi@linaro.org>
18403 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
18404 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
18406 2017-01-01 Joel Brobecker <brobecker@adacore.com>
18408 Update copyright year range in all GDB files.
18410 2017-01-01 Joel Brobecker <brobecker@adacore.com>
18412 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
18414 For older changes see ChangeLog-2016.
18420 version-control: never