Support wildmatching in .debug_names too.
[binutils-gdb.git] / gdb / ChangeLog
1 2017-12-08 Pedro Alves <palves@redhat.com>
2
3 * dwarf2read.c (struct mapped_index_base): New, partially factored
4 out from ...
5 (struct mapped_index): ... this. Inherit mapped_index_base.
6 (mapped_index::symbol_name_slot_invalid):
7 (mapped_index::symbol_name_at): Add override marker.
8 (mapped_index::symbol_name_count): New.
9 (struct mapped_debug_names): Inherit mapped_index_base.
10 (mapped_debug_names::symbol_name_at): New.
11 (mapped_debug_names::symbol_name_count): New.
12 (mapped_index::find_name_components_bounds): Rename to ...
13 (mapped_index_base::find_name_components_bounds): ... this.
14 (mapped_index::build_name_components): Rename to ...
15 (mapped_index_base::build_name_components): ... this. Adjust to
16 use mapped_index_base::symbol_name_count and
17 mapped_index_base::symbol_name_slot_invalid.
18 (dw2_expand_symtabs_matching_symbol): Take a mapped_index_base
19 instead of a mapped_index. Use
20 dw2_expand_symtabs_matching_symbol.
21
22 2017-12-08 Pedro Alves <palves@redhat.com>
23
24 * dwarf2read.c (mapped_index::symbol_table_slot): New.
25 (mapped_index::address_table): Now a gdb::array_view of const
26 gdb_byte.
27 (mapped_index::symbol_table): Now a gdb::array_view of
28 symbol_table_slot.
29 (mapped_index::address_table_size)
30 (mapped_index::symbol_table_slots): Delete.
31 (create_addrmap_from_index): Adjust.
32 (find_slot_in_mapped_hash): Adjust.
33 (read_index_from_section): Adjust.
34 (dwarf2_read_index): Adjust.
35
36 2017-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
37 Pedro Alves <palves@redhat.com>
38
39 * defs.h (elf_sym_fns_debug_names): New declaration.
40 * dwarf2read.c: Include "hash_enum.h".
41 (mapped_debug_names): New.
42 (struct dwarf2_per_objfile): Add debug_names, debug_aranges and
43 debug_names_table.
44 (dwarf2_elf_names): Add ".debug_names" and ".debug_aranges".
45 (struct dwz_file): Add debug_names.
46 (dwarf2_per_objfile::locate_sections): Handle debug_names and
47 debug_aranges.
48 (locate_dwz_sections): Handle debug_names.
49 (create_signatured_type_table_from_debug_names)
50 (create_addrmap_from_aranges): New.
51 (dwarf2_read_index): Update function comment.
52 (dwarf5_augmentation): Moved up.
53 (read_debug_names_from_section, create_cus_from_debug_names_list)
54 (create_cus_from_debug_names, dwarf2_read_debug_names): New.
55 (dwarf5_djb_hash): Moved up.
56 (dw2_debug_names_iterator): New.
57 (read_indirect_string_at_offset): New declaration.
58 (mapped_debug_names::namei_to_name)
59 (dw2_debug_names_iterator::find_vec_in_debug_names)
60 (dw2_debug_names_iterator::next, dw2_debug_names_lookup_symbol)
61 (dw2_debug_names_dump, dw2_debug_names_expand_symtabs_for_function)
62 (dw2_debug_names_expand_symtabs_matching, dwarf2_debug_names_functions):
63 New.
64 (dwarf2_initialize_objfile): Return also elf_sym_fns_debug_names.
65 (debug_names::djb_hash): Rename it to dwarf5_djb_hash.
66 (debug_names::build): Update djb_hash caller.
67 (write_debug_names): Move out and rename augmentation to
68 dwarf5_augmentation.
69 * elfread.c (elf_sym_fns_debug_names): New.
70 * psymtab.h (dwarf2_debug_names_functions): New declaration.
71 * symfile.h (struct dwarf2_debug_sections): Add debug_names and
72 debug_aranges.
73 * xcoffread.c (dwarf2_xcoff_names): Add debug_names and debug_aranges.
74
75 2017-12-08 Pedro Alves <palves@redhat.com>
76
77 * common/hash_enum.h: New file.
78
79 2017-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
80
81 * dwarf2read.c (create_cu_from_index_list): New from ...
82 (create_cus_from_index_list): ... this function, use it.
83 (dw_expand_symtabs_matching_file_matcher)
84 (dw2_expand_symtabs_matching_one): New from ...
85 (dw2_expand_symtabs_matching): ... this function, use them.
86
87 2017-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
88
89 * defs.h (elf_sym_fns_lazy_psyms, elf_sym_fns_gdb_index): Move here
90 declarations from elfread.c.
91 (dwarf2_initialize_objfile): Change return value.
92 * elfread.c (elf_sym_fns_lazy_psyms, elf_sym_fns_gdb_index): Move these
93 declarations to defs.h.
94 (elf_symfile_read): Adjust dwarf2_initialize_objfile caller.
95 * symfile.h (dwarf2_initialize_objfile): Change return type.
96
97 2017-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
98 Pedro Alves <palves@redhat.com>
99
100 * contrib/gdb-add-index.sh (index): Rename to ...
101 (index4): ... here.
102 (index5, debugstr, debugstrmerge, debugstrerr): New variables.
103 Support also .debug_names and .debug_str.
104 * dwarf2read.c: Include cmath, set, list.
105 (INDEX_SUFFIX): Rename to ...
106 (INDEX4_SUFFIX): ... here.
107 (INDEX5_SUFFIX, DEBUG_STR_SUFFIX): New.
108 (file_write(FILE *, const void *, size_t)): New.
109 (file_write(FILE *, const std::vector<Elem, Alloc> &)): New.
110 (data_buf::append_unsigned_leb128, data_buf::empty): New.
111 (data_buf::file_write): Use ::file_write.
112 (data_buf::c_str, dwarf5_djb_hash, debug_names)
113 (check_dwarf64_offsets): New.
114 (psyms_seen_size, write_gdbindex): New from
115 write_psymtabs_to_index code.
116 (dwarf5_gdb_augmentation, write_debug_names, assert_file_size)
117 (enum dw_index_kind): New.
118 (write_psymtabs_to_index): New parameter index_kind. Support
119 filename_str and out_file_str. Move code to write_gdbindex,
120 possibly call write_debug_names.
121 (save_gdb_index_command): New parameter -dwarf-5.
122 (_initialize_dwarf2_read): Document the new parameter -dwarf-5.
123
124 2017-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
125 Pedro Alves <palves@redhat.com>
126
127 * contrib/cc-with-tweaks.sh: Change interpreter to bash, incl. initial
128 comment.
129 (GDB_ADD_INDEX): New variable.
130 <$want_index>: Call $GDB_ADD_INDEX.
131
132 2017-12-08 Sergio Durigan Junior <sergiodj@redhat.com>
133
134 * dtrace-probe.c (dtrace_process_dof_probe): Do not declare a new
135 "expression_up" inside the TRY block.
136
137 2017-12-08 Yao Qi <yao.qi@linaro.org>
138
139 * breakpoint.c (update_watchpoint): Call
140 address_significant.
141
142 2017-12-08 Yao Qi <yao.qi@linaro.org>
143
144 * breakpoint.c (adjust_breakpoint_address): Call
145 address_significant.
146
147 2017-12-08 Yao Qi <yao.qi@linaro.org>
148
149 * aarch64-tdep.c (aarch64_gdbarch_init): Install gdbarch
150 significant_addr_bit.
151 * gdbarch.sh (significant_addr_bit): New.
152 * gdbarch.c, gdbarch.h: Re-generated.
153 * target.c (memory_xfer_partial): Call address_significant.
154 * utils.c (address_significant): New function.
155 * utils.h (address_significant): Declare.
156
157 2017-12-08 Tom Tromey <tom@tromey.com>
158
159 * printcmd.c (ui_printf): Update. Use std::vector.
160 * common/format.h (struct format_piece): Add constructor.
161 <string>: Now const.
162 (class format_pieces): New class.
163 (parse_format_string, free_format_pieces)
164 (free_format_pieces_cleanup): Remove.
165 * common/format.c (format_pieces::format_pieces): Rename from
166 parse_format_string. Update.
167 (free_format_pieces, free_format_pieces_cleanup): Remove.
168 * breakpoint.c (parse_cmd_to_aexpr): Update. Use std::vector.
169 * ax-gdb.h (gen_printf): Remove argument.
170 * ax-gdb.c (gen_printf): Remove "frags" argument.
171 (maint_agent_printf_command): Update. Use std::vector.
172
173 2017-12-08 Yao Qi <yao.qi@linaro.org>
174
175 PR breakpionts/22567
176 * linespec.c (minsym_found): Set sal.section.
177
178 2017-12-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
179
180 * configure.tgt (s390*-*-linux*): Add symfile-mem.o.
181
182 2017-12-07 Keith Seitz <keiths@redhat.com>
183
184 PR breakpoints/22569
185 * location.c (string_to_explicit_location): When terminating
186 parsing early, break out of enclosing loop instead of returning.
187
188 2017-12-07 Keith Seitz <keiths@redhat.com>
189
190 * NEWS (New commands): Mention set/show print type nested-type-limit.
191 * c-typeprint.c (c_type_print_base): Print out nested types.
192 * dwarf2read.c (struct typedef_field_list): Rename to ...
193 (struct decl_field_list): ... this. Change all uses.
194 (struct field_info) <nested_types_list, nested_types_list_count>:
195 New fields.
196 (add_partial_symbol): Look for nested type definitions in C++, too.
197 (dwarf2_add_typedef): Rename to ...
198 (dwarf2_add_type_defn): ... this.
199 (type_can_define_types): New function.
200 Update assertion to use type_can_define_types.
201 Permit NULL for a field's name.
202 (process_structure_scope): Handle child DIEs of types that can
203 define types.
204 Copy the list of nested types into the type struct.
205 * gdbtypes.h (struct typedef_field): Rename to ...
206 (struct decl_field): ... this. Change all uses.
207 [is_protected, is_private]: New fields.
208 (struct cplus_struct_type) <nested_types, nested_types_count>: New
209 fields.
210 (TYPE_NESTED_TYPES_ARRAY, TYPE_NESTED_TYPES_FIELD)
211 (TYPE_NESTED_TYPES_FIELD_NAME, TYPE_NESTED_TYPES_FIELD_TYPE)
212 (TYPE_NESTED_TYPES_COUNT, TYPE_NESTED_TYPES_FIELD_PROTECTED)
213 (TYPE_NESTED_TYPES_FIELD_PRIVATE): New macros.
214 * typeprint.c (type_print_raw_options, default_ptype_flags): Add
215 default value for print_nested_type_limit.
216 (print_nested_type_limit): New static variable.
217 (set_print_type_nested_types, show_print_type_nested_types): New
218 functions.
219 (_initialize_typeprint): Register new commands for set/show
220 `print-nested-type-limit'.
221 * typeprint.h (struct type_print_options) [print_nested_type_limit]:
222 New field.
223
224 2017-12-07 Tom Tromey <tom@tromey.com>
225
226 PR breakpoints/22511:
227 * breakpoint.c (commands_command_1): Don't throw an exception when
228 no commands have been read.
229
230 2017-12-07 Adam Stylinski <adam.stylinski@etegent.com>
231
232 PR c++/21222
233 * target-descriptions.c (print_c_tdesc::visit_pre): Change type of
234 range-for variable.
235
236 2017-12-07 Simon Marchi <simon.marchi@ericsson.com>
237
238 * common/selftest.h (struct selftest): Add virtual destructor.
239
240 2017-12-07 Phil Muldoon <pmuldoon@redhat.com>
241
242 * python/py-breakpoint.c (bppy_init): Use string_to_event_location
243 over basic location code. Implement explicit location keywords.
244 (bppy_init_validate_args): New function.
245 * NEWS: Document Python explicit breakpoint locations.
246
247 2017-12-07 Joel Brobecker <brobecker@adacore.com>
248
249 * MAINTAINERS: Restore target entries for m68hc11-elf,
250 score-elf and xstormy16-elf, incorrectly removed in a previous
251 patch meant to only update the list of active maintainers.
252
253 2017-12-06 Pedro Alves <palves@redhat.com>
254
255 * break-catch-syscall.c (insert_catch_syscall)
256 (remove_catch_syscall): Adjust to pass reference to
257 inf_data->syscalls_counts directly via gdb::array_view.
258 * fbsd-nat.c (fbsd_set_syscall_catchpoint): Adjust to use bool
259 and gdb::array_view.
260 * linux-nat.c (linux_child_set_syscall_catchpoint): Likewise.
261 * remote.c (remote_set_syscall_catchpoint): Likewise.
262 * target-debug.h (target_debug_print_bool): New.
263 (define target_debug_print_gdb_array_view_const_int): New.
264 * target-delegates.c: Regenerate.
265 * target.h (target_ops) <to_set_syscall_catchpoint>: Use
266 gdb::array_view and bool.
267 (target_set_syscall_catchpoint): Likewise.
268
269 2017-12-06 Simon Marchi <simon.marchi@ericsson.com>
270
271 * break-catch-syscall.c (catch_syscall_completer): Get pointers
272 to syscall group strings after building the string vector.
273
274 2017-12-06 Pedro Alves <palves@redhat.com>
275
276 * remote.c (remote_query_supported): Don't send "xmlRegisters=" if
277 "qXfer:features:read"" is disabled.
278 (remote_write_qxfer, remote_read_qxfer, remote_search_memory):
279 Check packet_config_support instead of packet->support directly.
280
281 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
282
283 * target-descriptions.c (struct tdesc_feature) <registers>: Use
284 tdesc_reg_up typedef.
285 (struct target_desc) <features>: Use tdesc_feature_up typedef.
286
287 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
288
289 * target-descriptions.c (struct tdesc_type): Use default
290 destructor.
291 <u>: Remove.
292 <accept>: Remove.
293 (struct tdesc_type_builtin): New.
294 (struct tdesc_type_vector): New.
295 (struct tdesc_type_with_fields): New.
296 (tdesc_predefined_types): Change type to tdesc_type_builtin[].
297 (tdesc_gdb_type): Remove.
298 (tdesc_register_type): Adjust.
299 (tdesc_create_vector): Create tdesc_type_vector.
300 (tdesc_create_struct): Create tdesc_type_with_fields.
301 (tdesc_set_struct_size): Change parameter type.
302 (tdesc_create_union): Create tdesc_type_with_fields.
303 (tdesc_create_flags): Likewise.
304 (tdesc_create_enum): Likewise.
305 (tdesc_add_field): Change parameter type.
306 (tdesc_add_typed_bitfield): Likewise.
307 (tdesc_add_bitfield): Likewise.
308 (tdesc_add_flag): Likewise.
309 (tdesc_add_enum_value): Likewise.
310 (print_c_tdesc) <visit>: Remove overload with tdesc_type
311 parameter, add overloads for tdesc_type_builtin,
312 tdesc_type_with_fields and tdesc_type_vector.
313 <m_printed_type>: Remove.
314 <m_printed_element_type, m_printed_type_with_fields>: Add.
315 * target-descriptions.h (tdesc_create_enum): Change return type.
316 (tdesc_add_typed_bitfield): Change parameter type.
317 (tdesc_add_enum_value): Change parameter type.
318 * xml-tdesc.c (struct tdesc_parsing_data) <current_type>: Change
319 type to tdesc_type_with_fields.
320 (tdesc_start_struct): Adjust.
321 (tdesc_start_flags): Adjust.
322 (tdesc_start_enum): Adjust.
323 (tdesc_start_field): Adjust.
324 * arch/tdesc.h (struct tdesc_type_builtin): Forward-declare.
325 (struct tdesc_type_vector): Forward-declare.
326 (struct tdesc_type_with_fields): Forward-declare.
327 (tdesc_create_struct): Change return type.
328 (tdesc_create_union): Likewise.
329 (tdesc_create_flags): Likewise.
330 (tdesc_add_field): Change parameter type.
331 (tdesc_set_struct_size): Likewise.
332 (tdesc_add_bitfield): Likewise.
333 (tdesc_add_flag): Likewise.
334 * features: Re-generate C files.
335
336 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
337
338 * target-descriptions.c (tdesc_arch_reg): Remove typedef.
339 (struct tdesc_arch_reg): Add constructor.
340 (DEF_VEC_O (tdesc_arch_reg)): Remove.
341 (struct tdesc_arch_data): Initialize fields.
342 <arch_regs>: Change type to std::vector.
343 (target_find_description): Adjust.
344 (tdesc_find_type): Adjust.
345 (tdesc_data_init): Call tdesc_arch_data constructor.
346 (tdesc_data_alloc): Allocate tdesc_arch_data with new.
347 (tdesc_data_cleanup): Free data with delete.
348 (tdesc_numbered_register): Adjust.
349 (tdesc_find_arch_register): Adjust.
350 (tdesc_use_registers): Adjust.
351
352 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
353
354 * target-descriptions.c (tdesc_type_field): Remove typedef.
355 (DEF_VEC_O (tdesc_type_field)): Remove.
356 (struct tdesc_type_field): Add constructor.
357 <name>: Change type to std::string.
358 (struct tdesc_type) <tdesc_type>: Instantiate vector if the type
359 kind uses it.
360 <~tdesc_type>: Destroy vector if the type kind uses it.
361 <u::u::fields>: Change type to std::vector.
362 (tdesc_gdb_type): Adjust.
363 (tdesc_add_field): Adjust.
364 (tdesc_add_typed_bitfield): Adjust.
365 (tdesc_add_field): Adjust.
366 (tdesc_add_enum_value): Adjust.
367 (class print_c_tdesc) <visit>: Adjust.
368
369 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
370
371 * target-descriptions.c (struct tdesc_type) <name>: Change type
372 to std::string.
373 <~tdesc_type>: Don't manually free name.
374 <operator==>: Adjust.
375 (tdesc_named_type): Adjust.
376 (tdesc_find_type): Adjust.
377 (tdesc_gdb_type): Adjust.
378 (class print_c_tdesc) <visit>: Adjust.
379
380 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
381
382 * target-descriptions.c (tdesc_type_p): Remove typedef.
383 (DEF_VEC_P (tdesc_type_p)): Remove.
384 (struct tdesc_feature) <types>: Change type to std::vector.
385 <~tdesc_feature>: Replace with default implementation.
386 <accept>: Adjust.
387 (tdesc_named_type): Adjust.
388 (tdesc_create_vector): Adjust.
389 (tdesc_create_struct): Adjust.
390 (tdesc_create_union): Adjust.
391 (tdesc_create_flags): Adjust.
392 (tdesc_create_enum): Adjust.
393
394 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
395
396 * target-descriptions.c (struct tdesc_reg) <tdesc_reg>: Change
397 type of name_ parameter, adjust to std::string change.
398 <name, group, type>: Change type to std::string.
399 <~tdesc_reg>: Replace with default implementation.
400 <operator==>: Adjust.
401 (tdesc_find_register_early): Adjust.
402 (tdesc_register_name): Adjust.
403 (tdesc_register_type): Adjust.
404 (tdesc_register_in_reggroup_p): Adjust.
405 (class print_c_tdesc) <visit>: Adjust.
406 (class print_c_feature) <visit>: Adjust.
407 * features/arc-arcompact.c: Re-generate.
408 * features/arc-v2.c: Re-generate.
409
410 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
411
412 * target-descriptions.c (tdesc_reg_p): Remove typedef.
413 (DEF_VEC_P (tdesc_reg_p)): Remove.
414 (struct tdesc_feature) <registers>: Change type to std::vector.
415 <~tdesc_feature>: Don't manually free registers.
416 <accept>: Adjust.
417 <operator==>: Adjust.
418 (tdesc_has_registers): Adjust.
419 (tdesc_find_register_early): Adjust.
420 (tdesc_use_registers): Adjust.
421 (tdesc_create_reg): Adjust.
422
423 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
424
425 * target-descriptions.c (tdesc_feature) <name>: Change type to
426 std::string.
427 <~tdesc_feature>: Don't manually free name.
428 <operator==>: Adjust.
429 (tdesc_find_feature): Adjust.
430 (tdesc_feature_name): Adjust.
431 (class print_c_tdesc) <visit_pre>: Adjust.
432 (class print_c_feature) <visit_pre>: Adjust.
433
434 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
435
436 * target-descriptions.c (tdesc_feature_p): Remove typedef.
437 (DEF_VEC_P (tdesc_feature_p)): Remove.
438 (struct target_desc) <features>: Change type to std::vector.
439 <~target_desc>: Replace with default implementation.
440 <accept>: Adjust.
441 <operator==>: Adjust.
442 (tdesc_has_registers): Adjust.
443 (tdesc_find_feature): Adjust.
444 (tdesc_use_registers): Adjust.
445 (tdesc_create_feature): Adjust.
446
447 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
448
449 * target-descriptions.c (arch_p): Remove typedef.
450 (DEF_VEC_P (arch_p)): Remove.
451 (struct target_desc) <compatible>: Change type to std::vector.
452 <~target_desc>: Don't manually free compatible.
453 (tdesc_compatible_p): Adjust.
454 (tdesc_add_compatible): Adjust.
455 (class print_c_tdesc) <visit_pre>: Adjust.
456
457 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
458
459 * target-descriptions.c (property_s): Remove typedef.
460 (DEF_VEC_O (property_s)): Remove.
461 (struct target_desc) <properties>: Make an std::vector.
462 <~target_desc>: Don't manually free properties.
463 (tdesc_property): Adjust.
464 (set_tdesc_property): Adjust.
465 (class print_c_tdesc) <visit_pre>: Adjust.
466
467 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
468
469 * common/gdb_assert.h (gdb_static_assert): Redefine using
470 static_assert.
471
472 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
473
474 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
475 unused variables.
476 (ada_is_redundant_range_encoding): Likewise.
477 * ada-varobj.c (ada_varobj_get_value_of_array_variable):
478 Likewise.
479 * alpha-tdep.c (alpha_software_single_step): Likewise.
480 * arm-tdep.c (_initialize_arm_tdep): Likewise.
481 * auto-load.c (info_auto_load_cmd): Likewise.
482 * break-catch-syscall.c (insert_catch_syscall): Likewise.
483 (remove_catch_syscall): Likewise.
484 * breakpoint.c (condition_completer): Likewise.
485 (clear_command): Likewise.
486 (update_breakpoint_locations): Likewise.
487 * btrace.c (btrace_disable): Likewise.
488 (btrace_teardown): Likewise.
489 (btrace_maint_update_pt_packets): Likewise.
490 (maint_btrace_clear_cmd): Likewise.
491 * cli/cli-decode.c (lookup_cmd_1): Likewise.
492 (lookup_cmd_composition): Likewise.
493 * cli/cli-dump.c (scan_filename): Likewise.
494 (restore_command): Likewise.
495 * compile/compile-loc2c.c (compute_stack_depth): Likewise.
496 * compile/compile-object-load.c (compile_object_load): Likewise.
497 * compile/compile-object-run.c (compile_object_run): Likewise.
498 * compile/compile.c (compile_to_object): Likewise.
499 * completer.c (filename_completer): Likewise.
500 (complete_files_symbols): Likewise.
501 (complete_expression): Likewise.
502 * corelow.c (core_open): Likewise.
503 * ctf.c (ctf_start): Likewise.
504 (ctf_write_status): Likewise.
505 (ctf_write_uploaded_tsv): Likewise.
506 (ctf_write_definition_end): Likewise.
507 (ctf_open_dir): Likewise.
508 (ctf_xfer_partial): Likewise.
509 (ctf_trace_find): Likewise.
510 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
511 Likewise.
512 * dwarf2loc.c (allocate_piece_closure): Likewise.
513 (indirect_pieced_value): Likewise.
514 (dwarf2_evaluate_loc_desc_full): Likewise.
515 * dwarf2read.c (dw2_expand_marked_cus): Likewise.
516 (dw2_expand_symtabs_matching): Likewise.
517 (dw2_map_symbol_filenames): Likewise.
518 (read_and_check_comp_unit_head): Likewise.
519 (read_cutu_die_from_dwo): Likewise.
520 (lookup_dwo_unit): Likewise.
521 (read_comp_units_from_section): Likewise.
522 (dwarf2_compute_name): Likewise.
523 (handle_DW_AT_stmt_list): Likewise.
524 (create_cus_hash_table): Likewise.
525 (create_dwp_v2_section): Likewise.
526 (dwarf2_rnglists_process): Likewise.
527 (dwarf2_ranges_process): Likewise.
528 (dwarf2_record_block_ranges): Likewise.
529 (is_vtable_name): Likewise.
530 (read_formatted_entries): Likewise.
531 (skip_form_bytes): Likewise.
532 * elfread.c (elf_symtab_read): Likewise.
533 * exec.c (exec_file_command): Likewise.
534 * f-valprint.c (f_val_print): Likewise.
535 (info_common_command_for_block): Likewise.
536 * guile/guile.c (initialize_scheme_side): Likewise.
537 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Likewise.
538 * guile/scm-cmd.c (cmdscm_completer): Likewise.
539 (gdbscm_register_command_x): Likewise.
540 * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
541 * guile/scm-param.c (gdbscm_parameter_value): Likewise.
542 * guile/scm-ports.c (file_port_magic): Likewise.
543 * guile/scm-pretty-print.c (ppscm_search_pp_list): Likewise.
544 (ppscm_pretty_print_one_value): Likewise.
545 (ppscm_print_children): Likewise.
546 * guile/scm-string.c (gdbscm_string_to_argv): Likewise.
547 * guile/scm-symtab.c (gdbscm_sal_symtab): Likewise.
548 * guile/scm-type.c (gdbscm_type_next_field_x): Likewise.
549 * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
550 * i386-tdep.c (i386_register_reggroup_p): Likewise.
551 * infcmd.c (run_command_1): Likewise.
552 (until_next_fsm_clean_up): Likewise.
553 * linespec.c (linespec_complete): Likewise.
554 (find_label_symbols): Likewise.
555 * m2-valprint.c (m2_val_print): Likewise.
556 * memattr.c (require_user_regions): Likewise.
557 (lookup_mem_region): Likewise.
558 (disable_mem_command): Likewise.
559 (mem_delete): Likewise.
560 * mep-tdep.c (mep_register_name): Likewise.
561 (mep_analyze_prologue): Likewise.
562 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Likewise.
563 * mi/mi-interp.c (mi_on_sync_execution_done): Likewise.
564 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
565 * microblaze-linux-tdep.c (microblaze_linux_init_abi): Likewise.
566 * minidebug.c (lzma_open): Likewise.
567 * minsyms.c (lookup_minimal_symbol): Likewise.
568 * mips-linux-tdep.c (mips64_fill_fpregset): Likewise.
569 * mips-tdep.c (mips_stub_frame_sniffer): Likewise.
570 (mips_o64_return_value): Likewise.
571 (mips_single_step_through_delay): Likewise.
572 (_initialize_mips_tdep): Likewise.
573 * nios2-tdep.c (nios2_push_dummy_call): Likewise.
574 (nios2_software_single_step): Likewise.
575 * parse.c (find_minsym_type_and_address): Likewise.
576 * psymtab.c (psym_relocate): Likewise.
577 * python/py-breakpoint.c (bppy_get_commands): Likewise.
578 (gdbpy_breakpoint_modified): Likewise.
579 * python/py-infevents.c (create_inferior_call_event_object):
580 Likewise.
581 * python/py-record-btrace.c (btpy_list_item): Likewise.
582 * python/py-type.c (typy_str): Likewise.
583 * python/py-value.c (valpy_call): Likewise.
584 * python/python.c (do_start_initialization): Likewise.
585 * record-btrace.c (record_btrace_insn_history_range): Likewise.
586 (record_btrace_call_history_range): Likewise.
587 (record_btrace_record_method): Likewise.
588 (record_btrace_xfer_partial): Likewise.
589 (btrace_get_frame_function): Likewise.
590 * record-full.c (record_full_open): Likewise.
591 * record.c (get_context_size): Likewise.
592 * registry.h (DEFINE_REGISTRY): Likewise.
593 * remote-fileio.c (remote_fileio_request): Likewise.
594 * remote.c (remote_update_thread_list): Likewise.
595 (remote_check_symbols): Likewise.
596 (remote_commit_resume): Likewise.
597 (remote_interrupt): Likewise.
598 (remote_insert_breakpoint): Likewise.
599 (compare_sections_command): Likewise.
600 * rust-exp.y (super_name): Likewise.
601 (lex_string): Likewise.
602 (convert_ast_to_type): Likewise.
603 (convert_ast_to_expression): Likewise.
604 * rust-lang.c (rust_print_struct_def): Likewise.
605 (rust_print_type): Likewise.
606 (rust_evaluate_subexp): Likewise.
607 * rx-tdep.c (rx_register_type): Likewise.
608 * ser-event.c (serial_event_clear): Likewise.
609 * serial.c (serial_open): Likewise.
610 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
611 * symfile.c (section_is_overlay): Likewise.
612 (overlay_unmapped_address): Likewise.
613 (overlay_mapped_address): Likewise.
614 (simple_overlay_update_1): Likewise.
615 (simple_overlay_update): Likewise.
616 * symtab.c (symbol_find_demangled_name): Likewise.
617 (search_symbols): Likewise.
618 * target-descriptions.c (tdesc_predefined_type): Likewise.
619 * target.c (target_commit_resume): Likewise.
620 * thread.c (print_selected_thread_frame): Likewise.
621 * top.c (new_ui_command): Likewise.
622 (gdb_readline_no_editing): Likewise.
623 * tracefile-tfile.c (tfile_open): Likewise.
624 * tracepoint.c (create_tsv_from_upload): Likewise.
625 * utils.c (quit): Likewise.
626 (defaulted_query): Likewise.
627 * valarith.c (value_concat): Likewise.
628 * xml-syscall.c (xml_list_syscalls_by_group): Likewise.
629 * xml-tdesc.c (target_fetch_description_xml): Likewise.
630 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
631 (xtensa_pseudo_register_write): Likewise.
632
633 2017-12-04 Tom Tromey <tom@tromey.com>
634
635 * NEWS: Mention Rust trait object inspection.
636
637 2017-12-04 Pedro Alves <palves@redhat.com>
638
639 PR gdb/22499
640 * amd64-tdep.c (amd64_insn::rex_offset): Rename to...
641 (amd64_insn::enc_prefix_offset): ... this, and tweak comment.
642 (vex2_prefix_p, vex3_prefix_p): New functions.
643 (amd64_get_insn_details): Adjust to rename. Also skip VEX2 and
644 VEX3 prefixes.
645 (fixup_riprel): Set VEX3.!B.
646
647 2017-12-03 Simon Marchi <simon.marchi@ericsson.com>
648
649 * target.h (mem_region_vector): Remove.
650 (struct target_ops) <to_memory_map>: Change return type to
651 std::vector<mem_region>.
652 * target-debug.h (target_debug_print_mem_region_vector): Rename
653 to ...
654 (target_debug_print_std_vector_mem_region): ... this.
655 * target-delegates.c: Re-generate.
656
657 2017-12-03 Pedro Alves <palves@redhat.com>
658
659 * make-target-delegates (munge_type): Also munge '<', '>', and
660 ':'. Avoid double underscores in identifiers, and trailing
661 underscores.
662 * target-debug.h
663 (target_debug_print_VEC_static_tracepoint_marker_p__p): Rename to
664 ...
665 (target_debug_print_VEC_static_tracepoint_marker_p_p): ... this.
666 * target-delegates.c: Regenerate.
667
668 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
669
670 * common/poison.h (XDELETE): Fix typo.
671
672 2017-12-01 Andrew Cagney <cagney@redhat.com>
673 Joel Brobecker <brobecker@adacore.com>
674 Sergio Durigan Junior <sergiodj@redhat.com>
675
676 * NEWS (Changes since GDB 8.0: Mention new '--readnever'
677 feature.
678 * coffread.c (coff_symfile_read): Do not map over sections with
679 'coff_locate_sections' if readnever is on.
680 * dwarf2read.c (dwarf2_has_info): Return 0 if
681 readnever is on.
682 * elfread.c (elf_symfile_read): Do not map over sections with
683 'elf_locate_sections' if readnever is on.
684 * main.c (validate_readnow_readnever): New function.
685 (captured_main_1): Add support for --readnever.
686 (print_gdb_help): Document --readnever.
687 * objfile-flags.h (enum objfile_flag) <OBJF_READNEVER>: New
688 flag.
689 * symfile.c (readnever_symbol_files): New global.
690 (symbol_file_add_with_addrs): Set 'OBJF_READNEVER' when
691 'READNEVER_SYMBOL_FILES' is set.
692 (validate_readnow_readnever): New function.
693 (symbol_file_command): Handle '-readnever' option.
694 Call 'validate_readnow_readnever'.
695 (add_symbol_file_command): Handle '-readnever' option.
696 Call 'validate_readnow_readnever'.
697 (_initialize_symfile): Document new '-readnever' option for
698 both 'symbol-file' and 'add-symbol-file' commands.
699 * top.h (readnever_symbol_files): New extern global.
700 * xcoffread.c (xcoff_initial_scan): Do not read debug
701 information if readnever is on.
702
703 2017-12-01 Sergio Durigan Junior <sergiodj@redhat.com>
704
705 * symfile.c (symbol_file_command): Call
706 'symbol_file_add_main_1' only after processing all command
707 line options.
708 (add_symbol_file_command): Modify logic to make arguments
709 position-independent.
710
711 2017-12-01 Joel Brobecker <brobecker@adacore.com>
712
713 * ada-lang.c (symbol_list_obstack): Delete.
714 (resolve_subexp): Make sure "candidates" gets xfree'ed.
715 (ada_lookup_symbol_list_worker): Remove the limitation that
716 the result is only good until the next call, now making it
717 the responsibility of the caller to free the result when no
718 longer needed. Adjust the function's intro comment accordingly.
719 (ada_lookup_symbol_list): Adjust the function's intro comment.
720 (ada_iterate_over_symbols): Make sure "results" gets xfree'ed.
721 (ada_lookup_encoded_symbol, get_var_value): Likewise.
722 (_initialize_ada_language): Remove symbol_list_obstack
723 initialization.
724 * ada-exp.y (block_lookup): Make sure "syms" gets xfree'ed.
725 (write_var_or_type, write_name_assoc): Likewise.
726
727 2017-12-01 Tom Tromey <tom@tromey.com>
728
729 * Makefile.in (all_deps_files): New variable.
730 Include .Po files using all_deps_files.
731
732 2017-12-01 Joel Brobecker <brobecker@adacore.com>
733
734 * MAINTAINERS: Update list of maintainers, moving those who
735 stepped down or became inactive to the "Past Maintainers"
736 section.
737
738 2017-11-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
739
740 * configure.ac Don't check for sys/fault.h, sys/syscall.h,
741 sys/proc.h.
742 (NEW_PROC_API): Remove.
743 (prsysent_t, pr_sigset_t, pr_sigaction64_t, pr_siginfo64_t):
744 Likewise.
745 * common/common.m4 (GDB_AC_COMMON): Don't check for sys/syscall.h.
746 * configure: Regenerate.
747 * config.in: Regenerate.
748 * gdbserver/configure: Regenerate.
749 * gdbserver/config.in: Regenerate.
750
751 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Remove
752 NEW_PROC_API test.
753 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Likewise.
754
755 * linux-btrace.c: Remove HAVE_SYS_SYSCALL_H test.
756
757 * proc-api.c: Remove !NEW_PROC_API support.
758 Remove HAVE_SYS_PROC_H and HAVE_SYS_USER_H tests.
759 Remove tests for macros always defined on Solaris.
760 * proc-events.c: Remove !NEW_PROC_API support.
761 Remove Remove HAVE_SYS_SYSCALL_H, HAVE_SYS_PROC_H and
762 HAVE_SYS_USER_H tests.
763 (init_syscall_table): Remove non-Solaris syscalls.
764 Remove tests for syscalls present on all Solaris versions.
765 Add missing Solaris 10+ syscalls.
766 (signal_table): Remove non-Solaris signals.
767 Remove tests for signals present on all Solaris versions.
768 (fault_table): Remove non-Solaris faults.
769 Remove tests for faults present on all Solaris versions.
770 * proc-flags.c: Remove !NEW_PROC_API support.
771 (pr_flag_table): Remove non-Solaris and pre-Solaris 7 comments.
772 Remove non-Solaris flags.
773 * proc-why.c: Remove !NEW_PROC_API support.
774 (pr_why_table): Remove meaningless comments.
775 Remove tests for reasons present on all Solaris versions.
776 Remove OSF/1 cases.
777 (proc_prettyfprint_why): Likewise.
778
779 * procfs.c: Remove !NEW_PROC_API and DYNAMIC_SYSCALLS support.
780 Remove HAVE_SYS_FAULT_H and HAVE_SYS_SYSCALL_H tests.
781 Remove WA_READ test, IRIX watchpoint support.
782 (gdb_sigset_t, gdb_sigaction_t, gdb_siginfo_t): Replace by base
783 types. Change users.
784 (gdb_praddset, gdb_prdelset, gdb_premptysysset, gdb_praddsysset)
785 (gdb_prdelset, gdb_pr_issyssetmember): Replace by base macros.
786 Change callers.
787 Remove CTL_PROC_NAME_FMT tests.
788 (gdb_prstatus_t, gdb_lwpstatus_t): Replace by base types. Change
789 users.
790 (sysset_t_size): Remove. Use sizeof (sysset_t) in callers.
791 Remove PROCFS_DONT_PIOCSSIG_CURSIG support.
792 (proc_modify_flag): Replace GDBRESET by PCUNSET.
793 Remove PR_ASYNC, PR_KLC tests.
794 (proc_unset_inherit_on_fork): Remove PR_ASYNC test.
795 (proc_parent_pid): Remove PCWATCH etc. tests.
796 (proc_set_watchpoint): Remove !PCWATCH && !PIOCSWATCH support.
797 Remove PCAGENT test.
798 (proc_get_nthreads) [PIOCNTHR && PIOCTLIST]: Remove.
799 Remove SYS_lwpcreate || SYS_lwp_create test.
800 (proc_get_current_thread): Likewise.
801 [PIOCNTHR && PIOCTLIST]: Remove.
802 [PIOCLSTATUS]: Remove.
803 (procfs_debug_inferior): Remove non-Solaris cases, conditionals.
804 [PRFS_STOPEXEC]: Remove.
805 (syscall_is_lwp_exit): Remove non-Solaris cases, conditionals.
806 (syscall_is_exit): Likewise.
807 (syscall_is_exec): Likewise.
808 (syscall_is_lwp_create): Likewise.
809 Remove SYS_syssgi support.
810 (procfs_wait): Remove PR_ASYNC, !PIOCSSPCACT tests.
811 [SYS_syssgi]: Remove.
812 Remove non-Solaris cases, conditionals.
813 (unconditionally_kill_inferior) [PROCFS_NEED_PIOCSSIG_FOR_KILL]:
814 Remove.
815 (procfs_init_inferior) [SYS_syssgi]: Remove.
816 (procfs_set_exec_trap) [PRFS_STOPEXEC]: Remove.
817 (procfs_inferior_created) [SYS_syssgi]: Remove.
818 (procfs_set_watchpoint): Remove !AIX5 test.
819 (procfs_stopped_by_watchpoint): Remove FLTWATCH test, FLTKWATCH
820 case.
821 (mappingflags) [MA_PHYS]: Remove.
822 (info_mappings_callback): Remove PCAGENT test.
823 Remove PIOCOPENLWP || PCAGENT test.
824
825 2017-11-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
826
827 * sol-thread.c (info_solthreads): Constify args.
828 Cast args to void *.
829
830 2017-11-29 John Baldwin <jhb@FreeBSD.org>
831
832 * target-float.c [HAVE_LIBMPFR]: Define MPFR_USE_INTMAX_T.
833
834 2017-11-29 Joel Brobecker <brobecker@adacore.com>
835
836 * ada-lang.c (to_fixed_range_type): Make sure that the size
837 of the range type being returned is the same as the size
838 of the range type being fixed.
839
840 2017-11-29 Pedro Alves <palves@redhat.com>
841
842 PR c++/19436
843 * NEWS: Mention setting breakpoints on functions with C++ ABI
844 tags.
845 * completer.h (completion_match_for_lcd) <match,
846 mark_ignored_range>: New methods.
847 <finish>: Consider ignored ranges.
848 <clear>: Clear ignored ranges.
849 <m_ignored_ranges, m_finished_storage>: New fields.
850 * cp-support.c (cp_search_name_hash): Ignore ABI tags.
851 (cp_symbol_name_matches_1, cp_fq_symbol_name_matches): Pass the
852 completion_match_for_lcd pointer to strncmp_iw_with_mode.
853 (test_cp_symbol_name_cmp): Add [abi:...] tags unit tests.
854 * language.c (default_symbol_name_matcher): Pass the
855 completion_match_for_lcd pointer to strncmp_iw_with_mode.
856 * linespec.c (linespec_lexer_lex_string): Don't tokenize ABI tags.
857 * utils.c (skip_abi_tag): New function.
858 (strncmp_iw_with_mode): Add completion_match_for_lcd parameter.
859 Handle ABI tags.
860 * utils.h (strncmp_iw_with_mode): Add completion_match_for_lcd
861 parameter.
862
863 2017-11-29 Pedro Alves <palves@redhat.com>
864
865 PR c++/19436
866 * NEWS: Mention setting breakpoints on functions with C++ ABI
867 tags.
868 * completer.h (completion_match_for_lcd) <match,
869 mark_ignored_range>: New methods.
870 <finish>: Consider ignored ranges.
871 <clear>: Clear ignored ranges.
872 <m_ignored_ranges, m_finished_storage>: New fields.
873 * cp-support.c (cp_search_name_hash): Ignore ABI tags.
874 (cp_symbol_name_matches_1, cp_fq_symbol_name_matches): Pass the
875 completion_match_for_lcd pointer to strncmp_iw_with_mode.
876 (test_cp_symbol_name_cmp): Add [abi:...] tags unit tests.
877 * language.c (default_symbol_name_matcher): Pass the
878 completion_match_for_lcd pointer to strncmp_iw_with_mode.
879 * linespec.c (linespec_lexer_lex_string): Don't tokenize ABI tags.
880 * utils.c (skip_abi_tag): New function.
881 (strncmp_iw_with_mode): Add completion_match_for_lcd parameter.
882 Handle ABI tags.
883 * utils.h (strncmp_iw_with_mode): Add completion_match_for_lcd
884 parameter.
885
886 2017-11-29 Pedro Alves <palves@redhat.com>
887
888 * NEWS: Mention that breakpoints on C++ functions are now set on
889 on all namespaces/classes by default, and mention "break
890 -qualified".
891 * ax-gdb.c (agent_command_1): Adjust to pass a
892 symbol_name_match_type to new_linespec_location.
893 * breakpoint.c (parse_breakpoint_sals): Adjust to
894 get_linespec_location's return type change.
895 (strace_marker_create_sals_from_location): Adjust to pass a
896 symbol_name_match_type to new_linespec_location.
897 (strace_marker_decode_location): Adjust to get_linespec_location's
898 return type change.
899 (strace_command): Adjust to pass a symbol_name_match_type to
900 new_linespec_location.
901 (LOCATION_HELP_STRING): Add paragraph about wildmatching, and
902 mention "-qualified".
903 * c-lang.c (cplus_language_defn): Install cp_search_name_hash.
904 * completer.c (explicit_location_match_type::MATCH_QUALIFIED): New
905 enumerator.
906 (complete_address_and_linespec_locations): New parameter
907 'match_type'. Pass it down.
908 (explicit_options): Add "-qualified".
909 (collect_explicit_location_matches): Pass the requested match type
910 to the linespec completers. Handle MATCH_QUALIFIED.
911 (location_completer): Handle "-qualified" combined with linespecs.
912 * cp-support.c (cp_search_name_hash): New.
913 (cp_symbol_name_matches_1): Implement wild matching for C++.
914 (cp_fq_symbol_name_matches): Reimplement.
915 (cp_get_symbol_name_matcher): Return different matchers depending
916 on the lookup name's match type.
917 (selftests::test_cp_symbol_name_matches): Add wild matching tests.
918 * cp-support.h (cp_search_name_hash): New declaration.
919 * dwarf2read.c
920 (selftests::dw2_expand_symtabs_matching::test_symbols): Add
921 symbols.
922 (test_dw2_expand_symtabs_matching_symbol): Add wild matching
923 tests.
924 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Adjust to
925 pass a symbol_name_match_type to new_linespec_location.
926 * linespec.c (linespec_parse_basic): Lookup function symbols using
927 the parser's symbol name match type.
928 (convert_explicit_location_to_linespec): New
929 symbol_name_match_type parameter. Pass it down to
930 find_linespec_symbols.
931 (convert_explicit_location_to_sals): Pass the location's name
932 match type to convert_explicit_location_to_linespec.
933 (parse_linespec): New match_type parameter. Save it in the
934 parser.
935 (linespec_parser_new): Default to symbol_name_match_type::WILD.
936 (linespec_complete_function): New symbol_name_match_type
937 parameter. Use it.
938 (complete_linespec_component): Pass down the parser's recorded
939 name match type.
940 (linespec_complete_label): New symbol_name_match_type parameter.
941 Use it.
942 (linespec_complete): New symbol_name_match_type parameter. Save
943 it in the parser and pass it down. Adjust to
944 get_linespec_location's prototype change.
945 (find_function_symbols, find_linespec_symbols): New
946 symbol_name_match_type parameter. Pass it down instead of
947 assuming symbol_name_match_type::WILD.
948 * linespec.h (linespec_complete, linespec_complete_function)
949 (linespec_complete_label): New symbol_name_match_type parameter.
950 * location.c (event_location::linespec_location): Now a struct
951 linespec_location.
952 (EL_LINESPEC): Adjust.
953 (initialize_explicit_location): Default to
954 symbol_name_match_type::WILD.
955 (new_linespec_location): New symbol_name_match_type parameter.
956 Record it in the location.
957 (get_linespec_location): Now returns a struct linespec_location.
958 (new_explicit_location): Also copy func_name_match_type.
959 (explicit_to_string_internal)
960 (string_to_explicit_location): Handle "-qualified".
961 (copy_event_location): Adjust to LINESPEC_LOCATION type change.
962 Copy symbol_name_match_type fields.
963 (event_location_deleter::operator()): Adjust to LINESPEC_LOCATION
964 type change.
965 (event_location_to_string): Adjust to LINESPEC_LOCATION type
966 change. Handle "-qualfied".
967 (string_to_explicit_location): Handle "-qualified".
968 (string_to_event_location_basic): New symbol_name_match_type
969 parameter. Pass it down.
970 (string_to_event_location): Handle "-qualified".
971 * location.h (struct linespec_location): New.
972 (explicit_location::func_name_match_type): New field.
973 (new_linespec_location): Now returns a const linespec_location *.
974 (string_to_event_location_basic): New symbol_name_match_type
975 parameter.
976 (explicit_completion_info::saw_explicit_location_option): New
977 field.
978 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Adjust to pass a
979 symbol_name_match_type to new_linespec_location.
980 * python/py-breakpoint.c (bppy_init): Likewise.
981 * python/python.c (gdbpy_decode_line): Likewise.
982
983 2017-11-29 Pedro Alves <palves@redhat.com>
984
985 * ada-lang.c (ada_lookup_name_info::matches): Change type of
986 parameter from completion_match to completion_match_result.
987 Adjust.
988 (do_wild_match, do_full_match, ada_symbol_name_matches): Likewise.
989 * completer.c (completion_tracker::maybe_add_completion): Add
990 match_for_lcd parameter and use it.
991 (completion_tracker::add_completion): Likewise.
992 * completer.h (class completion_match_for_lcd): New class.
993 (completion_match_result::match_for_lcd): New field.
994 (completion_match_result::set_match): New method.
995 (completion_tracker): Add comments.
996 (completion_tracker::add_completion): Add match_for_lcd parameter.
997 (completion_tracker::reset_completion_match_result): Reset
998 match_for_lcd too.
999 (completion_tracker::maybe_add_completion): Add match_for_lcd
1000 parameter.
1001 (completion_tracker::m_lowest_common_denominator_unique): Extend
1002 comments.
1003 * cp-support.c (cp_symbol_name_matches_1)
1004 (cp_fq_symbol_name_matches): Change type of parameter from
1005 completion_match to completion_match_result. Adjust.
1006 * language.c (default_symbol_name_matcher): Change type of
1007 parameter from completion_match to completion_match_result.
1008 Adjust.
1009 * language.h (completion_match_for_lcd): Forward declare.
1010 (default_symbol_name_matcher): Change type of parameter from
1011 completion_match to completion_match_result.
1012 * symtab.c (compare_symbol_name): Adjust.
1013 (completion_list_add_name): Pass the match_for_lcd to the tracker.
1014 * symtab.h (ada_lookup_name_info::matches): Change type of
1015 parameter from completion_match to completion_match_result.
1016 (symbol_name_matcher_ftype): Likewise, and update comments.
1017
1018 2017-11-29 Pedro Alves <palves@redhat.com>
1019
1020 * linespec.c (minsym_found, add_minsym): Use msymbol_is_function.
1021 * minsyms.c (msymbol_is_text): Delete.
1022 (msymbol_is_function): New function.
1023 * minsyms.h (msymbol_is_text): Delete.
1024 (msymbol_is_function): New declaration.
1025 * symtab.c (find_function_alias_target): Use msymbol_is_function.
1026
1027 2017-11-29 Tom Tromey <tom@tromey.com>
1028
1029 * Makefile.in (distclean): Handle the case where rmdir fails.
1030
1031 2017-11-29 Tom Tromey <tom@tromey.com>
1032
1033 * symfile.c (_initialize_symfile): Update usage text for
1034 add-symbol-file, symbol-file, load.
1035
1036 2017-11-29 Tom Tromey <tom@tromey.com>
1037
1038 * symfile.c (add_symbol_file_command): Error if some arguments to
1039 -s are missing. Change unrecognized-argument error message.
1040 (_initialize_symfile): Fix usage text for add-symbol-file.
1041
1042 2017-11-27 Tom Tromey <tom@tromey.com>
1043
1044 * Makefile.in (REMOTE_OBS): Remove.
1045 (SFILES): Remove remote sources.
1046 (COMMON_SFILES): Add remote sources.
1047 (ALLDEPFILES): Remove dcache.c.
1048
1049 2017-11-27 Tom Tromey <tom@tromey.com>
1050
1051 * Makefile.in (SUBDIR_TARGET_SRCS, SUBDIR_TARGET_OBS): New
1052 variables.
1053 (SFILES): Use SUBDIR_TARGET_SRCS.
1054 (COMMON_OBS): Use SUBDIR_TARGET_OBS. Remove waitstatus.o.
1055 (CONFIG_SRC_SUBDIR): Add target.
1056 (%.o): Remove target rule.
1057
1058 2017-11-27 Tom Tromey <tom@tromey.com>
1059
1060 * Makefile.in (COMMON_OBS): Remove filename-seen-cache.o,
1061 registry.o, thread-fsm.o, debug.o.
1062 (COMMON_SFILES): Add filename-seen-cache.c, registry.c,
1063 thread-fsm.c, debug.c.
1064
1065 2017-11-27 Tom Tromey <tom@tromey.com>
1066
1067 * Makefile.in (COMMON_SFILES): New.
1068 (SFILES): Move some entries to COMMON_SFILES.
1069 (COMMON_OBS): Use COMMON_SFILES.
1070
1071 2017-11-27 Tom Tromey <tom@tromey.com>
1072
1073 * Makefile.in (YYFILES): Update comment.
1074 (YYOBJ): Redefine.
1075
1076 2017-11-27 Tom Tromey <tom@tromey.com>
1077
1078 * Makefile.in (SUBDIR_PYTHON_OBS): Redefine.
1079 (CONFIG_SRC_SUBDIR): Add python.
1080 (%.o): Remove python rule.
1081 (python/%.o): New rule.
1082 * configure: Rebuild.
1083 * configure.ac (CONFIG_OBS): Refer to python/python.o
1084
1085 2017-11-27 Tom Tromey <tom@tromey.com>
1086
1087 * configure: Rebuild.
1088 * configure.ac (CONFIG_OBS): Refer to guile/guile.o.
1089 * Makefile.in (SUBDIR_GUILE_OBS): Redefine.
1090 (CONFIG_SRC_SUBDIR): Add guile.
1091 (%.o): Remove guile rule.
1092
1093 2017-11-27 Tom Tromey <tom@tromey.com>
1094
1095 * Makefile.in (SUBDIR_UNITTESTS_OBS): Redefine.
1096 (%.o): Remove unittests rule.
1097 (CONFIG_SRC_SUBDIR): Add unittests.
1098
1099 2017-11-27 Tom Tromey <tom@tromey.com>
1100
1101 * Makefile.in (SUBDIR_TUI_OBS): Redefine.
1102 (CONFIG_SRC_SUBDIR): Add tui.
1103 (%.o): Remove tui rule.
1104
1105 2017-11-27 Tom Tromey <tom@tromey.com>
1106
1107 * Makefile.in (SUBDIR_GCC_COMPILE_OBS): Redefine.
1108 (%.o): Remove compile rule.
1109 (CONFIG_SRC_SUBDIR): Add compile.
1110
1111 2017-11-27 Tom Tromey <tom@tromey.com>
1112
1113 * Makefile.in (SUBDIR_MI_OBS): Redefine.
1114 (%.o): Remove mi rule.
1115 (CONFIG_SRC_SUBDIR): Add mi.
1116 (COMMON_OBS): Use mi/mi-common.o
1117
1118 2017-11-27 Tom Tromey <tom@tromey.com>
1119
1120 * Makefile.in (SUBDIR_CLI_OBS): Redefine.
1121 (%.o): Remove cli rule.
1122 (CONFIG_SRC_SUBDIR): Add cli.
1123
1124 2017-11-27 Tom Tromey <tom@tromey.com>
1125
1126 * configure.ac (CONFIG_SRC_SUBDIR): Don't subst.
1127 * configure: Rebuild.
1128 * Makefile.in (CONFIG_SRC_SUBDIR): Redefine.
1129 (CONFIG_DEP_SUBDIR): New variable.
1130 (%.o): Add order-only dependency.
1131 ($(CONFIG_DEP_SUBDIR)): New target.
1132
1133 2017-11-26 Dominik Czarnota <dominik.b.czarnota@gmail.com>
1134
1135 PR gdb/21945
1136 * findcmd.c (_initialize_mem_search): Update find command help
1137 text.
1138
1139 2017-11-26 Simon Marchi <simon.marchi@polymtl.ca>
1140
1141 * python/python.c (do_start_initialization): Change progname
1142 type to gdb::unique_xmalloc_ptr. Release the pointer when using
1143 Python 2.
1144
1145 2017-11-26 Tom Tromey <tom@tromey.com>
1146
1147 * common/format.h: Add include guards.
1148
1149 2017-11-26 Tom Tromey <tom@tromey.com>
1150
1151 * nat/linux-personality.h (class
1152 maybe_disable_address_space_randomization): New class.
1153 (maybe_disable_address_space_randomization): Don't declare
1154 function.
1155 * nat/linux-personality.c (restore_personality)
1156 (make_disable_asr_cleanup): Remove.
1157 (maybe_disable_address_space_randomization): Now a constructor.
1158 (~maybe_disable_address_space_randomization): New destructor.
1159 * linux-nat.c (linux_nat_create_inferior): Update.
1160
1161 2017-11-26 Tom Tromey <tom@tromey.com>
1162
1163 * gcore.c (write_gcore_file_1): Use gdb::unique_xmalloc_ptr.
1164
1165 2017-11-26 Ulrich Weigand <uweigand@de.ibm.com>
1166
1167 * spu-tdep.c (spu_software_single_step): Access SPU_LSLR_REGNUM as
1168 "cooked" register. Access only first four bytes of branch target
1169 registers.
1170
1171 2017-11-25 Sergio Durigan Junior <sergiodj@redhat.com>
1172
1173 PR gdb/22491
1174 * stap-probe.c (relocate_address): New function.
1175 (stap_probe::get_relocated_address): Use 'relocate_address'.
1176 (stap_probe::set_semaphore): Use 'relocate_address' and pass
1177 'm_sem_addr'.
1178 (stap_probe::clear_semaphore): Likewise.
1179
1180 2017-11-25 Pedro Alves <palves@redhat.com>
1181
1182 * dictionary.c: Include "safe-ctype.h".
1183 * minsyms.c: Include "safe-ctype.h".
1184 * minsyms.c (SYMBOL_HASH_NEXT): Use TOLOWER instead of tolower.
1185
1186 2017-11-25 Pedro Alves <palves@redhat.com>
1187
1188 * completer.c (complete_line_internal_1): Skip spaces until the
1189 start of the command.
1190
1191 2017-11-24 Pedro Alves <palves@redhat.com>
1192
1193 * cp-support.c (cp_symbol_name_matches_1): New, factored out from
1194 cp_fq_symbol_name_matches. Pass language_cplus to
1195 strncmp_with_mode.
1196 (cp_fq_symbol_name_matches): Call cp_symbol_name_matches_1.
1197 (selftests::test_cp_symbol_name_cmp): New.
1198 (_initialize_cp_support): Register "cp_symbol_name_matches"
1199 selftests.
1200 * language.c (default_symbol_name_matcher): Pass language_minimal
1201 to strncmp_iw_with_mode.
1202 * utils.c: Include "cp-support.h" and <algorithm>.
1203 (valid_identifier_name_char, cp_skip_operator_token, skip_ws)
1204 (cp_is_operator): New functions.
1205 (strncmp_iw_with_mode): Use them. Add language parameter. Don't
1206 skip whitespace in the symbol name when the lookup name doesn't
1207 have spaces, and vice versa.
1208 (strncmp_iw, strcmp_iw): Pass language to strncmp_iw_with_mode.
1209 * utils.h (strncmp_iw_with_mode): Add language parameter.
1210
1211 2017-11-24 Joel Brobecker <brobecker@adacore.com>
1212
1213 * ada-lang.c (ada_exception_message_1, ada_exception_message):
1214 New functions.
1215 (print_it_exception): If available, display the exception
1216 message as well.
1217 * NEWS: Document new feature.
1218
1219 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
1220
1221 * configure.nat <spu-linux>: Add fork-inferior.o to NATDEPFILES.
1222
1223 2017-11-24 Philipp Rudo <prudo@linux.vnet.ibm.com>
1224
1225 * dtrace-probe.c (dtrace_probe::build_arg_exprs)
1226 (dtrace_probe::is_enabled, dtrace_probe::enable)
1227 (dtrace_probe::disable): Remove keyword 'struct' at for-range
1228 variable
1229 * probe.c (gen_ui_out_table_header_info)
1230 (print_ui_out_not_applicables): Remove keyword 'struct' at
1231 for-range variable
1232
1233 2017-11-24 Alan Hayward <alan.hayward@arm.com>
1234
1235 * configure.tgt: Add arch/aarch64.o
1236
1237 2017-11-24 Simon Marchi <simon.marchi@polymtl.ca>
1238
1239 * common/common-utils.h: Include poison.h.
1240 (xfree): Remove declaration, add definition with static_assert.
1241 * common/common-utils.c (xfree): Remove.
1242 * common/poison.h (IsMallocatable): Define.
1243 (IsFreeable): Define.
1244 (free): Delete for non-freeable types.
1245 (xnew): New.
1246 (XNEW): Undef and redefine.
1247 (xcnew): New.
1248 (XCNEW): Undef and redefine.
1249 (xdelete): New.
1250 (XDELETE): Undef and redefine.
1251 (xnewvec): New.
1252 (XNEWVEC): Undef and redefine.
1253 (xcnewvec): New.
1254 (XCNEWVEC): Undef and redefine.
1255 (xresizevec): New.
1256 (XRESIZEVEC): Undef and redefine.
1257 (xdeletevec): New.
1258 (XDELETEVEC): Undef and redefine.
1259 (xnewvar): New.
1260 (XNEWVAR): Undef and redefine.
1261 (xcnewvar): New.
1262 (XCNEWVAR): Undef and redefine.
1263 (xresizevar): New.
1264 (XRESIZEVAR): Undef and redefine.
1265
1266 2017-11-24 Simon Marchi <simon.marchi@polymtl.ca>
1267
1268 * gdbthread.h (private_thread_info): Define structure type, add
1269 virtual pure destructor.
1270 (thread_info) <priv>: Change type to unique_ptr.
1271 <private_dtor>: Remove.
1272 * thread.c (add_thread_with_info): Adjust to use of unique_ptr.
1273 (private_thread_info::~private_thread_info): Provide default
1274 implementation.
1275 (thread_info::~thread_info): Don't call private_dtor nor
1276 manually free priv.
1277 * aix-thread.c (private_thread_info): Rename to ...
1278 (aix_thread_info): ... this.
1279 (get_aix_thread_info): New.
1280 (sync_threadlists): Adjust.
1281 (iter_tid): Adjust.
1282 (aix_thread_resume): Adjust.
1283 (aix_thread_fetch_registers): Adjust.
1284 (aix_thread_store_registers): Adjust.
1285 (aix_thread_extra_thread_info): Adjust.
1286 * darwin-nat.h (private_thread_info): Rename to ...
1287 (darwin_thread_info): ... this.
1288 (get_darwin_thread_info): New.
1289 * darwin-nat.c (darwin_init_thread_list): Adjust.
1290 (darwin_check_new_threads): Adjust.
1291 (thread_info_from_private_thread_info): Adjust.
1292 * linux-thread-db.c (private_thread_info): Rename to ...
1293 (thread_db_thread_info): ... this, initialize fields.
1294 (get_thread_db_thread_info): New.
1295 <dying>: Change type to bool.
1296 (update_thread_state): Adjust to type rename.
1297 (record_thread): Adjust to type rename an use of unique_ptr.
1298 (thread_db_pid_to_str): Likewise.
1299 (thread_db_extra_thread_info): Likewise.
1300 (thread_db_thread_handle_to_thread_info): Likewise.
1301 (thread_db_get_thread_local_address): Likewise.
1302 * nto-tdep.h (private_thread_info): Rename to ...
1303 (nto_thread_info): ... this, initialize fields.
1304 (get_nto_thread_info): New.
1305 <name>: Change type to std::string.
1306 * nto-tdep.c (nto_extra_thread_info): Adjust to type rename and
1307 use of unique_ptr.
1308 * nto-procfs.c (update_thread_private_data_name): Adjust to
1309 std::string change, allocate nto_private_thread_info with new.
1310 (update_thread_private_data): Adjust to unique_ptr.
1311 * remote.c (private_thread_info): Rename to ...
1312 (remote_thread_info): ... this, initialize data members with
1313 default values.
1314 <extra, name>: Change type to std::string.
1315 <thread_handle>: Change type to non-pointer.
1316 (free_private_thread_info): Remove.
1317 (get_private_info_thread): Rename to...
1318 (get_remote_thread_info): ... this, change return type, adjust to
1319 use of unique_ptr, use remote_thread_info constructor.
1320 (remote_add_thread): Adjust.
1321 (get_private_info_ptid): Rename to...
1322 (get_remote_thread_info): ...this, change return type.
1323 (remote_thread_name): Use get_remote_thread_info, adjust to
1324 change to std::string.
1325 (struct thread_item) <~thread_item>: Remove.
1326 <thread_handle>: Make non pointer.
1327 (start_thread): Adjust to thread_item::thread_handle type
1328 change.
1329 (remote_update_thread_list): Adjust to type name change, move
1330 strings from temporary to long-lived object instead of
1331 duplicating.
1332 (remote_threads_extra_info): Use get_remote_thread_info.
1333 (process_initial_stop_replies): Likewise.
1334 (resume_clear_thread_private_info): Likewise.
1335 (remote_resume): Adjust to type name change.
1336 (remote_commit_resume): Use get_remote_thread_info.
1337 (process_stop_reply): Adjust to type name change.
1338 (remote_stopped_by_sw_breakpoint): Use get_remote_thread_info.
1339 (remote_stopped_by_hw_breakpoint): Likewise.
1340 (remote_stopped_by_watchpoint): Likewise.
1341 (remote_stopped_data_address): Likewise.
1342 (remote_core_of_thread): Likewise.
1343 (remote_thread_handle_to_thread_info): Use
1344 get_private_info_thread, adjust to thread_handle field type
1345 change.
1346
1347 2017-11-24 Simon Marchi <simon.marchi@polymtl.ca>
1348
1349 * remote.c (struct thread_item): Add constructor, disable copy
1350 construction and copy assignment, define default move
1351 construction and move assignment.
1352 <extra, name>: Change type to std::string.
1353 <core>: Initialize.
1354 <thread_handle>: Make non-pointer.
1355 (thread_item_t): Remove typedef.
1356 (DEF_VEC_O(thread_item_t)): Remove.
1357 (threads_listing_context) <contains_thread>: New method.
1358 <remove_thread>: New method.
1359 <items>: Change type to std::vector.
1360 (clear_threads_listing_context): Remove.
1361 (threads_listing_context_remove): Remove.
1362 (remote_newthread_step): Use thread_item constructor, adjust to
1363 change to std::vector.
1364 (start_thread): Use thread_item constructor, adjust to change to
1365 std::vector.
1366 (end_thread): Adjust to change to std::vector and std::string.
1367 (remote_get_threads_with_qthreadinfo): Use thread_item
1368 constructor, adjust to std::vector.
1369 (remote_update_thread_list): Adjust to change to std::vector and
1370 std::string, use threads_listing_context methods.
1371 (remove_child_of_pending_fork): Adjust.
1372 (remove_new_fork_children): Adjust.
1373 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add rsp-low-selftests.c.
1374 (SUBDIR_UNITTESTS_OBS): Add rsp-low-selftests.o.
1375 * unittests/rsp-low-selftests.c: New file.
1376 * common/rsp-low.h: Include common/byte-vector.h.
1377 (hex2bin): New overload.
1378 * common/rsp-low.c (hex2bin): New overload.
1379
1380 2017-11-24 Simon Marchi <simon.marchi@ericsson.com>
1381
1382 * inferior.h (private_inferior): Define structure type, add
1383 virtual pure destructor.
1384 (inferior) <priv>: Change type to unique_ptr.
1385 * inferior.c (private_inferior::~private_inferior): Provide
1386 default implementation.
1387 (inferior::~inferior): Don't free priv field.
1388 (exit_inferior_1): Likewise.
1389 * darwin-nat.h (struct darwin_exception_info): Initialize fields.
1390 (darwin_exception_info): Remove typedef.
1391 (DEF_VEC_O (darwin_thread_t)); Remove.
1392 (private_inferior): Rename to ...
1393 (darwin_private_inferior): ... this, extend private_inferior.
1394 (get_darwin_inferior): New.
1395 <threads>: Change type to std::vector of darwin_thread_t pointers.
1396 * darwin-nat.c (darwin_check_new_threads): Adjust.
1397 (find_inferior_task_it): Adjust.
1398 (darwin_find_thread); Adjust.
1399 (darwin_suspend_inferior): Adjust.
1400 (darwin_resume_inferior): Adjust.
1401 (darwin_find_new_inferior): Adjust.
1402 (darwin_decode_notify_message): Adjust.
1403 (darwin_send_reply): Adjust.
1404 (darwin_resume_inferior_threads): Adjust.
1405 (darwin_suspend_inferior_threads): Adjust.
1406 (darwin_decode_message): Adjust.
1407 (darwin_wait): Adjust.
1408 (darwin_interrupt): Adjust.
1409 (darwin_deallocate_threads): Adjust.
1410 (darwin_mourn_inferior): Adjust, don't free private data.
1411 (darwin_reply_to_all_pending_messages): Adjust.
1412 (darwin_stop_inferior): Adjust.
1413 (darwin_setup_exceptions): Adjust.
1414 (darwin_kill_inferior): Adjust.
1415 (darwin_setup_request_notification): Adjust.
1416 (darwin_attach_pid): Adjust.
1417 (darwin_init_thread_list): Adjust.
1418 (darwin_setup_fake_stop_event): Adjust.
1419 (darwin_attach): Adjust.
1420 (darwin_detach): Adjust.
1421 (darwin_xfer_partial): Adjust.
1422 (set_enable_mach_exceptions): Adjust.
1423 (darwin_pid_to_exec_file): Adjust.
1424 (darwin_get_ada_task_ptid): Adjust.
1425 * darwin-nat-info.c (get_task_from_args): Adjust.
1426 (info_mach_ports_command): Adjust.
1427 (info_mach_region_command): Adjust.
1428 (info_mach_exceptions_command): Adjust.
1429 * remote.c (private_inferior): Rename to ...
1430 (remote_private_inferior): ... this, initialize fields.
1431 (get_remote_inferior); New.
1432 (remote_commit_resume): Use get_remote_inferior.
1433 (check_pending_event_prevents_wildcard_vcont_callback): Likewise.
1434
1435 2017-11-24 Pedro Alves <palves@redhat.com>
1436
1437 * NEWS: Mention linespecs and explicit locations, and completion
1438 improvements.
1439
1440 2017-11-24 Yao Qi <yao.qi@linaro.org>
1441
1442 * regcache.c (regcache::dump): Remove footnote_register_size.
1443
1444 2017-11-24 Yao Qi <yao.qi@linaro.org>
1445
1446 * regcache.c (cooked_read_test): Add more test for readonly
1447 regcache.
1448
1449 2017-11-24 Yao Qi <yao.qi@linaro.org>
1450
1451 * gdbarch-selftests.c (test_target_has_registers): Move it to
1452 target.c.
1453 (test_target_has_stack): Likewise.
1454 (test_target_has_memory): Likewise.
1455 (test_target_prepare_to_store): Likewise.
1456 (test_target_store_registers): Likewise.
1457 (test_target_ops): Likewise.
1458 * regcache.c: Include selftest-arch.h and gdbthread.h.
1459 (target_ops_no_register): New class.
1460 (test_target_fetch_registers): New.
1461 (test_target_store_registers): New.
1462 (test_target_xfer_partial): New.
1463 (readwrite_regcache): New.
1464 (cooked_read_test): New.
1465 (_initialize_regcache): Register the test.
1466 * target.c: (test_target_has_registers): Moved from
1467 gdbarch-selftests.c.
1468 (test_target_has_stack): Likewise.
1469 (test_target_has_memory): Likewise.
1470 (test_target_prepare_to_store): Likewise.
1471 (test_target_store_registers): Likewise.
1472 * target.h (test_target_ops): New class.
1473
1474 2017-11-24 Alan Hayward <alan.hayward@arm.com>
1475
1476 * aarch64-tdep.c (_initialize_aarch64_tdep): Add target desc
1477 selftest.
1478
1479 2017-11-24 Alan Hayward <alan.hayward@arm.com>
1480
1481 * aarch64-tdep.c (_initialize_aarch64_tdep): Remove init.
1482 * arch/aarch64.c (aarch64_create_target_description): Create
1483 new target description.
1484 * features/Makefile: Add new files.
1485 * features/aarch64.c: Remove file.
1486 * features/aarch64-core.c: New autogenerated file.
1487 * features/aarch64-fpu.c: New autogenerated file.
1488 * target-descriptions.c (maint_print_c_tdesc_cmd): Check for aarch64.
1489
1490 2017-11-24 Alan Hayward <alan.hayward@arm.com>
1491
1492 * Makefile.in: Add new files.
1493 * aarch64-linux-nat.c (aarch64_linux_read_description): Call
1494 aarch64_read_description.
1495 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
1496 Call aarch64_read_description.
1497 * aarch64-tdep.c (aarch64_read_description): New function.
1498 (aarch64_gdbarch_init): Call aarch64_read_description.
1499 * aarch64-tdep.h (aarch64_read_description): New function.
1500 * arch/aarch64.c: New file.
1501 * configure.tgt: Add new files.
1502
1503 2017-11-24 Yao Qi <yao.qi@linaro.org>
1504
1505 * mi/mi-main.c (register_changed_p): Update.
1506 * value.c (value_contents_bits_eq): Change return type.
1507 (value_contents_eq): Likewise.
1508 * value.h: Update comments.
1509
1510 2017-11-24 Yao Qi <yao.qi@linaro.org>
1511
1512 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Remove
1513 local 'changed'. Remove error.
1514 (register_changed_p): Change return type to bool.
1515
1516 2017-11-24 Yao Qi <yao.qi@linaro.org>
1517
1518 * arch/tic6x.c: New file.
1519 * arch/tic6x.h: New file.
1520 * features/Makefile (FEATURE_XMLFILES): Add tic6x-c6xp.xml,
1521 tic6x-core.xml and tic6x-gp.xml.
1522 * features/tic6x-c6xp.c: Generated.
1523 * features/tic6x-core.c: Generated.
1524 * features/tic6x-gp.c: Generated.
1525 * target-descriptions.c (maint_print_c_tdesc_cmd): Match
1526 "tic6x-".
1527
1528 2017-11-23 Simon Marchi <simon.marchi@ericsson.com>
1529
1530 * mi/mi-main.c (list_available_thread_groups): Change map value
1531 type to std::vector.
1532
1533 2017-11-23 Simon Marchi <simon.marchi@ericsson.com>
1534
1535 * osdata.c (osdata_end_column, get_osdata): Remove std::move.
1536
1537 2017-11-23 Simon Marchi <simon.marchi@ericsson.com>
1538
1539 * varobj.c (struct varobj_dynamic) <children_requested_>: Rename
1540 back to...
1541 <children_requested>: ... this.
1542 (varobj_get_num_children, varobj_update): Adjust.
1543
1544 2017-11-23 Simon Marchi <simon.marchi@ericsson.com>
1545
1546 * ada-varobj.c (ada_value_is_changeable_p): Change int to bool where applicable.
1547 (ada_value_has_mutated): Likewise.
1548 * c-varobj.c (varobj_is_anonymous_child): Likewise.
1549 (c_is_path_expr_parent): Likewise.
1550 * mi/mi-cmd-var.c (varobj_update_one): Likewise.
1551 (mi_cmd_var_set_frozen): Likewise.
1552 (mi_cmd_var_update_iter): Likewise.
1553 (mi_cmd_var_update): Likewise.
1554 * varobj.c (pretty_printing): Likewise.
1555 (varobj_enable_pretty_printing): Likewise.
1556 (struct varobj_root) <floating, is_valid>: Likewise.
1557 (struct varobj_dynamic) <children_requested>: Likewise.
1558 (delete_variable): Likewise.
1559 (delete_variable_1): Likewise.
1560 (install_variable): Likewise.
1561 (update_type_if_necessary): Likewise.
1562 (install_new_value): Likewise.
1563 (value_of_root): Likewise.
1564 (is_root_p): Likewise.
1565 (varobj_create): Likewise.
1566 (varobj_delete): Likewise.
1567 (varobj_has_more): Likewise.
1568 (varobj_set_frozen): Likewise.
1569 (varobj_get_frozen): Likewise.
1570 (install_dynamic_child): Likewise.
1571 (dynamic_varobj_has_child_method): Likewise.
1572 (update_dynamic_varobj_children): Likewise.
1573 (varobj_get_num_children): Likewise.
1574 (varobj_list_children): Likewise.
1575 (is_path_expr_parent): Likewise.
1576 (varobj_default_is_path_expr_parent): Likewise.
1577 (varobj_is_dynamic_p): Likewise.
1578 (varobj_set_value): Likewise.
1579 (varobj_value_has_mutated): Likewise.
1580 (varobj_update): Likewise.
1581 (check_scope): Likewise.
1582 (value_of_root_1): Likewise.
1583 (varobj_value_get_print_value): Likewise.
1584 (varobj_editable_p): Likewise.
1585 (varobj_value_is_changeable_p): Likewise.
1586 (varobj_floating_p): Likewise.
1587 (varobj_default_value_is_changeable_p): Likewise.
1588 (varobj_invalidate_iter): Likewise.
1589 * varobj.h (struct varobj_update_result) <type_changed,
1590 children_changed, changed, value_installed>: Likewise.
1591 (struct varobj) <updated, frozen, not_fetched>: Likewise.
1592 (struct lang_varobj_ops) <value_is_changeable_p,
1593 value_has_mutated, is_path_expr_parent>: Likewise.
1594 (varobj_delete): Likewise.
1595 (varobj_set_frozen): Likewise.
1596 (varobj_get_frozen): Likewise.
1597 (varobj_set_value): Likewise.
1598 (varobj_update): Likewise.
1599 (varobj_editable_p): Likewise.
1600 (varobj_floating_p): Likewise.
1601 (varobj_has_more): Likewise.
1602 (varobj_is_dynamic_p): Likewise.
1603 (varobj_default_value_is_changeable_p): Likewise.
1604 (varobj_value_is_changeable_p): Likewise.
1605 (varobj_is_anonymous_child): Likewise.
1606 (varobj_default_is_path_expr_parent): Likewise.
1607
1608 2017-11-22 Sergio Durigan Junior <sergiodj@redhat.com>
1609
1610 * dtrace-probe.c (struct probe_ops dtrace_probe_ops): Delete.
1611 (struct dtrace_probe_arg) <dtrace_probe_arg>: New constructor.
1612 <type_str>: Convert to 'std::string'.
1613 <expr>: Convert to 'expression_up'.
1614 (dtrace_probe_arg_s): Delete type and VEC.
1615 (dtrace_probe_enabler_s): Likewise.
1616 (struct dtrace_probe): Replace by...
1617 (class dtrace_static_probe_ops): ...this and...
1618 (class dtrace_probe): ...this.
1619 (dtrace_probe_is_linespec): Rename to...
1620 (dtrace_static_probe_ops::is_linespec): ...this. Adjust code
1621 to reflect change.
1622 (dtrace_process_dof_probe): Use 'std::vector' instead of VEC.
1623 Adjust code. Create new instance of 'dtrace_probe'.
1624 (dtrace_build_arg_exprs): Rename to...
1625 (dtrace_probe::build_arg_exprs): ...this. Adjust code to
1626 reflect change.
1627 (dtrace_get_probes): Rename to...
1628 (dtrace_static_probe_ops::get_probes): ...this. Adjust code
1629 to reflect change.
1630 (dtrace_get_arg): Rename to...
1631 (dtrace_probe::get_arg_by_number): ...this. Adjust code to
1632 reflect change.
1633 (dtrace_probe_is_enabled): Rename to...
1634 (dtrace_probe::is_enabled): ...this. Adjust code to reflect
1635 change.
1636 (dtrace_get_probe_address): Rename to...
1637 (dtrace_probe::get_relocated_address): ...this. Adjust code
1638 to reflect change.
1639 (dtrace_get_probe_argument_count): Rename to...
1640 (dtrace_probe::get_argument_count): ...this. Adjust code to
1641 reflect change.
1642 (dtrace_can_evaluate_probe_arguments): Rename to...
1643 (dtrace_probe::can_evaluate_arguments): ...this. Adjust code
1644 to reflect change.
1645 (dtrace_evaluate_probe_argument): Rename to...
1646 (dtrace_probe::evaluate_argument): ...this. Adjust code to
1647 reflect change.
1648 (dtrace_compile_to_ax): Rename to...
1649 (dtrace_probe::compile_to_ax): ...this. Adjust code to
1650 reflect change.
1651 (dtrace_probe_destroy): Delete.
1652 (dtrace_type_name): Rename to...
1653 (dtrace_static_probe_ops::type_name): ...this. Adjust code to
1654 reflect change.
1655 (dtrace_probe::get_static_ops): New method.
1656 (dtrace_gen_info_probes_table_header): Rename to...
1657 (dtrace_static_probe_ops::gen_info_probes_table_header):
1658 ...this. Adjust code to reflect change.
1659 (dtrace_gen_info_probes_table_values): Rename to...
1660 (dtrace_probe::gen_info_probes_table_values): ...this. Adjust
1661 code to reflect change.
1662 (dtrace_enable_probe): Rename to...
1663 (dtrace_probe::enable_probe): ...this. Adjust code to reflect
1664 change.
1665 (dtrace_disable_probe): Rename to...
1666 (dtrace_probe::disable_probe): ...this. Adjust code to reflect
1667 change.
1668 (struct probe_ops dtrace_probe_ops): Delete.
1669 (info_probes_dtrace_command): Call 'info_probes_for_spops'
1670 instead of 'info_probes_for_ops'.
1671 (_initialize_dtrace_probe): Use 'all_static_probe_ops' instead
1672 of 'all_probe_ops'.
1673
1674 2017-11-22 Sergio Durigan Junior <sergiodj@redhat.com>
1675 Simon Marchi <simark@simark.ca>
1676
1677 * stap-probe.c (struct probe_ops stap_probe_ops): Delete
1678 variable.
1679 (struct stap_probe_arg) <stap_probe_arg>: New constructor.
1680 <aexpr>: Change type to 'expression_up'.
1681 (stap_probe_arg_s): Delete type and VEC.
1682 (struct stap_probe): Delete. Replace by...
1683 (class stap_static_probe_ops): ...this and...
1684 (class stap_probe): ...this. Rename variables to add 'm_'
1685 prefix. Do not use 'union' for arguments anymore.
1686 (stap_get_expected_argument_type): Receive probe name instead
1687 of 'struct stap_probe'. Adjust code.
1688 (stap_parse_probe_arguments): Rename to...
1689 (stap_probe::parse_arguments): ...this. Adjust code to
1690 reflect change.
1691 (stap_get_probe_address): Rename to...
1692 (stap_probe::get_relocated_address): ...this. Adjust code
1693 to reflect change.
1694 (stap_get_probe_argument_count): Rename to...
1695 (stap_probe::get_argument_count): ...this. Adjust code
1696 to reflect change.
1697 (stap_get_arg): Rename to...
1698 (stap_probe::get_arg_by_number'): ...this. Adjust code to
1699 reflect change.
1700 (can_evaluate_probe_arguments): Rename to...
1701 (stap_probe::can_evaluate_arguments): ...this. Adjust code
1702 to reflect change.
1703 (stap_evaluate_probe_argument): Rename to...
1704 (stap_probe::evaluate_argument): ...this. Adjust code
1705 to reflect change.
1706 (stap_compile_to_ax): Rename to...
1707 (stap_probe::compile_to_ax): ...this. Adjust code to
1708 reflect change.
1709 (stap_probe_destroy): Delete.
1710 (stap_modify_semaphore): Adjust comment.
1711 (stap_set_semaphore): Rename to...
1712 (stap_probe::set_semaphore): ...this. Adjust code to reflect
1713 change.
1714 (stap_clear_semaphore): Rename to...
1715 (stap_probe::clear_semaphore): ...this. Adjust code to
1716 reflect change.
1717 (stap_probe::get_static_ops): New method.
1718 (handle_stap_probe): Adjust code to create instance of
1719 'stap_probe'.
1720 (stap_get_probes): Rename to...
1721 (stap_static_probe_ops::get_probes): ...this. Adjust code to
1722 reflect change.
1723 (stap_probe_is_linespec): Rename to...
1724 (stap_static_probe_ops::is_linespec): ...this. Adjust code to
1725 reflect change.
1726 (stap_type_name): Rename to...
1727 (stap_static_probe_ops::type_name): ...this. Adjust code to
1728 reflect change.
1729 (stap_gen_info_probes_table_header): Rename to...
1730 (stap_static_probe_ops::gen_info_probes_table_header):
1731 ...this. Adjust code to reflect change.
1732 (stap_gen_info_probes_table_values): Rename to...
1733 (stap_probe::gen_info_probes_table_values): ...this. Adjust
1734 code to reflect change.
1735 (struct probe_ops stap_probe_ops): Delete.
1736 (info_probes_stap_command): Use 'info_probes_for_spops'
1737 instead of 'info_probes_for_ops'.
1738 (_initialize_stap_probe): Use 'all_static_probe_ops' instead
1739 of 'all_probe_ops'.
1740
1741 2017-11-22 Sergio Durigan Junior <sergiodj@redhat.com>
1742
1743 * break-catch-throw.c (fetch_probe_arguments): Use
1744 'probe.prob' instead of 'probe.probe'.
1745 * breakpoint.c (create_longjmp_master_breakpoint): Call
1746 'can_evaluate_arguments' and 'get_relocated_address' methods
1747 from probe.
1748 (create_exception_master_breakpoint): Likewise.
1749 (add_location_to_breakpoint): Use 'sal->prob' instead of
1750 'sal->probe'.
1751 (bkpt_probe_insert_location): Call 'set_semaphore' method from
1752 probe.
1753 (bkpt_probe_remove_location): Likewise, for 'clear_semaphore'.
1754 * elfread.c (elf_get_probes): Use 'static_probe_ops' instead
1755 of 'probe_ops'.
1756 (probe_key_free): Call 'delete' on probe.
1757 (check_exception_resume): Use 'probe.prob' instead of
1758 'probe.probe'.
1759 * location.c (string_to_event_location_basic): Call
1760 'probe_linespec_to_static_ops'.
1761 * probe.c (class any_static_probe_ops): New class.
1762 (any_static_probe_ops any_static_probe_ops): New variable.
1763 (parse_probes_in_pspace): Receive 'static_probe_ops' as
1764 argument. Adjust code to reflect change.
1765 (parse_probes): Use 'static_probe_ops' instead of
1766 'probe_ops'. Adjust code to reflect change.
1767 (find_probes_in_objfile): Call methods to get name and
1768 provider from probe.
1769 (find_probe_by_pc): Use 'result.prob' instead of
1770 'result.probe'. Call 'get_relocated_address' method from
1771 probe.
1772 (collect_probes): Adjust comment and argument list to receive
1773 'static_probe_ops' instead of 'probe_ops'. Adjust code to
1774 reflect change. Call necessary methods from probe.
1775 (compare_probes): Call methods to get name and provider from
1776 probes.
1777 (gen_ui_out_table_header_info): Receive 'static_probe_ops'
1778 instead of 'probe_ops'. Use 'std::vector' instead of VEC,
1779 adjust code accordingly.
1780 (print_ui_out_not_applicables): Likewise.
1781 (info_probes_for_ops): Rename to...
1782 (info_probes_for_spops): ...this. Receive 'static_probe_ops'
1783 as argument instead of 'probe_ops'. Adjust code. Call
1784 necessary methods from probe.
1785 (info_probes_command): Use 'info_probes_for_spops'.
1786 (enable_probes_command): Pass correct argument to
1787 'collect_probes'. Call methods from probe.
1788 (disable_probes_command): Likewise.
1789 (get_probe_address): Move to 'any_static_probe_ops::get_address'.
1790 (get_probe_argument_count): Move to
1791 'any_static_probe_ops::get_argument_count'.
1792 (can_evaluate_probe_arguments): Move to
1793 'any_static_probe_ops::can_evaluate_arguments'.
1794 (evaluate_probe_argument): Move to
1795 'any_static_probe_ops::evaluate_argument'.
1796 (probe_safe_evaluate_at_pc): Use 'probe.prob' instead of
1797 'probe.probe'.
1798 (probe_linespec_to_ops): Rename to...
1799 (probe_linespec_to_static_ops): ...this. Adjust code.
1800 (probe_any_is_linespec): Rename to...
1801 (any_static_probe_ops::is_linespec): ...this.
1802 (probe_any_get_probes): Rename to...
1803 (any_static_probe_ops::get_probes): ...this.
1804 (any_static_probe_ops::type_name): New method.
1805 (any_static_probe_ops::gen_info_probes_table_header): New
1806 method.
1807 (compute_probe_arg): Use 'pc_probe.prob' instead of
1808 'pc_probe.probe'. Call methods from probe.
1809 (compile_probe_arg): Likewise.
1810 (std::vector<const probe_ops *> all_probe_ops): Delete.
1811 (std::vector<const static_probe_ops *> all_static_probe_ops):
1812 New variable.
1813 (_initialize_probe): Use 'all_static_probe_ops' instead of
1814 'all_probe_ops'.
1815 * probe.h (struct info_probe_column) <field_name>: Delete
1816 extraneous newline
1817 (info_probe_column_s): Delete type and VEC.
1818 (struct probe_ops): Delete. Replace with...
1819 (class static_probe_ops): ...this and...
1820 (clas probe): ...this.
1821 (struct bound_probe) <bound_probe>: Delete extraneous
1822 newline. Adjust constructor to receive 'probe' instead of
1823 'struct probe'.
1824 <probe>: Rename to...
1825 <prob>: ...this. Delete extraneous newline.
1826 <objfile>: Delete extraneous newline.
1827 (register_probe_ops): Delete unused prototype.
1828 (info_probes_for_ops): Rename to...
1829 (info_probes_for_spops): ...this. Adjust comment.
1830 (get_probe_address): Move to 'probe::get_address'.
1831 (get_probe_argument_count): Move to
1832 'probe::get_argument_count'.
1833 (can_evaluate_probe_arguments): Move to
1834 'probe::can_evaluate_arguments'.
1835 (evaluate_probe_argument): Move to 'probe::evaluate_argument'.
1836 * solib-svr4.c (struct svr4_info): Adjust comment.
1837 (struct probe_and_action) <probe>: Rename to...
1838 <prob>: ...this.
1839 (register_solib_event_probe): Receive 'probe' instead of
1840 'struct probe' as argument. Use 'prob' instead of 'probe'
1841 when applicable.
1842 (solib_event_probe_action): Call 'get_argument_count' method
1843 from probe. Adjust comment.
1844 (svr4_handle_solib_event): Adjust comment. Call
1845 'evaluate_argument' method from probe.
1846 (svr4_create_probe_breakpoints): Call 'get_relocated_address'
1847 from probe.
1848 (svr4_create_solib_event_breakpoints): Use 'probe' instead of
1849 'struct probe'. Call 'can_evaluate_arguments' from probe.
1850 * symfile.h: Forward declare 'class probe' instead of 'struct
1851 probe'.
1852 * symtab.h: Likewise.
1853 (struct symtab_and_line) <probe>: Rename to...
1854 <prob>: ...this.
1855 * tracepoint.c (start_tracing): Use 'prob' when applicable.
1856 Call probe methods.
1857 (stop_tracing): Likewise.
1858
1859 2017-11-22 Joel Brobecker <brobecker@adacore.com>
1860
1861 * ravenscar-thread.c (ravenscar_inferior_created): Remove
1862 trailing newline at end of string in call to warning.
1863
1864 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
1865
1866 * osdata.h: Include vector isntead of vec.h.
1867 (osdata_column_s): Remove typedef.
1868 (struct osdata_column): Add constructor.
1869 <name, value>: Change type to std::string.
1870 (DEF_VEC_O (osdata_column_s)): Remove.
1871 (osdata_item_s): Remove typedef.
1872 (struct osdata_item) <columns>: Change type to std::vector.
1873 (DEF_VEC_O (osdata_item_s)): Remove.
1874 (struct osdata): Add constructor.
1875 <type>: Change type to std::string.
1876 <items>: Change type to std::vector.
1877 (osdata_p): Remove typedef.
1878 (DEF_VEC_P (osdata_p)): Remove.
1879 (osdata_parse): Return a unique_ptr.
1880 (osdata_free): Remove.
1881 (make_cleanup_osdata_free): Remove.
1882 (get_osdata): Return a unique_ptr.
1883 (get_osdata_column): Return pointer to std::string, take a
1884 reference to osdata_item as parameter.
1885 * osdata.c (struct osdata_parsing_data) <osdata>: Change type to
1886 unique_ptr.
1887 <property_name>: Change type to std::string.
1888 (osdata_start_osdata): Allocate osdata with new and adjust.
1889 (osdata_start_item): Adjust.
1890 (osdata_start_column): Adjust.
1891 (osdata_end_column): Adjust.
1892 (clear_parsing_data): Remove.
1893 (osdata_parse): Return a unique_ptr and adjust, remove cleanup.
1894 (osdata_item_clear): Remove.
1895 (get_osdata): return a unique_ptr and adjust.
1896 (get_osdata_column): Return a pointer to std::string and adjust.
1897 (info_osdata): Adjust.
1898 * mi/mi-main.c: Include <map>.
1899 (free_vector_of_osdata_items): Remove.
1900 (list_available_thread_groups): Adjust, use std::map instead of
1901 splay tree.
1902
1903 2017-11-22 Simon Marchi <simon.marchi@ericsson.com>
1904
1905 * stack.c (iterate_over_block_locals): Add LOC_OPTIMIZED_OUT
1906 case in switch.
1907
1908 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
1909
1910 * varobj.h (DEF_VEC_P (varobj_p)): Remove.
1911
1912 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
1913
1914 * varobj.h (struct varobj_update_result): Add constructor, add
1915 move constructor, disable copy and assign, initialize fields.
1916 <newobj>: Change type to std::vector.
1917 (varobj_update): Return std::vector.
1918 * varobj.c (install_dynamic_child): Change VEC parameters to
1919 std::vector and adjust.
1920 (update_dynamic_varobj_children): Likewise.
1921 (varobj_update): Return std::vector and adjust.
1922 * mi/mi-cmd-var.c (varobj_update_one): Adjust to vector changes.
1923
1924 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
1925
1926 * varobj.h (struct varobj) <parent>: Remove const.
1927 <children>: Change type to std::vector.
1928 (varobj_list_children): Return std::vector const reference.
1929 (varobj_restrict_range): Change parameter type to std::vector
1930 const reference.
1931 * varobj.c (varobj_has_more): Adjust.
1932 (varobj_restrict_range): Change parameter type to std::vector
1933 const reference and adjust.
1934 (install_dynamic_child): Adjust.
1935 (update_dynamic_varobj_children): Adjust.
1936 (varobj_list_children): Return std::vector const reference and
1937 adjust.
1938 (varobj_add_child): Adjust.
1939 (update_type_if_necessary): Adjust.
1940 (varobj_update): Adjust.
1941 (delete_variable_1): Adjust.
1942 * ada-varobj.c (ada_value_has_mutated): Adjust.
1943 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust.
1944
1945 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
1946
1947 * varobj.h (struct varobj): Add constructor and destructor,
1948 initialize fields.
1949 * varobj.c (struct varobj_root): Initialize fields.
1950 (struct varobj_dynamic): Initialize fields.
1951 (varobj_create): Use unique_ptr instead of cleanup. Create
1952 varobj with new instead of new_root_variable.
1953 (delete_variable_1): Free variable with delete instead of
1954 free_variable.
1955 (create_child_with_value): Create variable with new instead of
1956 new_variable.
1957 (varobj::varobj): New.
1958 (varobj::~varobj): New (body mostly coming from free_variable).
1959 (new_variable): Remove.
1960 (free_variable): Remove.
1961 (do_free_variable_cleanup): Remove.
1962 (make_cleanup_free_variable): Remove.
1963
1964 2017-11-22 Ulrich Weigand <uweigand@de.ibm.com>
1965
1966 * core-regset.c: Remove file.
1967 * Makefile.in (ALLDEPFILES): Remove core-regset.c.
1968
1969 2017-11-22 Ulrich Weigand <uweigand@de.ibm.com>
1970
1971 * NEWS: Document use of GNU MPFR.
1972 * README: Likewise.
1973
1974 * Makefile.in (LIBMPFR): Add define.
1975 (CLIBS): Add $(LIBMPFR).
1976 * configure.ac: Add --with-mpfr configure option.
1977 * configure: Regenerate.
1978 * config.in: Regenerate.
1979
1980 * target-float.c [HAVE_LIBMPFR]: Include <mpfr.h>.
1981 (class mpfr_float_ops): New type.
1982 (mpfr_float_ops::from_target): Two new overloaded functions.
1983 (mpfr_float_ops::to_target): Likewise.
1984 (mpfr_float_ops::to_string): New function.
1985 (mpfr_float_ops::from_string): Likewise.
1986 (mpfr_float_ops::to_longest): Likewise.
1987 (mpfr_float_ops::from_longest): Likewise.
1988 (mpfr_float_ops::from_ulongest): Likewise.
1989 (mpfr_float_ops::to_host_double): Likewise.
1990 (mpfr_float_ops::from_host_double): Likewise.
1991 (mpfr_float_ops::convert): Likewise.
1992 (mpfr_float_ops::binop): Likewise.
1993 (mpfr_float_ops::compare): Likewise.
1994 (get_target_float_ops): Use mpfr_float_ops if available.
1995
1996 2017-11-22 Ulrich Weigand <uweigand@de.ibm.com>
1997
1998 * target-float.c: Do not include <math.h>.
1999 Include <cmath> and <limits>.
2000 (DOUBLEST): Do not define.
2001 (class target_float_ops): New type.
2002 (class host_float_ops): New templated type.
2003 (class decimal_float_ops): New type.
2004
2005 (floatformat_to_doublest): Rename to ...
2006 (host_float_ops<T>::from_target): ... this. Use template type T
2007 instead of DOUBLEST. Use C++ math routines. Update recursive calls.
2008 (host_float_ops<T>::from_target): New overload using a type argument.
2009 (floatformat_from_doublest): Rename to ...
2010 (host_float_ops<T>::to_target): ... this. Use template type T
2011 instead of DOUBLEST. Use C++ math routines. Update recursive calls.
2012 (host_float_ops<T>::to_target): New overload using a type argument.
2013 (floatformat_printf_format): New function.
2014 (struct printf_length_modifier): New templated type.
2015 (floatformat_to_string): Rename to ...
2016 (host_float_ops<T>::to_string): ... this. Use type instead of
2017 floatformat argument. Use floatformat_printf_format and
2018 printf_length_modifier. Remove special handling of invalid numbers,
2019 infinities and NaN (moved to target_float_to_string).
2020 (struct scanf_length_modifier): New templated type.
2021 (floatformat_from_string): Rename to ...
2022 (host_float_ops<T>::from_string): ... this. Use type instead of
2023 floatformat argument. Use scanf_length_modifier.
2024 (floatformat_to_longest): Rename to ...
2025 (host_float_ops<T>::to_longest): ... this. Use type instead of
2026 floatformat argument. Handle out-of-range values deterministically.
2027 (floatformat_from_longest): Rename to ...
2028 (host_float_ops<T>::from_longest): ... this. Use type instead of
2029 floatformat argument.
2030 (floatformat_from_ulongest): Rename to ...
2031 (host_float_ops<T>::from_ulongest): ... this. Use type instead of
2032 floatformat argument.
2033 (floatformat_to_host_double): Rename to ...
2034 (host_float_ops<T>::to_host_double): ... this. Use type instead of
2035 floatformat argument.
2036 (floatformat_from_host_double): Rename to ...
2037 (host_float_ops<T>::from_host_double): ... this. Use type instead of
2038 floatformat argument.
2039 (floatformat_convert): Rename to ...
2040 (host_float_ops<T>::convert): ... this. Use type instead of
2041 floatformat arguments. Remove handling of no-op conversions.
2042 (floatformat_binop): Rename to ...
2043 (host_float_ops<T>::binop): ... this. Use type instead of
2044 floatformat arguments.
2045 (floatformat_compare): Rename to ...
2046 (host_float_ops<T>::compare): ... this. Use type instead of
2047 floatformat arguments.
2048
2049 (match_endianness): Use type instead of length/byte_order arguments.
2050 (set_decnumber_context): Likewise.
2051 (decimal_from_number): Likewise. Update calls.
2052 (decimal_to_number): Likewise.
2053 (decimal_is_zero): Likewise. Update calls. Move to earlier in file.
2054 (decimal_float_ops::to_host_double): New dummy function.
2055 (decimal_float_ops::from_host_double): Likewise.
2056 (decimal_to_string): Rename to ...
2057 (decimal_float_ops::to_string): ... this. Use type instead of
2058 length/byte_order arguments. Update calls.
2059 (decimal_from_string): Rename to ...
2060 (decimal_float_ops::from_string): ... this. Use type instead of
2061 length/byte_order arguments. Update calls.
2062 (decimal_from_longest): Rename to ...
2063 (decimal_float_ops::from_longest): ... this. Use type instead of
2064 length/byte_order arguments. Update calls.
2065 (decimal_from_ulongest): Rename to ...
2066 (decimal_float_ops::from_ulongest): ... this. Use type instead of
2067 length/byte_order arguments. Update calls.
2068 (decimal_to_longest): Rename to ...
2069 (decimal_float_ops::to_longest): ... this. Use type instead of
2070 length/byte_order arguments. Update calls.
2071 (decimal_binop): Rename to ...
2072 (decimal_float_ops::binop): ... this. Use type instead of
2073 length/byte_order arguments. Update calls.
2074 (decimal_compare): Rename to ...
2075 (decimal_float_ops::compare): ... this. Use type instead of
2076 length/byte_order arguments. Update calls.
2077 (decimal_convert): Rename to ...
2078 (decimal_float_ops::convert): ... this. Use type instead of
2079 length/byte_order arguments. Update calls.
2080
2081 (target_float_same_category_p): New function.
2082 (target_float_same_format_p): Likewise.
2083 (target_float_format_length): Likewise.
2084 (enum target_float_ops_kind): New type.
2085 (get_target_float_ops_kind): New function.
2086 (get_target_float_ops): Three new overloaded functions.
2087
2088 (target_float_is_zero): Update call.
2089 (target_float_to_string): Add special handling of invalid numbers,
2090 infinities and NaN (moved from floatformat_to_string). Use
2091 target_float_ops callback.
2092 (target_float_from_string): Use target_float_ops callback.
2093 (target_float_to_longest): Likewise.
2094 (target_float_from_longest): Likewise.
2095 (target_float_from_ulongest): Likewise.
2096 (target_float_to_host_double): Likewise.
2097 (target_float_from_host_double): Likewise.
2098 (target_float_convert): Add special case for no-op conversions.
2099 Use target_float_ops callback.
2100 (target_float_binop): Use target_float_ops callback.
2101 (target_float_compare): Likewise.
2102
2103 2017-11-22 Yao Qi <yao.qi@linaro.org>
2104
2105 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use strcpy.
2106
2107 2017-11-22 Yao Qi <yao.qi@linaro.org>
2108
2109 * cli/cli-decode.c (help_list): Use memcpy instead of strncpy.
2110 * cp-namespace.c (cp_lookup_transparent_type_loop): Likewise.
2111
2112 2017-11-21 Jerome Guitton <guitton@adacore.com>
2113
2114 * ravenscar-thread.c (ravenscar_wait): Update inferior ptid
2115 with event ptid from the lower layer before doing the
2116 ravenscar-specific update.
2117
2118 2017-11-21 Joel Brobecker <brobecker@adacore.com>
2119
2120 * ravenscar-thread.c (is_ravenscar_task): Also verify that
2121 the ptid's TID is nonzero.
2122
2123 2017-11-21 Joel Brobecker <brobecker@adacore.com>
2124
2125 * ada-lang.h (ada_get_tcb_types_info): Add declaration.
2126 * ada-tasks.c (ada_get_tcb_types_info): Renames get_tcb_types_info.
2127 Make non-static. Change return type to char *. Adjust code
2128 accordingly. Rewrite the function's documentation.
2129 (read_atcb): Adjust call to get_tcb_types_info accordingly.
2130 * ravenscar-thread.c (ravenscar_inferior_created): Check that
2131 we have enough debugging information in the runtime to support
2132 Ada task debugging before we enable the ravenscar-thread layer.
2133
2134 2017-11-21 Joel Brobecker <brobecker@adacore.com>
2135
2136 * ada-lang.h (ada_get_task_info_from_ptid): Add declaration.
2137 * ada-tasks.c (ada_get_task_info_from_ptid): New function.
2138 * ravenscar-thread.c: Add into comment.
2139 (base_magic_null_ptid): Delete.
2140 (base_ptid): Change documentation.
2141 (ravenscar_active_task): Renames ravenscar_running_thread.
2142 All callers updated throughout.
2143 (is_ravenscar_task, ravenscar_get_thread_base_cpu): New function.
2144 (ravenscar_task_is_currently_active): Likewise.
2145 (get_base_thread_from_ravenscar_task): Ditto.
2146 (ravenscar_update_inferior_ptid): Adjust to handle multiple CPUs.
2147 (ravenscar_runtime_initialized): Likewise.
2148 (get_running_thread_id): Add new parameter "cpu". Adjust
2149 implementation to handle this new parameter.
2150 (ravenscar_fetch_registers): Small adjustment to use
2151 is_ravenscar_task and ravenscar_task_is_currently_active in
2152 order to decide whether to use the target beneath or this
2153 module's arch_ops.
2154 (ravenscar_store_registers, ravenscar_prepare_to_store): Likewise.
2155 (ravenscar_stopped_by_sw_breakpoint): Use
2156 get_base_thread_from_ravenscar_task to get the underlying
2157 thread, rather than using base_ptid.
2158 (ravenscar_stopped_by_hw_breakpoint, ravenscar_stopped_by_watchpoint)
2159 (ravenscar_stopped_data_address, ravenscar_core_of_thread):
2160 Likewise.
2161 (ravenscar_inferior_created): Do not set base_magic_null_ptid.
2162
2163 2017-11-21 Joel Brobecker <brobecker@adacore.com>
2164
2165 * ada-lang.h (struct ada_task_info) <base_cpu>: New field.
2166 * ada-lang.c (struct atcb_fieldno) <base_cpu>: New field.
2167 (get_tcb_types_info): Set fieldnos.base_cpu.
2168 (read_atcb): Set task_info->base_cpu.
2169 (info_task): Print "Base CPU" info if set by runtime.
2170
2171 2017-11-21 Joel Brobecker <brobecker@adacore.com>
2172
2173 * ravenscar-thread.c (ravenscar_stopped_by_sw_breakpoint)
2174 (ravenscar_stopped_by_hw_breakpoint, ravenscar_stopped_by_watchpoint)
2175 (ravenscar_stopped_data_address, ravenscar_core_of_thread):
2176 New functions.
2177 (init_ravenscar_thread_ops): Set the to_stopped_by_sw_breakpoint,
2178 to_stopped_by_hw_breakpoint, to_stopped_by_watchpoint,
2179 to_stopped_data_address and to_core_of_thread fields of
2180 ravenscar_ops.
2181
2182 2017-11-21 Ulrich Weigand <uweigand@de.ibm.com>
2183
2184 * ppc-tdep.h (enum powerpc_long_double_abi): New data type.
2185 (struct gdbarch_tdep): New member long_double_abi.
2186 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize long_double_abi
2187 member of tdep struct based on Tag_GNU_Power_ABI_FP attribute.
2188 * ppc-linux-tdep.c (ppc_linux_init_abi): Install long double data
2189 format depending on long_double_abi tdep member.
2190 (ppc_floatformat_for_type): Handle __ibm128 type.
2191
2192 2017-11-20 Simon Marchi <simon.marchi@polymtl.ca>
2193
2194 * darwin-nat.c (set_enable_mach_exceptions): Constify parameter.
2195
2196 2017-11-21 Pedro Alves <palves@redhat.com>
2197
2198 * dwarf2read.c (mapped_index::find_name_components_bounds)
2199 <completion mode, upper bound>: Use std::lower_bound instead of
2200 std::upper_bound.
2201 (test_mapped_index_find_name_component_bounds): Remove incorrect
2202 "t1_fund" from expected symbols.
2203
2204 2017-11-21 Pedro Alves <palves@redhat.com>
2205
2206 * dwarf2read.c (mapped_index::name_components_casing): New field.
2207 (mapped_index) <build_name_components,
2208 find_name_components_bounds): Declare new methods.
2209 (mapped_index::find_name_components_bounds)
2210 (mapped_index::build_name_components): New methods, factored out
2211 from dw2_expand_symtabs_matching_symbol.
2212 (check_find_bounds_finds)
2213 (test_mapped_index_find_name_component_bounds): New.
2214 (run_test): Rename to ...
2215 (test_dw2_expand_symtabs_matching_symbol): ... this.
2216 (run_test): Reimplement.
2217
2218 2017-11-21 Pedro Alves <palves@redhat.com>
2219
2220 * cp-name-parser.y (cp_ident_is_alpha, cp_ident_is_alnum): New.
2221 (symbol_end): Use cp_ident_is_alnum.
2222 (yylex): Use cp_ident_is_alpha and cp_ident_is_alnum.
2223 * dwarf2read.c (make_sort_after_prefix_name): New function.
2224 (dw2_expand_symtabs_matching_symbol): Use it.
2225 (test_symbols): Add more symbols.
2226 (run_test): Add tests.
2227
2228 2017-11-17 Tom Tromey <tom@tromey.com>
2229
2230 * symtab.h (enum symbol_subclass_kind): New.
2231 (struct symbol) <is_cplus_template_function, is_rust_vtable>:
2232 Remove.
2233 <subclass>: New member.
2234 (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): Update.
2235 * rust-lang.c (rust_get_trait_object_pointer): Update.
2236 * dwarf2read.c (read_func_scope): Update.
2237 (read_variable): Update.
2238
2239 2017-11-17 Tom Tromey <tom@tromey.com>
2240
2241 * dwarf2read.c (read_func_scope): Update.
2242 * symtab.h (struct template_symbol): Derive from symbol.
2243 <base>: Remove.
2244
2245 2017-11-17 Tom Tromey <tom@tromey.com>
2246
2247 * symtab.h (struct symbol) <is_rust_vtable>: New member.
2248 (struct rust_vtable_symbol): New.
2249 (find_symbol_at_address): Declare.
2250 * symtab.c (find_symbol_at_address): New function.
2251 * symfile.h (struct quick_symbol_functions)
2252 <find_compunit_symtab_by_address>: New member.
2253 * symfile-debug.c (debug_qf_find_compunit_symtab_by_address): New
2254 function.
2255 (debug_sym_quick_functions): Link to
2256 debug_qf_find_compunit_symtab_by_address.
2257 * rust-lang.c (rust_get_trait_object_pointer): New function.
2258 (rust_evaluate_subexp) <case UNOP_IND>: New case. Call
2259 rust_get_trait_object_pointer.
2260 * psymtab.c (psym_relocate): Clear psymbol_map.
2261 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address): New
2262 functions.
2263 (psym_functions): Link to psym_find_compunit_symtab_by_address.
2264 * objfiles.h (struct objfile) <psymbol_map>: New member.
2265 * dwarf2read.c (dwarf2_gdb_index_functions): Update.
2266 (process_die) <DW_TAG_variable>: New case. Call read_variable.
2267 (rust_containing_type, read_variable): New functions.
2268
2269 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
2270
2271 * common/gdb_vecs.h (DEF_VEC_I (int)): Remove.
2272
2273 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
2274
2275 * common/filestuff.c: Include <algorithm>.
2276 (open_fds): Change type to std::vector<int>.
2277 (do_mark_open_fd): Adjust.
2278 (unmark_fd_no_cloexec): Adjust.
2279 (do_close): Adjust.
2280
2281 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
2282
2283 * breakpoint.c (output_thread_groups): Take an std::vector.
2284 (print_one_breakpoint_location): Adjust.
2285
2286 2017-11-17 Joel Brobecker <brobecker@adacore.com>
2287
2288 * ada-lang.c (resolve_subexp): Add handling of OP_VAR_MSYM_VALUE.
2289 (ada_evaluate_subexp_for_cast): New function.
2290 (ada_evaluate_subexp) <UNOP_CAST>: Replace code by call to
2291 ada_evaluate_subexp_for_cast.
2292 (ada_evaluate_subexp) <nosideret>: Replace code by call to
2293 eval_skip_value.
2294 * eval.c (evaluate_var_value): Make non-static.
2295 (evaluate_var_msym_value, eval_skip_value): Likewise.
2296 * value.h (evaluate_var_value, evaluate_var_msym_value)
2297 (eval_skip_value): Declare.
2298
2299 2017-11-16 Joel Brobecker <brobecker@adacore.com>
2300
2301 * ada-lang.c (ada_value_cast): Remove parameter "noside".
2302 Update all callers.
2303
2304 2017-11-16 Pedro Alves <palves@redhat.com>
2305
2306 * python/py-unwind.c (pyuw_sniffer): Translate
2307 PyExc_KeyboardInterrupt to a GDB Quit exception.
2308
2309 2017-11-16 Pedro Alves <palves@redhat.com>
2310
2311 * infrun.c (resume_cleanups): Delete.
2312 (resume): No longer install a resume_cleanups cleanup nor call
2313 QUIT.
2314 (proceed): Pass the terminal to the inferior.
2315 (keep_going_pass_signal): No longer install a resume_cleanups
2316 cleanup.
2317
2318 2017-11-16 Pedro Alves <palves@redhat.com>
2319
2320 * inf-loop.c (inferior_event_handler): Don't swallow the exception
2321 if the prompt is blocked.
2322
2323 2017-11-16 Pedro Alves <palves@redhat.com>
2324
2325 * breakpoint.c (insert_bp_location): Replace bp_err and
2326 bp_err_message locals by a gdb_exception local.
2327
2328 2017-11-16 Pedro Alves <palves@redhat.com>
2329
2330 * inflow.c (scoped_ignore_sigttou): New class.
2331 (child_terminal_ours_1, new_tty): Use it.
2332
2333 2017-11-16 Ulrich Weigand <uweigand@de.ibm.com>
2334
2335 * target-float.c (decimal_from_number): Add byte_order argument and
2336 call match_endianness. Error if unknown floating-point type.
2337 (decimal_to_number): Add byte_order argument and call match_endianness.
2338 (decimal_from_longest): Update call. Do not call match_endianness.
2339 (decimal_from_ulongest): Likewise.
2340 (decimal_binop): Likewise.
2341 (decimal_is_zero): Likewise.
2342 (decimal_compare): Likewise.
2343 (decimal_convert): Likewise.
2344
2345 2017-11-16 Phil Muldoon <pmuldoon@redhat.com>
2346
2347 * python/python.c (gdbpy_rbreak): New function.
2348 * NEWS: Document Python rbreak feature.
2349
2350 2017-11-16 Yao Qi <yao.qi@linaro.org>
2351
2352 * features/tic6x-c62x.xml: Remove.
2353 * features/tic6x-c64x.xml: Remove.
2354 * features/tic6x-c64xp.xml: Remove.
2355
2356 2017-11-15 John Baldwin <jhb@FreeBSD.org>
2357
2358 * symtab.h: Include <array>.
2359
2360 2017-11-15 John Baldwin <jhb@FreeBSD.org>
2361
2362 * bsd-kvm.c (bsd_kvm_cmd): Constify 'arg'.
2363 (bsd_kvm_proc_cmd): Likewise.
2364
2365 2017-11-15 Simon Marchi <simon.marchi@ericsson.com>
2366
2367 * tui/tui-win.c (window_name_completer): Replace VEC with
2368 std::vector.
2369
2370 2017-11-15 Andrew Cagney <cagney@gnu.org>
2371
2372 * MAINTAINERS: Remove no-longer applicable entries.
2373
2374 2017-11-15 Andrew Cagney <cagney@gnu.org>
2375
2376 * MAINTAINERS: Move self to Past Maintainers.
2377
2378 2017-11-15 Yao Qi <yao.qi@linaro.org>
2379
2380 * features/Makefile (XMLTOC): Remove nios2-linux.xml.
2381 * features/nios2-linux.c: Remove.
2382 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Don't call
2383 initialize_tdesc_nios2_linux.
2384
2385 2017-11-15 Yao Qi <yao.qi@linaro.org>
2386
2387 * m68hc11-tdep.c (M68HC11_NUM_REGS): Change it to
2388 M68HC11_LAST_HARD_REG + 1.
2389
2390 2017-11-14 Paul Carroll <pcarroll@codesourcery.com>
2391
2392 PR gdb/22388
2393 * remote.c (remote_write_bytes_aux, remote_read_bytes_1,
2394 remote_read_bytes, remote_write_qxfer, remote_xfer_partial):
2395 Return TARGET_XFER_EOF if size of returned data is 0.
2396
2397 2017-11-14 Simon Marchi <simon.marchi@ericsson.com>
2398
2399 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2400 memory-map-selftests.c.
2401 (SUBDIR_UNITTESTS_OBS): Add memory-map-selftests.o.
2402 * memory-map.c (memory_map_start_memory): Fix computation of hi
2403 address.
2404 * unittests/memory-map-selftests.c: New file.
2405
2406 2017-11-09 Joel Brobecker <brobecker@adacore.com>
2407
2408 * ada-lang.c: Fix some typos in the general command documenting
2409 how Ada expressions are being evaluated and how their result
2410 is printed.
2411
2412 2017-11-09 Tom Tromey <tom@tromey.com>
2413
2414 * psymtab.c (psymbol_hash): Do not hash string contents.
2415 (psymbol_compare): Add comment.
2416
2417 2017-11-09 Tom Tromey <tom@tromey.com>
2418
2419 * dictionary.c (dict_hash): Move "TKB" check into the "switch".
2420
2421 2017-11-08 Joel Brobecker <brobecker@adacore.com>
2422
2423 * ada-exp.y (write_var_from_sym): Remove parameter
2424 "orig_left_context". Update all callers.
2425
2426 2017-11-08 Simon Marchi <simon.marchi@ericsson.com>
2427
2428 * tracepoint.h (class collection_list) <stringify>: Return
2429 std::vector<std::string>.
2430 (encode_actions_rsp): Change parameters to
2431 std::vector<std::string> *.
2432 * tracepoint.c (collection_list::stringify): Return
2433 std::vector<std::string> and adjust accordingly.
2434 (encode_actions_rsp): Changee parameters to
2435 std::vector<std::string> and adjust accordingly.
2436 * remote.c (free_actions_list),
2437 free_actions_list_cleanup_wrapper): Remove.
2438 (remote_download_tracepoint): Adjust to std::vector.
2439
2440 2017-11-08 Tom Tromey <tom@tromey.com>
2441
2442 * dwarf2read.c (symbolp): Remove typedef.
2443 (read_func_scope): Use std::vector.
2444 (process_structure_scope): Use std::vector.
2445
2446 2017-11-08 Pedro Alves <palves@redhat.com>
2447
2448 * ada-lang.c (ada_make_symbol_completion_list): Use
2449 completion_skip_symbol.
2450 * symtab.c (symbol_is_function_or_method(minimal_symbol*)): New.
2451 (symbol_is_function_or_method(symbol*)): New.
2452 (add_symtab_completions): Add complete_symbol_mode parameter. Use
2453 completion_skip_symbol.
2454 (default_collect_symbol_completion_matches_break_on): Use
2455 completion_skip_symbol. Pass down mode.
2456 (collect_file_symbol_completion_matches): Pass down mode.
2457 * symtab.h (symbol_is_function_or_method): New declarations.
2458 (completion_skip_symbol): New template function.
2459
2460 2017-11-08 Pedro Alves <palves@redhat.com>
2461
2462 * linespec.c (iterate_over_all_matching_symtabs): Add
2463 search_domain parameter. Pass it down to expand_symtabs_matching.
2464 (decode_objc): Request FUNCTIONS_DOMAIN symbols only.
2465 (lookup_prefix_sym): Adjust by passing ALL_DOMAIN as
2466 search_domain.
2467 (add_all_symbol_names_from_pspace): Add search_domain parameter.
2468 Pass it down.
2469 (find_method, find_function_symbols): Request FUNCTIONS_DOMAIN
2470 symbols.
2471 (add_matching_symbols_to_info): Add search_domain parameter. Pass
2472 it down.
2473
2474 2017-11-08 Pedro Alves <palves@redhat.com>
2475
2476 * ada-lang.c (ada_make_symbol_completion_list): Remove text and
2477 text_len locals and don't pass them down.
2478 * symtab.c (completion_list_add_name): Remove
2479 sym_text/sym_text_len parameters and adjust.
2480 (completion_list_add_symbol, completion_list_add_msymbol)
2481 (completion_list_objc_symbol, completion_list_add_fields)
2482 (add_symtab_completions): Likewise.
2483 (default_collect_symbol_completion_matches_break_on)
2484 (collect_file_symbol_completion_matches): Remove sym_text_len
2485 local and don't pass it down.
2486 * symtab.h (completion_list_add_name): Remove
2487 sym_text/sym_text_len parameters.
2488
2489 2017-11-08 Pedro Alves <palves@redhat.com>
2490
2491 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2492 unittests/lookup_name_info-selftests.c.
2493 (SUBDIR_UNITTESTS_OBS): Add lookup_name_info-selftests.o.
2494 * cp-support.c: Include "selftest.h".
2495 (cp_remove_params_1): Rename from cp_remove_params. Add
2496 'require_param' parameter, and handle it.
2497 (cp_remove_params): Reimplement.
2498 (cp_remove_params_if_any): New.
2499 (selftests::quote): New.
2500 (selftests::check_remove_params): New.
2501 (selftests::test_cp_remove_params): New.
2502 (_initialize_cp_support): Install
2503 selftests::test_cp_remove_params.
2504 * cp-support.h (cp_remove_params_if_any): Declare.
2505 * dwarf2read.c :Include "selftest.h".
2506 (dw2_expand_symtabs_matching_symbol): Use
2507 lookup_name_info::make_ignore_params.
2508 (selftests::dw2_expand_symtabs_matching::mock_mapped_index)
2509 (selftests::dw2_expand_symtabs_matching::string_or_null)
2510 (selftests::dw2_expand_symtabs_matching::check_match)
2511 (selftests::dw2_expand_symtabs_matching::test_symbols)
2512 (selftests::dw2_expand_symtabs_matching::run_test): New.
2513 (_initialize_dwarf2_read): Register
2514 selftests::dw2_expand_symtabs_matching::run_test.
2515 * psymtab.c (psym_expand_symtabs_matching): Use
2516 lookup_name_info::make_ignore_params.
2517 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info):
2518 If the lookup name wants to ignore parameters, strip them.
2519 (compare_symbol_name): Remove sym_text/sym_text_len parameters and
2520 code handling '('.
2521 (completion_list_add_name): Don't pass down sym_text/sym_text_len.
2522 (default_collect_symbol_completion_matches_break_on): Don't try to
2523 strip parameters.
2524 * symtab.h (lookup_name_info::lookup_name_info): Add
2525 'ignore_parameters' parameter.
2526 (lookup_name_info::ignore_parameters)
2527 (lookup_name_info::make_ignore_params): New methods.
2528 (lookup_name_info::m_ignore_parameters): New field.
2529 * unittests/lookup_name_info-selftests.c: New file.
2530
2531 2017-11-08 Pedro Alves <palves@redhat.com>
2532
2533 * dwarf2read.c (dw2_expand_marked_cus)
2534 (dw2_expand_symtabs_matching_symbol): Remove forward declarations.
2535 (dw2_expand_symtabs_matching): Move further below.
2536 (dw2_expand_marked_cus): Reindent.
2537
2538 2017-11-08 Pedro Alves <palves@redhat.com>
2539
2540 * dwarf2read.c (byte_swap, MAYBE_SWAP): Move higher up in file.
2541 (struct name_component): New.
2542 (mapped_index::name_components): New field.
2543 (mapped_index::symbol_name_at): New method.
2544 (dwarf2_read_index): Call mapped_index ctor.
2545 (dw2_map_matching_symbols): Add comment about name_components
2546 table.
2547 (dw2_expand_symtabs_matching): Factor part to...
2548 (dw2_expand_symtabs_matching_symbol): ... this new function.
2549 Build name components table, and lookup symbols in it before
2550 calling the name matcher.
2551 (dw2_expand_marked_cus): New, factored out from
2552 dw2_expand_symtabs_matching.
2553 (dwarf2_per_objfile_free): Call the mapped_index's dtor.
2554
2555 2017-11-08 Pedro Alves <palves@redhat.com>
2556
2557 * ada-lang.c (ada_encode): Rename to ..
2558 (ada_encode_1): ... this. Add throw_errors parameter and handle
2559 it.
2560 (ada_encode): Reimplement.
2561 (match_name): Delete, folded into full_name.
2562 (resolve_subexp): No longer pass the encoded name to
2563 ada_lookup_symbol_list.
2564 (should_use_wild_match): Delete.
2565 (name_match_type_from_name): New.
2566 (ada_lookup_simple_minsym): Use lookup_name_info and the
2567 language's symbol_name_matcher_ftype.
2568 (add_symbols_from_enclosing_procs, ada_add_local_symbols)
2569 (ada_add_block_renamings): Adjust to use lookup_name_info.
2570 (ada_lookup_name): New.
2571 (add_nonlocal_symbols, ada_add_all_symbols)
2572 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list)
2573 (ada_iterate_over_symbols): Adjust to use lookup_name_info.
2574 (ada_name_for_lookup): Delete.
2575 (ada_lookup_encoded_symbol): Construct a verbatim name.
2576 (wild_match): Reverse sense of return type. Use bool.
2577 (full_match): Reverse sense of return type. Inline bits of old
2578 match_name here.
2579 (ada_add_block_symbols): Adjust to use lookup_name_info.
2580 (symbol_completion_match): Delete, folded into...
2581 (ada_lookup_name_info::matches): ... .this new method.
2582 (symbol_completion_add): Delete.
2583 (ada_collect_symbol_completion_matches): Add name_match_type
2584 parameter. Adjust to use lookup_name_info and
2585 completion_list_add_name.
2586 (get_var_value, ada_add_global_exceptions): Adjust to use
2587 lookup_name_info.
2588 (ada_get_symbol_name_cmp): Delete.
2589 (do_wild_match, do_full_match): New functions.
2590 (ada_lookup_name_info::ada_lookup_name_info): New method.
2591 (ada_symbol_name_matches, ada_get_symbol_name_matcher): New
2592 functions.
2593 (ada_language_defn): Install ada_get_symbol_name_matcher.
2594 * ada-lex.l (processId): If name starts with '<', copy it
2595 verbatim.
2596 * block.c (block_iter_match_step, block_iter_match_first)
2597 (block_iter_match_next, block_lookup_symbol)
2598 (block_lookup_symbol_primary, block_find_symbol): Adjust to use
2599 lookup_name_info.
2600 * block.h (block_iter_match_first, block_iter_match_next)
2601 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use lookup_name_info.
2602 * c-lang.c (c_language_defn, cplus_language_defn)
2603 (asm_language_defn, minimal_language_defn): Adjust comments to
2604 refer to la_get_symbol_name_matcher.
2605 * completer.c (complete_files_symbols)
2606 (collect_explicit_location_matches, symbol_completer): Pass a
2607 symbol_name_match_type down.
2608 * completer.h (class completion_match, completion_match_result):
2609 New classes.
2610 (completion_tracker::reset_completion_match_result): New method.
2611 (completion_tracker::m_completion_match_result): New field.
2612 * cp-support.c (make_symbol_overload_list_block): Adjust to use
2613 lookup_name_info.
2614 (cp_fq_symbol_name_matches, cp_get_symbol_name_matcher): New
2615 functions.
2616 * cp-support.h (cp_get_symbol_name_matcher): New declaration.
2617 * d-lang.c: Adjust comments to refer to
2618 la_get_symbol_name_matcher.
2619 * dictionary.c (dict_vector) <iter_match_first, iter_match_next>:
2620 Adjust to use lookup_name_info.
2621 (dict_iter_match_first, dict_iter_match_next)
2622 (iter_match_first_hashed, iter_match_next_hashed)
2623 (iter_match_first_linear, iter_match_next_linear): Adjust to work
2624 with a lookup_name_info.
2625 * dictionary.h (dict_iter_match_first, dict_iter_match_next):
2626 Likewise.
2627 * dwarf2read.c (dw2_lookup_symbol): Adjust to use lookup_name_info.
2628 (dw2_map_matching_symbols): Adjust to use symbol_name_match_type.
2629 (gdb_index_symbol_name_matcher): New class.
2630 (dw2_expand_symtabs_matching) Adjust to use lookup_name_info and
2631 gdb_index_symbol_name_matcher. Accept a NULL symbol_matcher.
2632 * f-lang.c (f_collect_symbol_completion_matches): Adjust to work
2633 with a symbol_name_match_type.
2634 (f_language_defn): Adjust comments to refer to
2635 la_get_symbol_name_matcher.
2636 * go-lang.c (go_language_defn): Adjust comments to refer to
2637 la_get_symbol_name_matcher.
2638 * language.c (default_symbol_name_matcher)
2639 (language_get_symbol_name_matcher): New functions.
2640 (unknown_language_defn, auto_language_defn): Adjust comments to
2641 refer to la_get_symbol_name_matcher.
2642 * language.h (symbol_name_cmp_ftype): Delete.
2643 (language_defn) <la_collect_symbol_completion_matches>: Add match
2644 type parameter.
2645 <la_get_symbol_name_cmp>: Delete field.
2646 <la_get_symbol_name_matcher>: New field.
2647 <la_iterate_over_symbols>: Adjust to use lookup_name_info.
2648 (default_symbol_name_matcher, language_get_symbol_name_matcher):
2649 Declare.
2650 * linespec.c (iterate_over_all_matching_symtabs)
2651 (iterate_over_file_blocks): Adjust to use lookup_name_info.
2652 (find_methods): Add language parameter, and use lookup_name_info
2653 and the language's symbol_name_matcher_ftype.
2654 (linespec_complete_function): Adjust.
2655 (lookup_prefix_sym): Use lookup_name_info.
2656 (add_all_symbol_names_from_pspace): Adjust.
2657 (find_superclass_methods): Add language parameter and pass it
2658 down.
2659 (find_method): Pass symbol language down.
2660 (find_linespec_symbols): Don't demangle or Ada encode here.
2661 (search_minsyms_for_name): Add lookup_name_info parameter.
2662 (add_matching_symbols_to_info): Add name_match_type parameter.
2663 Use lookup_name_info.
2664 * m2-lang.c (m2_language_defn): Adjust comments to refer to
2665 la_get_symbol_name_matcher.
2666 * minsyms.c: Include <algorithm>.
2667 (add_minsym_to_demangled_hash_table): Remove table parameter and
2668 add objfile parameter. Use search_name_hash, and add language to
2669 demangled languages vector.
2670 (struct found_minimal_symbols): New struct.
2671 (lookup_minimal_symbol_mangled, lookup_minimal_symbol_demangled):
2672 New functions.
2673 (lookup_minimal_symbol): Adjust to use them. Don't canonicalize
2674 input names here. Use lookup_name_info instead. Lookup up
2675 demangled names once for each language in the demangled names
2676 vector.
2677 (iterate_over_minimal_symbols): Use lookup_name_info. Lookup up
2678 demangled names once for each language in the demangled names
2679 vector.
2680 (build_minimal_symbol_hash_tables): Adjust.
2681 * minsyms.h (iterate_over_minimal_symbols): Adjust to pass down a
2682 lookup_name_info.
2683 * objc-lang.c (objc_language_defn): Adjust comment to refer to
2684 la_get_symbol_name_matcher.
2685 * objfiles.h: Include <vector>.
2686 (objfile_per_bfd_storage) <demangled_hash_languages>: New field.
2687 * opencl-lang.c (opencl_language_defn): Adjust comment to refer to
2688 la_get_symbol_name_matcher.
2689 * p-lang.c (pascal_language_defn): Adjust comment to refer to
2690 la_get_symbol_name_matcher.
2691 * psymtab.c (psym_lookup_symbol): Use lookup_name_info.
2692 (match_partial_symbol): Use symbol_name_match_type,
2693 lookup_name_info and psymbol_name_matches.
2694 (lookup_partial_symbol): Use lookup_name_info.
2695 (map_block): Use symbol_name_match_type and lookup_name_info.
2696 (psym_map_matching_symbols): Use symbol_name_match_type.
2697 (psymbol_name_matches): New.
2698 (recursively_search_psymtabs): Use lookup_name_info and
2699 psymbol_name_matches. Rename 'kind' parameter to 'domain'.
2700 (psym_expand_symtabs_matching): Use lookup_name_info. Rename
2701 'kind' parameter to 'domain'.
2702 * rust-lang.c (rust_language_defn): Adjust comment to refer to
2703 la_get_symbol_name_matcher.
2704 * symfile-debug.c (debug_qf_map_matching_symbols)
2705 (debug_qf_map_matching_symbols): Use symbol_name_match_type.
2706 (debug_qf_expand_symtabs_matching): Use lookup_name_info.
2707 * symfile.c (expand_symtabs_matching): Use lookup_name_info.
2708 * symfile.h (quick_symbol_functions) <map_matching_symbols>:
2709 Adjust to use symbol_name_match_type.
2710 <expand_symtabs_matching>: Adjust to use lookup_name_info.
2711 (expand_symtabs_matching): Adjust to use lookup_name_info.
2712 * symmisc.c (maintenance_expand_symtabs): Use
2713 lookup_name_info::match_any ().
2714 * symtab.c (symbol_matches_search_name): New.
2715 (eq_symbol_entry): Adjust to use lookup_name_info and the
2716 language's matcher.
2717 (demangle_for_lookup_info::demangle_for_lookup_info): New.
2718 (lookup_name_info::match_any): New.
2719 (iterate_over_symbols, search_symbols): Use lookup_name_info.
2720 (compare_symbol_name): Add language, lookup_name_info and
2721 completion_match_result parameters, and use them.
2722 (completion_list_add_name): Make extern. Add language and
2723 lookup_name_info parameters. Use them.
2724 (completion_list_add_symbol, completion_list_add_msymbol)
2725 (completion_list_objc_symbol): Add lookup_name_info parameters and
2726 adjust. Pass down language.
2727 (completion_list_add_fields): Add lookup_name_info parameters and
2728 adjust. Pass down language.
2729 (add_symtab_completions): Add lookup_name_info parameters and
2730 adjust.
2731 (default_collect_symbol_completion_matches_break_on): Add
2732 name_match_type parameter, and use it. Use lookup_name_info.
2733 (default_collect_symbol_completion_matches)
2734 (collect_symbol_completion_matches): Add name_match_type
2735 parameter, and pass it down.
2736 (collect_symbol_completion_matches_type): Adjust.
2737 (collect_file_symbol_completion_matches): Add name_match_type
2738 parameter, and use lookup_name_info.
2739 * symtab.h: Include <string> and "common/gdb_optional.h".
2740 (enum class symbol_name_match_type): New.
2741 (class ada_lookup_name_info): New.
2742 (struct demangle_for_lookup_info): New.
2743 (class lookup_name_info): New.
2744 (symbol_name_matcher_ftype): New.
2745 (SYMBOL_MATCHES_SEARCH_NAME): Use symbol_matches_search_name.
2746 (symbol_matches_search_name): Declare.
2747 (MSYMBOL_MATCHES_SEARCH_NAME): Delete.
2748 (default_collect_symbol_completion_matches)
2749 (collect_symbol_completion_matches)
2750 (collect_file_symbol_completion_matches): Add name_match_type
2751 parameter.
2752 (iterate_over_symbols): Use lookup_name_info.
2753 (completion_list_add_name): Declare.
2754 * utils.c (enum class strncmp_iw_mode): Moved to utils.h.
2755 (strncmp_iw_with_mode): Now extern.
2756 * utils.h (enum class strncmp_iw_mode): Moved from utils.c.
2757 (strncmp_iw_with_mode): Declare.
2758
2759 2017-11-08 Keith Seitz <keiths@redhat.com>
2760 Pedro Alves <palves@redhat.com>
2761
2762 * ada-lang.c (ada_language_defn): Install
2763 default_search_name_hash.
2764 * buildsym.c (struct buildsym_compunit): <language>: New field.
2765 (finish_block_internal): Pass language when creating dictionaries.
2766 (start_buildsym_compunit, start_symtab): New language parameters.
2767 Use them.
2768 (restart_symtab): Pass down compilation unit's language.
2769 * buildsym.h (enum language): Forward declare.
2770 (start_symtab): New 'language' parameter.
2771 * c-lang.c (c_language_defn, cplus_language_defn)
2772 (asm_language_defn, minimal_language_defn): Install
2773 default_search_name_hash.
2774 * coffread.c (coff_start_symtab): Adjust.
2775 * d-lang.c (d_language_defn): Install default_search_name_hash.
2776 * dbxread.c (struct symloc): Add 'pst_language' field.
2777 (PST_LANGUAGE): Define.
2778 (start_psymtab, read_ofile_symtab): Use it.
2779 (process_one_symbol): New 'language' parameter. Pass it down.
2780 * dictionary.c (struct dictionary) <language>: New field.
2781 (DICT_LANGUAGE): Define.
2782 (dict_create_hashed, dict_create_hashed_expandable)
2783 (dict_create_linear, dict_create_linear_expandable): New parameter
2784 'language'. Set the dictionary's language.
2785 (iter_match_first_hashed): Adjust to rename.
2786 (insert_symbol_hashed): Assert we don't see mismatching
2787 languages. Adjust to rename.
2788 (dict_hash): Rename to ...
2789 (default_search_name_hash): ... this and make extern.
2790 * dictionary.h (struct language_defn): Forward declare.
2791 (dict_create_hashed): New parameter 'language'.
2792 * dwarf2read.c (dwarf2_start_symtab): Pass down language.
2793 * f-lang.c (f_language_defn): Install default_search_name_hash.
2794 * go-lang.c (go_language_defn): Install default_search_name_hash.
2795 * jit.c (finalize_symtab): Pass compunit's language to dictionary
2796 creation.
2797 * language.c (unknown_language_defn, auto_language_defn):
2798 * language.h (language_defn::la_search_name_hash): New field.
2799 (default_search_name_hash): Declare.
2800 * m2-lang.c (m2_language_defn): Install default_search_name_hash.
2801 * mdebugread.c (new_block): New parameter 'language'.
2802 * mdebugread.c (parse_symbol): Pass symbol language to block
2803 allocation.
2804 (psymtab_to_symtab_1): Pass down language.
2805 (new_symtab): Pass compunit's language to block allocation.
2806 * objc-lang.c (objc_language_defn): Install
2807 default_search_name_hash.
2808 * opencl-lang.c (opencl_language_defn):
2809 * p-lang.c (pascal_language_defn): Install
2810 default_search_name_hash.
2811 * rust-lang.c (rust_language_defn): Install
2812 default_search_name_hash.
2813 * stabsread.h (enum language): Forward declare.
2814 (process_one_symbol): Add 'language' parameter.
2815 * symtab.c (search_name_hash): New function.
2816 * symtab.h (search_name_hash): Declare.
2817 * xcoffread.c (read_xcoff_symtab): Pass language to start_symtab.
2818
2819 2017-11-08 Pedro Alves <palves@redhat.com>
2820
2821 * cp-name-parser.y (main): Don't initialize extra_chars.
2822
2823 2017-11-07 Tom Tromey <tom@tromey.com>
2824
2825 * event-top.h (command_handler): Constify.
2826 * record-full.c (cmd_record_full_start): Update.
2827 * thread.c (thread_apply_all_command): Update.
2828 * printcmd.c (eval_command): Update.
2829 * mi/mi-main.c (mi_execute_cli_command): Update.
2830 (mi_execute_async_cli_command): Update.
2831 * tui/tui-stack.c (tui_update_command): Update.
2832 * cli/cli-interp.c (safe_execute_command): Constify.
2833 * record.c (record_start): Update.
2834 (record_start, record_stop, cmd_record_start): Update.
2835 * record-btrace.c (cmd_record_btrace_bts_start): Update.
2836 (cmd_record_btrace_pt_start): Update.
2837 (cmd_record_btrace_start): Update.
2838 (cmd_record_btrace_start): Update.
2839 * reverse.c (exec_reverse_once): Update.
2840 * python/python.c (execute_gdb_command): Don't copy the command.
2841 * event-top.c (command_line_handler): Update.
2842 (command_handler): Constify.
2843 * defs.h (deprecated_call_command_hook): Constify.
2844 * cli/cli-script.h (execute_user_command): Constify.
2845 * cli/cli-script.c (execute_user_command): Constify.
2846 (execute_cmd_pre_hook, execute_cmd_post_hook): Constify.
2847 (enum command_control_type): Update.
2848 * main.c (catch_command_errors): Remove non-const overload.
2849 (catch_command_errors_ftype): Remove.
2850 * python/py-cmd.c (cmdpy_function): Constify.
2851 * guile/scm-cmd.c (cmdscm_function): Constify.
2852 * cli/cli-dump.c (call_dump_func): Constify.
2853 * cli/cli-decode.c (do_const_cfunc): Constify.
2854 (do_sfunc): Constify.
2855 (cmd_func): Constify.
2856 * gdbcmd.h (execute_command, execute_command_to_string): Constify.
2857 * top.h (execute_command): Constify.
2858 * top.c (execute_command): Constify.
2859 (execute_command_to_string): Constify.
2860 (deprecated_call_command_hook): Constify.
2861 * command.h (cmd_func): Constify.
2862 * cli/cli-decode.h (struct cmd_list_element) <func>: Constify.
2863
2864 2017-11-07 Tom Tromey <tom@tromey.com>
2865
2866 * ada-lang.c (catch_ada_exception_command): Constify.
2867 (catch_assert_command): Constify.
2868 * break-catch-throw.c (catch_catch_command, catch_throw_command)
2869 (catch_rethrow_command): Constify.
2870 (catch_exception_command_1): Constify.
2871 * breakpoint.h (add_catch_command): Constify.
2872 * break-catch-syscall.c (catch_syscall_command_1): Constify.
2873 (catch_syscall_split_args): Constify.
2874 * break-catch-sig.c (catch_signal_command): Constify.
2875 (catch_signal_split_args): Constify.
2876 * cli/cli-decode.h (struct cmd_list_element) <function>: Use
2877 cmd_const_sfunc_ftype.
2878 * cli/cli-decode.c (add_setshow_cmd_full): Constify.
2879 (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd)
2880 (add_setshow_boolean_cmd, add_setshow_filename_cmd)
2881 (add_setshow_string_cmd, struct cmd_list_element)
2882 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
2883 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
2884 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd):
2885 Constify.
2886 (set_cmd_sfunc): Constify.
2887 (empty_sfunc): Constify.
2888 * command.h (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd)
2889 (add_setshow_boolean_cmd, add_setshow_filename_cmd)
2890 (add_setshow_string_cmd, add_setshow_string_noescape_cmd)
2891 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
2892 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
2893 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
2894 Constify.
2895 (set_cmd_sfunc): Constify.
2896 (cmd_sfunc_ftype): Remove.
2897 * compile/compile.c (set_compile_args): Constify.
2898 * infrun.c (set_disable_randomization): Constify.
2899 * infcmd.c (set_args_command, set_cwd_command): Constify.
2900 * breakpoint.c (set_condition_evaluation_mode): Constify.
2901 (add_catch_command): Constify.
2902 (catch_fork_command_1, catch_exec_command_1)
2903 (catch_load_command_1, catch_unload_command_1): Constify.
2904 (catch_load_or_unload): Constify.
2905 * guile/scm-param.c (pascm_set_func): Constify.
2906 (add_setshow_generic): Constify.
2907 * python/py-param.c (get_set_value): Constify.
2908 * top.h (set_verbose): Constify.
2909 * tui/tui-win.c (tui_set_var_cmd): Constify.
2910 * mi/mi-main.c (set_mi_async_command): Constify.
2911 * cli/cli-logging.c (set_logging_overwrite)
2912 (set_logging_redirect): Constify.
2913 * value.c (set_max_value_size): Constify.
2914 * valprint.c (set_input_radix, set_output_radix): Constify.
2915 * utils.c (set_width_command, set_height_command): Constify.
2916 * typeprint.c (set_print_type_methods, set_print_type_typedefs): Constify.
2917 * tracepoint.c (set_disconnected_tracing)
2918 (set_circular_trace_buffer, set_trace_buffer_size)
2919 (set_trace_user, set_trace_notes, set_trace_stop_notes): Constify.
2920 * top.c (set_history_size_command, set_verbose, set_editing)
2921 (set_gdb_datadir, set_history_filename): Constify.
2922 * target.c (set_targetdebug, maint_set_target_async_command)
2923 (maint_set_target_non_stop_command, set_target_permissions)
2924 (set_write_memory_permission): Constify.
2925 (open_target): Constify.
2926 * target-descriptions.c (set_tdesc_filename_cmd): Constify.
2927 * target-dcache.c (set_stack_cache, set_code_cache): Constify.
2928 * symtab.c (set_symbol_cache_size_handler): Constify.
2929 * symfile.c (set_ext_lang_command): Constify.
2930 * symfile-debug.c (set_debug_symfile): Constify.
2931 * source.c (set_directories_command): Constify.
2932 * solib.c (reload_shared_libraries, gdb_sysroot_changed): Constify.
2933 * serial.c (set_parity): Constify.
2934 * rs6000-tdep.c (powerpc_set_soft_float, powerpc_set_vector_abi): Constify.
2935 * remote.c (set_remote_exec_file, set_remotebreak)
2936 (set_remote_protocol_Z_packet_cmd, set_range_stepping): Constify.
2937 * record.c (set_record_insn_history_size)
2938 (set_record_call_history_size): Constify.
2939 * record-full.c (set_record_full_insn_max_num): Constify.
2940 * proc-api.c (set_procfs_trace_cmd, set_procfs_file_cmd): Constify.
2941 * osabi.c (set_osabi): Constify.
2942 * mips-tdep.c (set_mips64_transfers_32bit_regs)
2943 (reinit_frame_cache_sfunc, mips_abi_update): Constify.
2944 * maint.c (maintenance_set_profile_cmd): Constify.
2945 * linux-thread-db.c (set_libthread_db_search_path): Constify.
2946 * language.c (set_language_command, set_range_command)
2947 (set_case_command): Constify.
2948 * infrun.c (set_non_stop, set_observer_mode)
2949 (set_stop_on_solib_events, set_schedlock_func)
2950 (set_exec_direction_func): Constify.
2951 * infcmd.c (set_inferior_tty_command): Constify.
2952 * disasm.c (set_disassembler_options_sfunc): Constify.
2953 * demangle.c (set_demangling_command): Constify.
2954 * dcache.c (set_dcache_size, set_dcache_line_size): Constify.
2955 * cris-tdep.c (set_cris_version, set_cris_mode)
2956 (set_cris_dwarf2_cfi): Constify.
2957 * corefile.c (set_gnutarget_command): Constify.
2958 * charset.c (set_host_charset_sfunc, set_target_charset_sfunc)
2959 (set_target_wide_charset_sfunc): Constify.
2960 * breakpoint.c (update_dprintf_commands): Constify.
2961 * auto-load.c (set_auto_load_dir, set_auto_load_safe_path): Constify.
2962 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi)
2963 (set_disassembly_style_sfunc): Constify.
2964 * arch-utils.c (set_endian, set_architecture): Constify.
2965 * alpha-tdep.c (reinit_frame_cache_sfunc): Constify.
2966 * agent.c (set_can_use_agent): Constify.
2967
2968 2017-11-07 Tom Tromey <tom@tromey.com>
2969
2970 * go32-nat.c (go32_sysinfo, go32_sldt, go32_sgdt, go32_sidt)
2971 (go32_pde, go32_pte, go32_pte_for_address): Constify.
2972 * gnu-nat.c (_parse_bool_arg, show_thread_default_pause_cmd)
2973 (set_thread_default_pause_cmd, set_thread_default_run_cmd)
2974 (show_thread_default_run_cmd, set_thread_default_detach_sc_cmd)
2975 (parse_int_arg, show_thread_default_detach_sc_cmd)
2976 (set_signals_cmd, show_signals_cmd, set_sig_thread_cmd)
2977 (show_sig_thread_cmd, set_stopped_cmd, show_stopped_cmd)
2978 (set_exceptions_cmd, show_exceptions_cmd, set_task_pause_cmd)
2979 (show_task_pause_cmd, set_task_detach_sc_cmd)
2980 (show_task_detach_sc_cmd, set_task_exc_port_cmd)
2981 (set_noninvasive_cmd, set_thread_pause_cmd)
2982 (show_thread_pause_cmd, set_thread_run_cmd, show_thread_run_cmd)
2983 (set_thread_detach_sc_cmd, show_thread_detach_sc_cmd)
2984 (set_thread_exc_port_cmd, thread_takeover_sc_cmd): Constify.
2985 * windows-nat.c (display_selectors): Constify.
2986 * cli/cli-decode.h (struct cmd_list_element) <function>: Remove
2987 non-const "cfunc".
2988 * cli/cli-decode.c (set_cmd_cfunc): Remove non-const overload.
2989 (cmd_cfunc_eq): Likewise.
2990 (struct cmd_list_element): Likewise.
2991 (do_cfunc): Remove.
2992 (cli_user_command_p): Update.
2993 * command.h (add_cmd): Remove non-const overload.
2994 (cmd_cfunc_ftype): Remove typedef.
2995 (cmd_cfunc_eq): Remove non-const overload.
2996 * value.c (show_values): Constify.
2997 * thread.c (thread_apply_all_command): Constify.
2998 * symfile.c (load_command): Constify.
2999 * source.c (directory_command): Constify.
3000 * maint.c (maintenance_internal_error)
3001 (maintenance_demangler_warning, maintenance_space_display)
3002 (maintenance_print_architecture, maintenance_translate_address)
3003 (maintenance_info_selftests, maintenance_internal_warning):
3004 Constify.
3005 * breakpoint.c (disable_trace_command, enable_trace_command):
3006 Constify.
3007 * auto-load.c (info_auto_load_local_gdbinit, add_auto_load_dir):
3008 Constify.
3009 (add_auto_load_safe_path): Constify.
3010 * guile/scm-auto-load.c (info_auto_load_guile_scripts): Constify.
3011 * top.h (show_commands): Constify.
3012 * linux-thread-db.c (info_auto_load_libthread_db): Constify.
3013 * sparc64-tdep.c (adi_examine_command): Constify.
3014 (adi_assign_command): Constify.
3015
3016 2017-11-07 Tom Tromey <tom@tromey.com>
3017
3018 * frame.h (info_locals_command, info_args_command): Constify.
3019 * auto-load.h (auto_load_info_scripts): Constify.
3020 * inferior.h (registers_info): Constify.
3021 * copying.c: Rebuild.
3022 * copying.awk: Constify generated commands.
3023 * auto-load.c (auto_load_info_scripts)
3024 (info_auto_load_gdb_scripts): Constify.
3025 * cli/cli-decode.c (struct cmd_list_element): Take a
3026 cmd_const_cfunc_ftype.
3027 * command.h (add_info): Take a cmd_const_cfunc_ftype.
3028 * tui/tui-win.c (tui_all_windows_info): Constify.
3029 * python/py-auto-load.c (info_auto_load_python_scripts):
3030 Constify.
3031 * cli/cli-cmds.c (show_command): Remove non-const overload.
3032 * tracepoint.c (info_tvariables_command, info_scope_command):
3033 Constify.
3034 (info_static_tracepoint_markers_command): Constify.
3035 * thread.c (info_threads_command): Constify.
3036 (print_thread_info_1): Constify.
3037 * target.c (info_target_command): Constify.
3038 * symtab.c (info_sources_command, info_functions_command)
3039 (info_types_command): Constify.
3040 (info_variables_command): Remove non-const overload.
3041 * symfile.c (info_ext_lang_command): Constify.
3042 * stack.c (info_frame_command, info_locals_command)
3043 (info_args_command): Constify.
3044 (backtrace_command): Remove non-const overload.
3045 * source.c (info_source_command, info_line_command): Constify.
3046 * solib.c (info_sharedlibrary_command): Constify.
3047 * skip.c (info_skip_command): Constify.
3048 * ser-go32.c (info_serial_command): Constify.
3049 * reverse.c (info_bookmarks_command): Constify.
3050 * printcmd.c (info_symbol_command, info_address_command)
3051 (info_display_command): Constify.
3052 * osdata.c (info_osdata_command): Constify.
3053 * objc-lang.c (info_selectors_command, info_classes_command):
3054 Constify.
3055 * nto-procfs.c (procfs_pidlist, procfs_meminfo): Constify.
3056 * memattr.c (info_mem_command): Constify.
3057 * macrocmd.c (info_macro_command, info_macros_command): Constify.
3058 * linux-fork.c (info_checkpoints_command): Constify.
3059 * infrun.c (info_signals_command): Constify.
3060 * inflow.c (info_terminal_command): Constify.
3061 * inferior.c (info_inferiors_command): Constify.
3062 (print_inferior): Constify.
3063 * infcmd.c (info_program_command, info_all_registers_command)
3064 (info_registers_command, info_vector_command)
3065 (info_float_command): Constify.
3066 (registers_info): Constify.
3067 * gnu-nat.c (info_send_rights_cmd, info_recv_rights_cmd)
3068 (info_port_sets_cmd, info_dead_names_cmd, info_port_rights_cmd):
3069 Constify.
3070 * f-valprint.c (info_common_command): Constify.
3071 * dcache.c (info_dcache_command): Constify.
3072 (dcache_info_1): Constify.
3073 * darwin-nat-info.c (info_mach_tasks_command)
3074 (info_mach_task_command, info_mach_ports_command)
3075 (info_mach_port_command, info_mach_threads_command)
3076 (info_mach_thread_command, info_mach_regions_command)
3077 (info_mach_regions_recurse_command, info_mach_region_command)
3078 (info_mach_exceptions_command): Constify.
3079 (get_task_from_args): Constify.
3080 * cp-support.c (info_vtbl_command): Constify.
3081 * breakpoint.c (info_watchpoints_command)
3082 (info_tracepoints_command): Constify.
3083 (info_breakpoints_command): Remove non-const overload.
3084 * avr-tdep.c (avr_io_reg_read_command): Constify.
3085 * auxv.c (info_auxv_command): Constify.
3086 * ada-tasks.c (info_tasks_command): Constify.
3087 (info_task): Constify.
3088 * ada-lang.c (info_exceptions_command): Constify.
3089
3090 2017-11-07 Tom Tromey <tom@tromey.com>
3091
3092 * solib.h (no_shared_libraries): Constify.
3093 * frame.h (return_command): Constify.
3094 * cli/cli-cmds.h (quit_command): Constify.
3095 * top.h (quit_command, execute_command): Constify.
3096 * target.h (flash_erase_command): Constify.
3097 * inferior.h (set_inferior_args, attach_command): Constify.
3098 * tracepoint.h (start_tracing, stop_tracing): Constify.
3099 * breakpoint.h (break_command, tbreak_command)
3100 (hbreak_command_wrapper, thbreak_command_wrapper)
3101 (rbreak_command_wrapper, watch_command_wrapper)
3102 (awatch_command_wrapper, rwatch_command_wrapper)
3103 (get_tracepoint_by_number): Constify.
3104 * symtab.c (info_variables_command, rbreak_command)
3105 (symtab_symbol_info): Constify.
3106 (info_variables_command): Add non-const overload.
3107 * top.c (dont_repeat_command): Constify.
3108 * breakpoint.c (ignore_command, commands_command)
3109 (condition_command, tbreak_command, hbreak_command)
3110 (thbreak_command, clear_command, break_command)
3111 (info_breakpoints_command, watch_command, rwatch_command)
3112 (awatch_command, trace_command, ftrace_command, strace_command)
3113 (trace_pass_command, break_range_command, dprintf_command)
3114 (agent_printf_command, get_tracepoint_by_number)
3115 (watch_maybe_just_location, trace_pass_command): Constify.
3116 (info_breakpoints_command): Add non-const overload.
3117 * tracefile.c (tsave_command): Constify.
3118 * infcmd.c (attach_command, disconnect_command, signal_command)
3119 (queue_signal_command, stepi_command, nexti_command)
3120 (finish_command, next_command, step_command, until_command)
3121 (advance_command, jump_command, continue_command, run_command)
3122 (start_command, starti_command, interrupt_command)
3123 (run_command_1, set_inferior_args, step_1): Constify.
3124 * inferior.c (add_inferior_command, remove_inferior_command)
3125 (clone_inferior_command): Constify.
3126 * linux-fork.c (checkpoint_command, restart_command): Constify.
3127 * windows-nat.c (signal_event_command): Constify.
3128 * guile/guile.c (guile_repl_command, guile_command): Constify.
3129 * printcmd.c (x_command, display_command, printf_command)
3130 (output_command, set_command, call_command, print_command)
3131 (eval_command): Constify.
3132 (non_const_set_command): Remove.
3133 (_initialize_printcmd): Update.
3134 * source.c (forward_search_command, reverse_search_command):
3135 Constify.
3136 * jit.c (jit_reader_load_command, jit_reader_unload_command):
3137 Constify.
3138 * infrun.c (handle_command): Constify.
3139 * memattr.c (mem_command): Constify.
3140 * stack.c (return_command, up_command, up_silently_command)
3141 (down_command, down_silently_command, frame_command)
3142 (backtrace_command, func_command, backtrace_command_1): Constify.
3143 (backtrace_command): Add non-const overload.
3144 * remote-sim.c (simulator_command): Constify.
3145 * exec.c (set_section_command): Constify.
3146 * tracepoint.c (tdump_command, trace_variable_command)
3147 (tstatus_command, tstop_command, tstart_command)
3148 (end_actions_pseudocommand, while_stepping_pseudocommand)
3149 (collect_pseudocommand, teval_pseudocommand, actions_command)
3150 (start_tracing, stop_tracing): Constify.
3151 * value.c (init_if_undefined_command): Constify.
3152 * tui/tui-stack.c (tui_update_command): Constify.
3153 * tui/tui-win.c (tui_refresh_all_command)
3154 (tui_set_tab_width_command, tui_set_win_height_command)
3155 (tui_set_focus_command, tui_scroll_forward_command)
3156 (tui_scroll_backward_command, tui_scroll_left_command)
3157 (tui_scroll_right_command, parse_scrolling_args, tui_set_focus)
3158 (tui_set_win_height): Constify.
3159 * tui/tui-layout.c (tui_layout_command): Constify.
3160 * procfs.c (proc_trace_syscalls, proc_trace_sysentry_cmd)
3161 (proc_trace_sysexit_cmd, proc_untrace_sysentry_cmd)
3162 (proc_untrace_sysexit_cmd): Constify.
3163 * remote.c (threadlist_test_cmd, threadinfo_test_cmd)
3164 (threadset_test_cmd, threadlist_update_test_cmd)
3165 (threadalive_test): Constify.
3166 * objc-lang.c (print_object_command): Constify.
3167 * command.h (add_com): Constify.
3168 * cli/cli-dump.c (restore_command): Constify.
3169 * cli/cli-cmds.c (pwd_command, echo_command, quit_command)
3170 (help_command, complete_command, shell_command, edit_command)
3171 (list_command, disassemble_command, make_command)
3172 (apropos_command, alias_command): Constify.
3173 * cli/cli-script.c (document_command, define_command)
3174 (while_command, if_command, validate_comname): Constify.
3175 * cli/cli-decode.c (struct cmd_list_element): Change type of
3176 "fun".
3177 * target.c (do_monitor_command, flash_erase_command): Constify.
3178 * regcache.c (reg_flush_command): Constify.
3179 * reverse.c (reverse_step, reverse_next, reverse_stepi)
3180 (reverse_nexti, reverse_continue, reverse_finish)
3181 (save_bookmark_command, goto_bookmark_command)
3182 (exec_reverse_once): Constify.
3183 * python/python.c (python_interactive_command, python_command):
3184 Constify.
3185 * typeprint.c (ptype_command, whatis_command, whatis_exp):
3186 Constify.
3187 * solib.c (sharedlibrary_command, no_shared_libraries): Constify.
3188 * gcore.c (gcore_command): Constify.
3189
3190 2017-11-07 Tom Tromey <tom@tromey.com>
3191
3192 * printcmd.c (x_command): Call set_repeat_arguments.
3193 * cli/cli-cmds.c (list_command): Call set_repeat_arguments.
3194 * top.c (repeat_arguments): New global.
3195 (set_repeat_arguments): New function.
3196 (execute_command): Handle repeat_arguments.
3197 (show_commands): Calls set_repeat_arguments.
3198 * command.h (set_repeat_arguments): Declare.
3199
3200 2017-11-07 Tom Tromey <tom@tromey.com>
3201
3202 * stack.c (backtrace_command): Use std::string.
3203 (backtrace_command_1): Make "count_exp" const.
3204
3205 2017-11-07 Tom Tromey <tom@tromey.com>
3206
3207 * source.c (directory_switch, mod_path, add_path): Constify.
3208 * defs.h (add_path, mod_path, directory_switch): Constify.
3209 * mi/mi-cmd-env.c (env_mod_path): Constify.
3210
3211 2017-11-07 Tom Tromey <tom@tromey.com>
3212
3213 * infcmd.c (strip_bg_char): Return gdb::unique_xmalloc_ptr.
3214 (run_command_1, continue_command, step_1, jump_command)
3215 (signal_command, until_command, advance_command, finish_command)
3216 (attach_command): Update.
3217
3218 2017-11-07 Tom Tromey <tom@tromey.com>
3219
3220 * command.h (set_cmd_cfunc): Don't declare.
3221 * cli/cli-decode.c (set_cmd_cfunc): Now static.
3222
3223 2017-11-07 Tom Tromey <tom@tromey.com>
3224
3225 * stack.c (select_frame_command): Constify.
3226 * cli/cli-decode.c (add_com_suppress_notification): Constify.
3227 * command.h (add_com_suppress_notification): Constify.
3228
3229 2017-11-07 Tom Tromey <tom@tromey.com>
3230
3231 * breakpoint.c (stop_command): Constify.
3232 * cli/cli-decode.c (struct cmd_list_element): Constify.
3233 * command.h (add_abbrev_prefix_cmd): Constify.
3234
3235 2017-11-07 Pedro Alves <palves@redhat.com>
3236
3237 * breakpoint.c (extract_bp_kind): New enum.
3238 (extract_bp_num, extract_bp_or_bp_range): New functions, partially
3239 factored out from ...
3240 (extract_bp_number_and_location): ... here.
3241 * cli/cli-utils.c (get_number_trailer): Handle '-$variable'.
3242
3243 2017-11-07 Pedro Alves <palves@redhat.com>
3244
3245 * breakpoint.c (extract_bp_number_and_location): Change return
3246 type to void. Throw error instead of warning.
3247 (enable_disable_command): Adjust.
3248
3249 2017-11-07 Xavier Roirand <roirand@adacore.com>
3250 Pedro Alves <palves@redhat.com>
3251
3252 * breakpoint.c (map_breakpoint_number_range): New, factored out
3253 from ...
3254 (map_breakpoint_numbers): ... here.
3255 (find_location_by_number): Change parameters from string to
3256 breakpoint number and location.
3257 (extract_bp_number_and_location): New function.
3258 (enable_disable_bp_num_loc)
3259 (enable_disable_breakpoint_location_range)
3260 (enable_disable_command): New functions, factored out ...
3261 (enable_command, disable_command): ... these functions, and
3262 adjusted to support ranges.
3263 * NEWS: Document enable/disable breakpoint location range feature.
3264
3265 2017-11-06 Luis Machado <luis.machado@linaro.org>
3266
3267 * MAINTAINERS (Write After Approval): Update my e-mail address.
3268
3269 2017-11-06 Pedro Alves <palves@redhat.com>
3270
3271 * gnu-nat.c (gnu_terminal_init): Delete.
3272 (gnu_target): Don't install gnu_terminal_init.
3273 * inflow.c (child_terminal_init_with_pgrp): Delete, merged with ...
3274 (child_terminal_init): ... this function.
3275
3276 2017-11-06 Pedro Alves <palves@redhat.com>
3277
3278 * common/common.m4 (GDB_AC_COMMON): No longer check termio.h nor
3279 sgtty.h.
3280 * config.in, configure: Regenerate.
3281
3282 2017-11-06 Pedro Alves <palves@redhat.com>
3283
3284 * event-top.c: Check SIGTSTP instead of STOP_SIGNAL thoughout.
3285 (async_init_signals): Adjust.
3286 (handle_stop_sig): Rename to ...
3287 (handle_sigtstp): ... this.
3288 (async_stop_sig): Rename to ...
3289 (async_sigtstp_handler): ... this, and delete STOP_SIGNAL !=
3290 SIGTSTP path.
3291 * event-top.h: Move signal.h include to the top. Check SIGTSTP
3292 instead of STOP_SIGNAL thoughout.
3293 (handle_stop_sig): Rename to ...
3294 (handle_sigtstp): ... this.
3295 * top.c (command_line_input): Replace STOP_SIGNAL -> SIGTSTP.
3296
3297 2017-11-06 Pedro Alves <palves@redhat.com>
3298
3299 * inflow.c (child_terminal_inferior, child_terminal_ours_1): No
3300 longer set flags twice in row.
3301
3302 2017-11-06 Pedro Alves <palves@redhat.com>
3303
3304 * Makefile.in (SER_HARDWIRE): Update comment.
3305 (HFILES_NO_SRCDIR): Remove gdb_termios.h.
3306 * common/gdb_termios.h: Delete file.
3307 * common/job-control.c: Include termios.h and unistd.h instead of
3308 gdb_termios.h.
3309 (gdb_setpgid): Remove HAVE_TERMIOS || TIOCGPGRP preprocessor
3310 check.
3311 (have_job_control): Check HAVE_TERMIOS_H instead of HAVE_TERMIOS.
3312 Remove sgtty code.
3313 * configure.ac: No longer check for termio.h and sgtty.h.
3314 * configure: Regenerate.
3315 * inflow.c: Include termios.h instead of gdb_termios.h. Replace
3316 PROCESS_GROUP_TYPE checks with HAVE_TERMIOS_H checks throughout.
3317 Replace PROCESS_GROUP_TYPE references with pid_t references
3318 throughout.
3319 (gdb_getpgrp): Delete.
3320 (set_initial_gdb_ttystate): Use tcgetpgrp instead of gdb_getpgrp.
3321 (child_terminal_inferior): Remove comment. Remove sgtty code.
3322 (child_terminal_ours_1): Use tcgetpgrp directly instead of
3323 gdb_getpgrp. Use serial_set_tty_state instead aof
3324 serial_noflush_set_tty_state. Remove sgtty code.
3325 * inflow.h: Include unistd.h instead of gdb_termios.h. Replace
3326 PROCESS_GROUP_TYPE check with HAVE_TERMIOS_H check.
3327 (inferior_process_group): Now returns pid_t.
3328 * ser-base.c (ser_base_noflush_set_tty_state): Delete.
3329 * ser-base.h (ser_base_noflush_set_tty_state): Delete.
3330 * ser-event.c (serial_event_ops): Update.
3331 * ser-go32.c (dos_noflush_set_tty_state): Delete.
3332 (dos_ops): Update.
3333 * ser-mingw.c (hardwire_ops, tty_ops, pipe_ops, tcp_ops): Update.
3334 * ser-pipe.c (pipe_ops): Update.
3335 * ser-tcp.c (tcp_ops): Update.
3336 * ser-unix.c: Include termios.h instead of gdb_termios.h. Remove
3337 HAVE_TERMIOS checks.
3338 [HAVE_TERMIO] (struct hardwire_ttystate): Delete.
3339 [HAVE_SGTTY] (struct hardwire_ttystate): Delete.
3340 (get_tty_state, set_tty_state): Drop termio and sgtty code, and
3341 assume termios.
3342 (hardwire_noflush_set_tty_state): Delete.
3343 (hardwire_print_tty_state, hardwire_drain_output)
3344 (hardwire_flush_output, hardwire_flush_input)
3345 (hardwire_send_break, hardwire_raw, hardwire_setbaudrate)
3346 (hardwire_setstopbits, hardwire_setparity): Drop termio and sgtty
3347 code, and assume termios.
3348 (hardwire_ops): Update.
3349 (_initialize_ser_hardwire): Remove HAVE_TERMIOS check.
3350 * serial.c (serial_noflush_set_tty_state): Delete.
3351 * serial.h (serial_noflush_set_tty_state): Delete.
3352 (serial_ops::noflush_set_tty_state): Delete.
3353
3354 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3355
3356 * Makefile.in (SFILES): Remove doublest.c and dfp.c.
3357 (HFILES_NO_SRCDIR): Remove doublest.h and dfp.h.
3358 (COMMON_OBS): Remove doublest.o and dfp.o.
3359 Do not build target-float.c (instead of doublest.c)
3360 with -Wformat-nonliteral.
3361
3362 * doublest.c: Remove file.
3363 * doublest.h: Remove file.
3364 * dfp.c: Remove file.
3365 * dfp.h: Remove file.
3366
3367 * target-float.c: Do not include "doublest.h" and "dfp.h".
3368 (DOUBLEST): Move here from doublest.h.
3369 (enum float_kind): Likewise.
3370 (FLOATFORMAT_CHAR_BIT): Likewise.
3371 (FLOATFORMAT_LARGEST_BYTES): Likewise.
3372 (floatformat_totalsize_bytes): Move here from doublest.c. Make static.
3373 (floatformat_precision): Likewise.
3374 (floatformat_normalize_byteorder, get_field, put_field): Likewise.
3375 (floatformat_is_negative, floatformat_classify, floatformat_mantissa):
3376 Likewise.
3377 (host_float_format, host_double_format, host_long_double_format):
3378 Likewise.
3379 (floatformat_to_string, floatformat_from_string): Likewise.
3380 (floatformat_to_doublest): Likewise. Also, inline the original
3381 convert_floatformat_to_doublest.
3382 (floatformat_from_doublest): Likewise. Also, inline the original
3383 convert_floatformat_from_doublest.
3384
3385 Include "dpd/decimal128.h", "dpd/decimal64.h", and "dpd/decimal32.h".
3386 (MAX_DECIMAL_STRING): Move here from dfp.c.
3387 (match_endianness): Likewise.
3388 (set_decnumber_context, decimal_check_errors): Likewise.
3389 (decimal_from_number, decimal_to_number): Likewise.
3390 (decimal_to_string, decimal_from_string): Likewise. Make static.
3391 (decimal_from_longest, decimal_from_ulongest): Likewise.
3392 (decimal_to_longest): Likewise.
3393 (decimal_binop, decimal_is_zero, decimal_compare): Likewise.
3394 (decimal_convert): Likewise.
3395
3396 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3397
3398 * doublest.c: Do not include "gdbtypes.h".
3399 (extract_typed_floating): Remove.
3400 (store_typed_floating): Remove.
3401 (convert_typed_floating): Remove.
3402 * doublest.h (struct type): Remove.
3403 (DOUBLEST_PRINT_FORMAT): Remove.
3404 (DOUBLEST_SCAN_FORMAT): Remove.
3405 (extract_typed_floating): Remove.
3406 (store_typed_floating): Remove.
3407 (convert_typed_floating): Remove.
3408
3409 * dfp.c (decimal_from_doublest): Remove.
3410 (decimal_to_doublest): Remove.
3411 * dfp.h: Do not include "doublest.h".
3412 (decimal_from_doublest): Remove.
3413 (decimal_to_doublest): Remove.
3414
3415 * value.c: Do not include "doublest.h" and "dfp.h".
3416 (value_as_double): Remove.
3417 (unpack_double): Remove.
3418 (value_from_double): Remove.
3419 (value_from_decfloat): Remove.
3420 * value.h: Do not include "doublest.h".
3421 (value_as_double): Remove.
3422 (unpack_double): Remove.
3423 (value_from_double): Remove.
3424 (value_from_decfloat): Remove.
3425
3426 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3427
3428 * i386-tdep.c: Include "target-float.h". Do not include "doublest.h".
3429 (i386_extract_return_value): Use target_float_convert.
3430 (i386_store_return_value): Likewise.
3431 * i387-tdep.c (i387_register_to_value): Use target_float_convert.
3432 (i387_value_to_register): Likewise.
3433 * ia64-tdep.c: Include "target-float.h". Do not include "doublest.h".
3434 (ia64_register_to_value): Use target_float_convert.
3435 (ia64_value_to_register): Likewise.
3436 (ia64_extract_return_value): Likewise.
3437 (ia64_store_return_value): Likewise.
3438 (ia64_push_dummy_call): Likewise.
3439 * m68k-tdep.c: Include "target-float.h".
3440 (m68k_register_to_value): Use target_float_convert.
3441 (m68k_value_to_register): Likewise.
3442 (m68k_svr4_extract_return_value): Likewise.
3443 (m68k_svr4_store_return_value): Likewise.
3444 * ppc-sysv-tdep.c: Include "target-float.h".
3445 (ppc_sysv_abi_push_dummy_call): Use target_float_convert.
3446 (do_ppc_sysv_return_value): Likewise.
3447 (ppc64_sysv_abi_push_freg): Likewise.
3448 (ppc64_sysv_abi_return_value_base): Likewise.
3449 * rs6000-aix-tdep.c: Include "target-float.h".
3450 (rs6000_push_dummy_call): Use target_float_convert.
3451 (rs6000_return_value): Likewise.
3452 * rs6000-lynx178-tdep.c: Include "target-float.h".
3453 (rs6000_lynx178_push_dummy_call): Use target_float_convert.
3454 (rs6000_lynx178_return_value): Likewise.
3455 * rs6000-tdep.c: Include "target-float.h". Do not include "doublest.h".
3456 (rs6000_register_to_value): Use target_float_convert.
3457 (rs6000_value_to_register): Likewise.
3458 * arm-tdep.c: Include "target-float.h". Do not include "doublest.h".
3459 (arm_extract_return_value): Use target_float_convert.
3460 (arm_store_return_value): Likewise.
3461 * sh-tdep.c: Include "target-float.h". Do not include "doublest.h".
3462 (sh_register_convert_to_virtual): Use target_float_convert.
3463 (sh_register_convert_to_raw): Likewise.
3464 * sh64-tdep.c: Include "target-float.h".
3465 (sh64_extract_return_value): Use target_float_convert.
3466 (sh64_register_convert_to_virtual): Likewise.
3467 (sh64_register_convert_to_raw): Likewise. Fix argument types.
3468
3469 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3470
3471 * target-float.c (floatformat_to_host_double): New function.
3472 (floatformat_from_host_double): Likewise.
3473 (target_float_to_host_double): Likewise.
3474 (target_float_from_host_double): Likewise.
3475 * target-float.h (target_float_to_host_double): Add prototype.
3476 (target_float_from_host_double): Likewise.
3477
3478 * guile/scm-value.c: Include "target-float.h".
3479 (gdbscm_value_to_real): Use target_float_to_host_double.
3480 Handle integer source values via value_as_long.
3481 * guile/scm-math.c: Include "target-float.h". Do not include
3482 "doublest.h", "dfp.h", and "expression.h".
3483 (vlscm_convert_typed_number): Use target_float_from_host_double.
3484 (vlscm_convert_number): Likewise.
3485
3486 * python/py-value.c (valpy_float): Use target_float_to_host_double.
3487 (convert_value_from_python): Use target_float_from_host_double.
3488
3489 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3490
3491 * ada-lang.c (cast_to_fixed): Reimplement in target arithmetic.
3492 (cast_from_fixed): Likewise.
3493 (ada_scaling_type): New function.
3494 (ada_delta): Return value instead of DOUBLEST. Perform target
3495 arithmetic instead of host arithmetic.
3496 (scaling_factor): Rename to ...
3497 (ada_scaling_factor) ... this. Make non-static. Return value instead
3498 of DOUBLEST. Perform target arithmetic instead of host arithmetic.
3499 (ada_fixed_to_float): Remove.
3500 (ada_float_to_fixed): Remove.
3501 * ada-lang.h (ada_fixed_to_float): Remove.
3502 (ada_float_to_fixed): Remove.
3503 (ada_delta): Return value instead of DOUBLEST.
3504 (ada_scaling_factor): Add prototype.
3505
3506 * ada-typeprint.c: Include "target-float.h".
3507 (print_fixed_point_type): Perform target arithmetic instead of
3508 host arithmetic.
3509 * ada-valprint.c: Include "target-float.h".
3510 (ada_val_print_num): Perform target arithmetic instead of
3511 host arithmetic for fixed-point types.
3512
3513 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3514
3515 * target-float.c: Include <math.h>.
3516 (floatformat_binop): New function.
3517 (floatformat_compare): Likewise.
3518 (target_float_binop): Likewise.
3519 (target_float_compare): Likewise.
3520 * target-float.h: Include "expression.h".
3521 (target_float_binop): Add prototype.
3522 (target_float_compare): Likewise.
3523
3524 * valarith.c: Do not include "doublest.h" and "dfp.h".
3525 Include "common/byte-vector.h".
3526 (value_args_as_decimal): Remove, replace by ...
3527 (value_args_as_target_float): ... this function. Handle both
3528 binary and decimal target floating-point formats.
3529 (scalar_binop): Handle both binary and decimal FP using
3530 value_args_as_target_float and target_float_binop.
3531 (value_equal): Handle both binary and decimal FP using
3532 value_args_as_target_float and target_float_compare.
3533 (value_less): Likewise.
3534 (value_pos): Handle all scalar types as simple copy.
3535 (value_neg): Handle all scalar types via BINOP_SUB from 0.
3536 * dfp.c (decimal_binop): Throw error instead of internal_error
3537 when called with an unsupported operation code.
3538
3539 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3540
3541 * target-float.c (target_float_to_string): New function.
3542 (target_float_from_string): New function.
3543 * target-float.h (target_float_to_string): Add prototype.
3544 (target_float_from_string): Add prototype.
3545
3546 * valprint.c: Include "target-float.h". Do not include
3547 "doublest.h" and "dfp.h".
3548 (print_floating): Use target_float_to_string.
3549 * printcmd.c: Include "target-float.h". Do not include "dfp.h".
3550 (printf_floating): Use target_float_to_string.
3551 * i387-tdep.c: Include "target-float.h". Do not include "doublest.h".
3552 (print_i387_value): Use target_float_to_string.
3553 * mips-tdep.c: Include "target-float.h".
3554 (mips_print_fp_register): Use target_float_to_string.
3555 * sh64-tdep.c: Include "target-float.h".
3556 (sh64_do_fp_register): Use target_float_to_string.
3557
3558 * parse.c: Include "target-float.h". Do not include
3559 "doublest.h" and "dfp.h".
3560 (parse_float): Use target_float_from_string.
3561 * stabsread.c: Include "target-float.h". Do not include "doublest.h".
3562 (define_symbol): Use target_float_from_string.
3563 * gdbarch-selftests.c: Include "target-float.h".
3564 (register_to_value_test): Use target_float_from_string.
3565
3566 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3567
3568 * Makefile.c (SFILES): Add target-float.c.
3569 (HFILES_NO_SRCDIR): Add target-float.h.
3570 (COMMON_OBS): Add target-float.o.
3571 * target-float.h: New file.
3572 * target-float.c: New file.
3573
3574 * doublest.c (floatformat_classify): Fix detection of float_zero.
3575
3576 * gdbtypes.c (is_floating_type): New function.
3577 * gdbtypes.h (is_floating_type): Add prototype.
3578
3579 * value.c: Do not include "floatformat.h".
3580 (unpack_double): Use target_float_is_valid.
3581 (is_floating_value): New function.
3582 * value.h (is_floating_value): Add prototype-
3583
3584 * valarith.c: Include "target-float.h".
3585 (value_logical_not): Use target_float_is_zero.
3586
3587 * python/py-value.c: Include "target-float.h".
3588 (valpy_nonzero): Use target_float_is_zero.
3589
3590 2017-11-04 Tom Tromey <tom@tromey.com>
3591
3592 * h8300-tdep.c (h8300_push_dummy_call): Use std::vector.
3593
3594 2017-11-04 Tom Tromey <tom@tromey.com>
3595
3596 * breakpoint.c (set_momentary_breakpoint): Return
3597 breakpoint_up.
3598 (until_break_command): Update.
3599 (new_until_break_fsm): Change argument types to
3600 breakpoint_up.
3601 (set_momentary_breakpoint_at_pc): Return breakpoint_up.
3602 (do_delete_breakpoint_cleanup, make_cleanup_delete_breakpoint):
3603 Remove.
3604 * infcmd.c (finish_forward): Update.
3605 * breakpoint.h (set_momentary_breakpoint)
3606 (set_momentary_breakpoint_at_pc): Return breakpoint_up.
3607 (make_cleanup_delete_breakpoint): Remove.
3608 (struct breakpoint_deleter): New.
3609 (breakpoint_up): New typedef.
3610 * infrun.c (insert_step_resume_breakpoint_at_sal_1): Update.
3611 (insert_exception_resume_breakpoint): Update.
3612 (insert_exception_resume_from_probe): Update.
3613 (insert_longjmp_resume_breakpoint): Update.
3614 * arm-linux-tdep.c (arm_linux_copy_svc): Update.
3615 * elfread.c (elf_gnu_ifunc_resolver_stop): Update.
3616 * infcall.c (call_function_by_hand_dummy): Update
3617
3618 2017-11-04 Tom Tromey <tom@tromey.com>
3619
3620 * c-typeprint.c (c_type_print_base): Use gdb::unique_xmalloc_ptr.
3621
3622 2017-11-04 Tom Tromey <tom@tromey.com>
3623
3624 * linux-tdep.c (linux_core_info_proc_mappings): Use
3625 gdb::def_vector.
3626 (linux_get_siginfo_data): Return gdb::byte_vector. Remove
3627 "size" argument.
3628 (linux_corefile_thread): Update.
3629 (linux_make_corefile_notes): Remove unused variable.
3630
3631 2017-11-04 Tom Tromey <tom@tromey.com>
3632
3633 * ppc-linux-tdep.c (ppc_linux_get_syscall_number): Use
3634 gdb::byte_vector.
3635
3636 2017-11-04 Tom Tromey <tom@tromey.com>
3637
3638 * objfiles.c (do_free_objfile_cleanup): Remove.
3639 * compile/compile-object-load.c (compile_object_load): Update.
3640 * objfiles.h (make_cleanup_free_objfile): Remove.
3641
3642 2017-11-04 Tom Tromey <tom@tromey.com>
3643
3644 * sparc64-tdep.c (do_examine): Use gdb::def_vector.
3645 (adi_read_versions): Change "tags" to "gdb_byte *".
3646 (adi_print_versions): Likewise.
3647
3648 2017-11-04 Tom Tromey <tom@tromey.com>
3649
3650 * breakpoint.c
3651 (scoped_rbreak_breakpoints::scoped_rbreak_breakpoints): Rename
3652 from start_rbreak_breakpoints.
3653 (scoped_rbreak_breakpoints): Rename from end_rbreak_breakpoints.
3654 * breakpoint.h (class scoped_rbreak_breakpoints): New.
3655 (start_rbreak_breakpoints, end_rbreak_breakpoints): Remove.
3656 * symtab.c (do_end_rbreak_breakpoints): Remove.
3657 (rbreak_command): Use scoped_rbreak_breakpoints, std::string.
3658
3659 2017-11-04 Tom Tromey <tom@tromey.com>
3660
3661 * cp-namespace.c (reset_directive_searched): Remove.
3662 (cp_lookup_symbol_via_imports): Use scoped_restore.
3663 * cp-support.c (reset_directive_searched): Remove.
3664 (make_symbol_overload_list_using): Use scoped_restore.
3665 * d-namespace.c (d_lookup_symbol_imports): Use scoped_restore.
3666 (reset_directive_searched): Remove.
3667
3668 2017-11-04 Tom Tromey <tom@tromey.com>
3669
3670 * symfile.c (find_separate_debug_file_by_debuglink): Use
3671 unique_xmalloc_ptr.
3672
3673 2017-11-04 Tom Tromey <tom@tromey.com>
3674
3675 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
3676 type of "info".
3677 (compute_stack_depth): Likewise.
3678 (do_compile_dwarf_expr_to_c): Use std::vector.
3679
3680 2017-11-04 Tom Tromey <tom@tromey.com>
3681
3682 * compile/compile-object-load.c (link_callbacks_einfo): Use
3683 std::string.
3684
3685 2017-11-04 Tom Tromey <tom@tromey.com>
3686
3687 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
3688 Use scoped_free_pendings.
3689 * dbxread.c (dbx_symfile_read, dbx_psymtab_to_symtab_1): Use
3690 scoped_free_pendings.
3691 * xcoffread.c (xcoff_psymtab_to_symtab_1): Use scoped_free_pendings.
3692 (xcoff_initial_scan): Likewise.
3693 * buildsym.c (reset_symtab_globals): Update comment.
3694 (scoped_free_pendings): Rename from really_free_pendings.
3695 (prepare_for_building): Update comment.
3696 (buildsym_init): Likewise.
3697 * buildsym.h (class scoped_free_pendings): New class.
3698 (really_free_pendings): Don't declare.
3699
3700 2017-11-03 Ulrich Weigand <uweigand@de.ibm.com>
3701
3702 * doublest.c (convert_doublest_to_floatformat): Fix uninitialized
3703 output when converting a zero value to a special byteorder format.
3704
3705 2017-11-02 Yao Qi <yao.qi@linaro.org>
3706
3707 * frame.c (do_frame_register_read): Remove aspace.
3708 * jit.c (jit_frame_sniffer): Likwise.
3709 * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
3710 * regcache.c (regcache::regcache): Pass nullptr.
3711 (regcache_print): Caller updated.
3712 * regcache.h (regcache::regcache): Remove one constructor
3713 parameter aspace.
3714
3715 2017-11-02 Yao Qi <yao.qi@linaro.org>
3716
3717 * regcache.h (regcache) <m_readonly_p>: Change it to const bool.
3718
3719 2017-11-02 Yao Qi <yao.qi@linaro.org>
3720
3721 * breakpoint.c (insert_single_step_breakpoints): Update.
3722 * frame.c (struct frame_info) <aspace>: Add const.
3723 (frame_save_as_regcache): Add const.
3724 (get_frame_address_space): Return const address_space *.
3725 * frame.h (get_frame_address_space): Update declaration.
3726 * infrun.c (struct step_over_info) <aspace>: Add const.
3727 (set_step_over_info): Make aspace const.
3728 (displaced_step_prepare_throw): Change variable const.
3729 (resume): Likewise.
3730 (proceed): Likewise.
3731 (adjust_pc_after_break): Likewise.
3732 (save_waitstatus): Likewise.
3733 (handle_signal_stop): Likewise.
3734 (keep_going_pass_signal): Likewise.
3735 * jit.c (jit_frame_sniffer): Add const.
3736 * mips-tdep.c (mips_single_step_through_delay): Likewise.
3737 * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
3738 * record-full.c (record_full_wait_1): Likewise.
3739 * regcache.c (regcache::regcache): Change parameter to const.
3740 * regcache.h (regcache::regcache): Likewise.
3741 (regcache::aspace): Return const address_space *.
3742 (regcache) <m_aspace>: Add const.
3743
3744 2017-11-02 Yao Qi <yao.qi@linaro.org>
3745
3746 * darwin-nat.c (cancel_breakpoint): Use regcache->aspace ().
3747 * frame.c (create_sentinel_frame): Likewise.
3748 * infrun.c (displaced_step_prepare_throw): Likewise.
3749 (resume): Likewise.
3750 (thread_still_needs_step_over_bp): Likewise.
3751 (proceed): Likewise.
3752 (do_target_wait): Likewise.
3753 (adjust_pc_after_break): Likewise.
3754 (handle_syscall_event): Likewise.
3755 (save_waitstatus): Likewise.
3756 (handle_inferior_event_1): Likewise.
3757 (handle_signal_stop): Likewise.
3758 (keep_going_pass_signal): Likewise.
3759 * linux-nat.c (status_callback): Likewise.
3760 (save_stop_reason): Likewise.
3761 (resume_stopped_resumed_lwps): Likewise.
3762 * record-full.c (record_full_exec_insn): Likewise.
3763 (record_full_wait_1): Likewise.
3764 * regcache.c (get_regcache_aspace): Remove.
3765 * regcache.h (get_regcache_aspace): Remove.
3766
3767 2017-11-02 Yao Qi <yao.qi@linaro.org>
3768
3769 * regcache.c (struct regcache_descr) <nr_raw_registers>: Remove.
3770 (init_regcache_descr): Use gdbarch_num_regs.
3771 (regcache::regcache): Likewise.
3772 (regcache::get_register_status): Likewise.
3773 (regcache::assert_raw_regnum): Likewise.
3774 (regcache::cooked_read): Likewise.
3775 (regcache::cooked_read_value): Likewise.
3776 (regcache::cooked_write): Likewise.
3777 (regcache::dump): Likewise.
3778 (regcache::num_raw_registers): New method.
3779 * regcache.h (class regcache) <num_raw_registers>: New.
3780
3781 2017-11-02 Yao Qi <yao.qi@linaro.org>
3782
3783 * regcache.c (regcache::assert_regnum): New method.
3784 (regcache::invalidate): Call assert_regnum.
3785 (regcache::raw_update): Likewise.
3786 (regcache::raw_write): Likewise.
3787 (regcache::raw_read_part): Likewise.
3788 (regcache::raw_write_part): Likewise.
3789 (regcache::raw_supply): Likewise.
3790 (regcache::raw_supply_integer): Likewise.
3791 (regcache::raw_supply_zeroed): Likewise.
3792 (regcache::raw_collect): Likewise.
3793 (regcache::raw_collect_integer): Likewise.
3794 * regcache.h (regcache::assert_regnum): Declare.
3795
3796 2017-11-02 Yao Qi <yao.qi@linaro.org>
3797
3798 * regcache.c (regcache::dump): Remove code.
3799
3800 2017-11-02 Yao Qi <yao.qi@linaro.org>
3801
3802 * regcache.c (struct regcache_descr) <sizeof_raw_register_status>:
3803 Remove.
3804 <sizeof_cooked_register_status>: Remove.
3805 (init_regcache_descr): Update.
3806 (regcache::regcache): Use nr_cooked_registers and nr_raw_registers.
3807 (regcache::save): Likewise.
3808 (regcache::dump): Likewise.
3809
3810 2017-11-01 James Bowman <james.bowman@ftdichip.com>
3811
3812 * ft32-tdep.c (ft32_fetch_instruction): New function.
3813 (ft32_analyze_prologue): Use ft32_fetch_instruction().
3814
3815 2017-10-31 Simon Marchi <simon.marchi@polymtl.ca>
3816
3817 * cli/cli-script.c (execute_control_command): Rename to ...
3818 (execute_control_command_1): ... this.
3819 (execute_control_command): New function.
3820
3821 2017-10-31 Simon Marchi <simon.marchi@ericsson.com>
3822
3823 * tracepoint.c (tfind_command): Remove const_cast.
3824
3825 2017-10-30 Mike Gulick <mgulick@mathworks.com>
3826
3827 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to gdb.h.
3828
3829 2017-10-30 Simon Marchi <simon.marchi@ericsson.com>
3830
3831 * common/common-utils.h (in_inclusive_range): New function.
3832 * arm-tdep.c (arm_record_extension_space): Use
3833 in_inclusive_range.
3834 (thumb_record_ld_st_reg_offset): Use in_inclusive_range.
3835 * cris-tdep.c (cris_spec_reg_applicable): Use
3836 in_inclusive_range.
3837
3838 2017-10-30 Pedro Alves <palves@redhat.com>
3839 Simon Marchi <simon.marchi@ericsson.com>
3840
3841 * remote.c (remote_set_syscall_catchpoint): Build a std::string
3842 instead of a gdb::unique_xmalloc_ptr, using string_appendf.
3843
3844 2017-10-30 Pedro Alves <palves@redhat.com>
3845
3846 * common/common-utils.c (string_appendf, string_vappendf): New
3847 functions.
3848 * common/common-utils.h (string_appendf, string_vappendf): New
3849 declarations.
3850 * unittests/common-utils-selftests.c (string_appendf_func)
3851 (test_appendf_func, string_vappendf_wrapper, string_appendf_tests)
3852 (string_vappendf_tests): New functions.
3853 (_initialize_common_utils_selftests): Register "string_appendf" and
3854 "string_vappendf tests".
3855
3856 2017-10-30 Pedro Alves <palves@redhat.com>
3857
3858 * unittests/common-utils-selftests.c (format_func): New typedef.
3859 (string_printf_tests, string_vprintf_tests): Tests factored out
3860 and merged to ...
3861 (test_format_func): ... this new function.
3862 (string_printf_tests, string_vprintf_tests): Reimplement on top of
3863 test_format_func.
3864
3865 2017-10-29 Simon Marchi <simon.marchi@ericsson.com>
3866
3867 * darwin-nat.c: Remove include of gdb.h.
3868
3869 2017-10-29 Simon Marchi <simon.marchi@ericsson.com>
3870
3871 * xtensa-xtregs.c: Fix formatting issues.
3872
3873 2017-10-29 Simon Marchi <simon.marchi@ericsson.com>
3874
3875 * xtensa-xtregs.c (xtensa_regtable_t) <name>: Constify.
3876
3877 2017-10-28 Maksim Dzabraev <dzabraew@gmail.com>
3878
3879 PR python/21213
3880 * python/py-infthread.c (thpy_get_inferior): Increment reference
3881 of inferior before returning it.
3882
3883 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3884
3885 * unittests/common-utils-selftests.c (format): Add
3886 ATTRIBUTE_PRINTF.
3887
3888 2017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
3889
3890 * xml-syscall.c (struct syscall_desc): Add constructor.
3891 <name>: Change type to std::string.
3892 (syscall_desc_up): New typedef.
3893 (syscall_desc_p): Remove typeder.
3894 (DEF_VEC_P(syscall_desc_p)): Remove.
3895 (struct syscall_group_desc): Add constructor.
3896 <name>: Change type to std::string.
3897 <syscalls>: Change type to std::vector.
3898 (syscall_group_desc_up): New typedef.
3899 (syscall_group_desc_p): Remove typedef.
3900 (DEF_VEC_P(syscall_group_desc_p)): Remove.
3901 (struct syscalls_info) <syscalls>: Change type to std::vector of
3902 unique_ptr.
3903 <groups>: Likewise.
3904 <my_gdb_datadir>: Change type to std::string.
3905 (syscalls_info_up): New typedef.
3906 (allocate_syscalls_info): Remove.
3907 (syscalls_info_free_syscalls_desc): Remove.
3908 (syscalls_info_free_syscall_group_desc): Remove.
3909 (free_syscalls_info): Remove.
3910 (make_cleanup_free_syscalls_info): Remove.
3911 (syscall_group_create_syscall_group_desc): Adjust.
3912 (syscall_group_add_syscall): Adjust.
3913 (syscall_create_syscall_desc): Adjust.
3914 (syscall_parse_xml): Adjust, use unique_ptr instead of cleanup.
3915 (init_syscalls_info): Adjust.
3916 (syscall_group_get_group_by_name): Adjust.
3917 (xml_get_syscall_number): Adjust.
3918 (xml_get_syscall_name): Adjust.
3919 (xml_list_of_syscalls): Adjust.
3920 (xml_list_syscalls_by_group): Adjust.
3921 (xml_list_of_groups): Adjust.
3922
3923 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3924
3925 * probe.h: Don't include gdb_vecs.h.
3926 (DEF_VEC_P (probe_p)): Remove.
3927 (find_probes_in_objfile): Return an std::vector.
3928 * probe.c (find_probes_in_objfile): Likewise.
3929 * breakpoint.c (breakpoint_objfile_data)
3930 <longjmp_probes>: Change type to std::vector.
3931 <exception_probes>: Likewise.
3932 (free_breakpoint_probes): Don't manually free vectors.
3933 (create_longjmp_master_breakpoint): Adjust.
3934 (create_exception_master_breakpoint): Adjust.
3935 * solib-svr4.c (svr4_create_probe_breakpoints): Change
3936 parameter type, adjust.
3937 (svr4_create_solib_event_breakpoints): Adjust.
3938
3939 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3940
3941 * breakpoint.c (breakpoint_objfile_data): Initialize fields.
3942 (get_breakpoint_objfile_data): Allocate breakpoint_objfile_data
3943 with new.
3944 (free_breakpoint_probes): Rename to ...
3945 (free_breakpoint_objfile_data): ... this, and call delete on
3946 bp_objfile_data..
3947
3948 2017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
3949
3950 * auto-load.c: Don't include gdb_vecs.h, include algorithm.
3951 (loaded_script_ptr): Remove typedef.
3952 (DEF_VEC_P (loaded_script_ptr)): Remove.
3953 (struct collect_matching_scripts_data): Add constructor.
3954 <scripts_p>: Change type to (pointer to) std::vector.
3955 (collect_matching_scripts_data): Adjust.
3956 (sort_scripts_by_name): Make suitable for std::sort.
3957 (print_scripts): Don't sort vector, adjust to std::vector.
3958 (auto_load_info_scripts): Sort vectors, adjust to std::vector.
3959
3960 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3961
3962 * symfile.c (filename_language): Make struct, not typedef. Add
3963 constructor.
3964 <ext>: Change type to std::string.
3965 (DEF_VEC_O (filename_language)): Remove.
3966 (filename_language_table): Change type to std::vector.
3967 (add_filename_language): Adjust.
3968 (set_ext_lang_command): Adjust.
3969 (info_ext_lang_command): Adjust.
3970 (deduce_language_from_filename): Adjust.
3971 (class scoped_restore_filename_language_table): Remove.
3972 (test_filename_language): Use scoped_restore.
3973 (test_set_ext_lang_command): Use scoped_restore, adjust to
3974 std::vector change.
3975
3976 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3977
3978 * symfile.c: Include selftest.h.
3979 (class scoped_restore_filename_language_table): New.
3980 (test_filename_language): New test.
3981 (test_set_ext_lang_command): New test.
3982 (_initialize_symfile): Register tests.
3983
3984 2017-10-27 Keith Seitz <keiths@redhat.com>
3985
3986 * breakpoint.c (print_breakpoint_location): Use the symbol saved
3987 in the bp_location, falling back to find_pc_sect_function when
3988 needed.
3989 (add_location_to_breakpoint): Save sal->symbol.
3990 * breakpoint.h (struct bp_location) <symbol>: New field.
3991 * symtab.c (find_function_start_sal): Save the symbol into the SaL.
3992 * symtab.h (struct symtab_and_line) <symbol>: New field.
3993
3994 2017-10-26 Patrick Frants <osscontribute@gmail.com>
3995
3996 PR gdb/13669
3997 * cp-valprint.c (cp_print_value_fields): Use obstack_blank_fast
3998 to rewind obstack.
3999
4000 2017-10-26 Pedro Alves <palves@redhat.com>
4001
4002 * remote.c (remote_async_terminal_ours_p): Delete.
4003 (remote_open_1, remote_terminal_inferior, remote_terminal_ours):
4004 Remove references to 'remote_async_terminal_ours_p'.
4005
4006 2017-10-26 Yao Qi <yao.qi@linaro.org>
4007
4008 * breakpoint.h (regular_breakpoint_inserted_here_p): Remove.
4009
4010 2017-10-26 Yao Qi <yao.qi@linaro.org>
4011
4012 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Make
4013 aspace const.
4014 * break-catch-syscall.c (breakpoint_hit_catch_syscall):
4015 Likewise.
4016 * breakpoint.c (bpstat_check_location): Remove cast.
4017 (breakpoint_hit_catch_fork): Make aspce const.
4018 (breakpoint_hit_catch_solib): Likewise.
4019 (breakpoint_hit_catch_exec): Likewise.
4020 (breakpoint_hit_ranged_breakpoint): Likewise.
4021 (breakpoint_hit_watchpoint): Likewise.
4022 (base_breakpoint_breakpoint_hit): Likewise.
4023 (bkpt_breakpoint_hit): Likewise.
4024 (dprintf_breakpoint_hit): Likewise.
4025 (tracepoint_breakpoint_hit): Likewise.
4026 * breakpoint.h (breakpoint_ops) <breakpoint_hit>: Likewise.
4027
4028 2017-10-26 Yao Qi <yao.qi@linaro.org>
4029
4030 * breakpoint.c (breakpoint_location_address_match): Change
4031 "struct address_space *" to "const address_space".
4032 (breakpoint_location_address_range_overlap): Likewise.
4033 (breakpoint_here_p): Likewise.
4034 (breakpoint_in_range_p): Likewise.
4035 (moribund_breakpoint_here_p): Likewise.
4036 (bp_location_inserted_here_p): Likewise.
4037 (software_breakpoint_inserted_here_p): Likewise.
4038 (hardware_breakpoint_inserted_here_p): Likewise.
4039 (hardware_watchpoint_inserted_in_range): Likewise.
4040 (bpstat_check_location): Likewise.
4041 (bpstat_stop_status): Likewise.
4042 (breakpoint_address_match): Likewise.
4043 (breakpoint_address_match_range): Likewise.
4044 (breakpoint_location_address_match): Likewise.
4045 (breakpoint_location_address_range_overlap): Likewise.
4046 (insert_single_step_breakpoint): Likewise.
4047 (breakpoint_has_location_inserted_here): Likewise.
4048 (single_step_breakpoint_inserted_here_p): Likewise.
4049 (pc_at_non_inline_function): Likewise.
4050 * breakpoint.h (bpstat_stop_status): Update declaration.
4051 (breakpoint_here_p): Likewise.
4052 (breakpoint_in_range_p): Likewise.
4053 (moribund_breakpoint_here_p): Likewise.
4054 (breakpoint_inserted_here_p): Likewise.
4055 (software_breakpoint_inserted_here_p): Likewise.
4056 (hardware_breakpoint_inserted_here_p): Likewise.
4057 (breakpoint_has_location_inserted_here): Likewise.
4058 (single_step_breakpoint_inserted_here_p): Likewise.
4059 (hardware_watchpoint_inserted_in_range): Likewise.
4060 (breakpoint_address_match): Likewise.
4061 (insert_single_step_breakpoint): Likewise.
4062 (pc_at_non_inline_function): Likewise.
4063 * gdbthread.h (thread_has_single_step_breakpoint_here): Likewise.
4064 * record.c (record_check_stopped_by_breakpoint): Likewise.
4065 * record.h (record_check_stopped_by_breakpoint): Likewise.
4066 * thread.c (thread_has_single_step_breakpoint_here): Likewise.
4067
4068 2017-10-25 Yao Qi <yao.qi@linaro.org>
4069
4070 * aarch32-linux-nat.c (aarch32_gp_regcache_supply): Use
4071 regcache->arch () instead get_regcache_arch.
4072 * aarch64-fbsd-nat.c (aarch64_fbsd_fetch_inferior_registers):
4073 Likewise.
4074 (aarch64_fbsd_store_inferior_registers): Likewise.
4075 * aarch64-linux-nat.c (fetch_gregs_from_thread): Likewise.
4076 (store_gregs_to_thread): Likewise.
4077 (fetch_fpregs_from_thread): Likewise.
4078 (store_fpregs_to_thread): Likewise.
4079 * aarch64-tdep.c (aarch64_extract_return_value): Likewise.
4080 (aarch64_store_return_value): Likewise.
4081 (aarch64_software_single_step): Likewise.
4082 * aix-thread.c (aix_thread_wait): Likewise.
4083 (supply_reg32): Likewise.
4084 (supply_sprs64): Likewise.
4085 (supply_sprs32): Likewise.
4086 (fill_gprs64): Likewise.
4087 (fill_gprs32): Likewise.
4088 (fill_sprs64): Likewise.
4089 (fill_sprs32): Likewise.
4090 (store_regs_user_thread): Likewise.
4091 (store_regs_kernel_thread): Likewise.
4092 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
4093 (alphabsd_store_inferior_registers): Likewise.
4094 * alpha-tdep.c (alpha_extract_return_value): Likewise.
4095 (alpha_store_return_value): Likewise.
4096 (alpha_deal_with_atomic_sequence): Likewise.
4097 (alpha_next_pc): Likewise.
4098 (alpha_software_single_step): Likewise.
4099 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
4100 (amd64bsd_store_inferior_registers): Likewise.
4101 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
4102 Likewise.
4103 (amd64_linux_store_inferior_registers): Likewise.
4104 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
4105 (amd64_collect_native_gregset): Likewise.
4106 * amd64-obsd-tdep.c (amd64obsd_supply_uthread): Likewise.
4107 (amd64obsd_collect_uthread): Likewise.
4108 * amd64-tdep.c (amd64_supply_fpregset): Likewise.
4109 (amd64_collect_fpregset): Likewise.
4110 (amd64_supply_fxsave): Likewise.
4111 (amd64_supply_xsave): Likewise.
4112 (amd64_collect_fxsave): Likewise.
4113 (amd64_collect_xsave): Likewise.
4114 * arc-tdep.c (arc_write_pc): Likewise.
4115 * arch-utils.c (default_skip_permanent_breakpoint): Likewise.
4116 * arm-fbsd-nat.c (arm_fbsd_fetch_inferior_registers): Likewise.
4117 (arm_fbsd_store_inferior_registers): Likewise.
4118 * arm-linux-nat.c (fetch_vfp_regs): Likewise.
4119 (store_vfp_regs): Likewise.
4120 (arm_linux_fetch_inferior_registers): Likewise.
4121 (arm_linux_store_inferior_registers): Likewise.
4122 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
4123 (arm_linux_sigreturn_next_pc): Likewise.
4124 (arm_linux_get_next_pcs_syscall_next_pc): Likewise.
4125 * arm-nbsd-nat.c (arm_supply_gregset): Likewise.
4126 (fetch_register): Likewise.
4127 (store_register): Likewise.
4128 * arm-tdep.c (arm_is_thumb): Likewise.
4129 (displaced_in_arm_mode): Likewise.
4130 (bx_write_pc): Likewise.
4131 (arm_get_next_pcs_addr_bits_remove): Likewise.
4132 (arm_software_single_step): Likewise.
4133 (arm_extract_return_value): Likewise.
4134 (arm_store_return_value): Likewise.
4135 (arm_write_pc): Likewise.
4136 * bfin-tdep.c (bfin_extract_return_value): Likewise.
4137 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
4138 (bsd_uthread_store_registers): Likewise.
4139 * core-regset.c (fetch_core_registers): Likewise.
4140 * corelow.c (get_core_registers): Likewise.
4141 * cris-tdep.c (cris_store_return_value): Likewise.
4142 (cris_extract_return_value): Likewise.
4143 (find_step_target): Likewise.
4144 (find_step_target): Likewise.
4145 (cris_software_single_step): Likewise.
4146 * ctf.c (ctf_fetch_registers): Likewise.
4147 * darwin-nat.c (cancel_breakpoint): Likewise.
4148 * fbsd-tdep.c (fbsd_collect_thread_registers): Likewise.
4149 * frv-tdep.c (frv_extract_return_value): Likewise.
4150 * ft32-tdep.c (ft32_store_return_value): Likewise.
4151 (ft32_extract_return_value): Likewise.
4152 * go32-nat.c (fetch_register): Likewise.
4153 (go32_fetch_registers): Likewise.
4154 (go32_store_registers): Likewise.
4155 (store_register): Likewise.
4156 * h8300-tdep.c (h8300_extract_return_value): Likewise.
4157 (h8300_store_return_value): Likewise.
4158 * hppa-linux-nat.c (fetch_register): Likewise.
4159 (store_register): Likewise.
4160 (hppa_linux_fetch_inferior_registers): Likewise.
4161 (hppa_linux_store_inferior_registers): Likewise.
4162 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Likewise.
4163 (i386_darwin_store_inferior_registers): Likewise.
4164 * i386-gnu-nat.c (gnu_fetch_registers): Likewise.
4165 (gnu_store_registers): Likewise.
4166 * i386-linux-nat.c (fetch_register): Likewise.
4167 (store_register): Likewise.
4168 (supply_gregset): Likewise.
4169 (fill_gregset): Likewise.
4170 (i386_linux_fetch_inferior_registers): Likewise.
4171 (i386_linux_store_inferior_registers): Likewise.
4172 (i386_linux_resume): Likewise.
4173 * i386-linux-tdep.c (i386_linux_get_syscall_number_from_regcache):
4174 Likewise.
4175 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
4176 * i386-obsd-nat.c (i386obsd_supply_pcb): Likewise.
4177 * i386-obsd-tdep.c (i386obsd_supply_uthread): Likewise.
4178 (i386obsd_collect_uthread): Likewise.
4179 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
4180 (i386_supply_gregset): Likewise.
4181 (i386_collect_gregset): Likewise.
4182 (i386_supply_fpregset): Likewise.
4183 (i386_collect_fpregset): Likewise.
4184 (i386_mpx_bd_base): Likewise.
4185 * i386-v4-nat.c (supply_fpregset): Likewise.
4186 (fill_fpregset): Likewise.
4187 * i387-tdep.c (i387_supply_fsave): Likewise.
4188 (i387_collect_fsave): Likewise.
4189 (i387_supply_fxsave): Likewise.
4190 (i387_collect_fxsave): Likewise.
4191 (i387_supply_xsave): Likewise.
4192 (i387_collect_xsave): Likewise.
4193 * ia64-linux-nat.c (ia64_linux_fetch_registers): Likewise.
4194 (ia64_linux_store_registers): Likewise.
4195 * ia64-tdep.c (ia64_access_rse_reg): Likewise.
4196 (ia64_extract_return_value): Likewise.
4197 (ia64_store_return_value): Likewise.
4198 (find_func_descr): Likewise.
4199 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
4200 * inf-ptrace.c (inf_ptrace_fetch_registers): Likewise.
4201 (inf_ptrace_store_registers): Likewise.
4202 * infrun.c (use_displaced_stepping): Likewise.
4203 (displaced_step_prepare_throw): Likewise.
4204 (resume): Likewise.
4205 (proceed): Likewise.
4206 (do_target_wait): Likewise.
4207 (adjust_pc_after_break): Likewise.
4208 (handle_inferior_event_1): Likewise.
4209 (handle_signal_stop): Likewise.
4210 (save_infcall_suspend_state): Likewise.
4211 (restore_infcall_suspend_state): Likewise.
4212 * iq2000-tdep.c (iq2000_extract_return_value): Likewise.
4213 * jit.c (jit_frame_prev_register): Likewise.
4214 * linux-nat.c (save_stop_reason): Likewise.
4215 (linux_nat_wait_1): Likewise.
4216 (resume_stopped_resumed_lwps): Likewise.
4217 * linux-record.c (record_linux_sockaddr): Likewise.
4218 (record_linux_msghdr): Likewise.
4219 (record_linux_system_call): Likewise.
4220 * linux-tdep.c (linux_collect_thread_registers): Likewise.
4221 * lm32-tdep.c (lm32_extract_return_value): Likewise.
4222 (lm32_store_return_value): Likewise.
4223 * m32c-tdep.c (m32c_read_flg): Likewise.
4224 (m32c_pseudo_register_read): Likewise.
4225 (m32c_pseudo_register_write): Likewise.
4226 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Likewise.
4227 (m32r_linux_collect_gregset): Likewise.
4228 * m32r-tdep.c (m32r_store_return_value): Likewise.
4229 (m32r_extract_return_value): Likewise.
4230 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
4231 (m68kbsd_collect_fpregset): Likewise.
4232 * m68k-bsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
4233 * m68k-linux-nat.c (fetch_register): Likewise.
4234 (old_fetch_inferior_registers): Likewise.
4235 (old_store_inferior_registers): Likewise.
4236 (store_regs): Likewise.
4237 * m68k-tdep.c (m68k_svr4_extract_return_value): Likewise.
4238 (m68k_svr4_store_return_value): Likewise.
4239 * m88k-tdep.c (m88k_store_arguments): Likewise.
4240 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Likewise.
4241 (mi_cmd_data_write_register_values): Likewise.
4242 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers): Likewise.
4243 (mips_fbsd_store_inferior_registers): Likewise.
4244 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Likewise.
4245 (mips_fbsd_supply_gregs): Likewise.
4246 (mips_fbsd_collect_fpregs): Likewise.
4247 (mips_fbsd_collect_gregs): Likewise.
4248 (mips_fbsd_supply_fpregset): Likewise.
4249 (mips_fbsd_collect_fpregset): Likewise.
4250 (mips_fbsd_supply_gregset): Likewise.
4251 (mips_fbsd_collect_gregset): Likewise.
4252 * mips-linux-nat.c (supply_gregset): Likewise.
4253 (fill_gregset): Likewise.
4254 (supply_fpregset): Likewise.
4255 (fill_fpregset): Likewise.
4256 * mips-linux-tdep.c (mips_supply_gregset): Likewise.
4257 (mips_fill_gregset): Likewise.
4258 (mips_supply_fpregset): Likewise.
4259 (mips_fill_fpregset): Likewise.
4260 (mips64_supply_gregset): Likewise.
4261 (micromips_linux_sigframe_validate): Likewise.
4262 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
4263 (mipsnbsd_fetch_inferior_registers): Likewise.
4264 (mipsnbsd_store_inferior_registers): Likewise.
4265 * mips-nbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
4266 (mipsnbsd_supply_gregset): Likewise.
4267 (mipsnbsd_iterate_over_regset_sections): Likewise.
4268 (mipsnbsd_supply_reg): Likewise.
4269 (mipsnbsd_supply_fpreg): Likewise.
4270 * mips-tdep.c (mips_in_frame_stub): Likewise.
4271 (mips_dummy_id): Likewise.
4272 (is_octeon_bbit_op): Likewise.
4273 (micromips_bc1_pc): Likewise.
4274 (extended_mips16_next_pc): Likewise.
4275 (mips16_next_pc): Likewise.
4276 (deal_with_atomic_sequence): Likewise.
4277 * moxie-tdep.c (moxie_process_readu): Likewise.
4278 * nios2-tdep.c (nios2_get_next_pc): Likewise.
4279 * nto-procfs.c (procfs_store_registers): Likewise.
4280 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers): Likewise.
4281 (ppcfbsd_store_inferior_registers): Likewise.
4282 * ppc-linux-nat.c (fetch_vsx_register): Likewise.
4283 (fetch_altivec_register): Likewise.
4284 (get_spe_registers): Likewise.
4285 (fetch_spe_register): Likewise.
4286 (fetch_altivec_registers): Likewise.
4287 (fetch_all_gp_regs): Likewise.
4288 (fetch_all_fp_regs): Likewise.
4289 (store_vsx_register): Likewise.
4290 (store_altivec_register): Likewise.
4291 (set_spe_registers): Likewise.
4292 (store_spe_register): Likewise.
4293 (store_altivec_registers): Likewise.
4294 (store_all_gp_regs): Likewise.
4295 (store_all_fp_regs): Likewise.
4296 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
4297 (ppc_linux_collect_gregset): Likewise.
4298 (ppc_canonicalize_syscall): Likewise.
4299 (ppc_linux_record_signal): Likewise.
4300 (ppu2spu_prev_register): Likewise.
4301 * ppc-nbsd-nat.c (ppcnbsd_supply_pcb): Likewise.
4302 * ppc-obsd-nat.c (ppcobsd_fetch_registers): Likewise.
4303 (ppcobsd_store_registers): Likewise.
4304 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_fetch_registers):
4305 Likewise.
4306 (ppc_ravenscar_generic_store_registers): Likewise.
4307 * procfs.c (procfs_fetch_registers): Likewise.
4308 (procfs_store_registers): Likewise.
4309 * ravenscar-thread.c (ravenscar_fetch_registers): Likewise.
4310 (ravenscar_store_registers): Likewise.
4311 (ravenscar_prepare_to_store): Likewise.
4312 * record-btrace.c (record_btrace_fetch_registers): Likewise.
4313 * record-full.c (record_full_wait_1): Likewise.
4314 (record_full_registers_change): Likewise.
4315 (record_full_store_registers): Likewise.
4316 (record_full_core_fetch_registers): Likewise.
4317 (record_full_save): Likewise.
4318 (record_full_goto_insn): Likewise.
4319 * regcache.c (regcache_register_size): Likewise.
4320 (get_regcache_arch): Remove.
4321 (regcache_read_pc): Likewise.
4322 * regcache.h (get_regcache_arch): Remove.
4323 * remote-sim.c (gdbsim_fetch_register): Likewise.
4324 (gdbsim_store_register): Likewise.
4325 * remote.c (fetch_register_using_p): Likewise.
4326 (send_g_packet): Likewise.
4327 (remote_prepare_to_store): Likewise.
4328 (store_registers_using_G): Likewise.
4329 * reverse.c (save_bookmark_command): Likewise.
4330 (goto_bookmark_command): Likewise.
4331 * rs6000-aix-tdep.c (branch_dest): Likewise.
4332 * rs6000-nat.c (rs6000_ptrace64): Likewise.
4333 (fetch_register): Likewise.
4334 * rs6000-tdep.c (ppc_supply_reg): Likewise.
4335 (ppc_collect_reg): Likewise.
4336 (ppc_collect_gregset): Likewise.
4337 (ppc_collect_fpregset): Likewise.
4338 (ppc_collect_vsxregset): Likewise.
4339 (ppc_collect_vrregset): Likewise.
4340 (ppc_displaced_step_hw_singlestep): Likewise.
4341 (rs6000_pseudo_register_read): Likewise.
4342 (rs6000_pseudo_register_write): Likewise.
4343 * s390-linux-nat.c (supply_gregset): Likewise.
4344 (fill_gregset): Likewise.
4345 (s390_linux_fetch_inferior_registers): Likewise.
4346 * s390-linux-tdep.c (s390_write_pc): Likewise.
4347 (s390_software_single_step): Likewise.
4348 (s390_all_but_pc_registers_record): Likewise.
4349 (s390_linux_syscall_record): Likewise.
4350 * sentinel-frame.c (sentinel_frame_prev_arch): Likewise.
4351 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
4352 (shnbsd_store_inferior_registers): Likewise.
4353 * sh-tdep.c (sh_extract_return_value_nofpu): Likewise.
4354 (sh_extract_return_value_fpu): Likewise.
4355 (sh_store_return_value_nofpu): Likewise.
4356 (sh_corefile_supply_regset): Likewise.
4357 (sh_corefile_collect_regset): Likewise.
4358 * sh64-tdep.c (sh64_extract_return_value): Likewise.
4359 (sh64_store_return_value): Likewise.
4360 * sparc-linux-tdep.c (sparc32_linux_collect_core_fpregset): Likewise.
4361 * sparc-nat.c (sparc_fetch_inferior_registers): Likewise.
4362 (sparc_store_inferior_registers): Likewise.
4363 * sparc-ravenscar-thread.c (register_in_thread_descriptor_p): Likewise.
4364 (sparc_ravenscar_prepare_to_store): Likewise.
4365 * sparc-tdep.c (sparc32_store_arguments): Likewise.
4366 (sparc_analyze_control_transfer): Likewise.
4367 (sparc_step_trap): Likewise.
4368 (sparc_software_single_step): Likewise.
4369 (sparc32_gdbarch_init): Likewise.
4370 (sparc_supply_rwindow): Likewise.
4371 (sparc_collect_rwindow): Likewise.
4372 * sparc64-linux-tdep.c (sparc64_linux_collect_core_fpregset): Likewise.
4373 * sparc64-nbsd-nat.c (sparc64nbsd_supply_gregset): Likewise.
4374 (sparc64nbsd_collect_gregset): Likewise.
4375 (sparc64nbsd_supply_fpregset): Likewise.
4376 (sparc64nbsd_collect_fpregset): Likewise.
4377 * sparc64-tdep.c (sparc64_store_arguments): Likewise.
4378 (sparc64_supply_gregset): Likewise.
4379 (sparc64_collect_gregset): Likewise.
4380 (sparc64_supply_fpregset): Likewise.
4381 (sparc64_collect_fpregset): Likewise.
4382 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
4383 * spu-tdep.c (spu_unwind_sp): Likewise.
4384 (spu2ppu_prev_register): Likewise.
4385 (spu_memory_remove_breakpoint): Likewise.
4386 * stack.c (return_command): Likewise.
4387 * tic6x-tdep.c (tic6x_extract_signed_field): Likewise.
4388 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
4389 * tracefile.c (trace_save_ctf): Likewise.
4390 * windows-nat.c (do_windows_fetch_inferior_registers): Likewise.
4391 (do_windows_store_inferior_registers): Likewise.
4392 (windows_resume): Likewise.
4393 * xtensa-linux-nat.c (fill_gregset): Likewise.
4394 (supply_gregset_reg): Likewise.
4395 * xtensa-tdep.c (xtensa_register_write_masked): Likewise.
4396 (xtensa_register_read_masked): Likewise.
4397 (xtensa_supply_gregset): Likewise.
4398 (xtensa_extract_return_value): Likewise.
4399 (xtensa_store_return_value): Likewise.
4400
4401 2017-10-25 Ulrich Weigand <uweigand@de.ibm.com>
4402
4403 * doublest.c (floatformat_from_string): New function.
4404 * doublest.h (floatformat_from_string): Add prototype.
4405
4406 * std-operator.def (OP_DOUBLE, OP_DECFLOAT): Remove, replace by ...
4407 (OP_FLOAT): ... this.
4408 * expression.h: Do not include "doublest.h".
4409 (union exp_element): Replace doubleconst and decfloatconst by
4410 new element floatconst.
4411 * ada-lang.c (resolve_subexp): Handle OP_FLOAT instead of OP_DOUBLE.
4412 (ada_evaluate_subexp): Likewise.
4413 * eval.c (evaluate_subexp_standard): Handle OP_FLOAT instead of
4414 OP_DOUBLE and OP_DECFLOAT.
4415 * expprint.c (print_subexp_standard): Likewise.
4416 (dump_subexp_body_standard): Likewise.
4417 * breakpoint.c (watchpoint_exp_is_const): Likewise.
4418
4419 * parse.c: Include "dfp.h".
4420 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
4421 (write_exp_elt_floatcst): New function.
4422 (operator_length_standard): Handle OP_FLOAT instead of OP_DOUBLE
4423 and OP_DECFLOAT.
4424 (operator_check_standard): Likewise.
4425 (parse_float): Do not accept suffix. Take type as input. Return bool.
4426 Return target format buffer instead of host DOUBLEST.
4427 Use floatformat_from_string and decimal_from_string to parse
4428 either binary or decimal floating-point types.
4429 (parse_c_float): Remove.
4430 * parser-defs.h: Do not include "doublest.h".
4431 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
4432 (write_exp_elt_floatcst): Add prototype.
4433 (parse_float): Update prototype.
4434 (parse_c_float): Remove.
4435
4436 * c-exp.y: Do not include "dfp.h".
4437 (typed_val_float): Use byte buffer instead of DOUBLEST.
4438 (typed_val_decfloat): Remove.
4439 (DECFLOAT): Remove.
4440 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4441 (parse_number): Update to new parse_float interface.
4442 Parse suffixes and determine type before calling parse_float.
4443 Handle decimal and binary FP types the same way.
4444
4445 * d-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
4446 (FLOAT_LITERAL): Use OP_FLOAT and write_exp_elt_floatcst.
4447 (parse_number): Update to new parse_float interface.
4448 Parse suffixes and determine type before calling parse_float.
4449
4450 * f-exp.y: Replace dval by typed_val_float.
4451 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4452 (parse_number): Use parse_float instead of atof.
4453
4454 * go-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
4455 (parse_go_float): Remove.
4456 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4457 (parse_number): Call parse_float instead of parse_go_float.
4458 Parse suffixes and determine type before calling parse_float.
4459
4460 * p-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
4461 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4462 (parse_number): Update to new parse_float interface.
4463 Parse suffixes and determine type before calling parse_float.
4464
4465 * m2-exp.y: Replace dval by byte buffer val.
4466 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4467 (parse_number): Call parse_float instead of atof.
4468
4469 * rust-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
4470 (lex_number): Call parse_float instead of strtod.
4471 (ast_dliteral): Use OP_FLOAT instead of OP_DOUBLE.
4472 (convert_ast_to_expression): Handle OP_FLOAT instead of OP_DOUBLE.
4473 Use write_exp_elt_floatcst.
4474 (unit_testing): Remove static variable.
4475 (rust_type): Do not check unit_testing.
4476 (rust_lex_tests): Do not set uint_testing. Set up dummy rust_parser.
4477
4478 * ada-exp.y (type_float, type_double): Remove.
4479 (typed_val_float): Use byte buffer instead of DOUBLEST.
4480 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4481 * ada-lex.l (processReal): Use parse_float instead of sscanf.
4482
4483 2017-10-25 Alan Hayward <alan.hayward@arm.com>
4484
4485 * aarch64-tdep.h (enum aarch64_regnum): Remove.
4486 * arch/aarch64.h: New file.
4487
4488 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4489
4490 * dfp.h (decimal_from_string): Use const reference for argument.
4491 * dfp.c (decimal_from_string): Likewise.
4492
4493 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4494
4495 * i387-tdep.c (print_i387_value): Use floatformat_to_string.
4496 * sh64-tdep.c (sh64_do_fp_register): Likewise.
4497 * mips-tdep.c (mips_print_fp_register): Likewise.
4498
4499 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4500
4501 * common/format.h (enum argclass): Replace decfloat_arg by
4502 dec32float_arg, dec64float_arg, and dec128float_arg.
4503 * common/format.c (parse_format_string): Update to return
4504 new decimal float argument classes.
4505
4506 * printcmd.c (printf_decfloat): Rename to ...
4507 (printf_floating): ... this. Add argclass argument, and use it
4508 instead of parsing the format string again. Add support for
4509 binary floating-point values, using floatformat_to_string.
4510 Convert value to the target format if it doesn't already match.
4511 (ui_printf): Call printf_floating instead of printf_decfloat,
4512 also for double_arg / long_double_arg. Pass argclass.
4513
4514 * dfp.c (decimal_to_string): Add format string argument.
4515 * dfp.h (decimal_to_string): Likewise.
4516
4517 * doublest.c (floatformat_to_string): Add format string argument.
4518 * doublest.h (floatformat_to_string): Likewise.
4519
4520 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4521
4522 * doublest.c (floatformat_precision): New routine.
4523 (floatformat_to_string): Likewise.
4524 * doublest.c (floatformat_to_string): Add prototype.
4525
4526 * printcmd.c (print_scalar_formatted): Only call print_floating
4527 on floating-point types.
4528 * valprint.c: Do not include "floatformat.h".
4529 (generic_val_print_decfloat): Remove.
4530 (generic_val_print): Call generic_val_print_float for both
4531 TYPE_CODE_FLT and TYPE_CODE_DECFLOAT.
4532 (print_floating): Use floatformat_to_string. Handle decimal float.
4533 (print_decimal_floating): Remove, merge into floatformat_to_string.
4534 * value.h (print_decimal_floating): Remove.
4535
4536 * Makefile.in: Do not build doublest.c with -Wformat-nonliteral.
4537
4538 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4539
4540 * buildsym.c (end_symtab_get_static_block): Use std::stable_sort.
4541
4542 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
4543
4544 * memattr.h: Don't include vec.h.
4545 (struct mem_attrib): Initialize fields.
4546 <unknown>: New static method.
4547 (struct mem_region): Add constructors, operator<, initialize
4548 fields.
4549 * memattr.c: Include algorithm.
4550 (default_mem_attrib, unknown_mem_attrib): Remove.
4551 (user_mem_region_list): New global.
4552 (target_mem_region_list, mem_region_list): Change type to
4553 std::vector<mem_region>.
4554 (mem_use_target): Now a function.
4555 (target_mem_regions_valid): Change type to bool.
4556 (mem_region_lessthan, mem_region_cmp, mem_region_init): Remove.
4557 (require_user_regions): Adjust.
4558 (require_target_regions): Adjust.
4559 (create_mem_region): Adjust.
4560 (lookup_mem_region): Adjust.
4561 (invalidate_target_mem_regions): Adjust.
4562 (mem_clear): Rename to...
4563 (user_mem_clear): ... this, and adjust.
4564 (mem_command): Adjust.
4565 (info_mem_command): Adjust.
4566 (mem_enable, enable_mem_command, mem_disable,
4567 disable_mem_command): Adjust.
4568 (mem_delete): Adjust.
4569 (delete_mem_command): Adjust.
4570 * memory-map.h (parse_memory_map): Return an std::vector.
4571 * memory-map.c (parse_memory_map): Likewise.
4572 (struct memory_map_parsing_data): Add constructor.
4573 <memory_map>: Point to std::vector.
4574 (memory_map_start_memory): Adjust.
4575 (memory_map_end_memory): Adjust.
4576 (memory_map_end_property): Adjust.
4577 (clear_result): Remove.
4578 * remote.c (remote_memory_map): Return an std::vector.
4579 * target-debug.h (target_debug_print_VEC_mem_region_s__p):
4580 Remove.
4581 (target_debug_print_mem_region_vector): New.
4582 * target-delegates.c: Regenerate.
4583 * target.h (mem_region_vector): New typedef.
4584 (to_memory_map): Return mem_region_vector.
4585 (target_memory_map): Return an std::vector.
4586 * target.c (target_memory_map): Return an std::vector.
4587 (flash_erase_command): Adjust.
4588
4589 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
4590
4591 * memory-map.c (struct memory_map_parsing_data) <property_name>:
4592 Change type to std::string.
4593 (memory_map_start_property): Adjust.
4594 (memory_map_end_property): Adjust.
4595
4596 2017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
4597
4598 * infrun.h: Include common/byte-vector.h.
4599 (struct displaced_step_closure): New struct.
4600 (struct buf_displaced_step_closure): New struct.
4601 * infrun.c (displaced_step_closure::~displaced_step_closure):
4602 Provide default implementation.
4603 (displaced_step_clear): Deallocate step closure with delete.
4604 * aarch64-tdep.c (displaced_step_closure): Rename to ...
4605 (aarch64_displaced_step_closure): ... this, extend
4606 displaced_step_closure.
4607 (aarch64_displaced_step_data) <dsc>: Change type to
4608 aarch64_displaced_step_closure.
4609 (aarch64_displaced_step_copy_insn): Adjust to type change, use
4610 unique_ptr.
4611 (aarch64_displaced_step_fixup): Add cast for displaced step
4612 closure.
4613 * amd64-tdep.c (displaced_step_closure): Rename to ...
4614 (amd64_displaced_step_closure): ... this, extend
4615 displaced_step_closure.
4616 <insn_buf>: Change type to std::vector<gdb_byte>.
4617 <max_len>: Remove.
4618 (fixup_riprel): Change type of DSC parameter, adjust to type
4619 change of insn_buf.
4620 (fixup_displaced_copy): Change type of DSC parameter.
4621 (amd64_displaced_step_copy_insn): Instantiate
4622 amd64_displaced_step_closure.
4623 (amd64_displaced_step_fixup): Add cast for closure type, adjust
4624 to type change of insn_buf.
4625 * arm-linux-tdep.c (arm_linux_cleanup_svc): Change type of
4626 parameter DSC.
4627 (arm_linux_copy_svc): Likewise.
4628 (cleanup_kernel_helper_return): Likewise.
4629 (arm_catch_kernel_helper_return): Likewise.
4630 (arm_linux_displaced_step_copy_insn): Instantiate
4631 arm_displaced_step_closure.
4632 * arm-tdep.c (arm_pc_is_thumb): Add cast for closure.
4633 (displaced_read_reg): Change type of parameter DSC.
4634 (branch_write_pc): Likewise.
4635 (load_write_pc): Likewise.
4636 (alu_write_pc): Likewise.
4637 (displaced_write_reg): Likewise.
4638 (arm_copy_unmodified): Likewise.
4639 (thumb_copy_unmodified_32bit): Likewise.
4640 (thumb_copy_unmodified_16bit): Likewise.
4641 (cleanup_preload): Likewise.
4642 (install_preload): Likewise.
4643 (arm_copy_preload): Likewise.
4644 (thumb2_copy_preload): Likewise.
4645 (install_preload_reg): Likewise.
4646 (arm_copy_preload_reg): Likewise.
4647 (cleanup_copro_load_store): Likewise.
4648 (install_copro_load_store): Likewise.
4649 (arm_copy_copro_load_store) Likewise.
4650 (thumb2_copy_copro_load_store): Likewise.
4651 (cleanup_branch): Likewise.
4652 (install_b_bl_blx): Likewise.
4653 (arm_copy_b_bl_blx): Likewise.
4654 (thumb2_copy_b_bl_blx): Likewise.
4655 (thumb_copy_b): Likewise.
4656 (install_bx_blx_reg): Likewise.
4657 (arm_copy_bx_blx_reg): Likewise.
4658 (thumb_copy_bx_blx_reg): Likewise.
4659 (cleanup_alu_imm): Likewise.
4660 (arm_copy_alu_imm): Likewise.
4661 (thumb2_copy_alu_imm): Likewise.
4662 (cleanup_alu_reg): Likewise.
4663 (install_alu_reg): Likewise.
4664 (arm_copy_alu_reg): Likewise.
4665 (thumb_copy_alu_reg): Likewise.
4666 (cleanup_alu_shifted_reg): Likewise.
4667 (install_alu_shifted_reg): Likewise.
4668 (arm_copy_alu_shifted_reg): Likewise.
4669 (cleanup_load): Likewise.
4670 (cleanup_store): Likewise.
4671 (arm_copy_extra_ld_st): Likewise.
4672 (install_load_store): Likewise.
4673 (thumb2_copy_load_literal): Likewise.
4674 (thumb2_copy_load_reg_imm): Likewise.
4675 (arm_copy_ldr_str_ldrb_strb): Likewise.
4676 (cleanup_block_load_all): Likewise.
4677 (cleanup_block_store_pc): Likewise.
4678 (cleanup_block_load_pc): Likewise.
4679 (arm_copy_block_xfer): Likewise.
4680 (thumb2_copy_block_xfer): Likewise.
4681 (cleanup_svc): Likewise.
4682 (install_svc): Likewise.
4683 (arm_copy_svc): Likewise.
4684 (thumb_copy_svc): Likewise.
4685 (arm_copy_undef): Likewise.
4686 (thumb_32bit_copy_undef): Likewise.
4687 (arm_copy_unpred): Likewise.
4688 (arm_decode_misc_memhint_neon): Likewise.
4689 (arm_decode_unconditional): Likewise.
4690 (arm_decode_miscellaneous): Likewise.
4691 (arm_decode_dp_misc): Likewise.
4692 (arm_decode_ld_st_word_ubyte): Likewise.
4693 (arm_decode_media): Likewise.
4694 (arm_decode_b_bl_ldmstm): Likewise.
4695 (arm_decode_ext_reg_ld_st): Likewise.
4696 (thumb2_decode_dp_shift_reg): Likewise.
4697 (thumb2_decode_ext_reg_ld_st): Likewise.
4698 (arm_decode_svc_copro): Likewise.
4699 (thumb2_decode_svc_copro): Likewise.
4700 (install_pc_relative): Likewise.
4701 (thumb_copy_pc_relative_16bit): Likewise.
4702 (thumb_decode_pc_relative_16bit): Likewise.
4703 (thumb_copy_pc_relative_32bit): Likewise.
4704 (thumb_copy_16bit_ldr_literal): Likewise.
4705 (thumb_copy_cbnz_cbz): Likewise.
4706 (thumb2_copy_table_branch): Likewise.
4707 (cleanup_pop_pc_16bit_all): Likewise.
4708 (thumb_copy_pop_pc_16bit): Likewise.
4709 (thumb_process_displaced_16bit_insn): Likewise.
4710 (decode_thumb_32bit_ld_mem_hints): Likewise.
4711 (thumb_process_displaced_32bit_insn): Likewise.
4712 (thumb_process_displaced_insn): Likewise.
4713 (arm_process_displaced_insn): Likewise.
4714 (arm_displaced_init_closure): Likewise.
4715 (arm_displaced_step_fixup): Add cast for closure.
4716 * arm-tdep.h: Include infrun.h.
4717 (displaced_step_closure): Rename to ...
4718 (arm_displaced_step_closure): ... this, extend
4719 displaced_step_closure.
4720 <u::svc::copy_svc_os>: Change type of parameter DSC.
4721 <cleanup>: Likewise.
4722 (arm_process_displaced_insn): Likewise.
4723 (arm_displaced_init_closure): Likewise.
4724 (displaced_read_reg): Likewise.
4725 (displaced_write_reg): Likewise.
4726 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
4727 Adjust.
4728 * i386-tdep.h: Include infrun.h.
4729 (i386_displaced_step_closure): New typedef.
4730 * i386-tdep.c (i386_displaced_step_copy_insn): Use
4731 i386_displaced_step_closure.
4732 (i386_displaced_step_fixup): Adjust.
4733 * rs6000-tdep.c (ppc_displaced_step_closure): New typedef.
4734 (ppc_displaced_step_copy_insn): Use ppc_displaced_step_closure
4735 and unique_ptr.
4736 (ppc_displaced_step_fixup): Adjust.
4737 * s390-linux-tdep.c (s390_displaced_step_closure): New typedef.
4738 (s390_displaced_step_copy_insn): Use s390_displaced_step_closure
4739 and unique_ptr.
4740 (s390_displaced_step_fixup): Adjust.
4741
4742 2017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
4743
4744 * interps.h (interp_resume, interp_suspend, interp_set_temp):
4745 Remove declarations.
4746
4747 2017-10-20 Tom Tromey <tom@tromey.com>
4748
4749 * gdb_bfd.c (struct gdb_bfd_data) <included_bfds>: Now a
4750 std::vector.
4751 (gdb_bfd_record_inclusion): Update.
4752 (bfdp): Remove typedef.
4753
4754 2017-10-20 Tom Tromey <tom@tromey.com>
4755
4756 * gdb_bfd.c (gdb_bfd_ref): Use new.
4757 (struct gdb_bfd_data): Add constructor, destructor, and member
4758 initializers.
4759 (gdb_bfd_unref): Use delete.
4760
4761 2017-10-20 Tom Tromey <tom@tromey.com>
4762
4763 * exec.c (exec_file_attach): Use new_bfd_ref.
4764 * symfile-mem.c (symbol_file_add_from_memory): Use new_bfd_ref.
4765 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
4766 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_fdopenr): Use
4767 new_bfd_ref.
4768 * gdb_bfd.h (new_bfd_ref): New function.
4769
4770 2017-10-20 Pedro Alves <palves@redhat.com>
4771
4772 * main.c (captured_command_loop): Add attribute noinline.
4773
4774 2017-10-19 Simon Marchi <simon.marchi@ericsson.com>
4775
4776 * interps.c (struct interp_factory): Add constructor.
4777 (interp_factory_p): Remove typedef.
4778 (DEF_VEC_P(interp_factory_p)): Remove.
4779 (interpreter_factories): Change type to std::vector.
4780 (interp_factory_register): Adjust.
4781 (interp_lookup): Adjust.
4782 (interpreter_completer): Adjust.
4783
4784 2017-10-19 Tom Tromey <tom@tromey.com>
4785
4786 * break-catch-syscall.c (catch_syscall_completer): Use
4787 std::string, gdb::unique_xmalloc_ptr.
4788
4789 2017-10-19 Tom Tromey <tom@tromey.com>
4790
4791 * infcall.c (call_function_by_hand_dummy): Use std::string.
4792
4793 2017-10-19 Tom Tromey <tom@tromey.com>
4794
4795 * mi/mi-main.c (mi_cmd_execute): Update.
4796 * top.h (prepare_execute_command): Return scoped_value_mark.
4797 * value.h (class scoped_value_mark): Use DISABLE_COPY_AND_ASSIGN.
4798 Add move constructor.
4799 * top.c (prepare_execute_command): Return scoped_value_mark.
4800 (execute_command): Update.
4801
4802 2017-10-19 Pedro Alves <palves@redhat.com>
4803
4804 * xml-support.c (xml_fetch_content_from_file): Check fread's
4805 return.
4806
4807 2017-10-19 Pedro Alves <palves@redhat.com>
4808
4809 * ser-base.c (ser_base_read_error_fd): Delete the file handler if
4810 async.
4811 (handle_error_fd): New function.
4812 (ser_base_async): Add/delete an event loop file handler for
4813 error_fd.
4814
4815 2017-10-19 Pedro Alves <palves@redhat.com>
4816
4817 * xml-support.c (xml_fetch_content_from_file): Don't read in
4818 chunks. Instead use fseek to determine the file's size, and read
4819 it in one go.
4820
4821 2017-11-18 Keith Seitz <keiths@redhat.com>
4822
4823 * c-exp.y (oper): Canonicalize conversion operators of user-defined
4824 types.
4825 Add whitespace to front of type name.
4826
4827 2017-10-18 Keith Seitz <keiths@redhat.com>
4828
4829 * dwarf2read.c (dwarf2_add_typedef): Issue a complaint on unhandled
4830 DW_AT_accessibility.
4831
4832 2017-10-18 Yao Qi <yao.qi@linaro.org>
4833
4834 * features/tic6x-c62x-linux.c: Remove.
4835
4836 2017-10-17 Tom Tromey <tom@tromey.com>
4837
4838 * disasm.c (do_mixed_source_and_assembly_deprecated): Use
4839 gdb::optional, ui_out_emit_list, ui_out_emit_tuple.
4840 (do_mixed_source_and_assembly): Likewise.
4841
4842 2017-10-17 Tom Tromey <tom@tromey.com>
4843
4844 * regcache.c (regcache::xfer_part): Remove assertion.
4845
4846 2017-10-17 Pedro Alves <palves@redhat.com>
4847
4848 * xml-support.c (xml_fetch_content_from_file): Call
4849 unique_ptr::release() instead unique_ptr::get() when passing
4850 through xrealloc.
4851
4852 2017-10-17 Yao Qi <yao.qi@linaro.org>
4853
4854 * regcache.c (regcache::xfer_part): Remove parameters read and
4855 write, add parameter is_raw. All callers are updated.
4856
4857 2017-10-16 Keith Seitz <keiths@redhat.com>
4858
4859 * c-typeprint.c (enum access_specifier): Moved here from
4860 c_type_print_base.
4861 (output_access_specifier): New function.
4862 (c_type_print_base): Consider typedefs when assessing
4863 whether access labels are needed.
4864 Use output_access_specifier as needed.
4865 Output access specifier for typedefs, if needed.
4866 * dwarf2read.c (dwarf2_add_typedef): Record DW_AT_accessibility.
4867 * gdbtypes.h (struct typedef_field) <is_protected, is_private>: New
4868 fields.
4869 (TYPE_TYPEDEF_FIELD_PROTECTED, TYPE_TYPEDEF_FIELD_PRIVATE): New
4870 accessor macros.
4871
4872 2017-10-16 Tom Tromey <tom@tromey.com>
4873
4874 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full)
4875 (linux_fill_prpsinfo, linux_vsyscall_range_raw): Update.
4876 * target.c (target_fileio_read_stralloc): Update.
4877 * sparc64-tdep.c (adi_is_addr_mapped): Update.
4878 * target.h (target_fileio_read_stralloc): Return
4879 unique_xmalloc_ptr.
4880
4881 2017-10-16 Tom Tromey <tom@tromey.com>
4882
4883 * xml-syscall.c (xml_init_syscalls_info): Update.
4884 * xml-support.c (xinclude_start_include): Update.
4885 (xml_fetch_content_from_file): Return unique_xmalloc_ptr.
4886 * xml-support.h (xml_fetch_another): Return unique_xmalloc_ptr.
4887 (xml_fetch_content_from_file): Likewise.
4888 * osdata.c (get_osdata): Update.
4889 * target.h (target_read_stralloc, target_get_osdata): Return
4890 unique_xmalloc_ptr.
4891 * solib-aix.c (solib_aix_get_library_list): Update.
4892 * solib-target.c (solib_target_current_sos): Update.
4893 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Update.
4894 * xml-tdesc.c (fetch_available_features_from_target): Update.
4895 (target_fetch_description_xml): Update.
4896 (file_read_description_xml): Update.
4897 * remote.c (remote_get_threads_with_qxfer, remote_memory_map)
4898 (remote_traceframe_info, btrace_read_config, remote_read_btrace)
4899 (remote_pid_to_exec_file): Update.
4900 * target.c (target_read_stralloc): Return unique_xmalloc_ptr.
4901 (target_get_osdata): Likewise.
4902
4903 2017-10-16 Tom Tromey <tom@tromey.com>
4904
4905 * remote.c (remote_register_number_and_offset): Use std::vector.
4906 (remote_set_syscall_catchpoint): Use gdb::unique_xmalloc_ptr.
4907 (putpkt_binary): Use gdb::def_vector.
4908 (compare_sections_command): Use gdb::byte_vector.
4909
4910 2017-10-16 Tom Tromey <tom@tromey.com>
4911
4912 * ppc-linux-nat.c (hwdebug_insert_point): Use
4913 gdb::unique_xmalloc_ptr, XDUP.
4914
4915 2017-10-16 Tom Tromey <tom@tromey.com>
4916
4917 * probe.c (parse_probes): Use std::string.
4918 (info_probes_for_ops, enable_probes_command)
4919 (disable_probes_command): Remove cleanups.
4920
4921 2017-10-16 Tom Tromey <tom@tromey.com>
4922
4923 * buildsym.c (block_compar): Remove.
4924 (end_symtab_get_static_block): Use std::vector.
4925
4926 2017-10-16 Simon Marchi <simon.marchi@ericsson.com>
4927
4928 * memrange.h (struct mem_range): Define operator< and operator==.
4929 (mem_range_s): Remove.
4930 (DEF_VEC_O (mem_range_s)): Remove.
4931 (normalize_mem_ranges): Change parameter type to std::vector.
4932 * memrange.c (compare_mem_ranges): Remove.
4933 (normalize_mem_ranges): Change parameter type to std::vector,
4934 adjust to vector change.
4935 * exec.c (section_table_available_memory): Return vector, remove
4936 parameter.
4937 (section_table_read_available_memory): Adjust to std::vector
4938 change.
4939 * remote.c (remote_read_bytes): Adjust to std::vector
4940 change.
4941 * tracepoint.h (traceframe_available_memory): Change parameter
4942 type to std::vector.
4943 * tracepoint.c (traceframe_available_memory): Change parameter
4944 type to std::vector, adjust.
4945 * gdb/mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to
4946 std::vector change.
4947 * gdb/Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4948 unittests/memrange-selftests.c.
4949 (SUBDIR_UNITTESTS_OBS): Add memrange-selftests.o.
4950 * gdb/unittests/memrange-selftests.c: New file.
4951
4952 2017-10-16 Pedro Alves <palves@redhat.com>
4953
4954 * elfread.c (probe_key_free): Rename range-for variable.
4955 * probe.c (parse_probes_in_pspace, find_probes_in_objfile)
4956 (find_probe_by_pc, collect_probes): Rename range-for variable.
4957
4958 2017-10-16 Yao Qi <yao.qi@linaro.org>
4959
4960 * features/Makefile (XMLTOC): Remove tic6x-*.xml.
4961 * features/tic6x-c62x.c: Remove.
4962 * features/tic6x-c64x-linux.c: Remove.
4963 * features/tic6x-c64x.c: Remove.
4964 * features/tic6x-c64xp-linux.c: Remove.
4965 * features/tic6x-c64xp.c: Remove.
4966 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Don't call
4967 initialize_tdesc_tic6x_*_linux functions.
4968 * tic6x-tdep.c (_initialize_tic6x_tdep): Don't call
4969 initialize_tdesc_tic6x_* functions.
4970
4971 2017-10-16 Yao Qi <yao.qi@linaro.org>
4972
4973 * features/Makefile (WHICH): Remove tic6x-c64xp, tic6x-c64x
4974 tic6x-c62x.
4975 * regformats/tic6x-c62x.dat: Remove.
4976 * regformats/tic6x-c64x.dat: Remove.
4977 * regformats/tic6x-c64xp.dat: Remove.
4978
4979 2017-10-15 Simon Marchi <simon.marchi@ericsson.com>
4980
4981 * tracepoint.c (parse_traceframe_info): Return a unique_ptr
4982 (the !HAVE_LIBEXPAT version).
4983
4984 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
4985
4986 * nat/linux-osdata.c (struct pid_pgid_entry) <operator<>: Make
4987 const.
4988
4989 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4990
4991 * target.h: Include tracepoint.h.
4992 (enum trace_find_type): Move to tracepoint.h.
4993 (struct target_ops) <to_traceframe_info>: Return a unique ptr.
4994 * tracepoint.h: Don't include target.h
4995 (enum trace_find_type): Move from target.h.
4996 (parse_traceframe_info): Return a unique ptr.
4997 * tracepoint.c (current_traceframe_info): Change type to unique
4998 ptr.
4999 (free_traceframe_info): Remove.
5000 (clear_traceframe_info): Don't manually free
5001 current_traceframe_info.
5002 (free_result): Remove.
5003 (parse_traceframe_info): Return a unique ptr.
5004 (get_traceframe_info): Adjust to unique ptr.
5005 * ctf.c (ctf_traceframe_info): Return a unique ptr.
5006 * remote.c (remote_traceframe_info): Return a unique ptr.
5007 * tracefile-tfile.c (tfile_traceframe_info): Return a unique
5008 ptr.
5009 * target-debug.h (target_debug_print_traceframe_info_up): New
5010 macro.
5011 * target-delegates.c: Regenerate.
5012
5013 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
5014
5015 * memrange.h (struct mem_range): Add constructors.
5016 * tracepoint.h (struct traceframe_info) <memory>: Change type to
5017 std::vector<mem_range>.
5018 * tracepoint.c (free_traceframe_info): Don't manually free
5019 vector.
5020 (traceframe_info_start_memory): Adjust to vector change.
5021 (traceframe_available_memory): Likewise.
5022 * tracefile-tfile.c (build_traceframe_info): Likewise.
5023 * ctf.c (ctf_traceframe_info): Likewise.
5024
5025 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
5026
5027 * tracepoint.h (struct traceframe_info) <tvars>: Change type to
5028 std::vector<int>.
5029 * tracepoint.c (free_traceframe_info): Deallocate with delete.
5030 (traceframe_info_start_tvar): Adjust to vector change.
5031 (parse_traceframe_info): Allocate with new.
5032 * ctf.c (ctf_traceframe_info): Allocate with new, adjust to
5033 vector change.
5034 * tracefile-tfile.c (build_traceframe_info): Adjust to vector
5035 change.
5036 tfile_traceframe_info): Allocate with new.
5037 * mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to vector
5038 change.
5039
5040 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
5041
5042 * tracepoint.c (traceframe_info): Rename to...
5043 (current_traceframe_info): ...this.
5044 (clear_traceframe_info): Adjust.
5045 (get_traceframe_info): Adjust.
5046
5047 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
5048
5049 * nat/linux-osdata.c: Include algorithm.
5050 (compare_processes): Remove.
5051 (struct pid_pgid_entry): New struct.
5052 (linux_xfer_osdata_processgroups): Use std::vector instead of
5053 XNEWVEC.
5054
5055 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
5056
5057 * objfiles.h: Don't include symfile.h.
5058 (struct partial_symbol): Remove forward-declaration.
5059 (struct objfile) <global_psymbols, static_psymbols>: Change type
5060 to std::vector<partial_symbol *>.
5061 * objfiles.c (objfile::objfile): Don't memset those fields.
5062 (objfile::~objfile): Don't free those fields.
5063 * psympriv.h (struct psymbol_allocation_list): Remove
5064 forward-declaration.
5065 (add_psymbol_to_list): Change psymbol_allocation_list parameter
5066 to std::vector.
5067 (start_psymtab_common): Change parameters to std::vector.
5068 * psymtab.c: Include algorithm.
5069 (require_partial_symbols): Call shrink_to_fit.
5070 (find_pc_sect_psymbol): Adjust to vector change.
5071 (match_partial_symbol): Likewise.
5072 (lookup_partial_symbol): Likewise.
5073 (psym_relocate): Likewise.
5074 (dump_psymtab): Likewise.
5075 (recursively_search_psymtabs): Likewise.
5076 (compare_psymbols): Remove.
5077 (sort_pst_symbols): Adjust to vector change.
5078 (start_psymtab_common): Likewise.
5079 (end_psymtab_common): Likewise.
5080 (psymbol_bcache_full): De-constify return value.
5081 (add_psymbol_to_bcache): Likewise.
5082 (extend_psymbol_list): Remove.
5083 (append_psymbol_to_list): Adjust to vector change.
5084 (add_psymbol_to_list): Likewise.
5085 (init_psymbol_list): Likewise.
5086 (maintenance_info_psymtabs): Likewise.
5087 (maintenance_check_psymtabs): Likewise.
5088 * symfile.h (struct psymbol_allocation_list): Remove.
5089 * symfile.c (reread_symbols): Adjust to vector change.
5090 * dbxread.c (start_psymtab): Change type of parameters.
5091 (dbx_symfile_read): Adjust to vector change.
5092 (read_dbx_symtab): Likewise.
5093 (start_psymtab): Change type of parameters.
5094 * dwarf2read.c (dwarf2_build_psymtabs): Adjust to vector change.
5095 (create_partial_symtab): Likewise.
5096 (add_partial_symbol): Likewise.
5097 (write_one_signatured_type): Likewise.
5098 (recursively_write_psymbols): Likewise.
5099 * mdebugread.c (parse_partial_symbols): Likewise.
5100 * xcoffread.c (xcoff_start_psymtab): Change type of parameters.
5101 (scan_xcoff_symtab): Adjust to vector change.
5102 (xcoff_initial_scan): Likewise.
5103
5104 2017-10-13 Simon Marchi <simon.marchi@ericsson.com>
5105
5106 * ada-typeprint.c (print_dynamic_range_bound): Use std::string.
5107
5108 2017-10-13 Yao Qi <yao.qi@linaro.org>
5109
5110 * features/Makefile: Remove tic6x-*-expedite, add tic6x-expedite.
5111 Remove s390x-*-expedite, add s390x-expedite.
5112
5113 2017-10-13 Yao Qi <yao.qi@linaro.org>
5114
5115 * features/s390-gs-linux64.c: Regenerated.
5116 * features/s390x-gs-linux64.c: Regenerated.
5117
5118 2017-10-13 Tom Tromey <tom@tromey.com>
5119
5120 * compile/compile-object-run.c (do_module_cleanup): Use delete.
5121 * solib.c (update_solib_list, reload_shared_libraries_1): Use
5122 delete.
5123 * symfile.c (symbol_file_add_with_addrs): Use new.
5124 (symbol_file_add_separate): Update comment.
5125 (syms_from_objfile_1, remove_symbol_file_command): Use delete.
5126 * jit.c (jit_object_close_impl): Use new.
5127 (jit_unregister_code): Use delete.
5128 * objfiles.c (objfile::objfile): Rename from allocate_objfile.
5129 (~objfile): Rename from free_objfile.
5130 (free_objfile_separate_debug, do_free_objfile_cleanup)
5131 (free_all_objfiles, objfile_purge_solibs): Use delete.
5132 * objfiles.h (struct objfile): Add constructor and destructor.
5133 Use DISABLE_COPY_AND_ASSIGN. Add initializers to data members.
5134 (allocate_objfile, free_objfile): Don't declare.
5135 (struct objstats): Add initializers.
5136
5137 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
5138
5139 * arch-utils.h (simple_displaced_step_copy_insn): Remove.
5140 * arch-utils.c (simple_displaced_step_copy_insn): Remove.
5141 * gdbarch.sh (displaced_step_copy_insn): Adjust comment.
5142 * gdbarch.h: Regenerate.
5143 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
5144 Adjust comment.
5145 * i386-tdep.c (i386_displaced_step_copy_insn): Adjust comment.
5146 (i386_displaced_step_fixup): Adjust comment.
5147 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Adjust comment.
5148
5149 2017-10-12 Tom Tromey <tom@tromey.com>
5150
5151 * prologue-value.h (pv_area::store_would_trash): Return bool.
5152 (pv_area::find_reg): Likewise.
5153 * prologue-value.c (pv_area::store_would_trash): Return bool.
5154 (pv_area::find_reg): Likewise.
5155
5156 2017-10-12 Tom Tromey <tom@tromey.com>
5157
5158 * s390-linux-tdep.c (s390_store, s390_load)
5159 (s390_check_for_saved, s390_analyze_prologue): Update.
5160 * rx-tdep.c (check_for_saved, rx_analyze_prologue): Update.
5161 * rl78-tdep.c (rl78_analyze_prologue, check_for_saved): Update.
5162 * prologue-value.h (class pv_area): Move from prologue-value.c.
5163 Change names of members. Add constructor, destructor, member
5164 functions.
5165 (make_pv_area, free_pv_area, make_cleanup_free_pv_area)
5166 (pv_area_store, pv_area_fetch, pv_area_store_would_trash)
5167 (pv_area_fetch, pv_area_scan): Don't declare.
5168 * prologue-value.c (struct pv_area::area_entry): Now member of
5169 pv_area.
5170 (struct pv_area): Move to prologue-value.h.
5171 (pv_area::pv_area): Rename from make_pv_area.
5172 (pv_area::~pv_area): Rename from free_pv_area.
5173 (do_free_pv_area_cleanup, make_cleanup_free_pv_area): Remove.
5174 (clear_entries, find_entry, overlaps, store_would_trash, store)
5175 (fetch, find_reg, scan): Now member of pv_area.
5176 Remove "area" argument. Update.
5177 * msp430-tdep.c (check_for_saved, msp430_analyze_prologue):
5178 Update.
5179 * mn10300-tdep.c (push_reg, check_for_saved)
5180 (mn10300_analyze_prologue): Update.
5181 * mep-tdep.c (is_arg_spill, check_for_saved)
5182 (mep_analyze_prologue): Update.
5183 * m32c-tdep.c (m32c_pv_push, m32c_srcdest_fetch)
5184 (m32c_srcdest_store, m32c_pv_enter, m32c_is_arg_spill)
5185 (m32c_is_struct_return, m32c_analyze_prologue): Update.
5186 * arm-tdep.c (thumb_analyze_prologue, arm_analyze_prologue):
5187 Update.
5188 * arc-tdep.c (arc_is_in_prologue, arc_analyze_prologue): Update.
5189 * aarch64-tdep.c (aarch64_analyze_prologue): Update.
5190
5191 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
5192
5193 * linux-nat.h (linux_nat_set_delete_thread): New declaration.
5194 * linux-nat.c (linux_nat_delete_thread): New variable.
5195 (lwp_free): Invoke linux_nat_delete_thread if set.
5196 (linux_nat_set_delete_thread): New function.
5197 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Assign
5198 thread delete callback.
5199 * arm-linux-nat.c (arm_linux_delete_thread): New function.
5200 (_initialize_arm_linux_nat): Assign thread delete callback.
5201 * s390-linux-nat.c (s390_delete_thread): New function.
5202 (_initialize_s390_nat): Assign thread delete callback.
5203 * x86-linux-nat.c (x86_linux_add_target): Likewise.
5204 * nat/aarch64-linux.c (aarch64_linux_delete_thread): New
5205 function.
5206 * nat/aarch64-linux.h (aarch64_linux_delete_thread): New
5207 declaration.
5208 * nat/x86-linux.c (x86_linux_delete_thread): New function.
5209 * nat/x86-linux.h (x86_linux_delete_thread): New declaration.
5210
5211 2017-10-09 Tom Tromey <tom@tromey.com>
5212
5213 * tui/tui-win.c (tui_set_win_height, parse_scrolling_args): Use
5214 std::string.
5215 * tui/tui-layout.c (enum tui_status): Use std::string.
5216
5217 2017-10-11 Tom Tromey <tom@tromey.com>
5218
5219 * gdbthread.h (thread_command): Constify.
5220 * inferior.h (detach_command): Constify.
5221 * top.h (set_history, show_history): Constify.
5222 * arm-tdep.c (set_arm_command, show_arm_command): Constify.
5223 * serial.c (serial_set_cmd, serial_show_cmd): Constify.
5224 * bsd-kvm.c (bsd_kvm_cmd): Constify.
5225 * printcmd.c (set_command): Constify.
5226 (non_const_set_command): New function.
5227 * dcache.c (set_dcache_command, show_dcache_command): Constify.
5228 * breakpoint.c (enable_command, disable_command, delete_command)
5229 (catch_command, tcatch_command, set_breakpoint_cmd)
5230 (show_breakpoint_cmd): Constify.
5231 * macrocmd.c (macro_command): Constify.
5232 * infcmd.c (unset_command, kill_command, detach_command)
5233 (info_proc_cmd): Constify.
5234 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Constify.
5235 * auto-load.c (show_auto_load_cmd, set_auto_load_cmd)
5236 (info_auto_load_cmd): Constify.
5237 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
5238 (unset_tdesc_cmd): Constify.
5239 * ada-lang.c (set_ada_command, show_ada_command)
5240 (maint_set_ada_cmd, maint_show_ada_cmd): Constify.
5241 * guile/guile.c (set_guile_command, show_guile_command)
5242 (info_guile_command): Constify.
5243 * tui/tui-win.c (tui_command, set_tui_cmd, show_tui_cmd):
5244 Constify.
5245 * skip.c (skip_command): Constify.
5246 * compile/compile.c (_initialize_compile): Constify.
5247 * dwarf2read.c (set_dwarf_cmd, show_dwarf_cmd): Constify.
5248 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
5249 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
5250 (maint_btrace_pt_show_cmd): Constify.
5251 * remote.c (set_remote_cmd, show_remote_cmd, remote_command):
5252 Constify.
5253 * python/python.c (user_show_python, user_set_python): Constify.
5254 * mips-tdep.c (set_mips_command, show_mips_command)
5255 (set_mipsfpu_command): Constify.
5256 * record-btrace.c (cmd_record_btrace_start)
5257 (cmd_set_record_btrace, cmd_show_record_btrace)
5258 (cmd_set_record_btrace_bts, cmd_show_record_btrace_bts)
5259 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): Constify.
5260 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command):
5261 Constify.
5262 * symfile.c (overlay_command): Constify.
5263 * spu-tdep.c (set_spu_command, show_spu_command): Constify.
5264 * cli/cli-logging.c (set_logging_command, show_logging_command):
5265 Constify.
5266 * cli/cli-dump.c (dump_command, append_command)
5267 (srec_dump_command, ihex_dump_command, verilog_dump_command)
5268 (tekhex_dump_command, binary_dump_command)
5269 (binary_append_command): Constify.
5270 * cli/cli-decode.c (struct cmd_list_element): Change type of
5271 "fun".
5272 * cli/cli-cmds.c (info_command, show_command, set_debug)
5273 (show_debug): Constify.
5274 (show_command): Add non-const overload.
5275 * top.c (set_history, show_history): Constify.
5276 * sh-tdep.c (set_sh_command, show_sh_command): Constify.
5277 * command.h (add_prefix_cmd): Accept a cmd_const_cfunc_ftype.
5278 * target.c (target_command): Constify.
5279 * sparc64-tdep.c (info_adi_command): Constify.
5280 * record-full.c (cmd_record_full_start): Constify.
5281 (set_record_full_command): Constify. Fix typo.
5282 (show_record_full_command): Constify.
5283 * thread.c (thread_command, thread_apply_command): Constify.
5284 * memattr.c (dummy_cmd): Constify.
5285 * value.c (function_command): Constify.
5286 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Constify.
5287 * probe.c (info_probes_command): Constify.
5288 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Constify.
5289 * gnu-nat.c (set_task_cmd, show_task_cmd, set_thread_cmd)
5290 (show_thread_cmd, set_thread_default_cmd)
5291 (show_thread_default_cmd): Constify.
5292 (check_empty): Constify.
5293 * tracepoint.c (tfind_command): Constify.
5294 * cp-support.c (maint_cplus_command): Constify.
5295 * windows-tdep.c (info_w32_command): Constify.
5296 * record.c (cmd_record_start, set_record_command)
5297 (show_record_command, info_record_command, cmd_record_goto):
5298 Constify.
5299 * ravenscar-thread.c (set_ravenscar_command)
5300 (show_ravenscar_command): Constify.
5301 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5302 Constify.
5303 (add_internal_problem_command): Remove casts.
5304 * arc-tdep.c (maintenance_print_arc_command): Constify.
5305 * valprint.c (set_print, show_print, set_print_raw)
5306 (show_print_raw): Constify.
5307 * maint.c (maintenance_command, maintenance_info_command)
5308 (maintenance_print_command, maintenance_set_cmd)
5309 (maintenance_show_cmd, set_per_command_cmd)
5310 (show_per_command_cmd, maintenance_check_command): Constify.
5311 * language.c (set_check, show_check): Constify.
5312 * typeprint.c (show_print_type, set_print_type): Constify.
5313 * go32-nat.c (go32_info_dos_command): Constify.
5314
5315 2017-10-11 Tom Tromey <tom@tromey.com>
5316
5317 * breakpoint.c (prepare_re_set_context): Remove.
5318 (breakpoint_re_set_one): Update. Don't use cleanups.
5319 (breakpoint_re_set): Use scoped_restore, std::string, and
5320 scoped_restore_current_language.
5321
5322 2017-10-11 Tom Tromey <tom@tromey.com>
5323
5324 * breakpoint.c (commands_command_1): Use std::string.
5325 (cleanup_executing_breakpoints): Remove.
5326 (bpstat_do_actions_1): Use scoped_restore.
5327 (bpstat_check_watchpoint): Use std::string.
5328 (decode_static_tracepoint_spec): Likewise.
5329 (break_range_command): Likewise.
5330 (watch_command_1): Likewise.
5331 (compare_breakpoints): Change argument types.
5332 (clear_command): Use std::vector.
5333 (cleanup_executing_breakpoints): Remove.
5334 (update_global_location_list): Use unique_xmalloc_ptr.
5335 (strace_command): Remove unused declaration.
5336
5337 2017-10-11 John Baldwin <jhb@FreeBSD.org>
5338
5339 * Makefile.in (ALLDEPFILES): Add arm-fbsd-nat.c.
5340 * NEWS: Mention new FreeBSD/arm native configuration.
5341 * configure.host: Add arm*-*-freebsd*.
5342 * configure.nat: Likewise.
5343 * arm-fbsd-nat.c: New file.
5344
5345 2017-10-11 John Baldwin <jhb@FreeBSD.org>
5346
5347 * Makefile.in (ALL_TARGET_OBS): Add arm-fbsd-tdep.o.
5348 (ALLDEPFILES): Add arm-fbsd-tdep.c.
5349 * NEWS: Mention new FreeBSD/arm target.
5350 * configure.tgt: Add arm*-*-freebsd*.
5351 * arm-fbsd-tdep.c: New file.
5352 * arm-fbsd-tdep.h: New file.
5353
5354 2017-10-11 Maciej W. Rozycki <macro@imgtec.com>
5355
5356 * linux-tdep.c (linux_make_corefile_notes): Remove call to
5357 `gdbarch_elfcore_write_linux_prpsinfo'.
5358 * gdbarch.sh (elfcore_write_linux_prpsinfo): Remove architecture
5359 method.
5360 (elf_internal_linux_prpsinfo): Remove declaration.
5361 * gdbarch.h: Regenerate.
5362 * gdbarch.c: Regenerate.
5363
5364 2017-10-11 Maciej W. Rozycki <macro@imgtec.com>
5365
5366 * ppc-linux-tdep.c (ppc_linux_init_abi): Remove call to
5367 `set_gdbarch_elfcore_write_linux_prpsinfo'.
5368
5369 2017-10-11 Pedro Alves <palves@redhat.com>
5370
5371 * breakpoint.c (reattach_breakpoints): Delete.
5372 * breakpoint.h (reattach_breakpoints): Delete.
5373
5374 2017-10-11 Simon Marchi <simon.marchi@ericsson.com>
5375
5376 * symfile.c (registered_sym_fns): Make struct, not typedef.
5377 (DEF_VEC_O (registered_sym_fns)): Remove.
5378 (symtab_fns): Change type to std::vector.
5379 (add_symtab_fns): Adjust.
5380 (find_sym_fns): Adjust.
5381
5382 2017-10-11 Anton Kolesov <Anton.Kolesov@synopsys.com>
5383
5384 * arc-tdep.c (arc_gdbarch_init): Pass proper cpu value to disassembler.
5385 * arc-tdep.h (arc_arch_is_em): New function.
5386 (arc_arch_is_hs): Likewise.
5387
5388 2017-10-11 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com>
5389
5390 * macrotab.h (macro_lookup_inclusion): Remove unnecessary
5391 parentheses in the declaration.
5392 (macro_lookup_inclusion): Likewise.
5393 (macro_lookup_definition): Likewise.
5394 * p-lang.h (pascal_builtin_types): Likewise.
5395 * tui/tui-data.c (tui_win_list): Likewise.
5396 * tui/tui-data.h (tui_win_list): Likewise.
5397 * utils.h (make_cleanup_free_section_addr_info): Likewise.
5398
5399 2017-10-11 Mark Rages <markrages@gmail.com>
5400
5401 * target-memory.c (block_boundaries): Fix for block address not
5402 aligned on block size.
5403
5404 2017-10-10 Pedro Alves <palves@redhat.com>
5405 Tom Tromey <tom@tromey.com>
5406
5407 * breakpoint.c (struct captured_breakpoint_query_args)
5408 (do_captured_breakpoint_query, gdb_breakpoint_query): Delete.
5409 (print_breakpoint): New.
5410 * breakpoint.h (print_breakpoint): Declare.
5411 * common/common-exceptions.h (enum return_reason): Remove
5412 references to catch_exceptions.
5413 * exceptions.c (catch_exceptions, catch_exceptions_with_msg):
5414 Delete.
5415 * exceptions.h (catch_exceptions_ftype, catch_exceptions)
5416 (catch_exception_ftype, catch_exceptions_with_msg): Delete.
5417 * gdb.h: Delete.
5418 * gdbthread.h (thread_select): Declare.
5419 * mi/mi-cmd-break.c: Don't include gdb.h.
5420 (breakpoint_notify): Use print_breakpoint.
5421 * mi/mi-cmd-catch.c: Don't include gdb.h.
5422 * mi/mi-interp.c: Don't include gdb.h.
5423 (mi_print_breakpoint_for_event): New.
5424 (mi_breakpoint_created, mi_breakpoint_modified): Use
5425 mi_print_breakpoint_for_event.
5426 * mi/mi-main.c: Don't include gdb.h.
5427 (mi_cmd_thread_select): Parse the global thread ID here. Use
5428 thread_select instead of gdb_thread_select.
5429 (mi_cmd_thread_list_ids): Output "thread-ids" tuple here instead
5430 of using gdb_list_thread_ids.
5431 * remote-fileio.c (do_remote_fileio_request): Change type. Reply
5432 FILEIO_ENOSYS here.
5433 (remote_fileio_request): Use TRY/CATCH instead of
5434 catch_exceptions.
5435 * symfile-mem.c (struct symbol_file_add_from_memory_args)
5436 (symbol_file_add_from_memory_wrapper): Delete.
5437 (add_vsyscall_page): Use TRY/CATCH instead of catch_exceptions.
5438 * thread.c: Don't include gdb.h.
5439 (do_captured_list_thread_ids, gdb_list_thread_ids): Delete.
5440 (thread_alive): Use thread_select.
5441 (do_captured_thread_select): Delete, parts salvaged as ...
5442 (thread_select): ... this new function.
5443 (gdb_thread_select): Delete.
5444
5445 2017-10-10 Pedro Alves <palves@redhat.com>
5446 Tom Tromey <tom@tromey.com>
5447
5448 * breakpoint.c (breakpoint_cond_eval): Change return type to bool
5449 and reverse logic.
5450 (WP_DELETED, WP_VALUE_CHANGED, WP_VALUE_NOT_CHANGED, WP_IGNORE):
5451 No longer macros. Instead ...
5452 (enum wp_check_result): They're now values of this new
5453 enumeration.
5454 (watchpoint_check): Change return type to wp_check_result and
5455 parameter type to bpstat.
5456 (bpstat_check_watchpoint): Use TRY/CATCH instead of catch_errors.
5457 (bpstat_check_breakpoint_conditions): Use TRY/CATCH instead of
5458 catch_errors. Reverse logic of watchpoint_check call.
5459 (breakpoint_re_set_one): Now returns void and takes a breakpoint
5460 pointer as parameter.
5461 (breakpoint_re_set): Use TRY/CATCH instead of catch_errors.
5462 * common/common-exceptions.c (throw_exception_sjlj): Update
5463 comments to avoid mentioning catch_errors.
5464 * exceptions.c (catch_errors): Delete.
5465 * exceptions.h: Update comments to avoid mentioning catch_errors.
5466 (catch_errors_ftype, catch_errors): Delete.
5467 * infrun.c (normal_stop): Use TRY/CATCH instead of catch_errors.
5468 (hook_stop_stub): Delete.
5469 (restore_selected_frame): Change return type to void, and
5470 parameter type to const frame_id &.
5471 (restore_infcall_control_state): Use TRY/CATCH instead of
5472 catch_errors.
5473 * main.c (captured_command_loop): Return void and remove
5474 parameter. Remove references to catch_errors.
5475 (captured_main): Use TRY/CATCH instead of catch_errors.
5476 * objc-lang.c (objc_submethod_helper_data)
5477 (find_objc_msgcall_submethod_helper): Delete.
5478 (find_objc_msgcall_submethod): Use TRY/CATCH instead of
5479 catch_errors.
5480 * record-full.c (record_full_message): Return void.
5481 (record_full_message_args, record_full_message_wrapper): Delete.
5482 (record_full_message_wrapper_safe): Return bool and use TRY/CATCH
5483 instead of catch_errors.
5484 * solib-aix.c (solib_aix_open_symbol_file_object): Change
5485 parameter type to int.
5486 * solib-darwin.c (open_symbol_file_object): Ditto.
5487 * solib-dsbt.c (open_symbol_file_object): Ditto.
5488 * solib-frv.c (open_symbol_file_object): Ditto.
5489 * solib-svr4.c (open_symbol_file_object): Ditto.
5490 * solib-target.c (solib_target_open_symbol_file_object): Ditto.
5491 * solib.c (update_solib_list): Use TRY/CATCH instead of
5492 catch_errors.
5493 * solist.h (struct target_so_ops) <open_symbol_file_object>:
5494 Change type.
5495 * symmisc.c (struct print_symbol_args): Remove.
5496 (dump_symtab_1): Use TRY/CATCH instead of catch_errors.
5497 (print_symbol): Change type.
5498 * windows-nat.c (handle_load_dll, handle_unload_dll): Return void
5499 and remove parameters.
5500 (catch_errors): New.
5501 (get_windows_debug_event): Adjust.
5502
5503 2017-10-09 Tom Tromey <tom@tromey.com>
5504
5505 * mi/mi-main.c (free_splay_tree): Remove.
5506 (list_available_thread_groups): Use splay_tree_up.
5507 * common/gdb_splay_tree.h: New file.
5508
5509 2017-10-09 Tom Tromey <tom@tromey.com>
5510
5511 * mi/mi-main.c (do_nothing): Remove.
5512 (list_available_thread_groups): Update.
5513
5514 2017-10-09 Pedro Alves <palves@redhat.com>
5515
5516 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>: Skip
5517 reading registers when switching context.
5518
5519 2017-10-09 John Baldwin <jhb@FreeBSD.org>
5520
5521 * fbsd-nat.c (fbsd_siginfo_size): Use gdbarch_long_bit.
5522 (fbsd_convert_siginfo): Likewise.
5523 * fbsd-tdep.c (fbsd_core_xfer_siginfo): Likewise.
5524
5525 2017-10-09 Simon Marchi <simon.marchi@polymtl.ca>
5526
5527 * configure.ac (try_guile_versions): Remove guile-2.2.
5528 * configure: Regenerate.
5529
5530 2017-10-09 Tom Tromey <tom@tromey.com>
5531
5532 * Makefile.in (COMPILE.post, POSTCOMPILE): Restore $(basename).
5533 (COMPILE.pre): Use $(CXX).
5534
5535 2017-10-09 Pedro Alves <palves@redhat.com>
5536
5537 * cp-support.c (cp_remove_params): Return a gdb::unique_xmalloc_ptr.
5538 Use bool.
5539 (overload_list_add_symbol): Adjust to use gdb::unique_xmalloc_ptr.
5540 * cp-support.h (cp_remove_params): Now returns a
5541 gdb::unique_xmalloc_ptr.
5542 * dwarf2read.c (find_slot_in_mapped_hash): Now returns bool.
5543 Adjust to cp_remove_params returning a gdb::unique_xmalloc_ptr.
5544 * psymtab.c (psymtab_search_name): Adjust to cp_remove_params
5545 returning a gdb::unique_xmalloc_ptr.
5546 (lookup_partial_symbol): Adjust to use gdb::unique_xmalloc_ptr.
5547 * stack.c (find_frame_funname): Adjust to cp_remove_params
5548 returning a gdb::unique_xmalloc_ptr.
5549
5550 2017-10-08 Tom Tromey <tom@tromey.com>
5551
5552 * dwarf2read.c (dwarf2_get_dwz_file): Use
5553 gdb::unique_xmalloc_ptr.
5554 (find_slot_in_mapped_hash): Likewise.
5555 (dwarf2_physname): Likewise.
5556 (create_dwo_unit_in_dwp_v1): Use std::string.
5557 (create_dwo_unit_in_dwp_v2): Likewise.
5558 (lookup_dwo_cutu): Likewise.
5559 (inherit_abstract_dies): Use std::vector.
5560 (read_array_type): Likewise.
5561 (dwarf_decode_macros): Remove unused declaration.
5562 (unsigned_int_compar): Remove.
5563 (dwarf2_build_psymtabs_hard): Use scoped_restore.
5564 (psymtabs_addrmap_cleanup): Remove.
5565
5566 2017-10-08 Tom Tromey <tom@tromey.com>
5567
5568 * frame-unwind.c (frame_unwind_try_unwinder): Update.
5569 * frame.h (frame_cleanup_after_sniffer): Declare.
5570 (frame_prepare_for_sniffer): Return void.
5571 * frame.c (frame_cleanup_after_sniffer): No longer static. Change
5572 type of argument.
5573 (frame_prepare_for_sniffer): Return void.
5574
5575 2017-10-08 Tom Tromey <tom@tromey.com>
5576
5577 * utils.h (make_cleanup_value_free): Remove.
5578 * utils.c (do_value_free, struct cleanup): Remove.
5579 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>:
5580 Use gdb_value_up.
5581 * value.h (struct value_deleter): New.
5582 (gdb_value_up): New typedef.
5583
5584 2017-10-08 Tom Tromey <tom@tromey.com>
5585
5586 * symtab.c (free_search_symbols, do_free_search_symbols_cleanup)
5587 (make_cleanup_free_search_symbols): Remove.
5588 (search_symbols): Return std::vector.
5589 (symbol_search::compare_search_syms): Now member of
5590 symbol_search. Change arguments.
5591 (sort_search_symbols_remove_dups): Change arguments. Rewrite.
5592 (symtab_symbol_info, rbreak_command): Update.
5593 * symtab.h (struct symbol_search) <next>: Remove.
5594 Add constructors.
5595 (symbol_search::operator<): New function.
5596 (symbol_search::operator==): New function.
5597 (search_symbols): Remove std::vector.
5598 (free_search_symbols, make_cleanup_free_search_symbols): Remove.
5599 (symbol_search::compare_search_syms): Declare.
5600
5601 2017-10-06 Yao Qi <yao.qi@linaro.org>
5602
5603 * Makefile.in (ALL_64_TARGET_OBS): Replace aarch64-insn.o with
5604 arch/aarch64-insn.o.
5605 Remove one rule.
5606 * configure.tgt: Replace aarch64-insn.o with arch/aarch64-insn.o.
5607
5608 2017-10-06 Yao Qi <yao.qi@linaro.org>
5609
5610 * Makefile.in (ALL_TARGET_OBS): Replace arm.o, arm-get-next-pcs.o,
5611 and arm-linux.o with arch/arm.o, arch/arm-get-next-pcs.o and
5612 arch/arm-linux.o respectively.
5613 * configure.tgt: Likewise.
5614
5615 2017-10-06 Yao Qi <yao.qi@linaro.org>
5616
5617 * Makefile.in (ALL_TARGET_OBS): Rename i386.o to arch/i386.o.
5618 * configure.tgt (i386_tobjs): Replace i386.o with arch/i386.o.
5619
5620 2017-10-06 Pedro Alves <palves@redhat.com>
5621
5622 * windows-nat.c: Include <algorithm>.
5623
5624 2017-10-06 Yao Qi <yao.qi@linaro.org>
5625
5626 * configure.tgt (i386_tobjs): New variable.
5627 (amd64_tobjs): New variable.
5628 Set $cpu_obs and $os_obs.
5629
5630 2017-10-06 Yao Qi <yao.qi@linaro.org>
5631
5632 * Makefile.in (CONFIG_SRC_SUBDIR): New.
5633 (ALL_64_TARGET_OBS): Replace amd64.o with arch/amd64.o.
5634 (clean): Remove object files and dependency files.
5635 (distclean): Remove the directory.
5636 * configure.ac: Invoke AC_CONFIG_COMMANDS.
5637 * configure: Re-generated.
5638 * configure.tgt: Replace amd64.o with arch/amd64.o.
5639
5640 2017-10-05 Jose E. Marchesi <jose.marchesi@oracle.com>
5641
5642 PR build/22188
5643 * arm-tdep.c (arm_decode_misc_memhint_neon): Fix decoding of CPS
5644 and SETEND.
5645
5646 2017-10-05 Pedro Alves <palves@redhat.com>
5647
5648 * linux-nat.c (linux_child_follow_fork): When following the parent
5649 and detaching the child, consult the parent thread's architecture
5650 instead of the child's.
5651
5652 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
5653
5654 * ax.h: Do not include "doublest.h".
5655 (union agent_val): Remove.
5656
5657 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
5658
5659 * dfp.h (MAX_DECIMAL_STRING): Move to dfp.c.
5660 (decimal_to_string): Return std::string object.
5661 (decimal_from_string): Accept std::string object. Return bool.
5662 (decimal_from_integral, decimal_from_doublest): Remove.
5663 (decimal_from_longest): Add prototype.
5664 (decimal_from_ulongest): Likewise.
5665 (decimal_to_longest): Likewise.
5666 (decimal_from_doublest): Likewise.
5667 * dfp.c: Do not include "gdbtypes.h" or "value.h".
5668 (MAX_DECIMAL_STRING): Move here.
5669 (decimal_to_string): Return std::string object.
5670 (decimal_from_string): Accept std::string object. Return bool.
5671 (decimal_from_integral): Remove, replace by ...
5672 (decimal_from_longest, decimal_from_ulongest): ... these new functions.
5673 (decimal_to_longest): New function.
5674 (decimal_from_floating): Remove, replace by ...
5675 (decimal_from_doublest): ... this new function.
5676 (decimal_to_doublest): Update to new decimal_to_string interface.
5677
5678 * value.c (unpack_long): Use decimal_to_longest.
5679 * valops.c (value_cast): Use decimal_from_doublest instead of
5680 decimal_from_floating. Use decimal_from_[u]longest isntead of
5681 decimal_from_integral.
5682 * valarith.c (value_args_as_decimal): Likewise.
5683 * valprint.c (print_decimal_floating): Update to new
5684 decimal_to_string interface.
5685 * printcmd.c (printf_decfloat): Likewise.
5686 * c-exp.y (parse_number): Update to new decimal_from_string interface.
5687
5688 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
5689
5690 * doublest.h: Do not include "floatformat.h". Remove stale comments.
5691 * gdbtypes.c: Include "floatformat.h".
5692 * value.c: Likewise.
5693 * m68k-tdep.c: Likewise.
5694
5695 * findvar.c: Do not include "floatformat.h".
5696 * amd64-darwin-tdep.c: Likewise.
5697 * arm-linux-tdep.c: Likewise.
5698 * i386-darwin-tdep.c: Likewise.
5699 * i387-tdep.c: Likewise.
5700 * m68k-linux-tdep.c: Likewise.
5701 * mep-tdep.c: Likewise.
5702 * mips-tdep.c: Likewise.
5703 * nios2-tdep.c: Likewise.
5704 * s390-linux-tdep.c: Likewise.
5705 * sparc-obsd-tdep.c: Likewise.
5706 * sparc-tdep.c: Likewise.
5707 * sparc64-tdep.c: Likewise.
5708 * spu-tdep.c: Likewise.
5709 * tic6x-tdep.c: Likewise.
5710 * tilegx-tdep.c: Likewise.
5711 * vax-tdep.c: Likewise.
5712 * xstormy16-tdep.c: Likewise.
5713 * xtensa-tdep.c: Likewise.
5714
5715 * top.c: Do not include "doublest.h".
5716 * aarch64-tdep.c: Likewise.
5717 * alpha-tdep.c: Likewise.
5718 * arm-linux-tdep.c: Likewise.
5719 * m68k-linux-tdep.c: Likewise.
5720 * tilegx-tdep.c: Likewise.
5721 * xstormy16-tdep.c: Likewise.
5722
5723 2017-10-05 John Baldwin <jhb@FreeBSD.org>
5724
5725 * mips-fbsd-tdep.c (MIPS_INST_ADDIU_A0_SP_N32): Define.
5726 (mipsn32_fbsd_sigframe): Define.
5727 (mips_fbsd_init_abi): Install mipsn32_fbsd_sigframe unwinder
5728 for FreeBSD/mipsn32.
5729
5730 2017-10-05 John Baldwin <jhb@FreeBSD.org>
5731
5732 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_EHDRFLAGS and
5733 AT_HWCAP.
5734
5735 2017-10-05 Tristan Gingold <tgingold@free.fr>
5736
5737 * MAINTAINERS (Misc): Update my email address.
5738
5739 2017-10-04 Pedro Alves <palves@redhat.com>
5740
5741 * remote.c (get_remote_arch_state): New 'gdbarch' parameter. Use
5742 it instead of target_gdbarch.
5743 (get_remote_state, get_remote_packet_size): Adjust
5744 get_remote_arch_state calls, passing down target_gdbarch
5745 explicitly.
5746 (packet_reg_from_regnum, packet_reg_from_pnum): New parameter
5747 'gdbarch' and use it instead of target_gdbarch.
5748 (get_memory_packet_size): Adjust get_remote_arch_state calls,
5749 passing down target_gdbarch explicitly.
5750 (struct stop_reply) <arch>: New field.
5751 (remote_parse_stop_reply): Use the stopped thread's architecture,
5752 not the current inferior's. Save the architecture in the
5753 stop_reply.
5754 (process_stop_reply): Use the stop reply's architecture.
5755 (process_g_packet, remote_fetch_registers)
5756 (remote_prepare_to_store, store_registers_using_G)
5757 (remote_store_registers): Adjust get_remote_arch_state calls,
5758 using the regcache's architecture.
5759 (remote_get_trace_status): Adjust get_remote_arch_state calls,
5760 passing down target_gdbarch explicitly.
5761 * spu-multiarch.c (spu_thread_architecture): Defer to the target
5762 beneath instead of calling target_gdbarch.
5763 * target.c (default_thread_architecture): Use the specified
5764 inferior's architecture, instead of the current inferior's
5765 architecture (via target_gdbarch).
5766
5767 2017-10-04 Pedro Alves <palves@redhat.com>
5768
5769 * regcache.c (get_thread_arch_regcache): Remove null_ptid special
5770 case.
5771 (regcache_print): Handle !target_has_registers here instead.
5772
5773 2017-10-04 Pedro Alves <palves@redhat.com>
5774
5775 * frame.c (create_test_frame): Delete.
5776 * frame.h (create_test_frame): Delete.
5777 * gdbarch-selftests.c: Include gdbthread.h and target.h.
5778 (class regcache_test): Delete.
5779 (test_target_has_registers, test_target_has_stack)
5780 (test_target_has_memory, test_target_prepare_to_store)
5781 (test_target_store_registers): New functions.
5782 (test_target_ops): New class.
5783 (register_to_value_test): Error out if there's already a
5784 process_stratum (or higher) target pushed. Create a fuller mock
5785 environment, with mock target_ops, inferior, address space, thread
5786 and inferior_ptid.
5787 * progspace.c (struct address_space): Move to ...
5788 * progspace.h (struct address_space): ... here.
5789 * regcache.h (regcache::~regcache, regcache::raw_write)
5790 [GDB_SELF_TEST]: No longer virtual.
5791
5792 2017-10-04 Simon Marchi <simon.marchi@ericsson.com>
5793
5794 * mi/mi-main.c (list_available_thread_groups): Reverse filter logic.
5795
5796 2017-10-04 Pedro Alves <palves@redhat.com>
5797
5798 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Move code
5799 out of 'between TRY and CATCH'.
5800
5801 2017-10-04 Pedro Alves <palves@redhat.com>
5802
5803 * cli/cli-cmds.c (complete_command): Add missing END_CATCH.
5804 * common/common-exceptions.h (TRY): Open an outermost scope.
5805 Expand intro comment.
5806 (CATCH): Reindent.
5807 (END_CATCH): Close the outermost scope.
5808 * completer.c (complete_line_internal): Add missing END_CATCH.
5809
5810 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
5811
5812 * NEWS (Changes since GDB 8.0): Add entry about new
5813 'set-cwd-on-gdbserver' feature.
5814 (New remote packets): Add entry for QSetWorkingDir.
5815 * common/common-inferior.h (set_inferior_cwd): New prototype.
5816 * infcmd.c (set_inferior_cwd): Remove "static".
5817 (show_cwd_command): Expand text to include remote debugging.
5818 * remote.c: Add PACKET_QSetWorkingDir.
5819 (remote_protocol_features) <QSetWorkingDir>: New entry for
5820 PACKET_QSetWorkingDir.
5821 (extended_remote_set_inferior_cwd): New function.
5822 (extended_remote_create_inferior): Call
5823 "extended_remote_set_inferior_cwd".
5824 (_initialize_remote): Call "add_packet_config_cmd" for
5825 QSetWorkingDir.
5826
5827 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
5828
5829 * NEWS (New commands): Mention "set/show cwd".
5830 * cli/cli-cmds.c (_initialize_cli_cmds): Mention "set cwd" on
5831 "cd" command's help text.
5832 * common/common-inferior.h (get_inferior_cwd): New prototype.
5833 * infcmd.c (inferior_cwd_scratch): New global variable.
5834 (set_inferior_cwd): New function.
5835 (get_inferior_cwd): Likewise.
5836 (set_cwd_command): Likewise.
5837 (show_cwd_command): Likewise.
5838 (_initialize_infcmd): Add "set/show cwd" commands.
5839 * inferior.h (class inferior) <cwd>: New field.
5840 * nat/fork-inferior.c: Include "gdb_tilde_expand.h".
5841 (fork_inferior): Change inferior's cwd before its execution.
5842 * windows-nat.c (windows_create_inferior): Pass inferior's cwd
5843 to CreateProcess.
5844
5845 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
5846
5847 * Makefile.in (SFILES): Add gdb_tilde_expand.c.
5848 (HFILES_NO_SRCDIR): Add gdb_tilde_expand.h.
5849 (COMMON_OBS): Add gdb_tilde_expand.o.
5850 * common/gdb_tilde_expand.c: New file.
5851 * common/gdb_tilde_expand.h: Likewise.
5852
5853 2017-10-03 Maciej W. Rozycki <macro@imgtec.com>
5854
5855 * gdbarch.sh (objfile): Remove duplicate declaration.
5856 * gdbarch.h: Regenerate.
5857
5858 2017-10-03 Tom Tromey <tom@tromey.com>
5859
5860 * utils.c (internal_vproblem): Use string_vprintf.
5861
5862 2017-10-03 Tom Tromey <tom@tromey.com>
5863
5864 * printcmd.c (info_symbol_command): Use std::string.
5865
5866 2017-10-03 Tom Tromey <tom@tromey.com>
5867
5868 * top.c (gdb_safe_append_history): Use std::string.
5869
5870 2017-10-03 Tom Tromey <tom@tromey.com>
5871
5872 * event-top.c (stdin_event_handler): Update.
5873 * main.c (captured_main_1): Update.
5874 * top.h (make_delete_ui_cleanup): Remove.
5875 (struct ui): Add constructor and destructor.
5876 (new_ui, delete_ui): Remove.
5877 * top.c (make_delete_ui_cleanup): Remove.
5878 (new_ui_command): Use std::unique_ptr.
5879 (delete_ui_cleanup): Remove.
5880 (ui::ui): Rename from new_ui. Update.
5881 (free_ui): Remove.
5882 (ui::~ui): Rename from delete_ui. Update.
5883
5884 2017-10-03 Tom Tromey <tom@tromey.com>
5885
5886 * symfile.c (load_progress): Use gdb::byte_vector.
5887
5888 2017-10-03 Tom Tromey <tom@tromey.com>
5889
5890 * mi/mi-main.c (mi_cmd_trace_frame_collected): Remove unused
5891 declaration.
5892 * printcmd.c (x_command): Remove unused declaration.
5893 * symfile.c (symbol_file_command): Remove unused declaration.
5894
5895 2017-10-03 Tom Tromey <tom@tromey.com>
5896
5897 * utils.c (internal_vproblem): Use std::string.
5898 (defaulted_query): Likewise.
5899
5900 2017-10-03 Tom Tromey <tom@tromey.com>
5901
5902 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Update.
5903 * top.c (execute_command_to_string): Update.
5904 * utils.c (make_cleanup_restore_page_info): Remove.
5905 (do_restore_page_info_cleanup): Remove.
5906 (set_batch_flag_and_restore_page_info):
5907 New.
5908 (make_cleanup_restore_page_info): Remove.
5909 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
5910 (~set_batch_flag_and_restore_page_info): New
5911 (make_cleanup_restore_uinteger): Remove.
5912 (make_cleanup_restore_integer): Remove.
5913 (struct restore_integer_closure): Remove.
5914 (restore_integer): Remove.
5915 * utils.h (struct set_batch_flag_and_restore_page_info): New
5916 class.
5917 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
5918 (make_cleanup_restore_page_info): Remove.
5919 (make_cleanup_restore_uinteger) Remove.
5920 (make_cleanup_restore_integer) Remove.
5921
5922 2017-10-03 Tom Tromey <tom@tromey.com>
5923
5924 * record-full.h (record_full_gdb_operation_disable_set): Return
5925 scoped_restore_tmpl<int>.
5926 * infrun.c (adjust_pc_after_break): Update.
5927 (handle_signal_stop): Update.
5928 * record-full.c (record_full_gdb_operation_disable_set): Return
5929 scoped_restore_tmpl<int>.
5930 (record_full_wait_1, record_full_insert_breakpoint)
5931 (record_full_remove_breakpoint, record_full_save)
5932 (record_full_goto_insn): Update.
5933
5934 2017-10-02 Tom Tromey <tom@tromey.com>
5935
5936 PR rust/22236:
5937 * rust-lang.c (rust_val_print_str): New function.
5938 (val_print_struct): Call it.
5939 (rust_subscript): Preserve name of slice type.
5940
5941 2017-10-02 Tom Tromey <tom@tromey.com>
5942
5943 * rust-lang.c (rust_subscript): Handle slices in
5944 EVAL_AVOID_SIDE_EFFECTS case.
5945
5946 2017-10-02 Tom Tromey <tom@tromey.com>
5947
5948 * rust-lang.c (rust_slice_type_p): Recognize &str as a slice type.
5949
5950 2017-10-02 Tom Tromey <tom@tromey.com>
5951
5952 * rust-lang.h (rust_slice_type): Add "extern".
5953
5954 2017-10-02 Tom Tromey <tom@tromey.com>
5955 Pedro Alves <palves@redhat.com>
5956
5957 * ada-lang.h (ada_exc_info::operator<): Make const.
5958 (ada_exc_info::operator==): Make const.
5959 * ada-lang.c (ada_exc_info::operator<, ada_exc_info::operator==):
5960 Make const.
5961
5962 2017-09-29 Tom Tromey <tom@tromey.com>
5963
5964 * target.c (read_whatever_is_readable): Change type of "result".
5965 Update.
5966 (free_memory_read_result_vector): Remove.
5967 (read_memory_robust): Change return type. Update.
5968 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update. Use
5969 bin2hex, std::string.
5970 * target.h (memory_read_result_s): Remove typedef.
5971 (free_memory_read_result_vector): Remove.
5972 (read_memory_robust): Return std::vector.
5973
5974 2017-09-29 Tom Tromey <tom@tromey.com>
5975
5976 * mi/mi-main.c (captured_mi_execute_command): Use scope_restore.
5977
5978 2017-09-29 Tom Tromey <tom@tromey.com>
5979
5980 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Update.
5981 * ada-lang.h (struct ada_exc_info): Remove typedef. Declare
5982 operator< and operator==.
5983 (ada_exceptions_list): Return a std::vector.
5984 * ada-lang.c (ada_exc_info::operator<): Rename from
5985 compare_ada_exception_info.
5986 (ada_exc_info::operator==): New.
5987 (sort_remove_dups_ada_exceptions_list): Change type of
5988 "exceptions".
5989 (ada_add_standard_exceptions, ada_add_exceptions_from_frame)
5990 (ada_add_global_exceptions): Likewise.
5991 (ada_exceptions_list_1): Return a std::vector.
5992 (ada_exceptions_list): Likewise.
5993
5994 2017-09-29 Tom Tromey <tom@tromey.com>
5995
5996 * mi/mi-main.c (struct print_one_inferior_data) <inferiors>: Now a
5997 'std::set *'.
5998 (print_one_inferior): Update.
5999 (free_vector_of_ints): Remove.
6000 (list_available_thread_groups): Change "ids" to std::set.
6001 (mi_cmd_list_thread_groups): Update.
6002 (struct collect_cores_data) <core>: Now a std::set.
6003 (collect_cores): Update.
6004 (unique): Remove.
6005 (print_one_inferior): Update.
6006
6007 2017-09-29 Tom Tromey <tom@tromey.com>
6008
6009 * mi/mi-main.c (mi_execute_cli_command): Use std::string.
6010 (mi_execute_async_cli_command): Likewise.
6011 (mi_cmd_trace_frame_collected): Use field_fmt.
6012
6013 2017-09-29 Tom Tromey <tom@tromey.com>
6014
6015 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Use
6016 gdb::byte_vector.
6017
6018 2017-09-29 Tom Tromey <tom@tromey.com>
6019
6020 * mi/mi-parse.c (mi_parse): Remove unused declaration.
6021
6022 2017-09-29 Tom Tromey <tom@tromey.com>
6023
6024 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Don't copy "oarg".
6025
6026 2017-09-29 Tom Tromey <tom@tromey.com>
6027
6028 * varobj.h (varobj_gen_name): Return std::string.
6029 * varobj.c (varobj_gen_name): Return std::string.
6030 * mi/mi-cmd-var.c (mi_cmd_var_create): Use std::string.
6031 (mi_cmd_var_delete): Don't copy "name".
6032
6033 2017-09-29 Tom Tromey <tom@tromey.com>
6034
6035 * mi/mi-cmd-break.c (mi_argv_to_format): Return std::string.
6036 (mi_cmd_break_insert_1): Update.
6037
6038 2017-09-29 Tom Tromey <tom@tromey.com>
6039
6040 * target.h (make_scoped_defer_target_commit_resume): Update.
6041 * target.c (make_scoped_defer_target_commit_resume): Rename from
6042 make_cleanup_defer_target_commit_resume. Return a
6043 scoped_restore.
6044 * infrun.c (proceed): Use make_scoped_defer_target_commit_resume.
6045
6046 2017-09-29 Tom Tromey <tom@tromey.com>
6047
6048 * main.c (captured_main_1): Remove unused declaration.
6049 * spu-multiarch.c (parse_spufs_run): Remove unused declaration.
6050
6051 2017-09-29 Tom Tromey <tom@tromey.com>
6052
6053 * symtab.c (search_symbols): Remove unused outer cleanup.
6054 (make_source_files_completion_list): Remove unused declaration.
6055
6056 2017-09-29 Tom Tromey <tom@tromey.com>
6057
6058 * mt-tdep.c (mt_push_dummy_call): Use gdb::byte_vector.
6059
6060 2017-09-29 Tom Tromey <tom@tromey.com>
6061
6062 * xstormy16-tdep.c (xstormy16_push_dummy_call): Use
6063 gdb::byte_vector.
6064
6065 2017-09-29 Tom Tromey <tom@tromey.com>
6066
6067 * complaints.c (vcomplaint): Use std::string.
6068
6069 2017-09-29 Tom Tromey <tom@tromey.com>
6070
6071 * tracepoint.c (trace_variable_command): Use std::string.
6072 (encode_actions_1): Remove unused declarations.
6073 (create_tsv_from_upload): Use std::string.
6074
6075 2017-09-29 Tom Tromey <tom@tromey.com>
6076
6077 * cp-support.c (gdb_demangle): Use std::string.
6078
6079 2017-09-29 Tom Tromey <tom@tromey.com>
6080
6081 * stack.c (parse_frame_specification): Use std::string
6082 (info_frame_command): Use gdb::unique_xmalloc_ptr.
6083
6084 2017-09-29 Tom Tromey <tom@tromey.com>
6085
6086 * tilegx-tdep.c (tilegx_push_dummy_call): Use gdb::byte_vector.
6087
6088 2017-09-29 Tom Tromey <tom@tromey.com>
6089
6090 * utils.c (vfprintf_maybe_filtered): Use std::string.
6091 (vfprintf_unfiltered): Likewise.
6092
6093 2017-09-29 Tom Tromey <tom@tromey.com>
6094
6095 * event-top.c (top_level_prompt): Return std::string.
6096 (display_gdb_prompt): Update.
6097
6098 2017-09-29 Tom Tromey <tom@tromey.com>
6099
6100 * unittests/common-utils-selftests.c (format): New function.
6101 (string_vprintf_tests): New function.
6102 (_initialize_common_utils_selftests): Register new tests.
6103 * common/common-utils.c (string_vprintf): New function.
6104 * common/common-utils.h (string_vprintf): Declare.
6105
6106 2017-09-29 Pedro Alves <palves@redhat.com>
6107
6108 * common/rsp-low.c (unpack_varlen_hex): Constify.
6109 * common/rsp-low.h (unpack_varlen_hex): Constify.
6110 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
6111 Constify.
6112 * remote.c (remote_set_permissions, read_ptid)
6113 (remote_current_thread, remote_get_threads_with_qthreadinfo)
6114 (remote_static_tracepoint_marker_at)
6115 (remote_static_tracepoint_markers_by_strid)
6116 (stop_reply_extract_thread, remote_parse_stop_reply): Constify.
6117 * tracepoint.c (parse_trace_status, parse_tracepoint_status)
6118 (parse_tracepoint_definition, parse_tsv_definition)
6119 (parse_static_tracepoint_marker_definition): Constify.
6120 * tracepoint.h (parse_static_tracepoint_marker_definition)
6121 (parse_trace_status, parse_tracepoint_status)
6122 (parse_tracepoint_definition, parse_tsv_definition): Constify.
6123
6124 2017-09-29 Pedro Alves <palves@redhat.com>
6125
6126 * remote.c (target_buf, target_buf_size): Delete.
6127 (remote_get_noisy_reply): Remove buf_p and sizeof_buf parameters.
6128 Use the connection's packet buffer instead.
6129 All callers adjusted.
6130 (_initialize_remote): Remove references to target_buf and
6131 target_buf_size.
6132
6133 2017-09-28 Pedro Alves <palves@redhat.com>
6134
6135 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
6136 unittests/common-utils-selftests.c.
6137 (SUBDIR_UNITTESTS_OBS): Add common-utils-selftests.o.
6138 (COMMON_OBS): Remove utils-selftests.o.
6139 * utils-selftests.c: Move to ...
6140 * unittests/common-utils-selftests.c: ... here and rename self
6141 test to "string_printf".
6142
6143 2017-09-28 Alexander Shaposhnikov <alexander.v.shaposhnikov@gmail.com> (tiny patch)
6144
6145 * dwarf2read.c (open_and_init_dwp_file): Protect against dwp_file
6146 having NULL cus or tus.
6147
6148 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
6149
6150 * arm-tdep.c: (convert_from_extended): Remove.
6151 (convert_to_extended): Likewise.
6152 (arm_extract_return_value): Use convert_typed_floating.
6153 (arm_store_return_value): Likewise.
6154
6155 * sh-tdep.h (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
6156 * sh-tdep.c: Do not include "floatformat.h".
6157 (sh_littlebyte_bigword_type): New function.
6158 (sh_register_convert_to_virtual): Use convert_typed_floating.
6159 (sh_register_convert_to_raw): Likewise.
6160 * sh64-tdep.c: (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
6161 (sh64_littlebyte_bigword_type): New function.
6162 (sh64_extract_return_value): Use convert_typed_floating.
6163 (sh64_register_convert_to_virtual): Likewise.
6164 (sh64_register_convert_to_raw): Likewise.
6165
6166 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
6167
6168 * doublest.h (floatformat_from_type): Move to gdbtypes.h.
6169 * doublest.c (floatformat_from_type): Move to gdbtypes.c.
6170
6171 * gdbtypes.h (union type_specific): Make field floatformat hold
6172 just a single struct floatformat, not an array.
6173 (floatformat_from_type): Move here.
6174 * gdbtypes.c (floatformat_from_type): Move here. Update to
6175 changed TYPE_FLOATFORMAT definition.
6176 (verify_floatformat): Update to changed TYPE_FLOATFORMAT.
6177 (recursive_dump_type): Likewise.
6178 (init_float_type): Install correct floatformat for byte order.
6179 (arch_float_type): Likewise.
6180
6181 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
6182
6183 * gdbtypes.c (init_type): Change incoming argument from
6184 length-in-bytes to length-in-bits. Assert length is a
6185 multiple of TARGET_CHAR_BITS.
6186 (arch_type, arch_flags_type): Likewise.
6187 (init_integer_type): Update call to init_type.
6188 (init_character_type): Likewise.
6189 (init_boolean_type): Likewise.
6190 (init_float_type): Likewise.
6191 (init_decfloat_type): Likewise.
6192 (init_complex_type): Likewise.
6193 (init_pointer_type): Likewise.
6194 (objfile_type): Likewise.
6195 (arch_integer_type): Update call to arch_type.
6196 (arch_character_type): Likewise.
6197 (arch_boolean_type): Likewise.
6198 (arch_float_type): Likewise.
6199 (arch_decfloat_type): Likewise.
6200 (arch_complex_type): Likewise.
6201 (arch_pointer_type): Likewise.
6202 (gdbtypes_post_init): Likewise.
6203
6204 * dwarf2read.c (dwarf2_init_float_type): Update call to init_type.
6205 (read_base_type): Likewise.
6206 * mdebugread.c (basic_type): Likewise.
6207 * stabsread.c (dbx_init_float_type): Likewise.
6208 (rs6000_builtin_type): Likewise.
6209 (read_range_type): Likewise. Also, fix call to init_integer_type
6210 with erroneous length argument.
6211
6212 * ada-lang.c (ada_language_arch_info): Update call to arch_type.
6213 * d-lang.c (build_d_types): Likewise.
6214 * f-lang.c (build_fortran_types): Likewise.
6215 * go-lang.c (build_go_types): Likewise.
6216 * opencl-lang.c (build_opencl_types): Likewise.
6217 * jit.c (finalize_symtab): Likewise.
6218 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
6219 (build_std_type_info_type): Likewise.
6220 * target-descriptions.c (tdesc_gdb_type): Likewise. Also,
6221 update call to arch_flags_type.
6222
6223 * linux-tdep.c (linux_get_siginfo_type_with_fields): Update call to
6224 arch_type.
6225 * fbsd-tdep.c (fbsd_get_siginfo_type): Likewise.
6226 * windows-tdep.c (windows_get_tlb_type): Likewise.
6227
6228 * avr-tdep.c (avr_gdbarch_init): Update call to arch_type.
6229 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
6230 * m32c-tdep.c (make_types): Likewise.
6231 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
6232 (rl78_psw_type): Update call to arch_flags_type.
6233 * m68k-tdep.c (m68k_ps_type): Update call to arch_flags_type.
6234 * rx-tdep.c (rx_psw_type): Likewise.
6235 (rx_fpsw_type): Likewise.
6236 * sparc-tdep.c (sparc_psr_type): Likewise.
6237 (sparc_fsr_type): Likewise.
6238 * sparc64-tdep.c (sparc64_pstate_type): Likewise.
6239 (sparc64_ccr_type): Likewise.
6240 (sparc64_fsr_type): Likewise.
6241 (sparc64_fprs_type): Likewise.
6242
6243 2017-09-27 Tom Tromey <tom@tromey.com>
6244
6245 * findcmd.c (find_command): Constify.
6246
6247 2017-09-27 Tom Tromey <tom@tromey.com>
6248
6249 * ada-tasks.c (task_command_1, task_command): Constify.
6250
6251 2017-09-27 Tom Tromey <tom@tromey.com>
6252
6253 * symtab.c (maintenance_print_symbol_cache)
6254 (maintenance_flush_symbol_cache)
6255 (maintenance_print_symbol_cache_statistics): Constify.
6256
6257 2017-09-27 Tom Tromey <tom@tromey.com>
6258
6259 * inferior.c (detach_inferior_command, kill_inferior_command)
6260 (inferior_command): Constify.
6261
6262 2017-09-27 Tom Tromey <tom@tromey.com>
6263
6264 * regcache.c (regcache_print, maintenance_print_registers)
6265 (maintenance_print_raw_registers)
6266 (maintenance_print_cooked_registers)
6267 (maintenance_print_register_groups)
6268 (maintenance_print_remote_registers): Constify.
6269
6270 2017-09-27 Tom Tromey <tom@tromey.com>
6271
6272 * printcmd.c (map_display_numbers, undisplay_command)
6273 (enable_disable_display_command, enable_display_command)
6274 (disable_display_command): Constify.
6275
6276 2017-09-27 Tom Tromey <tom@tromey.com>
6277
6278 * breakpoint.h (delete_command): Don't declare.
6279 * breakpoint.c (delete_command, enable_once_command)
6280 (enable_count_command, enable_delete_command, breakpoint_1)
6281 (maintenance_info_breakpoints, stopin_command, stopat_command)
6282 (delete_command, delete_trace_command, save_breakpoints)
6283 (save_breakpoints_command, save_tracepoints_command): Constify.
6284
6285 2017-09-27 Tom Tromey <tom@tromey.com>
6286
6287 * macrocmd.c (macro_expand_command, macro_expand_once_command)
6288 (skip_ws, extract_identifier, macro_define_command)
6289 (macro_undef_command, macro_list_command): Constify.
6290
6291 2017-09-27 Tom Tromey <tom@tromey.com>
6292
6293 * infcmd.c (environment_info, set_environment_command)
6294 (unset_environment_command, path_info, info_proc_cmd_1)
6295 (info_proc_cmd_mappings, info_proc_cmd_stat)
6296 (info_proc_cmd_status, info_proc_cmd_cwd, info_proc_cmd_cmdline)
6297 (info_proc_cmd_exe, info_proc_cmd_all): Constify.
6298
6299 2017-09-27 Tom Tromey <tom@tromey.com>
6300
6301 * i386-tdep.c (i386_mpx_info_bounds, i386_mpx_set_bounds):
6302 Constify.
6303
6304 2017-09-27 Tom Tromey <tom@tromey.com>
6305
6306 * symfile-mem.c (add_symbol_file_from_memory_command): Constify.
6307
6308 2017-09-27 Tom Tromey <tom@tromey.com>
6309
6310 * demangle.c (demangle_command): Constify.
6311
6312 2017-09-27 Tom Tromey <tom@tromey.com>
6313
6314 * progspace.c (maintenance_info_program_spaces_command):
6315 Constify.
6316
6317 2017-09-27 Tom Tromey <tom@tromey.com>
6318
6319 * compile/compile.c (check_raw_argument, compile_file_command)
6320 (compile_code_command, compile_print_command): Constify.
6321
6322 2017-09-27 Tom Tromey <tom@tromey.com>
6323
6324 * reggroups.c (maintenance_print_reggroups): Constify.
6325
6326 2017-09-27 Tom Tromey <tom@tromey.com>
6327
6328 * dwarf2read.c (save_gdb_index_command): Constify.
6329
6330 2017-09-27 Tom Tromey <tom@tromey.com>
6331
6332 * stap-probe.c (info_probes_stap_command): Constify.
6333
6334 2017-09-27 Tom Tromey <tom@tromey.com>
6335
6336 * fork-child.c (unset_exec_wrapper_command): Constify.
6337
6338 2017-09-27 Tom Tromey <tom@tromey.com>
6339
6340 * btrace.c (get_uint, get_context_size, no_chunk)
6341 (maint_btrace_packet_history_cmd)
6342 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
6343 (maint_info_btrace_cmd): Constify.
6344
6345 2017-09-27 Tom Tromey <tom@tromey.com>
6346
6347 * reverse.c (delete_bookmark_command): Constify.
6348
6349 2017-09-27 Tom Tromey <tom@tromey.com>
6350
6351 * remote.c (set_memory_packet_size)
6352 (set_memory_write_packet_size, show_memory_write_packet_size)
6353 (set_memory_read_packet_size, show_memory_read_packet_size)
6354 (compare_sections_command, packet_command, remote_put_command)
6355 (remote_get_command, remote_delete_command): Constify.
6356
6357 2017-09-27 Tom Tromey <tom@tromey.com>
6358
6359 * mips-tdep.c (show_mipsfpu_command, set_mipsfpu_single_command)
6360 (set_mipsfpu_double_command, set_mipsfpu_none_command)
6361 (set_mipsfpu_auto_command): Constify.
6362
6363 2017-09-27 Tom Tromey <tom@tromey.com>
6364
6365 * cli/cli-cmds.h (cd_command): Constify.
6366 * cli/cli-cmds.c (cd_command): Constify.
6367
6368 2017-09-27 Tom Tromey <tom@tromey.com>
6369
6370 * thread.c (thread_name_command, thread_find_command): Constify.
6371
6372 2017-09-27 Tom Tromey <tom@tromey.com>
6373
6374 * probe.c (enable_probes_command, disable_probes_command):
6375 Constify.
6376
6377 2017-09-27 Tom Tromey <tom@tromey.com>
6378
6379 * symfile.c (symbol_file_command): Constify.
6380 * gdbcore.h (deprecated_file_changed_hook): Constify.
6381 * exec.c (deprecated_file_changed_hook, exec_file_command)
6382 (file_command): Constify.
6383 * defs.h (symbol_file_command): Constify.
6384
6385 2017-09-27 Tom Tromey <tom@tromey.com>
6386
6387 * remote-fileio.c (set_system_call_allowed)
6388 (show_system_call_allowed): Constify.
6389
6390 2017-09-27 Tom Tromey <tom@tromey.com>
6391
6392 * tracepoint.c (delete_trace_variable_command)
6393 (tfind_end_command, tfind_start_command, tfind_pc_command)
6394 (tfind_tracepoint_command, tfind_line_command)
6395 (tfind_range_command, tfind_outside_command): Constify.
6396
6397 2017-09-27 Tom Tromey <tom@tromey.com>
6398
6399 * ax-gdb.c (maint_agent_printf_command, agent_command)
6400 (agent_eval_command): Constify.
6401
6402 2017-09-27 Tom Tromey <tom@tromey.com>
6403
6404 * tracepoint.c (info_scope_command): Constify.
6405 * python/python.c (gdbpy_decode_line): Constify.
6406 * python/py-breakpoint.c (bppy_init): Constify.
6407 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Constify.
6408 * location.h: (new_linespec_location)
6409 (string_to_event_location_basic, string_to_event_location):
6410 Constify.
6411 * location.c (new_linespec_location)
6412 (string_to_event_location_basic, string_to_event_location):
6413 Constify.
6414 * linespec.h (decode_line_with_current_source)
6415 (decode_line_with_last_displayed, linespec_lex_to_end): Constify.
6416 * linespec.c (linespec_lex_to_end)
6417 (decode_line_with_current_source)
6418 (decode_line_with_last_displayed): Constify.
6419 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x):
6420 Constify.
6421 * cli/cli-cmds.c (edit_command, list_command): Constify.
6422 * breakpoint.h (until_break_command, watch_command_wrapper)
6423 (awatch_command_wrapper, rwatch_command_wrapper)
6424 (init_ada_exception_breakpoint): Constify.
6425 * breakpoint.c (break_command_1, dprintf_command)
6426 (break_range_command, watch_command_wrapper)
6427 (rwatch_command_wrapper, awatch_command_wrapper)
6428 (until_break_command, init_ada_exception_breakpoint)
6429 (strace_marker_create_sals_from_location, trace_command)
6430 (ftrace_command, strace_command, struct tracepoint): Constify.
6431 * ax-gdb.c (agent_command_1): Constify.
6432 * ada-lang.c (ada_exception_sal): Constify.
6433
6434 2017-09-27 Tom Tromey <tom@tromey.com>
6435
6436 * record.c (cmd_record_delete, cmd_record_stop, cmd_record_save)
6437 (cmd_record_goto_begin, cmd_record_goto_end, get_insn_number)
6438 (get_context_size, no_chunk, get_insn_history_modifiers)
6439 (cmd_record_insn_history, get_call_history_modifiers)
6440 (cmd_record_call_history): Constify.
6441
6442 2017-09-27 Tom Tromey <tom@tromey.com>
6443
6444 * source.c (show_substitute_path_command)
6445 (unset_substitute_path_command, set_substitute_path_command):
6446 Constify.
6447
6448 2017-09-27 Tom Tromey <tom@tromey.com>
6449
6450 * typeprint.c (maintenance_print_type): Constify.
6451 * maint.c (maintenance_dump_me, maintenance_demangle)
6452 (maintenance_time_display, maintenance_info_sections)
6453 (maintenance_print_statistics, maintenance_deprecate)
6454 (maintenance_undeprecate): Constify.
6455 (maintenance_do_deprecate): Constify. Use std::string.
6456 (maintenance_selftest): Constify.
6457 * gdbtypes.h (maintenance_print_type): Constify.
6458
6459 2017-09-27 Tom Tromey <tom@tromey.com>
6460
6461 * hppa-tdep.c (unwind_command): Constify.
6462
6463 2017-09-27 Tom Tromey <tom@tromey.com>
6464
6465 * target-descriptions.c (unset_tdesc_filename_cmd)
6466 (maint_print_c_tdesc_cmd, maintenance_check_xml_descriptions):
6467 Constify.
6468
6469 2017-09-27 Tom Tromey <tom@tromey.com>
6470
6471 * dummy-frame.c (maintenance_print_dummy_frames): Constify.
6472
6473 2017-09-27 Tom Tromey <tom@tromey.com>
6474
6475 * tui/tui.c (tui_enable_command, tui_disable_command): Constify.
6476
6477 2017-09-27 Tom Tromey <tom@tromey.com>
6478
6479 * tui/tui-regs.c (tui_reg_command): Constify.
6480
6481 2017-09-27 Tom Tromey <tom@tromey.com>
6482
6483 * skip.c (skip_file_command, skip_function_command)
6484 (skip_enable_command, skip_disable_command, skip_delete_command):
6485 Constify.
6486
6487 2017-09-27 Tom Tromey <tom@tromey.com>
6488
6489 * record-btrace.c (cmd_record_btrace_bts_start)
6490 (cmd_record_btrace_pt_start): Constify.
6491
6492 2017-09-27 Tom Tromey <tom@tromey.com>
6493
6494 * symmisc.c (maintenance_print_symbols)
6495 (maintenance_print_msymbols, maintenance_print_objfiles)
6496 (maintenance_info_symtabs, maintenance_check_symtabs)
6497 (maintenance_expand_symtabs, maintenance_info_line_tables):
6498 Constify.
6499
6500 2017-09-27 Tom Tromey <tom@tromey.com>
6501
6502 * top.c (new_ui_command): Constify.
6503
6504 2017-09-27 Tom Tromey <tom@tromey.com>
6505
6506 * symfile.c (add_symbol_file_command)
6507 (remove_symbol_file_command, list_overlays_command)
6508 (map_overlay_command, unmap_overlay_command)
6509 (overlay_auto_command, overlay_manual_command)
6510 (overlay_off_command, overlay_load_command): Constify.
6511
6512 2017-09-27 Tom Tromey <tom@tromey.com>
6513
6514 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
6515 (info_spu_mailbox_command, info_spu_dma_command)
6516 (info_spu_proxydma_command): Constify.
6517
6518 2017-09-27 Tom Tromey <tom@tromey.com>
6519
6520 * cli/cli-logging.c (set_logging_on, set_logging_off): Constify.
6521
6522 2017-09-27 Tom Tromey <tom@tromey.com>
6523
6524 * cli/cli-script.c (user_defined_command): Constify.
6525
6526 2017-09-27 Tom Tromey <tom@tromey.com>
6527
6528 * cli/cli-dump.c (dump_memory_command, dump_value_command)
6529 (dump_srec_memory, dump_srec_value, dump_ihex_memory)
6530 (dump_ihex_value, dump_verilog_memory, dump_verilog_value)
6531 (dump_tekhex_memory, dump_tekhex_value, dump_binary_memory)
6532 (dump_binary_value, append_binary_memory, append_binary_value):
6533 Constify.
6534 (struct dump_context) <func>: Constify.
6535 (add_dump_command): Update.
6536
6537 2017-09-27 Tom Tromey <tom@tromey.com>
6538
6539 * cli/cli-cmds.c (show_version, show_configuration)
6540 (source_command, show_user): Constify.
6541
6542 2017-09-27 Tom Tromey <tom@tromey.com>
6543
6544 * target.c (maintenance_print_target_stack): Constify.
6545
6546 2017-09-27 Tom Tromey <tom@tromey.com>
6547
6548 * interps.c (interpreter_exec_cmd): Constify.
6549
6550 2017-09-27 Tom Tromey <tom@tromey.com>
6551
6552 * record-full.c (cmd_record_full_restore): Constify.
6553
6554 2017-09-27 Tom Tromey <tom@tromey.com>
6555
6556 * memattr.c (enable_mem_command, disable_mem_command)
6557 (delete_mem_command): Constify.
6558
6559 2017-09-27 Tom Tromey <tom@tromey.com>
6560
6561 * value.c (show_convenience): Constify.
6562
6563 2017-09-27 Tom Tromey <tom@tromey.com>
6564
6565 * gdbcore.h (core_file_command): Update.
6566 * corefile.c (core_file_command): Constify.
6567
6568 2017-09-27 Tom Tromey <tom@tromey.com>
6569
6570 * user-regs.c (maintenance_print_user_registers): Constify.
6571
6572 2017-09-27 Tom Tromey <tom@tromey.com>
6573
6574 * cp-namespace.c (maintenance_cplus_namespace): Constify.
6575
6576 2017-09-27 Tom Tromey <tom@tromey.com>
6577
6578 * cp-support.c (first_component_command): Constify.
6579
6580 2017-09-27 Tom Tromey <tom@tromey.com>
6581
6582 * psymtab.c (maintenance_print_psymbols)
6583 (maintenance_info_psymtabs, maintenance_check_psymtabs):
6584 Constify.
6585
6586 2017-09-27 Tom Tromey <tom@tromey.com>
6587
6588 * windows-tdep.c (display_tib): Constify.
6589
6590 2017-09-27 Tom Tromey <tom@tromey.com>
6591
6592 * linux-fork.c (delete_checkpoint_command)
6593 (detach_checkpoint_command): Constify.
6594
6595 2017-09-27 Tom Tromey <tom@tromey.com>
6596
6597 * cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify.
6598
6599 2017-09-27 Tom Tromey <tom@tromey.com>
6600
6601 * arc-tdep.c (dump_arc_instruction_command): Constify.
6602
6603 2017-09-27 Tom Tromey <tom@tromey.com>
6604
6605 * valprint.c (set_radix, show_radix): Constify.
6606
6607 2017-09-27 Tom Tromey <tom@tromey.com>
6608
6609 * dtrace-probe.c (info_probes_dtrace_command): Constify.
6610
6611 2017-09-27 Tom Tromey <tom@tromey.com>
6612
6613 * command.h (not_just_help_class_command): Update.
6614 * cli/cli-decode.h (not_just_help_class_command): Update.
6615 * cli/cli-decode.c (not_just_help_class_command): Constify.
6616
6617 2017-09-27 Tom Tromey <tom@tromey.com>
6618
6619 * gdb_bfd.c (maintenance_info_bfds): Constify.
6620
6621 2017-09-27 Tom Tromey <tom@tromey.com>
6622
6623 * cli/cli-decode.c (add_cmd, set_cmd_cfunc): New function
6624 overloads.
6625 (do_add_cmd): Rename from add_cmd. Don't call set_cmd_cfunc.
6626 (do_const_cfunc): New function.
6627 (cmd_cfunc_eq): New overload.
6628 (cli_user_command_p): Check do_const_cfunc.
6629 * cli/cli-decode.h (struct cmd_list_element) <function>: New field
6630 const_cfunc.
6631 * command.h (add_cmd): Add const overload and no-function
6632 overload.
6633 (set_cmd_cfunc): Add const overload.
6634 (cmd_const_cfunc_ftype): Declare.
6635 (cmd_cfunc_eq): Add const overload.
6636 * breakpoint.c, cli-cmds.c, cli-dump.c, guile/scm-cmd.c,
6637 python/py-cmd.c, target.c, tracepoint.c: Use no-function add_cmd
6638 overload.
6639
6640 2017-09-27 Tom Tromey <tom@tromey.com>
6641
6642 * macroexp.c (get_next_token_for_substitution): New function.
6643 (substitute_args): Call it. Check for __VA_OPT__.
6644
6645 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
6646 Pedro Alves <palves@redhat.com>
6647
6648 * dwarf2read.c (dwarf2_cu): Remove field producer_is_icc and add
6649 producer_is_icc_lt_14.
6650 (producer_is_icc_lt_14): New function.
6651 (check_producer): Add code for checking version of ICC.
6652 (producer_is_icc): Move to producer.c.
6653 (read_structure_type): Restrict ICC workaround to ICC<14.
6654 * producer.c: Include selftest.h.
6655 (producer_is_icc, producer_parsing_tests, _initialize_producer):
6656 New functions.
6657 * producer.h (producer_is_icc): New declaration.
6658
6659 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
6660
6661 * Makefile.in (SFILES): Add producer.c.
6662 (COMMON_OBS): Add producer.o
6663 * amd64-tdep.c (producer.h): Add new include.
6664 * dwarf2read.c (producer.h): Add new include.
6665 * producer.c: New file.
6666 * producer.h: New file.
6667 * utils.c (producer_is_gcc, producer_is_gcc_ge_4): Move to
6668 producer.c.
6669 * utils.h (producer_is_gcc, producer_is_gcc_ge_4): Move to
6670 producer.h.
6671
6672 2017-09-26 Matthias Klose <doko@ubuntu.com>
6673
6674 * configure.ac: Search ncursesw before ncurses.
6675 Check ncursesw/ncurses.h before ncurses/ncurses.h.
6676 * gdb_curses.h: Include <ncursesw/ncurses.h>
6677 * config.in, configure: Regenerate.
6678
6679 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6680
6681 PR gdb/22185
6682 * configure.host <*-*-solaris2.[01], *-*-solaris2.[2-9]*>: Mark as
6683 obsolete.
6684 Use gdb_host sol2 for i[34567]86-*-solaris2*, x86_64-*-solaris2*.
6685 Remove i386sol2 support.
6686 * configure.nat <i386sol2>: Remove.
6687 <sol2-64>: Fold into ...
6688 <sol2>: ... this.
6689 Move common settings to default section.
6690 Add sol-thread.o.
6691 * configure.tgt <i[34567]86-*-solaris2.1[0-9]*,
6692 x86_64-*-solaris2.1[0-9]*>: Rename to ...
6693 <i[34567]86-*-solaris2*, x86_64-*-solaris2*>: ... this.
6694 <i[34567]86-*-solaris*>: Remove.
6695 <sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*>: Remove.
6696
6697 * configure.ac: Remove wctype in libw check.
6698 (_MSE_INT_H): Don't define on Solaris 7-9.
6699 <solaris*>: Remove libthread_db.so.1 check.
6700 * configure: Regenerate.
6701 * config.in: Regenerate.
6702
6703 * proc-service.c: Remove PROC_SERVICE_IS_OLD handling.
6704 (gdb_ps_prochandle_t, gdb_ps_read_buf_t, gdb_ps_write_buf_t)
6705 (gdb_ps_size_t): Remove.
6706 Use base types in users.
6707 * sol-thread.c: Likewise, also for gdb_ps_addr_t.
6708
6709 * NEWS (Changes since GDB 8.0): Document Solaris 2.0-9 removal.
6710
6711 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6712
6713 PR build/22206
6714 * sparc64-tdep.c (adi_tag_fd): Print pid as long.
6715 (adi_is_addr_mapped): Likewise.
6716 (PSR_ICC): Don't redefine.
6717 (PSR_IMPL): Likewise.
6718
6719 2017-09-25 Tom Tromey <tom@tromey.com>
6720
6721 * regcache.c (regcache::dump): Use string_printf.
6722
6723 2017-09-25 Tom Tromey <tom@tromey.com>
6724
6725 * regcache.c (class regcache_invalidator): New.
6726 (struct register_to_invalidate): Remove.
6727 (make_cleanup_regcache_invalidate): Remove.
6728 (regcache::raw_write): Use regcache_invalidator.
6729
6730 2017-09-25 Tom Tromey <tom@tromey.com>
6731
6732 * spu-tdep.c (spu2ppu_sniffer): Update.
6733 * regcache.h (make_cleanup_regcache_xfree): Don't declare.
6734 * regcache.c (do_regcache_xfree, make_cleanup_regcache_xfree):
6735 Remove.
6736 * ppc-linux-tdep.c (ppu2spu_sniffer): Update.
6737 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Update.
6738 * frame.h (frame_save_as_regcache): Return std::unique_ptr.
6739 * frame.c (frame_save_as_regcache): Return std::unique_ptr.
6740 (frame_pop): Update.
6741
6742 2017-09-25 Tom Tromey <tom@tromey.com>
6743
6744 * spu-tdep.c (spu2ppu_dealloc_cache): Use delete.
6745 * regcache.h (regcache_xfree): Don't declare.
6746 * regcache.c (regcache_xfree): Remove.
6747 (do_regcache_xfree): Use delete.
6748 * ppc-linux-tdep.c (ppu2spu_dealloc_cache): Use delete.
6749 * linux-fork.c (free_fork): Use delete.
6750 (fork_save_infrun_state): Likewise.
6751 * jit.c (jit_dealloc_cache): Use delete.
6752 * infrun.c (discard_infcall_suspend_state): Use delete.
6753
6754 2017-09-25 Tom Tromey <tom@tromey.com>
6755
6756 * regcache.h (regcache_xmalloc): Don't declare.
6757 (regcache_raw_set_cached_value): Update comment.
6758 * regcache.c (regcache_xmalloc): Remove.
6759 * ppc-linux-tdep.c (ppu2spu_sniffer): Use new.
6760 * jit.c (jit_frame_sniffer): Use new.
6761 * frame.c (frame_save_as_regcache): Use new.
6762
6763 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6764
6765 * NEWS: Advertise support for guarded-storage registers on IBM z.
6766
6767 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6768
6769 * s390-linux-nat.c (have_regset_gs): New static variable.
6770 (s390_linux_fetch_inferior_registers): Handle guarded-storage
6771 control block and guarded-storage broadcast control regsets.
6772 (s390_read_description): Detect whether the target has
6773 guarded-storage support, return appropriate tdesc.
6774 * s390-linux-tdep.c (features/s390-gs-linux64.c): New include.
6775 (features/s390x-gs-linux64.c): Likewise.
6776 (struct gdbarch_tdep) <have_gs>: New field.
6777 (s390_regmap_gs, s390_regmap_gsbc, s390_gs_regset)
6778 (s390_gsbc_regset): New variables.
6779 (s390_iterate_over_regset_sections): Iterate over s390_gs_regset
6780 and s390_gsbc_regset, if applicable.
6781 (s390_core_read_description): Check whether core file was from a
6782 target with guarded-storage support; include appropriate regsets.
6783 (s390_gdbarch_init): Add registers for guarded-storage support.
6784 (_initialize_s390_tdep): Initialize new target descriptions that
6785 include registers for guarded-storage support.
6786 * s390-linux-tdep.h (HWCAP_S390_GS, S390_GSD_REGNUM)
6787 (S390_GSSM_REGNUM, S390_GSEPLA_REGNUM)
6788 (S390_BC_GSD_REGNUM, S390_BC_GSSM_REGNUM): New defines.
6789 (S390_NUM_REGS): Adjust macro definition.
6790 (s390_gs_regset, s390_gsbc_regset, tdesc_s390_gs_linux64)
6791 (tdesc_s390x_gs_linux64): New declarations.
6792
6793 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6794
6795 * features/s390-gs-linux64.xml: New file.
6796 * features/s390-gs.xml: New file.
6797 * features/s390-gsbc.xml: New file.
6798 * features/s390x-gs-linux64.xml: New file.
6799 * features/Makefile (WHICH): Add s390-gs-linux64 and
6800 s390x-gs-linux64.
6801 (s390-gs-linux64-expedite, s390x-gs-linux64-expedite): New macros.
6802 (XMLTOC): Add s390-gs-linux64.xml and s390x-linux64.xml.
6803 * features/s390-gs-linux64.c: New generated file.
6804 * features/s390x-gs-linux64.c: New file.
6805 * regformats/s390-gs-linux64.dat: New file.
6806 * regformats/s390x-gs-linux64.dat: New file.
6807
6808 2017-09-23 Tom Tromey <tom@tromey.com>
6809
6810 * defs.h (make_cleanup_override_quit_handler): Don't declare.
6811
6812 2017-09-22 Tom Tromey <tom@tromey.com>
6813
6814 * utils.c (class scoped_input_handler) <m_quit_handler>: Change
6815 type to scoped_restore_tmpl.
6816 <scoped_input_handler>: Initialize m_quit_handler directly.
6817
6818 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
6819
6820 * cli/cli-cmds.c (pwd_command): Use "getcwd (NULL, 0)".
6821 (cd_command): Likewise. Free "current_directory" before
6822 assigning to it.
6823 * main.c (captured_main_1): Use "getcwd (NULL, 0)".
6824 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Likewise.
6825 * top.c (gdb_dirbuf): Remove global declaration.
6826 * top.h (gdb_dirbuf): Likewise.
6827
6828 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
6829
6830 * gnulib/aclocal.m4: Regenerate.
6831 * gnulib/config.in: Regenerate.
6832 * gnulib/configure: Regenerate.
6833 * gnulib/import/Makefile.am: Regenerate.
6834 * gnulib/import/Makefile.in: Regenerate.
6835 * gnulib/import/assure.h: New file.
6836 * gnulib/import/at-func.c: Likewise
6837 * gnulib/import/chdir-long.c: New file.
6838 * gnulib/import/chdir-long.h: New file.
6839 * gnulib/import/cloexec.c: New file.
6840 * gnulib/import/cloexec.h: New file.
6841 * gnulib/import/close.c: New file.
6842 * gnulib/import/closedir.c: New file.
6843 * gnulib/import/dirent-private.h: New file.
6844 * gnulib/import/dup-safer.c: New file.
6845 * gnulib/import/dup.c: New file.
6846 * gnulib/import/dup2.c: New file.
6847 * gnulib/import/error.c: New file.
6848 * gnulib/import/error.h: New file.
6849 * gnulib/import/exitfail.c: New file.
6850 * gnulib/import/exitfail.h: New file.
6851 * gnulib/import/fchdir.c: New file.
6852 * gnulib/import/fcntl.c: New file.
6853 * gnulib/import/fcntl.in.h: New file.
6854 * gnulib/import/fd-hook.c: New file.
6855 * gnulib/import/fd-hook.h: New file.
6856 * gnulib/import/fd-safer.c: New file.
6857 * gnulib/import/fdopendir.c: New file.
6858 * gnulib/import/filename.h: New file.
6859 * gnulib/import/filenamecat-lgpl.c: New file.
6860 * gnulib/import/filenamecat.h: New file.
6861 * gnulib/import/fstat.c: New file.
6862 * gnulib/import/fstatat.c: New file.
6863 * gnulib/import/getcwd-lgpl.c: New file.
6864 * gnulib/import/getcwd.c: New file.
6865 * gnulib/import/getdtablesize.c: New file.
6866 * gnulib/import/getlogin_r.c: New file.
6867 * gnulib/import/getprogname.c: New file.
6868 * gnulib/import/getprogname.h: New file.
6869 * gnulib/import/gettext.h: New file.
6870 * gnulib/import/glob-libc.h: New file.
6871 * gnulib/import/glob.c: New file.
6872 * gnulib/import/glob.in.h: New file.
6873 * gnulib/import/intprops.h: New file.
6874 * gnulib/import/m4/chdir-long.m4: New file.
6875 * gnulib/import/m4/close.m4: New file.
6876 * gnulib/import/m4/closedir.m4: New file.
6877 * gnulib/import/m4/d-ino.m4: New file.
6878 * gnulib/import/m4/d-type.m4: New file.
6879 * gnulib/import/m4/dup.m4: New file.
6880 * gnulib/import/m4/dup2.m4: New file.
6881 * gnulib/import/m4/error.m4: New file.
6882 * gnulib/import/m4/fchdir.m4: New file.
6883 * gnulib/import/m4/fcntl.m4: New file.
6884 * gnulib/import/m4/fcntl_h.m4: New file.
6885 * gnulib/import/m4/fdopendir.m4: New file.
6886 * gnulib/import/m4/filenamecat.m4: New file.
6887 * gnulib/import/m4/fstat.m4: New file.
6888 * gnulib/import/m4/fstatat.m4: New file.
6889 * gnulib/import/m4/getcwd-abort-bug.m4: New file.
6890 * gnulib/import/m4/getcwd-path-max.m4: New file.
6891 * gnulib/import/m4/getcwd.m4: New file.
6892 * gnulib/import/m4/getdtablesize.m4: New file.
6893 * gnulib/import/m4/getlogin_r.m4: New file.
6894 * gnulib/import/m4/getprogname.m4: New file.
6895 * gnulib/import/m4/glob.m4: New file.
6896 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
6897 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
6898 * gnulib/import/m4/mempcpy.m4: New file.
6899 * gnulib/import/m4/memrchr.m4: New file.
6900 * gnulib/import/m4/mode_t.m4: New file.
6901 * gnulib/import/m4/msvc-inval.m4: New file.
6902 * gnulib/import/m4/msvc-nothrow.m4: New file.
6903 * gnulib/import/m4/open.m4: New file.
6904 * gnulib/import/m4/openat.m4: New file.
6905 * gnulib/import/m4/opendir.m4: New file.
6906 * gnulib/import/m4/readdir.m4: New file.
6907 * gnulib/import/m4/realloc.m4: New file.
6908 * gnulib/import/m4/rewinddir.m4: New file.
6909 * gnulib/import/m4/save-cwd.m4: New file.
6910 * gnulib/import/m4/strdup.m4: New file.
6911 * gnulib/import/m4/strerror.m4: New file.
6912 * gnulib/import/m4/unistd-safer.m4: New file.
6913 * gnulib/import/mempcpy.c: New file.
6914 * gnulib/import/memrchr.c: New file.
6915 * gnulib/import/msvc-inval.c: New file.
6916 * gnulib/import/msvc-inval.h: New file.
6917 * gnulib/import/msvc-nothrow.c: New file.
6918 * gnulib/import/msvc-nothrow.h: New file.
6919 * gnulib/import/open.c: New file.
6920 * gnulib/import/openat-die.c: New file.
6921 * gnulib/import/openat-priv.h: New file.
6922 * gnulib/import/openat-proc.c: New file.
6923 * gnulib/import/openat.c: New file.
6924 * gnulib/import/openat.h: New file.
6925 * gnulib/import/opendir.c: New file.
6926 * gnulib/import/pipe-safer.c: New file.
6927 * gnulib/import/readdir.c: New file.
6928 * gnulib/import/realloc.c: New file.
6929 * gnulib/import/rewinddir.c: New file.
6930 * gnulib/import/save-cwd.c: New file.
6931 * gnulib/import/save-cwd.h: New file.
6932 * gnulib/import/strdup.c: New file.
6933 * gnulib/import/strerror-override.c: New file.
6934 * gnulib/import/strerror-override.h: New file.
6935 * gnulib/import/strerror.c: New file.
6936 * gnulib/import/unistd--.h: New file.
6937 * gnulib/import/unistd-safer.h: New file.
6938 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
6939 "getcwd" and "glob".
6940 * ser-tcp.c: Undefine "close" before redefining it.
6941
6942 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
6943
6944 * guile/scm-value.c (gdbscm_value_address): Initialize address,
6945 get rid of res_val.
6946
6947 2017-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6948
6949 * configure.nat <i386sol2,i386>: Add fork-inferior.o to NATDEPFILES.
6950 <sol2,sparc>: Likewise.
6951 <sol2-64,i386>: Likewise.
6952
6953 * warning.m4 (AM_GDB_WARNINGS): Disable -Wunknown-pragmas,
6954 -Wdeprecated-declarations on *-*-solaris*.
6955 * configure: Regenerate.
6956
6957 * procfs.c: Include "nat/inferior.h".
6958 (procfs_info_proc): Fix typo.
6959
6960 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6961
6962 * remote.c (vector): Include.
6963 (struct private_thread_info): Add field, thread_handle.
6964 (free_private_thread_info): Deallocate storage associated with
6965 thread handle.
6966 (get_private_info_thread): Initialize `thread_handle' field.
6967 (struct thread_item): Add field, thread_handle.
6968 (clear_threads_listing_context): Deallocate storage associated
6969 with thread handle.
6970 (start_thread): Add support for "handle" attribute.
6971 (thread_attributes): Add "handle".
6972 (remote_get_threads_with_qthreadinfo): Initialize thread_handle
6973 field.
6974 (remote_update_thread_list): Update thread_handle.
6975 (remote_thread_handle_to_thread_info): New function.
6976 (init_remote_ops): Initialize to_thread_handle_to_thread_info.
6977
6978 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6979
6980 * python/py-inferior.c (gdbpy_thread_from_thread_handle): New
6981 function.
6982 (inferior_object_methods): Add gdbpy_thread_from_thread_handle.
6983 * python/python-internal.h (thread_object_type): Declare.
6984
6985 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6986
6987 * target.h (struct target_ops): Add to_thread_handle_to_thread_info.
6988 (target_thread_handle_to_thread_info): Declare.
6989 * target.c (target_thread_handle_to_thread_info): New function.
6990 * target-delegates.c: Regenerate.
6991 * gdbthread.h (find_thread_by_handle): Declare.
6992 * thread.c (find_thread_by_handle): New function.
6993 * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New
6994 function.
6995 (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info.
6996
6997 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
6998
6999 * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF.
7000
7001 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
7002
7003 * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF.
7004
7005 2017-09-21 Yao Qi <yao.qi@linaro.org>
7006
7007 * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o
7008 to gdb_target_obs.
7009
7010 2017-09-20 Tom Tromey <tom@tromey.com>
7011
7012 * breakpoint.c (struct counted_command_line): Remove.
7013 (breakpoint_commands): Update.
7014 (alloc_counted_command_line, incref_counted_command_line)
7015 (decref_counted_command_line, do_cleanup_counted_command_line)
7016 (make_cleanup_decref_counted_command_line): Remove.
7017 (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats)
7018 (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check)
7019 (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint)
7020 (save_breakpoints): Update.
7021 * breakpoint.h (counted_command_line): Now a typedef to
7022 shared_ptr.
7023 (struct breakpoint) <commands>: Now a counted_command_line.
7024 (struct bpstats) <command>: Likewise.
7025
7026 2017-09-20 Tom Tromey <tom@tromey.com>
7027
7028 * breakpoint.c (struct commands_info, do_map_commands_command):
7029 Remove.
7030 (commands_command_1): Update.
7031 (iterate_over_related_breakpoints): Take a function_view.
7032 (do_delete_breakpoint, do_map_delete_breakpoint): Remove.
7033 (delete_command): Update.
7034 (map_breakpoint_numbers): Take a function_view.
7035 (do_disable_breakpoint, do_map_delete_breakpoint): Remove.
7036 (disable_command): Update.
7037 (do_enable_breakpoint, do_map_enable_breakpoint): Remove.
7038 (enable_command): Update.
7039 (struct disp_data, do_enable_breakpoint_disp)
7040 (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint)
7041 (do_map_enable_delete_breakpoint): Remove.
7042 (enable_once_command, enable_count_command, enable_delete_command)
7043 (delete_trace_variable_command): Update.
7044
7045 2017-09-20 Tom Tromey <tom@tromey.com>
7046
7047 * breakpoint.c (~bpstats): Rename from bpstat_free. Update.
7048 (bpstat_clear): Use delete.
7049 (bpstats): New constructors.
7050 (bpstat_copy, bpstat_stop_status): Use new.
7051 (dprintf_after_condition_true): Update.
7052 * breakpoint.h (bpstats::bpstats): Add constructors.
7053 (bpstats::~bpstats): Add destructor.
7054
7055 2017-09-20 Pedro Alves <palves@redhat.com>
7056
7057 * eval.c (make_params): Delete, refactored as ...
7058 (class fake_method): ... this new type's ctor.
7059 (fake_method::~fake_method): New.
7060 (evaluate_subexp_standard): Use 'fake_method'.
7061
7062 2017-09-20 Tom Tromey <tom@tromey.com>
7063
7064 * windows-nat.c (get_windows_debug_event, windows_wait)
7065 (do_initial_windows_stuff, windows_attach): Update.
7066 * utils.c (vwarning, internal_vproblem): Update.
7067 (ui_unregister_input_event_handler_cleanup)
7068 (prepare_to_handle_input): Remove.
7069 (class scoped_input_handler): New.
7070 (defaulted_query, prompt_for_continue): Update.
7071 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
7072 Update.
7073 * top.c (undo_terminal_modifications_before_exit): Update.
7074 * target/target.h (target_terminal_init, target_terminal_inferior)
7075 (target_terminal_ours): Don't declare.
7076 (class target_terminal): New.
7077 * target.h (target_terminal_is_inferior, target_terminal_is_ours)
7078 (target_terminal_ours_for_output)
7079 (make_cleanup_restore_target_terminal): Don't declare.
7080 (target_terminal_info): Remove.
7081 * target.c (enum terminal_state, terminal_state): Remove.
7082 (target_terminal::terminal_state): Define.
7083 (target_terminal::init): Rename from target_terminal_init.
7084 (target_terminal::inferior): Rename from
7085 target_terminal_inferior.
7086 (target_terminal::ours): Rename from target_terminal_ours.
7087 (target_terminal::ours_for_output): Rename from
7088 target_terminal_ours_for_output.
7089 (target_terminal::info): New method.
7090 (cleanup_restore_target_terminal)
7091 (make_cleanup_restore_target_terminal): Remove.
7092 * solib.c (handle_solib_event): Update.
7093 * remote.c (remote_serial_quit_handler): Update.
7094 (remote_terminal_inferior, remote_wait_as): Update.
7095 * record-full.c (record_full_wait_1): Update.
7096 * nto-procfs.c (procfs_create_inferior): Update.
7097 * nat/fork-inferior.c (startup_inferior): Update.
7098 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
7099 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
7100 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
7101 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
7102 (mi_breakpoint_created, mi_breakpoint_deleted)
7103 (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded)
7104 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
7105 (mi_user_selected_context_changed, report_initial_inferior):
7106 Update.
7107 * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours)
7108 (linux_nat_terminal_inferior): Update.
7109 * infrun.c (follow_fork_inferior)
7110 (handle_vfork_child_exec_or_exit, do_target_resume)
7111 (check_curr_ui_sync_execution_done, handle_inferior_event_1)
7112 (handle_signal_stop, maybe_remove_breakpoints, normal_stop):
7113 Update.
7114 * inflow.c (child_terminal_init, info_terminal_command): Update.
7115 * infcmd.c (post_create_inferior, continue_1, prepare_one_step)
7116 (attach_command): Update.
7117 * infcall.c (call_thread_fsm_should_stop): Update.
7118 * gnu-nat.c (gnu_attach): Update.
7119 * extension.c (struct active_ext_lang_state)
7120 (restore_active_ext_lang): Update.
7121 * exceptions.c (print_flush): Update.
7122 * event-top.c (async_enable_stdin, default_quit_handler): Update.
7123 (struct quit_handler_cleanup_data, restore_quit_handler)
7124 (restore_quit_handler_dtor, make_cleanup_override_quit_handler):
7125 Remove.
7126 * cp-support.c (gdb_demangle): Update.
7127 * breakpoint.c (update_inserted_breakpoint_locations)
7128 (insert_breakpoint_locations, handle_jit_event)
7129 (disable_breakpoints_in_unloaded_shlib): Update.
7130 * annotate.c (annotate_breakpoints_invalid)
7131 (annotate_frames_invalid): Update.
7132
7133 2017-09-20 Tom Tromey <tom@tromey.com>
7134
7135 * main.c (catch_command_errors): Rename from
7136 catch_command_errors_const.
7137 (captured_main_1): Update.
7138
7139 2017-09-20 Pedro Alves <palves@redhat.com>
7140
7141 * cli/cli-cmds.c (list_command): Use print_sal_location.
7142 (print_sal_location): New function.
7143 (ambiguous_line_spec): Use print_sal_location.
7144 * linespec.c (symbol_to_sal): Record the symbol in the sal.
7145 * symtab.c (find_function_start_sal): Likewise.
7146 * symtab.h (symtab_and_line::symbol): New field.
7147
7148 2017-09-20 Pedro Alves <palves@redhat.com>
7149
7150 * linespec.c (minsym_found): Handle non-text minsyms.
7151 (symbol_to_sal): Record a sal.pc for non-block, non-label symbols.
7152
7153 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
7154
7155 * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing
7156 backslash.
7157
7158 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
7159
7160 * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use
7161 vmovups instead vmovaps.
7162 (move_zmm_data_to_memory): Use vmovups instead vmovaps.
7163
7164 2017-09-19 John Baldwin <jhb@FreeBSD.org>
7165
7166 * NEWS (Changes since GDB 8.0): Add starti.
7167 * infcmd.c (enum run_break): New.
7168 (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN
7169 case.
7170 (run_command): Use enum run_how.
7171 (start_command): Likewise.
7172 (starti_command): New function.
7173 (RUN_ARGS_HELP): New macro.
7174 (_initialize_infcmd): Use RUN_ARGS_HELP for run and start
7175 commands. Add starti command.
7176
7177 2017-09-19 Yao Qi <yao.qi@linaro.org>
7178
7179 * Makefile.in (monitor.o): Remove the rule.
7180
7181 2017-09-19 Yao Qi <yao.qi@linaro.org>
7182
7183 * annotate.h (struct annotate_arg_emitter): Use
7184 DISABLE_COPY_AND_ASSIGN.
7185 * common/refcounted-object.h (refcounted_object): Likewise.
7186 * completer.h (struct completion_result): Likewise.
7187 * dwarf2read.c (struct dwarf2_per_objfile): Likewise.
7188 * filename-seen-cache.h (filename_seen_cache): Likewise.
7189 * gdbcore.h (thread_section_name): Likewise.
7190 * gdb_regex.h (compiled_regex): Likewise.
7191 * gdbthread.h (scoped_restore_current_thread): Likewise.
7192 * inferior.h (scoped_restore_current_inferior): Likewise.
7193 * jit.c (jit_reader): Likewise.
7194 * linespec.h (struct linespec_result): Likewise.
7195 * mi/mi-parse.h (struct mi_parse): Likewise.
7196 * nat/fork-inferior.c (execv_argv): Likewise.
7197 * progspace.h (scoped_restore_current_program_space): Likewise.
7198 * python/python-internal.h (class gdbpy_enter): Likewise.
7199 * regcache.h (regcache): Likewise.
7200 * target-descriptions.c (struct tdesc_reg): Likewise.
7201 (struct tdesc_type): Likewise.
7202 (struct tdesc_feature): Likewise.
7203 * ui-out.h (ui_out_emit_type): Likewise.
7204
7205 2017-09-18 Simon Marchi <simon.marchi@ericsson.com>
7206
7207 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove
7208 label abort_expression.
7209
7210 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7211
7212 * common/buffer.c (buffer_xml_printf): Adjust.
7213 * common/xml-utils.c (xml_escape_text): Change return type to
7214 std::string, update code accordingly.
7215 * common/xml-utils.h (xml_escape_text): Change return type to
7216 std::string.
7217 * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust.
7218 * windows-tdep.c (windows_xfer_shared_library): Adjust.
7219 * unittests/xml-utils-selftests.c (test_xml_escape_text):
7220 Adjust.
7221
7222 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7223
7224 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file.
7225 (SUBDIR_UNITTESTS_OBS): Add new object file.
7226 * unittests/xml-utils-selftests.c: New file.
7227
7228 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7229
7230 * common/selftest.h (selftest): New struct/interface.
7231 (register_test): Add name parameter, add new overload.
7232 (run_tests): Add filter parameter.
7233 (for_each_selftest_ftype): New typedef.
7234 (for_each_selftest): New declaration.
7235 * common/selftest.c (tests): Change type to
7236 map<string, unique_ptr<selftest>>.
7237 (simple_selftest): New struct.
7238 (register_test): New function.
7239 (register_test): Add name parameter and use it.
7240 (run_tests): Add filter parameter and use it. Add prints.
7241 Adjust to vector -> map change.
7242 * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when
7243 registering selftests.
7244 * arm-tdep.c (_initialize_arm_tdep): Likewise.
7245 * disasm-selftests.c (_initialize_disasm_selftests): Likewise.
7246 * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise.
7247 * dwarf2loc.c (_initialize_dwarf2loc): Likewise.
7248 * findvar.c (_initialize_findvar): Likewise.
7249 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise.
7250 * maint.c (maintenance_selftest): Update call to run_tests.
7251 (maintenance_info_selftests): New function.
7252 (_initialize_maint_cmds): Register "maintenance info selftests"
7253 command. Update "maintenance selftest" doc.
7254 * regcache.c (_initialize_regcache): Add names when registering
7255 selftests.
7256 * rust-exp.y (_initialize_rust_exp): Likewise.
7257 * selftest-arch.c (gdbarch_selftest): New struct.
7258 (gdbarch_tests): Remove.
7259 (register_test_foreach_arch): Add name parameter. Call
7260 register_test.
7261 (tests_with_arch): Remove, move most content to
7262 gdbarch_selftest::operator().
7263 (_initialize_selftests_foreach_arch): Remove.
7264 * selftest-arch.h (register_test_foreach_arch): Add name
7265 parameter.
7266 (run_tests_with_arch): New declaration.
7267 * utils-selftests.c (_initialize_utils_selftests): Add names
7268 when registering selftests.
7269 * utils.c (_initialize_utils): Likewise.
7270 * unittests/array-view-selftests.c
7271 (_initialize_array_view_selftests): Likewise.
7272 * unittests/environ-selftests.c (_initialize_environ_selftests):
7273 Likewise.
7274 * unittests/function-view-selftests.c
7275 (_initialize_function_view_selftests): Likewise.
7276 * unittests/offset-type-selftests.c
7277 (_initialize_offset_type_selftests): Likewise.
7278 * unittests/optional-selftests.c
7279 (_initialize_optional_selftests): Likewise.
7280 * unittests/scoped_restore-selftests.c
7281 (_initialize_scoped_restore_selftests): Likewise.
7282 * NEWS: Document "maintenance selftest" and "maint info
7283 selftests".
7284
7285 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7286
7287 * mi/mi-main.c (mi_load_progress): Restore current_uiout using a
7288 scoped_restore.
7289
7290 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7291
7292 * mi/mi-main.c (mi_load_progress): Make uiout variable
7293 a unique_ptr.
7294
7295 2017-09-15 Pedro Alves <palves@redhat.com>
7296
7297 * compile/compile-c-types.c (convert_enum, convert_int)
7298 (convert_float): Adjust to refer to int_type_v0 and float_type_v0.
7299
7300 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7301
7302 * dwarf2read.c (copy_string): Remove.
7303 (parse_macro_definition): Replace copy_string with savestring.
7304
7305 2017-09-15 Yao Qi <yao.qi@linaro.org>
7306
7307 * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to
7308 gdb_target_obs.
7309 (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*):
7310 Likewise.
7311 (i[34567]86-*-linux*): Likewise.
7312
7313 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
7314
7315 * dwarf2expr.h (dwarf_stack_value): Add constructor.
7316 (dwarf_expr_context) <~dwarf_expr_context>: Define as default.
7317 <stack>: Change type to std::vector.
7318 <stack_len, stack_allocated>: Remove.
7319 <grow_stack>: Remove.
7320 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
7321 (dwarf_expr_context::~dwarf_expr_context): Remove.
7322 (dwarf_expr_context::grow_stack): Remove.
7323 (dwarf_expr_context::push): Adjust.
7324 (dwarf_expr_context::pop): Adjust.
7325 (dwarf_expr_context::fetch): Adjust.
7326 (dwarf_expr_context::fetch_in_stack_memory): Adjust.
7327 (dwarf_expr_context::stack_empty_p): Adjust.
7328 (dwarf_expr_context::execute_stack_op): Adjust.
7329
7330 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
7331
7332 * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change
7333 return type to bool.
7334 * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise.
7335
7336 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
7337
7338 * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>:
7339 Change type to bool.
7340 (dwarf_stack_value) <in_stack_memory>: Likewise.
7341 (dwarf_expr_context) <push_address>: Change parameter type to
7342 bool.
7343 <fetch_in_stack_memory>: Change return type to bool.
7344 <push>: Change parameter type to bool.
7345 * dwarf2expr.c (dwarf_expr_context::push): Change parameter type
7346 to bool.
7347 (dwarf_expr_context::push_address): Likewise.
7348 (dwarf_expr_context::fetch_in_stack_memory): Change return type
7349 to bool.
7350 (dwarf_expr_context::execute_stack_op): Adjust.
7351 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust.
7352
7353 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
7354
7355 * dwarf2expr.h (struct dwarf_expr_piece): Move up.
7356 (struct dwarf_expr_context) <n_pieces>: Remove.
7357 <pieces>: Change type to std::vector.
7358 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
7359 (dwarf_expr_context::~dwarf_expr_context): Don't manually free
7360 pieces.
7361 (dwarf_expr_context::add_piece): Adjust.
7362 * dwarf2loc.c (struct piece_closure): Initialize fields.
7363 <n_pieces>: Remove.
7364 <pieces>: Change type to std::vector.
7365 (allocate_piece_closure): Adjust, change parameter to
7366 std::vector rvalue and std::move it to piece_closure.
7367 (rw_pieced_value): Adjust.
7368 (check_pieced_synthetic_pointer): Adjust.
7369 (indirect_synthetic_pointer): Adjust.
7370 (coerce_pieced_ref): Adjust.
7371 (free_pieced_value_closure): Adjust. Use delete to free
7372 piece_closure.
7373 (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces
7374 to allocate_piece_closure.
7375 (dwarf2_loc_desc_get_symbol_read_needs): Adjust.
7376
7377 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
7378
7379 * probe.h (probe_ops_cp): Remove typedef.
7380 (DEF_VEC_P (probe_ops_cp)): Remove.
7381 (all_probe_ops): Change type to std::vector.
7382 * probe.c (info_probes_for_ops): Adjust to vector change.
7383 (probe_linespec_to_ops): Likewise.
7384 (all_probe_ops): Change type to std::vector.
7385 (_initialize_probe): Adjust to vector change.
7386 * dtrace-probe.c (_initialize_dtrace_probe): Likewise.
7387 * elfread.c (elf_get_probes): Likewise.
7388 * stap-probe.c (_initialize_stap_probe): Likewise.
7389
7390 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
7391
7392 * probe.h (struct bound_probe): Define constructors.
7393 * probe.c (bound_probe_s): Remove typedef.
7394 (DEF_VEC_O (bound_probe_s)): Remove VEC.
7395 (collect_probes): Change return type to std::vector, remove
7396 cleanup.
7397 (compare_probes): Return bool, change parameter type. Change
7398 semantic to "less than".
7399 (gen_ui_out_table_header_info): Change parameter to std::vector
7400 and update.
7401 (exists_probe_with_pops): Likewise.
7402 (info_probes_for_ops): Update to std::vector change.
7403 (enable_probes_command): Likewise.
7404 (disable_probes_command): Likewise.
7405
7406 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
7407
7408 * probe.h (struct probe_ops) <get_probes>: Change parameter from
7409 vec to std::vector.
7410 * probe.c (parse_probes_in_pspace): Update.
7411 (find_probes_in_objfile): Update.
7412 (find_probe_by_pc): Update.
7413 (collect_probes): Update.
7414 (probe_any_get_probes): Update.
7415 * symfile.h (struct sym_probe_fns) <sym_get_probes> Change
7416 return type to reference to std::vector.
7417 * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to
7418 std::vector and update.
7419 (dtrace_process_dof): Likewise.
7420 (dtrace_get_probes): Likewise.
7421 * elfread.c (elf_get_probes): Change return type to std::vector,
7422 store an std::vector in bfd_data.
7423 (probe_key_free): Update to std::vector.
7424 * stap-probe.c (handle_stap_probe): Change parameter to
7425 std::vector and update.
7426 (stap_get_probes): Likewise.
7427 * symfile-debug.c (debug_sym_get_probes): Change return type to
7428 std::vector and update.
7429
7430 2017-09-11 Tom Tromey <tom@tromey.com>
7431
7432 * breakpoint.c (program_breakpoint_here_p): Update.
7433 * target.c (make_scoped_restore_show_memory_breakpoints): Rename
7434 from make_show_memory_breakpoints_cleanup. Return a
7435 scoped_restore_tmpl<int>.
7436 (restore_show_memory_breakpoints): Remove.
7437 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update.
7438 * mem-break.c (memory_validate_breakpoint): Update.
7439 * ia64-tdep.c (ia64_memory_insert_breakpoint): Update.
7440 (ia64_memory_remove_breakpoint): Update.
7441 (ia64_breakpoint_from_pc): Update.
7442 * target.h (make_scoped_restore_show_memory_breakpoints): Rename
7443 from make_show_memory_breakpoints_cleanup.
7444
7445 2017-09-11 Tom Tromey <tom@tromey.com>
7446
7447 * d-namespace.c (d_lookup_symbol): Use std::string.
7448 (find_symbol_in_baseclass): Likewise.
7449
7450 2017-09-11 Tom Tromey <tom@tromey.com>
7451
7452 * ctf.c (ctf_start): Use std::string.
7453
7454 2017-09-11 Tom Tromey <tom@tromey.com>
7455
7456 * ada-lang.c (is_known_support_routine): Update.
7457 (ada_unhandled_exception_name_addr_from_raise): Update.
7458 * guile/scm-frame.c (gdbscm_frame_name): Update.
7459 * python/py-frame.c (frapy_name): Update.
7460 (frapy_function): Update.
7461 * stack.h (find_frame_funname): Update.
7462 * stack.c (find_frame_funname): Return unique_xmalloc_ptr.
7463 (print_frame): Update.
7464
7465 2017-09-11 Tom Tromey <tom@tromey.com>
7466
7467 * findcmd.c (put_bits): Take a gdb::byte_vector.
7468 (parse_find_args): Return gdb::byte_vector. "args" now const.
7469 Remove "pattern_bufp" and "pattern_lenp" parameters. Remove
7470 cleanups.
7471 (find_command): Update.
7472
7473 2017-09-11 Tom Tromey <tom@tromey.com>
7474
7475 * cli/cli-script.c (class scoped_restore_hook_in): New.
7476 (clear_hook_in_cleanup): Remove.
7477 (execute_cmd_pre_hook, execute_cmd_post_hook): Use
7478 scoped_restore_hook_in.
7479
7480 2017-09-11 Tom Tromey <tom@tromey.com>
7481
7482 * cli/cli-script.c (restore_interp): Remove.
7483 (read_command_lines): Use scoped_restore_interp.
7484 * interps.c (scoped_restore_interp::set_temp): Rename from
7485 interp_set_temp.
7486 * interps.h (class scoped_restore_interp): New.
7487 (interp_set_temp): Remove.
7488
7489 2017-09-11 Tom Tromey <tom@tromey.com>
7490
7491 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
7492 (mi_cmd_catch_exception, mi_catch_load_unload): Update.
7493 * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a
7494 scoped_restore.
7495 (mi_cmd_break_insert_1): Update.
7496 * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a
7497 scoped_restore.
7498
7499 2017-09-11 Tom Tromey <tom@tromey.com>
7500
7501 * demangle.c (demangle_command): Update.
7502 * breakpoint.c (disable_command): Update.
7503 (enable_command): Update.
7504 (find_location_by_number): Make "number" const. Use
7505 get_number_trailer.
7506 * cli/cli-utils.c (extract_arg): Return std::string.
7507 * probe.c (parse_probe_linespec): Update. Change types.
7508 (collect_probes): Take string arguments.
7509 (parse_probe_linespec): Likewise.
7510 (info_probes_for_ops): Update.
7511 (enable_probes_command): Update.
7512 (disable_probes_command): Update.
7513 * break-catch-sig.c (catch_signal_split_args): Update.
7514 * mi/mi-parse.c (mi_parse): Update.
7515
7516 2017-09-11 Tom Tromey <tom@tromey.com>
7517
7518 * language.h (language_enum): Make argument const.
7519 * language.c (language_enum): Make argument const.
7520
7521 2017-09-11 Tom Tromey <tom@tromey.com>
7522
7523 * common/common-utils.h (skip_to_space): Remove macro, redeclare
7524 as function.
7525 (skip_to_space): Rename from skip_to_space_const.
7526 * common/common-utils.c (skip_to_space): New function.
7527 (skip_to_space): Rename from skip_to_space_const.
7528 * cli/cli-utils.h (get_number): Rename from get_number_const.
7529 (extract_arg): Rename from extract_arg_const.
7530 * cli/cli-utils.c (get_number): Rename from get_number_const.
7531 (extract_arg): Rename from extract_arg_const.
7532 (number_or_range_parser::get_number): Use ::get_number.
7533 * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c,
7534 break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c,
7535 cli/cli-script.c, cli/cli-setshow.c, compile/compile.c,
7536 completer.c, demangle.c, disasm.c, findcmd.c, linespec.c,
7537 linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c,
7538 minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c,
7539 python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c,
7540 stap-probe.c, tid-parse.c, tracepoint.c: Update all callers.
7541
7542 2017-09-11 Tom Tromey <tom@tromey.com>
7543
7544 * python/python.c (do_start_initialization): Use
7545 py-event-types.def to initialize types.
7546 Define all object type structures.
7547 * python/python-internal.h: Don't declare event initialization
7548 functions.
7549 * python/py-threadevent.c (thread_event_object_type): Don't
7550 define.
7551 * python/py-stopevent.c (stop_event_object_type): Don't define.
7552 * python/py-signalevent.c (signal_event_object_type): Don't
7553 declare or define.
7554 * python/py-newobjfileevent.c (new_objfile_event_object_type)
7555 (clear_objfiles_event_object_type): Don't declare or define.
7556 * python/py-infevents.c (inferior_call_pre_event_object_type)
7557 (inferior_call_post_event_object_type)
7558 (register_changed_event_object_type)
7559 (memory_changed_event_object_type): Don't declare or define.
7560 * python/py-inferior.c (new_thread_event_object_type)
7561 (new_inferior_event_object_type)
7562 (inferior_deleted_event_object_type): Don't declare or define.
7563 * python/py-exitedevent.c (exited_event_object_type): Don't
7564 declare or define.
7565 * python/py-evts.c (gdbpy_initialize_py_events): Use
7566 py-all-events.def.
7567 * python/py-events.h (thread_event_object_type): Don't declare.
7568 (events_object): Use py-all-events.def.
7569 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use
7570 py-event-types.def.
7571 * python/py-event-types.def: New file.
7572 * python/py-continueevent.c (create_continue_event_object): Don't
7573 declare or define.
7574 * python/py-bpevent.c (breakpoint_event_object_type): Don't
7575 declare or define.
7576 * python/py-all-events.def: New file.
7577
7578 2017-09-11 Tom Tromey <tom@tromey.com>
7579
7580 * python/py-threadevent.c (create_thread_event_object): Return
7581 gdbpy_ref.
7582 * python/py-stopevent.h (create_stop_event_object)
7583 (create_breakpoint_event_object, create_signal_event_object):
7584 Update.
7585 * python/py-stopevent.c (create_stop_event_object): Return
7586 gdbpy_ref.
7587 (emit_stop_event): Update.
7588 * python/py-signalevent.c (create_signal_event_object): Return
7589 gdbpy_ref.
7590 * python/py-infevents.c (create_inferior_call_event_object):
7591 Update.
7592 * python/py-event.h (create_event_object)
7593 (create_thread_event_object): Update.
7594 * python/py-event.c (create_event_object): Return gdbpy_ref.
7595 * python/py-continueevent.c: Return gdbpy_ref.
7596 * python/py-bpevent.c (create_breakpoint_event_object): Return
7597 gdbpy_ref.
7598
7599 2017-09-11 Tom Tromey <tom@tromey.com>
7600
7601 PR python/15622:
7602 * NEWS: Add entry.
7603 * python/python.c (do_start_initialization): Initialize new event
7604 types.
7605 * python/python-internal.h (gdbpy_initialize_new_inferior_event)
7606 (gdbpy_initialize_inferior_deleted_event)
7607 (gdbpy_initialize_new_thread_event): Declare.
7608 * python/py-threadevent.c (create_thread_event_object): Add option
7609 "thread" parameter.
7610 * python/py-inferior.c (new_thread_event_object_type)
7611 (new_inferior_event_object_type)
7612 (inferior_deleted_event_object_type): Declare.
7613 (python_new_inferior, python_inferior_deleted): New functions.
7614 (add_thread_object): Emit new_thread event.
7615 (gdbpy_initialize_inferior): Attach new functions to corresponding
7616 observers.
7617 (new_thread, new_inferior, inferior_deleted): Define new event
7618 types.
7619 * python/py-evts.c (gdbpy_initialize_py_events): Add new
7620 registries.
7621 * python/py-events.h (events_object) <new_inferior,
7622 inferior_deleted, new_thread>: New fields.
7623 * python/py-event.h (create_thread_event_breakpoint): Add optional
7624 "thread" parameter.
7625
7626 2017-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
7627
7628 * utils.c (abort_with_message): Don't compare gdb_stderr to NULL,
7629 check current_ui instead.
7630 (internal_vproblem): Likewise.
7631
7632 2017-09-09 Simon Marchi <simon.marchi@ericsson.com>
7633
7634 * thread.c (print_thread_info_1): Remove unnecessary calls to
7635 uiout->is_mi_like_p.
7636
7637 2017-09-09 Tom Tromey <tom@tromey.com>
7638
7639 * namespace.h (add_using_directive): Update.
7640 * namespace.c (add_using_directive): Change type of excludes to
7641 std::vector.
7642 * dwarf2read.c (read_import_statement): Use std::vector.
7643 (read_namespace): Update.
7644 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
7645
7646 2017-09-09 Tom Tromey <tom@tromey.com>
7647
7648 * linespec.c (create_sals_line_offset): Use gdb::def_vector.
7649
7650 2017-09-09 Tom Tromey <tom@tromey.com>
7651
7652 * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector.
7653
7654 2017-09-09 Tom Tromey <tom@tromey.com>
7655
7656 * stack.c (func_command): Use gdb::def_vector.
7657
7658 2017-09-09 Tom Tromey <tom@tromey.com>
7659
7660 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional,
7661 ui_out_emit_list, ui_out_emit_tuple.
7662 (mi_cmd_var_update): Likewise.
7663
7664 2017-09-09 Tom Tromey <tom@tromey.com>
7665
7666 * mi/mi-interp.c (mi_user_selected_context_changed): Use
7667 ui_out_redirect_pop.
7668 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
7669 ui_out_redirect_pop.
7670 * utils.c (do_ui_out_redirect_pop)
7671 (make_cleanup_ui_out_redirect_pop): Remove.
7672 * top.c (execute_command_to_string): Use ui_out_redirect_pop.
7673 * utils.h (make_cleanup_ui_out_redirect_pop): Remove.
7674 * ui-out.h (ui_out_redirect_pop): New class.
7675
7676 2017-09-09 Tom Tromey <tom@tromey.com>
7677
7678 * mi/mi-main.c (output_cores): Use ui_out_emit_list.
7679 (list_available_thread_groups, mi_cmd_list_thread_groups)
7680 (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory)
7681 (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected):
7682 Likewise.
7683
7684 2017-09-09 Tom Tromey <tom@tromey.com>
7685
7686 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
7687 ui_out_emit_tuple.
7688
7689 2017-09-09 Tom Tromey <tom@tromey.com>
7690
7691 * target.c (flash_erase_command): Use ui_out_emit_tuple.
7692 * stack.c (print_frame): Use ui_out_emit_tuple.
7693 * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple.
7694 (info_spu_mailbox_command, info_spu_dma_command)
7695 (info_spu_proxydma_command): Likewise.
7696 * mi/mi-main.c (mi_cmd_trace_frame_collected): Use
7697 ui_out_emit_tuple, gdb::byte_vector, bin2hex.
7698 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
7699 ui_out_emit_tuple.
7700 * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple.
7701
7702 2017-09-09 Tom Tromey <tom@tromey.com>
7703
7704 * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove.
7705 (class ui_out_emit_table): Update comment.
7706 * ui-out.c (do_cleanup_table_end)
7707 (make_cleanup_ui_out_table_begin_end): Remove.
7708 * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table.
7709 (info_spu_dma_cmdlist): Likewise.
7710 * probe.c (info_probes_for_ops): Use ui_out_emit_table.
7711 * darwin-nat-info.c (darwin_debug_regions_recurse): Use
7712 ui_out_emit_table.
7713
7714 2017-09-09 Tom Tromey <tom@tromey.com>
7715
7716 * thread.c (print_thread_info_1): Use ui_out_emit_table,
7717 ui_out_emit_list, gdb::optional.
7718
7719 2017-09-09 John Baldwin <jhb@FreeBSD.org>
7720
7721 * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat
7722 prototype.
7723 * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep
7724 prototype.
7725 * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep
7726 prototype.
7727 * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype.
7728 * ada-exp.y: Remove _initialize_ada_exp prototype.
7729 * ada-lang.c: Remove _initialize_ada_language prototype.
7730 * ada-tasks.c: Remove _initialize_tasks prototype.
7731 * addrmap.c: Remove _initialize_addrmap prototype.
7732 * agent.c: Remove _initialize_agent prototype.
7733 * aix-thread.c: Remove _initialize_aix_thread prototype.
7734 * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype.
7735 * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype.
7736 * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep
7737 prototype.
7738 * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype.
7739 * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype.
7740 * alpha-tdep.c: Remove _initialize_alpha_tdep prototype.
7741 * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep
7742 prototype.
7743 * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep
7744 prototype.
7745 * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype.
7746 * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype.
7747 * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype.
7748 * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep
7749 prototype.
7750 * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype.
7751 * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype.
7752 * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype.
7753 * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype.
7754 * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
7755 * amd64-tdep.c: Remove _initialize_amd64_tdep prototype.
7756 * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat
7757 prototype.
7758 * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep
7759 prototype.
7760 * annotate.c: Remove _initialize_annotate prototype.
7761 * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype.
7762 * arc-tdep.c: Remove _initialize_arc_tdep prototype.
7763 * arch-utils.c: Remove _initialize_gdbarch_utils prototype.
7764 * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype.
7765 * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype.
7766 * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype.
7767 * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype.
7768 * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep
7769 prototype.
7770 * arm-tdep.c: Remove _initialize_arm_tdep prototype.
7771 * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype.
7772 * auto-load.c: Remove _initialize_auto_load prototype.
7773 * auxv.c: Remove _initialize_auxv prototype.
7774 * avr-tdep.c: Remove _initialize_avr_tdep prototype.
7775 * ax-gdb.c: Remove _initialize_ax_gdb prototype.
7776 * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype.
7777 * bfin-tdep.c: Remove _initialize_bfin_tdep prototype.
7778 * break-catch-sig.c: Remove _initialize_break_catch_sig prototype.
7779 * break-catch-syscall.c: Remove _initialize_break_catch_syscall
7780 prototype.
7781 * break-catch-throw.c: Remove _initialize_break_catch_throw
7782 prototype.
7783 * breakpoint.c: Remove _initialize_breakpoint prototype.
7784 * bsd-uthread.c: Remove _initialize_bsd_uthread prototype.
7785 * btrace.c: Remove _initialize_btrace prototype.
7786 * charset.c: Remove _initialize_charset prototype.
7787 * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype.
7788 * cli/cli-dump.c: Remove _initialize_cli_dump prototype.
7789 * cli/cli-interp.c: Remove _initialize_cli_interp prototype.
7790 * cli/cli-logging.c: Remove _initialize_cli_logging prototype.
7791 * cli/cli-script.c: Remove _initialize_cli_script prototype.
7792 * coff-pe-read.c: Remove _initialize_coff_pe_read prototype.
7793 * coffread.c: Remove _initialize_coffread prototype.
7794 * compile/compile.c: Remove _initialize_compile prototype.
7795 * complaints.c: Remove _initialize_complaints prototype.
7796 * completer.c: Remove _initialize_completer prototype.
7797 * copying.awk: Remove _initialize_copying prototype.
7798 * copying.c: Regenerate.
7799 * core-regset.c: Remove _initialize_core_regset prototype.
7800 * corefile.c: Remove _initialize_core prototype.
7801 * corelow.c: Remove _initialize_corelow prototype.
7802 * cp-abi.c: Remove _initialize_cp_abi prototype.
7803 * cp-namespace.c: Remove _initialize_cp_namespace prototype.
7804 * cp-support.c: Remove _initialize_cp_support prototype.
7805 * cp-valprint.c: Remove _initialize_cp_valprint prototype.
7806 * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype.
7807 * cris-tdep.c: Remove _initialize_cris_tdep prototype.
7808 * ctf.c: Remove _initialize_ctf prototype.
7809 * d-lang.c: Remove _initialize_d_language prototype.
7810 * darwin-nat-info.c: Remove _initialize_darwin_info_commands
7811 prototype.
7812 * darwin-nat.c: Remove _initialize_darwin_inferior prototype.
7813 * dbxread.c: Remove _initialize_dbxread prototype.
7814 * dcache.c: Remove _initialize_dcache prototype.
7815 * demangle.c: Remove _initialize_demangler prototype.
7816 * disasm-selftests.c: Remove _initialize_disasm_selftests
7817 prototype.
7818 * disasm.c: Remove _initialize_disasm prototype.
7819 * dtrace-probe.c: Remove _initialize_dtrace_probe prototype.
7820 * dummy-frame.c: Remove _initialize_dummy_frame prototype.
7821 * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame
7822 prototype.
7823 * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype.
7824 * dwarf2expr.c: Remove _initialize_dwarf2expr prototype.
7825 * dwarf2loc.c: Remove _initialize_dwarf2loc prototype.
7826 * dwarf2read.c: Remove _initialize_dwarf2_read prototype.
7827 * elfread.c: Remove _initialize_elfread prototype.
7828 * exec.c: Remove _initialize_exec prototype.
7829 * extension.c: Remove _initialize_extension prototype.
7830 * f-lang.c: Remove _initialize_f_language prototype.
7831 * f-valprint.c: Remove _initialize_f_valprint prototype.
7832 * fbsd-nat.c: Remove _initialize_fbsd_nat prototype.
7833 * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype.
7834 * filesystem.c: Remove _initialize_filesystem prototype.
7835 * findcmd.c: Remove _initialize_mem_search prototype.
7836 * fork-child.c: Remove _initialize_fork_child prototype.
7837 * frame-base.c: Remove _initialize_frame_base prototype.
7838 * frame-unwind.c: Remove _initialize_frame_unwind prototype.
7839 * frame.c: Remove _initialize_frame prototype.
7840 * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype.
7841 * frv-tdep.c: Remove _initialize_frv_tdep prototype.
7842 * ft32-tdep.c: Remove _initialize_ft32_tdep prototype.
7843 * gcore.c: Remove _initialize_gcore prototype.
7844 * gdb_bfd.c: Remove _initialize_gdb_bfd prototype.
7845 * gdbarch.c: Regenerate.
7846 * gdbarch.sh: Remove _initialize_gdbarch prototype.
7847 * gdbtypes.c: Remove _initialize_gdbtypes prototype.
7848 * gnu-nat.c: Remove _initialize_gnu_nat prototype.
7849 * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype.
7850 * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype.
7851 * go-lang.c: Remove _initialize_go_language prototype.
7852 * go32-nat.c: Remove _initialize_go32_nat prototype.
7853 * guile/guile.c: Remove _initialize_guile prototype.
7854 * h8300-tdep.c: Remove _initialize_h8300_tdep prototype.
7855 * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype.
7856 * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype.
7857 * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype.
7858 * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype.
7859 * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype.
7860 * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype.
7861 * hppa-tdep.c: Remove _initialize_hppa_tdep prototype.
7862 * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype.
7863 * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep
7864 prototype.
7865 * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep
7866 prototype.
7867 * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype.
7868 * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype.
7869 * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype.
7870 * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype.
7871 * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype.
7872 * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype.
7873 * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype.
7874 * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype.
7875 * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype.
7876 * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype.
7877 * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype.
7878 * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype.
7879 * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype.
7880 * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
7881 * i386-tdep.c: Remove _initialize_i386_tdep prototype.
7882 * i386-windows-nat.c: Remove _initialize_i386_windows_nat
7883 prototype.
7884 * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame
7885 prototype.
7886 * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype.
7887 * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype.
7888 * ia64-tdep.c: Remove _initialize_ia64_tdep prototype.
7889 * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype.
7890 * infcall.c: Remove _initialize_infcall prototype.
7891 * infcmd.c: Remove _initialize_infcmd prototype.
7892 * inferior.c: Remove _initialize_inferiors prototype.
7893 * inflow.c: Remove _initialize_inflow prototype.
7894 * infrun.c: Remove _initialize_infrun prototype.
7895 * interps.c: Remove _initialize_interpreter prototype.
7896 * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype.
7897 * jit.c: Remove _initialize_jit prototype.
7898 * language.c: Remove _initialize_language prototype.
7899 * linux-fork.c: Remove _initialize_linux_fork prototype.
7900 * linux-nat.c: Remove _initialize_linux_nat prototype.
7901 * linux-tdep.c: Remove _initialize_linux_tdep prototype.
7902 * linux-thread-db.c: Remove _initialize_thread_db prototype.
7903 * lm32-tdep.c: Remove _initialize_lm32_tdep prototype.
7904 * m2-lang.c: Remove _initialize_m2_language prototype.
7905 * m32c-tdep.c: Remove _initialize_m32c_tdep prototype.
7906 * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype.
7907 * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype.
7908 * m32r-tdep.c: Remove _initialize_m32r_tdep prototype.
7909 * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype.
7910 * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
7911 * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
7912 * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype.
7913 * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype.
7914 * m68k-tdep.c: Remove _initialize_m68k_tdep prototype.
7915 * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
7916 * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
7917 * machoread.c: Remove _initialize_machoread prototype.
7918 * macrocmd.c: Remove _initialize_macrocmd prototype.
7919 * macroscope.c: Remove _initialize_macroscope prototype.
7920 * maint.c: Remove _initialize_maint_cmds prototype.
7921 * mdebugread.c: Remove _initialize_mdebugread prototype.
7922 * memattr.c: Remove _initialize_mem prototype.
7923 * mep-tdep.c: Remove _initialize_mep_tdep prototype.
7924 * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype.
7925 * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype.
7926 * mi/mi-interp.c: Remove _initialize_mi_interp prototype.
7927 * mi/mi-main.c: Remove _initialize_mi_main prototype.
7928 * microblaze-linux-tdep.c: Remove
7929 _initialize_microblaze_linux_tdep prototype.
7930 * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype.
7931 * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype.
7932 * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype.
7933 * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype.
7934 * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype.
7935 * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype.
7936 * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype.
7937 * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype.
7938 * mips-tdep.c: Remove _initialize_mips_tdep prototype.
7939 * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype.
7940 * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep
7941 prototype.
7942 * mipsread.c: Remove _initialize_mipsread prototype.
7943 * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep
7944 prototype.
7945 * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype.
7946 * moxie-tdep.c: Remove _initialize_moxie_tdep prototype.
7947 * msp430-tdep.c: Remove _initialize_msp430_tdep prototype.
7948 * mt-tdep.c: Remove _initialize_mt_tdep prototype.
7949 * nds32-tdep.c: Remove _initialize_nds32_tdep prototype.
7950 * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep
7951 prototype.
7952 * nios2-tdep.c: Remove _initialize_nios2_tdep prototype.
7953 * nto-procfs.c: Remove _initialize_procfs prototype.
7954 * nto-tdep.c: Remove _initialize_nto_tdep prototype.
7955 * objc-lang.c: Remove _initialize_objc_language prototype.
7956 * objfiles.c: Remove _initialize_objfiles prototype.
7957 * observer.c: Remove observer_test_first_notification_function,
7958 observer_test_second_notification_function,
7959 observer_test_third_notification_function, and
7960 _initialize_observer prototypes.
7961 * opencl-lang.c: Remove _initialize_opencl_language prototypes.
7962 * osabi.c: Remove _initialize_gdb_osabi prototype.
7963 * osdata.c: Remove _initialize_osdata prototype.
7964 * p-valprint.c: Remove _initialize_pascal_valprint prototype.
7965 * parse.c: Remove _initialize_parse prototype.
7966 * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype.
7967 * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype.
7968 * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype.
7969 * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype.
7970 * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype.
7971 * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype.
7972 * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype.
7973 * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype.
7974 * printcmd.c: Remove _initialize_printcmd prototype.
7975 * probe.c: Remove _initialize_probe prototype.
7976 * proc-api.c: Remove _initialize_proc_api prototype.
7977 * proc-events.c: Remove _initialize_proc_events prototype.
7978 * proc-service.c: Remove _initialize_proc_service prototype.
7979 * procfs.c: Remove _initialize_procfs prototype.
7980 * psymtab.c: Remove _initialize_psymtab prototype.
7981 * python/python.c: Remove _initialize_python prototype.
7982 * ravenscar-thread.c: Remove _initialize_ravenscar prototype.
7983 * record-btrace.c: Remove _initialize_record_btrace prototype.
7984 * record-full.c: Remove _initialize_record_full prototype.
7985 * record.c: Remove _initialize_record prototype.
7986 * regcache.c: Remove _initialize_regcache prototype.
7987 * reggroups.c: Remove _initialize_reggroup prototype.
7988 * remote-notif.c: Remove _initialize_notif prototype.
7989 * remote-sim.c: Remove _initialize_remote_sim prototype.
7990 * remote.c: Remove _initialize_remote prototype.
7991 * reverse.c: Remove _initialize_reverse prototype.
7992 * rl78-tdep.c: Remove _initialize_rl78_tdep prototype.
7993 * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype.
7994 * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep
7995 prototype.
7996 * rs6000-nat.c: Remove _initialize_rs6000_nat prototype.
7997 * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype.
7998 * rust-exp.y: Remove _initialize_rust_exp prototype.
7999 * rx-tdep.c: Remove _initialize_rx_tdep prototype.
8000 * s390-linux-nat.c: Remove _initialize_s390_nat prototype.
8001 * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype.
8002 * score-tdep.c: Remove _initialize_score_tdep prototype.
8003 * selftest-arch.c: Remove _initialize_selftests_foreach_arch
8004 prototype.
8005 * ser-go32.c: Remove _initialize_ser_dos prototype.
8006 * ser-mingw.c: Remove _initialize_ser_windows prototype.
8007 * ser-pipe.c: Remove _initialize_ser_pipe prototype.
8008 * ser-tcp.c: Remove _initialize_ser_tcp prototype.
8009 * ser-unix.c: Remove _initialize_ser_hardwire prototype.
8010 * serial.c: Remove _initialize_serial prototype.
8011 * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype.
8012 * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype.
8013 * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype.
8014 * sh-tdep.c: Remove _initialize_sh_tdep prototype.
8015 * skip.c: Remove _initialize_step_skip prototype.
8016 * sol-thread.c: Remove _initialize_sol_thread prototype.
8017 * solib-aix.c: Remove _initialize_solib_aix prototype.
8018 * solib-darwin.c: Remove _initialize_darwin_solib prototype.
8019 * solib-dsbt.c: Remove _initialize_dsbt_solib prototype.
8020 * solib-frv.c: Remove _initialize_frv_solib prototype.
8021 * solib-spu.c: Remove _initialize_spu_solib prototype.
8022 * solib-svr4.c: Remove _initialize_svr4_solib prototype.
8023 * solib-target.c: Remove _initialize_solib_target prototype.
8024 * solib.c: Remove _initialize_solib prototype.
8025 * source.c: Remove _initialize_source prototype.
8026 * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype.
8027 * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep
8028 prototype.
8029 * sparc-nat.c: Remove _initialize_sparc_nat prototype.
8030 * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype.
8031 * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype.
8032 * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep
8033 prototype.
8034 * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype.
8035 * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype.
8036 * sparc-tdep.c: Remove _initialize_sparc_tdep prototype.
8037 * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat
8038 prototype.
8039 * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep
8040 prototype.
8041 * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat
8042 prototype.
8043 * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep
8044 prototype.
8045 * sparc64-nat.c: Remove _initialize_sparc64_nat prototype.
8046 * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat
8047 prototype.
8048 * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep
8049 prototype.
8050 * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat
8051 prototype.
8052 * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep
8053 prototype.
8054 * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep
8055 prototype.
8056 * spu-linux-nat.c: Remove _initialize_spu_nat prototype.
8057 * spu-multiarch.c: Remove _initialize_spu_multiarch prototype.
8058 * spu-tdep.c: Remove _initialize_spu_tdep prototype.
8059 * stabsread.c: Remove _initialize_stabsread prototype.
8060 * stack.c: Remove _initialize_stack prototype.
8061 * stap-probe.c: Remove _initialize_stap_probe prototype.
8062 * std-regs.c: Remove _initialize_frame_reg prototype.
8063 * symfile-debug.c: Remove _initialize_symfile_debug prototype.
8064 * symfile-mem.c: Remove _initialize_symfile_mem prototype.
8065 * symfile.c: Remove _initialize_symfile prototype.
8066 * symmisc.c: Remove _initialize_symmisc prototype.
8067 * symtab.c: Remove _initialize_symtab prototype.
8068 * target-dcache.c: Remove _initialize_target_dcache prototype.
8069 * target-descriptions.c: Remove _initialize_target_descriptions
8070 prototype.
8071 * thread.c: Remove _initialize_thread prototype.
8072 * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep
8073 prototype.
8074 * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype.
8075 * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype.
8076 * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep
8077 prototype.
8078 * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype.
8079 * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype.
8080 * tracefile.c: Remove _initialize_tracefile prototype.
8081 * tracepoint.c: Remove _initialize_tracepoint prototype.
8082 * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype.
8083 * tui/tui-interp.c: Remove _initialize_tui_interp prototype.
8084 * tui/tui-layout.c: Remove _initialize_tui_layout prototype.
8085 * tui/tui-regs.c: Remove _initialize_tui_regs prototype.
8086 * tui/tui-stack.c: Remove _initialize_tui_stack prototype.
8087 * tui/tui-win.c: Remove _initialize_tui_win prototype.
8088 * tui/tui.c: Remove _initialize_tui prototype.
8089 * typeprint.c: Remove _initialize_typeprint prototype.
8090 * user-regs.c: Remove _initialize_user_regs prototype.
8091 * utils.c: Remove _initialize_utils prototype.
8092 * v850-tdep.c: Remove _initialize_v850_tdep prototype.
8093 * valarith.c: Remove _initialize_valarith prototype.
8094 * valops.c: Remove _initialize_valops prototype.
8095 * valprint.c: Remove _initialize_valprint prototype.
8096 * value.c: Remove _initialize_values prototype.
8097 * varobj.c: Remove _initialize_varobj prototype.
8098 * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype.
8099 * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype.
8100 * vax-tdep.c: Remove _initialize_vax_tdep prototype.
8101 * windows-nat.c: Remove _initialize_windows_nat,
8102 _initialize_check_for_gdb_ini, and _initialize_loadable
8103 prototypes.
8104 * windows-tdep.c: Remove _initialize_windows_tdep prototype.
8105 * xcoffread.c: Remove _initialize_xcoffread prototype.
8106 * xml-support.c: Remove _initialize_xml_support prototype.
8107 * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype.
8108 * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat
8109 prototype.
8110 * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep
8111 prototype.
8112 * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype.
8113
8114 2017-09-08 Keith Seitz <keiths@redhat.com>
8115
8116 * dwarf2read.c (struct field_info) <fnfields>: Remove unused
8117 field.
8118
8119 2017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com>
8120
8121 * f-valprint.c (f_val_print): Remove check for one byte
8122 sized integers. Remove printing of character type.
8123
8124 2017-09-08 Frank Penczek <frank.penczek@intel.com>
8125 Christoph Weinmann <christoph.t.weinmann@intel.com>
8126 Bernhard Heckel <bernhard.heckel@intel.com>
8127
8128 * f-typeprint.c (f_type_print_base): Use fprintfi_filtered
8129 to maintain proper indentation when printing pointers/refs.
8130
8131 2017-09-07 Joel Brobecker <brobecker@adacore.com>
8132
8133 GDB 8.0.1 released.
8134
8135 2017-09-07 Joel Brobecker <brobecker@adacore.com>
8136
8137 * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell.
8138
8139 2017-09-05 Tom Tromey <tom@tromey.com>
8140
8141 * parse.c (funcall_chain): Now a std::vector.
8142 (start_arglist, end_arglist): Simplify.
8143 (free_funcalls): Remove.
8144 (parse_exp_in_context_1): Remove cleanup.
8145
8146 2017-09-05 Tom Tromey <tom@tromey.com>
8147
8148 * go-exp.y (go_parse): Don't create a cleanup.
8149
8150 2017-09-05 Tom Tromey <tom@tromey.com>
8151
8152 * d-exp.y (PrimaryExpression): Use std::string.
8153 (d_parse): Don't create a cleanup.
8154
8155 2017-09-05 Tom Tromey <tom@tromey.com>
8156
8157 * utils.c (do_clear_parser_state): Remove.
8158 (make_cleanup_clear_parser_state): Remove.
8159 * p-exp.y (pascal_parse): Use scoped_restore.
8160 * m2-exp.y (m2_parse): Use scoped_restore.
8161 * f-exp.y (f_parse): Use scoped_restore.
8162 * d-exp.y (d_parse): Use scoped_restore.
8163 * c-exp.y (c_parse): Use scoped_restore.
8164 * ada-exp.y (ada_parse): Use scoped_restore.
8165 * utils.h (make_cleanup_clear_parser_state): Remove.
8166
8167 2017-09-06 Keith Seitz <keiths@redhat.com>
8168
8169 * dwarf2read.c (dw2_linkage_name_attr): New function.
8170 (dw2_linkage_name): New function.
8171 (dwarf2_compute_name, dwarf2_physname, read_call_site_scope)
8172 (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name.
8173 (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr.
8174
8175 2017-09-06 Kamil Rytarowski <n54@gmx.com>
8176
8177 * config/djgpp/djconfig.sh: Correct shell portability issue.
8178
8179 2017-09-06 Kamil Rytarowski <n54@gmx.com>
8180
8181 * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD.
8182
8183 2017-09-06 John Baldwin <jhb@FreeBSD.org>
8184
8185 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
8186 * NEWS: Mention new FreeBSD/mips native configuration.
8187 * configure.host: Add aarch64*-*-freebsd*.
8188 * configure.nat: Likewise.
8189 * aarch64-fbsd-nat.c: New file.
8190
8191 2017-09-06 John Baldwin <jhb@FreeBSD.org>
8192
8193 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o.
8194 (ALLDEPFILES): Add aarch64-fbsd-tdep.c.
8195 * NEWS: Mention new FreeBSD/aarch64 target.
8196 * configure.tgt: Add aarch64*-*-freebsd*.
8197 * aarch64-fbsd-tdep.c: New file.
8198 * aarch64-fbsd-tdep.h: New file.
8199
8200 2017-09-06 Kamil Rytarowski <n54@gmx.com>
8201
8202 * MAINTAINERS (Write After Approval): Add Kamil Rytarowski.
8203
8204 2017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
8205
8206 * parse.c (find_minsym_type_and_address): Don't relocate addresses
8207 of TLS symbols.
8208
8209 2017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8210
8211 * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
8212 call.
8213
8214 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
8215
8216 * infrun.c (follow_exec): Call add_thread after
8217 target_find_description.
8218
8219 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
8220
8221 * infrun.c (handle_inferior_event_1): When exec'ing, read
8222 stop_pc after follow_exec.
8223
8224 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
8225
8226 * remote.c (process_g_packet): Update error message.
8227
8228 2017-09-05 Yao Qi <yao.qi@linaro.org>
8229
8230 * configure.tgt (gdb_target_obs): Add i386.o for x86_64-*
8231 targets.
8232
8233 2017-09-05 Pedro Alves <palves@redhat.com>
8234
8235 * eval.c (eval_call, evaluate_funcall): New functions, factored
8236 out from ...
8237 (evaluate_subexp_standard): ... this.
8238
8239 2017-09-05 Yao Qi <yao.qi@linaro.org>
8240
8241 * amd64-tdep.c (amd64_target_description): Create target
8242 descriptions.
8243 (_initialize_amd64_tdep): Don't call functions
8244 initialize_tdesc_amd64_*. Add self tests.
8245 * arch/amd64.c (amd64_create_target_description): Add parameter
8246 is_linux. Call set_tdesc_osabi if is_linux is true.
8247 * arch/amd64.h (amd64_create_target_description): Update the
8248 declaration.
8249 * arch/i386.c (i386_create_target_description): Add parameter
8250 is_linux. Call set_tdesc_osabi if is_linux is true.
8251 * arch/i386.h (i386_create_target_description): Update
8252 declaration.
8253 * configure.tgt: Add i386.o to gdb_target_obs.
8254 * features/Makefile (XMLTOC): Remove i386/*.xml.
8255 * features/i386/amd64-avx-avx512.c: Remove.
8256 * features/i386/amd64-avx-mpx-avx512-pku.c: Remove.
8257 * features/i386/amd64-avx-mpx.c: Remove.
8258 * features/i386/amd64-avx.c: Remove.
8259 * features/i386/amd64-mpx.c: Remove.
8260 * features/i386/amd64.c: Remove.
8261 * features/i386/i386-avx-avx512.c: Remove.
8262 * features/i386/i386-avx-mpx-avx512-pku.c: Remove.
8263 * features/i386/i386-avx-mpx.c: Remove.
8264 * features/i386/i386-avx.c: Remove.
8265 * features/i386/i386-mmx.c: Remove.
8266 * features/i386/i386-mpx.c: Remove.
8267 * features/i386/i386.c: Remove.
8268 * i386-tdep.c: Don't include features/i386/i386*.c., include
8269 target-descriptions.h and arch/i386.h.
8270 (i386_target_description): Create target descriptions.
8271 (i386_gdbarch_init): Don't call initialize_tdesc_i386_*
8272 functions. Do self tests.
8273
8274 2017-09-05 Yao Qi <yao.qi@linaro.org>
8275
8276 * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml.
8277 * features/i386/amd64-avx-avx512-linux.c: Removed.
8278 * features/i386/amd64-avx-linux.c: Removed.
8279 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed.
8280 * features/i386/amd64-avx-mpx-linux.c: Removed.
8281 * features/i386/amd64-linux.c: Removed.
8282 * features/i386/amd64-mpx-linux.c: Removed.
8283 * features/i386/x32-avx-avx512-linux.c: Removed.
8284 * features/i386/x32-avx-linux.c: Removed.
8285 * features/i386/x32-linux.c: Removed.
8286
8287 2017-09-05 Yao Qi <yao.qi@linaro.org>
8288
8289 * amd64-linux-tdep.c: Include arch/amd64.h. Don't include
8290 features/i386/*.c.
8291 (amd64_linux_read_description): Call
8292 amd64_create_target_description.
8293 * arch/amd64.c: New file.
8294 * arch/amd64.h: New file.
8295 * configure.tgt (x86_64-*-linux*): Append amd64.o.
8296 * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o.
8297
8298 2017-09-05 Yao Qi <yao.qi@linaro.org>
8299
8300 * amd64-linux-tdep.c: Don't include amd64-XXX-linux and
8301 x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c.
8302 (amd64_linux_read_description): Create target descriptions.
8303 (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX
8304 functions. Add unit tests.
8305 * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and
8306 x32-core.xml.
8307 * features/i386/64bit-avx.c: Generated.
8308 * features/i386/64bit-avx512.c: Generated.
8309 * features/i386/64bit-core.c: Generated.
8310 * features/i386/64bit-linux.c: Generated.
8311 * features/i386/64bit-mpx.c: Generated.
8312 * features/i386/64bit-pkeys.c: Generated.
8313 * features/i386/64bit-segments.c: Generated.
8314 * features/i386/64bit-sse.c: Generated.
8315 * features/i386/x32-core.c: Generated.
8316 * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature
8317 c files for amd64-linux and x32-linux.
8318
8319 2017-09-05 Yao Qi <yao.qi@linaro.org>
8320
8321 * amd64-linux-tdep.c (amd64_linux_read_description): New
8322 function.
8323 (amd64_linux_core_read_description): Call
8324 amd64_linux_read_description.
8325 (amd64_linux_init_abi): Likewise.
8326 (amd64_x32_linux_init_abi): Likewise.
8327 * amd64-linux-tdep.h (amd64_linux_read_description): Declare.
8328 * x86-linux-nat.c (x86_linux_read_description): Call
8329 amd64_linux_read_description.
8330
8331 2017-09-05 Yao Qi <yao.qi@linaro.org>
8332
8333 * amd64-linux-tdep.c (amd64_linux_core_read_description): Update
8334 comments.
8335
8336 2017-09-05 Yao Qi <yao.qi@linaro.org>
8337
8338 * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml.
8339 * features/i386/i386-avx-avx512-linux.c: Remove.
8340 * features/i386/i386-avx-linux.c: Remove.
8341 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove.
8342 * features/i386/i386-avx-mpx-linux.c: Remove.
8343 * features/i386/i386-linux.c: Remove.
8344 * features/i386/i386-mmx-linux.c: Remove.
8345 * features/i386/i386-mpx-linux.c: Remove.
8346
8347 2017-09-05 Yao Qi <yao.qi@linaro.org>
8348
8349 * Makefile.in (ALL_TARGET_OBS): Add i386.o.
8350 (SFILES): Add arch/i386.c.
8351 (HFILES_NO_SRCDIR): Add arch/i386.h.
8352 * arch/i386.c: New file.
8353 * arch/i386.h: New file.
8354 * arch/tdesc.h (allocate_target_description): Declare.
8355 (set_tdesc_architecture): Declare.
8356 (set_tdesc_osabi): Declare.
8357 * configure.tgt (i[34567]86-*-linux*): Add i386.o.
8358 * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c.
8359 include arch/i386.h.
8360 (i386_linux_read_description): Remove code and call
8361 i386_create_target_description.
8362 (set_tdesc_architecture): New function.
8363 (set_tdesc_osabi): New function.
8364 * target-descriptions.h (allocate_target_description): Remove.
8365
8366 2017-09-05 Yao Qi <yao.qi@linaro.org>
8367
8368 * arch/tdesc.h (tdesc_create_feature): Add an argument xml.
8369 * target-descriptions.c (tdesc_create_feature): Likewise, and
8370 adjust code.
8371 * features/i386/32bit-avx.c: Re-generated.
8372 * features/i386/32bit-avx512.c: Re-generated.
8373 * features/i386/32bit-core.c: Re-generated.
8374 * features/i386/32bit-linux.c: Re-generated.
8375 * features/i386/32bit-mpx.c: Re-generated.
8376 * features/i386/32bit-pkeys.c: Re-generated.
8377 * features/i386/32bit-sse.c: Re-generated.
8378
8379 2017-09-05 Yao Qi <yao.qi@linaro.org>
8380
8381 * regformats/regdef.h (struct reg): Override operator == and !=.
8382
8383 2017-09-05 Yao Qi <yao.qi@linaro.org>
8384
8385 * arch/tdesc.h: New file.
8386 * regformats/regdat.sh: Generate code using tdesc_create_reg.
8387 * target-descriptions.c: Update comments.
8388 * target-descriptions.h: Include "arch/tdesc.h". Remove the
8389 declarations.
8390 * features/i386/32bit-avx.c: Re-generated.
8391 * features/i386/32bit-avx512.c: Re-generated.
8392 * features/i386/32bit-core.c: Re-generated.
8393 * features/i386/32bit-linux.c: Re-generated.
8394 * features/i386/32bit-mpx.c: Re-generated.
8395 * features/i386/32bit-pkeys.c: Re-generated.
8396 * features/i386/32bit-sse.c: Re-generated.
8397
8398 2017-09-05 Yao Qi <yao.qi@linaro.org>
8399
8400 * regformats/regdat.sh: Update generated code.
8401
8402 2017-09-05 Yao Qi <yao.qi@linaro.org>
8403
8404 * regformats/regdat.sh: Adjust code order.
8405
8406 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
8407
8408 * expprint.c (dump_subexp_body_standard): Use constant format
8409 string in fprintf_filtered call.
8410
8411 2017-09-04 John Baldwin <jhb@FreeBSD.org>
8412
8413 * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and
8414 NetBSD/i386.
8415 * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX.
8416
8417 2017-09-04 John Baldwin <jhb@FreeBSD.org>
8418
8419 * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H.
8420
8421 2017-09-04 John Baldwin <jhb@FreeBSD.org>
8422
8423 * bsd-kvm.o: Define _KMEMUSER.
8424 * configure.ac: Define _KMEMUSER when checking for "struct lwp".
8425 * configure: Regenerate.
8426
8427 2017-09-04 John Baldwin <jhb@FreeBSD.org>
8428
8429 * amd64-fbsd-nat.c: Add include of "x86-xstate.h".
8430 * i386-fbsd-nat.c: Likewise.
8431
8432 2017-09-04 John Baldwin <jhb@FreeBSD.org>
8433
8434 * unittests/array-view-selftests.c: Add include of <array>.
8435
8436 2017-09-04 John Baldwin <jhb@FreeBSD.org>
8437
8438 * spu-tdep.c (flush_ea_cache): Add missing argument to
8439 call_function_by_hand.
8440
8441 2017-09-04 Pedro Alves <palves@redhat.com>
8442
8443 * NEWS (Safer support for debugging with no debug info): New.
8444
8445 2017-09-04 Pedro Alves <palves@redhat.com>
8446
8447 * c-exp.y (function_method, function_method_void): Add current
8448 instance flags to TYPE_INSTANCE.
8449 * dwarf2read.c (check_modifier): New.
8450 (compute_delayed_physnames): Assert that only C++ adds delayed
8451 physnames. Mark fn_fields as const/volatile depending on
8452 physname.
8453 * eval.c (make_params): New type_instance_flags parameter. Use
8454 it as the new type's instance flags.
8455 (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance
8456 flags element and pass it to make_params.
8457 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle
8458 instance flags element.
8459 (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise.
8460 * gdbtypes.h: Include "enum-flags.h".
8461 (type_instance_flags): New enum-flags type.
8462 (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC)
8463 (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean.
8464 * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust.
8465 (follow_type_instance_flags): New function.
8466 (operator_check_standard) <TYPE_INSTANCE>: Adjust.
8467 * parser-defs.h (follow_type_instance_flags): Declare.
8468 * valops.c (value_struct_elt_for_reference): const/volatile must
8469 match too.
8470
8471 2017-09-04 Pedro Alves <palves@redhat.com>
8472
8473 * cp-namespace.c (cp_search_static_and_baseclasses): Handle
8474 function/method scopes; lookup the nested name as a function local
8475 static variable.
8476
8477 2017-09-04 Pedro Alves <palves@redhat.com>
8478
8479 (%type <voidval>): Add function_method.
8480 * c-exp.y (exp): New production for calls with no arguments.
8481 (function_method, function_method_void_or_typelist): New
8482 productions.
8483 (exp): New production for "method()::static_var".
8484 * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR.
8485 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
8486 Handle OP_FUNC_STATIC_VAR.
8487 * parse.c (operator_length_standard):
8488 Handle OP_FUNC_STATIC_VAR.
8489
8490 2017-09-04 Pedro Alves <palves@redhat.com>
8491
8492 * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS
8493 handling.
8494 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
8495 Ditto.
8496 * parse.c (operator_length_standard, operator_check_standard):
8497 Ditto.
8498 * std-operator.def (UNOP_MEMVAL_TLS): Delete.
8499
8500 2017-09-04 Pedro Alves <palves@redhat.com>
8501
8502 * ax-gdb.c: Include "typeprint.h".
8503 (gen_expr_for_cast): New function.
8504 (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it.
8505 <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's
8506 type is unknown.
8507 * dwarf2read.c (new_symbol_full): Fallback to int instead of
8508 nodebug_data_symbol.
8509 * eval.c: Include "typeprint.h".
8510 (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>:
8511 Error out if symbol has unknown type.
8512 <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to
8513 evaluate_subexp_for_cast.
8514 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle
8515 OP_VAR_MSYM_VALUE.
8516 (evaluate_subexp_for_cast): New function.
8517 * gdbtypes.c (init_nodebug_var_type): New function.
8518 (objfile_type): Use it to initialize types of variables with no
8519 debug info.
8520 * typeprint.c (error_unknown_type): New.
8521 * typeprint.h (error_unknown_type): New declaration.
8522 * compile/compile-c-types.c (convert_type_basic): Handle
8523 TYPE_CODE_ERROR; warn and fallback to int for variables with
8524 unknown type.
8525
8526 2017-09-04 Pedro Alves <palves@redhat.com>
8527
8528 * eval.c (evaluate_var_value): New function, factored out from ...
8529 (evaluate_subexp_standard): ... here.
8530
8531 2017-09-04 Pedro Alves <palves@redhat.com>
8532
8533 * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>:
8534 Remove useless assignments to 'op'.
8535
8536 2017-09-04 Pedro Alves <palves@redhat.com>
8537
8538 * eval.c (eval_skip_value): New function.
8539 (evaluate_subexp_standard): Use it.
8540
8541 2017-09-04 Pedro Alves <palves@redhat.com>
8542
8543 * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract
8544 function name from symbol/minsym and pass it to
8545 error_call_unknown_return_type.
8546
8547 2017-09-04 Pedro Alves <palves@redhat.com>
8548
8549 * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE.
8550 * ax-gdb.c (gen_msym_var_ref): New function.
8551 (gen_expr): Handle OP_VAR_MSYM_VALUE.
8552 * eval.c (evaluate_var_msym_value): New function.
8553 * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE.
8554 <OP_FUNCALL>: Extract function name from symbol/minsym and pass it
8555 to call_function_by_hand.
8556 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
8557 Handle OP_VAR_MSYM_VALUE.
8558 (union exp_element) <msymbol>: New field.
8559 * minsyms.h (struct type): Forward declare.
8560 (find_minsym_type_and_address): Declare.
8561 * parse.c (write_exp_elt_msym): New function.
8562 (write_exp_msymbol): Delete, refactored as ...
8563 (find_minsym_type_and_address): ... this new function.
8564 (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE.
8565 (operator_length_standard, operator_check_standard): Handle
8566 OP_VAR_MSYM_VALUE.
8567 * std-operator.def (OP_VAR_MSYM_VALUE): New.
8568
8569 2017-09-04 Pedro Alves <palves@redhat.com>
8570
8571 * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle
8572 TYPE_GNU_IFUNC specially here. Throw error if return type is
8573 unknown.
8574 * ada-typeprint.c (print_func_type): Handle functions with unknown
8575 return type.
8576 * c-typeprint.c (c_type_print_base): Handle functions and methods
8577 with unknown return type.
8578 * compile/compile-c-symbols.c (convert_symbol_bmsym)
8579 <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol.
8580 * compile/compile-c-types.c: Include "objfiles.h".
8581 (convert_func): For functions with unknown return type, warn and
8582 default to int.
8583 * compile/compile-object-run.c (compile_object_run): Adjust call
8584 to call_function_by_hand_dummy.
8585 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to
8586 call_function_by_hand.
8587 * eval.c (evaluate_subexp_standard): Adjust calls to
8588 call_function_by_hand. Handle functions and methods with unknown
8589 return type. Pass expect_type to call_function_by_hand.
8590 * f-typeprint.c (f_type_print_base): Handle functions with unknown
8591 return type.
8592 * gcore.c (call_target_sbrk): Adjust call to
8593 call_function_by_hand.
8594 * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL
8595 return type instead of int. Make nodebug_text_gnu_ifunc_symbol be
8596 an integer address type instead of nodebug.
8597 * guile/scm-value.c (gdbscm_value_call): Adjust call to
8598 call_function_by_hand.
8599 * infcall.c (error_call_unknown_return_type): New function.
8600 (call_function_by_hand): New "default_return_type" parameter.
8601 Pass it down.
8602 (call_function_by_hand_dummy): New "default_return_type"
8603 parameter. Use it instead of defaulting to int. If there's no
8604 default and the return type is unknown, throw an error. If
8605 there's a default return type, and the called function has no
8606 debug info, then assume the function is prototyped.
8607 * infcall.h (call_function_by_hand, call_function_by_hand_dummy):
8608 New "default_return_type" parameter.
8609 (error_call_unknown_return_type): New declaration.
8610 * linux-fork.c (call_lseek): Cast return type of lseek.
8611 (inferior_call_waitpid, checkpoint_command): Adjust calls to
8612 call_function_by_hand.
8613 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust
8614 calls to call_function_by_hand.
8615 * m2-typeprint.c (m2_procedure): Handle functions with unknown
8616 return type.
8617 * objc-lang.c (lookup_objc_class, lookup_child_selector)
8618 (value_nsstring, print_object_command): Adjust calls to
8619 call_function_by_hand.
8620 * p-typeprint.c (pascal_type_print_varspec_prefix): Handle
8621 functions with unknown return type.
8622 (pascal_type_print_func_varspec_suffix): New function.
8623 (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC,
8624 TYPE_CODE_METHOD>: Use it.
8625 * python/py-value.c (valpy_call): Adjust call to
8626 call_function_by_hand.
8627 * rust-lang.c (rust_evaluate_funcall): Adjust call to
8628 call_function_by_hand.
8629 * valarith.c (value_x_binop, value_x_unop): Adjust calls to
8630 call_function_by_hand.
8631 * valops.c (value_allocate_space_in_inferior): Adjust call to
8632 call_function_by_hand.
8633 * typeprint.c (type_print_unknown_return_type): New function.
8634 * typeprint.h (type_print_unknown_return_type): New declaration.
8635
8636 2017-09-04 Pedro Alves <palves@redhat.com>
8637
8638 * gdbtypes.c (lookup_function_type_with_arguments): Mark function
8639 types with more than one parameter as prototyped.
8640
8641 2017-09-04 Pedro Alves <palves@redhat.com>
8642
8643 * cli/cli-cmds.c (print_disassembly, disassemble_current_function)
8644 (disassemble_command): Use gdb_disassembly_flags instead of bare
8645 int.
8646 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn)
8647 (dump_insns, do_mixed_source_and_assembly_deprecated)
8648 (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly):
8649 Use gdb_disassembly_flags instead of bare int.
8650 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN)
8651 (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME)
8652 (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE)
8653 (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're...
8654 (enum gdb_disassembly_flag): ... values of this new enumeration.
8655 (gdb_disassembly_flags): Define.
8656 (gdb_disassembly)
8657 (gdb_pretty_print_disassembler::pretty_print_insn): Use it.
8658 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use
8659 gdb_disassembly_flags instead of bare int.
8660 * record-btrace.c (btrace_insn_history)
8661 (record_btrace_insn_history, record_btrace_insn_history_range)
8662 (record_btrace_insn_history_from): Use gdb_disassembly_flags
8663 instead of bare int.
8664 * record.c (get_insn_history_modifiers, cmd_record_insn_history):
8665 Use gdb_disassembly_flags instead of bare int.
8666 * target-debug.h (target_debug_print_gdb_disassembly_flags):
8667 Define.
8668 * target-delegates.c: Regenerate.
8669 * target.c (target_insn_history, target_insn_history_from)
8670 (target_insn_history_range): Use gdb_disassembly_flags instead of
8671 bare int.
8672 * target.h: Include "disasm.h".
8673 (struct target_ops) <to_insn_history, to_insn_history_from,
8674 to_insn_history_range>: Use gdb_disassembly_flags instead of bare
8675 int.
8676 (target_insn_history, target_insn_history_from)
8677 (target_insn_history_range): Use gdb_disassembly_flags instead of
8678 bare int.
8679
8680 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
8681
8682 * cli/cli-script.c (build_command_line): For if/while commands,
8683 check whether args is empty.
8684
8685 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
8686
8687 * cli/cli-script.h (enum misc_command_type): Move from defs.h.
8688 (enum command_control_type): Likewise.
8689 (struct command_line): Likewise.
8690 (free_command_lines): Likewise.
8691 (struct command_lines_deleter): Likewise.
8692 (command_line_up): Likewise.
8693 (read_command_lines): Likewise.
8694 (read_command_lines_1): Likewise.
8695 * defs.h (enum misc_command_type): Move to cli/cli-script.h.
8696 (enum command_control_type): Likewise.
8697 (struct command_line): Likewise.
8698 (free_command_lines): Likewise.
8699 (struct command_lines_deleter): Likewise.
8700 (command_line_up): Likewise.
8701 (read_command_lines): Likewise.
8702 (read_command_lines_1): Likewise.
8703 * breakpoint.h: Include cli/cli-script.h.
8704 * extension-priv.h: Likewise.
8705 * gdbcmd.h: Likewise.
8706
8707 2017-09-04 Pedro Alves <palves@redhat.com>
8708
8709 * ada-lang.c (is_known_support_routine): Move sal declaration to
8710 where it is initialized.
8711 * breakpoint.c (create_internal_breakpoint, init_catchpoint)
8712 (parse_breakpoint_sals, decode_static_tracepoint_spec)
8713 (clear_command, update_static_tracepoint): Remove init_sal
8714 references. Move declarations closer to initializations.
8715 * cli/cli-cmds.c (list_command): Move sal declarations closer to
8716 initializations.
8717 * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal
8718 references. Move sal declarations closer to initializations.
8719 * frame.c (find_frame_sal): Return a symtab_and_line via function
8720 return instead of output parameter. Remove init_sal references.
8721 * frame.h (find_frame_sal): Return a symtab_and_line via function
8722 return instead of output parameter.
8723 * guile/scm-frame.c (gdbscm_frame_sal): Adjust.
8724 * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new
8725 instead of memset.
8726 (gdbscm_find_pc_line): Remove init_sal reference.
8727 * infcall.c (call_function_by_hand_dummy): Remove init_sal
8728 references. Move declarations closer to initializations.
8729 * infcmd.c (set_step_frame): Update. Move declarations closer to
8730 initializations.
8731 (finish_backward): Remove init_sal references. Move declarations
8732 closer to initializations.
8733 * infrun.c (process_event_stop_test, handle_step_into_function)
8734 (insert_hp_step_resume_breakpoint_at_frame)
8735 (insert_step_resume_breakpoint_at_caller): Likewise.
8736 * linespec.c (create_sals_line_offset, decode_digits_ordinary)
8737 (symbol_to_sal): Likewise.
8738 * probe.c (parse_probes_in_pspace): Remove init_sal reference.
8739 * python/py-frame.c (frapy_find_sal): Move sal declaration closer
8740 to its initialization.
8741 * reverse.c (save_bookmark_command): Use new/delete. Remove
8742 init_sal references. Move declarations closer to initializations.
8743 * source.c (get_current_source_symtab_and_line): Remove brace
8744 initialization.
8745 (set_current_source_symtab_and_line): Now takes the sal by const
8746 reference. Remove brace initialization.
8747 (line_info): Remove init_sal reference.
8748 * source.h (set_current_source_symtab_and_line): Now takes a
8749 symtab_and_line via const reference.
8750 * stack.c (set_current_sal_from_frame): Adjust.
8751 (print_frame_info): Adjust.
8752 (get_last_displayed_sal): Return the sal via function return
8753 instead of via output parameter. Simplify.
8754 (frame_info): Adjust.
8755 * stack.h (get_last_displayed_sal): Return the sal via function
8756 return instead of via output parameter.
8757 * symtab.c (init_sal): Delete.
8758 (find_pc_sect_line): Remove init_sal references. Move
8759 declarations closer to initializations.
8760 (find_function_start_sal): Remove init_sal references. Move
8761 declarations closer to initializations.
8762 * symtab.h (struct symtab_and_line): In-class initialize all
8763 fields.
8764 * tracepoint.c (set_traceframe_context)
8765 (print_one_static_tracepoint_marker): Remove init_sal references.
8766 Move declarations closer to initializations.
8767 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust.
8768 * tui/tui-stack.c (tui_show_frame_info): Adjust. Move
8769 declarations closer to initializations.
8770 * tui/tui-winsource.c (tui_update_source_window_as_is): Remove
8771 init_sal references. Adjust.
8772
8773 2017-09-04 Pedro Alves <palves@redhat.com>
8774
8775 * ax-gdb.c (agent_command_1): Use range-for.
8776 * break-catch-throw.c (re_set_exception_catchpoint): Update.
8777 * breakpoint.c: Include "common/array-view.h".
8778 (init_breakpoint_sal, create_breakpoint_sal): Change sals
8779 parameter from struct symtabs_and_lines to
8780 array_view<symtab_and_line>. Adjust. Use range-for. Update.
8781 (breakpoint_sals_to_pc): Change sals parameter from struct
8782 symtabs_and_lines to std::vector reference.
8783 (check_fast_tracepoint_sals): Change sals parameter from struct
8784 symtabs_and_lines to std::array_view. Use range-for.
8785 (decode_static_tracepoint_spec): Return a std::vector instead of
8786 symtabs_and_lines. Update.
8787 (create_breakpoint): Update.
8788 (break_range_command, until_break_command, clear_command): Update.
8789 (base_breakpoint_decode_location, bkpt_decode_location)
8790 (bkpt_probe_create_sals_from_location)
8791 (bkpt_probe_decode_location, tracepoint_decode_location)
8792 (tracepoint_probe_decode_location)
8793 (strace_marker_create_sals_from_location): Return a std::vector
8794 instead of symtabs_and_lines.
8795 (strace_marker_create_breakpoints_sal): Update.
8796 (strace_marker_decode_location): Return a std::vector instead of
8797 symtabs_and_lines. Update.
8798 (update_breakpoint_locations): Change struct symtabs_and_lines
8799 parameters to gdb::array_view. Adjust.
8800 (location_to_sals): Return a std::vector instead of
8801 symtabs_and_lines. Update.
8802 (breakpoint_re_set_default): Use std::vector instead of struct
8803 symtabs_and_lines.
8804 (decode_location_default): Return a std::vector instead of
8805 symtabs_and_lines. Update.
8806 * breakpoint.h: Include "common/array-view.h".
8807 (struct breakpoint_ops) <decode_location>: Now returns a
8808 std::vector instead of returning a symtabs_and_lines via output
8809 parameter.
8810 (update_breakpoint_locations): Change sals parameters to use
8811 gdb::array_view.
8812 * cli/cli-cmds.c (edit_command, list_command): Update to use
8813 std::vector and gdb::array_view.
8814 (ambiguous_line_spec): Adjust to use gdb::array_view and
8815 range-for.
8816 (compare_symtabs): Rename to ...
8817 (cmp_symtabs): ... this. Change parameters to symtab_and_line
8818 const reference and adjust.
8819 (filter_sals): Rewrite using std::vector and standard algorithms.
8820 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify.
8821 (jump_command): Update to use std::vector.
8822 * linespec.c (struct linespec_state) <canonical_names>: Update
8823 comment.
8824 (add_sal_to_sals_basic): Delete.
8825 (add_sal_to_sals, filter_results, convert_results_to_lsals)
8826 (decode_line_2, create_sals_line_offset)
8827 (convert_address_location_to_sals, convert_linespec_to_sals)
8828 (convert_explicit_location_to_sals, parse_linespec)
8829 (event_location_to_sals, decode_line_full, decode_line_1)
8830 (decode_line_with_current_source)
8831 (decode_line_with_last_displayed, decode_objc)
8832 (decode_digits_list_mode, decode_digits_ordinary, minsym_found)
8833 (linespec_result::~linespec_result): Adjust to use std::vector
8834 instead of symtabs_and_lines.
8835 * linespec.h (linespec_sals::sals): Now a std::vector.
8836 (struct linespec_result): Use std::vector, bool, and in-class
8837 initialization.
8838 (decode_line_1, decode_line_with_current_source)
8839 (decode_line_with_last_displayed): Return std::vector.
8840 * macrocmd.c (info_macros_command): Use std::vector.
8841 * mi/mi-main.c (mi_cmd_trace_find): Use std::vector.
8842 * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use
8843 std::vector.
8844 * probe.h (parse_probes): Return a std::vector.
8845 * python/python.c (gdbpy_decode_line): Use std::vector and
8846 gdb::array_view.
8847 * source.c (select_source_symtab, line_info): Use std::vector.
8848 * stack.c (func_command): Use std::vector.
8849 * symtab.h (struct symtabs_and_lines): Delete.
8850 * tracepoint.c (tfind_line_command, scope_info): Use std::vector.
8851
8852 2017-09-04 Pedro Alves <palves@redhat.com>
8853
8854 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8855 unittests/array-view-selftests.c.
8856 (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o.
8857 * common/array-view.h: New file.
8858 * unittests/array-view-selftests.c: New file.
8859
8860 2017-09-04 Pedro Alves <palves@redhat.com>
8861
8862 * cli/cli-cmds.c (edit_command): Pass message to
8863 ambiguous_line_spec.
8864 (list_command): Pass message to ambiguous_line_spec. Say
8865 "first"/"last" instead of "start" and "end" to be consistent with
8866 the manual.
8867 (ambiguous_line_spec): Add 'format' and vararg parameters. Use
8868 them to print formatted message.
8869
8870 2017-09-04 Pedro Alves <palves@redhat.com>
8871
8872 * btrace.c (ftrace_add_pt): Pass btrace_insn to
8873 ftrace_update_insns by reference instead of pointer.
8874
8875 2017-09-04 Yao Qi <yao.qi@linaro.org>
8876
8877 * i386-go32-tdep.c: Include x86-xstate.h.
8878 (i386_go32_init_abi): Call i386_target_description.
8879 * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx
8880 if xcr0 is X86_XSTATE_X87_MASK.
8881 * i386-tdep.h (tdesc_i386): Remove the declaration.
8882 (tdesc_i386_mmx): Likewise.
8883
8884 2017-09-04 Yao Qi <yao.qi@linaro.org>
8885
8886 * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return
8887 X86_XSTATE_SSE_MASK instead of 0.
8888
8889 2017-09-04 Yao Qi <yao.qi@linaro.org>
8890
8891 * amd64-fbsd-nat.c (amd64fbsd_read_description): Call
8892 i386_target_description.
8893 * i386-fbsd-nat.c (i386fbsd_read_description): Call
8894 i386_target_description.
8895 * i386-tdep.c (i386_gdbarch_init): Likewise.
8896
8897 2017-09-04 Yao Qi <yao.qi@linaro.org>
8898
8899 * amd64-darwin-tdep.c: Include "x86-xstate.h".
8900 (x86_darwin_init_abi_64): Call amd64_target_description.
8901 * amd64-dicos-tdep.c: Likewise.
8902 * amd64-fbsd-nat.c: Likewise.
8903 * amd64-fbsd-tdep.c: Likewise.
8904 * amd64-nbsd-tdep.c: Likewise.
8905 * amd64-obsd-tdep.c: Likewise.
8906 * amd64-sol2-tdep.c: Likewise.
8907 * amd64-windows-tdep.c: Likewise.
8908 * amd64-tdep.h (tdesc_amd64): Remove the declaration.
8909
8910 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
8911
8912 * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove.
8913 (btrace_function) <insn>: Change type to use std::vector.
8914 * btrace.c (ftrace_debug, ftrace_call_num_insn,
8915 ftrace_find_call, ftrace_new_gap, ftrace_update_function,
8916 ftrace_update_insns, ftrace_compute_global_level_offset,
8917 btrace_stitch_bts, btrace_clear, btrace_insn_get,
8918 btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to
8919 change to std::vector.
8920 (ftrace_update_insns): Adjust to change to std::vector, change
8921 type of INSN parameter.
8922 (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns.
8923 * record-btrace.c (btrace_call_history_insn_range,
8924 btrace_compute_src_line_range,
8925 record_btrace_frame_prev_register): Adjust to change to
8926 std::vector.
8927 * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust
8928 to change to std::vector.
8929
8930 2017-09-03 Tom Tromey <tom@tromey.com>
8931
8932 * corefile.c (reopen_exec_file): Use std::string.
8933
8934 2017-09-03 Tom Tromey <tom@tromey.com>
8935
8936 * compile/compile.c (compile_register_name_mangled): Return
8937 std::string.
8938 * compile/compile-loc2c.c (pushf_register_address): Update.
8939 (pushf_register): Update.
8940 * compile/compile-c-types.c (convert_array): Update.
8941 * compile/compile-c-symbols.c (generate_vla_size): Update.
8942 (error_symbol_once): Use a gdb::unique_xmalloc_ptr.
8943 (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr.
8944 (convert_one_symbol): Update.
8945 (generate_c_for_for_one_variable): Update.
8946 * compile/compile-c-support.c (c_get_range_decl_name): Return a
8947 std::string.
8948 (generate_register_struct): Update.
8949 * compile/compile-internal.h (c_get_range_decl_name): Return a
8950 std::string.
8951 (compile_register_name_mangled): Return std::string.
8952
8953 2017-09-03 Tom Tromey <tom@tromey.com>
8954
8955 * utils.c (perror_string): Return a std::string.
8956 (throw_perror_with_name, perror_warning_with_name): Update.
8957
8958 2017-09-03 Tom Tromey <tom@tromey.com>
8959
8960 * demangle.c (demangle_command): Use std::string,
8961 unique_xmalloc_ptr.
8962
8963 2017-09-03 Tom Tromey <tom@tromey.com>
8964
8965 * cli/cli-setshow.c (do_set_command): Use std::string.
8966
8967 2017-09-03 Tom Tromey <tom@tromey.com>
8968
8969 * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr.
8970
8971 2017-09-03 Tom Tromey <tom@tromey.com>
8972
8973 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string.
8974
8975 2017-09-03 Tom Tromey <tom@tromey.com>
8976
8977 * mi/mi-cmd-env.c (env_execute_cli_command): Use
8978 gdb::unique_xmalloc_ptr.
8979
8980 2017-09-03 Tom Tromey <tom@tromey.com>
8981
8982 * thread.c (print_thread_info_1): Use string_printf.
8983 (thread_apply_command, thread_apply_all_command): Use
8984 std::string.
8985
8986 2017-09-03 Tom Tromey <tom@tromey.com>
8987
8988 * valprint.c (val_print_string): Update.
8989 * gdbcore.h (memory_error_message): Return std::string.
8990 * corefile.c (memory_error_message): Return std::string.
8991 (memory_error): Update.
8992 * breakpoint.c (insert_bp_location): Update.
8993
8994 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
8995
8996 * target/waitstatus.h (target_waitstatus_to_string): Change
8997 return type to std::string.
8998 * target/waitstatus.c (target_waitstatus_to_string): Return
8999 std::string.
9000 * target.h (target_waitstatus_to_string): Remove declaration.
9001 * infrun.c (resume, clear_proceed_status_thread,
9002 print_target_wait_results, do_target_wait, save_waitstatus,
9003 stop_all_threads): Adjust.
9004 * record-btrace.c (record_btrace_wait): Adjust.
9005 * target-debug.h
9006 (target_debug_print_struct_target_waitstatus_p): Adjust.
9007
9008 2017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9009
9010 PR gdb/22046
9011 * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED
9012 detection.
9013
9014 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
9015
9016 * NEWS (Changes since GDB 8.0): Add entry mentioning new support
9017 for setting/unsetting environment variables on the remote target.
9018 (New remote packets): Add entries for QEnvironmentHexEncoded,
9019 QEnvironmentUnset and QEnvironmentReset.
9020 * common/environ.c (gdb_environ::operator=): Extend method to
9021 handle m_user_set_env_list and m_user_unset_env_list.
9022 (gdb_environ::clear): Likewise.
9023 (match_var_in_string): Change type of first parameter from 'char
9024 *' to 'const char *'.
9025 (gdb_environ::set): Extend method to handle
9026 m_user_set_env_list and m_user_unset_env_list.
9027 (gdb_environ::unset): Likewise.
9028 (gdb_environ::clear_user_set_env): New method.
9029 (gdb_environ::user_set_envp): Likewise.
9030 (gdb_environ::user_unset_envp): Likewise.
9031 * common/environ.h (gdb_environ): Handle m_user_set_env_list and
9032 m_user_unset_env_list on move constructor/assignment.
9033 (unset): Add new default parameter 'update_unset_list = true'.
9034 (clear_user_set_env): New method.
9035 (user_set_envp): Likewise.
9036 (user_unset_envp): Likewise.
9037 (m_user_set_env_list): New std::set.
9038 (m_user_unset_env_list): Likewise.
9039 * common/rsp-low.c (hex2str): New function.
9040 (bin2hex): New overload for bin2hex function.
9041 * common/rsp-low.c (hex2str): New prototype.
9042 (str2hex): New overload prototype.
9043 * remote.c: Include "environ.h". Add QEnvironmentHexEncoded,
9044 QEnvironmentUnset and QEnvironmentReset.
9045 (remote_protocol_features): Add QEnvironmentHexEncoded,
9046 QEnvironmentUnset and QEnvironmentReset packets.
9047 (send_environment_packet): New function.
9048 (extended_remote_environment_support): Likewise.
9049 (extended_remote_create_inferior): Call
9050 extended_remote_environment_support.
9051 (_initialize_remote): Add QEnvironmentHexEncoded,
9052 QEnvironmentUnset and QEnvironmentReset packet configs.
9053 * unittests/environ-selftests.c (gdb_selftest_env_var):
9054 New variable.
9055 (test_vector_initialization): New function.
9056 (test_init_from_host_environ): Likewise.
9057 (test_reinit_from_host_environ): Likewise.
9058 (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B):
9059 Likewise.
9060 (test_unset_set_empty_vector): Likewise.
9061 (test_vector_clear): Likewise.
9062 (test_std_move): Likewise.
9063 (test_move_constructor):
9064 (test_self_move): Likewise.
9065 (test_set_unset_reset): Likewise.
9066 (run_tests): Rewrite in terms of the functions above.
9067
9068 2017-08-31 Weimin Pan <weimin.pan@oracle.com>
9069
9070 * sparc64-tdep.c (adi_stat_t): Fix comment formatting.
9071 (adi_available): Use a temp variable of type CORE_ADDR as argument
9072 3 when calling target_auxv_search.
9073 (adi_normalize_address): Use masks and xor operators to calculate
9074 normalized address.
9075 (adi_read_versions, adi_write_versions, adi_print_versions)
9076 (do_examine, do_assign): Use paddress.
9077
9078 2017-08-29 John Baldwin <jhb@FreeBSD.org>
9079
9080 * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR.
9081 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR
9082 out of loop and add supply of FIR.
9083 (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and
9084 add collect of FIR.
9085
9086 2017-08-28 Simon Marchi <simon.marchi@ericsson.com>
9087
9088 PR gdb/21827
9089 * cli/cli-script.c (define_command): Don't convert command name
9090 to lower case.
9091
9092 2017-08-25 Joel Brobecker <brobecker@adacore.com>
9093
9094 * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp".
9095 Update all callers accordingly. Remove all code blocks handling
9096 the case where DISPP is not NULL.
9097
9098 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9099
9100 PR symtab/22003
9101 * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow)
9102 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
9103 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const.
9104
9105 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9106
9107 * dwarf2read.c (build_type_psymtabs_reader): New prototype.
9108 (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES.
9109 (read_comp_units_from_section): New parameter abbrev_section, use
9110 read_and_check_comp_unit_head, allocate signatured_type if needed.
9111 (create_all_comp_units): Update read_comp_units_from_section caller.
9112
9113 2017-08-23 Pedro Alves <palves@redhat.com>
9114
9115 PR remote/21852
9116 * remote.c (add_current_inferior_and_thread): Set inferior_ptid
9117 to null_ptid and switch to thread without reading the registers
9118 after adding the inferior.
9119
9120 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9121
9122 * NEWS (Changes since GDB 8.0): Add set compile-gcc and show
9123 compile-gcc.
9124 * compile/compile.c (compile_gcc, show_compile_gcc): New.
9125 (compile_to_object): Implement compile_gcc.
9126 (_initialize_compile): Install "set compile-gcc". Initialize
9127 compile_gcc.
9128
9129 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9130
9131 * compile/compile.c (compile_to_object): Conditionally call
9132 set_verbose. Conditionally call compile or compile_v0.
9133
9134 2017-08-07 Weimin Pan <weimin.pan@oracle.com>
9135
9136 * sparc64-tdep.h: (adi_normalize_address): New export.
9137 * sparc-nat.h: (open_adi_tag_fd): New export.
9138 * sparc64-linux-nat.c: (open_adi_tag_fd): New function.
9139 * sparc64-linux-tdep.c:
9140 (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines.
9141 (sparc64_linux_handle_segmentation_fault): New function.
9142 (sparc64_linux_init_abi): Register
9143 sparc64_linux_handle_segmentation_fault
9144 * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h.
9145 (sparc64_addr_bits_remove): New function.
9146 (sparc64_init_abi): Register sparc64_addr_bits_remove.
9147 (MAX_PROC_NAME_SIZE): New macro.
9148 (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines.
9149 (sparc64adilist): New variable.
9150 (adi_proc_list): New variable.
9151 (find_adi_info): New function.
9152 (add_adi_info): New function.
9153 (get_adi_info_proc): New function.
9154 (get_adi_info): New function.
9155 (info_adi_command): New function.
9156 (read_maps_entry): New function.
9157 (adi_available): New function.
9158 (adi_normalize_address): New function.
9159 (adi_align_address): New function.
9160 (adi_convert_byte_count): New function.
9161 (adi_tag_fd): New function.
9162 (adi_is_addr_mapped): New function.
9163 (adi_read_versions): New function.
9164 (adi_write_versions): New function.
9165 (adi_print_versions): New function.
9166 (do_examine): New function.
9167 (do_assign): New function.
9168 (adi_examine_command): New function.
9169 (adi_assign_command): New function.
9170 (_initialize_sparc64_adi_tdep): New function.
9171
9172 2017-08-22 Simon Marchi <simon.marchi@ericsson.com>
9173
9174 * breakpoint.c (breakpoints_info): Rename to ...
9175 (info_breakpoints_command): ... this.
9176 (watchpoints_info): Rename to ...
9177 (info_watchpoints_command): ... this.
9178 (tracepoints_info): Rename to ...
9179 (info_tracepoints_command): ... this.
9180 (_initialize_breakpoint): Adjust.
9181 * dcache.c (dcache_info): Rename to ...
9182 (info_display_command): ... this.
9183 (_initialize_dcache): Adjust.
9184 * frame.h (args_info): Rename to ...
9185 (info_args_command): ... this.
9186 (locals_info): Rename to ...
9187 (info_locals_command): ... this.
9188 * infcmd.c (nofp_registers_info): Rename to ...
9189 (info_registers_command): ... this.
9190 (float_info): Rename to ...
9191 (info_float_command): ... this.
9192 (program_info): Rename to ...
9193 (info_program_command): ... this.
9194 (all_registers_info): Rename to ...
9195 (info_all_registers_command): ... this.
9196 (vector_info): Rename to ...
9197 (info_vector_command): ... this.
9198 (float_info): Rename to ...
9199 (info_float_command): ... this.
9200 (_initialize_infcmd): Adjust.
9201 * inferior.h (term_info): Rename to ...
9202 (info_terminal_command): ... this.
9203 * inflow.c (term_info): Rename to ...
9204 (info_terminal_command): ... this.
9205 (_initialize_inflow): Adjust.
9206 * infrun.c (signals_info): Rename to ...
9207 (info_signals_command): ... this.
9208 (_initialize_infrun): Adjust.
9209 * objc-lang.c (classes_info): Rename to ...
9210 (info_classes_command): ... this.
9211 (selectors_info): Rename to ...
9212 (info_selectors_command): ... this.
9213 (_initialize_objc_language): Adjust.
9214 * printcmd.c (sym_info): Rename to ...
9215 (info_symbol_command): ... this.
9216 (address_info): Rename to ...
9217 (info_address_command): ... this.
9218 (display_info): Rename to ...
9219 (info_display_command): ... this.
9220 (_initialize_printcmd): Adjust.
9221 * reverse.c (bookmarks_info): Rename to ...
9222 (info_breakpoints_command): ... this.
9223 (_initialize_reverse): Adjust.
9224 * ser-go32.c (dos_info): Rename to ...
9225 (info_serial_command): ... this.
9226 (_initialize_ser_dos): Adjust.
9227 * skip.c (skip_info): Rename to ...
9228 (info_skip_command): ... this.
9229 (_initialize_step_skip): Adjust.
9230 * source.c (line_info): Rename to ...
9231 (info_line_command): ... this.
9232 (source_info): Rename to ...
9233 (info_source_command)
9234 * stack.c (frame_info): Rename to ...
9235 (info_frame_command): ... this.
9236 (locals_info): Rename to ...
9237 (info_locals_command): ... this.
9238 (args_info): Rename to ...
9239 (info_args_command): ... this.
9240 (_initialize_stack): Adjust.
9241 * symtab.c (sources_info): Rename to ...
9242 (info_sources_command): ... this.
9243 (variables_info): Rename to ...
9244 (info_variables_command): ... this.
9245 (functions_info): Rename to ...
9246 (info_functions_command): ... this.
9247 (types_info): Rename to ...
9248 (info_types_command): ... this.
9249 (_initialize_symtab): Adjust.
9250 * target.c (target_info): Rename to ...
9251 (info_target_command): ... this.
9252 (initialize_targets): Adjust.
9253 * tracepoint.c (tvariables_info): Rename to ...
9254 (info_tvariables_command): ... this.
9255 (scope_info): Rename to ...
9256 (info_scope_command): ... this.
9257 (trace_dump_actions): Adjust.
9258 (_initialize_tracepoint): Adjust.
9259
9260 2017-08-22 Tom Tromey <tom@tromey.com>
9261
9262 * breakpoint.h (install_breakpoint): Update.
9263 * breakpoint.c (add_solib_catchpoint): Update.
9264 (install_breakpoint): Change argument to a std::unique_ptr.
9265 (create_fork_vfork_event_catchpoint): Use std::unique_ptr.
9266 (create_breakpoint_sal, create_breakpoint): Update.
9267 (watch_command_1, catch_exec_command_1)
9268 (strace_marker_create_breakpoints_sal): Use std::unique_ptr.
9269 (add_to_breakpoint_chain): Change argument to a std::unique_ptr.
9270 Return the breakpoint.
9271 (set_raw_breakpoint_without_location, set_raw_breakpoint)
9272 (new_single_step_breakpoint): Update.
9273 * break-catch-throw.c (handle_gnu_v3_exceptions): Use
9274 std::unique_ptr.
9275 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
9276 std::unique_ptr.
9277 * break-catch-sig.c (create_signal_catchpoint): Use
9278 std::unique_ptr.
9279 * ada-lang.c (create_ada_exception_catchpoint): Use
9280 std::unique_ptr.
9281
9282 2017-08-22 Tom Tromey <tom@tromey.com>
9283
9284 * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr.
9285
9286 2017-08-22 Tom Tromey <tom@tromey.com>
9287
9288 * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr.
9289 (lookup_partial_symbol): Update.
9290
9291 2017-08-22 Tom Tromey <tom@tromey.com>
9292
9293 * source.h (rewrite_source_path): Return a unique_xmalloc_ptr.
9294 * source.c (rewrite_source_path): Return a unique_xmalloc_ptr.
9295 (find_and_open_source, symtab_to_fullname): Update.
9296 * psymtab.c (psymtab_to_fullname): Update.
9297
9298 2017-08-22 Tom Tromey <tom@tromey.com>
9299
9300 * exec.c (exec_file_attach): Update.
9301 * linux-thread-db.c (try_thread_db_load): Update.
9302 * guile/scm-safe-call.c (gdbscm_safe_source_script): Update.
9303 * utils.c (gdb_realpath): Change return type.
9304 (gdb_realpath_keepfile): Update.
9305 (gdb_realpath_check_trailer, gdb_realpath_tests): New functions.
9306 (_initialize_utils): Register the new self test.
9307 * source.c (openp): Update.
9308 (find_and_open_source): Update.
9309 * nto-tdep.c (nto_find_and_open_solib): Update.
9310 * main.c (set_gdb_data_directory): Update.
9311 (captured_main_1): Update.
9312 * dwarf2read.c (dwarf2_get_dwz_file): Update
9313 (dw2_map_symbol_filenames): Update.
9314 * auto-load.c (auto_load_safe_path_vec_update): Update.
9315 (filename_is_in_auto_load_safe_path_vec): Change type of
9316 "filename_realp".
9317 (auto_load_objfile_script): Update.
9318 (file_is_auto_load_safe): Update. Use std::string.
9319 * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr.
9320
9321 2017-08-22 Tom Tromey <tom@tromey.com>
9322
9323 * utils.c (gdb_realpath_keepfile): Return a
9324 gdb::unique_xmalloc_ptr.
9325 * exec.c (exec_file_attach): Update.
9326 * utils.h (gdb_realpath_keepfile): Return a
9327 gdb::unique_xmalloc_ptr.
9328
9329 2017-08-22 Tom Tromey <tom@tromey.com>
9330
9331 * compile/compile.c (compile_file_command): Use
9332 gdb::unique_xmalloc_ptr, std::string.
9333 * utils.c (gdb_abspath): Change return type.
9334 * source.c (openp): Update.
9335 * objfiles.c (allocate_objfile): Update.
9336 * main.c (set_gdb_data_directory): Update.
9337 * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr.
9338
9339 2017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com>
9340
9341 * cli-cmds.c (list_commands): List actual code around more than
9342 one location.
9343
9344 2017-08-21 John Baldwin <jhb@FreeBSD.org>
9345
9346 * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'.
9347
9348 2017-08-21 Pedro Alves <palves@redhat.com>
9349
9350 PR gdb/19487
9351 * c-exp.y (variable production): Handle function aliases.
9352 * minsyms.c (msymbol_is_text): New function.
9353 * minsyms.h (msymbol_is_text): Declare.
9354 * symtab.c (find_function_alias_target): New function.
9355 * symtab.h (find_function_alias_target): Declare.
9356
9357 2017-08-21 Pedro Alves <palves@redhat.com>
9358
9359 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past
9360 typedefs.
9361 * typeprint.c (whatis_exp): If handling "whatis", and expression
9362 is OP_TYPE, strip one typedef level. Otherwise don't strip
9363 typedefs here.
9364 * valops.c (value_cast): Save "to" type before resolving
9365 stubs/typedefs. Use that type as resulting value's type.
9366
9367 2017-08-18 Tom Tromey <tom@tromey.com>
9368 Pedro Alves <palves@redhat.com>
9369
9370 * spu-multiarch.c (parse_spufs_run): Use scoped_restore.
9371 * sol-thread.c (sol_thread_resume, sol_thread_wait)
9372 (sol_thread_xfer_partial, rw_common): Use scoped_restore.
9373 * procfs.c (procfs_do_thread_registers): Use scoped_restore.
9374 * proc-service.c (ps_xfer_memory): Use scoped_restore.
9375 * linux-tdep.c (linux_corefile_thread): Remove a cleanup.
9376 (linux_get_siginfo_data): Add "thread" argument. Use
9377 scoped_restore.
9378 * linux-nat.c (linux_child_follow_fork)
9379 (check_stopped_by_watchpoint): Use scoped_restore.
9380 * infrun.c (displaced_step_prepare_throw, write_memory_ptid)
9381 (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore.
9382 (restore_inferior_ptid, save_inferior_ptid): Remove.
9383 * btrace.c (btrace_fetch): Use scoped_restore.
9384 * bsd-uthread.c (bsd_uthread_fetch_registers)
9385 (bsd_uthread_store_registers): Use scoped_restore.
9386 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
9387 scoped_restore.
9388 * aix-thread.c (aix_thread_resume, aix_thread_wait)
9389 (aix_thread_xfer_partial): Use scoped_restore.
9390 * inferior.h (save_inferior_ptid): Remove.
9391
9392 2017-08-18 Yao Qi <yao.qi@linaro.org>
9393
9394 PR tdep/21818
9395 * arm-tdep.c (gdb_print_insn_arm): Mark
9396 USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL.
9397
9398 2017-08-18 Yao Qi <yao.qi@linaro.org>
9399
9400 * NEWS: Mention GDBserver's new option "--selftest".
9401 * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c.
9402 * selftest.c: Move it to common/selftest.c.
9403 * selftest.h: Move it to common/selftest.h.
9404 * selftest-arch.c (reset): New function.
9405 (tests_with_arch): Call reset.
9406
9407 2017-08-18 Yao Qi <yao.qi@linaro.org>
9408
9409 * selftest.c (run_tests): Don't call QUIT. Call debug_printf
9410 instead of exception_fprintf and printf_filtered.
9411
9412 2017-08-18 Yao Qi <yao.qi@linaro.org>
9413
9414 * selftest.c (register_self_test): Rename it to
9415 selftests::register_test.
9416 (run_self_tests): selftest::run_tests.
9417 * selftest.h: Update declarations.
9418 * selftest-arch.c (register_self_test_foreach_arch): Rename it to
9419 selftests::register_test_foreach_arch.
9420 * selftest-arch.h: Update declaration.
9421 * aarch64-tdep.c: Update.
9422 * arm-tdep.c: Likewise.
9423 * disasm-selftests.c: Likewise.
9424 * dwarf2loc.c: Likewise.
9425 * dwarf2-frame.c: Likewise.
9426 * findvar.c: Likewise.
9427 * gdbarch-selftests.c: Likewise.
9428 * maint.c (maintenance_selftest): Likewise.
9429 * regcache.c: Likewise.
9430 * rust-exp.y: Likewise.
9431 * selftest-arch.c: Likewise.
9432 * unittests/environ-selftests.c: Likewise.
9433 * unittests/function-view-selftests.c: Likewise.
9434 * unittests/offset-type-selftests.c: Likewise.
9435 * unittests/optional-selftests.c: Likewise.
9436 * unittests/scoped_restore-selftests.c: Likewise.
9437 * utils-selftests.c: Likewise.
9438
9439 2017-08-17 Pedro Alves <palves@redhat.com>
9440
9441 * cli/cli-cmds.c (source_command): Delete 'old_source_verbose'
9442 local.
9443
9444 2017-08-17 Pedro Alves <palves@redhat.com>
9445
9446 * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New
9447 field.
9448 (reset_die_in_process): Delete, replaced by ...
9449 (process_die_scope): ... this new class. Make it responsible for
9450 freeing cu->line_header too.
9451 (process_die): Use process_die_scope.
9452 (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in
9453 cu->line_header_die_owner. Don't release the line header if it's
9454 owned by the CU.
9455 (setup_type_unit_groups): Make the CU/DIE own the line header.
9456 Don't release the line header here.
9457
9458 2017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change)
9459
9460 * elfread.c (elf_read_minimal_symbols): xfree synthsyms.
9461
9462 2017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com>
9463
9464 * NEWS: Mention new shortcuts for nexti and stepi in TUI
9465 Single-Key mode
9466
9467 2017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com>
9468
9469 * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key
9470 mode command list.
9471
9472 2017-08-15 Stafford Horne <shorne@gmail.com>
9473
9474 * MAINTAINERS (Write After Approval): Add Stafford Horne.
9475
9476 2017-08-15 Stafford Horne <shorne@gmail.com>
9477
9478 * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname.
9479
9480 2017-08-15 Sergio Durigan Junior <sergiodj@redhat.com>
9481
9482 PR gdb/21954
9483 * infcmd.c (unset_environment_command): Use the 'clear' method on
9484 the environment instead of resetting it.
9485
9486 2017-08-15 John Baldwin <jhb@FreeBSD.org>
9487
9488 * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian
9489 platforms.
9490
9491 2017-08-14 Tom Tromey <tom@tromey.com>
9492
9493 * valprint.c (print_octal_chars): Use HOST_CHAR_BIT.
9494 (print_binary_chars): Likewise.
9495 (BITS_IN_BYTES): Remove.
9496
9497 2017-08-14 Tom Tromey <tom@tromey.com>
9498
9499 PR gdb/21675
9500 * valprint.c (LOW_ZERO): Change value to 034.
9501 (print_octal_chars): Add static_asserts for octal constants.
9502 * printcmd.c (print_scalar_formatted): Add 'd' case.
9503
9504 2017-08-11 Tom Tromey <tom@tromey.com>
9505
9506 * symfile.c (add_symbol_file_command): Use std::vector.
9507
9508 2017-08-14 Tom Tromey <tom@tromey.com>
9509
9510 * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move.
9511 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
9512 std::move.
9513 * break-catch-sig.c (create_signal_catchpoint): Use std::move.
9514
9515 2017-08-11 Pedro Alves <palves@redhat.com>
9516
9517 * infrun.c (process_event_stop_test): Adjust
9518 function_name_is_marked_for_skip call.
9519 * skip.c: Include <list>.
9520 (skiplist_entry): Make it a class with private fields, and
9521 getters/setters.
9522 (skiplist_entry_chain): Delete.
9523 (skiplist_entries): New.
9524 (skiplist_entry_count): Delete.
9525 (highest_skiplist_entry_num): New.
9526 (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete.
9527 (add_skiplist_entry): Delete.
9528 (skiplist_entry::skiplist_entry): New.
9529 (skiplist_entry::add_entry): New.
9530 (skip_file_command, skip_function): Adjust.
9531 (compile_skip_regexp): Delete.
9532 (skip_command): Don't compile regexp here. Adjust to use
9533 skiplist_entry::add_entry.
9534 (skip_info): Adjust to use range-for and getters.
9535 (skip_enable_command, skip_disable_command): Adjust to use
9536 range-for and setters.
9537 (skip_delete_command): Adjust to use std::list.
9538 (add_skiplist_entry): Delete.
9539 (skip_file_p): Delete, refactored as ...
9540 (skiplist_entry::do_skip_file_p): ... this new method.
9541 (skip_gfile_p): Delete, refactored as ...
9542 (skiplist_entry::do_gskip_file_p): ... this new method.
9543 (skip_function_p, skip_rfunction_p): Delete, refactored as ...
9544 (skiplist_entry::skip_function_p): ... this new method.
9545 (function_name_is_marked_for_skip): Now returns bool, and takes
9546 the function sal by const reference. Adjust to use range-for and
9547 skiplist_entry methods.
9548 (_initialize_step_skip): Remove references to
9549 skiplist_entry_chain, skiplist_entry_count.
9550 * skip.h (function_name_is_marked_for_skip): Now returns bool, and
9551 takes the function sal by const reference.
9552
9553 2017-08-11 Yao Qi <yao.qi@linaro.org>
9554
9555 * dwarf2-frame.c (clear_pointer_cleanup): Remove.
9556 (dwarf2_frame_cache): Remove reset_cache_cleanup.
9557 (dwarf2_frame_cache):
9558 * frame-unwind.c (frame_unwind_try_unwinder): Catch
9559 RETURN_MASK_ALL and set *this_case to NULL.
9560 * frame-unwind.h: Update comments.
9561
9562 2017-08-11 Yao Qi <yao.qi@linaro.org>
9563
9564 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove.
9565 (dwarf2_frame_state_copy_regs): Remove.
9566 (dwarf2_frame_state_free_regs): Remove.
9567 (dwarf2_frame_state::~dwarf2_frame_state): Remove.
9568 (dwarf2_restore_rule): Call method .alloc_regs instead of
9569 dwarf2_frame_state_alloc_regs.
9570 (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info
9571 constructor. Call std::move.
9572 (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs.
9573 (dwarf2_frame_cache): Likewise.
9574
9575 [GDB_SELF_TEST]: Include selftest.h and
9576 selftest-arch.h.
9577 [GDB_SELF_TEST] (execute_cfa_program_test): New function.
9578 (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register
9579 execute_cfa_program_test.
9580
9581 * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor,
9582 copy ctor, assignment operator, move assignment.
9583 <alloc_regs>: New method.
9584 <swap>: New method.
9585 (struct dwarf2_frame_state): Delete dtor.
9586 (dwarf2_frame_state_alloc_regs): Remove declaration.
9587 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call
9588 dwarf2_frame_state_alloc_regs, use .alloc_regs instead.
9589
9590 2017-08-11 Yao Qi <yao.qi@linaro.org>
9591
9592 * dwarf2-frame.c (dwarf2_frame_state_free): Remove.
9593 (dwarf2_frame_state::dwarf2_frame_state): New.
9594 (dwarf2_frame_state::~dwarf2_frame_state): New.
9595 (dwarf2_fetch_cfa_info): Update.
9596 (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object
9597 rather than a pointer. Update code.
9598 * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and
9599 dtor.
9600 <data_align, code_align, retaddr_column>: Change them to const.
9601 <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them
9602 to bool.
9603
9604 2017-08-11 Yao Qi <yao.qi@linaro.org>
9605
9606 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove.
9607 <loc.exp>: New field.
9608 * dwarf2-frame.c (execute_cfa_program): Update.
9609 (dwarf2_frame_prev_register): Update.
9610
9611 2017-08-10 Pedro Alves <palves@redhat.com>
9612
9613 * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define.
9614
9615 2017-08-09 John Baldwin <jhb@FreeBSD.org>
9616
9617 * fbsd-nat.c (struct fbsd_fork_info): Remove.
9618 (fbsd_pending_children): Use std::list.
9619 (fbsd_remember_child): Likewise.
9620 (fbsd_is_child_pending): Likewise.
9621 (fbsd_pending_vfork_done): Use std::forward_list.
9622 (fbsd_add_vfork_done): Likewise.
9623 (fbsd_is_vfork_done_pending): Likewise.
9624 (fbsd_next_vfork_done): Likewise.
9625
9626 2017-08-09 John Baldwin <jhb@FreeBSD.org>
9627
9628 * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New.
9629 (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr.
9630 [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string
9631 for `mapfilename'.
9632 (fbsd_xfer_partial): Use gdb::byte_vector.
9633 (fbsd_add_threads): Use gdb::unique_xmalloc_ptr.
9634
9635 2017-08-09 John Baldwin <jhb@FreeBSD.org>
9636
9637 * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and
9638 "filestuff.h".
9639 (fbsd_find_memory_regions): Fix `mapfile' initialization.
9640
9641 2017-08-09 Tom Tromey <tom@tromey.com>
9642
9643 * skip.c (skiplist_entry): New constructor.
9644 (skiplist_entry::enabled, skiplist_entry::function_is_regexp)
9645 (skiplist_entry::file_is_glob): Now bool.
9646 (skiplist_entry::file, skiplist_entry::function): Now
9647 std::string.
9648 (make_skip_entry): Return a unique_ptr. Use new.
9649 (free_skiplist_entry, free_skiplist_entry_cleanup)
9650 (make_free_skiplist_entry_cleanup): Remove.
9651 (skip_command, skip_disable_command, add_skiplist_entry)
9652 (skip_form_bytes, compile_skip_regexp, skip_command, skip_info)
9653 (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p)
9654 (function_name_is_marked_for_skip): Update.
9655 (skip_delete_command): Update. Use delete.
9656
9657 2017-08-09 Jiong Wang <jiong.wang@arm.com>
9658
9659 * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h".
9660 (aarch64_linux_core_read_description): New function.
9661 (aarch64_linux_init_abi): Register gdbarch_core_read_description.
9662
9663 2017-08-09 Pedro Alves <palves@redhat.com>
9664
9665 * cp-name-parser.y (cp_comp_to_string): Return a
9666 gdb::unique_xmalloc_ptr<char>.
9667 * cp-support.c (replace_typedefs_qualified_name)
9668 (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>.
9669 (cp_canonicalize_string_full): Use op= instead of explicit
9670 convertion.
9671 (cp_class_name_from_physname, method_name_from_physname)
9672 (cp_func_name, cp_remove_params): Adjust to use
9673 gdb::unique_xmalloc_ptr<char>.
9674 * cp-support.h (cp_comp_to_string): Return a
9675 gdb::unique_xmalloc_ptr<char>.
9676 * python/py-type.c (typy_lookup_type): Adjust to use
9677 gdb::unique_xmalloc_ptr<char>.
9678
9679 2017-08-09 H.J. Lu <hongjiu.lu@intel.com>
9680
9681 * dwarf2read.c (dwarf2_string_attr): Fix a typo.
9682
9683 2017-08-09 Alex Lindsay <alexlindsay239@gmail.com>
9684 Yao Qi <yao.qi@linaro.org>
9685
9686 * cp-support.c (cp_canonicalize_string_full): Use
9687 gdb::unique_xmalloc_ptr<char>.
9688 (cp_canonicalize_string): Likewise.
9689
9690 2017-08-09 Yao Qi <yao.qi@linaro.org>
9691
9692 * features/Makefile (WHICH): Remove i386/ non-linux stuff.
9693 * regformats/i386/amd64-avx-avx512.dat: Remove.
9694 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove.
9695 * regformats/i386/amd64-avx-mpx.dat:Remove.
9696 * regformats/i386/amd64-avx.dat: Remove.
9697 * regformats/i386/amd64-mpx.dat: Remove.
9698 * regformats/i386/i386-avx-avx512.dat: Remove.
9699 * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove.
9700 * regformats/i386/i386-avx-mpx.dat: Remove.
9701 * regformats/i386/i386-mmx.dat: Remove.
9702 * regformats/i386/i386-mpx.dat: Remove.
9703
9704 2017-08-09 Yao Qi <yao.qi@linaro.org>
9705
9706 * amd64-tdep.h (tdesc_x32): Remove the declaration.
9707 * amd64-tdep.c: Don't include features/i386/x32*.c.
9708 (_initialize_amd64_tdep): Don't call initialize_tdesc_x32*
9709 functions.
9710 * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx,
9711 and i386/x32-avx-avx512.
9712 (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml,
9713 and i386/x32.xml.
9714 * features/i386/x32-avx-avx512.c: Removed.
9715 * features/i386/x32-avx-avx512.xml: Removed.
9716 * features/i386/x32-avx.c: Removed.
9717 * features/i386/x32-avx.xml: Removed.
9718 * features/i386/x32.c: Removed.
9719 * features/i386/x32.xml: Removed.
9720 * regformats/i386/x32-avx-avx512.dat: Removed.
9721 * regformats/i386/x32-avx.dat: Removed.
9722 * regformats/i386/x32.dat: Removed.
9723
9724 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
9725
9726 PR breakpoints/21886
9727 * mem-break.c (default_memory_insert_breakpoint): Use
9728 `->placed_address' rather than `->reqstd_address' for the
9729 breakpoint location.
9730
9731 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
9732
9733 * arch-utils.c (default_print_insn): Remove arch/mach/endian
9734 assertions.
9735
9736 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
9737
9738 * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with
9739 a union of `tdep_info', `tdesc_data' and `id'.
9740 * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data'
9741 rather than `info.tdep_info'.
9742 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
9743 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
9744 * i386-tdep.c (i386_gdbarch_init): Likewise.
9745 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
9746 * mips-tdep.c (mips_gdbarch_init): Likewise.
9747 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
9748 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
9749 * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than
9750 `info.tdep_info'.
9751 (ppc_linux_init_abi): Use `info.tdesc_data' rather than
9752 `info.tdep_info'.
9753 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
9754 * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than
9755 `info.tdep_info'.
9756 * spu-tdep.c (spu_gdbarch_init): Likewise.
9757 * gdbarch.h: Regenerate.
9758
9759 2017-08-07 Leszek Swirski <leszeks@google.com>
9760
9761 PR symtab/20899
9762 * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt.
9763
9764 2017-08-07 Simon Marchi <simon.marchi@ericsson.com>
9765
9766 * remote-sim.c (gdbsim_load): Remove char **argv local variable.
9767 (gdbsim_open): Rename gdb_argv args object to argv.
9768
9769 2017-08-05 Tom Tromey <tom@tromey.com>
9770
9771 * compile/compile-object-load.c (compile_object_load): Use
9772 gdb::unique_xmalloc_ptr.
9773 * cli/cli-dump.c (scan_filename): Rename from
9774 scan_filename_with_cleanup. Change return type.
9775 (scan_expression): Rename from scan_expression_with_cleanup.
9776 Change return type.
9777 (dump_memory_to_file, dump_value_to_file, restore_command):
9778 Use gdb::unique_xmalloc_ptr. Update.
9779 * cli/cli-cmds.c (find_and_open_script): Use
9780 gdb::unique_xmalloc_ptr.
9781 * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr.
9782 * symmisc.c (maintenance_print_symbols)
9783 (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr.
9784 * symfile.c (symfile_bfd_open, generic_load)
9785 (add_symbol_file_command, remove_symbol_file_command): Use
9786 gdb::unique_xmalloc_ptr.
9787 * source.c (openp): Use gdb::unique_xmalloc_ptr.
9788 * psymtab.c (maintenance_print_psymbols): Use
9789 gdb::unique_xmalloc_ptr.
9790 * corelow.c (core_open): Use gdb::unique_xmalloc_ptr.
9791 * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr.
9792 * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr.
9793 (reload_shared_libraries_1): Likewise.
9794
9795 2017-08-05 Tom Tromey <tom@tromey.com>
9796
9797 * rust-exp.y (rust_op_ptr, set_field): Remove typedefs.
9798 (rust_op_vector, rust_set_vector): New typedefs.
9799 (current_parser): New global.
9800 (work_obstack): Change to pointer type. Update all users.
9801 (rust_ast, pstate): Remove globals.
9802 (struct rust_parser): New.
9803 (%union) <params, field_inits>: Change type.
9804 (start, tuple_expr, unit_expr, struct_expr_list, literal)
9805 (field_expr, expr_list, maybe_expr_list, type_list): Update.
9806 (ast_call_ish, ast_path, ast_function_type, ast_tuple_type)
9807 (convert_params_to_types, convert_params_to_expression): Change
9808 type of "params".
9809 (ast_string): Change type of "fields".
9810 (rust_parse): Make a rust_parser. Remove cleanups.
9811 (rust_lex_tests): Make and install an auto_obstack.
9812
9813 2017-08-04 Yao Qi <yao.qi@linaro.org>
9814
9815 * configure.srv (ipa_x32_linux_regobj): New.
9816 * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
9817 instead of X86_TDESC_AVX512.
9818 (initialize_low_tracepoint): Call
9819 init_registers_x32_avx_avx512_linux.
9820
9821 2017-08-04 Yao Qi <yao.qi@linaro.org>
9822
9823 * utils.h (gdb_argv): Add namespace std for nullptr_t.
9824
9825 2017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com>
9826
9827 * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev.
9828
9829 2017-08-03 Tom Tromey <tom@tromey.com>
9830
9831 * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv):
9832 Remove.
9833 * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove.
9834
9835 2017-08-03 Tom Tromey <tom@tromey.com>
9836
9837 * python/py-param.c (compute_enum_values): Use gdb_argv.
9838
9839 2017-08-03 Tom Tromey <tom@tromey.com>
9840
9841 * utils.h (struct gdb_argv_deleter): New.
9842 (gdb_argv): New class.
9843 * utils.c (gdb_argv::reset): New method.
9844 * tracepoint.c (delete_trace_variable_command): Use gdb_argv.
9845 * tracefile.c (tsave_command): Use gdb_argv.
9846 * top.c (new_ui_command): Use gdb_argv.
9847 * symmisc.c (maintenance_print_symbols)
9848 (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv.
9849 * symfile.c (symbol_file_command, generic_load)
9850 (remove_symbol_file_command): Use gdb_argv.
9851 * stack.c (backtrace_command): Use gdb_argv.
9852 * source.c (add_path, show_substitute_path_command)
9853 (unset_substitute_path_command, set_substitute_path_command):
9854 Use gdb_argv.
9855 * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv.
9856 * ser-mingw.c (pipe_windows_open): Use gdb_argv.
9857 * remote.c (extended_remote_run, remote_put_command)
9858 (remote_get_command, remote_delete_command): Use gdb_argv.
9859 * remote-sim.c (gdbsim_load, gdbsim_create_inferior)
9860 (gdbsim_open): Use gdb_argv.
9861 * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv.
9862 * psymtab.c (maintenance_print_psymbols): Use gdb_argv.
9863 * procfs.c (procfs_info_proc): Use gdb_argv.
9864 * interps.c (interpreter_exec_cmd): Use gdb_argv.
9865 * infrun.c (handle_command): Use gdb_argv.
9866 * inferior.c (add_inferior_command, clone_inferior_command):
9867 Use gdb_argv.
9868 * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv.
9869 * exec.c (exec_file_command): Use gdb_argv.
9870 * cli/cli-cmds.c (alias_command): Use gdb_argv.
9871 * compile/compile.c (build_argc_argv): Use gdb_argv.
9872
9873 2017-08-03 Tom Tromey <tom@tromey.com>
9874
9875 * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr.
9876
9877 2017-08-03 Tom Tromey <tom@tromey.com>
9878
9879 * python/python.c (compute_python_string): Return std::string.
9880 (gdbpy_eval_from_control_command): Update.
9881 (do_start_initialization): Use std::string.
9882 * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not
9883 xstrprintf.
9884 * python/py-breakpoint.c (local_setattro): Use string_printf, not
9885 xstrprintf.
9886
9887 2017-08-03 Tom Tromey <tom@tromey.com>
9888
9889 * top.h (do_restore_instream_cleanup): Remove.
9890 * top.c (do_restore_instream_cleanup): Remove.
9891 (read_command_file): Use scoped_restore.
9892 * cli/cli-script.c (execute_user_command): Use scoped_restore.
9893
9894 2017-08-03 Tom Tromey <tom@tromey.com>
9895
9896 * cli/cli-script.c (execute_user_command)
9897 (execute_control_command): Use scoped_restore.
9898
9899 2017-08-03 Tom Tromey <tom@tromey.com>
9900
9901 * cli/cli-script.c (do_restore_user_call_depth): Remove.
9902 (execute_user_command): Remove user_call_depth; use
9903 user_args_stack's size instead.
9904
9905 2017-08-03 Tom Tromey <tom@tromey.com>
9906
9907 * top.h (in_user_command): Remove.
9908 * top.c (in_user_command): Remove.
9909 * cli/cli-script.c (do_restore_user_call_depth)
9910 (execute_user_command): Update.
9911
9912 2017-08-03 Tom Tromey <tom@tromey.com>
9913
9914 * valops.c (search_struct_method): Use gdb::byte_vector.
9915 * valarith.c (value_concat): Use std::vector.
9916 * target.c (memory_xfer_partial): Use gdb::byte_vector.
9917 (simple_search_memory): Likewise.
9918 * printcmd.c (find_string_backward): Use gdb::byte_vector.
9919 * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector.
9920 * gcore.c (gcore_copy_callback): Use gdb::byte_vector.
9921 * elfread.c (elf_rel_plt_read): Use std::string.
9922 * cp-valprint.c (cp_print_value): Use gdb::byte_vector.
9923 * cli/cli-dump.c (restore_section_callback): Use
9924 gdb::byte_vector.
9925
9926 2017-08-03 Tom Tromey <tom@tromey.com>
9927
9928 * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr.
9929
9930 2017-08-03 Tom Tromey <tom@tromey.com>
9931
9932 * tui/tui-regs.c (tui_restore_gdbout): Remove.
9933 (tui_register_format): Use scoped_restore.
9934
9935 2017-08-03 Tom Tromey <tom@tromey.com>
9936
9937 * reverse.c (exec_direction_default): Remove.
9938 (exec_reverse_once): Use scoped_restore.
9939 * remote.c (restore_remote_timeout): Remove.
9940 (remote_flash_erase, remote_flash_write, remote_flash_done)
9941 (readchar, remote_serial_write): Use scoped_restore.
9942 * cli/cli-script.c (struct source_cleanup_lines_args)
9943 (source_cleanup_lines): Remove.
9944 (script_from_file): Use scoped_restore.
9945 * cli/cli-cmds.c (source_verbose_cleanup): Remove.
9946 (source_command): Use scoped_restore.
9947
9948 2017-08-03 Tom Tromey <tom@tromey.com>
9949
9950 * utils.h (make_cleanup_free_so): Remove.
9951 * utils.c (do_free_so, make_cleanup_free_so): Remove.
9952 * solist.h (struct so_deleter): New.
9953 (so_list_up): New typedef.
9954 * solib-svr4.c (svr4_read_so_list): Use so_list_up.
9955
9956 2017-08-03 Tom Tromey <tom@tromey.com>
9957
9958 * utils.h (make_cleanup_restore_current_language): Remove.
9959 * utils.c (do_restore_current_language)
9960 (make_cleanup_restore_current_language): Remove.
9961 * parse.c (parse_exp_in_context_1)
9962 (parse_expression_with_language): Use
9963 scoped_restore_current_language.
9964 * mi/mi-main.c (mi_cmd_execute): Use
9965 scoped_restore_current_language.
9966 * language.h (scoped_restore_current_language): New class.
9967
9968 2017-08-03 Tom Tromey <tom@tromey.com>
9969
9970 * compile/compile.c (cleanup_unlink_file): Remove.
9971 (compile_to_object): Use gdb::unlinker.
9972 (eval_compile_command): Likewise.
9973
9974 2017-08-03 Tom Tromey <tom@tromey.com>
9975
9976 * utils.h (make_cleanup_fclose): Remove.
9977 * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove.
9978
9979 2017-08-03 Tom Tromey <tom@tromey.com>
9980
9981 * top.c (open_terminal_stream): Return gdb_file_up.
9982 (new_ui_command): Update.
9983
9984 2017-08-03 Tom Tromey <tom@tromey.com>
9985
9986 * source.c (print_source_lines_base, forward_search_command)
9987 (reverse_search_command): Use gdb_file_up.
9988
9989 2017-08-03 Tom Tromey <tom@tromey.com>
9990
9991 * fbsd-nat.c (fbsd_find_memory_regions): Update.
9992
9993 2017-08-03 Tom Tromey <tom@tromey.com>
9994
9995 * cli/cli-cmds.c (find_and_open_script): Change return type.
9996 Remove "streamp" and "full_path" parameters.
9997 (source_script_with_search): Update.
9998 * auto-load.c (source_script_file): Update.
9999 * cli/cli-cmds.h (find_and_open_script): Change type.
10000 (open_script): New struct.
10001
10002 2017-08-03 Tom Tromey <tom@tromey.com>
10003
10004 * xml-support.c (xml_fetch_content_from_file): Update.
10005 * ui-file.c (stdio_file::open): Update.
10006 * tracefile-tfile.c (tfile_start): Update.
10007 * remote.c (remote_file_put, remote_file_get): Update.
10008 * nat/linux-procfs.c (linux_proc_get_int)
10009 (linux_proc_pid_get_state, linux_proc_tid_get_name): Update.
10010 * nat/linux-osdata.c (linux_common_core_of_thread): Update.
10011 (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus)
10012 (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem)
10013 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update.
10014 * nat/linux-btrace.c (linux_determine_kernel_start): Update.
10015 * linux-nat.c (linux_proc_pending_signals): Update.
10016 * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up.
10017 (file_closer): Remove.
10018 * compile/compile.c (compile_to_object): Update.
10019 * common/filestuff.h (struct gdb_file_deleter): New.
10020 (gdb_file_up): New typedef.
10021 (gdb_fopen_cloexec): Change return type.
10022 * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up.
10023 * cli/cli-dump.c (fopen_with_cleanup): Remove.
10024 (dump_binary_file, restore_binary_file): Update.
10025 * auto-load.c (auto_load_objfile_script_1): Update.
10026
10027 2017-08-03 Tom Tromey <tom@tromey.com>
10028
10029 * tracepoint.c (tvariables_info_1): Use ui_out_emit_table.
10030 (info_static_tracepoint_markers_command): Likewise.
10031 * solib.c (info_sharedlibrary_command): Use ui_out_emit_table.
10032 * skip.c (skip_info): Use ui_out_emit_table.
10033 * progspace.c (print_program_space): Use ui_out_emit_table.
10034 * osdata.c (info_osdata): Use ui_out_emit_table.
10035 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use
10036 ui_out_emit_table.
10037 * linux-thread-db.c (info_auto_load_libthread_db): Use
10038 ui_out_emit_table.
10039 * inferior.c (print_inferior): Use ui_out_emit_table.
10040 * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table.
10041 * breakpoint.c (breakpoint_1): Use ui_out_emit_table.
10042 * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table.
10043 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table.
10044 * ui-out.h (class ui_out_emit_table): New.
10045
10046 2017-08-02 Maciej W. Rozycki <macro@imgtec.com>
10047
10048 * mips-tdep.c (mips_fpu_type_str): New function.
10049 (mips_dump_tdep): Call it.
10050
10051 2017-08-01 Maciej W. Rozycki <macro@imgtec.com>
10052
10053 * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access
10054 `->mips_fpu_type'.
10055
10056 2017-07-31 Xavier Roirand <roirand@adacore.com>
10057
10058 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
10059
10060 2017-07-27 Xavier Roirand <roirand@adacore.com>
10061
10062 * MAINTAINERS (Write After Approval): Add Xavier Roirand.
10063
10064 2017-07-26 Yao Qi <yao.qi@linaro.org>
10065
10066 * cli/cli-cmds.c (maintenancechecklist): New variable.
10067 * gdbcmd.h (maintenancechecklist): Declare it.
10068 * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]:
10069 Call i386_linux_read_description with different masks.
10070 * maint.c (maintenance_check_command): New function.
10071 (_initialize_maint_cmds): Call add_prefix_cmd.
10072 * target-descriptions.c (tdesc_reg): override operator != and ==.
10073 (tdesc_type): Likewise.
10074 (tdesc_feature): Likewise.
10075 (target_desc): Likewise.
10076 [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function.
10077 (maintenance_check_xml_descriptions): New function.
10078 (_initialize_target_descriptions) Add command "xml-descriptions".
10079 * target-descriptions.h (selftests::record_xml_tdesc): Declare.
10080
10081 2017-07-26 Yao Qi <yao.qi@linaro.org>
10082
10083 * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c.
10084 Include features/i386/32bit-*.c.
10085 (i386_linux_read_description): Generate target description if it
10086 doesn't exist.
10087 (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386
10088 functions.
10089 * features/i386/32bit-linux.c: Re-generated.
10090 * features/i386/32bit-sse.c: Likewise.
10091 * target-descriptions.c (print_c_feature::visit): Print code to
10092 set register number if needed.
10093 (print_c_feature) <m_next_regnum>: New field.
10094
10095 2017-07-26 Yao Qi <yao.qi@linaro.org>
10096
10097 * features/Makefile (CFILES): Rename with TDESC_CFILES.
10098 (FEATURE_XMLFILES): New.
10099 (FEATURE_CFILES): New.
10100 New rules.
10101 (clean-cfiles): Remove generated c files.
10102 * features/i386/32bit-avx.c: Generated.
10103 * features/i386/32bit-avx512.c: Generated.
10104 * features/i386/32bit-core.c: Generated.
10105 * features/i386/32bit-linux.c: Generated.
10106 * features/i386/32bit-mpx.c: Generated.
10107 * features/i386/32bit-pkeys.c: Generated.
10108 * features/i386/32bit-sse.c: Generated.
10109 * target-descriptions.c: Include algorithm.
10110 (tdesc_element_visitor): Add method visit_end.
10111 (print_c_tdesc): Implement visit_end.
10112 (print_c_tdesc:: m_filename_after_features): Move it to
10113 protected.
10114 (print_c_feature): New class.
10115 (maint_print_c_tdesc_cmd): Use print_c_feature if XML file
10116 name starts with "i386/32bit-".
10117
10118 2017-07-26 Yao Qi <yao.qi@linaro.org>
10119
10120 * target-descriptions.c (tdesc_element_visitor): New class.
10121 (tdesc_element): New class.
10122 (tdesc_reg): Inherit from tdesc_element.
10123 (tdesc_reg::accept): New function.
10124 (tdesc_type): Inherit from tdesc_element.
10125 (tdesc_type::accept): New function.
10126 (tdesc_feature): Inherit from tdesc_element.
10127 (tdesc_feature::accept): New function.
10128 (target_desc): Inherit from tdesc_element.
10129 (target_desc::target_desc): New.
10130 (target_desc::~target_desc): New.
10131 (target_desc::accept): New.
10132 (allocate_target_description): Use new.
10133 (free_target_description): Use delete.
10134 (print_c_tdesc): New class.
10135 (maint_print_c_tdesc_cmd): Adjust.
10136
10137 * features/aarch64.c: Re-generated.
10138 * features/arc-arcompact.c: Re-generated.
10139 * features/arc-v2.c: Re-generated.
10140 * features/arm/arm-with-iwmmxt.c: Re-generated.
10141 * features/arm/arm-with-m.c: Re-generated.
10142 * features/arm/arm-with-m-fpa-layout.c: Re-generated.
10143 * features/arm/arm-with-m-vfp-d16.c: Re-generated.
10144 * features/arm/arm-with-neon.c: Re-generated.
10145 * features/arm/arm-with-vfpv2.c: Re-generated.
10146 * features/arm/arm-with-vfpv3.c: Re-generated.
10147 * features/i386/amd64-avx-avx512.c: Re-generated.
10148 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
10149 * features/i386/amd64-avx.c: Re-generated.
10150 * features/i386/amd64-avx-linux.c: Re-generated.
10151 * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated.
10152 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
10153 * features/i386/amd64-avx-mpx.c: Re-generated.
10154 * features/i386/amd64-avx-mpx-linux.c: Re-generated.
10155 * features/i386/amd64.c: Re-generated.
10156 * features/i386/amd64-linux.c: Re-generated.
10157 * features/i386/amd64-mpx.c: Re-generated.
10158 * features/i386/amd64-mpx-linux.c: Re-generated.
10159 * features/i386/i386-avx-avx512.c: Re-generated.
10160 * features/i386/i386-avx-avx512-linux.c: Re-generated.
10161 * features/i386/i386-avx.c: Re-generated.
10162 * features/i386/i386-avx-linux.c: Re-generated.
10163 * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated.
10164 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated.
10165 * features/i386/i386-avx-mpx.c: Re-generated.
10166 * features/i386/i386-avx-mpx-linux.c: Re-generated.
10167 * features/i386/i386.c: Re-generated.
10168 * features/i386/i386-linux.c: Re-generated.
10169 * features/i386/i386-mmx.c: Re-generated.
10170 * features/i386/i386-mmx-linux.c: Re-generated.
10171 * features/i386/i386-mpx.c: Re-generated.
10172 * features/i386/i386-mpx-linux.c: Re-generated.
10173 * features/i386/x32-avx-avx512.c: Re-generated.
10174 * features/i386/x32-avx-avx512-linux.c: Re-generated.
10175 * features/i386/x32-avx.c: Re-generated.
10176 * features/i386/x32-avx-linux.c: Re-generated.
10177 * features/i386/x32.c: Re-generated.
10178 * features/i386/x32-linux.c: Re-generated.
10179 * features/microblaze.c: Re-generated.
10180 * features/microblaze-with-stack-protect.c: Re-generated.
10181 * features/mips64-dsp-linux.c: Re-generated.
10182 * features/mips64-linux.c: Re-generated.
10183 * features/mips-dsp-linux.c: Re-generated.
10184 * features/mips-linux.c: Re-generated.
10185 * features/nds32.c: Re-generated.
10186 * features/nios2.c: Re-generated.
10187 * features/nios2-linux.c: Re-generated.
10188 * features/rs6000/powerpc-32.c: Re-generated.
10189 * features/rs6000/powerpc-32l.c: Re-generated.
10190 * features/rs6000/powerpc-403.c: Re-generated.
10191 * features/rs6000/powerpc-403gc.c : Re-generated.
10192 * features/rs6000/powerpc-405.c: Re-generated.
10193 * features/rs6000/powerpc-505.c: Re-generated.
10194 * features/rs6000/powerpc-601.c: Re-generated.
10195 * features/rs6000/powerpc-602.c: Re-generated.
10196 * features/rs6000/powerpc-603.c: Re-generated.
10197 * features/rs6000/powerpc-604.c: Re-generated.
10198 * features/rs6000/powerpc-64.c: Re-generated.
10199 * features/rs6000/powerpc-64l.c: Re-generated.
10200 * features/rs6000/powerpc-7400.c: Re-generated.
10201 * features/rs6000/powerpc-750.c: Re-generated.
10202 * features/rs6000/powerpc-860.c: Re-generated.
10203 * features/rs6000/powerpc-altivec32.c: Re-generated.
10204 * features/rs6000/powerpc-altivec32l.c: Re-generated.
10205 * features/rs6000/powerpc-altivec64.c: Re-generated.
10206 * features/rs6000/powerpc-altivec64l.c: Re-generated.
10207 * features/rs6000/powerpc-cell32l.c: Re-generated.
10208 * features/rs6000/powerpc-cell64l.c: Re-generated.
10209 * features/rs6000/powerpc-e500.c: Re-generated.
10210 * features/rs6000/powerpc-e500l.c: Re-generated.
10211 * features/rs6000/powerpc-isa205-32l.c: Re-generated.
10212 * features/rs6000/powerpc-isa205-64l.c: Re-generated.
10213 * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated.
10214 * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated.
10215 * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated.
10216 * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated.
10217 * features/rs6000/powerpc-vsx32.c: Re-generated.
10218 * features/rs6000/powerpc-vsx32l.c: Re-generated.
10219 * features/rs6000/powerpc-vsx64.c: Re-generated.
10220 * features/rs6000/powerpc-vsx64l.c: Re-generated.
10221 * features/rs6000/rs6000.c: Re-generated.
10222 * features/s390-linux32.c: Re-generated.
10223 * features/s390-linux32v1.c: Re-generated.
10224 * features/s390-linux32v2.c: Re-generated.
10225 * features/s390-linux64.c: Re-generated.
10226 * features/s390-linux64v1.c: Re-generated.
10227 * features/s390-linux64v2.c: Re-generated.
10228 * features/s390-te-linux64.c: Re-generated.
10229 * features/s390-tevx-linux64.c: Re-generated.
10230 * features/s390-vx-linux64.c: Re-generated.
10231 * features/s390x-linux64.c: Re-generated.
10232 * features/s390x-linux64v1.c: Re-generated.
10233 * features/s390x-linux64v2.c: Re-generated.
10234 * features/s390x-te-linux64.c: Re-generated.
10235 * features/s390x-tevx-linux64.c: Re-generated.
10236 * features/s390x-vx-linux64.c: Re-generated.
10237 * features/sparc/sparc32-solaris.c: Re-generated.
10238 * features/sparc/sparc64-solaris.c: Re-generated.
10239 * features/tic6x-c62x.c: Re-generated.
10240 * features/tic6x-c62x-linux.c: Re-generated.
10241 * features/tic6x-c64x.c: Re-generated.
10242 * features/tic6x-c64x-linux.c: Re-generated.
10243 * features/tic6x-c64xp.c: Re-generated.
10244 * features/tic6x-c64xp-linux.c: Re-generated.
10245
10246 2017-07-26 Yao Qi <yao.qi@linaro.org>
10247
10248 * i386-linux-tdep.c (i386_linux_read_description): New function.
10249 (i386_linux_core_read_description): Call
10250 i386_linux_read_description.
10251 * i386-linux-tdep.h (i386_linux_read_description): Declare.
10252 (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations.
10253 (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise
10254 (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise.
10255 (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise.
10256 * x86-linux-nat.c (x86_linux_read_description): Call
10257 i386_linux_read_description.
10258
10259 2017-07-26 Yao Qi <yao.qi@linaro.org>
10260
10261 * NEWS: Mention it.
10262 * features/Makefile (%.c: %.xml): Pass the xml file name to
10263 command "maint print c-tdesc".
10264 * target-descriptions.c (maint_print_c_tdesc_cmd): Get file
10265 name from 'arg'.
10266
10267 2017-07-26 Yao Qi <yao.qi@linaro.org>
10268
10269 * target-descriptions.c (target_desc): Add ctor and dtor. Do
10270 in-class initialization.
10271 (tdesc_create_feature): Call new instead of XCNEW.
10272 (free_target_description): Ue delete.
10273
10274 2017-07-25 John Baldwin <jhb@FreeBSD.org>
10275
10276 * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo.
10277
10278 2017-07-25 Yao Qi <yao.qi@linaro.org>
10279
10280 * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc
10281 constant.
10282 (amd64_x32_init_abi): Likewise.
10283 * amd64-tdep.h (amd64_init_abi): Update declaration.
10284 (amd64_x32_init_abi): Likewise.
10285
10286 2017-07-25 Yao Qi <yao.qi@linaro.org>
10287
10288 PR tdep/21717
10289 * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update
10290 condition for FPSCR.
10291 (arm_linux_store_inferior_registers): Likewise.
10292
10293 2017-07-22 Tom Tromey <tom@tromey.com>
10294
10295 * break-catch-syscall.c (struct catch_syscall_inferior_data)
10296 <syscalls_counts>: Now a std::vector.
10297 (get_catch_syscall_inferior_data): Use "new".
10298 (catch_syscall_inferior_data_cleanup): Use "delete".
10299 (insert_catch_syscall, remove_catch_syscall)
10300 (clear_syscall_counts): Update.
10301
10302 2017-07-22 Tom Tromey <tom@tromey.com>
10303
10304 * break-catch-syscall.c (syscall_catchpoint)
10305 <syscalls_to_be_caught>: Now a std::vector<int>
10306 (~syscall_catchpoint): Remove.
10307 (insert_catch_syscall, remove_catch_syscall)
10308 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
10309 (print_mention_catch_syscall, print_recreate_catch_syscall):
10310 Update.
10311 (create_syscall_event_catchpoint): Change type of "filter"
10312 parameter.
10313 (catch_syscall_split_args): Return a std::vector.
10314 (catch_syscall_command_1, catching_syscall_number_1): Update.
10315
10316 2017-07-22 Tom Tromey <tom@tromey.com>
10317
10318 * break-catch-throw.c (struct exception_catchpoint)
10319 <exception_rx>: Now a std::string.
10320 (~exception_catchpoint): Remove.
10321 (print_one_detail_exception_catchpoint): Update.
10322 (handle_gnu_v3_exceptions): Change type of except_rx.
10323 (extract_exception_regexp): Return a std::string.
10324 (catch_exception_command_1): Update.
10325
10326 2017-07-22 Tom Tromey <tom@tromey.com>
10327
10328 * break-catch-sig.c (gdb_signal_type): Remove typedef.
10329 (struct signal_catchpoint) <signals_to_be_caught>: Now a
10330 std::vector.
10331 <catch_all>: Now a bool.
10332 (~signal_catchpoint): Remove.
10333 (signal_catchpoint_insert_location)
10334 (signal_catchpoint_remove_location)
10335 (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one)
10336 (signal_catchpoint_print_mention)
10337 (signal_catchpoint_print_recreate)
10338 (signal_catchpoint_explains_signal): Update.
10339 (create_signal_catchpoint): Change type of "filter" and
10340 "catch_all".
10341 (catch_signal_split_args): Return a std::vector. Change type of
10342 "catch_all".
10343 (catch_signal_command): Update.
10344
10345 2017-07-20 Pedro Alves <palves@redhat.com>
10346
10347 * ada-lang.c (ada_language_defn): Make extern.
10348 (_initialize_ada_language): Remove add_language call.
10349 * c-lang.c (c_language_defn, cplus_language_defn)
10350 (asm_language_defn, minimal_language_defn): Make extern.
10351 (_initialize_c_language): Delete.
10352 * completer.c (compare_cstrings): Delete, moved to utils.h.
10353 * d-lang.c (d_language_defn): Make extern.
10354 (_initialize_d_language): Remove add_language calls.
10355 * defs.h (enum language): Add comment.
10356 * f-lang.c (f_language_defn): Make extern.
10357 (_initialize_f_language): Remove add_language call.
10358 * go-lang.c (go_language_defn): Make extern.
10359 (_initialize_go_language): Remove add_language call.
10360 * language.c: Include <algorithm>.
10361 (languages): Redefine as const array.
10362 (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete.
10363 (set_language_command): Handle "local". Use for-range loop.
10364 (set_language): Remove loop.
10365 (language_enum): Rewrite.
10366 (language_def, language_str): Remove loops.
10367 (add_language): Delete.
10368 (add_set_language_command): New, based on add_languages.
10369 (skip_language_trampoline): Adjust.
10370 (local_language_defn): Delete.
10371 (language_gdbarch_post_init): Adjust.
10372 (_initialize_language): Remove add_language calls. Call
10373 add_set_language_command.
10374 * language.h (add_language): Delete.
10375 (auto_language_defn)
10376 (unknown_language_defn, minimal_language_defn, ada_language_defn)
10377 (asm_language_defn, c_language_defn, cplus_language_defn)
10378 (d_language_defn, f_language_defn, go_language_defn)
10379 (m2_language_defn, objc_language_defn, opencl_language_defn)
10380 (pascal_language_defn, rust_language_defn): Declare.
10381 * m2-lang.c (m2_language_defn): Make extern.
10382 (_initialize_m2_language): Remove add_language call.
10383 * objc-lang.c (objc_language_defn): Make extern.
10384 (_initialize_objc_language): Remove add_language call.
10385 * opencl-lang.c (opencl_language_defn): Make extern.
10386 (_initialize_opencl_language): Remove add_language call.
10387 * p-lang.c (pascal_language_defn): Make extern.
10388 (_initialize_pascal_language): Delete.
10389 * rust-lang.c (rust_language_defn): Make extern.
10390 (_initialize_rust_language): Delete.
10391 * utils.h (compare_cstrings): New static inline function.
10392
10393 2017-07-20 Pedro Alves <palves@redhat.com>
10394
10395 * ada-lang.c (ada_to_fixed_type_1): Adjust.
10396 (get_var_value): Constify parameters.
10397 (get_int_var_value): Change prototype.
10398 (to_fixed_range_type): Adjust.
10399 * ada-lang.h (get_int_var_value): Change prototype.
10400
10401 2017-07-20 Pedro Alves <palves@redhat.com>
10402
10403 * dwarf2read.c (dw2_lookup_symbol): Use
10404 SYMBOL_MATCHES_SEARCH_NAME.
10405 * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME.
10406
10407 2017-07-20 Pedro Alves <palves@redhat.com>
10408
10409 * block.c (block_iter_name_step, block_iter_name_first)
10410 (block_iter_name_next): Delete.
10411 (block_lookup_symbol_primary): Adjust to use
10412 dict_iter_match_first/dict_iter_match_next.
10413 * block.h (block_iter_name_first, block_iter_name_next): Delete
10414 declarations.
10415 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use
10416 dict_iter_match_first/dict_iter_match_next.
10417
10418 2017-07-20 Pedro Alves <palves@redhat.com>
10419
10420 * cp-support.c (cp_find_first_component_aux): Add missing case for
10421 end of string.
10422
10423 2017-07-18 David Blaikie <dblaikie@gmail.com>
10424
10425 * dwarf2read.c (create_cus_hash_table): Re-add lost initialization
10426 of dwo_cu's dwo_file.
10427
10428 2017-07-18 Yao Qi <yao.qi@linaro.org>
10429
10430 * remote.c (store_registers_using_G): Remove one line comment.
10431
10432 2017-07-18 Yao Qi <yao.qi@linaro.org>
10433
10434 * regcache.c (regcache_cpy): Simplify it.
10435 (regcache::cpy_no_passthrough): Remove it.
10436 * regcache.h (cpy_no_passthrough): Remove it.
10437 (regcache_dup, regcache_cpy): Update comments.
10438
10439 2017-07-18 Pedro Alves <palves@redhat.com>
10440
10441 * remote-sim.c (sim_command_completer): Adjust to work with a
10442 completion_tracker instead of a VEC.
10443
10444 2017-07-17 Pedro Alves <palves@redhat.com>
10445
10446 * completer.c (complete_source_filenames): New function.
10447 (complete_address_and_linespec_locations): New function.
10448 (location_completer): Use complete_address_and_linespec_locations.
10449 (completion_tracker::build_completion_result): Honor the tracker's
10450 request to suppress append.
10451 * completer.h (completion_tracker::suppress_append_ws)
10452 (completion_tracker::set_suppress_append_ws): New methods.
10453 (completion_tracker::m_suppress_append_ws): New field.
10454 (complete_source_filenames): New declaration.
10455 * linespec.c (linespec_complete_what): New.
10456 (struct ls_parser) <complete_what, completion_word,
10457 completion_quote_char, completion_quote_end, completion_tracker>:
10458 New fields.
10459 (string_find_incomplete_keyword_at_end): New.
10460 (linespec_lexer_lex_string): Record quote char. If in completion
10461 mode, don't throw.
10462 (linespec_lexer_consume_token): Advance the completion word point.
10463 (linespec_lexer_peek_token): Save/restore completion info.
10464 (save_stream_and_consume_token): New.
10465 (set_completion_after_number): New.
10466 (linespec_parse_basic): Set what to complete next depending on
10467 token. Handle function and label completions specially.
10468 (parse_linespec): Disable objc shortcut in completion mode. Set
10469 what to complete next depending on token type. Skip keyword if in
10470 completion mode.
10471 (complete_linespec_component, linespec_complete): New.
10472 * linespec.h (linespec_complete): Declare.
10473
10474 2017-07-17 Pedro Alves <palves@redhat.com>
10475
10476 * linespec.c (linespec_lexer_lex_string, find_toplevel_char):
10477 Handle 'operator<' / 'operator<<'.
10478
10479 2017-07-17 Pedro Alves <palves@redhat.com>
10480
10481 * completer.c (collect_explicit_location_matches): Handle
10482 MATCH_LABEL.
10483 (convert_explicit_location_to_linespec): New, factored out from
10484 ...
10485 (convert_explicit_location_to_sals): ... this.
10486 (complete_label): New.
10487 (linespec_complete_label, find_label_symbols_in_block): New.
10488 (find_label_symbols): Add completion_mode parameter and adjust to
10489 call find_label_symbols_in_block.
10490 * linespec.h (linespec_complete_label): Declare.
10491
10492 2017-07-17 Pedro Alves <palves@redhat.com>
10493
10494 * ada-lang.c (ada_collect_symbol_completion_matches): Add
10495 complete_symbol_mode parameter.
10496 * cli/cli-cmds.c (complete_command): Get the completion result out
10497 of the handle_brkchars tracker if used a custom word point.
10498 * completer.c: Include "linespec.h".
10499 (enum explicit_location_match_type) <MATCH_LINE>: New enumerator.
10500 (advance_to_expression_complete_word_point): New.
10501 (completion_tracker::completes_to_completion_word): New.
10502 (complete_files_symbols): Pass down
10503 complete_symbol_mode::EXPRESSION.
10504 (explicit_options, probe_options): New.
10505 (collect_explicit_location_matches): Complete on the
10506 explictit_loc->foo instead of word. Use
10507 linespec_complete_function. Handle MATCH_LINE. Handle offering
10508 keyword and options completions.
10509 (backup_text_ptr): Delete.
10510 (skip_keyword): New.
10511 (complete_explicit_location): Remove 'word' parameter. Add
10512 language, quoted_arg_start and quoted_arg_end parameters.
10513 Rewrite, parsing left to right.
10514 (location_completer): Rewrite.
10515 (location_completer_handle_brkchars): New function.
10516 (symbol_completer): Pass down complete_symbol_mode::EXPRESSION.
10517 (enum complete_line_internal_reason): Adjust comments.
10518 (completion_tracker::discard_completions): New.
10519 (completer_handle_brkchars_func_for_completer): Handle
10520 location_completer.
10521 (gdb_custom_word_point_brkchars)
10522 (gdb_org_rl_basic_quote_characters): New.
10523 (gdb_completion_word_break_characters_throw)
10524 (completion_find_completion_word): Handle trackers that use a
10525 custom word point.
10526 (completion_tracker::advance_custom_word_point_by): New.
10527 (completion_tracker::build_completion_result): Don't rely on
10528 readline appending the quote char.
10529 (gdb_rl_attempted_completion_function_throw): Handle trackers that
10530 use a custom word point.
10531 (gdb_rl_attempted_completion_function): Restore
10532 rl_basic_quote_characters.
10533 * completer.h (class completion_tracker): Extend intro comment.
10534 (completion_tracker::set_quote_char)
10535 (completion_tracker::quote_char)
10536 (completion_tracker::set_use_custom_word_point)
10537 (completion_tracker::use_custom_word_point)
10538 (completion_tracker::custom_word_point)
10539 (completion_tracker::set_custom_word_point)
10540 (completion_tracker::advance_custom_word_point_by)
10541 (completion_tracker::completes_to_completion_word)
10542 (completion_tracker::discard_completions): New methods.
10543 (completion_tracker::m_quote_char)
10544 (completion_tracker::m_use_custom_word_point)
10545 (completion_tracker::m_custom_word_point): New fields.
10546 (advance_to_expression_complete_word_point): Declare.
10547 * f-lang.c (f_collect_symbol_completion_matches): Add
10548 complete_symbol_mode parameter.
10549 * language.h (struct language_defn)
10550 <la_collect_symbol_completion_matches>: Add complete_symbol_mode
10551 parameter.
10552 * linespec.c (linespec_keywords): Add NULL terminator. Make extern.
10553 (linespec_complete_function): New function.
10554 (linespec_lexer_lex_keyword): Adjust.
10555 * linespec.h (linespec_keywords, linespec_complete_function): New
10556 declarations.
10557 * location.c (find_end_quote): New function.
10558 (explicit_location_lex_one): Add explicit_completion_info
10559 parameter. Save quoting info. Don't throw if being called for
10560 completion. Don't handle Ada operators here.
10561 (is_cp_operator, skip_op_false_positives, first_of)
10562 (explicit_location_lex_one_function): New function.
10563 (string_to_explicit_location): Replace 'dont_throw' parameter with
10564 an explicit_completion_info pointer parameter. Handle it. Don't
10565 use explicit_location_lex_one to lex function names. Use
10566 explicit_location_lex_one_function instead.
10567 * location.h (struct explicit_completion_info): New.
10568 (string_to_explicit_location): Replace 'dont_throw' parameter with
10569 an explicit_completion_info pointer parameter.
10570 * symtab.c (default_collect_symbol_completion_matches_break_on):
10571 Add complete_symbol_mode parameter. Handle LINESPEC mode.
10572 (default_collect_symbol_completion_matches)
10573 (collect_symbol_completion_matches): Add complete_symbol_mode
10574 parameter.
10575 (collect_symbol_completion_matches_type): Pass down
10576 complete_symbol_mode::EXPRESSION.
10577 (collect_file_symbol_completion_matches): Add complete_symbol_mode
10578 parameter. Handle LINESPEC mode.
10579 * symtab.h (complete_symbol_mode): New.
10580 (default_collect_symbol_completion_matches_break_on)
10581 (default_collect_symbol_completion_matches)
10582 (collect_symbol_completion_matches)
10583 (collect_file_symbol_completion_matches): Add complete_symbol_mode
10584 parameter.
10585
10586 2017-07-17 Pedro Alves <palves@redhat.com>
10587
10588 * utils.c (enum class strncmp_iw_mode): New.
10589 (strcmp_iw): Rename to ...
10590 (strncmp_iw_with_mode): ... this. Add string2_len and mode
10591 parameters. Handle them.
10592 (strncmp_iw): New.
10593 (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode.
10594 * utils.h (strncmp_iw): Declare.
10595 (strcmp_iw): Move describing comments here.
10596
10597 2017-07-17 Pedro Alves <palves@redhat.com>
10598
10599 * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and
10600 CP_OPERATOR_STR.
10601 * c-typeprint.c (is_type_conversion_operator): Use
10602 CP_OPERATOR_STR.
10603 * cp-support.c (LENGTH_OF_OPERATOR): Delete.
10604 (cp_find_first_component_aux): Use CP_OPERATOR_STR and
10605 CP_OPERATOR_LEN.
10606 * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New.
10607 * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR.
10608 * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR.
10609 * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and
10610 CP_OPERATOR_STR.
10611 * location.c: Include "cp-support.h".
10612 (explicit_location_lex_one): Use CP_OPERATOR_LEN and
10613 CP_OPERATOR_STR.
10614 * symtab.c (operator_chars): Use CP_OPERATOR_STR and
10615 CP_OPERATOR_LEN.
10616
10617 2017-07-17 Pedro Alves <palves@redhat.com>
10618
10619 * cli/cli-cmds.c (complete_command): Use a completion tracker
10620 along with completion_find_completion_word for handle_brkchars
10621 phase.
10622 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
10623 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New.
10624 (struct gdb_rl_completion_word_info): New.
10625 (gdb_rl_find_completion_word): New.
10626 (completion_find_completion_word): New.
10627 * completer.h (completion_find_completion_word): Declare.
10628
10629 2017-07-17 Pedro Alves <palves@redhat.com>
10630
10631 * ada-lang.c (symbol_completion_match): Adjust comments.
10632 (symbol_completion_add): Replace vector parameter with
10633 completion_tracker parameter. Use it.
10634 (ada_make_symbol_completion_list): Rename to...
10635 (ada_collect_symbol_completion_matches): ... this. Add
10636 completion_tracker parameter and use it.
10637 (ada_language_defn): Adjust.
10638 * break-catch-syscall.c (catch_syscall_completer): Adjust
10639 prototype and work with completion_tracker instead of VEC.
10640 * breakpoint.c (condition_completer): Adjust prototype and work
10641 with completion_tracker instead of VEC.
10642 * c-lang.c (c_language_defn, cplus_language_defn)
10643 (asm_language_defn, minimal_language_defn): Adjust to renames.
10644 * cli/cli-cmds.c (complete_command): Rework using
10645 completion_tracker. Catch exceptions when completing.
10646 * cli/cli-decode.c (integer_unlimited_completer)
10647 (complete_on_cmdlist, complete_on_enum): Adjust prototype and work
10648 with completion_tracker instead of VEC.
10649 * command.h (struct completion_tracker): Forward declare.
10650 (completer_ftype, completer_handle_brkchars_ftype): Change
10651 types.
10652 (complete_on_cmdlist, complete_on_enum): Adjust.
10653 * completer.c: Include <algorithm>.
10654 (struct gdb_completer_state): New.
10655 (current_completion): New global.
10656 (readline_line_completion_function): Delete.
10657 (noop_completer, filename_completer)
10658 (filename_completer_handle_brkchars, complete_files_symbols)
10659 (linespec_location_completer): Adjust to work with a
10660 completion_tracker instead of a VEC.
10661 (string_or_empty): New.
10662 (collect_explicit_location_matches): Adjust to work with a
10663 completion_tracker instead of a VEC.
10664 (explicit_location_completer): Rename to ...
10665 (complete_explicit_location): ... this and adjust to work with a
10666 completion_tracker instead of a VEC.
10667 (location_completer): Adjust to work with a completion_tracker
10668 instead of a VEC.
10669 (add_struct_fields): Adjust to work with a completion_list instead
10670 of VEC.
10671 (expression_completer): Rename to ...
10672 (complete_expression): ... this and adjust to work with a
10673 completion_tracker instead of a VEC. Use complete_files_symbols.
10674 (expression_completer): Reimplement on top of complete_expression.
10675 (symbol_completer): Adjust to work with a completion_tracker
10676 instead of a VEC.
10677 (enum complete_line_internal_reason): Add describing comments.
10678 (complete_line_internal_normal_command): Adjust to work with a
10679 completion_tracker instead of a VEC.
10680 (complete_line_internal): Rename to ...
10681 (complete_line_internal_1): ... this and adjust to work with a
10682 completion_tracker instead of a VEC. Assert TEXT is NULL in the
10683 handle_brkchars phase.
10684 (new_completion_tracker): Delete.
10685 (complete_line_internal): Reimplement as TRY/CATCH wrapper around
10686 complete_line_internal_1.
10687 (free_completion_tracker): Delete.
10688 (INITIAL_COMPLETION_HTAB_SIZE): New.
10689 (completion_tracker::completion_tracker)
10690 (completion_tracker::~completion_tracker): New.
10691 (maybe_add_completion): Delete.
10692 (completion_tracker::maybe_add_completion)
10693 (completion_tracker::add_completion)
10694 (completion_tracker::add_completions): New.
10695 (throw_max_completions_reached_error): Delete.
10696 (complete_line): Adjust to work with a completion_tracker instead
10697 of a VEC. Don't create a completion_tracker_t or check for max
10698 completions here.
10699 (command_completer, command_completer_handle_brkchars)
10700 (signal_completer, reg_or_group_completer_1)
10701 (reg_or_group_completer, default_completer_handle_brkchars):
10702 Adjust to work with a completion_tracker.
10703 (gdb_completion_word_break_characters_throw): New.
10704 (gdb_completion_word_break_characters): Reimplement.
10705 (line_completion_function): Delete.
10706 (completion_tracker::recompute_lowest_common_denominator)
10707 (expand_preserving_ws)
10708 (completion_tracker::build_completion_result)
10709 (completion_result::completion_result)
10710 (completion_result::completion_result)
10711 (completion_result::~completion_result)
10712 (completion_result::completion_result)
10713 (completion_result::release_match_list, compare_cstrings)
10714 (completion_result::sort_match_list)
10715 (completion_result::reset_match_list)
10716 (gdb_rl_attempted_completion_function_throw)
10717 (gdb_rl_attempted_completion_function): New.
10718 * completer.h (completion_list, struct completion_result)
10719 (class completion_tracker): New.
10720 (complete_line): Add completion_tracker parameter.
10721 (readline_line_completion_function): Delete.
10722 (gdb_rl_attempted_completion_function): New.
10723 (noop_completer, filename_completer, expression_completer)
10724 (location_completer, symbol_completer, command_completer)
10725 (signal_completer, reg_or_group_completer): Update prototypes.
10726 (completion_tracker_t, new_completion_tracker)
10727 (make_cleanup_free_completion_tracker): Delete.
10728 (enum maybe_add_completion_enum): Delete.
10729 (maybe_add_completion): Delete.
10730 (throw_max_completions_reached_error): Delete.
10731 * corefile.c (complete_set_gnutarget): Adjust to work with a
10732 completion_tracker instead of a VEC.
10733 * cp-abi.c (cp_abi_completer): Adjust to work with a
10734 completion_tracker instead of a VEC.
10735 * d-lang.c (d_language_defn): Adjust.
10736 * disasm.c (disassembler_options_completer): Adjust to work with a
10737 completion_tracker instead of a VEC.
10738 * f-lang.c (f_make_symbol_completion_list): Rename to ...
10739 (f_collect_symbol_completion_matches): ... this. Adjust to work
10740 with a completion_tracker instead of a VEC.
10741 (f_language_defn): Adjust.
10742 * go-lang.c (go_language_defn): Adjust.
10743 * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer):
10744 Adjust to work with a completion_tracker instead of a VEC.
10745 * infrun.c (handle_completer): Likewise.
10746 * interps.c (interpreter_completer): Likewise.
10747 * interps.h (interpreter_completer): Likewise.
10748 * language.c (unknown_language_defn, auto_language_defn)
10749 (local_language_defn): Adjust.
10750 * language.h (language_defn::la_make_symbol_completion_list):
10751 Rename to ...
10752 (language_defn::la_collect_symbol_completion_matches): ... this
10753 and adjust to work with a completion_tracker instead of a VEC.
10754 * m2-lang.c (m2_language_defn): Adjust.
10755 * objc-lang.c (objc_language_defn): Adjust.
10756 * opencl-lang.c (opencl_language_defn): Adjust.
10757 * p-lang.c (pascal_language_defn): Adjust.
10758 * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word.
10759 (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work
10760 with a completion_tracker.
10761 * rust-lang.c (rust_language_defn): Adjust.
10762 * symtab.c (free_completion_list, do_free_completion_list)
10763 (return_val, completion_tracker): Delete.
10764 (completion_list_add_name, completion_list_add_symbol)
10765 (completion_list_add_msymbol, completion_list_objc_symbol)
10766 (completion_list_add_fields, add_symtab_completions): Add
10767 completion_tracker parameter and use it.
10768 (default_make_symbol_completion_list_break_on_1): Rename to...
10769 (default_collect_symbol_completion_matches_break_on): ... this.
10770 Add completion_tracker parameter and use it instead of allocating
10771 a completion tracker here.
10772 (default_make_symbol_completion_list_break_on): Delete old
10773 implementation.
10774 (default_make_symbol_completion_list): Delete.
10775 (default_collect_symbol_completion_matches): New.
10776 (make_symbol_completion_list): Delete.
10777 (collect_symbol_completion_matches): New.
10778 (make_symbol_completion_type): Rename to ...
10779 (collect_symbol_completion_matches_type): ... this. Add
10780 completion_tracker parameter and use it instead of VEC.
10781 (make_file_symbol_completion_list_1): Rename to...
10782 (collect_file_symbol_completion_matches): ... this. Add
10783 completion_tracker parameter and use it instead of VEC.
10784 (make_file_symbol_completion_list): Delete.
10785 (add_filename_to_list): Use completion_list instead of a VEC.
10786 (add_partial_filename_data::list): Now a completion_list.
10787 (make_source_files_completion_list): Work with a completion_list
10788 instead of a VEC.
10789 * symtab.h: Include "completer.h".
10790 (default_make_symbol_completion_list_break_on)
10791 (default_make_symbol_completion_list, make_symbol_completion_list)
10792 (make_symbol_completion_type, make_file_symbol_completion_list)
10793 (make_source_files_completion_list): Delete.
10794 (default_collect_symbol_completion_matches_break_on)
10795 (default_collect_symbol_completion_matches)
10796 (collect_symbol_completion_matches)
10797 (collect_symbol_completion_matches_type)
10798 (collect_file_symbol_completion_matches)
10799 (make_source_files_completion_list): New.
10800 * top.c (init_main): Don't install a rl_completion_entry_function
10801 hook. Install a rl_attempted_completion_function hook instead.
10802 * tui/tui-layout.c (layout_completer): Adjust to work with a
10803 completion_tracker.
10804 * tui/tui-regs.c (tui_reggroup_completer):
10805 * tui/tui-win.c (window_name_completer, focus_completer)
10806 (winheight_completer): Adjust to work with a completion_tracker.
10807 * value.c: Include "completer.h".
10808 (complete_internalvar): Adjust to work with a completion_tracker.
10809 * value.h (complete_internalvar): Likewise.
10810
10811 2017-07-17 Pedro Alves <palves@redhat.com>
10812
10813 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to
10814 renames.
10815 * cli/cli-decode.h (struct cmd_list_element) <completer>: Move
10816 comments to completer_ftype's declaration.
10817 <completer_handle_brkchars>: Change type to
10818 completer_handle_brkchars_ftype.
10819 * command.h (completer_ftype): Add describing comment and give
10820 names to parameters.
10821 (completer_ftype_void): Rename to ...
10822 (completer_handle_brkchars_ftype) ... this. Add describing comment.
10823 (set_cmd_completer_handle_brkchars): Adjust.
10824 * completer.c (filename_completer_handle_brkchars): New function.
10825 (complete_line_internal_normal_command): New function, factored
10826 out from ...
10827 (complete_line_internal): ... here.
10828 (command_completer_handle_brkchars)
10829 (default_completer_handle_brkchars)
10830 (completer_handle_brkchars_func_for_completer): New functions.
10831 * completer.h (set_gdb_completion_word_break_characters): Delete
10832 declaration.
10833 (completer_handle_brkchars_func_for_completer): New declaration.
10834 * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use
10835 completer_handle_brkchars_func_for_completer.
10836
10837 2017-07-17 Pedro Alves <palves@redhat.com>
10838
10839 * completer.c (symbol_completer): New function, based on
10840 make_symbol_completion_list_fn.
10841 * completer.h (symbol_completer): New declaration.
10842 * guile/scm-cmd.c (cmdscm_completers): Adjust.
10843 * python/py-cmd.c (completers): Adjust.
10844 * symtab.c (make_symbol_completion_list_fn): Delete.
10845 * symtab.h (make_symbol_completion_list_fn): Delete.
10846 * cli/cli-decode.c (add_cmd): Adjust.
10847
10848 2017-07-17 Pedro Alves <palves@redhat.com>
10849
10850 * Makefile.in (COMMON_OBS): Add filename-seen-cache.o.
10851 * dwarf2read.c: Include "filename-seen-cache.h".
10852 * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field.
10853 (dw2_map_symbol_filenames): Build and use a filenames_seen_cache.
10854 * filename-seen-cache.c: New file.
10855 * filename-seen-cache.h: New file.
10856 * symtab.c: Include "filename-seen-cache.h".
10857 (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE)
10858 (create_filename_seen_cache, clear_filename_seen_cache)
10859 (delete_filename_seen_cache, filename_seen): Delete, parts moved
10860 to filename-seen-cache.h/filename-seen-cache.c.
10861 (output_source_filename, sources_info)
10862 (maybe_add_partial_symtab_filename)
10863 (make_source_files_completion_list): Adjust to use
10864 filename_seen_cache.
10865
10866 2017-07-17 Pedro Alves <palves@redhat.com>
10867
10868 * dwarf2read.c (dwarf2_per_objfile): In-class initialize all
10869 fields.
10870 (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const
10871 dwarf2_debug_sections*)): New.
10872 (dwarf2_per_objfile::dwarf2_per_objfile(const
10873 dwarf2_per_objfile&)): Declare as deleted.
10874 (dwarf2_per_objfile::operator=): Declare as deleted.
10875 (dwarf2_per_objfile::dwarf2_per_objfile)
10876 (dwarf2_per_objfile::~dwarf2_per_objfile)
10877 (dwarf2_per_objfile::free_cached_comp_units): New.
10878 (dwarf2_has_info): dwarf2_per_objfile initialization code moved to
10879 ctor. Call dwarf2_per_objfile's ctor manually.
10880 (dwarf2_locate_sections): Deleted/refactored as ...
10881 (dwarf2_per_objfile::locate_sections): ... this new method.
10882 (free_cached_comp_units): Defer to
10883 dwarf2_per_objfile::free_cached_comp_units.
10884 (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually.
10885
10886 2017-07-14 Tom Tromey <tom@tromey.com>
10887
10888 PR rust/21764:
10889 * rust-exp.y (convert_ast_to_expression): Add "want_type"
10890 parameter.
10891 <UNOP_SIZEOF>: Split into separate case.
10892 <UNOP_VAR_VALUE>: Handle want_type. Add error case.
10893
10894 2017-07-14 Tom Tromey <tom@tromey.com>
10895
10896 PR rust/21763:
10897 * symtab.c (symbol_matches_domain): Add language_rust to special
10898 case.
10899 * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't
10900 treat LOC_TYPEDEF symbols as variables.
10901
10902 2017-07-14 Pedro Alves <palves@redhat.com>
10903
10904 * symtab.c (make_file_symbol_completion_list_1): Iterate over
10905 symtabs matching all symtabs with SRCFILE as file name instead of
10906 only considering the first hit, with lookup_symtab.
10907
10908 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
10909
10910 * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and
10911 operator_name parameters.
10912 (gen_expr): Update function call.
10913
10914 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
10915
10916 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch
10917 parameter.
10918 * symtab.h (struct symbol_computed_ops::tracepoint_var_ref):
10919 Likewise.
10920 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch
10921 parameter, use agent_expr::gdbarch instead, update function
10922 calls.
10923 (locexpr_tracepoint_var_ref): Likewise.
10924 (loclist_tracepoint_var_ref): Likewise.
10925 * ax-gdb.c (gen_trace_static_fields): Likewise.
10926 (gen_traced_pop): Likewise.
10927 (gen_frame_args_address): Likewise.
10928 (gen_frame_locals_address): Likewise.
10929 (gen_var_ref): Likewise.
10930 (gen_struct_ref_recursive): Likewise.
10931 (gen_static_field): Likewise.
10932 (gen_maybe_namespace_elt): Likewise.
10933 (gen_expr): Likewise.
10934 (gen_trace_for_var): Likewise.
10935 (gen_trace_for_expr): Likewise.
10936 (gen_trace_for_return_address): Likewise.
10937
10938 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
10939
10940 * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax
10941 parameter.
10942 (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call.
10943
10944 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
10945
10946 * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch
10947 from ax, update calls.
10948 (gen_usual_arithmetic): Likewise.
10949 (gen_integral_promotions): Likewise.
10950 (gen_bitfield_ref): Likewise.
10951 (gen_primitive_field): Likewise.
10952 (gen_struct_ref_recursive): Likewise.
10953 (gen_struct_ref): Likewise.
10954 (gen_maybe_namespace_elt): Likewise.
10955 (gen_struct_elt_for_reference): Likewise.
10956 (gen_namespace_elt): Likewise.
10957 (gen_aggregate_elt_ref): Likewise.
10958 (gen_expr): Get gdbarch from ax, update calls.
10959 (gen_expr_binop_rest): Likewise.
10960
10961 2017-07-13 Pedro Alves <palves@redhat.com>
10962
10963 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64
10964 as default tdesc.
10965 * amd64-dicos-tdep.c (amd64_dicos_init_abi):
10966 * amd64-fbsd-tdep.c (amd64fbsd_init_abi):
10967 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass
10968 tdesc_amd64_linux as default tdesc. Get final tdesc from the
10969 tdep.
10970 (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc.
10971 Get final tdesc from the tdep.
10972 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as
10973 default tdesc.
10974 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
10975 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
10976 * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter.
10977 Use it as default tdesc.
10978 (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it
10979 down to amd_init_abi. No longer handle fallback tdesc here.
10980 * amd64-tdep.h (tdesc_x32): Declare.
10981 (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc'
10982 parameter.
10983 * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64
10984 as default tdesc.
10985
10986 2017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10987
10988 * s390-linux-tdep.c (s390_process_record): Add support for
10989 instructions new in arch12.
10990
10991 2017-07-11 John Baldwin <jhb@FreeBSD.org>
10992
10993 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
10994 PT_GETFSBASE and PT_GETGSBASE.
10995 (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and
10996 PT_SETGSBASE.
10997
10998 2017-07-11 John Baldwin <jhb@FreeBSD.org>
10999
11000 * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat)
11001 (amd64-avx-mpx.dat, amd64-avx-avx512.dat)
11002 (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in
11003 those rules.
11004 * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml.
11005 * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml.
11006 * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml.
11007 * features/i386/amd64-avx.xml: Add 64bit-segments.xml.
11008 * features/i386/amd64-mpx.xml: Add 64bit-segments.xml.
11009 * features/i386/amd64.xml: Add 64bit-segments.xml.
11010 * features/i386/amd64-avx-avx512.c: Regenerated.
11011 * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated.
11012 * features/i386/amd64-avx-mpx.c: Regenerated.
11013 * features/i386/amd64-avx.c: Regenerated.
11014 * features/i386/amd64-mpx.c: Regenerated.
11015 * features/i386/amd64.c: Regenerated.
11016 * regformats/i386/amd64-avx-avx512.dat: Regenerated.
11017 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
11018 * regformats/i386/amd64-avx-mpx.dat: Regenerated.
11019 * regformats/i386/amd64-avx.dat: Regenerated.
11020 * regformats/i386/amd64-mpx.dat: Regenerated.
11021 * regformats/i386/amd64.dat: Regenerated.
11022
11023 2017-07-10 Yao Qi <yao.qi@linaro.org>
11024
11025 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
11026 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
11027
11028 2017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com>
11029
11030 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and
11031 unsetenv.
11032 * gnulib/aclocal.m4: Regenerate.
11033 * gnulib/config.in: Regenerate.
11034 * gnulib/configure: Regenerate.
11035 * gnulib/import/Makefile.am: Regenerate.
11036 * gnulib/import/Makefile.in: Regenerate.
11037 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
11038 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
11039 * gnulib/import/m4/environ.m4: New file.
11040 * gnulib/import/m4/setenv.m4: New file.
11041 * gnulib/import/setenv.c: New file.
11042 * gnulib/import/unsetenv.c: New file.
11043
11044 2017-07-09 Simon Marchi <simon.marchi@ericsson.com>
11045
11046 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read
11047 address when op is DW_OP_addr.
11048
11049 2017-07-09 Tom Tromey <tom@tromey.com>
11050
11051 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size
11052 check and apply to outer type.
11053
11054 2017-07-07 John Baldwin <jhb@FreeBSD.org>
11055
11056 * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS)
11057 (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI)
11058 (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New.
11059 (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method.
11060
11061 2017-07-07 John Baldwin <jhb@FreeBSD.org>
11062
11063 * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name.
11064
11065 2017-07-07 John Baldwin <jhb@FreeBSD.org>
11066
11067 * corelow.c (get_core_siginfo): Remove.
11068 (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method
11069 instead of get_core_siginfo.
11070 * gdbarch.sh (core_xfer_siginfo): New gdbarch callback.
11071 * gdbarch.h: Re-generate.
11072 * gdbarch.c: Re-generate.
11073 * linux-tdep.c (linux_core_xfer_siginfo): New.
11074 (linux_init_abi): Install gdbarch "core_xfer_siginfo" method.
11075
11076 2017-07-07 John Baldwin <jhb@FreeBSD.org>
11077
11078 * corelow.c (thread_section_name): Move to ...
11079 * gdbcore.h (thread_section_name): ... here.
11080
11081 2017-07-07 John Baldwin <jhb@FreeBSD.org>
11082
11083 * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32)
11084 (struct siginfo32): New.
11085 [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New.
11086 (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO
11087 via ptrace(PT_LWPINFO).
11088
11089 2017-07-07 John Baldwin <jhb@FreeBSD.org>
11090
11091 * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data)
11092 (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data)
11093 (fbsd_get_siginfo_type): New.
11094 (fbsd_init_abi): Install gdbarch "get_siginfo_type" method.
11095 (_initialize_fbsd_tdep): New.
11096
11097 2017-07-06 David Blaikie <dblaikie@gmail.com>
11098
11099 * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than
11100 a singular dwo_unit*) to support multiple CUs in the same way that
11101 multiple TUs are supported.
11102 (create_cus_hash_table): Replace create_dwo_cu with a function for
11103 parsing multiple CUs from a DWO file.
11104 (open_and_init_dwo_file): Use create_cus_hash_table rather than
11105 create_dwo_cu.
11106 (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with
11107 htab_find, rather than comparing the signature to a singleton CU in
11108 the dwo_file.
11109
11110 2017-07-06 Pedro Alves <palves@redhat.com>
11111
11112 * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition.
11113
11114 2017-07-04 Pedro Alves <palves@redhat.com>
11115
11116 * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC.
11117 * gdbtypes.h (TYPE_STATIC): Delete.
11118 (struct fn_field) <is_public, is_abstract, is_static, is_final,
11119 is_synchronized, is_native>: Delete.
11120 <dummy>: Bump.
11121 (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL)
11122 (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE)
11123 (TYPE_FN_FIELD_ABSTRACT): Delete.
11124
11125 2017-07-03 Simon Marchi <simon.marchi@ericsson.com>
11126
11127 * buffer.h (buffer_finish): Fix spelling mistakes.
11128
11129 2017-07-01 Eli Zaretskii <eliz@gnu.org>
11130
11131 * .dir-locals.el: Automatically switch to C-style comments in
11132 versions of Emacs that support the feature.
11133
11134 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
11135 Pedro Alves <palves@redhat.com>
11136
11137 PR cli/21688
11138 * cli/cli-script.c (command_name_equals_not_inline): Remove function.
11139 (process_next_line): New variable 'inline_cmd'.
11140 Adjust 'if' clauses for "python", "compile" and "guile" to use
11141 'command_name_equals' and check for '!inline_cmd'.
11142
11143 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
11144
11145 PR cli/21688
11146 * cli/cli-script.c (command_name_equals_not_inline): New function.
11147 (process_next_line): Adjust 'if' clauses for "python", "compile"
11148 and "guile" to use command_name_equals_not_inline.
11149
11150 2017-06-29 Pedro Alves <palves@redhat.com>
11151
11152 * completer.c (expression_completer): Call
11153 linespec_location_completer instead of location_completer.
11154
11155 2017-06-29 Pedro Alves <palves@redhat.com>
11156
11157 * completer.c (expression_completer): Remove code that recomputes
11158 'text' from 'word'.
11159
11160 2017-06-29 Yao Qi <yao.qi@linaro.org>
11161
11162 * regformats/regdat.sh: Generate code with
11163 "ifndef IN_PROCESS_AGENT".
11164
11165 2017-06-28 Pedro Alves <palves@redhat.com>
11166
11167 * command.h: Include "common/scoped_restore.h".
11168
11169 2017-06-28 Yao Qi <yao.qi@linaro.org>
11170
11171 * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str
11172 instead of obstack_grow.
11173
11174 2017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com>
11175
11176 PR gdb/21337
11177 * symfile.c (reread_symbols): Call objfiles_changed just before
11178 read_symbols.
11179
11180 2017-06-27 Pedro Alves <palves@redhat.com>
11181
11182 * symtab.c (COMPLETION_LIST_ADD_SYMBOL)
11183 (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ...
11184 (completion_list_add_symbol, completion_list_add_msymbol):
11185 ... these new functions.
11186 (add_symtab_completions)
11187 (default_make_symbol_completion_list_break_on_1): Adjust.
11188
11189 2017-06-27 Pedro Alves <palves@redhat.com>
11190
11191 * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of
11192 bfd_zalloc. Call objfile_per_bfd_storage's ctor.
11193 (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's
11194 dtor.
11195 * objfiles.h (objfile_per_bfd_storage): Add ctor. Make
11196 'storage_obstack' field an auto_obstack. In-class initialize all
11197 non-bitfield fields. Make minsyms_read bool.
11198 * symfile.c (read_symbols): Adjust.
11199
11200 2017-06-27 Alan Hayward <alan.hayward@arm.com>
11201
11202 * remote-sim.c (gdbsim_fetch_register): Use byte_vector.
11203 (gdbsim_store_register): Likewise.
11204
11205 2017-06-27 Pedro Alves <palves@redhat.com>
11206
11207 * c-exp.y (name_obstack): Now an auto_obstack.
11208 (yylex): Use auto_obstack::clear.
11209 (c_parse): Use auto_obstack::clear instead of reinitializing and
11210 freeing the obstack.
11211 * c-lang.c (evaluate_subexp_c): Use auto_obstack.
11212 * d-exp.y (name_obstack): Now an auto_obstack.
11213 (yylex): Use auto_obstack::clear.
11214 (d_parse): Use auto_obstack::clear instead of reinitializing and
11215 freeing the obstack.
11216 * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use
11217 auto_obstack.
11218 * dwarf2read.c (create_addrmap_from_index)
11219 (dwarf2_build_psymtabs_hard)
11220 (update_enumeration_type_from_children): Likewise.
11221 * gdb_obstack.h (auto_obstack): New type.
11222 * go-exp.y (name_obstack): Now an auto_obstack.
11223 (build_packaged_name): Use auto_obstack::clear.
11224 (go_parse): Use auto_obstack::clear instead of reinitializing and
11225 freeing the obstack.
11226 * linux-tdep.c (linux_make_mappings_corefile_notes): Use
11227 auto_obstack.
11228 * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack.
11229 * rust-exp.y (work_obstack): Now an auto_obstack.
11230 (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of
11231 reinitializing and freeing the obstack.
11232 * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete.
11233 (host_char_to_target): Use auto_obstack.
11234 * utils.h (make_cleanup_obstack_free): Delete declaration.
11235 * valprint.c (generic_emit_char, generic_printstr): Use
11236 auto_obstack.
11237
11238 2017-06-27 Simon Marchi <simon.marchi@ericsson.com>
11239
11240 * darwin-nat.c (darwin_check_new_threads): Don't handle dummy
11241 thread.
11242 (darwin_init_thread_list): Don't update dummy thread.
11243 (darwin_create_inferior, darwin_attach): Don't add a dummy thread.
11244
11245 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
11246
11247 * record-full.c (netorder16): Remove.
11248
11249 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
11250
11251 * common/diagnostics.h: Define macros for GCC.
11252 (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro.
11253 * common/vec.h: Include diagnostics.h.
11254 (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro.
11255 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function
11256 warning.
11257
11258 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
11259
11260 * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER):
11261 New macro.
11262 * ada-lex.l: Ignore deprecated register warnings.
11263
11264 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
11265
11266 * main.c (get_init_files): Replace "SYSTEM_GDBINIT +
11267 datadir_len" with "&SYSTEM_GDBINIT[datadir_len]".
11268
11269 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
11270
11271 * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on
11272 its own line.
11273
11274 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
11275
11276 * nat/x86-dregs.c (x86_show_dr): Print registers one per line.
11277
11278 2017-06-23 Alan Hayward <alan.hayward@arm.com>
11279
11280 * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add.
11281 (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE.
11282 (xtensa_register_read_masked): Likewise.
11283
11284 2017-06-22 Sergio Durigan Junior <sergiodj@redhat.com>
11285
11286 * common/environ.c (gdb_environ::unset): Update comment.
11287
11288 2017-06-22 Alan Hayward <alan.hayward@arm.com>
11289
11290 * python/py-unwind.c (pyuw_sniffer): Allocate space for
11291 registers.
11292
11293 2017-06-22 Alan Hayward <alan.hayward@arm.com>
11294
11295 * record-full.c (record_full_exec_insn): Use byte_vector.
11296
11297 2017-06-22 Yao Qi <yao.qi@linaro.org>
11298
11299 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated.
11300 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
11301
11302 2017-06-22 Alan Hayward <alan.hayward@arm.com>
11303
11304 * remote.c (cached_reg): Move from here...
11305 * regcache.h (cached_reg): ...to here.
11306 * python/py-unwind.c (struct reg_info): Remove.
11307 (cached_frame_info): Use cached_reg_t.
11308 (pyuw_prev_register): Likewise.
11309 (pyuw_sniffer): Use cached_reg_t and allocate registers.
11310 (pyuw_dealloc_cache): Free all registers.
11311
11312 2017-06-22 Pedro Alves <palves@redhat.com>
11313 Simon Marchi <simon.marchi@ericsson.com>
11314
11315 * unittests/environ-selftests.c (run_tests): Ignore -Wself-move
11316 warning.
11317 * common/diagnostics.h: New file.
11318
11319 2017-06-22 Pedro Alves <palves@redhat.com>
11320
11321 * common/agent.h: Add include guards.
11322
11323 2017-06-21 Simon Marchi <simon.marchi@ericsson.com>
11324
11325 * target.h (struct target_ops) <to_xfer_partial>: Update doc to
11326 talk about addressable units instead of bytes.
11327
11328 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
11329
11330 * common/environ.c (gdb_environ::unset): Use '::iterator' instead
11331 of '::const_iterator'.
11332
11333 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
11334
11335 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11336 'unittests/environ-selftests.c'.
11337 (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'.
11338 * charset.c (find_charset_names): Declare object 'iconv_env'.
11339 Update code to use 'iconv_env' object. Remove call to
11340 'free_environ'.
11341 * common/environ.c: Include <utility>.
11342 (make_environ): Delete function.
11343 (free_environ): Delete function.
11344 (gdb_environ::clear): New function.
11345 (gdb_environ::operator=): New function.
11346 (gdb_environ::get): Likewise.
11347 (environ_vector): Delete function.
11348 (set_in_environ): Delete function.
11349 (gdb_environ::set): New function.
11350 (unset_in_environ): Delete function.
11351 (gdb_environ::unset): New function.
11352 (gdb_environ::envp): Likewise.
11353 * common/environ.h: Include <vector>.
11354 (struct gdb_environ): Delete; transform into...
11355 (class gdb_environ): ... this class.
11356 (free_environ): Delete prototype.
11357 (init_environ, get_in_environ, set_in_environ, unset_in_environ,
11358 environ_vector): Likewise.
11359 * infcmd.c (run_command_1): Update code to call
11360 'envp' from 'gdb_environ' class.
11361 (environment_info): Update code to call methods from 'gdb_environ'
11362 class.
11363 (unset_environment_command): Likewise.
11364 (path_info): Likewise.
11365 (path_command): Likewise.
11366 * inferior.c (inferior::~inferior): Delete call to 'free_environ'.
11367 (inferior::inferior): Initialize 'environment' using the host's
11368 information.
11369 * inferior.h: Remove forward declaration of 'struct gdb_environ'.
11370 Include "environ.h".
11371 (class inferior) <environment>: Change type from 'struct
11372 gdb_environ' to 'gdb_environ'.
11373 * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call
11374 methods from 'gdb_environ' class.
11375 * solib.c (solib_find_1): Likewise
11376 * unittests/environ-selftests.c: New file.
11377
11378 2017-06-20 Yao Qi <yao.qi@linaro.org>
11379
11380 * features/i386/i386-linux.xml: Exchange the order of including
11381 32bit-linux.xml and 32bit-sse.xml.
11382 * features/i386/i386-linux.c: Regenerated.
11383
11384 2017-06-20 Yao Qi <yao.qi@linaro.org>
11385
11386 * target-descriptions.c (tdesc_reg): Add ctor, dtor.
11387 Delete copy ctor and assignment operator.
11388 (tdesc_type): Likewise.
11389 (tdesc_feature): Likewise.
11390 (tdesc_free_reg): Remove.
11391 (tdesc_create_reg): Use new.
11392 (tdesc_free_type): Remove.
11393 (tdesc_create_vector): Use new.
11394 (tdesc_create_union): Likewise.
11395 (tdesc_create_flags): Likewise.
11396 (tdesc_create_enum): Likewise.
11397 (tdesc_free_feature): Delete.
11398 (free_target_description): Use delete.
11399
11400 2017-06-19 John Baldwin <jhb@FreeBSD.org>
11401
11402 * mips-tdep.c (print_gp_register_row): Don't error for unavailable
11403 registers.
11404
11405 2017-06-19 Pedro Alves <palves@redhat.com>
11406
11407 * dwarf2read.c (write_psymtabs_to_index): Construct file_closer
11408 after gdb::unlinker.
11409
11410 2017-06-19 Sergio Durigan Junior <sergiodj@redhat.com>
11411
11412 * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of
11413 gdb_environ to access an environment variable.
11414
11415 2017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
11416
11417 * nat/linux-ptrace.c (linux_fork_to_function): Add cast to
11418 gdb_byte*.
11419
11420 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
11421
11422 * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF.
11423
11424 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
11425
11426 * configure: Re-generate.
11427 * warning.m4 (build_warnings): Add -Wno-mismatched-tags.
11428
11429 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
11430
11431 * configure: Re-generate.
11432 * warning.m4: Pass -Werror to compiler when checking for
11433 supported warning flags.
11434
11435 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
11436
11437 * Makefile.in (COMPILE.pre): Add "-x c++".
11438
11439 2017-06-16 Alan Hayward <alan.hayward@arm.com>
11440 Pedro Alves <palves@redhat.com>
11441 Yao Qi <yao.qi@linaro.org>
11442
11443 * defs.h (RequireLongest): New.
11444 (extract_integer): Declare function template.
11445 (extract_signed_integer): Remove the declaration, but define it
11446 static inline.
11447 (extract_unsigned_integer): Likewise.
11448 (store_integer): Declare function template.
11449 (store_signed_integer): Remove the declaration, but define it
11450 static inline.
11451 (store_unsigned_integer): Likewise.
11452 * findvar.c (extract_integer): New function template.
11453 (extract_signed_integer): Remove.
11454 (extract_unsigned_integer): Remove.
11455 (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit
11456 instantiations.
11457 (store_integer): New function template.
11458 (store_signed_integer): Remove.
11459 (store_unsigned_integer): Remove.
11460 (store_integer): Explicit instantiations.
11461 * regcache.c (regcache_raw_read_signed): Update.
11462 (regcache::raw_read): New function.
11463 (regcache::raw_read_signed): Remove.
11464 (regcache::raw_read_unsigned): Remove.
11465 (regcache_raw_read_unsigned): Update.
11466 (regcache_raw_write_unsigned): Update.
11467 (regcache::raw_write_signed): Remove.
11468 (regcache::raw_write): New function.
11469 (regcache_cooked_read_signed): Update.
11470 (regcache::raw_write_unsigned): Remove.
11471 (regcache::cooked_read_signed): Remove.
11472 (regcache_cooked_read_unsigned): Update.
11473 (regcache::cooked_read_unsigned): Remove.
11474 (regcache_cooked_write_signed): Update.
11475 (regcache_cooked_write_unsigned): Update.
11476 * regcache.h (regcache) <raw_read_signed>: Remove.
11477 <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove.
11478 <raw_read, raw_write>: New.
11479 <cooked_read_signed, cooked_write_signed>: Remove.
11480 <cooked_write_unsigned, cooked_read_unsigned>: Remove.
11481 <cooked_read, cooked_write>: New.
11482 * sh64-tdep.c (sh64_pseudo_register_read): Update.
11483 (sh64_pseudo_register_write): Update.
11484
11485 2017-06-16 Anton Kolesov <anton.kolesov@synopsys.com>
11486
11487 * arc-tdep.c (arc_disassembler_options): New variable.
11488 (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead
11489 of default_print_insn.
11490 (arc_delayed_print_insn): Set info->section when needed,
11491 use default_print_insn to retrieve a disassembler.
11492
11493 2017-06-14 Sergio Durigan Junior <sergiodj@redhat.com>
11494
11495 PR gdb/21574
11496 * infcmd.c (_initialize_infcmd): Expand "help run" documentation
11497 to mention $SHELL and startup-with-shell.
11498
11499 2017-06-14 Max Filippov <jcmvbkbc@gmail.com>
11500
11501 * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers.
11502
11503 2017-06-14 Yao Qi <yao.qi@linaro.org>
11504
11505 * aarch64-tdep.c (aarch64_gdb_print_insn): Call
11506 default_print_insn instead of print_insn_aarch64.
11507 * arm-tdep.c (gdb_print_insn_arm): Call
11508 default_print_insn instead of print_insn_big_arm
11509 and print_insn_little_arm.
11510 * i386-tdep.c (i386_print_insn): Call default_print_insn
11511 instead of print_insn_i386.
11512 * ia64-tdep.c (ia64_print_insn): Call
11513 default_print_insn instead of print_insn_ia64.
11514 * mips-tdep.c (gdb_print_insn_mips): Call
11515 default_print_insn instead of print_insn_big_mips
11516 and print_insn_little_mips.
11517 * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn
11518 instead of print_insn_spu.
11519
11520 2017-06-14 Pedro Alves <palves@redhat.com>
11521
11522 * ada-lang.c: Include "common/byte-vector.h".
11523 (ada_value_primitive_packed_val): Use gdb::byte_vector.
11524 * charset.c (wchar_iterator::iterate): Resize the vector instead
11525 of reserving it.
11526 * common/byte-vector.h: Include "common/def-vector.h".
11527 (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>.
11528 * cli/cli-dump.c: Include "common/byte-vector.h".
11529 (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector.
11530 * common/byte-vector.h: New file.
11531 * common/def-vector.h: New file.
11532 * common/default-init-alloc.h: New file.
11533 * dwarf2loc.c: Include "common/byte-vector.h".
11534 (rw_pieced_value): Use gdb::byte_vector, and resize the vector
11535 instead of reserving it.
11536 * dwarf2read.c: Include "common/byte-vector.h".
11537 (data_buf::m_vec): Now a gdb::byte_vector.
11538 * gdb_regex.c: Include "common/def-vector.h".
11539 (compiled_regex::compiled_regex): Use gdb::def_vector<char>.
11540 * mi/mi-main.c: Include "common/byte-vector.h".
11541 (mi_cmd_data_read_memory): Use gdb::byte_vector.
11542 * printcmd.c: Include "common/byte-vector.h".
11543 (print_scalar_formatted): Use gdb::byte_vector.
11544 * valprint.c: Include "common/byte-vector.h".
11545 (maybe_negate_by_bytes, print_decimal_chars): Use
11546 gdb::byte_vector.
11547
11548 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
11549
11550 * darwin-nat.c: Include "nat/fork-inferior.h".
11551
11552 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
11553
11554 * configure.nat: Factor out Darwin bits that are not
11555 architecture-specific. Add fork-inferior.o.
11556
11557 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
11558
11559 * configure.nat: Factor out AIX bits that are not
11560 architecture-specific. Add fork-inferior.o.
11561
11562 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11563
11564 * dwarf2loc.c (rw_pieced_value): New. Merge logic from...
11565 (read_pieced_value, write_pieced_value): ...here. Reduce to
11566 wrappers that just call rw_pieced_value.
11567
11568 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11569
11570 * dwarf2loc.c (write_pieced_value): When writing the data for a
11571 memory piece, use write_memory_with_notification instead of
11572 write_memory.
11573
11574 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11575
11576 * valops.c (read_value_memory): Change embedded_offset to
11577 represent a bit offset instead of a byte offset.
11578 * value.h (read_value_memory): Adjust comment.
11579
11580 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11581
11582 * dwarf2loc.c (read_pieced_value): Remove unnecessary variables
11583 dest_offset_bits and source_offset_bits.
11584 (write_pieced_value): Likewise.
11585
11586 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11587
11588 * dwarf2loc.c (read_pieced_value): Respect the piece offset, as
11589 given by DW_OP_bit_piece.
11590 (write_pieced_value): Likewise.
11591
11592 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11593
11594 * dwarf2loc.c (read_pieced_value): Move the buffer allocation and
11595 some other preparations to the places where sufficient information
11596 is available.
11597 (write_pieced_value): Likewise.
11598
11599 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11600
11601 * dwarf2loc.c (bits_to_bytes): New function.
11602 (read_pieced_value): Fix offset calculations for register pieces
11603 on big-endian targets.
11604 (write_pieced_value): Likewise.
11605
11606 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11607
11608 * dwarf2loc.c (read_pieced_value): Remove buffer_size variable.
11609 (write_pieced_value): Likewise.
11610
11611 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11612
11613 * dwarf2loc.c (write_pieced_value): When writing to a bit-field,
11614 transfer the source value's least significant bits, instead of its
11615 lowest-addressed ones. Rename type_len to max_offset.
11616 (read_pieced_value): Mirror above changes to write_pieced_value as
11617 applicable.
11618
11619 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11620
11621 * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY,
11622 truncate full bytes from dest_offset_bits before using it as an
11623 offset into the buffer.
11624
11625 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11626
11627 * dwarf2loc.c (write_pieced_value): Include transfer size in
11628 byte-wise check.
11629
11630 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11631
11632 * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the
11633 calculation of this_size.
11634
11635 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11636
11637 * dwarf2loc.c (read_pieced_value): Respect parent value's offset
11638 when targeting a bit-field.
11639 (write_pieced_value): Likewise.
11640
11641 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11642
11643 * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field.
11644 (allocate_piece_closure): Drop addr_size parameter.
11645 (dwarf2_evaluate_loc_desc_full): Adjust call to
11646 allocate_piece_closure.
11647
11648 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11649
11650 PR gdb/21226
11651 * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at
11652 the LSB end, independent of endianness.
11653
11654 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11655
11656 * dwarf2loc.c (write_pieced_value): Fix order of calculations for
11657 size capping.
11658
11659 2017-06-13 Yao Qi <yao.qi@linaro.org>
11660
11661 * mips-linux-nat.c: Move include features/mips*-linux.c to
11662 mips-linux-tdep.c.
11663 (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls
11664 to mips-linux-tdep.c.
11665 * mips-linux-tdep.c: Include features/mips*-linux.c
11666 (_initialize_mips_linux_tdep): Call initialize_tdesc_mips*
11667 functions.
11668 * mips-linux-tdep.h (tdesc_mips_linux): Declare.
11669 (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare.
11670 (tdesc_mips64_dsp_linux): Declare.
11671
11672 2017-06-12 Tom Tromey <tom@tromey.com>
11673
11674 * valprint.h (val_print_type_code_int): Remove.
11675 * valprint.c (generic_val_print_int): Always call
11676 val_print_scalar_formatted.
11677 (val_print_type_code_int): Remove.
11678 * printcmd.c (print_scalar_formatted): Handle options->format==0.
11679 * f-valprint.c (f_val_print): Use val_print_scalar_formatted.
11680 * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted.
11681 * ada-valprint.c (ada_val_print_num): Use
11682 val_print_scalar_formatted.
11683
11684 2017-06-12 Tom Tromey <tom@tromey.com>
11685
11686 * printcmd.c (print_scalar_formatted): Unify the two switches.
11687 Don't convert scalars to LONGEST.
11688
11689 2017-06-12 Tom Tromey <tom@tromey.com>
11690
11691 PR exp/16225:
11692 * valprint.h (print_decimal_chars): Update.
11693 * valprint.c (maybe_negate_by_bytes): New function.
11694 (print_decimal_chars): Add "is_signed" argument.
11695 * printcmd.c (print_scalar_formatted): Update.
11696
11697 2017-06-12 Tom Tromey <tom@tromey.com>
11698
11699 PR exp/16225:
11700 * valprint.h (print_binary_chars, print_hex_chars): Update.
11701 * valprint.c (val_print_type_code_int): Update.
11702 (print_binary_chars): Add "zero_pad" argument.
11703 (emit_octal_digit): New function.
11704 (print_octal_chars): Don't zero-pad.
11705 (print_decimal_chars): Likewise.
11706 (print_hex_chars): Add "zero_pad" argument.
11707 * sh64-tdep.c (sh64_do_fp_register): Update.
11708 * regcache.c (regcache::dump): Update.
11709 * printcmd.c (print_scalar_formatted): Update.
11710 * infcmd.c (default_print_one_register_info): Update.
11711
11712 2017-06-12 Pedro Alves <palves@redhat.com>
11713 Alan Hayward <alan.hayward@arm.com>
11714
11715 * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New.
11716 (mips_eabi_push_dummy_call): Rename local 'regsize' to
11717 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and
11718 use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it.
11719 Assert that abi_regsize bytes fit in 'ref_valbuf'.
11720
11721 2017-06-12 Pedro Alves <palves@redhat.com>
11722
11723 * dwarf2read.c (mapped_symtab::data): Now a vector of
11724 symtab_index_entry instead of vector of
11725 std::unique_ptr<symtab_index_entry>. All users adjusted to check
11726 whether an element's name is NULL instead of checking whether the
11727 element itself is NULL.
11728 (find_slot): Change return type. Adjust.
11729 (hash_expand, , add_index_entry, uniquify_cu_indices)
11730 (write_hash_table): Adjust.
11731
11732 2017-06-12 Pedro Alves <palves@redhat.com>
11733
11734 * dwarf2read.c (recursively_count_psymbols): New function.
11735 (write_psymtabs_to_index): Call it to compute number of psyms and
11736 pass estimate size of psyms_seen to unordered_set's ctor.
11737
11738 2017-06-12 Pedro Alves <palves@redhat.com>
11739
11740 * dwarf2read.c (write_hash_table): Check if key already exists
11741 before emplacing.
11742
11743 2017-06-12 Pedro Alves <palves@redhat.com>
11744
11745 * dwarf2read.c (data_buf::append_space): Rename to...
11746 (data_buf::grow): ... this, and make private. Adjust all callers.
11747 (data_buf::append_uint): New method.
11748 (add_address_entry, write_one_signatured_type)
11749 (write_psymtabs_to_index): Use it.
11750
11751 2017-06-12 Pedro Alves <palves@redhat.com>
11752
11753 * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete.
11754 (file_write (FILE *, const std::vector<Elem>&)): Delete.
11755 (data_buf::file_write): Call ::fwrite directly.
11756
11757 2017-06-12 Pedro Alves <palves@redhat.com>
11758
11759 * dwarf2read.c (uniquify_cu_indices): Use std::unique and
11760 std::vector::erase.
11761
11762 2017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11763
11764 Code cleanup: C++ify .gdb_index producer.
11765 * dwarf2read.c: Include <unordered_set> and <unordered_map>.
11766 (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type.
11767 (struct strtab_entry, hash_strtab_entry, eq_strtab_entry)
11768 (create_strtab, add_string): Remove.
11769 (file_write, data_buf): New.
11770 (struct symtab_index_entry): Use std::vector for cu_indices.
11771 (struct mapped_symtab): Use std::vector for data.
11772 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry)
11773 (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab):
11774 Remove.
11775 (find_slot): Change return type. Update it to the new data structures.
11776 (hash_expand, add_index_entry): Update it to the new data structures.
11777 (offset_type_compare): Remove.
11778 (uniquify_cu_indices): Update it to the new data structures.
11779 (c_str_view, c_str_view_hasher, vector_hasher): New.
11780 (add_indices_to_cpool): Remove.
11781 (write_hash_table): Update it to the new data structures.
11782 (struct psymtab_cu_index_map, hash_psymtab_cu_index)
11783 (eq_psymtab_cu_index): Remove.
11784 (psym_index_map): New typedef.
11785 (struct addrmap_index_data): Change addr_obstack pointer to data_buf
11786 reference and std::unordered_map for cu_index_htab.
11787 (add_address_entry, add_address_entry_worker, write_address_map)
11788 (write_psymbols): Update it to the new data structures.
11789 (write_obstack): Remove.
11790 (struct signatured_type_index_data): Change types_list to a data_buf
11791 reference and psyms_seen to a std::unordered_set reference.
11792 (write_one_signatured_type, recursively_write_psymbols)
11793 (write_psymtabs_to_index): Update it to the new data structures.
11794
11795 2017-06-11 Simon Marchi <simon.marchi@ericsson.com>
11796
11797 * NEWS (Changes since GDB 8.0): Announce {set,show} debug
11798 separate-debug-file commands.
11799 * symfile.h (separate_debug_file_debug): New global.
11800 * symfile.c (separate_debug_file_debug): New global.
11801 (separate_debug_file_exists, find_separate_debug_file): Add
11802 debug output.
11803 (_initialize_symfile): Add "set debug separate-debug-file"
11804 command.
11805 * build-id.c (build_id_to_debug_bfd,
11806 find_separate_debug_file_by_buildid): Add debug output.
11807
11808 2017-06-10 Simon Marchi <simon.marchi@polymtl.ca>
11809
11810 * gdbarch.sh (displaced_step_free_closure): Remove.
11811 * gdbarch.h, gdbarch.c: Re-generate.
11812 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set
11813 displaced_step_free_closure.
11814 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
11815 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
11816 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
11817 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
11818 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11819 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
11820 * arch-utils.h (simple_displaced_step_free_closure): Remove.
11821 * arch-utils.c (simple_displaced_step_free_closure): Remove.
11822 * infrun.c (displaced_step_clear): Call xfree instead of
11823 gdbarch_displaced_step_free_closure.
11824
11825 2017-06-08 Sergio Durigan Junior <sergiodj@redhat.com>
11826
11827 * common/common-utils.c (stringify_argv): Check for "arg[0] !=
11828 NULL".
11829
11830 2017-06-08 Alan Hayward <alan.hayward@arm.com>
11831
11832 * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add.
11833 (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE.
11834 (mn10300_push_dummy_call): Likewise.
11835
11836 2017-06-08 Alan Hayward <alan.hayward@arm.com>
11837
11838 * mi/mi-main.c (register_changed_p): Use value_contents_eq.
11839
11840 2017-06-08 Alan Hayward <alan.hayward@arm.com>
11841
11842 * mi/mi-main.c (register_changed_p): Use cooked_read_value.
11843
11844 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
11845
11846 * NEWS (Changes since GDB 8.0): Announce that GDBserver is now
11847 able to start inferiors using a shell.
11848 (New remote packets): Announce new packet "QStartupWithShell".
11849 * remote.c: Add PACKET_QStartupWithShell.
11850 (extended_remote_create_inferior): Handle new
11851 PACKET_QStartupWithShell.
11852 (remote_protocol_features) <QStartupWithShell>: New entry for
11853 PACKET_QStartupWithShell.
11854 (_initialize_remote): Call "add_packet_config_cmd" for
11855 QStartupShell.
11856
11857 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
11858 Pedro Alves <palves@redhat.com>
11859
11860 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h"
11861 and "nat/fork-inferior.h".
11862 * common/common-inferior.h: New file, with contents from
11863 "gdb/inferior.h".
11864 * commom/common-utils.c: Include "common-utils.h".
11865 (stringify_argv): New function.
11866 * common/common-utils.h (stringify_argv): New prototype.
11867 * configure.nat: Add "fork-inferior.o" as a dependency for
11868 "*linux*", "fbsd*" and "nbsd*" hosts.
11869 * corefile.c (get_exec_file): Update comment.
11870 * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior"
11871 instead of "startup_inferior".
11872 (darwin_create_inferior): Call "add_thread_silent" after
11873 "fork_inferior".
11874 * fork-child.c: Cleanup unnecessary includes.
11875 (SHELL_FILE): Move to "common/common-fork-child.c".
11876 (environ): Likewise.
11877 (exec_wrapper): Initialize.
11878 (get_exec_wrapper): New function.
11879 (breakup_args): Move to "common/common-fork-child.c"; rename to
11880 "breakup_args_for_exec".
11881 (escape_bang_in_quoted_argument): Move to
11882 "common/common-fork-child.c".
11883 (saved_ui): New variable.
11884 (prefork_hook): New function.
11885 (postfork_hook): Likewise.
11886 (postfork_child_hook): Likewise.
11887 (gdb_startup_inferior): Likewise.
11888 (fork_inferior): Move to "common/common-fork-child.c". Update
11889 function to support gdbserver.
11890 (startup_inferior): Likewise.
11891 * gdbcore.h (get_exec_file): Remove declaration.
11892 * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior"
11893 instead of "startup_inferior". Call "add_thread_silent" after
11894 "fork_inferior".
11895 * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h".
11896 (inf_ptrace_create_inferior): Call "gdb_startup_inferior"
11897 instead of "startup_inferior". Call "add_thread_silent" after
11898 "fork_inferior".
11899 * inferior.h: Include "common-inferior.h".
11900 (trace_start_error): Move to "common/common-utils.h".
11901 (trace_start_error_with_name): Likewise.
11902 (fork_inferior): Move prototype to "nat/fork-inferior.h".
11903 (startup_inferior): Likewise.
11904 (gdb_startup_inferior): New prototype.
11905 * nat/fork-inferior.c: New file, with contents from "fork-child.c".
11906 * nat/fork-inferior.h: New file.
11907 * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior"
11908 instead of "startup_inferior". Call "add_thread_silent" after
11909 "fork_inferior".
11910 * target.h (target_terminal_init): Move prototype to
11911 "target/target.h".
11912 (target_terminal_inferior): Likewise.
11913 (target_terminal_ours): Likewise.
11914 * target/target.h (target_terminal_init): New prototype, moved
11915 from "target.h".
11916 (target_terminal_inferior): Likewise.
11917 (target_terminal_ours): Likewise.
11918 * utils.c (gdb_flush_out_err): New function.
11919
11920 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
11921
11922 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h".
11923 * common/common-gdbthread.h: New file, with parts from
11924 "gdb/gdbthread.h".
11925 * gdbthread.h: Include "common-gdbthread.h".
11926 (switch_to_thread): Moved to "common/common-gdbthread.h".
11927
11928 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
11929
11930 * Makefile.in (SFILES): Add "common/job-control.c".
11931 (HFILES_NO_SRCDIR): Add "common/job-control.h".
11932 (COMMON_OBS): Add "job-control.o".
11933 * common/job-control.c: New file, with contents from
11934 "gdb/inflow.c".
11935 * common/job-control.h: New file, with contents from "terminal.h".
11936 * fork-child.c: Include "job-control.h".
11937 * inflow.c: Include "job-control.h".
11938 (gdb_setpgid): Move to "common/common-inflow.c".
11939 (_initialize_inflow): Move setting of "job_control" to
11940 "handle_job_control".
11941 * terminal.h (job_control): Moved to "common/common-terminal.h".
11942 (gdb_setpgid): Likewise.
11943 * top.c: Include "job_control.h".
11944 * utils.c: Likewise.
11945 (job_control): Moved to "job-control.c".
11946
11947 2017-06-07 Pedro Alves <palves@redhat.com>
11948
11949 * Makefile.in (SFILES): Add gdb_regex.c.
11950 (COMMON_OBS): Add gdb_regex.o.
11951 * ada-lang.c (ada_add_standard_exceptions)
11952 (ada_add_exceptions_from_frame, name_matches_regex)
11953 (ada_add_global_exceptions, ada_exceptions_list_1): Change regex
11954 parameter type to compiled_regex. Adjust.
11955 (ada_exceptions_list): Use compiled_regex.
11956 * break-catch-throw.c (exception_catchpoint::pattern): Now a
11957 std::unique_ptr<compiled_regex>.
11958 (exception_catchpoint::~exception_catchpoint): Remove regfree
11959 call.
11960 (check_status_exception_catchpoint): Adjust to use compiled_regex.
11961 (handle_gnu_v3_exceptions): Adjust to use compiled_regex.
11962 * breakpoint.c (solib_catchpoint::compiled): Now a
11963 std::unique_ptr<compiled_regex>.
11964 (solib_catchpoint::~solib_catchpoint): Remove regfree call.
11965 (check_status_catch_solib): Adjust to use compiled_regex.
11966 (add_solib_catchpoint): Adjust to use compiled_regex.
11967 * cli/cli-cmds.c (apropos_command): Use compiled_regex.
11968 * cli/cli-decode.c (apropos_cmd): Change regex parameter to
11969 compiled_regex reference. Adjust to use it.
11970 * cli/cli-decode.h: Remove struct re_pattern_buffer forward
11971 declaration. Include "gdb_regex.h".
11972 (apropos_cmd): Change regex parameter to compiled_regex reference.
11973 * gdb_regex.c: New file.
11974 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete
11975 declarations.
11976 (class compiled_regex): New.
11977 * linux-tdep.c: Include "common/gdb_optional.h".
11978 (struct mapping_regexes): New, factored out from
11979 mapping_is_anonymous_p, and adjusted to use compiled_regex.
11980 (mapping_is_anonymous_p): Use mapping_regexes wrapped in a
11981 gdb::optional and remove cleanups. Adjust to compiled_regex.
11982 * probe.c: Include "common/gdb_optional.h".
11983 (collect_probes): Use compiled_regex and gdb::optional and remove
11984 cleanups.
11985 * skip.c: Include "common/gdb_optional.h".
11986 (skiplist_entry::compiled_function_regexp): Now a
11987 gdb::optional<compiled_regex>.
11988 (skiplist_entry::compiled_function_regexp_is_valid): Delete field.
11989 (free_skiplist_entry): Remove regfree call.
11990 (compile_skip_regexp, skip_rfunction_p): Adjust to use
11991 compiled_regex and gdb::optional.
11992 * symtab.c: Include "common/gdb_optional.h".
11993 (search_symbols): Use compiled_regex and gdb::optional.
11994 * utils.c (do_regfree_cleanup, make_regfree_cleanup)
11995 (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved
11996 to gdb_regex.c.
11997
11998 2017-06-07 Alan Hayward <alan.hayward@arm.com>
11999
12000 * regcache.c (regcache::save): Avoid buffer use.
12001 (regcache::dump): Likewise.
12002
12003 2017-06-07 Alan Hayward <alan.hayward@arm.com>
12004
12005 * sh-tdep.c (sh_pseudo_register_read): Remove
12006 MAX_REGISTER_SIZE.
12007 (sh_pseudo_register_write): Likewise.
12008 * sh64-tdep.c (sh64_pseudo_register_read): Likewise.
12009 (sh64_pseudo_register_write): Likewise
12010
12011 2017-06-07 Alan Hayward <alan.hayward@arm.com>
12012
12013 * aarch64-tdep.c (aarch64_store_return_value): Use
12014 V_REGISTER_SIZE.
12015 (aarch64_pseudo_read_value): Likewise.
12016 (aarch64_pseudo_write): Likewise.
12017
12018 2017-06-06 Yao Qi <yao.qi@linaro.org>
12019
12020 * regformats/regdef.h (set_register_cache): Remove the
12021 declaration.
12022
12023 2017-06-06 Alan Hayward <alan.hayward@arm.com>
12024
12025 * frame.c (frame_unwind_register_signed): Use
12026 frame_unwind_register_value.
12027
12028 2017-06-06 Pedro Alves <palves@redhat.com>
12029
12030 PR breakpoints/21553
12031 * breakpoint.c (create_breakpoints_sal_default)
12032 (init_breakpoint_sal, create_breakpoint_sal): Use
12033 gdb::unique_xmalloc_ptr for string parameters.
12034 (create_breakpoint): Constify 'extra_string' and 'cond_string'
12035 parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
12036 (base_breakpoint_create_breakpoints_sal)
12037 (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
12038 (strace_marker_create_breakpoints_sal)
12039 (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
12040 string parameters.
12041 * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
12042 gdb::unique_xmalloc_ptr for string parameters.
12043 (create_breakpoint): Constify 'extra_string' and 'cond_string'
12044 parameters.
12045
12046 2017-06-06 Alan Hayward <alan.hayward@arm.com>
12047
12048 * alpha-tdep.c (alpha_register_to_value): Use
12049 get_frame_register_value.
12050 (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
12051
12052 2017-06-06 Alan Hayward <alan.hayward@arm.com>
12053
12054 * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
12055 (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
12056 (ia64_value_to_register): Likewise.
12057 (ia64_extract_return_value): Likewise.
12058 (ia64_store_return_value): Likewise.
12059 (ia64_push_dummy_call): Likewise.
12060
12061 2017-06-04 Joel Brobecker <brobecker@adacore.com>
12062
12063 GDB 8.0 released.
12064
12065 2017-06-03 Simon Marchi <simon.marchi@ericsson.com>
12066
12067 * x86-linux-nat.c (struct arch_lwp_info): Remove.
12068
12069 2017-06-03 Simon Marchi <simon.marchi@polymtl.ca>
12070
12071 * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
12072 parameter.
12073 (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
12074
12075 2017-06-02 Simon Marchi <simon.marchi@ericsson.com>
12076
12077 * event-loop.c (poll_timers): Unallocate timer using delete
12078 instead of xfree.
12079
12080 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
12081
12082 * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
12083 (struct breakpoint) <~breakpoint>: New.
12084 (struct watchpoint): Inherit from breakpoint.
12085 <~watchpoint>: New.
12086 <base>: Remove.
12087 (struct tracepoint): Inherit from breakpoint.
12088 <base>: Remove.
12089 * breakpoint.c (longjmp_breakpoint_ops): Remove.
12090 (struct longjmp_breakpoint): Inherit from breakpoint.
12091 <~longjmp_breakpoint>: New.
12092 <base>: Remove.
12093 (new_breakpoint_from_type): Remove casts.
12094 (watchpoint_in_thread_scope): Remove reference to base field.
12095 (watchpoint_del_at_next_stop): Likewise.
12096 (update_watchpoint): Likewise.
12097 (watchpoint_check): Likewise.
12098 (bpstat_check_watchpoint): Likewise.
12099 (set_longjmp_breakpoint): Likewise.
12100 (struct fork_catchpoint): Inherit from breakpoint.
12101 <base>: Remove.
12102 (struct solib_catchpoint): Inherit from breakpoint.
12103 <~solib_catchpoint>: New.
12104 <base>: Remove.
12105 (dtor_catch_solib): Change to ...
12106 (solib_catchpoint::~solib_catchpoint): ... this.
12107 (breakpoint_hit_catch_solib): Remove reference to base field.
12108 (add_solib_catchpoint): Likewise.
12109 (create_fork_vfork_event_catchpoint): Likewise.
12110 (struct exec_catchpoint): Inherit from breakpoint.
12111 <~exec_catchpoint>: New.
12112 <base>: Remove.
12113 (dtor_catch_exec): Change to ...
12114 (exec_catchpoint::~exec_catchpoint): ... this.
12115 (dtor_watchpoint): Change to ...
12116 (watchpoint::~watchpoint): ... this.
12117 (watch_command_1): Remove reference to base field.
12118 (catch_exec_command_1): Likewise.
12119 (base_breakpoint_dtor): Change to ...
12120 (breakpoint::~breakpoint): ... this.
12121 (base_breakpoint_ops): Remove dtor field value.
12122 (longjmp_bkpt_dtor): Change to ...
12123 (longjmp_breakpoint::~longjmp_breakpoint): ... this.
12124 (strace_marker_create_breakpoints_sal): Remove reference to base
12125 field.
12126 (delete_breakpoint): Don't manually call breakpoint destructor.
12127 (create_tracepoint_from_upload): Remove reference to base field.
12128 (trace_pass_set_count): Likewise.
12129 (initialize_breakpoint_ops): Don't initialize
12130 momentary_breakpoint_ops, don't set dtors.
12131 * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
12132 <~ada_catchpoint>: New.
12133 <base>: Remove.
12134 (create_excep_cond_exprs): Remove reference to base field.
12135 (dtor_exception): Change to ...
12136 (ada_catchpoint::~ada_catchpoint): ... this.
12137 (dtor_catch_exception): Remove.
12138 (dtor_catch_exception_unhandled): Remove.
12139 (dtor_catch_assert): Remove.
12140 (create_ada_exception_catchpoint): Remove reference to base
12141 field.
12142 (initialize_ada_catchpoint_ops): Don't set dtors.
12143 * break-catch-sig.c (struct signal_catchpoint): Inherit from
12144 breakpoint.
12145 <~signal_catchpoint>: New.
12146 <base>: Remove.
12147 (signal_catchpoint_dtor): Change to ...
12148 (signal_catchpoint::~signal_catchpoint): ... this.
12149 (create_signal_catchpoint): Remove reference to base field.
12150 (initialize_signal_catchpoint_ops): Don't set dtor.
12151 * break-catch-syscall.c (struct syscall_catchpoint): Inherit
12152 from breakpoint.
12153 <~syscall_catchpoint>: New.
12154 <base>: Remove.
12155 (dtor_catch_syscall): Change to ...
12156 (syscall_catchpoint::~syscall_catchpoint): ... this.
12157 (create_syscall_event_catchpoint): Remove reference to base
12158 field.
12159 (initialize_syscall_catchpoint_ops): Don't set dtor.
12160 * break-catch-throw.c (struct exception_catchpoint): Inherit
12161 from breakpoint.
12162 <~exception_catchpoint>: New.
12163 <base>: Remove.
12164 (dtor_exception_catchpoint): Change to ...
12165 (exception_catchpoint::~exception_catchpoint): ... this.
12166 (handle_gnu_v3_exceptions): Remove reference to base field.
12167 (initialize_throw_catchpoint_ops): Don't set dtor.
12168 * ctf.c (ctf_get_traceframe_address): Remove reference to base
12169 field.
12170 * remote.c (remote_get_tracepoint_status): Likewise.
12171 * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
12172 * tracefile.c (tracefile_fetch_registers): Likewise.
12173 * tracepoint.c (actions_command): Likewise.
12174 (validate_actionline): Likewise.
12175 (tfind_1): Likewise.
12176 (get_traceframe_location): Likewise.
12177 (find_matching_tracepoint_location): Likewise.
12178 (parse_tracepoint_status): Likewise.
12179 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
12180
12181 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
12182
12183 * breakpoint.c (struct longjmp_breakpoint): New struct.
12184 (is_tracepoint_type): Change return type to bool.
12185 (is_longjmp_type): New function.
12186 (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
12187 (set_raw_breakpoint_without_location): Use
12188 new_breakpoint_from_type.
12189 (set_raw_breakpoint): Likewise.
12190
12191 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
12192
12193 * breakpoint.c (new_breakpoint_from_type): New function.
12194 (create_breakpoint_sal): Use new_breakpoint_from_type and
12195 unique_ptr.
12196 (create_breakpoint): Likewise.
12197
12198 2017-05-31 Simon Marchi <simon.marchi@ericsson.com>
12199
12200 * memattr.c (mem_info_command): Rename to ...
12201 (info_mem_command): ... this.
12202 (mem_enable_command): Rename to ...
12203 (enable_mem_command): ... this.
12204 (mem_disable_command): Rename to ...
12205 (disable_mem_command): ... this.
12206 (mem_delete_command): Rename to ...
12207 (delete_mem_command): ... this.
12208 (_initialize_mem): Adjust function names.
12209
12210 2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
12211
12212 * btrace.c (handle_pt_insn_events): New.
12213 (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into
12214 STATUS. Split into this and ...
12215 (handle_pt_insn_event_flags): ... this.
12216
12217 2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
12218
12219 * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
12220 and struct pt_insn.resynced.
12221 * configure: Regenerated.
12222 * config.in: Regenerated.
12223
12224 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12225
12226 * btrace.c (ftrace_find_call_by_number): New function.
12227 (ftrace_new_function): Store objects, not pointers.
12228 (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
12229 ftrace_new_gap, ftrace_update_function,
12230 ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
12231 btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
12232 btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
12233 btrace_ends_with_single_insn, btrace_call_get): Account for
12234 btrace_thread_info::functions now storing objects.
12235 * btrace.h (struct btrace_thread_info): Add constructor.
12236 (struct btrace_thread_info) <functions>: Make std::vector.
12237 (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
12238 Initialize with default values.
12239 * record-btrace.c (record_btrace_frame_sniffer): Account for
12240 btrace_thread_info::functions now storing objects.
12241
12242 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12243
12244 * btrace.c: Remove typedef bfun_s.
12245 (ftrace_new_gap): Directly add gaps to the list of gaps.
12246 (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
12247 ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
12248 btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
12249 instead of gdb VEC.
12250
12251 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12252
12253 * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
12254 ftrace_bridge_gap): Replace references to btrace_thread_info::segment
12255 with btrace_thread_info::next_segment and
12256 btrace_thread_info::prev_segment.
12257 * btrace.h: Remove struct btrace_func_link.
12258 (struct btrace_function): Replace pair of function segment pointers
12259 with pair of indices.
12260 * python/py-record-btrace.c (btpy_call_prev_sibling,
12261 btpy_call_next_sibling): Replace references to
12262 btrace_thread_info::segment with btrace_thread_info::next_segment and
12263 btrace_thread_info::prev_segment.
12264 * record-btrace.c (record_btrace_frame_this_id): Use
12265 btrace_find_call_by_number.
12266
12267 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12268
12269 * btrace.c (ftrace_new_function, ftrace_fixup_level,
12270 ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
12271 btrace_insn_next, btrace_insn_prev): Remove references to
12272 btrace_thread_info::flow.
12273 * btrace.h (struct btrace_function): Remove FLOW.
12274
12275 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12276
12277 * btrace.c (ftrace_find_call_by_number): New function.
12278 (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
12279 ftrace_get_caller, ftrace_find_call, ftrace_new_return,
12280 ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
12281 ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
12282 index.
12283 * btrace.h (struct btrace_function): Turn UP into an index.
12284 * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
12285 as an index.
12286 * record-btrace.c (record_btrace_frame_unwind_stop_reason,
12287 record_btrace_frame_prev_register, record_btrace_frame_sniffer,
12288 record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
12289
12290 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12291
12292 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
12293 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
12294 ftrace_update_function, ftrace_compute_global_level_offset,
12295 btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
12296 btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
12297 btrace_insn_end, btrace_is_empty): Remove references to
12298 btrace_thread_info::begin and btrace_thread_info::end.
12299 * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
12300 (struct btrace_thread_info) <functions>: Adjust comment.
12301 * record-btrace.c (record_btrace_start_replaying): Remove reference to
12302 btrace_thread_info::begin.
12303
12304 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12305
12306 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
12307 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
12308 ftrace_update_function): Remove arguments that implicitly were always
12309 BTINFO->END.
12310 (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
12311 Don't pass BTINFO->END.
12312
12313 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12314
12315 * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
12316 btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
12317 btrace_find_insn_by_number): Replace function segment pointer with
12318 index.
12319 (btrace_insn_cmp): Simplify.
12320 * btrace.h: (struct btrace_insn_iterator) Rename index to
12321 insn_index. Replace function segment pointer with index into function
12322 segment vector.
12323 * record-btrace.c (record_btrace_call_history): Replace function
12324 segment pointer use with index.
12325 (record_btrace_frame_sniffer): Retrieve function call segment through
12326 vector.
12327 (record_btrace_set_replay): Remove defunc't safety check.
12328
12329 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12330
12331 * btrace.c (btrace_ends_with_single_insn): New function.
12332 (btrace_call_get, btrace_call_number, btrace_call_begin,
12333 btrace_call_end, btrace_call_next, btrace_call_prev,
12334 btrace_find_call_by_number): Use index into call segment vector
12335 instead of pointer.
12336 (btrace_call_cmp): Simplify.
12337 * btrace.h (struct btrace_call_iterator): Replace function call segment
12338 pointer with index into vector.
12339 * record-btrace.c (record_btrace_call_history): Use index instead of
12340 pointer.
12341
12342 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12343
12344 * btrace.c (btrace_insn_begin, btrace_insn_end,
12345 btrace_find_insn_by_number): Add btinfo to iterator.
12346 * btrace.h (struct btrace_insn_iterator): Add btinfo.
12347
12348 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12349
12350 * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
12351 and save pointers directly.
12352 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
12353 ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
12354 ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for
12355 changed signature of functions.
12356 (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
12357 (btrace_fetch): Remove code that adds btrace_function pointers to
12358 vector of btrace_functions.
12359 (btrace_clear): Simplify freeing vector of btrace_functions.
12360
12361 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12362
12363 * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
12364 Replace VEC_* with std::vector functions.
12365 * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
12366 (struct btrace_thread_info)<functions>: Change type to std::vector.
12367
12368 2017-05-30 Simon Marchi <simon.marchi@ericsson.com>
12369
12370 * NEWS (Changes in GDB 8.0): Remove extra empty line. Move
12371 "Removed targets and native configurations" up. Merge duplicate
12372 "New commands" sub-sections. Add "New options" sub-sections.
12373
12374 2017-05-26 Alan Hayward <alan.hayward@arm.com>
12375
12376 * defs.h (copy_integer_to_size): New declaration.
12377 * findvar.c (copy_integer_to_size): New function.
12378 (do_cint_test): New selftest function.
12379 (copy_integer_to_size_test): Likewise.
12380 (_initialize_findvar): Likewise.
12381 * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
12382 (mips_fbsd_collect_reg): Use raw_collect_integer.
12383 * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
12384 (mips64_fill_gregset): Use raw_collect_integer
12385 (mips64_fill_fpregset): Use raw_supply_integer.
12386 * regcache.c (regcache::raw_supply_integer): New function.
12387 (regcache::raw_collect_integer): Likewise.
12388 * regcache.h: (regcache::raw_supply_integer): New declaration.
12389 (regcache::raw_collect_integer): Likewise.
12390
12391 2017-05-24 Yao Qi <yao.qi@linaro.org>
12392
12393 * Makefile.in (SFILES): Add gdbarch-selftests.c.
12394 (COMMON_OBS): Add gdbarch-selftests.o.
12395 * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
12396 * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
12397 * gdbarch-selftests.c: New file.
12398 * regcache.h (regcache) <~regcache>: Mark it virtual if
12399 GDB_SELF_TEST.
12400 <raw_write>: Likewise.
12401
12402 2017-05-24 Yao Qi <yao.qi@linaro.org>
12403
12404 * regcache.c (current_regcache): Change it to
12405 regcache::current_regcache.
12406 (regcache_observer_target_changed): Update.
12407 (regcache_thread_ptid_changed): Make it a regcache static
12408 method.
12409 (regcache_thread_ptid_changed): Update.
12410 (class regcache_access): New.
12411 (current_regcache_test): Update.
12412 (_initialize_regcache): Update.
12413 * regcache.h: Include forward_list.
12414 (regcache): Declare regcache_thread_ptid_changed and declare
12415 registers_changed_ptid as friend.
12416
12417 2017-05-24 Yao Qi <yao.qi@linaro.org>
12418
12419 * i387-tdep.c (i387_register_to_value): Use register_size
12420 instead of TYPE_LENGTH.
12421 * m68k-tdep.c (m68k_register_to_value): Likewise.
12422
12423 2017-05-24 Yao Qi <yao.qi@linaro.org>
12424
12425 * i387-tdep.c (i387_convert_register_p): Return false if type
12426 code isn't TYPE_CODE_FLT.
12427
12428 2017-05-24 Yao Qi <yao.qi@linaro.org>
12429
12430 * alpha-tdep.c (alpha_convert_register_p): Return true if type
12431 length is 4.
12432 (alpha_register_to_value): Remove type length check.
12433 (alpha_value_to_register): Likewise.
12434
12435 2017-05-24 Yao Qi <yao.qi@linaro.org>
12436
12437 * ia64-tdep.c (ia64_convert_register_p): Check type's code is
12438 TYPE_CODE_FLT.
12439
12440 2017-05-24 Yao Qi <yao.qi@linaro.org>
12441
12442 * m68k-tdep.c (m68k_convert_register_p): Check type's code is
12443 TYPE_CODE_FLT or not.
12444
12445 2017-05-24 Yao Qi <yao.qi@linaro.org>
12446
12447 * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
12448 * avr-tdep.c (avr_gdbarch_init): Likewise.
12449 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12450 * cris-tdep.c (cris_gdbarch_init): Likewise.
12451 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
12452 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12453 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12454 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
12455 * mep-tdep.c (mep_gdbarch_init): Likewise.
12456 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12457 * mips-tdep.c (mips_gdbarch_init): Likewise.
12458 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
12459 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12460 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
12461 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12462 * v850-tdep.c (v850_gdbarch_init): Likewise.
12463
12464 2017-05-24 Yao Qi <yao.qi@linaro.org>
12465
12466 * selftest-arch.c (tests_with_arch): Call registers_changed
12467 and reinit_frame_cache.
12468 * selftest.c (run_self_tests): Likewise.
12469
12470 2017-05-24 Yao Qi <yao.qi@linaro.org>
12471
12472 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.
12473 (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn.
12474
12475 2017-05-24 Yao Qi <yao.qi@linaro.org>
12476
12477 * rl78-tdep.c (rl78_gdbarch_init): Don't call
12478 set_gdbarch_print_insn.
12479
12480 2017-05-24 Yao Qi <yao.qi@linaro.org>
12481
12482 * h8300-tdep.c (h8300_gdbarch_init): Don't call
12483 set_gdbarch_print_insn.
12484
12485 2017-05-24 Yao Qi <yao.qi@linaro.org>
12486
12487 * alpha-tdep.c (alpha_gdbarch_init): Don't call
12488 set_gdbarch_print_insn.
12489 * arc-tdep.c (arc_gdbarch_init): Likewise.
12490 * arch-utils.c: include dis-asm.h.
12491 (default_print_insn): New function.
12492 * arch-utils.h (default_print_insn): Declare.
12493 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
12494 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12495 * cris-tdep.c (cris_delayed_get_disassembler): Remove.
12496 (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
12497 * frv-tdep.c (frv_gdbarch_init): Likewise.
12498 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
12499 * gdbarch.sh (print_insn): Use default_print_insn.
12500 * gdbarch.c: Regenerated.
12501 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12502 * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
12503 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12504 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
12505 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12506 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
12507 (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
12508 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
12509 * m88k-tdep.c (m88k_gdbarch_init): Likewise.
12510 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12511 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
12512 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12513 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
12514 * mt-tdep.c (mt_gdbarch_init): Likewise.
12515 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
12516 * nios2-tdep.c (nios2_print_insn): Remove.
12517 (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
12518 * rx-tdep.c (rx_gdbarch_init): Likewise.
12519 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12520 * score-tdep.c (score_print_insn): Remove.
12521 (score_gdbarch_init): Don't call set_gdbarch_print_insn.
12522 * sh-tdep.c (sh_gdbarch_init): Likewise.
12523 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12524 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12525 * tic6x-tdep.c (tic6x_print_insn): Remove.
12526 (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
12527 * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
12528 * v850-tdep.c (v850_gdbarch_init): Likewise.
12529 * vax-tdep.c (vax_gdbarch_init): Likewise.
12530 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
12531 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
12532
12533 2017-05-23 John Baldwin <jhb@FreeBSD.org>
12534
12535 * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
12536 (MIPS_FP0_REGNUM): Remove.
12537 (MIPS_FSR_REGNUM): Remove.
12538 (mips_fbsd_supply_fpregs): Use mips_regnum.
12539 (mips_fbsd_supply_gregs): Likewise.
12540 (mips_fbsd_collect_fpregs): Likewise.
12541 (mips_fbsd_collect_gregs): Likewise.
12542
12543 2017-05-23 John Baldwin <jhb@FreeBSD.org>
12544
12545 * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
12546 (getpfpregs_supplies): New function.
12547 (mips_fbsd_fetch_inferior_registers): Remove early exit and use
12548 getfpregs_supplies.
12549 (mips_fbsd_store_inferior_registers): Likewise.
12550
12551 2017-05-22 Pedro Alves <palves@redhat.com>
12552
12553 * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
12554 maintainer.
12555
12556 2017-05-22 Alan Hayward <alan.hayward@arm.com>
12557
12558 * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
12559 (store_register): Likewise.
12560 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
12561 (get_decimal_float_return_value): Likewise.
12562 (do_ppc_sysv_return_value): Likewise.
12563 (ppc64_sysv_abi_push_integer): Likewise.
12564 (ppc64_sysv_abi_push_freg): Likewise.
12565 (ppc64_sysv_abi_return_value_base): Likewise.
12566 (ppc64_sysv_abi_return_value): Likewise.
12567 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
12568 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
12569 * rs6000-nat.c: Likewise.
12570 * rs6000-tdep.c (rs6000_register_to_value): Likewise.
12571 (rs6000_value_to_register): Likewise.
12572 * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
12573
12574 2017-05-21 Tom Tromey <tom@tromey.com>
12575
12576 PR rust/21466:
12577 * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
12578 arrays as "[T]", not "[T; ]".
12579
12580 2017-05-19 Tom Tromey <tom@tromey.com>
12581
12582 PR rust/21484:
12583 * rust-lang.c (exp_descriptor_rust): New function.
12584 (rust_language_defn): Use it.
12585 * p-lang.c (pascal_language_defn): Update.
12586 * opencl-lang.c (opencl_language_defn): Update.
12587 * objc-lang.c (objc_language_defn): Update.
12588 * m2-lang.c (m2_language_defn): Update.
12589 * language.h (struct language_defn)
12590 <la_watch_location_expression>: New member.
12591 * language.c (unknown_language_defn, auto_language_defn)
12592 (local_language_defn): Update.
12593 * go-lang.c (go_language_defn): Update.
12594 * f-lang.c (f_language_defn): Update.
12595 * d-lang.c (d_language_defn): Update.
12596 * c-lang.h (c_watch_location_expression): Declare.
12597 * c-lang.c (c_watch_location_expression): New function.
12598 (c_language_defn, cplus_language_defn, asm_language_defn)
12599 (minimal_language_defn): Use it.
12600 * breakpoint.c (watch_command_1): Call
12601 la_watch_location_expression.
12602 * ada-lang.c (ada_language_defn): Update.
12603
12604 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12605
12606 PR tui/21482
12607 * gdb_curses.h (NOMACROS): Define.
12608 (NCURSES_NOMACROS): Define.
12609
12610 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12611
12612 PR tui/21482
12613 * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
12614 arg to char *.
12615 * tui/tui-wingeneral.c (box_win): Likewise.
12616 * tui/tui-winsource.c (tui_erase_source_content): Likewise.
12617 (tui_show_source_line): Likewise.
12618 (tui_show_exec_info_content): Likewise.
12619
12620 2017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
12621
12622 * sparc-tdep.c (sparc_structure_return_p)
12623 (sparc_arg_on_registers_p): New functions.
12624 (sparc32_store_arguments): Use them.
12625 * sparc64-tdep.c (sparc64_16_byte_align_p)
12626 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
12627 Handle TYPE_CODE_ARRAY.
12628
12629 2017-05-17 Yao Qi <yao.qi@linaro.org>
12630
12631 * cli/cli-decode.c (add_alias_cmd): New function.
12632 * command.h (add_alias_cmd): Declare.
12633 * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
12634 instead call add_alias_cmd.
12635
12636 2017-05-17 Pedro Alves <palves@redhat.com>
12637
12638 * Makefile.in (nat_extra_makefile_frag): Rename to ...
12639 (nat_makefile_frag): ... this. All references updated.
12640 * configure.ac: Likewise.
12641 * configure.nat: Likewise. Enhance comments.
12642 * configure: Regenerate.
12643
12644 2017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12645
12646 * procfs.c (procfs_create_inferior): Change prototype to match
12647 definition.
12648
12649 2017-05-13 Eli Zaretskii <eliz@gnu.org>
12650
12651 * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
12652 C++ compiler warning.
12653
12654 2017-05-12 Tom Tromey <tom@tromey.com>
12655
12656 PR rust/21483:
12657 * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
12658 recurse, just call value_struct_elt directly.
12659
12660 2017-05-12 Tom Tromey <tom@tromey.com>
12661
12662 * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
12663 OP_RUST_ARRAY>: Fix.
12664
12665 2017-05-12 Tom Tromey <tom@tromey.com>
12666
12667 * rust-lang.c (rust_print_subexp): Replace "return" with "break".
12668
12669 2017-05-09 Yao Qi <yao.qi@linaro.org>
12670
12671 * regcache.c: Include <forward_list>.
12672 (struct regcache_list): Remove.
12673 (current_regcache): Update.
12674 (get_thread_arch_aspace_regcache): Update for std::forward_list.
12675 (regcache_thread_ptid_changed): Likewise.
12676 (registers_changed_ptid): Likewise.
12677 (current_regcache_size): Likewise.
12678
12679 2017-05-09 Yao Qi <yao.qi@linaro.org>
12680
12681 * regcache.c [GDB_SELF_TEST]: Include selftest.h.
12682 (current_regcache_size): New function.
12683 (current_regcache_test): New function.
12684 (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
12685
12686 2017-05-08 Alan Hayward <alan.hayward@arm.com>
12687
12688 * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
12689 (print_gp_register_row): Use get_frame_register_value.
12690
12691 2017-05-08 Alan Hayward <alan.hayward@arm.com>
12692
12693 * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
12694 (mips_supply_fpregset): Likewise.
12695 (mips64_supply_gregset): Likewise.
12696
12697 2017-05-08 Alan Hayward <alan.hayward@arm.com>
12698
12699 * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
12700 regcache->raw_supply_zeroed.
12701
12702 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
12703
12704 * configure.nat: Rearrange 'case' statements to match
12705 host before cpu.
12706
12707 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
12708
12709 * Makefile.in: Remove "@host_makefile_frag@". Add variables
12710 NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
12711 NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
12712 "@nat_extra_makefile_frag@".
12713 (Makefile): Remove dependency on "@frags@".
12714 ($(GNULIB_BUILDDIR)/Makefile): Likewise.
12715 (data-directory/Makefile): Likewise.
12716 * config/aarch64/linux.mh: Deleted; moved contents to
12717 "gdb/configure.nat".
12718 * config/alpha/alpha-linux.mh: Likewise.
12719 * config/alpha/nbsd.mh: Likewise.
12720 * config/arm/linux.mh: Likewise.
12721 * config/arm/nbsdelf.mh: Likewise.
12722 * config/i386/cygwin.mh: Likewise.
12723 * config/i386/cygwin64.mh: Likewise.
12724 * config/i386/darwin.mh: Likewise.
12725 * config/i386/fbsd.mh: Likewise.
12726 * config/i386/fbsd64.mh: Likewise.
12727 * config/i386/go32.mh: Likewise.
12728 * config/i386/i386gnu.mh: Likewise.
12729 * config/i386/i386sol2.mh: Likewise.
12730 * config/i386/linux.mh: Likewise.
12731 * config/i386/linux64.mh: Likewise.
12732 * config/i386/mingw.mh: Likewise.
12733 * config/i386/mingw64.mh: Likewise.
12734 * config/i386/nbsd64.mh: Likewise.
12735 * config/i386/nbsdelf.mh: Likewise.
12736 * config/i386/nto.mh: Likewise.
12737 * config/i386/obsd.mh: Likewise.
12738 * config/i386/obsd64.mh: Likewise.
12739 * config/i386/sol2-64.mh: Likewise.
12740 * config/ia64/linux.mh: Likewise.
12741 * config/m32r/linux.mh: Likewise.
12742 * config/m68k/linux.mh: Likewise.
12743 * config/m68k/nbsdelf.mh: Likewise.
12744 * config/m68k/obsd.mh: Likewise.
12745 * config/m88k/obsd.mh: Likewise.
12746 * config/mips/fbsd.mh: Likewise.
12747 * config/mips/linux.mh: Likewise.
12748 * config/mips/nbsd.mh: Likewise.
12749 * config/mips/obsd64.mh: Likewise.
12750 * config/pa/linux.mh: Likewise.
12751 * config/pa/nbsd.mh: Likewise.
12752 * config/pa/obsd.mh: Likewise.
12753 * config/powerpc/aix.mh: Likewise.
12754 * config/powerpc/fbsd.mh: Likewise.
12755 * config/powerpc/linux.mh: Likewise.
12756 * config/powerpc/nbsd.mh: Likewise.
12757 * config/powerpc/obsd.mh: Likewise.
12758 * config/powerpc/ppc64-linux.mh: Likewise.
12759 * config/powerpc/spu-linux.mh: Likewise.
12760 * config/s390/linux.mh: Likewise.
12761 * config/sh/nbsd.mh: Likewise.
12762 * config/sparc/fbsd.mh: Likewise.
12763 * config/sparc/linux.mh: Likewise.
12764 * config/sparc/linux64.mh: Likewise.
12765 * config/sparc/nbsd64.mh: Likewise.
12766 * config/sparc/nbsdelf.mh: Likewise.
12767 * config/sparc/obsd64.mh: Likewise.
12768 * config/sparc/sol2.mh: Likewise.
12769 * config/tilegx/linux.mh: Likewise.
12770 * config/vax/nbsdelf.mh: Likewise.
12771 * config/vax/obsd.mh: Likewise.
12772 * config/xtensa/linux.mh: Likewise.
12773 * config/i386/i386gnu.mn: New file, with excerpts from
12774 "config/i386/i386gnu.mh".
12775 * configure: Regenerate.
12776 * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
12777 *.mh files under "gdb/config".
12778 * configure.nat: New file, with contents from the
12779 "gdb/config/*/*.mh" files.
12780
12781 2017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
12782
12783 * btrace.c (btrace_clear): Free insn vector.
12784
12785 2017-05-05 Pedro Alves <palves@redhat.com>
12786
12787 * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
12788 * configure: Regenerate.
12789
12790 2017-05-04 Pedro Alves <palves@redhat.com>
12791
12792 * Makefile.in (SFILES): Add progspace-and-thread.c.
12793 (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
12794 (COMMON_OBS): Add progspace-and-thread.o.
12795 * breakpoint.c: Include "progspace-and-thread.h".
12796 (update_inserted_breakpoint_locations)
12797 (insert_breakpoint_locations, create_longjmp_master_breakpoint):
12798 Use scoped_restore_current_pspace_and_thread.
12799 (create_std_terminate_master_breakpoint): Use
12800 scoped_restore_current_program_space.
12801 (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
12802 (print_breakpoint_location): Use
12803 scoped_restore_current_program_space.
12804 (bp_loc_is_permanent): Use
12805 scoped_restore_current_pspace_and_thread.
12806 (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
12807 (download_tracepoint_locations): Use
12808 scoped_restore_current_pspace_and_thread.
12809 (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
12810 * exec.c (exec_close_1): Use scoped_restore_current_program_space.
12811 (enum step_over_calls_kind): Moved from inferior.h.
12812 (class scoped_restore_current_thread): New class.
12813 * gdbthread.h (make_cleanup_restore_current_thread): Delete
12814 declaration.
12815 (scoped_restore_current_thread): New class.
12816 * infcmd.c: Include "common/gdb_optional.h".
12817 (continue_1, proceed_after_attach): Use
12818 scoped_restore_current_thread.
12819 (notice_new_inferior): Use scoped_restore_current_thread.
12820 * inferior.c: Include "progspace-and-thread.h".
12821 (restore_inferior, save_current_inferior): Delete.
12822 (add_inferior_command, clone_inferior_command): Use
12823 scoped_restore_current_pspace_and_thread.
12824 * inferior.h (scoped_restore_current_inferior): New class.
12825 * infrun.c: Include "progspace-and-thread.h" and
12826 "common/gdb_optional.h".
12827 (follow_fork_inferior): Use
12828 scoped_restore_current_pspace_and_thread.
12829 (scoped_restore_exited_inferior): New class.
12830 (handle_vfork_child_exec_or_exit): Use
12831 scoped_restore_exited_inferior,
12832 scoped_restore_current_pspace_and_thread,
12833 scoped_restore_current_thread and scoped_restore.
12834 (fetch_inferior_event): Use scoped_restore_current_thread.
12835 * linespec.c (decode_line_full, decode_line_1): Use
12836 scoped_restore_current_program_space.
12837 * mi/mi-main.c: Include "progspace-and-thread.h".
12838 (exec_continue): Use scoped_restore_current_thread.
12839 (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
12840 (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
12841 * proc-service.c (ps_pglobal_lookup): Use
12842 scoped_restore_current_program_space.
12843 * progspace-and-thread.c: New file.
12844 * progspace-and-thread.h: New file.
12845 * progspace.c (release_program_space, clone_program_space): Use
12846 scoped_restore_current_program_space.
12847 (restore_program_space, save_current_program_space)
12848 (save_current_space_and_thread): Delete.
12849 (switch_to_program_space_and_thread): Moved to
12850 progspace-and-thread.c.
12851 * progspace.h (save_current_program_space)
12852 (save_current_space_and_thread): Delete declarations.
12853 (scoped_restore_current_program_space): New class.
12854 * remote.c (remote_btrace_maybe_reopen): Use
12855 scoped_restore_current_thread.
12856 * symtab.c: Include "progspace-and-thread.h".
12857 (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
12858 * thread.c (print_thread_info_1): Use
12859 scoped_restore_current_thread.
12860 (struct current_thread_cleanup): Delete.
12861 (do_restore_current_thread_cleanup)
12862 (restore_current_thread_cleanup_dtor): Rename/convert both to ...
12863 (scoped_restore_current_thread::~scoped_restore_current_thread):
12864 ... this new dtor.
12865 (make_cleanup_restore_current_thread): Rename/convert to ...
12866 (scoped_restore_current_thread::scoped_restore_current_thread):
12867 ... this new ctor.
12868 (thread_apply_all_command): Use scoped_restore_current_thread.
12869 (thread_apply_command): Use scoped_restore_current_thread.
12870 * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
12871 * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
12872
12873 2017-05-04 Pedro Alves <palves@redhat.com>
12874
12875 * thread.c (make_cleanup_restore_current_thread): Move
12876 find_thread_ptid call before the is_stopped call. Assert that the
12877 thread is found. Replace is_stopped call by checking the thread's
12878 state directly. Remove unnecessary NULL-thread check.
12879
12880 2017-05-04 Pedro Alves <palves@redhat.com>
12881
12882 * corelow.c (thread_section_name): New class.
12883 (get_core_register_section, get_core_siginfo): Use it.
12884
12885 2017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
12886
12887 * corelow.c (sniff_core_bfd): Remove extra semicolon.
12888 (get_core_register_section): Remove xfree of NULL pointer.
12889
12890 2017-05-03 Alan Hayward <alan.hayward@arm.com>
12891
12892 * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed.
12893 * regcache.c (regcache::raw_supply_zeroed): New function.
12894 * regcache.h (regcache::raw_supply_zeroed): New declaration.
12895
12896 2017-05-03 Simon Marchi <simon.marchi@ericsson.com>
12897
12898 * gdbarch.sh: Remove commented out definition of
12899 TARGET_CHAR_BIT.
12900 * gdbarch.h: Re-generate.
12901
12902 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
12903
12904 * configure: Regenerate.
12905
12906 2017-05-02 Simon Marchi <simon.marchi@ericsson.com>
12907
12908 * solib-target.c (solib_target_relocate_section_addresses):
12909 Remove num_section_bases, num_bases, segment_bases variables.
12910
12911 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
12912
12913 * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove.
12914
12915 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
12916
12917 * solib-target.c: Include <vector>
12918 (struct lm_info_target) <~lm_info_target>: Remove.
12919 <segment_bases, section_bases>: Change type to
12920 std::vector<CORE_ADDR>.
12921 (library_list_start_segment, library_list_start_section,
12922 library_list_end_library,
12923 solib_target_relocate_section_addresses): Adjust.
12924
12925 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
12926
12927 * gdbarch.sh (software_single_step): Change return type to
12928 std::vector<CORE_ADDR>.
12929 * gdbarch.c, gdbarch.h: Re-generate.
12930 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
12931 Adjust.
12932 (arm_deal_with_atomic_sequence_raw): Adjust.
12933 (thumb_get_next_pcs_raw): Adjust.
12934 (arm_get_next_pcs_raw): Adjust.
12935 (arm_get_next_pcs): Adjust.
12936 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust.
12937 * aarch64-tdep.c (aarch64_software_single_step): Adjust.
12938 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust.
12939 (alpha_software_single_step): Adjust.
12940 * alpha-tdep.h (alpha_software_single_step): Adjust.
12941 * arm-linux-tdep.c (arm_linux_software_single_step): Adjust.
12942 * arm-tdep.c (arm_software_single_step): Adjust.
12943 (arm_breakpoint_kind_from_current_state): Adjust.
12944 * arm-tdep.h (arm_software_single_step): Adjust.
12945 * breakpoint.c (insert_single_step_breakpoint): Adjust.
12946 * cris-tdep.c (cris_software_single_step): Adjust.
12947 * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust.
12948 (micromips_deal_with_atomic_sequence): Adjust.
12949 (deal_with_atomic_sequence): Adjust.
12950 (mips_software_single_step): Adjust.
12951 * mips-tdep.h (mips_software_single_step): Adjust.
12952 * moxie-tdep.c (moxie_software_single_step): Adjust.
12953 * nios2-tdep.c (nios2_software_single_step): Adjust.
12954 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust.
12955 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
12956 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
12957 * s390-linux-tdep.c (s390_software_single_step): Adjust.
12958 * sparc-tdep.c (sparc_software_single_step): Adjust.
12959 * spu-tdep.c (spu_software_single_step): Adjust.
12960 * tic6x-tdep.c (tic6x_software_single_step): Adjust.
12961
12962 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
12963
12964 * gdbarch.sh: Use semi-colon as field separator instead of colon.
12965 * gdbarch.h: Re-generate.
12966
12967 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
12968
12969 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
12970 (SUBDIR_PYTHON_SRCS): Add py-instruction.c.
12971 * python/py-instruction.c, python/py-instruction.h: New file.
12972 * python/py-record.c: Add py-instruction.h include.
12973 (gdbpy_initialize_record): Make gdb.Instruction a super class of
12974 gdb.RecordInstruction.
12975 * python/python-internal.h: Add gdbpy_initialize_instruction
12976 declaration.
12977 * python/python.c (do_start_initialization): Add
12978 gdbpy_initialize_instruction.
12979
12980 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
12981
12982 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
12983 Remove.
12984 (btrace_func_from_recpy_func): New function.
12985 (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
12986 (btpy_call_level, btpy_call_symbol, btpy_call_instructions,
12987 btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
12988 (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
12989 recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
12990 Also, use new helper functions.
12991 (btpy_list_item): Use new helper functions.
12992 (recpy_bt_function_call_history): Use new type name.
12993 (btpy_call_getset): Remove.
12994 (gdbpy_initialize_btrace): Remove code to initialize
12995 gdb.BtraceFunctionCall.
12996 * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
12997 recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
12998 recpy_bt_func_prev, recpy_bt_func_next): New export.
12999 * python/py-record.c (recpy_func_type): New static object.
13000 (recpy_func_new, recpy_func_level, recpy_func_symbol,
13001 recpy_func_instructions, recpy_func_up, recpy_func_prev,
13002 recpy_func_next): New function.
13003 (recpy_element_hash, recpy_element_richcompare): Updated comment.
13004 (recpy_func_getset): New static object.
13005 (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
13006 * python/py-record.h (recpy_func_type, recpy_func_new): New export.
13007
13008 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
13009
13010 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove.
13011 (btpy_object, btpy_insn_type, btpy_new): Remove.
13012 (btpy_list_object): Use gdb.RecordInstruction type instead of
13013 gdb.BtraceInstruction type.
13014 (btrace_insn_from_recpy_insn): New function.
13015 (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of
13016 btpy_new.
13017 (btpy_call_new, btpy_list_item): Do not use btpy_new anymore.
13018 (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol,
13019 btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling,
13020 btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object
13021 instead of btpy_object.
13022 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
13023 btpy_insn_data, btpy_insn_decode): Rename to ...
13024 (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size,
13025 recpy_bt_insn_is_speculative, recpy_bt_insn_data,
13026 recpy_bt_insn_decode): This. Also, use new helper functions.
13027 (btpy_list_position, recpy_bt_goto): Use recpy_element_object and
13028 recpy_insn_type.
13029 (btpy_insn_getset): Remove.
13030 (gdbpy_initialize_btrace): Remove code to initialize
13031 gdb.BtraceInstruction. Use recpy_element_object.
13032 * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal,
13033 recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded,
13034 recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export.
13035 * python/py-record.c (recpy_insn_type): New static object.
13036 (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data,
13037 recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative,
13038 recpy_element_number, recpy_element_hash, recpy_element_richcompare):
13039 New function.
13040 (recpy_insn_getset): New static object.
13041 (gdbpy_initialize_record): Initialize gdb.RecordInstruction.
13042 * python/py-record.h (recpy_element_object): New typedef.
13043 (recpy_insn_type, recpy_insn_new): New export.
13044
13045 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
13046
13047 * py-record-btrace.c (btpy_insn_new): Removed.
13048 (btpy_insn_or_gap_new): New function.
13049 (btpy_insn_error): Removed.
13050 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
13051 btpy_insn_data, btpy_insn_decode): Remove code path for gaps.
13052 (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call
13053 btpy_insn_or_gap_new instead of btpy_insn_new.
13054 (btpy_insn_getset): Remove btpy_insn_error.
13055 * py-record.c (recpy_gap_type): New static object.
13056 (recpy_gap_object): New typedef.
13057 (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code,
13058 recpy_gap_reason_string): New function.
13059 (recpy_gap_getset): New static object.
13060 (gdbpy_initialize_record): Initialize gdb.RecordGap type.
13061 * py-record.h (recpy_gap_new): New export.
13062
13063 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
13064
13065 * python/py-record.c (recpy_ptid): Remove.
13066 (recpy_record_getset): Remove recpy_ptid.
13067
13068 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
13069
13070 * btrace.c (btrace_fetch): Set inferior_ptid.
13071 * python/py-record-btrace.c: Add "py-record.h" include.
13072 (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin,
13073 recpy_bt_end, recpy_bt_instruction_history,
13074 recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored
13075 in gdb.Record object instead of current ptid.
13076 * python/py-record.c: Include new "py-record.h" file.
13077 (recpy_record_object): Moved to py-record.h.
13078 * python/py-record.h: New file.
13079
13080 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
13081
13082 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
13083 BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
13084 indentation.
13085
13086 2017-05-01 Joel Brobecker <brobecker@adacore.com>
13087
13088 * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to
13089 the past maintainers section.
13090
13091 2017-04-28 Yao Qi <yao.qi@linaro.org>
13092
13093 * infcmd.c (get_return_value): Use regcache ctor, and remove
13094 cleanup.
13095
13096 2017-04-28 Yao Qi <yao.qi@linaro.org>
13097 Pedro Alves <palves@redhat.com>
13098
13099 * regcache.c (regcache::regcache): New tag dispatch ctor.
13100 (do_cooked_read): Moved above.
13101 (regcache_dup): Use the tag dispatch ctor..
13102 * regcache.h (regcache): Declare ctor, delete copy ctor and
13103 assignment operator, remove friend regcache_dup.
13104
13105 2017-04-28 Yao Qi <yao.qi@linaro.org>
13106
13107 * regcache.c (regcache_dup): Assert !src->m_readonly_p and
13108 call method save instead of regcache_cpy.
13109 * regcache.h (struct regcache): Make regcache_dup a friend.
13110
13111 2017-04-28 Yao Qi <yao.qi@linaro.org>
13112
13113 * regcache.c (struct regcache): Move to regcache.h
13114 (regcache::arch): New method.
13115 (regcache_get_ptid): Update.
13116 (get_regcache_arch): Call arch method.
13117 (get_regcache_aspace): Call method aspace.
13118 (register_buffer): Change it to method.
13119 (regcache_save): Change it to regcache::save.
13120 (regcache_restore): Likewise.
13121 (regcache_cpy_no_passthrough): Remove the declaration.
13122 (regcache_cpy): Call methods restore and cpy_no_passthrough.
13123 (regcache_cpy_no_passthrough): Change it to method
13124 cpy_no_passthrough.
13125 (regcache_register_status): Change it to method
13126 get_register_status.
13127 (regcache_invalidate): Change it to method invalidate.
13128 (regcache_thread_ptid_changed): Use methods ptid and set_ptid.
13129 (regcache_raw_update): Change it to method raw_update.
13130 (regcache_raw_read): Likewise.
13131 (regcache_raw_read_signed): Likewise.
13132 (regcache_raw_read_unsigned): Likewise.
13133 (regcache_raw_write_signed): Likewise.
13134 (regcache_raw_write_unsigned): Likewise.
13135 (regcache_cooked_read): Likewise.
13136 (regcache_cooked_read_value): Likewise.
13137 (regcache_cooked_read_signed): Likewise.
13138 (regcache_cooked_read_unsigned): Likewise.
13139 (regcache_cooked_write_signed): Likewise.
13140 (regcache_cooked_write_unsigned): Likewise.
13141 (regcache_raw_set_cached_value): Likewise.
13142 (regcache_raw_write): Likewise.
13143 (regcache_cooked_write): Likewise.
13144 (regcache_xfer_part): Likewise.
13145 (regcache_raw_read_part): Likewise.
13146 (regcache_raw_write_part): Likewise.
13147 (regcache_cooked_read_part): Likewise.
13148 (regcache_cooked_write_part): Likewise.
13149 (regcache_raw_supply): Likewise.
13150 (regcache_raw_collect): Likewise.
13151 (regcache_transfer_regset): Likewise.
13152 (regcache_supply_regset): Likewise.
13153 (regcache_collect_regset): Likewise.
13154 (regcache_debug_print_register): Likewise.
13155 (enum regcache_dump_what): Move it to regcache.h.
13156 (regcache_dump): Change it to method dump.
13157 * regcache.h (enum regcache_dump_what): New.
13158 (class regcache): New.
13159 * target.c (target_fetch_registers): Call method
13160 debug_print_register.
13161 (target_store_registers): Likewise.
13162
13163 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13164
13165 * windows-nat.c (struct lm_info_windows): Initialize field.
13166 (windows_make_so): Allocate lm_info_windows with new.
13167 (windows_free_so): Free lm_info_windows with delete.
13168
13169 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13170
13171 * solib-darwin.c (struct lm_info_darwin): Initialize field.
13172 (darwin_current_sos): Allocate lm_info_darwin with new, remove
13173 cleanup.
13174 (darwin_free_so): Free lm_info_darwin with delete.
13175
13176 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13177
13178 * solib-svr4.h (struct lm_info_svr4): Initialize fields.
13179 <l_addr_p>: Change type to bool.
13180 * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
13181 (svr4_free_so): Free lm_info_svr4 with delete.
13182 (svr4_copy_library_list): Replace memcpy with call to copy
13183 constructor.
13184 (library_list_start_library, svr4_default_sos): Allocate
13185 lm_info_svr4 with new.
13186
13187 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13188
13189 * solib-target.c (struct lm_info_target): Add destructor,
13190 initialize fields.
13191 <name>: Change type to std::string.
13192 (library_list_start_library): Allocate lm_info_target with new.
13193 (solib_target_free_library_list): Free lm_info_target with
13194 delete.
13195 (solib_target_current_sos): Adapt to std::string.
13196 (solib_target_free_so): Free lm_info_target with delete.
13197
13198 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13199
13200 * solib-frv.c (struct lm_info_frv): Add destructor, initialize
13201 fields.
13202 (frv_current_sos): Allocate lm_info_frv with new.
13203 (frv_relocate_main_executable): Free lm_info_frv with delete,
13204 allocate with new.
13205 (frv_clear_solib, frv_free_so): Free lm_info_frv with delete.
13206
13207 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13208
13209 * solib-frv.c (struct lm_info_frv): Fix indentation.
13210
13211 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13212
13213 * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
13214 map field.
13215 (dsbt_current_sos): Allocate lm_info_dsbt with new.
13216 (dsbt_relocate_main_executable): Free lm_info_dsbt with delete
13217 and allocate with new.
13218 (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
13219
13220 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13221
13222 * solib-aix.c (struct lm_info_aix): Initialize fields in-class.
13223 <filename, member_name>: Change type to std::string.
13224 (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
13225 (library_list_start_library): Allocate lm_info_aix with new.
13226 (solib_aix_free_library_list, solib_aix_free_so): Free with delete.
13227 (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
13228 with copy constructor.
13229
13230 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13231
13232 * solist.h (struct lm_info): Remove.
13233 (struct lm_info_base): New class.
13234 (struct so_list) <lm_info>: Change type to lm_info_base *.
13235 * nto-tdep.c (struct lm_info): Remove.
13236 (lm_addr): Adjust.
13237 * solib-aix.c (struct lm_info): Rename to ...
13238 (struct lm_info_aix): ... this. Extend lm_info_base.
13239 (lm_info_p): Rename to ...
13240 (lm_info_aix_p): ... this, and adjust.
13241 (solib_aix_new_lm_info, solib_aix_xfree_lm_info,
13242 solib_aix_parse_libraries, library_list_start_library,
13243 solib_aix_free_library_list, solib_aix_parse_libraries,
13244 solib_aix_get_library_list,
13245 solib_aix_relocate_section_addresses, solib_aix_free_so,
13246 solib_aix_get_section_offsets,
13247 solib_aix_solib_create_inferior_hook, solib_aix_current_sos):
13248 Adjust.
13249 (struct solib_aix_inferior_data) <library_list>: Adjust.
13250 * solib-darwin.c (struct lm_info): Rename to ...
13251 (struct lm_info_darwin): ... this. Extend lm_info_base.
13252 (darwin_current_sos, darwin_relocate_section_addresses): Adjust.
13253 * solib-dsbt.c (struct lm_info): Rename to ...
13254 (struct lm_info_dsbt): ... this. Extend lm_info_base.
13255 (struct dsbt_info) <main_executable_lm_info): Adjust.
13256 (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so,
13257 dsbt_relocate_section_addresses): Adjust.
13258 * solib-frv.c (struct lm_info): Rename to ...
13259 (struct lm_info_frv): ... this. Extend lm_info_base.
13260 (main_executable_lm_info): Adjust.
13261 (frv_current_sos, frv_relocate_main_executable, frv_free_so,
13262 frv_relocate_section_addresses, frv_fdpic_find_global_pointer,
13263 find_canonical_descriptor_in_load_object,
13264 frv_fdpic_find_canonical_descriptor): Adjust.
13265 * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed
13266 to lm_info_svr4.
13267 (lm_info_read, lm_addr_check, svr4_keep_data_in_core,
13268 svr4_clear_so, svr4_copy_library_list,
13269 library_list_start_library, svr4_default_sos, svr4_read_so_list,
13270 svr4_current_sos, svr4_fetch_objfile_link_map,
13271 solist_update_incremental): Adjust.
13272 * solib-svr4.h (struct lm_info_svr4): Move here from
13273 solib-svr4.c.
13274 * solib-target.c (struct lm_info): Rename to ...
13275 (struct lm_info_target): ... this. Extend lm_info_base.
13276 (lm_info_p): Rename to ...
13277 (lm_info_target_p): ... this.
13278 (solib_target_parse_libraries, library_list_start_segment,
13279 library_list_start_section, library_list_start_library,
13280 library_list_end_library, solib_target_free_library_list,
13281 solib_target_current_sos, solib_target_free_so,
13282 solib_target_relocate_section_addresses): Adjust.
13283 * windows-nat.c (struct lm_info): Rename to ...
13284 (struct lm_info_windows): ... this. Extend lm_info_base.
13285 (windows_make_so, handle_load_dll, handle_unload_dll,
13286 windows_xfer_shared_libraries): Adjust.
13287
13288 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13289
13290 * solib-darwin.c (struct darwin_so_list): Remove.
13291 (darwin_current_sos): Allocate an so_list object instead of a
13292 darwin_so_list, separately allocate an lm_info object.
13293 (darwin_free_so): Free lm_info.
13294
13295 2017-04-28 John Baldwin <jhb@FreeBSD.org>
13296
13297 * mips-tdep.c (print_gp_register_row): Replace printf_filtered
13298 with fprintf_filtered.
13299
13300 2017-04-28 Yao Qi <yao.qi@linaro.org>
13301
13302 * regcache.c (regcache::regcache): New function.
13303 (regcache::~regcache): New function.
13304 (regcache_xmalloc_1): Remove.
13305 (regcache_xmalloc): Call new regcache.
13306 (regcache_xfree): Call delete regcache.
13307 (get_thread_arch_aspace_regcache): Call new regcache.
13308
13309 2017-04-28 Yao Qi <yao.qi@linaro.org>
13310
13311 * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
13312 lwp instead of ptid_get_lwp.
13313
13314 2017-04-28 Yao Qi <yao.qi@linaro.org>
13315
13316 * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
13317 lwp_info instead of getting from inferior_ptid.
13318
13319 2017-04-27 Keith Seitz <keiths@redhat.com>
13320
13321 * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS)
13322 DIFFERENT_REFERENCE_TYPE_BADNESS): Remove.
13323 (CV_CONVERSION_BADNESS): Define.
13324 (rank_one_type): Remove overly restrictive rvalue reference
13325 rank checks.
13326 Add cv-qualifier checks and subranks for type equality.
13327 * gdbtypes.h (REFERENCE_CONVERSION_RVALUE,
13328 REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS,
13329 CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare.
13330
13331 2017-04-27 Simon Marchi <simon.marchi@ericsson.com>
13332
13333 * python/py-inferior.c (inferior_to_inferior_object): Increment reference
13334 count when creating the object.
13335
13336 2017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
13337 Ulrich Weigand <uweigand@de.ibm.com>
13338
13339 * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
13340 entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
13341 is used in AIX.
13342 (read_xcoff_symtab): Handle C_WEAKEXT storage class.
13343 (process_xcoff_symbol): Likewise.
13344 (scan_xcoff_symtab): Likewise.
13345
13346 2017-04-26 Alan Hayward <alan.hayward@arm.com>
13347
13348 * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned.
13349 (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer.
13350 (ia64_access_reg): Use get_frame_register_unsigned.
13351 (ia64_access_rse_reg): Likewise.
13352 (ia64_libunwind_frame_prev_register): Likewise.
13353
13354 2017-04-26 Jiong Wang <jiong.wang@arm.com>
13355
13356 * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op.
13357 * gdbarch.c: Regenerated.
13358 * gdbarch.h: Regenerated.
13359 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the
13360 visibility external.
13361 (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI
13362 between DW_CFA_lo_user and DW_CFA_high_user inclusive.
13363 (enum cfa_how_kind): Move to ...
13364 (struct dwarf2_frame_state_reg_info): Likewise.
13365 (struct dwarf2_frame_state): Likewise.
13366 * dwarf2-frame.h: ... here.
13367 (dwarf2_frame_state_alloc_regs): New declaration.
13368 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function.
13369 (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook.
13370
13371 2017-04-26 Alan Hayward <alan.hayward@arm.com>
13372
13373 * xtensa-tdep.c (xtensa_pseudo_register_read): Use
13374 regcache_raw_read_unsigned.
13375 (xtensa_pseudo_register_write): Likewise.
13376
13377 2017-04-26 Alan Hayward <alan.hayward@arm.com>
13378
13379 * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors.
13380 (nds32_pseudo_register_write): Likewise.
13381
13382 2017-04-25 Yao Qi <yao.qi@linaro.org>
13383
13384 * regcache.c (struct regcache) <readonly_p>: Change its type
13385 to bool.
13386 (regcache_xmalloc_1): Update parameter type and callers update.
13387
13388 2017-04-25 Yao Qi <yao.qi@linaro.org>
13389
13390 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
13391 set_gdbarch_wchar_bit.
13392 * arm-tdep.c (arm_gdbarch_init): Likewise.
13393
13394 2017-04-25 Pedro Alves <palves@redhat.com>
13395
13396 * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
13397 (BothAreRelocatable, memcopy, memmove): Don't define.
13398 * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
13399 macros.
13400
13401 2017-04-25 Pedro Alves <palves@redhat.com>
13402
13403 * common/common-defs.h: Include "common/poison.h".
13404 * common/function-view.h: (Not, Or, Requires): Move to traits.h
13405 and adjust.
13406 * common/poison.h: New file.
13407 * common/traits.h: Include <type_traits>.
13408 (Not, Or, Requires): New, moved from common/function-view.h.
13409
13410 2017-04-25 Pedro Alves <palves@redhat.com>
13411
13412 * breakpoint.h (struct breakpoint): In-class initialize all
13413 fields. Make boolean fields "bool".
13414 * breakpoint.c (init_raw_breakpoint_without_location): Remove
13415 memset call and initializations no longer necessary.
13416
13417 2017-04-25 Pedro Alves <palves@redhat.com>
13418
13419 * btrace.c (pt_btrace_insn_flags): Change parameter type to
13420 reference.
13421 (pt_btrace_insn): New function.
13422 (ftrace_add_pt): Remove memset call and use pt_btrace_insn.
13423
13424 2017-04-25 Pedro Alves <palves@redhat.com>
13425
13426 * ada-lang.c (ada_catchpoint_location): Now a "class". Remove
13427 "base" field and inherit from "bp_location" instead. Add
13428 non-default ctor.
13429 (allocate_location_exception): Use new non-default ctor.
13430 * breakpoint.c (get_first_locp_gte_addr): Remove memset call.
13431 (init_bp_location): Convert to ...
13432 (bp_location::bp_location): ... this new ctor, and remove memset
13433 call.
13434 (base_breakpoint_allocate_location): Use the new non-default ctor.
13435 * breakpoint.h (bp_location): Now a class. Declare default and
13436 non-default ctors. In-class initialize all members.
13437 (init_bp_location): Remove declaration.
13438
13439 2017-04-25 Pedro Alves <palves@redhat.com>
13440
13441 * common/enum-flags.h (enum_flags): Don't implement copy ctor and
13442 assignment operator.
13443
13444 2017-04-24 Yao Qi <yao.qi@linaro.org>
13445
13446 * doublest.c (convert_doublest_to_floatformat): Call
13447 floatformat_totalsize_bytes.
13448
13449 2017-04-22 Tom Tromey <tom@tromey.com>
13450
13451 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
13452 ui_out_emit_list.
13453 * stack.c (print_frame): Use ui_out_emit_list.
13454 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
13455 ui_out_emit_list.
13456 * mi/mi-main.c (print_one_inferior)
13457 (mi_cmd_data_list_register_names)
13458 (mi_cmd_data_list_register_values, mi_cmd_list_features)
13459 (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use
13460 ui_out_emit_list.
13461 * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list.
13462 (mi_output_solib_attribs): Use ui_out_emit_list,
13463 ui_out_emit_tuple.
13464 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list.
13465 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
13466 (mi_cmd_stack_list_args, list_args_or_locals): Use
13467 ui_out_emit_list.
13468 * disasm.c (do_assembly_only): Use ui_out_emit_list.
13469 * breakpoint.c (print_solib_event, output_thread_groups): Use
13470 ui_out_emit_list.
13471
13472 2017-04-22 Tom Tromey <tom@tromey.com>
13473
13474 * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple.
13475 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple.
13476 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple.
13477
13478 2017-04-22 Tom Tromey <tom@tromey.com>
13479
13480 * tracepoint.c (tvariables_info_1)
13481 (print_one_static_tracepoint_marker): Use ui_out_emit_tuple.
13482
13483 2017-04-22 Tom Tromey <tom@tromey.com>
13484
13485 * stack.c (print_frame_arg): Use ui_out_emit_tuple,
13486 annotate_arg_emitter.
13487 * breakpoint.c (print_mention_watchpoint)
13488 (print_mention_masked_watchpoint): Use ui_out_emit_tuple.
13489 * annotate.h (struct annotate_arg_emitter): New.
13490
13491 2017-04-22 Tom Tromey <tom@tromey.com>
13492
13493 * record-btrace.c (record_btrace_insn_history)
13494 (record_btrace_insn_history_range, record_btrace_call_history)
13495 (record_btrace_call_history_range): Use ui_out_emit_tuple.
13496 * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use
13497 ui_out_emit_tuple.
13498 * stack.c (print_frame_info): Use ui_out_emit_tuple.
13499 * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple.
13500 * skip.c (skip_info): Use ui_out_emit_tuple.
13501 * remote.c (show_remote_cmd): Use ui_out_emit_tuple.
13502 * progspace.c (print_program_space): Use ui_out_emit_tuple.
13503 * probe.c (info_probes_for_ops): Use ui_out_emit_tuple.
13504 * osdata.c (info_osdata): Use ui_out_emit_tuple.
13505 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
13506 ui_out_emit_tuple.
13507 * mi/mi-main.c (print_one_inferior, list_available_thread_groups)
13508 (output_register, mi_cmd_data_read_memory)
13509 (mi_cmd_data_read_memory_bytes, mi_load_progress)
13510 (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple.
13511 * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one):
13512 Use ui_out_emit_tuple.
13513 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use
13514 ui_out_emit_tuple.
13515 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
13516 (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple.
13517 * linux-thread-db.c (info_auto_load_libthread_db): Use
13518 ui_out_emit_tuple.
13519 * inferior.c (print_inferior): Use ui_out_emit_tuple.
13520 * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple.
13521 * disasm.c (do_mixed_source_and_assembly_deprecated)
13522 (do_mixed_source_and_assembly): Use ui_out_emit_tuple.
13523 * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple.
13524 * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple.
13525 * breakpoint.c (print_one_breakpoint_location)
13526 (print_one_breakpoint): Use ui_out_emit_tuple.
13527 * auto-load.c (print_script, info_auto_load_cmd): Use
13528 ui_out_emit_tuple.
13529 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple.
13530
13531 2017-04-21 Simon Marchi <simon.marchi@ericsson.com>
13532
13533 * thread.c (print_thread_info_1): Remove dead code.
13534
13535 2017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
13536
13537 * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
13538 GDB_SELF_TEST.
13539 * arm-tdep.c (selftests::arm_record_test): Likewise.
13540
13541 2017-04-21 Yao Qi <yao.qi@linaro.org>
13542
13543 * regcache.c (regcache_restore): Remove argument 2. Replace
13544 argument 3 with regcache. Get register status from
13545 src->register_status and get register contents from
13546 register_buffer (src, regnum).
13547 (regcache_cpy): Update.
13548
13549 2017-04-19 Pedro Alves <palves@redhat.com>
13550
13551 * gdbthread.h (thread): Add missing closing parenthesis in
13552 comment.
13553
13554 2017-04-19 Pedro Alves <palves@redhat.com>
13555
13556 * common/refcounted-object.h: New file.
13557 * gdbthread.h: Include "common/refcounted-object.h".
13558 (thread_info): Inherit from refcounted_object and add comments.
13559 (thread_info::incref, thread_info::decref)
13560 (thread_info::m_refcount): Delete.
13561 (thread_info::deletable): Use the refcounted_object::refcount()
13562 method.
13563 * inferior.c (current_inferior_): Add comment.
13564 (set_current_inferior): Increment/decrement refcounts.
13565 (prune_inferiors, remove_inferior_command): Skip inferiors marked
13566 not-deletable instead of comparing with the current inferior.
13567 (initialize_inferiors): Increment the initial inferior's refcount.
13568 * inferior.h (struct inferior): Forward declare.
13569 Include "common/refcounted-object.h".
13570 (current_inferior, set_current_inferior): Move declaration to
13571 before struct inferior's definition, and fix comment.
13572 (inferior): Inherit from refcounted_object. Add comments.
13573 * thread.c (switch_to_thread_no_regs): Reference the thread's
13574 inferior pointer directly instead of doing a ptid lookup.
13575 (switch_to_no_thread): New function.
13576 (switch_to_thread(thread_info *)): New function, factored out
13577 from ...
13578 (switch_to_thread(ptid_t)): ... this.
13579 (restore_current_thread): Delete.
13580 (current_thread_cleanup): Remove 'inf_id' and 'was_removable'
13581 fields, and add 'inf' field.
13582 (do_restore_current_thread_cleanup): Check whether old->inf is
13583 alive instead of looking up an inferior by ptid. Use
13584 switch_to_thread and switch_to_no_thread.
13585 (restore_current_thread_cleanup_dtor): Use old->inf directly
13586 instead of lookup up an inferior by id. Decref the inferior.
13587 Don't restore 'removable'.
13588 (make_cleanup_restore_current_thread): Same the inferior pointer
13589 in old, instead of the inferior number. Incref the inferior.
13590 Don't save/clear 'removable'.
13591
13592 2017-04-19 Pedro Alves <palves@redhat.com>
13593
13594 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13595 unittests/scoped_restore-selftests.c.
13596 (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o.
13597 * common/scoped_restore.h (scoped_restore_base): Make "class".
13598 (scoped_restore_base::release): New public method.
13599 (scoped_restore_base::scoped_restore_base): New protected ctor.
13600 (scoped_restore_base::m_saved_var): New protected field.
13601 (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the
13602 scoped_restore_base base class instead of m_saved_var directly.
13603 (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise.
13604 (scoped_restore_tmpl::scoped_restore_tmpl(const
13605 scoped_restore_tmpl<T>&)): Likewise.
13606 (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var
13607 method.
13608 (scoped_restore_tmpl::saved_var): New method.
13609 (scoped_restore_tmpl::m_saved_var): Delete.
13610 * inferior.h (inferior::detaching): Now a bool.
13611 * infrun.c (prepare_for_detach): Use a scoped_restore instead of a
13612 cleanup.
13613 * unittests/scoped_restore-selftests.c: New file.
13614
13615 2017-04-19 Pedro Alves <palves@redhat.com>
13616
13617 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS):
13618 Re-sort in alphabetic order.
13619
13620 2017-04-18 Pedro Alves <palves@redhat.com>
13621
13622 * xml-support.c (obstack_xml_printf): Delete.
13623 * xml-support.h (obstack_xml_printf): Delete.
13624
13625 2017-04-18 Pedro Alves <palves@redhat.com>
13626
13627 * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse,
13628 vdebug, verror, body_text, start_element, end_element, name,
13629 user_data, set_is_xinclude, set_error, expat_parser>: New methods.
13630 <name, user_data, expat_parser, scopes, error, last_line, dtd_name,
13631 is_xinclude>: Make private and add m_ prefix.
13632 (gdb_xml_parser::body_text): New method, based on ...
13633 (gdb_xml_body_text): ... this. Adjust.
13634 (gdb_xml_parser::vdebug): New method, based on ...
13635 (gdb_xml_debug): ... this. Adjust.
13636 (gdb_xml_parser::verror): New method, based on ...
13637 (gdb_xml_error): ... this. Adjust.
13638 (gdb_xml_parser::start_element): New method, based on ...
13639 (gdb_xml_start_element): ... this. Adjust.
13640 (gdb_xml_start_element_wrapper): Defer to
13641 gdb_xml_parser::start_element and gdb_xml_parser::set_error.
13642 (gdb_xml_parser::end_element): New method, based on ...
13643 (gdb_xml_end_element_wrapper): ... this. Adjust.
13644 (gdb_xml_parser::~gdb_xml_parser): Adjust.
13645 (gdb_xml_parser::gdb_xml_parser): Adjust to field renames.
13646 (gdb_xml_parser::use_dtd): New method, based on ...
13647 (gdb_xml_use_dtd): ... this. Adjust.
13648 (gdb_xml_parser::parse): New method, based on ...
13649 (gdb_xml_parse): ... this. Adjust.
13650 (gdb_xml_parse_quick): Adjust to call the parser's parse method.
13651 (xinclude_start_include): Adjust to call the parser's name method.
13652 (xml_xinclude_default, xml_xinclude_start_doctype)
13653 (xml_xinclude_end_doctype): Adjust to call the parser's user_data
13654 method.
13655 (xml_process_xincludes): Adjust to call parser methods.
13656 * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete
13657 declarations.
13658
13659 2017-04-18 Pedro Alves <palves@redhat.com>
13660
13661 * tracefile-tfile.c (tfile_write_tdesc): Adjust to use
13662 gdb::optional<std::string>.
13663 * xml-support.c: Include <string>.
13664 (scope_level::scope_level(scope_level &&))
13665 (scope_level::~scope_level): Delete.
13666 (scope_level::body): Now a std::string.
13667 (gdb_xml_body_text, gdb_xml_end_element): Adjust.
13668 (xinclude_parsing_data::xinclude_parsing_data): Add 'output'
13669 parameter.
13670 (xinclude_parsing_data::~xinclude_parsing_data): Delete.
13671 (xinclude_parsing_data::output): Now a std::string reference.
13672 (xinclude_start_include): Adjust.
13673 (xml_xinclude_default): Adjust.
13674 (xml_process_xincludes): Add 'output' parameter, and return bool.
13675 * xml-support.h (xml_process_xincludes): Add 'output' parameter,
13676 and return bool.
13677 * xml-tdesc.c: Include <unordered_map> and <string>.
13678 (tdesc_xml_cache): Delete.
13679 (tdesc_xml_cache_s): Delete.
13680 (xml_cache): Now an std::unordered_map.
13681 (tdesc_parse_xml): Adjust to use std::string and unordered_map.
13682 (target_fetch_description_xml): Change return type to
13683 gdb::optional<std::string>, and adjust.
13684 * xml-tdesc.h: Include "common/gdb_optional.h" and <string>.
13685 (target_fetch_description_xml): Change return type to
13686 gdb::optional<std::string>.
13687
13688 2017-04-18 Pedro Alves <palves@redhat.com>
13689
13690 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13691 unittests/optional-selftests.c.
13692 (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o.
13693 * unittests/optional-selftests.c: New file.
13694 * unittests/optional/assignment/1.cc: New file.
13695 * unittests/optional/assignment/2.cc: New file.
13696 * unittests/optional/assignment/3.cc: New file.
13697 * unittests/optional/assignment/4.cc: New file.
13698 * unittests/optional/assignment/5.cc: New file.
13699 * unittests/optional/assignment/6.cc: New file.
13700 * unittests/optional/assignment/7.cc: New file.
13701 * unittests/optional/cons/copy.cc: New file.
13702 * unittests/optional/cons/default.cc: New file.
13703 * unittests/optional/cons/move.cc: New file.
13704 * unittests/optional/cons/value.cc: New file.
13705 * unittests/optional/in_place.cc: New file.
13706 * unittests/optional/observers/1.cc: New file.
13707 * unittests/optional/observers/2.cc: New file.
13708
13709 2017-04-18 Pedro Alves <palves@redhat.com>
13710
13711 * common/gdb_optional.h: Include common/traits.h.
13712 (in_place_t): New type.
13713 (in_place): New constexpr variable.
13714 (optional::optional): Remove member initialization of
13715 m_instantiated.
13716 (optional::optional(in_place_t...)): New constructor.
13717 (optional::~optional): Use reset.
13718 (optional::optional(const optional&)): New.
13719 (optional::optional(const optional&&)): New.
13720 (optional::optional(T &)): New.
13721 (optional::optional(T &&)): New.
13722 (operator::operator=(const optional &)): New.
13723 (operator::operator=(optional &&)): New.
13724 (operator::operator= (const T &))
13725 (operator::operator= (T &&))
13726 (operator::emplace (Args &&... args)): Return a T&. Use reset.
13727 (operator::reset): New.
13728 (operator::m_instantiated):: Add in-class initializer.
13729 * common/traits.h: Include <type_traits>.
13730 (struct And): New types.
13731
13732 2017-04-18 Pedro Alves <palves@redhat.com>
13733
13734 * xml-support.c: Include <vector>.
13735 (scope_level::scope_level(const gdb_xml_element *))
13736 (scope_level::scope_level(scope_level&&)): New.
13737 (scope_level::~scope_level): New.
13738 (scope_level_s): Delete.
13739 (gdb_xml_parser::scopes): Now a std::vector.
13740 (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
13741 Use std::vector.
13742 (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
13743 scope cleanup code.
13744 (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
13745 of the scopes member. Use std::vector::emplace_back.
13746
13747 2017-04-18 Pedro Alves <palves@redhat.com>
13748
13749 * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude
13750 a bool.
13751 (gdb_xml_end_element): Change type of first parameter.
13752 (gdb_xml_cleanup): Rename to ...
13753 (gdb_xml_parser::~gdb_xml_parser): ... this.
13754 (gdb_xml_create_parser_and_cleanup): Delete with ...
13755 (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
13756 to this new ctor.
13757 (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
13758 using gdb_xml_create_parser_and_cleanup.
13759 (xinclude_parsing_data): Add ctor/dtor.
13760 (xml_xinclude_cleanup): Delete.
13761 (xml_process_xincludes): Create a local xinclude_parsing_data
13762 instead of heap-allocating one. Create a local gdb_xml_parser
13763 instead of heap-allocating one with
13764 gdb_xml_create_parser_and_cleanup.
13765
13766 2017-04-18 John Baldwin <jhb@FreeBSD.org>
13767
13768 PR threads/20743
13769 * fbsd-nat.c (resume_one_thread_cb): Remove.
13770 (resume_all_threads_cb): Remove.
13771 (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
13772 iterate_over_threads.
13773
13774 2017-04-17 Joel Brobecker <brobecker@adacore.com>
13775
13776 * NEWS: Create a new section for the next release branch.
13777 Rename the section of the current branch, now that it has
13778 been cut.
13779
13780 2017-04-17 Joel Brobecker <brobecker@adacore.com>
13781
13782 GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
13783 * version.in: Bump version to 8.0.50.DATE-git.
13784
13785 2017-04-13 Sergio Durigan Junior <sergiodj@redhat.com>
13786
13787 PR gdb/21385
13788 * windows-nat.c (windows_create_inferior): Declare 'allargs'
13789 independently of the host, and fix build breakage on Cygwin.
13790
13791 2017-04-13 Pedro Alves <palves@redhat.com>
13792
13793 * inferior.c (free_inferior): Convert to ...
13794 (inferior::~inferior): ... this dtor.
13795 (inferior::inferior): New ctor, factored out from ...
13796 (add_inferior_silent): ... here. Allocate the inferior with a new
13797 expression.
13798 (delete_inferior): Call delete instead of free_inferior.
13799 * inferior.h (gdb_environ, continuation): Forward declare.
13800 (inferior): Now a class. Add in-class initialization to all
13801 members. Make boolean fields bool, except 'detaching'.
13802 (inferior::inferior): New explicit ctor.
13803 (inferior::~inferior): New.
13804
13805 2017-04-13 Pedro Alves <palves@redhat.com>
13806
13807 * inferior.c (init_inferior_list): Delete.
13808 * inferior.h (init_inferior_list): Delete.
13809
13810 2017-04-13 Pedro Alves <palves@redhat.com>
13811
13812 PR threads/13217
13813 * gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
13814 (top level): Call it twice, with different thread sets.
13815
13816 2017-04-13 Pedro Alves <palves@redhat.com>
13817
13818 * thread.c: Include <algorithm>.
13819 (thread_array_cleanup): Delete.
13820 (scoped_inc_dec_ref): New class.
13821 (live_threads_count): New function.
13822 (set_thread_refcount): Delete.
13823 (tp_array_compar_ascending): Now a bool.
13824 (tp_array_compar): Convert to a std::sort comparison function.
13825 (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
13826 and live_threads_count.
13827
13828 2017-04-13 Pedro Alves <palves@redhat.com>
13829
13830 * infrun.c (follow_fork_inferior): Also switch the current
13831 inferior.
13832
13833 2017-04-13 Pedro Alves <palves@redhat.com>
13834
13835 * breakpoint.c (watch_command_1): Save watchpoint-frame info
13836 before calling create_internal_breakpoint.
13837
13838 2017-04-13 Pedro Alves <palves@redhat.com>
13839
13840 * fork-child.c (execv_argv): New class.
13841 (breakup_args): Refactored as ...
13842 (execv_argv::init_for_no_shell): .. this method of execv_argv.
13843 Copy arguments to storage and replace separators with NULL
13844 terminators in place.
13845 (escape_bang_in_quoted_argument): Adjust to return bool.
13846 (execv_argv::execv_argv): New ctor.
13847 (execv_argv::init_for_shell): New method, factored out from
13848 fork_inferior. Don't strdup strings into the vector.
13849 (fork_inferior): Eliminate "shell" local and use execv_argv. Use
13850 Remove free_vector_argv call.
13851
13852 2017-04-13 Yao Qi <yao.qi@linaro.org>
13853
13854 * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
13855 tdep->rx_psw_type.
13856
13857 2017-04-13 Yao Qi <yao.qi@linaro.org>
13858
13859 * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
13860 * rx-tdep.c (rx_gdbarch_init): Likewise.
13861
13862 2017-04-13 Pedro Alves <palves@redhat.com>
13863
13864 * breakpoint.h (struct breakpoint): Reindent.
13865
13866 2017-04-13 Pedro Alves <palves@redhat.com>
13867
13868 * breakpoint.c (bp_location): Rename to ...
13869 (bp_locations): ... this. All references updated.
13870 (bp_location_count): Rename to ...
13871 (bp_locations_count): ... this. All references updated.
13872 (bp_location_placed_address_before_address_max): Rename to ...
13873 (bp_locations_placed_address_before_address_max): ... this. All
13874 references updated.
13875 (bp_location_shadow_len_after_address_max): Rename to ...
13876 (bp_locations_shadow_len_after_address_max): ... this. All
13877 references updated.
13878 (bp_location_compare_addrs): Rename to ...
13879 (bp_locations_compare_addrs): ... this. All references updated.
13880 (bp_location_compare):Rename to ...
13881 (bp_locations_compare): ... this. All references updated.
13882 (bp_location_target_extensions_update): Rename to ...
13883 (bp_locations_target_extensions_update): ... this. All references
13884 updated.
13885
13886 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
13887
13888 * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
13889 * common/common.m4: Check headers 'termios.h', 'termio.h' and
13890 'sgtty.h'.
13891 * common/gdb_termios.h: New file, with parts of "terminal.h".
13892 * inflow.c: Include "gdb_termios.h".
13893 * ser-unix.c: Include "gdb_termios.h".
13894 * terminal.h: Move terminal-related defines to
13895 "common/gdb_termios.h".
13896
13897 2017-04-12 Tom Tromey <tom@tromey.com>
13898
13899 * probe.c (parse_probes): Update.
13900 * location.h (delete_event_location): Don't declare.
13901 (event_location_deleter::operator()): Update.
13902 * location.c (event_location_deleter::operator()): Rename from
13903 delete_event_location.
13904 * linespec.h (linespec_result) <location>: Change type to
13905 event_location_up.
13906 * linespec.c (canonicalize_linespec, event_location_to_sals)
13907 (decode_objc): Update.
13908 (linespec_result): Don't call delete_event_location.
13909 * breakpoint.c (create_breakpoints_sal)
13910 (bkpt_probe_create_sals_from_location)
13911 (strace_marker_create_sals_from_location): Update.
13912
13913 2017-04-12 Tom Tromey <tom@tromey.com>
13914
13915 * linespec.h (struct linespec_result): Add constructor and
13916 destructor.
13917 (init_linespec_result, destroy_linespec_result)
13918 (make_cleanup_destroy_linespec_result): Don't declare.
13919 * linespec.c (init_linespec_result): Remove.
13920 (linespec_result::~linespec_result): Rename from
13921 destroy_linespec_result. Update.
13922 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
13923 Remove.
13924 * breakpoint.c (create_breakpoint, break_range_command)
13925 (decode_location_default): Update.
13926 * ax-gdb.c (agent_command_1): Update.
13927
13928 2017-04-12 Tom Tromey <tom@tromey.com>
13929
13930 * remote.c (remote_download_tracepoint): Update.
13931 * python/py-breakpoint.c (bppy_get_location): Update.
13932 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
13933 (gdbscm_breakpoint_location): Update.
13934 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
13935 * breakpoint.h (struct breakpoint) <location, location_range_end>:
13936 Change type to event_location_up.
13937 * breakpoint.c (create_overlay_event_breakpoint)
13938 (create_longjmp_master_breakpoint)
13939 (create_std_terminate_master_breakpoint)
13940 (create_exception_master_breakpoint)
13941 (breakpoint_event_location_empty_p, print_breakpoint_location)
13942 (print_one_breakpoint_location, create_thread_event_breakpoint)
13943 (init_breakpoint_sal, create_breakpoint)
13944 (print_recreate_ranged_breakpoint, break_range_command)
13945 (init_ada_exception_breakpoint, say_where): Update.
13946 (base_breakpoint_dtor): Don't call delete_event_location.
13947 (bkpt_print_recreate, tracepoint_print_recreate)
13948 (dprintf_print_recreate, update_static_tracepoint)
13949 (breakpoint_re_set_default): Update.
13950
13951 2017-04-12 Tom Tromey <tom@tromey.com>
13952
13953 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
13954 type of "to_do". Update.
13955 (compute_stack_depth): Use std::vector.
13956
13957 2017-04-12 Tom Tromey <tom@tromey.com>
13958
13959 * printcmd.c (find_instruction_backward): Use std::vector.
13960
13961 2017-04-12 Tom Tromey <tom@tromey.com>
13962
13963 * symfile.c (objfilep): Remove typedef.
13964 (reread_symbols): Use a std::vector.
13965
13966 2017-04-12 Tom Tromey <tom@tromey.com>
13967
13968 * mi/mi-main.c (exec_direction_forward): Remove.
13969 (exec_reverse_continue, mi_execute_command): Use scoped_restore.
13970 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
13971 scoped_restore.
13972 * guile/guile.c (guile_repl_command, guile_command)
13973 (gdbscm_execute_gdb_command): Use scoped_restore.
13974 * go-exp.y (go_parse): Use scoped_restore.
13975 * d-exp.y (d_parse): Use scoped_restore.
13976 * cli/cli-decode.c (cmd_func): Use scoped_restore.
13977 * c-exp.y (c_parse): Use scoped_restore.
13978
13979 2017-04-12 Tom Tromey <tom@tromey.com>
13980
13981 * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
13982 (mi_parse): Update return type.
13983 (mi_parse_free): Remove.
13984 * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
13985 (mi_parse::~mi_parse): Rename from mi_parse_free.
13986 (mi_parse_cleanup): Remove.
13987 (mi_parse): Return a unique_ptr. Use new.
13988 * mi/mi-main.c (mi_execute_command): Update.
13989
13990 2017-04-12 Tom Tromey <tom@tromey.com>
13991
13992 * location.c (explicit_location_lex_one): Return a
13993 unique_xmalloc_ptr.
13994 (string_to_explicit_location): Update. Remove cleanups.
13995
13996 2017-04-12 Tom Tromey <tom@tromey.com>
13997
13998 * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
13999 (compare_value_and_voffset): Change type. Update.
14000 (compute_vtable_size): Change type of "offset_vec".
14001 (gnuv3_print_vtable): Use std::vector. Remove cleanups.
14002 (gnuv3_get_typeid): Remove extraneous declaration.
14003
14004 2017-04-12 Tom Tromey <tom@tromey.com>
14005
14006 * charset.h (wchar_iterator): Fix comment.
14007
14008 2017-04-12 Tom Tromey <tom@tromey.com>
14009
14010 * charset.c (iconv_wrapper): New class.
14011 (cleanup_iconv): Remove.
14012 (convert_between_encodings): Use it.
14013
14014 2017-04-12 Tom Tromey <tom@tromey.com>
14015
14016 * symfile.h (increment_reading_symtab): Update type.
14017 * symfile.c (decrement_reading_symtab): Remove.
14018 (increment_reading_symtab): Return a scoped_restore_tmpl<int>.
14019 * psymtab.c (psymtab_to_symtab): Update.
14020 * dwarf2read.c (dw2_instantiate_symtab): Update.
14021
14022 2017-04-12 Tom Tromey <tom@tromey.com>
14023
14024 * jit.c (struct jit_reader): Declare separately. Add constructor
14025 and destructor. Change type of "handle".
14026 (loaded_jit_reader): Define separately.
14027 (jit_reader_load): Update. New "new".
14028 (jit_reader_unload_command): Use "delete".
14029 * gdb-dlfcn.h (struct dlclose_deleter): New.
14030 (gdb_dlhandle_up): New typedef.
14031 (gdb_dlopen, gdb_dlsym): Update types.
14032 (gdb_dlclose): Remove.
14033 * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up.
14034 (gdb_dlsym): Change type of "handle".
14035 (make_cleanup_dlclose): Remove.
14036 (dlclose_deleter::operator()): Rename from gdb_dlclose.
14037 * compile/compile-c-support.c (load_libcc): Update.
14038
14039 2017-04-12 Tom Tromey <tom@tromey.com>
14040
14041 * symtab.h (find_pcs_for_symtab_line): Change return type.
14042 * symtab.c (find_pcs_for_symtab_line): Change return type.
14043 * python/py-linetable.c (build_line_table_tuple_from_pcs): Change
14044 type of "vec". Update.
14045 (ltpy_get_pcs_for_line): Update.
14046 * linespec.c (decode_digits_ordinary): Update.
14047
14048 2017-04-12 Tom Tromey <tom@tromey.com>
14049
14050 * tracepoint.c (actions_command): Update.
14051 * python/python.c (python_command, python_interactive_command):
14052 Update.
14053 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
14054 * guile/guile.c (guile_command): Update.
14055 * defs.h (read_command_lines, read_command_lines_1): Return
14056 command_line_up.
14057 (command_lines_deleter): New struct.
14058 (command_line_up): New typedef.
14059 * compile/compile.c (compile_code_command)
14060 (compile_print_command): Update.
14061 * cli/cli-script.h (get_command_line, copy_command_lines): Return
14062 command_line_up.
14063 (make_cleanup_free_command_lines): Remove.
14064 * cli/cli-script.c (get_command_line, read_command_lines_1)
14065 (copy_command_lines): Return command_line_up.
14066 (while_command, if_command, read_command_lines, define_command)
14067 (document_command): Update.
14068 (do_free_command_lines_cleanup, make_cleanup_free_command_lines):
14069 Remove.
14070 * breakpoint.h (breakpoint_set_commands): Change type of
14071 "commands".
14072 * breakpoint.c (breakpoint_set_commands): Change type of
14073 "commands". Update.
14074 (do_map_commands_command, update_dprintf_command_list)
14075 (create_tracepoint_from_upload): Update.
14076
14077 2017-04-12 Tom Tromey <tom@tromey.com>
14078
14079 * tracepoint.c (scope_info): Update.
14080 * spu-tdep.c (spu_catch_start): Update.
14081 * python/python.c (gdbpy_decode_line): Update.
14082 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
14083 * python/py-breakpoint.c (bppy_init): Update.
14084 * probe.c (parse_probes): Update.
14085 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
14086 * location.h (event_location_deleter): New struct.
14087 (event_location_up): New typedef.
14088 (new_linespec_location, new_address_location, new_probe_location)
14089 (new_explicit_location, copy_event_location)
14090 (string_to_event_location, string_to_event_location_basic)
14091 (string_to_explicit_location): Update return type.
14092 (make_cleanup_delete_event_location): Remove.
14093 * location.c (new_linespec_location, new_address_location)
14094 (new_probe_location, new_explicit_location, copy_event_location):
14095 Return event_location_up.
14096 (delete_event_location_cleanup)
14097 (make_cleanup_delete_event_location): Remove.
14098 (string_to_explicit_location, string_to_event_location_basic)
14099 (string_to_event_location): Return event_location_up.
14100 * linespec.c (canonicalize_linespec, event_location_to_sals)
14101 (decode_line_with_current_source)
14102 (decode_line_with_last_displayed, decode_objc): Update.
14103 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
14104 * completer.c (location_completer): Update.
14105 * cli/cli-cmds.c (edit_command, list_command): Update.
14106 * breakpoint.c (create_overlay_event_breakpoint)
14107 (create_longjmp_master_breakpoint)
14108 (create_std_terminate_master_breakpoint)
14109 (create_exception_master_breakpoint)
14110 (create_thread_event_breakpoint): Update.
14111 (init_breakpoint_sal): Update. Remove some dead code.
14112 (create_breakpoint_sal): Change type of "location". Update.
14113 (create_breakpoints_sal, create_breakpoint, break_command_1)
14114 (dprintf_command, break_range_command, until_break_command)
14115 (init_ada_exception_breakpoint)
14116 (strace_marker_create_sals_from_location)
14117 (update_static_tracepoint, trace_command, ftrace_command)
14118 (strace_command, create_tracepoint_from_upload): Update.
14119 * break-catch-throw.c (re_set_exception_catchpoint): Update.
14120 * ax-gdb.c (agent_command_1): Update.
14121
14122 2017-04-12 Pedro Alves <palves@redhat.com>
14123
14124 * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o.
14125 * configure.tgt: Handle i[34567]86-*-go32* and
14126 i[34567]86-*-msdosdjgpp*.
14127 * i386-tdep.c (i386_svr4_reg_to_regnum):
14128 Make extern.
14129 (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to
14130 i386-go32-tdep.c.
14131 (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c.
14132 * i386-go32-tdep.c: New file.
14133 * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New
14134 declarations.
14135
14136 2017-04-12 Simon Marchi <simon.marchi@ericsson.com>
14137
14138 * aix-thread.c (pd_status2str): Change return type to const char *.
14139
14140 2017-04-12 Pedro Alves <palves@redhat.com>
14141
14142 * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
14143 calls to set_gdbarch_gnu_triplet_regexp.
14144
14145 2017-04-12 Pedro Alves <palves@redhat.com>
14146
14147 PR gdb/21323
14148 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>:
14149 New enum value.
14150 (cplus_language_arch_info): Register cplus_primitive_type_wchar_t.
14151 * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field.
14152 * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type.
14153 * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values.
14154 * gdbarch.h, gdbarch.c: Regenerate.
14155 * aarch64-tdep.c (aarch64_gdbarch_init): Override
14156 gdbarch_wchar_bit and gdbarch_wchar_signed.
14157 * alpha-tdep.c (alpha_gdbarch_init): Likewise.
14158 * arm-tdep.c (arm_gdbarch_init): Likewise.
14159 * avr-tdep.c (avr_gdbarch_init): Likewise.
14160 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
14161 * i386-nto-tdep.c (i386nto_init_abi): Likewise.
14162 * i386-tdep.c (i386_go32_init_abi): Likewise.
14163 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
14164 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
14165 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
14166 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
14167 * sh-tdep.c (sh_gdbarch_init): Likewise.
14168 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
14169 * sparc64-tdep.c (sparc64_init_abi): Likewise.
14170 * windows-tdep.c (windows_init_abi): Likewise.
14171 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
14172
14173 2017-04-12 Pedro Alves <palves@redhat.com>
14174
14175 PR c++/21323
14176 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t,
14177 cplus_primitive_type_char32_t>: New enum values.
14178 (cplus_language_arch_info): Register cplus_primitive_type_char16_t
14179 and cplus_primitive_type_char32_t.
14180 * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or
14181 32, use the archtecture's built-in type for char16_t and char32_t,
14182 respectively. Otherwise, fallback to init_integer_type as before,
14183 but make the type unsigned, and issue a complaint.
14184 * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned.
14185
14186 2017-04-12 Alan Hayward <alan.hayward@arm.com>
14187
14188 * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added.
14189 (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
14190
14191 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
14192
14193 * windows-nat.c (windows_create_inferior): Declare 'toexec' as
14194 'const char *'.
14195
14196 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
14197
14198 * common/common-utils.c (free_vector_argv): New function.
14199 * common/common-utils.h: Include <vector>.
14200 (free_vector_argv): New prototype.
14201 * darwin-nat.c (darwin_create_inferior): Rewrite function
14202 prototype in order to constify "exec_file" and accept a
14203 "std::string" for "allargs".
14204 * fork-child.c: Include <vector>.
14205 (breakup_args): Rewrite function, using C++.
14206 (fork_inferior): Rewrite function header, constify "exec_file_arg"
14207 and accept "std::string" for "allargs". Update the code to
14208 calculate "argv" based on "allargs". Update calls to "exec_fun"
14209 and "execvp".
14210 * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in
14211 order to constify "exec_file" and accept a "std::string" for
14212 "allargs".
14213 * go32-nat.c (go32_create_inferior): Likewise.
14214 * inf-ptrace.c (inf_ptrace_create_inferior): Likewise.
14215 * infcmd.c (run_command_1): Constify "exec_file". Use
14216 "std::string" for inferior arguments.
14217 * inferior.h (fork_inferior): Update prototype.
14218 * linux-nat.c (linux_nat_create_inferior): Rewrite function
14219 prototype in order to constify "exec_file" and accept a
14220 "std::string" for "allargs".
14221 * nto-procfs.c (procfs_create_inferior): Likewise.
14222 * procfs.c (procfs_create_inferior): Likewise.
14223 * remote-sim.c (gdbsim_create_inferior): Likewise.
14224 * remote.c (extended_remote_run): Update code to accept
14225 "std::string" as argument.
14226 (extended_remote_create_inferior): Rewrite function prototype in
14227 order to constify "exec_file" and accept a "std::string" for
14228 "allargs".
14229 * rs6000-nat.c (super_create_inferior): Likewise.
14230 (rs6000_create_inferior): Likewise.
14231 * target.h (struct target_ops) <to_create_inferior>: Likewise.
14232 * windows-nat.c (windows_create_inferior): Likewise.
14233
14234 2017-04-11 Pedro Alves <palves@redhat.com>
14235
14236 * thread.c: Fix whitespace throughout.
14237
14238 2017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com>
14239
14240 * linux-nat.c (linux_nat_detach): Remove delete_lwp call.
14241
14242 2017-04-11 Alan Hayward <alan.hayward@arm.com>
14243
14244 * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
14245
14246 2017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
14247
14248 PR gdb/21364
14249 * osdata.c (info_osdata): Check if 'type' is an empty string
14250 instead of NULL.
14251
14252 2017-04-10 Pedro Alves <palves@redhat.com>
14253
14254 * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid)
14255 (ptid_to_global_thread_id, in_thread_list)
14256 (do_captured_list_thread_ids, set_resumed, set_running)
14257 (set_executing, set_stop_requested, finish_thread_state)
14258 (validate_registers_access, can_access_registers_ptid)
14259 (print_thread_info_1, switch_to_thread)
14260 (do_restore_current_thread_cleanup)
14261 (make_cleanup_restore_current_thread, thread_command)
14262 (thread_name_command): Use operator== instead of ptid_equal.
14263
14264 2017-04-10 Pedro Alves <palves@redhat.com>
14265
14266 * thread.c (struct current_thread_cleanup) <next>: Delete field.
14267 (current_thread_cleanup_chain): Delete.
14268 (restore_current_thread_cleanup_dtor)
14269 (make_cleanup_restore_current_thread): Remove references to
14270 current_thread_cleanup_chain.
14271
14272 2017-04-10 Alan Hayward <alan.hayward@arm.com>
14273
14274 * msp430-tdep.c (msp430_pseudo_register_read): Never return
14275 REG_UNKNOWN.
14276
14277 2017-04-10 Yao Qi <yao.qi@linaro.org>
14278
14279 PR gdb/19942
14280 * gdbthread.h (thread_info::deletable): New method.
14281 (thread_info::incref): New method.
14282 (thread_info::decref): New method.
14283 (thread_info::refcount): Move it to private.
14284 * infrun.c (save_stop_context): Call inc_refcount.
14285 (release_stop_context_cleanup): Likewise.
14286 * thread.c (set_thread_exited): New function.
14287 (init_thread_list): Delete "tp" only it is deletable, otherwise
14288 call set_thread_exited.
14289 (delete_thread_1): Call set_thread_exited.
14290 (current_thread_cleanup) <inferior_pid>: Remove.
14291 <thread>: New field.
14292 (restore_current_thread_ptid_changed): Removed.
14293 (do_restore_current_thread_cleanup): Adjust.
14294 (restore_current_thread_cleanup_dtor): Don't call
14295 find_thread_ptid.
14296 (set_thread_refcount): Use dec_refcount.
14297 (make_cleanup_restore_current_thread): Adjust.
14298 (thread_apply_all_command): Call inc_refcount.
14299 (_initialize_thread): Don't call
14300 observer_attach_thread_ptid_changed.
14301
14302 2017-04-10 Yao Qi <yao.qi@linaro.org>
14303
14304 * thread.c (delete_thread_1): Hoist code on marking thread as
14305 exited.
14306
14307 2017-04-09 Simon Marchi <simon.marchi@polymtl.ca>
14308
14309 * windows-nat.c (windows_detach): Initialize ptid with
14310 minus_one_ptid.
14311
14312 2017-04-07 Simon Marchi <simon.marchi@ericsson.com>
14313
14314 * unittests/ptid-selftests.c: Fix erroneous assert messages.
14315
14316 2017-04-07 Alan Hayward <alan.hayward@arm.com>
14317
14318 * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
14319 (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE.
14320 (bfin_pseudo_register_write): Likewise
14321
14322 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
14323
14324 * common/ptid.h (struct ptid): Change to...
14325 (class ptid_t): ... this.
14326 <ptid_t>: New constructors.
14327 <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=,
14328 matches>: New methods.
14329 <make_null, make_minus_one>: New static methods.
14330 <pid>: Rename to...
14331 <m_pid>: ...this.
14332 <lwp>: Rename to...
14333 <m_lwp>: ...this.
14334 <tid>: Rename to...
14335 <m_tid>: ...this.
14336 (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
14337 ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments
14338 as references, move comment to class ptid_t.
14339 * common/ptid.c (null_ptid, minus_one_ptid): Initialize with
14340 ptid_t static methods.
14341 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid,
14342 ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match):
14343 Take ptid arguments as references, implement using ptid_t methods.
14344 * unittests/ptid-selftests.c: New file.
14345 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14346 unittests/ptid-selftests.c.
14347 (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o.
14348
14349 2017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
14350
14351 * python/python.c (python_run_simple_file): Cast mode literal to
14352 non-const char pointer as expected by PyFile_FromString.
14353
14354 2017-04-05 Simon Marchi <simon.marchi@ericsson.com>
14355
14356 * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with
14357 minus_one_ptid and null_ptid.
14358
14359 2017-04-05 Pedro Alves <palves@redhat.com>
14360
14361 * warning.m4 (build_warnings): Remove -Wno-write-strings.
14362 * configure: Regenerate.
14363
14364 2017-04-05 Pedro Alves <palves@redhat.com>
14365
14366 * ada-exp.y (yyerror): Constify.
14367 * ada-lang.c (bound_name, get_selections)
14368 (ada_variant_discrim_type)
14369 (ada_variant_discrim_name, ada_value_struct_elt)
14370 (ada_lookup_struct_elt_type, is_unchecked_variant)
14371 (ada_which_variant_applies, standard_exc, ada_get_next_arg)
14372 (catch_ada_exception_command_split)
14373 (catch_ada_assert_command_split, catch_assert_command)
14374 (ada_op_name): Constify.
14375 * ada-lang.h (ada_yyerror, get_selections)
14376 (ada_variant_discrim_name, ada_value_struct_elt): Constify.
14377 * arc-tdep.c (arc_print_frame_cache): Constify.
14378 * arm-tdep.c (arm_skip_stub): Constify.
14379 * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref)
14380 (gen_aggregate_elt_ref): Constify.
14381 * bcache.c (print_bcache_statistics): Constify.
14382 * bcache.h (print_bcache_statistics): Constify.
14383 * break-catch-throw.c (catch_exception_command_1):
14384 * breakpoint.c (struct ep_type_description::description):
14385 Constify.
14386 (add_solib_catchpoint): Constify.
14387 (catch_fork_command_1): Add cast.
14388 (add_catch_command): Constify.
14389 * breakpoint.h (add_catch_command, add_solib_catchpoint):
14390 Constify.
14391 * bsd-uthread.c (bsd_uthread_state): Constify.
14392 * buildsym.c (patch_subfile_names): Constify.
14393 * buildsym.h (next_symbol_text_func, patch_subfile_names):
14394 Constify.
14395 * c-exp.y (yyerror): Constify.
14396 (token::oper): Constify.
14397 * c-lang.h (c_yyerror, cp_print_class_member): Constify.
14398 * c-varobj.c (cplus_describe_child): Constify.
14399 * charset.c (find_charset_names): Add cast.
14400 (find_charset_names): Constify array and add const_cast.
14401 * cli/cli-cmds.c (complete_command, cd_command): Constify.
14402 (edit_command): Constify.
14403 * cli/cli-decode.c (lookup_cmd): Constify.
14404 * cli/cli-dump.c (dump_memory_command, dump_value_command):
14405 Constify.
14406 (struct dump_context): Constify.
14407 (add_dump_command, restore_command): Constify.
14408 * cli/cli-script.c (get_command_line): Constify.
14409 * cli/cli-script.h (get_command_line): Constify.
14410 * cli/cli-utils.c (check_for_argument): Constify.
14411 * cli/cli-utils.h (check_for_argument): Constify.
14412 * coff-pe-read.c (struct read_pe_section_data): Constify.
14413 * command.h (lookup_cmd): Constify.
14414 * common/print-utils.c (decimal2str): Constify.
14415 * completer.c (gdb_print_filename): Constify.
14416 * corefile.c (set_gnutarget): Constify.
14417 * cp-name-parser.y (yyerror): Constify.
14418 * cp-valprint.c (cp_print_class_member): Constify.
14419 * cris-tdep.c (cris_register_name, crisv32_register_name):
14420 Constify.
14421 * d-exp.y (yyerror): Constify.
14422 (struct token::oper): Constify.
14423 * d-lang.h (d_yyerror): Constify.
14424 * dbxread.c (struct header_file_location::name): Constify.
14425 (add_old_header_file, add_new_header_file, last_function_name)
14426 (dbx_next_symbol_text, add_bincl_to_list)
14427 (find_corresponding_bincl_psymtab, set_namestring)
14428 (find_stab_function_addr, read_dbx_symtab, start_psymtab)
14429 (dbx_end_psymtab, read_ofile_symtab, process_one_symbol):
14430 * defs.h (command_line_input, print_address_symbolic)
14431 (deprecated_readline_begin_hook): Constify.
14432 * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name):
14433 Constify.
14434 * event-top.c (handle_line_of_input): Constify and add cast.
14435 * exceptions.c (catch_errors): Constify.
14436 * exceptions.h (catch_errors): Constify.
14437 * expprint.c (print_subexp_standard, op_string, op_name)
14438 (op_name_standard, dump_raw_expression, dump_raw_expression):
14439 * expression.h (op_name, op_string, dump_raw_expression):
14440 Constify.
14441 * f-exp.y (yyerror): Constify.
14442 (struct token::oper): Constify.
14443 (struct f77_boolean_val::name): Constify.
14444 * f-lang.c (f_word_break_characters): Constify.
14445 * f-lang.h (f_yyerror): Constify.
14446 * fork-child.c (fork_inferior): Add cast.
14447 * frv-tdep.c (struct gdbarch_tdep::register_names): Constify.
14448 (new_variant): Constify.
14449 * gdbarch.sh (pstring_ptr, pstring_list): Constify.
14450 * gdbarch.c: Regenerate.
14451 * gdbcore.h (set_gnutarget): Constify.
14452 * go-exp.y (yyerror): Constify.
14453 (token::oper): Constify.
14454 * go-lang.h (go_yyerror): Constify.
14455 * go32-nat.c (go32_sysinfo): Constify.
14456 * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify.
14457 * guile/scm-cmd.c (cmdscm_function): Constify.
14458 * guile/scm-param.c (pascm_param_value): Constify.
14459 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
14460 (h8300sx_register_name): Constify.
14461 * hppa-tdep.c (hppa32_register_name, hppa64_register_name):
14462 Constify.
14463 * ia64-tdep.c (ia64_register_names): Constify.
14464 * infcmd.c (construct_inferior_arguments): Constify.
14465 (path_command, attach_post_wait): Constify.
14466 * language.c (show_range_command, show_case_command)
14467 (unk_lang_error): Constify.
14468 * language.h (language_defn::la_error)
14469 (language_defn::la_name_of_this): Constify.
14470 * linespec.c (decode_line_2): Constify.
14471 * linux-thread-db.c (thread_db_err_str): Constify.
14472 * lm32-tdep.c (lm32_register_name): Constify.
14473 * m2-exp.y (yyerror): Constify.
14474 * m2-lang.h (m2_yyerror): Constify.
14475 * m32r-tdep.c (m32r_register_names): Constify and make static.
14476 * m68hc11-tdep.c (m68hc11_register_names): Constify.
14477 * m88k-tdep.c (m88k_register_name): Constify.
14478 * macroexp.c (appendmem): Constify.
14479 * mdebugread.c (fdr_name, add_data_symbol, parse_type)
14480 (upgrade_type, parse_external, parse_partial_symbols)
14481 (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab)
14482 (new_symbol): Constify.
14483 * memattr.c (mem_info_command): Constify.
14484 * mep-tdep.c (register_name_from_keyword): Constify.
14485 * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env):
14486 Constify.
14487 * mi/mi-cmd-stack.c (list_args_or_locals): Constify.
14488 * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify.
14489 * mi/mi-main.c (captured_mi_execute_command): Constify and add
14490 cast.
14491 (mi_execute_async_cli_command): Constify.
14492 * mips-tdep.c (mips_register_name): Constify.
14493 * mn10300-tdep.c (register_name, mn10300_generic_register_name)
14494 (am33_register_name, am33_2_register_name)
14495 * moxie-tdep.c (moxie_register_names): Constify.
14496 * nat/linux-osdata.c (osdata_type): Constify fields.
14497 * nto-tdep.c (nto_parse_redirection): Constify.
14498 * objc-lang.c (lookup_struct_typedef, lookup_objc_class)
14499 (lookup_child_selector): Constify.
14500 (objc_methcall::name): Constify.
14501 * objc-lang.h (lookup_objc_class, lookup_child_selector)
14502 (lookup_struct_typedef): Constify.
14503 * objfiles.c (pc_in_section): Constify.
14504 * objfiles.h (pc_in_section): Constify.
14505 * p-exp.y (struct token::oper): Constify.
14506 (yyerror): Constify.
14507 * p-lang.h (pascal_yyerror): Constify.
14508 * parser-defs.h (op_name_standard): Constify.
14509 (op_print::string): Constify.
14510 (exp_descriptor::op_name): Constify.
14511 * printcmd.c (print_address_symbolic): Constify.
14512 * psymtab.c (print_partial_symbols): Constify.
14513 * python/py-breakpoint.c (stop_func): Constify.
14514 (bppy_get_expression): Constify.
14515 * python/py-cmd.c (cmdpy_completer::name): Constify.
14516 (cmdpy_function): Constify.
14517 * python/py-event.c (evpy_add_attribute)
14518 (gdbpy_initialize_event_generic): Constify.
14519 * python/py-event.h (evpy_add_attribute)
14520 (gdbpy_initialize_event_generic): Constify.
14521 * python/py-evts.c (add_new_registry): Constify.
14522 * python/py-finishbreakpoint.c (outofscope_func): Constify.
14523 * python/py-framefilter.c (get_py_iter_from_func): Constify.
14524 * python/py-inferior.c (get_buffer): Add cast.
14525 * python/py-param.c (parm_constant::name): Constify.
14526 * python/py-unwind.c (fprint_frame_id): Constify.
14527 * python/python.c (gdbpy_parameter_value): Constify.
14528 * remote-fileio.c (remote_fio_func_map): Make 'name' const.
14529 * remote.c (memory_packet_config::name): Constify.
14530 (show_packet_config_cmd, remote_write_bytes)
14531 (remote_buffer_add_string):
14532 * reverse.c (exec_reverse_once): Constify.
14533 * rs6000-tdep.c (variant::name, variant::description): Constify.
14534 * rust-exp.y (rustyyerror): Constify.
14535 * rust-lang.c (rust_op_name): Constify.
14536 * rust-lang.h (rustyyerror): Constify.
14537 * serial.h (serial_ops::name): Constify.
14538 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
14539 (sh_sh3e_register_name, sh_sh2e_register_name)
14540 (sh_sh2a_register_name, sh_sh2a_nofpu_register_name)
14541 (sh_sh_dsp_register_name, sh_sh3_dsp_register_name)
14542 (sh_sh4_register_name, sh_sh4_nofpu_register_name)
14543 (sh_sh4al_dsp_register_name): Constify.
14544 * sh64-tdep.c (sh64_register_name): Constify.
14545 * solib-darwin.c (lookup_symbol_from_bfd): Constify.
14546 * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify.
14547 * stabsread.c (patch_block_stabs, read_type_number)
14548 (ref_map::stabs, ref_add, process_reference)
14549 (symbol_reference_defined, define_symbol, define_symbol)
14550 (error_type, read_type, read_member_functions, read_cpp_abbrev)
14551 (read_one_struct_field, read_struct_fields, read_baseclasses)
14552 (read_tilde_fields, read_struct_type, read_array_type)
14553 (read_enum_type, read_sun_builtin_type, read_sun_floating_type)
14554 (read_huge_number, read_range_type, read_args, common_block_start)
14555 (find_name_end): Constify.
14556 * stabsread.h (common_block_start, define_symbol)
14557 (process_one_symbol, symbol_reference_defined, ref_add):
14558 * symfile.c (get_section_index, add_symbol_file_command):
14559 * symfile.h (get_section_index): Constify.
14560 * target-descriptions.c (tdesc_type::name): Constify.
14561 (tdesc_free_type): Add cast.
14562 * target.c (find_default_run_target):
14563 (add_deprecated_target_alias, find_default_run_target)
14564 (target_announce_detach): Constify.
14565 (do_option): Constify.
14566 * target.h (add_deprecated_target_alias): Constify.
14567 * thread.c (print_thread_info_1): Constify.
14568 * top.c (deprecated_readline_begin_hook, command_line_input):
14569 Constify.
14570 (init_main): Add casts.
14571 * top.h (handle_line_of_input): Constify.
14572 * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify.
14573 * tracepoint.c (tvariables_info_1, trace_status_mi): Constify.
14574 (tfind_command): Rename to ...
14575 (tfind_command_1): ... this and constify.
14576 (tfind_command): New function.
14577 (tfind_end_command, tfind_start_command): Adjust.
14578 (encode_source_string): Constify.
14579 * tracepoint.h (encode_source_string): Constify.
14580 * tui/tui-data.c (tui_partial_win_by_name): Constify.
14581 * tui/tui-data.h (tui_partial_win_by_name): Constify.
14582 * tui/tui-source.c (tui_set_source_content_nil): Constify.
14583 * tui/tui-source.h (tui_set_source_content_nil): Constify.
14584 * tui/tui-win.c (parse_scrolling_args): Constify.
14585 * tui/tui-windata.c (tui_erase_data_content): Constify.
14586 * tui/tui-windata.h (tui_erase_data_content): Constify.
14587 * tui/tui-winsource.c (tui_erase_source_content): Constify.
14588 * tui/tui.c (tui_enable): Add cast.
14589 * utils.c (defaulted_query): Constify.
14590 (init_page_info): Add cast.
14591 (puts_debug, subset_compare): Constify.
14592 * utils.h (subset_compare): Constify.
14593 * varobj.c (varobj_format_string): Constify.
14594 * varobj.h (varobj_format_string): Constify.
14595 * vax-tdep.c (vax_register_name): Constify.
14596 * windows-nat.c (windows_detach): Constify.
14597 * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify.
14598 * xml-support.c (gdb_xml_end_element): Constify.
14599 * xml-tdesc.c (tdesc_start_reg): Constify.
14600 * xstormy16-tdep.c (xstormy16_register_name): Constify.
14601 * xtensa-tdep.c (xtensa_find_register_by_name): Constify.
14602 * xtensa-tdep.h (xtensa_register_t::name): Constify.
14603
14604 2017-04-05 Pedro Alves <palves@redhat.com>
14605
14606 * proc-api.c (struct trans): Constify.
14607 (procfs_note): Constify.
14608 * proc-events.c (struct trans, syscall_table):
14609 * proc-flags.c (struct trans): Constify.
14610 * proc-utils.h (procfs_note): Constify.
14611 * proc-why.c (struct trans): Constify.
14612 * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error)
14613 (procfs_detach): Constify.
14614 * sol-thread.c (struct string_map): Constify.
14615 (td_err_string, td_state_string): Constify.
14616
14617 2017-04-05 Pedro Alves <palves@redhat.com>
14618
14619 * proc-api.c (procfs_filename): Don't initialize
14620 procfs_filename.
14621 (prepare_to_trace): Assume procfs_filename is non-NULL.
14622 (_initialize_proc_api): Give procfs_filename a default value here.
14623
14624 2017-04-05 Pedro Alves <palves@redhat.com>
14625
14626 * break-catch-throw.c (handle_gnu_v3_exceptions): Constify
14627 'cond_string' parameter.
14628 (extract_exception_regexp): Constify 'string' parameter.
14629 (catch_exception_command_1): Constify.
14630 * breakpoint.c (init_catchpoint)
14631 (create_fork_vfork_event_catchpoint): Constify 'cond_string'
14632 parameter.
14633 (ep_parse_optional_if_clause, catch_fork_command_1)
14634 (catch_exec_command_1): Constify.
14635 * breakpoint.h (init_catchpoint): Constify 'cond_string'
14636 parameter.
14637 (ep_parse_optional_if_clause): Constify.
14638 * cli/cli-utils.c (remove_trailing_whitespace)
14639 (check_for_argument): Constify.
14640 * cli/cli-utils.h (remove_trailing_whitespace): Constify and add
14641 non-const overload.
14642 (check_for_argument): Likewise.
14643
14644 2017-04-05 Pedro Alves <palves@redhat.com>
14645
14646 * event-top.c (command_line_handler): Add cast to execute_command
14647 call.
14648 * record-btrace.c (cmd_record_btrace_bts_start)
14649 (cmd_record_btrace_pt_start, cmd_record_btrace_start)
14650 (cmd_record_btrace_start): Add cast to execute_command call.
14651 * record-full.c (record_full_goto_insn):
14652 * record.c (record_start, record_stop): Add cast to
14653 execute_command_to_string calls.
14654 (cmd_record_start): Add cast to execute_command calls.
14655
14656 2017-04-05 Pedro Alves <palves@redhat.com>
14657
14658 * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New
14659 static inline function.
14660 * python/py-arch.c (archpy_disassemble): Constify 'keywords'
14661 array and use gdb_PyArg_ParseTupleAndKeywords.
14662 * python/py-cmd.c (cmdpy_init): Likewise.
14663 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
14664 * python/py-inferior.c (infpy_read_memory, infpy_write_memory)
14665 (infpy_search_memory): Likewise.
14666 * python/py-objfile.c (objfpy_add_separate_debug_file)
14667 (gdbpy_lookup_objfile): Likewise.
14668 * python/py-symbol.c (gdbpy_lookup_symbol)
14669 (gdbpy_lookup_global_symbol): Likewise.
14670 * python/py-type.c (gdbpy_lookup_type): Likewise.
14671 * python/py-value.c (valpy_lazy_string, valpy_string): Likewise.
14672 * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush):
14673 Likewise.
14674
14675 2017-04-05 Pedro Alves <palves@redhat.com>
14676
14677 * python/python-internal.h (gdb_PyGetSetDef): New type.
14678 * python/py-block.c (block_object_getset)
14679 (breakpoint_object_getset): Now a gdb_PyGetSetDef array.
14680 * python/py-event.c (event_object_getset)
14681 (finish_breakpoint_object_getset): Likewise.
14682 * python/py-inferior.c (inferior_object_getset): Likewise.
14683 * python/py-infthread.c (thread_object_getset): Likewise.
14684 * python/py-lazy-string.c (lazy_string_object_getset): Likewise.
14685 * python/py-linetable.c (linetable_entry_object_getset): Likewise.
14686 * python/py-objfile.c (objfile_getset): Likewise.
14687 * python/py-progspace.c (pspace_getset): Likewise.
14688 * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset):
14689 Likewise.
14690 * python/py-record.c (recpy_record_getset): Likewise.
14691 * python/py-symbol.c (symbol_object_getset): Likewise.
14692 * python/py-symtab.c (symtab_object_getset, sal_object_getset):
14693 Likewise.
14694 * python/py-type.c (type_object_getset, field_object_getset):
14695 Likewise.
14696 * python/py-value.c (value_object_getset): Likewise.
14697
14698 2017-04-05 Pedro Alves <palves@redhat.com>
14699
14700 * python/python-internal.h (gdb_PyObject_CallMethod)
14701 (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath):
14702 New functions.
14703 (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException)
14704 (PySys_GetObject, PySys_SetPath): New macros.
14705
14706 2017-04-05 Pedro Alves <palves@redhat.com>
14707
14708 * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of
14709 info_osdata_command.
14710 * osdata.c (info_osdata_command): Rename to ...
14711 (info_osdata): ... this. Constify 'type' parameter, and remove
14712 the 'from_tty' parameter. Accept NULL TYPE.
14713 (info_osdata_command): New function.
14714 * osdata.h (info_osdata_command): Remove declaration.
14715 (info_osdata): New declaration.
14716
14717 2017-04-05 Pedro Alves <palves@redhat.com>
14718
14719 * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert)
14720 (mi_cmd_dprintf_insert, mi_cmd_break_passcount)
14721 (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command'
14722 parameter.
14723 * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception)
14724 (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter.
14725 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command'
14726 parameter.
14727 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path)
14728 (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show)
14729 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
14730 (mi_cmd_file_list_exec_source_files)
14731 (mi_cmd_file_list_shared_libraries): Constify 'command' parameter.
14732 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
14733 (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command'
14734 parameter.
14735 * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters)
14736 (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth)
14737 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
14738 (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame)
14739 (mi_cmd_stack_info_frame): Constify 'command' parameter.
14740 * mi/mi-cmd-target.c (mi_cmd_target_file_get)
14741 (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify
14742 'command' parameter.
14743 * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete)
14744 (mi_cmd_var_set_format, mi_cmd_var_set_visualizer)
14745 (mi_cmd_var_set_frozen, mi_cmd_var_show_format)
14746 (mi_cmd_var_info_num_children, mi_cmd_var_list_children)
14747 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
14748 (mi_cmd_var_info_expression, mi_cmd_var_show_attributes)
14749 (mi_cmd_var_evaluate_expression, mi_cmd_var_assign)
14750 (mi_cmd_var_update, mi_cmd_enable_pretty_printing)
14751 (mi_cmd_var_set_update_range): Constify 'command' parameter.
14752 * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter.
14753 * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command'
14754 parameter.
14755 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next)
14756 (mi_cmd_exec_next_instruction, mi_cmd_exec_step)
14757 (mi_cmd_exec_step_instruction, mi_cmd_exec_finish)
14758 (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue)
14759 (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach)
14760 (mi_cmd_target_flash_erase, mi_cmd_thread_select)
14761 (mi_cmd_thread_list_ids, mi_cmd_thread_info)
14762 (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names)
14763 (mi_cmd_data_list_changed_registers)
14764 (mi_cmd_data_write_register_values)
14765 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
14766 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory)
14767 (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings)
14768 (mi_cmd_list_features, mi_cmd_list_target_features)
14769 (mi_cmd_add_inferior, mi_cmd_remove_inferior)
14770 (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables)
14771 (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start)
14772 (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info)
14773 (mi_cmd_trace_frame_collected): Constify 'command'
14774 parameter.
14775 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify
14776 'command' parameter.
14777
14778 2017-04-05 Pedro Alves <palves@redhat.com>
14779
14780 * ada-lang.c (ada_completer_word_break_characters): Now a const
14781 array.
14782 (ada_get_gdb_completer_word_break_characters): Constify.
14783 * completer.c (gdb_completer_command_word_break_characters)
14784 (gdb_completer_file_name_break_characters)
14785 (gdb_completer_quote_characters): Now const arrays.
14786 (get_gdb_completer_quote_characters): Constify.
14787 (set_rl_completer_word_break_characters): New function.
14788 (set_gdb_completion_word_break_characters)
14789 (complete_line_internal): Use it.
14790 * completer.h (get_gdb_completer_quote_characters): Constify.
14791 (set_rl_completer_word_break_characters): Declare.
14792 * f-lang.c (f_word_break_characters): Constify.
14793 * language.c (default_word_break_characters): Constify.
14794 * language.h (language_defn::la_word_break_characters): Constify.
14795 (default_word_break_characters): Constify.
14796 * top.c (init_main): Use set_rl_completer_word_break_characters.
14797
14798 2017-04-05 Pedro Alves <palves@redhat.com>
14799
14800 * aix-thread.c (aix_thread_pid_to_str)
14801 (aix_thread_extra_thread_info): Constify.
14802 * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
14803 * bsd-uthread.c (bsd_uthread_extra_thread_info)
14804 (bsd_uthread_pid_to_str): Constify.
14805 * corelow.c (core_pid_to_str): Constify.
14806 * darwin-nat.c (darwin_pid_to_str): Constify.
14807 * fbsd-nat.c (fbsd_pid_to_str): Constify.
14808 * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
14809 Constify.
14810 * gnu-nat.c (gnu_pid_to_str): Constify.
14811 * go32-nat.c (go32_pid_to_str): Constify.
14812 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
14813 * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
14814 * inferior.c (inferior_pid_to_str): Constify.
14815 * linux-nat.c (linux_nat_pid_to_str): Constify.
14816 * linux-tdep.c (linux_core_pid_to_str): Constify.
14817 * linux-thread-db.c (thread_db_pid_to_str)
14818 (thread_db_extra_thread_info): Constify.
14819 * nto-tdep.c (nto_extra_thread_info): Constify.
14820 * nto-tdep.h (nto_extra_thread_info): Constify.
14821 * obsd-nat.c (obsd_pid_to_str): Constify.
14822 * procfs.c (procfs_pid_to_str): Constify.
14823 * ravenscar-thread.c (ravenscar_extra_thread_info)
14824 (ravenscar_pid_to_str): Constify.
14825 * remote-sim.c (gdbsim_pid_to_str): Constify.
14826 * remote.c (remote_threads_extra_info, remote_pid_to_str):
14827 Constify.
14828 * sol-thread.c (solaris_pid_to_str): Constify.
14829 * sol2-tdep.c (sol2_core_pid_to_str): Constify.
14830 * sol2-tdep.h (sol2_core_pid_to_str): Constify.
14831 * target.c (default_pid_to_str, target_pid_to_str)
14832 (normal_pid_to_str, default_pid_to_str): Constify.
14833 * target.h (target_ops::to_pid_to_str)
14834 (target_ops::to_extra_thread_info): Constify.
14835 (target_pid_to_str, normal_pid_to_str): Constify.
14836 * windows-nat.c (windows_pid_to_str): Constify.
14837 * gdbarch.sh (core_pid_to_str): Constify.
14838 * target-delegates.c: Regenerate.
14839 * gdbarch.h, gdbarch.c: Regenerate.
14840
14841 2017-04-05 Pedro Alves <palves@redhat.com>
14842
14843 * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
14844 the memory of the temporary warning_pre_print override.
14845 * utils.c (warning_pre_print): Constify.
14846 * utils.h (warning_pre_print): Constify.
14847
14848 2017-04-05 Pedro Alves <palves@redhat.com>
14849
14850 * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
14851 (shell_command): New function.
14852 (make_command): Use std::string.
14853 (init_cli_cmds): Register shell_command instead of shell_escape.
14854
14855 2017-04-05 Pedro Alves <palves@redhat.com>
14856
14857 * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
14858 * tracepoint.c (default_collect): Don't initialize.
14859
14860 2017-04-05 Pedro Alves <palves@redhat.com>
14861
14862 * macroexp.c (macro_buffer::shared): Now a bool.
14863 (init_buffer): Update.
14864 (init_shared_buffer): Constify 'addr' parameter.
14865 (substitute_args, expand, macro_expand, macro_expand_next): Remove
14866 casts.
14867
14868 2017-04-05 Pedro Alves <palves@redhat.com>
14869
14870 * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
14871 * disasm.c (set_disassembler_options): Constify local.
14872 * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
14873
14874 2017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
14875
14876 PR gdb/21352
14877 * tracefile.c (tsave_command): Fix argument parsing for '-r'
14878 option.
14879
14880 2017-04-05 Yao Qi <yao.qi@linaro.org>
14881
14882 * frame.c (frame_unwind_register_unsigned): Call
14883 frame_unwind_register_value.
14884
14885 2017-04-05 Yao Qi <yao.qi@linaro.org>
14886
14887 * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
14888 Use gdb_test_multiple, and don't match anchor.
14889
14890 2017-04-05 Pedro Alves <palves@redhat.com>
14891
14892 * MAINTAINERS (Global Maintainers): Add Simon Marchi.
14893 (Write After Approval): Remove Simon Marchi.
14894
14895 2017-04-05 Pedro Alves <palves@redhat.com>
14896
14897 * common/gdb_optional.h (optional::optional): Make constexpr and
14898 initialize m_dummy.
14899
14900 2017-04-04 John Baldwin <jhb@FreeBSD.org>
14901
14902 * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
14903 (amd64fbsd_jmp_buf_reg_offset): Remove.
14904 (amd64fbsd_supply_uthread): Remove function.
14905 (amd64fbsd_collect_uthread): Remove function.
14906 (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
14907 * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
14908 (x86_64-*-freebsd*): Remove bsd-uthread.o.
14909 (fbsd-nat.c): Update comment.
14910 * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
14911 (i386fbsd_jmp_buf_reg_offset): Remove.
14912 (i386fbsd_supply_uthread): Remove function.
14913 (i386fbsd_collect_uthread): Remove function.
14914 (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
14915
14916 2017-04-04 John Baldwin <jhb@FreeBSD.org>
14917
14918 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
14919 (ALLDEPFILES): Remove alpha-fbsd-tdep.c
14920 * NEWS: Mention that support for FreeBSD/alpha was removed.
14921 * alpha-fbsd-tdep.c: Delete file.
14922 * config/alpha/fbsd.mh: Delete file.
14923 * configure.host: Delete alpha*-*-freebsd* and
14924 alpha*-*-kfreebsd*-gnu.
14925 * configure.tgt: Delete alpha*-*-freebsd* and
14926 alpha*-*-kfreebsd*-gnu.
14927
14928 2017-04-04 John Baldwin <jhb@FreeBSD.org>
14929
14930 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
14931 amd64bsd_store_inferior_registers): Use ptid from regcache.
14932
14933 2017-04-04 Pedro Alves <palves@redhat.com>
14934
14935 * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
14936 data fields, make them private and add "m_" prefixes.
14937 (lnp_state_machine::lnp_state_machine): New ctor.
14938 (record_line, check_line_address, handle_set_discriminator)
14939 (handle_set_address, handle_advance_pc, handle_special_opcode)
14940 (handle_advance_line, handle_set_file, handle_negate_stmt)
14941 (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
14942 (end_sequence, advance_line): New methods.
14943 (m_gdbarch, m_record_lines_p): New fields.
14944 (lnp_reader_state): Delete.
14945 (dwarf_record_line): Rename to ...
14946 (lnp_state_machine::record_line): ... adjust.
14947 (init_lnp_state_machine): Delete.
14948 (lnp_state_machine::lnp_state_machine): New.
14949 (check_line_address): Rename to ...
14950 (lnp_state_machine::check_line_address): This.
14951 (dwarf_decode_lines_1): Remove reference to "reader_state".
14952 Adjust lnp_state_machine having a non-default ctor. Use bool.
14953 State machine internal state manipulation moved to
14954 lnp_state_machine methods.
14955
14956 2017-04-04 Pedro Alves <palves@redhat.com>
14957
14958 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14959 unittests/offset-type-selftests.c.
14960 (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
14961 * common/offset-type.h: New file.
14962 * common/preprocessor.h: New file.
14963 * common/traits.h: New file.
14964 * common/valid-expr.h: New file.
14965 * dwarf2expr.c: Include "common/underlying.h". Adjust to use
14966 sect_offset and cu_offset strong typedefs throughout.
14967 * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
14968 typedefs throughout.
14969 * dwarf2loc.c: Include "common/underlying.h". Adjust to use
14970 sect_offset and cu_offset strong typedefs throughout.
14971 * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
14972 typedefs throughout.
14973 * gdbtypes.h: Include "common/offset-type.h".
14974 (cu_offset): Now an offset type (strong typedef) instead of a
14975 struct.
14976 (sect_offset): Likewise.
14977 (union call_site_parameter_u): Rename "param_offset" field to
14978 "param_cu_off".
14979 * unittests/offset-type-selftests.c: New file.
14980
14981 2017-04-04 Pedro Alves <palves@redhat.com>
14982
14983 * common/underlying.h: New file.
14984 * dwarf2read.c: Include "common/gdb_optional.h" and
14985 "common/underlying.h".
14986 (dir_index, file_name_index): New types.
14987 (file_entry): Use them.
14988 (file_entry::include): Use to_underlying.
14989 (line_header::add_file_name): Use dir_index.
14990 (read_formatted_entries): Use gdb::optional. Read form before
14991 writting to file_entry.
14992 (dwarf_decode_line_header): Use dir_index.
14993 (lnp_state_machine::current_file): Use to_underlying.
14994 (lnp_state_machine::file): Change type to file_name_index.
14995 (dwarf_record_line): Use to_underlying.
14996 (init_lnp_state_machine): Use file_name_index.
14997 (dwarf_decode_lines_1): Use dir_index and file_name_index.
14998
14999 2017-04-04 Pedro Alves <palves@redhat.com>
15000
15001 * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
15002 operator bool, has_value and get methods.
15003
15004 2017-04-04 Pedro Alves <palves@redhat.com>
15005
15006 * dwarf2read.c (struct file_entry): Add ctors, and initialize all
15007 fields.
15008 (line_header): Initialize all data fields. Change type of
15009 standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
15010 Change type of include_dirs to std::vector<const char *>. Remove
15011 num_include_dirs, include_dirs_size. Change type of file_names to
15012 std::vector<file_entry>. Remove num_file_names, file_names_size.
15013 (line_header::line_header): New.
15014 (line_header::add_include_dir, line_header::add_file_name): New
15015 methods.
15016 (line_header::include_dir_at): Remove NULL check.
15017 (line_header::file_name_at): Add const overload.
15018 (line_header_up): New unique_ptr typedef.
15019 (dw2_get_file_names_reader): Use line_header_up. Adjust to use
15020 std::vector. Remove free_line_header call.
15021 (dwarf2_build_include_psymtabs): Use line_header_up. Remove
15022 free_line_header call.
15023 (free_cu_line_header): Delete.
15024 (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
15025 (setup_type_unit_groups): Use line_header_up instead of cleanups.
15026 Adjust to use std::vector.
15027 (free_line_header): Delete.
15028 (free_line_header_voidp): Use delete.
15029 (add_include_dir): Replace with ...
15030 (line_header::add_include_dir): ... this method. Use std::vector.
15031 (add_file_name): Replace with ...
15032 (line_header::add_file_name): ... this method. Use std::vector.
15033 (add_include_dir_stub): Delete.
15034 (read_formatted_entries): Remove memset.
15035 (dwarf_decode_line_header): Return a line_header_up instead of a
15036 raw pointer. Remove cleanup handling. Pass lambdas to
15037 read_formatted_entries. Adjust to use line_header methods.
15038 (dwarf_decode_lines_1): Adjust to use line_header methods.
15039 (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
15040 use std::vector.
15041
15042 2017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
15043
15044 * remote.c (set_general_thread, set_continue_thread): Use ptid_t
15045 instead of struct ptid.
15046
15047 2017-05-04 Alan Hayward <alan.hayward@arm.com>
15048
15049 * frame.c (get_frame_register_bytes): Unwind using value.
15050 (put_frame_register_bytes): Likewise.
15051
15052 2017-03-30 Iain Buclaw <ibuclaw@gdcproject.org>
15053
15054 * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
15055 aggregate-like.
15056
15057 2017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
15058
15059 * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
15060
15061 2017-03-29 Yao Qi <yao.qi@linaro.org>
15062
15063 * gdbthread.h (struct thread_info): Declare constructor and
15064 destructor. Add some in-class member initializers.
15065 * thread.c (free_thread): Remove.
15066 (init_thread_list): Call delete instead of free_thread.
15067 (new_thread): Call thread_info constructor.
15068 (thread_info::thread_info): New function.
15069 (thread_info::~thread_info): New function.
15070 (delete_thread_1): Call delete instead of free_thread.
15071 (make_cleanup_restore_current_thread): Move tp and frame to
15072 inner block.
15073
15074 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
15075
15076 * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
15077 (arc_skip_prologue): Likewise.
15078 (arc_make_frame_cache): Likewise.
15079 (arc_pv_get_operand): New function.
15080 (arc_is_in_prologue): Likewise.
15081 (arc_analyze_prologue): Likewise.
15082 (arc_print_frame_cache): Likewise.
15083 (MAX_PROLOGUE_LENGTH): New constant.
15084
15085 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
15086
15087 * configure.tgt: Add arc-insn.o.
15088 * arc-tdep.c (arc_delayed_print_insn): Make non-static.
15089 (dump_arc_instruction_command): New function.
15090 (arc_fprintf_disasm): Likewise.
15091 (arc_disassemble_info): Likewise.
15092 (arc_insn_get_operand_value): Likewise.
15093 (arc_insn_get_operand_value_signed): Likewise.
15094 (arc_insn_get_memory_base_reg): Likewise.
15095 (arc_insn_get_memory_offset): Likewise.
15096 (arc_insn_get_branch_target): Likewise.
15097 (arc_insn_dump): Likewise.
15098 (arc_insn_get_linear_next_pc): Likewise.
15099 * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
15100 (arc_disassemble_info): Likewise.
15101 (arc_insn_get_branch_target): Likewise.
15102 (arc_insn_get_linear_next_pc): Likewise.
15103 * NEWS: Mention new "maint print arc arc-instruction".
15104
15105 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
15106
15107 * arc-tdep (maintenance_print_arc_list): New variable.
15108 (maintenance_print_arc_command): New function.
15109
15110 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
15111
15112 * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
15113 Add "limm" and "reserved".
15114 (arc_cannot_fetch_register, arc_cannot_store_register): Add
15115 ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
15116 * arc-tdep.h (arc_regnum): Likewise.
15117
15118 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
15119
15120 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
15121 for THREADPTR register.
15122 (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
15123 register.
15124 * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
15125 (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
15126 * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
15127
15128 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
15129
15130 * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
15131 registers above gdbarch_num_regs (gdbarch) as privileged in
15132 call0 ABI.
15133
15134 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
15135
15136 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
15137 for a single specified register or for all registers in
15138 a0_base..a0_base + C0_NREGS range.
15139 (supply_gregset_reg): Call regcache_raw_supply for a single
15140 specified register or for all registers in a0_base..a0_base +
15141 C0_NREGS range.
15142
15143 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
15144
15145 * arch/xtensa.h (C0_NREGS): Add definition.
15146 * xtensa-tdep.c (C0_NREGS): Remove definition.
15147
15148 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
15149
15150 * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
15151 Drop xtensa_default_isa initialization.
15152 (xtensa_gdbarch_init): Initialize xtensa_default_isa.
15153
15154 2017-03-27 Pedro Alves <palves@redhat.com>
15155
15156 * dwarf2read.c (file_entry) <dir_index>: Add comment.
15157 (file_entry::include_dir): New method.
15158 (line_header::include_dir_at, line_header::file_name_at): New
15159 methods.
15160 (setup_type_unit_groups, setup_type_unit_groups)
15161 (psymtab_include_file_name): Simplify using the new methods.
15162 (lnp_state_machine) <the_line_header>: New field.
15163 <file>: Add comment.
15164 (lnp_state_machine::current_file): New method.
15165 (dwarf_record_line): Simplify using the new methods.
15166 (init_lnp_state_machine): Initialize the "the_line_header" field.
15167 (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
15168 Simplify using the new methods.
15169
15170 2017-03-27 Pedro Alves <palves@redhat.com>
15171
15172 * cp-name-parser.y (make_empty): Delete.
15173 (demangler_special, nested_name, ptr_operator, array_indicator)
15174 (direct_declarator, declarator_1): Use fill_comp instead of
15175 make_empty.
15176
15177 2017-03-27 Pedro Alves <palves@redhat.com>
15178
15179 * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
15180 to ATTRIBUTE_PRINTF.
15181 * solib-target.c (library_list_start_list): Print "string" not
15182 "version".
15183 * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
15184 gdb_xml_error call.
15185
15186 2017-03-27 Pedro Alves <palves@redhat.com>
15187
15188 * dwarf2read.c (struct file_and_directory): New.
15189 (dwarf2_get_dwz_file): Adjust to use std::string.
15190 (dw2_get_file_names_reader): Adjust to use file_and_directory.
15191 (find_file_and_directory): Adjust to return a file_and_directory
15192 object.
15193 (read_file_scope): Adjust to use file_and_directory. Remove
15194 make_cleanup/do_cleanups calls.
15195 (open_and_init_dwp_file): Adjust to use std::string. Remove
15196 make_cleanup/do_cleanups calls.
15197 * python/python.c (do_start_initialization): Adjust to ldirname
15198 returning a std::string.
15199 * utils.c (ldirname): Now returns a std::string.
15200 * utils.h (ldirname): Change return type to std::string.
15201 * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
15202 returning a std::string.
15203 * xml-tdesc.c (file_read_description_xml): Likewise.
15204
15205 2017-03-24 Alan Hayward <alan.hayward@arm.com>
15206
15207 * regcache.c (regcache_debug_print_register): New function.
15208 * regcache.h (regcache_debug_print_register): New declaration.
15209 * target.c (debug_print_register): Remove.
15210 (target_fetch_registers): Call regcache_debug_print_register.
15211 (target_store_registers): Likewise.
15212
15213 2017-03-24 Pádraig Brady <pbrady@fb.com>
15214
15215 * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
15216 reference beyond the 'lh->include_dirs' array before accessing to
15217 it.
15218 (psymtab_include_file_name): Likewise.
15219 (dwarf_decode_lines_1): Likewise.
15220 (dwarf_decode_lines): Likewise.
15221 (file_file_name): Likewise.
15222
15223 2017-03-23 Simon Marchi <simon.marchi@ericsson.com>
15224
15225 * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
15226 inferior_ptid.
15227 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
15228 ps_lsetfpregs): Likewise.
15229 * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
15230 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
15231 ps_lsetfpregs): Likewise.
15232 * target.c (target_fetch_registers, target_store_registers):
15233 Remove asserts.
15234
15235 2017-03-23 Alan Hayward <alan.hayward@arm.com>
15236
15237 * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
15238
15239 2017-03-23 Yao Qi <yao.qi@linaro.org>
15240
15241 * aarch64-tdep.c (aarch64_process_record_test): Declare.
15242 (_initialize_aarch64_tdep): Register it.
15243 (aarch64_record_load_store): Handle PRFM instruction.
15244 (aarch64_process_record_test): New function.
15245
15246 2017-03-23 Yao Qi <yao.qi@linaro.org>
15247
15248 * aarch64-tdep.c (aarch64_record_load_store): Fix code
15249 indentation.
15250
15251 2017-03-23 Yao Qi <yao.qi@linaro.org>
15252
15253 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
15254
15255 2017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
15256
15257 python/python.c (do_start_initialization): Fix memory leak.
15258
15259 2017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
15260
15261 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
15262 using get_ptrace_pid.
15263 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
15264 inferior_ptid.
15265 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
15266 inferior_ptid instead of pid.
15267
15268 2017-03-22 Yao Qi <yao.qi@linaro.org>
15269
15270 * aarch64-tdep.c: Wrap locally used classes in anonymous
15271 namespace.
15272 * arm-tdep.c: Likewise.
15273 * linespec.c: Likewise.
15274 * ui-out.c: Likewise.
15275
15276 2017-03-22 Jonah Graham <jonah@kichwacoders.com>
15277
15278 PR gdb/19637
15279 * python/lib/gdb/printer/bound_registers.py: Import sys.
15280
15281 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
15282
15283 * windows-nat.c (do_windows_fetch_inferior_registers): Add
15284 windows_thread_info parameter and use it instead of
15285 current_thread.
15286 (windows_fetch_inferior_registers): Don't set current_thread,
15287 pass the thread to do_windows_fetch_inferior_registers. Use
15288 ptid from regcache instead of inferior_ptid.
15289 (do_windows_store_inferior_registers): Add windows_thread_info
15290 parameter and use it instead of current_thread.
15291 (windows_store_inferior_registers): Don't set current_thread,
15292 pass the thread to do_windows_store_inferior_registers. Use
15293 ptid from regcache instead of inferior_ptid.
15294
15295 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
15296
15297 * ser-mingw.c (ser_windows_raw): Remove reference to
15298 struct serial::current_timeout.
15299
15300 2017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
15301
15302 PR tdep/20928
15303 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
15304 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
15305 (sparc64_fsr_type): Fix %fsr decoding.
15306
15307 2017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
15308
15309 * python/py-record-btrace.c (btpy_insn_data): Change return type
15310 for Python 2.
15311
15312 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
15313
15314 * spu-linux-nat.c (spu_fetch_inferior_registers,
15315 spu_store_inferior_registers): Use ptid from regcache, set and
15316 restore inferior_ptid.
15317 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
15318 Likewise.
15319
15320 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
15321
15322 * i386-linux-nat.c (fetch_register, store_register,
15323 i386_linux_fetch_inferior_registers,
15324 i386_linux_store_inferior_registers): Use ptid from regcache.
15325 * ia64-linux-nat.c (ia64_linux_fetch_register,
15326 ia64_linux_store_register): Likewise.
15327 * inf-ptrace.c (inf_ptrace_fetch_register,
15328 inf_ptrace_store_register): Likewise.
15329 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
15330 m32r_linux_store_inferior_registers): Likewise.
15331 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
15332 m68kbsd_store_inferior_registers): Likewise.
15333 * m68k-linux-nat.c (fetch_register, store_register,
15334 m68k_linux_fetch_inferior_registers,
15335 m68k_linux_store_inferior_registers): Likewise.
15336 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
15337 m88kbsd_store_inferior_registers): Likewise.
15338 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
15339 mips_fbsd_store_inferior_registers): Likewise.
15340 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
15341 mips64_linux_regsets_store_registers): Likewise.
15342 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
15343 mipsnbsd_store_inferior_registers): Likewise.
15344 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
15345 mips64obsd_store_inferior_registers): Likewise.
15346 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
15347 Likewise.
15348 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
15349 ppcfbsd_store_inferior_registers): Likewise.
15350 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
15351 ppc_linux_store_inferior_registers): Likewise.
15352 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
15353 ppcnbsd_store_inferior_registers): Likewise.
15354 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
15355 ppcobsd_store_registers): Likewise.
15356 * procfs.c (procfs_fetch_registers, procfs_store_registers):
15357 Likewise.
15358 * ravenscar-thread.c (ravenscar_fetch_registers,
15359 ravenscar_store_registers, ravenscar_prepare_to_store):
15360 Likewise.
15361 * record-btrace.c (record_btrace_fetch_registers,
15362 record_btrace_store_registers, record_btrace_prepare_to_store):
15363 Likewise.
15364 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
15365 Lookup inferior using ptid from regcache, instead of
15366 current_inferior.
15367 * remote.c (remote_fetch_registers, remote_store_registers): Use
15368 ptid from regcache.
15369 * rs6000-nat.c (fetch_register, store_register): Likewise.
15370 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
15371 s390_linux_store_inferior_registers): Likewise.
15372 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
15373 shnbsd_store_inferior_registers): Likewise.
15374 * sol-thread.c (sol_thread_fetch_registers,
15375 sol_thread_store_registers): Likewise.
15376 * sparc-nat.c (sparc_fetch_inferior_registers,
15377 sparc_store_inferior_registers): Likewise.
15378 * tilegx-linux-nat.c (fetch_inferior_registers,
15379 store_inferior_registers): Likewise.
15380 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
15381 vaxbsd_store_inferior_registers): Likewise.
15382 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
15383 store_xtregs): Likewise.
15384
15385 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15386
15387 PR gdb/14441
15388 * NEWS: Mention support for rvalue references in GDB and python.
15389 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
15390 supports both lvalue and rvalue references.
15391
15392 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15393
15394 PR gdb/14441
15395 * gdbtypes.c (rank_one_type): Implement overloading
15396 resolution rules regarding rvalue references.
15397
15398 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15399
15400 PR gdb/14441
15401 * aarch64-tdep.c (aarch64_type_align)
15402 (aarch64_extract_return_value, aarch64_store_return_value): Change
15403 lvalue reference type checks to general reference type checks.
15404 * amd64-tdep.c (amd64_classify): Likewise.
15405 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
15406 Likewise.
15407 * arm-tdep.c (arm_type_align, arm_extract_return_value)
15408 (arm_store_return_value): Likewise.
15409 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
15410 * c-typeprint.c (c_print_type): Likewise.
15411 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
15412 (cplus_number_of_children, cplus_describe_child): Likewise.
15413 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
15414 * completer.c (expression_completer): Likewise.
15415 * cp-support.c (make_symbol_overload_list_adl_namespace):
15416 Likewise.
15417 * darwin-nat-info.c (info_mach_region_command): Likewise.
15418 * dwarf2loc.c (entry_data_value_coerce_ref)
15419 (value_of_dwarf_reg_entry): Likewise.
15420 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
15421 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
15422 Likewise.
15423 * findvar.c (extract_typed_address, store_typed_address):
15424 Likewise.
15425 * gdbtypes.c (rank_one_type): Likewise.
15426 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
15427 * infcall.c (value_arg_coerce): Likewise.
15428 * language.c (pointer_type): Likewise.
15429 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
15430 Likewise.
15431 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
15432 * mn10300-tdep.c (mn10300_type_align): Likewise.
15433 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
15434 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
15435 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
15436 Likewise.
15437 * printcmd.c (print_formatted, x_command): Likewise.
15438 * python/py-type.c (typy_get_composite, typy_template_argument):
15439 Likewise.
15440 * python/py-value.c (valpy_referenced_value)
15441 (valpy_get_dynamic_type, value_has_field): Likewise.
15442 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
15443 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
15444 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
15445 * spu-tdep.c (spu_scalar_value_p): Likewise.
15446 * symtab.c (lookup_symbol_aux): Likewise.
15447 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
15448 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
15449 Likewise.
15450 * valops.c (value_cast_pointers, value_cast)
15451 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
15452 (value_struct_elt, value_struct_elt_bitpos)
15453 (value_find_oload_method_list, find_overload_match)
15454 (value_rtti_indirect_type): Likewise.
15455 * valprint.c (val_print_scalar_type_p, generic_val_print):
15456 Likewise.
15457 * value.c (value_actual_type, value_as_address, unpack_long)
15458 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
15459 (coerce_ref): Likewise.
15460 * varobj.c (varobj_get_value_type): Likewise.
15461
15462 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15463
15464 PR gdb/14441
15465 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
15466 table of constants.
15467 * python/lib/gdb/command/explore.py: Support exploring values
15468 of rvalue reference types.
15469 * python/lib/gdb/types.py: Implement get_basic_type() for
15470 rvalue reference types.
15471 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
15472 constant.
15473 * python/py-value.c (valpy_getitem): Add an rvalue reference
15474 check.
15475 (valpy_reference_value): Add new parameter "refcode".
15476 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
15477 New wrappers for valpy_reference_value().
15478 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
15479 (gdbpy_invoke_xmethod): Likewise.
15480
15481 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15482
15483 PR gdb/14441
15484 * dwarf2read.c (process_die, read_type_die_1): Handle the
15485 DW_TAG_rvalue_reference_type DIE.
15486 (read_tag_reference_type): Add new parameter "refcode".
15487
15488 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15489
15490 PR gdb/14441
15491 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
15492 (c_type_print_modifier, c_type_print_varspec_suffix)
15493 (c_type_print_base): Support printing rvalue reference types.
15494 * c-valprint.c (c_val_print, c_value_print): Support printing
15495 rvalue reference values.
15496
15497 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15498
15499 PR gdb/14441
15500 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
15501 typename.
15502 * cp-support.c (replace_typedefs): Handle
15503 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
15504 * python/py-type.c (typy_lookup_type): Likewise.
15505
15506 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15507
15508 PR gdb/14441
15509 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
15510 * parse.c (insert_type): Change assert statement.
15511 (follow_types): Handle rvalue reference types.
15512 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
15513 constant.
15514
15515 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15516
15517 PR gdb/14441
15518 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
15519 value_ref() interface.
15520 * c-valprint.c (c_value_print): Likewise.
15521 * infcall.c (value_arg_coerce): Likewise.
15522 * python/py-value.c (valpy_reference_value): Likewise.
15523 * valops.c (value_cast, value_reinterpret_cast)
15524 (value_dynamic_cast, typecmp): Likewise.
15525 (value_ref): Parameterize by kind of return value reference type.
15526 * value.h (value_ref): Add new parameter "refcode".
15527
15528 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15529
15530 PR gdb/14441
15531 * dwarf2read.c (read_tag_reference_type): Use
15532 lookup_lvalue_reference_type() instead of lookup_reference_type().
15533 * eval.c (evaluate_subexp_standard): Likewise.
15534 * f-exp.y: Likewise.
15535 * gdbtypes.c (make_reference_type, lookup_reference_type):
15536 Generalize with rvalue reference types.
15537 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
15538 convenience wrappers for lookup_reference_type().
15539 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
15540 reference kind parameter.
15541 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
15542 wrappers for lookup_reference_type().
15543 * guile/scm-type.c (gdbscm_type_reference): Use
15544 lookup_lvalue_reference_type() instead of lookup_reference_type().
15545 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
15546 * parse.c (follow_types): Likewise.
15547 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
15548 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
15549 Likewise.
15550 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
15551 (gdbpy_invoke_xmethod): Likewise.
15552 * stabsread.c: Provide extra argument to make_reference_type()
15553 call.
15554 * valops.c (value_ref, value_rtti_indirect_type): Use
15555 lookup_lvalue_reference_type() instead of lookup_reference_type().
15556
15557 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15558
15559 PR gdb/14441
15560 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
15561 (TYPE_IS_REFERENCE): New macro.
15562 (struct type): Add rvalue_reference_type field.
15563 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
15564
15565 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
15566
15567 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
15568 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
15569 New function definition.
15570 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
15571 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
15572 New function declaration.
15573 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
15574 * mi/mi-interp.h: New file.
15575 * solib.c (info_sharedlibrary_command): Replace for loop with
15576 ALL_SO_LIBS macro
15577 * solib.h (update_solib_list): New function declaration.
15578 (so_list_head): Move macro.
15579 * solist.h (ALL_SO_LIBS): New macro.
15580
15581 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
15582
15583 * infcmd.c (post_create_inferior): Remove unused argument in
15584 call to solib_add.
15585 * remote.c (remote_start_remote): Likewise.
15586 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
15587 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
15588 (enable_break): Likewise.
15589 * solib.c (update_solib_list): Remove unused target argument
15590 and its documentation.
15591 (solib_add): Remove unused target argument. Remove unused
15592 argument in call to update_solib_list.
15593 (info_sharedlibrary_command): Remove unused argument in call
15594 to update_solib_list.
15595 (sharedlibrary_command): Remove unused argument in call to
15596 solib_add.
15597 (handle_solib_event): Likewise.
15598 (reload_shared_libraries): Likewise.
15599 * solib.h (solib_add): Remove unused target argument.
15600
15601 2017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
15602
15603 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
15604 (s390_displaced_step_fixup): Cover relative branches with the
15605 default fixup handling. This fixes lack of support for some
15606 relative branch instructions.
15607
15608 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15609
15610 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
15611 ptid from regcache.
15612
15613 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15614
15615 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
15616 i386_darwin_store_inferior_registers): Use ptid from regcache.
15617
15618 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15619
15620 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
15621 i386bsd_store_inferior_registers): Use ptid from regcache.
15622
15623 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15624
15625 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
15626 hppaobsd_store_registers): Use ptid from regcache.
15627
15628 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15629
15630 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
15631 hppanbsd_store_registers): Use ptid from regcache.
15632
15633 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15634
15635 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
15636 from regcache. Use get_ptrace_pid.
15637
15638 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15639
15640 * corelow.c (get_core_register_section): Use ptid from regcache,
15641 update doc.
15642
15643 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15644
15645 * bsd-uthread.c (bsd_uthread_fetch_registers,
15646 bsd_uthread_store_registers): Use ptid from regcache, set and
15647 restore inferior_ptid.
15648
15649 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15650
15651 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
15652 fetch_fp_regs, store_register, store_regs, store_fp_register,
15653 store_fp_regs): Use ptid from regcache.
15654
15655 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15656
15657 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
15658 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
15659 store_vfp_regs): Use ptid from regcache.
15660
15661 2017-03-17 Pedro Alves <palves@redhat.com>
15662
15663 PR remote/21188
15664 * ser-base.c (ser_base_wait_for): Add comment.
15665 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
15666 version.
15667 * ser-unix.c (hardwire_raw): Remove reference to
15668 scb->current_timeout.
15669 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
15670 (hardwire_ops): Install ser_base_readchar instead of
15671 hardwire_readchar.
15672 * serial.h (struct serial) <current_timeout, timeout_remaining>:
15673 Remove fields.
15674
15675 2017-03-17 Jonah Graham <jonah@kichwacoders.com>
15676
15677 PR gdb/19637
15678 * python/lib/gdb/printer/bound_registers.py: Add support for
15679 Python 3.
15680
15681 2017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
15682
15683 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
15684 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
15685 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
15686 byte_offset to subobj_byte_offset. Fix the handling of
15687 DWARF_VALUE_STACK on big-endian targets when coming via an
15688 implicit pointer.
15689 (dwarf2_evaluate_loc_desc): Adjust call to
15690 dwarf2_evaluate_loc_desc_full.
15691 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
15692 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
15693
15694 2017-03-16 Yao Qi <yao.qi@linaro.org>
15695
15696 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
15697 and REVSH instructions.
15698
15699 2017-03-16 Yao Qi <yao.qi@linaro.org>
15700
15701 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
15702 (arm_record_test): Declare.
15703 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
15704 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
15705 align with the manual.
15706 (thumb_record_misc): Adjust the code order to align with the
15707 manual.
15708 (thumb2_record_decode_insn_handler): Fix instruction matching.
15709 (instruction_reader_thumb): New class.
15710 (arm_record_test): New function.
15711
15712 2017-03-16 Yao Qi <yao.qi@linaro.org>
15713
15714 * arm-tdep.c (abstract_memory_reader): New class.
15715 (instruction_reader): New class.
15716 (extract_arm_insn): Add argument 'reader'. Callers updated.
15717 (decode_insn): Likewise.
15718
15719 2017-03-16 Doug Evans <dje@google.com>
15720
15721 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
15722 member. Change type of TYPE member to SCM. All uses updated.
15723 (lsscm_make_lazy_string_smob): Add assert.
15724 (lsscm_make_lazy_string): Flag bad length values.
15725 (lsscm_elt_type): New function.
15726 (gdbscm_lazy_string_to_value): Rewrite to use
15727 lsscm_safe_lazy_string_to_value.
15728 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
15729 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
15730 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
15731 in incoming type.
15732 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
15733 * guile/scm-type.c (tyscm_scm_to_type): New function.
15734
15735 2017-03-15 Doug Evans <dje@google.com>
15736
15737 PR python/17728, python/18439, python/18779
15738 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
15739 member. Change type of TYPE member to PyObject *. All uses updated.
15740 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
15741 (gdbpy_create_lazy_string_object): Flag bad length values.
15742 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
15743 Handle typedefs in incoming type.
15744 (stpy_lazy_string_elt_type): New function.
15745 (gdbpy_extract_lazy_string): Call it.
15746 * python/py-value.c (valpy_lazy_string): Flag bad length values.
15747 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
15748 typedefs in incoming type.
15749
15750 2017-03-16 Doug Evans <dje@google.com>
15751
15752 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
15753 * guile/scm-type.c (tyscm_scm_to_type): New function.
15754
15755 2017-03-16 Jiong Wang <jiong.wang@arm.com>
15756
15757 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
15758 "ULONGEST" for "skip".
15759
15760 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
15761
15762 PR gdb/21220
15763 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
15764 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
15765 (inf_ptrace_peek_poke): ...here. New function. Now also loop
15766 over ptrace peek/poke until end of buffer or error.
15767
15768 2017-03-14 Simon Marchi <simon.marchi@ericsson.com>
15769
15770 * parse.c (length_of_subexp): Make static.
15771 * parser-defs.h (length_of_subexp): Remove.
15772
15773 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
15774
15775 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
15776 as well.
15777
15778 2017-03-14 Pedro Alves <palves@redhat.com>
15779
15780 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
15781 (main): Use std::unique_ptr. Remove calls to
15782 cp_demangled_name_parse_free.
15783
15784 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15785
15786 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
15787 alphabsd_store_inferior_registers): Use regcache->ptid instead
15788 of inferior_ptid.
15789
15790 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15791
15792 * aix-thread.c (aix_thread_fetch_registers,
15793 aix_thread_store_registers): Use regcache->ptid instead of
15794 inferior_ptid.
15795
15796 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15797
15798 * aarch64-linux-nat.c (fetch_gregs_from_thread,
15799 store_gregs_to_thread, fetch_fpregs_from_thread,
15800 store_fpregs_to_thread): Use regcache->ptid instead of
15801 inferior_ptid.
15802
15803 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15804
15805 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
15806 amd64_linux_fetch_inferior_registers): Use regcache->ptid
15807 instead of inferior_ptid.
15808
15809 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15810
15811 * target.c (target_fetch_registers, target_store_registers): Add
15812 assert.
15813
15814 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15815
15816 * regcache.h (regcache_get_ptid): New function.
15817 * regcache.c (regcache_get_ptid): New function.
15818
15819 2017-03-13 Mark Wielaard <mark@klomp.org>
15820
15821 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
15822
15823 2017-03-10 Keith Seitz <keiths@redhat.com>
15824
15825 PR c++/8218
15826 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
15827
15828 2017-03-08 Pedro Alves <palves@redhat.com>
15829
15830 PR gdb/18360
15831 * infrun.c (start_step_over, do_target_resume, resume)
15832 (restart_threads): Assert we're not resuming a thread that is
15833 meant to be stopped.
15834 (infrun_thread_stop_requested_callback): Delete.
15835 (infrun_thread_stop_requested): If the thread is internally
15836 stopped, queue a pending stop event and clear the thread's
15837 inline-frame state.
15838 (handle_stop_requested): New function.
15839 (handle_syscall_event, handle_inferior_event_1): Use
15840 handle_stop_requested.
15841 (handle_stop_requested): New function.
15842 (handle_signal_stop): Set the thread's stop_signal here instead of
15843 at caller.
15844 (finish_step_over): Clear step over info unconditionally.
15845 (handle_signal_stop): If the user had interrupted the event
15846 thread, consider the stop a random signal.
15847 (handle_signal_stop) <signal arrived while stepping over
15848 breakpoint>: Don't restart threads here.
15849 (stop_waiting): Don't clear step-over info here.
15850
15851 2017-03-08 Pedro Alves <palves@redhat.com>
15852
15853 PR 21206
15854 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
15855 goes to argument 2, not 1.
15856
15857 2017-03-08 Pedro Alves <palves@redhat.com>
15858
15859 PR cli/21218
15860 * top.c (gdb_readline_wrapper): Avoid passing NULL to
15861 display_gdb_prompt.
15862 (command_line_input): Add comment.
15863
15864 2017-03-08 Pedro Alves <palves@redhat.com>
15865
15866 PR tui/21216
15867 * tui/tui-file.c (tui_file::write): New.
15868 * tui/tui-file.h (tui_file): Override "write".
15869 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
15870 factored out from ...
15871 (tui_puts): ... here.
15872 (tui_putc): Use them.
15873 (tui_write): New function.
15874 * tui/tui-io.h (tui_write): Declare.
15875
15876 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
15877
15878 * Makefile.in (SFILES): Replace "environ.c" with
15879 "common/environ.c".
15880 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
15881 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
15882 to...
15883 * common/environ.c: ... here.
15884 * environ.h: Moved to...
15885 * common/environ.h: ... here.
15886
15887 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
15888
15889 * gdbarch.sh (pstring_ptr): New static function.
15890 (gdbarch_disassembler_options): Use it.
15891 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
15892 not valid_disassembler_option->name.
15893 * gdbarch.c: Regenerate.
15894
15895 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
15896
15897 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
15898
15899 2017-03-07 Pedro Alves <palves@redhat.com>
15900
15901 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
15902
15903 2017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
15904
15905 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
15906 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
15907 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
15908 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
15909
15910 2017-03-06 Simon Marchi <simon.marchi@ericsson.com>
15911
15912 * xtensa-linux-nat.c (fetch_gregs): Remove const.
15913
15914 2017-03-03 Simon Marchi <simon.marchi@ericsson.com>
15915
15916 * remote.c (remote_add_target_side_commands): Use range-based
15917 for loop.
15918
15919 2017-03-03 Yao Qi <yao.qi@linaro.org>
15920
15921 PR gdb/21165
15922 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
15923 value is lazy.
15924 * valprint.c (common_val_print): Likewise.
15925
15926 2017-02-28 Peter Bergner <bergner@vnet.ibm.com>
15927
15928 * NEWS: Mention new set/show disassembler-options commands.
15929 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
15930 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
15931 (prospective_options): New static variable.
15932 (gdb_disassembler::gdb_disassembler): Initialize
15933 m_di.disassembler_options.
15934 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
15935 (get_disassembler_options): New function.
15936 (set_disassembler_options): Likewise.
15937 (set_disassembler_options_sfunc): Likewise.
15938 (show_disassembler_options_sfunc): Likewise.
15939 (disassembler_options_completer): Likewise.
15940 (_initialize_disasm): Likewise.
15941 * disasm.h (get_disassembler_options): New prototype.
15942 (set_disassembler_options): Likewise.
15943 * gdbarch.sh (gdbarch_disassembler_options): New variable.
15944 (gdbarch_verify_disassembler_options): Likewise.
15945 * gdbarch.c: Regenerate.
15946 * gdbarch.h: Likewise.
15947 * arm-tdep.c (num_disassembly_options): Delete.
15948 (set_disassembly_style): Likewise.
15949 (arm_disassembler_options): New static variable.
15950 (set_disassembly_style_sfunc): Convert short style name into long
15951 option name. Call set_disassembler_options.
15952 (show_disassembly_style_sfunc): New function.
15953 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
15954 set_gdbarch_verify_disassembler_options.
15955 (_initialize_arm_tdep): Delete regnames variable and update callers.
15956 (arm_disassembler_options): Initialize.
15957 (disasm_options): New variable.
15958 (num_disassembly_options): Rename from this...
15959 (num_disassembly_styles): ...to this. Compute by scanning through
15960 disasm_options.
15961 (valid_disassembly_styles): Initialize using disasm_options.
15962 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
15963 set_arm_regname_option.
15964 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
15965 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
15966 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
15967 set_gdbarch_verify_disassembler_options.
15968 * s390-tdep.c (s390_disassembler_options): New static variable.
15969 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
15970 set_gdbarch_verify_disassembler_options.
15971
15972 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
15973
15974 * remote.c (remote_add_target_side_condition): Remove "struct"
15975 keyword from range-based for loop.
15976
15977 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
15978
15979 * remote.c (remote_add_target_side_condition): Use range-based
15980 for loop. Update comment.
15981
15982 2017-02-27 Yao Qi <yao.qi@linaro.org>
15983
15984 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
15985
15986 2017-02-26 Alan Hayward <alan.hayward@arm.com>
15987
15988 * regcache.c (regcache_raw_update): New function.
15989 (regcache_raw_read): Move code to regcache_raw_update.
15990 * regcache.h (regcache_raw_update): New declaration.
15991 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
15992
15993 2017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
15994
15995 * dwarf2read.c (create_debug_type_hash_table): Initialize
15996 header.signature and header.type_offset_in_tu.
15997
15998 2017-02-24 Pedro Alves <palves@redhat.com>
15999
16000 * symtab.c (make_file_symbol_completion_list_1): Use
16001 add_symtab_completions.
16002
16003 2017-02-24 Alan Hayward <alan.hayward@arm.com>
16004
16005 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
16006
16007 2017-02-24 Alan Hayward <alan.hayward@arm.com>
16008
16009 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
16010 I386_MAX_REGISTER_SIZE.
16011 (i386_pseudo_register_write): Likewise.
16012 (i386_process_record): Likewise.
16013 * i387-tdep.c (i387_supply_xsave): Likewise.
16014 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
16015 (store_register): Likewise.
16016
16017 2017-02-23 Pedro Alves <palves@redhat.com>
16018
16019 * ada-lang.c: Include "common/function-view.h".
16020 (ada_iterate_over_symbols): Adjust to use function_view as
16021 callback type.
16022 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
16023 (ada_make_symbol_completion_list): Use a lambda.
16024 (ada_exc_search_name_matches): Delete.
16025 (name_matches_regex): New.
16026 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
16027 * compile/compile-c-support.c: Include "common/function-view.h".
16028 (print_one_macro): Change prototype to accept a ui_file pointer.
16029 (write_macro_definitions): Use a lambda.
16030 * dwarf2read.c: Include "common/function-view.h".
16031 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
16032 (dw2_expand_symtabs_matching): Adjust to use function_view as
16033 callback type.
16034 * language.h: Include "common/function-view.h".
16035 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
16036 function_view as callback type.
16037 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
16038 * linespec.c: Include "common/function-view.h".
16039 (collect_info::add_symbol): New method.
16040 (struct symbol_and_data_callback, iterate_inline_only, struct
16041 symbol_matcher_data, iterate_name_matcher): Delete.
16042 (iterate_over_all_matching_symtabs): Adjust to use function_view
16043 as callback type and lambdas.
16044 (iterate_over_file_blocks): Adjust to use function_view as
16045 callback type.
16046 (decode_compound_collector): Now a class with private fields.
16047 (decode_compound_collector::release_symbols): New method.
16048 (collect_one_symbol): Rename to...
16049 (decode_compound_collector::operator()): ... this and adjust.
16050 (lookup_prefix_sym): decode_compound_collector construction bits
16051 move to decode_compound_collector ctor. Pass the
16052 decode_compound_collector object directly as callback. Remove
16053 cleanups and use decode_compound_collector::release_symbols
16054 instead.
16055 (symtab_collector): Now a class with private fields.
16056 (symtab_collector::release_symtabs): New method.
16057 (add_symtabs_to_list): Rename to...
16058 (symtab_collector::operator()): ... this and adjust.
16059 (collect_symtabs_from_filename): symtab_collector construction
16060 bits move to symtab_collector ctor. Pass the symtab_collector
16061 object directly as callback. Remove cleanups and use
16062 symtab_collector::release_symtabs instead.
16063 (collect_symbols): Delete.
16064 (add_matching_symbols_to_info): Use lambdas.
16065 * macrocmd.c (print_macro_callback): Delete.
16066 (info_macro_command): Use a lambda.
16067 (info_macros_command): Pass print_macro_definition as callable
16068 directly.
16069 (print_one_macro): Remove 'ignore' parameter.
16070 (macro_list_command): Adjust.
16071 * macrotab.c (macro_for_each_data::fn): Now a function_view.
16072 (macro_for_each_data::user_data): Delete field.
16073 (foreach_macro): Adjust to call the function_view.
16074 (macro_for_each): Adjust to use function_view as callback type.
16075 (foreach_macro_in_scope): Adjust to call the function_view.
16076 (macro_for_each_in_scope): Adjust to use function_view as callback
16077 type.
16078 * macrotab.h: Include "common/function-view.h".
16079 (macro_callback_fn): Declare a prototype instead of a pointer.
16080 Remove "user_data" parameter.
16081 (macro_for_each, macro_for_each_in_scope): Adjust to use
16082 function_view as callback type.
16083 * psymtab.c (partial_map_expand_apply)
16084 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
16085 Adjust to use function_view as callback type and to return bool.
16086 (psym_expand_symtabs_matching): Adjust to use function_view as
16087 callback types.
16088 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
16089 to use function_view as callback type and to return bool.
16090 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
16091 callback types.
16092 * symfile.c (expand_symtabs_matching): Adjust to use function_view
16093 as callback types.
16094 * symfile.h: Include "common/function-view.h".
16095 (expand_symtabs_file_matcher_ftype)
16096 (expand_symtabs_symbol_matcher_ftype)
16097 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
16098 return bool.
16099 (quick_symbol_functions::map_symtabs_matching_filename)
16100 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
16101 function_view as callback type and return bool.
16102 (expand_symtabs_matching): Adjust to use function_view as callback
16103 type.
16104 (maintenance_expand_name_matcher)
16105 (maintenance_expand_file_matcher): Delete.
16106 (maintenance_expand_symtabs): Use lambdas.
16107 * symtab.c (iterate_over_some_symtabs): Adjust to use
16108 function_view as callback types and return bool.
16109 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
16110 of a cleanup.
16111 (lookup_symtab_callback): Delete.
16112 (lookup_symtab): Use a lambda.
16113 (iterate_over_symbols): Adjust to use function_view as callback
16114 type.
16115 (struct search_symbols_data, search_symbols_file_matches)
16116 (search_symbols_name_matches): Delete.
16117 (search_symbols): Use a pair of lambdas.
16118 (struct add_name_data, add_macro_name, symbol_completion_matcher)
16119 (symtab_expansion_callback): Delete.
16120 (default_make_symbol_completion_list_break_on_1): Use lambdas.
16121 * symtab.h: Include "common/function-view.h".
16122 (iterate_over_some_symtabs): Adjust to use function_view as
16123 callback type and return bool.
16124 (iterate_over_symtabs): Adjust to use function_view as callback
16125 type.
16126 (symbol_found_callback_ftype): Remove 'data' parameter and return
16127 bool.
16128 (iterate_over_symbols): Adjust to use function_view as callback
16129 type.
16130
16131 2017-02-23 Pedro Alves <palves@redhat.com>
16132
16133 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
16134 (%.o) <unittests/%.c>: New pattern.
16135 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
16136 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
16137 * common/function-view.h: New file.
16138 * unittests/function-view-selftests.c: New file.
16139 * configure: Regenerate.
16140
16141 2017-02-23 Simon Marchi <simon.marchi@ericsson.com>
16142
16143 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
16144 inferior_ptid.
16145 * go32-nat.c (go32_thread_alive): Likewise.
16146
16147 2017-02-23 Yao Qi <yao.qi@linaro.org>
16148
16149 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
16150 delete.
16151
16152 2017-02-23 Yao Qi <yao.qi@linaro.org>
16153
16154 * varobj.c (varobj_clear_saved_item): Use delete instead of
16155 xfree.
16156 (update_dynamic_varobj_children): Likewise.
16157
16158 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
16159
16160 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
16161
16162 2017-02-21 Simon Marchi <simon.marchi@ericsson.com>
16163
16164 * common/enum-flags.h (enum_flags::enum_flags): Initialize
16165 m_enum_value to 0 in default constructor.
16166
16167 2017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
16168
16169 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
16170 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
16171 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
16172 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
16173 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
16174 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
16175 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
16176 IS_STORE_CONDITIONAL_INSN.
16177
16178 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
16179
16180 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
16181
16182 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16183
16184 * NEWS (Changes since GDB 7.12): Add DWARF-5.
16185
16186 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16187
16188 * dwarf2read.c (skip_one_die, read_attribute_value)
16189 (dwarf2_const_value_attr, dump_die_shallow)
16190 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
16191 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
16192
16193 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16194
16195 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
16196 (dwarf_parse_macro_header): Accept DWARF version 5.
16197 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
16198
16199 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16200
16201 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
16202 DW_AT_GNU_*.
16203 * common/common-exceptions.h (enum errors): Likewise.
16204 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
16205 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
16206 (dwarf_expr_context::execute_stack_op): Likewise.
16207 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
16208 Likewise.
16209 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
16210 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
16211 (show_entry_values_debug, call_site_to_target_addr)
16212 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
16213 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
16214 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
16215 (value_of_dwarf_block_entry, indirect_pieced_value)
16216 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
16217 (disassemble_dwarf_expression): Likewise.
16218 * dwarf2read.c (process_die, inherit_abstract_dies)
16219 (read_call_site_scope): Likewise.
16220 * gdbtypes.h (struct func_type, struct call_site_parameter)
16221 (struct call_site): Likewise.
16222 * stack.c (read_frame_arg): Likewise.
16223 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
16224
16225 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16226
16227 * defs.h (read_unsigned_leb128): New declaration.
16228 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
16229 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
16230 (dwarf2_find_location_expression): Call also
16231 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
16232 * dwarf2loc.h (dwarf2_version): New declaration.
16233 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
16234 rnglists.
16235 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
16236 .debug_rnglists.
16237 (struct dwop_section_names): Add loclists_dwo.
16238 (dwop_section_names): Add .debug_loclists.dwo.
16239 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
16240 (struct dwarf2_per_cu_data): Add dwarf_version.
16241 (struct dwo_sections): Add loclists.
16242 (struct attr_abbrev): Add implicit_const.
16243 (read_indirect_line_string): New declaration.
16244 (read_unsigned_leb128): Delete declaration.
16245 (rcuh_kind): New definition.
16246 (read_and_check_comp_unit_head): Change parameter
16247 is_debug_types_section to section_kind.
16248 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
16249 (read_comp_unit_head): Change parameter abfd to section, add parameter
16250 section_kind. Handle DWARF-5.
16251 (error_check_comp_unit_head): Accept also DWARF version 5.
16252 (read_and_check_comp_unit_head): Change parameter
16253 is_debug_types_section to section_kind.
16254 (read_and_check_type_unit_head): Delete function.
16255 (read_abbrev_offset): Handle DWARF-5.
16256 (create_debug_type_hash_table): Add parameter section_kind. Process
16257 only DW_UT_type. Use signature and type_offset_in_tu from struct
16258 comp_unit_head.
16259 (create_debug_types_hash_table): Update create_debug_type_hash_table
16260 caller.
16261 (create_all_type_units): Call create_debug_type_hash_table.
16262 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
16263 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
16264 caller.
16265 (skip_one_die): Handle DW_FORM_implicit_const.
16266 (dwarf2_rnglists_process): New function.
16267 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
16268 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
16269 (read_attribute_value): Handle DW_FORM_implicit_const,
16270 DW_FORM_line_strp.
16271 (read_attribute): Handle DW_FORM_implicit_const.
16272 (read_indirect_string_at_offset_from): New function from
16273 read_indirect_string_at_offset.
16274 (read_indirect_string_at_offset): Call
16275 read_indirect_string_at_offset_from.
16276 (read_indirect_line_string_at_offset): New function.
16277 (read_indirect_string): New function comment.
16278 (read_indirect_line_string): New function.
16279 (read_unsigned_leb128): Make it global.
16280 (dwarf2_string_attr): Handle DWARF-5.
16281 (add_include_dir_stub, read_formatted_entries): New functions.
16282 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
16283 Handle DWARF-5.
16284 (per_cu_header_read_in): Update read_comp_unit_head caller.
16285 (dwarf2_version): New function.
16286 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
16287 rnglists.
16288 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
16289 fields.
16290
16291 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16292
16293 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
16294
16295 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16296
16297 * dwarf2read.c (dwarf2_ranges_process): New function from
16298 dwarf2_ranges_read.
16299 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
16300 dwarf2_ranges_process.
16301
16302 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16303
16304 * dwarf2read.c (create_debug_type_hash_table): New function from
16305 create_debug_types_hash_table.
16306 (create_debug_types_hash_table): Call create_debug_type_hash_table.
16307 (create_all_type_units, open_and_init_dwo_file): Update
16308 create_debug_types_hash_table callers.
16309
16310 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
16311
16312 PR gdb/16188
16313 * fork-child.c (trace_start_error): Fix thinko. va_end should
16314 refer to 'ap', not 'args'.
16315
16316 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
16317 Pedro Alves <palves@redhat.com>
16318
16319 PR gdb/16188
16320 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
16321 calls succeeded.
16322 * fork-child.c (trace_start_error): New function.
16323 (trace_start_error_with_name): Likewise.
16324 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
16325 * inf-ptrace.c (inf_ptrace_me): Likewise.
16326 * inferior.h (trace_start_error): New prototype.
16327 (trace_start_error_with_name): Likewise.
16328
16329 2017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
16330
16331 PR gdb/21164
16332 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
16333 NULL before using it.
16334 * symmisc.c (maintenance_print_symbols): Likewise.
16335 (maintenance_print_msymbols): Likewise.
16336
16337 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16338
16339 * NEWS: Add record Python bindings entry.
16340
16341 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16342
16343 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
16344 py-record-full.o.
16345 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
16346 * python/py-record-btrace.c, python/py-record-btrace.h,
16347 python/py-record-full.c, python/py-record-full.h: New file.
16348 * python/py-record.c: Add include for py-record-btrace.h and
16349 py-record-full.h.
16350 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
16351 recpy_instruction_history, recpy_function_call_history, recpy_begin,
16352 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
16353 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
16354 New definition.
16355 (gdbpy_initialize_btrace): New export.
16356 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
16357
16358 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16359
16360 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
16361 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
16362 * python/py-record.c: New file.
16363 * python/python-internal.h (gdbpy_start_recording,
16364 gdbpy_current_recording, gdpy_stop_recording,
16365 gdbpy_initialize_record): New export.
16366 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
16367 (python_GdbMethods): Add gdbpy_start_recording,
16368 gdbpy_current_recording and gdbpy_stop_recording.
16369
16370 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16371
16372 * record-btrace.c (record_btrace_record_method): New function.
16373 (init_record_btrace_ops): Initialize to_record_method.
16374 * record-full.c (record_full_record_method): New function.
16375 (init_record_full_ops, init_record_full_core_ops): Add
16376 record_full_record_method.
16377 * record.h (enum record_method): New enum.
16378 * target-debug.h (target_debug_print_enum_record_method: New define.
16379 * target-delegates.c: Regenerate.
16380 * target.c (target_record_method): New function.
16381 * target.h: Include record.h.
16382 (struct target_ops) <to_record_method>: New field.
16383 (target_record_method): New export.
16384
16385 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16386
16387 * record.h (record_start, record_stop): New export.
16388 * record.c (record_start, record_stop): New function.
16389
16390 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16391
16392 * btrace.c (btrace_fetch): Copy function call segments pointer
16393 into a vector.
16394 (btrace_clear): Clear the vector.
16395 (btrace_find_insn_by_number): Use binary search to find the correct
16396 function call segment.
16397 * btrace.h (brace_fun_p): New typedef.
16398 (struct btrace_thread_info) <functions>: New field.
16399
16400 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16401
16402 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
16403 * btrace.c (btrace_decode_error): ... here. New function.
16404 * btrace.h (btrace_decode_error): New export.
16405
16406 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16407
16408 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
16409 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
16410 btrace_find_insn_by_number): Remove special case for gaps.
16411 * btrace.h (btrace_insn_get_error): New export.
16412 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
16413 * record-btrace.c (btrace_insn_history): Print number for gaps.
16414 (record_btrace_info, record_btrace_goto): Handle gaps.
16415
16416 2017-02-14 Tom Tromey <tom@tromey.com>
16417
16418 PR python/13598:
16419 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
16420 event.
16421 * python/py-evts.c (gdbpy_initialize_py_events): Add
16422 before_prompt registry.
16423 * python/py-events.h (events_object) <before_prompt>: New field.
16424
16425 2017-02-14 Markus Metzger <markus.t.metzger@intel.com>
16426
16427 * btrace.c (ftrace_new_switch): Preserve up link and flags.
16428
16429 2017-02-13 Luis Machado <lgustavo@codesourcery.com>
16430
16431 * symfile (_initialize_symfile): Add usage text to the load command's
16432 help text.
16433
16434 2017-02-10 Simon Marchi <simon.marchi@ericsson.com>
16435
16436 * utils.c (defaulted_query): Don't query on secondary UIs.
16437
16438 2017-02-10 Tom Tromey <tom@tromey.com>
16439
16440 * rust-lang.c (rust_get_disr_info): Remove unused variable.
16441
16442 2017-02-10 Tom Tromey <tom@tromey.com>
16443
16444 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
16445 "cleanup" local.
16446 * python/py-type.c (typy_legacy_template_argument): Remove
16447 unnecessary "cleanup" local.
16448
16449 2017-02-10 Tom Tromey <tom@tromey.com>
16450
16451 * python/python.c (do_start_initialization): New function, from
16452 _initialize_python.
16453 (_initialize_python): Call do_start_initialization.
16454 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
16455 goto.
16456
16457 2017-02-10 Tom Tromey <tom@tromey.com>
16458
16459 * python/py-prettyprint.c (pretty_print_one_value): Use
16460 gdbpy_ref.
16461
16462 2017-02-10 Tom Tromey <tom@tromey.com>
16463
16464 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
16465 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
16466 gdbpy_ref.
16467 * python/py-type.c (field_new): Use gdbpy_ref.
16468 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
16469 gdbpy_ref.
16470 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
16471 (py_free_pspace): Likewise.
16472 (pspace_to_pspace_object): Likewise.
16473 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
16474 (py_free_objfile): Likewise.
16475 (objfile_to_objfile_object): Likewise.
16476 * python/py-inferior.c (delete_thread_object): Use
16477 gdbpy_ref.
16478 (infpy_read_memory): Likewise.
16479 (py_free_inferior): Likewise.
16480 * python/py-evtregistry.c (create_eventregistry_object): Use
16481 gdbpy_ref.
16482 * python/py-event.c (create_event_object): Use gdbpy_ref.
16483
16484 2017-02-10 Tom Tromey <tom@tromey.com>
16485
16486 * python/py-ref.h (gdbpy_ref_policy): Now a template.
16487 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
16488 used.
16489 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
16490 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
16491 python/py-exitedevent.c, python/py-finishbreakpoint.c,
16492 python/py-framefilter.c, python/py-function.c,
16493 python/py-inferior.c, python/py-infevents.c,
16494 python/py-linetable.c, python/py-newobjfileevent.c,
16495 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
16496 python/py-signalevent.c, python/py-stopevent.c,
16497 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
16498 python/py-unwind.c, python/py-utils.c, python/py-value.c,
16499 python/py-varobj.c, python/py-xmethods.c, python/python.c,
16500 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
16501
16502 2017-02-10 Tom Tromey <tom@tromey.com>
16503
16504 * ui-out.h (ui_out_emit_type): New class.
16505 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
16506 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
16507 and ui_out_emit_tuple.
16508 (enumerate_locals): Likewise.
16509 (py_mi_print_variables, py_print_locals, py_print_args): Use
16510 ui_out_emit_list.
16511 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
16512 ui_out_emit_list.
16513 * common/gdb_optional.h: New file.
16514
16515 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
16516
16517 * MAINTAINERS (Write After Approval): Update my e-mail address.
16518
16519 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
16520
16521 PR gdb/21122
16522 * breakpoint.c (_initialize_breakpoint): Update the help description
16523 of the 'commands' command to indicate that it takes a list argument.
16524
16525 2017-02-09 Simon Marchi <simon.marchi@ericsson.com>
16526
16527 * interps.c (current_interp_set_logging): Remove "return".
16528
16529 2017-02-09 Gary Benson <gbenson@redhat.com>
16530
16531 * symtab.c (add_symtab_completions): Prevent NULL pointer
16532 dereference.
16533
16534 2017-02-08 Pedro Alves <palves@redhat.com>
16535
16536 * interps.c (interp::interp): Remove reference to quiet_p.
16537 (interp_set): Make static. Remove dead "Switching to" output
16538 code.
16539 (interp_quiet_p, interp_set_quiet): Delete.
16540 (interpreter_exec_cmd): Don't set the interpreter quiet.
16541 * interps.h (interp_quiet_p): Make static.
16542 (class interp) <quiet_p>: Remove field
16543
16544 2017-02-08 Jerome Guitton <guitton@adacore.com>
16545
16546 * cli/cli-decode.c (find_command_name_length): Make it extern.
16547 * cli/cli-decode.h (find_command_name_length): Declare.
16548 * cli/cli-script.c (command_name_equals, line_first_arg):
16549 New functions.
16550 (process_next_line): Use cli-decode to parse command names.
16551 (build_command_line): Make args a constant pointer.
16552
16553 2017-02-08 Jerome Guitton <guitton@adacore.com>
16554
16555 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
16556 Remove case-insensitive search.
16557
16558 2017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
16559
16560 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
16561 at the end of the line. Avoids an ARI warning.
16562
16563 2017-02-06 Luis Machado <lgustavo@codesourcery.com>
16564
16565 * NEWS: Mention support for record/replay of Intel 64 rdrand and
16566 rdseed instructions.
16567 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
16568
16569 2017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
16570
16571 PR tdep/20936
16572 Provide and use sparc32 and sparc64 target description XML files.
16573 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
16574 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
16575 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
16576 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
16577 * features/sparc/sparc32-solaris.xml: New file.
16578 * features/sparc/sparc64-solaris.xml: New file.
16579 * features/sparc/sparc32-solaris.c: Generated.
16580 * features/sparc/sparc64-solaris.c: Generated.
16581 * sparc-tdep.h: Account for differences in target descriptions.
16582 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
16583 (sparc32_register_type): Use target provided registers.
16584 (validate_tdesc_registers): New function.
16585 (sparc32_gdbarch_init): Use tdesc_has_registers.
16586 Set pseudoregister functions.
16587 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
16588 (sparc64_register_type): Use target provided registers.
16589 (sparc64_init_abi): Set pseudoregister functions.
16590
16591 2017-02-03 Tom Tromey <tom@tromey.com>
16592
16593 PR rust/21097:
16594 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
16595 with a single member.
16596
16597 2017-02-03 Pedro Alves <palves@redhat.com>
16598
16599 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
16600 (cli_interp_base::~cli_interp_base): New.
16601 (cli_interp): New struct.
16602 (as_cli_interp): Cast the interp itself to cli_interp.
16603 (cli_interpreter_pre_command_loop): Rename to ...
16604 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
16605 parameter.
16606 (cli_interpreter_init): Rename to ...
16607 (cli_interp::init): ... this. Remove 'self' parameter. Use
16608 boolean. Make extern.
16609 (cli_interpreter_resume): Rename to ...
16610 (cli_interp::resume): ... this. Remove 'data' parameter. Make
16611 extern.
16612 (cli_interpreter_suspend): Rename to ...
16613 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
16614 extern.
16615 (cli_interpreter_exec): Rename to ...
16616 (cli_interp::exec): ... this. Remove 'data' parameter. Make
16617 extern.
16618 (cli_interpreter_supports_command_editing): Rename to ...
16619 (cli_interp_base::supports_command_editing): ... this. Remove
16620 'interp' parameter. Make extern.
16621 (cli_ui_out): Rename to ...
16622 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
16623 Make extern.
16624 (cli_set_logging): Rename to ...
16625 (cli_interp_base::set_logging): ... this. Remove 'interp'
16626 parameter. Make extern.
16627 (cli_interp_procs): Delete.
16628 (cli_interp_factory): Adjust to use "new".
16629 * cli/cli-interp.h: Include "interps.h".
16630 (struct cli_interp_base): New struct.
16631 * interps.c (struct interp): Delete. Fields moved to interps.h.
16632 (interp_new): Delete.
16633 (interp::interp, interp::~interp): New.
16634 (interp_set): Use bool, and return void. Assume the interpreter
16635 has suspend, init and resume methods, and that the all return
16636 void.
16637 (set_top_level_interpreter): interp_set returns void.
16638 (interp_ui_out): Adapt.
16639 (current_interp_set_logging): Adapt.
16640 (interp_data): Delete.
16641 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
16642 (interp_exec): Adapt.
16643 (top_level_interpreter_data): Delete.
16644 * interps.h (interp_init_ftype, interp_resume_ftype)
16645 (interp_suspend_ftype, interp_exec_ftype)
16646 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
16647 (class interp): New.
16648 (interp_new): Delete.
16649 (interp_set): Now returns void. Use bool.
16650 (interp_data, top_level_interpreter_data): Delete.
16651 * mi/mi-common.h: Include interps.h.
16652 (class mi_interp): Inherit from interp. Define a ctor. Declare
16653 init, resume, suspect, exec, interp_ui_out, set_logging and
16654 pre_command_loop methods.
16655 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
16656 (mi_interpreter_init): Rename to ...
16657 (mi_interp::init): ... this. Remove the 'interp' parameter, use
16658 bool, return void and make extern. Adjust.
16659 (mi_interpreter_resume): ... Rename to ...
16660 (mi_interp::resume): ... this. Remove the 'data' parameter,
16661 return void and make extern. Adjust.
16662 (mi_interpreter_suspend): ... Rename to ...
16663 (mi_interp::suspend): ... this. Remove the 'data' parameter,
16664 return void and make extern. Adjust.
16665 (mi_interpreter_exec): ... Rename to ...
16666 (mi_interp::exec): ... this. Remove the 'data' parameter and make
16667 extern. Adjust.
16668 (mi_interpreter_pre_command_loop): ... Rename to ...
16669 (mi_interp::pre_command_loop): ... this. Remove the 'self'
16670 parameter and make extern.
16671 (mi_on_normal_stop_1): Adjust.
16672 (mi_ui_out): Rename to ...
16673 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
16674 parameter and make extern. Adjust.
16675 (mi_set_logging): Rename to ...
16676 (mi_interp::set_logging): ... this. Remove the 'interp'
16677 parameter and make extern. Adjust.
16678 (mi_interp_procs): Delete.
16679 (mi_interp_factory): Adjust to use 'new'.
16680 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
16681 (mi_print_exception, mi_execute_command, mi_load_progress):
16682 Adjust.
16683 * tui/tui-interp.c (tui_interp): New class.
16684 (as_tui_interp): Return a tui_interp pointer.
16685 (tui_on_normal_stop, tui_on_signal_received)
16686 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
16687 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
16688 to use interp::interp_ui_out.
16689 (tui_init): Rename to ...
16690 (tui_interp::init): ... this. Remove the 'self' parameter, use
16691 bool, return void and make extern. Adjust.
16692 (tui_resume): Rename to ...
16693 (tui_interp::resume): ... this. Remove the 'data' parameter,
16694 return void and make extern. Adjust.
16695 (tui_suspend): Rename to ...
16696 (tui_interp::suspend): ... this. Remove the 'data' parameter,
16697 return void and make extern. Adjust.
16698 (tui_ui_out): Rename to ...
16699 (tui_interp::interp_ui_out): ... this. Remove the 'self'
16700 parameter, and make extern. Adjust.
16701 (tui_exec): Rename to ...
16702 (tui_interp::exec): ... this. Remove the 'data' parameter and
16703 make extern.
16704 (tui_interp_procs): Delete.
16705 (tui_interp_factory): Use "new".
16706
16707 2017-02-02 Tom Tromey <tom@tromey.com>
16708
16709 * rust-exp.y (ends_raw_string, space_then_number)
16710 (rust_identifier_start_p): Return bool.
16711 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
16712 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
16713 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
16714 (rust_chartype_p): Return bool.
16715 (val_print_struct, rust_print_struct_def, rust_print_type):
16716 Update.
16717 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
16718 Return bool.
16719
16720 2017-02-02 Tom Tromey <tom@tromey.com>
16721
16722 * rust-lang.c: Reindent.
16723
16724 2017-02-02 Tom Tromey <tom@tromey.com>
16725
16726 * rust-lang.h (rust_crate_for_block): Update.
16727 * rust-lang.c (rust_crate_for_block): Return std::string.
16728 (rust_get_disr_info): Use std:;string, not
16729 gdb::unique_xmalloc_ptr.
16730 * rust-exp.y (crate_name): Update.
16731
16732 2017-02-02 Pedro Alves <palves@redhat.com>
16733
16734 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
16735 field out of gdb_disassembler_test and make it static.
16736
16737 2017-02-02 Pedro Alves <palves@redhat.com>
16738
16739 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
16740 mi1_interp and mi_interp fields.
16741
16742 2017-02-02 Pedro Alves <palves@redhat.com>
16743
16744 * cli/cli-interp.c (struct saved_output_files, saved_output):
16745 Moved from cli/cli-logging.c.
16746 (cli_set_logging): New function.
16747 (cli_interp_procs): Install cli_set_logging.
16748 * cli/cli-interp.h (make_logging_output, cli_set_logging):
16749 Declare.
16750 * cli/cli-logging.c (struct saved_output_files, saved_output):
16751 Moved to cli/cli-interp.c.
16752 (pop_output_files): Don't save outputs here.
16753 (make_logging_output): New function.
16754 (handle_redirections): Don't build tee nor save previous outputs
16755 here.
16756 * interps.c (current_interp_set_logging): Change prototype.
16757 Assume there's always a set_logging_proc method installed.
16758 * interps.h (interp_set_logging_ftype): Change prototype.
16759 (current_interp_set_logging): Change prototype and adjust comment.
16760 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
16761 use make_logging_output.
16762 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
16763 2017-02-02 Pedro Alves <palves@redhat.com>
16764
16765 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
16766 from ...
16767 (set_logging_overwrite): ... here.
16768 (logging_no_redirect_file): Delete.
16769 (set_logging_redirect): Don't handle redirection on the fly.
16770 Instead warn that "logging off" / "logging on" is necessary.
16771 (pop_output_files): Delete references to logging_no_redirect_file.
16772 (show_logging_command): Always speak in terms of what will happen
16773 once logging is reenabled.
16774
16775 2017-02-02 Pedro Alves <palves@redhat.com>
16776
16777 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
16778
16779 2017-02-02 Pedro Alves <palves@redhat.com>
16780
16781 * disasm.c (gdb_pretty_print_insn): Rename to ...
16782 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
16783 Remove gdbarch parameter. Adapt to clear the object's buffers
16784 instead of allocating new buffers, and to print using the object's
16785 gdb_disassembler instead of calling gdb_print_insn.
16786 (dump_insns): Use gdb_pretty_print_disassembler.
16787 * disasm.h (gdb_pretty_print_insn): Delete declaration.
16788 (gdb_pretty_print_disassembler): New class.
16789 * record-btrace.c (btrace_insn_history): Use
16790 gdb_pretty_print_disassembler.
16791
16792 2017-02-02 Pedro Alves <palves@redhat.com>
16793
16794 * ada-lang.c (type_as_string): Use string_file.
16795 * ada-valprint.c (ada_print_floating): Use string_file.
16796 * ada-varobj.c (ada_varobj_scalar_image)
16797 (ada_varobj_get_value_image): Use string_file.
16798 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
16799 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
16800 * breakpoint.c (update_inserted_breakpoint_locations)
16801 (insert_breakpoint_locations, reattach_breakpoints)
16802 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
16803 (print_it_watchpoint): Use string_file.
16804 (save_breakpoints): Use stdio_file.
16805 * c-exp.y (oper): Use string_file.
16806 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
16807 tee_file.
16808 (pop_output_files): Use delete.
16809 (handle_redirections): Use stdio_file and tee_file.
16810 * cli/cli-setshow.c (do_show_command): Use string_file.
16811 * compile/compile-c-support.c (c_compute_program): Use
16812 string_file.
16813 * compile/compile-c-symbols.c (generate_vla_size): Take a
16814 'string_file &' instead of a 'ui_file *'.
16815 (generate_c_for_for_one_variable): Take a 'string_file &' instead
16816 of a 'ui_file *'. Use string_file.
16817 (generate_c_for_variable_locations): Take a 'string_file &'
16818 instead of a 'ui_file *'.
16819 * compile/compile-internal.h (generate_c_for_for_one_variable):
16820 Take a 'string_file &' instead of a 'ui_file *'.
16821 * compile/compile-loc2c.c (push, pushf, unary, binary)
16822 (print_label, pushf_register_address, pushf_register)
16823 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
16824 'ui_file *'. Adjust.
16825 * compile/compile.c (compile_to_object): Use string_file.
16826 * compile/compile.h (compile_dwarf_expr_to_c)
16827 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
16828 'ui_file *'.
16829 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
16830 (replace_typedefs_qualified_name): Use string_file and
16831 obstack_copy0.
16832 * disasm.c (gdb_pretty_print_insn): Use string_file.
16833 (gdb_disassembly): Adjust reference the null_stream global.
16834 (do_ui_file_delete): Delete.
16835 (gdb_insn_length): Use null_stream.
16836 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
16837 * dwarf2loc.c (dwarf2_compile_property_to_c)
16838 (locexpr_generate_c_location, loclist_generate_c_location): Take a
16839 'string_file &' instead of a 'ui_file *'.
16840 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
16841 * dwarf2read.c (do_ui_file_peek_last): Delete.
16842 (dwarf2_compute_name): Use string_file.
16843 * event-top.c (gdb_setup_readline): Use stdio_file.
16844 * gdbarch.sh (verify_gdbarch): Use string_file.
16845 * gdbtypes.c (safe_parse_type): Use null_stream.
16846 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
16847 string_file.
16848 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
16849 'string_file *' instead of a 'ui_file *'.
16850 (gdbscm_arch_disassemble): Use string_file.
16851 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
16852 * guile/scm-ports.c (class ioscm_file_port): Now a class that
16853 inherits from ui_file.
16854 (ioscm_file_port_delete, ioscm_file_port_rewind)
16855 (ioscm_file_port_put): Delete.
16856 (ioscm_file_port_write): Rename to ...
16857 (ioscm_file_port::write): ... this. Remove file_port_magic
16858 checks.
16859 (ioscm_file_port_new): Delete.
16860 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
16861 ui_file_up.
16862 * guile/scm-type.c (tyscm_type_name): Use string_file.
16863 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
16864 Use string_file.
16865 * infcmd.c (print_return_value_1): Use string_file.
16866 * infrun.c (print_target_wait_results): Use string_file.
16867 * language.c (add_language): Use string_file.
16868 * location.c (explicit_to_string_internal): Use string_file.
16869 * main.c (captured_main_1): Use null_file.
16870 * maint.c (maintenance_print_architecture): Use stdio_file.
16871 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
16872 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
16873 event_channel>: Change type to mi_console_file pointer.
16874 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
16875 (mi_console_file_delete): Delete.
16876 (struct mi_console_file): Delete.
16877 (mi_console_file_magic): Delete.
16878 (mi_console_file_new): Delete.
16879 (mi_console_file::mi_console_file): New.
16880 (mi_console_file_delete): Delete.
16881 (mi_console_file_fputs): Delete.
16882 (mi_console_file::write): New.
16883 (mi_console_raw_packet): Delete.
16884 (mi_console_file::flush): New.
16885 (mi_console_file_flush): Delete.
16886 (mi_console_set_raw): Rename to ...
16887 (mi_console_file::set_raw): ... this.
16888 * mi/mi-console.h (class mi_console_file): New class.
16889 (mi_console_file_new, mi_console_set_raw): Delete.
16890 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
16891 (mi_set_logging): Use delete and tee_file. Adjust.
16892 * mi/mi-main.c (output_register): Use string_file.
16893 (mi_cmd_data_evaluate_expression): Use string_file.
16894 (mi_cmd_data_read_memory): Use string_file.
16895 (mi_cmd_execute, print_variable_or_computed): Use string_file.
16896 * mi/mi-out.c (mi_ui_out::main_stream): New.
16897 (mi_ui_out::rewind): Use main_stream and
16898 string_file.
16899 (mi_ui_out::put): Use main_stream and string_file.
16900 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
16901 Allocate a 'string_file' instead.
16902 (mi_out_new): Don't allocate a mem_fileopen stream here.
16903 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
16904 (mi_ui_out::main_stream): Declare method.
16905 * printcmd.c (eval_command): Use string_file.
16906 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
16907 * python/py-arch.c (archpy_disassemble): Use string_file.
16908 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
16909 * python/py-frame.c (frapy_str): Use string_file.
16910 * python/py-framefilter.c (py_print_type, py_print_single_arg):
16911 Use string_file.
16912 * python/py-type.c (typy_str): Use string_file.
16913 * python/py-unwind.c (unwind_infopy_str): Use string_file.
16914 * python/py-value.c (valpy_str): Use string_file.
16915 * record-btrace.c (btrace_insn_history): Use string_file.
16916 * regcache.c (regcache_print): Use stdio_file.
16917 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
16918 * remote.c (escape_buffer): Use string_file.
16919 * rust-lang.c (rust_get_disr_info): Use string_file.
16920 * serial.c (serial_open_ops_1): Use stdio_file.
16921 (do_serial_close): Use delete.
16922 * stack.c (print_frame_arg): Use string_file.
16923 (print_frame_args): Remove local mem_fileopen stream, not used.
16924 (print_frame): Use string_file.
16925 * symmisc.c (maintenance_print_symbols): Use stdio_file.
16926 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
16927 Take a 'string_file *' instead of a 'ui_file *'.
16928 * top.c (new_ui): Use stdio_file and stderr_file.
16929 (free_ui): Use delete.
16930 (execute_command_to_string): Use string_file.
16931 (quit_confirm): Use string_file.
16932 * tracepoint.c (collection_list::append_exp): Use string_file.
16933 * tui/tui-disasm.c (tui_disassemble): Use string_file.
16934 * tui/tui-file.c: Don't include "ui-file.h".
16935 (enum streamtype, struct tui_stream): Delete.
16936 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
16937 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
16938 (tui_file::tui_file): New method.
16939 (tui_file_fputs): Delete.
16940 (tui_file_get_strbuf): Delete.
16941 (tui_file::puts): New method.
16942 (tui_file_adjust_strbuf): Delete.
16943 (tui_file_flush): Delete.
16944 (tui_file::flush): New method.
16945 * tui/tui-file.h: Tweak intro comment.
16946 Include ui-file.h.
16947 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
16948 (tui_file_adjust_strbuf): Delete declarations.
16949 (class tui_file): New class.
16950 * tui/tui-io.c (tui_initialize_io): Use tui_file.
16951 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
16952 (tui_register_format): Use string_stream.
16953 * tui/tui-stack.c (tui_make_status_line): Use string_file.
16954 (tui_get_function_from_frame): Use string_file.
16955 * typeprint.c (type_to_string): Use string_file.
16956 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
16957 (null_stream): New global.
16958 (ui_file_delete): Delete.
16959 (ui_file::ui_file): New.
16960 (null_file_isatty): Delete.
16961 (ui_file::~ui_file): New.
16962 (null_file_rewind): Delete.
16963 (ui_file::printf): New.
16964 (null_file_put): Delete.
16965 (null_file_flush): Delete.
16966 (ui_file::putstr): New.
16967 (null_file_write): Delete.
16968 (ui_file::putstrn): New.
16969 (null_file_read): Delete.
16970 (ui_file::putc): New.
16971 (null_file_fputs): Delete.
16972 (null_file_write_async_safe): Delete.
16973 (ui_file::vprintf): New.
16974 (null_file_delete): Delete.
16975 (null_file::write): New.
16976 (null_file_fseek): Delete.
16977 (null_file::puts): New.
16978 (ui_file_data): Delete.
16979 (null_file::write_async_safe): New.
16980 (gdb_flush, ui_file_isatty): Adjust.
16981 (ui_file_put, ui_file_rewind): Delete.
16982 (ui_file_write): Adjust.
16983 (ui_file_write_for_put): Delete.
16984 (ui_file_write_async_safe, ui_file_read): Adjust.
16985 (ui_file_fseek): Delete.
16986 (fputs_unfiltered): Adjust.
16987 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
16988 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
16989 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
16990 (set_ui_file_data): Delete.
16991 (string_file::~string_file, string_file::write)
16992 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
16993 (do_ui_file_as_string, ui_file_as_string): Delete.
16994 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
16995 (struct mem_file): Delete.
16996 (mem_file_new): Delete.
16997 (stdio_file::stdio_file): New.
16998 (mem_file_delete): Delete.
16999 (stdio_file::stdio_file): New.
17000 (mem_fileopen): Delete.
17001 (stdio_file::~stdio_file): New.
17002 (mem_file_rewind): Delete.
17003 (stdio_file::set_stream): New.
17004 (mem_file_put): Delete.
17005 (stdio_file::open): New.
17006 (mem_file_write): Delete.
17007 (stdio_file_magic, struct stdio_file): Delete.
17008 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
17009 (stdio_file::flush): New.
17010 (stdio_file_read): Rename to ...
17011 (stdio_file::read): ... this. Adjust.
17012 (stdio_file_write): Rename to ...
17013 (stdio_file::write): ... this. Adjust.
17014 (stdio_file_write_async_safe): Rename to ...
17015 (stdio_file::write_async_safe) ... this. Adjust.
17016 (stdio_file_fputs): Rename to ...
17017 (stdio_file::puts) ... this. Adjust.
17018 (stdio_file_isatty): Delete.
17019 (stdio_file_fseek): Delete.
17020 (stdio_file::isatty): New.
17021 (stderr_file_write): Rename to ...
17022 (stderr_file::write) ... this. Adjust.
17023 (stderr_file_fputs): Rename to ...
17024 (stderr_file::puts) ... this. Adjust.
17025 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
17026 (stderr_file::stderr_file): New.
17027 (tee_file_magic): Delete.
17028 (struct tee_file): Delete.
17029 (tee_file::tee_file): New.
17030 (tee_file_new): Delete.
17031 (tee_file::~tee_file): New.
17032 (tee_file_delete): Delete.
17033 (tee_file_flush): Rename to ...
17034 (tee_file::flush): ... this. Adjust.
17035 (tee_file_write): Rename to ...
17036 (tee_file::write): ... this. Adjust.
17037 (tee_file::write_async_safe): New.
17038 (tee_file_fputs): Rename to ...
17039 (tee_file::puts): ... this. Adjust.
17040 (tee_file_isatty): Rename to ...
17041 (tee_file::isatty): ... this. Adjust.
17042 * ui-file.h (struct obstack, struct ui_file): Don't
17043 forward-declare.
17044 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
17045 (ui_file_write_ftype)
17046 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
17047 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
17048 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
17049 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
17050 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
17051 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
17052 (set_ui_file_fseek): Delete.
17053 (ui_file_data, ui_file_delete, ui_file_rewind)
17054 (struct ui_file): New.
17055 (ui_file_up): New.
17056 (class null_file): New.
17057 (null_stream): Declare.
17058 (ui_file_write_for_put, ui_file_put): Delete.
17059 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
17060 Delete.
17061 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
17062 (gdb_fopen, tee_file_new): Delete.
17063 (struct string_file): New.
17064 (struct stdio_file): New.
17065 (stdio_file_up): New.
17066 (struct stderr_file): New.
17067 (class tee_file): New.
17068 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
17069 of a 'ui_file *'. Adjust.
17070 * ui-out.h (class ui_out) <field_stream>: Likewise.
17071 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
17072 (null_stream): Delete.
17073 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
17074 Adjust.
17075 * utils.h (struct ui_file): Delete forward declaration..
17076 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
17077 (error_stream): Take a 'string_file &' instead of a
17078 'ui_file *'.
17079 * varobj.c (varobj_value_get_print_value): Use string_file.
17080 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
17081 * gdbarch.c: Regenerate.
17082
17083 2017-02-02 Pedro Alves <palves@redhat.com>
17084
17085 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
17086 (gdb_pretty_print_insn): ... this. Now a free function. Add back
17087 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
17088 Adjust to call gdb_print_insn instead of
17089 gdb_disassembler::print_insn.
17090 (dump_insns, do_mixed_source_and_assembly_deprecated)
17091 (do_mixed_source_and_assembly, do_assembly_only): Add back a
17092 'gdbarch' parameter. Remove gdb_disassembler parameter.
17093 (gdb_disassembly): Don't allocate a gdb_disassembler here.
17094 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
17095 declaration.
17096 (gdb_pretty_print_insn): Re-add declaration.
17097 * record-btrace.c (btrace_insn_history): Don't allocate a
17098 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
17099
17100 2017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
17101
17102 * disasm.h (gdb_disassembly): Remove file_string parameter.
17103 * disasm.c (gdb_disassembly): Likewise.
17104 * cli/cli-cmds.c (print_disassembly): Adapt.
17105 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
17106 * stack.c (do_gdb_disassembly): Likewise.
17107
17108 2017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
17109
17110 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
17111 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
17112 targets. And if the implicit value is longer than needed, extract
17113 the first bytes instead of the "least significant" ones.
17114
17115 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
17116
17117 * btrace.c (btrace_enable): Do not call btrace_add_pc for
17118 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
17119 (btrace_fetch): Assert can_access_registers_ptid.
17120 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
17121 validate_registers_access.
17122
17123 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
17124
17125 * gdbthread.h (can_access_registers_ptid): New.
17126 * thread.c (can_access_registers_ptid): New.
17127
17128 2017-02-01 Pedro Alves <palves@redhat.com>
17129
17130 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
17131
17132 2017-01-31 Pedro Alves <palves@redhat.com>
17133
17134 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
17135 Fix typos.
17136
17137 2017-01-31 Pedro Alves <palves@redhat.com>
17138
17139 * stack.c (print_frame_args): Remove local mem_fileopen stream,
17140 not used.
17141
17142 2017-01-31 Pedro Alves <palves@redhat.com>
17143
17144 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
17145
17146 2017-01-31 Pedro Alves <palves@redhat.com>
17147
17148 * common/scoped_restore.h
17149 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
17150 change the value's parameter type to T2.
17151 (make_scoped_restore): Likewise.
17152
17153 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
17154 Richard Henderson <rth@redhat.com>
17155
17156 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
17157 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
17158 GS_BASE for older kernels.
17159 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
17160 GS_BASE for older kernels.
17161 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
17162 and GS_BASE to the offset table.
17163 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
17164 system register group.
17165 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
17166 for older kernels.
17167 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
17168 amd64 ABI.
17169 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
17170 AMD64_GSBASE_REGNUM.
17171 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
17172 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
17173 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
17174 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
17175 i386/64bit-segments.xml in those rules.
17176 * features/i386/64bit-segments.xml: New file.
17177 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
17178 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
17179 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
17180 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
17181 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
17182 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
17183 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
17184 * features/i386/amd64-avx-linux.c: Regenerated.
17185 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
17186 * features/i386/amd64-avx-mpx.c: Regenerated.
17187 * features/i386/amd64-avx512-linux.c: Regenerated.
17188 * features/i386/amd64-linux.c: Regenerated.
17189 * features/i386/amd64-mpx-linux.c: Regenerated.
17190 * features/i386/i386-avx-mpx-linux.c: Regenerated.
17191 * features/i386/i386-avx-mpx.c: Regenerated.
17192 * features/i386/x32-avx-linux.c: Regenerated.
17193 * features/i386/x32-avx512-linux.c: Regenerated.
17194 * regformats/i386/amd64-avx-linux.dat: Regenerated.
17195 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
17196 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
17197 * regformats/i386/amd64-linux.dat: Regenerated.
17198 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
17199 * regformats/i386/x32-avx-linux.dat: Regenerated.
17200 * regformats/i386/x32-avx512-linux.dat: Regenerated.
17201 * regformats/i386/x32-linux.dat: Regenerated.
17202
17203 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
17204
17205 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
17206 Set to AMD64_NUM_REGS.
17207
17208 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
17209
17210 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
17211 that checks validity of a register number.
17212
17213 2017-01-27 Kees Cook <keescook@google.com>
17214
17215 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
17216 fetch_fpregs if target has fpa registers.
17217 (arm_linux_store_inferior_registers): Call store_fpregs if target
17218 has fpa registers.
17219
17220 2017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
17221
17222 * cris-tdep.c (cris_gdbarch_init): Remove check for
17223 info.byte_order and force it to BFD_ENDIAN_LITTLE.
17224
17225 2017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
17226
17227 * corelow.c (get_core_register_section): Check for regset
17228 existence before checking for REGSET_VARIABLE_SIZE.
17229
17230 2017-01-26 Yao Qi <yao.qi@linaro.org>
17231 Pedro Alves <palves@redhat.com>
17232
17233 PR gdb/20939
17234 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
17235 call memory_error, save memaddr instead.
17236 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
17237 negative, cal memory_error.
17238 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
17239
17240 2017-01-26 Yao Qi <yao.qi@linaro.org>
17241
17242 * disasm-selftests.c (memory_error_test): New function.
17243 (_initialize_disasm_selftests): Register memory_error_test.
17244
17245 2017-01-26 Yao Qi <yao.qi@linaro.org>
17246
17247 * Makefile.in (SFILES): Add disasm-selftests.c and
17248 selftest-arch.c.
17249 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
17250 * disasm-selftests.c: New file.
17251 * selftest-arch.c: New file.
17252 * selftest-arch.h: New file.
17253
17254 2017-01-26 Yao Qi <yao.qi@linaro.org>
17255
17256 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
17257 to bfd_arch_mep. Don't return 0 if section is not
17258 found. Call print_insn_mep.
17259
17260 2017-01-26 Pedro Alves <palves@redhat.com>
17261 Yao Qi <yao.qi@linaro.org>
17262
17263 * arm-tdep.c: Include "disasm.h".
17264 (gdb_print_insn_arm): Update code to get gdbarch.
17265 * disasm.c (dis_asm_read_memory): Change it to
17266 gdb_disassembler::dis_asm_read_memory.
17267 (dis_asm_memory_error): Likewise.
17268 (dis_asm_print_address): Likewise.
17269 (gdb_pretty_print_insn): Change it to
17270 gdb_disassembler::pretty_print_insn.
17271 (dump_insns): Add one argument gdb_disassemlber. All
17272 callers updated.
17273 (do_mixed_source_and_assembly_deprecated): Likewise.
17274 (do_mixed_source_and_assembly): Likewise.
17275 (do_assembly_only): Likewise.
17276 (gdb_disassembler::gdb_disassembler): New.
17277 (gdb_disassembler::print_insn): New.
17278 * disasm.h (class gdb_disassembler): New.
17279 (gdb_pretty_print_insn): Remove declaration.
17280 (gdb_disassemble_info): Likewise.
17281 * guile/scm-disasm.c (class gdbscm_disassembler): New.
17282 (gdbscm_disasm_read_memory_worker): Update.
17283 (gdbscm_disasm_read_memory): Update.
17284 (gdbscm_disasm_memory_error): Remove.
17285 (gdbscm_disasm_print_address): Remove.
17286 (gdbscm_disassembler::gdbscm_disassembler): New.
17287 (gdbscm_print_insn_from_port): Update.
17288 * mips-tdep.c: Include disasm.h.
17289 (gdb_print_insn_mips): Update code to get gdbarch.
17290 * record-btrace.c (btrace_insn_history): Update.
17291 * spu-tdep.c: Include disasm.h.
17292 (struct spu_dis_asm_data): Remove.
17293 (struct spu_dis_asm_info): New.
17294 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
17295 SPU id.
17296 (gdb_print_insn_spu): Cast disassemble_info to
17297 spu_dis_asm_info.
17298
17299 2017-01-26 Yao Qi <yao.qi@linaro.org>
17300
17301 * disasm.c (do_ui_file_delete): Delete.
17302 (gdb_insn_length): Move code creating stream to ...
17303 * utils.c (null_stream): ... here. New function.
17304 * utils.h (null_stream): Declare.
17305
17306 2017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
17307
17308 * python/py-inferior.c (find_thread_object): Return directly
17309 from the loop. Remove "found" variable.
17310
17311 2017-01-21 Joel Brobecker <brobecker@adacore.com>
17312
17313 GDB 7.12.1 released.
17314
17315 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
17316
17317 * python/py-function.c (fnpy_call): Reorder declarations to have
17318 the gdbpy_enter object declared first.
17319 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
17320
17321 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
17322
17323 PR python/21068
17324 * python/python-internal.h (PyMem_RawMalloc): Define for
17325 Python < 3.4.
17326 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
17327 PyMem_RawMalloc instead of PyMem_Malloc.
17328
17329 2017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
17330 Luis Machado <lgustavo@codesourcery.com>
17331
17332 * NEWS (New commands): Mention flash-erase.
17333 (New MI commands): Mention target-flash-erase.
17334 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
17335 command.
17336 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
17337 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
17338 * target.c (flash_erase_command): New function.
17339 (initialize_targets): Add new flash-erase command.
17340 * target.h (flash_erase_command): New declaration.
17341
17342 2017-01-20 Joel Brobecker <brobecker@adacore.com>
17343
17344 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
17345 HAVE_SYS_PROCFS_H is defined.
17346
17347 2017-01-18 Alan Hayward <alan.hayward@arm.com>
17348
17349 * remote.c (struct cached_reg): Change data into a pointer.
17350 * (stop_reply_dtr): Free data pointers before deleting vector.
17351 (process_stop_reply): Likewise.
17352 (remote_parse_stop_reply): Allocate space for data
17353
17354 2017-01-18 Alan Hayward <alan.hayward@arm.com>
17355
17356 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
17357 MAX_REGISTER_SIZE.
17358 (amd64_pseudo_register_read_value): Likewise.
17359 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
17360 (store_register_using_P): Likewise.
17361 * regcache.c (regcache_xfer_part): Likewise.
17362
17363 2017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
17364
17365 Split real and pseudo registers.
17366 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
17367 (sparc32_pseudo_regnum): New enum.
17368 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
17369 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
17370 (SPARC32_CP0_REGISTERS): New macro.
17371 (sparc32_pseudo_register_name): New function.
17372 (sparc32_register_name): Use sparc32_pseudo_register_name.
17373 (sparc32_pseudo_register_type): New function.
17374 (sparc32_register_type): Use sparc32_pseudo_register_type.
17375 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
17376 pseudo register numbers.
17377 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
17378 (SPARC64_CP0_REGISTERS): New macro.
17379 (sparc64_pseudo_register_name): New function.
17380 (sparc64_register_name): Use sparc64_pseudo_register_name.
17381 (sparc64_pseudo_register_type): New function.
17382 (sparc64_register_type): Use sparc64_pseudo_register_type.
17383 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
17384 pseudo register numbers.
17385 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
17386 sparc64_store_arguments): Handle pseudo register numbers.
17387
17388 2017-01-13 Yao Qi <yao.qi@linaro.org>
17389
17390 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
17391 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
17392 output.
17393 (getpkt_or_notif_sane_1): Likewise.
17394
17395 2017-01-13 Yao Qi <yao.qi@linaro.org>
17396
17397 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
17398 of CC. Pass "-x c++-header" instead of "-x c".
17399
17400 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
17401
17402 * remote.c (remote_can_async_p): Update comment.
17403
17404 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
17405
17406 * linux-nat.c (linux_nat_can_async_p): Update comment.
17407
17408 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
17409
17410 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
17411
17412 2017-01-11 Simon Marchi <simon.marchi@ericsson.com>
17413
17414 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
17415
17416 2017-01-10 Tom Tromey <tom@tromey.com>
17417
17418 * python/py-type.c (typy_legacy_template_argument): Update.
17419 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
17420 ~demangle_parse_info): Declare new members.
17421 (cp_demangled_name_to_comp): Return unique_ptr.
17422 (cp_demangled_name_parse_free)
17423 (make_cleanup_cp_demangled_name_parse_free)
17424 (cp_new_demangle_parse_info): Remove.
17425 * cp-support.c (do_demangled_name_parse_free_cleanup)
17426 (make_cleanup_cp_demangled_name_parse_free): Remove.
17427 (inspect_type, cp_canonicalize_string_full)
17428 (cp_canonicalize_string): Update.
17429 (mangled_name_to_comp): Change return type.
17430 (cp_class_name_from_physname, method_name_from_physname)
17431 (cp_func_name, cp_remove_params): Update.
17432 * cp-name-parser.y (demangle_parse_info): New constructor, from
17433 cp_new_demangle_parse_info.
17434 (~demangle_parse_info): New destructor, from
17435 cp_demangled_name_parse_free.
17436 (cp_merge_demangle_parse_infos): Update.
17437 (cp_demangled_name_to_comp): Change return type.
17438
17439 2017-01-10 Tom Tromey <tom@tromey.com>
17440
17441 * top.c (prevent_dont_repeat): Change return type.
17442 * python/python.c (execute_gdb_command): Use std::string.
17443 Update.
17444 * guile/guile.c (gdbscm_execute_gdb_command): Update.
17445 * command.h (prevent_dont_repeat): Change return type.
17446 * breakpoint.c (bpstat_do_actions_1): Update.
17447
17448 2017-01-10 Tom Tromey <tom@tromey.com>
17449
17450 * value.h (scoped_value_mark::~scoped_value_mark): Call
17451 free_to_mark.
17452 (scoped_value_mark::free_to_mark): New method.
17453 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
17454 scoped_value_mark.
17455
17456 2017-01-10 Tom Tromey <tom@tromey.com>
17457
17458 * python/py-value.c (valpy_dereference, valpy_referenced_value)
17459 (valpy_reference_value, valpy_const_value, valpy_get_address)
17460 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
17461 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
17462 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
17463 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
17464 scoped_value_mark.
17465 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
17466 * value.h (scoped_value_mark): New class.
17467
17468 2017-01-10 Tom Tromey <tom@tromey.com>
17469
17470 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
17471 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
17472 * psymtab.c (discard_psymtabs_upto): Remove.
17473 (make_cleanup_discard_psymtabs): Remove.
17474 (struct psymtab_state): Remove.
17475
17476 2017-01-10 Tom Tromey <tom@tromey.com>
17477
17478 * record-full.c (record_full_save_cleanups): Remove.
17479 (record_full_save): Use gdb::unlinker.
17480 * gcore.c (do_bfd_delete_cleanup): Remove.
17481 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
17482 cleanups.
17483 * dwarf2read.c (unlink_if_set): Remove.
17484 (write_psymtabs_to_index): Use gdb::unlinker.
17485 * common/gdb_unlinker.h: New file.
17486
17487 2017-01-10 Tom Tromey <tom@tromey.com>
17488
17489 * windows-tdep.c (windows_xfer_shared_library): Update.
17490 * windows-nat.c (windows_make_so): Update.
17491 * utils.h (make_cleanup_bfd_unref): Remove.
17492 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
17493 * symfile.h (symfile_bfd_open)
17494 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
17495 * symfile.c (read_symbols, symbol_file_add)
17496 (separate_debug_file_exists): Update.
17497 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
17498 (generic_load, reread_symbols): Update.
17499 * symfile-mem.c (symbol_file_add_from_memory): Update.
17500 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
17501 (spu_symbol_file_add_from_memory): Update.
17502 * solist.h (struct target_so_ops) <bfd_open>: Return
17503 gdb_bfd_ref_ptr.
17504 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
17505 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
17506 gdb_bfd_ref_ptr.
17507 (solib_map_sections, reload_shared_libraries_1): Update.
17508 * solib-svr4.c (enable_break): Update.
17509 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
17510 * solib-frv.c (enable_break2): Update.
17511 * solib-dsbt.c (enable_break): Update.
17512 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
17513 gdb_bfd_ref_ptr.
17514 (darwin_solib_get_all_image_info_addr_at_init): Update.
17515 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
17516 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
17517 * record-full.c (record_full_save): Update.
17518 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
17519 * procfs.c (insert_dbx_link_bpt_in_file): Update.
17520 * minidebug.c (find_separate_debug_file_in_section): Return
17521 gdb_bfd_ref_ptr.
17522 * machoread.c (macho_add_oso_symfile): Change abfd to
17523 gdb_bfd_ref_ptr.
17524 (macho_symfile_read_all_oso): Update.
17525 (macho_check_dsym): Return gdb_bfd_ref_ptr.
17526 (macho_symfile_read): Update.
17527 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
17528 (jit_bfd_try_read_symtab): Update.
17529 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
17530 (gdb_bfd_openw, gdb_bfd_openr_iovec)
17531 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
17532 gdb_bfd_ref_ptr.
17533 (gdb_bfd_ref_policy): New struct.
17534 (gdb_bfd_ref_ptr): New typedef.
17535 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
17536 (gdb_bfd_openw, gdb_bfd_openr_iovec)
17537 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
17538 gdb_bfd_ref_ptr.
17539 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
17540 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
17541 (gcore_command): Update.
17542 * exec.c (exec_file_attach): Update.
17543 * elfread.c (elf_symfile_read): Update.
17544 * dwarf2read.c (dwarf2_get_dwz_file): Update.
17545 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
17546 (open_and_init_dwo_file): Update.
17547 (open_dwp_file): Return gdb_bfd_ref_ptr.
17548 (open_and_init_dwp_file): Update.
17549 * corelow.c (core_open): Update.
17550 * compile/compile-object-load.c (compile_object_load): Update.
17551 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
17552 * coffread.c (coff_symfile_read): Update.
17553 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
17554 gdb_bfd_ref_ptr. Rename.
17555 (dump_bfd_file, restore_command): Update.
17556 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
17557 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
17558 (find_separate_debug_file_by_buildid): Update.
17559
17560 2017-01-10 Tom Tromey <tom@tromey.com>
17561
17562 * common/gdb_ref_ptr.h: New file.
17563 * python/py-ref.h (struct gdbpy_ref_policy): New.
17564 (gdbpy_ref): Now a typedef.
17565
17566 2017-01-10 Tom Tromey <tom@tromey.com>
17567
17568 * utils.h (make_cleanup_htab_delete): Don't declare.
17569 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
17570 Remove.
17571 * linespec.c (decode_compound_collector): Add constructor,
17572 destructor.
17573 (lookup_prefix_sym): Remove cleanup.
17574 (symtab_collector): Add constructor, destructor.
17575 (collect_symtabs_from_filename): Remove cleanup.
17576 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
17577 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
17578 Use htab_up.
17579 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
17580 * dwarf2read.c (dw2_expand_symtabs_matching)
17581 (dw2_map_symbol_filenames, dwarf_decode_macros)
17582 (write_psymtabs_to_index): Use htab_up.
17583 * dwarf2loc.c (func_verify_no_selftailcall)
17584 (call_site_find_chain_1, func_verify_no_selftailcall)
17585 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
17586 std::vector, gdb::unique_xmalloc_ptr.
17587 (call_sitep): Remove typedef.
17588 (dwarf2_locexpr_baton_eval): Remove unused variable.
17589
17590 2017-01-10 Tom Tromey <tom@tromey.com>
17591
17592 * python/python-internal.h (make_cleanup_py_decref)
17593 (make_cleanup_py_xdecref): Don't declare.
17594 * python/py-utils.c (py_decref, make_cleanup_py_decref)
17595 (py_xdecref, make_cleanup_py_xdecref): Remove.
17596
17597 2017-01-10 Tom Tromey <tom@tromey.com>
17598
17599 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
17600 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
17601
17602 2017-01-10 Tom Tromey <tom@tromey.com>
17603
17604 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
17605
17606 2017-01-10 Tom Tromey <tom@tromey.com>
17607
17608 * python/py-utils.c (unicode_to_encoded_string)
17609 (python_string_to_target_string)
17610 (python_string_to_target_python_string)
17611 (python_string_to_host_string, gdbpy_obj_to_string)
17612 (get_addr_from_python): Use gdbpy_ref.
17613
17614 2017-01-10 Tom Tromey <tom@tromey.com>
17615
17616 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
17617 gdbpy_ref.
17618
17619 2017-01-10 Tom Tromey <tom@tromey.com>
17620
17621 * python/python.c (eval_python_command, gdbpy_decode_line)
17622 (gdbpy_run_events, gdbpy_start_type_printers)
17623 (gdbpy_apply_type_printers): Use gdbpy_ref.
17624
17625 2017-01-10 Tom Tromey <tom@tromey.com>
17626
17627 * python/py-param.c (get_doc_string, compute_enum_values): Use
17628 gdbpy_ref.
17629
17630 2017-01-10 Tom Tromey <tom@tromey.com>
17631
17632 * python/py-inferior.c (find_thread_object, build_inferior_list):
17633 Use gdbpy_ref.
17634
17635 2017-01-10 Tom Tromey <tom@tromey.com>
17636
17637 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
17638
17639 2017-01-10 Tom Tromey <tom@tromey.com>
17640
17641 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
17642 gdbpy_ref.
17643
17644 2017-01-10 Tom Tromey <tom@tromey.com>
17645
17646 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
17647 extra incref.
17648 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
17649 Use gdbpy_ref.
17650
17651 2017-01-10 Tom Tromey <tom@tromey.com>
17652
17653 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
17654 gdbpy_ref.
17655
17656 2017-01-10 Tom Tromey <tom@tromey.com>
17657
17658 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
17659 decref results of PyArg_ParseTupleAndKeywords.
17660
17661 2017-01-10 Tom Tromey <tom@tromey.com>
17662
17663 * python/python.c (python_run_simple_file): Use
17664 unique_xmalloc_ptr, gdbpy_ref.
17665
17666 2017-01-10 Tom Tromey <tom@tromey.com>
17667
17668 * python/py-prettyprint.c (print_stack_unless_memory_error)
17669 (print_string_repr, print_children): Use gdbpy_ref.
17670 (dummy_python_frame): New class.
17671 (dummy_python_frame::dummy_python_frame): Rename from
17672 push_dummy_python_frame.
17673 (py_restore_tstate): Remove.
17674
17675 2017-01-10 Tom Tromey <tom@tromey.com>
17676
17677 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
17678
17679 2017-01-10 Tom Tromey <tom@tromey.com>
17680
17681 * python/python.c (ensure_python_env, restore_python_env):
17682 Remove.
17683 * python/python-internal.h (ensure_python_env): Don't declare.
17684 * varobj.h (varobj_ensure_python_env): Don't declare.
17685 * varobj.c (varobj_ensure_python_env): Remove.
17686
17687 2017-01-10 Tom Tromey <tom@tromey.com>
17688
17689 * varobj.c (varobj_value_get_print_value): Use
17690 gdbpy_enter_varobj.
17691
17692 2017-01-10 Tom Tromey <tom@tromey.com>
17693
17694 * python/py-prettyprint.c (print_string_repr, print_children):
17695 Update.
17696 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
17697 of "encoding".
17698 * varobj.c (varobj_value_get_print_value): Update.
17699 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
17700
17701 2017-01-10 Tom Tromey <tom@tromey.com>
17702
17703 * varobj.c (varobj_get_display_hint)
17704 (dynamic_varobj_has_child_method, install_new_value_visualizer)
17705 (varobj_set_visualizer, free_variable): Use
17706 gdbpy_enter_varobj.
17707
17708 2017-01-10 Tom Tromey <tom@tromey.com>
17709
17710 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
17711 (do_finish_initialization): New function. Use gdbpy_ref.
17712 (gdbpy_finish_initialization): Use gdbpy_enter. Call
17713 do_finish_initialization.
17714
17715 2017-01-10 Tom Tromey <tom@tromey.com>
17716
17717 * python/py-param.c (get_set_value, get_show_value): Use
17718 gdbpy_enter, gdbpy_ref.
17719
17720 2017-01-10 Tom Tromey <tom@tromey.com>
17721
17722 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
17723
17724 2017-01-10 Tom Tromey <tom@tromey.com>
17725
17726 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
17727
17728 2017-01-10 Tom Tromey <tom@tromey.com>
17729
17730 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
17731 Use gdbpy_enter_varobj.
17732
17733 2017-01-10 Tom Tromey <tom@tromey.com>
17734
17735 * varobj.c (gdbpy_enter_varobj): New constructor.
17736 * python/python-internal.h (gdbpy_enter_varobj): New class.
17737 * python/py-varobj.c (py_varobj_get_iterator): Use
17738 gdbpy_enter_varobj.
17739
17740 2017-01-10 Tom Tromey <tom@tromey.com>
17741
17742 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
17743 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
17744 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
17745 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
17746 unique_xmalloc_ptr.
17747 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
17748
17749 2017-01-10 Tom Tromey <tom@tromey.com>
17750
17751 * python/py-xmethods.c (invoke_match_method): Use
17752 gdbpy_ref.
17753
17754 2017-01-10 Tom Tromey <tom@tromey.com>
17755
17756 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
17757 gdbpy_enter, gdbpy_ref.
17758
17759 2017-01-10 Tom Tromey <tom@tromey.com>
17760
17761 * python/python.c (python_interactive_command): Use gdbpy_enter.
17762
17763 2017-01-10 Tom Tromey <tom@tromey.com>
17764
17765 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
17766 gdbpy_ref.
17767
17768 2017-01-10 Tom Tromey <tom@tromey.com>
17769
17770 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
17771 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
17772
17773 2017-01-10 Tom Tromey <tom@tromey.com>
17774
17775 * utils.h (htab_deleter): New struct.
17776 (htab_up): New typedef.
17777 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
17778 gdbpy_enter, gdbpy_ref, htab_up.
17779
17780 2017-01-10 Tom Tromey <tom@tromey.com>
17781
17782 * python/py-unwind.c (pending_frame_invalidate): Remove.
17783 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
17784
17785 2017-01-10 Tom Tromey <tom@tromey.com>
17786
17787 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
17788 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
17789
17790 2017-01-10 Tom Tromey <tom@tromey.com>
17791
17792 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
17793
17794 2017-01-10 Tom Tromey <tom@tromey.com>
17795
17796 * python/python.c (gdbpy_eval_from_control_command)
17797 (gdbpy_source_script, gdbpy_run_events)
17798 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
17799 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
17800 gdbpy_enter.
17801
17802 2017-01-10 Tom Tromey <tom@tromey.com>
17803
17804 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
17805
17806 2017-01-10 Tom Tromey <tom@tromey.com>
17807
17808 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
17809
17810 2017-01-10 Tom Tromey <tom@tromey.com>
17811
17812 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
17813 (python_on_inferior_call_pre, python_on_inferior_call_post)
17814 (python_on_memory_change, python_on_register_change)
17815 (python_inferior_exit, python_new_objfile, add_thread_object)
17816 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
17817
17818 2017-01-10 Tom Tromey <tom@tromey.com>
17819
17820 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
17821 (bpfinishpy_handle_exit): Use gdbpy_enter.
17822
17823 2017-01-10 Tom Tromey <tom@tromey.com>
17824
17825 * python/py-cmd.c (cmdpy_destroyer)
17826 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
17827 gdbpy_enter.
17828
17829 2017-01-10 Tom Tromey <tom@tromey.com>
17830
17831 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
17832 gdbpy_enter.
17833 (gdbpy_breakpoint_has_cond): Likewise.
17834
17835 2017-01-10 Tom Tromey <tom@tromey.com>
17836
17837 * python/python.c (gdbpy_enter): New constructor.
17838 (~gdbpy_enter): New destructor.
17839 (restore_python_env, ensure_python_env): Rewrite.
17840 * python/python-internal.h (gdbpy_enter): New class.
17841
17842 2017-01-10 Tom Tromey <tom@tromey.com>
17843
17844 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
17845
17846 2017-01-10 Tom Tromey <tom@tromey.com>
17847
17848 * python/py-value.c (value_has_field, get_field_flag)
17849 (get_field_type, valpy_getitem, convert_value_from_python): Use
17850 gdbpy_ref.
17851
17852 2017-01-10 Tom Tromey <tom@tromey.com>
17853
17854 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
17855 gdbpy_ref.
17856
17857 2017-01-10 Tom Tromey <tom@tromey.com>
17858
17859 * python/py-prettyprint.c (search_pp_list)
17860 (find_pretty_printer_from_objfiles)
17861 (find_pretty_printer_from_progspace)
17862 (find_pretty_printer_from_gdb, find_pretty_printer)
17863 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
17864 gdbpy_ref.
17865
17866 2017-01-10 Tom Tromey <tom@tromey.com>
17867
17868 * python/py-param.c (call_doc_function): Use gdbpy_ref.
17869
17870 2017-01-10 Tom Tromey <tom@tromey.com>
17871
17872 * python/py-linetable.c (build_line_table_tuple_from_pcs)
17873 (ltpy_get_all_source_lines): Use gdbpy_ref.
17874
17875 2017-01-10 Tom Tromey <tom@tromey.com>
17876
17877 * python/py-framefilter.c (extract_sym, extract_value)
17878 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
17879 gdbpy_ref.
17880
17881 2017-01-10 Tom Tromey <tom@tromey.com>
17882
17883 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
17884
17885 2017-01-10 Tom Tromey <tom@tromey.com>
17886
17887 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
17888
17889 2017-01-10 Tom Tromey <tom@tromey.com>
17890
17891 * python/py-function.c (convert_values_to_python, fnpy_init): Use
17892 gdbpy_ref.
17893
17894 2017-01-10 Tom Tromey <tom@tromey.com>
17895
17896 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
17897
17898 2017-01-10 Tom Tromey <tom@tromey.com>
17899
17900 * python/py-type.c (convert_field, make_fielditem, typy_fields)
17901 (typy_range): Use gdbpy_ref.
17902
17903 2017-01-10 Tom Tromey <tom@tromey.com>
17904
17905 * python/py-threadevent.c (create_thread_event_object): Use
17906 gdbpy_ref.
17907 * python/py-stopevent.c (create_stop_event_object): Simplify.
17908 (emit_stop_event): Use gdbpy_ref.
17909 * python/py-signalevent.c (create_signal_event_object): Use
17910 gdbpy_ref.
17911 * python/py-newobjfileevent.c (create_new_objfile_event_object)
17912 (emit_new_objfile_event, create_clear_objfiles_event_object)
17913 (emit_clear_objfiles_event): Use gdbpy_ref.
17914 * python/py-infevents.c (create_inferior_call_event_object)
17915 (create_register_changed_event_object)
17916 (create_memory_changed_event_object, emit_inferior_call_event)
17917 (emit_memory_changed_event, emit_register_changed_event): Use
17918 gdbpy_ref.
17919 * python/py-exitedevent.c (create_exited_event_object)
17920 (emit_exited_event): Use gdbpy_ref.
17921 * python/py-event.h (evpy_emit_event): Remove
17922 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
17923 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
17924 * python/py-continueevent.c (emit_continue_event): Use
17925 gdbpy_ref.
17926 * python/py-breakpoint.c (gdbpy_breakpoint_created)
17927 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
17928 gdbpy_ref.
17929 * python/py-bpevent.c (create_breakpoint_event_object): Use
17930 gdbpy_ref.
17931
17932 2017-01-10 Tom Tromey <tom@tromey.com>
17933
17934 * python/py-ref.h: New file.
17935
17936 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
17937
17938 * cli-out.c (cli_ui_out::do_redirect): Change return type to
17939 void.
17940 * cli-out.h (cli_ui_out::do_redirect): Likewise.
17941 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
17942 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
17943 * ui-out.c (ui_out::redirect): Likewise.
17944 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
17945 * cli/cli-logging.c (set_logging_redirect): Update call site of
17946 ui_out::redirect.
17947 (handle_redirections): Likewise.
17948 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
17949 * top.c (execute_command_to_string): Likewise.
17950 * utils.c (do_ui_out_redirect_pop): Likewise.
17951
17952 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
17953
17954 * stack.c (_initialize_stack): Update "frame" command help message.
17955
17956 2017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
17957
17958 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
17959
17960 2017-01-06 Yao Qi <yao.qi@linaro.org>
17961
17962 * x86-linux-nat.h: Include gdb_proc_service.h.
17963
17964 2017-01-06 Yao Qi <yao.qi@linaro.org>
17965
17966 * ser-base.h: Include serial.h.
17967
17968 2017-01-06 Yao Qi <yao.qi@linaro.org>
17969
17970 * ppc-linux-tdep.h: Include ppc-tdep.h.
17971
17972 2017-01-06 Yao Qi <yao.qi@linaro.org>
17973
17974 * nat/amd64-linux-siginfo.h: Include signal.h.
17975
17976 2017-01-06 Yao Qi <yao.qi@linaro.org>
17977
17978 * nat/aarch64-linux-hw-point.h: Include break-common.h.
17979
17980 2017-01-06 Yao Qi <yao.qi@linaro.org>
17981
17982 * mi/mi-parse.h: Include mi-cmds.h.
17983
17984 2017-01-06 Yao Qi <yao.qi@linaro.org>
17985
17986 * inf-loop.c: Don't include "target.h".
17987 * inf-loop.h: Include it here.
17988
17989 2017-01-06 Yao Qi <yao.qi@linaro.org>
17990
17991 * dfp.h: Include "dboulest.h" and "expression.h".
17992
17993 2017-01-06 Yao Qi <yao.qi@linaro.org>
17994
17995 * ax-gdb.h: Include "ax.h".
17996
17997 2017-01-06 Yao Qi <yao.qi@linaro.org>
17998
17999 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
18000 with nat/gdb_ptrace.h.
18001
18002 2017-01-05 Yao Qi <yao.qi@linaro.org>
18003
18004 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
18005 new line.
18006 (mips64_fbsd_sigframe_init): Likewise.
18007
18008 2017-01-04 John Baldwin <jhb@FreeBSD.org>
18009
18010 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
18011 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
18012
18013 2017-01-04 John Baldwin <jhb@FreeBSD.org>
18014
18015 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
18016 * NEWS: Mention new FreeBSD/mips native configuration.
18017 * config/mips/fbsd.mh: New file.
18018 * configure.host: Add mips*-*-freebsd*.
18019 * mips-fbsd-nat.c: New file.
18020
18021 2017-01-04 John Baldwin <jhb@FreeBSD.org>
18022
18023 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
18024 (ALLDEPFILES): Add mips-fbsd-tdep.c.
18025 * NEWS: Mention new FreeBSD/mips target.
18026 * configure.tgt: Add mips*-*-freebsd*.
18027 * mips-fbsd-tdep.c: New file.
18028 * mips-fbsd-tdep.h: New file.
18029
18030 2017-01-04 Yao Qi <yao.qi@linaro.org>
18031
18032 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
18033 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
18034
18035 2017-01-01 Joel Brobecker <brobecker@adacore.com>
18036
18037 Update copyright year range in all GDB files.
18038
18039 2017-01-01 Joel Brobecker <brobecker@adacore.com>
18040
18041 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
18042
18043 For older changes see ChangeLog-2016.
18044 \f
18045 Local Variables:
18046 mode: change-log
18047 left-margin: 8
18048 fill-column: 74
18049 version-control: never
18050 coding: utf-8
18051 End: