1 2017-12-23 Simon Marchi <simon.marchi@polymtl.ca>
3 * target-descriptions.c (print_c_tdesc)
4 <printf_field_type_assignment>: Add ATTRIBUTE_PRINTF.
6 2017-12-21 Simon Marchi <simon.marchi@ericsson.com>
7 Sergio Durigan Junior <sergiodj@redhat.com>
9 * target-descriptions.c (print_c_tdesc) <visit>: Don't output
10 field_type declaration, use printf_field_type_assignment
12 <printf_field_type_assignment>: New method.
13 * features/aarch64-core.c, features/aarch64-fpu.c
14 features/arc-arcompact.c, features/arc-v2.c,
15 features/arm/arm-with-iwmmxt.c, features/i386/32bit-core.c,
16 features/i386/32bit-mpx.c, features/i386/32bit-sse.c,
17 features/i386/64bit-avx512.c, features/i386/64bit-core.c,
18 features/i386/64bit-mpx.c, features/i386/64bit-sse.c,
19 features/i386/x32-core.c, features/or1k.c,
20 features/rs6000/powerpc-7400.c,
21 features/rs6000/powerpc-altivec32.c,
22 features/rs6000/powerpc-altivec32l.c,
23 features/rs6000/powerpc-altivec64.c,
24 features/rs6000/powerpc-altivec64l.c,
25 features/rs6000/powerpc-cell32l.c,
26 features/rs6000/powerpc-cell64l.c,
27 features/rs6000/powerpc-isa205-altivec32l.c,
28 features/rs6000/powerpc-isa205-altivec64l.c,
29 features/rs6000/powerpc-isa205-vsx32l.c,
30 features/rs6000/powerpc-isa205-vsx64l.c,
31 features/rs6000/powerpc-vsx32.c,
32 features/rs6000/powerpc-vsx32l.c,
33 features/rs6000/powerpc-vsx64.c,
34 features/rs6000/powerpc-vsx64l.c, features/s390-gs-linux64.c,
35 features/s390-tevx-linux64.c, features/s390-vx-linux64.c,
36 features/s390x-gs-linux64.c, features/s390x-tevx-linux64.c,
37 features/s390x-vx-linux64.c: Re-generate.
39 2017-12-20 Uros Bizjak <ubizjak@gmail.com>
41 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Remove
42 write-only assignment to "insn" variable.
44 2017-12-20 Ulrich Weigand <uweigand@de.ibm.com>
46 * spu-tdep.c (spu_gdbarch_init): Set set_gdbarch_significant_addr_bit
48 (ppc_linux_init_abi): Likewise, if Cell/B.E. is supported.
50 2017-12-18 Joel Brobecker <brobecker@adacore.com>
52 * ada-lang.c (ada_to_fixed_type_1): Rethrow errors with
53 a more detailed exception message when getting an exception
54 while trying to read the value of an XVZ variable.
55 * ada-valprint.c (ada_val_print): Only catch RETURN_MASK_ERROR
56 exceptions. Print an error message when an exception is caught.
58 2017-12-18 Joel Brobecker <brobecker@adacore.com>
60 * ada-lang.c (assign_component): Strip any TYPE_CODE_TYPEDEF
62 (assign_aggregate): Likewise.
64 2017-12-18 Xavier Roirand <roirand@adacore.com>
66 * ada-lang.c (ada_convert_actual): Change the way actual value
67 are passed to the inferior when the inferior expects a pointer type.
69 2017-12-17 Stafford Horne <shorne@gmail.com>
71 * gdb/or1k-tdep.c (show_or1k_debug): Fix function parameter alignment.
72 (or1k_analyse_inst): Likewise.
73 (or1k_single_step_through_delay): Likewise.
74 (or1k_frame_cache): Fix parameter alignment and use paddress()
77 2017-12-17 Stafford Horne <shorne@gmail.com>
79 * NEWS (Changes since GDB 8.0): Mention new or1k target and new
80 commands to set/show or1k debug.
82 2017-12-15 Sergio Durigan Junior <sergiodj@redhat.com>
84 * typeprint.c (whatis_exp): Fix ARI warning and reindent "if"
87 2017-12-15 Sergio Durigan Junior <sergiodj@redhat.com>
88 Pedro Alves <palves@redhat.com>
91 * NEWS (Changes since GDB 8.0): Mention new '/o' flag.
92 * c-typeprint.c (OFFSET_SPC_LEN): New define.
93 (c_type_print_varspec_prefix): New argument 'struct
95 (c_type_print_base_1): New function and prototype.
96 (c_print_type_1): New function, with code from 'c_print_type'.
97 (c_print_type): Use 'c_print_type_1'.
98 (c_type_print_varspec_prefix): New argument 'struct
99 print_offset_data *'. Use it. Call 'c_type_print_base_1'
100 instead of 'c_print_type_base'.
101 (print_spaces_filtered_with_print_options): New function.
102 (output_access_specifier): Take new argument FLAGS. Modify
103 function to call 'print_spaces_filtered_with_print_options'.
104 (c_print_type_vtable_offset_marker): New function.
105 (c_print_type_union_field_offset): New function.
106 (c_print_type_struct_field_offset): New function.
107 (c_print_type_no_offsets): New function.
108 (c_type_print_base_struct_union): New argument 'struct
109 print_offset_data *'. Print offsets and sizes for
110 struct/union/class fields.
111 * typeprint.c (const struct type_print_options
112 type_print_raw_options): Initialize 'print_offsets'.
113 (static struct type_print_options default_ptype_flags):
115 (struct print_offset_data print_offset_default_data): New
117 (whatis_exp): Handle '/o' option.
118 (_initialize_typeprint): Add '/o' flag to ptype's help.
119 * typeprint.h (struct print_offset_data): New struct.
120 (struct type_print_options) <print_offsets>: New field.
122 2017-12-15 Sergio Durigan Junior <sergiodj@redhat.com>
124 * c-typeprint.c (need_access_label_p): New function.
125 (c_type_print_base_struct_union): New function.
126 (c_type_print_base): Move code to handle
127 TYPE_CODE_{STRUCT,UNION} to the functions mentioned above.
129 2017-12-15 Richard Henderson <rth@redhat.com>
130 Uros Bizjak <ubizjak@gmail.com>
133 * alpha-tdep.c (alpha_software_single_step): Call
134 alpha_deal_with_atomic_sequence here.
135 (set_gdbarch_software_single_step): Set to
136 alpha_software_single_step.
137 * nat/linux-ptrace.h [__alpha__]: Define GDB_ARCH_IS_TRAP_BRKPT
138 and GDB_ARCH_IS_TRAP_HWBKPT.
140 2017-12-15 Yao Qi <yao.qi@linaro.org>
142 * unittests/memory-map-selftests.c: Wrap test with HAVE_LIBEXPAT.
144 2017-12-15 Xavier Roirand <roirand@adacore.com>
146 * ada-lang.c (ada_value_primitive_field): Handle field search
148 (find_struct_field): Ditto.
149 (ada_search_struct_field): Ditto.
150 (ada_value_struct_elt): Ditto.
151 (ada_lookup_struct_elt_type): Ditto.
153 2017-12-14 Simon Marchi <simon.marchi@ericsson.com>
155 * python/py-breakpoint.c (bppy_init): Use 'O' format specifier
156 for "qualified" and use PyObject_IsTrue.
158 2017-12-14 Jan Kratochvil <jan.kratochvil@redhat.com>
160 * dwarf2read.c (dw2_debug_names_iterator::next): Support
162 (debug_names::dwarf5_offset_size, unit_kind): New.
163 (debug_names::insert): Add parameter kind.
164 (debug_names::build): Support DW_IDX_type_unit.
165 (debug_names::recursively_write_psymbols): Update
166 (debug_names::write_psymbols caller.
167 (debug_names::write_one_signatured_type_data)
168 (debug_names::write_one_signatured_type): New.
169 (debug_names::index_key, debug_names::symbol_value)
170 (debug_names::write_psymbols): Add kind.
171 (debug_names::write_one_signatured_type): New.
172 (write_debug_names): Move dwarf5_offset_size to debug_names.
173 Use debug_names::write_one_signatured_type for type units.
175 2017-12-14 Joel Brobecker <brobecker@adacore.com>
177 * ada-lang.c (ada_value_equal): Add handling of typedef types
178 when comparing array objects.
180 2017-12-14 Joel Brobecker <brobecker@adacore.com>
182 * ada-tasks.c (read_atcb): Properly set task_info->ptid
183 when !target_has_execution as well.
184 (task_command): Remove error when !target_has_execution.
186 2017-12-13 Simon Marchi <simon.marchi@ericsson.com>
188 * location.h (string_to_event_location): Add match_type
190 * location.c (string_to_event_location): Likewise.
191 * python/py-breakpoint.c (bppy_init): Handle qualified
194 2017-12-13 Pedro Alves <palves@redhat.com>
196 * completer.c (completion_tracker::maybe_add_completion): New
197 'text' and 'word' parameters. Use make_completion_match_str.
198 (completion_tracker::add_completion): New 'text' and 'word'
199 parameters. Pass down.
200 (completion_tracker::recompute_lowest_common_denominator): Change
201 parameter type to gdb::unique_xmalloc_ptr rval ref. Adjust.
202 * completer.h (completion_tracker::add_completion): New 'text' and
204 (completion_tracker::recompute_lowest_common_denominator): Change
205 parameter type to gdb::unique_xmalloc_ptr rval ref.
206 (completion_tracker::recompute_lowest_common_denominator): Change
207 parameter type to gdb::unique_xmalloc_ptr rval ref.
208 * symtab.c (completion_list_add_name): Pass down 'text' and 'word'
211 2017-12-13 Pedro Alves <palves@redhat.com>
213 * cli/cli-decode.c (complete_on_cmdlist, complete_on_enum): Use
214 make_completion_match_str.
215 * completer.c: Use gdb::unique_xmalloc_ptr and
216 make_completion_match_str.
217 (make_completion_match_str_1): New.
218 (make_completion_match_str(const char *, const char *,
220 (make_completion_match_str(gdb::unique_xmalloc_ptr<char> &&,
221 const char *, const char *)): New.
222 * completer.h (make_completion_match_str(const char *,
223 const char *, const char *)): New.
224 (make_completion_match_str(gdb::unique_xmalloc_ptr<char> &&,
225 const char *, const char *)): New.
226 * interps.c (interpreter_completer): Use make_completion_match_str.
227 * symtab.c (completion_list_add_name, add_filename_to_list): Use
228 make_completion_match_str.
230 2017-12-13 Stafford Horne <shorne@gmail.com>
232 * or1k-tdep.c (or1k_analyse_inst): Use _() wrapper for message
234 (or1k_unwind_pc): Use paddress() instead of %p.
235 (or1k_unwind_sp): Likewise.
236 (or1k_frame_cache): Use host_address_to_string()/paddress()
237 instead of %p and use _() wrapper for message strings.
239 2017-12-13 Simon Marchi <simon.marchi@ericsson.com>
241 * contrib/ari/gdb_ari.sh: Fix typo in help.
243 2017-12-13 Joel Brobecker <brobecker@adacore.com>
245 * event-top.c (handle_line_of_input): Set server_command.
247 2017-12-12 Stafford Horne <shorne@gmail.com>
248 Stefan Wallentowitz <stefan@wallentowitz.de>
249 Stefan Kristiansson <stefan.kristiansson@saunalahti.fi>
250 Franck Jullien <franck.jullien@gmail.com>
251 Jeremy Bennett <jeremy.bennett@embecosm.com>
253 * configure.tgt: Add targets for or1k and or1knd.
254 * or1k-tdep.c: New file.
255 * or1k-tdep.h: New file.
256 * features/Makefile: Add or1k.xml to build.
257 * features/or1k.xml: New file.
258 * features/or1k-core.xml: New file.
259 * features/or1k.c: Generated.
261 2017-12-12 Alan Modra <amodra@gmail.com>
264 * ppc64-tdep.c (ppc64_plt_entry_point): Rewrite to take TOC-relative
265 PLT offset, and retrieve r2 from stack when executing in reverse.
266 (ppc64_standard_linkage1_target): Drop pc param. Calculate offset
267 rather than PLT address.
268 (ppc64_standard_linkage2_target): Likewise.
269 (ppc64_standard_linkage3_target): Likewise.
270 (ppc64_standard_linkage4_target): Likewise.
271 (ppc64_skip_trampoline_code_1): Adjust to suit.
273 2017-12-11 Simon Marchi <simon.marchi@ericsson.com>
276 * remote.c (remote_thread_name): Return NULL if name is empty.
277 (remote_threads_extra_info): Return NULL if extra info is empty.
279 2017-12-11 Pedro Alves <palves@redhat.com>
281 * defs.h (elf_sym_fns_lazy_psyms, elf_sym_fns_gdb_index)
282 (elf_sym_fns_debug_names): Move to elfread.c.
283 * dwarf2read.c (dwarf2_initialize_objfile): Return a boolean
284 instead of a sym_fns and add 'index_kind' output parameter. Fill
285 the latter in with the index variant kind if using an index.
286 (enum dw_index_kind): Moved to symfile.h.
287 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_debug_names)
288 (elf_sym_fns_lazy_psyms): Move from defs.h.
289 (elf_symfile_read): Adjust to new dwarf2_initialize_objfile
291 * symfile.h (enum class dw_index_kind): New, moved from
293 (dwarf2_initialize_objfile): Change prototype.
295 2017-12-11 Ulrich Weigand <uweigand@de.ibm.com>
297 * target-float.c (mpfr_float_ops::from_target): Use mpfr_set_ui
298 instead of mpfr_set_si to convert mantissa bits.
300 2017-12-11 Xavier Roirand <roirand@adacore.com>
301 Joel Brobecker <brobecker@adacore.com>
303 * ada-lang.c (ada_tag_value_at_base_address): Change the way
304 tagged type base address is computed.
305 (enum ada_primitive_types) <ada_primitive_type_storage_offset>:
307 (ada_language_arch_info): Set the ada_primitive_type_storage_offset
308 element of lai->primitive_type_vector.
310 2017-12-08 Pedro Alves <palves@redhat.com>
312 * dwarf2read.c (mock_mapped_index): Reimplement as an extension of
314 (check_match): Adjust to use mock_index directly.
315 (check_find_bounds_finds)
316 (test_mapped_index_find_name_component_bounds): Adjust to work
317 with a mapped_index_base.
319 2017-12-08 Pedro Alves <palves@redhat.com>
321 * dwarf2read.c (struct mapped_index_base): New, partially factored
323 (struct mapped_index): ... this. Inherit mapped_index_base.
324 (mapped_index::symbol_name_slot_invalid):
325 (mapped_index::symbol_name_at): Add override marker.
326 (mapped_index::symbol_name_count): New.
327 (struct mapped_debug_names): Inherit mapped_index_base.
328 (mapped_debug_names::symbol_name_at): New.
329 (mapped_debug_names::symbol_name_count): New.
330 (mapped_index::find_name_components_bounds): Rename to ...
331 (mapped_index_base::find_name_components_bounds): ... this.
332 (mapped_index::build_name_components): Rename to ...
333 (mapped_index_base::build_name_components): ... this. Adjust to
334 use mapped_index_base::symbol_name_count and
335 mapped_index_base::symbol_name_slot_invalid.
336 (dw2_expand_symtabs_matching_symbol): Take a mapped_index_base
337 instead of a mapped_index. Use
338 dw2_expand_symtabs_matching_symbol.
340 2017-12-08 Pedro Alves <palves@redhat.com>
342 * dwarf2read.c (mapped_index::symbol_table_slot): New.
343 (mapped_index::address_table): Now a gdb::array_view of const
345 (mapped_index::symbol_table): Now a gdb::array_view of
347 (mapped_index::address_table_size)
348 (mapped_index::symbol_table_slots): Delete.
349 (create_addrmap_from_index): Adjust.
350 (find_slot_in_mapped_hash): Adjust.
351 (read_index_from_section): Adjust.
352 (dwarf2_read_index): Adjust.
354 2017-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
355 Pedro Alves <palves@redhat.com>
357 * defs.h (elf_sym_fns_debug_names): New declaration.
358 * dwarf2read.c: Include "hash_enum.h".
359 (mapped_debug_names): New.
360 (struct dwarf2_per_objfile): Add debug_names, debug_aranges and
362 (dwarf2_elf_names): Add ".debug_names" and ".debug_aranges".
363 (struct dwz_file): Add debug_names.
364 (dwarf2_per_objfile::locate_sections): Handle debug_names and
366 (locate_dwz_sections): Handle debug_names.
367 (create_signatured_type_table_from_debug_names)
368 (create_addrmap_from_aranges): New.
369 (dwarf2_read_index): Update function comment.
370 (dwarf5_augmentation): Moved up.
371 (read_debug_names_from_section, create_cus_from_debug_names_list)
372 (create_cus_from_debug_names, dwarf2_read_debug_names): New.
373 (dwarf5_djb_hash): Moved up.
374 (dw2_debug_names_iterator): New.
375 (read_indirect_string_at_offset): New declaration.
376 (mapped_debug_names::namei_to_name)
377 (dw2_debug_names_iterator::find_vec_in_debug_names)
378 (dw2_debug_names_iterator::next, dw2_debug_names_lookup_symbol)
379 (dw2_debug_names_dump, dw2_debug_names_expand_symtabs_for_function)
380 (dw2_debug_names_expand_symtabs_matching, dwarf2_debug_names_functions):
382 (dwarf2_initialize_objfile): Return also elf_sym_fns_debug_names.
383 (debug_names::djb_hash): Rename it to dwarf5_djb_hash.
384 (debug_names::build): Update djb_hash caller.
385 (write_debug_names): Move out and rename augmentation to
387 * elfread.c (elf_sym_fns_debug_names): New.
388 * psymtab.h (dwarf2_debug_names_functions): New declaration.
389 * symfile.h (struct dwarf2_debug_sections): Add debug_names and
391 * xcoffread.c (dwarf2_xcoff_names): Add debug_names and debug_aranges.
393 2017-12-08 Pedro Alves <palves@redhat.com>
395 * common/hash_enum.h: New file.
397 2017-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
399 * dwarf2read.c (create_cu_from_index_list): New from ...
400 (create_cus_from_index_list): ... this function, use it.
401 (dw_expand_symtabs_matching_file_matcher)
402 (dw2_expand_symtabs_matching_one): New from ...
403 (dw2_expand_symtabs_matching): ... this function, use them.
405 2017-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
407 * defs.h (elf_sym_fns_lazy_psyms, elf_sym_fns_gdb_index): Move here
408 declarations from elfread.c.
409 (dwarf2_initialize_objfile): Change return value.
410 * elfread.c (elf_sym_fns_lazy_psyms, elf_sym_fns_gdb_index): Move these
411 declarations to defs.h.
412 (elf_symfile_read): Adjust dwarf2_initialize_objfile caller.
413 * symfile.h (dwarf2_initialize_objfile): Change return type.
415 2017-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
416 Pedro Alves <palves@redhat.com>
418 * contrib/gdb-add-index.sh (index): Rename to ...
420 (index5, debugstr, debugstrmerge, debugstrerr): New variables.
421 Support also .debug_names and .debug_str.
422 * dwarf2read.c: Include cmath, set, list.
423 (INDEX_SUFFIX): Rename to ...
424 (INDEX4_SUFFIX): ... here.
425 (INDEX5_SUFFIX, DEBUG_STR_SUFFIX): New.
426 (file_write(FILE *, const void *, size_t)): New.
427 (file_write(FILE *, const std::vector<Elem, Alloc> &)): New.
428 (data_buf::append_unsigned_leb128, data_buf::empty): New.
429 (data_buf::file_write): Use ::file_write.
430 (data_buf::c_str, dwarf5_djb_hash, debug_names)
431 (check_dwarf64_offsets): New.
432 (psyms_seen_size, write_gdbindex): New from
433 write_psymtabs_to_index code.
434 (dwarf5_gdb_augmentation, write_debug_names, assert_file_size)
435 (enum dw_index_kind): New.
436 (write_psymtabs_to_index): New parameter index_kind. Support
437 filename_str and out_file_str. Move code to write_gdbindex,
438 possibly call write_debug_names.
439 (save_gdb_index_command): New parameter -dwarf-5.
440 (_initialize_dwarf2_read): Document the new parameter -dwarf-5.
442 2017-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
443 Pedro Alves <palves@redhat.com>
445 * contrib/cc-with-tweaks.sh: Change interpreter to bash, incl. initial
447 (GDB_ADD_INDEX): New variable.
448 <$want_index>: Call $GDB_ADD_INDEX.
450 2017-12-08 Sergio Durigan Junior <sergiodj@redhat.com>
452 * dtrace-probe.c (dtrace_process_dof_probe): Do not declare a new
453 "expression_up" inside the TRY block.
455 2017-12-08 Yao Qi <yao.qi@linaro.org>
457 * breakpoint.c (update_watchpoint): Call
460 2017-12-08 Yao Qi <yao.qi@linaro.org>
462 * breakpoint.c (adjust_breakpoint_address): Call
465 2017-12-08 Yao Qi <yao.qi@linaro.org>
467 * aarch64-tdep.c (aarch64_gdbarch_init): Install gdbarch
468 significant_addr_bit.
469 * gdbarch.sh (significant_addr_bit): New.
470 * gdbarch.c, gdbarch.h: Re-generated.
471 * target.c (memory_xfer_partial): Call address_significant.
472 * utils.c (address_significant): New function.
473 * utils.h (address_significant): Declare.
475 2017-12-08 Tom Tromey <tom@tromey.com>
477 * printcmd.c (ui_printf): Update. Use std::vector.
478 * common/format.h (struct format_piece): Add constructor.
480 (class format_pieces): New class.
481 (parse_format_string, free_format_pieces)
482 (free_format_pieces_cleanup): Remove.
483 * common/format.c (format_pieces::format_pieces): Rename from
484 parse_format_string. Update.
485 (free_format_pieces, free_format_pieces_cleanup): Remove.
486 * breakpoint.c (parse_cmd_to_aexpr): Update. Use std::vector.
487 * ax-gdb.h (gen_printf): Remove argument.
488 * ax-gdb.c (gen_printf): Remove "frags" argument.
489 (maint_agent_printf_command): Update. Use std::vector.
491 2017-12-08 Yao Qi <yao.qi@linaro.org>
494 * linespec.c (minsym_found): Set sal.section.
496 2017-12-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
498 * configure.tgt (s390*-*-linux*): Add symfile-mem.o.
500 2017-12-07 Keith Seitz <keiths@redhat.com>
503 * location.c (string_to_explicit_location): When terminating
504 parsing early, break out of enclosing loop instead of returning.
506 2017-12-07 Keith Seitz <keiths@redhat.com>
508 * NEWS (New commands): Mention set/show print type nested-type-limit.
509 * c-typeprint.c (c_type_print_base): Print out nested types.
510 * dwarf2read.c (struct typedef_field_list): Rename to ...
511 (struct decl_field_list): ... this. Change all uses.
512 (struct field_info) <nested_types_list, nested_types_list_count>:
514 (add_partial_symbol): Look for nested type definitions in C++, too.
515 (dwarf2_add_typedef): Rename to ...
516 (dwarf2_add_type_defn): ... this.
517 (type_can_define_types): New function.
518 Update assertion to use type_can_define_types.
519 Permit NULL for a field's name.
520 (process_structure_scope): Handle child DIEs of types that can
522 Copy the list of nested types into the type struct.
523 * gdbtypes.h (struct typedef_field): Rename to ...
524 (struct decl_field): ... this. Change all uses.
525 [is_protected, is_private]: New fields.
526 (struct cplus_struct_type) <nested_types, nested_types_count>: New
528 (TYPE_NESTED_TYPES_ARRAY, TYPE_NESTED_TYPES_FIELD)
529 (TYPE_NESTED_TYPES_FIELD_NAME, TYPE_NESTED_TYPES_FIELD_TYPE)
530 (TYPE_NESTED_TYPES_COUNT, TYPE_NESTED_TYPES_FIELD_PROTECTED)
531 (TYPE_NESTED_TYPES_FIELD_PRIVATE): New macros.
532 * typeprint.c (type_print_raw_options, default_ptype_flags): Add
533 default value for print_nested_type_limit.
534 (print_nested_type_limit): New static variable.
535 (set_print_type_nested_types, show_print_type_nested_types): New
537 (_initialize_typeprint): Register new commands for set/show
538 `print-nested-type-limit'.
539 * typeprint.h (struct type_print_options) [print_nested_type_limit]:
542 2017-12-07 Tom Tromey <tom@tromey.com>
544 PR breakpoints/22511:
545 * breakpoint.c (commands_command_1): Don't throw an exception when
546 no commands have been read.
548 2017-12-07 Adam Stylinski <adam.stylinski@etegent.com>
551 * target-descriptions.c (print_c_tdesc::visit_pre): Change type of
554 2017-12-07 Simon Marchi <simon.marchi@ericsson.com>
556 * common/selftest.h (struct selftest): Add virtual destructor.
558 2017-12-07 Phil Muldoon <pmuldoon@redhat.com>
560 * python/py-breakpoint.c (bppy_init): Use string_to_event_location
561 over basic location code. Implement explicit location keywords.
562 (bppy_init_validate_args): New function.
563 * NEWS: Document Python explicit breakpoint locations.
565 2017-12-07 Joel Brobecker <brobecker@adacore.com>
567 * MAINTAINERS: Restore target entries for m68hc11-elf,
568 score-elf and xstormy16-elf, incorrectly removed in a previous
569 patch meant to only update the list of active maintainers.
571 2017-12-06 Pedro Alves <palves@redhat.com>
573 * break-catch-syscall.c (insert_catch_syscall)
574 (remove_catch_syscall): Adjust to pass reference to
575 inf_data->syscalls_counts directly via gdb::array_view.
576 * fbsd-nat.c (fbsd_set_syscall_catchpoint): Adjust to use bool
578 * linux-nat.c (linux_child_set_syscall_catchpoint): Likewise.
579 * remote.c (remote_set_syscall_catchpoint): Likewise.
580 * target-debug.h (target_debug_print_bool): New.
581 (define target_debug_print_gdb_array_view_const_int): New.
582 * target-delegates.c: Regenerate.
583 * target.h (target_ops) <to_set_syscall_catchpoint>: Use
584 gdb::array_view and bool.
585 (target_set_syscall_catchpoint): Likewise.
587 2017-12-06 Simon Marchi <simon.marchi@ericsson.com>
589 * break-catch-syscall.c (catch_syscall_completer): Get pointers
590 to syscall group strings after building the string vector.
592 2017-12-06 Pedro Alves <palves@redhat.com>
594 * remote.c (remote_query_supported): Don't send "xmlRegisters=" if
595 "qXfer:features:read"" is disabled.
596 (remote_write_qxfer, remote_read_qxfer, remote_search_memory):
597 Check packet_config_support instead of packet->support directly.
599 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
601 * target-descriptions.c (struct tdesc_feature) <registers>: Use
602 tdesc_reg_up typedef.
603 (struct target_desc) <features>: Use tdesc_feature_up typedef.
605 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
607 * target-descriptions.c (struct tdesc_type): Use default
611 (struct tdesc_type_builtin): New.
612 (struct tdesc_type_vector): New.
613 (struct tdesc_type_with_fields): New.
614 (tdesc_predefined_types): Change type to tdesc_type_builtin[].
615 (tdesc_gdb_type): Remove.
616 (tdesc_register_type): Adjust.
617 (tdesc_create_vector): Create tdesc_type_vector.
618 (tdesc_create_struct): Create tdesc_type_with_fields.
619 (tdesc_set_struct_size): Change parameter type.
620 (tdesc_create_union): Create tdesc_type_with_fields.
621 (tdesc_create_flags): Likewise.
622 (tdesc_create_enum): Likewise.
623 (tdesc_add_field): Change parameter type.
624 (tdesc_add_typed_bitfield): Likewise.
625 (tdesc_add_bitfield): Likewise.
626 (tdesc_add_flag): Likewise.
627 (tdesc_add_enum_value): Likewise.
628 (print_c_tdesc) <visit>: Remove overload with tdesc_type
629 parameter, add overloads for tdesc_type_builtin,
630 tdesc_type_with_fields and tdesc_type_vector.
631 <m_printed_type>: Remove.
632 <m_printed_element_type, m_printed_type_with_fields>: Add.
633 * target-descriptions.h (tdesc_create_enum): Change return type.
634 (tdesc_add_typed_bitfield): Change parameter type.
635 (tdesc_add_enum_value): Change parameter type.
636 * xml-tdesc.c (struct tdesc_parsing_data) <current_type>: Change
637 type to tdesc_type_with_fields.
638 (tdesc_start_struct): Adjust.
639 (tdesc_start_flags): Adjust.
640 (tdesc_start_enum): Adjust.
641 (tdesc_start_field): Adjust.
642 * arch/tdesc.h (struct tdesc_type_builtin): Forward-declare.
643 (struct tdesc_type_vector): Forward-declare.
644 (struct tdesc_type_with_fields): Forward-declare.
645 (tdesc_create_struct): Change return type.
646 (tdesc_create_union): Likewise.
647 (tdesc_create_flags): Likewise.
648 (tdesc_add_field): Change parameter type.
649 (tdesc_set_struct_size): Likewise.
650 (tdesc_add_bitfield): Likewise.
651 (tdesc_add_flag): Likewise.
652 * features: Re-generate C files.
654 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
656 * target-descriptions.c (tdesc_arch_reg): Remove typedef.
657 (struct tdesc_arch_reg): Add constructor.
658 (DEF_VEC_O (tdesc_arch_reg)): Remove.
659 (struct tdesc_arch_data): Initialize fields.
660 <arch_regs>: Change type to std::vector.
661 (target_find_description): Adjust.
662 (tdesc_find_type): Adjust.
663 (tdesc_data_init): Call tdesc_arch_data constructor.
664 (tdesc_data_alloc): Allocate tdesc_arch_data with new.
665 (tdesc_data_cleanup): Free data with delete.
666 (tdesc_numbered_register): Adjust.
667 (tdesc_find_arch_register): Adjust.
668 (tdesc_use_registers): Adjust.
670 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
672 * target-descriptions.c (tdesc_type_field): Remove typedef.
673 (DEF_VEC_O (tdesc_type_field)): Remove.
674 (struct tdesc_type_field): Add constructor.
675 <name>: Change type to std::string.
676 (struct tdesc_type) <tdesc_type>: Instantiate vector if the type
678 <~tdesc_type>: Destroy vector if the type kind uses it.
679 <u::u::fields>: Change type to std::vector.
680 (tdesc_gdb_type): Adjust.
681 (tdesc_add_field): Adjust.
682 (tdesc_add_typed_bitfield): Adjust.
683 (tdesc_add_field): Adjust.
684 (tdesc_add_enum_value): Adjust.
685 (class print_c_tdesc) <visit>: Adjust.
687 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
689 * target-descriptions.c (struct tdesc_type) <name>: Change type
691 <~tdesc_type>: Don't manually free name.
692 <operator==>: Adjust.
693 (tdesc_named_type): Adjust.
694 (tdesc_find_type): Adjust.
695 (tdesc_gdb_type): Adjust.
696 (class print_c_tdesc) <visit>: Adjust.
698 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
700 * target-descriptions.c (tdesc_type_p): Remove typedef.
701 (DEF_VEC_P (tdesc_type_p)): Remove.
702 (struct tdesc_feature) <types>: Change type to std::vector.
703 <~tdesc_feature>: Replace with default implementation.
705 (tdesc_named_type): Adjust.
706 (tdesc_create_vector): Adjust.
707 (tdesc_create_struct): Adjust.
708 (tdesc_create_union): Adjust.
709 (tdesc_create_flags): Adjust.
710 (tdesc_create_enum): Adjust.
712 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
714 * target-descriptions.c (struct tdesc_reg) <tdesc_reg>: Change
715 type of name_ parameter, adjust to std::string change.
716 <name, group, type>: Change type to std::string.
717 <~tdesc_reg>: Replace with default implementation.
718 <operator==>: Adjust.
719 (tdesc_find_register_early): Adjust.
720 (tdesc_register_name): Adjust.
721 (tdesc_register_type): Adjust.
722 (tdesc_register_in_reggroup_p): Adjust.
723 (class print_c_tdesc) <visit>: Adjust.
724 (class print_c_feature) <visit>: Adjust.
725 * features/arc-arcompact.c: Re-generate.
726 * features/arc-v2.c: Re-generate.
728 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
730 * target-descriptions.c (tdesc_reg_p): Remove typedef.
731 (DEF_VEC_P (tdesc_reg_p)): Remove.
732 (struct tdesc_feature) <registers>: Change type to std::vector.
733 <~tdesc_feature>: Don't manually free registers.
735 <operator==>: Adjust.
736 (tdesc_has_registers): Adjust.
737 (tdesc_find_register_early): Adjust.
738 (tdesc_use_registers): Adjust.
739 (tdesc_create_reg): Adjust.
741 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
743 * target-descriptions.c (tdesc_feature) <name>: Change type to
745 <~tdesc_feature>: Don't manually free name.
746 <operator==>: Adjust.
747 (tdesc_find_feature): Adjust.
748 (tdesc_feature_name): Adjust.
749 (class print_c_tdesc) <visit_pre>: Adjust.
750 (class print_c_feature) <visit_pre>: Adjust.
752 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
754 * target-descriptions.c (tdesc_feature_p): Remove typedef.
755 (DEF_VEC_P (tdesc_feature_p)): Remove.
756 (struct target_desc) <features>: Change type to std::vector.
757 <~target_desc>: Replace with default implementation.
759 <operator==>: Adjust.
760 (tdesc_has_registers): Adjust.
761 (tdesc_find_feature): Adjust.
762 (tdesc_use_registers): Adjust.
763 (tdesc_create_feature): Adjust.
765 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
767 * target-descriptions.c (arch_p): Remove typedef.
768 (DEF_VEC_P (arch_p)): Remove.
769 (struct target_desc) <compatible>: Change type to std::vector.
770 <~target_desc>: Don't manually free compatible.
771 (tdesc_compatible_p): Adjust.
772 (tdesc_add_compatible): Adjust.
773 (class print_c_tdesc) <visit_pre>: Adjust.
775 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
777 * target-descriptions.c (property_s): Remove typedef.
778 (DEF_VEC_O (property_s)): Remove.
779 (struct target_desc) <properties>: Make an std::vector.
780 <~target_desc>: Don't manually free properties.
781 (tdesc_property): Adjust.
782 (set_tdesc_property): Adjust.
783 (class print_c_tdesc) <visit_pre>: Adjust.
785 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
787 * common/gdb_assert.h (gdb_static_assert): Redefine using
790 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
792 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
794 (ada_is_redundant_range_encoding): Likewise.
795 * ada-varobj.c (ada_varobj_get_value_of_array_variable):
797 * alpha-tdep.c (alpha_software_single_step): Likewise.
798 * arm-tdep.c (_initialize_arm_tdep): Likewise.
799 * auto-load.c (info_auto_load_cmd): Likewise.
800 * break-catch-syscall.c (insert_catch_syscall): Likewise.
801 (remove_catch_syscall): Likewise.
802 * breakpoint.c (condition_completer): Likewise.
803 (clear_command): Likewise.
804 (update_breakpoint_locations): Likewise.
805 * btrace.c (btrace_disable): Likewise.
806 (btrace_teardown): Likewise.
807 (btrace_maint_update_pt_packets): Likewise.
808 (maint_btrace_clear_cmd): Likewise.
809 * cli/cli-decode.c (lookup_cmd_1): Likewise.
810 (lookup_cmd_composition): Likewise.
811 * cli/cli-dump.c (scan_filename): Likewise.
812 (restore_command): Likewise.
813 * compile/compile-loc2c.c (compute_stack_depth): Likewise.
814 * compile/compile-object-load.c (compile_object_load): Likewise.
815 * compile/compile-object-run.c (compile_object_run): Likewise.
816 * compile/compile.c (compile_to_object): Likewise.
817 * completer.c (filename_completer): Likewise.
818 (complete_files_symbols): Likewise.
819 (complete_expression): Likewise.
820 * corelow.c (core_open): Likewise.
821 * ctf.c (ctf_start): Likewise.
822 (ctf_write_status): Likewise.
823 (ctf_write_uploaded_tsv): Likewise.
824 (ctf_write_definition_end): Likewise.
825 (ctf_open_dir): Likewise.
826 (ctf_xfer_partial): Likewise.
827 (ctf_trace_find): Likewise.
828 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
830 * dwarf2loc.c (allocate_piece_closure): Likewise.
831 (indirect_pieced_value): Likewise.
832 (dwarf2_evaluate_loc_desc_full): Likewise.
833 * dwarf2read.c (dw2_expand_marked_cus): Likewise.
834 (dw2_expand_symtabs_matching): Likewise.
835 (dw2_map_symbol_filenames): Likewise.
836 (read_and_check_comp_unit_head): Likewise.
837 (read_cutu_die_from_dwo): Likewise.
838 (lookup_dwo_unit): Likewise.
839 (read_comp_units_from_section): Likewise.
840 (dwarf2_compute_name): Likewise.
841 (handle_DW_AT_stmt_list): Likewise.
842 (create_cus_hash_table): Likewise.
843 (create_dwp_v2_section): Likewise.
844 (dwarf2_rnglists_process): Likewise.
845 (dwarf2_ranges_process): Likewise.
846 (dwarf2_record_block_ranges): Likewise.
847 (is_vtable_name): Likewise.
848 (read_formatted_entries): Likewise.
849 (skip_form_bytes): Likewise.
850 * elfread.c (elf_symtab_read): Likewise.
851 * exec.c (exec_file_command): Likewise.
852 * f-valprint.c (f_val_print): Likewise.
853 (info_common_command_for_block): Likewise.
854 * guile/guile.c (initialize_scheme_side): Likewise.
855 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Likewise.
856 * guile/scm-cmd.c (cmdscm_completer): Likewise.
857 (gdbscm_register_command_x): Likewise.
858 * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
859 * guile/scm-param.c (gdbscm_parameter_value): Likewise.
860 * guile/scm-ports.c (file_port_magic): Likewise.
861 * guile/scm-pretty-print.c (ppscm_search_pp_list): Likewise.
862 (ppscm_pretty_print_one_value): Likewise.
863 (ppscm_print_children): Likewise.
864 * guile/scm-string.c (gdbscm_string_to_argv): Likewise.
865 * guile/scm-symtab.c (gdbscm_sal_symtab): Likewise.
866 * guile/scm-type.c (gdbscm_type_next_field_x): Likewise.
867 * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
868 * i386-tdep.c (i386_register_reggroup_p): Likewise.
869 * infcmd.c (run_command_1): Likewise.
870 (until_next_fsm_clean_up): Likewise.
871 * linespec.c (linespec_complete): Likewise.
872 (find_label_symbols): Likewise.
873 * m2-valprint.c (m2_val_print): Likewise.
874 * memattr.c (require_user_regions): Likewise.
875 (lookup_mem_region): Likewise.
876 (disable_mem_command): Likewise.
877 (mem_delete): Likewise.
878 * mep-tdep.c (mep_register_name): Likewise.
879 (mep_analyze_prologue): Likewise.
880 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Likewise.
881 * mi/mi-interp.c (mi_on_sync_execution_done): Likewise.
882 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
883 * microblaze-linux-tdep.c (microblaze_linux_init_abi): Likewise.
884 * minidebug.c (lzma_open): Likewise.
885 * minsyms.c (lookup_minimal_symbol): Likewise.
886 * mips-linux-tdep.c (mips64_fill_fpregset): Likewise.
887 * mips-tdep.c (mips_stub_frame_sniffer): Likewise.
888 (mips_o64_return_value): Likewise.
889 (mips_single_step_through_delay): Likewise.
890 (_initialize_mips_tdep): Likewise.
891 * nios2-tdep.c (nios2_push_dummy_call): Likewise.
892 (nios2_software_single_step): Likewise.
893 * parse.c (find_minsym_type_and_address): Likewise.
894 * psymtab.c (psym_relocate): Likewise.
895 * python/py-breakpoint.c (bppy_get_commands): Likewise.
896 (gdbpy_breakpoint_modified): Likewise.
897 * python/py-infevents.c (create_inferior_call_event_object):
899 * python/py-record-btrace.c (btpy_list_item): Likewise.
900 * python/py-type.c (typy_str): Likewise.
901 * python/py-value.c (valpy_call): Likewise.
902 * python/python.c (do_start_initialization): Likewise.
903 * record-btrace.c (record_btrace_insn_history_range): Likewise.
904 (record_btrace_call_history_range): Likewise.
905 (record_btrace_record_method): Likewise.
906 (record_btrace_xfer_partial): Likewise.
907 (btrace_get_frame_function): Likewise.
908 * record-full.c (record_full_open): Likewise.
909 * record.c (get_context_size): Likewise.
910 * registry.h (DEFINE_REGISTRY): Likewise.
911 * remote-fileio.c (remote_fileio_request): Likewise.
912 * remote.c (remote_update_thread_list): Likewise.
913 (remote_check_symbols): Likewise.
914 (remote_commit_resume): Likewise.
915 (remote_interrupt): Likewise.
916 (remote_insert_breakpoint): Likewise.
917 (compare_sections_command): Likewise.
918 * rust-exp.y (super_name): Likewise.
919 (lex_string): Likewise.
920 (convert_ast_to_type): Likewise.
921 (convert_ast_to_expression): Likewise.
922 * rust-lang.c (rust_print_struct_def): Likewise.
923 (rust_print_type): Likewise.
924 (rust_evaluate_subexp): Likewise.
925 * rx-tdep.c (rx_register_type): Likewise.
926 * ser-event.c (serial_event_clear): Likewise.
927 * serial.c (serial_open): Likewise.
928 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
929 * symfile.c (section_is_overlay): Likewise.
930 (overlay_unmapped_address): Likewise.
931 (overlay_mapped_address): Likewise.
932 (simple_overlay_update_1): Likewise.
933 (simple_overlay_update): Likewise.
934 * symtab.c (symbol_find_demangled_name): Likewise.
935 (search_symbols): Likewise.
936 * target-descriptions.c (tdesc_predefined_type): Likewise.
937 * target.c (target_commit_resume): Likewise.
938 * thread.c (print_selected_thread_frame): Likewise.
939 * top.c (new_ui_command): Likewise.
940 (gdb_readline_no_editing): Likewise.
941 * tracefile-tfile.c (tfile_open): Likewise.
942 * tracepoint.c (create_tsv_from_upload): Likewise.
943 * utils.c (quit): Likewise.
944 (defaulted_query): Likewise.
945 * valarith.c (value_concat): Likewise.
946 * xml-syscall.c (xml_list_syscalls_by_group): Likewise.
947 * xml-tdesc.c (target_fetch_description_xml): Likewise.
948 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
949 (xtensa_pseudo_register_write): Likewise.
951 2017-12-04 Tom Tromey <tom@tromey.com>
953 * NEWS: Mention Rust trait object inspection.
955 2017-12-04 Pedro Alves <palves@redhat.com>
958 * amd64-tdep.c (amd64_insn::rex_offset): Rename to...
959 (amd64_insn::enc_prefix_offset): ... this, and tweak comment.
960 (vex2_prefix_p, vex3_prefix_p): New functions.
961 (amd64_get_insn_details): Adjust to rename. Also skip VEX2 and
963 (fixup_riprel): Set VEX3.!B.
965 2017-12-03 Simon Marchi <simon.marchi@ericsson.com>
967 * target.h (mem_region_vector): Remove.
968 (struct target_ops) <to_memory_map>: Change return type to
969 std::vector<mem_region>.
970 * target-debug.h (target_debug_print_mem_region_vector): Rename
972 (target_debug_print_std_vector_mem_region): ... this.
973 * target-delegates.c: Re-generate.
975 2017-12-03 Pedro Alves <palves@redhat.com>
977 * make-target-delegates (munge_type): Also munge '<', '>', and
978 ':'. Avoid double underscores in identifiers, and trailing
981 (target_debug_print_VEC_static_tracepoint_marker_p__p): Rename to
983 (target_debug_print_VEC_static_tracepoint_marker_p_p): ... this.
984 * target-delegates.c: Regenerate.
986 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
988 * common/poison.h (XDELETE): Fix typo.
990 2017-12-01 Andrew Cagney <cagney@redhat.com>
991 Joel Brobecker <brobecker@adacore.com>
992 Sergio Durigan Junior <sergiodj@redhat.com>
994 * NEWS (Changes since GDB 8.0: Mention new '--readnever'
996 * coffread.c (coff_symfile_read): Do not map over sections with
997 'coff_locate_sections' if readnever is on.
998 * dwarf2read.c (dwarf2_has_info): Return 0 if
1000 * elfread.c (elf_symfile_read): Do not map over sections with
1001 'elf_locate_sections' if readnever is on.
1002 * main.c (validate_readnow_readnever): New function.
1003 (captured_main_1): Add support for --readnever.
1004 (print_gdb_help): Document --readnever.
1005 * objfile-flags.h (enum objfile_flag) <OBJF_READNEVER>: New
1007 * symfile.c (readnever_symbol_files): New global.
1008 (symbol_file_add_with_addrs): Set 'OBJF_READNEVER' when
1009 'READNEVER_SYMBOL_FILES' is set.
1010 (validate_readnow_readnever): New function.
1011 (symbol_file_command): Handle '-readnever' option.
1012 Call 'validate_readnow_readnever'.
1013 (add_symbol_file_command): Handle '-readnever' option.
1014 Call 'validate_readnow_readnever'.
1015 (_initialize_symfile): Document new '-readnever' option for
1016 both 'symbol-file' and 'add-symbol-file' commands.
1017 * top.h (readnever_symbol_files): New extern global.
1018 * xcoffread.c (xcoff_initial_scan): Do not read debug
1019 information if readnever is on.
1021 2017-12-01 Sergio Durigan Junior <sergiodj@redhat.com>
1023 * symfile.c (symbol_file_command): Call
1024 'symbol_file_add_main_1' only after processing all command
1026 (add_symbol_file_command): Modify logic to make arguments
1027 position-independent.
1029 2017-12-01 Joel Brobecker <brobecker@adacore.com>
1031 * ada-lang.c (symbol_list_obstack): Delete.
1032 (resolve_subexp): Make sure "candidates" gets xfree'ed.
1033 (ada_lookup_symbol_list_worker): Remove the limitation that
1034 the result is only good until the next call, now making it
1035 the responsibility of the caller to free the result when no
1036 longer needed. Adjust the function's intro comment accordingly.
1037 (ada_lookup_symbol_list): Adjust the function's intro comment.
1038 (ada_iterate_over_symbols): Make sure "results" gets xfree'ed.
1039 (ada_lookup_encoded_symbol, get_var_value): Likewise.
1040 (_initialize_ada_language): Remove symbol_list_obstack
1042 * ada-exp.y (block_lookup): Make sure "syms" gets xfree'ed.
1043 (write_var_or_type, write_name_assoc): Likewise.
1045 2017-12-01 Tom Tromey <tom@tromey.com>
1047 * Makefile.in (all_deps_files): New variable.
1048 Include .Po files using all_deps_files.
1050 2017-12-01 Joel Brobecker <brobecker@adacore.com>
1052 * MAINTAINERS: Update list of maintainers, moving those who
1053 stepped down or became inactive to the "Past Maintainers"
1056 2017-11-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1058 * configure.ac Don't check for sys/fault.h, sys/syscall.h,
1060 (NEW_PROC_API): Remove.
1061 (prsysent_t, pr_sigset_t, pr_sigaction64_t, pr_siginfo64_t):
1063 * common/common.m4 (GDB_AC_COMMON): Don't check for sys/syscall.h.
1064 * configure: Regenerate.
1065 * config.in: Regenerate.
1066 * gdbserver/configure: Regenerate.
1067 * gdbserver/config.in: Regenerate.
1069 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Remove
1071 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Likewise.
1073 * linux-btrace.c: Remove HAVE_SYS_SYSCALL_H test.
1075 * proc-api.c: Remove !NEW_PROC_API support.
1076 Remove HAVE_SYS_PROC_H and HAVE_SYS_USER_H tests.
1077 Remove tests for macros always defined on Solaris.
1078 * proc-events.c: Remove !NEW_PROC_API support.
1079 Remove Remove HAVE_SYS_SYSCALL_H, HAVE_SYS_PROC_H and
1080 HAVE_SYS_USER_H tests.
1081 (init_syscall_table): Remove non-Solaris syscalls.
1082 Remove tests for syscalls present on all Solaris versions.
1083 Add missing Solaris 10+ syscalls.
1084 (signal_table): Remove non-Solaris signals.
1085 Remove tests for signals present on all Solaris versions.
1086 (fault_table): Remove non-Solaris faults.
1087 Remove tests for faults present on all Solaris versions.
1088 * proc-flags.c: Remove !NEW_PROC_API support.
1089 (pr_flag_table): Remove non-Solaris and pre-Solaris 7 comments.
1090 Remove non-Solaris flags.
1091 * proc-why.c: Remove !NEW_PROC_API support.
1092 (pr_why_table): Remove meaningless comments.
1093 Remove tests for reasons present on all Solaris versions.
1095 (proc_prettyfprint_why): Likewise.
1097 * procfs.c: Remove !NEW_PROC_API and DYNAMIC_SYSCALLS support.
1098 Remove HAVE_SYS_FAULT_H and HAVE_SYS_SYSCALL_H tests.
1099 Remove WA_READ test, IRIX watchpoint support.
1100 (gdb_sigset_t, gdb_sigaction_t, gdb_siginfo_t): Replace by base
1101 types. Change users.
1102 (gdb_praddset, gdb_prdelset, gdb_premptysysset, gdb_praddsysset)
1103 (gdb_prdelset, gdb_pr_issyssetmember): Replace by base macros.
1105 Remove CTL_PROC_NAME_FMT tests.
1106 (gdb_prstatus_t, gdb_lwpstatus_t): Replace by base types. Change
1108 (sysset_t_size): Remove. Use sizeof (sysset_t) in callers.
1109 Remove PROCFS_DONT_PIOCSSIG_CURSIG support.
1110 (proc_modify_flag): Replace GDBRESET by PCUNSET.
1111 Remove PR_ASYNC, PR_KLC tests.
1112 (proc_unset_inherit_on_fork): Remove PR_ASYNC test.
1113 (proc_parent_pid): Remove PCWATCH etc. tests.
1114 (proc_set_watchpoint): Remove !PCWATCH && !PIOCSWATCH support.
1115 Remove PCAGENT test.
1116 (proc_get_nthreads) [PIOCNTHR && PIOCTLIST]: Remove.
1117 Remove SYS_lwpcreate || SYS_lwp_create test.
1118 (proc_get_current_thread): Likewise.
1119 [PIOCNTHR && PIOCTLIST]: Remove.
1120 [PIOCLSTATUS]: Remove.
1121 (procfs_debug_inferior): Remove non-Solaris cases, conditionals.
1122 [PRFS_STOPEXEC]: Remove.
1123 (syscall_is_lwp_exit): Remove non-Solaris cases, conditionals.
1124 (syscall_is_exit): Likewise.
1125 (syscall_is_exec): Likewise.
1126 (syscall_is_lwp_create): Likewise.
1127 Remove SYS_syssgi support.
1128 (procfs_wait): Remove PR_ASYNC, !PIOCSSPCACT tests.
1129 [SYS_syssgi]: Remove.
1130 Remove non-Solaris cases, conditionals.
1131 (unconditionally_kill_inferior) [PROCFS_NEED_PIOCSSIG_FOR_KILL]:
1133 (procfs_init_inferior) [SYS_syssgi]: Remove.
1134 (procfs_set_exec_trap) [PRFS_STOPEXEC]: Remove.
1135 (procfs_inferior_created) [SYS_syssgi]: Remove.
1136 (procfs_set_watchpoint): Remove !AIX5 test.
1137 (procfs_stopped_by_watchpoint): Remove FLTWATCH test, FLTKWATCH
1139 (mappingflags) [MA_PHYS]: Remove.
1140 (info_mappings_callback): Remove PCAGENT test.
1141 Remove PIOCOPENLWP || PCAGENT test.
1143 2017-11-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1145 * sol-thread.c (info_solthreads): Constify args.
1146 Cast args to void *.
1148 2017-11-29 John Baldwin <jhb@FreeBSD.org>
1150 * target-float.c [HAVE_LIBMPFR]: Define MPFR_USE_INTMAX_T.
1152 2017-11-29 Joel Brobecker <brobecker@adacore.com>
1154 * ada-lang.c (to_fixed_range_type): Make sure that the size
1155 of the range type being returned is the same as the size
1156 of the range type being fixed.
1158 2017-11-29 Pedro Alves <palves@redhat.com>
1161 * NEWS: Mention setting breakpoints on functions with C++ ABI
1163 * completer.h (completion_match_for_lcd) <match,
1164 mark_ignored_range>: New methods.
1165 <finish>: Consider ignored ranges.
1166 <clear>: Clear ignored ranges.
1167 <m_ignored_ranges, m_finished_storage>: New fields.
1168 * cp-support.c (cp_search_name_hash): Ignore ABI tags.
1169 (cp_symbol_name_matches_1, cp_fq_symbol_name_matches): Pass the
1170 completion_match_for_lcd pointer to strncmp_iw_with_mode.
1171 (test_cp_symbol_name_cmp): Add [abi:...] tags unit tests.
1172 * language.c (default_symbol_name_matcher): Pass the
1173 completion_match_for_lcd pointer to strncmp_iw_with_mode.
1174 * linespec.c (linespec_lexer_lex_string): Don't tokenize ABI tags.
1175 * utils.c (skip_abi_tag): New function.
1176 (strncmp_iw_with_mode): Add completion_match_for_lcd parameter.
1178 * utils.h (strncmp_iw_with_mode): Add completion_match_for_lcd
1181 2017-11-29 Pedro Alves <palves@redhat.com>
1184 * NEWS: Mention setting breakpoints on functions with C++ ABI
1186 * completer.h (completion_match_for_lcd) <match,
1187 mark_ignored_range>: New methods.
1188 <finish>: Consider ignored ranges.
1189 <clear>: Clear ignored ranges.
1190 <m_ignored_ranges, m_finished_storage>: New fields.
1191 * cp-support.c (cp_search_name_hash): Ignore ABI tags.
1192 (cp_symbol_name_matches_1, cp_fq_symbol_name_matches): Pass the
1193 completion_match_for_lcd pointer to strncmp_iw_with_mode.
1194 (test_cp_symbol_name_cmp): Add [abi:...] tags unit tests.
1195 * language.c (default_symbol_name_matcher): Pass the
1196 completion_match_for_lcd pointer to strncmp_iw_with_mode.
1197 * linespec.c (linespec_lexer_lex_string): Don't tokenize ABI tags.
1198 * utils.c (skip_abi_tag): New function.
1199 (strncmp_iw_with_mode): Add completion_match_for_lcd parameter.
1201 * utils.h (strncmp_iw_with_mode): Add completion_match_for_lcd
1204 2017-11-29 Pedro Alves <palves@redhat.com>
1206 * NEWS: Mention that breakpoints on C++ functions are now set on
1207 on all namespaces/classes by default, and mention "break
1209 * ax-gdb.c (agent_command_1): Adjust to pass a
1210 symbol_name_match_type to new_linespec_location.
1211 * breakpoint.c (parse_breakpoint_sals): Adjust to
1212 get_linespec_location's return type change.
1213 (strace_marker_create_sals_from_location): Adjust to pass a
1214 symbol_name_match_type to new_linespec_location.
1215 (strace_marker_decode_location): Adjust to get_linespec_location's
1217 (strace_command): Adjust to pass a symbol_name_match_type to
1218 new_linespec_location.
1219 (LOCATION_HELP_STRING): Add paragraph about wildmatching, and
1220 mention "-qualified".
1221 * c-lang.c (cplus_language_defn): Install cp_search_name_hash.
1222 * completer.c (explicit_location_match_type::MATCH_QUALIFIED): New
1224 (complete_address_and_linespec_locations): New parameter
1225 'match_type'. Pass it down.
1226 (explicit_options): Add "-qualified".
1227 (collect_explicit_location_matches): Pass the requested match type
1228 to the linespec completers. Handle MATCH_QUALIFIED.
1229 (location_completer): Handle "-qualified" combined with linespecs.
1230 * cp-support.c (cp_search_name_hash): New.
1231 (cp_symbol_name_matches_1): Implement wild matching for C++.
1232 (cp_fq_symbol_name_matches): Reimplement.
1233 (cp_get_symbol_name_matcher): Return different matchers depending
1234 on the lookup name's match type.
1235 (selftests::test_cp_symbol_name_matches): Add wild matching tests.
1236 * cp-support.h (cp_search_name_hash): New declaration.
1238 (selftests::dw2_expand_symtabs_matching::test_symbols): Add
1240 (test_dw2_expand_symtabs_matching_symbol): Add wild matching
1242 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Adjust to
1243 pass a symbol_name_match_type to new_linespec_location.
1244 * linespec.c (linespec_parse_basic): Lookup function symbols using
1245 the parser's symbol name match type.
1246 (convert_explicit_location_to_linespec): New
1247 symbol_name_match_type parameter. Pass it down to
1248 find_linespec_symbols.
1249 (convert_explicit_location_to_sals): Pass the location's name
1250 match type to convert_explicit_location_to_linespec.
1251 (parse_linespec): New match_type parameter. Save it in the
1253 (linespec_parser_new): Default to symbol_name_match_type::WILD.
1254 (linespec_complete_function): New symbol_name_match_type
1256 (complete_linespec_component): Pass down the parser's recorded
1258 (linespec_complete_label): New symbol_name_match_type parameter.
1260 (linespec_complete): New symbol_name_match_type parameter. Save
1261 it in the parser and pass it down. Adjust to
1262 get_linespec_location's prototype change.
1263 (find_function_symbols, find_linespec_symbols): New
1264 symbol_name_match_type parameter. Pass it down instead of
1265 assuming symbol_name_match_type::WILD.
1266 * linespec.h (linespec_complete, linespec_complete_function)
1267 (linespec_complete_label): New symbol_name_match_type parameter.
1268 * location.c (event_location::linespec_location): Now a struct
1270 (EL_LINESPEC): Adjust.
1271 (initialize_explicit_location): Default to
1272 symbol_name_match_type::WILD.
1273 (new_linespec_location): New symbol_name_match_type parameter.
1274 Record it in the location.
1275 (get_linespec_location): Now returns a struct linespec_location.
1276 (new_explicit_location): Also copy func_name_match_type.
1277 (explicit_to_string_internal)
1278 (string_to_explicit_location): Handle "-qualified".
1279 (copy_event_location): Adjust to LINESPEC_LOCATION type change.
1280 Copy symbol_name_match_type fields.
1281 (event_location_deleter::operator()): Adjust to LINESPEC_LOCATION
1283 (event_location_to_string): Adjust to LINESPEC_LOCATION type
1284 change. Handle "-qualfied".
1285 (string_to_explicit_location): Handle "-qualified".
1286 (string_to_event_location_basic): New symbol_name_match_type
1287 parameter. Pass it down.
1288 (string_to_event_location): Handle "-qualified".
1289 * location.h (struct linespec_location): New.
1290 (explicit_location::func_name_match_type): New field.
1291 (new_linespec_location): Now returns a const linespec_location *.
1292 (string_to_event_location_basic): New symbol_name_match_type
1294 (explicit_completion_info::saw_explicit_location_option): New
1296 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Adjust to pass a
1297 symbol_name_match_type to new_linespec_location.
1298 * python/py-breakpoint.c (bppy_init): Likewise.
1299 * python/python.c (gdbpy_decode_line): Likewise.
1301 2017-11-29 Pedro Alves <palves@redhat.com>
1303 * ada-lang.c (ada_lookup_name_info::matches): Change type of
1304 parameter from completion_match to completion_match_result.
1306 (do_wild_match, do_full_match, ada_symbol_name_matches): Likewise.
1307 * completer.c (completion_tracker::maybe_add_completion): Add
1308 match_for_lcd parameter and use it.
1309 (completion_tracker::add_completion): Likewise.
1310 * completer.h (class completion_match_for_lcd): New class.
1311 (completion_match_result::match_for_lcd): New field.
1312 (completion_match_result::set_match): New method.
1313 (completion_tracker): Add comments.
1314 (completion_tracker::add_completion): Add match_for_lcd parameter.
1315 (completion_tracker::reset_completion_match_result): Reset
1317 (completion_tracker::maybe_add_completion): Add match_for_lcd
1319 (completion_tracker::m_lowest_common_denominator_unique): Extend
1321 * cp-support.c (cp_symbol_name_matches_1)
1322 (cp_fq_symbol_name_matches): Change type of parameter from
1323 completion_match to completion_match_result. Adjust.
1324 * language.c (default_symbol_name_matcher): Change type of
1325 parameter from completion_match to completion_match_result.
1327 * language.h (completion_match_for_lcd): Forward declare.
1328 (default_symbol_name_matcher): Change type of parameter from
1329 completion_match to completion_match_result.
1330 * symtab.c (compare_symbol_name): Adjust.
1331 (completion_list_add_name): Pass the match_for_lcd to the tracker.
1332 * symtab.h (ada_lookup_name_info::matches): Change type of
1333 parameter from completion_match to completion_match_result.
1334 (symbol_name_matcher_ftype): Likewise, and update comments.
1336 2017-11-29 Pedro Alves <palves@redhat.com>
1338 * linespec.c (minsym_found, add_minsym): Use msymbol_is_function.
1339 * minsyms.c (msymbol_is_text): Delete.
1340 (msymbol_is_function): New function.
1341 * minsyms.h (msymbol_is_text): Delete.
1342 (msymbol_is_function): New declaration.
1343 * symtab.c (find_function_alias_target): Use msymbol_is_function.
1345 2017-11-29 Tom Tromey <tom@tromey.com>
1347 * Makefile.in (distclean): Handle the case where rmdir fails.
1349 2017-11-29 Tom Tromey <tom@tromey.com>
1351 * symfile.c (_initialize_symfile): Update usage text for
1352 add-symbol-file, symbol-file, load.
1354 2017-11-29 Tom Tromey <tom@tromey.com>
1356 * symfile.c (add_symbol_file_command): Error if some arguments to
1357 -s are missing. Change unrecognized-argument error message.
1358 (_initialize_symfile): Fix usage text for add-symbol-file.
1360 2017-11-27 Tom Tromey <tom@tromey.com>
1362 * Makefile.in (REMOTE_OBS): Remove.
1363 (SFILES): Remove remote sources.
1364 (COMMON_SFILES): Add remote sources.
1365 (ALLDEPFILES): Remove dcache.c.
1367 2017-11-27 Tom Tromey <tom@tromey.com>
1369 * Makefile.in (SUBDIR_TARGET_SRCS, SUBDIR_TARGET_OBS): New
1371 (SFILES): Use SUBDIR_TARGET_SRCS.
1372 (COMMON_OBS): Use SUBDIR_TARGET_OBS. Remove waitstatus.o.
1373 (CONFIG_SRC_SUBDIR): Add target.
1374 (%.o): Remove target rule.
1376 2017-11-27 Tom Tromey <tom@tromey.com>
1378 * Makefile.in (COMMON_OBS): Remove filename-seen-cache.o,
1379 registry.o, thread-fsm.o, debug.o.
1380 (COMMON_SFILES): Add filename-seen-cache.c, registry.c,
1381 thread-fsm.c, debug.c.
1383 2017-11-27 Tom Tromey <tom@tromey.com>
1385 * Makefile.in (COMMON_SFILES): New.
1386 (SFILES): Move some entries to COMMON_SFILES.
1387 (COMMON_OBS): Use COMMON_SFILES.
1389 2017-11-27 Tom Tromey <tom@tromey.com>
1391 * Makefile.in (YYFILES): Update comment.
1394 2017-11-27 Tom Tromey <tom@tromey.com>
1396 * Makefile.in (SUBDIR_PYTHON_OBS): Redefine.
1397 (CONFIG_SRC_SUBDIR): Add python.
1398 (%.o): Remove python rule.
1399 (python/%.o): New rule.
1400 * configure: Rebuild.
1401 * configure.ac (CONFIG_OBS): Refer to python/python.o
1403 2017-11-27 Tom Tromey <tom@tromey.com>
1405 * configure: Rebuild.
1406 * configure.ac (CONFIG_OBS): Refer to guile/guile.o.
1407 * Makefile.in (SUBDIR_GUILE_OBS): Redefine.
1408 (CONFIG_SRC_SUBDIR): Add guile.
1409 (%.o): Remove guile rule.
1411 2017-11-27 Tom Tromey <tom@tromey.com>
1413 * Makefile.in (SUBDIR_UNITTESTS_OBS): Redefine.
1414 (%.o): Remove unittests rule.
1415 (CONFIG_SRC_SUBDIR): Add unittests.
1417 2017-11-27 Tom Tromey <tom@tromey.com>
1419 * Makefile.in (SUBDIR_TUI_OBS): Redefine.
1420 (CONFIG_SRC_SUBDIR): Add tui.
1421 (%.o): Remove tui rule.
1423 2017-11-27 Tom Tromey <tom@tromey.com>
1425 * Makefile.in (SUBDIR_GCC_COMPILE_OBS): Redefine.
1426 (%.o): Remove compile rule.
1427 (CONFIG_SRC_SUBDIR): Add compile.
1429 2017-11-27 Tom Tromey <tom@tromey.com>
1431 * Makefile.in (SUBDIR_MI_OBS): Redefine.
1432 (%.o): Remove mi rule.
1433 (CONFIG_SRC_SUBDIR): Add mi.
1434 (COMMON_OBS): Use mi/mi-common.o
1436 2017-11-27 Tom Tromey <tom@tromey.com>
1438 * Makefile.in (SUBDIR_CLI_OBS): Redefine.
1439 (%.o): Remove cli rule.
1440 (CONFIG_SRC_SUBDIR): Add cli.
1442 2017-11-27 Tom Tromey <tom@tromey.com>
1444 * configure.ac (CONFIG_SRC_SUBDIR): Don't subst.
1445 * configure: Rebuild.
1446 * Makefile.in (CONFIG_SRC_SUBDIR): Redefine.
1447 (CONFIG_DEP_SUBDIR): New variable.
1448 (%.o): Add order-only dependency.
1449 ($(CONFIG_DEP_SUBDIR)): New target.
1451 2017-11-26 Dominik Czarnota <dominik.b.czarnota@gmail.com>
1454 * findcmd.c (_initialize_mem_search): Update find command help
1457 2017-11-26 Simon Marchi <simon.marchi@polymtl.ca>
1459 * python/python.c (do_start_initialization): Change progname
1460 type to gdb::unique_xmalloc_ptr. Release the pointer when using
1463 2017-11-26 Tom Tromey <tom@tromey.com>
1465 * common/format.h: Add include guards.
1467 2017-11-26 Tom Tromey <tom@tromey.com>
1469 * nat/linux-personality.h (class
1470 maybe_disable_address_space_randomization): New class.
1471 (maybe_disable_address_space_randomization): Don't declare
1473 * nat/linux-personality.c (restore_personality)
1474 (make_disable_asr_cleanup): Remove.
1475 (maybe_disable_address_space_randomization): Now a constructor.
1476 (~maybe_disable_address_space_randomization): New destructor.
1477 * linux-nat.c (linux_nat_create_inferior): Update.
1479 2017-11-26 Tom Tromey <tom@tromey.com>
1481 * gcore.c (write_gcore_file_1): Use gdb::unique_xmalloc_ptr.
1483 2017-11-26 Ulrich Weigand <uweigand@de.ibm.com>
1485 * spu-tdep.c (spu_software_single_step): Access SPU_LSLR_REGNUM as
1486 "cooked" register. Access only first four bytes of branch target
1489 2017-11-25 Sergio Durigan Junior <sergiodj@redhat.com>
1492 * stap-probe.c (relocate_address): New function.
1493 (stap_probe::get_relocated_address): Use 'relocate_address'.
1494 (stap_probe::set_semaphore): Use 'relocate_address' and pass
1496 (stap_probe::clear_semaphore): Likewise.
1498 2017-11-25 Pedro Alves <palves@redhat.com>
1500 * dictionary.c: Include "safe-ctype.h".
1501 * minsyms.c: Include "safe-ctype.h".
1502 * minsyms.c (SYMBOL_HASH_NEXT): Use TOLOWER instead of tolower.
1504 2017-11-25 Pedro Alves <palves@redhat.com>
1506 * completer.c (complete_line_internal_1): Skip spaces until the
1507 start of the command.
1509 2017-11-24 Pedro Alves <palves@redhat.com>
1511 * cp-support.c (cp_symbol_name_matches_1): New, factored out from
1512 cp_fq_symbol_name_matches. Pass language_cplus to
1514 (cp_fq_symbol_name_matches): Call cp_symbol_name_matches_1.
1515 (selftests::test_cp_symbol_name_cmp): New.
1516 (_initialize_cp_support): Register "cp_symbol_name_matches"
1518 * language.c (default_symbol_name_matcher): Pass language_minimal
1519 to strncmp_iw_with_mode.
1520 * utils.c: Include "cp-support.h" and <algorithm>.
1521 (valid_identifier_name_char, cp_skip_operator_token, skip_ws)
1522 (cp_is_operator): New functions.
1523 (strncmp_iw_with_mode): Use them. Add language parameter. Don't
1524 skip whitespace in the symbol name when the lookup name doesn't
1525 have spaces, and vice versa.
1526 (strncmp_iw, strcmp_iw): Pass language to strncmp_iw_with_mode.
1527 * utils.h (strncmp_iw_with_mode): Add language parameter.
1529 2017-11-24 Joel Brobecker <brobecker@adacore.com>
1531 * ada-lang.c (ada_exception_message_1, ada_exception_message):
1533 (print_it_exception): If available, display the exception
1535 * NEWS: Document new feature.
1537 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
1539 * configure.nat <spu-linux>: Add fork-inferior.o to NATDEPFILES.
1541 2017-11-24 Philipp Rudo <prudo@linux.vnet.ibm.com>
1543 * dtrace-probe.c (dtrace_probe::build_arg_exprs)
1544 (dtrace_probe::is_enabled, dtrace_probe::enable)
1545 (dtrace_probe::disable): Remove keyword 'struct' at for-range
1547 * probe.c (gen_ui_out_table_header_info)
1548 (print_ui_out_not_applicables): Remove keyword 'struct' at
1551 2017-11-24 Alan Hayward <alan.hayward@arm.com>
1553 * configure.tgt: Add arch/aarch64.o
1555 2017-11-24 Simon Marchi <simon.marchi@polymtl.ca>
1557 * common/common-utils.h: Include poison.h.
1558 (xfree): Remove declaration, add definition with static_assert.
1559 * common/common-utils.c (xfree): Remove.
1560 * common/poison.h (IsMallocatable): Define.
1561 (IsFreeable): Define.
1562 (free): Delete for non-freeable types.
1564 (XNEW): Undef and redefine.
1566 (XCNEW): Undef and redefine.
1568 (XDELETE): Undef and redefine.
1570 (XNEWVEC): Undef and redefine.
1572 (XCNEWVEC): Undef and redefine.
1574 (XRESIZEVEC): Undef and redefine.
1576 (XDELETEVEC): Undef and redefine.
1578 (XNEWVAR): Undef and redefine.
1580 (XCNEWVAR): Undef and redefine.
1582 (XRESIZEVAR): Undef and redefine.
1584 2017-11-24 Simon Marchi <simon.marchi@polymtl.ca>
1586 * gdbthread.h (private_thread_info): Define structure type, add
1587 virtual pure destructor.
1588 (thread_info) <priv>: Change type to unique_ptr.
1589 <private_dtor>: Remove.
1590 * thread.c (add_thread_with_info): Adjust to use of unique_ptr.
1591 (private_thread_info::~private_thread_info): Provide default
1593 (thread_info::~thread_info): Don't call private_dtor nor
1595 * aix-thread.c (private_thread_info): Rename to ...
1596 (aix_thread_info): ... this.
1597 (get_aix_thread_info): New.
1598 (sync_threadlists): Adjust.
1600 (aix_thread_resume): Adjust.
1601 (aix_thread_fetch_registers): Adjust.
1602 (aix_thread_store_registers): Adjust.
1603 (aix_thread_extra_thread_info): Adjust.
1604 * darwin-nat.h (private_thread_info): Rename to ...
1605 (darwin_thread_info): ... this.
1606 (get_darwin_thread_info): New.
1607 * darwin-nat.c (darwin_init_thread_list): Adjust.
1608 (darwin_check_new_threads): Adjust.
1609 (thread_info_from_private_thread_info): Adjust.
1610 * linux-thread-db.c (private_thread_info): Rename to ...
1611 (thread_db_thread_info): ... this, initialize fields.
1612 (get_thread_db_thread_info): New.
1613 <dying>: Change type to bool.
1614 (update_thread_state): Adjust to type rename.
1615 (record_thread): Adjust to type rename an use of unique_ptr.
1616 (thread_db_pid_to_str): Likewise.
1617 (thread_db_extra_thread_info): Likewise.
1618 (thread_db_thread_handle_to_thread_info): Likewise.
1619 (thread_db_get_thread_local_address): Likewise.
1620 * nto-tdep.h (private_thread_info): Rename to ...
1621 (nto_thread_info): ... this, initialize fields.
1622 (get_nto_thread_info): New.
1623 <name>: Change type to std::string.
1624 * nto-tdep.c (nto_extra_thread_info): Adjust to type rename and
1626 * nto-procfs.c (update_thread_private_data_name): Adjust to
1627 std::string change, allocate nto_private_thread_info with new.
1628 (update_thread_private_data): Adjust to unique_ptr.
1629 * remote.c (private_thread_info): Rename to ...
1630 (remote_thread_info): ... this, initialize data members with
1632 <extra, name>: Change type to std::string.
1633 <thread_handle>: Change type to non-pointer.
1634 (free_private_thread_info): Remove.
1635 (get_private_info_thread): Rename to...
1636 (get_remote_thread_info): ... this, change return type, adjust to
1637 use of unique_ptr, use remote_thread_info constructor.
1638 (remote_add_thread): Adjust.
1639 (get_private_info_ptid): Rename to...
1640 (get_remote_thread_info): ...this, change return type.
1641 (remote_thread_name): Use get_remote_thread_info, adjust to
1642 change to std::string.
1643 (struct thread_item) <~thread_item>: Remove.
1644 <thread_handle>: Make non pointer.
1645 (start_thread): Adjust to thread_item::thread_handle type
1647 (remote_update_thread_list): Adjust to type name change, move
1648 strings from temporary to long-lived object instead of
1650 (remote_threads_extra_info): Use get_remote_thread_info.
1651 (process_initial_stop_replies): Likewise.
1652 (resume_clear_thread_private_info): Likewise.
1653 (remote_resume): Adjust to type name change.
1654 (remote_commit_resume): Use get_remote_thread_info.
1655 (process_stop_reply): Adjust to type name change.
1656 (remote_stopped_by_sw_breakpoint): Use get_remote_thread_info.
1657 (remote_stopped_by_hw_breakpoint): Likewise.
1658 (remote_stopped_by_watchpoint): Likewise.
1659 (remote_stopped_data_address): Likewise.
1660 (remote_core_of_thread): Likewise.
1661 (remote_thread_handle_to_thread_info): Use
1662 get_private_info_thread, adjust to thread_handle field type
1665 2017-11-24 Simon Marchi <simon.marchi@polymtl.ca>
1667 * remote.c (struct thread_item): Add constructor, disable copy
1668 construction and copy assignment, define default move
1669 construction and move assignment.
1670 <extra, name>: Change type to std::string.
1672 <thread_handle>: Make non-pointer.
1673 (thread_item_t): Remove typedef.
1674 (DEF_VEC_O(thread_item_t)): Remove.
1675 (threads_listing_context) <contains_thread>: New method.
1676 <remove_thread>: New method.
1677 <items>: Change type to std::vector.
1678 (clear_threads_listing_context): Remove.
1679 (threads_listing_context_remove): Remove.
1680 (remote_newthread_step): Use thread_item constructor, adjust to
1681 change to std::vector.
1682 (start_thread): Use thread_item constructor, adjust to change to
1684 (end_thread): Adjust to change to std::vector and std::string.
1685 (remote_get_threads_with_qthreadinfo): Use thread_item
1686 constructor, adjust to std::vector.
1687 (remote_update_thread_list): Adjust to change to std::vector and
1688 std::string, use threads_listing_context methods.
1689 (remove_child_of_pending_fork): Adjust.
1690 (remove_new_fork_children): Adjust.
1691 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add rsp-low-selftests.c.
1692 (SUBDIR_UNITTESTS_OBS): Add rsp-low-selftests.o.
1693 * unittests/rsp-low-selftests.c: New file.
1694 * common/rsp-low.h: Include common/byte-vector.h.
1695 (hex2bin): New overload.
1696 * common/rsp-low.c (hex2bin): New overload.
1698 2017-11-24 Simon Marchi <simon.marchi@ericsson.com>
1700 * inferior.h (private_inferior): Define structure type, add
1701 virtual pure destructor.
1702 (inferior) <priv>: Change type to unique_ptr.
1703 * inferior.c (private_inferior::~private_inferior): Provide
1704 default implementation.
1705 (inferior::~inferior): Don't free priv field.
1706 (exit_inferior_1): Likewise.
1707 * darwin-nat.h (struct darwin_exception_info): Initialize fields.
1708 (darwin_exception_info): Remove typedef.
1709 (DEF_VEC_O (darwin_thread_t)); Remove.
1710 (private_inferior): Rename to ...
1711 (darwin_private_inferior): ... this, extend private_inferior.
1712 (get_darwin_inferior): New.
1713 <threads>: Change type to std::vector of darwin_thread_t pointers.
1714 * darwin-nat.c (darwin_check_new_threads): Adjust.
1715 (find_inferior_task_it): Adjust.
1716 (darwin_find_thread); Adjust.
1717 (darwin_suspend_inferior): Adjust.
1718 (darwin_resume_inferior): Adjust.
1719 (darwin_find_new_inferior): Adjust.
1720 (darwin_decode_notify_message): Adjust.
1721 (darwin_send_reply): Adjust.
1722 (darwin_resume_inferior_threads): Adjust.
1723 (darwin_suspend_inferior_threads): Adjust.
1724 (darwin_decode_message): Adjust.
1725 (darwin_wait): Adjust.
1726 (darwin_interrupt): Adjust.
1727 (darwin_deallocate_threads): Adjust.
1728 (darwin_mourn_inferior): Adjust, don't free private data.
1729 (darwin_reply_to_all_pending_messages): Adjust.
1730 (darwin_stop_inferior): Adjust.
1731 (darwin_setup_exceptions): Adjust.
1732 (darwin_kill_inferior): Adjust.
1733 (darwin_setup_request_notification): Adjust.
1734 (darwin_attach_pid): Adjust.
1735 (darwin_init_thread_list): Adjust.
1736 (darwin_setup_fake_stop_event): Adjust.
1737 (darwin_attach): Adjust.
1738 (darwin_detach): Adjust.
1739 (darwin_xfer_partial): Adjust.
1740 (set_enable_mach_exceptions): Adjust.
1741 (darwin_pid_to_exec_file): Adjust.
1742 (darwin_get_ada_task_ptid): Adjust.
1743 * darwin-nat-info.c (get_task_from_args): Adjust.
1744 (info_mach_ports_command): Adjust.
1745 (info_mach_region_command): Adjust.
1746 (info_mach_exceptions_command): Adjust.
1747 * remote.c (private_inferior): Rename to ...
1748 (remote_private_inferior): ... this, initialize fields.
1749 (get_remote_inferior); New.
1750 (remote_commit_resume): Use get_remote_inferior.
1751 (check_pending_event_prevents_wildcard_vcont_callback): Likewise.
1753 2017-11-24 Pedro Alves <palves@redhat.com>
1755 * NEWS: Mention linespecs and explicit locations, and completion
1758 2017-11-24 Yao Qi <yao.qi@linaro.org>
1760 * regcache.c (regcache::dump): Remove footnote_register_size.
1762 2017-11-24 Yao Qi <yao.qi@linaro.org>
1764 * regcache.c (cooked_read_test): Add more test for readonly
1767 2017-11-24 Yao Qi <yao.qi@linaro.org>
1769 * gdbarch-selftests.c (test_target_has_registers): Move it to
1771 (test_target_has_stack): Likewise.
1772 (test_target_has_memory): Likewise.
1773 (test_target_prepare_to_store): Likewise.
1774 (test_target_store_registers): Likewise.
1775 (test_target_ops): Likewise.
1776 * regcache.c: Include selftest-arch.h and gdbthread.h.
1777 (target_ops_no_register): New class.
1778 (test_target_fetch_registers): New.
1779 (test_target_store_registers): New.
1780 (test_target_xfer_partial): New.
1781 (readwrite_regcache): New.
1782 (cooked_read_test): New.
1783 (_initialize_regcache): Register the test.
1784 * target.c: (test_target_has_registers): Moved from
1785 gdbarch-selftests.c.
1786 (test_target_has_stack): Likewise.
1787 (test_target_has_memory): Likewise.
1788 (test_target_prepare_to_store): Likewise.
1789 (test_target_store_registers): Likewise.
1790 * target.h (test_target_ops): New class.
1792 2017-11-24 Alan Hayward <alan.hayward@arm.com>
1794 * aarch64-tdep.c (_initialize_aarch64_tdep): Add target desc
1797 2017-11-24 Alan Hayward <alan.hayward@arm.com>
1799 * aarch64-tdep.c (_initialize_aarch64_tdep): Remove init.
1800 * arch/aarch64.c (aarch64_create_target_description): Create
1801 new target description.
1802 * features/Makefile: Add new files.
1803 * features/aarch64.c: Remove file.
1804 * features/aarch64-core.c: New autogenerated file.
1805 * features/aarch64-fpu.c: New autogenerated file.
1806 * target-descriptions.c (maint_print_c_tdesc_cmd): Check for aarch64.
1808 2017-11-24 Alan Hayward <alan.hayward@arm.com>
1810 * Makefile.in: Add new files.
1811 * aarch64-linux-nat.c (aarch64_linux_read_description): Call
1812 aarch64_read_description.
1813 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
1814 Call aarch64_read_description.
1815 * aarch64-tdep.c (aarch64_read_description): New function.
1816 (aarch64_gdbarch_init): Call aarch64_read_description.
1817 * aarch64-tdep.h (aarch64_read_description): New function.
1818 * arch/aarch64.c: New file.
1819 * configure.tgt: Add new files.
1821 2017-11-24 Yao Qi <yao.qi@linaro.org>
1823 * mi/mi-main.c (register_changed_p): Update.
1824 * value.c (value_contents_bits_eq): Change return type.
1825 (value_contents_eq): Likewise.
1826 * value.h: Update comments.
1828 2017-11-24 Yao Qi <yao.qi@linaro.org>
1830 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Remove
1831 local 'changed'. Remove error.
1832 (register_changed_p): Change return type to bool.
1834 2017-11-24 Yao Qi <yao.qi@linaro.org>
1836 * arch/tic6x.c: New file.
1837 * arch/tic6x.h: New file.
1838 * features/Makefile (FEATURE_XMLFILES): Add tic6x-c6xp.xml,
1839 tic6x-core.xml and tic6x-gp.xml.
1840 * features/tic6x-c6xp.c: Generated.
1841 * features/tic6x-core.c: Generated.
1842 * features/tic6x-gp.c: Generated.
1843 * target-descriptions.c (maint_print_c_tdesc_cmd): Match
1846 2017-11-23 Simon Marchi <simon.marchi@ericsson.com>
1848 * mi/mi-main.c (list_available_thread_groups): Change map value
1849 type to std::vector.
1851 2017-11-23 Simon Marchi <simon.marchi@ericsson.com>
1853 * osdata.c (osdata_end_column, get_osdata): Remove std::move.
1855 2017-11-23 Simon Marchi <simon.marchi@ericsson.com>
1857 * varobj.c (struct varobj_dynamic) <children_requested_>: Rename
1859 <children_requested>: ... this.
1860 (varobj_get_num_children, varobj_update): Adjust.
1862 2017-11-23 Simon Marchi <simon.marchi@ericsson.com>
1864 * ada-varobj.c (ada_value_is_changeable_p): Change int to bool where applicable.
1865 (ada_value_has_mutated): Likewise.
1866 * c-varobj.c (varobj_is_anonymous_child): Likewise.
1867 (c_is_path_expr_parent): Likewise.
1868 * mi/mi-cmd-var.c (varobj_update_one): Likewise.
1869 (mi_cmd_var_set_frozen): Likewise.
1870 (mi_cmd_var_update_iter): Likewise.
1871 (mi_cmd_var_update): Likewise.
1872 * varobj.c (pretty_printing): Likewise.
1873 (varobj_enable_pretty_printing): Likewise.
1874 (struct varobj_root) <floating, is_valid>: Likewise.
1875 (struct varobj_dynamic) <children_requested>: Likewise.
1876 (delete_variable): Likewise.
1877 (delete_variable_1): Likewise.
1878 (install_variable): Likewise.
1879 (update_type_if_necessary): Likewise.
1880 (install_new_value): Likewise.
1881 (value_of_root): Likewise.
1882 (is_root_p): Likewise.
1883 (varobj_create): Likewise.
1884 (varobj_delete): Likewise.
1885 (varobj_has_more): Likewise.
1886 (varobj_set_frozen): Likewise.
1887 (varobj_get_frozen): Likewise.
1888 (install_dynamic_child): Likewise.
1889 (dynamic_varobj_has_child_method): Likewise.
1890 (update_dynamic_varobj_children): Likewise.
1891 (varobj_get_num_children): Likewise.
1892 (varobj_list_children): Likewise.
1893 (is_path_expr_parent): Likewise.
1894 (varobj_default_is_path_expr_parent): Likewise.
1895 (varobj_is_dynamic_p): Likewise.
1896 (varobj_set_value): Likewise.
1897 (varobj_value_has_mutated): Likewise.
1898 (varobj_update): Likewise.
1899 (check_scope): Likewise.
1900 (value_of_root_1): Likewise.
1901 (varobj_value_get_print_value): Likewise.
1902 (varobj_editable_p): Likewise.
1903 (varobj_value_is_changeable_p): Likewise.
1904 (varobj_floating_p): Likewise.
1905 (varobj_default_value_is_changeable_p): Likewise.
1906 (varobj_invalidate_iter): Likewise.
1907 * varobj.h (struct varobj_update_result) <type_changed,
1908 children_changed, changed, value_installed>: Likewise.
1909 (struct varobj) <updated, frozen, not_fetched>: Likewise.
1910 (struct lang_varobj_ops) <value_is_changeable_p,
1911 value_has_mutated, is_path_expr_parent>: Likewise.
1912 (varobj_delete): Likewise.
1913 (varobj_set_frozen): Likewise.
1914 (varobj_get_frozen): Likewise.
1915 (varobj_set_value): Likewise.
1916 (varobj_update): Likewise.
1917 (varobj_editable_p): Likewise.
1918 (varobj_floating_p): Likewise.
1919 (varobj_has_more): Likewise.
1920 (varobj_is_dynamic_p): Likewise.
1921 (varobj_default_value_is_changeable_p): Likewise.
1922 (varobj_value_is_changeable_p): Likewise.
1923 (varobj_is_anonymous_child): Likewise.
1924 (varobj_default_is_path_expr_parent): Likewise.
1926 2017-11-22 Sergio Durigan Junior <sergiodj@redhat.com>
1928 * dtrace-probe.c (struct probe_ops dtrace_probe_ops): Delete.
1929 (struct dtrace_probe_arg) <dtrace_probe_arg>: New constructor.
1930 <type_str>: Convert to 'std::string'.
1931 <expr>: Convert to 'expression_up'.
1932 (dtrace_probe_arg_s): Delete type and VEC.
1933 (dtrace_probe_enabler_s): Likewise.
1934 (struct dtrace_probe): Replace by...
1935 (class dtrace_static_probe_ops): ...this and...
1936 (class dtrace_probe): ...this.
1937 (dtrace_probe_is_linespec): Rename to...
1938 (dtrace_static_probe_ops::is_linespec): ...this. Adjust code
1940 (dtrace_process_dof_probe): Use 'std::vector' instead of VEC.
1941 Adjust code. Create new instance of 'dtrace_probe'.
1942 (dtrace_build_arg_exprs): Rename to...
1943 (dtrace_probe::build_arg_exprs): ...this. Adjust code to
1945 (dtrace_get_probes): Rename to...
1946 (dtrace_static_probe_ops::get_probes): ...this. Adjust code
1948 (dtrace_get_arg): Rename to...
1949 (dtrace_probe::get_arg_by_number): ...this. Adjust code to
1951 (dtrace_probe_is_enabled): Rename to...
1952 (dtrace_probe::is_enabled): ...this. Adjust code to reflect
1954 (dtrace_get_probe_address): Rename to...
1955 (dtrace_probe::get_relocated_address): ...this. Adjust code
1957 (dtrace_get_probe_argument_count): Rename to...
1958 (dtrace_probe::get_argument_count): ...this. Adjust code to
1960 (dtrace_can_evaluate_probe_arguments): Rename to...
1961 (dtrace_probe::can_evaluate_arguments): ...this. Adjust code
1963 (dtrace_evaluate_probe_argument): Rename to...
1964 (dtrace_probe::evaluate_argument): ...this. Adjust code to
1966 (dtrace_compile_to_ax): Rename to...
1967 (dtrace_probe::compile_to_ax): ...this. Adjust code to
1969 (dtrace_probe_destroy): Delete.
1970 (dtrace_type_name): Rename to...
1971 (dtrace_static_probe_ops::type_name): ...this. Adjust code to
1973 (dtrace_probe::get_static_ops): New method.
1974 (dtrace_gen_info_probes_table_header): Rename to...
1975 (dtrace_static_probe_ops::gen_info_probes_table_header):
1976 ...this. Adjust code to reflect change.
1977 (dtrace_gen_info_probes_table_values): Rename to...
1978 (dtrace_probe::gen_info_probes_table_values): ...this. Adjust
1979 code to reflect change.
1980 (dtrace_enable_probe): Rename to...
1981 (dtrace_probe::enable_probe): ...this. Adjust code to reflect
1983 (dtrace_disable_probe): Rename to...
1984 (dtrace_probe::disable_probe): ...this. Adjust code to reflect
1986 (struct probe_ops dtrace_probe_ops): Delete.
1987 (info_probes_dtrace_command): Call 'info_probes_for_spops'
1988 instead of 'info_probes_for_ops'.
1989 (_initialize_dtrace_probe): Use 'all_static_probe_ops' instead
1992 2017-11-22 Sergio Durigan Junior <sergiodj@redhat.com>
1993 Simon Marchi <simark@simark.ca>
1995 * stap-probe.c (struct probe_ops stap_probe_ops): Delete
1997 (struct stap_probe_arg) <stap_probe_arg>: New constructor.
1998 <aexpr>: Change type to 'expression_up'.
1999 (stap_probe_arg_s): Delete type and VEC.
2000 (struct stap_probe): Delete. Replace by...
2001 (class stap_static_probe_ops): ...this and...
2002 (class stap_probe): ...this. Rename variables to add 'm_'
2003 prefix. Do not use 'union' for arguments anymore.
2004 (stap_get_expected_argument_type): Receive probe name instead
2005 of 'struct stap_probe'. Adjust code.
2006 (stap_parse_probe_arguments): Rename to...
2007 (stap_probe::parse_arguments): ...this. Adjust code to
2009 (stap_get_probe_address): Rename to...
2010 (stap_probe::get_relocated_address): ...this. Adjust code
2012 (stap_get_probe_argument_count): Rename to...
2013 (stap_probe::get_argument_count): ...this. Adjust code
2015 (stap_get_arg): Rename to...
2016 (stap_probe::get_arg_by_number'): ...this. Adjust code to
2018 (can_evaluate_probe_arguments): Rename to...
2019 (stap_probe::can_evaluate_arguments): ...this. Adjust code
2021 (stap_evaluate_probe_argument): Rename to...
2022 (stap_probe::evaluate_argument): ...this. Adjust code
2024 (stap_compile_to_ax): Rename to...
2025 (stap_probe::compile_to_ax): ...this. Adjust code to
2027 (stap_probe_destroy): Delete.
2028 (stap_modify_semaphore): Adjust comment.
2029 (stap_set_semaphore): Rename to...
2030 (stap_probe::set_semaphore): ...this. Adjust code to reflect
2032 (stap_clear_semaphore): Rename to...
2033 (stap_probe::clear_semaphore): ...this. Adjust code to
2035 (stap_probe::get_static_ops): New method.
2036 (handle_stap_probe): Adjust code to create instance of
2038 (stap_get_probes): Rename to...
2039 (stap_static_probe_ops::get_probes): ...this. Adjust code to
2041 (stap_probe_is_linespec): Rename to...
2042 (stap_static_probe_ops::is_linespec): ...this. Adjust code to
2044 (stap_type_name): Rename to...
2045 (stap_static_probe_ops::type_name): ...this. Adjust code to
2047 (stap_gen_info_probes_table_header): Rename to...
2048 (stap_static_probe_ops::gen_info_probes_table_header):
2049 ...this. Adjust code to reflect change.
2050 (stap_gen_info_probes_table_values): Rename to...
2051 (stap_probe::gen_info_probes_table_values): ...this. Adjust
2052 code to reflect change.
2053 (struct probe_ops stap_probe_ops): Delete.
2054 (info_probes_stap_command): Use 'info_probes_for_spops'
2055 instead of 'info_probes_for_ops'.
2056 (_initialize_stap_probe): Use 'all_static_probe_ops' instead
2059 2017-11-22 Sergio Durigan Junior <sergiodj@redhat.com>
2061 * break-catch-throw.c (fetch_probe_arguments): Use
2062 'probe.prob' instead of 'probe.probe'.
2063 * breakpoint.c (create_longjmp_master_breakpoint): Call
2064 'can_evaluate_arguments' and 'get_relocated_address' methods
2066 (create_exception_master_breakpoint): Likewise.
2067 (add_location_to_breakpoint): Use 'sal->prob' instead of
2069 (bkpt_probe_insert_location): Call 'set_semaphore' method from
2071 (bkpt_probe_remove_location): Likewise, for 'clear_semaphore'.
2072 * elfread.c (elf_get_probes): Use 'static_probe_ops' instead
2074 (probe_key_free): Call 'delete' on probe.
2075 (check_exception_resume): Use 'probe.prob' instead of
2077 * location.c (string_to_event_location_basic): Call
2078 'probe_linespec_to_static_ops'.
2079 * probe.c (class any_static_probe_ops): New class.
2080 (any_static_probe_ops any_static_probe_ops): New variable.
2081 (parse_probes_in_pspace): Receive 'static_probe_ops' as
2082 argument. Adjust code to reflect change.
2083 (parse_probes): Use 'static_probe_ops' instead of
2084 'probe_ops'. Adjust code to reflect change.
2085 (find_probes_in_objfile): Call methods to get name and
2086 provider from probe.
2087 (find_probe_by_pc): Use 'result.prob' instead of
2088 'result.probe'. Call 'get_relocated_address' method from
2090 (collect_probes): Adjust comment and argument list to receive
2091 'static_probe_ops' instead of 'probe_ops'. Adjust code to
2092 reflect change. Call necessary methods from probe.
2093 (compare_probes): Call methods to get name and provider from
2095 (gen_ui_out_table_header_info): Receive 'static_probe_ops'
2096 instead of 'probe_ops'. Use 'std::vector' instead of VEC,
2097 adjust code accordingly.
2098 (print_ui_out_not_applicables): Likewise.
2099 (info_probes_for_ops): Rename to...
2100 (info_probes_for_spops): ...this. Receive 'static_probe_ops'
2101 as argument instead of 'probe_ops'. Adjust code. Call
2102 necessary methods from probe.
2103 (info_probes_command): Use 'info_probes_for_spops'.
2104 (enable_probes_command): Pass correct argument to
2105 'collect_probes'. Call methods from probe.
2106 (disable_probes_command): Likewise.
2107 (get_probe_address): Move to 'any_static_probe_ops::get_address'.
2108 (get_probe_argument_count): Move to
2109 'any_static_probe_ops::get_argument_count'.
2110 (can_evaluate_probe_arguments): Move to
2111 'any_static_probe_ops::can_evaluate_arguments'.
2112 (evaluate_probe_argument): Move to
2113 'any_static_probe_ops::evaluate_argument'.
2114 (probe_safe_evaluate_at_pc): Use 'probe.prob' instead of
2116 (probe_linespec_to_ops): Rename to...
2117 (probe_linespec_to_static_ops): ...this. Adjust code.
2118 (probe_any_is_linespec): Rename to...
2119 (any_static_probe_ops::is_linespec): ...this.
2120 (probe_any_get_probes): Rename to...
2121 (any_static_probe_ops::get_probes): ...this.
2122 (any_static_probe_ops::type_name): New method.
2123 (any_static_probe_ops::gen_info_probes_table_header): New
2125 (compute_probe_arg): Use 'pc_probe.prob' instead of
2126 'pc_probe.probe'. Call methods from probe.
2127 (compile_probe_arg): Likewise.
2128 (std::vector<const probe_ops *> all_probe_ops): Delete.
2129 (std::vector<const static_probe_ops *> all_static_probe_ops):
2131 (_initialize_probe): Use 'all_static_probe_ops' instead of
2133 * probe.h (struct info_probe_column) <field_name>: Delete
2135 (info_probe_column_s): Delete type and VEC.
2136 (struct probe_ops): Delete. Replace with...
2137 (class static_probe_ops): ...this and...
2138 (clas probe): ...this.
2139 (struct bound_probe) <bound_probe>: Delete extraneous
2140 newline. Adjust constructor to receive 'probe' instead of
2142 <probe>: Rename to...
2143 <prob>: ...this. Delete extraneous newline.
2144 <objfile>: Delete extraneous newline.
2145 (register_probe_ops): Delete unused prototype.
2146 (info_probes_for_ops): Rename to...
2147 (info_probes_for_spops): ...this. Adjust comment.
2148 (get_probe_address): Move to 'probe::get_address'.
2149 (get_probe_argument_count): Move to
2150 'probe::get_argument_count'.
2151 (can_evaluate_probe_arguments): Move to
2152 'probe::can_evaluate_arguments'.
2153 (evaluate_probe_argument): Move to 'probe::evaluate_argument'.
2154 * solib-svr4.c (struct svr4_info): Adjust comment.
2155 (struct probe_and_action) <probe>: Rename to...
2157 (register_solib_event_probe): Receive 'probe' instead of
2158 'struct probe' as argument. Use 'prob' instead of 'probe'
2160 (solib_event_probe_action): Call 'get_argument_count' method
2161 from probe. Adjust comment.
2162 (svr4_handle_solib_event): Adjust comment. Call
2163 'evaluate_argument' method from probe.
2164 (svr4_create_probe_breakpoints): Call 'get_relocated_address'
2166 (svr4_create_solib_event_breakpoints): Use 'probe' instead of
2167 'struct probe'. Call 'can_evaluate_arguments' from probe.
2168 * symfile.h: Forward declare 'class probe' instead of 'struct
2170 * symtab.h: Likewise.
2171 (struct symtab_and_line) <probe>: Rename to...
2173 * tracepoint.c (start_tracing): Use 'prob' when applicable.
2175 (stop_tracing): Likewise.
2177 2017-11-22 Joel Brobecker <brobecker@adacore.com>
2179 * ravenscar-thread.c (ravenscar_inferior_created): Remove
2180 trailing newline at end of string in call to warning.
2182 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
2184 * osdata.h: Include vector isntead of vec.h.
2185 (osdata_column_s): Remove typedef.
2186 (struct osdata_column): Add constructor.
2187 <name, value>: Change type to std::string.
2188 (DEF_VEC_O (osdata_column_s)): Remove.
2189 (osdata_item_s): Remove typedef.
2190 (struct osdata_item) <columns>: Change type to std::vector.
2191 (DEF_VEC_O (osdata_item_s)): Remove.
2192 (struct osdata): Add constructor.
2193 <type>: Change type to std::string.
2194 <items>: Change type to std::vector.
2195 (osdata_p): Remove typedef.
2196 (DEF_VEC_P (osdata_p)): Remove.
2197 (osdata_parse): Return a unique_ptr.
2198 (osdata_free): Remove.
2199 (make_cleanup_osdata_free): Remove.
2200 (get_osdata): Return a unique_ptr.
2201 (get_osdata_column): Return pointer to std::string, take a
2202 reference to osdata_item as parameter.
2203 * osdata.c (struct osdata_parsing_data) <osdata>: Change type to
2205 <property_name>: Change type to std::string.
2206 (osdata_start_osdata): Allocate osdata with new and adjust.
2207 (osdata_start_item): Adjust.
2208 (osdata_start_column): Adjust.
2209 (osdata_end_column): Adjust.
2210 (clear_parsing_data): Remove.
2211 (osdata_parse): Return a unique_ptr and adjust, remove cleanup.
2212 (osdata_item_clear): Remove.
2213 (get_osdata): return a unique_ptr and adjust.
2214 (get_osdata_column): Return a pointer to std::string and adjust.
2215 (info_osdata): Adjust.
2216 * mi/mi-main.c: Include <map>.
2217 (free_vector_of_osdata_items): Remove.
2218 (list_available_thread_groups): Adjust, use std::map instead of
2221 2017-11-22 Simon Marchi <simon.marchi@ericsson.com>
2223 * stack.c (iterate_over_block_locals): Add LOC_OPTIMIZED_OUT
2226 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
2228 * varobj.h (DEF_VEC_P (varobj_p)): Remove.
2230 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
2232 * varobj.h (struct varobj_update_result): Add constructor, add
2233 move constructor, disable copy and assign, initialize fields.
2234 <newobj>: Change type to std::vector.
2235 (varobj_update): Return std::vector.
2236 * varobj.c (install_dynamic_child): Change VEC parameters to
2237 std::vector and adjust.
2238 (update_dynamic_varobj_children): Likewise.
2239 (varobj_update): Return std::vector and adjust.
2240 * mi/mi-cmd-var.c (varobj_update_one): Adjust to vector changes.
2242 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
2244 * varobj.h (struct varobj) <parent>: Remove const.
2245 <children>: Change type to std::vector.
2246 (varobj_list_children): Return std::vector const reference.
2247 (varobj_restrict_range): Change parameter type to std::vector
2249 * varobj.c (varobj_has_more): Adjust.
2250 (varobj_restrict_range): Change parameter type to std::vector
2251 const reference and adjust.
2252 (install_dynamic_child): Adjust.
2253 (update_dynamic_varobj_children): Adjust.
2254 (varobj_list_children): Return std::vector const reference and
2256 (varobj_add_child): Adjust.
2257 (update_type_if_necessary): Adjust.
2258 (varobj_update): Adjust.
2259 (delete_variable_1): Adjust.
2260 * ada-varobj.c (ada_value_has_mutated): Adjust.
2261 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust.
2263 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
2265 * varobj.h (struct varobj): Add constructor and destructor,
2267 * varobj.c (struct varobj_root): Initialize fields.
2268 (struct varobj_dynamic): Initialize fields.
2269 (varobj_create): Use unique_ptr instead of cleanup. Create
2270 varobj with new instead of new_root_variable.
2271 (delete_variable_1): Free variable with delete instead of
2273 (create_child_with_value): Create variable with new instead of
2275 (varobj::varobj): New.
2276 (varobj::~varobj): New (body mostly coming from free_variable).
2277 (new_variable): Remove.
2278 (free_variable): Remove.
2279 (do_free_variable_cleanup): Remove.
2280 (make_cleanup_free_variable): Remove.
2282 2017-11-22 Ulrich Weigand <uweigand@de.ibm.com>
2284 * core-regset.c: Remove file.
2285 * Makefile.in (ALLDEPFILES): Remove core-regset.c.
2287 2017-11-22 Ulrich Weigand <uweigand@de.ibm.com>
2289 * NEWS: Document use of GNU MPFR.
2292 * Makefile.in (LIBMPFR): Add define.
2293 (CLIBS): Add $(LIBMPFR).
2294 * configure.ac: Add --with-mpfr configure option.
2295 * configure: Regenerate.
2296 * config.in: Regenerate.
2298 * target-float.c [HAVE_LIBMPFR]: Include <mpfr.h>.
2299 (class mpfr_float_ops): New type.
2300 (mpfr_float_ops::from_target): Two new overloaded functions.
2301 (mpfr_float_ops::to_target): Likewise.
2302 (mpfr_float_ops::to_string): New function.
2303 (mpfr_float_ops::from_string): Likewise.
2304 (mpfr_float_ops::to_longest): Likewise.
2305 (mpfr_float_ops::from_longest): Likewise.
2306 (mpfr_float_ops::from_ulongest): Likewise.
2307 (mpfr_float_ops::to_host_double): Likewise.
2308 (mpfr_float_ops::from_host_double): Likewise.
2309 (mpfr_float_ops::convert): Likewise.
2310 (mpfr_float_ops::binop): Likewise.
2311 (mpfr_float_ops::compare): Likewise.
2312 (get_target_float_ops): Use mpfr_float_ops if available.
2314 2017-11-22 Ulrich Weigand <uweigand@de.ibm.com>
2316 * target-float.c: Do not include <math.h>.
2317 Include <cmath> and <limits>.
2318 (DOUBLEST): Do not define.
2319 (class target_float_ops): New type.
2320 (class host_float_ops): New templated type.
2321 (class decimal_float_ops): New type.
2323 (floatformat_to_doublest): Rename to ...
2324 (host_float_ops<T>::from_target): ... this. Use template type T
2325 instead of DOUBLEST. Use C++ math routines. Update recursive calls.
2326 (host_float_ops<T>::from_target): New overload using a type argument.
2327 (floatformat_from_doublest): Rename to ...
2328 (host_float_ops<T>::to_target): ... this. Use template type T
2329 instead of DOUBLEST. Use C++ math routines. Update recursive calls.
2330 (host_float_ops<T>::to_target): New overload using a type argument.
2331 (floatformat_printf_format): New function.
2332 (struct printf_length_modifier): New templated type.
2333 (floatformat_to_string): Rename to ...
2334 (host_float_ops<T>::to_string): ... this. Use type instead of
2335 floatformat argument. Use floatformat_printf_format and
2336 printf_length_modifier. Remove special handling of invalid numbers,
2337 infinities and NaN (moved to target_float_to_string).
2338 (struct scanf_length_modifier): New templated type.
2339 (floatformat_from_string): Rename to ...
2340 (host_float_ops<T>::from_string): ... this. Use type instead of
2341 floatformat argument. Use scanf_length_modifier.
2342 (floatformat_to_longest): Rename to ...
2343 (host_float_ops<T>::to_longest): ... this. Use type instead of
2344 floatformat argument. Handle out-of-range values deterministically.
2345 (floatformat_from_longest): Rename to ...
2346 (host_float_ops<T>::from_longest): ... this. Use type instead of
2347 floatformat argument.
2348 (floatformat_from_ulongest): Rename to ...
2349 (host_float_ops<T>::from_ulongest): ... this. Use type instead of
2350 floatformat argument.
2351 (floatformat_to_host_double): Rename to ...
2352 (host_float_ops<T>::to_host_double): ... this. Use type instead of
2353 floatformat argument.
2354 (floatformat_from_host_double): Rename to ...
2355 (host_float_ops<T>::from_host_double): ... this. Use type instead of
2356 floatformat argument.
2357 (floatformat_convert): Rename to ...
2358 (host_float_ops<T>::convert): ... this. Use type instead of
2359 floatformat arguments. Remove handling of no-op conversions.
2360 (floatformat_binop): Rename to ...
2361 (host_float_ops<T>::binop): ... this. Use type instead of
2362 floatformat arguments.
2363 (floatformat_compare): Rename to ...
2364 (host_float_ops<T>::compare): ... this. Use type instead of
2365 floatformat arguments.
2367 (match_endianness): Use type instead of length/byte_order arguments.
2368 (set_decnumber_context): Likewise.
2369 (decimal_from_number): Likewise. Update calls.
2370 (decimal_to_number): Likewise.
2371 (decimal_is_zero): Likewise. Update calls. Move to earlier in file.
2372 (decimal_float_ops::to_host_double): New dummy function.
2373 (decimal_float_ops::from_host_double): Likewise.
2374 (decimal_to_string): Rename to ...
2375 (decimal_float_ops::to_string): ... this. Use type instead of
2376 length/byte_order arguments. Update calls.
2377 (decimal_from_string): Rename to ...
2378 (decimal_float_ops::from_string): ... this. Use type instead of
2379 length/byte_order arguments. Update calls.
2380 (decimal_from_longest): Rename to ...
2381 (decimal_float_ops::from_longest): ... this. Use type instead of
2382 length/byte_order arguments. Update calls.
2383 (decimal_from_ulongest): Rename to ...
2384 (decimal_float_ops::from_ulongest): ... this. Use type instead of
2385 length/byte_order arguments. Update calls.
2386 (decimal_to_longest): Rename to ...
2387 (decimal_float_ops::to_longest): ... this. Use type instead of
2388 length/byte_order arguments. Update calls.
2389 (decimal_binop): Rename to ...
2390 (decimal_float_ops::binop): ... this. Use type instead of
2391 length/byte_order arguments. Update calls.
2392 (decimal_compare): Rename to ...
2393 (decimal_float_ops::compare): ... this. Use type instead of
2394 length/byte_order arguments. Update calls.
2395 (decimal_convert): Rename to ...
2396 (decimal_float_ops::convert): ... this. Use type instead of
2397 length/byte_order arguments. Update calls.
2399 (target_float_same_category_p): New function.
2400 (target_float_same_format_p): Likewise.
2401 (target_float_format_length): Likewise.
2402 (enum target_float_ops_kind): New type.
2403 (get_target_float_ops_kind): New function.
2404 (get_target_float_ops): Three new overloaded functions.
2406 (target_float_is_zero): Update call.
2407 (target_float_to_string): Add special handling of invalid numbers,
2408 infinities and NaN (moved from floatformat_to_string). Use
2409 target_float_ops callback.
2410 (target_float_from_string): Use target_float_ops callback.
2411 (target_float_to_longest): Likewise.
2412 (target_float_from_longest): Likewise.
2413 (target_float_from_ulongest): Likewise.
2414 (target_float_to_host_double): Likewise.
2415 (target_float_from_host_double): Likewise.
2416 (target_float_convert): Add special case for no-op conversions.
2417 Use target_float_ops callback.
2418 (target_float_binop): Use target_float_ops callback.
2419 (target_float_compare): Likewise.
2421 2017-11-22 Yao Qi <yao.qi@linaro.org>
2423 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use strcpy.
2425 2017-11-22 Yao Qi <yao.qi@linaro.org>
2427 * cli/cli-decode.c (help_list): Use memcpy instead of strncpy.
2428 * cp-namespace.c (cp_lookup_transparent_type_loop): Likewise.
2430 2017-11-21 Jerome Guitton <guitton@adacore.com>
2432 * ravenscar-thread.c (ravenscar_wait): Update inferior ptid
2433 with event ptid from the lower layer before doing the
2434 ravenscar-specific update.
2436 2017-11-21 Joel Brobecker <brobecker@adacore.com>
2438 * ravenscar-thread.c (is_ravenscar_task): Also verify that
2439 the ptid's TID is nonzero.
2441 2017-11-21 Joel Brobecker <brobecker@adacore.com>
2443 * ada-lang.h (ada_get_tcb_types_info): Add declaration.
2444 * ada-tasks.c (ada_get_tcb_types_info): Renames get_tcb_types_info.
2445 Make non-static. Change return type to char *. Adjust code
2446 accordingly. Rewrite the function's documentation.
2447 (read_atcb): Adjust call to get_tcb_types_info accordingly.
2448 * ravenscar-thread.c (ravenscar_inferior_created): Check that
2449 we have enough debugging information in the runtime to support
2450 Ada task debugging before we enable the ravenscar-thread layer.
2452 2017-11-21 Joel Brobecker <brobecker@adacore.com>
2454 * ada-lang.h (ada_get_task_info_from_ptid): Add declaration.
2455 * ada-tasks.c (ada_get_task_info_from_ptid): New function.
2456 * ravenscar-thread.c: Add into comment.
2457 (base_magic_null_ptid): Delete.
2458 (base_ptid): Change documentation.
2459 (ravenscar_active_task): Renames ravenscar_running_thread.
2460 All callers updated throughout.
2461 (is_ravenscar_task, ravenscar_get_thread_base_cpu): New function.
2462 (ravenscar_task_is_currently_active): Likewise.
2463 (get_base_thread_from_ravenscar_task): Ditto.
2464 (ravenscar_update_inferior_ptid): Adjust to handle multiple CPUs.
2465 (ravenscar_runtime_initialized): Likewise.
2466 (get_running_thread_id): Add new parameter "cpu". Adjust
2467 implementation to handle this new parameter.
2468 (ravenscar_fetch_registers): Small adjustment to use
2469 is_ravenscar_task and ravenscar_task_is_currently_active in
2470 order to decide whether to use the target beneath or this
2472 (ravenscar_store_registers, ravenscar_prepare_to_store): Likewise.
2473 (ravenscar_stopped_by_sw_breakpoint): Use
2474 get_base_thread_from_ravenscar_task to get the underlying
2475 thread, rather than using base_ptid.
2476 (ravenscar_stopped_by_hw_breakpoint, ravenscar_stopped_by_watchpoint)
2477 (ravenscar_stopped_data_address, ravenscar_core_of_thread):
2479 (ravenscar_inferior_created): Do not set base_magic_null_ptid.
2481 2017-11-21 Joel Brobecker <brobecker@adacore.com>
2483 * ada-lang.h (struct ada_task_info) <base_cpu>: New field.
2484 * ada-lang.c (struct atcb_fieldno) <base_cpu>: New field.
2485 (get_tcb_types_info): Set fieldnos.base_cpu.
2486 (read_atcb): Set task_info->base_cpu.
2487 (info_task): Print "Base CPU" info if set by runtime.
2489 2017-11-21 Joel Brobecker <brobecker@adacore.com>
2491 * ravenscar-thread.c (ravenscar_stopped_by_sw_breakpoint)
2492 (ravenscar_stopped_by_hw_breakpoint, ravenscar_stopped_by_watchpoint)
2493 (ravenscar_stopped_data_address, ravenscar_core_of_thread):
2495 (init_ravenscar_thread_ops): Set the to_stopped_by_sw_breakpoint,
2496 to_stopped_by_hw_breakpoint, to_stopped_by_watchpoint,
2497 to_stopped_data_address and to_core_of_thread fields of
2500 2017-11-21 Ulrich Weigand <uweigand@de.ibm.com>
2502 * ppc-tdep.h (enum powerpc_long_double_abi): New data type.
2503 (struct gdbarch_tdep): New member long_double_abi.
2504 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize long_double_abi
2505 member of tdep struct based on Tag_GNU_Power_ABI_FP attribute.
2506 * ppc-linux-tdep.c (ppc_linux_init_abi): Install long double data
2507 format depending on long_double_abi tdep member.
2508 (ppc_floatformat_for_type): Handle __ibm128 type.
2510 2017-11-20 Simon Marchi <simon.marchi@polymtl.ca>
2512 * darwin-nat.c (set_enable_mach_exceptions): Constify parameter.
2514 2017-11-21 Pedro Alves <palves@redhat.com>
2516 * dwarf2read.c (mapped_index::find_name_components_bounds)
2517 <completion mode, upper bound>: Use std::lower_bound instead of
2519 (test_mapped_index_find_name_component_bounds): Remove incorrect
2520 "t1_fund" from expected symbols.
2522 2017-11-21 Pedro Alves <palves@redhat.com>
2524 * dwarf2read.c (mapped_index::name_components_casing): New field.
2525 (mapped_index) <build_name_components,
2526 find_name_components_bounds): Declare new methods.
2527 (mapped_index::find_name_components_bounds)
2528 (mapped_index::build_name_components): New methods, factored out
2529 from dw2_expand_symtabs_matching_symbol.
2530 (check_find_bounds_finds)
2531 (test_mapped_index_find_name_component_bounds): New.
2532 (run_test): Rename to ...
2533 (test_dw2_expand_symtabs_matching_symbol): ... this.
2534 (run_test): Reimplement.
2536 2017-11-21 Pedro Alves <palves@redhat.com>
2538 * cp-name-parser.y (cp_ident_is_alpha, cp_ident_is_alnum): New.
2539 (symbol_end): Use cp_ident_is_alnum.
2540 (yylex): Use cp_ident_is_alpha and cp_ident_is_alnum.
2541 * dwarf2read.c (make_sort_after_prefix_name): New function.
2542 (dw2_expand_symtabs_matching_symbol): Use it.
2543 (test_symbols): Add more symbols.
2544 (run_test): Add tests.
2546 2017-11-17 Tom Tromey <tom@tromey.com>
2548 * symtab.h (enum symbol_subclass_kind): New.
2549 (struct symbol) <is_cplus_template_function, is_rust_vtable>:
2551 <subclass>: New member.
2552 (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): Update.
2553 * rust-lang.c (rust_get_trait_object_pointer): Update.
2554 * dwarf2read.c (read_func_scope): Update.
2555 (read_variable): Update.
2557 2017-11-17 Tom Tromey <tom@tromey.com>
2559 * dwarf2read.c (read_func_scope): Update.
2560 * symtab.h (struct template_symbol): Derive from symbol.
2563 2017-11-17 Tom Tromey <tom@tromey.com>
2565 * symtab.h (struct symbol) <is_rust_vtable>: New member.
2566 (struct rust_vtable_symbol): New.
2567 (find_symbol_at_address): Declare.
2568 * symtab.c (find_symbol_at_address): New function.
2569 * symfile.h (struct quick_symbol_functions)
2570 <find_compunit_symtab_by_address>: New member.
2571 * symfile-debug.c (debug_qf_find_compunit_symtab_by_address): New
2573 (debug_sym_quick_functions): Link to
2574 debug_qf_find_compunit_symtab_by_address.
2575 * rust-lang.c (rust_get_trait_object_pointer): New function.
2576 (rust_evaluate_subexp) <case UNOP_IND>: New case. Call
2577 rust_get_trait_object_pointer.
2578 * psymtab.c (psym_relocate): Clear psymbol_map.
2579 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address): New
2581 (psym_functions): Link to psym_find_compunit_symtab_by_address.
2582 * objfiles.h (struct objfile) <psymbol_map>: New member.
2583 * dwarf2read.c (dwarf2_gdb_index_functions): Update.
2584 (process_die) <DW_TAG_variable>: New case. Call read_variable.
2585 (rust_containing_type, read_variable): New functions.
2587 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
2589 * common/gdb_vecs.h (DEF_VEC_I (int)): Remove.
2591 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
2593 * common/filestuff.c: Include <algorithm>.
2594 (open_fds): Change type to std::vector<int>.
2595 (do_mark_open_fd): Adjust.
2596 (unmark_fd_no_cloexec): Adjust.
2599 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
2601 * breakpoint.c (output_thread_groups): Take an std::vector.
2602 (print_one_breakpoint_location): Adjust.
2604 2017-11-17 Joel Brobecker <brobecker@adacore.com>
2606 * ada-lang.c (resolve_subexp): Add handling of OP_VAR_MSYM_VALUE.
2607 (ada_evaluate_subexp_for_cast): New function.
2608 (ada_evaluate_subexp) <UNOP_CAST>: Replace code by call to
2609 ada_evaluate_subexp_for_cast.
2610 (ada_evaluate_subexp) <nosideret>: Replace code by call to
2612 * eval.c (evaluate_var_value): Make non-static.
2613 (evaluate_var_msym_value, eval_skip_value): Likewise.
2614 * value.h (evaluate_var_value, evaluate_var_msym_value)
2615 (eval_skip_value): Declare.
2617 2017-11-16 Joel Brobecker <brobecker@adacore.com>
2619 * ada-lang.c (ada_value_cast): Remove parameter "noside".
2622 2017-11-16 Pedro Alves <palves@redhat.com>
2624 * python/py-unwind.c (pyuw_sniffer): Translate
2625 PyExc_KeyboardInterrupt to a GDB Quit exception.
2627 2017-11-16 Pedro Alves <palves@redhat.com>
2629 * infrun.c (resume_cleanups): Delete.
2630 (resume): No longer install a resume_cleanups cleanup nor call
2632 (proceed): Pass the terminal to the inferior.
2633 (keep_going_pass_signal): No longer install a resume_cleanups
2636 2017-11-16 Pedro Alves <palves@redhat.com>
2638 * inf-loop.c (inferior_event_handler): Don't swallow the exception
2639 if the prompt is blocked.
2641 2017-11-16 Pedro Alves <palves@redhat.com>
2643 * breakpoint.c (insert_bp_location): Replace bp_err and
2644 bp_err_message locals by a gdb_exception local.
2646 2017-11-16 Pedro Alves <palves@redhat.com>
2648 * inflow.c (scoped_ignore_sigttou): New class.
2649 (child_terminal_ours_1, new_tty): Use it.
2651 2017-11-16 Ulrich Weigand <uweigand@de.ibm.com>
2653 * target-float.c (decimal_from_number): Add byte_order argument and
2654 call match_endianness. Error if unknown floating-point type.
2655 (decimal_to_number): Add byte_order argument and call match_endianness.
2656 (decimal_from_longest): Update call. Do not call match_endianness.
2657 (decimal_from_ulongest): Likewise.
2658 (decimal_binop): Likewise.
2659 (decimal_is_zero): Likewise.
2660 (decimal_compare): Likewise.
2661 (decimal_convert): Likewise.
2663 2017-11-16 Phil Muldoon <pmuldoon@redhat.com>
2665 * python/python.c (gdbpy_rbreak): New function.
2666 * NEWS: Document Python rbreak feature.
2668 2017-11-16 Yao Qi <yao.qi@linaro.org>
2670 * features/tic6x-c62x.xml: Remove.
2671 * features/tic6x-c64x.xml: Remove.
2672 * features/tic6x-c64xp.xml: Remove.
2674 2017-11-15 John Baldwin <jhb@FreeBSD.org>
2676 * symtab.h: Include <array>.
2678 2017-11-15 John Baldwin <jhb@FreeBSD.org>
2680 * bsd-kvm.c (bsd_kvm_cmd): Constify 'arg'.
2681 (bsd_kvm_proc_cmd): Likewise.
2683 2017-11-15 Simon Marchi <simon.marchi@ericsson.com>
2685 * tui/tui-win.c (window_name_completer): Replace VEC with
2688 2017-11-15 Andrew Cagney <cagney@gnu.org>
2690 * MAINTAINERS: Remove no-longer applicable entries.
2692 2017-11-15 Andrew Cagney <cagney@gnu.org>
2694 * MAINTAINERS: Move self to Past Maintainers.
2696 2017-11-15 Yao Qi <yao.qi@linaro.org>
2698 * features/Makefile (XMLTOC): Remove nios2-linux.xml.
2699 * features/nios2-linux.c: Remove.
2700 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Don't call
2701 initialize_tdesc_nios2_linux.
2703 2017-11-15 Yao Qi <yao.qi@linaro.org>
2705 * m68hc11-tdep.c (M68HC11_NUM_REGS): Change it to
2706 M68HC11_LAST_HARD_REG + 1.
2708 2017-11-14 Paul Carroll <pcarroll@codesourcery.com>
2711 * remote.c (remote_write_bytes_aux, remote_read_bytes_1,
2712 remote_read_bytes, remote_write_qxfer, remote_xfer_partial):
2713 Return TARGET_XFER_EOF if size of returned data is 0.
2715 2017-11-14 Simon Marchi <simon.marchi@ericsson.com>
2717 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2718 memory-map-selftests.c.
2719 (SUBDIR_UNITTESTS_OBS): Add memory-map-selftests.o.
2720 * memory-map.c (memory_map_start_memory): Fix computation of hi
2722 * unittests/memory-map-selftests.c: New file.
2724 2017-11-09 Joel Brobecker <brobecker@adacore.com>
2726 * ada-lang.c: Fix some typos in the general command documenting
2727 how Ada expressions are being evaluated and how their result
2730 2017-11-09 Tom Tromey <tom@tromey.com>
2732 * psymtab.c (psymbol_hash): Do not hash string contents.
2733 (psymbol_compare): Add comment.
2735 2017-11-09 Tom Tromey <tom@tromey.com>
2737 * dictionary.c (dict_hash): Move "TKB" check into the "switch".
2739 2017-11-08 Joel Brobecker <brobecker@adacore.com>
2741 * ada-exp.y (write_var_from_sym): Remove parameter
2742 "orig_left_context". Update all callers.
2744 2017-11-08 Simon Marchi <simon.marchi@ericsson.com>
2746 * tracepoint.h (class collection_list) <stringify>: Return
2747 std::vector<std::string>.
2748 (encode_actions_rsp): Change parameters to
2749 std::vector<std::string> *.
2750 * tracepoint.c (collection_list::stringify): Return
2751 std::vector<std::string> and adjust accordingly.
2752 (encode_actions_rsp): Changee parameters to
2753 std::vector<std::string> and adjust accordingly.
2754 * remote.c (free_actions_list),
2755 free_actions_list_cleanup_wrapper): Remove.
2756 (remote_download_tracepoint): Adjust to std::vector.
2758 2017-11-08 Tom Tromey <tom@tromey.com>
2760 * dwarf2read.c (symbolp): Remove typedef.
2761 (read_func_scope): Use std::vector.
2762 (process_structure_scope): Use std::vector.
2764 2017-11-08 Pedro Alves <palves@redhat.com>
2766 * ada-lang.c (ada_make_symbol_completion_list): Use
2767 completion_skip_symbol.
2768 * symtab.c (symbol_is_function_or_method(minimal_symbol*)): New.
2769 (symbol_is_function_or_method(symbol*)): New.
2770 (add_symtab_completions): Add complete_symbol_mode parameter. Use
2771 completion_skip_symbol.
2772 (default_collect_symbol_completion_matches_break_on): Use
2773 completion_skip_symbol. Pass down mode.
2774 (collect_file_symbol_completion_matches): Pass down mode.
2775 * symtab.h (symbol_is_function_or_method): New declarations.
2776 (completion_skip_symbol): New template function.
2778 2017-11-08 Pedro Alves <palves@redhat.com>
2780 * linespec.c (iterate_over_all_matching_symtabs): Add
2781 search_domain parameter. Pass it down to expand_symtabs_matching.
2782 (decode_objc): Request FUNCTIONS_DOMAIN symbols only.
2783 (lookup_prefix_sym): Adjust by passing ALL_DOMAIN as
2785 (add_all_symbol_names_from_pspace): Add search_domain parameter.
2787 (find_method, find_function_symbols): Request FUNCTIONS_DOMAIN
2789 (add_matching_symbols_to_info): Add search_domain parameter. Pass
2792 2017-11-08 Pedro Alves <palves@redhat.com>
2794 * ada-lang.c (ada_make_symbol_completion_list): Remove text and
2795 text_len locals and don't pass them down.
2796 * symtab.c (completion_list_add_name): Remove
2797 sym_text/sym_text_len parameters and adjust.
2798 (completion_list_add_symbol, completion_list_add_msymbol)
2799 (completion_list_objc_symbol, completion_list_add_fields)
2800 (add_symtab_completions): Likewise.
2801 (default_collect_symbol_completion_matches_break_on)
2802 (collect_file_symbol_completion_matches): Remove sym_text_len
2803 local and don't pass it down.
2804 * symtab.h (completion_list_add_name): Remove
2805 sym_text/sym_text_len parameters.
2807 2017-11-08 Pedro Alves <palves@redhat.com>
2809 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2810 unittests/lookup_name_info-selftests.c.
2811 (SUBDIR_UNITTESTS_OBS): Add lookup_name_info-selftests.o.
2812 * cp-support.c: Include "selftest.h".
2813 (cp_remove_params_1): Rename from cp_remove_params. Add
2814 'require_param' parameter, and handle it.
2815 (cp_remove_params): Reimplement.
2816 (cp_remove_params_if_any): New.
2817 (selftests::quote): New.
2818 (selftests::check_remove_params): New.
2819 (selftests::test_cp_remove_params): New.
2820 (_initialize_cp_support): Install
2821 selftests::test_cp_remove_params.
2822 * cp-support.h (cp_remove_params_if_any): Declare.
2823 * dwarf2read.c :Include "selftest.h".
2824 (dw2_expand_symtabs_matching_symbol): Use
2825 lookup_name_info::make_ignore_params.
2826 (selftests::dw2_expand_symtabs_matching::mock_mapped_index)
2827 (selftests::dw2_expand_symtabs_matching::string_or_null)
2828 (selftests::dw2_expand_symtabs_matching::check_match)
2829 (selftests::dw2_expand_symtabs_matching::test_symbols)
2830 (selftests::dw2_expand_symtabs_matching::run_test): New.
2831 (_initialize_dwarf2_read): Register
2832 selftests::dw2_expand_symtabs_matching::run_test.
2833 * psymtab.c (psym_expand_symtabs_matching): Use
2834 lookup_name_info::make_ignore_params.
2835 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info):
2836 If the lookup name wants to ignore parameters, strip them.
2837 (compare_symbol_name): Remove sym_text/sym_text_len parameters and
2839 (completion_list_add_name): Don't pass down sym_text/sym_text_len.
2840 (default_collect_symbol_completion_matches_break_on): Don't try to
2842 * symtab.h (lookup_name_info::lookup_name_info): Add
2843 'ignore_parameters' parameter.
2844 (lookup_name_info::ignore_parameters)
2845 (lookup_name_info::make_ignore_params): New methods.
2846 (lookup_name_info::m_ignore_parameters): New field.
2847 * unittests/lookup_name_info-selftests.c: New file.
2849 2017-11-08 Pedro Alves <palves@redhat.com>
2851 * dwarf2read.c (dw2_expand_marked_cus)
2852 (dw2_expand_symtabs_matching_symbol): Remove forward declarations.
2853 (dw2_expand_symtabs_matching): Move further below.
2854 (dw2_expand_marked_cus): Reindent.
2856 2017-11-08 Pedro Alves <palves@redhat.com>
2858 * dwarf2read.c (byte_swap, MAYBE_SWAP): Move higher up in file.
2859 (struct name_component): New.
2860 (mapped_index::name_components): New field.
2861 (mapped_index::symbol_name_at): New method.
2862 (dwarf2_read_index): Call mapped_index ctor.
2863 (dw2_map_matching_symbols): Add comment about name_components
2865 (dw2_expand_symtabs_matching): Factor part to...
2866 (dw2_expand_symtabs_matching_symbol): ... this new function.
2867 Build name components table, and lookup symbols in it before
2868 calling the name matcher.
2869 (dw2_expand_marked_cus): New, factored out from
2870 dw2_expand_symtabs_matching.
2871 (dwarf2_per_objfile_free): Call the mapped_index's dtor.
2873 2017-11-08 Pedro Alves <palves@redhat.com>
2875 * ada-lang.c (ada_encode): Rename to ..
2876 (ada_encode_1): ... this. Add throw_errors parameter and handle
2878 (ada_encode): Reimplement.
2879 (match_name): Delete, folded into full_name.
2880 (resolve_subexp): No longer pass the encoded name to
2881 ada_lookup_symbol_list.
2882 (should_use_wild_match): Delete.
2883 (name_match_type_from_name): New.
2884 (ada_lookup_simple_minsym): Use lookup_name_info and the
2885 language's symbol_name_matcher_ftype.
2886 (add_symbols_from_enclosing_procs, ada_add_local_symbols)
2887 (ada_add_block_renamings): Adjust to use lookup_name_info.
2888 (ada_lookup_name): New.
2889 (add_nonlocal_symbols, ada_add_all_symbols)
2890 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list)
2891 (ada_iterate_over_symbols): Adjust to use lookup_name_info.
2892 (ada_name_for_lookup): Delete.
2893 (ada_lookup_encoded_symbol): Construct a verbatim name.
2894 (wild_match): Reverse sense of return type. Use bool.
2895 (full_match): Reverse sense of return type. Inline bits of old
2897 (ada_add_block_symbols): Adjust to use lookup_name_info.
2898 (symbol_completion_match): Delete, folded into...
2899 (ada_lookup_name_info::matches): ... .this new method.
2900 (symbol_completion_add): Delete.
2901 (ada_collect_symbol_completion_matches): Add name_match_type
2902 parameter. Adjust to use lookup_name_info and
2903 completion_list_add_name.
2904 (get_var_value, ada_add_global_exceptions): Adjust to use
2906 (ada_get_symbol_name_cmp): Delete.
2907 (do_wild_match, do_full_match): New functions.
2908 (ada_lookup_name_info::ada_lookup_name_info): New method.
2909 (ada_symbol_name_matches, ada_get_symbol_name_matcher): New
2911 (ada_language_defn): Install ada_get_symbol_name_matcher.
2912 * ada-lex.l (processId): If name starts with '<', copy it
2914 * block.c (block_iter_match_step, block_iter_match_first)
2915 (block_iter_match_next, block_lookup_symbol)
2916 (block_lookup_symbol_primary, block_find_symbol): Adjust to use
2918 * block.h (block_iter_match_first, block_iter_match_next)
2919 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use lookup_name_info.
2920 * c-lang.c (c_language_defn, cplus_language_defn)
2921 (asm_language_defn, minimal_language_defn): Adjust comments to
2922 refer to la_get_symbol_name_matcher.
2923 * completer.c (complete_files_symbols)
2924 (collect_explicit_location_matches, symbol_completer): Pass a
2925 symbol_name_match_type down.
2926 * completer.h (class completion_match, completion_match_result):
2928 (completion_tracker::reset_completion_match_result): New method.
2929 (completion_tracker::m_completion_match_result): New field.
2930 * cp-support.c (make_symbol_overload_list_block): Adjust to use
2932 (cp_fq_symbol_name_matches, cp_get_symbol_name_matcher): New
2934 * cp-support.h (cp_get_symbol_name_matcher): New declaration.
2935 * d-lang.c: Adjust comments to refer to
2936 la_get_symbol_name_matcher.
2937 * dictionary.c (dict_vector) <iter_match_first, iter_match_next>:
2938 Adjust to use lookup_name_info.
2939 (dict_iter_match_first, dict_iter_match_next)
2940 (iter_match_first_hashed, iter_match_next_hashed)
2941 (iter_match_first_linear, iter_match_next_linear): Adjust to work
2942 with a lookup_name_info.
2943 * dictionary.h (dict_iter_match_first, dict_iter_match_next):
2945 * dwarf2read.c (dw2_lookup_symbol): Adjust to use lookup_name_info.
2946 (dw2_map_matching_symbols): Adjust to use symbol_name_match_type.
2947 (gdb_index_symbol_name_matcher): New class.
2948 (dw2_expand_symtabs_matching) Adjust to use lookup_name_info and
2949 gdb_index_symbol_name_matcher. Accept a NULL symbol_matcher.
2950 * f-lang.c (f_collect_symbol_completion_matches): Adjust to work
2951 with a symbol_name_match_type.
2952 (f_language_defn): Adjust comments to refer to
2953 la_get_symbol_name_matcher.
2954 * go-lang.c (go_language_defn): Adjust comments to refer to
2955 la_get_symbol_name_matcher.
2956 * language.c (default_symbol_name_matcher)
2957 (language_get_symbol_name_matcher): New functions.
2958 (unknown_language_defn, auto_language_defn): Adjust comments to
2959 refer to la_get_symbol_name_matcher.
2960 * language.h (symbol_name_cmp_ftype): Delete.
2961 (language_defn) <la_collect_symbol_completion_matches>: Add match
2963 <la_get_symbol_name_cmp>: Delete field.
2964 <la_get_symbol_name_matcher>: New field.
2965 <la_iterate_over_symbols>: Adjust to use lookup_name_info.
2966 (default_symbol_name_matcher, language_get_symbol_name_matcher):
2968 * linespec.c (iterate_over_all_matching_symtabs)
2969 (iterate_over_file_blocks): Adjust to use lookup_name_info.
2970 (find_methods): Add language parameter, and use lookup_name_info
2971 and the language's symbol_name_matcher_ftype.
2972 (linespec_complete_function): Adjust.
2973 (lookup_prefix_sym): Use lookup_name_info.
2974 (add_all_symbol_names_from_pspace): Adjust.
2975 (find_superclass_methods): Add language parameter and pass it
2977 (find_method): Pass symbol language down.
2978 (find_linespec_symbols): Don't demangle or Ada encode here.
2979 (search_minsyms_for_name): Add lookup_name_info parameter.
2980 (add_matching_symbols_to_info): Add name_match_type parameter.
2981 Use lookup_name_info.
2982 * m2-lang.c (m2_language_defn): Adjust comments to refer to
2983 la_get_symbol_name_matcher.
2984 * minsyms.c: Include <algorithm>.
2985 (add_minsym_to_demangled_hash_table): Remove table parameter and
2986 add objfile parameter. Use search_name_hash, and add language to
2987 demangled languages vector.
2988 (struct found_minimal_symbols): New struct.
2989 (lookup_minimal_symbol_mangled, lookup_minimal_symbol_demangled):
2991 (lookup_minimal_symbol): Adjust to use them. Don't canonicalize
2992 input names here. Use lookup_name_info instead. Lookup up
2993 demangled names once for each language in the demangled names
2995 (iterate_over_minimal_symbols): Use lookup_name_info. Lookup up
2996 demangled names once for each language in the demangled names
2998 (build_minimal_symbol_hash_tables): Adjust.
2999 * minsyms.h (iterate_over_minimal_symbols): Adjust to pass down a
3001 * objc-lang.c (objc_language_defn): Adjust comment to refer to
3002 la_get_symbol_name_matcher.
3003 * objfiles.h: Include <vector>.
3004 (objfile_per_bfd_storage) <demangled_hash_languages>: New field.
3005 * opencl-lang.c (opencl_language_defn): Adjust comment to refer to
3006 la_get_symbol_name_matcher.
3007 * p-lang.c (pascal_language_defn): Adjust comment to refer to
3008 la_get_symbol_name_matcher.
3009 * psymtab.c (psym_lookup_symbol): Use lookup_name_info.
3010 (match_partial_symbol): Use symbol_name_match_type,
3011 lookup_name_info and psymbol_name_matches.
3012 (lookup_partial_symbol): Use lookup_name_info.
3013 (map_block): Use symbol_name_match_type and lookup_name_info.
3014 (psym_map_matching_symbols): Use symbol_name_match_type.
3015 (psymbol_name_matches): New.
3016 (recursively_search_psymtabs): Use lookup_name_info and
3017 psymbol_name_matches. Rename 'kind' parameter to 'domain'.
3018 (psym_expand_symtabs_matching): Use lookup_name_info. Rename
3019 'kind' parameter to 'domain'.
3020 * rust-lang.c (rust_language_defn): Adjust comment to refer to
3021 la_get_symbol_name_matcher.
3022 * symfile-debug.c (debug_qf_map_matching_symbols)
3023 (debug_qf_map_matching_symbols): Use symbol_name_match_type.
3024 (debug_qf_expand_symtabs_matching): Use lookup_name_info.
3025 * symfile.c (expand_symtabs_matching): Use lookup_name_info.
3026 * symfile.h (quick_symbol_functions) <map_matching_symbols>:
3027 Adjust to use symbol_name_match_type.
3028 <expand_symtabs_matching>: Adjust to use lookup_name_info.
3029 (expand_symtabs_matching): Adjust to use lookup_name_info.
3030 * symmisc.c (maintenance_expand_symtabs): Use
3031 lookup_name_info::match_any ().
3032 * symtab.c (symbol_matches_search_name): New.
3033 (eq_symbol_entry): Adjust to use lookup_name_info and the
3035 (demangle_for_lookup_info::demangle_for_lookup_info): New.
3036 (lookup_name_info::match_any): New.
3037 (iterate_over_symbols, search_symbols): Use lookup_name_info.
3038 (compare_symbol_name): Add language, lookup_name_info and
3039 completion_match_result parameters, and use them.
3040 (completion_list_add_name): Make extern. Add language and
3041 lookup_name_info parameters. Use them.
3042 (completion_list_add_symbol, completion_list_add_msymbol)
3043 (completion_list_objc_symbol): Add lookup_name_info parameters and
3044 adjust. Pass down language.
3045 (completion_list_add_fields): Add lookup_name_info parameters and
3046 adjust. Pass down language.
3047 (add_symtab_completions): Add lookup_name_info parameters and
3049 (default_collect_symbol_completion_matches_break_on): Add
3050 name_match_type parameter, and use it. Use lookup_name_info.
3051 (default_collect_symbol_completion_matches)
3052 (collect_symbol_completion_matches): Add name_match_type
3053 parameter, and pass it down.
3054 (collect_symbol_completion_matches_type): Adjust.
3055 (collect_file_symbol_completion_matches): Add name_match_type
3056 parameter, and use lookup_name_info.
3057 * symtab.h: Include <string> and "common/gdb_optional.h".
3058 (enum class symbol_name_match_type): New.
3059 (class ada_lookup_name_info): New.
3060 (struct demangle_for_lookup_info): New.
3061 (class lookup_name_info): New.
3062 (symbol_name_matcher_ftype): New.
3063 (SYMBOL_MATCHES_SEARCH_NAME): Use symbol_matches_search_name.
3064 (symbol_matches_search_name): Declare.
3065 (MSYMBOL_MATCHES_SEARCH_NAME): Delete.
3066 (default_collect_symbol_completion_matches)
3067 (collect_symbol_completion_matches)
3068 (collect_file_symbol_completion_matches): Add name_match_type
3070 (iterate_over_symbols): Use lookup_name_info.
3071 (completion_list_add_name): Declare.
3072 * utils.c (enum class strncmp_iw_mode): Moved to utils.h.
3073 (strncmp_iw_with_mode): Now extern.
3074 * utils.h (enum class strncmp_iw_mode): Moved from utils.c.
3075 (strncmp_iw_with_mode): Declare.
3077 2017-11-08 Keith Seitz <keiths@redhat.com>
3078 Pedro Alves <palves@redhat.com>
3080 * ada-lang.c (ada_language_defn): Install
3081 default_search_name_hash.
3082 * buildsym.c (struct buildsym_compunit): <language>: New field.
3083 (finish_block_internal): Pass language when creating dictionaries.
3084 (start_buildsym_compunit, start_symtab): New language parameters.
3086 (restart_symtab): Pass down compilation unit's language.
3087 * buildsym.h (enum language): Forward declare.
3088 (start_symtab): New 'language' parameter.
3089 * c-lang.c (c_language_defn, cplus_language_defn)
3090 (asm_language_defn, minimal_language_defn): Install
3091 default_search_name_hash.
3092 * coffread.c (coff_start_symtab): Adjust.
3093 * d-lang.c (d_language_defn): Install default_search_name_hash.
3094 * dbxread.c (struct symloc): Add 'pst_language' field.
3095 (PST_LANGUAGE): Define.
3096 (start_psymtab, read_ofile_symtab): Use it.
3097 (process_one_symbol): New 'language' parameter. Pass it down.
3098 * dictionary.c (struct dictionary) <language>: New field.
3099 (DICT_LANGUAGE): Define.
3100 (dict_create_hashed, dict_create_hashed_expandable)
3101 (dict_create_linear, dict_create_linear_expandable): New parameter
3102 'language'. Set the dictionary's language.
3103 (iter_match_first_hashed): Adjust to rename.
3104 (insert_symbol_hashed): Assert we don't see mismatching
3105 languages. Adjust to rename.
3106 (dict_hash): Rename to ...
3107 (default_search_name_hash): ... this and make extern.
3108 * dictionary.h (struct language_defn): Forward declare.
3109 (dict_create_hashed): New parameter 'language'.
3110 * dwarf2read.c (dwarf2_start_symtab): Pass down language.
3111 * f-lang.c (f_language_defn): Install default_search_name_hash.
3112 * go-lang.c (go_language_defn): Install default_search_name_hash.
3113 * jit.c (finalize_symtab): Pass compunit's language to dictionary
3115 * language.c (unknown_language_defn, auto_language_defn):
3116 * language.h (language_defn::la_search_name_hash): New field.
3117 (default_search_name_hash): Declare.
3118 * m2-lang.c (m2_language_defn): Install default_search_name_hash.
3119 * mdebugread.c (new_block): New parameter 'language'.
3120 * mdebugread.c (parse_symbol): Pass symbol language to block
3122 (psymtab_to_symtab_1): Pass down language.
3123 (new_symtab): Pass compunit's language to block allocation.
3124 * objc-lang.c (objc_language_defn): Install
3125 default_search_name_hash.
3126 * opencl-lang.c (opencl_language_defn):
3127 * p-lang.c (pascal_language_defn): Install
3128 default_search_name_hash.
3129 * rust-lang.c (rust_language_defn): Install
3130 default_search_name_hash.
3131 * stabsread.h (enum language): Forward declare.
3132 (process_one_symbol): Add 'language' parameter.
3133 * symtab.c (search_name_hash): New function.
3134 * symtab.h (search_name_hash): Declare.
3135 * xcoffread.c (read_xcoff_symtab): Pass language to start_symtab.
3137 2017-11-08 Pedro Alves <palves@redhat.com>
3139 * cp-name-parser.y (main): Don't initialize extra_chars.
3141 2017-11-07 Tom Tromey <tom@tromey.com>
3143 * event-top.h (command_handler): Constify.
3144 * record-full.c (cmd_record_full_start): Update.
3145 * thread.c (thread_apply_all_command): Update.
3146 * printcmd.c (eval_command): Update.
3147 * mi/mi-main.c (mi_execute_cli_command): Update.
3148 (mi_execute_async_cli_command): Update.
3149 * tui/tui-stack.c (tui_update_command): Update.
3150 * cli/cli-interp.c (safe_execute_command): Constify.
3151 * record.c (record_start): Update.
3152 (record_start, record_stop, cmd_record_start): Update.
3153 * record-btrace.c (cmd_record_btrace_bts_start): Update.
3154 (cmd_record_btrace_pt_start): Update.
3155 (cmd_record_btrace_start): Update.
3156 (cmd_record_btrace_start): Update.
3157 * reverse.c (exec_reverse_once): Update.
3158 * python/python.c (execute_gdb_command): Don't copy the command.
3159 * event-top.c (command_line_handler): Update.
3160 (command_handler): Constify.
3161 * defs.h (deprecated_call_command_hook): Constify.
3162 * cli/cli-script.h (execute_user_command): Constify.
3163 * cli/cli-script.c (execute_user_command): Constify.
3164 (execute_cmd_pre_hook, execute_cmd_post_hook): Constify.
3165 (enum command_control_type): Update.
3166 * main.c (catch_command_errors): Remove non-const overload.
3167 (catch_command_errors_ftype): Remove.
3168 * python/py-cmd.c (cmdpy_function): Constify.
3169 * guile/scm-cmd.c (cmdscm_function): Constify.
3170 * cli/cli-dump.c (call_dump_func): Constify.
3171 * cli/cli-decode.c (do_const_cfunc): Constify.
3172 (do_sfunc): Constify.
3173 (cmd_func): Constify.
3174 * gdbcmd.h (execute_command, execute_command_to_string): Constify.
3175 * top.h (execute_command): Constify.
3176 * top.c (execute_command): Constify.
3177 (execute_command_to_string): Constify.
3178 (deprecated_call_command_hook): Constify.
3179 * command.h (cmd_func): Constify.
3180 * cli/cli-decode.h (struct cmd_list_element) <func>: Constify.
3182 2017-11-07 Tom Tromey <tom@tromey.com>
3184 * ada-lang.c (catch_ada_exception_command): Constify.
3185 (catch_assert_command): Constify.
3186 * break-catch-throw.c (catch_catch_command, catch_throw_command)
3187 (catch_rethrow_command): Constify.
3188 (catch_exception_command_1): Constify.
3189 * breakpoint.h (add_catch_command): Constify.
3190 * break-catch-syscall.c (catch_syscall_command_1): Constify.
3191 (catch_syscall_split_args): Constify.
3192 * break-catch-sig.c (catch_signal_command): Constify.
3193 (catch_signal_split_args): Constify.
3194 * cli/cli-decode.h (struct cmd_list_element) <function>: Use
3195 cmd_const_sfunc_ftype.
3196 * cli/cli-decode.c (add_setshow_cmd_full): Constify.
3197 (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd)
3198 (add_setshow_boolean_cmd, add_setshow_filename_cmd)
3199 (add_setshow_string_cmd, struct cmd_list_element)
3200 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
3201 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
3202 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd):
3204 (set_cmd_sfunc): Constify.
3205 (empty_sfunc): Constify.
3206 * command.h (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd)
3207 (add_setshow_boolean_cmd, add_setshow_filename_cmd)
3208 (add_setshow_string_cmd, add_setshow_string_noescape_cmd)
3209 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
3210 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
3211 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
3213 (set_cmd_sfunc): Constify.
3214 (cmd_sfunc_ftype): Remove.
3215 * compile/compile.c (set_compile_args): Constify.
3216 * infrun.c (set_disable_randomization): Constify.
3217 * infcmd.c (set_args_command, set_cwd_command): Constify.
3218 * breakpoint.c (set_condition_evaluation_mode): Constify.
3219 (add_catch_command): Constify.
3220 (catch_fork_command_1, catch_exec_command_1)
3221 (catch_load_command_1, catch_unload_command_1): Constify.
3222 (catch_load_or_unload): Constify.
3223 * guile/scm-param.c (pascm_set_func): Constify.
3224 (add_setshow_generic): Constify.
3225 * python/py-param.c (get_set_value): Constify.
3226 * top.h (set_verbose): Constify.
3227 * tui/tui-win.c (tui_set_var_cmd): Constify.
3228 * mi/mi-main.c (set_mi_async_command): Constify.
3229 * cli/cli-logging.c (set_logging_overwrite)
3230 (set_logging_redirect): Constify.
3231 * value.c (set_max_value_size): Constify.
3232 * valprint.c (set_input_radix, set_output_radix): Constify.
3233 * utils.c (set_width_command, set_height_command): Constify.
3234 * typeprint.c (set_print_type_methods, set_print_type_typedefs): Constify.
3235 * tracepoint.c (set_disconnected_tracing)
3236 (set_circular_trace_buffer, set_trace_buffer_size)
3237 (set_trace_user, set_trace_notes, set_trace_stop_notes): Constify.
3238 * top.c (set_history_size_command, set_verbose, set_editing)
3239 (set_gdb_datadir, set_history_filename): Constify.
3240 * target.c (set_targetdebug, maint_set_target_async_command)
3241 (maint_set_target_non_stop_command, set_target_permissions)
3242 (set_write_memory_permission): Constify.
3243 (open_target): Constify.
3244 * target-descriptions.c (set_tdesc_filename_cmd): Constify.
3245 * target-dcache.c (set_stack_cache, set_code_cache): Constify.
3246 * symtab.c (set_symbol_cache_size_handler): Constify.
3247 * symfile.c (set_ext_lang_command): Constify.
3248 * symfile-debug.c (set_debug_symfile): Constify.
3249 * source.c (set_directories_command): Constify.
3250 * solib.c (reload_shared_libraries, gdb_sysroot_changed): Constify.
3251 * serial.c (set_parity): Constify.
3252 * rs6000-tdep.c (powerpc_set_soft_float, powerpc_set_vector_abi): Constify.
3253 * remote.c (set_remote_exec_file, set_remotebreak)
3254 (set_remote_protocol_Z_packet_cmd, set_range_stepping): Constify.
3255 * record.c (set_record_insn_history_size)
3256 (set_record_call_history_size): Constify.
3257 * record-full.c (set_record_full_insn_max_num): Constify.
3258 * proc-api.c (set_procfs_trace_cmd, set_procfs_file_cmd): Constify.
3259 * osabi.c (set_osabi): Constify.
3260 * mips-tdep.c (set_mips64_transfers_32bit_regs)
3261 (reinit_frame_cache_sfunc, mips_abi_update): Constify.
3262 * maint.c (maintenance_set_profile_cmd): Constify.
3263 * linux-thread-db.c (set_libthread_db_search_path): Constify.
3264 * language.c (set_language_command, set_range_command)
3265 (set_case_command): Constify.
3266 * infrun.c (set_non_stop, set_observer_mode)
3267 (set_stop_on_solib_events, set_schedlock_func)
3268 (set_exec_direction_func): Constify.
3269 * infcmd.c (set_inferior_tty_command): Constify.
3270 * disasm.c (set_disassembler_options_sfunc): Constify.
3271 * demangle.c (set_demangling_command): Constify.
3272 * dcache.c (set_dcache_size, set_dcache_line_size): Constify.
3273 * cris-tdep.c (set_cris_version, set_cris_mode)
3274 (set_cris_dwarf2_cfi): Constify.
3275 * corefile.c (set_gnutarget_command): Constify.
3276 * charset.c (set_host_charset_sfunc, set_target_charset_sfunc)
3277 (set_target_wide_charset_sfunc): Constify.
3278 * breakpoint.c (update_dprintf_commands): Constify.
3279 * auto-load.c (set_auto_load_dir, set_auto_load_safe_path): Constify.
3280 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi)
3281 (set_disassembly_style_sfunc): Constify.
3282 * arch-utils.c (set_endian, set_architecture): Constify.
3283 * alpha-tdep.c (reinit_frame_cache_sfunc): Constify.
3284 * agent.c (set_can_use_agent): Constify.
3286 2017-11-07 Tom Tromey <tom@tromey.com>
3288 * go32-nat.c (go32_sysinfo, go32_sldt, go32_sgdt, go32_sidt)
3289 (go32_pde, go32_pte, go32_pte_for_address): Constify.
3290 * gnu-nat.c (_parse_bool_arg, show_thread_default_pause_cmd)
3291 (set_thread_default_pause_cmd, set_thread_default_run_cmd)
3292 (show_thread_default_run_cmd, set_thread_default_detach_sc_cmd)
3293 (parse_int_arg, show_thread_default_detach_sc_cmd)
3294 (set_signals_cmd, show_signals_cmd, set_sig_thread_cmd)
3295 (show_sig_thread_cmd, set_stopped_cmd, show_stopped_cmd)
3296 (set_exceptions_cmd, show_exceptions_cmd, set_task_pause_cmd)
3297 (show_task_pause_cmd, set_task_detach_sc_cmd)
3298 (show_task_detach_sc_cmd, set_task_exc_port_cmd)
3299 (set_noninvasive_cmd, set_thread_pause_cmd)
3300 (show_thread_pause_cmd, set_thread_run_cmd, show_thread_run_cmd)
3301 (set_thread_detach_sc_cmd, show_thread_detach_sc_cmd)
3302 (set_thread_exc_port_cmd, thread_takeover_sc_cmd): Constify.
3303 * windows-nat.c (display_selectors): Constify.
3304 * cli/cli-decode.h (struct cmd_list_element) <function>: Remove
3306 * cli/cli-decode.c (set_cmd_cfunc): Remove non-const overload.
3307 (cmd_cfunc_eq): Likewise.
3308 (struct cmd_list_element): Likewise.
3310 (cli_user_command_p): Update.
3311 * command.h (add_cmd): Remove non-const overload.
3312 (cmd_cfunc_ftype): Remove typedef.
3313 (cmd_cfunc_eq): Remove non-const overload.
3314 * value.c (show_values): Constify.
3315 * thread.c (thread_apply_all_command): Constify.
3316 * symfile.c (load_command): Constify.
3317 * source.c (directory_command): Constify.
3318 * maint.c (maintenance_internal_error)
3319 (maintenance_demangler_warning, maintenance_space_display)
3320 (maintenance_print_architecture, maintenance_translate_address)
3321 (maintenance_info_selftests, maintenance_internal_warning):
3323 * breakpoint.c (disable_trace_command, enable_trace_command):
3325 * auto-load.c (info_auto_load_local_gdbinit, add_auto_load_dir):
3327 (add_auto_load_safe_path): Constify.
3328 * guile/scm-auto-load.c (info_auto_load_guile_scripts): Constify.
3329 * top.h (show_commands): Constify.
3330 * linux-thread-db.c (info_auto_load_libthread_db): Constify.
3331 * sparc64-tdep.c (adi_examine_command): Constify.
3332 (adi_assign_command): Constify.
3334 2017-11-07 Tom Tromey <tom@tromey.com>
3336 * frame.h (info_locals_command, info_args_command): Constify.
3337 * auto-load.h (auto_load_info_scripts): Constify.
3338 * inferior.h (registers_info): Constify.
3339 * copying.c: Rebuild.
3340 * copying.awk: Constify generated commands.
3341 * auto-load.c (auto_load_info_scripts)
3342 (info_auto_load_gdb_scripts): Constify.
3343 * cli/cli-decode.c (struct cmd_list_element): Take a
3344 cmd_const_cfunc_ftype.
3345 * command.h (add_info): Take a cmd_const_cfunc_ftype.
3346 * tui/tui-win.c (tui_all_windows_info): Constify.
3347 * python/py-auto-load.c (info_auto_load_python_scripts):
3349 * cli/cli-cmds.c (show_command): Remove non-const overload.
3350 * tracepoint.c (info_tvariables_command, info_scope_command):
3352 (info_static_tracepoint_markers_command): Constify.
3353 * thread.c (info_threads_command): Constify.
3354 (print_thread_info_1): Constify.
3355 * target.c (info_target_command): Constify.
3356 * symtab.c (info_sources_command, info_functions_command)
3357 (info_types_command): Constify.
3358 (info_variables_command): Remove non-const overload.
3359 * symfile.c (info_ext_lang_command): Constify.
3360 * stack.c (info_frame_command, info_locals_command)
3361 (info_args_command): Constify.
3362 (backtrace_command): Remove non-const overload.
3363 * source.c (info_source_command, info_line_command): Constify.
3364 * solib.c (info_sharedlibrary_command): Constify.
3365 * skip.c (info_skip_command): Constify.
3366 * ser-go32.c (info_serial_command): Constify.
3367 * reverse.c (info_bookmarks_command): Constify.
3368 * printcmd.c (info_symbol_command, info_address_command)
3369 (info_display_command): Constify.
3370 * osdata.c (info_osdata_command): Constify.
3371 * objc-lang.c (info_selectors_command, info_classes_command):
3373 * nto-procfs.c (procfs_pidlist, procfs_meminfo): Constify.
3374 * memattr.c (info_mem_command): Constify.
3375 * macrocmd.c (info_macro_command, info_macros_command): Constify.
3376 * linux-fork.c (info_checkpoints_command): Constify.
3377 * infrun.c (info_signals_command): Constify.
3378 * inflow.c (info_terminal_command): Constify.
3379 * inferior.c (info_inferiors_command): Constify.
3380 (print_inferior): Constify.
3381 * infcmd.c (info_program_command, info_all_registers_command)
3382 (info_registers_command, info_vector_command)
3383 (info_float_command): Constify.
3384 (registers_info): Constify.
3385 * gnu-nat.c (info_send_rights_cmd, info_recv_rights_cmd)
3386 (info_port_sets_cmd, info_dead_names_cmd, info_port_rights_cmd):
3388 * f-valprint.c (info_common_command): Constify.
3389 * dcache.c (info_dcache_command): Constify.
3390 (dcache_info_1): Constify.
3391 * darwin-nat-info.c (info_mach_tasks_command)
3392 (info_mach_task_command, info_mach_ports_command)
3393 (info_mach_port_command, info_mach_threads_command)
3394 (info_mach_thread_command, info_mach_regions_command)
3395 (info_mach_regions_recurse_command, info_mach_region_command)
3396 (info_mach_exceptions_command): Constify.
3397 (get_task_from_args): Constify.
3398 * cp-support.c (info_vtbl_command): Constify.
3399 * breakpoint.c (info_watchpoints_command)
3400 (info_tracepoints_command): Constify.
3401 (info_breakpoints_command): Remove non-const overload.
3402 * avr-tdep.c (avr_io_reg_read_command): Constify.
3403 * auxv.c (info_auxv_command): Constify.
3404 * ada-tasks.c (info_tasks_command): Constify.
3405 (info_task): Constify.
3406 * ada-lang.c (info_exceptions_command): Constify.
3408 2017-11-07 Tom Tromey <tom@tromey.com>
3410 * solib.h (no_shared_libraries): Constify.
3411 * frame.h (return_command): Constify.
3412 * cli/cli-cmds.h (quit_command): Constify.
3413 * top.h (quit_command, execute_command): Constify.
3414 * target.h (flash_erase_command): Constify.
3415 * inferior.h (set_inferior_args, attach_command): Constify.
3416 * tracepoint.h (start_tracing, stop_tracing): Constify.
3417 * breakpoint.h (break_command, tbreak_command)
3418 (hbreak_command_wrapper, thbreak_command_wrapper)
3419 (rbreak_command_wrapper, watch_command_wrapper)
3420 (awatch_command_wrapper, rwatch_command_wrapper)
3421 (get_tracepoint_by_number): Constify.
3422 * symtab.c (info_variables_command, rbreak_command)
3423 (symtab_symbol_info): Constify.
3424 (info_variables_command): Add non-const overload.
3425 * top.c (dont_repeat_command): Constify.
3426 * breakpoint.c (ignore_command, commands_command)
3427 (condition_command, tbreak_command, hbreak_command)
3428 (thbreak_command, clear_command, break_command)
3429 (info_breakpoints_command, watch_command, rwatch_command)
3430 (awatch_command, trace_command, ftrace_command, strace_command)
3431 (trace_pass_command, break_range_command, dprintf_command)
3432 (agent_printf_command, get_tracepoint_by_number)
3433 (watch_maybe_just_location, trace_pass_command): Constify.
3434 (info_breakpoints_command): Add non-const overload.
3435 * tracefile.c (tsave_command): Constify.
3436 * infcmd.c (attach_command, disconnect_command, signal_command)
3437 (queue_signal_command, stepi_command, nexti_command)
3438 (finish_command, next_command, step_command, until_command)
3439 (advance_command, jump_command, continue_command, run_command)
3440 (start_command, starti_command, interrupt_command)
3441 (run_command_1, set_inferior_args, step_1): Constify.
3442 * inferior.c (add_inferior_command, remove_inferior_command)
3443 (clone_inferior_command): Constify.
3444 * linux-fork.c (checkpoint_command, restart_command): Constify.
3445 * windows-nat.c (signal_event_command): Constify.
3446 * guile/guile.c (guile_repl_command, guile_command): Constify.
3447 * printcmd.c (x_command, display_command, printf_command)
3448 (output_command, set_command, call_command, print_command)
3449 (eval_command): Constify.
3450 (non_const_set_command): Remove.
3451 (_initialize_printcmd): Update.
3452 * source.c (forward_search_command, reverse_search_command):
3454 * jit.c (jit_reader_load_command, jit_reader_unload_command):
3456 * infrun.c (handle_command): Constify.
3457 * memattr.c (mem_command): Constify.
3458 * stack.c (return_command, up_command, up_silently_command)
3459 (down_command, down_silently_command, frame_command)
3460 (backtrace_command, func_command, backtrace_command_1): Constify.
3461 (backtrace_command): Add non-const overload.
3462 * remote-sim.c (simulator_command): Constify.
3463 * exec.c (set_section_command): Constify.
3464 * tracepoint.c (tdump_command, trace_variable_command)
3465 (tstatus_command, tstop_command, tstart_command)
3466 (end_actions_pseudocommand, while_stepping_pseudocommand)
3467 (collect_pseudocommand, teval_pseudocommand, actions_command)
3468 (start_tracing, stop_tracing): Constify.
3469 * value.c (init_if_undefined_command): Constify.
3470 * tui/tui-stack.c (tui_update_command): Constify.
3471 * tui/tui-win.c (tui_refresh_all_command)
3472 (tui_set_tab_width_command, tui_set_win_height_command)
3473 (tui_set_focus_command, tui_scroll_forward_command)
3474 (tui_scroll_backward_command, tui_scroll_left_command)
3475 (tui_scroll_right_command, parse_scrolling_args, tui_set_focus)
3476 (tui_set_win_height): Constify.
3477 * tui/tui-layout.c (tui_layout_command): Constify.
3478 * procfs.c (proc_trace_syscalls, proc_trace_sysentry_cmd)
3479 (proc_trace_sysexit_cmd, proc_untrace_sysentry_cmd)
3480 (proc_untrace_sysexit_cmd): Constify.
3481 * remote.c (threadlist_test_cmd, threadinfo_test_cmd)
3482 (threadset_test_cmd, threadlist_update_test_cmd)
3483 (threadalive_test): Constify.
3484 * objc-lang.c (print_object_command): Constify.
3485 * command.h (add_com): Constify.
3486 * cli/cli-dump.c (restore_command): Constify.
3487 * cli/cli-cmds.c (pwd_command, echo_command, quit_command)
3488 (help_command, complete_command, shell_command, edit_command)
3489 (list_command, disassemble_command, make_command)
3490 (apropos_command, alias_command): Constify.
3491 * cli/cli-script.c (document_command, define_command)
3492 (while_command, if_command, validate_comname): Constify.
3493 * cli/cli-decode.c (struct cmd_list_element): Change type of
3495 * target.c (do_monitor_command, flash_erase_command): Constify.
3496 * regcache.c (reg_flush_command): Constify.
3497 * reverse.c (reverse_step, reverse_next, reverse_stepi)
3498 (reverse_nexti, reverse_continue, reverse_finish)
3499 (save_bookmark_command, goto_bookmark_command)
3500 (exec_reverse_once): Constify.
3501 * python/python.c (python_interactive_command, python_command):
3503 * typeprint.c (ptype_command, whatis_command, whatis_exp):
3505 * solib.c (sharedlibrary_command, no_shared_libraries): Constify.
3506 * gcore.c (gcore_command): Constify.
3508 2017-11-07 Tom Tromey <tom@tromey.com>
3510 * printcmd.c (x_command): Call set_repeat_arguments.
3511 * cli/cli-cmds.c (list_command): Call set_repeat_arguments.
3512 * top.c (repeat_arguments): New global.
3513 (set_repeat_arguments): New function.
3514 (execute_command): Handle repeat_arguments.
3515 (show_commands): Calls set_repeat_arguments.
3516 * command.h (set_repeat_arguments): Declare.
3518 2017-11-07 Tom Tromey <tom@tromey.com>
3520 * stack.c (backtrace_command): Use std::string.
3521 (backtrace_command_1): Make "count_exp" const.
3523 2017-11-07 Tom Tromey <tom@tromey.com>
3525 * source.c (directory_switch, mod_path, add_path): Constify.
3526 * defs.h (add_path, mod_path, directory_switch): Constify.
3527 * mi/mi-cmd-env.c (env_mod_path): Constify.
3529 2017-11-07 Tom Tromey <tom@tromey.com>
3531 * infcmd.c (strip_bg_char): Return gdb::unique_xmalloc_ptr.
3532 (run_command_1, continue_command, step_1, jump_command)
3533 (signal_command, until_command, advance_command, finish_command)
3534 (attach_command): Update.
3536 2017-11-07 Tom Tromey <tom@tromey.com>
3538 * command.h (set_cmd_cfunc): Don't declare.
3539 * cli/cli-decode.c (set_cmd_cfunc): Now static.
3541 2017-11-07 Tom Tromey <tom@tromey.com>
3543 * stack.c (select_frame_command): Constify.
3544 * cli/cli-decode.c (add_com_suppress_notification): Constify.
3545 * command.h (add_com_suppress_notification): Constify.
3547 2017-11-07 Tom Tromey <tom@tromey.com>
3549 * breakpoint.c (stop_command): Constify.
3550 * cli/cli-decode.c (struct cmd_list_element): Constify.
3551 * command.h (add_abbrev_prefix_cmd): Constify.
3553 2017-11-07 Pedro Alves <palves@redhat.com>
3555 * breakpoint.c (extract_bp_kind): New enum.
3556 (extract_bp_num, extract_bp_or_bp_range): New functions, partially
3557 factored out from ...
3558 (extract_bp_number_and_location): ... here.
3559 * cli/cli-utils.c (get_number_trailer): Handle '-$variable'.
3561 2017-11-07 Pedro Alves <palves@redhat.com>
3563 * breakpoint.c (extract_bp_number_and_location): Change return
3564 type to void. Throw error instead of warning.
3565 (enable_disable_command): Adjust.
3567 2017-11-07 Xavier Roirand <roirand@adacore.com>
3568 Pedro Alves <palves@redhat.com>
3570 * breakpoint.c (map_breakpoint_number_range): New, factored out
3572 (map_breakpoint_numbers): ... here.
3573 (find_location_by_number): Change parameters from string to
3574 breakpoint number and location.
3575 (extract_bp_number_and_location): New function.
3576 (enable_disable_bp_num_loc)
3577 (enable_disable_breakpoint_location_range)
3578 (enable_disable_command): New functions, factored out ...
3579 (enable_command, disable_command): ... these functions, and
3580 adjusted to support ranges.
3581 * NEWS: Document enable/disable breakpoint location range feature.
3583 2017-11-06 Luis Machado <luis.machado@linaro.org>
3585 * MAINTAINERS (Write After Approval): Update my e-mail address.
3587 2017-11-06 Pedro Alves <palves@redhat.com>
3589 * gnu-nat.c (gnu_terminal_init): Delete.
3590 (gnu_target): Don't install gnu_terminal_init.
3591 * inflow.c (child_terminal_init_with_pgrp): Delete, merged with ...
3592 (child_terminal_init): ... this function.
3594 2017-11-06 Pedro Alves <palves@redhat.com>
3596 * common/common.m4 (GDB_AC_COMMON): No longer check termio.h nor
3598 * config.in, configure: Regenerate.
3600 2017-11-06 Pedro Alves <palves@redhat.com>
3602 * event-top.c: Check SIGTSTP instead of STOP_SIGNAL thoughout.
3603 (async_init_signals): Adjust.
3604 (handle_stop_sig): Rename to ...
3605 (handle_sigtstp): ... this.
3606 (async_stop_sig): Rename to ...
3607 (async_sigtstp_handler): ... this, and delete STOP_SIGNAL !=
3609 * event-top.h: Move signal.h include to the top. Check SIGTSTP
3610 instead of STOP_SIGNAL thoughout.
3611 (handle_stop_sig): Rename to ...
3612 (handle_sigtstp): ... this.
3613 * top.c (command_line_input): Replace STOP_SIGNAL -> SIGTSTP.
3615 2017-11-06 Pedro Alves <palves@redhat.com>
3617 * inflow.c (child_terminal_inferior, child_terminal_ours_1): No
3618 longer set flags twice in row.
3620 2017-11-06 Pedro Alves <palves@redhat.com>
3622 * Makefile.in (SER_HARDWIRE): Update comment.
3623 (HFILES_NO_SRCDIR): Remove gdb_termios.h.
3624 * common/gdb_termios.h: Delete file.
3625 * common/job-control.c: Include termios.h and unistd.h instead of
3627 (gdb_setpgid): Remove HAVE_TERMIOS || TIOCGPGRP preprocessor
3629 (have_job_control): Check HAVE_TERMIOS_H instead of HAVE_TERMIOS.
3631 * configure.ac: No longer check for termio.h and sgtty.h.
3632 * configure: Regenerate.
3633 * inflow.c: Include termios.h instead of gdb_termios.h. Replace
3634 PROCESS_GROUP_TYPE checks with HAVE_TERMIOS_H checks throughout.
3635 Replace PROCESS_GROUP_TYPE references with pid_t references
3637 (gdb_getpgrp): Delete.
3638 (set_initial_gdb_ttystate): Use tcgetpgrp instead of gdb_getpgrp.
3639 (child_terminal_inferior): Remove comment. Remove sgtty code.
3640 (child_terminal_ours_1): Use tcgetpgrp directly instead of
3641 gdb_getpgrp. Use serial_set_tty_state instead aof
3642 serial_noflush_set_tty_state. Remove sgtty code.
3643 * inflow.h: Include unistd.h instead of gdb_termios.h. Replace
3644 PROCESS_GROUP_TYPE check with HAVE_TERMIOS_H check.
3645 (inferior_process_group): Now returns pid_t.
3646 * ser-base.c (ser_base_noflush_set_tty_state): Delete.
3647 * ser-base.h (ser_base_noflush_set_tty_state): Delete.
3648 * ser-event.c (serial_event_ops): Update.
3649 * ser-go32.c (dos_noflush_set_tty_state): Delete.
3651 * ser-mingw.c (hardwire_ops, tty_ops, pipe_ops, tcp_ops): Update.
3652 * ser-pipe.c (pipe_ops): Update.
3653 * ser-tcp.c (tcp_ops): Update.
3654 * ser-unix.c: Include termios.h instead of gdb_termios.h. Remove
3655 HAVE_TERMIOS checks.
3656 [HAVE_TERMIO] (struct hardwire_ttystate): Delete.
3657 [HAVE_SGTTY] (struct hardwire_ttystate): Delete.
3658 (get_tty_state, set_tty_state): Drop termio and sgtty code, and
3660 (hardwire_noflush_set_tty_state): Delete.
3661 (hardwire_print_tty_state, hardwire_drain_output)
3662 (hardwire_flush_output, hardwire_flush_input)
3663 (hardwire_send_break, hardwire_raw, hardwire_setbaudrate)
3664 (hardwire_setstopbits, hardwire_setparity): Drop termio and sgtty
3665 code, and assume termios.
3666 (hardwire_ops): Update.
3667 (_initialize_ser_hardwire): Remove HAVE_TERMIOS check.
3668 * serial.c (serial_noflush_set_tty_state): Delete.
3669 * serial.h (serial_noflush_set_tty_state): Delete.
3670 (serial_ops::noflush_set_tty_state): Delete.
3672 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3674 * Makefile.in (SFILES): Remove doublest.c and dfp.c.
3675 (HFILES_NO_SRCDIR): Remove doublest.h and dfp.h.
3676 (COMMON_OBS): Remove doublest.o and dfp.o.
3677 Do not build target-float.c (instead of doublest.c)
3678 with -Wformat-nonliteral.
3680 * doublest.c: Remove file.
3681 * doublest.h: Remove file.
3682 * dfp.c: Remove file.
3683 * dfp.h: Remove file.
3685 * target-float.c: Do not include "doublest.h" and "dfp.h".
3686 (DOUBLEST): Move here from doublest.h.
3687 (enum float_kind): Likewise.
3688 (FLOATFORMAT_CHAR_BIT): Likewise.
3689 (FLOATFORMAT_LARGEST_BYTES): Likewise.
3690 (floatformat_totalsize_bytes): Move here from doublest.c. Make static.
3691 (floatformat_precision): Likewise.
3692 (floatformat_normalize_byteorder, get_field, put_field): Likewise.
3693 (floatformat_is_negative, floatformat_classify, floatformat_mantissa):
3695 (host_float_format, host_double_format, host_long_double_format):
3697 (floatformat_to_string, floatformat_from_string): Likewise.
3698 (floatformat_to_doublest): Likewise. Also, inline the original
3699 convert_floatformat_to_doublest.
3700 (floatformat_from_doublest): Likewise. Also, inline the original
3701 convert_floatformat_from_doublest.
3703 Include "dpd/decimal128.h", "dpd/decimal64.h", and "dpd/decimal32.h".
3704 (MAX_DECIMAL_STRING): Move here from dfp.c.
3705 (match_endianness): Likewise.
3706 (set_decnumber_context, decimal_check_errors): Likewise.
3707 (decimal_from_number, decimal_to_number): Likewise.
3708 (decimal_to_string, decimal_from_string): Likewise. Make static.
3709 (decimal_from_longest, decimal_from_ulongest): Likewise.
3710 (decimal_to_longest): Likewise.
3711 (decimal_binop, decimal_is_zero, decimal_compare): Likewise.
3712 (decimal_convert): Likewise.
3714 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3716 * doublest.c: Do not include "gdbtypes.h".
3717 (extract_typed_floating): Remove.
3718 (store_typed_floating): Remove.
3719 (convert_typed_floating): Remove.
3720 * doublest.h (struct type): Remove.
3721 (DOUBLEST_PRINT_FORMAT): Remove.
3722 (DOUBLEST_SCAN_FORMAT): Remove.
3723 (extract_typed_floating): Remove.
3724 (store_typed_floating): Remove.
3725 (convert_typed_floating): Remove.
3727 * dfp.c (decimal_from_doublest): Remove.
3728 (decimal_to_doublest): Remove.
3729 * dfp.h: Do not include "doublest.h".
3730 (decimal_from_doublest): Remove.
3731 (decimal_to_doublest): Remove.
3733 * value.c: Do not include "doublest.h" and "dfp.h".
3734 (value_as_double): Remove.
3735 (unpack_double): Remove.
3736 (value_from_double): Remove.
3737 (value_from_decfloat): Remove.
3738 * value.h: Do not include "doublest.h".
3739 (value_as_double): Remove.
3740 (unpack_double): Remove.
3741 (value_from_double): Remove.
3742 (value_from_decfloat): Remove.
3744 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3746 * i386-tdep.c: Include "target-float.h". Do not include "doublest.h".
3747 (i386_extract_return_value): Use target_float_convert.
3748 (i386_store_return_value): Likewise.
3749 * i387-tdep.c (i387_register_to_value): Use target_float_convert.
3750 (i387_value_to_register): Likewise.
3751 * ia64-tdep.c: Include "target-float.h". Do not include "doublest.h".
3752 (ia64_register_to_value): Use target_float_convert.
3753 (ia64_value_to_register): Likewise.
3754 (ia64_extract_return_value): Likewise.
3755 (ia64_store_return_value): Likewise.
3756 (ia64_push_dummy_call): Likewise.
3757 * m68k-tdep.c: Include "target-float.h".
3758 (m68k_register_to_value): Use target_float_convert.
3759 (m68k_value_to_register): Likewise.
3760 (m68k_svr4_extract_return_value): Likewise.
3761 (m68k_svr4_store_return_value): Likewise.
3762 * ppc-sysv-tdep.c: Include "target-float.h".
3763 (ppc_sysv_abi_push_dummy_call): Use target_float_convert.
3764 (do_ppc_sysv_return_value): Likewise.
3765 (ppc64_sysv_abi_push_freg): Likewise.
3766 (ppc64_sysv_abi_return_value_base): Likewise.
3767 * rs6000-aix-tdep.c: Include "target-float.h".
3768 (rs6000_push_dummy_call): Use target_float_convert.
3769 (rs6000_return_value): Likewise.
3770 * rs6000-lynx178-tdep.c: Include "target-float.h".
3771 (rs6000_lynx178_push_dummy_call): Use target_float_convert.
3772 (rs6000_lynx178_return_value): Likewise.
3773 * rs6000-tdep.c: Include "target-float.h". Do not include "doublest.h".
3774 (rs6000_register_to_value): Use target_float_convert.
3775 (rs6000_value_to_register): Likewise.
3776 * arm-tdep.c: Include "target-float.h". Do not include "doublest.h".
3777 (arm_extract_return_value): Use target_float_convert.
3778 (arm_store_return_value): Likewise.
3779 * sh-tdep.c: Include "target-float.h". Do not include "doublest.h".
3780 (sh_register_convert_to_virtual): Use target_float_convert.
3781 (sh_register_convert_to_raw): Likewise.
3782 * sh64-tdep.c: Include "target-float.h".
3783 (sh64_extract_return_value): Use target_float_convert.
3784 (sh64_register_convert_to_virtual): Likewise.
3785 (sh64_register_convert_to_raw): Likewise. Fix argument types.
3787 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3789 * target-float.c (floatformat_to_host_double): New function.
3790 (floatformat_from_host_double): Likewise.
3791 (target_float_to_host_double): Likewise.
3792 (target_float_from_host_double): Likewise.
3793 * target-float.h (target_float_to_host_double): Add prototype.
3794 (target_float_from_host_double): Likewise.
3796 * guile/scm-value.c: Include "target-float.h".
3797 (gdbscm_value_to_real): Use target_float_to_host_double.
3798 Handle integer source values via value_as_long.
3799 * guile/scm-math.c: Include "target-float.h". Do not include
3800 "doublest.h", "dfp.h", and "expression.h".
3801 (vlscm_convert_typed_number): Use target_float_from_host_double.
3802 (vlscm_convert_number): Likewise.
3804 * python/py-value.c (valpy_float): Use target_float_to_host_double.
3805 (convert_value_from_python): Use target_float_from_host_double.
3807 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3809 * ada-lang.c (cast_to_fixed): Reimplement in target arithmetic.
3810 (cast_from_fixed): Likewise.
3811 (ada_scaling_type): New function.
3812 (ada_delta): Return value instead of DOUBLEST. Perform target
3813 arithmetic instead of host arithmetic.
3814 (scaling_factor): Rename to ...
3815 (ada_scaling_factor) ... this. Make non-static. Return value instead
3816 of DOUBLEST. Perform target arithmetic instead of host arithmetic.
3817 (ada_fixed_to_float): Remove.
3818 (ada_float_to_fixed): Remove.
3819 * ada-lang.h (ada_fixed_to_float): Remove.
3820 (ada_float_to_fixed): Remove.
3821 (ada_delta): Return value instead of DOUBLEST.
3822 (ada_scaling_factor): Add prototype.
3824 * ada-typeprint.c: Include "target-float.h".
3825 (print_fixed_point_type): Perform target arithmetic instead of
3827 * ada-valprint.c: Include "target-float.h".
3828 (ada_val_print_num): Perform target arithmetic instead of
3829 host arithmetic for fixed-point types.
3831 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3833 * target-float.c: Include <math.h>.
3834 (floatformat_binop): New function.
3835 (floatformat_compare): Likewise.
3836 (target_float_binop): Likewise.
3837 (target_float_compare): Likewise.
3838 * target-float.h: Include "expression.h".
3839 (target_float_binop): Add prototype.
3840 (target_float_compare): Likewise.
3842 * valarith.c: Do not include "doublest.h" and "dfp.h".
3843 Include "common/byte-vector.h".
3844 (value_args_as_decimal): Remove, replace by ...
3845 (value_args_as_target_float): ... this function. Handle both
3846 binary and decimal target floating-point formats.
3847 (scalar_binop): Handle both binary and decimal FP using
3848 value_args_as_target_float and target_float_binop.
3849 (value_equal): Handle both binary and decimal FP using
3850 value_args_as_target_float and target_float_compare.
3851 (value_less): Likewise.
3852 (value_pos): Handle all scalar types as simple copy.
3853 (value_neg): Handle all scalar types via BINOP_SUB from 0.
3854 * dfp.c (decimal_binop): Throw error instead of internal_error
3855 when called with an unsupported operation code.
3857 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3859 * target-float.c (target_float_to_string): New function.
3860 (target_float_from_string): New function.
3861 * target-float.h (target_float_to_string): Add prototype.
3862 (target_float_from_string): Add prototype.
3864 * valprint.c: Include "target-float.h". Do not include
3865 "doublest.h" and "dfp.h".
3866 (print_floating): Use target_float_to_string.
3867 * printcmd.c: Include "target-float.h". Do not include "dfp.h".
3868 (printf_floating): Use target_float_to_string.
3869 * i387-tdep.c: Include "target-float.h". Do not include "doublest.h".
3870 (print_i387_value): Use target_float_to_string.
3871 * mips-tdep.c: Include "target-float.h".
3872 (mips_print_fp_register): Use target_float_to_string.
3873 * sh64-tdep.c: Include "target-float.h".
3874 (sh64_do_fp_register): Use target_float_to_string.
3876 * parse.c: Include "target-float.h". Do not include
3877 "doublest.h" and "dfp.h".
3878 (parse_float): Use target_float_from_string.
3879 * stabsread.c: Include "target-float.h". Do not include "doublest.h".
3880 (define_symbol): Use target_float_from_string.
3881 * gdbarch-selftests.c: Include "target-float.h".
3882 (register_to_value_test): Use target_float_from_string.
3884 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3886 * Makefile.c (SFILES): Add target-float.c.
3887 (HFILES_NO_SRCDIR): Add target-float.h.
3888 (COMMON_OBS): Add target-float.o.
3889 * target-float.h: New file.
3890 * target-float.c: New file.
3892 * doublest.c (floatformat_classify): Fix detection of float_zero.
3894 * gdbtypes.c (is_floating_type): New function.
3895 * gdbtypes.h (is_floating_type): Add prototype.
3897 * value.c: Do not include "floatformat.h".
3898 (unpack_double): Use target_float_is_valid.
3899 (is_floating_value): New function.
3900 * value.h (is_floating_value): Add prototype-
3902 * valarith.c: Include "target-float.h".
3903 (value_logical_not): Use target_float_is_zero.
3905 * python/py-value.c: Include "target-float.h".
3906 (valpy_nonzero): Use target_float_is_zero.
3908 2017-11-04 Tom Tromey <tom@tromey.com>
3910 * h8300-tdep.c (h8300_push_dummy_call): Use std::vector.
3912 2017-11-04 Tom Tromey <tom@tromey.com>
3914 * breakpoint.c (set_momentary_breakpoint): Return
3916 (until_break_command): Update.
3917 (new_until_break_fsm): Change argument types to
3919 (set_momentary_breakpoint_at_pc): Return breakpoint_up.
3920 (do_delete_breakpoint_cleanup, make_cleanup_delete_breakpoint):
3922 * infcmd.c (finish_forward): Update.
3923 * breakpoint.h (set_momentary_breakpoint)
3924 (set_momentary_breakpoint_at_pc): Return breakpoint_up.
3925 (make_cleanup_delete_breakpoint): Remove.
3926 (struct breakpoint_deleter): New.
3927 (breakpoint_up): New typedef.
3928 * infrun.c (insert_step_resume_breakpoint_at_sal_1): Update.
3929 (insert_exception_resume_breakpoint): Update.
3930 (insert_exception_resume_from_probe): Update.
3931 (insert_longjmp_resume_breakpoint): Update.
3932 * arm-linux-tdep.c (arm_linux_copy_svc): Update.
3933 * elfread.c (elf_gnu_ifunc_resolver_stop): Update.
3934 * infcall.c (call_function_by_hand_dummy): Update
3936 2017-11-04 Tom Tromey <tom@tromey.com>
3938 * c-typeprint.c (c_type_print_base): Use gdb::unique_xmalloc_ptr.
3940 2017-11-04 Tom Tromey <tom@tromey.com>
3942 * linux-tdep.c (linux_core_info_proc_mappings): Use
3944 (linux_get_siginfo_data): Return gdb::byte_vector. Remove
3946 (linux_corefile_thread): Update.
3947 (linux_make_corefile_notes): Remove unused variable.
3949 2017-11-04 Tom Tromey <tom@tromey.com>
3951 * ppc-linux-tdep.c (ppc_linux_get_syscall_number): Use
3954 2017-11-04 Tom Tromey <tom@tromey.com>
3956 * objfiles.c (do_free_objfile_cleanup): Remove.
3957 * compile/compile-object-load.c (compile_object_load): Update.
3958 * objfiles.h (make_cleanup_free_objfile): Remove.
3960 2017-11-04 Tom Tromey <tom@tromey.com>
3962 * sparc64-tdep.c (do_examine): Use gdb::def_vector.
3963 (adi_read_versions): Change "tags" to "gdb_byte *".
3964 (adi_print_versions): Likewise.
3966 2017-11-04 Tom Tromey <tom@tromey.com>
3969 (scoped_rbreak_breakpoints::scoped_rbreak_breakpoints): Rename
3970 from start_rbreak_breakpoints.
3971 (scoped_rbreak_breakpoints): Rename from end_rbreak_breakpoints.
3972 * breakpoint.h (class scoped_rbreak_breakpoints): New.
3973 (start_rbreak_breakpoints, end_rbreak_breakpoints): Remove.
3974 * symtab.c (do_end_rbreak_breakpoints): Remove.
3975 (rbreak_command): Use scoped_rbreak_breakpoints, std::string.
3977 2017-11-04 Tom Tromey <tom@tromey.com>
3979 * cp-namespace.c (reset_directive_searched): Remove.
3980 (cp_lookup_symbol_via_imports): Use scoped_restore.
3981 * cp-support.c (reset_directive_searched): Remove.
3982 (make_symbol_overload_list_using): Use scoped_restore.
3983 * d-namespace.c (d_lookup_symbol_imports): Use scoped_restore.
3984 (reset_directive_searched): Remove.
3986 2017-11-04 Tom Tromey <tom@tromey.com>
3988 * symfile.c (find_separate_debug_file_by_debuglink): Use
3991 2017-11-04 Tom Tromey <tom@tromey.com>
3993 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
3995 (compute_stack_depth): Likewise.
3996 (do_compile_dwarf_expr_to_c): Use std::vector.
3998 2017-11-04 Tom Tromey <tom@tromey.com>
4000 * compile/compile-object-load.c (link_callbacks_einfo): Use
4003 2017-11-04 Tom Tromey <tom@tromey.com>
4005 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
4006 Use scoped_free_pendings.
4007 * dbxread.c (dbx_symfile_read, dbx_psymtab_to_symtab_1): Use
4008 scoped_free_pendings.
4009 * xcoffread.c (xcoff_psymtab_to_symtab_1): Use scoped_free_pendings.
4010 (xcoff_initial_scan): Likewise.
4011 * buildsym.c (reset_symtab_globals): Update comment.
4012 (scoped_free_pendings): Rename from really_free_pendings.
4013 (prepare_for_building): Update comment.
4014 (buildsym_init): Likewise.
4015 * buildsym.h (class scoped_free_pendings): New class.
4016 (really_free_pendings): Don't declare.
4018 2017-11-03 Ulrich Weigand <uweigand@de.ibm.com>
4020 * doublest.c (convert_doublest_to_floatformat): Fix uninitialized
4021 output when converting a zero value to a special byteorder format.
4023 2017-11-02 Yao Qi <yao.qi@linaro.org>
4025 * frame.c (do_frame_register_read): Remove aspace.
4026 * jit.c (jit_frame_sniffer): Likwise.
4027 * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
4028 * regcache.c (regcache::regcache): Pass nullptr.
4029 (regcache_print): Caller updated.
4030 * regcache.h (regcache::regcache): Remove one constructor
4033 2017-11-02 Yao Qi <yao.qi@linaro.org>
4035 * regcache.h (regcache) <m_readonly_p>: Change it to const bool.
4037 2017-11-02 Yao Qi <yao.qi@linaro.org>
4039 * breakpoint.c (insert_single_step_breakpoints): Update.
4040 * frame.c (struct frame_info) <aspace>: Add const.
4041 (frame_save_as_regcache): Add const.
4042 (get_frame_address_space): Return const address_space *.
4043 * frame.h (get_frame_address_space): Update declaration.
4044 * infrun.c (struct step_over_info) <aspace>: Add const.
4045 (set_step_over_info): Make aspace const.
4046 (displaced_step_prepare_throw): Change variable const.
4048 (proceed): Likewise.
4049 (adjust_pc_after_break): Likewise.
4050 (save_waitstatus): Likewise.
4051 (handle_signal_stop): Likewise.
4052 (keep_going_pass_signal): Likewise.
4053 * jit.c (jit_frame_sniffer): Add const.
4054 * mips-tdep.c (mips_single_step_through_delay): Likewise.
4055 * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
4056 * record-full.c (record_full_wait_1): Likewise.
4057 * regcache.c (regcache::regcache): Change parameter to const.
4058 * regcache.h (regcache::regcache): Likewise.
4059 (regcache::aspace): Return const address_space *.
4060 (regcache) <m_aspace>: Add const.
4062 2017-11-02 Yao Qi <yao.qi@linaro.org>
4064 * darwin-nat.c (cancel_breakpoint): Use regcache->aspace ().
4065 * frame.c (create_sentinel_frame): Likewise.
4066 * infrun.c (displaced_step_prepare_throw): Likewise.
4068 (thread_still_needs_step_over_bp): Likewise.
4069 (proceed): Likewise.
4070 (do_target_wait): Likewise.
4071 (adjust_pc_after_break): Likewise.
4072 (handle_syscall_event): Likewise.
4073 (save_waitstatus): Likewise.
4074 (handle_inferior_event_1): Likewise.
4075 (handle_signal_stop): Likewise.
4076 (keep_going_pass_signal): Likewise.
4077 * linux-nat.c (status_callback): Likewise.
4078 (save_stop_reason): Likewise.
4079 (resume_stopped_resumed_lwps): Likewise.
4080 * record-full.c (record_full_exec_insn): Likewise.
4081 (record_full_wait_1): Likewise.
4082 * regcache.c (get_regcache_aspace): Remove.
4083 * regcache.h (get_regcache_aspace): Remove.
4085 2017-11-02 Yao Qi <yao.qi@linaro.org>
4087 * regcache.c (struct regcache_descr) <nr_raw_registers>: Remove.
4088 (init_regcache_descr): Use gdbarch_num_regs.
4089 (regcache::regcache): Likewise.
4090 (regcache::get_register_status): Likewise.
4091 (regcache::assert_raw_regnum): Likewise.
4092 (regcache::cooked_read): Likewise.
4093 (regcache::cooked_read_value): Likewise.
4094 (regcache::cooked_write): Likewise.
4095 (regcache::dump): Likewise.
4096 (regcache::num_raw_registers): New method.
4097 * regcache.h (class regcache) <num_raw_registers>: New.
4099 2017-11-02 Yao Qi <yao.qi@linaro.org>
4101 * regcache.c (regcache::assert_regnum): New method.
4102 (regcache::invalidate): Call assert_regnum.
4103 (regcache::raw_update): Likewise.
4104 (regcache::raw_write): Likewise.
4105 (regcache::raw_read_part): Likewise.
4106 (regcache::raw_write_part): Likewise.
4107 (regcache::raw_supply): Likewise.
4108 (regcache::raw_supply_integer): Likewise.
4109 (regcache::raw_supply_zeroed): Likewise.
4110 (regcache::raw_collect): Likewise.
4111 (regcache::raw_collect_integer): Likewise.
4112 * regcache.h (regcache::assert_regnum): Declare.
4114 2017-11-02 Yao Qi <yao.qi@linaro.org>
4116 * regcache.c (regcache::dump): Remove code.
4118 2017-11-02 Yao Qi <yao.qi@linaro.org>
4120 * regcache.c (struct regcache_descr) <sizeof_raw_register_status>:
4122 <sizeof_cooked_register_status>: Remove.
4123 (init_regcache_descr): Update.
4124 (regcache::regcache): Use nr_cooked_registers and nr_raw_registers.
4125 (regcache::save): Likewise.
4126 (regcache::dump): Likewise.
4128 2017-11-01 James Bowman <james.bowman@ftdichip.com>
4130 * ft32-tdep.c (ft32_fetch_instruction): New function.
4131 (ft32_analyze_prologue): Use ft32_fetch_instruction().
4133 2017-10-31 Simon Marchi <simon.marchi@polymtl.ca>
4135 * cli/cli-script.c (execute_control_command): Rename to ...
4136 (execute_control_command_1): ... this.
4137 (execute_control_command): New function.
4139 2017-10-31 Simon Marchi <simon.marchi@ericsson.com>
4141 * tracepoint.c (tfind_command): Remove const_cast.
4143 2017-10-30 Mike Gulick <mgulick@mathworks.com>
4145 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to gdb.h.
4147 2017-10-30 Simon Marchi <simon.marchi@ericsson.com>
4149 * common/common-utils.h (in_inclusive_range): New function.
4150 * arm-tdep.c (arm_record_extension_space): Use
4152 (thumb_record_ld_st_reg_offset): Use in_inclusive_range.
4153 * cris-tdep.c (cris_spec_reg_applicable): Use
4156 2017-10-30 Pedro Alves <palves@redhat.com>
4157 Simon Marchi <simon.marchi@ericsson.com>
4159 * remote.c (remote_set_syscall_catchpoint): Build a std::string
4160 instead of a gdb::unique_xmalloc_ptr, using string_appendf.
4162 2017-10-30 Pedro Alves <palves@redhat.com>
4164 * common/common-utils.c (string_appendf, string_vappendf): New
4166 * common/common-utils.h (string_appendf, string_vappendf): New
4168 * unittests/common-utils-selftests.c (string_appendf_func)
4169 (test_appendf_func, string_vappendf_wrapper, string_appendf_tests)
4170 (string_vappendf_tests): New functions.
4171 (_initialize_common_utils_selftests): Register "string_appendf" and
4172 "string_vappendf tests".
4174 2017-10-30 Pedro Alves <palves@redhat.com>
4176 * unittests/common-utils-selftests.c (format_func): New typedef.
4177 (string_printf_tests, string_vprintf_tests): Tests factored out
4179 (test_format_func): ... this new function.
4180 (string_printf_tests, string_vprintf_tests): Reimplement on top of
4183 2017-10-29 Simon Marchi <simon.marchi@ericsson.com>
4185 * darwin-nat.c: Remove include of gdb.h.
4187 2017-10-29 Simon Marchi <simon.marchi@ericsson.com>
4189 * xtensa-xtregs.c: Fix formatting issues.
4191 2017-10-29 Simon Marchi <simon.marchi@ericsson.com>
4193 * xtensa-xtregs.c (xtensa_regtable_t) <name>: Constify.
4195 2017-10-28 Maksim Dzabraev <dzabraew@gmail.com>
4198 * python/py-infthread.c (thpy_get_inferior): Increment reference
4199 of inferior before returning it.
4201 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
4203 * unittests/common-utils-selftests.c (format): Add
4206 2017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
4208 * xml-syscall.c (struct syscall_desc): Add constructor.
4209 <name>: Change type to std::string.
4210 (syscall_desc_up): New typedef.
4211 (syscall_desc_p): Remove typeder.
4212 (DEF_VEC_P(syscall_desc_p)): Remove.
4213 (struct syscall_group_desc): Add constructor.
4214 <name>: Change type to std::string.
4215 <syscalls>: Change type to std::vector.
4216 (syscall_group_desc_up): New typedef.
4217 (syscall_group_desc_p): Remove typedef.
4218 (DEF_VEC_P(syscall_group_desc_p)): Remove.
4219 (struct syscalls_info) <syscalls>: Change type to std::vector of
4222 <my_gdb_datadir>: Change type to std::string.
4223 (syscalls_info_up): New typedef.
4224 (allocate_syscalls_info): Remove.
4225 (syscalls_info_free_syscalls_desc): Remove.
4226 (syscalls_info_free_syscall_group_desc): Remove.
4227 (free_syscalls_info): Remove.
4228 (make_cleanup_free_syscalls_info): Remove.
4229 (syscall_group_create_syscall_group_desc): Adjust.
4230 (syscall_group_add_syscall): Adjust.
4231 (syscall_create_syscall_desc): Adjust.
4232 (syscall_parse_xml): Adjust, use unique_ptr instead of cleanup.
4233 (init_syscalls_info): Adjust.
4234 (syscall_group_get_group_by_name): Adjust.
4235 (xml_get_syscall_number): Adjust.
4236 (xml_get_syscall_name): Adjust.
4237 (xml_list_of_syscalls): Adjust.
4238 (xml_list_syscalls_by_group): Adjust.
4239 (xml_list_of_groups): Adjust.
4241 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
4243 * probe.h: Don't include gdb_vecs.h.
4244 (DEF_VEC_P (probe_p)): Remove.
4245 (find_probes_in_objfile): Return an std::vector.
4246 * probe.c (find_probes_in_objfile): Likewise.
4247 * breakpoint.c (breakpoint_objfile_data)
4248 <longjmp_probes>: Change type to std::vector.
4249 <exception_probes>: Likewise.
4250 (free_breakpoint_probes): Don't manually free vectors.
4251 (create_longjmp_master_breakpoint): Adjust.
4252 (create_exception_master_breakpoint): Adjust.
4253 * solib-svr4.c (svr4_create_probe_breakpoints): Change
4254 parameter type, adjust.
4255 (svr4_create_solib_event_breakpoints): Adjust.
4257 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
4259 * breakpoint.c (breakpoint_objfile_data): Initialize fields.
4260 (get_breakpoint_objfile_data): Allocate breakpoint_objfile_data
4262 (free_breakpoint_probes): Rename to ...
4263 (free_breakpoint_objfile_data): ... this, and call delete on
4266 2017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
4268 * auto-load.c: Don't include gdb_vecs.h, include algorithm.
4269 (loaded_script_ptr): Remove typedef.
4270 (DEF_VEC_P (loaded_script_ptr)): Remove.
4271 (struct collect_matching_scripts_data): Add constructor.
4272 <scripts_p>: Change type to (pointer to) std::vector.
4273 (collect_matching_scripts_data): Adjust.
4274 (sort_scripts_by_name): Make suitable for std::sort.
4275 (print_scripts): Don't sort vector, adjust to std::vector.
4276 (auto_load_info_scripts): Sort vectors, adjust to std::vector.
4278 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
4280 * symfile.c (filename_language): Make struct, not typedef. Add
4282 <ext>: Change type to std::string.
4283 (DEF_VEC_O (filename_language)): Remove.
4284 (filename_language_table): Change type to std::vector.
4285 (add_filename_language): Adjust.
4286 (set_ext_lang_command): Adjust.
4287 (info_ext_lang_command): Adjust.
4288 (deduce_language_from_filename): Adjust.
4289 (class scoped_restore_filename_language_table): Remove.
4290 (test_filename_language): Use scoped_restore.
4291 (test_set_ext_lang_command): Use scoped_restore, adjust to
4294 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
4296 * symfile.c: Include selftest.h.
4297 (class scoped_restore_filename_language_table): New.
4298 (test_filename_language): New test.
4299 (test_set_ext_lang_command): New test.
4300 (_initialize_symfile): Register tests.
4302 2017-10-27 Keith Seitz <keiths@redhat.com>
4304 * breakpoint.c (print_breakpoint_location): Use the symbol saved
4305 in the bp_location, falling back to find_pc_sect_function when
4307 (add_location_to_breakpoint): Save sal->symbol.
4308 * breakpoint.h (struct bp_location) <symbol>: New field.
4309 * symtab.c (find_function_start_sal): Save the symbol into the SaL.
4310 * symtab.h (struct symtab_and_line) <symbol>: New field.
4312 2017-10-26 Patrick Frants <osscontribute@gmail.com>
4315 * cp-valprint.c (cp_print_value_fields): Use obstack_blank_fast
4318 2017-10-26 Pedro Alves <palves@redhat.com>
4320 * remote.c (remote_async_terminal_ours_p): Delete.
4321 (remote_open_1, remote_terminal_inferior, remote_terminal_ours):
4322 Remove references to 'remote_async_terminal_ours_p'.
4324 2017-10-26 Yao Qi <yao.qi@linaro.org>
4326 * breakpoint.h (regular_breakpoint_inserted_here_p): Remove.
4328 2017-10-26 Yao Qi <yao.qi@linaro.org>
4330 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Make
4332 * break-catch-syscall.c (breakpoint_hit_catch_syscall):
4334 * breakpoint.c (bpstat_check_location): Remove cast.
4335 (breakpoint_hit_catch_fork): Make aspce const.
4336 (breakpoint_hit_catch_solib): Likewise.
4337 (breakpoint_hit_catch_exec): Likewise.
4338 (breakpoint_hit_ranged_breakpoint): Likewise.
4339 (breakpoint_hit_watchpoint): Likewise.
4340 (base_breakpoint_breakpoint_hit): Likewise.
4341 (bkpt_breakpoint_hit): Likewise.
4342 (dprintf_breakpoint_hit): Likewise.
4343 (tracepoint_breakpoint_hit): Likewise.
4344 * breakpoint.h (breakpoint_ops) <breakpoint_hit>: Likewise.
4346 2017-10-26 Yao Qi <yao.qi@linaro.org>
4348 * breakpoint.c (breakpoint_location_address_match): Change
4349 "struct address_space *" to "const address_space".
4350 (breakpoint_location_address_range_overlap): Likewise.
4351 (breakpoint_here_p): Likewise.
4352 (breakpoint_in_range_p): Likewise.
4353 (moribund_breakpoint_here_p): Likewise.
4354 (bp_location_inserted_here_p): Likewise.
4355 (software_breakpoint_inserted_here_p): Likewise.
4356 (hardware_breakpoint_inserted_here_p): Likewise.
4357 (hardware_watchpoint_inserted_in_range): Likewise.
4358 (bpstat_check_location): Likewise.
4359 (bpstat_stop_status): Likewise.
4360 (breakpoint_address_match): Likewise.
4361 (breakpoint_address_match_range): Likewise.
4362 (breakpoint_location_address_match): Likewise.
4363 (breakpoint_location_address_range_overlap): Likewise.
4364 (insert_single_step_breakpoint): Likewise.
4365 (breakpoint_has_location_inserted_here): Likewise.
4366 (single_step_breakpoint_inserted_here_p): Likewise.
4367 (pc_at_non_inline_function): Likewise.
4368 * breakpoint.h (bpstat_stop_status): Update declaration.
4369 (breakpoint_here_p): Likewise.
4370 (breakpoint_in_range_p): Likewise.
4371 (moribund_breakpoint_here_p): Likewise.
4372 (breakpoint_inserted_here_p): Likewise.
4373 (software_breakpoint_inserted_here_p): Likewise.
4374 (hardware_breakpoint_inserted_here_p): Likewise.
4375 (breakpoint_has_location_inserted_here): Likewise.
4376 (single_step_breakpoint_inserted_here_p): Likewise.
4377 (hardware_watchpoint_inserted_in_range): Likewise.
4378 (breakpoint_address_match): Likewise.
4379 (insert_single_step_breakpoint): Likewise.
4380 (pc_at_non_inline_function): Likewise.
4381 * gdbthread.h (thread_has_single_step_breakpoint_here): Likewise.
4382 * record.c (record_check_stopped_by_breakpoint): Likewise.
4383 * record.h (record_check_stopped_by_breakpoint): Likewise.
4384 * thread.c (thread_has_single_step_breakpoint_here): Likewise.
4386 2017-10-25 Yao Qi <yao.qi@linaro.org>
4388 * aarch32-linux-nat.c (aarch32_gp_regcache_supply): Use
4389 regcache->arch () instead get_regcache_arch.
4390 * aarch64-fbsd-nat.c (aarch64_fbsd_fetch_inferior_registers):
4392 (aarch64_fbsd_store_inferior_registers): Likewise.
4393 * aarch64-linux-nat.c (fetch_gregs_from_thread): Likewise.
4394 (store_gregs_to_thread): Likewise.
4395 (fetch_fpregs_from_thread): Likewise.
4396 (store_fpregs_to_thread): Likewise.
4397 * aarch64-tdep.c (aarch64_extract_return_value): Likewise.
4398 (aarch64_store_return_value): Likewise.
4399 (aarch64_software_single_step): Likewise.
4400 * aix-thread.c (aix_thread_wait): Likewise.
4401 (supply_reg32): Likewise.
4402 (supply_sprs64): Likewise.
4403 (supply_sprs32): Likewise.
4404 (fill_gprs64): Likewise.
4405 (fill_gprs32): Likewise.
4406 (fill_sprs64): Likewise.
4407 (fill_sprs32): Likewise.
4408 (store_regs_user_thread): Likewise.
4409 (store_regs_kernel_thread): Likewise.
4410 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
4411 (alphabsd_store_inferior_registers): Likewise.
4412 * alpha-tdep.c (alpha_extract_return_value): Likewise.
4413 (alpha_store_return_value): Likewise.
4414 (alpha_deal_with_atomic_sequence): Likewise.
4415 (alpha_next_pc): Likewise.
4416 (alpha_software_single_step): Likewise.
4417 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
4418 (amd64bsd_store_inferior_registers): Likewise.
4419 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
4421 (amd64_linux_store_inferior_registers): Likewise.
4422 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
4423 (amd64_collect_native_gregset): Likewise.
4424 * amd64-obsd-tdep.c (amd64obsd_supply_uthread): Likewise.
4425 (amd64obsd_collect_uthread): Likewise.
4426 * amd64-tdep.c (amd64_supply_fpregset): Likewise.
4427 (amd64_collect_fpregset): Likewise.
4428 (amd64_supply_fxsave): Likewise.
4429 (amd64_supply_xsave): Likewise.
4430 (amd64_collect_fxsave): Likewise.
4431 (amd64_collect_xsave): Likewise.
4432 * arc-tdep.c (arc_write_pc): Likewise.
4433 * arch-utils.c (default_skip_permanent_breakpoint): Likewise.
4434 * arm-fbsd-nat.c (arm_fbsd_fetch_inferior_registers): Likewise.
4435 (arm_fbsd_store_inferior_registers): Likewise.
4436 * arm-linux-nat.c (fetch_vfp_regs): Likewise.
4437 (store_vfp_regs): Likewise.
4438 (arm_linux_fetch_inferior_registers): Likewise.
4439 (arm_linux_store_inferior_registers): Likewise.
4440 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
4441 (arm_linux_sigreturn_next_pc): Likewise.
4442 (arm_linux_get_next_pcs_syscall_next_pc): Likewise.
4443 * arm-nbsd-nat.c (arm_supply_gregset): Likewise.
4444 (fetch_register): Likewise.
4445 (store_register): Likewise.
4446 * arm-tdep.c (arm_is_thumb): Likewise.
4447 (displaced_in_arm_mode): Likewise.
4448 (bx_write_pc): Likewise.
4449 (arm_get_next_pcs_addr_bits_remove): Likewise.
4450 (arm_software_single_step): Likewise.
4451 (arm_extract_return_value): Likewise.
4452 (arm_store_return_value): Likewise.
4453 (arm_write_pc): Likewise.
4454 * bfin-tdep.c (bfin_extract_return_value): Likewise.
4455 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
4456 (bsd_uthread_store_registers): Likewise.
4457 * core-regset.c (fetch_core_registers): Likewise.
4458 * corelow.c (get_core_registers): Likewise.
4459 * cris-tdep.c (cris_store_return_value): Likewise.
4460 (cris_extract_return_value): Likewise.
4461 (find_step_target): Likewise.
4462 (find_step_target): Likewise.
4463 (cris_software_single_step): Likewise.
4464 * ctf.c (ctf_fetch_registers): Likewise.
4465 * darwin-nat.c (cancel_breakpoint): Likewise.
4466 * fbsd-tdep.c (fbsd_collect_thread_registers): Likewise.
4467 * frv-tdep.c (frv_extract_return_value): Likewise.
4468 * ft32-tdep.c (ft32_store_return_value): Likewise.
4469 (ft32_extract_return_value): Likewise.
4470 * go32-nat.c (fetch_register): Likewise.
4471 (go32_fetch_registers): Likewise.
4472 (go32_store_registers): Likewise.
4473 (store_register): Likewise.
4474 * h8300-tdep.c (h8300_extract_return_value): Likewise.
4475 (h8300_store_return_value): Likewise.
4476 * hppa-linux-nat.c (fetch_register): Likewise.
4477 (store_register): Likewise.
4478 (hppa_linux_fetch_inferior_registers): Likewise.
4479 (hppa_linux_store_inferior_registers): Likewise.
4480 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Likewise.
4481 (i386_darwin_store_inferior_registers): Likewise.
4482 * i386-gnu-nat.c (gnu_fetch_registers): Likewise.
4483 (gnu_store_registers): Likewise.
4484 * i386-linux-nat.c (fetch_register): Likewise.
4485 (store_register): Likewise.
4486 (supply_gregset): Likewise.
4487 (fill_gregset): Likewise.
4488 (i386_linux_fetch_inferior_registers): Likewise.
4489 (i386_linux_store_inferior_registers): Likewise.
4490 (i386_linux_resume): Likewise.
4491 * i386-linux-tdep.c (i386_linux_get_syscall_number_from_regcache):
4493 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
4494 * i386-obsd-nat.c (i386obsd_supply_pcb): Likewise.
4495 * i386-obsd-tdep.c (i386obsd_supply_uthread): Likewise.
4496 (i386obsd_collect_uthread): Likewise.
4497 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
4498 (i386_supply_gregset): Likewise.
4499 (i386_collect_gregset): Likewise.
4500 (i386_supply_fpregset): Likewise.
4501 (i386_collect_fpregset): Likewise.
4502 (i386_mpx_bd_base): Likewise.
4503 * i386-v4-nat.c (supply_fpregset): Likewise.
4504 (fill_fpregset): Likewise.
4505 * i387-tdep.c (i387_supply_fsave): Likewise.
4506 (i387_collect_fsave): Likewise.
4507 (i387_supply_fxsave): Likewise.
4508 (i387_collect_fxsave): Likewise.
4509 (i387_supply_xsave): Likewise.
4510 (i387_collect_xsave): Likewise.
4511 * ia64-linux-nat.c (ia64_linux_fetch_registers): Likewise.
4512 (ia64_linux_store_registers): Likewise.
4513 * ia64-tdep.c (ia64_access_rse_reg): Likewise.
4514 (ia64_extract_return_value): Likewise.
4515 (ia64_store_return_value): Likewise.
4516 (find_func_descr): Likewise.
4517 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
4518 * inf-ptrace.c (inf_ptrace_fetch_registers): Likewise.
4519 (inf_ptrace_store_registers): Likewise.
4520 * infrun.c (use_displaced_stepping): Likewise.
4521 (displaced_step_prepare_throw): Likewise.
4523 (proceed): Likewise.
4524 (do_target_wait): Likewise.
4525 (adjust_pc_after_break): Likewise.
4526 (handle_inferior_event_1): Likewise.
4527 (handle_signal_stop): Likewise.
4528 (save_infcall_suspend_state): Likewise.
4529 (restore_infcall_suspend_state): Likewise.
4530 * iq2000-tdep.c (iq2000_extract_return_value): Likewise.
4531 * jit.c (jit_frame_prev_register): Likewise.
4532 * linux-nat.c (save_stop_reason): Likewise.
4533 (linux_nat_wait_1): Likewise.
4534 (resume_stopped_resumed_lwps): Likewise.
4535 * linux-record.c (record_linux_sockaddr): Likewise.
4536 (record_linux_msghdr): Likewise.
4537 (record_linux_system_call): Likewise.
4538 * linux-tdep.c (linux_collect_thread_registers): Likewise.
4539 * lm32-tdep.c (lm32_extract_return_value): Likewise.
4540 (lm32_store_return_value): Likewise.
4541 * m32c-tdep.c (m32c_read_flg): Likewise.
4542 (m32c_pseudo_register_read): Likewise.
4543 (m32c_pseudo_register_write): Likewise.
4544 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Likewise.
4545 (m32r_linux_collect_gregset): Likewise.
4546 * m32r-tdep.c (m32r_store_return_value): Likewise.
4547 (m32r_extract_return_value): Likewise.
4548 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
4549 (m68kbsd_collect_fpregset): Likewise.
4550 * m68k-bsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
4551 * m68k-linux-nat.c (fetch_register): Likewise.
4552 (old_fetch_inferior_registers): Likewise.
4553 (old_store_inferior_registers): Likewise.
4554 (store_regs): Likewise.
4555 * m68k-tdep.c (m68k_svr4_extract_return_value): Likewise.
4556 (m68k_svr4_store_return_value): Likewise.
4557 * m88k-tdep.c (m88k_store_arguments): Likewise.
4558 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Likewise.
4559 (mi_cmd_data_write_register_values): Likewise.
4560 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers): Likewise.
4561 (mips_fbsd_store_inferior_registers): Likewise.
4562 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Likewise.
4563 (mips_fbsd_supply_gregs): Likewise.
4564 (mips_fbsd_collect_fpregs): Likewise.
4565 (mips_fbsd_collect_gregs): Likewise.
4566 (mips_fbsd_supply_fpregset): Likewise.
4567 (mips_fbsd_collect_fpregset): Likewise.
4568 (mips_fbsd_supply_gregset): Likewise.
4569 (mips_fbsd_collect_gregset): Likewise.
4570 * mips-linux-nat.c (supply_gregset): Likewise.
4571 (fill_gregset): Likewise.
4572 (supply_fpregset): Likewise.
4573 (fill_fpregset): Likewise.
4574 * mips-linux-tdep.c (mips_supply_gregset): Likewise.
4575 (mips_fill_gregset): Likewise.
4576 (mips_supply_fpregset): Likewise.
4577 (mips_fill_fpregset): Likewise.
4578 (mips64_supply_gregset): Likewise.
4579 (micromips_linux_sigframe_validate): Likewise.
4580 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
4581 (mipsnbsd_fetch_inferior_registers): Likewise.
4582 (mipsnbsd_store_inferior_registers): Likewise.
4583 * mips-nbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
4584 (mipsnbsd_supply_gregset): Likewise.
4585 (mipsnbsd_iterate_over_regset_sections): Likewise.
4586 (mipsnbsd_supply_reg): Likewise.
4587 (mipsnbsd_supply_fpreg): Likewise.
4588 * mips-tdep.c (mips_in_frame_stub): Likewise.
4589 (mips_dummy_id): Likewise.
4590 (is_octeon_bbit_op): Likewise.
4591 (micromips_bc1_pc): Likewise.
4592 (extended_mips16_next_pc): Likewise.
4593 (mips16_next_pc): Likewise.
4594 (deal_with_atomic_sequence): Likewise.
4595 * moxie-tdep.c (moxie_process_readu): Likewise.
4596 * nios2-tdep.c (nios2_get_next_pc): Likewise.
4597 * nto-procfs.c (procfs_store_registers): Likewise.
4598 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers): Likewise.
4599 (ppcfbsd_store_inferior_registers): Likewise.
4600 * ppc-linux-nat.c (fetch_vsx_register): Likewise.
4601 (fetch_altivec_register): Likewise.
4602 (get_spe_registers): Likewise.
4603 (fetch_spe_register): Likewise.
4604 (fetch_altivec_registers): Likewise.
4605 (fetch_all_gp_regs): Likewise.
4606 (fetch_all_fp_regs): Likewise.
4607 (store_vsx_register): Likewise.
4608 (store_altivec_register): Likewise.
4609 (set_spe_registers): Likewise.
4610 (store_spe_register): Likewise.
4611 (store_altivec_registers): Likewise.
4612 (store_all_gp_regs): Likewise.
4613 (store_all_fp_regs): Likewise.
4614 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
4615 (ppc_linux_collect_gregset): Likewise.
4616 (ppc_canonicalize_syscall): Likewise.
4617 (ppc_linux_record_signal): Likewise.
4618 (ppu2spu_prev_register): Likewise.
4619 * ppc-nbsd-nat.c (ppcnbsd_supply_pcb): Likewise.
4620 * ppc-obsd-nat.c (ppcobsd_fetch_registers): Likewise.
4621 (ppcobsd_store_registers): Likewise.
4622 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_fetch_registers):
4624 (ppc_ravenscar_generic_store_registers): Likewise.
4625 * procfs.c (procfs_fetch_registers): Likewise.
4626 (procfs_store_registers): Likewise.
4627 * ravenscar-thread.c (ravenscar_fetch_registers): Likewise.
4628 (ravenscar_store_registers): Likewise.
4629 (ravenscar_prepare_to_store): Likewise.
4630 * record-btrace.c (record_btrace_fetch_registers): Likewise.
4631 * record-full.c (record_full_wait_1): Likewise.
4632 (record_full_registers_change): Likewise.
4633 (record_full_store_registers): Likewise.
4634 (record_full_core_fetch_registers): Likewise.
4635 (record_full_save): Likewise.
4636 (record_full_goto_insn): Likewise.
4637 * regcache.c (regcache_register_size): Likewise.
4638 (get_regcache_arch): Remove.
4639 (regcache_read_pc): Likewise.
4640 * regcache.h (get_regcache_arch): Remove.
4641 * remote-sim.c (gdbsim_fetch_register): Likewise.
4642 (gdbsim_store_register): Likewise.
4643 * remote.c (fetch_register_using_p): Likewise.
4644 (send_g_packet): Likewise.
4645 (remote_prepare_to_store): Likewise.
4646 (store_registers_using_G): Likewise.
4647 * reverse.c (save_bookmark_command): Likewise.
4648 (goto_bookmark_command): Likewise.
4649 * rs6000-aix-tdep.c (branch_dest): Likewise.
4650 * rs6000-nat.c (rs6000_ptrace64): Likewise.
4651 (fetch_register): Likewise.
4652 * rs6000-tdep.c (ppc_supply_reg): Likewise.
4653 (ppc_collect_reg): Likewise.
4654 (ppc_collect_gregset): Likewise.
4655 (ppc_collect_fpregset): Likewise.
4656 (ppc_collect_vsxregset): Likewise.
4657 (ppc_collect_vrregset): Likewise.
4658 (ppc_displaced_step_hw_singlestep): Likewise.
4659 (rs6000_pseudo_register_read): Likewise.
4660 (rs6000_pseudo_register_write): Likewise.
4661 * s390-linux-nat.c (supply_gregset): Likewise.
4662 (fill_gregset): Likewise.
4663 (s390_linux_fetch_inferior_registers): Likewise.
4664 * s390-linux-tdep.c (s390_write_pc): Likewise.
4665 (s390_software_single_step): Likewise.
4666 (s390_all_but_pc_registers_record): Likewise.
4667 (s390_linux_syscall_record): Likewise.
4668 * sentinel-frame.c (sentinel_frame_prev_arch): Likewise.
4669 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
4670 (shnbsd_store_inferior_registers): Likewise.
4671 * sh-tdep.c (sh_extract_return_value_nofpu): Likewise.
4672 (sh_extract_return_value_fpu): Likewise.
4673 (sh_store_return_value_nofpu): Likewise.
4674 (sh_corefile_supply_regset): Likewise.
4675 (sh_corefile_collect_regset): Likewise.
4676 * sh64-tdep.c (sh64_extract_return_value): Likewise.
4677 (sh64_store_return_value): Likewise.
4678 * sparc-linux-tdep.c (sparc32_linux_collect_core_fpregset): Likewise.
4679 * sparc-nat.c (sparc_fetch_inferior_registers): Likewise.
4680 (sparc_store_inferior_registers): Likewise.
4681 * sparc-ravenscar-thread.c (register_in_thread_descriptor_p): Likewise.
4682 (sparc_ravenscar_prepare_to_store): Likewise.
4683 * sparc-tdep.c (sparc32_store_arguments): Likewise.
4684 (sparc_analyze_control_transfer): Likewise.
4685 (sparc_step_trap): Likewise.
4686 (sparc_software_single_step): Likewise.
4687 (sparc32_gdbarch_init): Likewise.
4688 (sparc_supply_rwindow): Likewise.
4689 (sparc_collect_rwindow): Likewise.
4690 * sparc64-linux-tdep.c (sparc64_linux_collect_core_fpregset): Likewise.
4691 * sparc64-nbsd-nat.c (sparc64nbsd_supply_gregset): Likewise.
4692 (sparc64nbsd_collect_gregset): Likewise.
4693 (sparc64nbsd_supply_fpregset): Likewise.
4694 (sparc64nbsd_collect_fpregset): Likewise.
4695 * sparc64-tdep.c (sparc64_store_arguments): Likewise.
4696 (sparc64_supply_gregset): Likewise.
4697 (sparc64_collect_gregset): Likewise.
4698 (sparc64_supply_fpregset): Likewise.
4699 (sparc64_collect_fpregset): Likewise.
4700 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
4701 * spu-tdep.c (spu_unwind_sp): Likewise.
4702 (spu2ppu_prev_register): Likewise.
4703 (spu_memory_remove_breakpoint): Likewise.
4704 * stack.c (return_command): Likewise.
4705 * tic6x-tdep.c (tic6x_extract_signed_field): Likewise.
4706 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
4707 * tracefile.c (trace_save_ctf): Likewise.
4708 * windows-nat.c (do_windows_fetch_inferior_registers): Likewise.
4709 (do_windows_store_inferior_registers): Likewise.
4710 (windows_resume): Likewise.
4711 * xtensa-linux-nat.c (fill_gregset): Likewise.
4712 (supply_gregset_reg): Likewise.
4713 * xtensa-tdep.c (xtensa_register_write_masked): Likewise.
4714 (xtensa_register_read_masked): Likewise.
4715 (xtensa_supply_gregset): Likewise.
4716 (xtensa_extract_return_value): Likewise.
4717 (xtensa_store_return_value): Likewise.
4719 2017-10-25 Ulrich Weigand <uweigand@de.ibm.com>
4721 * doublest.c (floatformat_from_string): New function.
4722 * doublest.h (floatformat_from_string): Add prototype.
4724 * std-operator.def (OP_DOUBLE, OP_DECFLOAT): Remove, replace by ...
4725 (OP_FLOAT): ... this.
4726 * expression.h: Do not include "doublest.h".
4727 (union exp_element): Replace doubleconst and decfloatconst by
4728 new element floatconst.
4729 * ada-lang.c (resolve_subexp): Handle OP_FLOAT instead of OP_DOUBLE.
4730 (ada_evaluate_subexp): Likewise.
4731 * eval.c (evaluate_subexp_standard): Handle OP_FLOAT instead of
4732 OP_DOUBLE and OP_DECFLOAT.
4733 * expprint.c (print_subexp_standard): Likewise.
4734 (dump_subexp_body_standard): Likewise.
4735 * breakpoint.c (watchpoint_exp_is_const): Likewise.
4737 * parse.c: Include "dfp.h".
4738 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
4739 (write_exp_elt_floatcst): New function.
4740 (operator_length_standard): Handle OP_FLOAT instead of OP_DOUBLE
4742 (operator_check_standard): Likewise.
4743 (parse_float): Do not accept suffix. Take type as input. Return bool.
4744 Return target format buffer instead of host DOUBLEST.
4745 Use floatformat_from_string and decimal_from_string to parse
4746 either binary or decimal floating-point types.
4747 (parse_c_float): Remove.
4748 * parser-defs.h: Do not include "doublest.h".
4749 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
4750 (write_exp_elt_floatcst): Add prototype.
4751 (parse_float): Update prototype.
4752 (parse_c_float): Remove.
4754 * c-exp.y: Do not include "dfp.h".
4755 (typed_val_float): Use byte buffer instead of DOUBLEST.
4756 (typed_val_decfloat): Remove.
4758 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4759 (parse_number): Update to new parse_float interface.
4760 Parse suffixes and determine type before calling parse_float.
4761 Handle decimal and binary FP types the same way.
4763 * d-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
4764 (FLOAT_LITERAL): Use OP_FLOAT and write_exp_elt_floatcst.
4765 (parse_number): Update to new parse_float interface.
4766 Parse suffixes and determine type before calling parse_float.
4768 * f-exp.y: Replace dval by typed_val_float.
4769 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4770 (parse_number): Use parse_float instead of atof.
4772 * go-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
4773 (parse_go_float): Remove.
4774 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4775 (parse_number): Call parse_float instead of parse_go_float.
4776 Parse suffixes and determine type before calling parse_float.
4778 * p-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
4779 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4780 (parse_number): Update to new parse_float interface.
4781 Parse suffixes and determine type before calling parse_float.
4783 * m2-exp.y: Replace dval by byte buffer val.
4784 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4785 (parse_number): Call parse_float instead of atof.
4787 * rust-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
4788 (lex_number): Call parse_float instead of strtod.
4789 (ast_dliteral): Use OP_FLOAT instead of OP_DOUBLE.
4790 (convert_ast_to_expression): Handle OP_FLOAT instead of OP_DOUBLE.
4791 Use write_exp_elt_floatcst.
4792 (unit_testing): Remove static variable.
4793 (rust_type): Do not check unit_testing.
4794 (rust_lex_tests): Do not set uint_testing. Set up dummy rust_parser.
4796 * ada-exp.y (type_float, type_double): Remove.
4797 (typed_val_float): Use byte buffer instead of DOUBLEST.
4798 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4799 * ada-lex.l (processReal): Use parse_float instead of sscanf.
4801 2017-10-25 Alan Hayward <alan.hayward@arm.com>
4803 * aarch64-tdep.h (enum aarch64_regnum): Remove.
4804 * arch/aarch64.h: New file.
4806 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4808 * dfp.h (decimal_from_string): Use const reference for argument.
4809 * dfp.c (decimal_from_string): Likewise.
4811 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4813 * i387-tdep.c (print_i387_value): Use floatformat_to_string.
4814 * sh64-tdep.c (sh64_do_fp_register): Likewise.
4815 * mips-tdep.c (mips_print_fp_register): Likewise.
4817 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4819 * common/format.h (enum argclass): Replace decfloat_arg by
4820 dec32float_arg, dec64float_arg, and dec128float_arg.
4821 * common/format.c (parse_format_string): Update to return
4822 new decimal float argument classes.
4824 * printcmd.c (printf_decfloat): Rename to ...
4825 (printf_floating): ... this. Add argclass argument, and use it
4826 instead of parsing the format string again. Add support for
4827 binary floating-point values, using floatformat_to_string.
4828 Convert value to the target format if it doesn't already match.
4829 (ui_printf): Call printf_floating instead of printf_decfloat,
4830 also for double_arg / long_double_arg. Pass argclass.
4832 * dfp.c (decimal_to_string): Add format string argument.
4833 * dfp.h (decimal_to_string): Likewise.
4835 * doublest.c (floatformat_to_string): Add format string argument.
4836 * doublest.h (floatformat_to_string): Likewise.
4838 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4840 * doublest.c (floatformat_precision): New routine.
4841 (floatformat_to_string): Likewise.
4842 * doublest.c (floatformat_to_string): Add prototype.
4844 * printcmd.c (print_scalar_formatted): Only call print_floating
4845 on floating-point types.
4846 * valprint.c: Do not include "floatformat.h".
4847 (generic_val_print_decfloat): Remove.
4848 (generic_val_print): Call generic_val_print_float for both
4849 TYPE_CODE_FLT and TYPE_CODE_DECFLOAT.
4850 (print_floating): Use floatformat_to_string. Handle decimal float.
4851 (print_decimal_floating): Remove, merge into floatformat_to_string.
4852 * value.h (print_decimal_floating): Remove.
4854 * Makefile.in: Do not build doublest.c with -Wformat-nonliteral.
4856 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4858 * buildsym.c (end_symtab_get_static_block): Use std::stable_sort.
4860 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
4862 * memattr.h: Don't include vec.h.
4863 (struct mem_attrib): Initialize fields.
4864 <unknown>: New static method.
4865 (struct mem_region): Add constructors, operator<, initialize
4867 * memattr.c: Include algorithm.
4868 (default_mem_attrib, unknown_mem_attrib): Remove.
4869 (user_mem_region_list): New global.
4870 (target_mem_region_list, mem_region_list): Change type to
4871 std::vector<mem_region>.
4872 (mem_use_target): Now a function.
4873 (target_mem_regions_valid): Change type to bool.
4874 (mem_region_lessthan, mem_region_cmp, mem_region_init): Remove.
4875 (require_user_regions): Adjust.
4876 (require_target_regions): Adjust.
4877 (create_mem_region): Adjust.
4878 (lookup_mem_region): Adjust.
4879 (invalidate_target_mem_regions): Adjust.
4880 (mem_clear): Rename to...
4881 (user_mem_clear): ... this, and adjust.
4882 (mem_command): Adjust.
4883 (info_mem_command): Adjust.
4884 (mem_enable, enable_mem_command, mem_disable,
4885 disable_mem_command): Adjust.
4886 (mem_delete): Adjust.
4887 (delete_mem_command): Adjust.
4888 * memory-map.h (parse_memory_map): Return an std::vector.
4889 * memory-map.c (parse_memory_map): Likewise.
4890 (struct memory_map_parsing_data): Add constructor.
4891 <memory_map>: Point to std::vector.
4892 (memory_map_start_memory): Adjust.
4893 (memory_map_end_memory): Adjust.
4894 (memory_map_end_property): Adjust.
4895 (clear_result): Remove.
4896 * remote.c (remote_memory_map): Return an std::vector.
4897 * target-debug.h (target_debug_print_VEC_mem_region_s__p):
4899 (target_debug_print_mem_region_vector): New.
4900 * target-delegates.c: Regenerate.
4901 * target.h (mem_region_vector): New typedef.
4902 (to_memory_map): Return mem_region_vector.
4903 (target_memory_map): Return an std::vector.
4904 * target.c (target_memory_map): Return an std::vector.
4905 (flash_erase_command): Adjust.
4907 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
4909 * memory-map.c (struct memory_map_parsing_data) <property_name>:
4910 Change type to std::string.
4911 (memory_map_start_property): Adjust.
4912 (memory_map_end_property): Adjust.
4914 2017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
4916 * infrun.h: Include common/byte-vector.h.
4917 (struct displaced_step_closure): New struct.
4918 (struct buf_displaced_step_closure): New struct.
4919 * infrun.c (displaced_step_closure::~displaced_step_closure):
4920 Provide default implementation.
4921 (displaced_step_clear): Deallocate step closure with delete.
4922 * aarch64-tdep.c (displaced_step_closure): Rename to ...
4923 (aarch64_displaced_step_closure): ... this, extend
4924 displaced_step_closure.
4925 (aarch64_displaced_step_data) <dsc>: Change type to
4926 aarch64_displaced_step_closure.
4927 (aarch64_displaced_step_copy_insn): Adjust to type change, use
4929 (aarch64_displaced_step_fixup): Add cast for displaced step
4931 * amd64-tdep.c (displaced_step_closure): Rename to ...
4932 (amd64_displaced_step_closure): ... this, extend
4933 displaced_step_closure.
4934 <insn_buf>: Change type to std::vector<gdb_byte>.
4936 (fixup_riprel): Change type of DSC parameter, adjust to type
4938 (fixup_displaced_copy): Change type of DSC parameter.
4939 (amd64_displaced_step_copy_insn): Instantiate
4940 amd64_displaced_step_closure.
4941 (amd64_displaced_step_fixup): Add cast for closure type, adjust
4942 to type change of insn_buf.
4943 * arm-linux-tdep.c (arm_linux_cleanup_svc): Change type of
4945 (arm_linux_copy_svc): Likewise.
4946 (cleanup_kernel_helper_return): Likewise.
4947 (arm_catch_kernel_helper_return): Likewise.
4948 (arm_linux_displaced_step_copy_insn): Instantiate
4949 arm_displaced_step_closure.
4950 * arm-tdep.c (arm_pc_is_thumb): Add cast for closure.
4951 (displaced_read_reg): Change type of parameter DSC.
4952 (branch_write_pc): Likewise.
4953 (load_write_pc): Likewise.
4954 (alu_write_pc): Likewise.
4955 (displaced_write_reg): Likewise.
4956 (arm_copy_unmodified): Likewise.
4957 (thumb_copy_unmodified_32bit): Likewise.
4958 (thumb_copy_unmodified_16bit): Likewise.
4959 (cleanup_preload): Likewise.
4960 (install_preload): Likewise.
4961 (arm_copy_preload): Likewise.
4962 (thumb2_copy_preload): Likewise.
4963 (install_preload_reg): Likewise.
4964 (arm_copy_preload_reg): Likewise.
4965 (cleanup_copro_load_store): Likewise.
4966 (install_copro_load_store): Likewise.
4967 (arm_copy_copro_load_store) Likewise.
4968 (thumb2_copy_copro_load_store): Likewise.
4969 (cleanup_branch): Likewise.
4970 (install_b_bl_blx): Likewise.
4971 (arm_copy_b_bl_blx): Likewise.
4972 (thumb2_copy_b_bl_blx): Likewise.
4973 (thumb_copy_b): Likewise.
4974 (install_bx_blx_reg): Likewise.
4975 (arm_copy_bx_blx_reg): Likewise.
4976 (thumb_copy_bx_blx_reg): Likewise.
4977 (cleanup_alu_imm): Likewise.
4978 (arm_copy_alu_imm): Likewise.
4979 (thumb2_copy_alu_imm): Likewise.
4980 (cleanup_alu_reg): Likewise.
4981 (install_alu_reg): Likewise.
4982 (arm_copy_alu_reg): Likewise.
4983 (thumb_copy_alu_reg): Likewise.
4984 (cleanup_alu_shifted_reg): Likewise.
4985 (install_alu_shifted_reg): Likewise.
4986 (arm_copy_alu_shifted_reg): Likewise.
4987 (cleanup_load): Likewise.
4988 (cleanup_store): Likewise.
4989 (arm_copy_extra_ld_st): Likewise.
4990 (install_load_store): Likewise.
4991 (thumb2_copy_load_literal): Likewise.
4992 (thumb2_copy_load_reg_imm): Likewise.
4993 (arm_copy_ldr_str_ldrb_strb): Likewise.
4994 (cleanup_block_load_all): Likewise.
4995 (cleanup_block_store_pc): Likewise.
4996 (cleanup_block_load_pc): Likewise.
4997 (arm_copy_block_xfer): Likewise.
4998 (thumb2_copy_block_xfer): Likewise.
4999 (cleanup_svc): Likewise.
5000 (install_svc): Likewise.
5001 (arm_copy_svc): Likewise.
5002 (thumb_copy_svc): Likewise.
5003 (arm_copy_undef): Likewise.
5004 (thumb_32bit_copy_undef): Likewise.
5005 (arm_copy_unpred): Likewise.
5006 (arm_decode_misc_memhint_neon): Likewise.
5007 (arm_decode_unconditional): Likewise.
5008 (arm_decode_miscellaneous): Likewise.
5009 (arm_decode_dp_misc): Likewise.
5010 (arm_decode_ld_st_word_ubyte): Likewise.
5011 (arm_decode_media): Likewise.
5012 (arm_decode_b_bl_ldmstm): Likewise.
5013 (arm_decode_ext_reg_ld_st): Likewise.
5014 (thumb2_decode_dp_shift_reg): Likewise.
5015 (thumb2_decode_ext_reg_ld_st): Likewise.
5016 (arm_decode_svc_copro): Likewise.
5017 (thumb2_decode_svc_copro): Likewise.
5018 (install_pc_relative): Likewise.
5019 (thumb_copy_pc_relative_16bit): Likewise.
5020 (thumb_decode_pc_relative_16bit): Likewise.
5021 (thumb_copy_pc_relative_32bit): Likewise.
5022 (thumb_copy_16bit_ldr_literal): Likewise.
5023 (thumb_copy_cbnz_cbz): Likewise.
5024 (thumb2_copy_table_branch): Likewise.
5025 (cleanup_pop_pc_16bit_all): Likewise.
5026 (thumb_copy_pop_pc_16bit): Likewise.
5027 (thumb_process_displaced_16bit_insn): Likewise.
5028 (decode_thumb_32bit_ld_mem_hints): Likewise.
5029 (thumb_process_displaced_32bit_insn): Likewise.
5030 (thumb_process_displaced_insn): Likewise.
5031 (arm_process_displaced_insn): Likewise.
5032 (arm_displaced_init_closure): Likewise.
5033 (arm_displaced_step_fixup): Add cast for closure.
5034 * arm-tdep.h: Include infrun.h.
5035 (displaced_step_closure): Rename to ...
5036 (arm_displaced_step_closure): ... this, extend
5037 displaced_step_closure.
5038 <u::svc::copy_svc_os>: Change type of parameter DSC.
5039 <cleanup>: Likewise.
5040 (arm_process_displaced_insn): Likewise.
5041 (arm_displaced_init_closure): Likewise.
5042 (displaced_read_reg): Likewise.
5043 (displaced_write_reg): Likewise.
5044 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
5046 * i386-tdep.h: Include infrun.h.
5047 (i386_displaced_step_closure): New typedef.
5048 * i386-tdep.c (i386_displaced_step_copy_insn): Use
5049 i386_displaced_step_closure.
5050 (i386_displaced_step_fixup): Adjust.
5051 * rs6000-tdep.c (ppc_displaced_step_closure): New typedef.
5052 (ppc_displaced_step_copy_insn): Use ppc_displaced_step_closure
5054 (ppc_displaced_step_fixup): Adjust.
5055 * s390-linux-tdep.c (s390_displaced_step_closure): New typedef.
5056 (s390_displaced_step_copy_insn): Use s390_displaced_step_closure
5058 (s390_displaced_step_fixup): Adjust.
5060 2017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
5062 * interps.h (interp_resume, interp_suspend, interp_set_temp):
5063 Remove declarations.
5065 2017-10-20 Tom Tromey <tom@tromey.com>
5067 * gdb_bfd.c (struct gdb_bfd_data) <included_bfds>: Now a
5069 (gdb_bfd_record_inclusion): Update.
5070 (bfdp): Remove typedef.
5072 2017-10-20 Tom Tromey <tom@tromey.com>
5074 * gdb_bfd.c (gdb_bfd_ref): Use new.
5075 (struct gdb_bfd_data): Add constructor, destructor, and member
5077 (gdb_bfd_unref): Use delete.
5079 2017-10-20 Tom Tromey <tom@tromey.com>
5081 * exec.c (exec_file_attach): Use new_bfd_ref.
5082 * symfile-mem.c (symbol_file_add_from_memory): Use new_bfd_ref.
5083 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
5084 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_fdopenr): Use
5086 * gdb_bfd.h (new_bfd_ref): New function.
5088 2017-10-20 Pedro Alves <palves@redhat.com>
5090 * main.c (captured_command_loop): Add attribute noinline.
5092 2017-10-19 Simon Marchi <simon.marchi@ericsson.com>
5094 * interps.c (struct interp_factory): Add constructor.
5095 (interp_factory_p): Remove typedef.
5096 (DEF_VEC_P(interp_factory_p)): Remove.
5097 (interpreter_factories): Change type to std::vector.
5098 (interp_factory_register): Adjust.
5099 (interp_lookup): Adjust.
5100 (interpreter_completer): Adjust.
5102 2017-10-19 Tom Tromey <tom@tromey.com>
5104 * break-catch-syscall.c (catch_syscall_completer): Use
5105 std::string, gdb::unique_xmalloc_ptr.
5107 2017-10-19 Tom Tromey <tom@tromey.com>
5109 * infcall.c (call_function_by_hand_dummy): Use std::string.
5111 2017-10-19 Tom Tromey <tom@tromey.com>
5113 * mi/mi-main.c (mi_cmd_execute): Update.
5114 * top.h (prepare_execute_command): Return scoped_value_mark.
5115 * value.h (class scoped_value_mark): Use DISABLE_COPY_AND_ASSIGN.
5116 Add move constructor.
5117 * top.c (prepare_execute_command): Return scoped_value_mark.
5118 (execute_command): Update.
5120 2017-10-19 Pedro Alves <palves@redhat.com>
5122 * xml-support.c (xml_fetch_content_from_file): Check fread's
5125 2017-10-19 Pedro Alves <palves@redhat.com>
5127 * ser-base.c (ser_base_read_error_fd): Delete the file handler if
5129 (handle_error_fd): New function.
5130 (ser_base_async): Add/delete an event loop file handler for
5133 2017-10-19 Pedro Alves <palves@redhat.com>
5135 * xml-support.c (xml_fetch_content_from_file): Don't read in
5136 chunks. Instead use fseek to determine the file's size, and read
5139 2017-11-18 Keith Seitz <keiths@redhat.com>
5141 * c-exp.y (oper): Canonicalize conversion operators of user-defined
5143 Add whitespace to front of type name.
5145 2017-10-18 Keith Seitz <keiths@redhat.com>
5147 * dwarf2read.c (dwarf2_add_typedef): Issue a complaint on unhandled
5148 DW_AT_accessibility.
5150 2017-10-18 Yao Qi <yao.qi@linaro.org>
5152 * features/tic6x-c62x-linux.c: Remove.
5154 2017-10-17 Tom Tromey <tom@tromey.com>
5156 * disasm.c (do_mixed_source_and_assembly_deprecated): Use
5157 gdb::optional, ui_out_emit_list, ui_out_emit_tuple.
5158 (do_mixed_source_and_assembly): Likewise.
5160 2017-10-17 Tom Tromey <tom@tromey.com>
5162 * regcache.c (regcache::xfer_part): Remove assertion.
5164 2017-10-17 Pedro Alves <palves@redhat.com>
5166 * xml-support.c (xml_fetch_content_from_file): Call
5167 unique_ptr::release() instead unique_ptr::get() when passing
5170 2017-10-17 Yao Qi <yao.qi@linaro.org>
5172 * regcache.c (regcache::xfer_part): Remove parameters read and
5173 write, add parameter is_raw. All callers are updated.
5175 2017-10-16 Keith Seitz <keiths@redhat.com>
5177 * c-typeprint.c (enum access_specifier): Moved here from
5179 (output_access_specifier): New function.
5180 (c_type_print_base): Consider typedefs when assessing
5181 whether access labels are needed.
5182 Use output_access_specifier as needed.
5183 Output access specifier for typedefs, if needed.
5184 * dwarf2read.c (dwarf2_add_typedef): Record DW_AT_accessibility.
5185 * gdbtypes.h (struct typedef_field) <is_protected, is_private>: New
5187 (TYPE_TYPEDEF_FIELD_PROTECTED, TYPE_TYPEDEF_FIELD_PRIVATE): New
5190 2017-10-16 Tom Tromey <tom@tromey.com>
5192 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full)
5193 (linux_fill_prpsinfo, linux_vsyscall_range_raw): Update.
5194 * target.c (target_fileio_read_stralloc): Update.
5195 * sparc64-tdep.c (adi_is_addr_mapped): Update.
5196 * target.h (target_fileio_read_stralloc): Return
5199 2017-10-16 Tom Tromey <tom@tromey.com>
5201 * xml-syscall.c (xml_init_syscalls_info): Update.
5202 * xml-support.c (xinclude_start_include): Update.
5203 (xml_fetch_content_from_file): Return unique_xmalloc_ptr.
5204 * xml-support.h (xml_fetch_another): Return unique_xmalloc_ptr.
5205 (xml_fetch_content_from_file): Likewise.
5206 * osdata.c (get_osdata): Update.
5207 * target.h (target_read_stralloc, target_get_osdata): Return
5209 * solib-aix.c (solib_aix_get_library_list): Update.
5210 * solib-target.c (solib_target_current_sos): Update.
5211 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Update.
5212 * xml-tdesc.c (fetch_available_features_from_target): Update.
5213 (target_fetch_description_xml): Update.
5214 (file_read_description_xml): Update.
5215 * remote.c (remote_get_threads_with_qxfer, remote_memory_map)
5216 (remote_traceframe_info, btrace_read_config, remote_read_btrace)
5217 (remote_pid_to_exec_file): Update.
5218 * target.c (target_read_stralloc): Return unique_xmalloc_ptr.
5219 (target_get_osdata): Likewise.
5221 2017-10-16 Tom Tromey <tom@tromey.com>
5223 * remote.c (remote_register_number_and_offset): Use std::vector.
5224 (remote_set_syscall_catchpoint): Use gdb::unique_xmalloc_ptr.
5225 (putpkt_binary): Use gdb::def_vector.
5226 (compare_sections_command): Use gdb::byte_vector.
5228 2017-10-16 Tom Tromey <tom@tromey.com>
5230 * ppc-linux-nat.c (hwdebug_insert_point): Use
5231 gdb::unique_xmalloc_ptr, XDUP.
5233 2017-10-16 Tom Tromey <tom@tromey.com>
5235 * probe.c (parse_probes): Use std::string.
5236 (info_probes_for_ops, enable_probes_command)
5237 (disable_probes_command): Remove cleanups.
5239 2017-10-16 Tom Tromey <tom@tromey.com>
5241 * buildsym.c (block_compar): Remove.
5242 (end_symtab_get_static_block): Use std::vector.
5244 2017-10-16 Simon Marchi <simon.marchi@ericsson.com>
5246 * memrange.h (struct mem_range): Define operator< and operator==.
5247 (mem_range_s): Remove.
5248 (DEF_VEC_O (mem_range_s)): Remove.
5249 (normalize_mem_ranges): Change parameter type to std::vector.
5250 * memrange.c (compare_mem_ranges): Remove.
5251 (normalize_mem_ranges): Change parameter type to std::vector,
5252 adjust to vector change.
5253 * exec.c (section_table_available_memory): Return vector, remove
5255 (section_table_read_available_memory): Adjust to std::vector
5257 * remote.c (remote_read_bytes): Adjust to std::vector
5259 * tracepoint.h (traceframe_available_memory): Change parameter
5260 type to std::vector.
5261 * tracepoint.c (traceframe_available_memory): Change parameter
5262 type to std::vector, adjust.
5263 * gdb/mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to
5265 * gdb/Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5266 unittests/memrange-selftests.c.
5267 (SUBDIR_UNITTESTS_OBS): Add memrange-selftests.o.
5268 * gdb/unittests/memrange-selftests.c: New file.
5270 2017-10-16 Pedro Alves <palves@redhat.com>
5272 * elfread.c (probe_key_free): Rename range-for variable.
5273 * probe.c (parse_probes_in_pspace, find_probes_in_objfile)
5274 (find_probe_by_pc, collect_probes): Rename range-for variable.
5276 2017-10-16 Yao Qi <yao.qi@linaro.org>
5278 * features/Makefile (XMLTOC): Remove tic6x-*.xml.
5279 * features/tic6x-c62x.c: Remove.
5280 * features/tic6x-c64x-linux.c: Remove.
5281 * features/tic6x-c64x.c: Remove.
5282 * features/tic6x-c64xp-linux.c: Remove.
5283 * features/tic6x-c64xp.c: Remove.
5284 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Don't call
5285 initialize_tdesc_tic6x_*_linux functions.
5286 * tic6x-tdep.c (_initialize_tic6x_tdep): Don't call
5287 initialize_tdesc_tic6x_* functions.
5289 2017-10-16 Yao Qi <yao.qi@linaro.org>
5291 * features/Makefile (WHICH): Remove tic6x-c64xp, tic6x-c64x
5293 * regformats/tic6x-c62x.dat: Remove.
5294 * regformats/tic6x-c64x.dat: Remove.
5295 * regformats/tic6x-c64xp.dat: Remove.
5297 2017-10-15 Simon Marchi <simon.marchi@ericsson.com>
5299 * tracepoint.c (parse_traceframe_info): Return a unique_ptr
5300 (the !HAVE_LIBEXPAT version).
5302 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
5304 * nat/linux-osdata.c (struct pid_pgid_entry) <operator<>: Make
5307 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
5309 * target.h: Include tracepoint.h.
5310 (enum trace_find_type): Move to tracepoint.h.
5311 (struct target_ops) <to_traceframe_info>: Return a unique ptr.
5312 * tracepoint.h: Don't include target.h
5313 (enum trace_find_type): Move from target.h.
5314 (parse_traceframe_info): Return a unique ptr.
5315 * tracepoint.c (current_traceframe_info): Change type to unique
5317 (free_traceframe_info): Remove.
5318 (clear_traceframe_info): Don't manually free
5319 current_traceframe_info.
5320 (free_result): Remove.
5321 (parse_traceframe_info): Return a unique ptr.
5322 (get_traceframe_info): Adjust to unique ptr.
5323 * ctf.c (ctf_traceframe_info): Return a unique ptr.
5324 * remote.c (remote_traceframe_info): Return a unique ptr.
5325 * tracefile-tfile.c (tfile_traceframe_info): Return a unique
5327 * target-debug.h (target_debug_print_traceframe_info_up): New
5329 * target-delegates.c: Regenerate.
5331 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
5333 * memrange.h (struct mem_range): Add constructors.
5334 * tracepoint.h (struct traceframe_info) <memory>: Change type to
5335 std::vector<mem_range>.
5336 * tracepoint.c (free_traceframe_info): Don't manually free
5338 (traceframe_info_start_memory): Adjust to vector change.
5339 (traceframe_available_memory): Likewise.
5340 * tracefile-tfile.c (build_traceframe_info): Likewise.
5341 * ctf.c (ctf_traceframe_info): Likewise.
5343 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
5345 * tracepoint.h (struct traceframe_info) <tvars>: Change type to
5347 * tracepoint.c (free_traceframe_info): Deallocate with delete.
5348 (traceframe_info_start_tvar): Adjust to vector change.
5349 (parse_traceframe_info): Allocate with new.
5350 * ctf.c (ctf_traceframe_info): Allocate with new, adjust to
5352 * tracefile-tfile.c (build_traceframe_info): Adjust to vector
5354 tfile_traceframe_info): Allocate with new.
5355 * mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to vector
5358 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
5360 * tracepoint.c (traceframe_info): Rename to...
5361 (current_traceframe_info): ...this.
5362 (clear_traceframe_info): Adjust.
5363 (get_traceframe_info): Adjust.
5365 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
5367 * nat/linux-osdata.c: Include algorithm.
5368 (compare_processes): Remove.
5369 (struct pid_pgid_entry): New struct.
5370 (linux_xfer_osdata_processgroups): Use std::vector instead of
5373 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
5375 * objfiles.h: Don't include symfile.h.
5376 (struct partial_symbol): Remove forward-declaration.
5377 (struct objfile) <global_psymbols, static_psymbols>: Change type
5378 to std::vector<partial_symbol *>.
5379 * objfiles.c (objfile::objfile): Don't memset those fields.
5380 (objfile::~objfile): Don't free those fields.
5381 * psympriv.h (struct psymbol_allocation_list): Remove
5382 forward-declaration.
5383 (add_psymbol_to_list): Change psymbol_allocation_list parameter
5385 (start_psymtab_common): Change parameters to std::vector.
5386 * psymtab.c: Include algorithm.
5387 (require_partial_symbols): Call shrink_to_fit.
5388 (find_pc_sect_psymbol): Adjust to vector change.
5389 (match_partial_symbol): Likewise.
5390 (lookup_partial_symbol): Likewise.
5391 (psym_relocate): Likewise.
5392 (dump_psymtab): Likewise.
5393 (recursively_search_psymtabs): Likewise.
5394 (compare_psymbols): Remove.
5395 (sort_pst_symbols): Adjust to vector change.
5396 (start_psymtab_common): Likewise.
5397 (end_psymtab_common): Likewise.
5398 (psymbol_bcache_full): De-constify return value.
5399 (add_psymbol_to_bcache): Likewise.
5400 (extend_psymbol_list): Remove.
5401 (append_psymbol_to_list): Adjust to vector change.
5402 (add_psymbol_to_list): Likewise.
5403 (init_psymbol_list): Likewise.
5404 (maintenance_info_psymtabs): Likewise.
5405 (maintenance_check_psymtabs): Likewise.
5406 * symfile.h (struct psymbol_allocation_list): Remove.
5407 * symfile.c (reread_symbols): Adjust to vector change.
5408 * dbxread.c (start_psymtab): Change type of parameters.
5409 (dbx_symfile_read): Adjust to vector change.
5410 (read_dbx_symtab): Likewise.
5411 (start_psymtab): Change type of parameters.
5412 * dwarf2read.c (dwarf2_build_psymtabs): Adjust to vector change.
5413 (create_partial_symtab): Likewise.
5414 (add_partial_symbol): Likewise.
5415 (write_one_signatured_type): Likewise.
5416 (recursively_write_psymbols): Likewise.
5417 * mdebugread.c (parse_partial_symbols): Likewise.
5418 * xcoffread.c (xcoff_start_psymtab): Change type of parameters.
5419 (scan_xcoff_symtab): Adjust to vector change.
5420 (xcoff_initial_scan): Likewise.
5422 2017-10-13 Simon Marchi <simon.marchi@ericsson.com>
5424 * ada-typeprint.c (print_dynamic_range_bound): Use std::string.
5426 2017-10-13 Yao Qi <yao.qi@linaro.org>
5428 * features/Makefile: Remove tic6x-*-expedite, add tic6x-expedite.
5429 Remove s390x-*-expedite, add s390x-expedite.
5431 2017-10-13 Yao Qi <yao.qi@linaro.org>
5433 * features/s390-gs-linux64.c: Regenerated.
5434 * features/s390x-gs-linux64.c: Regenerated.
5436 2017-10-13 Tom Tromey <tom@tromey.com>
5438 * compile/compile-object-run.c (do_module_cleanup): Use delete.
5439 * solib.c (update_solib_list, reload_shared_libraries_1): Use
5441 * symfile.c (symbol_file_add_with_addrs): Use new.
5442 (symbol_file_add_separate): Update comment.
5443 (syms_from_objfile_1, remove_symbol_file_command): Use delete.
5444 * jit.c (jit_object_close_impl): Use new.
5445 (jit_unregister_code): Use delete.
5446 * objfiles.c (objfile::objfile): Rename from allocate_objfile.
5447 (~objfile): Rename from free_objfile.
5448 (free_objfile_separate_debug, do_free_objfile_cleanup)
5449 (free_all_objfiles, objfile_purge_solibs): Use delete.
5450 * objfiles.h (struct objfile): Add constructor and destructor.
5451 Use DISABLE_COPY_AND_ASSIGN. Add initializers to data members.
5452 (allocate_objfile, free_objfile): Don't declare.
5453 (struct objstats): Add initializers.
5455 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
5457 * arch-utils.h (simple_displaced_step_copy_insn): Remove.
5458 * arch-utils.c (simple_displaced_step_copy_insn): Remove.
5459 * gdbarch.sh (displaced_step_copy_insn): Adjust comment.
5460 * gdbarch.h: Regenerate.
5461 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
5463 * i386-tdep.c (i386_displaced_step_copy_insn): Adjust comment.
5464 (i386_displaced_step_fixup): Adjust comment.
5465 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Adjust comment.
5467 2017-10-12 Tom Tromey <tom@tromey.com>
5469 * prologue-value.h (pv_area::store_would_trash): Return bool.
5470 (pv_area::find_reg): Likewise.
5471 * prologue-value.c (pv_area::store_would_trash): Return bool.
5472 (pv_area::find_reg): Likewise.
5474 2017-10-12 Tom Tromey <tom@tromey.com>
5476 * s390-linux-tdep.c (s390_store, s390_load)
5477 (s390_check_for_saved, s390_analyze_prologue): Update.
5478 * rx-tdep.c (check_for_saved, rx_analyze_prologue): Update.
5479 * rl78-tdep.c (rl78_analyze_prologue, check_for_saved): Update.
5480 * prologue-value.h (class pv_area): Move from prologue-value.c.
5481 Change names of members. Add constructor, destructor, member
5483 (make_pv_area, free_pv_area, make_cleanup_free_pv_area)
5484 (pv_area_store, pv_area_fetch, pv_area_store_would_trash)
5485 (pv_area_fetch, pv_area_scan): Don't declare.
5486 * prologue-value.c (struct pv_area::area_entry): Now member of
5488 (struct pv_area): Move to prologue-value.h.
5489 (pv_area::pv_area): Rename from make_pv_area.
5490 (pv_area::~pv_area): Rename from free_pv_area.
5491 (do_free_pv_area_cleanup, make_cleanup_free_pv_area): Remove.
5492 (clear_entries, find_entry, overlaps, store_would_trash, store)
5493 (fetch, find_reg, scan): Now member of pv_area.
5494 Remove "area" argument. Update.
5495 * msp430-tdep.c (check_for_saved, msp430_analyze_prologue):
5497 * mn10300-tdep.c (push_reg, check_for_saved)
5498 (mn10300_analyze_prologue): Update.
5499 * mep-tdep.c (is_arg_spill, check_for_saved)
5500 (mep_analyze_prologue): Update.
5501 * m32c-tdep.c (m32c_pv_push, m32c_srcdest_fetch)
5502 (m32c_srcdest_store, m32c_pv_enter, m32c_is_arg_spill)
5503 (m32c_is_struct_return, m32c_analyze_prologue): Update.
5504 * arm-tdep.c (thumb_analyze_prologue, arm_analyze_prologue):
5506 * arc-tdep.c (arc_is_in_prologue, arc_analyze_prologue): Update.
5507 * aarch64-tdep.c (aarch64_analyze_prologue): Update.
5509 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
5511 * linux-nat.h (linux_nat_set_delete_thread): New declaration.
5512 * linux-nat.c (linux_nat_delete_thread): New variable.
5513 (lwp_free): Invoke linux_nat_delete_thread if set.
5514 (linux_nat_set_delete_thread): New function.
5515 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Assign
5516 thread delete callback.
5517 * arm-linux-nat.c (arm_linux_delete_thread): New function.
5518 (_initialize_arm_linux_nat): Assign thread delete callback.
5519 * s390-linux-nat.c (s390_delete_thread): New function.
5520 (_initialize_s390_nat): Assign thread delete callback.
5521 * x86-linux-nat.c (x86_linux_add_target): Likewise.
5522 * nat/aarch64-linux.c (aarch64_linux_delete_thread): New
5524 * nat/aarch64-linux.h (aarch64_linux_delete_thread): New
5526 * nat/x86-linux.c (x86_linux_delete_thread): New function.
5527 * nat/x86-linux.h (x86_linux_delete_thread): New declaration.
5529 2017-10-09 Tom Tromey <tom@tromey.com>
5531 * tui/tui-win.c (tui_set_win_height, parse_scrolling_args): Use
5533 * tui/tui-layout.c (enum tui_status): Use std::string.
5535 2017-10-11 Tom Tromey <tom@tromey.com>
5537 * gdbthread.h (thread_command): Constify.
5538 * inferior.h (detach_command): Constify.
5539 * top.h (set_history, show_history): Constify.
5540 * arm-tdep.c (set_arm_command, show_arm_command): Constify.
5541 * serial.c (serial_set_cmd, serial_show_cmd): Constify.
5542 * bsd-kvm.c (bsd_kvm_cmd): Constify.
5543 * printcmd.c (set_command): Constify.
5544 (non_const_set_command): New function.
5545 * dcache.c (set_dcache_command, show_dcache_command): Constify.
5546 * breakpoint.c (enable_command, disable_command, delete_command)
5547 (catch_command, tcatch_command, set_breakpoint_cmd)
5548 (show_breakpoint_cmd): Constify.
5549 * macrocmd.c (macro_command): Constify.
5550 * infcmd.c (unset_command, kill_command, detach_command)
5551 (info_proc_cmd): Constify.
5552 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Constify.
5553 * auto-load.c (show_auto_load_cmd, set_auto_load_cmd)
5554 (info_auto_load_cmd): Constify.
5555 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
5556 (unset_tdesc_cmd): Constify.
5557 * ada-lang.c (set_ada_command, show_ada_command)
5558 (maint_set_ada_cmd, maint_show_ada_cmd): Constify.
5559 * guile/guile.c (set_guile_command, show_guile_command)
5560 (info_guile_command): Constify.
5561 * tui/tui-win.c (tui_command, set_tui_cmd, show_tui_cmd):
5563 * skip.c (skip_command): Constify.
5564 * compile/compile.c (_initialize_compile): Constify.
5565 * dwarf2read.c (set_dwarf_cmd, show_dwarf_cmd): Constify.
5566 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
5567 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
5568 (maint_btrace_pt_show_cmd): Constify.
5569 * remote.c (set_remote_cmd, show_remote_cmd, remote_command):
5571 * python/python.c (user_show_python, user_set_python): Constify.
5572 * mips-tdep.c (set_mips_command, show_mips_command)
5573 (set_mipsfpu_command): Constify.
5574 * record-btrace.c (cmd_record_btrace_start)
5575 (cmd_set_record_btrace, cmd_show_record_btrace)
5576 (cmd_set_record_btrace_bts, cmd_show_record_btrace_bts)
5577 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): Constify.
5578 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command):
5580 * symfile.c (overlay_command): Constify.
5581 * spu-tdep.c (set_spu_command, show_spu_command): Constify.
5582 * cli/cli-logging.c (set_logging_command, show_logging_command):
5584 * cli/cli-dump.c (dump_command, append_command)
5585 (srec_dump_command, ihex_dump_command, verilog_dump_command)
5586 (tekhex_dump_command, binary_dump_command)
5587 (binary_append_command): Constify.
5588 * cli/cli-decode.c (struct cmd_list_element): Change type of
5590 * cli/cli-cmds.c (info_command, show_command, set_debug)
5591 (show_debug): Constify.
5592 (show_command): Add non-const overload.
5593 * top.c (set_history, show_history): Constify.
5594 * sh-tdep.c (set_sh_command, show_sh_command): Constify.
5595 * command.h (add_prefix_cmd): Accept a cmd_const_cfunc_ftype.
5596 * target.c (target_command): Constify.
5597 * sparc64-tdep.c (info_adi_command): Constify.
5598 * record-full.c (cmd_record_full_start): Constify.
5599 (set_record_full_command): Constify. Fix typo.
5600 (show_record_full_command): Constify.
5601 * thread.c (thread_command, thread_apply_command): Constify.
5602 * memattr.c (dummy_cmd): Constify.
5603 * value.c (function_command): Constify.
5604 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Constify.
5605 * probe.c (info_probes_command): Constify.
5606 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Constify.
5607 * gnu-nat.c (set_task_cmd, show_task_cmd, set_thread_cmd)
5608 (show_thread_cmd, set_thread_default_cmd)
5609 (show_thread_default_cmd): Constify.
5610 (check_empty): Constify.
5611 * tracepoint.c (tfind_command): Constify.
5612 * cp-support.c (maint_cplus_command): Constify.
5613 * windows-tdep.c (info_w32_command): Constify.
5614 * record.c (cmd_record_start, set_record_command)
5615 (show_record_command, info_record_command, cmd_record_goto):
5617 * ravenscar-thread.c (set_ravenscar_command)
5618 (show_ravenscar_command): Constify.
5619 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5621 (add_internal_problem_command): Remove casts.
5622 * arc-tdep.c (maintenance_print_arc_command): Constify.
5623 * valprint.c (set_print, show_print, set_print_raw)
5624 (show_print_raw): Constify.
5625 * maint.c (maintenance_command, maintenance_info_command)
5626 (maintenance_print_command, maintenance_set_cmd)
5627 (maintenance_show_cmd, set_per_command_cmd)
5628 (show_per_command_cmd, maintenance_check_command): Constify.
5629 * language.c (set_check, show_check): Constify.
5630 * typeprint.c (show_print_type, set_print_type): Constify.
5631 * go32-nat.c (go32_info_dos_command): Constify.
5633 2017-10-11 Tom Tromey <tom@tromey.com>
5635 * breakpoint.c (prepare_re_set_context): Remove.
5636 (breakpoint_re_set_one): Update. Don't use cleanups.
5637 (breakpoint_re_set): Use scoped_restore, std::string, and
5638 scoped_restore_current_language.
5640 2017-10-11 Tom Tromey <tom@tromey.com>
5642 * breakpoint.c (commands_command_1): Use std::string.
5643 (cleanup_executing_breakpoints): Remove.
5644 (bpstat_do_actions_1): Use scoped_restore.
5645 (bpstat_check_watchpoint): Use std::string.
5646 (decode_static_tracepoint_spec): Likewise.
5647 (break_range_command): Likewise.
5648 (watch_command_1): Likewise.
5649 (compare_breakpoints): Change argument types.
5650 (clear_command): Use std::vector.
5651 (cleanup_executing_breakpoints): Remove.
5652 (update_global_location_list): Use unique_xmalloc_ptr.
5653 (strace_command): Remove unused declaration.
5655 2017-10-11 John Baldwin <jhb@FreeBSD.org>
5657 * Makefile.in (ALLDEPFILES): Add arm-fbsd-nat.c.
5658 * NEWS: Mention new FreeBSD/arm native configuration.
5659 * configure.host: Add arm*-*-freebsd*.
5660 * configure.nat: Likewise.
5661 * arm-fbsd-nat.c: New file.
5663 2017-10-11 John Baldwin <jhb@FreeBSD.org>
5665 * Makefile.in (ALL_TARGET_OBS): Add arm-fbsd-tdep.o.
5666 (ALLDEPFILES): Add arm-fbsd-tdep.c.
5667 * NEWS: Mention new FreeBSD/arm target.
5668 * configure.tgt: Add arm*-*-freebsd*.
5669 * arm-fbsd-tdep.c: New file.
5670 * arm-fbsd-tdep.h: New file.
5672 2017-10-11 Maciej W. Rozycki <macro@imgtec.com>
5674 * linux-tdep.c (linux_make_corefile_notes): Remove call to
5675 `gdbarch_elfcore_write_linux_prpsinfo'.
5676 * gdbarch.sh (elfcore_write_linux_prpsinfo): Remove architecture
5678 (elf_internal_linux_prpsinfo): Remove declaration.
5679 * gdbarch.h: Regenerate.
5680 * gdbarch.c: Regenerate.
5682 2017-10-11 Maciej W. Rozycki <macro@imgtec.com>
5684 * ppc-linux-tdep.c (ppc_linux_init_abi): Remove call to
5685 `set_gdbarch_elfcore_write_linux_prpsinfo'.
5687 2017-10-11 Pedro Alves <palves@redhat.com>
5689 * breakpoint.c (reattach_breakpoints): Delete.
5690 * breakpoint.h (reattach_breakpoints): Delete.
5692 2017-10-11 Simon Marchi <simon.marchi@ericsson.com>
5694 * symfile.c (registered_sym_fns): Make struct, not typedef.
5695 (DEF_VEC_O (registered_sym_fns)): Remove.
5696 (symtab_fns): Change type to std::vector.
5697 (add_symtab_fns): Adjust.
5698 (find_sym_fns): Adjust.
5700 2017-10-11 Anton Kolesov <Anton.Kolesov@synopsys.com>
5702 * arc-tdep.c (arc_gdbarch_init): Pass proper cpu value to disassembler.
5703 * arc-tdep.h (arc_arch_is_em): New function.
5704 (arc_arch_is_hs): Likewise.
5706 2017-10-11 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com>
5708 * macrotab.h (macro_lookup_inclusion): Remove unnecessary
5709 parentheses in the declaration.
5710 (macro_lookup_inclusion): Likewise.
5711 (macro_lookup_definition): Likewise.
5712 * p-lang.h (pascal_builtin_types): Likewise.
5713 * tui/tui-data.c (tui_win_list): Likewise.
5714 * tui/tui-data.h (tui_win_list): Likewise.
5715 * utils.h (make_cleanup_free_section_addr_info): Likewise.
5717 2017-10-11 Mark Rages <markrages@gmail.com>
5719 * target-memory.c (block_boundaries): Fix for block address not
5720 aligned on block size.
5722 2017-10-10 Pedro Alves <palves@redhat.com>
5723 Tom Tromey <tom@tromey.com>
5725 * breakpoint.c (struct captured_breakpoint_query_args)
5726 (do_captured_breakpoint_query, gdb_breakpoint_query): Delete.
5727 (print_breakpoint): New.
5728 * breakpoint.h (print_breakpoint): Declare.
5729 * common/common-exceptions.h (enum return_reason): Remove
5730 references to catch_exceptions.
5731 * exceptions.c (catch_exceptions, catch_exceptions_with_msg):
5733 * exceptions.h (catch_exceptions_ftype, catch_exceptions)
5734 (catch_exception_ftype, catch_exceptions_with_msg): Delete.
5736 * gdbthread.h (thread_select): Declare.
5737 * mi/mi-cmd-break.c: Don't include gdb.h.
5738 (breakpoint_notify): Use print_breakpoint.
5739 * mi/mi-cmd-catch.c: Don't include gdb.h.
5740 * mi/mi-interp.c: Don't include gdb.h.
5741 (mi_print_breakpoint_for_event): New.
5742 (mi_breakpoint_created, mi_breakpoint_modified): Use
5743 mi_print_breakpoint_for_event.
5744 * mi/mi-main.c: Don't include gdb.h.
5745 (mi_cmd_thread_select): Parse the global thread ID here. Use
5746 thread_select instead of gdb_thread_select.
5747 (mi_cmd_thread_list_ids): Output "thread-ids" tuple here instead
5748 of using gdb_list_thread_ids.
5749 * remote-fileio.c (do_remote_fileio_request): Change type. Reply
5751 (remote_fileio_request): Use TRY/CATCH instead of
5753 * symfile-mem.c (struct symbol_file_add_from_memory_args)
5754 (symbol_file_add_from_memory_wrapper): Delete.
5755 (add_vsyscall_page): Use TRY/CATCH instead of catch_exceptions.
5756 * thread.c: Don't include gdb.h.
5757 (do_captured_list_thread_ids, gdb_list_thread_ids): Delete.
5758 (thread_alive): Use thread_select.
5759 (do_captured_thread_select): Delete, parts salvaged as ...
5760 (thread_select): ... this new function.
5761 (gdb_thread_select): Delete.
5763 2017-10-10 Pedro Alves <palves@redhat.com>
5764 Tom Tromey <tom@tromey.com>
5766 * breakpoint.c (breakpoint_cond_eval): Change return type to bool
5768 (WP_DELETED, WP_VALUE_CHANGED, WP_VALUE_NOT_CHANGED, WP_IGNORE):
5769 No longer macros. Instead ...
5770 (enum wp_check_result): They're now values of this new
5772 (watchpoint_check): Change return type to wp_check_result and
5773 parameter type to bpstat.
5774 (bpstat_check_watchpoint): Use TRY/CATCH instead of catch_errors.
5775 (bpstat_check_breakpoint_conditions): Use TRY/CATCH instead of
5776 catch_errors. Reverse logic of watchpoint_check call.
5777 (breakpoint_re_set_one): Now returns void and takes a breakpoint
5778 pointer as parameter.
5779 (breakpoint_re_set): Use TRY/CATCH instead of catch_errors.
5780 * common/common-exceptions.c (throw_exception_sjlj): Update
5781 comments to avoid mentioning catch_errors.
5782 * exceptions.c (catch_errors): Delete.
5783 * exceptions.h: Update comments to avoid mentioning catch_errors.
5784 (catch_errors_ftype, catch_errors): Delete.
5785 * infrun.c (normal_stop): Use TRY/CATCH instead of catch_errors.
5786 (hook_stop_stub): Delete.
5787 (restore_selected_frame): Change return type to void, and
5788 parameter type to const frame_id &.
5789 (restore_infcall_control_state): Use TRY/CATCH instead of
5791 * main.c (captured_command_loop): Return void and remove
5792 parameter. Remove references to catch_errors.
5793 (captured_main): Use TRY/CATCH instead of catch_errors.
5794 * objc-lang.c (objc_submethod_helper_data)
5795 (find_objc_msgcall_submethod_helper): Delete.
5796 (find_objc_msgcall_submethod): Use TRY/CATCH instead of
5798 * record-full.c (record_full_message): Return void.
5799 (record_full_message_args, record_full_message_wrapper): Delete.
5800 (record_full_message_wrapper_safe): Return bool and use TRY/CATCH
5801 instead of catch_errors.
5802 * solib-aix.c (solib_aix_open_symbol_file_object): Change
5803 parameter type to int.
5804 * solib-darwin.c (open_symbol_file_object): Ditto.
5805 * solib-dsbt.c (open_symbol_file_object): Ditto.
5806 * solib-frv.c (open_symbol_file_object): Ditto.
5807 * solib-svr4.c (open_symbol_file_object): Ditto.
5808 * solib-target.c (solib_target_open_symbol_file_object): Ditto.
5809 * solib.c (update_solib_list): Use TRY/CATCH instead of
5811 * solist.h (struct target_so_ops) <open_symbol_file_object>:
5813 * symmisc.c (struct print_symbol_args): Remove.
5814 (dump_symtab_1): Use TRY/CATCH instead of catch_errors.
5815 (print_symbol): Change type.
5816 * windows-nat.c (handle_load_dll, handle_unload_dll): Return void
5817 and remove parameters.
5818 (catch_errors): New.
5819 (get_windows_debug_event): Adjust.
5821 2017-10-09 Tom Tromey <tom@tromey.com>
5823 * mi/mi-main.c (free_splay_tree): Remove.
5824 (list_available_thread_groups): Use splay_tree_up.
5825 * common/gdb_splay_tree.h: New file.
5827 2017-10-09 Tom Tromey <tom@tromey.com>
5829 * mi/mi-main.c (do_nothing): Remove.
5830 (list_available_thread_groups): Update.
5832 2017-10-09 Pedro Alves <palves@redhat.com>
5834 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>: Skip
5835 reading registers when switching context.
5837 2017-10-09 John Baldwin <jhb@FreeBSD.org>
5839 * fbsd-nat.c (fbsd_siginfo_size): Use gdbarch_long_bit.
5840 (fbsd_convert_siginfo): Likewise.
5841 * fbsd-tdep.c (fbsd_core_xfer_siginfo): Likewise.
5843 2017-10-09 Simon Marchi <simon.marchi@polymtl.ca>
5845 * configure.ac (try_guile_versions): Remove guile-2.2.
5846 * configure: Regenerate.
5848 2017-10-09 Tom Tromey <tom@tromey.com>
5850 * Makefile.in (COMPILE.post, POSTCOMPILE): Restore $(basename).
5851 (COMPILE.pre): Use $(CXX).
5853 2017-10-09 Pedro Alves <palves@redhat.com>
5855 * cp-support.c (cp_remove_params): Return a gdb::unique_xmalloc_ptr.
5857 (overload_list_add_symbol): Adjust to use gdb::unique_xmalloc_ptr.
5858 * cp-support.h (cp_remove_params): Now returns a
5859 gdb::unique_xmalloc_ptr.
5860 * dwarf2read.c (find_slot_in_mapped_hash): Now returns bool.
5861 Adjust to cp_remove_params returning a gdb::unique_xmalloc_ptr.
5862 * psymtab.c (psymtab_search_name): Adjust to cp_remove_params
5863 returning a gdb::unique_xmalloc_ptr.
5864 (lookup_partial_symbol): Adjust to use gdb::unique_xmalloc_ptr.
5865 * stack.c (find_frame_funname): Adjust to cp_remove_params
5866 returning a gdb::unique_xmalloc_ptr.
5868 2017-10-08 Tom Tromey <tom@tromey.com>
5870 * dwarf2read.c (dwarf2_get_dwz_file): Use
5871 gdb::unique_xmalloc_ptr.
5872 (find_slot_in_mapped_hash): Likewise.
5873 (dwarf2_physname): Likewise.
5874 (create_dwo_unit_in_dwp_v1): Use std::string.
5875 (create_dwo_unit_in_dwp_v2): Likewise.
5876 (lookup_dwo_cutu): Likewise.
5877 (inherit_abstract_dies): Use std::vector.
5878 (read_array_type): Likewise.
5879 (dwarf_decode_macros): Remove unused declaration.
5880 (unsigned_int_compar): Remove.
5881 (dwarf2_build_psymtabs_hard): Use scoped_restore.
5882 (psymtabs_addrmap_cleanup): Remove.
5884 2017-10-08 Tom Tromey <tom@tromey.com>
5886 * frame-unwind.c (frame_unwind_try_unwinder): Update.
5887 * frame.h (frame_cleanup_after_sniffer): Declare.
5888 (frame_prepare_for_sniffer): Return void.
5889 * frame.c (frame_cleanup_after_sniffer): No longer static. Change
5891 (frame_prepare_for_sniffer): Return void.
5893 2017-10-08 Tom Tromey <tom@tromey.com>
5895 * utils.h (make_cleanup_value_free): Remove.
5896 * utils.c (do_value_free, struct cleanup): Remove.
5897 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>:
5899 * value.h (struct value_deleter): New.
5900 (gdb_value_up): New typedef.
5902 2017-10-08 Tom Tromey <tom@tromey.com>
5904 * symtab.c (free_search_symbols, do_free_search_symbols_cleanup)
5905 (make_cleanup_free_search_symbols): Remove.
5906 (search_symbols): Return std::vector.
5907 (symbol_search::compare_search_syms): Now member of
5908 symbol_search. Change arguments.
5909 (sort_search_symbols_remove_dups): Change arguments. Rewrite.
5910 (symtab_symbol_info, rbreak_command): Update.
5911 * symtab.h (struct symbol_search) <next>: Remove.
5913 (symbol_search::operator<): New function.
5914 (symbol_search::operator==): New function.
5915 (search_symbols): Remove std::vector.
5916 (free_search_symbols, make_cleanup_free_search_symbols): Remove.
5917 (symbol_search::compare_search_syms): Declare.
5919 2017-10-06 Yao Qi <yao.qi@linaro.org>
5921 * Makefile.in (ALL_64_TARGET_OBS): Replace aarch64-insn.o with
5922 arch/aarch64-insn.o.
5924 * configure.tgt: Replace aarch64-insn.o with arch/aarch64-insn.o.
5926 2017-10-06 Yao Qi <yao.qi@linaro.org>
5928 * Makefile.in (ALL_TARGET_OBS): Replace arm.o, arm-get-next-pcs.o,
5929 and arm-linux.o with arch/arm.o, arch/arm-get-next-pcs.o and
5930 arch/arm-linux.o respectively.
5931 * configure.tgt: Likewise.
5933 2017-10-06 Yao Qi <yao.qi@linaro.org>
5935 * Makefile.in (ALL_TARGET_OBS): Rename i386.o to arch/i386.o.
5936 * configure.tgt (i386_tobjs): Replace i386.o with arch/i386.o.
5938 2017-10-06 Pedro Alves <palves@redhat.com>
5940 * windows-nat.c: Include <algorithm>.
5942 2017-10-06 Yao Qi <yao.qi@linaro.org>
5944 * configure.tgt (i386_tobjs): New variable.
5945 (amd64_tobjs): New variable.
5946 Set $cpu_obs and $os_obs.
5948 2017-10-06 Yao Qi <yao.qi@linaro.org>
5950 * Makefile.in (CONFIG_SRC_SUBDIR): New.
5951 (ALL_64_TARGET_OBS): Replace amd64.o with arch/amd64.o.
5952 (clean): Remove object files and dependency files.
5953 (distclean): Remove the directory.
5954 * configure.ac: Invoke AC_CONFIG_COMMANDS.
5955 * configure: Re-generated.
5956 * configure.tgt: Replace amd64.o with arch/amd64.o.
5958 2017-10-05 Jose E. Marchesi <jose.marchesi@oracle.com>
5961 * arm-tdep.c (arm_decode_misc_memhint_neon): Fix decoding of CPS
5964 2017-10-05 Pedro Alves <palves@redhat.com>
5966 * linux-nat.c (linux_child_follow_fork): When following the parent
5967 and detaching the child, consult the parent thread's architecture
5968 instead of the child's.
5970 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
5972 * ax.h: Do not include "doublest.h".
5973 (union agent_val): Remove.
5975 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
5977 * dfp.h (MAX_DECIMAL_STRING): Move to dfp.c.
5978 (decimal_to_string): Return std::string object.
5979 (decimal_from_string): Accept std::string object. Return bool.
5980 (decimal_from_integral, decimal_from_doublest): Remove.
5981 (decimal_from_longest): Add prototype.
5982 (decimal_from_ulongest): Likewise.
5983 (decimal_to_longest): Likewise.
5984 (decimal_from_doublest): Likewise.
5985 * dfp.c: Do not include "gdbtypes.h" or "value.h".
5986 (MAX_DECIMAL_STRING): Move here.
5987 (decimal_to_string): Return std::string object.
5988 (decimal_from_string): Accept std::string object. Return bool.
5989 (decimal_from_integral): Remove, replace by ...
5990 (decimal_from_longest, decimal_from_ulongest): ... these new functions.
5991 (decimal_to_longest): New function.
5992 (decimal_from_floating): Remove, replace by ...
5993 (decimal_from_doublest): ... this new function.
5994 (decimal_to_doublest): Update to new decimal_to_string interface.
5996 * value.c (unpack_long): Use decimal_to_longest.
5997 * valops.c (value_cast): Use decimal_from_doublest instead of
5998 decimal_from_floating. Use decimal_from_[u]longest isntead of
5999 decimal_from_integral.
6000 * valarith.c (value_args_as_decimal): Likewise.
6001 * valprint.c (print_decimal_floating): Update to new
6002 decimal_to_string interface.
6003 * printcmd.c (printf_decfloat): Likewise.
6004 * c-exp.y (parse_number): Update to new decimal_from_string interface.
6006 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
6008 * doublest.h: Do not include "floatformat.h". Remove stale comments.
6009 * gdbtypes.c: Include "floatformat.h".
6010 * value.c: Likewise.
6011 * m68k-tdep.c: Likewise.
6013 * findvar.c: Do not include "floatformat.h".
6014 * amd64-darwin-tdep.c: Likewise.
6015 * arm-linux-tdep.c: Likewise.
6016 * i386-darwin-tdep.c: Likewise.
6017 * i387-tdep.c: Likewise.
6018 * m68k-linux-tdep.c: Likewise.
6019 * mep-tdep.c: Likewise.
6020 * mips-tdep.c: Likewise.
6021 * nios2-tdep.c: Likewise.
6022 * s390-linux-tdep.c: Likewise.
6023 * sparc-obsd-tdep.c: Likewise.
6024 * sparc-tdep.c: Likewise.
6025 * sparc64-tdep.c: Likewise.
6026 * spu-tdep.c: Likewise.
6027 * tic6x-tdep.c: Likewise.
6028 * tilegx-tdep.c: Likewise.
6029 * vax-tdep.c: Likewise.
6030 * xstormy16-tdep.c: Likewise.
6031 * xtensa-tdep.c: Likewise.
6033 * top.c: Do not include "doublest.h".
6034 * aarch64-tdep.c: Likewise.
6035 * alpha-tdep.c: Likewise.
6036 * arm-linux-tdep.c: Likewise.
6037 * m68k-linux-tdep.c: Likewise.
6038 * tilegx-tdep.c: Likewise.
6039 * xstormy16-tdep.c: Likewise.
6041 2017-10-05 John Baldwin <jhb@FreeBSD.org>
6043 * mips-fbsd-tdep.c (MIPS_INST_ADDIU_A0_SP_N32): Define.
6044 (mipsn32_fbsd_sigframe): Define.
6045 (mips_fbsd_init_abi): Install mipsn32_fbsd_sigframe unwinder
6046 for FreeBSD/mipsn32.
6048 2017-10-05 John Baldwin <jhb@FreeBSD.org>
6050 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_EHDRFLAGS and
6053 2017-10-05 Tristan Gingold <tgingold@free.fr>
6055 * MAINTAINERS (Misc): Update my email address.
6057 2017-10-04 Pedro Alves <palves@redhat.com>
6059 * remote.c (get_remote_arch_state): New 'gdbarch' parameter. Use
6060 it instead of target_gdbarch.
6061 (get_remote_state, get_remote_packet_size): Adjust
6062 get_remote_arch_state calls, passing down target_gdbarch
6064 (packet_reg_from_regnum, packet_reg_from_pnum): New parameter
6065 'gdbarch' and use it instead of target_gdbarch.
6066 (get_memory_packet_size): Adjust get_remote_arch_state calls,
6067 passing down target_gdbarch explicitly.
6068 (struct stop_reply) <arch>: New field.
6069 (remote_parse_stop_reply): Use the stopped thread's architecture,
6070 not the current inferior's. Save the architecture in the
6072 (process_stop_reply): Use the stop reply's architecture.
6073 (process_g_packet, remote_fetch_registers)
6074 (remote_prepare_to_store, store_registers_using_G)
6075 (remote_store_registers): Adjust get_remote_arch_state calls,
6076 using the regcache's architecture.
6077 (remote_get_trace_status): Adjust get_remote_arch_state calls,
6078 passing down target_gdbarch explicitly.
6079 * spu-multiarch.c (spu_thread_architecture): Defer to the target
6080 beneath instead of calling target_gdbarch.
6081 * target.c (default_thread_architecture): Use the specified
6082 inferior's architecture, instead of the current inferior's
6083 architecture (via target_gdbarch).
6085 2017-10-04 Pedro Alves <palves@redhat.com>
6087 * regcache.c (get_thread_arch_regcache): Remove null_ptid special
6089 (regcache_print): Handle !target_has_registers here instead.
6091 2017-10-04 Pedro Alves <palves@redhat.com>
6093 * frame.c (create_test_frame): Delete.
6094 * frame.h (create_test_frame): Delete.
6095 * gdbarch-selftests.c: Include gdbthread.h and target.h.
6096 (class regcache_test): Delete.
6097 (test_target_has_registers, test_target_has_stack)
6098 (test_target_has_memory, test_target_prepare_to_store)
6099 (test_target_store_registers): New functions.
6100 (test_target_ops): New class.
6101 (register_to_value_test): Error out if there's already a
6102 process_stratum (or higher) target pushed. Create a fuller mock
6103 environment, with mock target_ops, inferior, address space, thread
6105 * progspace.c (struct address_space): Move to ...
6106 * progspace.h (struct address_space): ... here.
6107 * regcache.h (regcache::~regcache, regcache::raw_write)
6108 [GDB_SELF_TEST]: No longer virtual.
6110 2017-10-04 Simon Marchi <simon.marchi@ericsson.com>
6112 * mi/mi-main.c (list_available_thread_groups): Reverse filter logic.
6114 2017-10-04 Pedro Alves <palves@redhat.com>
6116 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Move code
6117 out of 'between TRY and CATCH'.
6119 2017-10-04 Pedro Alves <palves@redhat.com>
6121 * cli/cli-cmds.c (complete_command): Add missing END_CATCH.
6122 * common/common-exceptions.h (TRY): Open an outermost scope.
6123 Expand intro comment.
6125 (END_CATCH): Close the outermost scope.
6126 * completer.c (complete_line_internal): Add missing END_CATCH.
6128 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6130 * NEWS (Changes since GDB 8.0): Add entry about new
6131 'set-cwd-on-gdbserver' feature.
6132 (New remote packets): Add entry for QSetWorkingDir.
6133 * common/common-inferior.h (set_inferior_cwd): New prototype.
6134 * infcmd.c (set_inferior_cwd): Remove "static".
6135 (show_cwd_command): Expand text to include remote debugging.
6136 * remote.c: Add PACKET_QSetWorkingDir.
6137 (remote_protocol_features) <QSetWorkingDir>: New entry for
6138 PACKET_QSetWorkingDir.
6139 (extended_remote_set_inferior_cwd): New function.
6140 (extended_remote_create_inferior): Call
6141 "extended_remote_set_inferior_cwd".
6142 (_initialize_remote): Call "add_packet_config_cmd" for
6145 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6147 * NEWS (New commands): Mention "set/show cwd".
6148 * cli/cli-cmds.c (_initialize_cli_cmds): Mention "set cwd" on
6149 "cd" command's help text.
6150 * common/common-inferior.h (get_inferior_cwd): New prototype.
6151 * infcmd.c (inferior_cwd_scratch): New global variable.
6152 (set_inferior_cwd): New function.
6153 (get_inferior_cwd): Likewise.
6154 (set_cwd_command): Likewise.
6155 (show_cwd_command): Likewise.
6156 (_initialize_infcmd): Add "set/show cwd" commands.
6157 * inferior.h (class inferior) <cwd>: New field.
6158 * nat/fork-inferior.c: Include "gdb_tilde_expand.h".
6159 (fork_inferior): Change inferior's cwd before its execution.
6160 * windows-nat.c (windows_create_inferior): Pass inferior's cwd
6163 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6165 * Makefile.in (SFILES): Add gdb_tilde_expand.c.
6166 (HFILES_NO_SRCDIR): Add gdb_tilde_expand.h.
6167 (COMMON_OBS): Add gdb_tilde_expand.o.
6168 * common/gdb_tilde_expand.c: New file.
6169 * common/gdb_tilde_expand.h: Likewise.
6171 2017-10-03 Maciej W. Rozycki <macro@imgtec.com>
6173 * gdbarch.sh (objfile): Remove duplicate declaration.
6174 * gdbarch.h: Regenerate.
6176 2017-10-03 Tom Tromey <tom@tromey.com>
6178 * utils.c (internal_vproblem): Use string_vprintf.
6180 2017-10-03 Tom Tromey <tom@tromey.com>
6182 * printcmd.c (info_symbol_command): Use std::string.
6184 2017-10-03 Tom Tromey <tom@tromey.com>
6186 * top.c (gdb_safe_append_history): Use std::string.
6188 2017-10-03 Tom Tromey <tom@tromey.com>
6190 * event-top.c (stdin_event_handler): Update.
6191 * main.c (captured_main_1): Update.
6192 * top.h (make_delete_ui_cleanup): Remove.
6193 (struct ui): Add constructor and destructor.
6194 (new_ui, delete_ui): Remove.
6195 * top.c (make_delete_ui_cleanup): Remove.
6196 (new_ui_command): Use std::unique_ptr.
6197 (delete_ui_cleanup): Remove.
6198 (ui::ui): Rename from new_ui. Update.
6200 (ui::~ui): Rename from delete_ui. Update.
6202 2017-10-03 Tom Tromey <tom@tromey.com>
6204 * symfile.c (load_progress): Use gdb::byte_vector.
6206 2017-10-03 Tom Tromey <tom@tromey.com>
6208 * mi/mi-main.c (mi_cmd_trace_frame_collected): Remove unused
6210 * printcmd.c (x_command): Remove unused declaration.
6211 * symfile.c (symbol_file_command): Remove unused declaration.
6213 2017-10-03 Tom Tromey <tom@tromey.com>
6215 * utils.c (internal_vproblem): Use std::string.
6216 (defaulted_query): Likewise.
6218 2017-10-03 Tom Tromey <tom@tromey.com>
6220 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Update.
6221 * top.c (execute_command_to_string): Update.
6222 * utils.c (make_cleanup_restore_page_info): Remove.
6223 (do_restore_page_info_cleanup): Remove.
6224 (set_batch_flag_and_restore_page_info):
6226 (make_cleanup_restore_page_info): Remove.
6227 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
6228 (~set_batch_flag_and_restore_page_info): New
6229 (make_cleanup_restore_uinteger): Remove.
6230 (make_cleanup_restore_integer): Remove.
6231 (struct restore_integer_closure): Remove.
6232 (restore_integer): Remove.
6233 * utils.h (struct set_batch_flag_and_restore_page_info): New
6235 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
6236 (make_cleanup_restore_page_info): Remove.
6237 (make_cleanup_restore_uinteger) Remove.
6238 (make_cleanup_restore_integer) Remove.
6240 2017-10-03 Tom Tromey <tom@tromey.com>
6242 * record-full.h (record_full_gdb_operation_disable_set): Return
6243 scoped_restore_tmpl<int>.
6244 * infrun.c (adjust_pc_after_break): Update.
6245 (handle_signal_stop): Update.
6246 * record-full.c (record_full_gdb_operation_disable_set): Return
6247 scoped_restore_tmpl<int>.
6248 (record_full_wait_1, record_full_insert_breakpoint)
6249 (record_full_remove_breakpoint, record_full_save)
6250 (record_full_goto_insn): Update.
6252 2017-10-02 Tom Tromey <tom@tromey.com>
6255 * rust-lang.c (rust_val_print_str): New function.
6256 (val_print_struct): Call it.
6257 (rust_subscript): Preserve name of slice type.
6259 2017-10-02 Tom Tromey <tom@tromey.com>
6261 * rust-lang.c (rust_subscript): Handle slices in
6262 EVAL_AVOID_SIDE_EFFECTS case.
6264 2017-10-02 Tom Tromey <tom@tromey.com>
6266 * rust-lang.c (rust_slice_type_p): Recognize &str as a slice type.
6268 2017-10-02 Tom Tromey <tom@tromey.com>
6270 * rust-lang.h (rust_slice_type): Add "extern".
6272 2017-10-02 Tom Tromey <tom@tromey.com>
6273 Pedro Alves <palves@redhat.com>
6275 * ada-lang.h (ada_exc_info::operator<): Make const.
6276 (ada_exc_info::operator==): Make const.
6277 * ada-lang.c (ada_exc_info::operator<, ada_exc_info::operator==):
6280 2017-09-29 Tom Tromey <tom@tromey.com>
6282 * target.c (read_whatever_is_readable): Change type of "result".
6284 (free_memory_read_result_vector): Remove.
6285 (read_memory_robust): Change return type. Update.
6286 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update. Use
6287 bin2hex, std::string.
6288 * target.h (memory_read_result_s): Remove typedef.
6289 (free_memory_read_result_vector): Remove.
6290 (read_memory_robust): Return std::vector.
6292 2017-09-29 Tom Tromey <tom@tromey.com>
6294 * mi/mi-main.c (captured_mi_execute_command): Use scope_restore.
6296 2017-09-29 Tom Tromey <tom@tromey.com>
6298 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Update.
6299 * ada-lang.h (struct ada_exc_info): Remove typedef. Declare
6300 operator< and operator==.
6301 (ada_exceptions_list): Return a std::vector.
6302 * ada-lang.c (ada_exc_info::operator<): Rename from
6303 compare_ada_exception_info.
6304 (ada_exc_info::operator==): New.
6305 (sort_remove_dups_ada_exceptions_list): Change type of
6307 (ada_add_standard_exceptions, ada_add_exceptions_from_frame)
6308 (ada_add_global_exceptions): Likewise.
6309 (ada_exceptions_list_1): Return a std::vector.
6310 (ada_exceptions_list): Likewise.
6312 2017-09-29 Tom Tromey <tom@tromey.com>
6314 * mi/mi-main.c (struct print_one_inferior_data) <inferiors>: Now a
6316 (print_one_inferior): Update.
6317 (free_vector_of_ints): Remove.
6318 (list_available_thread_groups): Change "ids" to std::set.
6319 (mi_cmd_list_thread_groups): Update.
6320 (struct collect_cores_data) <core>: Now a std::set.
6321 (collect_cores): Update.
6323 (print_one_inferior): Update.
6325 2017-09-29 Tom Tromey <tom@tromey.com>
6327 * mi/mi-main.c (mi_execute_cli_command): Use std::string.
6328 (mi_execute_async_cli_command): Likewise.
6329 (mi_cmd_trace_frame_collected): Use field_fmt.
6331 2017-09-29 Tom Tromey <tom@tromey.com>
6333 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Use
6336 2017-09-29 Tom Tromey <tom@tromey.com>
6338 * mi/mi-parse.c (mi_parse): Remove unused declaration.
6340 2017-09-29 Tom Tromey <tom@tromey.com>
6342 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Don't copy "oarg".
6344 2017-09-29 Tom Tromey <tom@tromey.com>
6346 * varobj.h (varobj_gen_name): Return std::string.
6347 * varobj.c (varobj_gen_name): Return std::string.
6348 * mi/mi-cmd-var.c (mi_cmd_var_create): Use std::string.
6349 (mi_cmd_var_delete): Don't copy "name".
6351 2017-09-29 Tom Tromey <tom@tromey.com>
6353 * mi/mi-cmd-break.c (mi_argv_to_format): Return std::string.
6354 (mi_cmd_break_insert_1): Update.
6356 2017-09-29 Tom Tromey <tom@tromey.com>
6358 * target.h (make_scoped_defer_target_commit_resume): Update.
6359 * target.c (make_scoped_defer_target_commit_resume): Rename from
6360 make_cleanup_defer_target_commit_resume. Return a
6362 * infrun.c (proceed): Use make_scoped_defer_target_commit_resume.
6364 2017-09-29 Tom Tromey <tom@tromey.com>
6366 * main.c (captured_main_1): Remove unused declaration.
6367 * spu-multiarch.c (parse_spufs_run): Remove unused declaration.
6369 2017-09-29 Tom Tromey <tom@tromey.com>
6371 * symtab.c (search_symbols): Remove unused outer cleanup.
6372 (make_source_files_completion_list): Remove unused declaration.
6374 2017-09-29 Tom Tromey <tom@tromey.com>
6376 * mt-tdep.c (mt_push_dummy_call): Use gdb::byte_vector.
6378 2017-09-29 Tom Tromey <tom@tromey.com>
6380 * xstormy16-tdep.c (xstormy16_push_dummy_call): Use
6383 2017-09-29 Tom Tromey <tom@tromey.com>
6385 * complaints.c (vcomplaint): Use std::string.
6387 2017-09-29 Tom Tromey <tom@tromey.com>
6389 * tracepoint.c (trace_variable_command): Use std::string.
6390 (encode_actions_1): Remove unused declarations.
6391 (create_tsv_from_upload): Use std::string.
6393 2017-09-29 Tom Tromey <tom@tromey.com>
6395 * cp-support.c (gdb_demangle): Use std::string.
6397 2017-09-29 Tom Tromey <tom@tromey.com>
6399 * stack.c (parse_frame_specification): Use std::string
6400 (info_frame_command): Use gdb::unique_xmalloc_ptr.
6402 2017-09-29 Tom Tromey <tom@tromey.com>
6404 * tilegx-tdep.c (tilegx_push_dummy_call): Use gdb::byte_vector.
6406 2017-09-29 Tom Tromey <tom@tromey.com>
6408 * utils.c (vfprintf_maybe_filtered): Use std::string.
6409 (vfprintf_unfiltered): Likewise.
6411 2017-09-29 Tom Tromey <tom@tromey.com>
6413 * event-top.c (top_level_prompt): Return std::string.
6414 (display_gdb_prompt): Update.
6416 2017-09-29 Tom Tromey <tom@tromey.com>
6418 * unittests/common-utils-selftests.c (format): New function.
6419 (string_vprintf_tests): New function.
6420 (_initialize_common_utils_selftests): Register new tests.
6421 * common/common-utils.c (string_vprintf): New function.
6422 * common/common-utils.h (string_vprintf): Declare.
6424 2017-09-29 Pedro Alves <palves@redhat.com>
6426 * common/rsp-low.c (unpack_varlen_hex): Constify.
6427 * common/rsp-low.h (unpack_varlen_hex): Constify.
6428 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
6430 * remote.c (remote_set_permissions, read_ptid)
6431 (remote_current_thread, remote_get_threads_with_qthreadinfo)
6432 (remote_static_tracepoint_marker_at)
6433 (remote_static_tracepoint_markers_by_strid)
6434 (stop_reply_extract_thread, remote_parse_stop_reply): Constify.
6435 * tracepoint.c (parse_trace_status, parse_tracepoint_status)
6436 (parse_tracepoint_definition, parse_tsv_definition)
6437 (parse_static_tracepoint_marker_definition): Constify.
6438 * tracepoint.h (parse_static_tracepoint_marker_definition)
6439 (parse_trace_status, parse_tracepoint_status)
6440 (parse_tracepoint_definition, parse_tsv_definition): Constify.
6442 2017-09-29 Pedro Alves <palves@redhat.com>
6444 * remote.c (target_buf, target_buf_size): Delete.
6445 (remote_get_noisy_reply): Remove buf_p and sizeof_buf parameters.
6446 Use the connection's packet buffer instead.
6447 All callers adjusted.
6448 (_initialize_remote): Remove references to target_buf and
6451 2017-09-28 Pedro Alves <palves@redhat.com>
6453 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
6454 unittests/common-utils-selftests.c.
6455 (SUBDIR_UNITTESTS_OBS): Add common-utils-selftests.o.
6456 (COMMON_OBS): Remove utils-selftests.o.
6457 * utils-selftests.c: Move to ...
6458 * unittests/common-utils-selftests.c: ... here and rename self
6459 test to "string_printf".
6461 2017-09-28 Alexander Shaposhnikov <alexander.v.shaposhnikov@gmail.com> (tiny patch)
6463 * dwarf2read.c (open_and_init_dwp_file): Protect against dwp_file
6464 having NULL cus or tus.
6466 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
6468 * arm-tdep.c: (convert_from_extended): Remove.
6469 (convert_to_extended): Likewise.
6470 (arm_extract_return_value): Use convert_typed_floating.
6471 (arm_store_return_value): Likewise.
6473 * sh-tdep.h (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
6474 * sh-tdep.c: Do not include "floatformat.h".
6475 (sh_littlebyte_bigword_type): New function.
6476 (sh_register_convert_to_virtual): Use convert_typed_floating.
6477 (sh_register_convert_to_raw): Likewise.
6478 * sh64-tdep.c: (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
6479 (sh64_littlebyte_bigword_type): New function.
6480 (sh64_extract_return_value): Use convert_typed_floating.
6481 (sh64_register_convert_to_virtual): Likewise.
6482 (sh64_register_convert_to_raw): Likewise.
6484 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
6486 * doublest.h (floatformat_from_type): Move to gdbtypes.h.
6487 * doublest.c (floatformat_from_type): Move to gdbtypes.c.
6489 * gdbtypes.h (union type_specific): Make field floatformat hold
6490 just a single struct floatformat, not an array.
6491 (floatformat_from_type): Move here.
6492 * gdbtypes.c (floatformat_from_type): Move here. Update to
6493 changed TYPE_FLOATFORMAT definition.
6494 (verify_floatformat): Update to changed TYPE_FLOATFORMAT.
6495 (recursive_dump_type): Likewise.
6496 (init_float_type): Install correct floatformat for byte order.
6497 (arch_float_type): Likewise.
6499 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
6501 * gdbtypes.c (init_type): Change incoming argument from
6502 length-in-bytes to length-in-bits. Assert length is a
6503 multiple of TARGET_CHAR_BITS.
6504 (arch_type, arch_flags_type): Likewise.
6505 (init_integer_type): Update call to init_type.
6506 (init_character_type): Likewise.
6507 (init_boolean_type): Likewise.
6508 (init_float_type): Likewise.
6509 (init_decfloat_type): Likewise.
6510 (init_complex_type): Likewise.
6511 (init_pointer_type): Likewise.
6512 (objfile_type): Likewise.
6513 (arch_integer_type): Update call to arch_type.
6514 (arch_character_type): Likewise.
6515 (arch_boolean_type): Likewise.
6516 (arch_float_type): Likewise.
6517 (arch_decfloat_type): Likewise.
6518 (arch_complex_type): Likewise.
6519 (arch_pointer_type): Likewise.
6520 (gdbtypes_post_init): Likewise.
6522 * dwarf2read.c (dwarf2_init_float_type): Update call to init_type.
6523 (read_base_type): Likewise.
6524 * mdebugread.c (basic_type): Likewise.
6525 * stabsread.c (dbx_init_float_type): Likewise.
6526 (rs6000_builtin_type): Likewise.
6527 (read_range_type): Likewise. Also, fix call to init_integer_type
6528 with erroneous length argument.
6530 * ada-lang.c (ada_language_arch_info): Update call to arch_type.
6531 * d-lang.c (build_d_types): Likewise.
6532 * f-lang.c (build_fortran_types): Likewise.
6533 * go-lang.c (build_go_types): Likewise.
6534 * opencl-lang.c (build_opencl_types): Likewise.
6535 * jit.c (finalize_symtab): Likewise.
6536 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
6537 (build_std_type_info_type): Likewise.
6538 * target-descriptions.c (tdesc_gdb_type): Likewise. Also,
6539 update call to arch_flags_type.
6541 * linux-tdep.c (linux_get_siginfo_type_with_fields): Update call to
6543 * fbsd-tdep.c (fbsd_get_siginfo_type): Likewise.
6544 * windows-tdep.c (windows_get_tlb_type): Likewise.
6546 * avr-tdep.c (avr_gdbarch_init): Update call to arch_type.
6547 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
6548 * m32c-tdep.c (make_types): Likewise.
6549 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
6550 (rl78_psw_type): Update call to arch_flags_type.
6551 * m68k-tdep.c (m68k_ps_type): Update call to arch_flags_type.
6552 * rx-tdep.c (rx_psw_type): Likewise.
6553 (rx_fpsw_type): Likewise.
6554 * sparc-tdep.c (sparc_psr_type): Likewise.
6555 (sparc_fsr_type): Likewise.
6556 * sparc64-tdep.c (sparc64_pstate_type): Likewise.
6557 (sparc64_ccr_type): Likewise.
6558 (sparc64_fsr_type): Likewise.
6559 (sparc64_fprs_type): Likewise.
6561 2017-09-27 Tom Tromey <tom@tromey.com>
6563 * findcmd.c (find_command): Constify.
6565 2017-09-27 Tom Tromey <tom@tromey.com>
6567 * ada-tasks.c (task_command_1, task_command): Constify.
6569 2017-09-27 Tom Tromey <tom@tromey.com>
6571 * symtab.c (maintenance_print_symbol_cache)
6572 (maintenance_flush_symbol_cache)
6573 (maintenance_print_symbol_cache_statistics): Constify.
6575 2017-09-27 Tom Tromey <tom@tromey.com>
6577 * inferior.c (detach_inferior_command, kill_inferior_command)
6578 (inferior_command): Constify.
6580 2017-09-27 Tom Tromey <tom@tromey.com>
6582 * regcache.c (regcache_print, maintenance_print_registers)
6583 (maintenance_print_raw_registers)
6584 (maintenance_print_cooked_registers)
6585 (maintenance_print_register_groups)
6586 (maintenance_print_remote_registers): Constify.
6588 2017-09-27 Tom Tromey <tom@tromey.com>
6590 * printcmd.c (map_display_numbers, undisplay_command)
6591 (enable_disable_display_command, enable_display_command)
6592 (disable_display_command): Constify.
6594 2017-09-27 Tom Tromey <tom@tromey.com>
6596 * breakpoint.h (delete_command): Don't declare.
6597 * breakpoint.c (delete_command, enable_once_command)
6598 (enable_count_command, enable_delete_command, breakpoint_1)
6599 (maintenance_info_breakpoints, stopin_command, stopat_command)
6600 (delete_command, delete_trace_command, save_breakpoints)
6601 (save_breakpoints_command, save_tracepoints_command): Constify.
6603 2017-09-27 Tom Tromey <tom@tromey.com>
6605 * macrocmd.c (macro_expand_command, macro_expand_once_command)
6606 (skip_ws, extract_identifier, macro_define_command)
6607 (macro_undef_command, macro_list_command): Constify.
6609 2017-09-27 Tom Tromey <tom@tromey.com>
6611 * infcmd.c (environment_info, set_environment_command)
6612 (unset_environment_command, path_info, info_proc_cmd_1)
6613 (info_proc_cmd_mappings, info_proc_cmd_stat)
6614 (info_proc_cmd_status, info_proc_cmd_cwd, info_proc_cmd_cmdline)
6615 (info_proc_cmd_exe, info_proc_cmd_all): Constify.
6617 2017-09-27 Tom Tromey <tom@tromey.com>
6619 * i386-tdep.c (i386_mpx_info_bounds, i386_mpx_set_bounds):
6622 2017-09-27 Tom Tromey <tom@tromey.com>
6624 * symfile-mem.c (add_symbol_file_from_memory_command): Constify.
6626 2017-09-27 Tom Tromey <tom@tromey.com>
6628 * demangle.c (demangle_command): Constify.
6630 2017-09-27 Tom Tromey <tom@tromey.com>
6632 * progspace.c (maintenance_info_program_spaces_command):
6635 2017-09-27 Tom Tromey <tom@tromey.com>
6637 * compile/compile.c (check_raw_argument, compile_file_command)
6638 (compile_code_command, compile_print_command): Constify.
6640 2017-09-27 Tom Tromey <tom@tromey.com>
6642 * reggroups.c (maintenance_print_reggroups): Constify.
6644 2017-09-27 Tom Tromey <tom@tromey.com>
6646 * dwarf2read.c (save_gdb_index_command): Constify.
6648 2017-09-27 Tom Tromey <tom@tromey.com>
6650 * stap-probe.c (info_probes_stap_command): Constify.
6652 2017-09-27 Tom Tromey <tom@tromey.com>
6654 * fork-child.c (unset_exec_wrapper_command): Constify.
6656 2017-09-27 Tom Tromey <tom@tromey.com>
6658 * btrace.c (get_uint, get_context_size, no_chunk)
6659 (maint_btrace_packet_history_cmd)
6660 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
6661 (maint_info_btrace_cmd): Constify.
6663 2017-09-27 Tom Tromey <tom@tromey.com>
6665 * reverse.c (delete_bookmark_command): Constify.
6667 2017-09-27 Tom Tromey <tom@tromey.com>
6669 * remote.c (set_memory_packet_size)
6670 (set_memory_write_packet_size, show_memory_write_packet_size)
6671 (set_memory_read_packet_size, show_memory_read_packet_size)
6672 (compare_sections_command, packet_command, remote_put_command)
6673 (remote_get_command, remote_delete_command): Constify.
6675 2017-09-27 Tom Tromey <tom@tromey.com>
6677 * mips-tdep.c (show_mipsfpu_command, set_mipsfpu_single_command)
6678 (set_mipsfpu_double_command, set_mipsfpu_none_command)
6679 (set_mipsfpu_auto_command): Constify.
6681 2017-09-27 Tom Tromey <tom@tromey.com>
6683 * cli/cli-cmds.h (cd_command): Constify.
6684 * cli/cli-cmds.c (cd_command): Constify.
6686 2017-09-27 Tom Tromey <tom@tromey.com>
6688 * thread.c (thread_name_command, thread_find_command): Constify.
6690 2017-09-27 Tom Tromey <tom@tromey.com>
6692 * probe.c (enable_probes_command, disable_probes_command):
6695 2017-09-27 Tom Tromey <tom@tromey.com>
6697 * symfile.c (symbol_file_command): Constify.
6698 * gdbcore.h (deprecated_file_changed_hook): Constify.
6699 * exec.c (deprecated_file_changed_hook, exec_file_command)
6700 (file_command): Constify.
6701 * defs.h (symbol_file_command): Constify.
6703 2017-09-27 Tom Tromey <tom@tromey.com>
6705 * remote-fileio.c (set_system_call_allowed)
6706 (show_system_call_allowed): Constify.
6708 2017-09-27 Tom Tromey <tom@tromey.com>
6710 * tracepoint.c (delete_trace_variable_command)
6711 (tfind_end_command, tfind_start_command, tfind_pc_command)
6712 (tfind_tracepoint_command, tfind_line_command)
6713 (tfind_range_command, tfind_outside_command): Constify.
6715 2017-09-27 Tom Tromey <tom@tromey.com>
6717 * ax-gdb.c (maint_agent_printf_command, agent_command)
6718 (agent_eval_command): Constify.
6720 2017-09-27 Tom Tromey <tom@tromey.com>
6722 * tracepoint.c (info_scope_command): Constify.
6723 * python/python.c (gdbpy_decode_line): Constify.
6724 * python/py-breakpoint.c (bppy_init): Constify.
6725 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Constify.
6726 * location.h: (new_linespec_location)
6727 (string_to_event_location_basic, string_to_event_location):
6729 * location.c (new_linespec_location)
6730 (string_to_event_location_basic, string_to_event_location):
6732 * linespec.h (decode_line_with_current_source)
6733 (decode_line_with_last_displayed, linespec_lex_to_end): Constify.
6734 * linespec.c (linespec_lex_to_end)
6735 (decode_line_with_current_source)
6736 (decode_line_with_last_displayed): Constify.
6737 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x):
6739 * cli/cli-cmds.c (edit_command, list_command): Constify.
6740 * breakpoint.h (until_break_command, watch_command_wrapper)
6741 (awatch_command_wrapper, rwatch_command_wrapper)
6742 (init_ada_exception_breakpoint): Constify.
6743 * breakpoint.c (break_command_1, dprintf_command)
6744 (break_range_command, watch_command_wrapper)
6745 (rwatch_command_wrapper, awatch_command_wrapper)
6746 (until_break_command, init_ada_exception_breakpoint)
6747 (strace_marker_create_sals_from_location, trace_command)
6748 (ftrace_command, strace_command, struct tracepoint): Constify.
6749 * ax-gdb.c (agent_command_1): Constify.
6750 * ada-lang.c (ada_exception_sal): Constify.
6752 2017-09-27 Tom Tromey <tom@tromey.com>
6754 * record.c (cmd_record_delete, cmd_record_stop, cmd_record_save)
6755 (cmd_record_goto_begin, cmd_record_goto_end, get_insn_number)
6756 (get_context_size, no_chunk, get_insn_history_modifiers)
6757 (cmd_record_insn_history, get_call_history_modifiers)
6758 (cmd_record_call_history): Constify.
6760 2017-09-27 Tom Tromey <tom@tromey.com>
6762 * source.c (show_substitute_path_command)
6763 (unset_substitute_path_command, set_substitute_path_command):
6766 2017-09-27 Tom Tromey <tom@tromey.com>
6768 * typeprint.c (maintenance_print_type): Constify.
6769 * maint.c (maintenance_dump_me, maintenance_demangle)
6770 (maintenance_time_display, maintenance_info_sections)
6771 (maintenance_print_statistics, maintenance_deprecate)
6772 (maintenance_undeprecate): Constify.
6773 (maintenance_do_deprecate): Constify. Use std::string.
6774 (maintenance_selftest): Constify.
6775 * gdbtypes.h (maintenance_print_type): Constify.
6777 2017-09-27 Tom Tromey <tom@tromey.com>
6779 * hppa-tdep.c (unwind_command): Constify.
6781 2017-09-27 Tom Tromey <tom@tromey.com>
6783 * target-descriptions.c (unset_tdesc_filename_cmd)
6784 (maint_print_c_tdesc_cmd, maintenance_check_xml_descriptions):
6787 2017-09-27 Tom Tromey <tom@tromey.com>
6789 * dummy-frame.c (maintenance_print_dummy_frames): Constify.
6791 2017-09-27 Tom Tromey <tom@tromey.com>
6793 * tui/tui.c (tui_enable_command, tui_disable_command): Constify.
6795 2017-09-27 Tom Tromey <tom@tromey.com>
6797 * tui/tui-regs.c (tui_reg_command): Constify.
6799 2017-09-27 Tom Tromey <tom@tromey.com>
6801 * skip.c (skip_file_command, skip_function_command)
6802 (skip_enable_command, skip_disable_command, skip_delete_command):
6805 2017-09-27 Tom Tromey <tom@tromey.com>
6807 * record-btrace.c (cmd_record_btrace_bts_start)
6808 (cmd_record_btrace_pt_start): Constify.
6810 2017-09-27 Tom Tromey <tom@tromey.com>
6812 * symmisc.c (maintenance_print_symbols)
6813 (maintenance_print_msymbols, maintenance_print_objfiles)
6814 (maintenance_info_symtabs, maintenance_check_symtabs)
6815 (maintenance_expand_symtabs, maintenance_info_line_tables):
6818 2017-09-27 Tom Tromey <tom@tromey.com>
6820 * top.c (new_ui_command): Constify.
6822 2017-09-27 Tom Tromey <tom@tromey.com>
6824 * symfile.c (add_symbol_file_command)
6825 (remove_symbol_file_command, list_overlays_command)
6826 (map_overlay_command, unmap_overlay_command)
6827 (overlay_auto_command, overlay_manual_command)
6828 (overlay_off_command, overlay_load_command): Constify.
6830 2017-09-27 Tom Tromey <tom@tromey.com>
6832 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
6833 (info_spu_mailbox_command, info_spu_dma_command)
6834 (info_spu_proxydma_command): Constify.
6836 2017-09-27 Tom Tromey <tom@tromey.com>
6838 * cli/cli-logging.c (set_logging_on, set_logging_off): Constify.
6840 2017-09-27 Tom Tromey <tom@tromey.com>
6842 * cli/cli-script.c (user_defined_command): Constify.
6844 2017-09-27 Tom Tromey <tom@tromey.com>
6846 * cli/cli-dump.c (dump_memory_command, dump_value_command)
6847 (dump_srec_memory, dump_srec_value, dump_ihex_memory)
6848 (dump_ihex_value, dump_verilog_memory, dump_verilog_value)
6849 (dump_tekhex_memory, dump_tekhex_value, dump_binary_memory)
6850 (dump_binary_value, append_binary_memory, append_binary_value):
6852 (struct dump_context) <func>: Constify.
6853 (add_dump_command): Update.
6855 2017-09-27 Tom Tromey <tom@tromey.com>
6857 * cli/cli-cmds.c (show_version, show_configuration)
6858 (source_command, show_user): Constify.
6860 2017-09-27 Tom Tromey <tom@tromey.com>
6862 * target.c (maintenance_print_target_stack): Constify.
6864 2017-09-27 Tom Tromey <tom@tromey.com>
6866 * interps.c (interpreter_exec_cmd): Constify.
6868 2017-09-27 Tom Tromey <tom@tromey.com>
6870 * record-full.c (cmd_record_full_restore): Constify.
6872 2017-09-27 Tom Tromey <tom@tromey.com>
6874 * memattr.c (enable_mem_command, disable_mem_command)
6875 (delete_mem_command): Constify.
6877 2017-09-27 Tom Tromey <tom@tromey.com>
6879 * value.c (show_convenience): Constify.
6881 2017-09-27 Tom Tromey <tom@tromey.com>
6883 * gdbcore.h (core_file_command): Update.
6884 * corefile.c (core_file_command): Constify.
6886 2017-09-27 Tom Tromey <tom@tromey.com>
6888 * user-regs.c (maintenance_print_user_registers): Constify.
6890 2017-09-27 Tom Tromey <tom@tromey.com>
6892 * cp-namespace.c (maintenance_cplus_namespace): Constify.
6894 2017-09-27 Tom Tromey <tom@tromey.com>
6896 * cp-support.c (first_component_command): Constify.
6898 2017-09-27 Tom Tromey <tom@tromey.com>
6900 * psymtab.c (maintenance_print_psymbols)
6901 (maintenance_info_psymtabs, maintenance_check_psymtabs):
6904 2017-09-27 Tom Tromey <tom@tromey.com>
6906 * windows-tdep.c (display_tib): Constify.
6908 2017-09-27 Tom Tromey <tom@tromey.com>
6910 * linux-fork.c (delete_checkpoint_command)
6911 (detach_checkpoint_command): Constify.
6913 2017-09-27 Tom Tromey <tom@tromey.com>
6915 * cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify.
6917 2017-09-27 Tom Tromey <tom@tromey.com>
6919 * arc-tdep.c (dump_arc_instruction_command): Constify.
6921 2017-09-27 Tom Tromey <tom@tromey.com>
6923 * valprint.c (set_radix, show_radix): Constify.
6925 2017-09-27 Tom Tromey <tom@tromey.com>
6927 * dtrace-probe.c (info_probes_dtrace_command): Constify.
6929 2017-09-27 Tom Tromey <tom@tromey.com>
6931 * command.h (not_just_help_class_command): Update.
6932 * cli/cli-decode.h (not_just_help_class_command): Update.
6933 * cli/cli-decode.c (not_just_help_class_command): Constify.
6935 2017-09-27 Tom Tromey <tom@tromey.com>
6937 * gdb_bfd.c (maintenance_info_bfds): Constify.
6939 2017-09-27 Tom Tromey <tom@tromey.com>
6941 * cli/cli-decode.c (add_cmd, set_cmd_cfunc): New function
6943 (do_add_cmd): Rename from add_cmd. Don't call set_cmd_cfunc.
6944 (do_const_cfunc): New function.
6945 (cmd_cfunc_eq): New overload.
6946 (cli_user_command_p): Check do_const_cfunc.
6947 * cli/cli-decode.h (struct cmd_list_element) <function>: New field
6949 * command.h (add_cmd): Add const overload and no-function
6951 (set_cmd_cfunc): Add const overload.
6952 (cmd_const_cfunc_ftype): Declare.
6953 (cmd_cfunc_eq): Add const overload.
6954 * breakpoint.c, cli-cmds.c, cli-dump.c, guile/scm-cmd.c,
6955 python/py-cmd.c, target.c, tracepoint.c: Use no-function add_cmd
6958 2017-09-27 Tom Tromey <tom@tromey.com>
6960 * macroexp.c (get_next_token_for_substitution): New function.
6961 (substitute_args): Call it. Check for __VA_OPT__.
6963 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
6964 Pedro Alves <palves@redhat.com>
6966 * dwarf2read.c (dwarf2_cu): Remove field producer_is_icc and add
6967 producer_is_icc_lt_14.
6968 (producer_is_icc_lt_14): New function.
6969 (check_producer): Add code for checking version of ICC.
6970 (producer_is_icc): Move to producer.c.
6971 (read_structure_type): Restrict ICC workaround to ICC<14.
6972 * producer.c: Include selftest.h.
6973 (producer_is_icc, producer_parsing_tests, _initialize_producer):
6975 * producer.h (producer_is_icc): New declaration.
6977 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
6979 * Makefile.in (SFILES): Add producer.c.
6980 (COMMON_OBS): Add producer.o
6981 * amd64-tdep.c (producer.h): Add new include.
6982 * dwarf2read.c (producer.h): Add new include.
6983 * producer.c: New file.
6984 * producer.h: New file.
6985 * utils.c (producer_is_gcc, producer_is_gcc_ge_4): Move to
6987 * utils.h (producer_is_gcc, producer_is_gcc_ge_4): Move to
6990 2017-09-26 Matthias Klose <doko@ubuntu.com>
6992 * configure.ac: Search ncursesw before ncurses.
6993 Check ncursesw/ncurses.h before ncurses/ncurses.h.
6994 * gdb_curses.h: Include <ncursesw/ncurses.h>
6995 * config.in, configure: Regenerate.
6997 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7000 * configure.host <*-*-solaris2.[01], *-*-solaris2.[2-9]*>: Mark as
7002 Use gdb_host sol2 for i[34567]86-*-solaris2*, x86_64-*-solaris2*.
7003 Remove i386sol2 support.
7004 * configure.nat <i386sol2>: Remove.
7005 <sol2-64>: Fold into ...
7007 Move common settings to default section.
7009 * configure.tgt <i[34567]86-*-solaris2.1[0-9]*,
7010 x86_64-*-solaris2.1[0-9]*>: Rename to ...
7011 <i[34567]86-*-solaris2*, x86_64-*-solaris2*>: ... this.
7012 <i[34567]86-*-solaris*>: Remove.
7013 <sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*>: Remove.
7015 * configure.ac: Remove wctype in libw check.
7016 (_MSE_INT_H): Don't define on Solaris 7-9.
7017 <solaris*>: Remove libthread_db.so.1 check.
7018 * configure: Regenerate.
7019 * config.in: Regenerate.
7021 * proc-service.c: Remove PROC_SERVICE_IS_OLD handling.
7022 (gdb_ps_prochandle_t, gdb_ps_read_buf_t, gdb_ps_write_buf_t)
7023 (gdb_ps_size_t): Remove.
7024 Use base types in users.
7025 * sol-thread.c: Likewise, also for gdb_ps_addr_t.
7027 * NEWS (Changes since GDB 8.0): Document Solaris 2.0-9 removal.
7029 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7032 * sparc64-tdep.c (adi_tag_fd): Print pid as long.
7033 (adi_is_addr_mapped): Likewise.
7034 (PSR_ICC): Don't redefine.
7035 (PSR_IMPL): Likewise.
7037 2017-09-25 Tom Tromey <tom@tromey.com>
7039 * regcache.c (regcache::dump): Use string_printf.
7041 2017-09-25 Tom Tromey <tom@tromey.com>
7043 * regcache.c (class regcache_invalidator): New.
7044 (struct register_to_invalidate): Remove.
7045 (make_cleanup_regcache_invalidate): Remove.
7046 (regcache::raw_write): Use regcache_invalidator.
7048 2017-09-25 Tom Tromey <tom@tromey.com>
7050 * spu-tdep.c (spu2ppu_sniffer): Update.
7051 * regcache.h (make_cleanup_regcache_xfree): Don't declare.
7052 * regcache.c (do_regcache_xfree, make_cleanup_regcache_xfree):
7054 * ppc-linux-tdep.c (ppu2spu_sniffer): Update.
7055 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Update.
7056 * frame.h (frame_save_as_regcache): Return std::unique_ptr.
7057 * frame.c (frame_save_as_regcache): Return std::unique_ptr.
7058 (frame_pop): Update.
7060 2017-09-25 Tom Tromey <tom@tromey.com>
7062 * spu-tdep.c (spu2ppu_dealloc_cache): Use delete.
7063 * regcache.h (regcache_xfree): Don't declare.
7064 * regcache.c (regcache_xfree): Remove.
7065 (do_regcache_xfree): Use delete.
7066 * ppc-linux-tdep.c (ppu2spu_dealloc_cache): Use delete.
7067 * linux-fork.c (free_fork): Use delete.
7068 (fork_save_infrun_state): Likewise.
7069 * jit.c (jit_dealloc_cache): Use delete.
7070 * infrun.c (discard_infcall_suspend_state): Use delete.
7072 2017-09-25 Tom Tromey <tom@tromey.com>
7074 * regcache.h (regcache_xmalloc): Don't declare.
7075 (regcache_raw_set_cached_value): Update comment.
7076 * regcache.c (regcache_xmalloc): Remove.
7077 * ppc-linux-tdep.c (ppu2spu_sniffer): Use new.
7078 * jit.c (jit_frame_sniffer): Use new.
7079 * frame.c (frame_save_as_regcache): Use new.
7081 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
7083 * NEWS: Advertise support for guarded-storage registers on IBM z.
7085 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
7087 * s390-linux-nat.c (have_regset_gs): New static variable.
7088 (s390_linux_fetch_inferior_registers): Handle guarded-storage
7089 control block and guarded-storage broadcast control regsets.
7090 (s390_read_description): Detect whether the target has
7091 guarded-storage support, return appropriate tdesc.
7092 * s390-linux-tdep.c (features/s390-gs-linux64.c): New include.
7093 (features/s390x-gs-linux64.c): Likewise.
7094 (struct gdbarch_tdep) <have_gs>: New field.
7095 (s390_regmap_gs, s390_regmap_gsbc, s390_gs_regset)
7096 (s390_gsbc_regset): New variables.
7097 (s390_iterate_over_regset_sections): Iterate over s390_gs_regset
7098 and s390_gsbc_regset, if applicable.
7099 (s390_core_read_description): Check whether core file was from a
7100 target with guarded-storage support; include appropriate regsets.
7101 (s390_gdbarch_init): Add registers for guarded-storage support.
7102 (_initialize_s390_tdep): Initialize new target descriptions that
7103 include registers for guarded-storage support.
7104 * s390-linux-tdep.h (HWCAP_S390_GS, S390_GSD_REGNUM)
7105 (S390_GSSM_REGNUM, S390_GSEPLA_REGNUM)
7106 (S390_BC_GSD_REGNUM, S390_BC_GSSM_REGNUM): New defines.
7107 (S390_NUM_REGS): Adjust macro definition.
7108 (s390_gs_regset, s390_gsbc_regset, tdesc_s390_gs_linux64)
7109 (tdesc_s390x_gs_linux64): New declarations.
7111 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
7113 * features/s390-gs-linux64.xml: New file.
7114 * features/s390-gs.xml: New file.
7115 * features/s390-gsbc.xml: New file.
7116 * features/s390x-gs-linux64.xml: New file.
7117 * features/Makefile (WHICH): Add s390-gs-linux64 and
7119 (s390-gs-linux64-expedite, s390x-gs-linux64-expedite): New macros.
7120 (XMLTOC): Add s390-gs-linux64.xml and s390x-linux64.xml.
7121 * features/s390-gs-linux64.c: New generated file.
7122 * features/s390x-gs-linux64.c: New file.
7123 * regformats/s390-gs-linux64.dat: New file.
7124 * regformats/s390x-gs-linux64.dat: New file.
7126 2017-09-23 Tom Tromey <tom@tromey.com>
7128 * defs.h (make_cleanup_override_quit_handler): Don't declare.
7130 2017-09-22 Tom Tromey <tom@tromey.com>
7132 * utils.c (class scoped_input_handler) <m_quit_handler>: Change
7133 type to scoped_restore_tmpl.
7134 <scoped_input_handler>: Initialize m_quit_handler directly.
7136 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
7138 * cli/cli-cmds.c (pwd_command): Use "getcwd (NULL, 0)".
7139 (cd_command): Likewise. Free "current_directory" before
7141 * main.c (captured_main_1): Use "getcwd (NULL, 0)".
7142 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Likewise.
7143 * top.c (gdb_dirbuf): Remove global declaration.
7144 * top.h (gdb_dirbuf): Likewise.
7146 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
7148 * gnulib/aclocal.m4: Regenerate.
7149 * gnulib/config.in: Regenerate.
7150 * gnulib/configure: Regenerate.
7151 * gnulib/import/Makefile.am: Regenerate.
7152 * gnulib/import/Makefile.in: Regenerate.
7153 * gnulib/import/assure.h: New file.
7154 * gnulib/import/at-func.c: Likewise
7155 * gnulib/import/chdir-long.c: New file.
7156 * gnulib/import/chdir-long.h: New file.
7157 * gnulib/import/cloexec.c: New file.
7158 * gnulib/import/cloexec.h: New file.
7159 * gnulib/import/close.c: New file.
7160 * gnulib/import/closedir.c: New file.
7161 * gnulib/import/dirent-private.h: New file.
7162 * gnulib/import/dup-safer.c: New file.
7163 * gnulib/import/dup.c: New file.
7164 * gnulib/import/dup2.c: New file.
7165 * gnulib/import/error.c: New file.
7166 * gnulib/import/error.h: New file.
7167 * gnulib/import/exitfail.c: New file.
7168 * gnulib/import/exitfail.h: New file.
7169 * gnulib/import/fchdir.c: New file.
7170 * gnulib/import/fcntl.c: New file.
7171 * gnulib/import/fcntl.in.h: New file.
7172 * gnulib/import/fd-hook.c: New file.
7173 * gnulib/import/fd-hook.h: New file.
7174 * gnulib/import/fd-safer.c: New file.
7175 * gnulib/import/fdopendir.c: New file.
7176 * gnulib/import/filename.h: New file.
7177 * gnulib/import/filenamecat-lgpl.c: New file.
7178 * gnulib/import/filenamecat.h: New file.
7179 * gnulib/import/fstat.c: New file.
7180 * gnulib/import/fstatat.c: New file.
7181 * gnulib/import/getcwd-lgpl.c: New file.
7182 * gnulib/import/getcwd.c: New file.
7183 * gnulib/import/getdtablesize.c: New file.
7184 * gnulib/import/getlogin_r.c: New file.
7185 * gnulib/import/getprogname.c: New file.
7186 * gnulib/import/getprogname.h: New file.
7187 * gnulib/import/gettext.h: New file.
7188 * gnulib/import/glob-libc.h: New file.
7189 * gnulib/import/glob.c: New file.
7190 * gnulib/import/glob.in.h: New file.
7191 * gnulib/import/intprops.h: New file.
7192 * gnulib/import/m4/chdir-long.m4: New file.
7193 * gnulib/import/m4/close.m4: New file.
7194 * gnulib/import/m4/closedir.m4: New file.
7195 * gnulib/import/m4/d-ino.m4: New file.
7196 * gnulib/import/m4/d-type.m4: New file.
7197 * gnulib/import/m4/dup.m4: New file.
7198 * gnulib/import/m4/dup2.m4: New file.
7199 * gnulib/import/m4/error.m4: New file.
7200 * gnulib/import/m4/fchdir.m4: New file.
7201 * gnulib/import/m4/fcntl.m4: New file.
7202 * gnulib/import/m4/fcntl_h.m4: New file.
7203 * gnulib/import/m4/fdopendir.m4: New file.
7204 * gnulib/import/m4/filenamecat.m4: New file.
7205 * gnulib/import/m4/fstat.m4: New file.
7206 * gnulib/import/m4/fstatat.m4: New file.
7207 * gnulib/import/m4/getcwd-abort-bug.m4: New file.
7208 * gnulib/import/m4/getcwd-path-max.m4: New file.
7209 * gnulib/import/m4/getcwd.m4: New file.
7210 * gnulib/import/m4/getdtablesize.m4: New file.
7211 * gnulib/import/m4/getlogin_r.m4: New file.
7212 * gnulib/import/m4/getprogname.m4: New file.
7213 * gnulib/import/m4/glob.m4: New file.
7214 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
7215 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
7216 * gnulib/import/m4/mempcpy.m4: New file.
7217 * gnulib/import/m4/memrchr.m4: New file.
7218 * gnulib/import/m4/mode_t.m4: New file.
7219 * gnulib/import/m4/msvc-inval.m4: New file.
7220 * gnulib/import/m4/msvc-nothrow.m4: New file.
7221 * gnulib/import/m4/open.m4: New file.
7222 * gnulib/import/m4/openat.m4: New file.
7223 * gnulib/import/m4/opendir.m4: New file.
7224 * gnulib/import/m4/readdir.m4: New file.
7225 * gnulib/import/m4/realloc.m4: New file.
7226 * gnulib/import/m4/rewinddir.m4: New file.
7227 * gnulib/import/m4/save-cwd.m4: New file.
7228 * gnulib/import/m4/strdup.m4: New file.
7229 * gnulib/import/m4/strerror.m4: New file.
7230 * gnulib/import/m4/unistd-safer.m4: New file.
7231 * gnulib/import/mempcpy.c: New file.
7232 * gnulib/import/memrchr.c: New file.
7233 * gnulib/import/msvc-inval.c: New file.
7234 * gnulib/import/msvc-inval.h: New file.
7235 * gnulib/import/msvc-nothrow.c: New file.
7236 * gnulib/import/msvc-nothrow.h: New file.
7237 * gnulib/import/open.c: New file.
7238 * gnulib/import/openat-die.c: New file.
7239 * gnulib/import/openat-priv.h: New file.
7240 * gnulib/import/openat-proc.c: New file.
7241 * gnulib/import/openat.c: New file.
7242 * gnulib/import/openat.h: New file.
7243 * gnulib/import/opendir.c: New file.
7244 * gnulib/import/pipe-safer.c: New file.
7245 * gnulib/import/readdir.c: New file.
7246 * gnulib/import/realloc.c: New file.
7247 * gnulib/import/rewinddir.c: New file.
7248 * gnulib/import/save-cwd.c: New file.
7249 * gnulib/import/save-cwd.h: New file.
7250 * gnulib/import/strdup.c: New file.
7251 * gnulib/import/strerror-override.c: New file.
7252 * gnulib/import/strerror-override.h: New file.
7253 * gnulib/import/strerror.c: New file.
7254 * gnulib/import/unistd--.h: New file.
7255 * gnulib/import/unistd-safer.h: New file.
7256 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
7257 "getcwd" and "glob".
7258 * ser-tcp.c: Undefine "close" before redefining it.
7260 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
7262 * guile/scm-value.c (gdbscm_value_address): Initialize address,
7265 2017-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7267 * configure.nat <i386sol2,i386>: Add fork-inferior.o to NATDEPFILES.
7268 <sol2,sparc>: Likewise.
7269 <sol2-64,i386>: Likewise.
7271 * warning.m4 (AM_GDB_WARNINGS): Disable -Wunknown-pragmas,
7272 -Wdeprecated-declarations on *-*-solaris*.
7273 * configure: Regenerate.
7275 * procfs.c: Include "nat/inferior.h".
7276 (procfs_info_proc): Fix typo.
7278 2017-09-21 Kevin Buettner <kevinb@redhat.com>
7280 * remote.c (vector): Include.
7281 (struct private_thread_info): Add field, thread_handle.
7282 (free_private_thread_info): Deallocate storage associated with
7284 (get_private_info_thread): Initialize `thread_handle' field.
7285 (struct thread_item): Add field, thread_handle.
7286 (clear_threads_listing_context): Deallocate storage associated
7288 (start_thread): Add support for "handle" attribute.
7289 (thread_attributes): Add "handle".
7290 (remote_get_threads_with_qthreadinfo): Initialize thread_handle
7292 (remote_update_thread_list): Update thread_handle.
7293 (remote_thread_handle_to_thread_info): New function.
7294 (init_remote_ops): Initialize to_thread_handle_to_thread_info.
7296 2017-09-21 Kevin Buettner <kevinb@redhat.com>
7298 * python/py-inferior.c (gdbpy_thread_from_thread_handle): New
7300 (inferior_object_methods): Add gdbpy_thread_from_thread_handle.
7301 * python/python-internal.h (thread_object_type): Declare.
7303 2017-09-21 Kevin Buettner <kevinb@redhat.com>
7305 * target.h (struct target_ops): Add to_thread_handle_to_thread_info.
7306 (target_thread_handle_to_thread_info): Declare.
7307 * target.c (target_thread_handle_to_thread_info): New function.
7308 * target-delegates.c: Regenerate.
7309 * gdbthread.h (find_thread_by_handle): Declare.
7310 * thread.c (find_thread_by_handle): New function.
7311 * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New
7313 (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info.
7315 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
7317 * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF.
7319 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
7321 * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF.
7323 2017-09-21 Yao Qi <yao.qi@linaro.org>
7325 * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o
7328 2017-09-20 Tom Tromey <tom@tromey.com>
7330 * breakpoint.c (struct counted_command_line): Remove.
7331 (breakpoint_commands): Update.
7332 (alloc_counted_command_line, incref_counted_command_line)
7333 (decref_counted_command_line, do_cleanup_counted_command_line)
7334 (make_cleanup_decref_counted_command_line): Remove.
7335 (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats)
7336 (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check)
7337 (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint)
7338 (save_breakpoints): Update.
7339 * breakpoint.h (counted_command_line): Now a typedef to
7341 (struct breakpoint) <commands>: Now a counted_command_line.
7342 (struct bpstats) <command>: Likewise.
7344 2017-09-20 Tom Tromey <tom@tromey.com>
7346 * breakpoint.c (struct commands_info, do_map_commands_command):
7348 (commands_command_1): Update.
7349 (iterate_over_related_breakpoints): Take a function_view.
7350 (do_delete_breakpoint, do_map_delete_breakpoint): Remove.
7351 (delete_command): Update.
7352 (map_breakpoint_numbers): Take a function_view.
7353 (do_disable_breakpoint, do_map_delete_breakpoint): Remove.
7354 (disable_command): Update.
7355 (do_enable_breakpoint, do_map_enable_breakpoint): Remove.
7356 (enable_command): Update.
7357 (struct disp_data, do_enable_breakpoint_disp)
7358 (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint)
7359 (do_map_enable_delete_breakpoint): Remove.
7360 (enable_once_command, enable_count_command, enable_delete_command)
7361 (delete_trace_variable_command): Update.
7363 2017-09-20 Tom Tromey <tom@tromey.com>
7365 * breakpoint.c (~bpstats): Rename from bpstat_free. Update.
7366 (bpstat_clear): Use delete.
7367 (bpstats): New constructors.
7368 (bpstat_copy, bpstat_stop_status): Use new.
7369 (dprintf_after_condition_true): Update.
7370 * breakpoint.h (bpstats::bpstats): Add constructors.
7371 (bpstats::~bpstats): Add destructor.
7373 2017-09-20 Pedro Alves <palves@redhat.com>
7375 * eval.c (make_params): Delete, refactored as ...
7376 (class fake_method): ... this new type's ctor.
7377 (fake_method::~fake_method): New.
7378 (evaluate_subexp_standard): Use 'fake_method'.
7380 2017-09-20 Tom Tromey <tom@tromey.com>
7382 * windows-nat.c (get_windows_debug_event, windows_wait)
7383 (do_initial_windows_stuff, windows_attach): Update.
7384 * utils.c (vwarning, internal_vproblem): Update.
7385 (ui_unregister_input_event_handler_cleanup)
7386 (prepare_to_handle_input): Remove.
7387 (class scoped_input_handler): New.
7388 (defaulted_query, prompt_for_continue): Update.
7389 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
7391 * top.c (undo_terminal_modifications_before_exit): Update.
7392 * target/target.h (target_terminal_init, target_terminal_inferior)
7393 (target_terminal_ours): Don't declare.
7394 (class target_terminal): New.
7395 * target.h (target_terminal_is_inferior, target_terminal_is_ours)
7396 (target_terminal_ours_for_output)
7397 (make_cleanup_restore_target_terminal): Don't declare.
7398 (target_terminal_info): Remove.
7399 * target.c (enum terminal_state, terminal_state): Remove.
7400 (target_terminal::terminal_state): Define.
7401 (target_terminal::init): Rename from target_terminal_init.
7402 (target_terminal::inferior): Rename from
7403 target_terminal_inferior.
7404 (target_terminal::ours): Rename from target_terminal_ours.
7405 (target_terminal::ours_for_output): Rename from
7406 target_terminal_ours_for_output.
7407 (target_terminal::info): New method.
7408 (cleanup_restore_target_terminal)
7409 (make_cleanup_restore_target_terminal): Remove.
7410 * solib.c (handle_solib_event): Update.
7411 * remote.c (remote_serial_quit_handler): Update.
7412 (remote_terminal_inferior, remote_wait_as): Update.
7413 * record-full.c (record_full_wait_1): Update.
7414 * nto-procfs.c (procfs_create_inferior): Update.
7415 * nat/fork-inferior.c (startup_inferior): Update.
7416 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
7417 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
7418 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
7419 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
7420 (mi_breakpoint_created, mi_breakpoint_deleted)
7421 (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded)
7422 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
7423 (mi_user_selected_context_changed, report_initial_inferior):
7425 * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours)
7426 (linux_nat_terminal_inferior): Update.
7427 * infrun.c (follow_fork_inferior)
7428 (handle_vfork_child_exec_or_exit, do_target_resume)
7429 (check_curr_ui_sync_execution_done, handle_inferior_event_1)
7430 (handle_signal_stop, maybe_remove_breakpoints, normal_stop):
7432 * inflow.c (child_terminal_init, info_terminal_command): Update.
7433 * infcmd.c (post_create_inferior, continue_1, prepare_one_step)
7434 (attach_command): Update.
7435 * infcall.c (call_thread_fsm_should_stop): Update.
7436 * gnu-nat.c (gnu_attach): Update.
7437 * extension.c (struct active_ext_lang_state)
7438 (restore_active_ext_lang): Update.
7439 * exceptions.c (print_flush): Update.
7440 * event-top.c (async_enable_stdin, default_quit_handler): Update.
7441 (struct quit_handler_cleanup_data, restore_quit_handler)
7442 (restore_quit_handler_dtor, make_cleanup_override_quit_handler):
7444 * cp-support.c (gdb_demangle): Update.
7445 * breakpoint.c (update_inserted_breakpoint_locations)
7446 (insert_breakpoint_locations, handle_jit_event)
7447 (disable_breakpoints_in_unloaded_shlib): Update.
7448 * annotate.c (annotate_breakpoints_invalid)
7449 (annotate_frames_invalid): Update.
7451 2017-09-20 Tom Tromey <tom@tromey.com>
7453 * main.c (catch_command_errors): Rename from
7454 catch_command_errors_const.
7455 (captured_main_1): Update.
7457 2017-09-20 Pedro Alves <palves@redhat.com>
7459 * cli/cli-cmds.c (list_command): Use print_sal_location.
7460 (print_sal_location): New function.
7461 (ambiguous_line_spec): Use print_sal_location.
7462 * linespec.c (symbol_to_sal): Record the symbol in the sal.
7463 * symtab.c (find_function_start_sal): Likewise.
7464 * symtab.h (symtab_and_line::symbol): New field.
7466 2017-09-20 Pedro Alves <palves@redhat.com>
7468 * linespec.c (minsym_found): Handle non-text minsyms.
7469 (symbol_to_sal): Record a sal.pc for non-block, non-label symbols.
7471 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
7473 * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing
7476 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
7478 * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use
7479 vmovups instead vmovaps.
7480 (move_zmm_data_to_memory): Use vmovups instead vmovaps.
7482 2017-09-19 John Baldwin <jhb@FreeBSD.org>
7484 * NEWS (Changes since GDB 8.0): Add starti.
7485 * infcmd.c (enum run_break): New.
7486 (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN
7488 (run_command): Use enum run_how.
7489 (start_command): Likewise.
7490 (starti_command): New function.
7491 (RUN_ARGS_HELP): New macro.
7492 (_initialize_infcmd): Use RUN_ARGS_HELP for run and start
7493 commands. Add starti command.
7495 2017-09-19 Yao Qi <yao.qi@linaro.org>
7497 * Makefile.in (monitor.o): Remove the rule.
7499 2017-09-19 Yao Qi <yao.qi@linaro.org>
7501 * annotate.h (struct annotate_arg_emitter): Use
7502 DISABLE_COPY_AND_ASSIGN.
7503 * common/refcounted-object.h (refcounted_object): Likewise.
7504 * completer.h (struct completion_result): Likewise.
7505 * dwarf2read.c (struct dwarf2_per_objfile): Likewise.
7506 * filename-seen-cache.h (filename_seen_cache): Likewise.
7507 * gdbcore.h (thread_section_name): Likewise.
7508 * gdb_regex.h (compiled_regex): Likewise.
7509 * gdbthread.h (scoped_restore_current_thread): Likewise.
7510 * inferior.h (scoped_restore_current_inferior): Likewise.
7511 * jit.c (jit_reader): Likewise.
7512 * linespec.h (struct linespec_result): Likewise.
7513 * mi/mi-parse.h (struct mi_parse): Likewise.
7514 * nat/fork-inferior.c (execv_argv): Likewise.
7515 * progspace.h (scoped_restore_current_program_space): Likewise.
7516 * python/python-internal.h (class gdbpy_enter): Likewise.
7517 * regcache.h (regcache): Likewise.
7518 * target-descriptions.c (struct tdesc_reg): Likewise.
7519 (struct tdesc_type): Likewise.
7520 (struct tdesc_feature): Likewise.
7521 * ui-out.h (ui_out_emit_type): Likewise.
7523 2017-09-18 Simon Marchi <simon.marchi@ericsson.com>
7525 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove
7526 label abort_expression.
7528 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7530 * common/buffer.c (buffer_xml_printf): Adjust.
7531 * common/xml-utils.c (xml_escape_text): Change return type to
7532 std::string, update code accordingly.
7533 * common/xml-utils.h (xml_escape_text): Change return type to
7535 * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust.
7536 * windows-tdep.c (windows_xfer_shared_library): Adjust.
7537 * unittests/xml-utils-selftests.c (test_xml_escape_text):
7540 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7542 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file.
7543 (SUBDIR_UNITTESTS_OBS): Add new object file.
7544 * unittests/xml-utils-selftests.c: New file.
7546 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7548 * common/selftest.h (selftest): New struct/interface.
7549 (register_test): Add name parameter, add new overload.
7550 (run_tests): Add filter parameter.
7551 (for_each_selftest_ftype): New typedef.
7552 (for_each_selftest): New declaration.
7553 * common/selftest.c (tests): Change type to
7554 map<string, unique_ptr<selftest>>.
7555 (simple_selftest): New struct.
7556 (register_test): New function.
7557 (register_test): Add name parameter and use it.
7558 (run_tests): Add filter parameter and use it. Add prints.
7559 Adjust to vector -> map change.
7560 * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when
7561 registering selftests.
7562 * arm-tdep.c (_initialize_arm_tdep): Likewise.
7563 * disasm-selftests.c (_initialize_disasm_selftests): Likewise.
7564 * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise.
7565 * dwarf2loc.c (_initialize_dwarf2loc): Likewise.
7566 * findvar.c (_initialize_findvar): Likewise.
7567 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise.
7568 * maint.c (maintenance_selftest): Update call to run_tests.
7569 (maintenance_info_selftests): New function.
7570 (_initialize_maint_cmds): Register "maintenance info selftests"
7571 command. Update "maintenance selftest" doc.
7572 * regcache.c (_initialize_regcache): Add names when registering
7574 * rust-exp.y (_initialize_rust_exp): Likewise.
7575 * selftest-arch.c (gdbarch_selftest): New struct.
7576 (gdbarch_tests): Remove.
7577 (register_test_foreach_arch): Add name parameter. Call
7579 (tests_with_arch): Remove, move most content to
7580 gdbarch_selftest::operator().
7581 (_initialize_selftests_foreach_arch): Remove.
7582 * selftest-arch.h (register_test_foreach_arch): Add name
7584 (run_tests_with_arch): New declaration.
7585 * utils-selftests.c (_initialize_utils_selftests): Add names
7586 when registering selftests.
7587 * utils.c (_initialize_utils): Likewise.
7588 * unittests/array-view-selftests.c
7589 (_initialize_array_view_selftests): Likewise.
7590 * unittests/environ-selftests.c (_initialize_environ_selftests):
7592 * unittests/function-view-selftests.c
7593 (_initialize_function_view_selftests): Likewise.
7594 * unittests/offset-type-selftests.c
7595 (_initialize_offset_type_selftests): Likewise.
7596 * unittests/optional-selftests.c
7597 (_initialize_optional_selftests): Likewise.
7598 * unittests/scoped_restore-selftests.c
7599 (_initialize_scoped_restore_selftests): Likewise.
7600 * NEWS: Document "maintenance selftest" and "maint info
7603 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7605 * mi/mi-main.c (mi_load_progress): Restore current_uiout using a
7608 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7610 * mi/mi-main.c (mi_load_progress): Make uiout variable
7613 2017-09-15 Pedro Alves <palves@redhat.com>
7615 * compile/compile-c-types.c (convert_enum, convert_int)
7616 (convert_float): Adjust to refer to int_type_v0 and float_type_v0.
7618 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7620 * dwarf2read.c (copy_string): Remove.
7621 (parse_macro_definition): Replace copy_string with savestring.
7623 2017-09-15 Yao Qi <yao.qi@linaro.org>
7625 * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to
7627 (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*):
7629 (i[34567]86-*-linux*): Likewise.
7631 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
7633 * dwarf2expr.h (dwarf_stack_value): Add constructor.
7634 (dwarf_expr_context) <~dwarf_expr_context>: Define as default.
7635 <stack>: Change type to std::vector.
7636 <stack_len, stack_allocated>: Remove.
7637 <grow_stack>: Remove.
7638 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
7639 (dwarf_expr_context::~dwarf_expr_context): Remove.
7640 (dwarf_expr_context::grow_stack): Remove.
7641 (dwarf_expr_context::push): Adjust.
7642 (dwarf_expr_context::pop): Adjust.
7643 (dwarf_expr_context::fetch): Adjust.
7644 (dwarf_expr_context::fetch_in_stack_memory): Adjust.
7645 (dwarf_expr_context::stack_empty_p): Adjust.
7646 (dwarf_expr_context::execute_stack_op): Adjust.
7648 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
7650 * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change
7651 return type to bool.
7652 * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise.
7654 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
7656 * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>:
7657 Change type to bool.
7658 (dwarf_stack_value) <in_stack_memory>: Likewise.
7659 (dwarf_expr_context) <push_address>: Change parameter type to
7661 <fetch_in_stack_memory>: Change return type to bool.
7662 <push>: Change parameter type to bool.
7663 * dwarf2expr.c (dwarf_expr_context::push): Change parameter type
7665 (dwarf_expr_context::push_address): Likewise.
7666 (dwarf_expr_context::fetch_in_stack_memory): Change return type
7668 (dwarf_expr_context::execute_stack_op): Adjust.
7669 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust.
7671 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
7673 * dwarf2expr.h (struct dwarf_expr_piece): Move up.
7674 (struct dwarf_expr_context) <n_pieces>: Remove.
7675 <pieces>: Change type to std::vector.
7676 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
7677 (dwarf_expr_context::~dwarf_expr_context): Don't manually free
7679 (dwarf_expr_context::add_piece): Adjust.
7680 * dwarf2loc.c (struct piece_closure): Initialize fields.
7682 <pieces>: Change type to std::vector.
7683 (allocate_piece_closure): Adjust, change parameter to
7684 std::vector rvalue and std::move it to piece_closure.
7685 (rw_pieced_value): Adjust.
7686 (check_pieced_synthetic_pointer): Adjust.
7687 (indirect_synthetic_pointer): Adjust.
7688 (coerce_pieced_ref): Adjust.
7689 (free_pieced_value_closure): Adjust. Use delete to free
7691 (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces
7692 to allocate_piece_closure.
7693 (dwarf2_loc_desc_get_symbol_read_needs): Adjust.
7695 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
7697 * probe.h (probe_ops_cp): Remove typedef.
7698 (DEF_VEC_P (probe_ops_cp)): Remove.
7699 (all_probe_ops): Change type to std::vector.
7700 * probe.c (info_probes_for_ops): Adjust to vector change.
7701 (probe_linespec_to_ops): Likewise.
7702 (all_probe_ops): Change type to std::vector.
7703 (_initialize_probe): Adjust to vector change.
7704 * dtrace-probe.c (_initialize_dtrace_probe): Likewise.
7705 * elfread.c (elf_get_probes): Likewise.
7706 * stap-probe.c (_initialize_stap_probe): Likewise.
7708 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
7710 * probe.h (struct bound_probe): Define constructors.
7711 * probe.c (bound_probe_s): Remove typedef.
7712 (DEF_VEC_O (bound_probe_s)): Remove VEC.
7713 (collect_probes): Change return type to std::vector, remove
7715 (compare_probes): Return bool, change parameter type. Change
7716 semantic to "less than".
7717 (gen_ui_out_table_header_info): Change parameter to std::vector
7719 (exists_probe_with_pops): Likewise.
7720 (info_probes_for_ops): Update to std::vector change.
7721 (enable_probes_command): Likewise.
7722 (disable_probes_command): Likewise.
7724 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
7726 * probe.h (struct probe_ops) <get_probes>: Change parameter from
7728 * probe.c (parse_probes_in_pspace): Update.
7729 (find_probes_in_objfile): Update.
7730 (find_probe_by_pc): Update.
7731 (collect_probes): Update.
7732 (probe_any_get_probes): Update.
7733 * symfile.h (struct sym_probe_fns) <sym_get_probes> Change
7734 return type to reference to std::vector.
7735 * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to
7736 std::vector and update.
7737 (dtrace_process_dof): Likewise.
7738 (dtrace_get_probes): Likewise.
7739 * elfread.c (elf_get_probes): Change return type to std::vector,
7740 store an std::vector in bfd_data.
7741 (probe_key_free): Update to std::vector.
7742 * stap-probe.c (handle_stap_probe): Change parameter to
7743 std::vector and update.
7744 (stap_get_probes): Likewise.
7745 * symfile-debug.c (debug_sym_get_probes): Change return type to
7746 std::vector and update.
7748 2017-09-11 Tom Tromey <tom@tromey.com>
7750 * breakpoint.c (program_breakpoint_here_p): Update.
7751 * target.c (make_scoped_restore_show_memory_breakpoints): Rename
7752 from make_show_memory_breakpoints_cleanup. Return a
7753 scoped_restore_tmpl<int>.
7754 (restore_show_memory_breakpoints): Remove.
7755 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update.
7756 * mem-break.c (memory_validate_breakpoint): Update.
7757 * ia64-tdep.c (ia64_memory_insert_breakpoint): Update.
7758 (ia64_memory_remove_breakpoint): Update.
7759 (ia64_breakpoint_from_pc): Update.
7760 * target.h (make_scoped_restore_show_memory_breakpoints): Rename
7761 from make_show_memory_breakpoints_cleanup.
7763 2017-09-11 Tom Tromey <tom@tromey.com>
7765 * d-namespace.c (d_lookup_symbol): Use std::string.
7766 (find_symbol_in_baseclass): Likewise.
7768 2017-09-11 Tom Tromey <tom@tromey.com>
7770 * ctf.c (ctf_start): Use std::string.
7772 2017-09-11 Tom Tromey <tom@tromey.com>
7774 * ada-lang.c (is_known_support_routine): Update.
7775 (ada_unhandled_exception_name_addr_from_raise): Update.
7776 * guile/scm-frame.c (gdbscm_frame_name): Update.
7777 * python/py-frame.c (frapy_name): Update.
7778 (frapy_function): Update.
7779 * stack.h (find_frame_funname): Update.
7780 * stack.c (find_frame_funname): Return unique_xmalloc_ptr.
7781 (print_frame): Update.
7783 2017-09-11 Tom Tromey <tom@tromey.com>
7785 * findcmd.c (put_bits): Take a gdb::byte_vector.
7786 (parse_find_args): Return gdb::byte_vector. "args" now const.
7787 Remove "pattern_bufp" and "pattern_lenp" parameters. Remove
7789 (find_command): Update.
7791 2017-09-11 Tom Tromey <tom@tromey.com>
7793 * cli/cli-script.c (class scoped_restore_hook_in): New.
7794 (clear_hook_in_cleanup): Remove.
7795 (execute_cmd_pre_hook, execute_cmd_post_hook): Use
7796 scoped_restore_hook_in.
7798 2017-09-11 Tom Tromey <tom@tromey.com>
7800 * cli/cli-script.c (restore_interp): Remove.
7801 (read_command_lines): Use scoped_restore_interp.
7802 * interps.c (scoped_restore_interp::set_temp): Rename from
7804 * interps.h (class scoped_restore_interp): New.
7805 (interp_set_temp): Remove.
7807 2017-09-11 Tom Tromey <tom@tromey.com>
7809 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
7810 (mi_cmd_catch_exception, mi_catch_load_unload): Update.
7811 * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a
7813 (mi_cmd_break_insert_1): Update.
7814 * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a
7817 2017-09-11 Tom Tromey <tom@tromey.com>
7819 * demangle.c (demangle_command): Update.
7820 * breakpoint.c (disable_command): Update.
7821 (enable_command): Update.
7822 (find_location_by_number): Make "number" const. Use
7824 * cli/cli-utils.c (extract_arg): Return std::string.
7825 * probe.c (parse_probe_linespec): Update. Change types.
7826 (collect_probes): Take string arguments.
7827 (parse_probe_linespec): Likewise.
7828 (info_probes_for_ops): Update.
7829 (enable_probes_command): Update.
7830 (disable_probes_command): Update.
7831 * break-catch-sig.c (catch_signal_split_args): Update.
7832 * mi/mi-parse.c (mi_parse): Update.
7834 2017-09-11 Tom Tromey <tom@tromey.com>
7836 * language.h (language_enum): Make argument const.
7837 * language.c (language_enum): Make argument const.
7839 2017-09-11 Tom Tromey <tom@tromey.com>
7841 * common/common-utils.h (skip_to_space): Remove macro, redeclare
7843 (skip_to_space): Rename from skip_to_space_const.
7844 * common/common-utils.c (skip_to_space): New function.
7845 (skip_to_space): Rename from skip_to_space_const.
7846 * cli/cli-utils.h (get_number): Rename from get_number_const.
7847 (extract_arg): Rename from extract_arg_const.
7848 * cli/cli-utils.c (get_number): Rename from get_number_const.
7849 (extract_arg): Rename from extract_arg_const.
7850 (number_or_range_parser::get_number): Use ::get_number.
7851 * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c,
7852 break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c,
7853 cli/cli-script.c, cli/cli-setshow.c, compile/compile.c,
7854 completer.c, demangle.c, disasm.c, findcmd.c, linespec.c,
7855 linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c,
7856 minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c,
7857 python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c,
7858 stap-probe.c, tid-parse.c, tracepoint.c: Update all callers.
7860 2017-09-11 Tom Tromey <tom@tromey.com>
7862 * python/python.c (do_start_initialization): Use
7863 py-event-types.def to initialize types.
7864 Define all object type structures.
7865 * python/python-internal.h: Don't declare event initialization
7867 * python/py-threadevent.c (thread_event_object_type): Don't
7869 * python/py-stopevent.c (stop_event_object_type): Don't define.
7870 * python/py-signalevent.c (signal_event_object_type): Don't
7872 * python/py-newobjfileevent.c (new_objfile_event_object_type)
7873 (clear_objfiles_event_object_type): Don't declare or define.
7874 * python/py-infevents.c (inferior_call_pre_event_object_type)
7875 (inferior_call_post_event_object_type)
7876 (register_changed_event_object_type)
7877 (memory_changed_event_object_type): Don't declare or define.
7878 * python/py-inferior.c (new_thread_event_object_type)
7879 (new_inferior_event_object_type)
7880 (inferior_deleted_event_object_type): Don't declare or define.
7881 * python/py-exitedevent.c (exited_event_object_type): Don't
7883 * python/py-evts.c (gdbpy_initialize_py_events): Use
7885 * python/py-events.h (thread_event_object_type): Don't declare.
7886 (events_object): Use py-all-events.def.
7887 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use
7889 * python/py-event-types.def: New file.
7890 * python/py-continueevent.c (create_continue_event_object): Don't
7892 * python/py-bpevent.c (breakpoint_event_object_type): Don't
7894 * python/py-all-events.def: New file.
7896 2017-09-11 Tom Tromey <tom@tromey.com>
7898 * python/py-threadevent.c (create_thread_event_object): Return
7900 * python/py-stopevent.h (create_stop_event_object)
7901 (create_breakpoint_event_object, create_signal_event_object):
7903 * python/py-stopevent.c (create_stop_event_object): Return
7905 (emit_stop_event): Update.
7906 * python/py-signalevent.c (create_signal_event_object): Return
7908 * python/py-infevents.c (create_inferior_call_event_object):
7910 * python/py-event.h (create_event_object)
7911 (create_thread_event_object): Update.
7912 * python/py-event.c (create_event_object): Return gdbpy_ref.
7913 * python/py-continueevent.c: Return gdbpy_ref.
7914 * python/py-bpevent.c (create_breakpoint_event_object): Return
7917 2017-09-11 Tom Tromey <tom@tromey.com>
7921 * python/python.c (do_start_initialization): Initialize new event
7923 * python/python-internal.h (gdbpy_initialize_new_inferior_event)
7924 (gdbpy_initialize_inferior_deleted_event)
7925 (gdbpy_initialize_new_thread_event): Declare.
7926 * python/py-threadevent.c (create_thread_event_object): Add option
7928 * python/py-inferior.c (new_thread_event_object_type)
7929 (new_inferior_event_object_type)
7930 (inferior_deleted_event_object_type): Declare.
7931 (python_new_inferior, python_inferior_deleted): New functions.
7932 (add_thread_object): Emit new_thread event.
7933 (gdbpy_initialize_inferior): Attach new functions to corresponding
7935 (new_thread, new_inferior, inferior_deleted): Define new event
7937 * python/py-evts.c (gdbpy_initialize_py_events): Add new
7939 * python/py-events.h (events_object) <new_inferior,
7940 inferior_deleted, new_thread>: New fields.
7941 * python/py-event.h (create_thread_event_breakpoint): Add optional
7944 2017-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
7946 * utils.c (abort_with_message): Don't compare gdb_stderr to NULL,
7947 check current_ui instead.
7948 (internal_vproblem): Likewise.
7950 2017-09-09 Simon Marchi <simon.marchi@ericsson.com>
7952 * thread.c (print_thread_info_1): Remove unnecessary calls to
7953 uiout->is_mi_like_p.
7955 2017-09-09 Tom Tromey <tom@tromey.com>
7957 * namespace.h (add_using_directive): Update.
7958 * namespace.c (add_using_directive): Change type of excludes to
7960 * dwarf2read.c (read_import_statement): Use std::vector.
7961 (read_namespace): Update.
7962 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
7964 2017-09-09 Tom Tromey <tom@tromey.com>
7966 * linespec.c (create_sals_line_offset): Use gdb::def_vector.
7968 2017-09-09 Tom Tromey <tom@tromey.com>
7970 * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector.
7972 2017-09-09 Tom Tromey <tom@tromey.com>
7974 * stack.c (func_command): Use gdb::def_vector.
7976 2017-09-09 Tom Tromey <tom@tromey.com>
7978 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional,
7979 ui_out_emit_list, ui_out_emit_tuple.
7980 (mi_cmd_var_update): Likewise.
7982 2017-09-09 Tom Tromey <tom@tromey.com>
7984 * mi/mi-interp.c (mi_user_selected_context_changed): Use
7985 ui_out_redirect_pop.
7986 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
7987 ui_out_redirect_pop.
7988 * utils.c (do_ui_out_redirect_pop)
7989 (make_cleanup_ui_out_redirect_pop): Remove.
7990 * top.c (execute_command_to_string): Use ui_out_redirect_pop.
7991 * utils.h (make_cleanup_ui_out_redirect_pop): Remove.
7992 * ui-out.h (ui_out_redirect_pop): New class.
7994 2017-09-09 Tom Tromey <tom@tromey.com>
7996 * mi/mi-main.c (output_cores): Use ui_out_emit_list.
7997 (list_available_thread_groups, mi_cmd_list_thread_groups)
7998 (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory)
7999 (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected):
8002 2017-09-09 Tom Tromey <tom@tromey.com>
8004 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
8007 2017-09-09 Tom Tromey <tom@tromey.com>
8009 * target.c (flash_erase_command): Use ui_out_emit_tuple.
8010 * stack.c (print_frame): Use ui_out_emit_tuple.
8011 * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple.
8012 (info_spu_mailbox_command, info_spu_dma_command)
8013 (info_spu_proxydma_command): Likewise.
8014 * mi/mi-main.c (mi_cmd_trace_frame_collected): Use
8015 ui_out_emit_tuple, gdb::byte_vector, bin2hex.
8016 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
8018 * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple.
8020 2017-09-09 Tom Tromey <tom@tromey.com>
8022 * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove.
8023 (class ui_out_emit_table): Update comment.
8024 * ui-out.c (do_cleanup_table_end)
8025 (make_cleanup_ui_out_table_begin_end): Remove.
8026 * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table.
8027 (info_spu_dma_cmdlist): Likewise.
8028 * probe.c (info_probes_for_ops): Use ui_out_emit_table.
8029 * darwin-nat-info.c (darwin_debug_regions_recurse): Use
8032 2017-09-09 Tom Tromey <tom@tromey.com>
8034 * thread.c (print_thread_info_1): Use ui_out_emit_table,
8035 ui_out_emit_list, gdb::optional.
8037 2017-09-09 John Baldwin <jhb@FreeBSD.org>
8039 * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat
8041 * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep
8043 * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep
8045 * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype.
8046 * ada-exp.y: Remove _initialize_ada_exp prototype.
8047 * ada-lang.c: Remove _initialize_ada_language prototype.
8048 * ada-tasks.c: Remove _initialize_tasks prototype.
8049 * addrmap.c: Remove _initialize_addrmap prototype.
8050 * agent.c: Remove _initialize_agent prototype.
8051 * aix-thread.c: Remove _initialize_aix_thread prototype.
8052 * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype.
8053 * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype.
8054 * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep
8056 * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype.
8057 * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype.
8058 * alpha-tdep.c: Remove _initialize_alpha_tdep prototype.
8059 * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep
8061 * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep
8063 * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype.
8064 * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype.
8065 * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype.
8066 * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep
8068 * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype.
8069 * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype.
8070 * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype.
8071 * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype.
8072 * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
8073 * amd64-tdep.c: Remove _initialize_amd64_tdep prototype.
8074 * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat
8076 * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep
8078 * annotate.c: Remove _initialize_annotate prototype.
8079 * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype.
8080 * arc-tdep.c: Remove _initialize_arc_tdep prototype.
8081 * arch-utils.c: Remove _initialize_gdbarch_utils prototype.
8082 * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype.
8083 * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype.
8084 * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype.
8085 * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype.
8086 * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep
8088 * arm-tdep.c: Remove _initialize_arm_tdep prototype.
8089 * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype.
8090 * auto-load.c: Remove _initialize_auto_load prototype.
8091 * auxv.c: Remove _initialize_auxv prototype.
8092 * avr-tdep.c: Remove _initialize_avr_tdep prototype.
8093 * ax-gdb.c: Remove _initialize_ax_gdb prototype.
8094 * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype.
8095 * bfin-tdep.c: Remove _initialize_bfin_tdep prototype.
8096 * break-catch-sig.c: Remove _initialize_break_catch_sig prototype.
8097 * break-catch-syscall.c: Remove _initialize_break_catch_syscall
8099 * break-catch-throw.c: Remove _initialize_break_catch_throw
8101 * breakpoint.c: Remove _initialize_breakpoint prototype.
8102 * bsd-uthread.c: Remove _initialize_bsd_uthread prototype.
8103 * btrace.c: Remove _initialize_btrace prototype.
8104 * charset.c: Remove _initialize_charset prototype.
8105 * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype.
8106 * cli/cli-dump.c: Remove _initialize_cli_dump prototype.
8107 * cli/cli-interp.c: Remove _initialize_cli_interp prototype.
8108 * cli/cli-logging.c: Remove _initialize_cli_logging prototype.
8109 * cli/cli-script.c: Remove _initialize_cli_script prototype.
8110 * coff-pe-read.c: Remove _initialize_coff_pe_read prototype.
8111 * coffread.c: Remove _initialize_coffread prototype.
8112 * compile/compile.c: Remove _initialize_compile prototype.
8113 * complaints.c: Remove _initialize_complaints prototype.
8114 * completer.c: Remove _initialize_completer prototype.
8115 * copying.awk: Remove _initialize_copying prototype.
8116 * copying.c: Regenerate.
8117 * core-regset.c: Remove _initialize_core_regset prototype.
8118 * corefile.c: Remove _initialize_core prototype.
8119 * corelow.c: Remove _initialize_corelow prototype.
8120 * cp-abi.c: Remove _initialize_cp_abi prototype.
8121 * cp-namespace.c: Remove _initialize_cp_namespace prototype.
8122 * cp-support.c: Remove _initialize_cp_support prototype.
8123 * cp-valprint.c: Remove _initialize_cp_valprint prototype.
8124 * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype.
8125 * cris-tdep.c: Remove _initialize_cris_tdep prototype.
8126 * ctf.c: Remove _initialize_ctf prototype.
8127 * d-lang.c: Remove _initialize_d_language prototype.
8128 * darwin-nat-info.c: Remove _initialize_darwin_info_commands
8130 * darwin-nat.c: Remove _initialize_darwin_inferior prototype.
8131 * dbxread.c: Remove _initialize_dbxread prototype.
8132 * dcache.c: Remove _initialize_dcache prototype.
8133 * demangle.c: Remove _initialize_demangler prototype.
8134 * disasm-selftests.c: Remove _initialize_disasm_selftests
8136 * disasm.c: Remove _initialize_disasm prototype.
8137 * dtrace-probe.c: Remove _initialize_dtrace_probe prototype.
8138 * dummy-frame.c: Remove _initialize_dummy_frame prototype.
8139 * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame
8141 * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype.
8142 * dwarf2expr.c: Remove _initialize_dwarf2expr prototype.
8143 * dwarf2loc.c: Remove _initialize_dwarf2loc prototype.
8144 * dwarf2read.c: Remove _initialize_dwarf2_read prototype.
8145 * elfread.c: Remove _initialize_elfread prototype.
8146 * exec.c: Remove _initialize_exec prototype.
8147 * extension.c: Remove _initialize_extension prototype.
8148 * f-lang.c: Remove _initialize_f_language prototype.
8149 * f-valprint.c: Remove _initialize_f_valprint prototype.
8150 * fbsd-nat.c: Remove _initialize_fbsd_nat prototype.
8151 * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype.
8152 * filesystem.c: Remove _initialize_filesystem prototype.
8153 * findcmd.c: Remove _initialize_mem_search prototype.
8154 * fork-child.c: Remove _initialize_fork_child prototype.
8155 * frame-base.c: Remove _initialize_frame_base prototype.
8156 * frame-unwind.c: Remove _initialize_frame_unwind prototype.
8157 * frame.c: Remove _initialize_frame prototype.
8158 * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype.
8159 * frv-tdep.c: Remove _initialize_frv_tdep prototype.
8160 * ft32-tdep.c: Remove _initialize_ft32_tdep prototype.
8161 * gcore.c: Remove _initialize_gcore prototype.
8162 * gdb_bfd.c: Remove _initialize_gdb_bfd prototype.
8163 * gdbarch.c: Regenerate.
8164 * gdbarch.sh: Remove _initialize_gdbarch prototype.
8165 * gdbtypes.c: Remove _initialize_gdbtypes prototype.
8166 * gnu-nat.c: Remove _initialize_gnu_nat prototype.
8167 * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype.
8168 * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype.
8169 * go-lang.c: Remove _initialize_go_language prototype.
8170 * go32-nat.c: Remove _initialize_go32_nat prototype.
8171 * guile/guile.c: Remove _initialize_guile prototype.
8172 * h8300-tdep.c: Remove _initialize_h8300_tdep prototype.
8173 * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype.
8174 * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype.
8175 * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype.
8176 * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype.
8177 * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype.
8178 * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype.
8179 * hppa-tdep.c: Remove _initialize_hppa_tdep prototype.
8180 * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype.
8181 * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep
8183 * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep
8185 * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype.
8186 * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype.
8187 * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype.
8188 * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype.
8189 * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype.
8190 * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype.
8191 * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype.
8192 * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype.
8193 * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype.
8194 * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype.
8195 * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype.
8196 * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype.
8197 * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype.
8198 * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
8199 * i386-tdep.c: Remove _initialize_i386_tdep prototype.
8200 * i386-windows-nat.c: Remove _initialize_i386_windows_nat
8202 * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame
8204 * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype.
8205 * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype.
8206 * ia64-tdep.c: Remove _initialize_ia64_tdep prototype.
8207 * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype.
8208 * infcall.c: Remove _initialize_infcall prototype.
8209 * infcmd.c: Remove _initialize_infcmd prototype.
8210 * inferior.c: Remove _initialize_inferiors prototype.
8211 * inflow.c: Remove _initialize_inflow prototype.
8212 * infrun.c: Remove _initialize_infrun prototype.
8213 * interps.c: Remove _initialize_interpreter prototype.
8214 * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype.
8215 * jit.c: Remove _initialize_jit prototype.
8216 * language.c: Remove _initialize_language prototype.
8217 * linux-fork.c: Remove _initialize_linux_fork prototype.
8218 * linux-nat.c: Remove _initialize_linux_nat prototype.
8219 * linux-tdep.c: Remove _initialize_linux_tdep prototype.
8220 * linux-thread-db.c: Remove _initialize_thread_db prototype.
8221 * lm32-tdep.c: Remove _initialize_lm32_tdep prototype.
8222 * m2-lang.c: Remove _initialize_m2_language prototype.
8223 * m32c-tdep.c: Remove _initialize_m32c_tdep prototype.
8224 * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype.
8225 * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype.
8226 * m32r-tdep.c: Remove _initialize_m32r_tdep prototype.
8227 * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype.
8228 * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
8229 * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
8230 * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype.
8231 * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype.
8232 * m68k-tdep.c: Remove _initialize_m68k_tdep prototype.
8233 * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
8234 * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
8235 * machoread.c: Remove _initialize_machoread prototype.
8236 * macrocmd.c: Remove _initialize_macrocmd prototype.
8237 * macroscope.c: Remove _initialize_macroscope prototype.
8238 * maint.c: Remove _initialize_maint_cmds prototype.
8239 * mdebugread.c: Remove _initialize_mdebugread prototype.
8240 * memattr.c: Remove _initialize_mem prototype.
8241 * mep-tdep.c: Remove _initialize_mep_tdep prototype.
8242 * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype.
8243 * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype.
8244 * mi/mi-interp.c: Remove _initialize_mi_interp prototype.
8245 * mi/mi-main.c: Remove _initialize_mi_main prototype.
8246 * microblaze-linux-tdep.c: Remove
8247 _initialize_microblaze_linux_tdep prototype.
8248 * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype.
8249 * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype.
8250 * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype.
8251 * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype.
8252 * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype.
8253 * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype.
8254 * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype.
8255 * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype.
8256 * mips-tdep.c: Remove _initialize_mips_tdep prototype.
8257 * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype.
8258 * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep
8260 * mipsread.c: Remove _initialize_mipsread prototype.
8261 * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep
8263 * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype.
8264 * moxie-tdep.c: Remove _initialize_moxie_tdep prototype.
8265 * msp430-tdep.c: Remove _initialize_msp430_tdep prototype.
8266 * mt-tdep.c: Remove _initialize_mt_tdep prototype.
8267 * nds32-tdep.c: Remove _initialize_nds32_tdep prototype.
8268 * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep
8270 * nios2-tdep.c: Remove _initialize_nios2_tdep prototype.
8271 * nto-procfs.c: Remove _initialize_procfs prototype.
8272 * nto-tdep.c: Remove _initialize_nto_tdep prototype.
8273 * objc-lang.c: Remove _initialize_objc_language prototype.
8274 * objfiles.c: Remove _initialize_objfiles prototype.
8275 * observer.c: Remove observer_test_first_notification_function,
8276 observer_test_second_notification_function,
8277 observer_test_third_notification_function, and
8278 _initialize_observer prototypes.
8279 * opencl-lang.c: Remove _initialize_opencl_language prototypes.
8280 * osabi.c: Remove _initialize_gdb_osabi prototype.
8281 * osdata.c: Remove _initialize_osdata prototype.
8282 * p-valprint.c: Remove _initialize_pascal_valprint prototype.
8283 * parse.c: Remove _initialize_parse prototype.
8284 * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype.
8285 * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype.
8286 * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype.
8287 * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype.
8288 * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype.
8289 * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype.
8290 * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype.
8291 * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype.
8292 * printcmd.c: Remove _initialize_printcmd prototype.
8293 * probe.c: Remove _initialize_probe prototype.
8294 * proc-api.c: Remove _initialize_proc_api prototype.
8295 * proc-events.c: Remove _initialize_proc_events prototype.
8296 * proc-service.c: Remove _initialize_proc_service prototype.
8297 * procfs.c: Remove _initialize_procfs prototype.
8298 * psymtab.c: Remove _initialize_psymtab prototype.
8299 * python/python.c: Remove _initialize_python prototype.
8300 * ravenscar-thread.c: Remove _initialize_ravenscar prototype.
8301 * record-btrace.c: Remove _initialize_record_btrace prototype.
8302 * record-full.c: Remove _initialize_record_full prototype.
8303 * record.c: Remove _initialize_record prototype.
8304 * regcache.c: Remove _initialize_regcache prototype.
8305 * reggroups.c: Remove _initialize_reggroup prototype.
8306 * remote-notif.c: Remove _initialize_notif prototype.
8307 * remote-sim.c: Remove _initialize_remote_sim prototype.
8308 * remote.c: Remove _initialize_remote prototype.
8309 * reverse.c: Remove _initialize_reverse prototype.
8310 * rl78-tdep.c: Remove _initialize_rl78_tdep prototype.
8311 * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype.
8312 * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep
8314 * rs6000-nat.c: Remove _initialize_rs6000_nat prototype.
8315 * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype.
8316 * rust-exp.y: Remove _initialize_rust_exp prototype.
8317 * rx-tdep.c: Remove _initialize_rx_tdep prototype.
8318 * s390-linux-nat.c: Remove _initialize_s390_nat prototype.
8319 * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype.
8320 * score-tdep.c: Remove _initialize_score_tdep prototype.
8321 * selftest-arch.c: Remove _initialize_selftests_foreach_arch
8323 * ser-go32.c: Remove _initialize_ser_dos prototype.
8324 * ser-mingw.c: Remove _initialize_ser_windows prototype.
8325 * ser-pipe.c: Remove _initialize_ser_pipe prototype.
8326 * ser-tcp.c: Remove _initialize_ser_tcp prototype.
8327 * ser-unix.c: Remove _initialize_ser_hardwire prototype.
8328 * serial.c: Remove _initialize_serial prototype.
8329 * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype.
8330 * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype.
8331 * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype.
8332 * sh-tdep.c: Remove _initialize_sh_tdep prototype.
8333 * skip.c: Remove _initialize_step_skip prototype.
8334 * sol-thread.c: Remove _initialize_sol_thread prototype.
8335 * solib-aix.c: Remove _initialize_solib_aix prototype.
8336 * solib-darwin.c: Remove _initialize_darwin_solib prototype.
8337 * solib-dsbt.c: Remove _initialize_dsbt_solib prototype.
8338 * solib-frv.c: Remove _initialize_frv_solib prototype.
8339 * solib-spu.c: Remove _initialize_spu_solib prototype.
8340 * solib-svr4.c: Remove _initialize_svr4_solib prototype.
8341 * solib-target.c: Remove _initialize_solib_target prototype.
8342 * solib.c: Remove _initialize_solib prototype.
8343 * source.c: Remove _initialize_source prototype.
8344 * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype.
8345 * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep
8347 * sparc-nat.c: Remove _initialize_sparc_nat prototype.
8348 * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype.
8349 * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype.
8350 * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep
8352 * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype.
8353 * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype.
8354 * sparc-tdep.c: Remove _initialize_sparc_tdep prototype.
8355 * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat
8357 * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep
8359 * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat
8361 * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep
8363 * sparc64-nat.c: Remove _initialize_sparc64_nat prototype.
8364 * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat
8366 * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep
8368 * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat
8370 * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep
8372 * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep
8374 * spu-linux-nat.c: Remove _initialize_spu_nat prototype.
8375 * spu-multiarch.c: Remove _initialize_spu_multiarch prototype.
8376 * spu-tdep.c: Remove _initialize_spu_tdep prototype.
8377 * stabsread.c: Remove _initialize_stabsread prototype.
8378 * stack.c: Remove _initialize_stack prototype.
8379 * stap-probe.c: Remove _initialize_stap_probe prototype.
8380 * std-regs.c: Remove _initialize_frame_reg prototype.
8381 * symfile-debug.c: Remove _initialize_symfile_debug prototype.
8382 * symfile-mem.c: Remove _initialize_symfile_mem prototype.
8383 * symfile.c: Remove _initialize_symfile prototype.
8384 * symmisc.c: Remove _initialize_symmisc prototype.
8385 * symtab.c: Remove _initialize_symtab prototype.
8386 * target-dcache.c: Remove _initialize_target_dcache prototype.
8387 * target-descriptions.c: Remove _initialize_target_descriptions
8389 * thread.c: Remove _initialize_thread prototype.
8390 * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep
8392 * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype.
8393 * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype.
8394 * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep
8396 * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype.
8397 * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype.
8398 * tracefile.c: Remove _initialize_tracefile prototype.
8399 * tracepoint.c: Remove _initialize_tracepoint prototype.
8400 * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype.
8401 * tui/tui-interp.c: Remove _initialize_tui_interp prototype.
8402 * tui/tui-layout.c: Remove _initialize_tui_layout prototype.
8403 * tui/tui-regs.c: Remove _initialize_tui_regs prototype.
8404 * tui/tui-stack.c: Remove _initialize_tui_stack prototype.
8405 * tui/tui-win.c: Remove _initialize_tui_win prototype.
8406 * tui/tui.c: Remove _initialize_tui prototype.
8407 * typeprint.c: Remove _initialize_typeprint prototype.
8408 * user-regs.c: Remove _initialize_user_regs prototype.
8409 * utils.c: Remove _initialize_utils prototype.
8410 * v850-tdep.c: Remove _initialize_v850_tdep prototype.
8411 * valarith.c: Remove _initialize_valarith prototype.
8412 * valops.c: Remove _initialize_valops prototype.
8413 * valprint.c: Remove _initialize_valprint prototype.
8414 * value.c: Remove _initialize_values prototype.
8415 * varobj.c: Remove _initialize_varobj prototype.
8416 * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype.
8417 * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype.
8418 * vax-tdep.c: Remove _initialize_vax_tdep prototype.
8419 * windows-nat.c: Remove _initialize_windows_nat,
8420 _initialize_check_for_gdb_ini, and _initialize_loadable
8422 * windows-tdep.c: Remove _initialize_windows_tdep prototype.
8423 * xcoffread.c: Remove _initialize_xcoffread prototype.
8424 * xml-support.c: Remove _initialize_xml_support prototype.
8425 * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype.
8426 * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat
8428 * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep
8430 * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype.
8432 2017-09-08 Keith Seitz <keiths@redhat.com>
8434 * dwarf2read.c (struct field_info) <fnfields>: Remove unused
8437 2017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com>
8439 * f-valprint.c (f_val_print): Remove check for one byte
8440 sized integers. Remove printing of character type.
8442 2017-09-08 Frank Penczek <frank.penczek@intel.com>
8443 Christoph Weinmann <christoph.t.weinmann@intel.com>
8444 Bernhard Heckel <bernhard.heckel@intel.com>
8446 * f-typeprint.c (f_type_print_base): Use fprintfi_filtered
8447 to maintain proper indentation when printing pointers/refs.
8449 2017-09-07 Joel Brobecker <brobecker@adacore.com>
8453 2017-09-07 Joel Brobecker <brobecker@adacore.com>
8455 * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell.
8457 2017-09-05 Tom Tromey <tom@tromey.com>
8459 * parse.c (funcall_chain): Now a std::vector.
8460 (start_arglist, end_arglist): Simplify.
8461 (free_funcalls): Remove.
8462 (parse_exp_in_context_1): Remove cleanup.
8464 2017-09-05 Tom Tromey <tom@tromey.com>
8466 * go-exp.y (go_parse): Don't create a cleanup.
8468 2017-09-05 Tom Tromey <tom@tromey.com>
8470 * d-exp.y (PrimaryExpression): Use std::string.
8471 (d_parse): Don't create a cleanup.
8473 2017-09-05 Tom Tromey <tom@tromey.com>
8475 * utils.c (do_clear_parser_state): Remove.
8476 (make_cleanup_clear_parser_state): Remove.
8477 * p-exp.y (pascal_parse): Use scoped_restore.
8478 * m2-exp.y (m2_parse): Use scoped_restore.
8479 * f-exp.y (f_parse): Use scoped_restore.
8480 * d-exp.y (d_parse): Use scoped_restore.
8481 * c-exp.y (c_parse): Use scoped_restore.
8482 * ada-exp.y (ada_parse): Use scoped_restore.
8483 * utils.h (make_cleanup_clear_parser_state): Remove.
8485 2017-09-06 Keith Seitz <keiths@redhat.com>
8487 * dwarf2read.c (dw2_linkage_name_attr): New function.
8488 (dw2_linkage_name): New function.
8489 (dwarf2_compute_name, dwarf2_physname, read_call_site_scope)
8490 (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name.
8491 (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr.
8493 2017-09-06 Kamil Rytarowski <n54@gmx.com>
8495 * config/djgpp/djconfig.sh: Correct shell portability issue.
8497 2017-09-06 Kamil Rytarowski <n54@gmx.com>
8499 * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD.
8501 2017-09-06 John Baldwin <jhb@FreeBSD.org>
8503 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
8504 * NEWS: Mention new FreeBSD/mips native configuration.
8505 * configure.host: Add aarch64*-*-freebsd*.
8506 * configure.nat: Likewise.
8507 * aarch64-fbsd-nat.c: New file.
8509 2017-09-06 John Baldwin <jhb@FreeBSD.org>
8511 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o.
8512 (ALLDEPFILES): Add aarch64-fbsd-tdep.c.
8513 * NEWS: Mention new FreeBSD/aarch64 target.
8514 * configure.tgt: Add aarch64*-*-freebsd*.
8515 * aarch64-fbsd-tdep.c: New file.
8516 * aarch64-fbsd-tdep.h: New file.
8518 2017-09-06 Kamil Rytarowski <n54@gmx.com>
8520 * MAINTAINERS (Write After Approval): Add Kamil Rytarowski.
8522 2017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
8524 * parse.c (find_minsym_type_and_address): Don't relocate addresses
8527 2017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8529 * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
8532 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
8534 * infrun.c (follow_exec): Call add_thread after
8535 target_find_description.
8537 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
8539 * infrun.c (handle_inferior_event_1): When exec'ing, read
8540 stop_pc after follow_exec.
8542 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
8544 * remote.c (process_g_packet): Update error message.
8546 2017-09-05 Yao Qi <yao.qi@linaro.org>
8548 * configure.tgt (gdb_target_obs): Add i386.o for x86_64-*
8551 2017-09-05 Pedro Alves <palves@redhat.com>
8553 * eval.c (eval_call, evaluate_funcall): New functions, factored
8555 (evaluate_subexp_standard): ... this.
8557 2017-09-05 Yao Qi <yao.qi@linaro.org>
8559 * amd64-tdep.c (amd64_target_description): Create target
8561 (_initialize_amd64_tdep): Don't call functions
8562 initialize_tdesc_amd64_*. Add self tests.
8563 * arch/amd64.c (amd64_create_target_description): Add parameter
8564 is_linux. Call set_tdesc_osabi if is_linux is true.
8565 * arch/amd64.h (amd64_create_target_description): Update the
8567 * arch/i386.c (i386_create_target_description): Add parameter
8568 is_linux. Call set_tdesc_osabi if is_linux is true.
8569 * arch/i386.h (i386_create_target_description): Update
8571 * configure.tgt: Add i386.o to gdb_target_obs.
8572 * features/Makefile (XMLTOC): Remove i386/*.xml.
8573 * features/i386/amd64-avx-avx512.c: Remove.
8574 * features/i386/amd64-avx-mpx-avx512-pku.c: Remove.
8575 * features/i386/amd64-avx-mpx.c: Remove.
8576 * features/i386/amd64-avx.c: Remove.
8577 * features/i386/amd64-mpx.c: Remove.
8578 * features/i386/amd64.c: Remove.
8579 * features/i386/i386-avx-avx512.c: Remove.
8580 * features/i386/i386-avx-mpx-avx512-pku.c: Remove.
8581 * features/i386/i386-avx-mpx.c: Remove.
8582 * features/i386/i386-avx.c: Remove.
8583 * features/i386/i386-mmx.c: Remove.
8584 * features/i386/i386-mpx.c: Remove.
8585 * features/i386/i386.c: Remove.
8586 * i386-tdep.c: Don't include features/i386/i386*.c., include
8587 target-descriptions.h and arch/i386.h.
8588 (i386_target_description): Create target descriptions.
8589 (i386_gdbarch_init): Don't call initialize_tdesc_i386_*
8590 functions. Do self tests.
8592 2017-09-05 Yao Qi <yao.qi@linaro.org>
8594 * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml.
8595 * features/i386/amd64-avx-avx512-linux.c: Removed.
8596 * features/i386/amd64-avx-linux.c: Removed.
8597 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed.
8598 * features/i386/amd64-avx-mpx-linux.c: Removed.
8599 * features/i386/amd64-linux.c: Removed.
8600 * features/i386/amd64-mpx-linux.c: Removed.
8601 * features/i386/x32-avx-avx512-linux.c: Removed.
8602 * features/i386/x32-avx-linux.c: Removed.
8603 * features/i386/x32-linux.c: Removed.
8605 2017-09-05 Yao Qi <yao.qi@linaro.org>
8607 * amd64-linux-tdep.c: Include arch/amd64.h. Don't include
8609 (amd64_linux_read_description): Call
8610 amd64_create_target_description.
8611 * arch/amd64.c: New file.
8612 * arch/amd64.h: New file.
8613 * configure.tgt (x86_64-*-linux*): Append amd64.o.
8614 * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o.
8616 2017-09-05 Yao Qi <yao.qi@linaro.org>
8618 * amd64-linux-tdep.c: Don't include amd64-XXX-linux and
8619 x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c.
8620 (amd64_linux_read_description): Create target descriptions.
8621 (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX
8622 functions. Add unit tests.
8623 * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and
8625 * features/i386/64bit-avx.c: Generated.
8626 * features/i386/64bit-avx512.c: Generated.
8627 * features/i386/64bit-core.c: Generated.
8628 * features/i386/64bit-linux.c: Generated.
8629 * features/i386/64bit-mpx.c: Generated.
8630 * features/i386/64bit-pkeys.c: Generated.
8631 * features/i386/64bit-segments.c: Generated.
8632 * features/i386/64bit-sse.c: Generated.
8633 * features/i386/x32-core.c: Generated.
8634 * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature
8635 c files for amd64-linux and x32-linux.
8637 2017-09-05 Yao Qi <yao.qi@linaro.org>
8639 * amd64-linux-tdep.c (amd64_linux_read_description): New
8641 (amd64_linux_core_read_description): Call
8642 amd64_linux_read_description.
8643 (amd64_linux_init_abi): Likewise.
8644 (amd64_x32_linux_init_abi): Likewise.
8645 * amd64-linux-tdep.h (amd64_linux_read_description): Declare.
8646 * x86-linux-nat.c (x86_linux_read_description): Call
8647 amd64_linux_read_description.
8649 2017-09-05 Yao Qi <yao.qi@linaro.org>
8651 * amd64-linux-tdep.c (amd64_linux_core_read_description): Update
8654 2017-09-05 Yao Qi <yao.qi@linaro.org>
8656 * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml.
8657 * features/i386/i386-avx-avx512-linux.c: Remove.
8658 * features/i386/i386-avx-linux.c: Remove.
8659 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove.
8660 * features/i386/i386-avx-mpx-linux.c: Remove.
8661 * features/i386/i386-linux.c: Remove.
8662 * features/i386/i386-mmx-linux.c: Remove.
8663 * features/i386/i386-mpx-linux.c: Remove.
8665 2017-09-05 Yao Qi <yao.qi@linaro.org>
8667 * Makefile.in (ALL_TARGET_OBS): Add i386.o.
8668 (SFILES): Add arch/i386.c.
8669 (HFILES_NO_SRCDIR): Add arch/i386.h.
8670 * arch/i386.c: New file.
8671 * arch/i386.h: New file.
8672 * arch/tdesc.h (allocate_target_description): Declare.
8673 (set_tdesc_architecture): Declare.
8674 (set_tdesc_osabi): Declare.
8675 * configure.tgt (i[34567]86-*-linux*): Add i386.o.
8676 * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c.
8677 include arch/i386.h.
8678 (i386_linux_read_description): Remove code and call
8679 i386_create_target_description.
8680 (set_tdesc_architecture): New function.
8681 (set_tdesc_osabi): New function.
8682 * target-descriptions.h (allocate_target_description): Remove.
8684 2017-09-05 Yao Qi <yao.qi@linaro.org>
8686 * arch/tdesc.h (tdesc_create_feature): Add an argument xml.
8687 * target-descriptions.c (tdesc_create_feature): Likewise, and
8689 * features/i386/32bit-avx.c: Re-generated.
8690 * features/i386/32bit-avx512.c: Re-generated.
8691 * features/i386/32bit-core.c: Re-generated.
8692 * features/i386/32bit-linux.c: Re-generated.
8693 * features/i386/32bit-mpx.c: Re-generated.
8694 * features/i386/32bit-pkeys.c: Re-generated.
8695 * features/i386/32bit-sse.c: Re-generated.
8697 2017-09-05 Yao Qi <yao.qi@linaro.org>
8699 * regformats/regdef.h (struct reg): Override operator == and !=.
8701 2017-09-05 Yao Qi <yao.qi@linaro.org>
8703 * arch/tdesc.h: New file.
8704 * regformats/regdat.sh: Generate code using tdesc_create_reg.
8705 * target-descriptions.c: Update comments.
8706 * target-descriptions.h: Include "arch/tdesc.h". Remove the
8708 * features/i386/32bit-avx.c: Re-generated.
8709 * features/i386/32bit-avx512.c: Re-generated.
8710 * features/i386/32bit-core.c: Re-generated.
8711 * features/i386/32bit-linux.c: Re-generated.
8712 * features/i386/32bit-mpx.c: Re-generated.
8713 * features/i386/32bit-pkeys.c: Re-generated.
8714 * features/i386/32bit-sse.c: Re-generated.
8716 2017-09-05 Yao Qi <yao.qi@linaro.org>
8718 * regformats/regdat.sh: Update generated code.
8720 2017-09-05 Yao Qi <yao.qi@linaro.org>
8722 * regformats/regdat.sh: Adjust code order.
8724 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
8726 * expprint.c (dump_subexp_body_standard): Use constant format
8727 string in fprintf_filtered call.
8729 2017-09-04 John Baldwin <jhb@FreeBSD.org>
8731 * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and
8733 * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX.
8735 2017-09-04 John Baldwin <jhb@FreeBSD.org>
8737 * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H.
8739 2017-09-04 John Baldwin <jhb@FreeBSD.org>
8741 * bsd-kvm.o: Define _KMEMUSER.
8742 * configure.ac: Define _KMEMUSER when checking for "struct lwp".
8743 * configure: Regenerate.
8745 2017-09-04 John Baldwin <jhb@FreeBSD.org>
8747 * amd64-fbsd-nat.c: Add include of "x86-xstate.h".
8748 * i386-fbsd-nat.c: Likewise.
8750 2017-09-04 John Baldwin <jhb@FreeBSD.org>
8752 * unittests/array-view-selftests.c: Add include of <array>.
8754 2017-09-04 John Baldwin <jhb@FreeBSD.org>
8756 * spu-tdep.c (flush_ea_cache): Add missing argument to
8757 call_function_by_hand.
8759 2017-09-04 Pedro Alves <palves@redhat.com>
8761 * NEWS (Safer support for debugging with no debug info): New.
8763 2017-09-04 Pedro Alves <palves@redhat.com>
8765 * c-exp.y (function_method, function_method_void): Add current
8766 instance flags to TYPE_INSTANCE.
8767 * dwarf2read.c (check_modifier): New.
8768 (compute_delayed_physnames): Assert that only C++ adds delayed
8769 physnames. Mark fn_fields as const/volatile depending on
8771 * eval.c (make_params): New type_instance_flags parameter. Use
8772 it as the new type's instance flags.
8773 (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance
8774 flags element and pass it to make_params.
8775 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle
8776 instance flags element.
8777 (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise.
8778 * gdbtypes.h: Include "enum-flags.h".
8779 (type_instance_flags): New enum-flags type.
8780 (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC)
8781 (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean.
8782 * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust.
8783 (follow_type_instance_flags): New function.
8784 (operator_check_standard) <TYPE_INSTANCE>: Adjust.
8785 * parser-defs.h (follow_type_instance_flags): Declare.
8786 * valops.c (value_struct_elt_for_reference): const/volatile must
8789 2017-09-04 Pedro Alves <palves@redhat.com>
8791 * cp-namespace.c (cp_search_static_and_baseclasses): Handle
8792 function/method scopes; lookup the nested name as a function local
8795 2017-09-04 Pedro Alves <palves@redhat.com>
8797 (%type <voidval>): Add function_method.
8798 * c-exp.y (exp): New production for calls with no arguments.
8799 (function_method, function_method_void_or_typelist): New
8801 (exp): New production for "method()::static_var".
8802 * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR.
8803 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
8804 Handle OP_FUNC_STATIC_VAR.
8805 * parse.c (operator_length_standard):
8806 Handle OP_FUNC_STATIC_VAR.
8808 2017-09-04 Pedro Alves <palves@redhat.com>
8810 * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS
8812 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
8814 * parse.c (operator_length_standard, operator_check_standard):
8816 * std-operator.def (UNOP_MEMVAL_TLS): Delete.
8818 2017-09-04 Pedro Alves <palves@redhat.com>
8820 * ax-gdb.c: Include "typeprint.h".
8821 (gen_expr_for_cast): New function.
8822 (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it.
8823 <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's
8825 * dwarf2read.c (new_symbol_full): Fallback to int instead of
8826 nodebug_data_symbol.
8827 * eval.c: Include "typeprint.h".
8828 (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>:
8829 Error out if symbol has unknown type.
8830 <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to
8831 evaluate_subexp_for_cast.
8832 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle
8834 (evaluate_subexp_for_cast): New function.
8835 * gdbtypes.c (init_nodebug_var_type): New function.
8836 (objfile_type): Use it to initialize types of variables with no
8838 * typeprint.c (error_unknown_type): New.
8839 * typeprint.h (error_unknown_type): New declaration.
8840 * compile/compile-c-types.c (convert_type_basic): Handle
8841 TYPE_CODE_ERROR; warn and fallback to int for variables with
8844 2017-09-04 Pedro Alves <palves@redhat.com>
8846 * eval.c (evaluate_var_value): New function, factored out from ...
8847 (evaluate_subexp_standard): ... here.
8849 2017-09-04 Pedro Alves <palves@redhat.com>
8851 * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>:
8852 Remove useless assignments to 'op'.
8854 2017-09-04 Pedro Alves <palves@redhat.com>
8856 * eval.c (eval_skip_value): New function.
8857 (evaluate_subexp_standard): Use it.
8859 2017-09-04 Pedro Alves <palves@redhat.com>
8861 * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract
8862 function name from symbol/minsym and pass it to
8863 error_call_unknown_return_type.
8865 2017-09-04 Pedro Alves <palves@redhat.com>
8867 * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE.
8868 * ax-gdb.c (gen_msym_var_ref): New function.
8869 (gen_expr): Handle OP_VAR_MSYM_VALUE.
8870 * eval.c (evaluate_var_msym_value): New function.
8871 * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE.
8872 <OP_FUNCALL>: Extract function name from symbol/minsym and pass it
8873 to call_function_by_hand.
8874 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
8875 Handle OP_VAR_MSYM_VALUE.
8876 (union exp_element) <msymbol>: New field.
8877 * minsyms.h (struct type): Forward declare.
8878 (find_minsym_type_and_address): Declare.
8879 * parse.c (write_exp_elt_msym): New function.
8880 (write_exp_msymbol): Delete, refactored as ...
8881 (find_minsym_type_and_address): ... this new function.
8882 (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE.
8883 (operator_length_standard, operator_check_standard): Handle
8885 * std-operator.def (OP_VAR_MSYM_VALUE): New.
8887 2017-09-04 Pedro Alves <palves@redhat.com>
8889 * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle
8890 TYPE_GNU_IFUNC specially here. Throw error if return type is
8892 * ada-typeprint.c (print_func_type): Handle functions with unknown
8894 * c-typeprint.c (c_type_print_base): Handle functions and methods
8895 with unknown return type.
8896 * compile/compile-c-symbols.c (convert_symbol_bmsym)
8897 <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol.
8898 * compile/compile-c-types.c: Include "objfiles.h".
8899 (convert_func): For functions with unknown return type, warn and
8901 * compile/compile-object-run.c (compile_object_run): Adjust call
8902 to call_function_by_hand_dummy.
8903 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to
8904 call_function_by_hand.
8905 * eval.c (evaluate_subexp_standard): Adjust calls to
8906 call_function_by_hand. Handle functions and methods with unknown
8907 return type. Pass expect_type to call_function_by_hand.
8908 * f-typeprint.c (f_type_print_base): Handle functions with unknown
8910 * gcore.c (call_target_sbrk): Adjust call to
8911 call_function_by_hand.
8912 * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL
8913 return type instead of int. Make nodebug_text_gnu_ifunc_symbol be
8914 an integer address type instead of nodebug.
8915 * guile/scm-value.c (gdbscm_value_call): Adjust call to
8916 call_function_by_hand.
8917 * infcall.c (error_call_unknown_return_type): New function.
8918 (call_function_by_hand): New "default_return_type" parameter.
8920 (call_function_by_hand_dummy): New "default_return_type"
8921 parameter. Use it instead of defaulting to int. If there's no
8922 default and the return type is unknown, throw an error. If
8923 there's a default return type, and the called function has no
8924 debug info, then assume the function is prototyped.
8925 * infcall.h (call_function_by_hand, call_function_by_hand_dummy):
8926 New "default_return_type" parameter.
8927 (error_call_unknown_return_type): New declaration.
8928 * linux-fork.c (call_lseek): Cast return type of lseek.
8929 (inferior_call_waitpid, checkpoint_command): Adjust calls to
8930 call_function_by_hand.
8931 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust
8932 calls to call_function_by_hand.
8933 * m2-typeprint.c (m2_procedure): Handle functions with unknown
8935 * objc-lang.c (lookup_objc_class, lookup_child_selector)
8936 (value_nsstring, print_object_command): Adjust calls to
8937 call_function_by_hand.
8938 * p-typeprint.c (pascal_type_print_varspec_prefix): Handle
8939 functions with unknown return type.
8940 (pascal_type_print_func_varspec_suffix): New function.
8941 (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC,
8942 TYPE_CODE_METHOD>: Use it.
8943 * python/py-value.c (valpy_call): Adjust call to
8944 call_function_by_hand.
8945 * rust-lang.c (rust_evaluate_funcall): Adjust call to
8946 call_function_by_hand.
8947 * valarith.c (value_x_binop, value_x_unop): Adjust calls to
8948 call_function_by_hand.
8949 * valops.c (value_allocate_space_in_inferior): Adjust call to
8950 call_function_by_hand.
8951 * typeprint.c (type_print_unknown_return_type): New function.
8952 * typeprint.h (type_print_unknown_return_type): New declaration.
8954 2017-09-04 Pedro Alves <palves@redhat.com>
8956 * gdbtypes.c (lookup_function_type_with_arguments): Mark function
8957 types with more than one parameter as prototyped.
8959 2017-09-04 Pedro Alves <palves@redhat.com>
8961 * cli/cli-cmds.c (print_disassembly, disassemble_current_function)
8962 (disassemble_command): Use gdb_disassembly_flags instead of bare
8964 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn)
8965 (dump_insns, do_mixed_source_and_assembly_deprecated)
8966 (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly):
8967 Use gdb_disassembly_flags instead of bare int.
8968 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN)
8969 (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME)
8970 (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE)
8971 (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're...
8972 (enum gdb_disassembly_flag): ... values of this new enumeration.
8973 (gdb_disassembly_flags): Define.
8975 (gdb_pretty_print_disassembler::pretty_print_insn): Use it.
8976 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use
8977 gdb_disassembly_flags instead of bare int.
8978 * record-btrace.c (btrace_insn_history)
8979 (record_btrace_insn_history, record_btrace_insn_history_range)
8980 (record_btrace_insn_history_from): Use gdb_disassembly_flags
8981 instead of bare int.
8982 * record.c (get_insn_history_modifiers, cmd_record_insn_history):
8983 Use gdb_disassembly_flags instead of bare int.
8984 * target-debug.h (target_debug_print_gdb_disassembly_flags):
8986 * target-delegates.c: Regenerate.
8987 * target.c (target_insn_history, target_insn_history_from)
8988 (target_insn_history_range): Use gdb_disassembly_flags instead of
8990 * target.h: Include "disasm.h".
8991 (struct target_ops) <to_insn_history, to_insn_history_from,
8992 to_insn_history_range>: Use gdb_disassembly_flags instead of bare
8994 (target_insn_history, target_insn_history_from)
8995 (target_insn_history_range): Use gdb_disassembly_flags instead of
8998 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
9000 * cli/cli-script.c (build_command_line): For if/while commands,
9001 check whether args is empty.
9003 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
9005 * cli/cli-script.h (enum misc_command_type): Move from defs.h.
9006 (enum command_control_type): Likewise.
9007 (struct command_line): Likewise.
9008 (free_command_lines): Likewise.
9009 (struct command_lines_deleter): Likewise.
9010 (command_line_up): Likewise.
9011 (read_command_lines): Likewise.
9012 (read_command_lines_1): Likewise.
9013 * defs.h (enum misc_command_type): Move to cli/cli-script.h.
9014 (enum command_control_type): Likewise.
9015 (struct command_line): Likewise.
9016 (free_command_lines): Likewise.
9017 (struct command_lines_deleter): Likewise.
9018 (command_line_up): Likewise.
9019 (read_command_lines): Likewise.
9020 (read_command_lines_1): Likewise.
9021 * breakpoint.h: Include cli/cli-script.h.
9022 * extension-priv.h: Likewise.
9023 * gdbcmd.h: Likewise.
9025 2017-09-04 Pedro Alves <palves@redhat.com>
9027 * ada-lang.c (is_known_support_routine): Move sal declaration to
9028 where it is initialized.
9029 * breakpoint.c (create_internal_breakpoint, init_catchpoint)
9030 (parse_breakpoint_sals, decode_static_tracepoint_spec)
9031 (clear_command, update_static_tracepoint): Remove init_sal
9032 references. Move declarations closer to initializations.
9033 * cli/cli-cmds.c (list_command): Move sal declarations closer to
9035 * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal
9036 references. Move sal declarations closer to initializations.
9037 * frame.c (find_frame_sal): Return a symtab_and_line via function
9038 return instead of output parameter. Remove init_sal references.
9039 * frame.h (find_frame_sal): Return a symtab_and_line via function
9040 return instead of output parameter.
9041 * guile/scm-frame.c (gdbscm_frame_sal): Adjust.
9042 * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new
9044 (gdbscm_find_pc_line): Remove init_sal reference.
9045 * infcall.c (call_function_by_hand_dummy): Remove init_sal
9046 references. Move declarations closer to initializations.
9047 * infcmd.c (set_step_frame): Update. Move declarations closer to
9049 (finish_backward): Remove init_sal references. Move declarations
9050 closer to initializations.
9051 * infrun.c (process_event_stop_test, handle_step_into_function)
9052 (insert_hp_step_resume_breakpoint_at_frame)
9053 (insert_step_resume_breakpoint_at_caller): Likewise.
9054 * linespec.c (create_sals_line_offset, decode_digits_ordinary)
9055 (symbol_to_sal): Likewise.
9056 * probe.c (parse_probes_in_pspace): Remove init_sal reference.
9057 * python/py-frame.c (frapy_find_sal): Move sal declaration closer
9058 to its initialization.
9059 * reverse.c (save_bookmark_command): Use new/delete. Remove
9060 init_sal references. Move declarations closer to initializations.
9061 * source.c (get_current_source_symtab_and_line): Remove brace
9063 (set_current_source_symtab_and_line): Now takes the sal by const
9064 reference. Remove brace initialization.
9065 (line_info): Remove init_sal reference.
9066 * source.h (set_current_source_symtab_and_line): Now takes a
9067 symtab_and_line via const reference.
9068 * stack.c (set_current_sal_from_frame): Adjust.
9069 (print_frame_info): Adjust.
9070 (get_last_displayed_sal): Return the sal via function return
9071 instead of via output parameter. Simplify.
9072 (frame_info): Adjust.
9073 * stack.h (get_last_displayed_sal): Return the sal via function
9074 return instead of via output parameter.
9075 * symtab.c (init_sal): Delete.
9076 (find_pc_sect_line): Remove init_sal references. Move
9077 declarations closer to initializations.
9078 (find_function_start_sal): Remove init_sal references. Move
9079 declarations closer to initializations.
9080 * symtab.h (struct symtab_and_line): In-class initialize all
9082 * tracepoint.c (set_traceframe_context)
9083 (print_one_static_tracepoint_marker): Remove init_sal references.
9084 Move declarations closer to initializations.
9085 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust.
9086 * tui/tui-stack.c (tui_show_frame_info): Adjust. Move
9087 declarations closer to initializations.
9088 * tui/tui-winsource.c (tui_update_source_window_as_is): Remove
9089 init_sal references. Adjust.
9091 2017-09-04 Pedro Alves <palves@redhat.com>
9093 * ax-gdb.c (agent_command_1): Use range-for.
9094 * break-catch-throw.c (re_set_exception_catchpoint): Update.
9095 * breakpoint.c: Include "common/array-view.h".
9096 (init_breakpoint_sal, create_breakpoint_sal): Change sals
9097 parameter from struct symtabs_and_lines to
9098 array_view<symtab_and_line>. Adjust. Use range-for. Update.
9099 (breakpoint_sals_to_pc): Change sals parameter from struct
9100 symtabs_and_lines to std::vector reference.
9101 (check_fast_tracepoint_sals): Change sals parameter from struct
9102 symtabs_and_lines to std::array_view. Use range-for.
9103 (decode_static_tracepoint_spec): Return a std::vector instead of
9104 symtabs_and_lines. Update.
9105 (create_breakpoint): Update.
9106 (break_range_command, until_break_command, clear_command): Update.
9107 (base_breakpoint_decode_location, bkpt_decode_location)
9108 (bkpt_probe_create_sals_from_location)
9109 (bkpt_probe_decode_location, tracepoint_decode_location)
9110 (tracepoint_probe_decode_location)
9111 (strace_marker_create_sals_from_location): Return a std::vector
9112 instead of symtabs_and_lines.
9113 (strace_marker_create_breakpoints_sal): Update.
9114 (strace_marker_decode_location): Return a std::vector instead of
9115 symtabs_and_lines. Update.
9116 (update_breakpoint_locations): Change struct symtabs_and_lines
9117 parameters to gdb::array_view. Adjust.
9118 (location_to_sals): Return a std::vector instead of
9119 symtabs_and_lines. Update.
9120 (breakpoint_re_set_default): Use std::vector instead of struct
9122 (decode_location_default): Return a std::vector instead of
9123 symtabs_and_lines. Update.
9124 * breakpoint.h: Include "common/array-view.h".
9125 (struct breakpoint_ops) <decode_location>: Now returns a
9126 std::vector instead of returning a symtabs_and_lines via output
9128 (update_breakpoint_locations): Change sals parameters to use
9130 * cli/cli-cmds.c (edit_command, list_command): Update to use
9131 std::vector and gdb::array_view.
9132 (ambiguous_line_spec): Adjust to use gdb::array_view and
9134 (compare_symtabs): Rename to ...
9135 (cmp_symtabs): ... this. Change parameters to symtab_and_line
9136 const reference and adjust.
9137 (filter_sals): Rewrite using std::vector and standard algorithms.
9138 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify.
9139 (jump_command): Update to use std::vector.
9140 * linespec.c (struct linespec_state) <canonical_names>: Update
9142 (add_sal_to_sals_basic): Delete.
9143 (add_sal_to_sals, filter_results, convert_results_to_lsals)
9144 (decode_line_2, create_sals_line_offset)
9145 (convert_address_location_to_sals, convert_linespec_to_sals)
9146 (convert_explicit_location_to_sals, parse_linespec)
9147 (event_location_to_sals, decode_line_full, decode_line_1)
9148 (decode_line_with_current_source)
9149 (decode_line_with_last_displayed, decode_objc)
9150 (decode_digits_list_mode, decode_digits_ordinary, minsym_found)
9151 (linespec_result::~linespec_result): Adjust to use std::vector
9152 instead of symtabs_and_lines.
9153 * linespec.h (linespec_sals::sals): Now a std::vector.
9154 (struct linespec_result): Use std::vector, bool, and in-class
9156 (decode_line_1, decode_line_with_current_source)
9157 (decode_line_with_last_displayed): Return std::vector.
9158 * macrocmd.c (info_macros_command): Use std::vector.
9159 * mi/mi-main.c (mi_cmd_trace_find): Use std::vector.
9160 * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use
9162 * probe.h (parse_probes): Return a std::vector.
9163 * python/python.c (gdbpy_decode_line): Use std::vector and
9165 * source.c (select_source_symtab, line_info): Use std::vector.
9166 * stack.c (func_command): Use std::vector.
9167 * symtab.h (struct symtabs_and_lines): Delete.
9168 * tracepoint.c (tfind_line_command, scope_info): Use std::vector.
9170 2017-09-04 Pedro Alves <palves@redhat.com>
9172 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9173 unittests/array-view-selftests.c.
9174 (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o.
9175 * common/array-view.h: New file.
9176 * unittests/array-view-selftests.c: New file.
9178 2017-09-04 Pedro Alves <palves@redhat.com>
9180 * cli/cli-cmds.c (edit_command): Pass message to
9181 ambiguous_line_spec.
9182 (list_command): Pass message to ambiguous_line_spec. Say
9183 "first"/"last" instead of "start" and "end" to be consistent with
9185 (ambiguous_line_spec): Add 'format' and vararg parameters. Use
9186 them to print formatted message.
9188 2017-09-04 Pedro Alves <palves@redhat.com>
9190 * btrace.c (ftrace_add_pt): Pass btrace_insn to
9191 ftrace_update_insns by reference instead of pointer.
9193 2017-09-04 Yao Qi <yao.qi@linaro.org>
9195 * i386-go32-tdep.c: Include x86-xstate.h.
9196 (i386_go32_init_abi): Call i386_target_description.
9197 * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx
9198 if xcr0 is X86_XSTATE_X87_MASK.
9199 * i386-tdep.h (tdesc_i386): Remove the declaration.
9200 (tdesc_i386_mmx): Likewise.
9202 2017-09-04 Yao Qi <yao.qi@linaro.org>
9204 * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return
9205 X86_XSTATE_SSE_MASK instead of 0.
9207 2017-09-04 Yao Qi <yao.qi@linaro.org>
9209 * amd64-fbsd-nat.c (amd64fbsd_read_description): Call
9210 i386_target_description.
9211 * i386-fbsd-nat.c (i386fbsd_read_description): Call
9212 i386_target_description.
9213 * i386-tdep.c (i386_gdbarch_init): Likewise.
9215 2017-09-04 Yao Qi <yao.qi@linaro.org>
9217 * amd64-darwin-tdep.c: Include "x86-xstate.h".
9218 (x86_darwin_init_abi_64): Call amd64_target_description.
9219 * amd64-dicos-tdep.c: Likewise.
9220 * amd64-fbsd-nat.c: Likewise.
9221 * amd64-fbsd-tdep.c: Likewise.
9222 * amd64-nbsd-tdep.c: Likewise.
9223 * amd64-obsd-tdep.c: Likewise.
9224 * amd64-sol2-tdep.c: Likewise.
9225 * amd64-windows-tdep.c: Likewise.
9226 * amd64-tdep.h (tdesc_amd64): Remove the declaration.
9228 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
9230 * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove.
9231 (btrace_function) <insn>: Change type to use std::vector.
9232 * btrace.c (ftrace_debug, ftrace_call_num_insn,
9233 ftrace_find_call, ftrace_new_gap, ftrace_update_function,
9234 ftrace_update_insns, ftrace_compute_global_level_offset,
9235 btrace_stitch_bts, btrace_clear, btrace_insn_get,
9236 btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to
9237 change to std::vector.
9238 (ftrace_update_insns): Adjust to change to std::vector, change
9239 type of INSN parameter.
9240 (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns.
9241 * record-btrace.c (btrace_call_history_insn_range,
9242 btrace_compute_src_line_range,
9243 record_btrace_frame_prev_register): Adjust to change to
9245 * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust
9246 to change to std::vector.
9248 2017-09-03 Tom Tromey <tom@tromey.com>
9250 * corefile.c (reopen_exec_file): Use std::string.
9252 2017-09-03 Tom Tromey <tom@tromey.com>
9254 * compile/compile.c (compile_register_name_mangled): Return
9256 * compile/compile-loc2c.c (pushf_register_address): Update.
9257 (pushf_register): Update.
9258 * compile/compile-c-types.c (convert_array): Update.
9259 * compile/compile-c-symbols.c (generate_vla_size): Update.
9260 (error_symbol_once): Use a gdb::unique_xmalloc_ptr.
9261 (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr.
9262 (convert_one_symbol): Update.
9263 (generate_c_for_for_one_variable): Update.
9264 * compile/compile-c-support.c (c_get_range_decl_name): Return a
9266 (generate_register_struct): Update.
9267 * compile/compile-internal.h (c_get_range_decl_name): Return a
9269 (compile_register_name_mangled): Return std::string.
9271 2017-09-03 Tom Tromey <tom@tromey.com>
9273 * utils.c (perror_string): Return a std::string.
9274 (throw_perror_with_name, perror_warning_with_name): Update.
9276 2017-09-03 Tom Tromey <tom@tromey.com>
9278 * demangle.c (demangle_command): Use std::string,
9281 2017-09-03 Tom Tromey <tom@tromey.com>
9283 * cli/cli-setshow.c (do_set_command): Use std::string.
9285 2017-09-03 Tom Tromey <tom@tromey.com>
9287 * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr.
9289 2017-09-03 Tom Tromey <tom@tromey.com>
9291 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string.
9293 2017-09-03 Tom Tromey <tom@tromey.com>
9295 * mi/mi-cmd-env.c (env_execute_cli_command): Use
9296 gdb::unique_xmalloc_ptr.
9298 2017-09-03 Tom Tromey <tom@tromey.com>
9300 * thread.c (print_thread_info_1): Use string_printf.
9301 (thread_apply_command, thread_apply_all_command): Use
9304 2017-09-03 Tom Tromey <tom@tromey.com>
9306 * valprint.c (val_print_string): Update.
9307 * gdbcore.h (memory_error_message): Return std::string.
9308 * corefile.c (memory_error_message): Return std::string.
9309 (memory_error): Update.
9310 * breakpoint.c (insert_bp_location): Update.
9312 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
9314 * target/waitstatus.h (target_waitstatus_to_string): Change
9315 return type to std::string.
9316 * target/waitstatus.c (target_waitstatus_to_string): Return
9318 * target.h (target_waitstatus_to_string): Remove declaration.
9319 * infrun.c (resume, clear_proceed_status_thread,
9320 print_target_wait_results, do_target_wait, save_waitstatus,
9321 stop_all_threads): Adjust.
9322 * record-btrace.c (record_btrace_wait): Adjust.
9324 (target_debug_print_struct_target_waitstatus_p): Adjust.
9326 2017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9329 * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED
9332 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
9334 * NEWS (Changes since GDB 8.0): Add entry mentioning new support
9335 for setting/unsetting environment variables on the remote target.
9336 (New remote packets): Add entries for QEnvironmentHexEncoded,
9337 QEnvironmentUnset and QEnvironmentReset.
9338 * common/environ.c (gdb_environ::operator=): Extend method to
9339 handle m_user_set_env_list and m_user_unset_env_list.
9340 (gdb_environ::clear): Likewise.
9341 (match_var_in_string): Change type of first parameter from 'char
9342 *' to 'const char *'.
9343 (gdb_environ::set): Extend method to handle
9344 m_user_set_env_list and m_user_unset_env_list.
9345 (gdb_environ::unset): Likewise.
9346 (gdb_environ::clear_user_set_env): New method.
9347 (gdb_environ::user_set_envp): Likewise.
9348 (gdb_environ::user_unset_envp): Likewise.
9349 * common/environ.h (gdb_environ): Handle m_user_set_env_list and
9350 m_user_unset_env_list on move constructor/assignment.
9351 (unset): Add new default parameter 'update_unset_list = true'.
9352 (clear_user_set_env): New method.
9353 (user_set_envp): Likewise.
9354 (user_unset_envp): Likewise.
9355 (m_user_set_env_list): New std::set.
9356 (m_user_unset_env_list): Likewise.
9357 * common/rsp-low.c (hex2str): New function.
9358 (bin2hex): New overload for bin2hex function.
9359 * common/rsp-low.c (hex2str): New prototype.
9360 (str2hex): New overload prototype.
9361 * remote.c: Include "environ.h". Add QEnvironmentHexEncoded,
9362 QEnvironmentUnset and QEnvironmentReset.
9363 (remote_protocol_features): Add QEnvironmentHexEncoded,
9364 QEnvironmentUnset and QEnvironmentReset packets.
9365 (send_environment_packet): New function.
9366 (extended_remote_environment_support): Likewise.
9367 (extended_remote_create_inferior): Call
9368 extended_remote_environment_support.
9369 (_initialize_remote): Add QEnvironmentHexEncoded,
9370 QEnvironmentUnset and QEnvironmentReset packet configs.
9371 * unittests/environ-selftests.c (gdb_selftest_env_var):
9373 (test_vector_initialization): New function.
9374 (test_init_from_host_environ): Likewise.
9375 (test_reinit_from_host_environ): Likewise.
9376 (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B):
9378 (test_unset_set_empty_vector): Likewise.
9379 (test_vector_clear): Likewise.
9380 (test_std_move): Likewise.
9381 (test_move_constructor):
9382 (test_self_move): Likewise.
9383 (test_set_unset_reset): Likewise.
9384 (run_tests): Rewrite in terms of the functions above.
9386 2017-08-31 Weimin Pan <weimin.pan@oracle.com>
9388 * sparc64-tdep.c (adi_stat_t): Fix comment formatting.
9389 (adi_available): Use a temp variable of type CORE_ADDR as argument
9390 3 when calling target_auxv_search.
9391 (adi_normalize_address): Use masks and xor operators to calculate
9393 (adi_read_versions, adi_write_versions, adi_print_versions)
9394 (do_examine, do_assign): Use paddress.
9396 2017-08-29 John Baldwin <jhb@FreeBSD.org>
9398 * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR.
9399 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR
9400 out of loop and add supply of FIR.
9401 (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and
9404 2017-08-28 Simon Marchi <simon.marchi@ericsson.com>
9407 * cli/cli-script.c (define_command): Don't convert command name
9410 2017-08-25 Joel Brobecker <brobecker@adacore.com>
9412 * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp".
9413 Update all callers accordingly. Remove all code blocks handling
9414 the case where DISPP is not NULL.
9416 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9419 * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow)
9420 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
9421 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const.
9423 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9425 * dwarf2read.c (build_type_psymtabs_reader): New prototype.
9426 (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES.
9427 (read_comp_units_from_section): New parameter abbrev_section, use
9428 read_and_check_comp_unit_head, allocate signatured_type if needed.
9429 (create_all_comp_units): Update read_comp_units_from_section caller.
9431 2017-08-23 Pedro Alves <palves@redhat.com>
9434 * remote.c (add_current_inferior_and_thread): Set inferior_ptid
9435 to null_ptid and switch to thread without reading the registers
9436 after adding the inferior.
9438 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9440 * NEWS (Changes since GDB 8.0): Add set compile-gcc and show
9442 * compile/compile.c (compile_gcc, show_compile_gcc): New.
9443 (compile_to_object): Implement compile_gcc.
9444 (_initialize_compile): Install "set compile-gcc". Initialize
9447 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9449 * compile/compile.c (compile_to_object): Conditionally call
9450 set_verbose. Conditionally call compile or compile_v0.
9452 2017-08-07 Weimin Pan <weimin.pan@oracle.com>
9454 * sparc64-tdep.h: (adi_normalize_address): New export.
9455 * sparc-nat.h: (open_adi_tag_fd): New export.
9456 * sparc64-linux-nat.c: (open_adi_tag_fd): New function.
9457 * sparc64-linux-tdep.c:
9458 (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines.
9459 (sparc64_linux_handle_segmentation_fault): New function.
9460 (sparc64_linux_init_abi): Register
9461 sparc64_linux_handle_segmentation_fault
9462 * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h.
9463 (sparc64_addr_bits_remove): New function.
9464 (sparc64_init_abi): Register sparc64_addr_bits_remove.
9465 (MAX_PROC_NAME_SIZE): New macro.
9466 (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines.
9467 (sparc64adilist): New variable.
9468 (adi_proc_list): New variable.
9469 (find_adi_info): New function.
9470 (add_adi_info): New function.
9471 (get_adi_info_proc): New function.
9472 (get_adi_info): New function.
9473 (info_adi_command): New function.
9474 (read_maps_entry): New function.
9475 (adi_available): New function.
9476 (adi_normalize_address): New function.
9477 (adi_align_address): New function.
9478 (adi_convert_byte_count): New function.
9479 (adi_tag_fd): New function.
9480 (adi_is_addr_mapped): New function.
9481 (adi_read_versions): New function.
9482 (adi_write_versions): New function.
9483 (adi_print_versions): New function.
9484 (do_examine): New function.
9485 (do_assign): New function.
9486 (adi_examine_command): New function.
9487 (adi_assign_command): New function.
9488 (_initialize_sparc64_adi_tdep): New function.
9490 2017-08-22 Simon Marchi <simon.marchi@ericsson.com>
9492 * breakpoint.c (breakpoints_info): Rename to ...
9493 (info_breakpoints_command): ... this.
9494 (watchpoints_info): Rename to ...
9495 (info_watchpoints_command): ... this.
9496 (tracepoints_info): Rename to ...
9497 (info_tracepoints_command): ... this.
9498 (_initialize_breakpoint): Adjust.
9499 * dcache.c (dcache_info): Rename to ...
9500 (info_display_command): ... this.
9501 (_initialize_dcache): Adjust.
9502 * frame.h (args_info): Rename to ...
9503 (info_args_command): ... this.
9504 (locals_info): Rename to ...
9505 (info_locals_command): ... this.
9506 * infcmd.c (nofp_registers_info): Rename to ...
9507 (info_registers_command): ... this.
9508 (float_info): Rename to ...
9509 (info_float_command): ... this.
9510 (program_info): Rename to ...
9511 (info_program_command): ... this.
9512 (all_registers_info): Rename to ...
9513 (info_all_registers_command): ... this.
9514 (vector_info): Rename to ...
9515 (info_vector_command): ... this.
9516 (float_info): Rename to ...
9517 (info_float_command): ... this.
9518 (_initialize_infcmd): Adjust.
9519 * inferior.h (term_info): Rename to ...
9520 (info_terminal_command): ... this.
9521 * inflow.c (term_info): Rename to ...
9522 (info_terminal_command): ... this.
9523 (_initialize_inflow): Adjust.
9524 * infrun.c (signals_info): Rename to ...
9525 (info_signals_command): ... this.
9526 (_initialize_infrun): Adjust.
9527 * objc-lang.c (classes_info): Rename to ...
9528 (info_classes_command): ... this.
9529 (selectors_info): Rename to ...
9530 (info_selectors_command): ... this.
9531 (_initialize_objc_language): Adjust.
9532 * printcmd.c (sym_info): Rename to ...
9533 (info_symbol_command): ... this.
9534 (address_info): Rename to ...
9535 (info_address_command): ... this.
9536 (display_info): Rename to ...
9537 (info_display_command): ... this.
9538 (_initialize_printcmd): Adjust.
9539 * reverse.c (bookmarks_info): Rename to ...
9540 (info_breakpoints_command): ... this.
9541 (_initialize_reverse): Adjust.
9542 * ser-go32.c (dos_info): Rename to ...
9543 (info_serial_command): ... this.
9544 (_initialize_ser_dos): Adjust.
9545 * skip.c (skip_info): Rename to ...
9546 (info_skip_command): ... this.
9547 (_initialize_step_skip): Adjust.
9548 * source.c (line_info): Rename to ...
9549 (info_line_command): ... this.
9550 (source_info): Rename to ...
9551 (info_source_command)
9552 * stack.c (frame_info): Rename to ...
9553 (info_frame_command): ... this.
9554 (locals_info): Rename to ...
9555 (info_locals_command): ... this.
9556 (args_info): Rename to ...
9557 (info_args_command): ... this.
9558 (_initialize_stack): Adjust.
9559 * symtab.c (sources_info): Rename to ...
9560 (info_sources_command): ... this.
9561 (variables_info): Rename to ...
9562 (info_variables_command): ... this.
9563 (functions_info): Rename to ...
9564 (info_functions_command): ... this.
9565 (types_info): Rename to ...
9566 (info_types_command): ... this.
9567 (_initialize_symtab): Adjust.
9568 * target.c (target_info): Rename to ...
9569 (info_target_command): ... this.
9570 (initialize_targets): Adjust.
9571 * tracepoint.c (tvariables_info): Rename to ...
9572 (info_tvariables_command): ... this.
9573 (scope_info): Rename to ...
9574 (info_scope_command): ... this.
9575 (trace_dump_actions): Adjust.
9576 (_initialize_tracepoint): Adjust.
9578 2017-08-22 Tom Tromey <tom@tromey.com>
9580 * breakpoint.h (install_breakpoint): Update.
9581 * breakpoint.c (add_solib_catchpoint): Update.
9582 (install_breakpoint): Change argument to a std::unique_ptr.
9583 (create_fork_vfork_event_catchpoint): Use std::unique_ptr.
9584 (create_breakpoint_sal, create_breakpoint): Update.
9585 (watch_command_1, catch_exec_command_1)
9586 (strace_marker_create_breakpoints_sal): Use std::unique_ptr.
9587 (add_to_breakpoint_chain): Change argument to a std::unique_ptr.
9588 Return the breakpoint.
9589 (set_raw_breakpoint_without_location, set_raw_breakpoint)
9590 (new_single_step_breakpoint): Update.
9591 * break-catch-throw.c (handle_gnu_v3_exceptions): Use
9593 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
9595 * break-catch-sig.c (create_signal_catchpoint): Use
9597 * ada-lang.c (create_ada_exception_catchpoint): Use
9600 2017-08-22 Tom Tromey <tom@tromey.com>
9602 * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr.
9604 2017-08-22 Tom Tromey <tom@tromey.com>
9606 * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr.
9607 (lookup_partial_symbol): Update.
9609 2017-08-22 Tom Tromey <tom@tromey.com>
9611 * source.h (rewrite_source_path): Return a unique_xmalloc_ptr.
9612 * source.c (rewrite_source_path): Return a unique_xmalloc_ptr.
9613 (find_and_open_source, symtab_to_fullname): Update.
9614 * psymtab.c (psymtab_to_fullname): Update.
9616 2017-08-22 Tom Tromey <tom@tromey.com>
9618 * exec.c (exec_file_attach): Update.
9619 * linux-thread-db.c (try_thread_db_load): Update.
9620 * guile/scm-safe-call.c (gdbscm_safe_source_script): Update.
9621 * utils.c (gdb_realpath): Change return type.
9622 (gdb_realpath_keepfile): Update.
9623 (gdb_realpath_check_trailer, gdb_realpath_tests): New functions.
9624 (_initialize_utils): Register the new self test.
9625 * source.c (openp): Update.
9626 (find_and_open_source): Update.
9627 * nto-tdep.c (nto_find_and_open_solib): Update.
9628 * main.c (set_gdb_data_directory): Update.
9629 (captured_main_1): Update.
9630 * dwarf2read.c (dwarf2_get_dwz_file): Update
9631 (dw2_map_symbol_filenames): Update.
9632 * auto-load.c (auto_load_safe_path_vec_update): Update.
9633 (filename_is_in_auto_load_safe_path_vec): Change type of
9635 (auto_load_objfile_script): Update.
9636 (file_is_auto_load_safe): Update. Use std::string.
9637 * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr.
9639 2017-08-22 Tom Tromey <tom@tromey.com>
9641 * utils.c (gdb_realpath_keepfile): Return a
9642 gdb::unique_xmalloc_ptr.
9643 * exec.c (exec_file_attach): Update.
9644 * utils.h (gdb_realpath_keepfile): Return a
9645 gdb::unique_xmalloc_ptr.
9647 2017-08-22 Tom Tromey <tom@tromey.com>
9649 * compile/compile.c (compile_file_command): Use
9650 gdb::unique_xmalloc_ptr, std::string.
9651 * utils.c (gdb_abspath): Change return type.
9652 * source.c (openp): Update.
9653 * objfiles.c (allocate_objfile): Update.
9654 * main.c (set_gdb_data_directory): Update.
9655 * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr.
9657 2017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com>
9659 * cli-cmds.c (list_commands): List actual code around more than
9662 2017-08-21 John Baldwin <jhb@FreeBSD.org>
9664 * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'.
9666 2017-08-21 Pedro Alves <palves@redhat.com>
9669 * c-exp.y (variable production): Handle function aliases.
9670 * minsyms.c (msymbol_is_text): New function.
9671 * minsyms.h (msymbol_is_text): Declare.
9672 * symtab.c (find_function_alias_target): New function.
9673 * symtab.h (find_function_alias_target): Declare.
9675 2017-08-21 Pedro Alves <palves@redhat.com>
9677 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past
9679 * typeprint.c (whatis_exp): If handling "whatis", and expression
9680 is OP_TYPE, strip one typedef level. Otherwise don't strip
9682 * valops.c (value_cast): Save "to" type before resolving
9683 stubs/typedefs. Use that type as resulting value's type.
9685 2017-08-18 Tom Tromey <tom@tromey.com>
9686 Pedro Alves <palves@redhat.com>
9688 * spu-multiarch.c (parse_spufs_run): Use scoped_restore.
9689 * sol-thread.c (sol_thread_resume, sol_thread_wait)
9690 (sol_thread_xfer_partial, rw_common): Use scoped_restore.
9691 * procfs.c (procfs_do_thread_registers): Use scoped_restore.
9692 * proc-service.c (ps_xfer_memory): Use scoped_restore.
9693 * linux-tdep.c (linux_corefile_thread): Remove a cleanup.
9694 (linux_get_siginfo_data): Add "thread" argument. Use
9696 * linux-nat.c (linux_child_follow_fork)
9697 (check_stopped_by_watchpoint): Use scoped_restore.
9698 * infrun.c (displaced_step_prepare_throw, write_memory_ptid)
9699 (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore.
9700 (restore_inferior_ptid, save_inferior_ptid): Remove.
9701 * btrace.c (btrace_fetch): Use scoped_restore.
9702 * bsd-uthread.c (bsd_uthread_fetch_registers)
9703 (bsd_uthread_store_registers): Use scoped_restore.
9704 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
9706 * aix-thread.c (aix_thread_resume, aix_thread_wait)
9707 (aix_thread_xfer_partial): Use scoped_restore.
9708 * inferior.h (save_inferior_ptid): Remove.
9710 2017-08-18 Yao Qi <yao.qi@linaro.org>
9713 * arm-tdep.c (gdb_print_insn_arm): Mark
9714 USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL.
9716 2017-08-18 Yao Qi <yao.qi@linaro.org>
9718 * NEWS: Mention GDBserver's new option "--selftest".
9719 * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c.
9720 * selftest.c: Move it to common/selftest.c.
9721 * selftest.h: Move it to common/selftest.h.
9722 * selftest-arch.c (reset): New function.
9723 (tests_with_arch): Call reset.
9725 2017-08-18 Yao Qi <yao.qi@linaro.org>
9727 * selftest.c (run_tests): Don't call QUIT. Call debug_printf
9728 instead of exception_fprintf and printf_filtered.
9730 2017-08-18 Yao Qi <yao.qi@linaro.org>
9732 * selftest.c (register_self_test): Rename it to
9733 selftests::register_test.
9734 (run_self_tests): selftest::run_tests.
9735 * selftest.h: Update declarations.
9736 * selftest-arch.c (register_self_test_foreach_arch): Rename it to
9737 selftests::register_test_foreach_arch.
9738 * selftest-arch.h: Update declaration.
9739 * aarch64-tdep.c: Update.
9740 * arm-tdep.c: Likewise.
9741 * disasm-selftests.c: Likewise.
9742 * dwarf2loc.c: Likewise.
9743 * dwarf2-frame.c: Likewise.
9744 * findvar.c: Likewise.
9745 * gdbarch-selftests.c: Likewise.
9746 * maint.c (maintenance_selftest): Likewise.
9747 * regcache.c: Likewise.
9748 * rust-exp.y: Likewise.
9749 * selftest-arch.c: Likewise.
9750 * unittests/environ-selftests.c: Likewise.
9751 * unittests/function-view-selftests.c: Likewise.
9752 * unittests/offset-type-selftests.c: Likewise.
9753 * unittests/optional-selftests.c: Likewise.
9754 * unittests/scoped_restore-selftests.c: Likewise.
9755 * utils-selftests.c: Likewise.
9757 2017-08-17 Pedro Alves <palves@redhat.com>
9759 * cli/cli-cmds.c (source_command): Delete 'old_source_verbose'
9762 2017-08-17 Pedro Alves <palves@redhat.com>
9764 * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New
9766 (reset_die_in_process): Delete, replaced by ...
9767 (process_die_scope): ... this new class. Make it responsible for
9768 freeing cu->line_header too.
9769 (process_die): Use process_die_scope.
9770 (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in
9771 cu->line_header_die_owner. Don't release the line header if it's
9773 (setup_type_unit_groups): Make the CU/DIE own the line header.
9774 Don't release the line header here.
9776 2017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change)
9778 * elfread.c (elf_read_minimal_symbols): xfree synthsyms.
9780 2017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com>
9782 * NEWS: Mention new shortcuts for nexti and stepi in TUI
9785 2017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com>
9787 * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key
9790 2017-08-15 Stafford Horne <shorne@gmail.com>
9792 * MAINTAINERS (Write After Approval): Add Stafford Horne.
9794 2017-08-15 Stafford Horne <shorne@gmail.com>
9796 * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname.
9798 2017-08-15 Sergio Durigan Junior <sergiodj@redhat.com>
9801 * infcmd.c (unset_environment_command): Use the 'clear' method on
9802 the environment instead of resetting it.
9804 2017-08-15 John Baldwin <jhb@FreeBSD.org>
9806 * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian
9809 2017-08-14 Tom Tromey <tom@tromey.com>
9811 * valprint.c (print_octal_chars): Use HOST_CHAR_BIT.
9812 (print_binary_chars): Likewise.
9813 (BITS_IN_BYTES): Remove.
9815 2017-08-14 Tom Tromey <tom@tromey.com>
9818 * valprint.c (LOW_ZERO): Change value to 034.
9819 (print_octal_chars): Add static_asserts for octal constants.
9820 * printcmd.c (print_scalar_formatted): Add 'd' case.
9822 2017-08-11 Tom Tromey <tom@tromey.com>
9824 * symfile.c (add_symbol_file_command): Use std::vector.
9826 2017-08-14 Tom Tromey <tom@tromey.com>
9828 * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move.
9829 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
9831 * break-catch-sig.c (create_signal_catchpoint): Use std::move.
9833 2017-08-11 Pedro Alves <palves@redhat.com>
9835 * infrun.c (process_event_stop_test): Adjust
9836 function_name_is_marked_for_skip call.
9837 * skip.c: Include <list>.
9838 (skiplist_entry): Make it a class with private fields, and
9840 (skiplist_entry_chain): Delete.
9841 (skiplist_entries): New.
9842 (skiplist_entry_count): Delete.
9843 (highest_skiplist_entry_num): New.
9844 (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete.
9845 (add_skiplist_entry): Delete.
9846 (skiplist_entry::skiplist_entry): New.
9847 (skiplist_entry::add_entry): New.
9848 (skip_file_command, skip_function): Adjust.
9849 (compile_skip_regexp): Delete.
9850 (skip_command): Don't compile regexp here. Adjust to use
9851 skiplist_entry::add_entry.
9852 (skip_info): Adjust to use range-for and getters.
9853 (skip_enable_command, skip_disable_command): Adjust to use
9854 range-for and setters.
9855 (skip_delete_command): Adjust to use std::list.
9856 (add_skiplist_entry): Delete.
9857 (skip_file_p): Delete, refactored as ...
9858 (skiplist_entry::do_skip_file_p): ... this new method.
9859 (skip_gfile_p): Delete, refactored as ...
9860 (skiplist_entry::do_gskip_file_p): ... this new method.
9861 (skip_function_p, skip_rfunction_p): Delete, refactored as ...
9862 (skiplist_entry::skip_function_p): ... this new method.
9863 (function_name_is_marked_for_skip): Now returns bool, and takes
9864 the function sal by const reference. Adjust to use range-for and
9865 skiplist_entry methods.
9866 (_initialize_step_skip): Remove references to
9867 skiplist_entry_chain, skiplist_entry_count.
9868 * skip.h (function_name_is_marked_for_skip): Now returns bool, and
9869 takes the function sal by const reference.
9871 2017-08-11 Yao Qi <yao.qi@linaro.org>
9873 * dwarf2-frame.c (clear_pointer_cleanup): Remove.
9874 (dwarf2_frame_cache): Remove reset_cache_cleanup.
9875 (dwarf2_frame_cache):
9876 * frame-unwind.c (frame_unwind_try_unwinder): Catch
9877 RETURN_MASK_ALL and set *this_case to NULL.
9878 * frame-unwind.h: Update comments.
9880 2017-08-11 Yao Qi <yao.qi@linaro.org>
9882 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove.
9883 (dwarf2_frame_state_copy_regs): Remove.
9884 (dwarf2_frame_state_free_regs): Remove.
9885 (dwarf2_frame_state::~dwarf2_frame_state): Remove.
9886 (dwarf2_restore_rule): Call method .alloc_regs instead of
9887 dwarf2_frame_state_alloc_regs.
9888 (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info
9889 constructor. Call std::move.
9890 (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs.
9891 (dwarf2_frame_cache): Likewise.
9893 [GDB_SELF_TEST]: Include selftest.h and
9895 [GDB_SELF_TEST] (execute_cfa_program_test): New function.
9896 (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register
9897 execute_cfa_program_test.
9899 * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor,
9900 copy ctor, assignment operator, move assignment.
9901 <alloc_regs>: New method.
9903 (struct dwarf2_frame_state): Delete dtor.
9904 (dwarf2_frame_state_alloc_regs): Remove declaration.
9905 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call
9906 dwarf2_frame_state_alloc_regs, use .alloc_regs instead.
9908 2017-08-11 Yao Qi <yao.qi@linaro.org>
9910 * dwarf2-frame.c (dwarf2_frame_state_free): Remove.
9911 (dwarf2_frame_state::dwarf2_frame_state): New.
9912 (dwarf2_frame_state::~dwarf2_frame_state): New.
9913 (dwarf2_fetch_cfa_info): Update.
9914 (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object
9915 rather than a pointer. Update code.
9916 * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and
9918 <data_align, code_align, retaddr_column>: Change them to const.
9919 <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them
9922 2017-08-11 Yao Qi <yao.qi@linaro.org>
9924 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove.
9925 <loc.exp>: New field.
9926 * dwarf2-frame.c (execute_cfa_program): Update.
9927 (dwarf2_frame_prev_register): Update.
9929 2017-08-10 Pedro Alves <palves@redhat.com>
9931 * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define.
9933 2017-08-09 John Baldwin <jhb@FreeBSD.org>
9935 * fbsd-nat.c (struct fbsd_fork_info): Remove.
9936 (fbsd_pending_children): Use std::list.
9937 (fbsd_remember_child): Likewise.
9938 (fbsd_is_child_pending): Likewise.
9939 (fbsd_pending_vfork_done): Use std::forward_list.
9940 (fbsd_add_vfork_done): Likewise.
9941 (fbsd_is_vfork_done_pending): Likewise.
9942 (fbsd_next_vfork_done): Likewise.
9944 2017-08-09 John Baldwin <jhb@FreeBSD.org>
9946 * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New.
9947 (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr.
9948 [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string
9950 (fbsd_xfer_partial): Use gdb::byte_vector.
9951 (fbsd_add_threads): Use gdb::unique_xmalloc_ptr.
9953 2017-08-09 John Baldwin <jhb@FreeBSD.org>
9955 * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and
9957 (fbsd_find_memory_regions): Fix `mapfile' initialization.
9959 2017-08-09 Tom Tromey <tom@tromey.com>
9961 * skip.c (skiplist_entry): New constructor.
9962 (skiplist_entry::enabled, skiplist_entry::function_is_regexp)
9963 (skiplist_entry::file_is_glob): Now bool.
9964 (skiplist_entry::file, skiplist_entry::function): Now
9966 (make_skip_entry): Return a unique_ptr. Use new.
9967 (free_skiplist_entry, free_skiplist_entry_cleanup)
9968 (make_free_skiplist_entry_cleanup): Remove.
9969 (skip_command, skip_disable_command, add_skiplist_entry)
9970 (skip_form_bytes, compile_skip_regexp, skip_command, skip_info)
9971 (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p)
9972 (function_name_is_marked_for_skip): Update.
9973 (skip_delete_command): Update. Use delete.
9975 2017-08-09 Jiong Wang <jiong.wang@arm.com>
9977 * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h".
9978 (aarch64_linux_core_read_description): New function.
9979 (aarch64_linux_init_abi): Register gdbarch_core_read_description.
9981 2017-08-09 Pedro Alves <palves@redhat.com>
9983 * cp-name-parser.y (cp_comp_to_string): Return a
9984 gdb::unique_xmalloc_ptr<char>.
9985 * cp-support.c (replace_typedefs_qualified_name)
9986 (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>.
9987 (cp_canonicalize_string_full): Use op= instead of explicit
9989 (cp_class_name_from_physname, method_name_from_physname)
9990 (cp_func_name, cp_remove_params): Adjust to use
9991 gdb::unique_xmalloc_ptr<char>.
9992 * cp-support.h (cp_comp_to_string): Return a
9993 gdb::unique_xmalloc_ptr<char>.
9994 * python/py-type.c (typy_lookup_type): Adjust to use
9995 gdb::unique_xmalloc_ptr<char>.
9997 2017-08-09 H.J. Lu <hongjiu.lu@intel.com>
9999 * dwarf2read.c (dwarf2_string_attr): Fix a typo.
10001 2017-08-09 Alex Lindsay <alexlindsay239@gmail.com>
10002 Yao Qi <yao.qi@linaro.org>
10004 * cp-support.c (cp_canonicalize_string_full): Use
10005 gdb::unique_xmalloc_ptr<char>.
10006 (cp_canonicalize_string): Likewise.
10008 2017-08-09 Yao Qi <yao.qi@linaro.org>
10010 * features/Makefile (WHICH): Remove i386/ non-linux stuff.
10011 * regformats/i386/amd64-avx-avx512.dat: Remove.
10012 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove.
10013 * regformats/i386/amd64-avx-mpx.dat:Remove.
10014 * regformats/i386/amd64-avx.dat: Remove.
10015 * regformats/i386/amd64-mpx.dat: Remove.
10016 * regformats/i386/i386-avx-avx512.dat: Remove.
10017 * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove.
10018 * regformats/i386/i386-avx-mpx.dat: Remove.
10019 * regformats/i386/i386-mmx.dat: Remove.
10020 * regformats/i386/i386-mpx.dat: Remove.
10022 2017-08-09 Yao Qi <yao.qi@linaro.org>
10024 * amd64-tdep.h (tdesc_x32): Remove the declaration.
10025 * amd64-tdep.c: Don't include features/i386/x32*.c.
10026 (_initialize_amd64_tdep): Don't call initialize_tdesc_x32*
10028 * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx,
10029 and i386/x32-avx-avx512.
10030 (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml,
10032 * features/i386/x32-avx-avx512.c: Removed.
10033 * features/i386/x32-avx-avx512.xml: Removed.
10034 * features/i386/x32-avx.c: Removed.
10035 * features/i386/x32-avx.xml: Removed.
10036 * features/i386/x32.c: Removed.
10037 * features/i386/x32.xml: Removed.
10038 * regformats/i386/x32-avx-avx512.dat: Removed.
10039 * regformats/i386/x32-avx.dat: Removed.
10040 * regformats/i386/x32.dat: Removed.
10042 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
10044 PR breakpoints/21886
10045 * mem-break.c (default_memory_insert_breakpoint): Use
10046 `->placed_address' rather than `->reqstd_address' for the
10047 breakpoint location.
10049 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
10051 * arch-utils.c (default_print_insn): Remove arch/mach/endian
10054 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
10056 * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with
10057 a union of `tdep_info', `tdesc_data' and `id'.
10058 * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data'
10059 rather than `info.tdep_info'.
10060 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
10061 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
10062 * i386-tdep.c (i386_gdbarch_init): Likewise.
10063 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
10064 * mips-tdep.c (mips_gdbarch_init): Likewise.
10065 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
10066 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10067 * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than
10069 (ppc_linux_init_abi): Use `info.tdesc_data' rather than
10071 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
10072 * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than
10074 * spu-tdep.c (spu_gdbarch_init): Likewise.
10075 * gdbarch.h: Regenerate.
10077 2017-08-07 Leszek Swirski <leszeks@google.com>
10080 * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt.
10082 2017-08-07 Simon Marchi <simon.marchi@ericsson.com>
10084 * remote-sim.c (gdbsim_load): Remove char **argv local variable.
10085 (gdbsim_open): Rename gdb_argv args object to argv.
10087 2017-08-05 Tom Tromey <tom@tromey.com>
10089 * compile/compile-object-load.c (compile_object_load): Use
10090 gdb::unique_xmalloc_ptr.
10091 * cli/cli-dump.c (scan_filename): Rename from
10092 scan_filename_with_cleanup. Change return type.
10093 (scan_expression): Rename from scan_expression_with_cleanup.
10094 Change return type.
10095 (dump_memory_to_file, dump_value_to_file, restore_command):
10096 Use gdb::unique_xmalloc_ptr. Update.
10097 * cli/cli-cmds.c (find_and_open_script): Use
10098 gdb::unique_xmalloc_ptr.
10099 * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr.
10100 * symmisc.c (maintenance_print_symbols)
10101 (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr.
10102 * symfile.c (symfile_bfd_open, generic_load)
10103 (add_symbol_file_command, remove_symbol_file_command): Use
10104 gdb::unique_xmalloc_ptr.
10105 * source.c (openp): Use gdb::unique_xmalloc_ptr.
10106 * psymtab.c (maintenance_print_psymbols): Use
10107 gdb::unique_xmalloc_ptr.
10108 * corelow.c (core_open): Use gdb::unique_xmalloc_ptr.
10109 * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr.
10110 * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr.
10111 (reload_shared_libraries_1): Likewise.
10113 2017-08-05 Tom Tromey <tom@tromey.com>
10115 * rust-exp.y (rust_op_ptr, set_field): Remove typedefs.
10116 (rust_op_vector, rust_set_vector): New typedefs.
10117 (current_parser): New global.
10118 (work_obstack): Change to pointer type. Update all users.
10119 (rust_ast, pstate): Remove globals.
10120 (struct rust_parser): New.
10121 (%union) <params, field_inits>: Change type.
10122 (start, tuple_expr, unit_expr, struct_expr_list, literal)
10123 (field_expr, expr_list, maybe_expr_list, type_list): Update.
10124 (ast_call_ish, ast_path, ast_function_type, ast_tuple_type)
10125 (convert_params_to_types, convert_params_to_expression): Change
10127 (ast_string): Change type of "fields".
10128 (rust_parse): Make a rust_parser. Remove cleanups.
10129 (rust_lex_tests): Make and install an auto_obstack.
10131 2017-08-04 Yao Qi <yao.qi@linaro.org>
10133 * configure.srv (ipa_x32_linux_regobj): New.
10134 * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
10135 instead of X86_TDESC_AVX512.
10136 (initialize_low_tracepoint): Call
10137 init_registers_x32_avx_avx512_linux.
10139 2017-08-04 Yao Qi <yao.qi@linaro.org>
10141 * utils.h (gdb_argv): Add namespace std for nullptr_t.
10143 2017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com>
10145 * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev.
10147 2017-08-03 Tom Tromey <tom@tromey.com>
10149 * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv):
10151 * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove.
10153 2017-08-03 Tom Tromey <tom@tromey.com>
10155 * python/py-param.c (compute_enum_values): Use gdb_argv.
10157 2017-08-03 Tom Tromey <tom@tromey.com>
10159 * utils.h (struct gdb_argv_deleter): New.
10160 (gdb_argv): New class.
10161 * utils.c (gdb_argv::reset): New method.
10162 * tracepoint.c (delete_trace_variable_command): Use gdb_argv.
10163 * tracefile.c (tsave_command): Use gdb_argv.
10164 * top.c (new_ui_command): Use gdb_argv.
10165 * symmisc.c (maintenance_print_symbols)
10166 (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv.
10167 * symfile.c (symbol_file_command, generic_load)
10168 (remove_symbol_file_command): Use gdb_argv.
10169 * stack.c (backtrace_command): Use gdb_argv.
10170 * source.c (add_path, show_substitute_path_command)
10171 (unset_substitute_path_command, set_substitute_path_command):
10173 * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv.
10174 * ser-mingw.c (pipe_windows_open): Use gdb_argv.
10175 * remote.c (extended_remote_run, remote_put_command)
10176 (remote_get_command, remote_delete_command): Use gdb_argv.
10177 * remote-sim.c (gdbsim_load, gdbsim_create_inferior)
10178 (gdbsim_open): Use gdb_argv.
10179 * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv.
10180 * psymtab.c (maintenance_print_psymbols): Use gdb_argv.
10181 * procfs.c (procfs_info_proc): Use gdb_argv.
10182 * interps.c (interpreter_exec_cmd): Use gdb_argv.
10183 * infrun.c (handle_command): Use gdb_argv.
10184 * inferior.c (add_inferior_command, clone_inferior_command):
10186 * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv.
10187 * exec.c (exec_file_command): Use gdb_argv.
10188 * cli/cli-cmds.c (alias_command): Use gdb_argv.
10189 * compile/compile.c (build_argc_argv): Use gdb_argv.
10191 2017-08-03 Tom Tromey <tom@tromey.com>
10193 * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr.
10195 2017-08-03 Tom Tromey <tom@tromey.com>
10197 * python/python.c (compute_python_string): Return std::string.
10198 (gdbpy_eval_from_control_command): Update.
10199 (do_start_initialization): Use std::string.
10200 * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not
10202 * python/py-breakpoint.c (local_setattro): Use string_printf, not
10205 2017-08-03 Tom Tromey <tom@tromey.com>
10207 * top.h (do_restore_instream_cleanup): Remove.
10208 * top.c (do_restore_instream_cleanup): Remove.
10209 (read_command_file): Use scoped_restore.
10210 * cli/cli-script.c (execute_user_command): Use scoped_restore.
10212 2017-08-03 Tom Tromey <tom@tromey.com>
10214 * cli/cli-script.c (execute_user_command)
10215 (execute_control_command): Use scoped_restore.
10217 2017-08-03 Tom Tromey <tom@tromey.com>
10219 * cli/cli-script.c (do_restore_user_call_depth): Remove.
10220 (execute_user_command): Remove user_call_depth; use
10221 user_args_stack's size instead.
10223 2017-08-03 Tom Tromey <tom@tromey.com>
10225 * top.h (in_user_command): Remove.
10226 * top.c (in_user_command): Remove.
10227 * cli/cli-script.c (do_restore_user_call_depth)
10228 (execute_user_command): Update.
10230 2017-08-03 Tom Tromey <tom@tromey.com>
10232 * valops.c (search_struct_method): Use gdb::byte_vector.
10233 * valarith.c (value_concat): Use std::vector.
10234 * target.c (memory_xfer_partial): Use gdb::byte_vector.
10235 (simple_search_memory): Likewise.
10236 * printcmd.c (find_string_backward): Use gdb::byte_vector.
10237 * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector.
10238 * gcore.c (gcore_copy_callback): Use gdb::byte_vector.
10239 * elfread.c (elf_rel_plt_read): Use std::string.
10240 * cp-valprint.c (cp_print_value): Use gdb::byte_vector.
10241 * cli/cli-dump.c (restore_section_callback): Use
10244 2017-08-03 Tom Tromey <tom@tromey.com>
10246 * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr.
10248 2017-08-03 Tom Tromey <tom@tromey.com>
10250 * tui/tui-regs.c (tui_restore_gdbout): Remove.
10251 (tui_register_format): Use scoped_restore.
10253 2017-08-03 Tom Tromey <tom@tromey.com>
10255 * reverse.c (exec_direction_default): Remove.
10256 (exec_reverse_once): Use scoped_restore.
10257 * remote.c (restore_remote_timeout): Remove.
10258 (remote_flash_erase, remote_flash_write, remote_flash_done)
10259 (readchar, remote_serial_write): Use scoped_restore.
10260 * cli/cli-script.c (struct source_cleanup_lines_args)
10261 (source_cleanup_lines): Remove.
10262 (script_from_file): Use scoped_restore.
10263 * cli/cli-cmds.c (source_verbose_cleanup): Remove.
10264 (source_command): Use scoped_restore.
10266 2017-08-03 Tom Tromey <tom@tromey.com>
10268 * utils.h (make_cleanup_free_so): Remove.
10269 * utils.c (do_free_so, make_cleanup_free_so): Remove.
10270 * solist.h (struct so_deleter): New.
10271 (so_list_up): New typedef.
10272 * solib-svr4.c (svr4_read_so_list): Use so_list_up.
10274 2017-08-03 Tom Tromey <tom@tromey.com>
10276 * utils.h (make_cleanup_restore_current_language): Remove.
10277 * utils.c (do_restore_current_language)
10278 (make_cleanup_restore_current_language): Remove.
10279 * parse.c (parse_exp_in_context_1)
10280 (parse_expression_with_language): Use
10281 scoped_restore_current_language.
10282 * mi/mi-main.c (mi_cmd_execute): Use
10283 scoped_restore_current_language.
10284 * language.h (scoped_restore_current_language): New class.
10286 2017-08-03 Tom Tromey <tom@tromey.com>
10288 * compile/compile.c (cleanup_unlink_file): Remove.
10289 (compile_to_object): Use gdb::unlinker.
10290 (eval_compile_command): Likewise.
10292 2017-08-03 Tom Tromey <tom@tromey.com>
10294 * utils.h (make_cleanup_fclose): Remove.
10295 * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove.
10297 2017-08-03 Tom Tromey <tom@tromey.com>
10299 * top.c (open_terminal_stream): Return gdb_file_up.
10300 (new_ui_command): Update.
10302 2017-08-03 Tom Tromey <tom@tromey.com>
10304 * source.c (print_source_lines_base, forward_search_command)
10305 (reverse_search_command): Use gdb_file_up.
10307 2017-08-03 Tom Tromey <tom@tromey.com>
10309 * fbsd-nat.c (fbsd_find_memory_regions): Update.
10311 2017-08-03 Tom Tromey <tom@tromey.com>
10313 * cli/cli-cmds.c (find_and_open_script): Change return type.
10314 Remove "streamp" and "full_path" parameters.
10315 (source_script_with_search): Update.
10316 * auto-load.c (source_script_file): Update.
10317 * cli/cli-cmds.h (find_and_open_script): Change type.
10318 (open_script): New struct.
10320 2017-08-03 Tom Tromey <tom@tromey.com>
10322 * xml-support.c (xml_fetch_content_from_file): Update.
10323 * ui-file.c (stdio_file::open): Update.
10324 * tracefile-tfile.c (tfile_start): Update.
10325 * remote.c (remote_file_put, remote_file_get): Update.
10326 * nat/linux-procfs.c (linux_proc_get_int)
10327 (linux_proc_pid_get_state, linux_proc_tid_get_name): Update.
10328 * nat/linux-osdata.c (linux_common_core_of_thread): Update.
10329 (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus)
10330 (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem)
10331 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update.
10332 * nat/linux-btrace.c (linux_determine_kernel_start): Update.
10333 * linux-nat.c (linux_proc_pending_signals): Update.
10334 * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up.
10335 (file_closer): Remove.
10336 * compile/compile.c (compile_to_object): Update.
10337 * common/filestuff.h (struct gdb_file_deleter): New.
10338 (gdb_file_up): New typedef.
10339 (gdb_fopen_cloexec): Change return type.
10340 * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up.
10341 * cli/cli-dump.c (fopen_with_cleanup): Remove.
10342 (dump_binary_file, restore_binary_file): Update.
10343 * auto-load.c (auto_load_objfile_script_1): Update.
10345 2017-08-03 Tom Tromey <tom@tromey.com>
10347 * tracepoint.c (tvariables_info_1): Use ui_out_emit_table.
10348 (info_static_tracepoint_markers_command): Likewise.
10349 * solib.c (info_sharedlibrary_command): Use ui_out_emit_table.
10350 * skip.c (skip_info): Use ui_out_emit_table.
10351 * progspace.c (print_program_space): Use ui_out_emit_table.
10352 * osdata.c (info_osdata): Use ui_out_emit_table.
10353 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use
10355 * linux-thread-db.c (info_auto_load_libthread_db): Use
10357 * inferior.c (print_inferior): Use ui_out_emit_table.
10358 * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table.
10359 * breakpoint.c (breakpoint_1): Use ui_out_emit_table.
10360 * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table.
10361 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table.
10362 * ui-out.h (class ui_out_emit_table): New.
10364 2017-08-02 Maciej W. Rozycki <macro@imgtec.com>
10366 * mips-tdep.c (mips_fpu_type_str): New function.
10367 (mips_dump_tdep): Call it.
10369 2017-08-01 Maciej W. Rozycki <macro@imgtec.com>
10371 * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access
10374 2017-07-31 Xavier Roirand <roirand@adacore.com>
10376 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
10378 2017-07-27 Xavier Roirand <roirand@adacore.com>
10380 * MAINTAINERS (Write After Approval): Add Xavier Roirand.
10382 2017-07-26 Yao Qi <yao.qi@linaro.org>
10384 * cli/cli-cmds.c (maintenancechecklist): New variable.
10385 * gdbcmd.h (maintenancechecklist): Declare it.
10386 * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]:
10387 Call i386_linux_read_description with different masks.
10388 * maint.c (maintenance_check_command): New function.
10389 (_initialize_maint_cmds): Call add_prefix_cmd.
10390 * target-descriptions.c (tdesc_reg): override operator != and ==.
10391 (tdesc_type): Likewise.
10392 (tdesc_feature): Likewise.
10393 (target_desc): Likewise.
10394 [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function.
10395 (maintenance_check_xml_descriptions): New function.
10396 (_initialize_target_descriptions) Add command "xml-descriptions".
10397 * target-descriptions.h (selftests::record_xml_tdesc): Declare.
10399 2017-07-26 Yao Qi <yao.qi@linaro.org>
10401 * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c.
10402 Include features/i386/32bit-*.c.
10403 (i386_linux_read_description): Generate target description if it
10405 (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386
10407 * features/i386/32bit-linux.c: Re-generated.
10408 * features/i386/32bit-sse.c: Likewise.
10409 * target-descriptions.c (print_c_feature::visit): Print code to
10410 set register number if needed.
10411 (print_c_feature) <m_next_regnum>: New field.
10413 2017-07-26 Yao Qi <yao.qi@linaro.org>
10415 * features/Makefile (CFILES): Rename with TDESC_CFILES.
10416 (FEATURE_XMLFILES): New.
10417 (FEATURE_CFILES): New.
10419 (clean-cfiles): Remove generated c files.
10420 * features/i386/32bit-avx.c: Generated.
10421 * features/i386/32bit-avx512.c: Generated.
10422 * features/i386/32bit-core.c: Generated.
10423 * features/i386/32bit-linux.c: Generated.
10424 * features/i386/32bit-mpx.c: Generated.
10425 * features/i386/32bit-pkeys.c: Generated.
10426 * features/i386/32bit-sse.c: Generated.
10427 * target-descriptions.c: Include algorithm.
10428 (tdesc_element_visitor): Add method visit_end.
10429 (print_c_tdesc): Implement visit_end.
10430 (print_c_tdesc:: m_filename_after_features): Move it to
10432 (print_c_feature): New class.
10433 (maint_print_c_tdesc_cmd): Use print_c_feature if XML file
10434 name starts with "i386/32bit-".
10436 2017-07-26 Yao Qi <yao.qi@linaro.org>
10438 * target-descriptions.c (tdesc_element_visitor): New class.
10439 (tdesc_element): New class.
10440 (tdesc_reg): Inherit from tdesc_element.
10441 (tdesc_reg::accept): New function.
10442 (tdesc_type): Inherit from tdesc_element.
10443 (tdesc_type::accept): New function.
10444 (tdesc_feature): Inherit from tdesc_element.
10445 (tdesc_feature::accept): New function.
10446 (target_desc): Inherit from tdesc_element.
10447 (target_desc::target_desc): New.
10448 (target_desc::~target_desc): New.
10449 (target_desc::accept): New.
10450 (allocate_target_description): Use new.
10451 (free_target_description): Use delete.
10452 (print_c_tdesc): New class.
10453 (maint_print_c_tdesc_cmd): Adjust.
10455 * features/aarch64.c: Re-generated.
10456 * features/arc-arcompact.c: Re-generated.
10457 * features/arc-v2.c: Re-generated.
10458 * features/arm/arm-with-iwmmxt.c: Re-generated.
10459 * features/arm/arm-with-m.c: Re-generated.
10460 * features/arm/arm-with-m-fpa-layout.c: Re-generated.
10461 * features/arm/arm-with-m-vfp-d16.c: Re-generated.
10462 * features/arm/arm-with-neon.c: Re-generated.
10463 * features/arm/arm-with-vfpv2.c: Re-generated.
10464 * features/arm/arm-with-vfpv3.c: Re-generated.
10465 * features/i386/amd64-avx-avx512.c: Re-generated.
10466 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
10467 * features/i386/amd64-avx.c: Re-generated.
10468 * features/i386/amd64-avx-linux.c: Re-generated.
10469 * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated.
10470 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
10471 * features/i386/amd64-avx-mpx.c: Re-generated.
10472 * features/i386/amd64-avx-mpx-linux.c: Re-generated.
10473 * features/i386/amd64.c: Re-generated.
10474 * features/i386/amd64-linux.c: Re-generated.
10475 * features/i386/amd64-mpx.c: Re-generated.
10476 * features/i386/amd64-mpx-linux.c: Re-generated.
10477 * features/i386/i386-avx-avx512.c: Re-generated.
10478 * features/i386/i386-avx-avx512-linux.c: Re-generated.
10479 * features/i386/i386-avx.c: Re-generated.
10480 * features/i386/i386-avx-linux.c: Re-generated.
10481 * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated.
10482 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated.
10483 * features/i386/i386-avx-mpx.c: Re-generated.
10484 * features/i386/i386-avx-mpx-linux.c: Re-generated.
10485 * features/i386/i386.c: Re-generated.
10486 * features/i386/i386-linux.c: Re-generated.
10487 * features/i386/i386-mmx.c: Re-generated.
10488 * features/i386/i386-mmx-linux.c: Re-generated.
10489 * features/i386/i386-mpx.c: Re-generated.
10490 * features/i386/i386-mpx-linux.c: Re-generated.
10491 * features/i386/x32-avx-avx512.c: Re-generated.
10492 * features/i386/x32-avx-avx512-linux.c: Re-generated.
10493 * features/i386/x32-avx.c: Re-generated.
10494 * features/i386/x32-avx-linux.c: Re-generated.
10495 * features/i386/x32.c: Re-generated.
10496 * features/i386/x32-linux.c: Re-generated.
10497 * features/microblaze.c: Re-generated.
10498 * features/microblaze-with-stack-protect.c: Re-generated.
10499 * features/mips64-dsp-linux.c: Re-generated.
10500 * features/mips64-linux.c: Re-generated.
10501 * features/mips-dsp-linux.c: Re-generated.
10502 * features/mips-linux.c: Re-generated.
10503 * features/nds32.c: Re-generated.
10504 * features/nios2.c: Re-generated.
10505 * features/nios2-linux.c: Re-generated.
10506 * features/rs6000/powerpc-32.c: Re-generated.
10507 * features/rs6000/powerpc-32l.c: Re-generated.
10508 * features/rs6000/powerpc-403.c: Re-generated.
10509 * features/rs6000/powerpc-403gc.c : Re-generated.
10510 * features/rs6000/powerpc-405.c: Re-generated.
10511 * features/rs6000/powerpc-505.c: Re-generated.
10512 * features/rs6000/powerpc-601.c: Re-generated.
10513 * features/rs6000/powerpc-602.c: Re-generated.
10514 * features/rs6000/powerpc-603.c: Re-generated.
10515 * features/rs6000/powerpc-604.c: Re-generated.
10516 * features/rs6000/powerpc-64.c: Re-generated.
10517 * features/rs6000/powerpc-64l.c: Re-generated.
10518 * features/rs6000/powerpc-7400.c: Re-generated.
10519 * features/rs6000/powerpc-750.c: Re-generated.
10520 * features/rs6000/powerpc-860.c: Re-generated.
10521 * features/rs6000/powerpc-altivec32.c: Re-generated.
10522 * features/rs6000/powerpc-altivec32l.c: Re-generated.
10523 * features/rs6000/powerpc-altivec64.c: Re-generated.
10524 * features/rs6000/powerpc-altivec64l.c: Re-generated.
10525 * features/rs6000/powerpc-cell32l.c: Re-generated.
10526 * features/rs6000/powerpc-cell64l.c: Re-generated.
10527 * features/rs6000/powerpc-e500.c: Re-generated.
10528 * features/rs6000/powerpc-e500l.c: Re-generated.
10529 * features/rs6000/powerpc-isa205-32l.c: Re-generated.
10530 * features/rs6000/powerpc-isa205-64l.c: Re-generated.
10531 * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated.
10532 * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated.
10533 * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated.
10534 * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated.
10535 * features/rs6000/powerpc-vsx32.c: Re-generated.
10536 * features/rs6000/powerpc-vsx32l.c: Re-generated.
10537 * features/rs6000/powerpc-vsx64.c: Re-generated.
10538 * features/rs6000/powerpc-vsx64l.c: Re-generated.
10539 * features/rs6000/rs6000.c: Re-generated.
10540 * features/s390-linux32.c: Re-generated.
10541 * features/s390-linux32v1.c: Re-generated.
10542 * features/s390-linux32v2.c: Re-generated.
10543 * features/s390-linux64.c: Re-generated.
10544 * features/s390-linux64v1.c: Re-generated.
10545 * features/s390-linux64v2.c: Re-generated.
10546 * features/s390-te-linux64.c: Re-generated.
10547 * features/s390-tevx-linux64.c: Re-generated.
10548 * features/s390-vx-linux64.c: Re-generated.
10549 * features/s390x-linux64.c: Re-generated.
10550 * features/s390x-linux64v1.c: Re-generated.
10551 * features/s390x-linux64v2.c: Re-generated.
10552 * features/s390x-te-linux64.c: Re-generated.
10553 * features/s390x-tevx-linux64.c: Re-generated.
10554 * features/s390x-vx-linux64.c: Re-generated.
10555 * features/sparc/sparc32-solaris.c: Re-generated.
10556 * features/sparc/sparc64-solaris.c: Re-generated.
10557 * features/tic6x-c62x.c: Re-generated.
10558 * features/tic6x-c62x-linux.c: Re-generated.
10559 * features/tic6x-c64x.c: Re-generated.
10560 * features/tic6x-c64x-linux.c: Re-generated.
10561 * features/tic6x-c64xp.c: Re-generated.
10562 * features/tic6x-c64xp-linux.c: Re-generated.
10564 2017-07-26 Yao Qi <yao.qi@linaro.org>
10566 * i386-linux-tdep.c (i386_linux_read_description): New function.
10567 (i386_linux_core_read_description): Call
10568 i386_linux_read_description.
10569 * i386-linux-tdep.h (i386_linux_read_description): Declare.
10570 (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations.
10571 (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise
10572 (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise.
10573 (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise.
10574 * x86-linux-nat.c (x86_linux_read_description): Call
10575 i386_linux_read_description.
10577 2017-07-26 Yao Qi <yao.qi@linaro.org>
10579 * NEWS: Mention it.
10580 * features/Makefile (%.c: %.xml): Pass the xml file name to
10581 command "maint print c-tdesc".
10582 * target-descriptions.c (maint_print_c_tdesc_cmd): Get file
10585 2017-07-26 Yao Qi <yao.qi@linaro.org>
10587 * target-descriptions.c (target_desc): Add ctor and dtor. Do
10588 in-class initialization.
10589 (tdesc_create_feature): Call new instead of XCNEW.
10590 (free_target_description): Ue delete.
10592 2017-07-25 John Baldwin <jhb@FreeBSD.org>
10594 * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo.
10596 2017-07-25 Yao Qi <yao.qi@linaro.org>
10598 * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc
10600 (amd64_x32_init_abi): Likewise.
10601 * amd64-tdep.h (amd64_init_abi): Update declaration.
10602 (amd64_x32_init_abi): Likewise.
10604 2017-07-25 Yao Qi <yao.qi@linaro.org>
10607 * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update
10608 condition for FPSCR.
10609 (arm_linux_store_inferior_registers): Likewise.
10611 2017-07-22 Tom Tromey <tom@tromey.com>
10613 * break-catch-syscall.c (struct catch_syscall_inferior_data)
10614 <syscalls_counts>: Now a std::vector.
10615 (get_catch_syscall_inferior_data): Use "new".
10616 (catch_syscall_inferior_data_cleanup): Use "delete".
10617 (insert_catch_syscall, remove_catch_syscall)
10618 (clear_syscall_counts): Update.
10620 2017-07-22 Tom Tromey <tom@tromey.com>
10622 * break-catch-syscall.c (syscall_catchpoint)
10623 <syscalls_to_be_caught>: Now a std::vector<int>
10624 (~syscall_catchpoint): Remove.
10625 (insert_catch_syscall, remove_catch_syscall)
10626 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
10627 (print_mention_catch_syscall, print_recreate_catch_syscall):
10629 (create_syscall_event_catchpoint): Change type of "filter"
10631 (catch_syscall_split_args): Return a std::vector.
10632 (catch_syscall_command_1, catching_syscall_number_1): Update.
10634 2017-07-22 Tom Tromey <tom@tromey.com>
10636 * break-catch-throw.c (struct exception_catchpoint)
10637 <exception_rx>: Now a std::string.
10638 (~exception_catchpoint): Remove.
10639 (print_one_detail_exception_catchpoint): Update.
10640 (handle_gnu_v3_exceptions): Change type of except_rx.
10641 (extract_exception_regexp): Return a std::string.
10642 (catch_exception_command_1): Update.
10644 2017-07-22 Tom Tromey <tom@tromey.com>
10646 * break-catch-sig.c (gdb_signal_type): Remove typedef.
10647 (struct signal_catchpoint) <signals_to_be_caught>: Now a
10649 <catch_all>: Now a bool.
10650 (~signal_catchpoint): Remove.
10651 (signal_catchpoint_insert_location)
10652 (signal_catchpoint_remove_location)
10653 (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one)
10654 (signal_catchpoint_print_mention)
10655 (signal_catchpoint_print_recreate)
10656 (signal_catchpoint_explains_signal): Update.
10657 (create_signal_catchpoint): Change type of "filter" and
10659 (catch_signal_split_args): Return a std::vector. Change type of
10661 (catch_signal_command): Update.
10663 2017-07-20 Pedro Alves <palves@redhat.com>
10665 * ada-lang.c (ada_language_defn): Make extern.
10666 (_initialize_ada_language): Remove add_language call.
10667 * c-lang.c (c_language_defn, cplus_language_defn)
10668 (asm_language_defn, minimal_language_defn): Make extern.
10669 (_initialize_c_language): Delete.
10670 * completer.c (compare_cstrings): Delete, moved to utils.h.
10671 * d-lang.c (d_language_defn): Make extern.
10672 (_initialize_d_language): Remove add_language calls.
10673 * defs.h (enum language): Add comment.
10674 * f-lang.c (f_language_defn): Make extern.
10675 (_initialize_f_language): Remove add_language call.
10676 * go-lang.c (go_language_defn): Make extern.
10677 (_initialize_go_language): Remove add_language call.
10678 * language.c: Include <algorithm>.
10679 (languages): Redefine as const array.
10680 (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete.
10681 (set_language_command): Handle "local". Use for-range loop.
10682 (set_language): Remove loop.
10683 (language_enum): Rewrite.
10684 (language_def, language_str): Remove loops.
10685 (add_language): Delete.
10686 (add_set_language_command): New, based on add_languages.
10687 (skip_language_trampoline): Adjust.
10688 (local_language_defn): Delete.
10689 (language_gdbarch_post_init): Adjust.
10690 (_initialize_language): Remove add_language calls. Call
10691 add_set_language_command.
10692 * language.h (add_language): Delete.
10693 (auto_language_defn)
10694 (unknown_language_defn, minimal_language_defn, ada_language_defn)
10695 (asm_language_defn, c_language_defn, cplus_language_defn)
10696 (d_language_defn, f_language_defn, go_language_defn)
10697 (m2_language_defn, objc_language_defn, opencl_language_defn)
10698 (pascal_language_defn, rust_language_defn): Declare.
10699 * m2-lang.c (m2_language_defn): Make extern.
10700 (_initialize_m2_language): Remove add_language call.
10701 * objc-lang.c (objc_language_defn): Make extern.
10702 (_initialize_objc_language): Remove add_language call.
10703 * opencl-lang.c (opencl_language_defn): Make extern.
10704 (_initialize_opencl_language): Remove add_language call.
10705 * p-lang.c (pascal_language_defn): Make extern.
10706 (_initialize_pascal_language): Delete.
10707 * rust-lang.c (rust_language_defn): Make extern.
10708 (_initialize_rust_language): Delete.
10709 * utils.h (compare_cstrings): New static inline function.
10711 2017-07-20 Pedro Alves <palves@redhat.com>
10713 * ada-lang.c (ada_to_fixed_type_1): Adjust.
10714 (get_var_value): Constify parameters.
10715 (get_int_var_value): Change prototype.
10716 (to_fixed_range_type): Adjust.
10717 * ada-lang.h (get_int_var_value): Change prototype.
10719 2017-07-20 Pedro Alves <palves@redhat.com>
10721 * dwarf2read.c (dw2_lookup_symbol): Use
10722 SYMBOL_MATCHES_SEARCH_NAME.
10723 * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME.
10725 2017-07-20 Pedro Alves <palves@redhat.com>
10727 * block.c (block_iter_name_step, block_iter_name_first)
10728 (block_iter_name_next): Delete.
10729 (block_lookup_symbol_primary): Adjust to use
10730 dict_iter_match_first/dict_iter_match_next.
10731 * block.h (block_iter_name_first, block_iter_name_next): Delete
10733 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use
10734 dict_iter_match_first/dict_iter_match_next.
10736 2017-07-20 Pedro Alves <palves@redhat.com>
10738 * cp-support.c (cp_find_first_component_aux): Add missing case for
10741 2017-07-18 David Blaikie <dblaikie@gmail.com>
10743 * dwarf2read.c (create_cus_hash_table): Re-add lost initialization
10744 of dwo_cu's dwo_file.
10746 2017-07-18 Yao Qi <yao.qi@linaro.org>
10748 * remote.c (store_registers_using_G): Remove one line comment.
10750 2017-07-18 Yao Qi <yao.qi@linaro.org>
10752 * regcache.c (regcache_cpy): Simplify it.
10753 (regcache::cpy_no_passthrough): Remove it.
10754 * regcache.h (cpy_no_passthrough): Remove it.
10755 (regcache_dup, regcache_cpy): Update comments.
10757 2017-07-18 Pedro Alves <palves@redhat.com>
10759 * remote-sim.c (sim_command_completer): Adjust to work with a
10760 completion_tracker instead of a VEC.
10762 2017-07-17 Pedro Alves <palves@redhat.com>
10764 * completer.c (complete_source_filenames): New function.
10765 (complete_address_and_linespec_locations): New function.
10766 (location_completer): Use complete_address_and_linespec_locations.
10767 (completion_tracker::build_completion_result): Honor the tracker's
10768 request to suppress append.
10769 * completer.h (completion_tracker::suppress_append_ws)
10770 (completion_tracker::set_suppress_append_ws): New methods.
10771 (completion_tracker::m_suppress_append_ws): New field.
10772 (complete_source_filenames): New declaration.
10773 * linespec.c (linespec_complete_what): New.
10774 (struct ls_parser) <complete_what, completion_word,
10775 completion_quote_char, completion_quote_end, completion_tracker>:
10777 (string_find_incomplete_keyword_at_end): New.
10778 (linespec_lexer_lex_string): Record quote char. If in completion
10780 (linespec_lexer_consume_token): Advance the completion word point.
10781 (linespec_lexer_peek_token): Save/restore completion info.
10782 (save_stream_and_consume_token): New.
10783 (set_completion_after_number): New.
10784 (linespec_parse_basic): Set what to complete next depending on
10785 token. Handle function and label completions specially.
10786 (parse_linespec): Disable objc shortcut in completion mode. Set
10787 what to complete next depending on token type. Skip keyword if in
10789 (complete_linespec_component, linespec_complete): New.
10790 * linespec.h (linespec_complete): Declare.
10792 2017-07-17 Pedro Alves <palves@redhat.com>
10794 * linespec.c (linespec_lexer_lex_string, find_toplevel_char):
10795 Handle 'operator<' / 'operator<<'.
10797 2017-07-17 Pedro Alves <palves@redhat.com>
10799 * completer.c (collect_explicit_location_matches): Handle
10801 (convert_explicit_location_to_linespec): New, factored out from
10803 (convert_explicit_location_to_sals): ... this.
10804 (complete_label): New.
10805 (linespec_complete_label, find_label_symbols_in_block): New.
10806 (find_label_symbols): Add completion_mode parameter and adjust to
10807 call find_label_symbols_in_block.
10808 * linespec.h (linespec_complete_label): Declare.
10810 2017-07-17 Pedro Alves <palves@redhat.com>
10812 * ada-lang.c (ada_collect_symbol_completion_matches): Add
10813 complete_symbol_mode parameter.
10814 * cli/cli-cmds.c (complete_command): Get the completion result out
10815 of the handle_brkchars tracker if used a custom word point.
10816 * completer.c: Include "linespec.h".
10817 (enum explicit_location_match_type) <MATCH_LINE>: New enumerator.
10818 (advance_to_expression_complete_word_point): New.
10819 (completion_tracker::completes_to_completion_word): New.
10820 (complete_files_symbols): Pass down
10821 complete_symbol_mode::EXPRESSION.
10822 (explicit_options, probe_options): New.
10823 (collect_explicit_location_matches): Complete on the
10824 explictit_loc->foo instead of word. Use
10825 linespec_complete_function. Handle MATCH_LINE. Handle offering
10826 keyword and options completions.
10827 (backup_text_ptr): Delete.
10828 (skip_keyword): New.
10829 (complete_explicit_location): Remove 'word' parameter. Add
10830 language, quoted_arg_start and quoted_arg_end parameters.
10831 Rewrite, parsing left to right.
10832 (location_completer): Rewrite.
10833 (location_completer_handle_brkchars): New function.
10834 (symbol_completer): Pass down complete_symbol_mode::EXPRESSION.
10835 (enum complete_line_internal_reason): Adjust comments.
10836 (completion_tracker::discard_completions): New.
10837 (completer_handle_brkchars_func_for_completer): Handle
10838 location_completer.
10839 (gdb_custom_word_point_brkchars)
10840 (gdb_org_rl_basic_quote_characters): New.
10841 (gdb_completion_word_break_characters_throw)
10842 (completion_find_completion_word): Handle trackers that use a
10844 (completion_tracker::advance_custom_word_point_by): New.
10845 (completion_tracker::build_completion_result): Don't rely on
10846 readline appending the quote char.
10847 (gdb_rl_attempted_completion_function_throw): Handle trackers that
10848 use a custom word point.
10849 (gdb_rl_attempted_completion_function): Restore
10850 rl_basic_quote_characters.
10851 * completer.h (class completion_tracker): Extend intro comment.
10852 (completion_tracker::set_quote_char)
10853 (completion_tracker::quote_char)
10854 (completion_tracker::set_use_custom_word_point)
10855 (completion_tracker::use_custom_word_point)
10856 (completion_tracker::custom_word_point)
10857 (completion_tracker::set_custom_word_point)
10858 (completion_tracker::advance_custom_word_point_by)
10859 (completion_tracker::completes_to_completion_word)
10860 (completion_tracker::discard_completions): New methods.
10861 (completion_tracker::m_quote_char)
10862 (completion_tracker::m_use_custom_word_point)
10863 (completion_tracker::m_custom_word_point): New fields.
10864 (advance_to_expression_complete_word_point): Declare.
10865 * f-lang.c (f_collect_symbol_completion_matches): Add
10866 complete_symbol_mode parameter.
10867 * language.h (struct language_defn)
10868 <la_collect_symbol_completion_matches>: Add complete_symbol_mode
10870 * linespec.c (linespec_keywords): Add NULL terminator. Make extern.
10871 (linespec_complete_function): New function.
10872 (linespec_lexer_lex_keyword): Adjust.
10873 * linespec.h (linespec_keywords, linespec_complete_function): New
10875 * location.c (find_end_quote): New function.
10876 (explicit_location_lex_one): Add explicit_completion_info
10877 parameter. Save quoting info. Don't throw if being called for
10878 completion. Don't handle Ada operators here.
10879 (is_cp_operator, skip_op_false_positives, first_of)
10880 (explicit_location_lex_one_function): New function.
10881 (string_to_explicit_location): Replace 'dont_throw' parameter with
10882 an explicit_completion_info pointer parameter. Handle it. Don't
10883 use explicit_location_lex_one to lex function names. Use
10884 explicit_location_lex_one_function instead.
10885 * location.h (struct explicit_completion_info): New.
10886 (string_to_explicit_location): Replace 'dont_throw' parameter with
10887 an explicit_completion_info pointer parameter.
10888 * symtab.c (default_collect_symbol_completion_matches_break_on):
10889 Add complete_symbol_mode parameter. Handle LINESPEC mode.
10890 (default_collect_symbol_completion_matches)
10891 (collect_symbol_completion_matches): Add complete_symbol_mode
10893 (collect_symbol_completion_matches_type): Pass down
10894 complete_symbol_mode::EXPRESSION.
10895 (collect_file_symbol_completion_matches): Add complete_symbol_mode
10896 parameter. Handle LINESPEC mode.
10897 * symtab.h (complete_symbol_mode): New.
10898 (default_collect_symbol_completion_matches_break_on)
10899 (default_collect_symbol_completion_matches)
10900 (collect_symbol_completion_matches)
10901 (collect_file_symbol_completion_matches): Add complete_symbol_mode
10904 2017-07-17 Pedro Alves <palves@redhat.com>
10906 * utils.c (enum class strncmp_iw_mode): New.
10907 (strcmp_iw): Rename to ...
10908 (strncmp_iw_with_mode): ... this. Add string2_len and mode
10909 parameters. Handle them.
10911 (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode.
10912 * utils.h (strncmp_iw): Declare.
10913 (strcmp_iw): Move describing comments here.
10915 2017-07-17 Pedro Alves <palves@redhat.com>
10917 * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and
10919 * c-typeprint.c (is_type_conversion_operator): Use
10921 * cp-support.c (LENGTH_OF_OPERATOR): Delete.
10922 (cp_find_first_component_aux): Use CP_OPERATOR_STR and
10924 * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New.
10925 * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR.
10926 * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR.
10927 * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and
10929 * location.c: Include "cp-support.h".
10930 (explicit_location_lex_one): Use CP_OPERATOR_LEN and
10932 * symtab.c (operator_chars): Use CP_OPERATOR_STR and
10935 2017-07-17 Pedro Alves <palves@redhat.com>
10937 * cli/cli-cmds.c (complete_command): Use a completion tracker
10938 along with completion_find_completion_word for handle_brkchars
10940 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
10941 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New.
10942 (struct gdb_rl_completion_word_info): New.
10943 (gdb_rl_find_completion_word): New.
10944 (completion_find_completion_word): New.
10945 * completer.h (completion_find_completion_word): Declare.
10947 2017-07-17 Pedro Alves <palves@redhat.com>
10949 * ada-lang.c (symbol_completion_match): Adjust comments.
10950 (symbol_completion_add): Replace vector parameter with
10951 completion_tracker parameter. Use it.
10952 (ada_make_symbol_completion_list): Rename to...
10953 (ada_collect_symbol_completion_matches): ... this. Add
10954 completion_tracker parameter and use it.
10955 (ada_language_defn): Adjust.
10956 * break-catch-syscall.c (catch_syscall_completer): Adjust
10957 prototype and work with completion_tracker instead of VEC.
10958 * breakpoint.c (condition_completer): Adjust prototype and work
10959 with completion_tracker instead of VEC.
10960 * c-lang.c (c_language_defn, cplus_language_defn)
10961 (asm_language_defn, minimal_language_defn): Adjust to renames.
10962 * cli/cli-cmds.c (complete_command): Rework using
10963 completion_tracker. Catch exceptions when completing.
10964 * cli/cli-decode.c (integer_unlimited_completer)
10965 (complete_on_cmdlist, complete_on_enum): Adjust prototype and work
10966 with completion_tracker instead of VEC.
10967 * command.h (struct completion_tracker): Forward declare.
10968 (completer_ftype, completer_handle_brkchars_ftype): Change
10970 (complete_on_cmdlist, complete_on_enum): Adjust.
10971 * completer.c: Include <algorithm>.
10972 (struct gdb_completer_state): New.
10973 (current_completion): New global.
10974 (readline_line_completion_function): Delete.
10975 (noop_completer, filename_completer)
10976 (filename_completer_handle_brkchars, complete_files_symbols)
10977 (linespec_location_completer): Adjust to work with a
10978 completion_tracker instead of a VEC.
10979 (string_or_empty): New.
10980 (collect_explicit_location_matches): Adjust to work with a
10981 completion_tracker instead of a VEC.
10982 (explicit_location_completer): Rename to ...
10983 (complete_explicit_location): ... this and adjust to work with a
10984 completion_tracker instead of a VEC.
10985 (location_completer): Adjust to work with a completion_tracker
10987 (add_struct_fields): Adjust to work with a completion_list instead
10989 (expression_completer): Rename to ...
10990 (complete_expression): ... this and adjust to work with a
10991 completion_tracker instead of a VEC. Use complete_files_symbols.
10992 (expression_completer): Reimplement on top of complete_expression.
10993 (symbol_completer): Adjust to work with a completion_tracker
10995 (enum complete_line_internal_reason): Add describing comments.
10996 (complete_line_internal_normal_command): Adjust to work with a
10997 completion_tracker instead of a VEC.
10998 (complete_line_internal): Rename to ...
10999 (complete_line_internal_1): ... this and adjust to work with a
11000 completion_tracker instead of a VEC. Assert TEXT is NULL in the
11001 handle_brkchars phase.
11002 (new_completion_tracker): Delete.
11003 (complete_line_internal): Reimplement as TRY/CATCH wrapper around
11004 complete_line_internal_1.
11005 (free_completion_tracker): Delete.
11006 (INITIAL_COMPLETION_HTAB_SIZE): New.
11007 (completion_tracker::completion_tracker)
11008 (completion_tracker::~completion_tracker): New.
11009 (maybe_add_completion): Delete.
11010 (completion_tracker::maybe_add_completion)
11011 (completion_tracker::add_completion)
11012 (completion_tracker::add_completions): New.
11013 (throw_max_completions_reached_error): Delete.
11014 (complete_line): Adjust to work with a completion_tracker instead
11015 of a VEC. Don't create a completion_tracker_t or check for max
11017 (command_completer, command_completer_handle_brkchars)
11018 (signal_completer, reg_or_group_completer_1)
11019 (reg_or_group_completer, default_completer_handle_brkchars):
11020 Adjust to work with a completion_tracker.
11021 (gdb_completion_word_break_characters_throw): New.
11022 (gdb_completion_word_break_characters): Reimplement.
11023 (line_completion_function): Delete.
11024 (completion_tracker::recompute_lowest_common_denominator)
11025 (expand_preserving_ws)
11026 (completion_tracker::build_completion_result)
11027 (completion_result::completion_result)
11028 (completion_result::completion_result)
11029 (completion_result::~completion_result)
11030 (completion_result::completion_result)
11031 (completion_result::release_match_list, compare_cstrings)
11032 (completion_result::sort_match_list)
11033 (completion_result::reset_match_list)
11034 (gdb_rl_attempted_completion_function_throw)
11035 (gdb_rl_attempted_completion_function): New.
11036 * completer.h (completion_list, struct completion_result)
11037 (class completion_tracker): New.
11038 (complete_line): Add completion_tracker parameter.
11039 (readline_line_completion_function): Delete.
11040 (gdb_rl_attempted_completion_function): New.
11041 (noop_completer, filename_completer, expression_completer)
11042 (location_completer, symbol_completer, command_completer)
11043 (signal_completer, reg_or_group_completer): Update prototypes.
11044 (completion_tracker_t, new_completion_tracker)
11045 (make_cleanup_free_completion_tracker): Delete.
11046 (enum maybe_add_completion_enum): Delete.
11047 (maybe_add_completion): Delete.
11048 (throw_max_completions_reached_error): Delete.
11049 * corefile.c (complete_set_gnutarget): Adjust to work with a
11050 completion_tracker instead of a VEC.
11051 * cp-abi.c (cp_abi_completer): Adjust to work with a
11052 completion_tracker instead of a VEC.
11053 * d-lang.c (d_language_defn): Adjust.
11054 * disasm.c (disassembler_options_completer): Adjust to work with a
11055 completion_tracker instead of a VEC.
11056 * f-lang.c (f_make_symbol_completion_list): Rename to ...
11057 (f_collect_symbol_completion_matches): ... this. Adjust to work
11058 with a completion_tracker instead of a VEC.
11059 (f_language_defn): Adjust.
11060 * go-lang.c (go_language_defn): Adjust.
11061 * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer):
11062 Adjust to work with a completion_tracker instead of a VEC.
11063 * infrun.c (handle_completer): Likewise.
11064 * interps.c (interpreter_completer): Likewise.
11065 * interps.h (interpreter_completer): Likewise.
11066 * language.c (unknown_language_defn, auto_language_defn)
11067 (local_language_defn): Adjust.
11068 * language.h (language_defn::la_make_symbol_completion_list):
11070 (language_defn::la_collect_symbol_completion_matches): ... this
11071 and adjust to work with a completion_tracker instead of a VEC.
11072 * m2-lang.c (m2_language_defn): Adjust.
11073 * objc-lang.c (objc_language_defn): Adjust.
11074 * opencl-lang.c (opencl_language_defn): Adjust.
11075 * p-lang.c (pascal_language_defn): Adjust.
11076 * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word.
11077 (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work
11078 with a completion_tracker.
11079 * rust-lang.c (rust_language_defn): Adjust.
11080 * symtab.c (free_completion_list, do_free_completion_list)
11081 (return_val, completion_tracker): Delete.
11082 (completion_list_add_name, completion_list_add_symbol)
11083 (completion_list_add_msymbol, completion_list_objc_symbol)
11084 (completion_list_add_fields, add_symtab_completions): Add
11085 completion_tracker parameter and use it.
11086 (default_make_symbol_completion_list_break_on_1): Rename to...
11087 (default_collect_symbol_completion_matches_break_on): ... this.
11088 Add completion_tracker parameter and use it instead of allocating
11089 a completion tracker here.
11090 (default_make_symbol_completion_list_break_on): Delete old
11092 (default_make_symbol_completion_list): Delete.
11093 (default_collect_symbol_completion_matches): New.
11094 (make_symbol_completion_list): Delete.
11095 (collect_symbol_completion_matches): New.
11096 (make_symbol_completion_type): Rename to ...
11097 (collect_symbol_completion_matches_type): ... this. Add
11098 completion_tracker parameter and use it instead of VEC.
11099 (make_file_symbol_completion_list_1): Rename to...
11100 (collect_file_symbol_completion_matches): ... this. Add
11101 completion_tracker parameter and use it instead of VEC.
11102 (make_file_symbol_completion_list): Delete.
11103 (add_filename_to_list): Use completion_list instead of a VEC.
11104 (add_partial_filename_data::list): Now a completion_list.
11105 (make_source_files_completion_list): Work with a completion_list
11107 * symtab.h: Include "completer.h".
11108 (default_make_symbol_completion_list_break_on)
11109 (default_make_symbol_completion_list, make_symbol_completion_list)
11110 (make_symbol_completion_type, make_file_symbol_completion_list)
11111 (make_source_files_completion_list): Delete.
11112 (default_collect_symbol_completion_matches_break_on)
11113 (default_collect_symbol_completion_matches)
11114 (collect_symbol_completion_matches)
11115 (collect_symbol_completion_matches_type)
11116 (collect_file_symbol_completion_matches)
11117 (make_source_files_completion_list): New.
11118 * top.c (init_main): Don't install a rl_completion_entry_function
11119 hook. Install a rl_attempted_completion_function hook instead.
11120 * tui/tui-layout.c (layout_completer): Adjust to work with a
11121 completion_tracker.
11122 * tui/tui-regs.c (tui_reggroup_completer):
11123 * tui/tui-win.c (window_name_completer, focus_completer)
11124 (winheight_completer): Adjust to work with a completion_tracker.
11125 * value.c: Include "completer.h".
11126 (complete_internalvar): Adjust to work with a completion_tracker.
11127 * value.h (complete_internalvar): Likewise.
11129 2017-07-17 Pedro Alves <palves@redhat.com>
11131 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to
11133 * cli/cli-decode.h (struct cmd_list_element) <completer>: Move
11134 comments to completer_ftype's declaration.
11135 <completer_handle_brkchars>: Change type to
11136 completer_handle_brkchars_ftype.
11137 * command.h (completer_ftype): Add describing comment and give
11138 names to parameters.
11139 (completer_ftype_void): Rename to ...
11140 (completer_handle_brkchars_ftype) ... this. Add describing comment.
11141 (set_cmd_completer_handle_brkchars): Adjust.
11142 * completer.c (filename_completer_handle_brkchars): New function.
11143 (complete_line_internal_normal_command): New function, factored
11145 (complete_line_internal): ... here.
11146 (command_completer_handle_brkchars)
11147 (default_completer_handle_brkchars)
11148 (completer_handle_brkchars_func_for_completer): New functions.
11149 * completer.h (set_gdb_completion_word_break_characters): Delete
11151 (completer_handle_brkchars_func_for_completer): New declaration.
11152 * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use
11153 completer_handle_brkchars_func_for_completer.
11155 2017-07-17 Pedro Alves <palves@redhat.com>
11157 * completer.c (symbol_completer): New function, based on
11158 make_symbol_completion_list_fn.
11159 * completer.h (symbol_completer): New declaration.
11160 * guile/scm-cmd.c (cmdscm_completers): Adjust.
11161 * python/py-cmd.c (completers): Adjust.
11162 * symtab.c (make_symbol_completion_list_fn): Delete.
11163 * symtab.h (make_symbol_completion_list_fn): Delete.
11164 * cli/cli-decode.c (add_cmd): Adjust.
11166 2017-07-17 Pedro Alves <palves@redhat.com>
11168 * Makefile.in (COMMON_OBS): Add filename-seen-cache.o.
11169 * dwarf2read.c: Include "filename-seen-cache.h".
11170 * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field.
11171 (dw2_map_symbol_filenames): Build and use a filenames_seen_cache.
11172 * filename-seen-cache.c: New file.
11173 * filename-seen-cache.h: New file.
11174 * symtab.c: Include "filename-seen-cache.h".
11175 (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE)
11176 (create_filename_seen_cache, clear_filename_seen_cache)
11177 (delete_filename_seen_cache, filename_seen): Delete, parts moved
11178 to filename-seen-cache.h/filename-seen-cache.c.
11179 (output_source_filename, sources_info)
11180 (maybe_add_partial_symtab_filename)
11181 (make_source_files_completion_list): Adjust to use
11182 filename_seen_cache.
11184 2017-07-17 Pedro Alves <palves@redhat.com>
11186 * dwarf2read.c (dwarf2_per_objfile): In-class initialize all
11188 (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const
11189 dwarf2_debug_sections*)): New.
11190 (dwarf2_per_objfile::dwarf2_per_objfile(const
11191 dwarf2_per_objfile&)): Declare as deleted.
11192 (dwarf2_per_objfile::operator=): Declare as deleted.
11193 (dwarf2_per_objfile::dwarf2_per_objfile)
11194 (dwarf2_per_objfile::~dwarf2_per_objfile)
11195 (dwarf2_per_objfile::free_cached_comp_units): New.
11196 (dwarf2_has_info): dwarf2_per_objfile initialization code moved to
11197 ctor. Call dwarf2_per_objfile's ctor manually.
11198 (dwarf2_locate_sections): Deleted/refactored as ...
11199 (dwarf2_per_objfile::locate_sections): ... this new method.
11200 (free_cached_comp_units): Defer to
11201 dwarf2_per_objfile::free_cached_comp_units.
11202 (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually.
11204 2017-07-14 Tom Tromey <tom@tromey.com>
11207 * rust-exp.y (convert_ast_to_expression): Add "want_type"
11209 <UNOP_SIZEOF>: Split into separate case.
11210 <UNOP_VAR_VALUE>: Handle want_type. Add error case.
11212 2017-07-14 Tom Tromey <tom@tromey.com>
11215 * symtab.c (symbol_matches_domain): Add language_rust to special
11217 * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't
11218 treat LOC_TYPEDEF symbols as variables.
11220 2017-07-14 Pedro Alves <palves@redhat.com>
11222 * symtab.c (make_file_symbol_completion_list_1): Iterate over
11223 symtabs matching all symtabs with SRCFILE as file name instead of
11224 only considering the first hit, with lookup_symtab.
11226 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
11228 * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and
11229 operator_name parameters.
11230 (gen_expr): Update function call.
11232 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
11234 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch
11236 * symtab.h (struct symbol_computed_ops::tracepoint_var_ref):
11238 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch
11239 parameter, use agent_expr::gdbarch instead, update function
11241 (locexpr_tracepoint_var_ref): Likewise.
11242 (loclist_tracepoint_var_ref): Likewise.
11243 * ax-gdb.c (gen_trace_static_fields): Likewise.
11244 (gen_traced_pop): Likewise.
11245 (gen_frame_args_address): Likewise.
11246 (gen_frame_locals_address): Likewise.
11247 (gen_var_ref): Likewise.
11248 (gen_struct_ref_recursive): Likewise.
11249 (gen_static_field): Likewise.
11250 (gen_maybe_namespace_elt): Likewise.
11251 (gen_expr): Likewise.
11252 (gen_trace_for_var): Likewise.
11253 (gen_trace_for_expr): Likewise.
11254 (gen_trace_for_return_address): Likewise.
11256 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
11258 * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax
11260 (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call.
11262 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
11264 * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch
11265 from ax, update calls.
11266 (gen_usual_arithmetic): Likewise.
11267 (gen_integral_promotions): Likewise.
11268 (gen_bitfield_ref): Likewise.
11269 (gen_primitive_field): Likewise.
11270 (gen_struct_ref_recursive): Likewise.
11271 (gen_struct_ref): Likewise.
11272 (gen_maybe_namespace_elt): Likewise.
11273 (gen_struct_elt_for_reference): Likewise.
11274 (gen_namespace_elt): Likewise.
11275 (gen_aggregate_elt_ref): Likewise.
11276 (gen_expr): Get gdbarch from ax, update calls.
11277 (gen_expr_binop_rest): Likewise.
11279 2017-07-13 Pedro Alves <palves@redhat.com>
11281 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64
11283 * amd64-dicos-tdep.c (amd64_dicos_init_abi):
11284 * amd64-fbsd-tdep.c (amd64fbsd_init_abi):
11285 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass
11286 tdesc_amd64_linux as default tdesc. Get final tdesc from the
11288 (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc.
11289 Get final tdesc from the tdep.
11290 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as
11292 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
11293 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
11294 * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter.
11295 Use it as default tdesc.
11296 (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it
11297 down to amd_init_abi. No longer handle fallback tdesc here.
11298 * amd64-tdep.h (tdesc_x32): Declare.
11299 (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc'
11301 * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64
11304 2017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11306 * s390-linux-tdep.c (s390_process_record): Add support for
11307 instructions new in arch12.
11309 2017-07-11 John Baldwin <jhb@FreeBSD.org>
11311 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
11312 PT_GETFSBASE and PT_GETGSBASE.
11313 (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and
11316 2017-07-11 John Baldwin <jhb@FreeBSD.org>
11318 * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat)
11319 (amd64-avx-mpx.dat, amd64-avx-avx512.dat)
11320 (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in
11322 * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml.
11323 * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml.
11324 * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml.
11325 * features/i386/amd64-avx.xml: Add 64bit-segments.xml.
11326 * features/i386/amd64-mpx.xml: Add 64bit-segments.xml.
11327 * features/i386/amd64.xml: Add 64bit-segments.xml.
11328 * features/i386/amd64-avx-avx512.c: Regenerated.
11329 * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated.
11330 * features/i386/amd64-avx-mpx.c: Regenerated.
11331 * features/i386/amd64-avx.c: Regenerated.
11332 * features/i386/amd64-mpx.c: Regenerated.
11333 * features/i386/amd64.c: Regenerated.
11334 * regformats/i386/amd64-avx-avx512.dat: Regenerated.
11335 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
11336 * regformats/i386/amd64-avx-mpx.dat: Regenerated.
11337 * regformats/i386/amd64-avx.dat: Regenerated.
11338 * regformats/i386/amd64-mpx.dat: Regenerated.
11339 * regformats/i386/amd64.dat: Regenerated.
11341 2017-07-10 Yao Qi <yao.qi@linaro.org>
11343 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
11344 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
11346 2017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com>
11348 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and
11350 * gnulib/aclocal.m4: Regenerate.
11351 * gnulib/config.in: Regenerate.
11352 * gnulib/configure: Regenerate.
11353 * gnulib/import/Makefile.am: Regenerate.
11354 * gnulib/import/Makefile.in: Regenerate.
11355 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
11356 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
11357 * gnulib/import/m4/environ.m4: New file.
11358 * gnulib/import/m4/setenv.m4: New file.
11359 * gnulib/import/setenv.c: New file.
11360 * gnulib/import/unsetenv.c: New file.
11362 2017-07-09 Simon Marchi <simon.marchi@ericsson.com>
11364 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read
11365 address when op is DW_OP_addr.
11367 2017-07-09 Tom Tromey <tom@tromey.com>
11369 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size
11370 check and apply to outer type.
11372 2017-07-07 John Baldwin <jhb@FreeBSD.org>
11374 * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS)
11375 (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI)
11376 (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New.
11377 (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method.
11379 2017-07-07 John Baldwin <jhb@FreeBSD.org>
11381 * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name.
11383 2017-07-07 John Baldwin <jhb@FreeBSD.org>
11385 * corelow.c (get_core_siginfo): Remove.
11386 (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method
11387 instead of get_core_siginfo.
11388 * gdbarch.sh (core_xfer_siginfo): New gdbarch callback.
11389 * gdbarch.h: Re-generate.
11390 * gdbarch.c: Re-generate.
11391 * linux-tdep.c (linux_core_xfer_siginfo): New.
11392 (linux_init_abi): Install gdbarch "core_xfer_siginfo" method.
11394 2017-07-07 John Baldwin <jhb@FreeBSD.org>
11396 * corelow.c (thread_section_name): Move to ...
11397 * gdbcore.h (thread_section_name): ... here.
11399 2017-07-07 John Baldwin <jhb@FreeBSD.org>
11401 * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32)
11402 (struct siginfo32): New.
11403 [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New.
11404 (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO
11405 via ptrace(PT_LWPINFO).
11407 2017-07-07 John Baldwin <jhb@FreeBSD.org>
11409 * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data)
11410 (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data)
11411 (fbsd_get_siginfo_type): New.
11412 (fbsd_init_abi): Install gdbarch "get_siginfo_type" method.
11413 (_initialize_fbsd_tdep): New.
11415 2017-07-06 David Blaikie <dblaikie@gmail.com>
11417 * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than
11418 a singular dwo_unit*) to support multiple CUs in the same way that
11419 multiple TUs are supported.
11420 (create_cus_hash_table): Replace create_dwo_cu with a function for
11421 parsing multiple CUs from a DWO file.
11422 (open_and_init_dwo_file): Use create_cus_hash_table rather than
11424 (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with
11425 htab_find, rather than comparing the signature to a singleton CU in
11428 2017-07-06 Pedro Alves <palves@redhat.com>
11430 * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition.
11432 2017-07-04 Pedro Alves <palves@redhat.com>
11434 * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC.
11435 * gdbtypes.h (TYPE_STATIC): Delete.
11436 (struct fn_field) <is_public, is_abstract, is_static, is_final,
11437 is_synchronized, is_native>: Delete.
11439 (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL)
11440 (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE)
11441 (TYPE_FN_FIELD_ABSTRACT): Delete.
11443 2017-07-03 Simon Marchi <simon.marchi@ericsson.com>
11445 * buffer.h (buffer_finish): Fix spelling mistakes.
11447 2017-07-01 Eli Zaretskii <eliz@gnu.org>
11449 * .dir-locals.el: Automatically switch to C-style comments in
11450 versions of Emacs that support the feature.
11452 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
11453 Pedro Alves <palves@redhat.com>
11456 * cli/cli-script.c (command_name_equals_not_inline): Remove function.
11457 (process_next_line): New variable 'inline_cmd'.
11458 Adjust 'if' clauses for "python", "compile" and "guile" to use
11459 'command_name_equals' and check for '!inline_cmd'.
11461 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
11464 * cli/cli-script.c (command_name_equals_not_inline): New function.
11465 (process_next_line): Adjust 'if' clauses for "python", "compile"
11466 and "guile" to use command_name_equals_not_inline.
11468 2017-06-29 Pedro Alves <palves@redhat.com>
11470 * completer.c (expression_completer): Call
11471 linespec_location_completer instead of location_completer.
11473 2017-06-29 Pedro Alves <palves@redhat.com>
11475 * completer.c (expression_completer): Remove code that recomputes
11476 'text' from 'word'.
11478 2017-06-29 Yao Qi <yao.qi@linaro.org>
11480 * regformats/regdat.sh: Generate code with
11481 "ifndef IN_PROCESS_AGENT".
11483 2017-06-28 Pedro Alves <palves@redhat.com>
11485 * command.h: Include "common/scoped_restore.h".
11487 2017-06-28 Yao Qi <yao.qi@linaro.org>
11489 * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str
11490 instead of obstack_grow.
11492 2017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com>
11495 * symfile.c (reread_symbols): Call objfiles_changed just before
11498 2017-06-27 Pedro Alves <palves@redhat.com>
11500 * symtab.c (COMPLETION_LIST_ADD_SYMBOL)
11501 (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ...
11502 (completion_list_add_symbol, completion_list_add_msymbol):
11503 ... these new functions.
11504 (add_symtab_completions)
11505 (default_make_symbol_completion_list_break_on_1): Adjust.
11507 2017-06-27 Pedro Alves <palves@redhat.com>
11509 * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of
11510 bfd_zalloc. Call objfile_per_bfd_storage's ctor.
11511 (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's
11513 * objfiles.h (objfile_per_bfd_storage): Add ctor. Make
11514 'storage_obstack' field an auto_obstack. In-class initialize all
11515 non-bitfield fields. Make minsyms_read bool.
11516 * symfile.c (read_symbols): Adjust.
11518 2017-06-27 Alan Hayward <alan.hayward@arm.com>
11520 * remote-sim.c (gdbsim_fetch_register): Use byte_vector.
11521 (gdbsim_store_register): Likewise.
11523 2017-06-27 Pedro Alves <palves@redhat.com>
11525 * c-exp.y (name_obstack): Now an auto_obstack.
11526 (yylex): Use auto_obstack::clear.
11527 (c_parse): Use auto_obstack::clear instead of reinitializing and
11528 freeing the obstack.
11529 * c-lang.c (evaluate_subexp_c): Use auto_obstack.
11530 * d-exp.y (name_obstack): Now an auto_obstack.
11531 (yylex): Use auto_obstack::clear.
11532 (d_parse): Use auto_obstack::clear instead of reinitializing and
11533 freeing the obstack.
11534 * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use
11536 * dwarf2read.c (create_addrmap_from_index)
11537 (dwarf2_build_psymtabs_hard)
11538 (update_enumeration_type_from_children): Likewise.
11539 * gdb_obstack.h (auto_obstack): New type.
11540 * go-exp.y (name_obstack): Now an auto_obstack.
11541 (build_packaged_name): Use auto_obstack::clear.
11542 (go_parse): Use auto_obstack::clear instead of reinitializing and
11543 freeing the obstack.
11544 * linux-tdep.c (linux_make_mappings_corefile_notes): Use
11546 * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack.
11547 * rust-exp.y (work_obstack): Now an auto_obstack.
11548 (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of
11549 reinitializing and freeing the obstack.
11550 * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete.
11551 (host_char_to_target): Use auto_obstack.
11552 * utils.h (make_cleanup_obstack_free): Delete declaration.
11553 * valprint.c (generic_emit_char, generic_printstr): Use
11556 2017-06-27 Simon Marchi <simon.marchi@ericsson.com>
11558 * darwin-nat.c (darwin_check_new_threads): Don't handle dummy
11560 (darwin_init_thread_list): Don't update dummy thread.
11561 (darwin_create_inferior, darwin_attach): Don't add a dummy thread.
11563 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
11565 * record-full.c (netorder16): Remove.
11567 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
11569 * common/diagnostics.h: Define macros for GCC.
11570 (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro.
11571 * common/vec.h: Include diagnostics.h.
11572 (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro.
11573 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function
11576 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
11578 * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER):
11580 * ada-lex.l: Ignore deprecated register warnings.
11582 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
11584 * main.c (get_init_files): Replace "SYSTEM_GDBINIT +
11585 datadir_len" with "&SYSTEM_GDBINIT[datadir_len]".
11587 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
11589 * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on
11592 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
11594 * nat/x86-dregs.c (x86_show_dr): Print registers one per line.
11596 2017-06-23 Alan Hayward <alan.hayward@arm.com>
11598 * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add.
11599 (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE.
11600 (xtensa_register_read_masked): Likewise.
11602 2017-06-22 Sergio Durigan Junior <sergiodj@redhat.com>
11604 * common/environ.c (gdb_environ::unset): Update comment.
11606 2017-06-22 Alan Hayward <alan.hayward@arm.com>
11608 * python/py-unwind.c (pyuw_sniffer): Allocate space for
11611 2017-06-22 Alan Hayward <alan.hayward@arm.com>
11613 * record-full.c (record_full_exec_insn): Use byte_vector.
11615 2017-06-22 Yao Qi <yao.qi@linaro.org>
11617 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated.
11618 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
11620 2017-06-22 Alan Hayward <alan.hayward@arm.com>
11622 * remote.c (cached_reg): Move from here...
11623 * regcache.h (cached_reg): ...to here.
11624 * python/py-unwind.c (struct reg_info): Remove.
11625 (cached_frame_info): Use cached_reg_t.
11626 (pyuw_prev_register): Likewise.
11627 (pyuw_sniffer): Use cached_reg_t and allocate registers.
11628 (pyuw_dealloc_cache): Free all registers.
11630 2017-06-22 Pedro Alves <palves@redhat.com>
11631 Simon Marchi <simon.marchi@ericsson.com>
11633 * unittests/environ-selftests.c (run_tests): Ignore -Wself-move
11635 * common/diagnostics.h: New file.
11637 2017-06-22 Pedro Alves <palves@redhat.com>
11639 * common/agent.h: Add include guards.
11641 2017-06-21 Simon Marchi <simon.marchi@ericsson.com>
11643 * target.h (struct target_ops) <to_xfer_partial>: Update doc to
11644 talk about addressable units instead of bytes.
11646 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
11648 * common/environ.c (gdb_environ::unset): Use '::iterator' instead
11649 of '::const_iterator'.
11651 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
11653 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11654 'unittests/environ-selftests.c'.
11655 (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'.
11656 * charset.c (find_charset_names): Declare object 'iconv_env'.
11657 Update code to use 'iconv_env' object. Remove call to
11659 * common/environ.c: Include <utility>.
11660 (make_environ): Delete function.
11661 (free_environ): Delete function.
11662 (gdb_environ::clear): New function.
11663 (gdb_environ::operator=): New function.
11664 (gdb_environ::get): Likewise.
11665 (environ_vector): Delete function.
11666 (set_in_environ): Delete function.
11667 (gdb_environ::set): New function.
11668 (unset_in_environ): Delete function.
11669 (gdb_environ::unset): New function.
11670 (gdb_environ::envp): Likewise.
11671 * common/environ.h: Include <vector>.
11672 (struct gdb_environ): Delete; transform into...
11673 (class gdb_environ): ... this class.
11674 (free_environ): Delete prototype.
11675 (init_environ, get_in_environ, set_in_environ, unset_in_environ,
11676 environ_vector): Likewise.
11677 * infcmd.c (run_command_1): Update code to call
11678 'envp' from 'gdb_environ' class.
11679 (environment_info): Update code to call methods from 'gdb_environ'
11681 (unset_environment_command): Likewise.
11682 (path_info): Likewise.
11683 (path_command): Likewise.
11684 * inferior.c (inferior::~inferior): Delete call to 'free_environ'.
11685 (inferior::inferior): Initialize 'environment' using the host's
11687 * inferior.h: Remove forward declaration of 'struct gdb_environ'.
11688 Include "environ.h".
11689 (class inferior) <environment>: Change type from 'struct
11690 gdb_environ' to 'gdb_environ'.
11691 * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call
11692 methods from 'gdb_environ' class.
11693 * solib.c (solib_find_1): Likewise
11694 * unittests/environ-selftests.c: New file.
11696 2017-06-20 Yao Qi <yao.qi@linaro.org>
11698 * features/i386/i386-linux.xml: Exchange the order of including
11699 32bit-linux.xml and 32bit-sse.xml.
11700 * features/i386/i386-linux.c: Regenerated.
11702 2017-06-20 Yao Qi <yao.qi@linaro.org>
11704 * target-descriptions.c (tdesc_reg): Add ctor, dtor.
11705 Delete copy ctor and assignment operator.
11706 (tdesc_type): Likewise.
11707 (tdesc_feature): Likewise.
11708 (tdesc_free_reg): Remove.
11709 (tdesc_create_reg): Use new.
11710 (tdesc_free_type): Remove.
11711 (tdesc_create_vector): Use new.
11712 (tdesc_create_union): Likewise.
11713 (tdesc_create_flags): Likewise.
11714 (tdesc_create_enum): Likewise.
11715 (tdesc_free_feature): Delete.
11716 (free_target_description): Use delete.
11718 2017-06-19 John Baldwin <jhb@FreeBSD.org>
11720 * mips-tdep.c (print_gp_register_row): Don't error for unavailable
11723 2017-06-19 Pedro Alves <palves@redhat.com>
11725 * dwarf2read.c (write_psymtabs_to_index): Construct file_closer
11726 after gdb::unlinker.
11728 2017-06-19 Sergio Durigan Junior <sergiodj@redhat.com>
11730 * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of
11731 gdb_environ to access an environment variable.
11733 2017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
11735 * nat/linux-ptrace.c (linux_fork_to_function): Add cast to
11738 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
11740 * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF.
11742 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
11744 * configure: Re-generate.
11745 * warning.m4 (build_warnings): Add -Wno-mismatched-tags.
11747 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
11749 * configure: Re-generate.
11750 * warning.m4: Pass -Werror to compiler when checking for
11751 supported warning flags.
11753 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
11755 * Makefile.in (COMPILE.pre): Add "-x c++".
11757 2017-06-16 Alan Hayward <alan.hayward@arm.com>
11758 Pedro Alves <palves@redhat.com>
11759 Yao Qi <yao.qi@linaro.org>
11761 * defs.h (RequireLongest): New.
11762 (extract_integer): Declare function template.
11763 (extract_signed_integer): Remove the declaration, but define it
11765 (extract_unsigned_integer): Likewise.
11766 (store_integer): Declare function template.
11767 (store_signed_integer): Remove the declaration, but define it
11769 (store_unsigned_integer): Likewise.
11770 * findvar.c (extract_integer): New function template.
11771 (extract_signed_integer): Remove.
11772 (extract_unsigned_integer): Remove.
11773 (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit
11775 (store_integer): New function template.
11776 (store_signed_integer): Remove.
11777 (store_unsigned_integer): Remove.
11778 (store_integer): Explicit instantiations.
11779 * regcache.c (regcache_raw_read_signed): Update.
11780 (regcache::raw_read): New function.
11781 (regcache::raw_read_signed): Remove.
11782 (regcache::raw_read_unsigned): Remove.
11783 (regcache_raw_read_unsigned): Update.
11784 (regcache_raw_write_unsigned): Update.
11785 (regcache::raw_write_signed): Remove.
11786 (regcache::raw_write): New function.
11787 (regcache_cooked_read_signed): Update.
11788 (regcache::raw_write_unsigned): Remove.
11789 (regcache::cooked_read_signed): Remove.
11790 (regcache_cooked_read_unsigned): Update.
11791 (regcache::cooked_read_unsigned): Remove.
11792 (regcache_cooked_write_signed): Update.
11793 (regcache_cooked_write_unsigned): Update.
11794 * regcache.h (regcache) <raw_read_signed>: Remove.
11795 <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove.
11796 <raw_read, raw_write>: New.
11797 <cooked_read_signed, cooked_write_signed>: Remove.
11798 <cooked_write_unsigned, cooked_read_unsigned>: Remove.
11799 <cooked_read, cooked_write>: New.
11800 * sh64-tdep.c (sh64_pseudo_register_read): Update.
11801 (sh64_pseudo_register_write): Update.
11803 2017-06-16 Anton Kolesov <anton.kolesov@synopsys.com>
11805 * arc-tdep.c (arc_disassembler_options): New variable.
11806 (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead
11807 of default_print_insn.
11808 (arc_delayed_print_insn): Set info->section when needed,
11809 use default_print_insn to retrieve a disassembler.
11811 2017-06-14 Sergio Durigan Junior <sergiodj@redhat.com>
11814 * infcmd.c (_initialize_infcmd): Expand "help run" documentation
11815 to mention $SHELL and startup-with-shell.
11817 2017-06-14 Max Filippov <jcmvbkbc@gmail.com>
11819 * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers.
11821 2017-06-14 Yao Qi <yao.qi@linaro.org>
11823 * aarch64-tdep.c (aarch64_gdb_print_insn): Call
11824 default_print_insn instead of print_insn_aarch64.
11825 * arm-tdep.c (gdb_print_insn_arm): Call
11826 default_print_insn instead of print_insn_big_arm
11827 and print_insn_little_arm.
11828 * i386-tdep.c (i386_print_insn): Call default_print_insn
11829 instead of print_insn_i386.
11830 * ia64-tdep.c (ia64_print_insn): Call
11831 default_print_insn instead of print_insn_ia64.
11832 * mips-tdep.c (gdb_print_insn_mips): Call
11833 default_print_insn instead of print_insn_big_mips
11834 and print_insn_little_mips.
11835 * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn
11836 instead of print_insn_spu.
11838 2017-06-14 Pedro Alves <palves@redhat.com>
11840 * ada-lang.c: Include "common/byte-vector.h".
11841 (ada_value_primitive_packed_val): Use gdb::byte_vector.
11842 * charset.c (wchar_iterator::iterate): Resize the vector instead
11844 * common/byte-vector.h: Include "common/def-vector.h".
11845 (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>.
11846 * cli/cli-dump.c: Include "common/byte-vector.h".
11847 (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector.
11848 * common/byte-vector.h: New file.
11849 * common/def-vector.h: New file.
11850 * common/default-init-alloc.h: New file.
11851 * dwarf2loc.c: Include "common/byte-vector.h".
11852 (rw_pieced_value): Use gdb::byte_vector, and resize the vector
11853 instead of reserving it.
11854 * dwarf2read.c: Include "common/byte-vector.h".
11855 (data_buf::m_vec): Now a gdb::byte_vector.
11856 * gdb_regex.c: Include "common/def-vector.h".
11857 (compiled_regex::compiled_regex): Use gdb::def_vector<char>.
11858 * mi/mi-main.c: Include "common/byte-vector.h".
11859 (mi_cmd_data_read_memory): Use gdb::byte_vector.
11860 * printcmd.c: Include "common/byte-vector.h".
11861 (print_scalar_formatted): Use gdb::byte_vector.
11862 * valprint.c: Include "common/byte-vector.h".
11863 (maybe_negate_by_bytes, print_decimal_chars): Use
11866 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
11868 * darwin-nat.c: Include "nat/fork-inferior.h".
11870 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
11872 * configure.nat: Factor out Darwin bits that are not
11873 architecture-specific. Add fork-inferior.o.
11875 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
11877 * configure.nat: Factor out AIX bits that are not
11878 architecture-specific. Add fork-inferior.o.
11880 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11882 * dwarf2loc.c (rw_pieced_value): New. Merge logic from...
11883 (read_pieced_value, write_pieced_value): ...here. Reduce to
11884 wrappers that just call rw_pieced_value.
11886 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11888 * dwarf2loc.c (write_pieced_value): When writing the data for a
11889 memory piece, use write_memory_with_notification instead of
11892 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11894 * valops.c (read_value_memory): Change embedded_offset to
11895 represent a bit offset instead of a byte offset.
11896 * value.h (read_value_memory): Adjust comment.
11898 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11900 * dwarf2loc.c (read_pieced_value): Remove unnecessary variables
11901 dest_offset_bits and source_offset_bits.
11902 (write_pieced_value): Likewise.
11904 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11906 * dwarf2loc.c (read_pieced_value): Respect the piece offset, as
11907 given by DW_OP_bit_piece.
11908 (write_pieced_value): Likewise.
11910 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11912 * dwarf2loc.c (read_pieced_value): Move the buffer allocation and
11913 some other preparations to the places where sufficient information
11915 (write_pieced_value): Likewise.
11917 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11919 * dwarf2loc.c (bits_to_bytes): New function.
11920 (read_pieced_value): Fix offset calculations for register pieces
11921 on big-endian targets.
11922 (write_pieced_value): Likewise.
11924 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11926 * dwarf2loc.c (read_pieced_value): Remove buffer_size variable.
11927 (write_pieced_value): Likewise.
11929 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11931 * dwarf2loc.c (write_pieced_value): When writing to a bit-field,
11932 transfer the source value's least significant bits, instead of its
11933 lowest-addressed ones. Rename type_len to max_offset.
11934 (read_pieced_value): Mirror above changes to write_pieced_value as
11937 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11939 * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY,
11940 truncate full bytes from dest_offset_bits before using it as an
11941 offset into the buffer.
11943 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11945 * dwarf2loc.c (write_pieced_value): Include transfer size in
11948 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11950 * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the
11951 calculation of this_size.
11953 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11955 * dwarf2loc.c (read_pieced_value): Respect parent value's offset
11956 when targeting a bit-field.
11957 (write_pieced_value): Likewise.
11959 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11961 * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field.
11962 (allocate_piece_closure): Drop addr_size parameter.
11963 (dwarf2_evaluate_loc_desc_full): Adjust call to
11964 allocate_piece_closure.
11966 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11969 * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at
11970 the LSB end, independent of endianness.
11972 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11974 * dwarf2loc.c (write_pieced_value): Fix order of calculations for
11977 2017-06-13 Yao Qi <yao.qi@linaro.org>
11979 * mips-linux-nat.c: Move include features/mips*-linux.c to
11981 (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls
11982 to mips-linux-tdep.c.
11983 * mips-linux-tdep.c: Include features/mips*-linux.c
11984 (_initialize_mips_linux_tdep): Call initialize_tdesc_mips*
11986 * mips-linux-tdep.h (tdesc_mips_linux): Declare.
11987 (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare.
11988 (tdesc_mips64_dsp_linux): Declare.
11990 2017-06-12 Tom Tromey <tom@tromey.com>
11992 * valprint.h (val_print_type_code_int): Remove.
11993 * valprint.c (generic_val_print_int): Always call
11994 val_print_scalar_formatted.
11995 (val_print_type_code_int): Remove.
11996 * printcmd.c (print_scalar_formatted): Handle options->format==0.
11997 * f-valprint.c (f_val_print): Use val_print_scalar_formatted.
11998 * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted.
11999 * ada-valprint.c (ada_val_print_num): Use
12000 val_print_scalar_formatted.
12002 2017-06-12 Tom Tromey <tom@tromey.com>
12004 * printcmd.c (print_scalar_formatted): Unify the two switches.
12005 Don't convert scalars to LONGEST.
12007 2017-06-12 Tom Tromey <tom@tromey.com>
12010 * valprint.h (print_decimal_chars): Update.
12011 * valprint.c (maybe_negate_by_bytes): New function.
12012 (print_decimal_chars): Add "is_signed" argument.
12013 * printcmd.c (print_scalar_formatted): Update.
12015 2017-06-12 Tom Tromey <tom@tromey.com>
12018 * valprint.h (print_binary_chars, print_hex_chars): Update.
12019 * valprint.c (val_print_type_code_int): Update.
12020 (print_binary_chars): Add "zero_pad" argument.
12021 (emit_octal_digit): New function.
12022 (print_octal_chars): Don't zero-pad.
12023 (print_decimal_chars): Likewise.
12024 (print_hex_chars): Add "zero_pad" argument.
12025 * sh64-tdep.c (sh64_do_fp_register): Update.
12026 * regcache.c (regcache::dump): Update.
12027 * printcmd.c (print_scalar_formatted): Update.
12028 * infcmd.c (default_print_one_register_info): Update.
12030 2017-06-12 Pedro Alves <palves@redhat.com>
12031 Alan Hayward <alan.hayward@arm.com>
12033 * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New.
12034 (mips_eabi_push_dummy_call): Rename local 'regsize' to
12035 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and
12036 use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it.
12037 Assert that abi_regsize bytes fit in 'ref_valbuf'.
12039 2017-06-12 Pedro Alves <palves@redhat.com>
12041 * dwarf2read.c (mapped_symtab::data): Now a vector of
12042 symtab_index_entry instead of vector of
12043 std::unique_ptr<symtab_index_entry>. All users adjusted to check
12044 whether an element's name is NULL instead of checking whether the
12045 element itself is NULL.
12046 (find_slot): Change return type. Adjust.
12047 (hash_expand, , add_index_entry, uniquify_cu_indices)
12048 (write_hash_table): Adjust.
12050 2017-06-12 Pedro Alves <palves@redhat.com>
12052 * dwarf2read.c (recursively_count_psymbols): New function.
12053 (write_psymtabs_to_index): Call it to compute number of psyms and
12054 pass estimate size of psyms_seen to unordered_set's ctor.
12056 2017-06-12 Pedro Alves <palves@redhat.com>
12058 * dwarf2read.c (write_hash_table): Check if key already exists
12061 2017-06-12 Pedro Alves <palves@redhat.com>
12063 * dwarf2read.c (data_buf::append_space): Rename to...
12064 (data_buf::grow): ... this, and make private. Adjust all callers.
12065 (data_buf::append_uint): New method.
12066 (add_address_entry, write_one_signatured_type)
12067 (write_psymtabs_to_index): Use it.
12069 2017-06-12 Pedro Alves <palves@redhat.com>
12071 * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete.
12072 (file_write (FILE *, const std::vector<Elem>&)): Delete.
12073 (data_buf::file_write): Call ::fwrite directly.
12075 2017-06-12 Pedro Alves <palves@redhat.com>
12077 * dwarf2read.c (uniquify_cu_indices): Use std::unique and
12078 std::vector::erase.
12080 2017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com>
12082 Code cleanup: C++ify .gdb_index producer.
12083 * dwarf2read.c: Include <unordered_set> and <unordered_map>.
12084 (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type.
12085 (struct strtab_entry, hash_strtab_entry, eq_strtab_entry)
12086 (create_strtab, add_string): Remove.
12087 (file_write, data_buf): New.
12088 (struct symtab_index_entry): Use std::vector for cu_indices.
12089 (struct mapped_symtab): Use std::vector for data.
12090 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry)
12091 (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab):
12093 (find_slot): Change return type. Update it to the new data structures.
12094 (hash_expand, add_index_entry): Update it to the new data structures.
12095 (offset_type_compare): Remove.
12096 (uniquify_cu_indices): Update it to the new data structures.
12097 (c_str_view, c_str_view_hasher, vector_hasher): New.
12098 (add_indices_to_cpool): Remove.
12099 (write_hash_table): Update it to the new data structures.
12100 (struct psymtab_cu_index_map, hash_psymtab_cu_index)
12101 (eq_psymtab_cu_index): Remove.
12102 (psym_index_map): New typedef.
12103 (struct addrmap_index_data): Change addr_obstack pointer to data_buf
12104 reference and std::unordered_map for cu_index_htab.
12105 (add_address_entry, add_address_entry_worker, write_address_map)
12106 (write_psymbols): Update it to the new data structures.
12107 (write_obstack): Remove.
12108 (struct signatured_type_index_data): Change types_list to a data_buf
12109 reference and psyms_seen to a std::unordered_set reference.
12110 (write_one_signatured_type, recursively_write_psymbols)
12111 (write_psymtabs_to_index): Update it to the new data structures.
12113 2017-06-11 Simon Marchi <simon.marchi@ericsson.com>
12115 * NEWS (Changes since GDB 8.0): Announce {set,show} debug
12116 separate-debug-file commands.
12117 * symfile.h (separate_debug_file_debug): New global.
12118 * symfile.c (separate_debug_file_debug): New global.
12119 (separate_debug_file_exists, find_separate_debug_file): Add
12121 (_initialize_symfile): Add "set debug separate-debug-file"
12123 * build-id.c (build_id_to_debug_bfd,
12124 find_separate_debug_file_by_buildid): Add debug output.
12126 2017-06-10 Simon Marchi <simon.marchi@polymtl.ca>
12128 * gdbarch.sh (displaced_step_free_closure): Remove.
12129 * gdbarch.h, gdbarch.c: Re-generate.
12130 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set
12131 displaced_step_free_closure.
12132 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
12133 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
12134 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
12135 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
12136 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12137 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12138 * arch-utils.h (simple_displaced_step_free_closure): Remove.
12139 * arch-utils.c (simple_displaced_step_free_closure): Remove.
12140 * infrun.c (displaced_step_clear): Call xfree instead of
12141 gdbarch_displaced_step_free_closure.
12143 2017-06-08 Sergio Durigan Junior <sergiodj@redhat.com>
12145 * common/common-utils.c (stringify_argv): Check for "arg[0] !=
12148 2017-06-08 Alan Hayward <alan.hayward@arm.com>
12150 * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add.
12151 (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE.
12152 (mn10300_push_dummy_call): Likewise.
12154 2017-06-08 Alan Hayward <alan.hayward@arm.com>
12156 * mi/mi-main.c (register_changed_p): Use value_contents_eq.
12158 2017-06-08 Alan Hayward <alan.hayward@arm.com>
12160 * mi/mi-main.c (register_changed_p): Use cooked_read_value.
12162 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
12164 * NEWS (Changes since GDB 8.0): Announce that GDBserver is now
12165 able to start inferiors using a shell.
12166 (New remote packets): Announce new packet "QStartupWithShell".
12167 * remote.c: Add PACKET_QStartupWithShell.
12168 (extended_remote_create_inferior): Handle new
12169 PACKET_QStartupWithShell.
12170 (remote_protocol_features) <QStartupWithShell>: New entry for
12171 PACKET_QStartupWithShell.
12172 (_initialize_remote): Call "add_packet_config_cmd" for
12175 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
12176 Pedro Alves <palves@redhat.com>
12178 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h"
12179 and "nat/fork-inferior.h".
12180 * common/common-inferior.h: New file, with contents from
12182 * commom/common-utils.c: Include "common-utils.h".
12183 (stringify_argv): New function.
12184 * common/common-utils.h (stringify_argv): New prototype.
12185 * configure.nat: Add "fork-inferior.o" as a dependency for
12186 "*linux*", "fbsd*" and "nbsd*" hosts.
12187 * corefile.c (get_exec_file): Update comment.
12188 * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior"
12189 instead of "startup_inferior".
12190 (darwin_create_inferior): Call "add_thread_silent" after
12192 * fork-child.c: Cleanup unnecessary includes.
12193 (SHELL_FILE): Move to "common/common-fork-child.c".
12194 (environ): Likewise.
12195 (exec_wrapper): Initialize.
12196 (get_exec_wrapper): New function.
12197 (breakup_args): Move to "common/common-fork-child.c"; rename to
12198 "breakup_args_for_exec".
12199 (escape_bang_in_quoted_argument): Move to
12200 "common/common-fork-child.c".
12201 (saved_ui): New variable.
12202 (prefork_hook): New function.
12203 (postfork_hook): Likewise.
12204 (postfork_child_hook): Likewise.
12205 (gdb_startup_inferior): Likewise.
12206 (fork_inferior): Move to "common/common-fork-child.c". Update
12207 function to support gdbserver.
12208 (startup_inferior): Likewise.
12209 * gdbcore.h (get_exec_file): Remove declaration.
12210 * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior"
12211 instead of "startup_inferior". Call "add_thread_silent" after
12213 * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h".
12214 (inf_ptrace_create_inferior): Call "gdb_startup_inferior"
12215 instead of "startup_inferior". Call "add_thread_silent" after
12217 * inferior.h: Include "common-inferior.h".
12218 (trace_start_error): Move to "common/common-utils.h".
12219 (trace_start_error_with_name): Likewise.
12220 (fork_inferior): Move prototype to "nat/fork-inferior.h".
12221 (startup_inferior): Likewise.
12222 (gdb_startup_inferior): New prototype.
12223 * nat/fork-inferior.c: New file, with contents from "fork-child.c".
12224 * nat/fork-inferior.h: New file.
12225 * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior"
12226 instead of "startup_inferior". Call "add_thread_silent" after
12228 * target.h (target_terminal_init): Move prototype to
12230 (target_terminal_inferior): Likewise.
12231 (target_terminal_ours): Likewise.
12232 * target/target.h (target_terminal_init): New prototype, moved
12234 (target_terminal_inferior): Likewise.
12235 (target_terminal_ours): Likewise.
12236 * utils.c (gdb_flush_out_err): New function.
12238 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
12240 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h".
12241 * common/common-gdbthread.h: New file, with parts from
12243 * gdbthread.h: Include "common-gdbthread.h".
12244 (switch_to_thread): Moved to "common/common-gdbthread.h".
12246 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
12248 * Makefile.in (SFILES): Add "common/job-control.c".
12249 (HFILES_NO_SRCDIR): Add "common/job-control.h".
12250 (COMMON_OBS): Add "job-control.o".
12251 * common/job-control.c: New file, with contents from
12253 * common/job-control.h: New file, with contents from "terminal.h".
12254 * fork-child.c: Include "job-control.h".
12255 * inflow.c: Include "job-control.h".
12256 (gdb_setpgid): Move to "common/common-inflow.c".
12257 (_initialize_inflow): Move setting of "job_control" to
12258 "handle_job_control".
12259 * terminal.h (job_control): Moved to "common/common-terminal.h".
12260 (gdb_setpgid): Likewise.
12261 * top.c: Include "job_control.h".
12262 * utils.c: Likewise.
12263 (job_control): Moved to "job-control.c".
12265 2017-06-07 Pedro Alves <palves@redhat.com>
12267 * Makefile.in (SFILES): Add gdb_regex.c.
12268 (COMMON_OBS): Add gdb_regex.o.
12269 * ada-lang.c (ada_add_standard_exceptions)
12270 (ada_add_exceptions_from_frame, name_matches_regex)
12271 (ada_add_global_exceptions, ada_exceptions_list_1): Change regex
12272 parameter type to compiled_regex. Adjust.
12273 (ada_exceptions_list): Use compiled_regex.
12274 * break-catch-throw.c (exception_catchpoint::pattern): Now a
12275 std::unique_ptr<compiled_regex>.
12276 (exception_catchpoint::~exception_catchpoint): Remove regfree
12278 (check_status_exception_catchpoint): Adjust to use compiled_regex.
12279 (handle_gnu_v3_exceptions): Adjust to use compiled_regex.
12280 * breakpoint.c (solib_catchpoint::compiled): Now a
12281 std::unique_ptr<compiled_regex>.
12282 (solib_catchpoint::~solib_catchpoint): Remove regfree call.
12283 (check_status_catch_solib): Adjust to use compiled_regex.
12284 (add_solib_catchpoint): Adjust to use compiled_regex.
12285 * cli/cli-cmds.c (apropos_command): Use compiled_regex.
12286 * cli/cli-decode.c (apropos_cmd): Change regex parameter to
12287 compiled_regex reference. Adjust to use it.
12288 * cli/cli-decode.h: Remove struct re_pattern_buffer forward
12289 declaration. Include "gdb_regex.h".
12290 (apropos_cmd): Change regex parameter to compiled_regex reference.
12291 * gdb_regex.c: New file.
12292 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete
12294 (class compiled_regex): New.
12295 * linux-tdep.c: Include "common/gdb_optional.h".
12296 (struct mapping_regexes): New, factored out from
12297 mapping_is_anonymous_p, and adjusted to use compiled_regex.
12298 (mapping_is_anonymous_p): Use mapping_regexes wrapped in a
12299 gdb::optional and remove cleanups. Adjust to compiled_regex.
12300 * probe.c: Include "common/gdb_optional.h".
12301 (collect_probes): Use compiled_regex and gdb::optional and remove
12303 * skip.c: Include "common/gdb_optional.h".
12304 (skiplist_entry::compiled_function_regexp): Now a
12305 gdb::optional<compiled_regex>.
12306 (skiplist_entry::compiled_function_regexp_is_valid): Delete field.
12307 (free_skiplist_entry): Remove regfree call.
12308 (compile_skip_regexp, skip_rfunction_p): Adjust to use
12309 compiled_regex and gdb::optional.
12310 * symtab.c: Include "common/gdb_optional.h".
12311 (search_symbols): Use compiled_regex and gdb::optional.
12312 * utils.c (do_regfree_cleanup, make_regfree_cleanup)
12313 (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved
12316 2017-06-07 Alan Hayward <alan.hayward@arm.com>
12318 * regcache.c (regcache::save): Avoid buffer use.
12319 (regcache::dump): Likewise.
12321 2017-06-07 Alan Hayward <alan.hayward@arm.com>
12323 * sh-tdep.c (sh_pseudo_register_read): Remove
12325 (sh_pseudo_register_write): Likewise.
12326 * sh64-tdep.c (sh64_pseudo_register_read): Likewise.
12327 (sh64_pseudo_register_write): Likewise
12329 2017-06-07 Alan Hayward <alan.hayward@arm.com>
12331 * aarch64-tdep.c (aarch64_store_return_value): Use
12333 (aarch64_pseudo_read_value): Likewise.
12334 (aarch64_pseudo_write): Likewise.
12336 2017-06-06 Yao Qi <yao.qi@linaro.org>
12338 * regformats/regdef.h (set_register_cache): Remove the
12341 2017-06-06 Alan Hayward <alan.hayward@arm.com>
12343 * frame.c (frame_unwind_register_signed): Use
12344 frame_unwind_register_value.
12346 2017-06-06 Pedro Alves <palves@redhat.com>
12348 PR breakpoints/21553
12349 * breakpoint.c (create_breakpoints_sal_default)
12350 (init_breakpoint_sal, create_breakpoint_sal): Use
12351 gdb::unique_xmalloc_ptr for string parameters.
12352 (create_breakpoint): Constify 'extra_string' and 'cond_string'
12353 parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
12354 (base_breakpoint_create_breakpoints_sal)
12355 (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
12356 (strace_marker_create_breakpoints_sal)
12357 (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
12359 * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
12360 gdb::unique_xmalloc_ptr for string parameters.
12361 (create_breakpoint): Constify 'extra_string' and 'cond_string'
12364 2017-06-06 Alan Hayward <alan.hayward@arm.com>
12366 * alpha-tdep.c (alpha_register_to_value): Use
12367 get_frame_register_value.
12368 (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
12370 2017-06-06 Alan Hayward <alan.hayward@arm.com>
12372 * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
12373 (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
12374 (ia64_value_to_register): Likewise.
12375 (ia64_extract_return_value): Likewise.
12376 (ia64_store_return_value): Likewise.
12377 (ia64_push_dummy_call): Likewise.
12379 2017-06-04 Joel Brobecker <brobecker@adacore.com>
12383 2017-06-03 Simon Marchi <simon.marchi@ericsson.com>
12385 * x86-linux-nat.c (struct arch_lwp_info): Remove.
12387 2017-06-03 Simon Marchi <simon.marchi@polymtl.ca>
12389 * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
12391 (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
12393 2017-06-02 Simon Marchi <simon.marchi@ericsson.com>
12395 * event-loop.c (poll_timers): Unallocate timer using delete
12398 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
12400 * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
12401 (struct breakpoint) <~breakpoint>: New.
12402 (struct watchpoint): Inherit from breakpoint.
12403 <~watchpoint>: New.
12405 (struct tracepoint): Inherit from breakpoint.
12407 * breakpoint.c (longjmp_breakpoint_ops): Remove.
12408 (struct longjmp_breakpoint): Inherit from breakpoint.
12409 <~longjmp_breakpoint>: New.
12411 (new_breakpoint_from_type): Remove casts.
12412 (watchpoint_in_thread_scope): Remove reference to base field.
12413 (watchpoint_del_at_next_stop): Likewise.
12414 (update_watchpoint): Likewise.
12415 (watchpoint_check): Likewise.
12416 (bpstat_check_watchpoint): Likewise.
12417 (set_longjmp_breakpoint): Likewise.
12418 (struct fork_catchpoint): Inherit from breakpoint.
12420 (struct solib_catchpoint): Inherit from breakpoint.
12421 <~solib_catchpoint>: New.
12423 (dtor_catch_solib): Change to ...
12424 (solib_catchpoint::~solib_catchpoint): ... this.
12425 (breakpoint_hit_catch_solib): Remove reference to base field.
12426 (add_solib_catchpoint): Likewise.
12427 (create_fork_vfork_event_catchpoint): Likewise.
12428 (struct exec_catchpoint): Inherit from breakpoint.
12429 <~exec_catchpoint>: New.
12431 (dtor_catch_exec): Change to ...
12432 (exec_catchpoint::~exec_catchpoint): ... this.
12433 (dtor_watchpoint): Change to ...
12434 (watchpoint::~watchpoint): ... this.
12435 (watch_command_1): Remove reference to base field.
12436 (catch_exec_command_1): Likewise.
12437 (base_breakpoint_dtor): Change to ...
12438 (breakpoint::~breakpoint): ... this.
12439 (base_breakpoint_ops): Remove dtor field value.
12440 (longjmp_bkpt_dtor): Change to ...
12441 (longjmp_breakpoint::~longjmp_breakpoint): ... this.
12442 (strace_marker_create_breakpoints_sal): Remove reference to base
12444 (delete_breakpoint): Don't manually call breakpoint destructor.
12445 (create_tracepoint_from_upload): Remove reference to base field.
12446 (trace_pass_set_count): Likewise.
12447 (initialize_breakpoint_ops): Don't initialize
12448 momentary_breakpoint_ops, don't set dtors.
12449 * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
12450 <~ada_catchpoint>: New.
12452 (create_excep_cond_exprs): Remove reference to base field.
12453 (dtor_exception): Change to ...
12454 (ada_catchpoint::~ada_catchpoint): ... this.
12455 (dtor_catch_exception): Remove.
12456 (dtor_catch_exception_unhandled): Remove.
12457 (dtor_catch_assert): Remove.
12458 (create_ada_exception_catchpoint): Remove reference to base
12460 (initialize_ada_catchpoint_ops): Don't set dtors.
12461 * break-catch-sig.c (struct signal_catchpoint): Inherit from
12463 <~signal_catchpoint>: New.
12465 (signal_catchpoint_dtor): Change to ...
12466 (signal_catchpoint::~signal_catchpoint): ... this.
12467 (create_signal_catchpoint): Remove reference to base field.
12468 (initialize_signal_catchpoint_ops): Don't set dtor.
12469 * break-catch-syscall.c (struct syscall_catchpoint): Inherit
12471 <~syscall_catchpoint>: New.
12473 (dtor_catch_syscall): Change to ...
12474 (syscall_catchpoint::~syscall_catchpoint): ... this.
12475 (create_syscall_event_catchpoint): Remove reference to base
12477 (initialize_syscall_catchpoint_ops): Don't set dtor.
12478 * break-catch-throw.c (struct exception_catchpoint): Inherit
12480 <~exception_catchpoint>: New.
12482 (dtor_exception_catchpoint): Change to ...
12483 (exception_catchpoint::~exception_catchpoint): ... this.
12484 (handle_gnu_v3_exceptions): Remove reference to base field.
12485 (initialize_throw_catchpoint_ops): Don't set dtor.
12486 * ctf.c (ctf_get_traceframe_address): Remove reference to base
12488 * remote.c (remote_get_tracepoint_status): Likewise.
12489 * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
12490 * tracefile.c (tracefile_fetch_registers): Likewise.
12491 * tracepoint.c (actions_command): Likewise.
12492 (validate_actionline): Likewise.
12493 (tfind_1): Likewise.
12494 (get_traceframe_location): Likewise.
12495 (find_matching_tracepoint_location): Likewise.
12496 (parse_tracepoint_status): Likewise.
12497 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
12499 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
12501 * breakpoint.c (struct longjmp_breakpoint): New struct.
12502 (is_tracepoint_type): Change return type to bool.
12503 (is_longjmp_type): New function.
12504 (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
12505 (set_raw_breakpoint_without_location): Use
12506 new_breakpoint_from_type.
12507 (set_raw_breakpoint): Likewise.
12509 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
12511 * breakpoint.c (new_breakpoint_from_type): New function.
12512 (create_breakpoint_sal): Use new_breakpoint_from_type and
12514 (create_breakpoint): Likewise.
12516 2017-05-31 Simon Marchi <simon.marchi@ericsson.com>
12518 * memattr.c (mem_info_command): Rename to ...
12519 (info_mem_command): ... this.
12520 (mem_enable_command): Rename to ...
12521 (enable_mem_command): ... this.
12522 (mem_disable_command): Rename to ...
12523 (disable_mem_command): ... this.
12524 (mem_delete_command): Rename to ...
12525 (delete_mem_command): ... this.
12526 (_initialize_mem): Adjust function names.
12528 2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
12530 * btrace.c (handle_pt_insn_events): New.
12531 (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into
12532 STATUS. Split into this and ...
12533 (handle_pt_insn_event_flags): ... this.
12535 2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
12537 * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
12538 and struct pt_insn.resynced.
12539 * configure: Regenerated.
12540 * config.in: Regenerated.
12542 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12544 * btrace.c (ftrace_find_call_by_number): New function.
12545 (ftrace_new_function): Store objects, not pointers.
12546 (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
12547 ftrace_new_gap, ftrace_update_function,
12548 ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
12549 btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
12550 btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
12551 btrace_ends_with_single_insn, btrace_call_get): Account for
12552 btrace_thread_info::functions now storing objects.
12553 * btrace.h (struct btrace_thread_info): Add constructor.
12554 (struct btrace_thread_info) <functions>: Make std::vector.
12555 (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
12556 Initialize with default values.
12557 * record-btrace.c (record_btrace_frame_sniffer): Account for
12558 btrace_thread_info::functions now storing objects.
12560 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12562 * btrace.c: Remove typedef bfun_s.
12563 (ftrace_new_gap): Directly add gaps to the list of gaps.
12564 (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
12565 ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
12566 btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
12567 instead of gdb VEC.
12569 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12571 * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
12572 ftrace_bridge_gap): Replace references to btrace_thread_info::segment
12573 with btrace_thread_info::next_segment and
12574 btrace_thread_info::prev_segment.
12575 * btrace.h: Remove struct btrace_func_link.
12576 (struct btrace_function): Replace pair of function segment pointers
12577 with pair of indices.
12578 * python/py-record-btrace.c (btpy_call_prev_sibling,
12579 btpy_call_next_sibling): Replace references to
12580 btrace_thread_info::segment with btrace_thread_info::next_segment and
12581 btrace_thread_info::prev_segment.
12582 * record-btrace.c (record_btrace_frame_this_id): Use
12583 btrace_find_call_by_number.
12585 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12587 * btrace.c (ftrace_new_function, ftrace_fixup_level,
12588 ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
12589 btrace_insn_next, btrace_insn_prev): Remove references to
12590 btrace_thread_info::flow.
12591 * btrace.h (struct btrace_function): Remove FLOW.
12593 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12595 * btrace.c (ftrace_find_call_by_number): New function.
12596 (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
12597 ftrace_get_caller, ftrace_find_call, ftrace_new_return,
12598 ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
12599 ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
12601 * btrace.h (struct btrace_function): Turn UP into an index.
12602 * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
12604 * record-btrace.c (record_btrace_frame_unwind_stop_reason,
12605 record_btrace_frame_prev_register, record_btrace_frame_sniffer,
12606 record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
12608 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12610 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
12611 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
12612 ftrace_update_function, ftrace_compute_global_level_offset,
12613 btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
12614 btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
12615 btrace_insn_end, btrace_is_empty): Remove references to
12616 btrace_thread_info::begin and btrace_thread_info::end.
12617 * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
12618 (struct btrace_thread_info) <functions>: Adjust comment.
12619 * record-btrace.c (record_btrace_start_replaying): Remove reference to
12620 btrace_thread_info::begin.
12622 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12624 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
12625 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
12626 ftrace_update_function): Remove arguments that implicitly were always
12628 (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
12629 Don't pass BTINFO->END.
12631 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12633 * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
12634 btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
12635 btrace_find_insn_by_number): Replace function segment pointer with
12637 (btrace_insn_cmp): Simplify.
12638 * btrace.h: (struct btrace_insn_iterator) Rename index to
12639 insn_index. Replace function segment pointer with index into function
12641 * record-btrace.c (record_btrace_call_history): Replace function
12642 segment pointer use with index.
12643 (record_btrace_frame_sniffer): Retrieve function call segment through
12645 (record_btrace_set_replay): Remove defunc't safety check.
12647 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12649 * btrace.c (btrace_ends_with_single_insn): New function.
12650 (btrace_call_get, btrace_call_number, btrace_call_begin,
12651 btrace_call_end, btrace_call_next, btrace_call_prev,
12652 btrace_find_call_by_number): Use index into call segment vector
12653 instead of pointer.
12654 (btrace_call_cmp): Simplify.
12655 * btrace.h (struct btrace_call_iterator): Replace function call segment
12656 pointer with index into vector.
12657 * record-btrace.c (record_btrace_call_history): Use index instead of
12660 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12662 * btrace.c (btrace_insn_begin, btrace_insn_end,
12663 btrace_find_insn_by_number): Add btinfo to iterator.
12664 * btrace.h (struct btrace_insn_iterator): Add btinfo.
12666 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12668 * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
12669 and save pointers directly.
12670 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
12671 ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
12672 ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for
12673 changed signature of functions.
12674 (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
12675 (btrace_fetch): Remove code that adds btrace_function pointers to
12676 vector of btrace_functions.
12677 (btrace_clear): Simplify freeing vector of btrace_functions.
12679 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12681 * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
12682 Replace VEC_* with std::vector functions.
12683 * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
12684 (struct btrace_thread_info)<functions>: Change type to std::vector.
12686 2017-05-30 Simon Marchi <simon.marchi@ericsson.com>
12688 * NEWS (Changes in GDB 8.0): Remove extra empty line. Move
12689 "Removed targets and native configurations" up. Merge duplicate
12690 "New commands" sub-sections. Add "New options" sub-sections.
12692 2017-05-26 Alan Hayward <alan.hayward@arm.com>
12694 * defs.h (copy_integer_to_size): New declaration.
12695 * findvar.c (copy_integer_to_size): New function.
12696 (do_cint_test): New selftest function.
12697 (copy_integer_to_size_test): Likewise.
12698 (_initialize_findvar): Likewise.
12699 * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
12700 (mips_fbsd_collect_reg): Use raw_collect_integer.
12701 * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
12702 (mips64_fill_gregset): Use raw_collect_integer
12703 (mips64_fill_fpregset): Use raw_supply_integer.
12704 * regcache.c (regcache::raw_supply_integer): New function.
12705 (regcache::raw_collect_integer): Likewise.
12706 * regcache.h: (regcache::raw_supply_integer): New declaration.
12707 (regcache::raw_collect_integer): Likewise.
12709 2017-05-24 Yao Qi <yao.qi@linaro.org>
12711 * Makefile.in (SFILES): Add gdbarch-selftests.c.
12712 (COMMON_OBS): Add gdbarch-selftests.o.
12713 * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
12714 * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
12715 * gdbarch-selftests.c: New file.
12716 * regcache.h (regcache) <~regcache>: Mark it virtual if
12718 <raw_write>: Likewise.
12720 2017-05-24 Yao Qi <yao.qi@linaro.org>
12722 * regcache.c (current_regcache): Change it to
12723 regcache::current_regcache.
12724 (regcache_observer_target_changed): Update.
12725 (regcache_thread_ptid_changed): Make it a regcache static
12727 (regcache_thread_ptid_changed): Update.
12728 (class regcache_access): New.
12729 (current_regcache_test): Update.
12730 (_initialize_regcache): Update.
12731 * regcache.h: Include forward_list.
12732 (regcache): Declare regcache_thread_ptid_changed and declare
12733 registers_changed_ptid as friend.
12735 2017-05-24 Yao Qi <yao.qi@linaro.org>
12737 * i387-tdep.c (i387_register_to_value): Use register_size
12738 instead of TYPE_LENGTH.
12739 * m68k-tdep.c (m68k_register_to_value): Likewise.
12741 2017-05-24 Yao Qi <yao.qi@linaro.org>
12743 * i387-tdep.c (i387_convert_register_p): Return false if type
12744 code isn't TYPE_CODE_FLT.
12746 2017-05-24 Yao Qi <yao.qi@linaro.org>
12748 * alpha-tdep.c (alpha_convert_register_p): Return true if type
12750 (alpha_register_to_value): Remove type length check.
12751 (alpha_value_to_register): Likewise.
12753 2017-05-24 Yao Qi <yao.qi@linaro.org>
12755 * ia64-tdep.c (ia64_convert_register_p): Check type's code is
12758 2017-05-24 Yao Qi <yao.qi@linaro.org>
12760 * m68k-tdep.c (m68k_convert_register_p): Check type's code is
12761 TYPE_CODE_FLT or not.
12763 2017-05-24 Yao Qi <yao.qi@linaro.org>
12765 * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
12766 * avr-tdep.c (avr_gdbarch_init): Likewise.
12767 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12768 * cris-tdep.c (cris_gdbarch_init): Likewise.
12769 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
12770 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12771 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12772 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
12773 * mep-tdep.c (mep_gdbarch_init): Likewise.
12774 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12775 * mips-tdep.c (mips_gdbarch_init): Likewise.
12776 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
12777 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12778 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
12779 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12780 * v850-tdep.c (v850_gdbarch_init): Likewise.
12782 2017-05-24 Yao Qi <yao.qi@linaro.org>
12784 * selftest-arch.c (tests_with_arch): Call registers_changed
12785 and reinit_frame_cache.
12786 * selftest.c (run_self_tests): Likewise.
12788 2017-05-24 Yao Qi <yao.qi@linaro.org>
12790 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.
12791 (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn.
12793 2017-05-24 Yao Qi <yao.qi@linaro.org>
12795 * rl78-tdep.c (rl78_gdbarch_init): Don't call
12796 set_gdbarch_print_insn.
12798 2017-05-24 Yao Qi <yao.qi@linaro.org>
12800 * h8300-tdep.c (h8300_gdbarch_init): Don't call
12801 set_gdbarch_print_insn.
12803 2017-05-24 Yao Qi <yao.qi@linaro.org>
12805 * alpha-tdep.c (alpha_gdbarch_init): Don't call
12806 set_gdbarch_print_insn.
12807 * arc-tdep.c (arc_gdbarch_init): Likewise.
12808 * arch-utils.c: include dis-asm.h.
12809 (default_print_insn): New function.
12810 * arch-utils.h (default_print_insn): Declare.
12811 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
12812 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12813 * cris-tdep.c (cris_delayed_get_disassembler): Remove.
12814 (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
12815 * frv-tdep.c (frv_gdbarch_init): Likewise.
12816 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
12817 * gdbarch.sh (print_insn): Use default_print_insn.
12818 * gdbarch.c: Regenerated.
12819 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12820 * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
12821 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12822 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
12823 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12824 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
12825 (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
12826 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
12827 * m88k-tdep.c (m88k_gdbarch_init): Likewise.
12828 * microblaze-tdep.c (microblaze_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 * mt-tdep.c (mt_gdbarch_init): Likewise.
12833 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
12834 * nios2-tdep.c (nios2_print_insn): Remove.
12835 (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
12836 * rx-tdep.c (rx_gdbarch_init): Likewise.
12837 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12838 * score-tdep.c (score_print_insn): Remove.
12839 (score_gdbarch_init): Don't call set_gdbarch_print_insn.
12840 * sh-tdep.c (sh_gdbarch_init): Likewise.
12841 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12842 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12843 * tic6x-tdep.c (tic6x_print_insn): Remove.
12844 (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
12845 * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
12846 * v850-tdep.c (v850_gdbarch_init): Likewise.
12847 * vax-tdep.c (vax_gdbarch_init): Likewise.
12848 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
12849 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
12851 2017-05-23 John Baldwin <jhb@FreeBSD.org>
12853 * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
12854 (MIPS_FP0_REGNUM): Remove.
12855 (MIPS_FSR_REGNUM): Remove.
12856 (mips_fbsd_supply_fpregs): Use mips_regnum.
12857 (mips_fbsd_supply_gregs): Likewise.
12858 (mips_fbsd_collect_fpregs): Likewise.
12859 (mips_fbsd_collect_gregs): Likewise.
12861 2017-05-23 John Baldwin <jhb@FreeBSD.org>
12863 * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
12864 (getpfpregs_supplies): New function.
12865 (mips_fbsd_fetch_inferior_registers): Remove early exit and use
12866 getfpregs_supplies.
12867 (mips_fbsd_store_inferior_registers): Likewise.
12869 2017-05-22 Pedro Alves <palves@redhat.com>
12871 * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
12874 2017-05-22 Alan Hayward <alan.hayward@arm.com>
12876 * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
12877 (store_register): Likewise.
12878 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
12879 (get_decimal_float_return_value): Likewise.
12880 (do_ppc_sysv_return_value): Likewise.
12881 (ppc64_sysv_abi_push_integer): Likewise.
12882 (ppc64_sysv_abi_push_freg): Likewise.
12883 (ppc64_sysv_abi_return_value_base): Likewise.
12884 (ppc64_sysv_abi_return_value): Likewise.
12885 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
12886 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
12887 * rs6000-nat.c: Likewise.
12888 * rs6000-tdep.c (rs6000_register_to_value): Likewise.
12889 (rs6000_value_to_register): Likewise.
12890 * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
12892 2017-05-21 Tom Tromey <tom@tromey.com>
12895 * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
12896 arrays as "[T]", not "[T; ]".
12898 2017-05-19 Tom Tromey <tom@tromey.com>
12901 * rust-lang.c (exp_descriptor_rust): New function.
12902 (rust_language_defn): Use it.
12903 * p-lang.c (pascal_language_defn): Update.
12904 * opencl-lang.c (opencl_language_defn): Update.
12905 * objc-lang.c (objc_language_defn): Update.
12906 * m2-lang.c (m2_language_defn): Update.
12907 * language.h (struct language_defn)
12908 <la_watch_location_expression>: New member.
12909 * language.c (unknown_language_defn, auto_language_defn)
12910 (local_language_defn): Update.
12911 * go-lang.c (go_language_defn): Update.
12912 * f-lang.c (f_language_defn): Update.
12913 * d-lang.c (d_language_defn): Update.
12914 * c-lang.h (c_watch_location_expression): Declare.
12915 * c-lang.c (c_watch_location_expression): New function.
12916 (c_language_defn, cplus_language_defn, asm_language_defn)
12917 (minimal_language_defn): Use it.
12918 * breakpoint.c (watch_command_1): Call
12919 la_watch_location_expression.
12920 * ada-lang.c (ada_language_defn): Update.
12922 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12925 * gdb_curses.h (NOMACROS): Define.
12926 (NCURSES_NOMACROS): Define.
12928 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12931 * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
12933 * tui/tui-wingeneral.c (box_win): Likewise.
12934 * tui/tui-winsource.c (tui_erase_source_content): Likewise.
12935 (tui_show_source_line): Likewise.
12936 (tui_show_exec_info_content): Likewise.
12938 2017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
12940 * sparc-tdep.c (sparc_structure_return_p)
12941 (sparc_arg_on_registers_p): New functions.
12942 (sparc32_store_arguments): Use them.
12943 * sparc64-tdep.c (sparc64_16_byte_align_p)
12944 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
12945 Handle TYPE_CODE_ARRAY.
12947 2017-05-17 Yao Qi <yao.qi@linaro.org>
12949 * cli/cli-decode.c (add_alias_cmd): New function.
12950 * command.h (add_alias_cmd): Declare.
12951 * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
12952 instead call add_alias_cmd.
12954 2017-05-17 Pedro Alves <palves@redhat.com>
12956 * Makefile.in (nat_extra_makefile_frag): Rename to ...
12957 (nat_makefile_frag): ... this. All references updated.
12958 * configure.ac: Likewise.
12959 * configure.nat: Likewise. Enhance comments.
12960 * configure: Regenerate.
12962 2017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12964 * procfs.c (procfs_create_inferior): Change prototype to match
12967 2017-05-13 Eli Zaretskii <eliz@gnu.org>
12969 * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
12970 C++ compiler warning.
12972 2017-05-12 Tom Tromey <tom@tromey.com>
12975 * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
12976 recurse, just call value_struct_elt directly.
12978 2017-05-12 Tom Tromey <tom@tromey.com>
12980 * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
12981 OP_RUST_ARRAY>: Fix.
12983 2017-05-12 Tom Tromey <tom@tromey.com>
12985 * rust-lang.c (rust_print_subexp): Replace "return" with "break".
12987 2017-05-09 Yao Qi <yao.qi@linaro.org>
12989 * regcache.c: Include <forward_list>.
12990 (struct regcache_list): Remove.
12991 (current_regcache): Update.
12992 (get_thread_arch_aspace_regcache): Update for std::forward_list.
12993 (regcache_thread_ptid_changed): Likewise.
12994 (registers_changed_ptid): Likewise.
12995 (current_regcache_size): Likewise.
12997 2017-05-09 Yao Qi <yao.qi@linaro.org>
12999 * regcache.c [GDB_SELF_TEST]: Include selftest.h.
13000 (current_regcache_size): New function.
13001 (current_regcache_test): New function.
13002 (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
13004 2017-05-08 Alan Hayward <alan.hayward@arm.com>
13006 * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
13007 (print_gp_register_row): Use get_frame_register_value.
13009 2017-05-08 Alan Hayward <alan.hayward@arm.com>
13011 * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
13012 (mips_supply_fpregset): Likewise.
13013 (mips64_supply_gregset): Likewise.
13015 2017-05-08 Alan Hayward <alan.hayward@arm.com>
13017 * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
13018 regcache->raw_supply_zeroed.
13020 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
13022 * configure.nat: Rearrange 'case' statements to match
13025 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
13027 * Makefile.in: Remove "@host_makefile_frag@". Add variables
13028 NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
13029 NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
13030 "@nat_extra_makefile_frag@".
13031 (Makefile): Remove dependency on "@frags@".
13032 ($(GNULIB_BUILDDIR)/Makefile): Likewise.
13033 (data-directory/Makefile): Likewise.
13034 * config/aarch64/linux.mh: Deleted; moved contents to
13035 "gdb/configure.nat".
13036 * config/alpha/alpha-linux.mh: Likewise.
13037 * config/alpha/nbsd.mh: Likewise.
13038 * config/arm/linux.mh: Likewise.
13039 * config/arm/nbsdelf.mh: Likewise.
13040 * config/i386/cygwin.mh: Likewise.
13041 * config/i386/cygwin64.mh: Likewise.
13042 * config/i386/darwin.mh: Likewise.
13043 * config/i386/fbsd.mh: Likewise.
13044 * config/i386/fbsd64.mh: Likewise.
13045 * config/i386/go32.mh: Likewise.
13046 * config/i386/i386gnu.mh: Likewise.
13047 * config/i386/i386sol2.mh: Likewise.
13048 * config/i386/linux.mh: Likewise.
13049 * config/i386/linux64.mh: Likewise.
13050 * config/i386/mingw.mh: Likewise.
13051 * config/i386/mingw64.mh: Likewise.
13052 * config/i386/nbsd64.mh: Likewise.
13053 * config/i386/nbsdelf.mh: Likewise.
13054 * config/i386/nto.mh: Likewise.
13055 * config/i386/obsd.mh: Likewise.
13056 * config/i386/obsd64.mh: Likewise.
13057 * config/i386/sol2-64.mh: Likewise.
13058 * config/ia64/linux.mh: Likewise.
13059 * config/m32r/linux.mh: Likewise.
13060 * config/m68k/linux.mh: Likewise.
13061 * config/m68k/nbsdelf.mh: Likewise.
13062 * config/m68k/obsd.mh: Likewise.
13063 * config/m88k/obsd.mh: Likewise.
13064 * config/mips/fbsd.mh: Likewise.
13065 * config/mips/linux.mh: Likewise.
13066 * config/mips/nbsd.mh: Likewise.
13067 * config/mips/obsd64.mh: Likewise.
13068 * config/pa/linux.mh: Likewise.
13069 * config/pa/nbsd.mh: Likewise.
13070 * config/pa/obsd.mh: Likewise.
13071 * config/powerpc/aix.mh: Likewise.
13072 * config/powerpc/fbsd.mh: Likewise.
13073 * config/powerpc/linux.mh: Likewise.
13074 * config/powerpc/nbsd.mh: Likewise.
13075 * config/powerpc/obsd.mh: Likewise.
13076 * config/powerpc/ppc64-linux.mh: Likewise.
13077 * config/powerpc/spu-linux.mh: Likewise.
13078 * config/s390/linux.mh: Likewise.
13079 * config/sh/nbsd.mh: Likewise.
13080 * config/sparc/fbsd.mh: Likewise.
13081 * config/sparc/linux.mh: Likewise.
13082 * config/sparc/linux64.mh: Likewise.
13083 * config/sparc/nbsd64.mh: Likewise.
13084 * config/sparc/nbsdelf.mh: Likewise.
13085 * config/sparc/obsd64.mh: Likewise.
13086 * config/sparc/sol2.mh: Likewise.
13087 * config/tilegx/linux.mh: Likewise.
13088 * config/vax/nbsdelf.mh: Likewise.
13089 * config/vax/obsd.mh: Likewise.
13090 * config/xtensa/linux.mh: Likewise.
13091 * config/i386/i386gnu.mn: New file, with excerpts from
13092 "config/i386/i386gnu.mh".
13093 * configure: Regenerate.
13094 * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
13095 *.mh files under "gdb/config".
13096 * configure.nat: New file, with contents from the
13097 "gdb/config/*/*.mh" files.
13099 2017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
13101 * btrace.c (btrace_clear): Free insn vector.
13103 2017-05-05 Pedro Alves <palves@redhat.com>
13105 * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
13106 * configure: Regenerate.
13108 2017-05-04 Pedro Alves <palves@redhat.com>
13110 * Makefile.in (SFILES): Add progspace-and-thread.c.
13111 (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
13112 (COMMON_OBS): Add progspace-and-thread.o.
13113 * breakpoint.c: Include "progspace-and-thread.h".
13114 (update_inserted_breakpoint_locations)
13115 (insert_breakpoint_locations, create_longjmp_master_breakpoint):
13116 Use scoped_restore_current_pspace_and_thread.
13117 (create_std_terminate_master_breakpoint): Use
13118 scoped_restore_current_program_space.
13119 (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
13120 (print_breakpoint_location): Use
13121 scoped_restore_current_program_space.
13122 (bp_loc_is_permanent): Use
13123 scoped_restore_current_pspace_and_thread.
13124 (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
13125 (download_tracepoint_locations): Use
13126 scoped_restore_current_pspace_and_thread.
13127 (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
13128 * exec.c (exec_close_1): Use scoped_restore_current_program_space.
13129 (enum step_over_calls_kind): Moved from inferior.h.
13130 (class scoped_restore_current_thread): New class.
13131 * gdbthread.h (make_cleanup_restore_current_thread): Delete
13133 (scoped_restore_current_thread): New class.
13134 * infcmd.c: Include "common/gdb_optional.h".
13135 (continue_1, proceed_after_attach): Use
13136 scoped_restore_current_thread.
13137 (notice_new_inferior): Use scoped_restore_current_thread.
13138 * inferior.c: Include "progspace-and-thread.h".
13139 (restore_inferior, save_current_inferior): Delete.
13140 (add_inferior_command, clone_inferior_command): Use
13141 scoped_restore_current_pspace_and_thread.
13142 * inferior.h (scoped_restore_current_inferior): New class.
13143 * infrun.c: Include "progspace-and-thread.h" and
13144 "common/gdb_optional.h".
13145 (follow_fork_inferior): Use
13146 scoped_restore_current_pspace_and_thread.
13147 (scoped_restore_exited_inferior): New class.
13148 (handle_vfork_child_exec_or_exit): Use
13149 scoped_restore_exited_inferior,
13150 scoped_restore_current_pspace_and_thread,
13151 scoped_restore_current_thread and scoped_restore.
13152 (fetch_inferior_event): Use scoped_restore_current_thread.
13153 * linespec.c (decode_line_full, decode_line_1): Use
13154 scoped_restore_current_program_space.
13155 * mi/mi-main.c: Include "progspace-and-thread.h".
13156 (exec_continue): Use scoped_restore_current_thread.
13157 (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
13158 (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
13159 * proc-service.c (ps_pglobal_lookup): Use
13160 scoped_restore_current_program_space.
13161 * progspace-and-thread.c: New file.
13162 * progspace-and-thread.h: New file.
13163 * progspace.c (release_program_space, clone_program_space): Use
13164 scoped_restore_current_program_space.
13165 (restore_program_space, save_current_program_space)
13166 (save_current_space_and_thread): Delete.
13167 (switch_to_program_space_and_thread): Moved to
13168 progspace-and-thread.c.
13169 * progspace.h (save_current_program_space)
13170 (save_current_space_and_thread): Delete declarations.
13171 (scoped_restore_current_program_space): New class.
13172 * remote.c (remote_btrace_maybe_reopen): Use
13173 scoped_restore_current_thread.
13174 * symtab.c: Include "progspace-and-thread.h".
13175 (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
13176 * thread.c (print_thread_info_1): Use
13177 scoped_restore_current_thread.
13178 (struct current_thread_cleanup): Delete.
13179 (do_restore_current_thread_cleanup)
13180 (restore_current_thread_cleanup_dtor): Rename/convert both to ...
13181 (scoped_restore_current_thread::~scoped_restore_current_thread):
13183 (make_cleanup_restore_current_thread): Rename/convert to ...
13184 (scoped_restore_current_thread::scoped_restore_current_thread):
13186 (thread_apply_all_command): Use scoped_restore_current_thread.
13187 (thread_apply_command): Use scoped_restore_current_thread.
13188 * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
13189 * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
13191 2017-05-04 Pedro Alves <palves@redhat.com>
13193 * thread.c (make_cleanup_restore_current_thread): Move
13194 find_thread_ptid call before the is_stopped call. Assert that the
13195 thread is found. Replace is_stopped call by checking the thread's
13196 state directly. Remove unnecessary NULL-thread check.
13198 2017-05-04 Pedro Alves <palves@redhat.com>
13200 * corelow.c (thread_section_name): New class.
13201 (get_core_register_section, get_core_siginfo): Use it.
13203 2017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
13205 * corelow.c (sniff_core_bfd): Remove extra semicolon.
13206 (get_core_register_section): Remove xfree of NULL pointer.
13208 2017-05-03 Alan Hayward <alan.hayward@arm.com>
13210 * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed.
13211 * regcache.c (regcache::raw_supply_zeroed): New function.
13212 * regcache.h (regcache::raw_supply_zeroed): New declaration.
13214 2017-05-03 Simon Marchi <simon.marchi@ericsson.com>
13216 * gdbarch.sh: Remove commented out definition of
13218 * gdbarch.h: Re-generate.
13220 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
13222 * configure: Regenerate.
13224 2017-05-02 Simon Marchi <simon.marchi@ericsson.com>
13226 * solib-target.c (solib_target_relocate_section_addresses):
13227 Remove num_section_bases, num_bases, segment_bases variables.
13229 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
13231 * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove.
13233 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
13235 * solib-target.c: Include <vector>
13236 (struct lm_info_target) <~lm_info_target>: Remove.
13237 <segment_bases, section_bases>: Change type to
13238 std::vector<CORE_ADDR>.
13239 (library_list_start_segment, library_list_start_section,
13240 library_list_end_library,
13241 solib_target_relocate_section_addresses): Adjust.
13243 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
13245 * gdbarch.sh (software_single_step): Change return type to
13246 std::vector<CORE_ADDR>.
13247 * gdbarch.c, gdbarch.h: Re-generate.
13248 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
13250 (arm_deal_with_atomic_sequence_raw): Adjust.
13251 (thumb_get_next_pcs_raw): Adjust.
13252 (arm_get_next_pcs_raw): Adjust.
13253 (arm_get_next_pcs): Adjust.
13254 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust.
13255 * aarch64-tdep.c (aarch64_software_single_step): Adjust.
13256 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust.
13257 (alpha_software_single_step): Adjust.
13258 * alpha-tdep.h (alpha_software_single_step): Adjust.
13259 * arm-linux-tdep.c (arm_linux_software_single_step): Adjust.
13260 * arm-tdep.c (arm_software_single_step): Adjust.
13261 (arm_breakpoint_kind_from_current_state): Adjust.
13262 * arm-tdep.h (arm_software_single_step): Adjust.
13263 * breakpoint.c (insert_single_step_breakpoint): Adjust.
13264 * cris-tdep.c (cris_software_single_step): Adjust.
13265 * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust.
13266 (micromips_deal_with_atomic_sequence): Adjust.
13267 (deal_with_atomic_sequence): Adjust.
13268 (mips_software_single_step): Adjust.
13269 * mips-tdep.h (mips_software_single_step): Adjust.
13270 * moxie-tdep.c (moxie_software_single_step): Adjust.
13271 * nios2-tdep.c (nios2_software_single_step): Adjust.
13272 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust.
13273 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
13274 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
13275 * s390-linux-tdep.c (s390_software_single_step): Adjust.
13276 * sparc-tdep.c (sparc_software_single_step): Adjust.
13277 * spu-tdep.c (spu_software_single_step): Adjust.
13278 * tic6x-tdep.c (tic6x_software_single_step): Adjust.
13280 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
13282 * gdbarch.sh: Use semi-colon as field separator instead of colon.
13283 * gdbarch.h: Re-generate.
13285 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
13287 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
13288 (SUBDIR_PYTHON_SRCS): Add py-instruction.c.
13289 * python/py-instruction.c, python/py-instruction.h: New file.
13290 * python/py-record.c: Add py-instruction.h include.
13291 (gdbpy_initialize_record): Make gdb.Instruction a super class of
13292 gdb.RecordInstruction.
13293 * python/python-internal.h: Add gdbpy_initialize_instruction
13295 * python/python.c (do_start_initialization): Add
13296 gdbpy_initialize_instruction.
13298 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
13300 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
13302 (btrace_func_from_recpy_func): New function.
13303 (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
13304 (btpy_call_level, btpy_call_symbol, btpy_call_instructions,
13305 btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
13306 (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
13307 recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
13308 Also, use new helper functions.
13309 (btpy_list_item): Use new helper functions.
13310 (recpy_bt_function_call_history): Use new type name.
13311 (btpy_call_getset): Remove.
13312 (gdbpy_initialize_btrace): Remove code to initialize
13313 gdb.BtraceFunctionCall.
13314 * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
13315 recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
13316 recpy_bt_func_prev, recpy_bt_func_next): New export.
13317 * python/py-record.c (recpy_func_type): New static object.
13318 (recpy_func_new, recpy_func_level, recpy_func_symbol,
13319 recpy_func_instructions, recpy_func_up, recpy_func_prev,
13320 recpy_func_next): New function.
13321 (recpy_element_hash, recpy_element_richcompare): Updated comment.
13322 (recpy_func_getset): New static object.
13323 (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
13324 * python/py-record.h (recpy_func_type, recpy_func_new): New export.
13326 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
13328 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove.
13329 (btpy_object, btpy_insn_type, btpy_new): Remove.
13330 (btpy_list_object): Use gdb.RecordInstruction type instead of
13331 gdb.BtraceInstruction type.
13332 (btrace_insn_from_recpy_insn): New function.
13333 (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of
13335 (btpy_call_new, btpy_list_item): Do not use btpy_new anymore.
13336 (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol,
13337 btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling,
13338 btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object
13339 instead of btpy_object.
13340 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
13341 btpy_insn_data, btpy_insn_decode): Rename to ...
13342 (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size,
13343 recpy_bt_insn_is_speculative, recpy_bt_insn_data,
13344 recpy_bt_insn_decode): This. Also, use new helper functions.
13345 (btpy_list_position, recpy_bt_goto): Use recpy_element_object and
13347 (btpy_insn_getset): Remove.
13348 (gdbpy_initialize_btrace): Remove code to initialize
13349 gdb.BtraceInstruction. Use recpy_element_object.
13350 * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal,
13351 recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded,
13352 recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export.
13353 * python/py-record.c (recpy_insn_type): New static object.
13354 (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data,
13355 recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative,
13356 recpy_element_number, recpy_element_hash, recpy_element_richcompare):
13358 (recpy_insn_getset): New static object.
13359 (gdbpy_initialize_record): Initialize gdb.RecordInstruction.
13360 * python/py-record.h (recpy_element_object): New typedef.
13361 (recpy_insn_type, recpy_insn_new): New export.
13363 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
13365 * py-record-btrace.c (btpy_insn_new): Removed.
13366 (btpy_insn_or_gap_new): New function.
13367 (btpy_insn_error): Removed.
13368 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
13369 btpy_insn_data, btpy_insn_decode): Remove code path for gaps.
13370 (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call
13371 btpy_insn_or_gap_new instead of btpy_insn_new.
13372 (btpy_insn_getset): Remove btpy_insn_error.
13373 * py-record.c (recpy_gap_type): New static object.
13374 (recpy_gap_object): New typedef.
13375 (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code,
13376 recpy_gap_reason_string): New function.
13377 (recpy_gap_getset): New static object.
13378 (gdbpy_initialize_record): Initialize gdb.RecordGap type.
13379 * py-record.h (recpy_gap_new): New export.
13381 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
13383 * python/py-record.c (recpy_ptid): Remove.
13384 (recpy_record_getset): Remove recpy_ptid.
13386 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
13388 * btrace.c (btrace_fetch): Set inferior_ptid.
13389 * python/py-record-btrace.c: Add "py-record.h" include.
13390 (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin,
13391 recpy_bt_end, recpy_bt_instruction_history,
13392 recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored
13393 in gdb.Record object instead of current ptid.
13394 * python/py-record.c: Include new "py-record.h" file.
13395 (recpy_record_object): Moved to py-record.h.
13396 * python/py-record.h: New file.
13398 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
13400 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
13401 BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
13404 2017-05-01 Joel Brobecker <brobecker@adacore.com>
13406 * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to
13407 the past maintainers section.
13409 2017-04-28 Yao Qi <yao.qi@linaro.org>
13411 * infcmd.c (get_return_value): Use regcache ctor, and remove
13414 2017-04-28 Yao Qi <yao.qi@linaro.org>
13415 Pedro Alves <palves@redhat.com>
13417 * regcache.c (regcache::regcache): New tag dispatch ctor.
13418 (do_cooked_read): Moved above.
13419 (regcache_dup): Use the tag dispatch ctor..
13420 * regcache.h (regcache): Declare ctor, delete copy ctor and
13421 assignment operator, remove friend regcache_dup.
13423 2017-04-28 Yao Qi <yao.qi@linaro.org>
13425 * regcache.c (regcache_dup): Assert !src->m_readonly_p and
13426 call method save instead of regcache_cpy.
13427 * regcache.h (struct regcache): Make regcache_dup a friend.
13429 2017-04-28 Yao Qi <yao.qi@linaro.org>
13431 * regcache.c (struct regcache): Move to regcache.h
13432 (regcache::arch): New method.
13433 (regcache_get_ptid): Update.
13434 (get_regcache_arch): Call arch method.
13435 (get_regcache_aspace): Call method aspace.
13436 (register_buffer): Change it to method.
13437 (regcache_save): Change it to regcache::save.
13438 (regcache_restore): Likewise.
13439 (regcache_cpy_no_passthrough): Remove the declaration.
13440 (regcache_cpy): Call methods restore and cpy_no_passthrough.
13441 (regcache_cpy_no_passthrough): Change it to method
13442 cpy_no_passthrough.
13443 (regcache_register_status): Change it to method
13444 get_register_status.
13445 (regcache_invalidate): Change it to method invalidate.
13446 (regcache_thread_ptid_changed): Use methods ptid and set_ptid.
13447 (regcache_raw_update): Change it to method raw_update.
13448 (regcache_raw_read): Likewise.
13449 (regcache_raw_read_signed): Likewise.
13450 (regcache_raw_read_unsigned): Likewise.
13451 (regcache_raw_write_signed): Likewise.
13452 (regcache_raw_write_unsigned): Likewise.
13453 (regcache_cooked_read): Likewise.
13454 (regcache_cooked_read_value): Likewise.
13455 (regcache_cooked_read_signed): Likewise.
13456 (regcache_cooked_read_unsigned): Likewise.
13457 (regcache_cooked_write_signed): Likewise.
13458 (regcache_cooked_write_unsigned): Likewise.
13459 (regcache_raw_set_cached_value): Likewise.
13460 (regcache_raw_write): Likewise.
13461 (regcache_cooked_write): Likewise.
13462 (regcache_xfer_part): Likewise.
13463 (regcache_raw_read_part): Likewise.
13464 (regcache_raw_write_part): Likewise.
13465 (regcache_cooked_read_part): Likewise.
13466 (regcache_cooked_write_part): Likewise.
13467 (regcache_raw_supply): Likewise.
13468 (regcache_raw_collect): Likewise.
13469 (regcache_transfer_regset): Likewise.
13470 (regcache_supply_regset): Likewise.
13471 (regcache_collect_regset): Likewise.
13472 (regcache_debug_print_register): Likewise.
13473 (enum regcache_dump_what): Move it to regcache.h.
13474 (regcache_dump): Change it to method dump.
13475 * regcache.h (enum regcache_dump_what): New.
13476 (class regcache): New.
13477 * target.c (target_fetch_registers): Call method
13478 debug_print_register.
13479 (target_store_registers): Likewise.
13481 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13483 * windows-nat.c (struct lm_info_windows): Initialize field.
13484 (windows_make_so): Allocate lm_info_windows with new.
13485 (windows_free_so): Free lm_info_windows with delete.
13487 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13489 * solib-darwin.c (struct lm_info_darwin): Initialize field.
13490 (darwin_current_sos): Allocate lm_info_darwin with new, remove
13492 (darwin_free_so): Free lm_info_darwin with delete.
13494 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13496 * solib-svr4.h (struct lm_info_svr4): Initialize fields.
13497 <l_addr_p>: Change type to bool.
13498 * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
13499 (svr4_free_so): Free lm_info_svr4 with delete.
13500 (svr4_copy_library_list): Replace memcpy with call to copy
13502 (library_list_start_library, svr4_default_sos): Allocate
13503 lm_info_svr4 with new.
13505 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13507 * solib-target.c (struct lm_info_target): Add destructor,
13509 <name>: Change type to std::string.
13510 (library_list_start_library): Allocate lm_info_target with new.
13511 (solib_target_free_library_list): Free lm_info_target with
13513 (solib_target_current_sos): Adapt to std::string.
13514 (solib_target_free_so): Free lm_info_target with delete.
13516 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13518 * solib-frv.c (struct lm_info_frv): Add destructor, initialize
13520 (frv_current_sos): Allocate lm_info_frv with new.
13521 (frv_relocate_main_executable): Free lm_info_frv with delete,
13523 (frv_clear_solib, frv_free_so): Free lm_info_frv with delete.
13525 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13527 * solib-frv.c (struct lm_info_frv): Fix indentation.
13529 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13531 * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
13533 (dsbt_current_sos): Allocate lm_info_dsbt with new.
13534 (dsbt_relocate_main_executable): Free lm_info_dsbt with delete
13535 and allocate with new.
13536 (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
13538 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13540 * solib-aix.c (struct lm_info_aix): Initialize fields in-class.
13541 <filename, member_name>: Change type to std::string.
13542 (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
13543 (library_list_start_library): Allocate lm_info_aix with new.
13544 (solib_aix_free_library_list, solib_aix_free_so): Free with delete.
13545 (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
13546 with copy constructor.
13548 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13550 * solist.h (struct lm_info): Remove.
13551 (struct lm_info_base): New class.
13552 (struct so_list) <lm_info>: Change type to lm_info_base *.
13553 * nto-tdep.c (struct lm_info): Remove.
13555 * solib-aix.c (struct lm_info): Rename to ...
13556 (struct lm_info_aix): ... this. Extend lm_info_base.
13557 (lm_info_p): Rename to ...
13558 (lm_info_aix_p): ... this, and adjust.
13559 (solib_aix_new_lm_info, solib_aix_xfree_lm_info,
13560 solib_aix_parse_libraries, library_list_start_library,
13561 solib_aix_free_library_list, solib_aix_parse_libraries,
13562 solib_aix_get_library_list,
13563 solib_aix_relocate_section_addresses, solib_aix_free_so,
13564 solib_aix_get_section_offsets,
13565 solib_aix_solib_create_inferior_hook, solib_aix_current_sos):
13567 (struct solib_aix_inferior_data) <library_list>: Adjust.
13568 * solib-darwin.c (struct lm_info): Rename to ...
13569 (struct lm_info_darwin): ... this. Extend lm_info_base.
13570 (darwin_current_sos, darwin_relocate_section_addresses): Adjust.
13571 * solib-dsbt.c (struct lm_info): Rename to ...
13572 (struct lm_info_dsbt): ... this. Extend lm_info_base.
13573 (struct dsbt_info) <main_executable_lm_info): Adjust.
13574 (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so,
13575 dsbt_relocate_section_addresses): Adjust.
13576 * solib-frv.c (struct lm_info): Rename to ...
13577 (struct lm_info_frv): ... this. Extend lm_info_base.
13578 (main_executable_lm_info): Adjust.
13579 (frv_current_sos, frv_relocate_main_executable, frv_free_so,
13580 frv_relocate_section_addresses, frv_fdpic_find_global_pointer,
13581 find_canonical_descriptor_in_load_object,
13582 frv_fdpic_find_canonical_descriptor): Adjust.
13583 * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed
13585 (lm_info_read, lm_addr_check, svr4_keep_data_in_core,
13586 svr4_clear_so, svr4_copy_library_list,
13587 library_list_start_library, svr4_default_sos, svr4_read_so_list,
13588 svr4_current_sos, svr4_fetch_objfile_link_map,
13589 solist_update_incremental): Adjust.
13590 * solib-svr4.h (struct lm_info_svr4): Move here from
13592 * solib-target.c (struct lm_info): Rename to ...
13593 (struct lm_info_target): ... this. Extend lm_info_base.
13594 (lm_info_p): Rename to ...
13595 (lm_info_target_p): ... this.
13596 (solib_target_parse_libraries, library_list_start_segment,
13597 library_list_start_section, library_list_start_library,
13598 library_list_end_library, solib_target_free_library_list,
13599 solib_target_current_sos, solib_target_free_so,
13600 solib_target_relocate_section_addresses): Adjust.
13601 * windows-nat.c (struct lm_info): Rename to ...
13602 (struct lm_info_windows): ... this. Extend lm_info_base.
13603 (windows_make_so, handle_load_dll, handle_unload_dll,
13604 windows_xfer_shared_libraries): Adjust.
13606 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13608 * solib-darwin.c (struct darwin_so_list): Remove.
13609 (darwin_current_sos): Allocate an so_list object instead of a
13610 darwin_so_list, separately allocate an lm_info object.
13611 (darwin_free_so): Free lm_info.
13613 2017-04-28 John Baldwin <jhb@FreeBSD.org>
13615 * mips-tdep.c (print_gp_register_row): Replace printf_filtered
13616 with fprintf_filtered.
13618 2017-04-28 Yao Qi <yao.qi@linaro.org>
13620 * regcache.c (regcache::regcache): New function.
13621 (regcache::~regcache): New function.
13622 (regcache_xmalloc_1): Remove.
13623 (regcache_xmalloc): Call new regcache.
13624 (regcache_xfree): Call delete regcache.
13625 (get_thread_arch_aspace_regcache): Call new regcache.
13627 2017-04-28 Yao Qi <yao.qi@linaro.org>
13629 * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
13630 lwp instead of ptid_get_lwp.
13632 2017-04-28 Yao Qi <yao.qi@linaro.org>
13634 * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
13635 lwp_info instead of getting from inferior_ptid.
13637 2017-04-27 Keith Seitz <keiths@redhat.com>
13639 * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS)
13640 DIFFERENT_REFERENCE_TYPE_BADNESS): Remove.
13641 (CV_CONVERSION_BADNESS): Define.
13642 (rank_one_type): Remove overly restrictive rvalue reference
13644 Add cv-qualifier checks and subranks for type equality.
13645 * gdbtypes.h (REFERENCE_CONVERSION_RVALUE,
13646 REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS,
13647 CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare.
13649 2017-04-27 Simon Marchi <simon.marchi@ericsson.com>
13651 * python/py-inferior.c (inferior_to_inferior_object): Increment reference
13652 count when creating the object.
13654 2017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
13655 Ulrich Weigand <uweigand@de.ibm.com>
13657 * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
13658 entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
13660 (read_xcoff_symtab): Handle C_WEAKEXT storage class.
13661 (process_xcoff_symbol): Likewise.
13662 (scan_xcoff_symtab): Likewise.
13664 2017-04-26 Alan Hayward <alan.hayward@arm.com>
13666 * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned.
13667 (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer.
13668 (ia64_access_reg): Use get_frame_register_unsigned.
13669 (ia64_access_rse_reg): Likewise.
13670 (ia64_libunwind_frame_prev_register): Likewise.
13672 2017-04-26 Jiong Wang <jiong.wang@arm.com>
13674 * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op.
13675 * gdbarch.c: Regenerated.
13676 * gdbarch.h: Regenerated.
13677 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the
13678 visibility external.
13679 (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI
13680 between DW_CFA_lo_user and DW_CFA_high_user inclusive.
13681 (enum cfa_how_kind): Move to ...
13682 (struct dwarf2_frame_state_reg_info): Likewise.
13683 (struct dwarf2_frame_state): Likewise.
13684 * dwarf2-frame.h: ... here.
13685 (dwarf2_frame_state_alloc_regs): New declaration.
13686 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function.
13687 (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook.
13689 2017-04-26 Alan Hayward <alan.hayward@arm.com>
13691 * xtensa-tdep.c (xtensa_pseudo_register_read): Use
13692 regcache_raw_read_unsigned.
13693 (xtensa_pseudo_register_write): Likewise.
13695 2017-04-26 Alan Hayward <alan.hayward@arm.com>
13697 * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors.
13698 (nds32_pseudo_register_write): Likewise.
13700 2017-04-25 Yao Qi <yao.qi@linaro.org>
13702 * regcache.c (struct regcache) <readonly_p>: Change its type
13704 (regcache_xmalloc_1): Update parameter type and callers update.
13706 2017-04-25 Yao Qi <yao.qi@linaro.org>
13708 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
13709 set_gdbarch_wchar_bit.
13710 * arm-tdep.c (arm_gdbarch_init): Likewise.
13712 2017-04-25 Pedro Alves <palves@redhat.com>
13714 * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
13715 (BothAreRelocatable, memcopy, memmove): Don't define.
13716 * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
13719 2017-04-25 Pedro Alves <palves@redhat.com>
13721 * common/common-defs.h: Include "common/poison.h".
13722 * common/function-view.h: (Not, Or, Requires): Move to traits.h
13724 * common/poison.h: New file.
13725 * common/traits.h: Include <type_traits>.
13726 (Not, Or, Requires): New, moved from common/function-view.h.
13728 2017-04-25 Pedro Alves <palves@redhat.com>
13730 * breakpoint.h (struct breakpoint): In-class initialize all
13731 fields. Make boolean fields "bool".
13732 * breakpoint.c (init_raw_breakpoint_without_location): Remove
13733 memset call and initializations no longer necessary.
13735 2017-04-25 Pedro Alves <palves@redhat.com>
13737 * btrace.c (pt_btrace_insn_flags): Change parameter type to
13739 (pt_btrace_insn): New function.
13740 (ftrace_add_pt): Remove memset call and use pt_btrace_insn.
13742 2017-04-25 Pedro Alves <palves@redhat.com>
13744 * ada-lang.c (ada_catchpoint_location): Now a "class". Remove
13745 "base" field and inherit from "bp_location" instead. Add
13747 (allocate_location_exception): Use new non-default ctor.
13748 * breakpoint.c (get_first_locp_gte_addr): Remove memset call.
13749 (init_bp_location): Convert to ...
13750 (bp_location::bp_location): ... this new ctor, and remove memset
13752 (base_breakpoint_allocate_location): Use the new non-default ctor.
13753 * breakpoint.h (bp_location): Now a class. Declare default and
13754 non-default ctors. In-class initialize all members.
13755 (init_bp_location): Remove declaration.
13757 2017-04-25 Pedro Alves <palves@redhat.com>
13759 * common/enum-flags.h (enum_flags): Don't implement copy ctor and
13760 assignment operator.
13762 2017-04-24 Yao Qi <yao.qi@linaro.org>
13764 * doublest.c (convert_doublest_to_floatformat): Call
13765 floatformat_totalsize_bytes.
13767 2017-04-22 Tom Tromey <tom@tromey.com>
13769 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
13771 * stack.c (print_frame): Use ui_out_emit_list.
13772 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
13774 * mi/mi-main.c (print_one_inferior)
13775 (mi_cmd_data_list_register_names)
13776 (mi_cmd_data_list_register_values, mi_cmd_list_features)
13777 (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use
13779 * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list.
13780 (mi_output_solib_attribs): Use ui_out_emit_list,
13782 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list.
13783 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
13784 (mi_cmd_stack_list_args, list_args_or_locals): Use
13786 * disasm.c (do_assembly_only): Use ui_out_emit_list.
13787 * breakpoint.c (print_solib_event, output_thread_groups): Use
13790 2017-04-22 Tom Tromey <tom@tromey.com>
13792 * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple.
13793 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple.
13794 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple.
13796 2017-04-22 Tom Tromey <tom@tromey.com>
13798 * tracepoint.c (tvariables_info_1)
13799 (print_one_static_tracepoint_marker): Use ui_out_emit_tuple.
13801 2017-04-22 Tom Tromey <tom@tromey.com>
13803 * stack.c (print_frame_arg): Use ui_out_emit_tuple,
13804 annotate_arg_emitter.
13805 * breakpoint.c (print_mention_watchpoint)
13806 (print_mention_masked_watchpoint): Use ui_out_emit_tuple.
13807 * annotate.h (struct annotate_arg_emitter): New.
13809 2017-04-22 Tom Tromey <tom@tromey.com>
13811 * record-btrace.c (record_btrace_insn_history)
13812 (record_btrace_insn_history_range, record_btrace_call_history)
13813 (record_btrace_call_history_range): Use ui_out_emit_tuple.
13814 * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use
13816 * stack.c (print_frame_info): Use ui_out_emit_tuple.
13817 * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple.
13818 * skip.c (skip_info): Use ui_out_emit_tuple.
13819 * remote.c (show_remote_cmd): Use ui_out_emit_tuple.
13820 * progspace.c (print_program_space): Use ui_out_emit_tuple.
13821 * probe.c (info_probes_for_ops): Use ui_out_emit_tuple.
13822 * osdata.c (info_osdata): Use ui_out_emit_tuple.
13823 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
13825 * mi/mi-main.c (print_one_inferior, list_available_thread_groups)
13826 (output_register, mi_cmd_data_read_memory)
13827 (mi_cmd_data_read_memory_bytes, mi_load_progress)
13828 (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple.
13829 * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one):
13830 Use ui_out_emit_tuple.
13831 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use
13833 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
13834 (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple.
13835 * linux-thread-db.c (info_auto_load_libthread_db): Use
13837 * inferior.c (print_inferior): Use ui_out_emit_tuple.
13838 * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple.
13839 * disasm.c (do_mixed_source_and_assembly_deprecated)
13840 (do_mixed_source_and_assembly): Use ui_out_emit_tuple.
13841 * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple.
13842 * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple.
13843 * breakpoint.c (print_one_breakpoint_location)
13844 (print_one_breakpoint): Use ui_out_emit_tuple.
13845 * auto-load.c (print_script, info_auto_load_cmd): Use
13847 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple.
13849 2017-04-21 Simon Marchi <simon.marchi@ericsson.com>
13851 * thread.c (print_thread_info_1): Remove dead code.
13853 2017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
13855 * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
13857 * arm-tdep.c (selftests::arm_record_test): Likewise.
13859 2017-04-21 Yao Qi <yao.qi@linaro.org>
13861 * regcache.c (regcache_restore): Remove argument 2. Replace
13862 argument 3 with regcache. Get register status from
13863 src->register_status and get register contents from
13864 register_buffer (src, regnum).
13865 (regcache_cpy): Update.
13867 2017-04-19 Pedro Alves <palves@redhat.com>
13869 * gdbthread.h (thread): Add missing closing parenthesis in
13872 2017-04-19 Pedro Alves <palves@redhat.com>
13874 * common/refcounted-object.h: New file.
13875 * gdbthread.h: Include "common/refcounted-object.h".
13876 (thread_info): Inherit from refcounted_object and add comments.
13877 (thread_info::incref, thread_info::decref)
13878 (thread_info::m_refcount): Delete.
13879 (thread_info::deletable): Use the refcounted_object::refcount()
13881 * inferior.c (current_inferior_): Add comment.
13882 (set_current_inferior): Increment/decrement refcounts.
13883 (prune_inferiors, remove_inferior_command): Skip inferiors marked
13884 not-deletable instead of comparing with the current inferior.
13885 (initialize_inferiors): Increment the initial inferior's refcount.
13886 * inferior.h (struct inferior): Forward declare.
13887 Include "common/refcounted-object.h".
13888 (current_inferior, set_current_inferior): Move declaration to
13889 before struct inferior's definition, and fix comment.
13890 (inferior): Inherit from refcounted_object. Add comments.
13891 * thread.c (switch_to_thread_no_regs): Reference the thread's
13892 inferior pointer directly instead of doing a ptid lookup.
13893 (switch_to_no_thread): New function.
13894 (switch_to_thread(thread_info *)): New function, factored out
13896 (switch_to_thread(ptid_t)): ... this.
13897 (restore_current_thread): Delete.
13898 (current_thread_cleanup): Remove 'inf_id' and 'was_removable'
13899 fields, and add 'inf' field.
13900 (do_restore_current_thread_cleanup): Check whether old->inf is
13901 alive instead of looking up an inferior by ptid. Use
13902 switch_to_thread and switch_to_no_thread.
13903 (restore_current_thread_cleanup_dtor): Use old->inf directly
13904 instead of lookup up an inferior by id. Decref the inferior.
13905 Don't restore 'removable'.
13906 (make_cleanup_restore_current_thread): Same the inferior pointer
13907 in old, instead of the inferior number. Incref the inferior.
13908 Don't save/clear 'removable'.
13910 2017-04-19 Pedro Alves <palves@redhat.com>
13912 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13913 unittests/scoped_restore-selftests.c.
13914 (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o.
13915 * common/scoped_restore.h (scoped_restore_base): Make "class".
13916 (scoped_restore_base::release): New public method.
13917 (scoped_restore_base::scoped_restore_base): New protected ctor.
13918 (scoped_restore_base::m_saved_var): New protected field.
13919 (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the
13920 scoped_restore_base base class instead of m_saved_var directly.
13921 (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise.
13922 (scoped_restore_tmpl::scoped_restore_tmpl(const
13923 scoped_restore_tmpl<T>&)): Likewise.
13924 (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var
13926 (scoped_restore_tmpl::saved_var): New method.
13927 (scoped_restore_tmpl::m_saved_var): Delete.
13928 * inferior.h (inferior::detaching): Now a bool.
13929 * infrun.c (prepare_for_detach): Use a scoped_restore instead of a
13931 * unittests/scoped_restore-selftests.c: New file.
13933 2017-04-19 Pedro Alves <palves@redhat.com>
13935 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS):
13936 Re-sort in alphabetic order.
13938 2017-04-18 Pedro Alves <palves@redhat.com>
13940 * xml-support.c (obstack_xml_printf): Delete.
13941 * xml-support.h (obstack_xml_printf): Delete.
13943 2017-04-18 Pedro Alves <palves@redhat.com>
13945 * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse,
13946 vdebug, verror, body_text, start_element, end_element, name,
13947 user_data, set_is_xinclude, set_error, expat_parser>: New methods.
13948 <name, user_data, expat_parser, scopes, error, last_line, dtd_name,
13949 is_xinclude>: Make private and add m_ prefix.
13950 (gdb_xml_parser::body_text): New method, based on ...
13951 (gdb_xml_body_text): ... this. Adjust.
13952 (gdb_xml_parser::vdebug): New method, based on ...
13953 (gdb_xml_debug): ... this. Adjust.
13954 (gdb_xml_parser::verror): New method, based on ...
13955 (gdb_xml_error): ... this. Adjust.
13956 (gdb_xml_parser::start_element): New method, based on ...
13957 (gdb_xml_start_element): ... this. Adjust.
13958 (gdb_xml_start_element_wrapper): Defer to
13959 gdb_xml_parser::start_element and gdb_xml_parser::set_error.
13960 (gdb_xml_parser::end_element): New method, based on ...
13961 (gdb_xml_end_element_wrapper): ... this. Adjust.
13962 (gdb_xml_parser::~gdb_xml_parser): Adjust.
13963 (gdb_xml_parser::gdb_xml_parser): Adjust to field renames.
13964 (gdb_xml_parser::use_dtd): New method, based on ...
13965 (gdb_xml_use_dtd): ... this. Adjust.
13966 (gdb_xml_parser::parse): New method, based on ...
13967 (gdb_xml_parse): ... this. Adjust.
13968 (gdb_xml_parse_quick): Adjust to call the parser's parse method.
13969 (xinclude_start_include): Adjust to call the parser's name method.
13970 (xml_xinclude_default, xml_xinclude_start_doctype)
13971 (xml_xinclude_end_doctype): Adjust to call the parser's user_data
13973 (xml_process_xincludes): Adjust to call parser methods.
13974 * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete
13977 2017-04-18 Pedro Alves <palves@redhat.com>
13979 * tracefile-tfile.c (tfile_write_tdesc): Adjust to use
13980 gdb::optional<std::string>.
13981 * xml-support.c: Include <string>.
13982 (scope_level::scope_level(scope_level &&))
13983 (scope_level::~scope_level): Delete.
13984 (scope_level::body): Now a std::string.
13985 (gdb_xml_body_text, gdb_xml_end_element): Adjust.
13986 (xinclude_parsing_data::xinclude_parsing_data): Add 'output'
13988 (xinclude_parsing_data::~xinclude_parsing_data): Delete.
13989 (xinclude_parsing_data::output): Now a std::string reference.
13990 (xinclude_start_include): Adjust.
13991 (xml_xinclude_default): Adjust.
13992 (xml_process_xincludes): Add 'output' parameter, and return bool.
13993 * xml-support.h (xml_process_xincludes): Add 'output' parameter,
13995 * xml-tdesc.c: Include <unordered_map> and <string>.
13996 (tdesc_xml_cache): Delete.
13997 (tdesc_xml_cache_s): Delete.
13998 (xml_cache): Now an std::unordered_map.
13999 (tdesc_parse_xml): Adjust to use std::string and unordered_map.
14000 (target_fetch_description_xml): Change return type to
14001 gdb::optional<std::string>, and adjust.
14002 * xml-tdesc.h: Include "common/gdb_optional.h" and <string>.
14003 (target_fetch_description_xml): Change return type to
14004 gdb::optional<std::string>.
14006 2017-04-18 Pedro Alves <palves@redhat.com>
14008 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14009 unittests/optional-selftests.c.
14010 (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o.
14011 * unittests/optional-selftests.c: New file.
14012 * unittests/optional/assignment/1.cc: New file.
14013 * unittests/optional/assignment/2.cc: New file.
14014 * unittests/optional/assignment/3.cc: New file.
14015 * unittests/optional/assignment/4.cc: New file.
14016 * unittests/optional/assignment/5.cc: New file.
14017 * unittests/optional/assignment/6.cc: New file.
14018 * unittests/optional/assignment/7.cc: New file.
14019 * unittests/optional/cons/copy.cc: New file.
14020 * unittests/optional/cons/default.cc: New file.
14021 * unittests/optional/cons/move.cc: New file.
14022 * unittests/optional/cons/value.cc: New file.
14023 * unittests/optional/in_place.cc: New file.
14024 * unittests/optional/observers/1.cc: New file.
14025 * unittests/optional/observers/2.cc: New file.
14027 2017-04-18 Pedro Alves <palves@redhat.com>
14029 * common/gdb_optional.h: Include common/traits.h.
14030 (in_place_t): New type.
14031 (in_place): New constexpr variable.
14032 (optional::optional): Remove member initialization of
14034 (optional::optional(in_place_t...)): New constructor.
14035 (optional::~optional): Use reset.
14036 (optional::optional(const optional&)): New.
14037 (optional::optional(const optional&&)): New.
14038 (optional::optional(T &)): New.
14039 (optional::optional(T &&)): New.
14040 (operator::operator=(const optional &)): New.
14041 (operator::operator=(optional &&)): New.
14042 (operator::operator= (const T &))
14043 (operator::operator= (T &&))
14044 (operator::emplace (Args &&... args)): Return a T&. Use reset.
14045 (operator::reset): New.
14046 (operator::m_instantiated):: Add in-class initializer.
14047 * common/traits.h: Include <type_traits>.
14048 (struct And): New types.
14050 2017-04-18 Pedro Alves <palves@redhat.com>
14052 * xml-support.c: Include <vector>.
14053 (scope_level::scope_level(const gdb_xml_element *))
14054 (scope_level::scope_level(scope_level&&)): New.
14055 (scope_level::~scope_level): New.
14056 (scope_level_s): Delete.
14057 (gdb_xml_parser::scopes): Now a std::vector.
14058 (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
14060 (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
14061 scope cleanup code.
14062 (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
14063 of the scopes member. Use std::vector::emplace_back.
14065 2017-04-18 Pedro Alves <palves@redhat.com>
14067 * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude
14069 (gdb_xml_end_element): Change type of first parameter.
14070 (gdb_xml_cleanup): Rename to ...
14071 (gdb_xml_parser::~gdb_xml_parser): ... this.
14072 (gdb_xml_create_parser_and_cleanup): Delete with ...
14073 (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
14075 (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
14076 using gdb_xml_create_parser_and_cleanup.
14077 (xinclude_parsing_data): Add ctor/dtor.
14078 (xml_xinclude_cleanup): Delete.
14079 (xml_process_xincludes): Create a local xinclude_parsing_data
14080 instead of heap-allocating one. Create a local gdb_xml_parser
14081 instead of heap-allocating one with
14082 gdb_xml_create_parser_and_cleanup.
14084 2017-04-18 John Baldwin <jhb@FreeBSD.org>
14087 * fbsd-nat.c (resume_one_thread_cb): Remove.
14088 (resume_all_threads_cb): Remove.
14089 (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
14090 iterate_over_threads.
14092 2017-04-17 Joel Brobecker <brobecker@adacore.com>
14094 * NEWS: Create a new section for the next release branch.
14095 Rename the section of the current branch, now that it has
14098 2017-04-17 Joel Brobecker <brobecker@adacore.com>
14100 GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
14101 * version.in: Bump version to 8.0.50.DATE-git.
14103 2017-04-13 Sergio Durigan Junior <sergiodj@redhat.com>
14106 * windows-nat.c (windows_create_inferior): Declare 'allargs'
14107 independently of the host, and fix build breakage on Cygwin.
14109 2017-04-13 Pedro Alves <palves@redhat.com>
14111 * inferior.c (free_inferior): Convert to ...
14112 (inferior::~inferior): ... this dtor.
14113 (inferior::inferior): New ctor, factored out from ...
14114 (add_inferior_silent): ... here. Allocate the inferior with a new
14116 (delete_inferior): Call delete instead of free_inferior.
14117 * inferior.h (gdb_environ, continuation): Forward declare.
14118 (inferior): Now a class. Add in-class initialization to all
14119 members. Make boolean fields bool, except 'detaching'.
14120 (inferior::inferior): New explicit ctor.
14121 (inferior::~inferior): New.
14123 2017-04-13 Pedro Alves <palves@redhat.com>
14125 * inferior.c (init_inferior_list): Delete.
14126 * inferior.h (init_inferior_list): Delete.
14128 2017-04-13 Pedro Alves <palves@redhat.com>
14131 * gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
14132 (top level): Call it twice, with different thread sets.
14134 2017-04-13 Pedro Alves <palves@redhat.com>
14136 * thread.c: Include <algorithm>.
14137 (thread_array_cleanup): Delete.
14138 (scoped_inc_dec_ref): New class.
14139 (live_threads_count): New function.
14140 (set_thread_refcount): Delete.
14141 (tp_array_compar_ascending): Now a bool.
14142 (tp_array_compar): Convert to a std::sort comparison function.
14143 (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
14144 and live_threads_count.
14146 2017-04-13 Pedro Alves <palves@redhat.com>
14148 * infrun.c (follow_fork_inferior): Also switch the current
14151 2017-04-13 Pedro Alves <palves@redhat.com>
14153 * breakpoint.c (watch_command_1): Save watchpoint-frame info
14154 before calling create_internal_breakpoint.
14156 2017-04-13 Pedro Alves <palves@redhat.com>
14158 * fork-child.c (execv_argv): New class.
14159 (breakup_args): Refactored as ...
14160 (execv_argv::init_for_no_shell): .. this method of execv_argv.
14161 Copy arguments to storage and replace separators with NULL
14162 terminators in place.
14163 (escape_bang_in_quoted_argument): Adjust to return bool.
14164 (execv_argv::execv_argv): New ctor.
14165 (execv_argv::init_for_shell): New method, factored out from
14166 fork_inferior. Don't strdup strings into the vector.
14167 (fork_inferior): Eliminate "shell" local and use execv_argv. Use
14168 Remove free_vector_argv call.
14170 2017-04-13 Yao Qi <yao.qi@linaro.org>
14172 * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
14175 2017-04-13 Yao Qi <yao.qi@linaro.org>
14177 * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
14178 * rx-tdep.c (rx_gdbarch_init): Likewise.
14180 2017-04-13 Pedro Alves <palves@redhat.com>
14182 * breakpoint.h (struct breakpoint): Reindent.
14184 2017-04-13 Pedro Alves <palves@redhat.com>
14186 * breakpoint.c (bp_location): Rename to ...
14187 (bp_locations): ... this. All references updated.
14188 (bp_location_count): Rename to ...
14189 (bp_locations_count): ... this. All references updated.
14190 (bp_location_placed_address_before_address_max): Rename to ...
14191 (bp_locations_placed_address_before_address_max): ... this. All
14192 references updated.
14193 (bp_location_shadow_len_after_address_max): Rename to ...
14194 (bp_locations_shadow_len_after_address_max): ... this. All
14195 references updated.
14196 (bp_location_compare_addrs): Rename to ...
14197 (bp_locations_compare_addrs): ... this. All references updated.
14198 (bp_location_compare):Rename to ...
14199 (bp_locations_compare): ... this. All references updated.
14200 (bp_location_target_extensions_update): Rename to ...
14201 (bp_locations_target_extensions_update): ... this. All references
14204 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
14206 * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
14207 * common/common.m4: Check headers 'termios.h', 'termio.h' and
14209 * common/gdb_termios.h: New file, with parts of "terminal.h".
14210 * inflow.c: Include "gdb_termios.h".
14211 * ser-unix.c: Include "gdb_termios.h".
14212 * terminal.h: Move terminal-related defines to
14213 "common/gdb_termios.h".
14215 2017-04-12 Tom Tromey <tom@tromey.com>
14217 * probe.c (parse_probes): Update.
14218 * location.h (delete_event_location): Don't declare.
14219 (event_location_deleter::operator()): Update.
14220 * location.c (event_location_deleter::operator()): Rename from
14221 delete_event_location.
14222 * linespec.h (linespec_result) <location>: Change type to
14224 * linespec.c (canonicalize_linespec, event_location_to_sals)
14225 (decode_objc): Update.
14226 (linespec_result): Don't call delete_event_location.
14227 * breakpoint.c (create_breakpoints_sal)
14228 (bkpt_probe_create_sals_from_location)
14229 (strace_marker_create_sals_from_location): Update.
14231 2017-04-12 Tom Tromey <tom@tromey.com>
14233 * linespec.h (struct linespec_result): Add constructor and
14235 (init_linespec_result, destroy_linespec_result)
14236 (make_cleanup_destroy_linespec_result): Don't declare.
14237 * linespec.c (init_linespec_result): Remove.
14238 (linespec_result::~linespec_result): Rename from
14239 destroy_linespec_result. Update.
14240 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
14242 * breakpoint.c (create_breakpoint, break_range_command)
14243 (decode_location_default): Update.
14244 * ax-gdb.c (agent_command_1): Update.
14246 2017-04-12 Tom Tromey <tom@tromey.com>
14248 * remote.c (remote_download_tracepoint): Update.
14249 * python/py-breakpoint.c (bppy_get_location): Update.
14250 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
14251 (gdbscm_breakpoint_location): Update.
14252 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
14253 * breakpoint.h (struct breakpoint) <location, location_range_end>:
14254 Change type to event_location_up.
14255 * breakpoint.c (create_overlay_event_breakpoint)
14256 (create_longjmp_master_breakpoint)
14257 (create_std_terminate_master_breakpoint)
14258 (create_exception_master_breakpoint)
14259 (breakpoint_event_location_empty_p, print_breakpoint_location)
14260 (print_one_breakpoint_location, create_thread_event_breakpoint)
14261 (init_breakpoint_sal, create_breakpoint)
14262 (print_recreate_ranged_breakpoint, break_range_command)
14263 (init_ada_exception_breakpoint, say_where): Update.
14264 (base_breakpoint_dtor): Don't call delete_event_location.
14265 (bkpt_print_recreate, tracepoint_print_recreate)
14266 (dprintf_print_recreate, update_static_tracepoint)
14267 (breakpoint_re_set_default): Update.
14269 2017-04-12 Tom Tromey <tom@tromey.com>
14271 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
14272 type of "to_do". Update.
14273 (compute_stack_depth): Use std::vector.
14275 2017-04-12 Tom Tromey <tom@tromey.com>
14277 * printcmd.c (find_instruction_backward): Use std::vector.
14279 2017-04-12 Tom Tromey <tom@tromey.com>
14281 * symfile.c (objfilep): Remove typedef.
14282 (reread_symbols): Use a std::vector.
14284 2017-04-12 Tom Tromey <tom@tromey.com>
14286 * mi/mi-main.c (exec_direction_forward): Remove.
14287 (exec_reverse_continue, mi_execute_command): Use scoped_restore.
14288 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
14290 * guile/guile.c (guile_repl_command, guile_command)
14291 (gdbscm_execute_gdb_command): Use scoped_restore.
14292 * go-exp.y (go_parse): Use scoped_restore.
14293 * d-exp.y (d_parse): Use scoped_restore.
14294 * cli/cli-decode.c (cmd_func): Use scoped_restore.
14295 * c-exp.y (c_parse): Use scoped_restore.
14297 2017-04-12 Tom Tromey <tom@tromey.com>
14299 * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
14300 (mi_parse): Update return type.
14301 (mi_parse_free): Remove.
14302 * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
14303 (mi_parse::~mi_parse): Rename from mi_parse_free.
14304 (mi_parse_cleanup): Remove.
14305 (mi_parse): Return a unique_ptr. Use new.
14306 * mi/mi-main.c (mi_execute_command): Update.
14308 2017-04-12 Tom Tromey <tom@tromey.com>
14310 * location.c (explicit_location_lex_one): Return a
14311 unique_xmalloc_ptr.
14312 (string_to_explicit_location): Update. Remove cleanups.
14314 2017-04-12 Tom Tromey <tom@tromey.com>
14316 * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
14317 (compare_value_and_voffset): Change type. Update.
14318 (compute_vtable_size): Change type of "offset_vec".
14319 (gnuv3_print_vtable): Use std::vector. Remove cleanups.
14320 (gnuv3_get_typeid): Remove extraneous declaration.
14322 2017-04-12 Tom Tromey <tom@tromey.com>
14324 * charset.h (wchar_iterator): Fix comment.
14326 2017-04-12 Tom Tromey <tom@tromey.com>
14328 * charset.c (iconv_wrapper): New class.
14329 (cleanup_iconv): Remove.
14330 (convert_between_encodings): Use it.
14332 2017-04-12 Tom Tromey <tom@tromey.com>
14334 * symfile.h (increment_reading_symtab): Update type.
14335 * symfile.c (decrement_reading_symtab): Remove.
14336 (increment_reading_symtab): Return a scoped_restore_tmpl<int>.
14337 * psymtab.c (psymtab_to_symtab): Update.
14338 * dwarf2read.c (dw2_instantiate_symtab): Update.
14340 2017-04-12 Tom Tromey <tom@tromey.com>
14342 * jit.c (struct jit_reader): Declare separately. Add constructor
14343 and destructor. Change type of "handle".
14344 (loaded_jit_reader): Define separately.
14345 (jit_reader_load): Update. New "new".
14346 (jit_reader_unload_command): Use "delete".
14347 * gdb-dlfcn.h (struct dlclose_deleter): New.
14348 (gdb_dlhandle_up): New typedef.
14349 (gdb_dlopen, gdb_dlsym): Update types.
14350 (gdb_dlclose): Remove.
14351 * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up.
14352 (gdb_dlsym): Change type of "handle".
14353 (make_cleanup_dlclose): Remove.
14354 (dlclose_deleter::operator()): Rename from gdb_dlclose.
14355 * compile/compile-c-support.c (load_libcc): Update.
14357 2017-04-12 Tom Tromey <tom@tromey.com>
14359 * symtab.h (find_pcs_for_symtab_line): Change return type.
14360 * symtab.c (find_pcs_for_symtab_line): Change return type.
14361 * python/py-linetable.c (build_line_table_tuple_from_pcs): Change
14362 type of "vec". Update.
14363 (ltpy_get_pcs_for_line): Update.
14364 * linespec.c (decode_digits_ordinary): Update.
14366 2017-04-12 Tom Tromey <tom@tromey.com>
14368 * tracepoint.c (actions_command): Update.
14369 * python/python.c (python_command, python_interactive_command):
14371 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
14372 * guile/guile.c (guile_command): Update.
14373 * defs.h (read_command_lines, read_command_lines_1): Return
14375 (command_lines_deleter): New struct.
14376 (command_line_up): New typedef.
14377 * compile/compile.c (compile_code_command)
14378 (compile_print_command): Update.
14379 * cli/cli-script.h (get_command_line, copy_command_lines): Return
14381 (make_cleanup_free_command_lines): Remove.
14382 * cli/cli-script.c (get_command_line, read_command_lines_1)
14383 (copy_command_lines): Return command_line_up.
14384 (while_command, if_command, read_command_lines, define_command)
14385 (document_command): Update.
14386 (do_free_command_lines_cleanup, make_cleanup_free_command_lines):
14388 * breakpoint.h (breakpoint_set_commands): Change type of
14390 * breakpoint.c (breakpoint_set_commands): Change type of
14391 "commands". Update.
14392 (do_map_commands_command, update_dprintf_command_list)
14393 (create_tracepoint_from_upload): Update.
14395 2017-04-12 Tom Tromey <tom@tromey.com>
14397 * tracepoint.c (scope_info): Update.
14398 * spu-tdep.c (spu_catch_start): Update.
14399 * python/python.c (gdbpy_decode_line): Update.
14400 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
14401 * python/py-breakpoint.c (bppy_init): Update.
14402 * probe.c (parse_probes): Update.
14403 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
14404 * location.h (event_location_deleter): New struct.
14405 (event_location_up): New typedef.
14406 (new_linespec_location, new_address_location, new_probe_location)
14407 (new_explicit_location, copy_event_location)
14408 (string_to_event_location, string_to_event_location_basic)
14409 (string_to_explicit_location): Update return type.
14410 (make_cleanup_delete_event_location): Remove.
14411 * location.c (new_linespec_location, new_address_location)
14412 (new_probe_location, new_explicit_location, copy_event_location):
14413 Return event_location_up.
14414 (delete_event_location_cleanup)
14415 (make_cleanup_delete_event_location): Remove.
14416 (string_to_explicit_location, string_to_event_location_basic)
14417 (string_to_event_location): Return event_location_up.
14418 * linespec.c (canonicalize_linespec, event_location_to_sals)
14419 (decode_line_with_current_source)
14420 (decode_line_with_last_displayed, decode_objc): Update.
14421 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
14422 * completer.c (location_completer): Update.
14423 * cli/cli-cmds.c (edit_command, list_command): Update.
14424 * breakpoint.c (create_overlay_event_breakpoint)
14425 (create_longjmp_master_breakpoint)
14426 (create_std_terminate_master_breakpoint)
14427 (create_exception_master_breakpoint)
14428 (create_thread_event_breakpoint): Update.
14429 (init_breakpoint_sal): Update. Remove some dead code.
14430 (create_breakpoint_sal): Change type of "location". Update.
14431 (create_breakpoints_sal, create_breakpoint, break_command_1)
14432 (dprintf_command, break_range_command, until_break_command)
14433 (init_ada_exception_breakpoint)
14434 (strace_marker_create_sals_from_location)
14435 (update_static_tracepoint, trace_command, ftrace_command)
14436 (strace_command, create_tracepoint_from_upload): Update.
14437 * break-catch-throw.c (re_set_exception_catchpoint): Update.
14438 * ax-gdb.c (agent_command_1): Update.
14440 2017-04-12 Pedro Alves <palves@redhat.com>
14442 * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o.
14443 * configure.tgt: Handle i[34567]86-*-go32* and
14444 i[34567]86-*-msdosdjgpp*.
14445 * i386-tdep.c (i386_svr4_reg_to_regnum):
14447 (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to
14449 (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c.
14450 * i386-go32-tdep.c: New file.
14451 * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New
14454 2017-04-12 Simon Marchi <simon.marchi@ericsson.com>
14456 * aix-thread.c (pd_status2str): Change return type to const char *.
14458 2017-04-12 Pedro Alves <palves@redhat.com>
14460 * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
14461 calls to set_gdbarch_gnu_triplet_regexp.
14463 2017-04-12 Pedro Alves <palves@redhat.com>
14466 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>:
14468 (cplus_language_arch_info): Register cplus_primitive_type_wchar_t.
14469 * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field.
14470 * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type.
14471 * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values.
14472 * gdbarch.h, gdbarch.c: Regenerate.
14473 * aarch64-tdep.c (aarch64_gdbarch_init): Override
14474 gdbarch_wchar_bit and gdbarch_wchar_signed.
14475 * alpha-tdep.c (alpha_gdbarch_init): Likewise.
14476 * arm-tdep.c (arm_gdbarch_init): Likewise.
14477 * avr-tdep.c (avr_gdbarch_init): Likewise.
14478 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
14479 * i386-nto-tdep.c (i386nto_init_abi): Likewise.
14480 * i386-tdep.c (i386_go32_init_abi): Likewise.
14481 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
14482 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
14483 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
14484 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
14485 * sh-tdep.c (sh_gdbarch_init): Likewise.
14486 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
14487 * sparc64-tdep.c (sparc64_init_abi): Likewise.
14488 * windows-tdep.c (windows_init_abi): Likewise.
14489 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
14491 2017-04-12 Pedro Alves <palves@redhat.com>
14494 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t,
14495 cplus_primitive_type_char32_t>: New enum values.
14496 (cplus_language_arch_info): Register cplus_primitive_type_char16_t
14497 and cplus_primitive_type_char32_t.
14498 * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or
14499 32, use the archtecture's built-in type for char16_t and char32_t,
14500 respectively. Otherwise, fallback to init_integer_type as before,
14501 but make the type unsigned, and issue a complaint.
14502 * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned.
14504 2017-04-12 Alan Hayward <alan.hayward@arm.com>
14506 * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added.
14507 (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
14509 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
14511 * windows-nat.c (windows_create_inferior): Declare 'toexec' as
14514 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
14516 * common/common-utils.c (free_vector_argv): New function.
14517 * common/common-utils.h: Include <vector>.
14518 (free_vector_argv): New prototype.
14519 * darwin-nat.c (darwin_create_inferior): Rewrite function
14520 prototype in order to constify "exec_file" and accept a
14521 "std::string" for "allargs".
14522 * fork-child.c: Include <vector>.
14523 (breakup_args): Rewrite function, using C++.
14524 (fork_inferior): Rewrite function header, constify "exec_file_arg"
14525 and accept "std::string" for "allargs". Update the code to
14526 calculate "argv" based on "allargs". Update calls to "exec_fun"
14528 * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in
14529 order to constify "exec_file" and accept a "std::string" for
14531 * go32-nat.c (go32_create_inferior): Likewise.
14532 * inf-ptrace.c (inf_ptrace_create_inferior): Likewise.
14533 * infcmd.c (run_command_1): Constify "exec_file". Use
14534 "std::string" for inferior arguments.
14535 * inferior.h (fork_inferior): Update prototype.
14536 * linux-nat.c (linux_nat_create_inferior): Rewrite function
14537 prototype in order to constify "exec_file" and accept a
14538 "std::string" for "allargs".
14539 * nto-procfs.c (procfs_create_inferior): Likewise.
14540 * procfs.c (procfs_create_inferior): Likewise.
14541 * remote-sim.c (gdbsim_create_inferior): Likewise.
14542 * remote.c (extended_remote_run): Update code to accept
14543 "std::string" as argument.
14544 (extended_remote_create_inferior): Rewrite function prototype in
14545 order to constify "exec_file" and accept a "std::string" for
14547 * rs6000-nat.c (super_create_inferior): Likewise.
14548 (rs6000_create_inferior): Likewise.
14549 * target.h (struct target_ops) <to_create_inferior>: Likewise.
14550 * windows-nat.c (windows_create_inferior): Likewise.
14552 2017-04-11 Pedro Alves <palves@redhat.com>
14554 * thread.c: Fix whitespace throughout.
14556 2017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com>
14558 * linux-nat.c (linux_nat_detach): Remove delete_lwp call.
14560 2017-04-11 Alan Hayward <alan.hayward@arm.com>
14562 * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
14564 2017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
14567 * osdata.c (info_osdata): Check if 'type' is an empty string
14570 2017-04-10 Pedro Alves <palves@redhat.com>
14572 * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid)
14573 (ptid_to_global_thread_id, in_thread_list)
14574 (do_captured_list_thread_ids, set_resumed, set_running)
14575 (set_executing, set_stop_requested, finish_thread_state)
14576 (validate_registers_access, can_access_registers_ptid)
14577 (print_thread_info_1, switch_to_thread)
14578 (do_restore_current_thread_cleanup)
14579 (make_cleanup_restore_current_thread, thread_command)
14580 (thread_name_command): Use operator== instead of ptid_equal.
14582 2017-04-10 Pedro Alves <palves@redhat.com>
14584 * thread.c (struct current_thread_cleanup) <next>: Delete field.
14585 (current_thread_cleanup_chain): Delete.
14586 (restore_current_thread_cleanup_dtor)
14587 (make_cleanup_restore_current_thread): Remove references to
14588 current_thread_cleanup_chain.
14590 2017-04-10 Alan Hayward <alan.hayward@arm.com>
14592 * msp430-tdep.c (msp430_pseudo_register_read): Never return
14595 2017-04-10 Yao Qi <yao.qi@linaro.org>
14598 * gdbthread.h (thread_info::deletable): New method.
14599 (thread_info::incref): New method.
14600 (thread_info::decref): New method.
14601 (thread_info::refcount): Move it to private.
14602 * infrun.c (save_stop_context): Call inc_refcount.
14603 (release_stop_context_cleanup): Likewise.
14604 * thread.c (set_thread_exited): New function.
14605 (init_thread_list): Delete "tp" only it is deletable, otherwise
14606 call set_thread_exited.
14607 (delete_thread_1): Call set_thread_exited.
14608 (current_thread_cleanup) <inferior_pid>: Remove.
14609 <thread>: New field.
14610 (restore_current_thread_ptid_changed): Removed.
14611 (do_restore_current_thread_cleanup): Adjust.
14612 (restore_current_thread_cleanup_dtor): Don't call
14614 (set_thread_refcount): Use dec_refcount.
14615 (make_cleanup_restore_current_thread): Adjust.
14616 (thread_apply_all_command): Call inc_refcount.
14617 (_initialize_thread): Don't call
14618 observer_attach_thread_ptid_changed.
14620 2017-04-10 Yao Qi <yao.qi@linaro.org>
14622 * thread.c (delete_thread_1): Hoist code on marking thread as
14625 2017-04-09 Simon Marchi <simon.marchi@polymtl.ca>
14627 * windows-nat.c (windows_detach): Initialize ptid with
14630 2017-04-07 Simon Marchi <simon.marchi@ericsson.com>
14632 * unittests/ptid-selftests.c: Fix erroneous assert messages.
14634 2017-04-07 Alan Hayward <alan.hayward@arm.com>
14636 * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
14637 (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE.
14638 (bfin_pseudo_register_write): Likewise
14640 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
14642 * common/ptid.h (struct ptid): Change to...
14643 (class ptid_t): ... this.
14644 <ptid_t>: New constructors.
14645 <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=,
14646 matches>: New methods.
14647 <make_null, make_minus_one>: New static methods.
14648 <pid>: Rename to...
14650 <lwp>: Rename to...
14652 <tid>: Rename to...
14654 (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
14655 ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments
14656 as references, move comment to class ptid_t.
14657 * common/ptid.c (null_ptid, minus_one_ptid): Initialize with
14658 ptid_t static methods.
14659 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid,
14660 ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match):
14661 Take ptid arguments as references, implement using ptid_t methods.
14662 * unittests/ptid-selftests.c: New file.
14663 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14664 unittests/ptid-selftests.c.
14665 (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o.
14667 2017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
14669 * python/python.c (python_run_simple_file): Cast mode literal to
14670 non-const char pointer as expected by PyFile_FromString.
14672 2017-04-05 Simon Marchi <simon.marchi@ericsson.com>
14674 * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with
14675 minus_one_ptid and null_ptid.
14677 2017-04-05 Pedro Alves <palves@redhat.com>
14679 * warning.m4 (build_warnings): Remove -Wno-write-strings.
14680 * configure: Regenerate.
14682 2017-04-05 Pedro Alves <palves@redhat.com>
14684 * ada-exp.y (yyerror): Constify.
14685 * ada-lang.c (bound_name, get_selections)
14686 (ada_variant_discrim_type)
14687 (ada_variant_discrim_name, ada_value_struct_elt)
14688 (ada_lookup_struct_elt_type, is_unchecked_variant)
14689 (ada_which_variant_applies, standard_exc, ada_get_next_arg)
14690 (catch_ada_exception_command_split)
14691 (catch_ada_assert_command_split, catch_assert_command)
14692 (ada_op_name): Constify.
14693 * ada-lang.h (ada_yyerror, get_selections)
14694 (ada_variant_discrim_name, ada_value_struct_elt): Constify.
14695 * arc-tdep.c (arc_print_frame_cache): Constify.
14696 * arm-tdep.c (arm_skip_stub): Constify.
14697 * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref)
14698 (gen_aggregate_elt_ref): Constify.
14699 * bcache.c (print_bcache_statistics): Constify.
14700 * bcache.h (print_bcache_statistics): Constify.
14701 * break-catch-throw.c (catch_exception_command_1):
14702 * breakpoint.c (struct ep_type_description::description):
14704 (add_solib_catchpoint): Constify.
14705 (catch_fork_command_1): Add cast.
14706 (add_catch_command): Constify.
14707 * breakpoint.h (add_catch_command, add_solib_catchpoint):
14709 * bsd-uthread.c (bsd_uthread_state): Constify.
14710 * buildsym.c (patch_subfile_names): Constify.
14711 * buildsym.h (next_symbol_text_func, patch_subfile_names):
14713 * c-exp.y (yyerror): Constify.
14714 (token::oper): Constify.
14715 * c-lang.h (c_yyerror, cp_print_class_member): Constify.
14716 * c-varobj.c (cplus_describe_child): Constify.
14717 * charset.c (find_charset_names): Add cast.
14718 (find_charset_names): Constify array and add const_cast.
14719 * cli/cli-cmds.c (complete_command, cd_command): Constify.
14720 (edit_command): Constify.
14721 * cli/cli-decode.c (lookup_cmd): Constify.
14722 * cli/cli-dump.c (dump_memory_command, dump_value_command):
14724 (struct dump_context): Constify.
14725 (add_dump_command, restore_command): Constify.
14726 * cli/cli-script.c (get_command_line): Constify.
14727 * cli/cli-script.h (get_command_line): Constify.
14728 * cli/cli-utils.c (check_for_argument): Constify.
14729 * cli/cli-utils.h (check_for_argument): Constify.
14730 * coff-pe-read.c (struct read_pe_section_data): Constify.
14731 * command.h (lookup_cmd): Constify.
14732 * common/print-utils.c (decimal2str): Constify.
14733 * completer.c (gdb_print_filename): Constify.
14734 * corefile.c (set_gnutarget): Constify.
14735 * cp-name-parser.y (yyerror): Constify.
14736 * cp-valprint.c (cp_print_class_member): Constify.
14737 * cris-tdep.c (cris_register_name, crisv32_register_name):
14739 * d-exp.y (yyerror): Constify.
14740 (struct token::oper): Constify.
14741 * d-lang.h (d_yyerror): Constify.
14742 * dbxread.c (struct header_file_location::name): Constify.
14743 (add_old_header_file, add_new_header_file, last_function_name)
14744 (dbx_next_symbol_text, add_bincl_to_list)
14745 (find_corresponding_bincl_psymtab, set_namestring)
14746 (find_stab_function_addr, read_dbx_symtab, start_psymtab)
14747 (dbx_end_psymtab, read_ofile_symtab, process_one_symbol):
14748 * defs.h (command_line_input, print_address_symbolic)
14749 (deprecated_readline_begin_hook): Constify.
14750 * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name):
14752 * event-top.c (handle_line_of_input): Constify and add cast.
14753 * exceptions.c (catch_errors): Constify.
14754 * exceptions.h (catch_errors): Constify.
14755 * expprint.c (print_subexp_standard, op_string, op_name)
14756 (op_name_standard, dump_raw_expression, dump_raw_expression):
14757 * expression.h (op_name, op_string, dump_raw_expression):
14759 * f-exp.y (yyerror): Constify.
14760 (struct token::oper): Constify.
14761 (struct f77_boolean_val::name): Constify.
14762 * f-lang.c (f_word_break_characters): Constify.
14763 * f-lang.h (f_yyerror): Constify.
14764 * fork-child.c (fork_inferior): Add cast.
14765 * frv-tdep.c (struct gdbarch_tdep::register_names): Constify.
14766 (new_variant): Constify.
14767 * gdbarch.sh (pstring_ptr, pstring_list): Constify.
14768 * gdbarch.c: Regenerate.
14769 * gdbcore.h (set_gnutarget): Constify.
14770 * go-exp.y (yyerror): Constify.
14771 (token::oper): Constify.
14772 * go-lang.h (go_yyerror): Constify.
14773 * go32-nat.c (go32_sysinfo): Constify.
14774 * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify.
14775 * guile/scm-cmd.c (cmdscm_function): Constify.
14776 * guile/scm-param.c (pascm_param_value): Constify.
14777 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
14778 (h8300sx_register_name): Constify.
14779 * hppa-tdep.c (hppa32_register_name, hppa64_register_name):
14781 * ia64-tdep.c (ia64_register_names): Constify.
14782 * infcmd.c (construct_inferior_arguments): Constify.
14783 (path_command, attach_post_wait): Constify.
14784 * language.c (show_range_command, show_case_command)
14785 (unk_lang_error): Constify.
14786 * language.h (language_defn::la_error)
14787 (language_defn::la_name_of_this): Constify.
14788 * linespec.c (decode_line_2): Constify.
14789 * linux-thread-db.c (thread_db_err_str): Constify.
14790 * lm32-tdep.c (lm32_register_name): Constify.
14791 * m2-exp.y (yyerror): Constify.
14792 * m2-lang.h (m2_yyerror): Constify.
14793 * m32r-tdep.c (m32r_register_names): Constify and make static.
14794 * m68hc11-tdep.c (m68hc11_register_names): Constify.
14795 * m88k-tdep.c (m88k_register_name): Constify.
14796 * macroexp.c (appendmem): Constify.
14797 * mdebugread.c (fdr_name, add_data_symbol, parse_type)
14798 (upgrade_type, parse_external, parse_partial_symbols)
14799 (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab)
14800 (new_symbol): Constify.
14801 * memattr.c (mem_info_command): Constify.
14802 * mep-tdep.c (register_name_from_keyword): Constify.
14803 * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env):
14805 * mi/mi-cmd-stack.c (list_args_or_locals): Constify.
14806 * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify.
14807 * mi/mi-main.c (captured_mi_execute_command): Constify and add
14809 (mi_execute_async_cli_command): Constify.
14810 * mips-tdep.c (mips_register_name): Constify.
14811 * mn10300-tdep.c (register_name, mn10300_generic_register_name)
14812 (am33_register_name, am33_2_register_name)
14813 * moxie-tdep.c (moxie_register_names): Constify.
14814 * nat/linux-osdata.c (osdata_type): Constify fields.
14815 * nto-tdep.c (nto_parse_redirection): Constify.
14816 * objc-lang.c (lookup_struct_typedef, lookup_objc_class)
14817 (lookup_child_selector): Constify.
14818 (objc_methcall::name): Constify.
14819 * objc-lang.h (lookup_objc_class, lookup_child_selector)
14820 (lookup_struct_typedef): Constify.
14821 * objfiles.c (pc_in_section): Constify.
14822 * objfiles.h (pc_in_section): Constify.
14823 * p-exp.y (struct token::oper): Constify.
14824 (yyerror): Constify.
14825 * p-lang.h (pascal_yyerror): Constify.
14826 * parser-defs.h (op_name_standard): Constify.
14827 (op_print::string): Constify.
14828 (exp_descriptor::op_name): Constify.
14829 * printcmd.c (print_address_symbolic): Constify.
14830 * psymtab.c (print_partial_symbols): Constify.
14831 * python/py-breakpoint.c (stop_func): Constify.
14832 (bppy_get_expression): Constify.
14833 * python/py-cmd.c (cmdpy_completer::name): Constify.
14834 (cmdpy_function): Constify.
14835 * python/py-event.c (evpy_add_attribute)
14836 (gdbpy_initialize_event_generic): Constify.
14837 * python/py-event.h (evpy_add_attribute)
14838 (gdbpy_initialize_event_generic): Constify.
14839 * python/py-evts.c (add_new_registry): Constify.
14840 * python/py-finishbreakpoint.c (outofscope_func): Constify.
14841 * python/py-framefilter.c (get_py_iter_from_func): Constify.
14842 * python/py-inferior.c (get_buffer): Add cast.
14843 * python/py-param.c (parm_constant::name): Constify.
14844 * python/py-unwind.c (fprint_frame_id): Constify.
14845 * python/python.c (gdbpy_parameter_value): Constify.
14846 * remote-fileio.c (remote_fio_func_map): Make 'name' const.
14847 * remote.c (memory_packet_config::name): Constify.
14848 (show_packet_config_cmd, remote_write_bytes)
14849 (remote_buffer_add_string):
14850 * reverse.c (exec_reverse_once): Constify.
14851 * rs6000-tdep.c (variant::name, variant::description): Constify.
14852 * rust-exp.y (rustyyerror): Constify.
14853 * rust-lang.c (rust_op_name): Constify.
14854 * rust-lang.h (rustyyerror): Constify.
14855 * serial.h (serial_ops::name): Constify.
14856 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
14857 (sh_sh3e_register_name, sh_sh2e_register_name)
14858 (sh_sh2a_register_name, sh_sh2a_nofpu_register_name)
14859 (sh_sh_dsp_register_name, sh_sh3_dsp_register_name)
14860 (sh_sh4_register_name, sh_sh4_nofpu_register_name)
14861 (sh_sh4al_dsp_register_name): Constify.
14862 * sh64-tdep.c (sh64_register_name): Constify.
14863 * solib-darwin.c (lookup_symbol_from_bfd): Constify.
14864 * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify.
14865 * stabsread.c (patch_block_stabs, read_type_number)
14866 (ref_map::stabs, ref_add, process_reference)
14867 (symbol_reference_defined, define_symbol, define_symbol)
14868 (error_type, read_type, read_member_functions, read_cpp_abbrev)
14869 (read_one_struct_field, read_struct_fields, read_baseclasses)
14870 (read_tilde_fields, read_struct_type, read_array_type)
14871 (read_enum_type, read_sun_builtin_type, read_sun_floating_type)
14872 (read_huge_number, read_range_type, read_args, common_block_start)
14873 (find_name_end): Constify.
14874 * stabsread.h (common_block_start, define_symbol)
14875 (process_one_symbol, symbol_reference_defined, ref_add):
14876 * symfile.c (get_section_index, add_symbol_file_command):
14877 * symfile.h (get_section_index): Constify.
14878 * target-descriptions.c (tdesc_type::name): Constify.
14879 (tdesc_free_type): Add cast.
14880 * target.c (find_default_run_target):
14881 (add_deprecated_target_alias, find_default_run_target)
14882 (target_announce_detach): Constify.
14883 (do_option): Constify.
14884 * target.h (add_deprecated_target_alias): Constify.
14885 * thread.c (print_thread_info_1): Constify.
14886 * top.c (deprecated_readline_begin_hook, command_line_input):
14888 (init_main): Add casts.
14889 * top.h (handle_line_of_input): Constify.
14890 * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify.
14891 * tracepoint.c (tvariables_info_1, trace_status_mi): Constify.
14892 (tfind_command): Rename to ...
14893 (tfind_command_1): ... this and constify.
14894 (tfind_command): New function.
14895 (tfind_end_command, tfind_start_command): Adjust.
14896 (encode_source_string): Constify.
14897 * tracepoint.h (encode_source_string): Constify.
14898 * tui/tui-data.c (tui_partial_win_by_name): Constify.
14899 * tui/tui-data.h (tui_partial_win_by_name): Constify.
14900 * tui/tui-source.c (tui_set_source_content_nil): Constify.
14901 * tui/tui-source.h (tui_set_source_content_nil): Constify.
14902 * tui/tui-win.c (parse_scrolling_args): Constify.
14903 * tui/tui-windata.c (tui_erase_data_content): Constify.
14904 * tui/tui-windata.h (tui_erase_data_content): Constify.
14905 * tui/tui-winsource.c (tui_erase_source_content): Constify.
14906 * tui/tui.c (tui_enable): Add cast.
14907 * utils.c (defaulted_query): Constify.
14908 (init_page_info): Add cast.
14909 (puts_debug, subset_compare): Constify.
14910 * utils.h (subset_compare): Constify.
14911 * varobj.c (varobj_format_string): Constify.
14912 * varobj.h (varobj_format_string): Constify.
14913 * vax-tdep.c (vax_register_name): Constify.
14914 * windows-nat.c (windows_detach): Constify.
14915 * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify.
14916 * xml-support.c (gdb_xml_end_element): Constify.
14917 * xml-tdesc.c (tdesc_start_reg): Constify.
14918 * xstormy16-tdep.c (xstormy16_register_name): Constify.
14919 * xtensa-tdep.c (xtensa_find_register_by_name): Constify.
14920 * xtensa-tdep.h (xtensa_register_t::name): Constify.
14922 2017-04-05 Pedro Alves <palves@redhat.com>
14924 * proc-api.c (struct trans): Constify.
14925 (procfs_note): Constify.
14926 * proc-events.c (struct trans, syscall_table):
14927 * proc-flags.c (struct trans): Constify.
14928 * proc-utils.h (procfs_note): Constify.
14929 * proc-why.c (struct trans): Constify.
14930 * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error)
14931 (procfs_detach): Constify.
14932 * sol-thread.c (struct string_map): Constify.
14933 (td_err_string, td_state_string): Constify.
14935 2017-04-05 Pedro Alves <palves@redhat.com>
14937 * proc-api.c (procfs_filename): Don't initialize
14939 (prepare_to_trace): Assume procfs_filename is non-NULL.
14940 (_initialize_proc_api): Give procfs_filename a default value here.
14942 2017-04-05 Pedro Alves <palves@redhat.com>
14944 * break-catch-throw.c (handle_gnu_v3_exceptions): Constify
14945 'cond_string' parameter.
14946 (extract_exception_regexp): Constify 'string' parameter.
14947 (catch_exception_command_1): Constify.
14948 * breakpoint.c (init_catchpoint)
14949 (create_fork_vfork_event_catchpoint): Constify 'cond_string'
14951 (ep_parse_optional_if_clause, catch_fork_command_1)
14952 (catch_exec_command_1): Constify.
14953 * breakpoint.h (init_catchpoint): Constify 'cond_string'
14955 (ep_parse_optional_if_clause): Constify.
14956 * cli/cli-utils.c (remove_trailing_whitespace)
14957 (check_for_argument): Constify.
14958 * cli/cli-utils.h (remove_trailing_whitespace): Constify and add
14959 non-const overload.
14960 (check_for_argument): Likewise.
14962 2017-04-05 Pedro Alves <palves@redhat.com>
14964 * event-top.c (command_line_handler): Add cast to execute_command
14966 * record-btrace.c (cmd_record_btrace_bts_start)
14967 (cmd_record_btrace_pt_start, cmd_record_btrace_start)
14968 (cmd_record_btrace_start): Add cast to execute_command call.
14969 * record-full.c (record_full_goto_insn):
14970 * record.c (record_start, record_stop): Add cast to
14971 execute_command_to_string calls.
14972 (cmd_record_start): Add cast to execute_command calls.
14974 2017-04-05 Pedro Alves <palves@redhat.com>
14976 * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New
14977 static inline function.
14978 * python/py-arch.c (archpy_disassemble): Constify 'keywords'
14979 array and use gdb_PyArg_ParseTupleAndKeywords.
14980 * python/py-cmd.c (cmdpy_init): Likewise.
14981 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
14982 * python/py-inferior.c (infpy_read_memory, infpy_write_memory)
14983 (infpy_search_memory): Likewise.
14984 * python/py-objfile.c (objfpy_add_separate_debug_file)
14985 (gdbpy_lookup_objfile): Likewise.
14986 * python/py-symbol.c (gdbpy_lookup_symbol)
14987 (gdbpy_lookup_global_symbol): Likewise.
14988 * python/py-type.c (gdbpy_lookup_type): Likewise.
14989 * python/py-value.c (valpy_lazy_string, valpy_string): Likewise.
14990 * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush):
14993 2017-04-05 Pedro Alves <palves@redhat.com>
14995 * python/python-internal.h (gdb_PyGetSetDef): New type.
14996 * python/py-block.c (block_object_getset)
14997 (breakpoint_object_getset): Now a gdb_PyGetSetDef array.
14998 * python/py-event.c (event_object_getset)
14999 (finish_breakpoint_object_getset): Likewise.
15000 * python/py-inferior.c (inferior_object_getset): Likewise.
15001 * python/py-infthread.c (thread_object_getset): Likewise.
15002 * python/py-lazy-string.c (lazy_string_object_getset): Likewise.
15003 * python/py-linetable.c (linetable_entry_object_getset): Likewise.
15004 * python/py-objfile.c (objfile_getset): Likewise.
15005 * python/py-progspace.c (pspace_getset): Likewise.
15006 * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset):
15008 * python/py-record.c (recpy_record_getset): Likewise.
15009 * python/py-symbol.c (symbol_object_getset): Likewise.
15010 * python/py-symtab.c (symtab_object_getset, sal_object_getset):
15012 * python/py-type.c (type_object_getset, field_object_getset):
15014 * python/py-value.c (value_object_getset): Likewise.
15016 2017-04-05 Pedro Alves <palves@redhat.com>
15018 * python/python-internal.h (gdb_PyObject_CallMethod)
15019 (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath):
15021 (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException)
15022 (PySys_GetObject, PySys_SetPath): New macros.
15024 2017-04-05 Pedro Alves <palves@redhat.com>
15026 * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of
15027 info_osdata_command.
15028 * osdata.c (info_osdata_command): Rename to ...
15029 (info_osdata): ... this. Constify 'type' parameter, and remove
15030 the 'from_tty' parameter. Accept NULL TYPE.
15031 (info_osdata_command): New function.
15032 * osdata.h (info_osdata_command): Remove declaration.
15033 (info_osdata): New declaration.
15035 2017-04-05 Pedro Alves <palves@redhat.com>
15037 * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert)
15038 (mi_cmd_dprintf_insert, mi_cmd_break_passcount)
15039 (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command'
15041 * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception)
15042 (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter.
15043 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command'
15045 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path)
15046 (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show)
15047 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
15048 (mi_cmd_file_list_exec_source_files)
15049 (mi_cmd_file_list_shared_libraries): Constify 'command' parameter.
15050 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
15051 (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command'
15053 * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters)
15054 (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth)
15055 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
15056 (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame)
15057 (mi_cmd_stack_info_frame): Constify 'command' parameter.
15058 * mi/mi-cmd-target.c (mi_cmd_target_file_get)
15059 (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify
15060 'command' parameter.
15061 * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete)
15062 (mi_cmd_var_set_format, mi_cmd_var_set_visualizer)
15063 (mi_cmd_var_set_frozen, mi_cmd_var_show_format)
15064 (mi_cmd_var_info_num_children, mi_cmd_var_list_children)
15065 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
15066 (mi_cmd_var_info_expression, mi_cmd_var_show_attributes)
15067 (mi_cmd_var_evaluate_expression, mi_cmd_var_assign)
15068 (mi_cmd_var_update, mi_cmd_enable_pretty_printing)
15069 (mi_cmd_var_set_update_range): Constify 'command' parameter.
15070 * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter.
15071 * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command'
15073 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next)
15074 (mi_cmd_exec_next_instruction, mi_cmd_exec_step)
15075 (mi_cmd_exec_step_instruction, mi_cmd_exec_finish)
15076 (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue)
15077 (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach)
15078 (mi_cmd_target_flash_erase, mi_cmd_thread_select)
15079 (mi_cmd_thread_list_ids, mi_cmd_thread_info)
15080 (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names)
15081 (mi_cmd_data_list_changed_registers)
15082 (mi_cmd_data_write_register_values)
15083 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
15084 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory)
15085 (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings)
15086 (mi_cmd_list_features, mi_cmd_list_target_features)
15087 (mi_cmd_add_inferior, mi_cmd_remove_inferior)
15088 (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables)
15089 (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start)
15090 (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info)
15091 (mi_cmd_trace_frame_collected): Constify 'command'
15093 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify
15094 'command' parameter.
15096 2017-04-05 Pedro Alves <palves@redhat.com>
15098 * ada-lang.c (ada_completer_word_break_characters): Now a const
15100 (ada_get_gdb_completer_word_break_characters): Constify.
15101 * completer.c (gdb_completer_command_word_break_characters)
15102 (gdb_completer_file_name_break_characters)
15103 (gdb_completer_quote_characters): Now const arrays.
15104 (get_gdb_completer_quote_characters): Constify.
15105 (set_rl_completer_word_break_characters): New function.
15106 (set_gdb_completion_word_break_characters)
15107 (complete_line_internal): Use it.
15108 * completer.h (get_gdb_completer_quote_characters): Constify.
15109 (set_rl_completer_word_break_characters): Declare.
15110 * f-lang.c (f_word_break_characters): Constify.
15111 * language.c (default_word_break_characters): Constify.
15112 * language.h (language_defn::la_word_break_characters): Constify.
15113 (default_word_break_characters): Constify.
15114 * top.c (init_main): Use set_rl_completer_word_break_characters.
15116 2017-04-05 Pedro Alves <palves@redhat.com>
15118 * aix-thread.c (aix_thread_pid_to_str)
15119 (aix_thread_extra_thread_info): Constify.
15120 * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
15121 * bsd-uthread.c (bsd_uthread_extra_thread_info)
15122 (bsd_uthread_pid_to_str): Constify.
15123 * corelow.c (core_pid_to_str): Constify.
15124 * darwin-nat.c (darwin_pid_to_str): Constify.
15125 * fbsd-nat.c (fbsd_pid_to_str): Constify.
15126 * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
15128 * gnu-nat.c (gnu_pid_to_str): Constify.
15129 * go32-nat.c (go32_pid_to_str): Constify.
15130 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
15131 * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
15132 * inferior.c (inferior_pid_to_str): Constify.
15133 * linux-nat.c (linux_nat_pid_to_str): Constify.
15134 * linux-tdep.c (linux_core_pid_to_str): Constify.
15135 * linux-thread-db.c (thread_db_pid_to_str)
15136 (thread_db_extra_thread_info): Constify.
15137 * nto-tdep.c (nto_extra_thread_info): Constify.
15138 * nto-tdep.h (nto_extra_thread_info): Constify.
15139 * obsd-nat.c (obsd_pid_to_str): Constify.
15140 * procfs.c (procfs_pid_to_str): Constify.
15141 * ravenscar-thread.c (ravenscar_extra_thread_info)
15142 (ravenscar_pid_to_str): Constify.
15143 * remote-sim.c (gdbsim_pid_to_str): Constify.
15144 * remote.c (remote_threads_extra_info, remote_pid_to_str):
15146 * sol-thread.c (solaris_pid_to_str): Constify.
15147 * sol2-tdep.c (sol2_core_pid_to_str): Constify.
15148 * sol2-tdep.h (sol2_core_pid_to_str): Constify.
15149 * target.c (default_pid_to_str, target_pid_to_str)
15150 (normal_pid_to_str, default_pid_to_str): Constify.
15151 * target.h (target_ops::to_pid_to_str)
15152 (target_ops::to_extra_thread_info): Constify.
15153 (target_pid_to_str, normal_pid_to_str): Constify.
15154 * windows-nat.c (windows_pid_to_str): Constify.
15155 * gdbarch.sh (core_pid_to_str): Constify.
15156 * target-delegates.c: Regenerate.
15157 * gdbarch.h, gdbarch.c: Regenerate.
15159 2017-04-05 Pedro Alves <palves@redhat.com>
15161 * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
15162 the memory of the temporary warning_pre_print override.
15163 * utils.c (warning_pre_print): Constify.
15164 * utils.h (warning_pre_print): Constify.
15166 2017-04-05 Pedro Alves <palves@redhat.com>
15168 * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
15169 (shell_command): New function.
15170 (make_command): Use std::string.
15171 (init_cli_cmds): Register shell_command instead of shell_escape.
15173 2017-04-05 Pedro Alves <palves@redhat.com>
15175 * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
15176 * tracepoint.c (default_collect): Don't initialize.
15178 2017-04-05 Pedro Alves <palves@redhat.com>
15180 * macroexp.c (macro_buffer::shared): Now a bool.
15181 (init_buffer): Update.
15182 (init_shared_buffer): Constify 'addr' parameter.
15183 (substitute_args, expand, macro_expand, macro_expand_next): Remove
15186 2017-04-05 Pedro Alves <palves@redhat.com>
15188 * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
15189 * disasm.c (set_disassembler_options): Constify local.
15190 * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
15192 2017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
15195 * tracefile.c (tsave_command): Fix argument parsing for '-r'
15198 2017-04-05 Yao Qi <yao.qi@linaro.org>
15200 * frame.c (frame_unwind_register_unsigned): Call
15201 frame_unwind_register_value.
15203 2017-04-05 Yao Qi <yao.qi@linaro.org>
15205 * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
15206 Use gdb_test_multiple, and don't match anchor.
15208 2017-04-05 Pedro Alves <palves@redhat.com>
15210 * MAINTAINERS (Global Maintainers): Add Simon Marchi.
15211 (Write After Approval): Remove Simon Marchi.
15213 2017-04-05 Pedro Alves <palves@redhat.com>
15215 * common/gdb_optional.h (optional::optional): Make constexpr and
15216 initialize m_dummy.
15218 2017-04-04 John Baldwin <jhb@FreeBSD.org>
15220 * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
15221 (amd64fbsd_jmp_buf_reg_offset): Remove.
15222 (amd64fbsd_supply_uthread): Remove function.
15223 (amd64fbsd_collect_uthread): Remove function.
15224 (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
15225 * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
15226 (x86_64-*-freebsd*): Remove bsd-uthread.o.
15227 (fbsd-nat.c): Update comment.
15228 * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
15229 (i386fbsd_jmp_buf_reg_offset): Remove.
15230 (i386fbsd_supply_uthread): Remove function.
15231 (i386fbsd_collect_uthread): Remove function.
15232 (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
15234 2017-04-04 John Baldwin <jhb@FreeBSD.org>
15236 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
15237 (ALLDEPFILES): Remove alpha-fbsd-tdep.c
15238 * NEWS: Mention that support for FreeBSD/alpha was removed.
15239 * alpha-fbsd-tdep.c: Delete file.
15240 * config/alpha/fbsd.mh: Delete file.
15241 * configure.host: Delete alpha*-*-freebsd* and
15242 alpha*-*-kfreebsd*-gnu.
15243 * configure.tgt: Delete alpha*-*-freebsd* and
15244 alpha*-*-kfreebsd*-gnu.
15246 2017-04-04 John Baldwin <jhb@FreeBSD.org>
15248 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
15249 amd64bsd_store_inferior_registers): Use ptid from regcache.
15251 2017-04-04 Pedro Alves <palves@redhat.com>
15253 * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
15254 data fields, make them private and add "m_" prefixes.
15255 (lnp_state_machine::lnp_state_machine): New ctor.
15256 (record_line, check_line_address, handle_set_discriminator)
15257 (handle_set_address, handle_advance_pc, handle_special_opcode)
15258 (handle_advance_line, handle_set_file, handle_negate_stmt)
15259 (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
15260 (end_sequence, advance_line): New methods.
15261 (m_gdbarch, m_record_lines_p): New fields.
15262 (lnp_reader_state): Delete.
15263 (dwarf_record_line): Rename to ...
15264 (lnp_state_machine::record_line): ... adjust.
15265 (init_lnp_state_machine): Delete.
15266 (lnp_state_machine::lnp_state_machine): New.
15267 (check_line_address): Rename to ...
15268 (lnp_state_machine::check_line_address): This.
15269 (dwarf_decode_lines_1): Remove reference to "reader_state".
15270 Adjust lnp_state_machine having a non-default ctor. Use bool.
15271 State machine internal state manipulation moved to
15272 lnp_state_machine methods.
15274 2017-04-04 Pedro Alves <palves@redhat.com>
15276 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
15277 unittests/offset-type-selftests.c.
15278 (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
15279 * common/offset-type.h: New file.
15280 * common/preprocessor.h: New file.
15281 * common/traits.h: New file.
15282 * common/valid-expr.h: New file.
15283 * dwarf2expr.c: Include "common/underlying.h". Adjust to use
15284 sect_offset and cu_offset strong typedefs throughout.
15285 * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
15286 typedefs throughout.
15287 * dwarf2loc.c: Include "common/underlying.h". Adjust to use
15288 sect_offset and cu_offset strong typedefs throughout.
15289 * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
15290 typedefs throughout.
15291 * gdbtypes.h: Include "common/offset-type.h".
15292 (cu_offset): Now an offset type (strong typedef) instead of a
15294 (sect_offset): Likewise.
15295 (union call_site_parameter_u): Rename "param_offset" field to
15297 * unittests/offset-type-selftests.c: New file.
15299 2017-04-04 Pedro Alves <palves@redhat.com>
15301 * common/underlying.h: New file.
15302 * dwarf2read.c: Include "common/gdb_optional.h" and
15303 "common/underlying.h".
15304 (dir_index, file_name_index): New types.
15305 (file_entry): Use them.
15306 (file_entry::include): Use to_underlying.
15307 (line_header::add_file_name): Use dir_index.
15308 (read_formatted_entries): Use gdb::optional. Read form before
15309 writting to file_entry.
15310 (dwarf_decode_line_header): Use dir_index.
15311 (lnp_state_machine::current_file): Use to_underlying.
15312 (lnp_state_machine::file): Change type to file_name_index.
15313 (dwarf_record_line): Use to_underlying.
15314 (init_lnp_state_machine): Use file_name_index.
15315 (dwarf_decode_lines_1): Use dir_index and file_name_index.
15317 2017-04-04 Pedro Alves <palves@redhat.com>
15319 * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
15320 operator bool, has_value and get methods.
15322 2017-04-04 Pedro Alves <palves@redhat.com>
15324 * dwarf2read.c (struct file_entry): Add ctors, and initialize all
15326 (line_header): Initialize all data fields. Change type of
15327 standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
15328 Change type of include_dirs to std::vector<const char *>. Remove
15329 num_include_dirs, include_dirs_size. Change type of file_names to
15330 std::vector<file_entry>. Remove num_file_names, file_names_size.
15331 (line_header::line_header): New.
15332 (line_header::add_include_dir, line_header::add_file_name): New
15334 (line_header::include_dir_at): Remove NULL check.
15335 (line_header::file_name_at): Add const overload.
15336 (line_header_up): New unique_ptr typedef.
15337 (dw2_get_file_names_reader): Use line_header_up. Adjust to use
15338 std::vector. Remove free_line_header call.
15339 (dwarf2_build_include_psymtabs): Use line_header_up. Remove
15340 free_line_header call.
15341 (free_cu_line_header): Delete.
15342 (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
15343 (setup_type_unit_groups): Use line_header_up instead of cleanups.
15344 Adjust to use std::vector.
15345 (free_line_header): Delete.
15346 (free_line_header_voidp): Use delete.
15347 (add_include_dir): Replace with ...
15348 (line_header::add_include_dir): ... this method. Use std::vector.
15349 (add_file_name): Replace with ...
15350 (line_header::add_file_name): ... this method. Use std::vector.
15351 (add_include_dir_stub): Delete.
15352 (read_formatted_entries): Remove memset.
15353 (dwarf_decode_line_header): Return a line_header_up instead of a
15354 raw pointer. Remove cleanup handling. Pass lambdas to
15355 read_formatted_entries. Adjust to use line_header methods.
15356 (dwarf_decode_lines_1): Adjust to use line_header methods.
15357 (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
15360 2017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
15362 * remote.c (set_general_thread, set_continue_thread): Use ptid_t
15363 instead of struct ptid.
15365 2017-05-04 Alan Hayward <alan.hayward@arm.com>
15367 * frame.c (get_frame_register_bytes): Unwind using value.
15368 (put_frame_register_bytes): Likewise.
15370 2017-03-30 Iain Buclaw <ibuclaw@gdcproject.org>
15372 * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
15375 2017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
15377 * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
15379 2017-03-29 Yao Qi <yao.qi@linaro.org>
15381 * gdbthread.h (struct thread_info): Declare constructor and
15382 destructor. Add some in-class member initializers.
15383 * thread.c (free_thread): Remove.
15384 (init_thread_list): Call delete instead of free_thread.
15385 (new_thread): Call thread_info constructor.
15386 (thread_info::thread_info): New function.
15387 (thread_info::~thread_info): New function.
15388 (delete_thread_1): Call delete instead of free_thread.
15389 (make_cleanup_restore_current_thread): Move tp and frame to
15392 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
15394 * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
15395 (arc_skip_prologue): Likewise.
15396 (arc_make_frame_cache): Likewise.
15397 (arc_pv_get_operand): New function.
15398 (arc_is_in_prologue): Likewise.
15399 (arc_analyze_prologue): Likewise.
15400 (arc_print_frame_cache): Likewise.
15401 (MAX_PROLOGUE_LENGTH): New constant.
15403 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
15405 * configure.tgt: Add arc-insn.o.
15406 * arc-tdep.c (arc_delayed_print_insn): Make non-static.
15407 (dump_arc_instruction_command): New function.
15408 (arc_fprintf_disasm): Likewise.
15409 (arc_disassemble_info): Likewise.
15410 (arc_insn_get_operand_value): Likewise.
15411 (arc_insn_get_operand_value_signed): Likewise.
15412 (arc_insn_get_memory_base_reg): Likewise.
15413 (arc_insn_get_memory_offset): Likewise.
15414 (arc_insn_get_branch_target): Likewise.
15415 (arc_insn_dump): Likewise.
15416 (arc_insn_get_linear_next_pc): Likewise.
15417 * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
15418 (arc_disassemble_info): Likewise.
15419 (arc_insn_get_branch_target): Likewise.
15420 (arc_insn_get_linear_next_pc): Likewise.
15421 * NEWS: Mention new "maint print arc arc-instruction".
15423 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
15425 * arc-tdep (maintenance_print_arc_list): New variable.
15426 (maintenance_print_arc_command): New function.
15428 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
15430 * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
15431 Add "limm" and "reserved".
15432 (arc_cannot_fetch_register, arc_cannot_store_register): Add
15433 ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
15434 * arc-tdep.h (arc_regnum): Likewise.
15436 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
15438 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
15439 for THREADPTR register.
15440 (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
15442 * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
15443 (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
15444 * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
15446 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
15448 * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
15449 registers above gdbarch_num_regs (gdbarch) as privileged in
15452 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
15454 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
15455 for a single specified register or for all registers in
15456 a0_base..a0_base + C0_NREGS range.
15457 (supply_gregset_reg): Call regcache_raw_supply for a single
15458 specified register or for all registers in a0_base..a0_base +
15461 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
15463 * arch/xtensa.h (C0_NREGS): Add definition.
15464 * xtensa-tdep.c (C0_NREGS): Remove definition.
15466 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
15468 * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
15469 Drop xtensa_default_isa initialization.
15470 (xtensa_gdbarch_init): Initialize xtensa_default_isa.
15472 2017-03-27 Pedro Alves <palves@redhat.com>
15474 * dwarf2read.c (file_entry) <dir_index>: Add comment.
15475 (file_entry::include_dir): New method.
15476 (line_header::include_dir_at, line_header::file_name_at): New
15478 (setup_type_unit_groups, setup_type_unit_groups)
15479 (psymtab_include_file_name): Simplify using the new methods.
15480 (lnp_state_machine) <the_line_header>: New field.
15481 <file>: Add comment.
15482 (lnp_state_machine::current_file): New method.
15483 (dwarf_record_line): Simplify using the new methods.
15484 (init_lnp_state_machine): Initialize the "the_line_header" field.
15485 (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
15486 Simplify using the new methods.
15488 2017-03-27 Pedro Alves <palves@redhat.com>
15490 * cp-name-parser.y (make_empty): Delete.
15491 (demangler_special, nested_name, ptr_operator, array_indicator)
15492 (direct_declarator, declarator_1): Use fill_comp instead of
15495 2017-03-27 Pedro Alves <palves@redhat.com>
15497 * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
15498 to ATTRIBUTE_PRINTF.
15499 * solib-target.c (library_list_start_list): Print "string" not
15501 * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
15502 gdb_xml_error call.
15504 2017-03-27 Pedro Alves <palves@redhat.com>
15506 * dwarf2read.c (struct file_and_directory): New.
15507 (dwarf2_get_dwz_file): Adjust to use std::string.
15508 (dw2_get_file_names_reader): Adjust to use file_and_directory.
15509 (find_file_and_directory): Adjust to return a file_and_directory
15511 (read_file_scope): Adjust to use file_and_directory. Remove
15512 make_cleanup/do_cleanups calls.
15513 (open_and_init_dwp_file): Adjust to use std::string. Remove
15514 make_cleanup/do_cleanups calls.
15515 * python/python.c (do_start_initialization): Adjust to ldirname
15516 returning a std::string.
15517 * utils.c (ldirname): Now returns a std::string.
15518 * utils.h (ldirname): Change return type to std::string.
15519 * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
15520 returning a std::string.
15521 * xml-tdesc.c (file_read_description_xml): Likewise.
15523 2017-03-24 Alan Hayward <alan.hayward@arm.com>
15525 * regcache.c (regcache_debug_print_register): New function.
15526 * regcache.h (regcache_debug_print_register): New declaration.
15527 * target.c (debug_print_register): Remove.
15528 (target_fetch_registers): Call regcache_debug_print_register.
15529 (target_store_registers): Likewise.
15531 2017-03-24 Pádraig Brady <pbrady@fb.com>
15533 * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
15534 reference beyond the 'lh->include_dirs' array before accessing to
15536 (psymtab_include_file_name): Likewise.
15537 (dwarf_decode_lines_1): Likewise.
15538 (dwarf_decode_lines): Likewise.
15539 (file_file_name): Likewise.
15541 2017-03-23 Simon Marchi <simon.marchi@ericsson.com>
15543 * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
15545 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
15546 ps_lsetfpregs): Likewise.
15547 * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
15548 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
15549 ps_lsetfpregs): Likewise.
15550 * target.c (target_fetch_registers, target_store_registers):
15553 2017-03-23 Alan Hayward <alan.hayward@arm.com>
15555 * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
15557 2017-03-23 Yao Qi <yao.qi@linaro.org>
15559 * aarch64-tdep.c (aarch64_process_record_test): Declare.
15560 (_initialize_aarch64_tdep): Register it.
15561 (aarch64_record_load_store): Handle PRFM instruction.
15562 (aarch64_process_record_test): New function.
15564 2017-03-23 Yao Qi <yao.qi@linaro.org>
15566 * aarch64-tdep.c (aarch64_record_load_store): Fix code
15569 2017-03-23 Yao Qi <yao.qi@linaro.org>
15571 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
15573 2017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
15575 python/python.c (do_start_initialization): Fix memory leak.
15577 2017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
15579 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
15580 using get_ptrace_pid.
15581 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
15583 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
15584 inferior_ptid instead of pid.
15586 2017-03-22 Yao Qi <yao.qi@linaro.org>
15588 * aarch64-tdep.c: Wrap locally used classes in anonymous
15590 * arm-tdep.c: Likewise.
15591 * linespec.c: Likewise.
15592 * ui-out.c: Likewise.
15594 2017-03-22 Jonah Graham <jonah@kichwacoders.com>
15597 * python/lib/gdb/printer/bound_registers.py: Import sys.
15599 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
15601 * windows-nat.c (do_windows_fetch_inferior_registers): Add
15602 windows_thread_info parameter and use it instead of
15604 (windows_fetch_inferior_registers): Don't set current_thread,
15605 pass the thread to do_windows_fetch_inferior_registers. Use
15606 ptid from regcache instead of inferior_ptid.
15607 (do_windows_store_inferior_registers): Add windows_thread_info
15608 parameter and use it instead of current_thread.
15609 (windows_store_inferior_registers): Don't set current_thread,
15610 pass the thread to do_windows_store_inferior_registers. Use
15611 ptid from regcache instead of inferior_ptid.
15613 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
15615 * ser-mingw.c (ser_windows_raw): Remove reference to
15616 struct serial::current_timeout.
15618 2017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
15621 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
15622 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
15623 (sparc64_fsr_type): Fix %fsr decoding.
15625 2017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
15627 * python/py-record-btrace.c (btpy_insn_data): Change return type
15630 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
15632 * spu-linux-nat.c (spu_fetch_inferior_registers,
15633 spu_store_inferior_registers): Use ptid from regcache, set and
15634 restore inferior_ptid.
15635 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
15638 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
15640 * i386-linux-nat.c (fetch_register, store_register,
15641 i386_linux_fetch_inferior_registers,
15642 i386_linux_store_inferior_registers): Use ptid from regcache.
15643 * ia64-linux-nat.c (ia64_linux_fetch_register,
15644 ia64_linux_store_register): Likewise.
15645 * inf-ptrace.c (inf_ptrace_fetch_register,
15646 inf_ptrace_store_register): Likewise.
15647 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
15648 m32r_linux_store_inferior_registers): Likewise.
15649 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
15650 m68kbsd_store_inferior_registers): Likewise.
15651 * m68k-linux-nat.c (fetch_register, store_register,
15652 m68k_linux_fetch_inferior_registers,
15653 m68k_linux_store_inferior_registers): Likewise.
15654 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
15655 m88kbsd_store_inferior_registers): Likewise.
15656 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
15657 mips_fbsd_store_inferior_registers): Likewise.
15658 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
15659 mips64_linux_regsets_store_registers): Likewise.
15660 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
15661 mipsnbsd_store_inferior_registers): Likewise.
15662 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
15663 mips64obsd_store_inferior_registers): Likewise.
15664 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
15666 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
15667 ppcfbsd_store_inferior_registers): Likewise.
15668 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
15669 ppc_linux_store_inferior_registers): Likewise.
15670 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
15671 ppcnbsd_store_inferior_registers): Likewise.
15672 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
15673 ppcobsd_store_registers): Likewise.
15674 * procfs.c (procfs_fetch_registers, procfs_store_registers):
15676 * ravenscar-thread.c (ravenscar_fetch_registers,
15677 ravenscar_store_registers, ravenscar_prepare_to_store):
15679 * record-btrace.c (record_btrace_fetch_registers,
15680 record_btrace_store_registers, record_btrace_prepare_to_store):
15682 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
15683 Lookup inferior using ptid from regcache, instead of
15685 * remote.c (remote_fetch_registers, remote_store_registers): Use
15686 ptid from regcache.
15687 * rs6000-nat.c (fetch_register, store_register): Likewise.
15688 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
15689 s390_linux_store_inferior_registers): Likewise.
15690 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
15691 shnbsd_store_inferior_registers): Likewise.
15692 * sol-thread.c (sol_thread_fetch_registers,
15693 sol_thread_store_registers): Likewise.
15694 * sparc-nat.c (sparc_fetch_inferior_registers,
15695 sparc_store_inferior_registers): Likewise.
15696 * tilegx-linux-nat.c (fetch_inferior_registers,
15697 store_inferior_registers): Likewise.
15698 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
15699 vaxbsd_store_inferior_registers): Likewise.
15700 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
15701 store_xtregs): Likewise.
15703 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15706 * NEWS: Mention support for rvalue references in GDB and python.
15707 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
15708 supports both lvalue and rvalue references.
15710 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15713 * gdbtypes.c (rank_one_type): Implement overloading
15714 resolution rules regarding rvalue references.
15716 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15719 * aarch64-tdep.c (aarch64_type_align)
15720 (aarch64_extract_return_value, aarch64_store_return_value): Change
15721 lvalue reference type checks to general reference type checks.
15722 * amd64-tdep.c (amd64_classify): Likewise.
15723 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
15725 * arm-tdep.c (arm_type_align, arm_extract_return_value)
15726 (arm_store_return_value): Likewise.
15727 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
15728 * c-typeprint.c (c_print_type): Likewise.
15729 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
15730 (cplus_number_of_children, cplus_describe_child): Likewise.
15731 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
15732 * completer.c (expression_completer): Likewise.
15733 * cp-support.c (make_symbol_overload_list_adl_namespace):
15735 * darwin-nat-info.c (info_mach_region_command): Likewise.
15736 * dwarf2loc.c (entry_data_value_coerce_ref)
15737 (value_of_dwarf_reg_entry): Likewise.
15738 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
15739 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
15741 * findvar.c (extract_typed_address, store_typed_address):
15743 * gdbtypes.c (rank_one_type): Likewise.
15744 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
15745 * infcall.c (value_arg_coerce): Likewise.
15746 * language.c (pointer_type): Likewise.
15747 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
15749 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
15750 * mn10300-tdep.c (mn10300_type_align): Likewise.
15751 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
15752 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
15753 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
15755 * printcmd.c (print_formatted, x_command): Likewise.
15756 * python/py-type.c (typy_get_composite, typy_template_argument):
15758 * python/py-value.c (valpy_referenced_value)
15759 (valpy_get_dynamic_type, value_has_field): Likewise.
15760 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
15761 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
15762 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
15763 * spu-tdep.c (spu_scalar_value_p): Likewise.
15764 * symtab.c (lookup_symbol_aux): Likewise.
15765 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
15766 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
15768 * valops.c (value_cast_pointers, value_cast)
15769 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
15770 (value_struct_elt, value_struct_elt_bitpos)
15771 (value_find_oload_method_list, find_overload_match)
15772 (value_rtti_indirect_type): Likewise.
15773 * valprint.c (val_print_scalar_type_p, generic_val_print):
15775 * value.c (value_actual_type, value_as_address, unpack_long)
15776 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
15777 (coerce_ref): Likewise.
15778 * varobj.c (varobj_get_value_type): Likewise.
15780 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15783 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
15784 table of constants.
15785 * python/lib/gdb/command/explore.py: Support exploring values
15786 of rvalue reference types.
15787 * python/lib/gdb/types.py: Implement get_basic_type() for
15788 rvalue reference types.
15789 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
15791 * python/py-value.c (valpy_getitem): Add an rvalue reference
15793 (valpy_reference_value): Add new parameter "refcode".
15794 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
15795 New wrappers for valpy_reference_value().
15796 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
15797 (gdbpy_invoke_xmethod): Likewise.
15799 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15802 * dwarf2read.c (process_die, read_type_die_1): Handle the
15803 DW_TAG_rvalue_reference_type DIE.
15804 (read_tag_reference_type): Add new parameter "refcode".
15806 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15809 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
15810 (c_type_print_modifier, c_type_print_varspec_suffix)
15811 (c_type_print_base): Support printing rvalue reference types.
15812 * c-valprint.c (c_val_print, c_value_print): Support printing
15813 rvalue reference values.
15815 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15818 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
15820 * cp-support.c (replace_typedefs): Handle
15821 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
15822 * python/py-type.c (typy_lookup_type): Likewise.
15824 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15827 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
15828 * parse.c (insert_type): Change assert statement.
15829 (follow_types): Handle rvalue reference types.
15830 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
15833 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15836 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
15837 value_ref() interface.
15838 * c-valprint.c (c_value_print): Likewise.
15839 * infcall.c (value_arg_coerce): Likewise.
15840 * python/py-value.c (valpy_reference_value): Likewise.
15841 * valops.c (value_cast, value_reinterpret_cast)
15842 (value_dynamic_cast, typecmp): Likewise.
15843 (value_ref): Parameterize by kind of return value reference type.
15844 * value.h (value_ref): Add new parameter "refcode".
15846 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15849 * dwarf2read.c (read_tag_reference_type): Use
15850 lookup_lvalue_reference_type() instead of lookup_reference_type().
15851 * eval.c (evaluate_subexp_standard): Likewise.
15852 * f-exp.y: Likewise.
15853 * gdbtypes.c (make_reference_type, lookup_reference_type):
15854 Generalize with rvalue reference types.
15855 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
15856 convenience wrappers for lookup_reference_type().
15857 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
15858 reference kind parameter.
15859 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
15860 wrappers for lookup_reference_type().
15861 * guile/scm-type.c (gdbscm_type_reference): Use
15862 lookup_lvalue_reference_type() instead of lookup_reference_type().
15863 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
15864 * parse.c (follow_types): Likewise.
15865 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
15866 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
15868 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
15869 (gdbpy_invoke_xmethod): Likewise.
15870 * stabsread.c: Provide extra argument to make_reference_type()
15872 * valops.c (value_ref, value_rtti_indirect_type): Use
15873 lookup_lvalue_reference_type() instead of lookup_reference_type().
15875 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15878 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
15879 (TYPE_IS_REFERENCE): New macro.
15880 (struct type): Add rvalue_reference_type field.
15881 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
15883 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
15885 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
15886 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
15887 New function definition.
15888 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
15889 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
15890 New function declaration.
15891 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
15892 * mi/mi-interp.h: New file.
15893 * solib.c (info_sharedlibrary_command): Replace for loop with
15895 * solib.h (update_solib_list): New function declaration.
15896 (so_list_head): Move macro.
15897 * solist.h (ALL_SO_LIBS): New macro.
15899 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
15901 * infcmd.c (post_create_inferior): Remove unused argument in
15903 * remote.c (remote_start_remote): Likewise.
15904 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
15905 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
15906 (enable_break): Likewise.
15907 * solib.c (update_solib_list): Remove unused target argument
15908 and its documentation.
15909 (solib_add): Remove unused target argument. Remove unused
15910 argument in call to update_solib_list.
15911 (info_sharedlibrary_command): Remove unused argument in call
15912 to update_solib_list.
15913 (sharedlibrary_command): Remove unused argument in call to
15915 (handle_solib_event): Likewise.
15916 (reload_shared_libraries): Likewise.
15917 * solib.h (solib_add): Remove unused target argument.
15919 2017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
15921 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
15922 (s390_displaced_step_fixup): Cover relative branches with the
15923 default fixup handling. This fixes lack of support for some
15924 relative branch instructions.
15926 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15928 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
15929 ptid from regcache.
15931 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15933 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
15934 i386_darwin_store_inferior_registers): Use ptid from regcache.
15936 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15938 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
15939 i386bsd_store_inferior_registers): Use ptid from regcache.
15941 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15943 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
15944 hppaobsd_store_registers): Use ptid from regcache.
15946 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15948 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
15949 hppanbsd_store_registers): Use ptid from regcache.
15951 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15953 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
15954 from regcache. Use get_ptrace_pid.
15956 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15958 * corelow.c (get_core_register_section): Use ptid from regcache,
15961 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15963 * bsd-uthread.c (bsd_uthread_fetch_registers,
15964 bsd_uthread_store_registers): Use ptid from regcache, set and
15965 restore inferior_ptid.
15967 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15969 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
15970 fetch_fp_regs, store_register, store_regs, store_fp_register,
15971 store_fp_regs): Use ptid from regcache.
15973 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15975 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
15976 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
15977 store_vfp_regs): Use ptid from regcache.
15979 2017-03-17 Pedro Alves <palves@redhat.com>
15982 * ser-base.c (ser_base_wait_for): Add comment.
15983 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
15985 * ser-unix.c (hardwire_raw): Remove reference to
15986 scb->current_timeout.
15987 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
15988 (hardwire_ops): Install ser_base_readchar instead of
15990 * serial.h (struct serial) <current_timeout, timeout_remaining>:
15993 2017-03-17 Jonah Graham <jonah@kichwacoders.com>
15996 * python/lib/gdb/printer/bound_registers.py: Add support for
15999 2017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
16001 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
16002 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
16003 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
16004 byte_offset to subobj_byte_offset. Fix the handling of
16005 DWARF_VALUE_STACK on big-endian targets when coming via an
16007 (dwarf2_evaluate_loc_desc): Adjust call to
16008 dwarf2_evaluate_loc_desc_full.
16009 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
16010 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
16012 2017-03-16 Yao Qi <yao.qi@linaro.org>
16014 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
16015 and REVSH instructions.
16017 2017-03-16 Yao Qi <yao.qi@linaro.org>
16019 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
16020 (arm_record_test): Declare.
16021 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
16022 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
16023 align with the manual.
16024 (thumb_record_misc): Adjust the code order to align with the
16026 (thumb2_record_decode_insn_handler): Fix instruction matching.
16027 (instruction_reader_thumb): New class.
16028 (arm_record_test): New function.
16030 2017-03-16 Yao Qi <yao.qi@linaro.org>
16032 * arm-tdep.c (abstract_memory_reader): New class.
16033 (instruction_reader): New class.
16034 (extract_arm_insn): Add argument 'reader'. Callers updated.
16035 (decode_insn): Likewise.
16037 2017-03-16 Doug Evans <dje@google.com>
16039 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
16040 member. Change type of TYPE member to SCM. All uses updated.
16041 (lsscm_make_lazy_string_smob): Add assert.
16042 (lsscm_make_lazy_string): Flag bad length values.
16043 (lsscm_elt_type): New function.
16044 (gdbscm_lazy_string_to_value): Rewrite to use
16045 lsscm_safe_lazy_string_to_value.
16046 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
16047 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
16048 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
16050 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
16051 * guile/scm-type.c (tyscm_scm_to_type): New function.
16053 2017-03-15 Doug Evans <dje@google.com>
16055 PR python/17728, python/18439, python/18779
16056 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
16057 member. Change type of TYPE member to PyObject *. All uses updated.
16058 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
16059 (gdbpy_create_lazy_string_object): Flag bad length values.
16060 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
16061 Handle typedefs in incoming type.
16062 (stpy_lazy_string_elt_type): New function.
16063 (gdbpy_extract_lazy_string): Call it.
16064 * python/py-value.c (valpy_lazy_string): Flag bad length values.
16065 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
16066 typedefs in incoming type.
16068 2017-03-16 Doug Evans <dje@google.com>
16070 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
16071 * guile/scm-type.c (tyscm_scm_to_type): New function.
16073 2017-03-16 Jiong Wang <jiong.wang@arm.com>
16075 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
16076 "ULONGEST" for "skip".
16078 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
16081 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
16082 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
16083 (inf_ptrace_peek_poke): ...here. New function. Now also loop
16084 over ptrace peek/poke until end of buffer or error.
16086 2017-03-14 Simon Marchi <simon.marchi@ericsson.com>
16088 * parse.c (length_of_subexp): Make static.
16089 * parser-defs.h (length_of_subexp): Remove.
16091 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
16093 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
16096 2017-03-14 Pedro Alves <palves@redhat.com>
16098 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
16099 (main): Use std::unique_ptr. Remove calls to
16100 cp_demangled_name_parse_free.
16102 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
16104 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
16105 alphabsd_store_inferior_registers): Use regcache->ptid instead
16108 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
16110 * aix-thread.c (aix_thread_fetch_registers,
16111 aix_thread_store_registers): Use regcache->ptid instead of
16114 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
16116 * aarch64-linux-nat.c (fetch_gregs_from_thread,
16117 store_gregs_to_thread, fetch_fpregs_from_thread,
16118 store_fpregs_to_thread): Use regcache->ptid instead of
16121 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
16123 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
16124 amd64_linux_fetch_inferior_registers): Use regcache->ptid
16125 instead of inferior_ptid.
16127 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
16129 * target.c (target_fetch_registers, target_store_registers): Add
16132 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
16134 * regcache.h (regcache_get_ptid): New function.
16135 * regcache.c (regcache_get_ptid): New function.
16137 2017-03-13 Mark Wielaard <mark@klomp.org>
16139 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
16141 2017-03-10 Keith Seitz <keiths@redhat.com>
16144 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
16146 2017-03-08 Pedro Alves <palves@redhat.com>
16149 * infrun.c (start_step_over, do_target_resume, resume)
16150 (restart_threads): Assert we're not resuming a thread that is
16151 meant to be stopped.
16152 (infrun_thread_stop_requested_callback): Delete.
16153 (infrun_thread_stop_requested): If the thread is internally
16154 stopped, queue a pending stop event and clear the thread's
16155 inline-frame state.
16156 (handle_stop_requested): New function.
16157 (handle_syscall_event, handle_inferior_event_1): Use
16158 handle_stop_requested.
16159 (handle_stop_requested): New function.
16160 (handle_signal_stop): Set the thread's stop_signal here instead of
16162 (finish_step_over): Clear step over info unconditionally.
16163 (handle_signal_stop): If the user had interrupted the event
16164 thread, consider the stop a random signal.
16165 (handle_signal_stop) <signal arrived while stepping over
16166 breakpoint>: Don't restart threads here.
16167 (stop_waiting): Don't clear step-over info here.
16169 2017-03-08 Pedro Alves <palves@redhat.com>
16172 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
16173 goes to argument 2, not 1.
16175 2017-03-08 Pedro Alves <palves@redhat.com>
16178 * top.c (gdb_readline_wrapper): Avoid passing NULL to
16179 display_gdb_prompt.
16180 (command_line_input): Add comment.
16182 2017-03-08 Pedro Alves <palves@redhat.com>
16185 * tui/tui-file.c (tui_file::write): New.
16186 * tui/tui-file.h (tui_file): Override "write".
16187 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
16188 factored out from ...
16189 (tui_puts): ... here.
16190 (tui_putc): Use them.
16191 (tui_write): New function.
16192 * tui/tui-io.h (tui_write): Declare.
16194 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
16196 * Makefile.in (SFILES): Replace "environ.c" with
16197 "common/environ.c".
16198 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
16199 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
16201 * common/environ.c: ... here.
16202 * environ.h: Moved to...
16203 * common/environ.h: ... here.
16205 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
16207 * gdbarch.sh (pstring_ptr): New static function.
16208 (gdbarch_disassembler_options): Use it.
16209 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
16210 not valid_disassembler_option->name.
16211 * gdbarch.c: Regenerate.
16213 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
16215 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
16217 2017-03-07 Pedro Alves <palves@redhat.com>
16219 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
16221 2017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
16223 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
16224 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
16225 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
16226 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
16228 2017-03-06 Simon Marchi <simon.marchi@ericsson.com>
16230 * xtensa-linux-nat.c (fetch_gregs): Remove const.
16232 2017-03-03 Simon Marchi <simon.marchi@ericsson.com>
16234 * remote.c (remote_add_target_side_commands): Use range-based
16237 2017-03-03 Yao Qi <yao.qi@linaro.org>
16240 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
16242 * valprint.c (common_val_print): Likewise.
16244 2017-02-28 Peter Bergner <bergner@vnet.ibm.com>
16246 * NEWS: Mention new set/show disassembler-options commands.
16247 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
16248 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
16249 (prospective_options): New static variable.
16250 (gdb_disassembler::gdb_disassembler): Initialize
16251 m_di.disassembler_options.
16252 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
16253 (get_disassembler_options): New function.
16254 (set_disassembler_options): Likewise.
16255 (set_disassembler_options_sfunc): Likewise.
16256 (show_disassembler_options_sfunc): Likewise.
16257 (disassembler_options_completer): Likewise.
16258 (_initialize_disasm): Likewise.
16259 * disasm.h (get_disassembler_options): New prototype.
16260 (set_disassembler_options): Likewise.
16261 * gdbarch.sh (gdbarch_disassembler_options): New variable.
16262 (gdbarch_verify_disassembler_options): Likewise.
16263 * gdbarch.c: Regenerate.
16264 * gdbarch.h: Likewise.
16265 * arm-tdep.c (num_disassembly_options): Delete.
16266 (set_disassembly_style): Likewise.
16267 (arm_disassembler_options): New static variable.
16268 (set_disassembly_style_sfunc): Convert short style name into long
16269 option name. Call set_disassembler_options.
16270 (show_disassembly_style_sfunc): New function.
16271 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
16272 set_gdbarch_verify_disassembler_options.
16273 (_initialize_arm_tdep): Delete regnames variable and update callers.
16274 (arm_disassembler_options): Initialize.
16275 (disasm_options): New variable.
16276 (num_disassembly_options): Rename from this...
16277 (num_disassembly_styles): ...to this. Compute by scanning through
16279 (valid_disassembly_styles): Initialize using disasm_options.
16280 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
16281 set_arm_regname_option.
16282 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
16283 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
16284 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
16285 set_gdbarch_verify_disassembler_options.
16286 * s390-tdep.c (s390_disassembler_options): New static variable.
16287 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
16288 set_gdbarch_verify_disassembler_options.
16290 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
16292 * remote.c (remote_add_target_side_condition): Remove "struct"
16293 keyword from range-based for loop.
16295 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
16297 * remote.c (remote_add_target_side_condition): Use range-based
16298 for loop. Update comment.
16300 2017-02-27 Yao Qi <yao.qi@linaro.org>
16302 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
16304 2017-02-26 Alan Hayward <alan.hayward@arm.com>
16306 * regcache.c (regcache_raw_update): New function.
16307 (regcache_raw_read): Move code to regcache_raw_update.
16308 * regcache.h (regcache_raw_update): New declaration.
16309 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
16311 2017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
16313 * dwarf2read.c (create_debug_type_hash_table): Initialize
16314 header.signature and header.type_offset_in_tu.
16316 2017-02-24 Pedro Alves <palves@redhat.com>
16318 * symtab.c (make_file_symbol_completion_list_1): Use
16319 add_symtab_completions.
16321 2017-02-24 Alan Hayward <alan.hayward@arm.com>
16323 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
16325 2017-02-24 Alan Hayward <alan.hayward@arm.com>
16327 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
16328 I386_MAX_REGISTER_SIZE.
16329 (i386_pseudo_register_write): Likewise.
16330 (i386_process_record): Likewise.
16331 * i387-tdep.c (i387_supply_xsave): Likewise.
16332 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
16333 (store_register): Likewise.
16335 2017-02-23 Pedro Alves <palves@redhat.com>
16337 * ada-lang.c: Include "common/function-view.h".
16338 (ada_iterate_over_symbols): Adjust to use function_view as
16340 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
16341 (ada_make_symbol_completion_list): Use a lambda.
16342 (ada_exc_search_name_matches): Delete.
16343 (name_matches_regex): New.
16344 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
16345 * compile/compile-c-support.c: Include "common/function-view.h".
16346 (print_one_macro): Change prototype to accept a ui_file pointer.
16347 (write_macro_definitions): Use a lambda.
16348 * dwarf2read.c: Include "common/function-view.h".
16349 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
16350 (dw2_expand_symtabs_matching): Adjust to use function_view as
16352 * language.h: Include "common/function-view.h".
16353 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
16354 function_view as callback type.
16355 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
16356 * linespec.c: Include "common/function-view.h".
16357 (collect_info::add_symbol): New method.
16358 (struct symbol_and_data_callback, iterate_inline_only, struct
16359 symbol_matcher_data, iterate_name_matcher): Delete.
16360 (iterate_over_all_matching_symtabs): Adjust to use function_view
16361 as callback type and lambdas.
16362 (iterate_over_file_blocks): Adjust to use function_view as
16364 (decode_compound_collector): Now a class with private fields.
16365 (decode_compound_collector::release_symbols): New method.
16366 (collect_one_symbol): Rename to...
16367 (decode_compound_collector::operator()): ... this and adjust.
16368 (lookup_prefix_sym): decode_compound_collector construction bits
16369 move to decode_compound_collector ctor. Pass the
16370 decode_compound_collector object directly as callback. Remove
16371 cleanups and use decode_compound_collector::release_symbols
16373 (symtab_collector): Now a class with private fields.
16374 (symtab_collector::release_symtabs): New method.
16375 (add_symtabs_to_list): Rename to...
16376 (symtab_collector::operator()): ... this and adjust.
16377 (collect_symtabs_from_filename): symtab_collector construction
16378 bits move to symtab_collector ctor. Pass the symtab_collector
16379 object directly as callback. Remove cleanups and use
16380 symtab_collector::release_symtabs instead.
16381 (collect_symbols): Delete.
16382 (add_matching_symbols_to_info): Use lambdas.
16383 * macrocmd.c (print_macro_callback): Delete.
16384 (info_macro_command): Use a lambda.
16385 (info_macros_command): Pass print_macro_definition as callable
16387 (print_one_macro): Remove 'ignore' parameter.
16388 (macro_list_command): Adjust.
16389 * macrotab.c (macro_for_each_data::fn): Now a function_view.
16390 (macro_for_each_data::user_data): Delete field.
16391 (foreach_macro): Adjust to call the function_view.
16392 (macro_for_each): Adjust to use function_view as callback type.
16393 (foreach_macro_in_scope): Adjust to call the function_view.
16394 (macro_for_each_in_scope): Adjust to use function_view as callback
16396 * macrotab.h: Include "common/function-view.h".
16397 (macro_callback_fn): Declare a prototype instead of a pointer.
16398 Remove "user_data" parameter.
16399 (macro_for_each, macro_for_each_in_scope): Adjust to use
16400 function_view as callback type.
16401 * psymtab.c (partial_map_expand_apply)
16402 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
16403 Adjust to use function_view as callback type and to return bool.
16404 (psym_expand_symtabs_matching): Adjust to use function_view as
16406 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
16407 to use function_view as callback type and to return bool.
16408 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
16410 * symfile.c (expand_symtabs_matching): Adjust to use function_view
16412 * symfile.h: Include "common/function-view.h".
16413 (expand_symtabs_file_matcher_ftype)
16414 (expand_symtabs_symbol_matcher_ftype)
16415 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
16417 (quick_symbol_functions::map_symtabs_matching_filename)
16418 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
16419 function_view as callback type and return bool.
16420 (expand_symtabs_matching): Adjust to use function_view as callback
16422 (maintenance_expand_name_matcher)
16423 (maintenance_expand_file_matcher): Delete.
16424 (maintenance_expand_symtabs): Use lambdas.
16425 * symtab.c (iterate_over_some_symtabs): Adjust to use
16426 function_view as callback types and return bool.
16427 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
16429 (lookup_symtab_callback): Delete.
16430 (lookup_symtab): Use a lambda.
16431 (iterate_over_symbols): Adjust to use function_view as callback
16433 (struct search_symbols_data, search_symbols_file_matches)
16434 (search_symbols_name_matches): Delete.
16435 (search_symbols): Use a pair of lambdas.
16436 (struct add_name_data, add_macro_name, symbol_completion_matcher)
16437 (symtab_expansion_callback): Delete.
16438 (default_make_symbol_completion_list_break_on_1): Use lambdas.
16439 * symtab.h: Include "common/function-view.h".
16440 (iterate_over_some_symtabs): Adjust to use function_view as
16441 callback type and return bool.
16442 (iterate_over_symtabs): Adjust to use function_view as callback
16444 (symbol_found_callback_ftype): Remove 'data' parameter and return
16446 (iterate_over_symbols): Adjust to use function_view as callback
16449 2017-02-23 Pedro Alves <palves@redhat.com>
16451 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
16452 (%.o) <unittests/%.c>: New pattern.
16453 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
16454 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
16455 * common/function-view.h: New file.
16456 * unittests/function-view-selftests.c: New file.
16457 * configure: Regenerate.
16459 2017-02-23 Simon Marchi <simon.marchi@ericsson.com>
16461 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
16463 * go32-nat.c (go32_thread_alive): Likewise.
16465 2017-02-23 Yao Qi <yao.qi@linaro.org>
16467 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
16470 2017-02-23 Yao Qi <yao.qi@linaro.org>
16472 * varobj.c (varobj_clear_saved_item): Use delete instead of
16474 (update_dynamic_varobj_children): Likewise.
16476 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
16478 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
16480 2017-02-21 Simon Marchi <simon.marchi@ericsson.com>
16482 * common/enum-flags.h (enum_flags::enum_flags): Initialize
16483 m_enum_value to 0 in default constructor.
16485 2017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
16487 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
16488 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
16489 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
16490 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
16491 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
16492 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
16493 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
16494 IS_STORE_CONDITIONAL_INSN.
16496 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
16498 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
16500 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16502 * NEWS (Changes since GDB 7.12): Add DWARF-5.
16504 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16506 * dwarf2read.c (skip_one_die, read_attribute_value)
16507 (dwarf2_const_value_attr, dump_die_shallow)
16508 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
16509 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
16511 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16513 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
16514 (dwarf_parse_macro_header): Accept DWARF version 5.
16515 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
16517 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16519 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
16521 * common/common-exceptions.h (enum errors): Likewise.
16522 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
16523 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
16524 (dwarf_expr_context::execute_stack_op): Likewise.
16525 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
16527 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
16528 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
16529 (show_entry_values_debug, call_site_to_target_addr)
16530 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
16531 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
16532 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
16533 (value_of_dwarf_block_entry, indirect_pieced_value)
16534 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
16535 (disassemble_dwarf_expression): Likewise.
16536 * dwarf2read.c (process_die, inherit_abstract_dies)
16537 (read_call_site_scope): Likewise.
16538 * gdbtypes.h (struct func_type, struct call_site_parameter)
16539 (struct call_site): Likewise.
16540 * stack.c (read_frame_arg): Likewise.
16541 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
16543 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16545 * defs.h (read_unsigned_leb128): New declaration.
16546 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
16547 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
16548 (dwarf2_find_location_expression): Call also
16549 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
16550 * dwarf2loc.h (dwarf2_version): New declaration.
16551 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
16553 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
16555 (struct dwop_section_names): Add loclists_dwo.
16556 (dwop_section_names): Add .debug_loclists.dwo.
16557 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
16558 (struct dwarf2_per_cu_data): Add dwarf_version.
16559 (struct dwo_sections): Add loclists.
16560 (struct attr_abbrev): Add implicit_const.
16561 (read_indirect_line_string): New declaration.
16562 (read_unsigned_leb128): Delete declaration.
16563 (rcuh_kind): New definition.
16564 (read_and_check_comp_unit_head): Change parameter
16565 is_debug_types_section to section_kind.
16566 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
16567 (read_comp_unit_head): Change parameter abfd to section, add parameter
16568 section_kind. Handle DWARF-5.
16569 (error_check_comp_unit_head): Accept also DWARF version 5.
16570 (read_and_check_comp_unit_head): Change parameter
16571 is_debug_types_section to section_kind.
16572 (read_and_check_type_unit_head): Delete function.
16573 (read_abbrev_offset): Handle DWARF-5.
16574 (create_debug_type_hash_table): Add parameter section_kind. Process
16575 only DW_UT_type. Use signature and type_offset_in_tu from struct
16577 (create_debug_types_hash_table): Update create_debug_type_hash_table
16579 (create_all_type_units): Call create_debug_type_hash_table.
16580 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
16581 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
16583 (skip_one_die): Handle DW_FORM_implicit_const.
16584 (dwarf2_rnglists_process): New function.
16585 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
16586 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
16587 (read_attribute_value): Handle DW_FORM_implicit_const,
16589 (read_attribute): Handle DW_FORM_implicit_const.
16590 (read_indirect_string_at_offset_from): New function from
16591 read_indirect_string_at_offset.
16592 (read_indirect_string_at_offset): Call
16593 read_indirect_string_at_offset_from.
16594 (read_indirect_line_string_at_offset): New function.
16595 (read_indirect_string): New function comment.
16596 (read_indirect_line_string): New function.
16597 (read_unsigned_leb128): Make it global.
16598 (dwarf2_string_attr): Handle DWARF-5.
16599 (add_include_dir_stub, read_formatted_entries): New functions.
16600 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
16602 (per_cu_header_read_in): Update read_comp_unit_head caller.
16603 (dwarf2_version): New function.
16604 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
16606 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
16609 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16611 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
16613 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16615 * dwarf2read.c (dwarf2_ranges_process): New function from
16616 dwarf2_ranges_read.
16617 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
16618 dwarf2_ranges_process.
16620 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16622 * dwarf2read.c (create_debug_type_hash_table): New function from
16623 create_debug_types_hash_table.
16624 (create_debug_types_hash_table): Call create_debug_type_hash_table.
16625 (create_all_type_units, open_and_init_dwo_file): Update
16626 create_debug_types_hash_table callers.
16628 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
16631 * fork-child.c (trace_start_error): Fix thinko. va_end should
16632 refer to 'ap', not 'args'.
16634 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
16635 Pedro Alves <palves@redhat.com>
16638 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
16640 * fork-child.c (trace_start_error): New function.
16641 (trace_start_error_with_name): Likewise.
16642 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
16643 * inf-ptrace.c (inf_ptrace_me): Likewise.
16644 * inferior.h (trace_start_error): New prototype.
16645 (trace_start_error_with_name): Likewise.
16647 2017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
16650 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
16651 NULL before using it.
16652 * symmisc.c (maintenance_print_symbols): Likewise.
16653 (maintenance_print_msymbols): Likewise.
16655 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16657 * NEWS: Add record Python bindings entry.
16659 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16661 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
16663 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
16664 * python/py-record-btrace.c, python/py-record-btrace.h,
16665 python/py-record-full.c, python/py-record-full.h: New file.
16666 * python/py-record.c: Add include for py-record-btrace.h and
16668 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
16669 recpy_instruction_history, recpy_function_call_history, recpy_begin,
16670 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
16671 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
16673 (gdbpy_initialize_btrace): New export.
16674 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
16676 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16678 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
16679 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
16680 * python/py-record.c: New file.
16681 * python/python-internal.h (gdbpy_start_recording,
16682 gdbpy_current_recording, gdpy_stop_recording,
16683 gdbpy_initialize_record): New export.
16684 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
16685 (python_GdbMethods): Add gdbpy_start_recording,
16686 gdbpy_current_recording and gdbpy_stop_recording.
16688 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16690 * record-btrace.c (record_btrace_record_method): New function.
16691 (init_record_btrace_ops): Initialize to_record_method.
16692 * record-full.c (record_full_record_method): New function.
16693 (init_record_full_ops, init_record_full_core_ops): Add
16694 record_full_record_method.
16695 * record.h (enum record_method): New enum.
16696 * target-debug.h (target_debug_print_enum_record_method: New define.
16697 * target-delegates.c: Regenerate.
16698 * target.c (target_record_method): New function.
16699 * target.h: Include record.h.
16700 (struct target_ops) <to_record_method>: New field.
16701 (target_record_method): New export.
16703 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16705 * record.h (record_start, record_stop): New export.
16706 * record.c (record_start, record_stop): New function.
16708 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16710 * btrace.c (btrace_fetch): Copy function call segments pointer
16712 (btrace_clear): Clear the vector.
16713 (btrace_find_insn_by_number): Use binary search to find the correct
16714 function call segment.
16715 * btrace.h (brace_fun_p): New typedef.
16716 (struct btrace_thread_info) <functions>: New field.
16718 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16720 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
16721 * btrace.c (btrace_decode_error): ... here. New function.
16722 * btrace.h (btrace_decode_error): New export.
16724 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16726 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
16727 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
16728 btrace_find_insn_by_number): Remove special case for gaps.
16729 * btrace.h (btrace_insn_get_error): New export.
16730 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
16731 * record-btrace.c (btrace_insn_history): Print number for gaps.
16732 (record_btrace_info, record_btrace_goto): Handle gaps.
16734 2017-02-14 Tom Tromey <tom@tromey.com>
16737 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
16739 * python/py-evts.c (gdbpy_initialize_py_events): Add
16740 before_prompt registry.
16741 * python/py-events.h (events_object) <before_prompt>: New field.
16743 2017-02-14 Markus Metzger <markus.t.metzger@intel.com>
16745 * btrace.c (ftrace_new_switch): Preserve up link and flags.
16747 2017-02-13 Luis Machado <lgustavo@codesourcery.com>
16749 * symfile (_initialize_symfile): Add usage text to the load command's
16752 2017-02-10 Simon Marchi <simon.marchi@ericsson.com>
16754 * utils.c (defaulted_query): Don't query on secondary UIs.
16756 2017-02-10 Tom Tromey <tom@tromey.com>
16758 * rust-lang.c (rust_get_disr_info): Remove unused variable.
16760 2017-02-10 Tom Tromey <tom@tromey.com>
16762 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
16764 * python/py-type.c (typy_legacy_template_argument): Remove
16765 unnecessary "cleanup" local.
16767 2017-02-10 Tom Tromey <tom@tromey.com>
16769 * python/python.c (do_start_initialization): New function, from
16770 _initialize_python.
16771 (_initialize_python): Call do_start_initialization.
16772 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
16775 2017-02-10 Tom Tromey <tom@tromey.com>
16777 * python/py-prettyprint.c (pretty_print_one_value): Use
16780 2017-02-10 Tom Tromey <tom@tromey.com>
16782 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
16783 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
16785 * python/py-type.c (field_new): Use gdbpy_ref.
16786 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
16788 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
16789 (py_free_pspace): Likewise.
16790 (pspace_to_pspace_object): Likewise.
16791 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
16792 (py_free_objfile): Likewise.
16793 (objfile_to_objfile_object): Likewise.
16794 * python/py-inferior.c (delete_thread_object): Use
16796 (infpy_read_memory): Likewise.
16797 (py_free_inferior): Likewise.
16798 * python/py-evtregistry.c (create_eventregistry_object): Use
16800 * python/py-event.c (create_event_object): Use gdbpy_ref.
16802 2017-02-10 Tom Tromey <tom@tromey.com>
16804 * python/py-ref.h (gdbpy_ref_policy): Now a template.
16805 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
16807 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
16808 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
16809 python/py-exitedevent.c, python/py-finishbreakpoint.c,
16810 python/py-framefilter.c, python/py-function.c,
16811 python/py-inferior.c, python/py-infevents.c,
16812 python/py-linetable.c, python/py-newobjfileevent.c,
16813 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
16814 python/py-signalevent.c, python/py-stopevent.c,
16815 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
16816 python/py-unwind.c, python/py-utils.c, python/py-value.c,
16817 python/py-varobj.c, python/py-xmethods.c, python/python.c,
16818 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
16820 2017-02-10 Tom Tromey <tom@tromey.com>
16822 * ui-out.h (ui_out_emit_type): New class.
16823 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
16824 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
16825 and ui_out_emit_tuple.
16826 (enumerate_locals): Likewise.
16827 (py_mi_print_variables, py_print_locals, py_print_args): Use
16829 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
16831 * common/gdb_optional.h: New file.
16833 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
16835 * MAINTAINERS (Write After Approval): Update my e-mail address.
16837 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
16840 * breakpoint.c (_initialize_breakpoint): Update the help description
16841 of the 'commands' command to indicate that it takes a list argument.
16843 2017-02-09 Simon Marchi <simon.marchi@ericsson.com>
16845 * interps.c (current_interp_set_logging): Remove "return".
16847 2017-02-09 Gary Benson <gbenson@redhat.com>
16849 * symtab.c (add_symtab_completions): Prevent NULL pointer
16852 2017-02-08 Pedro Alves <palves@redhat.com>
16854 * interps.c (interp::interp): Remove reference to quiet_p.
16855 (interp_set): Make static. Remove dead "Switching to" output
16857 (interp_quiet_p, interp_set_quiet): Delete.
16858 (interpreter_exec_cmd): Don't set the interpreter quiet.
16859 * interps.h (interp_quiet_p): Make static.
16860 (class interp) <quiet_p>: Remove field
16862 2017-02-08 Jerome Guitton <guitton@adacore.com>
16864 * cli/cli-decode.c (find_command_name_length): Make it extern.
16865 * cli/cli-decode.h (find_command_name_length): Declare.
16866 * cli/cli-script.c (command_name_equals, line_first_arg):
16868 (process_next_line): Use cli-decode to parse command names.
16869 (build_command_line): Make args a constant pointer.
16871 2017-02-08 Jerome Guitton <guitton@adacore.com>
16873 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
16874 Remove case-insensitive search.
16876 2017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
16878 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
16879 at the end of the line. Avoids an ARI warning.
16881 2017-02-06 Luis Machado <lgustavo@codesourcery.com>
16883 * NEWS: Mention support for record/replay of Intel 64 rdrand and
16884 rdseed instructions.
16885 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
16887 2017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
16890 Provide and use sparc32 and sparc64 target description XML files.
16891 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
16892 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
16893 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
16894 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
16895 * features/sparc/sparc32-solaris.xml: New file.
16896 * features/sparc/sparc64-solaris.xml: New file.
16897 * features/sparc/sparc32-solaris.c: Generated.
16898 * features/sparc/sparc64-solaris.c: Generated.
16899 * sparc-tdep.h: Account for differences in target descriptions.
16900 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
16901 (sparc32_register_type): Use target provided registers.
16902 (validate_tdesc_registers): New function.
16903 (sparc32_gdbarch_init): Use tdesc_has_registers.
16904 Set pseudoregister functions.
16905 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
16906 (sparc64_register_type): Use target provided registers.
16907 (sparc64_init_abi): Set pseudoregister functions.
16909 2017-02-03 Tom Tromey <tom@tromey.com>
16912 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
16913 with a single member.
16915 2017-02-03 Pedro Alves <palves@redhat.com>
16917 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
16918 (cli_interp_base::~cli_interp_base): New.
16919 (cli_interp): New struct.
16920 (as_cli_interp): Cast the interp itself to cli_interp.
16921 (cli_interpreter_pre_command_loop): Rename to ...
16922 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
16924 (cli_interpreter_init): Rename to ...
16925 (cli_interp::init): ... this. Remove 'self' parameter. Use
16926 boolean. Make extern.
16927 (cli_interpreter_resume): Rename to ...
16928 (cli_interp::resume): ... this. Remove 'data' parameter. Make
16930 (cli_interpreter_suspend): Rename to ...
16931 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
16933 (cli_interpreter_exec): Rename to ...
16934 (cli_interp::exec): ... this. Remove 'data' parameter. Make
16936 (cli_interpreter_supports_command_editing): Rename to ...
16937 (cli_interp_base::supports_command_editing): ... this. Remove
16938 'interp' parameter. Make extern.
16939 (cli_ui_out): Rename to ...
16940 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
16942 (cli_set_logging): Rename to ...
16943 (cli_interp_base::set_logging): ... this. Remove 'interp'
16944 parameter. Make extern.
16945 (cli_interp_procs): Delete.
16946 (cli_interp_factory): Adjust to use "new".
16947 * cli/cli-interp.h: Include "interps.h".
16948 (struct cli_interp_base): New struct.
16949 * interps.c (struct interp): Delete. Fields moved to interps.h.
16950 (interp_new): Delete.
16951 (interp::interp, interp::~interp): New.
16952 (interp_set): Use bool, and return void. Assume the interpreter
16953 has suspend, init and resume methods, and that the all return
16955 (set_top_level_interpreter): interp_set returns void.
16956 (interp_ui_out): Adapt.
16957 (current_interp_set_logging): Adapt.
16958 (interp_data): Delete.
16959 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
16960 (interp_exec): Adapt.
16961 (top_level_interpreter_data): Delete.
16962 * interps.h (interp_init_ftype, interp_resume_ftype)
16963 (interp_suspend_ftype, interp_exec_ftype)
16964 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
16965 (class interp): New.
16966 (interp_new): Delete.
16967 (interp_set): Now returns void. Use bool.
16968 (interp_data, top_level_interpreter_data): Delete.
16969 * mi/mi-common.h: Include interps.h.
16970 (class mi_interp): Inherit from interp. Define a ctor. Declare
16971 init, resume, suspect, exec, interp_ui_out, set_logging and
16972 pre_command_loop methods.
16973 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
16974 (mi_interpreter_init): Rename to ...
16975 (mi_interp::init): ... this. Remove the 'interp' parameter, use
16976 bool, return void and make extern. Adjust.
16977 (mi_interpreter_resume): ... Rename to ...
16978 (mi_interp::resume): ... this. Remove the 'data' parameter,
16979 return void and make extern. Adjust.
16980 (mi_interpreter_suspend): ... Rename to ...
16981 (mi_interp::suspend): ... this. Remove the 'data' parameter,
16982 return void and make extern. Adjust.
16983 (mi_interpreter_exec): ... Rename to ...
16984 (mi_interp::exec): ... this. Remove the 'data' parameter and make
16986 (mi_interpreter_pre_command_loop): ... Rename to ...
16987 (mi_interp::pre_command_loop): ... this. Remove the 'self'
16988 parameter and make extern.
16989 (mi_on_normal_stop_1): Adjust.
16990 (mi_ui_out): Rename to ...
16991 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
16992 parameter and make extern. Adjust.
16993 (mi_set_logging): Rename to ...
16994 (mi_interp::set_logging): ... this. Remove the 'interp'
16995 parameter and make extern. Adjust.
16996 (mi_interp_procs): Delete.
16997 (mi_interp_factory): Adjust to use 'new'.
16998 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
16999 (mi_print_exception, mi_execute_command, mi_load_progress):
17001 * tui/tui-interp.c (tui_interp): New class.
17002 (as_tui_interp): Return a tui_interp pointer.
17003 (tui_on_normal_stop, tui_on_signal_received)
17004 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
17005 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
17006 to use interp::interp_ui_out.
17007 (tui_init): Rename to ...
17008 (tui_interp::init): ... this. Remove the 'self' parameter, use
17009 bool, return void and make extern. Adjust.
17010 (tui_resume): Rename to ...
17011 (tui_interp::resume): ... this. Remove the 'data' parameter,
17012 return void and make extern. Adjust.
17013 (tui_suspend): Rename to ...
17014 (tui_interp::suspend): ... this. Remove the 'data' parameter,
17015 return void and make extern. Adjust.
17016 (tui_ui_out): Rename to ...
17017 (tui_interp::interp_ui_out): ... this. Remove the 'self'
17018 parameter, and make extern. Adjust.
17019 (tui_exec): Rename to ...
17020 (tui_interp::exec): ... this. Remove the 'data' parameter and
17022 (tui_interp_procs): Delete.
17023 (tui_interp_factory): Use "new".
17025 2017-02-02 Tom Tromey <tom@tromey.com>
17027 * rust-exp.y (ends_raw_string, space_then_number)
17028 (rust_identifier_start_p): Return bool.
17029 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
17030 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
17031 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
17032 (rust_chartype_p): Return bool.
17033 (val_print_struct, rust_print_struct_def, rust_print_type):
17035 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
17038 2017-02-02 Tom Tromey <tom@tromey.com>
17040 * rust-lang.c: Reindent.
17042 2017-02-02 Tom Tromey <tom@tromey.com>
17044 * rust-lang.h (rust_crate_for_block): Update.
17045 * rust-lang.c (rust_crate_for_block): Return std::string.
17046 (rust_get_disr_info): Use std:;string, not
17047 gdb::unique_xmalloc_ptr.
17048 * rust-exp.y (crate_name): Update.
17050 2017-02-02 Pedro Alves <palves@redhat.com>
17052 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
17053 field out of gdb_disassembler_test and make it static.
17055 2017-02-02 Pedro Alves <palves@redhat.com>
17057 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
17058 mi1_interp and mi_interp fields.
17060 2017-02-02 Pedro Alves <palves@redhat.com>
17062 * cli/cli-interp.c (struct saved_output_files, saved_output):
17063 Moved from cli/cli-logging.c.
17064 (cli_set_logging): New function.
17065 (cli_interp_procs): Install cli_set_logging.
17066 * cli/cli-interp.h (make_logging_output, cli_set_logging):
17068 * cli/cli-logging.c (struct saved_output_files, saved_output):
17069 Moved to cli/cli-interp.c.
17070 (pop_output_files): Don't save outputs here.
17071 (make_logging_output): New function.
17072 (handle_redirections): Don't build tee nor save previous outputs
17074 * interps.c (current_interp_set_logging): Change prototype.
17075 Assume there's always a set_logging_proc method installed.
17076 * interps.h (interp_set_logging_ftype): Change prototype.
17077 (current_interp_set_logging): Change prototype and adjust comment.
17078 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
17079 use make_logging_output.
17080 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
17081 2017-02-02 Pedro Alves <palves@redhat.com>
17083 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
17085 (set_logging_overwrite): ... here.
17086 (logging_no_redirect_file): Delete.
17087 (set_logging_redirect): Don't handle redirection on the fly.
17088 Instead warn that "logging off" / "logging on" is necessary.
17089 (pop_output_files): Delete references to logging_no_redirect_file.
17090 (show_logging_command): Always speak in terms of what will happen
17091 once logging is reenabled.
17093 2017-02-02 Pedro Alves <palves@redhat.com>
17095 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
17097 2017-02-02 Pedro Alves <palves@redhat.com>
17099 * disasm.c (gdb_pretty_print_insn): Rename to ...
17100 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
17101 Remove gdbarch parameter. Adapt to clear the object's buffers
17102 instead of allocating new buffers, and to print using the object's
17103 gdb_disassembler instead of calling gdb_print_insn.
17104 (dump_insns): Use gdb_pretty_print_disassembler.
17105 * disasm.h (gdb_pretty_print_insn): Delete declaration.
17106 (gdb_pretty_print_disassembler): New class.
17107 * record-btrace.c (btrace_insn_history): Use
17108 gdb_pretty_print_disassembler.
17110 2017-02-02 Pedro Alves <palves@redhat.com>
17112 * ada-lang.c (type_as_string): Use string_file.
17113 * ada-valprint.c (ada_print_floating): Use string_file.
17114 * ada-varobj.c (ada_varobj_scalar_image)
17115 (ada_varobj_get_value_image): Use string_file.
17116 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
17117 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
17118 * breakpoint.c (update_inserted_breakpoint_locations)
17119 (insert_breakpoint_locations, reattach_breakpoints)
17120 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
17121 (print_it_watchpoint): Use string_file.
17122 (save_breakpoints): Use stdio_file.
17123 * c-exp.y (oper): Use string_file.
17124 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
17126 (pop_output_files): Use delete.
17127 (handle_redirections): Use stdio_file and tee_file.
17128 * cli/cli-setshow.c (do_show_command): Use string_file.
17129 * compile/compile-c-support.c (c_compute_program): Use
17131 * compile/compile-c-symbols.c (generate_vla_size): Take a
17132 'string_file &' instead of a 'ui_file *'.
17133 (generate_c_for_for_one_variable): Take a 'string_file &' instead
17134 of a 'ui_file *'. Use string_file.
17135 (generate_c_for_variable_locations): Take a 'string_file &'
17136 instead of a 'ui_file *'.
17137 * compile/compile-internal.h (generate_c_for_for_one_variable):
17138 Take a 'string_file &' instead of a 'ui_file *'.
17139 * compile/compile-loc2c.c (push, pushf, unary, binary)
17140 (print_label, pushf_register_address, pushf_register)
17141 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
17142 'ui_file *'. Adjust.
17143 * compile/compile.c (compile_to_object): Use string_file.
17144 * compile/compile.h (compile_dwarf_expr_to_c)
17145 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
17147 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
17148 (replace_typedefs_qualified_name): Use string_file and
17150 * disasm.c (gdb_pretty_print_insn): Use string_file.
17151 (gdb_disassembly): Adjust reference the null_stream global.
17152 (do_ui_file_delete): Delete.
17153 (gdb_insn_length): Use null_stream.
17154 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
17155 * dwarf2loc.c (dwarf2_compile_property_to_c)
17156 (locexpr_generate_c_location, loclist_generate_c_location): Take a
17157 'string_file &' instead of a 'ui_file *'.
17158 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
17159 * dwarf2read.c (do_ui_file_peek_last): Delete.
17160 (dwarf2_compute_name): Use string_file.
17161 * event-top.c (gdb_setup_readline): Use stdio_file.
17162 * gdbarch.sh (verify_gdbarch): Use string_file.
17163 * gdbtypes.c (safe_parse_type): Use null_stream.
17164 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
17166 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
17167 'string_file *' instead of a 'ui_file *'.
17168 (gdbscm_arch_disassemble): Use string_file.
17169 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
17170 * guile/scm-ports.c (class ioscm_file_port): Now a class that
17171 inherits from ui_file.
17172 (ioscm_file_port_delete, ioscm_file_port_rewind)
17173 (ioscm_file_port_put): Delete.
17174 (ioscm_file_port_write): Rename to ...
17175 (ioscm_file_port::write): ... this. Remove file_port_magic
17177 (ioscm_file_port_new): Delete.
17178 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
17180 * guile/scm-type.c (tyscm_type_name): Use string_file.
17181 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
17183 * infcmd.c (print_return_value_1): Use string_file.
17184 * infrun.c (print_target_wait_results): Use string_file.
17185 * language.c (add_language): Use string_file.
17186 * location.c (explicit_to_string_internal): Use string_file.
17187 * main.c (captured_main_1): Use null_file.
17188 * maint.c (maintenance_print_architecture): Use stdio_file.
17189 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
17190 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
17191 event_channel>: Change type to mi_console_file pointer.
17192 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
17193 (mi_console_file_delete): Delete.
17194 (struct mi_console_file): Delete.
17195 (mi_console_file_magic): Delete.
17196 (mi_console_file_new): Delete.
17197 (mi_console_file::mi_console_file): New.
17198 (mi_console_file_delete): Delete.
17199 (mi_console_file_fputs): Delete.
17200 (mi_console_file::write): New.
17201 (mi_console_raw_packet): Delete.
17202 (mi_console_file::flush): New.
17203 (mi_console_file_flush): Delete.
17204 (mi_console_set_raw): Rename to ...
17205 (mi_console_file::set_raw): ... this.
17206 * mi/mi-console.h (class mi_console_file): New class.
17207 (mi_console_file_new, mi_console_set_raw): Delete.
17208 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
17209 (mi_set_logging): Use delete and tee_file. Adjust.
17210 * mi/mi-main.c (output_register): Use string_file.
17211 (mi_cmd_data_evaluate_expression): Use string_file.
17212 (mi_cmd_data_read_memory): Use string_file.
17213 (mi_cmd_execute, print_variable_or_computed): Use string_file.
17214 * mi/mi-out.c (mi_ui_out::main_stream): New.
17215 (mi_ui_out::rewind): Use main_stream and
17217 (mi_ui_out::put): Use main_stream and string_file.
17218 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
17219 Allocate a 'string_file' instead.
17220 (mi_out_new): Don't allocate a mem_fileopen stream here.
17221 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
17222 (mi_ui_out::main_stream): Declare method.
17223 * printcmd.c (eval_command): Use string_file.
17224 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
17225 * python/py-arch.c (archpy_disassemble): Use string_file.
17226 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
17227 * python/py-frame.c (frapy_str): Use string_file.
17228 * python/py-framefilter.c (py_print_type, py_print_single_arg):
17230 * python/py-type.c (typy_str): Use string_file.
17231 * python/py-unwind.c (unwind_infopy_str): Use string_file.
17232 * python/py-value.c (valpy_str): Use string_file.
17233 * record-btrace.c (btrace_insn_history): Use string_file.
17234 * regcache.c (regcache_print): Use stdio_file.
17235 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
17236 * remote.c (escape_buffer): Use string_file.
17237 * rust-lang.c (rust_get_disr_info): Use string_file.
17238 * serial.c (serial_open_ops_1): Use stdio_file.
17239 (do_serial_close): Use delete.
17240 * stack.c (print_frame_arg): Use string_file.
17241 (print_frame_args): Remove local mem_fileopen stream, not used.
17242 (print_frame): Use string_file.
17243 * symmisc.c (maintenance_print_symbols): Use stdio_file.
17244 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
17245 Take a 'string_file *' instead of a 'ui_file *'.
17246 * top.c (new_ui): Use stdio_file and stderr_file.
17247 (free_ui): Use delete.
17248 (execute_command_to_string): Use string_file.
17249 (quit_confirm): Use string_file.
17250 * tracepoint.c (collection_list::append_exp): Use string_file.
17251 * tui/tui-disasm.c (tui_disassemble): Use string_file.
17252 * tui/tui-file.c: Don't include "ui-file.h".
17253 (enum streamtype, struct tui_stream): Delete.
17254 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
17255 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
17256 (tui_file::tui_file): New method.
17257 (tui_file_fputs): Delete.
17258 (tui_file_get_strbuf): Delete.
17259 (tui_file::puts): New method.
17260 (tui_file_adjust_strbuf): Delete.
17261 (tui_file_flush): Delete.
17262 (tui_file::flush): New method.
17263 * tui/tui-file.h: Tweak intro comment.
17265 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
17266 (tui_file_adjust_strbuf): Delete declarations.
17267 (class tui_file): New class.
17268 * tui/tui-io.c (tui_initialize_io): Use tui_file.
17269 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
17270 (tui_register_format): Use string_stream.
17271 * tui/tui-stack.c (tui_make_status_line): Use string_file.
17272 (tui_get_function_from_frame): Use string_file.
17273 * typeprint.c (type_to_string): Use string_file.
17274 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
17275 (null_stream): New global.
17276 (ui_file_delete): Delete.
17277 (ui_file::ui_file): New.
17278 (null_file_isatty): Delete.
17279 (ui_file::~ui_file): New.
17280 (null_file_rewind): Delete.
17281 (ui_file::printf): New.
17282 (null_file_put): Delete.
17283 (null_file_flush): Delete.
17284 (ui_file::putstr): New.
17285 (null_file_write): Delete.
17286 (ui_file::putstrn): New.
17287 (null_file_read): Delete.
17288 (ui_file::putc): New.
17289 (null_file_fputs): Delete.
17290 (null_file_write_async_safe): Delete.
17291 (ui_file::vprintf): New.
17292 (null_file_delete): Delete.
17293 (null_file::write): New.
17294 (null_file_fseek): Delete.
17295 (null_file::puts): New.
17296 (ui_file_data): Delete.
17297 (null_file::write_async_safe): New.
17298 (gdb_flush, ui_file_isatty): Adjust.
17299 (ui_file_put, ui_file_rewind): Delete.
17300 (ui_file_write): Adjust.
17301 (ui_file_write_for_put): Delete.
17302 (ui_file_write_async_safe, ui_file_read): Adjust.
17303 (ui_file_fseek): Delete.
17304 (fputs_unfiltered): Adjust.
17305 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
17306 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
17307 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
17308 (set_ui_file_data): Delete.
17309 (string_file::~string_file, string_file::write)
17310 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
17311 (do_ui_file_as_string, ui_file_as_string): Delete.
17312 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
17313 (struct mem_file): Delete.
17314 (mem_file_new): Delete.
17315 (stdio_file::stdio_file): New.
17316 (mem_file_delete): Delete.
17317 (stdio_file::stdio_file): New.
17318 (mem_fileopen): Delete.
17319 (stdio_file::~stdio_file): New.
17320 (mem_file_rewind): Delete.
17321 (stdio_file::set_stream): New.
17322 (mem_file_put): Delete.
17323 (stdio_file::open): New.
17324 (mem_file_write): Delete.
17325 (stdio_file_magic, struct stdio_file): Delete.
17326 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
17327 (stdio_file::flush): New.
17328 (stdio_file_read): Rename to ...
17329 (stdio_file::read): ... this. Adjust.
17330 (stdio_file_write): Rename to ...
17331 (stdio_file::write): ... this. Adjust.
17332 (stdio_file_write_async_safe): Rename to ...
17333 (stdio_file::write_async_safe) ... this. Adjust.
17334 (stdio_file_fputs): Rename to ...
17335 (stdio_file::puts) ... this. Adjust.
17336 (stdio_file_isatty): Delete.
17337 (stdio_file_fseek): Delete.
17338 (stdio_file::isatty): New.
17339 (stderr_file_write): Rename to ...
17340 (stderr_file::write) ... this. Adjust.
17341 (stderr_file_fputs): Rename to ...
17342 (stderr_file::puts) ... this. Adjust.
17343 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
17344 (stderr_file::stderr_file): New.
17345 (tee_file_magic): Delete.
17346 (struct tee_file): Delete.
17347 (tee_file::tee_file): New.
17348 (tee_file_new): Delete.
17349 (tee_file::~tee_file): New.
17350 (tee_file_delete): Delete.
17351 (tee_file_flush): Rename to ...
17352 (tee_file::flush): ... this. Adjust.
17353 (tee_file_write): Rename to ...
17354 (tee_file::write): ... this. Adjust.
17355 (tee_file::write_async_safe): New.
17356 (tee_file_fputs): Rename to ...
17357 (tee_file::puts): ... this. Adjust.
17358 (tee_file_isatty): Rename to ...
17359 (tee_file::isatty): ... this. Adjust.
17360 * ui-file.h (struct obstack, struct ui_file): Don't
17362 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
17363 (ui_file_write_ftype)
17364 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
17365 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
17366 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
17367 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
17368 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
17369 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
17370 (set_ui_file_fseek): Delete.
17371 (ui_file_data, ui_file_delete, ui_file_rewind)
17372 (struct ui_file): New.
17374 (class null_file): New.
17375 (null_stream): Declare.
17376 (ui_file_write_for_put, ui_file_put): Delete.
17377 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
17379 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
17380 (gdb_fopen, tee_file_new): Delete.
17381 (struct string_file): New.
17382 (struct stdio_file): New.
17383 (stdio_file_up): New.
17384 (struct stderr_file): New.
17385 (class tee_file): New.
17386 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
17387 of a 'ui_file *'. Adjust.
17388 * ui-out.h (class ui_out) <field_stream>: Likewise.
17389 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
17390 (null_stream): Delete.
17391 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
17393 * utils.h (struct ui_file): Delete forward declaration..
17394 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
17395 (error_stream): Take a 'string_file &' instead of a
17397 * varobj.c (varobj_value_get_print_value): Use string_file.
17398 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
17399 * gdbarch.c: Regenerate.
17401 2017-02-02 Pedro Alves <palves@redhat.com>
17403 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
17404 (gdb_pretty_print_insn): ... this. Now a free function. Add back
17405 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
17406 Adjust to call gdb_print_insn instead of
17407 gdb_disassembler::print_insn.
17408 (dump_insns, do_mixed_source_and_assembly_deprecated)
17409 (do_mixed_source_and_assembly, do_assembly_only): Add back a
17410 'gdbarch' parameter. Remove gdb_disassembler parameter.
17411 (gdb_disassembly): Don't allocate a gdb_disassembler here.
17412 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
17414 (gdb_pretty_print_insn): Re-add declaration.
17415 * record-btrace.c (btrace_insn_history): Don't allocate a
17416 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
17418 2017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
17420 * disasm.h (gdb_disassembly): Remove file_string parameter.
17421 * disasm.c (gdb_disassembly): Likewise.
17422 * cli/cli-cmds.c (print_disassembly): Adapt.
17423 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
17424 * stack.c (do_gdb_disassembly): Likewise.
17426 2017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
17428 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
17429 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
17430 targets. And if the implicit value is longer than needed, extract
17431 the first bytes instead of the "least significant" ones.
17433 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
17435 * btrace.c (btrace_enable): Do not call btrace_add_pc for
17436 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
17437 (btrace_fetch): Assert can_access_registers_ptid.
17438 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
17439 validate_registers_access.
17441 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
17443 * gdbthread.h (can_access_registers_ptid): New.
17444 * thread.c (can_access_registers_ptid): New.
17446 2017-02-01 Pedro Alves <palves@redhat.com>
17448 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
17450 2017-01-31 Pedro Alves <palves@redhat.com>
17452 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
17455 2017-01-31 Pedro Alves <palves@redhat.com>
17457 * stack.c (print_frame_args): Remove local mem_fileopen stream,
17460 2017-01-31 Pedro Alves <palves@redhat.com>
17462 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
17464 2017-01-31 Pedro Alves <palves@redhat.com>
17466 * common/scoped_restore.h
17467 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
17468 change the value's parameter type to T2.
17469 (make_scoped_restore): Likewise.
17471 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
17472 Richard Henderson <rth@redhat.com>
17474 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
17475 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
17476 GS_BASE for older kernels.
17477 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
17478 GS_BASE for older kernels.
17479 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
17480 and GS_BASE to the offset table.
17481 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
17482 system register group.
17483 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
17485 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
17487 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
17488 AMD64_GSBASE_REGNUM.
17489 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
17490 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
17491 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
17492 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
17493 i386/64bit-segments.xml in those rules.
17494 * features/i386/64bit-segments.xml: New file.
17495 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
17496 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
17497 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
17498 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
17499 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
17500 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
17501 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
17502 * features/i386/amd64-avx-linux.c: Regenerated.
17503 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
17504 * features/i386/amd64-avx-mpx.c: Regenerated.
17505 * features/i386/amd64-avx512-linux.c: Regenerated.
17506 * features/i386/amd64-linux.c: Regenerated.
17507 * features/i386/amd64-mpx-linux.c: Regenerated.
17508 * features/i386/i386-avx-mpx-linux.c: Regenerated.
17509 * features/i386/i386-avx-mpx.c: Regenerated.
17510 * features/i386/x32-avx-linux.c: Regenerated.
17511 * features/i386/x32-avx512-linux.c: Regenerated.
17512 * regformats/i386/amd64-avx-linux.dat: Regenerated.
17513 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
17514 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
17515 * regformats/i386/amd64-linux.dat: Regenerated.
17516 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
17517 * regformats/i386/x32-avx-linux.dat: Regenerated.
17518 * regformats/i386/x32-avx512-linux.dat: Regenerated.
17519 * regformats/i386/x32-linux.dat: Regenerated.
17521 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
17523 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
17524 Set to AMD64_NUM_REGS.
17526 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
17528 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
17529 that checks validity of a register number.
17531 2017-01-27 Kees Cook <keescook@google.com>
17533 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
17534 fetch_fpregs if target has fpa registers.
17535 (arm_linux_store_inferior_registers): Call store_fpregs if target
17538 2017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
17540 * cris-tdep.c (cris_gdbarch_init): Remove check for
17541 info.byte_order and force it to BFD_ENDIAN_LITTLE.
17543 2017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
17545 * corelow.c (get_core_register_section): Check for regset
17546 existence before checking for REGSET_VARIABLE_SIZE.
17548 2017-01-26 Yao Qi <yao.qi@linaro.org>
17549 Pedro Alves <palves@redhat.com>
17552 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
17553 call memory_error, save memaddr instead.
17554 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
17555 negative, cal memory_error.
17556 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
17558 2017-01-26 Yao Qi <yao.qi@linaro.org>
17560 * disasm-selftests.c (memory_error_test): New function.
17561 (_initialize_disasm_selftests): Register memory_error_test.
17563 2017-01-26 Yao Qi <yao.qi@linaro.org>
17565 * Makefile.in (SFILES): Add disasm-selftests.c and
17567 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
17568 * disasm-selftests.c: New file.
17569 * selftest-arch.c: New file.
17570 * selftest-arch.h: New file.
17572 2017-01-26 Yao Qi <yao.qi@linaro.org>
17574 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
17575 to bfd_arch_mep. Don't return 0 if section is not
17576 found. Call print_insn_mep.
17578 2017-01-26 Pedro Alves <palves@redhat.com>
17579 Yao Qi <yao.qi@linaro.org>
17581 * arm-tdep.c: Include "disasm.h".
17582 (gdb_print_insn_arm): Update code to get gdbarch.
17583 * disasm.c (dis_asm_read_memory): Change it to
17584 gdb_disassembler::dis_asm_read_memory.
17585 (dis_asm_memory_error): Likewise.
17586 (dis_asm_print_address): Likewise.
17587 (gdb_pretty_print_insn): Change it to
17588 gdb_disassembler::pretty_print_insn.
17589 (dump_insns): Add one argument gdb_disassemlber. All
17591 (do_mixed_source_and_assembly_deprecated): Likewise.
17592 (do_mixed_source_and_assembly): Likewise.
17593 (do_assembly_only): Likewise.
17594 (gdb_disassembler::gdb_disassembler): New.
17595 (gdb_disassembler::print_insn): New.
17596 * disasm.h (class gdb_disassembler): New.
17597 (gdb_pretty_print_insn): Remove declaration.
17598 (gdb_disassemble_info): Likewise.
17599 * guile/scm-disasm.c (class gdbscm_disassembler): New.
17600 (gdbscm_disasm_read_memory_worker): Update.
17601 (gdbscm_disasm_read_memory): Update.
17602 (gdbscm_disasm_memory_error): Remove.
17603 (gdbscm_disasm_print_address): Remove.
17604 (gdbscm_disassembler::gdbscm_disassembler): New.
17605 (gdbscm_print_insn_from_port): Update.
17606 * mips-tdep.c: Include disasm.h.
17607 (gdb_print_insn_mips): Update code to get gdbarch.
17608 * record-btrace.c (btrace_insn_history): Update.
17609 * spu-tdep.c: Include disasm.h.
17610 (struct spu_dis_asm_data): Remove.
17611 (struct spu_dis_asm_info): New.
17612 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
17614 (gdb_print_insn_spu): Cast disassemble_info to
17617 2017-01-26 Yao Qi <yao.qi@linaro.org>
17619 * disasm.c (do_ui_file_delete): Delete.
17620 (gdb_insn_length): Move code creating stream to ...
17621 * utils.c (null_stream): ... here. New function.
17622 * utils.h (null_stream): Declare.
17624 2017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
17626 * python/py-inferior.c (find_thread_object): Return directly
17627 from the loop. Remove "found" variable.
17629 2017-01-21 Joel Brobecker <brobecker@adacore.com>
17631 GDB 7.12.1 released.
17633 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
17635 * python/py-function.c (fnpy_call): Reorder declarations to have
17636 the gdbpy_enter object declared first.
17637 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
17639 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
17642 * python/python-internal.h (PyMem_RawMalloc): Define for
17644 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
17645 PyMem_RawMalloc instead of PyMem_Malloc.
17647 2017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
17648 Luis Machado <lgustavo@codesourcery.com>
17650 * NEWS (New commands): Mention flash-erase.
17651 (New MI commands): Mention target-flash-erase.
17652 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
17654 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
17655 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
17656 * target.c (flash_erase_command): New function.
17657 (initialize_targets): Add new flash-erase command.
17658 * target.h (flash_erase_command): New declaration.
17660 2017-01-20 Joel Brobecker <brobecker@adacore.com>
17662 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
17663 HAVE_SYS_PROCFS_H is defined.
17665 2017-01-18 Alan Hayward <alan.hayward@arm.com>
17667 * remote.c (struct cached_reg): Change data into a pointer.
17668 * (stop_reply_dtr): Free data pointers before deleting vector.
17669 (process_stop_reply): Likewise.
17670 (remote_parse_stop_reply): Allocate space for data
17672 2017-01-18 Alan Hayward <alan.hayward@arm.com>
17674 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
17676 (amd64_pseudo_register_read_value): Likewise.
17677 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
17678 (store_register_using_P): Likewise.
17679 * regcache.c (regcache_xfer_part): Likewise.
17681 2017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
17683 Split real and pseudo registers.
17684 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
17685 (sparc32_pseudo_regnum): New enum.
17686 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
17687 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
17688 (SPARC32_CP0_REGISTERS): New macro.
17689 (sparc32_pseudo_register_name): New function.
17690 (sparc32_register_name): Use sparc32_pseudo_register_name.
17691 (sparc32_pseudo_register_type): New function.
17692 (sparc32_register_type): Use sparc32_pseudo_register_type.
17693 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
17694 pseudo register numbers.
17695 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
17696 (SPARC64_CP0_REGISTERS): New macro.
17697 (sparc64_pseudo_register_name): New function.
17698 (sparc64_register_name): Use sparc64_pseudo_register_name.
17699 (sparc64_pseudo_register_type): New function.
17700 (sparc64_register_type): Use sparc64_pseudo_register_type.
17701 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
17702 pseudo register numbers.
17703 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
17704 sparc64_store_arguments): Handle pseudo register numbers.
17706 2017-01-13 Yao Qi <yao.qi@linaro.org>
17708 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
17709 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
17711 (getpkt_or_notif_sane_1): Likewise.
17713 2017-01-13 Yao Qi <yao.qi@linaro.org>
17715 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
17716 of CC. Pass "-x c++-header" instead of "-x c".
17718 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
17720 * remote.c (remote_can_async_p): Update comment.
17722 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
17724 * linux-nat.c (linux_nat_can_async_p): Update comment.
17726 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
17728 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
17730 2017-01-11 Simon Marchi <simon.marchi@ericsson.com>
17732 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
17734 2017-01-10 Tom Tromey <tom@tromey.com>
17736 * python/py-type.c (typy_legacy_template_argument): Update.
17737 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
17738 ~demangle_parse_info): Declare new members.
17739 (cp_demangled_name_to_comp): Return unique_ptr.
17740 (cp_demangled_name_parse_free)
17741 (make_cleanup_cp_demangled_name_parse_free)
17742 (cp_new_demangle_parse_info): Remove.
17743 * cp-support.c (do_demangled_name_parse_free_cleanup)
17744 (make_cleanup_cp_demangled_name_parse_free): Remove.
17745 (inspect_type, cp_canonicalize_string_full)
17746 (cp_canonicalize_string): Update.
17747 (mangled_name_to_comp): Change return type.
17748 (cp_class_name_from_physname, method_name_from_physname)
17749 (cp_func_name, cp_remove_params): Update.
17750 * cp-name-parser.y (demangle_parse_info): New constructor, from
17751 cp_new_demangle_parse_info.
17752 (~demangle_parse_info): New destructor, from
17753 cp_demangled_name_parse_free.
17754 (cp_merge_demangle_parse_infos): Update.
17755 (cp_demangled_name_to_comp): Change return type.
17757 2017-01-10 Tom Tromey <tom@tromey.com>
17759 * top.c (prevent_dont_repeat): Change return type.
17760 * python/python.c (execute_gdb_command): Use std::string.
17762 * guile/guile.c (gdbscm_execute_gdb_command): Update.
17763 * command.h (prevent_dont_repeat): Change return type.
17764 * breakpoint.c (bpstat_do_actions_1): Update.
17766 2017-01-10 Tom Tromey <tom@tromey.com>
17768 * value.h (scoped_value_mark::~scoped_value_mark): Call
17770 (scoped_value_mark::free_to_mark): New method.
17771 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
17774 2017-01-10 Tom Tromey <tom@tromey.com>
17776 * python/py-value.c (valpy_dereference, valpy_referenced_value)
17777 (valpy_reference_value, valpy_const_value, valpy_get_address)
17778 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
17779 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
17780 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
17781 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
17783 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
17784 * value.h (scoped_value_mark): New class.
17786 2017-01-10 Tom Tromey <tom@tromey.com>
17788 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
17789 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
17790 * psymtab.c (discard_psymtabs_upto): Remove.
17791 (make_cleanup_discard_psymtabs): Remove.
17792 (struct psymtab_state): Remove.
17794 2017-01-10 Tom Tromey <tom@tromey.com>
17796 * record-full.c (record_full_save_cleanups): Remove.
17797 (record_full_save): Use gdb::unlinker.
17798 * gcore.c (do_bfd_delete_cleanup): Remove.
17799 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
17801 * dwarf2read.c (unlink_if_set): Remove.
17802 (write_psymtabs_to_index): Use gdb::unlinker.
17803 * common/gdb_unlinker.h: New file.
17805 2017-01-10 Tom Tromey <tom@tromey.com>
17807 * windows-tdep.c (windows_xfer_shared_library): Update.
17808 * windows-nat.c (windows_make_so): Update.
17809 * utils.h (make_cleanup_bfd_unref): Remove.
17810 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
17811 * symfile.h (symfile_bfd_open)
17812 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
17813 * symfile.c (read_symbols, symbol_file_add)
17814 (separate_debug_file_exists): Update.
17815 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
17816 (generic_load, reread_symbols): Update.
17817 * symfile-mem.c (symbol_file_add_from_memory): Update.
17818 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
17819 (spu_symbol_file_add_from_memory): Update.
17820 * solist.h (struct target_so_ops) <bfd_open>: Return
17822 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
17823 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
17825 (solib_map_sections, reload_shared_libraries_1): Update.
17826 * solib-svr4.c (enable_break): Update.
17827 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
17828 * solib-frv.c (enable_break2): Update.
17829 * solib-dsbt.c (enable_break): Update.
17830 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
17832 (darwin_solib_get_all_image_info_addr_at_init): Update.
17833 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
17834 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
17835 * record-full.c (record_full_save): Update.
17836 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
17837 * procfs.c (insert_dbx_link_bpt_in_file): Update.
17838 * minidebug.c (find_separate_debug_file_in_section): Return
17840 * machoread.c (macho_add_oso_symfile): Change abfd to
17842 (macho_symfile_read_all_oso): Update.
17843 (macho_check_dsym): Return gdb_bfd_ref_ptr.
17844 (macho_symfile_read): Update.
17845 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
17846 (jit_bfd_try_read_symtab): Update.
17847 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
17848 (gdb_bfd_openw, gdb_bfd_openr_iovec)
17849 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
17851 (gdb_bfd_ref_policy): New struct.
17852 (gdb_bfd_ref_ptr): New typedef.
17853 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
17854 (gdb_bfd_openw, gdb_bfd_openr_iovec)
17855 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
17857 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
17858 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
17859 (gcore_command): Update.
17860 * exec.c (exec_file_attach): Update.
17861 * elfread.c (elf_symfile_read): Update.
17862 * dwarf2read.c (dwarf2_get_dwz_file): Update.
17863 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
17864 (open_and_init_dwo_file): Update.
17865 (open_dwp_file): Return gdb_bfd_ref_ptr.
17866 (open_and_init_dwp_file): Update.
17867 * corelow.c (core_open): Update.
17868 * compile/compile-object-load.c (compile_object_load): Update.
17869 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
17870 * coffread.c (coff_symfile_read): Update.
17871 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
17872 gdb_bfd_ref_ptr. Rename.
17873 (dump_bfd_file, restore_command): Update.
17874 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
17875 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
17876 (find_separate_debug_file_by_buildid): Update.
17878 2017-01-10 Tom Tromey <tom@tromey.com>
17880 * common/gdb_ref_ptr.h: New file.
17881 * python/py-ref.h (struct gdbpy_ref_policy): New.
17882 (gdbpy_ref): Now a typedef.
17884 2017-01-10 Tom Tromey <tom@tromey.com>
17886 * utils.h (make_cleanup_htab_delete): Don't declare.
17887 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
17889 * linespec.c (decode_compound_collector): Add constructor,
17891 (lookup_prefix_sym): Remove cleanup.
17892 (symtab_collector): Add constructor, destructor.
17893 (collect_symtabs_from_filename): Remove cleanup.
17894 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
17895 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
17897 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
17898 * dwarf2read.c (dw2_expand_symtabs_matching)
17899 (dw2_map_symbol_filenames, dwarf_decode_macros)
17900 (write_psymtabs_to_index): Use htab_up.
17901 * dwarf2loc.c (func_verify_no_selftailcall)
17902 (call_site_find_chain_1, func_verify_no_selftailcall)
17903 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
17904 std::vector, gdb::unique_xmalloc_ptr.
17905 (call_sitep): Remove typedef.
17906 (dwarf2_locexpr_baton_eval): Remove unused variable.
17908 2017-01-10 Tom Tromey <tom@tromey.com>
17910 * python/python-internal.h (make_cleanup_py_decref)
17911 (make_cleanup_py_xdecref): Don't declare.
17912 * python/py-utils.c (py_decref, make_cleanup_py_decref)
17913 (py_xdecref, make_cleanup_py_xdecref): Remove.
17915 2017-01-10 Tom Tromey <tom@tromey.com>
17917 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
17918 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
17920 2017-01-10 Tom Tromey <tom@tromey.com>
17922 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
17924 2017-01-10 Tom Tromey <tom@tromey.com>
17926 * python/py-utils.c (unicode_to_encoded_string)
17927 (python_string_to_target_string)
17928 (python_string_to_target_python_string)
17929 (python_string_to_host_string, gdbpy_obj_to_string)
17930 (get_addr_from_python): Use gdbpy_ref.
17932 2017-01-10 Tom Tromey <tom@tromey.com>
17934 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
17937 2017-01-10 Tom Tromey <tom@tromey.com>
17939 * python/python.c (eval_python_command, gdbpy_decode_line)
17940 (gdbpy_run_events, gdbpy_start_type_printers)
17941 (gdbpy_apply_type_printers): Use gdbpy_ref.
17943 2017-01-10 Tom Tromey <tom@tromey.com>
17945 * python/py-param.c (get_doc_string, compute_enum_values): Use
17948 2017-01-10 Tom Tromey <tom@tromey.com>
17950 * python/py-inferior.c (find_thread_object, build_inferior_list):
17953 2017-01-10 Tom Tromey <tom@tromey.com>
17955 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
17957 2017-01-10 Tom Tromey <tom@tromey.com>
17959 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
17962 2017-01-10 Tom Tromey <tom@tromey.com>
17964 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
17966 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
17969 2017-01-10 Tom Tromey <tom@tromey.com>
17971 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
17974 2017-01-10 Tom Tromey <tom@tromey.com>
17976 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
17977 decref results of PyArg_ParseTupleAndKeywords.
17979 2017-01-10 Tom Tromey <tom@tromey.com>
17981 * python/python.c (python_run_simple_file): Use
17982 unique_xmalloc_ptr, gdbpy_ref.
17984 2017-01-10 Tom Tromey <tom@tromey.com>
17986 * python/py-prettyprint.c (print_stack_unless_memory_error)
17987 (print_string_repr, print_children): Use gdbpy_ref.
17988 (dummy_python_frame): New class.
17989 (dummy_python_frame::dummy_python_frame): Rename from
17990 push_dummy_python_frame.
17991 (py_restore_tstate): Remove.
17993 2017-01-10 Tom Tromey <tom@tromey.com>
17995 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
17997 2017-01-10 Tom Tromey <tom@tromey.com>
17999 * python/python.c (ensure_python_env, restore_python_env):
18001 * python/python-internal.h (ensure_python_env): Don't declare.
18002 * varobj.h (varobj_ensure_python_env): Don't declare.
18003 * varobj.c (varobj_ensure_python_env): Remove.
18005 2017-01-10 Tom Tromey <tom@tromey.com>
18007 * varobj.c (varobj_value_get_print_value): Use
18008 gdbpy_enter_varobj.
18010 2017-01-10 Tom Tromey <tom@tromey.com>
18012 * python/py-prettyprint.c (print_string_repr, print_children):
18014 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
18016 * varobj.c (varobj_value_get_print_value): Update.
18017 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
18019 2017-01-10 Tom Tromey <tom@tromey.com>
18021 * varobj.c (varobj_get_display_hint)
18022 (dynamic_varobj_has_child_method, install_new_value_visualizer)
18023 (varobj_set_visualizer, free_variable): Use
18024 gdbpy_enter_varobj.
18026 2017-01-10 Tom Tromey <tom@tromey.com>
18028 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
18029 (do_finish_initialization): New function. Use gdbpy_ref.
18030 (gdbpy_finish_initialization): Use gdbpy_enter. Call
18031 do_finish_initialization.
18033 2017-01-10 Tom Tromey <tom@tromey.com>
18035 * python/py-param.c (get_set_value, get_show_value): Use
18036 gdbpy_enter, gdbpy_ref.
18038 2017-01-10 Tom Tromey <tom@tromey.com>
18040 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
18042 2017-01-10 Tom Tromey <tom@tromey.com>
18044 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
18046 2017-01-10 Tom Tromey <tom@tromey.com>
18048 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
18049 Use gdbpy_enter_varobj.
18051 2017-01-10 Tom Tromey <tom@tromey.com>
18053 * varobj.c (gdbpy_enter_varobj): New constructor.
18054 * python/python-internal.h (gdbpy_enter_varobj): New class.
18055 * python/py-varobj.c (py_varobj_get_iterator): Use
18056 gdbpy_enter_varobj.
18058 2017-01-10 Tom Tromey <tom@tromey.com>
18060 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
18061 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
18062 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
18063 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
18064 unique_xmalloc_ptr.
18065 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
18067 2017-01-10 Tom Tromey <tom@tromey.com>
18069 * python/py-xmethods.c (invoke_match_method): Use
18072 2017-01-10 Tom Tromey <tom@tromey.com>
18074 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
18075 gdbpy_enter, gdbpy_ref.
18077 2017-01-10 Tom Tromey <tom@tromey.com>
18079 * python/python.c (python_interactive_command): Use gdbpy_enter.
18081 2017-01-10 Tom Tromey <tom@tromey.com>
18083 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
18086 2017-01-10 Tom Tromey <tom@tromey.com>
18088 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
18089 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
18091 2017-01-10 Tom Tromey <tom@tromey.com>
18093 * utils.h (htab_deleter): New struct.
18094 (htab_up): New typedef.
18095 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
18096 gdbpy_enter, gdbpy_ref, htab_up.
18098 2017-01-10 Tom Tromey <tom@tromey.com>
18100 * python/py-unwind.c (pending_frame_invalidate): Remove.
18101 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
18103 2017-01-10 Tom Tromey <tom@tromey.com>
18105 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
18106 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
18108 2017-01-10 Tom Tromey <tom@tromey.com>
18110 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
18112 2017-01-10 Tom Tromey <tom@tromey.com>
18114 * python/python.c (gdbpy_eval_from_control_command)
18115 (gdbpy_source_script, gdbpy_run_events)
18116 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
18117 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
18120 2017-01-10 Tom Tromey <tom@tromey.com>
18122 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
18124 2017-01-10 Tom Tromey <tom@tromey.com>
18126 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
18128 2017-01-10 Tom Tromey <tom@tromey.com>
18130 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
18131 (python_on_inferior_call_pre, python_on_inferior_call_post)
18132 (python_on_memory_change, python_on_register_change)
18133 (python_inferior_exit, python_new_objfile, add_thread_object)
18134 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
18136 2017-01-10 Tom Tromey <tom@tromey.com>
18138 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
18139 (bpfinishpy_handle_exit): Use gdbpy_enter.
18141 2017-01-10 Tom Tromey <tom@tromey.com>
18143 * python/py-cmd.c (cmdpy_destroyer)
18144 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
18147 2017-01-10 Tom Tromey <tom@tromey.com>
18149 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
18151 (gdbpy_breakpoint_has_cond): Likewise.
18153 2017-01-10 Tom Tromey <tom@tromey.com>
18155 * python/python.c (gdbpy_enter): New constructor.
18156 (~gdbpy_enter): New destructor.
18157 (restore_python_env, ensure_python_env): Rewrite.
18158 * python/python-internal.h (gdbpy_enter): New class.
18160 2017-01-10 Tom Tromey <tom@tromey.com>
18162 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
18164 2017-01-10 Tom Tromey <tom@tromey.com>
18166 * python/py-value.c (value_has_field, get_field_flag)
18167 (get_field_type, valpy_getitem, convert_value_from_python): Use
18170 2017-01-10 Tom Tromey <tom@tromey.com>
18172 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
18175 2017-01-10 Tom Tromey <tom@tromey.com>
18177 * python/py-prettyprint.c (search_pp_list)
18178 (find_pretty_printer_from_objfiles)
18179 (find_pretty_printer_from_progspace)
18180 (find_pretty_printer_from_gdb, find_pretty_printer)
18181 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
18184 2017-01-10 Tom Tromey <tom@tromey.com>
18186 * python/py-param.c (call_doc_function): Use gdbpy_ref.
18188 2017-01-10 Tom Tromey <tom@tromey.com>
18190 * python/py-linetable.c (build_line_table_tuple_from_pcs)
18191 (ltpy_get_all_source_lines): Use gdbpy_ref.
18193 2017-01-10 Tom Tromey <tom@tromey.com>
18195 * python/py-framefilter.c (extract_sym, extract_value)
18196 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
18199 2017-01-10 Tom Tromey <tom@tromey.com>
18201 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
18203 2017-01-10 Tom Tromey <tom@tromey.com>
18205 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
18207 2017-01-10 Tom Tromey <tom@tromey.com>
18209 * python/py-function.c (convert_values_to_python, fnpy_init): Use
18212 2017-01-10 Tom Tromey <tom@tromey.com>
18214 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
18216 2017-01-10 Tom Tromey <tom@tromey.com>
18218 * python/py-type.c (convert_field, make_fielditem, typy_fields)
18219 (typy_range): Use gdbpy_ref.
18221 2017-01-10 Tom Tromey <tom@tromey.com>
18223 * python/py-threadevent.c (create_thread_event_object): Use
18225 * python/py-stopevent.c (create_stop_event_object): Simplify.
18226 (emit_stop_event): Use gdbpy_ref.
18227 * python/py-signalevent.c (create_signal_event_object): Use
18229 * python/py-newobjfileevent.c (create_new_objfile_event_object)
18230 (emit_new_objfile_event, create_clear_objfiles_event_object)
18231 (emit_clear_objfiles_event): Use gdbpy_ref.
18232 * python/py-infevents.c (create_inferior_call_event_object)
18233 (create_register_changed_event_object)
18234 (create_memory_changed_event_object, emit_inferior_call_event)
18235 (emit_memory_changed_event, emit_register_changed_event): Use
18237 * python/py-exitedevent.c (create_exited_event_object)
18238 (emit_exited_event): Use gdbpy_ref.
18239 * python/py-event.h (evpy_emit_event): Remove
18240 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
18241 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
18242 * python/py-continueevent.c (emit_continue_event): Use
18244 * python/py-breakpoint.c (gdbpy_breakpoint_created)
18245 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
18247 * python/py-bpevent.c (create_breakpoint_event_object): Use
18250 2017-01-10 Tom Tromey <tom@tromey.com>
18252 * python/py-ref.h: New file.
18254 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
18256 * cli-out.c (cli_ui_out::do_redirect): Change return type to
18258 * cli-out.h (cli_ui_out::do_redirect): Likewise.
18259 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
18260 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
18261 * ui-out.c (ui_out::redirect): Likewise.
18262 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
18263 * cli/cli-logging.c (set_logging_redirect): Update call site of
18265 (handle_redirections): Likewise.
18266 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
18267 * top.c (execute_command_to_string): Likewise.
18268 * utils.c (do_ui_out_redirect_pop): Likewise.
18270 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
18272 * stack.c (_initialize_stack): Update "frame" command help message.
18274 2017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
18276 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
18278 2017-01-06 Yao Qi <yao.qi@linaro.org>
18280 * x86-linux-nat.h: Include gdb_proc_service.h.
18282 2017-01-06 Yao Qi <yao.qi@linaro.org>
18284 * ser-base.h: Include serial.h.
18286 2017-01-06 Yao Qi <yao.qi@linaro.org>
18288 * ppc-linux-tdep.h: Include ppc-tdep.h.
18290 2017-01-06 Yao Qi <yao.qi@linaro.org>
18292 * nat/amd64-linux-siginfo.h: Include signal.h.
18294 2017-01-06 Yao Qi <yao.qi@linaro.org>
18296 * nat/aarch64-linux-hw-point.h: Include break-common.h.
18298 2017-01-06 Yao Qi <yao.qi@linaro.org>
18300 * mi/mi-parse.h: Include mi-cmds.h.
18302 2017-01-06 Yao Qi <yao.qi@linaro.org>
18304 * inf-loop.c: Don't include "target.h".
18305 * inf-loop.h: Include it here.
18307 2017-01-06 Yao Qi <yao.qi@linaro.org>
18309 * dfp.h: Include "dboulest.h" and "expression.h".
18311 2017-01-06 Yao Qi <yao.qi@linaro.org>
18313 * ax-gdb.h: Include "ax.h".
18315 2017-01-06 Yao Qi <yao.qi@linaro.org>
18317 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
18318 with nat/gdb_ptrace.h.
18320 2017-01-05 Yao Qi <yao.qi@linaro.org>
18322 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
18324 (mips64_fbsd_sigframe_init): Likewise.
18326 2017-01-04 John Baldwin <jhb@FreeBSD.org>
18328 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
18329 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
18331 2017-01-04 John Baldwin <jhb@FreeBSD.org>
18333 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
18334 * NEWS: Mention new FreeBSD/mips native configuration.
18335 * config/mips/fbsd.mh: New file.
18336 * configure.host: Add mips*-*-freebsd*.
18337 * mips-fbsd-nat.c: New file.
18339 2017-01-04 John Baldwin <jhb@FreeBSD.org>
18341 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
18342 (ALLDEPFILES): Add mips-fbsd-tdep.c.
18343 * NEWS: Mention new FreeBSD/mips target.
18344 * configure.tgt: Add mips*-*-freebsd*.
18345 * mips-fbsd-tdep.c: New file.
18346 * mips-fbsd-tdep.h: New file.
18348 2017-01-04 Yao Qi <yao.qi@linaro.org>
18350 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
18351 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
18353 2017-01-01 Joel Brobecker <brobecker@adacore.com>
18355 Update copyright year range in all GDB files.
18357 2017-01-01 Joel Brobecker <brobecker@adacore.com>
18359 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
18361 For older changes see ChangeLog-2016.
18367 version-control: never