1 2017-12-13 Pedro Alves <palves@redhat.com>
3 * cli/cli-decode.c (complete_on_cmdlist, complete_on_enum): Use
4 make_completion_match_str.
5 * completer.c: Use gdb::unique_xmalloc_ptr and
6 make_completion_match_str.
7 (make_completion_match_str_1): New.
8 (make_completion_match_str(const char *, const char *,
10 (make_completion_match_str(gdb::unique_xmalloc_ptr<char> &&,
11 const char *, const char *)): New.
12 * completer.h (make_completion_match_str(const char *,
13 const char *, const char *)): New.
14 (make_completion_match_str(gdb::unique_xmalloc_ptr<char> &&,
15 const char *, const char *)): New.
16 * interps.c (interpreter_completer): Use make_completion_match_str.
17 * symtab.c (completion_list_add_name, add_filename_to_list): Use
18 make_completion_match_str.
20 2017-12-13 Stafford Horne <shorne@gmail.com>
22 * or1k-tdep.c (or1k_analyse_inst): Use _() wrapper for message
24 (or1k_unwind_pc): Use paddress() instead of %p.
25 (or1k_unwind_sp): Likewise.
26 (or1k_frame_cache): Use host_address_to_string()/paddress()
27 instead of %p and use _() wrapper for message strings.
29 2017-12-13 Simon Marchi <simon.marchi@ericsson.com>
31 * contrib/ari/gdb_ari.sh: Fix typo in help.
33 2017-12-13 Joel Brobecker <brobecker@adacore.com>
35 * event-top.c (handle_line_of_input): Set server_command.
37 2017-12-12 Stafford Horne <shorne@gmail.com>
38 Stefan Wallentowitz <stefan@wallentowitz.de>
39 Stefan Kristiansson <stefan.kristiansson@saunalahti.fi>
40 Franck Jullien <franck.jullien@gmail.com>
41 Jeremy Bennett <jeremy.bennett@embecosm.com>
43 * configure.tgt: Add targets for or1k and or1knd.
44 * or1k-tdep.c: New file.
45 * or1k-tdep.h: New file.
46 * features/Makefile: Add or1k.xml to build.
47 * features/or1k.xml: New file.
48 * features/or1k-core.xml: New file.
49 * features/or1k.c: Generated.
51 2017-12-12 Alan Modra <amodra@gmail.com>
54 * ppc64-tdep.c (ppc64_plt_entry_point): Rewrite to take TOC-relative
55 PLT offset, and retrieve r2 from stack when executing in reverse.
56 (ppc64_standard_linkage1_target): Drop pc param. Calculate offset
57 rather than PLT address.
58 (ppc64_standard_linkage2_target): Likewise.
59 (ppc64_standard_linkage3_target): Likewise.
60 (ppc64_standard_linkage4_target): Likewise.
61 (ppc64_skip_trampoline_code_1): Adjust to suit.
63 2017-12-11 Simon Marchi <simon.marchi@ericsson.com>
66 * remote.c (remote_thread_name): Return NULL if name is empty.
67 (remote_threads_extra_info): Return NULL if extra info is empty.
69 2017-12-11 Pedro Alves <palves@redhat.com>
71 * defs.h (elf_sym_fns_lazy_psyms, elf_sym_fns_gdb_index)
72 (elf_sym_fns_debug_names): Move to elfread.c.
73 * dwarf2read.c (dwarf2_initialize_objfile): Return a boolean
74 instead of a sym_fns and add 'index_kind' output parameter. Fill
75 the latter in with the index variant kind if using an index.
76 (enum dw_index_kind): Moved to symfile.h.
77 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_debug_names)
78 (elf_sym_fns_lazy_psyms): Move from defs.h.
79 (elf_symfile_read): Adjust to new dwarf2_initialize_objfile
81 * symfile.h (enum class dw_index_kind): New, moved from
83 (dwarf2_initialize_objfile): Change prototype.
85 2017-12-11 Ulrich Weigand <uweigand@de.ibm.com>
87 * target-float.c (mpfr_float_ops::from_target): Use mpfr_set_ui
88 instead of mpfr_set_si to convert mantissa bits.
90 2017-12-11 Xavier Roirand <roirand@adacore.com>
91 Joel Brobecker <brobecker@adacore.com>
93 * ada-lang.c (ada_tag_value_at_base_address): Change the way
94 tagged type base address is computed.
95 (enum ada_primitive_types) <ada_primitive_type_storage_offset>:
97 (ada_language_arch_info): Set the ada_primitive_type_storage_offset
98 element of lai->primitive_type_vector.
100 2017-12-08 Pedro Alves <palves@redhat.com>
102 * dwarf2read.c (mock_mapped_index): Reimplement as an extension of
104 (check_match): Adjust to use mock_index directly.
105 (check_find_bounds_finds)
106 (test_mapped_index_find_name_component_bounds): Adjust to work
107 with a mapped_index_base.
109 2017-12-08 Pedro Alves <palves@redhat.com>
111 * dwarf2read.c (struct mapped_index_base): New, partially factored
113 (struct mapped_index): ... this. Inherit mapped_index_base.
114 (mapped_index::symbol_name_slot_invalid):
115 (mapped_index::symbol_name_at): Add override marker.
116 (mapped_index::symbol_name_count): New.
117 (struct mapped_debug_names): Inherit mapped_index_base.
118 (mapped_debug_names::symbol_name_at): New.
119 (mapped_debug_names::symbol_name_count): New.
120 (mapped_index::find_name_components_bounds): Rename to ...
121 (mapped_index_base::find_name_components_bounds): ... this.
122 (mapped_index::build_name_components): Rename to ...
123 (mapped_index_base::build_name_components): ... this. Adjust to
124 use mapped_index_base::symbol_name_count and
125 mapped_index_base::symbol_name_slot_invalid.
126 (dw2_expand_symtabs_matching_symbol): Take a mapped_index_base
127 instead of a mapped_index. Use
128 dw2_expand_symtabs_matching_symbol.
130 2017-12-08 Pedro Alves <palves@redhat.com>
132 * dwarf2read.c (mapped_index::symbol_table_slot): New.
133 (mapped_index::address_table): Now a gdb::array_view of const
135 (mapped_index::symbol_table): Now a gdb::array_view of
137 (mapped_index::address_table_size)
138 (mapped_index::symbol_table_slots): Delete.
139 (create_addrmap_from_index): Adjust.
140 (find_slot_in_mapped_hash): Adjust.
141 (read_index_from_section): Adjust.
142 (dwarf2_read_index): Adjust.
144 2017-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
145 Pedro Alves <palves@redhat.com>
147 * defs.h (elf_sym_fns_debug_names): New declaration.
148 * dwarf2read.c: Include "hash_enum.h".
149 (mapped_debug_names): New.
150 (struct dwarf2_per_objfile): Add debug_names, debug_aranges and
152 (dwarf2_elf_names): Add ".debug_names" and ".debug_aranges".
153 (struct dwz_file): Add debug_names.
154 (dwarf2_per_objfile::locate_sections): Handle debug_names and
156 (locate_dwz_sections): Handle debug_names.
157 (create_signatured_type_table_from_debug_names)
158 (create_addrmap_from_aranges): New.
159 (dwarf2_read_index): Update function comment.
160 (dwarf5_augmentation): Moved up.
161 (read_debug_names_from_section, create_cus_from_debug_names_list)
162 (create_cus_from_debug_names, dwarf2_read_debug_names): New.
163 (dwarf5_djb_hash): Moved up.
164 (dw2_debug_names_iterator): New.
165 (read_indirect_string_at_offset): New declaration.
166 (mapped_debug_names::namei_to_name)
167 (dw2_debug_names_iterator::find_vec_in_debug_names)
168 (dw2_debug_names_iterator::next, dw2_debug_names_lookup_symbol)
169 (dw2_debug_names_dump, dw2_debug_names_expand_symtabs_for_function)
170 (dw2_debug_names_expand_symtabs_matching, dwarf2_debug_names_functions):
172 (dwarf2_initialize_objfile): Return also elf_sym_fns_debug_names.
173 (debug_names::djb_hash): Rename it to dwarf5_djb_hash.
174 (debug_names::build): Update djb_hash caller.
175 (write_debug_names): Move out and rename augmentation to
177 * elfread.c (elf_sym_fns_debug_names): New.
178 * psymtab.h (dwarf2_debug_names_functions): New declaration.
179 * symfile.h (struct dwarf2_debug_sections): Add debug_names and
181 * xcoffread.c (dwarf2_xcoff_names): Add debug_names and debug_aranges.
183 2017-12-08 Pedro Alves <palves@redhat.com>
185 * common/hash_enum.h: New file.
187 2017-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
189 * dwarf2read.c (create_cu_from_index_list): New from ...
190 (create_cus_from_index_list): ... this function, use it.
191 (dw_expand_symtabs_matching_file_matcher)
192 (dw2_expand_symtabs_matching_one): New from ...
193 (dw2_expand_symtabs_matching): ... this function, use them.
195 2017-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
197 * defs.h (elf_sym_fns_lazy_psyms, elf_sym_fns_gdb_index): Move here
198 declarations from elfread.c.
199 (dwarf2_initialize_objfile): Change return value.
200 * elfread.c (elf_sym_fns_lazy_psyms, elf_sym_fns_gdb_index): Move these
201 declarations to defs.h.
202 (elf_symfile_read): Adjust dwarf2_initialize_objfile caller.
203 * symfile.h (dwarf2_initialize_objfile): Change return type.
205 2017-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
206 Pedro Alves <palves@redhat.com>
208 * contrib/gdb-add-index.sh (index): Rename to ...
210 (index5, debugstr, debugstrmerge, debugstrerr): New variables.
211 Support also .debug_names and .debug_str.
212 * dwarf2read.c: Include cmath, set, list.
213 (INDEX_SUFFIX): Rename to ...
214 (INDEX4_SUFFIX): ... here.
215 (INDEX5_SUFFIX, DEBUG_STR_SUFFIX): New.
216 (file_write(FILE *, const void *, size_t)): New.
217 (file_write(FILE *, const std::vector<Elem, Alloc> &)): New.
218 (data_buf::append_unsigned_leb128, data_buf::empty): New.
219 (data_buf::file_write): Use ::file_write.
220 (data_buf::c_str, dwarf5_djb_hash, debug_names)
221 (check_dwarf64_offsets): New.
222 (psyms_seen_size, write_gdbindex): New from
223 write_psymtabs_to_index code.
224 (dwarf5_gdb_augmentation, write_debug_names, assert_file_size)
225 (enum dw_index_kind): New.
226 (write_psymtabs_to_index): New parameter index_kind. Support
227 filename_str and out_file_str. Move code to write_gdbindex,
228 possibly call write_debug_names.
229 (save_gdb_index_command): New parameter -dwarf-5.
230 (_initialize_dwarf2_read): Document the new parameter -dwarf-5.
232 2017-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
233 Pedro Alves <palves@redhat.com>
235 * contrib/cc-with-tweaks.sh: Change interpreter to bash, incl. initial
237 (GDB_ADD_INDEX): New variable.
238 <$want_index>: Call $GDB_ADD_INDEX.
240 2017-12-08 Sergio Durigan Junior <sergiodj@redhat.com>
242 * dtrace-probe.c (dtrace_process_dof_probe): Do not declare a new
243 "expression_up" inside the TRY block.
245 2017-12-08 Yao Qi <yao.qi@linaro.org>
247 * breakpoint.c (update_watchpoint): Call
250 2017-12-08 Yao Qi <yao.qi@linaro.org>
252 * breakpoint.c (adjust_breakpoint_address): Call
255 2017-12-08 Yao Qi <yao.qi@linaro.org>
257 * aarch64-tdep.c (aarch64_gdbarch_init): Install gdbarch
258 significant_addr_bit.
259 * gdbarch.sh (significant_addr_bit): New.
260 * gdbarch.c, gdbarch.h: Re-generated.
261 * target.c (memory_xfer_partial): Call address_significant.
262 * utils.c (address_significant): New function.
263 * utils.h (address_significant): Declare.
265 2017-12-08 Tom Tromey <tom@tromey.com>
267 * printcmd.c (ui_printf): Update. Use std::vector.
268 * common/format.h (struct format_piece): Add constructor.
270 (class format_pieces): New class.
271 (parse_format_string, free_format_pieces)
272 (free_format_pieces_cleanup): Remove.
273 * common/format.c (format_pieces::format_pieces): Rename from
274 parse_format_string. Update.
275 (free_format_pieces, free_format_pieces_cleanup): Remove.
276 * breakpoint.c (parse_cmd_to_aexpr): Update. Use std::vector.
277 * ax-gdb.h (gen_printf): Remove argument.
278 * ax-gdb.c (gen_printf): Remove "frags" argument.
279 (maint_agent_printf_command): Update. Use std::vector.
281 2017-12-08 Yao Qi <yao.qi@linaro.org>
284 * linespec.c (minsym_found): Set sal.section.
286 2017-12-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
288 * configure.tgt (s390*-*-linux*): Add symfile-mem.o.
290 2017-12-07 Keith Seitz <keiths@redhat.com>
293 * location.c (string_to_explicit_location): When terminating
294 parsing early, break out of enclosing loop instead of returning.
296 2017-12-07 Keith Seitz <keiths@redhat.com>
298 * NEWS (New commands): Mention set/show print type nested-type-limit.
299 * c-typeprint.c (c_type_print_base): Print out nested types.
300 * dwarf2read.c (struct typedef_field_list): Rename to ...
301 (struct decl_field_list): ... this. Change all uses.
302 (struct field_info) <nested_types_list, nested_types_list_count>:
304 (add_partial_symbol): Look for nested type definitions in C++, too.
305 (dwarf2_add_typedef): Rename to ...
306 (dwarf2_add_type_defn): ... this.
307 (type_can_define_types): New function.
308 Update assertion to use type_can_define_types.
309 Permit NULL for a field's name.
310 (process_structure_scope): Handle child DIEs of types that can
312 Copy the list of nested types into the type struct.
313 * gdbtypes.h (struct typedef_field): Rename to ...
314 (struct decl_field): ... this. Change all uses.
315 [is_protected, is_private]: New fields.
316 (struct cplus_struct_type) <nested_types, nested_types_count>: New
318 (TYPE_NESTED_TYPES_ARRAY, TYPE_NESTED_TYPES_FIELD)
319 (TYPE_NESTED_TYPES_FIELD_NAME, TYPE_NESTED_TYPES_FIELD_TYPE)
320 (TYPE_NESTED_TYPES_COUNT, TYPE_NESTED_TYPES_FIELD_PROTECTED)
321 (TYPE_NESTED_TYPES_FIELD_PRIVATE): New macros.
322 * typeprint.c (type_print_raw_options, default_ptype_flags): Add
323 default value for print_nested_type_limit.
324 (print_nested_type_limit): New static variable.
325 (set_print_type_nested_types, show_print_type_nested_types): New
327 (_initialize_typeprint): Register new commands for set/show
328 `print-nested-type-limit'.
329 * typeprint.h (struct type_print_options) [print_nested_type_limit]:
332 2017-12-07 Tom Tromey <tom@tromey.com>
334 PR breakpoints/22511:
335 * breakpoint.c (commands_command_1): Don't throw an exception when
336 no commands have been read.
338 2017-12-07 Adam Stylinski <adam.stylinski@etegent.com>
341 * target-descriptions.c (print_c_tdesc::visit_pre): Change type of
344 2017-12-07 Simon Marchi <simon.marchi@ericsson.com>
346 * common/selftest.h (struct selftest): Add virtual destructor.
348 2017-12-07 Phil Muldoon <pmuldoon@redhat.com>
350 * python/py-breakpoint.c (bppy_init): Use string_to_event_location
351 over basic location code. Implement explicit location keywords.
352 (bppy_init_validate_args): New function.
353 * NEWS: Document Python explicit breakpoint locations.
355 2017-12-07 Joel Brobecker <brobecker@adacore.com>
357 * MAINTAINERS: Restore target entries for m68hc11-elf,
358 score-elf and xstormy16-elf, incorrectly removed in a previous
359 patch meant to only update the list of active maintainers.
361 2017-12-06 Pedro Alves <palves@redhat.com>
363 * break-catch-syscall.c (insert_catch_syscall)
364 (remove_catch_syscall): Adjust to pass reference to
365 inf_data->syscalls_counts directly via gdb::array_view.
366 * fbsd-nat.c (fbsd_set_syscall_catchpoint): Adjust to use bool
368 * linux-nat.c (linux_child_set_syscall_catchpoint): Likewise.
369 * remote.c (remote_set_syscall_catchpoint): Likewise.
370 * target-debug.h (target_debug_print_bool): New.
371 (define target_debug_print_gdb_array_view_const_int): New.
372 * target-delegates.c: Regenerate.
373 * target.h (target_ops) <to_set_syscall_catchpoint>: Use
374 gdb::array_view and bool.
375 (target_set_syscall_catchpoint): Likewise.
377 2017-12-06 Simon Marchi <simon.marchi@ericsson.com>
379 * break-catch-syscall.c (catch_syscall_completer): Get pointers
380 to syscall group strings after building the string vector.
382 2017-12-06 Pedro Alves <palves@redhat.com>
384 * remote.c (remote_query_supported): Don't send "xmlRegisters=" if
385 "qXfer:features:read"" is disabled.
386 (remote_write_qxfer, remote_read_qxfer, remote_search_memory):
387 Check packet_config_support instead of packet->support directly.
389 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
391 * target-descriptions.c (struct tdesc_feature) <registers>: Use
392 tdesc_reg_up typedef.
393 (struct target_desc) <features>: Use tdesc_feature_up typedef.
395 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
397 * target-descriptions.c (struct tdesc_type): Use default
401 (struct tdesc_type_builtin): New.
402 (struct tdesc_type_vector): New.
403 (struct tdesc_type_with_fields): New.
404 (tdesc_predefined_types): Change type to tdesc_type_builtin[].
405 (tdesc_gdb_type): Remove.
406 (tdesc_register_type): Adjust.
407 (tdesc_create_vector): Create tdesc_type_vector.
408 (tdesc_create_struct): Create tdesc_type_with_fields.
409 (tdesc_set_struct_size): Change parameter type.
410 (tdesc_create_union): Create tdesc_type_with_fields.
411 (tdesc_create_flags): Likewise.
412 (tdesc_create_enum): Likewise.
413 (tdesc_add_field): Change parameter type.
414 (tdesc_add_typed_bitfield): Likewise.
415 (tdesc_add_bitfield): Likewise.
416 (tdesc_add_flag): Likewise.
417 (tdesc_add_enum_value): Likewise.
418 (print_c_tdesc) <visit>: Remove overload with tdesc_type
419 parameter, add overloads for tdesc_type_builtin,
420 tdesc_type_with_fields and tdesc_type_vector.
421 <m_printed_type>: Remove.
422 <m_printed_element_type, m_printed_type_with_fields>: Add.
423 * target-descriptions.h (tdesc_create_enum): Change return type.
424 (tdesc_add_typed_bitfield): Change parameter type.
425 (tdesc_add_enum_value): Change parameter type.
426 * xml-tdesc.c (struct tdesc_parsing_data) <current_type>: Change
427 type to tdesc_type_with_fields.
428 (tdesc_start_struct): Adjust.
429 (tdesc_start_flags): Adjust.
430 (tdesc_start_enum): Adjust.
431 (tdesc_start_field): Adjust.
432 * arch/tdesc.h (struct tdesc_type_builtin): Forward-declare.
433 (struct tdesc_type_vector): Forward-declare.
434 (struct tdesc_type_with_fields): Forward-declare.
435 (tdesc_create_struct): Change return type.
436 (tdesc_create_union): Likewise.
437 (tdesc_create_flags): Likewise.
438 (tdesc_add_field): Change parameter type.
439 (tdesc_set_struct_size): Likewise.
440 (tdesc_add_bitfield): Likewise.
441 (tdesc_add_flag): Likewise.
442 * features: Re-generate C files.
444 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
446 * target-descriptions.c (tdesc_arch_reg): Remove typedef.
447 (struct tdesc_arch_reg): Add constructor.
448 (DEF_VEC_O (tdesc_arch_reg)): Remove.
449 (struct tdesc_arch_data): Initialize fields.
450 <arch_regs>: Change type to std::vector.
451 (target_find_description): Adjust.
452 (tdesc_find_type): Adjust.
453 (tdesc_data_init): Call tdesc_arch_data constructor.
454 (tdesc_data_alloc): Allocate tdesc_arch_data with new.
455 (tdesc_data_cleanup): Free data with delete.
456 (tdesc_numbered_register): Adjust.
457 (tdesc_find_arch_register): Adjust.
458 (tdesc_use_registers): Adjust.
460 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
462 * target-descriptions.c (tdesc_type_field): Remove typedef.
463 (DEF_VEC_O (tdesc_type_field)): Remove.
464 (struct tdesc_type_field): Add constructor.
465 <name>: Change type to std::string.
466 (struct tdesc_type) <tdesc_type>: Instantiate vector if the type
468 <~tdesc_type>: Destroy vector if the type kind uses it.
469 <u::u::fields>: Change type to std::vector.
470 (tdesc_gdb_type): Adjust.
471 (tdesc_add_field): Adjust.
472 (tdesc_add_typed_bitfield): Adjust.
473 (tdesc_add_field): Adjust.
474 (tdesc_add_enum_value): Adjust.
475 (class print_c_tdesc) <visit>: Adjust.
477 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
479 * target-descriptions.c (struct tdesc_type) <name>: Change type
481 <~tdesc_type>: Don't manually free name.
482 <operator==>: Adjust.
483 (tdesc_named_type): Adjust.
484 (tdesc_find_type): Adjust.
485 (tdesc_gdb_type): Adjust.
486 (class print_c_tdesc) <visit>: Adjust.
488 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
490 * target-descriptions.c (tdesc_type_p): Remove typedef.
491 (DEF_VEC_P (tdesc_type_p)): Remove.
492 (struct tdesc_feature) <types>: Change type to std::vector.
493 <~tdesc_feature>: Replace with default implementation.
495 (tdesc_named_type): Adjust.
496 (tdesc_create_vector): Adjust.
497 (tdesc_create_struct): Adjust.
498 (tdesc_create_union): Adjust.
499 (tdesc_create_flags): Adjust.
500 (tdesc_create_enum): Adjust.
502 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
504 * target-descriptions.c (struct tdesc_reg) <tdesc_reg>: Change
505 type of name_ parameter, adjust to std::string change.
506 <name, group, type>: Change type to std::string.
507 <~tdesc_reg>: Replace with default implementation.
508 <operator==>: Adjust.
509 (tdesc_find_register_early): Adjust.
510 (tdesc_register_name): Adjust.
511 (tdesc_register_type): Adjust.
512 (tdesc_register_in_reggroup_p): Adjust.
513 (class print_c_tdesc) <visit>: Adjust.
514 (class print_c_feature) <visit>: Adjust.
515 * features/arc-arcompact.c: Re-generate.
516 * features/arc-v2.c: Re-generate.
518 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
520 * target-descriptions.c (tdesc_reg_p): Remove typedef.
521 (DEF_VEC_P (tdesc_reg_p)): Remove.
522 (struct tdesc_feature) <registers>: Change type to std::vector.
523 <~tdesc_feature>: Don't manually free registers.
525 <operator==>: Adjust.
526 (tdesc_has_registers): Adjust.
527 (tdesc_find_register_early): Adjust.
528 (tdesc_use_registers): Adjust.
529 (tdesc_create_reg): Adjust.
531 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
533 * target-descriptions.c (tdesc_feature) <name>: Change type to
535 <~tdesc_feature>: Don't manually free name.
536 <operator==>: Adjust.
537 (tdesc_find_feature): Adjust.
538 (tdesc_feature_name): Adjust.
539 (class print_c_tdesc) <visit_pre>: Adjust.
540 (class print_c_feature) <visit_pre>: Adjust.
542 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
544 * target-descriptions.c (tdesc_feature_p): Remove typedef.
545 (DEF_VEC_P (tdesc_feature_p)): Remove.
546 (struct target_desc) <features>: Change type to std::vector.
547 <~target_desc>: Replace with default implementation.
549 <operator==>: Adjust.
550 (tdesc_has_registers): Adjust.
551 (tdesc_find_feature): Adjust.
552 (tdesc_use_registers): Adjust.
553 (tdesc_create_feature): Adjust.
555 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
557 * target-descriptions.c (arch_p): Remove typedef.
558 (DEF_VEC_P (arch_p)): Remove.
559 (struct target_desc) <compatible>: Change type to std::vector.
560 <~target_desc>: Don't manually free compatible.
561 (tdesc_compatible_p): Adjust.
562 (tdesc_add_compatible): Adjust.
563 (class print_c_tdesc) <visit_pre>: Adjust.
565 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
567 * target-descriptions.c (property_s): Remove typedef.
568 (DEF_VEC_O (property_s)): Remove.
569 (struct target_desc) <properties>: Make an std::vector.
570 <~target_desc>: Don't manually free properties.
571 (tdesc_property): Adjust.
572 (set_tdesc_property): Adjust.
573 (class print_c_tdesc) <visit_pre>: Adjust.
575 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
577 * common/gdb_assert.h (gdb_static_assert): Redefine using
580 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
582 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
584 (ada_is_redundant_range_encoding): Likewise.
585 * ada-varobj.c (ada_varobj_get_value_of_array_variable):
587 * alpha-tdep.c (alpha_software_single_step): Likewise.
588 * arm-tdep.c (_initialize_arm_tdep): Likewise.
589 * auto-load.c (info_auto_load_cmd): Likewise.
590 * break-catch-syscall.c (insert_catch_syscall): Likewise.
591 (remove_catch_syscall): Likewise.
592 * breakpoint.c (condition_completer): Likewise.
593 (clear_command): Likewise.
594 (update_breakpoint_locations): Likewise.
595 * btrace.c (btrace_disable): Likewise.
596 (btrace_teardown): Likewise.
597 (btrace_maint_update_pt_packets): Likewise.
598 (maint_btrace_clear_cmd): Likewise.
599 * cli/cli-decode.c (lookup_cmd_1): Likewise.
600 (lookup_cmd_composition): Likewise.
601 * cli/cli-dump.c (scan_filename): Likewise.
602 (restore_command): Likewise.
603 * compile/compile-loc2c.c (compute_stack_depth): Likewise.
604 * compile/compile-object-load.c (compile_object_load): Likewise.
605 * compile/compile-object-run.c (compile_object_run): Likewise.
606 * compile/compile.c (compile_to_object): Likewise.
607 * completer.c (filename_completer): Likewise.
608 (complete_files_symbols): Likewise.
609 (complete_expression): Likewise.
610 * corelow.c (core_open): Likewise.
611 * ctf.c (ctf_start): Likewise.
612 (ctf_write_status): Likewise.
613 (ctf_write_uploaded_tsv): Likewise.
614 (ctf_write_definition_end): Likewise.
615 (ctf_open_dir): Likewise.
616 (ctf_xfer_partial): Likewise.
617 (ctf_trace_find): Likewise.
618 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
620 * dwarf2loc.c (allocate_piece_closure): Likewise.
621 (indirect_pieced_value): Likewise.
622 (dwarf2_evaluate_loc_desc_full): Likewise.
623 * dwarf2read.c (dw2_expand_marked_cus): Likewise.
624 (dw2_expand_symtabs_matching): Likewise.
625 (dw2_map_symbol_filenames): Likewise.
626 (read_and_check_comp_unit_head): Likewise.
627 (read_cutu_die_from_dwo): Likewise.
628 (lookup_dwo_unit): Likewise.
629 (read_comp_units_from_section): Likewise.
630 (dwarf2_compute_name): Likewise.
631 (handle_DW_AT_stmt_list): Likewise.
632 (create_cus_hash_table): Likewise.
633 (create_dwp_v2_section): Likewise.
634 (dwarf2_rnglists_process): Likewise.
635 (dwarf2_ranges_process): Likewise.
636 (dwarf2_record_block_ranges): Likewise.
637 (is_vtable_name): Likewise.
638 (read_formatted_entries): Likewise.
639 (skip_form_bytes): Likewise.
640 * elfread.c (elf_symtab_read): Likewise.
641 * exec.c (exec_file_command): Likewise.
642 * f-valprint.c (f_val_print): Likewise.
643 (info_common_command_for_block): Likewise.
644 * guile/guile.c (initialize_scheme_side): Likewise.
645 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Likewise.
646 * guile/scm-cmd.c (cmdscm_completer): Likewise.
647 (gdbscm_register_command_x): Likewise.
648 * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
649 * guile/scm-param.c (gdbscm_parameter_value): Likewise.
650 * guile/scm-ports.c (file_port_magic): Likewise.
651 * guile/scm-pretty-print.c (ppscm_search_pp_list): Likewise.
652 (ppscm_pretty_print_one_value): Likewise.
653 (ppscm_print_children): Likewise.
654 * guile/scm-string.c (gdbscm_string_to_argv): Likewise.
655 * guile/scm-symtab.c (gdbscm_sal_symtab): Likewise.
656 * guile/scm-type.c (gdbscm_type_next_field_x): Likewise.
657 * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
658 * i386-tdep.c (i386_register_reggroup_p): Likewise.
659 * infcmd.c (run_command_1): Likewise.
660 (until_next_fsm_clean_up): Likewise.
661 * linespec.c (linespec_complete): Likewise.
662 (find_label_symbols): Likewise.
663 * m2-valprint.c (m2_val_print): Likewise.
664 * memattr.c (require_user_regions): Likewise.
665 (lookup_mem_region): Likewise.
666 (disable_mem_command): Likewise.
667 (mem_delete): Likewise.
668 * mep-tdep.c (mep_register_name): Likewise.
669 (mep_analyze_prologue): Likewise.
670 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Likewise.
671 * mi/mi-interp.c (mi_on_sync_execution_done): Likewise.
672 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
673 * microblaze-linux-tdep.c (microblaze_linux_init_abi): Likewise.
674 * minidebug.c (lzma_open): Likewise.
675 * minsyms.c (lookup_minimal_symbol): Likewise.
676 * mips-linux-tdep.c (mips64_fill_fpregset): Likewise.
677 * mips-tdep.c (mips_stub_frame_sniffer): Likewise.
678 (mips_o64_return_value): Likewise.
679 (mips_single_step_through_delay): Likewise.
680 (_initialize_mips_tdep): Likewise.
681 * nios2-tdep.c (nios2_push_dummy_call): Likewise.
682 (nios2_software_single_step): Likewise.
683 * parse.c (find_minsym_type_and_address): Likewise.
684 * psymtab.c (psym_relocate): Likewise.
685 * python/py-breakpoint.c (bppy_get_commands): Likewise.
686 (gdbpy_breakpoint_modified): Likewise.
687 * python/py-infevents.c (create_inferior_call_event_object):
689 * python/py-record-btrace.c (btpy_list_item): Likewise.
690 * python/py-type.c (typy_str): Likewise.
691 * python/py-value.c (valpy_call): Likewise.
692 * python/python.c (do_start_initialization): Likewise.
693 * record-btrace.c (record_btrace_insn_history_range): Likewise.
694 (record_btrace_call_history_range): Likewise.
695 (record_btrace_record_method): Likewise.
696 (record_btrace_xfer_partial): Likewise.
697 (btrace_get_frame_function): Likewise.
698 * record-full.c (record_full_open): Likewise.
699 * record.c (get_context_size): Likewise.
700 * registry.h (DEFINE_REGISTRY): Likewise.
701 * remote-fileio.c (remote_fileio_request): Likewise.
702 * remote.c (remote_update_thread_list): Likewise.
703 (remote_check_symbols): Likewise.
704 (remote_commit_resume): Likewise.
705 (remote_interrupt): Likewise.
706 (remote_insert_breakpoint): Likewise.
707 (compare_sections_command): Likewise.
708 * rust-exp.y (super_name): Likewise.
709 (lex_string): Likewise.
710 (convert_ast_to_type): Likewise.
711 (convert_ast_to_expression): Likewise.
712 * rust-lang.c (rust_print_struct_def): Likewise.
713 (rust_print_type): Likewise.
714 (rust_evaluate_subexp): Likewise.
715 * rx-tdep.c (rx_register_type): Likewise.
716 * ser-event.c (serial_event_clear): Likewise.
717 * serial.c (serial_open): Likewise.
718 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
719 * symfile.c (section_is_overlay): Likewise.
720 (overlay_unmapped_address): Likewise.
721 (overlay_mapped_address): Likewise.
722 (simple_overlay_update_1): Likewise.
723 (simple_overlay_update): Likewise.
724 * symtab.c (symbol_find_demangled_name): Likewise.
725 (search_symbols): Likewise.
726 * target-descriptions.c (tdesc_predefined_type): Likewise.
727 * target.c (target_commit_resume): Likewise.
728 * thread.c (print_selected_thread_frame): Likewise.
729 * top.c (new_ui_command): Likewise.
730 (gdb_readline_no_editing): Likewise.
731 * tracefile-tfile.c (tfile_open): Likewise.
732 * tracepoint.c (create_tsv_from_upload): Likewise.
733 * utils.c (quit): Likewise.
734 (defaulted_query): Likewise.
735 * valarith.c (value_concat): Likewise.
736 * xml-syscall.c (xml_list_syscalls_by_group): Likewise.
737 * xml-tdesc.c (target_fetch_description_xml): Likewise.
738 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
739 (xtensa_pseudo_register_write): Likewise.
741 2017-12-04 Tom Tromey <tom@tromey.com>
743 * NEWS: Mention Rust trait object inspection.
745 2017-12-04 Pedro Alves <palves@redhat.com>
748 * amd64-tdep.c (amd64_insn::rex_offset): Rename to...
749 (amd64_insn::enc_prefix_offset): ... this, and tweak comment.
750 (vex2_prefix_p, vex3_prefix_p): New functions.
751 (amd64_get_insn_details): Adjust to rename. Also skip VEX2 and
753 (fixup_riprel): Set VEX3.!B.
755 2017-12-03 Simon Marchi <simon.marchi@ericsson.com>
757 * target.h (mem_region_vector): Remove.
758 (struct target_ops) <to_memory_map>: Change return type to
759 std::vector<mem_region>.
760 * target-debug.h (target_debug_print_mem_region_vector): Rename
762 (target_debug_print_std_vector_mem_region): ... this.
763 * target-delegates.c: Re-generate.
765 2017-12-03 Pedro Alves <palves@redhat.com>
767 * make-target-delegates (munge_type): Also munge '<', '>', and
768 ':'. Avoid double underscores in identifiers, and trailing
771 (target_debug_print_VEC_static_tracepoint_marker_p__p): Rename to
773 (target_debug_print_VEC_static_tracepoint_marker_p_p): ... this.
774 * target-delegates.c: Regenerate.
776 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
778 * common/poison.h (XDELETE): Fix typo.
780 2017-12-01 Andrew Cagney <cagney@redhat.com>
781 Joel Brobecker <brobecker@adacore.com>
782 Sergio Durigan Junior <sergiodj@redhat.com>
784 * NEWS (Changes since GDB 8.0: Mention new '--readnever'
786 * coffread.c (coff_symfile_read): Do not map over sections with
787 'coff_locate_sections' if readnever is on.
788 * dwarf2read.c (dwarf2_has_info): Return 0 if
790 * elfread.c (elf_symfile_read): Do not map over sections with
791 'elf_locate_sections' if readnever is on.
792 * main.c (validate_readnow_readnever): New function.
793 (captured_main_1): Add support for --readnever.
794 (print_gdb_help): Document --readnever.
795 * objfile-flags.h (enum objfile_flag) <OBJF_READNEVER>: New
797 * symfile.c (readnever_symbol_files): New global.
798 (symbol_file_add_with_addrs): Set 'OBJF_READNEVER' when
799 'READNEVER_SYMBOL_FILES' is set.
800 (validate_readnow_readnever): New function.
801 (symbol_file_command): Handle '-readnever' option.
802 Call 'validate_readnow_readnever'.
803 (add_symbol_file_command): Handle '-readnever' option.
804 Call 'validate_readnow_readnever'.
805 (_initialize_symfile): Document new '-readnever' option for
806 both 'symbol-file' and 'add-symbol-file' commands.
807 * top.h (readnever_symbol_files): New extern global.
808 * xcoffread.c (xcoff_initial_scan): Do not read debug
809 information if readnever is on.
811 2017-12-01 Sergio Durigan Junior <sergiodj@redhat.com>
813 * symfile.c (symbol_file_command): Call
814 'symbol_file_add_main_1' only after processing all command
816 (add_symbol_file_command): Modify logic to make arguments
817 position-independent.
819 2017-12-01 Joel Brobecker <brobecker@adacore.com>
821 * ada-lang.c (symbol_list_obstack): Delete.
822 (resolve_subexp): Make sure "candidates" gets xfree'ed.
823 (ada_lookup_symbol_list_worker): Remove the limitation that
824 the result is only good until the next call, now making it
825 the responsibility of the caller to free the result when no
826 longer needed. Adjust the function's intro comment accordingly.
827 (ada_lookup_symbol_list): Adjust the function's intro comment.
828 (ada_iterate_over_symbols): Make sure "results" gets xfree'ed.
829 (ada_lookup_encoded_symbol, get_var_value): Likewise.
830 (_initialize_ada_language): Remove symbol_list_obstack
832 * ada-exp.y (block_lookup): Make sure "syms" gets xfree'ed.
833 (write_var_or_type, write_name_assoc): Likewise.
835 2017-12-01 Tom Tromey <tom@tromey.com>
837 * Makefile.in (all_deps_files): New variable.
838 Include .Po files using all_deps_files.
840 2017-12-01 Joel Brobecker <brobecker@adacore.com>
842 * MAINTAINERS: Update list of maintainers, moving those who
843 stepped down or became inactive to the "Past Maintainers"
846 2017-11-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
848 * configure.ac Don't check for sys/fault.h, sys/syscall.h,
850 (NEW_PROC_API): Remove.
851 (prsysent_t, pr_sigset_t, pr_sigaction64_t, pr_siginfo64_t):
853 * common/common.m4 (GDB_AC_COMMON): Don't check for sys/syscall.h.
854 * configure: Regenerate.
855 * config.in: Regenerate.
856 * gdbserver/configure: Regenerate.
857 * gdbserver/config.in: Regenerate.
859 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Remove
861 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Likewise.
863 * linux-btrace.c: Remove HAVE_SYS_SYSCALL_H test.
865 * proc-api.c: Remove !NEW_PROC_API support.
866 Remove HAVE_SYS_PROC_H and HAVE_SYS_USER_H tests.
867 Remove tests for macros always defined on Solaris.
868 * proc-events.c: Remove !NEW_PROC_API support.
869 Remove Remove HAVE_SYS_SYSCALL_H, HAVE_SYS_PROC_H and
870 HAVE_SYS_USER_H tests.
871 (init_syscall_table): Remove non-Solaris syscalls.
872 Remove tests for syscalls present on all Solaris versions.
873 Add missing Solaris 10+ syscalls.
874 (signal_table): Remove non-Solaris signals.
875 Remove tests for signals present on all Solaris versions.
876 (fault_table): Remove non-Solaris faults.
877 Remove tests for faults present on all Solaris versions.
878 * proc-flags.c: Remove !NEW_PROC_API support.
879 (pr_flag_table): Remove non-Solaris and pre-Solaris 7 comments.
880 Remove non-Solaris flags.
881 * proc-why.c: Remove !NEW_PROC_API support.
882 (pr_why_table): Remove meaningless comments.
883 Remove tests for reasons present on all Solaris versions.
885 (proc_prettyfprint_why): Likewise.
887 * procfs.c: Remove !NEW_PROC_API and DYNAMIC_SYSCALLS support.
888 Remove HAVE_SYS_FAULT_H and HAVE_SYS_SYSCALL_H tests.
889 Remove WA_READ test, IRIX watchpoint support.
890 (gdb_sigset_t, gdb_sigaction_t, gdb_siginfo_t): Replace by base
892 (gdb_praddset, gdb_prdelset, gdb_premptysysset, gdb_praddsysset)
893 (gdb_prdelset, gdb_pr_issyssetmember): Replace by base macros.
895 Remove CTL_PROC_NAME_FMT tests.
896 (gdb_prstatus_t, gdb_lwpstatus_t): Replace by base types. Change
898 (sysset_t_size): Remove. Use sizeof (sysset_t) in callers.
899 Remove PROCFS_DONT_PIOCSSIG_CURSIG support.
900 (proc_modify_flag): Replace GDBRESET by PCUNSET.
901 Remove PR_ASYNC, PR_KLC tests.
902 (proc_unset_inherit_on_fork): Remove PR_ASYNC test.
903 (proc_parent_pid): Remove PCWATCH etc. tests.
904 (proc_set_watchpoint): Remove !PCWATCH && !PIOCSWATCH support.
906 (proc_get_nthreads) [PIOCNTHR && PIOCTLIST]: Remove.
907 Remove SYS_lwpcreate || SYS_lwp_create test.
908 (proc_get_current_thread): Likewise.
909 [PIOCNTHR && PIOCTLIST]: Remove.
910 [PIOCLSTATUS]: Remove.
911 (procfs_debug_inferior): Remove non-Solaris cases, conditionals.
912 [PRFS_STOPEXEC]: Remove.
913 (syscall_is_lwp_exit): Remove non-Solaris cases, conditionals.
914 (syscall_is_exit): Likewise.
915 (syscall_is_exec): Likewise.
916 (syscall_is_lwp_create): Likewise.
917 Remove SYS_syssgi support.
918 (procfs_wait): Remove PR_ASYNC, !PIOCSSPCACT tests.
919 [SYS_syssgi]: Remove.
920 Remove non-Solaris cases, conditionals.
921 (unconditionally_kill_inferior) [PROCFS_NEED_PIOCSSIG_FOR_KILL]:
923 (procfs_init_inferior) [SYS_syssgi]: Remove.
924 (procfs_set_exec_trap) [PRFS_STOPEXEC]: Remove.
925 (procfs_inferior_created) [SYS_syssgi]: Remove.
926 (procfs_set_watchpoint): Remove !AIX5 test.
927 (procfs_stopped_by_watchpoint): Remove FLTWATCH test, FLTKWATCH
929 (mappingflags) [MA_PHYS]: Remove.
930 (info_mappings_callback): Remove PCAGENT test.
931 Remove PIOCOPENLWP || PCAGENT test.
933 2017-11-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
935 * sol-thread.c (info_solthreads): Constify args.
938 2017-11-29 John Baldwin <jhb@FreeBSD.org>
940 * target-float.c [HAVE_LIBMPFR]: Define MPFR_USE_INTMAX_T.
942 2017-11-29 Joel Brobecker <brobecker@adacore.com>
944 * ada-lang.c (to_fixed_range_type): Make sure that the size
945 of the range type being returned is the same as the size
946 of the range type being fixed.
948 2017-11-29 Pedro Alves <palves@redhat.com>
951 * NEWS: Mention setting breakpoints on functions with C++ ABI
953 * completer.h (completion_match_for_lcd) <match,
954 mark_ignored_range>: New methods.
955 <finish>: Consider ignored ranges.
956 <clear>: Clear ignored ranges.
957 <m_ignored_ranges, m_finished_storage>: New fields.
958 * cp-support.c (cp_search_name_hash): Ignore ABI tags.
959 (cp_symbol_name_matches_1, cp_fq_symbol_name_matches): Pass the
960 completion_match_for_lcd pointer to strncmp_iw_with_mode.
961 (test_cp_symbol_name_cmp): Add [abi:...] tags unit tests.
962 * language.c (default_symbol_name_matcher): Pass the
963 completion_match_for_lcd pointer to strncmp_iw_with_mode.
964 * linespec.c (linespec_lexer_lex_string): Don't tokenize ABI tags.
965 * utils.c (skip_abi_tag): New function.
966 (strncmp_iw_with_mode): Add completion_match_for_lcd parameter.
968 * utils.h (strncmp_iw_with_mode): Add completion_match_for_lcd
971 2017-11-29 Pedro Alves <palves@redhat.com>
974 * NEWS: Mention setting breakpoints on functions with C++ ABI
976 * completer.h (completion_match_for_lcd) <match,
977 mark_ignored_range>: New methods.
978 <finish>: Consider ignored ranges.
979 <clear>: Clear ignored ranges.
980 <m_ignored_ranges, m_finished_storage>: New fields.
981 * cp-support.c (cp_search_name_hash): Ignore ABI tags.
982 (cp_symbol_name_matches_1, cp_fq_symbol_name_matches): Pass the
983 completion_match_for_lcd pointer to strncmp_iw_with_mode.
984 (test_cp_symbol_name_cmp): Add [abi:...] tags unit tests.
985 * language.c (default_symbol_name_matcher): Pass the
986 completion_match_for_lcd pointer to strncmp_iw_with_mode.
987 * linespec.c (linespec_lexer_lex_string): Don't tokenize ABI tags.
988 * utils.c (skip_abi_tag): New function.
989 (strncmp_iw_with_mode): Add completion_match_for_lcd parameter.
991 * utils.h (strncmp_iw_with_mode): Add completion_match_for_lcd
994 2017-11-29 Pedro Alves <palves@redhat.com>
996 * NEWS: Mention that breakpoints on C++ functions are now set on
997 on all namespaces/classes by default, and mention "break
999 * ax-gdb.c (agent_command_1): Adjust to pass a
1000 symbol_name_match_type to new_linespec_location.
1001 * breakpoint.c (parse_breakpoint_sals): Adjust to
1002 get_linespec_location's return type change.
1003 (strace_marker_create_sals_from_location): Adjust to pass a
1004 symbol_name_match_type to new_linespec_location.
1005 (strace_marker_decode_location): Adjust to get_linespec_location's
1007 (strace_command): Adjust to pass a symbol_name_match_type to
1008 new_linespec_location.
1009 (LOCATION_HELP_STRING): Add paragraph about wildmatching, and
1010 mention "-qualified".
1011 * c-lang.c (cplus_language_defn): Install cp_search_name_hash.
1012 * completer.c (explicit_location_match_type::MATCH_QUALIFIED): New
1014 (complete_address_and_linespec_locations): New parameter
1015 'match_type'. Pass it down.
1016 (explicit_options): Add "-qualified".
1017 (collect_explicit_location_matches): Pass the requested match type
1018 to the linespec completers. Handle MATCH_QUALIFIED.
1019 (location_completer): Handle "-qualified" combined with linespecs.
1020 * cp-support.c (cp_search_name_hash): New.
1021 (cp_symbol_name_matches_1): Implement wild matching for C++.
1022 (cp_fq_symbol_name_matches): Reimplement.
1023 (cp_get_symbol_name_matcher): Return different matchers depending
1024 on the lookup name's match type.
1025 (selftests::test_cp_symbol_name_matches): Add wild matching tests.
1026 * cp-support.h (cp_search_name_hash): New declaration.
1028 (selftests::dw2_expand_symtabs_matching::test_symbols): Add
1030 (test_dw2_expand_symtabs_matching_symbol): Add wild matching
1032 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Adjust to
1033 pass a symbol_name_match_type to new_linespec_location.
1034 * linespec.c (linespec_parse_basic): Lookup function symbols using
1035 the parser's symbol name match type.
1036 (convert_explicit_location_to_linespec): New
1037 symbol_name_match_type parameter. Pass it down to
1038 find_linespec_symbols.
1039 (convert_explicit_location_to_sals): Pass the location's name
1040 match type to convert_explicit_location_to_linespec.
1041 (parse_linespec): New match_type parameter. Save it in the
1043 (linespec_parser_new): Default to symbol_name_match_type::WILD.
1044 (linespec_complete_function): New symbol_name_match_type
1046 (complete_linespec_component): Pass down the parser's recorded
1048 (linespec_complete_label): New symbol_name_match_type parameter.
1050 (linespec_complete): New symbol_name_match_type parameter. Save
1051 it in the parser and pass it down. Adjust to
1052 get_linespec_location's prototype change.
1053 (find_function_symbols, find_linespec_symbols): New
1054 symbol_name_match_type parameter. Pass it down instead of
1055 assuming symbol_name_match_type::WILD.
1056 * linespec.h (linespec_complete, linespec_complete_function)
1057 (linespec_complete_label): New symbol_name_match_type parameter.
1058 * location.c (event_location::linespec_location): Now a struct
1060 (EL_LINESPEC): Adjust.
1061 (initialize_explicit_location): Default to
1062 symbol_name_match_type::WILD.
1063 (new_linespec_location): New symbol_name_match_type parameter.
1064 Record it in the location.
1065 (get_linespec_location): Now returns a struct linespec_location.
1066 (new_explicit_location): Also copy func_name_match_type.
1067 (explicit_to_string_internal)
1068 (string_to_explicit_location): Handle "-qualified".
1069 (copy_event_location): Adjust to LINESPEC_LOCATION type change.
1070 Copy symbol_name_match_type fields.
1071 (event_location_deleter::operator()): Adjust to LINESPEC_LOCATION
1073 (event_location_to_string): Adjust to LINESPEC_LOCATION type
1074 change. Handle "-qualfied".
1075 (string_to_explicit_location): Handle "-qualified".
1076 (string_to_event_location_basic): New symbol_name_match_type
1077 parameter. Pass it down.
1078 (string_to_event_location): Handle "-qualified".
1079 * location.h (struct linespec_location): New.
1080 (explicit_location::func_name_match_type): New field.
1081 (new_linespec_location): Now returns a const linespec_location *.
1082 (string_to_event_location_basic): New symbol_name_match_type
1084 (explicit_completion_info::saw_explicit_location_option): New
1086 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Adjust to pass a
1087 symbol_name_match_type to new_linespec_location.
1088 * python/py-breakpoint.c (bppy_init): Likewise.
1089 * python/python.c (gdbpy_decode_line): Likewise.
1091 2017-11-29 Pedro Alves <palves@redhat.com>
1093 * ada-lang.c (ada_lookup_name_info::matches): Change type of
1094 parameter from completion_match to completion_match_result.
1096 (do_wild_match, do_full_match, ada_symbol_name_matches): Likewise.
1097 * completer.c (completion_tracker::maybe_add_completion): Add
1098 match_for_lcd parameter and use it.
1099 (completion_tracker::add_completion): Likewise.
1100 * completer.h (class completion_match_for_lcd): New class.
1101 (completion_match_result::match_for_lcd): New field.
1102 (completion_match_result::set_match): New method.
1103 (completion_tracker): Add comments.
1104 (completion_tracker::add_completion): Add match_for_lcd parameter.
1105 (completion_tracker::reset_completion_match_result): Reset
1107 (completion_tracker::maybe_add_completion): Add match_for_lcd
1109 (completion_tracker::m_lowest_common_denominator_unique): Extend
1111 * cp-support.c (cp_symbol_name_matches_1)
1112 (cp_fq_symbol_name_matches): Change type of parameter from
1113 completion_match to completion_match_result. Adjust.
1114 * language.c (default_symbol_name_matcher): Change type of
1115 parameter from completion_match to completion_match_result.
1117 * language.h (completion_match_for_lcd): Forward declare.
1118 (default_symbol_name_matcher): Change type of parameter from
1119 completion_match to completion_match_result.
1120 * symtab.c (compare_symbol_name): Adjust.
1121 (completion_list_add_name): Pass the match_for_lcd to the tracker.
1122 * symtab.h (ada_lookup_name_info::matches): Change type of
1123 parameter from completion_match to completion_match_result.
1124 (symbol_name_matcher_ftype): Likewise, and update comments.
1126 2017-11-29 Pedro Alves <palves@redhat.com>
1128 * linespec.c (minsym_found, add_minsym): Use msymbol_is_function.
1129 * minsyms.c (msymbol_is_text): Delete.
1130 (msymbol_is_function): New function.
1131 * minsyms.h (msymbol_is_text): Delete.
1132 (msymbol_is_function): New declaration.
1133 * symtab.c (find_function_alias_target): Use msymbol_is_function.
1135 2017-11-29 Tom Tromey <tom@tromey.com>
1137 * Makefile.in (distclean): Handle the case where rmdir fails.
1139 2017-11-29 Tom Tromey <tom@tromey.com>
1141 * symfile.c (_initialize_symfile): Update usage text for
1142 add-symbol-file, symbol-file, load.
1144 2017-11-29 Tom Tromey <tom@tromey.com>
1146 * symfile.c (add_symbol_file_command): Error if some arguments to
1147 -s are missing. Change unrecognized-argument error message.
1148 (_initialize_symfile): Fix usage text for add-symbol-file.
1150 2017-11-27 Tom Tromey <tom@tromey.com>
1152 * Makefile.in (REMOTE_OBS): Remove.
1153 (SFILES): Remove remote sources.
1154 (COMMON_SFILES): Add remote sources.
1155 (ALLDEPFILES): Remove dcache.c.
1157 2017-11-27 Tom Tromey <tom@tromey.com>
1159 * Makefile.in (SUBDIR_TARGET_SRCS, SUBDIR_TARGET_OBS): New
1161 (SFILES): Use SUBDIR_TARGET_SRCS.
1162 (COMMON_OBS): Use SUBDIR_TARGET_OBS. Remove waitstatus.o.
1163 (CONFIG_SRC_SUBDIR): Add target.
1164 (%.o): Remove target rule.
1166 2017-11-27 Tom Tromey <tom@tromey.com>
1168 * Makefile.in (COMMON_OBS): Remove filename-seen-cache.o,
1169 registry.o, thread-fsm.o, debug.o.
1170 (COMMON_SFILES): Add filename-seen-cache.c, registry.c,
1171 thread-fsm.c, debug.c.
1173 2017-11-27 Tom Tromey <tom@tromey.com>
1175 * Makefile.in (COMMON_SFILES): New.
1176 (SFILES): Move some entries to COMMON_SFILES.
1177 (COMMON_OBS): Use COMMON_SFILES.
1179 2017-11-27 Tom Tromey <tom@tromey.com>
1181 * Makefile.in (YYFILES): Update comment.
1184 2017-11-27 Tom Tromey <tom@tromey.com>
1186 * Makefile.in (SUBDIR_PYTHON_OBS): Redefine.
1187 (CONFIG_SRC_SUBDIR): Add python.
1188 (%.o): Remove python rule.
1189 (python/%.o): New rule.
1190 * configure: Rebuild.
1191 * configure.ac (CONFIG_OBS): Refer to python/python.o
1193 2017-11-27 Tom Tromey <tom@tromey.com>
1195 * configure: Rebuild.
1196 * configure.ac (CONFIG_OBS): Refer to guile/guile.o.
1197 * Makefile.in (SUBDIR_GUILE_OBS): Redefine.
1198 (CONFIG_SRC_SUBDIR): Add guile.
1199 (%.o): Remove guile rule.
1201 2017-11-27 Tom Tromey <tom@tromey.com>
1203 * Makefile.in (SUBDIR_UNITTESTS_OBS): Redefine.
1204 (%.o): Remove unittests rule.
1205 (CONFIG_SRC_SUBDIR): Add unittests.
1207 2017-11-27 Tom Tromey <tom@tromey.com>
1209 * Makefile.in (SUBDIR_TUI_OBS): Redefine.
1210 (CONFIG_SRC_SUBDIR): Add tui.
1211 (%.o): Remove tui rule.
1213 2017-11-27 Tom Tromey <tom@tromey.com>
1215 * Makefile.in (SUBDIR_GCC_COMPILE_OBS): Redefine.
1216 (%.o): Remove compile rule.
1217 (CONFIG_SRC_SUBDIR): Add compile.
1219 2017-11-27 Tom Tromey <tom@tromey.com>
1221 * Makefile.in (SUBDIR_MI_OBS): Redefine.
1222 (%.o): Remove mi rule.
1223 (CONFIG_SRC_SUBDIR): Add mi.
1224 (COMMON_OBS): Use mi/mi-common.o
1226 2017-11-27 Tom Tromey <tom@tromey.com>
1228 * Makefile.in (SUBDIR_CLI_OBS): Redefine.
1229 (%.o): Remove cli rule.
1230 (CONFIG_SRC_SUBDIR): Add cli.
1232 2017-11-27 Tom Tromey <tom@tromey.com>
1234 * configure.ac (CONFIG_SRC_SUBDIR): Don't subst.
1235 * configure: Rebuild.
1236 * Makefile.in (CONFIG_SRC_SUBDIR): Redefine.
1237 (CONFIG_DEP_SUBDIR): New variable.
1238 (%.o): Add order-only dependency.
1239 ($(CONFIG_DEP_SUBDIR)): New target.
1241 2017-11-26 Dominik Czarnota <dominik.b.czarnota@gmail.com>
1244 * findcmd.c (_initialize_mem_search): Update find command help
1247 2017-11-26 Simon Marchi <simon.marchi@polymtl.ca>
1249 * python/python.c (do_start_initialization): Change progname
1250 type to gdb::unique_xmalloc_ptr. Release the pointer when using
1253 2017-11-26 Tom Tromey <tom@tromey.com>
1255 * common/format.h: Add include guards.
1257 2017-11-26 Tom Tromey <tom@tromey.com>
1259 * nat/linux-personality.h (class
1260 maybe_disable_address_space_randomization): New class.
1261 (maybe_disable_address_space_randomization): Don't declare
1263 * nat/linux-personality.c (restore_personality)
1264 (make_disable_asr_cleanup): Remove.
1265 (maybe_disable_address_space_randomization): Now a constructor.
1266 (~maybe_disable_address_space_randomization): New destructor.
1267 * linux-nat.c (linux_nat_create_inferior): Update.
1269 2017-11-26 Tom Tromey <tom@tromey.com>
1271 * gcore.c (write_gcore_file_1): Use gdb::unique_xmalloc_ptr.
1273 2017-11-26 Ulrich Weigand <uweigand@de.ibm.com>
1275 * spu-tdep.c (spu_software_single_step): Access SPU_LSLR_REGNUM as
1276 "cooked" register. Access only first four bytes of branch target
1279 2017-11-25 Sergio Durigan Junior <sergiodj@redhat.com>
1282 * stap-probe.c (relocate_address): New function.
1283 (stap_probe::get_relocated_address): Use 'relocate_address'.
1284 (stap_probe::set_semaphore): Use 'relocate_address' and pass
1286 (stap_probe::clear_semaphore): Likewise.
1288 2017-11-25 Pedro Alves <palves@redhat.com>
1290 * dictionary.c: Include "safe-ctype.h".
1291 * minsyms.c: Include "safe-ctype.h".
1292 * minsyms.c (SYMBOL_HASH_NEXT): Use TOLOWER instead of tolower.
1294 2017-11-25 Pedro Alves <palves@redhat.com>
1296 * completer.c (complete_line_internal_1): Skip spaces until the
1297 start of the command.
1299 2017-11-24 Pedro Alves <palves@redhat.com>
1301 * cp-support.c (cp_symbol_name_matches_1): New, factored out from
1302 cp_fq_symbol_name_matches. Pass language_cplus to
1304 (cp_fq_symbol_name_matches): Call cp_symbol_name_matches_1.
1305 (selftests::test_cp_symbol_name_cmp): New.
1306 (_initialize_cp_support): Register "cp_symbol_name_matches"
1308 * language.c (default_symbol_name_matcher): Pass language_minimal
1309 to strncmp_iw_with_mode.
1310 * utils.c: Include "cp-support.h" and <algorithm>.
1311 (valid_identifier_name_char, cp_skip_operator_token, skip_ws)
1312 (cp_is_operator): New functions.
1313 (strncmp_iw_with_mode): Use them. Add language parameter. Don't
1314 skip whitespace in the symbol name when the lookup name doesn't
1315 have spaces, and vice versa.
1316 (strncmp_iw, strcmp_iw): Pass language to strncmp_iw_with_mode.
1317 * utils.h (strncmp_iw_with_mode): Add language parameter.
1319 2017-11-24 Joel Brobecker <brobecker@adacore.com>
1321 * ada-lang.c (ada_exception_message_1, ada_exception_message):
1323 (print_it_exception): If available, display the exception
1325 * NEWS: Document new feature.
1327 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
1329 * configure.nat <spu-linux>: Add fork-inferior.o to NATDEPFILES.
1331 2017-11-24 Philipp Rudo <prudo@linux.vnet.ibm.com>
1333 * dtrace-probe.c (dtrace_probe::build_arg_exprs)
1334 (dtrace_probe::is_enabled, dtrace_probe::enable)
1335 (dtrace_probe::disable): Remove keyword 'struct' at for-range
1337 * probe.c (gen_ui_out_table_header_info)
1338 (print_ui_out_not_applicables): Remove keyword 'struct' at
1341 2017-11-24 Alan Hayward <alan.hayward@arm.com>
1343 * configure.tgt: Add arch/aarch64.o
1345 2017-11-24 Simon Marchi <simon.marchi@polymtl.ca>
1347 * common/common-utils.h: Include poison.h.
1348 (xfree): Remove declaration, add definition with static_assert.
1349 * common/common-utils.c (xfree): Remove.
1350 * common/poison.h (IsMallocatable): Define.
1351 (IsFreeable): Define.
1352 (free): Delete for non-freeable types.
1354 (XNEW): Undef and redefine.
1356 (XCNEW): Undef and redefine.
1358 (XDELETE): Undef and redefine.
1360 (XNEWVEC): Undef and redefine.
1362 (XCNEWVEC): Undef and redefine.
1364 (XRESIZEVEC): Undef and redefine.
1366 (XDELETEVEC): Undef and redefine.
1368 (XNEWVAR): Undef and redefine.
1370 (XCNEWVAR): Undef and redefine.
1372 (XRESIZEVAR): Undef and redefine.
1374 2017-11-24 Simon Marchi <simon.marchi@polymtl.ca>
1376 * gdbthread.h (private_thread_info): Define structure type, add
1377 virtual pure destructor.
1378 (thread_info) <priv>: Change type to unique_ptr.
1379 <private_dtor>: Remove.
1380 * thread.c (add_thread_with_info): Adjust to use of unique_ptr.
1381 (private_thread_info::~private_thread_info): Provide default
1383 (thread_info::~thread_info): Don't call private_dtor nor
1385 * aix-thread.c (private_thread_info): Rename to ...
1386 (aix_thread_info): ... this.
1387 (get_aix_thread_info): New.
1388 (sync_threadlists): Adjust.
1390 (aix_thread_resume): Adjust.
1391 (aix_thread_fetch_registers): Adjust.
1392 (aix_thread_store_registers): Adjust.
1393 (aix_thread_extra_thread_info): Adjust.
1394 * darwin-nat.h (private_thread_info): Rename to ...
1395 (darwin_thread_info): ... this.
1396 (get_darwin_thread_info): New.
1397 * darwin-nat.c (darwin_init_thread_list): Adjust.
1398 (darwin_check_new_threads): Adjust.
1399 (thread_info_from_private_thread_info): Adjust.
1400 * linux-thread-db.c (private_thread_info): Rename to ...
1401 (thread_db_thread_info): ... this, initialize fields.
1402 (get_thread_db_thread_info): New.
1403 <dying>: Change type to bool.
1404 (update_thread_state): Adjust to type rename.
1405 (record_thread): Adjust to type rename an use of unique_ptr.
1406 (thread_db_pid_to_str): Likewise.
1407 (thread_db_extra_thread_info): Likewise.
1408 (thread_db_thread_handle_to_thread_info): Likewise.
1409 (thread_db_get_thread_local_address): Likewise.
1410 * nto-tdep.h (private_thread_info): Rename to ...
1411 (nto_thread_info): ... this, initialize fields.
1412 (get_nto_thread_info): New.
1413 <name>: Change type to std::string.
1414 * nto-tdep.c (nto_extra_thread_info): Adjust to type rename and
1416 * nto-procfs.c (update_thread_private_data_name): Adjust to
1417 std::string change, allocate nto_private_thread_info with new.
1418 (update_thread_private_data): Adjust to unique_ptr.
1419 * remote.c (private_thread_info): Rename to ...
1420 (remote_thread_info): ... this, initialize data members with
1422 <extra, name>: Change type to std::string.
1423 <thread_handle>: Change type to non-pointer.
1424 (free_private_thread_info): Remove.
1425 (get_private_info_thread): Rename to...
1426 (get_remote_thread_info): ... this, change return type, adjust to
1427 use of unique_ptr, use remote_thread_info constructor.
1428 (remote_add_thread): Adjust.
1429 (get_private_info_ptid): Rename to...
1430 (get_remote_thread_info): ...this, change return type.
1431 (remote_thread_name): Use get_remote_thread_info, adjust to
1432 change to std::string.
1433 (struct thread_item) <~thread_item>: Remove.
1434 <thread_handle>: Make non pointer.
1435 (start_thread): Adjust to thread_item::thread_handle type
1437 (remote_update_thread_list): Adjust to type name change, move
1438 strings from temporary to long-lived object instead of
1440 (remote_threads_extra_info): Use get_remote_thread_info.
1441 (process_initial_stop_replies): Likewise.
1442 (resume_clear_thread_private_info): Likewise.
1443 (remote_resume): Adjust to type name change.
1444 (remote_commit_resume): Use get_remote_thread_info.
1445 (process_stop_reply): Adjust to type name change.
1446 (remote_stopped_by_sw_breakpoint): Use get_remote_thread_info.
1447 (remote_stopped_by_hw_breakpoint): Likewise.
1448 (remote_stopped_by_watchpoint): Likewise.
1449 (remote_stopped_data_address): Likewise.
1450 (remote_core_of_thread): Likewise.
1451 (remote_thread_handle_to_thread_info): Use
1452 get_private_info_thread, adjust to thread_handle field type
1455 2017-11-24 Simon Marchi <simon.marchi@polymtl.ca>
1457 * remote.c (struct thread_item): Add constructor, disable copy
1458 construction and copy assignment, define default move
1459 construction and move assignment.
1460 <extra, name>: Change type to std::string.
1462 <thread_handle>: Make non-pointer.
1463 (thread_item_t): Remove typedef.
1464 (DEF_VEC_O(thread_item_t)): Remove.
1465 (threads_listing_context) <contains_thread>: New method.
1466 <remove_thread>: New method.
1467 <items>: Change type to std::vector.
1468 (clear_threads_listing_context): Remove.
1469 (threads_listing_context_remove): Remove.
1470 (remote_newthread_step): Use thread_item constructor, adjust to
1471 change to std::vector.
1472 (start_thread): Use thread_item constructor, adjust to change to
1474 (end_thread): Adjust to change to std::vector and std::string.
1475 (remote_get_threads_with_qthreadinfo): Use thread_item
1476 constructor, adjust to std::vector.
1477 (remote_update_thread_list): Adjust to change to std::vector and
1478 std::string, use threads_listing_context methods.
1479 (remove_child_of_pending_fork): Adjust.
1480 (remove_new_fork_children): Adjust.
1481 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add rsp-low-selftests.c.
1482 (SUBDIR_UNITTESTS_OBS): Add rsp-low-selftests.o.
1483 * unittests/rsp-low-selftests.c: New file.
1484 * common/rsp-low.h: Include common/byte-vector.h.
1485 (hex2bin): New overload.
1486 * common/rsp-low.c (hex2bin): New overload.
1488 2017-11-24 Simon Marchi <simon.marchi@ericsson.com>
1490 * inferior.h (private_inferior): Define structure type, add
1491 virtual pure destructor.
1492 (inferior) <priv>: Change type to unique_ptr.
1493 * inferior.c (private_inferior::~private_inferior): Provide
1494 default implementation.
1495 (inferior::~inferior): Don't free priv field.
1496 (exit_inferior_1): Likewise.
1497 * darwin-nat.h (struct darwin_exception_info): Initialize fields.
1498 (darwin_exception_info): Remove typedef.
1499 (DEF_VEC_O (darwin_thread_t)); Remove.
1500 (private_inferior): Rename to ...
1501 (darwin_private_inferior): ... this, extend private_inferior.
1502 (get_darwin_inferior): New.
1503 <threads>: Change type to std::vector of darwin_thread_t pointers.
1504 * darwin-nat.c (darwin_check_new_threads): Adjust.
1505 (find_inferior_task_it): Adjust.
1506 (darwin_find_thread); Adjust.
1507 (darwin_suspend_inferior): Adjust.
1508 (darwin_resume_inferior): Adjust.
1509 (darwin_find_new_inferior): Adjust.
1510 (darwin_decode_notify_message): Adjust.
1511 (darwin_send_reply): Adjust.
1512 (darwin_resume_inferior_threads): Adjust.
1513 (darwin_suspend_inferior_threads): Adjust.
1514 (darwin_decode_message): Adjust.
1515 (darwin_wait): Adjust.
1516 (darwin_interrupt): Adjust.
1517 (darwin_deallocate_threads): Adjust.
1518 (darwin_mourn_inferior): Adjust, don't free private data.
1519 (darwin_reply_to_all_pending_messages): Adjust.
1520 (darwin_stop_inferior): Adjust.
1521 (darwin_setup_exceptions): Adjust.
1522 (darwin_kill_inferior): Adjust.
1523 (darwin_setup_request_notification): Adjust.
1524 (darwin_attach_pid): Adjust.
1525 (darwin_init_thread_list): Adjust.
1526 (darwin_setup_fake_stop_event): Adjust.
1527 (darwin_attach): Adjust.
1528 (darwin_detach): Adjust.
1529 (darwin_xfer_partial): Adjust.
1530 (set_enable_mach_exceptions): Adjust.
1531 (darwin_pid_to_exec_file): Adjust.
1532 (darwin_get_ada_task_ptid): Adjust.
1533 * darwin-nat-info.c (get_task_from_args): Adjust.
1534 (info_mach_ports_command): Adjust.
1535 (info_mach_region_command): Adjust.
1536 (info_mach_exceptions_command): Adjust.
1537 * remote.c (private_inferior): Rename to ...
1538 (remote_private_inferior): ... this, initialize fields.
1539 (get_remote_inferior); New.
1540 (remote_commit_resume): Use get_remote_inferior.
1541 (check_pending_event_prevents_wildcard_vcont_callback): Likewise.
1543 2017-11-24 Pedro Alves <palves@redhat.com>
1545 * NEWS: Mention linespecs and explicit locations, and completion
1548 2017-11-24 Yao Qi <yao.qi@linaro.org>
1550 * regcache.c (regcache::dump): Remove footnote_register_size.
1552 2017-11-24 Yao Qi <yao.qi@linaro.org>
1554 * regcache.c (cooked_read_test): Add more test for readonly
1557 2017-11-24 Yao Qi <yao.qi@linaro.org>
1559 * gdbarch-selftests.c (test_target_has_registers): Move it to
1561 (test_target_has_stack): Likewise.
1562 (test_target_has_memory): Likewise.
1563 (test_target_prepare_to_store): Likewise.
1564 (test_target_store_registers): Likewise.
1565 (test_target_ops): Likewise.
1566 * regcache.c: Include selftest-arch.h and gdbthread.h.
1567 (target_ops_no_register): New class.
1568 (test_target_fetch_registers): New.
1569 (test_target_store_registers): New.
1570 (test_target_xfer_partial): New.
1571 (readwrite_regcache): New.
1572 (cooked_read_test): New.
1573 (_initialize_regcache): Register the test.
1574 * target.c: (test_target_has_registers): Moved from
1575 gdbarch-selftests.c.
1576 (test_target_has_stack): Likewise.
1577 (test_target_has_memory): Likewise.
1578 (test_target_prepare_to_store): Likewise.
1579 (test_target_store_registers): Likewise.
1580 * target.h (test_target_ops): New class.
1582 2017-11-24 Alan Hayward <alan.hayward@arm.com>
1584 * aarch64-tdep.c (_initialize_aarch64_tdep): Add target desc
1587 2017-11-24 Alan Hayward <alan.hayward@arm.com>
1589 * aarch64-tdep.c (_initialize_aarch64_tdep): Remove init.
1590 * arch/aarch64.c (aarch64_create_target_description): Create
1591 new target description.
1592 * features/Makefile: Add new files.
1593 * features/aarch64.c: Remove file.
1594 * features/aarch64-core.c: New autogenerated file.
1595 * features/aarch64-fpu.c: New autogenerated file.
1596 * target-descriptions.c (maint_print_c_tdesc_cmd): Check for aarch64.
1598 2017-11-24 Alan Hayward <alan.hayward@arm.com>
1600 * Makefile.in: Add new files.
1601 * aarch64-linux-nat.c (aarch64_linux_read_description): Call
1602 aarch64_read_description.
1603 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
1604 Call aarch64_read_description.
1605 * aarch64-tdep.c (aarch64_read_description): New function.
1606 (aarch64_gdbarch_init): Call aarch64_read_description.
1607 * aarch64-tdep.h (aarch64_read_description): New function.
1608 * arch/aarch64.c: New file.
1609 * configure.tgt: Add new files.
1611 2017-11-24 Yao Qi <yao.qi@linaro.org>
1613 * mi/mi-main.c (register_changed_p): Update.
1614 * value.c (value_contents_bits_eq): Change return type.
1615 (value_contents_eq): Likewise.
1616 * value.h: Update comments.
1618 2017-11-24 Yao Qi <yao.qi@linaro.org>
1620 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Remove
1621 local 'changed'. Remove error.
1622 (register_changed_p): Change return type to bool.
1624 2017-11-24 Yao Qi <yao.qi@linaro.org>
1626 * arch/tic6x.c: New file.
1627 * arch/tic6x.h: New file.
1628 * features/Makefile (FEATURE_XMLFILES): Add tic6x-c6xp.xml,
1629 tic6x-core.xml and tic6x-gp.xml.
1630 * features/tic6x-c6xp.c: Generated.
1631 * features/tic6x-core.c: Generated.
1632 * features/tic6x-gp.c: Generated.
1633 * target-descriptions.c (maint_print_c_tdesc_cmd): Match
1636 2017-11-23 Simon Marchi <simon.marchi@ericsson.com>
1638 * mi/mi-main.c (list_available_thread_groups): Change map value
1639 type to std::vector.
1641 2017-11-23 Simon Marchi <simon.marchi@ericsson.com>
1643 * osdata.c (osdata_end_column, get_osdata): Remove std::move.
1645 2017-11-23 Simon Marchi <simon.marchi@ericsson.com>
1647 * varobj.c (struct varobj_dynamic) <children_requested_>: Rename
1649 <children_requested>: ... this.
1650 (varobj_get_num_children, varobj_update): Adjust.
1652 2017-11-23 Simon Marchi <simon.marchi@ericsson.com>
1654 * ada-varobj.c (ada_value_is_changeable_p): Change int to bool where applicable.
1655 (ada_value_has_mutated): Likewise.
1656 * c-varobj.c (varobj_is_anonymous_child): Likewise.
1657 (c_is_path_expr_parent): Likewise.
1658 * mi/mi-cmd-var.c (varobj_update_one): Likewise.
1659 (mi_cmd_var_set_frozen): Likewise.
1660 (mi_cmd_var_update_iter): Likewise.
1661 (mi_cmd_var_update): Likewise.
1662 * varobj.c (pretty_printing): Likewise.
1663 (varobj_enable_pretty_printing): Likewise.
1664 (struct varobj_root) <floating, is_valid>: Likewise.
1665 (struct varobj_dynamic) <children_requested>: Likewise.
1666 (delete_variable): Likewise.
1667 (delete_variable_1): Likewise.
1668 (install_variable): Likewise.
1669 (update_type_if_necessary): Likewise.
1670 (install_new_value): Likewise.
1671 (value_of_root): Likewise.
1672 (is_root_p): Likewise.
1673 (varobj_create): Likewise.
1674 (varobj_delete): Likewise.
1675 (varobj_has_more): Likewise.
1676 (varobj_set_frozen): Likewise.
1677 (varobj_get_frozen): Likewise.
1678 (install_dynamic_child): Likewise.
1679 (dynamic_varobj_has_child_method): Likewise.
1680 (update_dynamic_varobj_children): Likewise.
1681 (varobj_get_num_children): Likewise.
1682 (varobj_list_children): Likewise.
1683 (is_path_expr_parent): Likewise.
1684 (varobj_default_is_path_expr_parent): Likewise.
1685 (varobj_is_dynamic_p): Likewise.
1686 (varobj_set_value): Likewise.
1687 (varobj_value_has_mutated): Likewise.
1688 (varobj_update): Likewise.
1689 (check_scope): Likewise.
1690 (value_of_root_1): Likewise.
1691 (varobj_value_get_print_value): Likewise.
1692 (varobj_editable_p): Likewise.
1693 (varobj_value_is_changeable_p): Likewise.
1694 (varobj_floating_p): Likewise.
1695 (varobj_default_value_is_changeable_p): Likewise.
1696 (varobj_invalidate_iter): Likewise.
1697 * varobj.h (struct varobj_update_result) <type_changed,
1698 children_changed, changed, value_installed>: Likewise.
1699 (struct varobj) <updated, frozen, not_fetched>: Likewise.
1700 (struct lang_varobj_ops) <value_is_changeable_p,
1701 value_has_mutated, is_path_expr_parent>: Likewise.
1702 (varobj_delete): Likewise.
1703 (varobj_set_frozen): Likewise.
1704 (varobj_get_frozen): Likewise.
1705 (varobj_set_value): Likewise.
1706 (varobj_update): Likewise.
1707 (varobj_editable_p): Likewise.
1708 (varobj_floating_p): Likewise.
1709 (varobj_has_more): Likewise.
1710 (varobj_is_dynamic_p): Likewise.
1711 (varobj_default_value_is_changeable_p): Likewise.
1712 (varobj_value_is_changeable_p): Likewise.
1713 (varobj_is_anonymous_child): Likewise.
1714 (varobj_default_is_path_expr_parent): Likewise.
1716 2017-11-22 Sergio Durigan Junior <sergiodj@redhat.com>
1718 * dtrace-probe.c (struct probe_ops dtrace_probe_ops): Delete.
1719 (struct dtrace_probe_arg) <dtrace_probe_arg>: New constructor.
1720 <type_str>: Convert to 'std::string'.
1721 <expr>: Convert to 'expression_up'.
1722 (dtrace_probe_arg_s): Delete type and VEC.
1723 (dtrace_probe_enabler_s): Likewise.
1724 (struct dtrace_probe): Replace by...
1725 (class dtrace_static_probe_ops): ...this and...
1726 (class dtrace_probe): ...this.
1727 (dtrace_probe_is_linespec): Rename to...
1728 (dtrace_static_probe_ops::is_linespec): ...this. Adjust code
1730 (dtrace_process_dof_probe): Use 'std::vector' instead of VEC.
1731 Adjust code. Create new instance of 'dtrace_probe'.
1732 (dtrace_build_arg_exprs): Rename to...
1733 (dtrace_probe::build_arg_exprs): ...this. Adjust code to
1735 (dtrace_get_probes): Rename to...
1736 (dtrace_static_probe_ops::get_probes): ...this. Adjust code
1738 (dtrace_get_arg): Rename to...
1739 (dtrace_probe::get_arg_by_number): ...this. Adjust code to
1741 (dtrace_probe_is_enabled): Rename to...
1742 (dtrace_probe::is_enabled): ...this. Adjust code to reflect
1744 (dtrace_get_probe_address): Rename to...
1745 (dtrace_probe::get_relocated_address): ...this. Adjust code
1747 (dtrace_get_probe_argument_count): Rename to...
1748 (dtrace_probe::get_argument_count): ...this. Adjust code to
1750 (dtrace_can_evaluate_probe_arguments): Rename to...
1751 (dtrace_probe::can_evaluate_arguments): ...this. Adjust code
1753 (dtrace_evaluate_probe_argument): Rename to...
1754 (dtrace_probe::evaluate_argument): ...this. Adjust code to
1756 (dtrace_compile_to_ax): Rename to...
1757 (dtrace_probe::compile_to_ax): ...this. Adjust code to
1759 (dtrace_probe_destroy): Delete.
1760 (dtrace_type_name): Rename to...
1761 (dtrace_static_probe_ops::type_name): ...this. Adjust code to
1763 (dtrace_probe::get_static_ops): New method.
1764 (dtrace_gen_info_probes_table_header): Rename to...
1765 (dtrace_static_probe_ops::gen_info_probes_table_header):
1766 ...this. Adjust code to reflect change.
1767 (dtrace_gen_info_probes_table_values): Rename to...
1768 (dtrace_probe::gen_info_probes_table_values): ...this. Adjust
1769 code to reflect change.
1770 (dtrace_enable_probe): Rename to...
1771 (dtrace_probe::enable_probe): ...this. Adjust code to reflect
1773 (dtrace_disable_probe): Rename to...
1774 (dtrace_probe::disable_probe): ...this. Adjust code to reflect
1776 (struct probe_ops dtrace_probe_ops): Delete.
1777 (info_probes_dtrace_command): Call 'info_probes_for_spops'
1778 instead of 'info_probes_for_ops'.
1779 (_initialize_dtrace_probe): Use 'all_static_probe_ops' instead
1782 2017-11-22 Sergio Durigan Junior <sergiodj@redhat.com>
1783 Simon Marchi <simark@simark.ca>
1785 * stap-probe.c (struct probe_ops stap_probe_ops): Delete
1787 (struct stap_probe_arg) <stap_probe_arg>: New constructor.
1788 <aexpr>: Change type to 'expression_up'.
1789 (stap_probe_arg_s): Delete type and VEC.
1790 (struct stap_probe): Delete. Replace by...
1791 (class stap_static_probe_ops): ...this and...
1792 (class stap_probe): ...this. Rename variables to add 'm_'
1793 prefix. Do not use 'union' for arguments anymore.
1794 (stap_get_expected_argument_type): Receive probe name instead
1795 of 'struct stap_probe'. Adjust code.
1796 (stap_parse_probe_arguments): Rename to...
1797 (stap_probe::parse_arguments): ...this. Adjust code to
1799 (stap_get_probe_address): Rename to...
1800 (stap_probe::get_relocated_address): ...this. Adjust code
1802 (stap_get_probe_argument_count): Rename to...
1803 (stap_probe::get_argument_count): ...this. Adjust code
1805 (stap_get_arg): Rename to...
1806 (stap_probe::get_arg_by_number'): ...this. Adjust code to
1808 (can_evaluate_probe_arguments): Rename to...
1809 (stap_probe::can_evaluate_arguments): ...this. Adjust code
1811 (stap_evaluate_probe_argument): Rename to...
1812 (stap_probe::evaluate_argument): ...this. Adjust code
1814 (stap_compile_to_ax): Rename to...
1815 (stap_probe::compile_to_ax): ...this. Adjust code to
1817 (stap_probe_destroy): Delete.
1818 (stap_modify_semaphore): Adjust comment.
1819 (stap_set_semaphore): Rename to...
1820 (stap_probe::set_semaphore): ...this. Adjust code to reflect
1822 (stap_clear_semaphore): Rename to...
1823 (stap_probe::clear_semaphore): ...this. Adjust code to
1825 (stap_probe::get_static_ops): New method.
1826 (handle_stap_probe): Adjust code to create instance of
1828 (stap_get_probes): Rename to...
1829 (stap_static_probe_ops::get_probes): ...this. Adjust code to
1831 (stap_probe_is_linespec): Rename to...
1832 (stap_static_probe_ops::is_linespec): ...this. Adjust code to
1834 (stap_type_name): Rename to...
1835 (stap_static_probe_ops::type_name): ...this. Adjust code to
1837 (stap_gen_info_probes_table_header): Rename to...
1838 (stap_static_probe_ops::gen_info_probes_table_header):
1839 ...this. Adjust code to reflect change.
1840 (stap_gen_info_probes_table_values): Rename to...
1841 (stap_probe::gen_info_probes_table_values): ...this. Adjust
1842 code to reflect change.
1843 (struct probe_ops stap_probe_ops): Delete.
1844 (info_probes_stap_command): Use 'info_probes_for_spops'
1845 instead of 'info_probes_for_ops'.
1846 (_initialize_stap_probe): Use 'all_static_probe_ops' instead
1849 2017-11-22 Sergio Durigan Junior <sergiodj@redhat.com>
1851 * break-catch-throw.c (fetch_probe_arguments): Use
1852 'probe.prob' instead of 'probe.probe'.
1853 * breakpoint.c (create_longjmp_master_breakpoint): Call
1854 'can_evaluate_arguments' and 'get_relocated_address' methods
1856 (create_exception_master_breakpoint): Likewise.
1857 (add_location_to_breakpoint): Use 'sal->prob' instead of
1859 (bkpt_probe_insert_location): Call 'set_semaphore' method from
1861 (bkpt_probe_remove_location): Likewise, for 'clear_semaphore'.
1862 * elfread.c (elf_get_probes): Use 'static_probe_ops' instead
1864 (probe_key_free): Call 'delete' on probe.
1865 (check_exception_resume): Use 'probe.prob' instead of
1867 * location.c (string_to_event_location_basic): Call
1868 'probe_linespec_to_static_ops'.
1869 * probe.c (class any_static_probe_ops): New class.
1870 (any_static_probe_ops any_static_probe_ops): New variable.
1871 (parse_probes_in_pspace): Receive 'static_probe_ops' as
1872 argument. Adjust code to reflect change.
1873 (parse_probes): Use 'static_probe_ops' instead of
1874 'probe_ops'. Adjust code to reflect change.
1875 (find_probes_in_objfile): Call methods to get name and
1876 provider from probe.
1877 (find_probe_by_pc): Use 'result.prob' instead of
1878 'result.probe'. Call 'get_relocated_address' method from
1880 (collect_probes): Adjust comment and argument list to receive
1881 'static_probe_ops' instead of 'probe_ops'. Adjust code to
1882 reflect change. Call necessary methods from probe.
1883 (compare_probes): Call methods to get name and provider from
1885 (gen_ui_out_table_header_info): Receive 'static_probe_ops'
1886 instead of 'probe_ops'. Use 'std::vector' instead of VEC,
1887 adjust code accordingly.
1888 (print_ui_out_not_applicables): Likewise.
1889 (info_probes_for_ops): Rename to...
1890 (info_probes_for_spops): ...this. Receive 'static_probe_ops'
1891 as argument instead of 'probe_ops'. Adjust code. Call
1892 necessary methods from probe.
1893 (info_probes_command): Use 'info_probes_for_spops'.
1894 (enable_probes_command): Pass correct argument to
1895 'collect_probes'. Call methods from probe.
1896 (disable_probes_command): Likewise.
1897 (get_probe_address): Move to 'any_static_probe_ops::get_address'.
1898 (get_probe_argument_count): Move to
1899 'any_static_probe_ops::get_argument_count'.
1900 (can_evaluate_probe_arguments): Move to
1901 'any_static_probe_ops::can_evaluate_arguments'.
1902 (evaluate_probe_argument): Move to
1903 'any_static_probe_ops::evaluate_argument'.
1904 (probe_safe_evaluate_at_pc): Use 'probe.prob' instead of
1906 (probe_linespec_to_ops): Rename to...
1907 (probe_linespec_to_static_ops): ...this. Adjust code.
1908 (probe_any_is_linespec): Rename to...
1909 (any_static_probe_ops::is_linespec): ...this.
1910 (probe_any_get_probes): Rename to...
1911 (any_static_probe_ops::get_probes): ...this.
1912 (any_static_probe_ops::type_name): New method.
1913 (any_static_probe_ops::gen_info_probes_table_header): New
1915 (compute_probe_arg): Use 'pc_probe.prob' instead of
1916 'pc_probe.probe'. Call methods from probe.
1917 (compile_probe_arg): Likewise.
1918 (std::vector<const probe_ops *> all_probe_ops): Delete.
1919 (std::vector<const static_probe_ops *> all_static_probe_ops):
1921 (_initialize_probe): Use 'all_static_probe_ops' instead of
1923 * probe.h (struct info_probe_column) <field_name>: Delete
1925 (info_probe_column_s): Delete type and VEC.
1926 (struct probe_ops): Delete. Replace with...
1927 (class static_probe_ops): ...this and...
1928 (clas probe): ...this.
1929 (struct bound_probe) <bound_probe>: Delete extraneous
1930 newline. Adjust constructor to receive 'probe' instead of
1932 <probe>: Rename to...
1933 <prob>: ...this. Delete extraneous newline.
1934 <objfile>: Delete extraneous newline.
1935 (register_probe_ops): Delete unused prototype.
1936 (info_probes_for_ops): Rename to...
1937 (info_probes_for_spops): ...this. Adjust comment.
1938 (get_probe_address): Move to 'probe::get_address'.
1939 (get_probe_argument_count): Move to
1940 'probe::get_argument_count'.
1941 (can_evaluate_probe_arguments): Move to
1942 'probe::can_evaluate_arguments'.
1943 (evaluate_probe_argument): Move to 'probe::evaluate_argument'.
1944 * solib-svr4.c (struct svr4_info): Adjust comment.
1945 (struct probe_and_action) <probe>: Rename to...
1947 (register_solib_event_probe): Receive 'probe' instead of
1948 'struct probe' as argument. Use 'prob' instead of 'probe'
1950 (solib_event_probe_action): Call 'get_argument_count' method
1951 from probe. Adjust comment.
1952 (svr4_handle_solib_event): Adjust comment. Call
1953 'evaluate_argument' method from probe.
1954 (svr4_create_probe_breakpoints): Call 'get_relocated_address'
1956 (svr4_create_solib_event_breakpoints): Use 'probe' instead of
1957 'struct probe'. Call 'can_evaluate_arguments' from probe.
1958 * symfile.h: Forward declare 'class probe' instead of 'struct
1960 * symtab.h: Likewise.
1961 (struct symtab_and_line) <probe>: Rename to...
1963 * tracepoint.c (start_tracing): Use 'prob' when applicable.
1965 (stop_tracing): Likewise.
1967 2017-11-22 Joel Brobecker <brobecker@adacore.com>
1969 * ravenscar-thread.c (ravenscar_inferior_created): Remove
1970 trailing newline at end of string in call to warning.
1972 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
1974 * osdata.h: Include vector isntead of vec.h.
1975 (osdata_column_s): Remove typedef.
1976 (struct osdata_column): Add constructor.
1977 <name, value>: Change type to std::string.
1978 (DEF_VEC_O (osdata_column_s)): Remove.
1979 (osdata_item_s): Remove typedef.
1980 (struct osdata_item) <columns>: Change type to std::vector.
1981 (DEF_VEC_O (osdata_item_s)): Remove.
1982 (struct osdata): Add constructor.
1983 <type>: Change type to std::string.
1984 <items>: Change type to std::vector.
1985 (osdata_p): Remove typedef.
1986 (DEF_VEC_P (osdata_p)): Remove.
1987 (osdata_parse): Return a unique_ptr.
1988 (osdata_free): Remove.
1989 (make_cleanup_osdata_free): Remove.
1990 (get_osdata): Return a unique_ptr.
1991 (get_osdata_column): Return pointer to std::string, take a
1992 reference to osdata_item as parameter.
1993 * osdata.c (struct osdata_parsing_data) <osdata>: Change type to
1995 <property_name>: Change type to std::string.
1996 (osdata_start_osdata): Allocate osdata with new and adjust.
1997 (osdata_start_item): Adjust.
1998 (osdata_start_column): Adjust.
1999 (osdata_end_column): Adjust.
2000 (clear_parsing_data): Remove.
2001 (osdata_parse): Return a unique_ptr and adjust, remove cleanup.
2002 (osdata_item_clear): Remove.
2003 (get_osdata): return a unique_ptr and adjust.
2004 (get_osdata_column): Return a pointer to std::string and adjust.
2005 (info_osdata): Adjust.
2006 * mi/mi-main.c: Include <map>.
2007 (free_vector_of_osdata_items): Remove.
2008 (list_available_thread_groups): Adjust, use std::map instead of
2011 2017-11-22 Simon Marchi <simon.marchi@ericsson.com>
2013 * stack.c (iterate_over_block_locals): Add LOC_OPTIMIZED_OUT
2016 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
2018 * varobj.h (DEF_VEC_P (varobj_p)): Remove.
2020 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
2022 * varobj.h (struct varobj_update_result): Add constructor, add
2023 move constructor, disable copy and assign, initialize fields.
2024 <newobj>: Change type to std::vector.
2025 (varobj_update): Return std::vector.
2026 * varobj.c (install_dynamic_child): Change VEC parameters to
2027 std::vector and adjust.
2028 (update_dynamic_varobj_children): Likewise.
2029 (varobj_update): Return std::vector and adjust.
2030 * mi/mi-cmd-var.c (varobj_update_one): Adjust to vector changes.
2032 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
2034 * varobj.h (struct varobj) <parent>: Remove const.
2035 <children>: Change type to std::vector.
2036 (varobj_list_children): Return std::vector const reference.
2037 (varobj_restrict_range): Change parameter type to std::vector
2039 * varobj.c (varobj_has_more): Adjust.
2040 (varobj_restrict_range): Change parameter type to std::vector
2041 const reference and adjust.
2042 (install_dynamic_child): Adjust.
2043 (update_dynamic_varobj_children): Adjust.
2044 (varobj_list_children): Return std::vector const reference and
2046 (varobj_add_child): Adjust.
2047 (update_type_if_necessary): Adjust.
2048 (varobj_update): Adjust.
2049 (delete_variable_1): Adjust.
2050 * ada-varobj.c (ada_value_has_mutated): Adjust.
2051 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust.
2053 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
2055 * varobj.h (struct varobj): Add constructor and destructor,
2057 * varobj.c (struct varobj_root): Initialize fields.
2058 (struct varobj_dynamic): Initialize fields.
2059 (varobj_create): Use unique_ptr instead of cleanup. Create
2060 varobj with new instead of new_root_variable.
2061 (delete_variable_1): Free variable with delete instead of
2063 (create_child_with_value): Create variable with new instead of
2065 (varobj::varobj): New.
2066 (varobj::~varobj): New (body mostly coming from free_variable).
2067 (new_variable): Remove.
2068 (free_variable): Remove.
2069 (do_free_variable_cleanup): Remove.
2070 (make_cleanup_free_variable): Remove.
2072 2017-11-22 Ulrich Weigand <uweigand@de.ibm.com>
2074 * core-regset.c: Remove file.
2075 * Makefile.in (ALLDEPFILES): Remove core-regset.c.
2077 2017-11-22 Ulrich Weigand <uweigand@de.ibm.com>
2079 * NEWS: Document use of GNU MPFR.
2082 * Makefile.in (LIBMPFR): Add define.
2083 (CLIBS): Add $(LIBMPFR).
2084 * configure.ac: Add --with-mpfr configure option.
2085 * configure: Regenerate.
2086 * config.in: Regenerate.
2088 * target-float.c [HAVE_LIBMPFR]: Include <mpfr.h>.
2089 (class mpfr_float_ops): New type.
2090 (mpfr_float_ops::from_target): Two new overloaded functions.
2091 (mpfr_float_ops::to_target): Likewise.
2092 (mpfr_float_ops::to_string): New function.
2093 (mpfr_float_ops::from_string): Likewise.
2094 (mpfr_float_ops::to_longest): Likewise.
2095 (mpfr_float_ops::from_longest): Likewise.
2096 (mpfr_float_ops::from_ulongest): Likewise.
2097 (mpfr_float_ops::to_host_double): Likewise.
2098 (mpfr_float_ops::from_host_double): Likewise.
2099 (mpfr_float_ops::convert): Likewise.
2100 (mpfr_float_ops::binop): Likewise.
2101 (mpfr_float_ops::compare): Likewise.
2102 (get_target_float_ops): Use mpfr_float_ops if available.
2104 2017-11-22 Ulrich Weigand <uweigand@de.ibm.com>
2106 * target-float.c: Do not include <math.h>.
2107 Include <cmath> and <limits>.
2108 (DOUBLEST): Do not define.
2109 (class target_float_ops): New type.
2110 (class host_float_ops): New templated type.
2111 (class decimal_float_ops): New type.
2113 (floatformat_to_doublest): Rename to ...
2114 (host_float_ops<T>::from_target): ... this. Use template type T
2115 instead of DOUBLEST. Use C++ math routines. Update recursive calls.
2116 (host_float_ops<T>::from_target): New overload using a type argument.
2117 (floatformat_from_doublest): Rename to ...
2118 (host_float_ops<T>::to_target): ... this. Use template type T
2119 instead of DOUBLEST. Use C++ math routines. Update recursive calls.
2120 (host_float_ops<T>::to_target): New overload using a type argument.
2121 (floatformat_printf_format): New function.
2122 (struct printf_length_modifier): New templated type.
2123 (floatformat_to_string): Rename to ...
2124 (host_float_ops<T>::to_string): ... this. Use type instead of
2125 floatformat argument. Use floatformat_printf_format and
2126 printf_length_modifier. Remove special handling of invalid numbers,
2127 infinities and NaN (moved to target_float_to_string).
2128 (struct scanf_length_modifier): New templated type.
2129 (floatformat_from_string): Rename to ...
2130 (host_float_ops<T>::from_string): ... this. Use type instead of
2131 floatformat argument. Use scanf_length_modifier.
2132 (floatformat_to_longest): Rename to ...
2133 (host_float_ops<T>::to_longest): ... this. Use type instead of
2134 floatformat argument. Handle out-of-range values deterministically.
2135 (floatformat_from_longest): Rename to ...
2136 (host_float_ops<T>::from_longest): ... this. Use type instead of
2137 floatformat argument.
2138 (floatformat_from_ulongest): Rename to ...
2139 (host_float_ops<T>::from_ulongest): ... this. Use type instead of
2140 floatformat argument.
2141 (floatformat_to_host_double): Rename to ...
2142 (host_float_ops<T>::to_host_double): ... this. Use type instead of
2143 floatformat argument.
2144 (floatformat_from_host_double): Rename to ...
2145 (host_float_ops<T>::from_host_double): ... this. Use type instead of
2146 floatformat argument.
2147 (floatformat_convert): Rename to ...
2148 (host_float_ops<T>::convert): ... this. Use type instead of
2149 floatformat arguments. Remove handling of no-op conversions.
2150 (floatformat_binop): Rename to ...
2151 (host_float_ops<T>::binop): ... this. Use type instead of
2152 floatformat arguments.
2153 (floatformat_compare): Rename to ...
2154 (host_float_ops<T>::compare): ... this. Use type instead of
2155 floatformat arguments.
2157 (match_endianness): Use type instead of length/byte_order arguments.
2158 (set_decnumber_context): Likewise.
2159 (decimal_from_number): Likewise. Update calls.
2160 (decimal_to_number): Likewise.
2161 (decimal_is_zero): Likewise. Update calls. Move to earlier in file.
2162 (decimal_float_ops::to_host_double): New dummy function.
2163 (decimal_float_ops::from_host_double): Likewise.
2164 (decimal_to_string): Rename to ...
2165 (decimal_float_ops::to_string): ... this. Use type instead of
2166 length/byte_order arguments. Update calls.
2167 (decimal_from_string): Rename to ...
2168 (decimal_float_ops::from_string): ... this. Use type instead of
2169 length/byte_order arguments. Update calls.
2170 (decimal_from_longest): Rename to ...
2171 (decimal_float_ops::from_longest): ... this. Use type instead of
2172 length/byte_order arguments. Update calls.
2173 (decimal_from_ulongest): Rename to ...
2174 (decimal_float_ops::from_ulongest): ... this. Use type instead of
2175 length/byte_order arguments. Update calls.
2176 (decimal_to_longest): Rename to ...
2177 (decimal_float_ops::to_longest): ... this. Use type instead of
2178 length/byte_order arguments. Update calls.
2179 (decimal_binop): Rename to ...
2180 (decimal_float_ops::binop): ... this. Use type instead of
2181 length/byte_order arguments. Update calls.
2182 (decimal_compare): Rename to ...
2183 (decimal_float_ops::compare): ... this. Use type instead of
2184 length/byte_order arguments. Update calls.
2185 (decimal_convert): Rename to ...
2186 (decimal_float_ops::convert): ... this. Use type instead of
2187 length/byte_order arguments. Update calls.
2189 (target_float_same_category_p): New function.
2190 (target_float_same_format_p): Likewise.
2191 (target_float_format_length): Likewise.
2192 (enum target_float_ops_kind): New type.
2193 (get_target_float_ops_kind): New function.
2194 (get_target_float_ops): Three new overloaded functions.
2196 (target_float_is_zero): Update call.
2197 (target_float_to_string): Add special handling of invalid numbers,
2198 infinities and NaN (moved from floatformat_to_string). Use
2199 target_float_ops callback.
2200 (target_float_from_string): Use target_float_ops callback.
2201 (target_float_to_longest): Likewise.
2202 (target_float_from_longest): Likewise.
2203 (target_float_from_ulongest): Likewise.
2204 (target_float_to_host_double): Likewise.
2205 (target_float_from_host_double): Likewise.
2206 (target_float_convert): Add special case for no-op conversions.
2207 Use target_float_ops callback.
2208 (target_float_binop): Use target_float_ops callback.
2209 (target_float_compare): Likewise.
2211 2017-11-22 Yao Qi <yao.qi@linaro.org>
2213 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use strcpy.
2215 2017-11-22 Yao Qi <yao.qi@linaro.org>
2217 * cli/cli-decode.c (help_list): Use memcpy instead of strncpy.
2218 * cp-namespace.c (cp_lookup_transparent_type_loop): Likewise.
2220 2017-11-21 Jerome Guitton <guitton@adacore.com>
2222 * ravenscar-thread.c (ravenscar_wait): Update inferior ptid
2223 with event ptid from the lower layer before doing the
2224 ravenscar-specific update.
2226 2017-11-21 Joel Brobecker <brobecker@adacore.com>
2228 * ravenscar-thread.c (is_ravenscar_task): Also verify that
2229 the ptid's TID is nonzero.
2231 2017-11-21 Joel Brobecker <brobecker@adacore.com>
2233 * ada-lang.h (ada_get_tcb_types_info): Add declaration.
2234 * ada-tasks.c (ada_get_tcb_types_info): Renames get_tcb_types_info.
2235 Make non-static. Change return type to char *. Adjust code
2236 accordingly. Rewrite the function's documentation.
2237 (read_atcb): Adjust call to get_tcb_types_info accordingly.
2238 * ravenscar-thread.c (ravenscar_inferior_created): Check that
2239 we have enough debugging information in the runtime to support
2240 Ada task debugging before we enable the ravenscar-thread layer.
2242 2017-11-21 Joel Brobecker <brobecker@adacore.com>
2244 * ada-lang.h (ada_get_task_info_from_ptid): Add declaration.
2245 * ada-tasks.c (ada_get_task_info_from_ptid): New function.
2246 * ravenscar-thread.c: Add into comment.
2247 (base_magic_null_ptid): Delete.
2248 (base_ptid): Change documentation.
2249 (ravenscar_active_task): Renames ravenscar_running_thread.
2250 All callers updated throughout.
2251 (is_ravenscar_task, ravenscar_get_thread_base_cpu): New function.
2252 (ravenscar_task_is_currently_active): Likewise.
2253 (get_base_thread_from_ravenscar_task): Ditto.
2254 (ravenscar_update_inferior_ptid): Adjust to handle multiple CPUs.
2255 (ravenscar_runtime_initialized): Likewise.
2256 (get_running_thread_id): Add new parameter "cpu". Adjust
2257 implementation to handle this new parameter.
2258 (ravenscar_fetch_registers): Small adjustment to use
2259 is_ravenscar_task and ravenscar_task_is_currently_active in
2260 order to decide whether to use the target beneath or this
2262 (ravenscar_store_registers, ravenscar_prepare_to_store): Likewise.
2263 (ravenscar_stopped_by_sw_breakpoint): Use
2264 get_base_thread_from_ravenscar_task to get the underlying
2265 thread, rather than using base_ptid.
2266 (ravenscar_stopped_by_hw_breakpoint, ravenscar_stopped_by_watchpoint)
2267 (ravenscar_stopped_data_address, ravenscar_core_of_thread):
2269 (ravenscar_inferior_created): Do not set base_magic_null_ptid.
2271 2017-11-21 Joel Brobecker <brobecker@adacore.com>
2273 * ada-lang.h (struct ada_task_info) <base_cpu>: New field.
2274 * ada-lang.c (struct atcb_fieldno) <base_cpu>: New field.
2275 (get_tcb_types_info): Set fieldnos.base_cpu.
2276 (read_atcb): Set task_info->base_cpu.
2277 (info_task): Print "Base CPU" info if set by runtime.
2279 2017-11-21 Joel Brobecker <brobecker@adacore.com>
2281 * ravenscar-thread.c (ravenscar_stopped_by_sw_breakpoint)
2282 (ravenscar_stopped_by_hw_breakpoint, ravenscar_stopped_by_watchpoint)
2283 (ravenscar_stopped_data_address, ravenscar_core_of_thread):
2285 (init_ravenscar_thread_ops): Set the to_stopped_by_sw_breakpoint,
2286 to_stopped_by_hw_breakpoint, to_stopped_by_watchpoint,
2287 to_stopped_data_address and to_core_of_thread fields of
2290 2017-11-21 Ulrich Weigand <uweigand@de.ibm.com>
2292 * ppc-tdep.h (enum powerpc_long_double_abi): New data type.
2293 (struct gdbarch_tdep): New member long_double_abi.
2294 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize long_double_abi
2295 member of tdep struct based on Tag_GNU_Power_ABI_FP attribute.
2296 * ppc-linux-tdep.c (ppc_linux_init_abi): Install long double data
2297 format depending on long_double_abi tdep member.
2298 (ppc_floatformat_for_type): Handle __ibm128 type.
2300 2017-11-20 Simon Marchi <simon.marchi@polymtl.ca>
2302 * darwin-nat.c (set_enable_mach_exceptions): Constify parameter.
2304 2017-11-21 Pedro Alves <palves@redhat.com>
2306 * dwarf2read.c (mapped_index::find_name_components_bounds)
2307 <completion mode, upper bound>: Use std::lower_bound instead of
2309 (test_mapped_index_find_name_component_bounds): Remove incorrect
2310 "t1_fund" from expected symbols.
2312 2017-11-21 Pedro Alves <palves@redhat.com>
2314 * dwarf2read.c (mapped_index::name_components_casing): New field.
2315 (mapped_index) <build_name_components,
2316 find_name_components_bounds): Declare new methods.
2317 (mapped_index::find_name_components_bounds)
2318 (mapped_index::build_name_components): New methods, factored out
2319 from dw2_expand_symtabs_matching_symbol.
2320 (check_find_bounds_finds)
2321 (test_mapped_index_find_name_component_bounds): New.
2322 (run_test): Rename to ...
2323 (test_dw2_expand_symtabs_matching_symbol): ... this.
2324 (run_test): Reimplement.
2326 2017-11-21 Pedro Alves <palves@redhat.com>
2328 * cp-name-parser.y (cp_ident_is_alpha, cp_ident_is_alnum): New.
2329 (symbol_end): Use cp_ident_is_alnum.
2330 (yylex): Use cp_ident_is_alpha and cp_ident_is_alnum.
2331 * dwarf2read.c (make_sort_after_prefix_name): New function.
2332 (dw2_expand_symtabs_matching_symbol): Use it.
2333 (test_symbols): Add more symbols.
2334 (run_test): Add tests.
2336 2017-11-17 Tom Tromey <tom@tromey.com>
2338 * symtab.h (enum symbol_subclass_kind): New.
2339 (struct symbol) <is_cplus_template_function, is_rust_vtable>:
2341 <subclass>: New member.
2342 (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): Update.
2343 * rust-lang.c (rust_get_trait_object_pointer): Update.
2344 * dwarf2read.c (read_func_scope): Update.
2345 (read_variable): Update.
2347 2017-11-17 Tom Tromey <tom@tromey.com>
2349 * dwarf2read.c (read_func_scope): Update.
2350 * symtab.h (struct template_symbol): Derive from symbol.
2353 2017-11-17 Tom Tromey <tom@tromey.com>
2355 * symtab.h (struct symbol) <is_rust_vtable>: New member.
2356 (struct rust_vtable_symbol): New.
2357 (find_symbol_at_address): Declare.
2358 * symtab.c (find_symbol_at_address): New function.
2359 * symfile.h (struct quick_symbol_functions)
2360 <find_compunit_symtab_by_address>: New member.
2361 * symfile-debug.c (debug_qf_find_compunit_symtab_by_address): New
2363 (debug_sym_quick_functions): Link to
2364 debug_qf_find_compunit_symtab_by_address.
2365 * rust-lang.c (rust_get_trait_object_pointer): New function.
2366 (rust_evaluate_subexp) <case UNOP_IND>: New case. Call
2367 rust_get_trait_object_pointer.
2368 * psymtab.c (psym_relocate): Clear psymbol_map.
2369 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address): New
2371 (psym_functions): Link to psym_find_compunit_symtab_by_address.
2372 * objfiles.h (struct objfile) <psymbol_map>: New member.
2373 * dwarf2read.c (dwarf2_gdb_index_functions): Update.
2374 (process_die) <DW_TAG_variable>: New case. Call read_variable.
2375 (rust_containing_type, read_variable): New functions.
2377 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
2379 * common/gdb_vecs.h (DEF_VEC_I (int)): Remove.
2381 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
2383 * common/filestuff.c: Include <algorithm>.
2384 (open_fds): Change type to std::vector<int>.
2385 (do_mark_open_fd): Adjust.
2386 (unmark_fd_no_cloexec): Adjust.
2389 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
2391 * breakpoint.c (output_thread_groups): Take an std::vector.
2392 (print_one_breakpoint_location): Adjust.
2394 2017-11-17 Joel Brobecker <brobecker@adacore.com>
2396 * ada-lang.c (resolve_subexp): Add handling of OP_VAR_MSYM_VALUE.
2397 (ada_evaluate_subexp_for_cast): New function.
2398 (ada_evaluate_subexp) <UNOP_CAST>: Replace code by call to
2399 ada_evaluate_subexp_for_cast.
2400 (ada_evaluate_subexp) <nosideret>: Replace code by call to
2402 * eval.c (evaluate_var_value): Make non-static.
2403 (evaluate_var_msym_value, eval_skip_value): Likewise.
2404 * value.h (evaluate_var_value, evaluate_var_msym_value)
2405 (eval_skip_value): Declare.
2407 2017-11-16 Joel Brobecker <brobecker@adacore.com>
2409 * ada-lang.c (ada_value_cast): Remove parameter "noside".
2412 2017-11-16 Pedro Alves <palves@redhat.com>
2414 * python/py-unwind.c (pyuw_sniffer): Translate
2415 PyExc_KeyboardInterrupt to a GDB Quit exception.
2417 2017-11-16 Pedro Alves <palves@redhat.com>
2419 * infrun.c (resume_cleanups): Delete.
2420 (resume): No longer install a resume_cleanups cleanup nor call
2422 (proceed): Pass the terminal to the inferior.
2423 (keep_going_pass_signal): No longer install a resume_cleanups
2426 2017-11-16 Pedro Alves <palves@redhat.com>
2428 * inf-loop.c (inferior_event_handler): Don't swallow the exception
2429 if the prompt is blocked.
2431 2017-11-16 Pedro Alves <palves@redhat.com>
2433 * breakpoint.c (insert_bp_location): Replace bp_err and
2434 bp_err_message locals by a gdb_exception local.
2436 2017-11-16 Pedro Alves <palves@redhat.com>
2438 * inflow.c (scoped_ignore_sigttou): New class.
2439 (child_terminal_ours_1, new_tty): Use it.
2441 2017-11-16 Ulrich Weigand <uweigand@de.ibm.com>
2443 * target-float.c (decimal_from_number): Add byte_order argument and
2444 call match_endianness. Error if unknown floating-point type.
2445 (decimal_to_number): Add byte_order argument and call match_endianness.
2446 (decimal_from_longest): Update call. Do not call match_endianness.
2447 (decimal_from_ulongest): Likewise.
2448 (decimal_binop): Likewise.
2449 (decimal_is_zero): Likewise.
2450 (decimal_compare): Likewise.
2451 (decimal_convert): Likewise.
2453 2017-11-16 Phil Muldoon <pmuldoon@redhat.com>
2455 * python/python.c (gdbpy_rbreak): New function.
2456 * NEWS: Document Python rbreak feature.
2458 2017-11-16 Yao Qi <yao.qi@linaro.org>
2460 * features/tic6x-c62x.xml: Remove.
2461 * features/tic6x-c64x.xml: Remove.
2462 * features/tic6x-c64xp.xml: Remove.
2464 2017-11-15 John Baldwin <jhb@FreeBSD.org>
2466 * symtab.h: Include <array>.
2468 2017-11-15 John Baldwin <jhb@FreeBSD.org>
2470 * bsd-kvm.c (bsd_kvm_cmd): Constify 'arg'.
2471 (bsd_kvm_proc_cmd): Likewise.
2473 2017-11-15 Simon Marchi <simon.marchi@ericsson.com>
2475 * tui/tui-win.c (window_name_completer): Replace VEC with
2478 2017-11-15 Andrew Cagney <cagney@gnu.org>
2480 * MAINTAINERS: Remove no-longer applicable entries.
2482 2017-11-15 Andrew Cagney <cagney@gnu.org>
2484 * MAINTAINERS: Move self to Past Maintainers.
2486 2017-11-15 Yao Qi <yao.qi@linaro.org>
2488 * features/Makefile (XMLTOC): Remove nios2-linux.xml.
2489 * features/nios2-linux.c: Remove.
2490 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Don't call
2491 initialize_tdesc_nios2_linux.
2493 2017-11-15 Yao Qi <yao.qi@linaro.org>
2495 * m68hc11-tdep.c (M68HC11_NUM_REGS): Change it to
2496 M68HC11_LAST_HARD_REG + 1.
2498 2017-11-14 Paul Carroll <pcarroll@codesourcery.com>
2501 * remote.c (remote_write_bytes_aux, remote_read_bytes_1,
2502 remote_read_bytes, remote_write_qxfer, remote_xfer_partial):
2503 Return TARGET_XFER_EOF if size of returned data is 0.
2505 2017-11-14 Simon Marchi <simon.marchi@ericsson.com>
2507 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2508 memory-map-selftests.c.
2509 (SUBDIR_UNITTESTS_OBS): Add memory-map-selftests.o.
2510 * memory-map.c (memory_map_start_memory): Fix computation of hi
2512 * unittests/memory-map-selftests.c: New file.
2514 2017-11-09 Joel Brobecker <brobecker@adacore.com>
2516 * ada-lang.c: Fix some typos in the general command documenting
2517 how Ada expressions are being evaluated and how their result
2520 2017-11-09 Tom Tromey <tom@tromey.com>
2522 * psymtab.c (psymbol_hash): Do not hash string contents.
2523 (psymbol_compare): Add comment.
2525 2017-11-09 Tom Tromey <tom@tromey.com>
2527 * dictionary.c (dict_hash): Move "TKB" check into the "switch".
2529 2017-11-08 Joel Brobecker <brobecker@adacore.com>
2531 * ada-exp.y (write_var_from_sym): Remove parameter
2532 "orig_left_context". Update all callers.
2534 2017-11-08 Simon Marchi <simon.marchi@ericsson.com>
2536 * tracepoint.h (class collection_list) <stringify>: Return
2537 std::vector<std::string>.
2538 (encode_actions_rsp): Change parameters to
2539 std::vector<std::string> *.
2540 * tracepoint.c (collection_list::stringify): Return
2541 std::vector<std::string> and adjust accordingly.
2542 (encode_actions_rsp): Changee parameters to
2543 std::vector<std::string> and adjust accordingly.
2544 * remote.c (free_actions_list),
2545 free_actions_list_cleanup_wrapper): Remove.
2546 (remote_download_tracepoint): Adjust to std::vector.
2548 2017-11-08 Tom Tromey <tom@tromey.com>
2550 * dwarf2read.c (symbolp): Remove typedef.
2551 (read_func_scope): Use std::vector.
2552 (process_structure_scope): Use std::vector.
2554 2017-11-08 Pedro Alves <palves@redhat.com>
2556 * ada-lang.c (ada_make_symbol_completion_list): Use
2557 completion_skip_symbol.
2558 * symtab.c (symbol_is_function_or_method(minimal_symbol*)): New.
2559 (symbol_is_function_or_method(symbol*)): New.
2560 (add_symtab_completions): Add complete_symbol_mode parameter. Use
2561 completion_skip_symbol.
2562 (default_collect_symbol_completion_matches_break_on): Use
2563 completion_skip_symbol. Pass down mode.
2564 (collect_file_symbol_completion_matches): Pass down mode.
2565 * symtab.h (symbol_is_function_or_method): New declarations.
2566 (completion_skip_symbol): New template function.
2568 2017-11-08 Pedro Alves <palves@redhat.com>
2570 * linespec.c (iterate_over_all_matching_symtabs): Add
2571 search_domain parameter. Pass it down to expand_symtabs_matching.
2572 (decode_objc): Request FUNCTIONS_DOMAIN symbols only.
2573 (lookup_prefix_sym): Adjust by passing ALL_DOMAIN as
2575 (add_all_symbol_names_from_pspace): Add search_domain parameter.
2577 (find_method, find_function_symbols): Request FUNCTIONS_DOMAIN
2579 (add_matching_symbols_to_info): Add search_domain parameter. Pass
2582 2017-11-08 Pedro Alves <palves@redhat.com>
2584 * ada-lang.c (ada_make_symbol_completion_list): Remove text and
2585 text_len locals and don't pass them down.
2586 * symtab.c (completion_list_add_name): Remove
2587 sym_text/sym_text_len parameters and adjust.
2588 (completion_list_add_symbol, completion_list_add_msymbol)
2589 (completion_list_objc_symbol, completion_list_add_fields)
2590 (add_symtab_completions): Likewise.
2591 (default_collect_symbol_completion_matches_break_on)
2592 (collect_file_symbol_completion_matches): Remove sym_text_len
2593 local and don't pass it down.
2594 * symtab.h (completion_list_add_name): Remove
2595 sym_text/sym_text_len parameters.
2597 2017-11-08 Pedro Alves <palves@redhat.com>
2599 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2600 unittests/lookup_name_info-selftests.c.
2601 (SUBDIR_UNITTESTS_OBS): Add lookup_name_info-selftests.o.
2602 * cp-support.c: Include "selftest.h".
2603 (cp_remove_params_1): Rename from cp_remove_params. Add
2604 'require_param' parameter, and handle it.
2605 (cp_remove_params): Reimplement.
2606 (cp_remove_params_if_any): New.
2607 (selftests::quote): New.
2608 (selftests::check_remove_params): New.
2609 (selftests::test_cp_remove_params): New.
2610 (_initialize_cp_support): Install
2611 selftests::test_cp_remove_params.
2612 * cp-support.h (cp_remove_params_if_any): Declare.
2613 * dwarf2read.c :Include "selftest.h".
2614 (dw2_expand_symtabs_matching_symbol): Use
2615 lookup_name_info::make_ignore_params.
2616 (selftests::dw2_expand_symtabs_matching::mock_mapped_index)
2617 (selftests::dw2_expand_symtabs_matching::string_or_null)
2618 (selftests::dw2_expand_symtabs_matching::check_match)
2619 (selftests::dw2_expand_symtabs_matching::test_symbols)
2620 (selftests::dw2_expand_symtabs_matching::run_test): New.
2621 (_initialize_dwarf2_read): Register
2622 selftests::dw2_expand_symtabs_matching::run_test.
2623 * psymtab.c (psym_expand_symtabs_matching): Use
2624 lookup_name_info::make_ignore_params.
2625 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info):
2626 If the lookup name wants to ignore parameters, strip them.
2627 (compare_symbol_name): Remove sym_text/sym_text_len parameters and
2629 (completion_list_add_name): Don't pass down sym_text/sym_text_len.
2630 (default_collect_symbol_completion_matches_break_on): Don't try to
2632 * symtab.h (lookup_name_info::lookup_name_info): Add
2633 'ignore_parameters' parameter.
2634 (lookup_name_info::ignore_parameters)
2635 (lookup_name_info::make_ignore_params): New methods.
2636 (lookup_name_info::m_ignore_parameters): New field.
2637 * unittests/lookup_name_info-selftests.c: New file.
2639 2017-11-08 Pedro Alves <palves@redhat.com>
2641 * dwarf2read.c (dw2_expand_marked_cus)
2642 (dw2_expand_symtabs_matching_symbol): Remove forward declarations.
2643 (dw2_expand_symtabs_matching): Move further below.
2644 (dw2_expand_marked_cus): Reindent.
2646 2017-11-08 Pedro Alves <palves@redhat.com>
2648 * dwarf2read.c (byte_swap, MAYBE_SWAP): Move higher up in file.
2649 (struct name_component): New.
2650 (mapped_index::name_components): New field.
2651 (mapped_index::symbol_name_at): New method.
2652 (dwarf2_read_index): Call mapped_index ctor.
2653 (dw2_map_matching_symbols): Add comment about name_components
2655 (dw2_expand_symtabs_matching): Factor part to...
2656 (dw2_expand_symtabs_matching_symbol): ... this new function.
2657 Build name components table, and lookup symbols in it before
2658 calling the name matcher.
2659 (dw2_expand_marked_cus): New, factored out from
2660 dw2_expand_symtabs_matching.
2661 (dwarf2_per_objfile_free): Call the mapped_index's dtor.
2663 2017-11-08 Pedro Alves <palves@redhat.com>
2665 * ada-lang.c (ada_encode): Rename to ..
2666 (ada_encode_1): ... this. Add throw_errors parameter and handle
2668 (ada_encode): Reimplement.
2669 (match_name): Delete, folded into full_name.
2670 (resolve_subexp): No longer pass the encoded name to
2671 ada_lookup_symbol_list.
2672 (should_use_wild_match): Delete.
2673 (name_match_type_from_name): New.
2674 (ada_lookup_simple_minsym): Use lookup_name_info and the
2675 language's symbol_name_matcher_ftype.
2676 (add_symbols_from_enclosing_procs, ada_add_local_symbols)
2677 (ada_add_block_renamings): Adjust to use lookup_name_info.
2678 (ada_lookup_name): New.
2679 (add_nonlocal_symbols, ada_add_all_symbols)
2680 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list)
2681 (ada_iterate_over_symbols): Adjust to use lookup_name_info.
2682 (ada_name_for_lookup): Delete.
2683 (ada_lookup_encoded_symbol): Construct a verbatim name.
2684 (wild_match): Reverse sense of return type. Use bool.
2685 (full_match): Reverse sense of return type. Inline bits of old
2687 (ada_add_block_symbols): Adjust to use lookup_name_info.
2688 (symbol_completion_match): Delete, folded into...
2689 (ada_lookup_name_info::matches): ... .this new method.
2690 (symbol_completion_add): Delete.
2691 (ada_collect_symbol_completion_matches): Add name_match_type
2692 parameter. Adjust to use lookup_name_info and
2693 completion_list_add_name.
2694 (get_var_value, ada_add_global_exceptions): Adjust to use
2696 (ada_get_symbol_name_cmp): Delete.
2697 (do_wild_match, do_full_match): New functions.
2698 (ada_lookup_name_info::ada_lookup_name_info): New method.
2699 (ada_symbol_name_matches, ada_get_symbol_name_matcher): New
2701 (ada_language_defn): Install ada_get_symbol_name_matcher.
2702 * ada-lex.l (processId): If name starts with '<', copy it
2704 * block.c (block_iter_match_step, block_iter_match_first)
2705 (block_iter_match_next, block_lookup_symbol)
2706 (block_lookup_symbol_primary, block_find_symbol): Adjust to use
2708 * block.h (block_iter_match_first, block_iter_match_next)
2709 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use lookup_name_info.
2710 * c-lang.c (c_language_defn, cplus_language_defn)
2711 (asm_language_defn, minimal_language_defn): Adjust comments to
2712 refer to la_get_symbol_name_matcher.
2713 * completer.c (complete_files_symbols)
2714 (collect_explicit_location_matches, symbol_completer): Pass a
2715 symbol_name_match_type down.
2716 * completer.h (class completion_match, completion_match_result):
2718 (completion_tracker::reset_completion_match_result): New method.
2719 (completion_tracker::m_completion_match_result): New field.
2720 * cp-support.c (make_symbol_overload_list_block): Adjust to use
2722 (cp_fq_symbol_name_matches, cp_get_symbol_name_matcher): New
2724 * cp-support.h (cp_get_symbol_name_matcher): New declaration.
2725 * d-lang.c: Adjust comments to refer to
2726 la_get_symbol_name_matcher.
2727 * dictionary.c (dict_vector) <iter_match_first, iter_match_next>:
2728 Adjust to use lookup_name_info.
2729 (dict_iter_match_first, dict_iter_match_next)
2730 (iter_match_first_hashed, iter_match_next_hashed)
2731 (iter_match_first_linear, iter_match_next_linear): Adjust to work
2732 with a lookup_name_info.
2733 * dictionary.h (dict_iter_match_first, dict_iter_match_next):
2735 * dwarf2read.c (dw2_lookup_symbol): Adjust to use lookup_name_info.
2736 (dw2_map_matching_symbols): Adjust to use symbol_name_match_type.
2737 (gdb_index_symbol_name_matcher): New class.
2738 (dw2_expand_symtabs_matching) Adjust to use lookup_name_info and
2739 gdb_index_symbol_name_matcher. Accept a NULL symbol_matcher.
2740 * f-lang.c (f_collect_symbol_completion_matches): Adjust to work
2741 with a symbol_name_match_type.
2742 (f_language_defn): Adjust comments to refer to
2743 la_get_symbol_name_matcher.
2744 * go-lang.c (go_language_defn): Adjust comments to refer to
2745 la_get_symbol_name_matcher.
2746 * language.c (default_symbol_name_matcher)
2747 (language_get_symbol_name_matcher): New functions.
2748 (unknown_language_defn, auto_language_defn): Adjust comments to
2749 refer to la_get_symbol_name_matcher.
2750 * language.h (symbol_name_cmp_ftype): Delete.
2751 (language_defn) <la_collect_symbol_completion_matches>: Add match
2753 <la_get_symbol_name_cmp>: Delete field.
2754 <la_get_symbol_name_matcher>: New field.
2755 <la_iterate_over_symbols>: Adjust to use lookup_name_info.
2756 (default_symbol_name_matcher, language_get_symbol_name_matcher):
2758 * linespec.c (iterate_over_all_matching_symtabs)
2759 (iterate_over_file_blocks): Adjust to use lookup_name_info.
2760 (find_methods): Add language parameter, and use lookup_name_info
2761 and the language's symbol_name_matcher_ftype.
2762 (linespec_complete_function): Adjust.
2763 (lookup_prefix_sym): Use lookup_name_info.
2764 (add_all_symbol_names_from_pspace): Adjust.
2765 (find_superclass_methods): Add language parameter and pass it
2767 (find_method): Pass symbol language down.
2768 (find_linespec_symbols): Don't demangle or Ada encode here.
2769 (search_minsyms_for_name): Add lookup_name_info parameter.
2770 (add_matching_symbols_to_info): Add name_match_type parameter.
2771 Use lookup_name_info.
2772 * m2-lang.c (m2_language_defn): Adjust comments to refer to
2773 la_get_symbol_name_matcher.
2774 * minsyms.c: Include <algorithm>.
2775 (add_minsym_to_demangled_hash_table): Remove table parameter and
2776 add objfile parameter. Use search_name_hash, and add language to
2777 demangled languages vector.
2778 (struct found_minimal_symbols): New struct.
2779 (lookup_minimal_symbol_mangled, lookup_minimal_symbol_demangled):
2781 (lookup_minimal_symbol): Adjust to use them. Don't canonicalize
2782 input names here. Use lookup_name_info instead. Lookup up
2783 demangled names once for each language in the demangled names
2785 (iterate_over_minimal_symbols): Use lookup_name_info. Lookup up
2786 demangled names once for each language in the demangled names
2788 (build_minimal_symbol_hash_tables): Adjust.
2789 * minsyms.h (iterate_over_minimal_symbols): Adjust to pass down a
2791 * objc-lang.c (objc_language_defn): Adjust comment to refer to
2792 la_get_symbol_name_matcher.
2793 * objfiles.h: Include <vector>.
2794 (objfile_per_bfd_storage) <demangled_hash_languages>: New field.
2795 * opencl-lang.c (opencl_language_defn): Adjust comment to refer to
2796 la_get_symbol_name_matcher.
2797 * p-lang.c (pascal_language_defn): Adjust comment to refer to
2798 la_get_symbol_name_matcher.
2799 * psymtab.c (psym_lookup_symbol): Use lookup_name_info.
2800 (match_partial_symbol): Use symbol_name_match_type,
2801 lookup_name_info and psymbol_name_matches.
2802 (lookup_partial_symbol): Use lookup_name_info.
2803 (map_block): Use symbol_name_match_type and lookup_name_info.
2804 (psym_map_matching_symbols): Use symbol_name_match_type.
2805 (psymbol_name_matches): New.
2806 (recursively_search_psymtabs): Use lookup_name_info and
2807 psymbol_name_matches. Rename 'kind' parameter to 'domain'.
2808 (psym_expand_symtabs_matching): Use lookup_name_info. Rename
2809 'kind' parameter to 'domain'.
2810 * rust-lang.c (rust_language_defn): Adjust comment to refer to
2811 la_get_symbol_name_matcher.
2812 * symfile-debug.c (debug_qf_map_matching_symbols)
2813 (debug_qf_map_matching_symbols): Use symbol_name_match_type.
2814 (debug_qf_expand_symtabs_matching): Use lookup_name_info.
2815 * symfile.c (expand_symtabs_matching): Use lookup_name_info.
2816 * symfile.h (quick_symbol_functions) <map_matching_symbols>:
2817 Adjust to use symbol_name_match_type.
2818 <expand_symtabs_matching>: Adjust to use lookup_name_info.
2819 (expand_symtabs_matching): Adjust to use lookup_name_info.
2820 * symmisc.c (maintenance_expand_symtabs): Use
2821 lookup_name_info::match_any ().
2822 * symtab.c (symbol_matches_search_name): New.
2823 (eq_symbol_entry): Adjust to use lookup_name_info and the
2825 (demangle_for_lookup_info::demangle_for_lookup_info): New.
2826 (lookup_name_info::match_any): New.
2827 (iterate_over_symbols, search_symbols): Use lookup_name_info.
2828 (compare_symbol_name): Add language, lookup_name_info and
2829 completion_match_result parameters, and use them.
2830 (completion_list_add_name): Make extern. Add language and
2831 lookup_name_info parameters. Use them.
2832 (completion_list_add_symbol, completion_list_add_msymbol)
2833 (completion_list_objc_symbol): Add lookup_name_info parameters and
2834 adjust. Pass down language.
2835 (completion_list_add_fields): Add lookup_name_info parameters and
2836 adjust. Pass down language.
2837 (add_symtab_completions): Add lookup_name_info parameters and
2839 (default_collect_symbol_completion_matches_break_on): Add
2840 name_match_type parameter, and use it. Use lookup_name_info.
2841 (default_collect_symbol_completion_matches)
2842 (collect_symbol_completion_matches): Add name_match_type
2843 parameter, and pass it down.
2844 (collect_symbol_completion_matches_type): Adjust.
2845 (collect_file_symbol_completion_matches): Add name_match_type
2846 parameter, and use lookup_name_info.
2847 * symtab.h: Include <string> and "common/gdb_optional.h".
2848 (enum class symbol_name_match_type): New.
2849 (class ada_lookup_name_info): New.
2850 (struct demangle_for_lookup_info): New.
2851 (class lookup_name_info): New.
2852 (symbol_name_matcher_ftype): New.
2853 (SYMBOL_MATCHES_SEARCH_NAME): Use symbol_matches_search_name.
2854 (symbol_matches_search_name): Declare.
2855 (MSYMBOL_MATCHES_SEARCH_NAME): Delete.
2856 (default_collect_symbol_completion_matches)
2857 (collect_symbol_completion_matches)
2858 (collect_file_symbol_completion_matches): Add name_match_type
2860 (iterate_over_symbols): Use lookup_name_info.
2861 (completion_list_add_name): Declare.
2862 * utils.c (enum class strncmp_iw_mode): Moved to utils.h.
2863 (strncmp_iw_with_mode): Now extern.
2864 * utils.h (enum class strncmp_iw_mode): Moved from utils.c.
2865 (strncmp_iw_with_mode): Declare.
2867 2017-11-08 Keith Seitz <keiths@redhat.com>
2868 Pedro Alves <palves@redhat.com>
2870 * ada-lang.c (ada_language_defn): Install
2871 default_search_name_hash.
2872 * buildsym.c (struct buildsym_compunit): <language>: New field.
2873 (finish_block_internal): Pass language when creating dictionaries.
2874 (start_buildsym_compunit, start_symtab): New language parameters.
2876 (restart_symtab): Pass down compilation unit's language.
2877 * buildsym.h (enum language): Forward declare.
2878 (start_symtab): New 'language' parameter.
2879 * c-lang.c (c_language_defn, cplus_language_defn)
2880 (asm_language_defn, minimal_language_defn): Install
2881 default_search_name_hash.
2882 * coffread.c (coff_start_symtab): Adjust.
2883 * d-lang.c (d_language_defn): Install default_search_name_hash.
2884 * dbxread.c (struct symloc): Add 'pst_language' field.
2885 (PST_LANGUAGE): Define.
2886 (start_psymtab, read_ofile_symtab): Use it.
2887 (process_one_symbol): New 'language' parameter. Pass it down.
2888 * dictionary.c (struct dictionary) <language>: New field.
2889 (DICT_LANGUAGE): Define.
2890 (dict_create_hashed, dict_create_hashed_expandable)
2891 (dict_create_linear, dict_create_linear_expandable): New parameter
2892 'language'. Set the dictionary's language.
2893 (iter_match_first_hashed): Adjust to rename.
2894 (insert_symbol_hashed): Assert we don't see mismatching
2895 languages. Adjust to rename.
2896 (dict_hash): Rename to ...
2897 (default_search_name_hash): ... this and make extern.
2898 * dictionary.h (struct language_defn): Forward declare.
2899 (dict_create_hashed): New parameter 'language'.
2900 * dwarf2read.c (dwarf2_start_symtab): Pass down language.
2901 * f-lang.c (f_language_defn): Install default_search_name_hash.
2902 * go-lang.c (go_language_defn): Install default_search_name_hash.
2903 * jit.c (finalize_symtab): Pass compunit's language to dictionary
2905 * language.c (unknown_language_defn, auto_language_defn):
2906 * language.h (language_defn::la_search_name_hash): New field.
2907 (default_search_name_hash): Declare.
2908 * m2-lang.c (m2_language_defn): Install default_search_name_hash.
2909 * mdebugread.c (new_block): New parameter 'language'.
2910 * mdebugread.c (parse_symbol): Pass symbol language to block
2912 (psymtab_to_symtab_1): Pass down language.
2913 (new_symtab): Pass compunit's language to block allocation.
2914 * objc-lang.c (objc_language_defn): Install
2915 default_search_name_hash.
2916 * opencl-lang.c (opencl_language_defn):
2917 * p-lang.c (pascal_language_defn): Install
2918 default_search_name_hash.
2919 * rust-lang.c (rust_language_defn): Install
2920 default_search_name_hash.
2921 * stabsread.h (enum language): Forward declare.
2922 (process_one_symbol): Add 'language' parameter.
2923 * symtab.c (search_name_hash): New function.
2924 * symtab.h (search_name_hash): Declare.
2925 * xcoffread.c (read_xcoff_symtab): Pass language to start_symtab.
2927 2017-11-08 Pedro Alves <palves@redhat.com>
2929 * cp-name-parser.y (main): Don't initialize extra_chars.
2931 2017-11-07 Tom Tromey <tom@tromey.com>
2933 * event-top.h (command_handler): Constify.
2934 * record-full.c (cmd_record_full_start): Update.
2935 * thread.c (thread_apply_all_command): Update.
2936 * printcmd.c (eval_command): Update.
2937 * mi/mi-main.c (mi_execute_cli_command): Update.
2938 (mi_execute_async_cli_command): Update.
2939 * tui/tui-stack.c (tui_update_command): Update.
2940 * cli/cli-interp.c (safe_execute_command): Constify.
2941 * record.c (record_start): Update.
2942 (record_start, record_stop, cmd_record_start): Update.
2943 * record-btrace.c (cmd_record_btrace_bts_start): Update.
2944 (cmd_record_btrace_pt_start): Update.
2945 (cmd_record_btrace_start): Update.
2946 (cmd_record_btrace_start): Update.
2947 * reverse.c (exec_reverse_once): Update.
2948 * python/python.c (execute_gdb_command): Don't copy the command.
2949 * event-top.c (command_line_handler): Update.
2950 (command_handler): Constify.
2951 * defs.h (deprecated_call_command_hook): Constify.
2952 * cli/cli-script.h (execute_user_command): Constify.
2953 * cli/cli-script.c (execute_user_command): Constify.
2954 (execute_cmd_pre_hook, execute_cmd_post_hook): Constify.
2955 (enum command_control_type): Update.
2956 * main.c (catch_command_errors): Remove non-const overload.
2957 (catch_command_errors_ftype): Remove.
2958 * python/py-cmd.c (cmdpy_function): Constify.
2959 * guile/scm-cmd.c (cmdscm_function): Constify.
2960 * cli/cli-dump.c (call_dump_func): Constify.
2961 * cli/cli-decode.c (do_const_cfunc): Constify.
2962 (do_sfunc): Constify.
2963 (cmd_func): Constify.
2964 * gdbcmd.h (execute_command, execute_command_to_string): Constify.
2965 * top.h (execute_command): Constify.
2966 * top.c (execute_command): Constify.
2967 (execute_command_to_string): Constify.
2968 (deprecated_call_command_hook): Constify.
2969 * command.h (cmd_func): Constify.
2970 * cli/cli-decode.h (struct cmd_list_element) <func>: Constify.
2972 2017-11-07 Tom Tromey <tom@tromey.com>
2974 * ada-lang.c (catch_ada_exception_command): Constify.
2975 (catch_assert_command): Constify.
2976 * break-catch-throw.c (catch_catch_command, catch_throw_command)
2977 (catch_rethrow_command): Constify.
2978 (catch_exception_command_1): Constify.
2979 * breakpoint.h (add_catch_command): Constify.
2980 * break-catch-syscall.c (catch_syscall_command_1): Constify.
2981 (catch_syscall_split_args): Constify.
2982 * break-catch-sig.c (catch_signal_command): Constify.
2983 (catch_signal_split_args): Constify.
2984 * cli/cli-decode.h (struct cmd_list_element) <function>: Use
2985 cmd_const_sfunc_ftype.
2986 * cli/cli-decode.c (add_setshow_cmd_full): Constify.
2987 (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd)
2988 (add_setshow_boolean_cmd, add_setshow_filename_cmd)
2989 (add_setshow_string_cmd, struct cmd_list_element)
2990 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
2991 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
2992 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd):
2994 (set_cmd_sfunc): Constify.
2995 (empty_sfunc): Constify.
2996 * command.h (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd)
2997 (add_setshow_boolean_cmd, add_setshow_filename_cmd)
2998 (add_setshow_string_cmd, add_setshow_string_noescape_cmd)
2999 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
3000 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
3001 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
3003 (set_cmd_sfunc): Constify.
3004 (cmd_sfunc_ftype): Remove.
3005 * compile/compile.c (set_compile_args): Constify.
3006 * infrun.c (set_disable_randomization): Constify.
3007 * infcmd.c (set_args_command, set_cwd_command): Constify.
3008 * breakpoint.c (set_condition_evaluation_mode): Constify.
3009 (add_catch_command): Constify.
3010 (catch_fork_command_1, catch_exec_command_1)
3011 (catch_load_command_1, catch_unload_command_1): Constify.
3012 (catch_load_or_unload): Constify.
3013 * guile/scm-param.c (pascm_set_func): Constify.
3014 (add_setshow_generic): Constify.
3015 * python/py-param.c (get_set_value): Constify.
3016 * top.h (set_verbose): Constify.
3017 * tui/tui-win.c (tui_set_var_cmd): Constify.
3018 * mi/mi-main.c (set_mi_async_command): Constify.
3019 * cli/cli-logging.c (set_logging_overwrite)
3020 (set_logging_redirect): Constify.
3021 * value.c (set_max_value_size): Constify.
3022 * valprint.c (set_input_radix, set_output_radix): Constify.
3023 * utils.c (set_width_command, set_height_command): Constify.
3024 * typeprint.c (set_print_type_methods, set_print_type_typedefs): Constify.
3025 * tracepoint.c (set_disconnected_tracing)
3026 (set_circular_trace_buffer, set_trace_buffer_size)
3027 (set_trace_user, set_trace_notes, set_trace_stop_notes): Constify.
3028 * top.c (set_history_size_command, set_verbose, set_editing)
3029 (set_gdb_datadir, set_history_filename): Constify.
3030 * target.c (set_targetdebug, maint_set_target_async_command)
3031 (maint_set_target_non_stop_command, set_target_permissions)
3032 (set_write_memory_permission): Constify.
3033 (open_target): Constify.
3034 * target-descriptions.c (set_tdesc_filename_cmd): Constify.
3035 * target-dcache.c (set_stack_cache, set_code_cache): Constify.
3036 * symtab.c (set_symbol_cache_size_handler): Constify.
3037 * symfile.c (set_ext_lang_command): Constify.
3038 * symfile-debug.c (set_debug_symfile): Constify.
3039 * source.c (set_directories_command): Constify.
3040 * solib.c (reload_shared_libraries, gdb_sysroot_changed): Constify.
3041 * serial.c (set_parity): Constify.
3042 * rs6000-tdep.c (powerpc_set_soft_float, powerpc_set_vector_abi): Constify.
3043 * remote.c (set_remote_exec_file, set_remotebreak)
3044 (set_remote_protocol_Z_packet_cmd, set_range_stepping): Constify.
3045 * record.c (set_record_insn_history_size)
3046 (set_record_call_history_size): Constify.
3047 * record-full.c (set_record_full_insn_max_num): Constify.
3048 * proc-api.c (set_procfs_trace_cmd, set_procfs_file_cmd): Constify.
3049 * osabi.c (set_osabi): Constify.
3050 * mips-tdep.c (set_mips64_transfers_32bit_regs)
3051 (reinit_frame_cache_sfunc, mips_abi_update): Constify.
3052 * maint.c (maintenance_set_profile_cmd): Constify.
3053 * linux-thread-db.c (set_libthread_db_search_path): Constify.
3054 * language.c (set_language_command, set_range_command)
3055 (set_case_command): Constify.
3056 * infrun.c (set_non_stop, set_observer_mode)
3057 (set_stop_on_solib_events, set_schedlock_func)
3058 (set_exec_direction_func): Constify.
3059 * infcmd.c (set_inferior_tty_command): Constify.
3060 * disasm.c (set_disassembler_options_sfunc): Constify.
3061 * demangle.c (set_demangling_command): Constify.
3062 * dcache.c (set_dcache_size, set_dcache_line_size): Constify.
3063 * cris-tdep.c (set_cris_version, set_cris_mode)
3064 (set_cris_dwarf2_cfi): Constify.
3065 * corefile.c (set_gnutarget_command): Constify.
3066 * charset.c (set_host_charset_sfunc, set_target_charset_sfunc)
3067 (set_target_wide_charset_sfunc): Constify.
3068 * breakpoint.c (update_dprintf_commands): Constify.
3069 * auto-load.c (set_auto_load_dir, set_auto_load_safe_path): Constify.
3070 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi)
3071 (set_disassembly_style_sfunc): Constify.
3072 * arch-utils.c (set_endian, set_architecture): Constify.
3073 * alpha-tdep.c (reinit_frame_cache_sfunc): Constify.
3074 * agent.c (set_can_use_agent): Constify.
3076 2017-11-07 Tom Tromey <tom@tromey.com>
3078 * go32-nat.c (go32_sysinfo, go32_sldt, go32_sgdt, go32_sidt)
3079 (go32_pde, go32_pte, go32_pte_for_address): Constify.
3080 * gnu-nat.c (_parse_bool_arg, show_thread_default_pause_cmd)
3081 (set_thread_default_pause_cmd, set_thread_default_run_cmd)
3082 (show_thread_default_run_cmd, set_thread_default_detach_sc_cmd)
3083 (parse_int_arg, show_thread_default_detach_sc_cmd)
3084 (set_signals_cmd, show_signals_cmd, set_sig_thread_cmd)
3085 (show_sig_thread_cmd, set_stopped_cmd, show_stopped_cmd)
3086 (set_exceptions_cmd, show_exceptions_cmd, set_task_pause_cmd)
3087 (show_task_pause_cmd, set_task_detach_sc_cmd)
3088 (show_task_detach_sc_cmd, set_task_exc_port_cmd)
3089 (set_noninvasive_cmd, set_thread_pause_cmd)
3090 (show_thread_pause_cmd, set_thread_run_cmd, show_thread_run_cmd)
3091 (set_thread_detach_sc_cmd, show_thread_detach_sc_cmd)
3092 (set_thread_exc_port_cmd, thread_takeover_sc_cmd): Constify.
3093 * windows-nat.c (display_selectors): Constify.
3094 * cli/cli-decode.h (struct cmd_list_element) <function>: Remove
3096 * cli/cli-decode.c (set_cmd_cfunc): Remove non-const overload.
3097 (cmd_cfunc_eq): Likewise.
3098 (struct cmd_list_element): Likewise.
3100 (cli_user_command_p): Update.
3101 * command.h (add_cmd): Remove non-const overload.
3102 (cmd_cfunc_ftype): Remove typedef.
3103 (cmd_cfunc_eq): Remove non-const overload.
3104 * value.c (show_values): Constify.
3105 * thread.c (thread_apply_all_command): Constify.
3106 * symfile.c (load_command): Constify.
3107 * source.c (directory_command): Constify.
3108 * maint.c (maintenance_internal_error)
3109 (maintenance_demangler_warning, maintenance_space_display)
3110 (maintenance_print_architecture, maintenance_translate_address)
3111 (maintenance_info_selftests, maintenance_internal_warning):
3113 * breakpoint.c (disable_trace_command, enable_trace_command):
3115 * auto-load.c (info_auto_load_local_gdbinit, add_auto_load_dir):
3117 (add_auto_load_safe_path): Constify.
3118 * guile/scm-auto-load.c (info_auto_load_guile_scripts): Constify.
3119 * top.h (show_commands): Constify.
3120 * linux-thread-db.c (info_auto_load_libthread_db): Constify.
3121 * sparc64-tdep.c (adi_examine_command): Constify.
3122 (adi_assign_command): Constify.
3124 2017-11-07 Tom Tromey <tom@tromey.com>
3126 * frame.h (info_locals_command, info_args_command): Constify.
3127 * auto-load.h (auto_load_info_scripts): Constify.
3128 * inferior.h (registers_info): Constify.
3129 * copying.c: Rebuild.
3130 * copying.awk: Constify generated commands.
3131 * auto-load.c (auto_load_info_scripts)
3132 (info_auto_load_gdb_scripts): Constify.
3133 * cli/cli-decode.c (struct cmd_list_element): Take a
3134 cmd_const_cfunc_ftype.
3135 * command.h (add_info): Take a cmd_const_cfunc_ftype.
3136 * tui/tui-win.c (tui_all_windows_info): Constify.
3137 * python/py-auto-load.c (info_auto_load_python_scripts):
3139 * cli/cli-cmds.c (show_command): Remove non-const overload.
3140 * tracepoint.c (info_tvariables_command, info_scope_command):
3142 (info_static_tracepoint_markers_command): Constify.
3143 * thread.c (info_threads_command): Constify.
3144 (print_thread_info_1): Constify.
3145 * target.c (info_target_command): Constify.
3146 * symtab.c (info_sources_command, info_functions_command)
3147 (info_types_command): Constify.
3148 (info_variables_command): Remove non-const overload.
3149 * symfile.c (info_ext_lang_command): Constify.
3150 * stack.c (info_frame_command, info_locals_command)
3151 (info_args_command): Constify.
3152 (backtrace_command): Remove non-const overload.
3153 * source.c (info_source_command, info_line_command): Constify.
3154 * solib.c (info_sharedlibrary_command): Constify.
3155 * skip.c (info_skip_command): Constify.
3156 * ser-go32.c (info_serial_command): Constify.
3157 * reverse.c (info_bookmarks_command): Constify.
3158 * printcmd.c (info_symbol_command, info_address_command)
3159 (info_display_command): Constify.
3160 * osdata.c (info_osdata_command): Constify.
3161 * objc-lang.c (info_selectors_command, info_classes_command):
3163 * nto-procfs.c (procfs_pidlist, procfs_meminfo): Constify.
3164 * memattr.c (info_mem_command): Constify.
3165 * macrocmd.c (info_macro_command, info_macros_command): Constify.
3166 * linux-fork.c (info_checkpoints_command): Constify.
3167 * infrun.c (info_signals_command): Constify.
3168 * inflow.c (info_terminal_command): Constify.
3169 * inferior.c (info_inferiors_command): Constify.
3170 (print_inferior): Constify.
3171 * infcmd.c (info_program_command, info_all_registers_command)
3172 (info_registers_command, info_vector_command)
3173 (info_float_command): Constify.
3174 (registers_info): Constify.
3175 * gnu-nat.c (info_send_rights_cmd, info_recv_rights_cmd)
3176 (info_port_sets_cmd, info_dead_names_cmd, info_port_rights_cmd):
3178 * f-valprint.c (info_common_command): Constify.
3179 * dcache.c (info_dcache_command): Constify.
3180 (dcache_info_1): Constify.
3181 * darwin-nat-info.c (info_mach_tasks_command)
3182 (info_mach_task_command, info_mach_ports_command)
3183 (info_mach_port_command, info_mach_threads_command)
3184 (info_mach_thread_command, info_mach_regions_command)
3185 (info_mach_regions_recurse_command, info_mach_region_command)
3186 (info_mach_exceptions_command): Constify.
3187 (get_task_from_args): Constify.
3188 * cp-support.c (info_vtbl_command): Constify.
3189 * breakpoint.c (info_watchpoints_command)
3190 (info_tracepoints_command): Constify.
3191 (info_breakpoints_command): Remove non-const overload.
3192 * avr-tdep.c (avr_io_reg_read_command): Constify.
3193 * auxv.c (info_auxv_command): Constify.
3194 * ada-tasks.c (info_tasks_command): Constify.
3195 (info_task): Constify.
3196 * ada-lang.c (info_exceptions_command): Constify.
3198 2017-11-07 Tom Tromey <tom@tromey.com>
3200 * solib.h (no_shared_libraries): Constify.
3201 * frame.h (return_command): Constify.
3202 * cli/cli-cmds.h (quit_command): Constify.
3203 * top.h (quit_command, execute_command): Constify.
3204 * target.h (flash_erase_command): Constify.
3205 * inferior.h (set_inferior_args, attach_command): Constify.
3206 * tracepoint.h (start_tracing, stop_tracing): Constify.
3207 * breakpoint.h (break_command, tbreak_command)
3208 (hbreak_command_wrapper, thbreak_command_wrapper)
3209 (rbreak_command_wrapper, watch_command_wrapper)
3210 (awatch_command_wrapper, rwatch_command_wrapper)
3211 (get_tracepoint_by_number): Constify.
3212 * symtab.c (info_variables_command, rbreak_command)
3213 (symtab_symbol_info): Constify.
3214 (info_variables_command): Add non-const overload.
3215 * top.c (dont_repeat_command): Constify.
3216 * breakpoint.c (ignore_command, commands_command)
3217 (condition_command, tbreak_command, hbreak_command)
3218 (thbreak_command, clear_command, break_command)
3219 (info_breakpoints_command, watch_command, rwatch_command)
3220 (awatch_command, trace_command, ftrace_command, strace_command)
3221 (trace_pass_command, break_range_command, dprintf_command)
3222 (agent_printf_command, get_tracepoint_by_number)
3223 (watch_maybe_just_location, trace_pass_command): Constify.
3224 (info_breakpoints_command): Add non-const overload.
3225 * tracefile.c (tsave_command): Constify.
3226 * infcmd.c (attach_command, disconnect_command, signal_command)
3227 (queue_signal_command, stepi_command, nexti_command)
3228 (finish_command, next_command, step_command, until_command)
3229 (advance_command, jump_command, continue_command, run_command)
3230 (start_command, starti_command, interrupt_command)
3231 (run_command_1, set_inferior_args, step_1): Constify.
3232 * inferior.c (add_inferior_command, remove_inferior_command)
3233 (clone_inferior_command): Constify.
3234 * linux-fork.c (checkpoint_command, restart_command): Constify.
3235 * windows-nat.c (signal_event_command): Constify.
3236 * guile/guile.c (guile_repl_command, guile_command): Constify.
3237 * printcmd.c (x_command, display_command, printf_command)
3238 (output_command, set_command, call_command, print_command)
3239 (eval_command): Constify.
3240 (non_const_set_command): Remove.
3241 (_initialize_printcmd): Update.
3242 * source.c (forward_search_command, reverse_search_command):
3244 * jit.c (jit_reader_load_command, jit_reader_unload_command):
3246 * infrun.c (handle_command): Constify.
3247 * memattr.c (mem_command): Constify.
3248 * stack.c (return_command, up_command, up_silently_command)
3249 (down_command, down_silently_command, frame_command)
3250 (backtrace_command, func_command, backtrace_command_1): Constify.
3251 (backtrace_command): Add non-const overload.
3252 * remote-sim.c (simulator_command): Constify.
3253 * exec.c (set_section_command): Constify.
3254 * tracepoint.c (tdump_command, trace_variable_command)
3255 (tstatus_command, tstop_command, tstart_command)
3256 (end_actions_pseudocommand, while_stepping_pseudocommand)
3257 (collect_pseudocommand, teval_pseudocommand, actions_command)
3258 (start_tracing, stop_tracing): Constify.
3259 * value.c (init_if_undefined_command): Constify.
3260 * tui/tui-stack.c (tui_update_command): Constify.
3261 * tui/tui-win.c (tui_refresh_all_command)
3262 (tui_set_tab_width_command, tui_set_win_height_command)
3263 (tui_set_focus_command, tui_scroll_forward_command)
3264 (tui_scroll_backward_command, tui_scroll_left_command)
3265 (tui_scroll_right_command, parse_scrolling_args, tui_set_focus)
3266 (tui_set_win_height): Constify.
3267 * tui/tui-layout.c (tui_layout_command): Constify.
3268 * procfs.c (proc_trace_syscalls, proc_trace_sysentry_cmd)
3269 (proc_trace_sysexit_cmd, proc_untrace_sysentry_cmd)
3270 (proc_untrace_sysexit_cmd): Constify.
3271 * remote.c (threadlist_test_cmd, threadinfo_test_cmd)
3272 (threadset_test_cmd, threadlist_update_test_cmd)
3273 (threadalive_test): Constify.
3274 * objc-lang.c (print_object_command): Constify.
3275 * command.h (add_com): Constify.
3276 * cli/cli-dump.c (restore_command): Constify.
3277 * cli/cli-cmds.c (pwd_command, echo_command, quit_command)
3278 (help_command, complete_command, shell_command, edit_command)
3279 (list_command, disassemble_command, make_command)
3280 (apropos_command, alias_command): Constify.
3281 * cli/cli-script.c (document_command, define_command)
3282 (while_command, if_command, validate_comname): Constify.
3283 * cli/cli-decode.c (struct cmd_list_element): Change type of
3285 * target.c (do_monitor_command, flash_erase_command): Constify.
3286 * regcache.c (reg_flush_command): Constify.
3287 * reverse.c (reverse_step, reverse_next, reverse_stepi)
3288 (reverse_nexti, reverse_continue, reverse_finish)
3289 (save_bookmark_command, goto_bookmark_command)
3290 (exec_reverse_once): Constify.
3291 * python/python.c (python_interactive_command, python_command):
3293 * typeprint.c (ptype_command, whatis_command, whatis_exp):
3295 * solib.c (sharedlibrary_command, no_shared_libraries): Constify.
3296 * gcore.c (gcore_command): Constify.
3298 2017-11-07 Tom Tromey <tom@tromey.com>
3300 * printcmd.c (x_command): Call set_repeat_arguments.
3301 * cli/cli-cmds.c (list_command): Call set_repeat_arguments.
3302 * top.c (repeat_arguments): New global.
3303 (set_repeat_arguments): New function.
3304 (execute_command): Handle repeat_arguments.
3305 (show_commands): Calls set_repeat_arguments.
3306 * command.h (set_repeat_arguments): Declare.
3308 2017-11-07 Tom Tromey <tom@tromey.com>
3310 * stack.c (backtrace_command): Use std::string.
3311 (backtrace_command_1): Make "count_exp" const.
3313 2017-11-07 Tom Tromey <tom@tromey.com>
3315 * source.c (directory_switch, mod_path, add_path): Constify.
3316 * defs.h (add_path, mod_path, directory_switch): Constify.
3317 * mi/mi-cmd-env.c (env_mod_path): Constify.
3319 2017-11-07 Tom Tromey <tom@tromey.com>
3321 * infcmd.c (strip_bg_char): Return gdb::unique_xmalloc_ptr.
3322 (run_command_1, continue_command, step_1, jump_command)
3323 (signal_command, until_command, advance_command, finish_command)
3324 (attach_command): Update.
3326 2017-11-07 Tom Tromey <tom@tromey.com>
3328 * command.h (set_cmd_cfunc): Don't declare.
3329 * cli/cli-decode.c (set_cmd_cfunc): Now static.
3331 2017-11-07 Tom Tromey <tom@tromey.com>
3333 * stack.c (select_frame_command): Constify.
3334 * cli/cli-decode.c (add_com_suppress_notification): Constify.
3335 * command.h (add_com_suppress_notification): Constify.
3337 2017-11-07 Tom Tromey <tom@tromey.com>
3339 * breakpoint.c (stop_command): Constify.
3340 * cli/cli-decode.c (struct cmd_list_element): Constify.
3341 * command.h (add_abbrev_prefix_cmd): Constify.
3343 2017-11-07 Pedro Alves <palves@redhat.com>
3345 * breakpoint.c (extract_bp_kind): New enum.
3346 (extract_bp_num, extract_bp_or_bp_range): New functions, partially
3347 factored out from ...
3348 (extract_bp_number_and_location): ... here.
3349 * cli/cli-utils.c (get_number_trailer): Handle '-$variable'.
3351 2017-11-07 Pedro Alves <palves@redhat.com>
3353 * breakpoint.c (extract_bp_number_and_location): Change return
3354 type to void. Throw error instead of warning.
3355 (enable_disable_command): Adjust.
3357 2017-11-07 Xavier Roirand <roirand@adacore.com>
3358 Pedro Alves <palves@redhat.com>
3360 * breakpoint.c (map_breakpoint_number_range): New, factored out
3362 (map_breakpoint_numbers): ... here.
3363 (find_location_by_number): Change parameters from string to
3364 breakpoint number and location.
3365 (extract_bp_number_and_location): New function.
3366 (enable_disable_bp_num_loc)
3367 (enable_disable_breakpoint_location_range)
3368 (enable_disable_command): New functions, factored out ...
3369 (enable_command, disable_command): ... these functions, and
3370 adjusted to support ranges.
3371 * NEWS: Document enable/disable breakpoint location range feature.
3373 2017-11-06 Luis Machado <luis.machado@linaro.org>
3375 * MAINTAINERS (Write After Approval): Update my e-mail address.
3377 2017-11-06 Pedro Alves <palves@redhat.com>
3379 * gnu-nat.c (gnu_terminal_init): Delete.
3380 (gnu_target): Don't install gnu_terminal_init.
3381 * inflow.c (child_terminal_init_with_pgrp): Delete, merged with ...
3382 (child_terminal_init): ... this function.
3384 2017-11-06 Pedro Alves <palves@redhat.com>
3386 * common/common.m4 (GDB_AC_COMMON): No longer check termio.h nor
3388 * config.in, configure: Regenerate.
3390 2017-11-06 Pedro Alves <palves@redhat.com>
3392 * event-top.c: Check SIGTSTP instead of STOP_SIGNAL thoughout.
3393 (async_init_signals): Adjust.
3394 (handle_stop_sig): Rename to ...
3395 (handle_sigtstp): ... this.
3396 (async_stop_sig): Rename to ...
3397 (async_sigtstp_handler): ... this, and delete STOP_SIGNAL !=
3399 * event-top.h: Move signal.h include to the top. Check SIGTSTP
3400 instead of STOP_SIGNAL thoughout.
3401 (handle_stop_sig): Rename to ...
3402 (handle_sigtstp): ... this.
3403 * top.c (command_line_input): Replace STOP_SIGNAL -> SIGTSTP.
3405 2017-11-06 Pedro Alves <palves@redhat.com>
3407 * inflow.c (child_terminal_inferior, child_terminal_ours_1): No
3408 longer set flags twice in row.
3410 2017-11-06 Pedro Alves <palves@redhat.com>
3412 * Makefile.in (SER_HARDWIRE): Update comment.
3413 (HFILES_NO_SRCDIR): Remove gdb_termios.h.
3414 * common/gdb_termios.h: Delete file.
3415 * common/job-control.c: Include termios.h and unistd.h instead of
3417 (gdb_setpgid): Remove HAVE_TERMIOS || TIOCGPGRP preprocessor
3419 (have_job_control): Check HAVE_TERMIOS_H instead of HAVE_TERMIOS.
3421 * configure.ac: No longer check for termio.h and sgtty.h.
3422 * configure: Regenerate.
3423 * inflow.c: Include termios.h instead of gdb_termios.h. Replace
3424 PROCESS_GROUP_TYPE checks with HAVE_TERMIOS_H checks throughout.
3425 Replace PROCESS_GROUP_TYPE references with pid_t references
3427 (gdb_getpgrp): Delete.
3428 (set_initial_gdb_ttystate): Use tcgetpgrp instead of gdb_getpgrp.
3429 (child_terminal_inferior): Remove comment. Remove sgtty code.
3430 (child_terminal_ours_1): Use tcgetpgrp directly instead of
3431 gdb_getpgrp. Use serial_set_tty_state instead aof
3432 serial_noflush_set_tty_state. Remove sgtty code.
3433 * inflow.h: Include unistd.h instead of gdb_termios.h. Replace
3434 PROCESS_GROUP_TYPE check with HAVE_TERMIOS_H check.
3435 (inferior_process_group): Now returns pid_t.
3436 * ser-base.c (ser_base_noflush_set_tty_state): Delete.
3437 * ser-base.h (ser_base_noflush_set_tty_state): Delete.
3438 * ser-event.c (serial_event_ops): Update.
3439 * ser-go32.c (dos_noflush_set_tty_state): Delete.
3441 * ser-mingw.c (hardwire_ops, tty_ops, pipe_ops, tcp_ops): Update.
3442 * ser-pipe.c (pipe_ops): Update.
3443 * ser-tcp.c (tcp_ops): Update.
3444 * ser-unix.c: Include termios.h instead of gdb_termios.h. Remove
3445 HAVE_TERMIOS checks.
3446 [HAVE_TERMIO] (struct hardwire_ttystate): Delete.
3447 [HAVE_SGTTY] (struct hardwire_ttystate): Delete.
3448 (get_tty_state, set_tty_state): Drop termio and sgtty code, and
3450 (hardwire_noflush_set_tty_state): Delete.
3451 (hardwire_print_tty_state, hardwire_drain_output)
3452 (hardwire_flush_output, hardwire_flush_input)
3453 (hardwire_send_break, hardwire_raw, hardwire_setbaudrate)
3454 (hardwire_setstopbits, hardwire_setparity): Drop termio and sgtty
3455 code, and assume termios.
3456 (hardwire_ops): Update.
3457 (_initialize_ser_hardwire): Remove HAVE_TERMIOS check.
3458 * serial.c (serial_noflush_set_tty_state): Delete.
3459 * serial.h (serial_noflush_set_tty_state): Delete.
3460 (serial_ops::noflush_set_tty_state): Delete.
3462 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3464 * Makefile.in (SFILES): Remove doublest.c and dfp.c.
3465 (HFILES_NO_SRCDIR): Remove doublest.h and dfp.h.
3466 (COMMON_OBS): Remove doublest.o and dfp.o.
3467 Do not build target-float.c (instead of doublest.c)
3468 with -Wformat-nonliteral.
3470 * doublest.c: Remove file.
3471 * doublest.h: Remove file.
3472 * dfp.c: Remove file.
3473 * dfp.h: Remove file.
3475 * target-float.c: Do not include "doublest.h" and "dfp.h".
3476 (DOUBLEST): Move here from doublest.h.
3477 (enum float_kind): Likewise.
3478 (FLOATFORMAT_CHAR_BIT): Likewise.
3479 (FLOATFORMAT_LARGEST_BYTES): Likewise.
3480 (floatformat_totalsize_bytes): Move here from doublest.c. Make static.
3481 (floatformat_precision): Likewise.
3482 (floatformat_normalize_byteorder, get_field, put_field): Likewise.
3483 (floatformat_is_negative, floatformat_classify, floatformat_mantissa):
3485 (host_float_format, host_double_format, host_long_double_format):
3487 (floatformat_to_string, floatformat_from_string): Likewise.
3488 (floatformat_to_doublest): Likewise. Also, inline the original
3489 convert_floatformat_to_doublest.
3490 (floatformat_from_doublest): Likewise. Also, inline the original
3491 convert_floatformat_from_doublest.
3493 Include "dpd/decimal128.h", "dpd/decimal64.h", and "dpd/decimal32.h".
3494 (MAX_DECIMAL_STRING): Move here from dfp.c.
3495 (match_endianness): Likewise.
3496 (set_decnumber_context, decimal_check_errors): Likewise.
3497 (decimal_from_number, decimal_to_number): Likewise.
3498 (decimal_to_string, decimal_from_string): Likewise. Make static.
3499 (decimal_from_longest, decimal_from_ulongest): Likewise.
3500 (decimal_to_longest): Likewise.
3501 (decimal_binop, decimal_is_zero, decimal_compare): Likewise.
3502 (decimal_convert): Likewise.
3504 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3506 * doublest.c: Do not include "gdbtypes.h".
3507 (extract_typed_floating): Remove.
3508 (store_typed_floating): Remove.
3509 (convert_typed_floating): Remove.
3510 * doublest.h (struct type): Remove.
3511 (DOUBLEST_PRINT_FORMAT): Remove.
3512 (DOUBLEST_SCAN_FORMAT): Remove.
3513 (extract_typed_floating): Remove.
3514 (store_typed_floating): Remove.
3515 (convert_typed_floating): Remove.
3517 * dfp.c (decimal_from_doublest): Remove.
3518 (decimal_to_doublest): Remove.
3519 * dfp.h: Do not include "doublest.h".
3520 (decimal_from_doublest): Remove.
3521 (decimal_to_doublest): Remove.
3523 * value.c: Do not include "doublest.h" and "dfp.h".
3524 (value_as_double): Remove.
3525 (unpack_double): Remove.
3526 (value_from_double): Remove.
3527 (value_from_decfloat): Remove.
3528 * value.h: Do not include "doublest.h".
3529 (value_as_double): Remove.
3530 (unpack_double): Remove.
3531 (value_from_double): Remove.
3532 (value_from_decfloat): Remove.
3534 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3536 * i386-tdep.c: Include "target-float.h". Do not include "doublest.h".
3537 (i386_extract_return_value): Use target_float_convert.
3538 (i386_store_return_value): Likewise.
3539 * i387-tdep.c (i387_register_to_value): Use target_float_convert.
3540 (i387_value_to_register): Likewise.
3541 * ia64-tdep.c: Include "target-float.h". Do not include "doublest.h".
3542 (ia64_register_to_value): Use target_float_convert.
3543 (ia64_value_to_register): Likewise.
3544 (ia64_extract_return_value): Likewise.
3545 (ia64_store_return_value): Likewise.
3546 (ia64_push_dummy_call): Likewise.
3547 * m68k-tdep.c: Include "target-float.h".
3548 (m68k_register_to_value): Use target_float_convert.
3549 (m68k_value_to_register): Likewise.
3550 (m68k_svr4_extract_return_value): Likewise.
3551 (m68k_svr4_store_return_value): Likewise.
3552 * ppc-sysv-tdep.c: Include "target-float.h".
3553 (ppc_sysv_abi_push_dummy_call): Use target_float_convert.
3554 (do_ppc_sysv_return_value): Likewise.
3555 (ppc64_sysv_abi_push_freg): Likewise.
3556 (ppc64_sysv_abi_return_value_base): Likewise.
3557 * rs6000-aix-tdep.c: Include "target-float.h".
3558 (rs6000_push_dummy_call): Use target_float_convert.
3559 (rs6000_return_value): Likewise.
3560 * rs6000-lynx178-tdep.c: Include "target-float.h".
3561 (rs6000_lynx178_push_dummy_call): Use target_float_convert.
3562 (rs6000_lynx178_return_value): Likewise.
3563 * rs6000-tdep.c: Include "target-float.h". Do not include "doublest.h".
3564 (rs6000_register_to_value): Use target_float_convert.
3565 (rs6000_value_to_register): Likewise.
3566 * arm-tdep.c: Include "target-float.h". Do not include "doublest.h".
3567 (arm_extract_return_value): Use target_float_convert.
3568 (arm_store_return_value): Likewise.
3569 * sh-tdep.c: Include "target-float.h". Do not include "doublest.h".
3570 (sh_register_convert_to_virtual): Use target_float_convert.
3571 (sh_register_convert_to_raw): Likewise.
3572 * sh64-tdep.c: Include "target-float.h".
3573 (sh64_extract_return_value): Use target_float_convert.
3574 (sh64_register_convert_to_virtual): Likewise.
3575 (sh64_register_convert_to_raw): Likewise. Fix argument types.
3577 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3579 * target-float.c (floatformat_to_host_double): New function.
3580 (floatformat_from_host_double): Likewise.
3581 (target_float_to_host_double): Likewise.
3582 (target_float_from_host_double): Likewise.
3583 * target-float.h (target_float_to_host_double): Add prototype.
3584 (target_float_from_host_double): Likewise.
3586 * guile/scm-value.c: Include "target-float.h".
3587 (gdbscm_value_to_real): Use target_float_to_host_double.
3588 Handle integer source values via value_as_long.
3589 * guile/scm-math.c: Include "target-float.h". Do not include
3590 "doublest.h", "dfp.h", and "expression.h".
3591 (vlscm_convert_typed_number): Use target_float_from_host_double.
3592 (vlscm_convert_number): Likewise.
3594 * python/py-value.c (valpy_float): Use target_float_to_host_double.
3595 (convert_value_from_python): Use target_float_from_host_double.
3597 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3599 * ada-lang.c (cast_to_fixed): Reimplement in target arithmetic.
3600 (cast_from_fixed): Likewise.
3601 (ada_scaling_type): New function.
3602 (ada_delta): Return value instead of DOUBLEST. Perform target
3603 arithmetic instead of host arithmetic.
3604 (scaling_factor): Rename to ...
3605 (ada_scaling_factor) ... this. Make non-static. Return value instead
3606 of DOUBLEST. Perform target arithmetic instead of host arithmetic.
3607 (ada_fixed_to_float): Remove.
3608 (ada_float_to_fixed): Remove.
3609 * ada-lang.h (ada_fixed_to_float): Remove.
3610 (ada_float_to_fixed): Remove.
3611 (ada_delta): Return value instead of DOUBLEST.
3612 (ada_scaling_factor): Add prototype.
3614 * ada-typeprint.c: Include "target-float.h".
3615 (print_fixed_point_type): Perform target arithmetic instead of
3617 * ada-valprint.c: Include "target-float.h".
3618 (ada_val_print_num): Perform target arithmetic instead of
3619 host arithmetic for fixed-point types.
3621 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3623 * target-float.c: Include <math.h>.
3624 (floatformat_binop): New function.
3625 (floatformat_compare): Likewise.
3626 (target_float_binop): Likewise.
3627 (target_float_compare): Likewise.
3628 * target-float.h: Include "expression.h".
3629 (target_float_binop): Add prototype.
3630 (target_float_compare): Likewise.
3632 * valarith.c: Do not include "doublest.h" and "dfp.h".
3633 Include "common/byte-vector.h".
3634 (value_args_as_decimal): Remove, replace by ...
3635 (value_args_as_target_float): ... this function. Handle both
3636 binary and decimal target floating-point formats.
3637 (scalar_binop): Handle both binary and decimal FP using
3638 value_args_as_target_float and target_float_binop.
3639 (value_equal): Handle both binary and decimal FP using
3640 value_args_as_target_float and target_float_compare.
3641 (value_less): Likewise.
3642 (value_pos): Handle all scalar types as simple copy.
3643 (value_neg): Handle all scalar types via BINOP_SUB from 0.
3644 * dfp.c (decimal_binop): Throw error instead of internal_error
3645 when called with an unsupported operation code.
3647 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3649 * target-float.c (target_float_to_string): New function.
3650 (target_float_from_string): New function.
3651 * target-float.h (target_float_to_string): Add prototype.
3652 (target_float_from_string): Add prototype.
3654 * valprint.c: Include "target-float.h". Do not include
3655 "doublest.h" and "dfp.h".
3656 (print_floating): Use target_float_to_string.
3657 * printcmd.c: Include "target-float.h". Do not include "dfp.h".
3658 (printf_floating): Use target_float_to_string.
3659 * i387-tdep.c: Include "target-float.h". Do not include "doublest.h".
3660 (print_i387_value): Use target_float_to_string.
3661 * mips-tdep.c: Include "target-float.h".
3662 (mips_print_fp_register): Use target_float_to_string.
3663 * sh64-tdep.c: Include "target-float.h".
3664 (sh64_do_fp_register): Use target_float_to_string.
3666 * parse.c: Include "target-float.h". Do not include
3667 "doublest.h" and "dfp.h".
3668 (parse_float): Use target_float_from_string.
3669 * stabsread.c: Include "target-float.h". Do not include "doublest.h".
3670 (define_symbol): Use target_float_from_string.
3671 * gdbarch-selftests.c: Include "target-float.h".
3672 (register_to_value_test): Use target_float_from_string.
3674 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3676 * Makefile.c (SFILES): Add target-float.c.
3677 (HFILES_NO_SRCDIR): Add target-float.h.
3678 (COMMON_OBS): Add target-float.o.
3679 * target-float.h: New file.
3680 * target-float.c: New file.
3682 * doublest.c (floatformat_classify): Fix detection of float_zero.
3684 * gdbtypes.c (is_floating_type): New function.
3685 * gdbtypes.h (is_floating_type): Add prototype.
3687 * value.c: Do not include "floatformat.h".
3688 (unpack_double): Use target_float_is_valid.
3689 (is_floating_value): New function.
3690 * value.h (is_floating_value): Add prototype-
3692 * valarith.c: Include "target-float.h".
3693 (value_logical_not): Use target_float_is_zero.
3695 * python/py-value.c: Include "target-float.h".
3696 (valpy_nonzero): Use target_float_is_zero.
3698 2017-11-04 Tom Tromey <tom@tromey.com>
3700 * h8300-tdep.c (h8300_push_dummy_call): Use std::vector.
3702 2017-11-04 Tom Tromey <tom@tromey.com>
3704 * breakpoint.c (set_momentary_breakpoint): Return
3706 (until_break_command): Update.
3707 (new_until_break_fsm): Change argument types to
3709 (set_momentary_breakpoint_at_pc): Return breakpoint_up.
3710 (do_delete_breakpoint_cleanup, make_cleanup_delete_breakpoint):
3712 * infcmd.c (finish_forward): Update.
3713 * breakpoint.h (set_momentary_breakpoint)
3714 (set_momentary_breakpoint_at_pc): Return breakpoint_up.
3715 (make_cleanup_delete_breakpoint): Remove.
3716 (struct breakpoint_deleter): New.
3717 (breakpoint_up): New typedef.
3718 * infrun.c (insert_step_resume_breakpoint_at_sal_1): Update.
3719 (insert_exception_resume_breakpoint): Update.
3720 (insert_exception_resume_from_probe): Update.
3721 (insert_longjmp_resume_breakpoint): Update.
3722 * arm-linux-tdep.c (arm_linux_copy_svc): Update.
3723 * elfread.c (elf_gnu_ifunc_resolver_stop): Update.
3724 * infcall.c (call_function_by_hand_dummy): Update
3726 2017-11-04 Tom Tromey <tom@tromey.com>
3728 * c-typeprint.c (c_type_print_base): Use gdb::unique_xmalloc_ptr.
3730 2017-11-04 Tom Tromey <tom@tromey.com>
3732 * linux-tdep.c (linux_core_info_proc_mappings): Use
3734 (linux_get_siginfo_data): Return gdb::byte_vector. Remove
3736 (linux_corefile_thread): Update.
3737 (linux_make_corefile_notes): Remove unused variable.
3739 2017-11-04 Tom Tromey <tom@tromey.com>
3741 * ppc-linux-tdep.c (ppc_linux_get_syscall_number): Use
3744 2017-11-04 Tom Tromey <tom@tromey.com>
3746 * objfiles.c (do_free_objfile_cleanup): Remove.
3747 * compile/compile-object-load.c (compile_object_load): Update.
3748 * objfiles.h (make_cleanup_free_objfile): Remove.
3750 2017-11-04 Tom Tromey <tom@tromey.com>
3752 * sparc64-tdep.c (do_examine): Use gdb::def_vector.
3753 (adi_read_versions): Change "tags" to "gdb_byte *".
3754 (adi_print_versions): Likewise.
3756 2017-11-04 Tom Tromey <tom@tromey.com>
3759 (scoped_rbreak_breakpoints::scoped_rbreak_breakpoints): Rename
3760 from start_rbreak_breakpoints.
3761 (scoped_rbreak_breakpoints): Rename from end_rbreak_breakpoints.
3762 * breakpoint.h (class scoped_rbreak_breakpoints): New.
3763 (start_rbreak_breakpoints, end_rbreak_breakpoints): Remove.
3764 * symtab.c (do_end_rbreak_breakpoints): Remove.
3765 (rbreak_command): Use scoped_rbreak_breakpoints, std::string.
3767 2017-11-04 Tom Tromey <tom@tromey.com>
3769 * cp-namespace.c (reset_directive_searched): Remove.
3770 (cp_lookup_symbol_via_imports): Use scoped_restore.
3771 * cp-support.c (reset_directive_searched): Remove.
3772 (make_symbol_overload_list_using): Use scoped_restore.
3773 * d-namespace.c (d_lookup_symbol_imports): Use scoped_restore.
3774 (reset_directive_searched): Remove.
3776 2017-11-04 Tom Tromey <tom@tromey.com>
3778 * symfile.c (find_separate_debug_file_by_debuglink): Use
3781 2017-11-04 Tom Tromey <tom@tromey.com>
3783 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
3785 (compute_stack_depth): Likewise.
3786 (do_compile_dwarf_expr_to_c): Use std::vector.
3788 2017-11-04 Tom Tromey <tom@tromey.com>
3790 * compile/compile-object-load.c (link_callbacks_einfo): Use
3793 2017-11-04 Tom Tromey <tom@tromey.com>
3795 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
3796 Use scoped_free_pendings.
3797 * dbxread.c (dbx_symfile_read, dbx_psymtab_to_symtab_1): Use
3798 scoped_free_pendings.
3799 * xcoffread.c (xcoff_psymtab_to_symtab_1): Use scoped_free_pendings.
3800 (xcoff_initial_scan): Likewise.
3801 * buildsym.c (reset_symtab_globals): Update comment.
3802 (scoped_free_pendings): Rename from really_free_pendings.
3803 (prepare_for_building): Update comment.
3804 (buildsym_init): Likewise.
3805 * buildsym.h (class scoped_free_pendings): New class.
3806 (really_free_pendings): Don't declare.
3808 2017-11-03 Ulrich Weigand <uweigand@de.ibm.com>
3810 * doublest.c (convert_doublest_to_floatformat): Fix uninitialized
3811 output when converting a zero value to a special byteorder format.
3813 2017-11-02 Yao Qi <yao.qi@linaro.org>
3815 * frame.c (do_frame_register_read): Remove aspace.
3816 * jit.c (jit_frame_sniffer): Likwise.
3817 * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
3818 * regcache.c (regcache::regcache): Pass nullptr.
3819 (regcache_print): Caller updated.
3820 * regcache.h (regcache::regcache): Remove one constructor
3823 2017-11-02 Yao Qi <yao.qi@linaro.org>
3825 * regcache.h (regcache) <m_readonly_p>: Change it to const bool.
3827 2017-11-02 Yao Qi <yao.qi@linaro.org>
3829 * breakpoint.c (insert_single_step_breakpoints): Update.
3830 * frame.c (struct frame_info) <aspace>: Add const.
3831 (frame_save_as_regcache): Add const.
3832 (get_frame_address_space): Return const address_space *.
3833 * frame.h (get_frame_address_space): Update declaration.
3834 * infrun.c (struct step_over_info) <aspace>: Add const.
3835 (set_step_over_info): Make aspace const.
3836 (displaced_step_prepare_throw): Change variable const.
3838 (proceed): Likewise.
3839 (adjust_pc_after_break): Likewise.
3840 (save_waitstatus): Likewise.
3841 (handle_signal_stop): Likewise.
3842 (keep_going_pass_signal): Likewise.
3843 * jit.c (jit_frame_sniffer): Add const.
3844 * mips-tdep.c (mips_single_step_through_delay): Likewise.
3845 * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
3846 * record-full.c (record_full_wait_1): Likewise.
3847 * regcache.c (regcache::regcache): Change parameter to const.
3848 * regcache.h (regcache::regcache): Likewise.
3849 (regcache::aspace): Return const address_space *.
3850 (regcache) <m_aspace>: Add const.
3852 2017-11-02 Yao Qi <yao.qi@linaro.org>
3854 * darwin-nat.c (cancel_breakpoint): Use regcache->aspace ().
3855 * frame.c (create_sentinel_frame): Likewise.
3856 * infrun.c (displaced_step_prepare_throw): Likewise.
3858 (thread_still_needs_step_over_bp): Likewise.
3859 (proceed): Likewise.
3860 (do_target_wait): Likewise.
3861 (adjust_pc_after_break): Likewise.
3862 (handle_syscall_event): Likewise.
3863 (save_waitstatus): Likewise.
3864 (handle_inferior_event_1): Likewise.
3865 (handle_signal_stop): Likewise.
3866 (keep_going_pass_signal): Likewise.
3867 * linux-nat.c (status_callback): Likewise.
3868 (save_stop_reason): Likewise.
3869 (resume_stopped_resumed_lwps): Likewise.
3870 * record-full.c (record_full_exec_insn): Likewise.
3871 (record_full_wait_1): Likewise.
3872 * regcache.c (get_regcache_aspace): Remove.
3873 * regcache.h (get_regcache_aspace): Remove.
3875 2017-11-02 Yao Qi <yao.qi@linaro.org>
3877 * regcache.c (struct regcache_descr) <nr_raw_registers>: Remove.
3878 (init_regcache_descr): Use gdbarch_num_regs.
3879 (regcache::regcache): Likewise.
3880 (regcache::get_register_status): Likewise.
3881 (regcache::assert_raw_regnum): Likewise.
3882 (regcache::cooked_read): Likewise.
3883 (regcache::cooked_read_value): Likewise.
3884 (regcache::cooked_write): Likewise.
3885 (regcache::dump): Likewise.
3886 (regcache::num_raw_registers): New method.
3887 * regcache.h (class regcache) <num_raw_registers>: New.
3889 2017-11-02 Yao Qi <yao.qi@linaro.org>
3891 * regcache.c (regcache::assert_regnum): New method.
3892 (regcache::invalidate): Call assert_regnum.
3893 (regcache::raw_update): Likewise.
3894 (regcache::raw_write): Likewise.
3895 (regcache::raw_read_part): Likewise.
3896 (regcache::raw_write_part): Likewise.
3897 (regcache::raw_supply): Likewise.
3898 (regcache::raw_supply_integer): Likewise.
3899 (regcache::raw_supply_zeroed): Likewise.
3900 (regcache::raw_collect): Likewise.
3901 (regcache::raw_collect_integer): Likewise.
3902 * regcache.h (regcache::assert_regnum): Declare.
3904 2017-11-02 Yao Qi <yao.qi@linaro.org>
3906 * regcache.c (regcache::dump): Remove code.
3908 2017-11-02 Yao Qi <yao.qi@linaro.org>
3910 * regcache.c (struct regcache_descr) <sizeof_raw_register_status>:
3912 <sizeof_cooked_register_status>: Remove.
3913 (init_regcache_descr): Update.
3914 (regcache::regcache): Use nr_cooked_registers and nr_raw_registers.
3915 (regcache::save): Likewise.
3916 (regcache::dump): Likewise.
3918 2017-11-01 James Bowman <james.bowman@ftdichip.com>
3920 * ft32-tdep.c (ft32_fetch_instruction): New function.
3921 (ft32_analyze_prologue): Use ft32_fetch_instruction().
3923 2017-10-31 Simon Marchi <simon.marchi@polymtl.ca>
3925 * cli/cli-script.c (execute_control_command): Rename to ...
3926 (execute_control_command_1): ... this.
3927 (execute_control_command): New function.
3929 2017-10-31 Simon Marchi <simon.marchi@ericsson.com>
3931 * tracepoint.c (tfind_command): Remove const_cast.
3933 2017-10-30 Mike Gulick <mgulick@mathworks.com>
3935 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to gdb.h.
3937 2017-10-30 Simon Marchi <simon.marchi@ericsson.com>
3939 * common/common-utils.h (in_inclusive_range): New function.
3940 * arm-tdep.c (arm_record_extension_space): Use
3942 (thumb_record_ld_st_reg_offset): Use in_inclusive_range.
3943 * cris-tdep.c (cris_spec_reg_applicable): Use
3946 2017-10-30 Pedro Alves <palves@redhat.com>
3947 Simon Marchi <simon.marchi@ericsson.com>
3949 * remote.c (remote_set_syscall_catchpoint): Build a std::string
3950 instead of a gdb::unique_xmalloc_ptr, using string_appendf.
3952 2017-10-30 Pedro Alves <palves@redhat.com>
3954 * common/common-utils.c (string_appendf, string_vappendf): New
3956 * common/common-utils.h (string_appendf, string_vappendf): New
3958 * unittests/common-utils-selftests.c (string_appendf_func)
3959 (test_appendf_func, string_vappendf_wrapper, string_appendf_tests)
3960 (string_vappendf_tests): New functions.
3961 (_initialize_common_utils_selftests): Register "string_appendf" and
3962 "string_vappendf tests".
3964 2017-10-30 Pedro Alves <palves@redhat.com>
3966 * unittests/common-utils-selftests.c (format_func): New typedef.
3967 (string_printf_tests, string_vprintf_tests): Tests factored out
3969 (test_format_func): ... this new function.
3970 (string_printf_tests, string_vprintf_tests): Reimplement on top of
3973 2017-10-29 Simon Marchi <simon.marchi@ericsson.com>
3975 * darwin-nat.c: Remove include of gdb.h.
3977 2017-10-29 Simon Marchi <simon.marchi@ericsson.com>
3979 * xtensa-xtregs.c: Fix formatting issues.
3981 2017-10-29 Simon Marchi <simon.marchi@ericsson.com>
3983 * xtensa-xtregs.c (xtensa_regtable_t) <name>: Constify.
3985 2017-10-28 Maksim Dzabraev <dzabraew@gmail.com>
3988 * python/py-infthread.c (thpy_get_inferior): Increment reference
3989 of inferior before returning it.
3991 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3993 * unittests/common-utils-selftests.c (format): Add
3996 2017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
3998 * xml-syscall.c (struct syscall_desc): Add constructor.
3999 <name>: Change type to std::string.
4000 (syscall_desc_up): New typedef.
4001 (syscall_desc_p): Remove typeder.
4002 (DEF_VEC_P(syscall_desc_p)): Remove.
4003 (struct syscall_group_desc): Add constructor.
4004 <name>: Change type to std::string.
4005 <syscalls>: Change type to std::vector.
4006 (syscall_group_desc_up): New typedef.
4007 (syscall_group_desc_p): Remove typedef.
4008 (DEF_VEC_P(syscall_group_desc_p)): Remove.
4009 (struct syscalls_info) <syscalls>: Change type to std::vector of
4012 <my_gdb_datadir>: Change type to std::string.
4013 (syscalls_info_up): New typedef.
4014 (allocate_syscalls_info): Remove.
4015 (syscalls_info_free_syscalls_desc): Remove.
4016 (syscalls_info_free_syscall_group_desc): Remove.
4017 (free_syscalls_info): Remove.
4018 (make_cleanup_free_syscalls_info): Remove.
4019 (syscall_group_create_syscall_group_desc): Adjust.
4020 (syscall_group_add_syscall): Adjust.
4021 (syscall_create_syscall_desc): Adjust.
4022 (syscall_parse_xml): Adjust, use unique_ptr instead of cleanup.
4023 (init_syscalls_info): Adjust.
4024 (syscall_group_get_group_by_name): Adjust.
4025 (xml_get_syscall_number): Adjust.
4026 (xml_get_syscall_name): Adjust.
4027 (xml_list_of_syscalls): Adjust.
4028 (xml_list_syscalls_by_group): Adjust.
4029 (xml_list_of_groups): Adjust.
4031 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
4033 * probe.h: Don't include gdb_vecs.h.
4034 (DEF_VEC_P (probe_p)): Remove.
4035 (find_probes_in_objfile): Return an std::vector.
4036 * probe.c (find_probes_in_objfile): Likewise.
4037 * breakpoint.c (breakpoint_objfile_data)
4038 <longjmp_probes>: Change type to std::vector.
4039 <exception_probes>: Likewise.
4040 (free_breakpoint_probes): Don't manually free vectors.
4041 (create_longjmp_master_breakpoint): Adjust.
4042 (create_exception_master_breakpoint): Adjust.
4043 * solib-svr4.c (svr4_create_probe_breakpoints): Change
4044 parameter type, adjust.
4045 (svr4_create_solib_event_breakpoints): Adjust.
4047 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
4049 * breakpoint.c (breakpoint_objfile_data): Initialize fields.
4050 (get_breakpoint_objfile_data): Allocate breakpoint_objfile_data
4052 (free_breakpoint_probes): Rename to ...
4053 (free_breakpoint_objfile_data): ... this, and call delete on
4056 2017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
4058 * auto-load.c: Don't include gdb_vecs.h, include algorithm.
4059 (loaded_script_ptr): Remove typedef.
4060 (DEF_VEC_P (loaded_script_ptr)): Remove.
4061 (struct collect_matching_scripts_data): Add constructor.
4062 <scripts_p>: Change type to (pointer to) std::vector.
4063 (collect_matching_scripts_data): Adjust.
4064 (sort_scripts_by_name): Make suitable for std::sort.
4065 (print_scripts): Don't sort vector, adjust to std::vector.
4066 (auto_load_info_scripts): Sort vectors, adjust to std::vector.
4068 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
4070 * symfile.c (filename_language): Make struct, not typedef. Add
4072 <ext>: Change type to std::string.
4073 (DEF_VEC_O (filename_language)): Remove.
4074 (filename_language_table): Change type to std::vector.
4075 (add_filename_language): Adjust.
4076 (set_ext_lang_command): Adjust.
4077 (info_ext_lang_command): Adjust.
4078 (deduce_language_from_filename): Adjust.
4079 (class scoped_restore_filename_language_table): Remove.
4080 (test_filename_language): Use scoped_restore.
4081 (test_set_ext_lang_command): Use scoped_restore, adjust to
4084 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
4086 * symfile.c: Include selftest.h.
4087 (class scoped_restore_filename_language_table): New.
4088 (test_filename_language): New test.
4089 (test_set_ext_lang_command): New test.
4090 (_initialize_symfile): Register tests.
4092 2017-10-27 Keith Seitz <keiths@redhat.com>
4094 * breakpoint.c (print_breakpoint_location): Use the symbol saved
4095 in the bp_location, falling back to find_pc_sect_function when
4097 (add_location_to_breakpoint): Save sal->symbol.
4098 * breakpoint.h (struct bp_location) <symbol>: New field.
4099 * symtab.c (find_function_start_sal): Save the symbol into the SaL.
4100 * symtab.h (struct symtab_and_line) <symbol>: New field.
4102 2017-10-26 Patrick Frants <osscontribute@gmail.com>
4105 * cp-valprint.c (cp_print_value_fields): Use obstack_blank_fast
4108 2017-10-26 Pedro Alves <palves@redhat.com>
4110 * remote.c (remote_async_terminal_ours_p): Delete.
4111 (remote_open_1, remote_terminal_inferior, remote_terminal_ours):
4112 Remove references to 'remote_async_terminal_ours_p'.
4114 2017-10-26 Yao Qi <yao.qi@linaro.org>
4116 * breakpoint.h (regular_breakpoint_inserted_here_p): Remove.
4118 2017-10-26 Yao Qi <yao.qi@linaro.org>
4120 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Make
4122 * break-catch-syscall.c (breakpoint_hit_catch_syscall):
4124 * breakpoint.c (bpstat_check_location): Remove cast.
4125 (breakpoint_hit_catch_fork): Make aspce const.
4126 (breakpoint_hit_catch_solib): Likewise.
4127 (breakpoint_hit_catch_exec): Likewise.
4128 (breakpoint_hit_ranged_breakpoint): Likewise.
4129 (breakpoint_hit_watchpoint): Likewise.
4130 (base_breakpoint_breakpoint_hit): Likewise.
4131 (bkpt_breakpoint_hit): Likewise.
4132 (dprintf_breakpoint_hit): Likewise.
4133 (tracepoint_breakpoint_hit): Likewise.
4134 * breakpoint.h (breakpoint_ops) <breakpoint_hit>: Likewise.
4136 2017-10-26 Yao Qi <yao.qi@linaro.org>
4138 * breakpoint.c (breakpoint_location_address_match): Change
4139 "struct address_space *" to "const address_space".
4140 (breakpoint_location_address_range_overlap): Likewise.
4141 (breakpoint_here_p): Likewise.
4142 (breakpoint_in_range_p): Likewise.
4143 (moribund_breakpoint_here_p): Likewise.
4144 (bp_location_inserted_here_p): Likewise.
4145 (software_breakpoint_inserted_here_p): Likewise.
4146 (hardware_breakpoint_inserted_here_p): Likewise.
4147 (hardware_watchpoint_inserted_in_range): Likewise.
4148 (bpstat_check_location): Likewise.
4149 (bpstat_stop_status): Likewise.
4150 (breakpoint_address_match): Likewise.
4151 (breakpoint_address_match_range): Likewise.
4152 (breakpoint_location_address_match): Likewise.
4153 (breakpoint_location_address_range_overlap): Likewise.
4154 (insert_single_step_breakpoint): Likewise.
4155 (breakpoint_has_location_inserted_here): Likewise.
4156 (single_step_breakpoint_inserted_here_p): Likewise.
4157 (pc_at_non_inline_function): Likewise.
4158 * breakpoint.h (bpstat_stop_status): Update declaration.
4159 (breakpoint_here_p): Likewise.
4160 (breakpoint_in_range_p): Likewise.
4161 (moribund_breakpoint_here_p): Likewise.
4162 (breakpoint_inserted_here_p): Likewise.
4163 (software_breakpoint_inserted_here_p): Likewise.
4164 (hardware_breakpoint_inserted_here_p): Likewise.
4165 (breakpoint_has_location_inserted_here): Likewise.
4166 (single_step_breakpoint_inserted_here_p): Likewise.
4167 (hardware_watchpoint_inserted_in_range): Likewise.
4168 (breakpoint_address_match): Likewise.
4169 (insert_single_step_breakpoint): Likewise.
4170 (pc_at_non_inline_function): Likewise.
4171 * gdbthread.h (thread_has_single_step_breakpoint_here): Likewise.
4172 * record.c (record_check_stopped_by_breakpoint): Likewise.
4173 * record.h (record_check_stopped_by_breakpoint): Likewise.
4174 * thread.c (thread_has_single_step_breakpoint_here): Likewise.
4176 2017-10-25 Yao Qi <yao.qi@linaro.org>
4178 * aarch32-linux-nat.c (aarch32_gp_regcache_supply): Use
4179 regcache->arch () instead get_regcache_arch.
4180 * aarch64-fbsd-nat.c (aarch64_fbsd_fetch_inferior_registers):
4182 (aarch64_fbsd_store_inferior_registers): Likewise.
4183 * aarch64-linux-nat.c (fetch_gregs_from_thread): Likewise.
4184 (store_gregs_to_thread): Likewise.
4185 (fetch_fpregs_from_thread): Likewise.
4186 (store_fpregs_to_thread): Likewise.
4187 * aarch64-tdep.c (aarch64_extract_return_value): Likewise.
4188 (aarch64_store_return_value): Likewise.
4189 (aarch64_software_single_step): Likewise.
4190 * aix-thread.c (aix_thread_wait): Likewise.
4191 (supply_reg32): Likewise.
4192 (supply_sprs64): Likewise.
4193 (supply_sprs32): Likewise.
4194 (fill_gprs64): Likewise.
4195 (fill_gprs32): Likewise.
4196 (fill_sprs64): Likewise.
4197 (fill_sprs32): Likewise.
4198 (store_regs_user_thread): Likewise.
4199 (store_regs_kernel_thread): Likewise.
4200 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
4201 (alphabsd_store_inferior_registers): Likewise.
4202 * alpha-tdep.c (alpha_extract_return_value): Likewise.
4203 (alpha_store_return_value): Likewise.
4204 (alpha_deal_with_atomic_sequence): Likewise.
4205 (alpha_next_pc): Likewise.
4206 (alpha_software_single_step): Likewise.
4207 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
4208 (amd64bsd_store_inferior_registers): Likewise.
4209 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
4211 (amd64_linux_store_inferior_registers): Likewise.
4212 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
4213 (amd64_collect_native_gregset): Likewise.
4214 * amd64-obsd-tdep.c (amd64obsd_supply_uthread): Likewise.
4215 (amd64obsd_collect_uthread): Likewise.
4216 * amd64-tdep.c (amd64_supply_fpregset): Likewise.
4217 (amd64_collect_fpregset): Likewise.
4218 (amd64_supply_fxsave): Likewise.
4219 (amd64_supply_xsave): Likewise.
4220 (amd64_collect_fxsave): Likewise.
4221 (amd64_collect_xsave): Likewise.
4222 * arc-tdep.c (arc_write_pc): Likewise.
4223 * arch-utils.c (default_skip_permanent_breakpoint): Likewise.
4224 * arm-fbsd-nat.c (arm_fbsd_fetch_inferior_registers): Likewise.
4225 (arm_fbsd_store_inferior_registers): Likewise.
4226 * arm-linux-nat.c (fetch_vfp_regs): Likewise.
4227 (store_vfp_regs): Likewise.
4228 (arm_linux_fetch_inferior_registers): Likewise.
4229 (arm_linux_store_inferior_registers): Likewise.
4230 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
4231 (arm_linux_sigreturn_next_pc): Likewise.
4232 (arm_linux_get_next_pcs_syscall_next_pc): Likewise.
4233 * arm-nbsd-nat.c (arm_supply_gregset): Likewise.
4234 (fetch_register): Likewise.
4235 (store_register): Likewise.
4236 * arm-tdep.c (arm_is_thumb): Likewise.
4237 (displaced_in_arm_mode): Likewise.
4238 (bx_write_pc): Likewise.
4239 (arm_get_next_pcs_addr_bits_remove): Likewise.
4240 (arm_software_single_step): Likewise.
4241 (arm_extract_return_value): Likewise.
4242 (arm_store_return_value): Likewise.
4243 (arm_write_pc): Likewise.
4244 * bfin-tdep.c (bfin_extract_return_value): Likewise.
4245 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
4246 (bsd_uthread_store_registers): Likewise.
4247 * core-regset.c (fetch_core_registers): Likewise.
4248 * corelow.c (get_core_registers): Likewise.
4249 * cris-tdep.c (cris_store_return_value): Likewise.
4250 (cris_extract_return_value): Likewise.
4251 (find_step_target): Likewise.
4252 (find_step_target): Likewise.
4253 (cris_software_single_step): Likewise.
4254 * ctf.c (ctf_fetch_registers): Likewise.
4255 * darwin-nat.c (cancel_breakpoint): Likewise.
4256 * fbsd-tdep.c (fbsd_collect_thread_registers): Likewise.
4257 * frv-tdep.c (frv_extract_return_value): Likewise.
4258 * ft32-tdep.c (ft32_store_return_value): Likewise.
4259 (ft32_extract_return_value): Likewise.
4260 * go32-nat.c (fetch_register): Likewise.
4261 (go32_fetch_registers): Likewise.
4262 (go32_store_registers): Likewise.
4263 (store_register): Likewise.
4264 * h8300-tdep.c (h8300_extract_return_value): Likewise.
4265 (h8300_store_return_value): Likewise.
4266 * hppa-linux-nat.c (fetch_register): Likewise.
4267 (store_register): Likewise.
4268 (hppa_linux_fetch_inferior_registers): Likewise.
4269 (hppa_linux_store_inferior_registers): Likewise.
4270 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Likewise.
4271 (i386_darwin_store_inferior_registers): Likewise.
4272 * i386-gnu-nat.c (gnu_fetch_registers): Likewise.
4273 (gnu_store_registers): Likewise.
4274 * i386-linux-nat.c (fetch_register): Likewise.
4275 (store_register): Likewise.
4276 (supply_gregset): Likewise.
4277 (fill_gregset): Likewise.
4278 (i386_linux_fetch_inferior_registers): Likewise.
4279 (i386_linux_store_inferior_registers): Likewise.
4280 (i386_linux_resume): Likewise.
4281 * i386-linux-tdep.c (i386_linux_get_syscall_number_from_regcache):
4283 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
4284 * i386-obsd-nat.c (i386obsd_supply_pcb): Likewise.
4285 * i386-obsd-tdep.c (i386obsd_supply_uthread): Likewise.
4286 (i386obsd_collect_uthread): Likewise.
4287 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
4288 (i386_supply_gregset): Likewise.
4289 (i386_collect_gregset): Likewise.
4290 (i386_supply_fpregset): Likewise.
4291 (i386_collect_fpregset): Likewise.
4292 (i386_mpx_bd_base): Likewise.
4293 * i386-v4-nat.c (supply_fpregset): Likewise.
4294 (fill_fpregset): Likewise.
4295 * i387-tdep.c (i387_supply_fsave): Likewise.
4296 (i387_collect_fsave): Likewise.
4297 (i387_supply_fxsave): Likewise.
4298 (i387_collect_fxsave): Likewise.
4299 (i387_supply_xsave): Likewise.
4300 (i387_collect_xsave): Likewise.
4301 * ia64-linux-nat.c (ia64_linux_fetch_registers): Likewise.
4302 (ia64_linux_store_registers): Likewise.
4303 * ia64-tdep.c (ia64_access_rse_reg): Likewise.
4304 (ia64_extract_return_value): Likewise.
4305 (ia64_store_return_value): Likewise.
4306 (find_func_descr): Likewise.
4307 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
4308 * inf-ptrace.c (inf_ptrace_fetch_registers): Likewise.
4309 (inf_ptrace_store_registers): Likewise.
4310 * infrun.c (use_displaced_stepping): Likewise.
4311 (displaced_step_prepare_throw): Likewise.
4313 (proceed): Likewise.
4314 (do_target_wait): Likewise.
4315 (adjust_pc_after_break): Likewise.
4316 (handle_inferior_event_1): Likewise.
4317 (handle_signal_stop): Likewise.
4318 (save_infcall_suspend_state): Likewise.
4319 (restore_infcall_suspend_state): Likewise.
4320 * iq2000-tdep.c (iq2000_extract_return_value): Likewise.
4321 * jit.c (jit_frame_prev_register): Likewise.
4322 * linux-nat.c (save_stop_reason): Likewise.
4323 (linux_nat_wait_1): Likewise.
4324 (resume_stopped_resumed_lwps): Likewise.
4325 * linux-record.c (record_linux_sockaddr): Likewise.
4326 (record_linux_msghdr): Likewise.
4327 (record_linux_system_call): Likewise.
4328 * linux-tdep.c (linux_collect_thread_registers): Likewise.
4329 * lm32-tdep.c (lm32_extract_return_value): Likewise.
4330 (lm32_store_return_value): Likewise.
4331 * m32c-tdep.c (m32c_read_flg): Likewise.
4332 (m32c_pseudo_register_read): Likewise.
4333 (m32c_pseudo_register_write): Likewise.
4334 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Likewise.
4335 (m32r_linux_collect_gregset): Likewise.
4336 * m32r-tdep.c (m32r_store_return_value): Likewise.
4337 (m32r_extract_return_value): Likewise.
4338 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
4339 (m68kbsd_collect_fpregset): Likewise.
4340 * m68k-bsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
4341 * m68k-linux-nat.c (fetch_register): Likewise.
4342 (old_fetch_inferior_registers): Likewise.
4343 (old_store_inferior_registers): Likewise.
4344 (store_regs): Likewise.
4345 * m68k-tdep.c (m68k_svr4_extract_return_value): Likewise.
4346 (m68k_svr4_store_return_value): Likewise.
4347 * m88k-tdep.c (m88k_store_arguments): Likewise.
4348 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Likewise.
4349 (mi_cmd_data_write_register_values): Likewise.
4350 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers): Likewise.
4351 (mips_fbsd_store_inferior_registers): Likewise.
4352 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Likewise.
4353 (mips_fbsd_supply_gregs): Likewise.
4354 (mips_fbsd_collect_fpregs): Likewise.
4355 (mips_fbsd_collect_gregs): Likewise.
4356 (mips_fbsd_supply_fpregset): Likewise.
4357 (mips_fbsd_collect_fpregset): Likewise.
4358 (mips_fbsd_supply_gregset): Likewise.
4359 (mips_fbsd_collect_gregset): Likewise.
4360 * mips-linux-nat.c (supply_gregset): Likewise.
4361 (fill_gregset): Likewise.
4362 (supply_fpregset): Likewise.
4363 (fill_fpregset): Likewise.
4364 * mips-linux-tdep.c (mips_supply_gregset): Likewise.
4365 (mips_fill_gregset): Likewise.
4366 (mips_supply_fpregset): Likewise.
4367 (mips_fill_fpregset): Likewise.
4368 (mips64_supply_gregset): Likewise.
4369 (micromips_linux_sigframe_validate): Likewise.
4370 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
4371 (mipsnbsd_fetch_inferior_registers): Likewise.
4372 (mipsnbsd_store_inferior_registers): Likewise.
4373 * mips-nbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
4374 (mipsnbsd_supply_gregset): Likewise.
4375 (mipsnbsd_iterate_over_regset_sections): Likewise.
4376 (mipsnbsd_supply_reg): Likewise.
4377 (mipsnbsd_supply_fpreg): Likewise.
4378 * mips-tdep.c (mips_in_frame_stub): Likewise.
4379 (mips_dummy_id): Likewise.
4380 (is_octeon_bbit_op): Likewise.
4381 (micromips_bc1_pc): Likewise.
4382 (extended_mips16_next_pc): Likewise.
4383 (mips16_next_pc): Likewise.
4384 (deal_with_atomic_sequence): Likewise.
4385 * moxie-tdep.c (moxie_process_readu): Likewise.
4386 * nios2-tdep.c (nios2_get_next_pc): Likewise.
4387 * nto-procfs.c (procfs_store_registers): Likewise.
4388 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers): Likewise.
4389 (ppcfbsd_store_inferior_registers): Likewise.
4390 * ppc-linux-nat.c (fetch_vsx_register): Likewise.
4391 (fetch_altivec_register): Likewise.
4392 (get_spe_registers): Likewise.
4393 (fetch_spe_register): Likewise.
4394 (fetch_altivec_registers): Likewise.
4395 (fetch_all_gp_regs): Likewise.
4396 (fetch_all_fp_regs): Likewise.
4397 (store_vsx_register): Likewise.
4398 (store_altivec_register): Likewise.
4399 (set_spe_registers): Likewise.
4400 (store_spe_register): Likewise.
4401 (store_altivec_registers): Likewise.
4402 (store_all_gp_regs): Likewise.
4403 (store_all_fp_regs): Likewise.
4404 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
4405 (ppc_linux_collect_gregset): Likewise.
4406 (ppc_canonicalize_syscall): Likewise.
4407 (ppc_linux_record_signal): Likewise.
4408 (ppu2spu_prev_register): Likewise.
4409 * ppc-nbsd-nat.c (ppcnbsd_supply_pcb): Likewise.
4410 * ppc-obsd-nat.c (ppcobsd_fetch_registers): Likewise.
4411 (ppcobsd_store_registers): Likewise.
4412 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_fetch_registers):
4414 (ppc_ravenscar_generic_store_registers): Likewise.
4415 * procfs.c (procfs_fetch_registers): Likewise.
4416 (procfs_store_registers): Likewise.
4417 * ravenscar-thread.c (ravenscar_fetch_registers): Likewise.
4418 (ravenscar_store_registers): Likewise.
4419 (ravenscar_prepare_to_store): Likewise.
4420 * record-btrace.c (record_btrace_fetch_registers): Likewise.
4421 * record-full.c (record_full_wait_1): Likewise.
4422 (record_full_registers_change): Likewise.
4423 (record_full_store_registers): Likewise.
4424 (record_full_core_fetch_registers): Likewise.
4425 (record_full_save): Likewise.
4426 (record_full_goto_insn): Likewise.
4427 * regcache.c (regcache_register_size): Likewise.
4428 (get_regcache_arch): Remove.
4429 (regcache_read_pc): Likewise.
4430 * regcache.h (get_regcache_arch): Remove.
4431 * remote-sim.c (gdbsim_fetch_register): Likewise.
4432 (gdbsim_store_register): Likewise.
4433 * remote.c (fetch_register_using_p): Likewise.
4434 (send_g_packet): Likewise.
4435 (remote_prepare_to_store): Likewise.
4436 (store_registers_using_G): Likewise.
4437 * reverse.c (save_bookmark_command): Likewise.
4438 (goto_bookmark_command): Likewise.
4439 * rs6000-aix-tdep.c (branch_dest): Likewise.
4440 * rs6000-nat.c (rs6000_ptrace64): Likewise.
4441 (fetch_register): Likewise.
4442 * rs6000-tdep.c (ppc_supply_reg): Likewise.
4443 (ppc_collect_reg): Likewise.
4444 (ppc_collect_gregset): Likewise.
4445 (ppc_collect_fpregset): Likewise.
4446 (ppc_collect_vsxregset): Likewise.
4447 (ppc_collect_vrregset): Likewise.
4448 (ppc_displaced_step_hw_singlestep): Likewise.
4449 (rs6000_pseudo_register_read): Likewise.
4450 (rs6000_pseudo_register_write): Likewise.
4451 * s390-linux-nat.c (supply_gregset): Likewise.
4452 (fill_gregset): Likewise.
4453 (s390_linux_fetch_inferior_registers): Likewise.
4454 * s390-linux-tdep.c (s390_write_pc): Likewise.
4455 (s390_software_single_step): Likewise.
4456 (s390_all_but_pc_registers_record): Likewise.
4457 (s390_linux_syscall_record): Likewise.
4458 * sentinel-frame.c (sentinel_frame_prev_arch): Likewise.
4459 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
4460 (shnbsd_store_inferior_registers): Likewise.
4461 * sh-tdep.c (sh_extract_return_value_nofpu): Likewise.
4462 (sh_extract_return_value_fpu): Likewise.
4463 (sh_store_return_value_nofpu): Likewise.
4464 (sh_corefile_supply_regset): Likewise.
4465 (sh_corefile_collect_regset): Likewise.
4466 * sh64-tdep.c (sh64_extract_return_value): Likewise.
4467 (sh64_store_return_value): Likewise.
4468 * sparc-linux-tdep.c (sparc32_linux_collect_core_fpregset): Likewise.
4469 * sparc-nat.c (sparc_fetch_inferior_registers): Likewise.
4470 (sparc_store_inferior_registers): Likewise.
4471 * sparc-ravenscar-thread.c (register_in_thread_descriptor_p): Likewise.
4472 (sparc_ravenscar_prepare_to_store): Likewise.
4473 * sparc-tdep.c (sparc32_store_arguments): Likewise.
4474 (sparc_analyze_control_transfer): Likewise.
4475 (sparc_step_trap): Likewise.
4476 (sparc_software_single_step): Likewise.
4477 (sparc32_gdbarch_init): Likewise.
4478 (sparc_supply_rwindow): Likewise.
4479 (sparc_collect_rwindow): Likewise.
4480 * sparc64-linux-tdep.c (sparc64_linux_collect_core_fpregset): Likewise.
4481 * sparc64-nbsd-nat.c (sparc64nbsd_supply_gregset): Likewise.
4482 (sparc64nbsd_collect_gregset): Likewise.
4483 (sparc64nbsd_supply_fpregset): Likewise.
4484 (sparc64nbsd_collect_fpregset): Likewise.
4485 * sparc64-tdep.c (sparc64_store_arguments): Likewise.
4486 (sparc64_supply_gregset): Likewise.
4487 (sparc64_collect_gregset): Likewise.
4488 (sparc64_supply_fpregset): Likewise.
4489 (sparc64_collect_fpregset): Likewise.
4490 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
4491 * spu-tdep.c (spu_unwind_sp): Likewise.
4492 (spu2ppu_prev_register): Likewise.
4493 (spu_memory_remove_breakpoint): Likewise.
4494 * stack.c (return_command): Likewise.
4495 * tic6x-tdep.c (tic6x_extract_signed_field): Likewise.
4496 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
4497 * tracefile.c (trace_save_ctf): Likewise.
4498 * windows-nat.c (do_windows_fetch_inferior_registers): Likewise.
4499 (do_windows_store_inferior_registers): Likewise.
4500 (windows_resume): Likewise.
4501 * xtensa-linux-nat.c (fill_gregset): Likewise.
4502 (supply_gregset_reg): Likewise.
4503 * xtensa-tdep.c (xtensa_register_write_masked): Likewise.
4504 (xtensa_register_read_masked): Likewise.
4505 (xtensa_supply_gregset): Likewise.
4506 (xtensa_extract_return_value): Likewise.
4507 (xtensa_store_return_value): Likewise.
4509 2017-10-25 Ulrich Weigand <uweigand@de.ibm.com>
4511 * doublest.c (floatformat_from_string): New function.
4512 * doublest.h (floatformat_from_string): Add prototype.
4514 * std-operator.def (OP_DOUBLE, OP_DECFLOAT): Remove, replace by ...
4515 (OP_FLOAT): ... this.
4516 * expression.h: Do not include "doublest.h".
4517 (union exp_element): Replace doubleconst and decfloatconst by
4518 new element floatconst.
4519 * ada-lang.c (resolve_subexp): Handle OP_FLOAT instead of OP_DOUBLE.
4520 (ada_evaluate_subexp): Likewise.
4521 * eval.c (evaluate_subexp_standard): Handle OP_FLOAT instead of
4522 OP_DOUBLE and OP_DECFLOAT.
4523 * expprint.c (print_subexp_standard): Likewise.
4524 (dump_subexp_body_standard): Likewise.
4525 * breakpoint.c (watchpoint_exp_is_const): Likewise.
4527 * parse.c: Include "dfp.h".
4528 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
4529 (write_exp_elt_floatcst): New function.
4530 (operator_length_standard): Handle OP_FLOAT instead of OP_DOUBLE
4532 (operator_check_standard): Likewise.
4533 (parse_float): Do not accept suffix. Take type as input. Return bool.
4534 Return target format buffer instead of host DOUBLEST.
4535 Use floatformat_from_string and decimal_from_string to parse
4536 either binary or decimal floating-point types.
4537 (parse_c_float): Remove.
4538 * parser-defs.h: Do not include "doublest.h".
4539 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
4540 (write_exp_elt_floatcst): Add prototype.
4541 (parse_float): Update prototype.
4542 (parse_c_float): Remove.
4544 * c-exp.y: Do not include "dfp.h".
4545 (typed_val_float): Use byte buffer instead of DOUBLEST.
4546 (typed_val_decfloat): Remove.
4548 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4549 (parse_number): Update to new parse_float interface.
4550 Parse suffixes and determine type before calling parse_float.
4551 Handle decimal and binary FP types the same way.
4553 * d-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
4554 (FLOAT_LITERAL): Use OP_FLOAT and write_exp_elt_floatcst.
4555 (parse_number): Update to new parse_float interface.
4556 Parse suffixes and determine type before calling parse_float.
4558 * f-exp.y: Replace dval by typed_val_float.
4559 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4560 (parse_number): Use parse_float instead of atof.
4562 * go-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
4563 (parse_go_float): Remove.
4564 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4565 (parse_number): Call parse_float instead of parse_go_float.
4566 Parse suffixes and determine type before calling parse_float.
4568 * p-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
4569 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4570 (parse_number): Update to new parse_float interface.
4571 Parse suffixes and determine type before calling parse_float.
4573 * m2-exp.y: Replace dval by byte buffer val.
4574 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4575 (parse_number): Call parse_float instead of atof.
4577 * rust-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
4578 (lex_number): Call parse_float instead of strtod.
4579 (ast_dliteral): Use OP_FLOAT instead of OP_DOUBLE.
4580 (convert_ast_to_expression): Handle OP_FLOAT instead of OP_DOUBLE.
4581 Use write_exp_elt_floatcst.
4582 (unit_testing): Remove static variable.
4583 (rust_type): Do not check unit_testing.
4584 (rust_lex_tests): Do not set uint_testing. Set up dummy rust_parser.
4586 * ada-exp.y (type_float, type_double): Remove.
4587 (typed_val_float): Use byte buffer instead of DOUBLEST.
4588 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4589 * ada-lex.l (processReal): Use parse_float instead of sscanf.
4591 2017-10-25 Alan Hayward <alan.hayward@arm.com>
4593 * aarch64-tdep.h (enum aarch64_regnum): Remove.
4594 * arch/aarch64.h: New file.
4596 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4598 * dfp.h (decimal_from_string): Use const reference for argument.
4599 * dfp.c (decimal_from_string): Likewise.
4601 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4603 * i387-tdep.c (print_i387_value): Use floatformat_to_string.
4604 * sh64-tdep.c (sh64_do_fp_register): Likewise.
4605 * mips-tdep.c (mips_print_fp_register): Likewise.
4607 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4609 * common/format.h (enum argclass): Replace decfloat_arg by
4610 dec32float_arg, dec64float_arg, and dec128float_arg.
4611 * common/format.c (parse_format_string): Update to return
4612 new decimal float argument classes.
4614 * printcmd.c (printf_decfloat): Rename to ...
4615 (printf_floating): ... this. Add argclass argument, and use it
4616 instead of parsing the format string again. Add support for
4617 binary floating-point values, using floatformat_to_string.
4618 Convert value to the target format if it doesn't already match.
4619 (ui_printf): Call printf_floating instead of printf_decfloat,
4620 also for double_arg / long_double_arg. Pass argclass.
4622 * dfp.c (decimal_to_string): Add format string argument.
4623 * dfp.h (decimal_to_string): Likewise.
4625 * doublest.c (floatformat_to_string): Add format string argument.
4626 * doublest.h (floatformat_to_string): Likewise.
4628 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4630 * doublest.c (floatformat_precision): New routine.
4631 (floatformat_to_string): Likewise.
4632 * doublest.c (floatformat_to_string): Add prototype.
4634 * printcmd.c (print_scalar_formatted): Only call print_floating
4635 on floating-point types.
4636 * valprint.c: Do not include "floatformat.h".
4637 (generic_val_print_decfloat): Remove.
4638 (generic_val_print): Call generic_val_print_float for both
4639 TYPE_CODE_FLT and TYPE_CODE_DECFLOAT.
4640 (print_floating): Use floatformat_to_string. Handle decimal float.
4641 (print_decimal_floating): Remove, merge into floatformat_to_string.
4642 * value.h (print_decimal_floating): Remove.
4644 * Makefile.in: Do not build doublest.c with -Wformat-nonliteral.
4646 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4648 * buildsym.c (end_symtab_get_static_block): Use std::stable_sort.
4650 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
4652 * memattr.h: Don't include vec.h.
4653 (struct mem_attrib): Initialize fields.
4654 <unknown>: New static method.
4655 (struct mem_region): Add constructors, operator<, initialize
4657 * memattr.c: Include algorithm.
4658 (default_mem_attrib, unknown_mem_attrib): Remove.
4659 (user_mem_region_list): New global.
4660 (target_mem_region_list, mem_region_list): Change type to
4661 std::vector<mem_region>.
4662 (mem_use_target): Now a function.
4663 (target_mem_regions_valid): Change type to bool.
4664 (mem_region_lessthan, mem_region_cmp, mem_region_init): Remove.
4665 (require_user_regions): Adjust.
4666 (require_target_regions): Adjust.
4667 (create_mem_region): Adjust.
4668 (lookup_mem_region): Adjust.
4669 (invalidate_target_mem_regions): Adjust.
4670 (mem_clear): Rename to...
4671 (user_mem_clear): ... this, and adjust.
4672 (mem_command): Adjust.
4673 (info_mem_command): Adjust.
4674 (mem_enable, enable_mem_command, mem_disable,
4675 disable_mem_command): Adjust.
4676 (mem_delete): Adjust.
4677 (delete_mem_command): Adjust.
4678 * memory-map.h (parse_memory_map): Return an std::vector.
4679 * memory-map.c (parse_memory_map): Likewise.
4680 (struct memory_map_parsing_data): Add constructor.
4681 <memory_map>: Point to std::vector.
4682 (memory_map_start_memory): Adjust.
4683 (memory_map_end_memory): Adjust.
4684 (memory_map_end_property): Adjust.
4685 (clear_result): Remove.
4686 * remote.c (remote_memory_map): Return an std::vector.
4687 * target-debug.h (target_debug_print_VEC_mem_region_s__p):
4689 (target_debug_print_mem_region_vector): New.
4690 * target-delegates.c: Regenerate.
4691 * target.h (mem_region_vector): New typedef.
4692 (to_memory_map): Return mem_region_vector.
4693 (target_memory_map): Return an std::vector.
4694 * target.c (target_memory_map): Return an std::vector.
4695 (flash_erase_command): Adjust.
4697 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
4699 * memory-map.c (struct memory_map_parsing_data) <property_name>:
4700 Change type to std::string.
4701 (memory_map_start_property): Adjust.
4702 (memory_map_end_property): Adjust.
4704 2017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
4706 * infrun.h: Include common/byte-vector.h.
4707 (struct displaced_step_closure): New struct.
4708 (struct buf_displaced_step_closure): New struct.
4709 * infrun.c (displaced_step_closure::~displaced_step_closure):
4710 Provide default implementation.
4711 (displaced_step_clear): Deallocate step closure with delete.
4712 * aarch64-tdep.c (displaced_step_closure): Rename to ...
4713 (aarch64_displaced_step_closure): ... this, extend
4714 displaced_step_closure.
4715 (aarch64_displaced_step_data) <dsc>: Change type to
4716 aarch64_displaced_step_closure.
4717 (aarch64_displaced_step_copy_insn): Adjust to type change, use
4719 (aarch64_displaced_step_fixup): Add cast for displaced step
4721 * amd64-tdep.c (displaced_step_closure): Rename to ...
4722 (amd64_displaced_step_closure): ... this, extend
4723 displaced_step_closure.
4724 <insn_buf>: Change type to std::vector<gdb_byte>.
4726 (fixup_riprel): Change type of DSC parameter, adjust to type
4728 (fixup_displaced_copy): Change type of DSC parameter.
4729 (amd64_displaced_step_copy_insn): Instantiate
4730 amd64_displaced_step_closure.
4731 (amd64_displaced_step_fixup): Add cast for closure type, adjust
4732 to type change of insn_buf.
4733 * arm-linux-tdep.c (arm_linux_cleanup_svc): Change type of
4735 (arm_linux_copy_svc): Likewise.
4736 (cleanup_kernel_helper_return): Likewise.
4737 (arm_catch_kernel_helper_return): Likewise.
4738 (arm_linux_displaced_step_copy_insn): Instantiate
4739 arm_displaced_step_closure.
4740 * arm-tdep.c (arm_pc_is_thumb): Add cast for closure.
4741 (displaced_read_reg): Change type of parameter DSC.
4742 (branch_write_pc): Likewise.
4743 (load_write_pc): Likewise.
4744 (alu_write_pc): Likewise.
4745 (displaced_write_reg): Likewise.
4746 (arm_copy_unmodified): Likewise.
4747 (thumb_copy_unmodified_32bit): Likewise.
4748 (thumb_copy_unmodified_16bit): Likewise.
4749 (cleanup_preload): Likewise.
4750 (install_preload): Likewise.
4751 (arm_copy_preload): Likewise.
4752 (thumb2_copy_preload): Likewise.
4753 (install_preload_reg): Likewise.
4754 (arm_copy_preload_reg): Likewise.
4755 (cleanup_copro_load_store): Likewise.
4756 (install_copro_load_store): Likewise.
4757 (arm_copy_copro_load_store) Likewise.
4758 (thumb2_copy_copro_load_store): Likewise.
4759 (cleanup_branch): Likewise.
4760 (install_b_bl_blx): Likewise.
4761 (arm_copy_b_bl_blx): Likewise.
4762 (thumb2_copy_b_bl_blx): Likewise.
4763 (thumb_copy_b): Likewise.
4764 (install_bx_blx_reg): Likewise.
4765 (arm_copy_bx_blx_reg): Likewise.
4766 (thumb_copy_bx_blx_reg): Likewise.
4767 (cleanup_alu_imm): Likewise.
4768 (arm_copy_alu_imm): Likewise.
4769 (thumb2_copy_alu_imm): Likewise.
4770 (cleanup_alu_reg): Likewise.
4771 (install_alu_reg): Likewise.
4772 (arm_copy_alu_reg): Likewise.
4773 (thumb_copy_alu_reg): Likewise.
4774 (cleanup_alu_shifted_reg): Likewise.
4775 (install_alu_shifted_reg): Likewise.
4776 (arm_copy_alu_shifted_reg): Likewise.
4777 (cleanup_load): Likewise.
4778 (cleanup_store): Likewise.
4779 (arm_copy_extra_ld_st): Likewise.
4780 (install_load_store): Likewise.
4781 (thumb2_copy_load_literal): Likewise.
4782 (thumb2_copy_load_reg_imm): Likewise.
4783 (arm_copy_ldr_str_ldrb_strb): Likewise.
4784 (cleanup_block_load_all): Likewise.
4785 (cleanup_block_store_pc): Likewise.
4786 (cleanup_block_load_pc): Likewise.
4787 (arm_copy_block_xfer): Likewise.
4788 (thumb2_copy_block_xfer): Likewise.
4789 (cleanup_svc): Likewise.
4790 (install_svc): Likewise.
4791 (arm_copy_svc): Likewise.
4792 (thumb_copy_svc): Likewise.
4793 (arm_copy_undef): Likewise.
4794 (thumb_32bit_copy_undef): Likewise.
4795 (arm_copy_unpred): Likewise.
4796 (arm_decode_misc_memhint_neon): Likewise.
4797 (arm_decode_unconditional): Likewise.
4798 (arm_decode_miscellaneous): Likewise.
4799 (arm_decode_dp_misc): Likewise.
4800 (arm_decode_ld_st_word_ubyte): Likewise.
4801 (arm_decode_media): Likewise.
4802 (arm_decode_b_bl_ldmstm): Likewise.
4803 (arm_decode_ext_reg_ld_st): Likewise.
4804 (thumb2_decode_dp_shift_reg): Likewise.
4805 (thumb2_decode_ext_reg_ld_st): Likewise.
4806 (arm_decode_svc_copro): Likewise.
4807 (thumb2_decode_svc_copro): Likewise.
4808 (install_pc_relative): Likewise.
4809 (thumb_copy_pc_relative_16bit): Likewise.
4810 (thumb_decode_pc_relative_16bit): Likewise.
4811 (thumb_copy_pc_relative_32bit): Likewise.
4812 (thumb_copy_16bit_ldr_literal): Likewise.
4813 (thumb_copy_cbnz_cbz): Likewise.
4814 (thumb2_copy_table_branch): Likewise.
4815 (cleanup_pop_pc_16bit_all): Likewise.
4816 (thumb_copy_pop_pc_16bit): Likewise.
4817 (thumb_process_displaced_16bit_insn): Likewise.
4818 (decode_thumb_32bit_ld_mem_hints): Likewise.
4819 (thumb_process_displaced_32bit_insn): Likewise.
4820 (thumb_process_displaced_insn): Likewise.
4821 (arm_process_displaced_insn): Likewise.
4822 (arm_displaced_init_closure): Likewise.
4823 (arm_displaced_step_fixup): Add cast for closure.
4824 * arm-tdep.h: Include infrun.h.
4825 (displaced_step_closure): Rename to ...
4826 (arm_displaced_step_closure): ... this, extend
4827 displaced_step_closure.
4828 <u::svc::copy_svc_os>: Change type of parameter DSC.
4829 <cleanup>: Likewise.
4830 (arm_process_displaced_insn): Likewise.
4831 (arm_displaced_init_closure): Likewise.
4832 (displaced_read_reg): Likewise.
4833 (displaced_write_reg): Likewise.
4834 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
4836 * i386-tdep.h: Include infrun.h.
4837 (i386_displaced_step_closure): New typedef.
4838 * i386-tdep.c (i386_displaced_step_copy_insn): Use
4839 i386_displaced_step_closure.
4840 (i386_displaced_step_fixup): Adjust.
4841 * rs6000-tdep.c (ppc_displaced_step_closure): New typedef.
4842 (ppc_displaced_step_copy_insn): Use ppc_displaced_step_closure
4844 (ppc_displaced_step_fixup): Adjust.
4845 * s390-linux-tdep.c (s390_displaced_step_closure): New typedef.
4846 (s390_displaced_step_copy_insn): Use s390_displaced_step_closure
4848 (s390_displaced_step_fixup): Adjust.
4850 2017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
4852 * interps.h (interp_resume, interp_suspend, interp_set_temp):
4853 Remove declarations.
4855 2017-10-20 Tom Tromey <tom@tromey.com>
4857 * gdb_bfd.c (struct gdb_bfd_data) <included_bfds>: Now a
4859 (gdb_bfd_record_inclusion): Update.
4860 (bfdp): Remove typedef.
4862 2017-10-20 Tom Tromey <tom@tromey.com>
4864 * gdb_bfd.c (gdb_bfd_ref): Use new.
4865 (struct gdb_bfd_data): Add constructor, destructor, and member
4867 (gdb_bfd_unref): Use delete.
4869 2017-10-20 Tom Tromey <tom@tromey.com>
4871 * exec.c (exec_file_attach): Use new_bfd_ref.
4872 * symfile-mem.c (symbol_file_add_from_memory): Use new_bfd_ref.
4873 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
4874 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_fdopenr): Use
4876 * gdb_bfd.h (new_bfd_ref): New function.
4878 2017-10-20 Pedro Alves <palves@redhat.com>
4880 * main.c (captured_command_loop): Add attribute noinline.
4882 2017-10-19 Simon Marchi <simon.marchi@ericsson.com>
4884 * interps.c (struct interp_factory): Add constructor.
4885 (interp_factory_p): Remove typedef.
4886 (DEF_VEC_P(interp_factory_p)): Remove.
4887 (interpreter_factories): Change type to std::vector.
4888 (interp_factory_register): Adjust.
4889 (interp_lookup): Adjust.
4890 (interpreter_completer): Adjust.
4892 2017-10-19 Tom Tromey <tom@tromey.com>
4894 * break-catch-syscall.c (catch_syscall_completer): Use
4895 std::string, gdb::unique_xmalloc_ptr.
4897 2017-10-19 Tom Tromey <tom@tromey.com>
4899 * infcall.c (call_function_by_hand_dummy): Use std::string.
4901 2017-10-19 Tom Tromey <tom@tromey.com>
4903 * mi/mi-main.c (mi_cmd_execute): Update.
4904 * top.h (prepare_execute_command): Return scoped_value_mark.
4905 * value.h (class scoped_value_mark): Use DISABLE_COPY_AND_ASSIGN.
4906 Add move constructor.
4907 * top.c (prepare_execute_command): Return scoped_value_mark.
4908 (execute_command): Update.
4910 2017-10-19 Pedro Alves <palves@redhat.com>
4912 * xml-support.c (xml_fetch_content_from_file): Check fread's
4915 2017-10-19 Pedro Alves <palves@redhat.com>
4917 * ser-base.c (ser_base_read_error_fd): Delete the file handler if
4919 (handle_error_fd): New function.
4920 (ser_base_async): Add/delete an event loop file handler for
4923 2017-10-19 Pedro Alves <palves@redhat.com>
4925 * xml-support.c (xml_fetch_content_from_file): Don't read in
4926 chunks. Instead use fseek to determine the file's size, and read
4929 2017-11-18 Keith Seitz <keiths@redhat.com>
4931 * c-exp.y (oper): Canonicalize conversion operators of user-defined
4933 Add whitespace to front of type name.
4935 2017-10-18 Keith Seitz <keiths@redhat.com>
4937 * dwarf2read.c (dwarf2_add_typedef): Issue a complaint on unhandled
4938 DW_AT_accessibility.
4940 2017-10-18 Yao Qi <yao.qi@linaro.org>
4942 * features/tic6x-c62x-linux.c: Remove.
4944 2017-10-17 Tom Tromey <tom@tromey.com>
4946 * disasm.c (do_mixed_source_and_assembly_deprecated): Use
4947 gdb::optional, ui_out_emit_list, ui_out_emit_tuple.
4948 (do_mixed_source_and_assembly): Likewise.
4950 2017-10-17 Tom Tromey <tom@tromey.com>
4952 * regcache.c (regcache::xfer_part): Remove assertion.
4954 2017-10-17 Pedro Alves <palves@redhat.com>
4956 * xml-support.c (xml_fetch_content_from_file): Call
4957 unique_ptr::release() instead unique_ptr::get() when passing
4960 2017-10-17 Yao Qi <yao.qi@linaro.org>
4962 * regcache.c (regcache::xfer_part): Remove parameters read and
4963 write, add parameter is_raw. All callers are updated.
4965 2017-10-16 Keith Seitz <keiths@redhat.com>
4967 * c-typeprint.c (enum access_specifier): Moved here from
4969 (output_access_specifier): New function.
4970 (c_type_print_base): Consider typedefs when assessing
4971 whether access labels are needed.
4972 Use output_access_specifier as needed.
4973 Output access specifier for typedefs, if needed.
4974 * dwarf2read.c (dwarf2_add_typedef): Record DW_AT_accessibility.
4975 * gdbtypes.h (struct typedef_field) <is_protected, is_private>: New
4977 (TYPE_TYPEDEF_FIELD_PROTECTED, TYPE_TYPEDEF_FIELD_PRIVATE): New
4980 2017-10-16 Tom Tromey <tom@tromey.com>
4982 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full)
4983 (linux_fill_prpsinfo, linux_vsyscall_range_raw): Update.
4984 * target.c (target_fileio_read_stralloc): Update.
4985 * sparc64-tdep.c (adi_is_addr_mapped): Update.
4986 * target.h (target_fileio_read_stralloc): Return
4989 2017-10-16 Tom Tromey <tom@tromey.com>
4991 * xml-syscall.c (xml_init_syscalls_info): Update.
4992 * xml-support.c (xinclude_start_include): Update.
4993 (xml_fetch_content_from_file): Return unique_xmalloc_ptr.
4994 * xml-support.h (xml_fetch_another): Return unique_xmalloc_ptr.
4995 (xml_fetch_content_from_file): Likewise.
4996 * osdata.c (get_osdata): Update.
4997 * target.h (target_read_stralloc, target_get_osdata): Return
4999 * solib-aix.c (solib_aix_get_library_list): Update.
5000 * solib-target.c (solib_target_current_sos): Update.
5001 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Update.
5002 * xml-tdesc.c (fetch_available_features_from_target): Update.
5003 (target_fetch_description_xml): Update.
5004 (file_read_description_xml): Update.
5005 * remote.c (remote_get_threads_with_qxfer, remote_memory_map)
5006 (remote_traceframe_info, btrace_read_config, remote_read_btrace)
5007 (remote_pid_to_exec_file): Update.
5008 * target.c (target_read_stralloc): Return unique_xmalloc_ptr.
5009 (target_get_osdata): Likewise.
5011 2017-10-16 Tom Tromey <tom@tromey.com>
5013 * remote.c (remote_register_number_and_offset): Use std::vector.
5014 (remote_set_syscall_catchpoint): Use gdb::unique_xmalloc_ptr.
5015 (putpkt_binary): Use gdb::def_vector.
5016 (compare_sections_command): Use gdb::byte_vector.
5018 2017-10-16 Tom Tromey <tom@tromey.com>
5020 * ppc-linux-nat.c (hwdebug_insert_point): Use
5021 gdb::unique_xmalloc_ptr, XDUP.
5023 2017-10-16 Tom Tromey <tom@tromey.com>
5025 * probe.c (parse_probes): Use std::string.
5026 (info_probes_for_ops, enable_probes_command)
5027 (disable_probes_command): Remove cleanups.
5029 2017-10-16 Tom Tromey <tom@tromey.com>
5031 * buildsym.c (block_compar): Remove.
5032 (end_symtab_get_static_block): Use std::vector.
5034 2017-10-16 Simon Marchi <simon.marchi@ericsson.com>
5036 * memrange.h (struct mem_range): Define operator< and operator==.
5037 (mem_range_s): Remove.
5038 (DEF_VEC_O (mem_range_s)): Remove.
5039 (normalize_mem_ranges): Change parameter type to std::vector.
5040 * memrange.c (compare_mem_ranges): Remove.
5041 (normalize_mem_ranges): Change parameter type to std::vector,
5042 adjust to vector change.
5043 * exec.c (section_table_available_memory): Return vector, remove
5045 (section_table_read_available_memory): Adjust to std::vector
5047 * remote.c (remote_read_bytes): Adjust to std::vector
5049 * tracepoint.h (traceframe_available_memory): Change parameter
5050 type to std::vector.
5051 * tracepoint.c (traceframe_available_memory): Change parameter
5052 type to std::vector, adjust.
5053 * gdb/mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to
5055 * gdb/Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5056 unittests/memrange-selftests.c.
5057 (SUBDIR_UNITTESTS_OBS): Add memrange-selftests.o.
5058 * gdb/unittests/memrange-selftests.c: New file.
5060 2017-10-16 Pedro Alves <palves@redhat.com>
5062 * elfread.c (probe_key_free): Rename range-for variable.
5063 * probe.c (parse_probes_in_pspace, find_probes_in_objfile)
5064 (find_probe_by_pc, collect_probes): Rename range-for variable.
5066 2017-10-16 Yao Qi <yao.qi@linaro.org>
5068 * features/Makefile (XMLTOC): Remove tic6x-*.xml.
5069 * features/tic6x-c62x.c: Remove.
5070 * features/tic6x-c64x-linux.c: Remove.
5071 * features/tic6x-c64x.c: Remove.
5072 * features/tic6x-c64xp-linux.c: Remove.
5073 * features/tic6x-c64xp.c: Remove.
5074 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Don't call
5075 initialize_tdesc_tic6x_*_linux functions.
5076 * tic6x-tdep.c (_initialize_tic6x_tdep): Don't call
5077 initialize_tdesc_tic6x_* functions.
5079 2017-10-16 Yao Qi <yao.qi@linaro.org>
5081 * features/Makefile (WHICH): Remove tic6x-c64xp, tic6x-c64x
5083 * regformats/tic6x-c62x.dat: Remove.
5084 * regformats/tic6x-c64x.dat: Remove.
5085 * regformats/tic6x-c64xp.dat: Remove.
5087 2017-10-15 Simon Marchi <simon.marchi@ericsson.com>
5089 * tracepoint.c (parse_traceframe_info): Return a unique_ptr
5090 (the !HAVE_LIBEXPAT version).
5092 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
5094 * nat/linux-osdata.c (struct pid_pgid_entry) <operator<>: Make
5097 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
5099 * target.h: Include tracepoint.h.
5100 (enum trace_find_type): Move to tracepoint.h.
5101 (struct target_ops) <to_traceframe_info>: Return a unique ptr.
5102 * tracepoint.h: Don't include target.h
5103 (enum trace_find_type): Move from target.h.
5104 (parse_traceframe_info): Return a unique ptr.
5105 * tracepoint.c (current_traceframe_info): Change type to unique
5107 (free_traceframe_info): Remove.
5108 (clear_traceframe_info): Don't manually free
5109 current_traceframe_info.
5110 (free_result): Remove.
5111 (parse_traceframe_info): Return a unique ptr.
5112 (get_traceframe_info): Adjust to unique ptr.
5113 * ctf.c (ctf_traceframe_info): Return a unique ptr.
5114 * remote.c (remote_traceframe_info): Return a unique ptr.
5115 * tracefile-tfile.c (tfile_traceframe_info): Return a unique
5117 * target-debug.h (target_debug_print_traceframe_info_up): New
5119 * target-delegates.c: Regenerate.
5121 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
5123 * memrange.h (struct mem_range): Add constructors.
5124 * tracepoint.h (struct traceframe_info) <memory>: Change type to
5125 std::vector<mem_range>.
5126 * tracepoint.c (free_traceframe_info): Don't manually free
5128 (traceframe_info_start_memory): Adjust to vector change.
5129 (traceframe_available_memory): Likewise.
5130 * tracefile-tfile.c (build_traceframe_info): Likewise.
5131 * ctf.c (ctf_traceframe_info): Likewise.
5133 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
5135 * tracepoint.h (struct traceframe_info) <tvars>: Change type to
5137 * tracepoint.c (free_traceframe_info): Deallocate with delete.
5138 (traceframe_info_start_tvar): Adjust to vector change.
5139 (parse_traceframe_info): Allocate with new.
5140 * ctf.c (ctf_traceframe_info): Allocate with new, adjust to
5142 * tracefile-tfile.c (build_traceframe_info): Adjust to vector
5144 tfile_traceframe_info): Allocate with new.
5145 * mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to vector
5148 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
5150 * tracepoint.c (traceframe_info): Rename to...
5151 (current_traceframe_info): ...this.
5152 (clear_traceframe_info): Adjust.
5153 (get_traceframe_info): Adjust.
5155 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
5157 * nat/linux-osdata.c: Include algorithm.
5158 (compare_processes): Remove.
5159 (struct pid_pgid_entry): New struct.
5160 (linux_xfer_osdata_processgroups): Use std::vector instead of
5163 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
5165 * objfiles.h: Don't include symfile.h.
5166 (struct partial_symbol): Remove forward-declaration.
5167 (struct objfile) <global_psymbols, static_psymbols>: Change type
5168 to std::vector<partial_symbol *>.
5169 * objfiles.c (objfile::objfile): Don't memset those fields.
5170 (objfile::~objfile): Don't free those fields.
5171 * psympriv.h (struct psymbol_allocation_list): Remove
5172 forward-declaration.
5173 (add_psymbol_to_list): Change psymbol_allocation_list parameter
5175 (start_psymtab_common): Change parameters to std::vector.
5176 * psymtab.c: Include algorithm.
5177 (require_partial_symbols): Call shrink_to_fit.
5178 (find_pc_sect_psymbol): Adjust to vector change.
5179 (match_partial_symbol): Likewise.
5180 (lookup_partial_symbol): Likewise.
5181 (psym_relocate): Likewise.
5182 (dump_psymtab): Likewise.
5183 (recursively_search_psymtabs): Likewise.
5184 (compare_psymbols): Remove.
5185 (sort_pst_symbols): Adjust to vector change.
5186 (start_psymtab_common): Likewise.
5187 (end_psymtab_common): Likewise.
5188 (psymbol_bcache_full): De-constify return value.
5189 (add_psymbol_to_bcache): Likewise.
5190 (extend_psymbol_list): Remove.
5191 (append_psymbol_to_list): Adjust to vector change.
5192 (add_psymbol_to_list): Likewise.
5193 (init_psymbol_list): Likewise.
5194 (maintenance_info_psymtabs): Likewise.
5195 (maintenance_check_psymtabs): Likewise.
5196 * symfile.h (struct psymbol_allocation_list): Remove.
5197 * symfile.c (reread_symbols): Adjust to vector change.
5198 * dbxread.c (start_psymtab): Change type of parameters.
5199 (dbx_symfile_read): Adjust to vector change.
5200 (read_dbx_symtab): Likewise.
5201 (start_psymtab): Change type of parameters.
5202 * dwarf2read.c (dwarf2_build_psymtabs): Adjust to vector change.
5203 (create_partial_symtab): Likewise.
5204 (add_partial_symbol): Likewise.
5205 (write_one_signatured_type): Likewise.
5206 (recursively_write_psymbols): Likewise.
5207 * mdebugread.c (parse_partial_symbols): Likewise.
5208 * xcoffread.c (xcoff_start_psymtab): Change type of parameters.
5209 (scan_xcoff_symtab): Adjust to vector change.
5210 (xcoff_initial_scan): Likewise.
5212 2017-10-13 Simon Marchi <simon.marchi@ericsson.com>
5214 * ada-typeprint.c (print_dynamic_range_bound): Use std::string.
5216 2017-10-13 Yao Qi <yao.qi@linaro.org>
5218 * features/Makefile: Remove tic6x-*-expedite, add tic6x-expedite.
5219 Remove s390x-*-expedite, add s390x-expedite.
5221 2017-10-13 Yao Qi <yao.qi@linaro.org>
5223 * features/s390-gs-linux64.c: Regenerated.
5224 * features/s390x-gs-linux64.c: Regenerated.
5226 2017-10-13 Tom Tromey <tom@tromey.com>
5228 * compile/compile-object-run.c (do_module_cleanup): Use delete.
5229 * solib.c (update_solib_list, reload_shared_libraries_1): Use
5231 * symfile.c (symbol_file_add_with_addrs): Use new.
5232 (symbol_file_add_separate): Update comment.
5233 (syms_from_objfile_1, remove_symbol_file_command): Use delete.
5234 * jit.c (jit_object_close_impl): Use new.
5235 (jit_unregister_code): Use delete.
5236 * objfiles.c (objfile::objfile): Rename from allocate_objfile.
5237 (~objfile): Rename from free_objfile.
5238 (free_objfile_separate_debug, do_free_objfile_cleanup)
5239 (free_all_objfiles, objfile_purge_solibs): Use delete.
5240 * objfiles.h (struct objfile): Add constructor and destructor.
5241 Use DISABLE_COPY_AND_ASSIGN. Add initializers to data members.
5242 (allocate_objfile, free_objfile): Don't declare.
5243 (struct objstats): Add initializers.
5245 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
5247 * arch-utils.h (simple_displaced_step_copy_insn): Remove.
5248 * arch-utils.c (simple_displaced_step_copy_insn): Remove.
5249 * gdbarch.sh (displaced_step_copy_insn): Adjust comment.
5250 * gdbarch.h: Regenerate.
5251 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
5253 * i386-tdep.c (i386_displaced_step_copy_insn): Adjust comment.
5254 (i386_displaced_step_fixup): Adjust comment.
5255 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Adjust comment.
5257 2017-10-12 Tom Tromey <tom@tromey.com>
5259 * prologue-value.h (pv_area::store_would_trash): Return bool.
5260 (pv_area::find_reg): Likewise.
5261 * prologue-value.c (pv_area::store_would_trash): Return bool.
5262 (pv_area::find_reg): Likewise.
5264 2017-10-12 Tom Tromey <tom@tromey.com>
5266 * s390-linux-tdep.c (s390_store, s390_load)
5267 (s390_check_for_saved, s390_analyze_prologue): Update.
5268 * rx-tdep.c (check_for_saved, rx_analyze_prologue): Update.
5269 * rl78-tdep.c (rl78_analyze_prologue, check_for_saved): Update.
5270 * prologue-value.h (class pv_area): Move from prologue-value.c.
5271 Change names of members. Add constructor, destructor, member
5273 (make_pv_area, free_pv_area, make_cleanup_free_pv_area)
5274 (pv_area_store, pv_area_fetch, pv_area_store_would_trash)
5275 (pv_area_fetch, pv_area_scan): Don't declare.
5276 * prologue-value.c (struct pv_area::area_entry): Now member of
5278 (struct pv_area): Move to prologue-value.h.
5279 (pv_area::pv_area): Rename from make_pv_area.
5280 (pv_area::~pv_area): Rename from free_pv_area.
5281 (do_free_pv_area_cleanup, make_cleanup_free_pv_area): Remove.
5282 (clear_entries, find_entry, overlaps, store_would_trash, store)
5283 (fetch, find_reg, scan): Now member of pv_area.
5284 Remove "area" argument. Update.
5285 * msp430-tdep.c (check_for_saved, msp430_analyze_prologue):
5287 * mn10300-tdep.c (push_reg, check_for_saved)
5288 (mn10300_analyze_prologue): Update.
5289 * mep-tdep.c (is_arg_spill, check_for_saved)
5290 (mep_analyze_prologue): Update.
5291 * m32c-tdep.c (m32c_pv_push, m32c_srcdest_fetch)
5292 (m32c_srcdest_store, m32c_pv_enter, m32c_is_arg_spill)
5293 (m32c_is_struct_return, m32c_analyze_prologue): Update.
5294 * arm-tdep.c (thumb_analyze_prologue, arm_analyze_prologue):
5296 * arc-tdep.c (arc_is_in_prologue, arc_analyze_prologue): Update.
5297 * aarch64-tdep.c (aarch64_analyze_prologue): Update.
5299 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
5301 * linux-nat.h (linux_nat_set_delete_thread): New declaration.
5302 * linux-nat.c (linux_nat_delete_thread): New variable.
5303 (lwp_free): Invoke linux_nat_delete_thread if set.
5304 (linux_nat_set_delete_thread): New function.
5305 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Assign
5306 thread delete callback.
5307 * arm-linux-nat.c (arm_linux_delete_thread): New function.
5308 (_initialize_arm_linux_nat): Assign thread delete callback.
5309 * s390-linux-nat.c (s390_delete_thread): New function.
5310 (_initialize_s390_nat): Assign thread delete callback.
5311 * x86-linux-nat.c (x86_linux_add_target): Likewise.
5312 * nat/aarch64-linux.c (aarch64_linux_delete_thread): New
5314 * nat/aarch64-linux.h (aarch64_linux_delete_thread): New
5316 * nat/x86-linux.c (x86_linux_delete_thread): New function.
5317 * nat/x86-linux.h (x86_linux_delete_thread): New declaration.
5319 2017-10-09 Tom Tromey <tom@tromey.com>
5321 * tui/tui-win.c (tui_set_win_height, parse_scrolling_args): Use
5323 * tui/tui-layout.c (enum tui_status): Use std::string.
5325 2017-10-11 Tom Tromey <tom@tromey.com>
5327 * gdbthread.h (thread_command): Constify.
5328 * inferior.h (detach_command): Constify.
5329 * top.h (set_history, show_history): Constify.
5330 * arm-tdep.c (set_arm_command, show_arm_command): Constify.
5331 * serial.c (serial_set_cmd, serial_show_cmd): Constify.
5332 * bsd-kvm.c (bsd_kvm_cmd): Constify.
5333 * printcmd.c (set_command): Constify.
5334 (non_const_set_command): New function.
5335 * dcache.c (set_dcache_command, show_dcache_command): Constify.
5336 * breakpoint.c (enable_command, disable_command, delete_command)
5337 (catch_command, tcatch_command, set_breakpoint_cmd)
5338 (show_breakpoint_cmd): Constify.
5339 * macrocmd.c (macro_command): Constify.
5340 * infcmd.c (unset_command, kill_command, detach_command)
5341 (info_proc_cmd): Constify.
5342 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Constify.
5343 * auto-load.c (show_auto_load_cmd, set_auto_load_cmd)
5344 (info_auto_load_cmd): Constify.
5345 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
5346 (unset_tdesc_cmd): Constify.
5347 * ada-lang.c (set_ada_command, show_ada_command)
5348 (maint_set_ada_cmd, maint_show_ada_cmd): Constify.
5349 * guile/guile.c (set_guile_command, show_guile_command)
5350 (info_guile_command): Constify.
5351 * tui/tui-win.c (tui_command, set_tui_cmd, show_tui_cmd):
5353 * skip.c (skip_command): Constify.
5354 * compile/compile.c (_initialize_compile): Constify.
5355 * dwarf2read.c (set_dwarf_cmd, show_dwarf_cmd): Constify.
5356 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
5357 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
5358 (maint_btrace_pt_show_cmd): Constify.
5359 * remote.c (set_remote_cmd, show_remote_cmd, remote_command):
5361 * python/python.c (user_show_python, user_set_python): Constify.
5362 * mips-tdep.c (set_mips_command, show_mips_command)
5363 (set_mipsfpu_command): Constify.
5364 * record-btrace.c (cmd_record_btrace_start)
5365 (cmd_set_record_btrace, cmd_show_record_btrace)
5366 (cmd_set_record_btrace_bts, cmd_show_record_btrace_bts)
5367 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): Constify.
5368 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command):
5370 * symfile.c (overlay_command): Constify.
5371 * spu-tdep.c (set_spu_command, show_spu_command): Constify.
5372 * cli/cli-logging.c (set_logging_command, show_logging_command):
5374 * cli/cli-dump.c (dump_command, append_command)
5375 (srec_dump_command, ihex_dump_command, verilog_dump_command)
5376 (tekhex_dump_command, binary_dump_command)
5377 (binary_append_command): Constify.
5378 * cli/cli-decode.c (struct cmd_list_element): Change type of
5380 * cli/cli-cmds.c (info_command, show_command, set_debug)
5381 (show_debug): Constify.
5382 (show_command): Add non-const overload.
5383 * top.c (set_history, show_history): Constify.
5384 * sh-tdep.c (set_sh_command, show_sh_command): Constify.
5385 * command.h (add_prefix_cmd): Accept a cmd_const_cfunc_ftype.
5386 * target.c (target_command): Constify.
5387 * sparc64-tdep.c (info_adi_command): Constify.
5388 * record-full.c (cmd_record_full_start): Constify.
5389 (set_record_full_command): Constify. Fix typo.
5390 (show_record_full_command): Constify.
5391 * thread.c (thread_command, thread_apply_command): Constify.
5392 * memattr.c (dummy_cmd): Constify.
5393 * value.c (function_command): Constify.
5394 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Constify.
5395 * probe.c (info_probes_command): Constify.
5396 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Constify.
5397 * gnu-nat.c (set_task_cmd, show_task_cmd, set_thread_cmd)
5398 (show_thread_cmd, set_thread_default_cmd)
5399 (show_thread_default_cmd): Constify.
5400 (check_empty): Constify.
5401 * tracepoint.c (tfind_command): Constify.
5402 * cp-support.c (maint_cplus_command): Constify.
5403 * windows-tdep.c (info_w32_command): Constify.
5404 * record.c (cmd_record_start, set_record_command)
5405 (show_record_command, info_record_command, cmd_record_goto):
5407 * ravenscar-thread.c (set_ravenscar_command)
5408 (show_ravenscar_command): Constify.
5409 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5411 (add_internal_problem_command): Remove casts.
5412 * arc-tdep.c (maintenance_print_arc_command): Constify.
5413 * valprint.c (set_print, show_print, set_print_raw)
5414 (show_print_raw): Constify.
5415 * maint.c (maintenance_command, maintenance_info_command)
5416 (maintenance_print_command, maintenance_set_cmd)
5417 (maintenance_show_cmd, set_per_command_cmd)
5418 (show_per_command_cmd, maintenance_check_command): Constify.
5419 * language.c (set_check, show_check): Constify.
5420 * typeprint.c (show_print_type, set_print_type): Constify.
5421 * go32-nat.c (go32_info_dos_command): Constify.
5423 2017-10-11 Tom Tromey <tom@tromey.com>
5425 * breakpoint.c (prepare_re_set_context): Remove.
5426 (breakpoint_re_set_one): Update. Don't use cleanups.
5427 (breakpoint_re_set): Use scoped_restore, std::string, and
5428 scoped_restore_current_language.
5430 2017-10-11 Tom Tromey <tom@tromey.com>
5432 * breakpoint.c (commands_command_1): Use std::string.
5433 (cleanup_executing_breakpoints): Remove.
5434 (bpstat_do_actions_1): Use scoped_restore.
5435 (bpstat_check_watchpoint): Use std::string.
5436 (decode_static_tracepoint_spec): Likewise.
5437 (break_range_command): Likewise.
5438 (watch_command_1): Likewise.
5439 (compare_breakpoints): Change argument types.
5440 (clear_command): Use std::vector.
5441 (cleanup_executing_breakpoints): Remove.
5442 (update_global_location_list): Use unique_xmalloc_ptr.
5443 (strace_command): Remove unused declaration.
5445 2017-10-11 John Baldwin <jhb@FreeBSD.org>
5447 * Makefile.in (ALLDEPFILES): Add arm-fbsd-nat.c.
5448 * NEWS: Mention new FreeBSD/arm native configuration.
5449 * configure.host: Add arm*-*-freebsd*.
5450 * configure.nat: Likewise.
5451 * arm-fbsd-nat.c: New file.
5453 2017-10-11 John Baldwin <jhb@FreeBSD.org>
5455 * Makefile.in (ALL_TARGET_OBS): Add arm-fbsd-tdep.o.
5456 (ALLDEPFILES): Add arm-fbsd-tdep.c.
5457 * NEWS: Mention new FreeBSD/arm target.
5458 * configure.tgt: Add arm*-*-freebsd*.
5459 * arm-fbsd-tdep.c: New file.
5460 * arm-fbsd-tdep.h: New file.
5462 2017-10-11 Maciej W. Rozycki <macro@imgtec.com>
5464 * linux-tdep.c (linux_make_corefile_notes): Remove call to
5465 `gdbarch_elfcore_write_linux_prpsinfo'.
5466 * gdbarch.sh (elfcore_write_linux_prpsinfo): Remove architecture
5468 (elf_internal_linux_prpsinfo): Remove declaration.
5469 * gdbarch.h: Regenerate.
5470 * gdbarch.c: Regenerate.
5472 2017-10-11 Maciej W. Rozycki <macro@imgtec.com>
5474 * ppc-linux-tdep.c (ppc_linux_init_abi): Remove call to
5475 `set_gdbarch_elfcore_write_linux_prpsinfo'.
5477 2017-10-11 Pedro Alves <palves@redhat.com>
5479 * breakpoint.c (reattach_breakpoints): Delete.
5480 * breakpoint.h (reattach_breakpoints): Delete.
5482 2017-10-11 Simon Marchi <simon.marchi@ericsson.com>
5484 * symfile.c (registered_sym_fns): Make struct, not typedef.
5485 (DEF_VEC_O (registered_sym_fns)): Remove.
5486 (symtab_fns): Change type to std::vector.
5487 (add_symtab_fns): Adjust.
5488 (find_sym_fns): Adjust.
5490 2017-10-11 Anton Kolesov <Anton.Kolesov@synopsys.com>
5492 * arc-tdep.c (arc_gdbarch_init): Pass proper cpu value to disassembler.
5493 * arc-tdep.h (arc_arch_is_em): New function.
5494 (arc_arch_is_hs): Likewise.
5496 2017-10-11 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com>
5498 * macrotab.h (macro_lookup_inclusion): Remove unnecessary
5499 parentheses in the declaration.
5500 (macro_lookup_inclusion): Likewise.
5501 (macro_lookup_definition): Likewise.
5502 * p-lang.h (pascal_builtin_types): Likewise.
5503 * tui/tui-data.c (tui_win_list): Likewise.
5504 * tui/tui-data.h (tui_win_list): Likewise.
5505 * utils.h (make_cleanup_free_section_addr_info): Likewise.
5507 2017-10-11 Mark Rages <markrages@gmail.com>
5509 * target-memory.c (block_boundaries): Fix for block address not
5510 aligned on block size.
5512 2017-10-10 Pedro Alves <palves@redhat.com>
5513 Tom Tromey <tom@tromey.com>
5515 * breakpoint.c (struct captured_breakpoint_query_args)
5516 (do_captured_breakpoint_query, gdb_breakpoint_query): Delete.
5517 (print_breakpoint): New.
5518 * breakpoint.h (print_breakpoint): Declare.
5519 * common/common-exceptions.h (enum return_reason): Remove
5520 references to catch_exceptions.
5521 * exceptions.c (catch_exceptions, catch_exceptions_with_msg):
5523 * exceptions.h (catch_exceptions_ftype, catch_exceptions)
5524 (catch_exception_ftype, catch_exceptions_with_msg): Delete.
5526 * gdbthread.h (thread_select): Declare.
5527 * mi/mi-cmd-break.c: Don't include gdb.h.
5528 (breakpoint_notify): Use print_breakpoint.
5529 * mi/mi-cmd-catch.c: Don't include gdb.h.
5530 * mi/mi-interp.c: Don't include gdb.h.
5531 (mi_print_breakpoint_for_event): New.
5532 (mi_breakpoint_created, mi_breakpoint_modified): Use
5533 mi_print_breakpoint_for_event.
5534 * mi/mi-main.c: Don't include gdb.h.
5535 (mi_cmd_thread_select): Parse the global thread ID here. Use
5536 thread_select instead of gdb_thread_select.
5537 (mi_cmd_thread_list_ids): Output "thread-ids" tuple here instead
5538 of using gdb_list_thread_ids.
5539 * remote-fileio.c (do_remote_fileio_request): Change type. Reply
5541 (remote_fileio_request): Use TRY/CATCH instead of
5543 * symfile-mem.c (struct symbol_file_add_from_memory_args)
5544 (symbol_file_add_from_memory_wrapper): Delete.
5545 (add_vsyscall_page): Use TRY/CATCH instead of catch_exceptions.
5546 * thread.c: Don't include gdb.h.
5547 (do_captured_list_thread_ids, gdb_list_thread_ids): Delete.
5548 (thread_alive): Use thread_select.
5549 (do_captured_thread_select): Delete, parts salvaged as ...
5550 (thread_select): ... this new function.
5551 (gdb_thread_select): Delete.
5553 2017-10-10 Pedro Alves <palves@redhat.com>
5554 Tom Tromey <tom@tromey.com>
5556 * breakpoint.c (breakpoint_cond_eval): Change return type to bool
5558 (WP_DELETED, WP_VALUE_CHANGED, WP_VALUE_NOT_CHANGED, WP_IGNORE):
5559 No longer macros. Instead ...
5560 (enum wp_check_result): They're now values of this new
5562 (watchpoint_check): Change return type to wp_check_result and
5563 parameter type to bpstat.
5564 (bpstat_check_watchpoint): Use TRY/CATCH instead of catch_errors.
5565 (bpstat_check_breakpoint_conditions): Use TRY/CATCH instead of
5566 catch_errors. Reverse logic of watchpoint_check call.
5567 (breakpoint_re_set_one): Now returns void and takes a breakpoint
5568 pointer as parameter.
5569 (breakpoint_re_set): Use TRY/CATCH instead of catch_errors.
5570 * common/common-exceptions.c (throw_exception_sjlj): Update
5571 comments to avoid mentioning catch_errors.
5572 * exceptions.c (catch_errors): Delete.
5573 * exceptions.h: Update comments to avoid mentioning catch_errors.
5574 (catch_errors_ftype, catch_errors): Delete.
5575 * infrun.c (normal_stop): Use TRY/CATCH instead of catch_errors.
5576 (hook_stop_stub): Delete.
5577 (restore_selected_frame): Change return type to void, and
5578 parameter type to const frame_id &.
5579 (restore_infcall_control_state): Use TRY/CATCH instead of
5581 * main.c (captured_command_loop): Return void and remove
5582 parameter. Remove references to catch_errors.
5583 (captured_main): Use TRY/CATCH instead of catch_errors.
5584 * objc-lang.c (objc_submethod_helper_data)
5585 (find_objc_msgcall_submethod_helper): Delete.
5586 (find_objc_msgcall_submethod): Use TRY/CATCH instead of
5588 * record-full.c (record_full_message): Return void.
5589 (record_full_message_args, record_full_message_wrapper): Delete.
5590 (record_full_message_wrapper_safe): Return bool and use TRY/CATCH
5591 instead of catch_errors.
5592 * solib-aix.c (solib_aix_open_symbol_file_object): Change
5593 parameter type to int.
5594 * solib-darwin.c (open_symbol_file_object): Ditto.
5595 * solib-dsbt.c (open_symbol_file_object): Ditto.
5596 * solib-frv.c (open_symbol_file_object): Ditto.
5597 * solib-svr4.c (open_symbol_file_object): Ditto.
5598 * solib-target.c (solib_target_open_symbol_file_object): Ditto.
5599 * solib.c (update_solib_list): Use TRY/CATCH instead of
5601 * solist.h (struct target_so_ops) <open_symbol_file_object>:
5603 * symmisc.c (struct print_symbol_args): Remove.
5604 (dump_symtab_1): Use TRY/CATCH instead of catch_errors.
5605 (print_symbol): Change type.
5606 * windows-nat.c (handle_load_dll, handle_unload_dll): Return void
5607 and remove parameters.
5608 (catch_errors): New.
5609 (get_windows_debug_event): Adjust.
5611 2017-10-09 Tom Tromey <tom@tromey.com>
5613 * mi/mi-main.c (free_splay_tree): Remove.
5614 (list_available_thread_groups): Use splay_tree_up.
5615 * common/gdb_splay_tree.h: New file.
5617 2017-10-09 Tom Tromey <tom@tromey.com>
5619 * mi/mi-main.c (do_nothing): Remove.
5620 (list_available_thread_groups): Update.
5622 2017-10-09 Pedro Alves <palves@redhat.com>
5624 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>: Skip
5625 reading registers when switching context.
5627 2017-10-09 John Baldwin <jhb@FreeBSD.org>
5629 * fbsd-nat.c (fbsd_siginfo_size): Use gdbarch_long_bit.
5630 (fbsd_convert_siginfo): Likewise.
5631 * fbsd-tdep.c (fbsd_core_xfer_siginfo): Likewise.
5633 2017-10-09 Simon Marchi <simon.marchi@polymtl.ca>
5635 * configure.ac (try_guile_versions): Remove guile-2.2.
5636 * configure: Regenerate.
5638 2017-10-09 Tom Tromey <tom@tromey.com>
5640 * Makefile.in (COMPILE.post, POSTCOMPILE): Restore $(basename).
5641 (COMPILE.pre): Use $(CXX).
5643 2017-10-09 Pedro Alves <palves@redhat.com>
5645 * cp-support.c (cp_remove_params): Return a gdb::unique_xmalloc_ptr.
5647 (overload_list_add_symbol): Adjust to use gdb::unique_xmalloc_ptr.
5648 * cp-support.h (cp_remove_params): Now returns a
5649 gdb::unique_xmalloc_ptr.
5650 * dwarf2read.c (find_slot_in_mapped_hash): Now returns bool.
5651 Adjust to cp_remove_params returning a gdb::unique_xmalloc_ptr.
5652 * psymtab.c (psymtab_search_name): Adjust to cp_remove_params
5653 returning a gdb::unique_xmalloc_ptr.
5654 (lookup_partial_symbol): Adjust to use gdb::unique_xmalloc_ptr.
5655 * stack.c (find_frame_funname): Adjust to cp_remove_params
5656 returning a gdb::unique_xmalloc_ptr.
5658 2017-10-08 Tom Tromey <tom@tromey.com>
5660 * dwarf2read.c (dwarf2_get_dwz_file): Use
5661 gdb::unique_xmalloc_ptr.
5662 (find_slot_in_mapped_hash): Likewise.
5663 (dwarf2_physname): Likewise.
5664 (create_dwo_unit_in_dwp_v1): Use std::string.
5665 (create_dwo_unit_in_dwp_v2): Likewise.
5666 (lookup_dwo_cutu): Likewise.
5667 (inherit_abstract_dies): Use std::vector.
5668 (read_array_type): Likewise.
5669 (dwarf_decode_macros): Remove unused declaration.
5670 (unsigned_int_compar): Remove.
5671 (dwarf2_build_psymtabs_hard): Use scoped_restore.
5672 (psymtabs_addrmap_cleanup): Remove.
5674 2017-10-08 Tom Tromey <tom@tromey.com>
5676 * frame-unwind.c (frame_unwind_try_unwinder): Update.
5677 * frame.h (frame_cleanup_after_sniffer): Declare.
5678 (frame_prepare_for_sniffer): Return void.
5679 * frame.c (frame_cleanup_after_sniffer): No longer static. Change
5681 (frame_prepare_for_sniffer): Return void.
5683 2017-10-08 Tom Tromey <tom@tromey.com>
5685 * utils.h (make_cleanup_value_free): Remove.
5686 * utils.c (do_value_free, struct cleanup): Remove.
5687 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>:
5689 * value.h (struct value_deleter): New.
5690 (gdb_value_up): New typedef.
5692 2017-10-08 Tom Tromey <tom@tromey.com>
5694 * symtab.c (free_search_symbols, do_free_search_symbols_cleanup)
5695 (make_cleanup_free_search_symbols): Remove.
5696 (search_symbols): Return std::vector.
5697 (symbol_search::compare_search_syms): Now member of
5698 symbol_search. Change arguments.
5699 (sort_search_symbols_remove_dups): Change arguments. Rewrite.
5700 (symtab_symbol_info, rbreak_command): Update.
5701 * symtab.h (struct symbol_search) <next>: Remove.
5703 (symbol_search::operator<): New function.
5704 (symbol_search::operator==): New function.
5705 (search_symbols): Remove std::vector.
5706 (free_search_symbols, make_cleanup_free_search_symbols): Remove.
5707 (symbol_search::compare_search_syms): Declare.
5709 2017-10-06 Yao Qi <yao.qi@linaro.org>
5711 * Makefile.in (ALL_64_TARGET_OBS): Replace aarch64-insn.o with
5712 arch/aarch64-insn.o.
5714 * configure.tgt: Replace aarch64-insn.o with arch/aarch64-insn.o.
5716 2017-10-06 Yao Qi <yao.qi@linaro.org>
5718 * Makefile.in (ALL_TARGET_OBS): Replace arm.o, arm-get-next-pcs.o,
5719 and arm-linux.o with arch/arm.o, arch/arm-get-next-pcs.o and
5720 arch/arm-linux.o respectively.
5721 * configure.tgt: Likewise.
5723 2017-10-06 Yao Qi <yao.qi@linaro.org>
5725 * Makefile.in (ALL_TARGET_OBS): Rename i386.o to arch/i386.o.
5726 * configure.tgt (i386_tobjs): Replace i386.o with arch/i386.o.
5728 2017-10-06 Pedro Alves <palves@redhat.com>
5730 * windows-nat.c: Include <algorithm>.
5732 2017-10-06 Yao Qi <yao.qi@linaro.org>
5734 * configure.tgt (i386_tobjs): New variable.
5735 (amd64_tobjs): New variable.
5736 Set $cpu_obs and $os_obs.
5738 2017-10-06 Yao Qi <yao.qi@linaro.org>
5740 * Makefile.in (CONFIG_SRC_SUBDIR): New.
5741 (ALL_64_TARGET_OBS): Replace amd64.o with arch/amd64.o.
5742 (clean): Remove object files and dependency files.
5743 (distclean): Remove the directory.
5744 * configure.ac: Invoke AC_CONFIG_COMMANDS.
5745 * configure: Re-generated.
5746 * configure.tgt: Replace amd64.o with arch/amd64.o.
5748 2017-10-05 Jose E. Marchesi <jose.marchesi@oracle.com>
5751 * arm-tdep.c (arm_decode_misc_memhint_neon): Fix decoding of CPS
5754 2017-10-05 Pedro Alves <palves@redhat.com>
5756 * linux-nat.c (linux_child_follow_fork): When following the parent
5757 and detaching the child, consult the parent thread's architecture
5758 instead of the child's.
5760 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
5762 * ax.h: Do not include "doublest.h".
5763 (union agent_val): Remove.
5765 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
5767 * dfp.h (MAX_DECIMAL_STRING): Move to dfp.c.
5768 (decimal_to_string): Return std::string object.
5769 (decimal_from_string): Accept std::string object. Return bool.
5770 (decimal_from_integral, decimal_from_doublest): Remove.
5771 (decimal_from_longest): Add prototype.
5772 (decimal_from_ulongest): Likewise.
5773 (decimal_to_longest): Likewise.
5774 (decimal_from_doublest): Likewise.
5775 * dfp.c: Do not include "gdbtypes.h" or "value.h".
5776 (MAX_DECIMAL_STRING): Move here.
5777 (decimal_to_string): Return std::string object.
5778 (decimal_from_string): Accept std::string object. Return bool.
5779 (decimal_from_integral): Remove, replace by ...
5780 (decimal_from_longest, decimal_from_ulongest): ... these new functions.
5781 (decimal_to_longest): New function.
5782 (decimal_from_floating): Remove, replace by ...
5783 (decimal_from_doublest): ... this new function.
5784 (decimal_to_doublest): Update to new decimal_to_string interface.
5786 * value.c (unpack_long): Use decimal_to_longest.
5787 * valops.c (value_cast): Use decimal_from_doublest instead of
5788 decimal_from_floating. Use decimal_from_[u]longest isntead of
5789 decimal_from_integral.
5790 * valarith.c (value_args_as_decimal): Likewise.
5791 * valprint.c (print_decimal_floating): Update to new
5792 decimal_to_string interface.
5793 * printcmd.c (printf_decfloat): Likewise.
5794 * c-exp.y (parse_number): Update to new decimal_from_string interface.
5796 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
5798 * doublest.h: Do not include "floatformat.h". Remove stale comments.
5799 * gdbtypes.c: Include "floatformat.h".
5800 * value.c: Likewise.
5801 * m68k-tdep.c: Likewise.
5803 * findvar.c: Do not include "floatformat.h".
5804 * amd64-darwin-tdep.c: Likewise.
5805 * arm-linux-tdep.c: Likewise.
5806 * i386-darwin-tdep.c: Likewise.
5807 * i387-tdep.c: Likewise.
5808 * m68k-linux-tdep.c: Likewise.
5809 * mep-tdep.c: Likewise.
5810 * mips-tdep.c: Likewise.
5811 * nios2-tdep.c: Likewise.
5812 * s390-linux-tdep.c: Likewise.
5813 * sparc-obsd-tdep.c: Likewise.
5814 * sparc-tdep.c: Likewise.
5815 * sparc64-tdep.c: Likewise.
5816 * spu-tdep.c: Likewise.
5817 * tic6x-tdep.c: Likewise.
5818 * tilegx-tdep.c: Likewise.
5819 * vax-tdep.c: Likewise.
5820 * xstormy16-tdep.c: Likewise.
5821 * xtensa-tdep.c: Likewise.
5823 * top.c: Do not include "doublest.h".
5824 * aarch64-tdep.c: Likewise.
5825 * alpha-tdep.c: Likewise.
5826 * arm-linux-tdep.c: Likewise.
5827 * m68k-linux-tdep.c: Likewise.
5828 * tilegx-tdep.c: Likewise.
5829 * xstormy16-tdep.c: Likewise.
5831 2017-10-05 John Baldwin <jhb@FreeBSD.org>
5833 * mips-fbsd-tdep.c (MIPS_INST_ADDIU_A0_SP_N32): Define.
5834 (mipsn32_fbsd_sigframe): Define.
5835 (mips_fbsd_init_abi): Install mipsn32_fbsd_sigframe unwinder
5836 for FreeBSD/mipsn32.
5838 2017-10-05 John Baldwin <jhb@FreeBSD.org>
5840 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_EHDRFLAGS and
5843 2017-10-05 Tristan Gingold <tgingold@free.fr>
5845 * MAINTAINERS (Misc): Update my email address.
5847 2017-10-04 Pedro Alves <palves@redhat.com>
5849 * remote.c (get_remote_arch_state): New 'gdbarch' parameter. Use
5850 it instead of target_gdbarch.
5851 (get_remote_state, get_remote_packet_size): Adjust
5852 get_remote_arch_state calls, passing down target_gdbarch
5854 (packet_reg_from_regnum, packet_reg_from_pnum): New parameter
5855 'gdbarch' and use it instead of target_gdbarch.
5856 (get_memory_packet_size): Adjust get_remote_arch_state calls,
5857 passing down target_gdbarch explicitly.
5858 (struct stop_reply) <arch>: New field.
5859 (remote_parse_stop_reply): Use the stopped thread's architecture,
5860 not the current inferior's. Save the architecture in the
5862 (process_stop_reply): Use the stop reply's architecture.
5863 (process_g_packet, remote_fetch_registers)
5864 (remote_prepare_to_store, store_registers_using_G)
5865 (remote_store_registers): Adjust get_remote_arch_state calls,
5866 using the regcache's architecture.
5867 (remote_get_trace_status): Adjust get_remote_arch_state calls,
5868 passing down target_gdbarch explicitly.
5869 * spu-multiarch.c (spu_thread_architecture): Defer to the target
5870 beneath instead of calling target_gdbarch.
5871 * target.c (default_thread_architecture): Use the specified
5872 inferior's architecture, instead of the current inferior's
5873 architecture (via target_gdbarch).
5875 2017-10-04 Pedro Alves <palves@redhat.com>
5877 * regcache.c (get_thread_arch_regcache): Remove null_ptid special
5879 (regcache_print): Handle !target_has_registers here instead.
5881 2017-10-04 Pedro Alves <palves@redhat.com>
5883 * frame.c (create_test_frame): Delete.
5884 * frame.h (create_test_frame): Delete.
5885 * gdbarch-selftests.c: Include gdbthread.h and target.h.
5886 (class regcache_test): Delete.
5887 (test_target_has_registers, test_target_has_stack)
5888 (test_target_has_memory, test_target_prepare_to_store)
5889 (test_target_store_registers): New functions.
5890 (test_target_ops): New class.
5891 (register_to_value_test): Error out if there's already a
5892 process_stratum (or higher) target pushed. Create a fuller mock
5893 environment, with mock target_ops, inferior, address space, thread
5895 * progspace.c (struct address_space): Move to ...
5896 * progspace.h (struct address_space): ... here.
5897 * regcache.h (regcache::~regcache, regcache::raw_write)
5898 [GDB_SELF_TEST]: No longer virtual.
5900 2017-10-04 Simon Marchi <simon.marchi@ericsson.com>
5902 * mi/mi-main.c (list_available_thread_groups): Reverse filter logic.
5904 2017-10-04 Pedro Alves <palves@redhat.com>
5906 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Move code
5907 out of 'between TRY and CATCH'.
5909 2017-10-04 Pedro Alves <palves@redhat.com>
5911 * cli/cli-cmds.c (complete_command): Add missing END_CATCH.
5912 * common/common-exceptions.h (TRY): Open an outermost scope.
5913 Expand intro comment.
5915 (END_CATCH): Close the outermost scope.
5916 * completer.c (complete_line_internal): Add missing END_CATCH.
5918 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
5920 * NEWS (Changes since GDB 8.0): Add entry about new
5921 'set-cwd-on-gdbserver' feature.
5922 (New remote packets): Add entry for QSetWorkingDir.
5923 * common/common-inferior.h (set_inferior_cwd): New prototype.
5924 * infcmd.c (set_inferior_cwd): Remove "static".
5925 (show_cwd_command): Expand text to include remote debugging.
5926 * remote.c: Add PACKET_QSetWorkingDir.
5927 (remote_protocol_features) <QSetWorkingDir>: New entry for
5928 PACKET_QSetWorkingDir.
5929 (extended_remote_set_inferior_cwd): New function.
5930 (extended_remote_create_inferior): Call
5931 "extended_remote_set_inferior_cwd".
5932 (_initialize_remote): Call "add_packet_config_cmd" for
5935 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
5937 * NEWS (New commands): Mention "set/show cwd".
5938 * cli/cli-cmds.c (_initialize_cli_cmds): Mention "set cwd" on
5939 "cd" command's help text.
5940 * common/common-inferior.h (get_inferior_cwd): New prototype.
5941 * infcmd.c (inferior_cwd_scratch): New global variable.
5942 (set_inferior_cwd): New function.
5943 (get_inferior_cwd): Likewise.
5944 (set_cwd_command): Likewise.
5945 (show_cwd_command): Likewise.
5946 (_initialize_infcmd): Add "set/show cwd" commands.
5947 * inferior.h (class inferior) <cwd>: New field.
5948 * nat/fork-inferior.c: Include "gdb_tilde_expand.h".
5949 (fork_inferior): Change inferior's cwd before its execution.
5950 * windows-nat.c (windows_create_inferior): Pass inferior's cwd
5953 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
5955 * Makefile.in (SFILES): Add gdb_tilde_expand.c.
5956 (HFILES_NO_SRCDIR): Add gdb_tilde_expand.h.
5957 (COMMON_OBS): Add gdb_tilde_expand.o.
5958 * common/gdb_tilde_expand.c: New file.
5959 * common/gdb_tilde_expand.h: Likewise.
5961 2017-10-03 Maciej W. Rozycki <macro@imgtec.com>
5963 * gdbarch.sh (objfile): Remove duplicate declaration.
5964 * gdbarch.h: Regenerate.
5966 2017-10-03 Tom Tromey <tom@tromey.com>
5968 * utils.c (internal_vproblem): Use string_vprintf.
5970 2017-10-03 Tom Tromey <tom@tromey.com>
5972 * printcmd.c (info_symbol_command): Use std::string.
5974 2017-10-03 Tom Tromey <tom@tromey.com>
5976 * top.c (gdb_safe_append_history): Use std::string.
5978 2017-10-03 Tom Tromey <tom@tromey.com>
5980 * event-top.c (stdin_event_handler): Update.
5981 * main.c (captured_main_1): Update.
5982 * top.h (make_delete_ui_cleanup): Remove.
5983 (struct ui): Add constructor and destructor.
5984 (new_ui, delete_ui): Remove.
5985 * top.c (make_delete_ui_cleanup): Remove.
5986 (new_ui_command): Use std::unique_ptr.
5987 (delete_ui_cleanup): Remove.
5988 (ui::ui): Rename from new_ui. Update.
5990 (ui::~ui): Rename from delete_ui. Update.
5992 2017-10-03 Tom Tromey <tom@tromey.com>
5994 * symfile.c (load_progress): Use gdb::byte_vector.
5996 2017-10-03 Tom Tromey <tom@tromey.com>
5998 * mi/mi-main.c (mi_cmd_trace_frame_collected): Remove unused
6000 * printcmd.c (x_command): Remove unused declaration.
6001 * symfile.c (symbol_file_command): Remove unused declaration.
6003 2017-10-03 Tom Tromey <tom@tromey.com>
6005 * utils.c (internal_vproblem): Use std::string.
6006 (defaulted_query): Likewise.
6008 2017-10-03 Tom Tromey <tom@tromey.com>
6010 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Update.
6011 * top.c (execute_command_to_string): Update.
6012 * utils.c (make_cleanup_restore_page_info): Remove.
6013 (do_restore_page_info_cleanup): Remove.
6014 (set_batch_flag_and_restore_page_info):
6016 (make_cleanup_restore_page_info): Remove.
6017 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
6018 (~set_batch_flag_and_restore_page_info): New
6019 (make_cleanup_restore_uinteger): Remove.
6020 (make_cleanup_restore_integer): Remove.
6021 (struct restore_integer_closure): Remove.
6022 (restore_integer): Remove.
6023 * utils.h (struct set_batch_flag_and_restore_page_info): New
6025 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
6026 (make_cleanup_restore_page_info): Remove.
6027 (make_cleanup_restore_uinteger) Remove.
6028 (make_cleanup_restore_integer) Remove.
6030 2017-10-03 Tom Tromey <tom@tromey.com>
6032 * record-full.h (record_full_gdb_operation_disable_set): Return
6033 scoped_restore_tmpl<int>.
6034 * infrun.c (adjust_pc_after_break): Update.
6035 (handle_signal_stop): Update.
6036 * record-full.c (record_full_gdb_operation_disable_set): Return
6037 scoped_restore_tmpl<int>.
6038 (record_full_wait_1, record_full_insert_breakpoint)
6039 (record_full_remove_breakpoint, record_full_save)
6040 (record_full_goto_insn): Update.
6042 2017-10-02 Tom Tromey <tom@tromey.com>
6045 * rust-lang.c (rust_val_print_str): New function.
6046 (val_print_struct): Call it.
6047 (rust_subscript): Preserve name of slice type.
6049 2017-10-02 Tom Tromey <tom@tromey.com>
6051 * rust-lang.c (rust_subscript): Handle slices in
6052 EVAL_AVOID_SIDE_EFFECTS case.
6054 2017-10-02 Tom Tromey <tom@tromey.com>
6056 * rust-lang.c (rust_slice_type_p): Recognize &str as a slice type.
6058 2017-10-02 Tom Tromey <tom@tromey.com>
6060 * rust-lang.h (rust_slice_type): Add "extern".
6062 2017-10-02 Tom Tromey <tom@tromey.com>
6063 Pedro Alves <palves@redhat.com>
6065 * ada-lang.h (ada_exc_info::operator<): Make const.
6066 (ada_exc_info::operator==): Make const.
6067 * ada-lang.c (ada_exc_info::operator<, ada_exc_info::operator==):
6070 2017-09-29 Tom Tromey <tom@tromey.com>
6072 * target.c (read_whatever_is_readable): Change type of "result".
6074 (free_memory_read_result_vector): Remove.
6075 (read_memory_robust): Change return type. Update.
6076 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update. Use
6077 bin2hex, std::string.
6078 * target.h (memory_read_result_s): Remove typedef.
6079 (free_memory_read_result_vector): Remove.
6080 (read_memory_robust): Return std::vector.
6082 2017-09-29 Tom Tromey <tom@tromey.com>
6084 * mi/mi-main.c (captured_mi_execute_command): Use scope_restore.
6086 2017-09-29 Tom Tromey <tom@tromey.com>
6088 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Update.
6089 * ada-lang.h (struct ada_exc_info): Remove typedef. Declare
6090 operator< and operator==.
6091 (ada_exceptions_list): Return a std::vector.
6092 * ada-lang.c (ada_exc_info::operator<): Rename from
6093 compare_ada_exception_info.
6094 (ada_exc_info::operator==): New.
6095 (sort_remove_dups_ada_exceptions_list): Change type of
6097 (ada_add_standard_exceptions, ada_add_exceptions_from_frame)
6098 (ada_add_global_exceptions): Likewise.
6099 (ada_exceptions_list_1): Return a std::vector.
6100 (ada_exceptions_list): Likewise.
6102 2017-09-29 Tom Tromey <tom@tromey.com>
6104 * mi/mi-main.c (struct print_one_inferior_data) <inferiors>: Now a
6106 (print_one_inferior): Update.
6107 (free_vector_of_ints): Remove.
6108 (list_available_thread_groups): Change "ids" to std::set.
6109 (mi_cmd_list_thread_groups): Update.
6110 (struct collect_cores_data) <core>: Now a std::set.
6111 (collect_cores): Update.
6113 (print_one_inferior): Update.
6115 2017-09-29 Tom Tromey <tom@tromey.com>
6117 * mi/mi-main.c (mi_execute_cli_command): Use std::string.
6118 (mi_execute_async_cli_command): Likewise.
6119 (mi_cmd_trace_frame_collected): Use field_fmt.
6121 2017-09-29 Tom Tromey <tom@tromey.com>
6123 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Use
6126 2017-09-29 Tom Tromey <tom@tromey.com>
6128 * mi/mi-parse.c (mi_parse): Remove unused declaration.
6130 2017-09-29 Tom Tromey <tom@tromey.com>
6132 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Don't copy "oarg".
6134 2017-09-29 Tom Tromey <tom@tromey.com>
6136 * varobj.h (varobj_gen_name): Return std::string.
6137 * varobj.c (varobj_gen_name): Return std::string.
6138 * mi/mi-cmd-var.c (mi_cmd_var_create): Use std::string.
6139 (mi_cmd_var_delete): Don't copy "name".
6141 2017-09-29 Tom Tromey <tom@tromey.com>
6143 * mi/mi-cmd-break.c (mi_argv_to_format): Return std::string.
6144 (mi_cmd_break_insert_1): Update.
6146 2017-09-29 Tom Tromey <tom@tromey.com>
6148 * target.h (make_scoped_defer_target_commit_resume): Update.
6149 * target.c (make_scoped_defer_target_commit_resume): Rename from
6150 make_cleanup_defer_target_commit_resume. Return a
6152 * infrun.c (proceed): Use make_scoped_defer_target_commit_resume.
6154 2017-09-29 Tom Tromey <tom@tromey.com>
6156 * main.c (captured_main_1): Remove unused declaration.
6157 * spu-multiarch.c (parse_spufs_run): Remove unused declaration.
6159 2017-09-29 Tom Tromey <tom@tromey.com>
6161 * symtab.c (search_symbols): Remove unused outer cleanup.
6162 (make_source_files_completion_list): Remove unused declaration.
6164 2017-09-29 Tom Tromey <tom@tromey.com>
6166 * mt-tdep.c (mt_push_dummy_call): Use gdb::byte_vector.
6168 2017-09-29 Tom Tromey <tom@tromey.com>
6170 * xstormy16-tdep.c (xstormy16_push_dummy_call): Use
6173 2017-09-29 Tom Tromey <tom@tromey.com>
6175 * complaints.c (vcomplaint): Use std::string.
6177 2017-09-29 Tom Tromey <tom@tromey.com>
6179 * tracepoint.c (trace_variable_command): Use std::string.
6180 (encode_actions_1): Remove unused declarations.
6181 (create_tsv_from_upload): Use std::string.
6183 2017-09-29 Tom Tromey <tom@tromey.com>
6185 * cp-support.c (gdb_demangle): Use std::string.
6187 2017-09-29 Tom Tromey <tom@tromey.com>
6189 * stack.c (parse_frame_specification): Use std::string
6190 (info_frame_command): Use gdb::unique_xmalloc_ptr.
6192 2017-09-29 Tom Tromey <tom@tromey.com>
6194 * tilegx-tdep.c (tilegx_push_dummy_call): Use gdb::byte_vector.
6196 2017-09-29 Tom Tromey <tom@tromey.com>
6198 * utils.c (vfprintf_maybe_filtered): Use std::string.
6199 (vfprintf_unfiltered): Likewise.
6201 2017-09-29 Tom Tromey <tom@tromey.com>
6203 * event-top.c (top_level_prompt): Return std::string.
6204 (display_gdb_prompt): Update.
6206 2017-09-29 Tom Tromey <tom@tromey.com>
6208 * unittests/common-utils-selftests.c (format): New function.
6209 (string_vprintf_tests): New function.
6210 (_initialize_common_utils_selftests): Register new tests.
6211 * common/common-utils.c (string_vprintf): New function.
6212 * common/common-utils.h (string_vprintf): Declare.
6214 2017-09-29 Pedro Alves <palves@redhat.com>
6216 * common/rsp-low.c (unpack_varlen_hex): Constify.
6217 * common/rsp-low.h (unpack_varlen_hex): Constify.
6218 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
6220 * remote.c (remote_set_permissions, read_ptid)
6221 (remote_current_thread, remote_get_threads_with_qthreadinfo)
6222 (remote_static_tracepoint_marker_at)
6223 (remote_static_tracepoint_markers_by_strid)
6224 (stop_reply_extract_thread, remote_parse_stop_reply): Constify.
6225 * tracepoint.c (parse_trace_status, parse_tracepoint_status)
6226 (parse_tracepoint_definition, parse_tsv_definition)
6227 (parse_static_tracepoint_marker_definition): Constify.
6228 * tracepoint.h (parse_static_tracepoint_marker_definition)
6229 (parse_trace_status, parse_tracepoint_status)
6230 (parse_tracepoint_definition, parse_tsv_definition): Constify.
6232 2017-09-29 Pedro Alves <palves@redhat.com>
6234 * remote.c (target_buf, target_buf_size): Delete.
6235 (remote_get_noisy_reply): Remove buf_p and sizeof_buf parameters.
6236 Use the connection's packet buffer instead.
6237 All callers adjusted.
6238 (_initialize_remote): Remove references to target_buf and
6241 2017-09-28 Pedro Alves <palves@redhat.com>
6243 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
6244 unittests/common-utils-selftests.c.
6245 (SUBDIR_UNITTESTS_OBS): Add common-utils-selftests.o.
6246 (COMMON_OBS): Remove utils-selftests.o.
6247 * utils-selftests.c: Move to ...
6248 * unittests/common-utils-selftests.c: ... here and rename self
6249 test to "string_printf".
6251 2017-09-28 Alexander Shaposhnikov <alexander.v.shaposhnikov@gmail.com> (tiny patch)
6253 * dwarf2read.c (open_and_init_dwp_file): Protect against dwp_file
6254 having NULL cus or tus.
6256 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
6258 * arm-tdep.c: (convert_from_extended): Remove.
6259 (convert_to_extended): Likewise.
6260 (arm_extract_return_value): Use convert_typed_floating.
6261 (arm_store_return_value): Likewise.
6263 * sh-tdep.h (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
6264 * sh-tdep.c: Do not include "floatformat.h".
6265 (sh_littlebyte_bigword_type): New function.
6266 (sh_register_convert_to_virtual): Use convert_typed_floating.
6267 (sh_register_convert_to_raw): Likewise.
6268 * sh64-tdep.c: (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
6269 (sh64_littlebyte_bigword_type): New function.
6270 (sh64_extract_return_value): Use convert_typed_floating.
6271 (sh64_register_convert_to_virtual): Likewise.
6272 (sh64_register_convert_to_raw): Likewise.
6274 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
6276 * doublest.h (floatformat_from_type): Move to gdbtypes.h.
6277 * doublest.c (floatformat_from_type): Move to gdbtypes.c.
6279 * gdbtypes.h (union type_specific): Make field floatformat hold
6280 just a single struct floatformat, not an array.
6281 (floatformat_from_type): Move here.
6282 * gdbtypes.c (floatformat_from_type): Move here. Update to
6283 changed TYPE_FLOATFORMAT definition.
6284 (verify_floatformat): Update to changed TYPE_FLOATFORMAT.
6285 (recursive_dump_type): Likewise.
6286 (init_float_type): Install correct floatformat for byte order.
6287 (arch_float_type): Likewise.
6289 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
6291 * gdbtypes.c (init_type): Change incoming argument from
6292 length-in-bytes to length-in-bits. Assert length is a
6293 multiple of TARGET_CHAR_BITS.
6294 (arch_type, arch_flags_type): Likewise.
6295 (init_integer_type): Update call to init_type.
6296 (init_character_type): Likewise.
6297 (init_boolean_type): Likewise.
6298 (init_float_type): Likewise.
6299 (init_decfloat_type): Likewise.
6300 (init_complex_type): Likewise.
6301 (init_pointer_type): Likewise.
6302 (objfile_type): Likewise.
6303 (arch_integer_type): Update call to arch_type.
6304 (arch_character_type): Likewise.
6305 (arch_boolean_type): Likewise.
6306 (arch_float_type): Likewise.
6307 (arch_decfloat_type): Likewise.
6308 (arch_complex_type): Likewise.
6309 (arch_pointer_type): Likewise.
6310 (gdbtypes_post_init): Likewise.
6312 * dwarf2read.c (dwarf2_init_float_type): Update call to init_type.
6313 (read_base_type): Likewise.
6314 * mdebugread.c (basic_type): Likewise.
6315 * stabsread.c (dbx_init_float_type): Likewise.
6316 (rs6000_builtin_type): Likewise.
6317 (read_range_type): Likewise. Also, fix call to init_integer_type
6318 with erroneous length argument.
6320 * ada-lang.c (ada_language_arch_info): Update call to arch_type.
6321 * d-lang.c (build_d_types): Likewise.
6322 * f-lang.c (build_fortran_types): Likewise.
6323 * go-lang.c (build_go_types): Likewise.
6324 * opencl-lang.c (build_opencl_types): Likewise.
6325 * jit.c (finalize_symtab): Likewise.
6326 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
6327 (build_std_type_info_type): Likewise.
6328 * target-descriptions.c (tdesc_gdb_type): Likewise. Also,
6329 update call to arch_flags_type.
6331 * linux-tdep.c (linux_get_siginfo_type_with_fields): Update call to
6333 * fbsd-tdep.c (fbsd_get_siginfo_type): Likewise.
6334 * windows-tdep.c (windows_get_tlb_type): Likewise.
6336 * avr-tdep.c (avr_gdbarch_init): Update call to arch_type.
6337 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
6338 * m32c-tdep.c (make_types): Likewise.
6339 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
6340 (rl78_psw_type): Update call to arch_flags_type.
6341 * m68k-tdep.c (m68k_ps_type): Update call to arch_flags_type.
6342 * rx-tdep.c (rx_psw_type): Likewise.
6343 (rx_fpsw_type): Likewise.
6344 * sparc-tdep.c (sparc_psr_type): Likewise.
6345 (sparc_fsr_type): Likewise.
6346 * sparc64-tdep.c (sparc64_pstate_type): Likewise.
6347 (sparc64_ccr_type): Likewise.
6348 (sparc64_fsr_type): Likewise.
6349 (sparc64_fprs_type): Likewise.
6351 2017-09-27 Tom Tromey <tom@tromey.com>
6353 * findcmd.c (find_command): Constify.
6355 2017-09-27 Tom Tromey <tom@tromey.com>
6357 * ada-tasks.c (task_command_1, task_command): Constify.
6359 2017-09-27 Tom Tromey <tom@tromey.com>
6361 * symtab.c (maintenance_print_symbol_cache)
6362 (maintenance_flush_symbol_cache)
6363 (maintenance_print_symbol_cache_statistics): Constify.
6365 2017-09-27 Tom Tromey <tom@tromey.com>
6367 * inferior.c (detach_inferior_command, kill_inferior_command)
6368 (inferior_command): Constify.
6370 2017-09-27 Tom Tromey <tom@tromey.com>
6372 * regcache.c (regcache_print, maintenance_print_registers)
6373 (maintenance_print_raw_registers)
6374 (maintenance_print_cooked_registers)
6375 (maintenance_print_register_groups)
6376 (maintenance_print_remote_registers): Constify.
6378 2017-09-27 Tom Tromey <tom@tromey.com>
6380 * printcmd.c (map_display_numbers, undisplay_command)
6381 (enable_disable_display_command, enable_display_command)
6382 (disable_display_command): Constify.
6384 2017-09-27 Tom Tromey <tom@tromey.com>
6386 * breakpoint.h (delete_command): Don't declare.
6387 * breakpoint.c (delete_command, enable_once_command)
6388 (enable_count_command, enable_delete_command, breakpoint_1)
6389 (maintenance_info_breakpoints, stopin_command, stopat_command)
6390 (delete_command, delete_trace_command, save_breakpoints)
6391 (save_breakpoints_command, save_tracepoints_command): Constify.
6393 2017-09-27 Tom Tromey <tom@tromey.com>
6395 * macrocmd.c (macro_expand_command, macro_expand_once_command)
6396 (skip_ws, extract_identifier, macro_define_command)
6397 (macro_undef_command, macro_list_command): Constify.
6399 2017-09-27 Tom Tromey <tom@tromey.com>
6401 * infcmd.c (environment_info, set_environment_command)
6402 (unset_environment_command, path_info, info_proc_cmd_1)
6403 (info_proc_cmd_mappings, info_proc_cmd_stat)
6404 (info_proc_cmd_status, info_proc_cmd_cwd, info_proc_cmd_cmdline)
6405 (info_proc_cmd_exe, info_proc_cmd_all): Constify.
6407 2017-09-27 Tom Tromey <tom@tromey.com>
6409 * i386-tdep.c (i386_mpx_info_bounds, i386_mpx_set_bounds):
6412 2017-09-27 Tom Tromey <tom@tromey.com>
6414 * symfile-mem.c (add_symbol_file_from_memory_command): Constify.
6416 2017-09-27 Tom Tromey <tom@tromey.com>
6418 * demangle.c (demangle_command): Constify.
6420 2017-09-27 Tom Tromey <tom@tromey.com>
6422 * progspace.c (maintenance_info_program_spaces_command):
6425 2017-09-27 Tom Tromey <tom@tromey.com>
6427 * compile/compile.c (check_raw_argument, compile_file_command)
6428 (compile_code_command, compile_print_command): Constify.
6430 2017-09-27 Tom Tromey <tom@tromey.com>
6432 * reggroups.c (maintenance_print_reggroups): Constify.
6434 2017-09-27 Tom Tromey <tom@tromey.com>
6436 * dwarf2read.c (save_gdb_index_command): Constify.
6438 2017-09-27 Tom Tromey <tom@tromey.com>
6440 * stap-probe.c (info_probes_stap_command): Constify.
6442 2017-09-27 Tom Tromey <tom@tromey.com>
6444 * fork-child.c (unset_exec_wrapper_command): Constify.
6446 2017-09-27 Tom Tromey <tom@tromey.com>
6448 * btrace.c (get_uint, get_context_size, no_chunk)
6449 (maint_btrace_packet_history_cmd)
6450 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
6451 (maint_info_btrace_cmd): Constify.
6453 2017-09-27 Tom Tromey <tom@tromey.com>
6455 * reverse.c (delete_bookmark_command): Constify.
6457 2017-09-27 Tom Tromey <tom@tromey.com>
6459 * remote.c (set_memory_packet_size)
6460 (set_memory_write_packet_size, show_memory_write_packet_size)
6461 (set_memory_read_packet_size, show_memory_read_packet_size)
6462 (compare_sections_command, packet_command, remote_put_command)
6463 (remote_get_command, remote_delete_command): Constify.
6465 2017-09-27 Tom Tromey <tom@tromey.com>
6467 * mips-tdep.c (show_mipsfpu_command, set_mipsfpu_single_command)
6468 (set_mipsfpu_double_command, set_mipsfpu_none_command)
6469 (set_mipsfpu_auto_command): Constify.
6471 2017-09-27 Tom Tromey <tom@tromey.com>
6473 * cli/cli-cmds.h (cd_command): Constify.
6474 * cli/cli-cmds.c (cd_command): Constify.
6476 2017-09-27 Tom Tromey <tom@tromey.com>
6478 * thread.c (thread_name_command, thread_find_command): Constify.
6480 2017-09-27 Tom Tromey <tom@tromey.com>
6482 * probe.c (enable_probes_command, disable_probes_command):
6485 2017-09-27 Tom Tromey <tom@tromey.com>
6487 * symfile.c (symbol_file_command): Constify.
6488 * gdbcore.h (deprecated_file_changed_hook): Constify.
6489 * exec.c (deprecated_file_changed_hook, exec_file_command)
6490 (file_command): Constify.
6491 * defs.h (symbol_file_command): Constify.
6493 2017-09-27 Tom Tromey <tom@tromey.com>
6495 * remote-fileio.c (set_system_call_allowed)
6496 (show_system_call_allowed): Constify.
6498 2017-09-27 Tom Tromey <tom@tromey.com>
6500 * tracepoint.c (delete_trace_variable_command)
6501 (tfind_end_command, tfind_start_command, tfind_pc_command)
6502 (tfind_tracepoint_command, tfind_line_command)
6503 (tfind_range_command, tfind_outside_command): Constify.
6505 2017-09-27 Tom Tromey <tom@tromey.com>
6507 * ax-gdb.c (maint_agent_printf_command, agent_command)
6508 (agent_eval_command): Constify.
6510 2017-09-27 Tom Tromey <tom@tromey.com>
6512 * tracepoint.c (info_scope_command): Constify.
6513 * python/python.c (gdbpy_decode_line): Constify.
6514 * python/py-breakpoint.c (bppy_init): Constify.
6515 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Constify.
6516 * location.h: (new_linespec_location)
6517 (string_to_event_location_basic, string_to_event_location):
6519 * location.c (new_linespec_location)
6520 (string_to_event_location_basic, string_to_event_location):
6522 * linespec.h (decode_line_with_current_source)
6523 (decode_line_with_last_displayed, linespec_lex_to_end): Constify.
6524 * linespec.c (linespec_lex_to_end)
6525 (decode_line_with_current_source)
6526 (decode_line_with_last_displayed): Constify.
6527 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x):
6529 * cli/cli-cmds.c (edit_command, list_command): Constify.
6530 * breakpoint.h (until_break_command, watch_command_wrapper)
6531 (awatch_command_wrapper, rwatch_command_wrapper)
6532 (init_ada_exception_breakpoint): Constify.
6533 * breakpoint.c (break_command_1, dprintf_command)
6534 (break_range_command, watch_command_wrapper)
6535 (rwatch_command_wrapper, awatch_command_wrapper)
6536 (until_break_command, init_ada_exception_breakpoint)
6537 (strace_marker_create_sals_from_location, trace_command)
6538 (ftrace_command, strace_command, struct tracepoint): Constify.
6539 * ax-gdb.c (agent_command_1): Constify.
6540 * ada-lang.c (ada_exception_sal): Constify.
6542 2017-09-27 Tom Tromey <tom@tromey.com>
6544 * record.c (cmd_record_delete, cmd_record_stop, cmd_record_save)
6545 (cmd_record_goto_begin, cmd_record_goto_end, get_insn_number)
6546 (get_context_size, no_chunk, get_insn_history_modifiers)
6547 (cmd_record_insn_history, get_call_history_modifiers)
6548 (cmd_record_call_history): Constify.
6550 2017-09-27 Tom Tromey <tom@tromey.com>
6552 * source.c (show_substitute_path_command)
6553 (unset_substitute_path_command, set_substitute_path_command):
6556 2017-09-27 Tom Tromey <tom@tromey.com>
6558 * typeprint.c (maintenance_print_type): Constify.
6559 * maint.c (maintenance_dump_me, maintenance_demangle)
6560 (maintenance_time_display, maintenance_info_sections)
6561 (maintenance_print_statistics, maintenance_deprecate)
6562 (maintenance_undeprecate): Constify.
6563 (maintenance_do_deprecate): Constify. Use std::string.
6564 (maintenance_selftest): Constify.
6565 * gdbtypes.h (maintenance_print_type): Constify.
6567 2017-09-27 Tom Tromey <tom@tromey.com>
6569 * hppa-tdep.c (unwind_command): Constify.
6571 2017-09-27 Tom Tromey <tom@tromey.com>
6573 * target-descriptions.c (unset_tdesc_filename_cmd)
6574 (maint_print_c_tdesc_cmd, maintenance_check_xml_descriptions):
6577 2017-09-27 Tom Tromey <tom@tromey.com>
6579 * dummy-frame.c (maintenance_print_dummy_frames): Constify.
6581 2017-09-27 Tom Tromey <tom@tromey.com>
6583 * tui/tui.c (tui_enable_command, tui_disable_command): Constify.
6585 2017-09-27 Tom Tromey <tom@tromey.com>
6587 * tui/tui-regs.c (tui_reg_command): Constify.
6589 2017-09-27 Tom Tromey <tom@tromey.com>
6591 * skip.c (skip_file_command, skip_function_command)
6592 (skip_enable_command, skip_disable_command, skip_delete_command):
6595 2017-09-27 Tom Tromey <tom@tromey.com>
6597 * record-btrace.c (cmd_record_btrace_bts_start)
6598 (cmd_record_btrace_pt_start): Constify.
6600 2017-09-27 Tom Tromey <tom@tromey.com>
6602 * symmisc.c (maintenance_print_symbols)
6603 (maintenance_print_msymbols, maintenance_print_objfiles)
6604 (maintenance_info_symtabs, maintenance_check_symtabs)
6605 (maintenance_expand_symtabs, maintenance_info_line_tables):
6608 2017-09-27 Tom Tromey <tom@tromey.com>
6610 * top.c (new_ui_command): Constify.
6612 2017-09-27 Tom Tromey <tom@tromey.com>
6614 * symfile.c (add_symbol_file_command)
6615 (remove_symbol_file_command, list_overlays_command)
6616 (map_overlay_command, unmap_overlay_command)
6617 (overlay_auto_command, overlay_manual_command)
6618 (overlay_off_command, overlay_load_command): Constify.
6620 2017-09-27 Tom Tromey <tom@tromey.com>
6622 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
6623 (info_spu_mailbox_command, info_spu_dma_command)
6624 (info_spu_proxydma_command): Constify.
6626 2017-09-27 Tom Tromey <tom@tromey.com>
6628 * cli/cli-logging.c (set_logging_on, set_logging_off): Constify.
6630 2017-09-27 Tom Tromey <tom@tromey.com>
6632 * cli/cli-script.c (user_defined_command): Constify.
6634 2017-09-27 Tom Tromey <tom@tromey.com>
6636 * cli/cli-dump.c (dump_memory_command, dump_value_command)
6637 (dump_srec_memory, dump_srec_value, dump_ihex_memory)
6638 (dump_ihex_value, dump_verilog_memory, dump_verilog_value)
6639 (dump_tekhex_memory, dump_tekhex_value, dump_binary_memory)
6640 (dump_binary_value, append_binary_memory, append_binary_value):
6642 (struct dump_context) <func>: Constify.
6643 (add_dump_command): Update.
6645 2017-09-27 Tom Tromey <tom@tromey.com>
6647 * cli/cli-cmds.c (show_version, show_configuration)
6648 (source_command, show_user): Constify.
6650 2017-09-27 Tom Tromey <tom@tromey.com>
6652 * target.c (maintenance_print_target_stack): Constify.
6654 2017-09-27 Tom Tromey <tom@tromey.com>
6656 * interps.c (interpreter_exec_cmd): Constify.
6658 2017-09-27 Tom Tromey <tom@tromey.com>
6660 * record-full.c (cmd_record_full_restore): Constify.
6662 2017-09-27 Tom Tromey <tom@tromey.com>
6664 * memattr.c (enable_mem_command, disable_mem_command)
6665 (delete_mem_command): Constify.
6667 2017-09-27 Tom Tromey <tom@tromey.com>
6669 * value.c (show_convenience): Constify.
6671 2017-09-27 Tom Tromey <tom@tromey.com>
6673 * gdbcore.h (core_file_command): Update.
6674 * corefile.c (core_file_command): Constify.
6676 2017-09-27 Tom Tromey <tom@tromey.com>
6678 * user-regs.c (maintenance_print_user_registers): Constify.
6680 2017-09-27 Tom Tromey <tom@tromey.com>
6682 * cp-namespace.c (maintenance_cplus_namespace): Constify.
6684 2017-09-27 Tom Tromey <tom@tromey.com>
6686 * cp-support.c (first_component_command): Constify.
6688 2017-09-27 Tom Tromey <tom@tromey.com>
6690 * psymtab.c (maintenance_print_psymbols)
6691 (maintenance_info_psymtabs, maintenance_check_psymtabs):
6694 2017-09-27 Tom Tromey <tom@tromey.com>
6696 * windows-tdep.c (display_tib): Constify.
6698 2017-09-27 Tom Tromey <tom@tromey.com>
6700 * linux-fork.c (delete_checkpoint_command)
6701 (detach_checkpoint_command): Constify.
6703 2017-09-27 Tom Tromey <tom@tromey.com>
6705 * cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify.
6707 2017-09-27 Tom Tromey <tom@tromey.com>
6709 * arc-tdep.c (dump_arc_instruction_command): Constify.
6711 2017-09-27 Tom Tromey <tom@tromey.com>
6713 * valprint.c (set_radix, show_radix): Constify.
6715 2017-09-27 Tom Tromey <tom@tromey.com>
6717 * dtrace-probe.c (info_probes_dtrace_command): Constify.
6719 2017-09-27 Tom Tromey <tom@tromey.com>
6721 * command.h (not_just_help_class_command): Update.
6722 * cli/cli-decode.h (not_just_help_class_command): Update.
6723 * cli/cli-decode.c (not_just_help_class_command): Constify.
6725 2017-09-27 Tom Tromey <tom@tromey.com>
6727 * gdb_bfd.c (maintenance_info_bfds): Constify.
6729 2017-09-27 Tom Tromey <tom@tromey.com>
6731 * cli/cli-decode.c (add_cmd, set_cmd_cfunc): New function
6733 (do_add_cmd): Rename from add_cmd. Don't call set_cmd_cfunc.
6734 (do_const_cfunc): New function.
6735 (cmd_cfunc_eq): New overload.
6736 (cli_user_command_p): Check do_const_cfunc.
6737 * cli/cli-decode.h (struct cmd_list_element) <function>: New field
6739 * command.h (add_cmd): Add const overload and no-function
6741 (set_cmd_cfunc): Add const overload.
6742 (cmd_const_cfunc_ftype): Declare.
6743 (cmd_cfunc_eq): Add const overload.
6744 * breakpoint.c, cli-cmds.c, cli-dump.c, guile/scm-cmd.c,
6745 python/py-cmd.c, target.c, tracepoint.c: Use no-function add_cmd
6748 2017-09-27 Tom Tromey <tom@tromey.com>
6750 * macroexp.c (get_next_token_for_substitution): New function.
6751 (substitute_args): Call it. Check for __VA_OPT__.
6753 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
6754 Pedro Alves <palves@redhat.com>
6756 * dwarf2read.c (dwarf2_cu): Remove field producer_is_icc and add
6757 producer_is_icc_lt_14.
6758 (producer_is_icc_lt_14): New function.
6759 (check_producer): Add code for checking version of ICC.
6760 (producer_is_icc): Move to producer.c.
6761 (read_structure_type): Restrict ICC workaround to ICC<14.
6762 * producer.c: Include selftest.h.
6763 (producer_is_icc, producer_parsing_tests, _initialize_producer):
6765 * producer.h (producer_is_icc): New declaration.
6767 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
6769 * Makefile.in (SFILES): Add producer.c.
6770 (COMMON_OBS): Add producer.o
6771 * amd64-tdep.c (producer.h): Add new include.
6772 * dwarf2read.c (producer.h): Add new include.
6773 * producer.c: New file.
6774 * producer.h: New file.
6775 * utils.c (producer_is_gcc, producer_is_gcc_ge_4): Move to
6777 * utils.h (producer_is_gcc, producer_is_gcc_ge_4): Move to
6780 2017-09-26 Matthias Klose <doko@ubuntu.com>
6782 * configure.ac: Search ncursesw before ncurses.
6783 Check ncursesw/ncurses.h before ncurses/ncurses.h.
6784 * gdb_curses.h: Include <ncursesw/ncurses.h>
6785 * config.in, configure: Regenerate.
6787 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6790 * configure.host <*-*-solaris2.[01], *-*-solaris2.[2-9]*>: Mark as
6792 Use gdb_host sol2 for i[34567]86-*-solaris2*, x86_64-*-solaris2*.
6793 Remove i386sol2 support.
6794 * configure.nat <i386sol2>: Remove.
6795 <sol2-64>: Fold into ...
6797 Move common settings to default section.
6799 * configure.tgt <i[34567]86-*-solaris2.1[0-9]*,
6800 x86_64-*-solaris2.1[0-9]*>: Rename to ...
6801 <i[34567]86-*-solaris2*, x86_64-*-solaris2*>: ... this.
6802 <i[34567]86-*-solaris*>: Remove.
6803 <sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*>: Remove.
6805 * configure.ac: Remove wctype in libw check.
6806 (_MSE_INT_H): Don't define on Solaris 7-9.
6807 <solaris*>: Remove libthread_db.so.1 check.
6808 * configure: Regenerate.
6809 * config.in: Regenerate.
6811 * proc-service.c: Remove PROC_SERVICE_IS_OLD handling.
6812 (gdb_ps_prochandle_t, gdb_ps_read_buf_t, gdb_ps_write_buf_t)
6813 (gdb_ps_size_t): Remove.
6814 Use base types in users.
6815 * sol-thread.c: Likewise, also for gdb_ps_addr_t.
6817 * NEWS (Changes since GDB 8.0): Document Solaris 2.0-9 removal.
6819 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6822 * sparc64-tdep.c (adi_tag_fd): Print pid as long.
6823 (adi_is_addr_mapped): Likewise.
6824 (PSR_ICC): Don't redefine.
6825 (PSR_IMPL): Likewise.
6827 2017-09-25 Tom Tromey <tom@tromey.com>
6829 * regcache.c (regcache::dump): Use string_printf.
6831 2017-09-25 Tom Tromey <tom@tromey.com>
6833 * regcache.c (class regcache_invalidator): New.
6834 (struct register_to_invalidate): Remove.
6835 (make_cleanup_regcache_invalidate): Remove.
6836 (regcache::raw_write): Use regcache_invalidator.
6838 2017-09-25 Tom Tromey <tom@tromey.com>
6840 * spu-tdep.c (spu2ppu_sniffer): Update.
6841 * regcache.h (make_cleanup_regcache_xfree): Don't declare.
6842 * regcache.c (do_regcache_xfree, make_cleanup_regcache_xfree):
6844 * ppc-linux-tdep.c (ppu2spu_sniffer): Update.
6845 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Update.
6846 * frame.h (frame_save_as_regcache): Return std::unique_ptr.
6847 * frame.c (frame_save_as_regcache): Return std::unique_ptr.
6848 (frame_pop): Update.
6850 2017-09-25 Tom Tromey <tom@tromey.com>
6852 * spu-tdep.c (spu2ppu_dealloc_cache): Use delete.
6853 * regcache.h (regcache_xfree): Don't declare.
6854 * regcache.c (regcache_xfree): Remove.
6855 (do_regcache_xfree): Use delete.
6856 * ppc-linux-tdep.c (ppu2spu_dealloc_cache): Use delete.
6857 * linux-fork.c (free_fork): Use delete.
6858 (fork_save_infrun_state): Likewise.
6859 * jit.c (jit_dealloc_cache): Use delete.
6860 * infrun.c (discard_infcall_suspend_state): Use delete.
6862 2017-09-25 Tom Tromey <tom@tromey.com>
6864 * regcache.h (regcache_xmalloc): Don't declare.
6865 (regcache_raw_set_cached_value): Update comment.
6866 * regcache.c (regcache_xmalloc): Remove.
6867 * ppc-linux-tdep.c (ppu2spu_sniffer): Use new.
6868 * jit.c (jit_frame_sniffer): Use new.
6869 * frame.c (frame_save_as_regcache): Use new.
6871 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6873 * NEWS: Advertise support for guarded-storage registers on IBM z.
6875 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6877 * s390-linux-nat.c (have_regset_gs): New static variable.
6878 (s390_linux_fetch_inferior_registers): Handle guarded-storage
6879 control block and guarded-storage broadcast control regsets.
6880 (s390_read_description): Detect whether the target has
6881 guarded-storage support, return appropriate tdesc.
6882 * s390-linux-tdep.c (features/s390-gs-linux64.c): New include.
6883 (features/s390x-gs-linux64.c): Likewise.
6884 (struct gdbarch_tdep) <have_gs>: New field.
6885 (s390_regmap_gs, s390_regmap_gsbc, s390_gs_regset)
6886 (s390_gsbc_regset): New variables.
6887 (s390_iterate_over_regset_sections): Iterate over s390_gs_regset
6888 and s390_gsbc_regset, if applicable.
6889 (s390_core_read_description): Check whether core file was from a
6890 target with guarded-storage support; include appropriate regsets.
6891 (s390_gdbarch_init): Add registers for guarded-storage support.
6892 (_initialize_s390_tdep): Initialize new target descriptions that
6893 include registers for guarded-storage support.
6894 * s390-linux-tdep.h (HWCAP_S390_GS, S390_GSD_REGNUM)
6895 (S390_GSSM_REGNUM, S390_GSEPLA_REGNUM)
6896 (S390_BC_GSD_REGNUM, S390_BC_GSSM_REGNUM): New defines.
6897 (S390_NUM_REGS): Adjust macro definition.
6898 (s390_gs_regset, s390_gsbc_regset, tdesc_s390_gs_linux64)
6899 (tdesc_s390x_gs_linux64): New declarations.
6901 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6903 * features/s390-gs-linux64.xml: New file.
6904 * features/s390-gs.xml: New file.
6905 * features/s390-gsbc.xml: New file.
6906 * features/s390x-gs-linux64.xml: New file.
6907 * features/Makefile (WHICH): Add s390-gs-linux64 and
6909 (s390-gs-linux64-expedite, s390x-gs-linux64-expedite): New macros.
6910 (XMLTOC): Add s390-gs-linux64.xml and s390x-linux64.xml.
6911 * features/s390-gs-linux64.c: New generated file.
6912 * features/s390x-gs-linux64.c: New file.
6913 * regformats/s390-gs-linux64.dat: New file.
6914 * regformats/s390x-gs-linux64.dat: New file.
6916 2017-09-23 Tom Tromey <tom@tromey.com>
6918 * defs.h (make_cleanup_override_quit_handler): Don't declare.
6920 2017-09-22 Tom Tromey <tom@tromey.com>
6922 * utils.c (class scoped_input_handler) <m_quit_handler>: Change
6923 type to scoped_restore_tmpl.
6924 <scoped_input_handler>: Initialize m_quit_handler directly.
6926 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
6928 * cli/cli-cmds.c (pwd_command): Use "getcwd (NULL, 0)".
6929 (cd_command): Likewise. Free "current_directory" before
6931 * main.c (captured_main_1): Use "getcwd (NULL, 0)".
6932 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Likewise.
6933 * top.c (gdb_dirbuf): Remove global declaration.
6934 * top.h (gdb_dirbuf): Likewise.
6936 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
6938 * gnulib/aclocal.m4: Regenerate.
6939 * gnulib/config.in: Regenerate.
6940 * gnulib/configure: Regenerate.
6941 * gnulib/import/Makefile.am: Regenerate.
6942 * gnulib/import/Makefile.in: Regenerate.
6943 * gnulib/import/assure.h: New file.
6944 * gnulib/import/at-func.c: Likewise
6945 * gnulib/import/chdir-long.c: New file.
6946 * gnulib/import/chdir-long.h: New file.
6947 * gnulib/import/cloexec.c: New file.
6948 * gnulib/import/cloexec.h: New file.
6949 * gnulib/import/close.c: New file.
6950 * gnulib/import/closedir.c: New file.
6951 * gnulib/import/dirent-private.h: New file.
6952 * gnulib/import/dup-safer.c: New file.
6953 * gnulib/import/dup.c: New file.
6954 * gnulib/import/dup2.c: New file.
6955 * gnulib/import/error.c: New file.
6956 * gnulib/import/error.h: New file.
6957 * gnulib/import/exitfail.c: New file.
6958 * gnulib/import/exitfail.h: New file.
6959 * gnulib/import/fchdir.c: New file.
6960 * gnulib/import/fcntl.c: New file.
6961 * gnulib/import/fcntl.in.h: New file.
6962 * gnulib/import/fd-hook.c: New file.
6963 * gnulib/import/fd-hook.h: New file.
6964 * gnulib/import/fd-safer.c: New file.
6965 * gnulib/import/fdopendir.c: New file.
6966 * gnulib/import/filename.h: New file.
6967 * gnulib/import/filenamecat-lgpl.c: New file.
6968 * gnulib/import/filenamecat.h: New file.
6969 * gnulib/import/fstat.c: New file.
6970 * gnulib/import/fstatat.c: New file.
6971 * gnulib/import/getcwd-lgpl.c: New file.
6972 * gnulib/import/getcwd.c: New file.
6973 * gnulib/import/getdtablesize.c: New file.
6974 * gnulib/import/getlogin_r.c: New file.
6975 * gnulib/import/getprogname.c: New file.
6976 * gnulib/import/getprogname.h: New file.
6977 * gnulib/import/gettext.h: New file.
6978 * gnulib/import/glob-libc.h: New file.
6979 * gnulib/import/glob.c: New file.
6980 * gnulib/import/glob.in.h: New file.
6981 * gnulib/import/intprops.h: New file.
6982 * gnulib/import/m4/chdir-long.m4: New file.
6983 * gnulib/import/m4/close.m4: New file.
6984 * gnulib/import/m4/closedir.m4: New file.
6985 * gnulib/import/m4/d-ino.m4: New file.
6986 * gnulib/import/m4/d-type.m4: New file.
6987 * gnulib/import/m4/dup.m4: New file.
6988 * gnulib/import/m4/dup2.m4: New file.
6989 * gnulib/import/m4/error.m4: New file.
6990 * gnulib/import/m4/fchdir.m4: New file.
6991 * gnulib/import/m4/fcntl.m4: New file.
6992 * gnulib/import/m4/fcntl_h.m4: New file.
6993 * gnulib/import/m4/fdopendir.m4: New file.
6994 * gnulib/import/m4/filenamecat.m4: New file.
6995 * gnulib/import/m4/fstat.m4: New file.
6996 * gnulib/import/m4/fstatat.m4: New file.
6997 * gnulib/import/m4/getcwd-abort-bug.m4: New file.
6998 * gnulib/import/m4/getcwd-path-max.m4: New file.
6999 * gnulib/import/m4/getcwd.m4: New file.
7000 * gnulib/import/m4/getdtablesize.m4: New file.
7001 * gnulib/import/m4/getlogin_r.m4: New file.
7002 * gnulib/import/m4/getprogname.m4: New file.
7003 * gnulib/import/m4/glob.m4: New file.
7004 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
7005 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
7006 * gnulib/import/m4/mempcpy.m4: New file.
7007 * gnulib/import/m4/memrchr.m4: New file.
7008 * gnulib/import/m4/mode_t.m4: New file.
7009 * gnulib/import/m4/msvc-inval.m4: New file.
7010 * gnulib/import/m4/msvc-nothrow.m4: New file.
7011 * gnulib/import/m4/open.m4: New file.
7012 * gnulib/import/m4/openat.m4: New file.
7013 * gnulib/import/m4/opendir.m4: New file.
7014 * gnulib/import/m4/readdir.m4: New file.
7015 * gnulib/import/m4/realloc.m4: New file.
7016 * gnulib/import/m4/rewinddir.m4: New file.
7017 * gnulib/import/m4/save-cwd.m4: New file.
7018 * gnulib/import/m4/strdup.m4: New file.
7019 * gnulib/import/m4/strerror.m4: New file.
7020 * gnulib/import/m4/unistd-safer.m4: New file.
7021 * gnulib/import/mempcpy.c: New file.
7022 * gnulib/import/memrchr.c: New file.
7023 * gnulib/import/msvc-inval.c: New file.
7024 * gnulib/import/msvc-inval.h: New file.
7025 * gnulib/import/msvc-nothrow.c: New file.
7026 * gnulib/import/msvc-nothrow.h: New file.
7027 * gnulib/import/open.c: New file.
7028 * gnulib/import/openat-die.c: New file.
7029 * gnulib/import/openat-priv.h: New file.
7030 * gnulib/import/openat-proc.c: New file.
7031 * gnulib/import/openat.c: New file.
7032 * gnulib/import/openat.h: New file.
7033 * gnulib/import/opendir.c: New file.
7034 * gnulib/import/pipe-safer.c: New file.
7035 * gnulib/import/readdir.c: New file.
7036 * gnulib/import/realloc.c: New file.
7037 * gnulib/import/rewinddir.c: New file.
7038 * gnulib/import/save-cwd.c: New file.
7039 * gnulib/import/save-cwd.h: New file.
7040 * gnulib/import/strdup.c: New file.
7041 * gnulib/import/strerror-override.c: New file.
7042 * gnulib/import/strerror-override.h: New file.
7043 * gnulib/import/strerror.c: New file.
7044 * gnulib/import/unistd--.h: New file.
7045 * gnulib/import/unistd-safer.h: New file.
7046 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
7047 "getcwd" and "glob".
7048 * ser-tcp.c: Undefine "close" before redefining it.
7050 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
7052 * guile/scm-value.c (gdbscm_value_address): Initialize address,
7055 2017-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7057 * configure.nat <i386sol2,i386>: Add fork-inferior.o to NATDEPFILES.
7058 <sol2,sparc>: Likewise.
7059 <sol2-64,i386>: Likewise.
7061 * warning.m4 (AM_GDB_WARNINGS): Disable -Wunknown-pragmas,
7062 -Wdeprecated-declarations on *-*-solaris*.
7063 * configure: Regenerate.
7065 * procfs.c: Include "nat/inferior.h".
7066 (procfs_info_proc): Fix typo.
7068 2017-09-21 Kevin Buettner <kevinb@redhat.com>
7070 * remote.c (vector): Include.
7071 (struct private_thread_info): Add field, thread_handle.
7072 (free_private_thread_info): Deallocate storage associated with
7074 (get_private_info_thread): Initialize `thread_handle' field.
7075 (struct thread_item): Add field, thread_handle.
7076 (clear_threads_listing_context): Deallocate storage associated
7078 (start_thread): Add support for "handle" attribute.
7079 (thread_attributes): Add "handle".
7080 (remote_get_threads_with_qthreadinfo): Initialize thread_handle
7082 (remote_update_thread_list): Update thread_handle.
7083 (remote_thread_handle_to_thread_info): New function.
7084 (init_remote_ops): Initialize to_thread_handle_to_thread_info.
7086 2017-09-21 Kevin Buettner <kevinb@redhat.com>
7088 * python/py-inferior.c (gdbpy_thread_from_thread_handle): New
7090 (inferior_object_methods): Add gdbpy_thread_from_thread_handle.
7091 * python/python-internal.h (thread_object_type): Declare.
7093 2017-09-21 Kevin Buettner <kevinb@redhat.com>
7095 * target.h (struct target_ops): Add to_thread_handle_to_thread_info.
7096 (target_thread_handle_to_thread_info): Declare.
7097 * target.c (target_thread_handle_to_thread_info): New function.
7098 * target-delegates.c: Regenerate.
7099 * gdbthread.h (find_thread_by_handle): Declare.
7100 * thread.c (find_thread_by_handle): New function.
7101 * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New
7103 (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info.
7105 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
7107 * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF.
7109 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
7111 * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF.
7113 2017-09-21 Yao Qi <yao.qi@linaro.org>
7115 * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o
7118 2017-09-20 Tom Tromey <tom@tromey.com>
7120 * breakpoint.c (struct counted_command_line): Remove.
7121 (breakpoint_commands): Update.
7122 (alloc_counted_command_line, incref_counted_command_line)
7123 (decref_counted_command_line, do_cleanup_counted_command_line)
7124 (make_cleanup_decref_counted_command_line): Remove.
7125 (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats)
7126 (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check)
7127 (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint)
7128 (save_breakpoints): Update.
7129 * breakpoint.h (counted_command_line): Now a typedef to
7131 (struct breakpoint) <commands>: Now a counted_command_line.
7132 (struct bpstats) <command>: Likewise.
7134 2017-09-20 Tom Tromey <tom@tromey.com>
7136 * breakpoint.c (struct commands_info, do_map_commands_command):
7138 (commands_command_1): Update.
7139 (iterate_over_related_breakpoints): Take a function_view.
7140 (do_delete_breakpoint, do_map_delete_breakpoint): Remove.
7141 (delete_command): Update.
7142 (map_breakpoint_numbers): Take a function_view.
7143 (do_disable_breakpoint, do_map_delete_breakpoint): Remove.
7144 (disable_command): Update.
7145 (do_enable_breakpoint, do_map_enable_breakpoint): Remove.
7146 (enable_command): Update.
7147 (struct disp_data, do_enable_breakpoint_disp)
7148 (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint)
7149 (do_map_enable_delete_breakpoint): Remove.
7150 (enable_once_command, enable_count_command, enable_delete_command)
7151 (delete_trace_variable_command): Update.
7153 2017-09-20 Tom Tromey <tom@tromey.com>
7155 * breakpoint.c (~bpstats): Rename from bpstat_free. Update.
7156 (bpstat_clear): Use delete.
7157 (bpstats): New constructors.
7158 (bpstat_copy, bpstat_stop_status): Use new.
7159 (dprintf_after_condition_true): Update.
7160 * breakpoint.h (bpstats::bpstats): Add constructors.
7161 (bpstats::~bpstats): Add destructor.
7163 2017-09-20 Pedro Alves <palves@redhat.com>
7165 * eval.c (make_params): Delete, refactored as ...
7166 (class fake_method): ... this new type's ctor.
7167 (fake_method::~fake_method): New.
7168 (evaluate_subexp_standard): Use 'fake_method'.
7170 2017-09-20 Tom Tromey <tom@tromey.com>
7172 * windows-nat.c (get_windows_debug_event, windows_wait)
7173 (do_initial_windows_stuff, windows_attach): Update.
7174 * utils.c (vwarning, internal_vproblem): Update.
7175 (ui_unregister_input_event_handler_cleanup)
7176 (prepare_to_handle_input): Remove.
7177 (class scoped_input_handler): New.
7178 (defaulted_query, prompt_for_continue): Update.
7179 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
7181 * top.c (undo_terminal_modifications_before_exit): Update.
7182 * target/target.h (target_terminal_init, target_terminal_inferior)
7183 (target_terminal_ours): Don't declare.
7184 (class target_terminal): New.
7185 * target.h (target_terminal_is_inferior, target_terminal_is_ours)
7186 (target_terminal_ours_for_output)
7187 (make_cleanup_restore_target_terminal): Don't declare.
7188 (target_terminal_info): Remove.
7189 * target.c (enum terminal_state, terminal_state): Remove.
7190 (target_terminal::terminal_state): Define.
7191 (target_terminal::init): Rename from target_terminal_init.
7192 (target_terminal::inferior): Rename from
7193 target_terminal_inferior.
7194 (target_terminal::ours): Rename from target_terminal_ours.
7195 (target_terminal::ours_for_output): Rename from
7196 target_terminal_ours_for_output.
7197 (target_terminal::info): New method.
7198 (cleanup_restore_target_terminal)
7199 (make_cleanup_restore_target_terminal): Remove.
7200 * solib.c (handle_solib_event): Update.
7201 * remote.c (remote_serial_quit_handler): Update.
7202 (remote_terminal_inferior, remote_wait_as): Update.
7203 * record-full.c (record_full_wait_1): Update.
7204 * nto-procfs.c (procfs_create_inferior): Update.
7205 * nat/fork-inferior.c (startup_inferior): Update.
7206 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
7207 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
7208 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
7209 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
7210 (mi_breakpoint_created, mi_breakpoint_deleted)
7211 (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded)
7212 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
7213 (mi_user_selected_context_changed, report_initial_inferior):
7215 * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours)
7216 (linux_nat_terminal_inferior): Update.
7217 * infrun.c (follow_fork_inferior)
7218 (handle_vfork_child_exec_or_exit, do_target_resume)
7219 (check_curr_ui_sync_execution_done, handle_inferior_event_1)
7220 (handle_signal_stop, maybe_remove_breakpoints, normal_stop):
7222 * inflow.c (child_terminal_init, info_terminal_command): Update.
7223 * infcmd.c (post_create_inferior, continue_1, prepare_one_step)
7224 (attach_command): Update.
7225 * infcall.c (call_thread_fsm_should_stop): Update.
7226 * gnu-nat.c (gnu_attach): Update.
7227 * extension.c (struct active_ext_lang_state)
7228 (restore_active_ext_lang): Update.
7229 * exceptions.c (print_flush): Update.
7230 * event-top.c (async_enable_stdin, default_quit_handler): Update.
7231 (struct quit_handler_cleanup_data, restore_quit_handler)
7232 (restore_quit_handler_dtor, make_cleanup_override_quit_handler):
7234 * cp-support.c (gdb_demangle): Update.
7235 * breakpoint.c (update_inserted_breakpoint_locations)
7236 (insert_breakpoint_locations, handle_jit_event)
7237 (disable_breakpoints_in_unloaded_shlib): Update.
7238 * annotate.c (annotate_breakpoints_invalid)
7239 (annotate_frames_invalid): Update.
7241 2017-09-20 Tom Tromey <tom@tromey.com>
7243 * main.c (catch_command_errors): Rename from
7244 catch_command_errors_const.
7245 (captured_main_1): Update.
7247 2017-09-20 Pedro Alves <palves@redhat.com>
7249 * cli/cli-cmds.c (list_command): Use print_sal_location.
7250 (print_sal_location): New function.
7251 (ambiguous_line_spec): Use print_sal_location.
7252 * linespec.c (symbol_to_sal): Record the symbol in the sal.
7253 * symtab.c (find_function_start_sal): Likewise.
7254 * symtab.h (symtab_and_line::symbol): New field.
7256 2017-09-20 Pedro Alves <palves@redhat.com>
7258 * linespec.c (minsym_found): Handle non-text minsyms.
7259 (symbol_to_sal): Record a sal.pc for non-block, non-label symbols.
7261 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
7263 * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing
7266 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
7268 * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use
7269 vmovups instead vmovaps.
7270 (move_zmm_data_to_memory): Use vmovups instead vmovaps.
7272 2017-09-19 John Baldwin <jhb@FreeBSD.org>
7274 * NEWS (Changes since GDB 8.0): Add starti.
7275 * infcmd.c (enum run_break): New.
7276 (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN
7278 (run_command): Use enum run_how.
7279 (start_command): Likewise.
7280 (starti_command): New function.
7281 (RUN_ARGS_HELP): New macro.
7282 (_initialize_infcmd): Use RUN_ARGS_HELP for run and start
7283 commands. Add starti command.
7285 2017-09-19 Yao Qi <yao.qi@linaro.org>
7287 * Makefile.in (monitor.o): Remove the rule.
7289 2017-09-19 Yao Qi <yao.qi@linaro.org>
7291 * annotate.h (struct annotate_arg_emitter): Use
7292 DISABLE_COPY_AND_ASSIGN.
7293 * common/refcounted-object.h (refcounted_object): Likewise.
7294 * completer.h (struct completion_result): Likewise.
7295 * dwarf2read.c (struct dwarf2_per_objfile): Likewise.
7296 * filename-seen-cache.h (filename_seen_cache): Likewise.
7297 * gdbcore.h (thread_section_name): Likewise.
7298 * gdb_regex.h (compiled_regex): Likewise.
7299 * gdbthread.h (scoped_restore_current_thread): Likewise.
7300 * inferior.h (scoped_restore_current_inferior): Likewise.
7301 * jit.c (jit_reader): Likewise.
7302 * linespec.h (struct linespec_result): Likewise.
7303 * mi/mi-parse.h (struct mi_parse): Likewise.
7304 * nat/fork-inferior.c (execv_argv): Likewise.
7305 * progspace.h (scoped_restore_current_program_space): Likewise.
7306 * python/python-internal.h (class gdbpy_enter): Likewise.
7307 * regcache.h (regcache): Likewise.
7308 * target-descriptions.c (struct tdesc_reg): Likewise.
7309 (struct tdesc_type): Likewise.
7310 (struct tdesc_feature): Likewise.
7311 * ui-out.h (ui_out_emit_type): Likewise.
7313 2017-09-18 Simon Marchi <simon.marchi@ericsson.com>
7315 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove
7316 label abort_expression.
7318 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7320 * common/buffer.c (buffer_xml_printf): Adjust.
7321 * common/xml-utils.c (xml_escape_text): Change return type to
7322 std::string, update code accordingly.
7323 * common/xml-utils.h (xml_escape_text): Change return type to
7325 * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust.
7326 * windows-tdep.c (windows_xfer_shared_library): Adjust.
7327 * unittests/xml-utils-selftests.c (test_xml_escape_text):
7330 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7332 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file.
7333 (SUBDIR_UNITTESTS_OBS): Add new object file.
7334 * unittests/xml-utils-selftests.c: New file.
7336 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7338 * common/selftest.h (selftest): New struct/interface.
7339 (register_test): Add name parameter, add new overload.
7340 (run_tests): Add filter parameter.
7341 (for_each_selftest_ftype): New typedef.
7342 (for_each_selftest): New declaration.
7343 * common/selftest.c (tests): Change type to
7344 map<string, unique_ptr<selftest>>.
7345 (simple_selftest): New struct.
7346 (register_test): New function.
7347 (register_test): Add name parameter and use it.
7348 (run_tests): Add filter parameter and use it. Add prints.
7349 Adjust to vector -> map change.
7350 * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when
7351 registering selftests.
7352 * arm-tdep.c (_initialize_arm_tdep): Likewise.
7353 * disasm-selftests.c (_initialize_disasm_selftests): Likewise.
7354 * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise.
7355 * dwarf2loc.c (_initialize_dwarf2loc): Likewise.
7356 * findvar.c (_initialize_findvar): Likewise.
7357 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise.
7358 * maint.c (maintenance_selftest): Update call to run_tests.
7359 (maintenance_info_selftests): New function.
7360 (_initialize_maint_cmds): Register "maintenance info selftests"
7361 command. Update "maintenance selftest" doc.
7362 * regcache.c (_initialize_regcache): Add names when registering
7364 * rust-exp.y (_initialize_rust_exp): Likewise.
7365 * selftest-arch.c (gdbarch_selftest): New struct.
7366 (gdbarch_tests): Remove.
7367 (register_test_foreach_arch): Add name parameter. Call
7369 (tests_with_arch): Remove, move most content to
7370 gdbarch_selftest::operator().
7371 (_initialize_selftests_foreach_arch): Remove.
7372 * selftest-arch.h (register_test_foreach_arch): Add name
7374 (run_tests_with_arch): New declaration.
7375 * utils-selftests.c (_initialize_utils_selftests): Add names
7376 when registering selftests.
7377 * utils.c (_initialize_utils): Likewise.
7378 * unittests/array-view-selftests.c
7379 (_initialize_array_view_selftests): Likewise.
7380 * unittests/environ-selftests.c (_initialize_environ_selftests):
7382 * unittests/function-view-selftests.c
7383 (_initialize_function_view_selftests): Likewise.
7384 * unittests/offset-type-selftests.c
7385 (_initialize_offset_type_selftests): Likewise.
7386 * unittests/optional-selftests.c
7387 (_initialize_optional_selftests): Likewise.
7388 * unittests/scoped_restore-selftests.c
7389 (_initialize_scoped_restore_selftests): Likewise.
7390 * NEWS: Document "maintenance selftest" and "maint info
7393 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7395 * mi/mi-main.c (mi_load_progress): Restore current_uiout using a
7398 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7400 * mi/mi-main.c (mi_load_progress): Make uiout variable
7403 2017-09-15 Pedro Alves <palves@redhat.com>
7405 * compile/compile-c-types.c (convert_enum, convert_int)
7406 (convert_float): Adjust to refer to int_type_v0 and float_type_v0.
7408 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7410 * dwarf2read.c (copy_string): Remove.
7411 (parse_macro_definition): Replace copy_string with savestring.
7413 2017-09-15 Yao Qi <yao.qi@linaro.org>
7415 * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to
7417 (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*):
7419 (i[34567]86-*-linux*): Likewise.
7421 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
7423 * dwarf2expr.h (dwarf_stack_value): Add constructor.
7424 (dwarf_expr_context) <~dwarf_expr_context>: Define as default.
7425 <stack>: Change type to std::vector.
7426 <stack_len, stack_allocated>: Remove.
7427 <grow_stack>: Remove.
7428 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
7429 (dwarf_expr_context::~dwarf_expr_context): Remove.
7430 (dwarf_expr_context::grow_stack): Remove.
7431 (dwarf_expr_context::push): Adjust.
7432 (dwarf_expr_context::pop): Adjust.
7433 (dwarf_expr_context::fetch): Adjust.
7434 (dwarf_expr_context::fetch_in_stack_memory): Adjust.
7435 (dwarf_expr_context::stack_empty_p): Adjust.
7436 (dwarf_expr_context::execute_stack_op): Adjust.
7438 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
7440 * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change
7441 return type to bool.
7442 * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise.
7444 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
7446 * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>:
7447 Change type to bool.
7448 (dwarf_stack_value) <in_stack_memory>: Likewise.
7449 (dwarf_expr_context) <push_address>: Change parameter type to
7451 <fetch_in_stack_memory>: Change return type to bool.
7452 <push>: Change parameter type to bool.
7453 * dwarf2expr.c (dwarf_expr_context::push): Change parameter type
7455 (dwarf_expr_context::push_address): Likewise.
7456 (dwarf_expr_context::fetch_in_stack_memory): Change return type
7458 (dwarf_expr_context::execute_stack_op): Adjust.
7459 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust.
7461 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
7463 * dwarf2expr.h (struct dwarf_expr_piece): Move up.
7464 (struct dwarf_expr_context) <n_pieces>: Remove.
7465 <pieces>: Change type to std::vector.
7466 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
7467 (dwarf_expr_context::~dwarf_expr_context): Don't manually free
7469 (dwarf_expr_context::add_piece): Adjust.
7470 * dwarf2loc.c (struct piece_closure): Initialize fields.
7472 <pieces>: Change type to std::vector.
7473 (allocate_piece_closure): Adjust, change parameter to
7474 std::vector rvalue and std::move it to piece_closure.
7475 (rw_pieced_value): Adjust.
7476 (check_pieced_synthetic_pointer): Adjust.
7477 (indirect_synthetic_pointer): Adjust.
7478 (coerce_pieced_ref): Adjust.
7479 (free_pieced_value_closure): Adjust. Use delete to free
7481 (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces
7482 to allocate_piece_closure.
7483 (dwarf2_loc_desc_get_symbol_read_needs): Adjust.
7485 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
7487 * probe.h (probe_ops_cp): Remove typedef.
7488 (DEF_VEC_P (probe_ops_cp)): Remove.
7489 (all_probe_ops): Change type to std::vector.
7490 * probe.c (info_probes_for_ops): Adjust to vector change.
7491 (probe_linespec_to_ops): Likewise.
7492 (all_probe_ops): Change type to std::vector.
7493 (_initialize_probe): Adjust to vector change.
7494 * dtrace-probe.c (_initialize_dtrace_probe): Likewise.
7495 * elfread.c (elf_get_probes): Likewise.
7496 * stap-probe.c (_initialize_stap_probe): Likewise.
7498 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
7500 * probe.h (struct bound_probe): Define constructors.
7501 * probe.c (bound_probe_s): Remove typedef.
7502 (DEF_VEC_O (bound_probe_s)): Remove VEC.
7503 (collect_probes): Change return type to std::vector, remove
7505 (compare_probes): Return bool, change parameter type. Change
7506 semantic to "less than".
7507 (gen_ui_out_table_header_info): Change parameter to std::vector
7509 (exists_probe_with_pops): Likewise.
7510 (info_probes_for_ops): Update to std::vector change.
7511 (enable_probes_command): Likewise.
7512 (disable_probes_command): Likewise.
7514 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
7516 * probe.h (struct probe_ops) <get_probes>: Change parameter from
7518 * probe.c (parse_probes_in_pspace): Update.
7519 (find_probes_in_objfile): Update.
7520 (find_probe_by_pc): Update.
7521 (collect_probes): Update.
7522 (probe_any_get_probes): Update.
7523 * symfile.h (struct sym_probe_fns) <sym_get_probes> Change
7524 return type to reference to std::vector.
7525 * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to
7526 std::vector and update.
7527 (dtrace_process_dof): Likewise.
7528 (dtrace_get_probes): Likewise.
7529 * elfread.c (elf_get_probes): Change return type to std::vector,
7530 store an std::vector in bfd_data.
7531 (probe_key_free): Update to std::vector.
7532 * stap-probe.c (handle_stap_probe): Change parameter to
7533 std::vector and update.
7534 (stap_get_probes): Likewise.
7535 * symfile-debug.c (debug_sym_get_probes): Change return type to
7536 std::vector and update.
7538 2017-09-11 Tom Tromey <tom@tromey.com>
7540 * breakpoint.c (program_breakpoint_here_p): Update.
7541 * target.c (make_scoped_restore_show_memory_breakpoints): Rename
7542 from make_show_memory_breakpoints_cleanup. Return a
7543 scoped_restore_tmpl<int>.
7544 (restore_show_memory_breakpoints): Remove.
7545 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update.
7546 * mem-break.c (memory_validate_breakpoint): Update.
7547 * ia64-tdep.c (ia64_memory_insert_breakpoint): Update.
7548 (ia64_memory_remove_breakpoint): Update.
7549 (ia64_breakpoint_from_pc): Update.
7550 * target.h (make_scoped_restore_show_memory_breakpoints): Rename
7551 from make_show_memory_breakpoints_cleanup.
7553 2017-09-11 Tom Tromey <tom@tromey.com>
7555 * d-namespace.c (d_lookup_symbol): Use std::string.
7556 (find_symbol_in_baseclass): Likewise.
7558 2017-09-11 Tom Tromey <tom@tromey.com>
7560 * ctf.c (ctf_start): Use std::string.
7562 2017-09-11 Tom Tromey <tom@tromey.com>
7564 * ada-lang.c (is_known_support_routine): Update.
7565 (ada_unhandled_exception_name_addr_from_raise): Update.
7566 * guile/scm-frame.c (gdbscm_frame_name): Update.
7567 * python/py-frame.c (frapy_name): Update.
7568 (frapy_function): Update.
7569 * stack.h (find_frame_funname): Update.
7570 * stack.c (find_frame_funname): Return unique_xmalloc_ptr.
7571 (print_frame): Update.
7573 2017-09-11 Tom Tromey <tom@tromey.com>
7575 * findcmd.c (put_bits): Take a gdb::byte_vector.
7576 (parse_find_args): Return gdb::byte_vector. "args" now const.
7577 Remove "pattern_bufp" and "pattern_lenp" parameters. Remove
7579 (find_command): Update.
7581 2017-09-11 Tom Tromey <tom@tromey.com>
7583 * cli/cli-script.c (class scoped_restore_hook_in): New.
7584 (clear_hook_in_cleanup): Remove.
7585 (execute_cmd_pre_hook, execute_cmd_post_hook): Use
7586 scoped_restore_hook_in.
7588 2017-09-11 Tom Tromey <tom@tromey.com>
7590 * cli/cli-script.c (restore_interp): Remove.
7591 (read_command_lines): Use scoped_restore_interp.
7592 * interps.c (scoped_restore_interp::set_temp): Rename from
7594 * interps.h (class scoped_restore_interp): New.
7595 (interp_set_temp): Remove.
7597 2017-09-11 Tom Tromey <tom@tromey.com>
7599 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
7600 (mi_cmd_catch_exception, mi_catch_load_unload): Update.
7601 * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a
7603 (mi_cmd_break_insert_1): Update.
7604 * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a
7607 2017-09-11 Tom Tromey <tom@tromey.com>
7609 * demangle.c (demangle_command): Update.
7610 * breakpoint.c (disable_command): Update.
7611 (enable_command): Update.
7612 (find_location_by_number): Make "number" const. Use
7614 * cli/cli-utils.c (extract_arg): Return std::string.
7615 * probe.c (parse_probe_linespec): Update. Change types.
7616 (collect_probes): Take string arguments.
7617 (parse_probe_linespec): Likewise.
7618 (info_probes_for_ops): Update.
7619 (enable_probes_command): Update.
7620 (disable_probes_command): Update.
7621 * break-catch-sig.c (catch_signal_split_args): Update.
7622 * mi/mi-parse.c (mi_parse): Update.
7624 2017-09-11 Tom Tromey <tom@tromey.com>
7626 * language.h (language_enum): Make argument const.
7627 * language.c (language_enum): Make argument const.
7629 2017-09-11 Tom Tromey <tom@tromey.com>
7631 * common/common-utils.h (skip_to_space): Remove macro, redeclare
7633 (skip_to_space): Rename from skip_to_space_const.
7634 * common/common-utils.c (skip_to_space): New function.
7635 (skip_to_space): Rename from skip_to_space_const.
7636 * cli/cli-utils.h (get_number): Rename from get_number_const.
7637 (extract_arg): Rename from extract_arg_const.
7638 * cli/cli-utils.c (get_number): Rename from get_number_const.
7639 (extract_arg): Rename from extract_arg_const.
7640 (number_or_range_parser::get_number): Use ::get_number.
7641 * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c,
7642 break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c,
7643 cli/cli-script.c, cli/cli-setshow.c, compile/compile.c,
7644 completer.c, demangle.c, disasm.c, findcmd.c, linespec.c,
7645 linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c,
7646 minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c,
7647 python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c,
7648 stap-probe.c, tid-parse.c, tracepoint.c: Update all callers.
7650 2017-09-11 Tom Tromey <tom@tromey.com>
7652 * python/python.c (do_start_initialization): Use
7653 py-event-types.def to initialize types.
7654 Define all object type structures.
7655 * python/python-internal.h: Don't declare event initialization
7657 * python/py-threadevent.c (thread_event_object_type): Don't
7659 * python/py-stopevent.c (stop_event_object_type): Don't define.
7660 * python/py-signalevent.c (signal_event_object_type): Don't
7662 * python/py-newobjfileevent.c (new_objfile_event_object_type)
7663 (clear_objfiles_event_object_type): Don't declare or define.
7664 * python/py-infevents.c (inferior_call_pre_event_object_type)
7665 (inferior_call_post_event_object_type)
7666 (register_changed_event_object_type)
7667 (memory_changed_event_object_type): Don't declare or define.
7668 * python/py-inferior.c (new_thread_event_object_type)
7669 (new_inferior_event_object_type)
7670 (inferior_deleted_event_object_type): Don't declare or define.
7671 * python/py-exitedevent.c (exited_event_object_type): Don't
7673 * python/py-evts.c (gdbpy_initialize_py_events): Use
7675 * python/py-events.h (thread_event_object_type): Don't declare.
7676 (events_object): Use py-all-events.def.
7677 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use
7679 * python/py-event-types.def: New file.
7680 * python/py-continueevent.c (create_continue_event_object): Don't
7682 * python/py-bpevent.c (breakpoint_event_object_type): Don't
7684 * python/py-all-events.def: New file.
7686 2017-09-11 Tom Tromey <tom@tromey.com>
7688 * python/py-threadevent.c (create_thread_event_object): Return
7690 * python/py-stopevent.h (create_stop_event_object)
7691 (create_breakpoint_event_object, create_signal_event_object):
7693 * python/py-stopevent.c (create_stop_event_object): Return
7695 (emit_stop_event): Update.
7696 * python/py-signalevent.c (create_signal_event_object): Return
7698 * python/py-infevents.c (create_inferior_call_event_object):
7700 * python/py-event.h (create_event_object)
7701 (create_thread_event_object): Update.
7702 * python/py-event.c (create_event_object): Return gdbpy_ref.
7703 * python/py-continueevent.c: Return gdbpy_ref.
7704 * python/py-bpevent.c (create_breakpoint_event_object): Return
7707 2017-09-11 Tom Tromey <tom@tromey.com>
7711 * python/python.c (do_start_initialization): Initialize new event
7713 * python/python-internal.h (gdbpy_initialize_new_inferior_event)
7714 (gdbpy_initialize_inferior_deleted_event)
7715 (gdbpy_initialize_new_thread_event): Declare.
7716 * python/py-threadevent.c (create_thread_event_object): Add option
7718 * python/py-inferior.c (new_thread_event_object_type)
7719 (new_inferior_event_object_type)
7720 (inferior_deleted_event_object_type): Declare.
7721 (python_new_inferior, python_inferior_deleted): New functions.
7722 (add_thread_object): Emit new_thread event.
7723 (gdbpy_initialize_inferior): Attach new functions to corresponding
7725 (new_thread, new_inferior, inferior_deleted): Define new event
7727 * python/py-evts.c (gdbpy_initialize_py_events): Add new
7729 * python/py-events.h (events_object) <new_inferior,
7730 inferior_deleted, new_thread>: New fields.
7731 * python/py-event.h (create_thread_event_breakpoint): Add optional
7734 2017-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
7736 * utils.c (abort_with_message): Don't compare gdb_stderr to NULL,
7737 check current_ui instead.
7738 (internal_vproblem): Likewise.
7740 2017-09-09 Simon Marchi <simon.marchi@ericsson.com>
7742 * thread.c (print_thread_info_1): Remove unnecessary calls to
7743 uiout->is_mi_like_p.
7745 2017-09-09 Tom Tromey <tom@tromey.com>
7747 * namespace.h (add_using_directive): Update.
7748 * namespace.c (add_using_directive): Change type of excludes to
7750 * dwarf2read.c (read_import_statement): Use std::vector.
7751 (read_namespace): Update.
7752 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
7754 2017-09-09 Tom Tromey <tom@tromey.com>
7756 * linespec.c (create_sals_line_offset): Use gdb::def_vector.
7758 2017-09-09 Tom Tromey <tom@tromey.com>
7760 * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector.
7762 2017-09-09 Tom Tromey <tom@tromey.com>
7764 * stack.c (func_command): Use gdb::def_vector.
7766 2017-09-09 Tom Tromey <tom@tromey.com>
7768 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional,
7769 ui_out_emit_list, ui_out_emit_tuple.
7770 (mi_cmd_var_update): Likewise.
7772 2017-09-09 Tom Tromey <tom@tromey.com>
7774 * mi/mi-interp.c (mi_user_selected_context_changed): Use
7775 ui_out_redirect_pop.
7776 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
7777 ui_out_redirect_pop.
7778 * utils.c (do_ui_out_redirect_pop)
7779 (make_cleanup_ui_out_redirect_pop): Remove.
7780 * top.c (execute_command_to_string): Use ui_out_redirect_pop.
7781 * utils.h (make_cleanup_ui_out_redirect_pop): Remove.
7782 * ui-out.h (ui_out_redirect_pop): New class.
7784 2017-09-09 Tom Tromey <tom@tromey.com>
7786 * mi/mi-main.c (output_cores): Use ui_out_emit_list.
7787 (list_available_thread_groups, mi_cmd_list_thread_groups)
7788 (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory)
7789 (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected):
7792 2017-09-09 Tom Tromey <tom@tromey.com>
7794 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
7797 2017-09-09 Tom Tromey <tom@tromey.com>
7799 * target.c (flash_erase_command): Use ui_out_emit_tuple.
7800 * stack.c (print_frame): Use ui_out_emit_tuple.
7801 * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple.
7802 (info_spu_mailbox_command, info_spu_dma_command)
7803 (info_spu_proxydma_command): Likewise.
7804 * mi/mi-main.c (mi_cmd_trace_frame_collected): Use
7805 ui_out_emit_tuple, gdb::byte_vector, bin2hex.
7806 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
7808 * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple.
7810 2017-09-09 Tom Tromey <tom@tromey.com>
7812 * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove.
7813 (class ui_out_emit_table): Update comment.
7814 * ui-out.c (do_cleanup_table_end)
7815 (make_cleanup_ui_out_table_begin_end): Remove.
7816 * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table.
7817 (info_spu_dma_cmdlist): Likewise.
7818 * probe.c (info_probes_for_ops): Use ui_out_emit_table.
7819 * darwin-nat-info.c (darwin_debug_regions_recurse): Use
7822 2017-09-09 Tom Tromey <tom@tromey.com>
7824 * thread.c (print_thread_info_1): Use ui_out_emit_table,
7825 ui_out_emit_list, gdb::optional.
7827 2017-09-09 John Baldwin <jhb@FreeBSD.org>
7829 * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat
7831 * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep
7833 * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep
7835 * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype.
7836 * ada-exp.y: Remove _initialize_ada_exp prototype.
7837 * ada-lang.c: Remove _initialize_ada_language prototype.
7838 * ada-tasks.c: Remove _initialize_tasks prototype.
7839 * addrmap.c: Remove _initialize_addrmap prototype.
7840 * agent.c: Remove _initialize_agent prototype.
7841 * aix-thread.c: Remove _initialize_aix_thread prototype.
7842 * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype.
7843 * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype.
7844 * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep
7846 * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype.
7847 * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype.
7848 * alpha-tdep.c: Remove _initialize_alpha_tdep prototype.
7849 * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep
7851 * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep
7853 * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype.
7854 * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype.
7855 * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype.
7856 * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep
7858 * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype.
7859 * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype.
7860 * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype.
7861 * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype.
7862 * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
7863 * amd64-tdep.c: Remove _initialize_amd64_tdep prototype.
7864 * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat
7866 * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep
7868 * annotate.c: Remove _initialize_annotate prototype.
7869 * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype.
7870 * arc-tdep.c: Remove _initialize_arc_tdep prototype.
7871 * arch-utils.c: Remove _initialize_gdbarch_utils prototype.
7872 * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype.
7873 * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype.
7874 * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype.
7875 * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype.
7876 * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep
7878 * arm-tdep.c: Remove _initialize_arm_tdep prototype.
7879 * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype.
7880 * auto-load.c: Remove _initialize_auto_load prototype.
7881 * auxv.c: Remove _initialize_auxv prototype.
7882 * avr-tdep.c: Remove _initialize_avr_tdep prototype.
7883 * ax-gdb.c: Remove _initialize_ax_gdb prototype.
7884 * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype.
7885 * bfin-tdep.c: Remove _initialize_bfin_tdep prototype.
7886 * break-catch-sig.c: Remove _initialize_break_catch_sig prototype.
7887 * break-catch-syscall.c: Remove _initialize_break_catch_syscall
7889 * break-catch-throw.c: Remove _initialize_break_catch_throw
7891 * breakpoint.c: Remove _initialize_breakpoint prototype.
7892 * bsd-uthread.c: Remove _initialize_bsd_uthread prototype.
7893 * btrace.c: Remove _initialize_btrace prototype.
7894 * charset.c: Remove _initialize_charset prototype.
7895 * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype.
7896 * cli/cli-dump.c: Remove _initialize_cli_dump prototype.
7897 * cli/cli-interp.c: Remove _initialize_cli_interp prototype.
7898 * cli/cli-logging.c: Remove _initialize_cli_logging prototype.
7899 * cli/cli-script.c: Remove _initialize_cli_script prototype.
7900 * coff-pe-read.c: Remove _initialize_coff_pe_read prototype.
7901 * coffread.c: Remove _initialize_coffread prototype.
7902 * compile/compile.c: Remove _initialize_compile prototype.
7903 * complaints.c: Remove _initialize_complaints prototype.
7904 * completer.c: Remove _initialize_completer prototype.
7905 * copying.awk: Remove _initialize_copying prototype.
7906 * copying.c: Regenerate.
7907 * core-regset.c: Remove _initialize_core_regset prototype.
7908 * corefile.c: Remove _initialize_core prototype.
7909 * corelow.c: Remove _initialize_corelow prototype.
7910 * cp-abi.c: Remove _initialize_cp_abi prototype.
7911 * cp-namespace.c: Remove _initialize_cp_namespace prototype.
7912 * cp-support.c: Remove _initialize_cp_support prototype.
7913 * cp-valprint.c: Remove _initialize_cp_valprint prototype.
7914 * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype.
7915 * cris-tdep.c: Remove _initialize_cris_tdep prototype.
7916 * ctf.c: Remove _initialize_ctf prototype.
7917 * d-lang.c: Remove _initialize_d_language prototype.
7918 * darwin-nat-info.c: Remove _initialize_darwin_info_commands
7920 * darwin-nat.c: Remove _initialize_darwin_inferior prototype.
7921 * dbxread.c: Remove _initialize_dbxread prototype.
7922 * dcache.c: Remove _initialize_dcache prototype.
7923 * demangle.c: Remove _initialize_demangler prototype.
7924 * disasm-selftests.c: Remove _initialize_disasm_selftests
7926 * disasm.c: Remove _initialize_disasm prototype.
7927 * dtrace-probe.c: Remove _initialize_dtrace_probe prototype.
7928 * dummy-frame.c: Remove _initialize_dummy_frame prototype.
7929 * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame
7931 * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype.
7932 * dwarf2expr.c: Remove _initialize_dwarf2expr prototype.
7933 * dwarf2loc.c: Remove _initialize_dwarf2loc prototype.
7934 * dwarf2read.c: Remove _initialize_dwarf2_read prototype.
7935 * elfread.c: Remove _initialize_elfread prototype.
7936 * exec.c: Remove _initialize_exec prototype.
7937 * extension.c: Remove _initialize_extension prototype.
7938 * f-lang.c: Remove _initialize_f_language prototype.
7939 * f-valprint.c: Remove _initialize_f_valprint prototype.
7940 * fbsd-nat.c: Remove _initialize_fbsd_nat prototype.
7941 * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype.
7942 * filesystem.c: Remove _initialize_filesystem prototype.
7943 * findcmd.c: Remove _initialize_mem_search prototype.
7944 * fork-child.c: Remove _initialize_fork_child prototype.
7945 * frame-base.c: Remove _initialize_frame_base prototype.
7946 * frame-unwind.c: Remove _initialize_frame_unwind prototype.
7947 * frame.c: Remove _initialize_frame prototype.
7948 * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype.
7949 * frv-tdep.c: Remove _initialize_frv_tdep prototype.
7950 * ft32-tdep.c: Remove _initialize_ft32_tdep prototype.
7951 * gcore.c: Remove _initialize_gcore prototype.
7952 * gdb_bfd.c: Remove _initialize_gdb_bfd prototype.
7953 * gdbarch.c: Regenerate.
7954 * gdbarch.sh: Remove _initialize_gdbarch prototype.
7955 * gdbtypes.c: Remove _initialize_gdbtypes prototype.
7956 * gnu-nat.c: Remove _initialize_gnu_nat prototype.
7957 * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype.
7958 * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype.
7959 * go-lang.c: Remove _initialize_go_language prototype.
7960 * go32-nat.c: Remove _initialize_go32_nat prototype.
7961 * guile/guile.c: Remove _initialize_guile prototype.
7962 * h8300-tdep.c: Remove _initialize_h8300_tdep prototype.
7963 * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype.
7964 * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype.
7965 * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype.
7966 * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype.
7967 * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype.
7968 * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype.
7969 * hppa-tdep.c: Remove _initialize_hppa_tdep prototype.
7970 * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype.
7971 * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep
7973 * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep
7975 * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype.
7976 * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype.
7977 * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype.
7978 * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype.
7979 * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype.
7980 * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype.
7981 * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype.
7982 * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype.
7983 * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype.
7984 * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype.
7985 * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype.
7986 * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype.
7987 * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype.
7988 * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
7989 * i386-tdep.c: Remove _initialize_i386_tdep prototype.
7990 * i386-windows-nat.c: Remove _initialize_i386_windows_nat
7992 * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame
7994 * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype.
7995 * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype.
7996 * ia64-tdep.c: Remove _initialize_ia64_tdep prototype.
7997 * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype.
7998 * infcall.c: Remove _initialize_infcall prototype.
7999 * infcmd.c: Remove _initialize_infcmd prototype.
8000 * inferior.c: Remove _initialize_inferiors prototype.
8001 * inflow.c: Remove _initialize_inflow prototype.
8002 * infrun.c: Remove _initialize_infrun prototype.
8003 * interps.c: Remove _initialize_interpreter prototype.
8004 * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype.
8005 * jit.c: Remove _initialize_jit prototype.
8006 * language.c: Remove _initialize_language prototype.
8007 * linux-fork.c: Remove _initialize_linux_fork prototype.
8008 * linux-nat.c: Remove _initialize_linux_nat prototype.
8009 * linux-tdep.c: Remove _initialize_linux_tdep prototype.
8010 * linux-thread-db.c: Remove _initialize_thread_db prototype.
8011 * lm32-tdep.c: Remove _initialize_lm32_tdep prototype.
8012 * m2-lang.c: Remove _initialize_m2_language prototype.
8013 * m32c-tdep.c: Remove _initialize_m32c_tdep prototype.
8014 * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype.
8015 * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype.
8016 * m32r-tdep.c: Remove _initialize_m32r_tdep prototype.
8017 * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype.
8018 * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
8019 * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
8020 * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype.
8021 * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype.
8022 * m68k-tdep.c: Remove _initialize_m68k_tdep prototype.
8023 * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
8024 * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
8025 * machoread.c: Remove _initialize_machoread prototype.
8026 * macrocmd.c: Remove _initialize_macrocmd prototype.
8027 * macroscope.c: Remove _initialize_macroscope prototype.
8028 * maint.c: Remove _initialize_maint_cmds prototype.
8029 * mdebugread.c: Remove _initialize_mdebugread prototype.
8030 * memattr.c: Remove _initialize_mem prototype.
8031 * mep-tdep.c: Remove _initialize_mep_tdep prototype.
8032 * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype.
8033 * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype.
8034 * mi/mi-interp.c: Remove _initialize_mi_interp prototype.
8035 * mi/mi-main.c: Remove _initialize_mi_main prototype.
8036 * microblaze-linux-tdep.c: Remove
8037 _initialize_microblaze_linux_tdep prototype.
8038 * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype.
8039 * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype.
8040 * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype.
8041 * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype.
8042 * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype.
8043 * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype.
8044 * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype.
8045 * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype.
8046 * mips-tdep.c: Remove _initialize_mips_tdep prototype.
8047 * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype.
8048 * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep
8050 * mipsread.c: Remove _initialize_mipsread prototype.
8051 * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep
8053 * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype.
8054 * moxie-tdep.c: Remove _initialize_moxie_tdep prototype.
8055 * msp430-tdep.c: Remove _initialize_msp430_tdep prototype.
8056 * mt-tdep.c: Remove _initialize_mt_tdep prototype.
8057 * nds32-tdep.c: Remove _initialize_nds32_tdep prototype.
8058 * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep
8060 * nios2-tdep.c: Remove _initialize_nios2_tdep prototype.
8061 * nto-procfs.c: Remove _initialize_procfs prototype.
8062 * nto-tdep.c: Remove _initialize_nto_tdep prototype.
8063 * objc-lang.c: Remove _initialize_objc_language prototype.
8064 * objfiles.c: Remove _initialize_objfiles prototype.
8065 * observer.c: Remove observer_test_first_notification_function,
8066 observer_test_second_notification_function,
8067 observer_test_third_notification_function, and
8068 _initialize_observer prototypes.
8069 * opencl-lang.c: Remove _initialize_opencl_language prototypes.
8070 * osabi.c: Remove _initialize_gdb_osabi prototype.
8071 * osdata.c: Remove _initialize_osdata prototype.
8072 * p-valprint.c: Remove _initialize_pascal_valprint prototype.
8073 * parse.c: Remove _initialize_parse prototype.
8074 * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype.
8075 * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype.
8076 * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype.
8077 * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype.
8078 * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype.
8079 * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype.
8080 * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype.
8081 * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype.
8082 * printcmd.c: Remove _initialize_printcmd prototype.
8083 * probe.c: Remove _initialize_probe prototype.
8084 * proc-api.c: Remove _initialize_proc_api prototype.
8085 * proc-events.c: Remove _initialize_proc_events prototype.
8086 * proc-service.c: Remove _initialize_proc_service prototype.
8087 * procfs.c: Remove _initialize_procfs prototype.
8088 * psymtab.c: Remove _initialize_psymtab prototype.
8089 * python/python.c: Remove _initialize_python prototype.
8090 * ravenscar-thread.c: Remove _initialize_ravenscar prototype.
8091 * record-btrace.c: Remove _initialize_record_btrace prototype.
8092 * record-full.c: Remove _initialize_record_full prototype.
8093 * record.c: Remove _initialize_record prototype.
8094 * regcache.c: Remove _initialize_regcache prototype.
8095 * reggroups.c: Remove _initialize_reggroup prototype.
8096 * remote-notif.c: Remove _initialize_notif prototype.
8097 * remote-sim.c: Remove _initialize_remote_sim prototype.
8098 * remote.c: Remove _initialize_remote prototype.
8099 * reverse.c: Remove _initialize_reverse prototype.
8100 * rl78-tdep.c: Remove _initialize_rl78_tdep prototype.
8101 * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype.
8102 * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep
8104 * rs6000-nat.c: Remove _initialize_rs6000_nat prototype.
8105 * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype.
8106 * rust-exp.y: Remove _initialize_rust_exp prototype.
8107 * rx-tdep.c: Remove _initialize_rx_tdep prototype.
8108 * s390-linux-nat.c: Remove _initialize_s390_nat prototype.
8109 * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype.
8110 * score-tdep.c: Remove _initialize_score_tdep prototype.
8111 * selftest-arch.c: Remove _initialize_selftests_foreach_arch
8113 * ser-go32.c: Remove _initialize_ser_dos prototype.
8114 * ser-mingw.c: Remove _initialize_ser_windows prototype.
8115 * ser-pipe.c: Remove _initialize_ser_pipe prototype.
8116 * ser-tcp.c: Remove _initialize_ser_tcp prototype.
8117 * ser-unix.c: Remove _initialize_ser_hardwire prototype.
8118 * serial.c: Remove _initialize_serial prototype.
8119 * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype.
8120 * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype.
8121 * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype.
8122 * sh-tdep.c: Remove _initialize_sh_tdep prototype.
8123 * skip.c: Remove _initialize_step_skip prototype.
8124 * sol-thread.c: Remove _initialize_sol_thread prototype.
8125 * solib-aix.c: Remove _initialize_solib_aix prototype.
8126 * solib-darwin.c: Remove _initialize_darwin_solib prototype.
8127 * solib-dsbt.c: Remove _initialize_dsbt_solib prototype.
8128 * solib-frv.c: Remove _initialize_frv_solib prototype.
8129 * solib-spu.c: Remove _initialize_spu_solib prototype.
8130 * solib-svr4.c: Remove _initialize_svr4_solib prototype.
8131 * solib-target.c: Remove _initialize_solib_target prototype.
8132 * solib.c: Remove _initialize_solib prototype.
8133 * source.c: Remove _initialize_source prototype.
8134 * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype.
8135 * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep
8137 * sparc-nat.c: Remove _initialize_sparc_nat prototype.
8138 * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype.
8139 * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype.
8140 * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep
8142 * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype.
8143 * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype.
8144 * sparc-tdep.c: Remove _initialize_sparc_tdep prototype.
8145 * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat
8147 * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep
8149 * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat
8151 * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep
8153 * sparc64-nat.c: Remove _initialize_sparc64_nat prototype.
8154 * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat
8156 * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep
8158 * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat
8160 * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep
8162 * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep
8164 * spu-linux-nat.c: Remove _initialize_spu_nat prototype.
8165 * spu-multiarch.c: Remove _initialize_spu_multiarch prototype.
8166 * spu-tdep.c: Remove _initialize_spu_tdep prototype.
8167 * stabsread.c: Remove _initialize_stabsread prototype.
8168 * stack.c: Remove _initialize_stack prototype.
8169 * stap-probe.c: Remove _initialize_stap_probe prototype.
8170 * std-regs.c: Remove _initialize_frame_reg prototype.
8171 * symfile-debug.c: Remove _initialize_symfile_debug prototype.
8172 * symfile-mem.c: Remove _initialize_symfile_mem prototype.
8173 * symfile.c: Remove _initialize_symfile prototype.
8174 * symmisc.c: Remove _initialize_symmisc prototype.
8175 * symtab.c: Remove _initialize_symtab prototype.
8176 * target-dcache.c: Remove _initialize_target_dcache prototype.
8177 * target-descriptions.c: Remove _initialize_target_descriptions
8179 * thread.c: Remove _initialize_thread prototype.
8180 * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep
8182 * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype.
8183 * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype.
8184 * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep
8186 * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype.
8187 * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype.
8188 * tracefile.c: Remove _initialize_tracefile prototype.
8189 * tracepoint.c: Remove _initialize_tracepoint prototype.
8190 * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype.
8191 * tui/tui-interp.c: Remove _initialize_tui_interp prototype.
8192 * tui/tui-layout.c: Remove _initialize_tui_layout prototype.
8193 * tui/tui-regs.c: Remove _initialize_tui_regs prototype.
8194 * tui/tui-stack.c: Remove _initialize_tui_stack prototype.
8195 * tui/tui-win.c: Remove _initialize_tui_win prototype.
8196 * tui/tui.c: Remove _initialize_tui prototype.
8197 * typeprint.c: Remove _initialize_typeprint prototype.
8198 * user-regs.c: Remove _initialize_user_regs prototype.
8199 * utils.c: Remove _initialize_utils prototype.
8200 * v850-tdep.c: Remove _initialize_v850_tdep prototype.
8201 * valarith.c: Remove _initialize_valarith prototype.
8202 * valops.c: Remove _initialize_valops prototype.
8203 * valprint.c: Remove _initialize_valprint prototype.
8204 * value.c: Remove _initialize_values prototype.
8205 * varobj.c: Remove _initialize_varobj prototype.
8206 * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype.
8207 * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype.
8208 * vax-tdep.c: Remove _initialize_vax_tdep prototype.
8209 * windows-nat.c: Remove _initialize_windows_nat,
8210 _initialize_check_for_gdb_ini, and _initialize_loadable
8212 * windows-tdep.c: Remove _initialize_windows_tdep prototype.
8213 * xcoffread.c: Remove _initialize_xcoffread prototype.
8214 * xml-support.c: Remove _initialize_xml_support prototype.
8215 * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype.
8216 * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat
8218 * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep
8220 * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype.
8222 2017-09-08 Keith Seitz <keiths@redhat.com>
8224 * dwarf2read.c (struct field_info) <fnfields>: Remove unused
8227 2017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com>
8229 * f-valprint.c (f_val_print): Remove check for one byte
8230 sized integers. Remove printing of character type.
8232 2017-09-08 Frank Penczek <frank.penczek@intel.com>
8233 Christoph Weinmann <christoph.t.weinmann@intel.com>
8234 Bernhard Heckel <bernhard.heckel@intel.com>
8236 * f-typeprint.c (f_type_print_base): Use fprintfi_filtered
8237 to maintain proper indentation when printing pointers/refs.
8239 2017-09-07 Joel Brobecker <brobecker@adacore.com>
8243 2017-09-07 Joel Brobecker <brobecker@adacore.com>
8245 * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell.
8247 2017-09-05 Tom Tromey <tom@tromey.com>
8249 * parse.c (funcall_chain): Now a std::vector.
8250 (start_arglist, end_arglist): Simplify.
8251 (free_funcalls): Remove.
8252 (parse_exp_in_context_1): Remove cleanup.
8254 2017-09-05 Tom Tromey <tom@tromey.com>
8256 * go-exp.y (go_parse): Don't create a cleanup.
8258 2017-09-05 Tom Tromey <tom@tromey.com>
8260 * d-exp.y (PrimaryExpression): Use std::string.
8261 (d_parse): Don't create a cleanup.
8263 2017-09-05 Tom Tromey <tom@tromey.com>
8265 * utils.c (do_clear_parser_state): Remove.
8266 (make_cleanup_clear_parser_state): Remove.
8267 * p-exp.y (pascal_parse): Use scoped_restore.
8268 * m2-exp.y (m2_parse): Use scoped_restore.
8269 * f-exp.y (f_parse): Use scoped_restore.
8270 * d-exp.y (d_parse): Use scoped_restore.
8271 * c-exp.y (c_parse): Use scoped_restore.
8272 * ada-exp.y (ada_parse): Use scoped_restore.
8273 * utils.h (make_cleanup_clear_parser_state): Remove.
8275 2017-09-06 Keith Seitz <keiths@redhat.com>
8277 * dwarf2read.c (dw2_linkage_name_attr): New function.
8278 (dw2_linkage_name): New function.
8279 (dwarf2_compute_name, dwarf2_physname, read_call_site_scope)
8280 (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name.
8281 (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr.
8283 2017-09-06 Kamil Rytarowski <n54@gmx.com>
8285 * config/djgpp/djconfig.sh: Correct shell portability issue.
8287 2017-09-06 Kamil Rytarowski <n54@gmx.com>
8289 * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD.
8291 2017-09-06 John Baldwin <jhb@FreeBSD.org>
8293 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
8294 * NEWS: Mention new FreeBSD/mips native configuration.
8295 * configure.host: Add aarch64*-*-freebsd*.
8296 * configure.nat: Likewise.
8297 * aarch64-fbsd-nat.c: New file.
8299 2017-09-06 John Baldwin <jhb@FreeBSD.org>
8301 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o.
8302 (ALLDEPFILES): Add aarch64-fbsd-tdep.c.
8303 * NEWS: Mention new FreeBSD/aarch64 target.
8304 * configure.tgt: Add aarch64*-*-freebsd*.
8305 * aarch64-fbsd-tdep.c: New file.
8306 * aarch64-fbsd-tdep.h: New file.
8308 2017-09-06 Kamil Rytarowski <n54@gmx.com>
8310 * MAINTAINERS (Write After Approval): Add Kamil Rytarowski.
8312 2017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
8314 * parse.c (find_minsym_type_and_address): Don't relocate addresses
8317 2017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8319 * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
8322 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
8324 * infrun.c (follow_exec): Call add_thread after
8325 target_find_description.
8327 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
8329 * infrun.c (handle_inferior_event_1): When exec'ing, read
8330 stop_pc after follow_exec.
8332 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
8334 * remote.c (process_g_packet): Update error message.
8336 2017-09-05 Yao Qi <yao.qi@linaro.org>
8338 * configure.tgt (gdb_target_obs): Add i386.o for x86_64-*
8341 2017-09-05 Pedro Alves <palves@redhat.com>
8343 * eval.c (eval_call, evaluate_funcall): New functions, factored
8345 (evaluate_subexp_standard): ... this.
8347 2017-09-05 Yao Qi <yao.qi@linaro.org>
8349 * amd64-tdep.c (amd64_target_description): Create target
8351 (_initialize_amd64_tdep): Don't call functions
8352 initialize_tdesc_amd64_*. Add self tests.
8353 * arch/amd64.c (amd64_create_target_description): Add parameter
8354 is_linux. Call set_tdesc_osabi if is_linux is true.
8355 * arch/amd64.h (amd64_create_target_description): Update the
8357 * arch/i386.c (i386_create_target_description): Add parameter
8358 is_linux. Call set_tdesc_osabi if is_linux is true.
8359 * arch/i386.h (i386_create_target_description): Update
8361 * configure.tgt: Add i386.o to gdb_target_obs.
8362 * features/Makefile (XMLTOC): Remove i386/*.xml.
8363 * features/i386/amd64-avx-avx512.c: Remove.
8364 * features/i386/amd64-avx-mpx-avx512-pku.c: Remove.
8365 * features/i386/amd64-avx-mpx.c: Remove.
8366 * features/i386/amd64-avx.c: Remove.
8367 * features/i386/amd64-mpx.c: Remove.
8368 * features/i386/amd64.c: Remove.
8369 * features/i386/i386-avx-avx512.c: Remove.
8370 * features/i386/i386-avx-mpx-avx512-pku.c: Remove.
8371 * features/i386/i386-avx-mpx.c: Remove.
8372 * features/i386/i386-avx.c: Remove.
8373 * features/i386/i386-mmx.c: Remove.
8374 * features/i386/i386-mpx.c: Remove.
8375 * features/i386/i386.c: Remove.
8376 * i386-tdep.c: Don't include features/i386/i386*.c., include
8377 target-descriptions.h and arch/i386.h.
8378 (i386_target_description): Create target descriptions.
8379 (i386_gdbarch_init): Don't call initialize_tdesc_i386_*
8380 functions. Do self tests.
8382 2017-09-05 Yao Qi <yao.qi@linaro.org>
8384 * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml.
8385 * features/i386/amd64-avx-avx512-linux.c: Removed.
8386 * features/i386/amd64-avx-linux.c: Removed.
8387 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed.
8388 * features/i386/amd64-avx-mpx-linux.c: Removed.
8389 * features/i386/amd64-linux.c: Removed.
8390 * features/i386/amd64-mpx-linux.c: Removed.
8391 * features/i386/x32-avx-avx512-linux.c: Removed.
8392 * features/i386/x32-avx-linux.c: Removed.
8393 * features/i386/x32-linux.c: Removed.
8395 2017-09-05 Yao Qi <yao.qi@linaro.org>
8397 * amd64-linux-tdep.c: Include arch/amd64.h. Don't include
8399 (amd64_linux_read_description): Call
8400 amd64_create_target_description.
8401 * arch/amd64.c: New file.
8402 * arch/amd64.h: New file.
8403 * configure.tgt (x86_64-*-linux*): Append amd64.o.
8404 * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o.
8406 2017-09-05 Yao Qi <yao.qi@linaro.org>
8408 * amd64-linux-tdep.c: Don't include amd64-XXX-linux and
8409 x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c.
8410 (amd64_linux_read_description): Create target descriptions.
8411 (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX
8412 functions. Add unit tests.
8413 * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and
8415 * features/i386/64bit-avx.c: Generated.
8416 * features/i386/64bit-avx512.c: Generated.
8417 * features/i386/64bit-core.c: Generated.
8418 * features/i386/64bit-linux.c: Generated.
8419 * features/i386/64bit-mpx.c: Generated.
8420 * features/i386/64bit-pkeys.c: Generated.
8421 * features/i386/64bit-segments.c: Generated.
8422 * features/i386/64bit-sse.c: Generated.
8423 * features/i386/x32-core.c: Generated.
8424 * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature
8425 c files for amd64-linux and x32-linux.
8427 2017-09-05 Yao Qi <yao.qi@linaro.org>
8429 * amd64-linux-tdep.c (amd64_linux_read_description): New
8431 (amd64_linux_core_read_description): Call
8432 amd64_linux_read_description.
8433 (amd64_linux_init_abi): Likewise.
8434 (amd64_x32_linux_init_abi): Likewise.
8435 * amd64-linux-tdep.h (amd64_linux_read_description): Declare.
8436 * x86-linux-nat.c (x86_linux_read_description): Call
8437 amd64_linux_read_description.
8439 2017-09-05 Yao Qi <yao.qi@linaro.org>
8441 * amd64-linux-tdep.c (amd64_linux_core_read_description): Update
8444 2017-09-05 Yao Qi <yao.qi@linaro.org>
8446 * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml.
8447 * features/i386/i386-avx-avx512-linux.c: Remove.
8448 * features/i386/i386-avx-linux.c: Remove.
8449 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove.
8450 * features/i386/i386-avx-mpx-linux.c: Remove.
8451 * features/i386/i386-linux.c: Remove.
8452 * features/i386/i386-mmx-linux.c: Remove.
8453 * features/i386/i386-mpx-linux.c: Remove.
8455 2017-09-05 Yao Qi <yao.qi@linaro.org>
8457 * Makefile.in (ALL_TARGET_OBS): Add i386.o.
8458 (SFILES): Add arch/i386.c.
8459 (HFILES_NO_SRCDIR): Add arch/i386.h.
8460 * arch/i386.c: New file.
8461 * arch/i386.h: New file.
8462 * arch/tdesc.h (allocate_target_description): Declare.
8463 (set_tdesc_architecture): Declare.
8464 (set_tdesc_osabi): Declare.
8465 * configure.tgt (i[34567]86-*-linux*): Add i386.o.
8466 * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c.
8467 include arch/i386.h.
8468 (i386_linux_read_description): Remove code and call
8469 i386_create_target_description.
8470 (set_tdesc_architecture): New function.
8471 (set_tdesc_osabi): New function.
8472 * target-descriptions.h (allocate_target_description): Remove.
8474 2017-09-05 Yao Qi <yao.qi@linaro.org>
8476 * arch/tdesc.h (tdesc_create_feature): Add an argument xml.
8477 * target-descriptions.c (tdesc_create_feature): Likewise, and
8479 * features/i386/32bit-avx.c: Re-generated.
8480 * features/i386/32bit-avx512.c: Re-generated.
8481 * features/i386/32bit-core.c: Re-generated.
8482 * features/i386/32bit-linux.c: Re-generated.
8483 * features/i386/32bit-mpx.c: Re-generated.
8484 * features/i386/32bit-pkeys.c: Re-generated.
8485 * features/i386/32bit-sse.c: Re-generated.
8487 2017-09-05 Yao Qi <yao.qi@linaro.org>
8489 * regformats/regdef.h (struct reg): Override operator == and !=.
8491 2017-09-05 Yao Qi <yao.qi@linaro.org>
8493 * arch/tdesc.h: New file.
8494 * regformats/regdat.sh: Generate code using tdesc_create_reg.
8495 * target-descriptions.c: Update comments.
8496 * target-descriptions.h: Include "arch/tdesc.h". Remove the
8498 * features/i386/32bit-avx.c: Re-generated.
8499 * features/i386/32bit-avx512.c: Re-generated.
8500 * features/i386/32bit-core.c: Re-generated.
8501 * features/i386/32bit-linux.c: Re-generated.
8502 * features/i386/32bit-mpx.c: Re-generated.
8503 * features/i386/32bit-pkeys.c: Re-generated.
8504 * features/i386/32bit-sse.c: Re-generated.
8506 2017-09-05 Yao Qi <yao.qi@linaro.org>
8508 * regformats/regdat.sh: Update generated code.
8510 2017-09-05 Yao Qi <yao.qi@linaro.org>
8512 * regformats/regdat.sh: Adjust code order.
8514 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
8516 * expprint.c (dump_subexp_body_standard): Use constant format
8517 string in fprintf_filtered call.
8519 2017-09-04 John Baldwin <jhb@FreeBSD.org>
8521 * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and
8523 * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX.
8525 2017-09-04 John Baldwin <jhb@FreeBSD.org>
8527 * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H.
8529 2017-09-04 John Baldwin <jhb@FreeBSD.org>
8531 * bsd-kvm.o: Define _KMEMUSER.
8532 * configure.ac: Define _KMEMUSER when checking for "struct lwp".
8533 * configure: Regenerate.
8535 2017-09-04 John Baldwin <jhb@FreeBSD.org>
8537 * amd64-fbsd-nat.c: Add include of "x86-xstate.h".
8538 * i386-fbsd-nat.c: Likewise.
8540 2017-09-04 John Baldwin <jhb@FreeBSD.org>
8542 * unittests/array-view-selftests.c: Add include of <array>.
8544 2017-09-04 John Baldwin <jhb@FreeBSD.org>
8546 * spu-tdep.c (flush_ea_cache): Add missing argument to
8547 call_function_by_hand.
8549 2017-09-04 Pedro Alves <palves@redhat.com>
8551 * NEWS (Safer support for debugging with no debug info): New.
8553 2017-09-04 Pedro Alves <palves@redhat.com>
8555 * c-exp.y (function_method, function_method_void): Add current
8556 instance flags to TYPE_INSTANCE.
8557 * dwarf2read.c (check_modifier): New.
8558 (compute_delayed_physnames): Assert that only C++ adds delayed
8559 physnames. Mark fn_fields as const/volatile depending on
8561 * eval.c (make_params): New type_instance_flags parameter. Use
8562 it as the new type's instance flags.
8563 (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance
8564 flags element and pass it to make_params.
8565 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle
8566 instance flags element.
8567 (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise.
8568 * gdbtypes.h: Include "enum-flags.h".
8569 (type_instance_flags): New enum-flags type.
8570 (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC)
8571 (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean.
8572 * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust.
8573 (follow_type_instance_flags): New function.
8574 (operator_check_standard) <TYPE_INSTANCE>: Adjust.
8575 * parser-defs.h (follow_type_instance_flags): Declare.
8576 * valops.c (value_struct_elt_for_reference): const/volatile must
8579 2017-09-04 Pedro Alves <palves@redhat.com>
8581 * cp-namespace.c (cp_search_static_and_baseclasses): Handle
8582 function/method scopes; lookup the nested name as a function local
8585 2017-09-04 Pedro Alves <palves@redhat.com>
8587 (%type <voidval>): Add function_method.
8588 * c-exp.y (exp): New production for calls with no arguments.
8589 (function_method, function_method_void_or_typelist): New
8591 (exp): New production for "method()::static_var".
8592 * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR.
8593 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
8594 Handle OP_FUNC_STATIC_VAR.
8595 * parse.c (operator_length_standard):
8596 Handle OP_FUNC_STATIC_VAR.
8598 2017-09-04 Pedro Alves <palves@redhat.com>
8600 * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS
8602 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
8604 * parse.c (operator_length_standard, operator_check_standard):
8606 * std-operator.def (UNOP_MEMVAL_TLS): Delete.
8608 2017-09-04 Pedro Alves <palves@redhat.com>
8610 * ax-gdb.c: Include "typeprint.h".
8611 (gen_expr_for_cast): New function.
8612 (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it.
8613 <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's
8615 * dwarf2read.c (new_symbol_full): Fallback to int instead of
8616 nodebug_data_symbol.
8617 * eval.c: Include "typeprint.h".
8618 (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>:
8619 Error out if symbol has unknown type.
8620 <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to
8621 evaluate_subexp_for_cast.
8622 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle
8624 (evaluate_subexp_for_cast): New function.
8625 * gdbtypes.c (init_nodebug_var_type): New function.
8626 (objfile_type): Use it to initialize types of variables with no
8628 * typeprint.c (error_unknown_type): New.
8629 * typeprint.h (error_unknown_type): New declaration.
8630 * compile/compile-c-types.c (convert_type_basic): Handle
8631 TYPE_CODE_ERROR; warn and fallback to int for variables with
8634 2017-09-04 Pedro Alves <palves@redhat.com>
8636 * eval.c (evaluate_var_value): New function, factored out from ...
8637 (evaluate_subexp_standard): ... here.
8639 2017-09-04 Pedro Alves <palves@redhat.com>
8641 * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>:
8642 Remove useless assignments to 'op'.
8644 2017-09-04 Pedro Alves <palves@redhat.com>
8646 * eval.c (eval_skip_value): New function.
8647 (evaluate_subexp_standard): Use it.
8649 2017-09-04 Pedro Alves <palves@redhat.com>
8651 * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract
8652 function name from symbol/minsym and pass it to
8653 error_call_unknown_return_type.
8655 2017-09-04 Pedro Alves <palves@redhat.com>
8657 * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE.
8658 * ax-gdb.c (gen_msym_var_ref): New function.
8659 (gen_expr): Handle OP_VAR_MSYM_VALUE.
8660 * eval.c (evaluate_var_msym_value): New function.
8661 * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE.
8662 <OP_FUNCALL>: Extract function name from symbol/minsym and pass it
8663 to call_function_by_hand.
8664 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
8665 Handle OP_VAR_MSYM_VALUE.
8666 (union exp_element) <msymbol>: New field.
8667 * minsyms.h (struct type): Forward declare.
8668 (find_minsym_type_and_address): Declare.
8669 * parse.c (write_exp_elt_msym): New function.
8670 (write_exp_msymbol): Delete, refactored as ...
8671 (find_minsym_type_and_address): ... this new function.
8672 (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE.
8673 (operator_length_standard, operator_check_standard): Handle
8675 * std-operator.def (OP_VAR_MSYM_VALUE): New.
8677 2017-09-04 Pedro Alves <palves@redhat.com>
8679 * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle
8680 TYPE_GNU_IFUNC specially here. Throw error if return type is
8682 * ada-typeprint.c (print_func_type): Handle functions with unknown
8684 * c-typeprint.c (c_type_print_base): Handle functions and methods
8685 with unknown return type.
8686 * compile/compile-c-symbols.c (convert_symbol_bmsym)
8687 <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol.
8688 * compile/compile-c-types.c: Include "objfiles.h".
8689 (convert_func): For functions with unknown return type, warn and
8691 * compile/compile-object-run.c (compile_object_run): Adjust call
8692 to call_function_by_hand_dummy.
8693 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to
8694 call_function_by_hand.
8695 * eval.c (evaluate_subexp_standard): Adjust calls to
8696 call_function_by_hand. Handle functions and methods with unknown
8697 return type. Pass expect_type to call_function_by_hand.
8698 * f-typeprint.c (f_type_print_base): Handle functions with unknown
8700 * gcore.c (call_target_sbrk): Adjust call to
8701 call_function_by_hand.
8702 * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL
8703 return type instead of int. Make nodebug_text_gnu_ifunc_symbol be
8704 an integer address type instead of nodebug.
8705 * guile/scm-value.c (gdbscm_value_call): Adjust call to
8706 call_function_by_hand.
8707 * infcall.c (error_call_unknown_return_type): New function.
8708 (call_function_by_hand): New "default_return_type" parameter.
8710 (call_function_by_hand_dummy): New "default_return_type"
8711 parameter. Use it instead of defaulting to int. If there's no
8712 default and the return type is unknown, throw an error. If
8713 there's a default return type, and the called function has no
8714 debug info, then assume the function is prototyped.
8715 * infcall.h (call_function_by_hand, call_function_by_hand_dummy):
8716 New "default_return_type" parameter.
8717 (error_call_unknown_return_type): New declaration.
8718 * linux-fork.c (call_lseek): Cast return type of lseek.
8719 (inferior_call_waitpid, checkpoint_command): Adjust calls to
8720 call_function_by_hand.
8721 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust
8722 calls to call_function_by_hand.
8723 * m2-typeprint.c (m2_procedure): Handle functions with unknown
8725 * objc-lang.c (lookup_objc_class, lookup_child_selector)
8726 (value_nsstring, print_object_command): Adjust calls to
8727 call_function_by_hand.
8728 * p-typeprint.c (pascal_type_print_varspec_prefix): Handle
8729 functions with unknown return type.
8730 (pascal_type_print_func_varspec_suffix): New function.
8731 (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC,
8732 TYPE_CODE_METHOD>: Use it.
8733 * python/py-value.c (valpy_call): Adjust call to
8734 call_function_by_hand.
8735 * rust-lang.c (rust_evaluate_funcall): Adjust call to
8736 call_function_by_hand.
8737 * valarith.c (value_x_binop, value_x_unop): Adjust calls to
8738 call_function_by_hand.
8739 * valops.c (value_allocate_space_in_inferior): Adjust call to
8740 call_function_by_hand.
8741 * typeprint.c (type_print_unknown_return_type): New function.
8742 * typeprint.h (type_print_unknown_return_type): New declaration.
8744 2017-09-04 Pedro Alves <palves@redhat.com>
8746 * gdbtypes.c (lookup_function_type_with_arguments): Mark function
8747 types with more than one parameter as prototyped.
8749 2017-09-04 Pedro Alves <palves@redhat.com>
8751 * cli/cli-cmds.c (print_disassembly, disassemble_current_function)
8752 (disassemble_command): Use gdb_disassembly_flags instead of bare
8754 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn)
8755 (dump_insns, do_mixed_source_and_assembly_deprecated)
8756 (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly):
8757 Use gdb_disassembly_flags instead of bare int.
8758 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN)
8759 (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME)
8760 (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE)
8761 (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're...
8762 (enum gdb_disassembly_flag): ... values of this new enumeration.
8763 (gdb_disassembly_flags): Define.
8765 (gdb_pretty_print_disassembler::pretty_print_insn): Use it.
8766 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use
8767 gdb_disassembly_flags instead of bare int.
8768 * record-btrace.c (btrace_insn_history)
8769 (record_btrace_insn_history, record_btrace_insn_history_range)
8770 (record_btrace_insn_history_from): Use gdb_disassembly_flags
8771 instead of bare int.
8772 * record.c (get_insn_history_modifiers, cmd_record_insn_history):
8773 Use gdb_disassembly_flags instead of bare int.
8774 * target-debug.h (target_debug_print_gdb_disassembly_flags):
8776 * target-delegates.c: Regenerate.
8777 * target.c (target_insn_history, target_insn_history_from)
8778 (target_insn_history_range): Use gdb_disassembly_flags instead of
8780 * target.h: Include "disasm.h".
8781 (struct target_ops) <to_insn_history, to_insn_history_from,
8782 to_insn_history_range>: Use gdb_disassembly_flags instead of bare
8784 (target_insn_history, target_insn_history_from)
8785 (target_insn_history_range): Use gdb_disassembly_flags instead of
8788 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
8790 * cli/cli-script.c (build_command_line): For if/while commands,
8791 check whether args is empty.
8793 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
8795 * cli/cli-script.h (enum misc_command_type): Move from defs.h.
8796 (enum command_control_type): Likewise.
8797 (struct command_line): Likewise.
8798 (free_command_lines): Likewise.
8799 (struct command_lines_deleter): Likewise.
8800 (command_line_up): Likewise.
8801 (read_command_lines): Likewise.
8802 (read_command_lines_1): Likewise.
8803 * defs.h (enum misc_command_type): Move to cli/cli-script.h.
8804 (enum command_control_type): Likewise.
8805 (struct command_line): Likewise.
8806 (free_command_lines): Likewise.
8807 (struct command_lines_deleter): Likewise.
8808 (command_line_up): Likewise.
8809 (read_command_lines): Likewise.
8810 (read_command_lines_1): Likewise.
8811 * breakpoint.h: Include cli/cli-script.h.
8812 * extension-priv.h: Likewise.
8813 * gdbcmd.h: Likewise.
8815 2017-09-04 Pedro Alves <palves@redhat.com>
8817 * ada-lang.c (is_known_support_routine): Move sal declaration to
8818 where it is initialized.
8819 * breakpoint.c (create_internal_breakpoint, init_catchpoint)
8820 (parse_breakpoint_sals, decode_static_tracepoint_spec)
8821 (clear_command, update_static_tracepoint): Remove init_sal
8822 references. Move declarations closer to initializations.
8823 * cli/cli-cmds.c (list_command): Move sal declarations closer to
8825 * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal
8826 references. Move sal declarations closer to initializations.
8827 * frame.c (find_frame_sal): Return a symtab_and_line via function
8828 return instead of output parameter. Remove init_sal references.
8829 * frame.h (find_frame_sal): Return a symtab_and_line via function
8830 return instead of output parameter.
8831 * guile/scm-frame.c (gdbscm_frame_sal): Adjust.
8832 * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new
8834 (gdbscm_find_pc_line): Remove init_sal reference.
8835 * infcall.c (call_function_by_hand_dummy): Remove init_sal
8836 references. Move declarations closer to initializations.
8837 * infcmd.c (set_step_frame): Update. Move declarations closer to
8839 (finish_backward): Remove init_sal references. Move declarations
8840 closer to initializations.
8841 * infrun.c (process_event_stop_test, handle_step_into_function)
8842 (insert_hp_step_resume_breakpoint_at_frame)
8843 (insert_step_resume_breakpoint_at_caller): Likewise.
8844 * linespec.c (create_sals_line_offset, decode_digits_ordinary)
8845 (symbol_to_sal): Likewise.
8846 * probe.c (parse_probes_in_pspace): Remove init_sal reference.
8847 * python/py-frame.c (frapy_find_sal): Move sal declaration closer
8848 to its initialization.
8849 * reverse.c (save_bookmark_command): Use new/delete. Remove
8850 init_sal references. Move declarations closer to initializations.
8851 * source.c (get_current_source_symtab_and_line): Remove brace
8853 (set_current_source_symtab_and_line): Now takes the sal by const
8854 reference. Remove brace initialization.
8855 (line_info): Remove init_sal reference.
8856 * source.h (set_current_source_symtab_and_line): Now takes a
8857 symtab_and_line via const reference.
8858 * stack.c (set_current_sal_from_frame): Adjust.
8859 (print_frame_info): Adjust.
8860 (get_last_displayed_sal): Return the sal via function return
8861 instead of via output parameter. Simplify.
8862 (frame_info): Adjust.
8863 * stack.h (get_last_displayed_sal): Return the sal via function
8864 return instead of via output parameter.
8865 * symtab.c (init_sal): Delete.
8866 (find_pc_sect_line): Remove init_sal references. Move
8867 declarations closer to initializations.
8868 (find_function_start_sal): Remove init_sal references. Move
8869 declarations closer to initializations.
8870 * symtab.h (struct symtab_and_line): In-class initialize all
8872 * tracepoint.c (set_traceframe_context)
8873 (print_one_static_tracepoint_marker): Remove init_sal references.
8874 Move declarations closer to initializations.
8875 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust.
8876 * tui/tui-stack.c (tui_show_frame_info): Adjust. Move
8877 declarations closer to initializations.
8878 * tui/tui-winsource.c (tui_update_source_window_as_is): Remove
8879 init_sal references. Adjust.
8881 2017-09-04 Pedro Alves <palves@redhat.com>
8883 * ax-gdb.c (agent_command_1): Use range-for.
8884 * break-catch-throw.c (re_set_exception_catchpoint): Update.
8885 * breakpoint.c: Include "common/array-view.h".
8886 (init_breakpoint_sal, create_breakpoint_sal): Change sals
8887 parameter from struct symtabs_and_lines to
8888 array_view<symtab_and_line>. Adjust. Use range-for. Update.
8889 (breakpoint_sals_to_pc): Change sals parameter from struct
8890 symtabs_and_lines to std::vector reference.
8891 (check_fast_tracepoint_sals): Change sals parameter from struct
8892 symtabs_and_lines to std::array_view. Use range-for.
8893 (decode_static_tracepoint_spec): Return a std::vector instead of
8894 symtabs_and_lines. Update.
8895 (create_breakpoint): Update.
8896 (break_range_command, until_break_command, clear_command): Update.
8897 (base_breakpoint_decode_location, bkpt_decode_location)
8898 (bkpt_probe_create_sals_from_location)
8899 (bkpt_probe_decode_location, tracepoint_decode_location)
8900 (tracepoint_probe_decode_location)
8901 (strace_marker_create_sals_from_location): Return a std::vector
8902 instead of symtabs_and_lines.
8903 (strace_marker_create_breakpoints_sal): Update.
8904 (strace_marker_decode_location): Return a std::vector instead of
8905 symtabs_and_lines. Update.
8906 (update_breakpoint_locations): Change struct symtabs_and_lines
8907 parameters to gdb::array_view. Adjust.
8908 (location_to_sals): Return a std::vector instead of
8909 symtabs_and_lines. Update.
8910 (breakpoint_re_set_default): Use std::vector instead of struct
8912 (decode_location_default): Return a std::vector instead of
8913 symtabs_and_lines. Update.
8914 * breakpoint.h: Include "common/array-view.h".
8915 (struct breakpoint_ops) <decode_location>: Now returns a
8916 std::vector instead of returning a symtabs_and_lines via output
8918 (update_breakpoint_locations): Change sals parameters to use
8920 * cli/cli-cmds.c (edit_command, list_command): Update to use
8921 std::vector and gdb::array_view.
8922 (ambiguous_line_spec): Adjust to use gdb::array_view and
8924 (compare_symtabs): Rename to ...
8925 (cmp_symtabs): ... this. Change parameters to symtab_and_line
8926 const reference and adjust.
8927 (filter_sals): Rewrite using std::vector and standard algorithms.
8928 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify.
8929 (jump_command): Update to use std::vector.
8930 * linespec.c (struct linespec_state) <canonical_names>: Update
8932 (add_sal_to_sals_basic): Delete.
8933 (add_sal_to_sals, filter_results, convert_results_to_lsals)
8934 (decode_line_2, create_sals_line_offset)
8935 (convert_address_location_to_sals, convert_linespec_to_sals)
8936 (convert_explicit_location_to_sals, parse_linespec)
8937 (event_location_to_sals, decode_line_full, decode_line_1)
8938 (decode_line_with_current_source)
8939 (decode_line_with_last_displayed, decode_objc)
8940 (decode_digits_list_mode, decode_digits_ordinary, minsym_found)
8941 (linespec_result::~linespec_result): Adjust to use std::vector
8942 instead of symtabs_and_lines.
8943 * linespec.h (linespec_sals::sals): Now a std::vector.
8944 (struct linespec_result): Use std::vector, bool, and in-class
8946 (decode_line_1, decode_line_with_current_source)
8947 (decode_line_with_last_displayed): Return std::vector.
8948 * macrocmd.c (info_macros_command): Use std::vector.
8949 * mi/mi-main.c (mi_cmd_trace_find): Use std::vector.
8950 * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use
8952 * probe.h (parse_probes): Return a std::vector.
8953 * python/python.c (gdbpy_decode_line): Use std::vector and
8955 * source.c (select_source_symtab, line_info): Use std::vector.
8956 * stack.c (func_command): Use std::vector.
8957 * symtab.h (struct symtabs_and_lines): Delete.
8958 * tracepoint.c (tfind_line_command, scope_info): Use std::vector.
8960 2017-09-04 Pedro Alves <palves@redhat.com>
8962 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8963 unittests/array-view-selftests.c.
8964 (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o.
8965 * common/array-view.h: New file.
8966 * unittests/array-view-selftests.c: New file.
8968 2017-09-04 Pedro Alves <palves@redhat.com>
8970 * cli/cli-cmds.c (edit_command): Pass message to
8971 ambiguous_line_spec.
8972 (list_command): Pass message to ambiguous_line_spec. Say
8973 "first"/"last" instead of "start" and "end" to be consistent with
8975 (ambiguous_line_spec): Add 'format' and vararg parameters. Use
8976 them to print formatted message.
8978 2017-09-04 Pedro Alves <palves@redhat.com>
8980 * btrace.c (ftrace_add_pt): Pass btrace_insn to
8981 ftrace_update_insns by reference instead of pointer.
8983 2017-09-04 Yao Qi <yao.qi@linaro.org>
8985 * i386-go32-tdep.c: Include x86-xstate.h.
8986 (i386_go32_init_abi): Call i386_target_description.
8987 * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx
8988 if xcr0 is X86_XSTATE_X87_MASK.
8989 * i386-tdep.h (tdesc_i386): Remove the declaration.
8990 (tdesc_i386_mmx): Likewise.
8992 2017-09-04 Yao Qi <yao.qi@linaro.org>
8994 * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return
8995 X86_XSTATE_SSE_MASK instead of 0.
8997 2017-09-04 Yao Qi <yao.qi@linaro.org>
8999 * amd64-fbsd-nat.c (amd64fbsd_read_description): Call
9000 i386_target_description.
9001 * i386-fbsd-nat.c (i386fbsd_read_description): Call
9002 i386_target_description.
9003 * i386-tdep.c (i386_gdbarch_init): Likewise.
9005 2017-09-04 Yao Qi <yao.qi@linaro.org>
9007 * amd64-darwin-tdep.c: Include "x86-xstate.h".
9008 (x86_darwin_init_abi_64): Call amd64_target_description.
9009 * amd64-dicos-tdep.c: Likewise.
9010 * amd64-fbsd-nat.c: Likewise.
9011 * amd64-fbsd-tdep.c: Likewise.
9012 * amd64-nbsd-tdep.c: Likewise.
9013 * amd64-obsd-tdep.c: Likewise.
9014 * amd64-sol2-tdep.c: Likewise.
9015 * amd64-windows-tdep.c: Likewise.
9016 * amd64-tdep.h (tdesc_amd64): Remove the declaration.
9018 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
9020 * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove.
9021 (btrace_function) <insn>: Change type to use std::vector.
9022 * btrace.c (ftrace_debug, ftrace_call_num_insn,
9023 ftrace_find_call, ftrace_new_gap, ftrace_update_function,
9024 ftrace_update_insns, ftrace_compute_global_level_offset,
9025 btrace_stitch_bts, btrace_clear, btrace_insn_get,
9026 btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to
9027 change to std::vector.
9028 (ftrace_update_insns): Adjust to change to std::vector, change
9029 type of INSN parameter.
9030 (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns.
9031 * record-btrace.c (btrace_call_history_insn_range,
9032 btrace_compute_src_line_range,
9033 record_btrace_frame_prev_register): Adjust to change to
9035 * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust
9036 to change to std::vector.
9038 2017-09-03 Tom Tromey <tom@tromey.com>
9040 * corefile.c (reopen_exec_file): Use std::string.
9042 2017-09-03 Tom Tromey <tom@tromey.com>
9044 * compile/compile.c (compile_register_name_mangled): Return
9046 * compile/compile-loc2c.c (pushf_register_address): Update.
9047 (pushf_register): Update.
9048 * compile/compile-c-types.c (convert_array): Update.
9049 * compile/compile-c-symbols.c (generate_vla_size): Update.
9050 (error_symbol_once): Use a gdb::unique_xmalloc_ptr.
9051 (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr.
9052 (convert_one_symbol): Update.
9053 (generate_c_for_for_one_variable): Update.
9054 * compile/compile-c-support.c (c_get_range_decl_name): Return a
9056 (generate_register_struct): Update.
9057 * compile/compile-internal.h (c_get_range_decl_name): Return a
9059 (compile_register_name_mangled): Return std::string.
9061 2017-09-03 Tom Tromey <tom@tromey.com>
9063 * utils.c (perror_string): Return a std::string.
9064 (throw_perror_with_name, perror_warning_with_name): Update.
9066 2017-09-03 Tom Tromey <tom@tromey.com>
9068 * demangle.c (demangle_command): Use std::string,
9071 2017-09-03 Tom Tromey <tom@tromey.com>
9073 * cli/cli-setshow.c (do_set_command): Use std::string.
9075 2017-09-03 Tom Tromey <tom@tromey.com>
9077 * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr.
9079 2017-09-03 Tom Tromey <tom@tromey.com>
9081 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string.
9083 2017-09-03 Tom Tromey <tom@tromey.com>
9085 * mi/mi-cmd-env.c (env_execute_cli_command): Use
9086 gdb::unique_xmalloc_ptr.
9088 2017-09-03 Tom Tromey <tom@tromey.com>
9090 * thread.c (print_thread_info_1): Use string_printf.
9091 (thread_apply_command, thread_apply_all_command): Use
9094 2017-09-03 Tom Tromey <tom@tromey.com>
9096 * valprint.c (val_print_string): Update.
9097 * gdbcore.h (memory_error_message): Return std::string.
9098 * corefile.c (memory_error_message): Return std::string.
9099 (memory_error): Update.
9100 * breakpoint.c (insert_bp_location): Update.
9102 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
9104 * target/waitstatus.h (target_waitstatus_to_string): Change
9105 return type to std::string.
9106 * target/waitstatus.c (target_waitstatus_to_string): Return
9108 * target.h (target_waitstatus_to_string): Remove declaration.
9109 * infrun.c (resume, clear_proceed_status_thread,
9110 print_target_wait_results, do_target_wait, save_waitstatus,
9111 stop_all_threads): Adjust.
9112 * record-btrace.c (record_btrace_wait): Adjust.
9114 (target_debug_print_struct_target_waitstatus_p): Adjust.
9116 2017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9119 * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED
9122 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
9124 * NEWS (Changes since GDB 8.0): Add entry mentioning new support
9125 for setting/unsetting environment variables on the remote target.
9126 (New remote packets): Add entries for QEnvironmentHexEncoded,
9127 QEnvironmentUnset and QEnvironmentReset.
9128 * common/environ.c (gdb_environ::operator=): Extend method to
9129 handle m_user_set_env_list and m_user_unset_env_list.
9130 (gdb_environ::clear): Likewise.
9131 (match_var_in_string): Change type of first parameter from 'char
9132 *' to 'const char *'.
9133 (gdb_environ::set): Extend method to handle
9134 m_user_set_env_list and m_user_unset_env_list.
9135 (gdb_environ::unset): Likewise.
9136 (gdb_environ::clear_user_set_env): New method.
9137 (gdb_environ::user_set_envp): Likewise.
9138 (gdb_environ::user_unset_envp): Likewise.
9139 * common/environ.h (gdb_environ): Handle m_user_set_env_list and
9140 m_user_unset_env_list on move constructor/assignment.
9141 (unset): Add new default parameter 'update_unset_list = true'.
9142 (clear_user_set_env): New method.
9143 (user_set_envp): Likewise.
9144 (user_unset_envp): Likewise.
9145 (m_user_set_env_list): New std::set.
9146 (m_user_unset_env_list): Likewise.
9147 * common/rsp-low.c (hex2str): New function.
9148 (bin2hex): New overload for bin2hex function.
9149 * common/rsp-low.c (hex2str): New prototype.
9150 (str2hex): New overload prototype.
9151 * remote.c: Include "environ.h". Add QEnvironmentHexEncoded,
9152 QEnvironmentUnset and QEnvironmentReset.
9153 (remote_protocol_features): Add QEnvironmentHexEncoded,
9154 QEnvironmentUnset and QEnvironmentReset packets.
9155 (send_environment_packet): New function.
9156 (extended_remote_environment_support): Likewise.
9157 (extended_remote_create_inferior): Call
9158 extended_remote_environment_support.
9159 (_initialize_remote): Add QEnvironmentHexEncoded,
9160 QEnvironmentUnset and QEnvironmentReset packet configs.
9161 * unittests/environ-selftests.c (gdb_selftest_env_var):
9163 (test_vector_initialization): New function.
9164 (test_init_from_host_environ): Likewise.
9165 (test_reinit_from_host_environ): Likewise.
9166 (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B):
9168 (test_unset_set_empty_vector): Likewise.
9169 (test_vector_clear): Likewise.
9170 (test_std_move): Likewise.
9171 (test_move_constructor):
9172 (test_self_move): Likewise.
9173 (test_set_unset_reset): Likewise.
9174 (run_tests): Rewrite in terms of the functions above.
9176 2017-08-31 Weimin Pan <weimin.pan@oracle.com>
9178 * sparc64-tdep.c (adi_stat_t): Fix comment formatting.
9179 (adi_available): Use a temp variable of type CORE_ADDR as argument
9180 3 when calling target_auxv_search.
9181 (adi_normalize_address): Use masks and xor operators to calculate
9183 (adi_read_versions, adi_write_versions, adi_print_versions)
9184 (do_examine, do_assign): Use paddress.
9186 2017-08-29 John Baldwin <jhb@FreeBSD.org>
9188 * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR.
9189 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR
9190 out of loop and add supply of FIR.
9191 (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and
9194 2017-08-28 Simon Marchi <simon.marchi@ericsson.com>
9197 * cli/cli-script.c (define_command): Don't convert command name
9200 2017-08-25 Joel Brobecker <brobecker@adacore.com>
9202 * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp".
9203 Update all callers accordingly. Remove all code blocks handling
9204 the case where DISPP is not NULL.
9206 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9209 * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow)
9210 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
9211 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const.
9213 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9215 * dwarf2read.c (build_type_psymtabs_reader): New prototype.
9216 (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES.
9217 (read_comp_units_from_section): New parameter abbrev_section, use
9218 read_and_check_comp_unit_head, allocate signatured_type if needed.
9219 (create_all_comp_units): Update read_comp_units_from_section caller.
9221 2017-08-23 Pedro Alves <palves@redhat.com>
9224 * remote.c (add_current_inferior_and_thread): Set inferior_ptid
9225 to null_ptid and switch to thread without reading the registers
9226 after adding the inferior.
9228 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9230 * NEWS (Changes since GDB 8.0): Add set compile-gcc and show
9232 * compile/compile.c (compile_gcc, show_compile_gcc): New.
9233 (compile_to_object): Implement compile_gcc.
9234 (_initialize_compile): Install "set compile-gcc". Initialize
9237 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9239 * compile/compile.c (compile_to_object): Conditionally call
9240 set_verbose. Conditionally call compile or compile_v0.
9242 2017-08-07 Weimin Pan <weimin.pan@oracle.com>
9244 * sparc64-tdep.h: (adi_normalize_address): New export.
9245 * sparc-nat.h: (open_adi_tag_fd): New export.
9246 * sparc64-linux-nat.c: (open_adi_tag_fd): New function.
9247 * sparc64-linux-tdep.c:
9248 (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines.
9249 (sparc64_linux_handle_segmentation_fault): New function.
9250 (sparc64_linux_init_abi): Register
9251 sparc64_linux_handle_segmentation_fault
9252 * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h.
9253 (sparc64_addr_bits_remove): New function.
9254 (sparc64_init_abi): Register sparc64_addr_bits_remove.
9255 (MAX_PROC_NAME_SIZE): New macro.
9256 (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines.
9257 (sparc64adilist): New variable.
9258 (adi_proc_list): New variable.
9259 (find_adi_info): New function.
9260 (add_adi_info): New function.
9261 (get_adi_info_proc): New function.
9262 (get_adi_info): New function.
9263 (info_adi_command): New function.
9264 (read_maps_entry): New function.
9265 (adi_available): New function.
9266 (adi_normalize_address): New function.
9267 (adi_align_address): New function.
9268 (adi_convert_byte_count): New function.
9269 (adi_tag_fd): New function.
9270 (adi_is_addr_mapped): New function.
9271 (adi_read_versions): New function.
9272 (adi_write_versions): New function.
9273 (adi_print_versions): New function.
9274 (do_examine): New function.
9275 (do_assign): New function.
9276 (adi_examine_command): New function.
9277 (adi_assign_command): New function.
9278 (_initialize_sparc64_adi_tdep): New function.
9280 2017-08-22 Simon Marchi <simon.marchi@ericsson.com>
9282 * breakpoint.c (breakpoints_info): Rename to ...
9283 (info_breakpoints_command): ... this.
9284 (watchpoints_info): Rename to ...
9285 (info_watchpoints_command): ... this.
9286 (tracepoints_info): Rename to ...
9287 (info_tracepoints_command): ... this.
9288 (_initialize_breakpoint): Adjust.
9289 * dcache.c (dcache_info): Rename to ...
9290 (info_display_command): ... this.
9291 (_initialize_dcache): Adjust.
9292 * frame.h (args_info): Rename to ...
9293 (info_args_command): ... this.
9294 (locals_info): Rename to ...
9295 (info_locals_command): ... this.
9296 * infcmd.c (nofp_registers_info): Rename to ...
9297 (info_registers_command): ... this.
9298 (float_info): Rename to ...
9299 (info_float_command): ... this.
9300 (program_info): Rename to ...
9301 (info_program_command): ... this.
9302 (all_registers_info): Rename to ...
9303 (info_all_registers_command): ... this.
9304 (vector_info): Rename to ...
9305 (info_vector_command): ... this.
9306 (float_info): Rename to ...
9307 (info_float_command): ... this.
9308 (_initialize_infcmd): Adjust.
9309 * inferior.h (term_info): Rename to ...
9310 (info_terminal_command): ... this.
9311 * inflow.c (term_info): Rename to ...
9312 (info_terminal_command): ... this.
9313 (_initialize_inflow): Adjust.
9314 * infrun.c (signals_info): Rename to ...
9315 (info_signals_command): ... this.
9316 (_initialize_infrun): Adjust.
9317 * objc-lang.c (classes_info): Rename to ...
9318 (info_classes_command): ... this.
9319 (selectors_info): Rename to ...
9320 (info_selectors_command): ... this.
9321 (_initialize_objc_language): Adjust.
9322 * printcmd.c (sym_info): Rename to ...
9323 (info_symbol_command): ... this.
9324 (address_info): Rename to ...
9325 (info_address_command): ... this.
9326 (display_info): Rename to ...
9327 (info_display_command): ... this.
9328 (_initialize_printcmd): Adjust.
9329 * reverse.c (bookmarks_info): Rename to ...
9330 (info_breakpoints_command): ... this.
9331 (_initialize_reverse): Adjust.
9332 * ser-go32.c (dos_info): Rename to ...
9333 (info_serial_command): ... this.
9334 (_initialize_ser_dos): Adjust.
9335 * skip.c (skip_info): Rename to ...
9336 (info_skip_command): ... this.
9337 (_initialize_step_skip): Adjust.
9338 * source.c (line_info): Rename to ...
9339 (info_line_command): ... this.
9340 (source_info): Rename to ...
9341 (info_source_command)
9342 * stack.c (frame_info): Rename to ...
9343 (info_frame_command): ... this.
9344 (locals_info): Rename to ...
9345 (info_locals_command): ... this.
9346 (args_info): Rename to ...
9347 (info_args_command): ... this.
9348 (_initialize_stack): Adjust.
9349 * symtab.c (sources_info): Rename to ...
9350 (info_sources_command): ... this.
9351 (variables_info): Rename to ...
9352 (info_variables_command): ... this.
9353 (functions_info): Rename to ...
9354 (info_functions_command): ... this.
9355 (types_info): Rename to ...
9356 (info_types_command): ... this.
9357 (_initialize_symtab): Adjust.
9358 * target.c (target_info): Rename to ...
9359 (info_target_command): ... this.
9360 (initialize_targets): Adjust.
9361 * tracepoint.c (tvariables_info): Rename to ...
9362 (info_tvariables_command): ... this.
9363 (scope_info): Rename to ...
9364 (info_scope_command): ... this.
9365 (trace_dump_actions): Adjust.
9366 (_initialize_tracepoint): Adjust.
9368 2017-08-22 Tom Tromey <tom@tromey.com>
9370 * breakpoint.h (install_breakpoint): Update.
9371 * breakpoint.c (add_solib_catchpoint): Update.
9372 (install_breakpoint): Change argument to a std::unique_ptr.
9373 (create_fork_vfork_event_catchpoint): Use std::unique_ptr.
9374 (create_breakpoint_sal, create_breakpoint): Update.
9375 (watch_command_1, catch_exec_command_1)
9376 (strace_marker_create_breakpoints_sal): Use std::unique_ptr.
9377 (add_to_breakpoint_chain): Change argument to a std::unique_ptr.
9378 Return the breakpoint.
9379 (set_raw_breakpoint_without_location, set_raw_breakpoint)
9380 (new_single_step_breakpoint): Update.
9381 * break-catch-throw.c (handle_gnu_v3_exceptions): Use
9383 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
9385 * break-catch-sig.c (create_signal_catchpoint): Use
9387 * ada-lang.c (create_ada_exception_catchpoint): Use
9390 2017-08-22 Tom Tromey <tom@tromey.com>
9392 * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr.
9394 2017-08-22 Tom Tromey <tom@tromey.com>
9396 * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr.
9397 (lookup_partial_symbol): Update.
9399 2017-08-22 Tom Tromey <tom@tromey.com>
9401 * source.h (rewrite_source_path): Return a unique_xmalloc_ptr.
9402 * source.c (rewrite_source_path): Return a unique_xmalloc_ptr.
9403 (find_and_open_source, symtab_to_fullname): Update.
9404 * psymtab.c (psymtab_to_fullname): Update.
9406 2017-08-22 Tom Tromey <tom@tromey.com>
9408 * exec.c (exec_file_attach): Update.
9409 * linux-thread-db.c (try_thread_db_load): Update.
9410 * guile/scm-safe-call.c (gdbscm_safe_source_script): Update.
9411 * utils.c (gdb_realpath): Change return type.
9412 (gdb_realpath_keepfile): Update.
9413 (gdb_realpath_check_trailer, gdb_realpath_tests): New functions.
9414 (_initialize_utils): Register the new self test.
9415 * source.c (openp): Update.
9416 (find_and_open_source): Update.
9417 * nto-tdep.c (nto_find_and_open_solib): Update.
9418 * main.c (set_gdb_data_directory): Update.
9419 (captured_main_1): Update.
9420 * dwarf2read.c (dwarf2_get_dwz_file): Update
9421 (dw2_map_symbol_filenames): Update.
9422 * auto-load.c (auto_load_safe_path_vec_update): Update.
9423 (filename_is_in_auto_load_safe_path_vec): Change type of
9425 (auto_load_objfile_script): Update.
9426 (file_is_auto_load_safe): Update. Use std::string.
9427 * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr.
9429 2017-08-22 Tom Tromey <tom@tromey.com>
9431 * utils.c (gdb_realpath_keepfile): Return a
9432 gdb::unique_xmalloc_ptr.
9433 * exec.c (exec_file_attach): Update.
9434 * utils.h (gdb_realpath_keepfile): Return a
9435 gdb::unique_xmalloc_ptr.
9437 2017-08-22 Tom Tromey <tom@tromey.com>
9439 * compile/compile.c (compile_file_command): Use
9440 gdb::unique_xmalloc_ptr, std::string.
9441 * utils.c (gdb_abspath): Change return type.
9442 * source.c (openp): Update.
9443 * objfiles.c (allocate_objfile): Update.
9444 * main.c (set_gdb_data_directory): Update.
9445 * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr.
9447 2017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com>
9449 * cli-cmds.c (list_commands): List actual code around more than
9452 2017-08-21 John Baldwin <jhb@FreeBSD.org>
9454 * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'.
9456 2017-08-21 Pedro Alves <palves@redhat.com>
9459 * c-exp.y (variable production): Handle function aliases.
9460 * minsyms.c (msymbol_is_text): New function.
9461 * minsyms.h (msymbol_is_text): Declare.
9462 * symtab.c (find_function_alias_target): New function.
9463 * symtab.h (find_function_alias_target): Declare.
9465 2017-08-21 Pedro Alves <palves@redhat.com>
9467 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past
9469 * typeprint.c (whatis_exp): If handling "whatis", and expression
9470 is OP_TYPE, strip one typedef level. Otherwise don't strip
9472 * valops.c (value_cast): Save "to" type before resolving
9473 stubs/typedefs. Use that type as resulting value's type.
9475 2017-08-18 Tom Tromey <tom@tromey.com>
9476 Pedro Alves <palves@redhat.com>
9478 * spu-multiarch.c (parse_spufs_run): Use scoped_restore.
9479 * sol-thread.c (sol_thread_resume, sol_thread_wait)
9480 (sol_thread_xfer_partial, rw_common): Use scoped_restore.
9481 * procfs.c (procfs_do_thread_registers): Use scoped_restore.
9482 * proc-service.c (ps_xfer_memory): Use scoped_restore.
9483 * linux-tdep.c (linux_corefile_thread): Remove a cleanup.
9484 (linux_get_siginfo_data): Add "thread" argument. Use
9486 * linux-nat.c (linux_child_follow_fork)
9487 (check_stopped_by_watchpoint): Use scoped_restore.
9488 * infrun.c (displaced_step_prepare_throw, write_memory_ptid)
9489 (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore.
9490 (restore_inferior_ptid, save_inferior_ptid): Remove.
9491 * btrace.c (btrace_fetch): Use scoped_restore.
9492 * bsd-uthread.c (bsd_uthread_fetch_registers)
9493 (bsd_uthread_store_registers): Use scoped_restore.
9494 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
9496 * aix-thread.c (aix_thread_resume, aix_thread_wait)
9497 (aix_thread_xfer_partial): Use scoped_restore.
9498 * inferior.h (save_inferior_ptid): Remove.
9500 2017-08-18 Yao Qi <yao.qi@linaro.org>
9503 * arm-tdep.c (gdb_print_insn_arm): Mark
9504 USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL.
9506 2017-08-18 Yao Qi <yao.qi@linaro.org>
9508 * NEWS: Mention GDBserver's new option "--selftest".
9509 * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c.
9510 * selftest.c: Move it to common/selftest.c.
9511 * selftest.h: Move it to common/selftest.h.
9512 * selftest-arch.c (reset): New function.
9513 (tests_with_arch): Call reset.
9515 2017-08-18 Yao Qi <yao.qi@linaro.org>
9517 * selftest.c (run_tests): Don't call QUIT. Call debug_printf
9518 instead of exception_fprintf and printf_filtered.
9520 2017-08-18 Yao Qi <yao.qi@linaro.org>
9522 * selftest.c (register_self_test): Rename it to
9523 selftests::register_test.
9524 (run_self_tests): selftest::run_tests.
9525 * selftest.h: Update declarations.
9526 * selftest-arch.c (register_self_test_foreach_arch): Rename it to
9527 selftests::register_test_foreach_arch.
9528 * selftest-arch.h: Update declaration.
9529 * aarch64-tdep.c: Update.
9530 * arm-tdep.c: Likewise.
9531 * disasm-selftests.c: Likewise.
9532 * dwarf2loc.c: Likewise.
9533 * dwarf2-frame.c: Likewise.
9534 * findvar.c: Likewise.
9535 * gdbarch-selftests.c: Likewise.
9536 * maint.c (maintenance_selftest): Likewise.
9537 * regcache.c: Likewise.
9538 * rust-exp.y: Likewise.
9539 * selftest-arch.c: Likewise.
9540 * unittests/environ-selftests.c: Likewise.
9541 * unittests/function-view-selftests.c: Likewise.
9542 * unittests/offset-type-selftests.c: Likewise.
9543 * unittests/optional-selftests.c: Likewise.
9544 * unittests/scoped_restore-selftests.c: Likewise.
9545 * utils-selftests.c: Likewise.
9547 2017-08-17 Pedro Alves <palves@redhat.com>
9549 * cli/cli-cmds.c (source_command): Delete 'old_source_verbose'
9552 2017-08-17 Pedro Alves <palves@redhat.com>
9554 * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New
9556 (reset_die_in_process): Delete, replaced by ...
9557 (process_die_scope): ... this new class. Make it responsible for
9558 freeing cu->line_header too.
9559 (process_die): Use process_die_scope.
9560 (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in
9561 cu->line_header_die_owner. Don't release the line header if it's
9563 (setup_type_unit_groups): Make the CU/DIE own the line header.
9564 Don't release the line header here.
9566 2017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change)
9568 * elfread.c (elf_read_minimal_symbols): xfree synthsyms.
9570 2017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com>
9572 * NEWS: Mention new shortcuts for nexti and stepi in TUI
9575 2017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com>
9577 * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key
9580 2017-08-15 Stafford Horne <shorne@gmail.com>
9582 * MAINTAINERS (Write After Approval): Add Stafford Horne.
9584 2017-08-15 Stafford Horne <shorne@gmail.com>
9586 * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname.
9588 2017-08-15 Sergio Durigan Junior <sergiodj@redhat.com>
9591 * infcmd.c (unset_environment_command): Use the 'clear' method on
9592 the environment instead of resetting it.
9594 2017-08-15 John Baldwin <jhb@FreeBSD.org>
9596 * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian
9599 2017-08-14 Tom Tromey <tom@tromey.com>
9601 * valprint.c (print_octal_chars): Use HOST_CHAR_BIT.
9602 (print_binary_chars): Likewise.
9603 (BITS_IN_BYTES): Remove.
9605 2017-08-14 Tom Tromey <tom@tromey.com>
9608 * valprint.c (LOW_ZERO): Change value to 034.
9609 (print_octal_chars): Add static_asserts for octal constants.
9610 * printcmd.c (print_scalar_formatted): Add 'd' case.
9612 2017-08-11 Tom Tromey <tom@tromey.com>
9614 * symfile.c (add_symbol_file_command): Use std::vector.
9616 2017-08-14 Tom Tromey <tom@tromey.com>
9618 * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move.
9619 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
9621 * break-catch-sig.c (create_signal_catchpoint): Use std::move.
9623 2017-08-11 Pedro Alves <palves@redhat.com>
9625 * infrun.c (process_event_stop_test): Adjust
9626 function_name_is_marked_for_skip call.
9627 * skip.c: Include <list>.
9628 (skiplist_entry): Make it a class with private fields, and
9630 (skiplist_entry_chain): Delete.
9631 (skiplist_entries): New.
9632 (skiplist_entry_count): Delete.
9633 (highest_skiplist_entry_num): New.
9634 (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete.
9635 (add_skiplist_entry): Delete.
9636 (skiplist_entry::skiplist_entry): New.
9637 (skiplist_entry::add_entry): New.
9638 (skip_file_command, skip_function): Adjust.
9639 (compile_skip_regexp): Delete.
9640 (skip_command): Don't compile regexp here. Adjust to use
9641 skiplist_entry::add_entry.
9642 (skip_info): Adjust to use range-for and getters.
9643 (skip_enable_command, skip_disable_command): Adjust to use
9644 range-for and setters.
9645 (skip_delete_command): Adjust to use std::list.
9646 (add_skiplist_entry): Delete.
9647 (skip_file_p): Delete, refactored as ...
9648 (skiplist_entry::do_skip_file_p): ... this new method.
9649 (skip_gfile_p): Delete, refactored as ...
9650 (skiplist_entry::do_gskip_file_p): ... this new method.
9651 (skip_function_p, skip_rfunction_p): Delete, refactored as ...
9652 (skiplist_entry::skip_function_p): ... this new method.
9653 (function_name_is_marked_for_skip): Now returns bool, and takes
9654 the function sal by const reference. Adjust to use range-for and
9655 skiplist_entry methods.
9656 (_initialize_step_skip): Remove references to
9657 skiplist_entry_chain, skiplist_entry_count.
9658 * skip.h (function_name_is_marked_for_skip): Now returns bool, and
9659 takes the function sal by const reference.
9661 2017-08-11 Yao Qi <yao.qi@linaro.org>
9663 * dwarf2-frame.c (clear_pointer_cleanup): Remove.
9664 (dwarf2_frame_cache): Remove reset_cache_cleanup.
9665 (dwarf2_frame_cache):
9666 * frame-unwind.c (frame_unwind_try_unwinder): Catch
9667 RETURN_MASK_ALL and set *this_case to NULL.
9668 * frame-unwind.h: Update comments.
9670 2017-08-11 Yao Qi <yao.qi@linaro.org>
9672 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove.
9673 (dwarf2_frame_state_copy_regs): Remove.
9674 (dwarf2_frame_state_free_regs): Remove.
9675 (dwarf2_frame_state::~dwarf2_frame_state): Remove.
9676 (dwarf2_restore_rule): Call method .alloc_regs instead of
9677 dwarf2_frame_state_alloc_regs.
9678 (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info
9679 constructor. Call std::move.
9680 (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs.
9681 (dwarf2_frame_cache): Likewise.
9683 [GDB_SELF_TEST]: Include selftest.h and
9685 [GDB_SELF_TEST] (execute_cfa_program_test): New function.
9686 (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register
9687 execute_cfa_program_test.
9689 * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor,
9690 copy ctor, assignment operator, move assignment.
9691 <alloc_regs>: New method.
9693 (struct dwarf2_frame_state): Delete dtor.
9694 (dwarf2_frame_state_alloc_regs): Remove declaration.
9695 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call
9696 dwarf2_frame_state_alloc_regs, use .alloc_regs instead.
9698 2017-08-11 Yao Qi <yao.qi@linaro.org>
9700 * dwarf2-frame.c (dwarf2_frame_state_free): Remove.
9701 (dwarf2_frame_state::dwarf2_frame_state): New.
9702 (dwarf2_frame_state::~dwarf2_frame_state): New.
9703 (dwarf2_fetch_cfa_info): Update.
9704 (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object
9705 rather than a pointer. Update code.
9706 * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and
9708 <data_align, code_align, retaddr_column>: Change them to const.
9709 <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them
9712 2017-08-11 Yao Qi <yao.qi@linaro.org>
9714 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove.
9715 <loc.exp>: New field.
9716 * dwarf2-frame.c (execute_cfa_program): Update.
9717 (dwarf2_frame_prev_register): Update.
9719 2017-08-10 Pedro Alves <palves@redhat.com>
9721 * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define.
9723 2017-08-09 John Baldwin <jhb@FreeBSD.org>
9725 * fbsd-nat.c (struct fbsd_fork_info): Remove.
9726 (fbsd_pending_children): Use std::list.
9727 (fbsd_remember_child): Likewise.
9728 (fbsd_is_child_pending): Likewise.
9729 (fbsd_pending_vfork_done): Use std::forward_list.
9730 (fbsd_add_vfork_done): Likewise.
9731 (fbsd_is_vfork_done_pending): Likewise.
9732 (fbsd_next_vfork_done): Likewise.
9734 2017-08-09 John Baldwin <jhb@FreeBSD.org>
9736 * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New.
9737 (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr.
9738 [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string
9740 (fbsd_xfer_partial): Use gdb::byte_vector.
9741 (fbsd_add_threads): Use gdb::unique_xmalloc_ptr.
9743 2017-08-09 John Baldwin <jhb@FreeBSD.org>
9745 * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and
9747 (fbsd_find_memory_regions): Fix `mapfile' initialization.
9749 2017-08-09 Tom Tromey <tom@tromey.com>
9751 * skip.c (skiplist_entry): New constructor.
9752 (skiplist_entry::enabled, skiplist_entry::function_is_regexp)
9753 (skiplist_entry::file_is_glob): Now bool.
9754 (skiplist_entry::file, skiplist_entry::function): Now
9756 (make_skip_entry): Return a unique_ptr. Use new.
9757 (free_skiplist_entry, free_skiplist_entry_cleanup)
9758 (make_free_skiplist_entry_cleanup): Remove.
9759 (skip_command, skip_disable_command, add_skiplist_entry)
9760 (skip_form_bytes, compile_skip_regexp, skip_command, skip_info)
9761 (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p)
9762 (function_name_is_marked_for_skip): Update.
9763 (skip_delete_command): Update. Use delete.
9765 2017-08-09 Jiong Wang <jiong.wang@arm.com>
9767 * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h".
9768 (aarch64_linux_core_read_description): New function.
9769 (aarch64_linux_init_abi): Register gdbarch_core_read_description.
9771 2017-08-09 Pedro Alves <palves@redhat.com>
9773 * cp-name-parser.y (cp_comp_to_string): Return a
9774 gdb::unique_xmalloc_ptr<char>.
9775 * cp-support.c (replace_typedefs_qualified_name)
9776 (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>.
9777 (cp_canonicalize_string_full): Use op= instead of explicit
9779 (cp_class_name_from_physname, method_name_from_physname)
9780 (cp_func_name, cp_remove_params): Adjust to use
9781 gdb::unique_xmalloc_ptr<char>.
9782 * cp-support.h (cp_comp_to_string): Return a
9783 gdb::unique_xmalloc_ptr<char>.
9784 * python/py-type.c (typy_lookup_type): Adjust to use
9785 gdb::unique_xmalloc_ptr<char>.
9787 2017-08-09 H.J. Lu <hongjiu.lu@intel.com>
9789 * dwarf2read.c (dwarf2_string_attr): Fix a typo.
9791 2017-08-09 Alex Lindsay <alexlindsay239@gmail.com>
9792 Yao Qi <yao.qi@linaro.org>
9794 * cp-support.c (cp_canonicalize_string_full): Use
9795 gdb::unique_xmalloc_ptr<char>.
9796 (cp_canonicalize_string): Likewise.
9798 2017-08-09 Yao Qi <yao.qi@linaro.org>
9800 * features/Makefile (WHICH): Remove i386/ non-linux stuff.
9801 * regformats/i386/amd64-avx-avx512.dat: Remove.
9802 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove.
9803 * regformats/i386/amd64-avx-mpx.dat:Remove.
9804 * regformats/i386/amd64-avx.dat: Remove.
9805 * regformats/i386/amd64-mpx.dat: Remove.
9806 * regformats/i386/i386-avx-avx512.dat: Remove.
9807 * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove.
9808 * regformats/i386/i386-avx-mpx.dat: Remove.
9809 * regformats/i386/i386-mmx.dat: Remove.
9810 * regformats/i386/i386-mpx.dat: Remove.
9812 2017-08-09 Yao Qi <yao.qi@linaro.org>
9814 * amd64-tdep.h (tdesc_x32): Remove the declaration.
9815 * amd64-tdep.c: Don't include features/i386/x32*.c.
9816 (_initialize_amd64_tdep): Don't call initialize_tdesc_x32*
9818 * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx,
9819 and i386/x32-avx-avx512.
9820 (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml,
9822 * features/i386/x32-avx-avx512.c: Removed.
9823 * features/i386/x32-avx-avx512.xml: Removed.
9824 * features/i386/x32-avx.c: Removed.
9825 * features/i386/x32-avx.xml: Removed.
9826 * features/i386/x32.c: Removed.
9827 * features/i386/x32.xml: Removed.
9828 * regformats/i386/x32-avx-avx512.dat: Removed.
9829 * regformats/i386/x32-avx.dat: Removed.
9830 * regformats/i386/x32.dat: Removed.
9832 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
9834 PR breakpoints/21886
9835 * mem-break.c (default_memory_insert_breakpoint): Use
9836 `->placed_address' rather than `->reqstd_address' for the
9837 breakpoint location.
9839 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
9841 * arch-utils.c (default_print_insn): Remove arch/mach/endian
9844 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
9846 * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with
9847 a union of `tdep_info', `tdesc_data' and `id'.
9848 * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data'
9849 rather than `info.tdep_info'.
9850 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
9851 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
9852 * i386-tdep.c (i386_gdbarch_init): Likewise.
9853 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
9854 * mips-tdep.c (mips_gdbarch_init): Likewise.
9855 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
9856 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
9857 * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than
9859 (ppc_linux_init_abi): Use `info.tdesc_data' rather than
9861 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
9862 * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than
9864 * spu-tdep.c (spu_gdbarch_init): Likewise.
9865 * gdbarch.h: Regenerate.
9867 2017-08-07 Leszek Swirski <leszeks@google.com>
9870 * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt.
9872 2017-08-07 Simon Marchi <simon.marchi@ericsson.com>
9874 * remote-sim.c (gdbsim_load): Remove char **argv local variable.
9875 (gdbsim_open): Rename gdb_argv args object to argv.
9877 2017-08-05 Tom Tromey <tom@tromey.com>
9879 * compile/compile-object-load.c (compile_object_load): Use
9880 gdb::unique_xmalloc_ptr.
9881 * cli/cli-dump.c (scan_filename): Rename from
9882 scan_filename_with_cleanup. Change return type.
9883 (scan_expression): Rename from scan_expression_with_cleanup.
9885 (dump_memory_to_file, dump_value_to_file, restore_command):
9886 Use gdb::unique_xmalloc_ptr. Update.
9887 * cli/cli-cmds.c (find_and_open_script): Use
9888 gdb::unique_xmalloc_ptr.
9889 * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr.
9890 * symmisc.c (maintenance_print_symbols)
9891 (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr.
9892 * symfile.c (symfile_bfd_open, generic_load)
9893 (add_symbol_file_command, remove_symbol_file_command): Use
9894 gdb::unique_xmalloc_ptr.
9895 * source.c (openp): Use gdb::unique_xmalloc_ptr.
9896 * psymtab.c (maintenance_print_psymbols): Use
9897 gdb::unique_xmalloc_ptr.
9898 * corelow.c (core_open): Use gdb::unique_xmalloc_ptr.
9899 * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr.
9900 * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr.
9901 (reload_shared_libraries_1): Likewise.
9903 2017-08-05 Tom Tromey <tom@tromey.com>
9905 * rust-exp.y (rust_op_ptr, set_field): Remove typedefs.
9906 (rust_op_vector, rust_set_vector): New typedefs.
9907 (current_parser): New global.
9908 (work_obstack): Change to pointer type. Update all users.
9909 (rust_ast, pstate): Remove globals.
9910 (struct rust_parser): New.
9911 (%union) <params, field_inits>: Change type.
9912 (start, tuple_expr, unit_expr, struct_expr_list, literal)
9913 (field_expr, expr_list, maybe_expr_list, type_list): Update.
9914 (ast_call_ish, ast_path, ast_function_type, ast_tuple_type)
9915 (convert_params_to_types, convert_params_to_expression): Change
9917 (ast_string): Change type of "fields".
9918 (rust_parse): Make a rust_parser. Remove cleanups.
9919 (rust_lex_tests): Make and install an auto_obstack.
9921 2017-08-04 Yao Qi <yao.qi@linaro.org>
9923 * configure.srv (ipa_x32_linux_regobj): New.
9924 * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
9925 instead of X86_TDESC_AVX512.
9926 (initialize_low_tracepoint): Call
9927 init_registers_x32_avx_avx512_linux.
9929 2017-08-04 Yao Qi <yao.qi@linaro.org>
9931 * utils.h (gdb_argv): Add namespace std for nullptr_t.
9933 2017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com>
9935 * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev.
9937 2017-08-03 Tom Tromey <tom@tromey.com>
9939 * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv):
9941 * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove.
9943 2017-08-03 Tom Tromey <tom@tromey.com>
9945 * python/py-param.c (compute_enum_values): Use gdb_argv.
9947 2017-08-03 Tom Tromey <tom@tromey.com>
9949 * utils.h (struct gdb_argv_deleter): New.
9950 (gdb_argv): New class.
9951 * utils.c (gdb_argv::reset): New method.
9952 * tracepoint.c (delete_trace_variable_command): Use gdb_argv.
9953 * tracefile.c (tsave_command): Use gdb_argv.
9954 * top.c (new_ui_command): Use gdb_argv.
9955 * symmisc.c (maintenance_print_symbols)
9956 (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv.
9957 * symfile.c (symbol_file_command, generic_load)
9958 (remove_symbol_file_command): Use gdb_argv.
9959 * stack.c (backtrace_command): Use gdb_argv.
9960 * source.c (add_path, show_substitute_path_command)
9961 (unset_substitute_path_command, set_substitute_path_command):
9963 * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv.
9964 * ser-mingw.c (pipe_windows_open): Use gdb_argv.
9965 * remote.c (extended_remote_run, remote_put_command)
9966 (remote_get_command, remote_delete_command): Use gdb_argv.
9967 * remote-sim.c (gdbsim_load, gdbsim_create_inferior)
9968 (gdbsim_open): Use gdb_argv.
9969 * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv.
9970 * psymtab.c (maintenance_print_psymbols): Use gdb_argv.
9971 * procfs.c (procfs_info_proc): Use gdb_argv.
9972 * interps.c (interpreter_exec_cmd): Use gdb_argv.
9973 * infrun.c (handle_command): Use gdb_argv.
9974 * inferior.c (add_inferior_command, clone_inferior_command):
9976 * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv.
9977 * exec.c (exec_file_command): Use gdb_argv.
9978 * cli/cli-cmds.c (alias_command): Use gdb_argv.
9979 * compile/compile.c (build_argc_argv): Use gdb_argv.
9981 2017-08-03 Tom Tromey <tom@tromey.com>
9983 * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr.
9985 2017-08-03 Tom Tromey <tom@tromey.com>
9987 * python/python.c (compute_python_string): Return std::string.
9988 (gdbpy_eval_from_control_command): Update.
9989 (do_start_initialization): Use std::string.
9990 * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not
9992 * python/py-breakpoint.c (local_setattro): Use string_printf, not
9995 2017-08-03 Tom Tromey <tom@tromey.com>
9997 * top.h (do_restore_instream_cleanup): Remove.
9998 * top.c (do_restore_instream_cleanup): Remove.
9999 (read_command_file): Use scoped_restore.
10000 * cli/cli-script.c (execute_user_command): Use scoped_restore.
10002 2017-08-03 Tom Tromey <tom@tromey.com>
10004 * cli/cli-script.c (execute_user_command)
10005 (execute_control_command): Use scoped_restore.
10007 2017-08-03 Tom Tromey <tom@tromey.com>
10009 * cli/cli-script.c (do_restore_user_call_depth): Remove.
10010 (execute_user_command): Remove user_call_depth; use
10011 user_args_stack's size instead.
10013 2017-08-03 Tom Tromey <tom@tromey.com>
10015 * top.h (in_user_command): Remove.
10016 * top.c (in_user_command): Remove.
10017 * cli/cli-script.c (do_restore_user_call_depth)
10018 (execute_user_command): Update.
10020 2017-08-03 Tom Tromey <tom@tromey.com>
10022 * valops.c (search_struct_method): Use gdb::byte_vector.
10023 * valarith.c (value_concat): Use std::vector.
10024 * target.c (memory_xfer_partial): Use gdb::byte_vector.
10025 (simple_search_memory): Likewise.
10026 * printcmd.c (find_string_backward): Use gdb::byte_vector.
10027 * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector.
10028 * gcore.c (gcore_copy_callback): Use gdb::byte_vector.
10029 * elfread.c (elf_rel_plt_read): Use std::string.
10030 * cp-valprint.c (cp_print_value): Use gdb::byte_vector.
10031 * cli/cli-dump.c (restore_section_callback): Use
10034 2017-08-03 Tom Tromey <tom@tromey.com>
10036 * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr.
10038 2017-08-03 Tom Tromey <tom@tromey.com>
10040 * tui/tui-regs.c (tui_restore_gdbout): Remove.
10041 (tui_register_format): Use scoped_restore.
10043 2017-08-03 Tom Tromey <tom@tromey.com>
10045 * reverse.c (exec_direction_default): Remove.
10046 (exec_reverse_once): Use scoped_restore.
10047 * remote.c (restore_remote_timeout): Remove.
10048 (remote_flash_erase, remote_flash_write, remote_flash_done)
10049 (readchar, remote_serial_write): Use scoped_restore.
10050 * cli/cli-script.c (struct source_cleanup_lines_args)
10051 (source_cleanup_lines): Remove.
10052 (script_from_file): Use scoped_restore.
10053 * cli/cli-cmds.c (source_verbose_cleanup): Remove.
10054 (source_command): Use scoped_restore.
10056 2017-08-03 Tom Tromey <tom@tromey.com>
10058 * utils.h (make_cleanup_free_so): Remove.
10059 * utils.c (do_free_so, make_cleanup_free_so): Remove.
10060 * solist.h (struct so_deleter): New.
10061 (so_list_up): New typedef.
10062 * solib-svr4.c (svr4_read_so_list): Use so_list_up.
10064 2017-08-03 Tom Tromey <tom@tromey.com>
10066 * utils.h (make_cleanup_restore_current_language): Remove.
10067 * utils.c (do_restore_current_language)
10068 (make_cleanup_restore_current_language): Remove.
10069 * parse.c (parse_exp_in_context_1)
10070 (parse_expression_with_language): Use
10071 scoped_restore_current_language.
10072 * mi/mi-main.c (mi_cmd_execute): Use
10073 scoped_restore_current_language.
10074 * language.h (scoped_restore_current_language): New class.
10076 2017-08-03 Tom Tromey <tom@tromey.com>
10078 * compile/compile.c (cleanup_unlink_file): Remove.
10079 (compile_to_object): Use gdb::unlinker.
10080 (eval_compile_command): Likewise.
10082 2017-08-03 Tom Tromey <tom@tromey.com>
10084 * utils.h (make_cleanup_fclose): Remove.
10085 * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove.
10087 2017-08-03 Tom Tromey <tom@tromey.com>
10089 * top.c (open_terminal_stream): Return gdb_file_up.
10090 (new_ui_command): Update.
10092 2017-08-03 Tom Tromey <tom@tromey.com>
10094 * source.c (print_source_lines_base, forward_search_command)
10095 (reverse_search_command): Use gdb_file_up.
10097 2017-08-03 Tom Tromey <tom@tromey.com>
10099 * fbsd-nat.c (fbsd_find_memory_regions): Update.
10101 2017-08-03 Tom Tromey <tom@tromey.com>
10103 * cli/cli-cmds.c (find_and_open_script): Change return type.
10104 Remove "streamp" and "full_path" parameters.
10105 (source_script_with_search): Update.
10106 * auto-load.c (source_script_file): Update.
10107 * cli/cli-cmds.h (find_and_open_script): Change type.
10108 (open_script): New struct.
10110 2017-08-03 Tom Tromey <tom@tromey.com>
10112 * xml-support.c (xml_fetch_content_from_file): Update.
10113 * ui-file.c (stdio_file::open): Update.
10114 * tracefile-tfile.c (tfile_start): Update.
10115 * remote.c (remote_file_put, remote_file_get): Update.
10116 * nat/linux-procfs.c (linux_proc_get_int)
10117 (linux_proc_pid_get_state, linux_proc_tid_get_name): Update.
10118 * nat/linux-osdata.c (linux_common_core_of_thread): Update.
10119 (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus)
10120 (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem)
10121 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update.
10122 * nat/linux-btrace.c (linux_determine_kernel_start): Update.
10123 * linux-nat.c (linux_proc_pending_signals): Update.
10124 * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up.
10125 (file_closer): Remove.
10126 * compile/compile.c (compile_to_object): Update.
10127 * common/filestuff.h (struct gdb_file_deleter): New.
10128 (gdb_file_up): New typedef.
10129 (gdb_fopen_cloexec): Change return type.
10130 * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up.
10131 * cli/cli-dump.c (fopen_with_cleanup): Remove.
10132 (dump_binary_file, restore_binary_file): Update.
10133 * auto-load.c (auto_load_objfile_script_1): Update.
10135 2017-08-03 Tom Tromey <tom@tromey.com>
10137 * tracepoint.c (tvariables_info_1): Use ui_out_emit_table.
10138 (info_static_tracepoint_markers_command): Likewise.
10139 * solib.c (info_sharedlibrary_command): Use ui_out_emit_table.
10140 * skip.c (skip_info): Use ui_out_emit_table.
10141 * progspace.c (print_program_space): Use ui_out_emit_table.
10142 * osdata.c (info_osdata): Use ui_out_emit_table.
10143 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use
10145 * linux-thread-db.c (info_auto_load_libthread_db): Use
10147 * inferior.c (print_inferior): Use ui_out_emit_table.
10148 * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table.
10149 * breakpoint.c (breakpoint_1): Use ui_out_emit_table.
10150 * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table.
10151 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table.
10152 * ui-out.h (class ui_out_emit_table): New.
10154 2017-08-02 Maciej W. Rozycki <macro@imgtec.com>
10156 * mips-tdep.c (mips_fpu_type_str): New function.
10157 (mips_dump_tdep): Call it.
10159 2017-08-01 Maciej W. Rozycki <macro@imgtec.com>
10161 * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access
10164 2017-07-31 Xavier Roirand <roirand@adacore.com>
10166 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
10168 2017-07-27 Xavier Roirand <roirand@adacore.com>
10170 * MAINTAINERS (Write After Approval): Add Xavier Roirand.
10172 2017-07-26 Yao Qi <yao.qi@linaro.org>
10174 * cli/cli-cmds.c (maintenancechecklist): New variable.
10175 * gdbcmd.h (maintenancechecklist): Declare it.
10176 * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]:
10177 Call i386_linux_read_description with different masks.
10178 * maint.c (maintenance_check_command): New function.
10179 (_initialize_maint_cmds): Call add_prefix_cmd.
10180 * target-descriptions.c (tdesc_reg): override operator != and ==.
10181 (tdesc_type): Likewise.
10182 (tdesc_feature): Likewise.
10183 (target_desc): Likewise.
10184 [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function.
10185 (maintenance_check_xml_descriptions): New function.
10186 (_initialize_target_descriptions) Add command "xml-descriptions".
10187 * target-descriptions.h (selftests::record_xml_tdesc): Declare.
10189 2017-07-26 Yao Qi <yao.qi@linaro.org>
10191 * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c.
10192 Include features/i386/32bit-*.c.
10193 (i386_linux_read_description): Generate target description if it
10195 (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386
10197 * features/i386/32bit-linux.c: Re-generated.
10198 * features/i386/32bit-sse.c: Likewise.
10199 * target-descriptions.c (print_c_feature::visit): Print code to
10200 set register number if needed.
10201 (print_c_feature) <m_next_regnum>: New field.
10203 2017-07-26 Yao Qi <yao.qi@linaro.org>
10205 * features/Makefile (CFILES): Rename with TDESC_CFILES.
10206 (FEATURE_XMLFILES): New.
10207 (FEATURE_CFILES): New.
10209 (clean-cfiles): Remove generated c files.
10210 * features/i386/32bit-avx.c: Generated.
10211 * features/i386/32bit-avx512.c: Generated.
10212 * features/i386/32bit-core.c: Generated.
10213 * features/i386/32bit-linux.c: Generated.
10214 * features/i386/32bit-mpx.c: Generated.
10215 * features/i386/32bit-pkeys.c: Generated.
10216 * features/i386/32bit-sse.c: Generated.
10217 * target-descriptions.c: Include algorithm.
10218 (tdesc_element_visitor): Add method visit_end.
10219 (print_c_tdesc): Implement visit_end.
10220 (print_c_tdesc:: m_filename_after_features): Move it to
10222 (print_c_feature): New class.
10223 (maint_print_c_tdesc_cmd): Use print_c_feature if XML file
10224 name starts with "i386/32bit-".
10226 2017-07-26 Yao Qi <yao.qi@linaro.org>
10228 * target-descriptions.c (tdesc_element_visitor): New class.
10229 (tdesc_element): New class.
10230 (tdesc_reg): Inherit from tdesc_element.
10231 (tdesc_reg::accept): New function.
10232 (tdesc_type): Inherit from tdesc_element.
10233 (tdesc_type::accept): New function.
10234 (tdesc_feature): Inherit from tdesc_element.
10235 (tdesc_feature::accept): New function.
10236 (target_desc): Inherit from tdesc_element.
10237 (target_desc::target_desc): New.
10238 (target_desc::~target_desc): New.
10239 (target_desc::accept): New.
10240 (allocate_target_description): Use new.
10241 (free_target_description): Use delete.
10242 (print_c_tdesc): New class.
10243 (maint_print_c_tdesc_cmd): Adjust.
10245 * features/aarch64.c: Re-generated.
10246 * features/arc-arcompact.c: Re-generated.
10247 * features/arc-v2.c: Re-generated.
10248 * features/arm/arm-with-iwmmxt.c: Re-generated.
10249 * features/arm/arm-with-m.c: Re-generated.
10250 * features/arm/arm-with-m-fpa-layout.c: Re-generated.
10251 * features/arm/arm-with-m-vfp-d16.c: Re-generated.
10252 * features/arm/arm-with-neon.c: Re-generated.
10253 * features/arm/arm-with-vfpv2.c: Re-generated.
10254 * features/arm/arm-with-vfpv3.c: Re-generated.
10255 * features/i386/amd64-avx-avx512.c: Re-generated.
10256 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
10257 * features/i386/amd64-avx.c: Re-generated.
10258 * features/i386/amd64-avx-linux.c: Re-generated.
10259 * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated.
10260 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
10261 * features/i386/amd64-avx-mpx.c: Re-generated.
10262 * features/i386/amd64-avx-mpx-linux.c: Re-generated.
10263 * features/i386/amd64.c: Re-generated.
10264 * features/i386/amd64-linux.c: Re-generated.
10265 * features/i386/amd64-mpx.c: Re-generated.
10266 * features/i386/amd64-mpx-linux.c: Re-generated.
10267 * features/i386/i386-avx-avx512.c: Re-generated.
10268 * features/i386/i386-avx-avx512-linux.c: Re-generated.
10269 * features/i386/i386-avx.c: Re-generated.
10270 * features/i386/i386-avx-linux.c: Re-generated.
10271 * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated.
10272 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated.
10273 * features/i386/i386-avx-mpx.c: Re-generated.
10274 * features/i386/i386-avx-mpx-linux.c: Re-generated.
10275 * features/i386/i386.c: Re-generated.
10276 * features/i386/i386-linux.c: Re-generated.
10277 * features/i386/i386-mmx.c: Re-generated.
10278 * features/i386/i386-mmx-linux.c: Re-generated.
10279 * features/i386/i386-mpx.c: Re-generated.
10280 * features/i386/i386-mpx-linux.c: Re-generated.
10281 * features/i386/x32-avx-avx512.c: Re-generated.
10282 * features/i386/x32-avx-avx512-linux.c: Re-generated.
10283 * features/i386/x32-avx.c: Re-generated.
10284 * features/i386/x32-avx-linux.c: Re-generated.
10285 * features/i386/x32.c: Re-generated.
10286 * features/i386/x32-linux.c: Re-generated.
10287 * features/microblaze.c: Re-generated.
10288 * features/microblaze-with-stack-protect.c: Re-generated.
10289 * features/mips64-dsp-linux.c: Re-generated.
10290 * features/mips64-linux.c: Re-generated.
10291 * features/mips-dsp-linux.c: Re-generated.
10292 * features/mips-linux.c: Re-generated.
10293 * features/nds32.c: Re-generated.
10294 * features/nios2.c: Re-generated.
10295 * features/nios2-linux.c: Re-generated.
10296 * features/rs6000/powerpc-32.c: Re-generated.
10297 * features/rs6000/powerpc-32l.c: Re-generated.
10298 * features/rs6000/powerpc-403.c: Re-generated.
10299 * features/rs6000/powerpc-403gc.c : Re-generated.
10300 * features/rs6000/powerpc-405.c: Re-generated.
10301 * features/rs6000/powerpc-505.c: Re-generated.
10302 * features/rs6000/powerpc-601.c: Re-generated.
10303 * features/rs6000/powerpc-602.c: Re-generated.
10304 * features/rs6000/powerpc-603.c: Re-generated.
10305 * features/rs6000/powerpc-604.c: Re-generated.
10306 * features/rs6000/powerpc-64.c: Re-generated.
10307 * features/rs6000/powerpc-64l.c: Re-generated.
10308 * features/rs6000/powerpc-7400.c: Re-generated.
10309 * features/rs6000/powerpc-750.c: Re-generated.
10310 * features/rs6000/powerpc-860.c: Re-generated.
10311 * features/rs6000/powerpc-altivec32.c: Re-generated.
10312 * features/rs6000/powerpc-altivec32l.c: Re-generated.
10313 * features/rs6000/powerpc-altivec64.c: Re-generated.
10314 * features/rs6000/powerpc-altivec64l.c: Re-generated.
10315 * features/rs6000/powerpc-cell32l.c: Re-generated.
10316 * features/rs6000/powerpc-cell64l.c: Re-generated.
10317 * features/rs6000/powerpc-e500.c: Re-generated.
10318 * features/rs6000/powerpc-e500l.c: Re-generated.
10319 * features/rs6000/powerpc-isa205-32l.c: Re-generated.
10320 * features/rs6000/powerpc-isa205-64l.c: Re-generated.
10321 * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated.
10322 * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated.
10323 * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated.
10324 * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated.
10325 * features/rs6000/powerpc-vsx32.c: Re-generated.
10326 * features/rs6000/powerpc-vsx32l.c: Re-generated.
10327 * features/rs6000/powerpc-vsx64.c: Re-generated.
10328 * features/rs6000/powerpc-vsx64l.c: Re-generated.
10329 * features/rs6000/rs6000.c: Re-generated.
10330 * features/s390-linux32.c: Re-generated.
10331 * features/s390-linux32v1.c: Re-generated.
10332 * features/s390-linux32v2.c: Re-generated.
10333 * features/s390-linux64.c: Re-generated.
10334 * features/s390-linux64v1.c: Re-generated.
10335 * features/s390-linux64v2.c: Re-generated.
10336 * features/s390-te-linux64.c: Re-generated.
10337 * features/s390-tevx-linux64.c: Re-generated.
10338 * features/s390-vx-linux64.c: Re-generated.
10339 * features/s390x-linux64.c: Re-generated.
10340 * features/s390x-linux64v1.c: Re-generated.
10341 * features/s390x-linux64v2.c: Re-generated.
10342 * features/s390x-te-linux64.c: Re-generated.
10343 * features/s390x-tevx-linux64.c: Re-generated.
10344 * features/s390x-vx-linux64.c: Re-generated.
10345 * features/sparc/sparc32-solaris.c: Re-generated.
10346 * features/sparc/sparc64-solaris.c: Re-generated.
10347 * features/tic6x-c62x.c: Re-generated.
10348 * features/tic6x-c62x-linux.c: Re-generated.
10349 * features/tic6x-c64x.c: Re-generated.
10350 * features/tic6x-c64x-linux.c: Re-generated.
10351 * features/tic6x-c64xp.c: Re-generated.
10352 * features/tic6x-c64xp-linux.c: Re-generated.
10354 2017-07-26 Yao Qi <yao.qi@linaro.org>
10356 * i386-linux-tdep.c (i386_linux_read_description): New function.
10357 (i386_linux_core_read_description): Call
10358 i386_linux_read_description.
10359 * i386-linux-tdep.h (i386_linux_read_description): Declare.
10360 (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations.
10361 (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise
10362 (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise.
10363 (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise.
10364 * x86-linux-nat.c (x86_linux_read_description): Call
10365 i386_linux_read_description.
10367 2017-07-26 Yao Qi <yao.qi@linaro.org>
10369 * NEWS: Mention it.
10370 * features/Makefile (%.c: %.xml): Pass the xml file name to
10371 command "maint print c-tdesc".
10372 * target-descriptions.c (maint_print_c_tdesc_cmd): Get file
10375 2017-07-26 Yao Qi <yao.qi@linaro.org>
10377 * target-descriptions.c (target_desc): Add ctor and dtor. Do
10378 in-class initialization.
10379 (tdesc_create_feature): Call new instead of XCNEW.
10380 (free_target_description): Ue delete.
10382 2017-07-25 John Baldwin <jhb@FreeBSD.org>
10384 * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo.
10386 2017-07-25 Yao Qi <yao.qi@linaro.org>
10388 * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc
10390 (amd64_x32_init_abi): Likewise.
10391 * amd64-tdep.h (amd64_init_abi): Update declaration.
10392 (amd64_x32_init_abi): Likewise.
10394 2017-07-25 Yao Qi <yao.qi@linaro.org>
10397 * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update
10398 condition for FPSCR.
10399 (arm_linux_store_inferior_registers): Likewise.
10401 2017-07-22 Tom Tromey <tom@tromey.com>
10403 * break-catch-syscall.c (struct catch_syscall_inferior_data)
10404 <syscalls_counts>: Now a std::vector.
10405 (get_catch_syscall_inferior_data): Use "new".
10406 (catch_syscall_inferior_data_cleanup): Use "delete".
10407 (insert_catch_syscall, remove_catch_syscall)
10408 (clear_syscall_counts): Update.
10410 2017-07-22 Tom Tromey <tom@tromey.com>
10412 * break-catch-syscall.c (syscall_catchpoint)
10413 <syscalls_to_be_caught>: Now a std::vector<int>
10414 (~syscall_catchpoint): Remove.
10415 (insert_catch_syscall, remove_catch_syscall)
10416 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
10417 (print_mention_catch_syscall, print_recreate_catch_syscall):
10419 (create_syscall_event_catchpoint): Change type of "filter"
10421 (catch_syscall_split_args): Return a std::vector.
10422 (catch_syscall_command_1, catching_syscall_number_1): Update.
10424 2017-07-22 Tom Tromey <tom@tromey.com>
10426 * break-catch-throw.c (struct exception_catchpoint)
10427 <exception_rx>: Now a std::string.
10428 (~exception_catchpoint): Remove.
10429 (print_one_detail_exception_catchpoint): Update.
10430 (handle_gnu_v3_exceptions): Change type of except_rx.
10431 (extract_exception_regexp): Return a std::string.
10432 (catch_exception_command_1): Update.
10434 2017-07-22 Tom Tromey <tom@tromey.com>
10436 * break-catch-sig.c (gdb_signal_type): Remove typedef.
10437 (struct signal_catchpoint) <signals_to_be_caught>: Now a
10439 <catch_all>: Now a bool.
10440 (~signal_catchpoint): Remove.
10441 (signal_catchpoint_insert_location)
10442 (signal_catchpoint_remove_location)
10443 (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one)
10444 (signal_catchpoint_print_mention)
10445 (signal_catchpoint_print_recreate)
10446 (signal_catchpoint_explains_signal): Update.
10447 (create_signal_catchpoint): Change type of "filter" and
10449 (catch_signal_split_args): Return a std::vector. Change type of
10451 (catch_signal_command): Update.
10453 2017-07-20 Pedro Alves <palves@redhat.com>
10455 * ada-lang.c (ada_language_defn): Make extern.
10456 (_initialize_ada_language): Remove add_language call.
10457 * c-lang.c (c_language_defn, cplus_language_defn)
10458 (asm_language_defn, minimal_language_defn): Make extern.
10459 (_initialize_c_language): Delete.
10460 * completer.c (compare_cstrings): Delete, moved to utils.h.
10461 * d-lang.c (d_language_defn): Make extern.
10462 (_initialize_d_language): Remove add_language calls.
10463 * defs.h (enum language): Add comment.
10464 * f-lang.c (f_language_defn): Make extern.
10465 (_initialize_f_language): Remove add_language call.
10466 * go-lang.c (go_language_defn): Make extern.
10467 (_initialize_go_language): Remove add_language call.
10468 * language.c: Include <algorithm>.
10469 (languages): Redefine as const array.
10470 (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete.
10471 (set_language_command): Handle "local". Use for-range loop.
10472 (set_language): Remove loop.
10473 (language_enum): Rewrite.
10474 (language_def, language_str): Remove loops.
10475 (add_language): Delete.
10476 (add_set_language_command): New, based on add_languages.
10477 (skip_language_trampoline): Adjust.
10478 (local_language_defn): Delete.
10479 (language_gdbarch_post_init): Adjust.
10480 (_initialize_language): Remove add_language calls. Call
10481 add_set_language_command.
10482 * language.h (add_language): Delete.
10483 (auto_language_defn)
10484 (unknown_language_defn, minimal_language_defn, ada_language_defn)
10485 (asm_language_defn, c_language_defn, cplus_language_defn)
10486 (d_language_defn, f_language_defn, go_language_defn)
10487 (m2_language_defn, objc_language_defn, opencl_language_defn)
10488 (pascal_language_defn, rust_language_defn): Declare.
10489 * m2-lang.c (m2_language_defn): Make extern.
10490 (_initialize_m2_language): Remove add_language call.
10491 * objc-lang.c (objc_language_defn): Make extern.
10492 (_initialize_objc_language): Remove add_language call.
10493 * opencl-lang.c (opencl_language_defn): Make extern.
10494 (_initialize_opencl_language): Remove add_language call.
10495 * p-lang.c (pascal_language_defn): Make extern.
10496 (_initialize_pascal_language): Delete.
10497 * rust-lang.c (rust_language_defn): Make extern.
10498 (_initialize_rust_language): Delete.
10499 * utils.h (compare_cstrings): New static inline function.
10501 2017-07-20 Pedro Alves <palves@redhat.com>
10503 * ada-lang.c (ada_to_fixed_type_1): Adjust.
10504 (get_var_value): Constify parameters.
10505 (get_int_var_value): Change prototype.
10506 (to_fixed_range_type): Adjust.
10507 * ada-lang.h (get_int_var_value): Change prototype.
10509 2017-07-20 Pedro Alves <palves@redhat.com>
10511 * dwarf2read.c (dw2_lookup_symbol): Use
10512 SYMBOL_MATCHES_SEARCH_NAME.
10513 * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME.
10515 2017-07-20 Pedro Alves <palves@redhat.com>
10517 * block.c (block_iter_name_step, block_iter_name_first)
10518 (block_iter_name_next): Delete.
10519 (block_lookup_symbol_primary): Adjust to use
10520 dict_iter_match_first/dict_iter_match_next.
10521 * block.h (block_iter_name_first, block_iter_name_next): Delete
10523 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use
10524 dict_iter_match_first/dict_iter_match_next.
10526 2017-07-20 Pedro Alves <palves@redhat.com>
10528 * cp-support.c (cp_find_first_component_aux): Add missing case for
10531 2017-07-18 David Blaikie <dblaikie@gmail.com>
10533 * dwarf2read.c (create_cus_hash_table): Re-add lost initialization
10534 of dwo_cu's dwo_file.
10536 2017-07-18 Yao Qi <yao.qi@linaro.org>
10538 * remote.c (store_registers_using_G): Remove one line comment.
10540 2017-07-18 Yao Qi <yao.qi@linaro.org>
10542 * regcache.c (regcache_cpy): Simplify it.
10543 (regcache::cpy_no_passthrough): Remove it.
10544 * regcache.h (cpy_no_passthrough): Remove it.
10545 (regcache_dup, regcache_cpy): Update comments.
10547 2017-07-18 Pedro Alves <palves@redhat.com>
10549 * remote-sim.c (sim_command_completer): Adjust to work with a
10550 completion_tracker instead of a VEC.
10552 2017-07-17 Pedro Alves <palves@redhat.com>
10554 * completer.c (complete_source_filenames): New function.
10555 (complete_address_and_linespec_locations): New function.
10556 (location_completer): Use complete_address_and_linespec_locations.
10557 (completion_tracker::build_completion_result): Honor the tracker's
10558 request to suppress append.
10559 * completer.h (completion_tracker::suppress_append_ws)
10560 (completion_tracker::set_suppress_append_ws): New methods.
10561 (completion_tracker::m_suppress_append_ws): New field.
10562 (complete_source_filenames): New declaration.
10563 * linespec.c (linespec_complete_what): New.
10564 (struct ls_parser) <complete_what, completion_word,
10565 completion_quote_char, completion_quote_end, completion_tracker>:
10567 (string_find_incomplete_keyword_at_end): New.
10568 (linespec_lexer_lex_string): Record quote char. If in completion
10570 (linespec_lexer_consume_token): Advance the completion word point.
10571 (linespec_lexer_peek_token): Save/restore completion info.
10572 (save_stream_and_consume_token): New.
10573 (set_completion_after_number): New.
10574 (linespec_parse_basic): Set what to complete next depending on
10575 token. Handle function and label completions specially.
10576 (parse_linespec): Disable objc shortcut in completion mode. Set
10577 what to complete next depending on token type. Skip keyword if in
10579 (complete_linespec_component, linespec_complete): New.
10580 * linespec.h (linespec_complete): Declare.
10582 2017-07-17 Pedro Alves <palves@redhat.com>
10584 * linespec.c (linespec_lexer_lex_string, find_toplevel_char):
10585 Handle 'operator<' / 'operator<<'.
10587 2017-07-17 Pedro Alves <palves@redhat.com>
10589 * completer.c (collect_explicit_location_matches): Handle
10591 (convert_explicit_location_to_linespec): New, factored out from
10593 (convert_explicit_location_to_sals): ... this.
10594 (complete_label): New.
10595 (linespec_complete_label, find_label_symbols_in_block): New.
10596 (find_label_symbols): Add completion_mode parameter and adjust to
10597 call find_label_symbols_in_block.
10598 * linespec.h (linespec_complete_label): Declare.
10600 2017-07-17 Pedro Alves <palves@redhat.com>
10602 * ada-lang.c (ada_collect_symbol_completion_matches): Add
10603 complete_symbol_mode parameter.
10604 * cli/cli-cmds.c (complete_command): Get the completion result out
10605 of the handle_brkchars tracker if used a custom word point.
10606 * completer.c: Include "linespec.h".
10607 (enum explicit_location_match_type) <MATCH_LINE>: New enumerator.
10608 (advance_to_expression_complete_word_point): New.
10609 (completion_tracker::completes_to_completion_word): New.
10610 (complete_files_symbols): Pass down
10611 complete_symbol_mode::EXPRESSION.
10612 (explicit_options, probe_options): New.
10613 (collect_explicit_location_matches): Complete on the
10614 explictit_loc->foo instead of word. Use
10615 linespec_complete_function. Handle MATCH_LINE. Handle offering
10616 keyword and options completions.
10617 (backup_text_ptr): Delete.
10618 (skip_keyword): New.
10619 (complete_explicit_location): Remove 'word' parameter. Add
10620 language, quoted_arg_start and quoted_arg_end parameters.
10621 Rewrite, parsing left to right.
10622 (location_completer): Rewrite.
10623 (location_completer_handle_brkchars): New function.
10624 (symbol_completer): Pass down complete_symbol_mode::EXPRESSION.
10625 (enum complete_line_internal_reason): Adjust comments.
10626 (completion_tracker::discard_completions): New.
10627 (completer_handle_brkchars_func_for_completer): Handle
10628 location_completer.
10629 (gdb_custom_word_point_brkchars)
10630 (gdb_org_rl_basic_quote_characters): New.
10631 (gdb_completion_word_break_characters_throw)
10632 (completion_find_completion_word): Handle trackers that use a
10634 (completion_tracker::advance_custom_word_point_by): New.
10635 (completion_tracker::build_completion_result): Don't rely on
10636 readline appending the quote char.
10637 (gdb_rl_attempted_completion_function_throw): Handle trackers that
10638 use a custom word point.
10639 (gdb_rl_attempted_completion_function): Restore
10640 rl_basic_quote_characters.
10641 * completer.h (class completion_tracker): Extend intro comment.
10642 (completion_tracker::set_quote_char)
10643 (completion_tracker::quote_char)
10644 (completion_tracker::set_use_custom_word_point)
10645 (completion_tracker::use_custom_word_point)
10646 (completion_tracker::custom_word_point)
10647 (completion_tracker::set_custom_word_point)
10648 (completion_tracker::advance_custom_word_point_by)
10649 (completion_tracker::completes_to_completion_word)
10650 (completion_tracker::discard_completions): New methods.
10651 (completion_tracker::m_quote_char)
10652 (completion_tracker::m_use_custom_word_point)
10653 (completion_tracker::m_custom_word_point): New fields.
10654 (advance_to_expression_complete_word_point): Declare.
10655 * f-lang.c (f_collect_symbol_completion_matches): Add
10656 complete_symbol_mode parameter.
10657 * language.h (struct language_defn)
10658 <la_collect_symbol_completion_matches>: Add complete_symbol_mode
10660 * linespec.c (linespec_keywords): Add NULL terminator. Make extern.
10661 (linespec_complete_function): New function.
10662 (linespec_lexer_lex_keyword): Adjust.
10663 * linespec.h (linespec_keywords, linespec_complete_function): New
10665 * location.c (find_end_quote): New function.
10666 (explicit_location_lex_one): Add explicit_completion_info
10667 parameter. Save quoting info. Don't throw if being called for
10668 completion. Don't handle Ada operators here.
10669 (is_cp_operator, skip_op_false_positives, first_of)
10670 (explicit_location_lex_one_function): New function.
10671 (string_to_explicit_location): Replace 'dont_throw' parameter with
10672 an explicit_completion_info pointer parameter. Handle it. Don't
10673 use explicit_location_lex_one to lex function names. Use
10674 explicit_location_lex_one_function instead.
10675 * location.h (struct explicit_completion_info): New.
10676 (string_to_explicit_location): Replace 'dont_throw' parameter with
10677 an explicit_completion_info pointer parameter.
10678 * symtab.c (default_collect_symbol_completion_matches_break_on):
10679 Add complete_symbol_mode parameter. Handle LINESPEC mode.
10680 (default_collect_symbol_completion_matches)
10681 (collect_symbol_completion_matches): Add complete_symbol_mode
10683 (collect_symbol_completion_matches_type): Pass down
10684 complete_symbol_mode::EXPRESSION.
10685 (collect_file_symbol_completion_matches): Add complete_symbol_mode
10686 parameter. Handle LINESPEC mode.
10687 * symtab.h (complete_symbol_mode): New.
10688 (default_collect_symbol_completion_matches_break_on)
10689 (default_collect_symbol_completion_matches)
10690 (collect_symbol_completion_matches)
10691 (collect_file_symbol_completion_matches): Add complete_symbol_mode
10694 2017-07-17 Pedro Alves <palves@redhat.com>
10696 * utils.c (enum class strncmp_iw_mode): New.
10697 (strcmp_iw): Rename to ...
10698 (strncmp_iw_with_mode): ... this. Add string2_len and mode
10699 parameters. Handle them.
10701 (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode.
10702 * utils.h (strncmp_iw): Declare.
10703 (strcmp_iw): Move describing comments here.
10705 2017-07-17 Pedro Alves <palves@redhat.com>
10707 * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and
10709 * c-typeprint.c (is_type_conversion_operator): Use
10711 * cp-support.c (LENGTH_OF_OPERATOR): Delete.
10712 (cp_find_first_component_aux): Use CP_OPERATOR_STR and
10714 * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New.
10715 * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR.
10716 * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR.
10717 * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and
10719 * location.c: Include "cp-support.h".
10720 (explicit_location_lex_one): Use CP_OPERATOR_LEN and
10722 * symtab.c (operator_chars): Use CP_OPERATOR_STR and
10725 2017-07-17 Pedro Alves <palves@redhat.com>
10727 * cli/cli-cmds.c (complete_command): Use a completion tracker
10728 along with completion_find_completion_word for handle_brkchars
10730 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
10731 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New.
10732 (struct gdb_rl_completion_word_info): New.
10733 (gdb_rl_find_completion_word): New.
10734 (completion_find_completion_word): New.
10735 * completer.h (completion_find_completion_word): Declare.
10737 2017-07-17 Pedro Alves <palves@redhat.com>
10739 * ada-lang.c (symbol_completion_match): Adjust comments.
10740 (symbol_completion_add): Replace vector parameter with
10741 completion_tracker parameter. Use it.
10742 (ada_make_symbol_completion_list): Rename to...
10743 (ada_collect_symbol_completion_matches): ... this. Add
10744 completion_tracker parameter and use it.
10745 (ada_language_defn): Adjust.
10746 * break-catch-syscall.c (catch_syscall_completer): Adjust
10747 prototype and work with completion_tracker instead of VEC.
10748 * breakpoint.c (condition_completer): Adjust prototype and work
10749 with completion_tracker instead of VEC.
10750 * c-lang.c (c_language_defn, cplus_language_defn)
10751 (asm_language_defn, minimal_language_defn): Adjust to renames.
10752 * cli/cli-cmds.c (complete_command): Rework using
10753 completion_tracker. Catch exceptions when completing.
10754 * cli/cli-decode.c (integer_unlimited_completer)
10755 (complete_on_cmdlist, complete_on_enum): Adjust prototype and work
10756 with completion_tracker instead of VEC.
10757 * command.h (struct completion_tracker): Forward declare.
10758 (completer_ftype, completer_handle_brkchars_ftype): Change
10760 (complete_on_cmdlist, complete_on_enum): Adjust.
10761 * completer.c: Include <algorithm>.
10762 (struct gdb_completer_state): New.
10763 (current_completion): New global.
10764 (readline_line_completion_function): Delete.
10765 (noop_completer, filename_completer)
10766 (filename_completer_handle_brkchars, complete_files_symbols)
10767 (linespec_location_completer): Adjust to work with a
10768 completion_tracker instead of a VEC.
10769 (string_or_empty): New.
10770 (collect_explicit_location_matches): Adjust to work with a
10771 completion_tracker instead of a VEC.
10772 (explicit_location_completer): Rename to ...
10773 (complete_explicit_location): ... this and adjust to work with a
10774 completion_tracker instead of a VEC.
10775 (location_completer): Adjust to work with a completion_tracker
10777 (add_struct_fields): Adjust to work with a completion_list instead
10779 (expression_completer): Rename to ...
10780 (complete_expression): ... this and adjust to work with a
10781 completion_tracker instead of a VEC. Use complete_files_symbols.
10782 (expression_completer): Reimplement on top of complete_expression.
10783 (symbol_completer): Adjust to work with a completion_tracker
10785 (enum complete_line_internal_reason): Add describing comments.
10786 (complete_line_internal_normal_command): Adjust to work with a
10787 completion_tracker instead of a VEC.
10788 (complete_line_internal): Rename to ...
10789 (complete_line_internal_1): ... this and adjust to work with a
10790 completion_tracker instead of a VEC. Assert TEXT is NULL in the
10791 handle_brkchars phase.
10792 (new_completion_tracker): Delete.
10793 (complete_line_internal): Reimplement as TRY/CATCH wrapper around
10794 complete_line_internal_1.
10795 (free_completion_tracker): Delete.
10796 (INITIAL_COMPLETION_HTAB_SIZE): New.
10797 (completion_tracker::completion_tracker)
10798 (completion_tracker::~completion_tracker): New.
10799 (maybe_add_completion): Delete.
10800 (completion_tracker::maybe_add_completion)
10801 (completion_tracker::add_completion)
10802 (completion_tracker::add_completions): New.
10803 (throw_max_completions_reached_error): Delete.
10804 (complete_line): Adjust to work with a completion_tracker instead
10805 of a VEC. Don't create a completion_tracker_t or check for max
10807 (command_completer, command_completer_handle_brkchars)
10808 (signal_completer, reg_or_group_completer_1)
10809 (reg_or_group_completer, default_completer_handle_brkchars):
10810 Adjust to work with a completion_tracker.
10811 (gdb_completion_word_break_characters_throw): New.
10812 (gdb_completion_word_break_characters): Reimplement.
10813 (line_completion_function): Delete.
10814 (completion_tracker::recompute_lowest_common_denominator)
10815 (expand_preserving_ws)
10816 (completion_tracker::build_completion_result)
10817 (completion_result::completion_result)
10818 (completion_result::completion_result)
10819 (completion_result::~completion_result)
10820 (completion_result::completion_result)
10821 (completion_result::release_match_list, compare_cstrings)
10822 (completion_result::sort_match_list)
10823 (completion_result::reset_match_list)
10824 (gdb_rl_attempted_completion_function_throw)
10825 (gdb_rl_attempted_completion_function): New.
10826 * completer.h (completion_list, struct completion_result)
10827 (class completion_tracker): New.
10828 (complete_line): Add completion_tracker parameter.
10829 (readline_line_completion_function): Delete.
10830 (gdb_rl_attempted_completion_function): New.
10831 (noop_completer, filename_completer, expression_completer)
10832 (location_completer, symbol_completer, command_completer)
10833 (signal_completer, reg_or_group_completer): Update prototypes.
10834 (completion_tracker_t, new_completion_tracker)
10835 (make_cleanup_free_completion_tracker): Delete.
10836 (enum maybe_add_completion_enum): Delete.
10837 (maybe_add_completion): Delete.
10838 (throw_max_completions_reached_error): Delete.
10839 * corefile.c (complete_set_gnutarget): Adjust to work with a
10840 completion_tracker instead of a VEC.
10841 * cp-abi.c (cp_abi_completer): Adjust to work with a
10842 completion_tracker instead of a VEC.
10843 * d-lang.c (d_language_defn): Adjust.
10844 * disasm.c (disassembler_options_completer): Adjust to work with a
10845 completion_tracker instead of a VEC.
10846 * f-lang.c (f_make_symbol_completion_list): Rename to ...
10847 (f_collect_symbol_completion_matches): ... this. Adjust to work
10848 with a completion_tracker instead of a VEC.
10849 (f_language_defn): Adjust.
10850 * go-lang.c (go_language_defn): Adjust.
10851 * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer):
10852 Adjust to work with a completion_tracker instead of a VEC.
10853 * infrun.c (handle_completer): Likewise.
10854 * interps.c (interpreter_completer): Likewise.
10855 * interps.h (interpreter_completer): Likewise.
10856 * language.c (unknown_language_defn, auto_language_defn)
10857 (local_language_defn): Adjust.
10858 * language.h (language_defn::la_make_symbol_completion_list):
10860 (language_defn::la_collect_symbol_completion_matches): ... this
10861 and adjust to work with a completion_tracker instead of a VEC.
10862 * m2-lang.c (m2_language_defn): Adjust.
10863 * objc-lang.c (objc_language_defn): Adjust.
10864 * opencl-lang.c (opencl_language_defn): Adjust.
10865 * p-lang.c (pascal_language_defn): Adjust.
10866 * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word.
10867 (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work
10868 with a completion_tracker.
10869 * rust-lang.c (rust_language_defn): Adjust.
10870 * symtab.c (free_completion_list, do_free_completion_list)
10871 (return_val, completion_tracker): Delete.
10872 (completion_list_add_name, completion_list_add_symbol)
10873 (completion_list_add_msymbol, completion_list_objc_symbol)
10874 (completion_list_add_fields, add_symtab_completions): Add
10875 completion_tracker parameter and use it.
10876 (default_make_symbol_completion_list_break_on_1): Rename to...
10877 (default_collect_symbol_completion_matches_break_on): ... this.
10878 Add completion_tracker parameter and use it instead of allocating
10879 a completion tracker here.
10880 (default_make_symbol_completion_list_break_on): Delete old
10882 (default_make_symbol_completion_list): Delete.
10883 (default_collect_symbol_completion_matches): New.
10884 (make_symbol_completion_list): Delete.
10885 (collect_symbol_completion_matches): New.
10886 (make_symbol_completion_type): Rename to ...
10887 (collect_symbol_completion_matches_type): ... this. Add
10888 completion_tracker parameter and use it instead of VEC.
10889 (make_file_symbol_completion_list_1): Rename to...
10890 (collect_file_symbol_completion_matches): ... this. Add
10891 completion_tracker parameter and use it instead of VEC.
10892 (make_file_symbol_completion_list): Delete.
10893 (add_filename_to_list): Use completion_list instead of a VEC.
10894 (add_partial_filename_data::list): Now a completion_list.
10895 (make_source_files_completion_list): Work with a completion_list
10897 * symtab.h: Include "completer.h".
10898 (default_make_symbol_completion_list_break_on)
10899 (default_make_symbol_completion_list, make_symbol_completion_list)
10900 (make_symbol_completion_type, make_file_symbol_completion_list)
10901 (make_source_files_completion_list): Delete.
10902 (default_collect_symbol_completion_matches_break_on)
10903 (default_collect_symbol_completion_matches)
10904 (collect_symbol_completion_matches)
10905 (collect_symbol_completion_matches_type)
10906 (collect_file_symbol_completion_matches)
10907 (make_source_files_completion_list): New.
10908 * top.c (init_main): Don't install a rl_completion_entry_function
10909 hook. Install a rl_attempted_completion_function hook instead.
10910 * tui/tui-layout.c (layout_completer): Adjust to work with a
10911 completion_tracker.
10912 * tui/tui-regs.c (tui_reggroup_completer):
10913 * tui/tui-win.c (window_name_completer, focus_completer)
10914 (winheight_completer): Adjust to work with a completion_tracker.
10915 * value.c: Include "completer.h".
10916 (complete_internalvar): Adjust to work with a completion_tracker.
10917 * value.h (complete_internalvar): Likewise.
10919 2017-07-17 Pedro Alves <palves@redhat.com>
10921 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to
10923 * cli/cli-decode.h (struct cmd_list_element) <completer>: Move
10924 comments to completer_ftype's declaration.
10925 <completer_handle_brkchars>: Change type to
10926 completer_handle_brkchars_ftype.
10927 * command.h (completer_ftype): Add describing comment and give
10928 names to parameters.
10929 (completer_ftype_void): Rename to ...
10930 (completer_handle_brkchars_ftype) ... this. Add describing comment.
10931 (set_cmd_completer_handle_brkchars): Adjust.
10932 * completer.c (filename_completer_handle_brkchars): New function.
10933 (complete_line_internal_normal_command): New function, factored
10935 (complete_line_internal): ... here.
10936 (command_completer_handle_brkchars)
10937 (default_completer_handle_brkchars)
10938 (completer_handle_brkchars_func_for_completer): New functions.
10939 * completer.h (set_gdb_completion_word_break_characters): Delete
10941 (completer_handle_brkchars_func_for_completer): New declaration.
10942 * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use
10943 completer_handle_brkchars_func_for_completer.
10945 2017-07-17 Pedro Alves <palves@redhat.com>
10947 * completer.c (symbol_completer): New function, based on
10948 make_symbol_completion_list_fn.
10949 * completer.h (symbol_completer): New declaration.
10950 * guile/scm-cmd.c (cmdscm_completers): Adjust.
10951 * python/py-cmd.c (completers): Adjust.
10952 * symtab.c (make_symbol_completion_list_fn): Delete.
10953 * symtab.h (make_symbol_completion_list_fn): Delete.
10954 * cli/cli-decode.c (add_cmd): Adjust.
10956 2017-07-17 Pedro Alves <palves@redhat.com>
10958 * Makefile.in (COMMON_OBS): Add filename-seen-cache.o.
10959 * dwarf2read.c: Include "filename-seen-cache.h".
10960 * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field.
10961 (dw2_map_symbol_filenames): Build and use a filenames_seen_cache.
10962 * filename-seen-cache.c: New file.
10963 * filename-seen-cache.h: New file.
10964 * symtab.c: Include "filename-seen-cache.h".
10965 (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE)
10966 (create_filename_seen_cache, clear_filename_seen_cache)
10967 (delete_filename_seen_cache, filename_seen): Delete, parts moved
10968 to filename-seen-cache.h/filename-seen-cache.c.
10969 (output_source_filename, sources_info)
10970 (maybe_add_partial_symtab_filename)
10971 (make_source_files_completion_list): Adjust to use
10972 filename_seen_cache.
10974 2017-07-17 Pedro Alves <palves@redhat.com>
10976 * dwarf2read.c (dwarf2_per_objfile): In-class initialize all
10978 (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const
10979 dwarf2_debug_sections*)): New.
10980 (dwarf2_per_objfile::dwarf2_per_objfile(const
10981 dwarf2_per_objfile&)): Declare as deleted.
10982 (dwarf2_per_objfile::operator=): Declare as deleted.
10983 (dwarf2_per_objfile::dwarf2_per_objfile)
10984 (dwarf2_per_objfile::~dwarf2_per_objfile)
10985 (dwarf2_per_objfile::free_cached_comp_units): New.
10986 (dwarf2_has_info): dwarf2_per_objfile initialization code moved to
10987 ctor. Call dwarf2_per_objfile's ctor manually.
10988 (dwarf2_locate_sections): Deleted/refactored as ...
10989 (dwarf2_per_objfile::locate_sections): ... this new method.
10990 (free_cached_comp_units): Defer to
10991 dwarf2_per_objfile::free_cached_comp_units.
10992 (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually.
10994 2017-07-14 Tom Tromey <tom@tromey.com>
10997 * rust-exp.y (convert_ast_to_expression): Add "want_type"
10999 <UNOP_SIZEOF>: Split into separate case.
11000 <UNOP_VAR_VALUE>: Handle want_type. Add error case.
11002 2017-07-14 Tom Tromey <tom@tromey.com>
11005 * symtab.c (symbol_matches_domain): Add language_rust to special
11007 * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't
11008 treat LOC_TYPEDEF symbols as variables.
11010 2017-07-14 Pedro Alves <palves@redhat.com>
11012 * symtab.c (make_file_symbol_completion_list_1): Iterate over
11013 symtabs matching all symtabs with SRCFILE as file name instead of
11014 only considering the first hit, with lookup_symtab.
11016 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
11018 * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and
11019 operator_name parameters.
11020 (gen_expr): Update function call.
11022 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
11024 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch
11026 * symtab.h (struct symbol_computed_ops::tracepoint_var_ref):
11028 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch
11029 parameter, use agent_expr::gdbarch instead, update function
11031 (locexpr_tracepoint_var_ref): Likewise.
11032 (loclist_tracepoint_var_ref): Likewise.
11033 * ax-gdb.c (gen_trace_static_fields): Likewise.
11034 (gen_traced_pop): Likewise.
11035 (gen_frame_args_address): Likewise.
11036 (gen_frame_locals_address): Likewise.
11037 (gen_var_ref): Likewise.
11038 (gen_struct_ref_recursive): Likewise.
11039 (gen_static_field): Likewise.
11040 (gen_maybe_namespace_elt): Likewise.
11041 (gen_expr): Likewise.
11042 (gen_trace_for_var): Likewise.
11043 (gen_trace_for_expr): Likewise.
11044 (gen_trace_for_return_address): Likewise.
11046 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
11048 * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax
11050 (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call.
11052 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
11054 * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch
11055 from ax, update calls.
11056 (gen_usual_arithmetic): Likewise.
11057 (gen_integral_promotions): Likewise.
11058 (gen_bitfield_ref): Likewise.
11059 (gen_primitive_field): Likewise.
11060 (gen_struct_ref_recursive): Likewise.
11061 (gen_struct_ref): Likewise.
11062 (gen_maybe_namespace_elt): Likewise.
11063 (gen_struct_elt_for_reference): Likewise.
11064 (gen_namespace_elt): Likewise.
11065 (gen_aggregate_elt_ref): Likewise.
11066 (gen_expr): Get gdbarch from ax, update calls.
11067 (gen_expr_binop_rest): Likewise.
11069 2017-07-13 Pedro Alves <palves@redhat.com>
11071 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64
11073 * amd64-dicos-tdep.c (amd64_dicos_init_abi):
11074 * amd64-fbsd-tdep.c (amd64fbsd_init_abi):
11075 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass
11076 tdesc_amd64_linux as default tdesc. Get final tdesc from the
11078 (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc.
11079 Get final tdesc from the tdep.
11080 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as
11082 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
11083 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
11084 * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter.
11085 Use it as default tdesc.
11086 (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it
11087 down to amd_init_abi. No longer handle fallback tdesc here.
11088 * amd64-tdep.h (tdesc_x32): Declare.
11089 (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc'
11091 * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64
11094 2017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11096 * s390-linux-tdep.c (s390_process_record): Add support for
11097 instructions new in arch12.
11099 2017-07-11 John Baldwin <jhb@FreeBSD.org>
11101 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
11102 PT_GETFSBASE and PT_GETGSBASE.
11103 (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and
11106 2017-07-11 John Baldwin <jhb@FreeBSD.org>
11108 * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat)
11109 (amd64-avx-mpx.dat, amd64-avx-avx512.dat)
11110 (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in
11112 * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml.
11113 * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml.
11114 * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml.
11115 * features/i386/amd64-avx.xml: Add 64bit-segments.xml.
11116 * features/i386/amd64-mpx.xml: Add 64bit-segments.xml.
11117 * features/i386/amd64.xml: Add 64bit-segments.xml.
11118 * features/i386/amd64-avx-avx512.c: Regenerated.
11119 * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated.
11120 * features/i386/amd64-avx-mpx.c: Regenerated.
11121 * features/i386/amd64-avx.c: Regenerated.
11122 * features/i386/amd64-mpx.c: Regenerated.
11123 * features/i386/amd64.c: Regenerated.
11124 * regformats/i386/amd64-avx-avx512.dat: Regenerated.
11125 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
11126 * regformats/i386/amd64-avx-mpx.dat: Regenerated.
11127 * regformats/i386/amd64-avx.dat: Regenerated.
11128 * regformats/i386/amd64-mpx.dat: Regenerated.
11129 * regformats/i386/amd64.dat: Regenerated.
11131 2017-07-10 Yao Qi <yao.qi@linaro.org>
11133 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
11134 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
11136 2017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com>
11138 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and
11140 * gnulib/aclocal.m4: Regenerate.
11141 * gnulib/config.in: Regenerate.
11142 * gnulib/configure: Regenerate.
11143 * gnulib/import/Makefile.am: Regenerate.
11144 * gnulib/import/Makefile.in: Regenerate.
11145 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
11146 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
11147 * gnulib/import/m4/environ.m4: New file.
11148 * gnulib/import/m4/setenv.m4: New file.
11149 * gnulib/import/setenv.c: New file.
11150 * gnulib/import/unsetenv.c: New file.
11152 2017-07-09 Simon Marchi <simon.marchi@ericsson.com>
11154 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read
11155 address when op is DW_OP_addr.
11157 2017-07-09 Tom Tromey <tom@tromey.com>
11159 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size
11160 check and apply to outer type.
11162 2017-07-07 John Baldwin <jhb@FreeBSD.org>
11164 * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS)
11165 (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI)
11166 (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New.
11167 (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method.
11169 2017-07-07 John Baldwin <jhb@FreeBSD.org>
11171 * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name.
11173 2017-07-07 John Baldwin <jhb@FreeBSD.org>
11175 * corelow.c (get_core_siginfo): Remove.
11176 (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method
11177 instead of get_core_siginfo.
11178 * gdbarch.sh (core_xfer_siginfo): New gdbarch callback.
11179 * gdbarch.h: Re-generate.
11180 * gdbarch.c: Re-generate.
11181 * linux-tdep.c (linux_core_xfer_siginfo): New.
11182 (linux_init_abi): Install gdbarch "core_xfer_siginfo" method.
11184 2017-07-07 John Baldwin <jhb@FreeBSD.org>
11186 * corelow.c (thread_section_name): Move to ...
11187 * gdbcore.h (thread_section_name): ... here.
11189 2017-07-07 John Baldwin <jhb@FreeBSD.org>
11191 * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32)
11192 (struct siginfo32): New.
11193 [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New.
11194 (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO
11195 via ptrace(PT_LWPINFO).
11197 2017-07-07 John Baldwin <jhb@FreeBSD.org>
11199 * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data)
11200 (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data)
11201 (fbsd_get_siginfo_type): New.
11202 (fbsd_init_abi): Install gdbarch "get_siginfo_type" method.
11203 (_initialize_fbsd_tdep): New.
11205 2017-07-06 David Blaikie <dblaikie@gmail.com>
11207 * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than
11208 a singular dwo_unit*) to support multiple CUs in the same way that
11209 multiple TUs are supported.
11210 (create_cus_hash_table): Replace create_dwo_cu with a function for
11211 parsing multiple CUs from a DWO file.
11212 (open_and_init_dwo_file): Use create_cus_hash_table rather than
11214 (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with
11215 htab_find, rather than comparing the signature to a singleton CU in
11218 2017-07-06 Pedro Alves <palves@redhat.com>
11220 * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition.
11222 2017-07-04 Pedro Alves <palves@redhat.com>
11224 * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC.
11225 * gdbtypes.h (TYPE_STATIC): Delete.
11226 (struct fn_field) <is_public, is_abstract, is_static, is_final,
11227 is_synchronized, is_native>: Delete.
11229 (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL)
11230 (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE)
11231 (TYPE_FN_FIELD_ABSTRACT): Delete.
11233 2017-07-03 Simon Marchi <simon.marchi@ericsson.com>
11235 * buffer.h (buffer_finish): Fix spelling mistakes.
11237 2017-07-01 Eli Zaretskii <eliz@gnu.org>
11239 * .dir-locals.el: Automatically switch to C-style comments in
11240 versions of Emacs that support the feature.
11242 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
11243 Pedro Alves <palves@redhat.com>
11246 * cli/cli-script.c (command_name_equals_not_inline): Remove function.
11247 (process_next_line): New variable 'inline_cmd'.
11248 Adjust 'if' clauses for "python", "compile" and "guile" to use
11249 'command_name_equals' and check for '!inline_cmd'.
11251 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
11254 * cli/cli-script.c (command_name_equals_not_inline): New function.
11255 (process_next_line): Adjust 'if' clauses for "python", "compile"
11256 and "guile" to use command_name_equals_not_inline.
11258 2017-06-29 Pedro Alves <palves@redhat.com>
11260 * completer.c (expression_completer): Call
11261 linespec_location_completer instead of location_completer.
11263 2017-06-29 Pedro Alves <palves@redhat.com>
11265 * completer.c (expression_completer): Remove code that recomputes
11266 'text' from 'word'.
11268 2017-06-29 Yao Qi <yao.qi@linaro.org>
11270 * regformats/regdat.sh: Generate code with
11271 "ifndef IN_PROCESS_AGENT".
11273 2017-06-28 Pedro Alves <palves@redhat.com>
11275 * command.h: Include "common/scoped_restore.h".
11277 2017-06-28 Yao Qi <yao.qi@linaro.org>
11279 * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str
11280 instead of obstack_grow.
11282 2017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com>
11285 * symfile.c (reread_symbols): Call objfiles_changed just before
11288 2017-06-27 Pedro Alves <palves@redhat.com>
11290 * symtab.c (COMPLETION_LIST_ADD_SYMBOL)
11291 (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ...
11292 (completion_list_add_symbol, completion_list_add_msymbol):
11293 ... these new functions.
11294 (add_symtab_completions)
11295 (default_make_symbol_completion_list_break_on_1): Adjust.
11297 2017-06-27 Pedro Alves <palves@redhat.com>
11299 * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of
11300 bfd_zalloc. Call objfile_per_bfd_storage's ctor.
11301 (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's
11303 * objfiles.h (objfile_per_bfd_storage): Add ctor. Make
11304 'storage_obstack' field an auto_obstack. In-class initialize all
11305 non-bitfield fields. Make minsyms_read bool.
11306 * symfile.c (read_symbols): Adjust.
11308 2017-06-27 Alan Hayward <alan.hayward@arm.com>
11310 * remote-sim.c (gdbsim_fetch_register): Use byte_vector.
11311 (gdbsim_store_register): Likewise.
11313 2017-06-27 Pedro Alves <palves@redhat.com>
11315 * c-exp.y (name_obstack): Now an auto_obstack.
11316 (yylex): Use auto_obstack::clear.
11317 (c_parse): Use auto_obstack::clear instead of reinitializing and
11318 freeing the obstack.
11319 * c-lang.c (evaluate_subexp_c): Use auto_obstack.
11320 * d-exp.y (name_obstack): Now an auto_obstack.
11321 (yylex): Use auto_obstack::clear.
11322 (d_parse): Use auto_obstack::clear instead of reinitializing and
11323 freeing the obstack.
11324 * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use
11326 * dwarf2read.c (create_addrmap_from_index)
11327 (dwarf2_build_psymtabs_hard)
11328 (update_enumeration_type_from_children): Likewise.
11329 * gdb_obstack.h (auto_obstack): New type.
11330 * go-exp.y (name_obstack): Now an auto_obstack.
11331 (build_packaged_name): Use auto_obstack::clear.
11332 (go_parse): Use auto_obstack::clear instead of reinitializing and
11333 freeing the obstack.
11334 * linux-tdep.c (linux_make_mappings_corefile_notes): Use
11336 * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack.
11337 * rust-exp.y (work_obstack): Now an auto_obstack.
11338 (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of
11339 reinitializing and freeing the obstack.
11340 * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete.
11341 (host_char_to_target): Use auto_obstack.
11342 * utils.h (make_cleanup_obstack_free): Delete declaration.
11343 * valprint.c (generic_emit_char, generic_printstr): Use
11346 2017-06-27 Simon Marchi <simon.marchi@ericsson.com>
11348 * darwin-nat.c (darwin_check_new_threads): Don't handle dummy
11350 (darwin_init_thread_list): Don't update dummy thread.
11351 (darwin_create_inferior, darwin_attach): Don't add a dummy thread.
11353 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
11355 * record-full.c (netorder16): Remove.
11357 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
11359 * common/diagnostics.h: Define macros for GCC.
11360 (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro.
11361 * common/vec.h: Include diagnostics.h.
11362 (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro.
11363 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function
11366 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
11368 * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER):
11370 * ada-lex.l: Ignore deprecated register warnings.
11372 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
11374 * main.c (get_init_files): Replace "SYSTEM_GDBINIT +
11375 datadir_len" with "&SYSTEM_GDBINIT[datadir_len]".
11377 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
11379 * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on
11382 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
11384 * nat/x86-dregs.c (x86_show_dr): Print registers one per line.
11386 2017-06-23 Alan Hayward <alan.hayward@arm.com>
11388 * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add.
11389 (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE.
11390 (xtensa_register_read_masked): Likewise.
11392 2017-06-22 Sergio Durigan Junior <sergiodj@redhat.com>
11394 * common/environ.c (gdb_environ::unset): Update comment.
11396 2017-06-22 Alan Hayward <alan.hayward@arm.com>
11398 * python/py-unwind.c (pyuw_sniffer): Allocate space for
11401 2017-06-22 Alan Hayward <alan.hayward@arm.com>
11403 * record-full.c (record_full_exec_insn): Use byte_vector.
11405 2017-06-22 Yao Qi <yao.qi@linaro.org>
11407 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated.
11408 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
11410 2017-06-22 Alan Hayward <alan.hayward@arm.com>
11412 * remote.c (cached_reg): Move from here...
11413 * regcache.h (cached_reg): ...to here.
11414 * python/py-unwind.c (struct reg_info): Remove.
11415 (cached_frame_info): Use cached_reg_t.
11416 (pyuw_prev_register): Likewise.
11417 (pyuw_sniffer): Use cached_reg_t and allocate registers.
11418 (pyuw_dealloc_cache): Free all registers.
11420 2017-06-22 Pedro Alves <palves@redhat.com>
11421 Simon Marchi <simon.marchi@ericsson.com>
11423 * unittests/environ-selftests.c (run_tests): Ignore -Wself-move
11425 * common/diagnostics.h: New file.
11427 2017-06-22 Pedro Alves <palves@redhat.com>
11429 * common/agent.h: Add include guards.
11431 2017-06-21 Simon Marchi <simon.marchi@ericsson.com>
11433 * target.h (struct target_ops) <to_xfer_partial>: Update doc to
11434 talk about addressable units instead of bytes.
11436 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
11438 * common/environ.c (gdb_environ::unset): Use '::iterator' instead
11439 of '::const_iterator'.
11441 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
11443 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11444 'unittests/environ-selftests.c'.
11445 (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'.
11446 * charset.c (find_charset_names): Declare object 'iconv_env'.
11447 Update code to use 'iconv_env' object. Remove call to
11449 * common/environ.c: Include <utility>.
11450 (make_environ): Delete function.
11451 (free_environ): Delete function.
11452 (gdb_environ::clear): New function.
11453 (gdb_environ::operator=): New function.
11454 (gdb_environ::get): Likewise.
11455 (environ_vector): Delete function.
11456 (set_in_environ): Delete function.
11457 (gdb_environ::set): New function.
11458 (unset_in_environ): Delete function.
11459 (gdb_environ::unset): New function.
11460 (gdb_environ::envp): Likewise.
11461 * common/environ.h: Include <vector>.
11462 (struct gdb_environ): Delete; transform into...
11463 (class gdb_environ): ... this class.
11464 (free_environ): Delete prototype.
11465 (init_environ, get_in_environ, set_in_environ, unset_in_environ,
11466 environ_vector): Likewise.
11467 * infcmd.c (run_command_1): Update code to call
11468 'envp' from 'gdb_environ' class.
11469 (environment_info): Update code to call methods from 'gdb_environ'
11471 (unset_environment_command): Likewise.
11472 (path_info): Likewise.
11473 (path_command): Likewise.
11474 * inferior.c (inferior::~inferior): Delete call to 'free_environ'.
11475 (inferior::inferior): Initialize 'environment' using the host's
11477 * inferior.h: Remove forward declaration of 'struct gdb_environ'.
11478 Include "environ.h".
11479 (class inferior) <environment>: Change type from 'struct
11480 gdb_environ' to 'gdb_environ'.
11481 * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call
11482 methods from 'gdb_environ' class.
11483 * solib.c (solib_find_1): Likewise
11484 * unittests/environ-selftests.c: New file.
11486 2017-06-20 Yao Qi <yao.qi@linaro.org>
11488 * features/i386/i386-linux.xml: Exchange the order of including
11489 32bit-linux.xml and 32bit-sse.xml.
11490 * features/i386/i386-linux.c: Regenerated.
11492 2017-06-20 Yao Qi <yao.qi@linaro.org>
11494 * target-descriptions.c (tdesc_reg): Add ctor, dtor.
11495 Delete copy ctor and assignment operator.
11496 (tdesc_type): Likewise.
11497 (tdesc_feature): Likewise.
11498 (tdesc_free_reg): Remove.
11499 (tdesc_create_reg): Use new.
11500 (tdesc_free_type): Remove.
11501 (tdesc_create_vector): Use new.
11502 (tdesc_create_union): Likewise.
11503 (tdesc_create_flags): Likewise.
11504 (tdesc_create_enum): Likewise.
11505 (tdesc_free_feature): Delete.
11506 (free_target_description): Use delete.
11508 2017-06-19 John Baldwin <jhb@FreeBSD.org>
11510 * mips-tdep.c (print_gp_register_row): Don't error for unavailable
11513 2017-06-19 Pedro Alves <palves@redhat.com>
11515 * dwarf2read.c (write_psymtabs_to_index): Construct file_closer
11516 after gdb::unlinker.
11518 2017-06-19 Sergio Durigan Junior <sergiodj@redhat.com>
11520 * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of
11521 gdb_environ to access an environment variable.
11523 2017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
11525 * nat/linux-ptrace.c (linux_fork_to_function): Add cast to
11528 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
11530 * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF.
11532 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
11534 * configure: Re-generate.
11535 * warning.m4 (build_warnings): Add -Wno-mismatched-tags.
11537 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
11539 * configure: Re-generate.
11540 * warning.m4: Pass -Werror to compiler when checking for
11541 supported warning flags.
11543 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
11545 * Makefile.in (COMPILE.pre): Add "-x c++".
11547 2017-06-16 Alan Hayward <alan.hayward@arm.com>
11548 Pedro Alves <palves@redhat.com>
11549 Yao Qi <yao.qi@linaro.org>
11551 * defs.h (RequireLongest): New.
11552 (extract_integer): Declare function template.
11553 (extract_signed_integer): Remove the declaration, but define it
11555 (extract_unsigned_integer): Likewise.
11556 (store_integer): Declare function template.
11557 (store_signed_integer): Remove the declaration, but define it
11559 (store_unsigned_integer): Likewise.
11560 * findvar.c (extract_integer): New function template.
11561 (extract_signed_integer): Remove.
11562 (extract_unsigned_integer): Remove.
11563 (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit
11565 (store_integer): New function template.
11566 (store_signed_integer): Remove.
11567 (store_unsigned_integer): Remove.
11568 (store_integer): Explicit instantiations.
11569 * regcache.c (regcache_raw_read_signed): Update.
11570 (regcache::raw_read): New function.
11571 (regcache::raw_read_signed): Remove.
11572 (regcache::raw_read_unsigned): Remove.
11573 (regcache_raw_read_unsigned): Update.
11574 (regcache_raw_write_unsigned): Update.
11575 (regcache::raw_write_signed): Remove.
11576 (regcache::raw_write): New function.
11577 (regcache_cooked_read_signed): Update.
11578 (regcache::raw_write_unsigned): Remove.
11579 (regcache::cooked_read_signed): Remove.
11580 (regcache_cooked_read_unsigned): Update.
11581 (regcache::cooked_read_unsigned): Remove.
11582 (regcache_cooked_write_signed): Update.
11583 (regcache_cooked_write_unsigned): Update.
11584 * regcache.h (regcache) <raw_read_signed>: Remove.
11585 <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove.
11586 <raw_read, raw_write>: New.
11587 <cooked_read_signed, cooked_write_signed>: Remove.
11588 <cooked_write_unsigned, cooked_read_unsigned>: Remove.
11589 <cooked_read, cooked_write>: New.
11590 * sh64-tdep.c (sh64_pseudo_register_read): Update.
11591 (sh64_pseudo_register_write): Update.
11593 2017-06-16 Anton Kolesov <anton.kolesov@synopsys.com>
11595 * arc-tdep.c (arc_disassembler_options): New variable.
11596 (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead
11597 of default_print_insn.
11598 (arc_delayed_print_insn): Set info->section when needed,
11599 use default_print_insn to retrieve a disassembler.
11601 2017-06-14 Sergio Durigan Junior <sergiodj@redhat.com>
11604 * infcmd.c (_initialize_infcmd): Expand "help run" documentation
11605 to mention $SHELL and startup-with-shell.
11607 2017-06-14 Max Filippov <jcmvbkbc@gmail.com>
11609 * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers.
11611 2017-06-14 Yao Qi <yao.qi@linaro.org>
11613 * aarch64-tdep.c (aarch64_gdb_print_insn): Call
11614 default_print_insn instead of print_insn_aarch64.
11615 * arm-tdep.c (gdb_print_insn_arm): Call
11616 default_print_insn instead of print_insn_big_arm
11617 and print_insn_little_arm.
11618 * i386-tdep.c (i386_print_insn): Call default_print_insn
11619 instead of print_insn_i386.
11620 * ia64-tdep.c (ia64_print_insn): Call
11621 default_print_insn instead of print_insn_ia64.
11622 * mips-tdep.c (gdb_print_insn_mips): Call
11623 default_print_insn instead of print_insn_big_mips
11624 and print_insn_little_mips.
11625 * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn
11626 instead of print_insn_spu.
11628 2017-06-14 Pedro Alves <palves@redhat.com>
11630 * ada-lang.c: Include "common/byte-vector.h".
11631 (ada_value_primitive_packed_val): Use gdb::byte_vector.
11632 * charset.c (wchar_iterator::iterate): Resize the vector instead
11634 * common/byte-vector.h: Include "common/def-vector.h".
11635 (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>.
11636 * cli/cli-dump.c: Include "common/byte-vector.h".
11637 (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector.
11638 * common/byte-vector.h: New file.
11639 * common/def-vector.h: New file.
11640 * common/default-init-alloc.h: New file.
11641 * dwarf2loc.c: Include "common/byte-vector.h".
11642 (rw_pieced_value): Use gdb::byte_vector, and resize the vector
11643 instead of reserving it.
11644 * dwarf2read.c: Include "common/byte-vector.h".
11645 (data_buf::m_vec): Now a gdb::byte_vector.
11646 * gdb_regex.c: Include "common/def-vector.h".
11647 (compiled_regex::compiled_regex): Use gdb::def_vector<char>.
11648 * mi/mi-main.c: Include "common/byte-vector.h".
11649 (mi_cmd_data_read_memory): Use gdb::byte_vector.
11650 * printcmd.c: Include "common/byte-vector.h".
11651 (print_scalar_formatted): Use gdb::byte_vector.
11652 * valprint.c: Include "common/byte-vector.h".
11653 (maybe_negate_by_bytes, print_decimal_chars): Use
11656 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
11658 * darwin-nat.c: Include "nat/fork-inferior.h".
11660 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
11662 * configure.nat: Factor out Darwin bits that are not
11663 architecture-specific. Add fork-inferior.o.
11665 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
11667 * configure.nat: Factor out AIX bits that are not
11668 architecture-specific. Add fork-inferior.o.
11670 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11672 * dwarf2loc.c (rw_pieced_value): New. Merge logic from...
11673 (read_pieced_value, write_pieced_value): ...here. Reduce to
11674 wrappers that just call rw_pieced_value.
11676 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11678 * dwarf2loc.c (write_pieced_value): When writing the data for a
11679 memory piece, use write_memory_with_notification instead of
11682 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11684 * valops.c (read_value_memory): Change embedded_offset to
11685 represent a bit offset instead of a byte offset.
11686 * value.h (read_value_memory): Adjust comment.
11688 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11690 * dwarf2loc.c (read_pieced_value): Remove unnecessary variables
11691 dest_offset_bits and source_offset_bits.
11692 (write_pieced_value): Likewise.
11694 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11696 * dwarf2loc.c (read_pieced_value): Respect the piece offset, as
11697 given by DW_OP_bit_piece.
11698 (write_pieced_value): Likewise.
11700 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11702 * dwarf2loc.c (read_pieced_value): Move the buffer allocation and
11703 some other preparations to the places where sufficient information
11705 (write_pieced_value): Likewise.
11707 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11709 * dwarf2loc.c (bits_to_bytes): New function.
11710 (read_pieced_value): Fix offset calculations for register pieces
11711 on big-endian targets.
11712 (write_pieced_value): Likewise.
11714 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11716 * dwarf2loc.c (read_pieced_value): Remove buffer_size variable.
11717 (write_pieced_value): Likewise.
11719 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11721 * dwarf2loc.c (write_pieced_value): When writing to a bit-field,
11722 transfer the source value's least significant bits, instead of its
11723 lowest-addressed ones. Rename type_len to max_offset.
11724 (read_pieced_value): Mirror above changes to write_pieced_value as
11727 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11729 * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY,
11730 truncate full bytes from dest_offset_bits before using it as an
11731 offset into the buffer.
11733 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11735 * dwarf2loc.c (write_pieced_value): Include transfer size in
11738 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11740 * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the
11741 calculation of this_size.
11743 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11745 * dwarf2loc.c (read_pieced_value): Respect parent value's offset
11746 when targeting a bit-field.
11747 (write_pieced_value): Likewise.
11749 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11751 * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field.
11752 (allocate_piece_closure): Drop addr_size parameter.
11753 (dwarf2_evaluate_loc_desc_full): Adjust call to
11754 allocate_piece_closure.
11756 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11759 * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at
11760 the LSB end, independent of endianness.
11762 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11764 * dwarf2loc.c (write_pieced_value): Fix order of calculations for
11767 2017-06-13 Yao Qi <yao.qi@linaro.org>
11769 * mips-linux-nat.c: Move include features/mips*-linux.c to
11771 (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls
11772 to mips-linux-tdep.c.
11773 * mips-linux-tdep.c: Include features/mips*-linux.c
11774 (_initialize_mips_linux_tdep): Call initialize_tdesc_mips*
11776 * mips-linux-tdep.h (tdesc_mips_linux): Declare.
11777 (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare.
11778 (tdesc_mips64_dsp_linux): Declare.
11780 2017-06-12 Tom Tromey <tom@tromey.com>
11782 * valprint.h (val_print_type_code_int): Remove.
11783 * valprint.c (generic_val_print_int): Always call
11784 val_print_scalar_formatted.
11785 (val_print_type_code_int): Remove.
11786 * printcmd.c (print_scalar_formatted): Handle options->format==0.
11787 * f-valprint.c (f_val_print): Use val_print_scalar_formatted.
11788 * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted.
11789 * ada-valprint.c (ada_val_print_num): Use
11790 val_print_scalar_formatted.
11792 2017-06-12 Tom Tromey <tom@tromey.com>
11794 * printcmd.c (print_scalar_formatted): Unify the two switches.
11795 Don't convert scalars to LONGEST.
11797 2017-06-12 Tom Tromey <tom@tromey.com>
11800 * valprint.h (print_decimal_chars): Update.
11801 * valprint.c (maybe_negate_by_bytes): New function.
11802 (print_decimal_chars): Add "is_signed" argument.
11803 * printcmd.c (print_scalar_formatted): Update.
11805 2017-06-12 Tom Tromey <tom@tromey.com>
11808 * valprint.h (print_binary_chars, print_hex_chars): Update.
11809 * valprint.c (val_print_type_code_int): Update.
11810 (print_binary_chars): Add "zero_pad" argument.
11811 (emit_octal_digit): New function.
11812 (print_octal_chars): Don't zero-pad.
11813 (print_decimal_chars): Likewise.
11814 (print_hex_chars): Add "zero_pad" argument.
11815 * sh64-tdep.c (sh64_do_fp_register): Update.
11816 * regcache.c (regcache::dump): Update.
11817 * printcmd.c (print_scalar_formatted): Update.
11818 * infcmd.c (default_print_one_register_info): Update.
11820 2017-06-12 Pedro Alves <palves@redhat.com>
11821 Alan Hayward <alan.hayward@arm.com>
11823 * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New.
11824 (mips_eabi_push_dummy_call): Rename local 'regsize' to
11825 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and
11826 use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it.
11827 Assert that abi_regsize bytes fit in 'ref_valbuf'.
11829 2017-06-12 Pedro Alves <palves@redhat.com>
11831 * dwarf2read.c (mapped_symtab::data): Now a vector of
11832 symtab_index_entry instead of vector of
11833 std::unique_ptr<symtab_index_entry>. All users adjusted to check
11834 whether an element's name is NULL instead of checking whether the
11835 element itself is NULL.
11836 (find_slot): Change return type. Adjust.
11837 (hash_expand, , add_index_entry, uniquify_cu_indices)
11838 (write_hash_table): Adjust.
11840 2017-06-12 Pedro Alves <palves@redhat.com>
11842 * dwarf2read.c (recursively_count_psymbols): New function.
11843 (write_psymtabs_to_index): Call it to compute number of psyms and
11844 pass estimate size of psyms_seen to unordered_set's ctor.
11846 2017-06-12 Pedro Alves <palves@redhat.com>
11848 * dwarf2read.c (write_hash_table): Check if key already exists
11851 2017-06-12 Pedro Alves <palves@redhat.com>
11853 * dwarf2read.c (data_buf::append_space): Rename to...
11854 (data_buf::grow): ... this, and make private. Adjust all callers.
11855 (data_buf::append_uint): New method.
11856 (add_address_entry, write_one_signatured_type)
11857 (write_psymtabs_to_index): Use it.
11859 2017-06-12 Pedro Alves <palves@redhat.com>
11861 * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete.
11862 (file_write (FILE *, const std::vector<Elem>&)): Delete.
11863 (data_buf::file_write): Call ::fwrite directly.
11865 2017-06-12 Pedro Alves <palves@redhat.com>
11867 * dwarf2read.c (uniquify_cu_indices): Use std::unique and
11868 std::vector::erase.
11870 2017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11872 Code cleanup: C++ify .gdb_index producer.
11873 * dwarf2read.c: Include <unordered_set> and <unordered_map>.
11874 (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type.
11875 (struct strtab_entry, hash_strtab_entry, eq_strtab_entry)
11876 (create_strtab, add_string): Remove.
11877 (file_write, data_buf): New.
11878 (struct symtab_index_entry): Use std::vector for cu_indices.
11879 (struct mapped_symtab): Use std::vector for data.
11880 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry)
11881 (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab):
11883 (find_slot): Change return type. Update it to the new data structures.
11884 (hash_expand, add_index_entry): Update it to the new data structures.
11885 (offset_type_compare): Remove.
11886 (uniquify_cu_indices): Update it to the new data structures.
11887 (c_str_view, c_str_view_hasher, vector_hasher): New.
11888 (add_indices_to_cpool): Remove.
11889 (write_hash_table): Update it to the new data structures.
11890 (struct psymtab_cu_index_map, hash_psymtab_cu_index)
11891 (eq_psymtab_cu_index): Remove.
11892 (psym_index_map): New typedef.
11893 (struct addrmap_index_data): Change addr_obstack pointer to data_buf
11894 reference and std::unordered_map for cu_index_htab.
11895 (add_address_entry, add_address_entry_worker, write_address_map)
11896 (write_psymbols): Update it to the new data structures.
11897 (write_obstack): Remove.
11898 (struct signatured_type_index_data): Change types_list to a data_buf
11899 reference and psyms_seen to a std::unordered_set reference.
11900 (write_one_signatured_type, recursively_write_psymbols)
11901 (write_psymtabs_to_index): Update it to the new data structures.
11903 2017-06-11 Simon Marchi <simon.marchi@ericsson.com>
11905 * NEWS (Changes since GDB 8.0): Announce {set,show} debug
11906 separate-debug-file commands.
11907 * symfile.h (separate_debug_file_debug): New global.
11908 * symfile.c (separate_debug_file_debug): New global.
11909 (separate_debug_file_exists, find_separate_debug_file): Add
11911 (_initialize_symfile): Add "set debug separate-debug-file"
11913 * build-id.c (build_id_to_debug_bfd,
11914 find_separate_debug_file_by_buildid): Add debug output.
11916 2017-06-10 Simon Marchi <simon.marchi@polymtl.ca>
11918 * gdbarch.sh (displaced_step_free_closure): Remove.
11919 * gdbarch.h, gdbarch.c: Re-generate.
11920 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set
11921 displaced_step_free_closure.
11922 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
11923 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
11924 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
11925 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
11926 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11927 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
11928 * arch-utils.h (simple_displaced_step_free_closure): Remove.
11929 * arch-utils.c (simple_displaced_step_free_closure): Remove.
11930 * infrun.c (displaced_step_clear): Call xfree instead of
11931 gdbarch_displaced_step_free_closure.
11933 2017-06-08 Sergio Durigan Junior <sergiodj@redhat.com>
11935 * common/common-utils.c (stringify_argv): Check for "arg[0] !=
11938 2017-06-08 Alan Hayward <alan.hayward@arm.com>
11940 * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add.
11941 (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE.
11942 (mn10300_push_dummy_call): Likewise.
11944 2017-06-08 Alan Hayward <alan.hayward@arm.com>
11946 * mi/mi-main.c (register_changed_p): Use value_contents_eq.
11948 2017-06-08 Alan Hayward <alan.hayward@arm.com>
11950 * mi/mi-main.c (register_changed_p): Use cooked_read_value.
11952 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
11954 * NEWS (Changes since GDB 8.0): Announce that GDBserver is now
11955 able to start inferiors using a shell.
11956 (New remote packets): Announce new packet "QStartupWithShell".
11957 * remote.c: Add PACKET_QStartupWithShell.
11958 (extended_remote_create_inferior): Handle new
11959 PACKET_QStartupWithShell.
11960 (remote_protocol_features) <QStartupWithShell>: New entry for
11961 PACKET_QStartupWithShell.
11962 (_initialize_remote): Call "add_packet_config_cmd" for
11965 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
11966 Pedro Alves <palves@redhat.com>
11968 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h"
11969 and "nat/fork-inferior.h".
11970 * common/common-inferior.h: New file, with contents from
11972 * commom/common-utils.c: Include "common-utils.h".
11973 (stringify_argv): New function.
11974 * common/common-utils.h (stringify_argv): New prototype.
11975 * configure.nat: Add "fork-inferior.o" as a dependency for
11976 "*linux*", "fbsd*" and "nbsd*" hosts.
11977 * corefile.c (get_exec_file): Update comment.
11978 * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior"
11979 instead of "startup_inferior".
11980 (darwin_create_inferior): Call "add_thread_silent" after
11982 * fork-child.c: Cleanup unnecessary includes.
11983 (SHELL_FILE): Move to "common/common-fork-child.c".
11984 (environ): Likewise.
11985 (exec_wrapper): Initialize.
11986 (get_exec_wrapper): New function.
11987 (breakup_args): Move to "common/common-fork-child.c"; rename to
11988 "breakup_args_for_exec".
11989 (escape_bang_in_quoted_argument): Move to
11990 "common/common-fork-child.c".
11991 (saved_ui): New variable.
11992 (prefork_hook): New function.
11993 (postfork_hook): Likewise.
11994 (postfork_child_hook): Likewise.
11995 (gdb_startup_inferior): Likewise.
11996 (fork_inferior): Move to "common/common-fork-child.c". Update
11997 function to support gdbserver.
11998 (startup_inferior): Likewise.
11999 * gdbcore.h (get_exec_file): Remove declaration.
12000 * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior"
12001 instead of "startup_inferior". Call "add_thread_silent" after
12003 * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h".
12004 (inf_ptrace_create_inferior): Call "gdb_startup_inferior"
12005 instead of "startup_inferior". Call "add_thread_silent" after
12007 * inferior.h: Include "common-inferior.h".
12008 (trace_start_error): Move to "common/common-utils.h".
12009 (trace_start_error_with_name): Likewise.
12010 (fork_inferior): Move prototype to "nat/fork-inferior.h".
12011 (startup_inferior): Likewise.
12012 (gdb_startup_inferior): New prototype.
12013 * nat/fork-inferior.c: New file, with contents from "fork-child.c".
12014 * nat/fork-inferior.h: New file.
12015 * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior"
12016 instead of "startup_inferior". Call "add_thread_silent" after
12018 * target.h (target_terminal_init): Move prototype to
12020 (target_terminal_inferior): Likewise.
12021 (target_terminal_ours): Likewise.
12022 * target/target.h (target_terminal_init): New prototype, moved
12024 (target_terminal_inferior): Likewise.
12025 (target_terminal_ours): Likewise.
12026 * utils.c (gdb_flush_out_err): New function.
12028 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
12030 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h".
12031 * common/common-gdbthread.h: New file, with parts from
12033 * gdbthread.h: Include "common-gdbthread.h".
12034 (switch_to_thread): Moved to "common/common-gdbthread.h".
12036 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
12038 * Makefile.in (SFILES): Add "common/job-control.c".
12039 (HFILES_NO_SRCDIR): Add "common/job-control.h".
12040 (COMMON_OBS): Add "job-control.o".
12041 * common/job-control.c: New file, with contents from
12043 * common/job-control.h: New file, with contents from "terminal.h".
12044 * fork-child.c: Include "job-control.h".
12045 * inflow.c: Include "job-control.h".
12046 (gdb_setpgid): Move to "common/common-inflow.c".
12047 (_initialize_inflow): Move setting of "job_control" to
12048 "handle_job_control".
12049 * terminal.h (job_control): Moved to "common/common-terminal.h".
12050 (gdb_setpgid): Likewise.
12051 * top.c: Include "job_control.h".
12052 * utils.c: Likewise.
12053 (job_control): Moved to "job-control.c".
12055 2017-06-07 Pedro Alves <palves@redhat.com>
12057 * Makefile.in (SFILES): Add gdb_regex.c.
12058 (COMMON_OBS): Add gdb_regex.o.
12059 * ada-lang.c (ada_add_standard_exceptions)
12060 (ada_add_exceptions_from_frame, name_matches_regex)
12061 (ada_add_global_exceptions, ada_exceptions_list_1): Change regex
12062 parameter type to compiled_regex. Adjust.
12063 (ada_exceptions_list): Use compiled_regex.
12064 * break-catch-throw.c (exception_catchpoint::pattern): Now a
12065 std::unique_ptr<compiled_regex>.
12066 (exception_catchpoint::~exception_catchpoint): Remove regfree
12068 (check_status_exception_catchpoint): Adjust to use compiled_regex.
12069 (handle_gnu_v3_exceptions): Adjust to use compiled_regex.
12070 * breakpoint.c (solib_catchpoint::compiled): Now a
12071 std::unique_ptr<compiled_regex>.
12072 (solib_catchpoint::~solib_catchpoint): Remove regfree call.
12073 (check_status_catch_solib): Adjust to use compiled_regex.
12074 (add_solib_catchpoint): Adjust to use compiled_regex.
12075 * cli/cli-cmds.c (apropos_command): Use compiled_regex.
12076 * cli/cli-decode.c (apropos_cmd): Change regex parameter to
12077 compiled_regex reference. Adjust to use it.
12078 * cli/cli-decode.h: Remove struct re_pattern_buffer forward
12079 declaration. Include "gdb_regex.h".
12080 (apropos_cmd): Change regex parameter to compiled_regex reference.
12081 * gdb_regex.c: New file.
12082 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete
12084 (class compiled_regex): New.
12085 * linux-tdep.c: Include "common/gdb_optional.h".
12086 (struct mapping_regexes): New, factored out from
12087 mapping_is_anonymous_p, and adjusted to use compiled_regex.
12088 (mapping_is_anonymous_p): Use mapping_regexes wrapped in a
12089 gdb::optional and remove cleanups. Adjust to compiled_regex.
12090 * probe.c: Include "common/gdb_optional.h".
12091 (collect_probes): Use compiled_regex and gdb::optional and remove
12093 * skip.c: Include "common/gdb_optional.h".
12094 (skiplist_entry::compiled_function_regexp): Now a
12095 gdb::optional<compiled_regex>.
12096 (skiplist_entry::compiled_function_regexp_is_valid): Delete field.
12097 (free_skiplist_entry): Remove regfree call.
12098 (compile_skip_regexp, skip_rfunction_p): Adjust to use
12099 compiled_regex and gdb::optional.
12100 * symtab.c: Include "common/gdb_optional.h".
12101 (search_symbols): Use compiled_regex and gdb::optional.
12102 * utils.c (do_regfree_cleanup, make_regfree_cleanup)
12103 (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved
12106 2017-06-07 Alan Hayward <alan.hayward@arm.com>
12108 * regcache.c (regcache::save): Avoid buffer use.
12109 (regcache::dump): Likewise.
12111 2017-06-07 Alan Hayward <alan.hayward@arm.com>
12113 * sh-tdep.c (sh_pseudo_register_read): Remove
12115 (sh_pseudo_register_write): Likewise.
12116 * sh64-tdep.c (sh64_pseudo_register_read): Likewise.
12117 (sh64_pseudo_register_write): Likewise
12119 2017-06-07 Alan Hayward <alan.hayward@arm.com>
12121 * aarch64-tdep.c (aarch64_store_return_value): Use
12123 (aarch64_pseudo_read_value): Likewise.
12124 (aarch64_pseudo_write): Likewise.
12126 2017-06-06 Yao Qi <yao.qi@linaro.org>
12128 * regformats/regdef.h (set_register_cache): Remove the
12131 2017-06-06 Alan Hayward <alan.hayward@arm.com>
12133 * frame.c (frame_unwind_register_signed): Use
12134 frame_unwind_register_value.
12136 2017-06-06 Pedro Alves <palves@redhat.com>
12138 PR breakpoints/21553
12139 * breakpoint.c (create_breakpoints_sal_default)
12140 (init_breakpoint_sal, create_breakpoint_sal): Use
12141 gdb::unique_xmalloc_ptr for string parameters.
12142 (create_breakpoint): Constify 'extra_string' and 'cond_string'
12143 parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
12144 (base_breakpoint_create_breakpoints_sal)
12145 (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
12146 (strace_marker_create_breakpoints_sal)
12147 (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
12149 * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
12150 gdb::unique_xmalloc_ptr for string parameters.
12151 (create_breakpoint): Constify 'extra_string' and 'cond_string'
12154 2017-06-06 Alan Hayward <alan.hayward@arm.com>
12156 * alpha-tdep.c (alpha_register_to_value): Use
12157 get_frame_register_value.
12158 (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
12160 2017-06-06 Alan Hayward <alan.hayward@arm.com>
12162 * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
12163 (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
12164 (ia64_value_to_register): Likewise.
12165 (ia64_extract_return_value): Likewise.
12166 (ia64_store_return_value): Likewise.
12167 (ia64_push_dummy_call): Likewise.
12169 2017-06-04 Joel Brobecker <brobecker@adacore.com>
12173 2017-06-03 Simon Marchi <simon.marchi@ericsson.com>
12175 * x86-linux-nat.c (struct arch_lwp_info): Remove.
12177 2017-06-03 Simon Marchi <simon.marchi@polymtl.ca>
12179 * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
12181 (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
12183 2017-06-02 Simon Marchi <simon.marchi@ericsson.com>
12185 * event-loop.c (poll_timers): Unallocate timer using delete
12188 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
12190 * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
12191 (struct breakpoint) <~breakpoint>: New.
12192 (struct watchpoint): Inherit from breakpoint.
12193 <~watchpoint>: New.
12195 (struct tracepoint): Inherit from breakpoint.
12197 * breakpoint.c (longjmp_breakpoint_ops): Remove.
12198 (struct longjmp_breakpoint): Inherit from breakpoint.
12199 <~longjmp_breakpoint>: New.
12201 (new_breakpoint_from_type): Remove casts.
12202 (watchpoint_in_thread_scope): Remove reference to base field.
12203 (watchpoint_del_at_next_stop): Likewise.
12204 (update_watchpoint): Likewise.
12205 (watchpoint_check): Likewise.
12206 (bpstat_check_watchpoint): Likewise.
12207 (set_longjmp_breakpoint): Likewise.
12208 (struct fork_catchpoint): Inherit from breakpoint.
12210 (struct solib_catchpoint): Inherit from breakpoint.
12211 <~solib_catchpoint>: New.
12213 (dtor_catch_solib): Change to ...
12214 (solib_catchpoint::~solib_catchpoint): ... this.
12215 (breakpoint_hit_catch_solib): Remove reference to base field.
12216 (add_solib_catchpoint): Likewise.
12217 (create_fork_vfork_event_catchpoint): Likewise.
12218 (struct exec_catchpoint): Inherit from breakpoint.
12219 <~exec_catchpoint>: New.
12221 (dtor_catch_exec): Change to ...
12222 (exec_catchpoint::~exec_catchpoint): ... this.
12223 (dtor_watchpoint): Change to ...
12224 (watchpoint::~watchpoint): ... this.
12225 (watch_command_1): Remove reference to base field.
12226 (catch_exec_command_1): Likewise.
12227 (base_breakpoint_dtor): Change to ...
12228 (breakpoint::~breakpoint): ... this.
12229 (base_breakpoint_ops): Remove dtor field value.
12230 (longjmp_bkpt_dtor): Change to ...
12231 (longjmp_breakpoint::~longjmp_breakpoint): ... this.
12232 (strace_marker_create_breakpoints_sal): Remove reference to base
12234 (delete_breakpoint): Don't manually call breakpoint destructor.
12235 (create_tracepoint_from_upload): Remove reference to base field.
12236 (trace_pass_set_count): Likewise.
12237 (initialize_breakpoint_ops): Don't initialize
12238 momentary_breakpoint_ops, don't set dtors.
12239 * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
12240 <~ada_catchpoint>: New.
12242 (create_excep_cond_exprs): Remove reference to base field.
12243 (dtor_exception): Change to ...
12244 (ada_catchpoint::~ada_catchpoint): ... this.
12245 (dtor_catch_exception): Remove.
12246 (dtor_catch_exception_unhandled): Remove.
12247 (dtor_catch_assert): Remove.
12248 (create_ada_exception_catchpoint): Remove reference to base
12250 (initialize_ada_catchpoint_ops): Don't set dtors.
12251 * break-catch-sig.c (struct signal_catchpoint): Inherit from
12253 <~signal_catchpoint>: New.
12255 (signal_catchpoint_dtor): Change to ...
12256 (signal_catchpoint::~signal_catchpoint): ... this.
12257 (create_signal_catchpoint): Remove reference to base field.
12258 (initialize_signal_catchpoint_ops): Don't set dtor.
12259 * break-catch-syscall.c (struct syscall_catchpoint): Inherit
12261 <~syscall_catchpoint>: New.
12263 (dtor_catch_syscall): Change to ...
12264 (syscall_catchpoint::~syscall_catchpoint): ... this.
12265 (create_syscall_event_catchpoint): Remove reference to base
12267 (initialize_syscall_catchpoint_ops): Don't set dtor.
12268 * break-catch-throw.c (struct exception_catchpoint): Inherit
12270 <~exception_catchpoint>: New.
12272 (dtor_exception_catchpoint): Change to ...
12273 (exception_catchpoint::~exception_catchpoint): ... this.
12274 (handle_gnu_v3_exceptions): Remove reference to base field.
12275 (initialize_throw_catchpoint_ops): Don't set dtor.
12276 * ctf.c (ctf_get_traceframe_address): Remove reference to base
12278 * remote.c (remote_get_tracepoint_status): Likewise.
12279 * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
12280 * tracefile.c (tracefile_fetch_registers): Likewise.
12281 * tracepoint.c (actions_command): Likewise.
12282 (validate_actionline): Likewise.
12283 (tfind_1): Likewise.
12284 (get_traceframe_location): Likewise.
12285 (find_matching_tracepoint_location): Likewise.
12286 (parse_tracepoint_status): Likewise.
12287 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
12289 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
12291 * breakpoint.c (struct longjmp_breakpoint): New struct.
12292 (is_tracepoint_type): Change return type to bool.
12293 (is_longjmp_type): New function.
12294 (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
12295 (set_raw_breakpoint_without_location): Use
12296 new_breakpoint_from_type.
12297 (set_raw_breakpoint): Likewise.
12299 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
12301 * breakpoint.c (new_breakpoint_from_type): New function.
12302 (create_breakpoint_sal): Use new_breakpoint_from_type and
12304 (create_breakpoint): Likewise.
12306 2017-05-31 Simon Marchi <simon.marchi@ericsson.com>
12308 * memattr.c (mem_info_command): Rename to ...
12309 (info_mem_command): ... this.
12310 (mem_enable_command): Rename to ...
12311 (enable_mem_command): ... this.
12312 (mem_disable_command): Rename to ...
12313 (disable_mem_command): ... this.
12314 (mem_delete_command): Rename to ...
12315 (delete_mem_command): ... this.
12316 (_initialize_mem): Adjust function names.
12318 2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
12320 * btrace.c (handle_pt_insn_events): New.
12321 (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into
12322 STATUS. Split into this and ...
12323 (handle_pt_insn_event_flags): ... this.
12325 2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
12327 * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
12328 and struct pt_insn.resynced.
12329 * configure: Regenerated.
12330 * config.in: Regenerated.
12332 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12334 * btrace.c (ftrace_find_call_by_number): New function.
12335 (ftrace_new_function): Store objects, not pointers.
12336 (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
12337 ftrace_new_gap, ftrace_update_function,
12338 ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
12339 btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
12340 btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
12341 btrace_ends_with_single_insn, btrace_call_get): Account for
12342 btrace_thread_info::functions now storing objects.
12343 * btrace.h (struct btrace_thread_info): Add constructor.
12344 (struct btrace_thread_info) <functions>: Make std::vector.
12345 (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
12346 Initialize with default values.
12347 * record-btrace.c (record_btrace_frame_sniffer): Account for
12348 btrace_thread_info::functions now storing objects.
12350 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12352 * btrace.c: Remove typedef bfun_s.
12353 (ftrace_new_gap): Directly add gaps to the list of gaps.
12354 (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
12355 ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
12356 btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
12357 instead of gdb VEC.
12359 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12361 * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
12362 ftrace_bridge_gap): Replace references to btrace_thread_info::segment
12363 with btrace_thread_info::next_segment and
12364 btrace_thread_info::prev_segment.
12365 * btrace.h: Remove struct btrace_func_link.
12366 (struct btrace_function): Replace pair of function segment pointers
12367 with pair of indices.
12368 * python/py-record-btrace.c (btpy_call_prev_sibling,
12369 btpy_call_next_sibling): Replace references to
12370 btrace_thread_info::segment with btrace_thread_info::next_segment and
12371 btrace_thread_info::prev_segment.
12372 * record-btrace.c (record_btrace_frame_this_id): Use
12373 btrace_find_call_by_number.
12375 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12377 * btrace.c (ftrace_new_function, ftrace_fixup_level,
12378 ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
12379 btrace_insn_next, btrace_insn_prev): Remove references to
12380 btrace_thread_info::flow.
12381 * btrace.h (struct btrace_function): Remove FLOW.
12383 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12385 * btrace.c (ftrace_find_call_by_number): New function.
12386 (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
12387 ftrace_get_caller, ftrace_find_call, ftrace_new_return,
12388 ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
12389 ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
12391 * btrace.h (struct btrace_function): Turn UP into an index.
12392 * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
12394 * record-btrace.c (record_btrace_frame_unwind_stop_reason,
12395 record_btrace_frame_prev_register, record_btrace_frame_sniffer,
12396 record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
12398 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12400 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
12401 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
12402 ftrace_update_function, ftrace_compute_global_level_offset,
12403 btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
12404 btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
12405 btrace_insn_end, btrace_is_empty): Remove references to
12406 btrace_thread_info::begin and btrace_thread_info::end.
12407 * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
12408 (struct btrace_thread_info) <functions>: Adjust comment.
12409 * record-btrace.c (record_btrace_start_replaying): Remove reference to
12410 btrace_thread_info::begin.
12412 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12414 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
12415 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
12416 ftrace_update_function): Remove arguments that implicitly were always
12418 (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
12419 Don't pass BTINFO->END.
12421 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12423 * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
12424 btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
12425 btrace_find_insn_by_number): Replace function segment pointer with
12427 (btrace_insn_cmp): Simplify.
12428 * btrace.h: (struct btrace_insn_iterator) Rename index to
12429 insn_index. Replace function segment pointer with index into function
12431 * record-btrace.c (record_btrace_call_history): Replace function
12432 segment pointer use with index.
12433 (record_btrace_frame_sniffer): Retrieve function call segment through
12435 (record_btrace_set_replay): Remove defunc't safety check.
12437 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12439 * btrace.c (btrace_ends_with_single_insn): New function.
12440 (btrace_call_get, btrace_call_number, btrace_call_begin,
12441 btrace_call_end, btrace_call_next, btrace_call_prev,
12442 btrace_find_call_by_number): Use index into call segment vector
12443 instead of pointer.
12444 (btrace_call_cmp): Simplify.
12445 * btrace.h (struct btrace_call_iterator): Replace function call segment
12446 pointer with index into vector.
12447 * record-btrace.c (record_btrace_call_history): Use index instead of
12450 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12452 * btrace.c (btrace_insn_begin, btrace_insn_end,
12453 btrace_find_insn_by_number): Add btinfo to iterator.
12454 * btrace.h (struct btrace_insn_iterator): Add btinfo.
12456 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12458 * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
12459 and save pointers directly.
12460 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
12461 ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
12462 ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for
12463 changed signature of functions.
12464 (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
12465 (btrace_fetch): Remove code that adds btrace_function pointers to
12466 vector of btrace_functions.
12467 (btrace_clear): Simplify freeing vector of btrace_functions.
12469 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12471 * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
12472 Replace VEC_* with std::vector functions.
12473 * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
12474 (struct btrace_thread_info)<functions>: Change type to std::vector.
12476 2017-05-30 Simon Marchi <simon.marchi@ericsson.com>
12478 * NEWS (Changes in GDB 8.0): Remove extra empty line. Move
12479 "Removed targets and native configurations" up. Merge duplicate
12480 "New commands" sub-sections. Add "New options" sub-sections.
12482 2017-05-26 Alan Hayward <alan.hayward@arm.com>
12484 * defs.h (copy_integer_to_size): New declaration.
12485 * findvar.c (copy_integer_to_size): New function.
12486 (do_cint_test): New selftest function.
12487 (copy_integer_to_size_test): Likewise.
12488 (_initialize_findvar): Likewise.
12489 * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
12490 (mips_fbsd_collect_reg): Use raw_collect_integer.
12491 * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
12492 (mips64_fill_gregset): Use raw_collect_integer
12493 (mips64_fill_fpregset): Use raw_supply_integer.
12494 * regcache.c (regcache::raw_supply_integer): New function.
12495 (regcache::raw_collect_integer): Likewise.
12496 * regcache.h: (regcache::raw_supply_integer): New declaration.
12497 (regcache::raw_collect_integer): Likewise.
12499 2017-05-24 Yao Qi <yao.qi@linaro.org>
12501 * Makefile.in (SFILES): Add gdbarch-selftests.c.
12502 (COMMON_OBS): Add gdbarch-selftests.o.
12503 * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
12504 * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
12505 * gdbarch-selftests.c: New file.
12506 * regcache.h (regcache) <~regcache>: Mark it virtual if
12508 <raw_write>: Likewise.
12510 2017-05-24 Yao Qi <yao.qi@linaro.org>
12512 * regcache.c (current_regcache): Change it to
12513 regcache::current_regcache.
12514 (regcache_observer_target_changed): Update.
12515 (regcache_thread_ptid_changed): Make it a regcache static
12517 (regcache_thread_ptid_changed): Update.
12518 (class regcache_access): New.
12519 (current_regcache_test): Update.
12520 (_initialize_regcache): Update.
12521 * regcache.h: Include forward_list.
12522 (regcache): Declare regcache_thread_ptid_changed and declare
12523 registers_changed_ptid as friend.
12525 2017-05-24 Yao Qi <yao.qi@linaro.org>
12527 * i387-tdep.c (i387_register_to_value): Use register_size
12528 instead of TYPE_LENGTH.
12529 * m68k-tdep.c (m68k_register_to_value): Likewise.
12531 2017-05-24 Yao Qi <yao.qi@linaro.org>
12533 * i387-tdep.c (i387_convert_register_p): Return false if type
12534 code isn't TYPE_CODE_FLT.
12536 2017-05-24 Yao Qi <yao.qi@linaro.org>
12538 * alpha-tdep.c (alpha_convert_register_p): Return true if type
12540 (alpha_register_to_value): Remove type length check.
12541 (alpha_value_to_register): Likewise.
12543 2017-05-24 Yao Qi <yao.qi@linaro.org>
12545 * ia64-tdep.c (ia64_convert_register_p): Check type's code is
12548 2017-05-24 Yao Qi <yao.qi@linaro.org>
12550 * m68k-tdep.c (m68k_convert_register_p): Check type's code is
12551 TYPE_CODE_FLT or not.
12553 2017-05-24 Yao Qi <yao.qi@linaro.org>
12555 * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
12556 * avr-tdep.c (avr_gdbarch_init): Likewise.
12557 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12558 * cris-tdep.c (cris_gdbarch_init): Likewise.
12559 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
12560 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12561 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12562 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
12563 * mep-tdep.c (mep_gdbarch_init): Likewise.
12564 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12565 * mips-tdep.c (mips_gdbarch_init): Likewise.
12566 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
12567 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12568 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
12569 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12570 * v850-tdep.c (v850_gdbarch_init): Likewise.
12572 2017-05-24 Yao Qi <yao.qi@linaro.org>
12574 * selftest-arch.c (tests_with_arch): Call registers_changed
12575 and reinit_frame_cache.
12576 * selftest.c (run_self_tests): Likewise.
12578 2017-05-24 Yao Qi <yao.qi@linaro.org>
12580 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.
12581 (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn.
12583 2017-05-24 Yao Qi <yao.qi@linaro.org>
12585 * rl78-tdep.c (rl78_gdbarch_init): Don't call
12586 set_gdbarch_print_insn.
12588 2017-05-24 Yao Qi <yao.qi@linaro.org>
12590 * h8300-tdep.c (h8300_gdbarch_init): Don't call
12591 set_gdbarch_print_insn.
12593 2017-05-24 Yao Qi <yao.qi@linaro.org>
12595 * alpha-tdep.c (alpha_gdbarch_init): Don't call
12596 set_gdbarch_print_insn.
12597 * arc-tdep.c (arc_gdbarch_init): Likewise.
12598 * arch-utils.c: include dis-asm.h.
12599 (default_print_insn): New function.
12600 * arch-utils.h (default_print_insn): Declare.
12601 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
12602 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12603 * cris-tdep.c (cris_delayed_get_disassembler): Remove.
12604 (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
12605 * frv-tdep.c (frv_gdbarch_init): Likewise.
12606 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
12607 * gdbarch.sh (print_insn): Use default_print_insn.
12608 * gdbarch.c: Regenerated.
12609 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12610 * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
12611 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12612 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
12613 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12614 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
12615 (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
12616 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
12617 * m88k-tdep.c (m88k_gdbarch_init): Likewise.
12618 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12619 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
12620 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12621 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
12622 * mt-tdep.c (mt_gdbarch_init): Likewise.
12623 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
12624 * nios2-tdep.c (nios2_print_insn): Remove.
12625 (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
12626 * rx-tdep.c (rx_gdbarch_init): Likewise.
12627 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12628 * score-tdep.c (score_print_insn): Remove.
12629 (score_gdbarch_init): Don't call set_gdbarch_print_insn.
12630 * sh-tdep.c (sh_gdbarch_init): Likewise.
12631 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12632 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12633 * tic6x-tdep.c (tic6x_print_insn): Remove.
12634 (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
12635 * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
12636 * v850-tdep.c (v850_gdbarch_init): Likewise.
12637 * vax-tdep.c (vax_gdbarch_init): Likewise.
12638 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
12639 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
12641 2017-05-23 John Baldwin <jhb@FreeBSD.org>
12643 * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
12644 (MIPS_FP0_REGNUM): Remove.
12645 (MIPS_FSR_REGNUM): Remove.
12646 (mips_fbsd_supply_fpregs): Use mips_regnum.
12647 (mips_fbsd_supply_gregs): Likewise.
12648 (mips_fbsd_collect_fpregs): Likewise.
12649 (mips_fbsd_collect_gregs): Likewise.
12651 2017-05-23 John Baldwin <jhb@FreeBSD.org>
12653 * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
12654 (getpfpregs_supplies): New function.
12655 (mips_fbsd_fetch_inferior_registers): Remove early exit and use
12656 getfpregs_supplies.
12657 (mips_fbsd_store_inferior_registers): Likewise.
12659 2017-05-22 Pedro Alves <palves@redhat.com>
12661 * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
12664 2017-05-22 Alan Hayward <alan.hayward@arm.com>
12666 * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
12667 (store_register): Likewise.
12668 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
12669 (get_decimal_float_return_value): Likewise.
12670 (do_ppc_sysv_return_value): Likewise.
12671 (ppc64_sysv_abi_push_integer): Likewise.
12672 (ppc64_sysv_abi_push_freg): Likewise.
12673 (ppc64_sysv_abi_return_value_base): Likewise.
12674 (ppc64_sysv_abi_return_value): Likewise.
12675 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
12676 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
12677 * rs6000-nat.c: Likewise.
12678 * rs6000-tdep.c (rs6000_register_to_value): Likewise.
12679 (rs6000_value_to_register): Likewise.
12680 * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
12682 2017-05-21 Tom Tromey <tom@tromey.com>
12685 * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
12686 arrays as "[T]", not "[T; ]".
12688 2017-05-19 Tom Tromey <tom@tromey.com>
12691 * rust-lang.c (exp_descriptor_rust): New function.
12692 (rust_language_defn): Use it.
12693 * p-lang.c (pascal_language_defn): Update.
12694 * opencl-lang.c (opencl_language_defn): Update.
12695 * objc-lang.c (objc_language_defn): Update.
12696 * m2-lang.c (m2_language_defn): Update.
12697 * language.h (struct language_defn)
12698 <la_watch_location_expression>: New member.
12699 * language.c (unknown_language_defn, auto_language_defn)
12700 (local_language_defn): Update.
12701 * go-lang.c (go_language_defn): Update.
12702 * f-lang.c (f_language_defn): Update.
12703 * d-lang.c (d_language_defn): Update.
12704 * c-lang.h (c_watch_location_expression): Declare.
12705 * c-lang.c (c_watch_location_expression): New function.
12706 (c_language_defn, cplus_language_defn, asm_language_defn)
12707 (minimal_language_defn): Use it.
12708 * breakpoint.c (watch_command_1): Call
12709 la_watch_location_expression.
12710 * ada-lang.c (ada_language_defn): Update.
12712 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12715 * gdb_curses.h (NOMACROS): Define.
12716 (NCURSES_NOMACROS): Define.
12718 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12721 * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
12723 * tui/tui-wingeneral.c (box_win): Likewise.
12724 * tui/tui-winsource.c (tui_erase_source_content): Likewise.
12725 (tui_show_source_line): Likewise.
12726 (tui_show_exec_info_content): Likewise.
12728 2017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
12730 * sparc-tdep.c (sparc_structure_return_p)
12731 (sparc_arg_on_registers_p): New functions.
12732 (sparc32_store_arguments): Use them.
12733 * sparc64-tdep.c (sparc64_16_byte_align_p)
12734 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
12735 Handle TYPE_CODE_ARRAY.
12737 2017-05-17 Yao Qi <yao.qi@linaro.org>
12739 * cli/cli-decode.c (add_alias_cmd): New function.
12740 * command.h (add_alias_cmd): Declare.
12741 * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
12742 instead call add_alias_cmd.
12744 2017-05-17 Pedro Alves <palves@redhat.com>
12746 * Makefile.in (nat_extra_makefile_frag): Rename to ...
12747 (nat_makefile_frag): ... this. All references updated.
12748 * configure.ac: Likewise.
12749 * configure.nat: Likewise. Enhance comments.
12750 * configure: Regenerate.
12752 2017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12754 * procfs.c (procfs_create_inferior): Change prototype to match
12757 2017-05-13 Eli Zaretskii <eliz@gnu.org>
12759 * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
12760 C++ compiler warning.
12762 2017-05-12 Tom Tromey <tom@tromey.com>
12765 * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
12766 recurse, just call value_struct_elt directly.
12768 2017-05-12 Tom Tromey <tom@tromey.com>
12770 * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
12771 OP_RUST_ARRAY>: Fix.
12773 2017-05-12 Tom Tromey <tom@tromey.com>
12775 * rust-lang.c (rust_print_subexp): Replace "return" with "break".
12777 2017-05-09 Yao Qi <yao.qi@linaro.org>
12779 * regcache.c: Include <forward_list>.
12780 (struct regcache_list): Remove.
12781 (current_regcache): Update.
12782 (get_thread_arch_aspace_regcache): Update for std::forward_list.
12783 (regcache_thread_ptid_changed): Likewise.
12784 (registers_changed_ptid): Likewise.
12785 (current_regcache_size): Likewise.
12787 2017-05-09 Yao Qi <yao.qi@linaro.org>
12789 * regcache.c [GDB_SELF_TEST]: Include selftest.h.
12790 (current_regcache_size): New function.
12791 (current_regcache_test): New function.
12792 (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
12794 2017-05-08 Alan Hayward <alan.hayward@arm.com>
12796 * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
12797 (print_gp_register_row): Use get_frame_register_value.
12799 2017-05-08 Alan Hayward <alan.hayward@arm.com>
12801 * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
12802 (mips_supply_fpregset): Likewise.
12803 (mips64_supply_gregset): Likewise.
12805 2017-05-08 Alan Hayward <alan.hayward@arm.com>
12807 * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
12808 regcache->raw_supply_zeroed.
12810 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
12812 * configure.nat: Rearrange 'case' statements to match
12815 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
12817 * Makefile.in: Remove "@host_makefile_frag@". Add variables
12818 NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
12819 NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
12820 "@nat_extra_makefile_frag@".
12821 (Makefile): Remove dependency on "@frags@".
12822 ($(GNULIB_BUILDDIR)/Makefile): Likewise.
12823 (data-directory/Makefile): Likewise.
12824 * config/aarch64/linux.mh: Deleted; moved contents to
12825 "gdb/configure.nat".
12826 * config/alpha/alpha-linux.mh: Likewise.
12827 * config/alpha/nbsd.mh: Likewise.
12828 * config/arm/linux.mh: Likewise.
12829 * config/arm/nbsdelf.mh: Likewise.
12830 * config/i386/cygwin.mh: Likewise.
12831 * config/i386/cygwin64.mh: Likewise.
12832 * config/i386/darwin.mh: Likewise.
12833 * config/i386/fbsd.mh: Likewise.
12834 * config/i386/fbsd64.mh: Likewise.
12835 * config/i386/go32.mh: Likewise.
12836 * config/i386/i386gnu.mh: Likewise.
12837 * config/i386/i386sol2.mh: Likewise.
12838 * config/i386/linux.mh: Likewise.
12839 * config/i386/linux64.mh: Likewise.
12840 * config/i386/mingw.mh: Likewise.
12841 * config/i386/mingw64.mh: Likewise.
12842 * config/i386/nbsd64.mh: Likewise.
12843 * config/i386/nbsdelf.mh: Likewise.
12844 * config/i386/nto.mh: Likewise.
12845 * config/i386/obsd.mh: Likewise.
12846 * config/i386/obsd64.mh: Likewise.
12847 * config/i386/sol2-64.mh: Likewise.
12848 * config/ia64/linux.mh: Likewise.
12849 * config/m32r/linux.mh: Likewise.
12850 * config/m68k/linux.mh: Likewise.
12851 * config/m68k/nbsdelf.mh: Likewise.
12852 * config/m68k/obsd.mh: Likewise.
12853 * config/m88k/obsd.mh: Likewise.
12854 * config/mips/fbsd.mh: Likewise.
12855 * config/mips/linux.mh: Likewise.
12856 * config/mips/nbsd.mh: Likewise.
12857 * config/mips/obsd64.mh: Likewise.
12858 * config/pa/linux.mh: Likewise.
12859 * config/pa/nbsd.mh: Likewise.
12860 * config/pa/obsd.mh: Likewise.
12861 * config/powerpc/aix.mh: Likewise.
12862 * config/powerpc/fbsd.mh: Likewise.
12863 * config/powerpc/linux.mh: Likewise.
12864 * config/powerpc/nbsd.mh: Likewise.
12865 * config/powerpc/obsd.mh: Likewise.
12866 * config/powerpc/ppc64-linux.mh: Likewise.
12867 * config/powerpc/spu-linux.mh: Likewise.
12868 * config/s390/linux.mh: Likewise.
12869 * config/sh/nbsd.mh: Likewise.
12870 * config/sparc/fbsd.mh: Likewise.
12871 * config/sparc/linux.mh: Likewise.
12872 * config/sparc/linux64.mh: Likewise.
12873 * config/sparc/nbsd64.mh: Likewise.
12874 * config/sparc/nbsdelf.mh: Likewise.
12875 * config/sparc/obsd64.mh: Likewise.
12876 * config/sparc/sol2.mh: Likewise.
12877 * config/tilegx/linux.mh: Likewise.
12878 * config/vax/nbsdelf.mh: Likewise.
12879 * config/vax/obsd.mh: Likewise.
12880 * config/xtensa/linux.mh: Likewise.
12881 * config/i386/i386gnu.mn: New file, with excerpts from
12882 "config/i386/i386gnu.mh".
12883 * configure: Regenerate.
12884 * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
12885 *.mh files under "gdb/config".
12886 * configure.nat: New file, with contents from the
12887 "gdb/config/*/*.mh" files.
12889 2017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
12891 * btrace.c (btrace_clear): Free insn vector.
12893 2017-05-05 Pedro Alves <palves@redhat.com>
12895 * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
12896 * configure: Regenerate.
12898 2017-05-04 Pedro Alves <palves@redhat.com>
12900 * Makefile.in (SFILES): Add progspace-and-thread.c.
12901 (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
12902 (COMMON_OBS): Add progspace-and-thread.o.
12903 * breakpoint.c: Include "progspace-and-thread.h".
12904 (update_inserted_breakpoint_locations)
12905 (insert_breakpoint_locations, create_longjmp_master_breakpoint):
12906 Use scoped_restore_current_pspace_and_thread.
12907 (create_std_terminate_master_breakpoint): Use
12908 scoped_restore_current_program_space.
12909 (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
12910 (print_breakpoint_location): Use
12911 scoped_restore_current_program_space.
12912 (bp_loc_is_permanent): Use
12913 scoped_restore_current_pspace_and_thread.
12914 (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
12915 (download_tracepoint_locations): Use
12916 scoped_restore_current_pspace_and_thread.
12917 (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
12918 * exec.c (exec_close_1): Use scoped_restore_current_program_space.
12919 (enum step_over_calls_kind): Moved from inferior.h.
12920 (class scoped_restore_current_thread): New class.
12921 * gdbthread.h (make_cleanup_restore_current_thread): Delete
12923 (scoped_restore_current_thread): New class.
12924 * infcmd.c: Include "common/gdb_optional.h".
12925 (continue_1, proceed_after_attach): Use
12926 scoped_restore_current_thread.
12927 (notice_new_inferior): Use scoped_restore_current_thread.
12928 * inferior.c: Include "progspace-and-thread.h".
12929 (restore_inferior, save_current_inferior): Delete.
12930 (add_inferior_command, clone_inferior_command): Use
12931 scoped_restore_current_pspace_and_thread.
12932 * inferior.h (scoped_restore_current_inferior): New class.
12933 * infrun.c: Include "progspace-and-thread.h" and
12934 "common/gdb_optional.h".
12935 (follow_fork_inferior): Use
12936 scoped_restore_current_pspace_and_thread.
12937 (scoped_restore_exited_inferior): New class.
12938 (handle_vfork_child_exec_or_exit): Use
12939 scoped_restore_exited_inferior,
12940 scoped_restore_current_pspace_and_thread,
12941 scoped_restore_current_thread and scoped_restore.
12942 (fetch_inferior_event): Use scoped_restore_current_thread.
12943 * linespec.c (decode_line_full, decode_line_1): Use
12944 scoped_restore_current_program_space.
12945 * mi/mi-main.c: Include "progspace-and-thread.h".
12946 (exec_continue): Use scoped_restore_current_thread.
12947 (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
12948 (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
12949 * proc-service.c (ps_pglobal_lookup): Use
12950 scoped_restore_current_program_space.
12951 * progspace-and-thread.c: New file.
12952 * progspace-and-thread.h: New file.
12953 * progspace.c (release_program_space, clone_program_space): Use
12954 scoped_restore_current_program_space.
12955 (restore_program_space, save_current_program_space)
12956 (save_current_space_and_thread): Delete.
12957 (switch_to_program_space_and_thread): Moved to
12958 progspace-and-thread.c.
12959 * progspace.h (save_current_program_space)
12960 (save_current_space_and_thread): Delete declarations.
12961 (scoped_restore_current_program_space): New class.
12962 * remote.c (remote_btrace_maybe_reopen): Use
12963 scoped_restore_current_thread.
12964 * symtab.c: Include "progspace-and-thread.h".
12965 (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
12966 * thread.c (print_thread_info_1): Use
12967 scoped_restore_current_thread.
12968 (struct current_thread_cleanup): Delete.
12969 (do_restore_current_thread_cleanup)
12970 (restore_current_thread_cleanup_dtor): Rename/convert both to ...
12971 (scoped_restore_current_thread::~scoped_restore_current_thread):
12973 (make_cleanup_restore_current_thread): Rename/convert to ...
12974 (scoped_restore_current_thread::scoped_restore_current_thread):
12976 (thread_apply_all_command): Use scoped_restore_current_thread.
12977 (thread_apply_command): Use scoped_restore_current_thread.
12978 * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
12979 * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
12981 2017-05-04 Pedro Alves <palves@redhat.com>
12983 * thread.c (make_cleanup_restore_current_thread): Move
12984 find_thread_ptid call before the is_stopped call. Assert that the
12985 thread is found. Replace is_stopped call by checking the thread's
12986 state directly. Remove unnecessary NULL-thread check.
12988 2017-05-04 Pedro Alves <palves@redhat.com>
12990 * corelow.c (thread_section_name): New class.
12991 (get_core_register_section, get_core_siginfo): Use it.
12993 2017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
12995 * corelow.c (sniff_core_bfd): Remove extra semicolon.
12996 (get_core_register_section): Remove xfree of NULL pointer.
12998 2017-05-03 Alan Hayward <alan.hayward@arm.com>
13000 * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed.
13001 * regcache.c (regcache::raw_supply_zeroed): New function.
13002 * regcache.h (regcache::raw_supply_zeroed): New declaration.
13004 2017-05-03 Simon Marchi <simon.marchi@ericsson.com>
13006 * gdbarch.sh: Remove commented out definition of
13008 * gdbarch.h: Re-generate.
13010 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
13012 * configure: Regenerate.
13014 2017-05-02 Simon Marchi <simon.marchi@ericsson.com>
13016 * solib-target.c (solib_target_relocate_section_addresses):
13017 Remove num_section_bases, num_bases, segment_bases variables.
13019 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
13021 * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove.
13023 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
13025 * solib-target.c: Include <vector>
13026 (struct lm_info_target) <~lm_info_target>: Remove.
13027 <segment_bases, section_bases>: Change type to
13028 std::vector<CORE_ADDR>.
13029 (library_list_start_segment, library_list_start_section,
13030 library_list_end_library,
13031 solib_target_relocate_section_addresses): Adjust.
13033 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
13035 * gdbarch.sh (software_single_step): Change return type to
13036 std::vector<CORE_ADDR>.
13037 * gdbarch.c, gdbarch.h: Re-generate.
13038 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
13040 (arm_deal_with_atomic_sequence_raw): Adjust.
13041 (thumb_get_next_pcs_raw): Adjust.
13042 (arm_get_next_pcs_raw): Adjust.
13043 (arm_get_next_pcs): Adjust.
13044 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust.
13045 * aarch64-tdep.c (aarch64_software_single_step): Adjust.
13046 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust.
13047 (alpha_software_single_step): Adjust.
13048 * alpha-tdep.h (alpha_software_single_step): Adjust.
13049 * arm-linux-tdep.c (arm_linux_software_single_step): Adjust.
13050 * arm-tdep.c (arm_software_single_step): Adjust.
13051 (arm_breakpoint_kind_from_current_state): Adjust.
13052 * arm-tdep.h (arm_software_single_step): Adjust.
13053 * breakpoint.c (insert_single_step_breakpoint): Adjust.
13054 * cris-tdep.c (cris_software_single_step): Adjust.
13055 * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust.
13056 (micromips_deal_with_atomic_sequence): Adjust.
13057 (deal_with_atomic_sequence): Adjust.
13058 (mips_software_single_step): Adjust.
13059 * mips-tdep.h (mips_software_single_step): Adjust.
13060 * moxie-tdep.c (moxie_software_single_step): Adjust.
13061 * nios2-tdep.c (nios2_software_single_step): Adjust.
13062 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust.
13063 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
13064 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
13065 * s390-linux-tdep.c (s390_software_single_step): Adjust.
13066 * sparc-tdep.c (sparc_software_single_step): Adjust.
13067 * spu-tdep.c (spu_software_single_step): Adjust.
13068 * tic6x-tdep.c (tic6x_software_single_step): Adjust.
13070 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
13072 * gdbarch.sh: Use semi-colon as field separator instead of colon.
13073 * gdbarch.h: Re-generate.
13075 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
13077 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
13078 (SUBDIR_PYTHON_SRCS): Add py-instruction.c.
13079 * python/py-instruction.c, python/py-instruction.h: New file.
13080 * python/py-record.c: Add py-instruction.h include.
13081 (gdbpy_initialize_record): Make gdb.Instruction a super class of
13082 gdb.RecordInstruction.
13083 * python/python-internal.h: Add gdbpy_initialize_instruction
13085 * python/python.c (do_start_initialization): Add
13086 gdbpy_initialize_instruction.
13088 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
13090 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
13092 (btrace_func_from_recpy_func): New function.
13093 (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
13094 (btpy_call_level, btpy_call_symbol, btpy_call_instructions,
13095 btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
13096 (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
13097 recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
13098 Also, use new helper functions.
13099 (btpy_list_item): Use new helper functions.
13100 (recpy_bt_function_call_history): Use new type name.
13101 (btpy_call_getset): Remove.
13102 (gdbpy_initialize_btrace): Remove code to initialize
13103 gdb.BtraceFunctionCall.
13104 * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
13105 recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
13106 recpy_bt_func_prev, recpy_bt_func_next): New export.
13107 * python/py-record.c (recpy_func_type): New static object.
13108 (recpy_func_new, recpy_func_level, recpy_func_symbol,
13109 recpy_func_instructions, recpy_func_up, recpy_func_prev,
13110 recpy_func_next): New function.
13111 (recpy_element_hash, recpy_element_richcompare): Updated comment.
13112 (recpy_func_getset): New static object.
13113 (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
13114 * python/py-record.h (recpy_func_type, recpy_func_new): New export.
13116 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
13118 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove.
13119 (btpy_object, btpy_insn_type, btpy_new): Remove.
13120 (btpy_list_object): Use gdb.RecordInstruction type instead of
13121 gdb.BtraceInstruction type.
13122 (btrace_insn_from_recpy_insn): New function.
13123 (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of
13125 (btpy_call_new, btpy_list_item): Do not use btpy_new anymore.
13126 (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol,
13127 btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling,
13128 btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object
13129 instead of btpy_object.
13130 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
13131 btpy_insn_data, btpy_insn_decode): Rename to ...
13132 (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size,
13133 recpy_bt_insn_is_speculative, recpy_bt_insn_data,
13134 recpy_bt_insn_decode): This. Also, use new helper functions.
13135 (btpy_list_position, recpy_bt_goto): Use recpy_element_object and
13137 (btpy_insn_getset): Remove.
13138 (gdbpy_initialize_btrace): Remove code to initialize
13139 gdb.BtraceInstruction. Use recpy_element_object.
13140 * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal,
13141 recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded,
13142 recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export.
13143 * python/py-record.c (recpy_insn_type): New static object.
13144 (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data,
13145 recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative,
13146 recpy_element_number, recpy_element_hash, recpy_element_richcompare):
13148 (recpy_insn_getset): New static object.
13149 (gdbpy_initialize_record): Initialize gdb.RecordInstruction.
13150 * python/py-record.h (recpy_element_object): New typedef.
13151 (recpy_insn_type, recpy_insn_new): New export.
13153 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
13155 * py-record-btrace.c (btpy_insn_new): Removed.
13156 (btpy_insn_or_gap_new): New function.
13157 (btpy_insn_error): Removed.
13158 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
13159 btpy_insn_data, btpy_insn_decode): Remove code path for gaps.
13160 (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call
13161 btpy_insn_or_gap_new instead of btpy_insn_new.
13162 (btpy_insn_getset): Remove btpy_insn_error.
13163 * py-record.c (recpy_gap_type): New static object.
13164 (recpy_gap_object): New typedef.
13165 (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code,
13166 recpy_gap_reason_string): New function.
13167 (recpy_gap_getset): New static object.
13168 (gdbpy_initialize_record): Initialize gdb.RecordGap type.
13169 * py-record.h (recpy_gap_new): New export.
13171 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
13173 * python/py-record.c (recpy_ptid): Remove.
13174 (recpy_record_getset): Remove recpy_ptid.
13176 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
13178 * btrace.c (btrace_fetch): Set inferior_ptid.
13179 * python/py-record-btrace.c: Add "py-record.h" include.
13180 (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin,
13181 recpy_bt_end, recpy_bt_instruction_history,
13182 recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored
13183 in gdb.Record object instead of current ptid.
13184 * python/py-record.c: Include new "py-record.h" file.
13185 (recpy_record_object): Moved to py-record.h.
13186 * python/py-record.h: New file.
13188 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
13190 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
13191 BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
13194 2017-05-01 Joel Brobecker <brobecker@adacore.com>
13196 * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to
13197 the past maintainers section.
13199 2017-04-28 Yao Qi <yao.qi@linaro.org>
13201 * infcmd.c (get_return_value): Use regcache ctor, and remove
13204 2017-04-28 Yao Qi <yao.qi@linaro.org>
13205 Pedro Alves <palves@redhat.com>
13207 * regcache.c (regcache::regcache): New tag dispatch ctor.
13208 (do_cooked_read): Moved above.
13209 (regcache_dup): Use the tag dispatch ctor..
13210 * regcache.h (regcache): Declare ctor, delete copy ctor and
13211 assignment operator, remove friend regcache_dup.
13213 2017-04-28 Yao Qi <yao.qi@linaro.org>
13215 * regcache.c (regcache_dup): Assert !src->m_readonly_p and
13216 call method save instead of regcache_cpy.
13217 * regcache.h (struct regcache): Make regcache_dup a friend.
13219 2017-04-28 Yao Qi <yao.qi@linaro.org>
13221 * regcache.c (struct regcache): Move to regcache.h
13222 (regcache::arch): New method.
13223 (regcache_get_ptid): Update.
13224 (get_regcache_arch): Call arch method.
13225 (get_regcache_aspace): Call method aspace.
13226 (register_buffer): Change it to method.
13227 (regcache_save): Change it to regcache::save.
13228 (regcache_restore): Likewise.
13229 (regcache_cpy_no_passthrough): Remove the declaration.
13230 (regcache_cpy): Call methods restore and cpy_no_passthrough.
13231 (regcache_cpy_no_passthrough): Change it to method
13232 cpy_no_passthrough.
13233 (regcache_register_status): Change it to method
13234 get_register_status.
13235 (regcache_invalidate): Change it to method invalidate.
13236 (regcache_thread_ptid_changed): Use methods ptid and set_ptid.
13237 (regcache_raw_update): Change it to method raw_update.
13238 (regcache_raw_read): Likewise.
13239 (regcache_raw_read_signed): Likewise.
13240 (regcache_raw_read_unsigned): Likewise.
13241 (regcache_raw_write_signed): Likewise.
13242 (regcache_raw_write_unsigned): Likewise.
13243 (regcache_cooked_read): Likewise.
13244 (regcache_cooked_read_value): Likewise.
13245 (regcache_cooked_read_signed): Likewise.
13246 (regcache_cooked_read_unsigned): Likewise.
13247 (regcache_cooked_write_signed): Likewise.
13248 (regcache_cooked_write_unsigned): Likewise.
13249 (regcache_raw_set_cached_value): Likewise.
13250 (regcache_raw_write): Likewise.
13251 (regcache_cooked_write): Likewise.
13252 (regcache_xfer_part): Likewise.
13253 (regcache_raw_read_part): Likewise.
13254 (regcache_raw_write_part): Likewise.
13255 (regcache_cooked_read_part): Likewise.
13256 (regcache_cooked_write_part): Likewise.
13257 (regcache_raw_supply): Likewise.
13258 (regcache_raw_collect): Likewise.
13259 (regcache_transfer_regset): Likewise.
13260 (regcache_supply_regset): Likewise.
13261 (regcache_collect_regset): Likewise.
13262 (regcache_debug_print_register): Likewise.
13263 (enum regcache_dump_what): Move it to regcache.h.
13264 (regcache_dump): Change it to method dump.
13265 * regcache.h (enum regcache_dump_what): New.
13266 (class regcache): New.
13267 * target.c (target_fetch_registers): Call method
13268 debug_print_register.
13269 (target_store_registers): Likewise.
13271 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13273 * windows-nat.c (struct lm_info_windows): Initialize field.
13274 (windows_make_so): Allocate lm_info_windows with new.
13275 (windows_free_so): Free lm_info_windows with delete.
13277 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13279 * solib-darwin.c (struct lm_info_darwin): Initialize field.
13280 (darwin_current_sos): Allocate lm_info_darwin with new, remove
13282 (darwin_free_so): Free lm_info_darwin with delete.
13284 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13286 * solib-svr4.h (struct lm_info_svr4): Initialize fields.
13287 <l_addr_p>: Change type to bool.
13288 * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
13289 (svr4_free_so): Free lm_info_svr4 with delete.
13290 (svr4_copy_library_list): Replace memcpy with call to copy
13292 (library_list_start_library, svr4_default_sos): Allocate
13293 lm_info_svr4 with new.
13295 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13297 * solib-target.c (struct lm_info_target): Add destructor,
13299 <name>: Change type to std::string.
13300 (library_list_start_library): Allocate lm_info_target with new.
13301 (solib_target_free_library_list): Free lm_info_target with
13303 (solib_target_current_sos): Adapt to std::string.
13304 (solib_target_free_so): Free lm_info_target with delete.
13306 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13308 * solib-frv.c (struct lm_info_frv): Add destructor, initialize
13310 (frv_current_sos): Allocate lm_info_frv with new.
13311 (frv_relocate_main_executable): Free lm_info_frv with delete,
13313 (frv_clear_solib, frv_free_so): Free lm_info_frv with delete.
13315 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13317 * solib-frv.c (struct lm_info_frv): Fix indentation.
13319 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13321 * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
13323 (dsbt_current_sos): Allocate lm_info_dsbt with new.
13324 (dsbt_relocate_main_executable): Free lm_info_dsbt with delete
13325 and allocate with new.
13326 (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
13328 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13330 * solib-aix.c (struct lm_info_aix): Initialize fields in-class.
13331 <filename, member_name>: Change type to std::string.
13332 (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
13333 (library_list_start_library): Allocate lm_info_aix with new.
13334 (solib_aix_free_library_list, solib_aix_free_so): Free with delete.
13335 (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
13336 with copy constructor.
13338 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13340 * solist.h (struct lm_info): Remove.
13341 (struct lm_info_base): New class.
13342 (struct so_list) <lm_info>: Change type to lm_info_base *.
13343 * nto-tdep.c (struct lm_info): Remove.
13345 * solib-aix.c (struct lm_info): Rename to ...
13346 (struct lm_info_aix): ... this. Extend lm_info_base.
13347 (lm_info_p): Rename to ...
13348 (lm_info_aix_p): ... this, and adjust.
13349 (solib_aix_new_lm_info, solib_aix_xfree_lm_info,
13350 solib_aix_parse_libraries, library_list_start_library,
13351 solib_aix_free_library_list, solib_aix_parse_libraries,
13352 solib_aix_get_library_list,
13353 solib_aix_relocate_section_addresses, solib_aix_free_so,
13354 solib_aix_get_section_offsets,
13355 solib_aix_solib_create_inferior_hook, solib_aix_current_sos):
13357 (struct solib_aix_inferior_data) <library_list>: Adjust.
13358 * solib-darwin.c (struct lm_info): Rename to ...
13359 (struct lm_info_darwin): ... this. Extend lm_info_base.
13360 (darwin_current_sos, darwin_relocate_section_addresses): Adjust.
13361 * solib-dsbt.c (struct lm_info): Rename to ...
13362 (struct lm_info_dsbt): ... this. Extend lm_info_base.
13363 (struct dsbt_info) <main_executable_lm_info): Adjust.
13364 (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so,
13365 dsbt_relocate_section_addresses): Adjust.
13366 * solib-frv.c (struct lm_info): Rename to ...
13367 (struct lm_info_frv): ... this. Extend lm_info_base.
13368 (main_executable_lm_info): Adjust.
13369 (frv_current_sos, frv_relocate_main_executable, frv_free_so,
13370 frv_relocate_section_addresses, frv_fdpic_find_global_pointer,
13371 find_canonical_descriptor_in_load_object,
13372 frv_fdpic_find_canonical_descriptor): Adjust.
13373 * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed
13375 (lm_info_read, lm_addr_check, svr4_keep_data_in_core,
13376 svr4_clear_so, svr4_copy_library_list,
13377 library_list_start_library, svr4_default_sos, svr4_read_so_list,
13378 svr4_current_sos, svr4_fetch_objfile_link_map,
13379 solist_update_incremental): Adjust.
13380 * solib-svr4.h (struct lm_info_svr4): Move here from
13382 * solib-target.c (struct lm_info): Rename to ...
13383 (struct lm_info_target): ... this. Extend lm_info_base.
13384 (lm_info_p): Rename to ...
13385 (lm_info_target_p): ... this.
13386 (solib_target_parse_libraries, library_list_start_segment,
13387 library_list_start_section, library_list_start_library,
13388 library_list_end_library, solib_target_free_library_list,
13389 solib_target_current_sos, solib_target_free_so,
13390 solib_target_relocate_section_addresses): Adjust.
13391 * windows-nat.c (struct lm_info): Rename to ...
13392 (struct lm_info_windows): ... this. Extend lm_info_base.
13393 (windows_make_so, handle_load_dll, handle_unload_dll,
13394 windows_xfer_shared_libraries): Adjust.
13396 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13398 * solib-darwin.c (struct darwin_so_list): Remove.
13399 (darwin_current_sos): Allocate an so_list object instead of a
13400 darwin_so_list, separately allocate an lm_info object.
13401 (darwin_free_so): Free lm_info.
13403 2017-04-28 John Baldwin <jhb@FreeBSD.org>
13405 * mips-tdep.c (print_gp_register_row): Replace printf_filtered
13406 with fprintf_filtered.
13408 2017-04-28 Yao Qi <yao.qi@linaro.org>
13410 * regcache.c (regcache::regcache): New function.
13411 (regcache::~regcache): New function.
13412 (regcache_xmalloc_1): Remove.
13413 (regcache_xmalloc): Call new regcache.
13414 (regcache_xfree): Call delete regcache.
13415 (get_thread_arch_aspace_regcache): Call new regcache.
13417 2017-04-28 Yao Qi <yao.qi@linaro.org>
13419 * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
13420 lwp instead of ptid_get_lwp.
13422 2017-04-28 Yao Qi <yao.qi@linaro.org>
13424 * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
13425 lwp_info instead of getting from inferior_ptid.
13427 2017-04-27 Keith Seitz <keiths@redhat.com>
13429 * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS)
13430 DIFFERENT_REFERENCE_TYPE_BADNESS): Remove.
13431 (CV_CONVERSION_BADNESS): Define.
13432 (rank_one_type): Remove overly restrictive rvalue reference
13434 Add cv-qualifier checks and subranks for type equality.
13435 * gdbtypes.h (REFERENCE_CONVERSION_RVALUE,
13436 REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS,
13437 CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare.
13439 2017-04-27 Simon Marchi <simon.marchi@ericsson.com>
13441 * python/py-inferior.c (inferior_to_inferior_object): Increment reference
13442 count when creating the object.
13444 2017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
13445 Ulrich Weigand <uweigand@de.ibm.com>
13447 * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
13448 entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
13450 (read_xcoff_symtab): Handle C_WEAKEXT storage class.
13451 (process_xcoff_symbol): Likewise.
13452 (scan_xcoff_symtab): Likewise.
13454 2017-04-26 Alan Hayward <alan.hayward@arm.com>
13456 * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned.
13457 (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer.
13458 (ia64_access_reg): Use get_frame_register_unsigned.
13459 (ia64_access_rse_reg): Likewise.
13460 (ia64_libunwind_frame_prev_register): Likewise.
13462 2017-04-26 Jiong Wang <jiong.wang@arm.com>
13464 * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op.
13465 * gdbarch.c: Regenerated.
13466 * gdbarch.h: Regenerated.
13467 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the
13468 visibility external.
13469 (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI
13470 between DW_CFA_lo_user and DW_CFA_high_user inclusive.
13471 (enum cfa_how_kind): Move to ...
13472 (struct dwarf2_frame_state_reg_info): Likewise.
13473 (struct dwarf2_frame_state): Likewise.
13474 * dwarf2-frame.h: ... here.
13475 (dwarf2_frame_state_alloc_regs): New declaration.
13476 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function.
13477 (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook.
13479 2017-04-26 Alan Hayward <alan.hayward@arm.com>
13481 * xtensa-tdep.c (xtensa_pseudo_register_read): Use
13482 regcache_raw_read_unsigned.
13483 (xtensa_pseudo_register_write): Likewise.
13485 2017-04-26 Alan Hayward <alan.hayward@arm.com>
13487 * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors.
13488 (nds32_pseudo_register_write): Likewise.
13490 2017-04-25 Yao Qi <yao.qi@linaro.org>
13492 * regcache.c (struct regcache) <readonly_p>: Change its type
13494 (regcache_xmalloc_1): Update parameter type and callers update.
13496 2017-04-25 Yao Qi <yao.qi@linaro.org>
13498 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
13499 set_gdbarch_wchar_bit.
13500 * arm-tdep.c (arm_gdbarch_init): Likewise.
13502 2017-04-25 Pedro Alves <palves@redhat.com>
13504 * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
13505 (BothAreRelocatable, memcopy, memmove): Don't define.
13506 * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
13509 2017-04-25 Pedro Alves <palves@redhat.com>
13511 * common/common-defs.h: Include "common/poison.h".
13512 * common/function-view.h: (Not, Or, Requires): Move to traits.h
13514 * common/poison.h: New file.
13515 * common/traits.h: Include <type_traits>.
13516 (Not, Or, Requires): New, moved from common/function-view.h.
13518 2017-04-25 Pedro Alves <palves@redhat.com>
13520 * breakpoint.h (struct breakpoint): In-class initialize all
13521 fields. Make boolean fields "bool".
13522 * breakpoint.c (init_raw_breakpoint_without_location): Remove
13523 memset call and initializations no longer necessary.
13525 2017-04-25 Pedro Alves <palves@redhat.com>
13527 * btrace.c (pt_btrace_insn_flags): Change parameter type to
13529 (pt_btrace_insn): New function.
13530 (ftrace_add_pt): Remove memset call and use pt_btrace_insn.
13532 2017-04-25 Pedro Alves <palves@redhat.com>
13534 * ada-lang.c (ada_catchpoint_location): Now a "class". Remove
13535 "base" field and inherit from "bp_location" instead. Add
13537 (allocate_location_exception): Use new non-default ctor.
13538 * breakpoint.c (get_first_locp_gte_addr): Remove memset call.
13539 (init_bp_location): Convert to ...
13540 (bp_location::bp_location): ... this new ctor, and remove memset
13542 (base_breakpoint_allocate_location): Use the new non-default ctor.
13543 * breakpoint.h (bp_location): Now a class. Declare default and
13544 non-default ctors. In-class initialize all members.
13545 (init_bp_location): Remove declaration.
13547 2017-04-25 Pedro Alves <palves@redhat.com>
13549 * common/enum-flags.h (enum_flags): Don't implement copy ctor and
13550 assignment operator.
13552 2017-04-24 Yao Qi <yao.qi@linaro.org>
13554 * doublest.c (convert_doublest_to_floatformat): Call
13555 floatformat_totalsize_bytes.
13557 2017-04-22 Tom Tromey <tom@tromey.com>
13559 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
13561 * stack.c (print_frame): Use ui_out_emit_list.
13562 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
13564 * mi/mi-main.c (print_one_inferior)
13565 (mi_cmd_data_list_register_names)
13566 (mi_cmd_data_list_register_values, mi_cmd_list_features)
13567 (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use
13569 * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list.
13570 (mi_output_solib_attribs): Use ui_out_emit_list,
13572 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list.
13573 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
13574 (mi_cmd_stack_list_args, list_args_or_locals): Use
13576 * disasm.c (do_assembly_only): Use ui_out_emit_list.
13577 * breakpoint.c (print_solib_event, output_thread_groups): Use
13580 2017-04-22 Tom Tromey <tom@tromey.com>
13582 * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple.
13583 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple.
13584 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple.
13586 2017-04-22 Tom Tromey <tom@tromey.com>
13588 * tracepoint.c (tvariables_info_1)
13589 (print_one_static_tracepoint_marker): Use ui_out_emit_tuple.
13591 2017-04-22 Tom Tromey <tom@tromey.com>
13593 * stack.c (print_frame_arg): Use ui_out_emit_tuple,
13594 annotate_arg_emitter.
13595 * breakpoint.c (print_mention_watchpoint)
13596 (print_mention_masked_watchpoint): Use ui_out_emit_tuple.
13597 * annotate.h (struct annotate_arg_emitter): New.
13599 2017-04-22 Tom Tromey <tom@tromey.com>
13601 * record-btrace.c (record_btrace_insn_history)
13602 (record_btrace_insn_history_range, record_btrace_call_history)
13603 (record_btrace_call_history_range): Use ui_out_emit_tuple.
13604 * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use
13606 * stack.c (print_frame_info): Use ui_out_emit_tuple.
13607 * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple.
13608 * skip.c (skip_info): Use ui_out_emit_tuple.
13609 * remote.c (show_remote_cmd): Use ui_out_emit_tuple.
13610 * progspace.c (print_program_space): Use ui_out_emit_tuple.
13611 * probe.c (info_probes_for_ops): Use ui_out_emit_tuple.
13612 * osdata.c (info_osdata): Use ui_out_emit_tuple.
13613 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
13615 * mi/mi-main.c (print_one_inferior, list_available_thread_groups)
13616 (output_register, mi_cmd_data_read_memory)
13617 (mi_cmd_data_read_memory_bytes, mi_load_progress)
13618 (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple.
13619 * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one):
13620 Use ui_out_emit_tuple.
13621 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use
13623 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
13624 (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple.
13625 * linux-thread-db.c (info_auto_load_libthread_db): Use
13627 * inferior.c (print_inferior): Use ui_out_emit_tuple.
13628 * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple.
13629 * disasm.c (do_mixed_source_and_assembly_deprecated)
13630 (do_mixed_source_and_assembly): Use ui_out_emit_tuple.
13631 * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple.
13632 * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple.
13633 * breakpoint.c (print_one_breakpoint_location)
13634 (print_one_breakpoint): Use ui_out_emit_tuple.
13635 * auto-load.c (print_script, info_auto_load_cmd): Use
13637 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple.
13639 2017-04-21 Simon Marchi <simon.marchi@ericsson.com>
13641 * thread.c (print_thread_info_1): Remove dead code.
13643 2017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
13645 * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
13647 * arm-tdep.c (selftests::arm_record_test): Likewise.
13649 2017-04-21 Yao Qi <yao.qi@linaro.org>
13651 * regcache.c (regcache_restore): Remove argument 2. Replace
13652 argument 3 with regcache. Get register status from
13653 src->register_status and get register contents from
13654 register_buffer (src, regnum).
13655 (regcache_cpy): Update.
13657 2017-04-19 Pedro Alves <palves@redhat.com>
13659 * gdbthread.h (thread): Add missing closing parenthesis in
13662 2017-04-19 Pedro Alves <palves@redhat.com>
13664 * common/refcounted-object.h: New file.
13665 * gdbthread.h: Include "common/refcounted-object.h".
13666 (thread_info): Inherit from refcounted_object and add comments.
13667 (thread_info::incref, thread_info::decref)
13668 (thread_info::m_refcount): Delete.
13669 (thread_info::deletable): Use the refcounted_object::refcount()
13671 * inferior.c (current_inferior_): Add comment.
13672 (set_current_inferior): Increment/decrement refcounts.
13673 (prune_inferiors, remove_inferior_command): Skip inferiors marked
13674 not-deletable instead of comparing with the current inferior.
13675 (initialize_inferiors): Increment the initial inferior's refcount.
13676 * inferior.h (struct inferior): Forward declare.
13677 Include "common/refcounted-object.h".
13678 (current_inferior, set_current_inferior): Move declaration to
13679 before struct inferior's definition, and fix comment.
13680 (inferior): Inherit from refcounted_object. Add comments.
13681 * thread.c (switch_to_thread_no_regs): Reference the thread's
13682 inferior pointer directly instead of doing a ptid lookup.
13683 (switch_to_no_thread): New function.
13684 (switch_to_thread(thread_info *)): New function, factored out
13686 (switch_to_thread(ptid_t)): ... this.
13687 (restore_current_thread): Delete.
13688 (current_thread_cleanup): Remove 'inf_id' and 'was_removable'
13689 fields, and add 'inf' field.
13690 (do_restore_current_thread_cleanup): Check whether old->inf is
13691 alive instead of looking up an inferior by ptid. Use
13692 switch_to_thread and switch_to_no_thread.
13693 (restore_current_thread_cleanup_dtor): Use old->inf directly
13694 instead of lookup up an inferior by id. Decref the inferior.
13695 Don't restore 'removable'.
13696 (make_cleanup_restore_current_thread): Same the inferior pointer
13697 in old, instead of the inferior number. Incref the inferior.
13698 Don't save/clear 'removable'.
13700 2017-04-19 Pedro Alves <palves@redhat.com>
13702 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13703 unittests/scoped_restore-selftests.c.
13704 (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o.
13705 * common/scoped_restore.h (scoped_restore_base): Make "class".
13706 (scoped_restore_base::release): New public method.
13707 (scoped_restore_base::scoped_restore_base): New protected ctor.
13708 (scoped_restore_base::m_saved_var): New protected field.
13709 (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the
13710 scoped_restore_base base class instead of m_saved_var directly.
13711 (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise.
13712 (scoped_restore_tmpl::scoped_restore_tmpl(const
13713 scoped_restore_tmpl<T>&)): Likewise.
13714 (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var
13716 (scoped_restore_tmpl::saved_var): New method.
13717 (scoped_restore_tmpl::m_saved_var): Delete.
13718 * inferior.h (inferior::detaching): Now a bool.
13719 * infrun.c (prepare_for_detach): Use a scoped_restore instead of a
13721 * unittests/scoped_restore-selftests.c: New file.
13723 2017-04-19 Pedro Alves <palves@redhat.com>
13725 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS):
13726 Re-sort in alphabetic order.
13728 2017-04-18 Pedro Alves <palves@redhat.com>
13730 * xml-support.c (obstack_xml_printf): Delete.
13731 * xml-support.h (obstack_xml_printf): Delete.
13733 2017-04-18 Pedro Alves <palves@redhat.com>
13735 * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse,
13736 vdebug, verror, body_text, start_element, end_element, name,
13737 user_data, set_is_xinclude, set_error, expat_parser>: New methods.
13738 <name, user_data, expat_parser, scopes, error, last_line, dtd_name,
13739 is_xinclude>: Make private and add m_ prefix.
13740 (gdb_xml_parser::body_text): New method, based on ...
13741 (gdb_xml_body_text): ... this. Adjust.
13742 (gdb_xml_parser::vdebug): New method, based on ...
13743 (gdb_xml_debug): ... this. Adjust.
13744 (gdb_xml_parser::verror): New method, based on ...
13745 (gdb_xml_error): ... this. Adjust.
13746 (gdb_xml_parser::start_element): New method, based on ...
13747 (gdb_xml_start_element): ... this. Adjust.
13748 (gdb_xml_start_element_wrapper): Defer to
13749 gdb_xml_parser::start_element and gdb_xml_parser::set_error.
13750 (gdb_xml_parser::end_element): New method, based on ...
13751 (gdb_xml_end_element_wrapper): ... this. Adjust.
13752 (gdb_xml_parser::~gdb_xml_parser): Adjust.
13753 (gdb_xml_parser::gdb_xml_parser): Adjust to field renames.
13754 (gdb_xml_parser::use_dtd): New method, based on ...
13755 (gdb_xml_use_dtd): ... this. Adjust.
13756 (gdb_xml_parser::parse): New method, based on ...
13757 (gdb_xml_parse): ... this. Adjust.
13758 (gdb_xml_parse_quick): Adjust to call the parser's parse method.
13759 (xinclude_start_include): Adjust to call the parser's name method.
13760 (xml_xinclude_default, xml_xinclude_start_doctype)
13761 (xml_xinclude_end_doctype): Adjust to call the parser's user_data
13763 (xml_process_xincludes): Adjust to call parser methods.
13764 * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete
13767 2017-04-18 Pedro Alves <palves@redhat.com>
13769 * tracefile-tfile.c (tfile_write_tdesc): Adjust to use
13770 gdb::optional<std::string>.
13771 * xml-support.c: Include <string>.
13772 (scope_level::scope_level(scope_level &&))
13773 (scope_level::~scope_level): Delete.
13774 (scope_level::body): Now a std::string.
13775 (gdb_xml_body_text, gdb_xml_end_element): Adjust.
13776 (xinclude_parsing_data::xinclude_parsing_data): Add 'output'
13778 (xinclude_parsing_data::~xinclude_parsing_data): Delete.
13779 (xinclude_parsing_data::output): Now a std::string reference.
13780 (xinclude_start_include): Adjust.
13781 (xml_xinclude_default): Adjust.
13782 (xml_process_xincludes): Add 'output' parameter, and return bool.
13783 * xml-support.h (xml_process_xincludes): Add 'output' parameter,
13785 * xml-tdesc.c: Include <unordered_map> and <string>.
13786 (tdesc_xml_cache): Delete.
13787 (tdesc_xml_cache_s): Delete.
13788 (xml_cache): Now an std::unordered_map.
13789 (tdesc_parse_xml): Adjust to use std::string and unordered_map.
13790 (target_fetch_description_xml): Change return type to
13791 gdb::optional<std::string>, and adjust.
13792 * xml-tdesc.h: Include "common/gdb_optional.h" and <string>.
13793 (target_fetch_description_xml): Change return type to
13794 gdb::optional<std::string>.
13796 2017-04-18 Pedro Alves <palves@redhat.com>
13798 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13799 unittests/optional-selftests.c.
13800 (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o.
13801 * unittests/optional-selftests.c: New file.
13802 * unittests/optional/assignment/1.cc: New file.
13803 * unittests/optional/assignment/2.cc: New file.
13804 * unittests/optional/assignment/3.cc: New file.
13805 * unittests/optional/assignment/4.cc: New file.
13806 * unittests/optional/assignment/5.cc: New file.
13807 * unittests/optional/assignment/6.cc: New file.
13808 * unittests/optional/assignment/7.cc: New file.
13809 * unittests/optional/cons/copy.cc: New file.
13810 * unittests/optional/cons/default.cc: New file.
13811 * unittests/optional/cons/move.cc: New file.
13812 * unittests/optional/cons/value.cc: New file.
13813 * unittests/optional/in_place.cc: New file.
13814 * unittests/optional/observers/1.cc: New file.
13815 * unittests/optional/observers/2.cc: New file.
13817 2017-04-18 Pedro Alves <palves@redhat.com>
13819 * common/gdb_optional.h: Include common/traits.h.
13820 (in_place_t): New type.
13821 (in_place): New constexpr variable.
13822 (optional::optional): Remove member initialization of
13824 (optional::optional(in_place_t...)): New constructor.
13825 (optional::~optional): Use reset.
13826 (optional::optional(const optional&)): New.
13827 (optional::optional(const optional&&)): New.
13828 (optional::optional(T &)): New.
13829 (optional::optional(T &&)): New.
13830 (operator::operator=(const optional &)): New.
13831 (operator::operator=(optional &&)): New.
13832 (operator::operator= (const T &))
13833 (operator::operator= (T &&))
13834 (operator::emplace (Args &&... args)): Return a T&. Use reset.
13835 (operator::reset): New.
13836 (operator::m_instantiated):: Add in-class initializer.
13837 * common/traits.h: Include <type_traits>.
13838 (struct And): New types.
13840 2017-04-18 Pedro Alves <palves@redhat.com>
13842 * xml-support.c: Include <vector>.
13843 (scope_level::scope_level(const gdb_xml_element *))
13844 (scope_level::scope_level(scope_level&&)): New.
13845 (scope_level::~scope_level): New.
13846 (scope_level_s): Delete.
13847 (gdb_xml_parser::scopes): Now a std::vector.
13848 (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
13850 (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
13851 scope cleanup code.
13852 (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
13853 of the scopes member. Use std::vector::emplace_back.
13855 2017-04-18 Pedro Alves <palves@redhat.com>
13857 * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude
13859 (gdb_xml_end_element): Change type of first parameter.
13860 (gdb_xml_cleanup): Rename to ...
13861 (gdb_xml_parser::~gdb_xml_parser): ... this.
13862 (gdb_xml_create_parser_and_cleanup): Delete with ...
13863 (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
13865 (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
13866 using gdb_xml_create_parser_and_cleanup.
13867 (xinclude_parsing_data): Add ctor/dtor.
13868 (xml_xinclude_cleanup): Delete.
13869 (xml_process_xincludes): Create a local xinclude_parsing_data
13870 instead of heap-allocating one. Create a local gdb_xml_parser
13871 instead of heap-allocating one with
13872 gdb_xml_create_parser_and_cleanup.
13874 2017-04-18 John Baldwin <jhb@FreeBSD.org>
13877 * fbsd-nat.c (resume_one_thread_cb): Remove.
13878 (resume_all_threads_cb): Remove.
13879 (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
13880 iterate_over_threads.
13882 2017-04-17 Joel Brobecker <brobecker@adacore.com>
13884 * NEWS: Create a new section for the next release branch.
13885 Rename the section of the current branch, now that it has
13888 2017-04-17 Joel Brobecker <brobecker@adacore.com>
13890 GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
13891 * version.in: Bump version to 8.0.50.DATE-git.
13893 2017-04-13 Sergio Durigan Junior <sergiodj@redhat.com>
13896 * windows-nat.c (windows_create_inferior): Declare 'allargs'
13897 independently of the host, and fix build breakage on Cygwin.
13899 2017-04-13 Pedro Alves <palves@redhat.com>
13901 * inferior.c (free_inferior): Convert to ...
13902 (inferior::~inferior): ... this dtor.
13903 (inferior::inferior): New ctor, factored out from ...
13904 (add_inferior_silent): ... here. Allocate the inferior with a new
13906 (delete_inferior): Call delete instead of free_inferior.
13907 * inferior.h (gdb_environ, continuation): Forward declare.
13908 (inferior): Now a class. Add in-class initialization to all
13909 members. Make boolean fields bool, except 'detaching'.
13910 (inferior::inferior): New explicit ctor.
13911 (inferior::~inferior): New.
13913 2017-04-13 Pedro Alves <palves@redhat.com>
13915 * inferior.c (init_inferior_list): Delete.
13916 * inferior.h (init_inferior_list): Delete.
13918 2017-04-13 Pedro Alves <palves@redhat.com>
13921 * gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
13922 (top level): Call it twice, with different thread sets.
13924 2017-04-13 Pedro Alves <palves@redhat.com>
13926 * thread.c: Include <algorithm>.
13927 (thread_array_cleanup): Delete.
13928 (scoped_inc_dec_ref): New class.
13929 (live_threads_count): New function.
13930 (set_thread_refcount): Delete.
13931 (tp_array_compar_ascending): Now a bool.
13932 (tp_array_compar): Convert to a std::sort comparison function.
13933 (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
13934 and live_threads_count.
13936 2017-04-13 Pedro Alves <palves@redhat.com>
13938 * infrun.c (follow_fork_inferior): Also switch the current
13941 2017-04-13 Pedro Alves <palves@redhat.com>
13943 * breakpoint.c (watch_command_1): Save watchpoint-frame info
13944 before calling create_internal_breakpoint.
13946 2017-04-13 Pedro Alves <palves@redhat.com>
13948 * fork-child.c (execv_argv): New class.
13949 (breakup_args): Refactored as ...
13950 (execv_argv::init_for_no_shell): .. this method of execv_argv.
13951 Copy arguments to storage and replace separators with NULL
13952 terminators in place.
13953 (escape_bang_in_quoted_argument): Adjust to return bool.
13954 (execv_argv::execv_argv): New ctor.
13955 (execv_argv::init_for_shell): New method, factored out from
13956 fork_inferior. Don't strdup strings into the vector.
13957 (fork_inferior): Eliminate "shell" local and use execv_argv. Use
13958 Remove free_vector_argv call.
13960 2017-04-13 Yao Qi <yao.qi@linaro.org>
13962 * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
13965 2017-04-13 Yao Qi <yao.qi@linaro.org>
13967 * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
13968 * rx-tdep.c (rx_gdbarch_init): Likewise.
13970 2017-04-13 Pedro Alves <palves@redhat.com>
13972 * breakpoint.h (struct breakpoint): Reindent.
13974 2017-04-13 Pedro Alves <palves@redhat.com>
13976 * breakpoint.c (bp_location): Rename to ...
13977 (bp_locations): ... this. All references updated.
13978 (bp_location_count): Rename to ...
13979 (bp_locations_count): ... this. All references updated.
13980 (bp_location_placed_address_before_address_max): Rename to ...
13981 (bp_locations_placed_address_before_address_max): ... this. All
13982 references updated.
13983 (bp_location_shadow_len_after_address_max): Rename to ...
13984 (bp_locations_shadow_len_after_address_max): ... this. All
13985 references updated.
13986 (bp_location_compare_addrs): Rename to ...
13987 (bp_locations_compare_addrs): ... this. All references updated.
13988 (bp_location_compare):Rename to ...
13989 (bp_locations_compare): ... this. All references updated.
13990 (bp_location_target_extensions_update): Rename to ...
13991 (bp_locations_target_extensions_update): ... this. All references
13994 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
13996 * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
13997 * common/common.m4: Check headers 'termios.h', 'termio.h' and
13999 * common/gdb_termios.h: New file, with parts of "terminal.h".
14000 * inflow.c: Include "gdb_termios.h".
14001 * ser-unix.c: Include "gdb_termios.h".
14002 * terminal.h: Move terminal-related defines to
14003 "common/gdb_termios.h".
14005 2017-04-12 Tom Tromey <tom@tromey.com>
14007 * probe.c (parse_probes): Update.
14008 * location.h (delete_event_location): Don't declare.
14009 (event_location_deleter::operator()): Update.
14010 * location.c (event_location_deleter::operator()): Rename from
14011 delete_event_location.
14012 * linespec.h (linespec_result) <location>: Change type to
14014 * linespec.c (canonicalize_linespec, event_location_to_sals)
14015 (decode_objc): Update.
14016 (linespec_result): Don't call delete_event_location.
14017 * breakpoint.c (create_breakpoints_sal)
14018 (bkpt_probe_create_sals_from_location)
14019 (strace_marker_create_sals_from_location): Update.
14021 2017-04-12 Tom Tromey <tom@tromey.com>
14023 * linespec.h (struct linespec_result): Add constructor and
14025 (init_linespec_result, destroy_linespec_result)
14026 (make_cleanup_destroy_linespec_result): Don't declare.
14027 * linespec.c (init_linespec_result): Remove.
14028 (linespec_result::~linespec_result): Rename from
14029 destroy_linespec_result. Update.
14030 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
14032 * breakpoint.c (create_breakpoint, break_range_command)
14033 (decode_location_default): Update.
14034 * ax-gdb.c (agent_command_1): Update.
14036 2017-04-12 Tom Tromey <tom@tromey.com>
14038 * remote.c (remote_download_tracepoint): Update.
14039 * python/py-breakpoint.c (bppy_get_location): Update.
14040 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
14041 (gdbscm_breakpoint_location): Update.
14042 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
14043 * breakpoint.h (struct breakpoint) <location, location_range_end>:
14044 Change type to event_location_up.
14045 * breakpoint.c (create_overlay_event_breakpoint)
14046 (create_longjmp_master_breakpoint)
14047 (create_std_terminate_master_breakpoint)
14048 (create_exception_master_breakpoint)
14049 (breakpoint_event_location_empty_p, print_breakpoint_location)
14050 (print_one_breakpoint_location, create_thread_event_breakpoint)
14051 (init_breakpoint_sal, create_breakpoint)
14052 (print_recreate_ranged_breakpoint, break_range_command)
14053 (init_ada_exception_breakpoint, say_where): Update.
14054 (base_breakpoint_dtor): Don't call delete_event_location.
14055 (bkpt_print_recreate, tracepoint_print_recreate)
14056 (dprintf_print_recreate, update_static_tracepoint)
14057 (breakpoint_re_set_default): Update.
14059 2017-04-12 Tom Tromey <tom@tromey.com>
14061 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
14062 type of "to_do". Update.
14063 (compute_stack_depth): Use std::vector.
14065 2017-04-12 Tom Tromey <tom@tromey.com>
14067 * printcmd.c (find_instruction_backward): Use std::vector.
14069 2017-04-12 Tom Tromey <tom@tromey.com>
14071 * symfile.c (objfilep): Remove typedef.
14072 (reread_symbols): Use a std::vector.
14074 2017-04-12 Tom Tromey <tom@tromey.com>
14076 * mi/mi-main.c (exec_direction_forward): Remove.
14077 (exec_reverse_continue, mi_execute_command): Use scoped_restore.
14078 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
14080 * guile/guile.c (guile_repl_command, guile_command)
14081 (gdbscm_execute_gdb_command): Use scoped_restore.
14082 * go-exp.y (go_parse): Use scoped_restore.
14083 * d-exp.y (d_parse): Use scoped_restore.
14084 * cli/cli-decode.c (cmd_func): Use scoped_restore.
14085 * c-exp.y (c_parse): Use scoped_restore.
14087 2017-04-12 Tom Tromey <tom@tromey.com>
14089 * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
14090 (mi_parse): Update return type.
14091 (mi_parse_free): Remove.
14092 * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
14093 (mi_parse::~mi_parse): Rename from mi_parse_free.
14094 (mi_parse_cleanup): Remove.
14095 (mi_parse): Return a unique_ptr. Use new.
14096 * mi/mi-main.c (mi_execute_command): Update.
14098 2017-04-12 Tom Tromey <tom@tromey.com>
14100 * location.c (explicit_location_lex_one): Return a
14101 unique_xmalloc_ptr.
14102 (string_to_explicit_location): Update. Remove cleanups.
14104 2017-04-12 Tom Tromey <tom@tromey.com>
14106 * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
14107 (compare_value_and_voffset): Change type. Update.
14108 (compute_vtable_size): Change type of "offset_vec".
14109 (gnuv3_print_vtable): Use std::vector. Remove cleanups.
14110 (gnuv3_get_typeid): Remove extraneous declaration.
14112 2017-04-12 Tom Tromey <tom@tromey.com>
14114 * charset.h (wchar_iterator): Fix comment.
14116 2017-04-12 Tom Tromey <tom@tromey.com>
14118 * charset.c (iconv_wrapper): New class.
14119 (cleanup_iconv): Remove.
14120 (convert_between_encodings): Use it.
14122 2017-04-12 Tom Tromey <tom@tromey.com>
14124 * symfile.h (increment_reading_symtab): Update type.
14125 * symfile.c (decrement_reading_symtab): Remove.
14126 (increment_reading_symtab): Return a scoped_restore_tmpl<int>.
14127 * psymtab.c (psymtab_to_symtab): Update.
14128 * dwarf2read.c (dw2_instantiate_symtab): Update.
14130 2017-04-12 Tom Tromey <tom@tromey.com>
14132 * jit.c (struct jit_reader): Declare separately. Add constructor
14133 and destructor. Change type of "handle".
14134 (loaded_jit_reader): Define separately.
14135 (jit_reader_load): Update. New "new".
14136 (jit_reader_unload_command): Use "delete".
14137 * gdb-dlfcn.h (struct dlclose_deleter): New.
14138 (gdb_dlhandle_up): New typedef.
14139 (gdb_dlopen, gdb_dlsym): Update types.
14140 (gdb_dlclose): Remove.
14141 * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up.
14142 (gdb_dlsym): Change type of "handle".
14143 (make_cleanup_dlclose): Remove.
14144 (dlclose_deleter::operator()): Rename from gdb_dlclose.
14145 * compile/compile-c-support.c (load_libcc): Update.
14147 2017-04-12 Tom Tromey <tom@tromey.com>
14149 * symtab.h (find_pcs_for_symtab_line): Change return type.
14150 * symtab.c (find_pcs_for_symtab_line): Change return type.
14151 * python/py-linetable.c (build_line_table_tuple_from_pcs): Change
14152 type of "vec". Update.
14153 (ltpy_get_pcs_for_line): Update.
14154 * linespec.c (decode_digits_ordinary): Update.
14156 2017-04-12 Tom Tromey <tom@tromey.com>
14158 * tracepoint.c (actions_command): Update.
14159 * python/python.c (python_command, python_interactive_command):
14161 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
14162 * guile/guile.c (guile_command): Update.
14163 * defs.h (read_command_lines, read_command_lines_1): Return
14165 (command_lines_deleter): New struct.
14166 (command_line_up): New typedef.
14167 * compile/compile.c (compile_code_command)
14168 (compile_print_command): Update.
14169 * cli/cli-script.h (get_command_line, copy_command_lines): Return
14171 (make_cleanup_free_command_lines): Remove.
14172 * cli/cli-script.c (get_command_line, read_command_lines_1)
14173 (copy_command_lines): Return command_line_up.
14174 (while_command, if_command, read_command_lines, define_command)
14175 (document_command): Update.
14176 (do_free_command_lines_cleanup, make_cleanup_free_command_lines):
14178 * breakpoint.h (breakpoint_set_commands): Change type of
14180 * breakpoint.c (breakpoint_set_commands): Change type of
14181 "commands". Update.
14182 (do_map_commands_command, update_dprintf_command_list)
14183 (create_tracepoint_from_upload): Update.
14185 2017-04-12 Tom Tromey <tom@tromey.com>
14187 * tracepoint.c (scope_info): Update.
14188 * spu-tdep.c (spu_catch_start): Update.
14189 * python/python.c (gdbpy_decode_line): Update.
14190 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
14191 * python/py-breakpoint.c (bppy_init): Update.
14192 * probe.c (parse_probes): Update.
14193 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
14194 * location.h (event_location_deleter): New struct.
14195 (event_location_up): New typedef.
14196 (new_linespec_location, new_address_location, new_probe_location)
14197 (new_explicit_location, copy_event_location)
14198 (string_to_event_location, string_to_event_location_basic)
14199 (string_to_explicit_location): Update return type.
14200 (make_cleanup_delete_event_location): Remove.
14201 * location.c (new_linespec_location, new_address_location)
14202 (new_probe_location, new_explicit_location, copy_event_location):
14203 Return event_location_up.
14204 (delete_event_location_cleanup)
14205 (make_cleanup_delete_event_location): Remove.
14206 (string_to_explicit_location, string_to_event_location_basic)
14207 (string_to_event_location): Return event_location_up.
14208 * linespec.c (canonicalize_linespec, event_location_to_sals)
14209 (decode_line_with_current_source)
14210 (decode_line_with_last_displayed, decode_objc): Update.
14211 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
14212 * completer.c (location_completer): Update.
14213 * cli/cli-cmds.c (edit_command, list_command): Update.
14214 * breakpoint.c (create_overlay_event_breakpoint)
14215 (create_longjmp_master_breakpoint)
14216 (create_std_terminate_master_breakpoint)
14217 (create_exception_master_breakpoint)
14218 (create_thread_event_breakpoint): Update.
14219 (init_breakpoint_sal): Update. Remove some dead code.
14220 (create_breakpoint_sal): Change type of "location". Update.
14221 (create_breakpoints_sal, create_breakpoint, break_command_1)
14222 (dprintf_command, break_range_command, until_break_command)
14223 (init_ada_exception_breakpoint)
14224 (strace_marker_create_sals_from_location)
14225 (update_static_tracepoint, trace_command, ftrace_command)
14226 (strace_command, create_tracepoint_from_upload): Update.
14227 * break-catch-throw.c (re_set_exception_catchpoint): Update.
14228 * ax-gdb.c (agent_command_1): Update.
14230 2017-04-12 Pedro Alves <palves@redhat.com>
14232 * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o.
14233 * configure.tgt: Handle i[34567]86-*-go32* and
14234 i[34567]86-*-msdosdjgpp*.
14235 * i386-tdep.c (i386_svr4_reg_to_regnum):
14237 (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to
14239 (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c.
14240 * i386-go32-tdep.c: New file.
14241 * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New
14244 2017-04-12 Simon Marchi <simon.marchi@ericsson.com>
14246 * aix-thread.c (pd_status2str): Change return type to const char *.
14248 2017-04-12 Pedro Alves <palves@redhat.com>
14250 * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
14251 calls to set_gdbarch_gnu_triplet_regexp.
14253 2017-04-12 Pedro Alves <palves@redhat.com>
14256 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>:
14258 (cplus_language_arch_info): Register cplus_primitive_type_wchar_t.
14259 * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field.
14260 * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type.
14261 * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values.
14262 * gdbarch.h, gdbarch.c: Regenerate.
14263 * aarch64-tdep.c (aarch64_gdbarch_init): Override
14264 gdbarch_wchar_bit and gdbarch_wchar_signed.
14265 * alpha-tdep.c (alpha_gdbarch_init): Likewise.
14266 * arm-tdep.c (arm_gdbarch_init): Likewise.
14267 * avr-tdep.c (avr_gdbarch_init): Likewise.
14268 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
14269 * i386-nto-tdep.c (i386nto_init_abi): Likewise.
14270 * i386-tdep.c (i386_go32_init_abi): Likewise.
14271 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
14272 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
14273 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
14274 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
14275 * sh-tdep.c (sh_gdbarch_init): Likewise.
14276 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
14277 * sparc64-tdep.c (sparc64_init_abi): Likewise.
14278 * windows-tdep.c (windows_init_abi): Likewise.
14279 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
14281 2017-04-12 Pedro Alves <palves@redhat.com>
14284 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t,
14285 cplus_primitive_type_char32_t>: New enum values.
14286 (cplus_language_arch_info): Register cplus_primitive_type_char16_t
14287 and cplus_primitive_type_char32_t.
14288 * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or
14289 32, use the archtecture's built-in type for char16_t and char32_t,
14290 respectively. Otherwise, fallback to init_integer_type as before,
14291 but make the type unsigned, and issue a complaint.
14292 * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned.
14294 2017-04-12 Alan Hayward <alan.hayward@arm.com>
14296 * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added.
14297 (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
14299 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
14301 * windows-nat.c (windows_create_inferior): Declare 'toexec' as
14304 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
14306 * common/common-utils.c (free_vector_argv): New function.
14307 * common/common-utils.h: Include <vector>.
14308 (free_vector_argv): New prototype.
14309 * darwin-nat.c (darwin_create_inferior): Rewrite function
14310 prototype in order to constify "exec_file" and accept a
14311 "std::string" for "allargs".
14312 * fork-child.c: Include <vector>.
14313 (breakup_args): Rewrite function, using C++.
14314 (fork_inferior): Rewrite function header, constify "exec_file_arg"
14315 and accept "std::string" for "allargs". Update the code to
14316 calculate "argv" based on "allargs". Update calls to "exec_fun"
14318 * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in
14319 order to constify "exec_file" and accept a "std::string" for
14321 * go32-nat.c (go32_create_inferior): Likewise.
14322 * inf-ptrace.c (inf_ptrace_create_inferior): Likewise.
14323 * infcmd.c (run_command_1): Constify "exec_file". Use
14324 "std::string" for inferior arguments.
14325 * inferior.h (fork_inferior): Update prototype.
14326 * linux-nat.c (linux_nat_create_inferior): Rewrite function
14327 prototype in order to constify "exec_file" and accept a
14328 "std::string" for "allargs".
14329 * nto-procfs.c (procfs_create_inferior): Likewise.
14330 * procfs.c (procfs_create_inferior): Likewise.
14331 * remote-sim.c (gdbsim_create_inferior): Likewise.
14332 * remote.c (extended_remote_run): Update code to accept
14333 "std::string" as argument.
14334 (extended_remote_create_inferior): Rewrite function prototype in
14335 order to constify "exec_file" and accept a "std::string" for
14337 * rs6000-nat.c (super_create_inferior): Likewise.
14338 (rs6000_create_inferior): Likewise.
14339 * target.h (struct target_ops) <to_create_inferior>: Likewise.
14340 * windows-nat.c (windows_create_inferior): Likewise.
14342 2017-04-11 Pedro Alves <palves@redhat.com>
14344 * thread.c: Fix whitespace throughout.
14346 2017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com>
14348 * linux-nat.c (linux_nat_detach): Remove delete_lwp call.
14350 2017-04-11 Alan Hayward <alan.hayward@arm.com>
14352 * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
14354 2017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
14357 * osdata.c (info_osdata): Check if 'type' is an empty string
14360 2017-04-10 Pedro Alves <palves@redhat.com>
14362 * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid)
14363 (ptid_to_global_thread_id, in_thread_list)
14364 (do_captured_list_thread_ids, set_resumed, set_running)
14365 (set_executing, set_stop_requested, finish_thread_state)
14366 (validate_registers_access, can_access_registers_ptid)
14367 (print_thread_info_1, switch_to_thread)
14368 (do_restore_current_thread_cleanup)
14369 (make_cleanup_restore_current_thread, thread_command)
14370 (thread_name_command): Use operator== instead of ptid_equal.
14372 2017-04-10 Pedro Alves <palves@redhat.com>
14374 * thread.c (struct current_thread_cleanup) <next>: Delete field.
14375 (current_thread_cleanup_chain): Delete.
14376 (restore_current_thread_cleanup_dtor)
14377 (make_cleanup_restore_current_thread): Remove references to
14378 current_thread_cleanup_chain.
14380 2017-04-10 Alan Hayward <alan.hayward@arm.com>
14382 * msp430-tdep.c (msp430_pseudo_register_read): Never return
14385 2017-04-10 Yao Qi <yao.qi@linaro.org>
14388 * gdbthread.h (thread_info::deletable): New method.
14389 (thread_info::incref): New method.
14390 (thread_info::decref): New method.
14391 (thread_info::refcount): Move it to private.
14392 * infrun.c (save_stop_context): Call inc_refcount.
14393 (release_stop_context_cleanup): Likewise.
14394 * thread.c (set_thread_exited): New function.
14395 (init_thread_list): Delete "tp" only it is deletable, otherwise
14396 call set_thread_exited.
14397 (delete_thread_1): Call set_thread_exited.
14398 (current_thread_cleanup) <inferior_pid>: Remove.
14399 <thread>: New field.
14400 (restore_current_thread_ptid_changed): Removed.
14401 (do_restore_current_thread_cleanup): Adjust.
14402 (restore_current_thread_cleanup_dtor): Don't call
14404 (set_thread_refcount): Use dec_refcount.
14405 (make_cleanup_restore_current_thread): Adjust.
14406 (thread_apply_all_command): Call inc_refcount.
14407 (_initialize_thread): Don't call
14408 observer_attach_thread_ptid_changed.
14410 2017-04-10 Yao Qi <yao.qi@linaro.org>
14412 * thread.c (delete_thread_1): Hoist code on marking thread as
14415 2017-04-09 Simon Marchi <simon.marchi@polymtl.ca>
14417 * windows-nat.c (windows_detach): Initialize ptid with
14420 2017-04-07 Simon Marchi <simon.marchi@ericsson.com>
14422 * unittests/ptid-selftests.c: Fix erroneous assert messages.
14424 2017-04-07 Alan Hayward <alan.hayward@arm.com>
14426 * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
14427 (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE.
14428 (bfin_pseudo_register_write): Likewise
14430 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
14432 * common/ptid.h (struct ptid): Change to...
14433 (class ptid_t): ... this.
14434 <ptid_t>: New constructors.
14435 <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=,
14436 matches>: New methods.
14437 <make_null, make_minus_one>: New static methods.
14438 <pid>: Rename to...
14440 <lwp>: Rename to...
14442 <tid>: Rename to...
14444 (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
14445 ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments
14446 as references, move comment to class ptid_t.
14447 * common/ptid.c (null_ptid, minus_one_ptid): Initialize with
14448 ptid_t static methods.
14449 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid,
14450 ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match):
14451 Take ptid arguments as references, implement using ptid_t methods.
14452 * unittests/ptid-selftests.c: New file.
14453 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14454 unittests/ptid-selftests.c.
14455 (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o.
14457 2017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
14459 * python/python.c (python_run_simple_file): Cast mode literal to
14460 non-const char pointer as expected by PyFile_FromString.
14462 2017-04-05 Simon Marchi <simon.marchi@ericsson.com>
14464 * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with
14465 minus_one_ptid and null_ptid.
14467 2017-04-05 Pedro Alves <palves@redhat.com>
14469 * warning.m4 (build_warnings): Remove -Wno-write-strings.
14470 * configure: Regenerate.
14472 2017-04-05 Pedro Alves <palves@redhat.com>
14474 * ada-exp.y (yyerror): Constify.
14475 * ada-lang.c (bound_name, get_selections)
14476 (ada_variant_discrim_type)
14477 (ada_variant_discrim_name, ada_value_struct_elt)
14478 (ada_lookup_struct_elt_type, is_unchecked_variant)
14479 (ada_which_variant_applies, standard_exc, ada_get_next_arg)
14480 (catch_ada_exception_command_split)
14481 (catch_ada_assert_command_split, catch_assert_command)
14482 (ada_op_name): Constify.
14483 * ada-lang.h (ada_yyerror, get_selections)
14484 (ada_variant_discrim_name, ada_value_struct_elt): Constify.
14485 * arc-tdep.c (arc_print_frame_cache): Constify.
14486 * arm-tdep.c (arm_skip_stub): Constify.
14487 * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref)
14488 (gen_aggregate_elt_ref): Constify.
14489 * bcache.c (print_bcache_statistics): Constify.
14490 * bcache.h (print_bcache_statistics): Constify.
14491 * break-catch-throw.c (catch_exception_command_1):
14492 * breakpoint.c (struct ep_type_description::description):
14494 (add_solib_catchpoint): Constify.
14495 (catch_fork_command_1): Add cast.
14496 (add_catch_command): Constify.
14497 * breakpoint.h (add_catch_command, add_solib_catchpoint):
14499 * bsd-uthread.c (bsd_uthread_state): Constify.
14500 * buildsym.c (patch_subfile_names): Constify.
14501 * buildsym.h (next_symbol_text_func, patch_subfile_names):
14503 * c-exp.y (yyerror): Constify.
14504 (token::oper): Constify.
14505 * c-lang.h (c_yyerror, cp_print_class_member): Constify.
14506 * c-varobj.c (cplus_describe_child): Constify.
14507 * charset.c (find_charset_names): Add cast.
14508 (find_charset_names): Constify array and add const_cast.
14509 * cli/cli-cmds.c (complete_command, cd_command): Constify.
14510 (edit_command): Constify.
14511 * cli/cli-decode.c (lookup_cmd): Constify.
14512 * cli/cli-dump.c (dump_memory_command, dump_value_command):
14514 (struct dump_context): Constify.
14515 (add_dump_command, restore_command): Constify.
14516 * cli/cli-script.c (get_command_line): Constify.
14517 * cli/cli-script.h (get_command_line): Constify.
14518 * cli/cli-utils.c (check_for_argument): Constify.
14519 * cli/cli-utils.h (check_for_argument): Constify.
14520 * coff-pe-read.c (struct read_pe_section_data): Constify.
14521 * command.h (lookup_cmd): Constify.
14522 * common/print-utils.c (decimal2str): Constify.
14523 * completer.c (gdb_print_filename): Constify.
14524 * corefile.c (set_gnutarget): Constify.
14525 * cp-name-parser.y (yyerror): Constify.
14526 * cp-valprint.c (cp_print_class_member): Constify.
14527 * cris-tdep.c (cris_register_name, crisv32_register_name):
14529 * d-exp.y (yyerror): Constify.
14530 (struct token::oper): Constify.
14531 * d-lang.h (d_yyerror): Constify.
14532 * dbxread.c (struct header_file_location::name): Constify.
14533 (add_old_header_file, add_new_header_file, last_function_name)
14534 (dbx_next_symbol_text, add_bincl_to_list)
14535 (find_corresponding_bincl_psymtab, set_namestring)
14536 (find_stab_function_addr, read_dbx_symtab, start_psymtab)
14537 (dbx_end_psymtab, read_ofile_symtab, process_one_symbol):
14538 * defs.h (command_line_input, print_address_symbolic)
14539 (deprecated_readline_begin_hook): Constify.
14540 * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name):
14542 * event-top.c (handle_line_of_input): Constify and add cast.
14543 * exceptions.c (catch_errors): Constify.
14544 * exceptions.h (catch_errors): Constify.
14545 * expprint.c (print_subexp_standard, op_string, op_name)
14546 (op_name_standard, dump_raw_expression, dump_raw_expression):
14547 * expression.h (op_name, op_string, dump_raw_expression):
14549 * f-exp.y (yyerror): Constify.
14550 (struct token::oper): Constify.
14551 (struct f77_boolean_val::name): Constify.
14552 * f-lang.c (f_word_break_characters): Constify.
14553 * f-lang.h (f_yyerror): Constify.
14554 * fork-child.c (fork_inferior): Add cast.
14555 * frv-tdep.c (struct gdbarch_tdep::register_names): Constify.
14556 (new_variant): Constify.
14557 * gdbarch.sh (pstring_ptr, pstring_list): Constify.
14558 * gdbarch.c: Regenerate.
14559 * gdbcore.h (set_gnutarget): Constify.
14560 * go-exp.y (yyerror): Constify.
14561 (token::oper): Constify.
14562 * go-lang.h (go_yyerror): Constify.
14563 * go32-nat.c (go32_sysinfo): Constify.
14564 * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify.
14565 * guile/scm-cmd.c (cmdscm_function): Constify.
14566 * guile/scm-param.c (pascm_param_value): Constify.
14567 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
14568 (h8300sx_register_name): Constify.
14569 * hppa-tdep.c (hppa32_register_name, hppa64_register_name):
14571 * ia64-tdep.c (ia64_register_names): Constify.
14572 * infcmd.c (construct_inferior_arguments): Constify.
14573 (path_command, attach_post_wait): Constify.
14574 * language.c (show_range_command, show_case_command)
14575 (unk_lang_error): Constify.
14576 * language.h (language_defn::la_error)
14577 (language_defn::la_name_of_this): Constify.
14578 * linespec.c (decode_line_2): Constify.
14579 * linux-thread-db.c (thread_db_err_str): Constify.
14580 * lm32-tdep.c (lm32_register_name): Constify.
14581 * m2-exp.y (yyerror): Constify.
14582 * m2-lang.h (m2_yyerror): Constify.
14583 * m32r-tdep.c (m32r_register_names): Constify and make static.
14584 * m68hc11-tdep.c (m68hc11_register_names): Constify.
14585 * m88k-tdep.c (m88k_register_name): Constify.
14586 * macroexp.c (appendmem): Constify.
14587 * mdebugread.c (fdr_name, add_data_symbol, parse_type)
14588 (upgrade_type, parse_external, parse_partial_symbols)
14589 (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab)
14590 (new_symbol): Constify.
14591 * memattr.c (mem_info_command): Constify.
14592 * mep-tdep.c (register_name_from_keyword): Constify.
14593 * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env):
14595 * mi/mi-cmd-stack.c (list_args_or_locals): Constify.
14596 * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify.
14597 * mi/mi-main.c (captured_mi_execute_command): Constify and add
14599 (mi_execute_async_cli_command): Constify.
14600 * mips-tdep.c (mips_register_name): Constify.
14601 * mn10300-tdep.c (register_name, mn10300_generic_register_name)
14602 (am33_register_name, am33_2_register_name)
14603 * moxie-tdep.c (moxie_register_names): Constify.
14604 * nat/linux-osdata.c (osdata_type): Constify fields.
14605 * nto-tdep.c (nto_parse_redirection): Constify.
14606 * objc-lang.c (lookup_struct_typedef, lookup_objc_class)
14607 (lookup_child_selector): Constify.
14608 (objc_methcall::name): Constify.
14609 * objc-lang.h (lookup_objc_class, lookup_child_selector)
14610 (lookup_struct_typedef): Constify.
14611 * objfiles.c (pc_in_section): Constify.
14612 * objfiles.h (pc_in_section): Constify.
14613 * p-exp.y (struct token::oper): Constify.
14614 (yyerror): Constify.
14615 * p-lang.h (pascal_yyerror): Constify.
14616 * parser-defs.h (op_name_standard): Constify.
14617 (op_print::string): Constify.
14618 (exp_descriptor::op_name): Constify.
14619 * printcmd.c (print_address_symbolic): Constify.
14620 * psymtab.c (print_partial_symbols): Constify.
14621 * python/py-breakpoint.c (stop_func): Constify.
14622 (bppy_get_expression): Constify.
14623 * python/py-cmd.c (cmdpy_completer::name): Constify.
14624 (cmdpy_function): Constify.
14625 * python/py-event.c (evpy_add_attribute)
14626 (gdbpy_initialize_event_generic): Constify.
14627 * python/py-event.h (evpy_add_attribute)
14628 (gdbpy_initialize_event_generic): Constify.
14629 * python/py-evts.c (add_new_registry): Constify.
14630 * python/py-finishbreakpoint.c (outofscope_func): Constify.
14631 * python/py-framefilter.c (get_py_iter_from_func): Constify.
14632 * python/py-inferior.c (get_buffer): Add cast.
14633 * python/py-param.c (parm_constant::name): Constify.
14634 * python/py-unwind.c (fprint_frame_id): Constify.
14635 * python/python.c (gdbpy_parameter_value): Constify.
14636 * remote-fileio.c (remote_fio_func_map): Make 'name' const.
14637 * remote.c (memory_packet_config::name): Constify.
14638 (show_packet_config_cmd, remote_write_bytes)
14639 (remote_buffer_add_string):
14640 * reverse.c (exec_reverse_once): Constify.
14641 * rs6000-tdep.c (variant::name, variant::description): Constify.
14642 * rust-exp.y (rustyyerror): Constify.
14643 * rust-lang.c (rust_op_name): Constify.
14644 * rust-lang.h (rustyyerror): Constify.
14645 * serial.h (serial_ops::name): Constify.
14646 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
14647 (sh_sh3e_register_name, sh_sh2e_register_name)
14648 (sh_sh2a_register_name, sh_sh2a_nofpu_register_name)
14649 (sh_sh_dsp_register_name, sh_sh3_dsp_register_name)
14650 (sh_sh4_register_name, sh_sh4_nofpu_register_name)
14651 (sh_sh4al_dsp_register_name): Constify.
14652 * sh64-tdep.c (sh64_register_name): Constify.
14653 * solib-darwin.c (lookup_symbol_from_bfd): Constify.
14654 * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify.
14655 * stabsread.c (patch_block_stabs, read_type_number)
14656 (ref_map::stabs, ref_add, process_reference)
14657 (symbol_reference_defined, define_symbol, define_symbol)
14658 (error_type, read_type, read_member_functions, read_cpp_abbrev)
14659 (read_one_struct_field, read_struct_fields, read_baseclasses)
14660 (read_tilde_fields, read_struct_type, read_array_type)
14661 (read_enum_type, read_sun_builtin_type, read_sun_floating_type)
14662 (read_huge_number, read_range_type, read_args, common_block_start)
14663 (find_name_end): Constify.
14664 * stabsread.h (common_block_start, define_symbol)
14665 (process_one_symbol, symbol_reference_defined, ref_add):
14666 * symfile.c (get_section_index, add_symbol_file_command):
14667 * symfile.h (get_section_index): Constify.
14668 * target-descriptions.c (tdesc_type::name): Constify.
14669 (tdesc_free_type): Add cast.
14670 * target.c (find_default_run_target):
14671 (add_deprecated_target_alias, find_default_run_target)
14672 (target_announce_detach): Constify.
14673 (do_option): Constify.
14674 * target.h (add_deprecated_target_alias): Constify.
14675 * thread.c (print_thread_info_1): Constify.
14676 * top.c (deprecated_readline_begin_hook, command_line_input):
14678 (init_main): Add casts.
14679 * top.h (handle_line_of_input): Constify.
14680 * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify.
14681 * tracepoint.c (tvariables_info_1, trace_status_mi): Constify.
14682 (tfind_command): Rename to ...
14683 (tfind_command_1): ... this and constify.
14684 (tfind_command): New function.
14685 (tfind_end_command, tfind_start_command): Adjust.
14686 (encode_source_string): Constify.
14687 * tracepoint.h (encode_source_string): Constify.
14688 * tui/tui-data.c (tui_partial_win_by_name): Constify.
14689 * tui/tui-data.h (tui_partial_win_by_name): Constify.
14690 * tui/tui-source.c (tui_set_source_content_nil): Constify.
14691 * tui/tui-source.h (tui_set_source_content_nil): Constify.
14692 * tui/tui-win.c (parse_scrolling_args): Constify.
14693 * tui/tui-windata.c (tui_erase_data_content): Constify.
14694 * tui/tui-windata.h (tui_erase_data_content): Constify.
14695 * tui/tui-winsource.c (tui_erase_source_content): Constify.
14696 * tui/tui.c (tui_enable): Add cast.
14697 * utils.c (defaulted_query): Constify.
14698 (init_page_info): Add cast.
14699 (puts_debug, subset_compare): Constify.
14700 * utils.h (subset_compare): Constify.
14701 * varobj.c (varobj_format_string): Constify.
14702 * varobj.h (varobj_format_string): Constify.
14703 * vax-tdep.c (vax_register_name): Constify.
14704 * windows-nat.c (windows_detach): Constify.
14705 * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify.
14706 * xml-support.c (gdb_xml_end_element): Constify.
14707 * xml-tdesc.c (tdesc_start_reg): Constify.
14708 * xstormy16-tdep.c (xstormy16_register_name): Constify.
14709 * xtensa-tdep.c (xtensa_find_register_by_name): Constify.
14710 * xtensa-tdep.h (xtensa_register_t::name): Constify.
14712 2017-04-05 Pedro Alves <palves@redhat.com>
14714 * proc-api.c (struct trans): Constify.
14715 (procfs_note): Constify.
14716 * proc-events.c (struct trans, syscall_table):
14717 * proc-flags.c (struct trans): Constify.
14718 * proc-utils.h (procfs_note): Constify.
14719 * proc-why.c (struct trans): Constify.
14720 * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error)
14721 (procfs_detach): Constify.
14722 * sol-thread.c (struct string_map): Constify.
14723 (td_err_string, td_state_string): Constify.
14725 2017-04-05 Pedro Alves <palves@redhat.com>
14727 * proc-api.c (procfs_filename): Don't initialize
14729 (prepare_to_trace): Assume procfs_filename is non-NULL.
14730 (_initialize_proc_api): Give procfs_filename a default value here.
14732 2017-04-05 Pedro Alves <palves@redhat.com>
14734 * break-catch-throw.c (handle_gnu_v3_exceptions): Constify
14735 'cond_string' parameter.
14736 (extract_exception_regexp): Constify 'string' parameter.
14737 (catch_exception_command_1): Constify.
14738 * breakpoint.c (init_catchpoint)
14739 (create_fork_vfork_event_catchpoint): Constify 'cond_string'
14741 (ep_parse_optional_if_clause, catch_fork_command_1)
14742 (catch_exec_command_1): Constify.
14743 * breakpoint.h (init_catchpoint): Constify 'cond_string'
14745 (ep_parse_optional_if_clause): Constify.
14746 * cli/cli-utils.c (remove_trailing_whitespace)
14747 (check_for_argument): Constify.
14748 * cli/cli-utils.h (remove_trailing_whitespace): Constify and add
14749 non-const overload.
14750 (check_for_argument): Likewise.
14752 2017-04-05 Pedro Alves <palves@redhat.com>
14754 * event-top.c (command_line_handler): Add cast to execute_command
14756 * record-btrace.c (cmd_record_btrace_bts_start)
14757 (cmd_record_btrace_pt_start, cmd_record_btrace_start)
14758 (cmd_record_btrace_start): Add cast to execute_command call.
14759 * record-full.c (record_full_goto_insn):
14760 * record.c (record_start, record_stop): Add cast to
14761 execute_command_to_string calls.
14762 (cmd_record_start): Add cast to execute_command calls.
14764 2017-04-05 Pedro Alves <palves@redhat.com>
14766 * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New
14767 static inline function.
14768 * python/py-arch.c (archpy_disassemble): Constify 'keywords'
14769 array and use gdb_PyArg_ParseTupleAndKeywords.
14770 * python/py-cmd.c (cmdpy_init): Likewise.
14771 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
14772 * python/py-inferior.c (infpy_read_memory, infpy_write_memory)
14773 (infpy_search_memory): Likewise.
14774 * python/py-objfile.c (objfpy_add_separate_debug_file)
14775 (gdbpy_lookup_objfile): Likewise.
14776 * python/py-symbol.c (gdbpy_lookup_symbol)
14777 (gdbpy_lookup_global_symbol): Likewise.
14778 * python/py-type.c (gdbpy_lookup_type): Likewise.
14779 * python/py-value.c (valpy_lazy_string, valpy_string): Likewise.
14780 * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush):
14783 2017-04-05 Pedro Alves <palves@redhat.com>
14785 * python/python-internal.h (gdb_PyGetSetDef): New type.
14786 * python/py-block.c (block_object_getset)
14787 (breakpoint_object_getset): Now a gdb_PyGetSetDef array.
14788 * python/py-event.c (event_object_getset)
14789 (finish_breakpoint_object_getset): Likewise.
14790 * python/py-inferior.c (inferior_object_getset): Likewise.
14791 * python/py-infthread.c (thread_object_getset): Likewise.
14792 * python/py-lazy-string.c (lazy_string_object_getset): Likewise.
14793 * python/py-linetable.c (linetable_entry_object_getset): Likewise.
14794 * python/py-objfile.c (objfile_getset): Likewise.
14795 * python/py-progspace.c (pspace_getset): Likewise.
14796 * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset):
14798 * python/py-record.c (recpy_record_getset): Likewise.
14799 * python/py-symbol.c (symbol_object_getset): Likewise.
14800 * python/py-symtab.c (symtab_object_getset, sal_object_getset):
14802 * python/py-type.c (type_object_getset, field_object_getset):
14804 * python/py-value.c (value_object_getset): Likewise.
14806 2017-04-05 Pedro Alves <palves@redhat.com>
14808 * python/python-internal.h (gdb_PyObject_CallMethod)
14809 (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath):
14811 (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException)
14812 (PySys_GetObject, PySys_SetPath): New macros.
14814 2017-04-05 Pedro Alves <palves@redhat.com>
14816 * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of
14817 info_osdata_command.
14818 * osdata.c (info_osdata_command): Rename to ...
14819 (info_osdata): ... this. Constify 'type' parameter, and remove
14820 the 'from_tty' parameter. Accept NULL TYPE.
14821 (info_osdata_command): New function.
14822 * osdata.h (info_osdata_command): Remove declaration.
14823 (info_osdata): New declaration.
14825 2017-04-05 Pedro Alves <palves@redhat.com>
14827 * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert)
14828 (mi_cmd_dprintf_insert, mi_cmd_break_passcount)
14829 (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command'
14831 * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception)
14832 (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter.
14833 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command'
14835 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path)
14836 (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show)
14837 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
14838 (mi_cmd_file_list_exec_source_files)
14839 (mi_cmd_file_list_shared_libraries): Constify 'command' parameter.
14840 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
14841 (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command'
14843 * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters)
14844 (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth)
14845 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
14846 (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame)
14847 (mi_cmd_stack_info_frame): Constify 'command' parameter.
14848 * mi/mi-cmd-target.c (mi_cmd_target_file_get)
14849 (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify
14850 'command' parameter.
14851 * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete)
14852 (mi_cmd_var_set_format, mi_cmd_var_set_visualizer)
14853 (mi_cmd_var_set_frozen, mi_cmd_var_show_format)
14854 (mi_cmd_var_info_num_children, mi_cmd_var_list_children)
14855 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
14856 (mi_cmd_var_info_expression, mi_cmd_var_show_attributes)
14857 (mi_cmd_var_evaluate_expression, mi_cmd_var_assign)
14858 (mi_cmd_var_update, mi_cmd_enable_pretty_printing)
14859 (mi_cmd_var_set_update_range): Constify 'command' parameter.
14860 * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter.
14861 * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command'
14863 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next)
14864 (mi_cmd_exec_next_instruction, mi_cmd_exec_step)
14865 (mi_cmd_exec_step_instruction, mi_cmd_exec_finish)
14866 (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue)
14867 (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach)
14868 (mi_cmd_target_flash_erase, mi_cmd_thread_select)
14869 (mi_cmd_thread_list_ids, mi_cmd_thread_info)
14870 (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names)
14871 (mi_cmd_data_list_changed_registers)
14872 (mi_cmd_data_write_register_values)
14873 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
14874 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory)
14875 (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings)
14876 (mi_cmd_list_features, mi_cmd_list_target_features)
14877 (mi_cmd_add_inferior, mi_cmd_remove_inferior)
14878 (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables)
14879 (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start)
14880 (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info)
14881 (mi_cmd_trace_frame_collected): Constify 'command'
14883 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify
14884 'command' parameter.
14886 2017-04-05 Pedro Alves <palves@redhat.com>
14888 * ada-lang.c (ada_completer_word_break_characters): Now a const
14890 (ada_get_gdb_completer_word_break_characters): Constify.
14891 * completer.c (gdb_completer_command_word_break_characters)
14892 (gdb_completer_file_name_break_characters)
14893 (gdb_completer_quote_characters): Now const arrays.
14894 (get_gdb_completer_quote_characters): Constify.
14895 (set_rl_completer_word_break_characters): New function.
14896 (set_gdb_completion_word_break_characters)
14897 (complete_line_internal): Use it.
14898 * completer.h (get_gdb_completer_quote_characters): Constify.
14899 (set_rl_completer_word_break_characters): Declare.
14900 * f-lang.c (f_word_break_characters): Constify.
14901 * language.c (default_word_break_characters): Constify.
14902 * language.h (language_defn::la_word_break_characters): Constify.
14903 (default_word_break_characters): Constify.
14904 * top.c (init_main): Use set_rl_completer_word_break_characters.
14906 2017-04-05 Pedro Alves <palves@redhat.com>
14908 * aix-thread.c (aix_thread_pid_to_str)
14909 (aix_thread_extra_thread_info): Constify.
14910 * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
14911 * bsd-uthread.c (bsd_uthread_extra_thread_info)
14912 (bsd_uthread_pid_to_str): Constify.
14913 * corelow.c (core_pid_to_str): Constify.
14914 * darwin-nat.c (darwin_pid_to_str): Constify.
14915 * fbsd-nat.c (fbsd_pid_to_str): Constify.
14916 * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
14918 * gnu-nat.c (gnu_pid_to_str): Constify.
14919 * go32-nat.c (go32_pid_to_str): Constify.
14920 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
14921 * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
14922 * inferior.c (inferior_pid_to_str): Constify.
14923 * linux-nat.c (linux_nat_pid_to_str): Constify.
14924 * linux-tdep.c (linux_core_pid_to_str): Constify.
14925 * linux-thread-db.c (thread_db_pid_to_str)
14926 (thread_db_extra_thread_info): Constify.
14927 * nto-tdep.c (nto_extra_thread_info): Constify.
14928 * nto-tdep.h (nto_extra_thread_info): Constify.
14929 * obsd-nat.c (obsd_pid_to_str): Constify.
14930 * procfs.c (procfs_pid_to_str): Constify.
14931 * ravenscar-thread.c (ravenscar_extra_thread_info)
14932 (ravenscar_pid_to_str): Constify.
14933 * remote-sim.c (gdbsim_pid_to_str): Constify.
14934 * remote.c (remote_threads_extra_info, remote_pid_to_str):
14936 * sol-thread.c (solaris_pid_to_str): Constify.
14937 * sol2-tdep.c (sol2_core_pid_to_str): Constify.
14938 * sol2-tdep.h (sol2_core_pid_to_str): Constify.
14939 * target.c (default_pid_to_str, target_pid_to_str)
14940 (normal_pid_to_str, default_pid_to_str): Constify.
14941 * target.h (target_ops::to_pid_to_str)
14942 (target_ops::to_extra_thread_info): Constify.
14943 (target_pid_to_str, normal_pid_to_str): Constify.
14944 * windows-nat.c (windows_pid_to_str): Constify.
14945 * gdbarch.sh (core_pid_to_str): Constify.
14946 * target-delegates.c: Regenerate.
14947 * gdbarch.h, gdbarch.c: Regenerate.
14949 2017-04-05 Pedro Alves <palves@redhat.com>
14951 * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
14952 the memory of the temporary warning_pre_print override.
14953 * utils.c (warning_pre_print): Constify.
14954 * utils.h (warning_pre_print): Constify.
14956 2017-04-05 Pedro Alves <palves@redhat.com>
14958 * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
14959 (shell_command): New function.
14960 (make_command): Use std::string.
14961 (init_cli_cmds): Register shell_command instead of shell_escape.
14963 2017-04-05 Pedro Alves <palves@redhat.com>
14965 * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
14966 * tracepoint.c (default_collect): Don't initialize.
14968 2017-04-05 Pedro Alves <palves@redhat.com>
14970 * macroexp.c (macro_buffer::shared): Now a bool.
14971 (init_buffer): Update.
14972 (init_shared_buffer): Constify 'addr' parameter.
14973 (substitute_args, expand, macro_expand, macro_expand_next): Remove
14976 2017-04-05 Pedro Alves <palves@redhat.com>
14978 * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
14979 * disasm.c (set_disassembler_options): Constify local.
14980 * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
14982 2017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
14985 * tracefile.c (tsave_command): Fix argument parsing for '-r'
14988 2017-04-05 Yao Qi <yao.qi@linaro.org>
14990 * frame.c (frame_unwind_register_unsigned): Call
14991 frame_unwind_register_value.
14993 2017-04-05 Yao Qi <yao.qi@linaro.org>
14995 * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
14996 Use gdb_test_multiple, and don't match anchor.
14998 2017-04-05 Pedro Alves <palves@redhat.com>
15000 * MAINTAINERS (Global Maintainers): Add Simon Marchi.
15001 (Write After Approval): Remove Simon Marchi.
15003 2017-04-05 Pedro Alves <palves@redhat.com>
15005 * common/gdb_optional.h (optional::optional): Make constexpr and
15006 initialize m_dummy.
15008 2017-04-04 John Baldwin <jhb@FreeBSD.org>
15010 * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
15011 (amd64fbsd_jmp_buf_reg_offset): Remove.
15012 (amd64fbsd_supply_uthread): Remove function.
15013 (amd64fbsd_collect_uthread): Remove function.
15014 (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
15015 * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
15016 (x86_64-*-freebsd*): Remove bsd-uthread.o.
15017 (fbsd-nat.c): Update comment.
15018 * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
15019 (i386fbsd_jmp_buf_reg_offset): Remove.
15020 (i386fbsd_supply_uthread): Remove function.
15021 (i386fbsd_collect_uthread): Remove function.
15022 (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
15024 2017-04-04 John Baldwin <jhb@FreeBSD.org>
15026 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
15027 (ALLDEPFILES): Remove alpha-fbsd-tdep.c
15028 * NEWS: Mention that support for FreeBSD/alpha was removed.
15029 * alpha-fbsd-tdep.c: Delete file.
15030 * config/alpha/fbsd.mh: Delete file.
15031 * configure.host: Delete alpha*-*-freebsd* and
15032 alpha*-*-kfreebsd*-gnu.
15033 * configure.tgt: Delete alpha*-*-freebsd* and
15034 alpha*-*-kfreebsd*-gnu.
15036 2017-04-04 John Baldwin <jhb@FreeBSD.org>
15038 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
15039 amd64bsd_store_inferior_registers): Use ptid from regcache.
15041 2017-04-04 Pedro Alves <palves@redhat.com>
15043 * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
15044 data fields, make them private and add "m_" prefixes.
15045 (lnp_state_machine::lnp_state_machine): New ctor.
15046 (record_line, check_line_address, handle_set_discriminator)
15047 (handle_set_address, handle_advance_pc, handle_special_opcode)
15048 (handle_advance_line, handle_set_file, handle_negate_stmt)
15049 (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
15050 (end_sequence, advance_line): New methods.
15051 (m_gdbarch, m_record_lines_p): New fields.
15052 (lnp_reader_state): Delete.
15053 (dwarf_record_line): Rename to ...
15054 (lnp_state_machine::record_line): ... adjust.
15055 (init_lnp_state_machine): Delete.
15056 (lnp_state_machine::lnp_state_machine): New.
15057 (check_line_address): Rename to ...
15058 (lnp_state_machine::check_line_address): This.
15059 (dwarf_decode_lines_1): Remove reference to "reader_state".
15060 Adjust lnp_state_machine having a non-default ctor. Use bool.
15061 State machine internal state manipulation moved to
15062 lnp_state_machine methods.
15064 2017-04-04 Pedro Alves <palves@redhat.com>
15066 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
15067 unittests/offset-type-selftests.c.
15068 (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
15069 * common/offset-type.h: New file.
15070 * common/preprocessor.h: New file.
15071 * common/traits.h: New file.
15072 * common/valid-expr.h: New file.
15073 * dwarf2expr.c: Include "common/underlying.h". Adjust to use
15074 sect_offset and cu_offset strong typedefs throughout.
15075 * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
15076 typedefs throughout.
15077 * dwarf2loc.c: Include "common/underlying.h". Adjust to use
15078 sect_offset and cu_offset strong typedefs throughout.
15079 * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
15080 typedefs throughout.
15081 * gdbtypes.h: Include "common/offset-type.h".
15082 (cu_offset): Now an offset type (strong typedef) instead of a
15084 (sect_offset): Likewise.
15085 (union call_site_parameter_u): Rename "param_offset" field to
15087 * unittests/offset-type-selftests.c: New file.
15089 2017-04-04 Pedro Alves <palves@redhat.com>
15091 * common/underlying.h: New file.
15092 * dwarf2read.c: Include "common/gdb_optional.h" and
15093 "common/underlying.h".
15094 (dir_index, file_name_index): New types.
15095 (file_entry): Use them.
15096 (file_entry::include): Use to_underlying.
15097 (line_header::add_file_name): Use dir_index.
15098 (read_formatted_entries): Use gdb::optional. Read form before
15099 writting to file_entry.
15100 (dwarf_decode_line_header): Use dir_index.
15101 (lnp_state_machine::current_file): Use to_underlying.
15102 (lnp_state_machine::file): Change type to file_name_index.
15103 (dwarf_record_line): Use to_underlying.
15104 (init_lnp_state_machine): Use file_name_index.
15105 (dwarf_decode_lines_1): Use dir_index and file_name_index.
15107 2017-04-04 Pedro Alves <palves@redhat.com>
15109 * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
15110 operator bool, has_value and get methods.
15112 2017-04-04 Pedro Alves <palves@redhat.com>
15114 * dwarf2read.c (struct file_entry): Add ctors, and initialize all
15116 (line_header): Initialize all data fields. Change type of
15117 standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
15118 Change type of include_dirs to std::vector<const char *>. Remove
15119 num_include_dirs, include_dirs_size. Change type of file_names to
15120 std::vector<file_entry>. Remove num_file_names, file_names_size.
15121 (line_header::line_header): New.
15122 (line_header::add_include_dir, line_header::add_file_name): New
15124 (line_header::include_dir_at): Remove NULL check.
15125 (line_header::file_name_at): Add const overload.
15126 (line_header_up): New unique_ptr typedef.
15127 (dw2_get_file_names_reader): Use line_header_up. Adjust to use
15128 std::vector. Remove free_line_header call.
15129 (dwarf2_build_include_psymtabs): Use line_header_up. Remove
15130 free_line_header call.
15131 (free_cu_line_header): Delete.
15132 (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
15133 (setup_type_unit_groups): Use line_header_up instead of cleanups.
15134 Adjust to use std::vector.
15135 (free_line_header): Delete.
15136 (free_line_header_voidp): Use delete.
15137 (add_include_dir): Replace with ...
15138 (line_header::add_include_dir): ... this method. Use std::vector.
15139 (add_file_name): Replace with ...
15140 (line_header::add_file_name): ... this method. Use std::vector.
15141 (add_include_dir_stub): Delete.
15142 (read_formatted_entries): Remove memset.
15143 (dwarf_decode_line_header): Return a line_header_up instead of a
15144 raw pointer. Remove cleanup handling. Pass lambdas to
15145 read_formatted_entries. Adjust to use line_header methods.
15146 (dwarf_decode_lines_1): Adjust to use line_header methods.
15147 (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
15150 2017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
15152 * remote.c (set_general_thread, set_continue_thread): Use ptid_t
15153 instead of struct ptid.
15155 2017-05-04 Alan Hayward <alan.hayward@arm.com>
15157 * frame.c (get_frame_register_bytes): Unwind using value.
15158 (put_frame_register_bytes): Likewise.
15160 2017-03-30 Iain Buclaw <ibuclaw@gdcproject.org>
15162 * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
15165 2017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
15167 * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
15169 2017-03-29 Yao Qi <yao.qi@linaro.org>
15171 * gdbthread.h (struct thread_info): Declare constructor and
15172 destructor. Add some in-class member initializers.
15173 * thread.c (free_thread): Remove.
15174 (init_thread_list): Call delete instead of free_thread.
15175 (new_thread): Call thread_info constructor.
15176 (thread_info::thread_info): New function.
15177 (thread_info::~thread_info): New function.
15178 (delete_thread_1): Call delete instead of free_thread.
15179 (make_cleanup_restore_current_thread): Move tp and frame to
15182 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
15184 * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
15185 (arc_skip_prologue): Likewise.
15186 (arc_make_frame_cache): Likewise.
15187 (arc_pv_get_operand): New function.
15188 (arc_is_in_prologue): Likewise.
15189 (arc_analyze_prologue): Likewise.
15190 (arc_print_frame_cache): Likewise.
15191 (MAX_PROLOGUE_LENGTH): New constant.
15193 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
15195 * configure.tgt: Add arc-insn.o.
15196 * arc-tdep.c (arc_delayed_print_insn): Make non-static.
15197 (dump_arc_instruction_command): New function.
15198 (arc_fprintf_disasm): Likewise.
15199 (arc_disassemble_info): Likewise.
15200 (arc_insn_get_operand_value): Likewise.
15201 (arc_insn_get_operand_value_signed): Likewise.
15202 (arc_insn_get_memory_base_reg): Likewise.
15203 (arc_insn_get_memory_offset): Likewise.
15204 (arc_insn_get_branch_target): Likewise.
15205 (arc_insn_dump): Likewise.
15206 (arc_insn_get_linear_next_pc): Likewise.
15207 * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
15208 (arc_disassemble_info): Likewise.
15209 (arc_insn_get_branch_target): Likewise.
15210 (arc_insn_get_linear_next_pc): Likewise.
15211 * NEWS: Mention new "maint print arc arc-instruction".
15213 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
15215 * arc-tdep (maintenance_print_arc_list): New variable.
15216 (maintenance_print_arc_command): New function.
15218 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
15220 * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
15221 Add "limm" and "reserved".
15222 (arc_cannot_fetch_register, arc_cannot_store_register): Add
15223 ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
15224 * arc-tdep.h (arc_regnum): Likewise.
15226 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
15228 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
15229 for THREADPTR register.
15230 (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
15232 * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
15233 (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
15234 * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
15236 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
15238 * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
15239 registers above gdbarch_num_regs (gdbarch) as privileged in
15242 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
15244 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
15245 for a single specified register or for all registers in
15246 a0_base..a0_base + C0_NREGS range.
15247 (supply_gregset_reg): Call regcache_raw_supply for a single
15248 specified register or for all registers in a0_base..a0_base +
15251 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
15253 * arch/xtensa.h (C0_NREGS): Add definition.
15254 * xtensa-tdep.c (C0_NREGS): Remove definition.
15256 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
15258 * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
15259 Drop xtensa_default_isa initialization.
15260 (xtensa_gdbarch_init): Initialize xtensa_default_isa.
15262 2017-03-27 Pedro Alves <palves@redhat.com>
15264 * dwarf2read.c (file_entry) <dir_index>: Add comment.
15265 (file_entry::include_dir): New method.
15266 (line_header::include_dir_at, line_header::file_name_at): New
15268 (setup_type_unit_groups, setup_type_unit_groups)
15269 (psymtab_include_file_name): Simplify using the new methods.
15270 (lnp_state_machine) <the_line_header>: New field.
15271 <file>: Add comment.
15272 (lnp_state_machine::current_file): New method.
15273 (dwarf_record_line): Simplify using the new methods.
15274 (init_lnp_state_machine): Initialize the "the_line_header" field.
15275 (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
15276 Simplify using the new methods.
15278 2017-03-27 Pedro Alves <palves@redhat.com>
15280 * cp-name-parser.y (make_empty): Delete.
15281 (demangler_special, nested_name, ptr_operator, array_indicator)
15282 (direct_declarator, declarator_1): Use fill_comp instead of
15285 2017-03-27 Pedro Alves <palves@redhat.com>
15287 * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
15288 to ATTRIBUTE_PRINTF.
15289 * solib-target.c (library_list_start_list): Print "string" not
15291 * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
15292 gdb_xml_error call.
15294 2017-03-27 Pedro Alves <palves@redhat.com>
15296 * dwarf2read.c (struct file_and_directory): New.
15297 (dwarf2_get_dwz_file): Adjust to use std::string.
15298 (dw2_get_file_names_reader): Adjust to use file_and_directory.
15299 (find_file_and_directory): Adjust to return a file_and_directory
15301 (read_file_scope): Adjust to use file_and_directory. Remove
15302 make_cleanup/do_cleanups calls.
15303 (open_and_init_dwp_file): Adjust to use std::string. Remove
15304 make_cleanup/do_cleanups calls.
15305 * python/python.c (do_start_initialization): Adjust to ldirname
15306 returning a std::string.
15307 * utils.c (ldirname): Now returns a std::string.
15308 * utils.h (ldirname): Change return type to std::string.
15309 * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
15310 returning a std::string.
15311 * xml-tdesc.c (file_read_description_xml): Likewise.
15313 2017-03-24 Alan Hayward <alan.hayward@arm.com>
15315 * regcache.c (regcache_debug_print_register): New function.
15316 * regcache.h (regcache_debug_print_register): New declaration.
15317 * target.c (debug_print_register): Remove.
15318 (target_fetch_registers): Call regcache_debug_print_register.
15319 (target_store_registers): Likewise.
15321 2017-03-24 Pádraig Brady <pbrady@fb.com>
15323 * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
15324 reference beyond the 'lh->include_dirs' array before accessing to
15326 (psymtab_include_file_name): Likewise.
15327 (dwarf_decode_lines_1): Likewise.
15328 (dwarf_decode_lines): Likewise.
15329 (file_file_name): Likewise.
15331 2017-03-23 Simon Marchi <simon.marchi@ericsson.com>
15333 * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
15335 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
15336 ps_lsetfpregs): Likewise.
15337 * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
15338 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
15339 ps_lsetfpregs): Likewise.
15340 * target.c (target_fetch_registers, target_store_registers):
15343 2017-03-23 Alan Hayward <alan.hayward@arm.com>
15345 * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
15347 2017-03-23 Yao Qi <yao.qi@linaro.org>
15349 * aarch64-tdep.c (aarch64_process_record_test): Declare.
15350 (_initialize_aarch64_tdep): Register it.
15351 (aarch64_record_load_store): Handle PRFM instruction.
15352 (aarch64_process_record_test): New function.
15354 2017-03-23 Yao Qi <yao.qi@linaro.org>
15356 * aarch64-tdep.c (aarch64_record_load_store): Fix code
15359 2017-03-23 Yao Qi <yao.qi@linaro.org>
15361 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
15363 2017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
15365 python/python.c (do_start_initialization): Fix memory leak.
15367 2017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
15369 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
15370 using get_ptrace_pid.
15371 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
15373 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
15374 inferior_ptid instead of pid.
15376 2017-03-22 Yao Qi <yao.qi@linaro.org>
15378 * aarch64-tdep.c: Wrap locally used classes in anonymous
15380 * arm-tdep.c: Likewise.
15381 * linespec.c: Likewise.
15382 * ui-out.c: Likewise.
15384 2017-03-22 Jonah Graham <jonah@kichwacoders.com>
15387 * python/lib/gdb/printer/bound_registers.py: Import sys.
15389 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
15391 * windows-nat.c (do_windows_fetch_inferior_registers): Add
15392 windows_thread_info parameter and use it instead of
15394 (windows_fetch_inferior_registers): Don't set current_thread,
15395 pass the thread to do_windows_fetch_inferior_registers. Use
15396 ptid from regcache instead of inferior_ptid.
15397 (do_windows_store_inferior_registers): Add windows_thread_info
15398 parameter and use it instead of current_thread.
15399 (windows_store_inferior_registers): Don't set current_thread,
15400 pass the thread to do_windows_store_inferior_registers. Use
15401 ptid from regcache instead of inferior_ptid.
15403 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
15405 * ser-mingw.c (ser_windows_raw): Remove reference to
15406 struct serial::current_timeout.
15408 2017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
15411 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
15412 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
15413 (sparc64_fsr_type): Fix %fsr decoding.
15415 2017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
15417 * python/py-record-btrace.c (btpy_insn_data): Change return type
15420 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
15422 * spu-linux-nat.c (spu_fetch_inferior_registers,
15423 spu_store_inferior_registers): Use ptid from regcache, set and
15424 restore inferior_ptid.
15425 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
15428 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
15430 * i386-linux-nat.c (fetch_register, store_register,
15431 i386_linux_fetch_inferior_registers,
15432 i386_linux_store_inferior_registers): Use ptid from regcache.
15433 * ia64-linux-nat.c (ia64_linux_fetch_register,
15434 ia64_linux_store_register): Likewise.
15435 * inf-ptrace.c (inf_ptrace_fetch_register,
15436 inf_ptrace_store_register): Likewise.
15437 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
15438 m32r_linux_store_inferior_registers): Likewise.
15439 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
15440 m68kbsd_store_inferior_registers): Likewise.
15441 * m68k-linux-nat.c (fetch_register, store_register,
15442 m68k_linux_fetch_inferior_registers,
15443 m68k_linux_store_inferior_registers): Likewise.
15444 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
15445 m88kbsd_store_inferior_registers): Likewise.
15446 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
15447 mips_fbsd_store_inferior_registers): Likewise.
15448 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
15449 mips64_linux_regsets_store_registers): Likewise.
15450 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
15451 mipsnbsd_store_inferior_registers): Likewise.
15452 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
15453 mips64obsd_store_inferior_registers): Likewise.
15454 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
15456 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
15457 ppcfbsd_store_inferior_registers): Likewise.
15458 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
15459 ppc_linux_store_inferior_registers): Likewise.
15460 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
15461 ppcnbsd_store_inferior_registers): Likewise.
15462 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
15463 ppcobsd_store_registers): Likewise.
15464 * procfs.c (procfs_fetch_registers, procfs_store_registers):
15466 * ravenscar-thread.c (ravenscar_fetch_registers,
15467 ravenscar_store_registers, ravenscar_prepare_to_store):
15469 * record-btrace.c (record_btrace_fetch_registers,
15470 record_btrace_store_registers, record_btrace_prepare_to_store):
15472 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
15473 Lookup inferior using ptid from regcache, instead of
15475 * remote.c (remote_fetch_registers, remote_store_registers): Use
15476 ptid from regcache.
15477 * rs6000-nat.c (fetch_register, store_register): Likewise.
15478 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
15479 s390_linux_store_inferior_registers): Likewise.
15480 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
15481 shnbsd_store_inferior_registers): Likewise.
15482 * sol-thread.c (sol_thread_fetch_registers,
15483 sol_thread_store_registers): Likewise.
15484 * sparc-nat.c (sparc_fetch_inferior_registers,
15485 sparc_store_inferior_registers): Likewise.
15486 * tilegx-linux-nat.c (fetch_inferior_registers,
15487 store_inferior_registers): Likewise.
15488 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
15489 vaxbsd_store_inferior_registers): Likewise.
15490 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
15491 store_xtregs): Likewise.
15493 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15496 * NEWS: Mention support for rvalue references in GDB and python.
15497 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
15498 supports both lvalue and rvalue references.
15500 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15503 * gdbtypes.c (rank_one_type): Implement overloading
15504 resolution rules regarding rvalue references.
15506 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15509 * aarch64-tdep.c (aarch64_type_align)
15510 (aarch64_extract_return_value, aarch64_store_return_value): Change
15511 lvalue reference type checks to general reference type checks.
15512 * amd64-tdep.c (amd64_classify): Likewise.
15513 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
15515 * arm-tdep.c (arm_type_align, arm_extract_return_value)
15516 (arm_store_return_value): Likewise.
15517 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
15518 * c-typeprint.c (c_print_type): Likewise.
15519 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
15520 (cplus_number_of_children, cplus_describe_child): Likewise.
15521 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
15522 * completer.c (expression_completer): Likewise.
15523 * cp-support.c (make_symbol_overload_list_adl_namespace):
15525 * darwin-nat-info.c (info_mach_region_command): Likewise.
15526 * dwarf2loc.c (entry_data_value_coerce_ref)
15527 (value_of_dwarf_reg_entry): Likewise.
15528 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
15529 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
15531 * findvar.c (extract_typed_address, store_typed_address):
15533 * gdbtypes.c (rank_one_type): Likewise.
15534 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
15535 * infcall.c (value_arg_coerce): Likewise.
15536 * language.c (pointer_type): Likewise.
15537 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
15539 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
15540 * mn10300-tdep.c (mn10300_type_align): Likewise.
15541 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
15542 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
15543 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
15545 * printcmd.c (print_formatted, x_command): Likewise.
15546 * python/py-type.c (typy_get_composite, typy_template_argument):
15548 * python/py-value.c (valpy_referenced_value)
15549 (valpy_get_dynamic_type, value_has_field): Likewise.
15550 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
15551 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
15552 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
15553 * spu-tdep.c (spu_scalar_value_p): Likewise.
15554 * symtab.c (lookup_symbol_aux): Likewise.
15555 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
15556 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
15558 * valops.c (value_cast_pointers, value_cast)
15559 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
15560 (value_struct_elt, value_struct_elt_bitpos)
15561 (value_find_oload_method_list, find_overload_match)
15562 (value_rtti_indirect_type): Likewise.
15563 * valprint.c (val_print_scalar_type_p, generic_val_print):
15565 * value.c (value_actual_type, value_as_address, unpack_long)
15566 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
15567 (coerce_ref): Likewise.
15568 * varobj.c (varobj_get_value_type): Likewise.
15570 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15573 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
15574 table of constants.
15575 * python/lib/gdb/command/explore.py: Support exploring values
15576 of rvalue reference types.
15577 * python/lib/gdb/types.py: Implement get_basic_type() for
15578 rvalue reference types.
15579 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
15581 * python/py-value.c (valpy_getitem): Add an rvalue reference
15583 (valpy_reference_value): Add new parameter "refcode".
15584 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
15585 New wrappers for valpy_reference_value().
15586 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
15587 (gdbpy_invoke_xmethod): Likewise.
15589 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15592 * dwarf2read.c (process_die, read_type_die_1): Handle the
15593 DW_TAG_rvalue_reference_type DIE.
15594 (read_tag_reference_type): Add new parameter "refcode".
15596 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15599 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
15600 (c_type_print_modifier, c_type_print_varspec_suffix)
15601 (c_type_print_base): Support printing rvalue reference types.
15602 * c-valprint.c (c_val_print, c_value_print): Support printing
15603 rvalue reference values.
15605 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15608 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
15610 * cp-support.c (replace_typedefs): Handle
15611 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
15612 * python/py-type.c (typy_lookup_type): Likewise.
15614 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15617 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
15618 * parse.c (insert_type): Change assert statement.
15619 (follow_types): Handle rvalue reference types.
15620 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
15623 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15626 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
15627 value_ref() interface.
15628 * c-valprint.c (c_value_print): Likewise.
15629 * infcall.c (value_arg_coerce): Likewise.
15630 * python/py-value.c (valpy_reference_value): Likewise.
15631 * valops.c (value_cast, value_reinterpret_cast)
15632 (value_dynamic_cast, typecmp): Likewise.
15633 (value_ref): Parameterize by kind of return value reference type.
15634 * value.h (value_ref): Add new parameter "refcode".
15636 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15639 * dwarf2read.c (read_tag_reference_type): Use
15640 lookup_lvalue_reference_type() instead of lookup_reference_type().
15641 * eval.c (evaluate_subexp_standard): Likewise.
15642 * f-exp.y: Likewise.
15643 * gdbtypes.c (make_reference_type, lookup_reference_type):
15644 Generalize with rvalue reference types.
15645 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
15646 convenience wrappers for lookup_reference_type().
15647 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
15648 reference kind parameter.
15649 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
15650 wrappers for lookup_reference_type().
15651 * guile/scm-type.c (gdbscm_type_reference): Use
15652 lookup_lvalue_reference_type() instead of lookup_reference_type().
15653 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
15654 * parse.c (follow_types): Likewise.
15655 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
15656 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
15658 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
15659 (gdbpy_invoke_xmethod): Likewise.
15660 * stabsread.c: Provide extra argument to make_reference_type()
15662 * valops.c (value_ref, value_rtti_indirect_type): Use
15663 lookup_lvalue_reference_type() instead of lookup_reference_type().
15665 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15668 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
15669 (TYPE_IS_REFERENCE): New macro.
15670 (struct type): Add rvalue_reference_type field.
15671 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
15673 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
15675 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
15676 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
15677 New function definition.
15678 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
15679 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
15680 New function declaration.
15681 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
15682 * mi/mi-interp.h: New file.
15683 * solib.c (info_sharedlibrary_command): Replace for loop with
15685 * solib.h (update_solib_list): New function declaration.
15686 (so_list_head): Move macro.
15687 * solist.h (ALL_SO_LIBS): New macro.
15689 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
15691 * infcmd.c (post_create_inferior): Remove unused argument in
15693 * remote.c (remote_start_remote): Likewise.
15694 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
15695 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
15696 (enable_break): Likewise.
15697 * solib.c (update_solib_list): Remove unused target argument
15698 and its documentation.
15699 (solib_add): Remove unused target argument. Remove unused
15700 argument in call to update_solib_list.
15701 (info_sharedlibrary_command): Remove unused argument in call
15702 to update_solib_list.
15703 (sharedlibrary_command): Remove unused argument in call to
15705 (handle_solib_event): Likewise.
15706 (reload_shared_libraries): Likewise.
15707 * solib.h (solib_add): Remove unused target argument.
15709 2017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
15711 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
15712 (s390_displaced_step_fixup): Cover relative branches with the
15713 default fixup handling. This fixes lack of support for some
15714 relative branch instructions.
15716 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15718 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
15719 ptid from regcache.
15721 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15723 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
15724 i386_darwin_store_inferior_registers): Use ptid from regcache.
15726 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15728 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
15729 i386bsd_store_inferior_registers): Use ptid from regcache.
15731 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15733 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
15734 hppaobsd_store_registers): Use ptid from regcache.
15736 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15738 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
15739 hppanbsd_store_registers): Use ptid from regcache.
15741 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15743 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
15744 from regcache. Use get_ptrace_pid.
15746 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15748 * corelow.c (get_core_register_section): Use ptid from regcache,
15751 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15753 * bsd-uthread.c (bsd_uthread_fetch_registers,
15754 bsd_uthread_store_registers): Use ptid from regcache, set and
15755 restore inferior_ptid.
15757 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15759 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
15760 fetch_fp_regs, store_register, store_regs, store_fp_register,
15761 store_fp_regs): Use ptid from regcache.
15763 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15765 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
15766 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
15767 store_vfp_regs): Use ptid from regcache.
15769 2017-03-17 Pedro Alves <palves@redhat.com>
15772 * ser-base.c (ser_base_wait_for): Add comment.
15773 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
15775 * ser-unix.c (hardwire_raw): Remove reference to
15776 scb->current_timeout.
15777 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
15778 (hardwire_ops): Install ser_base_readchar instead of
15780 * serial.h (struct serial) <current_timeout, timeout_remaining>:
15783 2017-03-17 Jonah Graham <jonah@kichwacoders.com>
15786 * python/lib/gdb/printer/bound_registers.py: Add support for
15789 2017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
15791 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
15792 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
15793 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
15794 byte_offset to subobj_byte_offset. Fix the handling of
15795 DWARF_VALUE_STACK on big-endian targets when coming via an
15797 (dwarf2_evaluate_loc_desc): Adjust call to
15798 dwarf2_evaluate_loc_desc_full.
15799 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
15800 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
15802 2017-03-16 Yao Qi <yao.qi@linaro.org>
15804 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
15805 and REVSH instructions.
15807 2017-03-16 Yao Qi <yao.qi@linaro.org>
15809 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
15810 (arm_record_test): Declare.
15811 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
15812 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
15813 align with the manual.
15814 (thumb_record_misc): Adjust the code order to align with the
15816 (thumb2_record_decode_insn_handler): Fix instruction matching.
15817 (instruction_reader_thumb): New class.
15818 (arm_record_test): New function.
15820 2017-03-16 Yao Qi <yao.qi@linaro.org>
15822 * arm-tdep.c (abstract_memory_reader): New class.
15823 (instruction_reader): New class.
15824 (extract_arm_insn): Add argument 'reader'. Callers updated.
15825 (decode_insn): Likewise.
15827 2017-03-16 Doug Evans <dje@google.com>
15829 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
15830 member. Change type of TYPE member to SCM. All uses updated.
15831 (lsscm_make_lazy_string_smob): Add assert.
15832 (lsscm_make_lazy_string): Flag bad length values.
15833 (lsscm_elt_type): New function.
15834 (gdbscm_lazy_string_to_value): Rewrite to use
15835 lsscm_safe_lazy_string_to_value.
15836 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
15837 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
15838 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
15840 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
15841 * guile/scm-type.c (tyscm_scm_to_type): New function.
15843 2017-03-15 Doug Evans <dje@google.com>
15845 PR python/17728, python/18439, python/18779
15846 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
15847 member. Change type of TYPE member to PyObject *. All uses updated.
15848 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
15849 (gdbpy_create_lazy_string_object): Flag bad length values.
15850 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
15851 Handle typedefs in incoming type.
15852 (stpy_lazy_string_elt_type): New function.
15853 (gdbpy_extract_lazy_string): Call it.
15854 * python/py-value.c (valpy_lazy_string): Flag bad length values.
15855 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
15856 typedefs in incoming type.
15858 2017-03-16 Doug Evans <dje@google.com>
15860 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
15861 * guile/scm-type.c (tyscm_scm_to_type): New function.
15863 2017-03-16 Jiong Wang <jiong.wang@arm.com>
15865 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
15866 "ULONGEST" for "skip".
15868 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
15871 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
15872 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
15873 (inf_ptrace_peek_poke): ...here. New function. Now also loop
15874 over ptrace peek/poke until end of buffer or error.
15876 2017-03-14 Simon Marchi <simon.marchi@ericsson.com>
15878 * parse.c (length_of_subexp): Make static.
15879 * parser-defs.h (length_of_subexp): Remove.
15881 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
15883 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
15886 2017-03-14 Pedro Alves <palves@redhat.com>
15888 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
15889 (main): Use std::unique_ptr. Remove calls to
15890 cp_demangled_name_parse_free.
15892 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15894 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
15895 alphabsd_store_inferior_registers): Use regcache->ptid instead
15898 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15900 * aix-thread.c (aix_thread_fetch_registers,
15901 aix_thread_store_registers): Use regcache->ptid instead of
15904 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15906 * aarch64-linux-nat.c (fetch_gregs_from_thread,
15907 store_gregs_to_thread, fetch_fpregs_from_thread,
15908 store_fpregs_to_thread): Use regcache->ptid instead of
15911 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15913 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
15914 amd64_linux_fetch_inferior_registers): Use regcache->ptid
15915 instead of inferior_ptid.
15917 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15919 * target.c (target_fetch_registers, target_store_registers): Add
15922 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15924 * regcache.h (regcache_get_ptid): New function.
15925 * regcache.c (regcache_get_ptid): New function.
15927 2017-03-13 Mark Wielaard <mark@klomp.org>
15929 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
15931 2017-03-10 Keith Seitz <keiths@redhat.com>
15934 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
15936 2017-03-08 Pedro Alves <palves@redhat.com>
15939 * infrun.c (start_step_over, do_target_resume, resume)
15940 (restart_threads): Assert we're not resuming a thread that is
15941 meant to be stopped.
15942 (infrun_thread_stop_requested_callback): Delete.
15943 (infrun_thread_stop_requested): If the thread is internally
15944 stopped, queue a pending stop event and clear the thread's
15945 inline-frame state.
15946 (handle_stop_requested): New function.
15947 (handle_syscall_event, handle_inferior_event_1): Use
15948 handle_stop_requested.
15949 (handle_stop_requested): New function.
15950 (handle_signal_stop): Set the thread's stop_signal here instead of
15952 (finish_step_over): Clear step over info unconditionally.
15953 (handle_signal_stop): If the user had interrupted the event
15954 thread, consider the stop a random signal.
15955 (handle_signal_stop) <signal arrived while stepping over
15956 breakpoint>: Don't restart threads here.
15957 (stop_waiting): Don't clear step-over info here.
15959 2017-03-08 Pedro Alves <palves@redhat.com>
15962 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
15963 goes to argument 2, not 1.
15965 2017-03-08 Pedro Alves <palves@redhat.com>
15968 * top.c (gdb_readline_wrapper): Avoid passing NULL to
15969 display_gdb_prompt.
15970 (command_line_input): Add comment.
15972 2017-03-08 Pedro Alves <palves@redhat.com>
15975 * tui/tui-file.c (tui_file::write): New.
15976 * tui/tui-file.h (tui_file): Override "write".
15977 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
15978 factored out from ...
15979 (tui_puts): ... here.
15980 (tui_putc): Use them.
15981 (tui_write): New function.
15982 * tui/tui-io.h (tui_write): Declare.
15984 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
15986 * Makefile.in (SFILES): Replace "environ.c" with
15987 "common/environ.c".
15988 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
15989 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
15991 * common/environ.c: ... here.
15992 * environ.h: Moved to...
15993 * common/environ.h: ... here.
15995 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
15997 * gdbarch.sh (pstring_ptr): New static function.
15998 (gdbarch_disassembler_options): Use it.
15999 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
16000 not valid_disassembler_option->name.
16001 * gdbarch.c: Regenerate.
16003 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
16005 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
16007 2017-03-07 Pedro Alves <palves@redhat.com>
16009 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
16011 2017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
16013 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
16014 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
16015 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
16016 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
16018 2017-03-06 Simon Marchi <simon.marchi@ericsson.com>
16020 * xtensa-linux-nat.c (fetch_gregs): Remove const.
16022 2017-03-03 Simon Marchi <simon.marchi@ericsson.com>
16024 * remote.c (remote_add_target_side_commands): Use range-based
16027 2017-03-03 Yao Qi <yao.qi@linaro.org>
16030 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
16032 * valprint.c (common_val_print): Likewise.
16034 2017-02-28 Peter Bergner <bergner@vnet.ibm.com>
16036 * NEWS: Mention new set/show disassembler-options commands.
16037 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
16038 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
16039 (prospective_options): New static variable.
16040 (gdb_disassembler::gdb_disassembler): Initialize
16041 m_di.disassembler_options.
16042 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
16043 (get_disassembler_options): New function.
16044 (set_disassembler_options): Likewise.
16045 (set_disassembler_options_sfunc): Likewise.
16046 (show_disassembler_options_sfunc): Likewise.
16047 (disassembler_options_completer): Likewise.
16048 (_initialize_disasm): Likewise.
16049 * disasm.h (get_disassembler_options): New prototype.
16050 (set_disassembler_options): Likewise.
16051 * gdbarch.sh (gdbarch_disassembler_options): New variable.
16052 (gdbarch_verify_disassembler_options): Likewise.
16053 * gdbarch.c: Regenerate.
16054 * gdbarch.h: Likewise.
16055 * arm-tdep.c (num_disassembly_options): Delete.
16056 (set_disassembly_style): Likewise.
16057 (arm_disassembler_options): New static variable.
16058 (set_disassembly_style_sfunc): Convert short style name into long
16059 option name. Call set_disassembler_options.
16060 (show_disassembly_style_sfunc): New function.
16061 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
16062 set_gdbarch_verify_disassembler_options.
16063 (_initialize_arm_tdep): Delete regnames variable and update callers.
16064 (arm_disassembler_options): Initialize.
16065 (disasm_options): New variable.
16066 (num_disassembly_options): Rename from this...
16067 (num_disassembly_styles): ...to this. Compute by scanning through
16069 (valid_disassembly_styles): Initialize using disasm_options.
16070 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
16071 set_arm_regname_option.
16072 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
16073 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
16074 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
16075 set_gdbarch_verify_disassembler_options.
16076 * s390-tdep.c (s390_disassembler_options): New static variable.
16077 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
16078 set_gdbarch_verify_disassembler_options.
16080 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
16082 * remote.c (remote_add_target_side_condition): Remove "struct"
16083 keyword from range-based for loop.
16085 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
16087 * remote.c (remote_add_target_side_condition): Use range-based
16088 for loop. Update comment.
16090 2017-02-27 Yao Qi <yao.qi@linaro.org>
16092 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
16094 2017-02-26 Alan Hayward <alan.hayward@arm.com>
16096 * regcache.c (regcache_raw_update): New function.
16097 (regcache_raw_read): Move code to regcache_raw_update.
16098 * regcache.h (regcache_raw_update): New declaration.
16099 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
16101 2017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
16103 * dwarf2read.c (create_debug_type_hash_table): Initialize
16104 header.signature and header.type_offset_in_tu.
16106 2017-02-24 Pedro Alves <palves@redhat.com>
16108 * symtab.c (make_file_symbol_completion_list_1): Use
16109 add_symtab_completions.
16111 2017-02-24 Alan Hayward <alan.hayward@arm.com>
16113 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
16115 2017-02-24 Alan Hayward <alan.hayward@arm.com>
16117 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
16118 I386_MAX_REGISTER_SIZE.
16119 (i386_pseudo_register_write): Likewise.
16120 (i386_process_record): Likewise.
16121 * i387-tdep.c (i387_supply_xsave): Likewise.
16122 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
16123 (store_register): Likewise.
16125 2017-02-23 Pedro Alves <palves@redhat.com>
16127 * ada-lang.c: Include "common/function-view.h".
16128 (ada_iterate_over_symbols): Adjust to use function_view as
16130 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
16131 (ada_make_symbol_completion_list): Use a lambda.
16132 (ada_exc_search_name_matches): Delete.
16133 (name_matches_regex): New.
16134 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
16135 * compile/compile-c-support.c: Include "common/function-view.h".
16136 (print_one_macro): Change prototype to accept a ui_file pointer.
16137 (write_macro_definitions): Use a lambda.
16138 * dwarf2read.c: Include "common/function-view.h".
16139 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
16140 (dw2_expand_symtabs_matching): Adjust to use function_view as
16142 * language.h: Include "common/function-view.h".
16143 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
16144 function_view as callback type.
16145 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
16146 * linespec.c: Include "common/function-view.h".
16147 (collect_info::add_symbol): New method.
16148 (struct symbol_and_data_callback, iterate_inline_only, struct
16149 symbol_matcher_data, iterate_name_matcher): Delete.
16150 (iterate_over_all_matching_symtabs): Adjust to use function_view
16151 as callback type and lambdas.
16152 (iterate_over_file_blocks): Adjust to use function_view as
16154 (decode_compound_collector): Now a class with private fields.
16155 (decode_compound_collector::release_symbols): New method.
16156 (collect_one_symbol): Rename to...
16157 (decode_compound_collector::operator()): ... this and adjust.
16158 (lookup_prefix_sym): decode_compound_collector construction bits
16159 move to decode_compound_collector ctor. Pass the
16160 decode_compound_collector object directly as callback. Remove
16161 cleanups and use decode_compound_collector::release_symbols
16163 (symtab_collector): Now a class with private fields.
16164 (symtab_collector::release_symtabs): New method.
16165 (add_symtabs_to_list): Rename to...
16166 (symtab_collector::operator()): ... this and adjust.
16167 (collect_symtabs_from_filename): symtab_collector construction
16168 bits move to symtab_collector ctor. Pass the symtab_collector
16169 object directly as callback. Remove cleanups and use
16170 symtab_collector::release_symtabs instead.
16171 (collect_symbols): Delete.
16172 (add_matching_symbols_to_info): Use lambdas.
16173 * macrocmd.c (print_macro_callback): Delete.
16174 (info_macro_command): Use a lambda.
16175 (info_macros_command): Pass print_macro_definition as callable
16177 (print_one_macro): Remove 'ignore' parameter.
16178 (macro_list_command): Adjust.
16179 * macrotab.c (macro_for_each_data::fn): Now a function_view.
16180 (macro_for_each_data::user_data): Delete field.
16181 (foreach_macro): Adjust to call the function_view.
16182 (macro_for_each): Adjust to use function_view as callback type.
16183 (foreach_macro_in_scope): Adjust to call the function_view.
16184 (macro_for_each_in_scope): Adjust to use function_view as callback
16186 * macrotab.h: Include "common/function-view.h".
16187 (macro_callback_fn): Declare a prototype instead of a pointer.
16188 Remove "user_data" parameter.
16189 (macro_for_each, macro_for_each_in_scope): Adjust to use
16190 function_view as callback type.
16191 * psymtab.c (partial_map_expand_apply)
16192 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
16193 Adjust to use function_view as callback type and to return bool.
16194 (psym_expand_symtabs_matching): Adjust to use function_view as
16196 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
16197 to use function_view as callback type and to return bool.
16198 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
16200 * symfile.c (expand_symtabs_matching): Adjust to use function_view
16202 * symfile.h: Include "common/function-view.h".
16203 (expand_symtabs_file_matcher_ftype)
16204 (expand_symtabs_symbol_matcher_ftype)
16205 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
16207 (quick_symbol_functions::map_symtabs_matching_filename)
16208 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
16209 function_view as callback type and return bool.
16210 (expand_symtabs_matching): Adjust to use function_view as callback
16212 (maintenance_expand_name_matcher)
16213 (maintenance_expand_file_matcher): Delete.
16214 (maintenance_expand_symtabs): Use lambdas.
16215 * symtab.c (iterate_over_some_symtabs): Adjust to use
16216 function_view as callback types and return bool.
16217 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
16219 (lookup_symtab_callback): Delete.
16220 (lookup_symtab): Use a lambda.
16221 (iterate_over_symbols): Adjust to use function_view as callback
16223 (struct search_symbols_data, search_symbols_file_matches)
16224 (search_symbols_name_matches): Delete.
16225 (search_symbols): Use a pair of lambdas.
16226 (struct add_name_data, add_macro_name, symbol_completion_matcher)
16227 (symtab_expansion_callback): Delete.
16228 (default_make_symbol_completion_list_break_on_1): Use lambdas.
16229 * symtab.h: Include "common/function-view.h".
16230 (iterate_over_some_symtabs): Adjust to use function_view as
16231 callback type and return bool.
16232 (iterate_over_symtabs): Adjust to use function_view as callback
16234 (symbol_found_callback_ftype): Remove 'data' parameter and return
16236 (iterate_over_symbols): Adjust to use function_view as callback
16239 2017-02-23 Pedro Alves <palves@redhat.com>
16241 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
16242 (%.o) <unittests/%.c>: New pattern.
16243 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
16244 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
16245 * common/function-view.h: New file.
16246 * unittests/function-view-selftests.c: New file.
16247 * configure: Regenerate.
16249 2017-02-23 Simon Marchi <simon.marchi@ericsson.com>
16251 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
16253 * go32-nat.c (go32_thread_alive): Likewise.
16255 2017-02-23 Yao Qi <yao.qi@linaro.org>
16257 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
16260 2017-02-23 Yao Qi <yao.qi@linaro.org>
16262 * varobj.c (varobj_clear_saved_item): Use delete instead of
16264 (update_dynamic_varobj_children): Likewise.
16266 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
16268 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
16270 2017-02-21 Simon Marchi <simon.marchi@ericsson.com>
16272 * common/enum-flags.h (enum_flags::enum_flags): Initialize
16273 m_enum_value to 0 in default constructor.
16275 2017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
16277 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
16278 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
16279 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
16280 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
16281 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
16282 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
16283 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
16284 IS_STORE_CONDITIONAL_INSN.
16286 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
16288 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
16290 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16292 * NEWS (Changes since GDB 7.12): Add DWARF-5.
16294 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16296 * dwarf2read.c (skip_one_die, read_attribute_value)
16297 (dwarf2_const_value_attr, dump_die_shallow)
16298 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
16299 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
16301 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16303 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
16304 (dwarf_parse_macro_header): Accept DWARF version 5.
16305 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
16307 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16309 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
16311 * common/common-exceptions.h (enum errors): Likewise.
16312 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
16313 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
16314 (dwarf_expr_context::execute_stack_op): Likewise.
16315 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
16317 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
16318 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
16319 (show_entry_values_debug, call_site_to_target_addr)
16320 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
16321 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
16322 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
16323 (value_of_dwarf_block_entry, indirect_pieced_value)
16324 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
16325 (disassemble_dwarf_expression): Likewise.
16326 * dwarf2read.c (process_die, inherit_abstract_dies)
16327 (read_call_site_scope): Likewise.
16328 * gdbtypes.h (struct func_type, struct call_site_parameter)
16329 (struct call_site): Likewise.
16330 * stack.c (read_frame_arg): Likewise.
16331 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
16333 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16335 * defs.h (read_unsigned_leb128): New declaration.
16336 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
16337 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
16338 (dwarf2_find_location_expression): Call also
16339 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
16340 * dwarf2loc.h (dwarf2_version): New declaration.
16341 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
16343 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
16345 (struct dwop_section_names): Add loclists_dwo.
16346 (dwop_section_names): Add .debug_loclists.dwo.
16347 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
16348 (struct dwarf2_per_cu_data): Add dwarf_version.
16349 (struct dwo_sections): Add loclists.
16350 (struct attr_abbrev): Add implicit_const.
16351 (read_indirect_line_string): New declaration.
16352 (read_unsigned_leb128): Delete declaration.
16353 (rcuh_kind): New definition.
16354 (read_and_check_comp_unit_head): Change parameter
16355 is_debug_types_section to section_kind.
16356 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
16357 (read_comp_unit_head): Change parameter abfd to section, add parameter
16358 section_kind. Handle DWARF-5.
16359 (error_check_comp_unit_head): Accept also DWARF version 5.
16360 (read_and_check_comp_unit_head): Change parameter
16361 is_debug_types_section to section_kind.
16362 (read_and_check_type_unit_head): Delete function.
16363 (read_abbrev_offset): Handle DWARF-5.
16364 (create_debug_type_hash_table): Add parameter section_kind. Process
16365 only DW_UT_type. Use signature and type_offset_in_tu from struct
16367 (create_debug_types_hash_table): Update create_debug_type_hash_table
16369 (create_all_type_units): Call create_debug_type_hash_table.
16370 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
16371 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
16373 (skip_one_die): Handle DW_FORM_implicit_const.
16374 (dwarf2_rnglists_process): New function.
16375 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
16376 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
16377 (read_attribute_value): Handle DW_FORM_implicit_const,
16379 (read_attribute): Handle DW_FORM_implicit_const.
16380 (read_indirect_string_at_offset_from): New function from
16381 read_indirect_string_at_offset.
16382 (read_indirect_string_at_offset): Call
16383 read_indirect_string_at_offset_from.
16384 (read_indirect_line_string_at_offset): New function.
16385 (read_indirect_string): New function comment.
16386 (read_indirect_line_string): New function.
16387 (read_unsigned_leb128): Make it global.
16388 (dwarf2_string_attr): Handle DWARF-5.
16389 (add_include_dir_stub, read_formatted_entries): New functions.
16390 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
16392 (per_cu_header_read_in): Update read_comp_unit_head caller.
16393 (dwarf2_version): New function.
16394 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
16396 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
16399 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16401 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
16403 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16405 * dwarf2read.c (dwarf2_ranges_process): New function from
16406 dwarf2_ranges_read.
16407 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
16408 dwarf2_ranges_process.
16410 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16412 * dwarf2read.c (create_debug_type_hash_table): New function from
16413 create_debug_types_hash_table.
16414 (create_debug_types_hash_table): Call create_debug_type_hash_table.
16415 (create_all_type_units, open_and_init_dwo_file): Update
16416 create_debug_types_hash_table callers.
16418 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
16421 * fork-child.c (trace_start_error): Fix thinko. va_end should
16422 refer to 'ap', not 'args'.
16424 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
16425 Pedro Alves <palves@redhat.com>
16428 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
16430 * fork-child.c (trace_start_error): New function.
16431 (trace_start_error_with_name): Likewise.
16432 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
16433 * inf-ptrace.c (inf_ptrace_me): Likewise.
16434 * inferior.h (trace_start_error): New prototype.
16435 (trace_start_error_with_name): Likewise.
16437 2017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
16440 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
16441 NULL before using it.
16442 * symmisc.c (maintenance_print_symbols): Likewise.
16443 (maintenance_print_msymbols): Likewise.
16445 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16447 * NEWS: Add record Python bindings entry.
16449 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16451 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
16453 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
16454 * python/py-record-btrace.c, python/py-record-btrace.h,
16455 python/py-record-full.c, python/py-record-full.h: New file.
16456 * python/py-record.c: Add include for py-record-btrace.h and
16458 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
16459 recpy_instruction_history, recpy_function_call_history, recpy_begin,
16460 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
16461 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
16463 (gdbpy_initialize_btrace): New export.
16464 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
16466 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16468 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
16469 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
16470 * python/py-record.c: New file.
16471 * python/python-internal.h (gdbpy_start_recording,
16472 gdbpy_current_recording, gdpy_stop_recording,
16473 gdbpy_initialize_record): New export.
16474 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
16475 (python_GdbMethods): Add gdbpy_start_recording,
16476 gdbpy_current_recording and gdbpy_stop_recording.
16478 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16480 * record-btrace.c (record_btrace_record_method): New function.
16481 (init_record_btrace_ops): Initialize to_record_method.
16482 * record-full.c (record_full_record_method): New function.
16483 (init_record_full_ops, init_record_full_core_ops): Add
16484 record_full_record_method.
16485 * record.h (enum record_method): New enum.
16486 * target-debug.h (target_debug_print_enum_record_method: New define.
16487 * target-delegates.c: Regenerate.
16488 * target.c (target_record_method): New function.
16489 * target.h: Include record.h.
16490 (struct target_ops) <to_record_method>: New field.
16491 (target_record_method): New export.
16493 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16495 * record.h (record_start, record_stop): New export.
16496 * record.c (record_start, record_stop): New function.
16498 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16500 * btrace.c (btrace_fetch): Copy function call segments pointer
16502 (btrace_clear): Clear the vector.
16503 (btrace_find_insn_by_number): Use binary search to find the correct
16504 function call segment.
16505 * btrace.h (brace_fun_p): New typedef.
16506 (struct btrace_thread_info) <functions>: New field.
16508 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16510 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
16511 * btrace.c (btrace_decode_error): ... here. New function.
16512 * btrace.h (btrace_decode_error): New export.
16514 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16516 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
16517 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
16518 btrace_find_insn_by_number): Remove special case for gaps.
16519 * btrace.h (btrace_insn_get_error): New export.
16520 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
16521 * record-btrace.c (btrace_insn_history): Print number for gaps.
16522 (record_btrace_info, record_btrace_goto): Handle gaps.
16524 2017-02-14 Tom Tromey <tom@tromey.com>
16527 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
16529 * python/py-evts.c (gdbpy_initialize_py_events): Add
16530 before_prompt registry.
16531 * python/py-events.h (events_object) <before_prompt>: New field.
16533 2017-02-14 Markus Metzger <markus.t.metzger@intel.com>
16535 * btrace.c (ftrace_new_switch): Preserve up link and flags.
16537 2017-02-13 Luis Machado <lgustavo@codesourcery.com>
16539 * symfile (_initialize_symfile): Add usage text to the load command's
16542 2017-02-10 Simon Marchi <simon.marchi@ericsson.com>
16544 * utils.c (defaulted_query): Don't query on secondary UIs.
16546 2017-02-10 Tom Tromey <tom@tromey.com>
16548 * rust-lang.c (rust_get_disr_info): Remove unused variable.
16550 2017-02-10 Tom Tromey <tom@tromey.com>
16552 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
16554 * python/py-type.c (typy_legacy_template_argument): Remove
16555 unnecessary "cleanup" local.
16557 2017-02-10 Tom Tromey <tom@tromey.com>
16559 * python/python.c (do_start_initialization): New function, from
16560 _initialize_python.
16561 (_initialize_python): Call do_start_initialization.
16562 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
16565 2017-02-10 Tom Tromey <tom@tromey.com>
16567 * python/py-prettyprint.c (pretty_print_one_value): Use
16570 2017-02-10 Tom Tromey <tom@tromey.com>
16572 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
16573 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
16575 * python/py-type.c (field_new): Use gdbpy_ref.
16576 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
16578 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
16579 (py_free_pspace): Likewise.
16580 (pspace_to_pspace_object): Likewise.
16581 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
16582 (py_free_objfile): Likewise.
16583 (objfile_to_objfile_object): Likewise.
16584 * python/py-inferior.c (delete_thread_object): Use
16586 (infpy_read_memory): Likewise.
16587 (py_free_inferior): Likewise.
16588 * python/py-evtregistry.c (create_eventregistry_object): Use
16590 * python/py-event.c (create_event_object): Use gdbpy_ref.
16592 2017-02-10 Tom Tromey <tom@tromey.com>
16594 * python/py-ref.h (gdbpy_ref_policy): Now a template.
16595 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
16597 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
16598 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
16599 python/py-exitedevent.c, python/py-finishbreakpoint.c,
16600 python/py-framefilter.c, python/py-function.c,
16601 python/py-inferior.c, python/py-infevents.c,
16602 python/py-linetable.c, python/py-newobjfileevent.c,
16603 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
16604 python/py-signalevent.c, python/py-stopevent.c,
16605 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
16606 python/py-unwind.c, python/py-utils.c, python/py-value.c,
16607 python/py-varobj.c, python/py-xmethods.c, python/python.c,
16608 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
16610 2017-02-10 Tom Tromey <tom@tromey.com>
16612 * ui-out.h (ui_out_emit_type): New class.
16613 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
16614 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
16615 and ui_out_emit_tuple.
16616 (enumerate_locals): Likewise.
16617 (py_mi_print_variables, py_print_locals, py_print_args): Use
16619 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
16621 * common/gdb_optional.h: New file.
16623 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
16625 * MAINTAINERS (Write After Approval): Update my e-mail address.
16627 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
16630 * breakpoint.c (_initialize_breakpoint): Update the help description
16631 of the 'commands' command to indicate that it takes a list argument.
16633 2017-02-09 Simon Marchi <simon.marchi@ericsson.com>
16635 * interps.c (current_interp_set_logging): Remove "return".
16637 2017-02-09 Gary Benson <gbenson@redhat.com>
16639 * symtab.c (add_symtab_completions): Prevent NULL pointer
16642 2017-02-08 Pedro Alves <palves@redhat.com>
16644 * interps.c (interp::interp): Remove reference to quiet_p.
16645 (interp_set): Make static. Remove dead "Switching to" output
16647 (interp_quiet_p, interp_set_quiet): Delete.
16648 (interpreter_exec_cmd): Don't set the interpreter quiet.
16649 * interps.h (interp_quiet_p): Make static.
16650 (class interp) <quiet_p>: Remove field
16652 2017-02-08 Jerome Guitton <guitton@adacore.com>
16654 * cli/cli-decode.c (find_command_name_length): Make it extern.
16655 * cli/cli-decode.h (find_command_name_length): Declare.
16656 * cli/cli-script.c (command_name_equals, line_first_arg):
16658 (process_next_line): Use cli-decode to parse command names.
16659 (build_command_line): Make args a constant pointer.
16661 2017-02-08 Jerome Guitton <guitton@adacore.com>
16663 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
16664 Remove case-insensitive search.
16666 2017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
16668 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
16669 at the end of the line. Avoids an ARI warning.
16671 2017-02-06 Luis Machado <lgustavo@codesourcery.com>
16673 * NEWS: Mention support for record/replay of Intel 64 rdrand and
16674 rdseed instructions.
16675 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
16677 2017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
16680 Provide and use sparc32 and sparc64 target description XML files.
16681 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
16682 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
16683 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
16684 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
16685 * features/sparc/sparc32-solaris.xml: New file.
16686 * features/sparc/sparc64-solaris.xml: New file.
16687 * features/sparc/sparc32-solaris.c: Generated.
16688 * features/sparc/sparc64-solaris.c: Generated.
16689 * sparc-tdep.h: Account for differences in target descriptions.
16690 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
16691 (sparc32_register_type): Use target provided registers.
16692 (validate_tdesc_registers): New function.
16693 (sparc32_gdbarch_init): Use tdesc_has_registers.
16694 Set pseudoregister functions.
16695 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
16696 (sparc64_register_type): Use target provided registers.
16697 (sparc64_init_abi): Set pseudoregister functions.
16699 2017-02-03 Tom Tromey <tom@tromey.com>
16702 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
16703 with a single member.
16705 2017-02-03 Pedro Alves <palves@redhat.com>
16707 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
16708 (cli_interp_base::~cli_interp_base): New.
16709 (cli_interp): New struct.
16710 (as_cli_interp): Cast the interp itself to cli_interp.
16711 (cli_interpreter_pre_command_loop): Rename to ...
16712 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
16714 (cli_interpreter_init): Rename to ...
16715 (cli_interp::init): ... this. Remove 'self' parameter. Use
16716 boolean. Make extern.
16717 (cli_interpreter_resume): Rename to ...
16718 (cli_interp::resume): ... this. Remove 'data' parameter. Make
16720 (cli_interpreter_suspend): Rename to ...
16721 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
16723 (cli_interpreter_exec): Rename to ...
16724 (cli_interp::exec): ... this. Remove 'data' parameter. Make
16726 (cli_interpreter_supports_command_editing): Rename to ...
16727 (cli_interp_base::supports_command_editing): ... this. Remove
16728 'interp' parameter. Make extern.
16729 (cli_ui_out): Rename to ...
16730 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
16732 (cli_set_logging): Rename to ...
16733 (cli_interp_base::set_logging): ... this. Remove 'interp'
16734 parameter. Make extern.
16735 (cli_interp_procs): Delete.
16736 (cli_interp_factory): Adjust to use "new".
16737 * cli/cli-interp.h: Include "interps.h".
16738 (struct cli_interp_base): New struct.
16739 * interps.c (struct interp): Delete. Fields moved to interps.h.
16740 (interp_new): Delete.
16741 (interp::interp, interp::~interp): New.
16742 (interp_set): Use bool, and return void. Assume the interpreter
16743 has suspend, init and resume methods, and that the all return
16745 (set_top_level_interpreter): interp_set returns void.
16746 (interp_ui_out): Adapt.
16747 (current_interp_set_logging): Adapt.
16748 (interp_data): Delete.
16749 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
16750 (interp_exec): Adapt.
16751 (top_level_interpreter_data): Delete.
16752 * interps.h (interp_init_ftype, interp_resume_ftype)
16753 (interp_suspend_ftype, interp_exec_ftype)
16754 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
16755 (class interp): New.
16756 (interp_new): Delete.
16757 (interp_set): Now returns void. Use bool.
16758 (interp_data, top_level_interpreter_data): Delete.
16759 * mi/mi-common.h: Include interps.h.
16760 (class mi_interp): Inherit from interp. Define a ctor. Declare
16761 init, resume, suspect, exec, interp_ui_out, set_logging and
16762 pre_command_loop methods.
16763 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
16764 (mi_interpreter_init): Rename to ...
16765 (mi_interp::init): ... this. Remove the 'interp' parameter, use
16766 bool, return void and make extern. Adjust.
16767 (mi_interpreter_resume): ... Rename to ...
16768 (mi_interp::resume): ... this. Remove the 'data' parameter,
16769 return void and make extern. Adjust.
16770 (mi_interpreter_suspend): ... Rename to ...
16771 (mi_interp::suspend): ... this. Remove the 'data' parameter,
16772 return void and make extern. Adjust.
16773 (mi_interpreter_exec): ... Rename to ...
16774 (mi_interp::exec): ... this. Remove the 'data' parameter and make
16776 (mi_interpreter_pre_command_loop): ... Rename to ...
16777 (mi_interp::pre_command_loop): ... this. Remove the 'self'
16778 parameter and make extern.
16779 (mi_on_normal_stop_1): Adjust.
16780 (mi_ui_out): Rename to ...
16781 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
16782 parameter and make extern. Adjust.
16783 (mi_set_logging): Rename to ...
16784 (mi_interp::set_logging): ... this. Remove the 'interp'
16785 parameter and make extern. Adjust.
16786 (mi_interp_procs): Delete.
16787 (mi_interp_factory): Adjust to use 'new'.
16788 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
16789 (mi_print_exception, mi_execute_command, mi_load_progress):
16791 * tui/tui-interp.c (tui_interp): New class.
16792 (as_tui_interp): Return a tui_interp pointer.
16793 (tui_on_normal_stop, tui_on_signal_received)
16794 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
16795 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
16796 to use interp::interp_ui_out.
16797 (tui_init): Rename to ...
16798 (tui_interp::init): ... this. Remove the 'self' parameter, use
16799 bool, return void and make extern. Adjust.
16800 (tui_resume): Rename to ...
16801 (tui_interp::resume): ... this. Remove the 'data' parameter,
16802 return void and make extern. Adjust.
16803 (tui_suspend): Rename to ...
16804 (tui_interp::suspend): ... this. Remove the 'data' parameter,
16805 return void and make extern. Adjust.
16806 (tui_ui_out): Rename to ...
16807 (tui_interp::interp_ui_out): ... this. Remove the 'self'
16808 parameter, and make extern. Adjust.
16809 (tui_exec): Rename to ...
16810 (tui_interp::exec): ... this. Remove the 'data' parameter and
16812 (tui_interp_procs): Delete.
16813 (tui_interp_factory): Use "new".
16815 2017-02-02 Tom Tromey <tom@tromey.com>
16817 * rust-exp.y (ends_raw_string, space_then_number)
16818 (rust_identifier_start_p): Return bool.
16819 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
16820 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
16821 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
16822 (rust_chartype_p): Return bool.
16823 (val_print_struct, rust_print_struct_def, rust_print_type):
16825 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
16828 2017-02-02 Tom Tromey <tom@tromey.com>
16830 * rust-lang.c: Reindent.
16832 2017-02-02 Tom Tromey <tom@tromey.com>
16834 * rust-lang.h (rust_crate_for_block): Update.
16835 * rust-lang.c (rust_crate_for_block): Return std::string.
16836 (rust_get_disr_info): Use std:;string, not
16837 gdb::unique_xmalloc_ptr.
16838 * rust-exp.y (crate_name): Update.
16840 2017-02-02 Pedro Alves <palves@redhat.com>
16842 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
16843 field out of gdb_disassembler_test and make it static.
16845 2017-02-02 Pedro Alves <palves@redhat.com>
16847 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
16848 mi1_interp and mi_interp fields.
16850 2017-02-02 Pedro Alves <palves@redhat.com>
16852 * cli/cli-interp.c (struct saved_output_files, saved_output):
16853 Moved from cli/cli-logging.c.
16854 (cli_set_logging): New function.
16855 (cli_interp_procs): Install cli_set_logging.
16856 * cli/cli-interp.h (make_logging_output, cli_set_logging):
16858 * cli/cli-logging.c (struct saved_output_files, saved_output):
16859 Moved to cli/cli-interp.c.
16860 (pop_output_files): Don't save outputs here.
16861 (make_logging_output): New function.
16862 (handle_redirections): Don't build tee nor save previous outputs
16864 * interps.c (current_interp_set_logging): Change prototype.
16865 Assume there's always a set_logging_proc method installed.
16866 * interps.h (interp_set_logging_ftype): Change prototype.
16867 (current_interp_set_logging): Change prototype and adjust comment.
16868 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
16869 use make_logging_output.
16870 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
16871 2017-02-02 Pedro Alves <palves@redhat.com>
16873 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
16875 (set_logging_overwrite): ... here.
16876 (logging_no_redirect_file): Delete.
16877 (set_logging_redirect): Don't handle redirection on the fly.
16878 Instead warn that "logging off" / "logging on" is necessary.
16879 (pop_output_files): Delete references to logging_no_redirect_file.
16880 (show_logging_command): Always speak in terms of what will happen
16881 once logging is reenabled.
16883 2017-02-02 Pedro Alves <palves@redhat.com>
16885 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
16887 2017-02-02 Pedro Alves <palves@redhat.com>
16889 * disasm.c (gdb_pretty_print_insn): Rename to ...
16890 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
16891 Remove gdbarch parameter. Adapt to clear the object's buffers
16892 instead of allocating new buffers, and to print using the object's
16893 gdb_disassembler instead of calling gdb_print_insn.
16894 (dump_insns): Use gdb_pretty_print_disassembler.
16895 * disasm.h (gdb_pretty_print_insn): Delete declaration.
16896 (gdb_pretty_print_disassembler): New class.
16897 * record-btrace.c (btrace_insn_history): Use
16898 gdb_pretty_print_disassembler.
16900 2017-02-02 Pedro Alves <palves@redhat.com>
16902 * ada-lang.c (type_as_string): Use string_file.
16903 * ada-valprint.c (ada_print_floating): Use string_file.
16904 * ada-varobj.c (ada_varobj_scalar_image)
16905 (ada_varobj_get_value_image): Use string_file.
16906 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
16907 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
16908 * breakpoint.c (update_inserted_breakpoint_locations)
16909 (insert_breakpoint_locations, reattach_breakpoints)
16910 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
16911 (print_it_watchpoint): Use string_file.
16912 (save_breakpoints): Use stdio_file.
16913 * c-exp.y (oper): Use string_file.
16914 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
16916 (pop_output_files): Use delete.
16917 (handle_redirections): Use stdio_file and tee_file.
16918 * cli/cli-setshow.c (do_show_command): Use string_file.
16919 * compile/compile-c-support.c (c_compute_program): Use
16921 * compile/compile-c-symbols.c (generate_vla_size): Take a
16922 'string_file &' instead of a 'ui_file *'.
16923 (generate_c_for_for_one_variable): Take a 'string_file &' instead
16924 of a 'ui_file *'. Use string_file.
16925 (generate_c_for_variable_locations): Take a 'string_file &'
16926 instead of a 'ui_file *'.
16927 * compile/compile-internal.h (generate_c_for_for_one_variable):
16928 Take a 'string_file &' instead of a 'ui_file *'.
16929 * compile/compile-loc2c.c (push, pushf, unary, binary)
16930 (print_label, pushf_register_address, pushf_register)
16931 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
16932 'ui_file *'. Adjust.
16933 * compile/compile.c (compile_to_object): Use string_file.
16934 * compile/compile.h (compile_dwarf_expr_to_c)
16935 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
16937 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
16938 (replace_typedefs_qualified_name): Use string_file and
16940 * disasm.c (gdb_pretty_print_insn): Use string_file.
16941 (gdb_disassembly): Adjust reference the null_stream global.
16942 (do_ui_file_delete): Delete.
16943 (gdb_insn_length): Use null_stream.
16944 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
16945 * dwarf2loc.c (dwarf2_compile_property_to_c)
16946 (locexpr_generate_c_location, loclist_generate_c_location): Take a
16947 'string_file &' instead of a 'ui_file *'.
16948 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
16949 * dwarf2read.c (do_ui_file_peek_last): Delete.
16950 (dwarf2_compute_name): Use string_file.
16951 * event-top.c (gdb_setup_readline): Use stdio_file.
16952 * gdbarch.sh (verify_gdbarch): Use string_file.
16953 * gdbtypes.c (safe_parse_type): Use null_stream.
16954 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
16956 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
16957 'string_file *' instead of a 'ui_file *'.
16958 (gdbscm_arch_disassemble): Use string_file.
16959 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
16960 * guile/scm-ports.c (class ioscm_file_port): Now a class that
16961 inherits from ui_file.
16962 (ioscm_file_port_delete, ioscm_file_port_rewind)
16963 (ioscm_file_port_put): Delete.
16964 (ioscm_file_port_write): Rename to ...
16965 (ioscm_file_port::write): ... this. Remove file_port_magic
16967 (ioscm_file_port_new): Delete.
16968 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
16970 * guile/scm-type.c (tyscm_type_name): Use string_file.
16971 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
16973 * infcmd.c (print_return_value_1): Use string_file.
16974 * infrun.c (print_target_wait_results): Use string_file.
16975 * language.c (add_language): Use string_file.
16976 * location.c (explicit_to_string_internal): Use string_file.
16977 * main.c (captured_main_1): Use null_file.
16978 * maint.c (maintenance_print_architecture): Use stdio_file.
16979 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
16980 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
16981 event_channel>: Change type to mi_console_file pointer.
16982 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
16983 (mi_console_file_delete): Delete.
16984 (struct mi_console_file): Delete.
16985 (mi_console_file_magic): Delete.
16986 (mi_console_file_new): Delete.
16987 (mi_console_file::mi_console_file): New.
16988 (mi_console_file_delete): Delete.
16989 (mi_console_file_fputs): Delete.
16990 (mi_console_file::write): New.
16991 (mi_console_raw_packet): Delete.
16992 (mi_console_file::flush): New.
16993 (mi_console_file_flush): Delete.
16994 (mi_console_set_raw): Rename to ...
16995 (mi_console_file::set_raw): ... this.
16996 * mi/mi-console.h (class mi_console_file): New class.
16997 (mi_console_file_new, mi_console_set_raw): Delete.
16998 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
16999 (mi_set_logging): Use delete and tee_file. Adjust.
17000 * mi/mi-main.c (output_register): Use string_file.
17001 (mi_cmd_data_evaluate_expression): Use string_file.
17002 (mi_cmd_data_read_memory): Use string_file.
17003 (mi_cmd_execute, print_variable_or_computed): Use string_file.
17004 * mi/mi-out.c (mi_ui_out::main_stream): New.
17005 (mi_ui_out::rewind): Use main_stream and
17007 (mi_ui_out::put): Use main_stream and string_file.
17008 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
17009 Allocate a 'string_file' instead.
17010 (mi_out_new): Don't allocate a mem_fileopen stream here.
17011 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
17012 (mi_ui_out::main_stream): Declare method.
17013 * printcmd.c (eval_command): Use string_file.
17014 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
17015 * python/py-arch.c (archpy_disassemble): Use string_file.
17016 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
17017 * python/py-frame.c (frapy_str): Use string_file.
17018 * python/py-framefilter.c (py_print_type, py_print_single_arg):
17020 * python/py-type.c (typy_str): Use string_file.
17021 * python/py-unwind.c (unwind_infopy_str): Use string_file.
17022 * python/py-value.c (valpy_str): Use string_file.
17023 * record-btrace.c (btrace_insn_history): Use string_file.
17024 * regcache.c (regcache_print): Use stdio_file.
17025 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
17026 * remote.c (escape_buffer): Use string_file.
17027 * rust-lang.c (rust_get_disr_info): Use string_file.
17028 * serial.c (serial_open_ops_1): Use stdio_file.
17029 (do_serial_close): Use delete.
17030 * stack.c (print_frame_arg): Use string_file.
17031 (print_frame_args): Remove local mem_fileopen stream, not used.
17032 (print_frame): Use string_file.
17033 * symmisc.c (maintenance_print_symbols): Use stdio_file.
17034 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
17035 Take a 'string_file *' instead of a 'ui_file *'.
17036 * top.c (new_ui): Use stdio_file and stderr_file.
17037 (free_ui): Use delete.
17038 (execute_command_to_string): Use string_file.
17039 (quit_confirm): Use string_file.
17040 * tracepoint.c (collection_list::append_exp): Use string_file.
17041 * tui/tui-disasm.c (tui_disassemble): Use string_file.
17042 * tui/tui-file.c: Don't include "ui-file.h".
17043 (enum streamtype, struct tui_stream): Delete.
17044 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
17045 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
17046 (tui_file::tui_file): New method.
17047 (tui_file_fputs): Delete.
17048 (tui_file_get_strbuf): Delete.
17049 (tui_file::puts): New method.
17050 (tui_file_adjust_strbuf): Delete.
17051 (tui_file_flush): Delete.
17052 (tui_file::flush): New method.
17053 * tui/tui-file.h: Tweak intro comment.
17055 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
17056 (tui_file_adjust_strbuf): Delete declarations.
17057 (class tui_file): New class.
17058 * tui/tui-io.c (tui_initialize_io): Use tui_file.
17059 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
17060 (tui_register_format): Use string_stream.
17061 * tui/tui-stack.c (tui_make_status_line): Use string_file.
17062 (tui_get_function_from_frame): Use string_file.
17063 * typeprint.c (type_to_string): Use string_file.
17064 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
17065 (null_stream): New global.
17066 (ui_file_delete): Delete.
17067 (ui_file::ui_file): New.
17068 (null_file_isatty): Delete.
17069 (ui_file::~ui_file): New.
17070 (null_file_rewind): Delete.
17071 (ui_file::printf): New.
17072 (null_file_put): Delete.
17073 (null_file_flush): Delete.
17074 (ui_file::putstr): New.
17075 (null_file_write): Delete.
17076 (ui_file::putstrn): New.
17077 (null_file_read): Delete.
17078 (ui_file::putc): New.
17079 (null_file_fputs): Delete.
17080 (null_file_write_async_safe): Delete.
17081 (ui_file::vprintf): New.
17082 (null_file_delete): Delete.
17083 (null_file::write): New.
17084 (null_file_fseek): Delete.
17085 (null_file::puts): New.
17086 (ui_file_data): Delete.
17087 (null_file::write_async_safe): New.
17088 (gdb_flush, ui_file_isatty): Adjust.
17089 (ui_file_put, ui_file_rewind): Delete.
17090 (ui_file_write): Adjust.
17091 (ui_file_write_for_put): Delete.
17092 (ui_file_write_async_safe, ui_file_read): Adjust.
17093 (ui_file_fseek): Delete.
17094 (fputs_unfiltered): Adjust.
17095 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
17096 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
17097 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
17098 (set_ui_file_data): Delete.
17099 (string_file::~string_file, string_file::write)
17100 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
17101 (do_ui_file_as_string, ui_file_as_string): Delete.
17102 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
17103 (struct mem_file): Delete.
17104 (mem_file_new): Delete.
17105 (stdio_file::stdio_file): New.
17106 (mem_file_delete): Delete.
17107 (stdio_file::stdio_file): New.
17108 (mem_fileopen): Delete.
17109 (stdio_file::~stdio_file): New.
17110 (mem_file_rewind): Delete.
17111 (stdio_file::set_stream): New.
17112 (mem_file_put): Delete.
17113 (stdio_file::open): New.
17114 (mem_file_write): Delete.
17115 (stdio_file_magic, struct stdio_file): Delete.
17116 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
17117 (stdio_file::flush): New.
17118 (stdio_file_read): Rename to ...
17119 (stdio_file::read): ... this. Adjust.
17120 (stdio_file_write): Rename to ...
17121 (stdio_file::write): ... this. Adjust.
17122 (stdio_file_write_async_safe): Rename to ...
17123 (stdio_file::write_async_safe) ... this. Adjust.
17124 (stdio_file_fputs): Rename to ...
17125 (stdio_file::puts) ... this. Adjust.
17126 (stdio_file_isatty): Delete.
17127 (stdio_file_fseek): Delete.
17128 (stdio_file::isatty): New.
17129 (stderr_file_write): Rename to ...
17130 (stderr_file::write) ... this. Adjust.
17131 (stderr_file_fputs): Rename to ...
17132 (stderr_file::puts) ... this. Adjust.
17133 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
17134 (stderr_file::stderr_file): New.
17135 (tee_file_magic): Delete.
17136 (struct tee_file): Delete.
17137 (tee_file::tee_file): New.
17138 (tee_file_new): Delete.
17139 (tee_file::~tee_file): New.
17140 (tee_file_delete): Delete.
17141 (tee_file_flush): Rename to ...
17142 (tee_file::flush): ... this. Adjust.
17143 (tee_file_write): Rename to ...
17144 (tee_file::write): ... this. Adjust.
17145 (tee_file::write_async_safe): New.
17146 (tee_file_fputs): Rename to ...
17147 (tee_file::puts): ... this. Adjust.
17148 (tee_file_isatty): Rename to ...
17149 (tee_file::isatty): ... this. Adjust.
17150 * ui-file.h (struct obstack, struct ui_file): Don't
17152 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
17153 (ui_file_write_ftype)
17154 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
17155 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
17156 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
17157 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
17158 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
17159 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
17160 (set_ui_file_fseek): Delete.
17161 (ui_file_data, ui_file_delete, ui_file_rewind)
17162 (struct ui_file): New.
17164 (class null_file): New.
17165 (null_stream): Declare.
17166 (ui_file_write_for_put, ui_file_put): Delete.
17167 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
17169 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
17170 (gdb_fopen, tee_file_new): Delete.
17171 (struct string_file): New.
17172 (struct stdio_file): New.
17173 (stdio_file_up): New.
17174 (struct stderr_file): New.
17175 (class tee_file): New.
17176 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
17177 of a 'ui_file *'. Adjust.
17178 * ui-out.h (class ui_out) <field_stream>: Likewise.
17179 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
17180 (null_stream): Delete.
17181 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
17183 * utils.h (struct ui_file): Delete forward declaration..
17184 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
17185 (error_stream): Take a 'string_file &' instead of a
17187 * varobj.c (varobj_value_get_print_value): Use string_file.
17188 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
17189 * gdbarch.c: Regenerate.
17191 2017-02-02 Pedro Alves <palves@redhat.com>
17193 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
17194 (gdb_pretty_print_insn): ... this. Now a free function. Add back
17195 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
17196 Adjust to call gdb_print_insn instead of
17197 gdb_disassembler::print_insn.
17198 (dump_insns, do_mixed_source_and_assembly_deprecated)
17199 (do_mixed_source_and_assembly, do_assembly_only): Add back a
17200 'gdbarch' parameter. Remove gdb_disassembler parameter.
17201 (gdb_disassembly): Don't allocate a gdb_disassembler here.
17202 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
17204 (gdb_pretty_print_insn): Re-add declaration.
17205 * record-btrace.c (btrace_insn_history): Don't allocate a
17206 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
17208 2017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
17210 * disasm.h (gdb_disassembly): Remove file_string parameter.
17211 * disasm.c (gdb_disassembly): Likewise.
17212 * cli/cli-cmds.c (print_disassembly): Adapt.
17213 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
17214 * stack.c (do_gdb_disassembly): Likewise.
17216 2017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
17218 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
17219 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
17220 targets. And if the implicit value is longer than needed, extract
17221 the first bytes instead of the "least significant" ones.
17223 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
17225 * btrace.c (btrace_enable): Do not call btrace_add_pc for
17226 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
17227 (btrace_fetch): Assert can_access_registers_ptid.
17228 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
17229 validate_registers_access.
17231 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
17233 * gdbthread.h (can_access_registers_ptid): New.
17234 * thread.c (can_access_registers_ptid): New.
17236 2017-02-01 Pedro Alves <palves@redhat.com>
17238 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
17240 2017-01-31 Pedro Alves <palves@redhat.com>
17242 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
17245 2017-01-31 Pedro Alves <palves@redhat.com>
17247 * stack.c (print_frame_args): Remove local mem_fileopen stream,
17250 2017-01-31 Pedro Alves <palves@redhat.com>
17252 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
17254 2017-01-31 Pedro Alves <palves@redhat.com>
17256 * common/scoped_restore.h
17257 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
17258 change the value's parameter type to T2.
17259 (make_scoped_restore): Likewise.
17261 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
17262 Richard Henderson <rth@redhat.com>
17264 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
17265 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
17266 GS_BASE for older kernels.
17267 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
17268 GS_BASE for older kernels.
17269 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
17270 and GS_BASE to the offset table.
17271 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
17272 system register group.
17273 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
17275 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
17277 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
17278 AMD64_GSBASE_REGNUM.
17279 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
17280 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
17281 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
17282 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
17283 i386/64bit-segments.xml in those rules.
17284 * features/i386/64bit-segments.xml: New file.
17285 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
17286 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
17287 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
17288 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
17289 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
17290 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
17291 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
17292 * features/i386/amd64-avx-linux.c: Regenerated.
17293 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
17294 * features/i386/amd64-avx-mpx.c: Regenerated.
17295 * features/i386/amd64-avx512-linux.c: Regenerated.
17296 * features/i386/amd64-linux.c: Regenerated.
17297 * features/i386/amd64-mpx-linux.c: Regenerated.
17298 * features/i386/i386-avx-mpx-linux.c: Regenerated.
17299 * features/i386/i386-avx-mpx.c: Regenerated.
17300 * features/i386/x32-avx-linux.c: Regenerated.
17301 * features/i386/x32-avx512-linux.c: Regenerated.
17302 * regformats/i386/amd64-avx-linux.dat: Regenerated.
17303 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
17304 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
17305 * regformats/i386/amd64-linux.dat: Regenerated.
17306 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
17307 * regformats/i386/x32-avx-linux.dat: Regenerated.
17308 * regformats/i386/x32-avx512-linux.dat: Regenerated.
17309 * regformats/i386/x32-linux.dat: Regenerated.
17311 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
17313 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
17314 Set to AMD64_NUM_REGS.
17316 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
17318 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
17319 that checks validity of a register number.
17321 2017-01-27 Kees Cook <keescook@google.com>
17323 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
17324 fetch_fpregs if target has fpa registers.
17325 (arm_linux_store_inferior_registers): Call store_fpregs if target
17328 2017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
17330 * cris-tdep.c (cris_gdbarch_init): Remove check for
17331 info.byte_order and force it to BFD_ENDIAN_LITTLE.
17333 2017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
17335 * corelow.c (get_core_register_section): Check for regset
17336 existence before checking for REGSET_VARIABLE_SIZE.
17338 2017-01-26 Yao Qi <yao.qi@linaro.org>
17339 Pedro Alves <palves@redhat.com>
17342 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
17343 call memory_error, save memaddr instead.
17344 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
17345 negative, cal memory_error.
17346 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
17348 2017-01-26 Yao Qi <yao.qi@linaro.org>
17350 * disasm-selftests.c (memory_error_test): New function.
17351 (_initialize_disasm_selftests): Register memory_error_test.
17353 2017-01-26 Yao Qi <yao.qi@linaro.org>
17355 * Makefile.in (SFILES): Add disasm-selftests.c and
17357 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
17358 * disasm-selftests.c: New file.
17359 * selftest-arch.c: New file.
17360 * selftest-arch.h: New file.
17362 2017-01-26 Yao Qi <yao.qi@linaro.org>
17364 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
17365 to bfd_arch_mep. Don't return 0 if section is not
17366 found. Call print_insn_mep.
17368 2017-01-26 Pedro Alves <palves@redhat.com>
17369 Yao Qi <yao.qi@linaro.org>
17371 * arm-tdep.c: Include "disasm.h".
17372 (gdb_print_insn_arm): Update code to get gdbarch.
17373 * disasm.c (dis_asm_read_memory): Change it to
17374 gdb_disassembler::dis_asm_read_memory.
17375 (dis_asm_memory_error): Likewise.
17376 (dis_asm_print_address): Likewise.
17377 (gdb_pretty_print_insn): Change it to
17378 gdb_disassembler::pretty_print_insn.
17379 (dump_insns): Add one argument gdb_disassemlber. All
17381 (do_mixed_source_and_assembly_deprecated): Likewise.
17382 (do_mixed_source_and_assembly): Likewise.
17383 (do_assembly_only): Likewise.
17384 (gdb_disassembler::gdb_disassembler): New.
17385 (gdb_disassembler::print_insn): New.
17386 * disasm.h (class gdb_disassembler): New.
17387 (gdb_pretty_print_insn): Remove declaration.
17388 (gdb_disassemble_info): Likewise.
17389 * guile/scm-disasm.c (class gdbscm_disassembler): New.
17390 (gdbscm_disasm_read_memory_worker): Update.
17391 (gdbscm_disasm_read_memory): Update.
17392 (gdbscm_disasm_memory_error): Remove.
17393 (gdbscm_disasm_print_address): Remove.
17394 (gdbscm_disassembler::gdbscm_disassembler): New.
17395 (gdbscm_print_insn_from_port): Update.
17396 * mips-tdep.c: Include disasm.h.
17397 (gdb_print_insn_mips): Update code to get gdbarch.
17398 * record-btrace.c (btrace_insn_history): Update.
17399 * spu-tdep.c: Include disasm.h.
17400 (struct spu_dis_asm_data): Remove.
17401 (struct spu_dis_asm_info): New.
17402 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
17404 (gdb_print_insn_spu): Cast disassemble_info to
17407 2017-01-26 Yao Qi <yao.qi@linaro.org>
17409 * disasm.c (do_ui_file_delete): Delete.
17410 (gdb_insn_length): Move code creating stream to ...
17411 * utils.c (null_stream): ... here. New function.
17412 * utils.h (null_stream): Declare.
17414 2017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
17416 * python/py-inferior.c (find_thread_object): Return directly
17417 from the loop. Remove "found" variable.
17419 2017-01-21 Joel Brobecker <brobecker@adacore.com>
17421 GDB 7.12.1 released.
17423 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
17425 * python/py-function.c (fnpy_call): Reorder declarations to have
17426 the gdbpy_enter object declared first.
17427 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
17429 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
17432 * python/python-internal.h (PyMem_RawMalloc): Define for
17434 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
17435 PyMem_RawMalloc instead of PyMem_Malloc.
17437 2017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
17438 Luis Machado <lgustavo@codesourcery.com>
17440 * NEWS (New commands): Mention flash-erase.
17441 (New MI commands): Mention target-flash-erase.
17442 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
17444 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
17445 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
17446 * target.c (flash_erase_command): New function.
17447 (initialize_targets): Add new flash-erase command.
17448 * target.h (flash_erase_command): New declaration.
17450 2017-01-20 Joel Brobecker <brobecker@adacore.com>
17452 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
17453 HAVE_SYS_PROCFS_H is defined.
17455 2017-01-18 Alan Hayward <alan.hayward@arm.com>
17457 * remote.c (struct cached_reg): Change data into a pointer.
17458 * (stop_reply_dtr): Free data pointers before deleting vector.
17459 (process_stop_reply): Likewise.
17460 (remote_parse_stop_reply): Allocate space for data
17462 2017-01-18 Alan Hayward <alan.hayward@arm.com>
17464 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
17466 (amd64_pseudo_register_read_value): Likewise.
17467 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
17468 (store_register_using_P): Likewise.
17469 * regcache.c (regcache_xfer_part): Likewise.
17471 2017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
17473 Split real and pseudo registers.
17474 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
17475 (sparc32_pseudo_regnum): New enum.
17476 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
17477 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
17478 (SPARC32_CP0_REGISTERS): New macro.
17479 (sparc32_pseudo_register_name): New function.
17480 (sparc32_register_name): Use sparc32_pseudo_register_name.
17481 (sparc32_pseudo_register_type): New function.
17482 (sparc32_register_type): Use sparc32_pseudo_register_type.
17483 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
17484 pseudo register numbers.
17485 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
17486 (SPARC64_CP0_REGISTERS): New macro.
17487 (sparc64_pseudo_register_name): New function.
17488 (sparc64_register_name): Use sparc64_pseudo_register_name.
17489 (sparc64_pseudo_register_type): New function.
17490 (sparc64_register_type): Use sparc64_pseudo_register_type.
17491 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
17492 pseudo register numbers.
17493 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
17494 sparc64_store_arguments): Handle pseudo register numbers.
17496 2017-01-13 Yao Qi <yao.qi@linaro.org>
17498 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
17499 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
17501 (getpkt_or_notif_sane_1): Likewise.
17503 2017-01-13 Yao Qi <yao.qi@linaro.org>
17505 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
17506 of CC. Pass "-x c++-header" instead of "-x c".
17508 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
17510 * remote.c (remote_can_async_p): Update comment.
17512 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
17514 * linux-nat.c (linux_nat_can_async_p): Update comment.
17516 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
17518 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
17520 2017-01-11 Simon Marchi <simon.marchi@ericsson.com>
17522 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
17524 2017-01-10 Tom Tromey <tom@tromey.com>
17526 * python/py-type.c (typy_legacy_template_argument): Update.
17527 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
17528 ~demangle_parse_info): Declare new members.
17529 (cp_demangled_name_to_comp): Return unique_ptr.
17530 (cp_demangled_name_parse_free)
17531 (make_cleanup_cp_demangled_name_parse_free)
17532 (cp_new_demangle_parse_info): Remove.
17533 * cp-support.c (do_demangled_name_parse_free_cleanup)
17534 (make_cleanup_cp_demangled_name_parse_free): Remove.
17535 (inspect_type, cp_canonicalize_string_full)
17536 (cp_canonicalize_string): Update.
17537 (mangled_name_to_comp): Change return type.
17538 (cp_class_name_from_physname, method_name_from_physname)
17539 (cp_func_name, cp_remove_params): Update.
17540 * cp-name-parser.y (demangle_parse_info): New constructor, from
17541 cp_new_demangle_parse_info.
17542 (~demangle_parse_info): New destructor, from
17543 cp_demangled_name_parse_free.
17544 (cp_merge_demangle_parse_infos): Update.
17545 (cp_demangled_name_to_comp): Change return type.
17547 2017-01-10 Tom Tromey <tom@tromey.com>
17549 * top.c (prevent_dont_repeat): Change return type.
17550 * python/python.c (execute_gdb_command): Use std::string.
17552 * guile/guile.c (gdbscm_execute_gdb_command): Update.
17553 * command.h (prevent_dont_repeat): Change return type.
17554 * breakpoint.c (bpstat_do_actions_1): Update.
17556 2017-01-10 Tom Tromey <tom@tromey.com>
17558 * value.h (scoped_value_mark::~scoped_value_mark): Call
17560 (scoped_value_mark::free_to_mark): New method.
17561 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
17564 2017-01-10 Tom Tromey <tom@tromey.com>
17566 * python/py-value.c (valpy_dereference, valpy_referenced_value)
17567 (valpy_reference_value, valpy_const_value, valpy_get_address)
17568 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
17569 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
17570 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
17571 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
17573 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
17574 * value.h (scoped_value_mark): New class.
17576 2017-01-10 Tom Tromey <tom@tromey.com>
17578 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
17579 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
17580 * psymtab.c (discard_psymtabs_upto): Remove.
17581 (make_cleanup_discard_psymtabs): Remove.
17582 (struct psymtab_state): Remove.
17584 2017-01-10 Tom Tromey <tom@tromey.com>
17586 * record-full.c (record_full_save_cleanups): Remove.
17587 (record_full_save): Use gdb::unlinker.
17588 * gcore.c (do_bfd_delete_cleanup): Remove.
17589 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
17591 * dwarf2read.c (unlink_if_set): Remove.
17592 (write_psymtabs_to_index): Use gdb::unlinker.
17593 * common/gdb_unlinker.h: New file.
17595 2017-01-10 Tom Tromey <tom@tromey.com>
17597 * windows-tdep.c (windows_xfer_shared_library): Update.
17598 * windows-nat.c (windows_make_so): Update.
17599 * utils.h (make_cleanup_bfd_unref): Remove.
17600 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
17601 * symfile.h (symfile_bfd_open)
17602 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
17603 * symfile.c (read_symbols, symbol_file_add)
17604 (separate_debug_file_exists): Update.
17605 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
17606 (generic_load, reread_symbols): Update.
17607 * symfile-mem.c (symbol_file_add_from_memory): Update.
17608 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
17609 (spu_symbol_file_add_from_memory): Update.
17610 * solist.h (struct target_so_ops) <bfd_open>: Return
17612 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
17613 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
17615 (solib_map_sections, reload_shared_libraries_1): Update.
17616 * solib-svr4.c (enable_break): Update.
17617 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
17618 * solib-frv.c (enable_break2): Update.
17619 * solib-dsbt.c (enable_break): Update.
17620 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
17622 (darwin_solib_get_all_image_info_addr_at_init): Update.
17623 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
17624 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
17625 * record-full.c (record_full_save): Update.
17626 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
17627 * procfs.c (insert_dbx_link_bpt_in_file): Update.
17628 * minidebug.c (find_separate_debug_file_in_section): Return
17630 * machoread.c (macho_add_oso_symfile): Change abfd to
17632 (macho_symfile_read_all_oso): Update.
17633 (macho_check_dsym): Return gdb_bfd_ref_ptr.
17634 (macho_symfile_read): Update.
17635 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
17636 (jit_bfd_try_read_symtab): Update.
17637 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
17638 (gdb_bfd_openw, gdb_bfd_openr_iovec)
17639 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
17641 (gdb_bfd_ref_policy): New struct.
17642 (gdb_bfd_ref_ptr): New typedef.
17643 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
17644 (gdb_bfd_openw, gdb_bfd_openr_iovec)
17645 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
17647 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
17648 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
17649 (gcore_command): Update.
17650 * exec.c (exec_file_attach): Update.
17651 * elfread.c (elf_symfile_read): Update.
17652 * dwarf2read.c (dwarf2_get_dwz_file): Update.
17653 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
17654 (open_and_init_dwo_file): Update.
17655 (open_dwp_file): Return gdb_bfd_ref_ptr.
17656 (open_and_init_dwp_file): Update.
17657 * corelow.c (core_open): Update.
17658 * compile/compile-object-load.c (compile_object_load): Update.
17659 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
17660 * coffread.c (coff_symfile_read): Update.
17661 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
17662 gdb_bfd_ref_ptr. Rename.
17663 (dump_bfd_file, restore_command): Update.
17664 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
17665 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
17666 (find_separate_debug_file_by_buildid): Update.
17668 2017-01-10 Tom Tromey <tom@tromey.com>
17670 * common/gdb_ref_ptr.h: New file.
17671 * python/py-ref.h (struct gdbpy_ref_policy): New.
17672 (gdbpy_ref): Now a typedef.
17674 2017-01-10 Tom Tromey <tom@tromey.com>
17676 * utils.h (make_cleanup_htab_delete): Don't declare.
17677 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
17679 * linespec.c (decode_compound_collector): Add constructor,
17681 (lookup_prefix_sym): Remove cleanup.
17682 (symtab_collector): Add constructor, destructor.
17683 (collect_symtabs_from_filename): Remove cleanup.
17684 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
17685 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
17687 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
17688 * dwarf2read.c (dw2_expand_symtabs_matching)
17689 (dw2_map_symbol_filenames, dwarf_decode_macros)
17690 (write_psymtabs_to_index): Use htab_up.
17691 * dwarf2loc.c (func_verify_no_selftailcall)
17692 (call_site_find_chain_1, func_verify_no_selftailcall)
17693 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
17694 std::vector, gdb::unique_xmalloc_ptr.
17695 (call_sitep): Remove typedef.
17696 (dwarf2_locexpr_baton_eval): Remove unused variable.
17698 2017-01-10 Tom Tromey <tom@tromey.com>
17700 * python/python-internal.h (make_cleanup_py_decref)
17701 (make_cleanup_py_xdecref): Don't declare.
17702 * python/py-utils.c (py_decref, make_cleanup_py_decref)
17703 (py_xdecref, make_cleanup_py_xdecref): Remove.
17705 2017-01-10 Tom Tromey <tom@tromey.com>
17707 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
17708 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
17710 2017-01-10 Tom Tromey <tom@tromey.com>
17712 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
17714 2017-01-10 Tom Tromey <tom@tromey.com>
17716 * python/py-utils.c (unicode_to_encoded_string)
17717 (python_string_to_target_string)
17718 (python_string_to_target_python_string)
17719 (python_string_to_host_string, gdbpy_obj_to_string)
17720 (get_addr_from_python): Use gdbpy_ref.
17722 2017-01-10 Tom Tromey <tom@tromey.com>
17724 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
17727 2017-01-10 Tom Tromey <tom@tromey.com>
17729 * python/python.c (eval_python_command, gdbpy_decode_line)
17730 (gdbpy_run_events, gdbpy_start_type_printers)
17731 (gdbpy_apply_type_printers): Use gdbpy_ref.
17733 2017-01-10 Tom Tromey <tom@tromey.com>
17735 * python/py-param.c (get_doc_string, compute_enum_values): Use
17738 2017-01-10 Tom Tromey <tom@tromey.com>
17740 * python/py-inferior.c (find_thread_object, build_inferior_list):
17743 2017-01-10 Tom Tromey <tom@tromey.com>
17745 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
17747 2017-01-10 Tom Tromey <tom@tromey.com>
17749 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
17752 2017-01-10 Tom Tromey <tom@tromey.com>
17754 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
17756 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
17759 2017-01-10 Tom Tromey <tom@tromey.com>
17761 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
17764 2017-01-10 Tom Tromey <tom@tromey.com>
17766 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
17767 decref results of PyArg_ParseTupleAndKeywords.
17769 2017-01-10 Tom Tromey <tom@tromey.com>
17771 * python/python.c (python_run_simple_file): Use
17772 unique_xmalloc_ptr, gdbpy_ref.
17774 2017-01-10 Tom Tromey <tom@tromey.com>
17776 * python/py-prettyprint.c (print_stack_unless_memory_error)
17777 (print_string_repr, print_children): Use gdbpy_ref.
17778 (dummy_python_frame): New class.
17779 (dummy_python_frame::dummy_python_frame): Rename from
17780 push_dummy_python_frame.
17781 (py_restore_tstate): Remove.
17783 2017-01-10 Tom Tromey <tom@tromey.com>
17785 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
17787 2017-01-10 Tom Tromey <tom@tromey.com>
17789 * python/python.c (ensure_python_env, restore_python_env):
17791 * python/python-internal.h (ensure_python_env): Don't declare.
17792 * varobj.h (varobj_ensure_python_env): Don't declare.
17793 * varobj.c (varobj_ensure_python_env): Remove.
17795 2017-01-10 Tom Tromey <tom@tromey.com>
17797 * varobj.c (varobj_value_get_print_value): Use
17798 gdbpy_enter_varobj.
17800 2017-01-10 Tom Tromey <tom@tromey.com>
17802 * python/py-prettyprint.c (print_string_repr, print_children):
17804 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
17806 * varobj.c (varobj_value_get_print_value): Update.
17807 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
17809 2017-01-10 Tom Tromey <tom@tromey.com>
17811 * varobj.c (varobj_get_display_hint)
17812 (dynamic_varobj_has_child_method, install_new_value_visualizer)
17813 (varobj_set_visualizer, free_variable): Use
17814 gdbpy_enter_varobj.
17816 2017-01-10 Tom Tromey <tom@tromey.com>
17818 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
17819 (do_finish_initialization): New function. Use gdbpy_ref.
17820 (gdbpy_finish_initialization): Use gdbpy_enter. Call
17821 do_finish_initialization.
17823 2017-01-10 Tom Tromey <tom@tromey.com>
17825 * python/py-param.c (get_set_value, get_show_value): Use
17826 gdbpy_enter, gdbpy_ref.
17828 2017-01-10 Tom Tromey <tom@tromey.com>
17830 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
17832 2017-01-10 Tom Tromey <tom@tromey.com>
17834 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
17836 2017-01-10 Tom Tromey <tom@tromey.com>
17838 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
17839 Use gdbpy_enter_varobj.
17841 2017-01-10 Tom Tromey <tom@tromey.com>
17843 * varobj.c (gdbpy_enter_varobj): New constructor.
17844 * python/python-internal.h (gdbpy_enter_varobj): New class.
17845 * python/py-varobj.c (py_varobj_get_iterator): Use
17846 gdbpy_enter_varobj.
17848 2017-01-10 Tom Tromey <tom@tromey.com>
17850 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
17851 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
17852 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
17853 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
17854 unique_xmalloc_ptr.
17855 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
17857 2017-01-10 Tom Tromey <tom@tromey.com>
17859 * python/py-xmethods.c (invoke_match_method): Use
17862 2017-01-10 Tom Tromey <tom@tromey.com>
17864 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
17865 gdbpy_enter, gdbpy_ref.
17867 2017-01-10 Tom Tromey <tom@tromey.com>
17869 * python/python.c (python_interactive_command): Use gdbpy_enter.
17871 2017-01-10 Tom Tromey <tom@tromey.com>
17873 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
17876 2017-01-10 Tom Tromey <tom@tromey.com>
17878 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
17879 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
17881 2017-01-10 Tom Tromey <tom@tromey.com>
17883 * utils.h (htab_deleter): New struct.
17884 (htab_up): New typedef.
17885 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
17886 gdbpy_enter, gdbpy_ref, htab_up.
17888 2017-01-10 Tom Tromey <tom@tromey.com>
17890 * python/py-unwind.c (pending_frame_invalidate): Remove.
17891 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
17893 2017-01-10 Tom Tromey <tom@tromey.com>
17895 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
17896 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
17898 2017-01-10 Tom Tromey <tom@tromey.com>
17900 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
17902 2017-01-10 Tom Tromey <tom@tromey.com>
17904 * python/python.c (gdbpy_eval_from_control_command)
17905 (gdbpy_source_script, gdbpy_run_events)
17906 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
17907 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
17910 2017-01-10 Tom Tromey <tom@tromey.com>
17912 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
17914 2017-01-10 Tom Tromey <tom@tromey.com>
17916 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
17918 2017-01-10 Tom Tromey <tom@tromey.com>
17920 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
17921 (python_on_inferior_call_pre, python_on_inferior_call_post)
17922 (python_on_memory_change, python_on_register_change)
17923 (python_inferior_exit, python_new_objfile, add_thread_object)
17924 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
17926 2017-01-10 Tom Tromey <tom@tromey.com>
17928 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
17929 (bpfinishpy_handle_exit): Use gdbpy_enter.
17931 2017-01-10 Tom Tromey <tom@tromey.com>
17933 * python/py-cmd.c (cmdpy_destroyer)
17934 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
17937 2017-01-10 Tom Tromey <tom@tromey.com>
17939 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
17941 (gdbpy_breakpoint_has_cond): Likewise.
17943 2017-01-10 Tom Tromey <tom@tromey.com>
17945 * python/python.c (gdbpy_enter): New constructor.
17946 (~gdbpy_enter): New destructor.
17947 (restore_python_env, ensure_python_env): Rewrite.
17948 * python/python-internal.h (gdbpy_enter): New class.
17950 2017-01-10 Tom Tromey <tom@tromey.com>
17952 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
17954 2017-01-10 Tom Tromey <tom@tromey.com>
17956 * python/py-value.c (value_has_field, get_field_flag)
17957 (get_field_type, valpy_getitem, convert_value_from_python): Use
17960 2017-01-10 Tom Tromey <tom@tromey.com>
17962 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
17965 2017-01-10 Tom Tromey <tom@tromey.com>
17967 * python/py-prettyprint.c (search_pp_list)
17968 (find_pretty_printer_from_objfiles)
17969 (find_pretty_printer_from_progspace)
17970 (find_pretty_printer_from_gdb, find_pretty_printer)
17971 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
17974 2017-01-10 Tom Tromey <tom@tromey.com>
17976 * python/py-param.c (call_doc_function): Use gdbpy_ref.
17978 2017-01-10 Tom Tromey <tom@tromey.com>
17980 * python/py-linetable.c (build_line_table_tuple_from_pcs)
17981 (ltpy_get_all_source_lines): Use gdbpy_ref.
17983 2017-01-10 Tom Tromey <tom@tromey.com>
17985 * python/py-framefilter.c (extract_sym, extract_value)
17986 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
17989 2017-01-10 Tom Tromey <tom@tromey.com>
17991 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
17993 2017-01-10 Tom Tromey <tom@tromey.com>
17995 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
17997 2017-01-10 Tom Tromey <tom@tromey.com>
17999 * python/py-function.c (convert_values_to_python, fnpy_init): Use
18002 2017-01-10 Tom Tromey <tom@tromey.com>
18004 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
18006 2017-01-10 Tom Tromey <tom@tromey.com>
18008 * python/py-type.c (convert_field, make_fielditem, typy_fields)
18009 (typy_range): Use gdbpy_ref.
18011 2017-01-10 Tom Tromey <tom@tromey.com>
18013 * python/py-threadevent.c (create_thread_event_object): Use
18015 * python/py-stopevent.c (create_stop_event_object): Simplify.
18016 (emit_stop_event): Use gdbpy_ref.
18017 * python/py-signalevent.c (create_signal_event_object): Use
18019 * python/py-newobjfileevent.c (create_new_objfile_event_object)
18020 (emit_new_objfile_event, create_clear_objfiles_event_object)
18021 (emit_clear_objfiles_event): Use gdbpy_ref.
18022 * python/py-infevents.c (create_inferior_call_event_object)
18023 (create_register_changed_event_object)
18024 (create_memory_changed_event_object, emit_inferior_call_event)
18025 (emit_memory_changed_event, emit_register_changed_event): Use
18027 * python/py-exitedevent.c (create_exited_event_object)
18028 (emit_exited_event): Use gdbpy_ref.
18029 * python/py-event.h (evpy_emit_event): Remove
18030 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
18031 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
18032 * python/py-continueevent.c (emit_continue_event): Use
18034 * python/py-breakpoint.c (gdbpy_breakpoint_created)
18035 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
18037 * python/py-bpevent.c (create_breakpoint_event_object): Use
18040 2017-01-10 Tom Tromey <tom@tromey.com>
18042 * python/py-ref.h: New file.
18044 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
18046 * cli-out.c (cli_ui_out::do_redirect): Change return type to
18048 * cli-out.h (cli_ui_out::do_redirect): Likewise.
18049 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
18050 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
18051 * ui-out.c (ui_out::redirect): Likewise.
18052 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
18053 * cli/cli-logging.c (set_logging_redirect): Update call site of
18055 (handle_redirections): Likewise.
18056 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
18057 * top.c (execute_command_to_string): Likewise.
18058 * utils.c (do_ui_out_redirect_pop): Likewise.
18060 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
18062 * stack.c (_initialize_stack): Update "frame" command help message.
18064 2017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
18066 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
18068 2017-01-06 Yao Qi <yao.qi@linaro.org>
18070 * x86-linux-nat.h: Include gdb_proc_service.h.
18072 2017-01-06 Yao Qi <yao.qi@linaro.org>
18074 * ser-base.h: Include serial.h.
18076 2017-01-06 Yao Qi <yao.qi@linaro.org>
18078 * ppc-linux-tdep.h: Include ppc-tdep.h.
18080 2017-01-06 Yao Qi <yao.qi@linaro.org>
18082 * nat/amd64-linux-siginfo.h: Include signal.h.
18084 2017-01-06 Yao Qi <yao.qi@linaro.org>
18086 * nat/aarch64-linux-hw-point.h: Include break-common.h.
18088 2017-01-06 Yao Qi <yao.qi@linaro.org>
18090 * mi/mi-parse.h: Include mi-cmds.h.
18092 2017-01-06 Yao Qi <yao.qi@linaro.org>
18094 * inf-loop.c: Don't include "target.h".
18095 * inf-loop.h: Include it here.
18097 2017-01-06 Yao Qi <yao.qi@linaro.org>
18099 * dfp.h: Include "dboulest.h" and "expression.h".
18101 2017-01-06 Yao Qi <yao.qi@linaro.org>
18103 * ax-gdb.h: Include "ax.h".
18105 2017-01-06 Yao Qi <yao.qi@linaro.org>
18107 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
18108 with nat/gdb_ptrace.h.
18110 2017-01-05 Yao Qi <yao.qi@linaro.org>
18112 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
18114 (mips64_fbsd_sigframe_init): Likewise.
18116 2017-01-04 John Baldwin <jhb@FreeBSD.org>
18118 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
18119 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
18121 2017-01-04 John Baldwin <jhb@FreeBSD.org>
18123 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
18124 * NEWS: Mention new FreeBSD/mips native configuration.
18125 * config/mips/fbsd.mh: New file.
18126 * configure.host: Add mips*-*-freebsd*.
18127 * mips-fbsd-nat.c: New file.
18129 2017-01-04 John Baldwin <jhb@FreeBSD.org>
18131 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
18132 (ALLDEPFILES): Add mips-fbsd-tdep.c.
18133 * NEWS: Mention new FreeBSD/mips target.
18134 * configure.tgt: Add mips*-*-freebsd*.
18135 * mips-fbsd-tdep.c: New file.
18136 * mips-fbsd-tdep.h: New file.
18138 2017-01-04 Yao Qi <yao.qi@linaro.org>
18140 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
18141 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
18143 2017-01-01 Joel Brobecker <brobecker@adacore.com>
18145 Update copyright year range in all GDB files.
18147 2017-01-01 Joel Brobecker <brobecker@adacore.com>
18149 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
18151 For older changes see ChangeLog-2016.
18157 version-control: never