gdb: Add news entries for new or1k target.
[binutils-gdb.git] / gdb / ChangeLog
1 2017-12-17 Stafford Horne <shorne@gmail.com>
2
3 * NEWS (Changes since GDB 8.0): Mention new or1k target and new
4 commands to set/show or1k debug.
5
6 2017-12-15 Sergio Durigan Junior <sergiodj@redhat.com>
7
8 * typeprint.c (whatis_exp): Fix ARI warning and reindent "if"
9 condition.
10
11 2017-12-15 Sergio Durigan Junior <sergiodj@redhat.com>
12 Pedro Alves <palves@redhat.com>
13
14 PR cli/16224
15 * NEWS (Changes since GDB 8.0): Mention new '/o' flag.
16 * c-typeprint.c (OFFSET_SPC_LEN): New define.
17 (c_type_print_varspec_prefix): New argument 'struct
18 print_offset_data *'.
19 (c_type_print_base_1): New function and prototype.
20 (c_print_type_1): New function, with code from 'c_print_type'.
21 (c_print_type): Use 'c_print_type_1'.
22 (c_type_print_varspec_prefix): New argument 'struct
23 print_offset_data *'. Use it. Call 'c_type_print_base_1'
24 instead of 'c_print_type_base'.
25 (print_spaces_filtered_with_print_options): New function.
26 (output_access_specifier): Take new argument FLAGS. Modify
27 function to call 'print_spaces_filtered_with_print_options'.
28 (c_print_type_vtable_offset_marker): New function.
29 (c_print_type_union_field_offset): New function.
30 (c_print_type_struct_field_offset): New function.
31 (c_print_type_no_offsets): New function.
32 (c_type_print_base_struct_union): New argument 'struct
33 print_offset_data *'. Print offsets and sizes for
34 struct/union/class fields.
35 * typeprint.c (const struct type_print_options
36 type_print_raw_options): Initialize 'print_offsets'.
37 (static struct type_print_options default_ptype_flags):
38 Likewise.
39 (struct print_offset_data print_offset_default_data): New
40 variable.
41 (whatis_exp): Handle '/o' option.
42 (_initialize_typeprint): Add '/o' flag to ptype's help.
43 * typeprint.h (struct print_offset_data): New struct.
44 (struct type_print_options) <print_offsets>: New field.
45
46 2017-12-15 Sergio Durigan Junior <sergiodj@redhat.com>
47
48 * c-typeprint.c (need_access_label_p): New function.
49 (c_type_print_base_struct_union): New function.
50 (c_type_print_base): Move code to handle
51 TYPE_CODE_{STRUCT,UNION} to the functions mentioned above.
52
53 2017-12-15 Richard Henderson <rth@redhat.com>
54 Uros Bizjak <ubizjak@gmail.com>
55
56 PR gdb/19061
57 * alpha-tdep.c (alpha_software_single_step): Call
58 alpha_deal_with_atomic_sequence here.
59 (set_gdbarch_software_single_step): Set to
60 alpha_software_single_step.
61 * nat/linux-ptrace.h [__alpha__]: Define GDB_ARCH_IS_TRAP_BRKPT
62 and GDB_ARCH_IS_TRAP_HWBKPT.
63
64 2017-12-15 Yao Qi <yao.qi@linaro.org>
65
66 * unittests/memory-map-selftests.c: Wrap test with HAVE_LIBEXPAT.
67
68 2017-12-15 Xavier Roirand <roirand@adacore.com>
69
70 * ada-lang.c (ada_value_primitive_field): Handle field search
71 in case of homonyms.
72 (find_struct_field): Ditto.
73 (ada_search_struct_field): Ditto.
74 (ada_value_struct_elt): Ditto.
75 (ada_lookup_struct_elt_type): Ditto.
76
77 2017-12-14 Simon Marchi <simon.marchi@ericsson.com>
78
79 * python/py-breakpoint.c (bppy_init): Use 'O' format specifier
80 for "qualified" and use PyObject_IsTrue.
81
82 2017-12-14 Jan Kratochvil <jan.kratochvil@redhat.com>
83
84 * dwarf2read.c (dw2_debug_names_iterator::next): Support
85 DW_IDX_type_unit.
86 (debug_names::dwarf5_offset_size, unit_kind): New.
87 (debug_names::insert): Add parameter kind.
88 (debug_names::build): Support DW_IDX_type_unit.
89 (debug_names::recursively_write_psymbols): Update
90 (debug_names::write_psymbols caller.
91 (debug_names::write_one_signatured_type_data)
92 (debug_names::write_one_signatured_type): New.
93 (debug_names::index_key, debug_names::symbol_value)
94 (debug_names::write_psymbols): Add kind.
95 (debug_names::write_one_signatured_type): New.
96 (write_debug_names): Move dwarf5_offset_size to debug_names.
97 Use debug_names::write_one_signatured_type for type units.
98
99 2017-12-14 Joel Brobecker <brobecker@adacore.com>
100
101 * ada-lang.c (ada_value_equal): Add handling of typedef types
102 when comparing array objects.
103
104 2017-12-14 Joel Brobecker <brobecker@adacore.com>
105
106 * ada-tasks.c (read_atcb): Properly set task_info->ptid
107 when !target_has_execution as well.
108 (task_command): Remove error when !target_has_execution.
109
110 2017-12-13 Simon Marchi <simon.marchi@ericsson.com>
111
112 * location.h (string_to_event_location): Add match_type
113 parameter.
114 * location.c (string_to_event_location): Likewise.
115 * python/py-breakpoint.c (bppy_init): Handle qualified
116 parameter.
117
118 2017-12-13 Pedro Alves <palves@redhat.com>
119
120 * completer.c (completion_tracker::maybe_add_completion): New
121 'text' and 'word' parameters. Use make_completion_match_str.
122 (completion_tracker::add_completion): New 'text' and 'word'
123 parameters. Pass down.
124 (completion_tracker::recompute_lowest_common_denominator): Change
125 parameter type to gdb::unique_xmalloc_ptr rval ref. Adjust.
126 * completer.h (completion_tracker::add_completion): New 'text' and
127 'word' parameters.
128 (completion_tracker::recompute_lowest_common_denominator): Change
129 parameter type to gdb::unique_xmalloc_ptr rval ref.
130 (completion_tracker::recompute_lowest_common_denominator): Change
131 parameter type to gdb::unique_xmalloc_ptr rval ref.
132 * symtab.c (completion_list_add_name): Pass down 'text' and 'word'
133 as well.
134
135 2017-12-13 Pedro Alves <palves@redhat.com>
136
137 * cli/cli-decode.c (complete_on_cmdlist, complete_on_enum): Use
138 make_completion_match_str.
139 * completer.c: Use gdb::unique_xmalloc_ptr and
140 make_completion_match_str.
141 (make_completion_match_str_1): New.
142 (make_completion_match_str(const char *, const char *,
143 const char *)): New.
144 (make_completion_match_str(gdb::unique_xmalloc_ptr<char> &&,
145 const char *, const char *)): New.
146 * completer.h (make_completion_match_str(const char *,
147 const char *, const char *)): New.
148 (make_completion_match_str(gdb::unique_xmalloc_ptr<char> &&,
149 const char *, const char *)): New.
150 * interps.c (interpreter_completer): Use make_completion_match_str.
151 * symtab.c (completion_list_add_name, add_filename_to_list): Use
152 make_completion_match_str.
153
154 2017-12-13 Stafford Horne <shorne@gmail.com>
155
156 * or1k-tdep.c (or1k_analyse_inst): Use _() wrapper for message
157 strings.
158 (or1k_unwind_pc): Use paddress() instead of %p.
159 (or1k_unwind_sp): Likewise.
160 (or1k_frame_cache): Use host_address_to_string()/paddress()
161 instead of %p and use _() wrapper for message strings.
162
163 2017-12-13 Simon Marchi <simon.marchi@ericsson.com>
164
165 * contrib/ari/gdb_ari.sh: Fix typo in help.
166
167 2017-12-13 Joel Brobecker <brobecker@adacore.com>
168
169 * event-top.c (handle_line_of_input): Set server_command.
170
171 2017-12-12 Stafford Horne <shorne@gmail.com>
172 Stefan Wallentowitz <stefan@wallentowitz.de>
173 Stefan Kristiansson <stefan.kristiansson@saunalahti.fi>
174 Franck Jullien <franck.jullien@gmail.com>
175 Jeremy Bennett <jeremy.bennett@embecosm.com>
176
177 * configure.tgt: Add targets for or1k and or1knd.
178 * or1k-tdep.c: New file.
179 * or1k-tdep.h: New file.
180 * features/Makefile: Add or1k.xml to build.
181 * features/or1k.xml: New file.
182 * features/or1k-core.xml: New file.
183 * features/or1k.c: Generated.
184
185 2017-12-12 Alan Modra <amodra@gmail.com>
186
187 PR tdep/22576
188 * ppc64-tdep.c (ppc64_plt_entry_point): Rewrite to take TOC-relative
189 PLT offset, and retrieve r2 from stack when executing in reverse.
190 (ppc64_standard_linkage1_target): Drop pc param. Calculate offset
191 rather than PLT address.
192 (ppc64_standard_linkage2_target): Likewise.
193 (ppc64_standard_linkage3_target): Likewise.
194 (ppc64_standard_linkage4_target): Likewise.
195 (ppc64_skip_trampoline_code_1): Adjust to suit.
196
197 2017-12-11 Simon Marchi <simon.marchi@ericsson.com>
198
199 PR gdb/22556
200 * remote.c (remote_thread_name): Return NULL if name is empty.
201 (remote_threads_extra_info): Return NULL if extra info is empty.
202
203 2017-12-11 Pedro Alves <palves@redhat.com>
204
205 * defs.h (elf_sym_fns_lazy_psyms, elf_sym_fns_gdb_index)
206 (elf_sym_fns_debug_names): Move to elfread.c.
207 * dwarf2read.c (dwarf2_initialize_objfile): Return a boolean
208 instead of a sym_fns and add 'index_kind' output parameter. Fill
209 the latter in with the index variant kind if using an index.
210 (enum dw_index_kind): Moved to symfile.h.
211 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_debug_names)
212 (elf_sym_fns_lazy_psyms): Move from defs.h.
213 (elf_symfile_read): Adjust to new dwarf2_initialize_objfile
214 interface.
215 * symfile.h (enum class dw_index_kind): New, moved from
216 dwarf2read.c.
217 (dwarf2_initialize_objfile): Change prototype.
218
219 2017-12-11 Ulrich Weigand <uweigand@de.ibm.com>
220
221 * target-float.c (mpfr_float_ops::from_target): Use mpfr_set_ui
222 instead of mpfr_set_si to convert mantissa bits.
223
224 2017-12-11 Xavier Roirand <roirand@adacore.com>
225 Joel Brobecker <brobecker@adacore.com>
226
227 * ada-lang.c (ada_tag_value_at_base_address): Change the way
228 tagged type base address is computed.
229 (enum ada_primitive_types) <ada_primitive_type_storage_offset>:
230 New enumerate.
231 (ada_language_arch_info): Set the ada_primitive_type_storage_offset
232 element of lai->primitive_type_vector.
233
234 2017-12-08 Pedro Alves <palves@redhat.com>
235
236 * dwarf2read.c (mock_mapped_index): Reimplement as an extension of
237 mapped_index_base.
238 (check_match): Adjust to use mock_index directly.
239 (check_find_bounds_finds)
240 (test_mapped_index_find_name_component_bounds): Adjust to work
241 with a mapped_index_base.
242
243 2017-12-08 Pedro Alves <palves@redhat.com>
244
245 * dwarf2read.c (struct mapped_index_base): New, partially factored
246 out from ...
247 (struct mapped_index): ... this. Inherit mapped_index_base.
248 (mapped_index::symbol_name_slot_invalid):
249 (mapped_index::symbol_name_at): Add override marker.
250 (mapped_index::symbol_name_count): New.
251 (struct mapped_debug_names): Inherit mapped_index_base.
252 (mapped_debug_names::symbol_name_at): New.
253 (mapped_debug_names::symbol_name_count): New.
254 (mapped_index::find_name_components_bounds): Rename to ...
255 (mapped_index_base::find_name_components_bounds): ... this.
256 (mapped_index::build_name_components): Rename to ...
257 (mapped_index_base::build_name_components): ... this. Adjust to
258 use mapped_index_base::symbol_name_count and
259 mapped_index_base::symbol_name_slot_invalid.
260 (dw2_expand_symtabs_matching_symbol): Take a mapped_index_base
261 instead of a mapped_index. Use
262 dw2_expand_symtabs_matching_symbol.
263
264 2017-12-08 Pedro Alves <palves@redhat.com>
265
266 * dwarf2read.c (mapped_index::symbol_table_slot): New.
267 (mapped_index::address_table): Now a gdb::array_view of const
268 gdb_byte.
269 (mapped_index::symbol_table): Now a gdb::array_view of
270 symbol_table_slot.
271 (mapped_index::address_table_size)
272 (mapped_index::symbol_table_slots): Delete.
273 (create_addrmap_from_index): Adjust.
274 (find_slot_in_mapped_hash): Adjust.
275 (read_index_from_section): Adjust.
276 (dwarf2_read_index): Adjust.
277
278 2017-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
279 Pedro Alves <palves@redhat.com>
280
281 * defs.h (elf_sym_fns_debug_names): New declaration.
282 * dwarf2read.c: Include "hash_enum.h".
283 (mapped_debug_names): New.
284 (struct dwarf2_per_objfile): Add debug_names, debug_aranges and
285 debug_names_table.
286 (dwarf2_elf_names): Add ".debug_names" and ".debug_aranges".
287 (struct dwz_file): Add debug_names.
288 (dwarf2_per_objfile::locate_sections): Handle debug_names and
289 debug_aranges.
290 (locate_dwz_sections): Handle debug_names.
291 (create_signatured_type_table_from_debug_names)
292 (create_addrmap_from_aranges): New.
293 (dwarf2_read_index): Update function comment.
294 (dwarf5_augmentation): Moved up.
295 (read_debug_names_from_section, create_cus_from_debug_names_list)
296 (create_cus_from_debug_names, dwarf2_read_debug_names): New.
297 (dwarf5_djb_hash): Moved up.
298 (dw2_debug_names_iterator): New.
299 (read_indirect_string_at_offset): New declaration.
300 (mapped_debug_names::namei_to_name)
301 (dw2_debug_names_iterator::find_vec_in_debug_names)
302 (dw2_debug_names_iterator::next, dw2_debug_names_lookup_symbol)
303 (dw2_debug_names_dump, dw2_debug_names_expand_symtabs_for_function)
304 (dw2_debug_names_expand_symtabs_matching, dwarf2_debug_names_functions):
305 New.
306 (dwarf2_initialize_objfile): Return also elf_sym_fns_debug_names.
307 (debug_names::djb_hash): Rename it to dwarf5_djb_hash.
308 (debug_names::build): Update djb_hash caller.
309 (write_debug_names): Move out and rename augmentation to
310 dwarf5_augmentation.
311 * elfread.c (elf_sym_fns_debug_names): New.
312 * psymtab.h (dwarf2_debug_names_functions): New declaration.
313 * symfile.h (struct dwarf2_debug_sections): Add debug_names and
314 debug_aranges.
315 * xcoffread.c (dwarf2_xcoff_names): Add debug_names and debug_aranges.
316
317 2017-12-08 Pedro Alves <palves@redhat.com>
318
319 * common/hash_enum.h: New file.
320
321 2017-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
322
323 * dwarf2read.c (create_cu_from_index_list): New from ...
324 (create_cus_from_index_list): ... this function, use it.
325 (dw_expand_symtabs_matching_file_matcher)
326 (dw2_expand_symtabs_matching_one): New from ...
327 (dw2_expand_symtabs_matching): ... this function, use them.
328
329 2017-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
330
331 * defs.h (elf_sym_fns_lazy_psyms, elf_sym_fns_gdb_index): Move here
332 declarations from elfread.c.
333 (dwarf2_initialize_objfile): Change return value.
334 * elfread.c (elf_sym_fns_lazy_psyms, elf_sym_fns_gdb_index): Move these
335 declarations to defs.h.
336 (elf_symfile_read): Adjust dwarf2_initialize_objfile caller.
337 * symfile.h (dwarf2_initialize_objfile): Change return type.
338
339 2017-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
340 Pedro Alves <palves@redhat.com>
341
342 * contrib/gdb-add-index.sh (index): Rename to ...
343 (index4): ... here.
344 (index5, debugstr, debugstrmerge, debugstrerr): New variables.
345 Support also .debug_names and .debug_str.
346 * dwarf2read.c: Include cmath, set, list.
347 (INDEX_SUFFIX): Rename to ...
348 (INDEX4_SUFFIX): ... here.
349 (INDEX5_SUFFIX, DEBUG_STR_SUFFIX): New.
350 (file_write(FILE *, const void *, size_t)): New.
351 (file_write(FILE *, const std::vector<Elem, Alloc> &)): New.
352 (data_buf::append_unsigned_leb128, data_buf::empty): New.
353 (data_buf::file_write): Use ::file_write.
354 (data_buf::c_str, dwarf5_djb_hash, debug_names)
355 (check_dwarf64_offsets): New.
356 (psyms_seen_size, write_gdbindex): New from
357 write_psymtabs_to_index code.
358 (dwarf5_gdb_augmentation, write_debug_names, assert_file_size)
359 (enum dw_index_kind): New.
360 (write_psymtabs_to_index): New parameter index_kind. Support
361 filename_str and out_file_str. Move code to write_gdbindex,
362 possibly call write_debug_names.
363 (save_gdb_index_command): New parameter -dwarf-5.
364 (_initialize_dwarf2_read): Document the new parameter -dwarf-5.
365
366 2017-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
367 Pedro Alves <palves@redhat.com>
368
369 * contrib/cc-with-tweaks.sh: Change interpreter to bash, incl. initial
370 comment.
371 (GDB_ADD_INDEX): New variable.
372 <$want_index>: Call $GDB_ADD_INDEX.
373
374 2017-12-08 Sergio Durigan Junior <sergiodj@redhat.com>
375
376 * dtrace-probe.c (dtrace_process_dof_probe): Do not declare a new
377 "expression_up" inside the TRY block.
378
379 2017-12-08 Yao Qi <yao.qi@linaro.org>
380
381 * breakpoint.c (update_watchpoint): Call
382 address_significant.
383
384 2017-12-08 Yao Qi <yao.qi@linaro.org>
385
386 * breakpoint.c (adjust_breakpoint_address): Call
387 address_significant.
388
389 2017-12-08 Yao Qi <yao.qi@linaro.org>
390
391 * aarch64-tdep.c (aarch64_gdbarch_init): Install gdbarch
392 significant_addr_bit.
393 * gdbarch.sh (significant_addr_bit): New.
394 * gdbarch.c, gdbarch.h: Re-generated.
395 * target.c (memory_xfer_partial): Call address_significant.
396 * utils.c (address_significant): New function.
397 * utils.h (address_significant): Declare.
398
399 2017-12-08 Tom Tromey <tom@tromey.com>
400
401 * printcmd.c (ui_printf): Update. Use std::vector.
402 * common/format.h (struct format_piece): Add constructor.
403 <string>: Now const.
404 (class format_pieces): New class.
405 (parse_format_string, free_format_pieces)
406 (free_format_pieces_cleanup): Remove.
407 * common/format.c (format_pieces::format_pieces): Rename from
408 parse_format_string. Update.
409 (free_format_pieces, free_format_pieces_cleanup): Remove.
410 * breakpoint.c (parse_cmd_to_aexpr): Update. Use std::vector.
411 * ax-gdb.h (gen_printf): Remove argument.
412 * ax-gdb.c (gen_printf): Remove "frags" argument.
413 (maint_agent_printf_command): Update. Use std::vector.
414
415 2017-12-08 Yao Qi <yao.qi@linaro.org>
416
417 PR breakpionts/22567
418 * linespec.c (minsym_found): Set sal.section.
419
420 2017-12-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
421
422 * configure.tgt (s390*-*-linux*): Add symfile-mem.o.
423
424 2017-12-07 Keith Seitz <keiths@redhat.com>
425
426 PR breakpoints/22569
427 * location.c (string_to_explicit_location): When terminating
428 parsing early, break out of enclosing loop instead of returning.
429
430 2017-12-07 Keith Seitz <keiths@redhat.com>
431
432 * NEWS (New commands): Mention set/show print type nested-type-limit.
433 * c-typeprint.c (c_type_print_base): Print out nested types.
434 * dwarf2read.c (struct typedef_field_list): Rename to ...
435 (struct decl_field_list): ... this. Change all uses.
436 (struct field_info) <nested_types_list, nested_types_list_count>:
437 New fields.
438 (add_partial_symbol): Look for nested type definitions in C++, too.
439 (dwarf2_add_typedef): Rename to ...
440 (dwarf2_add_type_defn): ... this.
441 (type_can_define_types): New function.
442 Update assertion to use type_can_define_types.
443 Permit NULL for a field's name.
444 (process_structure_scope): Handle child DIEs of types that can
445 define types.
446 Copy the list of nested types into the type struct.
447 * gdbtypes.h (struct typedef_field): Rename to ...
448 (struct decl_field): ... this. Change all uses.
449 [is_protected, is_private]: New fields.
450 (struct cplus_struct_type) <nested_types, nested_types_count>: New
451 fields.
452 (TYPE_NESTED_TYPES_ARRAY, TYPE_NESTED_TYPES_FIELD)
453 (TYPE_NESTED_TYPES_FIELD_NAME, TYPE_NESTED_TYPES_FIELD_TYPE)
454 (TYPE_NESTED_TYPES_COUNT, TYPE_NESTED_TYPES_FIELD_PROTECTED)
455 (TYPE_NESTED_TYPES_FIELD_PRIVATE): New macros.
456 * typeprint.c (type_print_raw_options, default_ptype_flags): Add
457 default value for print_nested_type_limit.
458 (print_nested_type_limit): New static variable.
459 (set_print_type_nested_types, show_print_type_nested_types): New
460 functions.
461 (_initialize_typeprint): Register new commands for set/show
462 `print-nested-type-limit'.
463 * typeprint.h (struct type_print_options) [print_nested_type_limit]:
464 New field.
465
466 2017-12-07 Tom Tromey <tom@tromey.com>
467
468 PR breakpoints/22511:
469 * breakpoint.c (commands_command_1): Don't throw an exception when
470 no commands have been read.
471
472 2017-12-07 Adam Stylinski <adam.stylinski@etegent.com>
473
474 PR c++/21222
475 * target-descriptions.c (print_c_tdesc::visit_pre): Change type of
476 range-for variable.
477
478 2017-12-07 Simon Marchi <simon.marchi@ericsson.com>
479
480 * common/selftest.h (struct selftest): Add virtual destructor.
481
482 2017-12-07 Phil Muldoon <pmuldoon@redhat.com>
483
484 * python/py-breakpoint.c (bppy_init): Use string_to_event_location
485 over basic location code. Implement explicit location keywords.
486 (bppy_init_validate_args): New function.
487 * NEWS: Document Python explicit breakpoint locations.
488
489 2017-12-07 Joel Brobecker <brobecker@adacore.com>
490
491 * MAINTAINERS: Restore target entries for m68hc11-elf,
492 score-elf and xstormy16-elf, incorrectly removed in a previous
493 patch meant to only update the list of active maintainers.
494
495 2017-12-06 Pedro Alves <palves@redhat.com>
496
497 * break-catch-syscall.c (insert_catch_syscall)
498 (remove_catch_syscall): Adjust to pass reference to
499 inf_data->syscalls_counts directly via gdb::array_view.
500 * fbsd-nat.c (fbsd_set_syscall_catchpoint): Adjust to use bool
501 and gdb::array_view.
502 * linux-nat.c (linux_child_set_syscall_catchpoint): Likewise.
503 * remote.c (remote_set_syscall_catchpoint): Likewise.
504 * target-debug.h (target_debug_print_bool): New.
505 (define target_debug_print_gdb_array_view_const_int): New.
506 * target-delegates.c: Regenerate.
507 * target.h (target_ops) <to_set_syscall_catchpoint>: Use
508 gdb::array_view and bool.
509 (target_set_syscall_catchpoint): Likewise.
510
511 2017-12-06 Simon Marchi <simon.marchi@ericsson.com>
512
513 * break-catch-syscall.c (catch_syscall_completer): Get pointers
514 to syscall group strings after building the string vector.
515
516 2017-12-06 Pedro Alves <palves@redhat.com>
517
518 * remote.c (remote_query_supported): Don't send "xmlRegisters=" if
519 "qXfer:features:read"" is disabled.
520 (remote_write_qxfer, remote_read_qxfer, remote_search_memory):
521 Check packet_config_support instead of packet->support directly.
522
523 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
524
525 * target-descriptions.c (struct tdesc_feature) <registers>: Use
526 tdesc_reg_up typedef.
527 (struct target_desc) <features>: Use tdesc_feature_up typedef.
528
529 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
530
531 * target-descriptions.c (struct tdesc_type): Use default
532 destructor.
533 <u>: Remove.
534 <accept>: Remove.
535 (struct tdesc_type_builtin): New.
536 (struct tdesc_type_vector): New.
537 (struct tdesc_type_with_fields): New.
538 (tdesc_predefined_types): Change type to tdesc_type_builtin[].
539 (tdesc_gdb_type): Remove.
540 (tdesc_register_type): Adjust.
541 (tdesc_create_vector): Create tdesc_type_vector.
542 (tdesc_create_struct): Create tdesc_type_with_fields.
543 (tdesc_set_struct_size): Change parameter type.
544 (tdesc_create_union): Create tdesc_type_with_fields.
545 (tdesc_create_flags): Likewise.
546 (tdesc_create_enum): Likewise.
547 (tdesc_add_field): Change parameter type.
548 (tdesc_add_typed_bitfield): Likewise.
549 (tdesc_add_bitfield): Likewise.
550 (tdesc_add_flag): Likewise.
551 (tdesc_add_enum_value): Likewise.
552 (print_c_tdesc) <visit>: Remove overload with tdesc_type
553 parameter, add overloads for tdesc_type_builtin,
554 tdesc_type_with_fields and tdesc_type_vector.
555 <m_printed_type>: Remove.
556 <m_printed_element_type, m_printed_type_with_fields>: Add.
557 * target-descriptions.h (tdesc_create_enum): Change return type.
558 (tdesc_add_typed_bitfield): Change parameter type.
559 (tdesc_add_enum_value): Change parameter type.
560 * xml-tdesc.c (struct tdesc_parsing_data) <current_type>: Change
561 type to tdesc_type_with_fields.
562 (tdesc_start_struct): Adjust.
563 (tdesc_start_flags): Adjust.
564 (tdesc_start_enum): Adjust.
565 (tdesc_start_field): Adjust.
566 * arch/tdesc.h (struct tdesc_type_builtin): Forward-declare.
567 (struct tdesc_type_vector): Forward-declare.
568 (struct tdesc_type_with_fields): Forward-declare.
569 (tdesc_create_struct): Change return type.
570 (tdesc_create_union): Likewise.
571 (tdesc_create_flags): Likewise.
572 (tdesc_add_field): Change parameter type.
573 (tdesc_set_struct_size): Likewise.
574 (tdesc_add_bitfield): Likewise.
575 (tdesc_add_flag): Likewise.
576 * features: Re-generate C files.
577
578 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
579
580 * target-descriptions.c (tdesc_arch_reg): Remove typedef.
581 (struct tdesc_arch_reg): Add constructor.
582 (DEF_VEC_O (tdesc_arch_reg)): Remove.
583 (struct tdesc_arch_data): Initialize fields.
584 <arch_regs>: Change type to std::vector.
585 (target_find_description): Adjust.
586 (tdesc_find_type): Adjust.
587 (tdesc_data_init): Call tdesc_arch_data constructor.
588 (tdesc_data_alloc): Allocate tdesc_arch_data with new.
589 (tdesc_data_cleanup): Free data with delete.
590 (tdesc_numbered_register): Adjust.
591 (tdesc_find_arch_register): Adjust.
592 (tdesc_use_registers): Adjust.
593
594 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
595
596 * target-descriptions.c (tdesc_type_field): Remove typedef.
597 (DEF_VEC_O (tdesc_type_field)): Remove.
598 (struct tdesc_type_field): Add constructor.
599 <name>: Change type to std::string.
600 (struct tdesc_type) <tdesc_type>: Instantiate vector if the type
601 kind uses it.
602 <~tdesc_type>: Destroy vector if the type kind uses it.
603 <u::u::fields>: Change type to std::vector.
604 (tdesc_gdb_type): Adjust.
605 (tdesc_add_field): Adjust.
606 (tdesc_add_typed_bitfield): Adjust.
607 (tdesc_add_field): Adjust.
608 (tdesc_add_enum_value): Adjust.
609 (class print_c_tdesc) <visit>: Adjust.
610
611 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
612
613 * target-descriptions.c (struct tdesc_type) <name>: Change type
614 to std::string.
615 <~tdesc_type>: Don't manually free name.
616 <operator==>: Adjust.
617 (tdesc_named_type): Adjust.
618 (tdesc_find_type): Adjust.
619 (tdesc_gdb_type): Adjust.
620 (class print_c_tdesc) <visit>: Adjust.
621
622 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
623
624 * target-descriptions.c (tdesc_type_p): Remove typedef.
625 (DEF_VEC_P (tdesc_type_p)): Remove.
626 (struct tdesc_feature) <types>: Change type to std::vector.
627 <~tdesc_feature>: Replace with default implementation.
628 <accept>: Adjust.
629 (tdesc_named_type): Adjust.
630 (tdesc_create_vector): Adjust.
631 (tdesc_create_struct): Adjust.
632 (tdesc_create_union): Adjust.
633 (tdesc_create_flags): Adjust.
634 (tdesc_create_enum): Adjust.
635
636 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
637
638 * target-descriptions.c (struct tdesc_reg) <tdesc_reg>: Change
639 type of name_ parameter, adjust to std::string change.
640 <name, group, type>: Change type to std::string.
641 <~tdesc_reg>: Replace with default implementation.
642 <operator==>: Adjust.
643 (tdesc_find_register_early): Adjust.
644 (tdesc_register_name): Adjust.
645 (tdesc_register_type): Adjust.
646 (tdesc_register_in_reggroup_p): Adjust.
647 (class print_c_tdesc) <visit>: Adjust.
648 (class print_c_feature) <visit>: Adjust.
649 * features/arc-arcompact.c: Re-generate.
650 * features/arc-v2.c: Re-generate.
651
652 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
653
654 * target-descriptions.c (tdesc_reg_p): Remove typedef.
655 (DEF_VEC_P (tdesc_reg_p)): Remove.
656 (struct tdesc_feature) <registers>: Change type to std::vector.
657 <~tdesc_feature>: Don't manually free registers.
658 <accept>: Adjust.
659 <operator==>: Adjust.
660 (tdesc_has_registers): Adjust.
661 (tdesc_find_register_early): Adjust.
662 (tdesc_use_registers): Adjust.
663 (tdesc_create_reg): Adjust.
664
665 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
666
667 * target-descriptions.c (tdesc_feature) <name>: Change type to
668 std::string.
669 <~tdesc_feature>: Don't manually free name.
670 <operator==>: Adjust.
671 (tdesc_find_feature): Adjust.
672 (tdesc_feature_name): Adjust.
673 (class print_c_tdesc) <visit_pre>: Adjust.
674 (class print_c_feature) <visit_pre>: Adjust.
675
676 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
677
678 * target-descriptions.c (tdesc_feature_p): Remove typedef.
679 (DEF_VEC_P (tdesc_feature_p)): Remove.
680 (struct target_desc) <features>: Change type to std::vector.
681 <~target_desc>: Replace with default implementation.
682 <accept>: Adjust.
683 <operator==>: Adjust.
684 (tdesc_has_registers): Adjust.
685 (tdesc_find_feature): Adjust.
686 (tdesc_use_registers): Adjust.
687 (tdesc_create_feature): Adjust.
688
689 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
690
691 * target-descriptions.c (arch_p): Remove typedef.
692 (DEF_VEC_P (arch_p)): Remove.
693 (struct target_desc) <compatible>: Change type to std::vector.
694 <~target_desc>: Don't manually free compatible.
695 (tdesc_compatible_p): Adjust.
696 (tdesc_add_compatible): Adjust.
697 (class print_c_tdesc) <visit_pre>: Adjust.
698
699 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
700
701 * target-descriptions.c (property_s): Remove typedef.
702 (DEF_VEC_O (property_s)): Remove.
703 (struct target_desc) <properties>: Make an std::vector.
704 <~target_desc>: Don't manually free properties.
705 (tdesc_property): Adjust.
706 (set_tdesc_property): Adjust.
707 (class print_c_tdesc) <visit_pre>: Adjust.
708
709 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
710
711 * common/gdb_assert.h (gdb_static_assert): Redefine using
712 static_assert.
713
714 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
715
716 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
717 unused variables.
718 (ada_is_redundant_range_encoding): Likewise.
719 * ada-varobj.c (ada_varobj_get_value_of_array_variable):
720 Likewise.
721 * alpha-tdep.c (alpha_software_single_step): Likewise.
722 * arm-tdep.c (_initialize_arm_tdep): Likewise.
723 * auto-load.c (info_auto_load_cmd): Likewise.
724 * break-catch-syscall.c (insert_catch_syscall): Likewise.
725 (remove_catch_syscall): Likewise.
726 * breakpoint.c (condition_completer): Likewise.
727 (clear_command): Likewise.
728 (update_breakpoint_locations): Likewise.
729 * btrace.c (btrace_disable): Likewise.
730 (btrace_teardown): Likewise.
731 (btrace_maint_update_pt_packets): Likewise.
732 (maint_btrace_clear_cmd): Likewise.
733 * cli/cli-decode.c (lookup_cmd_1): Likewise.
734 (lookup_cmd_composition): Likewise.
735 * cli/cli-dump.c (scan_filename): Likewise.
736 (restore_command): Likewise.
737 * compile/compile-loc2c.c (compute_stack_depth): Likewise.
738 * compile/compile-object-load.c (compile_object_load): Likewise.
739 * compile/compile-object-run.c (compile_object_run): Likewise.
740 * compile/compile.c (compile_to_object): Likewise.
741 * completer.c (filename_completer): Likewise.
742 (complete_files_symbols): Likewise.
743 (complete_expression): Likewise.
744 * corelow.c (core_open): Likewise.
745 * ctf.c (ctf_start): Likewise.
746 (ctf_write_status): Likewise.
747 (ctf_write_uploaded_tsv): Likewise.
748 (ctf_write_definition_end): Likewise.
749 (ctf_open_dir): Likewise.
750 (ctf_xfer_partial): Likewise.
751 (ctf_trace_find): Likewise.
752 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
753 Likewise.
754 * dwarf2loc.c (allocate_piece_closure): Likewise.
755 (indirect_pieced_value): Likewise.
756 (dwarf2_evaluate_loc_desc_full): Likewise.
757 * dwarf2read.c (dw2_expand_marked_cus): Likewise.
758 (dw2_expand_symtabs_matching): Likewise.
759 (dw2_map_symbol_filenames): Likewise.
760 (read_and_check_comp_unit_head): Likewise.
761 (read_cutu_die_from_dwo): Likewise.
762 (lookup_dwo_unit): Likewise.
763 (read_comp_units_from_section): Likewise.
764 (dwarf2_compute_name): Likewise.
765 (handle_DW_AT_stmt_list): Likewise.
766 (create_cus_hash_table): Likewise.
767 (create_dwp_v2_section): Likewise.
768 (dwarf2_rnglists_process): Likewise.
769 (dwarf2_ranges_process): Likewise.
770 (dwarf2_record_block_ranges): Likewise.
771 (is_vtable_name): Likewise.
772 (read_formatted_entries): Likewise.
773 (skip_form_bytes): Likewise.
774 * elfread.c (elf_symtab_read): Likewise.
775 * exec.c (exec_file_command): Likewise.
776 * f-valprint.c (f_val_print): Likewise.
777 (info_common_command_for_block): Likewise.
778 * guile/guile.c (initialize_scheme_side): Likewise.
779 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Likewise.
780 * guile/scm-cmd.c (cmdscm_completer): Likewise.
781 (gdbscm_register_command_x): Likewise.
782 * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
783 * guile/scm-param.c (gdbscm_parameter_value): Likewise.
784 * guile/scm-ports.c (file_port_magic): Likewise.
785 * guile/scm-pretty-print.c (ppscm_search_pp_list): Likewise.
786 (ppscm_pretty_print_one_value): Likewise.
787 (ppscm_print_children): Likewise.
788 * guile/scm-string.c (gdbscm_string_to_argv): Likewise.
789 * guile/scm-symtab.c (gdbscm_sal_symtab): Likewise.
790 * guile/scm-type.c (gdbscm_type_next_field_x): Likewise.
791 * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
792 * i386-tdep.c (i386_register_reggroup_p): Likewise.
793 * infcmd.c (run_command_1): Likewise.
794 (until_next_fsm_clean_up): Likewise.
795 * linespec.c (linespec_complete): Likewise.
796 (find_label_symbols): Likewise.
797 * m2-valprint.c (m2_val_print): Likewise.
798 * memattr.c (require_user_regions): Likewise.
799 (lookup_mem_region): Likewise.
800 (disable_mem_command): Likewise.
801 (mem_delete): Likewise.
802 * mep-tdep.c (mep_register_name): Likewise.
803 (mep_analyze_prologue): Likewise.
804 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Likewise.
805 * mi/mi-interp.c (mi_on_sync_execution_done): Likewise.
806 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
807 * microblaze-linux-tdep.c (microblaze_linux_init_abi): Likewise.
808 * minidebug.c (lzma_open): Likewise.
809 * minsyms.c (lookup_minimal_symbol): Likewise.
810 * mips-linux-tdep.c (mips64_fill_fpregset): Likewise.
811 * mips-tdep.c (mips_stub_frame_sniffer): Likewise.
812 (mips_o64_return_value): Likewise.
813 (mips_single_step_through_delay): Likewise.
814 (_initialize_mips_tdep): Likewise.
815 * nios2-tdep.c (nios2_push_dummy_call): Likewise.
816 (nios2_software_single_step): Likewise.
817 * parse.c (find_minsym_type_and_address): Likewise.
818 * psymtab.c (psym_relocate): Likewise.
819 * python/py-breakpoint.c (bppy_get_commands): Likewise.
820 (gdbpy_breakpoint_modified): Likewise.
821 * python/py-infevents.c (create_inferior_call_event_object):
822 Likewise.
823 * python/py-record-btrace.c (btpy_list_item): Likewise.
824 * python/py-type.c (typy_str): Likewise.
825 * python/py-value.c (valpy_call): Likewise.
826 * python/python.c (do_start_initialization): Likewise.
827 * record-btrace.c (record_btrace_insn_history_range): Likewise.
828 (record_btrace_call_history_range): Likewise.
829 (record_btrace_record_method): Likewise.
830 (record_btrace_xfer_partial): Likewise.
831 (btrace_get_frame_function): Likewise.
832 * record-full.c (record_full_open): Likewise.
833 * record.c (get_context_size): Likewise.
834 * registry.h (DEFINE_REGISTRY): Likewise.
835 * remote-fileio.c (remote_fileio_request): Likewise.
836 * remote.c (remote_update_thread_list): Likewise.
837 (remote_check_symbols): Likewise.
838 (remote_commit_resume): Likewise.
839 (remote_interrupt): Likewise.
840 (remote_insert_breakpoint): Likewise.
841 (compare_sections_command): Likewise.
842 * rust-exp.y (super_name): Likewise.
843 (lex_string): Likewise.
844 (convert_ast_to_type): Likewise.
845 (convert_ast_to_expression): Likewise.
846 * rust-lang.c (rust_print_struct_def): Likewise.
847 (rust_print_type): Likewise.
848 (rust_evaluate_subexp): Likewise.
849 * rx-tdep.c (rx_register_type): Likewise.
850 * ser-event.c (serial_event_clear): Likewise.
851 * serial.c (serial_open): Likewise.
852 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
853 * symfile.c (section_is_overlay): Likewise.
854 (overlay_unmapped_address): Likewise.
855 (overlay_mapped_address): Likewise.
856 (simple_overlay_update_1): Likewise.
857 (simple_overlay_update): Likewise.
858 * symtab.c (symbol_find_demangled_name): Likewise.
859 (search_symbols): Likewise.
860 * target-descriptions.c (tdesc_predefined_type): Likewise.
861 * target.c (target_commit_resume): Likewise.
862 * thread.c (print_selected_thread_frame): Likewise.
863 * top.c (new_ui_command): Likewise.
864 (gdb_readline_no_editing): Likewise.
865 * tracefile-tfile.c (tfile_open): Likewise.
866 * tracepoint.c (create_tsv_from_upload): Likewise.
867 * utils.c (quit): Likewise.
868 (defaulted_query): Likewise.
869 * valarith.c (value_concat): Likewise.
870 * xml-syscall.c (xml_list_syscalls_by_group): Likewise.
871 * xml-tdesc.c (target_fetch_description_xml): Likewise.
872 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
873 (xtensa_pseudo_register_write): Likewise.
874
875 2017-12-04 Tom Tromey <tom@tromey.com>
876
877 * NEWS: Mention Rust trait object inspection.
878
879 2017-12-04 Pedro Alves <palves@redhat.com>
880
881 PR gdb/22499
882 * amd64-tdep.c (amd64_insn::rex_offset): Rename to...
883 (amd64_insn::enc_prefix_offset): ... this, and tweak comment.
884 (vex2_prefix_p, vex3_prefix_p): New functions.
885 (amd64_get_insn_details): Adjust to rename. Also skip VEX2 and
886 VEX3 prefixes.
887 (fixup_riprel): Set VEX3.!B.
888
889 2017-12-03 Simon Marchi <simon.marchi@ericsson.com>
890
891 * target.h (mem_region_vector): Remove.
892 (struct target_ops) <to_memory_map>: Change return type to
893 std::vector<mem_region>.
894 * target-debug.h (target_debug_print_mem_region_vector): Rename
895 to ...
896 (target_debug_print_std_vector_mem_region): ... this.
897 * target-delegates.c: Re-generate.
898
899 2017-12-03 Pedro Alves <palves@redhat.com>
900
901 * make-target-delegates (munge_type): Also munge '<', '>', and
902 ':'. Avoid double underscores in identifiers, and trailing
903 underscores.
904 * target-debug.h
905 (target_debug_print_VEC_static_tracepoint_marker_p__p): Rename to
906 ...
907 (target_debug_print_VEC_static_tracepoint_marker_p_p): ... this.
908 * target-delegates.c: Regenerate.
909
910 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
911
912 * common/poison.h (XDELETE): Fix typo.
913
914 2017-12-01 Andrew Cagney <cagney@redhat.com>
915 Joel Brobecker <brobecker@adacore.com>
916 Sergio Durigan Junior <sergiodj@redhat.com>
917
918 * NEWS (Changes since GDB 8.0: Mention new '--readnever'
919 feature.
920 * coffread.c (coff_symfile_read): Do not map over sections with
921 'coff_locate_sections' if readnever is on.
922 * dwarf2read.c (dwarf2_has_info): Return 0 if
923 readnever is on.
924 * elfread.c (elf_symfile_read): Do not map over sections with
925 'elf_locate_sections' if readnever is on.
926 * main.c (validate_readnow_readnever): New function.
927 (captured_main_1): Add support for --readnever.
928 (print_gdb_help): Document --readnever.
929 * objfile-flags.h (enum objfile_flag) <OBJF_READNEVER>: New
930 flag.
931 * symfile.c (readnever_symbol_files): New global.
932 (symbol_file_add_with_addrs): Set 'OBJF_READNEVER' when
933 'READNEVER_SYMBOL_FILES' is set.
934 (validate_readnow_readnever): New function.
935 (symbol_file_command): Handle '-readnever' option.
936 Call 'validate_readnow_readnever'.
937 (add_symbol_file_command): Handle '-readnever' option.
938 Call 'validate_readnow_readnever'.
939 (_initialize_symfile): Document new '-readnever' option for
940 both 'symbol-file' and 'add-symbol-file' commands.
941 * top.h (readnever_symbol_files): New extern global.
942 * xcoffread.c (xcoff_initial_scan): Do not read debug
943 information if readnever is on.
944
945 2017-12-01 Sergio Durigan Junior <sergiodj@redhat.com>
946
947 * symfile.c (symbol_file_command): Call
948 'symbol_file_add_main_1' only after processing all command
949 line options.
950 (add_symbol_file_command): Modify logic to make arguments
951 position-independent.
952
953 2017-12-01 Joel Brobecker <brobecker@adacore.com>
954
955 * ada-lang.c (symbol_list_obstack): Delete.
956 (resolve_subexp): Make sure "candidates" gets xfree'ed.
957 (ada_lookup_symbol_list_worker): Remove the limitation that
958 the result is only good until the next call, now making it
959 the responsibility of the caller to free the result when no
960 longer needed. Adjust the function's intro comment accordingly.
961 (ada_lookup_symbol_list): Adjust the function's intro comment.
962 (ada_iterate_over_symbols): Make sure "results" gets xfree'ed.
963 (ada_lookup_encoded_symbol, get_var_value): Likewise.
964 (_initialize_ada_language): Remove symbol_list_obstack
965 initialization.
966 * ada-exp.y (block_lookup): Make sure "syms" gets xfree'ed.
967 (write_var_or_type, write_name_assoc): Likewise.
968
969 2017-12-01 Tom Tromey <tom@tromey.com>
970
971 * Makefile.in (all_deps_files): New variable.
972 Include .Po files using all_deps_files.
973
974 2017-12-01 Joel Brobecker <brobecker@adacore.com>
975
976 * MAINTAINERS: Update list of maintainers, moving those who
977 stepped down or became inactive to the "Past Maintainers"
978 section.
979
980 2017-11-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
981
982 * configure.ac Don't check for sys/fault.h, sys/syscall.h,
983 sys/proc.h.
984 (NEW_PROC_API): Remove.
985 (prsysent_t, pr_sigset_t, pr_sigaction64_t, pr_siginfo64_t):
986 Likewise.
987 * common/common.m4 (GDB_AC_COMMON): Don't check for sys/syscall.h.
988 * configure: Regenerate.
989 * config.in: Regenerate.
990 * gdbserver/configure: Regenerate.
991 * gdbserver/config.in: Regenerate.
992
993 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Remove
994 NEW_PROC_API test.
995 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Likewise.
996
997 * linux-btrace.c: Remove HAVE_SYS_SYSCALL_H test.
998
999 * proc-api.c: Remove !NEW_PROC_API support.
1000 Remove HAVE_SYS_PROC_H and HAVE_SYS_USER_H tests.
1001 Remove tests for macros always defined on Solaris.
1002 * proc-events.c: Remove !NEW_PROC_API support.
1003 Remove Remove HAVE_SYS_SYSCALL_H, HAVE_SYS_PROC_H and
1004 HAVE_SYS_USER_H tests.
1005 (init_syscall_table): Remove non-Solaris syscalls.
1006 Remove tests for syscalls present on all Solaris versions.
1007 Add missing Solaris 10+ syscalls.
1008 (signal_table): Remove non-Solaris signals.
1009 Remove tests for signals present on all Solaris versions.
1010 (fault_table): Remove non-Solaris faults.
1011 Remove tests for faults present on all Solaris versions.
1012 * proc-flags.c: Remove !NEW_PROC_API support.
1013 (pr_flag_table): Remove non-Solaris and pre-Solaris 7 comments.
1014 Remove non-Solaris flags.
1015 * proc-why.c: Remove !NEW_PROC_API support.
1016 (pr_why_table): Remove meaningless comments.
1017 Remove tests for reasons present on all Solaris versions.
1018 Remove OSF/1 cases.
1019 (proc_prettyfprint_why): Likewise.
1020
1021 * procfs.c: Remove !NEW_PROC_API and DYNAMIC_SYSCALLS support.
1022 Remove HAVE_SYS_FAULT_H and HAVE_SYS_SYSCALL_H tests.
1023 Remove WA_READ test, IRIX watchpoint support.
1024 (gdb_sigset_t, gdb_sigaction_t, gdb_siginfo_t): Replace by base
1025 types. Change users.
1026 (gdb_praddset, gdb_prdelset, gdb_premptysysset, gdb_praddsysset)
1027 (gdb_prdelset, gdb_pr_issyssetmember): Replace by base macros.
1028 Change callers.
1029 Remove CTL_PROC_NAME_FMT tests.
1030 (gdb_prstatus_t, gdb_lwpstatus_t): Replace by base types. Change
1031 users.
1032 (sysset_t_size): Remove. Use sizeof (sysset_t) in callers.
1033 Remove PROCFS_DONT_PIOCSSIG_CURSIG support.
1034 (proc_modify_flag): Replace GDBRESET by PCUNSET.
1035 Remove PR_ASYNC, PR_KLC tests.
1036 (proc_unset_inherit_on_fork): Remove PR_ASYNC test.
1037 (proc_parent_pid): Remove PCWATCH etc. tests.
1038 (proc_set_watchpoint): Remove !PCWATCH && !PIOCSWATCH support.
1039 Remove PCAGENT test.
1040 (proc_get_nthreads) [PIOCNTHR && PIOCTLIST]: Remove.
1041 Remove SYS_lwpcreate || SYS_lwp_create test.
1042 (proc_get_current_thread): Likewise.
1043 [PIOCNTHR && PIOCTLIST]: Remove.
1044 [PIOCLSTATUS]: Remove.
1045 (procfs_debug_inferior): Remove non-Solaris cases, conditionals.
1046 [PRFS_STOPEXEC]: Remove.
1047 (syscall_is_lwp_exit): Remove non-Solaris cases, conditionals.
1048 (syscall_is_exit): Likewise.
1049 (syscall_is_exec): Likewise.
1050 (syscall_is_lwp_create): Likewise.
1051 Remove SYS_syssgi support.
1052 (procfs_wait): Remove PR_ASYNC, !PIOCSSPCACT tests.
1053 [SYS_syssgi]: Remove.
1054 Remove non-Solaris cases, conditionals.
1055 (unconditionally_kill_inferior) [PROCFS_NEED_PIOCSSIG_FOR_KILL]:
1056 Remove.
1057 (procfs_init_inferior) [SYS_syssgi]: Remove.
1058 (procfs_set_exec_trap) [PRFS_STOPEXEC]: Remove.
1059 (procfs_inferior_created) [SYS_syssgi]: Remove.
1060 (procfs_set_watchpoint): Remove !AIX5 test.
1061 (procfs_stopped_by_watchpoint): Remove FLTWATCH test, FLTKWATCH
1062 case.
1063 (mappingflags) [MA_PHYS]: Remove.
1064 (info_mappings_callback): Remove PCAGENT test.
1065 Remove PIOCOPENLWP || PCAGENT test.
1066
1067 2017-11-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1068
1069 * sol-thread.c (info_solthreads): Constify args.
1070 Cast args to void *.
1071
1072 2017-11-29 John Baldwin <jhb@FreeBSD.org>
1073
1074 * target-float.c [HAVE_LIBMPFR]: Define MPFR_USE_INTMAX_T.
1075
1076 2017-11-29 Joel Brobecker <brobecker@adacore.com>
1077
1078 * ada-lang.c (to_fixed_range_type): Make sure that the size
1079 of the range type being returned is the same as the size
1080 of the range type being fixed.
1081
1082 2017-11-29 Pedro Alves <palves@redhat.com>
1083
1084 PR c++/19436
1085 * NEWS: Mention setting breakpoints on functions with C++ ABI
1086 tags.
1087 * completer.h (completion_match_for_lcd) <match,
1088 mark_ignored_range>: New methods.
1089 <finish>: Consider ignored ranges.
1090 <clear>: Clear ignored ranges.
1091 <m_ignored_ranges, m_finished_storage>: New fields.
1092 * cp-support.c (cp_search_name_hash): Ignore ABI tags.
1093 (cp_symbol_name_matches_1, cp_fq_symbol_name_matches): Pass the
1094 completion_match_for_lcd pointer to strncmp_iw_with_mode.
1095 (test_cp_symbol_name_cmp): Add [abi:...] tags unit tests.
1096 * language.c (default_symbol_name_matcher): Pass the
1097 completion_match_for_lcd pointer to strncmp_iw_with_mode.
1098 * linespec.c (linespec_lexer_lex_string): Don't tokenize ABI tags.
1099 * utils.c (skip_abi_tag): New function.
1100 (strncmp_iw_with_mode): Add completion_match_for_lcd parameter.
1101 Handle ABI tags.
1102 * utils.h (strncmp_iw_with_mode): Add completion_match_for_lcd
1103 parameter.
1104
1105 2017-11-29 Pedro Alves <palves@redhat.com>
1106
1107 PR c++/19436
1108 * NEWS: Mention setting breakpoints on functions with C++ ABI
1109 tags.
1110 * completer.h (completion_match_for_lcd) <match,
1111 mark_ignored_range>: New methods.
1112 <finish>: Consider ignored ranges.
1113 <clear>: Clear ignored ranges.
1114 <m_ignored_ranges, m_finished_storage>: New fields.
1115 * cp-support.c (cp_search_name_hash): Ignore ABI tags.
1116 (cp_symbol_name_matches_1, cp_fq_symbol_name_matches): Pass the
1117 completion_match_for_lcd pointer to strncmp_iw_with_mode.
1118 (test_cp_symbol_name_cmp): Add [abi:...] tags unit tests.
1119 * language.c (default_symbol_name_matcher): Pass the
1120 completion_match_for_lcd pointer to strncmp_iw_with_mode.
1121 * linespec.c (linespec_lexer_lex_string): Don't tokenize ABI tags.
1122 * utils.c (skip_abi_tag): New function.
1123 (strncmp_iw_with_mode): Add completion_match_for_lcd parameter.
1124 Handle ABI tags.
1125 * utils.h (strncmp_iw_with_mode): Add completion_match_for_lcd
1126 parameter.
1127
1128 2017-11-29 Pedro Alves <palves@redhat.com>
1129
1130 * NEWS: Mention that breakpoints on C++ functions are now set on
1131 on all namespaces/classes by default, and mention "break
1132 -qualified".
1133 * ax-gdb.c (agent_command_1): Adjust to pass a
1134 symbol_name_match_type to new_linespec_location.
1135 * breakpoint.c (parse_breakpoint_sals): Adjust to
1136 get_linespec_location's return type change.
1137 (strace_marker_create_sals_from_location): Adjust to pass a
1138 symbol_name_match_type to new_linespec_location.
1139 (strace_marker_decode_location): Adjust to get_linespec_location's
1140 return type change.
1141 (strace_command): Adjust to pass a symbol_name_match_type to
1142 new_linespec_location.
1143 (LOCATION_HELP_STRING): Add paragraph about wildmatching, and
1144 mention "-qualified".
1145 * c-lang.c (cplus_language_defn): Install cp_search_name_hash.
1146 * completer.c (explicit_location_match_type::MATCH_QUALIFIED): New
1147 enumerator.
1148 (complete_address_and_linespec_locations): New parameter
1149 'match_type'. Pass it down.
1150 (explicit_options): Add "-qualified".
1151 (collect_explicit_location_matches): Pass the requested match type
1152 to the linespec completers. Handle MATCH_QUALIFIED.
1153 (location_completer): Handle "-qualified" combined with linespecs.
1154 * cp-support.c (cp_search_name_hash): New.
1155 (cp_symbol_name_matches_1): Implement wild matching for C++.
1156 (cp_fq_symbol_name_matches): Reimplement.
1157 (cp_get_symbol_name_matcher): Return different matchers depending
1158 on the lookup name's match type.
1159 (selftests::test_cp_symbol_name_matches): Add wild matching tests.
1160 * cp-support.h (cp_search_name_hash): New declaration.
1161 * dwarf2read.c
1162 (selftests::dw2_expand_symtabs_matching::test_symbols): Add
1163 symbols.
1164 (test_dw2_expand_symtabs_matching_symbol): Add wild matching
1165 tests.
1166 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Adjust to
1167 pass a symbol_name_match_type to new_linespec_location.
1168 * linespec.c (linespec_parse_basic): Lookup function symbols using
1169 the parser's symbol name match type.
1170 (convert_explicit_location_to_linespec): New
1171 symbol_name_match_type parameter. Pass it down to
1172 find_linespec_symbols.
1173 (convert_explicit_location_to_sals): Pass the location's name
1174 match type to convert_explicit_location_to_linespec.
1175 (parse_linespec): New match_type parameter. Save it in the
1176 parser.
1177 (linespec_parser_new): Default to symbol_name_match_type::WILD.
1178 (linespec_complete_function): New symbol_name_match_type
1179 parameter. Use it.
1180 (complete_linespec_component): Pass down the parser's recorded
1181 name match type.
1182 (linespec_complete_label): New symbol_name_match_type parameter.
1183 Use it.
1184 (linespec_complete): New symbol_name_match_type parameter. Save
1185 it in the parser and pass it down. Adjust to
1186 get_linespec_location's prototype change.
1187 (find_function_symbols, find_linespec_symbols): New
1188 symbol_name_match_type parameter. Pass it down instead of
1189 assuming symbol_name_match_type::WILD.
1190 * linespec.h (linespec_complete, linespec_complete_function)
1191 (linespec_complete_label): New symbol_name_match_type parameter.
1192 * location.c (event_location::linespec_location): Now a struct
1193 linespec_location.
1194 (EL_LINESPEC): Adjust.
1195 (initialize_explicit_location): Default to
1196 symbol_name_match_type::WILD.
1197 (new_linespec_location): New symbol_name_match_type parameter.
1198 Record it in the location.
1199 (get_linespec_location): Now returns a struct linespec_location.
1200 (new_explicit_location): Also copy func_name_match_type.
1201 (explicit_to_string_internal)
1202 (string_to_explicit_location): Handle "-qualified".
1203 (copy_event_location): Adjust to LINESPEC_LOCATION type change.
1204 Copy symbol_name_match_type fields.
1205 (event_location_deleter::operator()): Adjust to LINESPEC_LOCATION
1206 type change.
1207 (event_location_to_string): Adjust to LINESPEC_LOCATION type
1208 change. Handle "-qualfied".
1209 (string_to_explicit_location): Handle "-qualified".
1210 (string_to_event_location_basic): New symbol_name_match_type
1211 parameter. Pass it down.
1212 (string_to_event_location): Handle "-qualified".
1213 * location.h (struct linespec_location): New.
1214 (explicit_location::func_name_match_type): New field.
1215 (new_linespec_location): Now returns a const linespec_location *.
1216 (string_to_event_location_basic): New symbol_name_match_type
1217 parameter.
1218 (explicit_completion_info::saw_explicit_location_option): New
1219 field.
1220 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Adjust to pass a
1221 symbol_name_match_type to new_linespec_location.
1222 * python/py-breakpoint.c (bppy_init): Likewise.
1223 * python/python.c (gdbpy_decode_line): Likewise.
1224
1225 2017-11-29 Pedro Alves <palves@redhat.com>
1226
1227 * ada-lang.c (ada_lookup_name_info::matches): Change type of
1228 parameter from completion_match to completion_match_result.
1229 Adjust.
1230 (do_wild_match, do_full_match, ada_symbol_name_matches): Likewise.
1231 * completer.c (completion_tracker::maybe_add_completion): Add
1232 match_for_lcd parameter and use it.
1233 (completion_tracker::add_completion): Likewise.
1234 * completer.h (class completion_match_for_lcd): New class.
1235 (completion_match_result::match_for_lcd): New field.
1236 (completion_match_result::set_match): New method.
1237 (completion_tracker): Add comments.
1238 (completion_tracker::add_completion): Add match_for_lcd parameter.
1239 (completion_tracker::reset_completion_match_result): Reset
1240 match_for_lcd too.
1241 (completion_tracker::maybe_add_completion): Add match_for_lcd
1242 parameter.
1243 (completion_tracker::m_lowest_common_denominator_unique): Extend
1244 comments.
1245 * cp-support.c (cp_symbol_name_matches_1)
1246 (cp_fq_symbol_name_matches): Change type of parameter from
1247 completion_match to completion_match_result. Adjust.
1248 * language.c (default_symbol_name_matcher): Change type of
1249 parameter from completion_match to completion_match_result.
1250 Adjust.
1251 * language.h (completion_match_for_lcd): Forward declare.
1252 (default_symbol_name_matcher): Change type of parameter from
1253 completion_match to completion_match_result.
1254 * symtab.c (compare_symbol_name): Adjust.
1255 (completion_list_add_name): Pass the match_for_lcd to the tracker.
1256 * symtab.h (ada_lookup_name_info::matches): Change type of
1257 parameter from completion_match to completion_match_result.
1258 (symbol_name_matcher_ftype): Likewise, and update comments.
1259
1260 2017-11-29 Pedro Alves <palves@redhat.com>
1261
1262 * linespec.c (minsym_found, add_minsym): Use msymbol_is_function.
1263 * minsyms.c (msymbol_is_text): Delete.
1264 (msymbol_is_function): New function.
1265 * minsyms.h (msymbol_is_text): Delete.
1266 (msymbol_is_function): New declaration.
1267 * symtab.c (find_function_alias_target): Use msymbol_is_function.
1268
1269 2017-11-29 Tom Tromey <tom@tromey.com>
1270
1271 * Makefile.in (distclean): Handle the case where rmdir fails.
1272
1273 2017-11-29 Tom Tromey <tom@tromey.com>
1274
1275 * symfile.c (_initialize_symfile): Update usage text for
1276 add-symbol-file, symbol-file, load.
1277
1278 2017-11-29 Tom Tromey <tom@tromey.com>
1279
1280 * symfile.c (add_symbol_file_command): Error if some arguments to
1281 -s are missing. Change unrecognized-argument error message.
1282 (_initialize_symfile): Fix usage text for add-symbol-file.
1283
1284 2017-11-27 Tom Tromey <tom@tromey.com>
1285
1286 * Makefile.in (REMOTE_OBS): Remove.
1287 (SFILES): Remove remote sources.
1288 (COMMON_SFILES): Add remote sources.
1289 (ALLDEPFILES): Remove dcache.c.
1290
1291 2017-11-27 Tom Tromey <tom@tromey.com>
1292
1293 * Makefile.in (SUBDIR_TARGET_SRCS, SUBDIR_TARGET_OBS): New
1294 variables.
1295 (SFILES): Use SUBDIR_TARGET_SRCS.
1296 (COMMON_OBS): Use SUBDIR_TARGET_OBS. Remove waitstatus.o.
1297 (CONFIG_SRC_SUBDIR): Add target.
1298 (%.o): Remove target rule.
1299
1300 2017-11-27 Tom Tromey <tom@tromey.com>
1301
1302 * Makefile.in (COMMON_OBS): Remove filename-seen-cache.o,
1303 registry.o, thread-fsm.o, debug.o.
1304 (COMMON_SFILES): Add filename-seen-cache.c, registry.c,
1305 thread-fsm.c, debug.c.
1306
1307 2017-11-27 Tom Tromey <tom@tromey.com>
1308
1309 * Makefile.in (COMMON_SFILES): New.
1310 (SFILES): Move some entries to COMMON_SFILES.
1311 (COMMON_OBS): Use COMMON_SFILES.
1312
1313 2017-11-27 Tom Tromey <tom@tromey.com>
1314
1315 * Makefile.in (YYFILES): Update comment.
1316 (YYOBJ): Redefine.
1317
1318 2017-11-27 Tom Tromey <tom@tromey.com>
1319
1320 * Makefile.in (SUBDIR_PYTHON_OBS): Redefine.
1321 (CONFIG_SRC_SUBDIR): Add python.
1322 (%.o): Remove python rule.
1323 (python/%.o): New rule.
1324 * configure: Rebuild.
1325 * configure.ac (CONFIG_OBS): Refer to python/python.o
1326
1327 2017-11-27 Tom Tromey <tom@tromey.com>
1328
1329 * configure: Rebuild.
1330 * configure.ac (CONFIG_OBS): Refer to guile/guile.o.
1331 * Makefile.in (SUBDIR_GUILE_OBS): Redefine.
1332 (CONFIG_SRC_SUBDIR): Add guile.
1333 (%.o): Remove guile rule.
1334
1335 2017-11-27 Tom Tromey <tom@tromey.com>
1336
1337 * Makefile.in (SUBDIR_UNITTESTS_OBS): Redefine.
1338 (%.o): Remove unittests rule.
1339 (CONFIG_SRC_SUBDIR): Add unittests.
1340
1341 2017-11-27 Tom Tromey <tom@tromey.com>
1342
1343 * Makefile.in (SUBDIR_TUI_OBS): Redefine.
1344 (CONFIG_SRC_SUBDIR): Add tui.
1345 (%.o): Remove tui rule.
1346
1347 2017-11-27 Tom Tromey <tom@tromey.com>
1348
1349 * Makefile.in (SUBDIR_GCC_COMPILE_OBS): Redefine.
1350 (%.o): Remove compile rule.
1351 (CONFIG_SRC_SUBDIR): Add compile.
1352
1353 2017-11-27 Tom Tromey <tom@tromey.com>
1354
1355 * Makefile.in (SUBDIR_MI_OBS): Redefine.
1356 (%.o): Remove mi rule.
1357 (CONFIG_SRC_SUBDIR): Add mi.
1358 (COMMON_OBS): Use mi/mi-common.o
1359
1360 2017-11-27 Tom Tromey <tom@tromey.com>
1361
1362 * Makefile.in (SUBDIR_CLI_OBS): Redefine.
1363 (%.o): Remove cli rule.
1364 (CONFIG_SRC_SUBDIR): Add cli.
1365
1366 2017-11-27 Tom Tromey <tom@tromey.com>
1367
1368 * configure.ac (CONFIG_SRC_SUBDIR): Don't subst.
1369 * configure: Rebuild.
1370 * Makefile.in (CONFIG_SRC_SUBDIR): Redefine.
1371 (CONFIG_DEP_SUBDIR): New variable.
1372 (%.o): Add order-only dependency.
1373 ($(CONFIG_DEP_SUBDIR)): New target.
1374
1375 2017-11-26 Dominik Czarnota <dominik.b.czarnota@gmail.com>
1376
1377 PR gdb/21945
1378 * findcmd.c (_initialize_mem_search): Update find command help
1379 text.
1380
1381 2017-11-26 Simon Marchi <simon.marchi@polymtl.ca>
1382
1383 * python/python.c (do_start_initialization): Change progname
1384 type to gdb::unique_xmalloc_ptr. Release the pointer when using
1385 Python 2.
1386
1387 2017-11-26 Tom Tromey <tom@tromey.com>
1388
1389 * common/format.h: Add include guards.
1390
1391 2017-11-26 Tom Tromey <tom@tromey.com>
1392
1393 * nat/linux-personality.h (class
1394 maybe_disable_address_space_randomization): New class.
1395 (maybe_disable_address_space_randomization): Don't declare
1396 function.
1397 * nat/linux-personality.c (restore_personality)
1398 (make_disable_asr_cleanup): Remove.
1399 (maybe_disable_address_space_randomization): Now a constructor.
1400 (~maybe_disable_address_space_randomization): New destructor.
1401 * linux-nat.c (linux_nat_create_inferior): Update.
1402
1403 2017-11-26 Tom Tromey <tom@tromey.com>
1404
1405 * gcore.c (write_gcore_file_1): Use gdb::unique_xmalloc_ptr.
1406
1407 2017-11-26 Ulrich Weigand <uweigand@de.ibm.com>
1408
1409 * spu-tdep.c (spu_software_single_step): Access SPU_LSLR_REGNUM as
1410 "cooked" register. Access only first four bytes of branch target
1411 registers.
1412
1413 2017-11-25 Sergio Durigan Junior <sergiodj@redhat.com>
1414
1415 PR gdb/22491
1416 * stap-probe.c (relocate_address): New function.
1417 (stap_probe::get_relocated_address): Use 'relocate_address'.
1418 (stap_probe::set_semaphore): Use 'relocate_address' and pass
1419 'm_sem_addr'.
1420 (stap_probe::clear_semaphore): Likewise.
1421
1422 2017-11-25 Pedro Alves <palves@redhat.com>
1423
1424 * dictionary.c: Include "safe-ctype.h".
1425 * minsyms.c: Include "safe-ctype.h".
1426 * minsyms.c (SYMBOL_HASH_NEXT): Use TOLOWER instead of tolower.
1427
1428 2017-11-25 Pedro Alves <palves@redhat.com>
1429
1430 * completer.c (complete_line_internal_1): Skip spaces until the
1431 start of the command.
1432
1433 2017-11-24 Pedro Alves <palves@redhat.com>
1434
1435 * cp-support.c (cp_symbol_name_matches_1): New, factored out from
1436 cp_fq_symbol_name_matches. Pass language_cplus to
1437 strncmp_with_mode.
1438 (cp_fq_symbol_name_matches): Call cp_symbol_name_matches_1.
1439 (selftests::test_cp_symbol_name_cmp): New.
1440 (_initialize_cp_support): Register "cp_symbol_name_matches"
1441 selftests.
1442 * language.c (default_symbol_name_matcher): Pass language_minimal
1443 to strncmp_iw_with_mode.
1444 * utils.c: Include "cp-support.h" and <algorithm>.
1445 (valid_identifier_name_char, cp_skip_operator_token, skip_ws)
1446 (cp_is_operator): New functions.
1447 (strncmp_iw_with_mode): Use them. Add language parameter. Don't
1448 skip whitespace in the symbol name when the lookup name doesn't
1449 have spaces, and vice versa.
1450 (strncmp_iw, strcmp_iw): Pass language to strncmp_iw_with_mode.
1451 * utils.h (strncmp_iw_with_mode): Add language parameter.
1452
1453 2017-11-24 Joel Brobecker <brobecker@adacore.com>
1454
1455 * ada-lang.c (ada_exception_message_1, ada_exception_message):
1456 New functions.
1457 (print_it_exception): If available, display the exception
1458 message as well.
1459 * NEWS: Document new feature.
1460
1461 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
1462
1463 * configure.nat <spu-linux>: Add fork-inferior.o to NATDEPFILES.
1464
1465 2017-11-24 Philipp Rudo <prudo@linux.vnet.ibm.com>
1466
1467 * dtrace-probe.c (dtrace_probe::build_arg_exprs)
1468 (dtrace_probe::is_enabled, dtrace_probe::enable)
1469 (dtrace_probe::disable): Remove keyword 'struct' at for-range
1470 variable
1471 * probe.c (gen_ui_out_table_header_info)
1472 (print_ui_out_not_applicables): Remove keyword 'struct' at
1473 for-range variable
1474
1475 2017-11-24 Alan Hayward <alan.hayward@arm.com>
1476
1477 * configure.tgt: Add arch/aarch64.o
1478
1479 2017-11-24 Simon Marchi <simon.marchi@polymtl.ca>
1480
1481 * common/common-utils.h: Include poison.h.
1482 (xfree): Remove declaration, add definition with static_assert.
1483 * common/common-utils.c (xfree): Remove.
1484 * common/poison.h (IsMallocatable): Define.
1485 (IsFreeable): Define.
1486 (free): Delete for non-freeable types.
1487 (xnew): New.
1488 (XNEW): Undef and redefine.
1489 (xcnew): New.
1490 (XCNEW): Undef and redefine.
1491 (xdelete): New.
1492 (XDELETE): Undef and redefine.
1493 (xnewvec): New.
1494 (XNEWVEC): Undef and redefine.
1495 (xcnewvec): New.
1496 (XCNEWVEC): Undef and redefine.
1497 (xresizevec): New.
1498 (XRESIZEVEC): Undef and redefine.
1499 (xdeletevec): New.
1500 (XDELETEVEC): Undef and redefine.
1501 (xnewvar): New.
1502 (XNEWVAR): Undef and redefine.
1503 (xcnewvar): New.
1504 (XCNEWVAR): Undef and redefine.
1505 (xresizevar): New.
1506 (XRESIZEVAR): Undef and redefine.
1507
1508 2017-11-24 Simon Marchi <simon.marchi@polymtl.ca>
1509
1510 * gdbthread.h (private_thread_info): Define structure type, add
1511 virtual pure destructor.
1512 (thread_info) <priv>: Change type to unique_ptr.
1513 <private_dtor>: Remove.
1514 * thread.c (add_thread_with_info): Adjust to use of unique_ptr.
1515 (private_thread_info::~private_thread_info): Provide default
1516 implementation.
1517 (thread_info::~thread_info): Don't call private_dtor nor
1518 manually free priv.
1519 * aix-thread.c (private_thread_info): Rename to ...
1520 (aix_thread_info): ... this.
1521 (get_aix_thread_info): New.
1522 (sync_threadlists): Adjust.
1523 (iter_tid): Adjust.
1524 (aix_thread_resume): Adjust.
1525 (aix_thread_fetch_registers): Adjust.
1526 (aix_thread_store_registers): Adjust.
1527 (aix_thread_extra_thread_info): Adjust.
1528 * darwin-nat.h (private_thread_info): Rename to ...
1529 (darwin_thread_info): ... this.
1530 (get_darwin_thread_info): New.
1531 * darwin-nat.c (darwin_init_thread_list): Adjust.
1532 (darwin_check_new_threads): Adjust.
1533 (thread_info_from_private_thread_info): Adjust.
1534 * linux-thread-db.c (private_thread_info): Rename to ...
1535 (thread_db_thread_info): ... this, initialize fields.
1536 (get_thread_db_thread_info): New.
1537 <dying>: Change type to bool.
1538 (update_thread_state): Adjust to type rename.
1539 (record_thread): Adjust to type rename an use of unique_ptr.
1540 (thread_db_pid_to_str): Likewise.
1541 (thread_db_extra_thread_info): Likewise.
1542 (thread_db_thread_handle_to_thread_info): Likewise.
1543 (thread_db_get_thread_local_address): Likewise.
1544 * nto-tdep.h (private_thread_info): Rename to ...
1545 (nto_thread_info): ... this, initialize fields.
1546 (get_nto_thread_info): New.
1547 <name>: Change type to std::string.
1548 * nto-tdep.c (nto_extra_thread_info): Adjust to type rename and
1549 use of unique_ptr.
1550 * nto-procfs.c (update_thread_private_data_name): Adjust to
1551 std::string change, allocate nto_private_thread_info with new.
1552 (update_thread_private_data): Adjust to unique_ptr.
1553 * remote.c (private_thread_info): Rename to ...
1554 (remote_thread_info): ... this, initialize data members with
1555 default values.
1556 <extra, name>: Change type to std::string.
1557 <thread_handle>: Change type to non-pointer.
1558 (free_private_thread_info): Remove.
1559 (get_private_info_thread): Rename to...
1560 (get_remote_thread_info): ... this, change return type, adjust to
1561 use of unique_ptr, use remote_thread_info constructor.
1562 (remote_add_thread): Adjust.
1563 (get_private_info_ptid): Rename to...
1564 (get_remote_thread_info): ...this, change return type.
1565 (remote_thread_name): Use get_remote_thread_info, adjust to
1566 change to std::string.
1567 (struct thread_item) <~thread_item>: Remove.
1568 <thread_handle>: Make non pointer.
1569 (start_thread): Adjust to thread_item::thread_handle type
1570 change.
1571 (remote_update_thread_list): Adjust to type name change, move
1572 strings from temporary to long-lived object instead of
1573 duplicating.
1574 (remote_threads_extra_info): Use get_remote_thread_info.
1575 (process_initial_stop_replies): Likewise.
1576 (resume_clear_thread_private_info): Likewise.
1577 (remote_resume): Adjust to type name change.
1578 (remote_commit_resume): Use get_remote_thread_info.
1579 (process_stop_reply): Adjust to type name change.
1580 (remote_stopped_by_sw_breakpoint): Use get_remote_thread_info.
1581 (remote_stopped_by_hw_breakpoint): Likewise.
1582 (remote_stopped_by_watchpoint): Likewise.
1583 (remote_stopped_data_address): Likewise.
1584 (remote_core_of_thread): Likewise.
1585 (remote_thread_handle_to_thread_info): Use
1586 get_private_info_thread, adjust to thread_handle field type
1587 change.
1588
1589 2017-11-24 Simon Marchi <simon.marchi@polymtl.ca>
1590
1591 * remote.c (struct thread_item): Add constructor, disable copy
1592 construction and copy assignment, define default move
1593 construction and move assignment.
1594 <extra, name>: Change type to std::string.
1595 <core>: Initialize.
1596 <thread_handle>: Make non-pointer.
1597 (thread_item_t): Remove typedef.
1598 (DEF_VEC_O(thread_item_t)): Remove.
1599 (threads_listing_context) <contains_thread>: New method.
1600 <remove_thread>: New method.
1601 <items>: Change type to std::vector.
1602 (clear_threads_listing_context): Remove.
1603 (threads_listing_context_remove): Remove.
1604 (remote_newthread_step): Use thread_item constructor, adjust to
1605 change to std::vector.
1606 (start_thread): Use thread_item constructor, adjust to change to
1607 std::vector.
1608 (end_thread): Adjust to change to std::vector and std::string.
1609 (remote_get_threads_with_qthreadinfo): Use thread_item
1610 constructor, adjust to std::vector.
1611 (remote_update_thread_list): Adjust to change to std::vector and
1612 std::string, use threads_listing_context methods.
1613 (remove_child_of_pending_fork): Adjust.
1614 (remove_new_fork_children): Adjust.
1615 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add rsp-low-selftests.c.
1616 (SUBDIR_UNITTESTS_OBS): Add rsp-low-selftests.o.
1617 * unittests/rsp-low-selftests.c: New file.
1618 * common/rsp-low.h: Include common/byte-vector.h.
1619 (hex2bin): New overload.
1620 * common/rsp-low.c (hex2bin): New overload.
1621
1622 2017-11-24 Simon Marchi <simon.marchi@ericsson.com>
1623
1624 * inferior.h (private_inferior): Define structure type, add
1625 virtual pure destructor.
1626 (inferior) <priv>: Change type to unique_ptr.
1627 * inferior.c (private_inferior::~private_inferior): Provide
1628 default implementation.
1629 (inferior::~inferior): Don't free priv field.
1630 (exit_inferior_1): Likewise.
1631 * darwin-nat.h (struct darwin_exception_info): Initialize fields.
1632 (darwin_exception_info): Remove typedef.
1633 (DEF_VEC_O (darwin_thread_t)); Remove.
1634 (private_inferior): Rename to ...
1635 (darwin_private_inferior): ... this, extend private_inferior.
1636 (get_darwin_inferior): New.
1637 <threads>: Change type to std::vector of darwin_thread_t pointers.
1638 * darwin-nat.c (darwin_check_new_threads): Adjust.
1639 (find_inferior_task_it): Adjust.
1640 (darwin_find_thread); Adjust.
1641 (darwin_suspend_inferior): Adjust.
1642 (darwin_resume_inferior): Adjust.
1643 (darwin_find_new_inferior): Adjust.
1644 (darwin_decode_notify_message): Adjust.
1645 (darwin_send_reply): Adjust.
1646 (darwin_resume_inferior_threads): Adjust.
1647 (darwin_suspend_inferior_threads): Adjust.
1648 (darwin_decode_message): Adjust.
1649 (darwin_wait): Adjust.
1650 (darwin_interrupt): Adjust.
1651 (darwin_deallocate_threads): Adjust.
1652 (darwin_mourn_inferior): Adjust, don't free private data.
1653 (darwin_reply_to_all_pending_messages): Adjust.
1654 (darwin_stop_inferior): Adjust.
1655 (darwin_setup_exceptions): Adjust.
1656 (darwin_kill_inferior): Adjust.
1657 (darwin_setup_request_notification): Adjust.
1658 (darwin_attach_pid): Adjust.
1659 (darwin_init_thread_list): Adjust.
1660 (darwin_setup_fake_stop_event): Adjust.
1661 (darwin_attach): Adjust.
1662 (darwin_detach): Adjust.
1663 (darwin_xfer_partial): Adjust.
1664 (set_enable_mach_exceptions): Adjust.
1665 (darwin_pid_to_exec_file): Adjust.
1666 (darwin_get_ada_task_ptid): Adjust.
1667 * darwin-nat-info.c (get_task_from_args): Adjust.
1668 (info_mach_ports_command): Adjust.
1669 (info_mach_region_command): Adjust.
1670 (info_mach_exceptions_command): Adjust.
1671 * remote.c (private_inferior): Rename to ...
1672 (remote_private_inferior): ... this, initialize fields.
1673 (get_remote_inferior); New.
1674 (remote_commit_resume): Use get_remote_inferior.
1675 (check_pending_event_prevents_wildcard_vcont_callback): Likewise.
1676
1677 2017-11-24 Pedro Alves <palves@redhat.com>
1678
1679 * NEWS: Mention linespecs and explicit locations, and completion
1680 improvements.
1681
1682 2017-11-24 Yao Qi <yao.qi@linaro.org>
1683
1684 * regcache.c (regcache::dump): Remove footnote_register_size.
1685
1686 2017-11-24 Yao Qi <yao.qi@linaro.org>
1687
1688 * regcache.c (cooked_read_test): Add more test for readonly
1689 regcache.
1690
1691 2017-11-24 Yao Qi <yao.qi@linaro.org>
1692
1693 * gdbarch-selftests.c (test_target_has_registers): Move it to
1694 target.c.
1695 (test_target_has_stack): Likewise.
1696 (test_target_has_memory): Likewise.
1697 (test_target_prepare_to_store): Likewise.
1698 (test_target_store_registers): Likewise.
1699 (test_target_ops): Likewise.
1700 * regcache.c: Include selftest-arch.h and gdbthread.h.
1701 (target_ops_no_register): New class.
1702 (test_target_fetch_registers): New.
1703 (test_target_store_registers): New.
1704 (test_target_xfer_partial): New.
1705 (readwrite_regcache): New.
1706 (cooked_read_test): New.
1707 (_initialize_regcache): Register the test.
1708 * target.c: (test_target_has_registers): Moved from
1709 gdbarch-selftests.c.
1710 (test_target_has_stack): Likewise.
1711 (test_target_has_memory): Likewise.
1712 (test_target_prepare_to_store): Likewise.
1713 (test_target_store_registers): Likewise.
1714 * target.h (test_target_ops): New class.
1715
1716 2017-11-24 Alan Hayward <alan.hayward@arm.com>
1717
1718 * aarch64-tdep.c (_initialize_aarch64_tdep): Add target desc
1719 selftest.
1720
1721 2017-11-24 Alan Hayward <alan.hayward@arm.com>
1722
1723 * aarch64-tdep.c (_initialize_aarch64_tdep): Remove init.
1724 * arch/aarch64.c (aarch64_create_target_description): Create
1725 new target description.
1726 * features/Makefile: Add new files.
1727 * features/aarch64.c: Remove file.
1728 * features/aarch64-core.c: New autogenerated file.
1729 * features/aarch64-fpu.c: New autogenerated file.
1730 * target-descriptions.c (maint_print_c_tdesc_cmd): Check for aarch64.
1731
1732 2017-11-24 Alan Hayward <alan.hayward@arm.com>
1733
1734 * Makefile.in: Add new files.
1735 * aarch64-linux-nat.c (aarch64_linux_read_description): Call
1736 aarch64_read_description.
1737 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
1738 Call aarch64_read_description.
1739 * aarch64-tdep.c (aarch64_read_description): New function.
1740 (aarch64_gdbarch_init): Call aarch64_read_description.
1741 * aarch64-tdep.h (aarch64_read_description): New function.
1742 * arch/aarch64.c: New file.
1743 * configure.tgt: Add new files.
1744
1745 2017-11-24 Yao Qi <yao.qi@linaro.org>
1746
1747 * mi/mi-main.c (register_changed_p): Update.
1748 * value.c (value_contents_bits_eq): Change return type.
1749 (value_contents_eq): Likewise.
1750 * value.h: Update comments.
1751
1752 2017-11-24 Yao Qi <yao.qi@linaro.org>
1753
1754 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Remove
1755 local 'changed'. Remove error.
1756 (register_changed_p): Change return type to bool.
1757
1758 2017-11-24 Yao Qi <yao.qi@linaro.org>
1759
1760 * arch/tic6x.c: New file.
1761 * arch/tic6x.h: New file.
1762 * features/Makefile (FEATURE_XMLFILES): Add tic6x-c6xp.xml,
1763 tic6x-core.xml and tic6x-gp.xml.
1764 * features/tic6x-c6xp.c: Generated.
1765 * features/tic6x-core.c: Generated.
1766 * features/tic6x-gp.c: Generated.
1767 * target-descriptions.c (maint_print_c_tdesc_cmd): Match
1768 "tic6x-".
1769
1770 2017-11-23 Simon Marchi <simon.marchi@ericsson.com>
1771
1772 * mi/mi-main.c (list_available_thread_groups): Change map value
1773 type to std::vector.
1774
1775 2017-11-23 Simon Marchi <simon.marchi@ericsson.com>
1776
1777 * osdata.c (osdata_end_column, get_osdata): Remove std::move.
1778
1779 2017-11-23 Simon Marchi <simon.marchi@ericsson.com>
1780
1781 * varobj.c (struct varobj_dynamic) <children_requested_>: Rename
1782 back to...
1783 <children_requested>: ... this.
1784 (varobj_get_num_children, varobj_update): Adjust.
1785
1786 2017-11-23 Simon Marchi <simon.marchi@ericsson.com>
1787
1788 * ada-varobj.c (ada_value_is_changeable_p): Change int to bool where applicable.
1789 (ada_value_has_mutated): Likewise.
1790 * c-varobj.c (varobj_is_anonymous_child): Likewise.
1791 (c_is_path_expr_parent): Likewise.
1792 * mi/mi-cmd-var.c (varobj_update_one): Likewise.
1793 (mi_cmd_var_set_frozen): Likewise.
1794 (mi_cmd_var_update_iter): Likewise.
1795 (mi_cmd_var_update): Likewise.
1796 * varobj.c (pretty_printing): Likewise.
1797 (varobj_enable_pretty_printing): Likewise.
1798 (struct varobj_root) <floating, is_valid>: Likewise.
1799 (struct varobj_dynamic) <children_requested>: Likewise.
1800 (delete_variable): Likewise.
1801 (delete_variable_1): Likewise.
1802 (install_variable): Likewise.
1803 (update_type_if_necessary): Likewise.
1804 (install_new_value): Likewise.
1805 (value_of_root): Likewise.
1806 (is_root_p): Likewise.
1807 (varobj_create): Likewise.
1808 (varobj_delete): Likewise.
1809 (varobj_has_more): Likewise.
1810 (varobj_set_frozen): Likewise.
1811 (varobj_get_frozen): Likewise.
1812 (install_dynamic_child): Likewise.
1813 (dynamic_varobj_has_child_method): Likewise.
1814 (update_dynamic_varobj_children): Likewise.
1815 (varobj_get_num_children): Likewise.
1816 (varobj_list_children): Likewise.
1817 (is_path_expr_parent): Likewise.
1818 (varobj_default_is_path_expr_parent): Likewise.
1819 (varobj_is_dynamic_p): Likewise.
1820 (varobj_set_value): Likewise.
1821 (varobj_value_has_mutated): Likewise.
1822 (varobj_update): Likewise.
1823 (check_scope): Likewise.
1824 (value_of_root_1): Likewise.
1825 (varobj_value_get_print_value): Likewise.
1826 (varobj_editable_p): Likewise.
1827 (varobj_value_is_changeable_p): Likewise.
1828 (varobj_floating_p): Likewise.
1829 (varobj_default_value_is_changeable_p): Likewise.
1830 (varobj_invalidate_iter): Likewise.
1831 * varobj.h (struct varobj_update_result) <type_changed,
1832 children_changed, changed, value_installed>: Likewise.
1833 (struct varobj) <updated, frozen, not_fetched>: Likewise.
1834 (struct lang_varobj_ops) <value_is_changeable_p,
1835 value_has_mutated, is_path_expr_parent>: Likewise.
1836 (varobj_delete): Likewise.
1837 (varobj_set_frozen): Likewise.
1838 (varobj_get_frozen): Likewise.
1839 (varobj_set_value): Likewise.
1840 (varobj_update): Likewise.
1841 (varobj_editable_p): Likewise.
1842 (varobj_floating_p): Likewise.
1843 (varobj_has_more): Likewise.
1844 (varobj_is_dynamic_p): Likewise.
1845 (varobj_default_value_is_changeable_p): Likewise.
1846 (varobj_value_is_changeable_p): Likewise.
1847 (varobj_is_anonymous_child): Likewise.
1848 (varobj_default_is_path_expr_parent): Likewise.
1849
1850 2017-11-22 Sergio Durigan Junior <sergiodj@redhat.com>
1851
1852 * dtrace-probe.c (struct probe_ops dtrace_probe_ops): Delete.
1853 (struct dtrace_probe_arg) <dtrace_probe_arg>: New constructor.
1854 <type_str>: Convert to 'std::string'.
1855 <expr>: Convert to 'expression_up'.
1856 (dtrace_probe_arg_s): Delete type and VEC.
1857 (dtrace_probe_enabler_s): Likewise.
1858 (struct dtrace_probe): Replace by...
1859 (class dtrace_static_probe_ops): ...this and...
1860 (class dtrace_probe): ...this.
1861 (dtrace_probe_is_linespec): Rename to...
1862 (dtrace_static_probe_ops::is_linespec): ...this. Adjust code
1863 to reflect change.
1864 (dtrace_process_dof_probe): Use 'std::vector' instead of VEC.
1865 Adjust code. Create new instance of 'dtrace_probe'.
1866 (dtrace_build_arg_exprs): Rename to...
1867 (dtrace_probe::build_arg_exprs): ...this. Adjust code to
1868 reflect change.
1869 (dtrace_get_probes): Rename to...
1870 (dtrace_static_probe_ops::get_probes): ...this. Adjust code
1871 to reflect change.
1872 (dtrace_get_arg): Rename to...
1873 (dtrace_probe::get_arg_by_number): ...this. Adjust code to
1874 reflect change.
1875 (dtrace_probe_is_enabled): Rename to...
1876 (dtrace_probe::is_enabled): ...this. Adjust code to reflect
1877 change.
1878 (dtrace_get_probe_address): Rename to...
1879 (dtrace_probe::get_relocated_address): ...this. Adjust code
1880 to reflect change.
1881 (dtrace_get_probe_argument_count): Rename to...
1882 (dtrace_probe::get_argument_count): ...this. Adjust code to
1883 reflect change.
1884 (dtrace_can_evaluate_probe_arguments): Rename to...
1885 (dtrace_probe::can_evaluate_arguments): ...this. Adjust code
1886 to reflect change.
1887 (dtrace_evaluate_probe_argument): Rename to...
1888 (dtrace_probe::evaluate_argument): ...this. Adjust code to
1889 reflect change.
1890 (dtrace_compile_to_ax): Rename to...
1891 (dtrace_probe::compile_to_ax): ...this. Adjust code to
1892 reflect change.
1893 (dtrace_probe_destroy): Delete.
1894 (dtrace_type_name): Rename to...
1895 (dtrace_static_probe_ops::type_name): ...this. Adjust code to
1896 reflect change.
1897 (dtrace_probe::get_static_ops): New method.
1898 (dtrace_gen_info_probes_table_header): Rename to...
1899 (dtrace_static_probe_ops::gen_info_probes_table_header):
1900 ...this. Adjust code to reflect change.
1901 (dtrace_gen_info_probes_table_values): Rename to...
1902 (dtrace_probe::gen_info_probes_table_values): ...this. Adjust
1903 code to reflect change.
1904 (dtrace_enable_probe): Rename to...
1905 (dtrace_probe::enable_probe): ...this. Adjust code to reflect
1906 change.
1907 (dtrace_disable_probe): Rename to...
1908 (dtrace_probe::disable_probe): ...this. Adjust code to reflect
1909 change.
1910 (struct probe_ops dtrace_probe_ops): Delete.
1911 (info_probes_dtrace_command): Call 'info_probes_for_spops'
1912 instead of 'info_probes_for_ops'.
1913 (_initialize_dtrace_probe): Use 'all_static_probe_ops' instead
1914 of 'all_probe_ops'.
1915
1916 2017-11-22 Sergio Durigan Junior <sergiodj@redhat.com>
1917 Simon Marchi <simark@simark.ca>
1918
1919 * stap-probe.c (struct probe_ops stap_probe_ops): Delete
1920 variable.
1921 (struct stap_probe_arg) <stap_probe_arg>: New constructor.
1922 <aexpr>: Change type to 'expression_up'.
1923 (stap_probe_arg_s): Delete type and VEC.
1924 (struct stap_probe): Delete. Replace by...
1925 (class stap_static_probe_ops): ...this and...
1926 (class stap_probe): ...this. Rename variables to add 'm_'
1927 prefix. Do not use 'union' for arguments anymore.
1928 (stap_get_expected_argument_type): Receive probe name instead
1929 of 'struct stap_probe'. Adjust code.
1930 (stap_parse_probe_arguments): Rename to...
1931 (stap_probe::parse_arguments): ...this. Adjust code to
1932 reflect change.
1933 (stap_get_probe_address): Rename to...
1934 (stap_probe::get_relocated_address): ...this. Adjust code
1935 to reflect change.
1936 (stap_get_probe_argument_count): Rename to...
1937 (stap_probe::get_argument_count): ...this. Adjust code
1938 to reflect change.
1939 (stap_get_arg): Rename to...
1940 (stap_probe::get_arg_by_number'): ...this. Adjust code to
1941 reflect change.
1942 (can_evaluate_probe_arguments): Rename to...
1943 (stap_probe::can_evaluate_arguments): ...this. Adjust code
1944 to reflect change.
1945 (stap_evaluate_probe_argument): Rename to...
1946 (stap_probe::evaluate_argument): ...this. Adjust code
1947 to reflect change.
1948 (stap_compile_to_ax): Rename to...
1949 (stap_probe::compile_to_ax): ...this. Adjust code to
1950 reflect change.
1951 (stap_probe_destroy): Delete.
1952 (stap_modify_semaphore): Adjust comment.
1953 (stap_set_semaphore): Rename to...
1954 (stap_probe::set_semaphore): ...this. Adjust code to reflect
1955 change.
1956 (stap_clear_semaphore): Rename to...
1957 (stap_probe::clear_semaphore): ...this. Adjust code to
1958 reflect change.
1959 (stap_probe::get_static_ops): New method.
1960 (handle_stap_probe): Adjust code to create instance of
1961 'stap_probe'.
1962 (stap_get_probes): Rename to...
1963 (stap_static_probe_ops::get_probes): ...this. Adjust code to
1964 reflect change.
1965 (stap_probe_is_linespec): Rename to...
1966 (stap_static_probe_ops::is_linespec): ...this. Adjust code to
1967 reflect change.
1968 (stap_type_name): Rename to...
1969 (stap_static_probe_ops::type_name): ...this. Adjust code to
1970 reflect change.
1971 (stap_gen_info_probes_table_header): Rename to...
1972 (stap_static_probe_ops::gen_info_probes_table_header):
1973 ...this. Adjust code to reflect change.
1974 (stap_gen_info_probes_table_values): Rename to...
1975 (stap_probe::gen_info_probes_table_values): ...this. Adjust
1976 code to reflect change.
1977 (struct probe_ops stap_probe_ops): Delete.
1978 (info_probes_stap_command): Use 'info_probes_for_spops'
1979 instead of 'info_probes_for_ops'.
1980 (_initialize_stap_probe): Use 'all_static_probe_ops' instead
1981 of 'all_probe_ops'.
1982
1983 2017-11-22 Sergio Durigan Junior <sergiodj@redhat.com>
1984
1985 * break-catch-throw.c (fetch_probe_arguments): Use
1986 'probe.prob' instead of 'probe.probe'.
1987 * breakpoint.c (create_longjmp_master_breakpoint): Call
1988 'can_evaluate_arguments' and 'get_relocated_address' methods
1989 from probe.
1990 (create_exception_master_breakpoint): Likewise.
1991 (add_location_to_breakpoint): Use 'sal->prob' instead of
1992 'sal->probe'.
1993 (bkpt_probe_insert_location): Call 'set_semaphore' method from
1994 probe.
1995 (bkpt_probe_remove_location): Likewise, for 'clear_semaphore'.
1996 * elfread.c (elf_get_probes): Use 'static_probe_ops' instead
1997 of 'probe_ops'.
1998 (probe_key_free): Call 'delete' on probe.
1999 (check_exception_resume): Use 'probe.prob' instead of
2000 'probe.probe'.
2001 * location.c (string_to_event_location_basic): Call
2002 'probe_linespec_to_static_ops'.
2003 * probe.c (class any_static_probe_ops): New class.
2004 (any_static_probe_ops any_static_probe_ops): New variable.
2005 (parse_probes_in_pspace): Receive 'static_probe_ops' as
2006 argument. Adjust code to reflect change.
2007 (parse_probes): Use 'static_probe_ops' instead of
2008 'probe_ops'. Adjust code to reflect change.
2009 (find_probes_in_objfile): Call methods to get name and
2010 provider from probe.
2011 (find_probe_by_pc): Use 'result.prob' instead of
2012 'result.probe'. Call 'get_relocated_address' method from
2013 probe.
2014 (collect_probes): Adjust comment and argument list to receive
2015 'static_probe_ops' instead of 'probe_ops'. Adjust code to
2016 reflect change. Call necessary methods from probe.
2017 (compare_probes): Call methods to get name and provider from
2018 probes.
2019 (gen_ui_out_table_header_info): Receive 'static_probe_ops'
2020 instead of 'probe_ops'. Use 'std::vector' instead of VEC,
2021 adjust code accordingly.
2022 (print_ui_out_not_applicables): Likewise.
2023 (info_probes_for_ops): Rename to...
2024 (info_probes_for_spops): ...this. Receive 'static_probe_ops'
2025 as argument instead of 'probe_ops'. Adjust code. Call
2026 necessary methods from probe.
2027 (info_probes_command): Use 'info_probes_for_spops'.
2028 (enable_probes_command): Pass correct argument to
2029 'collect_probes'. Call methods from probe.
2030 (disable_probes_command): Likewise.
2031 (get_probe_address): Move to 'any_static_probe_ops::get_address'.
2032 (get_probe_argument_count): Move to
2033 'any_static_probe_ops::get_argument_count'.
2034 (can_evaluate_probe_arguments): Move to
2035 'any_static_probe_ops::can_evaluate_arguments'.
2036 (evaluate_probe_argument): Move to
2037 'any_static_probe_ops::evaluate_argument'.
2038 (probe_safe_evaluate_at_pc): Use 'probe.prob' instead of
2039 'probe.probe'.
2040 (probe_linespec_to_ops): Rename to...
2041 (probe_linespec_to_static_ops): ...this. Adjust code.
2042 (probe_any_is_linespec): Rename to...
2043 (any_static_probe_ops::is_linespec): ...this.
2044 (probe_any_get_probes): Rename to...
2045 (any_static_probe_ops::get_probes): ...this.
2046 (any_static_probe_ops::type_name): New method.
2047 (any_static_probe_ops::gen_info_probes_table_header): New
2048 method.
2049 (compute_probe_arg): Use 'pc_probe.prob' instead of
2050 'pc_probe.probe'. Call methods from probe.
2051 (compile_probe_arg): Likewise.
2052 (std::vector<const probe_ops *> all_probe_ops): Delete.
2053 (std::vector<const static_probe_ops *> all_static_probe_ops):
2054 New variable.
2055 (_initialize_probe): Use 'all_static_probe_ops' instead of
2056 'all_probe_ops'.
2057 * probe.h (struct info_probe_column) <field_name>: Delete
2058 extraneous newline
2059 (info_probe_column_s): Delete type and VEC.
2060 (struct probe_ops): Delete. Replace with...
2061 (class static_probe_ops): ...this and...
2062 (clas probe): ...this.
2063 (struct bound_probe) <bound_probe>: Delete extraneous
2064 newline. Adjust constructor to receive 'probe' instead of
2065 'struct probe'.
2066 <probe>: Rename to...
2067 <prob>: ...this. Delete extraneous newline.
2068 <objfile>: Delete extraneous newline.
2069 (register_probe_ops): Delete unused prototype.
2070 (info_probes_for_ops): Rename to...
2071 (info_probes_for_spops): ...this. Adjust comment.
2072 (get_probe_address): Move to 'probe::get_address'.
2073 (get_probe_argument_count): Move to
2074 'probe::get_argument_count'.
2075 (can_evaluate_probe_arguments): Move to
2076 'probe::can_evaluate_arguments'.
2077 (evaluate_probe_argument): Move to 'probe::evaluate_argument'.
2078 * solib-svr4.c (struct svr4_info): Adjust comment.
2079 (struct probe_and_action) <probe>: Rename to...
2080 <prob>: ...this.
2081 (register_solib_event_probe): Receive 'probe' instead of
2082 'struct probe' as argument. Use 'prob' instead of 'probe'
2083 when applicable.
2084 (solib_event_probe_action): Call 'get_argument_count' method
2085 from probe. Adjust comment.
2086 (svr4_handle_solib_event): Adjust comment. Call
2087 'evaluate_argument' method from probe.
2088 (svr4_create_probe_breakpoints): Call 'get_relocated_address'
2089 from probe.
2090 (svr4_create_solib_event_breakpoints): Use 'probe' instead of
2091 'struct probe'. Call 'can_evaluate_arguments' from probe.
2092 * symfile.h: Forward declare 'class probe' instead of 'struct
2093 probe'.
2094 * symtab.h: Likewise.
2095 (struct symtab_and_line) <probe>: Rename to...
2096 <prob>: ...this.
2097 * tracepoint.c (start_tracing): Use 'prob' when applicable.
2098 Call probe methods.
2099 (stop_tracing): Likewise.
2100
2101 2017-11-22 Joel Brobecker <brobecker@adacore.com>
2102
2103 * ravenscar-thread.c (ravenscar_inferior_created): Remove
2104 trailing newline at end of string in call to warning.
2105
2106 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
2107
2108 * osdata.h: Include vector isntead of vec.h.
2109 (osdata_column_s): Remove typedef.
2110 (struct osdata_column): Add constructor.
2111 <name, value>: Change type to std::string.
2112 (DEF_VEC_O (osdata_column_s)): Remove.
2113 (osdata_item_s): Remove typedef.
2114 (struct osdata_item) <columns>: Change type to std::vector.
2115 (DEF_VEC_O (osdata_item_s)): Remove.
2116 (struct osdata): Add constructor.
2117 <type>: Change type to std::string.
2118 <items>: Change type to std::vector.
2119 (osdata_p): Remove typedef.
2120 (DEF_VEC_P (osdata_p)): Remove.
2121 (osdata_parse): Return a unique_ptr.
2122 (osdata_free): Remove.
2123 (make_cleanup_osdata_free): Remove.
2124 (get_osdata): Return a unique_ptr.
2125 (get_osdata_column): Return pointer to std::string, take a
2126 reference to osdata_item as parameter.
2127 * osdata.c (struct osdata_parsing_data) <osdata>: Change type to
2128 unique_ptr.
2129 <property_name>: Change type to std::string.
2130 (osdata_start_osdata): Allocate osdata with new and adjust.
2131 (osdata_start_item): Adjust.
2132 (osdata_start_column): Adjust.
2133 (osdata_end_column): Adjust.
2134 (clear_parsing_data): Remove.
2135 (osdata_parse): Return a unique_ptr and adjust, remove cleanup.
2136 (osdata_item_clear): Remove.
2137 (get_osdata): return a unique_ptr and adjust.
2138 (get_osdata_column): Return a pointer to std::string and adjust.
2139 (info_osdata): Adjust.
2140 * mi/mi-main.c: Include <map>.
2141 (free_vector_of_osdata_items): Remove.
2142 (list_available_thread_groups): Adjust, use std::map instead of
2143 splay tree.
2144
2145 2017-11-22 Simon Marchi <simon.marchi@ericsson.com>
2146
2147 * stack.c (iterate_over_block_locals): Add LOC_OPTIMIZED_OUT
2148 case in switch.
2149
2150 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
2151
2152 * varobj.h (DEF_VEC_P (varobj_p)): Remove.
2153
2154 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
2155
2156 * varobj.h (struct varobj_update_result): Add constructor, add
2157 move constructor, disable copy and assign, initialize fields.
2158 <newobj>: Change type to std::vector.
2159 (varobj_update): Return std::vector.
2160 * varobj.c (install_dynamic_child): Change VEC parameters to
2161 std::vector and adjust.
2162 (update_dynamic_varobj_children): Likewise.
2163 (varobj_update): Return std::vector and adjust.
2164 * mi/mi-cmd-var.c (varobj_update_one): Adjust to vector changes.
2165
2166 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
2167
2168 * varobj.h (struct varobj) <parent>: Remove const.
2169 <children>: Change type to std::vector.
2170 (varobj_list_children): Return std::vector const reference.
2171 (varobj_restrict_range): Change parameter type to std::vector
2172 const reference.
2173 * varobj.c (varobj_has_more): Adjust.
2174 (varobj_restrict_range): Change parameter type to std::vector
2175 const reference and adjust.
2176 (install_dynamic_child): Adjust.
2177 (update_dynamic_varobj_children): Adjust.
2178 (varobj_list_children): Return std::vector const reference and
2179 adjust.
2180 (varobj_add_child): Adjust.
2181 (update_type_if_necessary): Adjust.
2182 (varobj_update): Adjust.
2183 (delete_variable_1): Adjust.
2184 * ada-varobj.c (ada_value_has_mutated): Adjust.
2185 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust.
2186
2187 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
2188
2189 * varobj.h (struct varobj): Add constructor and destructor,
2190 initialize fields.
2191 * varobj.c (struct varobj_root): Initialize fields.
2192 (struct varobj_dynamic): Initialize fields.
2193 (varobj_create): Use unique_ptr instead of cleanup. Create
2194 varobj with new instead of new_root_variable.
2195 (delete_variable_1): Free variable with delete instead of
2196 free_variable.
2197 (create_child_with_value): Create variable with new instead of
2198 new_variable.
2199 (varobj::varobj): New.
2200 (varobj::~varobj): New (body mostly coming from free_variable).
2201 (new_variable): Remove.
2202 (free_variable): Remove.
2203 (do_free_variable_cleanup): Remove.
2204 (make_cleanup_free_variable): Remove.
2205
2206 2017-11-22 Ulrich Weigand <uweigand@de.ibm.com>
2207
2208 * core-regset.c: Remove file.
2209 * Makefile.in (ALLDEPFILES): Remove core-regset.c.
2210
2211 2017-11-22 Ulrich Weigand <uweigand@de.ibm.com>
2212
2213 * NEWS: Document use of GNU MPFR.
2214 * README: Likewise.
2215
2216 * Makefile.in (LIBMPFR): Add define.
2217 (CLIBS): Add $(LIBMPFR).
2218 * configure.ac: Add --with-mpfr configure option.
2219 * configure: Regenerate.
2220 * config.in: Regenerate.
2221
2222 * target-float.c [HAVE_LIBMPFR]: Include <mpfr.h>.
2223 (class mpfr_float_ops): New type.
2224 (mpfr_float_ops::from_target): Two new overloaded functions.
2225 (mpfr_float_ops::to_target): Likewise.
2226 (mpfr_float_ops::to_string): New function.
2227 (mpfr_float_ops::from_string): Likewise.
2228 (mpfr_float_ops::to_longest): Likewise.
2229 (mpfr_float_ops::from_longest): Likewise.
2230 (mpfr_float_ops::from_ulongest): Likewise.
2231 (mpfr_float_ops::to_host_double): Likewise.
2232 (mpfr_float_ops::from_host_double): Likewise.
2233 (mpfr_float_ops::convert): Likewise.
2234 (mpfr_float_ops::binop): Likewise.
2235 (mpfr_float_ops::compare): Likewise.
2236 (get_target_float_ops): Use mpfr_float_ops if available.
2237
2238 2017-11-22 Ulrich Weigand <uweigand@de.ibm.com>
2239
2240 * target-float.c: Do not include <math.h>.
2241 Include <cmath> and <limits>.
2242 (DOUBLEST): Do not define.
2243 (class target_float_ops): New type.
2244 (class host_float_ops): New templated type.
2245 (class decimal_float_ops): New type.
2246
2247 (floatformat_to_doublest): Rename to ...
2248 (host_float_ops<T>::from_target): ... this. Use template type T
2249 instead of DOUBLEST. Use C++ math routines. Update recursive calls.
2250 (host_float_ops<T>::from_target): New overload using a type argument.
2251 (floatformat_from_doublest): Rename to ...
2252 (host_float_ops<T>::to_target): ... this. Use template type T
2253 instead of DOUBLEST. Use C++ math routines. Update recursive calls.
2254 (host_float_ops<T>::to_target): New overload using a type argument.
2255 (floatformat_printf_format): New function.
2256 (struct printf_length_modifier): New templated type.
2257 (floatformat_to_string): Rename to ...
2258 (host_float_ops<T>::to_string): ... this. Use type instead of
2259 floatformat argument. Use floatformat_printf_format and
2260 printf_length_modifier. Remove special handling of invalid numbers,
2261 infinities and NaN (moved to target_float_to_string).
2262 (struct scanf_length_modifier): New templated type.
2263 (floatformat_from_string): Rename to ...
2264 (host_float_ops<T>::from_string): ... this. Use type instead of
2265 floatformat argument. Use scanf_length_modifier.
2266 (floatformat_to_longest): Rename to ...
2267 (host_float_ops<T>::to_longest): ... this. Use type instead of
2268 floatformat argument. Handle out-of-range values deterministically.
2269 (floatformat_from_longest): Rename to ...
2270 (host_float_ops<T>::from_longest): ... this. Use type instead of
2271 floatformat argument.
2272 (floatformat_from_ulongest): Rename to ...
2273 (host_float_ops<T>::from_ulongest): ... this. Use type instead of
2274 floatformat argument.
2275 (floatformat_to_host_double): Rename to ...
2276 (host_float_ops<T>::to_host_double): ... this. Use type instead of
2277 floatformat argument.
2278 (floatformat_from_host_double): Rename to ...
2279 (host_float_ops<T>::from_host_double): ... this. Use type instead of
2280 floatformat argument.
2281 (floatformat_convert): Rename to ...
2282 (host_float_ops<T>::convert): ... this. Use type instead of
2283 floatformat arguments. Remove handling of no-op conversions.
2284 (floatformat_binop): Rename to ...
2285 (host_float_ops<T>::binop): ... this. Use type instead of
2286 floatformat arguments.
2287 (floatformat_compare): Rename to ...
2288 (host_float_ops<T>::compare): ... this. Use type instead of
2289 floatformat arguments.
2290
2291 (match_endianness): Use type instead of length/byte_order arguments.
2292 (set_decnumber_context): Likewise.
2293 (decimal_from_number): Likewise. Update calls.
2294 (decimal_to_number): Likewise.
2295 (decimal_is_zero): Likewise. Update calls. Move to earlier in file.
2296 (decimal_float_ops::to_host_double): New dummy function.
2297 (decimal_float_ops::from_host_double): Likewise.
2298 (decimal_to_string): Rename to ...
2299 (decimal_float_ops::to_string): ... this. Use type instead of
2300 length/byte_order arguments. Update calls.
2301 (decimal_from_string): Rename to ...
2302 (decimal_float_ops::from_string): ... this. Use type instead of
2303 length/byte_order arguments. Update calls.
2304 (decimal_from_longest): Rename to ...
2305 (decimal_float_ops::from_longest): ... this. Use type instead of
2306 length/byte_order arguments. Update calls.
2307 (decimal_from_ulongest): Rename to ...
2308 (decimal_float_ops::from_ulongest): ... this. Use type instead of
2309 length/byte_order arguments. Update calls.
2310 (decimal_to_longest): Rename to ...
2311 (decimal_float_ops::to_longest): ... this. Use type instead of
2312 length/byte_order arguments. Update calls.
2313 (decimal_binop): Rename to ...
2314 (decimal_float_ops::binop): ... this. Use type instead of
2315 length/byte_order arguments. Update calls.
2316 (decimal_compare): Rename to ...
2317 (decimal_float_ops::compare): ... this. Use type instead of
2318 length/byte_order arguments. Update calls.
2319 (decimal_convert): Rename to ...
2320 (decimal_float_ops::convert): ... this. Use type instead of
2321 length/byte_order arguments. Update calls.
2322
2323 (target_float_same_category_p): New function.
2324 (target_float_same_format_p): Likewise.
2325 (target_float_format_length): Likewise.
2326 (enum target_float_ops_kind): New type.
2327 (get_target_float_ops_kind): New function.
2328 (get_target_float_ops): Three new overloaded functions.
2329
2330 (target_float_is_zero): Update call.
2331 (target_float_to_string): Add special handling of invalid numbers,
2332 infinities and NaN (moved from floatformat_to_string). Use
2333 target_float_ops callback.
2334 (target_float_from_string): Use target_float_ops callback.
2335 (target_float_to_longest): Likewise.
2336 (target_float_from_longest): Likewise.
2337 (target_float_from_ulongest): Likewise.
2338 (target_float_to_host_double): Likewise.
2339 (target_float_from_host_double): Likewise.
2340 (target_float_convert): Add special case for no-op conversions.
2341 Use target_float_ops callback.
2342 (target_float_binop): Use target_float_ops callback.
2343 (target_float_compare): Likewise.
2344
2345 2017-11-22 Yao Qi <yao.qi@linaro.org>
2346
2347 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use strcpy.
2348
2349 2017-11-22 Yao Qi <yao.qi@linaro.org>
2350
2351 * cli/cli-decode.c (help_list): Use memcpy instead of strncpy.
2352 * cp-namespace.c (cp_lookup_transparent_type_loop): Likewise.
2353
2354 2017-11-21 Jerome Guitton <guitton@adacore.com>
2355
2356 * ravenscar-thread.c (ravenscar_wait): Update inferior ptid
2357 with event ptid from the lower layer before doing the
2358 ravenscar-specific update.
2359
2360 2017-11-21 Joel Brobecker <brobecker@adacore.com>
2361
2362 * ravenscar-thread.c (is_ravenscar_task): Also verify that
2363 the ptid's TID is nonzero.
2364
2365 2017-11-21 Joel Brobecker <brobecker@adacore.com>
2366
2367 * ada-lang.h (ada_get_tcb_types_info): Add declaration.
2368 * ada-tasks.c (ada_get_tcb_types_info): Renames get_tcb_types_info.
2369 Make non-static. Change return type to char *. Adjust code
2370 accordingly. Rewrite the function's documentation.
2371 (read_atcb): Adjust call to get_tcb_types_info accordingly.
2372 * ravenscar-thread.c (ravenscar_inferior_created): Check that
2373 we have enough debugging information in the runtime to support
2374 Ada task debugging before we enable the ravenscar-thread layer.
2375
2376 2017-11-21 Joel Brobecker <brobecker@adacore.com>
2377
2378 * ada-lang.h (ada_get_task_info_from_ptid): Add declaration.
2379 * ada-tasks.c (ada_get_task_info_from_ptid): New function.
2380 * ravenscar-thread.c: Add into comment.
2381 (base_magic_null_ptid): Delete.
2382 (base_ptid): Change documentation.
2383 (ravenscar_active_task): Renames ravenscar_running_thread.
2384 All callers updated throughout.
2385 (is_ravenscar_task, ravenscar_get_thread_base_cpu): New function.
2386 (ravenscar_task_is_currently_active): Likewise.
2387 (get_base_thread_from_ravenscar_task): Ditto.
2388 (ravenscar_update_inferior_ptid): Adjust to handle multiple CPUs.
2389 (ravenscar_runtime_initialized): Likewise.
2390 (get_running_thread_id): Add new parameter "cpu". Adjust
2391 implementation to handle this new parameter.
2392 (ravenscar_fetch_registers): Small adjustment to use
2393 is_ravenscar_task and ravenscar_task_is_currently_active in
2394 order to decide whether to use the target beneath or this
2395 module's arch_ops.
2396 (ravenscar_store_registers, ravenscar_prepare_to_store): Likewise.
2397 (ravenscar_stopped_by_sw_breakpoint): Use
2398 get_base_thread_from_ravenscar_task to get the underlying
2399 thread, rather than using base_ptid.
2400 (ravenscar_stopped_by_hw_breakpoint, ravenscar_stopped_by_watchpoint)
2401 (ravenscar_stopped_data_address, ravenscar_core_of_thread):
2402 Likewise.
2403 (ravenscar_inferior_created): Do not set base_magic_null_ptid.
2404
2405 2017-11-21 Joel Brobecker <brobecker@adacore.com>
2406
2407 * ada-lang.h (struct ada_task_info) <base_cpu>: New field.
2408 * ada-lang.c (struct atcb_fieldno) <base_cpu>: New field.
2409 (get_tcb_types_info): Set fieldnos.base_cpu.
2410 (read_atcb): Set task_info->base_cpu.
2411 (info_task): Print "Base CPU" info if set by runtime.
2412
2413 2017-11-21 Joel Brobecker <brobecker@adacore.com>
2414
2415 * ravenscar-thread.c (ravenscar_stopped_by_sw_breakpoint)
2416 (ravenscar_stopped_by_hw_breakpoint, ravenscar_stopped_by_watchpoint)
2417 (ravenscar_stopped_data_address, ravenscar_core_of_thread):
2418 New functions.
2419 (init_ravenscar_thread_ops): Set the to_stopped_by_sw_breakpoint,
2420 to_stopped_by_hw_breakpoint, to_stopped_by_watchpoint,
2421 to_stopped_data_address and to_core_of_thread fields of
2422 ravenscar_ops.
2423
2424 2017-11-21 Ulrich Weigand <uweigand@de.ibm.com>
2425
2426 * ppc-tdep.h (enum powerpc_long_double_abi): New data type.
2427 (struct gdbarch_tdep): New member long_double_abi.
2428 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize long_double_abi
2429 member of tdep struct based on Tag_GNU_Power_ABI_FP attribute.
2430 * ppc-linux-tdep.c (ppc_linux_init_abi): Install long double data
2431 format depending on long_double_abi tdep member.
2432 (ppc_floatformat_for_type): Handle __ibm128 type.
2433
2434 2017-11-20 Simon Marchi <simon.marchi@polymtl.ca>
2435
2436 * darwin-nat.c (set_enable_mach_exceptions): Constify parameter.
2437
2438 2017-11-21 Pedro Alves <palves@redhat.com>
2439
2440 * dwarf2read.c (mapped_index::find_name_components_bounds)
2441 <completion mode, upper bound>: Use std::lower_bound instead of
2442 std::upper_bound.
2443 (test_mapped_index_find_name_component_bounds): Remove incorrect
2444 "t1_fund" from expected symbols.
2445
2446 2017-11-21 Pedro Alves <palves@redhat.com>
2447
2448 * dwarf2read.c (mapped_index::name_components_casing): New field.
2449 (mapped_index) <build_name_components,
2450 find_name_components_bounds): Declare new methods.
2451 (mapped_index::find_name_components_bounds)
2452 (mapped_index::build_name_components): New methods, factored out
2453 from dw2_expand_symtabs_matching_symbol.
2454 (check_find_bounds_finds)
2455 (test_mapped_index_find_name_component_bounds): New.
2456 (run_test): Rename to ...
2457 (test_dw2_expand_symtabs_matching_symbol): ... this.
2458 (run_test): Reimplement.
2459
2460 2017-11-21 Pedro Alves <palves@redhat.com>
2461
2462 * cp-name-parser.y (cp_ident_is_alpha, cp_ident_is_alnum): New.
2463 (symbol_end): Use cp_ident_is_alnum.
2464 (yylex): Use cp_ident_is_alpha and cp_ident_is_alnum.
2465 * dwarf2read.c (make_sort_after_prefix_name): New function.
2466 (dw2_expand_symtabs_matching_symbol): Use it.
2467 (test_symbols): Add more symbols.
2468 (run_test): Add tests.
2469
2470 2017-11-17 Tom Tromey <tom@tromey.com>
2471
2472 * symtab.h (enum symbol_subclass_kind): New.
2473 (struct symbol) <is_cplus_template_function, is_rust_vtable>:
2474 Remove.
2475 <subclass>: New member.
2476 (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): Update.
2477 * rust-lang.c (rust_get_trait_object_pointer): Update.
2478 * dwarf2read.c (read_func_scope): Update.
2479 (read_variable): Update.
2480
2481 2017-11-17 Tom Tromey <tom@tromey.com>
2482
2483 * dwarf2read.c (read_func_scope): Update.
2484 * symtab.h (struct template_symbol): Derive from symbol.
2485 <base>: Remove.
2486
2487 2017-11-17 Tom Tromey <tom@tromey.com>
2488
2489 * symtab.h (struct symbol) <is_rust_vtable>: New member.
2490 (struct rust_vtable_symbol): New.
2491 (find_symbol_at_address): Declare.
2492 * symtab.c (find_symbol_at_address): New function.
2493 * symfile.h (struct quick_symbol_functions)
2494 <find_compunit_symtab_by_address>: New member.
2495 * symfile-debug.c (debug_qf_find_compunit_symtab_by_address): New
2496 function.
2497 (debug_sym_quick_functions): Link to
2498 debug_qf_find_compunit_symtab_by_address.
2499 * rust-lang.c (rust_get_trait_object_pointer): New function.
2500 (rust_evaluate_subexp) <case UNOP_IND>: New case. Call
2501 rust_get_trait_object_pointer.
2502 * psymtab.c (psym_relocate): Clear psymbol_map.
2503 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address): New
2504 functions.
2505 (psym_functions): Link to psym_find_compunit_symtab_by_address.
2506 * objfiles.h (struct objfile) <psymbol_map>: New member.
2507 * dwarf2read.c (dwarf2_gdb_index_functions): Update.
2508 (process_die) <DW_TAG_variable>: New case. Call read_variable.
2509 (rust_containing_type, read_variable): New functions.
2510
2511 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
2512
2513 * common/gdb_vecs.h (DEF_VEC_I (int)): Remove.
2514
2515 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
2516
2517 * common/filestuff.c: Include <algorithm>.
2518 (open_fds): Change type to std::vector<int>.
2519 (do_mark_open_fd): Adjust.
2520 (unmark_fd_no_cloexec): Adjust.
2521 (do_close): Adjust.
2522
2523 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
2524
2525 * breakpoint.c (output_thread_groups): Take an std::vector.
2526 (print_one_breakpoint_location): Adjust.
2527
2528 2017-11-17 Joel Brobecker <brobecker@adacore.com>
2529
2530 * ada-lang.c (resolve_subexp): Add handling of OP_VAR_MSYM_VALUE.
2531 (ada_evaluate_subexp_for_cast): New function.
2532 (ada_evaluate_subexp) <UNOP_CAST>: Replace code by call to
2533 ada_evaluate_subexp_for_cast.
2534 (ada_evaluate_subexp) <nosideret>: Replace code by call to
2535 eval_skip_value.
2536 * eval.c (evaluate_var_value): Make non-static.
2537 (evaluate_var_msym_value, eval_skip_value): Likewise.
2538 * value.h (evaluate_var_value, evaluate_var_msym_value)
2539 (eval_skip_value): Declare.
2540
2541 2017-11-16 Joel Brobecker <brobecker@adacore.com>
2542
2543 * ada-lang.c (ada_value_cast): Remove parameter "noside".
2544 Update all callers.
2545
2546 2017-11-16 Pedro Alves <palves@redhat.com>
2547
2548 * python/py-unwind.c (pyuw_sniffer): Translate
2549 PyExc_KeyboardInterrupt to a GDB Quit exception.
2550
2551 2017-11-16 Pedro Alves <palves@redhat.com>
2552
2553 * infrun.c (resume_cleanups): Delete.
2554 (resume): No longer install a resume_cleanups cleanup nor call
2555 QUIT.
2556 (proceed): Pass the terminal to the inferior.
2557 (keep_going_pass_signal): No longer install a resume_cleanups
2558 cleanup.
2559
2560 2017-11-16 Pedro Alves <palves@redhat.com>
2561
2562 * inf-loop.c (inferior_event_handler): Don't swallow the exception
2563 if the prompt is blocked.
2564
2565 2017-11-16 Pedro Alves <palves@redhat.com>
2566
2567 * breakpoint.c (insert_bp_location): Replace bp_err and
2568 bp_err_message locals by a gdb_exception local.
2569
2570 2017-11-16 Pedro Alves <palves@redhat.com>
2571
2572 * inflow.c (scoped_ignore_sigttou): New class.
2573 (child_terminal_ours_1, new_tty): Use it.
2574
2575 2017-11-16 Ulrich Weigand <uweigand@de.ibm.com>
2576
2577 * target-float.c (decimal_from_number): Add byte_order argument and
2578 call match_endianness. Error if unknown floating-point type.
2579 (decimal_to_number): Add byte_order argument and call match_endianness.
2580 (decimal_from_longest): Update call. Do not call match_endianness.
2581 (decimal_from_ulongest): Likewise.
2582 (decimal_binop): Likewise.
2583 (decimal_is_zero): Likewise.
2584 (decimal_compare): Likewise.
2585 (decimal_convert): Likewise.
2586
2587 2017-11-16 Phil Muldoon <pmuldoon@redhat.com>
2588
2589 * python/python.c (gdbpy_rbreak): New function.
2590 * NEWS: Document Python rbreak feature.
2591
2592 2017-11-16 Yao Qi <yao.qi@linaro.org>
2593
2594 * features/tic6x-c62x.xml: Remove.
2595 * features/tic6x-c64x.xml: Remove.
2596 * features/tic6x-c64xp.xml: Remove.
2597
2598 2017-11-15 John Baldwin <jhb@FreeBSD.org>
2599
2600 * symtab.h: Include <array>.
2601
2602 2017-11-15 John Baldwin <jhb@FreeBSD.org>
2603
2604 * bsd-kvm.c (bsd_kvm_cmd): Constify 'arg'.
2605 (bsd_kvm_proc_cmd): Likewise.
2606
2607 2017-11-15 Simon Marchi <simon.marchi@ericsson.com>
2608
2609 * tui/tui-win.c (window_name_completer): Replace VEC with
2610 std::vector.
2611
2612 2017-11-15 Andrew Cagney <cagney@gnu.org>
2613
2614 * MAINTAINERS: Remove no-longer applicable entries.
2615
2616 2017-11-15 Andrew Cagney <cagney@gnu.org>
2617
2618 * MAINTAINERS: Move self to Past Maintainers.
2619
2620 2017-11-15 Yao Qi <yao.qi@linaro.org>
2621
2622 * features/Makefile (XMLTOC): Remove nios2-linux.xml.
2623 * features/nios2-linux.c: Remove.
2624 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Don't call
2625 initialize_tdesc_nios2_linux.
2626
2627 2017-11-15 Yao Qi <yao.qi@linaro.org>
2628
2629 * m68hc11-tdep.c (M68HC11_NUM_REGS): Change it to
2630 M68HC11_LAST_HARD_REG + 1.
2631
2632 2017-11-14 Paul Carroll <pcarroll@codesourcery.com>
2633
2634 PR gdb/22388
2635 * remote.c (remote_write_bytes_aux, remote_read_bytes_1,
2636 remote_read_bytes, remote_write_qxfer, remote_xfer_partial):
2637 Return TARGET_XFER_EOF if size of returned data is 0.
2638
2639 2017-11-14 Simon Marchi <simon.marchi@ericsson.com>
2640
2641 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2642 memory-map-selftests.c.
2643 (SUBDIR_UNITTESTS_OBS): Add memory-map-selftests.o.
2644 * memory-map.c (memory_map_start_memory): Fix computation of hi
2645 address.
2646 * unittests/memory-map-selftests.c: New file.
2647
2648 2017-11-09 Joel Brobecker <brobecker@adacore.com>
2649
2650 * ada-lang.c: Fix some typos in the general command documenting
2651 how Ada expressions are being evaluated and how their result
2652 is printed.
2653
2654 2017-11-09 Tom Tromey <tom@tromey.com>
2655
2656 * psymtab.c (psymbol_hash): Do not hash string contents.
2657 (psymbol_compare): Add comment.
2658
2659 2017-11-09 Tom Tromey <tom@tromey.com>
2660
2661 * dictionary.c (dict_hash): Move "TKB" check into the "switch".
2662
2663 2017-11-08 Joel Brobecker <brobecker@adacore.com>
2664
2665 * ada-exp.y (write_var_from_sym): Remove parameter
2666 "orig_left_context". Update all callers.
2667
2668 2017-11-08 Simon Marchi <simon.marchi@ericsson.com>
2669
2670 * tracepoint.h (class collection_list) <stringify>: Return
2671 std::vector<std::string>.
2672 (encode_actions_rsp): Change parameters to
2673 std::vector<std::string> *.
2674 * tracepoint.c (collection_list::stringify): Return
2675 std::vector<std::string> and adjust accordingly.
2676 (encode_actions_rsp): Changee parameters to
2677 std::vector<std::string> and adjust accordingly.
2678 * remote.c (free_actions_list),
2679 free_actions_list_cleanup_wrapper): Remove.
2680 (remote_download_tracepoint): Adjust to std::vector.
2681
2682 2017-11-08 Tom Tromey <tom@tromey.com>
2683
2684 * dwarf2read.c (symbolp): Remove typedef.
2685 (read_func_scope): Use std::vector.
2686 (process_structure_scope): Use std::vector.
2687
2688 2017-11-08 Pedro Alves <palves@redhat.com>
2689
2690 * ada-lang.c (ada_make_symbol_completion_list): Use
2691 completion_skip_symbol.
2692 * symtab.c (symbol_is_function_or_method(minimal_symbol*)): New.
2693 (symbol_is_function_or_method(symbol*)): New.
2694 (add_symtab_completions): Add complete_symbol_mode parameter. Use
2695 completion_skip_symbol.
2696 (default_collect_symbol_completion_matches_break_on): Use
2697 completion_skip_symbol. Pass down mode.
2698 (collect_file_symbol_completion_matches): Pass down mode.
2699 * symtab.h (symbol_is_function_or_method): New declarations.
2700 (completion_skip_symbol): New template function.
2701
2702 2017-11-08 Pedro Alves <palves@redhat.com>
2703
2704 * linespec.c (iterate_over_all_matching_symtabs): Add
2705 search_domain parameter. Pass it down to expand_symtabs_matching.
2706 (decode_objc): Request FUNCTIONS_DOMAIN symbols only.
2707 (lookup_prefix_sym): Adjust by passing ALL_DOMAIN as
2708 search_domain.
2709 (add_all_symbol_names_from_pspace): Add search_domain parameter.
2710 Pass it down.
2711 (find_method, find_function_symbols): Request FUNCTIONS_DOMAIN
2712 symbols.
2713 (add_matching_symbols_to_info): Add search_domain parameter. Pass
2714 it down.
2715
2716 2017-11-08 Pedro Alves <palves@redhat.com>
2717
2718 * ada-lang.c (ada_make_symbol_completion_list): Remove text and
2719 text_len locals and don't pass them down.
2720 * symtab.c (completion_list_add_name): Remove
2721 sym_text/sym_text_len parameters and adjust.
2722 (completion_list_add_symbol, completion_list_add_msymbol)
2723 (completion_list_objc_symbol, completion_list_add_fields)
2724 (add_symtab_completions): Likewise.
2725 (default_collect_symbol_completion_matches_break_on)
2726 (collect_file_symbol_completion_matches): Remove sym_text_len
2727 local and don't pass it down.
2728 * symtab.h (completion_list_add_name): Remove
2729 sym_text/sym_text_len parameters.
2730
2731 2017-11-08 Pedro Alves <palves@redhat.com>
2732
2733 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2734 unittests/lookup_name_info-selftests.c.
2735 (SUBDIR_UNITTESTS_OBS): Add lookup_name_info-selftests.o.
2736 * cp-support.c: Include "selftest.h".
2737 (cp_remove_params_1): Rename from cp_remove_params. Add
2738 'require_param' parameter, and handle it.
2739 (cp_remove_params): Reimplement.
2740 (cp_remove_params_if_any): New.
2741 (selftests::quote): New.
2742 (selftests::check_remove_params): New.
2743 (selftests::test_cp_remove_params): New.
2744 (_initialize_cp_support): Install
2745 selftests::test_cp_remove_params.
2746 * cp-support.h (cp_remove_params_if_any): Declare.
2747 * dwarf2read.c :Include "selftest.h".
2748 (dw2_expand_symtabs_matching_symbol): Use
2749 lookup_name_info::make_ignore_params.
2750 (selftests::dw2_expand_symtabs_matching::mock_mapped_index)
2751 (selftests::dw2_expand_symtabs_matching::string_or_null)
2752 (selftests::dw2_expand_symtabs_matching::check_match)
2753 (selftests::dw2_expand_symtabs_matching::test_symbols)
2754 (selftests::dw2_expand_symtabs_matching::run_test): New.
2755 (_initialize_dwarf2_read): Register
2756 selftests::dw2_expand_symtabs_matching::run_test.
2757 * psymtab.c (psym_expand_symtabs_matching): Use
2758 lookup_name_info::make_ignore_params.
2759 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info):
2760 If the lookup name wants to ignore parameters, strip them.
2761 (compare_symbol_name): Remove sym_text/sym_text_len parameters and
2762 code handling '('.
2763 (completion_list_add_name): Don't pass down sym_text/sym_text_len.
2764 (default_collect_symbol_completion_matches_break_on): Don't try to
2765 strip parameters.
2766 * symtab.h (lookup_name_info::lookup_name_info): Add
2767 'ignore_parameters' parameter.
2768 (lookup_name_info::ignore_parameters)
2769 (lookup_name_info::make_ignore_params): New methods.
2770 (lookup_name_info::m_ignore_parameters): New field.
2771 * unittests/lookup_name_info-selftests.c: New file.
2772
2773 2017-11-08 Pedro Alves <palves@redhat.com>
2774
2775 * dwarf2read.c (dw2_expand_marked_cus)
2776 (dw2_expand_symtabs_matching_symbol): Remove forward declarations.
2777 (dw2_expand_symtabs_matching): Move further below.
2778 (dw2_expand_marked_cus): Reindent.
2779
2780 2017-11-08 Pedro Alves <palves@redhat.com>
2781
2782 * dwarf2read.c (byte_swap, MAYBE_SWAP): Move higher up in file.
2783 (struct name_component): New.
2784 (mapped_index::name_components): New field.
2785 (mapped_index::symbol_name_at): New method.
2786 (dwarf2_read_index): Call mapped_index ctor.
2787 (dw2_map_matching_symbols): Add comment about name_components
2788 table.
2789 (dw2_expand_symtabs_matching): Factor part to...
2790 (dw2_expand_symtabs_matching_symbol): ... this new function.
2791 Build name components table, and lookup symbols in it before
2792 calling the name matcher.
2793 (dw2_expand_marked_cus): New, factored out from
2794 dw2_expand_symtabs_matching.
2795 (dwarf2_per_objfile_free): Call the mapped_index's dtor.
2796
2797 2017-11-08 Pedro Alves <palves@redhat.com>
2798
2799 * ada-lang.c (ada_encode): Rename to ..
2800 (ada_encode_1): ... this. Add throw_errors parameter and handle
2801 it.
2802 (ada_encode): Reimplement.
2803 (match_name): Delete, folded into full_name.
2804 (resolve_subexp): No longer pass the encoded name to
2805 ada_lookup_symbol_list.
2806 (should_use_wild_match): Delete.
2807 (name_match_type_from_name): New.
2808 (ada_lookup_simple_minsym): Use lookup_name_info and the
2809 language's symbol_name_matcher_ftype.
2810 (add_symbols_from_enclosing_procs, ada_add_local_symbols)
2811 (ada_add_block_renamings): Adjust to use lookup_name_info.
2812 (ada_lookup_name): New.
2813 (add_nonlocal_symbols, ada_add_all_symbols)
2814 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list)
2815 (ada_iterate_over_symbols): Adjust to use lookup_name_info.
2816 (ada_name_for_lookup): Delete.
2817 (ada_lookup_encoded_symbol): Construct a verbatim name.
2818 (wild_match): Reverse sense of return type. Use bool.
2819 (full_match): Reverse sense of return type. Inline bits of old
2820 match_name here.
2821 (ada_add_block_symbols): Adjust to use lookup_name_info.
2822 (symbol_completion_match): Delete, folded into...
2823 (ada_lookup_name_info::matches): ... .this new method.
2824 (symbol_completion_add): Delete.
2825 (ada_collect_symbol_completion_matches): Add name_match_type
2826 parameter. Adjust to use lookup_name_info and
2827 completion_list_add_name.
2828 (get_var_value, ada_add_global_exceptions): Adjust to use
2829 lookup_name_info.
2830 (ada_get_symbol_name_cmp): Delete.
2831 (do_wild_match, do_full_match): New functions.
2832 (ada_lookup_name_info::ada_lookup_name_info): New method.
2833 (ada_symbol_name_matches, ada_get_symbol_name_matcher): New
2834 functions.
2835 (ada_language_defn): Install ada_get_symbol_name_matcher.
2836 * ada-lex.l (processId): If name starts with '<', copy it
2837 verbatim.
2838 * block.c (block_iter_match_step, block_iter_match_first)
2839 (block_iter_match_next, block_lookup_symbol)
2840 (block_lookup_symbol_primary, block_find_symbol): Adjust to use
2841 lookup_name_info.
2842 * block.h (block_iter_match_first, block_iter_match_next)
2843 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use lookup_name_info.
2844 * c-lang.c (c_language_defn, cplus_language_defn)
2845 (asm_language_defn, minimal_language_defn): Adjust comments to
2846 refer to la_get_symbol_name_matcher.
2847 * completer.c (complete_files_symbols)
2848 (collect_explicit_location_matches, symbol_completer): Pass a
2849 symbol_name_match_type down.
2850 * completer.h (class completion_match, completion_match_result):
2851 New classes.
2852 (completion_tracker::reset_completion_match_result): New method.
2853 (completion_tracker::m_completion_match_result): New field.
2854 * cp-support.c (make_symbol_overload_list_block): Adjust to use
2855 lookup_name_info.
2856 (cp_fq_symbol_name_matches, cp_get_symbol_name_matcher): New
2857 functions.
2858 * cp-support.h (cp_get_symbol_name_matcher): New declaration.
2859 * d-lang.c: Adjust comments to refer to
2860 la_get_symbol_name_matcher.
2861 * dictionary.c (dict_vector) <iter_match_first, iter_match_next>:
2862 Adjust to use lookup_name_info.
2863 (dict_iter_match_first, dict_iter_match_next)
2864 (iter_match_first_hashed, iter_match_next_hashed)
2865 (iter_match_first_linear, iter_match_next_linear): Adjust to work
2866 with a lookup_name_info.
2867 * dictionary.h (dict_iter_match_first, dict_iter_match_next):
2868 Likewise.
2869 * dwarf2read.c (dw2_lookup_symbol): Adjust to use lookup_name_info.
2870 (dw2_map_matching_symbols): Adjust to use symbol_name_match_type.
2871 (gdb_index_symbol_name_matcher): New class.
2872 (dw2_expand_symtabs_matching) Adjust to use lookup_name_info and
2873 gdb_index_symbol_name_matcher. Accept a NULL symbol_matcher.
2874 * f-lang.c (f_collect_symbol_completion_matches): Adjust to work
2875 with a symbol_name_match_type.
2876 (f_language_defn): Adjust comments to refer to
2877 la_get_symbol_name_matcher.
2878 * go-lang.c (go_language_defn): Adjust comments to refer to
2879 la_get_symbol_name_matcher.
2880 * language.c (default_symbol_name_matcher)
2881 (language_get_symbol_name_matcher): New functions.
2882 (unknown_language_defn, auto_language_defn): Adjust comments to
2883 refer to la_get_symbol_name_matcher.
2884 * language.h (symbol_name_cmp_ftype): Delete.
2885 (language_defn) <la_collect_symbol_completion_matches>: Add match
2886 type parameter.
2887 <la_get_symbol_name_cmp>: Delete field.
2888 <la_get_symbol_name_matcher>: New field.
2889 <la_iterate_over_symbols>: Adjust to use lookup_name_info.
2890 (default_symbol_name_matcher, language_get_symbol_name_matcher):
2891 Declare.
2892 * linespec.c (iterate_over_all_matching_symtabs)
2893 (iterate_over_file_blocks): Adjust to use lookup_name_info.
2894 (find_methods): Add language parameter, and use lookup_name_info
2895 and the language's symbol_name_matcher_ftype.
2896 (linespec_complete_function): Adjust.
2897 (lookup_prefix_sym): Use lookup_name_info.
2898 (add_all_symbol_names_from_pspace): Adjust.
2899 (find_superclass_methods): Add language parameter and pass it
2900 down.
2901 (find_method): Pass symbol language down.
2902 (find_linespec_symbols): Don't demangle or Ada encode here.
2903 (search_minsyms_for_name): Add lookup_name_info parameter.
2904 (add_matching_symbols_to_info): Add name_match_type parameter.
2905 Use lookup_name_info.
2906 * m2-lang.c (m2_language_defn): Adjust comments to refer to
2907 la_get_symbol_name_matcher.
2908 * minsyms.c: Include <algorithm>.
2909 (add_minsym_to_demangled_hash_table): Remove table parameter and
2910 add objfile parameter. Use search_name_hash, and add language to
2911 demangled languages vector.
2912 (struct found_minimal_symbols): New struct.
2913 (lookup_minimal_symbol_mangled, lookup_minimal_symbol_demangled):
2914 New functions.
2915 (lookup_minimal_symbol): Adjust to use them. Don't canonicalize
2916 input names here. Use lookup_name_info instead. Lookup up
2917 demangled names once for each language in the demangled names
2918 vector.
2919 (iterate_over_minimal_symbols): Use lookup_name_info. Lookup up
2920 demangled names once for each language in the demangled names
2921 vector.
2922 (build_minimal_symbol_hash_tables): Adjust.
2923 * minsyms.h (iterate_over_minimal_symbols): Adjust to pass down a
2924 lookup_name_info.
2925 * objc-lang.c (objc_language_defn): Adjust comment to refer to
2926 la_get_symbol_name_matcher.
2927 * objfiles.h: Include <vector>.
2928 (objfile_per_bfd_storage) <demangled_hash_languages>: New field.
2929 * opencl-lang.c (opencl_language_defn): Adjust comment to refer to
2930 la_get_symbol_name_matcher.
2931 * p-lang.c (pascal_language_defn): Adjust comment to refer to
2932 la_get_symbol_name_matcher.
2933 * psymtab.c (psym_lookup_symbol): Use lookup_name_info.
2934 (match_partial_symbol): Use symbol_name_match_type,
2935 lookup_name_info and psymbol_name_matches.
2936 (lookup_partial_symbol): Use lookup_name_info.
2937 (map_block): Use symbol_name_match_type and lookup_name_info.
2938 (psym_map_matching_symbols): Use symbol_name_match_type.
2939 (psymbol_name_matches): New.
2940 (recursively_search_psymtabs): Use lookup_name_info and
2941 psymbol_name_matches. Rename 'kind' parameter to 'domain'.
2942 (psym_expand_symtabs_matching): Use lookup_name_info. Rename
2943 'kind' parameter to 'domain'.
2944 * rust-lang.c (rust_language_defn): Adjust comment to refer to
2945 la_get_symbol_name_matcher.
2946 * symfile-debug.c (debug_qf_map_matching_symbols)
2947 (debug_qf_map_matching_symbols): Use symbol_name_match_type.
2948 (debug_qf_expand_symtabs_matching): Use lookup_name_info.
2949 * symfile.c (expand_symtabs_matching): Use lookup_name_info.
2950 * symfile.h (quick_symbol_functions) <map_matching_symbols>:
2951 Adjust to use symbol_name_match_type.
2952 <expand_symtabs_matching>: Adjust to use lookup_name_info.
2953 (expand_symtabs_matching): Adjust to use lookup_name_info.
2954 * symmisc.c (maintenance_expand_symtabs): Use
2955 lookup_name_info::match_any ().
2956 * symtab.c (symbol_matches_search_name): New.
2957 (eq_symbol_entry): Adjust to use lookup_name_info and the
2958 language's matcher.
2959 (demangle_for_lookup_info::demangle_for_lookup_info): New.
2960 (lookup_name_info::match_any): New.
2961 (iterate_over_symbols, search_symbols): Use lookup_name_info.
2962 (compare_symbol_name): Add language, lookup_name_info and
2963 completion_match_result parameters, and use them.
2964 (completion_list_add_name): Make extern. Add language and
2965 lookup_name_info parameters. Use them.
2966 (completion_list_add_symbol, completion_list_add_msymbol)
2967 (completion_list_objc_symbol): Add lookup_name_info parameters and
2968 adjust. Pass down language.
2969 (completion_list_add_fields): Add lookup_name_info parameters and
2970 adjust. Pass down language.
2971 (add_symtab_completions): Add lookup_name_info parameters and
2972 adjust.
2973 (default_collect_symbol_completion_matches_break_on): Add
2974 name_match_type parameter, and use it. Use lookup_name_info.
2975 (default_collect_symbol_completion_matches)
2976 (collect_symbol_completion_matches): Add name_match_type
2977 parameter, and pass it down.
2978 (collect_symbol_completion_matches_type): Adjust.
2979 (collect_file_symbol_completion_matches): Add name_match_type
2980 parameter, and use lookup_name_info.
2981 * symtab.h: Include <string> and "common/gdb_optional.h".
2982 (enum class symbol_name_match_type): New.
2983 (class ada_lookup_name_info): New.
2984 (struct demangle_for_lookup_info): New.
2985 (class lookup_name_info): New.
2986 (symbol_name_matcher_ftype): New.
2987 (SYMBOL_MATCHES_SEARCH_NAME): Use symbol_matches_search_name.
2988 (symbol_matches_search_name): Declare.
2989 (MSYMBOL_MATCHES_SEARCH_NAME): Delete.
2990 (default_collect_symbol_completion_matches)
2991 (collect_symbol_completion_matches)
2992 (collect_file_symbol_completion_matches): Add name_match_type
2993 parameter.
2994 (iterate_over_symbols): Use lookup_name_info.
2995 (completion_list_add_name): Declare.
2996 * utils.c (enum class strncmp_iw_mode): Moved to utils.h.
2997 (strncmp_iw_with_mode): Now extern.
2998 * utils.h (enum class strncmp_iw_mode): Moved from utils.c.
2999 (strncmp_iw_with_mode): Declare.
3000
3001 2017-11-08 Keith Seitz <keiths@redhat.com>
3002 Pedro Alves <palves@redhat.com>
3003
3004 * ada-lang.c (ada_language_defn): Install
3005 default_search_name_hash.
3006 * buildsym.c (struct buildsym_compunit): <language>: New field.
3007 (finish_block_internal): Pass language when creating dictionaries.
3008 (start_buildsym_compunit, start_symtab): New language parameters.
3009 Use them.
3010 (restart_symtab): Pass down compilation unit's language.
3011 * buildsym.h (enum language): Forward declare.
3012 (start_symtab): New 'language' parameter.
3013 * c-lang.c (c_language_defn, cplus_language_defn)
3014 (asm_language_defn, minimal_language_defn): Install
3015 default_search_name_hash.
3016 * coffread.c (coff_start_symtab): Adjust.
3017 * d-lang.c (d_language_defn): Install default_search_name_hash.
3018 * dbxread.c (struct symloc): Add 'pst_language' field.
3019 (PST_LANGUAGE): Define.
3020 (start_psymtab, read_ofile_symtab): Use it.
3021 (process_one_symbol): New 'language' parameter. Pass it down.
3022 * dictionary.c (struct dictionary) <language>: New field.
3023 (DICT_LANGUAGE): Define.
3024 (dict_create_hashed, dict_create_hashed_expandable)
3025 (dict_create_linear, dict_create_linear_expandable): New parameter
3026 'language'. Set the dictionary's language.
3027 (iter_match_first_hashed): Adjust to rename.
3028 (insert_symbol_hashed): Assert we don't see mismatching
3029 languages. Adjust to rename.
3030 (dict_hash): Rename to ...
3031 (default_search_name_hash): ... this and make extern.
3032 * dictionary.h (struct language_defn): Forward declare.
3033 (dict_create_hashed): New parameter 'language'.
3034 * dwarf2read.c (dwarf2_start_symtab): Pass down language.
3035 * f-lang.c (f_language_defn): Install default_search_name_hash.
3036 * go-lang.c (go_language_defn): Install default_search_name_hash.
3037 * jit.c (finalize_symtab): Pass compunit's language to dictionary
3038 creation.
3039 * language.c (unknown_language_defn, auto_language_defn):
3040 * language.h (language_defn::la_search_name_hash): New field.
3041 (default_search_name_hash): Declare.
3042 * m2-lang.c (m2_language_defn): Install default_search_name_hash.
3043 * mdebugread.c (new_block): New parameter 'language'.
3044 * mdebugread.c (parse_symbol): Pass symbol language to block
3045 allocation.
3046 (psymtab_to_symtab_1): Pass down language.
3047 (new_symtab): Pass compunit's language to block allocation.
3048 * objc-lang.c (objc_language_defn): Install
3049 default_search_name_hash.
3050 * opencl-lang.c (opencl_language_defn):
3051 * p-lang.c (pascal_language_defn): Install
3052 default_search_name_hash.
3053 * rust-lang.c (rust_language_defn): Install
3054 default_search_name_hash.
3055 * stabsread.h (enum language): Forward declare.
3056 (process_one_symbol): Add 'language' parameter.
3057 * symtab.c (search_name_hash): New function.
3058 * symtab.h (search_name_hash): Declare.
3059 * xcoffread.c (read_xcoff_symtab): Pass language to start_symtab.
3060
3061 2017-11-08 Pedro Alves <palves@redhat.com>
3062
3063 * cp-name-parser.y (main): Don't initialize extra_chars.
3064
3065 2017-11-07 Tom Tromey <tom@tromey.com>
3066
3067 * event-top.h (command_handler): Constify.
3068 * record-full.c (cmd_record_full_start): Update.
3069 * thread.c (thread_apply_all_command): Update.
3070 * printcmd.c (eval_command): Update.
3071 * mi/mi-main.c (mi_execute_cli_command): Update.
3072 (mi_execute_async_cli_command): Update.
3073 * tui/tui-stack.c (tui_update_command): Update.
3074 * cli/cli-interp.c (safe_execute_command): Constify.
3075 * record.c (record_start): Update.
3076 (record_start, record_stop, cmd_record_start): Update.
3077 * record-btrace.c (cmd_record_btrace_bts_start): Update.
3078 (cmd_record_btrace_pt_start): Update.
3079 (cmd_record_btrace_start): Update.
3080 (cmd_record_btrace_start): Update.
3081 * reverse.c (exec_reverse_once): Update.
3082 * python/python.c (execute_gdb_command): Don't copy the command.
3083 * event-top.c (command_line_handler): Update.
3084 (command_handler): Constify.
3085 * defs.h (deprecated_call_command_hook): Constify.
3086 * cli/cli-script.h (execute_user_command): Constify.
3087 * cli/cli-script.c (execute_user_command): Constify.
3088 (execute_cmd_pre_hook, execute_cmd_post_hook): Constify.
3089 (enum command_control_type): Update.
3090 * main.c (catch_command_errors): Remove non-const overload.
3091 (catch_command_errors_ftype): Remove.
3092 * python/py-cmd.c (cmdpy_function): Constify.
3093 * guile/scm-cmd.c (cmdscm_function): Constify.
3094 * cli/cli-dump.c (call_dump_func): Constify.
3095 * cli/cli-decode.c (do_const_cfunc): Constify.
3096 (do_sfunc): Constify.
3097 (cmd_func): Constify.
3098 * gdbcmd.h (execute_command, execute_command_to_string): Constify.
3099 * top.h (execute_command): Constify.
3100 * top.c (execute_command): Constify.
3101 (execute_command_to_string): Constify.
3102 (deprecated_call_command_hook): Constify.
3103 * command.h (cmd_func): Constify.
3104 * cli/cli-decode.h (struct cmd_list_element) <func>: Constify.
3105
3106 2017-11-07 Tom Tromey <tom@tromey.com>
3107
3108 * ada-lang.c (catch_ada_exception_command): Constify.
3109 (catch_assert_command): Constify.
3110 * break-catch-throw.c (catch_catch_command, catch_throw_command)
3111 (catch_rethrow_command): Constify.
3112 (catch_exception_command_1): Constify.
3113 * breakpoint.h (add_catch_command): Constify.
3114 * break-catch-syscall.c (catch_syscall_command_1): Constify.
3115 (catch_syscall_split_args): Constify.
3116 * break-catch-sig.c (catch_signal_command): Constify.
3117 (catch_signal_split_args): Constify.
3118 * cli/cli-decode.h (struct cmd_list_element) <function>: Use
3119 cmd_const_sfunc_ftype.
3120 * cli/cli-decode.c (add_setshow_cmd_full): Constify.
3121 (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd)
3122 (add_setshow_boolean_cmd, add_setshow_filename_cmd)
3123 (add_setshow_string_cmd, struct cmd_list_element)
3124 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
3125 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
3126 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd):
3127 Constify.
3128 (set_cmd_sfunc): Constify.
3129 (empty_sfunc): Constify.
3130 * command.h (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd)
3131 (add_setshow_boolean_cmd, add_setshow_filename_cmd)
3132 (add_setshow_string_cmd, add_setshow_string_noescape_cmd)
3133 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
3134 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
3135 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
3136 Constify.
3137 (set_cmd_sfunc): Constify.
3138 (cmd_sfunc_ftype): Remove.
3139 * compile/compile.c (set_compile_args): Constify.
3140 * infrun.c (set_disable_randomization): Constify.
3141 * infcmd.c (set_args_command, set_cwd_command): Constify.
3142 * breakpoint.c (set_condition_evaluation_mode): Constify.
3143 (add_catch_command): Constify.
3144 (catch_fork_command_1, catch_exec_command_1)
3145 (catch_load_command_1, catch_unload_command_1): Constify.
3146 (catch_load_or_unload): Constify.
3147 * guile/scm-param.c (pascm_set_func): Constify.
3148 (add_setshow_generic): Constify.
3149 * python/py-param.c (get_set_value): Constify.
3150 * top.h (set_verbose): Constify.
3151 * tui/tui-win.c (tui_set_var_cmd): Constify.
3152 * mi/mi-main.c (set_mi_async_command): Constify.
3153 * cli/cli-logging.c (set_logging_overwrite)
3154 (set_logging_redirect): Constify.
3155 * value.c (set_max_value_size): Constify.
3156 * valprint.c (set_input_radix, set_output_radix): Constify.
3157 * utils.c (set_width_command, set_height_command): Constify.
3158 * typeprint.c (set_print_type_methods, set_print_type_typedefs): Constify.
3159 * tracepoint.c (set_disconnected_tracing)
3160 (set_circular_trace_buffer, set_trace_buffer_size)
3161 (set_trace_user, set_trace_notes, set_trace_stop_notes): Constify.
3162 * top.c (set_history_size_command, set_verbose, set_editing)
3163 (set_gdb_datadir, set_history_filename): Constify.
3164 * target.c (set_targetdebug, maint_set_target_async_command)
3165 (maint_set_target_non_stop_command, set_target_permissions)
3166 (set_write_memory_permission): Constify.
3167 (open_target): Constify.
3168 * target-descriptions.c (set_tdesc_filename_cmd): Constify.
3169 * target-dcache.c (set_stack_cache, set_code_cache): Constify.
3170 * symtab.c (set_symbol_cache_size_handler): Constify.
3171 * symfile.c (set_ext_lang_command): Constify.
3172 * symfile-debug.c (set_debug_symfile): Constify.
3173 * source.c (set_directories_command): Constify.
3174 * solib.c (reload_shared_libraries, gdb_sysroot_changed): Constify.
3175 * serial.c (set_parity): Constify.
3176 * rs6000-tdep.c (powerpc_set_soft_float, powerpc_set_vector_abi): Constify.
3177 * remote.c (set_remote_exec_file, set_remotebreak)
3178 (set_remote_protocol_Z_packet_cmd, set_range_stepping): Constify.
3179 * record.c (set_record_insn_history_size)
3180 (set_record_call_history_size): Constify.
3181 * record-full.c (set_record_full_insn_max_num): Constify.
3182 * proc-api.c (set_procfs_trace_cmd, set_procfs_file_cmd): Constify.
3183 * osabi.c (set_osabi): Constify.
3184 * mips-tdep.c (set_mips64_transfers_32bit_regs)
3185 (reinit_frame_cache_sfunc, mips_abi_update): Constify.
3186 * maint.c (maintenance_set_profile_cmd): Constify.
3187 * linux-thread-db.c (set_libthread_db_search_path): Constify.
3188 * language.c (set_language_command, set_range_command)
3189 (set_case_command): Constify.
3190 * infrun.c (set_non_stop, set_observer_mode)
3191 (set_stop_on_solib_events, set_schedlock_func)
3192 (set_exec_direction_func): Constify.
3193 * infcmd.c (set_inferior_tty_command): Constify.
3194 * disasm.c (set_disassembler_options_sfunc): Constify.
3195 * demangle.c (set_demangling_command): Constify.
3196 * dcache.c (set_dcache_size, set_dcache_line_size): Constify.
3197 * cris-tdep.c (set_cris_version, set_cris_mode)
3198 (set_cris_dwarf2_cfi): Constify.
3199 * corefile.c (set_gnutarget_command): Constify.
3200 * charset.c (set_host_charset_sfunc, set_target_charset_sfunc)
3201 (set_target_wide_charset_sfunc): Constify.
3202 * breakpoint.c (update_dprintf_commands): Constify.
3203 * auto-load.c (set_auto_load_dir, set_auto_load_safe_path): Constify.
3204 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi)
3205 (set_disassembly_style_sfunc): Constify.
3206 * arch-utils.c (set_endian, set_architecture): Constify.
3207 * alpha-tdep.c (reinit_frame_cache_sfunc): Constify.
3208 * agent.c (set_can_use_agent): Constify.
3209
3210 2017-11-07 Tom Tromey <tom@tromey.com>
3211
3212 * go32-nat.c (go32_sysinfo, go32_sldt, go32_sgdt, go32_sidt)
3213 (go32_pde, go32_pte, go32_pte_for_address): Constify.
3214 * gnu-nat.c (_parse_bool_arg, show_thread_default_pause_cmd)
3215 (set_thread_default_pause_cmd, set_thread_default_run_cmd)
3216 (show_thread_default_run_cmd, set_thread_default_detach_sc_cmd)
3217 (parse_int_arg, show_thread_default_detach_sc_cmd)
3218 (set_signals_cmd, show_signals_cmd, set_sig_thread_cmd)
3219 (show_sig_thread_cmd, set_stopped_cmd, show_stopped_cmd)
3220 (set_exceptions_cmd, show_exceptions_cmd, set_task_pause_cmd)
3221 (show_task_pause_cmd, set_task_detach_sc_cmd)
3222 (show_task_detach_sc_cmd, set_task_exc_port_cmd)
3223 (set_noninvasive_cmd, set_thread_pause_cmd)
3224 (show_thread_pause_cmd, set_thread_run_cmd, show_thread_run_cmd)
3225 (set_thread_detach_sc_cmd, show_thread_detach_sc_cmd)
3226 (set_thread_exc_port_cmd, thread_takeover_sc_cmd): Constify.
3227 * windows-nat.c (display_selectors): Constify.
3228 * cli/cli-decode.h (struct cmd_list_element) <function>: Remove
3229 non-const "cfunc".
3230 * cli/cli-decode.c (set_cmd_cfunc): Remove non-const overload.
3231 (cmd_cfunc_eq): Likewise.
3232 (struct cmd_list_element): Likewise.
3233 (do_cfunc): Remove.
3234 (cli_user_command_p): Update.
3235 * command.h (add_cmd): Remove non-const overload.
3236 (cmd_cfunc_ftype): Remove typedef.
3237 (cmd_cfunc_eq): Remove non-const overload.
3238 * value.c (show_values): Constify.
3239 * thread.c (thread_apply_all_command): Constify.
3240 * symfile.c (load_command): Constify.
3241 * source.c (directory_command): Constify.
3242 * maint.c (maintenance_internal_error)
3243 (maintenance_demangler_warning, maintenance_space_display)
3244 (maintenance_print_architecture, maintenance_translate_address)
3245 (maintenance_info_selftests, maintenance_internal_warning):
3246 Constify.
3247 * breakpoint.c (disable_trace_command, enable_trace_command):
3248 Constify.
3249 * auto-load.c (info_auto_load_local_gdbinit, add_auto_load_dir):
3250 Constify.
3251 (add_auto_load_safe_path): Constify.
3252 * guile/scm-auto-load.c (info_auto_load_guile_scripts): Constify.
3253 * top.h (show_commands): Constify.
3254 * linux-thread-db.c (info_auto_load_libthread_db): Constify.
3255 * sparc64-tdep.c (adi_examine_command): Constify.
3256 (adi_assign_command): Constify.
3257
3258 2017-11-07 Tom Tromey <tom@tromey.com>
3259
3260 * frame.h (info_locals_command, info_args_command): Constify.
3261 * auto-load.h (auto_load_info_scripts): Constify.
3262 * inferior.h (registers_info): Constify.
3263 * copying.c: Rebuild.
3264 * copying.awk: Constify generated commands.
3265 * auto-load.c (auto_load_info_scripts)
3266 (info_auto_load_gdb_scripts): Constify.
3267 * cli/cli-decode.c (struct cmd_list_element): Take a
3268 cmd_const_cfunc_ftype.
3269 * command.h (add_info): Take a cmd_const_cfunc_ftype.
3270 * tui/tui-win.c (tui_all_windows_info): Constify.
3271 * python/py-auto-load.c (info_auto_load_python_scripts):
3272 Constify.
3273 * cli/cli-cmds.c (show_command): Remove non-const overload.
3274 * tracepoint.c (info_tvariables_command, info_scope_command):
3275 Constify.
3276 (info_static_tracepoint_markers_command): Constify.
3277 * thread.c (info_threads_command): Constify.
3278 (print_thread_info_1): Constify.
3279 * target.c (info_target_command): Constify.
3280 * symtab.c (info_sources_command, info_functions_command)
3281 (info_types_command): Constify.
3282 (info_variables_command): Remove non-const overload.
3283 * symfile.c (info_ext_lang_command): Constify.
3284 * stack.c (info_frame_command, info_locals_command)
3285 (info_args_command): Constify.
3286 (backtrace_command): Remove non-const overload.
3287 * source.c (info_source_command, info_line_command): Constify.
3288 * solib.c (info_sharedlibrary_command): Constify.
3289 * skip.c (info_skip_command): Constify.
3290 * ser-go32.c (info_serial_command): Constify.
3291 * reverse.c (info_bookmarks_command): Constify.
3292 * printcmd.c (info_symbol_command, info_address_command)
3293 (info_display_command): Constify.
3294 * osdata.c (info_osdata_command): Constify.
3295 * objc-lang.c (info_selectors_command, info_classes_command):
3296 Constify.
3297 * nto-procfs.c (procfs_pidlist, procfs_meminfo): Constify.
3298 * memattr.c (info_mem_command): Constify.
3299 * macrocmd.c (info_macro_command, info_macros_command): Constify.
3300 * linux-fork.c (info_checkpoints_command): Constify.
3301 * infrun.c (info_signals_command): Constify.
3302 * inflow.c (info_terminal_command): Constify.
3303 * inferior.c (info_inferiors_command): Constify.
3304 (print_inferior): Constify.
3305 * infcmd.c (info_program_command, info_all_registers_command)
3306 (info_registers_command, info_vector_command)
3307 (info_float_command): Constify.
3308 (registers_info): Constify.
3309 * gnu-nat.c (info_send_rights_cmd, info_recv_rights_cmd)
3310 (info_port_sets_cmd, info_dead_names_cmd, info_port_rights_cmd):
3311 Constify.
3312 * f-valprint.c (info_common_command): Constify.
3313 * dcache.c (info_dcache_command): Constify.
3314 (dcache_info_1): Constify.
3315 * darwin-nat-info.c (info_mach_tasks_command)
3316 (info_mach_task_command, info_mach_ports_command)
3317 (info_mach_port_command, info_mach_threads_command)
3318 (info_mach_thread_command, info_mach_regions_command)
3319 (info_mach_regions_recurse_command, info_mach_region_command)
3320 (info_mach_exceptions_command): Constify.
3321 (get_task_from_args): Constify.
3322 * cp-support.c (info_vtbl_command): Constify.
3323 * breakpoint.c (info_watchpoints_command)
3324 (info_tracepoints_command): Constify.
3325 (info_breakpoints_command): Remove non-const overload.
3326 * avr-tdep.c (avr_io_reg_read_command): Constify.
3327 * auxv.c (info_auxv_command): Constify.
3328 * ada-tasks.c (info_tasks_command): Constify.
3329 (info_task): Constify.
3330 * ada-lang.c (info_exceptions_command): Constify.
3331
3332 2017-11-07 Tom Tromey <tom@tromey.com>
3333
3334 * solib.h (no_shared_libraries): Constify.
3335 * frame.h (return_command): Constify.
3336 * cli/cli-cmds.h (quit_command): Constify.
3337 * top.h (quit_command, execute_command): Constify.
3338 * target.h (flash_erase_command): Constify.
3339 * inferior.h (set_inferior_args, attach_command): Constify.
3340 * tracepoint.h (start_tracing, stop_tracing): Constify.
3341 * breakpoint.h (break_command, tbreak_command)
3342 (hbreak_command_wrapper, thbreak_command_wrapper)
3343 (rbreak_command_wrapper, watch_command_wrapper)
3344 (awatch_command_wrapper, rwatch_command_wrapper)
3345 (get_tracepoint_by_number): Constify.
3346 * symtab.c (info_variables_command, rbreak_command)
3347 (symtab_symbol_info): Constify.
3348 (info_variables_command): Add non-const overload.
3349 * top.c (dont_repeat_command): Constify.
3350 * breakpoint.c (ignore_command, commands_command)
3351 (condition_command, tbreak_command, hbreak_command)
3352 (thbreak_command, clear_command, break_command)
3353 (info_breakpoints_command, watch_command, rwatch_command)
3354 (awatch_command, trace_command, ftrace_command, strace_command)
3355 (trace_pass_command, break_range_command, dprintf_command)
3356 (agent_printf_command, get_tracepoint_by_number)
3357 (watch_maybe_just_location, trace_pass_command): Constify.
3358 (info_breakpoints_command): Add non-const overload.
3359 * tracefile.c (tsave_command): Constify.
3360 * infcmd.c (attach_command, disconnect_command, signal_command)
3361 (queue_signal_command, stepi_command, nexti_command)
3362 (finish_command, next_command, step_command, until_command)
3363 (advance_command, jump_command, continue_command, run_command)
3364 (start_command, starti_command, interrupt_command)
3365 (run_command_1, set_inferior_args, step_1): Constify.
3366 * inferior.c (add_inferior_command, remove_inferior_command)
3367 (clone_inferior_command): Constify.
3368 * linux-fork.c (checkpoint_command, restart_command): Constify.
3369 * windows-nat.c (signal_event_command): Constify.
3370 * guile/guile.c (guile_repl_command, guile_command): Constify.
3371 * printcmd.c (x_command, display_command, printf_command)
3372 (output_command, set_command, call_command, print_command)
3373 (eval_command): Constify.
3374 (non_const_set_command): Remove.
3375 (_initialize_printcmd): Update.
3376 * source.c (forward_search_command, reverse_search_command):
3377 Constify.
3378 * jit.c (jit_reader_load_command, jit_reader_unload_command):
3379 Constify.
3380 * infrun.c (handle_command): Constify.
3381 * memattr.c (mem_command): Constify.
3382 * stack.c (return_command, up_command, up_silently_command)
3383 (down_command, down_silently_command, frame_command)
3384 (backtrace_command, func_command, backtrace_command_1): Constify.
3385 (backtrace_command): Add non-const overload.
3386 * remote-sim.c (simulator_command): Constify.
3387 * exec.c (set_section_command): Constify.
3388 * tracepoint.c (tdump_command, trace_variable_command)
3389 (tstatus_command, tstop_command, tstart_command)
3390 (end_actions_pseudocommand, while_stepping_pseudocommand)
3391 (collect_pseudocommand, teval_pseudocommand, actions_command)
3392 (start_tracing, stop_tracing): Constify.
3393 * value.c (init_if_undefined_command): Constify.
3394 * tui/tui-stack.c (tui_update_command): Constify.
3395 * tui/tui-win.c (tui_refresh_all_command)
3396 (tui_set_tab_width_command, tui_set_win_height_command)
3397 (tui_set_focus_command, tui_scroll_forward_command)
3398 (tui_scroll_backward_command, tui_scroll_left_command)
3399 (tui_scroll_right_command, parse_scrolling_args, tui_set_focus)
3400 (tui_set_win_height): Constify.
3401 * tui/tui-layout.c (tui_layout_command): Constify.
3402 * procfs.c (proc_trace_syscalls, proc_trace_sysentry_cmd)
3403 (proc_trace_sysexit_cmd, proc_untrace_sysentry_cmd)
3404 (proc_untrace_sysexit_cmd): Constify.
3405 * remote.c (threadlist_test_cmd, threadinfo_test_cmd)
3406 (threadset_test_cmd, threadlist_update_test_cmd)
3407 (threadalive_test): Constify.
3408 * objc-lang.c (print_object_command): Constify.
3409 * command.h (add_com): Constify.
3410 * cli/cli-dump.c (restore_command): Constify.
3411 * cli/cli-cmds.c (pwd_command, echo_command, quit_command)
3412 (help_command, complete_command, shell_command, edit_command)
3413 (list_command, disassemble_command, make_command)
3414 (apropos_command, alias_command): Constify.
3415 * cli/cli-script.c (document_command, define_command)
3416 (while_command, if_command, validate_comname): Constify.
3417 * cli/cli-decode.c (struct cmd_list_element): Change type of
3418 "fun".
3419 * target.c (do_monitor_command, flash_erase_command): Constify.
3420 * regcache.c (reg_flush_command): Constify.
3421 * reverse.c (reverse_step, reverse_next, reverse_stepi)
3422 (reverse_nexti, reverse_continue, reverse_finish)
3423 (save_bookmark_command, goto_bookmark_command)
3424 (exec_reverse_once): Constify.
3425 * python/python.c (python_interactive_command, python_command):
3426 Constify.
3427 * typeprint.c (ptype_command, whatis_command, whatis_exp):
3428 Constify.
3429 * solib.c (sharedlibrary_command, no_shared_libraries): Constify.
3430 * gcore.c (gcore_command): Constify.
3431
3432 2017-11-07 Tom Tromey <tom@tromey.com>
3433
3434 * printcmd.c (x_command): Call set_repeat_arguments.
3435 * cli/cli-cmds.c (list_command): Call set_repeat_arguments.
3436 * top.c (repeat_arguments): New global.
3437 (set_repeat_arguments): New function.
3438 (execute_command): Handle repeat_arguments.
3439 (show_commands): Calls set_repeat_arguments.
3440 * command.h (set_repeat_arguments): Declare.
3441
3442 2017-11-07 Tom Tromey <tom@tromey.com>
3443
3444 * stack.c (backtrace_command): Use std::string.
3445 (backtrace_command_1): Make "count_exp" const.
3446
3447 2017-11-07 Tom Tromey <tom@tromey.com>
3448
3449 * source.c (directory_switch, mod_path, add_path): Constify.
3450 * defs.h (add_path, mod_path, directory_switch): Constify.
3451 * mi/mi-cmd-env.c (env_mod_path): Constify.
3452
3453 2017-11-07 Tom Tromey <tom@tromey.com>
3454
3455 * infcmd.c (strip_bg_char): Return gdb::unique_xmalloc_ptr.
3456 (run_command_1, continue_command, step_1, jump_command)
3457 (signal_command, until_command, advance_command, finish_command)
3458 (attach_command): Update.
3459
3460 2017-11-07 Tom Tromey <tom@tromey.com>
3461
3462 * command.h (set_cmd_cfunc): Don't declare.
3463 * cli/cli-decode.c (set_cmd_cfunc): Now static.
3464
3465 2017-11-07 Tom Tromey <tom@tromey.com>
3466
3467 * stack.c (select_frame_command): Constify.
3468 * cli/cli-decode.c (add_com_suppress_notification): Constify.
3469 * command.h (add_com_suppress_notification): Constify.
3470
3471 2017-11-07 Tom Tromey <tom@tromey.com>
3472
3473 * breakpoint.c (stop_command): Constify.
3474 * cli/cli-decode.c (struct cmd_list_element): Constify.
3475 * command.h (add_abbrev_prefix_cmd): Constify.
3476
3477 2017-11-07 Pedro Alves <palves@redhat.com>
3478
3479 * breakpoint.c (extract_bp_kind): New enum.
3480 (extract_bp_num, extract_bp_or_bp_range): New functions, partially
3481 factored out from ...
3482 (extract_bp_number_and_location): ... here.
3483 * cli/cli-utils.c (get_number_trailer): Handle '-$variable'.
3484
3485 2017-11-07 Pedro Alves <palves@redhat.com>
3486
3487 * breakpoint.c (extract_bp_number_and_location): Change return
3488 type to void. Throw error instead of warning.
3489 (enable_disable_command): Adjust.
3490
3491 2017-11-07 Xavier Roirand <roirand@adacore.com>
3492 Pedro Alves <palves@redhat.com>
3493
3494 * breakpoint.c (map_breakpoint_number_range): New, factored out
3495 from ...
3496 (map_breakpoint_numbers): ... here.
3497 (find_location_by_number): Change parameters from string to
3498 breakpoint number and location.
3499 (extract_bp_number_and_location): New function.
3500 (enable_disable_bp_num_loc)
3501 (enable_disable_breakpoint_location_range)
3502 (enable_disable_command): New functions, factored out ...
3503 (enable_command, disable_command): ... these functions, and
3504 adjusted to support ranges.
3505 * NEWS: Document enable/disable breakpoint location range feature.
3506
3507 2017-11-06 Luis Machado <luis.machado@linaro.org>
3508
3509 * MAINTAINERS (Write After Approval): Update my e-mail address.
3510
3511 2017-11-06 Pedro Alves <palves@redhat.com>
3512
3513 * gnu-nat.c (gnu_terminal_init): Delete.
3514 (gnu_target): Don't install gnu_terminal_init.
3515 * inflow.c (child_terminal_init_with_pgrp): Delete, merged with ...
3516 (child_terminal_init): ... this function.
3517
3518 2017-11-06 Pedro Alves <palves@redhat.com>
3519
3520 * common/common.m4 (GDB_AC_COMMON): No longer check termio.h nor
3521 sgtty.h.
3522 * config.in, configure: Regenerate.
3523
3524 2017-11-06 Pedro Alves <palves@redhat.com>
3525
3526 * event-top.c: Check SIGTSTP instead of STOP_SIGNAL thoughout.
3527 (async_init_signals): Adjust.
3528 (handle_stop_sig): Rename to ...
3529 (handle_sigtstp): ... this.
3530 (async_stop_sig): Rename to ...
3531 (async_sigtstp_handler): ... this, and delete STOP_SIGNAL !=
3532 SIGTSTP path.
3533 * event-top.h: Move signal.h include to the top. Check SIGTSTP
3534 instead of STOP_SIGNAL thoughout.
3535 (handle_stop_sig): Rename to ...
3536 (handle_sigtstp): ... this.
3537 * top.c (command_line_input): Replace STOP_SIGNAL -> SIGTSTP.
3538
3539 2017-11-06 Pedro Alves <palves@redhat.com>
3540
3541 * inflow.c (child_terminal_inferior, child_terminal_ours_1): No
3542 longer set flags twice in row.
3543
3544 2017-11-06 Pedro Alves <palves@redhat.com>
3545
3546 * Makefile.in (SER_HARDWIRE): Update comment.
3547 (HFILES_NO_SRCDIR): Remove gdb_termios.h.
3548 * common/gdb_termios.h: Delete file.
3549 * common/job-control.c: Include termios.h and unistd.h instead of
3550 gdb_termios.h.
3551 (gdb_setpgid): Remove HAVE_TERMIOS || TIOCGPGRP preprocessor
3552 check.
3553 (have_job_control): Check HAVE_TERMIOS_H instead of HAVE_TERMIOS.
3554 Remove sgtty code.
3555 * configure.ac: No longer check for termio.h and sgtty.h.
3556 * configure: Regenerate.
3557 * inflow.c: Include termios.h instead of gdb_termios.h. Replace
3558 PROCESS_GROUP_TYPE checks with HAVE_TERMIOS_H checks throughout.
3559 Replace PROCESS_GROUP_TYPE references with pid_t references
3560 throughout.
3561 (gdb_getpgrp): Delete.
3562 (set_initial_gdb_ttystate): Use tcgetpgrp instead of gdb_getpgrp.
3563 (child_terminal_inferior): Remove comment. Remove sgtty code.
3564 (child_terminal_ours_1): Use tcgetpgrp directly instead of
3565 gdb_getpgrp. Use serial_set_tty_state instead aof
3566 serial_noflush_set_tty_state. Remove sgtty code.
3567 * inflow.h: Include unistd.h instead of gdb_termios.h. Replace
3568 PROCESS_GROUP_TYPE check with HAVE_TERMIOS_H check.
3569 (inferior_process_group): Now returns pid_t.
3570 * ser-base.c (ser_base_noflush_set_tty_state): Delete.
3571 * ser-base.h (ser_base_noflush_set_tty_state): Delete.
3572 * ser-event.c (serial_event_ops): Update.
3573 * ser-go32.c (dos_noflush_set_tty_state): Delete.
3574 (dos_ops): Update.
3575 * ser-mingw.c (hardwire_ops, tty_ops, pipe_ops, tcp_ops): Update.
3576 * ser-pipe.c (pipe_ops): Update.
3577 * ser-tcp.c (tcp_ops): Update.
3578 * ser-unix.c: Include termios.h instead of gdb_termios.h. Remove
3579 HAVE_TERMIOS checks.
3580 [HAVE_TERMIO] (struct hardwire_ttystate): Delete.
3581 [HAVE_SGTTY] (struct hardwire_ttystate): Delete.
3582 (get_tty_state, set_tty_state): Drop termio and sgtty code, and
3583 assume termios.
3584 (hardwire_noflush_set_tty_state): Delete.
3585 (hardwire_print_tty_state, hardwire_drain_output)
3586 (hardwire_flush_output, hardwire_flush_input)
3587 (hardwire_send_break, hardwire_raw, hardwire_setbaudrate)
3588 (hardwire_setstopbits, hardwire_setparity): Drop termio and sgtty
3589 code, and assume termios.
3590 (hardwire_ops): Update.
3591 (_initialize_ser_hardwire): Remove HAVE_TERMIOS check.
3592 * serial.c (serial_noflush_set_tty_state): Delete.
3593 * serial.h (serial_noflush_set_tty_state): Delete.
3594 (serial_ops::noflush_set_tty_state): Delete.
3595
3596 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3597
3598 * Makefile.in (SFILES): Remove doublest.c and dfp.c.
3599 (HFILES_NO_SRCDIR): Remove doublest.h and dfp.h.
3600 (COMMON_OBS): Remove doublest.o and dfp.o.
3601 Do not build target-float.c (instead of doublest.c)
3602 with -Wformat-nonliteral.
3603
3604 * doublest.c: Remove file.
3605 * doublest.h: Remove file.
3606 * dfp.c: Remove file.
3607 * dfp.h: Remove file.
3608
3609 * target-float.c: Do not include "doublest.h" and "dfp.h".
3610 (DOUBLEST): Move here from doublest.h.
3611 (enum float_kind): Likewise.
3612 (FLOATFORMAT_CHAR_BIT): Likewise.
3613 (FLOATFORMAT_LARGEST_BYTES): Likewise.
3614 (floatformat_totalsize_bytes): Move here from doublest.c. Make static.
3615 (floatformat_precision): Likewise.
3616 (floatformat_normalize_byteorder, get_field, put_field): Likewise.
3617 (floatformat_is_negative, floatformat_classify, floatformat_mantissa):
3618 Likewise.
3619 (host_float_format, host_double_format, host_long_double_format):
3620 Likewise.
3621 (floatformat_to_string, floatformat_from_string): Likewise.
3622 (floatformat_to_doublest): Likewise. Also, inline the original
3623 convert_floatformat_to_doublest.
3624 (floatformat_from_doublest): Likewise. Also, inline the original
3625 convert_floatformat_from_doublest.
3626
3627 Include "dpd/decimal128.h", "dpd/decimal64.h", and "dpd/decimal32.h".
3628 (MAX_DECIMAL_STRING): Move here from dfp.c.
3629 (match_endianness): Likewise.
3630 (set_decnumber_context, decimal_check_errors): Likewise.
3631 (decimal_from_number, decimal_to_number): Likewise.
3632 (decimal_to_string, decimal_from_string): Likewise. Make static.
3633 (decimal_from_longest, decimal_from_ulongest): Likewise.
3634 (decimal_to_longest): Likewise.
3635 (decimal_binop, decimal_is_zero, decimal_compare): Likewise.
3636 (decimal_convert): Likewise.
3637
3638 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3639
3640 * doublest.c: Do not include "gdbtypes.h".
3641 (extract_typed_floating): Remove.
3642 (store_typed_floating): Remove.
3643 (convert_typed_floating): Remove.
3644 * doublest.h (struct type): Remove.
3645 (DOUBLEST_PRINT_FORMAT): Remove.
3646 (DOUBLEST_SCAN_FORMAT): Remove.
3647 (extract_typed_floating): Remove.
3648 (store_typed_floating): Remove.
3649 (convert_typed_floating): Remove.
3650
3651 * dfp.c (decimal_from_doublest): Remove.
3652 (decimal_to_doublest): Remove.
3653 * dfp.h: Do not include "doublest.h".
3654 (decimal_from_doublest): Remove.
3655 (decimal_to_doublest): Remove.
3656
3657 * value.c: Do not include "doublest.h" and "dfp.h".
3658 (value_as_double): Remove.
3659 (unpack_double): Remove.
3660 (value_from_double): Remove.
3661 (value_from_decfloat): Remove.
3662 * value.h: Do not include "doublest.h".
3663 (value_as_double): Remove.
3664 (unpack_double): Remove.
3665 (value_from_double): Remove.
3666 (value_from_decfloat): Remove.
3667
3668 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3669
3670 * i386-tdep.c: Include "target-float.h". Do not include "doublest.h".
3671 (i386_extract_return_value): Use target_float_convert.
3672 (i386_store_return_value): Likewise.
3673 * i387-tdep.c (i387_register_to_value): Use target_float_convert.
3674 (i387_value_to_register): Likewise.
3675 * ia64-tdep.c: Include "target-float.h". Do not include "doublest.h".
3676 (ia64_register_to_value): Use target_float_convert.
3677 (ia64_value_to_register): Likewise.
3678 (ia64_extract_return_value): Likewise.
3679 (ia64_store_return_value): Likewise.
3680 (ia64_push_dummy_call): Likewise.
3681 * m68k-tdep.c: Include "target-float.h".
3682 (m68k_register_to_value): Use target_float_convert.
3683 (m68k_value_to_register): Likewise.
3684 (m68k_svr4_extract_return_value): Likewise.
3685 (m68k_svr4_store_return_value): Likewise.
3686 * ppc-sysv-tdep.c: Include "target-float.h".
3687 (ppc_sysv_abi_push_dummy_call): Use target_float_convert.
3688 (do_ppc_sysv_return_value): Likewise.
3689 (ppc64_sysv_abi_push_freg): Likewise.
3690 (ppc64_sysv_abi_return_value_base): Likewise.
3691 * rs6000-aix-tdep.c: Include "target-float.h".
3692 (rs6000_push_dummy_call): Use target_float_convert.
3693 (rs6000_return_value): Likewise.
3694 * rs6000-lynx178-tdep.c: Include "target-float.h".
3695 (rs6000_lynx178_push_dummy_call): Use target_float_convert.
3696 (rs6000_lynx178_return_value): Likewise.
3697 * rs6000-tdep.c: Include "target-float.h". Do not include "doublest.h".
3698 (rs6000_register_to_value): Use target_float_convert.
3699 (rs6000_value_to_register): Likewise.
3700 * arm-tdep.c: Include "target-float.h". Do not include "doublest.h".
3701 (arm_extract_return_value): Use target_float_convert.
3702 (arm_store_return_value): Likewise.
3703 * sh-tdep.c: Include "target-float.h". Do not include "doublest.h".
3704 (sh_register_convert_to_virtual): Use target_float_convert.
3705 (sh_register_convert_to_raw): Likewise.
3706 * sh64-tdep.c: Include "target-float.h".
3707 (sh64_extract_return_value): Use target_float_convert.
3708 (sh64_register_convert_to_virtual): Likewise.
3709 (sh64_register_convert_to_raw): Likewise. Fix argument types.
3710
3711 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3712
3713 * target-float.c (floatformat_to_host_double): New function.
3714 (floatformat_from_host_double): Likewise.
3715 (target_float_to_host_double): Likewise.
3716 (target_float_from_host_double): Likewise.
3717 * target-float.h (target_float_to_host_double): Add prototype.
3718 (target_float_from_host_double): Likewise.
3719
3720 * guile/scm-value.c: Include "target-float.h".
3721 (gdbscm_value_to_real): Use target_float_to_host_double.
3722 Handle integer source values via value_as_long.
3723 * guile/scm-math.c: Include "target-float.h". Do not include
3724 "doublest.h", "dfp.h", and "expression.h".
3725 (vlscm_convert_typed_number): Use target_float_from_host_double.
3726 (vlscm_convert_number): Likewise.
3727
3728 * python/py-value.c (valpy_float): Use target_float_to_host_double.
3729 (convert_value_from_python): Use target_float_from_host_double.
3730
3731 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3732
3733 * ada-lang.c (cast_to_fixed): Reimplement in target arithmetic.
3734 (cast_from_fixed): Likewise.
3735 (ada_scaling_type): New function.
3736 (ada_delta): Return value instead of DOUBLEST. Perform target
3737 arithmetic instead of host arithmetic.
3738 (scaling_factor): Rename to ...
3739 (ada_scaling_factor) ... this. Make non-static. Return value instead
3740 of DOUBLEST. Perform target arithmetic instead of host arithmetic.
3741 (ada_fixed_to_float): Remove.
3742 (ada_float_to_fixed): Remove.
3743 * ada-lang.h (ada_fixed_to_float): Remove.
3744 (ada_float_to_fixed): Remove.
3745 (ada_delta): Return value instead of DOUBLEST.
3746 (ada_scaling_factor): Add prototype.
3747
3748 * ada-typeprint.c: Include "target-float.h".
3749 (print_fixed_point_type): Perform target arithmetic instead of
3750 host arithmetic.
3751 * ada-valprint.c: Include "target-float.h".
3752 (ada_val_print_num): Perform target arithmetic instead of
3753 host arithmetic for fixed-point types.
3754
3755 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3756
3757 * target-float.c: Include <math.h>.
3758 (floatformat_binop): New function.
3759 (floatformat_compare): Likewise.
3760 (target_float_binop): Likewise.
3761 (target_float_compare): Likewise.
3762 * target-float.h: Include "expression.h".
3763 (target_float_binop): Add prototype.
3764 (target_float_compare): Likewise.
3765
3766 * valarith.c: Do not include "doublest.h" and "dfp.h".
3767 Include "common/byte-vector.h".
3768 (value_args_as_decimal): Remove, replace by ...
3769 (value_args_as_target_float): ... this function. Handle both
3770 binary and decimal target floating-point formats.
3771 (scalar_binop): Handle both binary and decimal FP using
3772 value_args_as_target_float and target_float_binop.
3773 (value_equal): Handle both binary and decimal FP using
3774 value_args_as_target_float and target_float_compare.
3775 (value_less): Likewise.
3776 (value_pos): Handle all scalar types as simple copy.
3777 (value_neg): Handle all scalar types via BINOP_SUB from 0.
3778 * dfp.c (decimal_binop): Throw error instead of internal_error
3779 when called with an unsupported operation code.
3780
3781 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3782
3783 * target-float.c (target_float_to_string): New function.
3784 (target_float_from_string): New function.
3785 * target-float.h (target_float_to_string): Add prototype.
3786 (target_float_from_string): Add prototype.
3787
3788 * valprint.c: Include "target-float.h". Do not include
3789 "doublest.h" and "dfp.h".
3790 (print_floating): Use target_float_to_string.
3791 * printcmd.c: Include "target-float.h". Do not include "dfp.h".
3792 (printf_floating): Use target_float_to_string.
3793 * i387-tdep.c: Include "target-float.h". Do not include "doublest.h".
3794 (print_i387_value): Use target_float_to_string.
3795 * mips-tdep.c: Include "target-float.h".
3796 (mips_print_fp_register): Use target_float_to_string.
3797 * sh64-tdep.c: Include "target-float.h".
3798 (sh64_do_fp_register): Use target_float_to_string.
3799
3800 * parse.c: Include "target-float.h". Do not include
3801 "doublest.h" and "dfp.h".
3802 (parse_float): Use target_float_from_string.
3803 * stabsread.c: Include "target-float.h". Do not include "doublest.h".
3804 (define_symbol): Use target_float_from_string.
3805 * gdbarch-selftests.c: Include "target-float.h".
3806 (register_to_value_test): Use target_float_from_string.
3807
3808 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3809
3810 * Makefile.c (SFILES): Add target-float.c.
3811 (HFILES_NO_SRCDIR): Add target-float.h.
3812 (COMMON_OBS): Add target-float.o.
3813 * target-float.h: New file.
3814 * target-float.c: New file.
3815
3816 * doublest.c (floatformat_classify): Fix detection of float_zero.
3817
3818 * gdbtypes.c (is_floating_type): New function.
3819 * gdbtypes.h (is_floating_type): Add prototype.
3820
3821 * value.c: Do not include "floatformat.h".
3822 (unpack_double): Use target_float_is_valid.
3823 (is_floating_value): New function.
3824 * value.h (is_floating_value): Add prototype-
3825
3826 * valarith.c: Include "target-float.h".
3827 (value_logical_not): Use target_float_is_zero.
3828
3829 * python/py-value.c: Include "target-float.h".
3830 (valpy_nonzero): Use target_float_is_zero.
3831
3832 2017-11-04 Tom Tromey <tom@tromey.com>
3833
3834 * h8300-tdep.c (h8300_push_dummy_call): Use std::vector.
3835
3836 2017-11-04 Tom Tromey <tom@tromey.com>
3837
3838 * breakpoint.c (set_momentary_breakpoint): Return
3839 breakpoint_up.
3840 (until_break_command): Update.
3841 (new_until_break_fsm): Change argument types to
3842 breakpoint_up.
3843 (set_momentary_breakpoint_at_pc): Return breakpoint_up.
3844 (do_delete_breakpoint_cleanup, make_cleanup_delete_breakpoint):
3845 Remove.
3846 * infcmd.c (finish_forward): Update.
3847 * breakpoint.h (set_momentary_breakpoint)
3848 (set_momentary_breakpoint_at_pc): Return breakpoint_up.
3849 (make_cleanup_delete_breakpoint): Remove.
3850 (struct breakpoint_deleter): New.
3851 (breakpoint_up): New typedef.
3852 * infrun.c (insert_step_resume_breakpoint_at_sal_1): Update.
3853 (insert_exception_resume_breakpoint): Update.
3854 (insert_exception_resume_from_probe): Update.
3855 (insert_longjmp_resume_breakpoint): Update.
3856 * arm-linux-tdep.c (arm_linux_copy_svc): Update.
3857 * elfread.c (elf_gnu_ifunc_resolver_stop): Update.
3858 * infcall.c (call_function_by_hand_dummy): Update
3859
3860 2017-11-04 Tom Tromey <tom@tromey.com>
3861
3862 * c-typeprint.c (c_type_print_base): Use gdb::unique_xmalloc_ptr.
3863
3864 2017-11-04 Tom Tromey <tom@tromey.com>
3865
3866 * linux-tdep.c (linux_core_info_proc_mappings): Use
3867 gdb::def_vector.
3868 (linux_get_siginfo_data): Return gdb::byte_vector. Remove
3869 "size" argument.
3870 (linux_corefile_thread): Update.
3871 (linux_make_corefile_notes): Remove unused variable.
3872
3873 2017-11-04 Tom Tromey <tom@tromey.com>
3874
3875 * ppc-linux-tdep.c (ppc_linux_get_syscall_number): Use
3876 gdb::byte_vector.
3877
3878 2017-11-04 Tom Tromey <tom@tromey.com>
3879
3880 * objfiles.c (do_free_objfile_cleanup): Remove.
3881 * compile/compile-object-load.c (compile_object_load): Update.
3882 * objfiles.h (make_cleanup_free_objfile): Remove.
3883
3884 2017-11-04 Tom Tromey <tom@tromey.com>
3885
3886 * sparc64-tdep.c (do_examine): Use gdb::def_vector.
3887 (adi_read_versions): Change "tags" to "gdb_byte *".
3888 (adi_print_versions): Likewise.
3889
3890 2017-11-04 Tom Tromey <tom@tromey.com>
3891
3892 * breakpoint.c
3893 (scoped_rbreak_breakpoints::scoped_rbreak_breakpoints): Rename
3894 from start_rbreak_breakpoints.
3895 (scoped_rbreak_breakpoints): Rename from end_rbreak_breakpoints.
3896 * breakpoint.h (class scoped_rbreak_breakpoints): New.
3897 (start_rbreak_breakpoints, end_rbreak_breakpoints): Remove.
3898 * symtab.c (do_end_rbreak_breakpoints): Remove.
3899 (rbreak_command): Use scoped_rbreak_breakpoints, std::string.
3900
3901 2017-11-04 Tom Tromey <tom@tromey.com>
3902
3903 * cp-namespace.c (reset_directive_searched): Remove.
3904 (cp_lookup_symbol_via_imports): Use scoped_restore.
3905 * cp-support.c (reset_directive_searched): Remove.
3906 (make_symbol_overload_list_using): Use scoped_restore.
3907 * d-namespace.c (d_lookup_symbol_imports): Use scoped_restore.
3908 (reset_directive_searched): Remove.
3909
3910 2017-11-04 Tom Tromey <tom@tromey.com>
3911
3912 * symfile.c (find_separate_debug_file_by_debuglink): Use
3913 unique_xmalloc_ptr.
3914
3915 2017-11-04 Tom Tromey <tom@tromey.com>
3916
3917 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
3918 type of "info".
3919 (compute_stack_depth): Likewise.
3920 (do_compile_dwarf_expr_to_c): Use std::vector.
3921
3922 2017-11-04 Tom Tromey <tom@tromey.com>
3923
3924 * compile/compile-object-load.c (link_callbacks_einfo): Use
3925 std::string.
3926
3927 2017-11-04 Tom Tromey <tom@tromey.com>
3928
3929 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
3930 Use scoped_free_pendings.
3931 * dbxread.c (dbx_symfile_read, dbx_psymtab_to_symtab_1): Use
3932 scoped_free_pendings.
3933 * xcoffread.c (xcoff_psymtab_to_symtab_1): Use scoped_free_pendings.
3934 (xcoff_initial_scan): Likewise.
3935 * buildsym.c (reset_symtab_globals): Update comment.
3936 (scoped_free_pendings): Rename from really_free_pendings.
3937 (prepare_for_building): Update comment.
3938 (buildsym_init): Likewise.
3939 * buildsym.h (class scoped_free_pendings): New class.
3940 (really_free_pendings): Don't declare.
3941
3942 2017-11-03 Ulrich Weigand <uweigand@de.ibm.com>
3943
3944 * doublest.c (convert_doublest_to_floatformat): Fix uninitialized
3945 output when converting a zero value to a special byteorder format.
3946
3947 2017-11-02 Yao Qi <yao.qi@linaro.org>
3948
3949 * frame.c (do_frame_register_read): Remove aspace.
3950 * jit.c (jit_frame_sniffer): Likwise.
3951 * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
3952 * regcache.c (regcache::regcache): Pass nullptr.
3953 (regcache_print): Caller updated.
3954 * regcache.h (regcache::regcache): Remove one constructor
3955 parameter aspace.
3956
3957 2017-11-02 Yao Qi <yao.qi@linaro.org>
3958
3959 * regcache.h (regcache) <m_readonly_p>: Change it to const bool.
3960
3961 2017-11-02 Yao Qi <yao.qi@linaro.org>
3962
3963 * breakpoint.c (insert_single_step_breakpoints): Update.
3964 * frame.c (struct frame_info) <aspace>: Add const.
3965 (frame_save_as_regcache): Add const.
3966 (get_frame_address_space): Return const address_space *.
3967 * frame.h (get_frame_address_space): Update declaration.
3968 * infrun.c (struct step_over_info) <aspace>: Add const.
3969 (set_step_over_info): Make aspace const.
3970 (displaced_step_prepare_throw): Change variable const.
3971 (resume): Likewise.
3972 (proceed): Likewise.
3973 (adjust_pc_after_break): Likewise.
3974 (save_waitstatus): Likewise.
3975 (handle_signal_stop): Likewise.
3976 (keep_going_pass_signal): Likewise.
3977 * jit.c (jit_frame_sniffer): Add const.
3978 * mips-tdep.c (mips_single_step_through_delay): Likewise.
3979 * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
3980 * record-full.c (record_full_wait_1): Likewise.
3981 * regcache.c (regcache::regcache): Change parameter to const.
3982 * regcache.h (regcache::regcache): Likewise.
3983 (regcache::aspace): Return const address_space *.
3984 (regcache) <m_aspace>: Add const.
3985
3986 2017-11-02 Yao Qi <yao.qi@linaro.org>
3987
3988 * darwin-nat.c (cancel_breakpoint): Use regcache->aspace ().
3989 * frame.c (create_sentinel_frame): Likewise.
3990 * infrun.c (displaced_step_prepare_throw): Likewise.
3991 (resume): Likewise.
3992 (thread_still_needs_step_over_bp): Likewise.
3993 (proceed): Likewise.
3994 (do_target_wait): Likewise.
3995 (adjust_pc_after_break): Likewise.
3996 (handle_syscall_event): Likewise.
3997 (save_waitstatus): Likewise.
3998 (handle_inferior_event_1): Likewise.
3999 (handle_signal_stop): Likewise.
4000 (keep_going_pass_signal): Likewise.
4001 * linux-nat.c (status_callback): Likewise.
4002 (save_stop_reason): Likewise.
4003 (resume_stopped_resumed_lwps): Likewise.
4004 * record-full.c (record_full_exec_insn): Likewise.
4005 (record_full_wait_1): Likewise.
4006 * regcache.c (get_regcache_aspace): Remove.
4007 * regcache.h (get_regcache_aspace): Remove.
4008
4009 2017-11-02 Yao Qi <yao.qi@linaro.org>
4010
4011 * regcache.c (struct regcache_descr) <nr_raw_registers>: Remove.
4012 (init_regcache_descr): Use gdbarch_num_regs.
4013 (regcache::regcache): Likewise.
4014 (regcache::get_register_status): Likewise.
4015 (regcache::assert_raw_regnum): Likewise.
4016 (regcache::cooked_read): Likewise.
4017 (regcache::cooked_read_value): Likewise.
4018 (regcache::cooked_write): Likewise.
4019 (regcache::dump): Likewise.
4020 (regcache::num_raw_registers): New method.
4021 * regcache.h (class regcache) <num_raw_registers>: New.
4022
4023 2017-11-02 Yao Qi <yao.qi@linaro.org>
4024
4025 * regcache.c (regcache::assert_regnum): New method.
4026 (regcache::invalidate): Call assert_regnum.
4027 (regcache::raw_update): Likewise.
4028 (regcache::raw_write): Likewise.
4029 (regcache::raw_read_part): Likewise.
4030 (regcache::raw_write_part): Likewise.
4031 (regcache::raw_supply): Likewise.
4032 (regcache::raw_supply_integer): Likewise.
4033 (regcache::raw_supply_zeroed): Likewise.
4034 (regcache::raw_collect): Likewise.
4035 (regcache::raw_collect_integer): Likewise.
4036 * regcache.h (regcache::assert_regnum): Declare.
4037
4038 2017-11-02 Yao Qi <yao.qi@linaro.org>
4039
4040 * regcache.c (regcache::dump): Remove code.
4041
4042 2017-11-02 Yao Qi <yao.qi@linaro.org>
4043
4044 * regcache.c (struct regcache_descr) <sizeof_raw_register_status>:
4045 Remove.
4046 <sizeof_cooked_register_status>: Remove.
4047 (init_regcache_descr): Update.
4048 (regcache::regcache): Use nr_cooked_registers and nr_raw_registers.
4049 (regcache::save): Likewise.
4050 (regcache::dump): Likewise.
4051
4052 2017-11-01 James Bowman <james.bowman@ftdichip.com>
4053
4054 * ft32-tdep.c (ft32_fetch_instruction): New function.
4055 (ft32_analyze_prologue): Use ft32_fetch_instruction().
4056
4057 2017-10-31 Simon Marchi <simon.marchi@polymtl.ca>
4058
4059 * cli/cli-script.c (execute_control_command): Rename to ...
4060 (execute_control_command_1): ... this.
4061 (execute_control_command): New function.
4062
4063 2017-10-31 Simon Marchi <simon.marchi@ericsson.com>
4064
4065 * tracepoint.c (tfind_command): Remove const_cast.
4066
4067 2017-10-30 Mike Gulick <mgulick@mathworks.com>
4068
4069 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to gdb.h.
4070
4071 2017-10-30 Simon Marchi <simon.marchi@ericsson.com>
4072
4073 * common/common-utils.h (in_inclusive_range): New function.
4074 * arm-tdep.c (arm_record_extension_space): Use
4075 in_inclusive_range.
4076 (thumb_record_ld_st_reg_offset): Use in_inclusive_range.
4077 * cris-tdep.c (cris_spec_reg_applicable): Use
4078 in_inclusive_range.
4079
4080 2017-10-30 Pedro Alves <palves@redhat.com>
4081 Simon Marchi <simon.marchi@ericsson.com>
4082
4083 * remote.c (remote_set_syscall_catchpoint): Build a std::string
4084 instead of a gdb::unique_xmalloc_ptr, using string_appendf.
4085
4086 2017-10-30 Pedro Alves <palves@redhat.com>
4087
4088 * common/common-utils.c (string_appendf, string_vappendf): New
4089 functions.
4090 * common/common-utils.h (string_appendf, string_vappendf): New
4091 declarations.
4092 * unittests/common-utils-selftests.c (string_appendf_func)
4093 (test_appendf_func, string_vappendf_wrapper, string_appendf_tests)
4094 (string_vappendf_tests): New functions.
4095 (_initialize_common_utils_selftests): Register "string_appendf" and
4096 "string_vappendf tests".
4097
4098 2017-10-30 Pedro Alves <palves@redhat.com>
4099
4100 * unittests/common-utils-selftests.c (format_func): New typedef.
4101 (string_printf_tests, string_vprintf_tests): Tests factored out
4102 and merged to ...
4103 (test_format_func): ... this new function.
4104 (string_printf_tests, string_vprintf_tests): Reimplement on top of
4105 test_format_func.
4106
4107 2017-10-29 Simon Marchi <simon.marchi@ericsson.com>
4108
4109 * darwin-nat.c: Remove include of gdb.h.
4110
4111 2017-10-29 Simon Marchi <simon.marchi@ericsson.com>
4112
4113 * xtensa-xtregs.c: Fix formatting issues.
4114
4115 2017-10-29 Simon Marchi <simon.marchi@ericsson.com>
4116
4117 * xtensa-xtregs.c (xtensa_regtable_t) <name>: Constify.
4118
4119 2017-10-28 Maksim Dzabraev <dzabraew@gmail.com>
4120
4121 PR python/21213
4122 * python/py-infthread.c (thpy_get_inferior): Increment reference
4123 of inferior before returning it.
4124
4125 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
4126
4127 * unittests/common-utils-selftests.c (format): Add
4128 ATTRIBUTE_PRINTF.
4129
4130 2017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
4131
4132 * xml-syscall.c (struct syscall_desc): Add constructor.
4133 <name>: Change type to std::string.
4134 (syscall_desc_up): New typedef.
4135 (syscall_desc_p): Remove typeder.
4136 (DEF_VEC_P(syscall_desc_p)): Remove.
4137 (struct syscall_group_desc): Add constructor.
4138 <name>: Change type to std::string.
4139 <syscalls>: Change type to std::vector.
4140 (syscall_group_desc_up): New typedef.
4141 (syscall_group_desc_p): Remove typedef.
4142 (DEF_VEC_P(syscall_group_desc_p)): Remove.
4143 (struct syscalls_info) <syscalls>: Change type to std::vector of
4144 unique_ptr.
4145 <groups>: Likewise.
4146 <my_gdb_datadir>: Change type to std::string.
4147 (syscalls_info_up): New typedef.
4148 (allocate_syscalls_info): Remove.
4149 (syscalls_info_free_syscalls_desc): Remove.
4150 (syscalls_info_free_syscall_group_desc): Remove.
4151 (free_syscalls_info): Remove.
4152 (make_cleanup_free_syscalls_info): Remove.
4153 (syscall_group_create_syscall_group_desc): Adjust.
4154 (syscall_group_add_syscall): Adjust.
4155 (syscall_create_syscall_desc): Adjust.
4156 (syscall_parse_xml): Adjust, use unique_ptr instead of cleanup.
4157 (init_syscalls_info): Adjust.
4158 (syscall_group_get_group_by_name): Adjust.
4159 (xml_get_syscall_number): Adjust.
4160 (xml_get_syscall_name): Adjust.
4161 (xml_list_of_syscalls): Adjust.
4162 (xml_list_syscalls_by_group): Adjust.
4163 (xml_list_of_groups): Adjust.
4164
4165 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
4166
4167 * probe.h: Don't include gdb_vecs.h.
4168 (DEF_VEC_P (probe_p)): Remove.
4169 (find_probes_in_objfile): Return an std::vector.
4170 * probe.c (find_probes_in_objfile): Likewise.
4171 * breakpoint.c (breakpoint_objfile_data)
4172 <longjmp_probes>: Change type to std::vector.
4173 <exception_probes>: Likewise.
4174 (free_breakpoint_probes): Don't manually free vectors.
4175 (create_longjmp_master_breakpoint): Adjust.
4176 (create_exception_master_breakpoint): Adjust.
4177 * solib-svr4.c (svr4_create_probe_breakpoints): Change
4178 parameter type, adjust.
4179 (svr4_create_solib_event_breakpoints): Adjust.
4180
4181 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
4182
4183 * breakpoint.c (breakpoint_objfile_data): Initialize fields.
4184 (get_breakpoint_objfile_data): Allocate breakpoint_objfile_data
4185 with new.
4186 (free_breakpoint_probes): Rename to ...
4187 (free_breakpoint_objfile_data): ... this, and call delete on
4188 bp_objfile_data..
4189
4190 2017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
4191
4192 * auto-load.c: Don't include gdb_vecs.h, include algorithm.
4193 (loaded_script_ptr): Remove typedef.
4194 (DEF_VEC_P (loaded_script_ptr)): Remove.
4195 (struct collect_matching_scripts_data): Add constructor.
4196 <scripts_p>: Change type to (pointer to) std::vector.
4197 (collect_matching_scripts_data): Adjust.
4198 (sort_scripts_by_name): Make suitable for std::sort.
4199 (print_scripts): Don't sort vector, adjust to std::vector.
4200 (auto_load_info_scripts): Sort vectors, adjust to std::vector.
4201
4202 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
4203
4204 * symfile.c (filename_language): Make struct, not typedef. Add
4205 constructor.
4206 <ext>: Change type to std::string.
4207 (DEF_VEC_O (filename_language)): Remove.
4208 (filename_language_table): Change type to std::vector.
4209 (add_filename_language): Adjust.
4210 (set_ext_lang_command): Adjust.
4211 (info_ext_lang_command): Adjust.
4212 (deduce_language_from_filename): Adjust.
4213 (class scoped_restore_filename_language_table): Remove.
4214 (test_filename_language): Use scoped_restore.
4215 (test_set_ext_lang_command): Use scoped_restore, adjust to
4216 std::vector change.
4217
4218 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
4219
4220 * symfile.c: Include selftest.h.
4221 (class scoped_restore_filename_language_table): New.
4222 (test_filename_language): New test.
4223 (test_set_ext_lang_command): New test.
4224 (_initialize_symfile): Register tests.
4225
4226 2017-10-27 Keith Seitz <keiths@redhat.com>
4227
4228 * breakpoint.c (print_breakpoint_location): Use the symbol saved
4229 in the bp_location, falling back to find_pc_sect_function when
4230 needed.
4231 (add_location_to_breakpoint): Save sal->symbol.
4232 * breakpoint.h (struct bp_location) <symbol>: New field.
4233 * symtab.c (find_function_start_sal): Save the symbol into the SaL.
4234 * symtab.h (struct symtab_and_line) <symbol>: New field.
4235
4236 2017-10-26 Patrick Frants <osscontribute@gmail.com>
4237
4238 PR gdb/13669
4239 * cp-valprint.c (cp_print_value_fields): Use obstack_blank_fast
4240 to rewind obstack.
4241
4242 2017-10-26 Pedro Alves <palves@redhat.com>
4243
4244 * remote.c (remote_async_terminal_ours_p): Delete.
4245 (remote_open_1, remote_terminal_inferior, remote_terminal_ours):
4246 Remove references to 'remote_async_terminal_ours_p'.
4247
4248 2017-10-26 Yao Qi <yao.qi@linaro.org>
4249
4250 * breakpoint.h (regular_breakpoint_inserted_here_p): Remove.
4251
4252 2017-10-26 Yao Qi <yao.qi@linaro.org>
4253
4254 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Make
4255 aspace const.
4256 * break-catch-syscall.c (breakpoint_hit_catch_syscall):
4257 Likewise.
4258 * breakpoint.c (bpstat_check_location): Remove cast.
4259 (breakpoint_hit_catch_fork): Make aspce const.
4260 (breakpoint_hit_catch_solib): Likewise.
4261 (breakpoint_hit_catch_exec): Likewise.
4262 (breakpoint_hit_ranged_breakpoint): Likewise.
4263 (breakpoint_hit_watchpoint): Likewise.
4264 (base_breakpoint_breakpoint_hit): Likewise.
4265 (bkpt_breakpoint_hit): Likewise.
4266 (dprintf_breakpoint_hit): Likewise.
4267 (tracepoint_breakpoint_hit): Likewise.
4268 * breakpoint.h (breakpoint_ops) <breakpoint_hit>: Likewise.
4269
4270 2017-10-26 Yao Qi <yao.qi@linaro.org>
4271
4272 * breakpoint.c (breakpoint_location_address_match): Change
4273 "struct address_space *" to "const address_space".
4274 (breakpoint_location_address_range_overlap): Likewise.
4275 (breakpoint_here_p): Likewise.
4276 (breakpoint_in_range_p): Likewise.
4277 (moribund_breakpoint_here_p): Likewise.
4278 (bp_location_inserted_here_p): Likewise.
4279 (software_breakpoint_inserted_here_p): Likewise.
4280 (hardware_breakpoint_inserted_here_p): Likewise.
4281 (hardware_watchpoint_inserted_in_range): Likewise.
4282 (bpstat_check_location): Likewise.
4283 (bpstat_stop_status): Likewise.
4284 (breakpoint_address_match): Likewise.
4285 (breakpoint_address_match_range): Likewise.
4286 (breakpoint_location_address_match): Likewise.
4287 (breakpoint_location_address_range_overlap): Likewise.
4288 (insert_single_step_breakpoint): Likewise.
4289 (breakpoint_has_location_inserted_here): Likewise.
4290 (single_step_breakpoint_inserted_here_p): Likewise.
4291 (pc_at_non_inline_function): Likewise.
4292 * breakpoint.h (bpstat_stop_status): Update declaration.
4293 (breakpoint_here_p): Likewise.
4294 (breakpoint_in_range_p): Likewise.
4295 (moribund_breakpoint_here_p): Likewise.
4296 (breakpoint_inserted_here_p): Likewise.
4297 (software_breakpoint_inserted_here_p): Likewise.
4298 (hardware_breakpoint_inserted_here_p): Likewise.
4299 (breakpoint_has_location_inserted_here): Likewise.
4300 (single_step_breakpoint_inserted_here_p): Likewise.
4301 (hardware_watchpoint_inserted_in_range): Likewise.
4302 (breakpoint_address_match): Likewise.
4303 (insert_single_step_breakpoint): Likewise.
4304 (pc_at_non_inline_function): Likewise.
4305 * gdbthread.h (thread_has_single_step_breakpoint_here): Likewise.
4306 * record.c (record_check_stopped_by_breakpoint): Likewise.
4307 * record.h (record_check_stopped_by_breakpoint): Likewise.
4308 * thread.c (thread_has_single_step_breakpoint_here): Likewise.
4309
4310 2017-10-25 Yao Qi <yao.qi@linaro.org>
4311
4312 * aarch32-linux-nat.c (aarch32_gp_regcache_supply): Use
4313 regcache->arch () instead get_regcache_arch.
4314 * aarch64-fbsd-nat.c (aarch64_fbsd_fetch_inferior_registers):
4315 Likewise.
4316 (aarch64_fbsd_store_inferior_registers): Likewise.
4317 * aarch64-linux-nat.c (fetch_gregs_from_thread): Likewise.
4318 (store_gregs_to_thread): Likewise.
4319 (fetch_fpregs_from_thread): Likewise.
4320 (store_fpregs_to_thread): Likewise.
4321 * aarch64-tdep.c (aarch64_extract_return_value): Likewise.
4322 (aarch64_store_return_value): Likewise.
4323 (aarch64_software_single_step): Likewise.
4324 * aix-thread.c (aix_thread_wait): Likewise.
4325 (supply_reg32): Likewise.
4326 (supply_sprs64): Likewise.
4327 (supply_sprs32): Likewise.
4328 (fill_gprs64): Likewise.
4329 (fill_gprs32): Likewise.
4330 (fill_sprs64): Likewise.
4331 (fill_sprs32): Likewise.
4332 (store_regs_user_thread): Likewise.
4333 (store_regs_kernel_thread): Likewise.
4334 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
4335 (alphabsd_store_inferior_registers): Likewise.
4336 * alpha-tdep.c (alpha_extract_return_value): Likewise.
4337 (alpha_store_return_value): Likewise.
4338 (alpha_deal_with_atomic_sequence): Likewise.
4339 (alpha_next_pc): Likewise.
4340 (alpha_software_single_step): Likewise.
4341 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
4342 (amd64bsd_store_inferior_registers): Likewise.
4343 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
4344 Likewise.
4345 (amd64_linux_store_inferior_registers): Likewise.
4346 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
4347 (amd64_collect_native_gregset): Likewise.
4348 * amd64-obsd-tdep.c (amd64obsd_supply_uthread): Likewise.
4349 (amd64obsd_collect_uthread): Likewise.
4350 * amd64-tdep.c (amd64_supply_fpregset): Likewise.
4351 (amd64_collect_fpregset): Likewise.
4352 (amd64_supply_fxsave): Likewise.
4353 (amd64_supply_xsave): Likewise.
4354 (amd64_collect_fxsave): Likewise.
4355 (amd64_collect_xsave): Likewise.
4356 * arc-tdep.c (arc_write_pc): Likewise.
4357 * arch-utils.c (default_skip_permanent_breakpoint): Likewise.
4358 * arm-fbsd-nat.c (arm_fbsd_fetch_inferior_registers): Likewise.
4359 (arm_fbsd_store_inferior_registers): Likewise.
4360 * arm-linux-nat.c (fetch_vfp_regs): Likewise.
4361 (store_vfp_regs): Likewise.
4362 (arm_linux_fetch_inferior_registers): Likewise.
4363 (arm_linux_store_inferior_registers): Likewise.
4364 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
4365 (arm_linux_sigreturn_next_pc): Likewise.
4366 (arm_linux_get_next_pcs_syscall_next_pc): Likewise.
4367 * arm-nbsd-nat.c (arm_supply_gregset): Likewise.
4368 (fetch_register): Likewise.
4369 (store_register): Likewise.
4370 * arm-tdep.c (arm_is_thumb): Likewise.
4371 (displaced_in_arm_mode): Likewise.
4372 (bx_write_pc): Likewise.
4373 (arm_get_next_pcs_addr_bits_remove): Likewise.
4374 (arm_software_single_step): Likewise.
4375 (arm_extract_return_value): Likewise.
4376 (arm_store_return_value): Likewise.
4377 (arm_write_pc): Likewise.
4378 * bfin-tdep.c (bfin_extract_return_value): Likewise.
4379 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
4380 (bsd_uthread_store_registers): Likewise.
4381 * core-regset.c (fetch_core_registers): Likewise.
4382 * corelow.c (get_core_registers): Likewise.
4383 * cris-tdep.c (cris_store_return_value): Likewise.
4384 (cris_extract_return_value): Likewise.
4385 (find_step_target): Likewise.
4386 (find_step_target): Likewise.
4387 (cris_software_single_step): Likewise.
4388 * ctf.c (ctf_fetch_registers): Likewise.
4389 * darwin-nat.c (cancel_breakpoint): Likewise.
4390 * fbsd-tdep.c (fbsd_collect_thread_registers): Likewise.
4391 * frv-tdep.c (frv_extract_return_value): Likewise.
4392 * ft32-tdep.c (ft32_store_return_value): Likewise.
4393 (ft32_extract_return_value): Likewise.
4394 * go32-nat.c (fetch_register): Likewise.
4395 (go32_fetch_registers): Likewise.
4396 (go32_store_registers): Likewise.
4397 (store_register): Likewise.
4398 * h8300-tdep.c (h8300_extract_return_value): Likewise.
4399 (h8300_store_return_value): Likewise.
4400 * hppa-linux-nat.c (fetch_register): Likewise.
4401 (store_register): Likewise.
4402 (hppa_linux_fetch_inferior_registers): Likewise.
4403 (hppa_linux_store_inferior_registers): Likewise.
4404 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Likewise.
4405 (i386_darwin_store_inferior_registers): Likewise.
4406 * i386-gnu-nat.c (gnu_fetch_registers): Likewise.
4407 (gnu_store_registers): Likewise.
4408 * i386-linux-nat.c (fetch_register): Likewise.
4409 (store_register): Likewise.
4410 (supply_gregset): Likewise.
4411 (fill_gregset): Likewise.
4412 (i386_linux_fetch_inferior_registers): Likewise.
4413 (i386_linux_store_inferior_registers): Likewise.
4414 (i386_linux_resume): Likewise.
4415 * i386-linux-tdep.c (i386_linux_get_syscall_number_from_regcache):
4416 Likewise.
4417 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
4418 * i386-obsd-nat.c (i386obsd_supply_pcb): Likewise.
4419 * i386-obsd-tdep.c (i386obsd_supply_uthread): Likewise.
4420 (i386obsd_collect_uthread): Likewise.
4421 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
4422 (i386_supply_gregset): Likewise.
4423 (i386_collect_gregset): Likewise.
4424 (i386_supply_fpregset): Likewise.
4425 (i386_collect_fpregset): Likewise.
4426 (i386_mpx_bd_base): Likewise.
4427 * i386-v4-nat.c (supply_fpregset): Likewise.
4428 (fill_fpregset): Likewise.
4429 * i387-tdep.c (i387_supply_fsave): Likewise.
4430 (i387_collect_fsave): Likewise.
4431 (i387_supply_fxsave): Likewise.
4432 (i387_collect_fxsave): Likewise.
4433 (i387_supply_xsave): Likewise.
4434 (i387_collect_xsave): Likewise.
4435 * ia64-linux-nat.c (ia64_linux_fetch_registers): Likewise.
4436 (ia64_linux_store_registers): Likewise.
4437 * ia64-tdep.c (ia64_access_rse_reg): Likewise.
4438 (ia64_extract_return_value): Likewise.
4439 (ia64_store_return_value): Likewise.
4440 (find_func_descr): Likewise.
4441 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
4442 * inf-ptrace.c (inf_ptrace_fetch_registers): Likewise.
4443 (inf_ptrace_store_registers): Likewise.
4444 * infrun.c (use_displaced_stepping): Likewise.
4445 (displaced_step_prepare_throw): Likewise.
4446 (resume): Likewise.
4447 (proceed): Likewise.
4448 (do_target_wait): Likewise.
4449 (adjust_pc_after_break): Likewise.
4450 (handle_inferior_event_1): Likewise.
4451 (handle_signal_stop): Likewise.
4452 (save_infcall_suspend_state): Likewise.
4453 (restore_infcall_suspend_state): Likewise.
4454 * iq2000-tdep.c (iq2000_extract_return_value): Likewise.
4455 * jit.c (jit_frame_prev_register): Likewise.
4456 * linux-nat.c (save_stop_reason): Likewise.
4457 (linux_nat_wait_1): Likewise.
4458 (resume_stopped_resumed_lwps): Likewise.
4459 * linux-record.c (record_linux_sockaddr): Likewise.
4460 (record_linux_msghdr): Likewise.
4461 (record_linux_system_call): Likewise.
4462 * linux-tdep.c (linux_collect_thread_registers): Likewise.
4463 * lm32-tdep.c (lm32_extract_return_value): Likewise.
4464 (lm32_store_return_value): Likewise.
4465 * m32c-tdep.c (m32c_read_flg): Likewise.
4466 (m32c_pseudo_register_read): Likewise.
4467 (m32c_pseudo_register_write): Likewise.
4468 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Likewise.
4469 (m32r_linux_collect_gregset): Likewise.
4470 * m32r-tdep.c (m32r_store_return_value): Likewise.
4471 (m32r_extract_return_value): Likewise.
4472 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
4473 (m68kbsd_collect_fpregset): Likewise.
4474 * m68k-bsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
4475 * m68k-linux-nat.c (fetch_register): Likewise.
4476 (old_fetch_inferior_registers): Likewise.
4477 (old_store_inferior_registers): Likewise.
4478 (store_regs): Likewise.
4479 * m68k-tdep.c (m68k_svr4_extract_return_value): Likewise.
4480 (m68k_svr4_store_return_value): Likewise.
4481 * m88k-tdep.c (m88k_store_arguments): Likewise.
4482 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Likewise.
4483 (mi_cmd_data_write_register_values): Likewise.
4484 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers): Likewise.
4485 (mips_fbsd_store_inferior_registers): Likewise.
4486 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Likewise.
4487 (mips_fbsd_supply_gregs): Likewise.
4488 (mips_fbsd_collect_fpregs): Likewise.
4489 (mips_fbsd_collect_gregs): Likewise.
4490 (mips_fbsd_supply_fpregset): Likewise.
4491 (mips_fbsd_collect_fpregset): Likewise.
4492 (mips_fbsd_supply_gregset): Likewise.
4493 (mips_fbsd_collect_gregset): Likewise.
4494 * mips-linux-nat.c (supply_gregset): Likewise.
4495 (fill_gregset): Likewise.
4496 (supply_fpregset): Likewise.
4497 (fill_fpregset): Likewise.
4498 * mips-linux-tdep.c (mips_supply_gregset): Likewise.
4499 (mips_fill_gregset): Likewise.
4500 (mips_supply_fpregset): Likewise.
4501 (mips_fill_fpregset): Likewise.
4502 (mips64_supply_gregset): Likewise.
4503 (micromips_linux_sigframe_validate): Likewise.
4504 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
4505 (mipsnbsd_fetch_inferior_registers): Likewise.
4506 (mipsnbsd_store_inferior_registers): Likewise.
4507 * mips-nbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
4508 (mipsnbsd_supply_gregset): Likewise.
4509 (mipsnbsd_iterate_over_regset_sections): Likewise.
4510 (mipsnbsd_supply_reg): Likewise.
4511 (mipsnbsd_supply_fpreg): Likewise.
4512 * mips-tdep.c (mips_in_frame_stub): Likewise.
4513 (mips_dummy_id): Likewise.
4514 (is_octeon_bbit_op): Likewise.
4515 (micromips_bc1_pc): Likewise.
4516 (extended_mips16_next_pc): Likewise.
4517 (mips16_next_pc): Likewise.
4518 (deal_with_atomic_sequence): Likewise.
4519 * moxie-tdep.c (moxie_process_readu): Likewise.
4520 * nios2-tdep.c (nios2_get_next_pc): Likewise.
4521 * nto-procfs.c (procfs_store_registers): Likewise.
4522 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers): Likewise.
4523 (ppcfbsd_store_inferior_registers): Likewise.
4524 * ppc-linux-nat.c (fetch_vsx_register): Likewise.
4525 (fetch_altivec_register): Likewise.
4526 (get_spe_registers): Likewise.
4527 (fetch_spe_register): Likewise.
4528 (fetch_altivec_registers): Likewise.
4529 (fetch_all_gp_regs): Likewise.
4530 (fetch_all_fp_regs): Likewise.
4531 (store_vsx_register): Likewise.
4532 (store_altivec_register): Likewise.
4533 (set_spe_registers): Likewise.
4534 (store_spe_register): Likewise.
4535 (store_altivec_registers): Likewise.
4536 (store_all_gp_regs): Likewise.
4537 (store_all_fp_regs): Likewise.
4538 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
4539 (ppc_linux_collect_gregset): Likewise.
4540 (ppc_canonicalize_syscall): Likewise.
4541 (ppc_linux_record_signal): Likewise.
4542 (ppu2spu_prev_register): Likewise.
4543 * ppc-nbsd-nat.c (ppcnbsd_supply_pcb): Likewise.
4544 * ppc-obsd-nat.c (ppcobsd_fetch_registers): Likewise.
4545 (ppcobsd_store_registers): Likewise.
4546 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_fetch_registers):
4547 Likewise.
4548 (ppc_ravenscar_generic_store_registers): Likewise.
4549 * procfs.c (procfs_fetch_registers): Likewise.
4550 (procfs_store_registers): Likewise.
4551 * ravenscar-thread.c (ravenscar_fetch_registers): Likewise.
4552 (ravenscar_store_registers): Likewise.
4553 (ravenscar_prepare_to_store): Likewise.
4554 * record-btrace.c (record_btrace_fetch_registers): Likewise.
4555 * record-full.c (record_full_wait_1): Likewise.
4556 (record_full_registers_change): Likewise.
4557 (record_full_store_registers): Likewise.
4558 (record_full_core_fetch_registers): Likewise.
4559 (record_full_save): Likewise.
4560 (record_full_goto_insn): Likewise.
4561 * regcache.c (regcache_register_size): Likewise.
4562 (get_regcache_arch): Remove.
4563 (regcache_read_pc): Likewise.
4564 * regcache.h (get_regcache_arch): Remove.
4565 * remote-sim.c (gdbsim_fetch_register): Likewise.
4566 (gdbsim_store_register): Likewise.
4567 * remote.c (fetch_register_using_p): Likewise.
4568 (send_g_packet): Likewise.
4569 (remote_prepare_to_store): Likewise.
4570 (store_registers_using_G): Likewise.
4571 * reverse.c (save_bookmark_command): Likewise.
4572 (goto_bookmark_command): Likewise.
4573 * rs6000-aix-tdep.c (branch_dest): Likewise.
4574 * rs6000-nat.c (rs6000_ptrace64): Likewise.
4575 (fetch_register): Likewise.
4576 * rs6000-tdep.c (ppc_supply_reg): Likewise.
4577 (ppc_collect_reg): Likewise.
4578 (ppc_collect_gregset): Likewise.
4579 (ppc_collect_fpregset): Likewise.
4580 (ppc_collect_vsxregset): Likewise.
4581 (ppc_collect_vrregset): Likewise.
4582 (ppc_displaced_step_hw_singlestep): Likewise.
4583 (rs6000_pseudo_register_read): Likewise.
4584 (rs6000_pseudo_register_write): Likewise.
4585 * s390-linux-nat.c (supply_gregset): Likewise.
4586 (fill_gregset): Likewise.
4587 (s390_linux_fetch_inferior_registers): Likewise.
4588 * s390-linux-tdep.c (s390_write_pc): Likewise.
4589 (s390_software_single_step): Likewise.
4590 (s390_all_but_pc_registers_record): Likewise.
4591 (s390_linux_syscall_record): Likewise.
4592 * sentinel-frame.c (sentinel_frame_prev_arch): Likewise.
4593 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
4594 (shnbsd_store_inferior_registers): Likewise.
4595 * sh-tdep.c (sh_extract_return_value_nofpu): Likewise.
4596 (sh_extract_return_value_fpu): Likewise.
4597 (sh_store_return_value_nofpu): Likewise.
4598 (sh_corefile_supply_regset): Likewise.
4599 (sh_corefile_collect_regset): Likewise.
4600 * sh64-tdep.c (sh64_extract_return_value): Likewise.
4601 (sh64_store_return_value): Likewise.
4602 * sparc-linux-tdep.c (sparc32_linux_collect_core_fpregset): Likewise.
4603 * sparc-nat.c (sparc_fetch_inferior_registers): Likewise.
4604 (sparc_store_inferior_registers): Likewise.
4605 * sparc-ravenscar-thread.c (register_in_thread_descriptor_p): Likewise.
4606 (sparc_ravenscar_prepare_to_store): Likewise.
4607 * sparc-tdep.c (sparc32_store_arguments): Likewise.
4608 (sparc_analyze_control_transfer): Likewise.
4609 (sparc_step_trap): Likewise.
4610 (sparc_software_single_step): Likewise.
4611 (sparc32_gdbarch_init): Likewise.
4612 (sparc_supply_rwindow): Likewise.
4613 (sparc_collect_rwindow): Likewise.
4614 * sparc64-linux-tdep.c (sparc64_linux_collect_core_fpregset): Likewise.
4615 * sparc64-nbsd-nat.c (sparc64nbsd_supply_gregset): Likewise.
4616 (sparc64nbsd_collect_gregset): Likewise.
4617 (sparc64nbsd_supply_fpregset): Likewise.
4618 (sparc64nbsd_collect_fpregset): Likewise.
4619 * sparc64-tdep.c (sparc64_store_arguments): Likewise.
4620 (sparc64_supply_gregset): Likewise.
4621 (sparc64_collect_gregset): Likewise.
4622 (sparc64_supply_fpregset): Likewise.
4623 (sparc64_collect_fpregset): Likewise.
4624 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
4625 * spu-tdep.c (spu_unwind_sp): Likewise.
4626 (spu2ppu_prev_register): Likewise.
4627 (spu_memory_remove_breakpoint): Likewise.
4628 * stack.c (return_command): Likewise.
4629 * tic6x-tdep.c (tic6x_extract_signed_field): Likewise.
4630 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
4631 * tracefile.c (trace_save_ctf): Likewise.
4632 * windows-nat.c (do_windows_fetch_inferior_registers): Likewise.
4633 (do_windows_store_inferior_registers): Likewise.
4634 (windows_resume): Likewise.
4635 * xtensa-linux-nat.c (fill_gregset): Likewise.
4636 (supply_gregset_reg): Likewise.
4637 * xtensa-tdep.c (xtensa_register_write_masked): Likewise.
4638 (xtensa_register_read_masked): Likewise.
4639 (xtensa_supply_gregset): Likewise.
4640 (xtensa_extract_return_value): Likewise.
4641 (xtensa_store_return_value): Likewise.
4642
4643 2017-10-25 Ulrich Weigand <uweigand@de.ibm.com>
4644
4645 * doublest.c (floatformat_from_string): New function.
4646 * doublest.h (floatformat_from_string): Add prototype.
4647
4648 * std-operator.def (OP_DOUBLE, OP_DECFLOAT): Remove, replace by ...
4649 (OP_FLOAT): ... this.
4650 * expression.h: Do not include "doublest.h".
4651 (union exp_element): Replace doubleconst and decfloatconst by
4652 new element floatconst.
4653 * ada-lang.c (resolve_subexp): Handle OP_FLOAT instead of OP_DOUBLE.
4654 (ada_evaluate_subexp): Likewise.
4655 * eval.c (evaluate_subexp_standard): Handle OP_FLOAT instead of
4656 OP_DOUBLE and OP_DECFLOAT.
4657 * expprint.c (print_subexp_standard): Likewise.
4658 (dump_subexp_body_standard): Likewise.
4659 * breakpoint.c (watchpoint_exp_is_const): Likewise.
4660
4661 * parse.c: Include "dfp.h".
4662 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
4663 (write_exp_elt_floatcst): New function.
4664 (operator_length_standard): Handle OP_FLOAT instead of OP_DOUBLE
4665 and OP_DECFLOAT.
4666 (operator_check_standard): Likewise.
4667 (parse_float): Do not accept suffix. Take type as input. Return bool.
4668 Return target format buffer instead of host DOUBLEST.
4669 Use floatformat_from_string and decimal_from_string to parse
4670 either binary or decimal floating-point types.
4671 (parse_c_float): Remove.
4672 * parser-defs.h: Do not include "doublest.h".
4673 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
4674 (write_exp_elt_floatcst): Add prototype.
4675 (parse_float): Update prototype.
4676 (parse_c_float): Remove.
4677
4678 * c-exp.y: Do not include "dfp.h".
4679 (typed_val_float): Use byte buffer instead of DOUBLEST.
4680 (typed_val_decfloat): Remove.
4681 (DECFLOAT): Remove.
4682 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4683 (parse_number): Update to new parse_float interface.
4684 Parse suffixes and determine type before calling parse_float.
4685 Handle decimal and binary FP types the same way.
4686
4687 * d-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
4688 (FLOAT_LITERAL): Use OP_FLOAT and write_exp_elt_floatcst.
4689 (parse_number): Update to new parse_float interface.
4690 Parse suffixes and determine type before calling parse_float.
4691
4692 * f-exp.y: Replace dval by typed_val_float.
4693 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4694 (parse_number): Use parse_float instead of atof.
4695
4696 * go-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
4697 (parse_go_float): Remove.
4698 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4699 (parse_number): Call parse_float instead of parse_go_float.
4700 Parse suffixes and determine type before calling parse_float.
4701
4702 * p-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
4703 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4704 (parse_number): Update to new parse_float interface.
4705 Parse suffixes and determine type before calling parse_float.
4706
4707 * m2-exp.y: Replace dval by byte buffer val.
4708 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4709 (parse_number): Call parse_float instead of atof.
4710
4711 * rust-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
4712 (lex_number): Call parse_float instead of strtod.
4713 (ast_dliteral): Use OP_FLOAT instead of OP_DOUBLE.
4714 (convert_ast_to_expression): Handle OP_FLOAT instead of OP_DOUBLE.
4715 Use write_exp_elt_floatcst.
4716 (unit_testing): Remove static variable.
4717 (rust_type): Do not check unit_testing.
4718 (rust_lex_tests): Do not set uint_testing. Set up dummy rust_parser.
4719
4720 * ada-exp.y (type_float, type_double): Remove.
4721 (typed_val_float): Use byte buffer instead of DOUBLEST.
4722 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4723 * ada-lex.l (processReal): Use parse_float instead of sscanf.
4724
4725 2017-10-25 Alan Hayward <alan.hayward@arm.com>
4726
4727 * aarch64-tdep.h (enum aarch64_regnum): Remove.
4728 * arch/aarch64.h: New file.
4729
4730 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4731
4732 * dfp.h (decimal_from_string): Use const reference for argument.
4733 * dfp.c (decimal_from_string): Likewise.
4734
4735 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4736
4737 * i387-tdep.c (print_i387_value): Use floatformat_to_string.
4738 * sh64-tdep.c (sh64_do_fp_register): Likewise.
4739 * mips-tdep.c (mips_print_fp_register): Likewise.
4740
4741 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4742
4743 * common/format.h (enum argclass): Replace decfloat_arg by
4744 dec32float_arg, dec64float_arg, and dec128float_arg.
4745 * common/format.c (parse_format_string): Update to return
4746 new decimal float argument classes.
4747
4748 * printcmd.c (printf_decfloat): Rename to ...
4749 (printf_floating): ... this. Add argclass argument, and use it
4750 instead of parsing the format string again. Add support for
4751 binary floating-point values, using floatformat_to_string.
4752 Convert value to the target format if it doesn't already match.
4753 (ui_printf): Call printf_floating instead of printf_decfloat,
4754 also for double_arg / long_double_arg. Pass argclass.
4755
4756 * dfp.c (decimal_to_string): Add format string argument.
4757 * dfp.h (decimal_to_string): Likewise.
4758
4759 * doublest.c (floatformat_to_string): Add format string argument.
4760 * doublest.h (floatformat_to_string): Likewise.
4761
4762 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4763
4764 * doublest.c (floatformat_precision): New routine.
4765 (floatformat_to_string): Likewise.
4766 * doublest.c (floatformat_to_string): Add prototype.
4767
4768 * printcmd.c (print_scalar_formatted): Only call print_floating
4769 on floating-point types.
4770 * valprint.c: Do not include "floatformat.h".
4771 (generic_val_print_decfloat): Remove.
4772 (generic_val_print): Call generic_val_print_float for both
4773 TYPE_CODE_FLT and TYPE_CODE_DECFLOAT.
4774 (print_floating): Use floatformat_to_string. Handle decimal float.
4775 (print_decimal_floating): Remove, merge into floatformat_to_string.
4776 * value.h (print_decimal_floating): Remove.
4777
4778 * Makefile.in: Do not build doublest.c with -Wformat-nonliteral.
4779
4780 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4781
4782 * buildsym.c (end_symtab_get_static_block): Use std::stable_sort.
4783
4784 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
4785
4786 * memattr.h: Don't include vec.h.
4787 (struct mem_attrib): Initialize fields.
4788 <unknown>: New static method.
4789 (struct mem_region): Add constructors, operator<, initialize
4790 fields.
4791 * memattr.c: Include algorithm.
4792 (default_mem_attrib, unknown_mem_attrib): Remove.
4793 (user_mem_region_list): New global.
4794 (target_mem_region_list, mem_region_list): Change type to
4795 std::vector<mem_region>.
4796 (mem_use_target): Now a function.
4797 (target_mem_regions_valid): Change type to bool.
4798 (mem_region_lessthan, mem_region_cmp, mem_region_init): Remove.
4799 (require_user_regions): Adjust.
4800 (require_target_regions): Adjust.
4801 (create_mem_region): Adjust.
4802 (lookup_mem_region): Adjust.
4803 (invalidate_target_mem_regions): Adjust.
4804 (mem_clear): Rename to...
4805 (user_mem_clear): ... this, and adjust.
4806 (mem_command): Adjust.
4807 (info_mem_command): Adjust.
4808 (mem_enable, enable_mem_command, mem_disable,
4809 disable_mem_command): Adjust.
4810 (mem_delete): Adjust.
4811 (delete_mem_command): Adjust.
4812 * memory-map.h (parse_memory_map): Return an std::vector.
4813 * memory-map.c (parse_memory_map): Likewise.
4814 (struct memory_map_parsing_data): Add constructor.
4815 <memory_map>: Point to std::vector.
4816 (memory_map_start_memory): Adjust.
4817 (memory_map_end_memory): Adjust.
4818 (memory_map_end_property): Adjust.
4819 (clear_result): Remove.
4820 * remote.c (remote_memory_map): Return an std::vector.
4821 * target-debug.h (target_debug_print_VEC_mem_region_s__p):
4822 Remove.
4823 (target_debug_print_mem_region_vector): New.
4824 * target-delegates.c: Regenerate.
4825 * target.h (mem_region_vector): New typedef.
4826 (to_memory_map): Return mem_region_vector.
4827 (target_memory_map): Return an std::vector.
4828 * target.c (target_memory_map): Return an std::vector.
4829 (flash_erase_command): Adjust.
4830
4831 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
4832
4833 * memory-map.c (struct memory_map_parsing_data) <property_name>:
4834 Change type to std::string.
4835 (memory_map_start_property): Adjust.
4836 (memory_map_end_property): Adjust.
4837
4838 2017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
4839
4840 * infrun.h: Include common/byte-vector.h.
4841 (struct displaced_step_closure): New struct.
4842 (struct buf_displaced_step_closure): New struct.
4843 * infrun.c (displaced_step_closure::~displaced_step_closure):
4844 Provide default implementation.
4845 (displaced_step_clear): Deallocate step closure with delete.
4846 * aarch64-tdep.c (displaced_step_closure): Rename to ...
4847 (aarch64_displaced_step_closure): ... this, extend
4848 displaced_step_closure.
4849 (aarch64_displaced_step_data) <dsc>: Change type to
4850 aarch64_displaced_step_closure.
4851 (aarch64_displaced_step_copy_insn): Adjust to type change, use
4852 unique_ptr.
4853 (aarch64_displaced_step_fixup): Add cast for displaced step
4854 closure.
4855 * amd64-tdep.c (displaced_step_closure): Rename to ...
4856 (amd64_displaced_step_closure): ... this, extend
4857 displaced_step_closure.
4858 <insn_buf>: Change type to std::vector<gdb_byte>.
4859 <max_len>: Remove.
4860 (fixup_riprel): Change type of DSC parameter, adjust to type
4861 change of insn_buf.
4862 (fixup_displaced_copy): Change type of DSC parameter.
4863 (amd64_displaced_step_copy_insn): Instantiate
4864 amd64_displaced_step_closure.
4865 (amd64_displaced_step_fixup): Add cast for closure type, adjust
4866 to type change of insn_buf.
4867 * arm-linux-tdep.c (arm_linux_cleanup_svc): Change type of
4868 parameter DSC.
4869 (arm_linux_copy_svc): Likewise.
4870 (cleanup_kernel_helper_return): Likewise.
4871 (arm_catch_kernel_helper_return): Likewise.
4872 (arm_linux_displaced_step_copy_insn): Instantiate
4873 arm_displaced_step_closure.
4874 * arm-tdep.c (arm_pc_is_thumb): Add cast for closure.
4875 (displaced_read_reg): Change type of parameter DSC.
4876 (branch_write_pc): Likewise.
4877 (load_write_pc): Likewise.
4878 (alu_write_pc): Likewise.
4879 (displaced_write_reg): Likewise.
4880 (arm_copy_unmodified): Likewise.
4881 (thumb_copy_unmodified_32bit): Likewise.
4882 (thumb_copy_unmodified_16bit): Likewise.
4883 (cleanup_preload): Likewise.
4884 (install_preload): Likewise.
4885 (arm_copy_preload): Likewise.
4886 (thumb2_copy_preload): Likewise.
4887 (install_preload_reg): Likewise.
4888 (arm_copy_preload_reg): Likewise.
4889 (cleanup_copro_load_store): Likewise.
4890 (install_copro_load_store): Likewise.
4891 (arm_copy_copro_load_store) Likewise.
4892 (thumb2_copy_copro_load_store): Likewise.
4893 (cleanup_branch): Likewise.
4894 (install_b_bl_blx): Likewise.
4895 (arm_copy_b_bl_blx): Likewise.
4896 (thumb2_copy_b_bl_blx): Likewise.
4897 (thumb_copy_b): Likewise.
4898 (install_bx_blx_reg): Likewise.
4899 (arm_copy_bx_blx_reg): Likewise.
4900 (thumb_copy_bx_blx_reg): Likewise.
4901 (cleanup_alu_imm): Likewise.
4902 (arm_copy_alu_imm): Likewise.
4903 (thumb2_copy_alu_imm): Likewise.
4904 (cleanup_alu_reg): Likewise.
4905 (install_alu_reg): Likewise.
4906 (arm_copy_alu_reg): Likewise.
4907 (thumb_copy_alu_reg): Likewise.
4908 (cleanup_alu_shifted_reg): Likewise.
4909 (install_alu_shifted_reg): Likewise.
4910 (arm_copy_alu_shifted_reg): Likewise.
4911 (cleanup_load): Likewise.
4912 (cleanup_store): Likewise.
4913 (arm_copy_extra_ld_st): Likewise.
4914 (install_load_store): Likewise.
4915 (thumb2_copy_load_literal): Likewise.
4916 (thumb2_copy_load_reg_imm): Likewise.
4917 (arm_copy_ldr_str_ldrb_strb): Likewise.
4918 (cleanup_block_load_all): Likewise.
4919 (cleanup_block_store_pc): Likewise.
4920 (cleanup_block_load_pc): Likewise.
4921 (arm_copy_block_xfer): Likewise.
4922 (thumb2_copy_block_xfer): Likewise.
4923 (cleanup_svc): Likewise.
4924 (install_svc): Likewise.
4925 (arm_copy_svc): Likewise.
4926 (thumb_copy_svc): Likewise.
4927 (arm_copy_undef): Likewise.
4928 (thumb_32bit_copy_undef): Likewise.
4929 (arm_copy_unpred): Likewise.
4930 (arm_decode_misc_memhint_neon): Likewise.
4931 (arm_decode_unconditional): Likewise.
4932 (arm_decode_miscellaneous): Likewise.
4933 (arm_decode_dp_misc): Likewise.
4934 (arm_decode_ld_st_word_ubyte): Likewise.
4935 (arm_decode_media): Likewise.
4936 (arm_decode_b_bl_ldmstm): Likewise.
4937 (arm_decode_ext_reg_ld_st): Likewise.
4938 (thumb2_decode_dp_shift_reg): Likewise.
4939 (thumb2_decode_ext_reg_ld_st): Likewise.
4940 (arm_decode_svc_copro): Likewise.
4941 (thumb2_decode_svc_copro): Likewise.
4942 (install_pc_relative): Likewise.
4943 (thumb_copy_pc_relative_16bit): Likewise.
4944 (thumb_decode_pc_relative_16bit): Likewise.
4945 (thumb_copy_pc_relative_32bit): Likewise.
4946 (thumb_copy_16bit_ldr_literal): Likewise.
4947 (thumb_copy_cbnz_cbz): Likewise.
4948 (thumb2_copy_table_branch): Likewise.
4949 (cleanup_pop_pc_16bit_all): Likewise.
4950 (thumb_copy_pop_pc_16bit): Likewise.
4951 (thumb_process_displaced_16bit_insn): Likewise.
4952 (decode_thumb_32bit_ld_mem_hints): Likewise.
4953 (thumb_process_displaced_32bit_insn): Likewise.
4954 (thumb_process_displaced_insn): Likewise.
4955 (arm_process_displaced_insn): Likewise.
4956 (arm_displaced_init_closure): Likewise.
4957 (arm_displaced_step_fixup): Add cast for closure.
4958 * arm-tdep.h: Include infrun.h.
4959 (displaced_step_closure): Rename to ...
4960 (arm_displaced_step_closure): ... this, extend
4961 displaced_step_closure.
4962 <u::svc::copy_svc_os>: Change type of parameter DSC.
4963 <cleanup>: Likewise.
4964 (arm_process_displaced_insn): Likewise.
4965 (arm_displaced_init_closure): Likewise.
4966 (displaced_read_reg): Likewise.
4967 (displaced_write_reg): Likewise.
4968 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
4969 Adjust.
4970 * i386-tdep.h: Include infrun.h.
4971 (i386_displaced_step_closure): New typedef.
4972 * i386-tdep.c (i386_displaced_step_copy_insn): Use
4973 i386_displaced_step_closure.
4974 (i386_displaced_step_fixup): Adjust.
4975 * rs6000-tdep.c (ppc_displaced_step_closure): New typedef.
4976 (ppc_displaced_step_copy_insn): Use ppc_displaced_step_closure
4977 and unique_ptr.
4978 (ppc_displaced_step_fixup): Adjust.
4979 * s390-linux-tdep.c (s390_displaced_step_closure): New typedef.
4980 (s390_displaced_step_copy_insn): Use s390_displaced_step_closure
4981 and unique_ptr.
4982 (s390_displaced_step_fixup): Adjust.
4983
4984 2017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
4985
4986 * interps.h (interp_resume, interp_suspend, interp_set_temp):
4987 Remove declarations.
4988
4989 2017-10-20 Tom Tromey <tom@tromey.com>
4990
4991 * gdb_bfd.c (struct gdb_bfd_data) <included_bfds>: Now a
4992 std::vector.
4993 (gdb_bfd_record_inclusion): Update.
4994 (bfdp): Remove typedef.
4995
4996 2017-10-20 Tom Tromey <tom@tromey.com>
4997
4998 * gdb_bfd.c (gdb_bfd_ref): Use new.
4999 (struct gdb_bfd_data): Add constructor, destructor, and member
5000 initializers.
5001 (gdb_bfd_unref): Use delete.
5002
5003 2017-10-20 Tom Tromey <tom@tromey.com>
5004
5005 * exec.c (exec_file_attach): Use new_bfd_ref.
5006 * symfile-mem.c (symbol_file_add_from_memory): Use new_bfd_ref.
5007 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
5008 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_fdopenr): Use
5009 new_bfd_ref.
5010 * gdb_bfd.h (new_bfd_ref): New function.
5011
5012 2017-10-20 Pedro Alves <palves@redhat.com>
5013
5014 * main.c (captured_command_loop): Add attribute noinline.
5015
5016 2017-10-19 Simon Marchi <simon.marchi@ericsson.com>
5017
5018 * interps.c (struct interp_factory): Add constructor.
5019 (interp_factory_p): Remove typedef.
5020 (DEF_VEC_P(interp_factory_p)): Remove.
5021 (interpreter_factories): Change type to std::vector.
5022 (interp_factory_register): Adjust.
5023 (interp_lookup): Adjust.
5024 (interpreter_completer): Adjust.
5025
5026 2017-10-19 Tom Tromey <tom@tromey.com>
5027
5028 * break-catch-syscall.c (catch_syscall_completer): Use
5029 std::string, gdb::unique_xmalloc_ptr.
5030
5031 2017-10-19 Tom Tromey <tom@tromey.com>
5032
5033 * infcall.c (call_function_by_hand_dummy): Use std::string.
5034
5035 2017-10-19 Tom Tromey <tom@tromey.com>
5036
5037 * mi/mi-main.c (mi_cmd_execute): Update.
5038 * top.h (prepare_execute_command): Return scoped_value_mark.
5039 * value.h (class scoped_value_mark): Use DISABLE_COPY_AND_ASSIGN.
5040 Add move constructor.
5041 * top.c (prepare_execute_command): Return scoped_value_mark.
5042 (execute_command): Update.
5043
5044 2017-10-19 Pedro Alves <palves@redhat.com>
5045
5046 * xml-support.c (xml_fetch_content_from_file): Check fread's
5047 return.
5048
5049 2017-10-19 Pedro Alves <palves@redhat.com>
5050
5051 * ser-base.c (ser_base_read_error_fd): Delete the file handler if
5052 async.
5053 (handle_error_fd): New function.
5054 (ser_base_async): Add/delete an event loop file handler for
5055 error_fd.
5056
5057 2017-10-19 Pedro Alves <palves@redhat.com>
5058
5059 * xml-support.c (xml_fetch_content_from_file): Don't read in
5060 chunks. Instead use fseek to determine the file's size, and read
5061 it in one go.
5062
5063 2017-11-18 Keith Seitz <keiths@redhat.com>
5064
5065 * c-exp.y (oper): Canonicalize conversion operators of user-defined
5066 types.
5067 Add whitespace to front of type name.
5068
5069 2017-10-18 Keith Seitz <keiths@redhat.com>
5070
5071 * dwarf2read.c (dwarf2_add_typedef): Issue a complaint on unhandled
5072 DW_AT_accessibility.
5073
5074 2017-10-18 Yao Qi <yao.qi@linaro.org>
5075
5076 * features/tic6x-c62x-linux.c: Remove.
5077
5078 2017-10-17 Tom Tromey <tom@tromey.com>
5079
5080 * disasm.c (do_mixed_source_and_assembly_deprecated): Use
5081 gdb::optional, ui_out_emit_list, ui_out_emit_tuple.
5082 (do_mixed_source_and_assembly): Likewise.
5083
5084 2017-10-17 Tom Tromey <tom@tromey.com>
5085
5086 * regcache.c (regcache::xfer_part): Remove assertion.
5087
5088 2017-10-17 Pedro Alves <palves@redhat.com>
5089
5090 * xml-support.c (xml_fetch_content_from_file): Call
5091 unique_ptr::release() instead unique_ptr::get() when passing
5092 through xrealloc.
5093
5094 2017-10-17 Yao Qi <yao.qi@linaro.org>
5095
5096 * regcache.c (regcache::xfer_part): Remove parameters read and
5097 write, add parameter is_raw. All callers are updated.
5098
5099 2017-10-16 Keith Seitz <keiths@redhat.com>
5100
5101 * c-typeprint.c (enum access_specifier): Moved here from
5102 c_type_print_base.
5103 (output_access_specifier): New function.
5104 (c_type_print_base): Consider typedefs when assessing
5105 whether access labels are needed.
5106 Use output_access_specifier as needed.
5107 Output access specifier for typedefs, if needed.
5108 * dwarf2read.c (dwarf2_add_typedef): Record DW_AT_accessibility.
5109 * gdbtypes.h (struct typedef_field) <is_protected, is_private>: New
5110 fields.
5111 (TYPE_TYPEDEF_FIELD_PROTECTED, TYPE_TYPEDEF_FIELD_PRIVATE): New
5112 accessor macros.
5113
5114 2017-10-16 Tom Tromey <tom@tromey.com>
5115
5116 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full)
5117 (linux_fill_prpsinfo, linux_vsyscall_range_raw): Update.
5118 * target.c (target_fileio_read_stralloc): Update.
5119 * sparc64-tdep.c (adi_is_addr_mapped): Update.
5120 * target.h (target_fileio_read_stralloc): Return
5121 unique_xmalloc_ptr.
5122
5123 2017-10-16 Tom Tromey <tom@tromey.com>
5124
5125 * xml-syscall.c (xml_init_syscalls_info): Update.
5126 * xml-support.c (xinclude_start_include): Update.
5127 (xml_fetch_content_from_file): Return unique_xmalloc_ptr.
5128 * xml-support.h (xml_fetch_another): Return unique_xmalloc_ptr.
5129 (xml_fetch_content_from_file): Likewise.
5130 * osdata.c (get_osdata): Update.
5131 * target.h (target_read_stralloc, target_get_osdata): Return
5132 unique_xmalloc_ptr.
5133 * solib-aix.c (solib_aix_get_library_list): Update.
5134 * solib-target.c (solib_target_current_sos): Update.
5135 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Update.
5136 * xml-tdesc.c (fetch_available_features_from_target): Update.
5137 (target_fetch_description_xml): Update.
5138 (file_read_description_xml): Update.
5139 * remote.c (remote_get_threads_with_qxfer, remote_memory_map)
5140 (remote_traceframe_info, btrace_read_config, remote_read_btrace)
5141 (remote_pid_to_exec_file): Update.
5142 * target.c (target_read_stralloc): Return unique_xmalloc_ptr.
5143 (target_get_osdata): Likewise.
5144
5145 2017-10-16 Tom Tromey <tom@tromey.com>
5146
5147 * remote.c (remote_register_number_and_offset): Use std::vector.
5148 (remote_set_syscall_catchpoint): Use gdb::unique_xmalloc_ptr.
5149 (putpkt_binary): Use gdb::def_vector.
5150 (compare_sections_command): Use gdb::byte_vector.
5151
5152 2017-10-16 Tom Tromey <tom@tromey.com>
5153
5154 * ppc-linux-nat.c (hwdebug_insert_point): Use
5155 gdb::unique_xmalloc_ptr, XDUP.
5156
5157 2017-10-16 Tom Tromey <tom@tromey.com>
5158
5159 * probe.c (parse_probes): Use std::string.
5160 (info_probes_for_ops, enable_probes_command)
5161 (disable_probes_command): Remove cleanups.
5162
5163 2017-10-16 Tom Tromey <tom@tromey.com>
5164
5165 * buildsym.c (block_compar): Remove.
5166 (end_symtab_get_static_block): Use std::vector.
5167
5168 2017-10-16 Simon Marchi <simon.marchi@ericsson.com>
5169
5170 * memrange.h (struct mem_range): Define operator< and operator==.
5171 (mem_range_s): Remove.
5172 (DEF_VEC_O (mem_range_s)): Remove.
5173 (normalize_mem_ranges): Change parameter type to std::vector.
5174 * memrange.c (compare_mem_ranges): Remove.
5175 (normalize_mem_ranges): Change parameter type to std::vector,
5176 adjust to vector change.
5177 * exec.c (section_table_available_memory): Return vector, remove
5178 parameter.
5179 (section_table_read_available_memory): Adjust to std::vector
5180 change.
5181 * remote.c (remote_read_bytes): Adjust to std::vector
5182 change.
5183 * tracepoint.h (traceframe_available_memory): Change parameter
5184 type to std::vector.
5185 * tracepoint.c (traceframe_available_memory): Change parameter
5186 type to std::vector, adjust.
5187 * gdb/mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to
5188 std::vector change.
5189 * gdb/Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5190 unittests/memrange-selftests.c.
5191 (SUBDIR_UNITTESTS_OBS): Add memrange-selftests.o.
5192 * gdb/unittests/memrange-selftests.c: New file.
5193
5194 2017-10-16 Pedro Alves <palves@redhat.com>
5195
5196 * elfread.c (probe_key_free): Rename range-for variable.
5197 * probe.c (parse_probes_in_pspace, find_probes_in_objfile)
5198 (find_probe_by_pc, collect_probes): Rename range-for variable.
5199
5200 2017-10-16 Yao Qi <yao.qi@linaro.org>
5201
5202 * features/Makefile (XMLTOC): Remove tic6x-*.xml.
5203 * features/tic6x-c62x.c: Remove.
5204 * features/tic6x-c64x-linux.c: Remove.
5205 * features/tic6x-c64x.c: Remove.
5206 * features/tic6x-c64xp-linux.c: Remove.
5207 * features/tic6x-c64xp.c: Remove.
5208 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Don't call
5209 initialize_tdesc_tic6x_*_linux functions.
5210 * tic6x-tdep.c (_initialize_tic6x_tdep): Don't call
5211 initialize_tdesc_tic6x_* functions.
5212
5213 2017-10-16 Yao Qi <yao.qi@linaro.org>
5214
5215 * features/Makefile (WHICH): Remove tic6x-c64xp, tic6x-c64x
5216 tic6x-c62x.
5217 * regformats/tic6x-c62x.dat: Remove.
5218 * regformats/tic6x-c64x.dat: Remove.
5219 * regformats/tic6x-c64xp.dat: Remove.
5220
5221 2017-10-15 Simon Marchi <simon.marchi@ericsson.com>
5222
5223 * tracepoint.c (parse_traceframe_info): Return a unique_ptr
5224 (the !HAVE_LIBEXPAT version).
5225
5226 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
5227
5228 * nat/linux-osdata.c (struct pid_pgid_entry) <operator<>: Make
5229 const.
5230
5231 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
5232
5233 * target.h: Include tracepoint.h.
5234 (enum trace_find_type): Move to tracepoint.h.
5235 (struct target_ops) <to_traceframe_info>: Return a unique ptr.
5236 * tracepoint.h: Don't include target.h
5237 (enum trace_find_type): Move from target.h.
5238 (parse_traceframe_info): Return a unique ptr.
5239 * tracepoint.c (current_traceframe_info): Change type to unique
5240 ptr.
5241 (free_traceframe_info): Remove.
5242 (clear_traceframe_info): Don't manually free
5243 current_traceframe_info.
5244 (free_result): Remove.
5245 (parse_traceframe_info): Return a unique ptr.
5246 (get_traceframe_info): Adjust to unique ptr.
5247 * ctf.c (ctf_traceframe_info): Return a unique ptr.
5248 * remote.c (remote_traceframe_info): Return a unique ptr.
5249 * tracefile-tfile.c (tfile_traceframe_info): Return a unique
5250 ptr.
5251 * target-debug.h (target_debug_print_traceframe_info_up): New
5252 macro.
5253 * target-delegates.c: Regenerate.
5254
5255 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
5256
5257 * memrange.h (struct mem_range): Add constructors.
5258 * tracepoint.h (struct traceframe_info) <memory>: Change type to
5259 std::vector<mem_range>.
5260 * tracepoint.c (free_traceframe_info): Don't manually free
5261 vector.
5262 (traceframe_info_start_memory): Adjust to vector change.
5263 (traceframe_available_memory): Likewise.
5264 * tracefile-tfile.c (build_traceframe_info): Likewise.
5265 * ctf.c (ctf_traceframe_info): Likewise.
5266
5267 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
5268
5269 * tracepoint.h (struct traceframe_info) <tvars>: Change type to
5270 std::vector<int>.
5271 * tracepoint.c (free_traceframe_info): Deallocate with delete.
5272 (traceframe_info_start_tvar): Adjust to vector change.
5273 (parse_traceframe_info): Allocate with new.
5274 * ctf.c (ctf_traceframe_info): Allocate with new, adjust to
5275 vector change.
5276 * tracefile-tfile.c (build_traceframe_info): Adjust to vector
5277 change.
5278 tfile_traceframe_info): Allocate with new.
5279 * mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to vector
5280 change.
5281
5282 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
5283
5284 * tracepoint.c (traceframe_info): Rename to...
5285 (current_traceframe_info): ...this.
5286 (clear_traceframe_info): Adjust.
5287 (get_traceframe_info): Adjust.
5288
5289 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
5290
5291 * nat/linux-osdata.c: Include algorithm.
5292 (compare_processes): Remove.
5293 (struct pid_pgid_entry): New struct.
5294 (linux_xfer_osdata_processgroups): Use std::vector instead of
5295 XNEWVEC.
5296
5297 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
5298
5299 * objfiles.h: Don't include symfile.h.
5300 (struct partial_symbol): Remove forward-declaration.
5301 (struct objfile) <global_psymbols, static_psymbols>: Change type
5302 to std::vector<partial_symbol *>.
5303 * objfiles.c (objfile::objfile): Don't memset those fields.
5304 (objfile::~objfile): Don't free those fields.
5305 * psympriv.h (struct psymbol_allocation_list): Remove
5306 forward-declaration.
5307 (add_psymbol_to_list): Change psymbol_allocation_list parameter
5308 to std::vector.
5309 (start_psymtab_common): Change parameters to std::vector.
5310 * psymtab.c: Include algorithm.
5311 (require_partial_symbols): Call shrink_to_fit.
5312 (find_pc_sect_psymbol): Adjust to vector change.
5313 (match_partial_symbol): Likewise.
5314 (lookup_partial_symbol): Likewise.
5315 (psym_relocate): Likewise.
5316 (dump_psymtab): Likewise.
5317 (recursively_search_psymtabs): Likewise.
5318 (compare_psymbols): Remove.
5319 (sort_pst_symbols): Adjust to vector change.
5320 (start_psymtab_common): Likewise.
5321 (end_psymtab_common): Likewise.
5322 (psymbol_bcache_full): De-constify return value.
5323 (add_psymbol_to_bcache): Likewise.
5324 (extend_psymbol_list): Remove.
5325 (append_psymbol_to_list): Adjust to vector change.
5326 (add_psymbol_to_list): Likewise.
5327 (init_psymbol_list): Likewise.
5328 (maintenance_info_psymtabs): Likewise.
5329 (maintenance_check_psymtabs): Likewise.
5330 * symfile.h (struct psymbol_allocation_list): Remove.
5331 * symfile.c (reread_symbols): Adjust to vector change.
5332 * dbxread.c (start_psymtab): Change type of parameters.
5333 (dbx_symfile_read): Adjust to vector change.
5334 (read_dbx_symtab): Likewise.
5335 (start_psymtab): Change type of parameters.
5336 * dwarf2read.c (dwarf2_build_psymtabs): Adjust to vector change.
5337 (create_partial_symtab): Likewise.
5338 (add_partial_symbol): Likewise.
5339 (write_one_signatured_type): Likewise.
5340 (recursively_write_psymbols): Likewise.
5341 * mdebugread.c (parse_partial_symbols): Likewise.
5342 * xcoffread.c (xcoff_start_psymtab): Change type of parameters.
5343 (scan_xcoff_symtab): Adjust to vector change.
5344 (xcoff_initial_scan): Likewise.
5345
5346 2017-10-13 Simon Marchi <simon.marchi@ericsson.com>
5347
5348 * ada-typeprint.c (print_dynamic_range_bound): Use std::string.
5349
5350 2017-10-13 Yao Qi <yao.qi@linaro.org>
5351
5352 * features/Makefile: Remove tic6x-*-expedite, add tic6x-expedite.
5353 Remove s390x-*-expedite, add s390x-expedite.
5354
5355 2017-10-13 Yao Qi <yao.qi@linaro.org>
5356
5357 * features/s390-gs-linux64.c: Regenerated.
5358 * features/s390x-gs-linux64.c: Regenerated.
5359
5360 2017-10-13 Tom Tromey <tom@tromey.com>
5361
5362 * compile/compile-object-run.c (do_module_cleanup): Use delete.
5363 * solib.c (update_solib_list, reload_shared_libraries_1): Use
5364 delete.
5365 * symfile.c (symbol_file_add_with_addrs): Use new.
5366 (symbol_file_add_separate): Update comment.
5367 (syms_from_objfile_1, remove_symbol_file_command): Use delete.
5368 * jit.c (jit_object_close_impl): Use new.
5369 (jit_unregister_code): Use delete.
5370 * objfiles.c (objfile::objfile): Rename from allocate_objfile.
5371 (~objfile): Rename from free_objfile.
5372 (free_objfile_separate_debug, do_free_objfile_cleanup)
5373 (free_all_objfiles, objfile_purge_solibs): Use delete.
5374 * objfiles.h (struct objfile): Add constructor and destructor.
5375 Use DISABLE_COPY_AND_ASSIGN. Add initializers to data members.
5376 (allocate_objfile, free_objfile): Don't declare.
5377 (struct objstats): Add initializers.
5378
5379 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
5380
5381 * arch-utils.h (simple_displaced_step_copy_insn): Remove.
5382 * arch-utils.c (simple_displaced_step_copy_insn): Remove.
5383 * gdbarch.sh (displaced_step_copy_insn): Adjust comment.
5384 * gdbarch.h: Regenerate.
5385 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
5386 Adjust comment.
5387 * i386-tdep.c (i386_displaced_step_copy_insn): Adjust comment.
5388 (i386_displaced_step_fixup): Adjust comment.
5389 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Adjust comment.
5390
5391 2017-10-12 Tom Tromey <tom@tromey.com>
5392
5393 * prologue-value.h (pv_area::store_would_trash): Return bool.
5394 (pv_area::find_reg): Likewise.
5395 * prologue-value.c (pv_area::store_would_trash): Return bool.
5396 (pv_area::find_reg): Likewise.
5397
5398 2017-10-12 Tom Tromey <tom@tromey.com>
5399
5400 * s390-linux-tdep.c (s390_store, s390_load)
5401 (s390_check_for_saved, s390_analyze_prologue): Update.
5402 * rx-tdep.c (check_for_saved, rx_analyze_prologue): Update.
5403 * rl78-tdep.c (rl78_analyze_prologue, check_for_saved): Update.
5404 * prologue-value.h (class pv_area): Move from prologue-value.c.
5405 Change names of members. Add constructor, destructor, member
5406 functions.
5407 (make_pv_area, free_pv_area, make_cleanup_free_pv_area)
5408 (pv_area_store, pv_area_fetch, pv_area_store_would_trash)
5409 (pv_area_fetch, pv_area_scan): Don't declare.
5410 * prologue-value.c (struct pv_area::area_entry): Now member of
5411 pv_area.
5412 (struct pv_area): Move to prologue-value.h.
5413 (pv_area::pv_area): Rename from make_pv_area.
5414 (pv_area::~pv_area): Rename from free_pv_area.
5415 (do_free_pv_area_cleanup, make_cleanup_free_pv_area): Remove.
5416 (clear_entries, find_entry, overlaps, store_would_trash, store)
5417 (fetch, find_reg, scan): Now member of pv_area.
5418 Remove "area" argument. Update.
5419 * msp430-tdep.c (check_for_saved, msp430_analyze_prologue):
5420 Update.
5421 * mn10300-tdep.c (push_reg, check_for_saved)
5422 (mn10300_analyze_prologue): Update.
5423 * mep-tdep.c (is_arg_spill, check_for_saved)
5424 (mep_analyze_prologue): Update.
5425 * m32c-tdep.c (m32c_pv_push, m32c_srcdest_fetch)
5426 (m32c_srcdest_store, m32c_pv_enter, m32c_is_arg_spill)
5427 (m32c_is_struct_return, m32c_analyze_prologue): Update.
5428 * arm-tdep.c (thumb_analyze_prologue, arm_analyze_prologue):
5429 Update.
5430 * arc-tdep.c (arc_is_in_prologue, arc_analyze_prologue): Update.
5431 * aarch64-tdep.c (aarch64_analyze_prologue): Update.
5432
5433 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
5434
5435 * linux-nat.h (linux_nat_set_delete_thread): New declaration.
5436 * linux-nat.c (linux_nat_delete_thread): New variable.
5437 (lwp_free): Invoke linux_nat_delete_thread if set.
5438 (linux_nat_set_delete_thread): New function.
5439 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Assign
5440 thread delete callback.
5441 * arm-linux-nat.c (arm_linux_delete_thread): New function.
5442 (_initialize_arm_linux_nat): Assign thread delete callback.
5443 * s390-linux-nat.c (s390_delete_thread): New function.
5444 (_initialize_s390_nat): Assign thread delete callback.
5445 * x86-linux-nat.c (x86_linux_add_target): Likewise.
5446 * nat/aarch64-linux.c (aarch64_linux_delete_thread): New
5447 function.
5448 * nat/aarch64-linux.h (aarch64_linux_delete_thread): New
5449 declaration.
5450 * nat/x86-linux.c (x86_linux_delete_thread): New function.
5451 * nat/x86-linux.h (x86_linux_delete_thread): New declaration.
5452
5453 2017-10-09 Tom Tromey <tom@tromey.com>
5454
5455 * tui/tui-win.c (tui_set_win_height, parse_scrolling_args): Use
5456 std::string.
5457 * tui/tui-layout.c (enum tui_status): Use std::string.
5458
5459 2017-10-11 Tom Tromey <tom@tromey.com>
5460
5461 * gdbthread.h (thread_command): Constify.
5462 * inferior.h (detach_command): Constify.
5463 * top.h (set_history, show_history): Constify.
5464 * arm-tdep.c (set_arm_command, show_arm_command): Constify.
5465 * serial.c (serial_set_cmd, serial_show_cmd): Constify.
5466 * bsd-kvm.c (bsd_kvm_cmd): Constify.
5467 * printcmd.c (set_command): Constify.
5468 (non_const_set_command): New function.
5469 * dcache.c (set_dcache_command, show_dcache_command): Constify.
5470 * breakpoint.c (enable_command, disable_command, delete_command)
5471 (catch_command, tcatch_command, set_breakpoint_cmd)
5472 (show_breakpoint_cmd): Constify.
5473 * macrocmd.c (macro_command): Constify.
5474 * infcmd.c (unset_command, kill_command, detach_command)
5475 (info_proc_cmd): Constify.
5476 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Constify.
5477 * auto-load.c (show_auto_load_cmd, set_auto_load_cmd)
5478 (info_auto_load_cmd): Constify.
5479 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
5480 (unset_tdesc_cmd): Constify.
5481 * ada-lang.c (set_ada_command, show_ada_command)
5482 (maint_set_ada_cmd, maint_show_ada_cmd): Constify.
5483 * guile/guile.c (set_guile_command, show_guile_command)
5484 (info_guile_command): Constify.
5485 * tui/tui-win.c (tui_command, set_tui_cmd, show_tui_cmd):
5486 Constify.
5487 * skip.c (skip_command): Constify.
5488 * compile/compile.c (_initialize_compile): Constify.
5489 * dwarf2read.c (set_dwarf_cmd, show_dwarf_cmd): Constify.
5490 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
5491 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
5492 (maint_btrace_pt_show_cmd): Constify.
5493 * remote.c (set_remote_cmd, show_remote_cmd, remote_command):
5494 Constify.
5495 * python/python.c (user_show_python, user_set_python): Constify.
5496 * mips-tdep.c (set_mips_command, show_mips_command)
5497 (set_mipsfpu_command): Constify.
5498 * record-btrace.c (cmd_record_btrace_start)
5499 (cmd_set_record_btrace, cmd_show_record_btrace)
5500 (cmd_set_record_btrace_bts, cmd_show_record_btrace_bts)
5501 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): Constify.
5502 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command):
5503 Constify.
5504 * symfile.c (overlay_command): Constify.
5505 * spu-tdep.c (set_spu_command, show_spu_command): Constify.
5506 * cli/cli-logging.c (set_logging_command, show_logging_command):
5507 Constify.
5508 * cli/cli-dump.c (dump_command, append_command)
5509 (srec_dump_command, ihex_dump_command, verilog_dump_command)
5510 (tekhex_dump_command, binary_dump_command)
5511 (binary_append_command): Constify.
5512 * cli/cli-decode.c (struct cmd_list_element): Change type of
5513 "fun".
5514 * cli/cli-cmds.c (info_command, show_command, set_debug)
5515 (show_debug): Constify.
5516 (show_command): Add non-const overload.
5517 * top.c (set_history, show_history): Constify.
5518 * sh-tdep.c (set_sh_command, show_sh_command): Constify.
5519 * command.h (add_prefix_cmd): Accept a cmd_const_cfunc_ftype.
5520 * target.c (target_command): Constify.
5521 * sparc64-tdep.c (info_adi_command): Constify.
5522 * record-full.c (cmd_record_full_start): Constify.
5523 (set_record_full_command): Constify. Fix typo.
5524 (show_record_full_command): Constify.
5525 * thread.c (thread_command, thread_apply_command): Constify.
5526 * memattr.c (dummy_cmd): Constify.
5527 * value.c (function_command): Constify.
5528 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Constify.
5529 * probe.c (info_probes_command): Constify.
5530 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Constify.
5531 * gnu-nat.c (set_task_cmd, show_task_cmd, set_thread_cmd)
5532 (show_thread_cmd, set_thread_default_cmd)
5533 (show_thread_default_cmd): Constify.
5534 (check_empty): Constify.
5535 * tracepoint.c (tfind_command): Constify.
5536 * cp-support.c (maint_cplus_command): Constify.
5537 * windows-tdep.c (info_w32_command): Constify.
5538 * record.c (cmd_record_start, set_record_command)
5539 (show_record_command, info_record_command, cmd_record_goto):
5540 Constify.
5541 * ravenscar-thread.c (set_ravenscar_command)
5542 (show_ravenscar_command): Constify.
5543 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5544 Constify.
5545 (add_internal_problem_command): Remove casts.
5546 * arc-tdep.c (maintenance_print_arc_command): Constify.
5547 * valprint.c (set_print, show_print, set_print_raw)
5548 (show_print_raw): Constify.
5549 * maint.c (maintenance_command, maintenance_info_command)
5550 (maintenance_print_command, maintenance_set_cmd)
5551 (maintenance_show_cmd, set_per_command_cmd)
5552 (show_per_command_cmd, maintenance_check_command): Constify.
5553 * language.c (set_check, show_check): Constify.
5554 * typeprint.c (show_print_type, set_print_type): Constify.
5555 * go32-nat.c (go32_info_dos_command): Constify.
5556
5557 2017-10-11 Tom Tromey <tom@tromey.com>
5558
5559 * breakpoint.c (prepare_re_set_context): Remove.
5560 (breakpoint_re_set_one): Update. Don't use cleanups.
5561 (breakpoint_re_set): Use scoped_restore, std::string, and
5562 scoped_restore_current_language.
5563
5564 2017-10-11 Tom Tromey <tom@tromey.com>
5565
5566 * breakpoint.c (commands_command_1): Use std::string.
5567 (cleanup_executing_breakpoints): Remove.
5568 (bpstat_do_actions_1): Use scoped_restore.
5569 (bpstat_check_watchpoint): Use std::string.
5570 (decode_static_tracepoint_spec): Likewise.
5571 (break_range_command): Likewise.
5572 (watch_command_1): Likewise.
5573 (compare_breakpoints): Change argument types.
5574 (clear_command): Use std::vector.
5575 (cleanup_executing_breakpoints): Remove.
5576 (update_global_location_list): Use unique_xmalloc_ptr.
5577 (strace_command): Remove unused declaration.
5578
5579 2017-10-11 John Baldwin <jhb@FreeBSD.org>
5580
5581 * Makefile.in (ALLDEPFILES): Add arm-fbsd-nat.c.
5582 * NEWS: Mention new FreeBSD/arm native configuration.
5583 * configure.host: Add arm*-*-freebsd*.
5584 * configure.nat: Likewise.
5585 * arm-fbsd-nat.c: New file.
5586
5587 2017-10-11 John Baldwin <jhb@FreeBSD.org>
5588
5589 * Makefile.in (ALL_TARGET_OBS): Add arm-fbsd-tdep.o.
5590 (ALLDEPFILES): Add arm-fbsd-tdep.c.
5591 * NEWS: Mention new FreeBSD/arm target.
5592 * configure.tgt: Add arm*-*-freebsd*.
5593 * arm-fbsd-tdep.c: New file.
5594 * arm-fbsd-tdep.h: New file.
5595
5596 2017-10-11 Maciej W. Rozycki <macro@imgtec.com>
5597
5598 * linux-tdep.c (linux_make_corefile_notes): Remove call to
5599 `gdbarch_elfcore_write_linux_prpsinfo'.
5600 * gdbarch.sh (elfcore_write_linux_prpsinfo): Remove architecture
5601 method.
5602 (elf_internal_linux_prpsinfo): Remove declaration.
5603 * gdbarch.h: Regenerate.
5604 * gdbarch.c: Regenerate.
5605
5606 2017-10-11 Maciej W. Rozycki <macro@imgtec.com>
5607
5608 * ppc-linux-tdep.c (ppc_linux_init_abi): Remove call to
5609 `set_gdbarch_elfcore_write_linux_prpsinfo'.
5610
5611 2017-10-11 Pedro Alves <palves@redhat.com>
5612
5613 * breakpoint.c (reattach_breakpoints): Delete.
5614 * breakpoint.h (reattach_breakpoints): Delete.
5615
5616 2017-10-11 Simon Marchi <simon.marchi@ericsson.com>
5617
5618 * symfile.c (registered_sym_fns): Make struct, not typedef.
5619 (DEF_VEC_O (registered_sym_fns)): Remove.
5620 (symtab_fns): Change type to std::vector.
5621 (add_symtab_fns): Adjust.
5622 (find_sym_fns): Adjust.
5623
5624 2017-10-11 Anton Kolesov <Anton.Kolesov@synopsys.com>
5625
5626 * arc-tdep.c (arc_gdbarch_init): Pass proper cpu value to disassembler.
5627 * arc-tdep.h (arc_arch_is_em): New function.
5628 (arc_arch_is_hs): Likewise.
5629
5630 2017-10-11 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com>
5631
5632 * macrotab.h (macro_lookup_inclusion): Remove unnecessary
5633 parentheses in the declaration.
5634 (macro_lookup_inclusion): Likewise.
5635 (macro_lookup_definition): Likewise.
5636 * p-lang.h (pascal_builtin_types): Likewise.
5637 * tui/tui-data.c (tui_win_list): Likewise.
5638 * tui/tui-data.h (tui_win_list): Likewise.
5639 * utils.h (make_cleanup_free_section_addr_info): Likewise.
5640
5641 2017-10-11 Mark Rages <markrages@gmail.com>
5642
5643 * target-memory.c (block_boundaries): Fix for block address not
5644 aligned on block size.
5645
5646 2017-10-10 Pedro Alves <palves@redhat.com>
5647 Tom Tromey <tom@tromey.com>
5648
5649 * breakpoint.c (struct captured_breakpoint_query_args)
5650 (do_captured_breakpoint_query, gdb_breakpoint_query): Delete.
5651 (print_breakpoint): New.
5652 * breakpoint.h (print_breakpoint): Declare.
5653 * common/common-exceptions.h (enum return_reason): Remove
5654 references to catch_exceptions.
5655 * exceptions.c (catch_exceptions, catch_exceptions_with_msg):
5656 Delete.
5657 * exceptions.h (catch_exceptions_ftype, catch_exceptions)
5658 (catch_exception_ftype, catch_exceptions_with_msg): Delete.
5659 * gdb.h: Delete.
5660 * gdbthread.h (thread_select): Declare.
5661 * mi/mi-cmd-break.c: Don't include gdb.h.
5662 (breakpoint_notify): Use print_breakpoint.
5663 * mi/mi-cmd-catch.c: Don't include gdb.h.
5664 * mi/mi-interp.c: Don't include gdb.h.
5665 (mi_print_breakpoint_for_event): New.
5666 (mi_breakpoint_created, mi_breakpoint_modified): Use
5667 mi_print_breakpoint_for_event.
5668 * mi/mi-main.c: Don't include gdb.h.
5669 (mi_cmd_thread_select): Parse the global thread ID here. Use
5670 thread_select instead of gdb_thread_select.
5671 (mi_cmd_thread_list_ids): Output "thread-ids" tuple here instead
5672 of using gdb_list_thread_ids.
5673 * remote-fileio.c (do_remote_fileio_request): Change type. Reply
5674 FILEIO_ENOSYS here.
5675 (remote_fileio_request): Use TRY/CATCH instead of
5676 catch_exceptions.
5677 * symfile-mem.c (struct symbol_file_add_from_memory_args)
5678 (symbol_file_add_from_memory_wrapper): Delete.
5679 (add_vsyscall_page): Use TRY/CATCH instead of catch_exceptions.
5680 * thread.c: Don't include gdb.h.
5681 (do_captured_list_thread_ids, gdb_list_thread_ids): Delete.
5682 (thread_alive): Use thread_select.
5683 (do_captured_thread_select): Delete, parts salvaged as ...
5684 (thread_select): ... this new function.
5685 (gdb_thread_select): Delete.
5686
5687 2017-10-10 Pedro Alves <palves@redhat.com>
5688 Tom Tromey <tom@tromey.com>
5689
5690 * breakpoint.c (breakpoint_cond_eval): Change return type to bool
5691 and reverse logic.
5692 (WP_DELETED, WP_VALUE_CHANGED, WP_VALUE_NOT_CHANGED, WP_IGNORE):
5693 No longer macros. Instead ...
5694 (enum wp_check_result): They're now values of this new
5695 enumeration.
5696 (watchpoint_check): Change return type to wp_check_result and
5697 parameter type to bpstat.
5698 (bpstat_check_watchpoint): Use TRY/CATCH instead of catch_errors.
5699 (bpstat_check_breakpoint_conditions): Use TRY/CATCH instead of
5700 catch_errors. Reverse logic of watchpoint_check call.
5701 (breakpoint_re_set_one): Now returns void and takes a breakpoint
5702 pointer as parameter.
5703 (breakpoint_re_set): Use TRY/CATCH instead of catch_errors.
5704 * common/common-exceptions.c (throw_exception_sjlj): Update
5705 comments to avoid mentioning catch_errors.
5706 * exceptions.c (catch_errors): Delete.
5707 * exceptions.h: Update comments to avoid mentioning catch_errors.
5708 (catch_errors_ftype, catch_errors): Delete.
5709 * infrun.c (normal_stop): Use TRY/CATCH instead of catch_errors.
5710 (hook_stop_stub): Delete.
5711 (restore_selected_frame): Change return type to void, and
5712 parameter type to const frame_id &.
5713 (restore_infcall_control_state): Use TRY/CATCH instead of
5714 catch_errors.
5715 * main.c (captured_command_loop): Return void and remove
5716 parameter. Remove references to catch_errors.
5717 (captured_main): Use TRY/CATCH instead of catch_errors.
5718 * objc-lang.c (objc_submethod_helper_data)
5719 (find_objc_msgcall_submethod_helper): Delete.
5720 (find_objc_msgcall_submethod): Use TRY/CATCH instead of
5721 catch_errors.
5722 * record-full.c (record_full_message): Return void.
5723 (record_full_message_args, record_full_message_wrapper): Delete.
5724 (record_full_message_wrapper_safe): Return bool and use TRY/CATCH
5725 instead of catch_errors.
5726 * solib-aix.c (solib_aix_open_symbol_file_object): Change
5727 parameter type to int.
5728 * solib-darwin.c (open_symbol_file_object): Ditto.
5729 * solib-dsbt.c (open_symbol_file_object): Ditto.
5730 * solib-frv.c (open_symbol_file_object): Ditto.
5731 * solib-svr4.c (open_symbol_file_object): Ditto.
5732 * solib-target.c (solib_target_open_symbol_file_object): Ditto.
5733 * solib.c (update_solib_list): Use TRY/CATCH instead of
5734 catch_errors.
5735 * solist.h (struct target_so_ops) <open_symbol_file_object>:
5736 Change type.
5737 * symmisc.c (struct print_symbol_args): Remove.
5738 (dump_symtab_1): Use TRY/CATCH instead of catch_errors.
5739 (print_symbol): Change type.
5740 * windows-nat.c (handle_load_dll, handle_unload_dll): Return void
5741 and remove parameters.
5742 (catch_errors): New.
5743 (get_windows_debug_event): Adjust.
5744
5745 2017-10-09 Tom Tromey <tom@tromey.com>
5746
5747 * mi/mi-main.c (free_splay_tree): Remove.
5748 (list_available_thread_groups): Use splay_tree_up.
5749 * common/gdb_splay_tree.h: New file.
5750
5751 2017-10-09 Tom Tromey <tom@tromey.com>
5752
5753 * mi/mi-main.c (do_nothing): Remove.
5754 (list_available_thread_groups): Update.
5755
5756 2017-10-09 Pedro Alves <palves@redhat.com>
5757
5758 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>: Skip
5759 reading registers when switching context.
5760
5761 2017-10-09 John Baldwin <jhb@FreeBSD.org>
5762
5763 * fbsd-nat.c (fbsd_siginfo_size): Use gdbarch_long_bit.
5764 (fbsd_convert_siginfo): Likewise.
5765 * fbsd-tdep.c (fbsd_core_xfer_siginfo): Likewise.
5766
5767 2017-10-09 Simon Marchi <simon.marchi@polymtl.ca>
5768
5769 * configure.ac (try_guile_versions): Remove guile-2.2.
5770 * configure: Regenerate.
5771
5772 2017-10-09 Tom Tromey <tom@tromey.com>
5773
5774 * Makefile.in (COMPILE.post, POSTCOMPILE): Restore $(basename).
5775 (COMPILE.pre): Use $(CXX).
5776
5777 2017-10-09 Pedro Alves <palves@redhat.com>
5778
5779 * cp-support.c (cp_remove_params): Return a gdb::unique_xmalloc_ptr.
5780 Use bool.
5781 (overload_list_add_symbol): Adjust to use gdb::unique_xmalloc_ptr.
5782 * cp-support.h (cp_remove_params): Now returns a
5783 gdb::unique_xmalloc_ptr.
5784 * dwarf2read.c (find_slot_in_mapped_hash): Now returns bool.
5785 Adjust to cp_remove_params returning a gdb::unique_xmalloc_ptr.
5786 * psymtab.c (psymtab_search_name): Adjust to cp_remove_params
5787 returning a gdb::unique_xmalloc_ptr.
5788 (lookup_partial_symbol): Adjust to use gdb::unique_xmalloc_ptr.
5789 * stack.c (find_frame_funname): Adjust to cp_remove_params
5790 returning a gdb::unique_xmalloc_ptr.
5791
5792 2017-10-08 Tom Tromey <tom@tromey.com>
5793
5794 * dwarf2read.c (dwarf2_get_dwz_file): Use
5795 gdb::unique_xmalloc_ptr.
5796 (find_slot_in_mapped_hash): Likewise.
5797 (dwarf2_physname): Likewise.
5798 (create_dwo_unit_in_dwp_v1): Use std::string.
5799 (create_dwo_unit_in_dwp_v2): Likewise.
5800 (lookup_dwo_cutu): Likewise.
5801 (inherit_abstract_dies): Use std::vector.
5802 (read_array_type): Likewise.
5803 (dwarf_decode_macros): Remove unused declaration.
5804 (unsigned_int_compar): Remove.
5805 (dwarf2_build_psymtabs_hard): Use scoped_restore.
5806 (psymtabs_addrmap_cleanup): Remove.
5807
5808 2017-10-08 Tom Tromey <tom@tromey.com>
5809
5810 * frame-unwind.c (frame_unwind_try_unwinder): Update.
5811 * frame.h (frame_cleanup_after_sniffer): Declare.
5812 (frame_prepare_for_sniffer): Return void.
5813 * frame.c (frame_cleanup_after_sniffer): No longer static. Change
5814 type of argument.
5815 (frame_prepare_for_sniffer): Return void.
5816
5817 2017-10-08 Tom Tromey <tom@tromey.com>
5818
5819 * utils.h (make_cleanup_value_free): Remove.
5820 * utils.c (do_value_free, struct cleanup): Remove.
5821 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>:
5822 Use gdb_value_up.
5823 * value.h (struct value_deleter): New.
5824 (gdb_value_up): New typedef.
5825
5826 2017-10-08 Tom Tromey <tom@tromey.com>
5827
5828 * symtab.c (free_search_symbols, do_free_search_symbols_cleanup)
5829 (make_cleanup_free_search_symbols): Remove.
5830 (search_symbols): Return std::vector.
5831 (symbol_search::compare_search_syms): Now member of
5832 symbol_search. Change arguments.
5833 (sort_search_symbols_remove_dups): Change arguments. Rewrite.
5834 (symtab_symbol_info, rbreak_command): Update.
5835 * symtab.h (struct symbol_search) <next>: Remove.
5836 Add constructors.
5837 (symbol_search::operator<): New function.
5838 (symbol_search::operator==): New function.
5839 (search_symbols): Remove std::vector.
5840 (free_search_symbols, make_cleanup_free_search_symbols): Remove.
5841 (symbol_search::compare_search_syms): Declare.
5842
5843 2017-10-06 Yao Qi <yao.qi@linaro.org>
5844
5845 * Makefile.in (ALL_64_TARGET_OBS): Replace aarch64-insn.o with
5846 arch/aarch64-insn.o.
5847 Remove one rule.
5848 * configure.tgt: Replace aarch64-insn.o with arch/aarch64-insn.o.
5849
5850 2017-10-06 Yao Qi <yao.qi@linaro.org>
5851
5852 * Makefile.in (ALL_TARGET_OBS): Replace arm.o, arm-get-next-pcs.o,
5853 and arm-linux.o with arch/arm.o, arch/arm-get-next-pcs.o and
5854 arch/arm-linux.o respectively.
5855 * configure.tgt: Likewise.
5856
5857 2017-10-06 Yao Qi <yao.qi@linaro.org>
5858
5859 * Makefile.in (ALL_TARGET_OBS): Rename i386.o to arch/i386.o.
5860 * configure.tgt (i386_tobjs): Replace i386.o with arch/i386.o.
5861
5862 2017-10-06 Pedro Alves <palves@redhat.com>
5863
5864 * windows-nat.c: Include <algorithm>.
5865
5866 2017-10-06 Yao Qi <yao.qi@linaro.org>
5867
5868 * configure.tgt (i386_tobjs): New variable.
5869 (amd64_tobjs): New variable.
5870 Set $cpu_obs and $os_obs.
5871
5872 2017-10-06 Yao Qi <yao.qi@linaro.org>
5873
5874 * Makefile.in (CONFIG_SRC_SUBDIR): New.
5875 (ALL_64_TARGET_OBS): Replace amd64.o with arch/amd64.o.
5876 (clean): Remove object files and dependency files.
5877 (distclean): Remove the directory.
5878 * configure.ac: Invoke AC_CONFIG_COMMANDS.
5879 * configure: Re-generated.
5880 * configure.tgt: Replace amd64.o with arch/amd64.o.
5881
5882 2017-10-05 Jose E. Marchesi <jose.marchesi@oracle.com>
5883
5884 PR build/22188
5885 * arm-tdep.c (arm_decode_misc_memhint_neon): Fix decoding of CPS
5886 and SETEND.
5887
5888 2017-10-05 Pedro Alves <palves@redhat.com>
5889
5890 * linux-nat.c (linux_child_follow_fork): When following the parent
5891 and detaching the child, consult the parent thread's architecture
5892 instead of the child's.
5893
5894 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
5895
5896 * ax.h: Do not include "doublest.h".
5897 (union agent_val): Remove.
5898
5899 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
5900
5901 * dfp.h (MAX_DECIMAL_STRING): Move to dfp.c.
5902 (decimal_to_string): Return std::string object.
5903 (decimal_from_string): Accept std::string object. Return bool.
5904 (decimal_from_integral, decimal_from_doublest): Remove.
5905 (decimal_from_longest): Add prototype.
5906 (decimal_from_ulongest): Likewise.
5907 (decimal_to_longest): Likewise.
5908 (decimal_from_doublest): Likewise.
5909 * dfp.c: Do not include "gdbtypes.h" or "value.h".
5910 (MAX_DECIMAL_STRING): Move here.
5911 (decimal_to_string): Return std::string object.
5912 (decimal_from_string): Accept std::string object. Return bool.
5913 (decimal_from_integral): Remove, replace by ...
5914 (decimal_from_longest, decimal_from_ulongest): ... these new functions.
5915 (decimal_to_longest): New function.
5916 (decimal_from_floating): Remove, replace by ...
5917 (decimal_from_doublest): ... this new function.
5918 (decimal_to_doublest): Update to new decimal_to_string interface.
5919
5920 * value.c (unpack_long): Use decimal_to_longest.
5921 * valops.c (value_cast): Use decimal_from_doublest instead of
5922 decimal_from_floating. Use decimal_from_[u]longest isntead of
5923 decimal_from_integral.
5924 * valarith.c (value_args_as_decimal): Likewise.
5925 * valprint.c (print_decimal_floating): Update to new
5926 decimal_to_string interface.
5927 * printcmd.c (printf_decfloat): Likewise.
5928 * c-exp.y (parse_number): Update to new decimal_from_string interface.
5929
5930 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
5931
5932 * doublest.h: Do not include "floatformat.h". Remove stale comments.
5933 * gdbtypes.c: Include "floatformat.h".
5934 * value.c: Likewise.
5935 * m68k-tdep.c: Likewise.
5936
5937 * findvar.c: Do not include "floatformat.h".
5938 * amd64-darwin-tdep.c: Likewise.
5939 * arm-linux-tdep.c: Likewise.
5940 * i386-darwin-tdep.c: Likewise.
5941 * i387-tdep.c: Likewise.
5942 * m68k-linux-tdep.c: Likewise.
5943 * mep-tdep.c: Likewise.
5944 * mips-tdep.c: Likewise.
5945 * nios2-tdep.c: Likewise.
5946 * s390-linux-tdep.c: Likewise.
5947 * sparc-obsd-tdep.c: Likewise.
5948 * sparc-tdep.c: Likewise.
5949 * sparc64-tdep.c: Likewise.
5950 * spu-tdep.c: Likewise.
5951 * tic6x-tdep.c: Likewise.
5952 * tilegx-tdep.c: Likewise.
5953 * vax-tdep.c: Likewise.
5954 * xstormy16-tdep.c: Likewise.
5955 * xtensa-tdep.c: Likewise.
5956
5957 * top.c: Do not include "doublest.h".
5958 * aarch64-tdep.c: Likewise.
5959 * alpha-tdep.c: Likewise.
5960 * arm-linux-tdep.c: Likewise.
5961 * m68k-linux-tdep.c: Likewise.
5962 * tilegx-tdep.c: Likewise.
5963 * xstormy16-tdep.c: Likewise.
5964
5965 2017-10-05 John Baldwin <jhb@FreeBSD.org>
5966
5967 * mips-fbsd-tdep.c (MIPS_INST_ADDIU_A0_SP_N32): Define.
5968 (mipsn32_fbsd_sigframe): Define.
5969 (mips_fbsd_init_abi): Install mipsn32_fbsd_sigframe unwinder
5970 for FreeBSD/mipsn32.
5971
5972 2017-10-05 John Baldwin <jhb@FreeBSD.org>
5973
5974 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_EHDRFLAGS and
5975 AT_HWCAP.
5976
5977 2017-10-05 Tristan Gingold <tgingold@free.fr>
5978
5979 * MAINTAINERS (Misc): Update my email address.
5980
5981 2017-10-04 Pedro Alves <palves@redhat.com>
5982
5983 * remote.c (get_remote_arch_state): New 'gdbarch' parameter. Use
5984 it instead of target_gdbarch.
5985 (get_remote_state, get_remote_packet_size): Adjust
5986 get_remote_arch_state calls, passing down target_gdbarch
5987 explicitly.
5988 (packet_reg_from_regnum, packet_reg_from_pnum): New parameter
5989 'gdbarch' and use it instead of target_gdbarch.
5990 (get_memory_packet_size): Adjust get_remote_arch_state calls,
5991 passing down target_gdbarch explicitly.
5992 (struct stop_reply) <arch>: New field.
5993 (remote_parse_stop_reply): Use the stopped thread's architecture,
5994 not the current inferior's. Save the architecture in the
5995 stop_reply.
5996 (process_stop_reply): Use the stop reply's architecture.
5997 (process_g_packet, remote_fetch_registers)
5998 (remote_prepare_to_store, store_registers_using_G)
5999 (remote_store_registers): Adjust get_remote_arch_state calls,
6000 using the regcache's architecture.
6001 (remote_get_trace_status): Adjust get_remote_arch_state calls,
6002 passing down target_gdbarch explicitly.
6003 * spu-multiarch.c (spu_thread_architecture): Defer to the target
6004 beneath instead of calling target_gdbarch.
6005 * target.c (default_thread_architecture): Use the specified
6006 inferior's architecture, instead of the current inferior's
6007 architecture (via target_gdbarch).
6008
6009 2017-10-04 Pedro Alves <palves@redhat.com>
6010
6011 * regcache.c (get_thread_arch_regcache): Remove null_ptid special
6012 case.
6013 (regcache_print): Handle !target_has_registers here instead.
6014
6015 2017-10-04 Pedro Alves <palves@redhat.com>
6016
6017 * frame.c (create_test_frame): Delete.
6018 * frame.h (create_test_frame): Delete.
6019 * gdbarch-selftests.c: Include gdbthread.h and target.h.
6020 (class regcache_test): Delete.
6021 (test_target_has_registers, test_target_has_stack)
6022 (test_target_has_memory, test_target_prepare_to_store)
6023 (test_target_store_registers): New functions.
6024 (test_target_ops): New class.
6025 (register_to_value_test): Error out if there's already a
6026 process_stratum (or higher) target pushed. Create a fuller mock
6027 environment, with mock target_ops, inferior, address space, thread
6028 and inferior_ptid.
6029 * progspace.c (struct address_space): Move to ...
6030 * progspace.h (struct address_space): ... here.
6031 * regcache.h (regcache::~regcache, regcache::raw_write)
6032 [GDB_SELF_TEST]: No longer virtual.
6033
6034 2017-10-04 Simon Marchi <simon.marchi@ericsson.com>
6035
6036 * mi/mi-main.c (list_available_thread_groups): Reverse filter logic.
6037
6038 2017-10-04 Pedro Alves <palves@redhat.com>
6039
6040 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Move code
6041 out of 'between TRY and CATCH'.
6042
6043 2017-10-04 Pedro Alves <palves@redhat.com>
6044
6045 * cli/cli-cmds.c (complete_command): Add missing END_CATCH.
6046 * common/common-exceptions.h (TRY): Open an outermost scope.
6047 Expand intro comment.
6048 (CATCH): Reindent.
6049 (END_CATCH): Close the outermost scope.
6050 * completer.c (complete_line_internal): Add missing END_CATCH.
6051
6052 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6053
6054 * NEWS (Changes since GDB 8.0): Add entry about new
6055 'set-cwd-on-gdbserver' feature.
6056 (New remote packets): Add entry for QSetWorkingDir.
6057 * common/common-inferior.h (set_inferior_cwd): New prototype.
6058 * infcmd.c (set_inferior_cwd): Remove "static".
6059 (show_cwd_command): Expand text to include remote debugging.
6060 * remote.c: Add PACKET_QSetWorkingDir.
6061 (remote_protocol_features) <QSetWorkingDir>: New entry for
6062 PACKET_QSetWorkingDir.
6063 (extended_remote_set_inferior_cwd): New function.
6064 (extended_remote_create_inferior): Call
6065 "extended_remote_set_inferior_cwd".
6066 (_initialize_remote): Call "add_packet_config_cmd" for
6067 QSetWorkingDir.
6068
6069 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6070
6071 * NEWS (New commands): Mention "set/show cwd".
6072 * cli/cli-cmds.c (_initialize_cli_cmds): Mention "set cwd" on
6073 "cd" command's help text.
6074 * common/common-inferior.h (get_inferior_cwd): New prototype.
6075 * infcmd.c (inferior_cwd_scratch): New global variable.
6076 (set_inferior_cwd): New function.
6077 (get_inferior_cwd): Likewise.
6078 (set_cwd_command): Likewise.
6079 (show_cwd_command): Likewise.
6080 (_initialize_infcmd): Add "set/show cwd" commands.
6081 * inferior.h (class inferior) <cwd>: New field.
6082 * nat/fork-inferior.c: Include "gdb_tilde_expand.h".
6083 (fork_inferior): Change inferior's cwd before its execution.
6084 * windows-nat.c (windows_create_inferior): Pass inferior's cwd
6085 to CreateProcess.
6086
6087 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6088
6089 * Makefile.in (SFILES): Add gdb_tilde_expand.c.
6090 (HFILES_NO_SRCDIR): Add gdb_tilde_expand.h.
6091 (COMMON_OBS): Add gdb_tilde_expand.o.
6092 * common/gdb_tilde_expand.c: New file.
6093 * common/gdb_tilde_expand.h: Likewise.
6094
6095 2017-10-03 Maciej W. Rozycki <macro@imgtec.com>
6096
6097 * gdbarch.sh (objfile): Remove duplicate declaration.
6098 * gdbarch.h: Regenerate.
6099
6100 2017-10-03 Tom Tromey <tom@tromey.com>
6101
6102 * utils.c (internal_vproblem): Use string_vprintf.
6103
6104 2017-10-03 Tom Tromey <tom@tromey.com>
6105
6106 * printcmd.c (info_symbol_command): Use std::string.
6107
6108 2017-10-03 Tom Tromey <tom@tromey.com>
6109
6110 * top.c (gdb_safe_append_history): Use std::string.
6111
6112 2017-10-03 Tom Tromey <tom@tromey.com>
6113
6114 * event-top.c (stdin_event_handler): Update.
6115 * main.c (captured_main_1): Update.
6116 * top.h (make_delete_ui_cleanup): Remove.
6117 (struct ui): Add constructor and destructor.
6118 (new_ui, delete_ui): Remove.
6119 * top.c (make_delete_ui_cleanup): Remove.
6120 (new_ui_command): Use std::unique_ptr.
6121 (delete_ui_cleanup): Remove.
6122 (ui::ui): Rename from new_ui. Update.
6123 (free_ui): Remove.
6124 (ui::~ui): Rename from delete_ui. Update.
6125
6126 2017-10-03 Tom Tromey <tom@tromey.com>
6127
6128 * symfile.c (load_progress): Use gdb::byte_vector.
6129
6130 2017-10-03 Tom Tromey <tom@tromey.com>
6131
6132 * mi/mi-main.c (mi_cmd_trace_frame_collected): Remove unused
6133 declaration.
6134 * printcmd.c (x_command): Remove unused declaration.
6135 * symfile.c (symbol_file_command): Remove unused declaration.
6136
6137 2017-10-03 Tom Tromey <tom@tromey.com>
6138
6139 * utils.c (internal_vproblem): Use std::string.
6140 (defaulted_query): Likewise.
6141
6142 2017-10-03 Tom Tromey <tom@tromey.com>
6143
6144 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Update.
6145 * top.c (execute_command_to_string): Update.
6146 * utils.c (make_cleanup_restore_page_info): Remove.
6147 (do_restore_page_info_cleanup): Remove.
6148 (set_batch_flag_and_restore_page_info):
6149 New.
6150 (make_cleanup_restore_page_info): Remove.
6151 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
6152 (~set_batch_flag_and_restore_page_info): New
6153 (make_cleanup_restore_uinteger): Remove.
6154 (make_cleanup_restore_integer): Remove.
6155 (struct restore_integer_closure): Remove.
6156 (restore_integer): Remove.
6157 * utils.h (struct set_batch_flag_and_restore_page_info): New
6158 class.
6159 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
6160 (make_cleanup_restore_page_info): Remove.
6161 (make_cleanup_restore_uinteger) Remove.
6162 (make_cleanup_restore_integer) Remove.
6163
6164 2017-10-03 Tom Tromey <tom@tromey.com>
6165
6166 * record-full.h (record_full_gdb_operation_disable_set): Return
6167 scoped_restore_tmpl<int>.
6168 * infrun.c (adjust_pc_after_break): Update.
6169 (handle_signal_stop): Update.
6170 * record-full.c (record_full_gdb_operation_disable_set): Return
6171 scoped_restore_tmpl<int>.
6172 (record_full_wait_1, record_full_insert_breakpoint)
6173 (record_full_remove_breakpoint, record_full_save)
6174 (record_full_goto_insn): Update.
6175
6176 2017-10-02 Tom Tromey <tom@tromey.com>
6177
6178 PR rust/22236:
6179 * rust-lang.c (rust_val_print_str): New function.
6180 (val_print_struct): Call it.
6181 (rust_subscript): Preserve name of slice type.
6182
6183 2017-10-02 Tom Tromey <tom@tromey.com>
6184
6185 * rust-lang.c (rust_subscript): Handle slices in
6186 EVAL_AVOID_SIDE_EFFECTS case.
6187
6188 2017-10-02 Tom Tromey <tom@tromey.com>
6189
6190 * rust-lang.c (rust_slice_type_p): Recognize &str as a slice type.
6191
6192 2017-10-02 Tom Tromey <tom@tromey.com>
6193
6194 * rust-lang.h (rust_slice_type): Add "extern".
6195
6196 2017-10-02 Tom Tromey <tom@tromey.com>
6197 Pedro Alves <palves@redhat.com>
6198
6199 * ada-lang.h (ada_exc_info::operator<): Make const.
6200 (ada_exc_info::operator==): Make const.
6201 * ada-lang.c (ada_exc_info::operator<, ada_exc_info::operator==):
6202 Make const.
6203
6204 2017-09-29 Tom Tromey <tom@tromey.com>
6205
6206 * target.c (read_whatever_is_readable): Change type of "result".
6207 Update.
6208 (free_memory_read_result_vector): Remove.
6209 (read_memory_robust): Change return type. Update.
6210 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update. Use
6211 bin2hex, std::string.
6212 * target.h (memory_read_result_s): Remove typedef.
6213 (free_memory_read_result_vector): Remove.
6214 (read_memory_robust): Return std::vector.
6215
6216 2017-09-29 Tom Tromey <tom@tromey.com>
6217
6218 * mi/mi-main.c (captured_mi_execute_command): Use scope_restore.
6219
6220 2017-09-29 Tom Tromey <tom@tromey.com>
6221
6222 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Update.
6223 * ada-lang.h (struct ada_exc_info): Remove typedef. Declare
6224 operator< and operator==.
6225 (ada_exceptions_list): Return a std::vector.
6226 * ada-lang.c (ada_exc_info::operator<): Rename from
6227 compare_ada_exception_info.
6228 (ada_exc_info::operator==): New.
6229 (sort_remove_dups_ada_exceptions_list): Change type of
6230 "exceptions".
6231 (ada_add_standard_exceptions, ada_add_exceptions_from_frame)
6232 (ada_add_global_exceptions): Likewise.
6233 (ada_exceptions_list_1): Return a std::vector.
6234 (ada_exceptions_list): Likewise.
6235
6236 2017-09-29 Tom Tromey <tom@tromey.com>
6237
6238 * mi/mi-main.c (struct print_one_inferior_data) <inferiors>: Now a
6239 'std::set *'.
6240 (print_one_inferior): Update.
6241 (free_vector_of_ints): Remove.
6242 (list_available_thread_groups): Change "ids" to std::set.
6243 (mi_cmd_list_thread_groups): Update.
6244 (struct collect_cores_data) <core>: Now a std::set.
6245 (collect_cores): Update.
6246 (unique): Remove.
6247 (print_one_inferior): Update.
6248
6249 2017-09-29 Tom Tromey <tom@tromey.com>
6250
6251 * mi/mi-main.c (mi_execute_cli_command): Use std::string.
6252 (mi_execute_async_cli_command): Likewise.
6253 (mi_cmd_trace_frame_collected): Use field_fmt.
6254
6255 2017-09-29 Tom Tromey <tom@tromey.com>
6256
6257 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Use
6258 gdb::byte_vector.
6259
6260 2017-09-29 Tom Tromey <tom@tromey.com>
6261
6262 * mi/mi-parse.c (mi_parse): Remove unused declaration.
6263
6264 2017-09-29 Tom Tromey <tom@tromey.com>
6265
6266 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Don't copy "oarg".
6267
6268 2017-09-29 Tom Tromey <tom@tromey.com>
6269
6270 * varobj.h (varobj_gen_name): Return std::string.
6271 * varobj.c (varobj_gen_name): Return std::string.
6272 * mi/mi-cmd-var.c (mi_cmd_var_create): Use std::string.
6273 (mi_cmd_var_delete): Don't copy "name".
6274
6275 2017-09-29 Tom Tromey <tom@tromey.com>
6276
6277 * mi/mi-cmd-break.c (mi_argv_to_format): Return std::string.
6278 (mi_cmd_break_insert_1): Update.
6279
6280 2017-09-29 Tom Tromey <tom@tromey.com>
6281
6282 * target.h (make_scoped_defer_target_commit_resume): Update.
6283 * target.c (make_scoped_defer_target_commit_resume): Rename from
6284 make_cleanup_defer_target_commit_resume. Return a
6285 scoped_restore.
6286 * infrun.c (proceed): Use make_scoped_defer_target_commit_resume.
6287
6288 2017-09-29 Tom Tromey <tom@tromey.com>
6289
6290 * main.c (captured_main_1): Remove unused declaration.
6291 * spu-multiarch.c (parse_spufs_run): Remove unused declaration.
6292
6293 2017-09-29 Tom Tromey <tom@tromey.com>
6294
6295 * symtab.c (search_symbols): Remove unused outer cleanup.
6296 (make_source_files_completion_list): Remove unused declaration.
6297
6298 2017-09-29 Tom Tromey <tom@tromey.com>
6299
6300 * mt-tdep.c (mt_push_dummy_call): Use gdb::byte_vector.
6301
6302 2017-09-29 Tom Tromey <tom@tromey.com>
6303
6304 * xstormy16-tdep.c (xstormy16_push_dummy_call): Use
6305 gdb::byte_vector.
6306
6307 2017-09-29 Tom Tromey <tom@tromey.com>
6308
6309 * complaints.c (vcomplaint): Use std::string.
6310
6311 2017-09-29 Tom Tromey <tom@tromey.com>
6312
6313 * tracepoint.c (trace_variable_command): Use std::string.
6314 (encode_actions_1): Remove unused declarations.
6315 (create_tsv_from_upload): Use std::string.
6316
6317 2017-09-29 Tom Tromey <tom@tromey.com>
6318
6319 * cp-support.c (gdb_demangle): Use std::string.
6320
6321 2017-09-29 Tom Tromey <tom@tromey.com>
6322
6323 * stack.c (parse_frame_specification): Use std::string
6324 (info_frame_command): Use gdb::unique_xmalloc_ptr.
6325
6326 2017-09-29 Tom Tromey <tom@tromey.com>
6327
6328 * tilegx-tdep.c (tilegx_push_dummy_call): Use gdb::byte_vector.
6329
6330 2017-09-29 Tom Tromey <tom@tromey.com>
6331
6332 * utils.c (vfprintf_maybe_filtered): Use std::string.
6333 (vfprintf_unfiltered): Likewise.
6334
6335 2017-09-29 Tom Tromey <tom@tromey.com>
6336
6337 * event-top.c (top_level_prompt): Return std::string.
6338 (display_gdb_prompt): Update.
6339
6340 2017-09-29 Tom Tromey <tom@tromey.com>
6341
6342 * unittests/common-utils-selftests.c (format): New function.
6343 (string_vprintf_tests): New function.
6344 (_initialize_common_utils_selftests): Register new tests.
6345 * common/common-utils.c (string_vprintf): New function.
6346 * common/common-utils.h (string_vprintf): Declare.
6347
6348 2017-09-29 Pedro Alves <palves@redhat.com>
6349
6350 * common/rsp-low.c (unpack_varlen_hex): Constify.
6351 * common/rsp-low.h (unpack_varlen_hex): Constify.
6352 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
6353 Constify.
6354 * remote.c (remote_set_permissions, read_ptid)
6355 (remote_current_thread, remote_get_threads_with_qthreadinfo)
6356 (remote_static_tracepoint_marker_at)
6357 (remote_static_tracepoint_markers_by_strid)
6358 (stop_reply_extract_thread, remote_parse_stop_reply): Constify.
6359 * tracepoint.c (parse_trace_status, parse_tracepoint_status)
6360 (parse_tracepoint_definition, parse_tsv_definition)
6361 (parse_static_tracepoint_marker_definition): Constify.
6362 * tracepoint.h (parse_static_tracepoint_marker_definition)
6363 (parse_trace_status, parse_tracepoint_status)
6364 (parse_tracepoint_definition, parse_tsv_definition): Constify.
6365
6366 2017-09-29 Pedro Alves <palves@redhat.com>
6367
6368 * remote.c (target_buf, target_buf_size): Delete.
6369 (remote_get_noisy_reply): Remove buf_p and sizeof_buf parameters.
6370 Use the connection's packet buffer instead.
6371 All callers adjusted.
6372 (_initialize_remote): Remove references to target_buf and
6373 target_buf_size.
6374
6375 2017-09-28 Pedro Alves <palves@redhat.com>
6376
6377 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
6378 unittests/common-utils-selftests.c.
6379 (SUBDIR_UNITTESTS_OBS): Add common-utils-selftests.o.
6380 (COMMON_OBS): Remove utils-selftests.o.
6381 * utils-selftests.c: Move to ...
6382 * unittests/common-utils-selftests.c: ... here and rename self
6383 test to "string_printf".
6384
6385 2017-09-28 Alexander Shaposhnikov <alexander.v.shaposhnikov@gmail.com> (tiny patch)
6386
6387 * dwarf2read.c (open_and_init_dwp_file): Protect against dwp_file
6388 having NULL cus or tus.
6389
6390 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
6391
6392 * arm-tdep.c: (convert_from_extended): Remove.
6393 (convert_to_extended): Likewise.
6394 (arm_extract_return_value): Use convert_typed_floating.
6395 (arm_store_return_value): Likewise.
6396
6397 * sh-tdep.h (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
6398 * sh-tdep.c: Do not include "floatformat.h".
6399 (sh_littlebyte_bigword_type): New function.
6400 (sh_register_convert_to_virtual): Use convert_typed_floating.
6401 (sh_register_convert_to_raw): Likewise.
6402 * sh64-tdep.c: (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
6403 (sh64_littlebyte_bigword_type): New function.
6404 (sh64_extract_return_value): Use convert_typed_floating.
6405 (sh64_register_convert_to_virtual): Likewise.
6406 (sh64_register_convert_to_raw): Likewise.
6407
6408 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
6409
6410 * doublest.h (floatformat_from_type): Move to gdbtypes.h.
6411 * doublest.c (floatformat_from_type): Move to gdbtypes.c.
6412
6413 * gdbtypes.h (union type_specific): Make field floatformat hold
6414 just a single struct floatformat, not an array.
6415 (floatformat_from_type): Move here.
6416 * gdbtypes.c (floatformat_from_type): Move here. Update to
6417 changed TYPE_FLOATFORMAT definition.
6418 (verify_floatformat): Update to changed TYPE_FLOATFORMAT.
6419 (recursive_dump_type): Likewise.
6420 (init_float_type): Install correct floatformat for byte order.
6421 (arch_float_type): Likewise.
6422
6423 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
6424
6425 * gdbtypes.c (init_type): Change incoming argument from
6426 length-in-bytes to length-in-bits. Assert length is a
6427 multiple of TARGET_CHAR_BITS.
6428 (arch_type, arch_flags_type): Likewise.
6429 (init_integer_type): Update call to init_type.
6430 (init_character_type): Likewise.
6431 (init_boolean_type): Likewise.
6432 (init_float_type): Likewise.
6433 (init_decfloat_type): Likewise.
6434 (init_complex_type): Likewise.
6435 (init_pointer_type): Likewise.
6436 (objfile_type): Likewise.
6437 (arch_integer_type): Update call to arch_type.
6438 (arch_character_type): Likewise.
6439 (arch_boolean_type): Likewise.
6440 (arch_float_type): Likewise.
6441 (arch_decfloat_type): Likewise.
6442 (arch_complex_type): Likewise.
6443 (arch_pointer_type): Likewise.
6444 (gdbtypes_post_init): Likewise.
6445
6446 * dwarf2read.c (dwarf2_init_float_type): Update call to init_type.
6447 (read_base_type): Likewise.
6448 * mdebugread.c (basic_type): Likewise.
6449 * stabsread.c (dbx_init_float_type): Likewise.
6450 (rs6000_builtin_type): Likewise.
6451 (read_range_type): Likewise. Also, fix call to init_integer_type
6452 with erroneous length argument.
6453
6454 * ada-lang.c (ada_language_arch_info): Update call to arch_type.
6455 * d-lang.c (build_d_types): Likewise.
6456 * f-lang.c (build_fortran_types): Likewise.
6457 * go-lang.c (build_go_types): Likewise.
6458 * opencl-lang.c (build_opencl_types): Likewise.
6459 * jit.c (finalize_symtab): Likewise.
6460 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
6461 (build_std_type_info_type): Likewise.
6462 * target-descriptions.c (tdesc_gdb_type): Likewise. Also,
6463 update call to arch_flags_type.
6464
6465 * linux-tdep.c (linux_get_siginfo_type_with_fields): Update call to
6466 arch_type.
6467 * fbsd-tdep.c (fbsd_get_siginfo_type): Likewise.
6468 * windows-tdep.c (windows_get_tlb_type): Likewise.
6469
6470 * avr-tdep.c (avr_gdbarch_init): Update call to arch_type.
6471 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
6472 * m32c-tdep.c (make_types): Likewise.
6473 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
6474 (rl78_psw_type): Update call to arch_flags_type.
6475 * m68k-tdep.c (m68k_ps_type): Update call to arch_flags_type.
6476 * rx-tdep.c (rx_psw_type): Likewise.
6477 (rx_fpsw_type): Likewise.
6478 * sparc-tdep.c (sparc_psr_type): Likewise.
6479 (sparc_fsr_type): Likewise.
6480 * sparc64-tdep.c (sparc64_pstate_type): Likewise.
6481 (sparc64_ccr_type): Likewise.
6482 (sparc64_fsr_type): Likewise.
6483 (sparc64_fprs_type): Likewise.
6484
6485 2017-09-27 Tom Tromey <tom@tromey.com>
6486
6487 * findcmd.c (find_command): Constify.
6488
6489 2017-09-27 Tom Tromey <tom@tromey.com>
6490
6491 * ada-tasks.c (task_command_1, task_command): Constify.
6492
6493 2017-09-27 Tom Tromey <tom@tromey.com>
6494
6495 * symtab.c (maintenance_print_symbol_cache)
6496 (maintenance_flush_symbol_cache)
6497 (maintenance_print_symbol_cache_statistics): Constify.
6498
6499 2017-09-27 Tom Tromey <tom@tromey.com>
6500
6501 * inferior.c (detach_inferior_command, kill_inferior_command)
6502 (inferior_command): Constify.
6503
6504 2017-09-27 Tom Tromey <tom@tromey.com>
6505
6506 * regcache.c (regcache_print, maintenance_print_registers)
6507 (maintenance_print_raw_registers)
6508 (maintenance_print_cooked_registers)
6509 (maintenance_print_register_groups)
6510 (maintenance_print_remote_registers): Constify.
6511
6512 2017-09-27 Tom Tromey <tom@tromey.com>
6513
6514 * printcmd.c (map_display_numbers, undisplay_command)
6515 (enable_disable_display_command, enable_display_command)
6516 (disable_display_command): Constify.
6517
6518 2017-09-27 Tom Tromey <tom@tromey.com>
6519
6520 * breakpoint.h (delete_command): Don't declare.
6521 * breakpoint.c (delete_command, enable_once_command)
6522 (enable_count_command, enable_delete_command, breakpoint_1)
6523 (maintenance_info_breakpoints, stopin_command, stopat_command)
6524 (delete_command, delete_trace_command, save_breakpoints)
6525 (save_breakpoints_command, save_tracepoints_command): Constify.
6526
6527 2017-09-27 Tom Tromey <tom@tromey.com>
6528
6529 * macrocmd.c (macro_expand_command, macro_expand_once_command)
6530 (skip_ws, extract_identifier, macro_define_command)
6531 (macro_undef_command, macro_list_command): Constify.
6532
6533 2017-09-27 Tom Tromey <tom@tromey.com>
6534
6535 * infcmd.c (environment_info, set_environment_command)
6536 (unset_environment_command, path_info, info_proc_cmd_1)
6537 (info_proc_cmd_mappings, info_proc_cmd_stat)
6538 (info_proc_cmd_status, info_proc_cmd_cwd, info_proc_cmd_cmdline)
6539 (info_proc_cmd_exe, info_proc_cmd_all): Constify.
6540
6541 2017-09-27 Tom Tromey <tom@tromey.com>
6542
6543 * i386-tdep.c (i386_mpx_info_bounds, i386_mpx_set_bounds):
6544 Constify.
6545
6546 2017-09-27 Tom Tromey <tom@tromey.com>
6547
6548 * symfile-mem.c (add_symbol_file_from_memory_command): Constify.
6549
6550 2017-09-27 Tom Tromey <tom@tromey.com>
6551
6552 * demangle.c (demangle_command): Constify.
6553
6554 2017-09-27 Tom Tromey <tom@tromey.com>
6555
6556 * progspace.c (maintenance_info_program_spaces_command):
6557 Constify.
6558
6559 2017-09-27 Tom Tromey <tom@tromey.com>
6560
6561 * compile/compile.c (check_raw_argument, compile_file_command)
6562 (compile_code_command, compile_print_command): Constify.
6563
6564 2017-09-27 Tom Tromey <tom@tromey.com>
6565
6566 * reggroups.c (maintenance_print_reggroups): Constify.
6567
6568 2017-09-27 Tom Tromey <tom@tromey.com>
6569
6570 * dwarf2read.c (save_gdb_index_command): Constify.
6571
6572 2017-09-27 Tom Tromey <tom@tromey.com>
6573
6574 * stap-probe.c (info_probes_stap_command): Constify.
6575
6576 2017-09-27 Tom Tromey <tom@tromey.com>
6577
6578 * fork-child.c (unset_exec_wrapper_command): Constify.
6579
6580 2017-09-27 Tom Tromey <tom@tromey.com>
6581
6582 * btrace.c (get_uint, get_context_size, no_chunk)
6583 (maint_btrace_packet_history_cmd)
6584 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
6585 (maint_info_btrace_cmd): Constify.
6586
6587 2017-09-27 Tom Tromey <tom@tromey.com>
6588
6589 * reverse.c (delete_bookmark_command): Constify.
6590
6591 2017-09-27 Tom Tromey <tom@tromey.com>
6592
6593 * remote.c (set_memory_packet_size)
6594 (set_memory_write_packet_size, show_memory_write_packet_size)
6595 (set_memory_read_packet_size, show_memory_read_packet_size)
6596 (compare_sections_command, packet_command, remote_put_command)
6597 (remote_get_command, remote_delete_command): Constify.
6598
6599 2017-09-27 Tom Tromey <tom@tromey.com>
6600
6601 * mips-tdep.c (show_mipsfpu_command, set_mipsfpu_single_command)
6602 (set_mipsfpu_double_command, set_mipsfpu_none_command)
6603 (set_mipsfpu_auto_command): Constify.
6604
6605 2017-09-27 Tom Tromey <tom@tromey.com>
6606
6607 * cli/cli-cmds.h (cd_command): Constify.
6608 * cli/cli-cmds.c (cd_command): Constify.
6609
6610 2017-09-27 Tom Tromey <tom@tromey.com>
6611
6612 * thread.c (thread_name_command, thread_find_command): Constify.
6613
6614 2017-09-27 Tom Tromey <tom@tromey.com>
6615
6616 * probe.c (enable_probes_command, disable_probes_command):
6617 Constify.
6618
6619 2017-09-27 Tom Tromey <tom@tromey.com>
6620
6621 * symfile.c (symbol_file_command): Constify.
6622 * gdbcore.h (deprecated_file_changed_hook): Constify.
6623 * exec.c (deprecated_file_changed_hook, exec_file_command)
6624 (file_command): Constify.
6625 * defs.h (symbol_file_command): Constify.
6626
6627 2017-09-27 Tom Tromey <tom@tromey.com>
6628
6629 * remote-fileio.c (set_system_call_allowed)
6630 (show_system_call_allowed): Constify.
6631
6632 2017-09-27 Tom Tromey <tom@tromey.com>
6633
6634 * tracepoint.c (delete_trace_variable_command)
6635 (tfind_end_command, tfind_start_command, tfind_pc_command)
6636 (tfind_tracepoint_command, tfind_line_command)
6637 (tfind_range_command, tfind_outside_command): Constify.
6638
6639 2017-09-27 Tom Tromey <tom@tromey.com>
6640
6641 * ax-gdb.c (maint_agent_printf_command, agent_command)
6642 (agent_eval_command): Constify.
6643
6644 2017-09-27 Tom Tromey <tom@tromey.com>
6645
6646 * tracepoint.c (info_scope_command): Constify.
6647 * python/python.c (gdbpy_decode_line): Constify.
6648 * python/py-breakpoint.c (bppy_init): Constify.
6649 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Constify.
6650 * location.h: (new_linespec_location)
6651 (string_to_event_location_basic, string_to_event_location):
6652 Constify.
6653 * location.c (new_linespec_location)
6654 (string_to_event_location_basic, string_to_event_location):
6655 Constify.
6656 * linespec.h (decode_line_with_current_source)
6657 (decode_line_with_last_displayed, linespec_lex_to_end): Constify.
6658 * linespec.c (linespec_lex_to_end)
6659 (decode_line_with_current_source)
6660 (decode_line_with_last_displayed): Constify.
6661 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x):
6662 Constify.
6663 * cli/cli-cmds.c (edit_command, list_command): Constify.
6664 * breakpoint.h (until_break_command, watch_command_wrapper)
6665 (awatch_command_wrapper, rwatch_command_wrapper)
6666 (init_ada_exception_breakpoint): Constify.
6667 * breakpoint.c (break_command_1, dprintf_command)
6668 (break_range_command, watch_command_wrapper)
6669 (rwatch_command_wrapper, awatch_command_wrapper)
6670 (until_break_command, init_ada_exception_breakpoint)
6671 (strace_marker_create_sals_from_location, trace_command)
6672 (ftrace_command, strace_command, struct tracepoint): Constify.
6673 * ax-gdb.c (agent_command_1): Constify.
6674 * ada-lang.c (ada_exception_sal): Constify.
6675
6676 2017-09-27 Tom Tromey <tom@tromey.com>
6677
6678 * record.c (cmd_record_delete, cmd_record_stop, cmd_record_save)
6679 (cmd_record_goto_begin, cmd_record_goto_end, get_insn_number)
6680 (get_context_size, no_chunk, get_insn_history_modifiers)
6681 (cmd_record_insn_history, get_call_history_modifiers)
6682 (cmd_record_call_history): Constify.
6683
6684 2017-09-27 Tom Tromey <tom@tromey.com>
6685
6686 * source.c (show_substitute_path_command)
6687 (unset_substitute_path_command, set_substitute_path_command):
6688 Constify.
6689
6690 2017-09-27 Tom Tromey <tom@tromey.com>
6691
6692 * typeprint.c (maintenance_print_type): Constify.
6693 * maint.c (maintenance_dump_me, maintenance_demangle)
6694 (maintenance_time_display, maintenance_info_sections)
6695 (maintenance_print_statistics, maintenance_deprecate)
6696 (maintenance_undeprecate): Constify.
6697 (maintenance_do_deprecate): Constify. Use std::string.
6698 (maintenance_selftest): Constify.
6699 * gdbtypes.h (maintenance_print_type): Constify.
6700
6701 2017-09-27 Tom Tromey <tom@tromey.com>
6702
6703 * hppa-tdep.c (unwind_command): Constify.
6704
6705 2017-09-27 Tom Tromey <tom@tromey.com>
6706
6707 * target-descriptions.c (unset_tdesc_filename_cmd)
6708 (maint_print_c_tdesc_cmd, maintenance_check_xml_descriptions):
6709 Constify.
6710
6711 2017-09-27 Tom Tromey <tom@tromey.com>
6712
6713 * dummy-frame.c (maintenance_print_dummy_frames): Constify.
6714
6715 2017-09-27 Tom Tromey <tom@tromey.com>
6716
6717 * tui/tui.c (tui_enable_command, tui_disable_command): Constify.
6718
6719 2017-09-27 Tom Tromey <tom@tromey.com>
6720
6721 * tui/tui-regs.c (tui_reg_command): Constify.
6722
6723 2017-09-27 Tom Tromey <tom@tromey.com>
6724
6725 * skip.c (skip_file_command, skip_function_command)
6726 (skip_enable_command, skip_disable_command, skip_delete_command):
6727 Constify.
6728
6729 2017-09-27 Tom Tromey <tom@tromey.com>
6730
6731 * record-btrace.c (cmd_record_btrace_bts_start)
6732 (cmd_record_btrace_pt_start): Constify.
6733
6734 2017-09-27 Tom Tromey <tom@tromey.com>
6735
6736 * symmisc.c (maintenance_print_symbols)
6737 (maintenance_print_msymbols, maintenance_print_objfiles)
6738 (maintenance_info_symtabs, maintenance_check_symtabs)
6739 (maintenance_expand_symtabs, maintenance_info_line_tables):
6740 Constify.
6741
6742 2017-09-27 Tom Tromey <tom@tromey.com>
6743
6744 * top.c (new_ui_command): Constify.
6745
6746 2017-09-27 Tom Tromey <tom@tromey.com>
6747
6748 * symfile.c (add_symbol_file_command)
6749 (remove_symbol_file_command, list_overlays_command)
6750 (map_overlay_command, unmap_overlay_command)
6751 (overlay_auto_command, overlay_manual_command)
6752 (overlay_off_command, overlay_load_command): Constify.
6753
6754 2017-09-27 Tom Tromey <tom@tromey.com>
6755
6756 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
6757 (info_spu_mailbox_command, info_spu_dma_command)
6758 (info_spu_proxydma_command): Constify.
6759
6760 2017-09-27 Tom Tromey <tom@tromey.com>
6761
6762 * cli/cli-logging.c (set_logging_on, set_logging_off): Constify.
6763
6764 2017-09-27 Tom Tromey <tom@tromey.com>
6765
6766 * cli/cli-script.c (user_defined_command): Constify.
6767
6768 2017-09-27 Tom Tromey <tom@tromey.com>
6769
6770 * cli/cli-dump.c (dump_memory_command, dump_value_command)
6771 (dump_srec_memory, dump_srec_value, dump_ihex_memory)
6772 (dump_ihex_value, dump_verilog_memory, dump_verilog_value)
6773 (dump_tekhex_memory, dump_tekhex_value, dump_binary_memory)
6774 (dump_binary_value, append_binary_memory, append_binary_value):
6775 Constify.
6776 (struct dump_context) <func>: Constify.
6777 (add_dump_command): Update.
6778
6779 2017-09-27 Tom Tromey <tom@tromey.com>
6780
6781 * cli/cli-cmds.c (show_version, show_configuration)
6782 (source_command, show_user): Constify.
6783
6784 2017-09-27 Tom Tromey <tom@tromey.com>
6785
6786 * target.c (maintenance_print_target_stack): Constify.
6787
6788 2017-09-27 Tom Tromey <tom@tromey.com>
6789
6790 * interps.c (interpreter_exec_cmd): Constify.
6791
6792 2017-09-27 Tom Tromey <tom@tromey.com>
6793
6794 * record-full.c (cmd_record_full_restore): Constify.
6795
6796 2017-09-27 Tom Tromey <tom@tromey.com>
6797
6798 * memattr.c (enable_mem_command, disable_mem_command)
6799 (delete_mem_command): Constify.
6800
6801 2017-09-27 Tom Tromey <tom@tromey.com>
6802
6803 * value.c (show_convenience): Constify.
6804
6805 2017-09-27 Tom Tromey <tom@tromey.com>
6806
6807 * gdbcore.h (core_file_command): Update.
6808 * corefile.c (core_file_command): Constify.
6809
6810 2017-09-27 Tom Tromey <tom@tromey.com>
6811
6812 * user-regs.c (maintenance_print_user_registers): Constify.
6813
6814 2017-09-27 Tom Tromey <tom@tromey.com>
6815
6816 * cp-namespace.c (maintenance_cplus_namespace): Constify.
6817
6818 2017-09-27 Tom Tromey <tom@tromey.com>
6819
6820 * cp-support.c (first_component_command): Constify.
6821
6822 2017-09-27 Tom Tromey <tom@tromey.com>
6823
6824 * psymtab.c (maintenance_print_psymbols)
6825 (maintenance_info_psymtabs, maintenance_check_psymtabs):
6826 Constify.
6827
6828 2017-09-27 Tom Tromey <tom@tromey.com>
6829
6830 * windows-tdep.c (display_tib): Constify.
6831
6832 2017-09-27 Tom Tromey <tom@tromey.com>
6833
6834 * linux-fork.c (delete_checkpoint_command)
6835 (detach_checkpoint_command): Constify.
6836
6837 2017-09-27 Tom Tromey <tom@tromey.com>
6838
6839 * cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify.
6840
6841 2017-09-27 Tom Tromey <tom@tromey.com>
6842
6843 * arc-tdep.c (dump_arc_instruction_command): Constify.
6844
6845 2017-09-27 Tom Tromey <tom@tromey.com>
6846
6847 * valprint.c (set_radix, show_radix): Constify.
6848
6849 2017-09-27 Tom Tromey <tom@tromey.com>
6850
6851 * dtrace-probe.c (info_probes_dtrace_command): Constify.
6852
6853 2017-09-27 Tom Tromey <tom@tromey.com>
6854
6855 * command.h (not_just_help_class_command): Update.
6856 * cli/cli-decode.h (not_just_help_class_command): Update.
6857 * cli/cli-decode.c (not_just_help_class_command): Constify.
6858
6859 2017-09-27 Tom Tromey <tom@tromey.com>
6860
6861 * gdb_bfd.c (maintenance_info_bfds): Constify.
6862
6863 2017-09-27 Tom Tromey <tom@tromey.com>
6864
6865 * cli/cli-decode.c (add_cmd, set_cmd_cfunc): New function
6866 overloads.
6867 (do_add_cmd): Rename from add_cmd. Don't call set_cmd_cfunc.
6868 (do_const_cfunc): New function.
6869 (cmd_cfunc_eq): New overload.
6870 (cli_user_command_p): Check do_const_cfunc.
6871 * cli/cli-decode.h (struct cmd_list_element) <function>: New field
6872 const_cfunc.
6873 * command.h (add_cmd): Add const overload and no-function
6874 overload.
6875 (set_cmd_cfunc): Add const overload.
6876 (cmd_const_cfunc_ftype): Declare.
6877 (cmd_cfunc_eq): Add const overload.
6878 * breakpoint.c, cli-cmds.c, cli-dump.c, guile/scm-cmd.c,
6879 python/py-cmd.c, target.c, tracepoint.c: Use no-function add_cmd
6880 overload.
6881
6882 2017-09-27 Tom Tromey <tom@tromey.com>
6883
6884 * macroexp.c (get_next_token_for_substitution): New function.
6885 (substitute_args): Call it. Check for __VA_OPT__.
6886
6887 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
6888 Pedro Alves <palves@redhat.com>
6889
6890 * dwarf2read.c (dwarf2_cu): Remove field producer_is_icc and add
6891 producer_is_icc_lt_14.
6892 (producer_is_icc_lt_14): New function.
6893 (check_producer): Add code for checking version of ICC.
6894 (producer_is_icc): Move to producer.c.
6895 (read_structure_type): Restrict ICC workaround to ICC<14.
6896 * producer.c: Include selftest.h.
6897 (producer_is_icc, producer_parsing_tests, _initialize_producer):
6898 New functions.
6899 * producer.h (producer_is_icc): New declaration.
6900
6901 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
6902
6903 * Makefile.in (SFILES): Add producer.c.
6904 (COMMON_OBS): Add producer.o
6905 * amd64-tdep.c (producer.h): Add new include.
6906 * dwarf2read.c (producer.h): Add new include.
6907 * producer.c: New file.
6908 * producer.h: New file.
6909 * utils.c (producer_is_gcc, producer_is_gcc_ge_4): Move to
6910 producer.c.
6911 * utils.h (producer_is_gcc, producer_is_gcc_ge_4): Move to
6912 producer.h.
6913
6914 2017-09-26 Matthias Klose <doko@ubuntu.com>
6915
6916 * configure.ac: Search ncursesw before ncurses.
6917 Check ncursesw/ncurses.h before ncurses/ncurses.h.
6918 * gdb_curses.h: Include <ncursesw/ncurses.h>
6919 * config.in, configure: Regenerate.
6920
6921 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6922
6923 PR gdb/22185
6924 * configure.host <*-*-solaris2.[01], *-*-solaris2.[2-9]*>: Mark as
6925 obsolete.
6926 Use gdb_host sol2 for i[34567]86-*-solaris2*, x86_64-*-solaris2*.
6927 Remove i386sol2 support.
6928 * configure.nat <i386sol2>: Remove.
6929 <sol2-64>: Fold into ...
6930 <sol2>: ... this.
6931 Move common settings to default section.
6932 Add sol-thread.o.
6933 * configure.tgt <i[34567]86-*-solaris2.1[0-9]*,
6934 x86_64-*-solaris2.1[0-9]*>: Rename to ...
6935 <i[34567]86-*-solaris2*, x86_64-*-solaris2*>: ... this.
6936 <i[34567]86-*-solaris*>: Remove.
6937 <sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*>: Remove.
6938
6939 * configure.ac: Remove wctype in libw check.
6940 (_MSE_INT_H): Don't define on Solaris 7-9.
6941 <solaris*>: Remove libthread_db.so.1 check.
6942 * configure: Regenerate.
6943 * config.in: Regenerate.
6944
6945 * proc-service.c: Remove PROC_SERVICE_IS_OLD handling.
6946 (gdb_ps_prochandle_t, gdb_ps_read_buf_t, gdb_ps_write_buf_t)
6947 (gdb_ps_size_t): Remove.
6948 Use base types in users.
6949 * sol-thread.c: Likewise, also for gdb_ps_addr_t.
6950
6951 * NEWS (Changes since GDB 8.0): Document Solaris 2.0-9 removal.
6952
6953 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6954
6955 PR build/22206
6956 * sparc64-tdep.c (adi_tag_fd): Print pid as long.
6957 (adi_is_addr_mapped): Likewise.
6958 (PSR_ICC): Don't redefine.
6959 (PSR_IMPL): Likewise.
6960
6961 2017-09-25 Tom Tromey <tom@tromey.com>
6962
6963 * regcache.c (regcache::dump): Use string_printf.
6964
6965 2017-09-25 Tom Tromey <tom@tromey.com>
6966
6967 * regcache.c (class regcache_invalidator): New.
6968 (struct register_to_invalidate): Remove.
6969 (make_cleanup_regcache_invalidate): Remove.
6970 (regcache::raw_write): Use regcache_invalidator.
6971
6972 2017-09-25 Tom Tromey <tom@tromey.com>
6973
6974 * spu-tdep.c (spu2ppu_sniffer): Update.
6975 * regcache.h (make_cleanup_regcache_xfree): Don't declare.
6976 * regcache.c (do_regcache_xfree, make_cleanup_regcache_xfree):
6977 Remove.
6978 * ppc-linux-tdep.c (ppu2spu_sniffer): Update.
6979 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Update.
6980 * frame.h (frame_save_as_regcache): Return std::unique_ptr.
6981 * frame.c (frame_save_as_regcache): Return std::unique_ptr.
6982 (frame_pop): Update.
6983
6984 2017-09-25 Tom Tromey <tom@tromey.com>
6985
6986 * spu-tdep.c (spu2ppu_dealloc_cache): Use delete.
6987 * regcache.h (regcache_xfree): Don't declare.
6988 * regcache.c (regcache_xfree): Remove.
6989 (do_regcache_xfree): Use delete.
6990 * ppc-linux-tdep.c (ppu2spu_dealloc_cache): Use delete.
6991 * linux-fork.c (free_fork): Use delete.
6992 (fork_save_infrun_state): Likewise.
6993 * jit.c (jit_dealloc_cache): Use delete.
6994 * infrun.c (discard_infcall_suspend_state): Use delete.
6995
6996 2017-09-25 Tom Tromey <tom@tromey.com>
6997
6998 * regcache.h (regcache_xmalloc): Don't declare.
6999 (regcache_raw_set_cached_value): Update comment.
7000 * regcache.c (regcache_xmalloc): Remove.
7001 * ppc-linux-tdep.c (ppu2spu_sniffer): Use new.
7002 * jit.c (jit_frame_sniffer): Use new.
7003 * frame.c (frame_save_as_regcache): Use new.
7004
7005 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
7006
7007 * NEWS: Advertise support for guarded-storage registers on IBM z.
7008
7009 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
7010
7011 * s390-linux-nat.c (have_regset_gs): New static variable.
7012 (s390_linux_fetch_inferior_registers): Handle guarded-storage
7013 control block and guarded-storage broadcast control regsets.
7014 (s390_read_description): Detect whether the target has
7015 guarded-storage support, return appropriate tdesc.
7016 * s390-linux-tdep.c (features/s390-gs-linux64.c): New include.
7017 (features/s390x-gs-linux64.c): Likewise.
7018 (struct gdbarch_tdep) <have_gs>: New field.
7019 (s390_regmap_gs, s390_regmap_gsbc, s390_gs_regset)
7020 (s390_gsbc_regset): New variables.
7021 (s390_iterate_over_regset_sections): Iterate over s390_gs_regset
7022 and s390_gsbc_regset, if applicable.
7023 (s390_core_read_description): Check whether core file was from a
7024 target with guarded-storage support; include appropriate regsets.
7025 (s390_gdbarch_init): Add registers for guarded-storage support.
7026 (_initialize_s390_tdep): Initialize new target descriptions that
7027 include registers for guarded-storage support.
7028 * s390-linux-tdep.h (HWCAP_S390_GS, S390_GSD_REGNUM)
7029 (S390_GSSM_REGNUM, S390_GSEPLA_REGNUM)
7030 (S390_BC_GSD_REGNUM, S390_BC_GSSM_REGNUM): New defines.
7031 (S390_NUM_REGS): Adjust macro definition.
7032 (s390_gs_regset, s390_gsbc_regset, tdesc_s390_gs_linux64)
7033 (tdesc_s390x_gs_linux64): New declarations.
7034
7035 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
7036
7037 * features/s390-gs-linux64.xml: New file.
7038 * features/s390-gs.xml: New file.
7039 * features/s390-gsbc.xml: New file.
7040 * features/s390x-gs-linux64.xml: New file.
7041 * features/Makefile (WHICH): Add s390-gs-linux64 and
7042 s390x-gs-linux64.
7043 (s390-gs-linux64-expedite, s390x-gs-linux64-expedite): New macros.
7044 (XMLTOC): Add s390-gs-linux64.xml and s390x-linux64.xml.
7045 * features/s390-gs-linux64.c: New generated file.
7046 * features/s390x-gs-linux64.c: New file.
7047 * regformats/s390-gs-linux64.dat: New file.
7048 * regformats/s390x-gs-linux64.dat: New file.
7049
7050 2017-09-23 Tom Tromey <tom@tromey.com>
7051
7052 * defs.h (make_cleanup_override_quit_handler): Don't declare.
7053
7054 2017-09-22 Tom Tromey <tom@tromey.com>
7055
7056 * utils.c (class scoped_input_handler) <m_quit_handler>: Change
7057 type to scoped_restore_tmpl.
7058 <scoped_input_handler>: Initialize m_quit_handler directly.
7059
7060 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
7061
7062 * cli/cli-cmds.c (pwd_command): Use "getcwd (NULL, 0)".
7063 (cd_command): Likewise. Free "current_directory" before
7064 assigning to it.
7065 * main.c (captured_main_1): Use "getcwd (NULL, 0)".
7066 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Likewise.
7067 * top.c (gdb_dirbuf): Remove global declaration.
7068 * top.h (gdb_dirbuf): Likewise.
7069
7070 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
7071
7072 * gnulib/aclocal.m4: Regenerate.
7073 * gnulib/config.in: Regenerate.
7074 * gnulib/configure: Regenerate.
7075 * gnulib/import/Makefile.am: Regenerate.
7076 * gnulib/import/Makefile.in: Regenerate.
7077 * gnulib/import/assure.h: New file.
7078 * gnulib/import/at-func.c: Likewise
7079 * gnulib/import/chdir-long.c: New file.
7080 * gnulib/import/chdir-long.h: New file.
7081 * gnulib/import/cloexec.c: New file.
7082 * gnulib/import/cloexec.h: New file.
7083 * gnulib/import/close.c: New file.
7084 * gnulib/import/closedir.c: New file.
7085 * gnulib/import/dirent-private.h: New file.
7086 * gnulib/import/dup-safer.c: New file.
7087 * gnulib/import/dup.c: New file.
7088 * gnulib/import/dup2.c: New file.
7089 * gnulib/import/error.c: New file.
7090 * gnulib/import/error.h: New file.
7091 * gnulib/import/exitfail.c: New file.
7092 * gnulib/import/exitfail.h: New file.
7093 * gnulib/import/fchdir.c: New file.
7094 * gnulib/import/fcntl.c: New file.
7095 * gnulib/import/fcntl.in.h: New file.
7096 * gnulib/import/fd-hook.c: New file.
7097 * gnulib/import/fd-hook.h: New file.
7098 * gnulib/import/fd-safer.c: New file.
7099 * gnulib/import/fdopendir.c: New file.
7100 * gnulib/import/filename.h: New file.
7101 * gnulib/import/filenamecat-lgpl.c: New file.
7102 * gnulib/import/filenamecat.h: New file.
7103 * gnulib/import/fstat.c: New file.
7104 * gnulib/import/fstatat.c: New file.
7105 * gnulib/import/getcwd-lgpl.c: New file.
7106 * gnulib/import/getcwd.c: New file.
7107 * gnulib/import/getdtablesize.c: New file.
7108 * gnulib/import/getlogin_r.c: New file.
7109 * gnulib/import/getprogname.c: New file.
7110 * gnulib/import/getprogname.h: New file.
7111 * gnulib/import/gettext.h: New file.
7112 * gnulib/import/glob-libc.h: New file.
7113 * gnulib/import/glob.c: New file.
7114 * gnulib/import/glob.in.h: New file.
7115 * gnulib/import/intprops.h: New file.
7116 * gnulib/import/m4/chdir-long.m4: New file.
7117 * gnulib/import/m4/close.m4: New file.
7118 * gnulib/import/m4/closedir.m4: New file.
7119 * gnulib/import/m4/d-ino.m4: New file.
7120 * gnulib/import/m4/d-type.m4: New file.
7121 * gnulib/import/m4/dup.m4: New file.
7122 * gnulib/import/m4/dup2.m4: New file.
7123 * gnulib/import/m4/error.m4: New file.
7124 * gnulib/import/m4/fchdir.m4: New file.
7125 * gnulib/import/m4/fcntl.m4: New file.
7126 * gnulib/import/m4/fcntl_h.m4: New file.
7127 * gnulib/import/m4/fdopendir.m4: New file.
7128 * gnulib/import/m4/filenamecat.m4: New file.
7129 * gnulib/import/m4/fstat.m4: New file.
7130 * gnulib/import/m4/fstatat.m4: New file.
7131 * gnulib/import/m4/getcwd-abort-bug.m4: New file.
7132 * gnulib/import/m4/getcwd-path-max.m4: New file.
7133 * gnulib/import/m4/getcwd.m4: New file.
7134 * gnulib/import/m4/getdtablesize.m4: New file.
7135 * gnulib/import/m4/getlogin_r.m4: New file.
7136 * gnulib/import/m4/getprogname.m4: New file.
7137 * gnulib/import/m4/glob.m4: New file.
7138 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
7139 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
7140 * gnulib/import/m4/mempcpy.m4: New file.
7141 * gnulib/import/m4/memrchr.m4: New file.
7142 * gnulib/import/m4/mode_t.m4: New file.
7143 * gnulib/import/m4/msvc-inval.m4: New file.
7144 * gnulib/import/m4/msvc-nothrow.m4: New file.
7145 * gnulib/import/m4/open.m4: New file.
7146 * gnulib/import/m4/openat.m4: New file.
7147 * gnulib/import/m4/opendir.m4: New file.
7148 * gnulib/import/m4/readdir.m4: New file.
7149 * gnulib/import/m4/realloc.m4: New file.
7150 * gnulib/import/m4/rewinddir.m4: New file.
7151 * gnulib/import/m4/save-cwd.m4: New file.
7152 * gnulib/import/m4/strdup.m4: New file.
7153 * gnulib/import/m4/strerror.m4: New file.
7154 * gnulib/import/m4/unistd-safer.m4: New file.
7155 * gnulib/import/mempcpy.c: New file.
7156 * gnulib/import/memrchr.c: New file.
7157 * gnulib/import/msvc-inval.c: New file.
7158 * gnulib/import/msvc-inval.h: New file.
7159 * gnulib/import/msvc-nothrow.c: New file.
7160 * gnulib/import/msvc-nothrow.h: New file.
7161 * gnulib/import/open.c: New file.
7162 * gnulib/import/openat-die.c: New file.
7163 * gnulib/import/openat-priv.h: New file.
7164 * gnulib/import/openat-proc.c: New file.
7165 * gnulib/import/openat.c: New file.
7166 * gnulib/import/openat.h: New file.
7167 * gnulib/import/opendir.c: New file.
7168 * gnulib/import/pipe-safer.c: New file.
7169 * gnulib/import/readdir.c: New file.
7170 * gnulib/import/realloc.c: New file.
7171 * gnulib/import/rewinddir.c: New file.
7172 * gnulib/import/save-cwd.c: New file.
7173 * gnulib/import/save-cwd.h: New file.
7174 * gnulib/import/strdup.c: New file.
7175 * gnulib/import/strerror-override.c: New file.
7176 * gnulib/import/strerror-override.h: New file.
7177 * gnulib/import/strerror.c: New file.
7178 * gnulib/import/unistd--.h: New file.
7179 * gnulib/import/unistd-safer.h: New file.
7180 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
7181 "getcwd" and "glob".
7182 * ser-tcp.c: Undefine "close" before redefining it.
7183
7184 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
7185
7186 * guile/scm-value.c (gdbscm_value_address): Initialize address,
7187 get rid of res_val.
7188
7189 2017-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7190
7191 * configure.nat <i386sol2,i386>: Add fork-inferior.o to NATDEPFILES.
7192 <sol2,sparc>: Likewise.
7193 <sol2-64,i386>: Likewise.
7194
7195 * warning.m4 (AM_GDB_WARNINGS): Disable -Wunknown-pragmas,
7196 -Wdeprecated-declarations on *-*-solaris*.
7197 * configure: Regenerate.
7198
7199 * procfs.c: Include "nat/inferior.h".
7200 (procfs_info_proc): Fix typo.
7201
7202 2017-09-21 Kevin Buettner <kevinb@redhat.com>
7203
7204 * remote.c (vector): Include.
7205 (struct private_thread_info): Add field, thread_handle.
7206 (free_private_thread_info): Deallocate storage associated with
7207 thread handle.
7208 (get_private_info_thread): Initialize `thread_handle' field.
7209 (struct thread_item): Add field, thread_handle.
7210 (clear_threads_listing_context): Deallocate storage associated
7211 with thread handle.
7212 (start_thread): Add support for "handle" attribute.
7213 (thread_attributes): Add "handle".
7214 (remote_get_threads_with_qthreadinfo): Initialize thread_handle
7215 field.
7216 (remote_update_thread_list): Update thread_handle.
7217 (remote_thread_handle_to_thread_info): New function.
7218 (init_remote_ops): Initialize to_thread_handle_to_thread_info.
7219
7220 2017-09-21 Kevin Buettner <kevinb@redhat.com>
7221
7222 * python/py-inferior.c (gdbpy_thread_from_thread_handle): New
7223 function.
7224 (inferior_object_methods): Add gdbpy_thread_from_thread_handle.
7225 * python/python-internal.h (thread_object_type): Declare.
7226
7227 2017-09-21 Kevin Buettner <kevinb@redhat.com>
7228
7229 * target.h (struct target_ops): Add to_thread_handle_to_thread_info.
7230 (target_thread_handle_to_thread_info): Declare.
7231 * target.c (target_thread_handle_to_thread_info): New function.
7232 * target-delegates.c: Regenerate.
7233 * gdbthread.h (find_thread_by_handle): Declare.
7234 * thread.c (find_thread_by_handle): New function.
7235 * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New
7236 function.
7237 (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info.
7238
7239 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
7240
7241 * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF.
7242
7243 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
7244
7245 * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF.
7246
7247 2017-09-21 Yao Qi <yao.qi@linaro.org>
7248
7249 * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o
7250 to gdb_target_obs.
7251
7252 2017-09-20 Tom Tromey <tom@tromey.com>
7253
7254 * breakpoint.c (struct counted_command_line): Remove.
7255 (breakpoint_commands): Update.
7256 (alloc_counted_command_line, incref_counted_command_line)
7257 (decref_counted_command_line, do_cleanup_counted_command_line)
7258 (make_cleanup_decref_counted_command_line): Remove.
7259 (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats)
7260 (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check)
7261 (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint)
7262 (save_breakpoints): Update.
7263 * breakpoint.h (counted_command_line): Now a typedef to
7264 shared_ptr.
7265 (struct breakpoint) <commands>: Now a counted_command_line.
7266 (struct bpstats) <command>: Likewise.
7267
7268 2017-09-20 Tom Tromey <tom@tromey.com>
7269
7270 * breakpoint.c (struct commands_info, do_map_commands_command):
7271 Remove.
7272 (commands_command_1): Update.
7273 (iterate_over_related_breakpoints): Take a function_view.
7274 (do_delete_breakpoint, do_map_delete_breakpoint): Remove.
7275 (delete_command): Update.
7276 (map_breakpoint_numbers): Take a function_view.
7277 (do_disable_breakpoint, do_map_delete_breakpoint): Remove.
7278 (disable_command): Update.
7279 (do_enable_breakpoint, do_map_enable_breakpoint): Remove.
7280 (enable_command): Update.
7281 (struct disp_data, do_enable_breakpoint_disp)
7282 (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint)
7283 (do_map_enable_delete_breakpoint): Remove.
7284 (enable_once_command, enable_count_command, enable_delete_command)
7285 (delete_trace_variable_command): Update.
7286
7287 2017-09-20 Tom Tromey <tom@tromey.com>
7288
7289 * breakpoint.c (~bpstats): Rename from bpstat_free. Update.
7290 (bpstat_clear): Use delete.
7291 (bpstats): New constructors.
7292 (bpstat_copy, bpstat_stop_status): Use new.
7293 (dprintf_after_condition_true): Update.
7294 * breakpoint.h (bpstats::bpstats): Add constructors.
7295 (bpstats::~bpstats): Add destructor.
7296
7297 2017-09-20 Pedro Alves <palves@redhat.com>
7298
7299 * eval.c (make_params): Delete, refactored as ...
7300 (class fake_method): ... this new type's ctor.
7301 (fake_method::~fake_method): New.
7302 (evaluate_subexp_standard): Use 'fake_method'.
7303
7304 2017-09-20 Tom Tromey <tom@tromey.com>
7305
7306 * windows-nat.c (get_windows_debug_event, windows_wait)
7307 (do_initial_windows_stuff, windows_attach): Update.
7308 * utils.c (vwarning, internal_vproblem): Update.
7309 (ui_unregister_input_event_handler_cleanup)
7310 (prepare_to_handle_input): Remove.
7311 (class scoped_input_handler): New.
7312 (defaulted_query, prompt_for_continue): Update.
7313 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
7314 Update.
7315 * top.c (undo_terminal_modifications_before_exit): Update.
7316 * target/target.h (target_terminal_init, target_terminal_inferior)
7317 (target_terminal_ours): Don't declare.
7318 (class target_terminal): New.
7319 * target.h (target_terminal_is_inferior, target_terminal_is_ours)
7320 (target_terminal_ours_for_output)
7321 (make_cleanup_restore_target_terminal): Don't declare.
7322 (target_terminal_info): Remove.
7323 * target.c (enum terminal_state, terminal_state): Remove.
7324 (target_terminal::terminal_state): Define.
7325 (target_terminal::init): Rename from target_terminal_init.
7326 (target_terminal::inferior): Rename from
7327 target_terminal_inferior.
7328 (target_terminal::ours): Rename from target_terminal_ours.
7329 (target_terminal::ours_for_output): Rename from
7330 target_terminal_ours_for_output.
7331 (target_terminal::info): New method.
7332 (cleanup_restore_target_terminal)
7333 (make_cleanup_restore_target_terminal): Remove.
7334 * solib.c (handle_solib_event): Update.
7335 * remote.c (remote_serial_quit_handler): Update.
7336 (remote_terminal_inferior, remote_wait_as): Update.
7337 * record-full.c (record_full_wait_1): Update.
7338 * nto-procfs.c (procfs_create_inferior): Update.
7339 * nat/fork-inferior.c (startup_inferior): Update.
7340 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
7341 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
7342 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
7343 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
7344 (mi_breakpoint_created, mi_breakpoint_deleted)
7345 (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded)
7346 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
7347 (mi_user_selected_context_changed, report_initial_inferior):
7348 Update.
7349 * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours)
7350 (linux_nat_terminal_inferior): Update.
7351 * infrun.c (follow_fork_inferior)
7352 (handle_vfork_child_exec_or_exit, do_target_resume)
7353 (check_curr_ui_sync_execution_done, handle_inferior_event_1)
7354 (handle_signal_stop, maybe_remove_breakpoints, normal_stop):
7355 Update.
7356 * inflow.c (child_terminal_init, info_terminal_command): Update.
7357 * infcmd.c (post_create_inferior, continue_1, prepare_one_step)
7358 (attach_command): Update.
7359 * infcall.c (call_thread_fsm_should_stop): Update.
7360 * gnu-nat.c (gnu_attach): Update.
7361 * extension.c (struct active_ext_lang_state)
7362 (restore_active_ext_lang): Update.
7363 * exceptions.c (print_flush): Update.
7364 * event-top.c (async_enable_stdin, default_quit_handler): Update.
7365 (struct quit_handler_cleanup_data, restore_quit_handler)
7366 (restore_quit_handler_dtor, make_cleanup_override_quit_handler):
7367 Remove.
7368 * cp-support.c (gdb_demangle): Update.
7369 * breakpoint.c (update_inserted_breakpoint_locations)
7370 (insert_breakpoint_locations, handle_jit_event)
7371 (disable_breakpoints_in_unloaded_shlib): Update.
7372 * annotate.c (annotate_breakpoints_invalid)
7373 (annotate_frames_invalid): Update.
7374
7375 2017-09-20 Tom Tromey <tom@tromey.com>
7376
7377 * main.c (catch_command_errors): Rename from
7378 catch_command_errors_const.
7379 (captured_main_1): Update.
7380
7381 2017-09-20 Pedro Alves <palves@redhat.com>
7382
7383 * cli/cli-cmds.c (list_command): Use print_sal_location.
7384 (print_sal_location): New function.
7385 (ambiguous_line_spec): Use print_sal_location.
7386 * linespec.c (symbol_to_sal): Record the symbol in the sal.
7387 * symtab.c (find_function_start_sal): Likewise.
7388 * symtab.h (symtab_and_line::symbol): New field.
7389
7390 2017-09-20 Pedro Alves <palves@redhat.com>
7391
7392 * linespec.c (minsym_found): Handle non-text minsyms.
7393 (symbol_to_sal): Record a sal.pc for non-block, non-label symbols.
7394
7395 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
7396
7397 * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing
7398 backslash.
7399
7400 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
7401
7402 * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use
7403 vmovups instead vmovaps.
7404 (move_zmm_data_to_memory): Use vmovups instead vmovaps.
7405
7406 2017-09-19 John Baldwin <jhb@FreeBSD.org>
7407
7408 * NEWS (Changes since GDB 8.0): Add starti.
7409 * infcmd.c (enum run_break): New.
7410 (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN
7411 case.
7412 (run_command): Use enum run_how.
7413 (start_command): Likewise.
7414 (starti_command): New function.
7415 (RUN_ARGS_HELP): New macro.
7416 (_initialize_infcmd): Use RUN_ARGS_HELP for run and start
7417 commands. Add starti command.
7418
7419 2017-09-19 Yao Qi <yao.qi@linaro.org>
7420
7421 * Makefile.in (monitor.o): Remove the rule.
7422
7423 2017-09-19 Yao Qi <yao.qi@linaro.org>
7424
7425 * annotate.h (struct annotate_arg_emitter): Use
7426 DISABLE_COPY_AND_ASSIGN.
7427 * common/refcounted-object.h (refcounted_object): Likewise.
7428 * completer.h (struct completion_result): Likewise.
7429 * dwarf2read.c (struct dwarf2_per_objfile): Likewise.
7430 * filename-seen-cache.h (filename_seen_cache): Likewise.
7431 * gdbcore.h (thread_section_name): Likewise.
7432 * gdb_regex.h (compiled_regex): Likewise.
7433 * gdbthread.h (scoped_restore_current_thread): Likewise.
7434 * inferior.h (scoped_restore_current_inferior): Likewise.
7435 * jit.c (jit_reader): Likewise.
7436 * linespec.h (struct linespec_result): Likewise.
7437 * mi/mi-parse.h (struct mi_parse): Likewise.
7438 * nat/fork-inferior.c (execv_argv): Likewise.
7439 * progspace.h (scoped_restore_current_program_space): Likewise.
7440 * python/python-internal.h (class gdbpy_enter): Likewise.
7441 * regcache.h (regcache): Likewise.
7442 * target-descriptions.c (struct tdesc_reg): Likewise.
7443 (struct tdesc_type): Likewise.
7444 (struct tdesc_feature): Likewise.
7445 * ui-out.h (ui_out_emit_type): Likewise.
7446
7447 2017-09-18 Simon Marchi <simon.marchi@ericsson.com>
7448
7449 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove
7450 label abort_expression.
7451
7452 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7453
7454 * common/buffer.c (buffer_xml_printf): Adjust.
7455 * common/xml-utils.c (xml_escape_text): Change return type to
7456 std::string, update code accordingly.
7457 * common/xml-utils.h (xml_escape_text): Change return type to
7458 std::string.
7459 * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust.
7460 * windows-tdep.c (windows_xfer_shared_library): Adjust.
7461 * unittests/xml-utils-selftests.c (test_xml_escape_text):
7462 Adjust.
7463
7464 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7465
7466 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file.
7467 (SUBDIR_UNITTESTS_OBS): Add new object file.
7468 * unittests/xml-utils-selftests.c: New file.
7469
7470 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7471
7472 * common/selftest.h (selftest): New struct/interface.
7473 (register_test): Add name parameter, add new overload.
7474 (run_tests): Add filter parameter.
7475 (for_each_selftest_ftype): New typedef.
7476 (for_each_selftest): New declaration.
7477 * common/selftest.c (tests): Change type to
7478 map<string, unique_ptr<selftest>>.
7479 (simple_selftest): New struct.
7480 (register_test): New function.
7481 (register_test): Add name parameter and use it.
7482 (run_tests): Add filter parameter and use it. Add prints.
7483 Adjust to vector -> map change.
7484 * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when
7485 registering selftests.
7486 * arm-tdep.c (_initialize_arm_tdep): Likewise.
7487 * disasm-selftests.c (_initialize_disasm_selftests): Likewise.
7488 * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise.
7489 * dwarf2loc.c (_initialize_dwarf2loc): Likewise.
7490 * findvar.c (_initialize_findvar): Likewise.
7491 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise.
7492 * maint.c (maintenance_selftest): Update call to run_tests.
7493 (maintenance_info_selftests): New function.
7494 (_initialize_maint_cmds): Register "maintenance info selftests"
7495 command. Update "maintenance selftest" doc.
7496 * regcache.c (_initialize_regcache): Add names when registering
7497 selftests.
7498 * rust-exp.y (_initialize_rust_exp): Likewise.
7499 * selftest-arch.c (gdbarch_selftest): New struct.
7500 (gdbarch_tests): Remove.
7501 (register_test_foreach_arch): Add name parameter. Call
7502 register_test.
7503 (tests_with_arch): Remove, move most content to
7504 gdbarch_selftest::operator().
7505 (_initialize_selftests_foreach_arch): Remove.
7506 * selftest-arch.h (register_test_foreach_arch): Add name
7507 parameter.
7508 (run_tests_with_arch): New declaration.
7509 * utils-selftests.c (_initialize_utils_selftests): Add names
7510 when registering selftests.
7511 * utils.c (_initialize_utils): Likewise.
7512 * unittests/array-view-selftests.c
7513 (_initialize_array_view_selftests): Likewise.
7514 * unittests/environ-selftests.c (_initialize_environ_selftests):
7515 Likewise.
7516 * unittests/function-view-selftests.c
7517 (_initialize_function_view_selftests): Likewise.
7518 * unittests/offset-type-selftests.c
7519 (_initialize_offset_type_selftests): Likewise.
7520 * unittests/optional-selftests.c
7521 (_initialize_optional_selftests): Likewise.
7522 * unittests/scoped_restore-selftests.c
7523 (_initialize_scoped_restore_selftests): Likewise.
7524 * NEWS: Document "maintenance selftest" and "maint info
7525 selftests".
7526
7527 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7528
7529 * mi/mi-main.c (mi_load_progress): Restore current_uiout using a
7530 scoped_restore.
7531
7532 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7533
7534 * mi/mi-main.c (mi_load_progress): Make uiout variable
7535 a unique_ptr.
7536
7537 2017-09-15 Pedro Alves <palves@redhat.com>
7538
7539 * compile/compile-c-types.c (convert_enum, convert_int)
7540 (convert_float): Adjust to refer to int_type_v0 and float_type_v0.
7541
7542 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7543
7544 * dwarf2read.c (copy_string): Remove.
7545 (parse_macro_definition): Replace copy_string with savestring.
7546
7547 2017-09-15 Yao Qi <yao.qi@linaro.org>
7548
7549 * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to
7550 gdb_target_obs.
7551 (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*):
7552 Likewise.
7553 (i[34567]86-*-linux*): Likewise.
7554
7555 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
7556
7557 * dwarf2expr.h (dwarf_stack_value): Add constructor.
7558 (dwarf_expr_context) <~dwarf_expr_context>: Define as default.
7559 <stack>: Change type to std::vector.
7560 <stack_len, stack_allocated>: Remove.
7561 <grow_stack>: Remove.
7562 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
7563 (dwarf_expr_context::~dwarf_expr_context): Remove.
7564 (dwarf_expr_context::grow_stack): Remove.
7565 (dwarf_expr_context::push): Adjust.
7566 (dwarf_expr_context::pop): Adjust.
7567 (dwarf_expr_context::fetch): Adjust.
7568 (dwarf_expr_context::fetch_in_stack_memory): Adjust.
7569 (dwarf_expr_context::stack_empty_p): Adjust.
7570 (dwarf_expr_context::execute_stack_op): Adjust.
7571
7572 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
7573
7574 * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change
7575 return type to bool.
7576 * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise.
7577
7578 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
7579
7580 * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>:
7581 Change type to bool.
7582 (dwarf_stack_value) <in_stack_memory>: Likewise.
7583 (dwarf_expr_context) <push_address>: Change parameter type to
7584 bool.
7585 <fetch_in_stack_memory>: Change return type to bool.
7586 <push>: Change parameter type to bool.
7587 * dwarf2expr.c (dwarf_expr_context::push): Change parameter type
7588 to bool.
7589 (dwarf_expr_context::push_address): Likewise.
7590 (dwarf_expr_context::fetch_in_stack_memory): Change return type
7591 to bool.
7592 (dwarf_expr_context::execute_stack_op): Adjust.
7593 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust.
7594
7595 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
7596
7597 * dwarf2expr.h (struct dwarf_expr_piece): Move up.
7598 (struct dwarf_expr_context) <n_pieces>: Remove.
7599 <pieces>: Change type to std::vector.
7600 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
7601 (dwarf_expr_context::~dwarf_expr_context): Don't manually free
7602 pieces.
7603 (dwarf_expr_context::add_piece): Adjust.
7604 * dwarf2loc.c (struct piece_closure): Initialize fields.
7605 <n_pieces>: Remove.
7606 <pieces>: Change type to std::vector.
7607 (allocate_piece_closure): Adjust, change parameter to
7608 std::vector rvalue and std::move it to piece_closure.
7609 (rw_pieced_value): Adjust.
7610 (check_pieced_synthetic_pointer): Adjust.
7611 (indirect_synthetic_pointer): Adjust.
7612 (coerce_pieced_ref): Adjust.
7613 (free_pieced_value_closure): Adjust. Use delete to free
7614 piece_closure.
7615 (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces
7616 to allocate_piece_closure.
7617 (dwarf2_loc_desc_get_symbol_read_needs): Adjust.
7618
7619 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
7620
7621 * probe.h (probe_ops_cp): Remove typedef.
7622 (DEF_VEC_P (probe_ops_cp)): Remove.
7623 (all_probe_ops): Change type to std::vector.
7624 * probe.c (info_probes_for_ops): Adjust to vector change.
7625 (probe_linespec_to_ops): Likewise.
7626 (all_probe_ops): Change type to std::vector.
7627 (_initialize_probe): Adjust to vector change.
7628 * dtrace-probe.c (_initialize_dtrace_probe): Likewise.
7629 * elfread.c (elf_get_probes): Likewise.
7630 * stap-probe.c (_initialize_stap_probe): Likewise.
7631
7632 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
7633
7634 * probe.h (struct bound_probe): Define constructors.
7635 * probe.c (bound_probe_s): Remove typedef.
7636 (DEF_VEC_O (bound_probe_s)): Remove VEC.
7637 (collect_probes): Change return type to std::vector, remove
7638 cleanup.
7639 (compare_probes): Return bool, change parameter type. Change
7640 semantic to "less than".
7641 (gen_ui_out_table_header_info): Change parameter to std::vector
7642 and update.
7643 (exists_probe_with_pops): Likewise.
7644 (info_probes_for_ops): Update to std::vector change.
7645 (enable_probes_command): Likewise.
7646 (disable_probes_command): Likewise.
7647
7648 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
7649
7650 * probe.h (struct probe_ops) <get_probes>: Change parameter from
7651 vec to std::vector.
7652 * probe.c (parse_probes_in_pspace): Update.
7653 (find_probes_in_objfile): Update.
7654 (find_probe_by_pc): Update.
7655 (collect_probes): Update.
7656 (probe_any_get_probes): Update.
7657 * symfile.h (struct sym_probe_fns) <sym_get_probes> Change
7658 return type to reference to std::vector.
7659 * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to
7660 std::vector and update.
7661 (dtrace_process_dof): Likewise.
7662 (dtrace_get_probes): Likewise.
7663 * elfread.c (elf_get_probes): Change return type to std::vector,
7664 store an std::vector in bfd_data.
7665 (probe_key_free): Update to std::vector.
7666 * stap-probe.c (handle_stap_probe): Change parameter to
7667 std::vector and update.
7668 (stap_get_probes): Likewise.
7669 * symfile-debug.c (debug_sym_get_probes): Change return type to
7670 std::vector and update.
7671
7672 2017-09-11 Tom Tromey <tom@tromey.com>
7673
7674 * breakpoint.c (program_breakpoint_here_p): Update.
7675 * target.c (make_scoped_restore_show_memory_breakpoints): Rename
7676 from make_show_memory_breakpoints_cleanup. Return a
7677 scoped_restore_tmpl<int>.
7678 (restore_show_memory_breakpoints): Remove.
7679 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update.
7680 * mem-break.c (memory_validate_breakpoint): Update.
7681 * ia64-tdep.c (ia64_memory_insert_breakpoint): Update.
7682 (ia64_memory_remove_breakpoint): Update.
7683 (ia64_breakpoint_from_pc): Update.
7684 * target.h (make_scoped_restore_show_memory_breakpoints): Rename
7685 from make_show_memory_breakpoints_cleanup.
7686
7687 2017-09-11 Tom Tromey <tom@tromey.com>
7688
7689 * d-namespace.c (d_lookup_symbol): Use std::string.
7690 (find_symbol_in_baseclass): Likewise.
7691
7692 2017-09-11 Tom Tromey <tom@tromey.com>
7693
7694 * ctf.c (ctf_start): Use std::string.
7695
7696 2017-09-11 Tom Tromey <tom@tromey.com>
7697
7698 * ada-lang.c (is_known_support_routine): Update.
7699 (ada_unhandled_exception_name_addr_from_raise): Update.
7700 * guile/scm-frame.c (gdbscm_frame_name): Update.
7701 * python/py-frame.c (frapy_name): Update.
7702 (frapy_function): Update.
7703 * stack.h (find_frame_funname): Update.
7704 * stack.c (find_frame_funname): Return unique_xmalloc_ptr.
7705 (print_frame): Update.
7706
7707 2017-09-11 Tom Tromey <tom@tromey.com>
7708
7709 * findcmd.c (put_bits): Take a gdb::byte_vector.
7710 (parse_find_args): Return gdb::byte_vector. "args" now const.
7711 Remove "pattern_bufp" and "pattern_lenp" parameters. Remove
7712 cleanups.
7713 (find_command): Update.
7714
7715 2017-09-11 Tom Tromey <tom@tromey.com>
7716
7717 * cli/cli-script.c (class scoped_restore_hook_in): New.
7718 (clear_hook_in_cleanup): Remove.
7719 (execute_cmd_pre_hook, execute_cmd_post_hook): Use
7720 scoped_restore_hook_in.
7721
7722 2017-09-11 Tom Tromey <tom@tromey.com>
7723
7724 * cli/cli-script.c (restore_interp): Remove.
7725 (read_command_lines): Use scoped_restore_interp.
7726 * interps.c (scoped_restore_interp::set_temp): Rename from
7727 interp_set_temp.
7728 * interps.h (class scoped_restore_interp): New.
7729 (interp_set_temp): Remove.
7730
7731 2017-09-11 Tom Tromey <tom@tromey.com>
7732
7733 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
7734 (mi_cmd_catch_exception, mi_catch_load_unload): Update.
7735 * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a
7736 scoped_restore.
7737 (mi_cmd_break_insert_1): Update.
7738 * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a
7739 scoped_restore.
7740
7741 2017-09-11 Tom Tromey <tom@tromey.com>
7742
7743 * demangle.c (demangle_command): Update.
7744 * breakpoint.c (disable_command): Update.
7745 (enable_command): Update.
7746 (find_location_by_number): Make "number" const. Use
7747 get_number_trailer.
7748 * cli/cli-utils.c (extract_arg): Return std::string.
7749 * probe.c (parse_probe_linespec): Update. Change types.
7750 (collect_probes): Take string arguments.
7751 (parse_probe_linespec): Likewise.
7752 (info_probes_for_ops): Update.
7753 (enable_probes_command): Update.
7754 (disable_probes_command): Update.
7755 * break-catch-sig.c (catch_signal_split_args): Update.
7756 * mi/mi-parse.c (mi_parse): Update.
7757
7758 2017-09-11 Tom Tromey <tom@tromey.com>
7759
7760 * language.h (language_enum): Make argument const.
7761 * language.c (language_enum): Make argument const.
7762
7763 2017-09-11 Tom Tromey <tom@tromey.com>
7764
7765 * common/common-utils.h (skip_to_space): Remove macro, redeclare
7766 as function.
7767 (skip_to_space): Rename from skip_to_space_const.
7768 * common/common-utils.c (skip_to_space): New function.
7769 (skip_to_space): Rename from skip_to_space_const.
7770 * cli/cli-utils.h (get_number): Rename from get_number_const.
7771 (extract_arg): Rename from extract_arg_const.
7772 * cli/cli-utils.c (get_number): Rename from get_number_const.
7773 (extract_arg): Rename from extract_arg_const.
7774 (number_or_range_parser::get_number): Use ::get_number.
7775 * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c,
7776 break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c,
7777 cli/cli-script.c, cli/cli-setshow.c, compile/compile.c,
7778 completer.c, demangle.c, disasm.c, findcmd.c, linespec.c,
7779 linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c,
7780 minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c,
7781 python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c,
7782 stap-probe.c, tid-parse.c, tracepoint.c: Update all callers.
7783
7784 2017-09-11 Tom Tromey <tom@tromey.com>
7785
7786 * python/python.c (do_start_initialization): Use
7787 py-event-types.def to initialize types.
7788 Define all object type structures.
7789 * python/python-internal.h: Don't declare event initialization
7790 functions.
7791 * python/py-threadevent.c (thread_event_object_type): Don't
7792 define.
7793 * python/py-stopevent.c (stop_event_object_type): Don't define.
7794 * python/py-signalevent.c (signal_event_object_type): Don't
7795 declare or define.
7796 * python/py-newobjfileevent.c (new_objfile_event_object_type)
7797 (clear_objfiles_event_object_type): Don't declare or define.
7798 * python/py-infevents.c (inferior_call_pre_event_object_type)
7799 (inferior_call_post_event_object_type)
7800 (register_changed_event_object_type)
7801 (memory_changed_event_object_type): Don't declare or define.
7802 * python/py-inferior.c (new_thread_event_object_type)
7803 (new_inferior_event_object_type)
7804 (inferior_deleted_event_object_type): Don't declare or define.
7805 * python/py-exitedevent.c (exited_event_object_type): Don't
7806 declare or define.
7807 * python/py-evts.c (gdbpy_initialize_py_events): Use
7808 py-all-events.def.
7809 * python/py-events.h (thread_event_object_type): Don't declare.
7810 (events_object): Use py-all-events.def.
7811 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use
7812 py-event-types.def.
7813 * python/py-event-types.def: New file.
7814 * python/py-continueevent.c (create_continue_event_object): Don't
7815 declare or define.
7816 * python/py-bpevent.c (breakpoint_event_object_type): Don't
7817 declare or define.
7818 * python/py-all-events.def: New file.
7819
7820 2017-09-11 Tom Tromey <tom@tromey.com>
7821
7822 * python/py-threadevent.c (create_thread_event_object): Return
7823 gdbpy_ref.
7824 * python/py-stopevent.h (create_stop_event_object)
7825 (create_breakpoint_event_object, create_signal_event_object):
7826 Update.
7827 * python/py-stopevent.c (create_stop_event_object): Return
7828 gdbpy_ref.
7829 (emit_stop_event): Update.
7830 * python/py-signalevent.c (create_signal_event_object): Return
7831 gdbpy_ref.
7832 * python/py-infevents.c (create_inferior_call_event_object):
7833 Update.
7834 * python/py-event.h (create_event_object)
7835 (create_thread_event_object): Update.
7836 * python/py-event.c (create_event_object): Return gdbpy_ref.
7837 * python/py-continueevent.c: Return gdbpy_ref.
7838 * python/py-bpevent.c (create_breakpoint_event_object): Return
7839 gdbpy_ref.
7840
7841 2017-09-11 Tom Tromey <tom@tromey.com>
7842
7843 PR python/15622:
7844 * NEWS: Add entry.
7845 * python/python.c (do_start_initialization): Initialize new event
7846 types.
7847 * python/python-internal.h (gdbpy_initialize_new_inferior_event)
7848 (gdbpy_initialize_inferior_deleted_event)
7849 (gdbpy_initialize_new_thread_event): Declare.
7850 * python/py-threadevent.c (create_thread_event_object): Add option
7851 "thread" parameter.
7852 * python/py-inferior.c (new_thread_event_object_type)
7853 (new_inferior_event_object_type)
7854 (inferior_deleted_event_object_type): Declare.
7855 (python_new_inferior, python_inferior_deleted): New functions.
7856 (add_thread_object): Emit new_thread event.
7857 (gdbpy_initialize_inferior): Attach new functions to corresponding
7858 observers.
7859 (new_thread, new_inferior, inferior_deleted): Define new event
7860 types.
7861 * python/py-evts.c (gdbpy_initialize_py_events): Add new
7862 registries.
7863 * python/py-events.h (events_object) <new_inferior,
7864 inferior_deleted, new_thread>: New fields.
7865 * python/py-event.h (create_thread_event_breakpoint): Add optional
7866 "thread" parameter.
7867
7868 2017-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
7869
7870 * utils.c (abort_with_message): Don't compare gdb_stderr to NULL,
7871 check current_ui instead.
7872 (internal_vproblem): Likewise.
7873
7874 2017-09-09 Simon Marchi <simon.marchi@ericsson.com>
7875
7876 * thread.c (print_thread_info_1): Remove unnecessary calls to
7877 uiout->is_mi_like_p.
7878
7879 2017-09-09 Tom Tromey <tom@tromey.com>
7880
7881 * namespace.h (add_using_directive): Update.
7882 * namespace.c (add_using_directive): Change type of excludes to
7883 std::vector.
7884 * dwarf2read.c (read_import_statement): Use std::vector.
7885 (read_namespace): Update.
7886 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
7887
7888 2017-09-09 Tom Tromey <tom@tromey.com>
7889
7890 * linespec.c (create_sals_line_offset): Use gdb::def_vector.
7891
7892 2017-09-09 Tom Tromey <tom@tromey.com>
7893
7894 * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector.
7895
7896 2017-09-09 Tom Tromey <tom@tromey.com>
7897
7898 * stack.c (func_command): Use gdb::def_vector.
7899
7900 2017-09-09 Tom Tromey <tom@tromey.com>
7901
7902 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional,
7903 ui_out_emit_list, ui_out_emit_tuple.
7904 (mi_cmd_var_update): Likewise.
7905
7906 2017-09-09 Tom Tromey <tom@tromey.com>
7907
7908 * mi/mi-interp.c (mi_user_selected_context_changed): Use
7909 ui_out_redirect_pop.
7910 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
7911 ui_out_redirect_pop.
7912 * utils.c (do_ui_out_redirect_pop)
7913 (make_cleanup_ui_out_redirect_pop): Remove.
7914 * top.c (execute_command_to_string): Use ui_out_redirect_pop.
7915 * utils.h (make_cleanup_ui_out_redirect_pop): Remove.
7916 * ui-out.h (ui_out_redirect_pop): New class.
7917
7918 2017-09-09 Tom Tromey <tom@tromey.com>
7919
7920 * mi/mi-main.c (output_cores): Use ui_out_emit_list.
7921 (list_available_thread_groups, mi_cmd_list_thread_groups)
7922 (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory)
7923 (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected):
7924 Likewise.
7925
7926 2017-09-09 Tom Tromey <tom@tromey.com>
7927
7928 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
7929 ui_out_emit_tuple.
7930
7931 2017-09-09 Tom Tromey <tom@tromey.com>
7932
7933 * target.c (flash_erase_command): Use ui_out_emit_tuple.
7934 * stack.c (print_frame): Use ui_out_emit_tuple.
7935 * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple.
7936 (info_spu_mailbox_command, info_spu_dma_command)
7937 (info_spu_proxydma_command): Likewise.
7938 * mi/mi-main.c (mi_cmd_trace_frame_collected): Use
7939 ui_out_emit_tuple, gdb::byte_vector, bin2hex.
7940 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
7941 ui_out_emit_tuple.
7942 * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple.
7943
7944 2017-09-09 Tom Tromey <tom@tromey.com>
7945
7946 * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove.
7947 (class ui_out_emit_table): Update comment.
7948 * ui-out.c (do_cleanup_table_end)
7949 (make_cleanup_ui_out_table_begin_end): Remove.
7950 * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table.
7951 (info_spu_dma_cmdlist): Likewise.
7952 * probe.c (info_probes_for_ops): Use ui_out_emit_table.
7953 * darwin-nat-info.c (darwin_debug_regions_recurse): Use
7954 ui_out_emit_table.
7955
7956 2017-09-09 Tom Tromey <tom@tromey.com>
7957
7958 * thread.c (print_thread_info_1): Use ui_out_emit_table,
7959 ui_out_emit_list, gdb::optional.
7960
7961 2017-09-09 John Baldwin <jhb@FreeBSD.org>
7962
7963 * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat
7964 prototype.
7965 * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep
7966 prototype.
7967 * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep
7968 prototype.
7969 * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype.
7970 * ada-exp.y: Remove _initialize_ada_exp prototype.
7971 * ada-lang.c: Remove _initialize_ada_language prototype.
7972 * ada-tasks.c: Remove _initialize_tasks prototype.
7973 * addrmap.c: Remove _initialize_addrmap prototype.
7974 * agent.c: Remove _initialize_agent prototype.
7975 * aix-thread.c: Remove _initialize_aix_thread prototype.
7976 * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype.
7977 * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype.
7978 * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep
7979 prototype.
7980 * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype.
7981 * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype.
7982 * alpha-tdep.c: Remove _initialize_alpha_tdep prototype.
7983 * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep
7984 prototype.
7985 * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep
7986 prototype.
7987 * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype.
7988 * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype.
7989 * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype.
7990 * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep
7991 prototype.
7992 * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype.
7993 * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype.
7994 * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype.
7995 * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype.
7996 * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
7997 * amd64-tdep.c: Remove _initialize_amd64_tdep prototype.
7998 * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat
7999 prototype.
8000 * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep
8001 prototype.
8002 * annotate.c: Remove _initialize_annotate prototype.
8003 * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype.
8004 * arc-tdep.c: Remove _initialize_arc_tdep prototype.
8005 * arch-utils.c: Remove _initialize_gdbarch_utils prototype.
8006 * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype.
8007 * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype.
8008 * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype.
8009 * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype.
8010 * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep
8011 prototype.
8012 * arm-tdep.c: Remove _initialize_arm_tdep prototype.
8013 * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype.
8014 * auto-load.c: Remove _initialize_auto_load prototype.
8015 * auxv.c: Remove _initialize_auxv prototype.
8016 * avr-tdep.c: Remove _initialize_avr_tdep prototype.
8017 * ax-gdb.c: Remove _initialize_ax_gdb prototype.
8018 * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype.
8019 * bfin-tdep.c: Remove _initialize_bfin_tdep prototype.
8020 * break-catch-sig.c: Remove _initialize_break_catch_sig prototype.
8021 * break-catch-syscall.c: Remove _initialize_break_catch_syscall
8022 prototype.
8023 * break-catch-throw.c: Remove _initialize_break_catch_throw
8024 prototype.
8025 * breakpoint.c: Remove _initialize_breakpoint prototype.
8026 * bsd-uthread.c: Remove _initialize_bsd_uthread prototype.
8027 * btrace.c: Remove _initialize_btrace prototype.
8028 * charset.c: Remove _initialize_charset prototype.
8029 * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype.
8030 * cli/cli-dump.c: Remove _initialize_cli_dump prototype.
8031 * cli/cli-interp.c: Remove _initialize_cli_interp prototype.
8032 * cli/cli-logging.c: Remove _initialize_cli_logging prototype.
8033 * cli/cli-script.c: Remove _initialize_cli_script prototype.
8034 * coff-pe-read.c: Remove _initialize_coff_pe_read prototype.
8035 * coffread.c: Remove _initialize_coffread prototype.
8036 * compile/compile.c: Remove _initialize_compile prototype.
8037 * complaints.c: Remove _initialize_complaints prototype.
8038 * completer.c: Remove _initialize_completer prototype.
8039 * copying.awk: Remove _initialize_copying prototype.
8040 * copying.c: Regenerate.
8041 * core-regset.c: Remove _initialize_core_regset prototype.
8042 * corefile.c: Remove _initialize_core prototype.
8043 * corelow.c: Remove _initialize_corelow prototype.
8044 * cp-abi.c: Remove _initialize_cp_abi prototype.
8045 * cp-namespace.c: Remove _initialize_cp_namespace prototype.
8046 * cp-support.c: Remove _initialize_cp_support prototype.
8047 * cp-valprint.c: Remove _initialize_cp_valprint prototype.
8048 * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype.
8049 * cris-tdep.c: Remove _initialize_cris_tdep prototype.
8050 * ctf.c: Remove _initialize_ctf prototype.
8051 * d-lang.c: Remove _initialize_d_language prototype.
8052 * darwin-nat-info.c: Remove _initialize_darwin_info_commands
8053 prototype.
8054 * darwin-nat.c: Remove _initialize_darwin_inferior prototype.
8055 * dbxread.c: Remove _initialize_dbxread prototype.
8056 * dcache.c: Remove _initialize_dcache prototype.
8057 * demangle.c: Remove _initialize_demangler prototype.
8058 * disasm-selftests.c: Remove _initialize_disasm_selftests
8059 prototype.
8060 * disasm.c: Remove _initialize_disasm prototype.
8061 * dtrace-probe.c: Remove _initialize_dtrace_probe prototype.
8062 * dummy-frame.c: Remove _initialize_dummy_frame prototype.
8063 * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame
8064 prototype.
8065 * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype.
8066 * dwarf2expr.c: Remove _initialize_dwarf2expr prototype.
8067 * dwarf2loc.c: Remove _initialize_dwarf2loc prototype.
8068 * dwarf2read.c: Remove _initialize_dwarf2_read prototype.
8069 * elfread.c: Remove _initialize_elfread prototype.
8070 * exec.c: Remove _initialize_exec prototype.
8071 * extension.c: Remove _initialize_extension prototype.
8072 * f-lang.c: Remove _initialize_f_language prototype.
8073 * f-valprint.c: Remove _initialize_f_valprint prototype.
8074 * fbsd-nat.c: Remove _initialize_fbsd_nat prototype.
8075 * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype.
8076 * filesystem.c: Remove _initialize_filesystem prototype.
8077 * findcmd.c: Remove _initialize_mem_search prototype.
8078 * fork-child.c: Remove _initialize_fork_child prototype.
8079 * frame-base.c: Remove _initialize_frame_base prototype.
8080 * frame-unwind.c: Remove _initialize_frame_unwind prototype.
8081 * frame.c: Remove _initialize_frame prototype.
8082 * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype.
8083 * frv-tdep.c: Remove _initialize_frv_tdep prototype.
8084 * ft32-tdep.c: Remove _initialize_ft32_tdep prototype.
8085 * gcore.c: Remove _initialize_gcore prototype.
8086 * gdb_bfd.c: Remove _initialize_gdb_bfd prototype.
8087 * gdbarch.c: Regenerate.
8088 * gdbarch.sh: Remove _initialize_gdbarch prototype.
8089 * gdbtypes.c: Remove _initialize_gdbtypes prototype.
8090 * gnu-nat.c: Remove _initialize_gnu_nat prototype.
8091 * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype.
8092 * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype.
8093 * go-lang.c: Remove _initialize_go_language prototype.
8094 * go32-nat.c: Remove _initialize_go32_nat prototype.
8095 * guile/guile.c: Remove _initialize_guile prototype.
8096 * h8300-tdep.c: Remove _initialize_h8300_tdep prototype.
8097 * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype.
8098 * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype.
8099 * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype.
8100 * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype.
8101 * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype.
8102 * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype.
8103 * hppa-tdep.c: Remove _initialize_hppa_tdep prototype.
8104 * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype.
8105 * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep
8106 prototype.
8107 * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep
8108 prototype.
8109 * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype.
8110 * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype.
8111 * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype.
8112 * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype.
8113 * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype.
8114 * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype.
8115 * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype.
8116 * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype.
8117 * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype.
8118 * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype.
8119 * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype.
8120 * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype.
8121 * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype.
8122 * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
8123 * i386-tdep.c: Remove _initialize_i386_tdep prototype.
8124 * i386-windows-nat.c: Remove _initialize_i386_windows_nat
8125 prototype.
8126 * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame
8127 prototype.
8128 * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype.
8129 * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype.
8130 * ia64-tdep.c: Remove _initialize_ia64_tdep prototype.
8131 * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype.
8132 * infcall.c: Remove _initialize_infcall prototype.
8133 * infcmd.c: Remove _initialize_infcmd prototype.
8134 * inferior.c: Remove _initialize_inferiors prototype.
8135 * inflow.c: Remove _initialize_inflow prototype.
8136 * infrun.c: Remove _initialize_infrun prototype.
8137 * interps.c: Remove _initialize_interpreter prototype.
8138 * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype.
8139 * jit.c: Remove _initialize_jit prototype.
8140 * language.c: Remove _initialize_language prototype.
8141 * linux-fork.c: Remove _initialize_linux_fork prototype.
8142 * linux-nat.c: Remove _initialize_linux_nat prototype.
8143 * linux-tdep.c: Remove _initialize_linux_tdep prototype.
8144 * linux-thread-db.c: Remove _initialize_thread_db prototype.
8145 * lm32-tdep.c: Remove _initialize_lm32_tdep prototype.
8146 * m2-lang.c: Remove _initialize_m2_language prototype.
8147 * m32c-tdep.c: Remove _initialize_m32c_tdep prototype.
8148 * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype.
8149 * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype.
8150 * m32r-tdep.c: Remove _initialize_m32r_tdep prototype.
8151 * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype.
8152 * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
8153 * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
8154 * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype.
8155 * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype.
8156 * m68k-tdep.c: Remove _initialize_m68k_tdep prototype.
8157 * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
8158 * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
8159 * machoread.c: Remove _initialize_machoread prototype.
8160 * macrocmd.c: Remove _initialize_macrocmd prototype.
8161 * macroscope.c: Remove _initialize_macroscope prototype.
8162 * maint.c: Remove _initialize_maint_cmds prototype.
8163 * mdebugread.c: Remove _initialize_mdebugread prototype.
8164 * memattr.c: Remove _initialize_mem prototype.
8165 * mep-tdep.c: Remove _initialize_mep_tdep prototype.
8166 * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype.
8167 * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype.
8168 * mi/mi-interp.c: Remove _initialize_mi_interp prototype.
8169 * mi/mi-main.c: Remove _initialize_mi_main prototype.
8170 * microblaze-linux-tdep.c: Remove
8171 _initialize_microblaze_linux_tdep prototype.
8172 * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype.
8173 * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype.
8174 * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype.
8175 * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype.
8176 * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype.
8177 * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype.
8178 * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype.
8179 * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype.
8180 * mips-tdep.c: Remove _initialize_mips_tdep prototype.
8181 * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype.
8182 * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep
8183 prototype.
8184 * mipsread.c: Remove _initialize_mipsread prototype.
8185 * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep
8186 prototype.
8187 * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype.
8188 * moxie-tdep.c: Remove _initialize_moxie_tdep prototype.
8189 * msp430-tdep.c: Remove _initialize_msp430_tdep prototype.
8190 * mt-tdep.c: Remove _initialize_mt_tdep prototype.
8191 * nds32-tdep.c: Remove _initialize_nds32_tdep prototype.
8192 * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep
8193 prototype.
8194 * nios2-tdep.c: Remove _initialize_nios2_tdep prototype.
8195 * nto-procfs.c: Remove _initialize_procfs prototype.
8196 * nto-tdep.c: Remove _initialize_nto_tdep prototype.
8197 * objc-lang.c: Remove _initialize_objc_language prototype.
8198 * objfiles.c: Remove _initialize_objfiles prototype.
8199 * observer.c: Remove observer_test_first_notification_function,
8200 observer_test_second_notification_function,
8201 observer_test_third_notification_function, and
8202 _initialize_observer prototypes.
8203 * opencl-lang.c: Remove _initialize_opencl_language prototypes.
8204 * osabi.c: Remove _initialize_gdb_osabi prototype.
8205 * osdata.c: Remove _initialize_osdata prototype.
8206 * p-valprint.c: Remove _initialize_pascal_valprint prototype.
8207 * parse.c: Remove _initialize_parse prototype.
8208 * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype.
8209 * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype.
8210 * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype.
8211 * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype.
8212 * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype.
8213 * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype.
8214 * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype.
8215 * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype.
8216 * printcmd.c: Remove _initialize_printcmd prototype.
8217 * probe.c: Remove _initialize_probe prototype.
8218 * proc-api.c: Remove _initialize_proc_api prototype.
8219 * proc-events.c: Remove _initialize_proc_events prototype.
8220 * proc-service.c: Remove _initialize_proc_service prototype.
8221 * procfs.c: Remove _initialize_procfs prototype.
8222 * psymtab.c: Remove _initialize_psymtab prototype.
8223 * python/python.c: Remove _initialize_python prototype.
8224 * ravenscar-thread.c: Remove _initialize_ravenscar prototype.
8225 * record-btrace.c: Remove _initialize_record_btrace prototype.
8226 * record-full.c: Remove _initialize_record_full prototype.
8227 * record.c: Remove _initialize_record prototype.
8228 * regcache.c: Remove _initialize_regcache prototype.
8229 * reggroups.c: Remove _initialize_reggroup prototype.
8230 * remote-notif.c: Remove _initialize_notif prototype.
8231 * remote-sim.c: Remove _initialize_remote_sim prototype.
8232 * remote.c: Remove _initialize_remote prototype.
8233 * reverse.c: Remove _initialize_reverse prototype.
8234 * rl78-tdep.c: Remove _initialize_rl78_tdep prototype.
8235 * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype.
8236 * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep
8237 prototype.
8238 * rs6000-nat.c: Remove _initialize_rs6000_nat prototype.
8239 * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype.
8240 * rust-exp.y: Remove _initialize_rust_exp prototype.
8241 * rx-tdep.c: Remove _initialize_rx_tdep prototype.
8242 * s390-linux-nat.c: Remove _initialize_s390_nat prototype.
8243 * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype.
8244 * score-tdep.c: Remove _initialize_score_tdep prototype.
8245 * selftest-arch.c: Remove _initialize_selftests_foreach_arch
8246 prototype.
8247 * ser-go32.c: Remove _initialize_ser_dos prototype.
8248 * ser-mingw.c: Remove _initialize_ser_windows prototype.
8249 * ser-pipe.c: Remove _initialize_ser_pipe prototype.
8250 * ser-tcp.c: Remove _initialize_ser_tcp prototype.
8251 * ser-unix.c: Remove _initialize_ser_hardwire prototype.
8252 * serial.c: Remove _initialize_serial prototype.
8253 * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype.
8254 * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype.
8255 * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype.
8256 * sh-tdep.c: Remove _initialize_sh_tdep prototype.
8257 * skip.c: Remove _initialize_step_skip prototype.
8258 * sol-thread.c: Remove _initialize_sol_thread prototype.
8259 * solib-aix.c: Remove _initialize_solib_aix prototype.
8260 * solib-darwin.c: Remove _initialize_darwin_solib prototype.
8261 * solib-dsbt.c: Remove _initialize_dsbt_solib prototype.
8262 * solib-frv.c: Remove _initialize_frv_solib prototype.
8263 * solib-spu.c: Remove _initialize_spu_solib prototype.
8264 * solib-svr4.c: Remove _initialize_svr4_solib prototype.
8265 * solib-target.c: Remove _initialize_solib_target prototype.
8266 * solib.c: Remove _initialize_solib prototype.
8267 * source.c: Remove _initialize_source prototype.
8268 * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype.
8269 * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep
8270 prototype.
8271 * sparc-nat.c: Remove _initialize_sparc_nat prototype.
8272 * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype.
8273 * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype.
8274 * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep
8275 prototype.
8276 * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype.
8277 * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype.
8278 * sparc-tdep.c: Remove _initialize_sparc_tdep prototype.
8279 * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat
8280 prototype.
8281 * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep
8282 prototype.
8283 * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat
8284 prototype.
8285 * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep
8286 prototype.
8287 * sparc64-nat.c: Remove _initialize_sparc64_nat prototype.
8288 * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat
8289 prototype.
8290 * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep
8291 prototype.
8292 * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat
8293 prototype.
8294 * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep
8295 prototype.
8296 * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep
8297 prototype.
8298 * spu-linux-nat.c: Remove _initialize_spu_nat prototype.
8299 * spu-multiarch.c: Remove _initialize_spu_multiarch prototype.
8300 * spu-tdep.c: Remove _initialize_spu_tdep prototype.
8301 * stabsread.c: Remove _initialize_stabsread prototype.
8302 * stack.c: Remove _initialize_stack prototype.
8303 * stap-probe.c: Remove _initialize_stap_probe prototype.
8304 * std-regs.c: Remove _initialize_frame_reg prototype.
8305 * symfile-debug.c: Remove _initialize_symfile_debug prototype.
8306 * symfile-mem.c: Remove _initialize_symfile_mem prototype.
8307 * symfile.c: Remove _initialize_symfile prototype.
8308 * symmisc.c: Remove _initialize_symmisc prototype.
8309 * symtab.c: Remove _initialize_symtab prototype.
8310 * target-dcache.c: Remove _initialize_target_dcache prototype.
8311 * target-descriptions.c: Remove _initialize_target_descriptions
8312 prototype.
8313 * thread.c: Remove _initialize_thread prototype.
8314 * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep
8315 prototype.
8316 * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype.
8317 * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype.
8318 * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep
8319 prototype.
8320 * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype.
8321 * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype.
8322 * tracefile.c: Remove _initialize_tracefile prototype.
8323 * tracepoint.c: Remove _initialize_tracepoint prototype.
8324 * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype.
8325 * tui/tui-interp.c: Remove _initialize_tui_interp prototype.
8326 * tui/tui-layout.c: Remove _initialize_tui_layout prototype.
8327 * tui/tui-regs.c: Remove _initialize_tui_regs prototype.
8328 * tui/tui-stack.c: Remove _initialize_tui_stack prototype.
8329 * tui/tui-win.c: Remove _initialize_tui_win prototype.
8330 * tui/tui.c: Remove _initialize_tui prototype.
8331 * typeprint.c: Remove _initialize_typeprint prototype.
8332 * user-regs.c: Remove _initialize_user_regs prototype.
8333 * utils.c: Remove _initialize_utils prototype.
8334 * v850-tdep.c: Remove _initialize_v850_tdep prototype.
8335 * valarith.c: Remove _initialize_valarith prototype.
8336 * valops.c: Remove _initialize_valops prototype.
8337 * valprint.c: Remove _initialize_valprint prototype.
8338 * value.c: Remove _initialize_values prototype.
8339 * varobj.c: Remove _initialize_varobj prototype.
8340 * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype.
8341 * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype.
8342 * vax-tdep.c: Remove _initialize_vax_tdep prototype.
8343 * windows-nat.c: Remove _initialize_windows_nat,
8344 _initialize_check_for_gdb_ini, and _initialize_loadable
8345 prototypes.
8346 * windows-tdep.c: Remove _initialize_windows_tdep prototype.
8347 * xcoffread.c: Remove _initialize_xcoffread prototype.
8348 * xml-support.c: Remove _initialize_xml_support prototype.
8349 * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype.
8350 * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat
8351 prototype.
8352 * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep
8353 prototype.
8354 * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype.
8355
8356 2017-09-08 Keith Seitz <keiths@redhat.com>
8357
8358 * dwarf2read.c (struct field_info) <fnfields>: Remove unused
8359 field.
8360
8361 2017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com>
8362
8363 * f-valprint.c (f_val_print): Remove check for one byte
8364 sized integers. Remove printing of character type.
8365
8366 2017-09-08 Frank Penczek <frank.penczek@intel.com>
8367 Christoph Weinmann <christoph.t.weinmann@intel.com>
8368 Bernhard Heckel <bernhard.heckel@intel.com>
8369
8370 * f-typeprint.c (f_type_print_base): Use fprintfi_filtered
8371 to maintain proper indentation when printing pointers/refs.
8372
8373 2017-09-07 Joel Brobecker <brobecker@adacore.com>
8374
8375 GDB 8.0.1 released.
8376
8377 2017-09-07 Joel Brobecker <brobecker@adacore.com>
8378
8379 * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell.
8380
8381 2017-09-05 Tom Tromey <tom@tromey.com>
8382
8383 * parse.c (funcall_chain): Now a std::vector.
8384 (start_arglist, end_arglist): Simplify.
8385 (free_funcalls): Remove.
8386 (parse_exp_in_context_1): Remove cleanup.
8387
8388 2017-09-05 Tom Tromey <tom@tromey.com>
8389
8390 * go-exp.y (go_parse): Don't create a cleanup.
8391
8392 2017-09-05 Tom Tromey <tom@tromey.com>
8393
8394 * d-exp.y (PrimaryExpression): Use std::string.
8395 (d_parse): Don't create a cleanup.
8396
8397 2017-09-05 Tom Tromey <tom@tromey.com>
8398
8399 * utils.c (do_clear_parser_state): Remove.
8400 (make_cleanup_clear_parser_state): Remove.
8401 * p-exp.y (pascal_parse): Use scoped_restore.
8402 * m2-exp.y (m2_parse): Use scoped_restore.
8403 * f-exp.y (f_parse): Use scoped_restore.
8404 * d-exp.y (d_parse): Use scoped_restore.
8405 * c-exp.y (c_parse): Use scoped_restore.
8406 * ada-exp.y (ada_parse): Use scoped_restore.
8407 * utils.h (make_cleanup_clear_parser_state): Remove.
8408
8409 2017-09-06 Keith Seitz <keiths@redhat.com>
8410
8411 * dwarf2read.c (dw2_linkage_name_attr): New function.
8412 (dw2_linkage_name): New function.
8413 (dwarf2_compute_name, dwarf2_physname, read_call_site_scope)
8414 (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name.
8415 (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr.
8416
8417 2017-09-06 Kamil Rytarowski <n54@gmx.com>
8418
8419 * config/djgpp/djconfig.sh: Correct shell portability issue.
8420
8421 2017-09-06 Kamil Rytarowski <n54@gmx.com>
8422
8423 * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD.
8424
8425 2017-09-06 John Baldwin <jhb@FreeBSD.org>
8426
8427 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
8428 * NEWS: Mention new FreeBSD/mips native configuration.
8429 * configure.host: Add aarch64*-*-freebsd*.
8430 * configure.nat: Likewise.
8431 * aarch64-fbsd-nat.c: New file.
8432
8433 2017-09-06 John Baldwin <jhb@FreeBSD.org>
8434
8435 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o.
8436 (ALLDEPFILES): Add aarch64-fbsd-tdep.c.
8437 * NEWS: Mention new FreeBSD/aarch64 target.
8438 * configure.tgt: Add aarch64*-*-freebsd*.
8439 * aarch64-fbsd-tdep.c: New file.
8440 * aarch64-fbsd-tdep.h: New file.
8441
8442 2017-09-06 Kamil Rytarowski <n54@gmx.com>
8443
8444 * MAINTAINERS (Write After Approval): Add Kamil Rytarowski.
8445
8446 2017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
8447
8448 * parse.c (find_minsym_type_and_address): Don't relocate addresses
8449 of TLS symbols.
8450
8451 2017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8452
8453 * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
8454 call.
8455
8456 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
8457
8458 * infrun.c (follow_exec): Call add_thread after
8459 target_find_description.
8460
8461 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
8462
8463 * infrun.c (handle_inferior_event_1): When exec'ing, read
8464 stop_pc after follow_exec.
8465
8466 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
8467
8468 * remote.c (process_g_packet): Update error message.
8469
8470 2017-09-05 Yao Qi <yao.qi@linaro.org>
8471
8472 * configure.tgt (gdb_target_obs): Add i386.o for x86_64-*
8473 targets.
8474
8475 2017-09-05 Pedro Alves <palves@redhat.com>
8476
8477 * eval.c (eval_call, evaluate_funcall): New functions, factored
8478 out from ...
8479 (evaluate_subexp_standard): ... this.
8480
8481 2017-09-05 Yao Qi <yao.qi@linaro.org>
8482
8483 * amd64-tdep.c (amd64_target_description): Create target
8484 descriptions.
8485 (_initialize_amd64_tdep): Don't call functions
8486 initialize_tdesc_amd64_*. Add self tests.
8487 * arch/amd64.c (amd64_create_target_description): Add parameter
8488 is_linux. Call set_tdesc_osabi if is_linux is true.
8489 * arch/amd64.h (amd64_create_target_description): Update the
8490 declaration.
8491 * arch/i386.c (i386_create_target_description): Add parameter
8492 is_linux. Call set_tdesc_osabi if is_linux is true.
8493 * arch/i386.h (i386_create_target_description): Update
8494 declaration.
8495 * configure.tgt: Add i386.o to gdb_target_obs.
8496 * features/Makefile (XMLTOC): Remove i386/*.xml.
8497 * features/i386/amd64-avx-avx512.c: Remove.
8498 * features/i386/amd64-avx-mpx-avx512-pku.c: Remove.
8499 * features/i386/amd64-avx-mpx.c: Remove.
8500 * features/i386/amd64-avx.c: Remove.
8501 * features/i386/amd64-mpx.c: Remove.
8502 * features/i386/amd64.c: Remove.
8503 * features/i386/i386-avx-avx512.c: Remove.
8504 * features/i386/i386-avx-mpx-avx512-pku.c: Remove.
8505 * features/i386/i386-avx-mpx.c: Remove.
8506 * features/i386/i386-avx.c: Remove.
8507 * features/i386/i386-mmx.c: Remove.
8508 * features/i386/i386-mpx.c: Remove.
8509 * features/i386/i386.c: Remove.
8510 * i386-tdep.c: Don't include features/i386/i386*.c., include
8511 target-descriptions.h and arch/i386.h.
8512 (i386_target_description): Create target descriptions.
8513 (i386_gdbarch_init): Don't call initialize_tdesc_i386_*
8514 functions. Do self tests.
8515
8516 2017-09-05 Yao Qi <yao.qi@linaro.org>
8517
8518 * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml.
8519 * features/i386/amd64-avx-avx512-linux.c: Removed.
8520 * features/i386/amd64-avx-linux.c: Removed.
8521 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed.
8522 * features/i386/amd64-avx-mpx-linux.c: Removed.
8523 * features/i386/amd64-linux.c: Removed.
8524 * features/i386/amd64-mpx-linux.c: Removed.
8525 * features/i386/x32-avx-avx512-linux.c: Removed.
8526 * features/i386/x32-avx-linux.c: Removed.
8527 * features/i386/x32-linux.c: Removed.
8528
8529 2017-09-05 Yao Qi <yao.qi@linaro.org>
8530
8531 * amd64-linux-tdep.c: Include arch/amd64.h. Don't include
8532 features/i386/*.c.
8533 (amd64_linux_read_description): Call
8534 amd64_create_target_description.
8535 * arch/amd64.c: New file.
8536 * arch/amd64.h: New file.
8537 * configure.tgt (x86_64-*-linux*): Append amd64.o.
8538 * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o.
8539
8540 2017-09-05 Yao Qi <yao.qi@linaro.org>
8541
8542 * amd64-linux-tdep.c: Don't include amd64-XXX-linux and
8543 x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c.
8544 (amd64_linux_read_description): Create target descriptions.
8545 (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX
8546 functions. Add unit tests.
8547 * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and
8548 x32-core.xml.
8549 * features/i386/64bit-avx.c: Generated.
8550 * features/i386/64bit-avx512.c: Generated.
8551 * features/i386/64bit-core.c: Generated.
8552 * features/i386/64bit-linux.c: Generated.
8553 * features/i386/64bit-mpx.c: Generated.
8554 * features/i386/64bit-pkeys.c: Generated.
8555 * features/i386/64bit-segments.c: Generated.
8556 * features/i386/64bit-sse.c: Generated.
8557 * features/i386/x32-core.c: Generated.
8558 * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature
8559 c files for amd64-linux and x32-linux.
8560
8561 2017-09-05 Yao Qi <yao.qi@linaro.org>
8562
8563 * amd64-linux-tdep.c (amd64_linux_read_description): New
8564 function.
8565 (amd64_linux_core_read_description): Call
8566 amd64_linux_read_description.
8567 (amd64_linux_init_abi): Likewise.
8568 (amd64_x32_linux_init_abi): Likewise.
8569 * amd64-linux-tdep.h (amd64_linux_read_description): Declare.
8570 * x86-linux-nat.c (x86_linux_read_description): Call
8571 amd64_linux_read_description.
8572
8573 2017-09-05 Yao Qi <yao.qi@linaro.org>
8574
8575 * amd64-linux-tdep.c (amd64_linux_core_read_description): Update
8576 comments.
8577
8578 2017-09-05 Yao Qi <yao.qi@linaro.org>
8579
8580 * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml.
8581 * features/i386/i386-avx-avx512-linux.c: Remove.
8582 * features/i386/i386-avx-linux.c: Remove.
8583 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove.
8584 * features/i386/i386-avx-mpx-linux.c: Remove.
8585 * features/i386/i386-linux.c: Remove.
8586 * features/i386/i386-mmx-linux.c: Remove.
8587 * features/i386/i386-mpx-linux.c: Remove.
8588
8589 2017-09-05 Yao Qi <yao.qi@linaro.org>
8590
8591 * Makefile.in (ALL_TARGET_OBS): Add i386.o.
8592 (SFILES): Add arch/i386.c.
8593 (HFILES_NO_SRCDIR): Add arch/i386.h.
8594 * arch/i386.c: New file.
8595 * arch/i386.h: New file.
8596 * arch/tdesc.h (allocate_target_description): Declare.
8597 (set_tdesc_architecture): Declare.
8598 (set_tdesc_osabi): Declare.
8599 * configure.tgt (i[34567]86-*-linux*): Add i386.o.
8600 * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c.
8601 include arch/i386.h.
8602 (i386_linux_read_description): Remove code and call
8603 i386_create_target_description.
8604 (set_tdesc_architecture): New function.
8605 (set_tdesc_osabi): New function.
8606 * target-descriptions.h (allocate_target_description): Remove.
8607
8608 2017-09-05 Yao Qi <yao.qi@linaro.org>
8609
8610 * arch/tdesc.h (tdesc_create_feature): Add an argument xml.
8611 * target-descriptions.c (tdesc_create_feature): Likewise, and
8612 adjust code.
8613 * features/i386/32bit-avx.c: Re-generated.
8614 * features/i386/32bit-avx512.c: Re-generated.
8615 * features/i386/32bit-core.c: Re-generated.
8616 * features/i386/32bit-linux.c: Re-generated.
8617 * features/i386/32bit-mpx.c: Re-generated.
8618 * features/i386/32bit-pkeys.c: Re-generated.
8619 * features/i386/32bit-sse.c: Re-generated.
8620
8621 2017-09-05 Yao Qi <yao.qi@linaro.org>
8622
8623 * regformats/regdef.h (struct reg): Override operator == and !=.
8624
8625 2017-09-05 Yao Qi <yao.qi@linaro.org>
8626
8627 * arch/tdesc.h: New file.
8628 * regformats/regdat.sh: Generate code using tdesc_create_reg.
8629 * target-descriptions.c: Update comments.
8630 * target-descriptions.h: Include "arch/tdesc.h". Remove the
8631 declarations.
8632 * features/i386/32bit-avx.c: Re-generated.
8633 * features/i386/32bit-avx512.c: Re-generated.
8634 * features/i386/32bit-core.c: Re-generated.
8635 * features/i386/32bit-linux.c: Re-generated.
8636 * features/i386/32bit-mpx.c: Re-generated.
8637 * features/i386/32bit-pkeys.c: Re-generated.
8638 * features/i386/32bit-sse.c: Re-generated.
8639
8640 2017-09-05 Yao Qi <yao.qi@linaro.org>
8641
8642 * regformats/regdat.sh: Update generated code.
8643
8644 2017-09-05 Yao Qi <yao.qi@linaro.org>
8645
8646 * regformats/regdat.sh: Adjust code order.
8647
8648 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
8649
8650 * expprint.c (dump_subexp_body_standard): Use constant format
8651 string in fprintf_filtered call.
8652
8653 2017-09-04 John Baldwin <jhb@FreeBSD.org>
8654
8655 * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and
8656 NetBSD/i386.
8657 * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX.
8658
8659 2017-09-04 John Baldwin <jhb@FreeBSD.org>
8660
8661 * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H.
8662
8663 2017-09-04 John Baldwin <jhb@FreeBSD.org>
8664
8665 * bsd-kvm.o: Define _KMEMUSER.
8666 * configure.ac: Define _KMEMUSER when checking for "struct lwp".
8667 * configure: Regenerate.
8668
8669 2017-09-04 John Baldwin <jhb@FreeBSD.org>
8670
8671 * amd64-fbsd-nat.c: Add include of "x86-xstate.h".
8672 * i386-fbsd-nat.c: Likewise.
8673
8674 2017-09-04 John Baldwin <jhb@FreeBSD.org>
8675
8676 * unittests/array-view-selftests.c: Add include of <array>.
8677
8678 2017-09-04 John Baldwin <jhb@FreeBSD.org>
8679
8680 * spu-tdep.c (flush_ea_cache): Add missing argument to
8681 call_function_by_hand.
8682
8683 2017-09-04 Pedro Alves <palves@redhat.com>
8684
8685 * NEWS (Safer support for debugging with no debug info): New.
8686
8687 2017-09-04 Pedro Alves <palves@redhat.com>
8688
8689 * c-exp.y (function_method, function_method_void): Add current
8690 instance flags to TYPE_INSTANCE.
8691 * dwarf2read.c (check_modifier): New.
8692 (compute_delayed_physnames): Assert that only C++ adds delayed
8693 physnames. Mark fn_fields as const/volatile depending on
8694 physname.
8695 * eval.c (make_params): New type_instance_flags parameter. Use
8696 it as the new type's instance flags.
8697 (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance
8698 flags element and pass it to make_params.
8699 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle
8700 instance flags element.
8701 (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise.
8702 * gdbtypes.h: Include "enum-flags.h".
8703 (type_instance_flags): New enum-flags type.
8704 (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC)
8705 (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean.
8706 * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust.
8707 (follow_type_instance_flags): New function.
8708 (operator_check_standard) <TYPE_INSTANCE>: Adjust.
8709 * parser-defs.h (follow_type_instance_flags): Declare.
8710 * valops.c (value_struct_elt_for_reference): const/volatile must
8711 match too.
8712
8713 2017-09-04 Pedro Alves <palves@redhat.com>
8714
8715 * cp-namespace.c (cp_search_static_and_baseclasses): Handle
8716 function/method scopes; lookup the nested name as a function local
8717 static variable.
8718
8719 2017-09-04 Pedro Alves <palves@redhat.com>
8720
8721 (%type <voidval>): Add function_method.
8722 * c-exp.y (exp): New production for calls with no arguments.
8723 (function_method, function_method_void_or_typelist): New
8724 productions.
8725 (exp): New production for "method()::static_var".
8726 * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR.
8727 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
8728 Handle OP_FUNC_STATIC_VAR.
8729 * parse.c (operator_length_standard):
8730 Handle OP_FUNC_STATIC_VAR.
8731
8732 2017-09-04 Pedro Alves <palves@redhat.com>
8733
8734 * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS
8735 handling.
8736 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
8737 Ditto.
8738 * parse.c (operator_length_standard, operator_check_standard):
8739 Ditto.
8740 * std-operator.def (UNOP_MEMVAL_TLS): Delete.
8741
8742 2017-09-04 Pedro Alves <palves@redhat.com>
8743
8744 * ax-gdb.c: Include "typeprint.h".
8745 (gen_expr_for_cast): New function.
8746 (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it.
8747 <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's
8748 type is unknown.
8749 * dwarf2read.c (new_symbol_full): Fallback to int instead of
8750 nodebug_data_symbol.
8751 * eval.c: Include "typeprint.h".
8752 (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>:
8753 Error out if symbol has unknown type.
8754 <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to
8755 evaluate_subexp_for_cast.
8756 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle
8757 OP_VAR_MSYM_VALUE.
8758 (evaluate_subexp_for_cast): New function.
8759 * gdbtypes.c (init_nodebug_var_type): New function.
8760 (objfile_type): Use it to initialize types of variables with no
8761 debug info.
8762 * typeprint.c (error_unknown_type): New.
8763 * typeprint.h (error_unknown_type): New declaration.
8764 * compile/compile-c-types.c (convert_type_basic): Handle
8765 TYPE_CODE_ERROR; warn and fallback to int for variables with
8766 unknown type.
8767
8768 2017-09-04 Pedro Alves <palves@redhat.com>
8769
8770 * eval.c (evaluate_var_value): New function, factored out from ...
8771 (evaluate_subexp_standard): ... here.
8772
8773 2017-09-04 Pedro Alves <palves@redhat.com>
8774
8775 * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>:
8776 Remove useless assignments to 'op'.
8777
8778 2017-09-04 Pedro Alves <palves@redhat.com>
8779
8780 * eval.c (eval_skip_value): New function.
8781 (evaluate_subexp_standard): Use it.
8782
8783 2017-09-04 Pedro Alves <palves@redhat.com>
8784
8785 * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract
8786 function name from symbol/minsym and pass it to
8787 error_call_unknown_return_type.
8788
8789 2017-09-04 Pedro Alves <palves@redhat.com>
8790
8791 * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE.
8792 * ax-gdb.c (gen_msym_var_ref): New function.
8793 (gen_expr): Handle OP_VAR_MSYM_VALUE.
8794 * eval.c (evaluate_var_msym_value): New function.
8795 * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE.
8796 <OP_FUNCALL>: Extract function name from symbol/minsym and pass it
8797 to call_function_by_hand.
8798 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
8799 Handle OP_VAR_MSYM_VALUE.
8800 (union exp_element) <msymbol>: New field.
8801 * minsyms.h (struct type): Forward declare.
8802 (find_minsym_type_and_address): Declare.
8803 * parse.c (write_exp_elt_msym): New function.
8804 (write_exp_msymbol): Delete, refactored as ...
8805 (find_minsym_type_and_address): ... this new function.
8806 (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE.
8807 (operator_length_standard, operator_check_standard): Handle
8808 OP_VAR_MSYM_VALUE.
8809 * std-operator.def (OP_VAR_MSYM_VALUE): New.
8810
8811 2017-09-04 Pedro Alves <palves@redhat.com>
8812
8813 * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle
8814 TYPE_GNU_IFUNC specially here. Throw error if return type is
8815 unknown.
8816 * ada-typeprint.c (print_func_type): Handle functions with unknown
8817 return type.
8818 * c-typeprint.c (c_type_print_base): Handle functions and methods
8819 with unknown return type.
8820 * compile/compile-c-symbols.c (convert_symbol_bmsym)
8821 <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol.
8822 * compile/compile-c-types.c: Include "objfiles.h".
8823 (convert_func): For functions with unknown return type, warn and
8824 default to int.
8825 * compile/compile-object-run.c (compile_object_run): Adjust call
8826 to call_function_by_hand_dummy.
8827 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to
8828 call_function_by_hand.
8829 * eval.c (evaluate_subexp_standard): Adjust calls to
8830 call_function_by_hand. Handle functions and methods with unknown
8831 return type. Pass expect_type to call_function_by_hand.
8832 * f-typeprint.c (f_type_print_base): Handle functions with unknown
8833 return type.
8834 * gcore.c (call_target_sbrk): Adjust call to
8835 call_function_by_hand.
8836 * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL
8837 return type instead of int. Make nodebug_text_gnu_ifunc_symbol be
8838 an integer address type instead of nodebug.
8839 * guile/scm-value.c (gdbscm_value_call): Adjust call to
8840 call_function_by_hand.
8841 * infcall.c (error_call_unknown_return_type): New function.
8842 (call_function_by_hand): New "default_return_type" parameter.
8843 Pass it down.
8844 (call_function_by_hand_dummy): New "default_return_type"
8845 parameter. Use it instead of defaulting to int. If there's no
8846 default and the return type is unknown, throw an error. If
8847 there's a default return type, and the called function has no
8848 debug info, then assume the function is prototyped.
8849 * infcall.h (call_function_by_hand, call_function_by_hand_dummy):
8850 New "default_return_type" parameter.
8851 (error_call_unknown_return_type): New declaration.
8852 * linux-fork.c (call_lseek): Cast return type of lseek.
8853 (inferior_call_waitpid, checkpoint_command): Adjust calls to
8854 call_function_by_hand.
8855 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust
8856 calls to call_function_by_hand.
8857 * m2-typeprint.c (m2_procedure): Handle functions with unknown
8858 return type.
8859 * objc-lang.c (lookup_objc_class, lookup_child_selector)
8860 (value_nsstring, print_object_command): Adjust calls to
8861 call_function_by_hand.
8862 * p-typeprint.c (pascal_type_print_varspec_prefix): Handle
8863 functions with unknown return type.
8864 (pascal_type_print_func_varspec_suffix): New function.
8865 (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC,
8866 TYPE_CODE_METHOD>: Use it.
8867 * python/py-value.c (valpy_call): Adjust call to
8868 call_function_by_hand.
8869 * rust-lang.c (rust_evaluate_funcall): Adjust call to
8870 call_function_by_hand.
8871 * valarith.c (value_x_binop, value_x_unop): Adjust calls to
8872 call_function_by_hand.
8873 * valops.c (value_allocate_space_in_inferior): Adjust call to
8874 call_function_by_hand.
8875 * typeprint.c (type_print_unknown_return_type): New function.
8876 * typeprint.h (type_print_unknown_return_type): New declaration.
8877
8878 2017-09-04 Pedro Alves <palves@redhat.com>
8879
8880 * gdbtypes.c (lookup_function_type_with_arguments): Mark function
8881 types with more than one parameter as prototyped.
8882
8883 2017-09-04 Pedro Alves <palves@redhat.com>
8884
8885 * cli/cli-cmds.c (print_disassembly, disassemble_current_function)
8886 (disassemble_command): Use gdb_disassembly_flags instead of bare
8887 int.
8888 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn)
8889 (dump_insns, do_mixed_source_and_assembly_deprecated)
8890 (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly):
8891 Use gdb_disassembly_flags instead of bare int.
8892 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN)
8893 (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME)
8894 (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE)
8895 (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're...
8896 (enum gdb_disassembly_flag): ... values of this new enumeration.
8897 (gdb_disassembly_flags): Define.
8898 (gdb_disassembly)
8899 (gdb_pretty_print_disassembler::pretty_print_insn): Use it.
8900 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use
8901 gdb_disassembly_flags instead of bare int.
8902 * record-btrace.c (btrace_insn_history)
8903 (record_btrace_insn_history, record_btrace_insn_history_range)
8904 (record_btrace_insn_history_from): Use gdb_disassembly_flags
8905 instead of bare int.
8906 * record.c (get_insn_history_modifiers, cmd_record_insn_history):
8907 Use gdb_disassembly_flags instead of bare int.
8908 * target-debug.h (target_debug_print_gdb_disassembly_flags):
8909 Define.
8910 * target-delegates.c: Regenerate.
8911 * target.c (target_insn_history, target_insn_history_from)
8912 (target_insn_history_range): Use gdb_disassembly_flags instead of
8913 bare int.
8914 * target.h: Include "disasm.h".
8915 (struct target_ops) <to_insn_history, to_insn_history_from,
8916 to_insn_history_range>: Use gdb_disassembly_flags instead of bare
8917 int.
8918 (target_insn_history, target_insn_history_from)
8919 (target_insn_history_range): Use gdb_disassembly_flags instead of
8920 bare int.
8921
8922 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
8923
8924 * cli/cli-script.c (build_command_line): For if/while commands,
8925 check whether args is empty.
8926
8927 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
8928
8929 * cli/cli-script.h (enum misc_command_type): Move from defs.h.
8930 (enum command_control_type): Likewise.
8931 (struct command_line): Likewise.
8932 (free_command_lines): Likewise.
8933 (struct command_lines_deleter): Likewise.
8934 (command_line_up): Likewise.
8935 (read_command_lines): Likewise.
8936 (read_command_lines_1): Likewise.
8937 * defs.h (enum misc_command_type): Move to cli/cli-script.h.
8938 (enum command_control_type): Likewise.
8939 (struct command_line): Likewise.
8940 (free_command_lines): Likewise.
8941 (struct command_lines_deleter): Likewise.
8942 (command_line_up): Likewise.
8943 (read_command_lines): Likewise.
8944 (read_command_lines_1): Likewise.
8945 * breakpoint.h: Include cli/cli-script.h.
8946 * extension-priv.h: Likewise.
8947 * gdbcmd.h: Likewise.
8948
8949 2017-09-04 Pedro Alves <palves@redhat.com>
8950
8951 * ada-lang.c (is_known_support_routine): Move sal declaration to
8952 where it is initialized.
8953 * breakpoint.c (create_internal_breakpoint, init_catchpoint)
8954 (parse_breakpoint_sals, decode_static_tracepoint_spec)
8955 (clear_command, update_static_tracepoint): Remove init_sal
8956 references. Move declarations closer to initializations.
8957 * cli/cli-cmds.c (list_command): Move sal declarations closer to
8958 initializations.
8959 * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal
8960 references. Move sal declarations closer to initializations.
8961 * frame.c (find_frame_sal): Return a symtab_and_line via function
8962 return instead of output parameter. Remove init_sal references.
8963 * frame.h (find_frame_sal): Return a symtab_and_line via function
8964 return instead of output parameter.
8965 * guile/scm-frame.c (gdbscm_frame_sal): Adjust.
8966 * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new
8967 instead of memset.
8968 (gdbscm_find_pc_line): Remove init_sal reference.
8969 * infcall.c (call_function_by_hand_dummy): Remove init_sal
8970 references. Move declarations closer to initializations.
8971 * infcmd.c (set_step_frame): Update. Move declarations closer to
8972 initializations.
8973 (finish_backward): Remove init_sal references. Move declarations
8974 closer to initializations.
8975 * infrun.c (process_event_stop_test, handle_step_into_function)
8976 (insert_hp_step_resume_breakpoint_at_frame)
8977 (insert_step_resume_breakpoint_at_caller): Likewise.
8978 * linespec.c (create_sals_line_offset, decode_digits_ordinary)
8979 (symbol_to_sal): Likewise.
8980 * probe.c (parse_probes_in_pspace): Remove init_sal reference.
8981 * python/py-frame.c (frapy_find_sal): Move sal declaration closer
8982 to its initialization.
8983 * reverse.c (save_bookmark_command): Use new/delete. Remove
8984 init_sal references. Move declarations closer to initializations.
8985 * source.c (get_current_source_symtab_and_line): Remove brace
8986 initialization.
8987 (set_current_source_symtab_and_line): Now takes the sal by const
8988 reference. Remove brace initialization.
8989 (line_info): Remove init_sal reference.
8990 * source.h (set_current_source_symtab_and_line): Now takes a
8991 symtab_and_line via const reference.
8992 * stack.c (set_current_sal_from_frame): Adjust.
8993 (print_frame_info): Adjust.
8994 (get_last_displayed_sal): Return the sal via function return
8995 instead of via output parameter. Simplify.
8996 (frame_info): Adjust.
8997 * stack.h (get_last_displayed_sal): Return the sal via function
8998 return instead of via output parameter.
8999 * symtab.c (init_sal): Delete.
9000 (find_pc_sect_line): Remove init_sal references. Move
9001 declarations closer to initializations.
9002 (find_function_start_sal): Remove init_sal references. Move
9003 declarations closer to initializations.
9004 * symtab.h (struct symtab_and_line): In-class initialize all
9005 fields.
9006 * tracepoint.c (set_traceframe_context)
9007 (print_one_static_tracepoint_marker): Remove init_sal references.
9008 Move declarations closer to initializations.
9009 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust.
9010 * tui/tui-stack.c (tui_show_frame_info): Adjust. Move
9011 declarations closer to initializations.
9012 * tui/tui-winsource.c (tui_update_source_window_as_is): Remove
9013 init_sal references. Adjust.
9014
9015 2017-09-04 Pedro Alves <palves@redhat.com>
9016
9017 * ax-gdb.c (agent_command_1): Use range-for.
9018 * break-catch-throw.c (re_set_exception_catchpoint): Update.
9019 * breakpoint.c: Include "common/array-view.h".
9020 (init_breakpoint_sal, create_breakpoint_sal): Change sals
9021 parameter from struct symtabs_and_lines to
9022 array_view<symtab_and_line>. Adjust. Use range-for. Update.
9023 (breakpoint_sals_to_pc): Change sals parameter from struct
9024 symtabs_and_lines to std::vector reference.
9025 (check_fast_tracepoint_sals): Change sals parameter from struct
9026 symtabs_and_lines to std::array_view. Use range-for.
9027 (decode_static_tracepoint_spec): Return a std::vector instead of
9028 symtabs_and_lines. Update.
9029 (create_breakpoint): Update.
9030 (break_range_command, until_break_command, clear_command): Update.
9031 (base_breakpoint_decode_location, bkpt_decode_location)
9032 (bkpt_probe_create_sals_from_location)
9033 (bkpt_probe_decode_location, tracepoint_decode_location)
9034 (tracepoint_probe_decode_location)
9035 (strace_marker_create_sals_from_location): Return a std::vector
9036 instead of symtabs_and_lines.
9037 (strace_marker_create_breakpoints_sal): Update.
9038 (strace_marker_decode_location): Return a std::vector instead of
9039 symtabs_and_lines. Update.
9040 (update_breakpoint_locations): Change struct symtabs_and_lines
9041 parameters to gdb::array_view. Adjust.
9042 (location_to_sals): Return a std::vector instead of
9043 symtabs_and_lines. Update.
9044 (breakpoint_re_set_default): Use std::vector instead of struct
9045 symtabs_and_lines.
9046 (decode_location_default): Return a std::vector instead of
9047 symtabs_and_lines. Update.
9048 * breakpoint.h: Include "common/array-view.h".
9049 (struct breakpoint_ops) <decode_location>: Now returns a
9050 std::vector instead of returning a symtabs_and_lines via output
9051 parameter.
9052 (update_breakpoint_locations): Change sals parameters to use
9053 gdb::array_view.
9054 * cli/cli-cmds.c (edit_command, list_command): Update to use
9055 std::vector and gdb::array_view.
9056 (ambiguous_line_spec): Adjust to use gdb::array_view and
9057 range-for.
9058 (compare_symtabs): Rename to ...
9059 (cmp_symtabs): ... this. Change parameters to symtab_and_line
9060 const reference and adjust.
9061 (filter_sals): Rewrite using std::vector and standard algorithms.
9062 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify.
9063 (jump_command): Update to use std::vector.
9064 * linespec.c (struct linespec_state) <canonical_names>: Update
9065 comment.
9066 (add_sal_to_sals_basic): Delete.
9067 (add_sal_to_sals, filter_results, convert_results_to_lsals)
9068 (decode_line_2, create_sals_line_offset)
9069 (convert_address_location_to_sals, convert_linespec_to_sals)
9070 (convert_explicit_location_to_sals, parse_linespec)
9071 (event_location_to_sals, decode_line_full, decode_line_1)
9072 (decode_line_with_current_source)
9073 (decode_line_with_last_displayed, decode_objc)
9074 (decode_digits_list_mode, decode_digits_ordinary, minsym_found)
9075 (linespec_result::~linespec_result): Adjust to use std::vector
9076 instead of symtabs_and_lines.
9077 * linespec.h (linespec_sals::sals): Now a std::vector.
9078 (struct linespec_result): Use std::vector, bool, and in-class
9079 initialization.
9080 (decode_line_1, decode_line_with_current_source)
9081 (decode_line_with_last_displayed): Return std::vector.
9082 * macrocmd.c (info_macros_command): Use std::vector.
9083 * mi/mi-main.c (mi_cmd_trace_find): Use std::vector.
9084 * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use
9085 std::vector.
9086 * probe.h (parse_probes): Return a std::vector.
9087 * python/python.c (gdbpy_decode_line): Use std::vector and
9088 gdb::array_view.
9089 * source.c (select_source_symtab, line_info): Use std::vector.
9090 * stack.c (func_command): Use std::vector.
9091 * symtab.h (struct symtabs_and_lines): Delete.
9092 * tracepoint.c (tfind_line_command, scope_info): Use std::vector.
9093
9094 2017-09-04 Pedro Alves <palves@redhat.com>
9095
9096 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9097 unittests/array-view-selftests.c.
9098 (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o.
9099 * common/array-view.h: New file.
9100 * unittests/array-view-selftests.c: New file.
9101
9102 2017-09-04 Pedro Alves <palves@redhat.com>
9103
9104 * cli/cli-cmds.c (edit_command): Pass message to
9105 ambiguous_line_spec.
9106 (list_command): Pass message to ambiguous_line_spec. Say
9107 "first"/"last" instead of "start" and "end" to be consistent with
9108 the manual.
9109 (ambiguous_line_spec): Add 'format' and vararg parameters. Use
9110 them to print formatted message.
9111
9112 2017-09-04 Pedro Alves <palves@redhat.com>
9113
9114 * btrace.c (ftrace_add_pt): Pass btrace_insn to
9115 ftrace_update_insns by reference instead of pointer.
9116
9117 2017-09-04 Yao Qi <yao.qi@linaro.org>
9118
9119 * i386-go32-tdep.c: Include x86-xstate.h.
9120 (i386_go32_init_abi): Call i386_target_description.
9121 * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx
9122 if xcr0 is X86_XSTATE_X87_MASK.
9123 * i386-tdep.h (tdesc_i386): Remove the declaration.
9124 (tdesc_i386_mmx): Likewise.
9125
9126 2017-09-04 Yao Qi <yao.qi@linaro.org>
9127
9128 * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return
9129 X86_XSTATE_SSE_MASK instead of 0.
9130
9131 2017-09-04 Yao Qi <yao.qi@linaro.org>
9132
9133 * amd64-fbsd-nat.c (amd64fbsd_read_description): Call
9134 i386_target_description.
9135 * i386-fbsd-nat.c (i386fbsd_read_description): Call
9136 i386_target_description.
9137 * i386-tdep.c (i386_gdbarch_init): Likewise.
9138
9139 2017-09-04 Yao Qi <yao.qi@linaro.org>
9140
9141 * amd64-darwin-tdep.c: Include "x86-xstate.h".
9142 (x86_darwin_init_abi_64): Call amd64_target_description.
9143 * amd64-dicos-tdep.c: Likewise.
9144 * amd64-fbsd-nat.c: Likewise.
9145 * amd64-fbsd-tdep.c: Likewise.
9146 * amd64-nbsd-tdep.c: Likewise.
9147 * amd64-obsd-tdep.c: Likewise.
9148 * amd64-sol2-tdep.c: Likewise.
9149 * amd64-windows-tdep.c: Likewise.
9150 * amd64-tdep.h (tdesc_amd64): Remove the declaration.
9151
9152 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
9153
9154 * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove.
9155 (btrace_function) <insn>: Change type to use std::vector.
9156 * btrace.c (ftrace_debug, ftrace_call_num_insn,
9157 ftrace_find_call, ftrace_new_gap, ftrace_update_function,
9158 ftrace_update_insns, ftrace_compute_global_level_offset,
9159 btrace_stitch_bts, btrace_clear, btrace_insn_get,
9160 btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to
9161 change to std::vector.
9162 (ftrace_update_insns): Adjust to change to std::vector, change
9163 type of INSN parameter.
9164 (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns.
9165 * record-btrace.c (btrace_call_history_insn_range,
9166 btrace_compute_src_line_range,
9167 record_btrace_frame_prev_register): Adjust to change to
9168 std::vector.
9169 * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust
9170 to change to std::vector.
9171
9172 2017-09-03 Tom Tromey <tom@tromey.com>
9173
9174 * corefile.c (reopen_exec_file): Use std::string.
9175
9176 2017-09-03 Tom Tromey <tom@tromey.com>
9177
9178 * compile/compile.c (compile_register_name_mangled): Return
9179 std::string.
9180 * compile/compile-loc2c.c (pushf_register_address): Update.
9181 (pushf_register): Update.
9182 * compile/compile-c-types.c (convert_array): Update.
9183 * compile/compile-c-symbols.c (generate_vla_size): Update.
9184 (error_symbol_once): Use a gdb::unique_xmalloc_ptr.
9185 (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr.
9186 (convert_one_symbol): Update.
9187 (generate_c_for_for_one_variable): Update.
9188 * compile/compile-c-support.c (c_get_range_decl_name): Return a
9189 std::string.
9190 (generate_register_struct): Update.
9191 * compile/compile-internal.h (c_get_range_decl_name): Return a
9192 std::string.
9193 (compile_register_name_mangled): Return std::string.
9194
9195 2017-09-03 Tom Tromey <tom@tromey.com>
9196
9197 * utils.c (perror_string): Return a std::string.
9198 (throw_perror_with_name, perror_warning_with_name): Update.
9199
9200 2017-09-03 Tom Tromey <tom@tromey.com>
9201
9202 * demangle.c (demangle_command): Use std::string,
9203 unique_xmalloc_ptr.
9204
9205 2017-09-03 Tom Tromey <tom@tromey.com>
9206
9207 * cli/cli-setshow.c (do_set_command): Use std::string.
9208
9209 2017-09-03 Tom Tromey <tom@tromey.com>
9210
9211 * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr.
9212
9213 2017-09-03 Tom Tromey <tom@tromey.com>
9214
9215 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string.
9216
9217 2017-09-03 Tom Tromey <tom@tromey.com>
9218
9219 * mi/mi-cmd-env.c (env_execute_cli_command): Use
9220 gdb::unique_xmalloc_ptr.
9221
9222 2017-09-03 Tom Tromey <tom@tromey.com>
9223
9224 * thread.c (print_thread_info_1): Use string_printf.
9225 (thread_apply_command, thread_apply_all_command): Use
9226 std::string.
9227
9228 2017-09-03 Tom Tromey <tom@tromey.com>
9229
9230 * valprint.c (val_print_string): Update.
9231 * gdbcore.h (memory_error_message): Return std::string.
9232 * corefile.c (memory_error_message): Return std::string.
9233 (memory_error): Update.
9234 * breakpoint.c (insert_bp_location): Update.
9235
9236 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
9237
9238 * target/waitstatus.h (target_waitstatus_to_string): Change
9239 return type to std::string.
9240 * target/waitstatus.c (target_waitstatus_to_string): Return
9241 std::string.
9242 * target.h (target_waitstatus_to_string): Remove declaration.
9243 * infrun.c (resume, clear_proceed_status_thread,
9244 print_target_wait_results, do_target_wait, save_waitstatus,
9245 stop_all_threads): Adjust.
9246 * record-btrace.c (record_btrace_wait): Adjust.
9247 * target-debug.h
9248 (target_debug_print_struct_target_waitstatus_p): Adjust.
9249
9250 2017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9251
9252 PR gdb/22046
9253 * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED
9254 detection.
9255
9256 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
9257
9258 * NEWS (Changes since GDB 8.0): Add entry mentioning new support
9259 for setting/unsetting environment variables on the remote target.
9260 (New remote packets): Add entries for QEnvironmentHexEncoded,
9261 QEnvironmentUnset and QEnvironmentReset.
9262 * common/environ.c (gdb_environ::operator=): Extend method to
9263 handle m_user_set_env_list and m_user_unset_env_list.
9264 (gdb_environ::clear): Likewise.
9265 (match_var_in_string): Change type of first parameter from 'char
9266 *' to 'const char *'.
9267 (gdb_environ::set): Extend method to handle
9268 m_user_set_env_list and m_user_unset_env_list.
9269 (gdb_environ::unset): Likewise.
9270 (gdb_environ::clear_user_set_env): New method.
9271 (gdb_environ::user_set_envp): Likewise.
9272 (gdb_environ::user_unset_envp): Likewise.
9273 * common/environ.h (gdb_environ): Handle m_user_set_env_list and
9274 m_user_unset_env_list on move constructor/assignment.
9275 (unset): Add new default parameter 'update_unset_list = true'.
9276 (clear_user_set_env): New method.
9277 (user_set_envp): Likewise.
9278 (user_unset_envp): Likewise.
9279 (m_user_set_env_list): New std::set.
9280 (m_user_unset_env_list): Likewise.
9281 * common/rsp-low.c (hex2str): New function.
9282 (bin2hex): New overload for bin2hex function.
9283 * common/rsp-low.c (hex2str): New prototype.
9284 (str2hex): New overload prototype.
9285 * remote.c: Include "environ.h". Add QEnvironmentHexEncoded,
9286 QEnvironmentUnset and QEnvironmentReset.
9287 (remote_protocol_features): Add QEnvironmentHexEncoded,
9288 QEnvironmentUnset and QEnvironmentReset packets.
9289 (send_environment_packet): New function.
9290 (extended_remote_environment_support): Likewise.
9291 (extended_remote_create_inferior): Call
9292 extended_remote_environment_support.
9293 (_initialize_remote): Add QEnvironmentHexEncoded,
9294 QEnvironmentUnset and QEnvironmentReset packet configs.
9295 * unittests/environ-selftests.c (gdb_selftest_env_var):
9296 New variable.
9297 (test_vector_initialization): New function.
9298 (test_init_from_host_environ): Likewise.
9299 (test_reinit_from_host_environ): Likewise.
9300 (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B):
9301 Likewise.
9302 (test_unset_set_empty_vector): Likewise.
9303 (test_vector_clear): Likewise.
9304 (test_std_move): Likewise.
9305 (test_move_constructor):
9306 (test_self_move): Likewise.
9307 (test_set_unset_reset): Likewise.
9308 (run_tests): Rewrite in terms of the functions above.
9309
9310 2017-08-31 Weimin Pan <weimin.pan@oracle.com>
9311
9312 * sparc64-tdep.c (adi_stat_t): Fix comment formatting.
9313 (adi_available): Use a temp variable of type CORE_ADDR as argument
9314 3 when calling target_auxv_search.
9315 (adi_normalize_address): Use masks and xor operators to calculate
9316 normalized address.
9317 (adi_read_versions, adi_write_versions, adi_print_versions)
9318 (do_examine, do_assign): Use paddress.
9319
9320 2017-08-29 John Baldwin <jhb@FreeBSD.org>
9321
9322 * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR.
9323 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR
9324 out of loop and add supply of FIR.
9325 (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and
9326 add collect of FIR.
9327
9328 2017-08-28 Simon Marchi <simon.marchi@ericsson.com>
9329
9330 PR gdb/21827
9331 * cli/cli-script.c (define_command): Don't convert command name
9332 to lower case.
9333
9334 2017-08-25 Joel Brobecker <brobecker@adacore.com>
9335
9336 * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp".
9337 Update all callers accordingly. Remove all code blocks handling
9338 the case where DISPP is not NULL.
9339
9340 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9341
9342 PR symtab/22003
9343 * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow)
9344 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
9345 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const.
9346
9347 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9348
9349 * dwarf2read.c (build_type_psymtabs_reader): New prototype.
9350 (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES.
9351 (read_comp_units_from_section): New parameter abbrev_section, use
9352 read_and_check_comp_unit_head, allocate signatured_type if needed.
9353 (create_all_comp_units): Update read_comp_units_from_section caller.
9354
9355 2017-08-23 Pedro Alves <palves@redhat.com>
9356
9357 PR remote/21852
9358 * remote.c (add_current_inferior_and_thread): Set inferior_ptid
9359 to null_ptid and switch to thread without reading the registers
9360 after adding the inferior.
9361
9362 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9363
9364 * NEWS (Changes since GDB 8.0): Add set compile-gcc and show
9365 compile-gcc.
9366 * compile/compile.c (compile_gcc, show_compile_gcc): New.
9367 (compile_to_object): Implement compile_gcc.
9368 (_initialize_compile): Install "set compile-gcc". Initialize
9369 compile_gcc.
9370
9371 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9372
9373 * compile/compile.c (compile_to_object): Conditionally call
9374 set_verbose. Conditionally call compile or compile_v0.
9375
9376 2017-08-07 Weimin Pan <weimin.pan@oracle.com>
9377
9378 * sparc64-tdep.h: (adi_normalize_address): New export.
9379 * sparc-nat.h: (open_adi_tag_fd): New export.
9380 * sparc64-linux-nat.c: (open_adi_tag_fd): New function.
9381 * sparc64-linux-tdep.c:
9382 (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines.
9383 (sparc64_linux_handle_segmentation_fault): New function.
9384 (sparc64_linux_init_abi): Register
9385 sparc64_linux_handle_segmentation_fault
9386 * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h.
9387 (sparc64_addr_bits_remove): New function.
9388 (sparc64_init_abi): Register sparc64_addr_bits_remove.
9389 (MAX_PROC_NAME_SIZE): New macro.
9390 (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines.
9391 (sparc64adilist): New variable.
9392 (adi_proc_list): New variable.
9393 (find_adi_info): New function.
9394 (add_adi_info): New function.
9395 (get_adi_info_proc): New function.
9396 (get_adi_info): New function.
9397 (info_adi_command): New function.
9398 (read_maps_entry): New function.
9399 (adi_available): New function.
9400 (adi_normalize_address): New function.
9401 (adi_align_address): New function.
9402 (adi_convert_byte_count): New function.
9403 (adi_tag_fd): New function.
9404 (adi_is_addr_mapped): New function.
9405 (adi_read_versions): New function.
9406 (adi_write_versions): New function.
9407 (adi_print_versions): New function.
9408 (do_examine): New function.
9409 (do_assign): New function.
9410 (adi_examine_command): New function.
9411 (adi_assign_command): New function.
9412 (_initialize_sparc64_adi_tdep): New function.
9413
9414 2017-08-22 Simon Marchi <simon.marchi@ericsson.com>
9415
9416 * breakpoint.c (breakpoints_info): Rename to ...
9417 (info_breakpoints_command): ... this.
9418 (watchpoints_info): Rename to ...
9419 (info_watchpoints_command): ... this.
9420 (tracepoints_info): Rename to ...
9421 (info_tracepoints_command): ... this.
9422 (_initialize_breakpoint): Adjust.
9423 * dcache.c (dcache_info): Rename to ...
9424 (info_display_command): ... this.
9425 (_initialize_dcache): Adjust.
9426 * frame.h (args_info): Rename to ...
9427 (info_args_command): ... this.
9428 (locals_info): Rename to ...
9429 (info_locals_command): ... this.
9430 * infcmd.c (nofp_registers_info): Rename to ...
9431 (info_registers_command): ... this.
9432 (float_info): Rename to ...
9433 (info_float_command): ... this.
9434 (program_info): Rename to ...
9435 (info_program_command): ... this.
9436 (all_registers_info): Rename to ...
9437 (info_all_registers_command): ... this.
9438 (vector_info): Rename to ...
9439 (info_vector_command): ... this.
9440 (float_info): Rename to ...
9441 (info_float_command): ... this.
9442 (_initialize_infcmd): Adjust.
9443 * inferior.h (term_info): Rename to ...
9444 (info_terminal_command): ... this.
9445 * inflow.c (term_info): Rename to ...
9446 (info_terminal_command): ... this.
9447 (_initialize_inflow): Adjust.
9448 * infrun.c (signals_info): Rename to ...
9449 (info_signals_command): ... this.
9450 (_initialize_infrun): Adjust.
9451 * objc-lang.c (classes_info): Rename to ...
9452 (info_classes_command): ... this.
9453 (selectors_info): Rename to ...
9454 (info_selectors_command): ... this.
9455 (_initialize_objc_language): Adjust.
9456 * printcmd.c (sym_info): Rename to ...
9457 (info_symbol_command): ... this.
9458 (address_info): Rename to ...
9459 (info_address_command): ... this.
9460 (display_info): Rename to ...
9461 (info_display_command): ... this.
9462 (_initialize_printcmd): Adjust.
9463 * reverse.c (bookmarks_info): Rename to ...
9464 (info_breakpoints_command): ... this.
9465 (_initialize_reverse): Adjust.
9466 * ser-go32.c (dos_info): Rename to ...
9467 (info_serial_command): ... this.
9468 (_initialize_ser_dos): Adjust.
9469 * skip.c (skip_info): Rename to ...
9470 (info_skip_command): ... this.
9471 (_initialize_step_skip): Adjust.
9472 * source.c (line_info): Rename to ...
9473 (info_line_command): ... this.
9474 (source_info): Rename to ...
9475 (info_source_command)
9476 * stack.c (frame_info): Rename to ...
9477 (info_frame_command): ... this.
9478 (locals_info): Rename to ...
9479 (info_locals_command): ... this.
9480 (args_info): Rename to ...
9481 (info_args_command): ... this.
9482 (_initialize_stack): Adjust.
9483 * symtab.c (sources_info): Rename to ...
9484 (info_sources_command): ... this.
9485 (variables_info): Rename to ...
9486 (info_variables_command): ... this.
9487 (functions_info): Rename to ...
9488 (info_functions_command): ... this.
9489 (types_info): Rename to ...
9490 (info_types_command): ... this.
9491 (_initialize_symtab): Adjust.
9492 * target.c (target_info): Rename to ...
9493 (info_target_command): ... this.
9494 (initialize_targets): Adjust.
9495 * tracepoint.c (tvariables_info): Rename to ...
9496 (info_tvariables_command): ... this.
9497 (scope_info): Rename to ...
9498 (info_scope_command): ... this.
9499 (trace_dump_actions): Adjust.
9500 (_initialize_tracepoint): Adjust.
9501
9502 2017-08-22 Tom Tromey <tom@tromey.com>
9503
9504 * breakpoint.h (install_breakpoint): Update.
9505 * breakpoint.c (add_solib_catchpoint): Update.
9506 (install_breakpoint): Change argument to a std::unique_ptr.
9507 (create_fork_vfork_event_catchpoint): Use std::unique_ptr.
9508 (create_breakpoint_sal, create_breakpoint): Update.
9509 (watch_command_1, catch_exec_command_1)
9510 (strace_marker_create_breakpoints_sal): Use std::unique_ptr.
9511 (add_to_breakpoint_chain): Change argument to a std::unique_ptr.
9512 Return the breakpoint.
9513 (set_raw_breakpoint_without_location, set_raw_breakpoint)
9514 (new_single_step_breakpoint): Update.
9515 * break-catch-throw.c (handle_gnu_v3_exceptions): Use
9516 std::unique_ptr.
9517 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
9518 std::unique_ptr.
9519 * break-catch-sig.c (create_signal_catchpoint): Use
9520 std::unique_ptr.
9521 * ada-lang.c (create_ada_exception_catchpoint): Use
9522 std::unique_ptr.
9523
9524 2017-08-22 Tom Tromey <tom@tromey.com>
9525
9526 * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr.
9527
9528 2017-08-22 Tom Tromey <tom@tromey.com>
9529
9530 * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr.
9531 (lookup_partial_symbol): Update.
9532
9533 2017-08-22 Tom Tromey <tom@tromey.com>
9534
9535 * source.h (rewrite_source_path): Return a unique_xmalloc_ptr.
9536 * source.c (rewrite_source_path): Return a unique_xmalloc_ptr.
9537 (find_and_open_source, symtab_to_fullname): Update.
9538 * psymtab.c (psymtab_to_fullname): Update.
9539
9540 2017-08-22 Tom Tromey <tom@tromey.com>
9541
9542 * exec.c (exec_file_attach): Update.
9543 * linux-thread-db.c (try_thread_db_load): Update.
9544 * guile/scm-safe-call.c (gdbscm_safe_source_script): Update.
9545 * utils.c (gdb_realpath): Change return type.
9546 (gdb_realpath_keepfile): Update.
9547 (gdb_realpath_check_trailer, gdb_realpath_tests): New functions.
9548 (_initialize_utils): Register the new self test.
9549 * source.c (openp): Update.
9550 (find_and_open_source): Update.
9551 * nto-tdep.c (nto_find_and_open_solib): Update.
9552 * main.c (set_gdb_data_directory): Update.
9553 (captured_main_1): Update.
9554 * dwarf2read.c (dwarf2_get_dwz_file): Update
9555 (dw2_map_symbol_filenames): Update.
9556 * auto-load.c (auto_load_safe_path_vec_update): Update.
9557 (filename_is_in_auto_load_safe_path_vec): Change type of
9558 "filename_realp".
9559 (auto_load_objfile_script): Update.
9560 (file_is_auto_load_safe): Update. Use std::string.
9561 * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr.
9562
9563 2017-08-22 Tom Tromey <tom@tromey.com>
9564
9565 * utils.c (gdb_realpath_keepfile): Return a
9566 gdb::unique_xmalloc_ptr.
9567 * exec.c (exec_file_attach): Update.
9568 * utils.h (gdb_realpath_keepfile): Return a
9569 gdb::unique_xmalloc_ptr.
9570
9571 2017-08-22 Tom Tromey <tom@tromey.com>
9572
9573 * compile/compile.c (compile_file_command): Use
9574 gdb::unique_xmalloc_ptr, std::string.
9575 * utils.c (gdb_abspath): Change return type.
9576 * source.c (openp): Update.
9577 * objfiles.c (allocate_objfile): Update.
9578 * main.c (set_gdb_data_directory): Update.
9579 * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr.
9580
9581 2017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com>
9582
9583 * cli-cmds.c (list_commands): List actual code around more than
9584 one location.
9585
9586 2017-08-21 John Baldwin <jhb@FreeBSD.org>
9587
9588 * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'.
9589
9590 2017-08-21 Pedro Alves <palves@redhat.com>
9591
9592 PR gdb/19487
9593 * c-exp.y (variable production): Handle function aliases.
9594 * minsyms.c (msymbol_is_text): New function.
9595 * minsyms.h (msymbol_is_text): Declare.
9596 * symtab.c (find_function_alias_target): New function.
9597 * symtab.h (find_function_alias_target): Declare.
9598
9599 2017-08-21 Pedro Alves <palves@redhat.com>
9600
9601 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past
9602 typedefs.
9603 * typeprint.c (whatis_exp): If handling "whatis", and expression
9604 is OP_TYPE, strip one typedef level. Otherwise don't strip
9605 typedefs here.
9606 * valops.c (value_cast): Save "to" type before resolving
9607 stubs/typedefs. Use that type as resulting value's type.
9608
9609 2017-08-18 Tom Tromey <tom@tromey.com>
9610 Pedro Alves <palves@redhat.com>
9611
9612 * spu-multiarch.c (parse_spufs_run): Use scoped_restore.
9613 * sol-thread.c (sol_thread_resume, sol_thread_wait)
9614 (sol_thread_xfer_partial, rw_common): Use scoped_restore.
9615 * procfs.c (procfs_do_thread_registers): Use scoped_restore.
9616 * proc-service.c (ps_xfer_memory): Use scoped_restore.
9617 * linux-tdep.c (linux_corefile_thread): Remove a cleanup.
9618 (linux_get_siginfo_data): Add "thread" argument. Use
9619 scoped_restore.
9620 * linux-nat.c (linux_child_follow_fork)
9621 (check_stopped_by_watchpoint): Use scoped_restore.
9622 * infrun.c (displaced_step_prepare_throw, write_memory_ptid)
9623 (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore.
9624 (restore_inferior_ptid, save_inferior_ptid): Remove.
9625 * btrace.c (btrace_fetch): Use scoped_restore.
9626 * bsd-uthread.c (bsd_uthread_fetch_registers)
9627 (bsd_uthread_store_registers): Use scoped_restore.
9628 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
9629 scoped_restore.
9630 * aix-thread.c (aix_thread_resume, aix_thread_wait)
9631 (aix_thread_xfer_partial): Use scoped_restore.
9632 * inferior.h (save_inferior_ptid): Remove.
9633
9634 2017-08-18 Yao Qi <yao.qi@linaro.org>
9635
9636 PR tdep/21818
9637 * arm-tdep.c (gdb_print_insn_arm): Mark
9638 USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL.
9639
9640 2017-08-18 Yao Qi <yao.qi@linaro.org>
9641
9642 * NEWS: Mention GDBserver's new option "--selftest".
9643 * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c.
9644 * selftest.c: Move it to common/selftest.c.
9645 * selftest.h: Move it to common/selftest.h.
9646 * selftest-arch.c (reset): New function.
9647 (tests_with_arch): Call reset.
9648
9649 2017-08-18 Yao Qi <yao.qi@linaro.org>
9650
9651 * selftest.c (run_tests): Don't call QUIT. Call debug_printf
9652 instead of exception_fprintf and printf_filtered.
9653
9654 2017-08-18 Yao Qi <yao.qi@linaro.org>
9655
9656 * selftest.c (register_self_test): Rename it to
9657 selftests::register_test.
9658 (run_self_tests): selftest::run_tests.
9659 * selftest.h: Update declarations.
9660 * selftest-arch.c (register_self_test_foreach_arch): Rename it to
9661 selftests::register_test_foreach_arch.
9662 * selftest-arch.h: Update declaration.
9663 * aarch64-tdep.c: Update.
9664 * arm-tdep.c: Likewise.
9665 * disasm-selftests.c: Likewise.
9666 * dwarf2loc.c: Likewise.
9667 * dwarf2-frame.c: Likewise.
9668 * findvar.c: Likewise.
9669 * gdbarch-selftests.c: Likewise.
9670 * maint.c (maintenance_selftest): Likewise.
9671 * regcache.c: Likewise.
9672 * rust-exp.y: Likewise.
9673 * selftest-arch.c: Likewise.
9674 * unittests/environ-selftests.c: Likewise.
9675 * unittests/function-view-selftests.c: Likewise.
9676 * unittests/offset-type-selftests.c: Likewise.
9677 * unittests/optional-selftests.c: Likewise.
9678 * unittests/scoped_restore-selftests.c: Likewise.
9679 * utils-selftests.c: Likewise.
9680
9681 2017-08-17 Pedro Alves <palves@redhat.com>
9682
9683 * cli/cli-cmds.c (source_command): Delete 'old_source_verbose'
9684 local.
9685
9686 2017-08-17 Pedro Alves <palves@redhat.com>
9687
9688 * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New
9689 field.
9690 (reset_die_in_process): Delete, replaced by ...
9691 (process_die_scope): ... this new class. Make it responsible for
9692 freeing cu->line_header too.
9693 (process_die): Use process_die_scope.
9694 (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in
9695 cu->line_header_die_owner. Don't release the line header if it's
9696 owned by the CU.
9697 (setup_type_unit_groups): Make the CU/DIE own the line header.
9698 Don't release the line header here.
9699
9700 2017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change)
9701
9702 * elfread.c (elf_read_minimal_symbols): xfree synthsyms.
9703
9704 2017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com>
9705
9706 * NEWS: Mention new shortcuts for nexti and stepi in TUI
9707 Single-Key mode
9708
9709 2017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com>
9710
9711 * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key
9712 mode command list.
9713
9714 2017-08-15 Stafford Horne <shorne@gmail.com>
9715
9716 * MAINTAINERS (Write After Approval): Add Stafford Horne.
9717
9718 2017-08-15 Stafford Horne <shorne@gmail.com>
9719
9720 * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname.
9721
9722 2017-08-15 Sergio Durigan Junior <sergiodj@redhat.com>
9723
9724 PR gdb/21954
9725 * infcmd.c (unset_environment_command): Use the 'clear' method on
9726 the environment instead of resetting it.
9727
9728 2017-08-15 John Baldwin <jhb@FreeBSD.org>
9729
9730 * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian
9731 platforms.
9732
9733 2017-08-14 Tom Tromey <tom@tromey.com>
9734
9735 * valprint.c (print_octal_chars): Use HOST_CHAR_BIT.
9736 (print_binary_chars): Likewise.
9737 (BITS_IN_BYTES): Remove.
9738
9739 2017-08-14 Tom Tromey <tom@tromey.com>
9740
9741 PR gdb/21675
9742 * valprint.c (LOW_ZERO): Change value to 034.
9743 (print_octal_chars): Add static_asserts for octal constants.
9744 * printcmd.c (print_scalar_formatted): Add 'd' case.
9745
9746 2017-08-11 Tom Tromey <tom@tromey.com>
9747
9748 * symfile.c (add_symbol_file_command): Use std::vector.
9749
9750 2017-08-14 Tom Tromey <tom@tromey.com>
9751
9752 * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move.
9753 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
9754 std::move.
9755 * break-catch-sig.c (create_signal_catchpoint): Use std::move.
9756
9757 2017-08-11 Pedro Alves <palves@redhat.com>
9758
9759 * infrun.c (process_event_stop_test): Adjust
9760 function_name_is_marked_for_skip call.
9761 * skip.c: Include <list>.
9762 (skiplist_entry): Make it a class with private fields, and
9763 getters/setters.
9764 (skiplist_entry_chain): Delete.
9765 (skiplist_entries): New.
9766 (skiplist_entry_count): Delete.
9767 (highest_skiplist_entry_num): New.
9768 (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete.
9769 (add_skiplist_entry): Delete.
9770 (skiplist_entry::skiplist_entry): New.
9771 (skiplist_entry::add_entry): New.
9772 (skip_file_command, skip_function): Adjust.
9773 (compile_skip_regexp): Delete.
9774 (skip_command): Don't compile regexp here. Adjust to use
9775 skiplist_entry::add_entry.
9776 (skip_info): Adjust to use range-for and getters.
9777 (skip_enable_command, skip_disable_command): Adjust to use
9778 range-for and setters.
9779 (skip_delete_command): Adjust to use std::list.
9780 (add_skiplist_entry): Delete.
9781 (skip_file_p): Delete, refactored as ...
9782 (skiplist_entry::do_skip_file_p): ... this new method.
9783 (skip_gfile_p): Delete, refactored as ...
9784 (skiplist_entry::do_gskip_file_p): ... this new method.
9785 (skip_function_p, skip_rfunction_p): Delete, refactored as ...
9786 (skiplist_entry::skip_function_p): ... this new method.
9787 (function_name_is_marked_for_skip): Now returns bool, and takes
9788 the function sal by const reference. Adjust to use range-for and
9789 skiplist_entry methods.
9790 (_initialize_step_skip): Remove references to
9791 skiplist_entry_chain, skiplist_entry_count.
9792 * skip.h (function_name_is_marked_for_skip): Now returns bool, and
9793 takes the function sal by const reference.
9794
9795 2017-08-11 Yao Qi <yao.qi@linaro.org>
9796
9797 * dwarf2-frame.c (clear_pointer_cleanup): Remove.
9798 (dwarf2_frame_cache): Remove reset_cache_cleanup.
9799 (dwarf2_frame_cache):
9800 * frame-unwind.c (frame_unwind_try_unwinder): Catch
9801 RETURN_MASK_ALL and set *this_case to NULL.
9802 * frame-unwind.h: Update comments.
9803
9804 2017-08-11 Yao Qi <yao.qi@linaro.org>
9805
9806 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove.
9807 (dwarf2_frame_state_copy_regs): Remove.
9808 (dwarf2_frame_state_free_regs): Remove.
9809 (dwarf2_frame_state::~dwarf2_frame_state): Remove.
9810 (dwarf2_restore_rule): Call method .alloc_regs instead of
9811 dwarf2_frame_state_alloc_regs.
9812 (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info
9813 constructor. Call std::move.
9814 (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs.
9815 (dwarf2_frame_cache): Likewise.
9816
9817 [GDB_SELF_TEST]: Include selftest.h and
9818 selftest-arch.h.
9819 [GDB_SELF_TEST] (execute_cfa_program_test): New function.
9820 (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register
9821 execute_cfa_program_test.
9822
9823 * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor,
9824 copy ctor, assignment operator, move assignment.
9825 <alloc_regs>: New method.
9826 <swap>: New method.
9827 (struct dwarf2_frame_state): Delete dtor.
9828 (dwarf2_frame_state_alloc_regs): Remove declaration.
9829 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call
9830 dwarf2_frame_state_alloc_regs, use .alloc_regs instead.
9831
9832 2017-08-11 Yao Qi <yao.qi@linaro.org>
9833
9834 * dwarf2-frame.c (dwarf2_frame_state_free): Remove.
9835 (dwarf2_frame_state::dwarf2_frame_state): New.
9836 (dwarf2_frame_state::~dwarf2_frame_state): New.
9837 (dwarf2_fetch_cfa_info): Update.
9838 (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object
9839 rather than a pointer. Update code.
9840 * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and
9841 dtor.
9842 <data_align, code_align, retaddr_column>: Change them to const.
9843 <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them
9844 to bool.
9845
9846 2017-08-11 Yao Qi <yao.qi@linaro.org>
9847
9848 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove.
9849 <loc.exp>: New field.
9850 * dwarf2-frame.c (execute_cfa_program): Update.
9851 (dwarf2_frame_prev_register): Update.
9852
9853 2017-08-10 Pedro Alves <palves@redhat.com>
9854
9855 * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define.
9856
9857 2017-08-09 John Baldwin <jhb@FreeBSD.org>
9858
9859 * fbsd-nat.c (struct fbsd_fork_info): Remove.
9860 (fbsd_pending_children): Use std::list.
9861 (fbsd_remember_child): Likewise.
9862 (fbsd_is_child_pending): Likewise.
9863 (fbsd_pending_vfork_done): Use std::forward_list.
9864 (fbsd_add_vfork_done): Likewise.
9865 (fbsd_is_vfork_done_pending): Likewise.
9866 (fbsd_next_vfork_done): Likewise.
9867
9868 2017-08-09 John Baldwin <jhb@FreeBSD.org>
9869
9870 * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New.
9871 (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr.
9872 [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string
9873 for `mapfilename'.
9874 (fbsd_xfer_partial): Use gdb::byte_vector.
9875 (fbsd_add_threads): Use gdb::unique_xmalloc_ptr.
9876
9877 2017-08-09 John Baldwin <jhb@FreeBSD.org>
9878
9879 * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and
9880 "filestuff.h".
9881 (fbsd_find_memory_regions): Fix `mapfile' initialization.
9882
9883 2017-08-09 Tom Tromey <tom@tromey.com>
9884
9885 * skip.c (skiplist_entry): New constructor.
9886 (skiplist_entry::enabled, skiplist_entry::function_is_regexp)
9887 (skiplist_entry::file_is_glob): Now bool.
9888 (skiplist_entry::file, skiplist_entry::function): Now
9889 std::string.
9890 (make_skip_entry): Return a unique_ptr. Use new.
9891 (free_skiplist_entry, free_skiplist_entry_cleanup)
9892 (make_free_skiplist_entry_cleanup): Remove.
9893 (skip_command, skip_disable_command, add_skiplist_entry)
9894 (skip_form_bytes, compile_skip_regexp, skip_command, skip_info)
9895 (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p)
9896 (function_name_is_marked_for_skip): Update.
9897 (skip_delete_command): Update. Use delete.
9898
9899 2017-08-09 Jiong Wang <jiong.wang@arm.com>
9900
9901 * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h".
9902 (aarch64_linux_core_read_description): New function.
9903 (aarch64_linux_init_abi): Register gdbarch_core_read_description.
9904
9905 2017-08-09 Pedro Alves <palves@redhat.com>
9906
9907 * cp-name-parser.y (cp_comp_to_string): Return a
9908 gdb::unique_xmalloc_ptr<char>.
9909 * cp-support.c (replace_typedefs_qualified_name)
9910 (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>.
9911 (cp_canonicalize_string_full): Use op= instead of explicit
9912 convertion.
9913 (cp_class_name_from_physname, method_name_from_physname)
9914 (cp_func_name, cp_remove_params): Adjust to use
9915 gdb::unique_xmalloc_ptr<char>.
9916 * cp-support.h (cp_comp_to_string): Return a
9917 gdb::unique_xmalloc_ptr<char>.
9918 * python/py-type.c (typy_lookup_type): Adjust to use
9919 gdb::unique_xmalloc_ptr<char>.
9920
9921 2017-08-09 H.J. Lu <hongjiu.lu@intel.com>
9922
9923 * dwarf2read.c (dwarf2_string_attr): Fix a typo.
9924
9925 2017-08-09 Alex Lindsay <alexlindsay239@gmail.com>
9926 Yao Qi <yao.qi@linaro.org>
9927
9928 * cp-support.c (cp_canonicalize_string_full): Use
9929 gdb::unique_xmalloc_ptr<char>.
9930 (cp_canonicalize_string): Likewise.
9931
9932 2017-08-09 Yao Qi <yao.qi@linaro.org>
9933
9934 * features/Makefile (WHICH): Remove i386/ non-linux stuff.
9935 * regformats/i386/amd64-avx-avx512.dat: Remove.
9936 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove.
9937 * regformats/i386/amd64-avx-mpx.dat:Remove.
9938 * regformats/i386/amd64-avx.dat: Remove.
9939 * regformats/i386/amd64-mpx.dat: Remove.
9940 * regformats/i386/i386-avx-avx512.dat: Remove.
9941 * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove.
9942 * regformats/i386/i386-avx-mpx.dat: Remove.
9943 * regformats/i386/i386-mmx.dat: Remove.
9944 * regformats/i386/i386-mpx.dat: Remove.
9945
9946 2017-08-09 Yao Qi <yao.qi@linaro.org>
9947
9948 * amd64-tdep.h (tdesc_x32): Remove the declaration.
9949 * amd64-tdep.c: Don't include features/i386/x32*.c.
9950 (_initialize_amd64_tdep): Don't call initialize_tdesc_x32*
9951 functions.
9952 * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx,
9953 and i386/x32-avx-avx512.
9954 (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml,
9955 and i386/x32.xml.
9956 * features/i386/x32-avx-avx512.c: Removed.
9957 * features/i386/x32-avx-avx512.xml: Removed.
9958 * features/i386/x32-avx.c: Removed.
9959 * features/i386/x32-avx.xml: Removed.
9960 * features/i386/x32.c: Removed.
9961 * features/i386/x32.xml: Removed.
9962 * regformats/i386/x32-avx-avx512.dat: Removed.
9963 * regformats/i386/x32-avx.dat: Removed.
9964 * regformats/i386/x32.dat: Removed.
9965
9966 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
9967
9968 PR breakpoints/21886
9969 * mem-break.c (default_memory_insert_breakpoint): Use
9970 `->placed_address' rather than `->reqstd_address' for the
9971 breakpoint location.
9972
9973 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
9974
9975 * arch-utils.c (default_print_insn): Remove arch/mach/endian
9976 assertions.
9977
9978 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
9979
9980 * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with
9981 a union of `tdep_info', `tdesc_data' and `id'.
9982 * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data'
9983 rather than `info.tdep_info'.
9984 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
9985 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
9986 * i386-tdep.c (i386_gdbarch_init): Likewise.
9987 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
9988 * mips-tdep.c (mips_gdbarch_init): Likewise.
9989 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
9990 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
9991 * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than
9992 `info.tdep_info'.
9993 (ppc_linux_init_abi): Use `info.tdesc_data' rather than
9994 `info.tdep_info'.
9995 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
9996 * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than
9997 `info.tdep_info'.
9998 * spu-tdep.c (spu_gdbarch_init): Likewise.
9999 * gdbarch.h: Regenerate.
10000
10001 2017-08-07 Leszek Swirski <leszeks@google.com>
10002
10003 PR symtab/20899
10004 * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt.
10005
10006 2017-08-07 Simon Marchi <simon.marchi@ericsson.com>
10007
10008 * remote-sim.c (gdbsim_load): Remove char **argv local variable.
10009 (gdbsim_open): Rename gdb_argv args object to argv.
10010
10011 2017-08-05 Tom Tromey <tom@tromey.com>
10012
10013 * compile/compile-object-load.c (compile_object_load): Use
10014 gdb::unique_xmalloc_ptr.
10015 * cli/cli-dump.c (scan_filename): Rename from
10016 scan_filename_with_cleanup. Change return type.
10017 (scan_expression): Rename from scan_expression_with_cleanup.
10018 Change return type.
10019 (dump_memory_to_file, dump_value_to_file, restore_command):
10020 Use gdb::unique_xmalloc_ptr. Update.
10021 * cli/cli-cmds.c (find_and_open_script): Use
10022 gdb::unique_xmalloc_ptr.
10023 * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr.
10024 * symmisc.c (maintenance_print_symbols)
10025 (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr.
10026 * symfile.c (symfile_bfd_open, generic_load)
10027 (add_symbol_file_command, remove_symbol_file_command): Use
10028 gdb::unique_xmalloc_ptr.
10029 * source.c (openp): Use gdb::unique_xmalloc_ptr.
10030 * psymtab.c (maintenance_print_psymbols): Use
10031 gdb::unique_xmalloc_ptr.
10032 * corelow.c (core_open): Use gdb::unique_xmalloc_ptr.
10033 * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr.
10034 * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr.
10035 (reload_shared_libraries_1): Likewise.
10036
10037 2017-08-05 Tom Tromey <tom@tromey.com>
10038
10039 * rust-exp.y (rust_op_ptr, set_field): Remove typedefs.
10040 (rust_op_vector, rust_set_vector): New typedefs.
10041 (current_parser): New global.
10042 (work_obstack): Change to pointer type. Update all users.
10043 (rust_ast, pstate): Remove globals.
10044 (struct rust_parser): New.
10045 (%union) <params, field_inits>: Change type.
10046 (start, tuple_expr, unit_expr, struct_expr_list, literal)
10047 (field_expr, expr_list, maybe_expr_list, type_list): Update.
10048 (ast_call_ish, ast_path, ast_function_type, ast_tuple_type)
10049 (convert_params_to_types, convert_params_to_expression): Change
10050 type of "params".
10051 (ast_string): Change type of "fields".
10052 (rust_parse): Make a rust_parser. Remove cleanups.
10053 (rust_lex_tests): Make and install an auto_obstack.
10054
10055 2017-08-04 Yao Qi <yao.qi@linaro.org>
10056
10057 * configure.srv (ipa_x32_linux_regobj): New.
10058 * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
10059 instead of X86_TDESC_AVX512.
10060 (initialize_low_tracepoint): Call
10061 init_registers_x32_avx_avx512_linux.
10062
10063 2017-08-04 Yao Qi <yao.qi@linaro.org>
10064
10065 * utils.h (gdb_argv): Add namespace std for nullptr_t.
10066
10067 2017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com>
10068
10069 * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev.
10070
10071 2017-08-03 Tom Tromey <tom@tromey.com>
10072
10073 * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv):
10074 Remove.
10075 * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove.
10076
10077 2017-08-03 Tom Tromey <tom@tromey.com>
10078
10079 * python/py-param.c (compute_enum_values): Use gdb_argv.
10080
10081 2017-08-03 Tom Tromey <tom@tromey.com>
10082
10083 * utils.h (struct gdb_argv_deleter): New.
10084 (gdb_argv): New class.
10085 * utils.c (gdb_argv::reset): New method.
10086 * tracepoint.c (delete_trace_variable_command): Use gdb_argv.
10087 * tracefile.c (tsave_command): Use gdb_argv.
10088 * top.c (new_ui_command): Use gdb_argv.
10089 * symmisc.c (maintenance_print_symbols)
10090 (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv.
10091 * symfile.c (symbol_file_command, generic_load)
10092 (remove_symbol_file_command): Use gdb_argv.
10093 * stack.c (backtrace_command): Use gdb_argv.
10094 * source.c (add_path, show_substitute_path_command)
10095 (unset_substitute_path_command, set_substitute_path_command):
10096 Use gdb_argv.
10097 * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv.
10098 * ser-mingw.c (pipe_windows_open): Use gdb_argv.
10099 * remote.c (extended_remote_run, remote_put_command)
10100 (remote_get_command, remote_delete_command): Use gdb_argv.
10101 * remote-sim.c (gdbsim_load, gdbsim_create_inferior)
10102 (gdbsim_open): Use gdb_argv.
10103 * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv.
10104 * psymtab.c (maintenance_print_psymbols): Use gdb_argv.
10105 * procfs.c (procfs_info_proc): Use gdb_argv.
10106 * interps.c (interpreter_exec_cmd): Use gdb_argv.
10107 * infrun.c (handle_command): Use gdb_argv.
10108 * inferior.c (add_inferior_command, clone_inferior_command):
10109 Use gdb_argv.
10110 * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv.
10111 * exec.c (exec_file_command): Use gdb_argv.
10112 * cli/cli-cmds.c (alias_command): Use gdb_argv.
10113 * compile/compile.c (build_argc_argv): Use gdb_argv.
10114
10115 2017-08-03 Tom Tromey <tom@tromey.com>
10116
10117 * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr.
10118
10119 2017-08-03 Tom Tromey <tom@tromey.com>
10120
10121 * python/python.c (compute_python_string): Return std::string.
10122 (gdbpy_eval_from_control_command): Update.
10123 (do_start_initialization): Use std::string.
10124 * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not
10125 xstrprintf.
10126 * python/py-breakpoint.c (local_setattro): Use string_printf, not
10127 xstrprintf.
10128
10129 2017-08-03 Tom Tromey <tom@tromey.com>
10130
10131 * top.h (do_restore_instream_cleanup): Remove.
10132 * top.c (do_restore_instream_cleanup): Remove.
10133 (read_command_file): Use scoped_restore.
10134 * cli/cli-script.c (execute_user_command): Use scoped_restore.
10135
10136 2017-08-03 Tom Tromey <tom@tromey.com>
10137
10138 * cli/cli-script.c (execute_user_command)
10139 (execute_control_command): Use scoped_restore.
10140
10141 2017-08-03 Tom Tromey <tom@tromey.com>
10142
10143 * cli/cli-script.c (do_restore_user_call_depth): Remove.
10144 (execute_user_command): Remove user_call_depth; use
10145 user_args_stack's size instead.
10146
10147 2017-08-03 Tom Tromey <tom@tromey.com>
10148
10149 * top.h (in_user_command): Remove.
10150 * top.c (in_user_command): Remove.
10151 * cli/cli-script.c (do_restore_user_call_depth)
10152 (execute_user_command): Update.
10153
10154 2017-08-03 Tom Tromey <tom@tromey.com>
10155
10156 * valops.c (search_struct_method): Use gdb::byte_vector.
10157 * valarith.c (value_concat): Use std::vector.
10158 * target.c (memory_xfer_partial): Use gdb::byte_vector.
10159 (simple_search_memory): Likewise.
10160 * printcmd.c (find_string_backward): Use gdb::byte_vector.
10161 * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector.
10162 * gcore.c (gcore_copy_callback): Use gdb::byte_vector.
10163 * elfread.c (elf_rel_plt_read): Use std::string.
10164 * cp-valprint.c (cp_print_value): Use gdb::byte_vector.
10165 * cli/cli-dump.c (restore_section_callback): Use
10166 gdb::byte_vector.
10167
10168 2017-08-03 Tom Tromey <tom@tromey.com>
10169
10170 * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr.
10171
10172 2017-08-03 Tom Tromey <tom@tromey.com>
10173
10174 * tui/tui-regs.c (tui_restore_gdbout): Remove.
10175 (tui_register_format): Use scoped_restore.
10176
10177 2017-08-03 Tom Tromey <tom@tromey.com>
10178
10179 * reverse.c (exec_direction_default): Remove.
10180 (exec_reverse_once): Use scoped_restore.
10181 * remote.c (restore_remote_timeout): Remove.
10182 (remote_flash_erase, remote_flash_write, remote_flash_done)
10183 (readchar, remote_serial_write): Use scoped_restore.
10184 * cli/cli-script.c (struct source_cleanup_lines_args)
10185 (source_cleanup_lines): Remove.
10186 (script_from_file): Use scoped_restore.
10187 * cli/cli-cmds.c (source_verbose_cleanup): Remove.
10188 (source_command): Use scoped_restore.
10189
10190 2017-08-03 Tom Tromey <tom@tromey.com>
10191
10192 * utils.h (make_cleanup_free_so): Remove.
10193 * utils.c (do_free_so, make_cleanup_free_so): Remove.
10194 * solist.h (struct so_deleter): New.
10195 (so_list_up): New typedef.
10196 * solib-svr4.c (svr4_read_so_list): Use so_list_up.
10197
10198 2017-08-03 Tom Tromey <tom@tromey.com>
10199
10200 * utils.h (make_cleanup_restore_current_language): Remove.
10201 * utils.c (do_restore_current_language)
10202 (make_cleanup_restore_current_language): Remove.
10203 * parse.c (parse_exp_in_context_1)
10204 (parse_expression_with_language): Use
10205 scoped_restore_current_language.
10206 * mi/mi-main.c (mi_cmd_execute): Use
10207 scoped_restore_current_language.
10208 * language.h (scoped_restore_current_language): New class.
10209
10210 2017-08-03 Tom Tromey <tom@tromey.com>
10211
10212 * compile/compile.c (cleanup_unlink_file): Remove.
10213 (compile_to_object): Use gdb::unlinker.
10214 (eval_compile_command): Likewise.
10215
10216 2017-08-03 Tom Tromey <tom@tromey.com>
10217
10218 * utils.h (make_cleanup_fclose): Remove.
10219 * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove.
10220
10221 2017-08-03 Tom Tromey <tom@tromey.com>
10222
10223 * top.c (open_terminal_stream): Return gdb_file_up.
10224 (new_ui_command): Update.
10225
10226 2017-08-03 Tom Tromey <tom@tromey.com>
10227
10228 * source.c (print_source_lines_base, forward_search_command)
10229 (reverse_search_command): Use gdb_file_up.
10230
10231 2017-08-03 Tom Tromey <tom@tromey.com>
10232
10233 * fbsd-nat.c (fbsd_find_memory_regions): Update.
10234
10235 2017-08-03 Tom Tromey <tom@tromey.com>
10236
10237 * cli/cli-cmds.c (find_and_open_script): Change return type.
10238 Remove "streamp" and "full_path" parameters.
10239 (source_script_with_search): Update.
10240 * auto-load.c (source_script_file): Update.
10241 * cli/cli-cmds.h (find_and_open_script): Change type.
10242 (open_script): New struct.
10243
10244 2017-08-03 Tom Tromey <tom@tromey.com>
10245
10246 * xml-support.c (xml_fetch_content_from_file): Update.
10247 * ui-file.c (stdio_file::open): Update.
10248 * tracefile-tfile.c (tfile_start): Update.
10249 * remote.c (remote_file_put, remote_file_get): Update.
10250 * nat/linux-procfs.c (linux_proc_get_int)
10251 (linux_proc_pid_get_state, linux_proc_tid_get_name): Update.
10252 * nat/linux-osdata.c (linux_common_core_of_thread): Update.
10253 (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus)
10254 (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem)
10255 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update.
10256 * nat/linux-btrace.c (linux_determine_kernel_start): Update.
10257 * linux-nat.c (linux_proc_pending_signals): Update.
10258 * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up.
10259 (file_closer): Remove.
10260 * compile/compile.c (compile_to_object): Update.
10261 * common/filestuff.h (struct gdb_file_deleter): New.
10262 (gdb_file_up): New typedef.
10263 (gdb_fopen_cloexec): Change return type.
10264 * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up.
10265 * cli/cli-dump.c (fopen_with_cleanup): Remove.
10266 (dump_binary_file, restore_binary_file): Update.
10267 * auto-load.c (auto_load_objfile_script_1): Update.
10268
10269 2017-08-03 Tom Tromey <tom@tromey.com>
10270
10271 * tracepoint.c (tvariables_info_1): Use ui_out_emit_table.
10272 (info_static_tracepoint_markers_command): Likewise.
10273 * solib.c (info_sharedlibrary_command): Use ui_out_emit_table.
10274 * skip.c (skip_info): Use ui_out_emit_table.
10275 * progspace.c (print_program_space): Use ui_out_emit_table.
10276 * osdata.c (info_osdata): Use ui_out_emit_table.
10277 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use
10278 ui_out_emit_table.
10279 * linux-thread-db.c (info_auto_load_libthread_db): Use
10280 ui_out_emit_table.
10281 * inferior.c (print_inferior): Use ui_out_emit_table.
10282 * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table.
10283 * breakpoint.c (breakpoint_1): Use ui_out_emit_table.
10284 * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table.
10285 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table.
10286 * ui-out.h (class ui_out_emit_table): New.
10287
10288 2017-08-02 Maciej W. Rozycki <macro@imgtec.com>
10289
10290 * mips-tdep.c (mips_fpu_type_str): New function.
10291 (mips_dump_tdep): Call it.
10292
10293 2017-08-01 Maciej W. Rozycki <macro@imgtec.com>
10294
10295 * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access
10296 `->mips_fpu_type'.
10297
10298 2017-07-31 Xavier Roirand <roirand@adacore.com>
10299
10300 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
10301
10302 2017-07-27 Xavier Roirand <roirand@adacore.com>
10303
10304 * MAINTAINERS (Write After Approval): Add Xavier Roirand.
10305
10306 2017-07-26 Yao Qi <yao.qi@linaro.org>
10307
10308 * cli/cli-cmds.c (maintenancechecklist): New variable.
10309 * gdbcmd.h (maintenancechecklist): Declare it.
10310 * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]:
10311 Call i386_linux_read_description with different masks.
10312 * maint.c (maintenance_check_command): New function.
10313 (_initialize_maint_cmds): Call add_prefix_cmd.
10314 * target-descriptions.c (tdesc_reg): override operator != and ==.
10315 (tdesc_type): Likewise.
10316 (tdesc_feature): Likewise.
10317 (target_desc): Likewise.
10318 [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function.
10319 (maintenance_check_xml_descriptions): New function.
10320 (_initialize_target_descriptions) Add command "xml-descriptions".
10321 * target-descriptions.h (selftests::record_xml_tdesc): Declare.
10322
10323 2017-07-26 Yao Qi <yao.qi@linaro.org>
10324
10325 * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c.
10326 Include features/i386/32bit-*.c.
10327 (i386_linux_read_description): Generate target description if it
10328 doesn't exist.
10329 (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386
10330 functions.
10331 * features/i386/32bit-linux.c: Re-generated.
10332 * features/i386/32bit-sse.c: Likewise.
10333 * target-descriptions.c (print_c_feature::visit): Print code to
10334 set register number if needed.
10335 (print_c_feature) <m_next_regnum>: New field.
10336
10337 2017-07-26 Yao Qi <yao.qi@linaro.org>
10338
10339 * features/Makefile (CFILES): Rename with TDESC_CFILES.
10340 (FEATURE_XMLFILES): New.
10341 (FEATURE_CFILES): New.
10342 New rules.
10343 (clean-cfiles): Remove generated c files.
10344 * features/i386/32bit-avx.c: Generated.
10345 * features/i386/32bit-avx512.c: Generated.
10346 * features/i386/32bit-core.c: Generated.
10347 * features/i386/32bit-linux.c: Generated.
10348 * features/i386/32bit-mpx.c: Generated.
10349 * features/i386/32bit-pkeys.c: Generated.
10350 * features/i386/32bit-sse.c: Generated.
10351 * target-descriptions.c: Include algorithm.
10352 (tdesc_element_visitor): Add method visit_end.
10353 (print_c_tdesc): Implement visit_end.
10354 (print_c_tdesc:: m_filename_after_features): Move it to
10355 protected.
10356 (print_c_feature): New class.
10357 (maint_print_c_tdesc_cmd): Use print_c_feature if XML file
10358 name starts with "i386/32bit-".
10359
10360 2017-07-26 Yao Qi <yao.qi@linaro.org>
10361
10362 * target-descriptions.c (tdesc_element_visitor): New class.
10363 (tdesc_element): New class.
10364 (tdesc_reg): Inherit from tdesc_element.
10365 (tdesc_reg::accept): New function.
10366 (tdesc_type): Inherit from tdesc_element.
10367 (tdesc_type::accept): New function.
10368 (tdesc_feature): Inherit from tdesc_element.
10369 (tdesc_feature::accept): New function.
10370 (target_desc): Inherit from tdesc_element.
10371 (target_desc::target_desc): New.
10372 (target_desc::~target_desc): New.
10373 (target_desc::accept): New.
10374 (allocate_target_description): Use new.
10375 (free_target_description): Use delete.
10376 (print_c_tdesc): New class.
10377 (maint_print_c_tdesc_cmd): Adjust.
10378
10379 * features/aarch64.c: Re-generated.
10380 * features/arc-arcompact.c: Re-generated.
10381 * features/arc-v2.c: Re-generated.
10382 * features/arm/arm-with-iwmmxt.c: Re-generated.
10383 * features/arm/arm-with-m.c: Re-generated.
10384 * features/arm/arm-with-m-fpa-layout.c: Re-generated.
10385 * features/arm/arm-with-m-vfp-d16.c: Re-generated.
10386 * features/arm/arm-with-neon.c: Re-generated.
10387 * features/arm/arm-with-vfpv2.c: Re-generated.
10388 * features/arm/arm-with-vfpv3.c: Re-generated.
10389 * features/i386/amd64-avx-avx512.c: Re-generated.
10390 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
10391 * features/i386/amd64-avx.c: Re-generated.
10392 * features/i386/amd64-avx-linux.c: Re-generated.
10393 * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated.
10394 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
10395 * features/i386/amd64-avx-mpx.c: Re-generated.
10396 * features/i386/amd64-avx-mpx-linux.c: Re-generated.
10397 * features/i386/amd64.c: Re-generated.
10398 * features/i386/amd64-linux.c: Re-generated.
10399 * features/i386/amd64-mpx.c: Re-generated.
10400 * features/i386/amd64-mpx-linux.c: Re-generated.
10401 * features/i386/i386-avx-avx512.c: Re-generated.
10402 * features/i386/i386-avx-avx512-linux.c: Re-generated.
10403 * features/i386/i386-avx.c: Re-generated.
10404 * features/i386/i386-avx-linux.c: Re-generated.
10405 * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated.
10406 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated.
10407 * features/i386/i386-avx-mpx.c: Re-generated.
10408 * features/i386/i386-avx-mpx-linux.c: Re-generated.
10409 * features/i386/i386.c: Re-generated.
10410 * features/i386/i386-linux.c: Re-generated.
10411 * features/i386/i386-mmx.c: Re-generated.
10412 * features/i386/i386-mmx-linux.c: Re-generated.
10413 * features/i386/i386-mpx.c: Re-generated.
10414 * features/i386/i386-mpx-linux.c: Re-generated.
10415 * features/i386/x32-avx-avx512.c: Re-generated.
10416 * features/i386/x32-avx-avx512-linux.c: Re-generated.
10417 * features/i386/x32-avx.c: Re-generated.
10418 * features/i386/x32-avx-linux.c: Re-generated.
10419 * features/i386/x32.c: Re-generated.
10420 * features/i386/x32-linux.c: Re-generated.
10421 * features/microblaze.c: Re-generated.
10422 * features/microblaze-with-stack-protect.c: Re-generated.
10423 * features/mips64-dsp-linux.c: Re-generated.
10424 * features/mips64-linux.c: Re-generated.
10425 * features/mips-dsp-linux.c: Re-generated.
10426 * features/mips-linux.c: Re-generated.
10427 * features/nds32.c: Re-generated.
10428 * features/nios2.c: Re-generated.
10429 * features/nios2-linux.c: Re-generated.
10430 * features/rs6000/powerpc-32.c: Re-generated.
10431 * features/rs6000/powerpc-32l.c: Re-generated.
10432 * features/rs6000/powerpc-403.c: Re-generated.
10433 * features/rs6000/powerpc-403gc.c : Re-generated.
10434 * features/rs6000/powerpc-405.c: Re-generated.
10435 * features/rs6000/powerpc-505.c: Re-generated.
10436 * features/rs6000/powerpc-601.c: Re-generated.
10437 * features/rs6000/powerpc-602.c: Re-generated.
10438 * features/rs6000/powerpc-603.c: Re-generated.
10439 * features/rs6000/powerpc-604.c: Re-generated.
10440 * features/rs6000/powerpc-64.c: Re-generated.
10441 * features/rs6000/powerpc-64l.c: Re-generated.
10442 * features/rs6000/powerpc-7400.c: Re-generated.
10443 * features/rs6000/powerpc-750.c: Re-generated.
10444 * features/rs6000/powerpc-860.c: Re-generated.
10445 * features/rs6000/powerpc-altivec32.c: Re-generated.
10446 * features/rs6000/powerpc-altivec32l.c: Re-generated.
10447 * features/rs6000/powerpc-altivec64.c: Re-generated.
10448 * features/rs6000/powerpc-altivec64l.c: Re-generated.
10449 * features/rs6000/powerpc-cell32l.c: Re-generated.
10450 * features/rs6000/powerpc-cell64l.c: Re-generated.
10451 * features/rs6000/powerpc-e500.c: Re-generated.
10452 * features/rs6000/powerpc-e500l.c: Re-generated.
10453 * features/rs6000/powerpc-isa205-32l.c: Re-generated.
10454 * features/rs6000/powerpc-isa205-64l.c: Re-generated.
10455 * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated.
10456 * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated.
10457 * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated.
10458 * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated.
10459 * features/rs6000/powerpc-vsx32.c: Re-generated.
10460 * features/rs6000/powerpc-vsx32l.c: Re-generated.
10461 * features/rs6000/powerpc-vsx64.c: Re-generated.
10462 * features/rs6000/powerpc-vsx64l.c: Re-generated.
10463 * features/rs6000/rs6000.c: Re-generated.
10464 * features/s390-linux32.c: Re-generated.
10465 * features/s390-linux32v1.c: Re-generated.
10466 * features/s390-linux32v2.c: Re-generated.
10467 * features/s390-linux64.c: Re-generated.
10468 * features/s390-linux64v1.c: Re-generated.
10469 * features/s390-linux64v2.c: Re-generated.
10470 * features/s390-te-linux64.c: Re-generated.
10471 * features/s390-tevx-linux64.c: Re-generated.
10472 * features/s390-vx-linux64.c: Re-generated.
10473 * features/s390x-linux64.c: Re-generated.
10474 * features/s390x-linux64v1.c: Re-generated.
10475 * features/s390x-linux64v2.c: Re-generated.
10476 * features/s390x-te-linux64.c: Re-generated.
10477 * features/s390x-tevx-linux64.c: Re-generated.
10478 * features/s390x-vx-linux64.c: Re-generated.
10479 * features/sparc/sparc32-solaris.c: Re-generated.
10480 * features/sparc/sparc64-solaris.c: Re-generated.
10481 * features/tic6x-c62x.c: Re-generated.
10482 * features/tic6x-c62x-linux.c: Re-generated.
10483 * features/tic6x-c64x.c: Re-generated.
10484 * features/tic6x-c64x-linux.c: Re-generated.
10485 * features/tic6x-c64xp.c: Re-generated.
10486 * features/tic6x-c64xp-linux.c: Re-generated.
10487
10488 2017-07-26 Yao Qi <yao.qi@linaro.org>
10489
10490 * i386-linux-tdep.c (i386_linux_read_description): New function.
10491 (i386_linux_core_read_description): Call
10492 i386_linux_read_description.
10493 * i386-linux-tdep.h (i386_linux_read_description): Declare.
10494 (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations.
10495 (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise
10496 (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise.
10497 (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise.
10498 * x86-linux-nat.c (x86_linux_read_description): Call
10499 i386_linux_read_description.
10500
10501 2017-07-26 Yao Qi <yao.qi@linaro.org>
10502
10503 * NEWS: Mention it.
10504 * features/Makefile (%.c: %.xml): Pass the xml file name to
10505 command "maint print c-tdesc".
10506 * target-descriptions.c (maint_print_c_tdesc_cmd): Get file
10507 name from 'arg'.
10508
10509 2017-07-26 Yao Qi <yao.qi@linaro.org>
10510
10511 * target-descriptions.c (target_desc): Add ctor and dtor. Do
10512 in-class initialization.
10513 (tdesc_create_feature): Call new instead of XCNEW.
10514 (free_target_description): Ue delete.
10515
10516 2017-07-25 John Baldwin <jhb@FreeBSD.org>
10517
10518 * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo.
10519
10520 2017-07-25 Yao Qi <yao.qi@linaro.org>
10521
10522 * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc
10523 constant.
10524 (amd64_x32_init_abi): Likewise.
10525 * amd64-tdep.h (amd64_init_abi): Update declaration.
10526 (amd64_x32_init_abi): Likewise.
10527
10528 2017-07-25 Yao Qi <yao.qi@linaro.org>
10529
10530 PR tdep/21717
10531 * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update
10532 condition for FPSCR.
10533 (arm_linux_store_inferior_registers): Likewise.
10534
10535 2017-07-22 Tom Tromey <tom@tromey.com>
10536
10537 * break-catch-syscall.c (struct catch_syscall_inferior_data)
10538 <syscalls_counts>: Now a std::vector.
10539 (get_catch_syscall_inferior_data): Use "new".
10540 (catch_syscall_inferior_data_cleanup): Use "delete".
10541 (insert_catch_syscall, remove_catch_syscall)
10542 (clear_syscall_counts): Update.
10543
10544 2017-07-22 Tom Tromey <tom@tromey.com>
10545
10546 * break-catch-syscall.c (syscall_catchpoint)
10547 <syscalls_to_be_caught>: Now a std::vector<int>
10548 (~syscall_catchpoint): Remove.
10549 (insert_catch_syscall, remove_catch_syscall)
10550 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
10551 (print_mention_catch_syscall, print_recreate_catch_syscall):
10552 Update.
10553 (create_syscall_event_catchpoint): Change type of "filter"
10554 parameter.
10555 (catch_syscall_split_args): Return a std::vector.
10556 (catch_syscall_command_1, catching_syscall_number_1): Update.
10557
10558 2017-07-22 Tom Tromey <tom@tromey.com>
10559
10560 * break-catch-throw.c (struct exception_catchpoint)
10561 <exception_rx>: Now a std::string.
10562 (~exception_catchpoint): Remove.
10563 (print_one_detail_exception_catchpoint): Update.
10564 (handle_gnu_v3_exceptions): Change type of except_rx.
10565 (extract_exception_regexp): Return a std::string.
10566 (catch_exception_command_1): Update.
10567
10568 2017-07-22 Tom Tromey <tom@tromey.com>
10569
10570 * break-catch-sig.c (gdb_signal_type): Remove typedef.
10571 (struct signal_catchpoint) <signals_to_be_caught>: Now a
10572 std::vector.
10573 <catch_all>: Now a bool.
10574 (~signal_catchpoint): Remove.
10575 (signal_catchpoint_insert_location)
10576 (signal_catchpoint_remove_location)
10577 (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one)
10578 (signal_catchpoint_print_mention)
10579 (signal_catchpoint_print_recreate)
10580 (signal_catchpoint_explains_signal): Update.
10581 (create_signal_catchpoint): Change type of "filter" and
10582 "catch_all".
10583 (catch_signal_split_args): Return a std::vector. Change type of
10584 "catch_all".
10585 (catch_signal_command): Update.
10586
10587 2017-07-20 Pedro Alves <palves@redhat.com>
10588
10589 * ada-lang.c (ada_language_defn): Make extern.
10590 (_initialize_ada_language): Remove add_language call.
10591 * c-lang.c (c_language_defn, cplus_language_defn)
10592 (asm_language_defn, minimal_language_defn): Make extern.
10593 (_initialize_c_language): Delete.
10594 * completer.c (compare_cstrings): Delete, moved to utils.h.
10595 * d-lang.c (d_language_defn): Make extern.
10596 (_initialize_d_language): Remove add_language calls.
10597 * defs.h (enum language): Add comment.
10598 * f-lang.c (f_language_defn): Make extern.
10599 (_initialize_f_language): Remove add_language call.
10600 * go-lang.c (go_language_defn): Make extern.
10601 (_initialize_go_language): Remove add_language call.
10602 * language.c: Include <algorithm>.
10603 (languages): Redefine as const array.
10604 (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete.
10605 (set_language_command): Handle "local". Use for-range loop.
10606 (set_language): Remove loop.
10607 (language_enum): Rewrite.
10608 (language_def, language_str): Remove loops.
10609 (add_language): Delete.
10610 (add_set_language_command): New, based on add_languages.
10611 (skip_language_trampoline): Adjust.
10612 (local_language_defn): Delete.
10613 (language_gdbarch_post_init): Adjust.
10614 (_initialize_language): Remove add_language calls. Call
10615 add_set_language_command.
10616 * language.h (add_language): Delete.
10617 (auto_language_defn)
10618 (unknown_language_defn, minimal_language_defn, ada_language_defn)
10619 (asm_language_defn, c_language_defn, cplus_language_defn)
10620 (d_language_defn, f_language_defn, go_language_defn)
10621 (m2_language_defn, objc_language_defn, opencl_language_defn)
10622 (pascal_language_defn, rust_language_defn): Declare.
10623 * m2-lang.c (m2_language_defn): Make extern.
10624 (_initialize_m2_language): Remove add_language call.
10625 * objc-lang.c (objc_language_defn): Make extern.
10626 (_initialize_objc_language): Remove add_language call.
10627 * opencl-lang.c (opencl_language_defn): Make extern.
10628 (_initialize_opencl_language): Remove add_language call.
10629 * p-lang.c (pascal_language_defn): Make extern.
10630 (_initialize_pascal_language): Delete.
10631 * rust-lang.c (rust_language_defn): Make extern.
10632 (_initialize_rust_language): Delete.
10633 * utils.h (compare_cstrings): New static inline function.
10634
10635 2017-07-20 Pedro Alves <palves@redhat.com>
10636
10637 * ada-lang.c (ada_to_fixed_type_1): Adjust.
10638 (get_var_value): Constify parameters.
10639 (get_int_var_value): Change prototype.
10640 (to_fixed_range_type): Adjust.
10641 * ada-lang.h (get_int_var_value): Change prototype.
10642
10643 2017-07-20 Pedro Alves <palves@redhat.com>
10644
10645 * dwarf2read.c (dw2_lookup_symbol): Use
10646 SYMBOL_MATCHES_SEARCH_NAME.
10647 * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME.
10648
10649 2017-07-20 Pedro Alves <palves@redhat.com>
10650
10651 * block.c (block_iter_name_step, block_iter_name_first)
10652 (block_iter_name_next): Delete.
10653 (block_lookup_symbol_primary): Adjust to use
10654 dict_iter_match_first/dict_iter_match_next.
10655 * block.h (block_iter_name_first, block_iter_name_next): Delete
10656 declarations.
10657 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use
10658 dict_iter_match_first/dict_iter_match_next.
10659
10660 2017-07-20 Pedro Alves <palves@redhat.com>
10661
10662 * cp-support.c (cp_find_first_component_aux): Add missing case for
10663 end of string.
10664
10665 2017-07-18 David Blaikie <dblaikie@gmail.com>
10666
10667 * dwarf2read.c (create_cus_hash_table): Re-add lost initialization
10668 of dwo_cu's dwo_file.
10669
10670 2017-07-18 Yao Qi <yao.qi@linaro.org>
10671
10672 * remote.c (store_registers_using_G): Remove one line comment.
10673
10674 2017-07-18 Yao Qi <yao.qi@linaro.org>
10675
10676 * regcache.c (regcache_cpy): Simplify it.
10677 (regcache::cpy_no_passthrough): Remove it.
10678 * regcache.h (cpy_no_passthrough): Remove it.
10679 (regcache_dup, regcache_cpy): Update comments.
10680
10681 2017-07-18 Pedro Alves <palves@redhat.com>
10682
10683 * remote-sim.c (sim_command_completer): Adjust to work with a
10684 completion_tracker instead of a VEC.
10685
10686 2017-07-17 Pedro Alves <palves@redhat.com>
10687
10688 * completer.c (complete_source_filenames): New function.
10689 (complete_address_and_linespec_locations): New function.
10690 (location_completer): Use complete_address_and_linespec_locations.
10691 (completion_tracker::build_completion_result): Honor the tracker's
10692 request to suppress append.
10693 * completer.h (completion_tracker::suppress_append_ws)
10694 (completion_tracker::set_suppress_append_ws): New methods.
10695 (completion_tracker::m_suppress_append_ws): New field.
10696 (complete_source_filenames): New declaration.
10697 * linespec.c (linespec_complete_what): New.
10698 (struct ls_parser) <complete_what, completion_word,
10699 completion_quote_char, completion_quote_end, completion_tracker>:
10700 New fields.
10701 (string_find_incomplete_keyword_at_end): New.
10702 (linespec_lexer_lex_string): Record quote char. If in completion
10703 mode, don't throw.
10704 (linespec_lexer_consume_token): Advance the completion word point.
10705 (linespec_lexer_peek_token): Save/restore completion info.
10706 (save_stream_and_consume_token): New.
10707 (set_completion_after_number): New.
10708 (linespec_parse_basic): Set what to complete next depending on
10709 token. Handle function and label completions specially.
10710 (parse_linespec): Disable objc shortcut in completion mode. Set
10711 what to complete next depending on token type. Skip keyword if in
10712 completion mode.
10713 (complete_linespec_component, linespec_complete): New.
10714 * linespec.h (linespec_complete): Declare.
10715
10716 2017-07-17 Pedro Alves <palves@redhat.com>
10717
10718 * linespec.c (linespec_lexer_lex_string, find_toplevel_char):
10719 Handle 'operator<' / 'operator<<'.
10720
10721 2017-07-17 Pedro Alves <palves@redhat.com>
10722
10723 * completer.c (collect_explicit_location_matches): Handle
10724 MATCH_LABEL.
10725 (convert_explicit_location_to_linespec): New, factored out from
10726 ...
10727 (convert_explicit_location_to_sals): ... this.
10728 (complete_label): New.
10729 (linespec_complete_label, find_label_symbols_in_block): New.
10730 (find_label_symbols): Add completion_mode parameter and adjust to
10731 call find_label_symbols_in_block.
10732 * linespec.h (linespec_complete_label): Declare.
10733
10734 2017-07-17 Pedro Alves <palves@redhat.com>
10735
10736 * ada-lang.c (ada_collect_symbol_completion_matches): Add
10737 complete_symbol_mode parameter.
10738 * cli/cli-cmds.c (complete_command): Get the completion result out
10739 of the handle_brkchars tracker if used a custom word point.
10740 * completer.c: Include "linespec.h".
10741 (enum explicit_location_match_type) <MATCH_LINE>: New enumerator.
10742 (advance_to_expression_complete_word_point): New.
10743 (completion_tracker::completes_to_completion_word): New.
10744 (complete_files_symbols): Pass down
10745 complete_symbol_mode::EXPRESSION.
10746 (explicit_options, probe_options): New.
10747 (collect_explicit_location_matches): Complete on the
10748 explictit_loc->foo instead of word. Use
10749 linespec_complete_function. Handle MATCH_LINE. Handle offering
10750 keyword and options completions.
10751 (backup_text_ptr): Delete.
10752 (skip_keyword): New.
10753 (complete_explicit_location): Remove 'word' parameter. Add
10754 language, quoted_arg_start and quoted_arg_end parameters.
10755 Rewrite, parsing left to right.
10756 (location_completer): Rewrite.
10757 (location_completer_handle_brkchars): New function.
10758 (symbol_completer): Pass down complete_symbol_mode::EXPRESSION.
10759 (enum complete_line_internal_reason): Adjust comments.
10760 (completion_tracker::discard_completions): New.
10761 (completer_handle_brkchars_func_for_completer): Handle
10762 location_completer.
10763 (gdb_custom_word_point_brkchars)
10764 (gdb_org_rl_basic_quote_characters): New.
10765 (gdb_completion_word_break_characters_throw)
10766 (completion_find_completion_word): Handle trackers that use a
10767 custom word point.
10768 (completion_tracker::advance_custom_word_point_by): New.
10769 (completion_tracker::build_completion_result): Don't rely on
10770 readline appending the quote char.
10771 (gdb_rl_attempted_completion_function_throw): Handle trackers that
10772 use a custom word point.
10773 (gdb_rl_attempted_completion_function): Restore
10774 rl_basic_quote_characters.
10775 * completer.h (class completion_tracker): Extend intro comment.
10776 (completion_tracker::set_quote_char)
10777 (completion_tracker::quote_char)
10778 (completion_tracker::set_use_custom_word_point)
10779 (completion_tracker::use_custom_word_point)
10780 (completion_tracker::custom_word_point)
10781 (completion_tracker::set_custom_word_point)
10782 (completion_tracker::advance_custom_word_point_by)
10783 (completion_tracker::completes_to_completion_word)
10784 (completion_tracker::discard_completions): New methods.
10785 (completion_tracker::m_quote_char)
10786 (completion_tracker::m_use_custom_word_point)
10787 (completion_tracker::m_custom_word_point): New fields.
10788 (advance_to_expression_complete_word_point): Declare.
10789 * f-lang.c (f_collect_symbol_completion_matches): Add
10790 complete_symbol_mode parameter.
10791 * language.h (struct language_defn)
10792 <la_collect_symbol_completion_matches>: Add complete_symbol_mode
10793 parameter.
10794 * linespec.c (linespec_keywords): Add NULL terminator. Make extern.
10795 (linespec_complete_function): New function.
10796 (linespec_lexer_lex_keyword): Adjust.
10797 * linespec.h (linespec_keywords, linespec_complete_function): New
10798 declarations.
10799 * location.c (find_end_quote): New function.
10800 (explicit_location_lex_one): Add explicit_completion_info
10801 parameter. Save quoting info. Don't throw if being called for
10802 completion. Don't handle Ada operators here.
10803 (is_cp_operator, skip_op_false_positives, first_of)
10804 (explicit_location_lex_one_function): New function.
10805 (string_to_explicit_location): Replace 'dont_throw' parameter with
10806 an explicit_completion_info pointer parameter. Handle it. Don't
10807 use explicit_location_lex_one to lex function names. Use
10808 explicit_location_lex_one_function instead.
10809 * location.h (struct explicit_completion_info): New.
10810 (string_to_explicit_location): Replace 'dont_throw' parameter with
10811 an explicit_completion_info pointer parameter.
10812 * symtab.c (default_collect_symbol_completion_matches_break_on):
10813 Add complete_symbol_mode parameter. Handle LINESPEC mode.
10814 (default_collect_symbol_completion_matches)
10815 (collect_symbol_completion_matches): Add complete_symbol_mode
10816 parameter.
10817 (collect_symbol_completion_matches_type): Pass down
10818 complete_symbol_mode::EXPRESSION.
10819 (collect_file_symbol_completion_matches): Add complete_symbol_mode
10820 parameter. Handle LINESPEC mode.
10821 * symtab.h (complete_symbol_mode): New.
10822 (default_collect_symbol_completion_matches_break_on)
10823 (default_collect_symbol_completion_matches)
10824 (collect_symbol_completion_matches)
10825 (collect_file_symbol_completion_matches): Add complete_symbol_mode
10826 parameter.
10827
10828 2017-07-17 Pedro Alves <palves@redhat.com>
10829
10830 * utils.c (enum class strncmp_iw_mode): New.
10831 (strcmp_iw): Rename to ...
10832 (strncmp_iw_with_mode): ... this. Add string2_len and mode
10833 parameters. Handle them.
10834 (strncmp_iw): New.
10835 (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode.
10836 * utils.h (strncmp_iw): Declare.
10837 (strcmp_iw): Move describing comments here.
10838
10839 2017-07-17 Pedro Alves <palves@redhat.com>
10840
10841 * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and
10842 CP_OPERATOR_STR.
10843 * c-typeprint.c (is_type_conversion_operator): Use
10844 CP_OPERATOR_STR.
10845 * cp-support.c (LENGTH_OF_OPERATOR): Delete.
10846 (cp_find_first_component_aux): Use CP_OPERATOR_STR and
10847 CP_OPERATOR_LEN.
10848 * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New.
10849 * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR.
10850 * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR.
10851 * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and
10852 CP_OPERATOR_STR.
10853 * location.c: Include "cp-support.h".
10854 (explicit_location_lex_one): Use CP_OPERATOR_LEN and
10855 CP_OPERATOR_STR.
10856 * symtab.c (operator_chars): Use CP_OPERATOR_STR and
10857 CP_OPERATOR_LEN.
10858
10859 2017-07-17 Pedro Alves <palves@redhat.com>
10860
10861 * cli/cli-cmds.c (complete_command): Use a completion tracker
10862 along with completion_find_completion_word for handle_brkchars
10863 phase.
10864 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
10865 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New.
10866 (struct gdb_rl_completion_word_info): New.
10867 (gdb_rl_find_completion_word): New.
10868 (completion_find_completion_word): New.
10869 * completer.h (completion_find_completion_word): Declare.
10870
10871 2017-07-17 Pedro Alves <palves@redhat.com>
10872
10873 * ada-lang.c (symbol_completion_match): Adjust comments.
10874 (symbol_completion_add): Replace vector parameter with
10875 completion_tracker parameter. Use it.
10876 (ada_make_symbol_completion_list): Rename to...
10877 (ada_collect_symbol_completion_matches): ... this. Add
10878 completion_tracker parameter and use it.
10879 (ada_language_defn): Adjust.
10880 * break-catch-syscall.c (catch_syscall_completer): Adjust
10881 prototype and work with completion_tracker instead of VEC.
10882 * breakpoint.c (condition_completer): Adjust prototype and work
10883 with completion_tracker instead of VEC.
10884 * c-lang.c (c_language_defn, cplus_language_defn)
10885 (asm_language_defn, minimal_language_defn): Adjust to renames.
10886 * cli/cli-cmds.c (complete_command): Rework using
10887 completion_tracker. Catch exceptions when completing.
10888 * cli/cli-decode.c (integer_unlimited_completer)
10889 (complete_on_cmdlist, complete_on_enum): Adjust prototype and work
10890 with completion_tracker instead of VEC.
10891 * command.h (struct completion_tracker): Forward declare.
10892 (completer_ftype, completer_handle_brkchars_ftype): Change
10893 types.
10894 (complete_on_cmdlist, complete_on_enum): Adjust.
10895 * completer.c: Include <algorithm>.
10896 (struct gdb_completer_state): New.
10897 (current_completion): New global.
10898 (readline_line_completion_function): Delete.
10899 (noop_completer, filename_completer)
10900 (filename_completer_handle_brkchars, complete_files_symbols)
10901 (linespec_location_completer): Adjust to work with a
10902 completion_tracker instead of a VEC.
10903 (string_or_empty): New.
10904 (collect_explicit_location_matches): Adjust to work with a
10905 completion_tracker instead of a VEC.
10906 (explicit_location_completer): Rename to ...
10907 (complete_explicit_location): ... this and adjust to work with a
10908 completion_tracker instead of a VEC.
10909 (location_completer): Adjust to work with a completion_tracker
10910 instead of a VEC.
10911 (add_struct_fields): Adjust to work with a completion_list instead
10912 of VEC.
10913 (expression_completer): Rename to ...
10914 (complete_expression): ... this and adjust to work with a
10915 completion_tracker instead of a VEC. Use complete_files_symbols.
10916 (expression_completer): Reimplement on top of complete_expression.
10917 (symbol_completer): Adjust to work with a completion_tracker
10918 instead of a VEC.
10919 (enum complete_line_internal_reason): Add describing comments.
10920 (complete_line_internal_normal_command): Adjust to work with a
10921 completion_tracker instead of a VEC.
10922 (complete_line_internal): Rename to ...
10923 (complete_line_internal_1): ... this and adjust to work with a
10924 completion_tracker instead of a VEC. Assert TEXT is NULL in the
10925 handle_brkchars phase.
10926 (new_completion_tracker): Delete.
10927 (complete_line_internal): Reimplement as TRY/CATCH wrapper around
10928 complete_line_internal_1.
10929 (free_completion_tracker): Delete.
10930 (INITIAL_COMPLETION_HTAB_SIZE): New.
10931 (completion_tracker::completion_tracker)
10932 (completion_tracker::~completion_tracker): New.
10933 (maybe_add_completion): Delete.
10934 (completion_tracker::maybe_add_completion)
10935 (completion_tracker::add_completion)
10936 (completion_tracker::add_completions): New.
10937 (throw_max_completions_reached_error): Delete.
10938 (complete_line): Adjust to work with a completion_tracker instead
10939 of a VEC. Don't create a completion_tracker_t or check for max
10940 completions here.
10941 (command_completer, command_completer_handle_brkchars)
10942 (signal_completer, reg_or_group_completer_1)
10943 (reg_or_group_completer, default_completer_handle_brkchars):
10944 Adjust to work with a completion_tracker.
10945 (gdb_completion_word_break_characters_throw): New.
10946 (gdb_completion_word_break_characters): Reimplement.
10947 (line_completion_function): Delete.
10948 (completion_tracker::recompute_lowest_common_denominator)
10949 (expand_preserving_ws)
10950 (completion_tracker::build_completion_result)
10951 (completion_result::completion_result)
10952 (completion_result::completion_result)
10953 (completion_result::~completion_result)
10954 (completion_result::completion_result)
10955 (completion_result::release_match_list, compare_cstrings)
10956 (completion_result::sort_match_list)
10957 (completion_result::reset_match_list)
10958 (gdb_rl_attempted_completion_function_throw)
10959 (gdb_rl_attempted_completion_function): New.
10960 * completer.h (completion_list, struct completion_result)
10961 (class completion_tracker): New.
10962 (complete_line): Add completion_tracker parameter.
10963 (readline_line_completion_function): Delete.
10964 (gdb_rl_attempted_completion_function): New.
10965 (noop_completer, filename_completer, expression_completer)
10966 (location_completer, symbol_completer, command_completer)
10967 (signal_completer, reg_or_group_completer): Update prototypes.
10968 (completion_tracker_t, new_completion_tracker)
10969 (make_cleanup_free_completion_tracker): Delete.
10970 (enum maybe_add_completion_enum): Delete.
10971 (maybe_add_completion): Delete.
10972 (throw_max_completions_reached_error): Delete.
10973 * corefile.c (complete_set_gnutarget): Adjust to work with a
10974 completion_tracker instead of a VEC.
10975 * cp-abi.c (cp_abi_completer): Adjust to work with a
10976 completion_tracker instead of a VEC.
10977 * d-lang.c (d_language_defn): Adjust.
10978 * disasm.c (disassembler_options_completer): Adjust to work with a
10979 completion_tracker instead of a VEC.
10980 * f-lang.c (f_make_symbol_completion_list): Rename to ...
10981 (f_collect_symbol_completion_matches): ... this. Adjust to work
10982 with a completion_tracker instead of a VEC.
10983 (f_language_defn): Adjust.
10984 * go-lang.c (go_language_defn): Adjust.
10985 * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer):
10986 Adjust to work with a completion_tracker instead of a VEC.
10987 * infrun.c (handle_completer): Likewise.
10988 * interps.c (interpreter_completer): Likewise.
10989 * interps.h (interpreter_completer): Likewise.
10990 * language.c (unknown_language_defn, auto_language_defn)
10991 (local_language_defn): Adjust.
10992 * language.h (language_defn::la_make_symbol_completion_list):
10993 Rename to ...
10994 (language_defn::la_collect_symbol_completion_matches): ... this
10995 and adjust to work with a completion_tracker instead of a VEC.
10996 * m2-lang.c (m2_language_defn): Adjust.
10997 * objc-lang.c (objc_language_defn): Adjust.
10998 * opencl-lang.c (opencl_language_defn): Adjust.
10999 * p-lang.c (pascal_language_defn): Adjust.
11000 * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word.
11001 (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work
11002 with a completion_tracker.
11003 * rust-lang.c (rust_language_defn): Adjust.
11004 * symtab.c (free_completion_list, do_free_completion_list)
11005 (return_val, completion_tracker): Delete.
11006 (completion_list_add_name, completion_list_add_symbol)
11007 (completion_list_add_msymbol, completion_list_objc_symbol)
11008 (completion_list_add_fields, add_symtab_completions): Add
11009 completion_tracker parameter and use it.
11010 (default_make_symbol_completion_list_break_on_1): Rename to...
11011 (default_collect_symbol_completion_matches_break_on): ... this.
11012 Add completion_tracker parameter and use it instead of allocating
11013 a completion tracker here.
11014 (default_make_symbol_completion_list_break_on): Delete old
11015 implementation.
11016 (default_make_symbol_completion_list): Delete.
11017 (default_collect_symbol_completion_matches): New.
11018 (make_symbol_completion_list): Delete.
11019 (collect_symbol_completion_matches): New.
11020 (make_symbol_completion_type): Rename to ...
11021 (collect_symbol_completion_matches_type): ... this. Add
11022 completion_tracker parameter and use it instead of VEC.
11023 (make_file_symbol_completion_list_1): Rename to...
11024 (collect_file_symbol_completion_matches): ... this. Add
11025 completion_tracker parameter and use it instead of VEC.
11026 (make_file_symbol_completion_list): Delete.
11027 (add_filename_to_list): Use completion_list instead of a VEC.
11028 (add_partial_filename_data::list): Now a completion_list.
11029 (make_source_files_completion_list): Work with a completion_list
11030 instead of a VEC.
11031 * symtab.h: Include "completer.h".
11032 (default_make_symbol_completion_list_break_on)
11033 (default_make_symbol_completion_list, make_symbol_completion_list)
11034 (make_symbol_completion_type, make_file_symbol_completion_list)
11035 (make_source_files_completion_list): Delete.
11036 (default_collect_symbol_completion_matches_break_on)
11037 (default_collect_symbol_completion_matches)
11038 (collect_symbol_completion_matches)
11039 (collect_symbol_completion_matches_type)
11040 (collect_file_symbol_completion_matches)
11041 (make_source_files_completion_list): New.
11042 * top.c (init_main): Don't install a rl_completion_entry_function
11043 hook. Install a rl_attempted_completion_function hook instead.
11044 * tui/tui-layout.c (layout_completer): Adjust to work with a
11045 completion_tracker.
11046 * tui/tui-regs.c (tui_reggroup_completer):
11047 * tui/tui-win.c (window_name_completer, focus_completer)
11048 (winheight_completer): Adjust to work with a completion_tracker.
11049 * value.c: Include "completer.h".
11050 (complete_internalvar): Adjust to work with a completion_tracker.
11051 * value.h (complete_internalvar): Likewise.
11052
11053 2017-07-17 Pedro Alves <palves@redhat.com>
11054
11055 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to
11056 renames.
11057 * cli/cli-decode.h (struct cmd_list_element) <completer>: Move
11058 comments to completer_ftype's declaration.
11059 <completer_handle_brkchars>: Change type to
11060 completer_handle_brkchars_ftype.
11061 * command.h (completer_ftype): Add describing comment and give
11062 names to parameters.
11063 (completer_ftype_void): Rename to ...
11064 (completer_handle_brkchars_ftype) ... this. Add describing comment.
11065 (set_cmd_completer_handle_brkchars): Adjust.
11066 * completer.c (filename_completer_handle_brkchars): New function.
11067 (complete_line_internal_normal_command): New function, factored
11068 out from ...
11069 (complete_line_internal): ... here.
11070 (command_completer_handle_brkchars)
11071 (default_completer_handle_brkchars)
11072 (completer_handle_brkchars_func_for_completer): New functions.
11073 * completer.h (set_gdb_completion_word_break_characters): Delete
11074 declaration.
11075 (completer_handle_brkchars_func_for_completer): New declaration.
11076 * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use
11077 completer_handle_brkchars_func_for_completer.
11078
11079 2017-07-17 Pedro Alves <palves@redhat.com>
11080
11081 * completer.c (symbol_completer): New function, based on
11082 make_symbol_completion_list_fn.
11083 * completer.h (symbol_completer): New declaration.
11084 * guile/scm-cmd.c (cmdscm_completers): Adjust.
11085 * python/py-cmd.c (completers): Adjust.
11086 * symtab.c (make_symbol_completion_list_fn): Delete.
11087 * symtab.h (make_symbol_completion_list_fn): Delete.
11088 * cli/cli-decode.c (add_cmd): Adjust.
11089
11090 2017-07-17 Pedro Alves <palves@redhat.com>
11091
11092 * Makefile.in (COMMON_OBS): Add filename-seen-cache.o.
11093 * dwarf2read.c: Include "filename-seen-cache.h".
11094 * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field.
11095 (dw2_map_symbol_filenames): Build and use a filenames_seen_cache.
11096 * filename-seen-cache.c: New file.
11097 * filename-seen-cache.h: New file.
11098 * symtab.c: Include "filename-seen-cache.h".
11099 (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE)
11100 (create_filename_seen_cache, clear_filename_seen_cache)
11101 (delete_filename_seen_cache, filename_seen): Delete, parts moved
11102 to filename-seen-cache.h/filename-seen-cache.c.
11103 (output_source_filename, sources_info)
11104 (maybe_add_partial_symtab_filename)
11105 (make_source_files_completion_list): Adjust to use
11106 filename_seen_cache.
11107
11108 2017-07-17 Pedro Alves <palves@redhat.com>
11109
11110 * dwarf2read.c (dwarf2_per_objfile): In-class initialize all
11111 fields.
11112 (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const
11113 dwarf2_debug_sections*)): New.
11114 (dwarf2_per_objfile::dwarf2_per_objfile(const
11115 dwarf2_per_objfile&)): Declare as deleted.
11116 (dwarf2_per_objfile::operator=): Declare as deleted.
11117 (dwarf2_per_objfile::dwarf2_per_objfile)
11118 (dwarf2_per_objfile::~dwarf2_per_objfile)
11119 (dwarf2_per_objfile::free_cached_comp_units): New.
11120 (dwarf2_has_info): dwarf2_per_objfile initialization code moved to
11121 ctor. Call dwarf2_per_objfile's ctor manually.
11122 (dwarf2_locate_sections): Deleted/refactored as ...
11123 (dwarf2_per_objfile::locate_sections): ... this new method.
11124 (free_cached_comp_units): Defer to
11125 dwarf2_per_objfile::free_cached_comp_units.
11126 (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually.
11127
11128 2017-07-14 Tom Tromey <tom@tromey.com>
11129
11130 PR rust/21764:
11131 * rust-exp.y (convert_ast_to_expression): Add "want_type"
11132 parameter.
11133 <UNOP_SIZEOF>: Split into separate case.
11134 <UNOP_VAR_VALUE>: Handle want_type. Add error case.
11135
11136 2017-07-14 Tom Tromey <tom@tromey.com>
11137
11138 PR rust/21763:
11139 * symtab.c (symbol_matches_domain): Add language_rust to special
11140 case.
11141 * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't
11142 treat LOC_TYPEDEF symbols as variables.
11143
11144 2017-07-14 Pedro Alves <palves@redhat.com>
11145
11146 * symtab.c (make_file_symbol_completion_list_1): Iterate over
11147 symtabs matching all symtabs with SRCFILE as file name instead of
11148 only considering the first hit, with lookup_symtab.
11149
11150 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
11151
11152 * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and
11153 operator_name parameters.
11154 (gen_expr): Update function call.
11155
11156 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
11157
11158 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch
11159 parameter.
11160 * symtab.h (struct symbol_computed_ops::tracepoint_var_ref):
11161 Likewise.
11162 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch
11163 parameter, use agent_expr::gdbarch instead, update function
11164 calls.
11165 (locexpr_tracepoint_var_ref): Likewise.
11166 (loclist_tracepoint_var_ref): Likewise.
11167 * ax-gdb.c (gen_trace_static_fields): Likewise.
11168 (gen_traced_pop): Likewise.
11169 (gen_frame_args_address): Likewise.
11170 (gen_frame_locals_address): Likewise.
11171 (gen_var_ref): Likewise.
11172 (gen_struct_ref_recursive): Likewise.
11173 (gen_static_field): Likewise.
11174 (gen_maybe_namespace_elt): Likewise.
11175 (gen_expr): Likewise.
11176 (gen_trace_for_var): Likewise.
11177 (gen_trace_for_expr): Likewise.
11178 (gen_trace_for_return_address): Likewise.
11179
11180 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
11181
11182 * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax
11183 parameter.
11184 (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call.
11185
11186 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
11187
11188 * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch
11189 from ax, update calls.
11190 (gen_usual_arithmetic): Likewise.
11191 (gen_integral_promotions): Likewise.
11192 (gen_bitfield_ref): Likewise.
11193 (gen_primitive_field): Likewise.
11194 (gen_struct_ref_recursive): Likewise.
11195 (gen_struct_ref): Likewise.
11196 (gen_maybe_namespace_elt): Likewise.
11197 (gen_struct_elt_for_reference): Likewise.
11198 (gen_namespace_elt): Likewise.
11199 (gen_aggregate_elt_ref): Likewise.
11200 (gen_expr): Get gdbarch from ax, update calls.
11201 (gen_expr_binop_rest): Likewise.
11202
11203 2017-07-13 Pedro Alves <palves@redhat.com>
11204
11205 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64
11206 as default tdesc.
11207 * amd64-dicos-tdep.c (amd64_dicos_init_abi):
11208 * amd64-fbsd-tdep.c (amd64fbsd_init_abi):
11209 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass
11210 tdesc_amd64_linux as default tdesc. Get final tdesc from the
11211 tdep.
11212 (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc.
11213 Get final tdesc from the tdep.
11214 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as
11215 default tdesc.
11216 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
11217 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
11218 * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter.
11219 Use it as default tdesc.
11220 (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it
11221 down to amd_init_abi. No longer handle fallback tdesc here.
11222 * amd64-tdep.h (tdesc_x32): Declare.
11223 (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc'
11224 parameter.
11225 * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64
11226 as default tdesc.
11227
11228 2017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11229
11230 * s390-linux-tdep.c (s390_process_record): Add support for
11231 instructions new in arch12.
11232
11233 2017-07-11 John Baldwin <jhb@FreeBSD.org>
11234
11235 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
11236 PT_GETFSBASE and PT_GETGSBASE.
11237 (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and
11238 PT_SETGSBASE.
11239
11240 2017-07-11 John Baldwin <jhb@FreeBSD.org>
11241
11242 * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat)
11243 (amd64-avx-mpx.dat, amd64-avx-avx512.dat)
11244 (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in
11245 those rules.
11246 * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml.
11247 * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml.
11248 * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml.
11249 * features/i386/amd64-avx.xml: Add 64bit-segments.xml.
11250 * features/i386/amd64-mpx.xml: Add 64bit-segments.xml.
11251 * features/i386/amd64.xml: Add 64bit-segments.xml.
11252 * features/i386/amd64-avx-avx512.c: Regenerated.
11253 * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated.
11254 * features/i386/amd64-avx-mpx.c: Regenerated.
11255 * features/i386/amd64-avx.c: Regenerated.
11256 * features/i386/amd64-mpx.c: Regenerated.
11257 * features/i386/amd64.c: Regenerated.
11258 * regformats/i386/amd64-avx-avx512.dat: Regenerated.
11259 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
11260 * regformats/i386/amd64-avx-mpx.dat: Regenerated.
11261 * regformats/i386/amd64-avx.dat: Regenerated.
11262 * regformats/i386/amd64-mpx.dat: Regenerated.
11263 * regformats/i386/amd64.dat: Regenerated.
11264
11265 2017-07-10 Yao Qi <yao.qi@linaro.org>
11266
11267 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
11268 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
11269
11270 2017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com>
11271
11272 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and
11273 unsetenv.
11274 * gnulib/aclocal.m4: Regenerate.
11275 * gnulib/config.in: Regenerate.
11276 * gnulib/configure: Regenerate.
11277 * gnulib/import/Makefile.am: Regenerate.
11278 * gnulib/import/Makefile.in: Regenerate.
11279 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
11280 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
11281 * gnulib/import/m4/environ.m4: New file.
11282 * gnulib/import/m4/setenv.m4: New file.
11283 * gnulib/import/setenv.c: New file.
11284 * gnulib/import/unsetenv.c: New file.
11285
11286 2017-07-09 Simon Marchi <simon.marchi@ericsson.com>
11287
11288 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read
11289 address when op is DW_OP_addr.
11290
11291 2017-07-09 Tom Tromey <tom@tromey.com>
11292
11293 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size
11294 check and apply to outer type.
11295
11296 2017-07-07 John Baldwin <jhb@FreeBSD.org>
11297
11298 * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS)
11299 (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI)
11300 (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New.
11301 (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method.
11302
11303 2017-07-07 John Baldwin <jhb@FreeBSD.org>
11304
11305 * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name.
11306
11307 2017-07-07 John Baldwin <jhb@FreeBSD.org>
11308
11309 * corelow.c (get_core_siginfo): Remove.
11310 (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method
11311 instead of get_core_siginfo.
11312 * gdbarch.sh (core_xfer_siginfo): New gdbarch callback.
11313 * gdbarch.h: Re-generate.
11314 * gdbarch.c: Re-generate.
11315 * linux-tdep.c (linux_core_xfer_siginfo): New.
11316 (linux_init_abi): Install gdbarch "core_xfer_siginfo" method.
11317
11318 2017-07-07 John Baldwin <jhb@FreeBSD.org>
11319
11320 * corelow.c (thread_section_name): Move to ...
11321 * gdbcore.h (thread_section_name): ... here.
11322
11323 2017-07-07 John Baldwin <jhb@FreeBSD.org>
11324
11325 * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32)
11326 (struct siginfo32): New.
11327 [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New.
11328 (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO
11329 via ptrace(PT_LWPINFO).
11330
11331 2017-07-07 John Baldwin <jhb@FreeBSD.org>
11332
11333 * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data)
11334 (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data)
11335 (fbsd_get_siginfo_type): New.
11336 (fbsd_init_abi): Install gdbarch "get_siginfo_type" method.
11337 (_initialize_fbsd_tdep): New.
11338
11339 2017-07-06 David Blaikie <dblaikie@gmail.com>
11340
11341 * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than
11342 a singular dwo_unit*) to support multiple CUs in the same way that
11343 multiple TUs are supported.
11344 (create_cus_hash_table): Replace create_dwo_cu with a function for
11345 parsing multiple CUs from a DWO file.
11346 (open_and_init_dwo_file): Use create_cus_hash_table rather than
11347 create_dwo_cu.
11348 (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with
11349 htab_find, rather than comparing the signature to a singleton CU in
11350 the dwo_file.
11351
11352 2017-07-06 Pedro Alves <palves@redhat.com>
11353
11354 * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition.
11355
11356 2017-07-04 Pedro Alves <palves@redhat.com>
11357
11358 * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC.
11359 * gdbtypes.h (TYPE_STATIC): Delete.
11360 (struct fn_field) <is_public, is_abstract, is_static, is_final,
11361 is_synchronized, is_native>: Delete.
11362 <dummy>: Bump.
11363 (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL)
11364 (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE)
11365 (TYPE_FN_FIELD_ABSTRACT): Delete.
11366
11367 2017-07-03 Simon Marchi <simon.marchi@ericsson.com>
11368
11369 * buffer.h (buffer_finish): Fix spelling mistakes.
11370
11371 2017-07-01 Eli Zaretskii <eliz@gnu.org>
11372
11373 * .dir-locals.el: Automatically switch to C-style comments in
11374 versions of Emacs that support the feature.
11375
11376 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
11377 Pedro Alves <palves@redhat.com>
11378
11379 PR cli/21688
11380 * cli/cli-script.c (command_name_equals_not_inline): Remove function.
11381 (process_next_line): New variable 'inline_cmd'.
11382 Adjust 'if' clauses for "python", "compile" and "guile" to use
11383 'command_name_equals' and check for '!inline_cmd'.
11384
11385 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
11386
11387 PR cli/21688
11388 * cli/cli-script.c (command_name_equals_not_inline): New function.
11389 (process_next_line): Adjust 'if' clauses for "python", "compile"
11390 and "guile" to use command_name_equals_not_inline.
11391
11392 2017-06-29 Pedro Alves <palves@redhat.com>
11393
11394 * completer.c (expression_completer): Call
11395 linespec_location_completer instead of location_completer.
11396
11397 2017-06-29 Pedro Alves <palves@redhat.com>
11398
11399 * completer.c (expression_completer): Remove code that recomputes
11400 'text' from 'word'.
11401
11402 2017-06-29 Yao Qi <yao.qi@linaro.org>
11403
11404 * regformats/regdat.sh: Generate code with
11405 "ifndef IN_PROCESS_AGENT".
11406
11407 2017-06-28 Pedro Alves <palves@redhat.com>
11408
11409 * command.h: Include "common/scoped_restore.h".
11410
11411 2017-06-28 Yao Qi <yao.qi@linaro.org>
11412
11413 * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str
11414 instead of obstack_grow.
11415
11416 2017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com>
11417
11418 PR gdb/21337
11419 * symfile.c (reread_symbols): Call objfiles_changed just before
11420 read_symbols.
11421
11422 2017-06-27 Pedro Alves <palves@redhat.com>
11423
11424 * symtab.c (COMPLETION_LIST_ADD_SYMBOL)
11425 (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ...
11426 (completion_list_add_symbol, completion_list_add_msymbol):
11427 ... these new functions.
11428 (add_symtab_completions)
11429 (default_make_symbol_completion_list_break_on_1): Adjust.
11430
11431 2017-06-27 Pedro Alves <palves@redhat.com>
11432
11433 * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of
11434 bfd_zalloc. Call objfile_per_bfd_storage's ctor.
11435 (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's
11436 dtor.
11437 * objfiles.h (objfile_per_bfd_storage): Add ctor. Make
11438 'storage_obstack' field an auto_obstack. In-class initialize all
11439 non-bitfield fields. Make minsyms_read bool.
11440 * symfile.c (read_symbols): Adjust.
11441
11442 2017-06-27 Alan Hayward <alan.hayward@arm.com>
11443
11444 * remote-sim.c (gdbsim_fetch_register): Use byte_vector.
11445 (gdbsim_store_register): Likewise.
11446
11447 2017-06-27 Pedro Alves <palves@redhat.com>
11448
11449 * c-exp.y (name_obstack): Now an auto_obstack.
11450 (yylex): Use auto_obstack::clear.
11451 (c_parse): Use auto_obstack::clear instead of reinitializing and
11452 freeing the obstack.
11453 * c-lang.c (evaluate_subexp_c): Use auto_obstack.
11454 * d-exp.y (name_obstack): Now an auto_obstack.
11455 (yylex): Use auto_obstack::clear.
11456 (d_parse): Use auto_obstack::clear instead of reinitializing and
11457 freeing the obstack.
11458 * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use
11459 auto_obstack.
11460 * dwarf2read.c (create_addrmap_from_index)
11461 (dwarf2_build_psymtabs_hard)
11462 (update_enumeration_type_from_children): Likewise.
11463 * gdb_obstack.h (auto_obstack): New type.
11464 * go-exp.y (name_obstack): Now an auto_obstack.
11465 (build_packaged_name): Use auto_obstack::clear.
11466 (go_parse): Use auto_obstack::clear instead of reinitializing and
11467 freeing the obstack.
11468 * linux-tdep.c (linux_make_mappings_corefile_notes): Use
11469 auto_obstack.
11470 * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack.
11471 * rust-exp.y (work_obstack): Now an auto_obstack.
11472 (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of
11473 reinitializing and freeing the obstack.
11474 * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete.
11475 (host_char_to_target): Use auto_obstack.
11476 * utils.h (make_cleanup_obstack_free): Delete declaration.
11477 * valprint.c (generic_emit_char, generic_printstr): Use
11478 auto_obstack.
11479
11480 2017-06-27 Simon Marchi <simon.marchi@ericsson.com>
11481
11482 * darwin-nat.c (darwin_check_new_threads): Don't handle dummy
11483 thread.
11484 (darwin_init_thread_list): Don't update dummy thread.
11485 (darwin_create_inferior, darwin_attach): Don't add a dummy thread.
11486
11487 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
11488
11489 * record-full.c (netorder16): Remove.
11490
11491 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
11492
11493 * common/diagnostics.h: Define macros for GCC.
11494 (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro.
11495 * common/vec.h: Include diagnostics.h.
11496 (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro.
11497 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function
11498 warning.
11499
11500 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
11501
11502 * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER):
11503 New macro.
11504 * ada-lex.l: Ignore deprecated register warnings.
11505
11506 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
11507
11508 * main.c (get_init_files): Replace "SYSTEM_GDBINIT +
11509 datadir_len" with "&SYSTEM_GDBINIT[datadir_len]".
11510
11511 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
11512
11513 * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on
11514 its own line.
11515
11516 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
11517
11518 * nat/x86-dregs.c (x86_show_dr): Print registers one per line.
11519
11520 2017-06-23 Alan Hayward <alan.hayward@arm.com>
11521
11522 * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add.
11523 (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE.
11524 (xtensa_register_read_masked): Likewise.
11525
11526 2017-06-22 Sergio Durigan Junior <sergiodj@redhat.com>
11527
11528 * common/environ.c (gdb_environ::unset): Update comment.
11529
11530 2017-06-22 Alan Hayward <alan.hayward@arm.com>
11531
11532 * python/py-unwind.c (pyuw_sniffer): Allocate space for
11533 registers.
11534
11535 2017-06-22 Alan Hayward <alan.hayward@arm.com>
11536
11537 * record-full.c (record_full_exec_insn): Use byte_vector.
11538
11539 2017-06-22 Yao Qi <yao.qi@linaro.org>
11540
11541 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated.
11542 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
11543
11544 2017-06-22 Alan Hayward <alan.hayward@arm.com>
11545
11546 * remote.c (cached_reg): Move from here...
11547 * regcache.h (cached_reg): ...to here.
11548 * python/py-unwind.c (struct reg_info): Remove.
11549 (cached_frame_info): Use cached_reg_t.
11550 (pyuw_prev_register): Likewise.
11551 (pyuw_sniffer): Use cached_reg_t and allocate registers.
11552 (pyuw_dealloc_cache): Free all registers.
11553
11554 2017-06-22 Pedro Alves <palves@redhat.com>
11555 Simon Marchi <simon.marchi@ericsson.com>
11556
11557 * unittests/environ-selftests.c (run_tests): Ignore -Wself-move
11558 warning.
11559 * common/diagnostics.h: New file.
11560
11561 2017-06-22 Pedro Alves <palves@redhat.com>
11562
11563 * common/agent.h: Add include guards.
11564
11565 2017-06-21 Simon Marchi <simon.marchi@ericsson.com>
11566
11567 * target.h (struct target_ops) <to_xfer_partial>: Update doc to
11568 talk about addressable units instead of bytes.
11569
11570 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
11571
11572 * common/environ.c (gdb_environ::unset): Use '::iterator' instead
11573 of '::const_iterator'.
11574
11575 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
11576
11577 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11578 'unittests/environ-selftests.c'.
11579 (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'.
11580 * charset.c (find_charset_names): Declare object 'iconv_env'.
11581 Update code to use 'iconv_env' object. Remove call to
11582 'free_environ'.
11583 * common/environ.c: Include <utility>.
11584 (make_environ): Delete function.
11585 (free_environ): Delete function.
11586 (gdb_environ::clear): New function.
11587 (gdb_environ::operator=): New function.
11588 (gdb_environ::get): Likewise.
11589 (environ_vector): Delete function.
11590 (set_in_environ): Delete function.
11591 (gdb_environ::set): New function.
11592 (unset_in_environ): Delete function.
11593 (gdb_environ::unset): New function.
11594 (gdb_environ::envp): Likewise.
11595 * common/environ.h: Include <vector>.
11596 (struct gdb_environ): Delete; transform into...
11597 (class gdb_environ): ... this class.
11598 (free_environ): Delete prototype.
11599 (init_environ, get_in_environ, set_in_environ, unset_in_environ,
11600 environ_vector): Likewise.
11601 * infcmd.c (run_command_1): Update code to call
11602 'envp' from 'gdb_environ' class.
11603 (environment_info): Update code to call methods from 'gdb_environ'
11604 class.
11605 (unset_environment_command): Likewise.
11606 (path_info): Likewise.
11607 (path_command): Likewise.
11608 * inferior.c (inferior::~inferior): Delete call to 'free_environ'.
11609 (inferior::inferior): Initialize 'environment' using the host's
11610 information.
11611 * inferior.h: Remove forward declaration of 'struct gdb_environ'.
11612 Include "environ.h".
11613 (class inferior) <environment>: Change type from 'struct
11614 gdb_environ' to 'gdb_environ'.
11615 * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call
11616 methods from 'gdb_environ' class.
11617 * solib.c (solib_find_1): Likewise
11618 * unittests/environ-selftests.c: New file.
11619
11620 2017-06-20 Yao Qi <yao.qi@linaro.org>
11621
11622 * features/i386/i386-linux.xml: Exchange the order of including
11623 32bit-linux.xml and 32bit-sse.xml.
11624 * features/i386/i386-linux.c: Regenerated.
11625
11626 2017-06-20 Yao Qi <yao.qi@linaro.org>
11627
11628 * target-descriptions.c (tdesc_reg): Add ctor, dtor.
11629 Delete copy ctor and assignment operator.
11630 (tdesc_type): Likewise.
11631 (tdesc_feature): Likewise.
11632 (tdesc_free_reg): Remove.
11633 (tdesc_create_reg): Use new.
11634 (tdesc_free_type): Remove.
11635 (tdesc_create_vector): Use new.
11636 (tdesc_create_union): Likewise.
11637 (tdesc_create_flags): Likewise.
11638 (tdesc_create_enum): Likewise.
11639 (tdesc_free_feature): Delete.
11640 (free_target_description): Use delete.
11641
11642 2017-06-19 John Baldwin <jhb@FreeBSD.org>
11643
11644 * mips-tdep.c (print_gp_register_row): Don't error for unavailable
11645 registers.
11646
11647 2017-06-19 Pedro Alves <palves@redhat.com>
11648
11649 * dwarf2read.c (write_psymtabs_to_index): Construct file_closer
11650 after gdb::unlinker.
11651
11652 2017-06-19 Sergio Durigan Junior <sergiodj@redhat.com>
11653
11654 * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of
11655 gdb_environ to access an environment variable.
11656
11657 2017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
11658
11659 * nat/linux-ptrace.c (linux_fork_to_function): Add cast to
11660 gdb_byte*.
11661
11662 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
11663
11664 * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF.
11665
11666 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
11667
11668 * configure: Re-generate.
11669 * warning.m4 (build_warnings): Add -Wno-mismatched-tags.
11670
11671 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
11672
11673 * configure: Re-generate.
11674 * warning.m4: Pass -Werror to compiler when checking for
11675 supported warning flags.
11676
11677 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
11678
11679 * Makefile.in (COMPILE.pre): Add "-x c++".
11680
11681 2017-06-16 Alan Hayward <alan.hayward@arm.com>
11682 Pedro Alves <palves@redhat.com>
11683 Yao Qi <yao.qi@linaro.org>
11684
11685 * defs.h (RequireLongest): New.
11686 (extract_integer): Declare function template.
11687 (extract_signed_integer): Remove the declaration, but define it
11688 static inline.
11689 (extract_unsigned_integer): Likewise.
11690 (store_integer): Declare function template.
11691 (store_signed_integer): Remove the declaration, but define it
11692 static inline.
11693 (store_unsigned_integer): Likewise.
11694 * findvar.c (extract_integer): New function template.
11695 (extract_signed_integer): Remove.
11696 (extract_unsigned_integer): Remove.
11697 (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit
11698 instantiations.
11699 (store_integer): New function template.
11700 (store_signed_integer): Remove.
11701 (store_unsigned_integer): Remove.
11702 (store_integer): Explicit instantiations.
11703 * regcache.c (regcache_raw_read_signed): Update.
11704 (regcache::raw_read): New function.
11705 (regcache::raw_read_signed): Remove.
11706 (regcache::raw_read_unsigned): Remove.
11707 (regcache_raw_read_unsigned): Update.
11708 (regcache_raw_write_unsigned): Update.
11709 (regcache::raw_write_signed): Remove.
11710 (regcache::raw_write): New function.
11711 (regcache_cooked_read_signed): Update.
11712 (regcache::raw_write_unsigned): Remove.
11713 (regcache::cooked_read_signed): Remove.
11714 (regcache_cooked_read_unsigned): Update.
11715 (regcache::cooked_read_unsigned): Remove.
11716 (regcache_cooked_write_signed): Update.
11717 (regcache_cooked_write_unsigned): Update.
11718 * regcache.h (regcache) <raw_read_signed>: Remove.
11719 <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove.
11720 <raw_read, raw_write>: New.
11721 <cooked_read_signed, cooked_write_signed>: Remove.
11722 <cooked_write_unsigned, cooked_read_unsigned>: Remove.
11723 <cooked_read, cooked_write>: New.
11724 * sh64-tdep.c (sh64_pseudo_register_read): Update.
11725 (sh64_pseudo_register_write): Update.
11726
11727 2017-06-16 Anton Kolesov <anton.kolesov@synopsys.com>
11728
11729 * arc-tdep.c (arc_disassembler_options): New variable.
11730 (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead
11731 of default_print_insn.
11732 (arc_delayed_print_insn): Set info->section when needed,
11733 use default_print_insn to retrieve a disassembler.
11734
11735 2017-06-14 Sergio Durigan Junior <sergiodj@redhat.com>
11736
11737 PR gdb/21574
11738 * infcmd.c (_initialize_infcmd): Expand "help run" documentation
11739 to mention $SHELL and startup-with-shell.
11740
11741 2017-06-14 Max Filippov <jcmvbkbc@gmail.com>
11742
11743 * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers.
11744
11745 2017-06-14 Yao Qi <yao.qi@linaro.org>
11746
11747 * aarch64-tdep.c (aarch64_gdb_print_insn): Call
11748 default_print_insn instead of print_insn_aarch64.
11749 * arm-tdep.c (gdb_print_insn_arm): Call
11750 default_print_insn instead of print_insn_big_arm
11751 and print_insn_little_arm.
11752 * i386-tdep.c (i386_print_insn): Call default_print_insn
11753 instead of print_insn_i386.
11754 * ia64-tdep.c (ia64_print_insn): Call
11755 default_print_insn instead of print_insn_ia64.
11756 * mips-tdep.c (gdb_print_insn_mips): Call
11757 default_print_insn instead of print_insn_big_mips
11758 and print_insn_little_mips.
11759 * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn
11760 instead of print_insn_spu.
11761
11762 2017-06-14 Pedro Alves <palves@redhat.com>
11763
11764 * ada-lang.c: Include "common/byte-vector.h".
11765 (ada_value_primitive_packed_val): Use gdb::byte_vector.
11766 * charset.c (wchar_iterator::iterate): Resize the vector instead
11767 of reserving it.
11768 * common/byte-vector.h: Include "common/def-vector.h".
11769 (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>.
11770 * cli/cli-dump.c: Include "common/byte-vector.h".
11771 (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector.
11772 * common/byte-vector.h: New file.
11773 * common/def-vector.h: New file.
11774 * common/default-init-alloc.h: New file.
11775 * dwarf2loc.c: Include "common/byte-vector.h".
11776 (rw_pieced_value): Use gdb::byte_vector, and resize the vector
11777 instead of reserving it.
11778 * dwarf2read.c: Include "common/byte-vector.h".
11779 (data_buf::m_vec): Now a gdb::byte_vector.
11780 * gdb_regex.c: Include "common/def-vector.h".
11781 (compiled_regex::compiled_regex): Use gdb::def_vector<char>.
11782 * mi/mi-main.c: Include "common/byte-vector.h".
11783 (mi_cmd_data_read_memory): Use gdb::byte_vector.
11784 * printcmd.c: Include "common/byte-vector.h".
11785 (print_scalar_formatted): Use gdb::byte_vector.
11786 * valprint.c: Include "common/byte-vector.h".
11787 (maybe_negate_by_bytes, print_decimal_chars): Use
11788 gdb::byte_vector.
11789
11790 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
11791
11792 * darwin-nat.c: Include "nat/fork-inferior.h".
11793
11794 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
11795
11796 * configure.nat: Factor out Darwin bits that are not
11797 architecture-specific. Add fork-inferior.o.
11798
11799 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
11800
11801 * configure.nat: Factor out AIX bits that are not
11802 architecture-specific. Add fork-inferior.o.
11803
11804 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11805
11806 * dwarf2loc.c (rw_pieced_value): New. Merge logic from...
11807 (read_pieced_value, write_pieced_value): ...here. Reduce to
11808 wrappers that just call rw_pieced_value.
11809
11810 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11811
11812 * dwarf2loc.c (write_pieced_value): When writing the data for a
11813 memory piece, use write_memory_with_notification instead of
11814 write_memory.
11815
11816 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11817
11818 * valops.c (read_value_memory): Change embedded_offset to
11819 represent a bit offset instead of a byte offset.
11820 * value.h (read_value_memory): Adjust comment.
11821
11822 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11823
11824 * dwarf2loc.c (read_pieced_value): Remove unnecessary variables
11825 dest_offset_bits and source_offset_bits.
11826 (write_pieced_value): Likewise.
11827
11828 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11829
11830 * dwarf2loc.c (read_pieced_value): Respect the piece offset, as
11831 given by DW_OP_bit_piece.
11832 (write_pieced_value): Likewise.
11833
11834 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11835
11836 * dwarf2loc.c (read_pieced_value): Move the buffer allocation and
11837 some other preparations to the places where sufficient information
11838 is available.
11839 (write_pieced_value): Likewise.
11840
11841 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11842
11843 * dwarf2loc.c (bits_to_bytes): New function.
11844 (read_pieced_value): Fix offset calculations for register pieces
11845 on big-endian targets.
11846 (write_pieced_value): Likewise.
11847
11848 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11849
11850 * dwarf2loc.c (read_pieced_value): Remove buffer_size variable.
11851 (write_pieced_value): Likewise.
11852
11853 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11854
11855 * dwarf2loc.c (write_pieced_value): When writing to a bit-field,
11856 transfer the source value's least significant bits, instead of its
11857 lowest-addressed ones. Rename type_len to max_offset.
11858 (read_pieced_value): Mirror above changes to write_pieced_value as
11859 applicable.
11860
11861 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11862
11863 * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY,
11864 truncate full bytes from dest_offset_bits before using it as an
11865 offset into the buffer.
11866
11867 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11868
11869 * dwarf2loc.c (write_pieced_value): Include transfer size in
11870 byte-wise check.
11871
11872 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11873
11874 * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the
11875 calculation of this_size.
11876
11877 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11878
11879 * dwarf2loc.c (read_pieced_value): Respect parent value's offset
11880 when targeting a bit-field.
11881 (write_pieced_value): Likewise.
11882
11883 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11884
11885 * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field.
11886 (allocate_piece_closure): Drop addr_size parameter.
11887 (dwarf2_evaluate_loc_desc_full): Adjust call to
11888 allocate_piece_closure.
11889
11890 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11891
11892 PR gdb/21226
11893 * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at
11894 the LSB end, independent of endianness.
11895
11896 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11897
11898 * dwarf2loc.c (write_pieced_value): Fix order of calculations for
11899 size capping.
11900
11901 2017-06-13 Yao Qi <yao.qi@linaro.org>
11902
11903 * mips-linux-nat.c: Move include features/mips*-linux.c to
11904 mips-linux-tdep.c.
11905 (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls
11906 to mips-linux-tdep.c.
11907 * mips-linux-tdep.c: Include features/mips*-linux.c
11908 (_initialize_mips_linux_tdep): Call initialize_tdesc_mips*
11909 functions.
11910 * mips-linux-tdep.h (tdesc_mips_linux): Declare.
11911 (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare.
11912 (tdesc_mips64_dsp_linux): Declare.
11913
11914 2017-06-12 Tom Tromey <tom@tromey.com>
11915
11916 * valprint.h (val_print_type_code_int): Remove.
11917 * valprint.c (generic_val_print_int): Always call
11918 val_print_scalar_formatted.
11919 (val_print_type_code_int): Remove.
11920 * printcmd.c (print_scalar_formatted): Handle options->format==0.
11921 * f-valprint.c (f_val_print): Use val_print_scalar_formatted.
11922 * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted.
11923 * ada-valprint.c (ada_val_print_num): Use
11924 val_print_scalar_formatted.
11925
11926 2017-06-12 Tom Tromey <tom@tromey.com>
11927
11928 * printcmd.c (print_scalar_formatted): Unify the two switches.
11929 Don't convert scalars to LONGEST.
11930
11931 2017-06-12 Tom Tromey <tom@tromey.com>
11932
11933 PR exp/16225:
11934 * valprint.h (print_decimal_chars): Update.
11935 * valprint.c (maybe_negate_by_bytes): New function.
11936 (print_decimal_chars): Add "is_signed" argument.
11937 * printcmd.c (print_scalar_formatted): Update.
11938
11939 2017-06-12 Tom Tromey <tom@tromey.com>
11940
11941 PR exp/16225:
11942 * valprint.h (print_binary_chars, print_hex_chars): Update.
11943 * valprint.c (val_print_type_code_int): Update.
11944 (print_binary_chars): Add "zero_pad" argument.
11945 (emit_octal_digit): New function.
11946 (print_octal_chars): Don't zero-pad.
11947 (print_decimal_chars): Likewise.
11948 (print_hex_chars): Add "zero_pad" argument.
11949 * sh64-tdep.c (sh64_do_fp_register): Update.
11950 * regcache.c (regcache::dump): Update.
11951 * printcmd.c (print_scalar_formatted): Update.
11952 * infcmd.c (default_print_one_register_info): Update.
11953
11954 2017-06-12 Pedro Alves <palves@redhat.com>
11955 Alan Hayward <alan.hayward@arm.com>
11956
11957 * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New.
11958 (mips_eabi_push_dummy_call): Rename local 'regsize' to
11959 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and
11960 use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it.
11961 Assert that abi_regsize bytes fit in 'ref_valbuf'.
11962
11963 2017-06-12 Pedro Alves <palves@redhat.com>
11964
11965 * dwarf2read.c (mapped_symtab::data): Now a vector of
11966 symtab_index_entry instead of vector of
11967 std::unique_ptr<symtab_index_entry>. All users adjusted to check
11968 whether an element's name is NULL instead of checking whether the
11969 element itself is NULL.
11970 (find_slot): Change return type. Adjust.
11971 (hash_expand, , add_index_entry, uniquify_cu_indices)
11972 (write_hash_table): Adjust.
11973
11974 2017-06-12 Pedro Alves <palves@redhat.com>
11975
11976 * dwarf2read.c (recursively_count_psymbols): New function.
11977 (write_psymtabs_to_index): Call it to compute number of psyms and
11978 pass estimate size of psyms_seen to unordered_set's ctor.
11979
11980 2017-06-12 Pedro Alves <palves@redhat.com>
11981
11982 * dwarf2read.c (write_hash_table): Check if key already exists
11983 before emplacing.
11984
11985 2017-06-12 Pedro Alves <palves@redhat.com>
11986
11987 * dwarf2read.c (data_buf::append_space): Rename to...
11988 (data_buf::grow): ... this, and make private. Adjust all callers.
11989 (data_buf::append_uint): New method.
11990 (add_address_entry, write_one_signatured_type)
11991 (write_psymtabs_to_index): Use it.
11992
11993 2017-06-12 Pedro Alves <palves@redhat.com>
11994
11995 * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete.
11996 (file_write (FILE *, const std::vector<Elem>&)): Delete.
11997 (data_buf::file_write): Call ::fwrite directly.
11998
11999 2017-06-12 Pedro Alves <palves@redhat.com>
12000
12001 * dwarf2read.c (uniquify_cu_indices): Use std::unique and
12002 std::vector::erase.
12003
12004 2017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com>
12005
12006 Code cleanup: C++ify .gdb_index producer.
12007 * dwarf2read.c: Include <unordered_set> and <unordered_map>.
12008 (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type.
12009 (struct strtab_entry, hash_strtab_entry, eq_strtab_entry)
12010 (create_strtab, add_string): Remove.
12011 (file_write, data_buf): New.
12012 (struct symtab_index_entry): Use std::vector for cu_indices.
12013 (struct mapped_symtab): Use std::vector for data.
12014 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry)
12015 (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab):
12016 Remove.
12017 (find_slot): Change return type. Update it to the new data structures.
12018 (hash_expand, add_index_entry): Update it to the new data structures.
12019 (offset_type_compare): Remove.
12020 (uniquify_cu_indices): Update it to the new data structures.
12021 (c_str_view, c_str_view_hasher, vector_hasher): New.
12022 (add_indices_to_cpool): Remove.
12023 (write_hash_table): Update it to the new data structures.
12024 (struct psymtab_cu_index_map, hash_psymtab_cu_index)
12025 (eq_psymtab_cu_index): Remove.
12026 (psym_index_map): New typedef.
12027 (struct addrmap_index_data): Change addr_obstack pointer to data_buf
12028 reference and std::unordered_map for cu_index_htab.
12029 (add_address_entry, add_address_entry_worker, write_address_map)
12030 (write_psymbols): Update it to the new data structures.
12031 (write_obstack): Remove.
12032 (struct signatured_type_index_data): Change types_list to a data_buf
12033 reference and psyms_seen to a std::unordered_set reference.
12034 (write_one_signatured_type, recursively_write_psymbols)
12035 (write_psymtabs_to_index): Update it to the new data structures.
12036
12037 2017-06-11 Simon Marchi <simon.marchi@ericsson.com>
12038
12039 * NEWS (Changes since GDB 8.0): Announce {set,show} debug
12040 separate-debug-file commands.
12041 * symfile.h (separate_debug_file_debug): New global.
12042 * symfile.c (separate_debug_file_debug): New global.
12043 (separate_debug_file_exists, find_separate_debug_file): Add
12044 debug output.
12045 (_initialize_symfile): Add "set debug separate-debug-file"
12046 command.
12047 * build-id.c (build_id_to_debug_bfd,
12048 find_separate_debug_file_by_buildid): Add debug output.
12049
12050 2017-06-10 Simon Marchi <simon.marchi@polymtl.ca>
12051
12052 * gdbarch.sh (displaced_step_free_closure): Remove.
12053 * gdbarch.h, gdbarch.c: Re-generate.
12054 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set
12055 displaced_step_free_closure.
12056 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
12057 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
12058 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
12059 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
12060 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12061 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12062 * arch-utils.h (simple_displaced_step_free_closure): Remove.
12063 * arch-utils.c (simple_displaced_step_free_closure): Remove.
12064 * infrun.c (displaced_step_clear): Call xfree instead of
12065 gdbarch_displaced_step_free_closure.
12066
12067 2017-06-08 Sergio Durigan Junior <sergiodj@redhat.com>
12068
12069 * common/common-utils.c (stringify_argv): Check for "arg[0] !=
12070 NULL".
12071
12072 2017-06-08 Alan Hayward <alan.hayward@arm.com>
12073
12074 * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add.
12075 (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE.
12076 (mn10300_push_dummy_call): Likewise.
12077
12078 2017-06-08 Alan Hayward <alan.hayward@arm.com>
12079
12080 * mi/mi-main.c (register_changed_p): Use value_contents_eq.
12081
12082 2017-06-08 Alan Hayward <alan.hayward@arm.com>
12083
12084 * mi/mi-main.c (register_changed_p): Use cooked_read_value.
12085
12086 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
12087
12088 * NEWS (Changes since GDB 8.0): Announce that GDBserver is now
12089 able to start inferiors using a shell.
12090 (New remote packets): Announce new packet "QStartupWithShell".
12091 * remote.c: Add PACKET_QStartupWithShell.
12092 (extended_remote_create_inferior): Handle new
12093 PACKET_QStartupWithShell.
12094 (remote_protocol_features) <QStartupWithShell>: New entry for
12095 PACKET_QStartupWithShell.
12096 (_initialize_remote): Call "add_packet_config_cmd" for
12097 QStartupShell.
12098
12099 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
12100 Pedro Alves <palves@redhat.com>
12101
12102 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h"
12103 and "nat/fork-inferior.h".
12104 * common/common-inferior.h: New file, with contents from
12105 "gdb/inferior.h".
12106 * commom/common-utils.c: Include "common-utils.h".
12107 (stringify_argv): New function.
12108 * common/common-utils.h (stringify_argv): New prototype.
12109 * configure.nat: Add "fork-inferior.o" as a dependency for
12110 "*linux*", "fbsd*" and "nbsd*" hosts.
12111 * corefile.c (get_exec_file): Update comment.
12112 * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior"
12113 instead of "startup_inferior".
12114 (darwin_create_inferior): Call "add_thread_silent" after
12115 "fork_inferior".
12116 * fork-child.c: Cleanup unnecessary includes.
12117 (SHELL_FILE): Move to "common/common-fork-child.c".
12118 (environ): Likewise.
12119 (exec_wrapper): Initialize.
12120 (get_exec_wrapper): New function.
12121 (breakup_args): Move to "common/common-fork-child.c"; rename to
12122 "breakup_args_for_exec".
12123 (escape_bang_in_quoted_argument): Move to
12124 "common/common-fork-child.c".
12125 (saved_ui): New variable.
12126 (prefork_hook): New function.
12127 (postfork_hook): Likewise.
12128 (postfork_child_hook): Likewise.
12129 (gdb_startup_inferior): Likewise.
12130 (fork_inferior): Move to "common/common-fork-child.c". Update
12131 function to support gdbserver.
12132 (startup_inferior): Likewise.
12133 * gdbcore.h (get_exec_file): Remove declaration.
12134 * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior"
12135 instead of "startup_inferior". Call "add_thread_silent" after
12136 "fork_inferior".
12137 * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h".
12138 (inf_ptrace_create_inferior): Call "gdb_startup_inferior"
12139 instead of "startup_inferior". Call "add_thread_silent" after
12140 "fork_inferior".
12141 * inferior.h: Include "common-inferior.h".
12142 (trace_start_error): Move to "common/common-utils.h".
12143 (trace_start_error_with_name): Likewise.
12144 (fork_inferior): Move prototype to "nat/fork-inferior.h".
12145 (startup_inferior): Likewise.
12146 (gdb_startup_inferior): New prototype.
12147 * nat/fork-inferior.c: New file, with contents from "fork-child.c".
12148 * nat/fork-inferior.h: New file.
12149 * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior"
12150 instead of "startup_inferior". Call "add_thread_silent" after
12151 "fork_inferior".
12152 * target.h (target_terminal_init): Move prototype to
12153 "target/target.h".
12154 (target_terminal_inferior): Likewise.
12155 (target_terminal_ours): Likewise.
12156 * target/target.h (target_terminal_init): New prototype, moved
12157 from "target.h".
12158 (target_terminal_inferior): Likewise.
12159 (target_terminal_ours): Likewise.
12160 * utils.c (gdb_flush_out_err): New function.
12161
12162 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
12163
12164 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h".
12165 * common/common-gdbthread.h: New file, with parts from
12166 "gdb/gdbthread.h".
12167 * gdbthread.h: Include "common-gdbthread.h".
12168 (switch_to_thread): Moved to "common/common-gdbthread.h".
12169
12170 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
12171
12172 * Makefile.in (SFILES): Add "common/job-control.c".
12173 (HFILES_NO_SRCDIR): Add "common/job-control.h".
12174 (COMMON_OBS): Add "job-control.o".
12175 * common/job-control.c: New file, with contents from
12176 "gdb/inflow.c".
12177 * common/job-control.h: New file, with contents from "terminal.h".
12178 * fork-child.c: Include "job-control.h".
12179 * inflow.c: Include "job-control.h".
12180 (gdb_setpgid): Move to "common/common-inflow.c".
12181 (_initialize_inflow): Move setting of "job_control" to
12182 "handle_job_control".
12183 * terminal.h (job_control): Moved to "common/common-terminal.h".
12184 (gdb_setpgid): Likewise.
12185 * top.c: Include "job_control.h".
12186 * utils.c: Likewise.
12187 (job_control): Moved to "job-control.c".
12188
12189 2017-06-07 Pedro Alves <palves@redhat.com>
12190
12191 * Makefile.in (SFILES): Add gdb_regex.c.
12192 (COMMON_OBS): Add gdb_regex.o.
12193 * ada-lang.c (ada_add_standard_exceptions)
12194 (ada_add_exceptions_from_frame, name_matches_regex)
12195 (ada_add_global_exceptions, ada_exceptions_list_1): Change regex
12196 parameter type to compiled_regex. Adjust.
12197 (ada_exceptions_list): Use compiled_regex.
12198 * break-catch-throw.c (exception_catchpoint::pattern): Now a
12199 std::unique_ptr<compiled_regex>.
12200 (exception_catchpoint::~exception_catchpoint): Remove regfree
12201 call.
12202 (check_status_exception_catchpoint): Adjust to use compiled_regex.
12203 (handle_gnu_v3_exceptions): Adjust to use compiled_regex.
12204 * breakpoint.c (solib_catchpoint::compiled): Now a
12205 std::unique_ptr<compiled_regex>.
12206 (solib_catchpoint::~solib_catchpoint): Remove regfree call.
12207 (check_status_catch_solib): Adjust to use compiled_regex.
12208 (add_solib_catchpoint): Adjust to use compiled_regex.
12209 * cli/cli-cmds.c (apropos_command): Use compiled_regex.
12210 * cli/cli-decode.c (apropos_cmd): Change regex parameter to
12211 compiled_regex reference. Adjust to use it.
12212 * cli/cli-decode.h: Remove struct re_pattern_buffer forward
12213 declaration. Include "gdb_regex.h".
12214 (apropos_cmd): Change regex parameter to compiled_regex reference.
12215 * gdb_regex.c: New file.
12216 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete
12217 declarations.
12218 (class compiled_regex): New.
12219 * linux-tdep.c: Include "common/gdb_optional.h".
12220 (struct mapping_regexes): New, factored out from
12221 mapping_is_anonymous_p, and adjusted to use compiled_regex.
12222 (mapping_is_anonymous_p): Use mapping_regexes wrapped in a
12223 gdb::optional and remove cleanups. Adjust to compiled_regex.
12224 * probe.c: Include "common/gdb_optional.h".
12225 (collect_probes): Use compiled_regex and gdb::optional and remove
12226 cleanups.
12227 * skip.c: Include "common/gdb_optional.h".
12228 (skiplist_entry::compiled_function_regexp): Now a
12229 gdb::optional<compiled_regex>.
12230 (skiplist_entry::compiled_function_regexp_is_valid): Delete field.
12231 (free_skiplist_entry): Remove regfree call.
12232 (compile_skip_regexp, skip_rfunction_p): Adjust to use
12233 compiled_regex and gdb::optional.
12234 * symtab.c: Include "common/gdb_optional.h".
12235 (search_symbols): Use compiled_regex and gdb::optional.
12236 * utils.c (do_regfree_cleanup, make_regfree_cleanup)
12237 (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved
12238 to gdb_regex.c.
12239
12240 2017-06-07 Alan Hayward <alan.hayward@arm.com>
12241
12242 * regcache.c (regcache::save): Avoid buffer use.
12243 (regcache::dump): Likewise.
12244
12245 2017-06-07 Alan Hayward <alan.hayward@arm.com>
12246
12247 * sh-tdep.c (sh_pseudo_register_read): Remove
12248 MAX_REGISTER_SIZE.
12249 (sh_pseudo_register_write): Likewise.
12250 * sh64-tdep.c (sh64_pseudo_register_read): Likewise.
12251 (sh64_pseudo_register_write): Likewise
12252
12253 2017-06-07 Alan Hayward <alan.hayward@arm.com>
12254
12255 * aarch64-tdep.c (aarch64_store_return_value): Use
12256 V_REGISTER_SIZE.
12257 (aarch64_pseudo_read_value): Likewise.
12258 (aarch64_pseudo_write): Likewise.
12259
12260 2017-06-06 Yao Qi <yao.qi@linaro.org>
12261
12262 * regformats/regdef.h (set_register_cache): Remove the
12263 declaration.
12264
12265 2017-06-06 Alan Hayward <alan.hayward@arm.com>
12266
12267 * frame.c (frame_unwind_register_signed): Use
12268 frame_unwind_register_value.
12269
12270 2017-06-06 Pedro Alves <palves@redhat.com>
12271
12272 PR breakpoints/21553
12273 * breakpoint.c (create_breakpoints_sal_default)
12274 (init_breakpoint_sal, create_breakpoint_sal): Use
12275 gdb::unique_xmalloc_ptr for string parameters.
12276 (create_breakpoint): Constify 'extra_string' and 'cond_string'
12277 parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
12278 (base_breakpoint_create_breakpoints_sal)
12279 (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
12280 (strace_marker_create_breakpoints_sal)
12281 (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
12282 string parameters.
12283 * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
12284 gdb::unique_xmalloc_ptr for string parameters.
12285 (create_breakpoint): Constify 'extra_string' and 'cond_string'
12286 parameters.
12287
12288 2017-06-06 Alan Hayward <alan.hayward@arm.com>
12289
12290 * alpha-tdep.c (alpha_register_to_value): Use
12291 get_frame_register_value.
12292 (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
12293
12294 2017-06-06 Alan Hayward <alan.hayward@arm.com>
12295
12296 * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
12297 (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
12298 (ia64_value_to_register): Likewise.
12299 (ia64_extract_return_value): Likewise.
12300 (ia64_store_return_value): Likewise.
12301 (ia64_push_dummy_call): Likewise.
12302
12303 2017-06-04 Joel Brobecker <brobecker@adacore.com>
12304
12305 GDB 8.0 released.
12306
12307 2017-06-03 Simon Marchi <simon.marchi@ericsson.com>
12308
12309 * x86-linux-nat.c (struct arch_lwp_info): Remove.
12310
12311 2017-06-03 Simon Marchi <simon.marchi@polymtl.ca>
12312
12313 * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
12314 parameter.
12315 (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
12316
12317 2017-06-02 Simon Marchi <simon.marchi@ericsson.com>
12318
12319 * event-loop.c (poll_timers): Unallocate timer using delete
12320 instead of xfree.
12321
12322 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
12323
12324 * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
12325 (struct breakpoint) <~breakpoint>: New.
12326 (struct watchpoint): Inherit from breakpoint.
12327 <~watchpoint>: New.
12328 <base>: Remove.
12329 (struct tracepoint): Inherit from breakpoint.
12330 <base>: Remove.
12331 * breakpoint.c (longjmp_breakpoint_ops): Remove.
12332 (struct longjmp_breakpoint): Inherit from breakpoint.
12333 <~longjmp_breakpoint>: New.
12334 <base>: Remove.
12335 (new_breakpoint_from_type): Remove casts.
12336 (watchpoint_in_thread_scope): Remove reference to base field.
12337 (watchpoint_del_at_next_stop): Likewise.
12338 (update_watchpoint): Likewise.
12339 (watchpoint_check): Likewise.
12340 (bpstat_check_watchpoint): Likewise.
12341 (set_longjmp_breakpoint): Likewise.
12342 (struct fork_catchpoint): Inherit from breakpoint.
12343 <base>: Remove.
12344 (struct solib_catchpoint): Inherit from breakpoint.
12345 <~solib_catchpoint>: New.
12346 <base>: Remove.
12347 (dtor_catch_solib): Change to ...
12348 (solib_catchpoint::~solib_catchpoint): ... this.
12349 (breakpoint_hit_catch_solib): Remove reference to base field.
12350 (add_solib_catchpoint): Likewise.
12351 (create_fork_vfork_event_catchpoint): Likewise.
12352 (struct exec_catchpoint): Inherit from breakpoint.
12353 <~exec_catchpoint>: New.
12354 <base>: Remove.
12355 (dtor_catch_exec): Change to ...
12356 (exec_catchpoint::~exec_catchpoint): ... this.
12357 (dtor_watchpoint): Change to ...
12358 (watchpoint::~watchpoint): ... this.
12359 (watch_command_1): Remove reference to base field.
12360 (catch_exec_command_1): Likewise.
12361 (base_breakpoint_dtor): Change to ...
12362 (breakpoint::~breakpoint): ... this.
12363 (base_breakpoint_ops): Remove dtor field value.
12364 (longjmp_bkpt_dtor): Change to ...
12365 (longjmp_breakpoint::~longjmp_breakpoint): ... this.
12366 (strace_marker_create_breakpoints_sal): Remove reference to base
12367 field.
12368 (delete_breakpoint): Don't manually call breakpoint destructor.
12369 (create_tracepoint_from_upload): Remove reference to base field.
12370 (trace_pass_set_count): Likewise.
12371 (initialize_breakpoint_ops): Don't initialize
12372 momentary_breakpoint_ops, don't set dtors.
12373 * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
12374 <~ada_catchpoint>: New.
12375 <base>: Remove.
12376 (create_excep_cond_exprs): Remove reference to base field.
12377 (dtor_exception): Change to ...
12378 (ada_catchpoint::~ada_catchpoint): ... this.
12379 (dtor_catch_exception): Remove.
12380 (dtor_catch_exception_unhandled): Remove.
12381 (dtor_catch_assert): Remove.
12382 (create_ada_exception_catchpoint): Remove reference to base
12383 field.
12384 (initialize_ada_catchpoint_ops): Don't set dtors.
12385 * break-catch-sig.c (struct signal_catchpoint): Inherit from
12386 breakpoint.
12387 <~signal_catchpoint>: New.
12388 <base>: Remove.
12389 (signal_catchpoint_dtor): Change to ...
12390 (signal_catchpoint::~signal_catchpoint): ... this.
12391 (create_signal_catchpoint): Remove reference to base field.
12392 (initialize_signal_catchpoint_ops): Don't set dtor.
12393 * break-catch-syscall.c (struct syscall_catchpoint): Inherit
12394 from breakpoint.
12395 <~syscall_catchpoint>: New.
12396 <base>: Remove.
12397 (dtor_catch_syscall): Change to ...
12398 (syscall_catchpoint::~syscall_catchpoint): ... this.
12399 (create_syscall_event_catchpoint): Remove reference to base
12400 field.
12401 (initialize_syscall_catchpoint_ops): Don't set dtor.
12402 * break-catch-throw.c (struct exception_catchpoint): Inherit
12403 from breakpoint.
12404 <~exception_catchpoint>: New.
12405 <base>: Remove.
12406 (dtor_exception_catchpoint): Change to ...
12407 (exception_catchpoint::~exception_catchpoint): ... this.
12408 (handle_gnu_v3_exceptions): Remove reference to base field.
12409 (initialize_throw_catchpoint_ops): Don't set dtor.
12410 * ctf.c (ctf_get_traceframe_address): Remove reference to base
12411 field.
12412 * remote.c (remote_get_tracepoint_status): Likewise.
12413 * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
12414 * tracefile.c (tracefile_fetch_registers): Likewise.
12415 * tracepoint.c (actions_command): Likewise.
12416 (validate_actionline): Likewise.
12417 (tfind_1): Likewise.
12418 (get_traceframe_location): Likewise.
12419 (find_matching_tracepoint_location): Likewise.
12420 (parse_tracepoint_status): Likewise.
12421 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
12422
12423 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
12424
12425 * breakpoint.c (struct longjmp_breakpoint): New struct.
12426 (is_tracepoint_type): Change return type to bool.
12427 (is_longjmp_type): New function.
12428 (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
12429 (set_raw_breakpoint_without_location): Use
12430 new_breakpoint_from_type.
12431 (set_raw_breakpoint): Likewise.
12432
12433 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
12434
12435 * breakpoint.c (new_breakpoint_from_type): New function.
12436 (create_breakpoint_sal): Use new_breakpoint_from_type and
12437 unique_ptr.
12438 (create_breakpoint): Likewise.
12439
12440 2017-05-31 Simon Marchi <simon.marchi@ericsson.com>
12441
12442 * memattr.c (mem_info_command): Rename to ...
12443 (info_mem_command): ... this.
12444 (mem_enable_command): Rename to ...
12445 (enable_mem_command): ... this.
12446 (mem_disable_command): Rename to ...
12447 (disable_mem_command): ... this.
12448 (mem_delete_command): Rename to ...
12449 (delete_mem_command): ... this.
12450 (_initialize_mem): Adjust function names.
12451
12452 2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
12453
12454 * btrace.c (handle_pt_insn_events): New.
12455 (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into
12456 STATUS. Split into this and ...
12457 (handle_pt_insn_event_flags): ... this.
12458
12459 2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
12460
12461 * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
12462 and struct pt_insn.resynced.
12463 * configure: Regenerated.
12464 * config.in: Regenerated.
12465
12466 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12467
12468 * btrace.c (ftrace_find_call_by_number): New function.
12469 (ftrace_new_function): Store objects, not pointers.
12470 (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
12471 ftrace_new_gap, ftrace_update_function,
12472 ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
12473 btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
12474 btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
12475 btrace_ends_with_single_insn, btrace_call_get): Account for
12476 btrace_thread_info::functions now storing objects.
12477 * btrace.h (struct btrace_thread_info): Add constructor.
12478 (struct btrace_thread_info) <functions>: Make std::vector.
12479 (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
12480 Initialize with default values.
12481 * record-btrace.c (record_btrace_frame_sniffer): Account for
12482 btrace_thread_info::functions now storing objects.
12483
12484 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12485
12486 * btrace.c: Remove typedef bfun_s.
12487 (ftrace_new_gap): Directly add gaps to the list of gaps.
12488 (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
12489 ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
12490 btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
12491 instead of gdb VEC.
12492
12493 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12494
12495 * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
12496 ftrace_bridge_gap): Replace references to btrace_thread_info::segment
12497 with btrace_thread_info::next_segment and
12498 btrace_thread_info::prev_segment.
12499 * btrace.h: Remove struct btrace_func_link.
12500 (struct btrace_function): Replace pair of function segment pointers
12501 with pair of indices.
12502 * python/py-record-btrace.c (btpy_call_prev_sibling,
12503 btpy_call_next_sibling): Replace references to
12504 btrace_thread_info::segment with btrace_thread_info::next_segment and
12505 btrace_thread_info::prev_segment.
12506 * record-btrace.c (record_btrace_frame_this_id): Use
12507 btrace_find_call_by_number.
12508
12509 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12510
12511 * btrace.c (ftrace_new_function, ftrace_fixup_level,
12512 ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
12513 btrace_insn_next, btrace_insn_prev): Remove references to
12514 btrace_thread_info::flow.
12515 * btrace.h (struct btrace_function): Remove FLOW.
12516
12517 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12518
12519 * btrace.c (ftrace_find_call_by_number): New function.
12520 (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
12521 ftrace_get_caller, ftrace_find_call, ftrace_new_return,
12522 ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
12523 ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
12524 index.
12525 * btrace.h (struct btrace_function): Turn UP into an index.
12526 * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
12527 as an index.
12528 * record-btrace.c (record_btrace_frame_unwind_stop_reason,
12529 record_btrace_frame_prev_register, record_btrace_frame_sniffer,
12530 record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
12531
12532 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12533
12534 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
12535 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
12536 ftrace_update_function, ftrace_compute_global_level_offset,
12537 btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
12538 btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
12539 btrace_insn_end, btrace_is_empty): Remove references to
12540 btrace_thread_info::begin and btrace_thread_info::end.
12541 * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
12542 (struct btrace_thread_info) <functions>: Adjust comment.
12543 * record-btrace.c (record_btrace_start_replaying): Remove reference to
12544 btrace_thread_info::begin.
12545
12546 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12547
12548 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
12549 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
12550 ftrace_update_function): Remove arguments that implicitly were always
12551 BTINFO->END.
12552 (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
12553 Don't pass BTINFO->END.
12554
12555 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12556
12557 * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
12558 btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
12559 btrace_find_insn_by_number): Replace function segment pointer with
12560 index.
12561 (btrace_insn_cmp): Simplify.
12562 * btrace.h: (struct btrace_insn_iterator) Rename index to
12563 insn_index. Replace function segment pointer with index into function
12564 segment vector.
12565 * record-btrace.c (record_btrace_call_history): Replace function
12566 segment pointer use with index.
12567 (record_btrace_frame_sniffer): Retrieve function call segment through
12568 vector.
12569 (record_btrace_set_replay): Remove defunc't safety check.
12570
12571 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12572
12573 * btrace.c (btrace_ends_with_single_insn): New function.
12574 (btrace_call_get, btrace_call_number, btrace_call_begin,
12575 btrace_call_end, btrace_call_next, btrace_call_prev,
12576 btrace_find_call_by_number): Use index into call segment vector
12577 instead of pointer.
12578 (btrace_call_cmp): Simplify.
12579 * btrace.h (struct btrace_call_iterator): Replace function call segment
12580 pointer with index into vector.
12581 * record-btrace.c (record_btrace_call_history): Use index instead of
12582 pointer.
12583
12584 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12585
12586 * btrace.c (btrace_insn_begin, btrace_insn_end,
12587 btrace_find_insn_by_number): Add btinfo to iterator.
12588 * btrace.h (struct btrace_insn_iterator): Add btinfo.
12589
12590 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12591
12592 * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
12593 and save pointers directly.
12594 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
12595 ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
12596 ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for
12597 changed signature of functions.
12598 (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
12599 (btrace_fetch): Remove code that adds btrace_function pointers to
12600 vector of btrace_functions.
12601 (btrace_clear): Simplify freeing vector of btrace_functions.
12602
12603 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12604
12605 * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
12606 Replace VEC_* with std::vector functions.
12607 * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
12608 (struct btrace_thread_info)<functions>: Change type to std::vector.
12609
12610 2017-05-30 Simon Marchi <simon.marchi@ericsson.com>
12611
12612 * NEWS (Changes in GDB 8.0): Remove extra empty line. Move
12613 "Removed targets and native configurations" up. Merge duplicate
12614 "New commands" sub-sections. Add "New options" sub-sections.
12615
12616 2017-05-26 Alan Hayward <alan.hayward@arm.com>
12617
12618 * defs.h (copy_integer_to_size): New declaration.
12619 * findvar.c (copy_integer_to_size): New function.
12620 (do_cint_test): New selftest function.
12621 (copy_integer_to_size_test): Likewise.
12622 (_initialize_findvar): Likewise.
12623 * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
12624 (mips_fbsd_collect_reg): Use raw_collect_integer.
12625 * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
12626 (mips64_fill_gregset): Use raw_collect_integer
12627 (mips64_fill_fpregset): Use raw_supply_integer.
12628 * regcache.c (regcache::raw_supply_integer): New function.
12629 (regcache::raw_collect_integer): Likewise.
12630 * regcache.h: (regcache::raw_supply_integer): New declaration.
12631 (regcache::raw_collect_integer): Likewise.
12632
12633 2017-05-24 Yao Qi <yao.qi@linaro.org>
12634
12635 * Makefile.in (SFILES): Add gdbarch-selftests.c.
12636 (COMMON_OBS): Add gdbarch-selftests.o.
12637 * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
12638 * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
12639 * gdbarch-selftests.c: New file.
12640 * regcache.h (regcache) <~regcache>: Mark it virtual if
12641 GDB_SELF_TEST.
12642 <raw_write>: Likewise.
12643
12644 2017-05-24 Yao Qi <yao.qi@linaro.org>
12645
12646 * regcache.c (current_regcache): Change it to
12647 regcache::current_regcache.
12648 (regcache_observer_target_changed): Update.
12649 (regcache_thread_ptid_changed): Make it a regcache static
12650 method.
12651 (regcache_thread_ptid_changed): Update.
12652 (class regcache_access): New.
12653 (current_regcache_test): Update.
12654 (_initialize_regcache): Update.
12655 * regcache.h: Include forward_list.
12656 (regcache): Declare regcache_thread_ptid_changed and declare
12657 registers_changed_ptid as friend.
12658
12659 2017-05-24 Yao Qi <yao.qi@linaro.org>
12660
12661 * i387-tdep.c (i387_register_to_value): Use register_size
12662 instead of TYPE_LENGTH.
12663 * m68k-tdep.c (m68k_register_to_value): Likewise.
12664
12665 2017-05-24 Yao Qi <yao.qi@linaro.org>
12666
12667 * i387-tdep.c (i387_convert_register_p): Return false if type
12668 code isn't TYPE_CODE_FLT.
12669
12670 2017-05-24 Yao Qi <yao.qi@linaro.org>
12671
12672 * alpha-tdep.c (alpha_convert_register_p): Return true if type
12673 length is 4.
12674 (alpha_register_to_value): Remove type length check.
12675 (alpha_value_to_register): Likewise.
12676
12677 2017-05-24 Yao Qi <yao.qi@linaro.org>
12678
12679 * ia64-tdep.c (ia64_convert_register_p): Check type's code is
12680 TYPE_CODE_FLT.
12681
12682 2017-05-24 Yao Qi <yao.qi@linaro.org>
12683
12684 * m68k-tdep.c (m68k_convert_register_p): Check type's code is
12685 TYPE_CODE_FLT or not.
12686
12687 2017-05-24 Yao Qi <yao.qi@linaro.org>
12688
12689 * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
12690 * avr-tdep.c (avr_gdbarch_init): Likewise.
12691 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12692 * cris-tdep.c (cris_gdbarch_init): Likewise.
12693 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
12694 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12695 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12696 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
12697 * mep-tdep.c (mep_gdbarch_init): Likewise.
12698 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12699 * mips-tdep.c (mips_gdbarch_init): Likewise.
12700 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
12701 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12702 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
12703 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12704 * v850-tdep.c (v850_gdbarch_init): Likewise.
12705
12706 2017-05-24 Yao Qi <yao.qi@linaro.org>
12707
12708 * selftest-arch.c (tests_with_arch): Call registers_changed
12709 and reinit_frame_cache.
12710 * selftest.c (run_self_tests): Likewise.
12711
12712 2017-05-24 Yao Qi <yao.qi@linaro.org>
12713
12714 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.
12715 (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn.
12716
12717 2017-05-24 Yao Qi <yao.qi@linaro.org>
12718
12719 * rl78-tdep.c (rl78_gdbarch_init): Don't call
12720 set_gdbarch_print_insn.
12721
12722 2017-05-24 Yao Qi <yao.qi@linaro.org>
12723
12724 * h8300-tdep.c (h8300_gdbarch_init): Don't call
12725 set_gdbarch_print_insn.
12726
12727 2017-05-24 Yao Qi <yao.qi@linaro.org>
12728
12729 * alpha-tdep.c (alpha_gdbarch_init): Don't call
12730 set_gdbarch_print_insn.
12731 * arc-tdep.c (arc_gdbarch_init): Likewise.
12732 * arch-utils.c: include dis-asm.h.
12733 (default_print_insn): New function.
12734 * arch-utils.h (default_print_insn): Declare.
12735 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
12736 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12737 * cris-tdep.c (cris_delayed_get_disassembler): Remove.
12738 (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
12739 * frv-tdep.c (frv_gdbarch_init): Likewise.
12740 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
12741 * gdbarch.sh (print_insn): Use default_print_insn.
12742 * gdbarch.c: Regenerated.
12743 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12744 * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
12745 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12746 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
12747 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12748 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
12749 (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
12750 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
12751 * m88k-tdep.c (m88k_gdbarch_init): Likewise.
12752 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12753 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
12754 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12755 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
12756 * mt-tdep.c (mt_gdbarch_init): Likewise.
12757 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
12758 * nios2-tdep.c (nios2_print_insn): Remove.
12759 (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
12760 * rx-tdep.c (rx_gdbarch_init): Likewise.
12761 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12762 * score-tdep.c (score_print_insn): Remove.
12763 (score_gdbarch_init): Don't call set_gdbarch_print_insn.
12764 * sh-tdep.c (sh_gdbarch_init): Likewise.
12765 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12766 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12767 * tic6x-tdep.c (tic6x_print_insn): Remove.
12768 (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
12769 * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
12770 * v850-tdep.c (v850_gdbarch_init): Likewise.
12771 * vax-tdep.c (vax_gdbarch_init): Likewise.
12772 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
12773 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
12774
12775 2017-05-23 John Baldwin <jhb@FreeBSD.org>
12776
12777 * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
12778 (MIPS_FP0_REGNUM): Remove.
12779 (MIPS_FSR_REGNUM): Remove.
12780 (mips_fbsd_supply_fpregs): Use mips_regnum.
12781 (mips_fbsd_supply_gregs): Likewise.
12782 (mips_fbsd_collect_fpregs): Likewise.
12783 (mips_fbsd_collect_gregs): Likewise.
12784
12785 2017-05-23 John Baldwin <jhb@FreeBSD.org>
12786
12787 * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
12788 (getpfpregs_supplies): New function.
12789 (mips_fbsd_fetch_inferior_registers): Remove early exit and use
12790 getfpregs_supplies.
12791 (mips_fbsd_store_inferior_registers): Likewise.
12792
12793 2017-05-22 Pedro Alves <palves@redhat.com>
12794
12795 * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
12796 maintainer.
12797
12798 2017-05-22 Alan Hayward <alan.hayward@arm.com>
12799
12800 * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
12801 (store_register): Likewise.
12802 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
12803 (get_decimal_float_return_value): Likewise.
12804 (do_ppc_sysv_return_value): Likewise.
12805 (ppc64_sysv_abi_push_integer): Likewise.
12806 (ppc64_sysv_abi_push_freg): Likewise.
12807 (ppc64_sysv_abi_return_value_base): Likewise.
12808 (ppc64_sysv_abi_return_value): Likewise.
12809 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
12810 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
12811 * rs6000-nat.c: Likewise.
12812 * rs6000-tdep.c (rs6000_register_to_value): Likewise.
12813 (rs6000_value_to_register): Likewise.
12814 * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
12815
12816 2017-05-21 Tom Tromey <tom@tromey.com>
12817
12818 PR rust/21466:
12819 * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
12820 arrays as "[T]", not "[T; ]".
12821
12822 2017-05-19 Tom Tromey <tom@tromey.com>
12823
12824 PR rust/21484:
12825 * rust-lang.c (exp_descriptor_rust): New function.
12826 (rust_language_defn): Use it.
12827 * p-lang.c (pascal_language_defn): Update.
12828 * opencl-lang.c (opencl_language_defn): Update.
12829 * objc-lang.c (objc_language_defn): Update.
12830 * m2-lang.c (m2_language_defn): Update.
12831 * language.h (struct language_defn)
12832 <la_watch_location_expression>: New member.
12833 * language.c (unknown_language_defn, auto_language_defn)
12834 (local_language_defn): Update.
12835 * go-lang.c (go_language_defn): Update.
12836 * f-lang.c (f_language_defn): Update.
12837 * d-lang.c (d_language_defn): Update.
12838 * c-lang.h (c_watch_location_expression): Declare.
12839 * c-lang.c (c_watch_location_expression): New function.
12840 (c_language_defn, cplus_language_defn, asm_language_defn)
12841 (minimal_language_defn): Use it.
12842 * breakpoint.c (watch_command_1): Call
12843 la_watch_location_expression.
12844 * ada-lang.c (ada_language_defn): Update.
12845
12846 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12847
12848 PR tui/21482
12849 * gdb_curses.h (NOMACROS): Define.
12850 (NCURSES_NOMACROS): Define.
12851
12852 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12853
12854 PR tui/21482
12855 * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
12856 arg to char *.
12857 * tui/tui-wingeneral.c (box_win): Likewise.
12858 * tui/tui-winsource.c (tui_erase_source_content): Likewise.
12859 (tui_show_source_line): Likewise.
12860 (tui_show_exec_info_content): Likewise.
12861
12862 2017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
12863
12864 * sparc-tdep.c (sparc_structure_return_p)
12865 (sparc_arg_on_registers_p): New functions.
12866 (sparc32_store_arguments): Use them.
12867 * sparc64-tdep.c (sparc64_16_byte_align_p)
12868 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
12869 Handle TYPE_CODE_ARRAY.
12870
12871 2017-05-17 Yao Qi <yao.qi@linaro.org>
12872
12873 * cli/cli-decode.c (add_alias_cmd): New function.
12874 * command.h (add_alias_cmd): Declare.
12875 * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
12876 instead call add_alias_cmd.
12877
12878 2017-05-17 Pedro Alves <palves@redhat.com>
12879
12880 * Makefile.in (nat_extra_makefile_frag): Rename to ...
12881 (nat_makefile_frag): ... this. All references updated.
12882 * configure.ac: Likewise.
12883 * configure.nat: Likewise. Enhance comments.
12884 * configure: Regenerate.
12885
12886 2017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12887
12888 * procfs.c (procfs_create_inferior): Change prototype to match
12889 definition.
12890
12891 2017-05-13 Eli Zaretskii <eliz@gnu.org>
12892
12893 * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
12894 C++ compiler warning.
12895
12896 2017-05-12 Tom Tromey <tom@tromey.com>
12897
12898 PR rust/21483:
12899 * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
12900 recurse, just call value_struct_elt directly.
12901
12902 2017-05-12 Tom Tromey <tom@tromey.com>
12903
12904 * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
12905 OP_RUST_ARRAY>: Fix.
12906
12907 2017-05-12 Tom Tromey <tom@tromey.com>
12908
12909 * rust-lang.c (rust_print_subexp): Replace "return" with "break".
12910
12911 2017-05-09 Yao Qi <yao.qi@linaro.org>
12912
12913 * regcache.c: Include <forward_list>.
12914 (struct regcache_list): Remove.
12915 (current_regcache): Update.
12916 (get_thread_arch_aspace_regcache): Update for std::forward_list.
12917 (regcache_thread_ptid_changed): Likewise.
12918 (registers_changed_ptid): Likewise.
12919 (current_regcache_size): Likewise.
12920
12921 2017-05-09 Yao Qi <yao.qi@linaro.org>
12922
12923 * regcache.c [GDB_SELF_TEST]: Include selftest.h.
12924 (current_regcache_size): New function.
12925 (current_regcache_test): New function.
12926 (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
12927
12928 2017-05-08 Alan Hayward <alan.hayward@arm.com>
12929
12930 * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
12931 (print_gp_register_row): Use get_frame_register_value.
12932
12933 2017-05-08 Alan Hayward <alan.hayward@arm.com>
12934
12935 * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
12936 (mips_supply_fpregset): Likewise.
12937 (mips64_supply_gregset): Likewise.
12938
12939 2017-05-08 Alan Hayward <alan.hayward@arm.com>
12940
12941 * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
12942 regcache->raw_supply_zeroed.
12943
12944 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
12945
12946 * configure.nat: Rearrange 'case' statements to match
12947 host before cpu.
12948
12949 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
12950
12951 * Makefile.in: Remove "@host_makefile_frag@". Add variables
12952 NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
12953 NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
12954 "@nat_extra_makefile_frag@".
12955 (Makefile): Remove dependency on "@frags@".
12956 ($(GNULIB_BUILDDIR)/Makefile): Likewise.
12957 (data-directory/Makefile): Likewise.
12958 * config/aarch64/linux.mh: Deleted; moved contents to
12959 "gdb/configure.nat".
12960 * config/alpha/alpha-linux.mh: Likewise.
12961 * config/alpha/nbsd.mh: Likewise.
12962 * config/arm/linux.mh: Likewise.
12963 * config/arm/nbsdelf.mh: Likewise.
12964 * config/i386/cygwin.mh: Likewise.
12965 * config/i386/cygwin64.mh: Likewise.
12966 * config/i386/darwin.mh: Likewise.
12967 * config/i386/fbsd.mh: Likewise.
12968 * config/i386/fbsd64.mh: Likewise.
12969 * config/i386/go32.mh: Likewise.
12970 * config/i386/i386gnu.mh: Likewise.
12971 * config/i386/i386sol2.mh: Likewise.
12972 * config/i386/linux.mh: Likewise.
12973 * config/i386/linux64.mh: Likewise.
12974 * config/i386/mingw.mh: Likewise.
12975 * config/i386/mingw64.mh: Likewise.
12976 * config/i386/nbsd64.mh: Likewise.
12977 * config/i386/nbsdelf.mh: Likewise.
12978 * config/i386/nto.mh: Likewise.
12979 * config/i386/obsd.mh: Likewise.
12980 * config/i386/obsd64.mh: Likewise.
12981 * config/i386/sol2-64.mh: Likewise.
12982 * config/ia64/linux.mh: Likewise.
12983 * config/m32r/linux.mh: Likewise.
12984 * config/m68k/linux.mh: Likewise.
12985 * config/m68k/nbsdelf.mh: Likewise.
12986 * config/m68k/obsd.mh: Likewise.
12987 * config/m88k/obsd.mh: Likewise.
12988 * config/mips/fbsd.mh: Likewise.
12989 * config/mips/linux.mh: Likewise.
12990 * config/mips/nbsd.mh: Likewise.
12991 * config/mips/obsd64.mh: Likewise.
12992 * config/pa/linux.mh: Likewise.
12993 * config/pa/nbsd.mh: Likewise.
12994 * config/pa/obsd.mh: Likewise.
12995 * config/powerpc/aix.mh: Likewise.
12996 * config/powerpc/fbsd.mh: Likewise.
12997 * config/powerpc/linux.mh: Likewise.
12998 * config/powerpc/nbsd.mh: Likewise.
12999 * config/powerpc/obsd.mh: Likewise.
13000 * config/powerpc/ppc64-linux.mh: Likewise.
13001 * config/powerpc/spu-linux.mh: Likewise.
13002 * config/s390/linux.mh: Likewise.
13003 * config/sh/nbsd.mh: Likewise.
13004 * config/sparc/fbsd.mh: Likewise.
13005 * config/sparc/linux.mh: Likewise.
13006 * config/sparc/linux64.mh: Likewise.
13007 * config/sparc/nbsd64.mh: Likewise.
13008 * config/sparc/nbsdelf.mh: Likewise.
13009 * config/sparc/obsd64.mh: Likewise.
13010 * config/sparc/sol2.mh: Likewise.
13011 * config/tilegx/linux.mh: Likewise.
13012 * config/vax/nbsdelf.mh: Likewise.
13013 * config/vax/obsd.mh: Likewise.
13014 * config/xtensa/linux.mh: Likewise.
13015 * config/i386/i386gnu.mn: New file, with excerpts from
13016 "config/i386/i386gnu.mh".
13017 * configure: Regenerate.
13018 * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
13019 *.mh files under "gdb/config".
13020 * configure.nat: New file, with contents from the
13021 "gdb/config/*/*.mh" files.
13022
13023 2017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
13024
13025 * btrace.c (btrace_clear): Free insn vector.
13026
13027 2017-05-05 Pedro Alves <palves@redhat.com>
13028
13029 * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
13030 * configure: Regenerate.
13031
13032 2017-05-04 Pedro Alves <palves@redhat.com>
13033
13034 * Makefile.in (SFILES): Add progspace-and-thread.c.
13035 (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
13036 (COMMON_OBS): Add progspace-and-thread.o.
13037 * breakpoint.c: Include "progspace-and-thread.h".
13038 (update_inserted_breakpoint_locations)
13039 (insert_breakpoint_locations, create_longjmp_master_breakpoint):
13040 Use scoped_restore_current_pspace_and_thread.
13041 (create_std_terminate_master_breakpoint): Use
13042 scoped_restore_current_program_space.
13043 (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
13044 (print_breakpoint_location): Use
13045 scoped_restore_current_program_space.
13046 (bp_loc_is_permanent): Use
13047 scoped_restore_current_pspace_and_thread.
13048 (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
13049 (download_tracepoint_locations): Use
13050 scoped_restore_current_pspace_and_thread.
13051 (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
13052 * exec.c (exec_close_1): Use scoped_restore_current_program_space.
13053 (enum step_over_calls_kind): Moved from inferior.h.
13054 (class scoped_restore_current_thread): New class.
13055 * gdbthread.h (make_cleanup_restore_current_thread): Delete
13056 declaration.
13057 (scoped_restore_current_thread): New class.
13058 * infcmd.c: Include "common/gdb_optional.h".
13059 (continue_1, proceed_after_attach): Use
13060 scoped_restore_current_thread.
13061 (notice_new_inferior): Use scoped_restore_current_thread.
13062 * inferior.c: Include "progspace-and-thread.h".
13063 (restore_inferior, save_current_inferior): Delete.
13064 (add_inferior_command, clone_inferior_command): Use
13065 scoped_restore_current_pspace_and_thread.
13066 * inferior.h (scoped_restore_current_inferior): New class.
13067 * infrun.c: Include "progspace-and-thread.h" and
13068 "common/gdb_optional.h".
13069 (follow_fork_inferior): Use
13070 scoped_restore_current_pspace_and_thread.
13071 (scoped_restore_exited_inferior): New class.
13072 (handle_vfork_child_exec_or_exit): Use
13073 scoped_restore_exited_inferior,
13074 scoped_restore_current_pspace_and_thread,
13075 scoped_restore_current_thread and scoped_restore.
13076 (fetch_inferior_event): Use scoped_restore_current_thread.
13077 * linespec.c (decode_line_full, decode_line_1): Use
13078 scoped_restore_current_program_space.
13079 * mi/mi-main.c: Include "progspace-and-thread.h".
13080 (exec_continue): Use scoped_restore_current_thread.
13081 (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
13082 (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
13083 * proc-service.c (ps_pglobal_lookup): Use
13084 scoped_restore_current_program_space.
13085 * progspace-and-thread.c: New file.
13086 * progspace-and-thread.h: New file.
13087 * progspace.c (release_program_space, clone_program_space): Use
13088 scoped_restore_current_program_space.
13089 (restore_program_space, save_current_program_space)
13090 (save_current_space_and_thread): Delete.
13091 (switch_to_program_space_and_thread): Moved to
13092 progspace-and-thread.c.
13093 * progspace.h (save_current_program_space)
13094 (save_current_space_and_thread): Delete declarations.
13095 (scoped_restore_current_program_space): New class.
13096 * remote.c (remote_btrace_maybe_reopen): Use
13097 scoped_restore_current_thread.
13098 * symtab.c: Include "progspace-and-thread.h".
13099 (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
13100 * thread.c (print_thread_info_1): Use
13101 scoped_restore_current_thread.
13102 (struct current_thread_cleanup): Delete.
13103 (do_restore_current_thread_cleanup)
13104 (restore_current_thread_cleanup_dtor): Rename/convert both to ...
13105 (scoped_restore_current_thread::~scoped_restore_current_thread):
13106 ... this new dtor.
13107 (make_cleanup_restore_current_thread): Rename/convert to ...
13108 (scoped_restore_current_thread::scoped_restore_current_thread):
13109 ... this new ctor.
13110 (thread_apply_all_command): Use scoped_restore_current_thread.
13111 (thread_apply_command): Use scoped_restore_current_thread.
13112 * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
13113 * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
13114
13115 2017-05-04 Pedro Alves <palves@redhat.com>
13116
13117 * thread.c (make_cleanup_restore_current_thread): Move
13118 find_thread_ptid call before the is_stopped call. Assert that the
13119 thread is found. Replace is_stopped call by checking the thread's
13120 state directly. Remove unnecessary NULL-thread check.
13121
13122 2017-05-04 Pedro Alves <palves@redhat.com>
13123
13124 * corelow.c (thread_section_name): New class.
13125 (get_core_register_section, get_core_siginfo): Use it.
13126
13127 2017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
13128
13129 * corelow.c (sniff_core_bfd): Remove extra semicolon.
13130 (get_core_register_section): Remove xfree of NULL pointer.
13131
13132 2017-05-03 Alan Hayward <alan.hayward@arm.com>
13133
13134 * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed.
13135 * regcache.c (regcache::raw_supply_zeroed): New function.
13136 * regcache.h (regcache::raw_supply_zeroed): New declaration.
13137
13138 2017-05-03 Simon Marchi <simon.marchi@ericsson.com>
13139
13140 * gdbarch.sh: Remove commented out definition of
13141 TARGET_CHAR_BIT.
13142 * gdbarch.h: Re-generate.
13143
13144 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
13145
13146 * configure: Regenerate.
13147
13148 2017-05-02 Simon Marchi <simon.marchi@ericsson.com>
13149
13150 * solib-target.c (solib_target_relocate_section_addresses):
13151 Remove num_section_bases, num_bases, segment_bases variables.
13152
13153 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
13154
13155 * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove.
13156
13157 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
13158
13159 * solib-target.c: Include <vector>
13160 (struct lm_info_target) <~lm_info_target>: Remove.
13161 <segment_bases, section_bases>: Change type to
13162 std::vector<CORE_ADDR>.
13163 (library_list_start_segment, library_list_start_section,
13164 library_list_end_library,
13165 solib_target_relocate_section_addresses): Adjust.
13166
13167 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
13168
13169 * gdbarch.sh (software_single_step): Change return type to
13170 std::vector<CORE_ADDR>.
13171 * gdbarch.c, gdbarch.h: Re-generate.
13172 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
13173 Adjust.
13174 (arm_deal_with_atomic_sequence_raw): Adjust.
13175 (thumb_get_next_pcs_raw): Adjust.
13176 (arm_get_next_pcs_raw): Adjust.
13177 (arm_get_next_pcs): Adjust.
13178 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust.
13179 * aarch64-tdep.c (aarch64_software_single_step): Adjust.
13180 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust.
13181 (alpha_software_single_step): Adjust.
13182 * alpha-tdep.h (alpha_software_single_step): Adjust.
13183 * arm-linux-tdep.c (arm_linux_software_single_step): Adjust.
13184 * arm-tdep.c (arm_software_single_step): Adjust.
13185 (arm_breakpoint_kind_from_current_state): Adjust.
13186 * arm-tdep.h (arm_software_single_step): Adjust.
13187 * breakpoint.c (insert_single_step_breakpoint): Adjust.
13188 * cris-tdep.c (cris_software_single_step): Adjust.
13189 * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust.
13190 (micromips_deal_with_atomic_sequence): Adjust.
13191 (deal_with_atomic_sequence): Adjust.
13192 (mips_software_single_step): Adjust.
13193 * mips-tdep.h (mips_software_single_step): Adjust.
13194 * moxie-tdep.c (moxie_software_single_step): Adjust.
13195 * nios2-tdep.c (nios2_software_single_step): Adjust.
13196 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust.
13197 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
13198 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
13199 * s390-linux-tdep.c (s390_software_single_step): Adjust.
13200 * sparc-tdep.c (sparc_software_single_step): Adjust.
13201 * spu-tdep.c (spu_software_single_step): Adjust.
13202 * tic6x-tdep.c (tic6x_software_single_step): Adjust.
13203
13204 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
13205
13206 * gdbarch.sh: Use semi-colon as field separator instead of colon.
13207 * gdbarch.h: Re-generate.
13208
13209 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
13210
13211 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
13212 (SUBDIR_PYTHON_SRCS): Add py-instruction.c.
13213 * python/py-instruction.c, python/py-instruction.h: New file.
13214 * python/py-record.c: Add py-instruction.h include.
13215 (gdbpy_initialize_record): Make gdb.Instruction a super class of
13216 gdb.RecordInstruction.
13217 * python/python-internal.h: Add gdbpy_initialize_instruction
13218 declaration.
13219 * python/python.c (do_start_initialization): Add
13220 gdbpy_initialize_instruction.
13221
13222 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
13223
13224 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
13225 Remove.
13226 (btrace_func_from_recpy_func): New function.
13227 (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
13228 (btpy_call_level, btpy_call_symbol, btpy_call_instructions,
13229 btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
13230 (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
13231 recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
13232 Also, use new helper functions.
13233 (btpy_list_item): Use new helper functions.
13234 (recpy_bt_function_call_history): Use new type name.
13235 (btpy_call_getset): Remove.
13236 (gdbpy_initialize_btrace): Remove code to initialize
13237 gdb.BtraceFunctionCall.
13238 * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
13239 recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
13240 recpy_bt_func_prev, recpy_bt_func_next): New export.
13241 * python/py-record.c (recpy_func_type): New static object.
13242 (recpy_func_new, recpy_func_level, recpy_func_symbol,
13243 recpy_func_instructions, recpy_func_up, recpy_func_prev,
13244 recpy_func_next): New function.
13245 (recpy_element_hash, recpy_element_richcompare): Updated comment.
13246 (recpy_func_getset): New static object.
13247 (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
13248 * python/py-record.h (recpy_func_type, recpy_func_new): New export.
13249
13250 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
13251
13252 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove.
13253 (btpy_object, btpy_insn_type, btpy_new): Remove.
13254 (btpy_list_object): Use gdb.RecordInstruction type instead of
13255 gdb.BtraceInstruction type.
13256 (btrace_insn_from_recpy_insn): New function.
13257 (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of
13258 btpy_new.
13259 (btpy_call_new, btpy_list_item): Do not use btpy_new anymore.
13260 (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol,
13261 btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling,
13262 btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object
13263 instead of btpy_object.
13264 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
13265 btpy_insn_data, btpy_insn_decode): Rename to ...
13266 (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size,
13267 recpy_bt_insn_is_speculative, recpy_bt_insn_data,
13268 recpy_bt_insn_decode): This. Also, use new helper functions.
13269 (btpy_list_position, recpy_bt_goto): Use recpy_element_object and
13270 recpy_insn_type.
13271 (btpy_insn_getset): Remove.
13272 (gdbpy_initialize_btrace): Remove code to initialize
13273 gdb.BtraceInstruction. Use recpy_element_object.
13274 * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal,
13275 recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded,
13276 recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export.
13277 * python/py-record.c (recpy_insn_type): New static object.
13278 (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data,
13279 recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative,
13280 recpy_element_number, recpy_element_hash, recpy_element_richcompare):
13281 New function.
13282 (recpy_insn_getset): New static object.
13283 (gdbpy_initialize_record): Initialize gdb.RecordInstruction.
13284 * python/py-record.h (recpy_element_object): New typedef.
13285 (recpy_insn_type, recpy_insn_new): New export.
13286
13287 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
13288
13289 * py-record-btrace.c (btpy_insn_new): Removed.
13290 (btpy_insn_or_gap_new): New function.
13291 (btpy_insn_error): Removed.
13292 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
13293 btpy_insn_data, btpy_insn_decode): Remove code path for gaps.
13294 (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call
13295 btpy_insn_or_gap_new instead of btpy_insn_new.
13296 (btpy_insn_getset): Remove btpy_insn_error.
13297 * py-record.c (recpy_gap_type): New static object.
13298 (recpy_gap_object): New typedef.
13299 (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code,
13300 recpy_gap_reason_string): New function.
13301 (recpy_gap_getset): New static object.
13302 (gdbpy_initialize_record): Initialize gdb.RecordGap type.
13303 * py-record.h (recpy_gap_new): New export.
13304
13305 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
13306
13307 * python/py-record.c (recpy_ptid): Remove.
13308 (recpy_record_getset): Remove recpy_ptid.
13309
13310 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
13311
13312 * btrace.c (btrace_fetch): Set inferior_ptid.
13313 * python/py-record-btrace.c: Add "py-record.h" include.
13314 (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin,
13315 recpy_bt_end, recpy_bt_instruction_history,
13316 recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored
13317 in gdb.Record object instead of current ptid.
13318 * python/py-record.c: Include new "py-record.h" file.
13319 (recpy_record_object): Moved to py-record.h.
13320 * python/py-record.h: New file.
13321
13322 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
13323
13324 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
13325 BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
13326 indentation.
13327
13328 2017-05-01 Joel Brobecker <brobecker@adacore.com>
13329
13330 * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to
13331 the past maintainers section.
13332
13333 2017-04-28 Yao Qi <yao.qi@linaro.org>
13334
13335 * infcmd.c (get_return_value): Use regcache ctor, and remove
13336 cleanup.
13337
13338 2017-04-28 Yao Qi <yao.qi@linaro.org>
13339 Pedro Alves <palves@redhat.com>
13340
13341 * regcache.c (regcache::regcache): New tag dispatch ctor.
13342 (do_cooked_read): Moved above.
13343 (regcache_dup): Use the tag dispatch ctor..
13344 * regcache.h (regcache): Declare ctor, delete copy ctor and
13345 assignment operator, remove friend regcache_dup.
13346
13347 2017-04-28 Yao Qi <yao.qi@linaro.org>
13348
13349 * regcache.c (regcache_dup): Assert !src->m_readonly_p and
13350 call method save instead of regcache_cpy.
13351 * regcache.h (struct regcache): Make regcache_dup a friend.
13352
13353 2017-04-28 Yao Qi <yao.qi@linaro.org>
13354
13355 * regcache.c (struct regcache): Move to regcache.h
13356 (regcache::arch): New method.
13357 (regcache_get_ptid): Update.
13358 (get_regcache_arch): Call arch method.
13359 (get_regcache_aspace): Call method aspace.
13360 (register_buffer): Change it to method.
13361 (regcache_save): Change it to regcache::save.
13362 (regcache_restore): Likewise.
13363 (regcache_cpy_no_passthrough): Remove the declaration.
13364 (regcache_cpy): Call methods restore and cpy_no_passthrough.
13365 (regcache_cpy_no_passthrough): Change it to method
13366 cpy_no_passthrough.
13367 (regcache_register_status): Change it to method
13368 get_register_status.
13369 (regcache_invalidate): Change it to method invalidate.
13370 (regcache_thread_ptid_changed): Use methods ptid and set_ptid.
13371 (regcache_raw_update): Change it to method raw_update.
13372 (regcache_raw_read): Likewise.
13373 (regcache_raw_read_signed): Likewise.
13374 (regcache_raw_read_unsigned): Likewise.
13375 (regcache_raw_write_signed): Likewise.
13376 (regcache_raw_write_unsigned): Likewise.
13377 (regcache_cooked_read): Likewise.
13378 (regcache_cooked_read_value): Likewise.
13379 (regcache_cooked_read_signed): Likewise.
13380 (regcache_cooked_read_unsigned): Likewise.
13381 (regcache_cooked_write_signed): Likewise.
13382 (regcache_cooked_write_unsigned): Likewise.
13383 (regcache_raw_set_cached_value): Likewise.
13384 (regcache_raw_write): Likewise.
13385 (regcache_cooked_write): Likewise.
13386 (regcache_xfer_part): Likewise.
13387 (regcache_raw_read_part): Likewise.
13388 (regcache_raw_write_part): Likewise.
13389 (regcache_cooked_read_part): Likewise.
13390 (regcache_cooked_write_part): Likewise.
13391 (regcache_raw_supply): Likewise.
13392 (regcache_raw_collect): Likewise.
13393 (regcache_transfer_regset): Likewise.
13394 (regcache_supply_regset): Likewise.
13395 (regcache_collect_regset): Likewise.
13396 (regcache_debug_print_register): Likewise.
13397 (enum regcache_dump_what): Move it to regcache.h.
13398 (regcache_dump): Change it to method dump.
13399 * regcache.h (enum regcache_dump_what): New.
13400 (class regcache): New.
13401 * target.c (target_fetch_registers): Call method
13402 debug_print_register.
13403 (target_store_registers): Likewise.
13404
13405 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13406
13407 * windows-nat.c (struct lm_info_windows): Initialize field.
13408 (windows_make_so): Allocate lm_info_windows with new.
13409 (windows_free_so): Free lm_info_windows with delete.
13410
13411 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13412
13413 * solib-darwin.c (struct lm_info_darwin): Initialize field.
13414 (darwin_current_sos): Allocate lm_info_darwin with new, remove
13415 cleanup.
13416 (darwin_free_so): Free lm_info_darwin with delete.
13417
13418 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13419
13420 * solib-svr4.h (struct lm_info_svr4): Initialize fields.
13421 <l_addr_p>: Change type to bool.
13422 * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
13423 (svr4_free_so): Free lm_info_svr4 with delete.
13424 (svr4_copy_library_list): Replace memcpy with call to copy
13425 constructor.
13426 (library_list_start_library, svr4_default_sos): Allocate
13427 lm_info_svr4 with new.
13428
13429 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13430
13431 * solib-target.c (struct lm_info_target): Add destructor,
13432 initialize fields.
13433 <name>: Change type to std::string.
13434 (library_list_start_library): Allocate lm_info_target with new.
13435 (solib_target_free_library_list): Free lm_info_target with
13436 delete.
13437 (solib_target_current_sos): Adapt to std::string.
13438 (solib_target_free_so): Free lm_info_target with delete.
13439
13440 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13441
13442 * solib-frv.c (struct lm_info_frv): Add destructor, initialize
13443 fields.
13444 (frv_current_sos): Allocate lm_info_frv with new.
13445 (frv_relocate_main_executable): Free lm_info_frv with delete,
13446 allocate with new.
13447 (frv_clear_solib, frv_free_so): Free lm_info_frv with delete.
13448
13449 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13450
13451 * solib-frv.c (struct lm_info_frv): Fix indentation.
13452
13453 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13454
13455 * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
13456 map field.
13457 (dsbt_current_sos): Allocate lm_info_dsbt with new.
13458 (dsbt_relocate_main_executable): Free lm_info_dsbt with delete
13459 and allocate with new.
13460 (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
13461
13462 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13463
13464 * solib-aix.c (struct lm_info_aix): Initialize fields in-class.
13465 <filename, member_name>: Change type to std::string.
13466 (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
13467 (library_list_start_library): Allocate lm_info_aix with new.
13468 (solib_aix_free_library_list, solib_aix_free_so): Free with delete.
13469 (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
13470 with copy constructor.
13471
13472 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13473
13474 * solist.h (struct lm_info): Remove.
13475 (struct lm_info_base): New class.
13476 (struct so_list) <lm_info>: Change type to lm_info_base *.
13477 * nto-tdep.c (struct lm_info): Remove.
13478 (lm_addr): Adjust.
13479 * solib-aix.c (struct lm_info): Rename to ...
13480 (struct lm_info_aix): ... this. Extend lm_info_base.
13481 (lm_info_p): Rename to ...
13482 (lm_info_aix_p): ... this, and adjust.
13483 (solib_aix_new_lm_info, solib_aix_xfree_lm_info,
13484 solib_aix_parse_libraries, library_list_start_library,
13485 solib_aix_free_library_list, solib_aix_parse_libraries,
13486 solib_aix_get_library_list,
13487 solib_aix_relocate_section_addresses, solib_aix_free_so,
13488 solib_aix_get_section_offsets,
13489 solib_aix_solib_create_inferior_hook, solib_aix_current_sos):
13490 Adjust.
13491 (struct solib_aix_inferior_data) <library_list>: Adjust.
13492 * solib-darwin.c (struct lm_info): Rename to ...
13493 (struct lm_info_darwin): ... this. Extend lm_info_base.
13494 (darwin_current_sos, darwin_relocate_section_addresses): Adjust.
13495 * solib-dsbt.c (struct lm_info): Rename to ...
13496 (struct lm_info_dsbt): ... this. Extend lm_info_base.
13497 (struct dsbt_info) <main_executable_lm_info): Adjust.
13498 (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so,
13499 dsbt_relocate_section_addresses): Adjust.
13500 * solib-frv.c (struct lm_info): Rename to ...
13501 (struct lm_info_frv): ... this. Extend lm_info_base.
13502 (main_executable_lm_info): Adjust.
13503 (frv_current_sos, frv_relocate_main_executable, frv_free_so,
13504 frv_relocate_section_addresses, frv_fdpic_find_global_pointer,
13505 find_canonical_descriptor_in_load_object,
13506 frv_fdpic_find_canonical_descriptor): Adjust.
13507 * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed
13508 to lm_info_svr4.
13509 (lm_info_read, lm_addr_check, svr4_keep_data_in_core,
13510 svr4_clear_so, svr4_copy_library_list,
13511 library_list_start_library, svr4_default_sos, svr4_read_so_list,
13512 svr4_current_sos, svr4_fetch_objfile_link_map,
13513 solist_update_incremental): Adjust.
13514 * solib-svr4.h (struct lm_info_svr4): Move here from
13515 solib-svr4.c.
13516 * solib-target.c (struct lm_info): Rename to ...
13517 (struct lm_info_target): ... this. Extend lm_info_base.
13518 (lm_info_p): Rename to ...
13519 (lm_info_target_p): ... this.
13520 (solib_target_parse_libraries, library_list_start_segment,
13521 library_list_start_section, library_list_start_library,
13522 library_list_end_library, solib_target_free_library_list,
13523 solib_target_current_sos, solib_target_free_so,
13524 solib_target_relocate_section_addresses): Adjust.
13525 * windows-nat.c (struct lm_info): Rename to ...
13526 (struct lm_info_windows): ... this. Extend lm_info_base.
13527 (windows_make_so, handle_load_dll, handle_unload_dll,
13528 windows_xfer_shared_libraries): Adjust.
13529
13530 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13531
13532 * solib-darwin.c (struct darwin_so_list): Remove.
13533 (darwin_current_sos): Allocate an so_list object instead of a
13534 darwin_so_list, separately allocate an lm_info object.
13535 (darwin_free_so): Free lm_info.
13536
13537 2017-04-28 John Baldwin <jhb@FreeBSD.org>
13538
13539 * mips-tdep.c (print_gp_register_row): Replace printf_filtered
13540 with fprintf_filtered.
13541
13542 2017-04-28 Yao Qi <yao.qi@linaro.org>
13543
13544 * regcache.c (regcache::regcache): New function.
13545 (regcache::~regcache): New function.
13546 (regcache_xmalloc_1): Remove.
13547 (regcache_xmalloc): Call new regcache.
13548 (regcache_xfree): Call delete regcache.
13549 (get_thread_arch_aspace_regcache): Call new regcache.
13550
13551 2017-04-28 Yao Qi <yao.qi@linaro.org>
13552
13553 * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
13554 lwp instead of ptid_get_lwp.
13555
13556 2017-04-28 Yao Qi <yao.qi@linaro.org>
13557
13558 * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
13559 lwp_info instead of getting from inferior_ptid.
13560
13561 2017-04-27 Keith Seitz <keiths@redhat.com>
13562
13563 * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS)
13564 DIFFERENT_REFERENCE_TYPE_BADNESS): Remove.
13565 (CV_CONVERSION_BADNESS): Define.
13566 (rank_one_type): Remove overly restrictive rvalue reference
13567 rank checks.
13568 Add cv-qualifier checks and subranks for type equality.
13569 * gdbtypes.h (REFERENCE_CONVERSION_RVALUE,
13570 REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS,
13571 CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare.
13572
13573 2017-04-27 Simon Marchi <simon.marchi@ericsson.com>
13574
13575 * python/py-inferior.c (inferior_to_inferior_object): Increment reference
13576 count when creating the object.
13577
13578 2017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
13579 Ulrich Weigand <uweigand@de.ibm.com>
13580
13581 * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
13582 entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
13583 is used in AIX.
13584 (read_xcoff_symtab): Handle C_WEAKEXT storage class.
13585 (process_xcoff_symbol): Likewise.
13586 (scan_xcoff_symtab): Likewise.
13587
13588 2017-04-26 Alan Hayward <alan.hayward@arm.com>
13589
13590 * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned.
13591 (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer.
13592 (ia64_access_reg): Use get_frame_register_unsigned.
13593 (ia64_access_rse_reg): Likewise.
13594 (ia64_libunwind_frame_prev_register): Likewise.
13595
13596 2017-04-26 Jiong Wang <jiong.wang@arm.com>
13597
13598 * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op.
13599 * gdbarch.c: Regenerated.
13600 * gdbarch.h: Regenerated.
13601 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the
13602 visibility external.
13603 (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI
13604 between DW_CFA_lo_user and DW_CFA_high_user inclusive.
13605 (enum cfa_how_kind): Move to ...
13606 (struct dwarf2_frame_state_reg_info): Likewise.
13607 (struct dwarf2_frame_state): Likewise.
13608 * dwarf2-frame.h: ... here.
13609 (dwarf2_frame_state_alloc_regs): New declaration.
13610 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function.
13611 (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook.
13612
13613 2017-04-26 Alan Hayward <alan.hayward@arm.com>
13614
13615 * xtensa-tdep.c (xtensa_pseudo_register_read): Use
13616 regcache_raw_read_unsigned.
13617 (xtensa_pseudo_register_write): Likewise.
13618
13619 2017-04-26 Alan Hayward <alan.hayward@arm.com>
13620
13621 * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors.
13622 (nds32_pseudo_register_write): Likewise.
13623
13624 2017-04-25 Yao Qi <yao.qi@linaro.org>
13625
13626 * regcache.c (struct regcache) <readonly_p>: Change its type
13627 to bool.
13628 (regcache_xmalloc_1): Update parameter type and callers update.
13629
13630 2017-04-25 Yao Qi <yao.qi@linaro.org>
13631
13632 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
13633 set_gdbarch_wchar_bit.
13634 * arm-tdep.c (arm_gdbarch_init): Likewise.
13635
13636 2017-04-25 Pedro Alves <palves@redhat.com>
13637
13638 * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
13639 (BothAreRelocatable, memcopy, memmove): Don't define.
13640 * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
13641 macros.
13642
13643 2017-04-25 Pedro Alves <palves@redhat.com>
13644
13645 * common/common-defs.h: Include "common/poison.h".
13646 * common/function-view.h: (Not, Or, Requires): Move to traits.h
13647 and adjust.
13648 * common/poison.h: New file.
13649 * common/traits.h: Include <type_traits>.
13650 (Not, Or, Requires): New, moved from common/function-view.h.
13651
13652 2017-04-25 Pedro Alves <palves@redhat.com>
13653
13654 * breakpoint.h (struct breakpoint): In-class initialize all
13655 fields. Make boolean fields "bool".
13656 * breakpoint.c (init_raw_breakpoint_without_location): Remove
13657 memset call and initializations no longer necessary.
13658
13659 2017-04-25 Pedro Alves <palves@redhat.com>
13660
13661 * btrace.c (pt_btrace_insn_flags): Change parameter type to
13662 reference.
13663 (pt_btrace_insn): New function.
13664 (ftrace_add_pt): Remove memset call and use pt_btrace_insn.
13665
13666 2017-04-25 Pedro Alves <palves@redhat.com>
13667
13668 * ada-lang.c (ada_catchpoint_location): Now a "class". Remove
13669 "base" field and inherit from "bp_location" instead. Add
13670 non-default ctor.
13671 (allocate_location_exception): Use new non-default ctor.
13672 * breakpoint.c (get_first_locp_gte_addr): Remove memset call.
13673 (init_bp_location): Convert to ...
13674 (bp_location::bp_location): ... this new ctor, and remove memset
13675 call.
13676 (base_breakpoint_allocate_location): Use the new non-default ctor.
13677 * breakpoint.h (bp_location): Now a class. Declare default and
13678 non-default ctors. In-class initialize all members.
13679 (init_bp_location): Remove declaration.
13680
13681 2017-04-25 Pedro Alves <palves@redhat.com>
13682
13683 * common/enum-flags.h (enum_flags): Don't implement copy ctor and
13684 assignment operator.
13685
13686 2017-04-24 Yao Qi <yao.qi@linaro.org>
13687
13688 * doublest.c (convert_doublest_to_floatformat): Call
13689 floatformat_totalsize_bytes.
13690
13691 2017-04-22 Tom Tromey <tom@tromey.com>
13692
13693 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
13694 ui_out_emit_list.
13695 * stack.c (print_frame): Use ui_out_emit_list.
13696 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
13697 ui_out_emit_list.
13698 * mi/mi-main.c (print_one_inferior)
13699 (mi_cmd_data_list_register_names)
13700 (mi_cmd_data_list_register_values, mi_cmd_list_features)
13701 (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use
13702 ui_out_emit_list.
13703 * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list.
13704 (mi_output_solib_attribs): Use ui_out_emit_list,
13705 ui_out_emit_tuple.
13706 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list.
13707 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
13708 (mi_cmd_stack_list_args, list_args_or_locals): Use
13709 ui_out_emit_list.
13710 * disasm.c (do_assembly_only): Use ui_out_emit_list.
13711 * breakpoint.c (print_solib_event, output_thread_groups): Use
13712 ui_out_emit_list.
13713
13714 2017-04-22 Tom Tromey <tom@tromey.com>
13715
13716 * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple.
13717 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple.
13718 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple.
13719
13720 2017-04-22 Tom Tromey <tom@tromey.com>
13721
13722 * tracepoint.c (tvariables_info_1)
13723 (print_one_static_tracepoint_marker): Use ui_out_emit_tuple.
13724
13725 2017-04-22 Tom Tromey <tom@tromey.com>
13726
13727 * stack.c (print_frame_arg): Use ui_out_emit_tuple,
13728 annotate_arg_emitter.
13729 * breakpoint.c (print_mention_watchpoint)
13730 (print_mention_masked_watchpoint): Use ui_out_emit_tuple.
13731 * annotate.h (struct annotate_arg_emitter): New.
13732
13733 2017-04-22 Tom Tromey <tom@tromey.com>
13734
13735 * record-btrace.c (record_btrace_insn_history)
13736 (record_btrace_insn_history_range, record_btrace_call_history)
13737 (record_btrace_call_history_range): Use ui_out_emit_tuple.
13738 * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use
13739 ui_out_emit_tuple.
13740 * stack.c (print_frame_info): Use ui_out_emit_tuple.
13741 * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple.
13742 * skip.c (skip_info): Use ui_out_emit_tuple.
13743 * remote.c (show_remote_cmd): Use ui_out_emit_tuple.
13744 * progspace.c (print_program_space): Use ui_out_emit_tuple.
13745 * probe.c (info_probes_for_ops): Use ui_out_emit_tuple.
13746 * osdata.c (info_osdata): Use ui_out_emit_tuple.
13747 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
13748 ui_out_emit_tuple.
13749 * mi/mi-main.c (print_one_inferior, list_available_thread_groups)
13750 (output_register, mi_cmd_data_read_memory)
13751 (mi_cmd_data_read_memory_bytes, mi_load_progress)
13752 (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple.
13753 * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one):
13754 Use ui_out_emit_tuple.
13755 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use
13756 ui_out_emit_tuple.
13757 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
13758 (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple.
13759 * linux-thread-db.c (info_auto_load_libthread_db): Use
13760 ui_out_emit_tuple.
13761 * inferior.c (print_inferior): Use ui_out_emit_tuple.
13762 * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple.
13763 * disasm.c (do_mixed_source_and_assembly_deprecated)
13764 (do_mixed_source_and_assembly): Use ui_out_emit_tuple.
13765 * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple.
13766 * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple.
13767 * breakpoint.c (print_one_breakpoint_location)
13768 (print_one_breakpoint): Use ui_out_emit_tuple.
13769 * auto-load.c (print_script, info_auto_load_cmd): Use
13770 ui_out_emit_tuple.
13771 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple.
13772
13773 2017-04-21 Simon Marchi <simon.marchi@ericsson.com>
13774
13775 * thread.c (print_thread_info_1): Remove dead code.
13776
13777 2017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
13778
13779 * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
13780 GDB_SELF_TEST.
13781 * arm-tdep.c (selftests::arm_record_test): Likewise.
13782
13783 2017-04-21 Yao Qi <yao.qi@linaro.org>
13784
13785 * regcache.c (regcache_restore): Remove argument 2. Replace
13786 argument 3 with regcache. Get register status from
13787 src->register_status and get register contents from
13788 register_buffer (src, regnum).
13789 (regcache_cpy): Update.
13790
13791 2017-04-19 Pedro Alves <palves@redhat.com>
13792
13793 * gdbthread.h (thread): Add missing closing parenthesis in
13794 comment.
13795
13796 2017-04-19 Pedro Alves <palves@redhat.com>
13797
13798 * common/refcounted-object.h: New file.
13799 * gdbthread.h: Include "common/refcounted-object.h".
13800 (thread_info): Inherit from refcounted_object and add comments.
13801 (thread_info::incref, thread_info::decref)
13802 (thread_info::m_refcount): Delete.
13803 (thread_info::deletable): Use the refcounted_object::refcount()
13804 method.
13805 * inferior.c (current_inferior_): Add comment.
13806 (set_current_inferior): Increment/decrement refcounts.
13807 (prune_inferiors, remove_inferior_command): Skip inferiors marked
13808 not-deletable instead of comparing with the current inferior.
13809 (initialize_inferiors): Increment the initial inferior's refcount.
13810 * inferior.h (struct inferior): Forward declare.
13811 Include "common/refcounted-object.h".
13812 (current_inferior, set_current_inferior): Move declaration to
13813 before struct inferior's definition, and fix comment.
13814 (inferior): Inherit from refcounted_object. Add comments.
13815 * thread.c (switch_to_thread_no_regs): Reference the thread's
13816 inferior pointer directly instead of doing a ptid lookup.
13817 (switch_to_no_thread): New function.
13818 (switch_to_thread(thread_info *)): New function, factored out
13819 from ...
13820 (switch_to_thread(ptid_t)): ... this.
13821 (restore_current_thread): Delete.
13822 (current_thread_cleanup): Remove 'inf_id' and 'was_removable'
13823 fields, and add 'inf' field.
13824 (do_restore_current_thread_cleanup): Check whether old->inf is
13825 alive instead of looking up an inferior by ptid. Use
13826 switch_to_thread and switch_to_no_thread.
13827 (restore_current_thread_cleanup_dtor): Use old->inf directly
13828 instead of lookup up an inferior by id. Decref the inferior.
13829 Don't restore 'removable'.
13830 (make_cleanup_restore_current_thread): Same the inferior pointer
13831 in old, instead of the inferior number. Incref the inferior.
13832 Don't save/clear 'removable'.
13833
13834 2017-04-19 Pedro Alves <palves@redhat.com>
13835
13836 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13837 unittests/scoped_restore-selftests.c.
13838 (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o.
13839 * common/scoped_restore.h (scoped_restore_base): Make "class".
13840 (scoped_restore_base::release): New public method.
13841 (scoped_restore_base::scoped_restore_base): New protected ctor.
13842 (scoped_restore_base::m_saved_var): New protected field.
13843 (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the
13844 scoped_restore_base base class instead of m_saved_var directly.
13845 (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise.
13846 (scoped_restore_tmpl::scoped_restore_tmpl(const
13847 scoped_restore_tmpl<T>&)): Likewise.
13848 (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var
13849 method.
13850 (scoped_restore_tmpl::saved_var): New method.
13851 (scoped_restore_tmpl::m_saved_var): Delete.
13852 * inferior.h (inferior::detaching): Now a bool.
13853 * infrun.c (prepare_for_detach): Use a scoped_restore instead of a
13854 cleanup.
13855 * unittests/scoped_restore-selftests.c: New file.
13856
13857 2017-04-19 Pedro Alves <palves@redhat.com>
13858
13859 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS):
13860 Re-sort in alphabetic order.
13861
13862 2017-04-18 Pedro Alves <palves@redhat.com>
13863
13864 * xml-support.c (obstack_xml_printf): Delete.
13865 * xml-support.h (obstack_xml_printf): Delete.
13866
13867 2017-04-18 Pedro Alves <palves@redhat.com>
13868
13869 * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse,
13870 vdebug, verror, body_text, start_element, end_element, name,
13871 user_data, set_is_xinclude, set_error, expat_parser>: New methods.
13872 <name, user_data, expat_parser, scopes, error, last_line, dtd_name,
13873 is_xinclude>: Make private and add m_ prefix.
13874 (gdb_xml_parser::body_text): New method, based on ...
13875 (gdb_xml_body_text): ... this. Adjust.
13876 (gdb_xml_parser::vdebug): New method, based on ...
13877 (gdb_xml_debug): ... this. Adjust.
13878 (gdb_xml_parser::verror): New method, based on ...
13879 (gdb_xml_error): ... this. Adjust.
13880 (gdb_xml_parser::start_element): New method, based on ...
13881 (gdb_xml_start_element): ... this. Adjust.
13882 (gdb_xml_start_element_wrapper): Defer to
13883 gdb_xml_parser::start_element and gdb_xml_parser::set_error.
13884 (gdb_xml_parser::end_element): New method, based on ...
13885 (gdb_xml_end_element_wrapper): ... this. Adjust.
13886 (gdb_xml_parser::~gdb_xml_parser): Adjust.
13887 (gdb_xml_parser::gdb_xml_parser): Adjust to field renames.
13888 (gdb_xml_parser::use_dtd): New method, based on ...
13889 (gdb_xml_use_dtd): ... this. Adjust.
13890 (gdb_xml_parser::parse): New method, based on ...
13891 (gdb_xml_parse): ... this. Adjust.
13892 (gdb_xml_parse_quick): Adjust to call the parser's parse method.
13893 (xinclude_start_include): Adjust to call the parser's name method.
13894 (xml_xinclude_default, xml_xinclude_start_doctype)
13895 (xml_xinclude_end_doctype): Adjust to call the parser's user_data
13896 method.
13897 (xml_process_xincludes): Adjust to call parser methods.
13898 * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete
13899 declarations.
13900
13901 2017-04-18 Pedro Alves <palves@redhat.com>
13902
13903 * tracefile-tfile.c (tfile_write_tdesc): Adjust to use
13904 gdb::optional<std::string>.
13905 * xml-support.c: Include <string>.
13906 (scope_level::scope_level(scope_level &&))
13907 (scope_level::~scope_level): Delete.
13908 (scope_level::body): Now a std::string.
13909 (gdb_xml_body_text, gdb_xml_end_element): Adjust.
13910 (xinclude_parsing_data::xinclude_parsing_data): Add 'output'
13911 parameter.
13912 (xinclude_parsing_data::~xinclude_parsing_data): Delete.
13913 (xinclude_parsing_data::output): Now a std::string reference.
13914 (xinclude_start_include): Adjust.
13915 (xml_xinclude_default): Adjust.
13916 (xml_process_xincludes): Add 'output' parameter, and return bool.
13917 * xml-support.h (xml_process_xincludes): Add 'output' parameter,
13918 and return bool.
13919 * xml-tdesc.c: Include <unordered_map> and <string>.
13920 (tdesc_xml_cache): Delete.
13921 (tdesc_xml_cache_s): Delete.
13922 (xml_cache): Now an std::unordered_map.
13923 (tdesc_parse_xml): Adjust to use std::string and unordered_map.
13924 (target_fetch_description_xml): Change return type to
13925 gdb::optional<std::string>, and adjust.
13926 * xml-tdesc.h: Include "common/gdb_optional.h" and <string>.
13927 (target_fetch_description_xml): Change return type to
13928 gdb::optional<std::string>.
13929
13930 2017-04-18 Pedro Alves <palves@redhat.com>
13931
13932 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13933 unittests/optional-selftests.c.
13934 (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o.
13935 * unittests/optional-selftests.c: New file.
13936 * unittests/optional/assignment/1.cc: New file.
13937 * unittests/optional/assignment/2.cc: New file.
13938 * unittests/optional/assignment/3.cc: New file.
13939 * unittests/optional/assignment/4.cc: New file.
13940 * unittests/optional/assignment/5.cc: New file.
13941 * unittests/optional/assignment/6.cc: New file.
13942 * unittests/optional/assignment/7.cc: New file.
13943 * unittests/optional/cons/copy.cc: New file.
13944 * unittests/optional/cons/default.cc: New file.
13945 * unittests/optional/cons/move.cc: New file.
13946 * unittests/optional/cons/value.cc: New file.
13947 * unittests/optional/in_place.cc: New file.
13948 * unittests/optional/observers/1.cc: New file.
13949 * unittests/optional/observers/2.cc: New file.
13950
13951 2017-04-18 Pedro Alves <palves@redhat.com>
13952
13953 * common/gdb_optional.h: Include common/traits.h.
13954 (in_place_t): New type.
13955 (in_place): New constexpr variable.
13956 (optional::optional): Remove member initialization of
13957 m_instantiated.
13958 (optional::optional(in_place_t...)): New constructor.
13959 (optional::~optional): Use reset.
13960 (optional::optional(const optional&)): New.
13961 (optional::optional(const optional&&)): New.
13962 (optional::optional(T &)): New.
13963 (optional::optional(T &&)): New.
13964 (operator::operator=(const optional &)): New.
13965 (operator::operator=(optional &&)): New.
13966 (operator::operator= (const T &))
13967 (operator::operator= (T &&))
13968 (operator::emplace (Args &&... args)): Return a T&. Use reset.
13969 (operator::reset): New.
13970 (operator::m_instantiated):: Add in-class initializer.
13971 * common/traits.h: Include <type_traits>.
13972 (struct And): New types.
13973
13974 2017-04-18 Pedro Alves <palves@redhat.com>
13975
13976 * xml-support.c: Include <vector>.
13977 (scope_level::scope_level(const gdb_xml_element *))
13978 (scope_level::scope_level(scope_level&&)): New.
13979 (scope_level::~scope_level): New.
13980 (scope_level_s): Delete.
13981 (gdb_xml_parser::scopes): Now a std::vector.
13982 (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
13983 Use std::vector.
13984 (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
13985 scope cleanup code.
13986 (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
13987 of the scopes member. Use std::vector::emplace_back.
13988
13989 2017-04-18 Pedro Alves <palves@redhat.com>
13990
13991 * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude
13992 a bool.
13993 (gdb_xml_end_element): Change type of first parameter.
13994 (gdb_xml_cleanup): Rename to ...
13995 (gdb_xml_parser::~gdb_xml_parser): ... this.
13996 (gdb_xml_create_parser_and_cleanup): Delete with ...
13997 (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
13998 to this new ctor.
13999 (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
14000 using gdb_xml_create_parser_and_cleanup.
14001 (xinclude_parsing_data): Add ctor/dtor.
14002 (xml_xinclude_cleanup): Delete.
14003 (xml_process_xincludes): Create a local xinclude_parsing_data
14004 instead of heap-allocating one. Create a local gdb_xml_parser
14005 instead of heap-allocating one with
14006 gdb_xml_create_parser_and_cleanup.
14007
14008 2017-04-18 John Baldwin <jhb@FreeBSD.org>
14009
14010 PR threads/20743
14011 * fbsd-nat.c (resume_one_thread_cb): Remove.
14012 (resume_all_threads_cb): Remove.
14013 (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
14014 iterate_over_threads.
14015
14016 2017-04-17 Joel Brobecker <brobecker@adacore.com>
14017
14018 * NEWS: Create a new section for the next release branch.
14019 Rename the section of the current branch, now that it has
14020 been cut.
14021
14022 2017-04-17 Joel Brobecker <brobecker@adacore.com>
14023
14024 GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
14025 * version.in: Bump version to 8.0.50.DATE-git.
14026
14027 2017-04-13 Sergio Durigan Junior <sergiodj@redhat.com>
14028
14029 PR gdb/21385
14030 * windows-nat.c (windows_create_inferior): Declare 'allargs'
14031 independently of the host, and fix build breakage on Cygwin.
14032
14033 2017-04-13 Pedro Alves <palves@redhat.com>
14034
14035 * inferior.c (free_inferior): Convert to ...
14036 (inferior::~inferior): ... this dtor.
14037 (inferior::inferior): New ctor, factored out from ...
14038 (add_inferior_silent): ... here. Allocate the inferior with a new
14039 expression.
14040 (delete_inferior): Call delete instead of free_inferior.
14041 * inferior.h (gdb_environ, continuation): Forward declare.
14042 (inferior): Now a class. Add in-class initialization to all
14043 members. Make boolean fields bool, except 'detaching'.
14044 (inferior::inferior): New explicit ctor.
14045 (inferior::~inferior): New.
14046
14047 2017-04-13 Pedro Alves <palves@redhat.com>
14048
14049 * inferior.c (init_inferior_list): Delete.
14050 * inferior.h (init_inferior_list): Delete.
14051
14052 2017-04-13 Pedro Alves <palves@redhat.com>
14053
14054 PR threads/13217
14055 * gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
14056 (top level): Call it twice, with different thread sets.
14057
14058 2017-04-13 Pedro Alves <palves@redhat.com>
14059
14060 * thread.c: Include <algorithm>.
14061 (thread_array_cleanup): Delete.
14062 (scoped_inc_dec_ref): New class.
14063 (live_threads_count): New function.
14064 (set_thread_refcount): Delete.
14065 (tp_array_compar_ascending): Now a bool.
14066 (tp_array_compar): Convert to a std::sort comparison function.
14067 (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
14068 and live_threads_count.
14069
14070 2017-04-13 Pedro Alves <palves@redhat.com>
14071
14072 * infrun.c (follow_fork_inferior): Also switch the current
14073 inferior.
14074
14075 2017-04-13 Pedro Alves <palves@redhat.com>
14076
14077 * breakpoint.c (watch_command_1): Save watchpoint-frame info
14078 before calling create_internal_breakpoint.
14079
14080 2017-04-13 Pedro Alves <palves@redhat.com>
14081
14082 * fork-child.c (execv_argv): New class.
14083 (breakup_args): Refactored as ...
14084 (execv_argv::init_for_no_shell): .. this method of execv_argv.
14085 Copy arguments to storage and replace separators with NULL
14086 terminators in place.
14087 (escape_bang_in_quoted_argument): Adjust to return bool.
14088 (execv_argv::execv_argv): New ctor.
14089 (execv_argv::init_for_shell): New method, factored out from
14090 fork_inferior. Don't strdup strings into the vector.
14091 (fork_inferior): Eliminate "shell" local and use execv_argv. Use
14092 Remove free_vector_argv call.
14093
14094 2017-04-13 Yao Qi <yao.qi@linaro.org>
14095
14096 * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
14097 tdep->rx_psw_type.
14098
14099 2017-04-13 Yao Qi <yao.qi@linaro.org>
14100
14101 * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
14102 * rx-tdep.c (rx_gdbarch_init): Likewise.
14103
14104 2017-04-13 Pedro Alves <palves@redhat.com>
14105
14106 * breakpoint.h (struct breakpoint): Reindent.
14107
14108 2017-04-13 Pedro Alves <palves@redhat.com>
14109
14110 * breakpoint.c (bp_location): Rename to ...
14111 (bp_locations): ... this. All references updated.
14112 (bp_location_count): Rename to ...
14113 (bp_locations_count): ... this. All references updated.
14114 (bp_location_placed_address_before_address_max): Rename to ...
14115 (bp_locations_placed_address_before_address_max): ... this. All
14116 references updated.
14117 (bp_location_shadow_len_after_address_max): Rename to ...
14118 (bp_locations_shadow_len_after_address_max): ... this. All
14119 references updated.
14120 (bp_location_compare_addrs): Rename to ...
14121 (bp_locations_compare_addrs): ... this. All references updated.
14122 (bp_location_compare):Rename to ...
14123 (bp_locations_compare): ... this. All references updated.
14124 (bp_location_target_extensions_update): Rename to ...
14125 (bp_locations_target_extensions_update): ... this. All references
14126 updated.
14127
14128 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
14129
14130 * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
14131 * common/common.m4: Check headers 'termios.h', 'termio.h' and
14132 'sgtty.h'.
14133 * common/gdb_termios.h: New file, with parts of "terminal.h".
14134 * inflow.c: Include "gdb_termios.h".
14135 * ser-unix.c: Include "gdb_termios.h".
14136 * terminal.h: Move terminal-related defines to
14137 "common/gdb_termios.h".
14138
14139 2017-04-12 Tom Tromey <tom@tromey.com>
14140
14141 * probe.c (parse_probes): Update.
14142 * location.h (delete_event_location): Don't declare.
14143 (event_location_deleter::operator()): Update.
14144 * location.c (event_location_deleter::operator()): Rename from
14145 delete_event_location.
14146 * linespec.h (linespec_result) <location>: Change type to
14147 event_location_up.
14148 * linespec.c (canonicalize_linespec, event_location_to_sals)
14149 (decode_objc): Update.
14150 (linespec_result): Don't call delete_event_location.
14151 * breakpoint.c (create_breakpoints_sal)
14152 (bkpt_probe_create_sals_from_location)
14153 (strace_marker_create_sals_from_location): Update.
14154
14155 2017-04-12 Tom Tromey <tom@tromey.com>
14156
14157 * linespec.h (struct linespec_result): Add constructor and
14158 destructor.
14159 (init_linespec_result, destroy_linespec_result)
14160 (make_cleanup_destroy_linespec_result): Don't declare.
14161 * linespec.c (init_linespec_result): Remove.
14162 (linespec_result::~linespec_result): Rename from
14163 destroy_linespec_result. Update.
14164 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
14165 Remove.
14166 * breakpoint.c (create_breakpoint, break_range_command)
14167 (decode_location_default): Update.
14168 * ax-gdb.c (agent_command_1): Update.
14169
14170 2017-04-12 Tom Tromey <tom@tromey.com>
14171
14172 * remote.c (remote_download_tracepoint): Update.
14173 * python/py-breakpoint.c (bppy_get_location): Update.
14174 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
14175 (gdbscm_breakpoint_location): Update.
14176 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
14177 * breakpoint.h (struct breakpoint) <location, location_range_end>:
14178 Change type to event_location_up.
14179 * breakpoint.c (create_overlay_event_breakpoint)
14180 (create_longjmp_master_breakpoint)
14181 (create_std_terminate_master_breakpoint)
14182 (create_exception_master_breakpoint)
14183 (breakpoint_event_location_empty_p, print_breakpoint_location)
14184 (print_one_breakpoint_location, create_thread_event_breakpoint)
14185 (init_breakpoint_sal, create_breakpoint)
14186 (print_recreate_ranged_breakpoint, break_range_command)
14187 (init_ada_exception_breakpoint, say_where): Update.
14188 (base_breakpoint_dtor): Don't call delete_event_location.
14189 (bkpt_print_recreate, tracepoint_print_recreate)
14190 (dprintf_print_recreate, update_static_tracepoint)
14191 (breakpoint_re_set_default): Update.
14192
14193 2017-04-12 Tom Tromey <tom@tromey.com>
14194
14195 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
14196 type of "to_do". Update.
14197 (compute_stack_depth): Use std::vector.
14198
14199 2017-04-12 Tom Tromey <tom@tromey.com>
14200
14201 * printcmd.c (find_instruction_backward): Use std::vector.
14202
14203 2017-04-12 Tom Tromey <tom@tromey.com>
14204
14205 * symfile.c (objfilep): Remove typedef.
14206 (reread_symbols): Use a std::vector.
14207
14208 2017-04-12 Tom Tromey <tom@tromey.com>
14209
14210 * mi/mi-main.c (exec_direction_forward): Remove.
14211 (exec_reverse_continue, mi_execute_command): Use scoped_restore.
14212 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
14213 scoped_restore.
14214 * guile/guile.c (guile_repl_command, guile_command)
14215 (gdbscm_execute_gdb_command): Use scoped_restore.
14216 * go-exp.y (go_parse): Use scoped_restore.
14217 * d-exp.y (d_parse): Use scoped_restore.
14218 * cli/cli-decode.c (cmd_func): Use scoped_restore.
14219 * c-exp.y (c_parse): Use scoped_restore.
14220
14221 2017-04-12 Tom Tromey <tom@tromey.com>
14222
14223 * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
14224 (mi_parse): Update return type.
14225 (mi_parse_free): Remove.
14226 * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
14227 (mi_parse::~mi_parse): Rename from mi_parse_free.
14228 (mi_parse_cleanup): Remove.
14229 (mi_parse): Return a unique_ptr. Use new.
14230 * mi/mi-main.c (mi_execute_command): Update.
14231
14232 2017-04-12 Tom Tromey <tom@tromey.com>
14233
14234 * location.c (explicit_location_lex_one): Return a
14235 unique_xmalloc_ptr.
14236 (string_to_explicit_location): Update. Remove cleanups.
14237
14238 2017-04-12 Tom Tromey <tom@tromey.com>
14239
14240 * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
14241 (compare_value_and_voffset): Change type. Update.
14242 (compute_vtable_size): Change type of "offset_vec".
14243 (gnuv3_print_vtable): Use std::vector. Remove cleanups.
14244 (gnuv3_get_typeid): Remove extraneous declaration.
14245
14246 2017-04-12 Tom Tromey <tom@tromey.com>
14247
14248 * charset.h (wchar_iterator): Fix comment.
14249
14250 2017-04-12 Tom Tromey <tom@tromey.com>
14251
14252 * charset.c (iconv_wrapper): New class.
14253 (cleanup_iconv): Remove.
14254 (convert_between_encodings): Use it.
14255
14256 2017-04-12 Tom Tromey <tom@tromey.com>
14257
14258 * symfile.h (increment_reading_symtab): Update type.
14259 * symfile.c (decrement_reading_symtab): Remove.
14260 (increment_reading_symtab): Return a scoped_restore_tmpl<int>.
14261 * psymtab.c (psymtab_to_symtab): Update.
14262 * dwarf2read.c (dw2_instantiate_symtab): Update.
14263
14264 2017-04-12 Tom Tromey <tom@tromey.com>
14265
14266 * jit.c (struct jit_reader): Declare separately. Add constructor
14267 and destructor. Change type of "handle".
14268 (loaded_jit_reader): Define separately.
14269 (jit_reader_load): Update. New "new".
14270 (jit_reader_unload_command): Use "delete".
14271 * gdb-dlfcn.h (struct dlclose_deleter): New.
14272 (gdb_dlhandle_up): New typedef.
14273 (gdb_dlopen, gdb_dlsym): Update types.
14274 (gdb_dlclose): Remove.
14275 * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up.
14276 (gdb_dlsym): Change type of "handle".
14277 (make_cleanup_dlclose): Remove.
14278 (dlclose_deleter::operator()): Rename from gdb_dlclose.
14279 * compile/compile-c-support.c (load_libcc): Update.
14280
14281 2017-04-12 Tom Tromey <tom@tromey.com>
14282
14283 * symtab.h (find_pcs_for_symtab_line): Change return type.
14284 * symtab.c (find_pcs_for_symtab_line): Change return type.
14285 * python/py-linetable.c (build_line_table_tuple_from_pcs): Change
14286 type of "vec". Update.
14287 (ltpy_get_pcs_for_line): Update.
14288 * linespec.c (decode_digits_ordinary): Update.
14289
14290 2017-04-12 Tom Tromey <tom@tromey.com>
14291
14292 * tracepoint.c (actions_command): Update.
14293 * python/python.c (python_command, python_interactive_command):
14294 Update.
14295 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
14296 * guile/guile.c (guile_command): Update.
14297 * defs.h (read_command_lines, read_command_lines_1): Return
14298 command_line_up.
14299 (command_lines_deleter): New struct.
14300 (command_line_up): New typedef.
14301 * compile/compile.c (compile_code_command)
14302 (compile_print_command): Update.
14303 * cli/cli-script.h (get_command_line, copy_command_lines): Return
14304 command_line_up.
14305 (make_cleanup_free_command_lines): Remove.
14306 * cli/cli-script.c (get_command_line, read_command_lines_1)
14307 (copy_command_lines): Return command_line_up.
14308 (while_command, if_command, read_command_lines, define_command)
14309 (document_command): Update.
14310 (do_free_command_lines_cleanup, make_cleanup_free_command_lines):
14311 Remove.
14312 * breakpoint.h (breakpoint_set_commands): Change type of
14313 "commands".
14314 * breakpoint.c (breakpoint_set_commands): Change type of
14315 "commands". Update.
14316 (do_map_commands_command, update_dprintf_command_list)
14317 (create_tracepoint_from_upload): Update.
14318
14319 2017-04-12 Tom Tromey <tom@tromey.com>
14320
14321 * tracepoint.c (scope_info): Update.
14322 * spu-tdep.c (spu_catch_start): Update.
14323 * python/python.c (gdbpy_decode_line): Update.
14324 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
14325 * python/py-breakpoint.c (bppy_init): Update.
14326 * probe.c (parse_probes): Update.
14327 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
14328 * location.h (event_location_deleter): New struct.
14329 (event_location_up): New typedef.
14330 (new_linespec_location, new_address_location, new_probe_location)
14331 (new_explicit_location, copy_event_location)
14332 (string_to_event_location, string_to_event_location_basic)
14333 (string_to_explicit_location): Update return type.
14334 (make_cleanup_delete_event_location): Remove.
14335 * location.c (new_linespec_location, new_address_location)
14336 (new_probe_location, new_explicit_location, copy_event_location):
14337 Return event_location_up.
14338 (delete_event_location_cleanup)
14339 (make_cleanup_delete_event_location): Remove.
14340 (string_to_explicit_location, string_to_event_location_basic)
14341 (string_to_event_location): Return event_location_up.
14342 * linespec.c (canonicalize_linespec, event_location_to_sals)
14343 (decode_line_with_current_source)
14344 (decode_line_with_last_displayed, decode_objc): Update.
14345 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
14346 * completer.c (location_completer): Update.
14347 * cli/cli-cmds.c (edit_command, list_command): Update.
14348 * breakpoint.c (create_overlay_event_breakpoint)
14349 (create_longjmp_master_breakpoint)
14350 (create_std_terminate_master_breakpoint)
14351 (create_exception_master_breakpoint)
14352 (create_thread_event_breakpoint): Update.
14353 (init_breakpoint_sal): Update. Remove some dead code.
14354 (create_breakpoint_sal): Change type of "location". Update.
14355 (create_breakpoints_sal, create_breakpoint, break_command_1)
14356 (dprintf_command, break_range_command, until_break_command)
14357 (init_ada_exception_breakpoint)
14358 (strace_marker_create_sals_from_location)
14359 (update_static_tracepoint, trace_command, ftrace_command)
14360 (strace_command, create_tracepoint_from_upload): Update.
14361 * break-catch-throw.c (re_set_exception_catchpoint): Update.
14362 * ax-gdb.c (agent_command_1): Update.
14363
14364 2017-04-12 Pedro Alves <palves@redhat.com>
14365
14366 * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o.
14367 * configure.tgt: Handle i[34567]86-*-go32* and
14368 i[34567]86-*-msdosdjgpp*.
14369 * i386-tdep.c (i386_svr4_reg_to_regnum):
14370 Make extern.
14371 (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to
14372 i386-go32-tdep.c.
14373 (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c.
14374 * i386-go32-tdep.c: New file.
14375 * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New
14376 declarations.
14377
14378 2017-04-12 Simon Marchi <simon.marchi@ericsson.com>
14379
14380 * aix-thread.c (pd_status2str): Change return type to const char *.
14381
14382 2017-04-12 Pedro Alves <palves@redhat.com>
14383
14384 * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
14385 calls to set_gdbarch_gnu_triplet_regexp.
14386
14387 2017-04-12 Pedro Alves <palves@redhat.com>
14388
14389 PR gdb/21323
14390 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>:
14391 New enum value.
14392 (cplus_language_arch_info): Register cplus_primitive_type_wchar_t.
14393 * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field.
14394 * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type.
14395 * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values.
14396 * gdbarch.h, gdbarch.c: Regenerate.
14397 * aarch64-tdep.c (aarch64_gdbarch_init): Override
14398 gdbarch_wchar_bit and gdbarch_wchar_signed.
14399 * alpha-tdep.c (alpha_gdbarch_init): Likewise.
14400 * arm-tdep.c (arm_gdbarch_init): Likewise.
14401 * avr-tdep.c (avr_gdbarch_init): Likewise.
14402 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
14403 * i386-nto-tdep.c (i386nto_init_abi): Likewise.
14404 * i386-tdep.c (i386_go32_init_abi): Likewise.
14405 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
14406 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
14407 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
14408 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
14409 * sh-tdep.c (sh_gdbarch_init): Likewise.
14410 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
14411 * sparc64-tdep.c (sparc64_init_abi): Likewise.
14412 * windows-tdep.c (windows_init_abi): Likewise.
14413 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
14414
14415 2017-04-12 Pedro Alves <palves@redhat.com>
14416
14417 PR c++/21323
14418 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t,
14419 cplus_primitive_type_char32_t>: New enum values.
14420 (cplus_language_arch_info): Register cplus_primitive_type_char16_t
14421 and cplus_primitive_type_char32_t.
14422 * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or
14423 32, use the archtecture's built-in type for char16_t and char32_t,
14424 respectively. Otherwise, fallback to init_integer_type as before,
14425 but make the type unsigned, and issue a complaint.
14426 * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned.
14427
14428 2017-04-12 Alan Hayward <alan.hayward@arm.com>
14429
14430 * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added.
14431 (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
14432
14433 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
14434
14435 * windows-nat.c (windows_create_inferior): Declare 'toexec' as
14436 'const char *'.
14437
14438 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
14439
14440 * common/common-utils.c (free_vector_argv): New function.
14441 * common/common-utils.h: Include <vector>.
14442 (free_vector_argv): New prototype.
14443 * darwin-nat.c (darwin_create_inferior): Rewrite function
14444 prototype in order to constify "exec_file" and accept a
14445 "std::string" for "allargs".
14446 * fork-child.c: Include <vector>.
14447 (breakup_args): Rewrite function, using C++.
14448 (fork_inferior): Rewrite function header, constify "exec_file_arg"
14449 and accept "std::string" for "allargs". Update the code to
14450 calculate "argv" based on "allargs". Update calls to "exec_fun"
14451 and "execvp".
14452 * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in
14453 order to constify "exec_file" and accept a "std::string" for
14454 "allargs".
14455 * go32-nat.c (go32_create_inferior): Likewise.
14456 * inf-ptrace.c (inf_ptrace_create_inferior): Likewise.
14457 * infcmd.c (run_command_1): Constify "exec_file". Use
14458 "std::string" for inferior arguments.
14459 * inferior.h (fork_inferior): Update prototype.
14460 * linux-nat.c (linux_nat_create_inferior): Rewrite function
14461 prototype in order to constify "exec_file" and accept a
14462 "std::string" for "allargs".
14463 * nto-procfs.c (procfs_create_inferior): Likewise.
14464 * procfs.c (procfs_create_inferior): Likewise.
14465 * remote-sim.c (gdbsim_create_inferior): Likewise.
14466 * remote.c (extended_remote_run): Update code to accept
14467 "std::string" as argument.
14468 (extended_remote_create_inferior): Rewrite function prototype in
14469 order to constify "exec_file" and accept a "std::string" for
14470 "allargs".
14471 * rs6000-nat.c (super_create_inferior): Likewise.
14472 (rs6000_create_inferior): Likewise.
14473 * target.h (struct target_ops) <to_create_inferior>: Likewise.
14474 * windows-nat.c (windows_create_inferior): Likewise.
14475
14476 2017-04-11 Pedro Alves <palves@redhat.com>
14477
14478 * thread.c: Fix whitespace throughout.
14479
14480 2017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com>
14481
14482 * linux-nat.c (linux_nat_detach): Remove delete_lwp call.
14483
14484 2017-04-11 Alan Hayward <alan.hayward@arm.com>
14485
14486 * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
14487
14488 2017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
14489
14490 PR gdb/21364
14491 * osdata.c (info_osdata): Check if 'type' is an empty string
14492 instead of NULL.
14493
14494 2017-04-10 Pedro Alves <palves@redhat.com>
14495
14496 * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid)
14497 (ptid_to_global_thread_id, in_thread_list)
14498 (do_captured_list_thread_ids, set_resumed, set_running)
14499 (set_executing, set_stop_requested, finish_thread_state)
14500 (validate_registers_access, can_access_registers_ptid)
14501 (print_thread_info_1, switch_to_thread)
14502 (do_restore_current_thread_cleanup)
14503 (make_cleanup_restore_current_thread, thread_command)
14504 (thread_name_command): Use operator== instead of ptid_equal.
14505
14506 2017-04-10 Pedro Alves <palves@redhat.com>
14507
14508 * thread.c (struct current_thread_cleanup) <next>: Delete field.
14509 (current_thread_cleanup_chain): Delete.
14510 (restore_current_thread_cleanup_dtor)
14511 (make_cleanup_restore_current_thread): Remove references to
14512 current_thread_cleanup_chain.
14513
14514 2017-04-10 Alan Hayward <alan.hayward@arm.com>
14515
14516 * msp430-tdep.c (msp430_pseudo_register_read): Never return
14517 REG_UNKNOWN.
14518
14519 2017-04-10 Yao Qi <yao.qi@linaro.org>
14520
14521 PR gdb/19942
14522 * gdbthread.h (thread_info::deletable): New method.
14523 (thread_info::incref): New method.
14524 (thread_info::decref): New method.
14525 (thread_info::refcount): Move it to private.
14526 * infrun.c (save_stop_context): Call inc_refcount.
14527 (release_stop_context_cleanup): Likewise.
14528 * thread.c (set_thread_exited): New function.
14529 (init_thread_list): Delete "tp" only it is deletable, otherwise
14530 call set_thread_exited.
14531 (delete_thread_1): Call set_thread_exited.
14532 (current_thread_cleanup) <inferior_pid>: Remove.
14533 <thread>: New field.
14534 (restore_current_thread_ptid_changed): Removed.
14535 (do_restore_current_thread_cleanup): Adjust.
14536 (restore_current_thread_cleanup_dtor): Don't call
14537 find_thread_ptid.
14538 (set_thread_refcount): Use dec_refcount.
14539 (make_cleanup_restore_current_thread): Adjust.
14540 (thread_apply_all_command): Call inc_refcount.
14541 (_initialize_thread): Don't call
14542 observer_attach_thread_ptid_changed.
14543
14544 2017-04-10 Yao Qi <yao.qi@linaro.org>
14545
14546 * thread.c (delete_thread_1): Hoist code on marking thread as
14547 exited.
14548
14549 2017-04-09 Simon Marchi <simon.marchi@polymtl.ca>
14550
14551 * windows-nat.c (windows_detach): Initialize ptid with
14552 minus_one_ptid.
14553
14554 2017-04-07 Simon Marchi <simon.marchi@ericsson.com>
14555
14556 * unittests/ptid-selftests.c: Fix erroneous assert messages.
14557
14558 2017-04-07 Alan Hayward <alan.hayward@arm.com>
14559
14560 * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
14561 (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE.
14562 (bfin_pseudo_register_write): Likewise
14563
14564 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
14565
14566 * common/ptid.h (struct ptid): Change to...
14567 (class ptid_t): ... this.
14568 <ptid_t>: New constructors.
14569 <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=,
14570 matches>: New methods.
14571 <make_null, make_minus_one>: New static methods.
14572 <pid>: Rename to...
14573 <m_pid>: ...this.
14574 <lwp>: Rename to...
14575 <m_lwp>: ...this.
14576 <tid>: Rename to...
14577 <m_tid>: ...this.
14578 (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
14579 ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments
14580 as references, move comment to class ptid_t.
14581 * common/ptid.c (null_ptid, minus_one_ptid): Initialize with
14582 ptid_t static methods.
14583 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid,
14584 ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match):
14585 Take ptid arguments as references, implement using ptid_t methods.
14586 * unittests/ptid-selftests.c: New file.
14587 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14588 unittests/ptid-selftests.c.
14589 (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o.
14590
14591 2017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
14592
14593 * python/python.c (python_run_simple_file): Cast mode literal to
14594 non-const char pointer as expected by PyFile_FromString.
14595
14596 2017-04-05 Simon Marchi <simon.marchi@ericsson.com>
14597
14598 * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with
14599 minus_one_ptid and null_ptid.
14600
14601 2017-04-05 Pedro Alves <palves@redhat.com>
14602
14603 * warning.m4 (build_warnings): Remove -Wno-write-strings.
14604 * configure: Regenerate.
14605
14606 2017-04-05 Pedro Alves <palves@redhat.com>
14607
14608 * ada-exp.y (yyerror): Constify.
14609 * ada-lang.c (bound_name, get_selections)
14610 (ada_variant_discrim_type)
14611 (ada_variant_discrim_name, ada_value_struct_elt)
14612 (ada_lookup_struct_elt_type, is_unchecked_variant)
14613 (ada_which_variant_applies, standard_exc, ada_get_next_arg)
14614 (catch_ada_exception_command_split)
14615 (catch_ada_assert_command_split, catch_assert_command)
14616 (ada_op_name): Constify.
14617 * ada-lang.h (ada_yyerror, get_selections)
14618 (ada_variant_discrim_name, ada_value_struct_elt): Constify.
14619 * arc-tdep.c (arc_print_frame_cache): Constify.
14620 * arm-tdep.c (arm_skip_stub): Constify.
14621 * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref)
14622 (gen_aggregate_elt_ref): Constify.
14623 * bcache.c (print_bcache_statistics): Constify.
14624 * bcache.h (print_bcache_statistics): Constify.
14625 * break-catch-throw.c (catch_exception_command_1):
14626 * breakpoint.c (struct ep_type_description::description):
14627 Constify.
14628 (add_solib_catchpoint): Constify.
14629 (catch_fork_command_1): Add cast.
14630 (add_catch_command): Constify.
14631 * breakpoint.h (add_catch_command, add_solib_catchpoint):
14632 Constify.
14633 * bsd-uthread.c (bsd_uthread_state): Constify.
14634 * buildsym.c (patch_subfile_names): Constify.
14635 * buildsym.h (next_symbol_text_func, patch_subfile_names):
14636 Constify.
14637 * c-exp.y (yyerror): Constify.
14638 (token::oper): Constify.
14639 * c-lang.h (c_yyerror, cp_print_class_member): Constify.
14640 * c-varobj.c (cplus_describe_child): Constify.
14641 * charset.c (find_charset_names): Add cast.
14642 (find_charset_names): Constify array and add const_cast.
14643 * cli/cli-cmds.c (complete_command, cd_command): Constify.
14644 (edit_command): Constify.
14645 * cli/cli-decode.c (lookup_cmd): Constify.
14646 * cli/cli-dump.c (dump_memory_command, dump_value_command):
14647 Constify.
14648 (struct dump_context): Constify.
14649 (add_dump_command, restore_command): Constify.
14650 * cli/cli-script.c (get_command_line): Constify.
14651 * cli/cli-script.h (get_command_line): Constify.
14652 * cli/cli-utils.c (check_for_argument): Constify.
14653 * cli/cli-utils.h (check_for_argument): Constify.
14654 * coff-pe-read.c (struct read_pe_section_data): Constify.
14655 * command.h (lookup_cmd): Constify.
14656 * common/print-utils.c (decimal2str): Constify.
14657 * completer.c (gdb_print_filename): Constify.
14658 * corefile.c (set_gnutarget): Constify.
14659 * cp-name-parser.y (yyerror): Constify.
14660 * cp-valprint.c (cp_print_class_member): Constify.
14661 * cris-tdep.c (cris_register_name, crisv32_register_name):
14662 Constify.
14663 * d-exp.y (yyerror): Constify.
14664 (struct token::oper): Constify.
14665 * d-lang.h (d_yyerror): Constify.
14666 * dbxread.c (struct header_file_location::name): Constify.
14667 (add_old_header_file, add_new_header_file, last_function_name)
14668 (dbx_next_symbol_text, add_bincl_to_list)
14669 (find_corresponding_bincl_psymtab, set_namestring)
14670 (find_stab_function_addr, read_dbx_symtab, start_psymtab)
14671 (dbx_end_psymtab, read_ofile_symtab, process_one_symbol):
14672 * defs.h (command_line_input, print_address_symbolic)
14673 (deprecated_readline_begin_hook): Constify.
14674 * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name):
14675 Constify.
14676 * event-top.c (handle_line_of_input): Constify and add cast.
14677 * exceptions.c (catch_errors): Constify.
14678 * exceptions.h (catch_errors): Constify.
14679 * expprint.c (print_subexp_standard, op_string, op_name)
14680 (op_name_standard, dump_raw_expression, dump_raw_expression):
14681 * expression.h (op_name, op_string, dump_raw_expression):
14682 Constify.
14683 * f-exp.y (yyerror): Constify.
14684 (struct token::oper): Constify.
14685 (struct f77_boolean_val::name): Constify.
14686 * f-lang.c (f_word_break_characters): Constify.
14687 * f-lang.h (f_yyerror): Constify.
14688 * fork-child.c (fork_inferior): Add cast.
14689 * frv-tdep.c (struct gdbarch_tdep::register_names): Constify.
14690 (new_variant): Constify.
14691 * gdbarch.sh (pstring_ptr, pstring_list): Constify.
14692 * gdbarch.c: Regenerate.
14693 * gdbcore.h (set_gnutarget): Constify.
14694 * go-exp.y (yyerror): Constify.
14695 (token::oper): Constify.
14696 * go-lang.h (go_yyerror): Constify.
14697 * go32-nat.c (go32_sysinfo): Constify.
14698 * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify.
14699 * guile/scm-cmd.c (cmdscm_function): Constify.
14700 * guile/scm-param.c (pascm_param_value): Constify.
14701 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
14702 (h8300sx_register_name): Constify.
14703 * hppa-tdep.c (hppa32_register_name, hppa64_register_name):
14704 Constify.
14705 * ia64-tdep.c (ia64_register_names): Constify.
14706 * infcmd.c (construct_inferior_arguments): Constify.
14707 (path_command, attach_post_wait): Constify.
14708 * language.c (show_range_command, show_case_command)
14709 (unk_lang_error): Constify.
14710 * language.h (language_defn::la_error)
14711 (language_defn::la_name_of_this): Constify.
14712 * linespec.c (decode_line_2): Constify.
14713 * linux-thread-db.c (thread_db_err_str): Constify.
14714 * lm32-tdep.c (lm32_register_name): Constify.
14715 * m2-exp.y (yyerror): Constify.
14716 * m2-lang.h (m2_yyerror): Constify.
14717 * m32r-tdep.c (m32r_register_names): Constify and make static.
14718 * m68hc11-tdep.c (m68hc11_register_names): Constify.
14719 * m88k-tdep.c (m88k_register_name): Constify.
14720 * macroexp.c (appendmem): Constify.
14721 * mdebugread.c (fdr_name, add_data_symbol, parse_type)
14722 (upgrade_type, parse_external, parse_partial_symbols)
14723 (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab)
14724 (new_symbol): Constify.
14725 * memattr.c (mem_info_command): Constify.
14726 * mep-tdep.c (register_name_from_keyword): Constify.
14727 * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env):
14728 Constify.
14729 * mi/mi-cmd-stack.c (list_args_or_locals): Constify.
14730 * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify.
14731 * mi/mi-main.c (captured_mi_execute_command): Constify and add
14732 cast.
14733 (mi_execute_async_cli_command): Constify.
14734 * mips-tdep.c (mips_register_name): Constify.
14735 * mn10300-tdep.c (register_name, mn10300_generic_register_name)
14736 (am33_register_name, am33_2_register_name)
14737 * moxie-tdep.c (moxie_register_names): Constify.
14738 * nat/linux-osdata.c (osdata_type): Constify fields.
14739 * nto-tdep.c (nto_parse_redirection): Constify.
14740 * objc-lang.c (lookup_struct_typedef, lookup_objc_class)
14741 (lookup_child_selector): Constify.
14742 (objc_methcall::name): Constify.
14743 * objc-lang.h (lookup_objc_class, lookup_child_selector)
14744 (lookup_struct_typedef): Constify.
14745 * objfiles.c (pc_in_section): Constify.
14746 * objfiles.h (pc_in_section): Constify.
14747 * p-exp.y (struct token::oper): Constify.
14748 (yyerror): Constify.
14749 * p-lang.h (pascal_yyerror): Constify.
14750 * parser-defs.h (op_name_standard): Constify.
14751 (op_print::string): Constify.
14752 (exp_descriptor::op_name): Constify.
14753 * printcmd.c (print_address_symbolic): Constify.
14754 * psymtab.c (print_partial_symbols): Constify.
14755 * python/py-breakpoint.c (stop_func): Constify.
14756 (bppy_get_expression): Constify.
14757 * python/py-cmd.c (cmdpy_completer::name): Constify.
14758 (cmdpy_function): Constify.
14759 * python/py-event.c (evpy_add_attribute)
14760 (gdbpy_initialize_event_generic): Constify.
14761 * python/py-event.h (evpy_add_attribute)
14762 (gdbpy_initialize_event_generic): Constify.
14763 * python/py-evts.c (add_new_registry): Constify.
14764 * python/py-finishbreakpoint.c (outofscope_func): Constify.
14765 * python/py-framefilter.c (get_py_iter_from_func): Constify.
14766 * python/py-inferior.c (get_buffer): Add cast.
14767 * python/py-param.c (parm_constant::name): Constify.
14768 * python/py-unwind.c (fprint_frame_id): Constify.
14769 * python/python.c (gdbpy_parameter_value): Constify.
14770 * remote-fileio.c (remote_fio_func_map): Make 'name' const.
14771 * remote.c (memory_packet_config::name): Constify.
14772 (show_packet_config_cmd, remote_write_bytes)
14773 (remote_buffer_add_string):
14774 * reverse.c (exec_reverse_once): Constify.
14775 * rs6000-tdep.c (variant::name, variant::description): Constify.
14776 * rust-exp.y (rustyyerror): Constify.
14777 * rust-lang.c (rust_op_name): Constify.
14778 * rust-lang.h (rustyyerror): Constify.
14779 * serial.h (serial_ops::name): Constify.
14780 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
14781 (sh_sh3e_register_name, sh_sh2e_register_name)
14782 (sh_sh2a_register_name, sh_sh2a_nofpu_register_name)
14783 (sh_sh_dsp_register_name, sh_sh3_dsp_register_name)
14784 (sh_sh4_register_name, sh_sh4_nofpu_register_name)
14785 (sh_sh4al_dsp_register_name): Constify.
14786 * sh64-tdep.c (sh64_register_name): Constify.
14787 * solib-darwin.c (lookup_symbol_from_bfd): Constify.
14788 * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify.
14789 * stabsread.c (patch_block_stabs, read_type_number)
14790 (ref_map::stabs, ref_add, process_reference)
14791 (symbol_reference_defined, define_symbol, define_symbol)
14792 (error_type, read_type, read_member_functions, read_cpp_abbrev)
14793 (read_one_struct_field, read_struct_fields, read_baseclasses)
14794 (read_tilde_fields, read_struct_type, read_array_type)
14795 (read_enum_type, read_sun_builtin_type, read_sun_floating_type)
14796 (read_huge_number, read_range_type, read_args, common_block_start)
14797 (find_name_end): Constify.
14798 * stabsread.h (common_block_start, define_symbol)
14799 (process_one_symbol, symbol_reference_defined, ref_add):
14800 * symfile.c (get_section_index, add_symbol_file_command):
14801 * symfile.h (get_section_index): Constify.
14802 * target-descriptions.c (tdesc_type::name): Constify.
14803 (tdesc_free_type): Add cast.
14804 * target.c (find_default_run_target):
14805 (add_deprecated_target_alias, find_default_run_target)
14806 (target_announce_detach): Constify.
14807 (do_option): Constify.
14808 * target.h (add_deprecated_target_alias): Constify.
14809 * thread.c (print_thread_info_1): Constify.
14810 * top.c (deprecated_readline_begin_hook, command_line_input):
14811 Constify.
14812 (init_main): Add casts.
14813 * top.h (handle_line_of_input): Constify.
14814 * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify.
14815 * tracepoint.c (tvariables_info_1, trace_status_mi): Constify.
14816 (tfind_command): Rename to ...
14817 (tfind_command_1): ... this and constify.
14818 (tfind_command): New function.
14819 (tfind_end_command, tfind_start_command): Adjust.
14820 (encode_source_string): Constify.
14821 * tracepoint.h (encode_source_string): Constify.
14822 * tui/tui-data.c (tui_partial_win_by_name): Constify.
14823 * tui/tui-data.h (tui_partial_win_by_name): Constify.
14824 * tui/tui-source.c (tui_set_source_content_nil): Constify.
14825 * tui/tui-source.h (tui_set_source_content_nil): Constify.
14826 * tui/tui-win.c (parse_scrolling_args): Constify.
14827 * tui/tui-windata.c (tui_erase_data_content): Constify.
14828 * tui/tui-windata.h (tui_erase_data_content): Constify.
14829 * tui/tui-winsource.c (tui_erase_source_content): Constify.
14830 * tui/tui.c (tui_enable): Add cast.
14831 * utils.c (defaulted_query): Constify.
14832 (init_page_info): Add cast.
14833 (puts_debug, subset_compare): Constify.
14834 * utils.h (subset_compare): Constify.
14835 * varobj.c (varobj_format_string): Constify.
14836 * varobj.h (varobj_format_string): Constify.
14837 * vax-tdep.c (vax_register_name): Constify.
14838 * windows-nat.c (windows_detach): Constify.
14839 * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify.
14840 * xml-support.c (gdb_xml_end_element): Constify.
14841 * xml-tdesc.c (tdesc_start_reg): Constify.
14842 * xstormy16-tdep.c (xstormy16_register_name): Constify.
14843 * xtensa-tdep.c (xtensa_find_register_by_name): Constify.
14844 * xtensa-tdep.h (xtensa_register_t::name): Constify.
14845
14846 2017-04-05 Pedro Alves <palves@redhat.com>
14847
14848 * proc-api.c (struct trans): Constify.
14849 (procfs_note): Constify.
14850 * proc-events.c (struct trans, syscall_table):
14851 * proc-flags.c (struct trans): Constify.
14852 * proc-utils.h (procfs_note): Constify.
14853 * proc-why.c (struct trans): Constify.
14854 * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error)
14855 (procfs_detach): Constify.
14856 * sol-thread.c (struct string_map): Constify.
14857 (td_err_string, td_state_string): Constify.
14858
14859 2017-04-05 Pedro Alves <palves@redhat.com>
14860
14861 * proc-api.c (procfs_filename): Don't initialize
14862 procfs_filename.
14863 (prepare_to_trace): Assume procfs_filename is non-NULL.
14864 (_initialize_proc_api): Give procfs_filename a default value here.
14865
14866 2017-04-05 Pedro Alves <palves@redhat.com>
14867
14868 * break-catch-throw.c (handle_gnu_v3_exceptions): Constify
14869 'cond_string' parameter.
14870 (extract_exception_regexp): Constify 'string' parameter.
14871 (catch_exception_command_1): Constify.
14872 * breakpoint.c (init_catchpoint)
14873 (create_fork_vfork_event_catchpoint): Constify 'cond_string'
14874 parameter.
14875 (ep_parse_optional_if_clause, catch_fork_command_1)
14876 (catch_exec_command_1): Constify.
14877 * breakpoint.h (init_catchpoint): Constify 'cond_string'
14878 parameter.
14879 (ep_parse_optional_if_clause): Constify.
14880 * cli/cli-utils.c (remove_trailing_whitespace)
14881 (check_for_argument): Constify.
14882 * cli/cli-utils.h (remove_trailing_whitespace): Constify and add
14883 non-const overload.
14884 (check_for_argument): Likewise.
14885
14886 2017-04-05 Pedro Alves <palves@redhat.com>
14887
14888 * event-top.c (command_line_handler): Add cast to execute_command
14889 call.
14890 * record-btrace.c (cmd_record_btrace_bts_start)
14891 (cmd_record_btrace_pt_start, cmd_record_btrace_start)
14892 (cmd_record_btrace_start): Add cast to execute_command call.
14893 * record-full.c (record_full_goto_insn):
14894 * record.c (record_start, record_stop): Add cast to
14895 execute_command_to_string calls.
14896 (cmd_record_start): Add cast to execute_command calls.
14897
14898 2017-04-05 Pedro Alves <palves@redhat.com>
14899
14900 * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New
14901 static inline function.
14902 * python/py-arch.c (archpy_disassemble): Constify 'keywords'
14903 array and use gdb_PyArg_ParseTupleAndKeywords.
14904 * python/py-cmd.c (cmdpy_init): Likewise.
14905 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
14906 * python/py-inferior.c (infpy_read_memory, infpy_write_memory)
14907 (infpy_search_memory): Likewise.
14908 * python/py-objfile.c (objfpy_add_separate_debug_file)
14909 (gdbpy_lookup_objfile): Likewise.
14910 * python/py-symbol.c (gdbpy_lookup_symbol)
14911 (gdbpy_lookup_global_symbol): Likewise.
14912 * python/py-type.c (gdbpy_lookup_type): Likewise.
14913 * python/py-value.c (valpy_lazy_string, valpy_string): Likewise.
14914 * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush):
14915 Likewise.
14916
14917 2017-04-05 Pedro Alves <palves@redhat.com>
14918
14919 * python/python-internal.h (gdb_PyGetSetDef): New type.
14920 * python/py-block.c (block_object_getset)
14921 (breakpoint_object_getset): Now a gdb_PyGetSetDef array.
14922 * python/py-event.c (event_object_getset)
14923 (finish_breakpoint_object_getset): Likewise.
14924 * python/py-inferior.c (inferior_object_getset): Likewise.
14925 * python/py-infthread.c (thread_object_getset): Likewise.
14926 * python/py-lazy-string.c (lazy_string_object_getset): Likewise.
14927 * python/py-linetable.c (linetable_entry_object_getset): Likewise.
14928 * python/py-objfile.c (objfile_getset): Likewise.
14929 * python/py-progspace.c (pspace_getset): Likewise.
14930 * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset):
14931 Likewise.
14932 * python/py-record.c (recpy_record_getset): Likewise.
14933 * python/py-symbol.c (symbol_object_getset): Likewise.
14934 * python/py-symtab.c (symtab_object_getset, sal_object_getset):
14935 Likewise.
14936 * python/py-type.c (type_object_getset, field_object_getset):
14937 Likewise.
14938 * python/py-value.c (value_object_getset): Likewise.
14939
14940 2017-04-05 Pedro Alves <palves@redhat.com>
14941
14942 * python/python-internal.h (gdb_PyObject_CallMethod)
14943 (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath):
14944 New functions.
14945 (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException)
14946 (PySys_GetObject, PySys_SetPath): New macros.
14947
14948 2017-04-05 Pedro Alves <palves@redhat.com>
14949
14950 * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of
14951 info_osdata_command.
14952 * osdata.c (info_osdata_command): Rename to ...
14953 (info_osdata): ... this. Constify 'type' parameter, and remove
14954 the 'from_tty' parameter. Accept NULL TYPE.
14955 (info_osdata_command): New function.
14956 * osdata.h (info_osdata_command): Remove declaration.
14957 (info_osdata): New declaration.
14958
14959 2017-04-05 Pedro Alves <palves@redhat.com>
14960
14961 * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert)
14962 (mi_cmd_dprintf_insert, mi_cmd_break_passcount)
14963 (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command'
14964 parameter.
14965 * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception)
14966 (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter.
14967 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command'
14968 parameter.
14969 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path)
14970 (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show)
14971 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
14972 (mi_cmd_file_list_exec_source_files)
14973 (mi_cmd_file_list_shared_libraries): Constify 'command' parameter.
14974 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
14975 (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command'
14976 parameter.
14977 * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters)
14978 (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth)
14979 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
14980 (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame)
14981 (mi_cmd_stack_info_frame): Constify 'command' parameter.
14982 * mi/mi-cmd-target.c (mi_cmd_target_file_get)
14983 (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify
14984 'command' parameter.
14985 * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete)
14986 (mi_cmd_var_set_format, mi_cmd_var_set_visualizer)
14987 (mi_cmd_var_set_frozen, mi_cmd_var_show_format)
14988 (mi_cmd_var_info_num_children, mi_cmd_var_list_children)
14989 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
14990 (mi_cmd_var_info_expression, mi_cmd_var_show_attributes)
14991 (mi_cmd_var_evaluate_expression, mi_cmd_var_assign)
14992 (mi_cmd_var_update, mi_cmd_enable_pretty_printing)
14993 (mi_cmd_var_set_update_range): Constify 'command' parameter.
14994 * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter.
14995 * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command'
14996 parameter.
14997 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next)
14998 (mi_cmd_exec_next_instruction, mi_cmd_exec_step)
14999 (mi_cmd_exec_step_instruction, mi_cmd_exec_finish)
15000 (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue)
15001 (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach)
15002 (mi_cmd_target_flash_erase, mi_cmd_thread_select)
15003 (mi_cmd_thread_list_ids, mi_cmd_thread_info)
15004 (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names)
15005 (mi_cmd_data_list_changed_registers)
15006 (mi_cmd_data_write_register_values)
15007 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
15008 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory)
15009 (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings)
15010 (mi_cmd_list_features, mi_cmd_list_target_features)
15011 (mi_cmd_add_inferior, mi_cmd_remove_inferior)
15012 (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables)
15013 (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start)
15014 (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info)
15015 (mi_cmd_trace_frame_collected): Constify 'command'
15016 parameter.
15017 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify
15018 'command' parameter.
15019
15020 2017-04-05 Pedro Alves <palves@redhat.com>
15021
15022 * ada-lang.c (ada_completer_word_break_characters): Now a const
15023 array.
15024 (ada_get_gdb_completer_word_break_characters): Constify.
15025 * completer.c (gdb_completer_command_word_break_characters)
15026 (gdb_completer_file_name_break_characters)
15027 (gdb_completer_quote_characters): Now const arrays.
15028 (get_gdb_completer_quote_characters): Constify.
15029 (set_rl_completer_word_break_characters): New function.
15030 (set_gdb_completion_word_break_characters)
15031 (complete_line_internal): Use it.
15032 * completer.h (get_gdb_completer_quote_characters): Constify.
15033 (set_rl_completer_word_break_characters): Declare.
15034 * f-lang.c (f_word_break_characters): Constify.
15035 * language.c (default_word_break_characters): Constify.
15036 * language.h (language_defn::la_word_break_characters): Constify.
15037 (default_word_break_characters): Constify.
15038 * top.c (init_main): Use set_rl_completer_word_break_characters.
15039
15040 2017-04-05 Pedro Alves <palves@redhat.com>
15041
15042 * aix-thread.c (aix_thread_pid_to_str)
15043 (aix_thread_extra_thread_info): Constify.
15044 * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
15045 * bsd-uthread.c (bsd_uthread_extra_thread_info)
15046 (bsd_uthread_pid_to_str): Constify.
15047 * corelow.c (core_pid_to_str): Constify.
15048 * darwin-nat.c (darwin_pid_to_str): Constify.
15049 * fbsd-nat.c (fbsd_pid_to_str): Constify.
15050 * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
15051 Constify.
15052 * gnu-nat.c (gnu_pid_to_str): Constify.
15053 * go32-nat.c (go32_pid_to_str): Constify.
15054 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
15055 * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
15056 * inferior.c (inferior_pid_to_str): Constify.
15057 * linux-nat.c (linux_nat_pid_to_str): Constify.
15058 * linux-tdep.c (linux_core_pid_to_str): Constify.
15059 * linux-thread-db.c (thread_db_pid_to_str)
15060 (thread_db_extra_thread_info): Constify.
15061 * nto-tdep.c (nto_extra_thread_info): Constify.
15062 * nto-tdep.h (nto_extra_thread_info): Constify.
15063 * obsd-nat.c (obsd_pid_to_str): Constify.
15064 * procfs.c (procfs_pid_to_str): Constify.
15065 * ravenscar-thread.c (ravenscar_extra_thread_info)
15066 (ravenscar_pid_to_str): Constify.
15067 * remote-sim.c (gdbsim_pid_to_str): Constify.
15068 * remote.c (remote_threads_extra_info, remote_pid_to_str):
15069 Constify.
15070 * sol-thread.c (solaris_pid_to_str): Constify.
15071 * sol2-tdep.c (sol2_core_pid_to_str): Constify.
15072 * sol2-tdep.h (sol2_core_pid_to_str): Constify.
15073 * target.c (default_pid_to_str, target_pid_to_str)
15074 (normal_pid_to_str, default_pid_to_str): Constify.
15075 * target.h (target_ops::to_pid_to_str)
15076 (target_ops::to_extra_thread_info): Constify.
15077 (target_pid_to_str, normal_pid_to_str): Constify.
15078 * windows-nat.c (windows_pid_to_str): Constify.
15079 * gdbarch.sh (core_pid_to_str): Constify.
15080 * target-delegates.c: Regenerate.
15081 * gdbarch.h, gdbarch.c: Regenerate.
15082
15083 2017-04-05 Pedro Alves <palves@redhat.com>
15084
15085 * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
15086 the memory of the temporary warning_pre_print override.
15087 * utils.c (warning_pre_print): Constify.
15088 * utils.h (warning_pre_print): Constify.
15089
15090 2017-04-05 Pedro Alves <palves@redhat.com>
15091
15092 * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
15093 (shell_command): New function.
15094 (make_command): Use std::string.
15095 (init_cli_cmds): Register shell_command instead of shell_escape.
15096
15097 2017-04-05 Pedro Alves <palves@redhat.com>
15098
15099 * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
15100 * tracepoint.c (default_collect): Don't initialize.
15101
15102 2017-04-05 Pedro Alves <palves@redhat.com>
15103
15104 * macroexp.c (macro_buffer::shared): Now a bool.
15105 (init_buffer): Update.
15106 (init_shared_buffer): Constify 'addr' parameter.
15107 (substitute_args, expand, macro_expand, macro_expand_next): Remove
15108 casts.
15109
15110 2017-04-05 Pedro Alves <palves@redhat.com>
15111
15112 * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
15113 * disasm.c (set_disassembler_options): Constify local.
15114 * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
15115
15116 2017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
15117
15118 PR gdb/21352
15119 * tracefile.c (tsave_command): Fix argument parsing for '-r'
15120 option.
15121
15122 2017-04-05 Yao Qi <yao.qi@linaro.org>
15123
15124 * frame.c (frame_unwind_register_unsigned): Call
15125 frame_unwind_register_value.
15126
15127 2017-04-05 Yao Qi <yao.qi@linaro.org>
15128
15129 * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
15130 Use gdb_test_multiple, and don't match anchor.
15131
15132 2017-04-05 Pedro Alves <palves@redhat.com>
15133
15134 * MAINTAINERS (Global Maintainers): Add Simon Marchi.
15135 (Write After Approval): Remove Simon Marchi.
15136
15137 2017-04-05 Pedro Alves <palves@redhat.com>
15138
15139 * common/gdb_optional.h (optional::optional): Make constexpr and
15140 initialize m_dummy.
15141
15142 2017-04-04 John Baldwin <jhb@FreeBSD.org>
15143
15144 * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
15145 (amd64fbsd_jmp_buf_reg_offset): Remove.
15146 (amd64fbsd_supply_uthread): Remove function.
15147 (amd64fbsd_collect_uthread): Remove function.
15148 (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
15149 * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
15150 (x86_64-*-freebsd*): Remove bsd-uthread.o.
15151 (fbsd-nat.c): Update comment.
15152 * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
15153 (i386fbsd_jmp_buf_reg_offset): Remove.
15154 (i386fbsd_supply_uthread): Remove function.
15155 (i386fbsd_collect_uthread): Remove function.
15156 (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
15157
15158 2017-04-04 John Baldwin <jhb@FreeBSD.org>
15159
15160 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
15161 (ALLDEPFILES): Remove alpha-fbsd-tdep.c
15162 * NEWS: Mention that support for FreeBSD/alpha was removed.
15163 * alpha-fbsd-tdep.c: Delete file.
15164 * config/alpha/fbsd.mh: Delete file.
15165 * configure.host: Delete alpha*-*-freebsd* and
15166 alpha*-*-kfreebsd*-gnu.
15167 * configure.tgt: Delete alpha*-*-freebsd* and
15168 alpha*-*-kfreebsd*-gnu.
15169
15170 2017-04-04 John Baldwin <jhb@FreeBSD.org>
15171
15172 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
15173 amd64bsd_store_inferior_registers): Use ptid from regcache.
15174
15175 2017-04-04 Pedro Alves <palves@redhat.com>
15176
15177 * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
15178 data fields, make them private and add "m_" prefixes.
15179 (lnp_state_machine::lnp_state_machine): New ctor.
15180 (record_line, check_line_address, handle_set_discriminator)
15181 (handle_set_address, handle_advance_pc, handle_special_opcode)
15182 (handle_advance_line, handle_set_file, handle_negate_stmt)
15183 (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
15184 (end_sequence, advance_line): New methods.
15185 (m_gdbarch, m_record_lines_p): New fields.
15186 (lnp_reader_state): Delete.
15187 (dwarf_record_line): Rename to ...
15188 (lnp_state_machine::record_line): ... adjust.
15189 (init_lnp_state_machine): Delete.
15190 (lnp_state_machine::lnp_state_machine): New.
15191 (check_line_address): Rename to ...
15192 (lnp_state_machine::check_line_address): This.
15193 (dwarf_decode_lines_1): Remove reference to "reader_state".
15194 Adjust lnp_state_machine having a non-default ctor. Use bool.
15195 State machine internal state manipulation moved to
15196 lnp_state_machine methods.
15197
15198 2017-04-04 Pedro Alves <palves@redhat.com>
15199
15200 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
15201 unittests/offset-type-selftests.c.
15202 (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
15203 * common/offset-type.h: New file.
15204 * common/preprocessor.h: New file.
15205 * common/traits.h: New file.
15206 * common/valid-expr.h: New file.
15207 * dwarf2expr.c: Include "common/underlying.h". Adjust to use
15208 sect_offset and cu_offset strong typedefs throughout.
15209 * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
15210 typedefs throughout.
15211 * dwarf2loc.c: Include "common/underlying.h". Adjust to use
15212 sect_offset and cu_offset strong typedefs throughout.
15213 * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
15214 typedefs throughout.
15215 * gdbtypes.h: Include "common/offset-type.h".
15216 (cu_offset): Now an offset type (strong typedef) instead of a
15217 struct.
15218 (sect_offset): Likewise.
15219 (union call_site_parameter_u): Rename "param_offset" field to
15220 "param_cu_off".
15221 * unittests/offset-type-selftests.c: New file.
15222
15223 2017-04-04 Pedro Alves <palves@redhat.com>
15224
15225 * common/underlying.h: New file.
15226 * dwarf2read.c: Include "common/gdb_optional.h" and
15227 "common/underlying.h".
15228 (dir_index, file_name_index): New types.
15229 (file_entry): Use them.
15230 (file_entry::include): Use to_underlying.
15231 (line_header::add_file_name): Use dir_index.
15232 (read_formatted_entries): Use gdb::optional. Read form before
15233 writting to file_entry.
15234 (dwarf_decode_line_header): Use dir_index.
15235 (lnp_state_machine::current_file): Use to_underlying.
15236 (lnp_state_machine::file): Change type to file_name_index.
15237 (dwarf_record_line): Use to_underlying.
15238 (init_lnp_state_machine): Use file_name_index.
15239 (dwarf_decode_lines_1): Use dir_index and file_name_index.
15240
15241 2017-04-04 Pedro Alves <palves@redhat.com>
15242
15243 * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
15244 operator bool, has_value and get methods.
15245
15246 2017-04-04 Pedro Alves <palves@redhat.com>
15247
15248 * dwarf2read.c (struct file_entry): Add ctors, and initialize all
15249 fields.
15250 (line_header): Initialize all data fields. Change type of
15251 standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
15252 Change type of include_dirs to std::vector<const char *>. Remove
15253 num_include_dirs, include_dirs_size. Change type of file_names to
15254 std::vector<file_entry>. Remove num_file_names, file_names_size.
15255 (line_header::line_header): New.
15256 (line_header::add_include_dir, line_header::add_file_name): New
15257 methods.
15258 (line_header::include_dir_at): Remove NULL check.
15259 (line_header::file_name_at): Add const overload.
15260 (line_header_up): New unique_ptr typedef.
15261 (dw2_get_file_names_reader): Use line_header_up. Adjust to use
15262 std::vector. Remove free_line_header call.
15263 (dwarf2_build_include_psymtabs): Use line_header_up. Remove
15264 free_line_header call.
15265 (free_cu_line_header): Delete.
15266 (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
15267 (setup_type_unit_groups): Use line_header_up instead of cleanups.
15268 Adjust to use std::vector.
15269 (free_line_header): Delete.
15270 (free_line_header_voidp): Use delete.
15271 (add_include_dir): Replace with ...
15272 (line_header::add_include_dir): ... this method. Use std::vector.
15273 (add_file_name): Replace with ...
15274 (line_header::add_file_name): ... this method. Use std::vector.
15275 (add_include_dir_stub): Delete.
15276 (read_formatted_entries): Remove memset.
15277 (dwarf_decode_line_header): Return a line_header_up instead of a
15278 raw pointer. Remove cleanup handling. Pass lambdas to
15279 read_formatted_entries. Adjust to use line_header methods.
15280 (dwarf_decode_lines_1): Adjust to use line_header methods.
15281 (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
15282 use std::vector.
15283
15284 2017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
15285
15286 * remote.c (set_general_thread, set_continue_thread): Use ptid_t
15287 instead of struct ptid.
15288
15289 2017-05-04 Alan Hayward <alan.hayward@arm.com>
15290
15291 * frame.c (get_frame_register_bytes): Unwind using value.
15292 (put_frame_register_bytes): Likewise.
15293
15294 2017-03-30 Iain Buclaw <ibuclaw@gdcproject.org>
15295
15296 * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
15297 aggregate-like.
15298
15299 2017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
15300
15301 * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
15302
15303 2017-03-29 Yao Qi <yao.qi@linaro.org>
15304
15305 * gdbthread.h (struct thread_info): Declare constructor and
15306 destructor. Add some in-class member initializers.
15307 * thread.c (free_thread): Remove.
15308 (init_thread_list): Call delete instead of free_thread.
15309 (new_thread): Call thread_info constructor.
15310 (thread_info::thread_info): New function.
15311 (thread_info::~thread_info): New function.
15312 (delete_thread_1): Call delete instead of free_thread.
15313 (make_cleanup_restore_current_thread): Move tp and frame to
15314 inner block.
15315
15316 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
15317
15318 * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
15319 (arc_skip_prologue): Likewise.
15320 (arc_make_frame_cache): Likewise.
15321 (arc_pv_get_operand): New function.
15322 (arc_is_in_prologue): Likewise.
15323 (arc_analyze_prologue): Likewise.
15324 (arc_print_frame_cache): Likewise.
15325 (MAX_PROLOGUE_LENGTH): New constant.
15326
15327 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
15328
15329 * configure.tgt: Add arc-insn.o.
15330 * arc-tdep.c (arc_delayed_print_insn): Make non-static.
15331 (dump_arc_instruction_command): New function.
15332 (arc_fprintf_disasm): Likewise.
15333 (arc_disassemble_info): Likewise.
15334 (arc_insn_get_operand_value): Likewise.
15335 (arc_insn_get_operand_value_signed): Likewise.
15336 (arc_insn_get_memory_base_reg): Likewise.
15337 (arc_insn_get_memory_offset): Likewise.
15338 (arc_insn_get_branch_target): Likewise.
15339 (arc_insn_dump): Likewise.
15340 (arc_insn_get_linear_next_pc): Likewise.
15341 * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
15342 (arc_disassemble_info): Likewise.
15343 (arc_insn_get_branch_target): Likewise.
15344 (arc_insn_get_linear_next_pc): Likewise.
15345 * NEWS: Mention new "maint print arc arc-instruction".
15346
15347 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
15348
15349 * arc-tdep (maintenance_print_arc_list): New variable.
15350 (maintenance_print_arc_command): New function.
15351
15352 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
15353
15354 * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
15355 Add "limm" and "reserved".
15356 (arc_cannot_fetch_register, arc_cannot_store_register): Add
15357 ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
15358 * arc-tdep.h (arc_regnum): Likewise.
15359
15360 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
15361
15362 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
15363 for THREADPTR register.
15364 (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
15365 register.
15366 * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
15367 (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
15368 * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
15369
15370 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
15371
15372 * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
15373 registers above gdbarch_num_regs (gdbarch) as privileged in
15374 call0 ABI.
15375
15376 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
15377
15378 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
15379 for a single specified register or for all registers in
15380 a0_base..a0_base + C0_NREGS range.
15381 (supply_gregset_reg): Call regcache_raw_supply for a single
15382 specified register or for all registers in a0_base..a0_base +
15383 C0_NREGS range.
15384
15385 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
15386
15387 * arch/xtensa.h (C0_NREGS): Add definition.
15388 * xtensa-tdep.c (C0_NREGS): Remove definition.
15389
15390 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
15391
15392 * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
15393 Drop xtensa_default_isa initialization.
15394 (xtensa_gdbarch_init): Initialize xtensa_default_isa.
15395
15396 2017-03-27 Pedro Alves <palves@redhat.com>
15397
15398 * dwarf2read.c (file_entry) <dir_index>: Add comment.
15399 (file_entry::include_dir): New method.
15400 (line_header::include_dir_at, line_header::file_name_at): New
15401 methods.
15402 (setup_type_unit_groups, setup_type_unit_groups)
15403 (psymtab_include_file_name): Simplify using the new methods.
15404 (lnp_state_machine) <the_line_header>: New field.
15405 <file>: Add comment.
15406 (lnp_state_machine::current_file): New method.
15407 (dwarf_record_line): Simplify using the new methods.
15408 (init_lnp_state_machine): Initialize the "the_line_header" field.
15409 (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
15410 Simplify using the new methods.
15411
15412 2017-03-27 Pedro Alves <palves@redhat.com>
15413
15414 * cp-name-parser.y (make_empty): Delete.
15415 (demangler_special, nested_name, ptr_operator, array_indicator)
15416 (direct_declarator, declarator_1): Use fill_comp instead of
15417 make_empty.
15418
15419 2017-03-27 Pedro Alves <palves@redhat.com>
15420
15421 * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
15422 to ATTRIBUTE_PRINTF.
15423 * solib-target.c (library_list_start_list): Print "string" not
15424 "version".
15425 * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
15426 gdb_xml_error call.
15427
15428 2017-03-27 Pedro Alves <palves@redhat.com>
15429
15430 * dwarf2read.c (struct file_and_directory): New.
15431 (dwarf2_get_dwz_file): Adjust to use std::string.
15432 (dw2_get_file_names_reader): Adjust to use file_and_directory.
15433 (find_file_and_directory): Adjust to return a file_and_directory
15434 object.
15435 (read_file_scope): Adjust to use file_and_directory. Remove
15436 make_cleanup/do_cleanups calls.
15437 (open_and_init_dwp_file): Adjust to use std::string. Remove
15438 make_cleanup/do_cleanups calls.
15439 * python/python.c (do_start_initialization): Adjust to ldirname
15440 returning a std::string.
15441 * utils.c (ldirname): Now returns a std::string.
15442 * utils.h (ldirname): Change return type to std::string.
15443 * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
15444 returning a std::string.
15445 * xml-tdesc.c (file_read_description_xml): Likewise.
15446
15447 2017-03-24 Alan Hayward <alan.hayward@arm.com>
15448
15449 * regcache.c (regcache_debug_print_register): New function.
15450 * regcache.h (regcache_debug_print_register): New declaration.
15451 * target.c (debug_print_register): Remove.
15452 (target_fetch_registers): Call regcache_debug_print_register.
15453 (target_store_registers): Likewise.
15454
15455 2017-03-24 Pádraig Brady <pbrady@fb.com>
15456
15457 * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
15458 reference beyond the 'lh->include_dirs' array before accessing to
15459 it.
15460 (psymtab_include_file_name): Likewise.
15461 (dwarf_decode_lines_1): Likewise.
15462 (dwarf_decode_lines): Likewise.
15463 (file_file_name): Likewise.
15464
15465 2017-03-23 Simon Marchi <simon.marchi@ericsson.com>
15466
15467 * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
15468 inferior_ptid.
15469 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
15470 ps_lsetfpregs): Likewise.
15471 * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
15472 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
15473 ps_lsetfpregs): Likewise.
15474 * target.c (target_fetch_registers, target_store_registers):
15475 Remove asserts.
15476
15477 2017-03-23 Alan Hayward <alan.hayward@arm.com>
15478
15479 * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
15480
15481 2017-03-23 Yao Qi <yao.qi@linaro.org>
15482
15483 * aarch64-tdep.c (aarch64_process_record_test): Declare.
15484 (_initialize_aarch64_tdep): Register it.
15485 (aarch64_record_load_store): Handle PRFM instruction.
15486 (aarch64_process_record_test): New function.
15487
15488 2017-03-23 Yao Qi <yao.qi@linaro.org>
15489
15490 * aarch64-tdep.c (aarch64_record_load_store): Fix code
15491 indentation.
15492
15493 2017-03-23 Yao Qi <yao.qi@linaro.org>
15494
15495 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
15496
15497 2017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
15498
15499 python/python.c (do_start_initialization): Fix memory leak.
15500
15501 2017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
15502
15503 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
15504 using get_ptrace_pid.
15505 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
15506 inferior_ptid.
15507 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
15508 inferior_ptid instead of pid.
15509
15510 2017-03-22 Yao Qi <yao.qi@linaro.org>
15511
15512 * aarch64-tdep.c: Wrap locally used classes in anonymous
15513 namespace.
15514 * arm-tdep.c: Likewise.
15515 * linespec.c: Likewise.
15516 * ui-out.c: Likewise.
15517
15518 2017-03-22 Jonah Graham <jonah@kichwacoders.com>
15519
15520 PR gdb/19637
15521 * python/lib/gdb/printer/bound_registers.py: Import sys.
15522
15523 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
15524
15525 * windows-nat.c (do_windows_fetch_inferior_registers): Add
15526 windows_thread_info parameter and use it instead of
15527 current_thread.
15528 (windows_fetch_inferior_registers): Don't set current_thread,
15529 pass the thread to do_windows_fetch_inferior_registers. Use
15530 ptid from regcache instead of inferior_ptid.
15531 (do_windows_store_inferior_registers): Add windows_thread_info
15532 parameter and use it instead of current_thread.
15533 (windows_store_inferior_registers): Don't set current_thread,
15534 pass the thread to do_windows_store_inferior_registers. Use
15535 ptid from regcache instead of inferior_ptid.
15536
15537 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
15538
15539 * ser-mingw.c (ser_windows_raw): Remove reference to
15540 struct serial::current_timeout.
15541
15542 2017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
15543
15544 PR tdep/20928
15545 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
15546 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
15547 (sparc64_fsr_type): Fix %fsr decoding.
15548
15549 2017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
15550
15551 * python/py-record-btrace.c (btpy_insn_data): Change return type
15552 for Python 2.
15553
15554 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
15555
15556 * spu-linux-nat.c (spu_fetch_inferior_registers,
15557 spu_store_inferior_registers): Use ptid from regcache, set and
15558 restore inferior_ptid.
15559 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
15560 Likewise.
15561
15562 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
15563
15564 * i386-linux-nat.c (fetch_register, store_register,
15565 i386_linux_fetch_inferior_registers,
15566 i386_linux_store_inferior_registers): Use ptid from regcache.
15567 * ia64-linux-nat.c (ia64_linux_fetch_register,
15568 ia64_linux_store_register): Likewise.
15569 * inf-ptrace.c (inf_ptrace_fetch_register,
15570 inf_ptrace_store_register): Likewise.
15571 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
15572 m32r_linux_store_inferior_registers): Likewise.
15573 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
15574 m68kbsd_store_inferior_registers): Likewise.
15575 * m68k-linux-nat.c (fetch_register, store_register,
15576 m68k_linux_fetch_inferior_registers,
15577 m68k_linux_store_inferior_registers): Likewise.
15578 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
15579 m88kbsd_store_inferior_registers): Likewise.
15580 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
15581 mips_fbsd_store_inferior_registers): Likewise.
15582 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
15583 mips64_linux_regsets_store_registers): Likewise.
15584 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
15585 mipsnbsd_store_inferior_registers): Likewise.
15586 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
15587 mips64obsd_store_inferior_registers): Likewise.
15588 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
15589 Likewise.
15590 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
15591 ppcfbsd_store_inferior_registers): Likewise.
15592 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
15593 ppc_linux_store_inferior_registers): Likewise.
15594 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
15595 ppcnbsd_store_inferior_registers): Likewise.
15596 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
15597 ppcobsd_store_registers): Likewise.
15598 * procfs.c (procfs_fetch_registers, procfs_store_registers):
15599 Likewise.
15600 * ravenscar-thread.c (ravenscar_fetch_registers,
15601 ravenscar_store_registers, ravenscar_prepare_to_store):
15602 Likewise.
15603 * record-btrace.c (record_btrace_fetch_registers,
15604 record_btrace_store_registers, record_btrace_prepare_to_store):
15605 Likewise.
15606 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
15607 Lookup inferior using ptid from regcache, instead of
15608 current_inferior.
15609 * remote.c (remote_fetch_registers, remote_store_registers): Use
15610 ptid from regcache.
15611 * rs6000-nat.c (fetch_register, store_register): Likewise.
15612 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
15613 s390_linux_store_inferior_registers): Likewise.
15614 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
15615 shnbsd_store_inferior_registers): Likewise.
15616 * sol-thread.c (sol_thread_fetch_registers,
15617 sol_thread_store_registers): Likewise.
15618 * sparc-nat.c (sparc_fetch_inferior_registers,
15619 sparc_store_inferior_registers): Likewise.
15620 * tilegx-linux-nat.c (fetch_inferior_registers,
15621 store_inferior_registers): Likewise.
15622 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
15623 vaxbsd_store_inferior_registers): Likewise.
15624 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
15625 store_xtregs): Likewise.
15626
15627 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15628
15629 PR gdb/14441
15630 * NEWS: Mention support for rvalue references in GDB and python.
15631 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
15632 supports both lvalue and rvalue references.
15633
15634 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15635
15636 PR gdb/14441
15637 * gdbtypes.c (rank_one_type): Implement overloading
15638 resolution rules regarding rvalue references.
15639
15640 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15641
15642 PR gdb/14441
15643 * aarch64-tdep.c (aarch64_type_align)
15644 (aarch64_extract_return_value, aarch64_store_return_value): Change
15645 lvalue reference type checks to general reference type checks.
15646 * amd64-tdep.c (amd64_classify): Likewise.
15647 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
15648 Likewise.
15649 * arm-tdep.c (arm_type_align, arm_extract_return_value)
15650 (arm_store_return_value): Likewise.
15651 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
15652 * c-typeprint.c (c_print_type): Likewise.
15653 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
15654 (cplus_number_of_children, cplus_describe_child): Likewise.
15655 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
15656 * completer.c (expression_completer): Likewise.
15657 * cp-support.c (make_symbol_overload_list_adl_namespace):
15658 Likewise.
15659 * darwin-nat-info.c (info_mach_region_command): Likewise.
15660 * dwarf2loc.c (entry_data_value_coerce_ref)
15661 (value_of_dwarf_reg_entry): Likewise.
15662 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
15663 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
15664 Likewise.
15665 * findvar.c (extract_typed_address, store_typed_address):
15666 Likewise.
15667 * gdbtypes.c (rank_one_type): Likewise.
15668 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
15669 * infcall.c (value_arg_coerce): Likewise.
15670 * language.c (pointer_type): Likewise.
15671 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
15672 Likewise.
15673 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
15674 * mn10300-tdep.c (mn10300_type_align): Likewise.
15675 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
15676 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
15677 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
15678 Likewise.
15679 * printcmd.c (print_formatted, x_command): Likewise.
15680 * python/py-type.c (typy_get_composite, typy_template_argument):
15681 Likewise.
15682 * python/py-value.c (valpy_referenced_value)
15683 (valpy_get_dynamic_type, value_has_field): Likewise.
15684 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
15685 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
15686 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
15687 * spu-tdep.c (spu_scalar_value_p): Likewise.
15688 * symtab.c (lookup_symbol_aux): Likewise.
15689 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
15690 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
15691 Likewise.
15692 * valops.c (value_cast_pointers, value_cast)
15693 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
15694 (value_struct_elt, value_struct_elt_bitpos)
15695 (value_find_oload_method_list, find_overload_match)
15696 (value_rtti_indirect_type): Likewise.
15697 * valprint.c (val_print_scalar_type_p, generic_val_print):
15698 Likewise.
15699 * value.c (value_actual_type, value_as_address, unpack_long)
15700 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
15701 (coerce_ref): Likewise.
15702 * varobj.c (varobj_get_value_type): Likewise.
15703
15704 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15705
15706 PR gdb/14441
15707 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
15708 table of constants.
15709 * python/lib/gdb/command/explore.py: Support exploring values
15710 of rvalue reference types.
15711 * python/lib/gdb/types.py: Implement get_basic_type() for
15712 rvalue reference types.
15713 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
15714 constant.
15715 * python/py-value.c (valpy_getitem): Add an rvalue reference
15716 check.
15717 (valpy_reference_value): Add new parameter "refcode".
15718 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
15719 New wrappers for valpy_reference_value().
15720 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
15721 (gdbpy_invoke_xmethod): Likewise.
15722
15723 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15724
15725 PR gdb/14441
15726 * dwarf2read.c (process_die, read_type_die_1): Handle the
15727 DW_TAG_rvalue_reference_type DIE.
15728 (read_tag_reference_type): Add new parameter "refcode".
15729
15730 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15731
15732 PR gdb/14441
15733 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
15734 (c_type_print_modifier, c_type_print_varspec_suffix)
15735 (c_type_print_base): Support printing rvalue reference types.
15736 * c-valprint.c (c_val_print, c_value_print): Support printing
15737 rvalue reference values.
15738
15739 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15740
15741 PR gdb/14441
15742 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
15743 typename.
15744 * cp-support.c (replace_typedefs): Handle
15745 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
15746 * python/py-type.c (typy_lookup_type): Likewise.
15747
15748 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15749
15750 PR gdb/14441
15751 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
15752 * parse.c (insert_type): Change assert statement.
15753 (follow_types): Handle rvalue reference types.
15754 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
15755 constant.
15756
15757 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15758
15759 PR gdb/14441
15760 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
15761 value_ref() interface.
15762 * c-valprint.c (c_value_print): Likewise.
15763 * infcall.c (value_arg_coerce): Likewise.
15764 * python/py-value.c (valpy_reference_value): Likewise.
15765 * valops.c (value_cast, value_reinterpret_cast)
15766 (value_dynamic_cast, typecmp): Likewise.
15767 (value_ref): Parameterize by kind of return value reference type.
15768 * value.h (value_ref): Add new parameter "refcode".
15769
15770 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15771
15772 PR gdb/14441
15773 * dwarf2read.c (read_tag_reference_type): Use
15774 lookup_lvalue_reference_type() instead of lookup_reference_type().
15775 * eval.c (evaluate_subexp_standard): Likewise.
15776 * f-exp.y: Likewise.
15777 * gdbtypes.c (make_reference_type, lookup_reference_type):
15778 Generalize with rvalue reference types.
15779 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
15780 convenience wrappers for lookup_reference_type().
15781 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
15782 reference kind parameter.
15783 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
15784 wrappers for lookup_reference_type().
15785 * guile/scm-type.c (gdbscm_type_reference): Use
15786 lookup_lvalue_reference_type() instead of lookup_reference_type().
15787 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
15788 * parse.c (follow_types): Likewise.
15789 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
15790 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
15791 Likewise.
15792 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
15793 (gdbpy_invoke_xmethod): Likewise.
15794 * stabsread.c: Provide extra argument to make_reference_type()
15795 call.
15796 * valops.c (value_ref, value_rtti_indirect_type): Use
15797 lookup_lvalue_reference_type() instead of lookup_reference_type().
15798
15799 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15800
15801 PR gdb/14441
15802 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
15803 (TYPE_IS_REFERENCE): New macro.
15804 (struct type): Add rvalue_reference_type field.
15805 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
15806
15807 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
15808
15809 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
15810 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
15811 New function definition.
15812 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
15813 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
15814 New function declaration.
15815 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
15816 * mi/mi-interp.h: New file.
15817 * solib.c (info_sharedlibrary_command): Replace for loop with
15818 ALL_SO_LIBS macro
15819 * solib.h (update_solib_list): New function declaration.
15820 (so_list_head): Move macro.
15821 * solist.h (ALL_SO_LIBS): New macro.
15822
15823 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
15824
15825 * infcmd.c (post_create_inferior): Remove unused argument in
15826 call to solib_add.
15827 * remote.c (remote_start_remote): Likewise.
15828 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
15829 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
15830 (enable_break): Likewise.
15831 * solib.c (update_solib_list): Remove unused target argument
15832 and its documentation.
15833 (solib_add): Remove unused target argument. Remove unused
15834 argument in call to update_solib_list.
15835 (info_sharedlibrary_command): Remove unused argument in call
15836 to update_solib_list.
15837 (sharedlibrary_command): Remove unused argument in call to
15838 solib_add.
15839 (handle_solib_event): Likewise.
15840 (reload_shared_libraries): Likewise.
15841 * solib.h (solib_add): Remove unused target argument.
15842
15843 2017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
15844
15845 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
15846 (s390_displaced_step_fixup): Cover relative branches with the
15847 default fixup handling. This fixes lack of support for some
15848 relative branch instructions.
15849
15850 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15851
15852 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
15853 ptid from regcache.
15854
15855 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15856
15857 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
15858 i386_darwin_store_inferior_registers): Use ptid from regcache.
15859
15860 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15861
15862 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
15863 i386bsd_store_inferior_registers): Use ptid from regcache.
15864
15865 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15866
15867 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
15868 hppaobsd_store_registers): Use ptid from regcache.
15869
15870 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15871
15872 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
15873 hppanbsd_store_registers): Use ptid from regcache.
15874
15875 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15876
15877 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
15878 from regcache. Use get_ptrace_pid.
15879
15880 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15881
15882 * corelow.c (get_core_register_section): Use ptid from regcache,
15883 update doc.
15884
15885 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15886
15887 * bsd-uthread.c (bsd_uthread_fetch_registers,
15888 bsd_uthread_store_registers): Use ptid from regcache, set and
15889 restore inferior_ptid.
15890
15891 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15892
15893 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
15894 fetch_fp_regs, store_register, store_regs, store_fp_register,
15895 store_fp_regs): Use ptid from regcache.
15896
15897 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15898
15899 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
15900 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
15901 store_vfp_regs): Use ptid from regcache.
15902
15903 2017-03-17 Pedro Alves <palves@redhat.com>
15904
15905 PR remote/21188
15906 * ser-base.c (ser_base_wait_for): Add comment.
15907 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
15908 version.
15909 * ser-unix.c (hardwire_raw): Remove reference to
15910 scb->current_timeout.
15911 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
15912 (hardwire_ops): Install ser_base_readchar instead of
15913 hardwire_readchar.
15914 * serial.h (struct serial) <current_timeout, timeout_remaining>:
15915 Remove fields.
15916
15917 2017-03-17 Jonah Graham <jonah@kichwacoders.com>
15918
15919 PR gdb/19637
15920 * python/lib/gdb/printer/bound_registers.py: Add support for
15921 Python 3.
15922
15923 2017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
15924
15925 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
15926 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
15927 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
15928 byte_offset to subobj_byte_offset. Fix the handling of
15929 DWARF_VALUE_STACK on big-endian targets when coming via an
15930 implicit pointer.
15931 (dwarf2_evaluate_loc_desc): Adjust call to
15932 dwarf2_evaluate_loc_desc_full.
15933 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
15934 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
15935
15936 2017-03-16 Yao Qi <yao.qi@linaro.org>
15937
15938 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
15939 and REVSH instructions.
15940
15941 2017-03-16 Yao Qi <yao.qi@linaro.org>
15942
15943 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
15944 (arm_record_test): Declare.
15945 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
15946 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
15947 align with the manual.
15948 (thumb_record_misc): Adjust the code order to align with the
15949 manual.
15950 (thumb2_record_decode_insn_handler): Fix instruction matching.
15951 (instruction_reader_thumb): New class.
15952 (arm_record_test): New function.
15953
15954 2017-03-16 Yao Qi <yao.qi@linaro.org>
15955
15956 * arm-tdep.c (abstract_memory_reader): New class.
15957 (instruction_reader): New class.
15958 (extract_arm_insn): Add argument 'reader'. Callers updated.
15959 (decode_insn): Likewise.
15960
15961 2017-03-16 Doug Evans <dje@google.com>
15962
15963 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
15964 member. Change type of TYPE member to SCM. All uses updated.
15965 (lsscm_make_lazy_string_smob): Add assert.
15966 (lsscm_make_lazy_string): Flag bad length values.
15967 (lsscm_elt_type): New function.
15968 (gdbscm_lazy_string_to_value): Rewrite to use
15969 lsscm_safe_lazy_string_to_value.
15970 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
15971 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
15972 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
15973 in incoming type.
15974 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
15975 * guile/scm-type.c (tyscm_scm_to_type): New function.
15976
15977 2017-03-15 Doug Evans <dje@google.com>
15978
15979 PR python/17728, python/18439, python/18779
15980 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
15981 member. Change type of TYPE member to PyObject *. All uses updated.
15982 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
15983 (gdbpy_create_lazy_string_object): Flag bad length values.
15984 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
15985 Handle typedefs in incoming type.
15986 (stpy_lazy_string_elt_type): New function.
15987 (gdbpy_extract_lazy_string): Call it.
15988 * python/py-value.c (valpy_lazy_string): Flag bad length values.
15989 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
15990 typedefs in incoming type.
15991
15992 2017-03-16 Doug Evans <dje@google.com>
15993
15994 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
15995 * guile/scm-type.c (tyscm_scm_to_type): New function.
15996
15997 2017-03-16 Jiong Wang <jiong.wang@arm.com>
15998
15999 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
16000 "ULONGEST" for "skip".
16001
16002 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
16003
16004 PR gdb/21220
16005 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
16006 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
16007 (inf_ptrace_peek_poke): ...here. New function. Now also loop
16008 over ptrace peek/poke until end of buffer or error.
16009
16010 2017-03-14 Simon Marchi <simon.marchi@ericsson.com>
16011
16012 * parse.c (length_of_subexp): Make static.
16013 * parser-defs.h (length_of_subexp): Remove.
16014
16015 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
16016
16017 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
16018 as well.
16019
16020 2017-03-14 Pedro Alves <palves@redhat.com>
16021
16022 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
16023 (main): Use std::unique_ptr. Remove calls to
16024 cp_demangled_name_parse_free.
16025
16026 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
16027
16028 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
16029 alphabsd_store_inferior_registers): Use regcache->ptid instead
16030 of inferior_ptid.
16031
16032 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
16033
16034 * aix-thread.c (aix_thread_fetch_registers,
16035 aix_thread_store_registers): Use regcache->ptid instead of
16036 inferior_ptid.
16037
16038 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
16039
16040 * aarch64-linux-nat.c (fetch_gregs_from_thread,
16041 store_gregs_to_thread, fetch_fpregs_from_thread,
16042 store_fpregs_to_thread): Use regcache->ptid instead of
16043 inferior_ptid.
16044
16045 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
16046
16047 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
16048 amd64_linux_fetch_inferior_registers): Use regcache->ptid
16049 instead of inferior_ptid.
16050
16051 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
16052
16053 * target.c (target_fetch_registers, target_store_registers): Add
16054 assert.
16055
16056 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
16057
16058 * regcache.h (regcache_get_ptid): New function.
16059 * regcache.c (regcache_get_ptid): New function.
16060
16061 2017-03-13 Mark Wielaard <mark@klomp.org>
16062
16063 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
16064
16065 2017-03-10 Keith Seitz <keiths@redhat.com>
16066
16067 PR c++/8218
16068 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
16069
16070 2017-03-08 Pedro Alves <palves@redhat.com>
16071
16072 PR gdb/18360
16073 * infrun.c (start_step_over, do_target_resume, resume)
16074 (restart_threads): Assert we're not resuming a thread that is
16075 meant to be stopped.
16076 (infrun_thread_stop_requested_callback): Delete.
16077 (infrun_thread_stop_requested): If the thread is internally
16078 stopped, queue a pending stop event and clear the thread's
16079 inline-frame state.
16080 (handle_stop_requested): New function.
16081 (handle_syscall_event, handle_inferior_event_1): Use
16082 handle_stop_requested.
16083 (handle_stop_requested): New function.
16084 (handle_signal_stop): Set the thread's stop_signal here instead of
16085 at caller.
16086 (finish_step_over): Clear step over info unconditionally.
16087 (handle_signal_stop): If the user had interrupted the event
16088 thread, consider the stop a random signal.
16089 (handle_signal_stop) <signal arrived while stepping over
16090 breakpoint>: Don't restart threads here.
16091 (stop_waiting): Don't clear step-over info here.
16092
16093 2017-03-08 Pedro Alves <palves@redhat.com>
16094
16095 PR 21206
16096 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
16097 goes to argument 2, not 1.
16098
16099 2017-03-08 Pedro Alves <palves@redhat.com>
16100
16101 PR cli/21218
16102 * top.c (gdb_readline_wrapper): Avoid passing NULL to
16103 display_gdb_prompt.
16104 (command_line_input): Add comment.
16105
16106 2017-03-08 Pedro Alves <palves@redhat.com>
16107
16108 PR tui/21216
16109 * tui/tui-file.c (tui_file::write): New.
16110 * tui/tui-file.h (tui_file): Override "write".
16111 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
16112 factored out from ...
16113 (tui_puts): ... here.
16114 (tui_putc): Use them.
16115 (tui_write): New function.
16116 * tui/tui-io.h (tui_write): Declare.
16117
16118 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
16119
16120 * Makefile.in (SFILES): Replace "environ.c" with
16121 "common/environ.c".
16122 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
16123 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
16124 to...
16125 * common/environ.c: ... here.
16126 * environ.h: Moved to...
16127 * common/environ.h: ... here.
16128
16129 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
16130
16131 * gdbarch.sh (pstring_ptr): New static function.
16132 (gdbarch_disassembler_options): Use it.
16133 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
16134 not valid_disassembler_option->name.
16135 * gdbarch.c: Regenerate.
16136
16137 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
16138
16139 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
16140
16141 2017-03-07 Pedro Alves <palves@redhat.com>
16142
16143 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
16144
16145 2017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
16146
16147 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
16148 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
16149 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
16150 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
16151
16152 2017-03-06 Simon Marchi <simon.marchi@ericsson.com>
16153
16154 * xtensa-linux-nat.c (fetch_gregs): Remove const.
16155
16156 2017-03-03 Simon Marchi <simon.marchi@ericsson.com>
16157
16158 * remote.c (remote_add_target_side_commands): Use range-based
16159 for loop.
16160
16161 2017-03-03 Yao Qi <yao.qi@linaro.org>
16162
16163 PR gdb/21165
16164 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
16165 value is lazy.
16166 * valprint.c (common_val_print): Likewise.
16167
16168 2017-02-28 Peter Bergner <bergner@vnet.ibm.com>
16169
16170 * NEWS: Mention new set/show disassembler-options commands.
16171 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
16172 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
16173 (prospective_options): New static variable.
16174 (gdb_disassembler::gdb_disassembler): Initialize
16175 m_di.disassembler_options.
16176 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
16177 (get_disassembler_options): New function.
16178 (set_disassembler_options): Likewise.
16179 (set_disassembler_options_sfunc): Likewise.
16180 (show_disassembler_options_sfunc): Likewise.
16181 (disassembler_options_completer): Likewise.
16182 (_initialize_disasm): Likewise.
16183 * disasm.h (get_disassembler_options): New prototype.
16184 (set_disassembler_options): Likewise.
16185 * gdbarch.sh (gdbarch_disassembler_options): New variable.
16186 (gdbarch_verify_disassembler_options): Likewise.
16187 * gdbarch.c: Regenerate.
16188 * gdbarch.h: Likewise.
16189 * arm-tdep.c (num_disassembly_options): Delete.
16190 (set_disassembly_style): Likewise.
16191 (arm_disassembler_options): New static variable.
16192 (set_disassembly_style_sfunc): Convert short style name into long
16193 option name. Call set_disassembler_options.
16194 (show_disassembly_style_sfunc): New function.
16195 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
16196 set_gdbarch_verify_disassembler_options.
16197 (_initialize_arm_tdep): Delete regnames variable and update callers.
16198 (arm_disassembler_options): Initialize.
16199 (disasm_options): New variable.
16200 (num_disassembly_options): Rename from this...
16201 (num_disassembly_styles): ...to this. Compute by scanning through
16202 disasm_options.
16203 (valid_disassembly_styles): Initialize using disasm_options.
16204 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
16205 set_arm_regname_option.
16206 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
16207 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
16208 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
16209 set_gdbarch_verify_disassembler_options.
16210 * s390-tdep.c (s390_disassembler_options): New static variable.
16211 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
16212 set_gdbarch_verify_disassembler_options.
16213
16214 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
16215
16216 * remote.c (remote_add_target_side_condition): Remove "struct"
16217 keyword from range-based for loop.
16218
16219 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
16220
16221 * remote.c (remote_add_target_side_condition): Use range-based
16222 for loop. Update comment.
16223
16224 2017-02-27 Yao Qi <yao.qi@linaro.org>
16225
16226 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
16227
16228 2017-02-26 Alan Hayward <alan.hayward@arm.com>
16229
16230 * regcache.c (regcache_raw_update): New function.
16231 (regcache_raw_read): Move code to regcache_raw_update.
16232 * regcache.h (regcache_raw_update): New declaration.
16233 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
16234
16235 2017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
16236
16237 * dwarf2read.c (create_debug_type_hash_table): Initialize
16238 header.signature and header.type_offset_in_tu.
16239
16240 2017-02-24 Pedro Alves <palves@redhat.com>
16241
16242 * symtab.c (make_file_symbol_completion_list_1): Use
16243 add_symtab_completions.
16244
16245 2017-02-24 Alan Hayward <alan.hayward@arm.com>
16246
16247 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
16248
16249 2017-02-24 Alan Hayward <alan.hayward@arm.com>
16250
16251 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
16252 I386_MAX_REGISTER_SIZE.
16253 (i386_pseudo_register_write): Likewise.
16254 (i386_process_record): Likewise.
16255 * i387-tdep.c (i387_supply_xsave): Likewise.
16256 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
16257 (store_register): Likewise.
16258
16259 2017-02-23 Pedro Alves <palves@redhat.com>
16260
16261 * ada-lang.c: Include "common/function-view.h".
16262 (ada_iterate_over_symbols): Adjust to use function_view as
16263 callback type.
16264 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
16265 (ada_make_symbol_completion_list): Use a lambda.
16266 (ada_exc_search_name_matches): Delete.
16267 (name_matches_regex): New.
16268 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
16269 * compile/compile-c-support.c: Include "common/function-view.h".
16270 (print_one_macro): Change prototype to accept a ui_file pointer.
16271 (write_macro_definitions): Use a lambda.
16272 * dwarf2read.c: Include "common/function-view.h".
16273 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
16274 (dw2_expand_symtabs_matching): Adjust to use function_view as
16275 callback type.
16276 * language.h: Include "common/function-view.h".
16277 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
16278 function_view as callback type.
16279 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
16280 * linespec.c: Include "common/function-view.h".
16281 (collect_info::add_symbol): New method.
16282 (struct symbol_and_data_callback, iterate_inline_only, struct
16283 symbol_matcher_data, iterate_name_matcher): Delete.
16284 (iterate_over_all_matching_symtabs): Adjust to use function_view
16285 as callback type and lambdas.
16286 (iterate_over_file_blocks): Adjust to use function_view as
16287 callback type.
16288 (decode_compound_collector): Now a class with private fields.
16289 (decode_compound_collector::release_symbols): New method.
16290 (collect_one_symbol): Rename to...
16291 (decode_compound_collector::operator()): ... this and adjust.
16292 (lookup_prefix_sym): decode_compound_collector construction bits
16293 move to decode_compound_collector ctor. Pass the
16294 decode_compound_collector object directly as callback. Remove
16295 cleanups and use decode_compound_collector::release_symbols
16296 instead.
16297 (symtab_collector): Now a class with private fields.
16298 (symtab_collector::release_symtabs): New method.
16299 (add_symtabs_to_list): Rename to...
16300 (symtab_collector::operator()): ... this and adjust.
16301 (collect_symtabs_from_filename): symtab_collector construction
16302 bits move to symtab_collector ctor. Pass the symtab_collector
16303 object directly as callback. Remove cleanups and use
16304 symtab_collector::release_symtabs instead.
16305 (collect_symbols): Delete.
16306 (add_matching_symbols_to_info): Use lambdas.
16307 * macrocmd.c (print_macro_callback): Delete.
16308 (info_macro_command): Use a lambda.
16309 (info_macros_command): Pass print_macro_definition as callable
16310 directly.
16311 (print_one_macro): Remove 'ignore' parameter.
16312 (macro_list_command): Adjust.
16313 * macrotab.c (macro_for_each_data::fn): Now a function_view.
16314 (macro_for_each_data::user_data): Delete field.
16315 (foreach_macro): Adjust to call the function_view.
16316 (macro_for_each): Adjust to use function_view as callback type.
16317 (foreach_macro_in_scope): Adjust to call the function_view.
16318 (macro_for_each_in_scope): Adjust to use function_view as callback
16319 type.
16320 * macrotab.h: Include "common/function-view.h".
16321 (macro_callback_fn): Declare a prototype instead of a pointer.
16322 Remove "user_data" parameter.
16323 (macro_for_each, macro_for_each_in_scope): Adjust to use
16324 function_view as callback type.
16325 * psymtab.c (partial_map_expand_apply)
16326 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
16327 Adjust to use function_view as callback type and to return bool.
16328 (psym_expand_symtabs_matching): Adjust to use function_view as
16329 callback types.
16330 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
16331 to use function_view as callback type and to return bool.
16332 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
16333 callback types.
16334 * symfile.c (expand_symtabs_matching): Adjust to use function_view
16335 as callback types.
16336 * symfile.h: Include "common/function-view.h".
16337 (expand_symtabs_file_matcher_ftype)
16338 (expand_symtabs_symbol_matcher_ftype)
16339 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
16340 return bool.
16341 (quick_symbol_functions::map_symtabs_matching_filename)
16342 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
16343 function_view as callback type and return bool.
16344 (expand_symtabs_matching): Adjust to use function_view as callback
16345 type.
16346 (maintenance_expand_name_matcher)
16347 (maintenance_expand_file_matcher): Delete.
16348 (maintenance_expand_symtabs): Use lambdas.
16349 * symtab.c (iterate_over_some_symtabs): Adjust to use
16350 function_view as callback types and return bool.
16351 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
16352 of a cleanup.
16353 (lookup_symtab_callback): Delete.
16354 (lookup_symtab): Use a lambda.
16355 (iterate_over_symbols): Adjust to use function_view as callback
16356 type.
16357 (struct search_symbols_data, search_symbols_file_matches)
16358 (search_symbols_name_matches): Delete.
16359 (search_symbols): Use a pair of lambdas.
16360 (struct add_name_data, add_macro_name, symbol_completion_matcher)
16361 (symtab_expansion_callback): Delete.
16362 (default_make_symbol_completion_list_break_on_1): Use lambdas.
16363 * symtab.h: Include "common/function-view.h".
16364 (iterate_over_some_symtabs): Adjust to use function_view as
16365 callback type and return bool.
16366 (iterate_over_symtabs): Adjust to use function_view as callback
16367 type.
16368 (symbol_found_callback_ftype): Remove 'data' parameter and return
16369 bool.
16370 (iterate_over_symbols): Adjust to use function_view as callback
16371 type.
16372
16373 2017-02-23 Pedro Alves <palves@redhat.com>
16374
16375 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
16376 (%.o) <unittests/%.c>: New pattern.
16377 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
16378 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
16379 * common/function-view.h: New file.
16380 * unittests/function-view-selftests.c: New file.
16381 * configure: Regenerate.
16382
16383 2017-02-23 Simon Marchi <simon.marchi@ericsson.com>
16384
16385 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
16386 inferior_ptid.
16387 * go32-nat.c (go32_thread_alive): Likewise.
16388
16389 2017-02-23 Yao Qi <yao.qi@linaro.org>
16390
16391 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
16392 delete.
16393
16394 2017-02-23 Yao Qi <yao.qi@linaro.org>
16395
16396 * varobj.c (varobj_clear_saved_item): Use delete instead of
16397 xfree.
16398 (update_dynamic_varobj_children): Likewise.
16399
16400 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
16401
16402 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
16403
16404 2017-02-21 Simon Marchi <simon.marchi@ericsson.com>
16405
16406 * common/enum-flags.h (enum_flags::enum_flags): Initialize
16407 m_enum_value to 0 in default constructor.
16408
16409 2017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
16410
16411 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
16412 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
16413 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
16414 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
16415 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
16416 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
16417 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
16418 IS_STORE_CONDITIONAL_INSN.
16419
16420 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
16421
16422 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
16423
16424 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16425
16426 * NEWS (Changes since GDB 7.12): Add DWARF-5.
16427
16428 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16429
16430 * dwarf2read.c (skip_one_die, read_attribute_value)
16431 (dwarf2_const_value_attr, dump_die_shallow)
16432 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
16433 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
16434
16435 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16436
16437 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
16438 (dwarf_parse_macro_header): Accept DWARF version 5.
16439 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
16440
16441 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16442
16443 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
16444 DW_AT_GNU_*.
16445 * common/common-exceptions.h (enum errors): Likewise.
16446 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
16447 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
16448 (dwarf_expr_context::execute_stack_op): Likewise.
16449 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
16450 Likewise.
16451 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
16452 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
16453 (show_entry_values_debug, call_site_to_target_addr)
16454 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
16455 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
16456 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
16457 (value_of_dwarf_block_entry, indirect_pieced_value)
16458 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
16459 (disassemble_dwarf_expression): Likewise.
16460 * dwarf2read.c (process_die, inherit_abstract_dies)
16461 (read_call_site_scope): Likewise.
16462 * gdbtypes.h (struct func_type, struct call_site_parameter)
16463 (struct call_site): Likewise.
16464 * stack.c (read_frame_arg): Likewise.
16465 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
16466
16467 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16468
16469 * defs.h (read_unsigned_leb128): New declaration.
16470 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
16471 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
16472 (dwarf2_find_location_expression): Call also
16473 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
16474 * dwarf2loc.h (dwarf2_version): New declaration.
16475 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
16476 rnglists.
16477 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
16478 .debug_rnglists.
16479 (struct dwop_section_names): Add loclists_dwo.
16480 (dwop_section_names): Add .debug_loclists.dwo.
16481 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
16482 (struct dwarf2_per_cu_data): Add dwarf_version.
16483 (struct dwo_sections): Add loclists.
16484 (struct attr_abbrev): Add implicit_const.
16485 (read_indirect_line_string): New declaration.
16486 (read_unsigned_leb128): Delete declaration.
16487 (rcuh_kind): New definition.
16488 (read_and_check_comp_unit_head): Change parameter
16489 is_debug_types_section to section_kind.
16490 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
16491 (read_comp_unit_head): Change parameter abfd to section, add parameter
16492 section_kind. Handle DWARF-5.
16493 (error_check_comp_unit_head): Accept also DWARF version 5.
16494 (read_and_check_comp_unit_head): Change parameter
16495 is_debug_types_section to section_kind.
16496 (read_and_check_type_unit_head): Delete function.
16497 (read_abbrev_offset): Handle DWARF-5.
16498 (create_debug_type_hash_table): Add parameter section_kind. Process
16499 only DW_UT_type. Use signature and type_offset_in_tu from struct
16500 comp_unit_head.
16501 (create_debug_types_hash_table): Update create_debug_type_hash_table
16502 caller.
16503 (create_all_type_units): Call create_debug_type_hash_table.
16504 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
16505 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
16506 caller.
16507 (skip_one_die): Handle DW_FORM_implicit_const.
16508 (dwarf2_rnglists_process): New function.
16509 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
16510 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
16511 (read_attribute_value): Handle DW_FORM_implicit_const,
16512 DW_FORM_line_strp.
16513 (read_attribute): Handle DW_FORM_implicit_const.
16514 (read_indirect_string_at_offset_from): New function from
16515 read_indirect_string_at_offset.
16516 (read_indirect_string_at_offset): Call
16517 read_indirect_string_at_offset_from.
16518 (read_indirect_line_string_at_offset): New function.
16519 (read_indirect_string): New function comment.
16520 (read_indirect_line_string): New function.
16521 (read_unsigned_leb128): Make it global.
16522 (dwarf2_string_attr): Handle DWARF-5.
16523 (add_include_dir_stub, read_formatted_entries): New functions.
16524 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
16525 Handle DWARF-5.
16526 (per_cu_header_read_in): Update read_comp_unit_head caller.
16527 (dwarf2_version): New function.
16528 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
16529 rnglists.
16530 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
16531 fields.
16532
16533 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16534
16535 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
16536
16537 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16538
16539 * dwarf2read.c (dwarf2_ranges_process): New function from
16540 dwarf2_ranges_read.
16541 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
16542 dwarf2_ranges_process.
16543
16544 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16545
16546 * dwarf2read.c (create_debug_type_hash_table): New function from
16547 create_debug_types_hash_table.
16548 (create_debug_types_hash_table): Call create_debug_type_hash_table.
16549 (create_all_type_units, open_and_init_dwo_file): Update
16550 create_debug_types_hash_table callers.
16551
16552 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
16553
16554 PR gdb/16188
16555 * fork-child.c (trace_start_error): Fix thinko. va_end should
16556 refer to 'ap', not 'args'.
16557
16558 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
16559 Pedro Alves <palves@redhat.com>
16560
16561 PR gdb/16188
16562 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
16563 calls succeeded.
16564 * fork-child.c (trace_start_error): New function.
16565 (trace_start_error_with_name): Likewise.
16566 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
16567 * inf-ptrace.c (inf_ptrace_me): Likewise.
16568 * inferior.h (trace_start_error): New prototype.
16569 (trace_start_error_with_name): Likewise.
16570
16571 2017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
16572
16573 PR gdb/21164
16574 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
16575 NULL before using it.
16576 * symmisc.c (maintenance_print_symbols): Likewise.
16577 (maintenance_print_msymbols): Likewise.
16578
16579 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16580
16581 * NEWS: Add record Python bindings entry.
16582
16583 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16584
16585 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
16586 py-record-full.o.
16587 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
16588 * python/py-record-btrace.c, python/py-record-btrace.h,
16589 python/py-record-full.c, python/py-record-full.h: New file.
16590 * python/py-record.c: Add include for py-record-btrace.h and
16591 py-record-full.h.
16592 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
16593 recpy_instruction_history, recpy_function_call_history, recpy_begin,
16594 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
16595 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
16596 New definition.
16597 (gdbpy_initialize_btrace): New export.
16598 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
16599
16600 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16601
16602 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
16603 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
16604 * python/py-record.c: New file.
16605 * python/python-internal.h (gdbpy_start_recording,
16606 gdbpy_current_recording, gdpy_stop_recording,
16607 gdbpy_initialize_record): New export.
16608 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
16609 (python_GdbMethods): Add gdbpy_start_recording,
16610 gdbpy_current_recording and gdbpy_stop_recording.
16611
16612 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16613
16614 * record-btrace.c (record_btrace_record_method): New function.
16615 (init_record_btrace_ops): Initialize to_record_method.
16616 * record-full.c (record_full_record_method): New function.
16617 (init_record_full_ops, init_record_full_core_ops): Add
16618 record_full_record_method.
16619 * record.h (enum record_method): New enum.
16620 * target-debug.h (target_debug_print_enum_record_method: New define.
16621 * target-delegates.c: Regenerate.
16622 * target.c (target_record_method): New function.
16623 * target.h: Include record.h.
16624 (struct target_ops) <to_record_method>: New field.
16625 (target_record_method): New export.
16626
16627 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16628
16629 * record.h (record_start, record_stop): New export.
16630 * record.c (record_start, record_stop): New function.
16631
16632 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16633
16634 * btrace.c (btrace_fetch): Copy function call segments pointer
16635 into a vector.
16636 (btrace_clear): Clear the vector.
16637 (btrace_find_insn_by_number): Use binary search to find the correct
16638 function call segment.
16639 * btrace.h (brace_fun_p): New typedef.
16640 (struct btrace_thread_info) <functions>: New field.
16641
16642 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16643
16644 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
16645 * btrace.c (btrace_decode_error): ... here. New function.
16646 * btrace.h (btrace_decode_error): New export.
16647
16648 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16649
16650 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
16651 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
16652 btrace_find_insn_by_number): Remove special case for gaps.
16653 * btrace.h (btrace_insn_get_error): New export.
16654 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
16655 * record-btrace.c (btrace_insn_history): Print number for gaps.
16656 (record_btrace_info, record_btrace_goto): Handle gaps.
16657
16658 2017-02-14 Tom Tromey <tom@tromey.com>
16659
16660 PR python/13598:
16661 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
16662 event.
16663 * python/py-evts.c (gdbpy_initialize_py_events): Add
16664 before_prompt registry.
16665 * python/py-events.h (events_object) <before_prompt>: New field.
16666
16667 2017-02-14 Markus Metzger <markus.t.metzger@intel.com>
16668
16669 * btrace.c (ftrace_new_switch): Preserve up link and flags.
16670
16671 2017-02-13 Luis Machado <lgustavo@codesourcery.com>
16672
16673 * symfile (_initialize_symfile): Add usage text to the load command's
16674 help text.
16675
16676 2017-02-10 Simon Marchi <simon.marchi@ericsson.com>
16677
16678 * utils.c (defaulted_query): Don't query on secondary UIs.
16679
16680 2017-02-10 Tom Tromey <tom@tromey.com>
16681
16682 * rust-lang.c (rust_get_disr_info): Remove unused variable.
16683
16684 2017-02-10 Tom Tromey <tom@tromey.com>
16685
16686 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
16687 "cleanup" local.
16688 * python/py-type.c (typy_legacy_template_argument): Remove
16689 unnecessary "cleanup" local.
16690
16691 2017-02-10 Tom Tromey <tom@tromey.com>
16692
16693 * python/python.c (do_start_initialization): New function, from
16694 _initialize_python.
16695 (_initialize_python): Call do_start_initialization.
16696 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
16697 goto.
16698
16699 2017-02-10 Tom Tromey <tom@tromey.com>
16700
16701 * python/py-prettyprint.c (pretty_print_one_value): Use
16702 gdbpy_ref.
16703
16704 2017-02-10 Tom Tromey <tom@tromey.com>
16705
16706 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
16707 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
16708 gdbpy_ref.
16709 * python/py-type.c (field_new): Use gdbpy_ref.
16710 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
16711 gdbpy_ref.
16712 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
16713 (py_free_pspace): Likewise.
16714 (pspace_to_pspace_object): Likewise.
16715 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
16716 (py_free_objfile): Likewise.
16717 (objfile_to_objfile_object): Likewise.
16718 * python/py-inferior.c (delete_thread_object): Use
16719 gdbpy_ref.
16720 (infpy_read_memory): Likewise.
16721 (py_free_inferior): Likewise.
16722 * python/py-evtregistry.c (create_eventregistry_object): Use
16723 gdbpy_ref.
16724 * python/py-event.c (create_event_object): Use gdbpy_ref.
16725
16726 2017-02-10 Tom Tromey <tom@tromey.com>
16727
16728 * python/py-ref.h (gdbpy_ref_policy): Now a template.
16729 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
16730 used.
16731 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
16732 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
16733 python/py-exitedevent.c, python/py-finishbreakpoint.c,
16734 python/py-framefilter.c, python/py-function.c,
16735 python/py-inferior.c, python/py-infevents.c,
16736 python/py-linetable.c, python/py-newobjfileevent.c,
16737 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
16738 python/py-signalevent.c, python/py-stopevent.c,
16739 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
16740 python/py-unwind.c, python/py-utils.c, python/py-value.c,
16741 python/py-varobj.c, python/py-xmethods.c, python/python.c,
16742 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
16743
16744 2017-02-10 Tom Tromey <tom@tromey.com>
16745
16746 * ui-out.h (ui_out_emit_type): New class.
16747 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
16748 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
16749 and ui_out_emit_tuple.
16750 (enumerate_locals): Likewise.
16751 (py_mi_print_variables, py_print_locals, py_print_args): Use
16752 ui_out_emit_list.
16753 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
16754 ui_out_emit_list.
16755 * common/gdb_optional.h: New file.
16756
16757 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
16758
16759 * MAINTAINERS (Write After Approval): Update my e-mail address.
16760
16761 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
16762
16763 PR gdb/21122
16764 * breakpoint.c (_initialize_breakpoint): Update the help description
16765 of the 'commands' command to indicate that it takes a list argument.
16766
16767 2017-02-09 Simon Marchi <simon.marchi@ericsson.com>
16768
16769 * interps.c (current_interp_set_logging): Remove "return".
16770
16771 2017-02-09 Gary Benson <gbenson@redhat.com>
16772
16773 * symtab.c (add_symtab_completions): Prevent NULL pointer
16774 dereference.
16775
16776 2017-02-08 Pedro Alves <palves@redhat.com>
16777
16778 * interps.c (interp::interp): Remove reference to quiet_p.
16779 (interp_set): Make static. Remove dead "Switching to" output
16780 code.
16781 (interp_quiet_p, interp_set_quiet): Delete.
16782 (interpreter_exec_cmd): Don't set the interpreter quiet.
16783 * interps.h (interp_quiet_p): Make static.
16784 (class interp) <quiet_p>: Remove field
16785
16786 2017-02-08 Jerome Guitton <guitton@adacore.com>
16787
16788 * cli/cli-decode.c (find_command_name_length): Make it extern.
16789 * cli/cli-decode.h (find_command_name_length): Declare.
16790 * cli/cli-script.c (command_name_equals, line_first_arg):
16791 New functions.
16792 (process_next_line): Use cli-decode to parse command names.
16793 (build_command_line): Make args a constant pointer.
16794
16795 2017-02-08 Jerome Guitton <guitton@adacore.com>
16796
16797 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
16798 Remove case-insensitive search.
16799
16800 2017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
16801
16802 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
16803 at the end of the line. Avoids an ARI warning.
16804
16805 2017-02-06 Luis Machado <lgustavo@codesourcery.com>
16806
16807 * NEWS: Mention support for record/replay of Intel 64 rdrand and
16808 rdseed instructions.
16809 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
16810
16811 2017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
16812
16813 PR tdep/20936
16814 Provide and use sparc32 and sparc64 target description XML files.
16815 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
16816 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
16817 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
16818 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
16819 * features/sparc/sparc32-solaris.xml: New file.
16820 * features/sparc/sparc64-solaris.xml: New file.
16821 * features/sparc/sparc32-solaris.c: Generated.
16822 * features/sparc/sparc64-solaris.c: Generated.
16823 * sparc-tdep.h: Account for differences in target descriptions.
16824 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
16825 (sparc32_register_type): Use target provided registers.
16826 (validate_tdesc_registers): New function.
16827 (sparc32_gdbarch_init): Use tdesc_has_registers.
16828 Set pseudoregister functions.
16829 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
16830 (sparc64_register_type): Use target provided registers.
16831 (sparc64_init_abi): Set pseudoregister functions.
16832
16833 2017-02-03 Tom Tromey <tom@tromey.com>
16834
16835 PR rust/21097:
16836 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
16837 with a single member.
16838
16839 2017-02-03 Pedro Alves <palves@redhat.com>
16840
16841 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
16842 (cli_interp_base::~cli_interp_base): New.
16843 (cli_interp): New struct.
16844 (as_cli_interp): Cast the interp itself to cli_interp.
16845 (cli_interpreter_pre_command_loop): Rename to ...
16846 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
16847 parameter.
16848 (cli_interpreter_init): Rename to ...
16849 (cli_interp::init): ... this. Remove 'self' parameter. Use
16850 boolean. Make extern.
16851 (cli_interpreter_resume): Rename to ...
16852 (cli_interp::resume): ... this. Remove 'data' parameter. Make
16853 extern.
16854 (cli_interpreter_suspend): Rename to ...
16855 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
16856 extern.
16857 (cli_interpreter_exec): Rename to ...
16858 (cli_interp::exec): ... this. Remove 'data' parameter. Make
16859 extern.
16860 (cli_interpreter_supports_command_editing): Rename to ...
16861 (cli_interp_base::supports_command_editing): ... this. Remove
16862 'interp' parameter. Make extern.
16863 (cli_ui_out): Rename to ...
16864 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
16865 Make extern.
16866 (cli_set_logging): Rename to ...
16867 (cli_interp_base::set_logging): ... this. Remove 'interp'
16868 parameter. Make extern.
16869 (cli_interp_procs): Delete.
16870 (cli_interp_factory): Adjust to use "new".
16871 * cli/cli-interp.h: Include "interps.h".
16872 (struct cli_interp_base): New struct.
16873 * interps.c (struct interp): Delete. Fields moved to interps.h.
16874 (interp_new): Delete.
16875 (interp::interp, interp::~interp): New.
16876 (interp_set): Use bool, and return void. Assume the interpreter
16877 has suspend, init and resume methods, and that the all return
16878 void.
16879 (set_top_level_interpreter): interp_set returns void.
16880 (interp_ui_out): Adapt.
16881 (current_interp_set_logging): Adapt.
16882 (interp_data): Delete.
16883 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
16884 (interp_exec): Adapt.
16885 (top_level_interpreter_data): Delete.
16886 * interps.h (interp_init_ftype, interp_resume_ftype)
16887 (interp_suspend_ftype, interp_exec_ftype)
16888 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
16889 (class interp): New.
16890 (interp_new): Delete.
16891 (interp_set): Now returns void. Use bool.
16892 (interp_data, top_level_interpreter_data): Delete.
16893 * mi/mi-common.h: Include interps.h.
16894 (class mi_interp): Inherit from interp. Define a ctor. Declare
16895 init, resume, suspect, exec, interp_ui_out, set_logging and
16896 pre_command_loop methods.
16897 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
16898 (mi_interpreter_init): Rename to ...
16899 (mi_interp::init): ... this. Remove the 'interp' parameter, use
16900 bool, return void and make extern. Adjust.
16901 (mi_interpreter_resume): ... Rename to ...
16902 (mi_interp::resume): ... this. Remove the 'data' parameter,
16903 return void and make extern. Adjust.
16904 (mi_interpreter_suspend): ... Rename to ...
16905 (mi_interp::suspend): ... this. Remove the 'data' parameter,
16906 return void and make extern. Adjust.
16907 (mi_interpreter_exec): ... Rename to ...
16908 (mi_interp::exec): ... this. Remove the 'data' parameter and make
16909 extern. Adjust.
16910 (mi_interpreter_pre_command_loop): ... Rename to ...
16911 (mi_interp::pre_command_loop): ... this. Remove the 'self'
16912 parameter and make extern.
16913 (mi_on_normal_stop_1): Adjust.
16914 (mi_ui_out): Rename to ...
16915 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
16916 parameter and make extern. Adjust.
16917 (mi_set_logging): Rename to ...
16918 (mi_interp::set_logging): ... this. Remove the 'interp'
16919 parameter and make extern. Adjust.
16920 (mi_interp_procs): Delete.
16921 (mi_interp_factory): Adjust to use 'new'.
16922 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
16923 (mi_print_exception, mi_execute_command, mi_load_progress):
16924 Adjust.
16925 * tui/tui-interp.c (tui_interp): New class.
16926 (as_tui_interp): Return a tui_interp pointer.
16927 (tui_on_normal_stop, tui_on_signal_received)
16928 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
16929 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
16930 to use interp::interp_ui_out.
16931 (tui_init): Rename to ...
16932 (tui_interp::init): ... this. Remove the 'self' parameter, use
16933 bool, return void and make extern. Adjust.
16934 (tui_resume): Rename to ...
16935 (tui_interp::resume): ... this. Remove the 'data' parameter,
16936 return void and make extern. Adjust.
16937 (tui_suspend): Rename to ...
16938 (tui_interp::suspend): ... this. Remove the 'data' parameter,
16939 return void and make extern. Adjust.
16940 (tui_ui_out): Rename to ...
16941 (tui_interp::interp_ui_out): ... this. Remove the 'self'
16942 parameter, and make extern. Adjust.
16943 (tui_exec): Rename to ...
16944 (tui_interp::exec): ... this. Remove the 'data' parameter and
16945 make extern.
16946 (tui_interp_procs): Delete.
16947 (tui_interp_factory): Use "new".
16948
16949 2017-02-02 Tom Tromey <tom@tromey.com>
16950
16951 * rust-exp.y (ends_raw_string, space_then_number)
16952 (rust_identifier_start_p): Return bool.
16953 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
16954 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
16955 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
16956 (rust_chartype_p): Return bool.
16957 (val_print_struct, rust_print_struct_def, rust_print_type):
16958 Update.
16959 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
16960 Return bool.
16961
16962 2017-02-02 Tom Tromey <tom@tromey.com>
16963
16964 * rust-lang.c: Reindent.
16965
16966 2017-02-02 Tom Tromey <tom@tromey.com>
16967
16968 * rust-lang.h (rust_crate_for_block): Update.
16969 * rust-lang.c (rust_crate_for_block): Return std::string.
16970 (rust_get_disr_info): Use std:;string, not
16971 gdb::unique_xmalloc_ptr.
16972 * rust-exp.y (crate_name): Update.
16973
16974 2017-02-02 Pedro Alves <palves@redhat.com>
16975
16976 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
16977 field out of gdb_disassembler_test and make it static.
16978
16979 2017-02-02 Pedro Alves <palves@redhat.com>
16980
16981 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
16982 mi1_interp and mi_interp fields.
16983
16984 2017-02-02 Pedro Alves <palves@redhat.com>
16985
16986 * cli/cli-interp.c (struct saved_output_files, saved_output):
16987 Moved from cli/cli-logging.c.
16988 (cli_set_logging): New function.
16989 (cli_interp_procs): Install cli_set_logging.
16990 * cli/cli-interp.h (make_logging_output, cli_set_logging):
16991 Declare.
16992 * cli/cli-logging.c (struct saved_output_files, saved_output):
16993 Moved to cli/cli-interp.c.
16994 (pop_output_files): Don't save outputs here.
16995 (make_logging_output): New function.
16996 (handle_redirections): Don't build tee nor save previous outputs
16997 here.
16998 * interps.c (current_interp_set_logging): Change prototype.
16999 Assume there's always a set_logging_proc method installed.
17000 * interps.h (interp_set_logging_ftype): Change prototype.
17001 (current_interp_set_logging): Change prototype and adjust comment.
17002 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
17003 use make_logging_output.
17004 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
17005 2017-02-02 Pedro Alves <palves@redhat.com>
17006
17007 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
17008 from ...
17009 (set_logging_overwrite): ... here.
17010 (logging_no_redirect_file): Delete.
17011 (set_logging_redirect): Don't handle redirection on the fly.
17012 Instead warn that "logging off" / "logging on" is necessary.
17013 (pop_output_files): Delete references to logging_no_redirect_file.
17014 (show_logging_command): Always speak in terms of what will happen
17015 once logging is reenabled.
17016
17017 2017-02-02 Pedro Alves <palves@redhat.com>
17018
17019 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
17020
17021 2017-02-02 Pedro Alves <palves@redhat.com>
17022
17023 * disasm.c (gdb_pretty_print_insn): Rename to ...
17024 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
17025 Remove gdbarch parameter. Adapt to clear the object's buffers
17026 instead of allocating new buffers, and to print using the object's
17027 gdb_disassembler instead of calling gdb_print_insn.
17028 (dump_insns): Use gdb_pretty_print_disassembler.
17029 * disasm.h (gdb_pretty_print_insn): Delete declaration.
17030 (gdb_pretty_print_disassembler): New class.
17031 * record-btrace.c (btrace_insn_history): Use
17032 gdb_pretty_print_disassembler.
17033
17034 2017-02-02 Pedro Alves <palves@redhat.com>
17035
17036 * ada-lang.c (type_as_string): Use string_file.
17037 * ada-valprint.c (ada_print_floating): Use string_file.
17038 * ada-varobj.c (ada_varobj_scalar_image)
17039 (ada_varobj_get_value_image): Use string_file.
17040 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
17041 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
17042 * breakpoint.c (update_inserted_breakpoint_locations)
17043 (insert_breakpoint_locations, reattach_breakpoints)
17044 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
17045 (print_it_watchpoint): Use string_file.
17046 (save_breakpoints): Use stdio_file.
17047 * c-exp.y (oper): Use string_file.
17048 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
17049 tee_file.
17050 (pop_output_files): Use delete.
17051 (handle_redirections): Use stdio_file and tee_file.
17052 * cli/cli-setshow.c (do_show_command): Use string_file.
17053 * compile/compile-c-support.c (c_compute_program): Use
17054 string_file.
17055 * compile/compile-c-symbols.c (generate_vla_size): Take a
17056 'string_file &' instead of a 'ui_file *'.
17057 (generate_c_for_for_one_variable): Take a 'string_file &' instead
17058 of a 'ui_file *'. Use string_file.
17059 (generate_c_for_variable_locations): Take a 'string_file &'
17060 instead of a 'ui_file *'.
17061 * compile/compile-internal.h (generate_c_for_for_one_variable):
17062 Take a 'string_file &' instead of a 'ui_file *'.
17063 * compile/compile-loc2c.c (push, pushf, unary, binary)
17064 (print_label, pushf_register_address, pushf_register)
17065 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
17066 'ui_file *'. Adjust.
17067 * compile/compile.c (compile_to_object): Use string_file.
17068 * compile/compile.h (compile_dwarf_expr_to_c)
17069 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
17070 'ui_file *'.
17071 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
17072 (replace_typedefs_qualified_name): Use string_file and
17073 obstack_copy0.
17074 * disasm.c (gdb_pretty_print_insn): Use string_file.
17075 (gdb_disassembly): Adjust reference the null_stream global.
17076 (do_ui_file_delete): Delete.
17077 (gdb_insn_length): Use null_stream.
17078 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
17079 * dwarf2loc.c (dwarf2_compile_property_to_c)
17080 (locexpr_generate_c_location, loclist_generate_c_location): Take a
17081 'string_file &' instead of a 'ui_file *'.
17082 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
17083 * dwarf2read.c (do_ui_file_peek_last): Delete.
17084 (dwarf2_compute_name): Use string_file.
17085 * event-top.c (gdb_setup_readline): Use stdio_file.
17086 * gdbarch.sh (verify_gdbarch): Use string_file.
17087 * gdbtypes.c (safe_parse_type): Use null_stream.
17088 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
17089 string_file.
17090 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
17091 'string_file *' instead of a 'ui_file *'.
17092 (gdbscm_arch_disassemble): Use string_file.
17093 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
17094 * guile/scm-ports.c (class ioscm_file_port): Now a class that
17095 inherits from ui_file.
17096 (ioscm_file_port_delete, ioscm_file_port_rewind)
17097 (ioscm_file_port_put): Delete.
17098 (ioscm_file_port_write): Rename to ...
17099 (ioscm_file_port::write): ... this. Remove file_port_magic
17100 checks.
17101 (ioscm_file_port_new): Delete.
17102 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
17103 ui_file_up.
17104 * guile/scm-type.c (tyscm_type_name): Use string_file.
17105 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
17106 Use string_file.
17107 * infcmd.c (print_return_value_1): Use string_file.
17108 * infrun.c (print_target_wait_results): Use string_file.
17109 * language.c (add_language): Use string_file.
17110 * location.c (explicit_to_string_internal): Use string_file.
17111 * main.c (captured_main_1): Use null_file.
17112 * maint.c (maintenance_print_architecture): Use stdio_file.
17113 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
17114 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
17115 event_channel>: Change type to mi_console_file pointer.
17116 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
17117 (mi_console_file_delete): Delete.
17118 (struct mi_console_file): Delete.
17119 (mi_console_file_magic): Delete.
17120 (mi_console_file_new): Delete.
17121 (mi_console_file::mi_console_file): New.
17122 (mi_console_file_delete): Delete.
17123 (mi_console_file_fputs): Delete.
17124 (mi_console_file::write): New.
17125 (mi_console_raw_packet): Delete.
17126 (mi_console_file::flush): New.
17127 (mi_console_file_flush): Delete.
17128 (mi_console_set_raw): Rename to ...
17129 (mi_console_file::set_raw): ... this.
17130 * mi/mi-console.h (class mi_console_file): New class.
17131 (mi_console_file_new, mi_console_set_raw): Delete.
17132 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
17133 (mi_set_logging): Use delete and tee_file. Adjust.
17134 * mi/mi-main.c (output_register): Use string_file.
17135 (mi_cmd_data_evaluate_expression): Use string_file.
17136 (mi_cmd_data_read_memory): Use string_file.
17137 (mi_cmd_execute, print_variable_or_computed): Use string_file.
17138 * mi/mi-out.c (mi_ui_out::main_stream): New.
17139 (mi_ui_out::rewind): Use main_stream and
17140 string_file.
17141 (mi_ui_out::put): Use main_stream and string_file.
17142 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
17143 Allocate a 'string_file' instead.
17144 (mi_out_new): Don't allocate a mem_fileopen stream here.
17145 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
17146 (mi_ui_out::main_stream): Declare method.
17147 * printcmd.c (eval_command): Use string_file.
17148 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
17149 * python/py-arch.c (archpy_disassemble): Use string_file.
17150 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
17151 * python/py-frame.c (frapy_str): Use string_file.
17152 * python/py-framefilter.c (py_print_type, py_print_single_arg):
17153 Use string_file.
17154 * python/py-type.c (typy_str): Use string_file.
17155 * python/py-unwind.c (unwind_infopy_str): Use string_file.
17156 * python/py-value.c (valpy_str): Use string_file.
17157 * record-btrace.c (btrace_insn_history): Use string_file.
17158 * regcache.c (regcache_print): Use stdio_file.
17159 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
17160 * remote.c (escape_buffer): Use string_file.
17161 * rust-lang.c (rust_get_disr_info): Use string_file.
17162 * serial.c (serial_open_ops_1): Use stdio_file.
17163 (do_serial_close): Use delete.
17164 * stack.c (print_frame_arg): Use string_file.
17165 (print_frame_args): Remove local mem_fileopen stream, not used.
17166 (print_frame): Use string_file.
17167 * symmisc.c (maintenance_print_symbols): Use stdio_file.
17168 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
17169 Take a 'string_file *' instead of a 'ui_file *'.
17170 * top.c (new_ui): Use stdio_file and stderr_file.
17171 (free_ui): Use delete.
17172 (execute_command_to_string): Use string_file.
17173 (quit_confirm): Use string_file.
17174 * tracepoint.c (collection_list::append_exp): Use string_file.
17175 * tui/tui-disasm.c (tui_disassemble): Use string_file.
17176 * tui/tui-file.c: Don't include "ui-file.h".
17177 (enum streamtype, struct tui_stream): Delete.
17178 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
17179 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
17180 (tui_file::tui_file): New method.
17181 (tui_file_fputs): Delete.
17182 (tui_file_get_strbuf): Delete.
17183 (tui_file::puts): New method.
17184 (tui_file_adjust_strbuf): Delete.
17185 (tui_file_flush): Delete.
17186 (tui_file::flush): New method.
17187 * tui/tui-file.h: Tweak intro comment.
17188 Include ui-file.h.
17189 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
17190 (tui_file_adjust_strbuf): Delete declarations.
17191 (class tui_file): New class.
17192 * tui/tui-io.c (tui_initialize_io): Use tui_file.
17193 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
17194 (tui_register_format): Use string_stream.
17195 * tui/tui-stack.c (tui_make_status_line): Use string_file.
17196 (tui_get_function_from_frame): Use string_file.
17197 * typeprint.c (type_to_string): Use string_file.
17198 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
17199 (null_stream): New global.
17200 (ui_file_delete): Delete.
17201 (ui_file::ui_file): New.
17202 (null_file_isatty): Delete.
17203 (ui_file::~ui_file): New.
17204 (null_file_rewind): Delete.
17205 (ui_file::printf): New.
17206 (null_file_put): Delete.
17207 (null_file_flush): Delete.
17208 (ui_file::putstr): New.
17209 (null_file_write): Delete.
17210 (ui_file::putstrn): New.
17211 (null_file_read): Delete.
17212 (ui_file::putc): New.
17213 (null_file_fputs): Delete.
17214 (null_file_write_async_safe): Delete.
17215 (ui_file::vprintf): New.
17216 (null_file_delete): Delete.
17217 (null_file::write): New.
17218 (null_file_fseek): Delete.
17219 (null_file::puts): New.
17220 (ui_file_data): Delete.
17221 (null_file::write_async_safe): New.
17222 (gdb_flush, ui_file_isatty): Adjust.
17223 (ui_file_put, ui_file_rewind): Delete.
17224 (ui_file_write): Adjust.
17225 (ui_file_write_for_put): Delete.
17226 (ui_file_write_async_safe, ui_file_read): Adjust.
17227 (ui_file_fseek): Delete.
17228 (fputs_unfiltered): Adjust.
17229 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
17230 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
17231 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
17232 (set_ui_file_data): Delete.
17233 (string_file::~string_file, string_file::write)
17234 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
17235 (do_ui_file_as_string, ui_file_as_string): Delete.
17236 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
17237 (struct mem_file): Delete.
17238 (mem_file_new): Delete.
17239 (stdio_file::stdio_file): New.
17240 (mem_file_delete): Delete.
17241 (stdio_file::stdio_file): New.
17242 (mem_fileopen): Delete.
17243 (stdio_file::~stdio_file): New.
17244 (mem_file_rewind): Delete.
17245 (stdio_file::set_stream): New.
17246 (mem_file_put): Delete.
17247 (stdio_file::open): New.
17248 (mem_file_write): Delete.
17249 (stdio_file_magic, struct stdio_file): Delete.
17250 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
17251 (stdio_file::flush): New.
17252 (stdio_file_read): Rename to ...
17253 (stdio_file::read): ... this. Adjust.
17254 (stdio_file_write): Rename to ...
17255 (stdio_file::write): ... this. Adjust.
17256 (stdio_file_write_async_safe): Rename to ...
17257 (stdio_file::write_async_safe) ... this. Adjust.
17258 (stdio_file_fputs): Rename to ...
17259 (stdio_file::puts) ... this. Adjust.
17260 (stdio_file_isatty): Delete.
17261 (stdio_file_fseek): Delete.
17262 (stdio_file::isatty): New.
17263 (stderr_file_write): Rename to ...
17264 (stderr_file::write) ... this. Adjust.
17265 (stderr_file_fputs): Rename to ...
17266 (stderr_file::puts) ... this. Adjust.
17267 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
17268 (stderr_file::stderr_file): New.
17269 (tee_file_magic): Delete.
17270 (struct tee_file): Delete.
17271 (tee_file::tee_file): New.
17272 (tee_file_new): Delete.
17273 (tee_file::~tee_file): New.
17274 (tee_file_delete): Delete.
17275 (tee_file_flush): Rename to ...
17276 (tee_file::flush): ... this. Adjust.
17277 (tee_file_write): Rename to ...
17278 (tee_file::write): ... this. Adjust.
17279 (tee_file::write_async_safe): New.
17280 (tee_file_fputs): Rename to ...
17281 (tee_file::puts): ... this. Adjust.
17282 (tee_file_isatty): Rename to ...
17283 (tee_file::isatty): ... this. Adjust.
17284 * ui-file.h (struct obstack, struct ui_file): Don't
17285 forward-declare.
17286 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
17287 (ui_file_write_ftype)
17288 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
17289 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
17290 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
17291 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
17292 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
17293 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
17294 (set_ui_file_fseek): Delete.
17295 (ui_file_data, ui_file_delete, ui_file_rewind)
17296 (struct ui_file): New.
17297 (ui_file_up): New.
17298 (class null_file): New.
17299 (null_stream): Declare.
17300 (ui_file_write_for_put, ui_file_put): Delete.
17301 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
17302 Delete.
17303 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
17304 (gdb_fopen, tee_file_new): Delete.
17305 (struct string_file): New.
17306 (struct stdio_file): New.
17307 (stdio_file_up): New.
17308 (struct stderr_file): New.
17309 (class tee_file): New.
17310 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
17311 of a 'ui_file *'. Adjust.
17312 * ui-out.h (class ui_out) <field_stream>: Likewise.
17313 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
17314 (null_stream): Delete.
17315 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
17316 Adjust.
17317 * utils.h (struct ui_file): Delete forward declaration..
17318 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
17319 (error_stream): Take a 'string_file &' instead of a
17320 'ui_file *'.
17321 * varobj.c (varobj_value_get_print_value): Use string_file.
17322 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
17323 * gdbarch.c: Regenerate.
17324
17325 2017-02-02 Pedro Alves <palves@redhat.com>
17326
17327 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
17328 (gdb_pretty_print_insn): ... this. Now a free function. Add back
17329 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
17330 Adjust to call gdb_print_insn instead of
17331 gdb_disassembler::print_insn.
17332 (dump_insns, do_mixed_source_and_assembly_deprecated)
17333 (do_mixed_source_and_assembly, do_assembly_only): Add back a
17334 'gdbarch' parameter. Remove gdb_disassembler parameter.
17335 (gdb_disassembly): Don't allocate a gdb_disassembler here.
17336 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
17337 declaration.
17338 (gdb_pretty_print_insn): Re-add declaration.
17339 * record-btrace.c (btrace_insn_history): Don't allocate a
17340 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
17341
17342 2017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
17343
17344 * disasm.h (gdb_disassembly): Remove file_string parameter.
17345 * disasm.c (gdb_disassembly): Likewise.
17346 * cli/cli-cmds.c (print_disassembly): Adapt.
17347 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
17348 * stack.c (do_gdb_disassembly): Likewise.
17349
17350 2017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
17351
17352 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
17353 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
17354 targets. And if the implicit value is longer than needed, extract
17355 the first bytes instead of the "least significant" ones.
17356
17357 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
17358
17359 * btrace.c (btrace_enable): Do not call btrace_add_pc for
17360 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
17361 (btrace_fetch): Assert can_access_registers_ptid.
17362 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
17363 validate_registers_access.
17364
17365 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
17366
17367 * gdbthread.h (can_access_registers_ptid): New.
17368 * thread.c (can_access_registers_ptid): New.
17369
17370 2017-02-01 Pedro Alves <palves@redhat.com>
17371
17372 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
17373
17374 2017-01-31 Pedro Alves <palves@redhat.com>
17375
17376 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
17377 Fix typos.
17378
17379 2017-01-31 Pedro Alves <palves@redhat.com>
17380
17381 * stack.c (print_frame_args): Remove local mem_fileopen stream,
17382 not used.
17383
17384 2017-01-31 Pedro Alves <palves@redhat.com>
17385
17386 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
17387
17388 2017-01-31 Pedro Alves <palves@redhat.com>
17389
17390 * common/scoped_restore.h
17391 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
17392 change the value's parameter type to T2.
17393 (make_scoped_restore): Likewise.
17394
17395 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
17396 Richard Henderson <rth@redhat.com>
17397
17398 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
17399 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
17400 GS_BASE for older kernels.
17401 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
17402 GS_BASE for older kernels.
17403 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
17404 and GS_BASE to the offset table.
17405 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
17406 system register group.
17407 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
17408 for older kernels.
17409 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
17410 amd64 ABI.
17411 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
17412 AMD64_GSBASE_REGNUM.
17413 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
17414 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
17415 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
17416 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
17417 i386/64bit-segments.xml in those rules.
17418 * features/i386/64bit-segments.xml: New file.
17419 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
17420 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
17421 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
17422 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
17423 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
17424 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
17425 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
17426 * features/i386/amd64-avx-linux.c: Regenerated.
17427 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
17428 * features/i386/amd64-avx-mpx.c: Regenerated.
17429 * features/i386/amd64-avx512-linux.c: Regenerated.
17430 * features/i386/amd64-linux.c: Regenerated.
17431 * features/i386/amd64-mpx-linux.c: Regenerated.
17432 * features/i386/i386-avx-mpx-linux.c: Regenerated.
17433 * features/i386/i386-avx-mpx.c: Regenerated.
17434 * features/i386/x32-avx-linux.c: Regenerated.
17435 * features/i386/x32-avx512-linux.c: Regenerated.
17436 * regformats/i386/amd64-avx-linux.dat: Regenerated.
17437 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
17438 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
17439 * regformats/i386/amd64-linux.dat: Regenerated.
17440 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
17441 * regformats/i386/x32-avx-linux.dat: Regenerated.
17442 * regformats/i386/x32-avx512-linux.dat: Regenerated.
17443 * regformats/i386/x32-linux.dat: Regenerated.
17444
17445 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
17446
17447 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
17448 Set to AMD64_NUM_REGS.
17449
17450 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
17451
17452 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
17453 that checks validity of a register number.
17454
17455 2017-01-27 Kees Cook <keescook@google.com>
17456
17457 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
17458 fetch_fpregs if target has fpa registers.
17459 (arm_linux_store_inferior_registers): Call store_fpregs if target
17460 has fpa registers.
17461
17462 2017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
17463
17464 * cris-tdep.c (cris_gdbarch_init): Remove check for
17465 info.byte_order and force it to BFD_ENDIAN_LITTLE.
17466
17467 2017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
17468
17469 * corelow.c (get_core_register_section): Check for regset
17470 existence before checking for REGSET_VARIABLE_SIZE.
17471
17472 2017-01-26 Yao Qi <yao.qi@linaro.org>
17473 Pedro Alves <palves@redhat.com>
17474
17475 PR gdb/20939
17476 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
17477 call memory_error, save memaddr instead.
17478 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
17479 negative, cal memory_error.
17480 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
17481
17482 2017-01-26 Yao Qi <yao.qi@linaro.org>
17483
17484 * disasm-selftests.c (memory_error_test): New function.
17485 (_initialize_disasm_selftests): Register memory_error_test.
17486
17487 2017-01-26 Yao Qi <yao.qi@linaro.org>
17488
17489 * Makefile.in (SFILES): Add disasm-selftests.c and
17490 selftest-arch.c.
17491 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
17492 * disasm-selftests.c: New file.
17493 * selftest-arch.c: New file.
17494 * selftest-arch.h: New file.
17495
17496 2017-01-26 Yao Qi <yao.qi@linaro.org>
17497
17498 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
17499 to bfd_arch_mep. Don't return 0 if section is not
17500 found. Call print_insn_mep.
17501
17502 2017-01-26 Pedro Alves <palves@redhat.com>
17503 Yao Qi <yao.qi@linaro.org>
17504
17505 * arm-tdep.c: Include "disasm.h".
17506 (gdb_print_insn_arm): Update code to get gdbarch.
17507 * disasm.c (dis_asm_read_memory): Change it to
17508 gdb_disassembler::dis_asm_read_memory.
17509 (dis_asm_memory_error): Likewise.
17510 (dis_asm_print_address): Likewise.
17511 (gdb_pretty_print_insn): Change it to
17512 gdb_disassembler::pretty_print_insn.
17513 (dump_insns): Add one argument gdb_disassemlber. All
17514 callers updated.
17515 (do_mixed_source_and_assembly_deprecated): Likewise.
17516 (do_mixed_source_and_assembly): Likewise.
17517 (do_assembly_only): Likewise.
17518 (gdb_disassembler::gdb_disassembler): New.
17519 (gdb_disassembler::print_insn): New.
17520 * disasm.h (class gdb_disassembler): New.
17521 (gdb_pretty_print_insn): Remove declaration.
17522 (gdb_disassemble_info): Likewise.
17523 * guile/scm-disasm.c (class gdbscm_disassembler): New.
17524 (gdbscm_disasm_read_memory_worker): Update.
17525 (gdbscm_disasm_read_memory): Update.
17526 (gdbscm_disasm_memory_error): Remove.
17527 (gdbscm_disasm_print_address): Remove.
17528 (gdbscm_disassembler::gdbscm_disassembler): New.
17529 (gdbscm_print_insn_from_port): Update.
17530 * mips-tdep.c: Include disasm.h.
17531 (gdb_print_insn_mips): Update code to get gdbarch.
17532 * record-btrace.c (btrace_insn_history): Update.
17533 * spu-tdep.c: Include disasm.h.
17534 (struct spu_dis_asm_data): Remove.
17535 (struct spu_dis_asm_info): New.
17536 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
17537 SPU id.
17538 (gdb_print_insn_spu): Cast disassemble_info to
17539 spu_dis_asm_info.
17540
17541 2017-01-26 Yao Qi <yao.qi@linaro.org>
17542
17543 * disasm.c (do_ui_file_delete): Delete.
17544 (gdb_insn_length): Move code creating stream to ...
17545 * utils.c (null_stream): ... here. New function.
17546 * utils.h (null_stream): Declare.
17547
17548 2017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
17549
17550 * python/py-inferior.c (find_thread_object): Return directly
17551 from the loop. Remove "found" variable.
17552
17553 2017-01-21 Joel Brobecker <brobecker@adacore.com>
17554
17555 GDB 7.12.1 released.
17556
17557 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
17558
17559 * python/py-function.c (fnpy_call): Reorder declarations to have
17560 the gdbpy_enter object declared first.
17561 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
17562
17563 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
17564
17565 PR python/21068
17566 * python/python-internal.h (PyMem_RawMalloc): Define for
17567 Python < 3.4.
17568 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
17569 PyMem_RawMalloc instead of PyMem_Malloc.
17570
17571 2017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
17572 Luis Machado <lgustavo@codesourcery.com>
17573
17574 * NEWS (New commands): Mention flash-erase.
17575 (New MI commands): Mention target-flash-erase.
17576 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
17577 command.
17578 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
17579 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
17580 * target.c (flash_erase_command): New function.
17581 (initialize_targets): Add new flash-erase command.
17582 * target.h (flash_erase_command): New declaration.
17583
17584 2017-01-20 Joel Brobecker <brobecker@adacore.com>
17585
17586 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
17587 HAVE_SYS_PROCFS_H is defined.
17588
17589 2017-01-18 Alan Hayward <alan.hayward@arm.com>
17590
17591 * remote.c (struct cached_reg): Change data into a pointer.
17592 * (stop_reply_dtr): Free data pointers before deleting vector.
17593 (process_stop_reply): Likewise.
17594 (remote_parse_stop_reply): Allocate space for data
17595
17596 2017-01-18 Alan Hayward <alan.hayward@arm.com>
17597
17598 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
17599 MAX_REGISTER_SIZE.
17600 (amd64_pseudo_register_read_value): Likewise.
17601 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
17602 (store_register_using_P): Likewise.
17603 * regcache.c (regcache_xfer_part): Likewise.
17604
17605 2017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
17606
17607 Split real and pseudo registers.
17608 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
17609 (sparc32_pseudo_regnum): New enum.
17610 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
17611 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
17612 (SPARC32_CP0_REGISTERS): New macro.
17613 (sparc32_pseudo_register_name): New function.
17614 (sparc32_register_name): Use sparc32_pseudo_register_name.
17615 (sparc32_pseudo_register_type): New function.
17616 (sparc32_register_type): Use sparc32_pseudo_register_type.
17617 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
17618 pseudo register numbers.
17619 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
17620 (SPARC64_CP0_REGISTERS): New macro.
17621 (sparc64_pseudo_register_name): New function.
17622 (sparc64_register_name): Use sparc64_pseudo_register_name.
17623 (sparc64_pseudo_register_type): New function.
17624 (sparc64_register_type): Use sparc64_pseudo_register_type.
17625 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
17626 pseudo register numbers.
17627 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
17628 sparc64_store_arguments): Handle pseudo register numbers.
17629
17630 2017-01-13 Yao Qi <yao.qi@linaro.org>
17631
17632 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
17633 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
17634 output.
17635 (getpkt_or_notif_sane_1): Likewise.
17636
17637 2017-01-13 Yao Qi <yao.qi@linaro.org>
17638
17639 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
17640 of CC. Pass "-x c++-header" instead of "-x c".
17641
17642 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
17643
17644 * remote.c (remote_can_async_p): Update comment.
17645
17646 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
17647
17648 * linux-nat.c (linux_nat_can_async_p): Update comment.
17649
17650 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
17651
17652 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
17653
17654 2017-01-11 Simon Marchi <simon.marchi@ericsson.com>
17655
17656 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
17657
17658 2017-01-10 Tom Tromey <tom@tromey.com>
17659
17660 * python/py-type.c (typy_legacy_template_argument): Update.
17661 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
17662 ~demangle_parse_info): Declare new members.
17663 (cp_demangled_name_to_comp): Return unique_ptr.
17664 (cp_demangled_name_parse_free)
17665 (make_cleanup_cp_demangled_name_parse_free)
17666 (cp_new_demangle_parse_info): Remove.
17667 * cp-support.c (do_demangled_name_parse_free_cleanup)
17668 (make_cleanup_cp_demangled_name_parse_free): Remove.
17669 (inspect_type, cp_canonicalize_string_full)
17670 (cp_canonicalize_string): Update.
17671 (mangled_name_to_comp): Change return type.
17672 (cp_class_name_from_physname, method_name_from_physname)
17673 (cp_func_name, cp_remove_params): Update.
17674 * cp-name-parser.y (demangle_parse_info): New constructor, from
17675 cp_new_demangle_parse_info.
17676 (~demangle_parse_info): New destructor, from
17677 cp_demangled_name_parse_free.
17678 (cp_merge_demangle_parse_infos): Update.
17679 (cp_demangled_name_to_comp): Change return type.
17680
17681 2017-01-10 Tom Tromey <tom@tromey.com>
17682
17683 * top.c (prevent_dont_repeat): Change return type.
17684 * python/python.c (execute_gdb_command): Use std::string.
17685 Update.
17686 * guile/guile.c (gdbscm_execute_gdb_command): Update.
17687 * command.h (prevent_dont_repeat): Change return type.
17688 * breakpoint.c (bpstat_do_actions_1): Update.
17689
17690 2017-01-10 Tom Tromey <tom@tromey.com>
17691
17692 * value.h (scoped_value_mark::~scoped_value_mark): Call
17693 free_to_mark.
17694 (scoped_value_mark::free_to_mark): New method.
17695 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
17696 scoped_value_mark.
17697
17698 2017-01-10 Tom Tromey <tom@tromey.com>
17699
17700 * python/py-value.c (valpy_dereference, valpy_referenced_value)
17701 (valpy_reference_value, valpy_const_value, valpy_get_address)
17702 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
17703 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
17704 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
17705 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
17706 scoped_value_mark.
17707 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
17708 * value.h (scoped_value_mark): New class.
17709
17710 2017-01-10 Tom Tromey <tom@tromey.com>
17711
17712 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
17713 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
17714 * psymtab.c (discard_psymtabs_upto): Remove.
17715 (make_cleanup_discard_psymtabs): Remove.
17716 (struct psymtab_state): Remove.
17717
17718 2017-01-10 Tom Tromey <tom@tromey.com>
17719
17720 * record-full.c (record_full_save_cleanups): Remove.
17721 (record_full_save): Use gdb::unlinker.
17722 * gcore.c (do_bfd_delete_cleanup): Remove.
17723 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
17724 cleanups.
17725 * dwarf2read.c (unlink_if_set): Remove.
17726 (write_psymtabs_to_index): Use gdb::unlinker.
17727 * common/gdb_unlinker.h: New file.
17728
17729 2017-01-10 Tom Tromey <tom@tromey.com>
17730
17731 * windows-tdep.c (windows_xfer_shared_library): Update.
17732 * windows-nat.c (windows_make_so): Update.
17733 * utils.h (make_cleanup_bfd_unref): Remove.
17734 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
17735 * symfile.h (symfile_bfd_open)
17736 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
17737 * symfile.c (read_symbols, symbol_file_add)
17738 (separate_debug_file_exists): Update.
17739 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
17740 (generic_load, reread_symbols): Update.
17741 * symfile-mem.c (symbol_file_add_from_memory): Update.
17742 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
17743 (spu_symbol_file_add_from_memory): Update.
17744 * solist.h (struct target_so_ops) <bfd_open>: Return
17745 gdb_bfd_ref_ptr.
17746 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
17747 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
17748 gdb_bfd_ref_ptr.
17749 (solib_map_sections, reload_shared_libraries_1): Update.
17750 * solib-svr4.c (enable_break): Update.
17751 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
17752 * solib-frv.c (enable_break2): Update.
17753 * solib-dsbt.c (enable_break): Update.
17754 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
17755 gdb_bfd_ref_ptr.
17756 (darwin_solib_get_all_image_info_addr_at_init): Update.
17757 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
17758 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
17759 * record-full.c (record_full_save): Update.
17760 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
17761 * procfs.c (insert_dbx_link_bpt_in_file): Update.
17762 * minidebug.c (find_separate_debug_file_in_section): Return
17763 gdb_bfd_ref_ptr.
17764 * machoread.c (macho_add_oso_symfile): Change abfd to
17765 gdb_bfd_ref_ptr.
17766 (macho_symfile_read_all_oso): Update.
17767 (macho_check_dsym): Return gdb_bfd_ref_ptr.
17768 (macho_symfile_read): Update.
17769 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
17770 (jit_bfd_try_read_symtab): Update.
17771 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
17772 (gdb_bfd_openw, gdb_bfd_openr_iovec)
17773 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
17774 gdb_bfd_ref_ptr.
17775 (gdb_bfd_ref_policy): New struct.
17776 (gdb_bfd_ref_ptr): New typedef.
17777 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
17778 (gdb_bfd_openw, gdb_bfd_openr_iovec)
17779 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
17780 gdb_bfd_ref_ptr.
17781 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
17782 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
17783 (gcore_command): Update.
17784 * exec.c (exec_file_attach): Update.
17785 * elfread.c (elf_symfile_read): Update.
17786 * dwarf2read.c (dwarf2_get_dwz_file): Update.
17787 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
17788 (open_and_init_dwo_file): Update.
17789 (open_dwp_file): Return gdb_bfd_ref_ptr.
17790 (open_and_init_dwp_file): Update.
17791 * corelow.c (core_open): Update.
17792 * compile/compile-object-load.c (compile_object_load): Update.
17793 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
17794 * coffread.c (coff_symfile_read): Update.
17795 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
17796 gdb_bfd_ref_ptr. Rename.
17797 (dump_bfd_file, restore_command): Update.
17798 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
17799 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
17800 (find_separate_debug_file_by_buildid): Update.
17801
17802 2017-01-10 Tom Tromey <tom@tromey.com>
17803
17804 * common/gdb_ref_ptr.h: New file.
17805 * python/py-ref.h (struct gdbpy_ref_policy): New.
17806 (gdbpy_ref): Now a typedef.
17807
17808 2017-01-10 Tom Tromey <tom@tromey.com>
17809
17810 * utils.h (make_cleanup_htab_delete): Don't declare.
17811 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
17812 Remove.
17813 * linespec.c (decode_compound_collector): Add constructor,
17814 destructor.
17815 (lookup_prefix_sym): Remove cleanup.
17816 (symtab_collector): Add constructor, destructor.
17817 (collect_symtabs_from_filename): Remove cleanup.
17818 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
17819 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
17820 Use htab_up.
17821 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
17822 * dwarf2read.c (dw2_expand_symtabs_matching)
17823 (dw2_map_symbol_filenames, dwarf_decode_macros)
17824 (write_psymtabs_to_index): Use htab_up.
17825 * dwarf2loc.c (func_verify_no_selftailcall)
17826 (call_site_find_chain_1, func_verify_no_selftailcall)
17827 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
17828 std::vector, gdb::unique_xmalloc_ptr.
17829 (call_sitep): Remove typedef.
17830 (dwarf2_locexpr_baton_eval): Remove unused variable.
17831
17832 2017-01-10 Tom Tromey <tom@tromey.com>
17833
17834 * python/python-internal.h (make_cleanup_py_decref)
17835 (make_cleanup_py_xdecref): Don't declare.
17836 * python/py-utils.c (py_decref, make_cleanup_py_decref)
17837 (py_xdecref, make_cleanup_py_xdecref): Remove.
17838
17839 2017-01-10 Tom Tromey <tom@tromey.com>
17840
17841 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
17842 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
17843
17844 2017-01-10 Tom Tromey <tom@tromey.com>
17845
17846 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
17847
17848 2017-01-10 Tom Tromey <tom@tromey.com>
17849
17850 * python/py-utils.c (unicode_to_encoded_string)
17851 (python_string_to_target_string)
17852 (python_string_to_target_python_string)
17853 (python_string_to_host_string, gdbpy_obj_to_string)
17854 (get_addr_from_python): Use gdbpy_ref.
17855
17856 2017-01-10 Tom Tromey <tom@tromey.com>
17857
17858 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
17859 gdbpy_ref.
17860
17861 2017-01-10 Tom Tromey <tom@tromey.com>
17862
17863 * python/python.c (eval_python_command, gdbpy_decode_line)
17864 (gdbpy_run_events, gdbpy_start_type_printers)
17865 (gdbpy_apply_type_printers): Use gdbpy_ref.
17866
17867 2017-01-10 Tom Tromey <tom@tromey.com>
17868
17869 * python/py-param.c (get_doc_string, compute_enum_values): Use
17870 gdbpy_ref.
17871
17872 2017-01-10 Tom Tromey <tom@tromey.com>
17873
17874 * python/py-inferior.c (find_thread_object, build_inferior_list):
17875 Use gdbpy_ref.
17876
17877 2017-01-10 Tom Tromey <tom@tromey.com>
17878
17879 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
17880
17881 2017-01-10 Tom Tromey <tom@tromey.com>
17882
17883 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
17884 gdbpy_ref.
17885
17886 2017-01-10 Tom Tromey <tom@tromey.com>
17887
17888 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
17889 extra incref.
17890 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
17891 Use gdbpy_ref.
17892
17893 2017-01-10 Tom Tromey <tom@tromey.com>
17894
17895 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
17896 gdbpy_ref.
17897
17898 2017-01-10 Tom Tromey <tom@tromey.com>
17899
17900 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
17901 decref results of PyArg_ParseTupleAndKeywords.
17902
17903 2017-01-10 Tom Tromey <tom@tromey.com>
17904
17905 * python/python.c (python_run_simple_file): Use
17906 unique_xmalloc_ptr, gdbpy_ref.
17907
17908 2017-01-10 Tom Tromey <tom@tromey.com>
17909
17910 * python/py-prettyprint.c (print_stack_unless_memory_error)
17911 (print_string_repr, print_children): Use gdbpy_ref.
17912 (dummy_python_frame): New class.
17913 (dummy_python_frame::dummy_python_frame): Rename from
17914 push_dummy_python_frame.
17915 (py_restore_tstate): Remove.
17916
17917 2017-01-10 Tom Tromey <tom@tromey.com>
17918
17919 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
17920
17921 2017-01-10 Tom Tromey <tom@tromey.com>
17922
17923 * python/python.c (ensure_python_env, restore_python_env):
17924 Remove.
17925 * python/python-internal.h (ensure_python_env): Don't declare.
17926 * varobj.h (varobj_ensure_python_env): Don't declare.
17927 * varobj.c (varobj_ensure_python_env): Remove.
17928
17929 2017-01-10 Tom Tromey <tom@tromey.com>
17930
17931 * varobj.c (varobj_value_get_print_value): Use
17932 gdbpy_enter_varobj.
17933
17934 2017-01-10 Tom Tromey <tom@tromey.com>
17935
17936 * python/py-prettyprint.c (print_string_repr, print_children):
17937 Update.
17938 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
17939 of "encoding".
17940 * varobj.c (varobj_value_get_print_value): Update.
17941 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
17942
17943 2017-01-10 Tom Tromey <tom@tromey.com>
17944
17945 * varobj.c (varobj_get_display_hint)
17946 (dynamic_varobj_has_child_method, install_new_value_visualizer)
17947 (varobj_set_visualizer, free_variable): Use
17948 gdbpy_enter_varobj.
17949
17950 2017-01-10 Tom Tromey <tom@tromey.com>
17951
17952 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
17953 (do_finish_initialization): New function. Use gdbpy_ref.
17954 (gdbpy_finish_initialization): Use gdbpy_enter. Call
17955 do_finish_initialization.
17956
17957 2017-01-10 Tom Tromey <tom@tromey.com>
17958
17959 * python/py-param.c (get_set_value, get_show_value): Use
17960 gdbpy_enter, gdbpy_ref.
17961
17962 2017-01-10 Tom Tromey <tom@tromey.com>
17963
17964 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
17965
17966 2017-01-10 Tom Tromey <tom@tromey.com>
17967
17968 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
17969
17970 2017-01-10 Tom Tromey <tom@tromey.com>
17971
17972 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
17973 Use gdbpy_enter_varobj.
17974
17975 2017-01-10 Tom Tromey <tom@tromey.com>
17976
17977 * varobj.c (gdbpy_enter_varobj): New constructor.
17978 * python/python-internal.h (gdbpy_enter_varobj): New class.
17979 * python/py-varobj.c (py_varobj_get_iterator): Use
17980 gdbpy_enter_varobj.
17981
17982 2017-01-10 Tom Tromey <tom@tromey.com>
17983
17984 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
17985 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
17986 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
17987 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
17988 unique_xmalloc_ptr.
17989 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
17990
17991 2017-01-10 Tom Tromey <tom@tromey.com>
17992
17993 * python/py-xmethods.c (invoke_match_method): Use
17994 gdbpy_ref.
17995
17996 2017-01-10 Tom Tromey <tom@tromey.com>
17997
17998 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
17999 gdbpy_enter, gdbpy_ref.
18000
18001 2017-01-10 Tom Tromey <tom@tromey.com>
18002
18003 * python/python.c (python_interactive_command): Use gdbpy_enter.
18004
18005 2017-01-10 Tom Tromey <tom@tromey.com>
18006
18007 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
18008 gdbpy_ref.
18009
18010 2017-01-10 Tom Tromey <tom@tromey.com>
18011
18012 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
18013 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
18014
18015 2017-01-10 Tom Tromey <tom@tromey.com>
18016
18017 * utils.h (htab_deleter): New struct.
18018 (htab_up): New typedef.
18019 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
18020 gdbpy_enter, gdbpy_ref, htab_up.
18021
18022 2017-01-10 Tom Tromey <tom@tromey.com>
18023
18024 * python/py-unwind.c (pending_frame_invalidate): Remove.
18025 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
18026
18027 2017-01-10 Tom Tromey <tom@tromey.com>
18028
18029 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
18030 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
18031
18032 2017-01-10 Tom Tromey <tom@tromey.com>
18033
18034 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
18035
18036 2017-01-10 Tom Tromey <tom@tromey.com>
18037
18038 * python/python.c (gdbpy_eval_from_control_command)
18039 (gdbpy_source_script, gdbpy_run_events)
18040 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
18041 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
18042 gdbpy_enter.
18043
18044 2017-01-10 Tom Tromey <tom@tromey.com>
18045
18046 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
18047
18048 2017-01-10 Tom Tromey <tom@tromey.com>
18049
18050 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
18051
18052 2017-01-10 Tom Tromey <tom@tromey.com>
18053
18054 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
18055 (python_on_inferior_call_pre, python_on_inferior_call_post)
18056 (python_on_memory_change, python_on_register_change)
18057 (python_inferior_exit, python_new_objfile, add_thread_object)
18058 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
18059
18060 2017-01-10 Tom Tromey <tom@tromey.com>
18061
18062 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
18063 (bpfinishpy_handle_exit): Use gdbpy_enter.
18064
18065 2017-01-10 Tom Tromey <tom@tromey.com>
18066
18067 * python/py-cmd.c (cmdpy_destroyer)
18068 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
18069 gdbpy_enter.
18070
18071 2017-01-10 Tom Tromey <tom@tromey.com>
18072
18073 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
18074 gdbpy_enter.
18075 (gdbpy_breakpoint_has_cond): Likewise.
18076
18077 2017-01-10 Tom Tromey <tom@tromey.com>
18078
18079 * python/python.c (gdbpy_enter): New constructor.
18080 (~gdbpy_enter): New destructor.
18081 (restore_python_env, ensure_python_env): Rewrite.
18082 * python/python-internal.h (gdbpy_enter): New class.
18083
18084 2017-01-10 Tom Tromey <tom@tromey.com>
18085
18086 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
18087
18088 2017-01-10 Tom Tromey <tom@tromey.com>
18089
18090 * python/py-value.c (value_has_field, get_field_flag)
18091 (get_field_type, valpy_getitem, convert_value_from_python): Use
18092 gdbpy_ref.
18093
18094 2017-01-10 Tom Tromey <tom@tromey.com>
18095
18096 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
18097 gdbpy_ref.
18098
18099 2017-01-10 Tom Tromey <tom@tromey.com>
18100
18101 * python/py-prettyprint.c (search_pp_list)
18102 (find_pretty_printer_from_objfiles)
18103 (find_pretty_printer_from_progspace)
18104 (find_pretty_printer_from_gdb, find_pretty_printer)
18105 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
18106 gdbpy_ref.
18107
18108 2017-01-10 Tom Tromey <tom@tromey.com>
18109
18110 * python/py-param.c (call_doc_function): Use gdbpy_ref.
18111
18112 2017-01-10 Tom Tromey <tom@tromey.com>
18113
18114 * python/py-linetable.c (build_line_table_tuple_from_pcs)
18115 (ltpy_get_all_source_lines): Use gdbpy_ref.
18116
18117 2017-01-10 Tom Tromey <tom@tromey.com>
18118
18119 * python/py-framefilter.c (extract_sym, extract_value)
18120 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
18121 gdbpy_ref.
18122
18123 2017-01-10 Tom Tromey <tom@tromey.com>
18124
18125 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
18126
18127 2017-01-10 Tom Tromey <tom@tromey.com>
18128
18129 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
18130
18131 2017-01-10 Tom Tromey <tom@tromey.com>
18132
18133 * python/py-function.c (convert_values_to_python, fnpy_init): Use
18134 gdbpy_ref.
18135
18136 2017-01-10 Tom Tromey <tom@tromey.com>
18137
18138 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
18139
18140 2017-01-10 Tom Tromey <tom@tromey.com>
18141
18142 * python/py-type.c (convert_field, make_fielditem, typy_fields)
18143 (typy_range): Use gdbpy_ref.
18144
18145 2017-01-10 Tom Tromey <tom@tromey.com>
18146
18147 * python/py-threadevent.c (create_thread_event_object): Use
18148 gdbpy_ref.
18149 * python/py-stopevent.c (create_stop_event_object): Simplify.
18150 (emit_stop_event): Use gdbpy_ref.
18151 * python/py-signalevent.c (create_signal_event_object): Use
18152 gdbpy_ref.
18153 * python/py-newobjfileevent.c (create_new_objfile_event_object)
18154 (emit_new_objfile_event, create_clear_objfiles_event_object)
18155 (emit_clear_objfiles_event): Use gdbpy_ref.
18156 * python/py-infevents.c (create_inferior_call_event_object)
18157 (create_register_changed_event_object)
18158 (create_memory_changed_event_object, emit_inferior_call_event)
18159 (emit_memory_changed_event, emit_register_changed_event): Use
18160 gdbpy_ref.
18161 * python/py-exitedevent.c (create_exited_event_object)
18162 (emit_exited_event): Use gdbpy_ref.
18163 * python/py-event.h (evpy_emit_event): Remove
18164 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
18165 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
18166 * python/py-continueevent.c (emit_continue_event): Use
18167 gdbpy_ref.
18168 * python/py-breakpoint.c (gdbpy_breakpoint_created)
18169 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
18170 gdbpy_ref.
18171 * python/py-bpevent.c (create_breakpoint_event_object): Use
18172 gdbpy_ref.
18173
18174 2017-01-10 Tom Tromey <tom@tromey.com>
18175
18176 * python/py-ref.h: New file.
18177
18178 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
18179
18180 * cli-out.c (cli_ui_out::do_redirect): Change return type to
18181 void.
18182 * cli-out.h (cli_ui_out::do_redirect): Likewise.
18183 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
18184 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
18185 * ui-out.c (ui_out::redirect): Likewise.
18186 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
18187 * cli/cli-logging.c (set_logging_redirect): Update call site of
18188 ui_out::redirect.
18189 (handle_redirections): Likewise.
18190 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
18191 * top.c (execute_command_to_string): Likewise.
18192 * utils.c (do_ui_out_redirect_pop): Likewise.
18193
18194 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
18195
18196 * stack.c (_initialize_stack): Update "frame" command help message.
18197
18198 2017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
18199
18200 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
18201
18202 2017-01-06 Yao Qi <yao.qi@linaro.org>
18203
18204 * x86-linux-nat.h: Include gdb_proc_service.h.
18205
18206 2017-01-06 Yao Qi <yao.qi@linaro.org>
18207
18208 * ser-base.h: Include serial.h.
18209
18210 2017-01-06 Yao Qi <yao.qi@linaro.org>
18211
18212 * ppc-linux-tdep.h: Include ppc-tdep.h.
18213
18214 2017-01-06 Yao Qi <yao.qi@linaro.org>
18215
18216 * nat/amd64-linux-siginfo.h: Include signal.h.
18217
18218 2017-01-06 Yao Qi <yao.qi@linaro.org>
18219
18220 * nat/aarch64-linux-hw-point.h: Include break-common.h.
18221
18222 2017-01-06 Yao Qi <yao.qi@linaro.org>
18223
18224 * mi/mi-parse.h: Include mi-cmds.h.
18225
18226 2017-01-06 Yao Qi <yao.qi@linaro.org>
18227
18228 * inf-loop.c: Don't include "target.h".
18229 * inf-loop.h: Include it here.
18230
18231 2017-01-06 Yao Qi <yao.qi@linaro.org>
18232
18233 * dfp.h: Include "dboulest.h" and "expression.h".
18234
18235 2017-01-06 Yao Qi <yao.qi@linaro.org>
18236
18237 * ax-gdb.h: Include "ax.h".
18238
18239 2017-01-06 Yao Qi <yao.qi@linaro.org>
18240
18241 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
18242 with nat/gdb_ptrace.h.
18243
18244 2017-01-05 Yao Qi <yao.qi@linaro.org>
18245
18246 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
18247 new line.
18248 (mips64_fbsd_sigframe_init): Likewise.
18249
18250 2017-01-04 John Baldwin <jhb@FreeBSD.org>
18251
18252 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
18253 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
18254
18255 2017-01-04 John Baldwin <jhb@FreeBSD.org>
18256
18257 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
18258 * NEWS: Mention new FreeBSD/mips native configuration.
18259 * config/mips/fbsd.mh: New file.
18260 * configure.host: Add mips*-*-freebsd*.
18261 * mips-fbsd-nat.c: New file.
18262
18263 2017-01-04 John Baldwin <jhb@FreeBSD.org>
18264
18265 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
18266 (ALLDEPFILES): Add mips-fbsd-tdep.c.
18267 * NEWS: Mention new FreeBSD/mips target.
18268 * configure.tgt: Add mips*-*-freebsd*.
18269 * mips-fbsd-tdep.c: New file.
18270 * mips-fbsd-tdep.h: New file.
18271
18272 2017-01-04 Yao Qi <yao.qi@linaro.org>
18273
18274 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
18275 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
18276
18277 2017-01-01 Joel Brobecker <brobecker@adacore.com>
18278
18279 Update copyright year range in all GDB files.
18280
18281 2017-01-01 Joel Brobecker <brobecker@adacore.com>
18282
18283 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
18284
18285 For older changes see ChangeLog-2016.
18286 \f
18287 Local Variables:
18288 mode: change-log
18289 left-margin: 8
18290 fill-column: 74
18291 version-control: never
18292 coding: utf-8
18293 End: