Add gdb::hash_enum
[binutils-gdb.git] / gdb / ChangeLog
1 2017-12-08 Pedro Alves <palves@redhat.com>
2
3 * common/hash_enum.h: New file.
4
5 2017-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6
7 * dwarf2read.c (create_cu_from_index_list): New from ...
8 (create_cus_from_index_list): ... this function, use it.
9 (dw_expand_symtabs_matching_file_matcher)
10 (dw2_expand_symtabs_matching_one): New from ...
11 (dw2_expand_symtabs_matching): ... this function, use them.
12
13 2017-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
14
15 * defs.h (elf_sym_fns_lazy_psyms, elf_sym_fns_gdb_index): Move here
16 declarations from elfread.c.
17 (dwarf2_initialize_objfile): Change return value.
18 * elfread.c (elf_sym_fns_lazy_psyms, elf_sym_fns_gdb_index): Move these
19 declarations to defs.h.
20 (elf_symfile_read): Adjust dwarf2_initialize_objfile caller.
21 * symfile.h (dwarf2_initialize_objfile): Change return type.
22
23 2017-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
24 Pedro Alves <palves@redhat.com>
25
26 * contrib/gdb-add-index.sh (index): Rename to ...
27 (index4): ... here.
28 (index5, debugstr, debugstrmerge, debugstrerr): New variables.
29 Support also .debug_names and .debug_str.
30 * dwarf2read.c: Include cmath, set, list.
31 (INDEX_SUFFIX): Rename to ...
32 (INDEX4_SUFFIX): ... here.
33 (INDEX5_SUFFIX, DEBUG_STR_SUFFIX): New.
34 (file_write(FILE *, const void *, size_t)): New.
35 (file_write(FILE *, const std::vector<Elem, Alloc> &)): New.
36 (data_buf::append_unsigned_leb128, data_buf::empty): New.
37 (data_buf::file_write): Use ::file_write.
38 (data_buf::c_str, dwarf5_djb_hash, debug_names)
39 (check_dwarf64_offsets): New.
40 (psyms_seen_size, write_gdbindex): New from
41 write_psymtabs_to_index code.
42 (dwarf5_gdb_augmentation, write_debug_names, assert_file_size)
43 (enum dw_index_kind): New.
44 (write_psymtabs_to_index): New parameter index_kind. Support
45 filename_str and out_file_str. Move code to write_gdbindex,
46 possibly call write_debug_names.
47 (save_gdb_index_command): New parameter -dwarf-5.
48 (_initialize_dwarf2_read): Document the new parameter -dwarf-5.
49
50 2017-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
51 Pedro Alves <palves@redhat.com>
52
53 * contrib/cc-with-tweaks.sh: Change interpreter to bash, incl. initial
54 comment.
55 (GDB_ADD_INDEX): New variable.
56 <$want_index>: Call $GDB_ADD_INDEX.
57
58 2017-12-08 Sergio Durigan Junior <sergiodj@redhat.com>
59
60 * dtrace-probe.c (dtrace_process_dof_probe): Do not declare a new
61 "expression_up" inside the TRY block.
62
63 2017-12-08 Yao Qi <yao.qi@linaro.org>
64
65 * breakpoint.c (update_watchpoint): Call
66 address_significant.
67
68 2017-12-08 Yao Qi <yao.qi@linaro.org>
69
70 * breakpoint.c (adjust_breakpoint_address): Call
71 address_significant.
72
73 2017-12-08 Yao Qi <yao.qi@linaro.org>
74
75 * aarch64-tdep.c (aarch64_gdbarch_init): Install gdbarch
76 significant_addr_bit.
77 * gdbarch.sh (significant_addr_bit): New.
78 * gdbarch.c, gdbarch.h: Re-generated.
79 * target.c (memory_xfer_partial): Call address_significant.
80 * utils.c (address_significant): New function.
81 * utils.h (address_significant): Declare.
82
83 2017-12-08 Tom Tromey <tom@tromey.com>
84
85 * printcmd.c (ui_printf): Update. Use std::vector.
86 * common/format.h (struct format_piece): Add constructor.
87 <string>: Now const.
88 (class format_pieces): New class.
89 (parse_format_string, free_format_pieces)
90 (free_format_pieces_cleanup): Remove.
91 * common/format.c (format_pieces::format_pieces): Rename from
92 parse_format_string. Update.
93 (free_format_pieces, free_format_pieces_cleanup): Remove.
94 * breakpoint.c (parse_cmd_to_aexpr): Update. Use std::vector.
95 * ax-gdb.h (gen_printf): Remove argument.
96 * ax-gdb.c (gen_printf): Remove "frags" argument.
97 (maint_agent_printf_command): Update. Use std::vector.
98
99 2017-12-08 Yao Qi <yao.qi@linaro.org>
100
101 PR breakpionts/22567
102 * linespec.c (minsym_found): Set sal.section.
103
104 2017-12-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
105
106 * configure.tgt (s390*-*-linux*): Add symfile-mem.o.
107
108 2017-12-07 Keith Seitz <keiths@redhat.com>
109
110 PR breakpoints/22569
111 * location.c (string_to_explicit_location): When terminating
112 parsing early, break out of enclosing loop instead of returning.
113
114 2017-12-07 Keith Seitz <keiths@redhat.com>
115
116 * NEWS (New commands): Mention set/show print type nested-type-limit.
117 * c-typeprint.c (c_type_print_base): Print out nested types.
118 * dwarf2read.c (struct typedef_field_list): Rename to ...
119 (struct decl_field_list): ... this. Change all uses.
120 (struct field_info) <nested_types_list, nested_types_list_count>:
121 New fields.
122 (add_partial_symbol): Look for nested type definitions in C++, too.
123 (dwarf2_add_typedef): Rename to ...
124 (dwarf2_add_type_defn): ... this.
125 (type_can_define_types): New function.
126 Update assertion to use type_can_define_types.
127 Permit NULL for a field's name.
128 (process_structure_scope): Handle child DIEs of types that can
129 define types.
130 Copy the list of nested types into the type struct.
131 * gdbtypes.h (struct typedef_field): Rename to ...
132 (struct decl_field): ... this. Change all uses.
133 [is_protected, is_private]: New fields.
134 (struct cplus_struct_type) <nested_types, nested_types_count>: New
135 fields.
136 (TYPE_NESTED_TYPES_ARRAY, TYPE_NESTED_TYPES_FIELD)
137 (TYPE_NESTED_TYPES_FIELD_NAME, TYPE_NESTED_TYPES_FIELD_TYPE)
138 (TYPE_NESTED_TYPES_COUNT, TYPE_NESTED_TYPES_FIELD_PROTECTED)
139 (TYPE_NESTED_TYPES_FIELD_PRIVATE): New macros.
140 * typeprint.c (type_print_raw_options, default_ptype_flags): Add
141 default value for print_nested_type_limit.
142 (print_nested_type_limit): New static variable.
143 (set_print_type_nested_types, show_print_type_nested_types): New
144 functions.
145 (_initialize_typeprint): Register new commands for set/show
146 `print-nested-type-limit'.
147 * typeprint.h (struct type_print_options) [print_nested_type_limit]:
148 New field.
149
150 2017-12-07 Tom Tromey <tom@tromey.com>
151
152 PR breakpoints/22511:
153 * breakpoint.c (commands_command_1): Don't throw an exception when
154 no commands have been read.
155
156 2017-12-07 Adam Stylinski <adam.stylinski@etegent.com>
157
158 PR c++/21222
159 * target-descriptions.c (print_c_tdesc::visit_pre): Change type of
160 range-for variable.
161
162 2017-12-07 Simon Marchi <simon.marchi@ericsson.com>
163
164 * common/selftest.h (struct selftest): Add virtual destructor.
165
166 2017-12-07 Phil Muldoon <pmuldoon@redhat.com>
167
168 * python/py-breakpoint.c (bppy_init): Use string_to_event_location
169 over basic location code. Implement explicit location keywords.
170 (bppy_init_validate_args): New function.
171 * NEWS: Document Python explicit breakpoint locations.
172
173 2017-12-07 Joel Brobecker <brobecker@adacore.com>
174
175 * MAINTAINERS: Restore target entries for m68hc11-elf,
176 score-elf and xstormy16-elf, incorrectly removed in a previous
177 patch meant to only update the list of active maintainers.
178
179 2017-12-06 Pedro Alves <palves@redhat.com>
180
181 * break-catch-syscall.c (insert_catch_syscall)
182 (remove_catch_syscall): Adjust to pass reference to
183 inf_data->syscalls_counts directly via gdb::array_view.
184 * fbsd-nat.c (fbsd_set_syscall_catchpoint): Adjust to use bool
185 and gdb::array_view.
186 * linux-nat.c (linux_child_set_syscall_catchpoint): Likewise.
187 * remote.c (remote_set_syscall_catchpoint): Likewise.
188 * target-debug.h (target_debug_print_bool): New.
189 (define target_debug_print_gdb_array_view_const_int): New.
190 * target-delegates.c: Regenerate.
191 * target.h (target_ops) <to_set_syscall_catchpoint>: Use
192 gdb::array_view and bool.
193 (target_set_syscall_catchpoint): Likewise.
194
195 2017-12-06 Simon Marchi <simon.marchi@ericsson.com>
196
197 * break-catch-syscall.c (catch_syscall_completer): Get pointers
198 to syscall group strings after building the string vector.
199
200 2017-12-06 Pedro Alves <palves@redhat.com>
201
202 * remote.c (remote_query_supported): Don't send "xmlRegisters=" if
203 "qXfer:features:read"" is disabled.
204 (remote_write_qxfer, remote_read_qxfer, remote_search_memory):
205 Check packet_config_support instead of packet->support directly.
206
207 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
208
209 * target-descriptions.c (struct tdesc_feature) <registers>: Use
210 tdesc_reg_up typedef.
211 (struct target_desc) <features>: Use tdesc_feature_up typedef.
212
213 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
214
215 * target-descriptions.c (struct tdesc_type): Use default
216 destructor.
217 <u>: Remove.
218 <accept>: Remove.
219 (struct tdesc_type_builtin): New.
220 (struct tdesc_type_vector): New.
221 (struct tdesc_type_with_fields): New.
222 (tdesc_predefined_types): Change type to tdesc_type_builtin[].
223 (tdesc_gdb_type): Remove.
224 (tdesc_register_type): Adjust.
225 (tdesc_create_vector): Create tdesc_type_vector.
226 (tdesc_create_struct): Create tdesc_type_with_fields.
227 (tdesc_set_struct_size): Change parameter type.
228 (tdesc_create_union): Create tdesc_type_with_fields.
229 (tdesc_create_flags): Likewise.
230 (tdesc_create_enum): Likewise.
231 (tdesc_add_field): Change parameter type.
232 (tdesc_add_typed_bitfield): Likewise.
233 (tdesc_add_bitfield): Likewise.
234 (tdesc_add_flag): Likewise.
235 (tdesc_add_enum_value): Likewise.
236 (print_c_tdesc) <visit>: Remove overload with tdesc_type
237 parameter, add overloads for tdesc_type_builtin,
238 tdesc_type_with_fields and tdesc_type_vector.
239 <m_printed_type>: Remove.
240 <m_printed_element_type, m_printed_type_with_fields>: Add.
241 * target-descriptions.h (tdesc_create_enum): Change return type.
242 (tdesc_add_typed_bitfield): Change parameter type.
243 (tdesc_add_enum_value): Change parameter type.
244 * xml-tdesc.c (struct tdesc_parsing_data) <current_type>: Change
245 type to tdesc_type_with_fields.
246 (tdesc_start_struct): Adjust.
247 (tdesc_start_flags): Adjust.
248 (tdesc_start_enum): Adjust.
249 (tdesc_start_field): Adjust.
250 * arch/tdesc.h (struct tdesc_type_builtin): Forward-declare.
251 (struct tdesc_type_vector): Forward-declare.
252 (struct tdesc_type_with_fields): Forward-declare.
253 (tdesc_create_struct): Change return type.
254 (tdesc_create_union): Likewise.
255 (tdesc_create_flags): Likewise.
256 (tdesc_add_field): Change parameter type.
257 (tdesc_set_struct_size): Likewise.
258 (tdesc_add_bitfield): Likewise.
259 (tdesc_add_flag): Likewise.
260 * features: Re-generate C files.
261
262 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
263
264 * target-descriptions.c (tdesc_arch_reg): Remove typedef.
265 (struct tdesc_arch_reg): Add constructor.
266 (DEF_VEC_O (tdesc_arch_reg)): Remove.
267 (struct tdesc_arch_data): Initialize fields.
268 <arch_regs>: Change type to std::vector.
269 (target_find_description): Adjust.
270 (tdesc_find_type): Adjust.
271 (tdesc_data_init): Call tdesc_arch_data constructor.
272 (tdesc_data_alloc): Allocate tdesc_arch_data with new.
273 (tdesc_data_cleanup): Free data with delete.
274 (tdesc_numbered_register): Adjust.
275 (tdesc_find_arch_register): Adjust.
276 (tdesc_use_registers): Adjust.
277
278 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
279
280 * target-descriptions.c (tdesc_type_field): Remove typedef.
281 (DEF_VEC_O (tdesc_type_field)): Remove.
282 (struct tdesc_type_field): Add constructor.
283 <name>: Change type to std::string.
284 (struct tdesc_type) <tdesc_type>: Instantiate vector if the type
285 kind uses it.
286 <~tdesc_type>: Destroy vector if the type kind uses it.
287 <u::u::fields>: Change type to std::vector.
288 (tdesc_gdb_type): Adjust.
289 (tdesc_add_field): Adjust.
290 (tdesc_add_typed_bitfield): Adjust.
291 (tdesc_add_field): Adjust.
292 (tdesc_add_enum_value): Adjust.
293 (class print_c_tdesc) <visit>: Adjust.
294
295 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
296
297 * target-descriptions.c (struct tdesc_type) <name>: Change type
298 to std::string.
299 <~tdesc_type>: Don't manually free name.
300 <operator==>: Adjust.
301 (tdesc_named_type): Adjust.
302 (tdesc_find_type): Adjust.
303 (tdesc_gdb_type): Adjust.
304 (class print_c_tdesc) <visit>: Adjust.
305
306 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
307
308 * target-descriptions.c (tdesc_type_p): Remove typedef.
309 (DEF_VEC_P (tdesc_type_p)): Remove.
310 (struct tdesc_feature) <types>: Change type to std::vector.
311 <~tdesc_feature>: Replace with default implementation.
312 <accept>: Adjust.
313 (tdesc_named_type): Adjust.
314 (tdesc_create_vector): Adjust.
315 (tdesc_create_struct): Adjust.
316 (tdesc_create_union): Adjust.
317 (tdesc_create_flags): Adjust.
318 (tdesc_create_enum): Adjust.
319
320 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
321
322 * target-descriptions.c (struct tdesc_reg) <tdesc_reg>: Change
323 type of name_ parameter, adjust to std::string change.
324 <name, group, type>: Change type to std::string.
325 <~tdesc_reg>: Replace with default implementation.
326 <operator==>: Adjust.
327 (tdesc_find_register_early): Adjust.
328 (tdesc_register_name): Adjust.
329 (tdesc_register_type): Adjust.
330 (tdesc_register_in_reggroup_p): Adjust.
331 (class print_c_tdesc) <visit>: Adjust.
332 (class print_c_feature) <visit>: Adjust.
333 * features/arc-arcompact.c: Re-generate.
334 * features/arc-v2.c: Re-generate.
335
336 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
337
338 * target-descriptions.c (tdesc_reg_p): Remove typedef.
339 (DEF_VEC_P (tdesc_reg_p)): Remove.
340 (struct tdesc_feature) <registers>: Change type to std::vector.
341 <~tdesc_feature>: Don't manually free registers.
342 <accept>: Adjust.
343 <operator==>: Adjust.
344 (tdesc_has_registers): Adjust.
345 (tdesc_find_register_early): Adjust.
346 (tdesc_use_registers): Adjust.
347 (tdesc_create_reg): Adjust.
348
349 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
350
351 * target-descriptions.c (tdesc_feature) <name>: Change type to
352 std::string.
353 <~tdesc_feature>: Don't manually free name.
354 <operator==>: Adjust.
355 (tdesc_find_feature): Adjust.
356 (tdesc_feature_name): Adjust.
357 (class print_c_tdesc) <visit_pre>: Adjust.
358 (class print_c_feature) <visit_pre>: Adjust.
359
360 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
361
362 * target-descriptions.c (tdesc_feature_p): Remove typedef.
363 (DEF_VEC_P (tdesc_feature_p)): Remove.
364 (struct target_desc) <features>: Change type to std::vector.
365 <~target_desc>: Replace with default implementation.
366 <accept>: Adjust.
367 <operator==>: Adjust.
368 (tdesc_has_registers): Adjust.
369 (tdesc_find_feature): Adjust.
370 (tdesc_use_registers): Adjust.
371 (tdesc_create_feature): Adjust.
372
373 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
374
375 * target-descriptions.c (arch_p): Remove typedef.
376 (DEF_VEC_P (arch_p)): Remove.
377 (struct target_desc) <compatible>: Change type to std::vector.
378 <~target_desc>: Don't manually free compatible.
379 (tdesc_compatible_p): Adjust.
380 (tdesc_add_compatible): Adjust.
381 (class print_c_tdesc) <visit_pre>: Adjust.
382
383 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
384
385 * target-descriptions.c (property_s): Remove typedef.
386 (DEF_VEC_O (property_s)): Remove.
387 (struct target_desc) <properties>: Make an std::vector.
388 <~target_desc>: Don't manually free properties.
389 (tdesc_property): Adjust.
390 (set_tdesc_property): Adjust.
391 (class print_c_tdesc) <visit_pre>: Adjust.
392
393 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
394
395 * common/gdb_assert.h (gdb_static_assert): Redefine using
396 static_assert.
397
398 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
399
400 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
401 unused variables.
402 (ada_is_redundant_range_encoding): Likewise.
403 * ada-varobj.c (ada_varobj_get_value_of_array_variable):
404 Likewise.
405 * alpha-tdep.c (alpha_software_single_step): Likewise.
406 * arm-tdep.c (_initialize_arm_tdep): Likewise.
407 * auto-load.c (info_auto_load_cmd): Likewise.
408 * break-catch-syscall.c (insert_catch_syscall): Likewise.
409 (remove_catch_syscall): Likewise.
410 * breakpoint.c (condition_completer): Likewise.
411 (clear_command): Likewise.
412 (update_breakpoint_locations): Likewise.
413 * btrace.c (btrace_disable): Likewise.
414 (btrace_teardown): Likewise.
415 (btrace_maint_update_pt_packets): Likewise.
416 (maint_btrace_clear_cmd): Likewise.
417 * cli/cli-decode.c (lookup_cmd_1): Likewise.
418 (lookup_cmd_composition): Likewise.
419 * cli/cli-dump.c (scan_filename): Likewise.
420 (restore_command): Likewise.
421 * compile/compile-loc2c.c (compute_stack_depth): Likewise.
422 * compile/compile-object-load.c (compile_object_load): Likewise.
423 * compile/compile-object-run.c (compile_object_run): Likewise.
424 * compile/compile.c (compile_to_object): Likewise.
425 * completer.c (filename_completer): Likewise.
426 (complete_files_symbols): Likewise.
427 (complete_expression): Likewise.
428 * corelow.c (core_open): Likewise.
429 * ctf.c (ctf_start): Likewise.
430 (ctf_write_status): Likewise.
431 (ctf_write_uploaded_tsv): Likewise.
432 (ctf_write_definition_end): Likewise.
433 (ctf_open_dir): Likewise.
434 (ctf_xfer_partial): Likewise.
435 (ctf_trace_find): Likewise.
436 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
437 Likewise.
438 * dwarf2loc.c (allocate_piece_closure): Likewise.
439 (indirect_pieced_value): Likewise.
440 (dwarf2_evaluate_loc_desc_full): Likewise.
441 * dwarf2read.c (dw2_expand_marked_cus): Likewise.
442 (dw2_expand_symtabs_matching): Likewise.
443 (dw2_map_symbol_filenames): Likewise.
444 (read_and_check_comp_unit_head): Likewise.
445 (read_cutu_die_from_dwo): Likewise.
446 (lookup_dwo_unit): Likewise.
447 (read_comp_units_from_section): Likewise.
448 (dwarf2_compute_name): Likewise.
449 (handle_DW_AT_stmt_list): Likewise.
450 (create_cus_hash_table): Likewise.
451 (create_dwp_v2_section): Likewise.
452 (dwarf2_rnglists_process): Likewise.
453 (dwarf2_ranges_process): Likewise.
454 (dwarf2_record_block_ranges): Likewise.
455 (is_vtable_name): Likewise.
456 (read_formatted_entries): Likewise.
457 (skip_form_bytes): Likewise.
458 * elfread.c (elf_symtab_read): Likewise.
459 * exec.c (exec_file_command): Likewise.
460 * f-valprint.c (f_val_print): Likewise.
461 (info_common_command_for_block): Likewise.
462 * guile/guile.c (initialize_scheme_side): Likewise.
463 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Likewise.
464 * guile/scm-cmd.c (cmdscm_completer): Likewise.
465 (gdbscm_register_command_x): Likewise.
466 * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
467 * guile/scm-param.c (gdbscm_parameter_value): Likewise.
468 * guile/scm-ports.c (file_port_magic): Likewise.
469 * guile/scm-pretty-print.c (ppscm_search_pp_list): Likewise.
470 (ppscm_pretty_print_one_value): Likewise.
471 (ppscm_print_children): Likewise.
472 * guile/scm-string.c (gdbscm_string_to_argv): Likewise.
473 * guile/scm-symtab.c (gdbscm_sal_symtab): Likewise.
474 * guile/scm-type.c (gdbscm_type_next_field_x): Likewise.
475 * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
476 * i386-tdep.c (i386_register_reggroup_p): Likewise.
477 * infcmd.c (run_command_1): Likewise.
478 (until_next_fsm_clean_up): Likewise.
479 * linespec.c (linespec_complete): Likewise.
480 (find_label_symbols): Likewise.
481 * m2-valprint.c (m2_val_print): Likewise.
482 * memattr.c (require_user_regions): Likewise.
483 (lookup_mem_region): Likewise.
484 (disable_mem_command): Likewise.
485 (mem_delete): Likewise.
486 * mep-tdep.c (mep_register_name): Likewise.
487 (mep_analyze_prologue): Likewise.
488 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Likewise.
489 * mi/mi-interp.c (mi_on_sync_execution_done): Likewise.
490 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
491 * microblaze-linux-tdep.c (microblaze_linux_init_abi): Likewise.
492 * minidebug.c (lzma_open): Likewise.
493 * minsyms.c (lookup_minimal_symbol): Likewise.
494 * mips-linux-tdep.c (mips64_fill_fpregset): Likewise.
495 * mips-tdep.c (mips_stub_frame_sniffer): Likewise.
496 (mips_o64_return_value): Likewise.
497 (mips_single_step_through_delay): Likewise.
498 (_initialize_mips_tdep): Likewise.
499 * nios2-tdep.c (nios2_push_dummy_call): Likewise.
500 (nios2_software_single_step): Likewise.
501 * parse.c (find_minsym_type_and_address): Likewise.
502 * psymtab.c (psym_relocate): Likewise.
503 * python/py-breakpoint.c (bppy_get_commands): Likewise.
504 (gdbpy_breakpoint_modified): Likewise.
505 * python/py-infevents.c (create_inferior_call_event_object):
506 Likewise.
507 * python/py-record-btrace.c (btpy_list_item): Likewise.
508 * python/py-type.c (typy_str): Likewise.
509 * python/py-value.c (valpy_call): Likewise.
510 * python/python.c (do_start_initialization): Likewise.
511 * record-btrace.c (record_btrace_insn_history_range): Likewise.
512 (record_btrace_call_history_range): Likewise.
513 (record_btrace_record_method): Likewise.
514 (record_btrace_xfer_partial): Likewise.
515 (btrace_get_frame_function): Likewise.
516 * record-full.c (record_full_open): Likewise.
517 * record.c (get_context_size): Likewise.
518 * registry.h (DEFINE_REGISTRY): Likewise.
519 * remote-fileio.c (remote_fileio_request): Likewise.
520 * remote.c (remote_update_thread_list): Likewise.
521 (remote_check_symbols): Likewise.
522 (remote_commit_resume): Likewise.
523 (remote_interrupt): Likewise.
524 (remote_insert_breakpoint): Likewise.
525 (compare_sections_command): Likewise.
526 * rust-exp.y (super_name): Likewise.
527 (lex_string): Likewise.
528 (convert_ast_to_type): Likewise.
529 (convert_ast_to_expression): Likewise.
530 * rust-lang.c (rust_print_struct_def): Likewise.
531 (rust_print_type): Likewise.
532 (rust_evaluate_subexp): Likewise.
533 * rx-tdep.c (rx_register_type): Likewise.
534 * ser-event.c (serial_event_clear): Likewise.
535 * serial.c (serial_open): Likewise.
536 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
537 * symfile.c (section_is_overlay): Likewise.
538 (overlay_unmapped_address): Likewise.
539 (overlay_mapped_address): Likewise.
540 (simple_overlay_update_1): Likewise.
541 (simple_overlay_update): Likewise.
542 * symtab.c (symbol_find_demangled_name): Likewise.
543 (search_symbols): Likewise.
544 * target-descriptions.c (tdesc_predefined_type): Likewise.
545 * target.c (target_commit_resume): Likewise.
546 * thread.c (print_selected_thread_frame): Likewise.
547 * top.c (new_ui_command): Likewise.
548 (gdb_readline_no_editing): Likewise.
549 * tracefile-tfile.c (tfile_open): Likewise.
550 * tracepoint.c (create_tsv_from_upload): Likewise.
551 * utils.c (quit): Likewise.
552 (defaulted_query): Likewise.
553 * valarith.c (value_concat): Likewise.
554 * xml-syscall.c (xml_list_syscalls_by_group): Likewise.
555 * xml-tdesc.c (target_fetch_description_xml): Likewise.
556 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
557 (xtensa_pseudo_register_write): Likewise.
558
559 2017-12-04 Tom Tromey <tom@tromey.com>
560
561 * NEWS: Mention Rust trait object inspection.
562
563 2017-12-04 Pedro Alves <palves@redhat.com>
564
565 PR gdb/22499
566 * amd64-tdep.c (amd64_insn::rex_offset): Rename to...
567 (amd64_insn::enc_prefix_offset): ... this, and tweak comment.
568 (vex2_prefix_p, vex3_prefix_p): New functions.
569 (amd64_get_insn_details): Adjust to rename. Also skip VEX2 and
570 VEX3 prefixes.
571 (fixup_riprel): Set VEX3.!B.
572
573 2017-12-03 Simon Marchi <simon.marchi@ericsson.com>
574
575 * target.h (mem_region_vector): Remove.
576 (struct target_ops) <to_memory_map>: Change return type to
577 std::vector<mem_region>.
578 * target-debug.h (target_debug_print_mem_region_vector): Rename
579 to ...
580 (target_debug_print_std_vector_mem_region): ... this.
581 * target-delegates.c: Re-generate.
582
583 2017-12-03 Pedro Alves <palves@redhat.com>
584
585 * make-target-delegates (munge_type): Also munge '<', '>', and
586 ':'. Avoid double underscores in identifiers, and trailing
587 underscores.
588 * target-debug.h
589 (target_debug_print_VEC_static_tracepoint_marker_p__p): Rename to
590 ...
591 (target_debug_print_VEC_static_tracepoint_marker_p_p): ... this.
592 * target-delegates.c: Regenerate.
593
594 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
595
596 * common/poison.h (XDELETE): Fix typo.
597
598 2017-12-01 Andrew Cagney <cagney@redhat.com>
599 Joel Brobecker <brobecker@adacore.com>
600 Sergio Durigan Junior <sergiodj@redhat.com>
601
602 * NEWS (Changes since GDB 8.0: Mention new '--readnever'
603 feature.
604 * coffread.c (coff_symfile_read): Do not map over sections with
605 'coff_locate_sections' if readnever is on.
606 * dwarf2read.c (dwarf2_has_info): Return 0 if
607 readnever is on.
608 * elfread.c (elf_symfile_read): Do not map over sections with
609 'elf_locate_sections' if readnever is on.
610 * main.c (validate_readnow_readnever): New function.
611 (captured_main_1): Add support for --readnever.
612 (print_gdb_help): Document --readnever.
613 * objfile-flags.h (enum objfile_flag) <OBJF_READNEVER>: New
614 flag.
615 * symfile.c (readnever_symbol_files): New global.
616 (symbol_file_add_with_addrs): Set 'OBJF_READNEVER' when
617 'READNEVER_SYMBOL_FILES' is set.
618 (validate_readnow_readnever): New function.
619 (symbol_file_command): Handle '-readnever' option.
620 Call 'validate_readnow_readnever'.
621 (add_symbol_file_command): Handle '-readnever' option.
622 Call 'validate_readnow_readnever'.
623 (_initialize_symfile): Document new '-readnever' option for
624 both 'symbol-file' and 'add-symbol-file' commands.
625 * top.h (readnever_symbol_files): New extern global.
626 * xcoffread.c (xcoff_initial_scan): Do not read debug
627 information if readnever is on.
628
629 2017-12-01 Sergio Durigan Junior <sergiodj@redhat.com>
630
631 * symfile.c (symbol_file_command): Call
632 'symbol_file_add_main_1' only after processing all command
633 line options.
634 (add_symbol_file_command): Modify logic to make arguments
635 position-independent.
636
637 2017-12-01 Joel Brobecker <brobecker@adacore.com>
638
639 * ada-lang.c (symbol_list_obstack): Delete.
640 (resolve_subexp): Make sure "candidates" gets xfree'ed.
641 (ada_lookup_symbol_list_worker): Remove the limitation that
642 the result is only good until the next call, now making it
643 the responsibility of the caller to free the result when no
644 longer needed. Adjust the function's intro comment accordingly.
645 (ada_lookup_symbol_list): Adjust the function's intro comment.
646 (ada_iterate_over_symbols): Make sure "results" gets xfree'ed.
647 (ada_lookup_encoded_symbol, get_var_value): Likewise.
648 (_initialize_ada_language): Remove symbol_list_obstack
649 initialization.
650 * ada-exp.y (block_lookup): Make sure "syms" gets xfree'ed.
651 (write_var_or_type, write_name_assoc): Likewise.
652
653 2017-12-01 Tom Tromey <tom@tromey.com>
654
655 * Makefile.in (all_deps_files): New variable.
656 Include .Po files using all_deps_files.
657
658 2017-12-01 Joel Brobecker <brobecker@adacore.com>
659
660 * MAINTAINERS: Update list of maintainers, moving those who
661 stepped down or became inactive to the "Past Maintainers"
662 section.
663
664 2017-11-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
665
666 * configure.ac Don't check for sys/fault.h, sys/syscall.h,
667 sys/proc.h.
668 (NEW_PROC_API): Remove.
669 (prsysent_t, pr_sigset_t, pr_sigaction64_t, pr_siginfo64_t):
670 Likewise.
671 * common/common.m4 (GDB_AC_COMMON): Don't check for sys/syscall.h.
672 * configure: Regenerate.
673 * config.in: Regenerate.
674 * gdbserver/configure: Regenerate.
675 * gdbserver/config.in: Regenerate.
676
677 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Remove
678 NEW_PROC_API test.
679 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Likewise.
680
681 * linux-btrace.c: Remove HAVE_SYS_SYSCALL_H test.
682
683 * proc-api.c: Remove !NEW_PROC_API support.
684 Remove HAVE_SYS_PROC_H and HAVE_SYS_USER_H tests.
685 Remove tests for macros always defined on Solaris.
686 * proc-events.c: Remove !NEW_PROC_API support.
687 Remove Remove HAVE_SYS_SYSCALL_H, HAVE_SYS_PROC_H and
688 HAVE_SYS_USER_H tests.
689 (init_syscall_table): Remove non-Solaris syscalls.
690 Remove tests for syscalls present on all Solaris versions.
691 Add missing Solaris 10+ syscalls.
692 (signal_table): Remove non-Solaris signals.
693 Remove tests for signals present on all Solaris versions.
694 (fault_table): Remove non-Solaris faults.
695 Remove tests for faults present on all Solaris versions.
696 * proc-flags.c: Remove !NEW_PROC_API support.
697 (pr_flag_table): Remove non-Solaris and pre-Solaris 7 comments.
698 Remove non-Solaris flags.
699 * proc-why.c: Remove !NEW_PROC_API support.
700 (pr_why_table): Remove meaningless comments.
701 Remove tests for reasons present on all Solaris versions.
702 Remove OSF/1 cases.
703 (proc_prettyfprint_why): Likewise.
704
705 * procfs.c: Remove !NEW_PROC_API and DYNAMIC_SYSCALLS support.
706 Remove HAVE_SYS_FAULT_H and HAVE_SYS_SYSCALL_H tests.
707 Remove WA_READ test, IRIX watchpoint support.
708 (gdb_sigset_t, gdb_sigaction_t, gdb_siginfo_t): Replace by base
709 types. Change users.
710 (gdb_praddset, gdb_prdelset, gdb_premptysysset, gdb_praddsysset)
711 (gdb_prdelset, gdb_pr_issyssetmember): Replace by base macros.
712 Change callers.
713 Remove CTL_PROC_NAME_FMT tests.
714 (gdb_prstatus_t, gdb_lwpstatus_t): Replace by base types. Change
715 users.
716 (sysset_t_size): Remove. Use sizeof (sysset_t) in callers.
717 Remove PROCFS_DONT_PIOCSSIG_CURSIG support.
718 (proc_modify_flag): Replace GDBRESET by PCUNSET.
719 Remove PR_ASYNC, PR_KLC tests.
720 (proc_unset_inherit_on_fork): Remove PR_ASYNC test.
721 (proc_parent_pid): Remove PCWATCH etc. tests.
722 (proc_set_watchpoint): Remove !PCWATCH && !PIOCSWATCH support.
723 Remove PCAGENT test.
724 (proc_get_nthreads) [PIOCNTHR && PIOCTLIST]: Remove.
725 Remove SYS_lwpcreate || SYS_lwp_create test.
726 (proc_get_current_thread): Likewise.
727 [PIOCNTHR && PIOCTLIST]: Remove.
728 [PIOCLSTATUS]: Remove.
729 (procfs_debug_inferior): Remove non-Solaris cases, conditionals.
730 [PRFS_STOPEXEC]: Remove.
731 (syscall_is_lwp_exit): Remove non-Solaris cases, conditionals.
732 (syscall_is_exit): Likewise.
733 (syscall_is_exec): Likewise.
734 (syscall_is_lwp_create): Likewise.
735 Remove SYS_syssgi support.
736 (procfs_wait): Remove PR_ASYNC, !PIOCSSPCACT tests.
737 [SYS_syssgi]: Remove.
738 Remove non-Solaris cases, conditionals.
739 (unconditionally_kill_inferior) [PROCFS_NEED_PIOCSSIG_FOR_KILL]:
740 Remove.
741 (procfs_init_inferior) [SYS_syssgi]: Remove.
742 (procfs_set_exec_trap) [PRFS_STOPEXEC]: Remove.
743 (procfs_inferior_created) [SYS_syssgi]: Remove.
744 (procfs_set_watchpoint): Remove !AIX5 test.
745 (procfs_stopped_by_watchpoint): Remove FLTWATCH test, FLTKWATCH
746 case.
747 (mappingflags) [MA_PHYS]: Remove.
748 (info_mappings_callback): Remove PCAGENT test.
749 Remove PIOCOPENLWP || PCAGENT test.
750
751 2017-11-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
752
753 * sol-thread.c (info_solthreads): Constify args.
754 Cast args to void *.
755
756 2017-11-29 John Baldwin <jhb@FreeBSD.org>
757
758 * target-float.c [HAVE_LIBMPFR]: Define MPFR_USE_INTMAX_T.
759
760 2017-11-29 Joel Brobecker <brobecker@adacore.com>
761
762 * ada-lang.c (to_fixed_range_type): Make sure that the size
763 of the range type being returned is the same as the size
764 of the range type being fixed.
765
766 2017-11-29 Pedro Alves <palves@redhat.com>
767
768 PR c++/19436
769 * NEWS: Mention setting breakpoints on functions with C++ ABI
770 tags.
771 * completer.h (completion_match_for_lcd) <match,
772 mark_ignored_range>: New methods.
773 <finish>: Consider ignored ranges.
774 <clear>: Clear ignored ranges.
775 <m_ignored_ranges, m_finished_storage>: New fields.
776 * cp-support.c (cp_search_name_hash): Ignore ABI tags.
777 (cp_symbol_name_matches_1, cp_fq_symbol_name_matches): Pass the
778 completion_match_for_lcd pointer to strncmp_iw_with_mode.
779 (test_cp_symbol_name_cmp): Add [abi:...] tags unit tests.
780 * language.c (default_symbol_name_matcher): Pass the
781 completion_match_for_lcd pointer to strncmp_iw_with_mode.
782 * linespec.c (linespec_lexer_lex_string): Don't tokenize ABI tags.
783 * utils.c (skip_abi_tag): New function.
784 (strncmp_iw_with_mode): Add completion_match_for_lcd parameter.
785 Handle ABI tags.
786 * utils.h (strncmp_iw_with_mode): Add completion_match_for_lcd
787 parameter.
788
789 2017-11-29 Pedro Alves <palves@redhat.com>
790
791 PR c++/19436
792 * NEWS: Mention setting breakpoints on functions with C++ ABI
793 tags.
794 * completer.h (completion_match_for_lcd) <match,
795 mark_ignored_range>: New methods.
796 <finish>: Consider ignored ranges.
797 <clear>: Clear ignored ranges.
798 <m_ignored_ranges, m_finished_storage>: New fields.
799 * cp-support.c (cp_search_name_hash): Ignore ABI tags.
800 (cp_symbol_name_matches_1, cp_fq_symbol_name_matches): Pass the
801 completion_match_for_lcd pointer to strncmp_iw_with_mode.
802 (test_cp_symbol_name_cmp): Add [abi:...] tags unit tests.
803 * language.c (default_symbol_name_matcher): Pass the
804 completion_match_for_lcd pointer to strncmp_iw_with_mode.
805 * linespec.c (linespec_lexer_lex_string): Don't tokenize ABI tags.
806 * utils.c (skip_abi_tag): New function.
807 (strncmp_iw_with_mode): Add completion_match_for_lcd parameter.
808 Handle ABI tags.
809 * utils.h (strncmp_iw_with_mode): Add completion_match_for_lcd
810 parameter.
811
812 2017-11-29 Pedro Alves <palves@redhat.com>
813
814 * NEWS: Mention that breakpoints on C++ functions are now set on
815 on all namespaces/classes by default, and mention "break
816 -qualified".
817 * ax-gdb.c (agent_command_1): Adjust to pass a
818 symbol_name_match_type to new_linespec_location.
819 * breakpoint.c (parse_breakpoint_sals): Adjust to
820 get_linespec_location's return type change.
821 (strace_marker_create_sals_from_location): Adjust to pass a
822 symbol_name_match_type to new_linespec_location.
823 (strace_marker_decode_location): Adjust to get_linespec_location's
824 return type change.
825 (strace_command): Adjust to pass a symbol_name_match_type to
826 new_linespec_location.
827 (LOCATION_HELP_STRING): Add paragraph about wildmatching, and
828 mention "-qualified".
829 * c-lang.c (cplus_language_defn): Install cp_search_name_hash.
830 * completer.c (explicit_location_match_type::MATCH_QUALIFIED): New
831 enumerator.
832 (complete_address_and_linespec_locations): New parameter
833 'match_type'. Pass it down.
834 (explicit_options): Add "-qualified".
835 (collect_explicit_location_matches): Pass the requested match type
836 to the linespec completers. Handle MATCH_QUALIFIED.
837 (location_completer): Handle "-qualified" combined with linespecs.
838 * cp-support.c (cp_search_name_hash): New.
839 (cp_symbol_name_matches_1): Implement wild matching for C++.
840 (cp_fq_symbol_name_matches): Reimplement.
841 (cp_get_symbol_name_matcher): Return different matchers depending
842 on the lookup name's match type.
843 (selftests::test_cp_symbol_name_matches): Add wild matching tests.
844 * cp-support.h (cp_search_name_hash): New declaration.
845 * dwarf2read.c
846 (selftests::dw2_expand_symtabs_matching::test_symbols): Add
847 symbols.
848 (test_dw2_expand_symtabs_matching_symbol): Add wild matching
849 tests.
850 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Adjust to
851 pass a symbol_name_match_type to new_linespec_location.
852 * linespec.c (linespec_parse_basic): Lookup function symbols using
853 the parser's symbol name match type.
854 (convert_explicit_location_to_linespec): New
855 symbol_name_match_type parameter. Pass it down to
856 find_linespec_symbols.
857 (convert_explicit_location_to_sals): Pass the location's name
858 match type to convert_explicit_location_to_linespec.
859 (parse_linespec): New match_type parameter. Save it in the
860 parser.
861 (linespec_parser_new): Default to symbol_name_match_type::WILD.
862 (linespec_complete_function): New symbol_name_match_type
863 parameter. Use it.
864 (complete_linespec_component): Pass down the parser's recorded
865 name match type.
866 (linespec_complete_label): New symbol_name_match_type parameter.
867 Use it.
868 (linespec_complete): New symbol_name_match_type parameter. Save
869 it in the parser and pass it down. Adjust to
870 get_linespec_location's prototype change.
871 (find_function_symbols, find_linespec_symbols): New
872 symbol_name_match_type parameter. Pass it down instead of
873 assuming symbol_name_match_type::WILD.
874 * linespec.h (linespec_complete, linespec_complete_function)
875 (linespec_complete_label): New symbol_name_match_type parameter.
876 * location.c (event_location::linespec_location): Now a struct
877 linespec_location.
878 (EL_LINESPEC): Adjust.
879 (initialize_explicit_location): Default to
880 symbol_name_match_type::WILD.
881 (new_linespec_location): New symbol_name_match_type parameter.
882 Record it in the location.
883 (get_linespec_location): Now returns a struct linespec_location.
884 (new_explicit_location): Also copy func_name_match_type.
885 (explicit_to_string_internal)
886 (string_to_explicit_location): Handle "-qualified".
887 (copy_event_location): Adjust to LINESPEC_LOCATION type change.
888 Copy symbol_name_match_type fields.
889 (event_location_deleter::operator()): Adjust to LINESPEC_LOCATION
890 type change.
891 (event_location_to_string): Adjust to LINESPEC_LOCATION type
892 change. Handle "-qualfied".
893 (string_to_explicit_location): Handle "-qualified".
894 (string_to_event_location_basic): New symbol_name_match_type
895 parameter. Pass it down.
896 (string_to_event_location): Handle "-qualified".
897 * location.h (struct linespec_location): New.
898 (explicit_location::func_name_match_type): New field.
899 (new_linespec_location): Now returns a const linespec_location *.
900 (string_to_event_location_basic): New symbol_name_match_type
901 parameter.
902 (explicit_completion_info::saw_explicit_location_option): New
903 field.
904 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Adjust to pass a
905 symbol_name_match_type to new_linespec_location.
906 * python/py-breakpoint.c (bppy_init): Likewise.
907 * python/python.c (gdbpy_decode_line): Likewise.
908
909 2017-11-29 Pedro Alves <palves@redhat.com>
910
911 * ada-lang.c (ada_lookup_name_info::matches): Change type of
912 parameter from completion_match to completion_match_result.
913 Adjust.
914 (do_wild_match, do_full_match, ada_symbol_name_matches): Likewise.
915 * completer.c (completion_tracker::maybe_add_completion): Add
916 match_for_lcd parameter and use it.
917 (completion_tracker::add_completion): Likewise.
918 * completer.h (class completion_match_for_lcd): New class.
919 (completion_match_result::match_for_lcd): New field.
920 (completion_match_result::set_match): New method.
921 (completion_tracker): Add comments.
922 (completion_tracker::add_completion): Add match_for_lcd parameter.
923 (completion_tracker::reset_completion_match_result): Reset
924 match_for_lcd too.
925 (completion_tracker::maybe_add_completion): Add match_for_lcd
926 parameter.
927 (completion_tracker::m_lowest_common_denominator_unique): Extend
928 comments.
929 * cp-support.c (cp_symbol_name_matches_1)
930 (cp_fq_symbol_name_matches): Change type of parameter from
931 completion_match to completion_match_result. Adjust.
932 * language.c (default_symbol_name_matcher): Change type of
933 parameter from completion_match to completion_match_result.
934 Adjust.
935 * language.h (completion_match_for_lcd): Forward declare.
936 (default_symbol_name_matcher): Change type of parameter from
937 completion_match to completion_match_result.
938 * symtab.c (compare_symbol_name): Adjust.
939 (completion_list_add_name): Pass the match_for_lcd to the tracker.
940 * symtab.h (ada_lookup_name_info::matches): Change type of
941 parameter from completion_match to completion_match_result.
942 (symbol_name_matcher_ftype): Likewise, and update comments.
943
944 2017-11-29 Pedro Alves <palves@redhat.com>
945
946 * linespec.c (minsym_found, add_minsym): Use msymbol_is_function.
947 * minsyms.c (msymbol_is_text): Delete.
948 (msymbol_is_function): New function.
949 * minsyms.h (msymbol_is_text): Delete.
950 (msymbol_is_function): New declaration.
951 * symtab.c (find_function_alias_target): Use msymbol_is_function.
952
953 2017-11-29 Tom Tromey <tom@tromey.com>
954
955 * Makefile.in (distclean): Handle the case where rmdir fails.
956
957 2017-11-29 Tom Tromey <tom@tromey.com>
958
959 * symfile.c (_initialize_symfile): Update usage text for
960 add-symbol-file, symbol-file, load.
961
962 2017-11-29 Tom Tromey <tom@tromey.com>
963
964 * symfile.c (add_symbol_file_command): Error if some arguments to
965 -s are missing. Change unrecognized-argument error message.
966 (_initialize_symfile): Fix usage text for add-symbol-file.
967
968 2017-11-27 Tom Tromey <tom@tromey.com>
969
970 * Makefile.in (REMOTE_OBS): Remove.
971 (SFILES): Remove remote sources.
972 (COMMON_SFILES): Add remote sources.
973 (ALLDEPFILES): Remove dcache.c.
974
975 2017-11-27 Tom Tromey <tom@tromey.com>
976
977 * Makefile.in (SUBDIR_TARGET_SRCS, SUBDIR_TARGET_OBS): New
978 variables.
979 (SFILES): Use SUBDIR_TARGET_SRCS.
980 (COMMON_OBS): Use SUBDIR_TARGET_OBS. Remove waitstatus.o.
981 (CONFIG_SRC_SUBDIR): Add target.
982 (%.o): Remove target rule.
983
984 2017-11-27 Tom Tromey <tom@tromey.com>
985
986 * Makefile.in (COMMON_OBS): Remove filename-seen-cache.o,
987 registry.o, thread-fsm.o, debug.o.
988 (COMMON_SFILES): Add filename-seen-cache.c, registry.c,
989 thread-fsm.c, debug.c.
990
991 2017-11-27 Tom Tromey <tom@tromey.com>
992
993 * Makefile.in (COMMON_SFILES): New.
994 (SFILES): Move some entries to COMMON_SFILES.
995 (COMMON_OBS): Use COMMON_SFILES.
996
997 2017-11-27 Tom Tromey <tom@tromey.com>
998
999 * Makefile.in (YYFILES): Update comment.
1000 (YYOBJ): Redefine.
1001
1002 2017-11-27 Tom Tromey <tom@tromey.com>
1003
1004 * Makefile.in (SUBDIR_PYTHON_OBS): Redefine.
1005 (CONFIG_SRC_SUBDIR): Add python.
1006 (%.o): Remove python rule.
1007 (python/%.o): New rule.
1008 * configure: Rebuild.
1009 * configure.ac (CONFIG_OBS): Refer to python/python.o
1010
1011 2017-11-27 Tom Tromey <tom@tromey.com>
1012
1013 * configure: Rebuild.
1014 * configure.ac (CONFIG_OBS): Refer to guile/guile.o.
1015 * Makefile.in (SUBDIR_GUILE_OBS): Redefine.
1016 (CONFIG_SRC_SUBDIR): Add guile.
1017 (%.o): Remove guile rule.
1018
1019 2017-11-27 Tom Tromey <tom@tromey.com>
1020
1021 * Makefile.in (SUBDIR_UNITTESTS_OBS): Redefine.
1022 (%.o): Remove unittests rule.
1023 (CONFIG_SRC_SUBDIR): Add unittests.
1024
1025 2017-11-27 Tom Tromey <tom@tromey.com>
1026
1027 * Makefile.in (SUBDIR_TUI_OBS): Redefine.
1028 (CONFIG_SRC_SUBDIR): Add tui.
1029 (%.o): Remove tui rule.
1030
1031 2017-11-27 Tom Tromey <tom@tromey.com>
1032
1033 * Makefile.in (SUBDIR_GCC_COMPILE_OBS): Redefine.
1034 (%.o): Remove compile rule.
1035 (CONFIG_SRC_SUBDIR): Add compile.
1036
1037 2017-11-27 Tom Tromey <tom@tromey.com>
1038
1039 * Makefile.in (SUBDIR_MI_OBS): Redefine.
1040 (%.o): Remove mi rule.
1041 (CONFIG_SRC_SUBDIR): Add mi.
1042 (COMMON_OBS): Use mi/mi-common.o
1043
1044 2017-11-27 Tom Tromey <tom@tromey.com>
1045
1046 * Makefile.in (SUBDIR_CLI_OBS): Redefine.
1047 (%.o): Remove cli rule.
1048 (CONFIG_SRC_SUBDIR): Add cli.
1049
1050 2017-11-27 Tom Tromey <tom@tromey.com>
1051
1052 * configure.ac (CONFIG_SRC_SUBDIR): Don't subst.
1053 * configure: Rebuild.
1054 * Makefile.in (CONFIG_SRC_SUBDIR): Redefine.
1055 (CONFIG_DEP_SUBDIR): New variable.
1056 (%.o): Add order-only dependency.
1057 ($(CONFIG_DEP_SUBDIR)): New target.
1058
1059 2017-11-26 Dominik Czarnota <dominik.b.czarnota@gmail.com>
1060
1061 PR gdb/21945
1062 * findcmd.c (_initialize_mem_search): Update find command help
1063 text.
1064
1065 2017-11-26 Simon Marchi <simon.marchi@polymtl.ca>
1066
1067 * python/python.c (do_start_initialization): Change progname
1068 type to gdb::unique_xmalloc_ptr. Release the pointer when using
1069 Python 2.
1070
1071 2017-11-26 Tom Tromey <tom@tromey.com>
1072
1073 * common/format.h: Add include guards.
1074
1075 2017-11-26 Tom Tromey <tom@tromey.com>
1076
1077 * nat/linux-personality.h (class
1078 maybe_disable_address_space_randomization): New class.
1079 (maybe_disable_address_space_randomization): Don't declare
1080 function.
1081 * nat/linux-personality.c (restore_personality)
1082 (make_disable_asr_cleanup): Remove.
1083 (maybe_disable_address_space_randomization): Now a constructor.
1084 (~maybe_disable_address_space_randomization): New destructor.
1085 * linux-nat.c (linux_nat_create_inferior): Update.
1086
1087 2017-11-26 Tom Tromey <tom@tromey.com>
1088
1089 * gcore.c (write_gcore_file_1): Use gdb::unique_xmalloc_ptr.
1090
1091 2017-11-26 Ulrich Weigand <uweigand@de.ibm.com>
1092
1093 * spu-tdep.c (spu_software_single_step): Access SPU_LSLR_REGNUM as
1094 "cooked" register. Access only first four bytes of branch target
1095 registers.
1096
1097 2017-11-25 Sergio Durigan Junior <sergiodj@redhat.com>
1098
1099 PR gdb/22491
1100 * stap-probe.c (relocate_address): New function.
1101 (stap_probe::get_relocated_address): Use 'relocate_address'.
1102 (stap_probe::set_semaphore): Use 'relocate_address' and pass
1103 'm_sem_addr'.
1104 (stap_probe::clear_semaphore): Likewise.
1105
1106 2017-11-25 Pedro Alves <palves@redhat.com>
1107
1108 * dictionary.c: Include "safe-ctype.h".
1109 * minsyms.c: Include "safe-ctype.h".
1110 * minsyms.c (SYMBOL_HASH_NEXT): Use TOLOWER instead of tolower.
1111
1112 2017-11-25 Pedro Alves <palves@redhat.com>
1113
1114 * completer.c (complete_line_internal_1): Skip spaces until the
1115 start of the command.
1116
1117 2017-11-24 Pedro Alves <palves@redhat.com>
1118
1119 * cp-support.c (cp_symbol_name_matches_1): New, factored out from
1120 cp_fq_symbol_name_matches. Pass language_cplus to
1121 strncmp_with_mode.
1122 (cp_fq_symbol_name_matches): Call cp_symbol_name_matches_1.
1123 (selftests::test_cp_symbol_name_cmp): New.
1124 (_initialize_cp_support): Register "cp_symbol_name_matches"
1125 selftests.
1126 * language.c (default_symbol_name_matcher): Pass language_minimal
1127 to strncmp_iw_with_mode.
1128 * utils.c: Include "cp-support.h" and <algorithm>.
1129 (valid_identifier_name_char, cp_skip_operator_token, skip_ws)
1130 (cp_is_operator): New functions.
1131 (strncmp_iw_with_mode): Use them. Add language parameter. Don't
1132 skip whitespace in the symbol name when the lookup name doesn't
1133 have spaces, and vice versa.
1134 (strncmp_iw, strcmp_iw): Pass language to strncmp_iw_with_mode.
1135 * utils.h (strncmp_iw_with_mode): Add language parameter.
1136
1137 2017-11-24 Joel Brobecker <brobecker@adacore.com>
1138
1139 * ada-lang.c (ada_exception_message_1, ada_exception_message):
1140 New functions.
1141 (print_it_exception): If available, display the exception
1142 message as well.
1143 * NEWS: Document new feature.
1144
1145 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
1146
1147 * configure.nat <spu-linux>: Add fork-inferior.o to NATDEPFILES.
1148
1149 2017-11-24 Philipp Rudo <prudo@linux.vnet.ibm.com>
1150
1151 * dtrace-probe.c (dtrace_probe::build_arg_exprs)
1152 (dtrace_probe::is_enabled, dtrace_probe::enable)
1153 (dtrace_probe::disable): Remove keyword 'struct' at for-range
1154 variable
1155 * probe.c (gen_ui_out_table_header_info)
1156 (print_ui_out_not_applicables): Remove keyword 'struct' at
1157 for-range variable
1158
1159 2017-11-24 Alan Hayward <alan.hayward@arm.com>
1160
1161 * configure.tgt: Add arch/aarch64.o
1162
1163 2017-11-24 Simon Marchi <simon.marchi@polymtl.ca>
1164
1165 * common/common-utils.h: Include poison.h.
1166 (xfree): Remove declaration, add definition with static_assert.
1167 * common/common-utils.c (xfree): Remove.
1168 * common/poison.h (IsMallocatable): Define.
1169 (IsFreeable): Define.
1170 (free): Delete for non-freeable types.
1171 (xnew): New.
1172 (XNEW): Undef and redefine.
1173 (xcnew): New.
1174 (XCNEW): Undef and redefine.
1175 (xdelete): New.
1176 (XDELETE): Undef and redefine.
1177 (xnewvec): New.
1178 (XNEWVEC): Undef and redefine.
1179 (xcnewvec): New.
1180 (XCNEWVEC): Undef and redefine.
1181 (xresizevec): New.
1182 (XRESIZEVEC): Undef and redefine.
1183 (xdeletevec): New.
1184 (XDELETEVEC): Undef and redefine.
1185 (xnewvar): New.
1186 (XNEWVAR): Undef and redefine.
1187 (xcnewvar): New.
1188 (XCNEWVAR): Undef and redefine.
1189 (xresizevar): New.
1190 (XRESIZEVAR): Undef and redefine.
1191
1192 2017-11-24 Simon Marchi <simon.marchi@polymtl.ca>
1193
1194 * gdbthread.h (private_thread_info): Define structure type, add
1195 virtual pure destructor.
1196 (thread_info) <priv>: Change type to unique_ptr.
1197 <private_dtor>: Remove.
1198 * thread.c (add_thread_with_info): Adjust to use of unique_ptr.
1199 (private_thread_info::~private_thread_info): Provide default
1200 implementation.
1201 (thread_info::~thread_info): Don't call private_dtor nor
1202 manually free priv.
1203 * aix-thread.c (private_thread_info): Rename to ...
1204 (aix_thread_info): ... this.
1205 (get_aix_thread_info): New.
1206 (sync_threadlists): Adjust.
1207 (iter_tid): Adjust.
1208 (aix_thread_resume): Adjust.
1209 (aix_thread_fetch_registers): Adjust.
1210 (aix_thread_store_registers): Adjust.
1211 (aix_thread_extra_thread_info): Adjust.
1212 * darwin-nat.h (private_thread_info): Rename to ...
1213 (darwin_thread_info): ... this.
1214 (get_darwin_thread_info): New.
1215 * darwin-nat.c (darwin_init_thread_list): Adjust.
1216 (darwin_check_new_threads): Adjust.
1217 (thread_info_from_private_thread_info): Adjust.
1218 * linux-thread-db.c (private_thread_info): Rename to ...
1219 (thread_db_thread_info): ... this, initialize fields.
1220 (get_thread_db_thread_info): New.
1221 <dying>: Change type to bool.
1222 (update_thread_state): Adjust to type rename.
1223 (record_thread): Adjust to type rename an use of unique_ptr.
1224 (thread_db_pid_to_str): Likewise.
1225 (thread_db_extra_thread_info): Likewise.
1226 (thread_db_thread_handle_to_thread_info): Likewise.
1227 (thread_db_get_thread_local_address): Likewise.
1228 * nto-tdep.h (private_thread_info): Rename to ...
1229 (nto_thread_info): ... this, initialize fields.
1230 (get_nto_thread_info): New.
1231 <name>: Change type to std::string.
1232 * nto-tdep.c (nto_extra_thread_info): Adjust to type rename and
1233 use of unique_ptr.
1234 * nto-procfs.c (update_thread_private_data_name): Adjust to
1235 std::string change, allocate nto_private_thread_info with new.
1236 (update_thread_private_data): Adjust to unique_ptr.
1237 * remote.c (private_thread_info): Rename to ...
1238 (remote_thread_info): ... this, initialize data members with
1239 default values.
1240 <extra, name>: Change type to std::string.
1241 <thread_handle>: Change type to non-pointer.
1242 (free_private_thread_info): Remove.
1243 (get_private_info_thread): Rename to...
1244 (get_remote_thread_info): ... this, change return type, adjust to
1245 use of unique_ptr, use remote_thread_info constructor.
1246 (remote_add_thread): Adjust.
1247 (get_private_info_ptid): Rename to...
1248 (get_remote_thread_info): ...this, change return type.
1249 (remote_thread_name): Use get_remote_thread_info, adjust to
1250 change to std::string.
1251 (struct thread_item) <~thread_item>: Remove.
1252 <thread_handle>: Make non pointer.
1253 (start_thread): Adjust to thread_item::thread_handle type
1254 change.
1255 (remote_update_thread_list): Adjust to type name change, move
1256 strings from temporary to long-lived object instead of
1257 duplicating.
1258 (remote_threads_extra_info): Use get_remote_thread_info.
1259 (process_initial_stop_replies): Likewise.
1260 (resume_clear_thread_private_info): Likewise.
1261 (remote_resume): Adjust to type name change.
1262 (remote_commit_resume): Use get_remote_thread_info.
1263 (process_stop_reply): Adjust to type name change.
1264 (remote_stopped_by_sw_breakpoint): Use get_remote_thread_info.
1265 (remote_stopped_by_hw_breakpoint): Likewise.
1266 (remote_stopped_by_watchpoint): Likewise.
1267 (remote_stopped_data_address): Likewise.
1268 (remote_core_of_thread): Likewise.
1269 (remote_thread_handle_to_thread_info): Use
1270 get_private_info_thread, adjust to thread_handle field type
1271 change.
1272
1273 2017-11-24 Simon Marchi <simon.marchi@polymtl.ca>
1274
1275 * remote.c (struct thread_item): Add constructor, disable copy
1276 construction and copy assignment, define default move
1277 construction and move assignment.
1278 <extra, name>: Change type to std::string.
1279 <core>: Initialize.
1280 <thread_handle>: Make non-pointer.
1281 (thread_item_t): Remove typedef.
1282 (DEF_VEC_O(thread_item_t)): Remove.
1283 (threads_listing_context) <contains_thread>: New method.
1284 <remove_thread>: New method.
1285 <items>: Change type to std::vector.
1286 (clear_threads_listing_context): Remove.
1287 (threads_listing_context_remove): Remove.
1288 (remote_newthread_step): Use thread_item constructor, adjust to
1289 change to std::vector.
1290 (start_thread): Use thread_item constructor, adjust to change to
1291 std::vector.
1292 (end_thread): Adjust to change to std::vector and std::string.
1293 (remote_get_threads_with_qthreadinfo): Use thread_item
1294 constructor, adjust to std::vector.
1295 (remote_update_thread_list): Adjust to change to std::vector and
1296 std::string, use threads_listing_context methods.
1297 (remove_child_of_pending_fork): Adjust.
1298 (remove_new_fork_children): Adjust.
1299 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add rsp-low-selftests.c.
1300 (SUBDIR_UNITTESTS_OBS): Add rsp-low-selftests.o.
1301 * unittests/rsp-low-selftests.c: New file.
1302 * common/rsp-low.h: Include common/byte-vector.h.
1303 (hex2bin): New overload.
1304 * common/rsp-low.c (hex2bin): New overload.
1305
1306 2017-11-24 Simon Marchi <simon.marchi@ericsson.com>
1307
1308 * inferior.h (private_inferior): Define structure type, add
1309 virtual pure destructor.
1310 (inferior) <priv>: Change type to unique_ptr.
1311 * inferior.c (private_inferior::~private_inferior): Provide
1312 default implementation.
1313 (inferior::~inferior): Don't free priv field.
1314 (exit_inferior_1): Likewise.
1315 * darwin-nat.h (struct darwin_exception_info): Initialize fields.
1316 (darwin_exception_info): Remove typedef.
1317 (DEF_VEC_O (darwin_thread_t)); Remove.
1318 (private_inferior): Rename to ...
1319 (darwin_private_inferior): ... this, extend private_inferior.
1320 (get_darwin_inferior): New.
1321 <threads>: Change type to std::vector of darwin_thread_t pointers.
1322 * darwin-nat.c (darwin_check_new_threads): Adjust.
1323 (find_inferior_task_it): Adjust.
1324 (darwin_find_thread); Adjust.
1325 (darwin_suspend_inferior): Adjust.
1326 (darwin_resume_inferior): Adjust.
1327 (darwin_find_new_inferior): Adjust.
1328 (darwin_decode_notify_message): Adjust.
1329 (darwin_send_reply): Adjust.
1330 (darwin_resume_inferior_threads): Adjust.
1331 (darwin_suspend_inferior_threads): Adjust.
1332 (darwin_decode_message): Adjust.
1333 (darwin_wait): Adjust.
1334 (darwin_interrupt): Adjust.
1335 (darwin_deallocate_threads): Adjust.
1336 (darwin_mourn_inferior): Adjust, don't free private data.
1337 (darwin_reply_to_all_pending_messages): Adjust.
1338 (darwin_stop_inferior): Adjust.
1339 (darwin_setup_exceptions): Adjust.
1340 (darwin_kill_inferior): Adjust.
1341 (darwin_setup_request_notification): Adjust.
1342 (darwin_attach_pid): Adjust.
1343 (darwin_init_thread_list): Adjust.
1344 (darwin_setup_fake_stop_event): Adjust.
1345 (darwin_attach): Adjust.
1346 (darwin_detach): Adjust.
1347 (darwin_xfer_partial): Adjust.
1348 (set_enable_mach_exceptions): Adjust.
1349 (darwin_pid_to_exec_file): Adjust.
1350 (darwin_get_ada_task_ptid): Adjust.
1351 * darwin-nat-info.c (get_task_from_args): Adjust.
1352 (info_mach_ports_command): Adjust.
1353 (info_mach_region_command): Adjust.
1354 (info_mach_exceptions_command): Adjust.
1355 * remote.c (private_inferior): Rename to ...
1356 (remote_private_inferior): ... this, initialize fields.
1357 (get_remote_inferior); New.
1358 (remote_commit_resume): Use get_remote_inferior.
1359 (check_pending_event_prevents_wildcard_vcont_callback): Likewise.
1360
1361 2017-11-24 Pedro Alves <palves@redhat.com>
1362
1363 * NEWS: Mention linespecs and explicit locations, and completion
1364 improvements.
1365
1366 2017-11-24 Yao Qi <yao.qi@linaro.org>
1367
1368 * regcache.c (regcache::dump): Remove footnote_register_size.
1369
1370 2017-11-24 Yao Qi <yao.qi@linaro.org>
1371
1372 * regcache.c (cooked_read_test): Add more test for readonly
1373 regcache.
1374
1375 2017-11-24 Yao Qi <yao.qi@linaro.org>
1376
1377 * gdbarch-selftests.c (test_target_has_registers): Move it to
1378 target.c.
1379 (test_target_has_stack): Likewise.
1380 (test_target_has_memory): Likewise.
1381 (test_target_prepare_to_store): Likewise.
1382 (test_target_store_registers): Likewise.
1383 (test_target_ops): Likewise.
1384 * regcache.c: Include selftest-arch.h and gdbthread.h.
1385 (target_ops_no_register): New class.
1386 (test_target_fetch_registers): New.
1387 (test_target_store_registers): New.
1388 (test_target_xfer_partial): New.
1389 (readwrite_regcache): New.
1390 (cooked_read_test): New.
1391 (_initialize_regcache): Register the test.
1392 * target.c: (test_target_has_registers): Moved from
1393 gdbarch-selftests.c.
1394 (test_target_has_stack): Likewise.
1395 (test_target_has_memory): Likewise.
1396 (test_target_prepare_to_store): Likewise.
1397 (test_target_store_registers): Likewise.
1398 * target.h (test_target_ops): New class.
1399
1400 2017-11-24 Alan Hayward <alan.hayward@arm.com>
1401
1402 * aarch64-tdep.c (_initialize_aarch64_tdep): Add target desc
1403 selftest.
1404
1405 2017-11-24 Alan Hayward <alan.hayward@arm.com>
1406
1407 * aarch64-tdep.c (_initialize_aarch64_tdep): Remove init.
1408 * arch/aarch64.c (aarch64_create_target_description): Create
1409 new target description.
1410 * features/Makefile: Add new files.
1411 * features/aarch64.c: Remove file.
1412 * features/aarch64-core.c: New autogenerated file.
1413 * features/aarch64-fpu.c: New autogenerated file.
1414 * target-descriptions.c (maint_print_c_tdesc_cmd): Check for aarch64.
1415
1416 2017-11-24 Alan Hayward <alan.hayward@arm.com>
1417
1418 * Makefile.in: Add new files.
1419 * aarch64-linux-nat.c (aarch64_linux_read_description): Call
1420 aarch64_read_description.
1421 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
1422 Call aarch64_read_description.
1423 * aarch64-tdep.c (aarch64_read_description): New function.
1424 (aarch64_gdbarch_init): Call aarch64_read_description.
1425 * aarch64-tdep.h (aarch64_read_description): New function.
1426 * arch/aarch64.c: New file.
1427 * configure.tgt: Add new files.
1428
1429 2017-11-24 Yao Qi <yao.qi@linaro.org>
1430
1431 * mi/mi-main.c (register_changed_p): Update.
1432 * value.c (value_contents_bits_eq): Change return type.
1433 (value_contents_eq): Likewise.
1434 * value.h: Update comments.
1435
1436 2017-11-24 Yao Qi <yao.qi@linaro.org>
1437
1438 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Remove
1439 local 'changed'. Remove error.
1440 (register_changed_p): Change return type to bool.
1441
1442 2017-11-24 Yao Qi <yao.qi@linaro.org>
1443
1444 * arch/tic6x.c: New file.
1445 * arch/tic6x.h: New file.
1446 * features/Makefile (FEATURE_XMLFILES): Add tic6x-c6xp.xml,
1447 tic6x-core.xml and tic6x-gp.xml.
1448 * features/tic6x-c6xp.c: Generated.
1449 * features/tic6x-core.c: Generated.
1450 * features/tic6x-gp.c: Generated.
1451 * target-descriptions.c (maint_print_c_tdesc_cmd): Match
1452 "tic6x-".
1453
1454 2017-11-23 Simon Marchi <simon.marchi@ericsson.com>
1455
1456 * mi/mi-main.c (list_available_thread_groups): Change map value
1457 type to std::vector.
1458
1459 2017-11-23 Simon Marchi <simon.marchi@ericsson.com>
1460
1461 * osdata.c (osdata_end_column, get_osdata): Remove std::move.
1462
1463 2017-11-23 Simon Marchi <simon.marchi@ericsson.com>
1464
1465 * varobj.c (struct varobj_dynamic) <children_requested_>: Rename
1466 back to...
1467 <children_requested>: ... this.
1468 (varobj_get_num_children, varobj_update): Adjust.
1469
1470 2017-11-23 Simon Marchi <simon.marchi@ericsson.com>
1471
1472 * ada-varobj.c (ada_value_is_changeable_p): Change int to bool where applicable.
1473 (ada_value_has_mutated): Likewise.
1474 * c-varobj.c (varobj_is_anonymous_child): Likewise.
1475 (c_is_path_expr_parent): Likewise.
1476 * mi/mi-cmd-var.c (varobj_update_one): Likewise.
1477 (mi_cmd_var_set_frozen): Likewise.
1478 (mi_cmd_var_update_iter): Likewise.
1479 (mi_cmd_var_update): Likewise.
1480 * varobj.c (pretty_printing): Likewise.
1481 (varobj_enable_pretty_printing): Likewise.
1482 (struct varobj_root) <floating, is_valid>: Likewise.
1483 (struct varobj_dynamic) <children_requested>: Likewise.
1484 (delete_variable): Likewise.
1485 (delete_variable_1): Likewise.
1486 (install_variable): Likewise.
1487 (update_type_if_necessary): Likewise.
1488 (install_new_value): Likewise.
1489 (value_of_root): Likewise.
1490 (is_root_p): Likewise.
1491 (varobj_create): Likewise.
1492 (varobj_delete): Likewise.
1493 (varobj_has_more): Likewise.
1494 (varobj_set_frozen): Likewise.
1495 (varobj_get_frozen): Likewise.
1496 (install_dynamic_child): Likewise.
1497 (dynamic_varobj_has_child_method): Likewise.
1498 (update_dynamic_varobj_children): Likewise.
1499 (varobj_get_num_children): Likewise.
1500 (varobj_list_children): Likewise.
1501 (is_path_expr_parent): Likewise.
1502 (varobj_default_is_path_expr_parent): Likewise.
1503 (varobj_is_dynamic_p): Likewise.
1504 (varobj_set_value): Likewise.
1505 (varobj_value_has_mutated): Likewise.
1506 (varobj_update): Likewise.
1507 (check_scope): Likewise.
1508 (value_of_root_1): Likewise.
1509 (varobj_value_get_print_value): Likewise.
1510 (varobj_editable_p): Likewise.
1511 (varobj_value_is_changeable_p): Likewise.
1512 (varobj_floating_p): Likewise.
1513 (varobj_default_value_is_changeable_p): Likewise.
1514 (varobj_invalidate_iter): Likewise.
1515 * varobj.h (struct varobj_update_result) <type_changed,
1516 children_changed, changed, value_installed>: Likewise.
1517 (struct varobj) <updated, frozen, not_fetched>: Likewise.
1518 (struct lang_varobj_ops) <value_is_changeable_p,
1519 value_has_mutated, is_path_expr_parent>: Likewise.
1520 (varobj_delete): Likewise.
1521 (varobj_set_frozen): Likewise.
1522 (varobj_get_frozen): Likewise.
1523 (varobj_set_value): Likewise.
1524 (varobj_update): Likewise.
1525 (varobj_editable_p): Likewise.
1526 (varobj_floating_p): Likewise.
1527 (varobj_has_more): Likewise.
1528 (varobj_is_dynamic_p): Likewise.
1529 (varobj_default_value_is_changeable_p): Likewise.
1530 (varobj_value_is_changeable_p): Likewise.
1531 (varobj_is_anonymous_child): Likewise.
1532 (varobj_default_is_path_expr_parent): Likewise.
1533
1534 2017-11-22 Sergio Durigan Junior <sergiodj@redhat.com>
1535
1536 * dtrace-probe.c (struct probe_ops dtrace_probe_ops): Delete.
1537 (struct dtrace_probe_arg) <dtrace_probe_arg>: New constructor.
1538 <type_str>: Convert to 'std::string'.
1539 <expr>: Convert to 'expression_up'.
1540 (dtrace_probe_arg_s): Delete type and VEC.
1541 (dtrace_probe_enabler_s): Likewise.
1542 (struct dtrace_probe): Replace by...
1543 (class dtrace_static_probe_ops): ...this and...
1544 (class dtrace_probe): ...this.
1545 (dtrace_probe_is_linespec): Rename to...
1546 (dtrace_static_probe_ops::is_linespec): ...this. Adjust code
1547 to reflect change.
1548 (dtrace_process_dof_probe): Use 'std::vector' instead of VEC.
1549 Adjust code. Create new instance of 'dtrace_probe'.
1550 (dtrace_build_arg_exprs): Rename to...
1551 (dtrace_probe::build_arg_exprs): ...this. Adjust code to
1552 reflect change.
1553 (dtrace_get_probes): Rename to...
1554 (dtrace_static_probe_ops::get_probes): ...this. Adjust code
1555 to reflect change.
1556 (dtrace_get_arg): Rename to...
1557 (dtrace_probe::get_arg_by_number): ...this. Adjust code to
1558 reflect change.
1559 (dtrace_probe_is_enabled): Rename to...
1560 (dtrace_probe::is_enabled): ...this. Adjust code to reflect
1561 change.
1562 (dtrace_get_probe_address): Rename to...
1563 (dtrace_probe::get_relocated_address): ...this. Adjust code
1564 to reflect change.
1565 (dtrace_get_probe_argument_count): Rename to...
1566 (dtrace_probe::get_argument_count): ...this. Adjust code to
1567 reflect change.
1568 (dtrace_can_evaluate_probe_arguments): Rename to...
1569 (dtrace_probe::can_evaluate_arguments): ...this. Adjust code
1570 to reflect change.
1571 (dtrace_evaluate_probe_argument): Rename to...
1572 (dtrace_probe::evaluate_argument): ...this. Adjust code to
1573 reflect change.
1574 (dtrace_compile_to_ax): Rename to...
1575 (dtrace_probe::compile_to_ax): ...this. Adjust code to
1576 reflect change.
1577 (dtrace_probe_destroy): Delete.
1578 (dtrace_type_name): Rename to...
1579 (dtrace_static_probe_ops::type_name): ...this. Adjust code to
1580 reflect change.
1581 (dtrace_probe::get_static_ops): New method.
1582 (dtrace_gen_info_probes_table_header): Rename to...
1583 (dtrace_static_probe_ops::gen_info_probes_table_header):
1584 ...this. Adjust code to reflect change.
1585 (dtrace_gen_info_probes_table_values): Rename to...
1586 (dtrace_probe::gen_info_probes_table_values): ...this. Adjust
1587 code to reflect change.
1588 (dtrace_enable_probe): Rename to...
1589 (dtrace_probe::enable_probe): ...this. Adjust code to reflect
1590 change.
1591 (dtrace_disable_probe): Rename to...
1592 (dtrace_probe::disable_probe): ...this. Adjust code to reflect
1593 change.
1594 (struct probe_ops dtrace_probe_ops): Delete.
1595 (info_probes_dtrace_command): Call 'info_probes_for_spops'
1596 instead of 'info_probes_for_ops'.
1597 (_initialize_dtrace_probe): Use 'all_static_probe_ops' instead
1598 of 'all_probe_ops'.
1599
1600 2017-11-22 Sergio Durigan Junior <sergiodj@redhat.com>
1601 Simon Marchi <simark@simark.ca>
1602
1603 * stap-probe.c (struct probe_ops stap_probe_ops): Delete
1604 variable.
1605 (struct stap_probe_arg) <stap_probe_arg>: New constructor.
1606 <aexpr>: Change type to 'expression_up'.
1607 (stap_probe_arg_s): Delete type and VEC.
1608 (struct stap_probe): Delete. Replace by...
1609 (class stap_static_probe_ops): ...this and...
1610 (class stap_probe): ...this. Rename variables to add 'm_'
1611 prefix. Do not use 'union' for arguments anymore.
1612 (stap_get_expected_argument_type): Receive probe name instead
1613 of 'struct stap_probe'. Adjust code.
1614 (stap_parse_probe_arguments): Rename to...
1615 (stap_probe::parse_arguments): ...this. Adjust code to
1616 reflect change.
1617 (stap_get_probe_address): Rename to...
1618 (stap_probe::get_relocated_address): ...this. Adjust code
1619 to reflect change.
1620 (stap_get_probe_argument_count): Rename to...
1621 (stap_probe::get_argument_count): ...this. Adjust code
1622 to reflect change.
1623 (stap_get_arg): Rename to...
1624 (stap_probe::get_arg_by_number'): ...this. Adjust code to
1625 reflect change.
1626 (can_evaluate_probe_arguments): Rename to...
1627 (stap_probe::can_evaluate_arguments): ...this. Adjust code
1628 to reflect change.
1629 (stap_evaluate_probe_argument): Rename to...
1630 (stap_probe::evaluate_argument): ...this. Adjust code
1631 to reflect change.
1632 (stap_compile_to_ax): Rename to...
1633 (stap_probe::compile_to_ax): ...this. Adjust code to
1634 reflect change.
1635 (stap_probe_destroy): Delete.
1636 (stap_modify_semaphore): Adjust comment.
1637 (stap_set_semaphore): Rename to...
1638 (stap_probe::set_semaphore): ...this. Adjust code to reflect
1639 change.
1640 (stap_clear_semaphore): Rename to...
1641 (stap_probe::clear_semaphore): ...this. Adjust code to
1642 reflect change.
1643 (stap_probe::get_static_ops): New method.
1644 (handle_stap_probe): Adjust code to create instance of
1645 'stap_probe'.
1646 (stap_get_probes): Rename to...
1647 (stap_static_probe_ops::get_probes): ...this. Adjust code to
1648 reflect change.
1649 (stap_probe_is_linespec): Rename to...
1650 (stap_static_probe_ops::is_linespec): ...this. Adjust code to
1651 reflect change.
1652 (stap_type_name): Rename to...
1653 (stap_static_probe_ops::type_name): ...this. Adjust code to
1654 reflect change.
1655 (stap_gen_info_probes_table_header): Rename to...
1656 (stap_static_probe_ops::gen_info_probes_table_header):
1657 ...this. Adjust code to reflect change.
1658 (stap_gen_info_probes_table_values): Rename to...
1659 (stap_probe::gen_info_probes_table_values): ...this. Adjust
1660 code to reflect change.
1661 (struct probe_ops stap_probe_ops): Delete.
1662 (info_probes_stap_command): Use 'info_probes_for_spops'
1663 instead of 'info_probes_for_ops'.
1664 (_initialize_stap_probe): Use 'all_static_probe_ops' instead
1665 of 'all_probe_ops'.
1666
1667 2017-11-22 Sergio Durigan Junior <sergiodj@redhat.com>
1668
1669 * break-catch-throw.c (fetch_probe_arguments): Use
1670 'probe.prob' instead of 'probe.probe'.
1671 * breakpoint.c (create_longjmp_master_breakpoint): Call
1672 'can_evaluate_arguments' and 'get_relocated_address' methods
1673 from probe.
1674 (create_exception_master_breakpoint): Likewise.
1675 (add_location_to_breakpoint): Use 'sal->prob' instead of
1676 'sal->probe'.
1677 (bkpt_probe_insert_location): Call 'set_semaphore' method from
1678 probe.
1679 (bkpt_probe_remove_location): Likewise, for 'clear_semaphore'.
1680 * elfread.c (elf_get_probes): Use 'static_probe_ops' instead
1681 of 'probe_ops'.
1682 (probe_key_free): Call 'delete' on probe.
1683 (check_exception_resume): Use 'probe.prob' instead of
1684 'probe.probe'.
1685 * location.c (string_to_event_location_basic): Call
1686 'probe_linespec_to_static_ops'.
1687 * probe.c (class any_static_probe_ops): New class.
1688 (any_static_probe_ops any_static_probe_ops): New variable.
1689 (parse_probes_in_pspace): Receive 'static_probe_ops' as
1690 argument. Adjust code to reflect change.
1691 (parse_probes): Use 'static_probe_ops' instead of
1692 'probe_ops'. Adjust code to reflect change.
1693 (find_probes_in_objfile): Call methods to get name and
1694 provider from probe.
1695 (find_probe_by_pc): Use 'result.prob' instead of
1696 'result.probe'. Call 'get_relocated_address' method from
1697 probe.
1698 (collect_probes): Adjust comment and argument list to receive
1699 'static_probe_ops' instead of 'probe_ops'. Adjust code to
1700 reflect change. Call necessary methods from probe.
1701 (compare_probes): Call methods to get name and provider from
1702 probes.
1703 (gen_ui_out_table_header_info): Receive 'static_probe_ops'
1704 instead of 'probe_ops'. Use 'std::vector' instead of VEC,
1705 adjust code accordingly.
1706 (print_ui_out_not_applicables): Likewise.
1707 (info_probes_for_ops): Rename to...
1708 (info_probes_for_spops): ...this. Receive 'static_probe_ops'
1709 as argument instead of 'probe_ops'. Adjust code. Call
1710 necessary methods from probe.
1711 (info_probes_command): Use 'info_probes_for_spops'.
1712 (enable_probes_command): Pass correct argument to
1713 'collect_probes'. Call methods from probe.
1714 (disable_probes_command): Likewise.
1715 (get_probe_address): Move to 'any_static_probe_ops::get_address'.
1716 (get_probe_argument_count): Move to
1717 'any_static_probe_ops::get_argument_count'.
1718 (can_evaluate_probe_arguments): Move to
1719 'any_static_probe_ops::can_evaluate_arguments'.
1720 (evaluate_probe_argument): Move to
1721 'any_static_probe_ops::evaluate_argument'.
1722 (probe_safe_evaluate_at_pc): Use 'probe.prob' instead of
1723 'probe.probe'.
1724 (probe_linespec_to_ops): Rename to...
1725 (probe_linespec_to_static_ops): ...this. Adjust code.
1726 (probe_any_is_linespec): Rename to...
1727 (any_static_probe_ops::is_linespec): ...this.
1728 (probe_any_get_probes): Rename to...
1729 (any_static_probe_ops::get_probes): ...this.
1730 (any_static_probe_ops::type_name): New method.
1731 (any_static_probe_ops::gen_info_probes_table_header): New
1732 method.
1733 (compute_probe_arg): Use 'pc_probe.prob' instead of
1734 'pc_probe.probe'. Call methods from probe.
1735 (compile_probe_arg): Likewise.
1736 (std::vector<const probe_ops *> all_probe_ops): Delete.
1737 (std::vector<const static_probe_ops *> all_static_probe_ops):
1738 New variable.
1739 (_initialize_probe): Use 'all_static_probe_ops' instead of
1740 'all_probe_ops'.
1741 * probe.h (struct info_probe_column) <field_name>: Delete
1742 extraneous newline
1743 (info_probe_column_s): Delete type and VEC.
1744 (struct probe_ops): Delete. Replace with...
1745 (class static_probe_ops): ...this and...
1746 (clas probe): ...this.
1747 (struct bound_probe) <bound_probe>: Delete extraneous
1748 newline. Adjust constructor to receive 'probe' instead of
1749 'struct probe'.
1750 <probe>: Rename to...
1751 <prob>: ...this. Delete extraneous newline.
1752 <objfile>: Delete extraneous newline.
1753 (register_probe_ops): Delete unused prototype.
1754 (info_probes_for_ops): Rename to...
1755 (info_probes_for_spops): ...this. Adjust comment.
1756 (get_probe_address): Move to 'probe::get_address'.
1757 (get_probe_argument_count): Move to
1758 'probe::get_argument_count'.
1759 (can_evaluate_probe_arguments): Move to
1760 'probe::can_evaluate_arguments'.
1761 (evaluate_probe_argument): Move to 'probe::evaluate_argument'.
1762 * solib-svr4.c (struct svr4_info): Adjust comment.
1763 (struct probe_and_action) <probe>: Rename to...
1764 <prob>: ...this.
1765 (register_solib_event_probe): Receive 'probe' instead of
1766 'struct probe' as argument. Use 'prob' instead of 'probe'
1767 when applicable.
1768 (solib_event_probe_action): Call 'get_argument_count' method
1769 from probe. Adjust comment.
1770 (svr4_handle_solib_event): Adjust comment. Call
1771 'evaluate_argument' method from probe.
1772 (svr4_create_probe_breakpoints): Call 'get_relocated_address'
1773 from probe.
1774 (svr4_create_solib_event_breakpoints): Use 'probe' instead of
1775 'struct probe'. Call 'can_evaluate_arguments' from probe.
1776 * symfile.h: Forward declare 'class probe' instead of 'struct
1777 probe'.
1778 * symtab.h: Likewise.
1779 (struct symtab_and_line) <probe>: Rename to...
1780 <prob>: ...this.
1781 * tracepoint.c (start_tracing): Use 'prob' when applicable.
1782 Call probe methods.
1783 (stop_tracing): Likewise.
1784
1785 2017-11-22 Joel Brobecker <brobecker@adacore.com>
1786
1787 * ravenscar-thread.c (ravenscar_inferior_created): Remove
1788 trailing newline at end of string in call to warning.
1789
1790 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
1791
1792 * osdata.h: Include vector isntead of vec.h.
1793 (osdata_column_s): Remove typedef.
1794 (struct osdata_column): Add constructor.
1795 <name, value>: Change type to std::string.
1796 (DEF_VEC_O (osdata_column_s)): Remove.
1797 (osdata_item_s): Remove typedef.
1798 (struct osdata_item) <columns>: Change type to std::vector.
1799 (DEF_VEC_O (osdata_item_s)): Remove.
1800 (struct osdata): Add constructor.
1801 <type>: Change type to std::string.
1802 <items>: Change type to std::vector.
1803 (osdata_p): Remove typedef.
1804 (DEF_VEC_P (osdata_p)): Remove.
1805 (osdata_parse): Return a unique_ptr.
1806 (osdata_free): Remove.
1807 (make_cleanup_osdata_free): Remove.
1808 (get_osdata): Return a unique_ptr.
1809 (get_osdata_column): Return pointer to std::string, take a
1810 reference to osdata_item as parameter.
1811 * osdata.c (struct osdata_parsing_data) <osdata>: Change type to
1812 unique_ptr.
1813 <property_name>: Change type to std::string.
1814 (osdata_start_osdata): Allocate osdata with new and adjust.
1815 (osdata_start_item): Adjust.
1816 (osdata_start_column): Adjust.
1817 (osdata_end_column): Adjust.
1818 (clear_parsing_data): Remove.
1819 (osdata_parse): Return a unique_ptr and adjust, remove cleanup.
1820 (osdata_item_clear): Remove.
1821 (get_osdata): return a unique_ptr and adjust.
1822 (get_osdata_column): Return a pointer to std::string and adjust.
1823 (info_osdata): Adjust.
1824 * mi/mi-main.c: Include <map>.
1825 (free_vector_of_osdata_items): Remove.
1826 (list_available_thread_groups): Adjust, use std::map instead of
1827 splay tree.
1828
1829 2017-11-22 Simon Marchi <simon.marchi@ericsson.com>
1830
1831 * stack.c (iterate_over_block_locals): Add LOC_OPTIMIZED_OUT
1832 case in switch.
1833
1834 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
1835
1836 * varobj.h (DEF_VEC_P (varobj_p)): Remove.
1837
1838 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
1839
1840 * varobj.h (struct varobj_update_result): Add constructor, add
1841 move constructor, disable copy and assign, initialize fields.
1842 <newobj>: Change type to std::vector.
1843 (varobj_update): Return std::vector.
1844 * varobj.c (install_dynamic_child): Change VEC parameters to
1845 std::vector and adjust.
1846 (update_dynamic_varobj_children): Likewise.
1847 (varobj_update): Return std::vector and adjust.
1848 * mi/mi-cmd-var.c (varobj_update_one): Adjust to vector changes.
1849
1850 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
1851
1852 * varobj.h (struct varobj) <parent>: Remove const.
1853 <children>: Change type to std::vector.
1854 (varobj_list_children): Return std::vector const reference.
1855 (varobj_restrict_range): Change parameter type to std::vector
1856 const reference.
1857 * varobj.c (varobj_has_more): Adjust.
1858 (varobj_restrict_range): Change parameter type to std::vector
1859 const reference and adjust.
1860 (install_dynamic_child): Adjust.
1861 (update_dynamic_varobj_children): Adjust.
1862 (varobj_list_children): Return std::vector const reference and
1863 adjust.
1864 (varobj_add_child): Adjust.
1865 (update_type_if_necessary): Adjust.
1866 (varobj_update): Adjust.
1867 (delete_variable_1): Adjust.
1868 * ada-varobj.c (ada_value_has_mutated): Adjust.
1869 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust.
1870
1871 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
1872
1873 * varobj.h (struct varobj): Add constructor and destructor,
1874 initialize fields.
1875 * varobj.c (struct varobj_root): Initialize fields.
1876 (struct varobj_dynamic): Initialize fields.
1877 (varobj_create): Use unique_ptr instead of cleanup. Create
1878 varobj with new instead of new_root_variable.
1879 (delete_variable_1): Free variable with delete instead of
1880 free_variable.
1881 (create_child_with_value): Create variable with new instead of
1882 new_variable.
1883 (varobj::varobj): New.
1884 (varobj::~varobj): New (body mostly coming from free_variable).
1885 (new_variable): Remove.
1886 (free_variable): Remove.
1887 (do_free_variable_cleanup): Remove.
1888 (make_cleanup_free_variable): Remove.
1889
1890 2017-11-22 Ulrich Weigand <uweigand@de.ibm.com>
1891
1892 * core-regset.c: Remove file.
1893 * Makefile.in (ALLDEPFILES): Remove core-regset.c.
1894
1895 2017-11-22 Ulrich Weigand <uweigand@de.ibm.com>
1896
1897 * NEWS: Document use of GNU MPFR.
1898 * README: Likewise.
1899
1900 * Makefile.in (LIBMPFR): Add define.
1901 (CLIBS): Add $(LIBMPFR).
1902 * configure.ac: Add --with-mpfr configure option.
1903 * configure: Regenerate.
1904 * config.in: Regenerate.
1905
1906 * target-float.c [HAVE_LIBMPFR]: Include <mpfr.h>.
1907 (class mpfr_float_ops): New type.
1908 (mpfr_float_ops::from_target): Two new overloaded functions.
1909 (mpfr_float_ops::to_target): Likewise.
1910 (mpfr_float_ops::to_string): New function.
1911 (mpfr_float_ops::from_string): Likewise.
1912 (mpfr_float_ops::to_longest): Likewise.
1913 (mpfr_float_ops::from_longest): Likewise.
1914 (mpfr_float_ops::from_ulongest): Likewise.
1915 (mpfr_float_ops::to_host_double): Likewise.
1916 (mpfr_float_ops::from_host_double): Likewise.
1917 (mpfr_float_ops::convert): Likewise.
1918 (mpfr_float_ops::binop): Likewise.
1919 (mpfr_float_ops::compare): Likewise.
1920 (get_target_float_ops): Use mpfr_float_ops if available.
1921
1922 2017-11-22 Ulrich Weigand <uweigand@de.ibm.com>
1923
1924 * target-float.c: Do not include <math.h>.
1925 Include <cmath> and <limits>.
1926 (DOUBLEST): Do not define.
1927 (class target_float_ops): New type.
1928 (class host_float_ops): New templated type.
1929 (class decimal_float_ops): New type.
1930
1931 (floatformat_to_doublest): Rename to ...
1932 (host_float_ops<T>::from_target): ... this. Use template type T
1933 instead of DOUBLEST. Use C++ math routines. Update recursive calls.
1934 (host_float_ops<T>::from_target): New overload using a type argument.
1935 (floatformat_from_doublest): Rename to ...
1936 (host_float_ops<T>::to_target): ... this. Use template type T
1937 instead of DOUBLEST. Use C++ math routines. Update recursive calls.
1938 (host_float_ops<T>::to_target): New overload using a type argument.
1939 (floatformat_printf_format): New function.
1940 (struct printf_length_modifier): New templated type.
1941 (floatformat_to_string): Rename to ...
1942 (host_float_ops<T>::to_string): ... this. Use type instead of
1943 floatformat argument. Use floatformat_printf_format and
1944 printf_length_modifier. Remove special handling of invalid numbers,
1945 infinities and NaN (moved to target_float_to_string).
1946 (struct scanf_length_modifier): New templated type.
1947 (floatformat_from_string): Rename to ...
1948 (host_float_ops<T>::from_string): ... this. Use type instead of
1949 floatformat argument. Use scanf_length_modifier.
1950 (floatformat_to_longest): Rename to ...
1951 (host_float_ops<T>::to_longest): ... this. Use type instead of
1952 floatformat argument. Handle out-of-range values deterministically.
1953 (floatformat_from_longest): Rename to ...
1954 (host_float_ops<T>::from_longest): ... this. Use type instead of
1955 floatformat argument.
1956 (floatformat_from_ulongest): Rename to ...
1957 (host_float_ops<T>::from_ulongest): ... this. Use type instead of
1958 floatformat argument.
1959 (floatformat_to_host_double): Rename to ...
1960 (host_float_ops<T>::to_host_double): ... this. Use type instead of
1961 floatformat argument.
1962 (floatformat_from_host_double): Rename to ...
1963 (host_float_ops<T>::from_host_double): ... this. Use type instead of
1964 floatformat argument.
1965 (floatformat_convert): Rename to ...
1966 (host_float_ops<T>::convert): ... this. Use type instead of
1967 floatformat arguments. Remove handling of no-op conversions.
1968 (floatformat_binop): Rename to ...
1969 (host_float_ops<T>::binop): ... this. Use type instead of
1970 floatformat arguments.
1971 (floatformat_compare): Rename to ...
1972 (host_float_ops<T>::compare): ... this. Use type instead of
1973 floatformat arguments.
1974
1975 (match_endianness): Use type instead of length/byte_order arguments.
1976 (set_decnumber_context): Likewise.
1977 (decimal_from_number): Likewise. Update calls.
1978 (decimal_to_number): Likewise.
1979 (decimal_is_zero): Likewise. Update calls. Move to earlier in file.
1980 (decimal_float_ops::to_host_double): New dummy function.
1981 (decimal_float_ops::from_host_double): Likewise.
1982 (decimal_to_string): Rename to ...
1983 (decimal_float_ops::to_string): ... this. Use type instead of
1984 length/byte_order arguments. Update calls.
1985 (decimal_from_string): Rename to ...
1986 (decimal_float_ops::from_string): ... this. Use type instead of
1987 length/byte_order arguments. Update calls.
1988 (decimal_from_longest): Rename to ...
1989 (decimal_float_ops::from_longest): ... this. Use type instead of
1990 length/byte_order arguments. Update calls.
1991 (decimal_from_ulongest): Rename to ...
1992 (decimal_float_ops::from_ulongest): ... this. Use type instead of
1993 length/byte_order arguments. Update calls.
1994 (decimal_to_longest): Rename to ...
1995 (decimal_float_ops::to_longest): ... this. Use type instead of
1996 length/byte_order arguments. Update calls.
1997 (decimal_binop): Rename to ...
1998 (decimal_float_ops::binop): ... this. Use type instead of
1999 length/byte_order arguments. Update calls.
2000 (decimal_compare): Rename to ...
2001 (decimal_float_ops::compare): ... this. Use type instead of
2002 length/byte_order arguments. Update calls.
2003 (decimal_convert): Rename to ...
2004 (decimal_float_ops::convert): ... this. Use type instead of
2005 length/byte_order arguments. Update calls.
2006
2007 (target_float_same_category_p): New function.
2008 (target_float_same_format_p): Likewise.
2009 (target_float_format_length): Likewise.
2010 (enum target_float_ops_kind): New type.
2011 (get_target_float_ops_kind): New function.
2012 (get_target_float_ops): Three new overloaded functions.
2013
2014 (target_float_is_zero): Update call.
2015 (target_float_to_string): Add special handling of invalid numbers,
2016 infinities and NaN (moved from floatformat_to_string). Use
2017 target_float_ops callback.
2018 (target_float_from_string): Use target_float_ops callback.
2019 (target_float_to_longest): Likewise.
2020 (target_float_from_longest): Likewise.
2021 (target_float_from_ulongest): Likewise.
2022 (target_float_to_host_double): Likewise.
2023 (target_float_from_host_double): Likewise.
2024 (target_float_convert): Add special case for no-op conversions.
2025 Use target_float_ops callback.
2026 (target_float_binop): Use target_float_ops callback.
2027 (target_float_compare): Likewise.
2028
2029 2017-11-22 Yao Qi <yao.qi@linaro.org>
2030
2031 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use strcpy.
2032
2033 2017-11-22 Yao Qi <yao.qi@linaro.org>
2034
2035 * cli/cli-decode.c (help_list): Use memcpy instead of strncpy.
2036 * cp-namespace.c (cp_lookup_transparent_type_loop): Likewise.
2037
2038 2017-11-21 Jerome Guitton <guitton@adacore.com>
2039
2040 * ravenscar-thread.c (ravenscar_wait): Update inferior ptid
2041 with event ptid from the lower layer before doing the
2042 ravenscar-specific update.
2043
2044 2017-11-21 Joel Brobecker <brobecker@adacore.com>
2045
2046 * ravenscar-thread.c (is_ravenscar_task): Also verify that
2047 the ptid's TID is nonzero.
2048
2049 2017-11-21 Joel Brobecker <brobecker@adacore.com>
2050
2051 * ada-lang.h (ada_get_tcb_types_info): Add declaration.
2052 * ada-tasks.c (ada_get_tcb_types_info): Renames get_tcb_types_info.
2053 Make non-static. Change return type to char *. Adjust code
2054 accordingly. Rewrite the function's documentation.
2055 (read_atcb): Adjust call to get_tcb_types_info accordingly.
2056 * ravenscar-thread.c (ravenscar_inferior_created): Check that
2057 we have enough debugging information in the runtime to support
2058 Ada task debugging before we enable the ravenscar-thread layer.
2059
2060 2017-11-21 Joel Brobecker <brobecker@adacore.com>
2061
2062 * ada-lang.h (ada_get_task_info_from_ptid): Add declaration.
2063 * ada-tasks.c (ada_get_task_info_from_ptid): New function.
2064 * ravenscar-thread.c: Add into comment.
2065 (base_magic_null_ptid): Delete.
2066 (base_ptid): Change documentation.
2067 (ravenscar_active_task): Renames ravenscar_running_thread.
2068 All callers updated throughout.
2069 (is_ravenscar_task, ravenscar_get_thread_base_cpu): New function.
2070 (ravenscar_task_is_currently_active): Likewise.
2071 (get_base_thread_from_ravenscar_task): Ditto.
2072 (ravenscar_update_inferior_ptid): Adjust to handle multiple CPUs.
2073 (ravenscar_runtime_initialized): Likewise.
2074 (get_running_thread_id): Add new parameter "cpu". Adjust
2075 implementation to handle this new parameter.
2076 (ravenscar_fetch_registers): Small adjustment to use
2077 is_ravenscar_task and ravenscar_task_is_currently_active in
2078 order to decide whether to use the target beneath or this
2079 module's arch_ops.
2080 (ravenscar_store_registers, ravenscar_prepare_to_store): Likewise.
2081 (ravenscar_stopped_by_sw_breakpoint): Use
2082 get_base_thread_from_ravenscar_task to get the underlying
2083 thread, rather than using base_ptid.
2084 (ravenscar_stopped_by_hw_breakpoint, ravenscar_stopped_by_watchpoint)
2085 (ravenscar_stopped_data_address, ravenscar_core_of_thread):
2086 Likewise.
2087 (ravenscar_inferior_created): Do not set base_magic_null_ptid.
2088
2089 2017-11-21 Joel Brobecker <brobecker@adacore.com>
2090
2091 * ada-lang.h (struct ada_task_info) <base_cpu>: New field.
2092 * ada-lang.c (struct atcb_fieldno) <base_cpu>: New field.
2093 (get_tcb_types_info): Set fieldnos.base_cpu.
2094 (read_atcb): Set task_info->base_cpu.
2095 (info_task): Print "Base CPU" info if set by runtime.
2096
2097 2017-11-21 Joel Brobecker <brobecker@adacore.com>
2098
2099 * ravenscar-thread.c (ravenscar_stopped_by_sw_breakpoint)
2100 (ravenscar_stopped_by_hw_breakpoint, ravenscar_stopped_by_watchpoint)
2101 (ravenscar_stopped_data_address, ravenscar_core_of_thread):
2102 New functions.
2103 (init_ravenscar_thread_ops): Set the to_stopped_by_sw_breakpoint,
2104 to_stopped_by_hw_breakpoint, to_stopped_by_watchpoint,
2105 to_stopped_data_address and to_core_of_thread fields of
2106 ravenscar_ops.
2107
2108 2017-11-21 Ulrich Weigand <uweigand@de.ibm.com>
2109
2110 * ppc-tdep.h (enum powerpc_long_double_abi): New data type.
2111 (struct gdbarch_tdep): New member long_double_abi.
2112 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize long_double_abi
2113 member of tdep struct based on Tag_GNU_Power_ABI_FP attribute.
2114 * ppc-linux-tdep.c (ppc_linux_init_abi): Install long double data
2115 format depending on long_double_abi tdep member.
2116 (ppc_floatformat_for_type): Handle __ibm128 type.
2117
2118 2017-11-20 Simon Marchi <simon.marchi@polymtl.ca>
2119
2120 * darwin-nat.c (set_enable_mach_exceptions): Constify parameter.
2121
2122 2017-11-21 Pedro Alves <palves@redhat.com>
2123
2124 * dwarf2read.c (mapped_index::find_name_components_bounds)
2125 <completion mode, upper bound>: Use std::lower_bound instead of
2126 std::upper_bound.
2127 (test_mapped_index_find_name_component_bounds): Remove incorrect
2128 "t1_fund" from expected symbols.
2129
2130 2017-11-21 Pedro Alves <palves@redhat.com>
2131
2132 * dwarf2read.c (mapped_index::name_components_casing): New field.
2133 (mapped_index) <build_name_components,
2134 find_name_components_bounds): Declare new methods.
2135 (mapped_index::find_name_components_bounds)
2136 (mapped_index::build_name_components): New methods, factored out
2137 from dw2_expand_symtabs_matching_symbol.
2138 (check_find_bounds_finds)
2139 (test_mapped_index_find_name_component_bounds): New.
2140 (run_test): Rename to ...
2141 (test_dw2_expand_symtabs_matching_symbol): ... this.
2142 (run_test): Reimplement.
2143
2144 2017-11-21 Pedro Alves <palves@redhat.com>
2145
2146 * cp-name-parser.y (cp_ident_is_alpha, cp_ident_is_alnum): New.
2147 (symbol_end): Use cp_ident_is_alnum.
2148 (yylex): Use cp_ident_is_alpha and cp_ident_is_alnum.
2149 * dwarf2read.c (make_sort_after_prefix_name): New function.
2150 (dw2_expand_symtabs_matching_symbol): Use it.
2151 (test_symbols): Add more symbols.
2152 (run_test): Add tests.
2153
2154 2017-11-17 Tom Tromey <tom@tromey.com>
2155
2156 * symtab.h (enum symbol_subclass_kind): New.
2157 (struct symbol) <is_cplus_template_function, is_rust_vtable>:
2158 Remove.
2159 <subclass>: New member.
2160 (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): Update.
2161 * rust-lang.c (rust_get_trait_object_pointer): Update.
2162 * dwarf2read.c (read_func_scope): Update.
2163 (read_variable): Update.
2164
2165 2017-11-17 Tom Tromey <tom@tromey.com>
2166
2167 * dwarf2read.c (read_func_scope): Update.
2168 * symtab.h (struct template_symbol): Derive from symbol.
2169 <base>: Remove.
2170
2171 2017-11-17 Tom Tromey <tom@tromey.com>
2172
2173 * symtab.h (struct symbol) <is_rust_vtable>: New member.
2174 (struct rust_vtable_symbol): New.
2175 (find_symbol_at_address): Declare.
2176 * symtab.c (find_symbol_at_address): New function.
2177 * symfile.h (struct quick_symbol_functions)
2178 <find_compunit_symtab_by_address>: New member.
2179 * symfile-debug.c (debug_qf_find_compunit_symtab_by_address): New
2180 function.
2181 (debug_sym_quick_functions): Link to
2182 debug_qf_find_compunit_symtab_by_address.
2183 * rust-lang.c (rust_get_trait_object_pointer): New function.
2184 (rust_evaluate_subexp) <case UNOP_IND>: New case. Call
2185 rust_get_trait_object_pointer.
2186 * psymtab.c (psym_relocate): Clear psymbol_map.
2187 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address): New
2188 functions.
2189 (psym_functions): Link to psym_find_compunit_symtab_by_address.
2190 * objfiles.h (struct objfile) <psymbol_map>: New member.
2191 * dwarf2read.c (dwarf2_gdb_index_functions): Update.
2192 (process_die) <DW_TAG_variable>: New case. Call read_variable.
2193 (rust_containing_type, read_variable): New functions.
2194
2195 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
2196
2197 * common/gdb_vecs.h (DEF_VEC_I (int)): Remove.
2198
2199 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
2200
2201 * common/filestuff.c: Include <algorithm>.
2202 (open_fds): Change type to std::vector<int>.
2203 (do_mark_open_fd): Adjust.
2204 (unmark_fd_no_cloexec): Adjust.
2205 (do_close): Adjust.
2206
2207 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
2208
2209 * breakpoint.c (output_thread_groups): Take an std::vector.
2210 (print_one_breakpoint_location): Adjust.
2211
2212 2017-11-17 Joel Brobecker <brobecker@adacore.com>
2213
2214 * ada-lang.c (resolve_subexp): Add handling of OP_VAR_MSYM_VALUE.
2215 (ada_evaluate_subexp_for_cast): New function.
2216 (ada_evaluate_subexp) <UNOP_CAST>: Replace code by call to
2217 ada_evaluate_subexp_for_cast.
2218 (ada_evaluate_subexp) <nosideret>: Replace code by call to
2219 eval_skip_value.
2220 * eval.c (evaluate_var_value): Make non-static.
2221 (evaluate_var_msym_value, eval_skip_value): Likewise.
2222 * value.h (evaluate_var_value, evaluate_var_msym_value)
2223 (eval_skip_value): Declare.
2224
2225 2017-11-16 Joel Brobecker <brobecker@adacore.com>
2226
2227 * ada-lang.c (ada_value_cast): Remove parameter "noside".
2228 Update all callers.
2229
2230 2017-11-16 Pedro Alves <palves@redhat.com>
2231
2232 * python/py-unwind.c (pyuw_sniffer): Translate
2233 PyExc_KeyboardInterrupt to a GDB Quit exception.
2234
2235 2017-11-16 Pedro Alves <palves@redhat.com>
2236
2237 * infrun.c (resume_cleanups): Delete.
2238 (resume): No longer install a resume_cleanups cleanup nor call
2239 QUIT.
2240 (proceed): Pass the terminal to the inferior.
2241 (keep_going_pass_signal): No longer install a resume_cleanups
2242 cleanup.
2243
2244 2017-11-16 Pedro Alves <palves@redhat.com>
2245
2246 * inf-loop.c (inferior_event_handler): Don't swallow the exception
2247 if the prompt is blocked.
2248
2249 2017-11-16 Pedro Alves <palves@redhat.com>
2250
2251 * breakpoint.c (insert_bp_location): Replace bp_err and
2252 bp_err_message locals by a gdb_exception local.
2253
2254 2017-11-16 Pedro Alves <palves@redhat.com>
2255
2256 * inflow.c (scoped_ignore_sigttou): New class.
2257 (child_terminal_ours_1, new_tty): Use it.
2258
2259 2017-11-16 Ulrich Weigand <uweigand@de.ibm.com>
2260
2261 * target-float.c (decimal_from_number): Add byte_order argument and
2262 call match_endianness. Error if unknown floating-point type.
2263 (decimal_to_number): Add byte_order argument and call match_endianness.
2264 (decimal_from_longest): Update call. Do not call match_endianness.
2265 (decimal_from_ulongest): Likewise.
2266 (decimal_binop): Likewise.
2267 (decimal_is_zero): Likewise.
2268 (decimal_compare): Likewise.
2269 (decimal_convert): Likewise.
2270
2271 2017-11-16 Phil Muldoon <pmuldoon@redhat.com>
2272
2273 * python/python.c (gdbpy_rbreak): New function.
2274 * NEWS: Document Python rbreak feature.
2275
2276 2017-11-16 Yao Qi <yao.qi@linaro.org>
2277
2278 * features/tic6x-c62x.xml: Remove.
2279 * features/tic6x-c64x.xml: Remove.
2280 * features/tic6x-c64xp.xml: Remove.
2281
2282 2017-11-15 John Baldwin <jhb@FreeBSD.org>
2283
2284 * symtab.h: Include <array>.
2285
2286 2017-11-15 John Baldwin <jhb@FreeBSD.org>
2287
2288 * bsd-kvm.c (bsd_kvm_cmd): Constify 'arg'.
2289 (bsd_kvm_proc_cmd): Likewise.
2290
2291 2017-11-15 Simon Marchi <simon.marchi@ericsson.com>
2292
2293 * tui/tui-win.c (window_name_completer): Replace VEC with
2294 std::vector.
2295
2296 2017-11-15 Andrew Cagney <cagney@gnu.org>
2297
2298 * MAINTAINERS: Remove no-longer applicable entries.
2299
2300 2017-11-15 Andrew Cagney <cagney@gnu.org>
2301
2302 * MAINTAINERS: Move self to Past Maintainers.
2303
2304 2017-11-15 Yao Qi <yao.qi@linaro.org>
2305
2306 * features/Makefile (XMLTOC): Remove nios2-linux.xml.
2307 * features/nios2-linux.c: Remove.
2308 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Don't call
2309 initialize_tdesc_nios2_linux.
2310
2311 2017-11-15 Yao Qi <yao.qi@linaro.org>
2312
2313 * m68hc11-tdep.c (M68HC11_NUM_REGS): Change it to
2314 M68HC11_LAST_HARD_REG + 1.
2315
2316 2017-11-14 Paul Carroll <pcarroll@codesourcery.com>
2317
2318 PR gdb/22388
2319 * remote.c (remote_write_bytes_aux, remote_read_bytes_1,
2320 remote_read_bytes, remote_write_qxfer, remote_xfer_partial):
2321 Return TARGET_XFER_EOF if size of returned data is 0.
2322
2323 2017-11-14 Simon Marchi <simon.marchi@ericsson.com>
2324
2325 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2326 memory-map-selftests.c.
2327 (SUBDIR_UNITTESTS_OBS): Add memory-map-selftests.o.
2328 * memory-map.c (memory_map_start_memory): Fix computation of hi
2329 address.
2330 * unittests/memory-map-selftests.c: New file.
2331
2332 2017-11-09 Joel Brobecker <brobecker@adacore.com>
2333
2334 * ada-lang.c: Fix some typos in the general command documenting
2335 how Ada expressions are being evaluated and how their result
2336 is printed.
2337
2338 2017-11-09 Tom Tromey <tom@tromey.com>
2339
2340 * psymtab.c (psymbol_hash): Do not hash string contents.
2341 (psymbol_compare): Add comment.
2342
2343 2017-11-09 Tom Tromey <tom@tromey.com>
2344
2345 * dictionary.c (dict_hash): Move "TKB" check into the "switch".
2346
2347 2017-11-08 Joel Brobecker <brobecker@adacore.com>
2348
2349 * ada-exp.y (write_var_from_sym): Remove parameter
2350 "orig_left_context". Update all callers.
2351
2352 2017-11-08 Simon Marchi <simon.marchi@ericsson.com>
2353
2354 * tracepoint.h (class collection_list) <stringify>: Return
2355 std::vector<std::string>.
2356 (encode_actions_rsp): Change parameters to
2357 std::vector<std::string> *.
2358 * tracepoint.c (collection_list::stringify): Return
2359 std::vector<std::string> and adjust accordingly.
2360 (encode_actions_rsp): Changee parameters to
2361 std::vector<std::string> and adjust accordingly.
2362 * remote.c (free_actions_list),
2363 free_actions_list_cleanup_wrapper): Remove.
2364 (remote_download_tracepoint): Adjust to std::vector.
2365
2366 2017-11-08 Tom Tromey <tom@tromey.com>
2367
2368 * dwarf2read.c (symbolp): Remove typedef.
2369 (read_func_scope): Use std::vector.
2370 (process_structure_scope): Use std::vector.
2371
2372 2017-11-08 Pedro Alves <palves@redhat.com>
2373
2374 * ada-lang.c (ada_make_symbol_completion_list): Use
2375 completion_skip_symbol.
2376 * symtab.c (symbol_is_function_or_method(minimal_symbol*)): New.
2377 (symbol_is_function_or_method(symbol*)): New.
2378 (add_symtab_completions): Add complete_symbol_mode parameter. Use
2379 completion_skip_symbol.
2380 (default_collect_symbol_completion_matches_break_on): Use
2381 completion_skip_symbol. Pass down mode.
2382 (collect_file_symbol_completion_matches): Pass down mode.
2383 * symtab.h (symbol_is_function_or_method): New declarations.
2384 (completion_skip_symbol): New template function.
2385
2386 2017-11-08 Pedro Alves <palves@redhat.com>
2387
2388 * linespec.c (iterate_over_all_matching_symtabs): Add
2389 search_domain parameter. Pass it down to expand_symtabs_matching.
2390 (decode_objc): Request FUNCTIONS_DOMAIN symbols only.
2391 (lookup_prefix_sym): Adjust by passing ALL_DOMAIN as
2392 search_domain.
2393 (add_all_symbol_names_from_pspace): Add search_domain parameter.
2394 Pass it down.
2395 (find_method, find_function_symbols): Request FUNCTIONS_DOMAIN
2396 symbols.
2397 (add_matching_symbols_to_info): Add search_domain parameter. Pass
2398 it down.
2399
2400 2017-11-08 Pedro Alves <palves@redhat.com>
2401
2402 * ada-lang.c (ada_make_symbol_completion_list): Remove text and
2403 text_len locals and don't pass them down.
2404 * symtab.c (completion_list_add_name): Remove
2405 sym_text/sym_text_len parameters and adjust.
2406 (completion_list_add_symbol, completion_list_add_msymbol)
2407 (completion_list_objc_symbol, completion_list_add_fields)
2408 (add_symtab_completions): Likewise.
2409 (default_collect_symbol_completion_matches_break_on)
2410 (collect_file_symbol_completion_matches): Remove sym_text_len
2411 local and don't pass it down.
2412 * symtab.h (completion_list_add_name): Remove
2413 sym_text/sym_text_len parameters.
2414
2415 2017-11-08 Pedro Alves <palves@redhat.com>
2416
2417 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2418 unittests/lookup_name_info-selftests.c.
2419 (SUBDIR_UNITTESTS_OBS): Add lookup_name_info-selftests.o.
2420 * cp-support.c: Include "selftest.h".
2421 (cp_remove_params_1): Rename from cp_remove_params. Add
2422 'require_param' parameter, and handle it.
2423 (cp_remove_params): Reimplement.
2424 (cp_remove_params_if_any): New.
2425 (selftests::quote): New.
2426 (selftests::check_remove_params): New.
2427 (selftests::test_cp_remove_params): New.
2428 (_initialize_cp_support): Install
2429 selftests::test_cp_remove_params.
2430 * cp-support.h (cp_remove_params_if_any): Declare.
2431 * dwarf2read.c :Include "selftest.h".
2432 (dw2_expand_symtabs_matching_symbol): Use
2433 lookup_name_info::make_ignore_params.
2434 (selftests::dw2_expand_symtabs_matching::mock_mapped_index)
2435 (selftests::dw2_expand_symtabs_matching::string_or_null)
2436 (selftests::dw2_expand_symtabs_matching::check_match)
2437 (selftests::dw2_expand_symtabs_matching::test_symbols)
2438 (selftests::dw2_expand_symtabs_matching::run_test): New.
2439 (_initialize_dwarf2_read): Register
2440 selftests::dw2_expand_symtabs_matching::run_test.
2441 * psymtab.c (psym_expand_symtabs_matching): Use
2442 lookup_name_info::make_ignore_params.
2443 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info):
2444 If the lookup name wants to ignore parameters, strip them.
2445 (compare_symbol_name): Remove sym_text/sym_text_len parameters and
2446 code handling '('.
2447 (completion_list_add_name): Don't pass down sym_text/sym_text_len.
2448 (default_collect_symbol_completion_matches_break_on): Don't try to
2449 strip parameters.
2450 * symtab.h (lookup_name_info::lookup_name_info): Add
2451 'ignore_parameters' parameter.
2452 (lookup_name_info::ignore_parameters)
2453 (lookup_name_info::make_ignore_params): New methods.
2454 (lookup_name_info::m_ignore_parameters): New field.
2455 * unittests/lookup_name_info-selftests.c: New file.
2456
2457 2017-11-08 Pedro Alves <palves@redhat.com>
2458
2459 * dwarf2read.c (dw2_expand_marked_cus)
2460 (dw2_expand_symtabs_matching_symbol): Remove forward declarations.
2461 (dw2_expand_symtabs_matching): Move further below.
2462 (dw2_expand_marked_cus): Reindent.
2463
2464 2017-11-08 Pedro Alves <palves@redhat.com>
2465
2466 * dwarf2read.c (byte_swap, MAYBE_SWAP): Move higher up in file.
2467 (struct name_component): New.
2468 (mapped_index::name_components): New field.
2469 (mapped_index::symbol_name_at): New method.
2470 (dwarf2_read_index): Call mapped_index ctor.
2471 (dw2_map_matching_symbols): Add comment about name_components
2472 table.
2473 (dw2_expand_symtabs_matching): Factor part to...
2474 (dw2_expand_symtabs_matching_symbol): ... this new function.
2475 Build name components table, and lookup symbols in it before
2476 calling the name matcher.
2477 (dw2_expand_marked_cus): New, factored out from
2478 dw2_expand_symtabs_matching.
2479 (dwarf2_per_objfile_free): Call the mapped_index's dtor.
2480
2481 2017-11-08 Pedro Alves <palves@redhat.com>
2482
2483 * ada-lang.c (ada_encode): Rename to ..
2484 (ada_encode_1): ... this. Add throw_errors parameter and handle
2485 it.
2486 (ada_encode): Reimplement.
2487 (match_name): Delete, folded into full_name.
2488 (resolve_subexp): No longer pass the encoded name to
2489 ada_lookup_symbol_list.
2490 (should_use_wild_match): Delete.
2491 (name_match_type_from_name): New.
2492 (ada_lookup_simple_minsym): Use lookup_name_info and the
2493 language's symbol_name_matcher_ftype.
2494 (add_symbols_from_enclosing_procs, ada_add_local_symbols)
2495 (ada_add_block_renamings): Adjust to use lookup_name_info.
2496 (ada_lookup_name): New.
2497 (add_nonlocal_symbols, ada_add_all_symbols)
2498 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list)
2499 (ada_iterate_over_symbols): Adjust to use lookup_name_info.
2500 (ada_name_for_lookup): Delete.
2501 (ada_lookup_encoded_symbol): Construct a verbatim name.
2502 (wild_match): Reverse sense of return type. Use bool.
2503 (full_match): Reverse sense of return type. Inline bits of old
2504 match_name here.
2505 (ada_add_block_symbols): Adjust to use lookup_name_info.
2506 (symbol_completion_match): Delete, folded into...
2507 (ada_lookup_name_info::matches): ... .this new method.
2508 (symbol_completion_add): Delete.
2509 (ada_collect_symbol_completion_matches): Add name_match_type
2510 parameter. Adjust to use lookup_name_info and
2511 completion_list_add_name.
2512 (get_var_value, ada_add_global_exceptions): Adjust to use
2513 lookup_name_info.
2514 (ada_get_symbol_name_cmp): Delete.
2515 (do_wild_match, do_full_match): New functions.
2516 (ada_lookup_name_info::ada_lookup_name_info): New method.
2517 (ada_symbol_name_matches, ada_get_symbol_name_matcher): New
2518 functions.
2519 (ada_language_defn): Install ada_get_symbol_name_matcher.
2520 * ada-lex.l (processId): If name starts with '<', copy it
2521 verbatim.
2522 * block.c (block_iter_match_step, block_iter_match_first)
2523 (block_iter_match_next, block_lookup_symbol)
2524 (block_lookup_symbol_primary, block_find_symbol): Adjust to use
2525 lookup_name_info.
2526 * block.h (block_iter_match_first, block_iter_match_next)
2527 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use lookup_name_info.
2528 * c-lang.c (c_language_defn, cplus_language_defn)
2529 (asm_language_defn, minimal_language_defn): Adjust comments to
2530 refer to la_get_symbol_name_matcher.
2531 * completer.c (complete_files_symbols)
2532 (collect_explicit_location_matches, symbol_completer): Pass a
2533 symbol_name_match_type down.
2534 * completer.h (class completion_match, completion_match_result):
2535 New classes.
2536 (completion_tracker::reset_completion_match_result): New method.
2537 (completion_tracker::m_completion_match_result): New field.
2538 * cp-support.c (make_symbol_overload_list_block): Adjust to use
2539 lookup_name_info.
2540 (cp_fq_symbol_name_matches, cp_get_symbol_name_matcher): New
2541 functions.
2542 * cp-support.h (cp_get_symbol_name_matcher): New declaration.
2543 * d-lang.c: Adjust comments to refer to
2544 la_get_symbol_name_matcher.
2545 * dictionary.c (dict_vector) <iter_match_first, iter_match_next>:
2546 Adjust to use lookup_name_info.
2547 (dict_iter_match_first, dict_iter_match_next)
2548 (iter_match_first_hashed, iter_match_next_hashed)
2549 (iter_match_first_linear, iter_match_next_linear): Adjust to work
2550 with a lookup_name_info.
2551 * dictionary.h (dict_iter_match_first, dict_iter_match_next):
2552 Likewise.
2553 * dwarf2read.c (dw2_lookup_symbol): Adjust to use lookup_name_info.
2554 (dw2_map_matching_symbols): Adjust to use symbol_name_match_type.
2555 (gdb_index_symbol_name_matcher): New class.
2556 (dw2_expand_symtabs_matching) Adjust to use lookup_name_info and
2557 gdb_index_symbol_name_matcher. Accept a NULL symbol_matcher.
2558 * f-lang.c (f_collect_symbol_completion_matches): Adjust to work
2559 with a symbol_name_match_type.
2560 (f_language_defn): Adjust comments to refer to
2561 la_get_symbol_name_matcher.
2562 * go-lang.c (go_language_defn): Adjust comments to refer to
2563 la_get_symbol_name_matcher.
2564 * language.c (default_symbol_name_matcher)
2565 (language_get_symbol_name_matcher): New functions.
2566 (unknown_language_defn, auto_language_defn): Adjust comments to
2567 refer to la_get_symbol_name_matcher.
2568 * language.h (symbol_name_cmp_ftype): Delete.
2569 (language_defn) <la_collect_symbol_completion_matches>: Add match
2570 type parameter.
2571 <la_get_symbol_name_cmp>: Delete field.
2572 <la_get_symbol_name_matcher>: New field.
2573 <la_iterate_over_symbols>: Adjust to use lookup_name_info.
2574 (default_symbol_name_matcher, language_get_symbol_name_matcher):
2575 Declare.
2576 * linespec.c (iterate_over_all_matching_symtabs)
2577 (iterate_over_file_blocks): Adjust to use lookup_name_info.
2578 (find_methods): Add language parameter, and use lookup_name_info
2579 and the language's symbol_name_matcher_ftype.
2580 (linespec_complete_function): Adjust.
2581 (lookup_prefix_sym): Use lookup_name_info.
2582 (add_all_symbol_names_from_pspace): Adjust.
2583 (find_superclass_methods): Add language parameter and pass it
2584 down.
2585 (find_method): Pass symbol language down.
2586 (find_linespec_symbols): Don't demangle or Ada encode here.
2587 (search_minsyms_for_name): Add lookup_name_info parameter.
2588 (add_matching_symbols_to_info): Add name_match_type parameter.
2589 Use lookup_name_info.
2590 * m2-lang.c (m2_language_defn): Adjust comments to refer to
2591 la_get_symbol_name_matcher.
2592 * minsyms.c: Include <algorithm>.
2593 (add_minsym_to_demangled_hash_table): Remove table parameter and
2594 add objfile parameter. Use search_name_hash, and add language to
2595 demangled languages vector.
2596 (struct found_minimal_symbols): New struct.
2597 (lookup_minimal_symbol_mangled, lookup_minimal_symbol_demangled):
2598 New functions.
2599 (lookup_minimal_symbol): Adjust to use them. Don't canonicalize
2600 input names here. Use lookup_name_info instead. Lookup up
2601 demangled names once for each language in the demangled names
2602 vector.
2603 (iterate_over_minimal_symbols): Use lookup_name_info. Lookup up
2604 demangled names once for each language in the demangled names
2605 vector.
2606 (build_minimal_symbol_hash_tables): Adjust.
2607 * minsyms.h (iterate_over_minimal_symbols): Adjust to pass down a
2608 lookup_name_info.
2609 * objc-lang.c (objc_language_defn): Adjust comment to refer to
2610 la_get_symbol_name_matcher.
2611 * objfiles.h: Include <vector>.
2612 (objfile_per_bfd_storage) <demangled_hash_languages>: New field.
2613 * opencl-lang.c (opencl_language_defn): Adjust comment to refer to
2614 la_get_symbol_name_matcher.
2615 * p-lang.c (pascal_language_defn): Adjust comment to refer to
2616 la_get_symbol_name_matcher.
2617 * psymtab.c (psym_lookup_symbol): Use lookup_name_info.
2618 (match_partial_symbol): Use symbol_name_match_type,
2619 lookup_name_info and psymbol_name_matches.
2620 (lookup_partial_symbol): Use lookup_name_info.
2621 (map_block): Use symbol_name_match_type and lookup_name_info.
2622 (psym_map_matching_symbols): Use symbol_name_match_type.
2623 (psymbol_name_matches): New.
2624 (recursively_search_psymtabs): Use lookup_name_info and
2625 psymbol_name_matches. Rename 'kind' parameter to 'domain'.
2626 (psym_expand_symtabs_matching): Use lookup_name_info. Rename
2627 'kind' parameter to 'domain'.
2628 * rust-lang.c (rust_language_defn): Adjust comment to refer to
2629 la_get_symbol_name_matcher.
2630 * symfile-debug.c (debug_qf_map_matching_symbols)
2631 (debug_qf_map_matching_symbols): Use symbol_name_match_type.
2632 (debug_qf_expand_symtabs_matching): Use lookup_name_info.
2633 * symfile.c (expand_symtabs_matching): Use lookup_name_info.
2634 * symfile.h (quick_symbol_functions) <map_matching_symbols>:
2635 Adjust to use symbol_name_match_type.
2636 <expand_symtabs_matching>: Adjust to use lookup_name_info.
2637 (expand_symtabs_matching): Adjust to use lookup_name_info.
2638 * symmisc.c (maintenance_expand_symtabs): Use
2639 lookup_name_info::match_any ().
2640 * symtab.c (symbol_matches_search_name): New.
2641 (eq_symbol_entry): Adjust to use lookup_name_info and the
2642 language's matcher.
2643 (demangle_for_lookup_info::demangle_for_lookup_info): New.
2644 (lookup_name_info::match_any): New.
2645 (iterate_over_symbols, search_symbols): Use lookup_name_info.
2646 (compare_symbol_name): Add language, lookup_name_info and
2647 completion_match_result parameters, and use them.
2648 (completion_list_add_name): Make extern. Add language and
2649 lookup_name_info parameters. Use them.
2650 (completion_list_add_symbol, completion_list_add_msymbol)
2651 (completion_list_objc_symbol): Add lookup_name_info parameters and
2652 adjust. Pass down language.
2653 (completion_list_add_fields): Add lookup_name_info parameters and
2654 adjust. Pass down language.
2655 (add_symtab_completions): Add lookup_name_info parameters and
2656 adjust.
2657 (default_collect_symbol_completion_matches_break_on): Add
2658 name_match_type parameter, and use it. Use lookup_name_info.
2659 (default_collect_symbol_completion_matches)
2660 (collect_symbol_completion_matches): Add name_match_type
2661 parameter, and pass it down.
2662 (collect_symbol_completion_matches_type): Adjust.
2663 (collect_file_symbol_completion_matches): Add name_match_type
2664 parameter, and use lookup_name_info.
2665 * symtab.h: Include <string> and "common/gdb_optional.h".
2666 (enum class symbol_name_match_type): New.
2667 (class ada_lookup_name_info): New.
2668 (struct demangle_for_lookup_info): New.
2669 (class lookup_name_info): New.
2670 (symbol_name_matcher_ftype): New.
2671 (SYMBOL_MATCHES_SEARCH_NAME): Use symbol_matches_search_name.
2672 (symbol_matches_search_name): Declare.
2673 (MSYMBOL_MATCHES_SEARCH_NAME): Delete.
2674 (default_collect_symbol_completion_matches)
2675 (collect_symbol_completion_matches)
2676 (collect_file_symbol_completion_matches): Add name_match_type
2677 parameter.
2678 (iterate_over_symbols): Use lookup_name_info.
2679 (completion_list_add_name): Declare.
2680 * utils.c (enum class strncmp_iw_mode): Moved to utils.h.
2681 (strncmp_iw_with_mode): Now extern.
2682 * utils.h (enum class strncmp_iw_mode): Moved from utils.c.
2683 (strncmp_iw_with_mode): Declare.
2684
2685 2017-11-08 Keith Seitz <keiths@redhat.com>
2686 Pedro Alves <palves@redhat.com>
2687
2688 * ada-lang.c (ada_language_defn): Install
2689 default_search_name_hash.
2690 * buildsym.c (struct buildsym_compunit): <language>: New field.
2691 (finish_block_internal): Pass language when creating dictionaries.
2692 (start_buildsym_compunit, start_symtab): New language parameters.
2693 Use them.
2694 (restart_symtab): Pass down compilation unit's language.
2695 * buildsym.h (enum language): Forward declare.
2696 (start_symtab): New 'language' parameter.
2697 * c-lang.c (c_language_defn, cplus_language_defn)
2698 (asm_language_defn, minimal_language_defn): Install
2699 default_search_name_hash.
2700 * coffread.c (coff_start_symtab): Adjust.
2701 * d-lang.c (d_language_defn): Install default_search_name_hash.
2702 * dbxread.c (struct symloc): Add 'pst_language' field.
2703 (PST_LANGUAGE): Define.
2704 (start_psymtab, read_ofile_symtab): Use it.
2705 (process_one_symbol): New 'language' parameter. Pass it down.
2706 * dictionary.c (struct dictionary) <language>: New field.
2707 (DICT_LANGUAGE): Define.
2708 (dict_create_hashed, dict_create_hashed_expandable)
2709 (dict_create_linear, dict_create_linear_expandable): New parameter
2710 'language'. Set the dictionary's language.
2711 (iter_match_first_hashed): Adjust to rename.
2712 (insert_symbol_hashed): Assert we don't see mismatching
2713 languages. Adjust to rename.
2714 (dict_hash): Rename to ...
2715 (default_search_name_hash): ... this and make extern.
2716 * dictionary.h (struct language_defn): Forward declare.
2717 (dict_create_hashed): New parameter 'language'.
2718 * dwarf2read.c (dwarf2_start_symtab): Pass down language.
2719 * f-lang.c (f_language_defn): Install default_search_name_hash.
2720 * go-lang.c (go_language_defn): Install default_search_name_hash.
2721 * jit.c (finalize_symtab): Pass compunit's language to dictionary
2722 creation.
2723 * language.c (unknown_language_defn, auto_language_defn):
2724 * language.h (language_defn::la_search_name_hash): New field.
2725 (default_search_name_hash): Declare.
2726 * m2-lang.c (m2_language_defn): Install default_search_name_hash.
2727 * mdebugread.c (new_block): New parameter 'language'.
2728 * mdebugread.c (parse_symbol): Pass symbol language to block
2729 allocation.
2730 (psymtab_to_symtab_1): Pass down language.
2731 (new_symtab): Pass compunit's language to block allocation.
2732 * objc-lang.c (objc_language_defn): Install
2733 default_search_name_hash.
2734 * opencl-lang.c (opencl_language_defn):
2735 * p-lang.c (pascal_language_defn): Install
2736 default_search_name_hash.
2737 * rust-lang.c (rust_language_defn): Install
2738 default_search_name_hash.
2739 * stabsread.h (enum language): Forward declare.
2740 (process_one_symbol): Add 'language' parameter.
2741 * symtab.c (search_name_hash): New function.
2742 * symtab.h (search_name_hash): Declare.
2743 * xcoffread.c (read_xcoff_symtab): Pass language to start_symtab.
2744
2745 2017-11-08 Pedro Alves <palves@redhat.com>
2746
2747 * cp-name-parser.y (main): Don't initialize extra_chars.
2748
2749 2017-11-07 Tom Tromey <tom@tromey.com>
2750
2751 * event-top.h (command_handler): Constify.
2752 * record-full.c (cmd_record_full_start): Update.
2753 * thread.c (thread_apply_all_command): Update.
2754 * printcmd.c (eval_command): Update.
2755 * mi/mi-main.c (mi_execute_cli_command): Update.
2756 (mi_execute_async_cli_command): Update.
2757 * tui/tui-stack.c (tui_update_command): Update.
2758 * cli/cli-interp.c (safe_execute_command): Constify.
2759 * record.c (record_start): Update.
2760 (record_start, record_stop, cmd_record_start): Update.
2761 * record-btrace.c (cmd_record_btrace_bts_start): Update.
2762 (cmd_record_btrace_pt_start): Update.
2763 (cmd_record_btrace_start): Update.
2764 (cmd_record_btrace_start): Update.
2765 * reverse.c (exec_reverse_once): Update.
2766 * python/python.c (execute_gdb_command): Don't copy the command.
2767 * event-top.c (command_line_handler): Update.
2768 (command_handler): Constify.
2769 * defs.h (deprecated_call_command_hook): Constify.
2770 * cli/cli-script.h (execute_user_command): Constify.
2771 * cli/cli-script.c (execute_user_command): Constify.
2772 (execute_cmd_pre_hook, execute_cmd_post_hook): Constify.
2773 (enum command_control_type): Update.
2774 * main.c (catch_command_errors): Remove non-const overload.
2775 (catch_command_errors_ftype): Remove.
2776 * python/py-cmd.c (cmdpy_function): Constify.
2777 * guile/scm-cmd.c (cmdscm_function): Constify.
2778 * cli/cli-dump.c (call_dump_func): Constify.
2779 * cli/cli-decode.c (do_const_cfunc): Constify.
2780 (do_sfunc): Constify.
2781 (cmd_func): Constify.
2782 * gdbcmd.h (execute_command, execute_command_to_string): Constify.
2783 * top.h (execute_command): Constify.
2784 * top.c (execute_command): Constify.
2785 (execute_command_to_string): Constify.
2786 (deprecated_call_command_hook): Constify.
2787 * command.h (cmd_func): Constify.
2788 * cli/cli-decode.h (struct cmd_list_element) <func>: Constify.
2789
2790 2017-11-07 Tom Tromey <tom@tromey.com>
2791
2792 * ada-lang.c (catch_ada_exception_command): Constify.
2793 (catch_assert_command): Constify.
2794 * break-catch-throw.c (catch_catch_command, catch_throw_command)
2795 (catch_rethrow_command): Constify.
2796 (catch_exception_command_1): Constify.
2797 * breakpoint.h (add_catch_command): Constify.
2798 * break-catch-syscall.c (catch_syscall_command_1): Constify.
2799 (catch_syscall_split_args): Constify.
2800 * break-catch-sig.c (catch_signal_command): Constify.
2801 (catch_signal_split_args): Constify.
2802 * cli/cli-decode.h (struct cmd_list_element) <function>: Use
2803 cmd_const_sfunc_ftype.
2804 * cli/cli-decode.c (add_setshow_cmd_full): Constify.
2805 (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd)
2806 (add_setshow_boolean_cmd, add_setshow_filename_cmd)
2807 (add_setshow_string_cmd, struct cmd_list_element)
2808 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
2809 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
2810 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd):
2811 Constify.
2812 (set_cmd_sfunc): Constify.
2813 (empty_sfunc): Constify.
2814 * command.h (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd)
2815 (add_setshow_boolean_cmd, add_setshow_filename_cmd)
2816 (add_setshow_string_cmd, add_setshow_string_noescape_cmd)
2817 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
2818 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
2819 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
2820 Constify.
2821 (set_cmd_sfunc): Constify.
2822 (cmd_sfunc_ftype): Remove.
2823 * compile/compile.c (set_compile_args): Constify.
2824 * infrun.c (set_disable_randomization): Constify.
2825 * infcmd.c (set_args_command, set_cwd_command): Constify.
2826 * breakpoint.c (set_condition_evaluation_mode): Constify.
2827 (add_catch_command): Constify.
2828 (catch_fork_command_1, catch_exec_command_1)
2829 (catch_load_command_1, catch_unload_command_1): Constify.
2830 (catch_load_or_unload): Constify.
2831 * guile/scm-param.c (pascm_set_func): Constify.
2832 (add_setshow_generic): Constify.
2833 * python/py-param.c (get_set_value): Constify.
2834 * top.h (set_verbose): Constify.
2835 * tui/tui-win.c (tui_set_var_cmd): Constify.
2836 * mi/mi-main.c (set_mi_async_command): Constify.
2837 * cli/cli-logging.c (set_logging_overwrite)
2838 (set_logging_redirect): Constify.
2839 * value.c (set_max_value_size): Constify.
2840 * valprint.c (set_input_radix, set_output_radix): Constify.
2841 * utils.c (set_width_command, set_height_command): Constify.
2842 * typeprint.c (set_print_type_methods, set_print_type_typedefs): Constify.
2843 * tracepoint.c (set_disconnected_tracing)
2844 (set_circular_trace_buffer, set_trace_buffer_size)
2845 (set_trace_user, set_trace_notes, set_trace_stop_notes): Constify.
2846 * top.c (set_history_size_command, set_verbose, set_editing)
2847 (set_gdb_datadir, set_history_filename): Constify.
2848 * target.c (set_targetdebug, maint_set_target_async_command)
2849 (maint_set_target_non_stop_command, set_target_permissions)
2850 (set_write_memory_permission): Constify.
2851 (open_target): Constify.
2852 * target-descriptions.c (set_tdesc_filename_cmd): Constify.
2853 * target-dcache.c (set_stack_cache, set_code_cache): Constify.
2854 * symtab.c (set_symbol_cache_size_handler): Constify.
2855 * symfile.c (set_ext_lang_command): Constify.
2856 * symfile-debug.c (set_debug_symfile): Constify.
2857 * source.c (set_directories_command): Constify.
2858 * solib.c (reload_shared_libraries, gdb_sysroot_changed): Constify.
2859 * serial.c (set_parity): Constify.
2860 * rs6000-tdep.c (powerpc_set_soft_float, powerpc_set_vector_abi): Constify.
2861 * remote.c (set_remote_exec_file, set_remotebreak)
2862 (set_remote_protocol_Z_packet_cmd, set_range_stepping): Constify.
2863 * record.c (set_record_insn_history_size)
2864 (set_record_call_history_size): Constify.
2865 * record-full.c (set_record_full_insn_max_num): Constify.
2866 * proc-api.c (set_procfs_trace_cmd, set_procfs_file_cmd): Constify.
2867 * osabi.c (set_osabi): Constify.
2868 * mips-tdep.c (set_mips64_transfers_32bit_regs)
2869 (reinit_frame_cache_sfunc, mips_abi_update): Constify.
2870 * maint.c (maintenance_set_profile_cmd): Constify.
2871 * linux-thread-db.c (set_libthread_db_search_path): Constify.
2872 * language.c (set_language_command, set_range_command)
2873 (set_case_command): Constify.
2874 * infrun.c (set_non_stop, set_observer_mode)
2875 (set_stop_on_solib_events, set_schedlock_func)
2876 (set_exec_direction_func): Constify.
2877 * infcmd.c (set_inferior_tty_command): Constify.
2878 * disasm.c (set_disassembler_options_sfunc): Constify.
2879 * demangle.c (set_demangling_command): Constify.
2880 * dcache.c (set_dcache_size, set_dcache_line_size): Constify.
2881 * cris-tdep.c (set_cris_version, set_cris_mode)
2882 (set_cris_dwarf2_cfi): Constify.
2883 * corefile.c (set_gnutarget_command): Constify.
2884 * charset.c (set_host_charset_sfunc, set_target_charset_sfunc)
2885 (set_target_wide_charset_sfunc): Constify.
2886 * breakpoint.c (update_dprintf_commands): Constify.
2887 * auto-load.c (set_auto_load_dir, set_auto_load_safe_path): Constify.
2888 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi)
2889 (set_disassembly_style_sfunc): Constify.
2890 * arch-utils.c (set_endian, set_architecture): Constify.
2891 * alpha-tdep.c (reinit_frame_cache_sfunc): Constify.
2892 * agent.c (set_can_use_agent): Constify.
2893
2894 2017-11-07 Tom Tromey <tom@tromey.com>
2895
2896 * go32-nat.c (go32_sysinfo, go32_sldt, go32_sgdt, go32_sidt)
2897 (go32_pde, go32_pte, go32_pte_for_address): Constify.
2898 * gnu-nat.c (_parse_bool_arg, show_thread_default_pause_cmd)
2899 (set_thread_default_pause_cmd, set_thread_default_run_cmd)
2900 (show_thread_default_run_cmd, set_thread_default_detach_sc_cmd)
2901 (parse_int_arg, show_thread_default_detach_sc_cmd)
2902 (set_signals_cmd, show_signals_cmd, set_sig_thread_cmd)
2903 (show_sig_thread_cmd, set_stopped_cmd, show_stopped_cmd)
2904 (set_exceptions_cmd, show_exceptions_cmd, set_task_pause_cmd)
2905 (show_task_pause_cmd, set_task_detach_sc_cmd)
2906 (show_task_detach_sc_cmd, set_task_exc_port_cmd)
2907 (set_noninvasive_cmd, set_thread_pause_cmd)
2908 (show_thread_pause_cmd, set_thread_run_cmd, show_thread_run_cmd)
2909 (set_thread_detach_sc_cmd, show_thread_detach_sc_cmd)
2910 (set_thread_exc_port_cmd, thread_takeover_sc_cmd): Constify.
2911 * windows-nat.c (display_selectors): Constify.
2912 * cli/cli-decode.h (struct cmd_list_element) <function>: Remove
2913 non-const "cfunc".
2914 * cli/cli-decode.c (set_cmd_cfunc): Remove non-const overload.
2915 (cmd_cfunc_eq): Likewise.
2916 (struct cmd_list_element): Likewise.
2917 (do_cfunc): Remove.
2918 (cli_user_command_p): Update.
2919 * command.h (add_cmd): Remove non-const overload.
2920 (cmd_cfunc_ftype): Remove typedef.
2921 (cmd_cfunc_eq): Remove non-const overload.
2922 * value.c (show_values): Constify.
2923 * thread.c (thread_apply_all_command): Constify.
2924 * symfile.c (load_command): Constify.
2925 * source.c (directory_command): Constify.
2926 * maint.c (maintenance_internal_error)
2927 (maintenance_demangler_warning, maintenance_space_display)
2928 (maintenance_print_architecture, maintenance_translate_address)
2929 (maintenance_info_selftests, maintenance_internal_warning):
2930 Constify.
2931 * breakpoint.c (disable_trace_command, enable_trace_command):
2932 Constify.
2933 * auto-load.c (info_auto_load_local_gdbinit, add_auto_load_dir):
2934 Constify.
2935 (add_auto_load_safe_path): Constify.
2936 * guile/scm-auto-load.c (info_auto_load_guile_scripts): Constify.
2937 * top.h (show_commands): Constify.
2938 * linux-thread-db.c (info_auto_load_libthread_db): Constify.
2939 * sparc64-tdep.c (adi_examine_command): Constify.
2940 (adi_assign_command): Constify.
2941
2942 2017-11-07 Tom Tromey <tom@tromey.com>
2943
2944 * frame.h (info_locals_command, info_args_command): Constify.
2945 * auto-load.h (auto_load_info_scripts): Constify.
2946 * inferior.h (registers_info): Constify.
2947 * copying.c: Rebuild.
2948 * copying.awk: Constify generated commands.
2949 * auto-load.c (auto_load_info_scripts)
2950 (info_auto_load_gdb_scripts): Constify.
2951 * cli/cli-decode.c (struct cmd_list_element): Take a
2952 cmd_const_cfunc_ftype.
2953 * command.h (add_info): Take a cmd_const_cfunc_ftype.
2954 * tui/tui-win.c (tui_all_windows_info): Constify.
2955 * python/py-auto-load.c (info_auto_load_python_scripts):
2956 Constify.
2957 * cli/cli-cmds.c (show_command): Remove non-const overload.
2958 * tracepoint.c (info_tvariables_command, info_scope_command):
2959 Constify.
2960 (info_static_tracepoint_markers_command): Constify.
2961 * thread.c (info_threads_command): Constify.
2962 (print_thread_info_1): Constify.
2963 * target.c (info_target_command): Constify.
2964 * symtab.c (info_sources_command, info_functions_command)
2965 (info_types_command): Constify.
2966 (info_variables_command): Remove non-const overload.
2967 * symfile.c (info_ext_lang_command): Constify.
2968 * stack.c (info_frame_command, info_locals_command)
2969 (info_args_command): Constify.
2970 (backtrace_command): Remove non-const overload.
2971 * source.c (info_source_command, info_line_command): Constify.
2972 * solib.c (info_sharedlibrary_command): Constify.
2973 * skip.c (info_skip_command): Constify.
2974 * ser-go32.c (info_serial_command): Constify.
2975 * reverse.c (info_bookmarks_command): Constify.
2976 * printcmd.c (info_symbol_command, info_address_command)
2977 (info_display_command): Constify.
2978 * osdata.c (info_osdata_command): Constify.
2979 * objc-lang.c (info_selectors_command, info_classes_command):
2980 Constify.
2981 * nto-procfs.c (procfs_pidlist, procfs_meminfo): Constify.
2982 * memattr.c (info_mem_command): Constify.
2983 * macrocmd.c (info_macro_command, info_macros_command): Constify.
2984 * linux-fork.c (info_checkpoints_command): Constify.
2985 * infrun.c (info_signals_command): Constify.
2986 * inflow.c (info_terminal_command): Constify.
2987 * inferior.c (info_inferiors_command): Constify.
2988 (print_inferior): Constify.
2989 * infcmd.c (info_program_command, info_all_registers_command)
2990 (info_registers_command, info_vector_command)
2991 (info_float_command): Constify.
2992 (registers_info): Constify.
2993 * gnu-nat.c (info_send_rights_cmd, info_recv_rights_cmd)
2994 (info_port_sets_cmd, info_dead_names_cmd, info_port_rights_cmd):
2995 Constify.
2996 * f-valprint.c (info_common_command): Constify.
2997 * dcache.c (info_dcache_command): Constify.
2998 (dcache_info_1): Constify.
2999 * darwin-nat-info.c (info_mach_tasks_command)
3000 (info_mach_task_command, info_mach_ports_command)
3001 (info_mach_port_command, info_mach_threads_command)
3002 (info_mach_thread_command, info_mach_regions_command)
3003 (info_mach_regions_recurse_command, info_mach_region_command)
3004 (info_mach_exceptions_command): Constify.
3005 (get_task_from_args): Constify.
3006 * cp-support.c (info_vtbl_command): Constify.
3007 * breakpoint.c (info_watchpoints_command)
3008 (info_tracepoints_command): Constify.
3009 (info_breakpoints_command): Remove non-const overload.
3010 * avr-tdep.c (avr_io_reg_read_command): Constify.
3011 * auxv.c (info_auxv_command): Constify.
3012 * ada-tasks.c (info_tasks_command): Constify.
3013 (info_task): Constify.
3014 * ada-lang.c (info_exceptions_command): Constify.
3015
3016 2017-11-07 Tom Tromey <tom@tromey.com>
3017
3018 * solib.h (no_shared_libraries): Constify.
3019 * frame.h (return_command): Constify.
3020 * cli/cli-cmds.h (quit_command): Constify.
3021 * top.h (quit_command, execute_command): Constify.
3022 * target.h (flash_erase_command): Constify.
3023 * inferior.h (set_inferior_args, attach_command): Constify.
3024 * tracepoint.h (start_tracing, stop_tracing): Constify.
3025 * breakpoint.h (break_command, tbreak_command)
3026 (hbreak_command_wrapper, thbreak_command_wrapper)
3027 (rbreak_command_wrapper, watch_command_wrapper)
3028 (awatch_command_wrapper, rwatch_command_wrapper)
3029 (get_tracepoint_by_number): Constify.
3030 * symtab.c (info_variables_command, rbreak_command)
3031 (symtab_symbol_info): Constify.
3032 (info_variables_command): Add non-const overload.
3033 * top.c (dont_repeat_command): Constify.
3034 * breakpoint.c (ignore_command, commands_command)
3035 (condition_command, tbreak_command, hbreak_command)
3036 (thbreak_command, clear_command, break_command)
3037 (info_breakpoints_command, watch_command, rwatch_command)
3038 (awatch_command, trace_command, ftrace_command, strace_command)
3039 (trace_pass_command, break_range_command, dprintf_command)
3040 (agent_printf_command, get_tracepoint_by_number)
3041 (watch_maybe_just_location, trace_pass_command): Constify.
3042 (info_breakpoints_command): Add non-const overload.
3043 * tracefile.c (tsave_command): Constify.
3044 * infcmd.c (attach_command, disconnect_command, signal_command)
3045 (queue_signal_command, stepi_command, nexti_command)
3046 (finish_command, next_command, step_command, until_command)
3047 (advance_command, jump_command, continue_command, run_command)
3048 (start_command, starti_command, interrupt_command)
3049 (run_command_1, set_inferior_args, step_1): Constify.
3050 * inferior.c (add_inferior_command, remove_inferior_command)
3051 (clone_inferior_command): Constify.
3052 * linux-fork.c (checkpoint_command, restart_command): Constify.
3053 * windows-nat.c (signal_event_command): Constify.
3054 * guile/guile.c (guile_repl_command, guile_command): Constify.
3055 * printcmd.c (x_command, display_command, printf_command)
3056 (output_command, set_command, call_command, print_command)
3057 (eval_command): Constify.
3058 (non_const_set_command): Remove.
3059 (_initialize_printcmd): Update.
3060 * source.c (forward_search_command, reverse_search_command):
3061 Constify.
3062 * jit.c (jit_reader_load_command, jit_reader_unload_command):
3063 Constify.
3064 * infrun.c (handle_command): Constify.
3065 * memattr.c (mem_command): Constify.
3066 * stack.c (return_command, up_command, up_silently_command)
3067 (down_command, down_silently_command, frame_command)
3068 (backtrace_command, func_command, backtrace_command_1): Constify.
3069 (backtrace_command): Add non-const overload.
3070 * remote-sim.c (simulator_command): Constify.
3071 * exec.c (set_section_command): Constify.
3072 * tracepoint.c (tdump_command, trace_variable_command)
3073 (tstatus_command, tstop_command, tstart_command)
3074 (end_actions_pseudocommand, while_stepping_pseudocommand)
3075 (collect_pseudocommand, teval_pseudocommand, actions_command)
3076 (start_tracing, stop_tracing): Constify.
3077 * value.c (init_if_undefined_command): Constify.
3078 * tui/tui-stack.c (tui_update_command): Constify.
3079 * tui/tui-win.c (tui_refresh_all_command)
3080 (tui_set_tab_width_command, tui_set_win_height_command)
3081 (tui_set_focus_command, tui_scroll_forward_command)
3082 (tui_scroll_backward_command, tui_scroll_left_command)
3083 (tui_scroll_right_command, parse_scrolling_args, tui_set_focus)
3084 (tui_set_win_height): Constify.
3085 * tui/tui-layout.c (tui_layout_command): Constify.
3086 * procfs.c (proc_trace_syscalls, proc_trace_sysentry_cmd)
3087 (proc_trace_sysexit_cmd, proc_untrace_sysentry_cmd)
3088 (proc_untrace_sysexit_cmd): Constify.
3089 * remote.c (threadlist_test_cmd, threadinfo_test_cmd)
3090 (threadset_test_cmd, threadlist_update_test_cmd)
3091 (threadalive_test): Constify.
3092 * objc-lang.c (print_object_command): Constify.
3093 * command.h (add_com): Constify.
3094 * cli/cli-dump.c (restore_command): Constify.
3095 * cli/cli-cmds.c (pwd_command, echo_command, quit_command)
3096 (help_command, complete_command, shell_command, edit_command)
3097 (list_command, disassemble_command, make_command)
3098 (apropos_command, alias_command): Constify.
3099 * cli/cli-script.c (document_command, define_command)
3100 (while_command, if_command, validate_comname): Constify.
3101 * cli/cli-decode.c (struct cmd_list_element): Change type of
3102 "fun".
3103 * target.c (do_monitor_command, flash_erase_command): Constify.
3104 * regcache.c (reg_flush_command): Constify.
3105 * reverse.c (reverse_step, reverse_next, reverse_stepi)
3106 (reverse_nexti, reverse_continue, reverse_finish)
3107 (save_bookmark_command, goto_bookmark_command)
3108 (exec_reverse_once): Constify.
3109 * python/python.c (python_interactive_command, python_command):
3110 Constify.
3111 * typeprint.c (ptype_command, whatis_command, whatis_exp):
3112 Constify.
3113 * solib.c (sharedlibrary_command, no_shared_libraries): Constify.
3114 * gcore.c (gcore_command): Constify.
3115
3116 2017-11-07 Tom Tromey <tom@tromey.com>
3117
3118 * printcmd.c (x_command): Call set_repeat_arguments.
3119 * cli/cli-cmds.c (list_command): Call set_repeat_arguments.
3120 * top.c (repeat_arguments): New global.
3121 (set_repeat_arguments): New function.
3122 (execute_command): Handle repeat_arguments.
3123 (show_commands): Calls set_repeat_arguments.
3124 * command.h (set_repeat_arguments): Declare.
3125
3126 2017-11-07 Tom Tromey <tom@tromey.com>
3127
3128 * stack.c (backtrace_command): Use std::string.
3129 (backtrace_command_1): Make "count_exp" const.
3130
3131 2017-11-07 Tom Tromey <tom@tromey.com>
3132
3133 * source.c (directory_switch, mod_path, add_path): Constify.
3134 * defs.h (add_path, mod_path, directory_switch): Constify.
3135 * mi/mi-cmd-env.c (env_mod_path): Constify.
3136
3137 2017-11-07 Tom Tromey <tom@tromey.com>
3138
3139 * infcmd.c (strip_bg_char): Return gdb::unique_xmalloc_ptr.
3140 (run_command_1, continue_command, step_1, jump_command)
3141 (signal_command, until_command, advance_command, finish_command)
3142 (attach_command): Update.
3143
3144 2017-11-07 Tom Tromey <tom@tromey.com>
3145
3146 * command.h (set_cmd_cfunc): Don't declare.
3147 * cli/cli-decode.c (set_cmd_cfunc): Now static.
3148
3149 2017-11-07 Tom Tromey <tom@tromey.com>
3150
3151 * stack.c (select_frame_command): Constify.
3152 * cli/cli-decode.c (add_com_suppress_notification): Constify.
3153 * command.h (add_com_suppress_notification): Constify.
3154
3155 2017-11-07 Tom Tromey <tom@tromey.com>
3156
3157 * breakpoint.c (stop_command): Constify.
3158 * cli/cli-decode.c (struct cmd_list_element): Constify.
3159 * command.h (add_abbrev_prefix_cmd): Constify.
3160
3161 2017-11-07 Pedro Alves <palves@redhat.com>
3162
3163 * breakpoint.c (extract_bp_kind): New enum.
3164 (extract_bp_num, extract_bp_or_bp_range): New functions, partially
3165 factored out from ...
3166 (extract_bp_number_and_location): ... here.
3167 * cli/cli-utils.c (get_number_trailer): Handle '-$variable'.
3168
3169 2017-11-07 Pedro Alves <palves@redhat.com>
3170
3171 * breakpoint.c (extract_bp_number_and_location): Change return
3172 type to void. Throw error instead of warning.
3173 (enable_disable_command): Adjust.
3174
3175 2017-11-07 Xavier Roirand <roirand@adacore.com>
3176 Pedro Alves <palves@redhat.com>
3177
3178 * breakpoint.c (map_breakpoint_number_range): New, factored out
3179 from ...
3180 (map_breakpoint_numbers): ... here.
3181 (find_location_by_number): Change parameters from string to
3182 breakpoint number and location.
3183 (extract_bp_number_and_location): New function.
3184 (enable_disable_bp_num_loc)
3185 (enable_disable_breakpoint_location_range)
3186 (enable_disable_command): New functions, factored out ...
3187 (enable_command, disable_command): ... these functions, and
3188 adjusted to support ranges.
3189 * NEWS: Document enable/disable breakpoint location range feature.
3190
3191 2017-11-06 Luis Machado <luis.machado@linaro.org>
3192
3193 * MAINTAINERS (Write After Approval): Update my e-mail address.
3194
3195 2017-11-06 Pedro Alves <palves@redhat.com>
3196
3197 * gnu-nat.c (gnu_terminal_init): Delete.
3198 (gnu_target): Don't install gnu_terminal_init.
3199 * inflow.c (child_terminal_init_with_pgrp): Delete, merged with ...
3200 (child_terminal_init): ... this function.
3201
3202 2017-11-06 Pedro Alves <palves@redhat.com>
3203
3204 * common/common.m4 (GDB_AC_COMMON): No longer check termio.h nor
3205 sgtty.h.
3206 * config.in, configure: Regenerate.
3207
3208 2017-11-06 Pedro Alves <palves@redhat.com>
3209
3210 * event-top.c: Check SIGTSTP instead of STOP_SIGNAL thoughout.
3211 (async_init_signals): Adjust.
3212 (handle_stop_sig): Rename to ...
3213 (handle_sigtstp): ... this.
3214 (async_stop_sig): Rename to ...
3215 (async_sigtstp_handler): ... this, and delete STOP_SIGNAL !=
3216 SIGTSTP path.
3217 * event-top.h: Move signal.h include to the top. Check SIGTSTP
3218 instead of STOP_SIGNAL thoughout.
3219 (handle_stop_sig): Rename to ...
3220 (handle_sigtstp): ... this.
3221 * top.c (command_line_input): Replace STOP_SIGNAL -> SIGTSTP.
3222
3223 2017-11-06 Pedro Alves <palves@redhat.com>
3224
3225 * inflow.c (child_terminal_inferior, child_terminal_ours_1): No
3226 longer set flags twice in row.
3227
3228 2017-11-06 Pedro Alves <palves@redhat.com>
3229
3230 * Makefile.in (SER_HARDWIRE): Update comment.
3231 (HFILES_NO_SRCDIR): Remove gdb_termios.h.
3232 * common/gdb_termios.h: Delete file.
3233 * common/job-control.c: Include termios.h and unistd.h instead of
3234 gdb_termios.h.
3235 (gdb_setpgid): Remove HAVE_TERMIOS || TIOCGPGRP preprocessor
3236 check.
3237 (have_job_control): Check HAVE_TERMIOS_H instead of HAVE_TERMIOS.
3238 Remove sgtty code.
3239 * configure.ac: No longer check for termio.h and sgtty.h.
3240 * configure: Regenerate.
3241 * inflow.c: Include termios.h instead of gdb_termios.h. Replace
3242 PROCESS_GROUP_TYPE checks with HAVE_TERMIOS_H checks throughout.
3243 Replace PROCESS_GROUP_TYPE references with pid_t references
3244 throughout.
3245 (gdb_getpgrp): Delete.
3246 (set_initial_gdb_ttystate): Use tcgetpgrp instead of gdb_getpgrp.
3247 (child_terminal_inferior): Remove comment. Remove sgtty code.
3248 (child_terminal_ours_1): Use tcgetpgrp directly instead of
3249 gdb_getpgrp. Use serial_set_tty_state instead aof
3250 serial_noflush_set_tty_state. Remove sgtty code.
3251 * inflow.h: Include unistd.h instead of gdb_termios.h. Replace
3252 PROCESS_GROUP_TYPE check with HAVE_TERMIOS_H check.
3253 (inferior_process_group): Now returns pid_t.
3254 * ser-base.c (ser_base_noflush_set_tty_state): Delete.
3255 * ser-base.h (ser_base_noflush_set_tty_state): Delete.
3256 * ser-event.c (serial_event_ops): Update.
3257 * ser-go32.c (dos_noflush_set_tty_state): Delete.
3258 (dos_ops): Update.
3259 * ser-mingw.c (hardwire_ops, tty_ops, pipe_ops, tcp_ops): Update.
3260 * ser-pipe.c (pipe_ops): Update.
3261 * ser-tcp.c (tcp_ops): Update.
3262 * ser-unix.c: Include termios.h instead of gdb_termios.h. Remove
3263 HAVE_TERMIOS checks.
3264 [HAVE_TERMIO] (struct hardwire_ttystate): Delete.
3265 [HAVE_SGTTY] (struct hardwire_ttystate): Delete.
3266 (get_tty_state, set_tty_state): Drop termio and sgtty code, and
3267 assume termios.
3268 (hardwire_noflush_set_tty_state): Delete.
3269 (hardwire_print_tty_state, hardwire_drain_output)
3270 (hardwire_flush_output, hardwire_flush_input)
3271 (hardwire_send_break, hardwire_raw, hardwire_setbaudrate)
3272 (hardwire_setstopbits, hardwire_setparity): Drop termio and sgtty
3273 code, and assume termios.
3274 (hardwire_ops): Update.
3275 (_initialize_ser_hardwire): Remove HAVE_TERMIOS check.
3276 * serial.c (serial_noflush_set_tty_state): Delete.
3277 * serial.h (serial_noflush_set_tty_state): Delete.
3278 (serial_ops::noflush_set_tty_state): Delete.
3279
3280 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3281
3282 * Makefile.in (SFILES): Remove doublest.c and dfp.c.
3283 (HFILES_NO_SRCDIR): Remove doublest.h and dfp.h.
3284 (COMMON_OBS): Remove doublest.o and dfp.o.
3285 Do not build target-float.c (instead of doublest.c)
3286 with -Wformat-nonliteral.
3287
3288 * doublest.c: Remove file.
3289 * doublest.h: Remove file.
3290 * dfp.c: Remove file.
3291 * dfp.h: Remove file.
3292
3293 * target-float.c: Do not include "doublest.h" and "dfp.h".
3294 (DOUBLEST): Move here from doublest.h.
3295 (enum float_kind): Likewise.
3296 (FLOATFORMAT_CHAR_BIT): Likewise.
3297 (FLOATFORMAT_LARGEST_BYTES): Likewise.
3298 (floatformat_totalsize_bytes): Move here from doublest.c. Make static.
3299 (floatformat_precision): Likewise.
3300 (floatformat_normalize_byteorder, get_field, put_field): Likewise.
3301 (floatformat_is_negative, floatformat_classify, floatformat_mantissa):
3302 Likewise.
3303 (host_float_format, host_double_format, host_long_double_format):
3304 Likewise.
3305 (floatformat_to_string, floatformat_from_string): Likewise.
3306 (floatformat_to_doublest): Likewise. Also, inline the original
3307 convert_floatformat_to_doublest.
3308 (floatformat_from_doublest): Likewise. Also, inline the original
3309 convert_floatformat_from_doublest.
3310
3311 Include "dpd/decimal128.h", "dpd/decimal64.h", and "dpd/decimal32.h".
3312 (MAX_DECIMAL_STRING): Move here from dfp.c.
3313 (match_endianness): Likewise.
3314 (set_decnumber_context, decimal_check_errors): Likewise.
3315 (decimal_from_number, decimal_to_number): Likewise.
3316 (decimal_to_string, decimal_from_string): Likewise. Make static.
3317 (decimal_from_longest, decimal_from_ulongest): Likewise.
3318 (decimal_to_longest): Likewise.
3319 (decimal_binop, decimal_is_zero, decimal_compare): Likewise.
3320 (decimal_convert): Likewise.
3321
3322 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3323
3324 * doublest.c: Do not include "gdbtypes.h".
3325 (extract_typed_floating): Remove.
3326 (store_typed_floating): Remove.
3327 (convert_typed_floating): Remove.
3328 * doublest.h (struct type): Remove.
3329 (DOUBLEST_PRINT_FORMAT): Remove.
3330 (DOUBLEST_SCAN_FORMAT): Remove.
3331 (extract_typed_floating): Remove.
3332 (store_typed_floating): Remove.
3333 (convert_typed_floating): Remove.
3334
3335 * dfp.c (decimal_from_doublest): Remove.
3336 (decimal_to_doublest): Remove.
3337 * dfp.h: Do not include "doublest.h".
3338 (decimal_from_doublest): Remove.
3339 (decimal_to_doublest): Remove.
3340
3341 * value.c: Do not include "doublest.h" and "dfp.h".
3342 (value_as_double): Remove.
3343 (unpack_double): Remove.
3344 (value_from_double): Remove.
3345 (value_from_decfloat): Remove.
3346 * value.h: Do not include "doublest.h".
3347 (value_as_double): Remove.
3348 (unpack_double): Remove.
3349 (value_from_double): Remove.
3350 (value_from_decfloat): Remove.
3351
3352 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3353
3354 * i386-tdep.c: Include "target-float.h". Do not include "doublest.h".
3355 (i386_extract_return_value): Use target_float_convert.
3356 (i386_store_return_value): Likewise.
3357 * i387-tdep.c (i387_register_to_value): Use target_float_convert.
3358 (i387_value_to_register): Likewise.
3359 * ia64-tdep.c: Include "target-float.h". Do not include "doublest.h".
3360 (ia64_register_to_value): Use target_float_convert.
3361 (ia64_value_to_register): Likewise.
3362 (ia64_extract_return_value): Likewise.
3363 (ia64_store_return_value): Likewise.
3364 (ia64_push_dummy_call): Likewise.
3365 * m68k-tdep.c: Include "target-float.h".
3366 (m68k_register_to_value): Use target_float_convert.
3367 (m68k_value_to_register): Likewise.
3368 (m68k_svr4_extract_return_value): Likewise.
3369 (m68k_svr4_store_return_value): Likewise.
3370 * ppc-sysv-tdep.c: Include "target-float.h".
3371 (ppc_sysv_abi_push_dummy_call): Use target_float_convert.
3372 (do_ppc_sysv_return_value): Likewise.
3373 (ppc64_sysv_abi_push_freg): Likewise.
3374 (ppc64_sysv_abi_return_value_base): Likewise.
3375 * rs6000-aix-tdep.c: Include "target-float.h".
3376 (rs6000_push_dummy_call): Use target_float_convert.
3377 (rs6000_return_value): Likewise.
3378 * rs6000-lynx178-tdep.c: Include "target-float.h".
3379 (rs6000_lynx178_push_dummy_call): Use target_float_convert.
3380 (rs6000_lynx178_return_value): Likewise.
3381 * rs6000-tdep.c: Include "target-float.h". Do not include "doublest.h".
3382 (rs6000_register_to_value): Use target_float_convert.
3383 (rs6000_value_to_register): Likewise.
3384 * arm-tdep.c: Include "target-float.h". Do not include "doublest.h".
3385 (arm_extract_return_value): Use target_float_convert.
3386 (arm_store_return_value): Likewise.
3387 * sh-tdep.c: Include "target-float.h". Do not include "doublest.h".
3388 (sh_register_convert_to_virtual): Use target_float_convert.
3389 (sh_register_convert_to_raw): Likewise.
3390 * sh64-tdep.c: Include "target-float.h".
3391 (sh64_extract_return_value): Use target_float_convert.
3392 (sh64_register_convert_to_virtual): Likewise.
3393 (sh64_register_convert_to_raw): Likewise. Fix argument types.
3394
3395 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3396
3397 * target-float.c (floatformat_to_host_double): New function.
3398 (floatformat_from_host_double): Likewise.
3399 (target_float_to_host_double): Likewise.
3400 (target_float_from_host_double): Likewise.
3401 * target-float.h (target_float_to_host_double): Add prototype.
3402 (target_float_from_host_double): Likewise.
3403
3404 * guile/scm-value.c: Include "target-float.h".
3405 (gdbscm_value_to_real): Use target_float_to_host_double.
3406 Handle integer source values via value_as_long.
3407 * guile/scm-math.c: Include "target-float.h". Do not include
3408 "doublest.h", "dfp.h", and "expression.h".
3409 (vlscm_convert_typed_number): Use target_float_from_host_double.
3410 (vlscm_convert_number): Likewise.
3411
3412 * python/py-value.c (valpy_float): Use target_float_to_host_double.
3413 (convert_value_from_python): Use target_float_from_host_double.
3414
3415 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3416
3417 * ada-lang.c (cast_to_fixed): Reimplement in target arithmetic.
3418 (cast_from_fixed): Likewise.
3419 (ada_scaling_type): New function.
3420 (ada_delta): Return value instead of DOUBLEST. Perform target
3421 arithmetic instead of host arithmetic.
3422 (scaling_factor): Rename to ...
3423 (ada_scaling_factor) ... this. Make non-static. Return value instead
3424 of DOUBLEST. Perform target arithmetic instead of host arithmetic.
3425 (ada_fixed_to_float): Remove.
3426 (ada_float_to_fixed): Remove.
3427 * ada-lang.h (ada_fixed_to_float): Remove.
3428 (ada_float_to_fixed): Remove.
3429 (ada_delta): Return value instead of DOUBLEST.
3430 (ada_scaling_factor): Add prototype.
3431
3432 * ada-typeprint.c: Include "target-float.h".
3433 (print_fixed_point_type): Perform target arithmetic instead of
3434 host arithmetic.
3435 * ada-valprint.c: Include "target-float.h".
3436 (ada_val_print_num): Perform target arithmetic instead of
3437 host arithmetic for fixed-point types.
3438
3439 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3440
3441 * target-float.c: Include <math.h>.
3442 (floatformat_binop): New function.
3443 (floatformat_compare): Likewise.
3444 (target_float_binop): Likewise.
3445 (target_float_compare): Likewise.
3446 * target-float.h: Include "expression.h".
3447 (target_float_binop): Add prototype.
3448 (target_float_compare): Likewise.
3449
3450 * valarith.c: Do not include "doublest.h" and "dfp.h".
3451 Include "common/byte-vector.h".
3452 (value_args_as_decimal): Remove, replace by ...
3453 (value_args_as_target_float): ... this function. Handle both
3454 binary and decimal target floating-point formats.
3455 (scalar_binop): Handle both binary and decimal FP using
3456 value_args_as_target_float and target_float_binop.
3457 (value_equal): Handle both binary and decimal FP using
3458 value_args_as_target_float and target_float_compare.
3459 (value_less): Likewise.
3460 (value_pos): Handle all scalar types as simple copy.
3461 (value_neg): Handle all scalar types via BINOP_SUB from 0.
3462 * dfp.c (decimal_binop): Throw error instead of internal_error
3463 when called with an unsupported operation code.
3464
3465 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3466
3467 * target-float.c (target_float_to_string): New function.
3468 (target_float_from_string): New function.
3469 * target-float.h (target_float_to_string): Add prototype.
3470 (target_float_from_string): Add prototype.
3471
3472 * valprint.c: Include "target-float.h". Do not include
3473 "doublest.h" and "dfp.h".
3474 (print_floating): Use target_float_to_string.
3475 * printcmd.c: Include "target-float.h". Do not include "dfp.h".
3476 (printf_floating): Use target_float_to_string.
3477 * i387-tdep.c: Include "target-float.h". Do not include "doublest.h".
3478 (print_i387_value): Use target_float_to_string.
3479 * mips-tdep.c: Include "target-float.h".
3480 (mips_print_fp_register): Use target_float_to_string.
3481 * sh64-tdep.c: Include "target-float.h".
3482 (sh64_do_fp_register): Use target_float_to_string.
3483
3484 * parse.c: Include "target-float.h". Do not include
3485 "doublest.h" and "dfp.h".
3486 (parse_float): Use target_float_from_string.
3487 * stabsread.c: Include "target-float.h". Do not include "doublest.h".
3488 (define_symbol): Use target_float_from_string.
3489 * gdbarch-selftests.c: Include "target-float.h".
3490 (register_to_value_test): Use target_float_from_string.
3491
3492 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3493
3494 * Makefile.c (SFILES): Add target-float.c.
3495 (HFILES_NO_SRCDIR): Add target-float.h.
3496 (COMMON_OBS): Add target-float.o.
3497 * target-float.h: New file.
3498 * target-float.c: New file.
3499
3500 * doublest.c (floatformat_classify): Fix detection of float_zero.
3501
3502 * gdbtypes.c (is_floating_type): New function.
3503 * gdbtypes.h (is_floating_type): Add prototype.
3504
3505 * value.c: Do not include "floatformat.h".
3506 (unpack_double): Use target_float_is_valid.
3507 (is_floating_value): New function.
3508 * value.h (is_floating_value): Add prototype-
3509
3510 * valarith.c: Include "target-float.h".
3511 (value_logical_not): Use target_float_is_zero.
3512
3513 * python/py-value.c: Include "target-float.h".
3514 (valpy_nonzero): Use target_float_is_zero.
3515
3516 2017-11-04 Tom Tromey <tom@tromey.com>
3517
3518 * h8300-tdep.c (h8300_push_dummy_call): Use std::vector.
3519
3520 2017-11-04 Tom Tromey <tom@tromey.com>
3521
3522 * breakpoint.c (set_momentary_breakpoint): Return
3523 breakpoint_up.
3524 (until_break_command): Update.
3525 (new_until_break_fsm): Change argument types to
3526 breakpoint_up.
3527 (set_momentary_breakpoint_at_pc): Return breakpoint_up.
3528 (do_delete_breakpoint_cleanup, make_cleanup_delete_breakpoint):
3529 Remove.
3530 * infcmd.c (finish_forward): Update.
3531 * breakpoint.h (set_momentary_breakpoint)
3532 (set_momentary_breakpoint_at_pc): Return breakpoint_up.
3533 (make_cleanup_delete_breakpoint): Remove.
3534 (struct breakpoint_deleter): New.
3535 (breakpoint_up): New typedef.
3536 * infrun.c (insert_step_resume_breakpoint_at_sal_1): Update.
3537 (insert_exception_resume_breakpoint): Update.
3538 (insert_exception_resume_from_probe): Update.
3539 (insert_longjmp_resume_breakpoint): Update.
3540 * arm-linux-tdep.c (arm_linux_copy_svc): Update.
3541 * elfread.c (elf_gnu_ifunc_resolver_stop): Update.
3542 * infcall.c (call_function_by_hand_dummy): Update
3543
3544 2017-11-04 Tom Tromey <tom@tromey.com>
3545
3546 * c-typeprint.c (c_type_print_base): Use gdb::unique_xmalloc_ptr.
3547
3548 2017-11-04 Tom Tromey <tom@tromey.com>
3549
3550 * linux-tdep.c (linux_core_info_proc_mappings): Use
3551 gdb::def_vector.
3552 (linux_get_siginfo_data): Return gdb::byte_vector. Remove
3553 "size" argument.
3554 (linux_corefile_thread): Update.
3555 (linux_make_corefile_notes): Remove unused variable.
3556
3557 2017-11-04 Tom Tromey <tom@tromey.com>
3558
3559 * ppc-linux-tdep.c (ppc_linux_get_syscall_number): Use
3560 gdb::byte_vector.
3561
3562 2017-11-04 Tom Tromey <tom@tromey.com>
3563
3564 * objfiles.c (do_free_objfile_cleanup): Remove.
3565 * compile/compile-object-load.c (compile_object_load): Update.
3566 * objfiles.h (make_cleanup_free_objfile): Remove.
3567
3568 2017-11-04 Tom Tromey <tom@tromey.com>
3569
3570 * sparc64-tdep.c (do_examine): Use gdb::def_vector.
3571 (adi_read_versions): Change "tags" to "gdb_byte *".
3572 (adi_print_versions): Likewise.
3573
3574 2017-11-04 Tom Tromey <tom@tromey.com>
3575
3576 * breakpoint.c
3577 (scoped_rbreak_breakpoints::scoped_rbreak_breakpoints): Rename
3578 from start_rbreak_breakpoints.
3579 (scoped_rbreak_breakpoints): Rename from end_rbreak_breakpoints.
3580 * breakpoint.h (class scoped_rbreak_breakpoints): New.
3581 (start_rbreak_breakpoints, end_rbreak_breakpoints): Remove.
3582 * symtab.c (do_end_rbreak_breakpoints): Remove.
3583 (rbreak_command): Use scoped_rbreak_breakpoints, std::string.
3584
3585 2017-11-04 Tom Tromey <tom@tromey.com>
3586
3587 * cp-namespace.c (reset_directive_searched): Remove.
3588 (cp_lookup_symbol_via_imports): Use scoped_restore.
3589 * cp-support.c (reset_directive_searched): Remove.
3590 (make_symbol_overload_list_using): Use scoped_restore.
3591 * d-namespace.c (d_lookup_symbol_imports): Use scoped_restore.
3592 (reset_directive_searched): Remove.
3593
3594 2017-11-04 Tom Tromey <tom@tromey.com>
3595
3596 * symfile.c (find_separate_debug_file_by_debuglink): Use
3597 unique_xmalloc_ptr.
3598
3599 2017-11-04 Tom Tromey <tom@tromey.com>
3600
3601 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
3602 type of "info".
3603 (compute_stack_depth): Likewise.
3604 (do_compile_dwarf_expr_to_c): Use std::vector.
3605
3606 2017-11-04 Tom Tromey <tom@tromey.com>
3607
3608 * compile/compile-object-load.c (link_callbacks_einfo): Use
3609 std::string.
3610
3611 2017-11-04 Tom Tromey <tom@tromey.com>
3612
3613 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
3614 Use scoped_free_pendings.
3615 * dbxread.c (dbx_symfile_read, dbx_psymtab_to_symtab_1): Use
3616 scoped_free_pendings.
3617 * xcoffread.c (xcoff_psymtab_to_symtab_1): Use scoped_free_pendings.
3618 (xcoff_initial_scan): Likewise.
3619 * buildsym.c (reset_symtab_globals): Update comment.
3620 (scoped_free_pendings): Rename from really_free_pendings.
3621 (prepare_for_building): Update comment.
3622 (buildsym_init): Likewise.
3623 * buildsym.h (class scoped_free_pendings): New class.
3624 (really_free_pendings): Don't declare.
3625
3626 2017-11-03 Ulrich Weigand <uweigand@de.ibm.com>
3627
3628 * doublest.c (convert_doublest_to_floatformat): Fix uninitialized
3629 output when converting a zero value to a special byteorder format.
3630
3631 2017-11-02 Yao Qi <yao.qi@linaro.org>
3632
3633 * frame.c (do_frame_register_read): Remove aspace.
3634 * jit.c (jit_frame_sniffer): Likwise.
3635 * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
3636 * regcache.c (regcache::regcache): Pass nullptr.
3637 (regcache_print): Caller updated.
3638 * regcache.h (regcache::regcache): Remove one constructor
3639 parameter aspace.
3640
3641 2017-11-02 Yao Qi <yao.qi@linaro.org>
3642
3643 * regcache.h (regcache) <m_readonly_p>: Change it to const bool.
3644
3645 2017-11-02 Yao Qi <yao.qi@linaro.org>
3646
3647 * breakpoint.c (insert_single_step_breakpoints): Update.
3648 * frame.c (struct frame_info) <aspace>: Add const.
3649 (frame_save_as_regcache): Add const.
3650 (get_frame_address_space): Return const address_space *.
3651 * frame.h (get_frame_address_space): Update declaration.
3652 * infrun.c (struct step_over_info) <aspace>: Add const.
3653 (set_step_over_info): Make aspace const.
3654 (displaced_step_prepare_throw): Change variable const.
3655 (resume): Likewise.
3656 (proceed): Likewise.
3657 (adjust_pc_after_break): Likewise.
3658 (save_waitstatus): Likewise.
3659 (handle_signal_stop): Likewise.
3660 (keep_going_pass_signal): Likewise.
3661 * jit.c (jit_frame_sniffer): Add const.
3662 * mips-tdep.c (mips_single_step_through_delay): Likewise.
3663 * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
3664 * record-full.c (record_full_wait_1): Likewise.
3665 * regcache.c (regcache::regcache): Change parameter to const.
3666 * regcache.h (regcache::regcache): Likewise.
3667 (regcache::aspace): Return const address_space *.
3668 (regcache) <m_aspace>: Add const.
3669
3670 2017-11-02 Yao Qi <yao.qi@linaro.org>
3671
3672 * darwin-nat.c (cancel_breakpoint): Use regcache->aspace ().
3673 * frame.c (create_sentinel_frame): Likewise.
3674 * infrun.c (displaced_step_prepare_throw): Likewise.
3675 (resume): Likewise.
3676 (thread_still_needs_step_over_bp): Likewise.
3677 (proceed): Likewise.
3678 (do_target_wait): Likewise.
3679 (adjust_pc_after_break): Likewise.
3680 (handle_syscall_event): Likewise.
3681 (save_waitstatus): Likewise.
3682 (handle_inferior_event_1): Likewise.
3683 (handle_signal_stop): Likewise.
3684 (keep_going_pass_signal): Likewise.
3685 * linux-nat.c (status_callback): Likewise.
3686 (save_stop_reason): Likewise.
3687 (resume_stopped_resumed_lwps): Likewise.
3688 * record-full.c (record_full_exec_insn): Likewise.
3689 (record_full_wait_1): Likewise.
3690 * regcache.c (get_regcache_aspace): Remove.
3691 * regcache.h (get_regcache_aspace): Remove.
3692
3693 2017-11-02 Yao Qi <yao.qi@linaro.org>
3694
3695 * regcache.c (struct regcache_descr) <nr_raw_registers>: Remove.
3696 (init_regcache_descr): Use gdbarch_num_regs.
3697 (regcache::regcache): Likewise.
3698 (regcache::get_register_status): Likewise.
3699 (regcache::assert_raw_regnum): Likewise.
3700 (regcache::cooked_read): Likewise.
3701 (regcache::cooked_read_value): Likewise.
3702 (regcache::cooked_write): Likewise.
3703 (regcache::dump): Likewise.
3704 (regcache::num_raw_registers): New method.
3705 * regcache.h (class regcache) <num_raw_registers>: New.
3706
3707 2017-11-02 Yao Qi <yao.qi@linaro.org>
3708
3709 * regcache.c (regcache::assert_regnum): New method.
3710 (regcache::invalidate): Call assert_regnum.
3711 (regcache::raw_update): Likewise.
3712 (regcache::raw_write): Likewise.
3713 (regcache::raw_read_part): Likewise.
3714 (regcache::raw_write_part): Likewise.
3715 (regcache::raw_supply): Likewise.
3716 (regcache::raw_supply_integer): Likewise.
3717 (regcache::raw_supply_zeroed): Likewise.
3718 (regcache::raw_collect): Likewise.
3719 (regcache::raw_collect_integer): Likewise.
3720 * regcache.h (regcache::assert_regnum): Declare.
3721
3722 2017-11-02 Yao Qi <yao.qi@linaro.org>
3723
3724 * regcache.c (regcache::dump): Remove code.
3725
3726 2017-11-02 Yao Qi <yao.qi@linaro.org>
3727
3728 * regcache.c (struct regcache_descr) <sizeof_raw_register_status>:
3729 Remove.
3730 <sizeof_cooked_register_status>: Remove.
3731 (init_regcache_descr): Update.
3732 (regcache::regcache): Use nr_cooked_registers and nr_raw_registers.
3733 (regcache::save): Likewise.
3734 (regcache::dump): Likewise.
3735
3736 2017-11-01 James Bowman <james.bowman@ftdichip.com>
3737
3738 * ft32-tdep.c (ft32_fetch_instruction): New function.
3739 (ft32_analyze_prologue): Use ft32_fetch_instruction().
3740
3741 2017-10-31 Simon Marchi <simon.marchi@polymtl.ca>
3742
3743 * cli/cli-script.c (execute_control_command): Rename to ...
3744 (execute_control_command_1): ... this.
3745 (execute_control_command): New function.
3746
3747 2017-10-31 Simon Marchi <simon.marchi@ericsson.com>
3748
3749 * tracepoint.c (tfind_command): Remove const_cast.
3750
3751 2017-10-30 Mike Gulick <mgulick@mathworks.com>
3752
3753 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to gdb.h.
3754
3755 2017-10-30 Simon Marchi <simon.marchi@ericsson.com>
3756
3757 * common/common-utils.h (in_inclusive_range): New function.
3758 * arm-tdep.c (arm_record_extension_space): Use
3759 in_inclusive_range.
3760 (thumb_record_ld_st_reg_offset): Use in_inclusive_range.
3761 * cris-tdep.c (cris_spec_reg_applicable): Use
3762 in_inclusive_range.
3763
3764 2017-10-30 Pedro Alves <palves@redhat.com>
3765 Simon Marchi <simon.marchi@ericsson.com>
3766
3767 * remote.c (remote_set_syscall_catchpoint): Build a std::string
3768 instead of a gdb::unique_xmalloc_ptr, using string_appendf.
3769
3770 2017-10-30 Pedro Alves <palves@redhat.com>
3771
3772 * common/common-utils.c (string_appendf, string_vappendf): New
3773 functions.
3774 * common/common-utils.h (string_appendf, string_vappendf): New
3775 declarations.
3776 * unittests/common-utils-selftests.c (string_appendf_func)
3777 (test_appendf_func, string_vappendf_wrapper, string_appendf_tests)
3778 (string_vappendf_tests): New functions.
3779 (_initialize_common_utils_selftests): Register "string_appendf" and
3780 "string_vappendf tests".
3781
3782 2017-10-30 Pedro Alves <palves@redhat.com>
3783
3784 * unittests/common-utils-selftests.c (format_func): New typedef.
3785 (string_printf_tests, string_vprintf_tests): Tests factored out
3786 and merged to ...
3787 (test_format_func): ... this new function.
3788 (string_printf_tests, string_vprintf_tests): Reimplement on top of
3789 test_format_func.
3790
3791 2017-10-29 Simon Marchi <simon.marchi@ericsson.com>
3792
3793 * darwin-nat.c: Remove include of gdb.h.
3794
3795 2017-10-29 Simon Marchi <simon.marchi@ericsson.com>
3796
3797 * xtensa-xtregs.c: Fix formatting issues.
3798
3799 2017-10-29 Simon Marchi <simon.marchi@ericsson.com>
3800
3801 * xtensa-xtregs.c (xtensa_regtable_t) <name>: Constify.
3802
3803 2017-10-28 Maksim Dzabraev <dzabraew@gmail.com>
3804
3805 PR python/21213
3806 * python/py-infthread.c (thpy_get_inferior): Increment reference
3807 of inferior before returning it.
3808
3809 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3810
3811 * unittests/common-utils-selftests.c (format): Add
3812 ATTRIBUTE_PRINTF.
3813
3814 2017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
3815
3816 * xml-syscall.c (struct syscall_desc): Add constructor.
3817 <name>: Change type to std::string.
3818 (syscall_desc_up): New typedef.
3819 (syscall_desc_p): Remove typeder.
3820 (DEF_VEC_P(syscall_desc_p)): Remove.
3821 (struct syscall_group_desc): Add constructor.
3822 <name>: Change type to std::string.
3823 <syscalls>: Change type to std::vector.
3824 (syscall_group_desc_up): New typedef.
3825 (syscall_group_desc_p): Remove typedef.
3826 (DEF_VEC_P(syscall_group_desc_p)): Remove.
3827 (struct syscalls_info) <syscalls>: Change type to std::vector of
3828 unique_ptr.
3829 <groups>: Likewise.
3830 <my_gdb_datadir>: Change type to std::string.
3831 (syscalls_info_up): New typedef.
3832 (allocate_syscalls_info): Remove.
3833 (syscalls_info_free_syscalls_desc): Remove.
3834 (syscalls_info_free_syscall_group_desc): Remove.
3835 (free_syscalls_info): Remove.
3836 (make_cleanup_free_syscalls_info): Remove.
3837 (syscall_group_create_syscall_group_desc): Adjust.
3838 (syscall_group_add_syscall): Adjust.
3839 (syscall_create_syscall_desc): Adjust.
3840 (syscall_parse_xml): Adjust, use unique_ptr instead of cleanup.
3841 (init_syscalls_info): Adjust.
3842 (syscall_group_get_group_by_name): Adjust.
3843 (xml_get_syscall_number): Adjust.
3844 (xml_get_syscall_name): Adjust.
3845 (xml_list_of_syscalls): Adjust.
3846 (xml_list_syscalls_by_group): Adjust.
3847 (xml_list_of_groups): Adjust.
3848
3849 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3850
3851 * probe.h: Don't include gdb_vecs.h.
3852 (DEF_VEC_P (probe_p)): Remove.
3853 (find_probes_in_objfile): Return an std::vector.
3854 * probe.c (find_probes_in_objfile): Likewise.
3855 * breakpoint.c (breakpoint_objfile_data)
3856 <longjmp_probes>: Change type to std::vector.
3857 <exception_probes>: Likewise.
3858 (free_breakpoint_probes): Don't manually free vectors.
3859 (create_longjmp_master_breakpoint): Adjust.
3860 (create_exception_master_breakpoint): Adjust.
3861 * solib-svr4.c (svr4_create_probe_breakpoints): Change
3862 parameter type, adjust.
3863 (svr4_create_solib_event_breakpoints): Adjust.
3864
3865 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3866
3867 * breakpoint.c (breakpoint_objfile_data): Initialize fields.
3868 (get_breakpoint_objfile_data): Allocate breakpoint_objfile_data
3869 with new.
3870 (free_breakpoint_probes): Rename to ...
3871 (free_breakpoint_objfile_data): ... this, and call delete on
3872 bp_objfile_data..
3873
3874 2017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
3875
3876 * auto-load.c: Don't include gdb_vecs.h, include algorithm.
3877 (loaded_script_ptr): Remove typedef.
3878 (DEF_VEC_P (loaded_script_ptr)): Remove.
3879 (struct collect_matching_scripts_data): Add constructor.
3880 <scripts_p>: Change type to (pointer to) std::vector.
3881 (collect_matching_scripts_data): Adjust.
3882 (sort_scripts_by_name): Make suitable for std::sort.
3883 (print_scripts): Don't sort vector, adjust to std::vector.
3884 (auto_load_info_scripts): Sort vectors, adjust to std::vector.
3885
3886 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3887
3888 * symfile.c (filename_language): Make struct, not typedef. Add
3889 constructor.
3890 <ext>: Change type to std::string.
3891 (DEF_VEC_O (filename_language)): Remove.
3892 (filename_language_table): Change type to std::vector.
3893 (add_filename_language): Adjust.
3894 (set_ext_lang_command): Adjust.
3895 (info_ext_lang_command): Adjust.
3896 (deduce_language_from_filename): Adjust.
3897 (class scoped_restore_filename_language_table): Remove.
3898 (test_filename_language): Use scoped_restore.
3899 (test_set_ext_lang_command): Use scoped_restore, adjust to
3900 std::vector change.
3901
3902 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3903
3904 * symfile.c: Include selftest.h.
3905 (class scoped_restore_filename_language_table): New.
3906 (test_filename_language): New test.
3907 (test_set_ext_lang_command): New test.
3908 (_initialize_symfile): Register tests.
3909
3910 2017-10-27 Keith Seitz <keiths@redhat.com>
3911
3912 * breakpoint.c (print_breakpoint_location): Use the symbol saved
3913 in the bp_location, falling back to find_pc_sect_function when
3914 needed.
3915 (add_location_to_breakpoint): Save sal->symbol.
3916 * breakpoint.h (struct bp_location) <symbol>: New field.
3917 * symtab.c (find_function_start_sal): Save the symbol into the SaL.
3918 * symtab.h (struct symtab_and_line) <symbol>: New field.
3919
3920 2017-10-26 Patrick Frants <osscontribute@gmail.com>
3921
3922 PR gdb/13669
3923 * cp-valprint.c (cp_print_value_fields): Use obstack_blank_fast
3924 to rewind obstack.
3925
3926 2017-10-26 Pedro Alves <palves@redhat.com>
3927
3928 * remote.c (remote_async_terminal_ours_p): Delete.
3929 (remote_open_1, remote_terminal_inferior, remote_terminal_ours):
3930 Remove references to 'remote_async_terminal_ours_p'.
3931
3932 2017-10-26 Yao Qi <yao.qi@linaro.org>
3933
3934 * breakpoint.h (regular_breakpoint_inserted_here_p): Remove.
3935
3936 2017-10-26 Yao Qi <yao.qi@linaro.org>
3937
3938 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Make
3939 aspace const.
3940 * break-catch-syscall.c (breakpoint_hit_catch_syscall):
3941 Likewise.
3942 * breakpoint.c (bpstat_check_location): Remove cast.
3943 (breakpoint_hit_catch_fork): Make aspce const.
3944 (breakpoint_hit_catch_solib): Likewise.
3945 (breakpoint_hit_catch_exec): Likewise.
3946 (breakpoint_hit_ranged_breakpoint): Likewise.
3947 (breakpoint_hit_watchpoint): Likewise.
3948 (base_breakpoint_breakpoint_hit): Likewise.
3949 (bkpt_breakpoint_hit): Likewise.
3950 (dprintf_breakpoint_hit): Likewise.
3951 (tracepoint_breakpoint_hit): Likewise.
3952 * breakpoint.h (breakpoint_ops) <breakpoint_hit>: Likewise.
3953
3954 2017-10-26 Yao Qi <yao.qi@linaro.org>
3955
3956 * breakpoint.c (breakpoint_location_address_match): Change
3957 "struct address_space *" to "const address_space".
3958 (breakpoint_location_address_range_overlap): Likewise.
3959 (breakpoint_here_p): Likewise.
3960 (breakpoint_in_range_p): Likewise.
3961 (moribund_breakpoint_here_p): Likewise.
3962 (bp_location_inserted_here_p): Likewise.
3963 (software_breakpoint_inserted_here_p): Likewise.
3964 (hardware_breakpoint_inserted_here_p): Likewise.
3965 (hardware_watchpoint_inserted_in_range): Likewise.
3966 (bpstat_check_location): Likewise.
3967 (bpstat_stop_status): Likewise.
3968 (breakpoint_address_match): Likewise.
3969 (breakpoint_address_match_range): Likewise.
3970 (breakpoint_location_address_match): Likewise.
3971 (breakpoint_location_address_range_overlap): Likewise.
3972 (insert_single_step_breakpoint): Likewise.
3973 (breakpoint_has_location_inserted_here): Likewise.
3974 (single_step_breakpoint_inserted_here_p): Likewise.
3975 (pc_at_non_inline_function): Likewise.
3976 * breakpoint.h (bpstat_stop_status): Update declaration.
3977 (breakpoint_here_p): Likewise.
3978 (breakpoint_in_range_p): Likewise.
3979 (moribund_breakpoint_here_p): Likewise.
3980 (breakpoint_inserted_here_p): Likewise.
3981 (software_breakpoint_inserted_here_p): Likewise.
3982 (hardware_breakpoint_inserted_here_p): Likewise.
3983 (breakpoint_has_location_inserted_here): Likewise.
3984 (single_step_breakpoint_inserted_here_p): Likewise.
3985 (hardware_watchpoint_inserted_in_range): Likewise.
3986 (breakpoint_address_match): Likewise.
3987 (insert_single_step_breakpoint): Likewise.
3988 (pc_at_non_inline_function): Likewise.
3989 * gdbthread.h (thread_has_single_step_breakpoint_here): Likewise.
3990 * record.c (record_check_stopped_by_breakpoint): Likewise.
3991 * record.h (record_check_stopped_by_breakpoint): Likewise.
3992 * thread.c (thread_has_single_step_breakpoint_here): Likewise.
3993
3994 2017-10-25 Yao Qi <yao.qi@linaro.org>
3995
3996 * aarch32-linux-nat.c (aarch32_gp_regcache_supply): Use
3997 regcache->arch () instead get_regcache_arch.
3998 * aarch64-fbsd-nat.c (aarch64_fbsd_fetch_inferior_registers):
3999 Likewise.
4000 (aarch64_fbsd_store_inferior_registers): Likewise.
4001 * aarch64-linux-nat.c (fetch_gregs_from_thread): Likewise.
4002 (store_gregs_to_thread): Likewise.
4003 (fetch_fpregs_from_thread): Likewise.
4004 (store_fpregs_to_thread): Likewise.
4005 * aarch64-tdep.c (aarch64_extract_return_value): Likewise.
4006 (aarch64_store_return_value): Likewise.
4007 (aarch64_software_single_step): Likewise.
4008 * aix-thread.c (aix_thread_wait): Likewise.
4009 (supply_reg32): Likewise.
4010 (supply_sprs64): Likewise.
4011 (supply_sprs32): Likewise.
4012 (fill_gprs64): Likewise.
4013 (fill_gprs32): Likewise.
4014 (fill_sprs64): Likewise.
4015 (fill_sprs32): Likewise.
4016 (store_regs_user_thread): Likewise.
4017 (store_regs_kernel_thread): Likewise.
4018 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
4019 (alphabsd_store_inferior_registers): Likewise.
4020 * alpha-tdep.c (alpha_extract_return_value): Likewise.
4021 (alpha_store_return_value): Likewise.
4022 (alpha_deal_with_atomic_sequence): Likewise.
4023 (alpha_next_pc): Likewise.
4024 (alpha_software_single_step): Likewise.
4025 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
4026 (amd64bsd_store_inferior_registers): Likewise.
4027 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
4028 Likewise.
4029 (amd64_linux_store_inferior_registers): Likewise.
4030 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
4031 (amd64_collect_native_gregset): Likewise.
4032 * amd64-obsd-tdep.c (amd64obsd_supply_uthread): Likewise.
4033 (amd64obsd_collect_uthread): Likewise.
4034 * amd64-tdep.c (amd64_supply_fpregset): Likewise.
4035 (amd64_collect_fpregset): Likewise.
4036 (amd64_supply_fxsave): Likewise.
4037 (amd64_supply_xsave): Likewise.
4038 (amd64_collect_fxsave): Likewise.
4039 (amd64_collect_xsave): Likewise.
4040 * arc-tdep.c (arc_write_pc): Likewise.
4041 * arch-utils.c (default_skip_permanent_breakpoint): Likewise.
4042 * arm-fbsd-nat.c (arm_fbsd_fetch_inferior_registers): Likewise.
4043 (arm_fbsd_store_inferior_registers): Likewise.
4044 * arm-linux-nat.c (fetch_vfp_regs): Likewise.
4045 (store_vfp_regs): Likewise.
4046 (arm_linux_fetch_inferior_registers): Likewise.
4047 (arm_linux_store_inferior_registers): Likewise.
4048 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
4049 (arm_linux_sigreturn_next_pc): Likewise.
4050 (arm_linux_get_next_pcs_syscall_next_pc): Likewise.
4051 * arm-nbsd-nat.c (arm_supply_gregset): Likewise.
4052 (fetch_register): Likewise.
4053 (store_register): Likewise.
4054 * arm-tdep.c (arm_is_thumb): Likewise.
4055 (displaced_in_arm_mode): Likewise.
4056 (bx_write_pc): Likewise.
4057 (arm_get_next_pcs_addr_bits_remove): Likewise.
4058 (arm_software_single_step): Likewise.
4059 (arm_extract_return_value): Likewise.
4060 (arm_store_return_value): Likewise.
4061 (arm_write_pc): Likewise.
4062 * bfin-tdep.c (bfin_extract_return_value): Likewise.
4063 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
4064 (bsd_uthread_store_registers): Likewise.
4065 * core-regset.c (fetch_core_registers): Likewise.
4066 * corelow.c (get_core_registers): Likewise.
4067 * cris-tdep.c (cris_store_return_value): Likewise.
4068 (cris_extract_return_value): Likewise.
4069 (find_step_target): Likewise.
4070 (find_step_target): Likewise.
4071 (cris_software_single_step): Likewise.
4072 * ctf.c (ctf_fetch_registers): Likewise.
4073 * darwin-nat.c (cancel_breakpoint): Likewise.
4074 * fbsd-tdep.c (fbsd_collect_thread_registers): Likewise.
4075 * frv-tdep.c (frv_extract_return_value): Likewise.
4076 * ft32-tdep.c (ft32_store_return_value): Likewise.
4077 (ft32_extract_return_value): Likewise.
4078 * go32-nat.c (fetch_register): Likewise.
4079 (go32_fetch_registers): Likewise.
4080 (go32_store_registers): Likewise.
4081 (store_register): Likewise.
4082 * h8300-tdep.c (h8300_extract_return_value): Likewise.
4083 (h8300_store_return_value): Likewise.
4084 * hppa-linux-nat.c (fetch_register): Likewise.
4085 (store_register): Likewise.
4086 (hppa_linux_fetch_inferior_registers): Likewise.
4087 (hppa_linux_store_inferior_registers): Likewise.
4088 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Likewise.
4089 (i386_darwin_store_inferior_registers): Likewise.
4090 * i386-gnu-nat.c (gnu_fetch_registers): Likewise.
4091 (gnu_store_registers): Likewise.
4092 * i386-linux-nat.c (fetch_register): Likewise.
4093 (store_register): Likewise.
4094 (supply_gregset): Likewise.
4095 (fill_gregset): Likewise.
4096 (i386_linux_fetch_inferior_registers): Likewise.
4097 (i386_linux_store_inferior_registers): Likewise.
4098 (i386_linux_resume): Likewise.
4099 * i386-linux-tdep.c (i386_linux_get_syscall_number_from_regcache):
4100 Likewise.
4101 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
4102 * i386-obsd-nat.c (i386obsd_supply_pcb): Likewise.
4103 * i386-obsd-tdep.c (i386obsd_supply_uthread): Likewise.
4104 (i386obsd_collect_uthread): Likewise.
4105 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
4106 (i386_supply_gregset): Likewise.
4107 (i386_collect_gregset): Likewise.
4108 (i386_supply_fpregset): Likewise.
4109 (i386_collect_fpregset): Likewise.
4110 (i386_mpx_bd_base): Likewise.
4111 * i386-v4-nat.c (supply_fpregset): Likewise.
4112 (fill_fpregset): Likewise.
4113 * i387-tdep.c (i387_supply_fsave): Likewise.
4114 (i387_collect_fsave): Likewise.
4115 (i387_supply_fxsave): Likewise.
4116 (i387_collect_fxsave): Likewise.
4117 (i387_supply_xsave): Likewise.
4118 (i387_collect_xsave): Likewise.
4119 * ia64-linux-nat.c (ia64_linux_fetch_registers): Likewise.
4120 (ia64_linux_store_registers): Likewise.
4121 * ia64-tdep.c (ia64_access_rse_reg): Likewise.
4122 (ia64_extract_return_value): Likewise.
4123 (ia64_store_return_value): Likewise.
4124 (find_func_descr): Likewise.
4125 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
4126 * inf-ptrace.c (inf_ptrace_fetch_registers): Likewise.
4127 (inf_ptrace_store_registers): Likewise.
4128 * infrun.c (use_displaced_stepping): Likewise.
4129 (displaced_step_prepare_throw): Likewise.
4130 (resume): Likewise.
4131 (proceed): Likewise.
4132 (do_target_wait): Likewise.
4133 (adjust_pc_after_break): Likewise.
4134 (handle_inferior_event_1): Likewise.
4135 (handle_signal_stop): Likewise.
4136 (save_infcall_suspend_state): Likewise.
4137 (restore_infcall_suspend_state): Likewise.
4138 * iq2000-tdep.c (iq2000_extract_return_value): Likewise.
4139 * jit.c (jit_frame_prev_register): Likewise.
4140 * linux-nat.c (save_stop_reason): Likewise.
4141 (linux_nat_wait_1): Likewise.
4142 (resume_stopped_resumed_lwps): Likewise.
4143 * linux-record.c (record_linux_sockaddr): Likewise.
4144 (record_linux_msghdr): Likewise.
4145 (record_linux_system_call): Likewise.
4146 * linux-tdep.c (linux_collect_thread_registers): Likewise.
4147 * lm32-tdep.c (lm32_extract_return_value): Likewise.
4148 (lm32_store_return_value): Likewise.
4149 * m32c-tdep.c (m32c_read_flg): Likewise.
4150 (m32c_pseudo_register_read): Likewise.
4151 (m32c_pseudo_register_write): Likewise.
4152 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Likewise.
4153 (m32r_linux_collect_gregset): Likewise.
4154 * m32r-tdep.c (m32r_store_return_value): Likewise.
4155 (m32r_extract_return_value): Likewise.
4156 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
4157 (m68kbsd_collect_fpregset): Likewise.
4158 * m68k-bsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
4159 * m68k-linux-nat.c (fetch_register): Likewise.
4160 (old_fetch_inferior_registers): Likewise.
4161 (old_store_inferior_registers): Likewise.
4162 (store_regs): Likewise.
4163 * m68k-tdep.c (m68k_svr4_extract_return_value): Likewise.
4164 (m68k_svr4_store_return_value): Likewise.
4165 * m88k-tdep.c (m88k_store_arguments): Likewise.
4166 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Likewise.
4167 (mi_cmd_data_write_register_values): Likewise.
4168 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers): Likewise.
4169 (mips_fbsd_store_inferior_registers): Likewise.
4170 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Likewise.
4171 (mips_fbsd_supply_gregs): Likewise.
4172 (mips_fbsd_collect_fpregs): Likewise.
4173 (mips_fbsd_collect_gregs): Likewise.
4174 (mips_fbsd_supply_fpregset): Likewise.
4175 (mips_fbsd_collect_fpregset): Likewise.
4176 (mips_fbsd_supply_gregset): Likewise.
4177 (mips_fbsd_collect_gregset): Likewise.
4178 * mips-linux-nat.c (supply_gregset): Likewise.
4179 (fill_gregset): Likewise.
4180 (supply_fpregset): Likewise.
4181 (fill_fpregset): Likewise.
4182 * mips-linux-tdep.c (mips_supply_gregset): Likewise.
4183 (mips_fill_gregset): Likewise.
4184 (mips_supply_fpregset): Likewise.
4185 (mips_fill_fpregset): Likewise.
4186 (mips64_supply_gregset): Likewise.
4187 (micromips_linux_sigframe_validate): Likewise.
4188 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
4189 (mipsnbsd_fetch_inferior_registers): Likewise.
4190 (mipsnbsd_store_inferior_registers): Likewise.
4191 * mips-nbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
4192 (mipsnbsd_supply_gregset): Likewise.
4193 (mipsnbsd_iterate_over_regset_sections): Likewise.
4194 (mipsnbsd_supply_reg): Likewise.
4195 (mipsnbsd_supply_fpreg): Likewise.
4196 * mips-tdep.c (mips_in_frame_stub): Likewise.
4197 (mips_dummy_id): Likewise.
4198 (is_octeon_bbit_op): Likewise.
4199 (micromips_bc1_pc): Likewise.
4200 (extended_mips16_next_pc): Likewise.
4201 (mips16_next_pc): Likewise.
4202 (deal_with_atomic_sequence): Likewise.
4203 * moxie-tdep.c (moxie_process_readu): Likewise.
4204 * nios2-tdep.c (nios2_get_next_pc): Likewise.
4205 * nto-procfs.c (procfs_store_registers): Likewise.
4206 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers): Likewise.
4207 (ppcfbsd_store_inferior_registers): Likewise.
4208 * ppc-linux-nat.c (fetch_vsx_register): Likewise.
4209 (fetch_altivec_register): Likewise.
4210 (get_spe_registers): Likewise.
4211 (fetch_spe_register): Likewise.
4212 (fetch_altivec_registers): Likewise.
4213 (fetch_all_gp_regs): Likewise.
4214 (fetch_all_fp_regs): Likewise.
4215 (store_vsx_register): Likewise.
4216 (store_altivec_register): Likewise.
4217 (set_spe_registers): Likewise.
4218 (store_spe_register): Likewise.
4219 (store_altivec_registers): Likewise.
4220 (store_all_gp_regs): Likewise.
4221 (store_all_fp_regs): Likewise.
4222 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
4223 (ppc_linux_collect_gregset): Likewise.
4224 (ppc_canonicalize_syscall): Likewise.
4225 (ppc_linux_record_signal): Likewise.
4226 (ppu2spu_prev_register): Likewise.
4227 * ppc-nbsd-nat.c (ppcnbsd_supply_pcb): Likewise.
4228 * ppc-obsd-nat.c (ppcobsd_fetch_registers): Likewise.
4229 (ppcobsd_store_registers): Likewise.
4230 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_fetch_registers):
4231 Likewise.
4232 (ppc_ravenscar_generic_store_registers): Likewise.
4233 * procfs.c (procfs_fetch_registers): Likewise.
4234 (procfs_store_registers): Likewise.
4235 * ravenscar-thread.c (ravenscar_fetch_registers): Likewise.
4236 (ravenscar_store_registers): Likewise.
4237 (ravenscar_prepare_to_store): Likewise.
4238 * record-btrace.c (record_btrace_fetch_registers): Likewise.
4239 * record-full.c (record_full_wait_1): Likewise.
4240 (record_full_registers_change): Likewise.
4241 (record_full_store_registers): Likewise.
4242 (record_full_core_fetch_registers): Likewise.
4243 (record_full_save): Likewise.
4244 (record_full_goto_insn): Likewise.
4245 * regcache.c (regcache_register_size): Likewise.
4246 (get_regcache_arch): Remove.
4247 (regcache_read_pc): Likewise.
4248 * regcache.h (get_regcache_arch): Remove.
4249 * remote-sim.c (gdbsim_fetch_register): Likewise.
4250 (gdbsim_store_register): Likewise.
4251 * remote.c (fetch_register_using_p): Likewise.
4252 (send_g_packet): Likewise.
4253 (remote_prepare_to_store): Likewise.
4254 (store_registers_using_G): Likewise.
4255 * reverse.c (save_bookmark_command): Likewise.
4256 (goto_bookmark_command): Likewise.
4257 * rs6000-aix-tdep.c (branch_dest): Likewise.
4258 * rs6000-nat.c (rs6000_ptrace64): Likewise.
4259 (fetch_register): Likewise.
4260 * rs6000-tdep.c (ppc_supply_reg): Likewise.
4261 (ppc_collect_reg): Likewise.
4262 (ppc_collect_gregset): Likewise.
4263 (ppc_collect_fpregset): Likewise.
4264 (ppc_collect_vsxregset): Likewise.
4265 (ppc_collect_vrregset): Likewise.
4266 (ppc_displaced_step_hw_singlestep): Likewise.
4267 (rs6000_pseudo_register_read): Likewise.
4268 (rs6000_pseudo_register_write): Likewise.
4269 * s390-linux-nat.c (supply_gregset): Likewise.
4270 (fill_gregset): Likewise.
4271 (s390_linux_fetch_inferior_registers): Likewise.
4272 * s390-linux-tdep.c (s390_write_pc): Likewise.
4273 (s390_software_single_step): Likewise.
4274 (s390_all_but_pc_registers_record): Likewise.
4275 (s390_linux_syscall_record): Likewise.
4276 * sentinel-frame.c (sentinel_frame_prev_arch): Likewise.
4277 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
4278 (shnbsd_store_inferior_registers): Likewise.
4279 * sh-tdep.c (sh_extract_return_value_nofpu): Likewise.
4280 (sh_extract_return_value_fpu): Likewise.
4281 (sh_store_return_value_nofpu): Likewise.
4282 (sh_corefile_supply_regset): Likewise.
4283 (sh_corefile_collect_regset): Likewise.
4284 * sh64-tdep.c (sh64_extract_return_value): Likewise.
4285 (sh64_store_return_value): Likewise.
4286 * sparc-linux-tdep.c (sparc32_linux_collect_core_fpregset): Likewise.
4287 * sparc-nat.c (sparc_fetch_inferior_registers): Likewise.
4288 (sparc_store_inferior_registers): Likewise.
4289 * sparc-ravenscar-thread.c (register_in_thread_descriptor_p): Likewise.
4290 (sparc_ravenscar_prepare_to_store): Likewise.
4291 * sparc-tdep.c (sparc32_store_arguments): Likewise.
4292 (sparc_analyze_control_transfer): Likewise.
4293 (sparc_step_trap): Likewise.
4294 (sparc_software_single_step): Likewise.
4295 (sparc32_gdbarch_init): Likewise.
4296 (sparc_supply_rwindow): Likewise.
4297 (sparc_collect_rwindow): Likewise.
4298 * sparc64-linux-tdep.c (sparc64_linux_collect_core_fpregset): Likewise.
4299 * sparc64-nbsd-nat.c (sparc64nbsd_supply_gregset): Likewise.
4300 (sparc64nbsd_collect_gregset): Likewise.
4301 (sparc64nbsd_supply_fpregset): Likewise.
4302 (sparc64nbsd_collect_fpregset): Likewise.
4303 * sparc64-tdep.c (sparc64_store_arguments): Likewise.
4304 (sparc64_supply_gregset): Likewise.
4305 (sparc64_collect_gregset): Likewise.
4306 (sparc64_supply_fpregset): Likewise.
4307 (sparc64_collect_fpregset): Likewise.
4308 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
4309 * spu-tdep.c (spu_unwind_sp): Likewise.
4310 (spu2ppu_prev_register): Likewise.
4311 (spu_memory_remove_breakpoint): Likewise.
4312 * stack.c (return_command): Likewise.
4313 * tic6x-tdep.c (tic6x_extract_signed_field): Likewise.
4314 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
4315 * tracefile.c (trace_save_ctf): Likewise.
4316 * windows-nat.c (do_windows_fetch_inferior_registers): Likewise.
4317 (do_windows_store_inferior_registers): Likewise.
4318 (windows_resume): Likewise.
4319 * xtensa-linux-nat.c (fill_gregset): Likewise.
4320 (supply_gregset_reg): Likewise.
4321 * xtensa-tdep.c (xtensa_register_write_masked): Likewise.
4322 (xtensa_register_read_masked): Likewise.
4323 (xtensa_supply_gregset): Likewise.
4324 (xtensa_extract_return_value): Likewise.
4325 (xtensa_store_return_value): Likewise.
4326
4327 2017-10-25 Ulrich Weigand <uweigand@de.ibm.com>
4328
4329 * doublest.c (floatformat_from_string): New function.
4330 * doublest.h (floatformat_from_string): Add prototype.
4331
4332 * std-operator.def (OP_DOUBLE, OP_DECFLOAT): Remove, replace by ...
4333 (OP_FLOAT): ... this.
4334 * expression.h: Do not include "doublest.h".
4335 (union exp_element): Replace doubleconst and decfloatconst by
4336 new element floatconst.
4337 * ada-lang.c (resolve_subexp): Handle OP_FLOAT instead of OP_DOUBLE.
4338 (ada_evaluate_subexp): Likewise.
4339 * eval.c (evaluate_subexp_standard): Handle OP_FLOAT instead of
4340 OP_DOUBLE and OP_DECFLOAT.
4341 * expprint.c (print_subexp_standard): Likewise.
4342 (dump_subexp_body_standard): Likewise.
4343 * breakpoint.c (watchpoint_exp_is_const): Likewise.
4344
4345 * parse.c: Include "dfp.h".
4346 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
4347 (write_exp_elt_floatcst): New function.
4348 (operator_length_standard): Handle OP_FLOAT instead of OP_DOUBLE
4349 and OP_DECFLOAT.
4350 (operator_check_standard): Likewise.
4351 (parse_float): Do not accept suffix. Take type as input. Return bool.
4352 Return target format buffer instead of host DOUBLEST.
4353 Use floatformat_from_string and decimal_from_string to parse
4354 either binary or decimal floating-point types.
4355 (parse_c_float): Remove.
4356 * parser-defs.h: Do not include "doublest.h".
4357 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
4358 (write_exp_elt_floatcst): Add prototype.
4359 (parse_float): Update prototype.
4360 (parse_c_float): Remove.
4361
4362 * c-exp.y: Do not include "dfp.h".
4363 (typed_val_float): Use byte buffer instead of DOUBLEST.
4364 (typed_val_decfloat): Remove.
4365 (DECFLOAT): Remove.
4366 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4367 (parse_number): Update to new parse_float interface.
4368 Parse suffixes and determine type before calling parse_float.
4369 Handle decimal and binary FP types the same way.
4370
4371 * d-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
4372 (FLOAT_LITERAL): Use OP_FLOAT and write_exp_elt_floatcst.
4373 (parse_number): Update to new parse_float interface.
4374 Parse suffixes and determine type before calling parse_float.
4375
4376 * f-exp.y: Replace dval by typed_val_float.
4377 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4378 (parse_number): Use parse_float instead of atof.
4379
4380 * go-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
4381 (parse_go_float): Remove.
4382 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4383 (parse_number): Call parse_float instead of parse_go_float.
4384 Parse suffixes and determine type before calling parse_float.
4385
4386 * p-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
4387 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4388 (parse_number): Update to new parse_float interface.
4389 Parse suffixes and determine type before calling parse_float.
4390
4391 * m2-exp.y: Replace dval by byte buffer val.
4392 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4393 (parse_number): Call parse_float instead of atof.
4394
4395 * rust-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
4396 (lex_number): Call parse_float instead of strtod.
4397 (ast_dliteral): Use OP_FLOAT instead of OP_DOUBLE.
4398 (convert_ast_to_expression): Handle OP_FLOAT instead of OP_DOUBLE.
4399 Use write_exp_elt_floatcst.
4400 (unit_testing): Remove static variable.
4401 (rust_type): Do not check unit_testing.
4402 (rust_lex_tests): Do not set uint_testing. Set up dummy rust_parser.
4403
4404 * ada-exp.y (type_float, type_double): Remove.
4405 (typed_val_float): Use byte buffer instead of DOUBLEST.
4406 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4407 * ada-lex.l (processReal): Use parse_float instead of sscanf.
4408
4409 2017-10-25 Alan Hayward <alan.hayward@arm.com>
4410
4411 * aarch64-tdep.h (enum aarch64_regnum): Remove.
4412 * arch/aarch64.h: New file.
4413
4414 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4415
4416 * dfp.h (decimal_from_string): Use const reference for argument.
4417 * dfp.c (decimal_from_string): Likewise.
4418
4419 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4420
4421 * i387-tdep.c (print_i387_value): Use floatformat_to_string.
4422 * sh64-tdep.c (sh64_do_fp_register): Likewise.
4423 * mips-tdep.c (mips_print_fp_register): Likewise.
4424
4425 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4426
4427 * common/format.h (enum argclass): Replace decfloat_arg by
4428 dec32float_arg, dec64float_arg, and dec128float_arg.
4429 * common/format.c (parse_format_string): Update to return
4430 new decimal float argument classes.
4431
4432 * printcmd.c (printf_decfloat): Rename to ...
4433 (printf_floating): ... this. Add argclass argument, and use it
4434 instead of parsing the format string again. Add support for
4435 binary floating-point values, using floatformat_to_string.
4436 Convert value to the target format if it doesn't already match.
4437 (ui_printf): Call printf_floating instead of printf_decfloat,
4438 also for double_arg / long_double_arg. Pass argclass.
4439
4440 * dfp.c (decimal_to_string): Add format string argument.
4441 * dfp.h (decimal_to_string): Likewise.
4442
4443 * doublest.c (floatformat_to_string): Add format string argument.
4444 * doublest.h (floatformat_to_string): Likewise.
4445
4446 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4447
4448 * doublest.c (floatformat_precision): New routine.
4449 (floatformat_to_string): Likewise.
4450 * doublest.c (floatformat_to_string): Add prototype.
4451
4452 * printcmd.c (print_scalar_formatted): Only call print_floating
4453 on floating-point types.
4454 * valprint.c: Do not include "floatformat.h".
4455 (generic_val_print_decfloat): Remove.
4456 (generic_val_print): Call generic_val_print_float for both
4457 TYPE_CODE_FLT and TYPE_CODE_DECFLOAT.
4458 (print_floating): Use floatformat_to_string. Handle decimal float.
4459 (print_decimal_floating): Remove, merge into floatformat_to_string.
4460 * value.h (print_decimal_floating): Remove.
4461
4462 * Makefile.in: Do not build doublest.c with -Wformat-nonliteral.
4463
4464 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4465
4466 * buildsym.c (end_symtab_get_static_block): Use std::stable_sort.
4467
4468 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
4469
4470 * memattr.h: Don't include vec.h.
4471 (struct mem_attrib): Initialize fields.
4472 <unknown>: New static method.
4473 (struct mem_region): Add constructors, operator<, initialize
4474 fields.
4475 * memattr.c: Include algorithm.
4476 (default_mem_attrib, unknown_mem_attrib): Remove.
4477 (user_mem_region_list): New global.
4478 (target_mem_region_list, mem_region_list): Change type to
4479 std::vector<mem_region>.
4480 (mem_use_target): Now a function.
4481 (target_mem_regions_valid): Change type to bool.
4482 (mem_region_lessthan, mem_region_cmp, mem_region_init): Remove.
4483 (require_user_regions): Adjust.
4484 (require_target_regions): Adjust.
4485 (create_mem_region): Adjust.
4486 (lookup_mem_region): Adjust.
4487 (invalidate_target_mem_regions): Adjust.
4488 (mem_clear): Rename to...
4489 (user_mem_clear): ... this, and adjust.
4490 (mem_command): Adjust.
4491 (info_mem_command): Adjust.
4492 (mem_enable, enable_mem_command, mem_disable,
4493 disable_mem_command): Adjust.
4494 (mem_delete): Adjust.
4495 (delete_mem_command): Adjust.
4496 * memory-map.h (parse_memory_map): Return an std::vector.
4497 * memory-map.c (parse_memory_map): Likewise.
4498 (struct memory_map_parsing_data): Add constructor.
4499 <memory_map>: Point to std::vector.
4500 (memory_map_start_memory): Adjust.
4501 (memory_map_end_memory): Adjust.
4502 (memory_map_end_property): Adjust.
4503 (clear_result): Remove.
4504 * remote.c (remote_memory_map): Return an std::vector.
4505 * target-debug.h (target_debug_print_VEC_mem_region_s__p):
4506 Remove.
4507 (target_debug_print_mem_region_vector): New.
4508 * target-delegates.c: Regenerate.
4509 * target.h (mem_region_vector): New typedef.
4510 (to_memory_map): Return mem_region_vector.
4511 (target_memory_map): Return an std::vector.
4512 * target.c (target_memory_map): Return an std::vector.
4513 (flash_erase_command): Adjust.
4514
4515 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
4516
4517 * memory-map.c (struct memory_map_parsing_data) <property_name>:
4518 Change type to std::string.
4519 (memory_map_start_property): Adjust.
4520 (memory_map_end_property): Adjust.
4521
4522 2017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
4523
4524 * infrun.h: Include common/byte-vector.h.
4525 (struct displaced_step_closure): New struct.
4526 (struct buf_displaced_step_closure): New struct.
4527 * infrun.c (displaced_step_closure::~displaced_step_closure):
4528 Provide default implementation.
4529 (displaced_step_clear): Deallocate step closure with delete.
4530 * aarch64-tdep.c (displaced_step_closure): Rename to ...
4531 (aarch64_displaced_step_closure): ... this, extend
4532 displaced_step_closure.
4533 (aarch64_displaced_step_data) <dsc>: Change type to
4534 aarch64_displaced_step_closure.
4535 (aarch64_displaced_step_copy_insn): Adjust to type change, use
4536 unique_ptr.
4537 (aarch64_displaced_step_fixup): Add cast for displaced step
4538 closure.
4539 * amd64-tdep.c (displaced_step_closure): Rename to ...
4540 (amd64_displaced_step_closure): ... this, extend
4541 displaced_step_closure.
4542 <insn_buf>: Change type to std::vector<gdb_byte>.
4543 <max_len>: Remove.
4544 (fixup_riprel): Change type of DSC parameter, adjust to type
4545 change of insn_buf.
4546 (fixup_displaced_copy): Change type of DSC parameter.
4547 (amd64_displaced_step_copy_insn): Instantiate
4548 amd64_displaced_step_closure.
4549 (amd64_displaced_step_fixup): Add cast for closure type, adjust
4550 to type change of insn_buf.
4551 * arm-linux-tdep.c (arm_linux_cleanup_svc): Change type of
4552 parameter DSC.
4553 (arm_linux_copy_svc): Likewise.
4554 (cleanup_kernel_helper_return): Likewise.
4555 (arm_catch_kernel_helper_return): Likewise.
4556 (arm_linux_displaced_step_copy_insn): Instantiate
4557 arm_displaced_step_closure.
4558 * arm-tdep.c (arm_pc_is_thumb): Add cast for closure.
4559 (displaced_read_reg): Change type of parameter DSC.
4560 (branch_write_pc): Likewise.
4561 (load_write_pc): Likewise.
4562 (alu_write_pc): Likewise.
4563 (displaced_write_reg): Likewise.
4564 (arm_copy_unmodified): Likewise.
4565 (thumb_copy_unmodified_32bit): Likewise.
4566 (thumb_copy_unmodified_16bit): Likewise.
4567 (cleanup_preload): Likewise.
4568 (install_preload): Likewise.
4569 (arm_copy_preload): Likewise.
4570 (thumb2_copy_preload): Likewise.
4571 (install_preload_reg): Likewise.
4572 (arm_copy_preload_reg): Likewise.
4573 (cleanup_copro_load_store): Likewise.
4574 (install_copro_load_store): Likewise.
4575 (arm_copy_copro_load_store) Likewise.
4576 (thumb2_copy_copro_load_store): Likewise.
4577 (cleanup_branch): Likewise.
4578 (install_b_bl_blx): Likewise.
4579 (arm_copy_b_bl_blx): Likewise.
4580 (thumb2_copy_b_bl_blx): Likewise.
4581 (thumb_copy_b): Likewise.
4582 (install_bx_blx_reg): Likewise.
4583 (arm_copy_bx_blx_reg): Likewise.
4584 (thumb_copy_bx_blx_reg): Likewise.
4585 (cleanup_alu_imm): Likewise.
4586 (arm_copy_alu_imm): Likewise.
4587 (thumb2_copy_alu_imm): Likewise.
4588 (cleanup_alu_reg): Likewise.
4589 (install_alu_reg): Likewise.
4590 (arm_copy_alu_reg): Likewise.
4591 (thumb_copy_alu_reg): Likewise.
4592 (cleanup_alu_shifted_reg): Likewise.
4593 (install_alu_shifted_reg): Likewise.
4594 (arm_copy_alu_shifted_reg): Likewise.
4595 (cleanup_load): Likewise.
4596 (cleanup_store): Likewise.
4597 (arm_copy_extra_ld_st): Likewise.
4598 (install_load_store): Likewise.
4599 (thumb2_copy_load_literal): Likewise.
4600 (thumb2_copy_load_reg_imm): Likewise.
4601 (arm_copy_ldr_str_ldrb_strb): Likewise.
4602 (cleanup_block_load_all): Likewise.
4603 (cleanup_block_store_pc): Likewise.
4604 (cleanup_block_load_pc): Likewise.
4605 (arm_copy_block_xfer): Likewise.
4606 (thumb2_copy_block_xfer): Likewise.
4607 (cleanup_svc): Likewise.
4608 (install_svc): Likewise.
4609 (arm_copy_svc): Likewise.
4610 (thumb_copy_svc): Likewise.
4611 (arm_copy_undef): Likewise.
4612 (thumb_32bit_copy_undef): Likewise.
4613 (arm_copy_unpred): Likewise.
4614 (arm_decode_misc_memhint_neon): Likewise.
4615 (arm_decode_unconditional): Likewise.
4616 (arm_decode_miscellaneous): Likewise.
4617 (arm_decode_dp_misc): Likewise.
4618 (arm_decode_ld_st_word_ubyte): Likewise.
4619 (arm_decode_media): Likewise.
4620 (arm_decode_b_bl_ldmstm): Likewise.
4621 (arm_decode_ext_reg_ld_st): Likewise.
4622 (thumb2_decode_dp_shift_reg): Likewise.
4623 (thumb2_decode_ext_reg_ld_st): Likewise.
4624 (arm_decode_svc_copro): Likewise.
4625 (thumb2_decode_svc_copro): Likewise.
4626 (install_pc_relative): Likewise.
4627 (thumb_copy_pc_relative_16bit): Likewise.
4628 (thumb_decode_pc_relative_16bit): Likewise.
4629 (thumb_copy_pc_relative_32bit): Likewise.
4630 (thumb_copy_16bit_ldr_literal): Likewise.
4631 (thumb_copy_cbnz_cbz): Likewise.
4632 (thumb2_copy_table_branch): Likewise.
4633 (cleanup_pop_pc_16bit_all): Likewise.
4634 (thumb_copy_pop_pc_16bit): Likewise.
4635 (thumb_process_displaced_16bit_insn): Likewise.
4636 (decode_thumb_32bit_ld_mem_hints): Likewise.
4637 (thumb_process_displaced_32bit_insn): Likewise.
4638 (thumb_process_displaced_insn): Likewise.
4639 (arm_process_displaced_insn): Likewise.
4640 (arm_displaced_init_closure): Likewise.
4641 (arm_displaced_step_fixup): Add cast for closure.
4642 * arm-tdep.h: Include infrun.h.
4643 (displaced_step_closure): Rename to ...
4644 (arm_displaced_step_closure): ... this, extend
4645 displaced_step_closure.
4646 <u::svc::copy_svc_os>: Change type of parameter DSC.
4647 <cleanup>: Likewise.
4648 (arm_process_displaced_insn): Likewise.
4649 (arm_displaced_init_closure): Likewise.
4650 (displaced_read_reg): Likewise.
4651 (displaced_write_reg): Likewise.
4652 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
4653 Adjust.
4654 * i386-tdep.h: Include infrun.h.
4655 (i386_displaced_step_closure): New typedef.
4656 * i386-tdep.c (i386_displaced_step_copy_insn): Use
4657 i386_displaced_step_closure.
4658 (i386_displaced_step_fixup): Adjust.
4659 * rs6000-tdep.c (ppc_displaced_step_closure): New typedef.
4660 (ppc_displaced_step_copy_insn): Use ppc_displaced_step_closure
4661 and unique_ptr.
4662 (ppc_displaced_step_fixup): Adjust.
4663 * s390-linux-tdep.c (s390_displaced_step_closure): New typedef.
4664 (s390_displaced_step_copy_insn): Use s390_displaced_step_closure
4665 and unique_ptr.
4666 (s390_displaced_step_fixup): Adjust.
4667
4668 2017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
4669
4670 * interps.h (interp_resume, interp_suspend, interp_set_temp):
4671 Remove declarations.
4672
4673 2017-10-20 Tom Tromey <tom@tromey.com>
4674
4675 * gdb_bfd.c (struct gdb_bfd_data) <included_bfds>: Now a
4676 std::vector.
4677 (gdb_bfd_record_inclusion): Update.
4678 (bfdp): Remove typedef.
4679
4680 2017-10-20 Tom Tromey <tom@tromey.com>
4681
4682 * gdb_bfd.c (gdb_bfd_ref): Use new.
4683 (struct gdb_bfd_data): Add constructor, destructor, and member
4684 initializers.
4685 (gdb_bfd_unref): Use delete.
4686
4687 2017-10-20 Tom Tromey <tom@tromey.com>
4688
4689 * exec.c (exec_file_attach): Use new_bfd_ref.
4690 * symfile-mem.c (symbol_file_add_from_memory): Use new_bfd_ref.
4691 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
4692 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_fdopenr): Use
4693 new_bfd_ref.
4694 * gdb_bfd.h (new_bfd_ref): New function.
4695
4696 2017-10-20 Pedro Alves <palves@redhat.com>
4697
4698 * main.c (captured_command_loop): Add attribute noinline.
4699
4700 2017-10-19 Simon Marchi <simon.marchi@ericsson.com>
4701
4702 * interps.c (struct interp_factory): Add constructor.
4703 (interp_factory_p): Remove typedef.
4704 (DEF_VEC_P(interp_factory_p)): Remove.
4705 (interpreter_factories): Change type to std::vector.
4706 (interp_factory_register): Adjust.
4707 (interp_lookup): Adjust.
4708 (interpreter_completer): Adjust.
4709
4710 2017-10-19 Tom Tromey <tom@tromey.com>
4711
4712 * break-catch-syscall.c (catch_syscall_completer): Use
4713 std::string, gdb::unique_xmalloc_ptr.
4714
4715 2017-10-19 Tom Tromey <tom@tromey.com>
4716
4717 * infcall.c (call_function_by_hand_dummy): Use std::string.
4718
4719 2017-10-19 Tom Tromey <tom@tromey.com>
4720
4721 * mi/mi-main.c (mi_cmd_execute): Update.
4722 * top.h (prepare_execute_command): Return scoped_value_mark.
4723 * value.h (class scoped_value_mark): Use DISABLE_COPY_AND_ASSIGN.
4724 Add move constructor.
4725 * top.c (prepare_execute_command): Return scoped_value_mark.
4726 (execute_command): Update.
4727
4728 2017-10-19 Pedro Alves <palves@redhat.com>
4729
4730 * xml-support.c (xml_fetch_content_from_file): Check fread's
4731 return.
4732
4733 2017-10-19 Pedro Alves <palves@redhat.com>
4734
4735 * ser-base.c (ser_base_read_error_fd): Delete the file handler if
4736 async.
4737 (handle_error_fd): New function.
4738 (ser_base_async): Add/delete an event loop file handler for
4739 error_fd.
4740
4741 2017-10-19 Pedro Alves <palves@redhat.com>
4742
4743 * xml-support.c (xml_fetch_content_from_file): Don't read in
4744 chunks. Instead use fseek to determine the file's size, and read
4745 it in one go.
4746
4747 2017-11-18 Keith Seitz <keiths@redhat.com>
4748
4749 * c-exp.y (oper): Canonicalize conversion operators of user-defined
4750 types.
4751 Add whitespace to front of type name.
4752
4753 2017-10-18 Keith Seitz <keiths@redhat.com>
4754
4755 * dwarf2read.c (dwarf2_add_typedef): Issue a complaint on unhandled
4756 DW_AT_accessibility.
4757
4758 2017-10-18 Yao Qi <yao.qi@linaro.org>
4759
4760 * features/tic6x-c62x-linux.c: Remove.
4761
4762 2017-10-17 Tom Tromey <tom@tromey.com>
4763
4764 * disasm.c (do_mixed_source_and_assembly_deprecated): Use
4765 gdb::optional, ui_out_emit_list, ui_out_emit_tuple.
4766 (do_mixed_source_and_assembly): Likewise.
4767
4768 2017-10-17 Tom Tromey <tom@tromey.com>
4769
4770 * regcache.c (regcache::xfer_part): Remove assertion.
4771
4772 2017-10-17 Pedro Alves <palves@redhat.com>
4773
4774 * xml-support.c (xml_fetch_content_from_file): Call
4775 unique_ptr::release() instead unique_ptr::get() when passing
4776 through xrealloc.
4777
4778 2017-10-17 Yao Qi <yao.qi@linaro.org>
4779
4780 * regcache.c (regcache::xfer_part): Remove parameters read and
4781 write, add parameter is_raw. All callers are updated.
4782
4783 2017-10-16 Keith Seitz <keiths@redhat.com>
4784
4785 * c-typeprint.c (enum access_specifier): Moved here from
4786 c_type_print_base.
4787 (output_access_specifier): New function.
4788 (c_type_print_base): Consider typedefs when assessing
4789 whether access labels are needed.
4790 Use output_access_specifier as needed.
4791 Output access specifier for typedefs, if needed.
4792 * dwarf2read.c (dwarf2_add_typedef): Record DW_AT_accessibility.
4793 * gdbtypes.h (struct typedef_field) <is_protected, is_private>: New
4794 fields.
4795 (TYPE_TYPEDEF_FIELD_PROTECTED, TYPE_TYPEDEF_FIELD_PRIVATE): New
4796 accessor macros.
4797
4798 2017-10-16 Tom Tromey <tom@tromey.com>
4799
4800 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full)
4801 (linux_fill_prpsinfo, linux_vsyscall_range_raw): Update.
4802 * target.c (target_fileio_read_stralloc): Update.
4803 * sparc64-tdep.c (adi_is_addr_mapped): Update.
4804 * target.h (target_fileio_read_stralloc): Return
4805 unique_xmalloc_ptr.
4806
4807 2017-10-16 Tom Tromey <tom@tromey.com>
4808
4809 * xml-syscall.c (xml_init_syscalls_info): Update.
4810 * xml-support.c (xinclude_start_include): Update.
4811 (xml_fetch_content_from_file): Return unique_xmalloc_ptr.
4812 * xml-support.h (xml_fetch_another): Return unique_xmalloc_ptr.
4813 (xml_fetch_content_from_file): Likewise.
4814 * osdata.c (get_osdata): Update.
4815 * target.h (target_read_stralloc, target_get_osdata): Return
4816 unique_xmalloc_ptr.
4817 * solib-aix.c (solib_aix_get_library_list): Update.
4818 * solib-target.c (solib_target_current_sos): Update.
4819 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Update.
4820 * xml-tdesc.c (fetch_available_features_from_target): Update.
4821 (target_fetch_description_xml): Update.
4822 (file_read_description_xml): Update.
4823 * remote.c (remote_get_threads_with_qxfer, remote_memory_map)
4824 (remote_traceframe_info, btrace_read_config, remote_read_btrace)
4825 (remote_pid_to_exec_file): Update.
4826 * target.c (target_read_stralloc): Return unique_xmalloc_ptr.
4827 (target_get_osdata): Likewise.
4828
4829 2017-10-16 Tom Tromey <tom@tromey.com>
4830
4831 * remote.c (remote_register_number_and_offset): Use std::vector.
4832 (remote_set_syscall_catchpoint): Use gdb::unique_xmalloc_ptr.
4833 (putpkt_binary): Use gdb::def_vector.
4834 (compare_sections_command): Use gdb::byte_vector.
4835
4836 2017-10-16 Tom Tromey <tom@tromey.com>
4837
4838 * ppc-linux-nat.c (hwdebug_insert_point): Use
4839 gdb::unique_xmalloc_ptr, XDUP.
4840
4841 2017-10-16 Tom Tromey <tom@tromey.com>
4842
4843 * probe.c (parse_probes): Use std::string.
4844 (info_probes_for_ops, enable_probes_command)
4845 (disable_probes_command): Remove cleanups.
4846
4847 2017-10-16 Tom Tromey <tom@tromey.com>
4848
4849 * buildsym.c (block_compar): Remove.
4850 (end_symtab_get_static_block): Use std::vector.
4851
4852 2017-10-16 Simon Marchi <simon.marchi@ericsson.com>
4853
4854 * memrange.h (struct mem_range): Define operator< and operator==.
4855 (mem_range_s): Remove.
4856 (DEF_VEC_O (mem_range_s)): Remove.
4857 (normalize_mem_ranges): Change parameter type to std::vector.
4858 * memrange.c (compare_mem_ranges): Remove.
4859 (normalize_mem_ranges): Change parameter type to std::vector,
4860 adjust to vector change.
4861 * exec.c (section_table_available_memory): Return vector, remove
4862 parameter.
4863 (section_table_read_available_memory): Adjust to std::vector
4864 change.
4865 * remote.c (remote_read_bytes): Adjust to std::vector
4866 change.
4867 * tracepoint.h (traceframe_available_memory): Change parameter
4868 type to std::vector.
4869 * tracepoint.c (traceframe_available_memory): Change parameter
4870 type to std::vector, adjust.
4871 * gdb/mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to
4872 std::vector change.
4873 * gdb/Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4874 unittests/memrange-selftests.c.
4875 (SUBDIR_UNITTESTS_OBS): Add memrange-selftests.o.
4876 * gdb/unittests/memrange-selftests.c: New file.
4877
4878 2017-10-16 Pedro Alves <palves@redhat.com>
4879
4880 * elfread.c (probe_key_free): Rename range-for variable.
4881 * probe.c (parse_probes_in_pspace, find_probes_in_objfile)
4882 (find_probe_by_pc, collect_probes): Rename range-for variable.
4883
4884 2017-10-16 Yao Qi <yao.qi@linaro.org>
4885
4886 * features/Makefile (XMLTOC): Remove tic6x-*.xml.
4887 * features/tic6x-c62x.c: Remove.
4888 * features/tic6x-c64x-linux.c: Remove.
4889 * features/tic6x-c64x.c: Remove.
4890 * features/tic6x-c64xp-linux.c: Remove.
4891 * features/tic6x-c64xp.c: Remove.
4892 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Don't call
4893 initialize_tdesc_tic6x_*_linux functions.
4894 * tic6x-tdep.c (_initialize_tic6x_tdep): Don't call
4895 initialize_tdesc_tic6x_* functions.
4896
4897 2017-10-16 Yao Qi <yao.qi@linaro.org>
4898
4899 * features/Makefile (WHICH): Remove tic6x-c64xp, tic6x-c64x
4900 tic6x-c62x.
4901 * regformats/tic6x-c62x.dat: Remove.
4902 * regformats/tic6x-c64x.dat: Remove.
4903 * regformats/tic6x-c64xp.dat: Remove.
4904
4905 2017-10-15 Simon Marchi <simon.marchi@ericsson.com>
4906
4907 * tracepoint.c (parse_traceframe_info): Return a unique_ptr
4908 (the !HAVE_LIBEXPAT version).
4909
4910 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
4911
4912 * nat/linux-osdata.c (struct pid_pgid_entry) <operator<>: Make
4913 const.
4914
4915 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4916
4917 * target.h: Include tracepoint.h.
4918 (enum trace_find_type): Move to tracepoint.h.
4919 (struct target_ops) <to_traceframe_info>: Return a unique ptr.
4920 * tracepoint.h: Don't include target.h
4921 (enum trace_find_type): Move from target.h.
4922 (parse_traceframe_info): Return a unique ptr.
4923 * tracepoint.c (current_traceframe_info): Change type to unique
4924 ptr.
4925 (free_traceframe_info): Remove.
4926 (clear_traceframe_info): Don't manually free
4927 current_traceframe_info.
4928 (free_result): Remove.
4929 (parse_traceframe_info): Return a unique ptr.
4930 (get_traceframe_info): Adjust to unique ptr.
4931 * ctf.c (ctf_traceframe_info): Return a unique ptr.
4932 * remote.c (remote_traceframe_info): Return a unique ptr.
4933 * tracefile-tfile.c (tfile_traceframe_info): Return a unique
4934 ptr.
4935 * target-debug.h (target_debug_print_traceframe_info_up): New
4936 macro.
4937 * target-delegates.c: Regenerate.
4938
4939 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4940
4941 * memrange.h (struct mem_range): Add constructors.
4942 * tracepoint.h (struct traceframe_info) <memory>: Change type to
4943 std::vector<mem_range>.
4944 * tracepoint.c (free_traceframe_info): Don't manually free
4945 vector.
4946 (traceframe_info_start_memory): Adjust to vector change.
4947 (traceframe_available_memory): Likewise.
4948 * tracefile-tfile.c (build_traceframe_info): Likewise.
4949 * ctf.c (ctf_traceframe_info): Likewise.
4950
4951 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4952
4953 * tracepoint.h (struct traceframe_info) <tvars>: Change type to
4954 std::vector<int>.
4955 * tracepoint.c (free_traceframe_info): Deallocate with delete.
4956 (traceframe_info_start_tvar): Adjust to vector change.
4957 (parse_traceframe_info): Allocate with new.
4958 * ctf.c (ctf_traceframe_info): Allocate with new, adjust to
4959 vector change.
4960 * tracefile-tfile.c (build_traceframe_info): Adjust to vector
4961 change.
4962 tfile_traceframe_info): Allocate with new.
4963 * mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to vector
4964 change.
4965
4966 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4967
4968 * tracepoint.c (traceframe_info): Rename to...
4969 (current_traceframe_info): ...this.
4970 (clear_traceframe_info): Adjust.
4971 (get_traceframe_info): Adjust.
4972
4973 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
4974
4975 * nat/linux-osdata.c: Include algorithm.
4976 (compare_processes): Remove.
4977 (struct pid_pgid_entry): New struct.
4978 (linux_xfer_osdata_processgroups): Use std::vector instead of
4979 XNEWVEC.
4980
4981 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
4982
4983 * objfiles.h: Don't include symfile.h.
4984 (struct partial_symbol): Remove forward-declaration.
4985 (struct objfile) <global_psymbols, static_psymbols>: Change type
4986 to std::vector<partial_symbol *>.
4987 * objfiles.c (objfile::objfile): Don't memset those fields.
4988 (objfile::~objfile): Don't free those fields.
4989 * psympriv.h (struct psymbol_allocation_list): Remove
4990 forward-declaration.
4991 (add_psymbol_to_list): Change psymbol_allocation_list parameter
4992 to std::vector.
4993 (start_psymtab_common): Change parameters to std::vector.
4994 * psymtab.c: Include algorithm.
4995 (require_partial_symbols): Call shrink_to_fit.
4996 (find_pc_sect_psymbol): Adjust to vector change.
4997 (match_partial_symbol): Likewise.
4998 (lookup_partial_symbol): Likewise.
4999 (psym_relocate): Likewise.
5000 (dump_psymtab): Likewise.
5001 (recursively_search_psymtabs): Likewise.
5002 (compare_psymbols): Remove.
5003 (sort_pst_symbols): Adjust to vector change.
5004 (start_psymtab_common): Likewise.
5005 (end_psymtab_common): Likewise.
5006 (psymbol_bcache_full): De-constify return value.
5007 (add_psymbol_to_bcache): Likewise.
5008 (extend_psymbol_list): Remove.
5009 (append_psymbol_to_list): Adjust to vector change.
5010 (add_psymbol_to_list): Likewise.
5011 (init_psymbol_list): Likewise.
5012 (maintenance_info_psymtabs): Likewise.
5013 (maintenance_check_psymtabs): Likewise.
5014 * symfile.h (struct psymbol_allocation_list): Remove.
5015 * symfile.c (reread_symbols): Adjust to vector change.
5016 * dbxread.c (start_psymtab): Change type of parameters.
5017 (dbx_symfile_read): Adjust to vector change.
5018 (read_dbx_symtab): Likewise.
5019 (start_psymtab): Change type of parameters.
5020 * dwarf2read.c (dwarf2_build_psymtabs): Adjust to vector change.
5021 (create_partial_symtab): Likewise.
5022 (add_partial_symbol): Likewise.
5023 (write_one_signatured_type): Likewise.
5024 (recursively_write_psymbols): Likewise.
5025 * mdebugread.c (parse_partial_symbols): Likewise.
5026 * xcoffread.c (xcoff_start_psymtab): Change type of parameters.
5027 (scan_xcoff_symtab): Adjust to vector change.
5028 (xcoff_initial_scan): Likewise.
5029
5030 2017-10-13 Simon Marchi <simon.marchi@ericsson.com>
5031
5032 * ada-typeprint.c (print_dynamic_range_bound): Use std::string.
5033
5034 2017-10-13 Yao Qi <yao.qi@linaro.org>
5035
5036 * features/Makefile: Remove tic6x-*-expedite, add tic6x-expedite.
5037 Remove s390x-*-expedite, add s390x-expedite.
5038
5039 2017-10-13 Yao Qi <yao.qi@linaro.org>
5040
5041 * features/s390-gs-linux64.c: Regenerated.
5042 * features/s390x-gs-linux64.c: Regenerated.
5043
5044 2017-10-13 Tom Tromey <tom@tromey.com>
5045
5046 * compile/compile-object-run.c (do_module_cleanup): Use delete.
5047 * solib.c (update_solib_list, reload_shared_libraries_1): Use
5048 delete.
5049 * symfile.c (symbol_file_add_with_addrs): Use new.
5050 (symbol_file_add_separate): Update comment.
5051 (syms_from_objfile_1, remove_symbol_file_command): Use delete.
5052 * jit.c (jit_object_close_impl): Use new.
5053 (jit_unregister_code): Use delete.
5054 * objfiles.c (objfile::objfile): Rename from allocate_objfile.
5055 (~objfile): Rename from free_objfile.
5056 (free_objfile_separate_debug, do_free_objfile_cleanup)
5057 (free_all_objfiles, objfile_purge_solibs): Use delete.
5058 * objfiles.h (struct objfile): Add constructor and destructor.
5059 Use DISABLE_COPY_AND_ASSIGN. Add initializers to data members.
5060 (allocate_objfile, free_objfile): Don't declare.
5061 (struct objstats): Add initializers.
5062
5063 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
5064
5065 * arch-utils.h (simple_displaced_step_copy_insn): Remove.
5066 * arch-utils.c (simple_displaced_step_copy_insn): Remove.
5067 * gdbarch.sh (displaced_step_copy_insn): Adjust comment.
5068 * gdbarch.h: Regenerate.
5069 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
5070 Adjust comment.
5071 * i386-tdep.c (i386_displaced_step_copy_insn): Adjust comment.
5072 (i386_displaced_step_fixup): Adjust comment.
5073 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Adjust comment.
5074
5075 2017-10-12 Tom Tromey <tom@tromey.com>
5076
5077 * prologue-value.h (pv_area::store_would_trash): Return bool.
5078 (pv_area::find_reg): Likewise.
5079 * prologue-value.c (pv_area::store_would_trash): Return bool.
5080 (pv_area::find_reg): Likewise.
5081
5082 2017-10-12 Tom Tromey <tom@tromey.com>
5083
5084 * s390-linux-tdep.c (s390_store, s390_load)
5085 (s390_check_for_saved, s390_analyze_prologue): Update.
5086 * rx-tdep.c (check_for_saved, rx_analyze_prologue): Update.
5087 * rl78-tdep.c (rl78_analyze_prologue, check_for_saved): Update.
5088 * prologue-value.h (class pv_area): Move from prologue-value.c.
5089 Change names of members. Add constructor, destructor, member
5090 functions.
5091 (make_pv_area, free_pv_area, make_cleanup_free_pv_area)
5092 (pv_area_store, pv_area_fetch, pv_area_store_would_trash)
5093 (pv_area_fetch, pv_area_scan): Don't declare.
5094 * prologue-value.c (struct pv_area::area_entry): Now member of
5095 pv_area.
5096 (struct pv_area): Move to prologue-value.h.
5097 (pv_area::pv_area): Rename from make_pv_area.
5098 (pv_area::~pv_area): Rename from free_pv_area.
5099 (do_free_pv_area_cleanup, make_cleanup_free_pv_area): Remove.
5100 (clear_entries, find_entry, overlaps, store_would_trash, store)
5101 (fetch, find_reg, scan): Now member of pv_area.
5102 Remove "area" argument. Update.
5103 * msp430-tdep.c (check_for_saved, msp430_analyze_prologue):
5104 Update.
5105 * mn10300-tdep.c (push_reg, check_for_saved)
5106 (mn10300_analyze_prologue): Update.
5107 * mep-tdep.c (is_arg_spill, check_for_saved)
5108 (mep_analyze_prologue): Update.
5109 * m32c-tdep.c (m32c_pv_push, m32c_srcdest_fetch)
5110 (m32c_srcdest_store, m32c_pv_enter, m32c_is_arg_spill)
5111 (m32c_is_struct_return, m32c_analyze_prologue): Update.
5112 * arm-tdep.c (thumb_analyze_prologue, arm_analyze_prologue):
5113 Update.
5114 * arc-tdep.c (arc_is_in_prologue, arc_analyze_prologue): Update.
5115 * aarch64-tdep.c (aarch64_analyze_prologue): Update.
5116
5117 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
5118
5119 * linux-nat.h (linux_nat_set_delete_thread): New declaration.
5120 * linux-nat.c (linux_nat_delete_thread): New variable.
5121 (lwp_free): Invoke linux_nat_delete_thread if set.
5122 (linux_nat_set_delete_thread): New function.
5123 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Assign
5124 thread delete callback.
5125 * arm-linux-nat.c (arm_linux_delete_thread): New function.
5126 (_initialize_arm_linux_nat): Assign thread delete callback.
5127 * s390-linux-nat.c (s390_delete_thread): New function.
5128 (_initialize_s390_nat): Assign thread delete callback.
5129 * x86-linux-nat.c (x86_linux_add_target): Likewise.
5130 * nat/aarch64-linux.c (aarch64_linux_delete_thread): New
5131 function.
5132 * nat/aarch64-linux.h (aarch64_linux_delete_thread): New
5133 declaration.
5134 * nat/x86-linux.c (x86_linux_delete_thread): New function.
5135 * nat/x86-linux.h (x86_linux_delete_thread): New declaration.
5136
5137 2017-10-09 Tom Tromey <tom@tromey.com>
5138
5139 * tui/tui-win.c (tui_set_win_height, parse_scrolling_args): Use
5140 std::string.
5141 * tui/tui-layout.c (enum tui_status): Use std::string.
5142
5143 2017-10-11 Tom Tromey <tom@tromey.com>
5144
5145 * gdbthread.h (thread_command): Constify.
5146 * inferior.h (detach_command): Constify.
5147 * top.h (set_history, show_history): Constify.
5148 * arm-tdep.c (set_arm_command, show_arm_command): Constify.
5149 * serial.c (serial_set_cmd, serial_show_cmd): Constify.
5150 * bsd-kvm.c (bsd_kvm_cmd): Constify.
5151 * printcmd.c (set_command): Constify.
5152 (non_const_set_command): New function.
5153 * dcache.c (set_dcache_command, show_dcache_command): Constify.
5154 * breakpoint.c (enable_command, disable_command, delete_command)
5155 (catch_command, tcatch_command, set_breakpoint_cmd)
5156 (show_breakpoint_cmd): Constify.
5157 * macrocmd.c (macro_command): Constify.
5158 * infcmd.c (unset_command, kill_command, detach_command)
5159 (info_proc_cmd): Constify.
5160 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Constify.
5161 * auto-load.c (show_auto_load_cmd, set_auto_load_cmd)
5162 (info_auto_load_cmd): Constify.
5163 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
5164 (unset_tdesc_cmd): Constify.
5165 * ada-lang.c (set_ada_command, show_ada_command)
5166 (maint_set_ada_cmd, maint_show_ada_cmd): Constify.
5167 * guile/guile.c (set_guile_command, show_guile_command)
5168 (info_guile_command): Constify.
5169 * tui/tui-win.c (tui_command, set_tui_cmd, show_tui_cmd):
5170 Constify.
5171 * skip.c (skip_command): Constify.
5172 * compile/compile.c (_initialize_compile): Constify.
5173 * dwarf2read.c (set_dwarf_cmd, show_dwarf_cmd): Constify.
5174 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
5175 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
5176 (maint_btrace_pt_show_cmd): Constify.
5177 * remote.c (set_remote_cmd, show_remote_cmd, remote_command):
5178 Constify.
5179 * python/python.c (user_show_python, user_set_python): Constify.
5180 * mips-tdep.c (set_mips_command, show_mips_command)
5181 (set_mipsfpu_command): Constify.
5182 * record-btrace.c (cmd_record_btrace_start)
5183 (cmd_set_record_btrace, cmd_show_record_btrace)
5184 (cmd_set_record_btrace_bts, cmd_show_record_btrace_bts)
5185 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): Constify.
5186 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command):
5187 Constify.
5188 * symfile.c (overlay_command): Constify.
5189 * spu-tdep.c (set_spu_command, show_spu_command): Constify.
5190 * cli/cli-logging.c (set_logging_command, show_logging_command):
5191 Constify.
5192 * cli/cli-dump.c (dump_command, append_command)
5193 (srec_dump_command, ihex_dump_command, verilog_dump_command)
5194 (tekhex_dump_command, binary_dump_command)
5195 (binary_append_command): Constify.
5196 * cli/cli-decode.c (struct cmd_list_element): Change type of
5197 "fun".
5198 * cli/cli-cmds.c (info_command, show_command, set_debug)
5199 (show_debug): Constify.
5200 (show_command): Add non-const overload.
5201 * top.c (set_history, show_history): Constify.
5202 * sh-tdep.c (set_sh_command, show_sh_command): Constify.
5203 * command.h (add_prefix_cmd): Accept a cmd_const_cfunc_ftype.
5204 * target.c (target_command): Constify.
5205 * sparc64-tdep.c (info_adi_command): Constify.
5206 * record-full.c (cmd_record_full_start): Constify.
5207 (set_record_full_command): Constify. Fix typo.
5208 (show_record_full_command): Constify.
5209 * thread.c (thread_command, thread_apply_command): Constify.
5210 * memattr.c (dummy_cmd): Constify.
5211 * value.c (function_command): Constify.
5212 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Constify.
5213 * probe.c (info_probes_command): Constify.
5214 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Constify.
5215 * gnu-nat.c (set_task_cmd, show_task_cmd, set_thread_cmd)
5216 (show_thread_cmd, set_thread_default_cmd)
5217 (show_thread_default_cmd): Constify.
5218 (check_empty): Constify.
5219 * tracepoint.c (tfind_command): Constify.
5220 * cp-support.c (maint_cplus_command): Constify.
5221 * windows-tdep.c (info_w32_command): Constify.
5222 * record.c (cmd_record_start, set_record_command)
5223 (show_record_command, info_record_command, cmd_record_goto):
5224 Constify.
5225 * ravenscar-thread.c (set_ravenscar_command)
5226 (show_ravenscar_command): Constify.
5227 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5228 Constify.
5229 (add_internal_problem_command): Remove casts.
5230 * arc-tdep.c (maintenance_print_arc_command): Constify.
5231 * valprint.c (set_print, show_print, set_print_raw)
5232 (show_print_raw): Constify.
5233 * maint.c (maintenance_command, maintenance_info_command)
5234 (maintenance_print_command, maintenance_set_cmd)
5235 (maintenance_show_cmd, set_per_command_cmd)
5236 (show_per_command_cmd, maintenance_check_command): Constify.
5237 * language.c (set_check, show_check): Constify.
5238 * typeprint.c (show_print_type, set_print_type): Constify.
5239 * go32-nat.c (go32_info_dos_command): Constify.
5240
5241 2017-10-11 Tom Tromey <tom@tromey.com>
5242
5243 * breakpoint.c (prepare_re_set_context): Remove.
5244 (breakpoint_re_set_one): Update. Don't use cleanups.
5245 (breakpoint_re_set): Use scoped_restore, std::string, and
5246 scoped_restore_current_language.
5247
5248 2017-10-11 Tom Tromey <tom@tromey.com>
5249
5250 * breakpoint.c (commands_command_1): Use std::string.
5251 (cleanup_executing_breakpoints): Remove.
5252 (bpstat_do_actions_1): Use scoped_restore.
5253 (bpstat_check_watchpoint): Use std::string.
5254 (decode_static_tracepoint_spec): Likewise.
5255 (break_range_command): Likewise.
5256 (watch_command_1): Likewise.
5257 (compare_breakpoints): Change argument types.
5258 (clear_command): Use std::vector.
5259 (cleanup_executing_breakpoints): Remove.
5260 (update_global_location_list): Use unique_xmalloc_ptr.
5261 (strace_command): Remove unused declaration.
5262
5263 2017-10-11 John Baldwin <jhb@FreeBSD.org>
5264
5265 * Makefile.in (ALLDEPFILES): Add arm-fbsd-nat.c.
5266 * NEWS: Mention new FreeBSD/arm native configuration.
5267 * configure.host: Add arm*-*-freebsd*.
5268 * configure.nat: Likewise.
5269 * arm-fbsd-nat.c: New file.
5270
5271 2017-10-11 John Baldwin <jhb@FreeBSD.org>
5272
5273 * Makefile.in (ALL_TARGET_OBS): Add arm-fbsd-tdep.o.
5274 (ALLDEPFILES): Add arm-fbsd-tdep.c.
5275 * NEWS: Mention new FreeBSD/arm target.
5276 * configure.tgt: Add arm*-*-freebsd*.
5277 * arm-fbsd-tdep.c: New file.
5278 * arm-fbsd-tdep.h: New file.
5279
5280 2017-10-11 Maciej W. Rozycki <macro@imgtec.com>
5281
5282 * linux-tdep.c (linux_make_corefile_notes): Remove call to
5283 `gdbarch_elfcore_write_linux_prpsinfo'.
5284 * gdbarch.sh (elfcore_write_linux_prpsinfo): Remove architecture
5285 method.
5286 (elf_internal_linux_prpsinfo): Remove declaration.
5287 * gdbarch.h: Regenerate.
5288 * gdbarch.c: Regenerate.
5289
5290 2017-10-11 Maciej W. Rozycki <macro@imgtec.com>
5291
5292 * ppc-linux-tdep.c (ppc_linux_init_abi): Remove call to
5293 `set_gdbarch_elfcore_write_linux_prpsinfo'.
5294
5295 2017-10-11 Pedro Alves <palves@redhat.com>
5296
5297 * breakpoint.c (reattach_breakpoints): Delete.
5298 * breakpoint.h (reattach_breakpoints): Delete.
5299
5300 2017-10-11 Simon Marchi <simon.marchi@ericsson.com>
5301
5302 * symfile.c (registered_sym_fns): Make struct, not typedef.
5303 (DEF_VEC_O (registered_sym_fns)): Remove.
5304 (symtab_fns): Change type to std::vector.
5305 (add_symtab_fns): Adjust.
5306 (find_sym_fns): Adjust.
5307
5308 2017-10-11 Anton Kolesov <Anton.Kolesov@synopsys.com>
5309
5310 * arc-tdep.c (arc_gdbarch_init): Pass proper cpu value to disassembler.
5311 * arc-tdep.h (arc_arch_is_em): New function.
5312 (arc_arch_is_hs): Likewise.
5313
5314 2017-10-11 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com>
5315
5316 * macrotab.h (macro_lookup_inclusion): Remove unnecessary
5317 parentheses in the declaration.
5318 (macro_lookup_inclusion): Likewise.
5319 (macro_lookup_definition): Likewise.
5320 * p-lang.h (pascal_builtin_types): Likewise.
5321 * tui/tui-data.c (tui_win_list): Likewise.
5322 * tui/tui-data.h (tui_win_list): Likewise.
5323 * utils.h (make_cleanup_free_section_addr_info): Likewise.
5324
5325 2017-10-11 Mark Rages <markrages@gmail.com>
5326
5327 * target-memory.c (block_boundaries): Fix for block address not
5328 aligned on block size.
5329
5330 2017-10-10 Pedro Alves <palves@redhat.com>
5331 Tom Tromey <tom@tromey.com>
5332
5333 * breakpoint.c (struct captured_breakpoint_query_args)
5334 (do_captured_breakpoint_query, gdb_breakpoint_query): Delete.
5335 (print_breakpoint): New.
5336 * breakpoint.h (print_breakpoint): Declare.
5337 * common/common-exceptions.h (enum return_reason): Remove
5338 references to catch_exceptions.
5339 * exceptions.c (catch_exceptions, catch_exceptions_with_msg):
5340 Delete.
5341 * exceptions.h (catch_exceptions_ftype, catch_exceptions)
5342 (catch_exception_ftype, catch_exceptions_with_msg): Delete.
5343 * gdb.h: Delete.
5344 * gdbthread.h (thread_select): Declare.
5345 * mi/mi-cmd-break.c: Don't include gdb.h.
5346 (breakpoint_notify): Use print_breakpoint.
5347 * mi/mi-cmd-catch.c: Don't include gdb.h.
5348 * mi/mi-interp.c: Don't include gdb.h.
5349 (mi_print_breakpoint_for_event): New.
5350 (mi_breakpoint_created, mi_breakpoint_modified): Use
5351 mi_print_breakpoint_for_event.
5352 * mi/mi-main.c: Don't include gdb.h.
5353 (mi_cmd_thread_select): Parse the global thread ID here. Use
5354 thread_select instead of gdb_thread_select.
5355 (mi_cmd_thread_list_ids): Output "thread-ids" tuple here instead
5356 of using gdb_list_thread_ids.
5357 * remote-fileio.c (do_remote_fileio_request): Change type. Reply
5358 FILEIO_ENOSYS here.
5359 (remote_fileio_request): Use TRY/CATCH instead of
5360 catch_exceptions.
5361 * symfile-mem.c (struct symbol_file_add_from_memory_args)
5362 (symbol_file_add_from_memory_wrapper): Delete.
5363 (add_vsyscall_page): Use TRY/CATCH instead of catch_exceptions.
5364 * thread.c: Don't include gdb.h.
5365 (do_captured_list_thread_ids, gdb_list_thread_ids): Delete.
5366 (thread_alive): Use thread_select.
5367 (do_captured_thread_select): Delete, parts salvaged as ...
5368 (thread_select): ... this new function.
5369 (gdb_thread_select): Delete.
5370
5371 2017-10-10 Pedro Alves <palves@redhat.com>
5372 Tom Tromey <tom@tromey.com>
5373
5374 * breakpoint.c (breakpoint_cond_eval): Change return type to bool
5375 and reverse logic.
5376 (WP_DELETED, WP_VALUE_CHANGED, WP_VALUE_NOT_CHANGED, WP_IGNORE):
5377 No longer macros. Instead ...
5378 (enum wp_check_result): They're now values of this new
5379 enumeration.
5380 (watchpoint_check): Change return type to wp_check_result and
5381 parameter type to bpstat.
5382 (bpstat_check_watchpoint): Use TRY/CATCH instead of catch_errors.
5383 (bpstat_check_breakpoint_conditions): Use TRY/CATCH instead of
5384 catch_errors. Reverse logic of watchpoint_check call.
5385 (breakpoint_re_set_one): Now returns void and takes a breakpoint
5386 pointer as parameter.
5387 (breakpoint_re_set): Use TRY/CATCH instead of catch_errors.
5388 * common/common-exceptions.c (throw_exception_sjlj): Update
5389 comments to avoid mentioning catch_errors.
5390 * exceptions.c (catch_errors): Delete.
5391 * exceptions.h: Update comments to avoid mentioning catch_errors.
5392 (catch_errors_ftype, catch_errors): Delete.
5393 * infrun.c (normal_stop): Use TRY/CATCH instead of catch_errors.
5394 (hook_stop_stub): Delete.
5395 (restore_selected_frame): Change return type to void, and
5396 parameter type to const frame_id &.
5397 (restore_infcall_control_state): Use TRY/CATCH instead of
5398 catch_errors.
5399 * main.c (captured_command_loop): Return void and remove
5400 parameter. Remove references to catch_errors.
5401 (captured_main): Use TRY/CATCH instead of catch_errors.
5402 * objc-lang.c (objc_submethod_helper_data)
5403 (find_objc_msgcall_submethod_helper): Delete.
5404 (find_objc_msgcall_submethod): Use TRY/CATCH instead of
5405 catch_errors.
5406 * record-full.c (record_full_message): Return void.
5407 (record_full_message_args, record_full_message_wrapper): Delete.
5408 (record_full_message_wrapper_safe): Return bool and use TRY/CATCH
5409 instead of catch_errors.
5410 * solib-aix.c (solib_aix_open_symbol_file_object): Change
5411 parameter type to int.
5412 * solib-darwin.c (open_symbol_file_object): Ditto.
5413 * solib-dsbt.c (open_symbol_file_object): Ditto.
5414 * solib-frv.c (open_symbol_file_object): Ditto.
5415 * solib-svr4.c (open_symbol_file_object): Ditto.
5416 * solib-target.c (solib_target_open_symbol_file_object): Ditto.
5417 * solib.c (update_solib_list): Use TRY/CATCH instead of
5418 catch_errors.
5419 * solist.h (struct target_so_ops) <open_symbol_file_object>:
5420 Change type.
5421 * symmisc.c (struct print_symbol_args): Remove.
5422 (dump_symtab_1): Use TRY/CATCH instead of catch_errors.
5423 (print_symbol): Change type.
5424 * windows-nat.c (handle_load_dll, handle_unload_dll): Return void
5425 and remove parameters.
5426 (catch_errors): New.
5427 (get_windows_debug_event): Adjust.
5428
5429 2017-10-09 Tom Tromey <tom@tromey.com>
5430
5431 * mi/mi-main.c (free_splay_tree): Remove.
5432 (list_available_thread_groups): Use splay_tree_up.
5433 * common/gdb_splay_tree.h: New file.
5434
5435 2017-10-09 Tom Tromey <tom@tromey.com>
5436
5437 * mi/mi-main.c (do_nothing): Remove.
5438 (list_available_thread_groups): Update.
5439
5440 2017-10-09 Pedro Alves <palves@redhat.com>
5441
5442 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>: Skip
5443 reading registers when switching context.
5444
5445 2017-10-09 John Baldwin <jhb@FreeBSD.org>
5446
5447 * fbsd-nat.c (fbsd_siginfo_size): Use gdbarch_long_bit.
5448 (fbsd_convert_siginfo): Likewise.
5449 * fbsd-tdep.c (fbsd_core_xfer_siginfo): Likewise.
5450
5451 2017-10-09 Simon Marchi <simon.marchi@polymtl.ca>
5452
5453 * configure.ac (try_guile_versions): Remove guile-2.2.
5454 * configure: Regenerate.
5455
5456 2017-10-09 Tom Tromey <tom@tromey.com>
5457
5458 * Makefile.in (COMPILE.post, POSTCOMPILE): Restore $(basename).
5459 (COMPILE.pre): Use $(CXX).
5460
5461 2017-10-09 Pedro Alves <palves@redhat.com>
5462
5463 * cp-support.c (cp_remove_params): Return a gdb::unique_xmalloc_ptr.
5464 Use bool.
5465 (overload_list_add_symbol): Adjust to use gdb::unique_xmalloc_ptr.
5466 * cp-support.h (cp_remove_params): Now returns a
5467 gdb::unique_xmalloc_ptr.
5468 * dwarf2read.c (find_slot_in_mapped_hash): Now returns bool.
5469 Adjust to cp_remove_params returning a gdb::unique_xmalloc_ptr.
5470 * psymtab.c (psymtab_search_name): Adjust to cp_remove_params
5471 returning a gdb::unique_xmalloc_ptr.
5472 (lookup_partial_symbol): Adjust to use gdb::unique_xmalloc_ptr.
5473 * stack.c (find_frame_funname): Adjust to cp_remove_params
5474 returning a gdb::unique_xmalloc_ptr.
5475
5476 2017-10-08 Tom Tromey <tom@tromey.com>
5477
5478 * dwarf2read.c (dwarf2_get_dwz_file): Use
5479 gdb::unique_xmalloc_ptr.
5480 (find_slot_in_mapped_hash): Likewise.
5481 (dwarf2_physname): Likewise.
5482 (create_dwo_unit_in_dwp_v1): Use std::string.
5483 (create_dwo_unit_in_dwp_v2): Likewise.
5484 (lookup_dwo_cutu): Likewise.
5485 (inherit_abstract_dies): Use std::vector.
5486 (read_array_type): Likewise.
5487 (dwarf_decode_macros): Remove unused declaration.
5488 (unsigned_int_compar): Remove.
5489 (dwarf2_build_psymtabs_hard): Use scoped_restore.
5490 (psymtabs_addrmap_cleanup): Remove.
5491
5492 2017-10-08 Tom Tromey <tom@tromey.com>
5493
5494 * frame-unwind.c (frame_unwind_try_unwinder): Update.
5495 * frame.h (frame_cleanup_after_sniffer): Declare.
5496 (frame_prepare_for_sniffer): Return void.
5497 * frame.c (frame_cleanup_after_sniffer): No longer static. Change
5498 type of argument.
5499 (frame_prepare_for_sniffer): Return void.
5500
5501 2017-10-08 Tom Tromey <tom@tromey.com>
5502
5503 * utils.h (make_cleanup_value_free): Remove.
5504 * utils.c (do_value_free, struct cleanup): Remove.
5505 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>:
5506 Use gdb_value_up.
5507 * value.h (struct value_deleter): New.
5508 (gdb_value_up): New typedef.
5509
5510 2017-10-08 Tom Tromey <tom@tromey.com>
5511
5512 * symtab.c (free_search_symbols, do_free_search_symbols_cleanup)
5513 (make_cleanup_free_search_symbols): Remove.
5514 (search_symbols): Return std::vector.
5515 (symbol_search::compare_search_syms): Now member of
5516 symbol_search. Change arguments.
5517 (sort_search_symbols_remove_dups): Change arguments. Rewrite.
5518 (symtab_symbol_info, rbreak_command): Update.
5519 * symtab.h (struct symbol_search) <next>: Remove.
5520 Add constructors.
5521 (symbol_search::operator<): New function.
5522 (symbol_search::operator==): New function.
5523 (search_symbols): Remove std::vector.
5524 (free_search_symbols, make_cleanup_free_search_symbols): Remove.
5525 (symbol_search::compare_search_syms): Declare.
5526
5527 2017-10-06 Yao Qi <yao.qi@linaro.org>
5528
5529 * Makefile.in (ALL_64_TARGET_OBS): Replace aarch64-insn.o with
5530 arch/aarch64-insn.o.
5531 Remove one rule.
5532 * configure.tgt: Replace aarch64-insn.o with arch/aarch64-insn.o.
5533
5534 2017-10-06 Yao Qi <yao.qi@linaro.org>
5535
5536 * Makefile.in (ALL_TARGET_OBS): Replace arm.o, arm-get-next-pcs.o,
5537 and arm-linux.o with arch/arm.o, arch/arm-get-next-pcs.o and
5538 arch/arm-linux.o respectively.
5539 * configure.tgt: Likewise.
5540
5541 2017-10-06 Yao Qi <yao.qi@linaro.org>
5542
5543 * Makefile.in (ALL_TARGET_OBS): Rename i386.o to arch/i386.o.
5544 * configure.tgt (i386_tobjs): Replace i386.o with arch/i386.o.
5545
5546 2017-10-06 Pedro Alves <palves@redhat.com>
5547
5548 * windows-nat.c: Include <algorithm>.
5549
5550 2017-10-06 Yao Qi <yao.qi@linaro.org>
5551
5552 * configure.tgt (i386_tobjs): New variable.
5553 (amd64_tobjs): New variable.
5554 Set $cpu_obs and $os_obs.
5555
5556 2017-10-06 Yao Qi <yao.qi@linaro.org>
5557
5558 * Makefile.in (CONFIG_SRC_SUBDIR): New.
5559 (ALL_64_TARGET_OBS): Replace amd64.o with arch/amd64.o.
5560 (clean): Remove object files and dependency files.
5561 (distclean): Remove the directory.
5562 * configure.ac: Invoke AC_CONFIG_COMMANDS.
5563 * configure: Re-generated.
5564 * configure.tgt: Replace amd64.o with arch/amd64.o.
5565
5566 2017-10-05 Jose E. Marchesi <jose.marchesi@oracle.com>
5567
5568 PR build/22188
5569 * arm-tdep.c (arm_decode_misc_memhint_neon): Fix decoding of CPS
5570 and SETEND.
5571
5572 2017-10-05 Pedro Alves <palves@redhat.com>
5573
5574 * linux-nat.c (linux_child_follow_fork): When following the parent
5575 and detaching the child, consult the parent thread's architecture
5576 instead of the child's.
5577
5578 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
5579
5580 * ax.h: Do not include "doublest.h".
5581 (union agent_val): Remove.
5582
5583 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
5584
5585 * dfp.h (MAX_DECIMAL_STRING): Move to dfp.c.
5586 (decimal_to_string): Return std::string object.
5587 (decimal_from_string): Accept std::string object. Return bool.
5588 (decimal_from_integral, decimal_from_doublest): Remove.
5589 (decimal_from_longest): Add prototype.
5590 (decimal_from_ulongest): Likewise.
5591 (decimal_to_longest): Likewise.
5592 (decimal_from_doublest): Likewise.
5593 * dfp.c: Do not include "gdbtypes.h" or "value.h".
5594 (MAX_DECIMAL_STRING): Move here.
5595 (decimal_to_string): Return std::string object.
5596 (decimal_from_string): Accept std::string object. Return bool.
5597 (decimal_from_integral): Remove, replace by ...
5598 (decimal_from_longest, decimal_from_ulongest): ... these new functions.
5599 (decimal_to_longest): New function.
5600 (decimal_from_floating): Remove, replace by ...
5601 (decimal_from_doublest): ... this new function.
5602 (decimal_to_doublest): Update to new decimal_to_string interface.
5603
5604 * value.c (unpack_long): Use decimal_to_longest.
5605 * valops.c (value_cast): Use decimal_from_doublest instead of
5606 decimal_from_floating. Use decimal_from_[u]longest isntead of
5607 decimal_from_integral.
5608 * valarith.c (value_args_as_decimal): Likewise.
5609 * valprint.c (print_decimal_floating): Update to new
5610 decimal_to_string interface.
5611 * printcmd.c (printf_decfloat): Likewise.
5612 * c-exp.y (parse_number): Update to new decimal_from_string interface.
5613
5614 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
5615
5616 * doublest.h: Do not include "floatformat.h". Remove stale comments.
5617 * gdbtypes.c: Include "floatformat.h".
5618 * value.c: Likewise.
5619 * m68k-tdep.c: Likewise.
5620
5621 * findvar.c: Do not include "floatformat.h".
5622 * amd64-darwin-tdep.c: Likewise.
5623 * arm-linux-tdep.c: Likewise.
5624 * i386-darwin-tdep.c: Likewise.
5625 * i387-tdep.c: Likewise.
5626 * m68k-linux-tdep.c: Likewise.
5627 * mep-tdep.c: Likewise.
5628 * mips-tdep.c: Likewise.
5629 * nios2-tdep.c: Likewise.
5630 * s390-linux-tdep.c: Likewise.
5631 * sparc-obsd-tdep.c: Likewise.
5632 * sparc-tdep.c: Likewise.
5633 * sparc64-tdep.c: Likewise.
5634 * spu-tdep.c: Likewise.
5635 * tic6x-tdep.c: Likewise.
5636 * tilegx-tdep.c: Likewise.
5637 * vax-tdep.c: Likewise.
5638 * xstormy16-tdep.c: Likewise.
5639 * xtensa-tdep.c: Likewise.
5640
5641 * top.c: Do not include "doublest.h".
5642 * aarch64-tdep.c: Likewise.
5643 * alpha-tdep.c: Likewise.
5644 * arm-linux-tdep.c: Likewise.
5645 * m68k-linux-tdep.c: Likewise.
5646 * tilegx-tdep.c: Likewise.
5647 * xstormy16-tdep.c: Likewise.
5648
5649 2017-10-05 John Baldwin <jhb@FreeBSD.org>
5650
5651 * mips-fbsd-tdep.c (MIPS_INST_ADDIU_A0_SP_N32): Define.
5652 (mipsn32_fbsd_sigframe): Define.
5653 (mips_fbsd_init_abi): Install mipsn32_fbsd_sigframe unwinder
5654 for FreeBSD/mipsn32.
5655
5656 2017-10-05 John Baldwin <jhb@FreeBSD.org>
5657
5658 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_EHDRFLAGS and
5659 AT_HWCAP.
5660
5661 2017-10-05 Tristan Gingold <tgingold@free.fr>
5662
5663 * MAINTAINERS (Misc): Update my email address.
5664
5665 2017-10-04 Pedro Alves <palves@redhat.com>
5666
5667 * remote.c (get_remote_arch_state): New 'gdbarch' parameter. Use
5668 it instead of target_gdbarch.
5669 (get_remote_state, get_remote_packet_size): Adjust
5670 get_remote_arch_state calls, passing down target_gdbarch
5671 explicitly.
5672 (packet_reg_from_regnum, packet_reg_from_pnum): New parameter
5673 'gdbarch' and use it instead of target_gdbarch.
5674 (get_memory_packet_size): Adjust get_remote_arch_state calls,
5675 passing down target_gdbarch explicitly.
5676 (struct stop_reply) <arch>: New field.
5677 (remote_parse_stop_reply): Use the stopped thread's architecture,
5678 not the current inferior's. Save the architecture in the
5679 stop_reply.
5680 (process_stop_reply): Use the stop reply's architecture.
5681 (process_g_packet, remote_fetch_registers)
5682 (remote_prepare_to_store, store_registers_using_G)
5683 (remote_store_registers): Adjust get_remote_arch_state calls,
5684 using the regcache's architecture.
5685 (remote_get_trace_status): Adjust get_remote_arch_state calls,
5686 passing down target_gdbarch explicitly.
5687 * spu-multiarch.c (spu_thread_architecture): Defer to the target
5688 beneath instead of calling target_gdbarch.
5689 * target.c (default_thread_architecture): Use the specified
5690 inferior's architecture, instead of the current inferior's
5691 architecture (via target_gdbarch).
5692
5693 2017-10-04 Pedro Alves <palves@redhat.com>
5694
5695 * regcache.c (get_thread_arch_regcache): Remove null_ptid special
5696 case.
5697 (regcache_print): Handle !target_has_registers here instead.
5698
5699 2017-10-04 Pedro Alves <palves@redhat.com>
5700
5701 * frame.c (create_test_frame): Delete.
5702 * frame.h (create_test_frame): Delete.
5703 * gdbarch-selftests.c: Include gdbthread.h and target.h.
5704 (class regcache_test): Delete.
5705 (test_target_has_registers, test_target_has_stack)
5706 (test_target_has_memory, test_target_prepare_to_store)
5707 (test_target_store_registers): New functions.
5708 (test_target_ops): New class.
5709 (register_to_value_test): Error out if there's already a
5710 process_stratum (or higher) target pushed. Create a fuller mock
5711 environment, with mock target_ops, inferior, address space, thread
5712 and inferior_ptid.
5713 * progspace.c (struct address_space): Move to ...
5714 * progspace.h (struct address_space): ... here.
5715 * regcache.h (regcache::~regcache, regcache::raw_write)
5716 [GDB_SELF_TEST]: No longer virtual.
5717
5718 2017-10-04 Simon Marchi <simon.marchi@ericsson.com>
5719
5720 * mi/mi-main.c (list_available_thread_groups): Reverse filter logic.
5721
5722 2017-10-04 Pedro Alves <palves@redhat.com>
5723
5724 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Move code
5725 out of 'between TRY and CATCH'.
5726
5727 2017-10-04 Pedro Alves <palves@redhat.com>
5728
5729 * cli/cli-cmds.c (complete_command): Add missing END_CATCH.
5730 * common/common-exceptions.h (TRY): Open an outermost scope.
5731 Expand intro comment.
5732 (CATCH): Reindent.
5733 (END_CATCH): Close the outermost scope.
5734 * completer.c (complete_line_internal): Add missing END_CATCH.
5735
5736 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
5737
5738 * NEWS (Changes since GDB 8.0): Add entry about new
5739 'set-cwd-on-gdbserver' feature.
5740 (New remote packets): Add entry for QSetWorkingDir.
5741 * common/common-inferior.h (set_inferior_cwd): New prototype.
5742 * infcmd.c (set_inferior_cwd): Remove "static".
5743 (show_cwd_command): Expand text to include remote debugging.
5744 * remote.c: Add PACKET_QSetWorkingDir.
5745 (remote_protocol_features) <QSetWorkingDir>: New entry for
5746 PACKET_QSetWorkingDir.
5747 (extended_remote_set_inferior_cwd): New function.
5748 (extended_remote_create_inferior): Call
5749 "extended_remote_set_inferior_cwd".
5750 (_initialize_remote): Call "add_packet_config_cmd" for
5751 QSetWorkingDir.
5752
5753 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
5754
5755 * NEWS (New commands): Mention "set/show cwd".
5756 * cli/cli-cmds.c (_initialize_cli_cmds): Mention "set cwd" on
5757 "cd" command's help text.
5758 * common/common-inferior.h (get_inferior_cwd): New prototype.
5759 * infcmd.c (inferior_cwd_scratch): New global variable.
5760 (set_inferior_cwd): New function.
5761 (get_inferior_cwd): Likewise.
5762 (set_cwd_command): Likewise.
5763 (show_cwd_command): Likewise.
5764 (_initialize_infcmd): Add "set/show cwd" commands.
5765 * inferior.h (class inferior) <cwd>: New field.
5766 * nat/fork-inferior.c: Include "gdb_tilde_expand.h".
5767 (fork_inferior): Change inferior's cwd before its execution.
5768 * windows-nat.c (windows_create_inferior): Pass inferior's cwd
5769 to CreateProcess.
5770
5771 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
5772
5773 * Makefile.in (SFILES): Add gdb_tilde_expand.c.
5774 (HFILES_NO_SRCDIR): Add gdb_tilde_expand.h.
5775 (COMMON_OBS): Add gdb_tilde_expand.o.
5776 * common/gdb_tilde_expand.c: New file.
5777 * common/gdb_tilde_expand.h: Likewise.
5778
5779 2017-10-03 Maciej W. Rozycki <macro@imgtec.com>
5780
5781 * gdbarch.sh (objfile): Remove duplicate declaration.
5782 * gdbarch.h: Regenerate.
5783
5784 2017-10-03 Tom Tromey <tom@tromey.com>
5785
5786 * utils.c (internal_vproblem): Use string_vprintf.
5787
5788 2017-10-03 Tom Tromey <tom@tromey.com>
5789
5790 * printcmd.c (info_symbol_command): Use std::string.
5791
5792 2017-10-03 Tom Tromey <tom@tromey.com>
5793
5794 * top.c (gdb_safe_append_history): Use std::string.
5795
5796 2017-10-03 Tom Tromey <tom@tromey.com>
5797
5798 * event-top.c (stdin_event_handler): Update.
5799 * main.c (captured_main_1): Update.
5800 * top.h (make_delete_ui_cleanup): Remove.
5801 (struct ui): Add constructor and destructor.
5802 (new_ui, delete_ui): Remove.
5803 * top.c (make_delete_ui_cleanup): Remove.
5804 (new_ui_command): Use std::unique_ptr.
5805 (delete_ui_cleanup): Remove.
5806 (ui::ui): Rename from new_ui. Update.
5807 (free_ui): Remove.
5808 (ui::~ui): Rename from delete_ui. Update.
5809
5810 2017-10-03 Tom Tromey <tom@tromey.com>
5811
5812 * symfile.c (load_progress): Use gdb::byte_vector.
5813
5814 2017-10-03 Tom Tromey <tom@tromey.com>
5815
5816 * mi/mi-main.c (mi_cmd_trace_frame_collected): Remove unused
5817 declaration.
5818 * printcmd.c (x_command): Remove unused declaration.
5819 * symfile.c (symbol_file_command): Remove unused declaration.
5820
5821 2017-10-03 Tom Tromey <tom@tromey.com>
5822
5823 * utils.c (internal_vproblem): Use std::string.
5824 (defaulted_query): Likewise.
5825
5826 2017-10-03 Tom Tromey <tom@tromey.com>
5827
5828 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Update.
5829 * top.c (execute_command_to_string): Update.
5830 * utils.c (make_cleanup_restore_page_info): Remove.
5831 (do_restore_page_info_cleanup): Remove.
5832 (set_batch_flag_and_restore_page_info):
5833 New.
5834 (make_cleanup_restore_page_info): Remove.
5835 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
5836 (~set_batch_flag_and_restore_page_info): New
5837 (make_cleanup_restore_uinteger): Remove.
5838 (make_cleanup_restore_integer): Remove.
5839 (struct restore_integer_closure): Remove.
5840 (restore_integer): Remove.
5841 * utils.h (struct set_batch_flag_and_restore_page_info): New
5842 class.
5843 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
5844 (make_cleanup_restore_page_info): Remove.
5845 (make_cleanup_restore_uinteger) Remove.
5846 (make_cleanup_restore_integer) Remove.
5847
5848 2017-10-03 Tom Tromey <tom@tromey.com>
5849
5850 * record-full.h (record_full_gdb_operation_disable_set): Return
5851 scoped_restore_tmpl<int>.
5852 * infrun.c (adjust_pc_after_break): Update.
5853 (handle_signal_stop): Update.
5854 * record-full.c (record_full_gdb_operation_disable_set): Return
5855 scoped_restore_tmpl<int>.
5856 (record_full_wait_1, record_full_insert_breakpoint)
5857 (record_full_remove_breakpoint, record_full_save)
5858 (record_full_goto_insn): Update.
5859
5860 2017-10-02 Tom Tromey <tom@tromey.com>
5861
5862 PR rust/22236:
5863 * rust-lang.c (rust_val_print_str): New function.
5864 (val_print_struct): Call it.
5865 (rust_subscript): Preserve name of slice type.
5866
5867 2017-10-02 Tom Tromey <tom@tromey.com>
5868
5869 * rust-lang.c (rust_subscript): Handle slices in
5870 EVAL_AVOID_SIDE_EFFECTS case.
5871
5872 2017-10-02 Tom Tromey <tom@tromey.com>
5873
5874 * rust-lang.c (rust_slice_type_p): Recognize &str as a slice type.
5875
5876 2017-10-02 Tom Tromey <tom@tromey.com>
5877
5878 * rust-lang.h (rust_slice_type): Add "extern".
5879
5880 2017-10-02 Tom Tromey <tom@tromey.com>
5881 Pedro Alves <palves@redhat.com>
5882
5883 * ada-lang.h (ada_exc_info::operator<): Make const.
5884 (ada_exc_info::operator==): Make const.
5885 * ada-lang.c (ada_exc_info::operator<, ada_exc_info::operator==):
5886 Make const.
5887
5888 2017-09-29 Tom Tromey <tom@tromey.com>
5889
5890 * target.c (read_whatever_is_readable): Change type of "result".
5891 Update.
5892 (free_memory_read_result_vector): Remove.
5893 (read_memory_robust): Change return type. Update.
5894 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update. Use
5895 bin2hex, std::string.
5896 * target.h (memory_read_result_s): Remove typedef.
5897 (free_memory_read_result_vector): Remove.
5898 (read_memory_robust): Return std::vector.
5899
5900 2017-09-29 Tom Tromey <tom@tromey.com>
5901
5902 * mi/mi-main.c (captured_mi_execute_command): Use scope_restore.
5903
5904 2017-09-29 Tom Tromey <tom@tromey.com>
5905
5906 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Update.
5907 * ada-lang.h (struct ada_exc_info): Remove typedef. Declare
5908 operator< and operator==.
5909 (ada_exceptions_list): Return a std::vector.
5910 * ada-lang.c (ada_exc_info::operator<): Rename from
5911 compare_ada_exception_info.
5912 (ada_exc_info::operator==): New.
5913 (sort_remove_dups_ada_exceptions_list): Change type of
5914 "exceptions".
5915 (ada_add_standard_exceptions, ada_add_exceptions_from_frame)
5916 (ada_add_global_exceptions): Likewise.
5917 (ada_exceptions_list_1): Return a std::vector.
5918 (ada_exceptions_list): Likewise.
5919
5920 2017-09-29 Tom Tromey <tom@tromey.com>
5921
5922 * mi/mi-main.c (struct print_one_inferior_data) <inferiors>: Now a
5923 'std::set *'.
5924 (print_one_inferior): Update.
5925 (free_vector_of_ints): Remove.
5926 (list_available_thread_groups): Change "ids" to std::set.
5927 (mi_cmd_list_thread_groups): Update.
5928 (struct collect_cores_data) <core>: Now a std::set.
5929 (collect_cores): Update.
5930 (unique): Remove.
5931 (print_one_inferior): Update.
5932
5933 2017-09-29 Tom Tromey <tom@tromey.com>
5934
5935 * mi/mi-main.c (mi_execute_cli_command): Use std::string.
5936 (mi_execute_async_cli_command): Likewise.
5937 (mi_cmd_trace_frame_collected): Use field_fmt.
5938
5939 2017-09-29 Tom Tromey <tom@tromey.com>
5940
5941 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Use
5942 gdb::byte_vector.
5943
5944 2017-09-29 Tom Tromey <tom@tromey.com>
5945
5946 * mi/mi-parse.c (mi_parse): Remove unused declaration.
5947
5948 2017-09-29 Tom Tromey <tom@tromey.com>
5949
5950 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Don't copy "oarg".
5951
5952 2017-09-29 Tom Tromey <tom@tromey.com>
5953
5954 * varobj.h (varobj_gen_name): Return std::string.
5955 * varobj.c (varobj_gen_name): Return std::string.
5956 * mi/mi-cmd-var.c (mi_cmd_var_create): Use std::string.
5957 (mi_cmd_var_delete): Don't copy "name".
5958
5959 2017-09-29 Tom Tromey <tom@tromey.com>
5960
5961 * mi/mi-cmd-break.c (mi_argv_to_format): Return std::string.
5962 (mi_cmd_break_insert_1): Update.
5963
5964 2017-09-29 Tom Tromey <tom@tromey.com>
5965
5966 * target.h (make_scoped_defer_target_commit_resume): Update.
5967 * target.c (make_scoped_defer_target_commit_resume): Rename from
5968 make_cleanup_defer_target_commit_resume. Return a
5969 scoped_restore.
5970 * infrun.c (proceed): Use make_scoped_defer_target_commit_resume.
5971
5972 2017-09-29 Tom Tromey <tom@tromey.com>
5973
5974 * main.c (captured_main_1): Remove unused declaration.
5975 * spu-multiarch.c (parse_spufs_run): Remove unused declaration.
5976
5977 2017-09-29 Tom Tromey <tom@tromey.com>
5978
5979 * symtab.c (search_symbols): Remove unused outer cleanup.
5980 (make_source_files_completion_list): Remove unused declaration.
5981
5982 2017-09-29 Tom Tromey <tom@tromey.com>
5983
5984 * mt-tdep.c (mt_push_dummy_call): Use gdb::byte_vector.
5985
5986 2017-09-29 Tom Tromey <tom@tromey.com>
5987
5988 * xstormy16-tdep.c (xstormy16_push_dummy_call): Use
5989 gdb::byte_vector.
5990
5991 2017-09-29 Tom Tromey <tom@tromey.com>
5992
5993 * complaints.c (vcomplaint): Use std::string.
5994
5995 2017-09-29 Tom Tromey <tom@tromey.com>
5996
5997 * tracepoint.c (trace_variable_command): Use std::string.
5998 (encode_actions_1): Remove unused declarations.
5999 (create_tsv_from_upload): Use std::string.
6000
6001 2017-09-29 Tom Tromey <tom@tromey.com>
6002
6003 * cp-support.c (gdb_demangle): Use std::string.
6004
6005 2017-09-29 Tom Tromey <tom@tromey.com>
6006
6007 * stack.c (parse_frame_specification): Use std::string
6008 (info_frame_command): Use gdb::unique_xmalloc_ptr.
6009
6010 2017-09-29 Tom Tromey <tom@tromey.com>
6011
6012 * tilegx-tdep.c (tilegx_push_dummy_call): Use gdb::byte_vector.
6013
6014 2017-09-29 Tom Tromey <tom@tromey.com>
6015
6016 * utils.c (vfprintf_maybe_filtered): Use std::string.
6017 (vfprintf_unfiltered): Likewise.
6018
6019 2017-09-29 Tom Tromey <tom@tromey.com>
6020
6021 * event-top.c (top_level_prompt): Return std::string.
6022 (display_gdb_prompt): Update.
6023
6024 2017-09-29 Tom Tromey <tom@tromey.com>
6025
6026 * unittests/common-utils-selftests.c (format): New function.
6027 (string_vprintf_tests): New function.
6028 (_initialize_common_utils_selftests): Register new tests.
6029 * common/common-utils.c (string_vprintf): New function.
6030 * common/common-utils.h (string_vprintf): Declare.
6031
6032 2017-09-29 Pedro Alves <palves@redhat.com>
6033
6034 * common/rsp-low.c (unpack_varlen_hex): Constify.
6035 * common/rsp-low.h (unpack_varlen_hex): Constify.
6036 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
6037 Constify.
6038 * remote.c (remote_set_permissions, read_ptid)
6039 (remote_current_thread, remote_get_threads_with_qthreadinfo)
6040 (remote_static_tracepoint_marker_at)
6041 (remote_static_tracepoint_markers_by_strid)
6042 (stop_reply_extract_thread, remote_parse_stop_reply): Constify.
6043 * tracepoint.c (parse_trace_status, parse_tracepoint_status)
6044 (parse_tracepoint_definition, parse_tsv_definition)
6045 (parse_static_tracepoint_marker_definition): Constify.
6046 * tracepoint.h (parse_static_tracepoint_marker_definition)
6047 (parse_trace_status, parse_tracepoint_status)
6048 (parse_tracepoint_definition, parse_tsv_definition): Constify.
6049
6050 2017-09-29 Pedro Alves <palves@redhat.com>
6051
6052 * remote.c (target_buf, target_buf_size): Delete.
6053 (remote_get_noisy_reply): Remove buf_p and sizeof_buf parameters.
6054 Use the connection's packet buffer instead.
6055 All callers adjusted.
6056 (_initialize_remote): Remove references to target_buf and
6057 target_buf_size.
6058
6059 2017-09-28 Pedro Alves <palves@redhat.com>
6060
6061 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
6062 unittests/common-utils-selftests.c.
6063 (SUBDIR_UNITTESTS_OBS): Add common-utils-selftests.o.
6064 (COMMON_OBS): Remove utils-selftests.o.
6065 * utils-selftests.c: Move to ...
6066 * unittests/common-utils-selftests.c: ... here and rename self
6067 test to "string_printf".
6068
6069 2017-09-28 Alexander Shaposhnikov <alexander.v.shaposhnikov@gmail.com> (tiny patch)
6070
6071 * dwarf2read.c (open_and_init_dwp_file): Protect against dwp_file
6072 having NULL cus or tus.
6073
6074 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
6075
6076 * arm-tdep.c: (convert_from_extended): Remove.
6077 (convert_to_extended): Likewise.
6078 (arm_extract_return_value): Use convert_typed_floating.
6079 (arm_store_return_value): Likewise.
6080
6081 * sh-tdep.h (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
6082 * sh-tdep.c: Do not include "floatformat.h".
6083 (sh_littlebyte_bigword_type): New function.
6084 (sh_register_convert_to_virtual): Use convert_typed_floating.
6085 (sh_register_convert_to_raw): Likewise.
6086 * sh64-tdep.c: (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
6087 (sh64_littlebyte_bigword_type): New function.
6088 (sh64_extract_return_value): Use convert_typed_floating.
6089 (sh64_register_convert_to_virtual): Likewise.
6090 (sh64_register_convert_to_raw): Likewise.
6091
6092 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
6093
6094 * doublest.h (floatformat_from_type): Move to gdbtypes.h.
6095 * doublest.c (floatformat_from_type): Move to gdbtypes.c.
6096
6097 * gdbtypes.h (union type_specific): Make field floatformat hold
6098 just a single struct floatformat, not an array.
6099 (floatformat_from_type): Move here.
6100 * gdbtypes.c (floatformat_from_type): Move here. Update to
6101 changed TYPE_FLOATFORMAT definition.
6102 (verify_floatformat): Update to changed TYPE_FLOATFORMAT.
6103 (recursive_dump_type): Likewise.
6104 (init_float_type): Install correct floatformat for byte order.
6105 (arch_float_type): Likewise.
6106
6107 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
6108
6109 * gdbtypes.c (init_type): Change incoming argument from
6110 length-in-bytes to length-in-bits. Assert length is a
6111 multiple of TARGET_CHAR_BITS.
6112 (arch_type, arch_flags_type): Likewise.
6113 (init_integer_type): Update call to init_type.
6114 (init_character_type): Likewise.
6115 (init_boolean_type): Likewise.
6116 (init_float_type): Likewise.
6117 (init_decfloat_type): Likewise.
6118 (init_complex_type): Likewise.
6119 (init_pointer_type): Likewise.
6120 (objfile_type): Likewise.
6121 (arch_integer_type): Update call to arch_type.
6122 (arch_character_type): Likewise.
6123 (arch_boolean_type): Likewise.
6124 (arch_float_type): Likewise.
6125 (arch_decfloat_type): Likewise.
6126 (arch_complex_type): Likewise.
6127 (arch_pointer_type): Likewise.
6128 (gdbtypes_post_init): Likewise.
6129
6130 * dwarf2read.c (dwarf2_init_float_type): Update call to init_type.
6131 (read_base_type): Likewise.
6132 * mdebugread.c (basic_type): Likewise.
6133 * stabsread.c (dbx_init_float_type): Likewise.
6134 (rs6000_builtin_type): Likewise.
6135 (read_range_type): Likewise. Also, fix call to init_integer_type
6136 with erroneous length argument.
6137
6138 * ada-lang.c (ada_language_arch_info): Update call to arch_type.
6139 * d-lang.c (build_d_types): Likewise.
6140 * f-lang.c (build_fortran_types): Likewise.
6141 * go-lang.c (build_go_types): Likewise.
6142 * opencl-lang.c (build_opencl_types): Likewise.
6143 * jit.c (finalize_symtab): Likewise.
6144 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
6145 (build_std_type_info_type): Likewise.
6146 * target-descriptions.c (tdesc_gdb_type): Likewise. Also,
6147 update call to arch_flags_type.
6148
6149 * linux-tdep.c (linux_get_siginfo_type_with_fields): Update call to
6150 arch_type.
6151 * fbsd-tdep.c (fbsd_get_siginfo_type): Likewise.
6152 * windows-tdep.c (windows_get_tlb_type): Likewise.
6153
6154 * avr-tdep.c (avr_gdbarch_init): Update call to arch_type.
6155 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
6156 * m32c-tdep.c (make_types): Likewise.
6157 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
6158 (rl78_psw_type): Update call to arch_flags_type.
6159 * m68k-tdep.c (m68k_ps_type): Update call to arch_flags_type.
6160 * rx-tdep.c (rx_psw_type): Likewise.
6161 (rx_fpsw_type): Likewise.
6162 * sparc-tdep.c (sparc_psr_type): Likewise.
6163 (sparc_fsr_type): Likewise.
6164 * sparc64-tdep.c (sparc64_pstate_type): Likewise.
6165 (sparc64_ccr_type): Likewise.
6166 (sparc64_fsr_type): Likewise.
6167 (sparc64_fprs_type): Likewise.
6168
6169 2017-09-27 Tom Tromey <tom@tromey.com>
6170
6171 * findcmd.c (find_command): Constify.
6172
6173 2017-09-27 Tom Tromey <tom@tromey.com>
6174
6175 * ada-tasks.c (task_command_1, task_command): Constify.
6176
6177 2017-09-27 Tom Tromey <tom@tromey.com>
6178
6179 * symtab.c (maintenance_print_symbol_cache)
6180 (maintenance_flush_symbol_cache)
6181 (maintenance_print_symbol_cache_statistics): Constify.
6182
6183 2017-09-27 Tom Tromey <tom@tromey.com>
6184
6185 * inferior.c (detach_inferior_command, kill_inferior_command)
6186 (inferior_command): Constify.
6187
6188 2017-09-27 Tom Tromey <tom@tromey.com>
6189
6190 * regcache.c (regcache_print, maintenance_print_registers)
6191 (maintenance_print_raw_registers)
6192 (maintenance_print_cooked_registers)
6193 (maintenance_print_register_groups)
6194 (maintenance_print_remote_registers): Constify.
6195
6196 2017-09-27 Tom Tromey <tom@tromey.com>
6197
6198 * printcmd.c (map_display_numbers, undisplay_command)
6199 (enable_disable_display_command, enable_display_command)
6200 (disable_display_command): Constify.
6201
6202 2017-09-27 Tom Tromey <tom@tromey.com>
6203
6204 * breakpoint.h (delete_command): Don't declare.
6205 * breakpoint.c (delete_command, enable_once_command)
6206 (enable_count_command, enable_delete_command, breakpoint_1)
6207 (maintenance_info_breakpoints, stopin_command, stopat_command)
6208 (delete_command, delete_trace_command, save_breakpoints)
6209 (save_breakpoints_command, save_tracepoints_command): Constify.
6210
6211 2017-09-27 Tom Tromey <tom@tromey.com>
6212
6213 * macrocmd.c (macro_expand_command, macro_expand_once_command)
6214 (skip_ws, extract_identifier, macro_define_command)
6215 (macro_undef_command, macro_list_command): Constify.
6216
6217 2017-09-27 Tom Tromey <tom@tromey.com>
6218
6219 * infcmd.c (environment_info, set_environment_command)
6220 (unset_environment_command, path_info, info_proc_cmd_1)
6221 (info_proc_cmd_mappings, info_proc_cmd_stat)
6222 (info_proc_cmd_status, info_proc_cmd_cwd, info_proc_cmd_cmdline)
6223 (info_proc_cmd_exe, info_proc_cmd_all): Constify.
6224
6225 2017-09-27 Tom Tromey <tom@tromey.com>
6226
6227 * i386-tdep.c (i386_mpx_info_bounds, i386_mpx_set_bounds):
6228 Constify.
6229
6230 2017-09-27 Tom Tromey <tom@tromey.com>
6231
6232 * symfile-mem.c (add_symbol_file_from_memory_command): Constify.
6233
6234 2017-09-27 Tom Tromey <tom@tromey.com>
6235
6236 * demangle.c (demangle_command): Constify.
6237
6238 2017-09-27 Tom Tromey <tom@tromey.com>
6239
6240 * progspace.c (maintenance_info_program_spaces_command):
6241 Constify.
6242
6243 2017-09-27 Tom Tromey <tom@tromey.com>
6244
6245 * compile/compile.c (check_raw_argument, compile_file_command)
6246 (compile_code_command, compile_print_command): Constify.
6247
6248 2017-09-27 Tom Tromey <tom@tromey.com>
6249
6250 * reggroups.c (maintenance_print_reggroups): Constify.
6251
6252 2017-09-27 Tom Tromey <tom@tromey.com>
6253
6254 * dwarf2read.c (save_gdb_index_command): Constify.
6255
6256 2017-09-27 Tom Tromey <tom@tromey.com>
6257
6258 * stap-probe.c (info_probes_stap_command): Constify.
6259
6260 2017-09-27 Tom Tromey <tom@tromey.com>
6261
6262 * fork-child.c (unset_exec_wrapper_command): Constify.
6263
6264 2017-09-27 Tom Tromey <tom@tromey.com>
6265
6266 * btrace.c (get_uint, get_context_size, no_chunk)
6267 (maint_btrace_packet_history_cmd)
6268 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
6269 (maint_info_btrace_cmd): Constify.
6270
6271 2017-09-27 Tom Tromey <tom@tromey.com>
6272
6273 * reverse.c (delete_bookmark_command): Constify.
6274
6275 2017-09-27 Tom Tromey <tom@tromey.com>
6276
6277 * remote.c (set_memory_packet_size)
6278 (set_memory_write_packet_size, show_memory_write_packet_size)
6279 (set_memory_read_packet_size, show_memory_read_packet_size)
6280 (compare_sections_command, packet_command, remote_put_command)
6281 (remote_get_command, remote_delete_command): Constify.
6282
6283 2017-09-27 Tom Tromey <tom@tromey.com>
6284
6285 * mips-tdep.c (show_mipsfpu_command, set_mipsfpu_single_command)
6286 (set_mipsfpu_double_command, set_mipsfpu_none_command)
6287 (set_mipsfpu_auto_command): Constify.
6288
6289 2017-09-27 Tom Tromey <tom@tromey.com>
6290
6291 * cli/cli-cmds.h (cd_command): Constify.
6292 * cli/cli-cmds.c (cd_command): Constify.
6293
6294 2017-09-27 Tom Tromey <tom@tromey.com>
6295
6296 * thread.c (thread_name_command, thread_find_command): Constify.
6297
6298 2017-09-27 Tom Tromey <tom@tromey.com>
6299
6300 * probe.c (enable_probes_command, disable_probes_command):
6301 Constify.
6302
6303 2017-09-27 Tom Tromey <tom@tromey.com>
6304
6305 * symfile.c (symbol_file_command): Constify.
6306 * gdbcore.h (deprecated_file_changed_hook): Constify.
6307 * exec.c (deprecated_file_changed_hook, exec_file_command)
6308 (file_command): Constify.
6309 * defs.h (symbol_file_command): Constify.
6310
6311 2017-09-27 Tom Tromey <tom@tromey.com>
6312
6313 * remote-fileio.c (set_system_call_allowed)
6314 (show_system_call_allowed): Constify.
6315
6316 2017-09-27 Tom Tromey <tom@tromey.com>
6317
6318 * tracepoint.c (delete_trace_variable_command)
6319 (tfind_end_command, tfind_start_command, tfind_pc_command)
6320 (tfind_tracepoint_command, tfind_line_command)
6321 (tfind_range_command, tfind_outside_command): Constify.
6322
6323 2017-09-27 Tom Tromey <tom@tromey.com>
6324
6325 * ax-gdb.c (maint_agent_printf_command, agent_command)
6326 (agent_eval_command): Constify.
6327
6328 2017-09-27 Tom Tromey <tom@tromey.com>
6329
6330 * tracepoint.c (info_scope_command): Constify.
6331 * python/python.c (gdbpy_decode_line): Constify.
6332 * python/py-breakpoint.c (bppy_init): Constify.
6333 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Constify.
6334 * location.h: (new_linespec_location)
6335 (string_to_event_location_basic, string_to_event_location):
6336 Constify.
6337 * location.c (new_linespec_location)
6338 (string_to_event_location_basic, string_to_event_location):
6339 Constify.
6340 * linespec.h (decode_line_with_current_source)
6341 (decode_line_with_last_displayed, linespec_lex_to_end): Constify.
6342 * linespec.c (linespec_lex_to_end)
6343 (decode_line_with_current_source)
6344 (decode_line_with_last_displayed): Constify.
6345 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x):
6346 Constify.
6347 * cli/cli-cmds.c (edit_command, list_command): Constify.
6348 * breakpoint.h (until_break_command, watch_command_wrapper)
6349 (awatch_command_wrapper, rwatch_command_wrapper)
6350 (init_ada_exception_breakpoint): Constify.
6351 * breakpoint.c (break_command_1, dprintf_command)
6352 (break_range_command, watch_command_wrapper)
6353 (rwatch_command_wrapper, awatch_command_wrapper)
6354 (until_break_command, init_ada_exception_breakpoint)
6355 (strace_marker_create_sals_from_location, trace_command)
6356 (ftrace_command, strace_command, struct tracepoint): Constify.
6357 * ax-gdb.c (agent_command_1): Constify.
6358 * ada-lang.c (ada_exception_sal): Constify.
6359
6360 2017-09-27 Tom Tromey <tom@tromey.com>
6361
6362 * record.c (cmd_record_delete, cmd_record_stop, cmd_record_save)
6363 (cmd_record_goto_begin, cmd_record_goto_end, get_insn_number)
6364 (get_context_size, no_chunk, get_insn_history_modifiers)
6365 (cmd_record_insn_history, get_call_history_modifiers)
6366 (cmd_record_call_history): Constify.
6367
6368 2017-09-27 Tom Tromey <tom@tromey.com>
6369
6370 * source.c (show_substitute_path_command)
6371 (unset_substitute_path_command, set_substitute_path_command):
6372 Constify.
6373
6374 2017-09-27 Tom Tromey <tom@tromey.com>
6375
6376 * typeprint.c (maintenance_print_type): Constify.
6377 * maint.c (maintenance_dump_me, maintenance_demangle)
6378 (maintenance_time_display, maintenance_info_sections)
6379 (maintenance_print_statistics, maintenance_deprecate)
6380 (maintenance_undeprecate): Constify.
6381 (maintenance_do_deprecate): Constify. Use std::string.
6382 (maintenance_selftest): Constify.
6383 * gdbtypes.h (maintenance_print_type): Constify.
6384
6385 2017-09-27 Tom Tromey <tom@tromey.com>
6386
6387 * hppa-tdep.c (unwind_command): Constify.
6388
6389 2017-09-27 Tom Tromey <tom@tromey.com>
6390
6391 * target-descriptions.c (unset_tdesc_filename_cmd)
6392 (maint_print_c_tdesc_cmd, maintenance_check_xml_descriptions):
6393 Constify.
6394
6395 2017-09-27 Tom Tromey <tom@tromey.com>
6396
6397 * dummy-frame.c (maintenance_print_dummy_frames): Constify.
6398
6399 2017-09-27 Tom Tromey <tom@tromey.com>
6400
6401 * tui/tui.c (tui_enable_command, tui_disable_command): Constify.
6402
6403 2017-09-27 Tom Tromey <tom@tromey.com>
6404
6405 * tui/tui-regs.c (tui_reg_command): Constify.
6406
6407 2017-09-27 Tom Tromey <tom@tromey.com>
6408
6409 * skip.c (skip_file_command, skip_function_command)
6410 (skip_enable_command, skip_disable_command, skip_delete_command):
6411 Constify.
6412
6413 2017-09-27 Tom Tromey <tom@tromey.com>
6414
6415 * record-btrace.c (cmd_record_btrace_bts_start)
6416 (cmd_record_btrace_pt_start): Constify.
6417
6418 2017-09-27 Tom Tromey <tom@tromey.com>
6419
6420 * symmisc.c (maintenance_print_symbols)
6421 (maintenance_print_msymbols, maintenance_print_objfiles)
6422 (maintenance_info_symtabs, maintenance_check_symtabs)
6423 (maintenance_expand_symtabs, maintenance_info_line_tables):
6424 Constify.
6425
6426 2017-09-27 Tom Tromey <tom@tromey.com>
6427
6428 * top.c (new_ui_command): Constify.
6429
6430 2017-09-27 Tom Tromey <tom@tromey.com>
6431
6432 * symfile.c (add_symbol_file_command)
6433 (remove_symbol_file_command, list_overlays_command)
6434 (map_overlay_command, unmap_overlay_command)
6435 (overlay_auto_command, overlay_manual_command)
6436 (overlay_off_command, overlay_load_command): Constify.
6437
6438 2017-09-27 Tom Tromey <tom@tromey.com>
6439
6440 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
6441 (info_spu_mailbox_command, info_spu_dma_command)
6442 (info_spu_proxydma_command): Constify.
6443
6444 2017-09-27 Tom Tromey <tom@tromey.com>
6445
6446 * cli/cli-logging.c (set_logging_on, set_logging_off): Constify.
6447
6448 2017-09-27 Tom Tromey <tom@tromey.com>
6449
6450 * cli/cli-script.c (user_defined_command): Constify.
6451
6452 2017-09-27 Tom Tromey <tom@tromey.com>
6453
6454 * cli/cli-dump.c (dump_memory_command, dump_value_command)
6455 (dump_srec_memory, dump_srec_value, dump_ihex_memory)
6456 (dump_ihex_value, dump_verilog_memory, dump_verilog_value)
6457 (dump_tekhex_memory, dump_tekhex_value, dump_binary_memory)
6458 (dump_binary_value, append_binary_memory, append_binary_value):
6459 Constify.
6460 (struct dump_context) <func>: Constify.
6461 (add_dump_command): Update.
6462
6463 2017-09-27 Tom Tromey <tom@tromey.com>
6464
6465 * cli/cli-cmds.c (show_version, show_configuration)
6466 (source_command, show_user): Constify.
6467
6468 2017-09-27 Tom Tromey <tom@tromey.com>
6469
6470 * target.c (maintenance_print_target_stack): Constify.
6471
6472 2017-09-27 Tom Tromey <tom@tromey.com>
6473
6474 * interps.c (interpreter_exec_cmd): Constify.
6475
6476 2017-09-27 Tom Tromey <tom@tromey.com>
6477
6478 * record-full.c (cmd_record_full_restore): Constify.
6479
6480 2017-09-27 Tom Tromey <tom@tromey.com>
6481
6482 * memattr.c (enable_mem_command, disable_mem_command)
6483 (delete_mem_command): Constify.
6484
6485 2017-09-27 Tom Tromey <tom@tromey.com>
6486
6487 * value.c (show_convenience): Constify.
6488
6489 2017-09-27 Tom Tromey <tom@tromey.com>
6490
6491 * gdbcore.h (core_file_command): Update.
6492 * corefile.c (core_file_command): Constify.
6493
6494 2017-09-27 Tom Tromey <tom@tromey.com>
6495
6496 * user-regs.c (maintenance_print_user_registers): Constify.
6497
6498 2017-09-27 Tom Tromey <tom@tromey.com>
6499
6500 * cp-namespace.c (maintenance_cplus_namespace): Constify.
6501
6502 2017-09-27 Tom Tromey <tom@tromey.com>
6503
6504 * cp-support.c (first_component_command): Constify.
6505
6506 2017-09-27 Tom Tromey <tom@tromey.com>
6507
6508 * psymtab.c (maintenance_print_psymbols)
6509 (maintenance_info_psymtabs, maintenance_check_psymtabs):
6510 Constify.
6511
6512 2017-09-27 Tom Tromey <tom@tromey.com>
6513
6514 * windows-tdep.c (display_tib): Constify.
6515
6516 2017-09-27 Tom Tromey <tom@tromey.com>
6517
6518 * linux-fork.c (delete_checkpoint_command)
6519 (detach_checkpoint_command): Constify.
6520
6521 2017-09-27 Tom Tromey <tom@tromey.com>
6522
6523 * cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify.
6524
6525 2017-09-27 Tom Tromey <tom@tromey.com>
6526
6527 * arc-tdep.c (dump_arc_instruction_command): Constify.
6528
6529 2017-09-27 Tom Tromey <tom@tromey.com>
6530
6531 * valprint.c (set_radix, show_radix): Constify.
6532
6533 2017-09-27 Tom Tromey <tom@tromey.com>
6534
6535 * dtrace-probe.c (info_probes_dtrace_command): Constify.
6536
6537 2017-09-27 Tom Tromey <tom@tromey.com>
6538
6539 * command.h (not_just_help_class_command): Update.
6540 * cli/cli-decode.h (not_just_help_class_command): Update.
6541 * cli/cli-decode.c (not_just_help_class_command): Constify.
6542
6543 2017-09-27 Tom Tromey <tom@tromey.com>
6544
6545 * gdb_bfd.c (maintenance_info_bfds): Constify.
6546
6547 2017-09-27 Tom Tromey <tom@tromey.com>
6548
6549 * cli/cli-decode.c (add_cmd, set_cmd_cfunc): New function
6550 overloads.
6551 (do_add_cmd): Rename from add_cmd. Don't call set_cmd_cfunc.
6552 (do_const_cfunc): New function.
6553 (cmd_cfunc_eq): New overload.
6554 (cli_user_command_p): Check do_const_cfunc.
6555 * cli/cli-decode.h (struct cmd_list_element) <function>: New field
6556 const_cfunc.
6557 * command.h (add_cmd): Add const overload and no-function
6558 overload.
6559 (set_cmd_cfunc): Add const overload.
6560 (cmd_const_cfunc_ftype): Declare.
6561 (cmd_cfunc_eq): Add const overload.
6562 * breakpoint.c, cli-cmds.c, cli-dump.c, guile/scm-cmd.c,
6563 python/py-cmd.c, target.c, tracepoint.c: Use no-function add_cmd
6564 overload.
6565
6566 2017-09-27 Tom Tromey <tom@tromey.com>
6567
6568 * macroexp.c (get_next_token_for_substitution): New function.
6569 (substitute_args): Call it. Check for __VA_OPT__.
6570
6571 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
6572 Pedro Alves <palves@redhat.com>
6573
6574 * dwarf2read.c (dwarf2_cu): Remove field producer_is_icc and add
6575 producer_is_icc_lt_14.
6576 (producer_is_icc_lt_14): New function.
6577 (check_producer): Add code for checking version of ICC.
6578 (producer_is_icc): Move to producer.c.
6579 (read_structure_type): Restrict ICC workaround to ICC<14.
6580 * producer.c: Include selftest.h.
6581 (producer_is_icc, producer_parsing_tests, _initialize_producer):
6582 New functions.
6583 * producer.h (producer_is_icc): New declaration.
6584
6585 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
6586
6587 * Makefile.in (SFILES): Add producer.c.
6588 (COMMON_OBS): Add producer.o
6589 * amd64-tdep.c (producer.h): Add new include.
6590 * dwarf2read.c (producer.h): Add new include.
6591 * producer.c: New file.
6592 * producer.h: New file.
6593 * utils.c (producer_is_gcc, producer_is_gcc_ge_4): Move to
6594 producer.c.
6595 * utils.h (producer_is_gcc, producer_is_gcc_ge_4): Move to
6596 producer.h.
6597
6598 2017-09-26 Matthias Klose <doko@ubuntu.com>
6599
6600 * configure.ac: Search ncursesw before ncurses.
6601 Check ncursesw/ncurses.h before ncurses/ncurses.h.
6602 * gdb_curses.h: Include <ncursesw/ncurses.h>
6603 * config.in, configure: Regenerate.
6604
6605 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6606
6607 PR gdb/22185
6608 * configure.host <*-*-solaris2.[01], *-*-solaris2.[2-9]*>: Mark as
6609 obsolete.
6610 Use gdb_host sol2 for i[34567]86-*-solaris2*, x86_64-*-solaris2*.
6611 Remove i386sol2 support.
6612 * configure.nat <i386sol2>: Remove.
6613 <sol2-64>: Fold into ...
6614 <sol2>: ... this.
6615 Move common settings to default section.
6616 Add sol-thread.o.
6617 * configure.tgt <i[34567]86-*-solaris2.1[0-9]*,
6618 x86_64-*-solaris2.1[0-9]*>: Rename to ...
6619 <i[34567]86-*-solaris2*, x86_64-*-solaris2*>: ... this.
6620 <i[34567]86-*-solaris*>: Remove.
6621 <sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*>: Remove.
6622
6623 * configure.ac: Remove wctype in libw check.
6624 (_MSE_INT_H): Don't define on Solaris 7-9.
6625 <solaris*>: Remove libthread_db.so.1 check.
6626 * configure: Regenerate.
6627 * config.in: Regenerate.
6628
6629 * proc-service.c: Remove PROC_SERVICE_IS_OLD handling.
6630 (gdb_ps_prochandle_t, gdb_ps_read_buf_t, gdb_ps_write_buf_t)
6631 (gdb_ps_size_t): Remove.
6632 Use base types in users.
6633 * sol-thread.c: Likewise, also for gdb_ps_addr_t.
6634
6635 * NEWS (Changes since GDB 8.0): Document Solaris 2.0-9 removal.
6636
6637 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6638
6639 PR build/22206
6640 * sparc64-tdep.c (adi_tag_fd): Print pid as long.
6641 (adi_is_addr_mapped): Likewise.
6642 (PSR_ICC): Don't redefine.
6643 (PSR_IMPL): Likewise.
6644
6645 2017-09-25 Tom Tromey <tom@tromey.com>
6646
6647 * regcache.c (regcache::dump): Use string_printf.
6648
6649 2017-09-25 Tom Tromey <tom@tromey.com>
6650
6651 * regcache.c (class regcache_invalidator): New.
6652 (struct register_to_invalidate): Remove.
6653 (make_cleanup_regcache_invalidate): Remove.
6654 (regcache::raw_write): Use regcache_invalidator.
6655
6656 2017-09-25 Tom Tromey <tom@tromey.com>
6657
6658 * spu-tdep.c (spu2ppu_sniffer): Update.
6659 * regcache.h (make_cleanup_regcache_xfree): Don't declare.
6660 * regcache.c (do_regcache_xfree, make_cleanup_regcache_xfree):
6661 Remove.
6662 * ppc-linux-tdep.c (ppu2spu_sniffer): Update.
6663 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Update.
6664 * frame.h (frame_save_as_regcache): Return std::unique_ptr.
6665 * frame.c (frame_save_as_regcache): Return std::unique_ptr.
6666 (frame_pop): Update.
6667
6668 2017-09-25 Tom Tromey <tom@tromey.com>
6669
6670 * spu-tdep.c (spu2ppu_dealloc_cache): Use delete.
6671 * regcache.h (regcache_xfree): Don't declare.
6672 * regcache.c (regcache_xfree): Remove.
6673 (do_regcache_xfree): Use delete.
6674 * ppc-linux-tdep.c (ppu2spu_dealloc_cache): Use delete.
6675 * linux-fork.c (free_fork): Use delete.
6676 (fork_save_infrun_state): Likewise.
6677 * jit.c (jit_dealloc_cache): Use delete.
6678 * infrun.c (discard_infcall_suspend_state): Use delete.
6679
6680 2017-09-25 Tom Tromey <tom@tromey.com>
6681
6682 * regcache.h (regcache_xmalloc): Don't declare.
6683 (regcache_raw_set_cached_value): Update comment.
6684 * regcache.c (regcache_xmalloc): Remove.
6685 * ppc-linux-tdep.c (ppu2spu_sniffer): Use new.
6686 * jit.c (jit_frame_sniffer): Use new.
6687 * frame.c (frame_save_as_regcache): Use new.
6688
6689 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6690
6691 * NEWS: Advertise support for guarded-storage registers on IBM z.
6692
6693 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6694
6695 * s390-linux-nat.c (have_regset_gs): New static variable.
6696 (s390_linux_fetch_inferior_registers): Handle guarded-storage
6697 control block and guarded-storage broadcast control regsets.
6698 (s390_read_description): Detect whether the target has
6699 guarded-storage support, return appropriate tdesc.
6700 * s390-linux-tdep.c (features/s390-gs-linux64.c): New include.
6701 (features/s390x-gs-linux64.c): Likewise.
6702 (struct gdbarch_tdep) <have_gs>: New field.
6703 (s390_regmap_gs, s390_regmap_gsbc, s390_gs_regset)
6704 (s390_gsbc_regset): New variables.
6705 (s390_iterate_over_regset_sections): Iterate over s390_gs_regset
6706 and s390_gsbc_regset, if applicable.
6707 (s390_core_read_description): Check whether core file was from a
6708 target with guarded-storage support; include appropriate regsets.
6709 (s390_gdbarch_init): Add registers for guarded-storage support.
6710 (_initialize_s390_tdep): Initialize new target descriptions that
6711 include registers for guarded-storage support.
6712 * s390-linux-tdep.h (HWCAP_S390_GS, S390_GSD_REGNUM)
6713 (S390_GSSM_REGNUM, S390_GSEPLA_REGNUM)
6714 (S390_BC_GSD_REGNUM, S390_BC_GSSM_REGNUM): New defines.
6715 (S390_NUM_REGS): Adjust macro definition.
6716 (s390_gs_regset, s390_gsbc_regset, tdesc_s390_gs_linux64)
6717 (tdesc_s390x_gs_linux64): New declarations.
6718
6719 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6720
6721 * features/s390-gs-linux64.xml: New file.
6722 * features/s390-gs.xml: New file.
6723 * features/s390-gsbc.xml: New file.
6724 * features/s390x-gs-linux64.xml: New file.
6725 * features/Makefile (WHICH): Add s390-gs-linux64 and
6726 s390x-gs-linux64.
6727 (s390-gs-linux64-expedite, s390x-gs-linux64-expedite): New macros.
6728 (XMLTOC): Add s390-gs-linux64.xml and s390x-linux64.xml.
6729 * features/s390-gs-linux64.c: New generated file.
6730 * features/s390x-gs-linux64.c: New file.
6731 * regformats/s390-gs-linux64.dat: New file.
6732 * regformats/s390x-gs-linux64.dat: New file.
6733
6734 2017-09-23 Tom Tromey <tom@tromey.com>
6735
6736 * defs.h (make_cleanup_override_quit_handler): Don't declare.
6737
6738 2017-09-22 Tom Tromey <tom@tromey.com>
6739
6740 * utils.c (class scoped_input_handler) <m_quit_handler>: Change
6741 type to scoped_restore_tmpl.
6742 <scoped_input_handler>: Initialize m_quit_handler directly.
6743
6744 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
6745
6746 * cli/cli-cmds.c (pwd_command): Use "getcwd (NULL, 0)".
6747 (cd_command): Likewise. Free "current_directory" before
6748 assigning to it.
6749 * main.c (captured_main_1): Use "getcwd (NULL, 0)".
6750 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Likewise.
6751 * top.c (gdb_dirbuf): Remove global declaration.
6752 * top.h (gdb_dirbuf): Likewise.
6753
6754 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
6755
6756 * gnulib/aclocal.m4: Regenerate.
6757 * gnulib/config.in: Regenerate.
6758 * gnulib/configure: Regenerate.
6759 * gnulib/import/Makefile.am: Regenerate.
6760 * gnulib/import/Makefile.in: Regenerate.
6761 * gnulib/import/assure.h: New file.
6762 * gnulib/import/at-func.c: Likewise
6763 * gnulib/import/chdir-long.c: New file.
6764 * gnulib/import/chdir-long.h: New file.
6765 * gnulib/import/cloexec.c: New file.
6766 * gnulib/import/cloexec.h: New file.
6767 * gnulib/import/close.c: New file.
6768 * gnulib/import/closedir.c: New file.
6769 * gnulib/import/dirent-private.h: New file.
6770 * gnulib/import/dup-safer.c: New file.
6771 * gnulib/import/dup.c: New file.
6772 * gnulib/import/dup2.c: New file.
6773 * gnulib/import/error.c: New file.
6774 * gnulib/import/error.h: New file.
6775 * gnulib/import/exitfail.c: New file.
6776 * gnulib/import/exitfail.h: New file.
6777 * gnulib/import/fchdir.c: New file.
6778 * gnulib/import/fcntl.c: New file.
6779 * gnulib/import/fcntl.in.h: New file.
6780 * gnulib/import/fd-hook.c: New file.
6781 * gnulib/import/fd-hook.h: New file.
6782 * gnulib/import/fd-safer.c: New file.
6783 * gnulib/import/fdopendir.c: New file.
6784 * gnulib/import/filename.h: New file.
6785 * gnulib/import/filenamecat-lgpl.c: New file.
6786 * gnulib/import/filenamecat.h: New file.
6787 * gnulib/import/fstat.c: New file.
6788 * gnulib/import/fstatat.c: New file.
6789 * gnulib/import/getcwd-lgpl.c: New file.
6790 * gnulib/import/getcwd.c: New file.
6791 * gnulib/import/getdtablesize.c: New file.
6792 * gnulib/import/getlogin_r.c: New file.
6793 * gnulib/import/getprogname.c: New file.
6794 * gnulib/import/getprogname.h: New file.
6795 * gnulib/import/gettext.h: New file.
6796 * gnulib/import/glob-libc.h: New file.
6797 * gnulib/import/glob.c: New file.
6798 * gnulib/import/glob.in.h: New file.
6799 * gnulib/import/intprops.h: New file.
6800 * gnulib/import/m4/chdir-long.m4: New file.
6801 * gnulib/import/m4/close.m4: New file.
6802 * gnulib/import/m4/closedir.m4: New file.
6803 * gnulib/import/m4/d-ino.m4: New file.
6804 * gnulib/import/m4/d-type.m4: New file.
6805 * gnulib/import/m4/dup.m4: New file.
6806 * gnulib/import/m4/dup2.m4: New file.
6807 * gnulib/import/m4/error.m4: New file.
6808 * gnulib/import/m4/fchdir.m4: New file.
6809 * gnulib/import/m4/fcntl.m4: New file.
6810 * gnulib/import/m4/fcntl_h.m4: New file.
6811 * gnulib/import/m4/fdopendir.m4: New file.
6812 * gnulib/import/m4/filenamecat.m4: New file.
6813 * gnulib/import/m4/fstat.m4: New file.
6814 * gnulib/import/m4/fstatat.m4: New file.
6815 * gnulib/import/m4/getcwd-abort-bug.m4: New file.
6816 * gnulib/import/m4/getcwd-path-max.m4: New file.
6817 * gnulib/import/m4/getcwd.m4: New file.
6818 * gnulib/import/m4/getdtablesize.m4: New file.
6819 * gnulib/import/m4/getlogin_r.m4: New file.
6820 * gnulib/import/m4/getprogname.m4: New file.
6821 * gnulib/import/m4/glob.m4: New file.
6822 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
6823 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
6824 * gnulib/import/m4/mempcpy.m4: New file.
6825 * gnulib/import/m4/memrchr.m4: New file.
6826 * gnulib/import/m4/mode_t.m4: New file.
6827 * gnulib/import/m4/msvc-inval.m4: New file.
6828 * gnulib/import/m4/msvc-nothrow.m4: New file.
6829 * gnulib/import/m4/open.m4: New file.
6830 * gnulib/import/m4/openat.m4: New file.
6831 * gnulib/import/m4/opendir.m4: New file.
6832 * gnulib/import/m4/readdir.m4: New file.
6833 * gnulib/import/m4/realloc.m4: New file.
6834 * gnulib/import/m4/rewinddir.m4: New file.
6835 * gnulib/import/m4/save-cwd.m4: New file.
6836 * gnulib/import/m4/strdup.m4: New file.
6837 * gnulib/import/m4/strerror.m4: New file.
6838 * gnulib/import/m4/unistd-safer.m4: New file.
6839 * gnulib/import/mempcpy.c: New file.
6840 * gnulib/import/memrchr.c: New file.
6841 * gnulib/import/msvc-inval.c: New file.
6842 * gnulib/import/msvc-inval.h: New file.
6843 * gnulib/import/msvc-nothrow.c: New file.
6844 * gnulib/import/msvc-nothrow.h: New file.
6845 * gnulib/import/open.c: New file.
6846 * gnulib/import/openat-die.c: New file.
6847 * gnulib/import/openat-priv.h: New file.
6848 * gnulib/import/openat-proc.c: New file.
6849 * gnulib/import/openat.c: New file.
6850 * gnulib/import/openat.h: New file.
6851 * gnulib/import/opendir.c: New file.
6852 * gnulib/import/pipe-safer.c: New file.
6853 * gnulib/import/readdir.c: New file.
6854 * gnulib/import/realloc.c: New file.
6855 * gnulib/import/rewinddir.c: New file.
6856 * gnulib/import/save-cwd.c: New file.
6857 * gnulib/import/save-cwd.h: New file.
6858 * gnulib/import/strdup.c: New file.
6859 * gnulib/import/strerror-override.c: New file.
6860 * gnulib/import/strerror-override.h: New file.
6861 * gnulib/import/strerror.c: New file.
6862 * gnulib/import/unistd--.h: New file.
6863 * gnulib/import/unistd-safer.h: New file.
6864 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
6865 "getcwd" and "glob".
6866 * ser-tcp.c: Undefine "close" before redefining it.
6867
6868 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
6869
6870 * guile/scm-value.c (gdbscm_value_address): Initialize address,
6871 get rid of res_val.
6872
6873 2017-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6874
6875 * configure.nat <i386sol2,i386>: Add fork-inferior.o to NATDEPFILES.
6876 <sol2,sparc>: Likewise.
6877 <sol2-64,i386>: Likewise.
6878
6879 * warning.m4 (AM_GDB_WARNINGS): Disable -Wunknown-pragmas,
6880 -Wdeprecated-declarations on *-*-solaris*.
6881 * configure: Regenerate.
6882
6883 * procfs.c: Include "nat/inferior.h".
6884 (procfs_info_proc): Fix typo.
6885
6886 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6887
6888 * remote.c (vector): Include.
6889 (struct private_thread_info): Add field, thread_handle.
6890 (free_private_thread_info): Deallocate storage associated with
6891 thread handle.
6892 (get_private_info_thread): Initialize `thread_handle' field.
6893 (struct thread_item): Add field, thread_handle.
6894 (clear_threads_listing_context): Deallocate storage associated
6895 with thread handle.
6896 (start_thread): Add support for "handle" attribute.
6897 (thread_attributes): Add "handle".
6898 (remote_get_threads_with_qthreadinfo): Initialize thread_handle
6899 field.
6900 (remote_update_thread_list): Update thread_handle.
6901 (remote_thread_handle_to_thread_info): New function.
6902 (init_remote_ops): Initialize to_thread_handle_to_thread_info.
6903
6904 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6905
6906 * python/py-inferior.c (gdbpy_thread_from_thread_handle): New
6907 function.
6908 (inferior_object_methods): Add gdbpy_thread_from_thread_handle.
6909 * python/python-internal.h (thread_object_type): Declare.
6910
6911 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6912
6913 * target.h (struct target_ops): Add to_thread_handle_to_thread_info.
6914 (target_thread_handle_to_thread_info): Declare.
6915 * target.c (target_thread_handle_to_thread_info): New function.
6916 * target-delegates.c: Regenerate.
6917 * gdbthread.h (find_thread_by_handle): Declare.
6918 * thread.c (find_thread_by_handle): New function.
6919 * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New
6920 function.
6921 (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info.
6922
6923 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
6924
6925 * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF.
6926
6927 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
6928
6929 * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF.
6930
6931 2017-09-21 Yao Qi <yao.qi@linaro.org>
6932
6933 * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o
6934 to gdb_target_obs.
6935
6936 2017-09-20 Tom Tromey <tom@tromey.com>
6937
6938 * breakpoint.c (struct counted_command_line): Remove.
6939 (breakpoint_commands): Update.
6940 (alloc_counted_command_line, incref_counted_command_line)
6941 (decref_counted_command_line, do_cleanup_counted_command_line)
6942 (make_cleanup_decref_counted_command_line): Remove.
6943 (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats)
6944 (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check)
6945 (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint)
6946 (save_breakpoints): Update.
6947 * breakpoint.h (counted_command_line): Now a typedef to
6948 shared_ptr.
6949 (struct breakpoint) <commands>: Now a counted_command_line.
6950 (struct bpstats) <command>: Likewise.
6951
6952 2017-09-20 Tom Tromey <tom@tromey.com>
6953
6954 * breakpoint.c (struct commands_info, do_map_commands_command):
6955 Remove.
6956 (commands_command_1): Update.
6957 (iterate_over_related_breakpoints): Take a function_view.
6958 (do_delete_breakpoint, do_map_delete_breakpoint): Remove.
6959 (delete_command): Update.
6960 (map_breakpoint_numbers): Take a function_view.
6961 (do_disable_breakpoint, do_map_delete_breakpoint): Remove.
6962 (disable_command): Update.
6963 (do_enable_breakpoint, do_map_enable_breakpoint): Remove.
6964 (enable_command): Update.
6965 (struct disp_data, do_enable_breakpoint_disp)
6966 (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint)
6967 (do_map_enable_delete_breakpoint): Remove.
6968 (enable_once_command, enable_count_command, enable_delete_command)
6969 (delete_trace_variable_command): Update.
6970
6971 2017-09-20 Tom Tromey <tom@tromey.com>
6972
6973 * breakpoint.c (~bpstats): Rename from bpstat_free. Update.
6974 (bpstat_clear): Use delete.
6975 (bpstats): New constructors.
6976 (bpstat_copy, bpstat_stop_status): Use new.
6977 (dprintf_after_condition_true): Update.
6978 * breakpoint.h (bpstats::bpstats): Add constructors.
6979 (bpstats::~bpstats): Add destructor.
6980
6981 2017-09-20 Pedro Alves <palves@redhat.com>
6982
6983 * eval.c (make_params): Delete, refactored as ...
6984 (class fake_method): ... this new type's ctor.
6985 (fake_method::~fake_method): New.
6986 (evaluate_subexp_standard): Use 'fake_method'.
6987
6988 2017-09-20 Tom Tromey <tom@tromey.com>
6989
6990 * windows-nat.c (get_windows_debug_event, windows_wait)
6991 (do_initial_windows_stuff, windows_attach): Update.
6992 * utils.c (vwarning, internal_vproblem): Update.
6993 (ui_unregister_input_event_handler_cleanup)
6994 (prepare_to_handle_input): Remove.
6995 (class scoped_input_handler): New.
6996 (defaulted_query, prompt_for_continue): Update.
6997 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
6998 Update.
6999 * top.c (undo_terminal_modifications_before_exit): Update.
7000 * target/target.h (target_terminal_init, target_terminal_inferior)
7001 (target_terminal_ours): Don't declare.
7002 (class target_terminal): New.
7003 * target.h (target_terminal_is_inferior, target_terminal_is_ours)
7004 (target_terminal_ours_for_output)
7005 (make_cleanup_restore_target_terminal): Don't declare.
7006 (target_terminal_info): Remove.
7007 * target.c (enum terminal_state, terminal_state): Remove.
7008 (target_terminal::terminal_state): Define.
7009 (target_terminal::init): Rename from target_terminal_init.
7010 (target_terminal::inferior): Rename from
7011 target_terminal_inferior.
7012 (target_terminal::ours): Rename from target_terminal_ours.
7013 (target_terminal::ours_for_output): Rename from
7014 target_terminal_ours_for_output.
7015 (target_terminal::info): New method.
7016 (cleanup_restore_target_terminal)
7017 (make_cleanup_restore_target_terminal): Remove.
7018 * solib.c (handle_solib_event): Update.
7019 * remote.c (remote_serial_quit_handler): Update.
7020 (remote_terminal_inferior, remote_wait_as): Update.
7021 * record-full.c (record_full_wait_1): Update.
7022 * nto-procfs.c (procfs_create_inferior): Update.
7023 * nat/fork-inferior.c (startup_inferior): Update.
7024 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
7025 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
7026 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
7027 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
7028 (mi_breakpoint_created, mi_breakpoint_deleted)
7029 (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded)
7030 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
7031 (mi_user_selected_context_changed, report_initial_inferior):
7032 Update.
7033 * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours)
7034 (linux_nat_terminal_inferior): Update.
7035 * infrun.c (follow_fork_inferior)
7036 (handle_vfork_child_exec_or_exit, do_target_resume)
7037 (check_curr_ui_sync_execution_done, handle_inferior_event_1)
7038 (handle_signal_stop, maybe_remove_breakpoints, normal_stop):
7039 Update.
7040 * inflow.c (child_terminal_init, info_terminal_command): Update.
7041 * infcmd.c (post_create_inferior, continue_1, prepare_one_step)
7042 (attach_command): Update.
7043 * infcall.c (call_thread_fsm_should_stop): Update.
7044 * gnu-nat.c (gnu_attach): Update.
7045 * extension.c (struct active_ext_lang_state)
7046 (restore_active_ext_lang): Update.
7047 * exceptions.c (print_flush): Update.
7048 * event-top.c (async_enable_stdin, default_quit_handler): Update.
7049 (struct quit_handler_cleanup_data, restore_quit_handler)
7050 (restore_quit_handler_dtor, make_cleanup_override_quit_handler):
7051 Remove.
7052 * cp-support.c (gdb_demangle): Update.
7053 * breakpoint.c (update_inserted_breakpoint_locations)
7054 (insert_breakpoint_locations, handle_jit_event)
7055 (disable_breakpoints_in_unloaded_shlib): Update.
7056 * annotate.c (annotate_breakpoints_invalid)
7057 (annotate_frames_invalid): Update.
7058
7059 2017-09-20 Tom Tromey <tom@tromey.com>
7060
7061 * main.c (catch_command_errors): Rename from
7062 catch_command_errors_const.
7063 (captured_main_1): Update.
7064
7065 2017-09-20 Pedro Alves <palves@redhat.com>
7066
7067 * cli/cli-cmds.c (list_command): Use print_sal_location.
7068 (print_sal_location): New function.
7069 (ambiguous_line_spec): Use print_sal_location.
7070 * linespec.c (symbol_to_sal): Record the symbol in the sal.
7071 * symtab.c (find_function_start_sal): Likewise.
7072 * symtab.h (symtab_and_line::symbol): New field.
7073
7074 2017-09-20 Pedro Alves <palves@redhat.com>
7075
7076 * linespec.c (minsym_found): Handle non-text minsyms.
7077 (symbol_to_sal): Record a sal.pc for non-block, non-label symbols.
7078
7079 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
7080
7081 * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing
7082 backslash.
7083
7084 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
7085
7086 * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use
7087 vmovups instead vmovaps.
7088 (move_zmm_data_to_memory): Use vmovups instead vmovaps.
7089
7090 2017-09-19 John Baldwin <jhb@FreeBSD.org>
7091
7092 * NEWS (Changes since GDB 8.0): Add starti.
7093 * infcmd.c (enum run_break): New.
7094 (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN
7095 case.
7096 (run_command): Use enum run_how.
7097 (start_command): Likewise.
7098 (starti_command): New function.
7099 (RUN_ARGS_HELP): New macro.
7100 (_initialize_infcmd): Use RUN_ARGS_HELP for run and start
7101 commands. Add starti command.
7102
7103 2017-09-19 Yao Qi <yao.qi@linaro.org>
7104
7105 * Makefile.in (monitor.o): Remove the rule.
7106
7107 2017-09-19 Yao Qi <yao.qi@linaro.org>
7108
7109 * annotate.h (struct annotate_arg_emitter): Use
7110 DISABLE_COPY_AND_ASSIGN.
7111 * common/refcounted-object.h (refcounted_object): Likewise.
7112 * completer.h (struct completion_result): Likewise.
7113 * dwarf2read.c (struct dwarf2_per_objfile): Likewise.
7114 * filename-seen-cache.h (filename_seen_cache): Likewise.
7115 * gdbcore.h (thread_section_name): Likewise.
7116 * gdb_regex.h (compiled_regex): Likewise.
7117 * gdbthread.h (scoped_restore_current_thread): Likewise.
7118 * inferior.h (scoped_restore_current_inferior): Likewise.
7119 * jit.c (jit_reader): Likewise.
7120 * linespec.h (struct linespec_result): Likewise.
7121 * mi/mi-parse.h (struct mi_parse): Likewise.
7122 * nat/fork-inferior.c (execv_argv): Likewise.
7123 * progspace.h (scoped_restore_current_program_space): Likewise.
7124 * python/python-internal.h (class gdbpy_enter): Likewise.
7125 * regcache.h (regcache): Likewise.
7126 * target-descriptions.c (struct tdesc_reg): Likewise.
7127 (struct tdesc_type): Likewise.
7128 (struct tdesc_feature): Likewise.
7129 * ui-out.h (ui_out_emit_type): Likewise.
7130
7131 2017-09-18 Simon Marchi <simon.marchi@ericsson.com>
7132
7133 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove
7134 label abort_expression.
7135
7136 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7137
7138 * common/buffer.c (buffer_xml_printf): Adjust.
7139 * common/xml-utils.c (xml_escape_text): Change return type to
7140 std::string, update code accordingly.
7141 * common/xml-utils.h (xml_escape_text): Change return type to
7142 std::string.
7143 * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust.
7144 * windows-tdep.c (windows_xfer_shared_library): Adjust.
7145 * unittests/xml-utils-selftests.c (test_xml_escape_text):
7146 Adjust.
7147
7148 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7149
7150 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file.
7151 (SUBDIR_UNITTESTS_OBS): Add new object file.
7152 * unittests/xml-utils-selftests.c: New file.
7153
7154 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7155
7156 * common/selftest.h (selftest): New struct/interface.
7157 (register_test): Add name parameter, add new overload.
7158 (run_tests): Add filter parameter.
7159 (for_each_selftest_ftype): New typedef.
7160 (for_each_selftest): New declaration.
7161 * common/selftest.c (tests): Change type to
7162 map<string, unique_ptr<selftest>>.
7163 (simple_selftest): New struct.
7164 (register_test): New function.
7165 (register_test): Add name parameter and use it.
7166 (run_tests): Add filter parameter and use it. Add prints.
7167 Adjust to vector -> map change.
7168 * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when
7169 registering selftests.
7170 * arm-tdep.c (_initialize_arm_tdep): Likewise.
7171 * disasm-selftests.c (_initialize_disasm_selftests): Likewise.
7172 * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise.
7173 * dwarf2loc.c (_initialize_dwarf2loc): Likewise.
7174 * findvar.c (_initialize_findvar): Likewise.
7175 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise.
7176 * maint.c (maintenance_selftest): Update call to run_tests.
7177 (maintenance_info_selftests): New function.
7178 (_initialize_maint_cmds): Register "maintenance info selftests"
7179 command. Update "maintenance selftest" doc.
7180 * regcache.c (_initialize_regcache): Add names when registering
7181 selftests.
7182 * rust-exp.y (_initialize_rust_exp): Likewise.
7183 * selftest-arch.c (gdbarch_selftest): New struct.
7184 (gdbarch_tests): Remove.
7185 (register_test_foreach_arch): Add name parameter. Call
7186 register_test.
7187 (tests_with_arch): Remove, move most content to
7188 gdbarch_selftest::operator().
7189 (_initialize_selftests_foreach_arch): Remove.
7190 * selftest-arch.h (register_test_foreach_arch): Add name
7191 parameter.
7192 (run_tests_with_arch): New declaration.
7193 * utils-selftests.c (_initialize_utils_selftests): Add names
7194 when registering selftests.
7195 * utils.c (_initialize_utils): Likewise.
7196 * unittests/array-view-selftests.c
7197 (_initialize_array_view_selftests): Likewise.
7198 * unittests/environ-selftests.c (_initialize_environ_selftests):
7199 Likewise.
7200 * unittests/function-view-selftests.c
7201 (_initialize_function_view_selftests): Likewise.
7202 * unittests/offset-type-selftests.c
7203 (_initialize_offset_type_selftests): Likewise.
7204 * unittests/optional-selftests.c
7205 (_initialize_optional_selftests): Likewise.
7206 * unittests/scoped_restore-selftests.c
7207 (_initialize_scoped_restore_selftests): Likewise.
7208 * NEWS: Document "maintenance selftest" and "maint info
7209 selftests".
7210
7211 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7212
7213 * mi/mi-main.c (mi_load_progress): Restore current_uiout using a
7214 scoped_restore.
7215
7216 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7217
7218 * mi/mi-main.c (mi_load_progress): Make uiout variable
7219 a unique_ptr.
7220
7221 2017-09-15 Pedro Alves <palves@redhat.com>
7222
7223 * compile/compile-c-types.c (convert_enum, convert_int)
7224 (convert_float): Adjust to refer to int_type_v0 and float_type_v0.
7225
7226 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7227
7228 * dwarf2read.c (copy_string): Remove.
7229 (parse_macro_definition): Replace copy_string with savestring.
7230
7231 2017-09-15 Yao Qi <yao.qi@linaro.org>
7232
7233 * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to
7234 gdb_target_obs.
7235 (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*):
7236 Likewise.
7237 (i[34567]86-*-linux*): Likewise.
7238
7239 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
7240
7241 * dwarf2expr.h (dwarf_stack_value): Add constructor.
7242 (dwarf_expr_context) <~dwarf_expr_context>: Define as default.
7243 <stack>: Change type to std::vector.
7244 <stack_len, stack_allocated>: Remove.
7245 <grow_stack>: Remove.
7246 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
7247 (dwarf_expr_context::~dwarf_expr_context): Remove.
7248 (dwarf_expr_context::grow_stack): Remove.
7249 (dwarf_expr_context::push): Adjust.
7250 (dwarf_expr_context::pop): Adjust.
7251 (dwarf_expr_context::fetch): Adjust.
7252 (dwarf_expr_context::fetch_in_stack_memory): Adjust.
7253 (dwarf_expr_context::stack_empty_p): Adjust.
7254 (dwarf_expr_context::execute_stack_op): Adjust.
7255
7256 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
7257
7258 * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change
7259 return type to bool.
7260 * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise.
7261
7262 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
7263
7264 * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>:
7265 Change type to bool.
7266 (dwarf_stack_value) <in_stack_memory>: Likewise.
7267 (dwarf_expr_context) <push_address>: Change parameter type to
7268 bool.
7269 <fetch_in_stack_memory>: Change return type to bool.
7270 <push>: Change parameter type to bool.
7271 * dwarf2expr.c (dwarf_expr_context::push): Change parameter type
7272 to bool.
7273 (dwarf_expr_context::push_address): Likewise.
7274 (dwarf_expr_context::fetch_in_stack_memory): Change return type
7275 to bool.
7276 (dwarf_expr_context::execute_stack_op): Adjust.
7277 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust.
7278
7279 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
7280
7281 * dwarf2expr.h (struct dwarf_expr_piece): Move up.
7282 (struct dwarf_expr_context) <n_pieces>: Remove.
7283 <pieces>: Change type to std::vector.
7284 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
7285 (dwarf_expr_context::~dwarf_expr_context): Don't manually free
7286 pieces.
7287 (dwarf_expr_context::add_piece): Adjust.
7288 * dwarf2loc.c (struct piece_closure): Initialize fields.
7289 <n_pieces>: Remove.
7290 <pieces>: Change type to std::vector.
7291 (allocate_piece_closure): Adjust, change parameter to
7292 std::vector rvalue and std::move it to piece_closure.
7293 (rw_pieced_value): Adjust.
7294 (check_pieced_synthetic_pointer): Adjust.
7295 (indirect_synthetic_pointer): Adjust.
7296 (coerce_pieced_ref): Adjust.
7297 (free_pieced_value_closure): Adjust. Use delete to free
7298 piece_closure.
7299 (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces
7300 to allocate_piece_closure.
7301 (dwarf2_loc_desc_get_symbol_read_needs): Adjust.
7302
7303 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
7304
7305 * probe.h (probe_ops_cp): Remove typedef.
7306 (DEF_VEC_P (probe_ops_cp)): Remove.
7307 (all_probe_ops): Change type to std::vector.
7308 * probe.c (info_probes_for_ops): Adjust to vector change.
7309 (probe_linespec_to_ops): Likewise.
7310 (all_probe_ops): Change type to std::vector.
7311 (_initialize_probe): Adjust to vector change.
7312 * dtrace-probe.c (_initialize_dtrace_probe): Likewise.
7313 * elfread.c (elf_get_probes): Likewise.
7314 * stap-probe.c (_initialize_stap_probe): Likewise.
7315
7316 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
7317
7318 * probe.h (struct bound_probe): Define constructors.
7319 * probe.c (bound_probe_s): Remove typedef.
7320 (DEF_VEC_O (bound_probe_s)): Remove VEC.
7321 (collect_probes): Change return type to std::vector, remove
7322 cleanup.
7323 (compare_probes): Return bool, change parameter type. Change
7324 semantic to "less than".
7325 (gen_ui_out_table_header_info): Change parameter to std::vector
7326 and update.
7327 (exists_probe_with_pops): Likewise.
7328 (info_probes_for_ops): Update to std::vector change.
7329 (enable_probes_command): Likewise.
7330 (disable_probes_command): Likewise.
7331
7332 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
7333
7334 * probe.h (struct probe_ops) <get_probes>: Change parameter from
7335 vec to std::vector.
7336 * probe.c (parse_probes_in_pspace): Update.
7337 (find_probes_in_objfile): Update.
7338 (find_probe_by_pc): Update.
7339 (collect_probes): Update.
7340 (probe_any_get_probes): Update.
7341 * symfile.h (struct sym_probe_fns) <sym_get_probes> Change
7342 return type to reference to std::vector.
7343 * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to
7344 std::vector and update.
7345 (dtrace_process_dof): Likewise.
7346 (dtrace_get_probes): Likewise.
7347 * elfread.c (elf_get_probes): Change return type to std::vector,
7348 store an std::vector in bfd_data.
7349 (probe_key_free): Update to std::vector.
7350 * stap-probe.c (handle_stap_probe): Change parameter to
7351 std::vector and update.
7352 (stap_get_probes): Likewise.
7353 * symfile-debug.c (debug_sym_get_probes): Change return type to
7354 std::vector and update.
7355
7356 2017-09-11 Tom Tromey <tom@tromey.com>
7357
7358 * breakpoint.c (program_breakpoint_here_p): Update.
7359 * target.c (make_scoped_restore_show_memory_breakpoints): Rename
7360 from make_show_memory_breakpoints_cleanup. Return a
7361 scoped_restore_tmpl<int>.
7362 (restore_show_memory_breakpoints): Remove.
7363 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update.
7364 * mem-break.c (memory_validate_breakpoint): Update.
7365 * ia64-tdep.c (ia64_memory_insert_breakpoint): Update.
7366 (ia64_memory_remove_breakpoint): Update.
7367 (ia64_breakpoint_from_pc): Update.
7368 * target.h (make_scoped_restore_show_memory_breakpoints): Rename
7369 from make_show_memory_breakpoints_cleanup.
7370
7371 2017-09-11 Tom Tromey <tom@tromey.com>
7372
7373 * d-namespace.c (d_lookup_symbol): Use std::string.
7374 (find_symbol_in_baseclass): Likewise.
7375
7376 2017-09-11 Tom Tromey <tom@tromey.com>
7377
7378 * ctf.c (ctf_start): Use std::string.
7379
7380 2017-09-11 Tom Tromey <tom@tromey.com>
7381
7382 * ada-lang.c (is_known_support_routine): Update.
7383 (ada_unhandled_exception_name_addr_from_raise): Update.
7384 * guile/scm-frame.c (gdbscm_frame_name): Update.
7385 * python/py-frame.c (frapy_name): Update.
7386 (frapy_function): Update.
7387 * stack.h (find_frame_funname): Update.
7388 * stack.c (find_frame_funname): Return unique_xmalloc_ptr.
7389 (print_frame): Update.
7390
7391 2017-09-11 Tom Tromey <tom@tromey.com>
7392
7393 * findcmd.c (put_bits): Take a gdb::byte_vector.
7394 (parse_find_args): Return gdb::byte_vector. "args" now const.
7395 Remove "pattern_bufp" and "pattern_lenp" parameters. Remove
7396 cleanups.
7397 (find_command): Update.
7398
7399 2017-09-11 Tom Tromey <tom@tromey.com>
7400
7401 * cli/cli-script.c (class scoped_restore_hook_in): New.
7402 (clear_hook_in_cleanup): Remove.
7403 (execute_cmd_pre_hook, execute_cmd_post_hook): Use
7404 scoped_restore_hook_in.
7405
7406 2017-09-11 Tom Tromey <tom@tromey.com>
7407
7408 * cli/cli-script.c (restore_interp): Remove.
7409 (read_command_lines): Use scoped_restore_interp.
7410 * interps.c (scoped_restore_interp::set_temp): Rename from
7411 interp_set_temp.
7412 * interps.h (class scoped_restore_interp): New.
7413 (interp_set_temp): Remove.
7414
7415 2017-09-11 Tom Tromey <tom@tromey.com>
7416
7417 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
7418 (mi_cmd_catch_exception, mi_catch_load_unload): Update.
7419 * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a
7420 scoped_restore.
7421 (mi_cmd_break_insert_1): Update.
7422 * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a
7423 scoped_restore.
7424
7425 2017-09-11 Tom Tromey <tom@tromey.com>
7426
7427 * demangle.c (demangle_command): Update.
7428 * breakpoint.c (disable_command): Update.
7429 (enable_command): Update.
7430 (find_location_by_number): Make "number" const. Use
7431 get_number_trailer.
7432 * cli/cli-utils.c (extract_arg): Return std::string.
7433 * probe.c (parse_probe_linespec): Update. Change types.
7434 (collect_probes): Take string arguments.
7435 (parse_probe_linespec): Likewise.
7436 (info_probes_for_ops): Update.
7437 (enable_probes_command): Update.
7438 (disable_probes_command): Update.
7439 * break-catch-sig.c (catch_signal_split_args): Update.
7440 * mi/mi-parse.c (mi_parse): Update.
7441
7442 2017-09-11 Tom Tromey <tom@tromey.com>
7443
7444 * language.h (language_enum): Make argument const.
7445 * language.c (language_enum): Make argument const.
7446
7447 2017-09-11 Tom Tromey <tom@tromey.com>
7448
7449 * common/common-utils.h (skip_to_space): Remove macro, redeclare
7450 as function.
7451 (skip_to_space): Rename from skip_to_space_const.
7452 * common/common-utils.c (skip_to_space): New function.
7453 (skip_to_space): Rename from skip_to_space_const.
7454 * cli/cli-utils.h (get_number): Rename from get_number_const.
7455 (extract_arg): Rename from extract_arg_const.
7456 * cli/cli-utils.c (get_number): Rename from get_number_const.
7457 (extract_arg): Rename from extract_arg_const.
7458 (number_or_range_parser::get_number): Use ::get_number.
7459 * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c,
7460 break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c,
7461 cli/cli-script.c, cli/cli-setshow.c, compile/compile.c,
7462 completer.c, demangle.c, disasm.c, findcmd.c, linespec.c,
7463 linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c,
7464 minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c,
7465 python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c,
7466 stap-probe.c, tid-parse.c, tracepoint.c: Update all callers.
7467
7468 2017-09-11 Tom Tromey <tom@tromey.com>
7469
7470 * python/python.c (do_start_initialization): Use
7471 py-event-types.def to initialize types.
7472 Define all object type structures.
7473 * python/python-internal.h: Don't declare event initialization
7474 functions.
7475 * python/py-threadevent.c (thread_event_object_type): Don't
7476 define.
7477 * python/py-stopevent.c (stop_event_object_type): Don't define.
7478 * python/py-signalevent.c (signal_event_object_type): Don't
7479 declare or define.
7480 * python/py-newobjfileevent.c (new_objfile_event_object_type)
7481 (clear_objfiles_event_object_type): Don't declare or define.
7482 * python/py-infevents.c (inferior_call_pre_event_object_type)
7483 (inferior_call_post_event_object_type)
7484 (register_changed_event_object_type)
7485 (memory_changed_event_object_type): Don't declare or define.
7486 * python/py-inferior.c (new_thread_event_object_type)
7487 (new_inferior_event_object_type)
7488 (inferior_deleted_event_object_type): Don't declare or define.
7489 * python/py-exitedevent.c (exited_event_object_type): Don't
7490 declare or define.
7491 * python/py-evts.c (gdbpy_initialize_py_events): Use
7492 py-all-events.def.
7493 * python/py-events.h (thread_event_object_type): Don't declare.
7494 (events_object): Use py-all-events.def.
7495 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use
7496 py-event-types.def.
7497 * python/py-event-types.def: New file.
7498 * python/py-continueevent.c (create_continue_event_object): Don't
7499 declare or define.
7500 * python/py-bpevent.c (breakpoint_event_object_type): Don't
7501 declare or define.
7502 * python/py-all-events.def: New file.
7503
7504 2017-09-11 Tom Tromey <tom@tromey.com>
7505
7506 * python/py-threadevent.c (create_thread_event_object): Return
7507 gdbpy_ref.
7508 * python/py-stopevent.h (create_stop_event_object)
7509 (create_breakpoint_event_object, create_signal_event_object):
7510 Update.
7511 * python/py-stopevent.c (create_stop_event_object): Return
7512 gdbpy_ref.
7513 (emit_stop_event): Update.
7514 * python/py-signalevent.c (create_signal_event_object): Return
7515 gdbpy_ref.
7516 * python/py-infevents.c (create_inferior_call_event_object):
7517 Update.
7518 * python/py-event.h (create_event_object)
7519 (create_thread_event_object): Update.
7520 * python/py-event.c (create_event_object): Return gdbpy_ref.
7521 * python/py-continueevent.c: Return gdbpy_ref.
7522 * python/py-bpevent.c (create_breakpoint_event_object): Return
7523 gdbpy_ref.
7524
7525 2017-09-11 Tom Tromey <tom@tromey.com>
7526
7527 PR python/15622:
7528 * NEWS: Add entry.
7529 * python/python.c (do_start_initialization): Initialize new event
7530 types.
7531 * python/python-internal.h (gdbpy_initialize_new_inferior_event)
7532 (gdbpy_initialize_inferior_deleted_event)
7533 (gdbpy_initialize_new_thread_event): Declare.
7534 * python/py-threadevent.c (create_thread_event_object): Add option
7535 "thread" parameter.
7536 * python/py-inferior.c (new_thread_event_object_type)
7537 (new_inferior_event_object_type)
7538 (inferior_deleted_event_object_type): Declare.
7539 (python_new_inferior, python_inferior_deleted): New functions.
7540 (add_thread_object): Emit new_thread event.
7541 (gdbpy_initialize_inferior): Attach new functions to corresponding
7542 observers.
7543 (new_thread, new_inferior, inferior_deleted): Define new event
7544 types.
7545 * python/py-evts.c (gdbpy_initialize_py_events): Add new
7546 registries.
7547 * python/py-events.h (events_object) <new_inferior,
7548 inferior_deleted, new_thread>: New fields.
7549 * python/py-event.h (create_thread_event_breakpoint): Add optional
7550 "thread" parameter.
7551
7552 2017-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
7553
7554 * utils.c (abort_with_message): Don't compare gdb_stderr to NULL,
7555 check current_ui instead.
7556 (internal_vproblem): Likewise.
7557
7558 2017-09-09 Simon Marchi <simon.marchi@ericsson.com>
7559
7560 * thread.c (print_thread_info_1): Remove unnecessary calls to
7561 uiout->is_mi_like_p.
7562
7563 2017-09-09 Tom Tromey <tom@tromey.com>
7564
7565 * namespace.h (add_using_directive): Update.
7566 * namespace.c (add_using_directive): Change type of excludes to
7567 std::vector.
7568 * dwarf2read.c (read_import_statement): Use std::vector.
7569 (read_namespace): Update.
7570 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
7571
7572 2017-09-09 Tom Tromey <tom@tromey.com>
7573
7574 * linespec.c (create_sals_line_offset): Use gdb::def_vector.
7575
7576 2017-09-09 Tom Tromey <tom@tromey.com>
7577
7578 * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector.
7579
7580 2017-09-09 Tom Tromey <tom@tromey.com>
7581
7582 * stack.c (func_command): Use gdb::def_vector.
7583
7584 2017-09-09 Tom Tromey <tom@tromey.com>
7585
7586 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional,
7587 ui_out_emit_list, ui_out_emit_tuple.
7588 (mi_cmd_var_update): Likewise.
7589
7590 2017-09-09 Tom Tromey <tom@tromey.com>
7591
7592 * mi/mi-interp.c (mi_user_selected_context_changed): Use
7593 ui_out_redirect_pop.
7594 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
7595 ui_out_redirect_pop.
7596 * utils.c (do_ui_out_redirect_pop)
7597 (make_cleanup_ui_out_redirect_pop): Remove.
7598 * top.c (execute_command_to_string): Use ui_out_redirect_pop.
7599 * utils.h (make_cleanup_ui_out_redirect_pop): Remove.
7600 * ui-out.h (ui_out_redirect_pop): New class.
7601
7602 2017-09-09 Tom Tromey <tom@tromey.com>
7603
7604 * mi/mi-main.c (output_cores): Use ui_out_emit_list.
7605 (list_available_thread_groups, mi_cmd_list_thread_groups)
7606 (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory)
7607 (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected):
7608 Likewise.
7609
7610 2017-09-09 Tom Tromey <tom@tromey.com>
7611
7612 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
7613 ui_out_emit_tuple.
7614
7615 2017-09-09 Tom Tromey <tom@tromey.com>
7616
7617 * target.c (flash_erase_command): Use ui_out_emit_tuple.
7618 * stack.c (print_frame): Use ui_out_emit_tuple.
7619 * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple.
7620 (info_spu_mailbox_command, info_spu_dma_command)
7621 (info_spu_proxydma_command): Likewise.
7622 * mi/mi-main.c (mi_cmd_trace_frame_collected): Use
7623 ui_out_emit_tuple, gdb::byte_vector, bin2hex.
7624 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
7625 ui_out_emit_tuple.
7626 * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple.
7627
7628 2017-09-09 Tom Tromey <tom@tromey.com>
7629
7630 * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove.
7631 (class ui_out_emit_table): Update comment.
7632 * ui-out.c (do_cleanup_table_end)
7633 (make_cleanup_ui_out_table_begin_end): Remove.
7634 * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table.
7635 (info_spu_dma_cmdlist): Likewise.
7636 * probe.c (info_probes_for_ops): Use ui_out_emit_table.
7637 * darwin-nat-info.c (darwin_debug_regions_recurse): Use
7638 ui_out_emit_table.
7639
7640 2017-09-09 Tom Tromey <tom@tromey.com>
7641
7642 * thread.c (print_thread_info_1): Use ui_out_emit_table,
7643 ui_out_emit_list, gdb::optional.
7644
7645 2017-09-09 John Baldwin <jhb@FreeBSD.org>
7646
7647 * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat
7648 prototype.
7649 * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep
7650 prototype.
7651 * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep
7652 prototype.
7653 * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype.
7654 * ada-exp.y: Remove _initialize_ada_exp prototype.
7655 * ada-lang.c: Remove _initialize_ada_language prototype.
7656 * ada-tasks.c: Remove _initialize_tasks prototype.
7657 * addrmap.c: Remove _initialize_addrmap prototype.
7658 * agent.c: Remove _initialize_agent prototype.
7659 * aix-thread.c: Remove _initialize_aix_thread prototype.
7660 * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype.
7661 * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype.
7662 * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep
7663 prototype.
7664 * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype.
7665 * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype.
7666 * alpha-tdep.c: Remove _initialize_alpha_tdep prototype.
7667 * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep
7668 prototype.
7669 * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep
7670 prototype.
7671 * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype.
7672 * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype.
7673 * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype.
7674 * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep
7675 prototype.
7676 * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype.
7677 * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype.
7678 * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype.
7679 * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype.
7680 * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
7681 * amd64-tdep.c: Remove _initialize_amd64_tdep prototype.
7682 * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat
7683 prototype.
7684 * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep
7685 prototype.
7686 * annotate.c: Remove _initialize_annotate prototype.
7687 * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype.
7688 * arc-tdep.c: Remove _initialize_arc_tdep prototype.
7689 * arch-utils.c: Remove _initialize_gdbarch_utils prototype.
7690 * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype.
7691 * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype.
7692 * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype.
7693 * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype.
7694 * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep
7695 prototype.
7696 * arm-tdep.c: Remove _initialize_arm_tdep prototype.
7697 * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype.
7698 * auto-load.c: Remove _initialize_auto_load prototype.
7699 * auxv.c: Remove _initialize_auxv prototype.
7700 * avr-tdep.c: Remove _initialize_avr_tdep prototype.
7701 * ax-gdb.c: Remove _initialize_ax_gdb prototype.
7702 * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype.
7703 * bfin-tdep.c: Remove _initialize_bfin_tdep prototype.
7704 * break-catch-sig.c: Remove _initialize_break_catch_sig prototype.
7705 * break-catch-syscall.c: Remove _initialize_break_catch_syscall
7706 prototype.
7707 * break-catch-throw.c: Remove _initialize_break_catch_throw
7708 prototype.
7709 * breakpoint.c: Remove _initialize_breakpoint prototype.
7710 * bsd-uthread.c: Remove _initialize_bsd_uthread prototype.
7711 * btrace.c: Remove _initialize_btrace prototype.
7712 * charset.c: Remove _initialize_charset prototype.
7713 * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype.
7714 * cli/cli-dump.c: Remove _initialize_cli_dump prototype.
7715 * cli/cli-interp.c: Remove _initialize_cli_interp prototype.
7716 * cli/cli-logging.c: Remove _initialize_cli_logging prototype.
7717 * cli/cli-script.c: Remove _initialize_cli_script prototype.
7718 * coff-pe-read.c: Remove _initialize_coff_pe_read prototype.
7719 * coffread.c: Remove _initialize_coffread prototype.
7720 * compile/compile.c: Remove _initialize_compile prototype.
7721 * complaints.c: Remove _initialize_complaints prototype.
7722 * completer.c: Remove _initialize_completer prototype.
7723 * copying.awk: Remove _initialize_copying prototype.
7724 * copying.c: Regenerate.
7725 * core-regset.c: Remove _initialize_core_regset prototype.
7726 * corefile.c: Remove _initialize_core prototype.
7727 * corelow.c: Remove _initialize_corelow prototype.
7728 * cp-abi.c: Remove _initialize_cp_abi prototype.
7729 * cp-namespace.c: Remove _initialize_cp_namespace prototype.
7730 * cp-support.c: Remove _initialize_cp_support prototype.
7731 * cp-valprint.c: Remove _initialize_cp_valprint prototype.
7732 * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype.
7733 * cris-tdep.c: Remove _initialize_cris_tdep prototype.
7734 * ctf.c: Remove _initialize_ctf prototype.
7735 * d-lang.c: Remove _initialize_d_language prototype.
7736 * darwin-nat-info.c: Remove _initialize_darwin_info_commands
7737 prototype.
7738 * darwin-nat.c: Remove _initialize_darwin_inferior prototype.
7739 * dbxread.c: Remove _initialize_dbxread prototype.
7740 * dcache.c: Remove _initialize_dcache prototype.
7741 * demangle.c: Remove _initialize_demangler prototype.
7742 * disasm-selftests.c: Remove _initialize_disasm_selftests
7743 prototype.
7744 * disasm.c: Remove _initialize_disasm prototype.
7745 * dtrace-probe.c: Remove _initialize_dtrace_probe prototype.
7746 * dummy-frame.c: Remove _initialize_dummy_frame prototype.
7747 * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame
7748 prototype.
7749 * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype.
7750 * dwarf2expr.c: Remove _initialize_dwarf2expr prototype.
7751 * dwarf2loc.c: Remove _initialize_dwarf2loc prototype.
7752 * dwarf2read.c: Remove _initialize_dwarf2_read prototype.
7753 * elfread.c: Remove _initialize_elfread prototype.
7754 * exec.c: Remove _initialize_exec prototype.
7755 * extension.c: Remove _initialize_extension prototype.
7756 * f-lang.c: Remove _initialize_f_language prototype.
7757 * f-valprint.c: Remove _initialize_f_valprint prototype.
7758 * fbsd-nat.c: Remove _initialize_fbsd_nat prototype.
7759 * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype.
7760 * filesystem.c: Remove _initialize_filesystem prototype.
7761 * findcmd.c: Remove _initialize_mem_search prototype.
7762 * fork-child.c: Remove _initialize_fork_child prototype.
7763 * frame-base.c: Remove _initialize_frame_base prototype.
7764 * frame-unwind.c: Remove _initialize_frame_unwind prototype.
7765 * frame.c: Remove _initialize_frame prototype.
7766 * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype.
7767 * frv-tdep.c: Remove _initialize_frv_tdep prototype.
7768 * ft32-tdep.c: Remove _initialize_ft32_tdep prototype.
7769 * gcore.c: Remove _initialize_gcore prototype.
7770 * gdb_bfd.c: Remove _initialize_gdb_bfd prototype.
7771 * gdbarch.c: Regenerate.
7772 * gdbarch.sh: Remove _initialize_gdbarch prototype.
7773 * gdbtypes.c: Remove _initialize_gdbtypes prototype.
7774 * gnu-nat.c: Remove _initialize_gnu_nat prototype.
7775 * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype.
7776 * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype.
7777 * go-lang.c: Remove _initialize_go_language prototype.
7778 * go32-nat.c: Remove _initialize_go32_nat prototype.
7779 * guile/guile.c: Remove _initialize_guile prototype.
7780 * h8300-tdep.c: Remove _initialize_h8300_tdep prototype.
7781 * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype.
7782 * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype.
7783 * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype.
7784 * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype.
7785 * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype.
7786 * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype.
7787 * hppa-tdep.c: Remove _initialize_hppa_tdep prototype.
7788 * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype.
7789 * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep
7790 prototype.
7791 * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep
7792 prototype.
7793 * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype.
7794 * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype.
7795 * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype.
7796 * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype.
7797 * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype.
7798 * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype.
7799 * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype.
7800 * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype.
7801 * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype.
7802 * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype.
7803 * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype.
7804 * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype.
7805 * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype.
7806 * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
7807 * i386-tdep.c: Remove _initialize_i386_tdep prototype.
7808 * i386-windows-nat.c: Remove _initialize_i386_windows_nat
7809 prototype.
7810 * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame
7811 prototype.
7812 * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype.
7813 * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype.
7814 * ia64-tdep.c: Remove _initialize_ia64_tdep prototype.
7815 * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype.
7816 * infcall.c: Remove _initialize_infcall prototype.
7817 * infcmd.c: Remove _initialize_infcmd prototype.
7818 * inferior.c: Remove _initialize_inferiors prototype.
7819 * inflow.c: Remove _initialize_inflow prototype.
7820 * infrun.c: Remove _initialize_infrun prototype.
7821 * interps.c: Remove _initialize_interpreter prototype.
7822 * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype.
7823 * jit.c: Remove _initialize_jit prototype.
7824 * language.c: Remove _initialize_language prototype.
7825 * linux-fork.c: Remove _initialize_linux_fork prototype.
7826 * linux-nat.c: Remove _initialize_linux_nat prototype.
7827 * linux-tdep.c: Remove _initialize_linux_tdep prototype.
7828 * linux-thread-db.c: Remove _initialize_thread_db prototype.
7829 * lm32-tdep.c: Remove _initialize_lm32_tdep prototype.
7830 * m2-lang.c: Remove _initialize_m2_language prototype.
7831 * m32c-tdep.c: Remove _initialize_m32c_tdep prototype.
7832 * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype.
7833 * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype.
7834 * m32r-tdep.c: Remove _initialize_m32r_tdep prototype.
7835 * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype.
7836 * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
7837 * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
7838 * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype.
7839 * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype.
7840 * m68k-tdep.c: Remove _initialize_m68k_tdep prototype.
7841 * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
7842 * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
7843 * machoread.c: Remove _initialize_machoread prototype.
7844 * macrocmd.c: Remove _initialize_macrocmd prototype.
7845 * macroscope.c: Remove _initialize_macroscope prototype.
7846 * maint.c: Remove _initialize_maint_cmds prototype.
7847 * mdebugread.c: Remove _initialize_mdebugread prototype.
7848 * memattr.c: Remove _initialize_mem prototype.
7849 * mep-tdep.c: Remove _initialize_mep_tdep prototype.
7850 * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype.
7851 * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype.
7852 * mi/mi-interp.c: Remove _initialize_mi_interp prototype.
7853 * mi/mi-main.c: Remove _initialize_mi_main prototype.
7854 * microblaze-linux-tdep.c: Remove
7855 _initialize_microblaze_linux_tdep prototype.
7856 * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype.
7857 * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype.
7858 * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype.
7859 * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype.
7860 * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype.
7861 * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype.
7862 * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype.
7863 * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype.
7864 * mips-tdep.c: Remove _initialize_mips_tdep prototype.
7865 * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype.
7866 * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep
7867 prototype.
7868 * mipsread.c: Remove _initialize_mipsread prototype.
7869 * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep
7870 prototype.
7871 * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype.
7872 * moxie-tdep.c: Remove _initialize_moxie_tdep prototype.
7873 * msp430-tdep.c: Remove _initialize_msp430_tdep prototype.
7874 * mt-tdep.c: Remove _initialize_mt_tdep prototype.
7875 * nds32-tdep.c: Remove _initialize_nds32_tdep prototype.
7876 * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep
7877 prototype.
7878 * nios2-tdep.c: Remove _initialize_nios2_tdep prototype.
7879 * nto-procfs.c: Remove _initialize_procfs prototype.
7880 * nto-tdep.c: Remove _initialize_nto_tdep prototype.
7881 * objc-lang.c: Remove _initialize_objc_language prototype.
7882 * objfiles.c: Remove _initialize_objfiles prototype.
7883 * observer.c: Remove observer_test_first_notification_function,
7884 observer_test_second_notification_function,
7885 observer_test_third_notification_function, and
7886 _initialize_observer prototypes.
7887 * opencl-lang.c: Remove _initialize_opencl_language prototypes.
7888 * osabi.c: Remove _initialize_gdb_osabi prototype.
7889 * osdata.c: Remove _initialize_osdata prototype.
7890 * p-valprint.c: Remove _initialize_pascal_valprint prototype.
7891 * parse.c: Remove _initialize_parse prototype.
7892 * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype.
7893 * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype.
7894 * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype.
7895 * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype.
7896 * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype.
7897 * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype.
7898 * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype.
7899 * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype.
7900 * printcmd.c: Remove _initialize_printcmd prototype.
7901 * probe.c: Remove _initialize_probe prototype.
7902 * proc-api.c: Remove _initialize_proc_api prototype.
7903 * proc-events.c: Remove _initialize_proc_events prototype.
7904 * proc-service.c: Remove _initialize_proc_service prototype.
7905 * procfs.c: Remove _initialize_procfs prototype.
7906 * psymtab.c: Remove _initialize_psymtab prototype.
7907 * python/python.c: Remove _initialize_python prototype.
7908 * ravenscar-thread.c: Remove _initialize_ravenscar prototype.
7909 * record-btrace.c: Remove _initialize_record_btrace prototype.
7910 * record-full.c: Remove _initialize_record_full prototype.
7911 * record.c: Remove _initialize_record prototype.
7912 * regcache.c: Remove _initialize_regcache prototype.
7913 * reggroups.c: Remove _initialize_reggroup prototype.
7914 * remote-notif.c: Remove _initialize_notif prototype.
7915 * remote-sim.c: Remove _initialize_remote_sim prototype.
7916 * remote.c: Remove _initialize_remote prototype.
7917 * reverse.c: Remove _initialize_reverse prototype.
7918 * rl78-tdep.c: Remove _initialize_rl78_tdep prototype.
7919 * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype.
7920 * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep
7921 prototype.
7922 * rs6000-nat.c: Remove _initialize_rs6000_nat prototype.
7923 * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype.
7924 * rust-exp.y: Remove _initialize_rust_exp prototype.
7925 * rx-tdep.c: Remove _initialize_rx_tdep prototype.
7926 * s390-linux-nat.c: Remove _initialize_s390_nat prototype.
7927 * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype.
7928 * score-tdep.c: Remove _initialize_score_tdep prototype.
7929 * selftest-arch.c: Remove _initialize_selftests_foreach_arch
7930 prototype.
7931 * ser-go32.c: Remove _initialize_ser_dos prototype.
7932 * ser-mingw.c: Remove _initialize_ser_windows prototype.
7933 * ser-pipe.c: Remove _initialize_ser_pipe prototype.
7934 * ser-tcp.c: Remove _initialize_ser_tcp prototype.
7935 * ser-unix.c: Remove _initialize_ser_hardwire prototype.
7936 * serial.c: Remove _initialize_serial prototype.
7937 * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype.
7938 * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype.
7939 * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype.
7940 * sh-tdep.c: Remove _initialize_sh_tdep prototype.
7941 * skip.c: Remove _initialize_step_skip prototype.
7942 * sol-thread.c: Remove _initialize_sol_thread prototype.
7943 * solib-aix.c: Remove _initialize_solib_aix prototype.
7944 * solib-darwin.c: Remove _initialize_darwin_solib prototype.
7945 * solib-dsbt.c: Remove _initialize_dsbt_solib prototype.
7946 * solib-frv.c: Remove _initialize_frv_solib prototype.
7947 * solib-spu.c: Remove _initialize_spu_solib prototype.
7948 * solib-svr4.c: Remove _initialize_svr4_solib prototype.
7949 * solib-target.c: Remove _initialize_solib_target prototype.
7950 * solib.c: Remove _initialize_solib prototype.
7951 * source.c: Remove _initialize_source prototype.
7952 * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype.
7953 * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep
7954 prototype.
7955 * sparc-nat.c: Remove _initialize_sparc_nat prototype.
7956 * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype.
7957 * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype.
7958 * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep
7959 prototype.
7960 * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype.
7961 * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype.
7962 * sparc-tdep.c: Remove _initialize_sparc_tdep prototype.
7963 * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat
7964 prototype.
7965 * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep
7966 prototype.
7967 * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat
7968 prototype.
7969 * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep
7970 prototype.
7971 * sparc64-nat.c: Remove _initialize_sparc64_nat prototype.
7972 * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat
7973 prototype.
7974 * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep
7975 prototype.
7976 * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat
7977 prototype.
7978 * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep
7979 prototype.
7980 * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep
7981 prototype.
7982 * spu-linux-nat.c: Remove _initialize_spu_nat prototype.
7983 * spu-multiarch.c: Remove _initialize_spu_multiarch prototype.
7984 * spu-tdep.c: Remove _initialize_spu_tdep prototype.
7985 * stabsread.c: Remove _initialize_stabsread prototype.
7986 * stack.c: Remove _initialize_stack prototype.
7987 * stap-probe.c: Remove _initialize_stap_probe prototype.
7988 * std-regs.c: Remove _initialize_frame_reg prototype.
7989 * symfile-debug.c: Remove _initialize_symfile_debug prototype.
7990 * symfile-mem.c: Remove _initialize_symfile_mem prototype.
7991 * symfile.c: Remove _initialize_symfile prototype.
7992 * symmisc.c: Remove _initialize_symmisc prototype.
7993 * symtab.c: Remove _initialize_symtab prototype.
7994 * target-dcache.c: Remove _initialize_target_dcache prototype.
7995 * target-descriptions.c: Remove _initialize_target_descriptions
7996 prototype.
7997 * thread.c: Remove _initialize_thread prototype.
7998 * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep
7999 prototype.
8000 * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype.
8001 * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype.
8002 * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep
8003 prototype.
8004 * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype.
8005 * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype.
8006 * tracefile.c: Remove _initialize_tracefile prototype.
8007 * tracepoint.c: Remove _initialize_tracepoint prototype.
8008 * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype.
8009 * tui/tui-interp.c: Remove _initialize_tui_interp prototype.
8010 * tui/tui-layout.c: Remove _initialize_tui_layout prototype.
8011 * tui/tui-regs.c: Remove _initialize_tui_regs prototype.
8012 * tui/tui-stack.c: Remove _initialize_tui_stack prototype.
8013 * tui/tui-win.c: Remove _initialize_tui_win prototype.
8014 * tui/tui.c: Remove _initialize_tui prototype.
8015 * typeprint.c: Remove _initialize_typeprint prototype.
8016 * user-regs.c: Remove _initialize_user_regs prototype.
8017 * utils.c: Remove _initialize_utils prototype.
8018 * v850-tdep.c: Remove _initialize_v850_tdep prototype.
8019 * valarith.c: Remove _initialize_valarith prototype.
8020 * valops.c: Remove _initialize_valops prototype.
8021 * valprint.c: Remove _initialize_valprint prototype.
8022 * value.c: Remove _initialize_values prototype.
8023 * varobj.c: Remove _initialize_varobj prototype.
8024 * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype.
8025 * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype.
8026 * vax-tdep.c: Remove _initialize_vax_tdep prototype.
8027 * windows-nat.c: Remove _initialize_windows_nat,
8028 _initialize_check_for_gdb_ini, and _initialize_loadable
8029 prototypes.
8030 * windows-tdep.c: Remove _initialize_windows_tdep prototype.
8031 * xcoffread.c: Remove _initialize_xcoffread prototype.
8032 * xml-support.c: Remove _initialize_xml_support prototype.
8033 * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype.
8034 * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat
8035 prototype.
8036 * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep
8037 prototype.
8038 * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype.
8039
8040 2017-09-08 Keith Seitz <keiths@redhat.com>
8041
8042 * dwarf2read.c (struct field_info) <fnfields>: Remove unused
8043 field.
8044
8045 2017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com>
8046
8047 * f-valprint.c (f_val_print): Remove check for one byte
8048 sized integers. Remove printing of character type.
8049
8050 2017-09-08 Frank Penczek <frank.penczek@intel.com>
8051 Christoph Weinmann <christoph.t.weinmann@intel.com>
8052 Bernhard Heckel <bernhard.heckel@intel.com>
8053
8054 * f-typeprint.c (f_type_print_base): Use fprintfi_filtered
8055 to maintain proper indentation when printing pointers/refs.
8056
8057 2017-09-07 Joel Brobecker <brobecker@adacore.com>
8058
8059 GDB 8.0.1 released.
8060
8061 2017-09-07 Joel Brobecker <brobecker@adacore.com>
8062
8063 * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell.
8064
8065 2017-09-05 Tom Tromey <tom@tromey.com>
8066
8067 * parse.c (funcall_chain): Now a std::vector.
8068 (start_arglist, end_arglist): Simplify.
8069 (free_funcalls): Remove.
8070 (parse_exp_in_context_1): Remove cleanup.
8071
8072 2017-09-05 Tom Tromey <tom@tromey.com>
8073
8074 * go-exp.y (go_parse): Don't create a cleanup.
8075
8076 2017-09-05 Tom Tromey <tom@tromey.com>
8077
8078 * d-exp.y (PrimaryExpression): Use std::string.
8079 (d_parse): Don't create a cleanup.
8080
8081 2017-09-05 Tom Tromey <tom@tromey.com>
8082
8083 * utils.c (do_clear_parser_state): Remove.
8084 (make_cleanup_clear_parser_state): Remove.
8085 * p-exp.y (pascal_parse): Use scoped_restore.
8086 * m2-exp.y (m2_parse): Use scoped_restore.
8087 * f-exp.y (f_parse): Use scoped_restore.
8088 * d-exp.y (d_parse): Use scoped_restore.
8089 * c-exp.y (c_parse): Use scoped_restore.
8090 * ada-exp.y (ada_parse): Use scoped_restore.
8091 * utils.h (make_cleanup_clear_parser_state): Remove.
8092
8093 2017-09-06 Keith Seitz <keiths@redhat.com>
8094
8095 * dwarf2read.c (dw2_linkage_name_attr): New function.
8096 (dw2_linkage_name): New function.
8097 (dwarf2_compute_name, dwarf2_physname, read_call_site_scope)
8098 (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name.
8099 (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr.
8100
8101 2017-09-06 Kamil Rytarowski <n54@gmx.com>
8102
8103 * config/djgpp/djconfig.sh: Correct shell portability issue.
8104
8105 2017-09-06 Kamil Rytarowski <n54@gmx.com>
8106
8107 * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD.
8108
8109 2017-09-06 John Baldwin <jhb@FreeBSD.org>
8110
8111 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
8112 * NEWS: Mention new FreeBSD/mips native configuration.
8113 * configure.host: Add aarch64*-*-freebsd*.
8114 * configure.nat: Likewise.
8115 * aarch64-fbsd-nat.c: New file.
8116
8117 2017-09-06 John Baldwin <jhb@FreeBSD.org>
8118
8119 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o.
8120 (ALLDEPFILES): Add aarch64-fbsd-tdep.c.
8121 * NEWS: Mention new FreeBSD/aarch64 target.
8122 * configure.tgt: Add aarch64*-*-freebsd*.
8123 * aarch64-fbsd-tdep.c: New file.
8124 * aarch64-fbsd-tdep.h: New file.
8125
8126 2017-09-06 Kamil Rytarowski <n54@gmx.com>
8127
8128 * MAINTAINERS (Write After Approval): Add Kamil Rytarowski.
8129
8130 2017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
8131
8132 * parse.c (find_minsym_type_and_address): Don't relocate addresses
8133 of TLS symbols.
8134
8135 2017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8136
8137 * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
8138 call.
8139
8140 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
8141
8142 * infrun.c (follow_exec): Call add_thread after
8143 target_find_description.
8144
8145 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
8146
8147 * infrun.c (handle_inferior_event_1): When exec'ing, read
8148 stop_pc after follow_exec.
8149
8150 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
8151
8152 * remote.c (process_g_packet): Update error message.
8153
8154 2017-09-05 Yao Qi <yao.qi@linaro.org>
8155
8156 * configure.tgt (gdb_target_obs): Add i386.o for x86_64-*
8157 targets.
8158
8159 2017-09-05 Pedro Alves <palves@redhat.com>
8160
8161 * eval.c (eval_call, evaluate_funcall): New functions, factored
8162 out from ...
8163 (evaluate_subexp_standard): ... this.
8164
8165 2017-09-05 Yao Qi <yao.qi@linaro.org>
8166
8167 * amd64-tdep.c (amd64_target_description): Create target
8168 descriptions.
8169 (_initialize_amd64_tdep): Don't call functions
8170 initialize_tdesc_amd64_*. Add self tests.
8171 * arch/amd64.c (amd64_create_target_description): Add parameter
8172 is_linux. Call set_tdesc_osabi if is_linux is true.
8173 * arch/amd64.h (amd64_create_target_description): Update the
8174 declaration.
8175 * arch/i386.c (i386_create_target_description): Add parameter
8176 is_linux. Call set_tdesc_osabi if is_linux is true.
8177 * arch/i386.h (i386_create_target_description): Update
8178 declaration.
8179 * configure.tgt: Add i386.o to gdb_target_obs.
8180 * features/Makefile (XMLTOC): Remove i386/*.xml.
8181 * features/i386/amd64-avx-avx512.c: Remove.
8182 * features/i386/amd64-avx-mpx-avx512-pku.c: Remove.
8183 * features/i386/amd64-avx-mpx.c: Remove.
8184 * features/i386/amd64-avx.c: Remove.
8185 * features/i386/amd64-mpx.c: Remove.
8186 * features/i386/amd64.c: Remove.
8187 * features/i386/i386-avx-avx512.c: Remove.
8188 * features/i386/i386-avx-mpx-avx512-pku.c: Remove.
8189 * features/i386/i386-avx-mpx.c: Remove.
8190 * features/i386/i386-avx.c: Remove.
8191 * features/i386/i386-mmx.c: Remove.
8192 * features/i386/i386-mpx.c: Remove.
8193 * features/i386/i386.c: Remove.
8194 * i386-tdep.c: Don't include features/i386/i386*.c., include
8195 target-descriptions.h and arch/i386.h.
8196 (i386_target_description): Create target descriptions.
8197 (i386_gdbarch_init): Don't call initialize_tdesc_i386_*
8198 functions. Do self tests.
8199
8200 2017-09-05 Yao Qi <yao.qi@linaro.org>
8201
8202 * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml.
8203 * features/i386/amd64-avx-avx512-linux.c: Removed.
8204 * features/i386/amd64-avx-linux.c: Removed.
8205 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed.
8206 * features/i386/amd64-avx-mpx-linux.c: Removed.
8207 * features/i386/amd64-linux.c: Removed.
8208 * features/i386/amd64-mpx-linux.c: Removed.
8209 * features/i386/x32-avx-avx512-linux.c: Removed.
8210 * features/i386/x32-avx-linux.c: Removed.
8211 * features/i386/x32-linux.c: Removed.
8212
8213 2017-09-05 Yao Qi <yao.qi@linaro.org>
8214
8215 * amd64-linux-tdep.c: Include arch/amd64.h. Don't include
8216 features/i386/*.c.
8217 (amd64_linux_read_description): Call
8218 amd64_create_target_description.
8219 * arch/amd64.c: New file.
8220 * arch/amd64.h: New file.
8221 * configure.tgt (x86_64-*-linux*): Append amd64.o.
8222 * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o.
8223
8224 2017-09-05 Yao Qi <yao.qi@linaro.org>
8225
8226 * amd64-linux-tdep.c: Don't include amd64-XXX-linux and
8227 x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c.
8228 (amd64_linux_read_description): Create target descriptions.
8229 (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX
8230 functions. Add unit tests.
8231 * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and
8232 x32-core.xml.
8233 * features/i386/64bit-avx.c: Generated.
8234 * features/i386/64bit-avx512.c: Generated.
8235 * features/i386/64bit-core.c: Generated.
8236 * features/i386/64bit-linux.c: Generated.
8237 * features/i386/64bit-mpx.c: Generated.
8238 * features/i386/64bit-pkeys.c: Generated.
8239 * features/i386/64bit-segments.c: Generated.
8240 * features/i386/64bit-sse.c: Generated.
8241 * features/i386/x32-core.c: Generated.
8242 * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature
8243 c files for amd64-linux and x32-linux.
8244
8245 2017-09-05 Yao Qi <yao.qi@linaro.org>
8246
8247 * amd64-linux-tdep.c (amd64_linux_read_description): New
8248 function.
8249 (amd64_linux_core_read_description): Call
8250 amd64_linux_read_description.
8251 (amd64_linux_init_abi): Likewise.
8252 (amd64_x32_linux_init_abi): Likewise.
8253 * amd64-linux-tdep.h (amd64_linux_read_description): Declare.
8254 * x86-linux-nat.c (x86_linux_read_description): Call
8255 amd64_linux_read_description.
8256
8257 2017-09-05 Yao Qi <yao.qi@linaro.org>
8258
8259 * amd64-linux-tdep.c (amd64_linux_core_read_description): Update
8260 comments.
8261
8262 2017-09-05 Yao Qi <yao.qi@linaro.org>
8263
8264 * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml.
8265 * features/i386/i386-avx-avx512-linux.c: Remove.
8266 * features/i386/i386-avx-linux.c: Remove.
8267 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove.
8268 * features/i386/i386-avx-mpx-linux.c: Remove.
8269 * features/i386/i386-linux.c: Remove.
8270 * features/i386/i386-mmx-linux.c: Remove.
8271 * features/i386/i386-mpx-linux.c: Remove.
8272
8273 2017-09-05 Yao Qi <yao.qi@linaro.org>
8274
8275 * Makefile.in (ALL_TARGET_OBS): Add i386.o.
8276 (SFILES): Add arch/i386.c.
8277 (HFILES_NO_SRCDIR): Add arch/i386.h.
8278 * arch/i386.c: New file.
8279 * arch/i386.h: New file.
8280 * arch/tdesc.h (allocate_target_description): Declare.
8281 (set_tdesc_architecture): Declare.
8282 (set_tdesc_osabi): Declare.
8283 * configure.tgt (i[34567]86-*-linux*): Add i386.o.
8284 * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c.
8285 include arch/i386.h.
8286 (i386_linux_read_description): Remove code and call
8287 i386_create_target_description.
8288 (set_tdesc_architecture): New function.
8289 (set_tdesc_osabi): New function.
8290 * target-descriptions.h (allocate_target_description): Remove.
8291
8292 2017-09-05 Yao Qi <yao.qi@linaro.org>
8293
8294 * arch/tdesc.h (tdesc_create_feature): Add an argument xml.
8295 * target-descriptions.c (tdesc_create_feature): Likewise, and
8296 adjust code.
8297 * features/i386/32bit-avx.c: Re-generated.
8298 * features/i386/32bit-avx512.c: Re-generated.
8299 * features/i386/32bit-core.c: Re-generated.
8300 * features/i386/32bit-linux.c: Re-generated.
8301 * features/i386/32bit-mpx.c: Re-generated.
8302 * features/i386/32bit-pkeys.c: Re-generated.
8303 * features/i386/32bit-sse.c: Re-generated.
8304
8305 2017-09-05 Yao Qi <yao.qi@linaro.org>
8306
8307 * regformats/regdef.h (struct reg): Override operator == and !=.
8308
8309 2017-09-05 Yao Qi <yao.qi@linaro.org>
8310
8311 * arch/tdesc.h: New file.
8312 * regformats/regdat.sh: Generate code using tdesc_create_reg.
8313 * target-descriptions.c: Update comments.
8314 * target-descriptions.h: Include "arch/tdesc.h". Remove the
8315 declarations.
8316 * features/i386/32bit-avx.c: Re-generated.
8317 * features/i386/32bit-avx512.c: Re-generated.
8318 * features/i386/32bit-core.c: Re-generated.
8319 * features/i386/32bit-linux.c: Re-generated.
8320 * features/i386/32bit-mpx.c: Re-generated.
8321 * features/i386/32bit-pkeys.c: Re-generated.
8322 * features/i386/32bit-sse.c: Re-generated.
8323
8324 2017-09-05 Yao Qi <yao.qi@linaro.org>
8325
8326 * regformats/regdat.sh: Update generated code.
8327
8328 2017-09-05 Yao Qi <yao.qi@linaro.org>
8329
8330 * regformats/regdat.sh: Adjust code order.
8331
8332 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
8333
8334 * expprint.c (dump_subexp_body_standard): Use constant format
8335 string in fprintf_filtered call.
8336
8337 2017-09-04 John Baldwin <jhb@FreeBSD.org>
8338
8339 * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and
8340 NetBSD/i386.
8341 * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX.
8342
8343 2017-09-04 John Baldwin <jhb@FreeBSD.org>
8344
8345 * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H.
8346
8347 2017-09-04 John Baldwin <jhb@FreeBSD.org>
8348
8349 * bsd-kvm.o: Define _KMEMUSER.
8350 * configure.ac: Define _KMEMUSER when checking for "struct lwp".
8351 * configure: Regenerate.
8352
8353 2017-09-04 John Baldwin <jhb@FreeBSD.org>
8354
8355 * amd64-fbsd-nat.c: Add include of "x86-xstate.h".
8356 * i386-fbsd-nat.c: Likewise.
8357
8358 2017-09-04 John Baldwin <jhb@FreeBSD.org>
8359
8360 * unittests/array-view-selftests.c: Add include of <array>.
8361
8362 2017-09-04 John Baldwin <jhb@FreeBSD.org>
8363
8364 * spu-tdep.c (flush_ea_cache): Add missing argument to
8365 call_function_by_hand.
8366
8367 2017-09-04 Pedro Alves <palves@redhat.com>
8368
8369 * NEWS (Safer support for debugging with no debug info): New.
8370
8371 2017-09-04 Pedro Alves <palves@redhat.com>
8372
8373 * c-exp.y (function_method, function_method_void): Add current
8374 instance flags to TYPE_INSTANCE.
8375 * dwarf2read.c (check_modifier): New.
8376 (compute_delayed_physnames): Assert that only C++ adds delayed
8377 physnames. Mark fn_fields as const/volatile depending on
8378 physname.
8379 * eval.c (make_params): New type_instance_flags parameter. Use
8380 it as the new type's instance flags.
8381 (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance
8382 flags element and pass it to make_params.
8383 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle
8384 instance flags element.
8385 (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise.
8386 * gdbtypes.h: Include "enum-flags.h".
8387 (type_instance_flags): New enum-flags type.
8388 (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC)
8389 (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean.
8390 * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust.
8391 (follow_type_instance_flags): New function.
8392 (operator_check_standard) <TYPE_INSTANCE>: Adjust.
8393 * parser-defs.h (follow_type_instance_flags): Declare.
8394 * valops.c (value_struct_elt_for_reference): const/volatile must
8395 match too.
8396
8397 2017-09-04 Pedro Alves <palves@redhat.com>
8398
8399 * cp-namespace.c (cp_search_static_and_baseclasses): Handle
8400 function/method scopes; lookup the nested name as a function local
8401 static variable.
8402
8403 2017-09-04 Pedro Alves <palves@redhat.com>
8404
8405 (%type <voidval>): Add function_method.
8406 * c-exp.y (exp): New production for calls with no arguments.
8407 (function_method, function_method_void_or_typelist): New
8408 productions.
8409 (exp): New production for "method()::static_var".
8410 * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR.
8411 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
8412 Handle OP_FUNC_STATIC_VAR.
8413 * parse.c (operator_length_standard):
8414 Handle OP_FUNC_STATIC_VAR.
8415
8416 2017-09-04 Pedro Alves <palves@redhat.com>
8417
8418 * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS
8419 handling.
8420 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
8421 Ditto.
8422 * parse.c (operator_length_standard, operator_check_standard):
8423 Ditto.
8424 * std-operator.def (UNOP_MEMVAL_TLS): Delete.
8425
8426 2017-09-04 Pedro Alves <palves@redhat.com>
8427
8428 * ax-gdb.c: Include "typeprint.h".
8429 (gen_expr_for_cast): New function.
8430 (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it.
8431 <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's
8432 type is unknown.
8433 * dwarf2read.c (new_symbol_full): Fallback to int instead of
8434 nodebug_data_symbol.
8435 * eval.c: Include "typeprint.h".
8436 (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>:
8437 Error out if symbol has unknown type.
8438 <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to
8439 evaluate_subexp_for_cast.
8440 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle
8441 OP_VAR_MSYM_VALUE.
8442 (evaluate_subexp_for_cast): New function.
8443 * gdbtypes.c (init_nodebug_var_type): New function.
8444 (objfile_type): Use it to initialize types of variables with no
8445 debug info.
8446 * typeprint.c (error_unknown_type): New.
8447 * typeprint.h (error_unknown_type): New declaration.
8448 * compile/compile-c-types.c (convert_type_basic): Handle
8449 TYPE_CODE_ERROR; warn and fallback to int for variables with
8450 unknown type.
8451
8452 2017-09-04 Pedro Alves <palves@redhat.com>
8453
8454 * eval.c (evaluate_var_value): New function, factored out from ...
8455 (evaluate_subexp_standard): ... here.
8456
8457 2017-09-04 Pedro Alves <palves@redhat.com>
8458
8459 * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>:
8460 Remove useless assignments to 'op'.
8461
8462 2017-09-04 Pedro Alves <palves@redhat.com>
8463
8464 * eval.c (eval_skip_value): New function.
8465 (evaluate_subexp_standard): Use it.
8466
8467 2017-09-04 Pedro Alves <palves@redhat.com>
8468
8469 * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract
8470 function name from symbol/minsym and pass it to
8471 error_call_unknown_return_type.
8472
8473 2017-09-04 Pedro Alves <palves@redhat.com>
8474
8475 * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE.
8476 * ax-gdb.c (gen_msym_var_ref): New function.
8477 (gen_expr): Handle OP_VAR_MSYM_VALUE.
8478 * eval.c (evaluate_var_msym_value): New function.
8479 * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE.
8480 <OP_FUNCALL>: Extract function name from symbol/minsym and pass it
8481 to call_function_by_hand.
8482 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
8483 Handle OP_VAR_MSYM_VALUE.
8484 (union exp_element) <msymbol>: New field.
8485 * minsyms.h (struct type): Forward declare.
8486 (find_minsym_type_and_address): Declare.
8487 * parse.c (write_exp_elt_msym): New function.
8488 (write_exp_msymbol): Delete, refactored as ...
8489 (find_minsym_type_and_address): ... this new function.
8490 (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE.
8491 (operator_length_standard, operator_check_standard): Handle
8492 OP_VAR_MSYM_VALUE.
8493 * std-operator.def (OP_VAR_MSYM_VALUE): New.
8494
8495 2017-09-04 Pedro Alves <palves@redhat.com>
8496
8497 * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle
8498 TYPE_GNU_IFUNC specially here. Throw error if return type is
8499 unknown.
8500 * ada-typeprint.c (print_func_type): Handle functions with unknown
8501 return type.
8502 * c-typeprint.c (c_type_print_base): Handle functions and methods
8503 with unknown return type.
8504 * compile/compile-c-symbols.c (convert_symbol_bmsym)
8505 <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol.
8506 * compile/compile-c-types.c: Include "objfiles.h".
8507 (convert_func): For functions with unknown return type, warn and
8508 default to int.
8509 * compile/compile-object-run.c (compile_object_run): Adjust call
8510 to call_function_by_hand_dummy.
8511 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to
8512 call_function_by_hand.
8513 * eval.c (evaluate_subexp_standard): Adjust calls to
8514 call_function_by_hand. Handle functions and methods with unknown
8515 return type. Pass expect_type to call_function_by_hand.
8516 * f-typeprint.c (f_type_print_base): Handle functions with unknown
8517 return type.
8518 * gcore.c (call_target_sbrk): Adjust call to
8519 call_function_by_hand.
8520 * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL
8521 return type instead of int. Make nodebug_text_gnu_ifunc_symbol be
8522 an integer address type instead of nodebug.
8523 * guile/scm-value.c (gdbscm_value_call): Adjust call to
8524 call_function_by_hand.
8525 * infcall.c (error_call_unknown_return_type): New function.
8526 (call_function_by_hand): New "default_return_type" parameter.
8527 Pass it down.
8528 (call_function_by_hand_dummy): New "default_return_type"
8529 parameter. Use it instead of defaulting to int. If there's no
8530 default and the return type is unknown, throw an error. If
8531 there's a default return type, and the called function has no
8532 debug info, then assume the function is prototyped.
8533 * infcall.h (call_function_by_hand, call_function_by_hand_dummy):
8534 New "default_return_type" parameter.
8535 (error_call_unknown_return_type): New declaration.
8536 * linux-fork.c (call_lseek): Cast return type of lseek.
8537 (inferior_call_waitpid, checkpoint_command): Adjust calls to
8538 call_function_by_hand.
8539 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust
8540 calls to call_function_by_hand.
8541 * m2-typeprint.c (m2_procedure): Handle functions with unknown
8542 return type.
8543 * objc-lang.c (lookup_objc_class, lookup_child_selector)
8544 (value_nsstring, print_object_command): Adjust calls to
8545 call_function_by_hand.
8546 * p-typeprint.c (pascal_type_print_varspec_prefix): Handle
8547 functions with unknown return type.
8548 (pascal_type_print_func_varspec_suffix): New function.
8549 (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC,
8550 TYPE_CODE_METHOD>: Use it.
8551 * python/py-value.c (valpy_call): Adjust call to
8552 call_function_by_hand.
8553 * rust-lang.c (rust_evaluate_funcall): Adjust call to
8554 call_function_by_hand.
8555 * valarith.c (value_x_binop, value_x_unop): Adjust calls to
8556 call_function_by_hand.
8557 * valops.c (value_allocate_space_in_inferior): Adjust call to
8558 call_function_by_hand.
8559 * typeprint.c (type_print_unknown_return_type): New function.
8560 * typeprint.h (type_print_unknown_return_type): New declaration.
8561
8562 2017-09-04 Pedro Alves <palves@redhat.com>
8563
8564 * gdbtypes.c (lookup_function_type_with_arguments): Mark function
8565 types with more than one parameter as prototyped.
8566
8567 2017-09-04 Pedro Alves <palves@redhat.com>
8568
8569 * cli/cli-cmds.c (print_disassembly, disassemble_current_function)
8570 (disassemble_command): Use gdb_disassembly_flags instead of bare
8571 int.
8572 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn)
8573 (dump_insns, do_mixed_source_and_assembly_deprecated)
8574 (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly):
8575 Use gdb_disassembly_flags instead of bare int.
8576 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN)
8577 (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME)
8578 (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE)
8579 (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're...
8580 (enum gdb_disassembly_flag): ... values of this new enumeration.
8581 (gdb_disassembly_flags): Define.
8582 (gdb_disassembly)
8583 (gdb_pretty_print_disassembler::pretty_print_insn): Use it.
8584 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use
8585 gdb_disassembly_flags instead of bare int.
8586 * record-btrace.c (btrace_insn_history)
8587 (record_btrace_insn_history, record_btrace_insn_history_range)
8588 (record_btrace_insn_history_from): Use gdb_disassembly_flags
8589 instead of bare int.
8590 * record.c (get_insn_history_modifiers, cmd_record_insn_history):
8591 Use gdb_disassembly_flags instead of bare int.
8592 * target-debug.h (target_debug_print_gdb_disassembly_flags):
8593 Define.
8594 * target-delegates.c: Regenerate.
8595 * target.c (target_insn_history, target_insn_history_from)
8596 (target_insn_history_range): Use gdb_disassembly_flags instead of
8597 bare int.
8598 * target.h: Include "disasm.h".
8599 (struct target_ops) <to_insn_history, to_insn_history_from,
8600 to_insn_history_range>: Use gdb_disassembly_flags instead of bare
8601 int.
8602 (target_insn_history, target_insn_history_from)
8603 (target_insn_history_range): Use gdb_disassembly_flags instead of
8604 bare int.
8605
8606 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
8607
8608 * cli/cli-script.c (build_command_line): For if/while commands,
8609 check whether args is empty.
8610
8611 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
8612
8613 * cli/cli-script.h (enum misc_command_type): Move from defs.h.
8614 (enum command_control_type): Likewise.
8615 (struct command_line): Likewise.
8616 (free_command_lines): Likewise.
8617 (struct command_lines_deleter): Likewise.
8618 (command_line_up): Likewise.
8619 (read_command_lines): Likewise.
8620 (read_command_lines_1): Likewise.
8621 * defs.h (enum misc_command_type): Move to cli/cli-script.h.
8622 (enum command_control_type): Likewise.
8623 (struct command_line): Likewise.
8624 (free_command_lines): Likewise.
8625 (struct command_lines_deleter): Likewise.
8626 (command_line_up): Likewise.
8627 (read_command_lines): Likewise.
8628 (read_command_lines_1): Likewise.
8629 * breakpoint.h: Include cli/cli-script.h.
8630 * extension-priv.h: Likewise.
8631 * gdbcmd.h: Likewise.
8632
8633 2017-09-04 Pedro Alves <palves@redhat.com>
8634
8635 * ada-lang.c (is_known_support_routine): Move sal declaration to
8636 where it is initialized.
8637 * breakpoint.c (create_internal_breakpoint, init_catchpoint)
8638 (parse_breakpoint_sals, decode_static_tracepoint_spec)
8639 (clear_command, update_static_tracepoint): Remove init_sal
8640 references. Move declarations closer to initializations.
8641 * cli/cli-cmds.c (list_command): Move sal declarations closer to
8642 initializations.
8643 * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal
8644 references. Move sal declarations closer to initializations.
8645 * frame.c (find_frame_sal): Return a symtab_and_line via function
8646 return instead of output parameter. Remove init_sal references.
8647 * frame.h (find_frame_sal): Return a symtab_and_line via function
8648 return instead of output parameter.
8649 * guile/scm-frame.c (gdbscm_frame_sal): Adjust.
8650 * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new
8651 instead of memset.
8652 (gdbscm_find_pc_line): Remove init_sal reference.
8653 * infcall.c (call_function_by_hand_dummy): Remove init_sal
8654 references. Move declarations closer to initializations.
8655 * infcmd.c (set_step_frame): Update. Move declarations closer to
8656 initializations.
8657 (finish_backward): Remove init_sal references. Move declarations
8658 closer to initializations.
8659 * infrun.c (process_event_stop_test, handle_step_into_function)
8660 (insert_hp_step_resume_breakpoint_at_frame)
8661 (insert_step_resume_breakpoint_at_caller): Likewise.
8662 * linespec.c (create_sals_line_offset, decode_digits_ordinary)
8663 (symbol_to_sal): Likewise.
8664 * probe.c (parse_probes_in_pspace): Remove init_sal reference.
8665 * python/py-frame.c (frapy_find_sal): Move sal declaration closer
8666 to its initialization.
8667 * reverse.c (save_bookmark_command): Use new/delete. Remove
8668 init_sal references. Move declarations closer to initializations.
8669 * source.c (get_current_source_symtab_and_line): Remove brace
8670 initialization.
8671 (set_current_source_symtab_and_line): Now takes the sal by const
8672 reference. Remove brace initialization.
8673 (line_info): Remove init_sal reference.
8674 * source.h (set_current_source_symtab_and_line): Now takes a
8675 symtab_and_line via const reference.
8676 * stack.c (set_current_sal_from_frame): Adjust.
8677 (print_frame_info): Adjust.
8678 (get_last_displayed_sal): Return the sal via function return
8679 instead of via output parameter. Simplify.
8680 (frame_info): Adjust.
8681 * stack.h (get_last_displayed_sal): Return the sal via function
8682 return instead of via output parameter.
8683 * symtab.c (init_sal): Delete.
8684 (find_pc_sect_line): Remove init_sal references. Move
8685 declarations closer to initializations.
8686 (find_function_start_sal): Remove init_sal references. Move
8687 declarations closer to initializations.
8688 * symtab.h (struct symtab_and_line): In-class initialize all
8689 fields.
8690 * tracepoint.c (set_traceframe_context)
8691 (print_one_static_tracepoint_marker): Remove init_sal references.
8692 Move declarations closer to initializations.
8693 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust.
8694 * tui/tui-stack.c (tui_show_frame_info): Adjust. Move
8695 declarations closer to initializations.
8696 * tui/tui-winsource.c (tui_update_source_window_as_is): Remove
8697 init_sal references. Adjust.
8698
8699 2017-09-04 Pedro Alves <palves@redhat.com>
8700
8701 * ax-gdb.c (agent_command_1): Use range-for.
8702 * break-catch-throw.c (re_set_exception_catchpoint): Update.
8703 * breakpoint.c: Include "common/array-view.h".
8704 (init_breakpoint_sal, create_breakpoint_sal): Change sals
8705 parameter from struct symtabs_and_lines to
8706 array_view<symtab_and_line>. Adjust. Use range-for. Update.
8707 (breakpoint_sals_to_pc): Change sals parameter from struct
8708 symtabs_and_lines to std::vector reference.
8709 (check_fast_tracepoint_sals): Change sals parameter from struct
8710 symtabs_and_lines to std::array_view. Use range-for.
8711 (decode_static_tracepoint_spec): Return a std::vector instead of
8712 symtabs_and_lines. Update.
8713 (create_breakpoint): Update.
8714 (break_range_command, until_break_command, clear_command): Update.
8715 (base_breakpoint_decode_location, bkpt_decode_location)
8716 (bkpt_probe_create_sals_from_location)
8717 (bkpt_probe_decode_location, tracepoint_decode_location)
8718 (tracepoint_probe_decode_location)
8719 (strace_marker_create_sals_from_location): Return a std::vector
8720 instead of symtabs_and_lines.
8721 (strace_marker_create_breakpoints_sal): Update.
8722 (strace_marker_decode_location): Return a std::vector instead of
8723 symtabs_and_lines. Update.
8724 (update_breakpoint_locations): Change struct symtabs_and_lines
8725 parameters to gdb::array_view. Adjust.
8726 (location_to_sals): Return a std::vector instead of
8727 symtabs_and_lines. Update.
8728 (breakpoint_re_set_default): Use std::vector instead of struct
8729 symtabs_and_lines.
8730 (decode_location_default): Return a std::vector instead of
8731 symtabs_and_lines. Update.
8732 * breakpoint.h: Include "common/array-view.h".
8733 (struct breakpoint_ops) <decode_location>: Now returns a
8734 std::vector instead of returning a symtabs_and_lines via output
8735 parameter.
8736 (update_breakpoint_locations): Change sals parameters to use
8737 gdb::array_view.
8738 * cli/cli-cmds.c (edit_command, list_command): Update to use
8739 std::vector and gdb::array_view.
8740 (ambiguous_line_spec): Adjust to use gdb::array_view and
8741 range-for.
8742 (compare_symtabs): Rename to ...
8743 (cmp_symtabs): ... this. Change parameters to symtab_and_line
8744 const reference and adjust.
8745 (filter_sals): Rewrite using std::vector and standard algorithms.
8746 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify.
8747 (jump_command): Update to use std::vector.
8748 * linespec.c (struct linespec_state) <canonical_names>: Update
8749 comment.
8750 (add_sal_to_sals_basic): Delete.
8751 (add_sal_to_sals, filter_results, convert_results_to_lsals)
8752 (decode_line_2, create_sals_line_offset)
8753 (convert_address_location_to_sals, convert_linespec_to_sals)
8754 (convert_explicit_location_to_sals, parse_linespec)
8755 (event_location_to_sals, decode_line_full, decode_line_1)
8756 (decode_line_with_current_source)
8757 (decode_line_with_last_displayed, decode_objc)
8758 (decode_digits_list_mode, decode_digits_ordinary, minsym_found)
8759 (linespec_result::~linespec_result): Adjust to use std::vector
8760 instead of symtabs_and_lines.
8761 * linespec.h (linespec_sals::sals): Now a std::vector.
8762 (struct linespec_result): Use std::vector, bool, and in-class
8763 initialization.
8764 (decode_line_1, decode_line_with_current_source)
8765 (decode_line_with_last_displayed): Return std::vector.
8766 * macrocmd.c (info_macros_command): Use std::vector.
8767 * mi/mi-main.c (mi_cmd_trace_find): Use std::vector.
8768 * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use
8769 std::vector.
8770 * probe.h (parse_probes): Return a std::vector.
8771 * python/python.c (gdbpy_decode_line): Use std::vector and
8772 gdb::array_view.
8773 * source.c (select_source_symtab, line_info): Use std::vector.
8774 * stack.c (func_command): Use std::vector.
8775 * symtab.h (struct symtabs_and_lines): Delete.
8776 * tracepoint.c (tfind_line_command, scope_info): Use std::vector.
8777
8778 2017-09-04 Pedro Alves <palves@redhat.com>
8779
8780 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8781 unittests/array-view-selftests.c.
8782 (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o.
8783 * common/array-view.h: New file.
8784 * unittests/array-view-selftests.c: New file.
8785
8786 2017-09-04 Pedro Alves <palves@redhat.com>
8787
8788 * cli/cli-cmds.c (edit_command): Pass message to
8789 ambiguous_line_spec.
8790 (list_command): Pass message to ambiguous_line_spec. Say
8791 "first"/"last" instead of "start" and "end" to be consistent with
8792 the manual.
8793 (ambiguous_line_spec): Add 'format' and vararg parameters. Use
8794 them to print formatted message.
8795
8796 2017-09-04 Pedro Alves <palves@redhat.com>
8797
8798 * btrace.c (ftrace_add_pt): Pass btrace_insn to
8799 ftrace_update_insns by reference instead of pointer.
8800
8801 2017-09-04 Yao Qi <yao.qi@linaro.org>
8802
8803 * i386-go32-tdep.c: Include x86-xstate.h.
8804 (i386_go32_init_abi): Call i386_target_description.
8805 * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx
8806 if xcr0 is X86_XSTATE_X87_MASK.
8807 * i386-tdep.h (tdesc_i386): Remove the declaration.
8808 (tdesc_i386_mmx): Likewise.
8809
8810 2017-09-04 Yao Qi <yao.qi@linaro.org>
8811
8812 * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return
8813 X86_XSTATE_SSE_MASK instead of 0.
8814
8815 2017-09-04 Yao Qi <yao.qi@linaro.org>
8816
8817 * amd64-fbsd-nat.c (amd64fbsd_read_description): Call
8818 i386_target_description.
8819 * i386-fbsd-nat.c (i386fbsd_read_description): Call
8820 i386_target_description.
8821 * i386-tdep.c (i386_gdbarch_init): Likewise.
8822
8823 2017-09-04 Yao Qi <yao.qi@linaro.org>
8824
8825 * amd64-darwin-tdep.c: Include "x86-xstate.h".
8826 (x86_darwin_init_abi_64): Call amd64_target_description.
8827 * amd64-dicos-tdep.c: Likewise.
8828 * amd64-fbsd-nat.c: Likewise.
8829 * amd64-fbsd-tdep.c: Likewise.
8830 * amd64-nbsd-tdep.c: Likewise.
8831 * amd64-obsd-tdep.c: Likewise.
8832 * amd64-sol2-tdep.c: Likewise.
8833 * amd64-windows-tdep.c: Likewise.
8834 * amd64-tdep.h (tdesc_amd64): Remove the declaration.
8835
8836 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
8837
8838 * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove.
8839 (btrace_function) <insn>: Change type to use std::vector.
8840 * btrace.c (ftrace_debug, ftrace_call_num_insn,
8841 ftrace_find_call, ftrace_new_gap, ftrace_update_function,
8842 ftrace_update_insns, ftrace_compute_global_level_offset,
8843 btrace_stitch_bts, btrace_clear, btrace_insn_get,
8844 btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to
8845 change to std::vector.
8846 (ftrace_update_insns): Adjust to change to std::vector, change
8847 type of INSN parameter.
8848 (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns.
8849 * record-btrace.c (btrace_call_history_insn_range,
8850 btrace_compute_src_line_range,
8851 record_btrace_frame_prev_register): Adjust to change to
8852 std::vector.
8853 * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust
8854 to change to std::vector.
8855
8856 2017-09-03 Tom Tromey <tom@tromey.com>
8857
8858 * corefile.c (reopen_exec_file): Use std::string.
8859
8860 2017-09-03 Tom Tromey <tom@tromey.com>
8861
8862 * compile/compile.c (compile_register_name_mangled): Return
8863 std::string.
8864 * compile/compile-loc2c.c (pushf_register_address): Update.
8865 (pushf_register): Update.
8866 * compile/compile-c-types.c (convert_array): Update.
8867 * compile/compile-c-symbols.c (generate_vla_size): Update.
8868 (error_symbol_once): Use a gdb::unique_xmalloc_ptr.
8869 (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr.
8870 (convert_one_symbol): Update.
8871 (generate_c_for_for_one_variable): Update.
8872 * compile/compile-c-support.c (c_get_range_decl_name): Return a
8873 std::string.
8874 (generate_register_struct): Update.
8875 * compile/compile-internal.h (c_get_range_decl_name): Return a
8876 std::string.
8877 (compile_register_name_mangled): Return std::string.
8878
8879 2017-09-03 Tom Tromey <tom@tromey.com>
8880
8881 * utils.c (perror_string): Return a std::string.
8882 (throw_perror_with_name, perror_warning_with_name): Update.
8883
8884 2017-09-03 Tom Tromey <tom@tromey.com>
8885
8886 * demangle.c (demangle_command): Use std::string,
8887 unique_xmalloc_ptr.
8888
8889 2017-09-03 Tom Tromey <tom@tromey.com>
8890
8891 * cli/cli-setshow.c (do_set_command): Use std::string.
8892
8893 2017-09-03 Tom Tromey <tom@tromey.com>
8894
8895 * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr.
8896
8897 2017-09-03 Tom Tromey <tom@tromey.com>
8898
8899 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string.
8900
8901 2017-09-03 Tom Tromey <tom@tromey.com>
8902
8903 * mi/mi-cmd-env.c (env_execute_cli_command): Use
8904 gdb::unique_xmalloc_ptr.
8905
8906 2017-09-03 Tom Tromey <tom@tromey.com>
8907
8908 * thread.c (print_thread_info_1): Use string_printf.
8909 (thread_apply_command, thread_apply_all_command): Use
8910 std::string.
8911
8912 2017-09-03 Tom Tromey <tom@tromey.com>
8913
8914 * valprint.c (val_print_string): Update.
8915 * gdbcore.h (memory_error_message): Return std::string.
8916 * corefile.c (memory_error_message): Return std::string.
8917 (memory_error): Update.
8918 * breakpoint.c (insert_bp_location): Update.
8919
8920 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
8921
8922 * target/waitstatus.h (target_waitstatus_to_string): Change
8923 return type to std::string.
8924 * target/waitstatus.c (target_waitstatus_to_string): Return
8925 std::string.
8926 * target.h (target_waitstatus_to_string): Remove declaration.
8927 * infrun.c (resume, clear_proceed_status_thread,
8928 print_target_wait_results, do_target_wait, save_waitstatus,
8929 stop_all_threads): Adjust.
8930 * record-btrace.c (record_btrace_wait): Adjust.
8931 * target-debug.h
8932 (target_debug_print_struct_target_waitstatus_p): Adjust.
8933
8934 2017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8935
8936 PR gdb/22046
8937 * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED
8938 detection.
8939
8940 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
8941
8942 * NEWS (Changes since GDB 8.0): Add entry mentioning new support
8943 for setting/unsetting environment variables on the remote target.
8944 (New remote packets): Add entries for QEnvironmentHexEncoded,
8945 QEnvironmentUnset and QEnvironmentReset.
8946 * common/environ.c (gdb_environ::operator=): Extend method to
8947 handle m_user_set_env_list and m_user_unset_env_list.
8948 (gdb_environ::clear): Likewise.
8949 (match_var_in_string): Change type of first parameter from 'char
8950 *' to 'const char *'.
8951 (gdb_environ::set): Extend method to handle
8952 m_user_set_env_list and m_user_unset_env_list.
8953 (gdb_environ::unset): Likewise.
8954 (gdb_environ::clear_user_set_env): New method.
8955 (gdb_environ::user_set_envp): Likewise.
8956 (gdb_environ::user_unset_envp): Likewise.
8957 * common/environ.h (gdb_environ): Handle m_user_set_env_list and
8958 m_user_unset_env_list on move constructor/assignment.
8959 (unset): Add new default parameter 'update_unset_list = true'.
8960 (clear_user_set_env): New method.
8961 (user_set_envp): Likewise.
8962 (user_unset_envp): Likewise.
8963 (m_user_set_env_list): New std::set.
8964 (m_user_unset_env_list): Likewise.
8965 * common/rsp-low.c (hex2str): New function.
8966 (bin2hex): New overload for bin2hex function.
8967 * common/rsp-low.c (hex2str): New prototype.
8968 (str2hex): New overload prototype.
8969 * remote.c: Include "environ.h". Add QEnvironmentHexEncoded,
8970 QEnvironmentUnset and QEnvironmentReset.
8971 (remote_protocol_features): Add QEnvironmentHexEncoded,
8972 QEnvironmentUnset and QEnvironmentReset packets.
8973 (send_environment_packet): New function.
8974 (extended_remote_environment_support): Likewise.
8975 (extended_remote_create_inferior): Call
8976 extended_remote_environment_support.
8977 (_initialize_remote): Add QEnvironmentHexEncoded,
8978 QEnvironmentUnset and QEnvironmentReset packet configs.
8979 * unittests/environ-selftests.c (gdb_selftest_env_var):
8980 New variable.
8981 (test_vector_initialization): New function.
8982 (test_init_from_host_environ): Likewise.
8983 (test_reinit_from_host_environ): Likewise.
8984 (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B):
8985 Likewise.
8986 (test_unset_set_empty_vector): Likewise.
8987 (test_vector_clear): Likewise.
8988 (test_std_move): Likewise.
8989 (test_move_constructor):
8990 (test_self_move): Likewise.
8991 (test_set_unset_reset): Likewise.
8992 (run_tests): Rewrite in terms of the functions above.
8993
8994 2017-08-31 Weimin Pan <weimin.pan@oracle.com>
8995
8996 * sparc64-tdep.c (adi_stat_t): Fix comment formatting.
8997 (adi_available): Use a temp variable of type CORE_ADDR as argument
8998 3 when calling target_auxv_search.
8999 (adi_normalize_address): Use masks and xor operators to calculate
9000 normalized address.
9001 (adi_read_versions, adi_write_versions, adi_print_versions)
9002 (do_examine, do_assign): Use paddress.
9003
9004 2017-08-29 John Baldwin <jhb@FreeBSD.org>
9005
9006 * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR.
9007 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR
9008 out of loop and add supply of FIR.
9009 (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and
9010 add collect of FIR.
9011
9012 2017-08-28 Simon Marchi <simon.marchi@ericsson.com>
9013
9014 PR gdb/21827
9015 * cli/cli-script.c (define_command): Don't convert command name
9016 to lower case.
9017
9018 2017-08-25 Joel Brobecker <brobecker@adacore.com>
9019
9020 * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp".
9021 Update all callers accordingly. Remove all code blocks handling
9022 the case where DISPP is not NULL.
9023
9024 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9025
9026 PR symtab/22003
9027 * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow)
9028 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
9029 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const.
9030
9031 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9032
9033 * dwarf2read.c (build_type_psymtabs_reader): New prototype.
9034 (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES.
9035 (read_comp_units_from_section): New parameter abbrev_section, use
9036 read_and_check_comp_unit_head, allocate signatured_type if needed.
9037 (create_all_comp_units): Update read_comp_units_from_section caller.
9038
9039 2017-08-23 Pedro Alves <palves@redhat.com>
9040
9041 PR remote/21852
9042 * remote.c (add_current_inferior_and_thread): Set inferior_ptid
9043 to null_ptid and switch to thread without reading the registers
9044 after adding the inferior.
9045
9046 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9047
9048 * NEWS (Changes since GDB 8.0): Add set compile-gcc and show
9049 compile-gcc.
9050 * compile/compile.c (compile_gcc, show_compile_gcc): New.
9051 (compile_to_object): Implement compile_gcc.
9052 (_initialize_compile): Install "set compile-gcc". Initialize
9053 compile_gcc.
9054
9055 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9056
9057 * compile/compile.c (compile_to_object): Conditionally call
9058 set_verbose. Conditionally call compile or compile_v0.
9059
9060 2017-08-07 Weimin Pan <weimin.pan@oracle.com>
9061
9062 * sparc64-tdep.h: (adi_normalize_address): New export.
9063 * sparc-nat.h: (open_adi_tag_fd): New export.
9064 * sparc64-linux-nat.c: (open_adi_tag_fd): New function.
9065 * sparc64-linux-tdep.c:
9066 (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines.
9067 (sparc64_linux_handle_segmentation_fault): New function.
9068 (sparc64_linux_init_abi): Register
9069 sparc64_linux_handle_segmentation_fault
9070 * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h.
9071 (sparc64_addr_bits_remove): New function.
9072 (sparc64_init_abi): Register sparc64_addr_bits_remove.
9073 (MAX_PROC_NAME_SIZE): New macro.
9074 (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines.
9075 (sparc64adilist): New variable.
9076 (adi_proc_list): New variable.
9077 (find_adi_info): New function.
9078 (add_adi_info): New function.
9079 (get_adi_info_proc): New function.
9080 (get_adi_info): New function.
9081 (info_adi_command): New function.
9082 (read_maps_entry): New function.
9083 (adi_available): New function.
9084 (adi_normalize_address): New function.
9085 (adi_align_address): New function.
9086 (adi_convert_byte_count): New function.
9087 (adi_tag_fd): New function.
9088 (adi_is_addr_mapped): New function.
9089 (adi_read_versions): New function.
9090 (adi_write_versions): New function.
9091 (adi_print_versions): New function.
9092 (do_examine): New function.
9093 (do_assign): New function.
9094 (adi_examine_command): New function.
9095 (adi_assign_command): New function.
9096 (_initialize_sparc64_adi_tdep): New function.
9097
9098 2017-08-22 Simon Marchi <simon.marchi@ericsson.com>
9099
9100 * breakpoint.c (breakpoints_info): Rename to ...
9101 (info_breakpoints_command): ... this.
9102 (watchpoints_info): Rename to ...
9103 (info_watchpoints_command): ... this.
9104 (tracepoints_info): Rename to ...
9105 (info_tracepoints_command): ... this.
9106 (_initialize_breakpoint): Adjust.
9107 * dcache.c (dcache_info): Rename to ...
9108 (info_display_command): ... this.
9109 (_initialize_dcache): Adjust.
9110 * frame.h (args_info): Rename to ...
9111 (info_args_command): ... this.
9112 (locals_info): Rename to ...
9113 (info_locals_command): ... this.
9114 * infcmd.c (nofp_registers_info): Rename to ...
9115 (info_registers_command): ... this.
9116 (float_info): Rename to ...
9117 (info_float_command): ... this.
9118 (program_info): Rename to ...
9119 (info_program_command): ... this.
9120 (all_registers_info): Rename to ...
9121 (info_all_registers_command): ... this.
9122 (vector_info): Rename to ...
9123 (info_vector_command): ... this.
9124 (float_info): Rename to ...
9125 (info_float_command): ... this.
9126 (_initialize_infcmd): Adjust.
9127 * inferior.h (term_info): Rename to ...
9128 (info_terminal_command): ... this.
9129 * inflow.c (term_info): Rename to ...
9130 (info_terminal_command): ... this.
9131 (_initialize_inflow): Adjust.
9132 * infrun.c (signals_info): Rename to ...
9133 (info_signals_command): ... this.
9134 (_initialize_infrun): Adjust.
9135 * objc-lang.c (classes_info): Rename to ...
9136 (info_classes_command): ... this.
9137 (selectors_info): Rename to ...
9138 (info_selectors_command): ... this.
9139 (_initialize_objc_language): Adjust.
9140 * printcmd.c (sym_info): Rename to ...
9141 (info_symbol_command): ... this.
9142 (address_info): Rename to ...
9143 (info_address_command): ... this.
9144 (display_info): Rename to ...
9145 (info_display_command): ... this.
9146 (_initialize_printcmd): Adjust.
9147 * reverse.c (bookmarks_info): Rename to ...
9148 (info_breakpoints_command): ... this.
9149 (_initialize_reverse): Adjust.
9150 * ser-go32.c (dos_info): Rename to ...
9151 (info_serial_command): ... this.
9152 (_initialize_ser_dos): Adjust.
9153 * skip.c (skip_info): Rename to ...
9154 (info_skip_command): ... this.
9155 (_initialize_step_skip): Adjust.
9156 * source.c (line_info): Rename to ...
9157 (info_line_command): ... this.
9158 (source_info): Rename to ...
9159 (info_source_command)
9160 * stack.c (frame_info): Rename to ...
9161 (info_frame_command): ... this.
9162 (locals_info): Rename to ...
9163 (info_locals_command): ... this.
9164 (args_info): Rename to ...
9165 (info_args_command): ... this.
9166 (_initialize_stack): Adjust.
9167 * symtab.c (sources_info): Rename to ...
9168 (info_sources_command): ... this.
9169 (variables_info): Rename to ...
9170 (info_variables_command): ... this.
9171 (functions_info): Rename to ...
9172 (info_functions_command): ... this.
9173 (types_info): Rename to ...
9174 (info_types_command): ... this.
9175 (_initialize_symtab): Adjust.
9176 * target.c (target_info): Rename to ...
9177 (info_target_command): ... this.
9178 (initialize_targets): Adjust.
9179 * tracepoint.c (tvariables_info): Rename to ...
9180 (info_tvariables_command): ... this.
9181 (scope_info): Rename to ...
9182 (info_scope_command): ... this.
9183 (trace_dump_actions): Adjust.
9184 (_initialize_tracepoint): Adjust.
9185
9186 2017-08-22 Tom Tromey <tom@tromey.com>
9187
9188 * breakpoint.h (install_breakpoint): Update.
9189 * breakpoint.c (add_solib_catchpoint): Update.
9190 (install_breakpoint): Change argument to a std::unique_ptr.
9191 (create_fork_vfork_event_catchpoint): Use std::unique_ptr.
9192 (create_breakpoint_sal, create_breakpoint): Update.
9193 (watch_command_1, catch_exec_command_1)
9194 (strace_marker_create_breakpoints_sal): Use std::unique_ptr.
9195 (add_to_breakpoint_chain): Change argument to a std::unique_ptr.
9196 Return the breakpoint.
9197 (set_raw_breakpoint_without_location, set_raw_breakpoint)
9198 (new_single_step_breakpoint): Update.
9199 * break-catch-throw.c (handle_gnu_v3_exceptions): Use
9200 std::unique_ptr.
9201 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
9202 std::unique_ptr.
9203 * break-catch-sig.c (create_signal_catchpoint): Use
9204 std::unique_ptr.
9205 * ada-lang.c (create_ada_exception_catchpoint): Use
9206 std::unique_ptr.
9207
9208 2017-08-22 Tom Tromey <tom@tromey.com>
9209
9210 * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr.
9211
9212 2017-08-22 Tom Tromey <tom@tromey.com>
9213
9214 * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr.
9215 (lookup_partial_symbol): Update.
9216
9217 2017-08-22 Tom Tromey <tom@tromey.com>
9218
9219 * source.h (rewrite_source_path): Return a unique_xmalloc_ptr.
9220 * source.c (rewrite_source_path): Return a unique_xmalloc_ptr.
9221 (find_and_open_source, symtab_to_fullname): Update.
9222 * psymtab.c (psymtab_to_fullname): Update.
9223
9224 2017-08-22 Tom Tromey <tom@tromey.com>
9225
9226 * exec.c (exec_file_attach): Update.
9227 * linux-thread-db.c (try_thread_db_load): Update.
9228 * guile/scm-safe-call.c (gdbscm_safe_source_script): Update.
9229 * utils.c (gdb_realpath): Change return type.
9230 (gdb_realpath_keepfile): Update.
9231 (gdb_realpath_check_trailer, gdb_realpath_tests): New functions.
9232 (_initialize_utils): Register the new self test.
9233 * source.c (openp): Update.
9234 (find_and_open_source): Update.
9235 * nto-tdep.c (nto_find_and_open_solib): Update.
9236 * main.c (set_gdb_data_directory): Update.
9237 (captured_main_1): Update.
9238 * dwarf2read.c (dwarf2_get_dwz_file): Update
9239 (dw2_map_symbol_filenames): Update.
9240 * auto-load.c (auto_load_safe_path_vec_update): Update.
9241 (filename_is_in_auto_load_safe_path_vec): Change type of
9242 "filename_realp".
9243 (auto_load_objfile_script): Update.
9244 (file_is_auto_load_safe): Update. Use std::string.
9245 * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr.
9246
9247 2017-08-22 Tom Tromey <tom@tromey.com>
9248
9249 * utils.c (gdb_realpath_keepfile): Return a
9250 gdb::unique_xmalloc_ptr.
9251 * exec.c (exec_file_attach): Update.
9252 * utils.h (gdb_realpath_keepfile): Return a
9253 gdb::unique_xmalloc_ptr.
9254
9255 2017-08-22 Tom Tromey <tom@tromey.com>
9256
9257 * compile/compile.c (compile_file_command): Use
9258 gdb::unique_xmalloc_ptr, std::string.
9259 * utils.c (gdb_abspath): Change return type.
9260 * source.c (openp): Update.
9261 * objfiles.c (allocate_objfile): Update.
9262 * main.c (set_gdb_data_directory): Update.
9263 * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr.
9264
9265 2017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com>
9266
9267 * cli-cmds.c (list_commands): List actual code around more than
9268 one location.
9269
9270 2017-08-21 John Baldwin <jhb@FreeBSD.org>
9271
9272 * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'.
9273
9274 2017-08-21 Pedro Alves <palves@redhat.com>
9275
9276 PR gdb/19487
9277 * c-exp.y (variable production): Handle function aliases.
9278 * minsyms.c (msymbol_is_text): New function.
9279 * minsyms.h (msymbol_is_text): Declare.
9280 * symtab.c (find_function_alias_target): New function.
9281 * symtab.h (find_function_alias_target): Declare.
9282
9283 2017-08-21 Pedro Alves <palves@redhat.com>
9284
9285 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past
9286 typedefs.
9287 * typeprint.c (whatis_exp): If handling "whatis", and expression
9288 is OP_TYPE, strip one typedef level. Otherwise don't strip
9289 typedefs here.
9290 * valops.c (value_cast): Save "to" type before resolving
9291 stubs/typedefs. Use that type as resulting value's type.
9292
9293 2017-08-18 Tom Tromey <tom@tromey.com>
9294 Pedro Alves <palves@redhat.com>
9295
9296 * spu-multiarch.c (parse_spufs_run): Use scoped_restore.
9297 * sol-thread.c (sol_thread_resume, sol_thread_wait)
9298 (sol_thread_xfer_partial, rw_common): Use scoped_restore.
9299 * procfs.c (procfs_do_thread_registers): Use scoped_restore.
9300 * proc-service.c (ps_xfer_memory): Use scoped_restore.
9301 * linux-tdep.c (linux_corefile_thread): Remove a cleanup.
9302 (linux_get_siginfo_data): Add "thread" argument. Use
9303 scoped_restore.
9304 * linux-nat.c (linux_child_follow_fork)
9305 (check_stopped_by_watchpoint): Use scoped_restore.
9306 * infrun.c (displaced_step_prepare_throw, write_memory_ptid)
9307 (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore.
9308 (restore_inferior_ptid, save_inferior_ptid): Remove.
9309 * btrace.c (btrace_fetch): Use scoped_restore.
9310 * bsd-uthread.c (bsd_uthread_fetch_registers)
9311 (bsd_uthread_store_registers): Use scoped_restore.
9312 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
9313 scoped_restore.
9314 * aix-thread.c (aix_thread_resume, aix_thread_wait)
9315 (aix_thread_xfer_partial): Use scoped_restore.
9316 * inferior.h (save_inferior_ptid): Remove.
9317
9318 2017-08-18 Yao Qi <yao.qi@linaro.org>
9319
9320 PR tdep/21818
9321 * arm-tdep.c (gdb_print_insn_arm): Mark
9322 USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL.
9323
9324 2017-08-18 Yao Qi <yao.qi@linaro.org>
9325
9326 * NEWS: Mention GDBserver's new option "--selftest".
9327 * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c.
9328 * selftest.c: Move it to common/selftest.c.
9329 * selftest.h: Move it to common/selftest.h.
9330 * selftest-arch.c (reset): New function.
9331 (tests_with_arch): Call reset.
9332
9333 2017-08-18 Yao Qi <yao.qi@linaro.org>
9334
9335 * selftest.c (run_tests): Don't call QUIT. Call debug_printf
9336 instead of exception_fprintf and printf_filtered.
9337
9338 2017-08-18 Yao Qi <yao.qi@linaro.org>
9339
9340 * selftest.c (register_self_test): Rename it to
9341 selftests::register_test.
9342 (run_self_tests): selftest::run_tests.
9343 * selftest.h: Update declarations.
9344 * selftest-arch.c (register_self_test_foreach_arch): Rename it to
9345 selftests::register_test_foreach_arch.
9346 * selftest-arch.h: Update declaration.
9347 * aarch64-tdep.c: Update.
9348 * arm-tdep.c: Likewise.
9349 * disasm-selftests.c: Likewise.
9350 * dwarf2loc.c: Likewise.
9351 * dwarf2-frame.c: Likewise.
9352 * findvar.c: Likewise.
9353 * gdbarch-selftests.c: Likewise.
9354 * maint.c (maintenance_selftest): Likewise.
9355 * regcache.c: Likewise.
9356 * rust-exp.y: Likewise.
9357 * selftest-arch.c: Likewise.
9358 * unittests/environ-selftests.c: Likewise.
9359 * unittests/function-view-selftests.c: Likewise.
9360 * unittests/offset-type-selftests.c: Likewise.
9361 * unittests/optional-selftests.c: Likewise.
9362 * unittests/scoped_restore-selftests.c: Likewise.
9363 * utils-selftests.c: Likewise.
9364
9365 2017-08-17 Pedro Alves <palves@redhat.com>
9366
9367 * cli/cli-cmds.c (source_command): Delete 'old_source_verbose'
9368 local.
9369
9370 2017-08-17 Pedro Alves <palves@redhat.com>
9371
9372 * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New
9373 field.
9374 (reset_die_in_process): Delete, replaced by ...
9375 (process_die_scope): ... this new class. Make it responsible for
9376 freeing cu->line_header too.
9377 (process_die): Use process_die_scope.
9378 (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in
9379 cu->line_header_die_owner. Don't release the line header if it's
9380 owned by the CU.
9381 (setup_type_unit_groups): Make the CU/DIE own the line header.
9382 Don't release the line header here.
9383
9384 2017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change)
9385
9386 * elfread.c (elf_read_minimal_symbols): xfree synthsyms.
9387
9388 2017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com>
9389
9390 * NEWS: Mention new shortcuts for nexti and stepi in TUI
9391 Single-Key mode
9392
9393 2017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com>
9394
9395 * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key
9396 mode command list.
9397
9398 2017-08-15 Stafford Horne <shorne@gmail.com>
9399
9400 * MAINTAINERS (Write After Approval): Add Stafford Horne.
9401
9402 2017-08-15 Stafford Horne <shorne@gmail.com>
9403
9404 * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname.
9405
9406 2017-08-15 Sergio Durigan Junior <sergiodj@redhat.com>
9407
9408 PR gdb/21954
9409 * infcmd.c (unset_environment_command): Use the 'clear' method on
9410 the environment instead of resetting it.
9411
9412 2017-08-15 John Baldwin <jhb@FreeBSD.org>
9413
9414 * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian
9415 platforms.
9416
9417 2017-08-14 Tom Tromey <tom@tromey.com>
9418
9419 * valprint.c (print_octal_chars): Use HOST_CHAR_BIT.
9420 (print_binary_chars): Likewise.
9421 (BITS_IN_BYTES): Remove.
9422
9423 2017-08-14 Tom Tromey <tom@tromey.com>
9424
9425 PR gdb/21675
9426 * valprint.c (LOW_ZERO): Change value to 034.
9427 (print_octal_chars): Add static_asserts for octal constants.
9428 * printcmd.c (print_scalar_formatted): Add 'd' case.
9429
9430 2017-08-11 Tom Tromey <tom@tromey.com>
9431
9432 * symfile.c (add_symbol_file_command): Use std::vector.
9433
9434 2017-08-14 Tom Tromey <tom@tromey.com>
9435
9436 * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move.
9437 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
9438 std::move.
9439 * break-catch-sig.c (create_signal_catchpoint): Use std::move.
9440
9441 2017-08-11 Pedro Alves <palves@redhat.com>
9442
9443 * infrun.c (process_event_stop_test): Adjust
9444 function_name_is_marked_for_skip call.
9445 * skip.c: Include <list>.
9446 (skiplist_entry): Make it a class with private fields, and
9447 getters/setters.
9448 (skiplist_entry_chain): Delete.
9449 (skiplist_entries): New.
9450 (skiplist_entry_count): Delete.
9451 (highest_skiplist_entry_num): New.
9452 (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete.
9453 (add_skiplist_entry): Delete.
9454 (skiplist_entry::skiplist_entry): New.
9455 (skiplist_entry::add_entry): New.
9456 (skip_file_command, skip_function): Adjust.
9457 (compile_skip_regexp): Delete.
9458 (skip_command): Don't compile regexp here. Adjust to use
9459 skiplist_entry::add_entry.
9460 (skip_info): Adjust to use range-for and getters.
9461 (skip_enable_command, skip_disable_command): Adjust to use
9462 range-for and setters.
9463 (skip_delete_command): Adjust to use std::list.
9464 (add_skiplist_entry): Delete.
9465 (skip_file_p): Delete, refactored as ...
9466 (skiplist_entry::do_skip_file_p): ... this new method.
9467 (skip_gfile_p): Delete, refactored as ...
9468 (skiplist_entry::do_gskip_file_p): ... this new method.
9469 (skip_function_p, skip_rfunction_p): Delete, refactored as ...
9470 (skiplist_entry::skip_function_p): ... this new method.
9471 (function_name_is_marked_for_skip): Now returns bool, and takes
9472 the function sal by const reference. Adjust to use range-for and
9473 skiplist_entry methods.
9474 (_initialize_step_skip): Remove references to
9475 skiplist_entry_chain, skiplist_entry_count.
9476 * skip.h (function_name_is_marked_for_skip): Now returns bool, and
9477 takes the function sal by const reference.
9478
9479 2017-08-11 Yao Qi <yao.qi@linaro.org>
9480
9481 * dwarf2-frame.c (clear_pointer_cleanup): Remove.
9482 (dwarf2_frame_cache): Remove reset_cache_cleanup.
9483 (dwarf2_frame_cache):
9484 * frame-unwind.c (frame_unwind_try_unwinder): Catch
9485 RETURN_MASK_ALL and set *this_case to NULL.
9486 * frame-unwind.h: Update comments.
9487
9488 2017-08-11 Yao Qi <yao.qi@linaro.org>
9489
9490 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove.
9491 (dwarf2_frame_state_copy_regs): Remove.
9492 (dwarf2_frame_state_free_regs): Remove.
9493 (dwarf2_frame_state::~dwarf2_frame_state): Remove.
9494 (dwarf2_restore_rule): Call method .alloc_regs instead of
9495 dwarf2_frame_state_alloc_regs.
9496 (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info
9497 constructor. Call std::move.
9498 (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs.
9499 (dwarf2_frame_cache): Likewise.
9500
9501 [GDB_SELF_TEST]: Include selftest.h and
9502 selftest-arch.h.
9503 [GDB_SELF_TEST] (execute_cfa_program_test): New function.
9504 (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register
9505 execute_cfa_program_test.
9506
9507 * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor,
9508 copy ctor, assignment operator, move assignment.
9509 <alloc_regs>: New method.
9510 <swap>: New method.
9511 (struct dwarf2_frame_state): Delete dtor.
9512 (dwarf2_frame_state_alloc_regs): Remove declaration.
9513 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call
9514 dwarf2_frame_state_alloc_regs, use .alloc_regs instead.
9515
9516 2017-08-11 Yao Qi <yao.qi@linaro.org>
9517
9518 * dwarf2-frame.c (dwarf2_frame_state_free): Remove.
9519 (dwarf2_frame_state::dwarf2_frame_state): New.
9520 (dwarf2_frame_state::~dwarf2_frame_state): New.
9521 (dwarf2_fetch_cfa_info): Update.
9522 (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object
9523 rather than a pointer. Update code.
9524 * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and
9525 dtor.
9526 <data_align, code_align, retaddr_column>: Change them to const.
9527 <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them
9528 to bool.
9529
9530 2017-08-11 Yao Qi <yao.qi@linaro.org>
9531
9532 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove.
9533 <loc.exp>: New field.
9534 * dwarf2-frame.c (execute_cfa_program): Update.
9535 (dwarf2_frame_prev_register): Update.
9536
9537 2017-08-10 Pedro Alves <palves@redhat.com>
9538
9539 * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define.
9540
9541 2017-08-09 John Baldwin <jhb@FreeBSD.org>
9542
9543 * fbsd-nat.c (struct fbsd_fork_info): Remove.
9544 (fbsd_pending_children): Use std::list.
9545 (fbsd_remember_child): Likewise.
9546 (fbsd_is_child_pending): Likewise.
9547 (fbsd_pending_vfork_done): Use std::forward_list.
9548 (fbsd_add_vfork_done): Likewise.
9549 (fbsd_is_vfork_done_pending): Likewise.
9550 (fbsd_next_vfork_done): Likewise.
9551
9552 2017-08-09 John Baldwin <jhb@FreeBSD.org>
9553
9554 * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New.
9555 (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr.
9556 [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string
9557 for `mapfilename'.
9558 (fbsd_xfer_partial): Use gdb::byte_vector.
9559 (fbsd_add_threads): Use gdb::unique_xmalloc_ptr.
9560
9561 2017-08-09 John Baldwin <jhb@FreeBSD.org>
9562
9563 * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and
9564 "filestuff.h".
9565 (fbsd_find_memory_regions): Fix `mapfile' initialization.
9566
9567 2017-08-09 Tom Tromey <tom@tromey.com>
9568
9569 * skip.c (skiplist_entry): New constructor.
9570 (skiplist_entry::enabled, skiplist_entry::function_is_regexp)
9571 (skiplist_entry::file_is_glob): Now bool.
9572 (skiplist_entry::file, skiplist_entry::function): Now
9573 std::string.
9574 (make_skip_entry): Return a unique_ptr. Use new.
9575 (free_skiplist_entry, free_skiplist_entry_cleanup)
9576 (make_free_skiplist_entry_cleanup): Remove.
9577 (skip_command, skip_disable_command, add_skiplist_entry)
9578 (skip_form_bytes, compile_skip_regexp, skip_command, skip_info)
9579 (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p)
9580 (function_name_is_marked_for_skip): Update.
9581 (skip_delete_command): Update. Use delete.
9582
9583 2017-08-09 Jiong Wang <jiong.wang@arm.com>
9584
9585 * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h".
9586 (aarch64_linux_core_read_description): New function.
9587 (aarch64_linux_init_abi): Register gdbarch_core_read_description.
9588
9589 2017-08-09 Pedro Alves <palves@redhat.com>
9590
9591 * cp-name-parser.y (cp_comp_to_string): Return a
9592 gdb::unique_xmalloc_ptr<char>.
9593 * cp-support.c (replace_typedefs_qualified_name)
9594 (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>.
9595 (cp_canonicalize_string_full): Use op= instead of explicit
9596 convertion.
9597 (cp_class_name_from_physname, method_name_from_physname)
9598 (cp_func_name, cp_remove_params): Adjust to use
9599 gdb::unique_xmalloc_ptr<char>.
9600 * cp-support.h (cp_comp_to_string): Return a
9601 gdb::unique_xmalloc_ptr<char>.
9602 * python/py-type.c (typy_lookup_type): Adjust to use
9603 gdb::unique_xmalloc_ptr<char>.
9604
9605 2017-08-09 H.J. Lu <hongjiu.lu@intel.com>
9606
9607 * dwarf2read.c (dwarf2_string_attr): Fix a typo.
9608
9609 2017-08-09 Alex Lindsay <alexlindsay239@gmail.com>
9610 Yao Qi <yao.qi@linaro.org>
9611
9612 * cp-support.c (cp_canonicalize_string_full): Use
9613 gdb::unique_xmalloc_ptr<char>.
9614 (cp_canonicalize_string): Likewise.
9615
9616 2017-08-09 Yao Qi <yao.qi@linaro.org>
9617
9618 * features/Makefile (WHICH): Remove i386/ non-linux stuff.
9619 * regformats/i386/amd64-avx-avx512.dat: Remove.
9620 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove.
9621 * regformats/i386/amd64-avx-mpx.dat:Remove.
9622 * regformats/i386/amd64-avx.dat: Remove.
9623 * regformats/i386/amd64-mpx.dat: Remove.
9624 * regformats/i386/i386-avx-avx512.dat: Remove.
9625 * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove.
9626 * regformats/i386/i386-avx-mpx.dat: Remove.
9627 * regformats/i386/i386-mmx.dat: Remove.
9628 * regformats/i386/i386-mpx.dat: Remove.
9629
9630 2017-08-09 Yao Qi <yao.qi@linaro.org>
9631
9632 * amd64-tdep.h (tdesc_x32): Remove the declaration.
9633 * amd64-tdep.c: Don't include features/i386/x32*.c.
9634 (_initialize_amd64_tdep): Don't call initialize_tdesc_x32*
9635 functions.
9636 * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx,
9637 and i386/x32-avx-avx512.
9638 (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml,
9639 and i386/x32.xml.
9640 * features/i386/x32-avx-avx512.c: Removed.
9641 * features/i386/x32-avx-avx512.xml: Removed.
9642 * features/i386/x32-avx.c: Removed.
9643 * features/i386/x32-avx.xml: Removed.
9644 * features/i386/x32.c: Removed.
9645 * features/i386/x32.xml: Removed.
9646 * regformats/i386/x32-avx-avx512.dat: Removed.
9647 * regformats/i386/x32-avx.dat: Removed.
9648 * regformats/i386/x32.dat: Removed.
9649
9650 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
9651
9652 PR breakpoints/21886
9653 * mem-break.c (default_memory_insert_breakpoint): Use
9654 `->placed_address' rather than `->reqstd_address' for the
9655 breakpoint location.
9656
9657 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
9658
9659 * arch-utils.c (default_print_insn): Remove arch/mach/endian
9660 assertions.
9661
9662 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
9663
9664 * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with
9665 a union of `tdep_info', `tdesc_data' and `id'.
9666 * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data'
9667 rather than `info.tdep_info'.
9668 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
9669 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
9670 * i386-tdep.c (i386_gdbarch_init): Likewise.
9671 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
9672 * mips-tdep.c (mips_gdbarch_init): Likewise.
9673 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
9674 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
9675 * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than
9676 `info.tdep_info'.
9677 (ppc_linux_init_abi): Use `info.tdesc_data' rather than
9678 `info.tdep_info'.
9679 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
9680 * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than
9681 `info.tdep_info'.
9682 * spu-tdep.c (spu_gdbarch_init): Likewise.
9683 * gdbarch.h: Regenerate.
9684
9685 2017-08-07 Leszek Swirski <leszeks@google.com>
9686
9687 PR symtab/20899
9688 * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt.
9689
9690 2017-08-07 Simon Marchi <simon.marchi@ericsson.com>
9691
9692 * remote-sim.c (gdbsim_load): Remove char **argv local variable.
9693 (gdbsim_open): Rename gdb_argv args object to argv.
9694
9695 2017-08-05 Tom Tromey <tom@tromey.com>
9696
9697 * compile/compile-object-load.c (compile_object_load): Use
9698 gdb::unique_xmalloc_ptr.
9699 * cli/cli-dump.c (scan_filename): Rename from
9700 scan_filename_with_cleanup. Change return type.
9701 (scan_expression): Rename from scan_expression_with_cleanup.
9702 Change return type.
9703 (dump_memory_to_file, dump_value_to_file, restore_command):
9704 Use gdb::unique_xmalloc_ptr. Update.
9705 * cli/cli-cmds.c (find_and_open_script): Use
9706 gdb::unique_xmalloc_ptr.
9707 * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr.
9708 * symmisc.c (maintenance_print_symbols)
9709 (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr.
9710 * symfile.c (symfile_bfd_open, generic_load)
9711 (add_symbol_file_command, remove_symbol_file_command): Use
9712 gdb::unique_xmalloc_ptr.
9713 * source.c (openp): Use gdb::unique_xmalloc_ptr.
9714 * psymtab.c (maintenance_print_psymbols): Use
9715 gdb::unique_xmalloc_ptr.
9716 * corelow.c (core_open): Use gdb::unique_xmalloc_ptr.
9717 * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr.
9718 * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr.
9719 (reload_shared_libraries_1): Likewise.
9720
9721 2017-08-05 Tom Tromey <tom@tromey.com>
9722
9723 * rust-exp.y (rust_op_ptr, set_field): Remove typedefs.
9724 (rust_op_vector, rust_set_vector): New typedefs.
9725 (current_parser): New global.
9726 (work_obstack): Change to pointer type. Update all users.
9727 (rust_ast, pstate): Remove globals.
9728 (struct rust_parser): New.
9729 (%union) <params, field_inits>: Change type.
9730 (start, tuple_expr, unit_expr, struct_expr_list, literal)
9731 (field_expr, expr_list, maybe_expr_list, type_list): Update.
9732 (ast_call_ish, ast_path, ast_function_type, ast_tuple_type)
9733 (convert_params_to_types, convert_params_to_expression): Change
9734 type of "params".
9735 (ast_string): Change type of "fields".
9736 (rust_parse): Make a rust_parser. Remove cleanups.
9737 (rust_lex_tests): Make and install an auto_obstack.
9738
9739 2017-08-04 Yao Qi <yao.qi@linaro.org>
9740
9741 * configure.srv (ipa_x32_linux_regobj): New.
9742 * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
9743 instead of X86_TDESC_AVX512.
9744 (initialize_low_tracepoint): Call
9745 init_registers_x32_avx_avx512_linux.
9746
9747 2017-08-04 Yao Qi <yao.qi@linaro.org>
9748
9749 * utils.h (gdb_argv): Add namespace std for nullptr_t.
9750
9751 2017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com>
9752
9753 * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev.
9754
9755 2017-08-03 Tom Tromey <tom@tromey.com>
9756
9757 * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv):
9758 Remove.
9759 * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove.
9760
9761 2017-08-03 Tom Tromey <tom@tromey.com>
9762
9763 * python/py-param.c (compute_enum_values): Use gdb_argv.
9764
9765 2017-08-03 Tom Tromey <tom@tromey.com>
9766
9767 * utils.h (struct gdb_argv_deleter): New.
9768 (gdb_argv): New class.
9769 * utils.c (gdb_argv::reset): New method.
9770 * tracepoint.c (delete_trace_variable_command): Use gdb_argv.
9771 * tracefile.c (tsave_command): Use gdb_argv.
9772 * top.c (new_ui_command): Use gdb_argv.
9773 * symmisc.c (maintenance_print_symbols)
9774 (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv.
9775 * symfile.c (symbol_file_command, generic_load)
9776 (remove_symbol_file_command): Use gdb_argv.
9777 * stack.c (backtrace_command): Use gdb_argv.
9778 * source.c (add_path, show_substitute_path_command)
9779 (unset_substitute_path_command, set_substitute_path_command):
9780 Use gdb_argv.
9781 * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv.
9782 * ser-mingw.c (pipe_windows_open): Use gdb_argv.
9783 * remote.c (extended_remote_run, remote_put_command)
9784 (remote_get_command, remote_delete_command): Use gdb_argv.
9785 * remote-sim.c (gdbsim_load, gdbsim_create_inferior)
9786 (gdbsim_open): Use gdb_argv.
9787 * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv.
9788 * psymtab.c (maintenance_print_psymbols): Use gdb_argv.
9789 * procfs.c (procfs_info_proc): Use gdb_argv.
9790 * interps.c (interpreter_exec_cmd): Use gdb_argv.
9791 * infrun.c (handle_command): Use gdb_argv.
9792 * inferior.c (add_inferior_command, clone_inferior_command):
9793 Use gdb_argv.
9794 * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv.
9795 * exec.c (exec_file_command): Use gdb_argv.
9796 * cli/cli-cmds.c (alias_command): Use gdb_argv.
9797 * compile/compile.c (build_argc_argv): Use gdb_argv.
9798
9799 2017-08-03 Tom Tromey <tom@tromey.com>
9800
9801 * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr.
9802
9803 2017-08-03 Tom Tromey <tom@tromey.com>
9804
9805 * python/python.c (compute_python_string): Return std::string.
9806 (gdbpy_eval_from_control_command): Update.
9807 (do_start_initialization): Use std::string.
9808 * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not
9809 xstrprintf.
9810 * python/py-breakpoint.c (local_setattro): Use string_printf, not
9811 xstrprintf.
9812
9813 2017-08-03 Tom Tromey <tom@tromey.com>
9814
9815 * top.h (do_restore_instream_cleanup): Remove.
9816 * top.c (do_restore_instream_cleanup): Remove.
9817 (read_command_file): Use scoped_restore.
9818 * cli/cli-script.c (execute_user_command): Use scoped_restore.
9819
9820 2017-08-03 Tom Tromey <tom@tromey.com>
9821
9822 * cli/cli-script.c (execute_user_command)
9823 (execute_control_command): Use scoped_restore.
9824
9825 2017-08-03 Tom Tromey <tom@tromey.com>
9826
9827 * cli/cli-script.c (do_restore_user_call_depth): Remove.
9828 (execute_user_command): Remove user_call_depth; use
9829 user_args_stack's size instead.
9830
9831 2017-08-03 Tom Tromey <tom@tromey.com>
9832
9833 * top.h (in_user_command): Remove.
9834 * top.c (in_user_command): Remove.
9835 * cli/cli-script.c (do_restore_user_call_depth)
9836 (execute_user_command): Update.
9837
9838 2017-08-03 Tom Tromey <tom@tromey.com>
9839
9840 * valops.c (search_struct_method): Use gdb::byte_vector.
9841 * valarith.c (value_concat): Use std::vector.
9842 * target.c (memory_xfer_partial): Use gdb::byte_vector.
9843 (simple_search_memory): Likewise.
9844 * printcmd.c (find_string_backward): Use gdb::byte_vector.
9845 * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector.
9846 * gcore.c (gcore_copy_callback): Use gdb::byte_vector.
9847 * elfread.c (elf_rel_plt_read): Use std::string.
9848 * cp-valprint.c (cp_print_value): Use gdb::byte_vector.
9849 * cli/cli-dump.c (restore_section_callback): Use
9850 gdb::byte_vector.
9851
9852 2017-08-03 Tom Tromey <tom@tromey.com>
9853
9854 * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr.
9855
9856 2017-08-03 Tom Tromey <tom@tromey.com>
9857
9858 * tui/tui-regs.c (tui_restore_gdbout): Remove.
9859 (tui_register_format): Use scoped_restore.
9860
9861 2017-08-03 Tom Tromey <tom@tromey.com>
9862
9863 * reverse.c (exec_direction_default): Remove.
9864 (exec_reverse_once): Use scoped_restore.
9865 * remote.c (restore_remote_timeout): Remove.
9866 (remote_flash_erase, remote_flash_write, remote_flash_done)
9867 (readchar, remote_serial_write): Use scoped_restore.
9868 * cli/cli-script.c (struct source_cleanup_lines_args)
9869 (source_cleanup_lines): Remove.
9870 (script_from_file): Use scoped_restore.
9871 * cli/cli-cmds.c (source_verbose_cleanup): Remove.
9872 (source_command): Use scoped_restore.
9873
9874 2017-08-03 Tom Tromey <tom@tromey.com>
9875
9876 * utils.h (make_cleanup_free_so): Remove.
9877 * utils.c (do_free_so, make_cleanup_free_so): Remove.
9878 * solist.h (struct so_deleter): New.
9879 (so_list_up): New typedef.
9880 * solib-svr4.c (svr4_read_so_list): Use so_list_up.
9881
9882 2017-08-03 Tom Tromey <tom@tromey.com>
9883
9884 * utils.h (make_cleanup_restore_current_language): Remove.
9885 * utils.c (do_restore_current_language)
9886 (make_cleanup_restore_current_language): Remove.
9887 * parse.c (parse_exp_in_context_1)
9888 (parse_expression_with_language): Use
9889 scoped_restore_current_language.
9890 * mi/mi-main.c (mi_cmd_execute): Use
9891 scoped_restore_current_language.
9892 * language.h (scoped_restore_current_language): New class.
9893
9894 2017-08-03 Tom Tromey <tom@tromey.com>
9895
9896 * compile/compile.c (cleanup_unlink_file): Remove.
9897 (compile_to_object): Use gdb::unlinker.
9898 (eval_compile_command): Likewise.
9899
9900 2017-08-03 Tom Tromey <tom@tromey.com>
9901
9902 * utils.h (make_cleanup_fclose): Remove.
9903 * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove.
9904
9905 2017-08-03 Tom Tromey <tom@tromey.com>
9906
9907 * top.c (open_terminal_stream): Return gdb_file_up.
9908 (new_ui_command): Update.
9909
9910 2017-08-03 Tom Tromey <tom@tromey.com>
9911
9912 * source.c (print_source_lines_base, forward_search_command)
9913 (reverse_search_command): Use gdb_file_up.
9914
9915 2017-08-03 Tom Tromey <tom@tromey.com>
9916
9917 * fbsd-nat.c (fbsd_find_memory_regions): Update.
9918
9919 2017-08-03 Tom Tromey <tom@tromey.com>
9920
9921 * cli/cli-cmds.c (find_and_open_script): Change return type.
9922 Remove "streamp" and "full_path" parameters.
9923 (source_script_with_search): Update.
9924 * auto-load.c (source_script_file): Update.
9925 * cli/cli-cmds.h (find_and_open_script): Change type.
9926 (open_script): New struct.
9927
9928 2017-08-03 Tom Tromey <tom@tromey.com>
9929
9930 * xml-support.c (xml_fetch_content_from_file): Update.
9931 * ui-file.c (stdio_file::open): Update.
9932 * tracefile-tfile.c (tfile_start): Update.
9933 * remote.c (remote_file_put, remote_file_get): Update.
9934 * nat/linux-procfs.c (linux_proc_get_int)
9935 (linux_proc_pid_get_state, linux_proc_tid_get_name): Update.
9936 * nat/linux-osdata.c (linux_common_core_of_thread): Update.
9937 (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus)
9938 (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem)
9939 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update.
9940 * nat/linux-btrace.c (linux_determine_kernel_start): Update.
9941 * linux-nat.c (linux_proc_pending_signals): Update.
9942 * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up.
9943 (file_closer): Remove.
9944 * compile/compile.c (compile_to_object): Update.
9945 * common/filestuff.h (struct gdb_file_deleter): New.
9946 (gdb_file_up): New typedef.
9947 (gdb_fopen_cloexec): Change return type.
9948 * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up.
9949 * cli/cli-dump.c (fopen_with_cleanup): Remove.
9950 (dump_binary_file, restore_binary_file): Update.
9951 * auto-load.c (auto_load_objfile_script_1): Update.
9952
9953 2017-08-03 Tom Tromey <tom@tromey.com>
9954
9955 * tracepoint.c (tvariables_info_1): Use ui_out_emit_table.
9956 (info_static_tracepoint_markers_command): Likewise.
9957 * solib.c (info_sharedlibrary_command): Use ui_out_emit_table.
9958 * skip.c (skip_info): Use ui_out_emit_table.
9959 * progspace.c (print_program_space): Use ui_out_emit_table.
9960 * osdata.c (info_osdata): Use ui_out_emit_table.
9961 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use
9962 ui_out_emit_table.
9963 * linux-thread-db.c (info_auto_load_libthread_db): Use
9964 ui_out_emit_table.
9965 * inferior.c (print_inferior): Use ui_out_emit_table.
9966 * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table.
9967 * breakpoint.c (breakpoint_1): Use ui_out_emit_table.
9968 * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table.
9969 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table.
9970 * ui-out.h (class ui_out_emit_table): New.
9971
9972 2017-08-02 Maciej W. Rozycki <macro@imgtec.com>
9973
9974 * mips-tdep.c (mips_fpu_type_str): New function.
9975 (mips_dump_tdep): Call it.
9976
9977 2017-08-01 Maciej W. Rozycki <macro@imgtec.com>
9978
9979 * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access
9980 `->mips_fpu_type'.
9981
9982 2017-07-31 Xavier Roirand <roirand@adacore.com>
9983
9984 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
9985
9986 2017-07-27 Xavier Roirand <roirand@adacore.com>
9987
9988 * MAINTAINERS (Write After Approval): Add Xavier Roirand.
9989
9990 2017-07-26 Yao Qi <yao.qi@linaro.org>
9991
9992 * cli/cli-cmds.c (maintenancechecklist): New variable.
9993 * gdbcmd.h (maintenancechecklist): Declare it.
9994 * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]:
9995 Call i386_linux_read_description with different masks.
9996 * maint.c (maintenance_check_command): New function.
9997 (_initialize_maint_cmds): Call add_prefix_cmd.
9998 * target-descriptions.c (tdesc_reg): override operator != and ==.
9999 (tdesc_type): Likewise.
10000 (tdesc_feature): Likewise.
10001 (target_desc): Likewise.
10002 [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function.
10003 (maintenance_check_xml_descriptions): New function.
10004 (_initialize_target_descriptions) Add command "xml-descriptions".
10005 * target-descriptions.h (selftests::record_xml_tdesc): Declare.
10006
10007 2017-07-26 Yao Qi <yao.qi@linaro.org>
10008
10009 * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c.
10010 Include features/i386/32bit-*.c.
10011 (i386_linux_read_description): Generate target description if it
10012 doesn't exist.
10013 (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386
10014 functions.
10015 * features/i386/32bit-linux.c: Re-generated.
10016 * features/i386/32bit-sse.c: Likewise.
10017 * target-descriptions.c (print_c_feature::visit): Print code to
10018 set register number if needed.
10019 (print_c_feature) <m_next_regnum>: New field.
10020
10021 2017-07-26 Yao Qi <yao.qi@linaro.org>
10022
10023 * features/Makefile (CFILES): Rename with TDESC_CFILES.
10024 (FEATURE_XMLFILES): New.
10025 (FEATURE_CFILES): New.
10026 New rules.
10027 (clean-cfiles): Remove generated c files.
10028 * features/i386/32bit-avx.c: Generated.
10029 * features/i386/32bit-avx512.c: Generated.
10030 * features/i386/32bit-core.c: Generated.
10031 * features/i386/32bit-linux.c: Generated.
10032 * features/i386/32bit-mpx.c: Generated.
10033 * features/i386/32bit-pkeys.c: Generated.
10034 * features/i386/32bit-sse.c: Generated.
10035 * target-descriptions.c: Include algorithm.
10036 (tdesc_element_visitor): Add method visit_end.
10037 (print_c_tdesc): Implement visit_end.
10038 (print_c_tdesc:: m_filename_after_features): Move it to
10039 protected.
10040 (print_c_feature): New class.
10041 (maint_print_c_tdesc_cmd): Use print_c_feature if XML file
10042 name starts with "i386/32bit-".
10043
10044 2017-07-26 Yao Qi <yao.qi@linaro.org>
10045
10046 * target-descriptions.c (tdesc_element_visitor): New class.
10047 (tdesc_element): New class.
10048 (tdesc_reg): Inherit from tdesc_element.
10049 (tdesc_reg::accept): New function.
10050 (tdesc_type): Inherit from tdesc_element.
10051 (tdesc_type::accept): New function.
10052 (tdesc_feature): Inherit from tdesc_element.
10053 (tdesc_feature::accept): New function.
10054 (target_desc): Inherit from tdesc_element.
10055 (target_desc::target_desc): New.
10056 (target_desc::~target_desc): New.
10057 (target_desc::accept): New.
10058 (allocate_target_description): Use new.
10059 (free_target_description): Use delete.
10060 (print_c_tdesc): New class.
10061 (maint_print_c_tdesc_cmd): Adjust.
10062
10063 * features/aarch64.c: Re-generated.
10064 * features/arc-arcompact.c: Re-generated.
10065 * features/arc-v2.c: Re-generated.
10066 * features/arm/arm-with-iwmmxt.c: Re-generated.
10067 * features/arm/arm-with-m.c: Re-generated.
10068 * features/arm/arm-with-m-fpa-layout.c: Re-generated.
10069 * features/arm/arm-with-m-vfp-d16.c: Re-generated.
10070 * features/arm/arm-with-neon.c: Re-generated.
10071 * features/arm/arm-with-vfpv2.c: Re-generated.
10072 * features/arm/arm-with-vfpv3.c: Re-generated.
10073 * features/i386/amd64-avx-avx512.c: Re-generated.
10074 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
10075 * features/i386/amd64-avx.c: Re-generated.
10076 * features/i386/amd64-avx-linux.c: Re-generated.
10077 * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated.
10078 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
10079 * features/i386/amd64-avx-mpx.c: Re-generated.
10080 * features/i386/amd64-avx-mpx-linux.c: Re-generated.
10081 * features/i386/amd64.c: Re-generated.
10082 * features/i386/amd64-linux.c: Re-generated.
10083 * features/i386/amd64-mpx.c: Re-generated.
10084 * features/i386/amd64-mpx-linux.c: Re-generated.
10085 * features/i386/i386-avx-avx512.c: Re-generated.
10086 * features/i386/i386-avx-avx512-linux.c: Re-generated.
10087 * features/i386/i386-avx.c: Re-generated.
10088 * features/i386/i386-avx-linux.c: Re-generated.
10089 * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated.
10090 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated.
10091 * features/i386/i386-avx-mpx.c: Re-generated.
10092 * features/i386/i386-avx-mpx-linux.c: Re-generated.
10093 * features/i386/i386.c: Re-generated.
10094 * features/i386/i386-linux.c: Re-generated.
10095 * features/i386/i386-mmx.c: Re-generated.
10096 * features/i386/i386-mmx-linux.c: Re-generated.
10097 * features/i386/i386-mpx.c: Re-generated.
10098 * features/i386/i386-mpx-linux.c: Re-generated.
10099 * features/i386/x32-avx-avx512.c: Re-generated.
10100 * features/i386/x32-avx-avx512-linux.c: Re-generated.
10101 * features/i386/x32-avx.c: Re-generated.
10102 * features/i386/x32-avx-linux.c: Re-generated.
10103 * features/i386/x32.c: Re-generated.
10104 * features/i386/x32-linux.c: Re-generated.
10105 * features/microblaze.c: Re-generated.
10106 * features/microblaze-with-stack-protect.c: Re-generated.
10107 * features/mips64-dsp-linux.c: Re-generated.
10108 * features/mips64-linux.c: Re-generated.
10109 * features/mips-dsp-linux.c: Re-generated.
10110 * features/mips-linux.c: Re-generated.
10111 * features/nds32.c: Re-generated.
10112 * features/nios2.c: Re-generated.
10113 * features/nios2-linux.c: Re-generated.
10114 * features/rs6000/powerpc-32.c: Re-generated.
10115 * features/rs6000/powerpc-32l.c: Re-generated.
10116 * features/rs6000/powerpc-403.c: Re-generated.
10117 * features/rs6000/powerpc-403gc.c : Re-generated.
10118 * features/rs6000/powerpc-405.c: Re-generated.
10119 * features/rs6000/powerpc-505.c: Re-generated.
10120 * features/rs6000/powerpc-601.c: Re-generated.
10121 * features/rs6000/powerpc-602.c: Re-generated.
10122 * features/rs6000/powerpc-603.c: Re-generated.
10123 * features/rs6000/powerpc-604.c: Re-generated.
10124 * features/rs6000/powerpc-64.c: Re-generated.
10125 * features/rs6000/powerpc-64l.c: Re-generated.
10126 * features/rs6000/powerpc-7400.c: Re-generated.
10127 * features/rs6000/powerpc-750.c: Re-generated.
10128 * features/rs6000/powerpc-860.c: Re-generated.
10129 * features/rs6000/powerpc-altivec32.c: Re-generated.
10130 * features/rs6000/powerpc-altivec32l.c: Re-generated.
10131 * features/rs6000/powerpc-altivec64.c: Re-generated.
10132 * features/rs6000/powerpc-altivec64l.c: Re-generated.
10133 * features/rs6000/powerpc-cell32l.c: Re-generated.
10134 * features/rs6000/powerpc-cell64l.c: Re-generated.
10135 * features/rs6000/powerpc-e500.c: Re-generated.
10136 * features/rs6000/powerpc-e500l.c: Re-generated.
10137 * features/rs6000/powerpc-isa205-32l.c: Re-generated.
10138 * features/rs6000/powerpc-isa205-64l.c: Re-generated.
10139 * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated.
10140 * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated.
10141 * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated.
10142 * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated.
10143 * features/rs6000/powerpc-vsx32.c: Re-generated.
10144 * features/rs6000/powerpc-vsx32l.c: Re-generated.
10145 * features/rs6000/powerpc-vsx64.c: Re-generated.
10146 * features/rs6000/powerpc-vsx64l.c: Re-generated.
10147 * features/rs6000/rs6000.c: Re-generated.
10148 * features/s390-linux32.c: Re-generated.
10149 * features/s390-linux32v1.c: Re-generated.
10150 * features/s390-linux32v2.c: Re-generated.
10151 * features/s390-linux64.c: Re-generated.
10152 * features/s390-linux64v1.c: Re-generated.
10153 * features/s390-linux64v2.c: Re-generated.
10154 * features/s390-te-linux64.c: Re-generated.
10155 * features/s390-tevx-linux64.c: Re-generated.
10156 * features/s390-vx-linux64.c: Re-generated.
10157 * features/s390x-linux64.c: Re-generated.
10158 * features/s390x-linux64v1.c: Re-generated.
10159 * features/s390x-linux64v2.c: Re-generated.
10160 * features/s390x-te-linux64.c: Re-generated.
10161 * features/s390x-tevx-linux64.c: Re-generated.
10162 * features/s390x-vx-linux64.c: Re-generated.
10163 * features/sparc/sparc32-solaris.c: Re-generated.
10164 * features/sparc/sparc64-solaris.c: Re-generated.
10165 * features/tic6x-c62x.c: Re-generated.
10166 * features/tic6x-c62x-linux.c: Re-generated.
10167 * features/tic6x-c64x.c: Re-generated.
10168 * features/tic6x-c64x-linux.c: Re-generated.
10169 * features/tic6x-c64xp.c: Re-generated.
10170 * features/tic6x-c64xp-linux.c: Re-generated.
10171
10172 2017-07-26 Yao Qi <yao.qi@linaro.org>
10173
10174 * i386-linux-tdep.c (i386_linux_read_description): New function.
10175 (i386_linux_core_read_description): Call
10176 i386_linux_read_description.
10177 * i386-linux-tdep.h (i386_linux_read_description): Declare.
10178 (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations.
10179 (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise
10180 (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise.
10181 (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise.
10182 * x86-linux-nat.c (x86_linux_read_description): Call
10183 i386_linux_read_description.
10184
10185 2017-07-26 Yao Qi <yao.qi@linaro.org>
10186
10187 * NEWS: Mention it.
10188 * features/Makefile (%.c: %.xml): Pass the xml file name to
10189 command "maint print c-tdesc".
10190 * target-descriptions.c (maint_print_c_tdesc_cmd): Get file
10191 name from 'arg'.
10192
10193 2017-07-26 Yao Qi <yao.qi@linaro.org>
10194
10195 * target-descriptions.c (target_desc): Add ctor and dtor. Do
10196 in-class initialization.
10197 (tdesc_create_feature): Call new instead of XCNEW.
10198 (free_target_description): Ue delete.
10199
10200 2017-07-25 John Baldwin <jhb@FreeBSD.org>
10201
10202 * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo.
10203
10204 2017-07-25 Yao Qi <yao.qi@linaro.org>
10205
10206 * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc
10207 constant.
10208 (amd64_x32_init_abi): Likewise.
10209 * amd64-tdep.h (amd64_init_abi): Update declaration.
10210 (amd64_x32_init_abi): Likewise.
10211
10212 2017-07-25 Yao Qi <yao.qi@linaro.org>
10213
10214 PR tdep/21717
10215 * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update
10216 condition for FPSCR.
10217 (arm_linux_store_inferior_registers): Likewise.
10218
10219 2017-07-22 Tom Tromey <tom@tromey.com>
10220
10221 * break-catch-syscall.c (struct catch_syscall_inferior_data)
10222 <syscalls_counts>: Now a std::vector.
10223 (get_catch_syscall_inferior_data): Use "new".
10224 (catch_syscall_inferior_data_cleanup): Use "delete".
10225 (insert_catch_syscall, remove_catch_syscall)
10226 (clear_syscall_counts): Update.
10227
10228 2017-07-22 Tom Tromey <tom@tromey.com>
10229
10230 * break-catch-syscall.c (syscall_catchpoint)
10231 <syscalls_to_be_caught>: Now a std::vector<int>
10232 (~syscall_catchpoint): Remove.
10233 (insert_catch_syscall, remove_catch_syscall)
10234 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
10235 (print_mention_catch_syscall, print_recreate_catch_syscall):
10236 Update.
10237 (create_syscall_event_catchpoint): Change type of "filter"
10238 parameter.
10239 (catch_syscall_split_args): Return a std::vector.
10240 (catch_syscall_command_1, catching_syscall_number_1): Update.
10241
10242 2017-07-22 Tom Tromey <tom@tromey.com>
10243
10244 * break-catch-throw.c (struct exception_catchpoint)
10245 <exception_rx>: Now a std::string.
10246 (~exception_catchpoint): Remove.
10247 (print_one_detail_exception_catchpoint): Update.
10248 (handle_gnu_v3_exceptions): Change type of except_rx.
10249 (extract_exception_regexp): Return a std::string.
10250 (catch_exception_command_1): Update.
10251
10252 2017-07-22 Tom Tromey <tom@tromey.com>
10253
10254 * break-catch-sig.c (gdb_signal_type): Remove typedef.
10255 (struct signal_catchpoint) <signals_to_be_caught>: Now a
10256 std::vector.
10257 <catch_all>: Now a bool.
10258 (~signal_catchpoint): Remove.
10259 (signal_catchpoint_insert_location)
10260 (signal_catchpoint_remove_location)
10261 (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one)
10262 (signal_catchpoint_print_mention)
10263 (signal_catchpoint_print_recreate)
10264 (signal_catchpoint_explains_signal): Update.
10265 (create_signal_catchpoint): Change type of "filter" and
10266 "catch_all".
10267 (catch_signal_split_args): Return a std::vector. Change type of
10268 "catch_all".
10269 (catch_signal_command): Update.
10270
10271 2017-07-20 Pedro Alves <palves@redhat.com>
10272
10273 * ada-lang.c (ada_language_defn): Make extern.
10274 (_initialize_ada_language): Remove add_language call.
10275 * c-lang.c (c_language_defn, cplus_language_defn)
10276 (asm_language_defn, minimal_language_defn): Make extern.
10277 (_initialize_c_language): Delete.
10278 * completer.c (compare_cstrings): Delete, moved to utils.h.
10279 * d-lang.c (d_language_defn): Make extern.
10280 (_initialize_d_language): Remove add_language calls.
10281 * defs.h (enum language): Add comment.
10282 * f-lang.c (f_language_defn): Make extern.
10283 (_initialize_f_language): Remove add_language call.
10284 * go-lang.c (go_language_defn): Make extern.
10285 (_initialize_go_language): Remove add_language call.
10286 * language.c: Include <algorithm>.
10287 (languages): Redefine as const array.
10288 (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete.
10289 (set_language_command): Handle "local". Use for-range loop.
10290 (set_language): Remove loop.
10291 (language_enum): Rewrite.
10292 (language_def, language_str): Remove loops.
10293 (add_language): Delete.
10294 (add_set_language_command): New, based on add_languages.
10295 (skip_language_trampoline): Adjust.
10296 (local_language_defn): Delete.
10297 (language_gdbarch_post_init): Adjust.
10298 (_initialize_language): Remove add_language calls. Call
10299 add_set_language_command.
10300 * language.h (add_language): Delete.
10301 (auto_language_defn)
10302 (unknown_language_defn, minimal_language_defn, ada_language_defn)
10303 (asm_language_defn, c_language_defn, cplus_language_defn)
10304 (d_language_defn, f_language_defn, go_language_defn)
10305 (m2_language_defn, objc_language_defn, opencl_language_defn)
10306 (pascal_language_defn, rust_language_defn): Declare.
10307 * m2-lang.c (m2_language_defn): Make extern.
10308 (_initialize_m2_language): Remove add_language call.
10309 * objc-lang.c (objc_language_defn): Make extern.
10310 (_initialize_objc_language): Remove add_language call.
10311 * opencl-lang.c (opencl_language_defn): Make extern.
10312 (_initialize_opencl_language): Remove add_language call.
10313 * p-lang.c (pascal_language_defn): Make extern.
10314 (_initialize_pascal_language): Delete.
10315 * rust-lang.c (rust_language_defn): Make extern.
10316 (_initialize_rust_language): Delete.
10317 * utils.h (compare_cstrings): New static inline function.
10318
10319 2017-07-20 Pedro Alves <palves@redhat.com>
10320
10321 * ada-lang.c (ada_to_fixed_type_1): Adjust.
10322 (get_var_value): Constify parameters.
10323 (get_int_var_value): Change prototype.
10324 (to_fixed_range_type): Adjust.
10325 * ada-lang.h (get_int_var_value): Change prototype.
10326
10327 2017-07-20 Pedro Alves <palves@redhat.com>
10328
10329 * dwarf2read.c (dw2_lookup_symbol): Use
10330 SYMBOL_MATCHES_SEARCH_NAME.
10331 * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME.
10332
10333 2017-07-20 Pedro Alves <palves@redhat.com>
10334
10335 * block.c (block_iter_name_step, block_iter_name_first)
10336 (block_iter_name_next): Delete.
10337 (block_lookup_symbol_primary): Adjust to use
10338 dict_iter_match_first/dict_iter_match_next.
10339 * block.h (block_iter_name_first, block_iter_name_next): Delete
10340 declarations.
10341 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use
10342 dict_iter_match_first/dict_iter_match_next.
10343
10344 2017-07-20 Pedro Alves <palves@redhat.com>
10345
10346 * cp-support.c (cp_find_first_component_aux): Add missing case for
10347 end of string.
10348
10349 2017-07-18 David Blaikie <dblaikie@gmail.com>
10350
10351 * dwarf2read.c (create_cus_hash_table): Re-add lost initialization
10352 of dwo_cu's dwo_file.
10353
10354 2017-07-18 Yao Qi <yao.qi@linaro.org>
10355
10356 * remote.c (store_registers_using_G): Remove one line comment.
10357
10358 2017-07-18 Yao Qi <yao.qi@linaro.org>
10359
10360 * regcache.c (regcache_cpy): Simplify it.
10361 (regcache::cpy_no_passthrough): Remove it.
10362 * regcache.h (cpy_no_passthrough): Remove it.
10363 (regcache_dup, regcache_cpy): Update comments.
10364
10365 2017-07-18 Pedro Alves <palves@redhat.com>
10366
10367 * remote-sim.c (sim_command_completer): Adjust to work with a
10368 completion_tracker instead of a VEC.
10369
10370 2017-07-17 Pedro Alves <palves@redhat.com>
10371
10372 * completer.c (complete_source_filenames): New function.
10373 (complete_address_and_linespec_locations): New function.
10374 (location_completer): Use complete_address_and_linespec_locations.
10375 (completion_tracker::build_completion_result): Honor the tracker's
10376 request to suppress append.
10377 * completer.h (completion_tracker::suppress_append_ws)
10378 (completion_tracker::set_suppress_append_ws): New methods.
10379 (completion_tracker::m_suppress_append_ws): New field.
10380 (complete_source_filenames): New declaration.
10381 * linespec.c (linespec_complete_what): New.
10382 (struct ls_parser) <complete_what, completion_word,
10383 completion_quote_char, completion_quote_end, completion_tracker>:
10384 New fields.
10385 (string_find_incomplete_keyword_at_end): New.
10386 (linespec_lexer_lex_string): Record quote char. If in completion
10387 mode, don't throw.
10388 (linespec_lexer_consume_token): Advance the completion word point.
10389 (linespec_lexer_peek_token): Save/restore completion info.
10390 (save_stream_and_consume_token): New.
10391 (set_completion_after_number): New.
10392 (linespec_parse_basic): Set what to complete next depending on
10393 token. Handle function and label completions specially.
10394 (parse_linespec): Disable objc shortcut in completion mode. Set
10395 what to complete next depending on token type. Skip keyword if in
10396 completion mode.
10397 (complete_linespec_component, linespec_complete): New.
10398 * linespec.h (linespec_complete): Declare.
10399
10400 2017-07-17 Pedro Alves <palves@redhat.com>
10401
10402 * linespec.c (linespec_lexer_lex_string, find_toplevel_char):
10403 Handle 'operator<' / 'operator<<'.
10404
10405 2017-07-17 Pedro Alves <palves@redhat.com>
10406
10407 * completer.c (collect_explicit_location_matches): Handle
10408 MATCH_LABEL.
10409 (convert_explicit_location_to_linespec): New, factored out from
10410 ...
10411 (convert_explicit_location_to_sals): ... this.
10412 (complete_label): New.
10413 (linespec_complete_label, find_label_symbols_in_block): New.
10414 (find_label_symbols): Add completion_mode parameter and adjust to
10415 call find_label_symbols_in_block.
10416 * linespec.h (linespec_complete_label): Declare.
10417
10418 2017-07-17 Pedro Alves <palves@redhat.com>
10419
10420 * ada-lang.c (ada_collect_symbol_completion_matches): Add
10421 complete_symbol_mode parameter.
10422 * cli/cli-cmds.c (complete_command): Get the completion result out
10423 of the handle_brkchars tracker if used a custom word point.
10424 * completer.c: Include "linespec.h".
10425 (enum explicit_location_match_type) <MATCH_LINE>: New enumerator.
10426 (advance_to_expression_complete_word_point): New.
10427 (completion_tracker::completes_to_completion_word): New.
10428 (complete_files_symbols): Pass down
10429 complete_symbol_mode::EXPRESSION.
10430 (explicit_options, probe_options): New.
10431 (collect_explicit_location_matches): Complete on the
10432 explictit_loc->foo instead of word. Use
10433 linespec_complete_function. Handle MATCH_LINE. Handle offering
10434 keyword and options completions.
10435 (backup_text_ptr): Delete.
10436 (skip_keyword): New.
10437 (complete_explicit_location): Remove 'word' parameter. Add
10438 language, quoted_arg_start and quoted_arg_end parameters.
10439 Rewrite, parsing left to right.
10440 (location_completer): Rewrite.
10441 (location_completer_handle_brkchars): New function.
10442 (symbol_completer): Pass down complete_symbol_mode::EXPRESSION.
10443 (enum complete_line_internal_reason): Adjust comments.
10444 (completion_tracker::discard_completions): New.
10445 (completer_handle_brkchars_func_for_completer): Handle
10446 location_completer.
10447 (gdb_custom_word_point_brkchars)
10448 (gdb_org_rl_basic_quote_characters): New.
10449 (gdb_completion_word_break_characters_throw)
10450 (completion_find_completion_word): Handle trackers that use a
10451 custom word point.
10452 (completion_tracker::advance_custom_word_point_by): New.
10453 (completion_tracker::build_completion_result): Don't rely on
10454 readline appending the quote char.
10455 (gdb_rl_attempted_completion_function_throw): Handle trackers that
10456 use a custom word point.
10457 (gdb_rl_attempted_completion_function): Restore
10458 rl_basic_quote_characters.
10459 * completer.h (class completion_tracker): Extend intro comment.
10460 (completion_tracker::set_quote_char)
10461 (completion_tracker::quote_char)
10462 (completion_tracker::set_use_custom_word_point)
10463 (completion_tracker::use_custom_word_point)
10464 (completion_tracker::custom_word_point)
10465 (completion_tracker::set_custom_word_point)
10466 (completion_tracker::advance_custom_word_point_by)
10467 (completion_tracker::completes_to_completion_word)
10468 (completion_tracker::discard_completions): New methods.
10469 (completion_tracker::m_quote_char)
10470 (completion_tracker::m_use_custom_word_point)
10471 (completion_tracker::m_custom_word_point): New fields.
10472 (advance_to_expression_complete_word_point): Declare.
10473 * f-lang.c (f_collect_symbol_completion_matches): Add
10474 complete_symbol_mode parameter.
10475 * language.h (struct language_defn)
10476 <la_collect_symbol_completion_matches>: Add complete_symbol_mode
10477 parameter.
10478 * linespec.c (linespec_keywords): Add NULL terminator. Make extern.
10479 (linespec_complete_function): New function.
10480 (linespec_lexer_lex_keyword): Adjust.
10481 * linespec.h (linespec_keywords, linespec_complete_function): New
10482 declarations.
10483 * location.c (find_end_quote): New function.
10484 (explicit_location_lex_one): Add explicit_completion_info
10485 parameter. Save quoting info. Don't throw if being called for
10486 completion. Don't handle Ada operators here.
10487 (is_cp_operator, skip_op_false_positives, first_of)
10488 (explicit_location_lex_one_function): New function.
10489 (string_to_explicit_location): Replace 'dont_throw' parameter with
10490 an explicit_completion_info pointer parameter. Handle it. Don't
10491 use explicit_location_lex_one to lex function names. Use
10492 explicit_location_lex_one_function instead.
10493 * location.h (struct explicit_completion_info): New.
10494 (string_to_explicit_location): Replace 'dont_throw' parameter with
10495 an explicit_completion_info pointer parameter.
10496 * symtab.c (default_collect_symbol_completion_matches_break_on):
10497 Add complete_symbol_mode parameter. Handle LINESPEC mode.
10498 (default_collect_symbol_completion_matches)
10499 (collect_symbol_completion_matches): Add complete_symbol_mode
10500 parameter.
10501 (collect_symbol_completion_matches_type): Pass down
10502 complete_symbol_mode::EXPRESSION.
10503 (collect_file_symbol_completion_matches): Add complete_symbol_mode
10504 parameter. Handle LINESPEC mode.
10505 * symtab.h (complete_symbol_mode): New.
10506 (default_collect_symbol_completion_matches_break_on)
10507 (default_collect_symbol_completion_matches)
10508 (collect_symbol_completion_matches)
10509 (collect_file_symbol_completion_matches): Add complete_symbol_mode
10510 parameter.
10511
10512 2017-07-17 Pedro Alves <palves@redhat.com>
10513
10514 * utils.c (enum class strncmp_iw_mode): New.
10515 (strcmp_iw): Rename to ...
10516 (strncmp_iw_with_mode): ... this. Add string2_len and mode
10517 parameters. Handle them.
10518 (strncmp_iw): New.
10519 (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode.
10520 * utils.h (strncmp_iw): Declare.
10521 (strcmp_iw): Move describing comments here.
10522
10523 2017-07-17 Pedro Alves <palves@redhat.com>
10524
10525 * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and
10526 CP_OPERATOR_STR.
10527 * c-typeprint.c (is_type_conversion_operator): Use
10528 CP_OPERATOR_STR.
10529 * cp-support.c (LENGTH_OF_OPERATOR): Delete.
10530 (cp_find_first_component_aux): Use CP_OPERATOR_STR and
10531 CP_OPERATOR_LEN.
10532 * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New.
10533 * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR.
10534 * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR.
10535 * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and
10536 CP_OPERATOR_STR.
10537 * location.c: Include "cp-support.h".
10538 (explicit_location_lex_one): Use CP_OPERATOR_LEN and
10539 CP_OPERATOR_STR.
10540 * symtab.c (operator_chars): Use CP_OPERATOR_STR and
10541 CP_OPERATOR_LEN.
10542
10543 2017-07-17 Pedro Alves <palves@redhat.com>
10544
10545 * cli/cli-cmds.c (complete_command): Use a completion tracker
10546 along with completion_find_completion_word for handle_brkchars
10547 phase.
10548 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
10549 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New.
10550 (struct gdb_rl_completion_word_info): New.
10551 (gdb_rl_find_completion_word): New.
10552 (completion_find_completion_word): New.
10553 * completer.h (completion_find_completion_word): Declare.
10554
10555 2017-07-17 Pedro Alves <palves@redhat.com>
10556
10557 * ada-lang.c (symbol_completion_match): Adjust comments.
10558 (symbol_completion_add): Replace vector parameter with
10559 completion_tracker parameter. Use it.
10560 (ada_make_symbol_completion_list): Rename to...
10561 (ada_collect_symbol_completion_matches): ... this. Add
10562 completion_tracker parameter and use it.
10563 (ada_language_defn): Adjust.
10564 * break-catch-syscall.c (catch_syscall_completer): Adjust
10565 prototype and work with completion_tracker instead of VEC.
10566 * breakpoint.c (condition_completer): Adjust prototype and work
10567 with completion_tracker instead of VEC.
10568 * c-lang.c (c_language_defn, cplus_language_defn)
10569 (asm_language_defn, minimal_language_defn): Adjust to renames.
10570 * cli/cli-cmds.c (complete_command): Rework using
10571 completion_tracker. Catch exceptions when completing.
10572 * cli/cli-decode.c (integer_unlimited_completer)
10573 (complete_on_cmdlist, complete_on_enum): Adjust prototype and work
10574 with completion_tracker instead of VEC.
10575 * command.h (struct completion_tracker): Forward declare.
10576 (completer_ftype, completer_handle_brkchars_ftype): Change
10577 types.
10578 (complete_on_cmdlist, complete_on_enum): Adjust.
10579 * completer.c: Include <algorithm>.
10580 (struct gdb_completer_state): New.
10581 (current_completion): New global.
10582 (readline_line_completion_function): Delete.
10583 (noop_completer, filename_completer)
10584 (filename_completer_handle_brkchars, complete_files_symbols)
10585 (linespec_location_completer): Adjust to work with a
10586 completion_tracker instead of a VEC.
10587 (string_or_empty): New.
10588 (collect_explicit_location_matches): Adjust to work with a
10589 completion_tracker instead of a VEC.
10590 (explicit_location_completer): Rename to ...
10591 (complete_explicit_location): ... this and adjust to work with a
10592 completion_tracker instead of a VEC.
10593 (location_completer): Adjust to work with a completion_tracker
10594 instead of a VEC.
10595 (add_struct_fields): Adjust to work with a completion_list instead
10596 of VEC.
10597 (expression_completer): Rename to ...
10598 (complete_expression): ... this and adjust to work with a
10599 completion_tracker instead of a VEC. Use complete_files_symbols.
10600 (expression_completer): Reimplement on top of complete_expression.
10601 (symbol_completer): Adjust to work with a completion_tracker
10602 instead of a VEC.
10603 (enum complete_line_internal_reason): Add describing comments.
10604 (complete_line_internal_normal_command): Adjust to work with a
10605 completion_tracker instead of a VEC.
10606 (complete_line_internal): Rename to ...
10607 (complete_line_internal_1): ... this and adjust to work with a
10608 completion_tracker instead of a VEC. Assert TEXT is NULL in the
10609 handle_brkchars phase.
10610 (new_completion_tracker): Delete.
10611 (complete_line_internal): Reimplement as TRY/CATCH wrapper around
10612 complete_line_internal_1.
10613 (free_completion_tracker): Delete.
10614 (INITIAL_COMPLETION_HTAB_SIZE): New.
10615 (completion_tracker::completion_tracker)
10616 (completion_tracker::~completion_tracker): New.
10617 (maybe_add_completion): Delete.
10618 (completion_tracker::maybe_add_completion)
10619 (completion_tracker::add_completion)
10620 (completion_tracker::add_completions): New.
10621 (throw_max_completions_reached_error): Delete.
10622 (complete_line): Adjust to work with a completion_tracker instead
10623 of a VEC. Don't create a completion_tracker_t or check for max
10624 completions here.
10625 (command_completer, command_completer_handle_brkchars)
10626 (signal_completer, reg_or_group_completer_1)
10627 (reg_or_group_completer, default_completer_handle_brkchars):
10628 Adjust to work with a completion_tracker.
10629 (gdb_completion_word_break_characters_throw): New.
10630 (gdb_completion_word_break_characters): Reimplement.
10631 (line_completion_function): Delete.
10632 (completion_tracker::recompute_lowest_common_denominator)
10633 (expand_preserving_ws)
10634 (completion_tracker::build_completion_result)
10635 (completion_result::completion_result)
10636 (completion_result::completion_result)
10637 (completion_result::~completion_result)
10638 (completion_result::completion_result)
10639 (completion_result::release_match_list, compare_cstrings)
10640 (completion_result::sort_match_list)
10641 (completion_result::reset_match_list)
10642 (gdb_rl_attempted_completion_function_throw)
10643 (gdb_rl_attempted_completion_function): New.
10644 * completer.h (completion_list, struct completion_result)
10645 (class completion_tracker): New.
10646 (complete_line): Add completion_tracker parameter.
10647 (readline_line_completion_function): Delete.
10648 (gdb_rl_attempted_completion_function): New.
10649 (noop_completer, filename_completer, expression_completer)
10650 (location_completer, symbol_completer, command_completer)
10651 (signal_completer, reg_or_group_completer): Update prototypes.
10652 (completion_tracker_t, new_completion_tracker)
10653 (make_cleanup_free_completion_tracker): Delete.
10654 (enum maybe_add_completion_enum): Delete.
10655 (maybe_add_completion): Delete.
10656 (throw_max_completions_reached_error): Delete.
10657 * corefile.c (complete_set_gnutarget): Adjust to work with a
10658 completion_tracker instead of a VEC.
10659 * cp-abi.c (cp_abi_completer): Adjust to work with a
10660 completion_tracker instead of a VEC.
10661 * d-lang.c (d_language_defn): Adjust.
10662 * disasm.c (disassembler_options_completer): Adjust to work with a
10663 completion_tracker instead of a VEC.
10664 * f-lang.c (f_make_symbol_completion_list): Rename to ...
10665 (f_collect_symbol_completion_matches): ... this. Adjust to work
10666 with a completion_tracker instead of a VEC.
10667 (f_language_defn): Adjust.
10668 * go-lang.c (go_language_defn): Adjust.
10669 * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer):
10670 Adjust to work with a completion_tracker instead of a VEC.
10671 * infrun.c (handle_completer): Likewise.
10672 * interps.c (interpreter_completer): Likewise.
10673 * interps.h (interpreter_completer): Likewise.
10674 * language.c (unknown_language_defn, auto_language_defn)
10675 (local_language_defn): Adjust.
10676 * language.h (language_defn::la_make_symbol_completion_list):
10677 Rename to ...
10678 (language_defn::la_collect_symbol_completion_matches): ... this
10679 and adjust to work with a completion_tracker instead of a VEC.
10680 * m2-lang.c (m2_language_defn): Adjust.
10681 * objc-lang.c (objc_language_defn): Adjust.
10682 * opencl-lang.c (opencl_language_defn): Adjust.
10683 * p-lang.c (pascal_language_defn): Adjust.
10684 * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word.
10685 (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work
10686 with a completion_tracker.
10687 * rust-lang.c (rust_language_defn): Adjust.
10688 * symtab.c (free_completion_list, do_free_completion_list)
10689 (return_val, completion_tracker): Delete.
10690 (completion_list_add_name, completion_list_add_symbol)
10691 (completion_list_add_msymbol, completion_list_objc_symbol)
10692 (completion_list_add_fields, add_symtab_completions): Add
10693 completion_tracker parameter and use it.
10694 (default_make_symbol_completion_list_break_on_1): Rename to...
10695 (default_collect_symbol_completion_matches_break_on): ... this.
10696 Add completion_tracker parameter and use it instead of allocating
10697 a completion tracker here.
10698 (default_make_symbol_completion_list_break_on): Delete old
10699 implementation.
10700 (default_make_symbol_completion_list): Delete.
10701 (default_collect_symbol_completion_matches): New.
10702 (make_symbol_completion_list): Delete.
10703 (collect_symbol_completion_matches): New.
10704 (make_symbol_completion_type): Rename to ...
10705 (collect_symbol_completion_matches_type): ... this. Add
10706 completion_tracker parameter and use it instead of VEC.
10707 (make_file_symbol_completion_list_1): Rename to...
10708 (collect_file_symbol_completion_matches): ... this. Add
10709 completion_tracker parameter and use it instead of VEC.
10710 (make_file_symbol_completion_list): Delete.
10711 (add_filename_to_list): Use completion_list instead of a VEC.
10712 (add_partial_filename_data::list): Now a completion_list.
10713 (make_source_files_completion_list): Work with a completion_list
10714 instead of a VEC.
10715 * symtab.h: Include "completer.h".
10716 (default_make_symbol_completion_list_break_on)
10717 (default_make_symbol_completion_list, make_symbol_completion_list)
10718 (make_symbol_completion_type, make_file_symbol_completion_list)
10719 (make_source_files_completion_list): Delete.
10720 (default_collect_symbol_completion_matches_break_on)
10721 (default_collect_symbol_completion_matches)
10722 (collect_symbol_completion_matches)
10723 (collect_symbol_completion_matches_type)
10724 (collect_file_symbol_completion_matches)
10725 (make_source_files_completion_list): New.
10726 * top.c (init_main): Don't install a rl_completion_entry_function
10727 hook. Install a rl_attempted_completion_function hook instead.
10728 * tui/tui-layout.c (layout_completer): Adjust to work with a
10729 completion_tracker.
10730 * tui/tui-regs.c (tui_reggroup_completer):
10731 * tui/tui-win.c (window_name_completer, focus_completer)
10732 (winheight_completer): Adjust to work with a completion_tracker.
10733 * value.c: Include "completer.h".
10734 (complete_internalvar): Adjust to work with a completion_tracker.
10735 * value.h (complete_internalvar): Likewise.
10736
10737 2017-07-17 Pedro Alves <palves@redhat.com>
10738
10739 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to
10740 renames.
10741 * cli/cli-decode.h (struct cmd_list_element) <completer>: Move
10742 comments to completer_ftype's declaration.
10743 <completer_handle_brkchars>: Change type to
10744 completer_handle_brkchars_ftype.
10745 * command.h (completer_ftype): Add describing comment and give
10746 names to parameters.
10747 (completer_ftype_void): Rename to ...
10748 (completer_handle_brkchars_ftype) ... this. Add describing comment.
10749 (set_cmd_completer_handle_brkchars): Adjust.
10750 * completer.c (filename_completer_handle_brkchars): New function.
10751 (complete_line_internal_normal_command): New function, factored
10752 out from ...
10753 (complete_line_internal): ... here.
10754 (command_completer_handle_brkchars)
10755 (default_completer_handle_brkchars)
10756 (completer_handle_brkchars_func_for_completer): New functions.
10757 * completer.h (set_gdb_completion_word_break_characters): Delete
10758 declaration.
10759 (completer_handle_brkchars_func_for_completer): New declaration.
10760 * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use
10761 completer_handle_brkchars_func_for_completer.
10762
10763 2017-07-17 Pedro Alves <palves@redhat.com>
10764
10765 * completer.c (symbol_completer): New function, based on
10766 make_symbol_completion_list_fn.
10767 * completer.h (symbol_completer): New declaration.
10768 * guile/scm-cmd.c (cmdscm_completers): Adjust.
10769 * python/py-cmd.c (completers): Adjust.
10770 * symtab.c (make_symbol_completion_list_fn): Delete.
10771 * symtab.h (make_symbol_completion_list_fn): Delete.
10772 * cli/cli-decode.c (add_cmd): Adjust.
10773
10774 2017-07-17 Pedro Alves <palves@redhat.com>
10775
10776 * Makefile.in (COMMON_OBS): Add filename-seen-cache.o.
10777 * dwarf2read.c: Include "filename-seen-cache.h".
10778 * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field.
10779 (dw2_map_symbol_filenames): Build and use a filenames_seen_cache.
10780 * filename-seen-cache.c: New file.
10781 * filename-seen-cache.h: New file.
10782 * symtab.c: Include "filename-seen-cache.h".
10783 (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE)
10784 (create_filename_seen_cache, clear_filename_seen_cache)
10785 (delete_filename_seen_cache, filename_seen): Delete, parts moved
10786 to filename-seen-cache.h/filename-seen-cache.c.
10787 (output_source_filename, sources_info)
10788 (maybe_add_partial_symtab_filename)
10789 (make_source_files_completion_list): Adjust to use
10790 filename_seen_cache.
10791
10792 2017-07-17 Pedro Alves <palves@redhat.com>
10793
10794 * dwarf2read.c (dwarf2_per_objfile): In-class initialize all
10795 fields.
10796 (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const
10797 dwarf2_debug_sections*)): New.
10798 (dwarf2_per_objfile::dwarf2_per_objfile(const
10799 dwarf2_per_objfile&)): Declare as deleted.
10800 (dwarf2_per_objfile::operator=): Declare as deleted.
10801 (dwarf2_per_objfile::dwarf2_per_objfile)
10802 (dwarf2_per_objfile::~dwarf2_per_objfile)
10803 (dwarf2_per_objfile::free_cached_comp_units): New.
10804 (dwarf2_has_info): dwarf2_per_objfile initialization code moved to
10805 ctor. Call dwarf2_per_objfile's ctor manually.
10806 (dwarf2_locate_sections): Deleted/refactored as ...
10807 (dwarf2_per_objfile::locate_sections): ... this new method.
10808 (free_cached_comp_units): Defer to
10809 dwarf2_per_objfile::free_cached_comp_units.
10810 (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually.
10811
10812 2017-07-14 Tom Tromey <tom@tromey.com>
10813
10814 PR rust/21764:
10815 * rust-exp.y (convert_ast_to_expression): Add "want_type"
10816 parameter.
10817 <UNOP_SIZEOF>: Split into separate case.
10818 <UNOP_VAR_VALUE>: Handle want_type. Add error case.
10819
10820 2017-07-14 Tom Tromey <tom@tromey.com>
10821
10822 PR rust/21763:
10823 * symtab.c (symbol_matches_domain): Add language_rust to special
10824 case.
10825 * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't
10826 treat LOC_TYPEDEF symbols as variables.
10827
10828 2017-07-14 Pedro Alves <palves@redhat.com>
10829
10830 * symtab.c (make_file_symbol_completion_list_1): Iterate over
10831 symtabs matching all symtabs with SRCFILE as file name instead of
10832 only considering the first hit, with lookup_symtab.
10833
10834 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
10835
10836 * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and
10837 operator_name parameters.
10838 (gen_expr): Update function call.
10839
10840 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
10841
10842 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch
10843 parameter.
10844 * symtab.h (struct symbol_computed_ops::tracepoint_var_ref):
10845 Likewise.
10846 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch
10847 parameter, use agent_expr::gdbarch instead, update function
10848 calls.
10849 (locexpr_tracepoint_var_ref): Likewise.
10850 (loclist_tracepoint_var_ref): Likewise.
10851 * ax-gdb.c (gen_trace_static_fields): Likewise.
10852 (gen_traced_pop): Likewise.
10853 (gen_frame_args_address): Likewise.
10854 (gen_frame_locals_address): Likewise.
10855 (gen_var_ref): Likewise.
10856 (gen_struct_ref_recursive): Likewise.
10857 (gen_static_field): Likewise.
10858 (gen_maybe_namespace_elt): Likewise.
10859 (gen_expr): Likewise.
10860 (gen_trace_for_var): Likewise.
10861 (gen_trace_for_expr): Likewise.
10862 (gen_trace_for_return_address): Likewise.
10863
10864 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
10865
10866 * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax
10867 parameter.
10868 (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call.
10869
10870 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
10871
10872 * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch
10873 from ax, update calls.
10874 (gen_usual_arithmetic): Likewise.
10875 (gen_integral_promotions): Likewise.
10876 (gen_bitfield_ref): Likewise.
10877 (gen_primitive_field): Likewise.
10878 (gen_struct_ref_recursive): Likewise.
10879 (gen_struct_ref): Likewise.
10880 (gen_maybe_namespace_elt): Likewise.
10881 (gen_struct_elt_for_reference): Likewise.
10882 (gen_namespace_elt): Likewise.
10883 (gen_aggregate_elt_ref): Likewise.
10884 (gen_expr): Get gdbarch from ax, update calls.
10885 (gen_expr_binop_rest): Likewise.
10886
10887 2017-07-13 Pedro Alves <palves@redhat.com>
10888
10889 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64
10890 as default tdesc.
10891 * amd64-dicos-tdep.c (amd64_dicos_init_abi):
10892 * amd64-fbsd-tdep.c (amd64fbsd_init_abi):
10893 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass
10894 tdesc_amd64_linux as default tdesc. Get final tdesc from the
10895 tdep.
10896 (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc.
10897 Get final tdesc from the tdep.
10898 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as
10899 default tdesc.
10900 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
10901 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
10902 * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter.
10903 Use it as default tdesc.
10904 (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it
10905 down to amd_init_abi. No longer handle fallback tdesc here.
10906 * amd64-tdep.h (tdesc_x32): Declare.
10907 (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc'
10908 parameter.
10909 * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64
10910 as default tdesc.
10911
10912 2017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10913
10914 * s390-linux-tdep.c (s390_process_record): Add support for
10915 instructions new in arch12.
10916
10917 2017-07-11 John Baldwin <jhb@FreeBSD.org>
10918
10919 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
10920 PT_GETFSBASE and PT_GETGSBASE.
10921 (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and
10922 PT_SETGSBASE.
10923
10924 2017-07-11 John Baldwin <jhb@FreeBSD.org>
10925
10926 * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat)
10927 (amd64-avx-mpx.dat, amd64-avx-avx512.dat)
10928 (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in
10929 those rules.
10930 * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml.
10931 * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml.
10932 * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml.
10933 * features/i386/amd64-avx.xml: Add 64bit-segments.xml.
10934 * features/i386/amd64-mpx.xml: Add 64bit-segments.xml.
10935 * features/i386/amd64.xml: Add 64bit-segments.xml.
10936 * features/i386/amd64-avx-avx512.c: Regenerated.
10937 * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated.
10938 * features/i386/amd64-avx-mpx.c: Regenerated.
10939 * features/i386/amd64-avx.c: Regenerated.
10940 * features/i386/amd64-mpx.c: Regenerated.
10941 * features/i386/amd64.c: Regenerated.
10942 * regformats/i386/amd64-avx-avx512.dat: Regenerated.
10943 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
10944 * regformats/i386/amd64-avx-mpx.dat: Regenerated.
10945 * regformats/i386/amd64-avx.dat: Regenerated.
10946 * regformats/i386/amd64-mpx.dat: Regenerated.
10947 * regformats/i386/amd64.dat: Regenerated.
10948
10949 2017-07-10 Yao Qi <yao.qi@linaro.org>
10950
10951 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
10952 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
10953
10954 2017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com>
10955
10956 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and
10957 unsetenv.
10958 * gnulib/aclocal.m4: Regenerate.
10959 * gnulib/config.in: Regenerate.
10960 * gnulib/configure: Regenerate.
10961 * gnulib/import/Makefile.am: Regenerate.
10962 * gnulib/import/Makefile.in: Regenerate.
10963 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
10964 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
10965 * gnulib/import/m4/environ.m4: New file.
10966 * gnulib/import/m4/setenv.m4: New file.
10967 * gnulib/import/setenv.c: New file.
10968 * gnulib/import/unsetenv.c: New file.
10969
10970 2017-07-09 Simon Marchi <simon.marchi@ericsson.com>
10971
10972 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read
10973 address when op is DW_OP_addr.
10974
10975 2017-07-09 Tom Tromey <tom@tromey.com>
10976
10977 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size
10978 check and apply to outer type.
10979
10980 2017-07-07 John Baldwin <jhb@FreeBSD.org>
10981
10982 * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS)
10983 (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI)
10984 (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New.
10985 (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method.
10986
10987 2017-07-07 John Baldwin <jhb@FreeBSD.org>
10988
10989 * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name.
10990
10991 2017-07-07 John Baldwin <jhb@FreeBSD.org>
10992
10993 * corelow.c (get_core_siginfo): Remove.
10994 (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method
10995 instead of get_core_siginfo.
10996 * gdbarch.sh (core_xfer_siginfo): New gdbarch callback.
10997 * gdbarch.h: Re-generate.
10998 * gdbarch.c: Re-generate.
10999 * linux-tdep.c (linux_core_xfer_siginfo): New.
11000 (linux_init_abi): Install gdbarch "core_xfer_siginfo" method.
11001
11002 2017-07-07 John Baldwin <jhb@FreeBSD.org>
11003
11004 * corelow.c (thread_section_name): Move to ...
11005 * gdbcore.h (thread_section_name): ... here.
11006
11007 2017-07-07 John Baldwin <jhb@FreeBSD.org>
11008
11009 * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32)
11010 (struct siginfo32): New.
11011 [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New.
11012 (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO
11013 via ptrace(PT_LWPINFO).
11014
11015 2017-07-07 John Baldwin <jhb@FreeBSD.org>
11016
11017 * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data)
11018 (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data)
11019 (fbsd_get_siginfo_type): New.
11020 (fbsd_init_abi): Install gdbarch "get_siginfo_type" method.
11021 (_initialize_fbsd_tdep): New.
11022
11023 2017-07-06 David Blaikie <dblaikie@gmail.com>
11024
11025 * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than
11026 a singular dwo_unit*) to support multiple CUs in the same way that
11027 multiple TUs are supported.
11028 (create_cus_hash_table): Replace create_dwo_cu with a function for
11029 parsing multiple CUs from a DWO file.
11030 (open_and_init_dwo_file): Use create_cus_hash_table rather than
11031 create_dwo_cu.
11032 (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with
11033 htab_find, rather than comparing the signature to a singleton CU in
11034 the dwo_file.
11035
11036 2017-07-06 Pedro Alves <palves@redhat.com>
11037
11038 * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition.
11039
11040 2017-07-04 Pedro Alves <palves@redhat.com>
11041
11042 * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC.
11043 * gdbtypes.h (TYPE_STATIC): Delete.
11044 (struct fn_field) <is_public, is_abstract, is_static, is_final,
11045 is_synchronized, is_native>: Delete.
11046 <dummy>: Bump.
11047 (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL)
11048 (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE)
11049 (TYPE_FN_FIELD_ABSTRACT): Delete.
11050
11051 2017-07-03 Simon Marchi <simon.marchi@ericsson.com>
11052
11053 * buffer.h (buffer_finish): Fix spelling mistakes.
11054
11055 2017-07-01 Eli Zaretskii <eliz@gnu.org>
11056
11057 * .dir-locals.el: Automatically switch to C-style comments in
11058 versions of Emacs that support the feature.
11059
11060 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
11061 Pedro Alves <palves@redhat.com>
11062
11063 PR cli/21688
11064 * cli/cli-script.c (command_name_equals_not_inline): Remove function.
11065 (process_next_line): New variable 'inline_cmd'.
11066 Adjust 'if' clauses for "python", "compile" and "guile" to use
11067 'command_name_equals' and check for '!inline_cmd'.
11068
11069 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
11070
11071 PR cli/21688
11072 * cli/cli-script.c (command_name_equals_not_inline): New function.
11073 (process_next_line): Adjust 'if' clauses for "python", "compile"
11074 and "guile" to use command_name_equals_not_inline.
11075
11076 2017-06-29 Pedro Alves <palves@redhat.com>
11077
11078 * completer.c (expression_completer): Call
11079 linespec_location_completer instead of location_completer.
11080
11081 2017-06-29 Pedro Alves <palves@redhat.com>
11082
11083 * completer.c (expression_completer): Remove code that recomputes
11084 'text' from 'word'.
11085
11086 2017-06-29 Yao Qi <yao.qi@linaro.org>
11087
11088 * regformats/regdat.sh: Generate code with
11089 "ifndef IN_PROCESS_AGENT".
11090
11091 2017-06-28 Pedro Alves <palves@redhat.com>
11092
11093 * command.h: Include "common/scoped_restore.h".
11094
11095 2017-06-28 Yao Qi <yao.qi@linaro.org>
11096
11097 * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str
11098 instead of obstack_grow.
11099
11100 2017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com>
11101
11102 PR gdb/21337
11103 * symfile.c (reread_symbols): Call objfiles_changed just before
11104 read_symbols.
11105
11106 2017-06-27 Pedro Alves <palves@redhat.com>
11107
11108 * symtab.c (COMPLETION_LIST_ADD_SYMBOL)
11109 (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ...
11110 (completion_list_add_symbol, completion_list_add_msymbol):
11111 ... these new functions.
11112 (add_symtab_completions)
11113 (default_make_symbol_completion_list_break_on_1): Adjust.
11114
11115 2017-06-27 Pedro Alves <palves@redhat.com>
11116
11117 * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of
11118 bfd_zalloc. Call objfile_per_bfd_storage's ctor.
11119 (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's
11120 dtor.
11121 * objfiles.h (objfile_per_bfd_storage): Add ctor. Make
11122 'storage_obstack' field an auto_obstack. In-class initialize all
11123 non-bitfield fields. Make minsyms_read bool.
11124 * symfile.c (read_symbols): Adjust.
11125
11126 2017-06-27 Alan Hayward <alan.hayward@arm.com>
11127
11128 * remote-sim.c (gdbsim_fetch_register): Use byte_vector.
11129 (gdbsim_store_register): Likewise.
11130
11131 2017-06-27 Pedro Alves <palves@redhat.com>
11132
11133 * c-exp.y (name_obstack): Now an auto_obstack.
11134 (yylex): Use auto_obstack::clear.
11135 (c_parse): Use auto_obstack::clear instead of reinitializing and
11136 freeing the obstack.
11137 * c-lang.c (evaluate_subexp_c): Use auto_obstack.
11138 * d-exp.y (name_obstack): Now an auto_obstack.
11139 (yylex): Use auto_obstack::clear.
11140 (d_parse): Use auto_obstack::clear instead of reinitializing and
11141 freeing the obstack.
11142 * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use
11143 auto_obstack.
11144 * dwarf2read.c (create_addrmap_from_index)
11145 (dwarf2_build_psymtabs_hard)
11146 (update_enumeration_type_from_children): Likewise.
11147 * gdb_obstack.h (auto_obstack): New type.
11148 * go-exp.y (name_obstack): Now an auto_obstack.
11149 (build_packaged_name): Use auto_obstack::clear.
11150 (go_parse): Use auto_obstack::clear instead of reinitializing and
11151 freeing the obstack.
11152 * linux-tdep.c (linux_make_mappings_corefile_notes): Use
11153 auto_obstack.
11154 * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack.
11155 * rust-exp.y (work_obstack): Now an auto_obstack.
11156 (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of
11157 reinitializing and freeing the obstack.
11158 * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete.
11159 (host_char_to_target): Use auto_obstack.
11160 * utils.h (make_cleanup_obstack_free): Delete declaration.
11161 * valprint.c (generic_emit_char, generic_printstr): Use
11162 auto_obstack.
11163
11164 2017-06-27 Simon Marchi <simon.marchi@ericsson.com>
11165
11166 * darwin-nat.c (darwin_check_new_threads): Don't handle dummy
11167 thread.
11168 (darwin_init_thread_list): Don't update dummy thread.
11169 (darwin_create_inferior, darwin_attach): Don't add a dummy thread.
11170
11171 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
11172
11173 * record-full.c (netorder16): Remove.
11174
11175 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
11176
11177 * common/diagnostics.h: Define macros for GCC.
11178 (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro.
11179 * common/vec.h: Include diagnostics.h.
11180 (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro.
11181 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function
11182 warning.
11183
11184 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
11185
11186 * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER):
11187 New macro.
11188 * ada-lex.l: Ignore deprecated register warnings.
11189
11190 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
11191
11192 * main.c (get_init_files): Replace "SYSTEM_GDBINIT +
11193 datadir_len" with "&SYSTEM_GDBINIT[datadir_len]".
11194
11195 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
11196
11197 * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on
11198 its own line.
11199
11200 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
11201
11202 * nat/x86-dregs.c (x86_show_dr): Print registers one per line.
11203
11204 2017-06-23 Alan Hayward <alan.hayward@arm.com>
11205
11206 * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add.
11207 (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE.
11208 (xtensa_register_read_masked): Likewise.
11209
11210 2017-06-22 Sergio Durigan Junior <sergiodj@redhat.com>
11211
11212 * common/environ.c (gdb_environ::unset): Update comment.
11213
11214 2017-06-22 Alan Hayward <alan.hayward@arm.com>
11215
11216 * python/py-unwind.c (pyuw_sniffer): Allocate space for
11217 registers.
11218
11219 2017-06-22 Alan Hayward <alan.hayward@arm.com>
11220
11221 * record-full.c (record_full_exec_insn): Use byte_vector.
11222
11223 2017-06-22 Yao Qi <yao.qi@linaro.org>
11224
11225 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated.
11226 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
11227
11228 2017-06-22 Alan Hayward <alan.hayward@arm.com>
11229
11230 * remote.c (cached_reg): Move from here...
11231 * regcache.h (cached_reg): ...to here.
11232 * python/py-unwind.c (struct reg_info): Remove.
11233 (cached_frame_info): Use cached_reg_t.
11234 (pyuw_prev_register): Likewise.
11235 (pyuw_sniffer): Use cached_reg_t and allocate registers.
11236 (pyuw_dealloc_cache): Free all registers.
11237
11238 2017-06-22 Pedro Alves <palves@redhat.com>
11239 Simon Marchi <simon.marchi@ericsson.com>
11240
11241 * unittests/environ-selftests.c (run_tests): Ignore -Wself-move
11242 warning.
11243 * common/diagnostics.h: New file.
11244
11245 2017-06-22 Pedro Alves <palves@redhat.com>
11246
11247 * common/agent.h: Add include guards.
11248
11249 2017-06-21 Simon Marchi <simon.marchi@ericsson.com>
11250
11251 * target.h (struct target_ops) <to_xfer_partial>: Update doc to
11252 talk about addressable units instead of bytes.
11253
11254 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
11255
11256 * common/environ.c (gdb_environ::unset): Use '::iterator' instead
11257 of '::const_iterator'.
11258
11259 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
11260
11261 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11262 'unittests/environ-selftests.c'.
11263 (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'.
11264 * charset.c (find_charset_names): Declare object 'iconv_env'.
11265 Update code to use 'iconv_env' object. Remove call to
11266 'free_environ'.
11267 * common/environ.c: Include <utility>.
11268 (make_environ): Delete function.
11269 (free_environ): Delete function.
11270 (gdb_environ::clear): New function.
11271 (gdb_environ::operator=): New function.
11272 (gdb_environ::get): Likewise.
11273 (environ_vector): Delete function.
11274 (set_in_environ): Delete function.
11275 (gdb_environ::set): New function.
11276 (unset_in_environ): Delete function.
11277 (gdb_environ::unset): New function.
11278 (gdb_environ::envp): Likewise.
11279 * common/environ.h: Include <vector>.
11280 (struct gdb_environ): Delete; transform into...
11281 (class gdb_environ): ... this class.
11282 (free_environ): Delete prototype.
11283 (init_environ, get_in_environ, set_in_environ, unset_in_environ,
11284 environ_vector): Likewise.
11285 * infcmd.c (run_command_1): Update code to call
11286 'envp' from 'gdb_environ' class.
11287 (environment_info): Update code to call methods from 'gdb_environ'
11288 class.
11289 (unset_environment_command): Likewise.
11290 (path_info): Likewise.
11291 (path_command): Likewise.
11292 * inferior.c (inferior::~inferior): Delete call to 'free_environ'.
11293 (inferior::inferior): Initialize 'environment' using the host's
11294 information.
11295 * inferior.h: Remove forward declaration of 'struct gdb_environ'.
11296 Include "environ.h".
11297 (class inferior) <environment>: Change type from 'struct
11298 gdb_environ' to 'gdb_environ'.
11299 * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call
11300 methods from 'gdb_environ' class.
11301 * solib.c (solib_find_1): Likewise
11302 * unittests/environ-selftests.c: New file.
11303
11304 2017-06-20 Yao Qi <yao.qi@linaro.org>
11305
11306 * features/i386/i386-linux.xml: Exchange the order of including
11307 32bit-linux.xml and 32bit-sse.xml.
11308 * features/i386/i386-linux.c: Regenerated.
11309
11310 2017-06-20 Yao Qi <yao.qi@linaro.org>
11311
11312 * target-descriptions.c (tdesc_reg): Add ctor, dtor.
11313 Delete copy ctor and assignment operator.
11314 (tdesc_type): Likewise.
11315 (tdesc_feature): Likewise.
11316 (tdesc_free_reg): Remove.
11317 (tdesc_create_reg): Use new.
11318 (tdesc_free_type): Remove.
11319 (tdesc_create_vector): Use new.
11320 (tdesc_create_union): Likewise.
11321 (tdesc_create_flags): Likewise.
11322 (tdesc_create_enum): Likewise.
11323 (tdesc_free_feature): Delete.
11324 (free_target_description): Use delete.
11325
11326 2017-06-19 John Baldwin <jhb@FreeBSD.org>
11327
11328 * mips-tdep.c (print_gp_register_row): Don't error for unavailable
11329 registers.
11330
11331 2017-06-19 Pedro Alves <palves@redhat.com>
11332
11333 * dwarf2read.c (write_psymtabs_to_index): Construct file_closer
11334 after gdb::unlinker.
11335
11336 2017-06-19 Sergio Durigan Junior <sergiodj@redhat.com>
11337
11338 * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of
11339 gdb_environ to access an environment variable.
11340
11341 2017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
11342
11343 * nat/linux-ptrace.c (linux_fork_to_function): Add cast to
11344 gdb_byte*.
11345
11346 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
11347
11348 * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF.
11349
11350 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
11351
11352 * configure: Re-generate.
11353 * warning.m4 (build_warnings): Add -Wno-mismatched-tags.
11354
11355 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
11356
11357 * configure: Re-generate.
11358 * warning.m4: Pass -Werror to compiler when checking for
11359 supported warning flags.
11360
11361 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
11362
11363 * Makefile.in (COMPILE.pre): Add "-x c++".
11364
11365 2017-06-16 Alan Hayward <alan.hayward@arm.com>
11366 Pedro Alves <palves@redhat.com>
11367 Yao Qi <yao.qi@linaro.org>
11368
11369 * defs.h (RequireLongest): New.
11370 (extract_integer): Declare function template.
11371 (extract_signed_integer): Remove the declaration, but define it
11372 static inline.
11373 (extract_unsigned_integer): Likewise.
11374 (store_integer): Declare function template.
11375 (store_signed_integer): Remove the declaration, but define it
11376 static inline.
11377 (store_unsigned_integer): Likewise.
11378 * findvar.c (extract_integer): New function template.
11379 (extract_signed_integer): Remove.
11380 (extract_unsigned_integer): Remove.
11381 (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit
11382 instantiations.
11383 (store_integer): New function template.
11384 (store_signed_integer): Remove.
11385 (store_unsigned_integer): Remove.
11386 (store_integer): Explicit instantiations.
11387 * regcache.c (regcache_raw_read_signed): Update.
11388 (regcache::raw_read): New function.
11389 (regcache::raw_read_signed): Remove.
11390 (regcache::raw_read_unsigned): Remove.
11391 (regcache_raw_read_unsigned): Update.
11392 (regcache_raw_write_unsigned): Update.
11393 (regcache::raw_write_signed): Remove.
11394 (regcache::raw_write): New function.
11395 (regcache_cooked_read_signed): Update.
11396 (regcache::raw_write_unsigned): Remove.
11397 (regcache::cooked_read_signed): Remove.
11398 (regcache_cooked_read_unsigned): Update.
11399 (regcache::cooked_read_unsigned): Remove.
11400 (regcache_cooked_write_signed): Update.
11401 (regcache_cooked_write_unsigned): Update.
11402 * regcache.h (regcache) <raw_read_signed>: Remove.
11403 <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove.
11404 <raw_read, raw_write>: New.
11405 <cooked_read_signed, cooked_write_signed>: Remove.
11406 <cooked_write_unsigned, cooked_read_unsigned>: Remove.
11407 <cooked_read, cooked_write>: New.
11408 * sh64-tdep.c (sh64_pseudo_register_read): Update.
11409 (sh64_pseudo_register_write): Update.
11410
11411 2017-06-16 Anton Kolesov <anton.kolesov@synopsys.com>
11412
11413 * arc-tdep.c (arc_disassembler_options): New variable.
11414 (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead
11415 of default_print_insn.
11416 (arc_delayed_print_insn): Set info->section when needed,
11417 use default_print_insn to retrieve a disassembler.
11418
11419 2017-06-14 Sergio Durigan Junior <sergiodj@redhat.com>
11420
11421 PR gdb/21574
11422 * infcmd.c (_initialize_infcmd): Expand "help run" documentation
11423 to mention $SHELL and startup-with-shell.
11424
11425 2017-06-14 Max Filippov <jcmvbkbc@gmail.com>
11426
11427 * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers.
11428
11429 2017-06-14 Yao Qi <yao.qi@linaro.org>
11430
11431 * aarch64-tdep.c (aarch64_gdb_print_insn): Call
11432 default_print_insn instead of print_insn_aarch64.
11433 * arm-tdep.c (gdb_print_insn_arm): Call
11434 default_print_insn instead of print_insn_big_arm
11435 and print_insn_little_arm.
11436 * i386-tdep.c (i386_print_insn): Call default_print_insn
11437 instead of print_insn_i386.
11438 * ia64-tdep.c (ia64_print_insn): Call
11439 default_print_insn instead of print_insn_ia64.
11440 * mips-tdep.c (gdb_print_insn_mips): Call
11441 default_print_insn instead of print_insn_big_mips
11442 and print_insn_little_mips.
11443 * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn
11444 instead of print_insn_spu.
11445
11446 2017-06-14 Pedro Alves <palves@redhat.com>
11447
11448 * ada-lang.c: Include "common/byte-vector.h".
11449 (ada_value_primitive_packed_val): Use gdb::byte_vector.
11450 * charset.c (wchar_iterator::iterate): Resize the vector instead
11451 of reserving it.
11452 * common/byte-vector.h: Include "common/def-vector.h".
11453 (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>.
11454 * cli/cli-dump.c: Include "common/byte-vector.h".
11455 (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector.
11456 * common/byte-vector.h: New file.
11457 * common/def-vector.h: New file.
11458 * common/default-init-alloc.h: New file.
11459 * dwarf2loc.c: Include "common/byte-vector.h".
11460 (rw_pieced_value): Use gdb::byte_vector, and resize the vector
11461 instead of reserving it.
11462 * dwarf2read.c: Include "common/byte-vector.h".
11463 (data_buf::m_vec): Now a gdb::byte_vector.
11464 * gdb_regex.c: Include "common/def-vector.h".
11465 (compiled_regex::compiled_regex): Use gdb::def_vector<char>.
11466 * mi/mi-main.c: Include "common/byte-vector.h".
11467 (mi_cmd_data_read_memory): Use gdb::byte_vector.
11468 * printcmd.c: Include "common/byte-vector.h".
11469 (print_scalar_formatted): Use gdb::byte_vector.
11470 * valprint.c: Include "common/byte-vector.h".
11471 (maybe_negate_by_bytes, print_decimal_chars): Use
11472 gdb::byte_vector.
11473
11474 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
11475
11476 * darwin-nat.c: Include "nat/fork-inferior.h".
11477
11478 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
11479
11480 * configure.nat: Factor out Darwin bits that are not
11481 architecture-specific. Add fork-inferior.o.
11482
11483 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
11484
11485 * configure.nat: Factor out AIX bits that are not
11486 architecture-specific. Add fork-inferior.o.
11487
11488 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11489
11490 * dwarf2loc.c (rw_pieced_value): New. Merge logic from...
11491 (read_pieced_value, write_pieced_value): ...here. Reduce to
11492 wrappers that just call rw_pieced_value.
11493
11494 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11495
11496 * dwarf2loc.c (write_pieced_value): When writing the data for a
11497 memory piece, use write_memory_with_notification instead of
11498 write_memory.
11499
11500 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11501
11502 * valops.c (read_value_memory): Change embedded_offset to
11503 represent a bit offset instead of a byte offset.
11504 * value.h (read_value_memory): Adjust comment.
11505
11506 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11507
11508 * dwarf2loc.c (read_pieced_value): Remove unnecessary variables
11509 dest_offset_bits and source_offset_bits.
11510 (write_pieced_value): Likewise.
11511
11512 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11513
11514 * dwarf2loc.c (read_pieced_value): Respect the piece offset, as
11515 given by DW_OP_bit_piece.
11516 (write_pieced_value): Likewise.
11517
11518 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11519
11520 * dwarf2loc.c (read_pieced_value): Move the buffer allocation and
11521 some other preparations to the places where sufficient information
11522 is available.
11523 (write_pieced_value): Likewise.
11524
11525 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11526
11527 * dwarf2loc.c (bits_to_bytes): New function.
11528 (read_pieced_value): Fix offset calculations for register pieces
11529 on big-endian targets.
11530 (write_pieced_value): Likewise.
11531
11532 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11533
11534 * dwarf2loc.c (read_pieced_value): Remove buffer_size variable.
11535 (write_pieced_value): Likewise.
11536
11537 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11538
11539 * dwarf2loc.c (write_pieced_value): When writing to a bit-field,
11540 transfer the source value's least significant bits, instead of its
11541 lowest-addressed ones. Rename type_len to max_offset.
11542 (read_pieced_value): Mirror above changes to write_pieced_value as
11543 applicable.
11544
11545 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11546
11547 * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY,
11548 truncate full bytes from dest_offset_bits before using it as an
11549 offset into the buffer.
11550
11551 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11552
11553 * dwarf2loc.c (write_pieced_value): Include transfer size in
11554 byte-wise check.
11555
11556 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11557
11558 * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the
11559 calculation of this_size.
11560
11561 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11562
11563 * dwarf2loc.c (read_pieced_value): Respect parent value's offset
11564 when targeting a bit-field.
11565 (write_pieced_value): Likewise.
11566
11567 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11568
11569 * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field.
11570 (allocate_piece_closure): Drop addr_size parameter.
11571 (dwarf2_evaluate_loc_desc_full): Adjust call to
11572 allocate_piece_closure.
11573
11574 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11575
11576 PR gdb/21226
11577 * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at
11578 the LSB end, independent of endianness.
11579
11580 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11581
11582 * dwarf2loc.c (write_pieced_value): Fix order of calculations for
11583 size capping.
11584
11585 2017-06-13 Yao Qi <yao.qi@linaro.org>
11586
11587 * mips-linux-nat.c: Move include features/mips*-linux.c to
11588 mips-linux-tdep.c.
11589 (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls
11590 to mips-linux-tdep.c.
11591 * mips-linux-tdep.c: Include features/mips*-linux.c
11592 (_initialize_mips_linux_tdep): Call initialize_tdesc_mips*
11593 functions.
11594 * mips-linux-tdep.h (tdesc_mips_linux): Declare.
11595 (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare.
11596 (tdesc_mips64_dsp_linux): Declare.
11597
11598 2017-06-12 Tom Tromey <tom@tromey.com>
11599
11600 * valprint.h (val_print_type_code_int): Remove.
11601 * valprint.c (generic_val_print_int): Always call
11602 val_print_scalar_formatted.
11603 (val_print_type_code_int): Remove.
11604 * printcmd.c (print_scalar_formatted): Handle options->format==0.
11605 * f-valprint.c (f_val_print): Use val_print_scalar_formatted.
11606 * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted.
11607 * ada-valprint.c (ada_val_print_num): Use
11608 val_print_scalar_formatted.
11609
11610 2017-06-12 Tom Tromey <tom@tromey.com>
11611
11612 * printcmd.c (print_scalar_formatted): Unify the two switches.
11613 Don't convert scalars to LONGEST.
11614
11615 2017-06-12 Tom Tromey <tom@tromey.com>
11616
11617 PR exp/16225:
11618 * valprint.h (print_decimal_chars): Update.
11619 * valprint.c (maybe_negate_by_bytes): New function.
11620 (print_decimal_chars): Add "is_signed" argument.
11621 * printcmd.c (print_scalar_formatted): Update.
11622
11623 2017-06-12 Tom Tromey <tom@tromey.com>
11624
11625 PR exp/16225:
11626 * valprint.h (print_binary_chars, print_hex_chars): Update.
11627 * valprint.c (val_print_type_code_int): Update.
11628 (print_binary_chars): Add "zero_pad" argument.
11629 (emit_octal_digit): New function.
11630 (print_octal_chars): Don't zero-pad.
11631 (print_decimal_chars): Likewise.
11632 (print_hex_chars): Add "zero_pad" argument.
11633 * sh64-tdep.c (sh64_do_fp_register): Update.
11634 * regcache.c (regcache::dump): Update.
11635 * printcmd.c (print_scalar_formatted): Update.
11636 * infcmd.c (default_print_one_register_info): Update.
11637
11638 2017-06-12 Pedro Alves <palves@redhat.com>
11639 Alan Hayward <alan.hayward@arm.com>
11640
11641 * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New.
11642 (mips_eabi_push_dummy_call): Rename local 'regsize' to
11643 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and
11644 use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it.
11645 Assert that abi_regsize bytes fit in 'ref_valbuf'.
11646
11647 2017-06-12 Pedro Alves <palves@redhat.com>
11648
11649 * dwarf2read.c (mapped_symtab::data): Now a vector of
11650 symtab_index_entry instead of vector of
11651 std::unique_ptr<symtab_index_entry>. All users adjusted to check
11652 whether an element's name is NULL instead of checking whether the
11653 element itself is NULL.
11654 (find_slot): Change return type. Adjust.
11655 (hash_expand, , add_index_entry, uniquify_cu_indices)
11656 (write_hash_table): Adjust.
11657
11658 2017-06-12 Pedro Alves <palves@redhat.com>
11659
11660 * dwarf2read.c (recursively_count_psymbols): New function.
11661 (write_psymtabs_to_index): Call it to compute number of psyms and
11662 pass estimate size of psyms_seen to unordered_set's ctor.
11663
11664 2017-06-12 Pedro Alves <palves@redhat.com>
11665
11666 * dwarf2read.c (write_hash_table): Check if key already exists
11667 before emplacing.
11668
11669 2017-06-12 Pedro Alves <palves@redhat.com>
11670
11671 * dwarf2read.c (data_buf::append_space): Rename to...
11672 (data_buf::grow): ... this, and make private. Adjust all callers.
11673 (data_buf::append_uint): New method.
11674 (add_address_entry, write_one_signatured_type)
11675 (write_psymtabs_to_index): Use it.
11676
11677 2017-06-12 Pedro Alves <palves@redhat.com>
11678
11679 * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete.
11680 (file_write (FILE *, const std::vector<Elem>&)): Delete.
11681 (data_buf::file_write): Call ::fwrite directly.
11682
11683 2017-06-12 Pedro Alves <palves@redhat.com>
11684
11685 * dwarf2read.c (uniquify_cu_indices): Use std::unique and
11686 std::vector::erase.
11687
11688 2017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11689
11690 Code cleanup: C++ify .gdb_index producer.
11691 * dwarf2read.c: Include <unordered_set> and <unordered_map>.
11692 (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type.
11693 (struct strtab_entry, hash_strtab_entry, eq_strtab_entry)
11694 (create_strtab, add_string): Remove.
11695 (file_write, data_buf): New.
11696 (struct symtab_index_entry): Use std::vector for cu_indices.
11697 (struct mapped_symtab): Use std::vector for data.
11698 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry)
11699 (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab):
11700 Remove.
11701 (find_slot): Change return type. Update it to the new data structures.
11702 (hash_expand, add_index_entry): Update it to the new data structures.
11703 (offset_type_compare): Remove.
11704 (uniquify_cu_indices): Update it to the new data structures.
11705 (c_str_view, c_str_view_hasher, vector_hasher): New.
11706 (add_indices_to_cpool): Remove.
11707 (write_hash_table): Update it to the new data structures.
11708 (struct psymtab_cu_index_map, hash_psymtab_cu_index)
11709 (eq_psymtab_cu_index): Remove.
11710 (psym_index_map): New typedef.
11711 (struct addrmap_index_data): Change addr_obstack pointer to data_buf
11712 reference and std::unordered_map for cu_index_htab.
11713 (add_address_entry, add_address_entry_worker, write_address_map)
11714 (write_psymbols): Update it to the new data structures.
11715 (write_obstack): Remove.
11716 (struct signatured_type_index_data): Change types_list to a data_buf
11717 reference and psyms_seen to a std::unordered_set reference.
11718 (write_one_signatured_type, recursively_write_psymbols)
11719 (write_psymtabs_to_index): Update it to the new data structures.
11720
11721 2017-06-11 Simon Marchi <simon.marchi@ericsson.com>
11722
11723 * NEWS (Changes since GDB 8.0): Announce {set,show} debug
11724 separate-debug-file commands.
11725 * symfile.h (separate_debug_file_debug): New global.
11726 * symfile.c (separate_debug_file_debug): New global.
11727 (separate_debug_file_exists, find_separate_debug_file): Add
11728 debug output.
11729 (_initialize_symfile): Add "set debug separate-debug-file"
11730 command.
11731 * build-id.c (build_id_to_debug_bfd,
11732 find_separate_debug_file_by_buildid): Add debug output.
11733
11734 2017-06-10 Simon Marchi <simon.marchi@polymtl.ca>
11735
11736 * gdbarch.sh (displaced_step_free_closure): Remove.
11737 * gdbarch.h, gdbarch.c: Re-generate.
11738 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set
11739 displaced_step_free_closure.
11740 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
11741 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
11742 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
11743 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
11744 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11745 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
11746 * arch-utils.h (simple_displaced_step_free_closure): Remove.
11747 * arch-utils.c (simple_displaced_step_free_closure): Remove.
11748 * infrun.c (displaced_step_clear): Call xfree instead of
11749 gdbarch_displaced_step_free_closure.
11750
11751 2017-06-08 Sergio Durigan Junior <sergiodj@redhat.com>
11752
11753 * common/common-utils.c (stringify_argv): Check for "arg[0] !=
11754 NULL".
11755
11756 2017-06-08 Alan Hayward <alan.hayward@arm.com>
11757
11758 * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add.
11759 (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE.
11760 (mn10300_push_dummy_call): Likewise.
11761
11762 2017-06-08 Alan Hayward <alan.hayward@arm.com>
11763
11764 * mi/mi-main.c (register_changed_p): Use value_contents_eq.
11765
11766 2017-06-08 Alan Hayward <alan.hayward@arm.com>
11767
11768 * mi/mi-main.c (register_changed_p): Use cooked_read_value.
11769
11770 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
11771
11772 * NEWS (Changes since GDB 8.0): Announce that GDBserver is now
11773 able to start inferiors using a shell.
11774 (New remote packets): Announce new packet "QStartupWithShell".
11775 * remote.c: Add PACKET_QStartupWithShell.
11776 (extended_remote_create_inferior): Handle new
11777 PACKET_QStartupWithShell.
11778 (remote_protocol_features) <QStartupWithShell>: New entry for
11779 PACKET_QStartupWithShell.
11780 (_initialize_remote): Call "add_packet_config_cmd" for
11781 QStartupShell.
11782
11783 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
11784 Pedro Alves <palves@redhat.com>
11785
11786 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h"
11787 and "nat/fork-inferior.h".
11788 * common/common-inferior.h: New file, with contents from
11789 "gdb/inferior.h".
11790 * commom/common-utils.c: Include "common-utils.h".
11791 (stringify_argv): New function.
11792 * common/common-utils.h (stringify_argv): New prototype.
11793 * configure.nat: Add "fork-inferior.o" as a dependency for
11794 "*linux*", "fbsd*" and "nbsd*" hosts.
11795 * corefile.c (get_exec_file): Update comment.
11796 * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior"
11797 instead of "startup_inferior".
11798 (darwin_create_inferior): Call "add_thread_silent" after
11799 "fork_inferior".
11800 * fork-child.c: Cleanup unnecessary includes.
11801 (SHELL_FILE): Move to "common/common-fork-child.c".
11802 (environ): Likewise.
11803 (exec_wrapper): Initialize.
11804 (get_exec_wrapper): New function.
11805 (breakup_args): Move to "common/common-fork-child.c"; rename to
11806 "breakup_args_for_exec".
11807 (escape_bang_in_quoted_argument): Move to
11808 "common/common-fork-child.c".
11809 (saved_ui): New variable.
11810 (prefork_hook): New function.
11811 (postfork_hook): Likewise.
11812 (postfork_child_hook): Likewise.
11813 (gdb_startup_inferior): Likewise.
11814 (fork_inferior): Move to "common/common-fork-child.c". Update
11815 function to support gdbserver.
11816 (startup_inferior): Likewise.
11817 * gdbcore.h (get_exec_file): Remove declaration.
11818 * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior"
11819 instead of "startup_inferior". Call "add_thread_silent" after
11820 "fork_inferior".
11821 * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h".
11822 (inf_ptrace_create_inferior): Call "gdb_startup_inferior"
11823 instead of "startup_inferior". Call "add_thread_silent" after
11824 "fork_inferior".
11825 * inferior.h: Include "common-inferior.h".
11826 (trace_start_error): Move to "common/common-utils.h".
11827 (trace_start_error_with_name): Likewise.
11828 (fork_inferior): Move prototype to "nat/fork-inferior.h".
11829 (startup_inferior): Likewise.
11830 (gdb_startup_inferior): New prototype.
11831 * nat/fork-inferior.c: New file, with contents from "fork-child.c".
11832 * nat/fork-inferior.h: New file.
11833 * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior"
11834 instead of "startup_inferior". Call "add_thread_silent" after
11835 "fork_inferior".
11836 * target.h (target_terminal_init): Move prototype to
11837 "target/target.h".
11838 (target_terminal_inferior): Likewise.
11839 (target_terminal_ours): Likewise.
11840 * target/target.h (target_terminal_init): New prototype, moved
11841 from "target.h".
11842 (target_terminal_inferior): Likewise.
11843 (target_terminal_ours): Likewise.
11844 * utils.c (gdb_flush_out_err): New function.
11845
11846 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
11847
11848 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h".
11849 * common/common-gdbthread.h: New file, with parts from
11850 "gdb/gdbthread.h".
11851 * gdbthread.h: Include "common-gdbthread.h".
11852 (switch_to_thread): Moved to "common/common-gdbthread.h".
11853
11854 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
11855
11856 * Makefile.in (SFILES): Add "common/job-control.c".
11857 (HFILES_NO_SRCDIR): Add "common/job-control.h".
11858 (COMMON_OBS): Add "job-control.o".
11859 * common/job-control.c: New file, with contents from
11860 "gdb/inflow.c".
11861 * common/job-control.h: New file, with contents from "terminal.h".
11862 * fork-child.c: Include "job-control.h".
11863 * inflow.c: Include "job-control.h".
11864 (gdb_setpgid): Move to "common/common-inflow.c".
11865 (_initialize_inflow): Move setting of "job_control" to
11866 "handle_job_control".
11867 * terminal.h (job_control): Moved to "common/common-terminal.h".
11868 (gdb_setpgid): Likewise.
11869 * top.c: Include "job_control.h".
11870 * utils.c: Likewise.
11871 (job_control): Moved to "job-control.c".
11872
11873 2017-06-07 Pedro Alves <palves@redhat.com>
11874
11875 * Makefile.in (SFILES): Add gdb_regex.c.
11876 (COMMON_OBS): Add gdb_regex.o.
11877 * ada-lang.c (ada_add_standard_exceptions)
11878 (ada_add_exceptions_from_frame, name_matches_regex)
11879 (ada_add_global_exceptions, ada_exceptions_list_1): Change regex
11880 parameter type to compiled_regex. Adjust.
11881 (ada_exceptions_list): Use compiled_regex.
11882 * break-catch-throw.c (exception_catchpoint::pattern): Now a
11883 std::unique_ptr<compiled_regex>.
11884 (exception_catchpoint::~exception_catchpoint): Remove regfree
11885 call.
11886 (check_status_exception_catchpoint): Adjust to use compiled_regex.
11887 (handle_gnu_v3_exceptions): Adjust to use compiled_regex.
11888 * breakpoint.c (solib_catchpoint::compiled): Now a
11889 std::unique_ptr<compiled_regex>.
11890 (solib_catchpoint::~solib_catchpoint): Remove regfree call.
11891 (check_status_catch_solib): Adjust to use compiled_regex.
11892 (add_solib_catchpoint): Adjust to use compiled_regex.
11893 * cli/cli-cmds.c (apropos_command): Use compiled_regex.
11894 * cli/cli-decode.c (apropos_cmd): Change regex parameter to
11895 compiled_regex reference. Adjust to use it.
11896 * cli/cli-decode.h: Remove struct re_pattern_buffer forward
11897 declaration. Include "gdb_regex.h".
11898 (apropos_cmd): Change regex parameter to compiled_regex reference.
11899 * gdb_regex.c: New file.
11900 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete
11901 declarations.
11902 (class compiled_regex): New.
11903 * linux-tdep.c: Include "common/gdb_optional.h".
11904 (struct mapping_regexes): New, factored out from
11905 mapping_is_anonymous_p, and adjusted to use compiled_regex.
11906 (mapping_is_anonymous_p): Use mapping_regexes wrapped in a
11907 gdb::optional and remove cleanups. Adjust to compiled_regex.
11908 * probe.c: Include "common/gdb_optional.h".
11909 (collect_probes): Use compiled_regex and gdb::optional and remove
11910 cleanups.
11911 * skip.c: Include "common/gdb_optional.h".
11912 (skiplist_entry::compiled_function_regexp): Now a
11913 gdb::optional<compiled_regex>.
11914 (skiplist_entry::compiled_function_regexp_is_valid): Delete field.
11915 (free_skiplist_entry): Remove regfree call.
11916 (compile_skip_regexp, skip_rfunction_p): Adjust to use
11917 compiled_regex and gdb::optional.
11918 * symtab.c: Include "common/gdb_optional.h".
11919 (search_symbols): Use compiled_regex and gdb::optional.
11920 * utils.c (do_regfree_cleanup, make_regfree_cleanup)
11921 (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved
11922 to gdb_regex.c.
11923
11924 2017-06-07 Alan Hayward <alan.hayward@arm.com>
11925
11926 * regcache.c (regcache::save): Avoid buffer use.
11927 (regcache::dump): Likewise.
11928
11929 2017-06-07 Alan Hayward <alan.hayward@arm.com>
11930
11931 * sh-tdep.c (sh_pseudo_register_read): Remove
11932 MAX_REGISTER_SIZE.
11933 (sh_pseudo_register_write): Likewise.
11934 * sh64-tdep.c (sh64_pseudo_register_read): Likewise.
11935 (sh64_pseudo_register_write): Likewise
11936
11937 2017-06-07 Alan Hayward <alan.hayward@arm.com>
11938
11939 * aarch64-tdep.c (aarch64_store_return_value): Use
11940 V_REGISTER_SIZE.
11941 (aarch64_pseudo_read_value): Likewise.
11942 (aarch64_pseudo_write): Likewise.
11943
11944 2017-06-06 Yao Qi <yao.qi@linaro.org>
11945
11946 * regformats/regdef.h (set_register_cache): Remove the
11947 declaration.
11948
11949 2017-06-06 Alan Hayward <alan.hayward@arm.com>
11950
11951 * frame.c (frame_unwind_register_signed): Use
11952 frame_unwind_register_value.
11953
11954 2017-06-06 Pedro Alves <palves@redhat.com>
11955
11956 PR breakpoints/21553
11957 * breakpoint.c (create_breakpoints_sal_default)
11958 (init_breakpoint_sal, create_breakpoint_sal): Use
11959 gdb::unique_xmalloc_ptr for string parameters.
11960 (create_breakpoint): Constify 'extra_string' and 'cond_string'
11961 parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
11962 (base_breakpoint_create_breakpoints_sal)
11963 (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
11964 (strace_marker_create_breakpoints_sal)
11965 (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
11966 string parameters.
11967 * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
11968 gdb::unique_xmalloc_ptr for string parameters.
11969 (create_breakpoint): Constify 'extra_string' and 'cond_string'
11970 parameters.
11971
11972 2017-06-06 Alan Hayward <alan.hayward@arm.com>
11973
11974 * alpha-tdep.c (alpha_register_to_value): Use
11975 get_frame_register_value.
11976 (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
11977
11978 2017-06-06 Alan Hayward <alan.hayward@arm.com>
11979
11980 * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
11981 (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
11982 (ia64_value_to_register): Likewise.
11983 (ia64_extract_return_value): Likewise.
11984 (ia64_store_return_value): Likewise.
11985 (ia64_push_dummy_call): Likewise.
11986
11987 2017-06-04 Joel Brobecker <brobecker@adacore.com>
11988
11989 GDB 8.0 released.
11990
11991 2017-06-03 Simon Marchi <simon.marchi@ericsson.com>
11992
11993 * x86-linux-nat.c (struct arch_lwp_info): Remove.
11994
11995 2017-06-03 Simon Marchi <simon.marchi@polymtl.ca>
11996
11997 * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
11998 parameter.
11999 (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
12000
12001 2017-06-02 Simon Marchi <simon.marchi@ericsson.com>
12002
12003 * event-loop.c (poll_timers): Unallocate timer using delete
12004 instead of xfree.
12005
12006 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
12007
12008 * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
12009 (struct breakpoint) <~breakpoint>: New.
12010 (struct watchpoint): Inherit from breakpoint.
12011 <~watchpoint>: New.
12012 <base>: Remove.
12013 (struct tracepoint): Inherit from breakpoint.
12014 <base>: Remove.
12015 * breakpoint.c (longjmp_breakpoint_ops): Remove.
12016 (struct longjmp_breakpoint): Inherit from breakpoint.
12017 <~longjmp_breakpoint>: New.
12018 <base>: Remove.
12019 (new_breakpoint_from_type): Remove casts.
12020 (watchpoint_in_thread_scope): Remove reference to base field.
12021 (watchpoint_del_at_next_stop): Likewise.
12022 (update_watchpoint): Likewise.
12023 (watchpoint_check): Likewise.
12024 (bpstat_check_watchpoint): Likewise.
12025 (set_longjmp_breakpoint): Likewise.
12026 (struct fork_catchpoint): Inherit from breakpoint.
12027 <base>: Remove.
12028 (struct solib_catchpoint): Inherit from breakpoint.
12029 <~solib_catchpoint>: New.
12030 <base>: Remove.
12031 (dtor_catch_solib): Change to ...
12032 (solib_catchpoint::~solib_catchpoint): ... this.
12033 (breakpoint_hit_catch_solib): Remove reference to base field.
12034 (add_solib_catchpoint): Likewise.
12035 (create_fork_vfork_event_catchpoint): Likewise.
12036 (struct exec_catchpoint): Inherit from breakpoint.
12037 <~exec_catchpoint>: New.
12038 <base>: Remove.
12039 (dtor_catch_exec): Change to ...
12040 (exec_catchpoint::~exec_catchpoint): ... this.
12041 (dtor_watchpoint): Change to ...
12042 (watchpoint::~watchpoint): ... this.
12043 (watch_command_1): Remove reference to base field.
12044 (catch_exec_command_1): Likewise.
12045 (base_breakpoint_dtor): Change to ...
12046 (breakpoint::~breakpoint): ... this.
12047 (base_breakpoint_ops): Remove dtor field value.
12048 (longjmp_bkpt_dtor): Change to ...
12049 (longjmp_breakpoint::~longjmp_breakpoint): ... this.
12050 (strace_marker_create_breakpoints_sal): Remove reference to base
12051 field.
12052 (delete_breakpoint): Don't manually call breakpoint destructor.
12053 (create_tracepoint_from_upload): Remove reference to base field.
12054 (trace_pass_set_count): Likewise.
12055 (initialize_breakpoint_ops): Don't initialize
12056 momentary_breakpoint_ops, don't set dtors.
12057 * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
12058 <~ada_catchpoint>: New.
12059 <base>: Remove.
12060 (create_excep_cond_exprs): Remove reference to base field.
12061 (dtor_exception): Change to ...
12062 (ada_catchpoint::~ada_catchpoint): ... this.
12063 (dtor_catch_exception): Remove.
12064 (dtor_catch_exception_unhandled): Remove.
12065 (dtor_catch_assert): Remove.
12066 (create_ada_exception_catchpoint): Remove reference to base
12067 field.
12068 (initialize_ada_catchpoint_ops): Don't set dtors.
12069 * break-catch-sig.c (struct signal_catchpoint): Inherit from
12070 breakpoint.
12071 <~signal_catchpoint>: New.
12072 <base>: Remove.
12073 (signal_catchpoint_dtor): Change to ...
12074 (signal_catchpoint::~signal_catchpoint): ... this.
12075 (create_signal_catchpoint): Remove reference to base field.
12076 (initialize_signal_catchpoint_ops): Don't set dtor.
12077 * break-catch-syscall.c (struct syscall_catchpoint): Inherit
12078 from breakpoint.
12079 <~syscall_catchpoint>: New.
12080 <base>: Remove.
12081 (dtor_catch_syscall): Change to ...
12082 (syscall_catchpoint::~syscall_catchpoint): ... this.
12083 (create_syscall_event_catchpoint): Remove reference to base
12084 field.
12085 (initialize_syscall_catchpoint_ops): Don't set dtor.
12086 * break-catch-throw.c (struct exception_catchpoint): Inherit
12087 from breakpoint.
12088 <~exception_catchpoint>: New.
12089 <base>: Remove.
12090 (dtor_exception_catchpoint): Change to ...
12091 (exception_catchpoint::~exception_catchpoint): ... this.
12092 (handle_gnu_v3_exceptions): Remove reference to base field.
12093 (initialize_throw_catchpoint_ops): Don't set dtor.
12094 * ctf.c (ctf_get_traceframe_address): Remove reference to base
12095 field.
12096 * remote.c (remote_get_tracepoint_status): Likewise.
12097 * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
12098 * tracefile.c (tracefile_fetch_registers): Likewise.
12099 * tracepoint.c (actions_command): Likewise.
12100 (validate_actionline): Likewise.
12101 (tfind_1): Likewise.
12102 (get_traceframe_location): Likewise.
12103 (find_matching_tracepoint_location): Likewise.
12104 (parse_tracepoint_status): Likewise.
12105 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
12106
12107 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
12108
12109 * breakpoint.c (struct longjmp_breakpoint): New struct.
12110 (is_tracepoint_type): Change return type to bool.
12111 (is_longjmp_type): New function.
12112 (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
12113 (set_raw_breakpoint_without_location): Use
12114 new_breakpoint_from_type.
12115 (set_raw_breakpoint): Likewise.
12116
12117 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
12118
12119 * breakpoint.c (new_breakpoint_from_type): New function.
12120 (create_breakpoint_sal): Use new_breakpoint_from_type and
12121 unique_ptr.
12122 (create_breakpoint): Likewise.
12123
12124 2017-05-31 Simon Marchi <simon.marchi@ericsson.com>
12125
12126 * memattr.c (mem_info_command): Rename to ...
12127 (info_mem_command): ... this.
12128 (mem_enable_command): Rename to ...
12129 (enable_mem_command): ... this.
12130 (mem_disable_command): Rename to ...
12131 (disable_mem_command): ... this.
12132 (mem_delete_command): Rename to ...
12133 (delete_mem_command): ... this.
12134 (_initialize_mem): Adjust function names.
12135
12136 2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
12137
12138 * btrace.c (handle_pt_insn_events): New.
12139 (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into
12140 STATUS. Split into this and ...
12141 (handle_pt_insn_event_flags): ... this.
12142
12143 2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
12144
12145 * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
12146 and struct pt_insn.resynced.
12147 * configure: Regenerated.
12148 * config.in: Regenerated.
12149
12150 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12151
12152 * btrace.c (ftrace_find_call_by_number): New function.
12153 (ftrace_new_function): Store objects, not pointers.
12154 (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
12155 ftrace_new_gap, ftrace_update_function,
12156 ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
12157 btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
12158 btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
12159 btrace_ends_with_single_insn, btrace_call_get): Account for
12160 btrace_thread_info::functions now storing objects.
12161 * btrace.h (struct btrace_thread_info): Add constructor.
12162 (struct btrace_thread_info) <functions>: Make std::vector.
12163 (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
12164 Initialize with default values.
12165 * record-btrace.c (record_btrace_frame_sniffer): Account for
12166 btrace_thread_info::functions now storing objects.
12167
12168 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12169
12170 * btrace.c: Remove typedef bfun_s.
12171 (ftrace_new_gap): Directly add gaps to the list of gaps.
12172 (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
12173 ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
12174 btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
12175 instead of gdb VEC.
12176
12177 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12178
12179 * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
12180 ftrace_bridge_gap): Replace references to btrace_thread_info::segment
12181 with btrace_thread_info::next_segment and
12182 btrace_thread_info::prev_segment.
12183 * btrace.h: Remove struct btrace_func_link.
12184 (struct btrace_function): Replace pair of function segment pointers
12185 with pair of indices.
12186 * python/py-record-btrace.c (btpy_call_prev_sibling,
12187 btpy_call_next_sibling): Replace references to
12188 btrace_thread_info::segment with btrace_thread_info::next_segment and
12189 btrace_thread_info::prev_segment.
12190 * record-btrace.c (record_btrace_frame_this_id): Use
12191 btrace_find_call_by_number.
12192
12193 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12194
12195 * btrace.c (ftrace_new_function, ftrace_fixup_level,
12196 ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
12197 btrace_insn_next, btrace_insn_prev): Remove references to
12198 btrace_thread_info::flow.
12199 * btrace.h (struct btrace_function): Remove FLOW.
12200
12201 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12202
12203 * btrace.c (ftrace_find_call_by_number): New function.
12204 (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
12205 ftrace_get_caller, ftrace_find_call, ftrace_new_return,
12206 ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
12207 ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
12208 index.
12209 * btrace.h (struct btrace_function): Turn UP into an index.
12210 * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
12211 as an index.
12212 * record-btrace.c (record_btrace_frame_unwind_stop_reason,
12213 record_btrace_frame_prev_register, record_btrace_frame_sniffer,
12214 record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
12215
12216 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12217
12218 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
12219 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
12220 ftrace_update_function, ftrace_compute_global_level_offset,
12221 btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
12222 btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
12223 btrace_insn_end, btrace_is_empty): Remove references to
12224 btrace_thread_info::begin and btrace_thread_info::end.
12225 * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
12226 (struct btrace_thread_info) <functions>: Adjust comment.
12227 * record-btrace.c (record_btrace_start_replaying): Remove reference to
12228 btrace_thread_info::begin.
12229
12230 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12231
12232 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
12233 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
12234 ftrace_update_function): Remove arguments that implicitly were always
12235 BTINFO->END.
12236 (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
12237 Don't pass BTINFO->END.
12238
12239 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12240
12241 * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
12242 btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
12243 btrace_find_insn_by_number): Replace function segment pointer with
12244 index.
12245 (btrace_insn_cmp): Simplify.
12246 * btrace.h: (struct btrace_insn_iterator) Rename index to
12247 insn_index. Replace function segment pointer with index into function
12248 segment vector.
12249 * record-btrace.c (record_btrace_call_history): Replace function
12250 segment pointer use with index.
12251 (record_btrace_frame_sniffer): Retrieve function call segment through
12252 vector.
12253 (record_btrace_set_replay): Remove defunc't safety check.
12254
12255 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12256
12257 * btrace.c (btrace_ends_with_single_insn): New function.
12258 (btrace_call_get, btrace_call_number, btrace_call_begin,
12259 btrace_call_end, btrace_call_next, btrace_call_prev,
12260 btrace_find_call_by_number): Use index into call segment vector
12261 instead of pointer.
12262 (btrace_call_cmp): Simplify.
12263 * btrace.h (struct btrace_call_iterator): Replace function call segment
12264 pointer with index into vector.
12265 * record-btrace.c (record_btrace_call_history): Use index instead of
12266 pointer.
12267
12268 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12269
12270 * btrace.c (btrace_insn_begin, btrace_insn_end,
12271 btrace_find_insn_by_number): Add btinfo to iterator.
12272 * btrace.h (struct btrace_insn_iterator): Add btinfo.
12273
12274 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12275
12276 * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
12277 and save pointers directly.
12278 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
12279 ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
12280 ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for
12281 changed signature of functions.
12282 (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
12283 (btrace_fetch): Remove code that adds btrace_function pointers to
12284 vector of btrace_functions.
12285 (btrace_clear): Simplify freeing vector of btrace_functions.
12286
12287 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12288
12289 * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
12290 Replace VEC_* with std::vector functions.
12291 * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
12292 (struct btrace_thread_info)<functions>: Change type to std::vector.
12293
12294 2017-05-30 Simon Marchi <simon.marchi@ericsson.com>
12295
12296 * NEWS (Changes in GDB 8.0): Remove extra empty line. Move
12297 "Removed targets and native configurations" up. Merge duplicate
12298 "New commands" sub-sections. Add "New options" sub-sections.
12299
12300 2017-05-26 Alan Hayward <alan.hayward@arm.com>
12301
12302 * defs.h (copy_integer_to_size): New declaration.
12303 * findvar.c (copy_integer_to_size): New function.
12304 (do_cint_test): New selftest function.
12305 (copy_integer_to_size_test): Likewise.
12306 (_initialize_findvar): Likewise.
12307 * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
12308 (mips_fbsd_collect_reg): Use raw_collect_integer.
12309 * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
12310 (mips64_fill_gregset): Use raw_collect_integer
12311 (mips64_fill_fpregset): Use raw_supply_integer.
12312 * regcache.c (regcache::raw_supply_integer): New function.
12313 (regcache::raw_collect_integer): Likewise.
12314 * regcache.h: (regcache::raw_supply_integer): New declaration.
12315 (regcache::raw_collect_integer): Likewise.
12316
12317 2017-05-24 Yao Qi <yao.qi@linaro.org>
12318
12319 * Makefile.in (SFILES): Add gdbarch-selftests.c.
12320 (COMMON_OBS): Add gdbarch-selftests.o.
12321 * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
12322 * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
12323 * gdbarch-selftests.c: New file.
12324 * regcache.h (regcache) <~regcache>: Mark it virtual if
12325 GDB_SELF_TEST.
12326 <raw_write>: Likewise.
12327
12328 2017-05-24 Yao Qi <yao.qi@linaro.org>
12329
12330 * regcache.c (current_regcache): Change it to
12331 regcache::current_regcache.
12332 (regcache_observer_target_changed): Update.
12333 (regcache_thread_ptid_changed): Make it a regcache static
12334 method.
12335 (regcache_thread_ptid_changed): Update.
12336 (class regcache_access): New.
12337 (current_regcache_test): Update.
12338 (_initialize_regcache): Update.
12339 * regcache.h: Include forward_list.
12340 (regcache): Declare regcache_thread_ptid_changed and declare
12341 registers_changed_ptid as friend.
12342
12343 2017-05-24 Yao Qi <yao.qi@linaro.org>
12344
12345 * i387-tdep.c (i387_register_to_value): Use register_size
12346 instead of TYPE_LENGTH.
12347 * m68k-tdep.c (m68k_register_to_value): Likewise.
12348
12349 2017-05-24 Yao Qi <yao.qi@linaro.org>
12350
12351 * i387-tdep.c (i387_convert_register_p): Return false if type
12352 code isn't TYPE_CODE_FLT.
12353
12354 2017-05-24 Yao Qi <yao.qi@linaro.org>
12355
12356 * alpha-tdep.c (alpha_convert_register_p): Return true if type
12357 length is 4.
12358 (alpha_register_to_value): Remove type length check.
12359 (alpha_value_to_register): Likewise.
12360
12361 2017-05-24 Yao Qi <yao.qi@linaro.org>
12362
12363 * ia64-tdep.c (ia64_convert_register_p): Check type's code is
12364 TYPE_CODE_FLT.
12365
12366 2017-05-24 Yao Qi <yao.qi@linaro.org>
12367
12368 * m68k-tdep.c (m68k_convert_register_p): Check type's code is
12369 TYPE_CODE_FLT or not.
12370
12371 2017-05-24 Yao Qi <yao.qi@linaro.org>
12372
12373 * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
12374 * avr-tdep.c (avr_gdbarch_init): Likewise.
12375 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12376 * cris-tdep.c (cris_gdbarch_init): Likewise.
12377 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
12378 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12379 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12380 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
12381 * mep-tdep.c (mep_gdbarch_init): Likewise.
12382 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12383 * mips-tdep.c (mips_gdbarch_init): Likewise.
12384 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
12385 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12386 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
12387 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12388 * v850-tdep.c (v850_gdbarch_init): Likewise.
12389
12390 2017-05-24 Yao Qi <yao.qi@linaro.org>
12391
12392 * selftest-arch.c (tests_with_arch): Call registers_changed
12393 and reinit_frame_cache.
12394 * selftest.c (run_self_tests): Likewise.
12395
12396 2017-05-24 Yao Qi <yao.qi@linaro.org>
12397
12398 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.
12399 (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn.
12400
12401 2017-05-24 Yao Qi <yao.qi@linaro.org>
12402
12403 * rl78-tdep.c (rl78_gdbarch_init): Don't call
12404 set_gdbarch_print_insn.
12405
12406 2017-05-24 Yao Qi <yao.qi@linaro.org>
12407
12408 * h8300-tdep.c (h8300_gdbarch_init): Don't call
12409 set_gdbarch_print_insn.
12410
12411 2017-05-24 Yao Qi <yao.qi@linaro.org>
12412
12413 * alpha-tdep.c (alpha_gdbarch_init): Don't call
12414 set_gdbarch_print_insn.
12415 * arc-tdep.c (arc_gdbarch_init): Likewise.
12416 * arch-utils.c: include dis-asm.h.
12417 (default_print_insn): New function.
12418 * arch-utils.h (default_print_insn): Declare.
12419 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
12420 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12421 * cris-tdep.c (cris_delayed_get_disassembler): Remove.
12422 (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
12423 * frv-tdep.c (frv_gdbarch_init): Likewise.
12424 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
12425 * gdbarch.sh (print_insn): Use default_print_insn.
12426 * gdbarch.c: Regenerated.
12427 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12428 * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
12429 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12430 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
12431 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12432 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
12433 (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
12434 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
12435 * m88k-tdep.c (m88k_gdbarch_init): Likewise.
12436 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12437 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
12438 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12439 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
12440 * mt-tdep.c (mt_gdbarch_init): Likewise.
12441 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
12442 * nios2-tdep.c (nios2_print_insn): Remove.
12443 (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
12444 * rx-tdep.c (rx_gdbarch_init): Likewise.
12445 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12446 * score-tdep.c (score_print_insn): Remove.
12447 (score_gdbarch_init): Don't call set_gdbarch_print_insn.
12448 * sh-tdep.c (sh_gdbarch_init): Likewise.
12449 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12450 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12451 * tic6x-tdep.c (tic6x_print_insn): Remove.
12452 (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
12453 * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
12454 * v850-tdep.c (v850_gdbarch_init): Likewise.
12455 * vax-tdep.c (vax_gdbarch_init): Likewise.
12456 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
12457 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
12458
12459 2017-05-23 John Baldwin <jhb@FreeBSD.org>
12460
12461 * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
12462 (MIPS_FP0_REGNUM): Remove.
12463 (MIPS_FSR_REGNUM): Remove.
12464 (mips_fbsd_supply_fpregs): Use mips_regnum.
12465 (mips_fbsd_supply_gregs): Likewise.
12466 (mips_fbsd_collect_fpregs): Likewise.
12467 (mips_fbsd_collect_gregs): Likewise.
12468
12469 2017-05-23 John Baldwin <jhb@FreeBSD.org>
12470
12471 * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
12472 (getpfpregs_supplies): New function.
12473 (mips_fbsd_fetch_inferior_registers): Remove early exit and use
12474 getfpregs_supplies.
12475 (mips_fbsd_store_inferior_registers): Likewise.
12476
12477 2017-05-22 Pedro Alves <palves@redhat.com>
12478
12479 * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
12480 maintainer.
12481
12482 2017-05-22 Alan Hayward <alan.hayward@arm.com>
12483
12484 * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
12485 (store_register): Likewise.
12486 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
12487 (get_decimal_float_return_value): Likewise.
12488 (do_ppc_sysv_return_value): Likewise.
12489 (ppc64_sysv_abi_push_integer): Likewise.
12490 (ppc64_sysv_abi_push_freg): Likewise.
12491 (ppc64_sysv_abi_return_value_base): Likewise.
12492 (ppc64_sysv_abi_return_value): Likewise.
12493 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
12494 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
12495 * rs6000-nat.c: Likewise.
12496 * rs6000-tdep.c (rs6000_register_to_value): Likewise.
12497 (rs6000_value_to_register): Likewise.
12498 * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
12499
12500 2017-05-21 Tom Tromey <tom@tromey.com>
12501
12502 PR rust/21466:
12503 * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
12504 arrays as "[T]", not "[T; ]".
12505
12506 2017-05-19 Tom Tromey <tom@tromey.com>
12507
12508 PR rust/21484:
12509 * rust-lang.c (exp_descriptor_rust): New function.
12510 (rust_language_defn): Use it.
12511 * p-lang.c (pascal_language_defn): Update.
12512 * opencl-lang.c (opencl_language_defn): Update.
12513 * objc-lang.c (objc_language_defn): Update.
12514 * m2-lang.c (m2_language_defn): Update.
12515 * language.h (struct language_defn)
12516 <la_watch_location_expression>: New member.
12517 * language.c (unknown_language_defn, auto_language_defn)
12518 (local_language_defn): Update.
12519 * go-lang.c (go_language_defn): Update.
12520 * f-lang.c (f_language_defn): Update.
12521 * d-lang.c (d_language_defn): Update.
12522 * c-lang.h (c_watch_location_expression): Declare.
12523 * c-lang.c (c_watch_location_expression): New function.
12524 (c_language_defn, cplus_language_defn, asm_language_defn)
12525 (minimal_language_defn): Use it.
12526 * breakpoint.c (watch_command_1): Call
12527 la_watch_location_expression.
12528 * ada-lang.c (ada_language_defn): Update.
12529
12530 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12531
12532 PR tui/21482
12533 * gdb_curses.h (NOMACROS): Define.
12534 (NCURSES_NOMACROS): Define.
12535
12536 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12537
12538 PR tui/21482
12539 * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
12540 arg to char *.
12541 * tui/tui-wingeneral.c (box_win): Likewise.
12542 * tui/tui-winsource.c (tui_erase_source_content): Likewise.
12543 (tui_show_source_line): Likewise.
12544 (tui_show_exec_info_content): Likewise.
12545
12546 2017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
12547
12548 * sparc-tdep.c (sparc_structure_return_p)
12549 (sparc_arg_on_registers_p): New functions.
12550 (sparc32_store_arguments): Use them.
12551 * sparc64-tdep.c (sparc64_16_byte_align_p)
12552 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
12553 Handle TYPE_CODE_ARRAY.
12554
12555 2017-05-17 Yao Qi <yao.qi@linaro.org>
12556
12557 * cli/cli-decode.c (add_alias_cmd): New function.
12558 * command.h (add_alias_cmd): Declare.
12559 * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
12560 instead call add_alias_cmd.
12561
12562 2017-05-17 Pedro Alves <palves@redhat.com>
12563
12564 * Makefile.in (nat_extra_makefile_frag): Rename to ...
12565 (nat_makefile_frag): ... this. All references updated.
12566 * configure.ac: Likewise.
12567 * configure.nat: Likewise. Enhance comments.
12568 * configure: Regenerate.
12569
12570 2017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12571
12572 * procfs.c (procfs_create_inferior): Change prototype to match
12573 definition.
12574
12575 2017-05-13 Eli Zaretskii <eliz@gnu.org>
12576
12577 * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
12578 C++ compiler warning.
12579
12580 2017-05-12 Tom Tromey <tom@tromey.com>
12581
12582 PR rust/21483:
12583 * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
12584 recurse, just call value_struct_elt directly.
12585
12586 2017-05-12 Tom Tromey <tom@tromey.com>
12587
12588 * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
12589 OP_RUST_ARRAY>: Fix.
12590
12591 2017-05-12 Tom Tromey <tom@tromey.com>
12592
12593 * rust-lang.c (rust_print_subexp): Replace "return" with "break".
12594
12595 2017-05-09 Yao Qi <yao.qi@linaro.org>
12596
12597 * regcache.c: Include <forward_list>.
12598 (struct regcache_list): Remove.
12599 (current_regcache): Update.
12600 (get_thread_arch_aspace_regcache): Update for std::forward_list.
12601 (regcache_thread_ptid_changed): Likewise.
12602 (registers_changed_ptid): Likewise.
12603 (current_regcache_size): Likewise.
12604
12605 2017-05-09 Yao Qi <yao.qi@linaro.org>
12606
12607 * regcache.c [GDB_SELF_TEST]: Include selftest.h.
12608 (current_regcache_size): New function.
12609 (current_regcache_test): New function.
12610 (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
12611
12612 2017-05-08 Alan Hayward <alan.hayward@arm.com>
12613
12614 * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
12615 (print_gp_register_row): Use get_frame_register_value.
12616
12617 2017-05-08 Alan Hayward <alan.hayward@arm.com>
12618
12619 * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
12620 (mips_supply_fpregset): Likewise.
12621 (mips64_supply_gregset): Likewise.
12622
12623 2017-05-08 Alan Hayward <alan.hayward@arm.com>
12624
12625 * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
12626 regcache->raw_supply_zeroed.
12627
12628 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
12629
12630 * configure.nat: Rearrange 'case' statements to match
12631 host before cpu.
12632
12633 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
12634
12635 * Makefile.in: Remove "@host_makefile_frag@". Add variables
12636 NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
12637 NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
12638 "@nat_extra_makefile_frag@".
12639 (Makefile): Remove dependency on "@frags@".
12640 ($(GNULIB_BUILDDIR)/Makefile): Likewise.
12641 (data-directory/Makefile): Likewise.
12642 * config/aarch64/linux.mh: Deleted; moved contents to
12643 "gdb/configure.nat".
12644 * config/alpha/alpha-linux.mh: Likewise.
12645 * config/alpha/nbsd.mh: Likewise.
12646 * config/arm/linux.mh: Likewise.
12647 * config/arm/nbsdelf.mh: Likewise.
12648 * config/i386/cygwin.mh: Likewise.
12649 * config/i386/cygwin64.mh: Likewise.
12650 * config/i386/darwin.mh: Likewise.
12651 * config/i386/fbsd.mh: Likewise.
12652 * config/i386/fbsd64.mh: Likewise.
12653 * config/i386/go32.mh: Likewise.
12654 * config/i386/i386gnu.mh: Likewise.
12655 * config/i386/i386sol2.mh: Likewise.
12656 * config/i386/linux.mh: Likewise.
12657 * config/i386/linux64.mh: Likewise.
12658 * config/i386/mingw.mh: Likewise.
12659 * config/i386/mingw64.mh: Likewise.
12660 * config/i386/nbsd64.mh: Likewise.
12661 * config/i386/nbsdelf.mh: Likewise.
12662 * config/i386/nto.mh: Likewise.
12663 * config/i386/obsd.mh: Likewise.
12664 * config/i386/obsd64.mh: Likewise.
12665 * config/i386/sol2-64.mh: Likewise.
12666 * config/ia64/linux.mh: Likewise.
12667 * config/m32r/linux.mh: Likewise.
12668 * config/m68k/linux.mh: Likewise.
12669 * config/m68k/nbsdelf.mh: Likewise.
12670 * config/m68k/obsd.mh: Likewise.
12671 * config/m88k/obsd.mh: Likewise.
12672 * config/mips/fbsd.mh: Likewise.
12673 * config/mips/linux.mh: Likewise.
12674 * config/mips/nbsd.mh: Likewise.
12675 * config/mips/obsd64.mh: Likewise.
12676 * config/pa/linux.mh: Likewise.
12677 * config/pa/nbsd.mh: Likewise.
12678 * config/pa/obsd.mh: Likewise.
12679 * config/powerpc/aix.mh: Likewise.
12680 * config/powerpc/fbsd.mh: Likewise.
12681 * config/powerpc/linux.mh: Likewise.
12682 * config/powerpc/nbsd.mh: Likewise.
12683 * config/powerpc/obsd.mh: Likewise.
12684 * config/powerpc/ppc64-linux.mh: Likewise.
12685 * config/powerpc/spu-linux.mh: Likewise.
12686 * config/s390/linux.mh: Likewise.
12687 * config/sh/nbsd.mh: Likewise.
12688 * config/sparc/fbsd.mh: Likewise.
12689 * config/sparc/linux.mh: Likewise.
12690 * config/sparc/linux64.mh: Likewise.
12691 * config/sparc/nbsd64.mh: Likewise.
12692 * config/sparc/nbsdelf.mh: Likewise.
12693 * config/sparc/obsd64.mh: Likewise.
12694 * config/sparc/sol2.mh: Likewise.
12695 * config/tilegx/linux.mh: Likewise.
12696 * config/vax/nbsdelf.mh: Likewise.
12697 * config/vax/obsd.mh: Likewise.
12698 * config/xtensa/linux.mh: Likewise.
12699 * config/i386/i386gnu.mn: New file, with excerpts from
12700 "config/i386/i386gnu.mh".
12701 * configure: Regenerate.
12702 * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
12703 *.mh files under "gdb/config".
12704 * configure.nat: New file, with contents from the
12705 "gdb/config/*/*.mh" files.
12706
12707 2017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
12708
12709 * btrace.c (btrace_clear): Free insn vector.
12710
12711 2017-05-05 Pedro Alves <palves@redhat.com>
12712
12713 * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
12714 * configure: Regenerate.
12715
12716 2017-05-04 Pedro Alves <palves@redhat.com>
12717
12718 * Makefile.in (SFILES): Add progspace-and-thread.c.
12719 (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
12720 (COMMON_OBS): Add progspace-and-thread.o.
12721 * breakpoint.c: Include "progspace-and-thread.h".
12722 (update_inserted_breakpoint_locations)
12723 (insert_breakpoint_locations, create_longjmp_master_breakpoint):
12724 Use scoped_restore_current_pspace_and_thread.
12725 (create_std_terminate_master_breakpoint): Use
12726 scoped_restore_current_program_space.
12727 (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
12728 (print_breakpoint_location): Use
12729 scoped_restore_current_program_space.
12730 (bp_loc_is_permanent): Use
12731 scoped_restore_current_pspace_and_thread.
12732 (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
12733 (download_tracepoint_locations): Use
12734 scoped_restore_current_pspace_and_thread.
12735 (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
12736 * exec.c (exec_close_1): Use scoped_restore_current_program_space.
12737 (enum step_over_calls_kind): Moved from inferior.h.
12738 (class scoped_restore_current_thread): New class.
12739 * gdbthread.h (make_cleanup_restore_current_thread): Delete
12740 declaration.
12741 (scoped_restore_current_thread): New class.
12742 * infcmd.c: Include "common/gdb_optional.h".
12743 (continue_1, proceed_after_attach): Use
12744 scoped_restore_current_thread.
12745 (notice_new_inferior): Use scoped_restore_current_thread.
12746 * inferior.c: Include "progspace-and-thread.h".
12747 (restore_inferior, save_current_inferior): Delete.
12748 (add_inferior_command, clone_inferior_command): Use
12749 scoped_restore_current_pspace_and_thread.
12750 * inferior.h (scoped_restore_current_inferior): New class.
12751 * infrun.c: Include "progspace-and-thread.h" and
12752 "common/gdb_optional.h".
12753 (follow_fork_inferior): Use
12754 scoped_restore_current_pspace_and_thread.
12755 (scoped_restore_exited_inferior): New class.
12756 (handle_vfork_child_exec_or_exit): Use
12757 scoped_restore_exited_inferior,
12758 scoped_restore_current_pspace_and_thread,
12759 scoped_restore_current_thread and scoped_restore.
12760 (fetch_inferior_event): Use scoped_restore_current_thread.
12761 * linespec.c (decode_line_full, decode_line_1): Use
12762 scoped_restore_current_program_space.
12763 * mi/mi-main.c: Include "progspace-and-thread.h".
12764 (exec_continue): Use scoped_restore_current_thread.
12765 (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
12766 (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
12767 * proc-service.c (ps_pglobal_lookup): Use
12768 scoped_restore_current_program_space.
12769 * progspace-and-thread.c: New file.
12770 * progspace-and-thread.h: New file.
12771 * progspace.c (release_program_space, clone_program_space): Use
12772 scoped_restore_current_program_space.
12773 (restore_program_space, save_current_program_space)
12774 (save_current_space_and_thread): Delete.
12775 (switch_to_program_space_and_thread): Moved to
12776 progspace-and-thread.c.
12777 * progspace.h (save_current_program_space)
12778 (save_current_space_and_thread): Delete declarations.
12779 (scoped_restore_current_program_space): New class.
12780 * remote.c (remote_btrace_maybe_reopen): Use
12781 scoped_restore_current_thread.
12782 * symtab.c: Include "progspace-and-thread.h".
12783 (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
12784 * thread.c (print_thread_info_1): Use
12785 scoped_restore_current_thread.
12786 (struct current_thread_cleanup): Delete.
12787 (do_restore_current_thread_cleanup)
12788 (restore_current_thread_cleanup_dtor): Rename/convert both to ...
12789 (scoped_restore_current_thread::~scoped_restore_current_thread):
12790 ... this new dtor.
12791 (make_cleanup_restore_current_thread): Rename/convert to ...
12792 (scoped_restore_current_thread::scoped_restore_current_thread):
12793 ... this new ctor.
12794 (thread_apply_all_command): Use scoped_restore_current_thread.
12795 (thread_apply_command): Use scoped_restore_current_thread.
12796 * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
12797 * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
12798
12799 2017-05-04 Pedro Alves <palves@redhat.com>
12800
12801 * thread.c (make_cleanup_restore_current_thread): Move
12802 find_thread_ptid call before the is_stopped call. Assert that the
12803 thread is found. Replace is_stopped call by checking the thread's
12804 state directly. Remove unnecessary NULL-thread check.
12805
12806 2017-05-04 Pedro Alves <palves@redhat.com>
12807
12808 * corelow.c (thread_section_name): New class.
12809 (get_core_register_section, get_core_siginfo): Use it.
12810
12811 2017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
12812
12813 * corelow.c (sniff_core_bfd): Remove extra semicolon.
12814 (get_core_register_section): Remove xfree of NULL pointer.
12815
12816 2017-05-03 Alan Hayward <alan.hayward@arm.com>
12817
12818 * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed.
12819 * regcache.c (regcache::raw_supply_zeroed): New function.
12820 * regcache.h (regcache::raw_supply_zeroed): New declaration.
12821
12822 2017-05-03 Simon Marchi <simon.marchi@ericsson.com>
12823
12824 * gdbarch.sh: Remove commented out definition of
12825 TARGET_CHAR_BIT.
12826 * gdbarch.h: Re-generate.
12827
12828 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
12829
12830 * configure: Regenerate.
12831
12832 2017-05-02 Simon Marchi <simon.marchi@ericsson.com>
12833
12834 * solib-target.c (solib_target_relocate_section_addresses):
12835 Remove num_section_bases, num_bases, segment_bases variables.
12836
12837 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
12838
12839 * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove.
12840
12841 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
12842
12843 * solib-target.c: Include <vector>
12844 (struct lm_info_target) <~lm_info_target>: Remove.
12845 <segment_bases, section_bases>: Change type to
12846 std::vector<CORE_ADDR>.
12847 (library_list_start_segment, library_list_start_section,
12848 library_list_end_library,
12849 solib_target_relocate_section_addresses): Adjust.
12850
12851 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
12852
12853 * gdbarch.sh (software_single_step): Change return type to
12854 std::vector<CORE_ADDR>.
12855 * gdbarch.c, gdbarch.h: Re-generate.
12856 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
12857 Adjust.
12858 (arm_deal_with_atomic_sequence_raw): Adjust.
12859 (thumb_get_next_pcs_raw): Adjust.
12860 (arm_get_next_pcs_raw): Adjust.
12861 (arm_get_next_pcs): Adjust.
12862 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust.
12863 * aarch64-tdep.c (aarch64_software_single_step): Adjust.
12864 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust.
12865 (alpha_software_single_step): Adjust.
12866 * alpha-tdep.h (alpha_software_single_step): Adjust.
12867 * arm-linux-tdep.c (arm_linux_software_single_step): Adjust.
12868 * arm-tdep.c (arm_software_single_step): Adjust.
12869 (arm_breakpoint_kind_from_current_state): Adjust.
12870 * arm-tdep.h (arm_software_single_step): Adjust.
12871 * breakpoint.c (insert_single_step_breakpoint): Adjust.
12872 * cris-tdep.c (cris_software_single_step): Adjust.
12873 * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust.
12874 (micromips_deal_with_atomic_sequence): Adjust.
12875 (deal_with_atomic_sequence): Adjust.
12876 (mips_software_single_step): Adjust.
12877 * mips-tdep.h (mips_software_single_step): Adjust.
12878 * moxie-tdep.c (moxie_software_single_step): Adjust.
12879 * nios2-tdep.c (nios2_software_single_step): Adjust.
12880 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust.
12881 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
12882 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
12883 * s390-linux-tdep.c (s390_software_single_step): Adjust.
12884 * sparc-tdep.c (sparc_software_single_step): Adjust.
12885 * spu-tdep.c (spu_software_single_step): Adjust.
12886 * tic6x-tdep.c (tic6x_software_single_step): Adjust.
12887
12888 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
12889
12890 * gdbarch.sh: Use semi-colon as field separator instead of colon.
12891 * gdbarch.h: Re-generate.
12892
12893 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
12894
12895 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
12896 (SUBDIR_PYTHON_SRCS): Add py-instruction.c.
12897 * python/py-instruction.c, python/py-instruction.h: New file.
12898 * python/py-record.c: Add py-instruction.h include.
12899 (gdbpy_initialize_record): Make gdb.Instruction a super class of
12900 gdb.RecordInstruction.
12901 * python/python-internal.h: Add gdbpy_initialize_instruction
12902 declaration.
12903 * python/python.c (do_start_initialization): Add
12904 gdbpy_initialize_instruction.
12905
12906 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
12907
12908 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
12909 Remove.
12910 (btrace_func_from_recpy_func): New function.
12911 (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
12912 (btpy_call_level, btpy_call_symbol, btpy_call_instructions,
12913 btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
12914 (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
12915 recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
12916 Also, use new helper functions.
12917 (btpy_list_item): Use new helper functions.
12918 (recpy_bt_function_call_history): Use new type name.
12919 (btpy_call_getset): Remove.
12920 (gdbpy_initialize_btrace): Remove code to initialize
12921 gdb.BtraceFunctionCall.
12922 * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
12923 recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
12924 recpy_bt_func_prev, recpy_bt_func_next): New export.
12925 * python/py-record.c (recpy_func_type): New static object.
12926 (recpy_func_new, recpy_func_level, recpy_func_symbol,
12927 recpy_func_instructions, recpy_func_up, recpy_func_prev,
12928 recpy_func_next): New function.
12929 (recpy_element_hash, recpy_element_richcompare): Updated comment.
12930 (recpy_func_getset): New static object.
12931 (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
12932 * python/py-record.h (recpy_func_type, recpy_func_new): New export.
12933
12934 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
12935
12936 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove.
12937 (btpy_object, btpy_insn_type, btpy_new): Remove.
12938 (btpy_list_object): Use gdb.RecordInstruction type instead of
12939 gdb.BtraceInstruction type.
12940 (btrace_insn_from_recpy_insn): New function.
12941 (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of
12942 btpy_new.
12943 (btpy_call_new, btpy_list_item): Do not use btpy_new anymore.
12944 (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol,
12945 btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling,
12946 btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object
12947 instead of btpy_object.
12948 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
12949 btpy_insn_data, btpy_insn_decode): Rename to ...
12950 (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size,
12951 recpy_bt_insn_is_speculative, recpy_bt_insn_data,
12952 recpy_bt_insn_decode): This. Also, use new helper functions.
12953 (btpy_list_position, recpy_bt_goto): Use recpy_element_object and
12954 recpy_insn_type.
12955 (btpy_insn_getset): Remove.
12956 (gdbpy_initialize_btrace): Remove code to initialize
12957 gdb.BtraceInstruction. Use recpy_element_object.
12958 * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal,
12959 recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded,
12960 recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export.
12961 * python/py-record.c (recpy_insn_type): New static object.
12962 (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data,
12963 recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative,
12964 recpy_element_number, recpy_element_hash, recpy_element_richcompare):
12965 New function.
12966 (recpy_insn_getset): New static object.
12967 (gdbpy_initialize_record): Initialize gdb.RecordInstruction.
12968 * python/py-record.h (recpy_element_object): New typedef.
12969 (recpy_insn_type, recpy_insn_new): New export.
12970
12971 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
12972
12973 * py-record-btrace.c (btpy_insn_new): Removed.
12974 (btpy_insn_or_gap_new): New function.
12975 (btpy_insn_error): Removed.
12976 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
12977 btpy_insn_data, btpy_insn_decode): Remove code path for gaps.
12978 (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call
12979 btpy_insn_or_gap_new instead of btpy_insn_new.
12980 (btpy_insn_getset): Remove btpy_insn_error.
12981 * py-record.c (recpy_gap_type): New static object.
12982 (recpy_gap_object): New typedef.
12983 (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code,
12984 recpy_gap_reason_string): New function.
12985 (recpy_gap_getset): New static object.
12986 (gdbpy_initialize_record): Initialize gdb.RecordGap type.
12987 * py-record.h (recpy_gap_new): New export.
12988
12989 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
12990
12991 * python/py-record.c (recpy_ptid): Remove.
12992 (recpy_record_getset): Remove recpy_ptid.
12993
12994 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
12995
12996 * btrace.c (btrace_fetch): Set inferior_ptid.
12997 * python/py-record-btrace.c: Add "py-record.h" include.
12998 (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin,
12999 recpy_bt_end, recpy_bt_instruction_history,
13000 recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored
13001 in gdb.Record object instead of current ptid.
13002 * python/py-record.c: Include new "py-record.h" file.
13003 (recpy_record_object): Moved to py-record.h.
13004 * python/py-record.h: New file.
13005
13006 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
13007
13008 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
13009 BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
13010 indentation.
13011
13012 2017-05-01 Joel Brobecker <brobecker@adacore.com>
13013
13014 * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to
13015 the past maintainers section.
13016
13017 2017-04-28 Yao Qi <yao.qi@linaro.org>
13018
13019 * infcmd.c (get_return_value): Use regcache ctor, and remove
13020 cleanup.
13021
13022 2017-04-28 Yao Qi <yao.qi@linaro.org>
13023 Pedro Alves <palves@redhat.com>
13024
13025 * regcache.c (regcache::regcache): New tag dispatch ctor.
13026 (do_cooked_read): Moved above.
13027 (regcache_dup): Use the tag dispatch ctor..
13028 * regcache.h (regcache): Declare ctor, delete copy ctor and
13029 assignment operator, remove friend regcache_dup.
13030
13031 2017-04-28 Yao Qi <yao.qi@linaro.org>
13032
13033 * regcache.c (regcache_dup): Assert !src->m_readonly_p and
13034 call method save instead of regcache_cpy.
13035 * regcache.h (struct regcache): Make regcache_dup a friend.
13036
13037 2017-04-28 Yao Qi <yao.qi@linaro.org>
13038
13039 * regcache.c (struct regcache): Move to regcache.h
13040 (regcache::arch): New method.
13041 (regcache_get_ptid): Update.
13042 (get_regcache_arch): Call arch method.
13043 (get_regcache_aspace): Call method aspace.
13044 (register_buffer): Change it to method.
13045 (regcache_save): Change it to regcache::save.
13046 (regcache_restore): Likewise.
13047 (regcache_cpy_no_passthrough): Remove the declaration.
13048 (regcache_cpy): Call methods restore and cpy_no_passthrough.
13049 (regcache_cpy_no_passthrough): Change it to method
13050 cpy_no_passthrough.
13051 (regcache_register_status): Change it to method
13052 get_register_status.
13053 (regcache_invalidate): Change it to method invalidate.
13054 (regcache_thread_ptid_changed): Use methods ptid and set_ptid.
13055 (regcache_raw_update): Change it to method raw_update.
13056 (regcache_raw_read): Likewise.
13057 (regcache_raw_read_signed): Likewise.
13058 (regcache_raw_read_unsigned): Likewise.
13059 (regcache_raw_write_signed): Likewise.
13060 (regcache_raw_write_unsigned): Likewise.
13061 (regcache_cooked_read): Likewise.
13062 (regcache_cooked_read_value): Likewise.
13063 (regcache_cooked_read_signed): Likewise.
13064 (regcache_cooked_read_unsigned): Likewise.
13065 (regcache_cooked_write_signed): Likewise.
13066 (regcache_cooked_write_unsigned): Likewise.
13067 (regcache_raw_set_cached_value): Likewise.
13068 (regcache_raw_write): Likewise.
13069 (regcache_cooked_write): Likewise.
13070 (regcache_xfer_part): Likewise.
13071 (regcache_raw_read_part): Likewise.
13072 (regcache_raw_write_part): Likewise.
13073 (regcache_cooked_read_part): Likewise.
13074 (regcache_cooked_write_part): Likewise.
13075 (regcache_raw_supply): Likewise.
13076 (regcache_raw_collect): Likewise.
13077 (regcache_transfer_regset): Likewise.
13078 (regcache_supply_regset): Likewise.
13079 (regcache_collect_regset): Likewise.
13080 (regcache_debug_print_register): Likewise.
13081 (enum regcache_dump_what): Move it to regcache.h.
13082 (regcache_dump): Change it to method dump.
13083 * regcache.h (enum regcache_dump_what): New.
13084 (class regcache): New.
13085 * target.c (target_fetch_registers): Call method
13086 debug_print_register.
13087 (target_store_registers): Likewise.
13088
13089 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13090
13091 * windows-nat.c (struct lm_info_windows): Initialize field.
13092 (windows_make_so): Allocate lm_info_windows with new.
13093 (windows_free_so): Free lm_info_windows with delete.
13094
13095 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13096
13097 * solib-darwin.c (struct lm_info_darwin): Initialize field.
13098 (darwin_current_sos): Allocate lm_info_darwin with new, remove
13099 cleanup.
13100 (darwin_free_so): Free lm_info_darwin with delete.
13101
13102 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13103
13104 * solib-svr4.h (struct lm_info_svr4): Initialize fields.
13105 <l_addr_p>: Change type to bool.
13106 * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
13107 (svr4_free_so): Free lm_info_svr4 with delete.
13108 (svr4_copy_library_list): Replace memcpy with call to copy
13109 constructor.
13110 (library_list_start_library, svr4_default_sos): Allocate
13111 lm_info_svr4 with new.
13112
13113 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13114
13115 * solib-target.c (struct lm_info_target): Add destructor,
13116 initialize fields.
13117 <name>: Change type to std::string.
13118 (library_list_start_library): Allocate lm_info_target with new.
13119 (solib_target_free_library_list): Free lm_info_target with
13120 delete.
13121 (solib_target_current_sos): Adapt to std::string.
13122 (solib_target_free_so): Free lm_info_target with delete.
13123
13124 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13125
13126 * solib-frv.c (struct lm_info_frv): Add destructor, initialize
13127 fields.
13128 (frv_current_sos): Allocate lm_info_frv with new.
13129 (frv_relocate_main_executable): Free lm_info_frv with delete,
13130 allocate with new.
13131 (frv_clear_solib, frv_free_so): Free lm_info_frv with delete.
13132
13133 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13134
13135 * solib-frv.c (struct lm_info_frv): Fix indentation.
13136
13137 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13138
13139 * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
13140 map field.
13141 (dsbt_current_sos): Allocate lm_info_dsbt with new.
13142 (dsbt_relocate_main_executable): Free lm_info_dsbt with delete
13143 and allocate with new.
13144 (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
13145
13146 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13147
13148 * solib-aix.c (struct lm_info_aix): Initialize fields in-class.
13149 <filename, member_name>: Change type to std::string.
13150 (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
13151 (library_list_start_library): Allocate lm_info_aix with new.
13152 (solib_aix_free_library_list, solib_aix_free_so): Free with delete.
13153 (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
13154 with copy constructor.
13155
13156 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13157
13158 * solist.h (struct lm_info): Remove.
13159 (struct lm_info_base): New class.
13160 (struct so_list) <lm_info>: Change type to lm_info_base *.
13161 * nto-tdep.c (struct lm_info): Remove.
13162 (lm_addr): Adjust.
13163 * solib-aix.c (struct lm_info): Rename to ...
13164 (struct lm_info_aix): ... this. Extend lm_info_base.
13165 (lm_info_p): Rename to ...
13166 (lm_info_aix_p): ... this, and adjust.
13167 (solib_aix_new_lm_info, solib_aix_xfree_lm_info,
13168 solib_aix_parse_libraries, library_list_start_library,
13169 solib_aix_free_library_list, solib_aix_parse_libraries,
13170 solib_aix_get_library_list,
13171 solib_aix_relocate_section_addresses, solib_aix_free_so,
13172 solib_aix_get_section_offsets,
13173 solib_aix_solib_create_inferior_hook, solib_aix_current_sos):
13174 Adjust.
13175 (struct solib_aix_inferior_data) <library_list>: Adjust.
13176 * solib-darwin.c (struct lm_info): Rename to ...
13177 (struct lm_info_darwin): ... this. Extend lm_info_base.
13178 (darwin_current_sos, darwin_relocate_section_addresses): Adjust.
13179 * solib-dsbt.c (struct lm_info): Rename to ...
13180 (struct lm_info_dsbt): ... this. Extend lm_info_base.
13181 (struct dsbt_info) <main_executable_lm_info): Adjust.
13182 (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so,
13183 dsbt_relocate_section_addresses): Adjust.
13184 * solib-frv.c (struct lm_info): Rename to ...
13185 (struct lm_info_frv): ... this. Extend lm_info_base.
13186 (main_executable_lm_info): Adjust.
13187 (frv_current_sos, frv_relocate_main_executable, frv_free_so,
13188 frv_relocate_section_addresses, frv_fdpic_find_global_pointer,
13189 find_canonical_descriptor_in_load_object,
13190 frv_fdpic_find_canonical_descriptor): Adjust.
13191 * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed
13192 to lm_info_svr4.
13193 (lm_info_read, lm_addr_check, svr4_keep_data_in_core,
13194 svr4_clear_so, svr4_copy_library_list,
13195 library_list_start_library, svr4_default_sos, svr4_read_so_list,
13196 svr4_current_sos, svr4_fetch_objfile_link_map,
13197 solist_update_incremental): Adjust.
13198 * solib-svr4.h (struct lm_info_svr4): Move here from
13199 solib-svr4.c.
13200 * solib-target.c (struct lm_info): Rename to ...
13201 (struct lm_info_target): ... this. Extend lm_info_base.
13202 (lm_info_p): Rename to ...
13203 (lm_info_target_p): ... this.
13204 (solib_target_parse_libraries, library_list_start_segment,
13205 library_list_start_section, library_list_start_library,
13206 library_list_end_library, solib_target_free_library_list,
13207 solib_target_current_sos, solib_target_free_so,
13208 solib_target_relocate_section_addresses): Adjust.
13209 * windows-nat.c (struct lm_info): Rename to ...
13210 (struct lm_info_windows): ... this. Extend lm_info_base.
13211 (windows_make_so, handle_load_dll, handle_unload_dll,
13212 windows_xfer_shared_libraries): Adjust.
13213
13214 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13215
13216 * solib-darwin.c (struct darwin_so_list): Remove.
13217 (darwin_current_sos): Allocate an so_list object instead of a
13218 darwin_so_list, separately allocate an lm_info object.
13219 (darwin_free_so): Free lm_info.
13220
13221 2017-04-28 John Baldwin <jhb@FreeBSD.org>
13222
13223 * mips-tdep.c (print_gp_register_row): Replace printf_filtered
13224 with fprintf_filtered.
13225
13226 2017-04-28 Yao Qi <yao.qi@linaro.org>
13227
13228 * regcache.c (regcache::regcache): New function.
13229 (regcache::~regcache): New function.
13230 (regcache_xmalloc_1): Remove.
13231 (regcache_xmalloc): Call new regcache.
13232 (regcache_xfree): Call delete regcache.
13233 (get_thread_arch_aspace_regcache): Call new regcache.
13234
13235 2017-04-28 Yao Qi <yao.qi@linaro.org>
13236
13237 * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
13238 lwp instead of ptid_get_lwp.
13239
13240 2017-04-28 Yao Qi <yao.qi@linaro.org>
13241
13242 * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
13243 lwp_info instead of getting from inferior_ptid.
13244
13245 2017-04-27 Keith Seitz <keiths@redhat.com>
13246
13247 * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS)
13248 DIFFERENT_REFERENCE_TYPE_BADNESS): Remove.
13249 (CV_CONVERSION_BADNESS): Define.
13250 (rank_one_type): Remove overly restrictive rvalue reference
13251 rank checks.
13252 Add cv-qualifier checks and subranks for type equality.
13253 * gdbtypes.h (REFERENCE_CONVERSION_RVALUE,
13254 REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS,
13255 CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare.
13256
13257 2017-04-27 Simon Marchi <simon.marchi@ericsson.com>
13258
13259 * python/py-inferior.c (inferior_to_inferior_object): Increment reference
13260 count when creating the object.
13261
13262 2017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
13263 Ulrich Weigand <uweigand@de.ibm.com>
13264
13265 * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
13266 entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
13267 is used in AIX.
13268 (read_xcoff_symtab): Handle C_WEAKEXT storage class.
13269 (process_xcoff_symbol): Likewise.
13270 (scan_xcoff_symtab): Likewise.
13271
13272 2017-04-26 Alan Hayward <alan.hayward@arm.com>
13273
13274 * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned.
13275 (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer.
13276 (ia64_access_reg): Use get_frame_register_unsigned.
13277 (ia64_access_rse_reg): Likewise.
13278 (ia64_libunwind_frame_prev_register): Likewise.
13279
13280 2017-04-26 Jiong Wang <jiong.wang@arm.com>
13281
13282 * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op.
13283 * gdbarch.c: Regenerated.
13284 * gdbarch.h: Regenerated.
13285 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the
13286 visibility external.
13287 (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI
13288 between DW_CFA_lo_user and DW_CFA_high_user inclusive.
13289 (enum cfa_how_kind): Move to ...
13290 (struct dwarf2_frame_state_reg_info): Likewise.
13291 (struct dwarf2_frame_state): Likewise.
13292 * dwarf2-frame.h: ... here.
13293 (dwarf2_frame_state_alloc_regs): New declaration.
13294 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function.
13295 (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook.
13296
13297 2017-04-26 Alan Hayward <alan.hayward@arm.com>
13298
13299 * xtensa-tdep.c (xtensa_pseudo_register_read): Use
13300 regcache_raw_read_unsigned.
13301 (xtensa_pseudo_register_write): Likewise.
13302
13303 2017-04-26 Alan Hayward <alan.hayward@arm.com>
13304
13305 * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors.
13306 (nds32_pseudo_register_write): Likewise.
13307
13308 2017-04-25 Yao Qi <yao.qi@linaro.org>
13309
13310 * regcache.c (struct regcache) <readonly_p>: Change its type
13311 to bool.
13312 (regcache_xmalloc_1): Update parameter type and callers update.
13313
13314 2017-04-25 Yao Qi <yao.qi@linaro.org>
13315
13316 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
13317 set_gdbarch_wchar_bit.
13318 * arm-tdep.c (arm_gdbarch_init): Likewise.
13319
13320 2017-04-25 Pedro Alves <palves@redhat.com>
13321
13322 * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
13323 (BothAreRelocatable, memcopy, memmove): Don't define.
13324 * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
13325 macros.
13326
13327 2017-04-25 Pedro Alves <palves@redhat.com>
13328
13329 * common/common-defs.h: Include "common/poison.h".
13330 * common/function-view.h: (Not, Or, Requires): Move to traits.h
13331 and adjust.
13332 * common/poison.h: New file.
13333 * common/traits.h: Include <type_traits>.
13334 (Not, Or, Requires): New, moved from common/function-view.h.
13335
13336 2017-04-25 Pedro Alves <palves@redhat.com>
13337
13338 * breakpoint.h (struct breakpoint): In-class initialize all
13339 fields. Make boolean fields "bool".
13340 * breakpoint.c (init_raw_breakpoint_without_location): Remove
13341 memset call and initializations no longer necessary.
13342
13343 2017-04-25 Pedro Alves <palves@redhat.com>
13344
13345 * btrace.c (pt_btrace_insn_flags): Change parameter type to
13346 reference.
13347 (pt_btrace_insn): New function.
13348 (ftrace_add_pt): Remove memset call and use pt_btrace_insn.
13349
13350 2017-04-25 Pedro Alves <palves@redhat.com>
13351
13352 * ada-lang.c (ada_catchpoint_location): Now a "class". Remove
13353 "base" field and inherit from "bp_location" instead. Add
13354 non-default ctor.
13355 (allocate_location_exception): Use new non-default ctor.
13356 * breakpoint.c (get_first_locp_gte_addr): Remove memset call.
13357 (init_bp_location): Convert to ...
13358 (bp_location::bp_location): ... this new ctor, and remove memset
13359 call.
13360 (base_breakpoint_allocate_location): Use the new non-default ctor.
13361 * breakpoint.h (bp_location): Now a class. Declare default and
13362 non-default ctors. In-class initialize all members.
13363 (init_bp_location): Remove declaration.
13364
13365 2017-04-25 Pedro Alves <palves@redhat.com>
13366
13367 * common/enum-flags.h (enum_flags): Don't implement copy ctor and
13368 assignment operator.
13369
13370 2017-04-24 Yao Qi <yao.qi@linaro.org>
13371
13372 * doublest.c (convert_doublest_to_floatformat): Call
13373 floatformat_totalsize_bytes.
13374
13375 2017-04-22 Tom Tromey <tom@tromey.com>
13376
13377 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
13378 ui_out_emit_list.
13379 * stack.c (print_frame): Use ui_out_emit_list.
13380 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
13381 ui_out_emit_list.
13382 * mi/mi-main.c (print_one_inferior)
13383 (mi_cmd_data_list_register_names)
13384 (mi_cmd_data_list_register_values, mi_cmd_list_features)
13385 (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use
13386 ui_out_emit_list.
13387 * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list.
13388 (mi_output_solib_attribs): Use ui_out_emit_list,
13389 ui_out_emit_tuple.
13390 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list.
13391 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
13392 (mi_cmd_stack_list_args, list_args_or_locals): Use
13393 ui_out_emit_list.
13394 * disasm.c (do_assembly_only): Use ui_out_emit_list.
13395 * breakpoint.c (print_solib_event, output_thread_groups): Use
13396 ui_out_emit_list.
13397
13398 2017-04-22 Tom Tromey <tom@tromey.com>
13399
13400 * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple.
13401 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple.
13402 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple.
13403
13404 2017-04-22 Tom Tromey <tom@tromey.com>
13405
13406 * tracepoint.c (tvariables_info_1)
13407 (print_one_static_tracepoint_marker): Use ui_out_emit_tuple.
13408
13409 2017-04-22 Tom Tromey <tom@tromey.com>
13410
13411 * stack.c (print_frame_arg): Use ui_out_emit_tuple,
13412 annotate_arg_emitter.
13413 * breakpoint.c (print_mention_watchpoint)
13414 (print_mention_masked_watchpoint): Use ui_out_emit_tuple.
13415 * annotate.h (struct annotate_arg_emitter): New.
13416
13417 2017-04-22 Tom Tromey <tom@tromey.com>
13418
13419 * record-btrace.c (record_btrace_insn_history)
13420 (record_btrace_insn_history_range, record_btrace_call_history)
13421 (record_btrace_call_history_range): Use ui_out_emit_tuple.
13422 * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use
13423 ui_out_emit_tuple.
13424 * stack.c (print_frame_info): Use ui_out_emit_tuple.
13425 * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple.
13426 * skip.c (skip_info): Use ui_out_emit_tuple.
13427 * remote.c (show_remote_cmd): Use ui_out_emit_tuple.
13428 * progspace.c (print_program_space): Use ui_out_emit_tuple.
13429 * probe.c (info_probes_for_ops): Use ui_out_emit_tuple.
13430 * osdata.c (info_osdata): Use ui_out_emit_tuple.
13431 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
13432 ui_out_emit_tuple.
13433 * mi/mi-main.c (print_one_inferior, list_available_thread_groups)
13434 (output_register, mi_cmd_data_read_memory)
13435 (mi_cmd_data_read_memory_bytes, mi_load_progress)
13436 (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple.
13437 * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one):
13438 Use ui_out_emit_tuple.
13439 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use
13440 ui_out_emit_tuple.
13441 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
13442 (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple.
13443 * linux-thread-db.c (info_auto_load_libthread_db): Use
13444 ui_out_emit_tuple.
13445 * inferior.c (print_inferior): Use ui_out_emit_tuple.
13446 * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple.
13447 * disasm.c (do_mixed_source_and_assembly_deprecated)
13448 (do_mixed_source_and_assembly): Use ui_out_emit_tuple.
13449 * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple.
13450 * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple.
13451 * breakpoint.c (print_one_breakpoint_location)
13452 (print_one_breakpoint): Use ui_out_emit_tuple.
13453 * auto-load.c (print_script, info_auto_load_cmd): Use
13454 ui_out_emit_tuple.
13455 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple.
13456
13457 2017-04-21 Simon Marchi <simon.marchi@ericsson.com>
13458
13459 * thread.c (print_thread_info_1): Remove dead code.
13460
13461 2017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
13462
13463 * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
13464 GDB_SELF_TEST.
13465 * arm-tdep.c (selftests::arm_record_test): Likewise.
13466
13467 2017-04-21 Yao Qi <yao.qi@linaro.org>
13468
13469 * regcache.c (regcache_restore): Remove argument 2. Replace
13470 argument 3 with regcache. Get register status from
13471 src->register_status and get register contents from
13472 register_buffer (src, regnum).
13473 (regcache_cpy): Update.
13474
13475 2017-04-19 Pedro Alves <palves@redhat.com>
13476
13477 * gdbthread.h (thread): Add missing closing parenthesis in
13478 comment.
13479
13480 2017-04-19 Pedro Alves <palves@redhat.com>
13481
13482 * common/refcounted-object.h: New file.
13483 * gdbthread.h: Include "common/refcounted-object.h".
13484 (thread_info): Inherit from refcounted_object and add comments.
13485 (thread_info::incref, thread_info::decref)
13486 (thread_info::m_refcount): Delete.
13487 (thread_info::deletable): Use the refcounted_object::refcount()
13488 method.
13489 * inferior.c (current_inferior_): Add comment.
13490 (set_current_inferior): Increment/decrement refcounts.
13491 (prune_inferiors, remove_inferior_command): Skip inferiors marked
13492 not-deletable instead of comparing with the current inferior.
13493 (initialize_inferiors): Increment the initial inferior's refcount.
13494 * inferior.h (struct inferior): Forward declare.
13495 Include "common/refcounted-object.h".
13496 (current_inferior, set_current_inferior): Move declaration to
13497 before struct inferior's definition, and fix comment.
13498 (inferior): Inherit from refcounted_object. Add comments.
13499 * thread.c (switch_to_thread_no_regs): Reference the thread's
13500 inferior pointer directly instead of doing a ptid lookup.
13501 (switch_to_no_thread): New function.
13502 (switch_to_thread(thread_info *)): New function, factored out
13503 from ...
13504 (switch_to_thread(ptid_t)): ... this.
13505 (restore_current_thread): Delete.
13506 (current_thread_cleanup): Remove 'inf_id' and 'was_removable'
13507 fields, and add 'inf' field.
13508 (do_restore_current_thread_cleanup): Check whether old->inf is
13509 alive instead of looking up an inferior by ptid. Use
13510 switch_to_thread and switch_to_no_thread.
13511 (restore_current_thread_cleanup_dtor): Use old->inf directly
13512 instead of lookup up an inferior by id. Decref the inferior.
13513 Don't restore 'removable'.
13514 (make_cleanup_restore_current_thread): Same the inferior pointer
13515 in old, instead of the inferior number. Incref the inferior.
13516 Don't save/clear 'removable'.
13517
13518 2017-04-19 Pedro Alves <palves@redhat.com>
13519
13520 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13521 unittests/scoped_restore-selftests.c.
13522 (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o.
13523 * common/scoped_restore.h (scoped_restore_base): Make "class".
13524 (scoped_restore_base::release): New public method.
13525 (scoped_restore_base::scoped_restore_base): New protected ctor.
13526 (scoped_restore_base::m_saved_var): New protected field.
13527 (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the
13528 scoped_restore_base base class instead of m_saved_var directly.
13529 (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise.
13530 (scoped_restore_tmpl::scoped_restore_tmpl(const
13531 scoped_restore_tmpl<T>&)): Likewise.
13532 (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var
13533 method.
13534 (scoped_restore_tmpl::saved_var): New method.
13535 (scoped_restore_tmpl::m_saved_var): Delete.
13536 * inferior.h (inferior::detaching): Now a bool.
13537 * infrun.c (prepare_for_detach): Use a scoped_restore instead of a
13538 cleanup.
13539 * unittests/scoped_restore-selftests.c: New file.
13540
13541 2017-04-19 Pedro Alves <palves@redhat.com>
13542
13543 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS):
13544 Re-sort in alphabetic order.
13545
13546 2017-04-18 Pedro Alves <palves@redhat.com>
13547
13548 * xml-support.c (obstack_xml_printf): Delete.
13549 * xml-support.h (obstack_xml_printf): Delete.
13550
13551 2017-04-18 Pedro Alves <palves@redhat.com>
13552
13553 * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse,
13554 vdebug, verror, body_text, start_element, end_element, name,
13555 user_data, set_is_xinclude, set_error, expat_parser>: New methods.
13556 <name, user_data, expat_parser, scopes, error, last_line, dtd_name,
13557 is_xinclude>: Make private and add m_ prefix.
13558 (gdb_xml_parser::body_text): New method, based on ...
13559 (gdb_xml_body_text): ... this. Adjust.
13560 (gdb_xml_parser::vdebug): New method, based on ...
13561 (gdb_xml_debug): ... this. Adjust.
13562 (gdb_xml_parser::verror): New method, based on ...
13563 (gdb_xml_error): ... this. Adjust.
13564 (gdb_xml_parser::start_element): New method, based on ...
13565 (gdb_xml_start_element): ... this. Adjust.
13566 (gdb_xml_start_element_wrapper): Defer to
13567 gdb_xml_parser::start_element and gdb_xml_parser::set_error.
13568 (gdb_xml_parser::end_element): New method, based on ...
13569 (gdb_xml_end_element_wrapper): ... this. Adjust.
13570 (gdb_xml_parser::~gdb_xml_parser): Adjust.
13571 (gdb_xml_parser::gdb_xml_parser): Adjust to field renames.
13572 (gdb_xml_parser::use_dtd): New method, based on ...
13573 (gdb_xml_use_dtd): ... this. Adjust.
13574 (gdb_xml_parser::parse): New method, based on ...
13575 (gdb_xml_parse): ... this. Adjust.
13576 (gdb_xml_parse_quick): Adjust to call the parser's parse method.
13577 (xinclude_start_include): Adjust to call the parser's name method.
13578 (xml_xinclude_default, xml_xinclude_start_doctype)
13579 (xml_xinclude_end_doctype): Adjust to call the parser's user_data
13580 method.
13581 (xml_process_xincludes): Adjust to call parser methods.
13582 * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete
13583 declarations.
13584
13585 2017-04-18 Pedro Alves <palves@redhat.com>
13586
13587 * tracefile-tfile.c (tfile_write_tdesc): Adjust to use
13588 gdb::optional<std::string>.
13589 * xml-support.c: Include <string>.
13590 (scope_level::scope_level(scope_level &&))
13591 (scope_level::~scope_level): Delete.
13592 (scope_level::body): Now a std::string.
13593 (gdb_xml_body_text, gdb_xml_end_element): Adjust.
13594 (xinclude_parsing_data::xinclude_parsing_data): Add 'output'
13595 parameter.
13596 (xinclude_parsing_data::~xinclude_parsing_data): Delete.
13597 (xinclude_parsing_data::output): Now a std::string reference.
13598 (xinclude_start_include): Adjust.
13599 (xml_xinclude_default): Adjust.
13600 (xml_process_xincludes): Add 'output' parameter, and return bool.
13601 * xml-support.h (xml_process_xincludes): Add 'output' parameter,
13602 and return bool.
13603 * xml-tdesc.c: Include <unordered_map> and <string>.
13604 (tdesc_xml_cache): Delete.
13605 (tdesc_xml_cache_s): Delete.
13606 (xml_cache): Now an std::unordered_map.
13607 (tdesc_parse_xml): Adjust to use std::string and unordered_map.
13608 (target_fetch_description_xml): Change return type to
13609 gdb::optional<std::string>, and adjust.
13610 * xml-tdesc.h: Include "common/gdb_optional.h" and <string>.
13611 (target_fetch_description_xml): Change return type to
13612 gdb::optional<std::string>.
13613
13614 2017-04-18 Pedro Alves <palves@redhat.com>
13615
13616 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13617 unittests/optional-selftests.c.
13618 (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o.
13619 * unittests/optional-selftests.c: New file.
13620 * unittests/optional/assignment/1.cc: New file.
13621 * unittests/optional/assignment/2.cc: New file.
13622 * unittests/optional/assignment/3.cc: New file.
13623 * unittests/optional/assignment/4.cc: New file.
13624 * unittests/optional/assignment/5.cc: New file.
13625 * unittests/optional/assignment/6.cc: New file.
13626 * unittests/optional/assignment/7.cc: New file.
13627 * unittests/optional/cons/copy.cc: New file.
13628 * unittests/optional/cons/default.cc: New file.
13629 * unittests/optional/cons/move.cc: New file.
13630 * unittests/optional/cons/value.cc: New file.
13631 * unittests/optional/in_place.cc: New file.
13632 * unittests/optional/observers/1.cc: New file.
13633 * unittests/optional/observers/2.cc: New file.
13634
13635 2017-04-18 Pedro Alves <palves@redhat.com>
13636
13637 * common/gdb_optional.h: Include common/traits.h.
13638 (in_place_t): New type.
13639 (in_place): New constexpr variable.
13640 (optional::optional): Remove member initialization of
13641 m_instantiated.
13642 (optional::optional(in_place_t...)): New constructor.
13643 (optional::~optional): Use reset.
13644 (optional::optional(const optional&)): New.
13645 (optional::optional(const optional&&)): New.
13646 (optional::optional(T &)): New.
13647 (optional::optional(T &&)): New.
13648 (operator::operator=(const optional &)): New.
13649 (operator::operator=(optional &&)): New.
13650 (operator::operator= (const T &))
13651 (operator::operator= (T &&))
13652 (operator::emplace (Args &&... args)): Return a T&. Use reset.
13653 (operator::reset): New.
13654 (operator::m_instantiated):: Add in-class initializer.
13655 * common/traits.h: Include <type_traits>.
13656 (struct And): New types.
13657
13658 2017-04-18 Pedro Alves <palves@redhat.com>
13659
13660 * xml-support.c: Include <vector>.
13661 (scope_level::scope_level(const gdb_xml_element *))
13662 (scope_level::scope_level(scope_level&&)): New.
13663 (scope_level::~scope_level): New.
13664 (scope_level_s): Delete.
13665 (gdb_xml_parser::scopes): Now a std::vector.
13666 (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
13667 Use std::vector.
13668 (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
13669 scope cleanup code.
13670 (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
13671 of the scopes member. Use std::vector::emplace_back.
13672
13673 2017-04-18 Pedro Alves <palves@redhat.com>
13674
13675 * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude
13676 a bool.
13677 (gdb_xml_end_element): Change type of first parameter.
13678 (gdb_xml_cleanup): Rename to ...
13679 (gdb_xml_parser::~gdb_xml_parser): ... this.
13680 (gdb_xml_create_parser_and_cleanup): Delete with ...
13681 (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
13682 to this new ctor.
13683 (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
13684 using gdb_xml_create_parser_and_cleanup.
13685 (xinclude_parsing_data): Add ctor/dtor.
13686 (xml_xinclude_cleanup): Delete.
13687 (xml_process_xincludes): Create a local xinclude_parsing_data
13688 instead of heap-allocating one. Create a local gdb_xml_parser
13689 instead of heap-allocating one with
13690 gdb_xml_create_parser_and_cleanup.
13691
13692 2017-04-18 John Baldwin <jhb@FreeBSD.org>
13693
13694 PR threads/20743
13695 * fbsd-nat.c (resume_one_thread_cb): Remove.
13696 (resume_all_threads_cb): Remove.
13697 (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
13698 iterate_over_threads.
13699
13700 2017-04-17 Joel Brobecker <brobecker@adacore.com>
13701
13702 * NEWS: Create a new section for the next release branch.
13703 Rename the section of the current branch, now that it has
13704 been cut.
13705
13706 2017-04-17 Joel Brobecker <brobecker@adacore.com>
13707
13708 GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
13709 * version.in: Bump version to 8.0.50.DATE-git.
13710
13711 2017-04-13 Sergio Durigan Junior <sergiodj@redhat.com>
13712
13713 PR gdb/21385
13714 * windows-nat.c (windows_create_inferior): Declare 'allargs'
13715 independently of the host, and fix build breakage on Cygwin.
13716
13717 2017-04-13 Pedro Alves <palves@redhat.com>
13718
13719 * inferior.c (free_inferior): Convert to ...
13720 (inferior::~inferior): ... this dtor.
13721 (inferior::inferior): New ctor, factored out from ...
13722 (add_inferior_silent): ... here. Allocate the inferior with a new
13723 expression.
13724 (delete_inferior): Call delete instead of free_inferior.
13725 * inferior.h (gdb_environ, continuation): Forward declare.
13726 (inferior): Now a class. Add in-class initialization to all
13727 members. Make boolean fields bool, except 'detaching'.
13728 (inferior::inferior): New explicit ctor.
13729 (inferior::~inferior): New.
13730
13731 2017-04-13 Pedro Alves <palves@redhat.com>
13732
13733 * inferior.c (init_inferior_list): Delete.
13734 * inferior.h (init_inferior_list): Delete.
13735
13736 2017-04-13 Pedro Alves <palves@redhat.com>
13737
13738 PR threads/13217
13739 * gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
13740 (top level): Call it twice, with different thread sets.
13741
13742 2017-04-13 Pedro Alves <palves@redhat.com>
13743
13744 * thread.c: Include <algorithm>.
13745 (thread_array_cleanup): Delete.
13746 (scoped_inc_dec_ref): New class.
13747 (live_threads_count): New function.
13748 (set_thread_refcount): Delete.
13749 (tp_array_compar_ascending): Now a bool.
13750 (tp_array_compar): Convert to a std::sort comparison function.
13751 (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
13752 and live_threads_count.
13753
13754 2017-04-13 Pedro Alves <palves@redhat.com>
13755
13756 * infrun.c (follow_fork_inferior): Also switch the current
13757 inferior.
13758
13759 2017-04-13 Pedro Alves <palves@redhat.com>
13760
13761 * breakpoint.c (watch_command_1): Save watchpoint-frame info
13762 before calling create_internal_breakpoint.
13763
13764 2017-04-13 Pedro Alves <palves@redhat.com>
13765
13766 * fork-child.c (execv_argv): New class.
13767 (breakup_args): Refactored as ...
13768 (execv_argv::init_for_no_shell): .. this method of execv_argv.
13769 Copy arguments to storage and replace separators with NULL
13770 terminators in place.
13771 (escape_bang_in_quoted_argument): Adjust to return bool.
13772 (execv_argv::execv_argv): New ctor.
13773 (execv_argv::init_for_shell): New method, factored out from
13774 fork_inferior. Don't strdup strings into the vector.
13775 (fork_inferior): Eliminate "shell" local and use execv_argv. Use
13776 Remove free_vector_argv call.
13777
13778 2017-04-13 Yao Qi <yao.qi@linaro.org>
13779
13780 * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
13781 tdep->rx_psw_type.
13782
13783 2017-04-13 Yao Qi <yao.qi@linaro.org>
13784
13785 * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
13786 * rx-tdep.c (rx_gdbarch_init): Likewise.
13787
13788 2017-04-13 Pedro Alves <palves@redhat.com>
13789
13790 * breakpoint.h (struct breakpoint): Reindent.
13791
13792 2017-04-13 Pedro Alves <palves@redhat.com>
13793
13794 * breakpoint.c (bp_location): Rename to ...
13795 (bp_locations): ... this. All references updated.
13796 (bp_location_count): Rename to ...
13797 (bp_locations_count): ... this. All references updated.
13798 (bp_location_placed_address_before_address_max): Rename to ...
13799 (bp_locations_placed_address_before_address_max): ... this. All
13800 references updated.
13801 (bp_location_shadow_len_after_address_max): Rename to ...
13802 (bp_locations_shadow_len_after_address_max): ... this. All
13803 references updated.
13804 (bp_location_compare_addrs): Rename to ...
13805 (bp_locations_compare_addrs): ... this. All references updated.
13806 (bp_location_compare):Rename to ...
13807 (bp_locations_compare): ... this. All references updated.
13808 (bp_location_target_extensions_update): Rename to ...
13809 (bp_locations_target_extensions_update): ... this. All references
13810 updated.
13811
13812 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
13813
13814 * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
13815 * common/common.m4: Check headers 'termios.h', 'termio.h' and
13816 'sgtty.h'.
13817 * common/gdb_termios.h: New file, with parts of "terminal.h".
13818 * inflow.c: Include "gdb_termios.h".
13819 * ser-unix.c: Include "gdb_termios.h".
13820 * terminal.h: Move terminal-related defines to
13821 "common/gdb_termios.h".
13822
13823 2017-04-12 Tom Tromey <tom@tromey.com>
13824
13825 * probe.c (parse_probes): Update.
13826 * location.h (delete_event_location): Don't declare.
13827 (event_location_deleter::operator()): Update.
13828 * location.c (event_location_deleter::operator()): Rename from
13829 delete_event_location.
13830 * linespec.h (linespec_result) <location>: Change type to
13831 event_location_up.
13832 * linespec.c (canonicalize_linespec, event_location_to_sals)
13833 (decode_objc): Update.
13834 (linespec_result): Don't call delete_event_location.
13835 * breakpoint.c (create_breakpoints_sal)
13836 (bkpt_probe_create_sals_from_location)
13837 (strace_marker_create_sals_from_location): Update.
13838
13839 2017-04-12 Tom Tromey <tom@tromey.com>
13840
13841 * linespec.h (struct linespec_result): Add constructor and
13842 destructor.
13843 (init_linespec_result, destroy_linespec_result)
13844 (make_cleanup_destroy_linespec_result): Don't declare.
13845 * linespec.c (init_linespec_result): Remove.
13846 (linespec_result::~linespec_result): Rename from
13847 destroy_linespec_result. Update.
13848 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
13849 Remove.
13850 * breakpoint.c (create_breakpoint, break_range_command)
13851 (decode_location_default): Update.
13852 * ax-gdb.c (agent_command_1): Update.
13853
13854 2017-04-12 Tom Tromey <tom@tromey.com>
13855
13856 * remote.c (remote_download_tracepoint): Update.
13857 * python/py-breakpoint.c (bppy_get_location): Update.
13858 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
13859 (gdbscm_breakpoint_location): Update.
13860 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
13861 * breakpoint.h (struct breakpoint) <location, location_range_end>:
13862 Change type to event_location_up.
13863 * breakpoint.c (create_overlay_event_breakpoint)
13864 (create_longjmp_master_breakpoint)
13865 (create_std_terminate_master_breakpoint)
13866 (create_exception_master_breakpoint)
13867 (breakpoint_event_location_empty_p, print_breakpoint_location)
13868 (print_one_breakpoint_location, create_thread_event_breakpoint)
13869 (init_breakpoint_sal, create_breakpoint)
13870 (print_recreate_ranged_breakpoint, break_range_command)
13871 (init_ada_exception_breakpoint, say_where): Update.
13872 (base_breakpoint_dtor): Don't call delete_event_location.
13873 (bkpt_print_recreate, tracepoint_print_recreate)
13874 (dprintf_print_recreate, update_static_tracepoint)
13875 (breakpoint_re_set_default): Update.
13876
13877 2017-04-12 Tom Tromey <tom@tromey.com>
13878
13879 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
13880 type of "to_do". Update.
13881 (compute_stack_depth): Use std::vector.
13882
13883 2017-04-12 Tom Tromey <tom@tromey.com>
13884
13885 * printcmd.c (find_instruction_backward): Use std::vector.
13886
13887 2017-04-12 Tom Tromey <tom@tromey.com>
13888
13889 * symfile.c (objfilep): Remove typedef.
13890 (reread_symbols): Use a std::vector.
13891
13892 2017-04-12 Tom Tromey <tom@tromey.com>
13893
13894 * mi/mi-main.c (exec_direction_forward): Remove.
13895 (exec_reverse_continue, mi_execute_command): Use scoped_restore.
13896 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
13897 scoped_restore.
13898 * guile/guile.c (guile_repl_command, guile_command)
13899 (gdbscm_execute_gdb_command): Use scoped_restore.
13900 * go-exp.y (go_parse): Use scoped_restore.
13901 * d-exp.y (d_parse): Use scoped_restore.
13902 * cli/cli-decode.c (cmd_func): Use scoped_restore.
13903 * c-exp.y (c_parse): Use scoped_restore.
13904
13905 2017-04-12 Tom Tromey <tom@tromey.com>
13906
13907 * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
13908 (mi_parse): Update return type.
13909 (mi_parse_free): Remove.
13910 * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
13911 (mi_parse::~mi_parse): Rename from mi_parse_free.
13912 (mi_parse_cleanup): Remove.
13913 (mi_parse): Return a unique_ptr. Use new.
13914 * mi/mi-main.c (mi_execute_command): Update.
13915
13916 2017-04-12 Tom Tromey <tom@tromey.com>
13917
13918 * location.c (explicit_location_lex_one): Return a
13919 unique_xmalloc_ptr.
13920 (string_to_explicit_location): Update. Remove cleanups.
13921
13922 2017-04-12 Tom Tromey <tom@tromey.com>
13923
13924 * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
13925 (compare_value_and_voffset): Change type. Update.
13926 (compute_vtable_size): Change type of "offset_vec".
13927 (gnuv3_print_vtable): Use std::vector. Remove cleanups.
13928 (gnuv3_get_typeid): Remove extraneous declaration.
13929
13930 2017-04-12 Tom Tromey <tom@tromey.com>
13931
13932 * charset.h (wchar_iterator): Fix comment.
13933
13934 2017-04-12 Tom Tromey <tom@tromey.com>
13935
13936 * charset.c (iconv_wrapper): New class.
13937 (cleanup_iconv): Remove.
13938 (convert_between_encodings): Use it.
13939
13940 2017-04-12 Tom Tromey <tom@tromey.com>
13941
13942 * symfile.h (increment_reading_symtab): Update type.
13943 * symfile.c (decrement_reading_symtab): Remove.
13944 (increment_reading_symtab): Return a scoped_restore_tmpl<int>.
13945 * psymtab.c (psymtab_to_symtab): Update.
13946 * dwarf2read.c (dw2_instantiate_symtab): Update.
13947
13948 2017-04-12 Tom Tromey <tom@tromey.com>
13949
13950 * jit.c (struct jit_reader): Declare separately. Add constructor
13951 and destructor. Change type of "handle".
13952 (loaded_jit_reader): Define separately.
13953 (jit_reader_load): Update. New "new".
13954 (jit_reader_unload_command): Use "delete".
13955 * gdb-dlfcn.h (struct dlclose_deleter): New.
13956 (gdb_dlhandle_up): New typedef.
13957 (gdb_dlopen, gdb_dlsym): Update types.
13958 (gdb_dlclose): Remove.
13959 * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up.
13960 (gdb_dlsym): Change type of "handle".
13961 (make_cleanup_dlclose): Remove.
13962 (dlclose_deleter::operator()): Rename from gdb_dlclose.
13963 * compile/compile-c-support.c (load_libcc): Update.
13964
13965 2017-04-12 Tom Tromey <tom@tromey.com>
13966
13967 * symtab.h (find_pcs_for_symtab_line): Change return type.
13968 * symtab.c (find_pcs_for_symtab_line): Change return type.
13969 * python/py-linetable.c (build_line_table_tuple_from_pcs): Change
13970 type of "vec". Update.
13971 (ltpy_get_pcs_for_line): Update.
13972 * linespec.c (decode_digits_ordinary): Update.
13973
13974 2017-04-12 Tom Tromey <tom@tromey.com>
13975
13976 * tracepoint.c (actions_command): Update.
13977 * python/python.c (python_command, python_interactive_command):
13978 Update.
13979 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
13980 * guile/guile.c (guile_command): Update.
13981 * defs.h (read_command_lines, read_command_lines_1): Return
13982 command_line_up.
13983 (command_lines_deleter): New struct.
13984 (command_line_up): New typedef.
13985 * compile/compile.c (compile_code_command)
13986 (compile_print_command): Update.
13987 * cli/cli-script.h (get_command_line, copy_command_lines): Return
13988 command_line_up.
13989 (make_cleanup_free_command_lines): Remove.
13990 * cli/cli-script.c (get_command_line, read_command_lines_1)
13991 (copy_command_lines): Return command_line_up.
13992 (while_command, if_command, read_command_lines, define_command)
13993 (document_command): Update.
13994 (do_free_command_lines_cleanup, make_cleanup_free_command_lines):
13995 Remove.
13996 * breakpoint.h (breakpoint_set_commands): Change type of
13997 "commands".
13998 * breakpoint.c (breakpoint_set_commands): Change type of
13999 "commands". Update.
14000 (do_map_commands_command, update_dprintf_command_list)
14001 (create_tracepoint_from_upload): Update.
14002
14003 2017-04-12 Tom Tromey <tom@tromey.com>
14004
14005 * tracepoint.c (scope_info): Update.
14006 * spu-tdep.c (spu_catch_start): Update.
14007 * python/python.c (gdbpy_decode_line): Update.
14008 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
14009 * python/py-breakpoint.c (bppy_init): Update.
14010 * probe.c (parse_probes): Update.
14011 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
14012 * location.h (event_location_deleter): New struct.
14013 (event_location_up): New typedef.
14014 (new_linespec_location, new_address_location, new_probe_location)
14015 (new_explicit_location, copy_event_location)
14016 (string_to_event_location, string_to_event_location_basic)
14017 (string_to_explicit_location): Update return type.
14018 (make_cleanup_delete_event_location): Remove.
14019 * location.c (new_linespec_location, new_address_location)
14020 (new_probe_location, new_explicit_location, copy_event_location):
14021 Return event_location_up.
14022 (delete_event_location_cleanup)
14023 (make_cleanup_delete_event_location): Remove.
14024 (string_to_explicit_location, string_to_event_location_basic)
14025 (string_to_event_location): Return event_location_up.
14026 * linespec.c (canonicalize_linespec, event_location_to_sals)
14027 (decode_line_with_current_source)
14028 (decode_line_with_last_displayed, decode_objc): Update.
14029 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
14030 * completer.c (location_completer): Update.
14031 * cli/cli-cmds.c (edit_command, list_command): Update.
14032 * breakpoint.c (create_overlay_event_breakpoint)
14033 (create_longjmp_master_breakpoint)
14034 (create_std_terminate_master_breakpoint)
14035 (create_exception_master_breakpoint)
14036 (create_thread_event_breakpoint): Update.
14037 (init_breakpoint_sal): Update. Remove some dead code.
14038 (create_breakpoint_sal): Change type of "location". Update.
14039 (create_breakpoints_sal, create_breakpoint, break_command_1)
14040 (dprintf_command, break_range_command, until_break_command)
14041 (init_ada_exception_breakpoint)
14042 (strace_marker_create_sals_from_location)
14043 (update_static_tracepoint, trace_command, ftrace_command)
14044 (strace_command, create_tracepoint_from_upload): Update.
14045 * break-catch-throw.c (re_set_exception_catchpoint): Update.
14046 * ax-gdb.c (agent_command_1): Update.
14047
14048 2017-04-12 Pedro Alves <palves@redhat.com>
14049
14050 * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o.
14051 * configure.tgt: Handle i[34567]86-*-go32* and
14052 i[34567]86-*-msdosdjgpp*.
14053 * i386-tdep.c (i386_svr4_reg_to_regnum):
14054 Make extern.
14055 (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to
14056 i386-go32-tdep.c.
14057 (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c.
14058 * i386-go32-tdep.c: New file.
14059 * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New
14060 declarations.
14061
14062 2017-04-12 Simon Marchi <simon.marchi@ericsson.com>
14063
14064 * aix-thread.c (pd_status2str): Change return type to const char *.
14065
14066 2017-04-12 Pedro Alves <palves@redhat.com>
14067
14068 * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
14069 calls to set_gdbarch_gnu_triplet_regexp.
14070
14071 2017-04-12 Pedro Alves <palves@redhat.com>
14072
14073 PR gdb/21323
14074 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>:
14075 New enum value.
14076 (cplus_language_arch_info): Register cplus_primitive_type_wchar_t.
14077 * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field.
14078 * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type.
14079 * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values.
14080 * gdbarch.h, gdbarch.c: Regenerate.
14081 * aarch64-tdep.c (aarch64_gdbarch_init): Override
14082 gdbarch_wchar_bit and gdbarch_wchar_signed.
14083 * alpha-tdep.c (alpha_gdbarch_init): Likewise.
14084 * arm-tdep.c (arm_gdbarch_init): Likewise.
14085 * avr-tdep.c (avr_gdbarch_init): Likewise.
14086 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
14087 * i386-nto-tdep.c (i386nto_init_abi): Likewise.
14088 * i386-tdep.c (i386_go32_init_abi): Likewise.
14089 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
14090 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
14091 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
14092 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
14093 * sh-tdep.c (sh_gdbarch_init): Likewise.
14094 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
14095 * sparc64-tdep.c (sparc64_init_abi): Likewise.
14096 * windows-tdep.c (windows_init_abi): Likewise.
14097 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
14098
14099 2017-04-12 Pedro Alves <palves@redhat.com>
14100
14101 PR c++/21323
14102 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t,
14103 cplus_primitive_type_char32_t>: New enum values.
14104 (cplus_language_arch_info): Register cplus_primitive_type_char16_t
14105 and cplus_primitive_type_char32_t.
14106 * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or
14107 32, use the archtecture's built-in type for char16_t and char32_t,
14108 respectively. Otherwise, fallback to init_integer_type as before,
14109 but make the type unsigned, and issue a complaint.
14110 * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned.
14111
14112 2017-04-12 Alan Hayward <alan.hayward@arm.com>
14113
14114 * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added.
14115 (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
14116
14117 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
14118
14119 * windows-nat.c (windows_create_inferior): Declare 'toexec' as
14120 'const char *'.
14121
14122 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
14123
14124 * common/common-utils.c (free_vector_argv): New function.
14125 * common/common-utils.h: Include <vector>.
14126 (free_vector_argv): New prototype.
14127 * darwin-nat.c (darwin_create_inferior): Rewrite function
14128 prototype in order to constify "exec_file" and accept a
14129 "std::string" for "allargs".
14130 * fork-child.c: Include <vector>.
14131 (breakup_args): Rewrite function, using C++.
14132 (fork_inferior): Rewrite function header, constify "exec_file_arg"
14133 and accept "std::string" for "allargs". Update the code to
14134 calculate "argv" based on "allargs". Update calls to "exec_fun"
14135 and "execvp".
14136 * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in
14137 order to constify "exec_file" and accept a "std::string" for
14138 "allargs".
14139 * go32-nat.c (go32_create_inferior): Likewise.
14140 * inf-ptrace.c (inf_ptrace_create_inferior): Likewise.
14141 * infcmd.c (run_command_1): Constify "exec_file". Use
14142 "std::string" for inferior arguments.
14143 * inferior.h (fork_inferior): Update prototype.
14144 * linux-nat.c (linux_nat_create_inferior): Rewrite function
14145 prototype in order to constify "exec_file" and accept a
14146 "std::string" for "allargs".
14147 * nto-procfs.c (procfs_create_inferior): Likewise.
14148 * procfs.c (procfs_create_inferior): Likewise.
14149 * remote-sim.c (gdbsim_create_inferior): Likewise.
14150 * remote.c (extended_remote_run): Update code to accept
14151 "std::string" as argument.
14152 (extended_remote_create_inferior): Rewrite function prototype in
14153 order to constify "exec_file" and accept a "std::string" for
14154 "allargs".
14155 * rs6000-nat.c (super_create_inferior): Likewise.
14156 (rs6000_create_inferior): Likewise.
14157 * target.h (struct target_ops) <to_create_inferior>: Likewise.
14158 * windows-nat.c (windows_create_inferior): Likewise.
14159
14160 2017-04-11 Pedro Alves <palves@redhat.com>
14161
14162 * thread.c: Fix whitespace throughout.
14163
14164 2017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com>
14165
14166 * linux-nat.c (linux_nat_detach): Remove delete_lwp call.
14167
14168 2017-04-11 Alan Hayward <alan.hayward@arm.com>
14169
14170 * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
14171
14172 2017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
14173
14174 PR gdb/21364
14175 * osdata.c (info_osdata): Check if 'type' is an empty string
14176 instead of NULL.
14177
14178 2017-04-10 Pedro Alves <palves@redhat.com>
14179
14180 * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid)
14181 (ptid_to_global_thread_id, in_thread_list)
14182 (do_captured_list_thread_ids, set_resumed, set_running)
14183 (set_executing, set_stop_requested, finish_thread_state)
14184 (validate_registers_access, can_access_registers_ptid)
14185 (print_thread_info_1, switch_to_thread)
14186 (do_restore_current_thread_cleanup)
14187 (make_cleanup_restore_current_thread, thread_command)
14188 (thread_name_command): Use operator== instead of ptid_equal.
14189
14190 2017-04-10 Pedro Alves <palves@redhat.com>
14191
14192 * thread.c (struct current_thread_cleanup) <next>: Delete field.
14193 (current_thread_cleanup_chain): Delete.
14194 (restore_current_thread_cleanup_dtor)
14195 (make_cleanup_restore_current_thread): Remove references to
14196 current_thread_cleanup_chain.
14197
14198 2017-04-10 Alan Hayward <alan.hayward@arm.com>
14199
14200 * msp430-tdep.c (msp430_pseudo_register_read): Never return
14201 REG_UNKNOWN.
14202
14203 2017-04-10 Yao Qi <yao.qi@linaro.org>
14204
14205 PR gdb/19942
14206 * gdbthread.h (thread_info::deletable): New method.
14207 (thread_info::incref): New method.
14208 (thread_info::decref): New method.
14209 (thread_info::refcount): Move it to private.
14210 * infrun.c (save_stop_context): Call inc_refcount.
14211 (release_stop_context_cleanup): Likewise.
14212 * thread.c (set_thread_exited): New function.
14213 (init_thread_list): Delete "tp" only it is deletable, otherwise
14214 call set_thread_exited.
14215 (delete_thread_1): Call set_thread_exited.
14216 (current_thread_cleanup) <inferior_pid>: Remove.
14217 <thread>: New field.
14218 (restore_current_thread_ptid_changed): Removed.
14219 (do_restore_current_thread_cleanup): Adjust.
14220 (restore_current_thread_cleanup_dtor): Don't call
14221 find_thread_ptid.
14222 (set_thread_refcount): Use dec_refcount.
14223 (make_cleanup_restore_current_thread): Adjust.
14224 (thread_apply_all_command): Call inc_refcount.
14225 (_initialize_thread): Don't call
14226 observer_attach_thread_ptid_changed.
14227
14228 2017-04-10 Yao Qi <yao.qi@linaro.org>
14229
14230 * thread.c (delete_thread_1): Hoist code on marking thread as
14231 exited.
14232
14233 2017-04-09 Simon Marchi <simon.marchi@polymtl.ca>
14234
14235 * windows-nat.c (windows_detach): Initialize ptid with
14236 minus_one_ptid.
14237
14238 2017-04-07 Simon Marchi <simon.marchi@ericsson.com>
14239
14240 * unittests/ptid-selftests.c: Fix erroneous assert messages.
14241
14242 2017-04-07 Alan Hayward <alan.hayward@arm.com>
14243
14244 * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
14245 (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE.
14246 (bfin_pseudo_register_write): Likewise
14247
14248 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
14249
14250 * common/ptid.h (struct ptid): Change to...
14251 (class ptid_t): ... this.
14252 <ptid_t>: New constructors.
14253 <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=,
14254 matches>: New methods.
14255 <make_null, make_minus_one>: New static methods.
14256 <pid>: Rename to...
14257 <m_pid>: ...this.
14258 <lwp>: Rename to...
14259 <m_lwp>: ...this.
14260 <tid>: Rename to...
14261 <m_tid>: ...this.
14262 (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
14263 ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments
14264 as references, move comment to class ptid_t.
14265 * common/ptid.c (null_ptid, minus_one_ptid): Initialize with
14266 ptid_t static methods.
14267 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid,
14268 ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match):
14269 Take ptid arguments as references, implement using ptid_t methods.
14270 * unittests/ptid-selftests.c: New file.
14271 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14272 unittests/ptid-selftests.c.
14273 (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o.
14274
14275 2017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
14276
14277 * python/python.c (python_run_simple_file): Cast mode literal to
14278 non-const char pointer as expected by PyFile_FromString.
14279
14280 2017-04-05 Simon Marchi <simon.marchi@ericsson.com>
14281
14282 * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with
14283 minus_one_ptid and null_ptid.
14284
14285 2017-04-05 Pedro Alves <palves@redhat.com>
14286
14287 * warning.m4 (build_warnings): Remove -Wno-write-strings.
14288 * configure: Regenerate.
14289
14290 2017-04-05 Pedro Alves <palves@redhat.com>
14291
14292 * ada-exp.y (yyerror): Constify.
14293 * ada-lang.c (bound_name, get_selections)
14294 (ada_variant_discrim_type)
14295 (ada_variant_discrim_name, ada_value_struct_elt)
14296 (ada_lookup_struct_elt_type, is_unchecked_variant)
14297 (ada_which_variant_applies, standard_exc, ada_get_next_arg)
14298 (catch_ada_exception_command_split)
14299 (catch_ada_assert_command_split, catch_assert_command)
14300 (ada_op_name): Constify.
14301 * ada-lang.h (ada_yyerror, get_selections)
14302 (ada_variant_discrim_name, ada_value_struct_elt): Constify.
14303 * arc-tdep.c (arc_print_frame_cache): Constify.
14304 * arm-tdep.c (arm_skip_stub): Constify.
14305 * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref)
14306 (gen_aggregate_elt_ref): Constify.
14307 * bcache.c (print_bcache_statistics): Constify.
14308 * bcache.h (print_bcache_statistics): Constify.
14309 * break-catch-throw.c (catch_exception_command_1):
14310 * breakpoint.c (struct ep_type_description::description):
14311 Constify.
14312 (add_solib_catchpoint): Constify.
14313 (catch_fork_command_1): Add cast.
14314 (add_catch_command): Constify.
14315 * breakpoint.h (add_catch_command, add_solib_catchpoint):
14316 Constify.
14317 * bsd-uthread.c (bsd_uthread_state): Constify.
14318 * buildsym.c (patch_subfile_names): Constify.
14319 * buildsym.h (next_symbol_text_func, patch_subfile_names):
14320 Constify.
14321 * c-exp.y (yyerror): Constify.
14322 (token::oper): Constify.
14323 * c-lang.h (c_yyerror, cp_print_class_member): Constify.
14324 * c-varobj.c (cplus_describe_child): Constify.
14325 * charset.c (find_charset_names): Add cast.
14326 (find_charset_names): Constify array and add const_cast.
14327 * cli/cli-cmds.c (complete_command, cd_command): Constify.
14328 (edit_command): Constify.
14329 * cli/cli-decode.c (lookup_cmd): Constify.
14330 * cli/cli-dump.c (dump_memory_command, dump_value_command):
14331 Constify.
14332 (struct dump_context): Constify.
14333 (add_dump_command, restore_command): Constify.
14334 * cli/cli-script.c (get_command_line): Constify.
14335 * cli/cli-script.h (get_command_line): Constify.
14336 * cli/cli-utils.c (check_for_argument): Constify.
14337 * cli/cli-utils.h (check_for_argument): Constify.
14338 * coff-pe-read.c (struct read_pe_section_data): Constify.
14339 * command.h (lookup_cmd): Constify.
14340 * common/print-utils.c (decimal2str): Constify.
14341 * completer.c (gdb_print_filename): Constify.
14342 * corefile.c (set_gnutarget): Constify.
14343 * cp-name-parser.y (yyerror): Constify.
14344 * cp-valprint.c (cp_print_class_member): Constify.
14345 * cris-tdep.c (cris_register_name, crisv32_register_name):
14346 Constify.
14347 * d-exp.y (yyerror): Constify.
14348 (struct token::oper): Constify.
14349 * d-lang.h (d_yyerror): Constify.
14350 * dbxread.c (struct header_file_location::name): Constify.
14351 (add_old_header_file, add_new_header_file, last_function_name)
14352 (dbx_next_symbol_text, add_bincl_to_list)
14353 (find_corresponding_bincl_psymtab, set_namestring)
14354 (find_stab_function_addr, read_dbx_symtab, start_psymtab)
14355 (dbx_end_psymtab, read_ofile_symtab, process_one_symbol):
14356 * defs.h (command_line_input, print_address_symbolic)
14357 (deprecated_readline_begin_hook): Constify.
14358 * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name):
14359 Constify.
14360 * event-top.c (handle_line_of_input): Constify and add cast.
14361 * exceptions.c (catch_errors): Constify.
14362 * exceptions.h (catch_errors): Constify.
14363 * expprint.c (print_subexp_standard, op_string, op_name)
14364 (op_name_standard, dump_raw_expression, dump_raw_expression):
14365 * expression.h (op_name, op_string, dump_raw_expression):
14366 Constify.
14367 * f-exp.y (yyerror): Constify.
14368 (struct token::oper): Constify.
14369 (struct f77_boolean_val::name): Constify.
14370 * f-lang.c (f_word_break_characters): Constify.
14371 * f-lang.h (f_yyerror): Constify.
14372 * fork-child.c (fork_inferior): Add cast.
14373 * frv-tdep.c (struct gdbarch_tdep::register_names): Constify.
14374 (new_variant): Constify.
14375 * gdbarch.sh (pstring_ptr, pstring_list): Constify.
14376 * gdbarch.c: Regenerate.
14377 * gdbcore.h (set_gnutarget): Constify.
14378 * go-exp.y (yyerror): Constify.
14379 (token::oper): Constify.
14380 * go-lang.h (go_yyerror): Constify.
14381 * go32-nat.c (go32_sysinfo): Constify.
14382 * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify.
14383 * guile/scm-cmd.c (cmdscm_function): Constify.
14384 * guile/scm-param.c (pascm_param_value): Constify.
14385 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
14386 (h8300sx_register_name): Constify.
14387 * hppa-tdep.c (hppa32_register_name, hppa64_register_name):
14388 Constify.
14389 * ia64-tdep.c (ia64_register_names): Constify.
14390 * infcmd.c (construct_inferior_arguments): Constify.
14391 (path_command, attach_post_wait): Constify.
14392 * language.c (show_range_command, show_case_command)
14393 (unk_lang_error): Constify.
14394 * language.h (language_defn::la_error)
14395 (language_defn::la_name_of_this): Constify.
14396 * linespec.c (decode_line_2): Constify.
14397 * linux-thread-db.c (thread_db_err_str): Constify.
14398 * lm32-tdep.c (lm32_register_name): Constify.
14399 * m2-exp.y (yyerror): Constify.
14400 * m2-lang.h (m2_yyerror): Constify.
14401 * m32r-tdep.c (m32r_register_names): Constify and make static.
14402 * m68hc11-tdep.c (m68hc11_register_names): Constify.
14403 * m88k-tdep.c (m88k_register_name): Constify.
14404 * macroexp.c (appendmem): Constify.
14405 * mdebugread.c (fdr_name, add_data_symbol, parse_type)
14406 (upgrade_type, parse_external, parse_partial_symbols)
14407 (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab)
14408 (new_symbol): Constify.
14409 * memattr.c (mem_info_command): Constify.
14410 * mep-tdep.c (register_name_from_keyword): Constify.
14411 * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env):
14412 Constify.
14413 * mi/mi-cmd-stack.c (list_args_or_locals): Constify.
14414 * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify.
14415 * mi/mi-main.c (captured_mi_execute_command): Constify and add
14416 cast.
14417 (mi_execute_async_cli_command): Constify.
14418 * mips-tdep.c (mips_register_name): Constify.
14419 * mn10300-tdep.c (register_name, mn10300_generic_register_name)
14420 (am33_register_name, am33_2_register_name)
14421 * moxie-tdep.c (moxie_register_names): Constify.
14422 * nat/linux-osdata.c (osdata_type): Constify fields.
14423 * nto-tdep.c (nto_parse_redirection): Constify.
14424 * objc-lang.c (lookup_struct_typedef, lookup_objc_class)
14425 (lookup_child_selector): Constify.
14426 (objc_methcall::name): Constify.
14427 * objc-lang.h (lookup_objc_class, lookup_child_selector)
14428 (lookup_struct_typedef): Constify.
14429 * objfiles.c (pc_in_section): Constify.
14430 * objfiles.h (pc_in_section): Constify.
14431 * p-exp.y (struct token::oper): Constify.
14432 (yyerror): Constify.
14433 * p-lang.h (pascal_yyerror): Constify.
14434 * parser-defs.h (op_name_standard): Constify.
14435 (op_print::string): Constify.
14436 (exp_descriptor::op_name): Constify.
14437 * printcmd.c (print_address_symbolic): Constify.
14438 * psymtab.c (print_partial_symbols): Constify.
14439 * python/py-breakpoint.c (stop_func): Constify.
14440 (bppy_get_expression): Constify.
14441 * python/py-cmd.c (cmdpy_completer::name): Constify.
14442 (cmdpy_function): Constify.
14443 * python/py-event.c (evpy_add_attribute)
14444 (gdbpy_initialize_event_generic): Constify.
14445 * python/py-event.h (evpy_add_attribute)
14446 (gdbpy_initialize_event_generic): Constify.
14447 * python/py-evts.c (add_new_registry): Constify.
14448 * python/py-finishbreakpoint.c (outofscope_func): Constify.
14449 * python/py-framefilter.c (get_py_iter_from_func): Constify.
14450 * python/py-inferior.c (get_buffer): Add cast.
14451 * python/py-param.c (parm_constant::name): Constify.
14452 * python/py-unwind.c (fprint_frame_id): Constify.
14453 * python/python.c (gdbpy_parameter_value): Constify.
14454 * remote-fileio.c (remote_fio_func_map): Make 'name' const.
14455 * remote.c (memory_packet_config::name): Constify.
14456 (show_packet_config_cmd, remote_write_bytes)
14457 (remote_buffer_add_string):
14458 * reverse.c (exec_reverse_once): Constify.
14459 * rs6000-tdep.c (variant::name, variant::description): Constify.
14460 * rust-exp.y (rustyyerror): Constify.
14461 * rust-lang.c (rust_op_name): Constify.
14462 * rust-lang.h (rustyyerror): Constify.
14463 * serial.h (serial_ops::name): Constify.
14464 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
14465 (sh_sh3e_register_name, sh_sh2e_register_name)
14466 (sh_sh2a_register_name, sh_sh2a_nofpu_register_name)
14467 (sh_sh_dsp_register_name, sh_sh3_dsp_register_name)
14468 (sh_sh4_register_name, sh_sh4_nofpu_register_name)
14469 (sh_sh4al_dsp_register_name): Constify.
14470 * sh64-tdep.c (sh64_register_name): Constify.
14471 * solib-darwin.c (lookup_symbol_from_bfd): Constify.
14472 * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify.
14473 * stabsread.c (patch_block_stabs, read_type_number)
14474 (ref_map::stabs, ref_add, process_reference)
14475 (symbol_reference_defined, define_symbol, define_symbol)
14476 (error_type, read_type, read_member_functions, read_cpp_abbrev)
14477 (read_one_struct_field, read_struct_fields, read_baseclasses)
14478 (read_tilde_fields, read_struct_type, read_array_type)
14479 (read_enum_type, read_sun_builtin_type, read_sun_floating_type)
14480 (read_huge_number, read_range_type, read_args, common_block_start)
14481 (find_name_end): Constify.
14482 * stabsread.h (common_block_start, define_symbol)
14483 (process_one_symbol, symbol_reference_defined, ref_add):
14484 * symfile.c (get_section_index, add_symbol_file_command):
14485 * symfile.h (get_section_index): Constify.
14486 * target-descriptions.c (tdesc_type::name): Constify.
14487 (tdesc_free_type): Add cast.
14488 * target.c (find_default_run_target):
14489 (add_deprecated_target_alias, find_default_run_target)
14490 (target_announce_detach): Constify.
14491 (do_option): Constify.
14492 * target.h (add_deprecated_target_alias): Constify.
14493 * thread.c (print_thread_info_1): Constify.
14494 * top.c (deprecated_readline_begin_hook, command_line_input):
14495 Constify.
14496 (init_main): Add casts.
14497 * top.h (handle_line_of_input): Constify.
14498 * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify.
14499 * tracepoint.c (tvariables_info_1, trace_status_mi): Constify.
14500 (tfind_command): Rename to ...
14501 (tfind_command_1): ... this and constify.
14502 (tfind_command): New function.
14503 (tfind_end_command, tfind_start_command): Adjust.
14504 (encode_source_string): Constify.
14505 * tracepoint.h (encode_source_string): Constify.
14506 * tui/tui-data.c (tui_partial_win_by_name): Constify.
14507 * tui/tui-data.h (tui_partial_win_by_name): Constify.
14508 * tui/tui-source.c (tui_set_source_content_nil): Constify.
14509 * tui/tui-source.h (tui_set_source_content_nil): Constify.
14510 * tui/tui-win.c (parse_scrolling_args): Constify.
14511 * tui/tui-windata.c (tui_erase_data_content): Constify.
14512 * tui/tui-windata.h (tui_erase_data_content): Constify.
14513 * tui/tui-winsource.c (tui_erase_source_content): Constify.
14514 * tui/tui.c (tui_enable): Add cast.
14515 * utils.c (defaulted_query): Constify.
14516 (init_page_info): Add cast.
14517 (puts_debug, subset_compare): Constify.
14518 * utils.h (subset_compare): Constify.
14519 * varobj.c (varobj_format_string): Constify.
14520 * varobj.h (varobj_format_string): Constify.
14521 * vax-tdep.c (vax_register_name): Constify.
14522 * windows-nat.c (windows_detach): Constify.
14523 * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify.
14524 * xml-support.c (gdb_xml_end_element): Constify.
14525 * xml-tdesc.c (tdesc_start_reg): Constify.
14526 * xstormy16-tdep.c (xstormy16_register_name): Constify.
14527 * xtensa-tdep.c (xtensa_find_register_by_name): Constify.
14528 * xtensa-tdep.h (xtensa_register_t::name): Constify.
14529
14530 2017-04-05 Pedro Alves <palves@redhat.com>
14531
14532 * proc-api.c (struct trans): Constify.
14533 (procfs_note): Constify.
14534 * proc-events.c (struct trans, syscall_table):
14535 * proc-flags.c (struct trans): Constify.
14536 * proc-utils.h (procfs_note): Constify.
14537 * proc-why.c (struct trans): Constify.
14538 * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error)
14539 (procfs_detach): Constify.
14540 * sol-thread.c (struct string_map): Constify.
14541 (td_err_string, td_state_string): Constify.
14542
14543 2017-04-05 Pedro Alves <palves@redhat.com>
14544
14545 * proc-api.c (procfs_filename): Don't initialize
14546 procfs_filename.
14547 (prepare_to_trace): Assume procfs_filename is non-NULL.
14548 (_initialize_proc_api): Give procfs_filename a default value here.
14549
14550 2017-04-05 Pedro Alves <palves@redhat.com>
14551
14552 * break-catch-throw.c (handle_gnu_v3_exceptions): Constify
14553 'cond_string' parameter.
14554 (extract_exception_regexp): Constify 'string' parameter.
14555 (catch_exception_command_1): Constify.
14556 * breakpoint.c (init_catchpoint)
14557 (create_fork_vfork_event_catchpoint): Constify 'cond_string'
14558 parameter.
14559 (ep_parse_optional_if_clause, catch_fork_command_1)
14560 (catch_exec_command_1): Constify.
14561 * breakpoint.h (init_catchpoint): Constify 'cond_string'
14562 parameter.
14563 (ep_parse_optional_if_clause): Constify.
14564 * cli/cli-utils.c (remove_trailing_whitespace)
14565 (check_for_argument): Constify.
14566 * cli/cli-utils.h (remove_trailing_whitespace): Constify and add
14567 non-const overload.
14568 (check_for_argument): Likewise.
14569
14570 2017-04-05 Pedro Alves <palves@redhat.com>
14571
14572 * event-top.c (command_line_handler): Add cast to execute_command
14573 call.
14574 * record-btrace.c (cmd_record_btrace_bts_start)
14575 (cmd_record_btrace_pt_start, cmd_record_btrace_start)
14576 (cmd_record_btrace_start): Add cast to execute_command call.
14577 * record-full.c (record_full_goto_insn):
14578 * record.c (record_start, record_stop): Add cast to
14579 execute_command_to_string calls.
14580 (cmd_record_start): Add cast to execute_command calls.
14581
14582 2017-04-05 Pedro Alves <palves@redhat.com>
14583
14584 * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New
14585 static inline function.
14586 * python/py-arch.c (archpy_disassemble): Constify 'keywords'
14587 array and use gdb_PyArg_ParseTupleAndKeywords.
14588 * python/py-cmd.c (cmdpy_init): Likewise.
14589 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
14590 * python/py-inferior.c (infpy_read_memory, infpy_write_memory)
14591 (infpy_search_memory): Likewise.
14592 * python/py-objfile.c (objfpy_add_separate_debug_file)
14593 (gdbpy_lookup_objfile): Likewise.
14594 * python/py-symbol.c (gdbpy_lookup_symbol)
14595 (gdbpy_lookup_global_symbol): Likewise.
14596 * python/py-type.c (gdbpy_lookup_type): Likewise.
14597 * python/py-value.c (valpy_lazy_string, valpy_string): Likewise.
14598 * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush):
14599 Likewise.
14600
14601 2017-04-05 Pedro Alves <palves@redhat.com>
14602
14603 * python/python-internal.h (gdb_PyGetSetDef): New type.
14604 * python/py-block.c (block_object_getset)
14605 (breakpoint_object_getset): Now a gdb_PyGetSetDef array.
14606 * python/py-event.c (event_object_getset)
14607 (finish_breakpoint_object_getset): Likewise.
14608 * python/py-inferior.c (inferior_object_getset): Likewise.
14609 * python/py-infthread.c (thread_object_getset): Likewise.
14610 * python/py-lazy-string.c (lazy_string_object_getset): Likewise.
14611 * python/py-linetable.c (linetable_entry_object_getset): Likewise.
14612 * python/py-objfile.c (objfile_getset): Likewise.
14613 * python/py-progspace.c (pspace_getset): Likewise.
14614 * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset):
14615 Likewise.
14616 * python/py-record.c (recpy_record_getset): Likewise.
14617 * python/py-symbol.c (symbol_object_getset): Likewise.
14618 * python/py-symtab.c (symtab_object_getset, sal_object_getset):
14619 Likewise.
14620 * python/py-type.c (type_object_getset, field_object_getset):
14621 Likewise.
14622 * python/py-value.c (value_object_getset): Likewise.
14623
14624 2017-04-05 Pedro Alves <palves@redhat.com>
14625
14626 * python/python-internal.h (gdb_PyObject_CallMethod)
14627 (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath):
14628 New functions.
14629 (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException)
14630 (PySys_GetObject, PySys_SetPath): New macros.
14631
14632 2017-04-05 Pedro Alves <palves@redhat.com>
14633
14634 * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of
14635 info_osdata_command.
14636 * osdata.c (info_osdata_command): Rename to ...
14637 (info_osdata): ... this. Constify 'type' parameter, and remove
14638 the 'from_tty' parameter. Accept NULL TYPE.
14639 (info_osdata_command): New function.
14640 * osdata.h (info_osdata_command): Remove declaration.
14641 (info_osdata): New declaration.
14642
14643 2017-04-05 Pedro Alves <palves@redhat.com>
14644
14645 * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert)
14646 (mi_cmd_dprintf_insert, mi_cmd_break_passcount)
14647 (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command'
14648 parameter.
14649 * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception)
14650 (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter.
14651 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command'
14652 parameter.
14653 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path)
14654 (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show)
14655 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
14656 (mi_cmd_file_list_exec_source_files)
14657 (mi_cmd_file_list_shared_libraries): Constify 'command' parameter.
14658 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
14659 (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command'
14660 parameter.
14661 * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters)
14662 (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth)
14663 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
14664 (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame)
14665 (mi_cmd_stack_info_frame): Constify 'command' parameter.
14666 * mi/mi-cmd-target.c (mi_cmd_target_file_get)
14667 (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify
14668 'command' parameter.
14669 * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete)
14670 (mi_cmd_var_set_format, mi_cmd_var_set_visualizer)
14671 (mi_cmd_var_set_frozen, mi_cmd_var_show_format)
14672 (mi_cmd_var_info_num_children, mi_cmd_var_list_children)
14673 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
14674 (mi_cmd_var_info_expression, mi_cmd_var_show_attributes)
14675 (mi_cmd_var_evaluate_expression, mi_cmd_var_assign)
14676 (mi_cmd_var_update, mi_cmd_enable_pretty_printing)
14677 (mi_cmd_var_set_update_range): Constify 'command' parameter.
14678 * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter.
14679 * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command'
14680 parameter.
14681 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next)
14682 (mi_cmd_exec_next_instruction, mi_cmd_exec_step)
14683 (mi_cmd_exec_step_instruction, mi_cmd_exec_finish)
14684 (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue)
14685 (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach)
14686 (mi_cmd_target_flash_erase, mi_cmd_thread_select)
14687 (mi_cmd_thread_list_ids, mi_cmd_thread_info)
14688 (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names)
14689 (mi_cmd_data_list_changed_registers)
14690 (mi_cmd_data_write_register_values)
14691 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
14692 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory)
14693 (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings)
14694 (mi_cmd_list_features, mi_cmd_list_target_features)
14695 (mi_cmd_add_inferior, mi_cmd_remove_inferior)
14696 (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables)
14697 (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start)
14698 (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info)
14699 (mi_cmd_trace_frame_collected): Constify 'command'
14700 parameter.
14701 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify
14702 'command' parameter.
14703
14704 2017-04-05 Pedro Alves <palves@redhat.com>
14705
14706 * ada-lang.c (ada_completer_word_break_characters): Now a const
14707 array.
14708 (ada_get_gdb_completer_word_break_characters): Constify.
14709 * completer.c (gdb_completer_command_word_break_characters)
14710 (gdb_completer_file_name_break_characters)
14711 (gdb_completer_quote_characters): Now const arrays.
14712 (get_gdb_completer_quote_characters): Constify.
14713 (set_rl_completer_word_break_characters): New function.
14714 (set_gdb_completion_word_break_characters)
14715 (complete_line_internal): Use it.
14716 * completer.h (get_gdb_completer_quote_characters): Constify.
14717 (set_rl_completer_word_break_characters): Declare.
14718 * f-lang.c (f_word_break_characters): Constify.
14719 * language.c (default_word_break_characters): Constify.
14720 * language.h (language_defn::la_word_break_characters): Constify.
14721 (default_word_break_characters): Constify.
14722 * top.c (init_main): Use set_rl_completer_word_break_characters.
14723
14724 2017-04-05 Pedro Alves <palves@redhat.com>
14725
14726 * aix-thread.c (aix_thread_pid_to_str)
14727 (aix_thread_extra_thread_info): Constify.
14728 * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
14729 * bsd-uthread.c (bsd_uthread_extra_thread_info)
14730 (bsd_uthread_pid_to_str): Constify.
14731 * corelow.c (core_pid_to_str): Constify.
14732 * darwin-nat.c (darwin_pid_to_str): Constify.
14733 * fbsd-nat.c (fbsd_pid_to_str): Constify.
14734 * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
14735 Constify.
14736 * gnu-nat.c (gnu_pid_to_str): Constify.
14737 * go32-nat.c (go32_pid_to_str): Constify.
14738 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
14739 * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
14740 * inferior.c (inferior_pid_to_str): Constify.
14741 * linux-nat.c (linux_nat_pid_to_str): Constify.
14742 * linux-tdep.c (linux_core_pid_to_str): Constify.
14743 * linux-thread-db.c (thread_db_pid_to_str)
14744 (thread_db_extra_thread_info): Constify.
14745 * nto-tdep.c (nto_extra_thread_info): Constify.
14746 * nto-tdep.h (nto_extra_thread_info): Constify.
14747 * obsd-nat.c (obsd_pid_to_str): Constify.
14748 * procfs.c (procfs_pid_to_str): Constify.
14749 * ravenscar-thread.c (ravenscar_extra_thread_info)
14750 (ravenscar_pid_to_str): Constify.
14751 * remote-sim.c (gdbsim_pid_to_str): Constify.
14752 * remote.c (remote_threads_extra_info, remote_pid_to_str):
14753 Constify.
14754 * sol-thread.c (solaris_pid_to_str): Constify.
14755 * sol2-tdep.c (sol2_core_pid_to_str): Constify.
14756 * sol2-tdep.h (sol2_core_pid_to_str): Constify.
14757 * target.c (default_pid_to_str, target_pid_to_str)
14758 (normal_pid_to_str, default_pid_to_str): Constify.
14759 * target.h (target_ops::to_pid_to_str)
14760 (target_ops::to_extra_thread_info): Constify.
14761 (target_pid_to_str, normal_pid_to_str): Constify.
14762 * windows-nat.c (windows_pid_to_str): Constify.
14763 * gdbarch.sh (core_pid_to_str): Constify.
14764 * target-delegates.c: Regenerate.
14765 * gdbarch.h, gdbarch.c: Regenerate.
14766
14767 2017-04-05 Pedro Alves <palves@redhat.com>
14768
14769 * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
14770 the memory of the temporary warning_pre_print override.
14771 * utils.c (warning_pre_print): Constify.
14772 * utils.h (warning_pre_print): Constify.
14773
14774 2017-04-05 Pedro Alves <palves@redhat.com>
14775
14776 * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
14777 (shell_command): New function.
14778 (make_command): Use std::string.
14779 (init_cli_cmds): Register shell_command instead of shell_escape.
14780
14781 2017-04-05 Pedro Alves <palves@redhat.com>
14782
14783 * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
14784 * tracepoint.c (default_collect): Don't initialize.
14785
14786 2017-04-05 Pedro Alves <palves@redhat.com>
14787
14788 * macroexp.c (macro_buffer::shared): Now a bool.
14789 (init_buffer): Update.
14790 (init_shared_buffer): Constify 'addr' parameter.
14791 (substitute_args, expand, macro_expand, macro_expand_next): Remove
14792 casts.
14793
14794 2017-04-05 Pedro Alves <palves@redhat.com>
14795
14796 * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
14797 * disasm.c (set_disassembler_options): Constify local.
14798 * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
14799
14800 2017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
14801
14802 PR gdb/21352
14803 * tracefile.c (tsave_command): Fix argument parsing for '-r'
14804 option.
14805
14806 2017-04-05 Yao Qi <yao.qi@linaro.org>
14807
14808 * frame.c (frame_unwind_register_unsigned): Call
14809 frame_unwind_register_value.
14810
14811 2017-04-05 Yao Qi <yao.qi@linaro.org>
14812
14813 * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
14814 Use gdb_test_multiple, and don't match anchor.
14815
14816 2017-04-05 Pedro Alves <palves@redhat.com>
14817
14818 * MAINTAINERS (Global Maintainers): Add Simon Marchi.
14819 (Write After Approval): Remove Simon Marchi.
14820
14821 2017-04-05 Pedro Alves <palves@redhat.com>
14822
14823 * common/gdb_optional.h (optional::optional): Make constexpr and
14824 initialize m_dummy.
14825
14826 2017-04-04 John Baldwin <jhb@FreeBSD.org>
14827
14828 * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
14829 (amd64fbsd_jmp_buf_reg_offset): Remove.
14830 (amd64fbsd_supply_uthread): Remove function.
14831 (amd64fbsd_collect_uthread): Remove function.
14832 (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
14833 * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
14834 (x86_64-*-freebsd*): Remove bsd-uthread.o.
14835 (fbsd-nat.c): Update comment.
14836 * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
14837 (i386fbsd_jmp_buf_reg_offset): Remove.
14838 (i386fbsd_supply_uthread): Remove function.
14839 (i386fbsd_collect_uthread): Remove function.
14840 (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
14841
14842 2017-04-04 John Baldwin <jhb@FreeBSD.org>
14843
14844 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
14845 (ALLDEPFILES): Remove alpha-fbsd-tdep.c
14846 * NEWS: Mention that support for FreeBSD/alpha was removed.
14847 * alpha-fbsd-tdep.c: Delete file.
14848 * config/alpha/fbsd.mh: Delete file.
14849 * configure.host: Delete alpha*-*-freebsd* and
14850 alpha*-*-kfreebsd*-gnu.
14851 * configure.tgt: Delete alpha*-*-freebsd* and
14852 alpha*-*-kfreebsd*-gnu.
14853
14854 2017-04-04 John Baldwin <jhb@FreeBSD.org>
14855
14856 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
14857 amd64bsd_store_inferior_registers): Use ptid from regcache.
14858
14859 2017-04-04 Pedro Alves <palves@redhat.com>
14860
14861 * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
14862 data fields, make them private and add "m_" prefixes.
14863 (lnp_state_machine::lnp_state_machine): New ctor.
14864 (record_line, check_line_address, handle_set_discriminator)
14865 (handle_set_address, handle_advance_pc, handle_special_opcode)
14866 (handle_advance_line, handle_set_file, handle_negate_stmt)
14867 (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
14868 (end_sequence, advance_line): New methods.
14869 (m_gdbarch, m_record_lines_p): New fields.
14870 (lnp_reader_state): Delete.
14871 (dwarf_record_line): Rename to ...
14872 (lnp_state_machine::record_line): ... adjust.
14873 (init_lnp_state_machine): Delete.
14874 (lnp_state_machine::lnp_state_machine): New.
14875 (check_line_address): Rename to ...
14876 (lnp_state_machine::check_line_address): This.
14877 (dwarf_decode_lines_1): Remove reference to "reader_state".
14878 Adjust lnp_state_machine having a non-default ctor. Use bool.
14879 State machine internal state manipulation moved to
14880 lnp_state_machine methods.
14881
14882 2017-04-04 Pedro Alves <palves@redhat.com>
14883
14884 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14885 unittests/offset-type-selftests.c.
14886 (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
14887 * common/offset-type.h: New file.
14888 * common/preprocessor.h: New file.
14889 * common/traits.h: New file.
14890 * common/valid-expr.h: New file.
14891 * dwarf2expr.c: Include "common/underlying.h". Adjust to use
14892 sect_offset and cu_offset strong typedefs throughout.
14893 * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
14894 typedefs throughout.
14895 * dwarf2loc.c: Include "common/underlying.h". Adjust to use
14896 sect_offset and cu_offset strong typedefs throughout.
14897 * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
14898 typedefs throughout.
14899 * gdbtypes.h: Include "common/offset-type.h".
14900 (cu_offset): Now an offset type (strong typedef) instead of a
14901 struct.
14902 (sect_offset): Likewise.
14903 (union call_site_parameter_u): Rename "param_offset" field to
14904 "param_cu_off".
14905 * unittests/offset-type-selftests.c: New file.
14906
14907 2017-04-04 Pedro Alves <palves@redhat.com>
14908
14909 * common/underlying.h: New file.
14910 * dwarf2read.c: Include "common/gdb_optional.h" and
14911 "common/underlying.h".
14912 (dir_index, file_name_index): New types.
14913 (file_entry): Use them.
14914 (file_entry::include): Use to_underlying.
14915 (line_header::add_file_name): Use dir_index.
14916 (read_formatted_entries): Use gdb::optional. Read form before
14917 writting to file_entry.
14918 (dwarf_decode_line_header): Use dir_index.
14919 (lnp_state_machine::current_file): Use to_underlying.
14920 (lnp_state_machine::file): Change type to file_name_index.
14921 (dwarf_record_line): Use to_underlying.
14922 (init_lnp_state_machine): Use file_name_index.
14923 (dwarf_decode_lines_1): Use dir_index and file_name_index.
14924
14925 2017-04-04 Pedro Alves <palves@redhat.com>
14926
14927 * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
14928 operator bool, has_value and get methods.
14929
14930 2017-04-04 Pedro Alves <palves@redhat.com>
14931
14932 * dwarf2read.c (struct file_entry): Add ctors, and initialize all
14933 fields.
14934 (line_header): Initialize all data fields. Change type of
14935 standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
14936 Change type of include_dirs to std::vector<const char *>. Remove
14937 num_include_dirs, include_dirs_size. Change type of file_names to
14938 std::vector<file_entry>. Remove num_file_names, file_names_size.
14939 (line_header::line_header): New.
14940 (line_header::add_include_dir, line_header::add_file_name): New
14941 methods.
14942 (line_header::include_dir_at): Remove NULL check.
14943 (line_header::file_name_at): Add const overload.
14944 (line_header_up): New unique_ptr typedef.
14945 (dw2_get_file_names_reader): Use line_header_up. Adjust to use
14946 std::vector. Remove free_line_header call.
14947 (dwarf2_build_include_psymtabs): Use line_header_up. Remove
14948 free_line_header call.
14949 (free_cu_line_header): Delete.
14950 (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
14951 (setup_type_unit_groups): Use line_header_up instead of cleanups.
14952 Adjust to use std::vector.
14953 (free_line_header): Delete.
14954 (free_line_header_voidp): Use delete.
14955 (add_include_dir): Replace with ...
14956 (line_header::add_include_dir): ... this method. Use std::vector.
14957 (add_file_name): Replace with ...
14958 (line_header::add_file_name): ... this method. Use std::vector.
14959 (add_include_dir_stub): Delete.
14960 (read_formatted_entries): Remove memset.
14961 (dwarf_decode_line_header): Return a line_header_up instead of a
14962 raw pointer. Remove cleanup handling. Pass lambdas to
14963 read_formatted_entries. Adjust to use line_header methods.
14964 (dwarf_decode_lines_1): Adjust to use line_header methods.
14965 (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
14966 use std::vector.
14967
14968 2017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
14969
14970 * remote.c (set_general_thread, set_continue_thread): Use ptid_t
14971 instead of struct ptid.
14972
14973 2017-05-04 Alan Hayward <alan.hayward@arm.com>
14974
14975 * frame.c (get_frame_register_bytes): Unwind using value.
14976 (put_frame_register_bytes): Likewise.
14977
14978 2017-03-30 Iain Buclaw <ibuclaw@gdcproject.org>
14979
14980 * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
14981 aggregate-like.
14982
14983 2017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
14984
14985 * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
14986
14987 2017-03-29 Yao Qi <yao.qi@linaro.org>
14988
14989 * gdbthread.h (struct thread_info): Declare constructor and
14990 destructor. Add some in-class member initializers.
14991 * thread.c (free_thread): Remove.
14992 (init_thread_list): Call delete instead of free_thread.
14993 (new_thread): Call thread_info constructor.
14994 (thread_info::thread_info): New function.
14995 (thread_info::~thread_info): New function.
14996 (delete_thread_1): Call delete instead of free_thread.
14997 (make_cleanup_restore_current_thread): Move tp and frame to
14998 inner block.
14999
15000 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
15001
15002 * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
15003 (arc_skip_prologue): Likewise.
15004 (arc_make_frame_cache): Likewise.
15005 (arc_pv_get_operand): New function.
15006 (arc_is_in_prologue): Likewise.
15007 (arc_analyze_prologue): Likewise.
15008 (arc_print_frame_cache): Likewise.
15009 (MAX_PROLOGUE_LENGTH): New constant.
15010
15011 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
15012
15013 * configure.tgt: Add arc-insn.o.
15014 * arc-tdep.c (arc_delayed_print_insn): Make non-static.
15015 (dump_arc_instruction_command): New function.
15016 (arc_fprintf_disasm): Likewise.
15017 (arc_disassemble_info): Likewise.
15018 (arc_insn_get_operand_value): Likewise.
15019 (arc_insn_get_operand_value_signed): Likewise.
15020 (arc_insn_get_memory_base_reg): Likewise.
15021 (arc_insn_get_memory_offset): Likewise.
15022 (arc_insn_get_branch_target): Likewise.
15023 (arc_insn_dump): Likewise.
15024 (arc_insn_get_linear_next_pc): Likewise.
15025 * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
15026 (arc_disassemble_info): Likewise.
15027 (arc_insn_get_branch_target): Likewise.
15028 (arc_insn_get_linear_next_pc): Likewise.
15029 * NEWS: Mention new "maint print arc arc-instruction".
15030
15031 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
15032
15033 * arc-tdep (maintenance_print_arc_list): New variable.
15034 (maintenance_print_arc_command): New function.
15035
15036 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
15037
15038 * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
15039 Add "limm" and "reserved".
15040 (arc_cannot_fetch_register, arc_cannot_store_register): Add
15041 ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
15042 * arc-tdep.h (arc_regnum): Likewise.
15043
15044 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
15045
15046 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
15047 for THREADPTR register.
15048 (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
15049 register.
15050 * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
15051 (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
15052 * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
15053
15054 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
15055
15056 * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
15057 registers above gdbarch_num_regs (gdbarch) as privileged in
15058 call0 ABI.
15059
15060 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
15061
15062 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
15063 for a single specified register or for all registers in
15064 a0_base..a0_base + C0_NREGS range.
15065 (supply_gregset_reg): Call regcache_raw_supply for a single
15066 specified register or for all registers in a0_base..a0_base +
15067 C0_NREGS range.
15068
15069 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
15070
15071 * arch/xtensa.h (C0_NREGS): Add definition.
15072 * xtensa-tdep.c (C0_NREGS): Remove definition.
15073
15074 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
15075
15076 * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
15077 Drop xtensa_default_isa initialization.
15078 (xtensa_gdbarch_init): Initialize xtensa_default_isa.
15079
15080 2017-03-27 Pedro Alves <palves@redhat.com>
15081
15082 * dwarf2read.c (file_entry) <dir_index>: Add comment.
15083 (file_entry::include_dir): New method.
15084 (line_header::include_dir_at, line_header::file_name_at): New
15085 methods.
15086 (setup_type_unit_groups, setup_type_unit_groups)
15087 (psymtab_include_file_name): Simplify using the new methods.
15088 (lnp_state_machine) <the_line_header>: New field.
15089 <file>: Add comment.
15090 (lnp_state_machine::current_file): New method.
15091 (dwarf_record_line): Simplify using the new methods.
15092 (init_lnp_state_machine): Initialize the "the_line_header" field.
15093 (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
15094 Simplify using the new methods.
15095
15096 2017-03-27 Pedro Alves <palves@redhat.com>
15097
15098 * cp-name-parser.y (make_empty): Delete.
15099 (demangler_special, nested_name, ptr_operator, array_indicator)
15100 (direct_declarator, declarator_1): Use fill_comp instead of
15101 make_empty.
15102
15103 2017-03-27 Pedro Alves <palves@redhat.com>
15104
15105 * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
15106 to ATTRIBUTE_PRINTF.
15107 * solib-target.c (library_list_start_list): Print "string" not
15108 "version".
15109 * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
15110 gdb_xml_error call.
15111
15112 2017-03-27 Pedro Alves <palves@redhat.com>
15113
15114 * dwarf2read.c (struct file_and_directory): New.
15115 (dwarf2_get_dwz_file): Adjust to use std::string.
15116 (dw2_get_file_names_reader): Adjust to use file_and_directory.
15117 (find_file_and_directory): Adjust to return a file_and_directory
15118 object.
15119 (read_file_scope): Adjust to use file_and_directory. Remove
15120 make_cleanup/do_cleanups calls.
15121 (open_and_init_dwp_file): Adjust to use std::string. Remove
15122 make_cleanup/do_cleanups calls.
15123 * python/python.c (do_start_initialization): Adjust to ldirname
15124 returning a std::string.
15125 * utils.c (ldirname): Now returns a std::string.
15126 * utils.h (ldirname): Change return type to std::string.
15127 * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
15128 returning a std::string.
15129 * xml-tdesc.c (file_read_description_xml): Likewise.
15130
15131 2017-03-24 Alan Hayward <alan.hayward@arm.com>
15132
15133 * regcache.c (regcache_debug_print_register): New function.
15134 * regcache.h (regcache_debug_print_register): New declaration.
15135 * target.c (debug_print_register): Remove.
15136 (target_fetch_registers): Call regcache_debug_print_register.
15137 (target_store_registers): Likewise.
15138
15139 2017-03-24 Pádraig Brady <pbrady@fb.com>
15140
15141 * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
15142 reference beyond the 'lh->include_dirs' array before accessing to
15143 it.
15144 (psymtab_include_file_name): Likewise.
15145 (dwarf_decode_lines_1): Likewise.
15146 (dwarf_decode_lines): Likewise.
15147 (file_file_name): Likewise.
15148
15149 2017-03-23 Simon Marchi <simon.marchi@ericsson.com>
15150
15151 * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
15152 inferior_ptid.
15153 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
15154 ps_lsetfpregs): Likewise.
15155 * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
15156 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
15157 ps_lsetfpregs): Likewise.
15158 * target.c (target_fetch_registers, target_store_registers):
15159 Remove asserts.
15160
15161 2017-03-23 Alan Hayward <alan.hayward@arm.com>
15162
15163 * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
15164
15165 2017-03-23 Yao Qi <yao.qi@linaro.org>
15166
15167 * aarch64-tdep.c (aarch64_process_record_test): Declare.
15168 (_initialize_aarch64_tdep): Register it.
15169 (aarch64_record_load_store): Handle PRFM instruction.
15170 (aarch64_process_record_test): New function.
15171
15172 2017-03-23 Yao Qi <yao.qi@linaro.org>
15173
15174 * aarch64-tdep.c (aarch64_record_load_store): Fix code
15175 indentation.
15176
15177 2017-03-23 Yao Qi <yao.qi@linaro.org>
15178
15179 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
15180
15181 2017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
15182
15183 python/python.c (do_start_initialization): Fix memory leak.
15184
15185 2017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
15186
15187 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
15188 using get_ptrace_pid.
15189 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
15190 inferior_ptid.
15191 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
15192 inferior_ptid instead of pid.
15193
15194 2017-03-22 Yao Qi <yao.qi@linaro.org>
15195
15196 * aarch64-tdep.c: Wrap locally used classes in anonymous
15197 namespace.
15198 * arm-tdep.c: Likewise.
15199 * linespec.c: Likewise.
15200 * ui-out.c: Likewise.
15201
15202 2017-03-22 Jonah Graham <jonah@kichwacoders.com>
15203
15204 PR gdb/19637
15205 * python/lib/gdb/printer/bound_registers.py: Import sys.
15206
15207 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
15208
15209 * windows-nat.c (do_windows_fetch_inferior_registers): Add
15210 windows_thread_info parameter and use it instead of
15211 current_thread.
15212 (windows_fetch_inferior_registers): Don't set current_thread,
15213 pass the thread to do_windows_fetch_inferior_registers. Use
15214 ptid from regcache instead of inferior_ptid.
15215 (do_windows_store_inferior_registers): Add windows_thread_info
15216 parameter and use it instead of current_thread.
15217 (windows_store_inferior_registers): Don't set current_thread,
15218 pass the thread to do_windows_store_inferior_registers. Use
15219 ptid from regcache instead of inferior_ptid.
15220
15221 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
15222
15223 * ser-mingw.c (ser_windows_raw): Remove reference to
15224 struct serial::current_timeout.
15225
15226 2017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
15227
15228 PR tdep/20928
15229 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
15230 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
15231 (sparc64_fsr_type): Fix %fsr decoding.
15232
15233 2017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
15234
15235 * python/py-record-btrace.c (btpy_insn_data): Change return type
15236 for Python 2.
15237
15238 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
15239
15240 * spu-linux-nat.c (spu_fetch_inferior_registers,
15241 spu_store_inferior_registers): Use ptid from regcache, set and
15242 restore inferior_ptid.
15243 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
15244 Likewise.
15245
15246 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
15247
15248 * i386-linux-nat.c (fetch_register, store_register,
15249 i386_linux_fetch_inferior_registers,
15250 i386_linux_store_inferior_registers): Use ptid from regcache.
15251 * ia64-linux-nat.c (ia64_linux_fetch_register,
15252 ia64_linux_store_register): Likewise.
15253 * inf-ptrace.c (inf_ptrace_fetch_register,
15254 inf_ptrace_store_register): Likewise.
15255 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
15256 m32r_linux_store_inferior_registers): Likewise.
15257 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
15258 m68kbsd_store_inferior_registers): Likewise.
15259 * m68k-linux-nat.c (fetch_register, store_register,
15260 m68k_linux_fetch_inferior_registers,
15261 m68k_linux_store_inferior_registers): Likewise.
15262 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
15263 m88kbsd_store_inferior_registers): Likewise.
15264 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
15265 mips_fbsd_store_inferior_registers): Likewise.
15266 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
15267 mips64_linux_regsets_store_registers): Likewise.
15268 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
15269 mipsnbsd_store_inferior_registers): Likewise.
15270 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
15271 mips64obsd_store_inferior_registers): Likewise.
15272 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
15273 Likewise.
15274 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
15275 ppcfbsd_store_inferior_registers): Likewise.
15276 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
15277 ppc_linux_store_inferior_registers): Likewise.
15278 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
15279 ppcnbsd_store_inferior_registers): Likewise.
15280 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
15281 ppcobsd_store_registers): Likewise.
15282 * procfs.c (procfs_fetch_registers, procfs_store_registers):
15283 Likewise.
15284 * ravenscar-thread.c (ravenscar_fetch_registers,
15285 ravenscar_store_registers, ravenscar_prepare_to_store):
15286 Likewise.
15287 * record-btrace.c (record_btrace_fetch_registers,
15288 record_btrace_store_registers, record_btrace_prepare_to_store):
15289 Likewise.
15290 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
15291 Lookup inferior using ptid from regcache, instead of
15292 current_inferior.
15293 * remote.c (remote_fetch_registers, remote_store_registers): Use
15294 ptid from regcache.
15295 * rs6000-nat.c (fetch_register, store_register): Likewise.
15296 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
15297 s390_linux_store_inferior_registers): Likewise.
15298 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
15299 shnbsd_store_inferior_registers): Likewise.
15300 * sol-thread.c (sol_thread_fetch_registers,
15301 sol_thread_store_registers): Likewise.
15302 * sparc-nat.c (sparc_fetch_inferior_registers,
15303 sparc_store_inferior_registers): Likewise.
15304 * tilegx-linux-nat.c (fetch_inferior_registers,
15305 store_inferior_registers): Likewise.
15306 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
15307 vaxbsd_store_inferior_registers): Likewise.
15308 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
15309 store_xtregs): Likewise.
15310
15311 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15312
15313 PR gdb/14441
15314 * NEWS: Mention support for rvalue references in GDB and python.
15315 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
15316 supports both lvalue and rvalue references.
15317
15318 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15319
15320 PR gdb/14441
15321 * gdbtypes.c (rank_one_type): Implement overloading
15322 resolution rules regarding rvalue references.
15323
15324 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15325
15326 PR gdb/14441
15327 * aarch64-tdep.c (aarch64_type_align)
15328 (aarch64_extract_return_value, aarch64_store_return_value): Change
15329 lvalue reference type checks to general reference type checks.
15330 * amd64-tdep.c (amd64_classify): Likewise.
15331 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
15332 Likewise.
15333 * arm-tdep.c (arm_type_align, arm_extract_return_value)
15334 (arm_store_return_value): Likewise.
15335 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
15336 * c-typeprint.c (c_print_type): Likewise.
15337 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
15338 (cplus_number_of_children, cplus_describe_child): Likewise.
15339 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
15340 * completer.c (expression_completer): Likewise.
15341 * cp-support.c (make_symbol_overload_list_adl_namespace):
15342 Likewise.
15343 * darwin-nat-info.c (info_mach_region_command): Likewise.
15344 * dwarf2loc.c (entry_data_value_coerce_ref)
15345 (value_of_dwarf_reg_entry): Likewise.
15346 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
15347 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
15348 Likewise.
15349 * findvar.c (extract_typed_address, store_typed_address):
15350 Likewise.
15351 * gdbtypes.c (rank_one_type): Likewise.
15352 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
15353 * infcall.c (value_arg_coerce): Likewise.
15354 * language.c (pointer_type): Likewise.
15355 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
15356 Likewise.
15357 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
15358 * mn10300-tdep.c (mn10300_type_align): Likewise.
15359 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
15360 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
15361 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
15362 Likewise.
15363 * printcmd.c (print_formatted, x_command): Likewise.
15364 * python/py-type.c (typy_get_composite, typy_template_argument):
15365 Likewise.
15366 * python/py-value.c (valpy_referenced_value)
15367 (valpy_get_dynamic_type, value_has_field): Likewise.
15368 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
15369 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
15370 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
15371 * spu-tdep.c (spu_scalar_value_p): Likewise.
15372 * symtab.c (lookup_symbol_aux): Likewise.
15373 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
15374 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
15375 Likewise.
15376 * valops.c (value_cast_pointers, value_cast)
15377 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
15378 (value_struct_elt, value_struct_elt_bitpos)
15379 (value_find_oload_method_list, find_overload_match)
15380 (value_rtti_indirect_type): Likewise.
15381 * valprint.c (val_print_scalar_type_p, generic_val_print):
15382 Likewise.
15383 * value.c (value_actual_type, value_as_address, unpack_long)
15384 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
15385 (coerce_ref): Likewise.
15386 * varobj.c (varobj_get_value_type): Likewise.
15387
15388 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15389
15390 PR gdb/14441
15391 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
15392 table of constants.
15393 * python/lib/gdb/command/explore.py: Support exploring values
15394 of rvalue reference types.
15395 * python/lib/gdb/types.py: Implement get_basic_type() for
15396 rvalue reference types.
15397 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
15398 constant.
15399 * python/py-value.c (valpy_getitem): Add an rvalue reference
15400 check.
15401 (valpy_reference_value): Add new parameter "refcode".
15402 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
15403 New wrappers for valpy_reference_value().
15404 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
15405 (gdbpy_invoke_xmethod): Likewise.
15406
15407 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15408
15409 PR gdb/14441
15410 * dwarf2read.c (process_die, read_type_die_1): Handle the
15411 DW_TAG_rvalue_reference_type DIE.
15412 (read_tag_reference_type): Add new parameter "refcode".
15413
15414 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15415
15416 PR gdb/14441
15417 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
15418 (c_type_print_modifier, c_type_print_varspec_suffix)
15419 (c_type_print_base): Support printing rvalue reference types.
15420 * c-valprint.c (c_val_print, c_value_print): Support printing
15421 rvalue reference values.
15422
15423 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15424
15425 PR gdb/14441
15426 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
15427 typename.
15428 * cp-support.c (replace_typedefs): Handle
15429 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
15430 * python/py-type.c (typy_lookup_type): Likewise.
15431
15432 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15433
15434 PR gdb/14441
15435 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
15436 * parse.c (insert_type): Change assert statement.
15437 (follow_types): Handle rvalue reference types.
15438 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
15439 constant.
15440
15441 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15442
15443 PR gdb/14441
15444 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
15445 value_ref() interface.
15446 * c-valprint.c (c_value_print): Likewise.
15447 * infcall.c (value_arg_coerce): Likewise.
15448 * python/py-value.c (valpy_reference_value): Likewise.
15449 * valops.c (value_cast, value_reinterpret_cast)
15450 (value_dynamic_cast, typecmp): Likewise.
15451 (value_ref): Parameterize by kind of return value reference type.
15452 * value.h (value_ref): Add new parameter "refcode".
15453
15454 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15455
15456 PR gdb/14441
15457 * dwarf2read.c (read_tag_reference_type): Use
15458 lookup_lvalue_reference_type() instead of lookup_reference_type().
15459 * eval.c (evaluate_subexp_standard): Likewise.
15460 * f-exp.y: Likewise.
15461 * gdbtypes.c (make_reference_type, lookup_reference_type):
15462 Generalize with rvalue reference types.
15463 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
15464 convenience wrappers for lookup_reference_type().
15465 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
15466 reference kind parameter.
15467 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
15468 wrappers for lookup_reference_type().
15469 * guile/scm-type.c (gdbscm_type_reference): Use
15470 lookup_lvalue_reference_type() instead of lookup_reference_type().
15471 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
15472 * parse.c (follow_types): Likewise.
15473 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
15474 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
15475 Likewise.
15476 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
15477 (gdbpy_invoke_xmethod): Likewise.
15478 * stabsread.c: Provide extra argument to make_reference_type()
15479 call.
15480 * valops.c (value_ref, value_rtti_indirect_type): Use
15481 lookup_lvalue_reference_type() instead of lookup_reference_type().
15482
15483 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15484
15485 PR gdb/14441
15486 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
15487 (TYPE_IS_REFERENCE): New macro.
15488 (struct type): Add rvalue_reference_type field.
15489 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
15490
15491 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
15492
15493 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
15494 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
15495 New function definition.
15496 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
15497 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
15498 New function declaration.
15499 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
15500 * mi/mi-interp.h: New file.
15501 * solib.c (info_sharedlibrary_command): Replace for loop with
15502 ALL_SO_LIBS macro
15503 * solib.h (update_solib_list): New function declaration.
15504 (so_list_head): Move macro.
15505 * solist.h (ALL_SO_LIBS): New macro.
15506
15507 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
15508
15509 * infcmd.c (post_create_inferior): Remove unused argument in
15510 call to solib_add.
15511 * remote.c (remote_start_remote): Likewise.
15512 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
15513 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
15514 (enable_break): Likewise.
15515 * solib.c (update_solib_list): Remove unused target argument
15516 and its documentation.
15517 (solib_add): Remove unused target argument. Remove unused
15518 argument in call to update_solib_list.
15519 (info_sharedlibrary_command): Remove unused argument in call
15520 to update_solib_list.
15521 (sharedlibrary_command): Remove unused argument in call to
15522 solib_add.
15523 (handle_solib_event): Likewise.
15524 (reload_shared_libraries): Likewise.
15525 * solib.h (solib_add): Remove unused target argument.
15526
15527 2017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
15528
15529 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
15530 (s390_displaced_step_fixup): Cover relative branches with the
15531 default fixup handling. This fixes lack of support for some
15532 relative branch instructions.
15533
15534 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15535
15536 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
15537 ptid from regcache.
15538
15539 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15540
15541 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
15542 i386_darwin_store_inferior_registers): Use ptid from regcache.
15543
15544 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15545
15546 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
15547 i386bsd_store_inferior_registers): Use ptid from regcache.
15548
15549 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15550
15551 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
15552 hppaobsd_store_registers): Use ptid from regcache.
15553
15554 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15555
15556 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
15557 hppanbsd_store_registers): Use ptid from regcache.
15558
15559 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15560
15561 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
15562 from regcache. Use get_ptrace_pid.
15563
15564 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15565
15566 * corelow.c (get_core_register_section): Use ptid from regcache,
15567 update doc.
15568
15569 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15570
15571 * bsd-uthread.c (bsd_uthread_fetch_registers,
15572 bsd_uthread_store_registers): Use ptid from regcache, set and
15573 restore inferior_ptid.
15574
15575 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15576
15577 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
15578 fetch_fp_regs, store_register, store_regs, store_fp_register,
15579 store_fp_regs): Use ptid from regcache.
15580
15581 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15582
15583 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
15584 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
15585 store_vfp_regs): Use ptid from regcache.
15586
15587 2017-03-17 Pedro Alves <palves@redhat.com>
15588
15589 PR remote/21188
15590 * ser-base.c (ser_base_wait_for): Add comment.
15591 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
15592 version.
15593 * ser-unix.c (hardwire_raw): Remove reference to
15594 scb->current_timeout.
15595 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
15596 (hardwire_ops): Install ser_base_readchar instead of
15597 hardwire_readchar.
15598 * serial.h (struct serial) <current_timeout, timeout_remaining>:
15599 Remove fields.
15600
15601 2017-03-17 Jonah Graham <jonah@kichwacoders.com>
15602
15603 PR gdb/19637
15604 * python/lib/gdb/printer/bound_registers.py: Add support for
15605 Python 3.
15606
15607 2017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
15608
15609 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
15610 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
15611 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
15612 byte_offset to subobj_byte_offset. Fix the handling of
15613 DWARF_VALUE_STACK on big-endian targets when coming via an
15614 implicit pointer.
15615 (dwarf2_evaluate_loc_desc): Adjust call to
15616 dwarf2_evaluate_loc_desc_full.
15617 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
15618 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
15619
15620 2017-03-16 Yao Qi <yao.qi@linaro.org>
15621
15622 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
15623 and REVSH instructions.
15624
15625 2017-03-16 Yao Qi <yao.qi@linaro.org>
15626
15627 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
15628 (arm_record_test): Declare.
15629 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
15630 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
15631 align with the manual.
15632 (thumb_record_misc): Adjust the code order to align with the
15633 manual.
15634 (thumb2_record_decode_insn_handler): Fix instruction matching.
15635 (instruction_reader_thumb): New class.
15636 (arm_record_test): New function.
15637
15638 2017-03-16 Yao Qi <yao.qi@linaro.org>
15639
15640 * arm-tdep.c (abstract_memory_reader): New class.
15641 (instruction_reader): New class.
15642 (extract_arm_insn): Add argument 'reader'. Callers updated.
15643 (decode_insn): Likewise.
15644
15645 2017-03-16 Doug Evans <dje@google.com>
15646
15647 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
15648 member. Change type of TYPE member to SCM. All uses updated.
15649 (lsscm_make_lazy_string_smob): Add assert.
15650 (lsscm_make_lazy_string): Flag bad length values.
15651 (lsscm_elt_type): New function.
15652 (gdbscm_lazy_string_to_value): Rewrite to use
15653 lsscm_safe_lazy_string_to_value.
15654 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
15655 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
15656 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
15657 in incoming type.
15658 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
15659 * guile/scm-type.c (tyscm_scm_to_type): New function.
15660
15661 2017-03-15 Doug Evans <dje@google.com>
15662
15663 PR python/17728, python/18439, python/18779
15664 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
15665 member. Change type of TYPE member to PyObject *. All uses updated.
15666 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
15667 (gdbpy_create_lazy_string_object): Flag bad length values.
15668 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
15669 Handle typedefs in incoming type.
15670 (stpy_lazy_string_elt_type): New function.
15671 (gdbpy_extract_lazy_string): Call it.
15672 * python/py-value.c (valpy_lazy_string): Flag bad length values.
15673 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
15674 typedefs in incoming type.
15675
15676 2017-03-16 Doug Evans <dje@google.com>
15677
15678 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
15679 * guile/scm-type.c (tyscm_scm_to_type): New function.
15680
15681 2017-03-16 Jiong Wang <jiong.wang@arm.com>
15682
15683 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
15684 "ULONGEST" for "skip".
15685
15686 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
15687
15688 PR gdb/21220
15689 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
15690 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
15691 (inf_ptrace_peek_poke): ...here. New function. Now also loop
15692 over ptrace peek/poke until end of buffer or error.
15693
15694 2017-03-14 Simon Marchi <simon.marchi@ericsson.com>
15695
15696 * parse.c (length_of_subexp): Make static.
15697 * parser-defs.h (length_of_subexp): Remove.
15698
15699 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
15700
15701 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
15702 as well.
15703
15704 2017-03-14 Pedro Alves <palves@redhat.com>
15705
15706 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
15707 (main): Use std::unique_ptr. Remove calls to
15708 cp_demangled_name_parse_free.
15709
15710 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15711
15712 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
15713 alphabsd_store_inferior_registers): Use regcache->ptid instead
15714 of inferior_ptid.
15715
15716 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15717
15718 * aix-thread.c (aix_thread_fetch_registers,
15719 aix_thread_store_registers): Use regcache->ptid instead of
15720 inferior_ptid.
15721
15722 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15723
15724 * aarch64-linux-nat.c (fetch_gregs_from_thread,
15725 store_gregs_to_thread, fetch_fpregs_from_thread,
15726 store_fpregs_to_thread): Use regcache->ptid instead of
15727 inferior_ptid.
15728
15729 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15730
15731 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
15732 amd64_linux_fetch_inferior_registers): Use regcache->ptid
15733 instead of inferior_ptid.
15734
15735 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15736
15737 * target.c (target_fetch_registers, target_store_registers): Add
15738 assert.
15739
15740 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15741
15742 * regcache.h (regcache_get_ptid): New function.
15743 * regcache.c (regcache_get_ptid): New function.
15744
15745 2017-03-13 Mark Wielaard <mark@klomp.org>
15746
15747 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
15748
15749 2017-03-10 Keith Seitz <keiths@redhat.com>
15750
15751 PR c++/8218
15752 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
15753
15754 2017-03-08 Pedro Alves <palves@redhat.com>
15755
15756 PR gdb/18360
15757 * infrun.c (start_step_over, do_target_resume, resume)
15758 (restart_threads): Assert we're not resuming a thread that is
15759 meant to be stopped.
15760 (infrun_thread_stop_requested_callback): Delete.
15761 (infrun_thread_stop_requested): If the thread is internally
15762 stopped, queue a pending stop event and clear the thread's
15763 inline-frame state.
15764 (handle_stop_requested): New function.
15765 (handle_syscall_event, handle_inferior_event_1): Use
15766 handle_stop_requested.
15767 (handle_stop_requested): New function.
15768 (handle_signal_stop): Set the thread's stop_signal here instead of
15769 at caller.
15770 (finish_step_over): Clear step over info unconditionally.
15771 (handle_signal_stop): If the user had interrupted the event
15772 thread, consider the stop a random signal.
15773 (handle_signal_stop) <signal arrived while stepping over
15774 breakpoint>: Don't restart threads here.
15775 (stop_waiting): Don't clear step-over info here.
15776
15777 2017-03-08 Pedro Alves <palves@redhat.com>
15778
15779 PR 21206
15780 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
15781 goes to argument 2, not 1.
15782
15783 2017-03-08 Pedro Alves <palves@redhat.com>
15784
15785 PR cli/21218
15786 * top.c (gdb_readline_wrapper): Avoid passing NULL to
15787 display_gdb_prompt.
15788 (command_line_input): Add comment.
15789
15790 2017-03-08 Pedro Alves <palves@redhat.com>
15791
15792 PR tui/21216
15793 * tui/tui-file.c (tui_file::write): New.
15794 * tui/tui-file.h (tui_file): Override "write".
15795 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
15796 factored out from ...
15797 (tui_puts): ... here.
15798 (tui_putc): Use them.
15799 (tui_write): New function.
15800 * tui/tui-io.h (tui_write): Declare.
15801
15802 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
15803
15804 * Makefile.in (SFILES): Replace "environ.c" with
15805 "common/environ.c".
15806 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
15807 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
15808 to...
15809 * common/environ.c: ... here.
15810 * environ.h: Moved to...
15811 * common/environ.h: ... here.
15812
15813 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
15814
15815 * gdbarch.sh (pstring_ptr): New static function.
15816 (gdbarch_disassembler_options): Use it.
15817 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
15818 not valid_disassembler_option->name.
15819 * gdbarch.c: Regenerate.
15820
15821 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
15822
15823 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
15824
15825 2017-03-07 Pedro Alves <palves@redhat.com>
15826
15827 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
15828
15829 2017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
15830
15831 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
15832 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
15833 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
15834 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
15835
15836 2017-03-06 Simon Marchi <simon.marchi@ericsson.com>
15837
15838 * xtensa-linux-nat.c (fetch_gregs): Remove const.
15839
15840 2017-03-03 Simon Marchi <simon.marchi@ericsson.com>
15841
15842 * remote.c (remote_add_target_side_commands): Use range-based
15843 for loop.
15844
15845 2017-03-03 Yao Qi <yao.qi@linaro.org>
15846
15847 PR gdb/21165
15848 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
15849 value is lazy.
15850 * valprint.c (common_val_print): Likewise.
15851
15852 2017-02-28 Peter Bergner <bergner@vnet.ibm.com>
15853
15854 * NEWS: Mention new set/show disassembler-options commands.
15855 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
15856 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
15857 (prospective_options): New static variable.
15858 (gdb_disassembler::gdb_disassembler): Initialize
15859 m_di.disassembler_options.
15860 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
15861 (get_disassembler_options): New function.
15862 (set_disassembler_options): Likewise.
15863 (set_disassembler_options_sfunc): Likewise.
15864 (show_disassembler_options_sfunc): Likewise.
15865 (disassembler_options_completer): Likewise.
15866 (_initialize_disasm): Likewise.
15867 * disasm.h (get_disassembler_options): New prototype.
15868 (set_disassembler_options): Likewise.
15869 * gdbarch.sh (gdbarch_disassembler_options): New variable.
15870 (gdbarch_verify_disassembler_options): Likewise.
15871 * gdbarch.c: Regenerate.
15872 * gdbarch.h: Likewise.
15873 * arm-tdep.c (num_disassembly_options): Delete.
15874 (set_disassembly_style): Likewise.
15875 (arm_disassembler_options): New static variable.
15876 (set_disassembly_style_sfunc): Convert short style name into long
15877 option name. Call set_disassembler_options.
15878 (show_disassembly_style_sfunc): New function.
15879 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
15880 set_gdbarch_verify_disassembler_options.
15881 (_initialize_arm_tdep): Delete regnames variable and update callers.
15882 (arm_disassembler_options): Initialize.
15883 (disasm_options): New variable.
15884 (num_disassembly_options): Rename from this...
15885 (num_disassembly_styles): ...to this. Compute by scanning through
15886 disasm_options.
15887 (valid_disassembly_styles): Initialize using disasm_options.
15888 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
15889 set_arm_regname_option.
15890 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
15891 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
15892 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
15893 set_gdbarch_verify_disassembler_options.
15894 * s390-tdep.c (s390_disassembler_options): New static variable.
15895 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
15896 set_gdbarch_verify_disassembler_options.
15897
15898 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
15899
15900 * remote.c (remote_add_target_side_condition): Remove "struct"
15901 keyword from range-based for loop.
15902
15903 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
15904
15905 * remote.c (remote_add_target_side_condition): Use range-based
15906 for loop. Update comment.
15907
15908 2017-02-27 Yao Qi <yao.qi@linaro.org>
15909
15910 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
15911
15912 2017-02-26 Alan Hayward <alan.hayward@arm.com>
15913
15914 * regcache.c (regcache_raw_update): New function.
15915 (regcache_raw_read): Move code to regcache_raw_update.
15916 * regcache.h (regcache_raw_update): New declaration.
15917 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
15918
15919 2017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
15920
15921 * dwarf2read.c (create_debug_type_hash_table): Initialize
15922 header.signature and header.type_offset_in_tu.
15923
15924 2017-02-24 Pedro Alves <palves@redhat.com>
15925
15926 * symtab.c (make_file_symbol_completion_list_1): Use
15927 add_symtab_completions.
15928
15929 2017-02-24 Alan Hayward <alan.hayward@arm.com>
15930
15931 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
15932
15933 2017-02-24 Alan Hayward <alan.hayward@arm.com>
15934
15935 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
15936 I386_MAX_REGISTER_SIZE.
15937 (i386_pseudo_register_write): Likewise.
15938 (i386_process_record): Likewise.
15939 * i387-tdep.c (i387_supply_xsave): Likewise.
15940 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
15941 (store_register): Likewise.
15942
15943 2017-02-23 Pedro Alves <palves@redhat.com>
15944
15945 * ada-lang.c: Include "common/function-view.h".
15946 (ada_iterate_over_symbols): Adjust to use function_view as
15947 callback type.
15948 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
15949 (ada_make_symbol_completion_list): Use a lambda.
15950 (ada_exc_search_name_matches): Delete.
15951 (name_matches_regex): New.
15952 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
15953 * compile/compile-c-support.c: Include "common/function-view.h".
15954 (print_one_macro): Change prototype to accept a ui_file pointer.
15955 (write_macro_definitions): Use a lambda.
15956 * dwarf2read.c: Include "common/function-view.h".
15957 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
15958 (dw2_expand_symtabs_matching): Adjust to use function_view as
15959 callback type.
15960 * language.h: Include "common/function-view.h".
15961 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
15962 function_view as callback type.
15963 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
15964 * linespec.c: Include "common/function-view.h".
15965 (collect_info::add_symbol): New method.
15966 (struct symbol_and_data_callback, iterate_inline_only, struct
15967 symbol_matcher_data, iterate_name_matcher): Delete.
15968 (iterate_over_all_matching_symtabs): Adjust to use function_view
15969 as callback type and lambdas.
15970 (iterate_over_file_blocks): Adjust to use function_view as
15971 callback type.
15972 (decode_compound_collector): Now a class with private fields.
15973 (decode_compound_collector::release_symbols): New method.
15974 (collect_one_symbol): Rename to...
15975 (decode_compound_collector::operator()): ... this and adjust.
15976 (lookup_prefix_sym): decode_compound_collector construction bits
15977 move to decode_compound_collector ctor. Pass the
15978 decode_compound_collector object directly as callback. Remove
15979 cleanups and use decode_compound_collector::release_symbols
15980 instead.
15981 (symtab_collector): Now a class with private fields.
15982 (symtab_collector::release_symtabs): New method.
15983 (add_symtabs_to_list): Rename to...
15984 (symtab_collector::operator()): ... this and adjust.
15985 (collect_symtabs_from_filename): symtab_collector construction
15986 bits move to symtab_collector ctor. Pass the symtab_collector
15987 object directly as callback. Remove cleanups and use
15988 symtab_collector::release_symtabs instead.
15989 (collect_symbols): Delete.
15990 (add_matching_symbols_to_info): Use lambdas.
15991 * macrocmd.c (print_macro_callback): Delete.
15992 (info_macro_command): Use a lambda.
15993 (info_macros_command): Pass print_macro_definition as callable
15994 directly.
15995 (print_one_macro): Remove 'ignore' parameter.
15996 (macro_list_command): Adjust.
15997 * macrotab.c (macro_for_each_data::fn): Now a function_view.
15998 (macro_for_each_data::user_data): Delete field.
15999 (foreach_macro): Adjust to call the function_view.
16000 (macro_for_each): Adjust to use function_view as callback type.
16001 (foreach_macro_in_scope): Adjust to call the function_view.
16002 (macro_for_each_in_scope): Adjust to use function_view as callback
16003 type.
16004 * macrotab.h: Include "common/function-view.h".
16005 (macro_callback_fn): Declare a prototype instead of a pointer.
16006 Remove "user_data" parameter.
16007 (macro_for_each, macro_for_each_in_scope): Adjust to use
16008 function_view as callback type.
16009 * psymtab.c (partial_map_expand_apply)
16010 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
16011 Adjust to use function_view as callback type and to return bool.
16012 (psym_expand_symtabs_matching): Adjust to use function_view as
16013 callback types.
16014 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
16015 to use function_view as callback type and to return bool.
16016 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
16017 callback types.
16018 * symfile.c (expand_symtabs_matching): Adjust to use function_view
16019 as callback types.
16020 * symfile.h: Include "common/function-view.h".
16021 (expand_symtabs_file_matcher_ftype)
16022 (expand_symtabs_symbol_matcher_ftype)
16023 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
16024 return bool.
16025 (quick_symbol_functions::map_symtabs_matching_filename)
16026 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
16027 function_view as callback type and return bool.
16028 (expand_symtabs_matching): Adjust to use function_view as callback
16029 type.
16030 (maintenance_expand_name_matcher)
16031 (maintenance_expand_file_matcher): Delete.
16032 (maintenance_expand_symtabs): Use lambdas.
16033 * symtab.c (iterate_over_some_symtabs): Adjust to use
16034 function_view as callback types and return bool.
16035 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
16036 of a cleanup.
16037 (lookup_symtab_callback): Delete.
16038 (lookup_symtab): Use a lambda.
16039 (iterate_over_symbols): Adjust to use function_view as callback
16040 type.
16041 (struct search_symbols_data, search_symbols_file_matches)
16042 (search_symbols_name_matches): Delete.
16043 (search_symbols): Use a pair of lambdas.
16044 (struct add_name_data, add_macro_name, symbol_completion_matcher)
16045 (symtab_expansion_callback): Delete.
16046 (default_make_symbol_completion_list_break_on_1): Use lambdas.
16047 * symtab.h: Include "common/function-view.h".
16048 (iterate_over_some_symtabs): Adjust to use function_view as
16049 callback type and return bool.
16050 (iterate_over_symtabs): Adjust to use function_view as callback
16051 type.
16052 (symbol_found_callback_ftype): Remove 'data' parameter and return
16053 bool.
16054 (iterate_over_symbols): Adjust to use function_view as callback
16055 type.
16056
16057 2017-02-23 Pedro Alves <palves@redhat.com>
16058
16059 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
16060 (%.o) <unittests/%.c>: New pattern.
16061 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
16062 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
16063 * common/function-view.h: New file.
16064 * unittests/function-view-selftests.c: New file.
16065 * configure: Regenerate.
16066
16067 2017-02-23 Simon Marchi <simon.marchi@ericsson.com>
16068
16069 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
16070 inferior_ptid.
16071 * go32-nat.c (go32_thread_alive): Likewise.
16072
16073 2017-02-23 Yao Qi <yao.qi@linaro.org>
16074
16075 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
16076 delete.
16077
16078 2017-02-23 Yao Qi <yao.qi@linaro.org>
16079
16080 * varobj.c (varobj_clear_saved_item): Use delete instead of
16081 xfree.
16082 (update_dynamic_varobj_children): Likewise.
16083
16084 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
16085
16086 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
16087
16088 2017-02-21 Simon Marchi <simon.marchi@ericsson.com>
16089
16090 * common/enum-flags.h (enum_flags::enum_flags): Initialize
16091 m_enum_value to 0 in default constructor.
16092
16093 2017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
16094
16095 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
16096 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
16097 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
16098 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
16099 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
16100 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
16101 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
16102 IS_STORE_CONDITIONAL_INSN.
16103
16104 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
16105
16106 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
16107
16108 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16109
16110 * NEWS (Changes since GDB 7.12): Add DWARF-5.
16111
16112 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16113
16114 * dwarf2read.c (skip_one_die, read_attribute_value)
16115 (dwarf2_const_value_attr, dump_die_shallow)
16116 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
16117 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
16118
16119 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16120
16121 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
16122 (dwarf_parse_macro_header): Accept DWARF version 5.
16123 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
16124
16125 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16126
16127 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
16128 DW_AT_GNU_*.
16129 * common/common-exceptions.h (enum errors): Likewise.
16130 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
16131 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
16132 (dwarf_expr_context::execute_stack_op): Likewise.
16133 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
16134 Likewise.
16135 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
16136 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
16137 (show_entry_values_debug, call_site_to_target_addr)
16138 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
16139 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
16140 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
16141 (value_of_dwarf_block_entry, indirect_pieced_value)
16142 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
16143 (disassemble_dwarf_expression): Likewise.
16144 * dwarf2read.c (process_die, inherit_abstract_dies)
16145 (read_call_site_scope): Likewise.
16146 * gdbtypes.h (struct func_type, struct call_site_parameter)
16147 (struct call_site): Likewise.
16148 * stack.c (read_frame_arg): Likewise.
16149 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
16150
16151 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16152
16153 * defs.h (read_unsigned_leb128): New declaration.
16154 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
16155 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
16156 (dwarf2_find_location_expression): Call also
16157 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
16158 * dwarf2loc.h (dwarf2_version): New declaration.
16159 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
16160 rnglists.
16161 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
16162 .debug_rnglists.
16163 (struct dwop_section_names): Add loclists_dwo.
16164 (dwop_section_names): Add .debug_loclists.dwo.
16165 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
16166 (struct dwarf2_per_cu_data): Add dwarf_version.
16167 (struct dwo_sections): Add loclists.
16168 (struct attr_abbrev): Add implicit_const.
16169 (read_indirect_line_string): New declaration.
16170 (read_unsigned_leb128): Delete declaration.
16171 (rcuh_kind): New definition.
16172 (read_and_check_comp_unit_head): Change parameter
16173 is_debug_types_section to section_kind.
16174 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
16175 (read_comp_unit_head): Change parameter abfd to section, add parameter
16176 section_kind. Handle DWARF-5.
16177 (error_check_comp_unit_head): Accept also DWARF version 5.
16178 (read_and_check_comp_unit_head): Change parameter
16179 is_debug_types_section to section_kind.
16180 (read_and_check_type_unit_head): Delete function.
16181 (read_abbrev_offset): Handle DWARF-5.
16182 (create_debug_type_hash_table): Add parameter section_kind. Process
16183 only DW_UT_type. Use signature and type_offset_in_tu from struct
16184 comp_unit_head.
16185 (create_debug_types_hash_table): Update create_debug_type_hash_table
16186 caller.
16187 (create_all_type_units): Call create_debug_type_hash_table.
16188 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
16189 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
16190 caller.
16191 (skip_one_die): Handle DW_FORM_implicit_const.
16192 (dwarf2_rnglists_process): New function.
16193 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
16194 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
16195 (read_attribute_value): Handle DW_FORM_implicit_const,
16196 DW_FORM_line_strp.
16197 (read_attribute): Handle DW_FORM_implicit_const.
16198 (read_indirect_string_at_offset_from): New function from
16199 read_indirect_string_at_offset.
16200 (read_indirect_string_at_offset): Call
16201 read_indirect_string_at_offset_from.
16202 (read_indirect_line_string_at_offset): New function.
16203 (read_indirect_string): New function comment.
16204 (read_indirect_line_string): New function.
16205 (read_unsigned_leb128): Make it global.
16206 (dwarf2_string_attr): Handle DWARF-5.
16207 (add_include_dir_stub, read_formatted_entries): New functions.
16208 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
16209 Handle DWARF-5.
16210 (per_cu_header_read_in): Update read_comp_unit_head caller.
16211 (dwarf2_version): New function.
16212 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
16213 rnglists.
16214 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
16215 fields.
16216
16217 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16218
16219 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
16220
16221 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16222
16223 * dwarf2read.c (dwarf2_ranges_process): New function from
16224 dwarf2_ranges_read.
16225 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
16226 dwarf2_ranges_process.
16227
16228 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16229
16230 * dwarf2read.c (create_debug_type_hash_table): New function from
16231 create_debug_types_hash_table.
16232 (create_debug_types_hash_table): Call create_debug_type_hash_table.
16233 (create_all_type_units, open_and_init_dwo_file): Update
16234 create_debug_types_hash_table callers.
16235
16236 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
16237
16238 PR gdb/16188
16239 * fork-child.c (trace_start_error): Fix thinko. va_end should
16240 refer to 'ap', not 'args'.
16241
16242 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
16243 Pedro Alves <palves@redhat.com>
16244
16245 PR gdb/16188
16246 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
16247 calls succeeded.
16248 * fork-child.c (trace_start_error): New function.
16249 (trace_start_error_with_name): Likewise.
16250 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
16251 * inf-ptrace.c (inf_ptrace_me): Likewise.
16252 * inferior.h (trace_start_error): New prototype.
16253 (trace_start_error_with_name): Likewise.
16254
16255 2017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
16256
16257 PR gdb/21164
16258 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
16259 NULL before using it.
16260 * symmisc.c (maintenance_print_symbols): Likewise.
16261 (maintenance_print_msymbols): Likewise.
16262
16263 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16264
16265 * NEWS: Add record Python bindings entry.
16266
16267 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16268
16269 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
16270 py-record-full.o.
16271 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
16272 * python/py-record-btrace.c, python/py-record-btrace.h,
16273 python/py-record-full.c, python/py-record-full.h: New file.
16274 * python/py-record.c: Add include for py-record-btrace.h and
16275 py-record-full.h.
16276 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
16277 recpy_instruction_history, recpy_function_call_history, recpy_begin,
16278 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
16279 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
16280 New definition.
16281 (gdbpy_initialize_btrace): New export.
16282 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
16283
16284 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16285
16286 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
16287 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
16288 * python/py-record.c: New file.
16289 * python/python-internal.h (gdbpy_start_recording,
16290 gdbpy_current_recording, gdpy_stop_recording,
16291 gdbpy_initialize_record): New export.
16292 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
16293 (python_GdbMethods): Add gdbpy_start_recording,
16294 gdbpy_current_recording and gdbpy_stop_recording.
16295
16296 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16297
16298 * record-btrace.c (record_btrace_record_method): New function.
16299 (init_record_btrace_ops): Initialize to_record_method.
16300 * record-full.c (record_full_record_method): New function.
16301 (init_record_full_ops, init_record_full_core_ops): Add
16302 record_full_record_method.
16303 * record.h (enum record_method): New enum.
16304 * target-debug.h (target_debug_print_enum_record_method: New define.
16305 * target-delegates.c: Regenerate.
16306 * target.c (target_record_method): New function.
16307 * target.h: Include record.h.
16308 (struct target_ops) <to_record_method>: New field.
16309 (target_record_method): New export.
16310
16311 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16312
16313 * record.h (record_start, record_stop): New export.
16314 * record.c (record_start, record_stop): New function.
16315
16316 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16317
16318 * btrace.c (btrace_fetch): Copy function call segments pointer
16319 into a vector.
16320 (btrace_clear): Clear the vector.
16321 (btrace_find_insn_by_number): Use binary search to find the correct
16322 function call segment.
16323 * btrace.h (brace_fun_p): New typedef.
16324 (struct btrace_thread_info) <functions>: New field.
16325
16326 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16327
16328 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
16329 * btrace.c (btrace_decode_error): ... here. New function.
16330 * btrace.h (btrace_decode_error): New export.
16331
16332 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16333
16334 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
16335 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
16336 btrace_find_insn_by_number): Remove special case for gaps.
16337 * btrace.h (btrace_insn_get_error): New export.
16338 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
16339 * record-btrace.c (btrace_insn_history): Print number for gaps.
16340 (record_btrace_info, record_btrace_goto): Handle gaps.
16341
16342 2017-02-14 Tom Tromey <tom@tromey.com>
16343
16344 PR python/13598:
16345 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
16346 event.
16347 * python/py-evts.c (gdbpy_initialize_py_events): Add
16348 before_prompt registry.
16349 * python/py-events.h (events_object) <before_prompt>: New field.
16350
16351 2017-02-14 Markus Metzger <markus.t.metzger@intel.com>
16352
16353 * btrace.c (ftrace_new_switch): Preserve up link and flags.
16354
16355 2017-02-13 Luis Machado <lgustavo@codesourcery.com>
16356
16357 * symfile (_initialize_symfile): Add usage text to the load command's
16358 help text.
16359
16360 2017-02-10 Simon Marchi <simon.marchi@ericsson.com>
16361
16362 * utils.c (defaulted_query): Don't query on secondary UIs.
16363
16364 2017-02-10 Tom Tromey <tom@tromey.com>
16365
16366 * rust-lang.c (rust_get_disr_info): Remove unused variable.
16367
16368 2017-02-10 Tom Tromey <tom@tromey.com>
16369
16370 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
16371 "cleanup" local.
16372 * python/py-type.c (typy_legacy_template_argument): Remove
16373 unnecessary "cleanup" local.
16374
16375 2017-02-10 Tom Tromey <tom@tromey.com>
16376
16377 * python/python.c (do_start_initialization): New function, from
16378 _initialize_python.
16379 (_initialize_python): Call do_start_initialization.
16380 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
16381 goto.
16382
16383 2017-02-10 Tom Tromey <tom@tromey.com>
16384
16385 * python/py-prettyprint.c (pretty_print_one_value): Use
16386 gdbpy_ref.
16387
16388 2017-02-10 Tom Tromey <tom@tromey.com>
16389
16390 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
16391 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
16392 gdbpy_ref.
16393 * python/py-type.c (field_new): Use gdbpy_ref.
16394 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
16395 gdbpy_ref.
16396 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
16397 (py_free_pspace): Likewise.
16398 (pspace_to_pspace_object): Likewise.
16399 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
16400 (py_free_objfile): Likewise.
16401 (objfile_to_objfile_object): Likewise.
16402 * python/py-inferior.c (delete_thread_object): Use
16403 gdbpy_ref.
16404 (infpy_read_memory): Likewise.
16405 (py_free_inferior): Likewise.
16406 * python/py-evtregistry.c (create_eventregistry_object): Use
16407 gdbpy_ref.
16408 * python/py-event.c (create_event_object): Use gdbpy_ref.
16409
16410 2017-02-10 Tom Tromey <tom@tromey.com>
16411
16412 * python/py-ref.h (gdbpy_ref_policy): Now a template.
16413 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
16414 used.
16415 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
16416 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
16417 python/py-exitedevent.c, python/py-finishbreakpoint.c,
16418 python/py-framefilter.c, python/py-function.c,
16419 python/py-inferior.c, python/py-infevents.c,
16420 python/py-linetable.c, python/py-newobjfileevent.c,
16421 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
16422 python/py-signalevent.c, python/py-stopevent.c,
16423 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
16424 python/py-unwind.c, python/py-utils.c, python/py-value.c,
16425 python/py-varobj.c, python/py-xmethods.c, python/python.c,
16426 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
16427
16428 2017-02-10 Tom Tromey <tom@tromey.com>
16429
16430 * ui-out.h (ui_out_emit_type): New class.
16431 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
16432 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
16433 and ui_out_emit_tuple.
16434 (enumerate_locals): Likewise.
16435 (py_mi_print_variables, py_print_locals, py_print_args): Use
16436 ui_out_emit_list.
16437 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
16438 ui_out_emit_list.
16439 * common/gdb_optional.h: New file.
16440
16441 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
16442
16443 * MAINTAINERS (Write After Approval): Update my e-mail address.
16444
16445 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
16446
16447 PR gdb/21122
16448 * breakpoint.c (_initialize_breakpoint): Update the help description
16449 of the 'commands' command to indicate that it takes a list argument.
16450
16451 2017-02-09 Simon Marchi <simon.marchi@ericsson.com>
16452
16453 * interps.c (current_interp_set_logging): Remove "return".
16454
16455 2017-02-09 Gary Benson <gbenson@redhat.com>
16456
16457 * symtab.c (add_symtab_completions): Prevent NULL pointer
16458 dereference.
16459
16460 2017-02-08 Pedro Alves <palves@redhat.com>
16461
16462 * interps.c (interp::interp): Remove reference to quiet_p.
16463 (interp_set): Make static. Remove dead "Switching to" output
16464 code.
16465 (interp_quiet_p, interp_set_quiet): Delete.
16466 (interpreter_exec_cmd): Don't set the interpreter quiet.
16467 * interps.h (interp_quiet_p): Make static.
16468 (class interp) <quiet_p>: Remove field
16469
16470 2017-02-08 Jerome Guitton <guitton@adacore.com>
16471
16472 * cli/cli-decode.c (find_command_name_length): Make it extern.
16473 * cli/cli-decode.h (find_command_name_length): Declare.
16474 * cli/cli-script.c (command_name_equals, line_first_arg):
16475 New functions.
16476 (process_next_line): Use cli-decode to parse command names.
16477 (build_command_line): Make args a constant pointer.
16478
16479 2017-02-08 Jerome Guitton <guitton@adacore.com>
16480
16481 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
16482 Remove case-insensitive search.
16483
16484 2017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
16485
16486 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
16487 at the end of the line. Avoids an ARI warning.
16488
16489 2017-02-06 Luis Machado <lgustavo@codesourcery.com>
16490
16491 * NEWS: Mention support for record/replay of Intel 64 rdrand and
16492 rdseed instructions.
16493 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
16494
16495 2017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
16496
16497 PR tdep/20936
16498 Provide and use sparc32 and sparc64 target description XML files.
16499 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
16500 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
16501 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
16502 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
16503 * features/sparc/sparc32-solaris.xml: New file.
16504 * features/sparc/sparc64-solaris.xml: New file.
16505 * features/sparc/sparc32-solaris.c: Generated.
16506 * features/sparc/sparc64-solaris.c: Generated.
16507 * sparc-tdep.h: Account for differences in target descriptions.
16508 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
16509 (sparc32_register_type): Use target provided registers.
16510 (validate_tdesc_registers): New function.
16511 (sparc32_gdbarch_init): Use tdesc_has_registers.
16512 Set pseudoregister functions.
16513 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
16514 (sparc64_register_type): Use target provided registers.
16515 (sparc64_init_abi): Set pseudoregister functions.
16516
16517 2017-02-03 Tom Tromey <tom@tromey.com>
16518
16519 PR rust/21097:
16520 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
16521 with a single member.
16522
16523 2017-02-03 Pedro Alves <palves@redhat.com>
16524
16525 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
16526 (cli_interp_base::~cli_interp_base): New.
16527 (cli_interp): New struct.
16528 (as_cli_interp): Cast the interp itself to cli_interp.
16529 (cli_interpreter_pre_command_loop): Rename to ...
16530 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
16531 parameter.
16532 (cli_interpreter_init): Rename to ...
16533 (cli_interp::init): ... this. Remove 'self' parameter. Use
16534 boolean. Make extern.
16535 (cli_interpreter_resume): Rename to ...
16536 (cli_interp::resume): ... this. Remove 'data' parameter. Make
16537 extern.
16538 (cli_interpreter_suspend): Rename to ...
16539 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
16540 extern.
16541 (cli_interpreter_exec): Rename to ...
16542 (cli_interp::exec): ... this. Remove 'data' parameter. Make
16543 extern.
16544 (cli_interpreter_supports_command_editing): Rename to ...
16545 (cli_interp_base::supports_command_editing): ... this. Remove
16546 'interp' parameter. Make extern.
16547 (cli_ui_out): Rename to ...
16548 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
16549 Make extern.
16550 (cli_set_logging): Rename to ...
16551 (cli_interp_base::set_logging): ... this. Remove 'interp'
16552 parameter. Make extern.
16553 (cli_interp_procs): Delete.
16554 (cli_interp_factory): Adjust to use "new".
16555 * cli/cli-interp.h: Include "interps.h".
16556 (struct cli_interp_base): New struct.
16557 * interps.c (struct interp): Delete. Fields moved to interps.h.
16558 (interp_new): Delete.
16559 (interp::interp, interp::~interp): New.
16560 (interp_set): Use bool, and return void. Assume the interpreter
16561 has suspend, init and resume methods, and that the all return
16562 void.
16563 (set_top_level_interpreter): interp_set returns void.
16564 (interp_ui_out): Adapt.
16565 (current_interp_set_logging): Adapt.
16566 (interp_data): Delete.
16567 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
16568 (interp_exec): Adapt.
16569 (top_level_interpreter_data): Delete.
16570 * interps.h (interp_init_ftype, interp_resume_ftype)
16571 (interp_suspend_ftype, interp_exec_ftype)
16572 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
16573 (class interp): New.
16574 (interp_new): Delete.
16575 (interp_set): Now returns void. Use bool.
16576 (interp_data, top_level_interpreter_data): Delete.
16577 * mi/mi-common.h: Include interps.h.
16578 (class mi_interp): Inherit from interp. Define a ctor. Declare
16579 init, resume, suspect, exec, interp_ui_out, set_logging and
16580 pre_command_loop methods.
16581 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
16582 (mi_interpreter_init): Rename to ...
16583 (mi_interp::init): ... this. Remove the 'interp' parameter, use
16584 bool, return void and make extern. Adjust.
16585 (mi_interpreter_resume): ... Rename to ...
16586 (mi_interp::resume): ... this. Remove the 'data' parameter,
16587 return void and make extern. Adjust.
16588 (mi_interpreter_suspend): ... Rename to ...
16589 (mi_interp::suspend): ... this. Remove the 'data' parameter,
16590 return void and make extern. Adjust.
16591 (mi_interpreter_exec): ... Rename to ...
16592 (mi_interp::exec): ... this. Remove the 'data' parameter and make
16593 extern. Adjust.
16594 (mi_interpreter_pre_command_loop): ... Rename to ...
16595 (mi_interp::pre_command_loop): ... this. Remove the 'self'
16596 parameter and make extern.
16597 (mi_on_normal_stop_1): Adjust.
16598 (mi_ui_out): Rename to ...
16599 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
16600 parameter and make extern. Adjust.
16601 (mi_set_logging): Rename to ...
16602 (mi_interp::set_logging): ... this. Remove the 'interp'
16603 parameter and make extern. Adjust.
16604 (mi_interp_procs): Delete.
16605 (mi_interp_factory): Adjust to use 'new'.
16606 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
16607 (mi_print_exception, mi_execute_command, mi_load_progress):
16608 Adjust.
16609 * tui/tui-interp.c (tui_interp): New class.
16610 (as_tui_interp): Return a tui_interp pointer.
16611 (tui_on_normal_stop, tui_on_signal_received)
16612 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
16613 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
16614 to use interp::interp_ui_out.
16615 (tui_init): Rename to ...
16616 (tui_interp::init): ... this. Remove the 'self' parameter, use
16617 bool, return void and make extern. Adjust.
16618 (tui_resume): Rename to ...
16619 (tui_interp::resume): ... this. Remove the 'data' parameter,
16620 return void and make extern. Adjust.
16621 (tui_suspend): Rename to ...
16622 (tui_interp::suspend): ... this. Remove the 'data' parameter,
16623 return void and make extern. Adjust.
16624 (tui_ui_out): Rename to ...
16625 (tui_interp::interp_ui_out): ... this. Remove the 'self'
16626 parameter, and make extern. Adjust.
16627 (tui_exec): Rename to ...
16628 (tui_interp::exec): ... this. Remove the 'data' parameter and
16629 make extern.
16630 (tui_interp_procs): Delete.
16631 (tui_interp_factory): Use "new".
16632
16633 2017-02-02 Tom Tromey <tom@tromey.com>
16634
16635 * rust-exp.y (ends_raw_string, space_then_number)
16636 (rust_identifier_start_p): Return bool.
16637 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
16638 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
16639 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
16640 (rust_chartype_p): Return bool.
16641 (val_print_struct, rust_print_struct_def, rust_print_type):
16642 Update.
16643 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
16644 Return bool.
16645
16646 2017-02-02 Tom Tromey <tom@tromey.com>
16647
16648 * rust-lang.c: Reindent.
16649
16650 2017-02-02 Tom Tromey <tom@tromey.com>
16651
16652 * rust-lang.h (rust_crate_for_block): Update.
16653 * rust-lang.c (rust_crate_for_block): Return std::string.
16654 (rust_get_disr_info): Use std:;string, not
16655 gdb::unique_xmalloc_ptr.
16656 * rust-exp.y (crate_name): Update.
16657
16658 2017-02-02 Pedro Alves <palves@redhat.com>
16659
16660 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
16661 field out of gdb_disassembler_test and make it static.
16662
16663 2017-02-02 Pedro Alves <palves@redhat.com>
16664
16665 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
16666 mi1_interp and mi_interp fields.
16667
16668 2017-02-02 Pedro Alves <palves@redhat.com>
16669
16670 * cli/cli-interp.c (struct saved_output_files, saved_output):
16671 Moved from cli/cli-logging.c.
16672 (cli_set_logging): New function.
16673 (cli_interp_procs): Install cli_set_logging.
16674 * cli/cli-interp.h (make_logging_output, cli_set_logging):
16675 Declare.
16676 * cli/cli-logging.c (struct saved_output_files, saved_output):
16677 Moved to cli/cli-interp.c.
16678 (pop_output_files): Don't save outputs here.
16679 (make_logging_output): New function.
16680 (handle_redirections): Don't build tee nor save previous outputs
16681 here.
16682 * interps.c (current_interp_set_logging): Change prototype.
16683 Assume there's always a set_logging_proc method installed.
16684 * interps.h (interp_set_logging_ftype): Change prototype.
16685 (current_interp_set_logging): Change prototype and adjust comment.
16686 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
16687 use make_logging_output.
16688 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
16689 2017-02-02 Pedro Alves <palves@redhat.com>
16690
16691 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
16692 from ...
16693 (set_logging_overwrite): ... here.
16694 (logging_no_redirect_file): Delete.
16695 (set_logging_redirect): Don't handle redirection on the fly.
16696 Instead warn that "logging off" / "logging on" is necessary.
16697 (pop_output_files): Delete references to logging_no_redirect_file.
16698 (show_logging_command): Always speak in terms of what will happen
16699 once logging is reenabled.
16700
16701 2017-02-02 Pedro Alves <palves@redhat.com>
16702
16703 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
16704
16705 2017-02-02 Pedro Alves <palves@redhat.com>
16706
16707 * disasm.c (gdb_pretty_print_insn): Rename to ...
16708 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
16709 Remove gdbarch parameter. Adapt to clear the object's buffers
16710 instead of allocating new buffers, and to print using the object's
16711 gdb_disassembler instead of calling gdb_print_insn.
16712 (dump_insns): Use gdb_pretty_print_disassembler.
16713 * disasm.h (gdb_pretty_print_insn): Delete declaration.
16714 (gdb_pretty_print_disassembler): New class.
16715 * record-btrace.c (btrace_insn_history): Use
16716 gdb_pretty_print_disassembler.
16717
16718 2017-02-02 Pedro Alves <palves@redhat.com>
16719
16720 * ada-lang.c (type_as_string): Use string_file.
16721 * ada-valprint.c (ada_print_floating): Use string_file.
16722 * ada-varobj.c (ada_varobj_scalar_image)
16723 (ada_varobj_get_value_image): Use string_file.
16724 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
16725 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
16726 * breakpoint.c (update_inserted_breakpoint_locations)
16727 (insert_breakpoint_locations, reattach_breakpoints)
16728 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
16729 (print_it_watchpoint): Use string_file.
16730 (save_breakpoints): Use stdio_file.
16731 * c-exp.y (oper): Use string_file.
16732 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
16733 tee_file.
16734 (pop_output_files): Use delete.
16735 (handle_redirections): Use stdio_file and tee_file.
16736 * cli/cli-setshow.c (do_show_command): Use string_file.
16737 * compile/compile-c-support.c (c_compute_program): Use
16738 string_file.
16739 * compile/compile-c-symbols.c (generate_vla_size): Take a
16740 'string_file &' instead of a 'ui_file *'.
16741 (generate_c_for_for_one_variable): Take a 'string_file &' instead
16742 of a 'ui_file *'. Use string_file.
16743 (generate_c_for_variable_locations): Take a 'string_file &'
16744 instead of a 'ui_file *'.
16745 * compile/compile-internal.h (generate_c_for_for_one_variable):
16746 Take a 'string_file &' instead of a 'ui_file *'.
16747 * compile/compile-loc2c.c (push, pushf, unary, binary)
16748 (print_label, pushf_register_address, pushf_register)
16749 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
16750 'ui_file *'. Adjust.
16751 * compile/compile.c (compile_to_object): Use string_file.
16752 * compile/compile.h (compile_dwarf_expr_to_c)
16753 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
16754 'ui_file *'.
16755 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
16756 (replace_typedefs_qualified_name): Use string_file and
16757 obstack_copy0.
16758 * disasm.c (gdb_pretty_print_insn): Use string_file.
16759 (gdb_disassembly): Adjust reference the null_stream global.
16760 (do_ui_file_delete): Delete.
16761 (gdb_insn_length): Use null_stream.
16762 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
16763 * dwarf2loc.c (dwarf2_compile_property_to_c)
16764 (locexpr_generate_c_location, loclist_generate_c_location): Take a
16765 'string_file &' instead of a 'ui_file *'.
16766 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
16767 * dwarf2read.c (do_ui_file_peek_last): Delete.
16768 (dwarf2_compute_name): Use string_file.
16769 * event-top.c (gdb_setup_readline): Use stdio_file.
16770 * gdbarch.sh (verify_gdbarch): Use string_file.
16771 * gdbtypes.c (safe_parse_type): Use null_stream.
16772 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
16773 string_file.
16774 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
16775 'string_file *' instead of a 'ui_file *'.
16776 (gdbscm_arch_disassemble): Use string_file.
16777 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
16778 * guile/scm-ports.c (class ioscm_file_port): Now a class that
16779 inherits from ui_file.
16780 (ioscm_file_port_delete, ioscm_file_port_rewind)
16781 (ioscm_file_port_put): Delete.
16782 (ioscm_file_port_write): Rename to ...
16783 (ioscm_file_port::write): ... this. Remove file_port_magic
16784 checks.
16785 (ioscm_file_port_new): Delete.
16786 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
16787 ui_file_up.
16788 * guile/scm-type.c (tyscm_type_name): Use string_file.
16789 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
16790 Use string_file.
16791 * infcmd.c (print_return_value_1): Use string_file.
16792 * infrun.c (print_target_wait_results): Use string_file.
16793 * language.c (add_language): Use string_file.
16794 * location.c (explicit_to_string_internal): Use string_file.
16795 * main.c (captured_main_1): Use null_file.
16796 * maint.c (maintenance_print_architecture): Use stdio_file.
16797 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
16798 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
16799 event_channel>: Change type to mi_console_file pointer.
16800 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
16801 (mi_console_file_delete): Delete.
16802 (struct mi_console_file): Delete.
16803 (mi_console_file_magic): Delete.
16804 (mi_console_file_new): Delete.
16805 (mi_console_file::mi_console_file): New.
16806 (mi_console_file_delete): Delete.
16807 (mi_console_file_fputs): Delete.
16808 (mi_console_file::write): New.
16809 (mi_console_raw_packet): Delete.
16810 (mi_console_file::flush): New.
16811 (mi_console_file_flush): Delete.
16812 (mi_console_set_raw): Rename to ...
16813 (mi_console_file::set_raw): ... this.
16814 * mi/mi-console.h (class mi_console_file): New class.
16815 (mi_console_file_new, mi_console_set_raw): Delete.
16816 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
16817 (mi_set_logging): Use delete and tee_file. Adjust.
16818 * mi/mi-main.c (output_register): Use string_file.
16819 (mi_cmd_data_evaluate_expression): Use string_file.
16820 (mi_cmd_data_read_memory): Use string_file.
16821 (mi_cmd_execute, print_variable_or_computed): Use string_file.
16822 * mi/mi-out.c (mi_ui_out::main_stream): New.
16823 (mi_ui_out::rewind): Use main_stream and
16824 string_file.
16825 (mi_ui_out::put): Use main_stream and string_file.
16826 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
16827 Allocate a 'string_file' instead.
16828 (mi_out_new): Don't allocate a mem_fileopen stream here.
16829 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
16830 (mi_ui_out::main_stream): Declare method.
16831 * printcmd.c (eval_command): Use string_file.
16832 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
16833 * python/py-arch.c (archpy_disassemble): Use string_file.
16834 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
16835 * python/py-frame.c (frapy_str): Use string_file.
16836 * python/py-framefilter.c (py_print_type, py_print_single_arg):
16837 Use string_file.
16838 * python/py-type.c (typy_str): Use string_file.
16839 * python/py-unwind.c (unwind_infopy_str): Use string_file.
16840 * python/py-value.c (valpy_str): Use string_file.
16841 * record-btrace.c (btrace_insn_history): Use string_file.
16842 * regcache.c (regcache_print): Use stdio_file.
16843 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
16844 * remote.c (escape_buffer): Use string_file.
16845 * rust-lang.c (rust_get_disr_info): Use string_file.
16846 * serial.c (serial_open_ops_1): Use stdio_file.
16847 (do_serial_close): Use delete.
16848 * stack.c (print_frame_arg): Use string_file.
16849 (print_frame_args): Remove local mem_fileopen stream, not used.
16850 (print_frame): Use string_file.
16851 * symmisc.c (maintenance_print_symbols): Use stdio_file.
16852 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
16853 Take a 'string_file *' instead of a 'ui_file *'.
16854 * top.c (new_ui): Use stdio_file and stderr_file.
16855 (free_ui): Use delete.
16856 (execute_command_to_string): Use string_file.
16857 (quit_confirm): Use string_file.
16858 * tracepoint.c (collection_list::append_exp): Use string_file.
16859 * tui/tui-disasm.c (tui_disassemble): Use string_file.
16860 * tui/tui-file.c: Don't include "ui-file.h".
16861 (enum streamtype, struct tui_stream): Delete.
16862 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
16863 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
16864 (tui_file::tui_file): New method.
16865 (tui_file_fputs): Delete.
16866 (tui_file_get_strbuf): Delete.
16867 (tui_file::puts): New method.
16868 (tui_file_adjust_strbuf): Delete.
16869 (tui_file_flush): Delete.
16870 (tui_file::flush): New method.
16871 * tui/tui-file.h: Tweak intro comment.
16872 Include ui-file.h.
16873 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
16874 (tui_file_adjust_strbuf): Delete declarations.
16875 (class tui_file): New class.
16876 * tui/tui-io.c (tui_initialize_io): Use tui_file.
16877 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
16878 (tui_register_format): Use string_stream.
16879 * tui/tui-stack.c (tui_make_status_line): Use string_file.
16880 (tui_get_function_from_frame): Use string_file.
16881 * typeprint.c (type_to_string): Use string_file.
16882 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
16883 (null_stream): New global.
16884 (ui_file_delete): Delete.
16885 (ui_file::ui_file): New.
16886 (null_file_isatty): Delete.
16887 (ui_file::~ui_file): New.
16888 (null_file_rewind): Delete.
16889 (ui_file::printf): New.
16890 (null_file_put): Delete.
16891 (null_file_flush): Delete.
16892 (ui_file::putstr): New.
16893 (null_file_write): Delete.
16894 (ui_file::putstrn): New.
16895 (null_file_read): Delete.
16896 (ui_file::putc): New.
16897 (null_file_fputs): Delete.
16898 (null_file_write_async_safe): Delete.
16899 (ui_file::vprintf): New.
16900 (null_file_delete): Delete.
16901 (null_file::write): New.
16902 (null_file_fseek): Delete.
16903 (null_file::puts): New.
16904 (ui_file_data): Delete.
16905 (null_file::write_async_safe): New.
16906 (gdb_flush, ui_file_isatty): Adjust.
16907 (ui_file_put, ui_file_rewind): Delete.
16908 (ui_file_write): Adjust.
16909 (ui_file_write_for_put): Delete.
16910 (ui_file_write_async_safe, ui_file_read): Adjust.
16911 (ui_file_fseek): Delete.
16912 (fputs_unfiltered): Adjust.
16913 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
16914 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
16915 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
16916 (set_ui_file_data): Delete.
16917 (string_file::~string_file, string_file::write)
16918 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
16919 (do_ui_file_as_string, ui_file_as_string): Delete.
16920 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
16921 (struct mem_file): Delete.
16922 (mem_file_new): Delete.
16923 (stdio_file::stdio_file): New.
16924 (mem_file_delete): Delete.
16925 (stdio_file::stdio_file): New.
16926 (mem_fileopen): Delete.
16927 (stdio_file::~stdio_file): New.
16928 (mem_file_rewind): Delete.
16929 (stdio_file::set_stream): New.
16930 (mem_file_put): Delete.
16931 (stdio_file::open): New.
16932 (mem_file_write): Delete.
16933 (stdio_file_magic, struct stdio_file): Delete.
16934 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
16935 (stdio_file::flush): New.
16936 (stdio_file_read): Rename to ...
16937 (stdio_file::read): ... this. Adjust.
16938 (stdio_file_write): Rename to ...
16939 (stdio_file::write): ... this. Adjust.
16940 (stdio_file_write_async_safe): Rename to ...
16941 (stdio_file::write_async_safe) ... this. Adjust.
16942 (stdio_file_fputs): Rename to ...
16943 (stdio_file::puts) ... this. Adjust.
16944 (stdio_file_isatty): Delete.
16945 (stdio_file_fseek): Delete.
16946 (stdio_file::isatty): New.
16947 (stderr_file_write): Rename to ...
16948 (stderr_file::write) ... this. Adjust.
16949 (stderr_file_fputs): Rename to ...
16950 (stderr_file::puts) ... this. Adjust.
16951 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
16952 (stderr_file::stderr_file): New.
16953 (tee_file_magic): Delete.
16954 (struct tee_file): Delete.
16955 (tee_file::tee_file): New.
16956 (tee_file_new): Delete.
16957 (tee_file::~tee_file): New.
16958 (tee_file_delete): Delete.
16959 (tee_file_flush): Rename to ...
16960 (tee_file::flush): ... this. Adjust.
16961 (tee_file_write): Rename to ...
16962 (tee_file::write): ... this. Adjust.
16963 (tee_file::write_async_safe): New.
16964 (tee_file_fputs): Rename to ...
16965 (tee_file::puts): ... this. Adjust.
16966 (tee_file_isatty): Rename to ...
16967 (tee_file::isatty): ... this. Adjust.
16968 * ui-file.h (struct obstack, struct ui_file): Don't
16969 forward-declare.
16970 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
16971 (ui_file_write_ftype)
16972 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
16973 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
16974 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
16975 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
16976 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
16977 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
16978 (set_ui_file_fseek): Delete.
16979 (ui_file_data, ui_file_delete, ui_file_rewind)
16980 (struct ui_file): New.
16981 (ui_file_up): New.
16982 (class null_file): New.
16983 (null_stream): Declare.
16984 (ui_file_write_for_put, ui_file_put): Delete.
16985 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
16986 Delete.
16987 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
16988 (gdb_fopen, tee_file_new): Delete.
16989 (struct string_file): New.
16990 (struct stdio_file): New.
16991 (stdio_file_up): New.
16992 (struct stderr_file): New.
16993 (class tee_file): New.
16994 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
16995 of a 'ui_file *'. Adjust.
16996 * ui-out.h (class ui_out) <field_stream>: Likewise.
16997 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
16998 (null_stream): Delete.
16999 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
17000 Adjust.
17001 * utils.h (struct ui_file): Delete forward declaration..
17002 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
17003 (error_stream): Take a 'string_file &' instead of a
17004 'ui_file *'.
17005 * varobj.c (varobj_value_get_print_value): Use string_file.
17006 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
17007 * gdbarch.c: Regenerate.
17008
17009 2017-02-02 Pedro Alves <palves@redhat.com>
17010
17011 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
17012 (gdb_pretty_print_insn): ... this. Now a free function. Add back
17013 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
17014 Adjust to call gdb_print_insn instead of
17015 gdb_disassembler::print_insn.
17016 (dump_insns, do_mixed_source_and_assembly_deprecated)
17017 (do_mixed_source_and_assembly, do_assembly_only): Add back a
17018 'gdbarch' parameter. Remove gdb_disassembler parameter.
17019 (gdb_disassembly): Don't allocate a gdb_disassembler here.
17020 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
17021 declaration.
17022 (gdb_pretty_print_insn): Re-add declaration.
17023 * record-btrace.c (btrace_insn_history): Don't allocate a
17024 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
17025
17026 2017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
17027
17028 * disasm.h (gdb_disassembly): Remove file_string parameter.
17029 * disasm.c (gdb_disassembly): Likewise.
17030 * cli/cli-cmds.c (print_disassembly): Adapt.
17031 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
17032 * stack.c (do_gdb_disassembly): Likewise.
17033
17034 2017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
17035
17036 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
17037 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
17038 targets. And if the implicit value is longer than needed, extract
17039 the first bytes instead of the "least significant" ones.
17040
17041 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
17042
17043 * btrace.c (btrace_enable): Do not call btrace_add_pc for
17044 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
17045 (btrace_fetch): Assert can_access_registers_ptid.
17046 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
17047 validate_registers_access.
17048
17049 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
17050
17051 * gdbthread.h (can_access_registers_ptid): New.
17052 * thread.c (can_access_registers_ptid): New.
17053
17054 2017-02-01 Pedro Alves <palves@redhat.com>
17055
17056 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
17057
17058 2017-01-31 Pedro Alves <palves@redhat.com>
17059
17060 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
17061 Fix typos.
17062
17063 2017-01-31 Pedro Alves <palves@redhat.com>
17064
17065 * stack.c (print_frame_args): Remove local mem_fileopen stream,
17066 not used.
17067
17068 2017-01-31 Pedro Alves <palves@redhat.com>
17069
17070 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
17071
17072 2017-01-31 Pedro Alves <palves@redhat.com>
17073
17074 * common/scoped_restore.h
17075 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
17076 change the value's parameter type to T2.
17077 (make_scoped_restore): Likewise.
17078
17079 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
17080 Richard Henderson <rth@redhat.com>
17081
17082 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
17083 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
17084 GS_BASE for older kernels.
17085 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
17086 GS_BASE for older kernels.
17087 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
17088 and GS_BASE to the offset table.
17089 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
17090 system register group.
17091 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
17092 for older kernels.
17093 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
17094 amd64 ABI.
17095 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
17096 AMD64_GSBASE_REGNUM.
17097 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
17098 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
17099 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
17100 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
17101 i386/64bit-segments.xml in those rules.
17102 * features/i386/64bit-segments.xml: New file.
17103 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
17104 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
17105 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
17106 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
17107 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
17108 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
17109 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
17110 * features/i386/amd64-avx-linux.c: Regenerated.
17111 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
17112 * features/i386/amd64-avx-mpx.c: Regenerated.
17113 * features/i386/amd64-avx512-linux.c: Regenerated.
17114 * features/i386/amd64-linux.c: Regenerated.
17115 * features/i386/amd64-mpx-linux.c: Regenerated.
17116 * features/i386/i386-avx-mpx-linux.c: Regenerated.
17117 * features/i386/i386-avx-mpx.c: Regenerated.
17118 * features/i386/x32-avx-linux.c: Regenerated.
17119 * features/i386/x32-avx512-linux.c: Regenerated.
17120 * regformats/i386/amd64-avx-linux.dat: Regenerated.
17121 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
17122 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
17123 * regformats/i386/amd64-linux.dat: Regenerated.
17124 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
17125 * regformats/i386/x32-avx-linux.dat: Regenerated.
17126 * regformats/i386/x32-avx512-linux.dat: Regenerated.
17127 * regformats/i386/x32-linux.dat: Regenerated.
17128
17129 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
17130
17131 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
17132 Set to AMD64_NUM_REGS.
17133
17134 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
17135
17136 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
17137 that checks validity of a register number.
17138
17139 2017-01-27 Kees Cook <keescook@google.com>
17140
17141 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
17142 fetch_fpregs if target has fpa registers.
17143 (arm_linux_store_inferior_registers): Call store_fpregs if target
17144 has fpa registers.
17145
17146 2017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
17147
17148 * cris-tdep.c (cris_gdbarch_init): Remove check for
17149 info.byte_order and force it to BFD_ENDIAN_LITTLE.
17150
17151 2017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
17152
17153 * corelow.c (get_core_register_section): Check for regset
17154 existence before checking for REGSET_VARIABLE_SIZE.
17155
17156 2017-01-26 Yao Qi <yao.qi@linaro.org>
17157 Pedro Alves <palves@redhat.com>
17158
17159 PR gdb/20939
17160 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
17161 call memory_error, save memaddr instead.
17162 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
17163 negative, cal memory_error.
17164 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
17165
17166 2017-01-26 Yao Qi <yao.qi@linaro.org>
17167
17168 * disasm-selftests.c (memory_error_test): New function.
17169 (_initialize_disasm_selftests): Register memory_error_test.
17170
17171 2017-01-26 Yao Qi <yao.qi@linaro.org>
17172
17173 * Makefile.in (SFILES): Add disasm-selftests.c and
17174 selftest-arch.c.
17175 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
17176 * disasm-selftests.c: New file.
17177 * selftest-arch.c: New file.
17178 * selftest-arch.h: New file.
17179
17180 2017-01-26 Yao Qi <yao.qi@linaro.org>
17181
17182 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
17183 to bfd_arch_mep. Don't return 0 if section is not
17184 found. Call print_insn_mep.
17185
17186 2017-01-26 Pedro Alves <palves@redhat.com>
17187 Yao Qi <yao.qi@linaro.org>
17188
17189 * arm-tdep.c: Include "disasm.h".
17190 (gdb_print_insn_arm): Update code to get gdbarch.
17191 * disasm.c (dis_asm_read_memory): Change it to
17192 gdb_disassembler::dis_asm_read_memory.
17193 (dis_asm_memory_error): Likewise.
17194 (dis_asm_print_address): Likewise.
17195 (gdb_pretty_print_insn): Change it to
17196 gdb_disassembler::pretty_print_insn.
17197 (dump_insns): Add one argument gdb_disassemlber. All
17198 callers updated.
17199 (do_mixed_source_and_assembly_deprecated): Likewise.
17200 (do_mixed_source_and_assembly): Likewise.
17201 (do_assembly_only): Likewise.
17202 (gdb_disassembler::gdb_disassembler): New.
17203 (gdb_disassembler::print_insn): New.
17204 * disasm.h (class gdb_disassembler): New.
17205 (gdb_pretty_print_insn): Remove declaration.
17206 (gdb_disassemble_info): Likewise.
17207 * guile/scm-disasm.c (class gdbscm_disassembler): New.
17208 (gdbscm_disasm_read_memory_worker): Update.
17209 (gdbscm_disasm_read_memory): Update.
17210 (gdbscm_disasm_memory_error): Remove.
17211 (gdbscm_disasm_print_address): Remove.
17212 (gdbscm_disassembler::gdbscm_disassembler): New.
17213 (gdbscm_print_insn_from_port): Update.
17214 * mips-tdep.c: Include disasm.h.
17215 (gdb_print_insn_mips): Update code to get gdbarch.
17216 * record-btrace.c (btrace_insn_history): Update.
17217 * spu-tdep.c: Include disasm.h.
17218 (struct spu_dis_asm_data): Remove.
17219 (struct spu_dis_asm_info): New.
17220 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
17221 SPU id.
17222 (gdb_print_insn_spu): Cast disassemble_info to
17223 spu_dis_asm_info.
17224
17225 2017-01-26 Yao Qi <yao.qi@linaro.org>
17226
17227 * disasm.c (do_ui_file_delete): Delete.
17228 (gdb_insn_length): Move code creating stream to ...
17229 * utils.c (null_stream): ... here. New function.
17230 * utils.h (null_stream): Declare.
17231
17232 2017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
17233
17234 * python/py-inferior.c (find_thread_object): Return directly
17235 from the loop. Remove "found" variable.
17236
17237 2017-01-21 Joel Brobecker <brobecker@adacore.com>
17238
17239 GDB 7.12.1 released.
17240
17241 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
17242
17243 * python/py-function.c (fnpy_call): Reorder declarations to have
17244 the gdbpy_enter object declared first.
17245 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
17246
17247 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
17248
17249 PR python/21068
17250 * python/python-internal.h (PyMem_RawMalloc): Define for
17251 Python < 3.4.
17252 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
17253 PyMem_RawMalloc instead of PyMem_Malloc.
17254
17255 2017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
17256 Luis Machado <lgustavo@codesourcery.com>
17257
17258 * NEWS (New commands): Mention flash-erase.
17259 (New MI commands): Mention target-flash-erase.
17260 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
17261 command.
17262 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
17263 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
17264 * target.c (flash_erase_command): New function.
17265 (initialize_targets): Add new flash-erase command.
17266 * target.h (flash_erase_command): New declaration.
17267
17268 2017-01-20 Joel Brobecker <brobecker@adacore.com>
17269
17270 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
17271 HAVE_SYS_PROCFS_H is defined.
17272
17273 2017-01-18 Alan Hayward <alan.hayward@arm.com>
17274
17275 * remote.c (struct cached_reg): Change data into a pointer.
17276 * (stop_reply_dtr): Free data pointers before deleting vector.
17277 (process_stop_reply): Likewise.
17278 (remote_parse_stop_reply): Allocate space for data
17279
17280 2017-01-18 Alan Hayward <alan.hayward@arm.com>
17281
17282 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
17283 MAX_REGISTER_SIZE.
17284 (amd64_pseudo_register_read_value): Likewise.
17285 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
17286 (store_register_using_P): Likewise.
17287 * regcache.c (regcache_xfer_part): Likewise.
17288
17289 2017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
17290
17291 Split real and pseudo registers.
17292 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
17293 (sparc32_pseudo_regnum): New enum.
17294 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
17295 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
17296 (SPARC32_CP0_REGISTERS): New macro.
17297 (sparc32_pseudo_register_name): New function.
17298 (sparc32_register_name): Use sparc32_pseudo_register_name.
17299 (sparc32_pseudo_register_type): New function.
17300 (sparc32_register_type): Use sparc32_pseudo_register_type.
17301 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
17302 pseudo register numbers.
17303 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
17304 (SPARC64_CP0_REGISTERS): New macro.
17305 (sparc64_pseudo_register_name): New function.
17306 (sparc64_register_name): Use sparc64_pseudo_register_name.
17307 (sparc64_pseudo_register_type): New function.
17308 (sparc64_register_type): Use sparc64_pseudo_register_type.
17309 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
17310 pseudo register numbers.
17311 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
17312 sparc64_store_arguments): Handle pseudo register numbers.
17313
17314 2017-01-13 Yao Qi <yao.qi@linaro.org>
17315
17316 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
17317 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
17318 output.
17319 (getpkt_or_notif_sane_1): Likewise.
17320
17321 2017-01-13 Yao Qi <yao.qi@linaro.org>
17322
17323 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
17324 of CC. Pass "-x c++-header" instead of "-x c".
17325
17326 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
17327
17328 * remote.c (remote_can_async_p): Update comment.
17329
17330 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
17331
17332 * linux-nat.c (linux_nat_can_async_p): Update comment.
17333
17334 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
17335
17336 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
17337
17338 2017-01-11 Simon Marchi <simon.marchi@ericsson.com>
17339
17340 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
17341
17342 2017-01-10 Tom Tromey <tom@tromey.com>
17343
17344 * python/py-type.c (typy_legacy_template_argument): Update.
17345 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
17346 ~demangle_parse_info): Declare new members.
17347 (cp_demangled_name_to_comp): Return unique_ptr.
17348 (cp_demangled_name_parse_free)
17349 (make_cleanup_cp_demangled_name_parse_free)
17350 (cp_new_demangle_parse_info): Remove.
17351 * cp-support.c (do_demangled_name_parse_free_cleanup)
17352 (make_cleanup_cp_demangled_name_parse_free): Remove.
17353 (inspect_type, cp_canonicalize_string_full)
17354 (cp_canonicalize_string): Update.
17355 (mangled_name_to_comp): Change return type.
17356 (cp_class_name_from_physname, method_name_from_physname)
17357 (cp_func_name, cp_remove_params): Update.
17358 * cp-name-parser.y (demangle_parse_info): New constructor, from
17359 cp_new_demangle_parse_info.
17360 (~demangle_parse_info): New destructor, from
17361 cp_demangled_name_parse_free.
17362 (cp_merge_demangle_parse_infos): Update.
17363 (cp_demangled_name_to_comp): Change return type.
17364
17365 2017-01-10 Tom Tromey <tom@tromey.com>
17366
17367 * top.c (prevent_dont_repeat): Change return type.
17368 * python/python.c (execute_gdb_command): Use std::string.
17369 Update.
17370 * guile/guile.c (gdbscm_execute_gdb_command): Update.
17371 * command.h (prevent_dont_repeat): Change return type.
17372 * breakpoint.c (bpstat_do_actions_1): Update.
17373
17374 2017-01-10 Tom Tromey <tom@tromey.com>
17375
17376 * value.h (scoped_value_mark::~scoped_value_mark): Call
17377 free_to_mark.
17378 (scoped_value_mark::free_to_mark): New method.
17379 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
17380 scoped_value_mark.
17381
17382 2017-01-10 Tom Tromey <tom@tromey.com>
17383
17384 * python/py-value.c (valpy_dereference, valpy_referenced_value)
17385 (valpy_reference_value, valpy_const_value, valpy_get_address)
17386 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
17387 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
17388 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
17389 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
17390 scoped_value_mark.
17391 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
17392 * value.h (scoped_value_mark): New class.
17393
17394 2017-01-10 Tom Tromey <tom@tromey.com>
17395
17396 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
17397 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
17398 * psymtab.c (discard_psymtabs_upto): Remove.
17399 (make_cleanup_discard_psymtabs): Remove.
17400 (struct psymtab_state): Remove.
17401
17402 2017-01-10 Tom Tromey <tom@tromey.com>
17403
17404 * record-full.c (record_full_save_cleanups): Remove.
17405 (record_full_save): Use gdb::unlinker.
17406 * gcore.c (do_bfd_delete_cleanup): Remove.
17407 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
17408 cleanups.
17409 * dwarf2read.c (unlink_if_set): Remove.
17410 (write_psymtabs_to_index): Use gdb::unlinker.
17411 * common/gdb_unlinker.h: New file.
17412
17413 2017-01-10 Tom Tromey <tom@tromey.com>
17414
17415 * windows-tdep.c (windows_xfer_shared_library): Update.
17416 * windows-nat.c (windows_make_so): Update.
17417 * utils.h (make_cleanup_bfd_unref): Remove.
17418 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
17419 * symfile.h (symfile_bfd_open)
17420 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
17421 * symfile.c (read_symbols, symbol_file_add)
17422 (separate_debug_file_exists): Update.
17423 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
17424 (generic_load, reread_symbols): Update.
17425 * symfile-mem.c (symbol_file_add_from_memory): Update.
17426 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
17427 (spu_symbol_file_add_from_memory): Update.
17428 * solist.h (struct target_so_ops) <bfd_open>: Return
17429 gdb_bfd_ref_ptr.
17430 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
17431 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
17432 gdb_bfd_ref_ptr.
17433 (solib_map_sections, reload_shared_libraries_1): Update.
17434 * solib-svr4.c (enable_break): Update.
17435 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
17436 * solib-frv.c (enable_break2): Update.
17437 * solib-dsbt.c (enable_break): Update.
17438 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
17439 gdb_bfd_ref_ptr.
17440 (darwin_solib_get_all_image_info_addr_at_init): Update.
17441 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
17442 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
17443 * record-full.c (record_full_save): Update.
17444 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
17445 * procfs.c (insert_dbx_link_bpt_in_file): Update.
17446 * minidebug.c (find_separate_debug_file_in_section): Return
17447 gdb_bfd_ref_ptr.
17448 * machoread.c (macho_add_oso_symfile): Change abfd to
17449 gdb_bfd_ref_ptr.
17450 (macho_symfile_read_all_oso): Update.
17451 (macho_check_dsym): Return gdb_bfd_ref_ptr.
17452 (macho_symfile_read): Update.
17453 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
17454 (jit_bfd_try_read_symtab): Update.
17455 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
17456 (gdb_bfd_openw, gdb_bfd_openr_iovec)
17457 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
17458 gdb_bfd_ref_ptr.
17459 (gdb_bfd_ref_policy): New struct.
17460 (gdb_bfd_ref_ptr): New typedef.
17461 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
17462 (gdb_bfd_openw, gdb_bfd_openr_iovec)
17463 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
17464 gdb_bfd_ref_ptr.
17465 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
17466 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
17467 (gcore_command): Update.
17468 * exec.c (exec_file_attach): Update.
17469 * elfread.c (elf_symfile_read): Update.
17470 * dwarf2read.c (dwarf2_get_dwz_file): Update.
17471 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
17472 (open_and_init_dwo_file): Update.
17473 (open_dwp_file): Return gdb_bfd_ref_ptr.
17474 (open_and_init_dwp_file): Update.
17475 * corelow.c (core_open): Update.
17476 * compile/compile-object-load.c (compile_object_load): Update.
17477 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
17478 * coffread.c (coff_symfile_read): Update.
17479 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
17480 gdb_bfd_ref_ptr. Rename.
17481 (dump_bfd_file, restore_command): Update.
17482 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
17483 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
17484 (find_separate_debug_file_by_buildid): Update.
17485
17486 2017-01-10 Tom Tromey <tom@tromey.com>
17487
17488 * common/gdb_ref_ptr.h: New file.
17489 * python/py-ref.h (struct gdbpy_ref_policy): New.
17490 (gdbpy_ref): Now a typedef.
17491
17492 2017-01-10 Tom Tromey <tom@tromey.com>
17493
17494 * utils.h (make_cleanup_htab_delete): Don't declare.
17495 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
17496 Remove.
17497 * linespec.c (decode_compound_collector): Add constructor,
17498 destructor.
17499 (lookup_prefix_sym): Remove cleanup.
17500 (symtab_collector): Add constructor, destructor.
17501 (collect_symtabs_from_filename): Remove cleanup.
17502 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
17503 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
17504 Use htab_up.
17505 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
17506 * dwarf2read.c (dw2_expand_symtabs_matching)
17507 (dw2_map_symbol_filenames, dwarf_decode_macros)
17508 (write_psymtabs_to_index): Use htab_up.
17509 * dwarf2loc.c (func_verify_no_selftailcall)
17510 (call_site_find_chain_1, func_verify_no_selftailcall)
17511 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
17512 std::vector, gdb::unique_xmalloc_ptr.
17513 (call_sitep): Remove typedef.
17514 (dwarf2_locexpr_baton_eval): Remove unused variable.
17515
17516 2017-01-10 Tom Tromey <tom@tromey.com>
17517
17518 * python/python-internal.h (make_cleanup_py_decref)
17519 (make_cleanup_py_xdecref): Don't declare.
17520 * python/py-utils.c (py_decref, make_cleanup_py_decref)
17521 (py_xdecref, make_cleanup_py_xdecref): Remove.
17522
17523 2017-01-10 Tom Tromey <tom@tromey.com>
17524
17525 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
17526 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
17527
17528 2017-01-10 Tom Tromey <tom@tromey.com>
17529
17530 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
17531
17532 2017-01-10 Tom Tromey <tom@tromey.com>
17533
17534 * python/py-utils.c (unicode_to_encoded_string)
17535 (python_string_to_target_string)
17536 (python_string_to_target_python_string)
17537 (python_string_to_host_string, gdbpy_obj_to_string)
17538 (get_addr_from_python): Use gdbpy_ref.
17539
17540 2017-01-10 Tom Tromey <tom@tromey.com>
17541
17542 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
17543 gdbpy_ref.
17544
17545 2017-01-10 Tom Tromey <tom@tromey.com>
17546
17547 * python/python.c (eval_python_command, gdbpy_decode_line)
17548 (gdbpy_run_events, gdbpy_start_type_printers)
17549 (gdbpy_apply_type_printers): Use gdbpy_ref.
17550
17551 2017-01-10 Tom Tromey <tom@tromey.com>
17552
17553 * python/py-param.c (get_doc_string, compute_enum_values): Use
17554 gdbpy_ref.
17555
17556 2017-01-10 Tom Tromey <tom@tromey.com>
17557
17558 * python/py-inferior.c (find_thread_object, build_inferior_list):
17559 Use gdbpy_ref.
17560
17561 2017-01-10 Tom Tromey <tom@tromey.com>
17562
17563 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
17564
17565 2017-01-10 Tom Tromey <tom@tromey.com>
17566
17567 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
17568 gdbpy_ref.
17569
17570 2017-01-10 Tom Tromey <tom@tromey.com>
17571
17572 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
17573 extra incref.
17574 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
17575 Use gdbpy_ref.
17576
17577 2017-01-10 Tom Tromey <tom@tromey.com>
17578
17579 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
17580 gdbpy_ref.
17581
17582 2017-01-10 Tom Tromey <tom@tromey.com>
17583
17584 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
17585 decref results of PyArg_ParseTupleAndKeywords.
17586
17587 2017-01-10 Tom Tromey <tom@tromey.com>
17588
17589 * python/python.c (python_run_simple_file): Use
17590 unique_xmalloc_ptr, gdbpy_ref.
17591
17592 2017-01-10 Tom Tromey <tom@tromey.com>
17593
17594 * python/py-prettyprint.c (print_stack_unless_memory_error)
17595 (print_string_repr, print_children): Use gdbpy_ref.
17596 (dummy_python_frame): New class.
17597 (dummy_python_frame::dummy_python_frame): Rename from
17598 push_dummy_python_frame.
17599 (py_restore_tstate): Remove.
17600
17601 2017-01-10 Tom Tromey <tom@tromey.com>
17602
17603 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
17604
17605 2017-01-10 Tom Tromey <tom@tromey.com>
17606
17607 * python/python.c (ensure_python_env, restore_python_env):
17608 Remove.
17609 * python/python-internal.h (ensure_python_env): Don't declare.
17610 * varobj.h (varobj_ensure_python_env): Don't declare.
17611 * varobj.c (varobj_ensure_python_env): Remove.
17612
17613 2017-01-10 Tom Tromey <tom@tromey.com>
17614
17615 * varobj.c (varobj_value_get_print_value): Use
17616 gdbpy_enter_varobj.
17617
17618 2017-01-10 Tom Tromey <tom@tromey.com>
17619
17620 * python/py-prettyprint.c (print_string_repr, print_children):
17621 Update.
17622 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
17623 of "encoding".
17624 * varobj.c (varobj_value_get_print_value): Update.
17625 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
17626
17627 2017-01-10 Tom Tromey <tom@tromey.com>
17628
17629 * varobj.c (varobj_get_display_hint)
17630 (dynamic_varobj_has_child_method, install_new_value_visualizer)
17631 (varobj_set_visualizer, free_variable): Use
17632 gdbpy_enter_varobj.
17633
17634 2017-01-10 Tom Tromey <tom@tromey.com>
17635
17636 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
17637 (do_finish_initialization): New function. Use gdbpy_ref.
17638 (gdbpy_finish_initialization): Use gdbpy_enter. Call
17639 do_finish_initialization.
17640
17641 2017-01-10 Tom Tromey <tom@tromey.com>
17642
17643 * python/py-param.c (get_set_value, get_show_value): Use
17644 gdbpy_enter, gdbpy_ref.
17645
17646 2017-01-10 Tom Tromey <tom@tromey.com>
17647
17648 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
17649
17650 2017-01-10 Tom Tromey <tom@tromey.com>
17651
17652 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
17653
17654 2017-01-10 Tom Tromey <tom@tromey.com>
17655
17656 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
17657 Use gdbpy_enter_varobj.
17658
17659 2017-01-10 Tom Tromey <tom@tromey.com>
17660
17661 * varobj.c (gdbpy_enter_varobj): New constructor.
17662 * python/python-internal.h (gdbpy_enter_varobj): New class.
17663 * python/py-varobj.c (py_varobj_get_iterator): Use
17664 gdbpy_enter_varobj.
17665
17666 2017-01-10 Tom Tromey <tom@tromey.com>
17667
17668 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
17669 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
17670 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
17671 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
17672 unique_xmalloc_ptr.
17673 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
17674
17675 2017-01-10 Tom Tromey <tom@tromey.com>
17676
17677 * python/py-xmethods.c (invoke_match_method): Use
17678 gdbpy_ref.
17679
17680 2017-01-10 Tom Tromey <tom@tromey.com>
17681
17682 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
17683 gdbpy_enter, gdbpy_ref.
17684
17685 2017-01-10 Tom Tromey <tom@tromey.com>
17686
17687 * python/python.c (python_interactive_command): Use gdbpy_enter.
17688
17689 2017-01-10 Tom Tromey <tom@tromey.com>
17690
17691 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
17692 gdbpy_ref.
17693
17694 2017-01-10 Tom Tromey <tom@tromey.com>
17695
17696 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
17697 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
17698
17699 2017-01-10 Tom Tromey <tom@tromey.com>
17700
17701 * utils.h (htab_deleter): New struct.
17702 (htab_up): New typedef.
17703 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
17704 gdbpy_enter, gdbpy_ref, htab_up.
17705
17706 2017-01-10 Tom Tromey <tom@tromey.com>
17707
17708 * python/py-unwind.c (pending_frame_invalidate): Remove.
17709 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
17710
17711 2017-01-10 Tom Tromey <tom@tromey.com>
17712
17713 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
17714 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
17715
17716 2017-01-10 Tom Tromey <tom@tromey.com>
17717
17718 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
17719
17720 2017-01-10 Tom Tromey <tom@tromey.com>
17721
17722 * python/python.c (gdbpy_eval_from_control_command)
17723 (gdbpy_source_script, gdbpy_run_events)
17724 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
17725 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
17726 gdbpy_enter.
17727
17728 2017-01-10 Tom Tromey <tom@tromey.com>
17729
17730 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
17731
17732 2017-01-10 Tom Tromey <tom@tromey.com>
17733
17734 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
17735
17736 2017-01-10 Tom Tromey <tom@tromey.com>
17737
17738 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
17739 (python_on_inferior_call_pre, python_on_inferior_call_post)
17740 (python_on_memory_change, python_on_register_change)
17741 (python_inferior_exit, python_new_objfile, add_thread_object)
17742 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
17743
17744 2017-01-10 Tom Tromey <tom@tromey.com>
17745
17746 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
17747 (bpfinishpy_handle_exit): Use gdbpy_enter.
17748
17749 2017-01-10 Tom Tromey <tom@tromey.com>
17750
17751 * python/py-cmd.c (cmdpy_destroyer)
17752 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
17753 gdbpy_enter.
17754
17755 2017-01-10 Tom Tromey <tom@tromey.com>
17756
17757 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
17758 gdbpy_enter.
17759 (gdbpy_breakpoint_has_cond): Likewise.
17760
17761 2017-01-10 Tom Tromey <tom@tromey.com>
17762
17763 * python/python.c (gdbpy_enter): New constructor.
17764 (~gdbpy_enter): New destructor.
17765 (restore_python_env, ensure_python_env): Rewrite.
17766 * python/python-internal.h (gdbpy_enter): New class.
17767
17768 2017-01-10 Tom Tromey <tom@tromey.com>
17769
17770 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
17771
17772 2017-01-10 Tom Tromey <tom@tromey.com>
17773
17774 * python/py-value.c (value_has_field, get_field_flag)
17775 (get_field_type, valpy_getitem, convert_value_from_python): Use
17776 gdbpy_ref.
17777
17778 2017-01-10 Tom Tromey <tom@tromey.com>
17779
17780 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
17781 gdbpy_ref.
17782
17783 2017-01-10 Tom Tromey <tom@tromey.com>
17784
17785 * python/py-prettyprint.c (search_pp_list)
17786 (find_pretty_printer_from_objfiles)
17787 (find_pretty_printer_from_progspace)
17788 (find_pretty_printer_from_gdb, find_pretty_printer)
17789 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
17790 gdbpy_ref.
17791
17792 2017-01-10 Tom Tromey <tom@tromey.com>
17793
17794 * python/py-param.c (call_doc_function): Use gdbpy_ref.
17795
17796 2017-01-10 Tom Tromey <tom@tromey.com>
17797
17798 * python/py-linetable.c (build_line_table_tuple_from_pcs)
17799 (ltpy_get_all_source_lines): Use gdbpy_ref.
17800
17801 2017-01-10 Tom Tromey <tom@tromey.com>
17802
17803 * python/py-framefilter.c (extract_sym, extract_value)
17804 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
17805 gdbpy_ref.
17806
17807 2017-01-10 Tom Tromey <tom@tromey.com>
17808
17809 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
17810
17811 2017-01-10 Tom Tromey <tom@tromey.com>
17812
17813 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
17814
17815 2017-01-10 Tom Tromey <tom@tromey.com>
17816
17817 * python/py-function.c (convert_values_to_python, fnpy_init): Use
17818 gdbpy_ref.
17819
17820 2017-01-10 Tom Tromey <tom@tromey.com>
17821
17822 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
17823
17824 2017-01-10 Tom Tromey <tom@tromey.com>
17825
17826 * python/py-type.c (convert_field, make_fielditem, typy_fields)
17827 (typy_range): Use gdbpy_ref.
17828
17829 2017-01-10 Tom Tromey <tom@tromey.com>
17830
17831 * python/py-threadevent.c (create_thread_event_object): Use
17832 gdbpy_ref.
17833 * python/py-stopevent.c (create_stop_event_object): Simplify.
17834 (emit_stop_event): Use gdbpy_ref.
17835 * python/py-signalevent.c (create_signal_event_object): Use
17836 gdbpy_ref.
17837 * python/py-newobjfileevent.c (create_new_objfile_event_object)
17838 (emit_new_objfile_event, create_clear_objfiles_event_object)
17839 (emit_clear_objfiles_event): Use gdbpy_ref.
17840 * python/py-infevents.c (create_inferior_call_event_object)
17841 (create_register_changed_event_object)
17842 (create_memory_changed_event_object, emit_inferior_call_event)
17843 (emit_memory_changed_event, emit_register_changed_event): Use
17844 gdbpy_ref.
17845 * python/py-exitedevent.c (create_exited_event_object)
17846 (emit_exited_event): Use gdbpy_ref.
17847 * python/py-event.h (evpy_emit_event): Remove
17848 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
17849 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
17850 * python/py-continueevent.c (emit_continue_event): Use
17851 gdbpy_ref.
17852 * python/py-breakpoint.c (gdbpy_breakpoint_created)
17853 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
17854 gdbpy_ref.
17855 * python/py-bpevent.c (create_breakpoint_event_object): Use
17856 gdbpy_ref.
17857
17858 2017-01-10 Tom Tromey <tom@tromey.com>
17859
17860 * python/py-ref.h: New file.
17861
17862 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
17863
17864 * cli-out.c (cli_ui_out::do_redirect): Change return type to
17865 void.
17866 * cli-out.h (cli_ui_out::do_redirect): Likewise.
17867 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
17868 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
17869 * ui-out.c (ui_out::redirect): Likewise.
17870 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
17871 * cli/cli-logging.c (set_logging_redirect): Update call site of
17872 ui_out::redirect.
17873 (handle_redirections): Likewise.
17874 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
17875 * top.c (execute_command_to_string): Likewise.
17876 * utils.c (do_ui_out_redirect_pop): Likewise.
17877
17878 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
17879
17880 * stack.c (_initialize_stack): Update "frame" command help message.
17881
17882 2017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
17883
17884 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
17885
17886 2017-01-06 Yao Qi <yao.qi@linaro.org>
17887
17888 * x86-linux-nat.h: Include gdb_proc_service.h.
17889
17890 2017-01-06 Yao Qi <yao.qi@linaro.org>
17891
17892 * ser-base.h: Include serial.h.
17893
17894 2017-01-06 Yao Qi <yao.qi@linaro.org>
17895
17896 * ppc-linux-tdep.h: Include ppc-tdep.h.
17897
17898 2017-01-06 Yao Qi <yao.qi@linaro.org>
17899
17900 * nat/amd64-linux-siginfo.h: Include signal.h.
17901
17902 2017-01-06 Yao Qi <yao.qi@linaro.org>
17903
17904 * nat/aarch64-linux-hw-point.h: Include break-common.h.
17905
17906 2017-01-06 Yao Qi <yao.qi@linaro.org>
17907
17908 * mi/mi-parse.h: Include mi-cmds.h.
17909
17910 2017-01-06 Yao Qi <yao.qi@linaro.org>
17911
17912 * inf-loop.c: Don't include "target.h".
17913 * inf-loop.h: Include it here.
17914
17915 2017-01-06 Yao Qi <yao.qi@linaro.org>
17916
17917 * dfp.h: Include "dboulest.h" and "expression.h".
17918
17919 2017-01-06 Yao Qi <yao.qi@linaro.org>
17920
17921 * ax-gdb.h: Include "ax.h".
17922
17923 2017-01-06 Yao Qi <yao.qi@linaro.org>
17924
17925 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
17926 with nat/gdb_ptrace.h.
17927
17928 2017-01-05 Yao Qi <yao.qi@linaro.org>
17929
17930 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
17931 new line.
17932 (mips64_fbsd_sigframe_init): Likewise.
17933
17934 2017-01-04 John Baldwin <jhb@FreeBSD.org>
17935
17936 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
17937 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
17938
17939 2017-01-04 John Baldwin <jhb@FreeBSD.org>
17940
17941 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
17942 * NEWS: Mention new FreeBSD/mips native configuration.
17943 * config/mips/fbsd.mh: New file.
17944 * configure.host: Add mips*-*-freebsd*.
17945 * mips-fbsd-nat.c: New file.
17946
17947 2017-01-04 John Baldwin <jhb@FreeBSD.org>
17948
17949 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
17950 (ALLDEPFILES): Add mips-fbsd-tdep.c.
17951 * NEWS: Mention new FreeBSD/mips target.
17952 * configure.tgt: Add mips*-*-freebsd*.
17953 * mips-fbsd-tdep.c: New file.
17954 * mips-fbsd-tdep.h: New file.
17955
17956 2017-01-04 Yao Qi <yao.qi@linaro.org>
17957
17958 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
17959 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
17960
17961 2017-01-01 Joel Brobecker <brobecker@adacore.com>
17962
17963 Update copyright year range in all GDB files.
17964
17965 2017-01-01 Joel Brobecker <brobecker@adacore.com>
17966
17967 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
17968
17969 For older changes see ChangeLog-2016.
17970 \f
17971 Local Variables:
17972 mode: change-log
17973 left-margin: 8
17974 fill-column: 74
17975 version-control: never
17976 coding: utf-8
17977 End: