]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/ChangeLog
Refactor: Move some generic code out of .gdb_index code
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
1 2017-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2
3 * dwarf2read.c (create_cu_from_index_list): New from ...
4 (create_cus_from_index_list): ... this function, use it.
5 (dw_expand_symtabs_matching_file_matcher)
6 (dw2_expand_symtabs_matching_one): New from ...
7 (dw2_expand_symtabs_matching): ... this function, use them.
8
9 2017-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10
11 * defs.h (elf_sym_fns_lazy_psyms, elf_sym_fns_gdb_index): Move here
12 declarations from elfread.c.
13 (dwarf2_initialize_objfile): Change return value.
14 * elfread.c (elf_sym_fns_lazy_psyms, elf_sym_fns_gdb_index): Move these
15 declarations to defs.h.
16 (elf_symfile_read): Adjust dwarf2_initialize_objfile caller.
17 * symfile.h (dwarf2_initialize_objfile): Change return type.
18
19 2017-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
20 Pedro Alves <palves@redhat.com>
21
22 * contrib/gdb-add-index.sh (index): Rename to ...
23 (index4): ... here.
24 (index5, debugstr, debugstrmerge, debugstrerr): New variables.
25 Support also .debug_names and .debug_str.
26 * dwarf2read.c: Include cmath, set, list.
27 (INDEX_SUFFIX): Rename to ...
28 (INDEX4_SUFFIX): ... here.
29 (INDEX5_SUFFIX, DEBUG_STR_SUFFIX): New.
30 (file_write(FILE *, const void *, size_t)): New.
31 (file_write(FILE *, const std::vector<Elem, Alloc> &)): New.
32 (data_buf::append_unsigned_leb128, data_buf::empty): New.
33 (data_buf::file_write): Use ::file_write.
34 (data_buf::c_str, dwarf5_djb_hash, debug_names)
35 (check_dwarf64_offsets): New.
36 (psyms_seen_size, write_gdbindex): New from
37 write_psymtabs_to_index code.
38 (dwarf5_gdb_augmentation, write_debug_names, assert_file_size)
39 (enum dw_index_kind): New.
40 (write_psymtabs_to_index): New parameter index_kind. Support
41 filename_str and out_file_str. Move code to write_gdbindex,
42 possibly call write_debug_names.
43 (save_gdb_index_command): New parameter -dwarf-5.
44 (_initialize_dwarf2_read): Document the new parameter -dwarf-5.
45
46 2017-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
47 Pedro Alves <palves@redhat.com>
48
49 * contrib/cc-with-tweaks.sh: Change interpreter to bash, incl. initial
50 comment.
51 (GDB_ADD_INDEX): New variable.
52 <$want_index>: Call $GDB_ADD_INDEX.
53
54 2017-12-08 Sergio Durigan Junior <sergiodj@redhat.com>
55
56 * dtrace-probe.c (dtrace_process_dof_probe): Do not declare a new
57 "expression_up" inside the TRY block.
58
59 2017-12-08 Yao Qi <yao.qi@linaro.org>
60
61 * breakpoint.c (update_watchpoint): Call
62 address_significant.
63
64 2017-12-08 Yao Qi <yao.qi@linaro.org>
65
66 * breakpoint.c (adjust_breakpoint_address): Call
67 address_significant.
68
69 2017-12-08 Yao Qi <yao.qi@linaro.org>
70
71 * aarch64-tdep.c (aarch64_gdbarch_init): Install gdbarch
72 significant_addr_bit.
73 * gdbarch.sh (significant_addr_bit): New.
74 * gdbarch.c, gdbarch.h: Re-generated.
75 * target.c (memory_xfer_partial): Call address_significant.
76 * utils.c (address_significant): New function.
77 * utils.h (address_significant): Declare.
78
79 2017-12-08 Tom Tromey <tom@tromey.com>
80
81 * printcmd.c (ui_printf): Update. Use std::vector.
82 * common/format.h (struct format_piece): Add constructor.
83 <string>: Now const.
84 (class format_pieces): New class.
85 (parse_format_string, free_format_pieces)
86 (free_format_pieces_cleanup): Remove.
87 * common/format.c (format_pieces::format_pieces): Rename from
88 parse_format_string. Update.
89 (free_format_pieces, free_format_pieces_cleanup): Remove.
90 * breakpoint.c (parse_cmd_to_aexpr): Update. Use std::vector.
91 * ax-gdb.h (gen_printf): Remove argument.
92 * ax-gdb.c (gen_printf): Remove "frags" argument.
93 (maint_agent_printf_command): Update. Use std::vector.
94
95 2017-12-08 Yao Qi <yao.qi@linaro.org>
96
97 PR breakpionts/22567
98 * linespec.c (minsym_found): Set sal.section.
99
100 2017-12-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
101
102 * configure.tgt (s390*-*-linux*): Add symfile-mem.o.
103
104 2017-12-07 Keith Seitz <keiths@redhat.com>
105
106 PR breakpoints/22569
107 * location.c (string_to_explicit_location): When terminating
108 parsing early, break out of enclosing loop instead of returning.
109
110 2017-12-07 Keith Seitz <keiths@redhat.com>
111
112 * NEWS (New commands): Mention set/show print type nested-type-limit.
113 * c-typeprint.c (c_type_print_base): Print out nested types.
114 * dwarf2read.c (struct typedef_field_list): Rename to ...
115 (struct decl_field_list): ... this. Change all uses.
116 (struct field_info) <nested_types_list, nested_types_list_count>:
117 New fields.
118 (add_partial_symbol): Look for nested type definitions in C++, too.
119 (dwarf2_add_typedef): Rename to ...
120 (dwarf2_add_type_defn): ... this.
121 (type_can_define_types): New function.
122 Update assertion to use type_can_define_types.
123 Permit NULL for a field's name.
124 (process_structure_scope): Handle child DIEs of types that can
125 define types.
126 Copy the list of nested types into the type struct.
127 * gdbtypes.h (struct typedef_field): Rename to ...
128 (struct decl_field): ... this. Change all uses.
129 [is_protected, is_private]: New fields.
130 (struct cplus_struct_type) <nested_types, nested_types_count>: New
131 fields.
132 (TYPE_NESTED_TYPES_ARRAY, TYPE_NESTED_TYPES_FIELD)
133 (TYPE_NESTED_TYPES_FIELD_NAME, TYPE_NESTED_TYPES_FIELD_TYPE)
134 (TYPE_NESTED_TYPES_COUNT, TYPE_NESTED_TYPES_FIELD_PROTECTED)
135 (TYPE_NESTED_TYPES_FIELD_PRIVATE): New macros.
136 * typeprint.c (type_print_raw_options, default_ptype_flags): Add
137 default value for print_nested_type_limit.
138 (print_nested_type_limit): New static variable.
139 (set_print_type_nested_types, show_print_type_nested_types): New
140 functions.
141 (_initialize_typeprint): Register new commands for set/show
142 `print-nested-type-limit'.
143 * typeprint.h (struct type_print_options) [print_nested_type_limit]:
144 New field.
145
146 2017-12-07 Tom Tromey <tom@tromey.com>
147
148 PR breakpoints/22511:
149 * breakpoint.c (commands_command_1): Don't throw an exception when
150 no commands have been read.
151
152 2017-12-07 Adam Stylinski <adam.stylinski@etegent.com>
153
154 PR c++/21222
155 * target-descriptions.c (print_c_tdesc::visit_pre): Change type of
156 range-for variable.
157
158 2017-12-07 Simon Marchi <simon.marchi@ericsson.com>
159
160 * common/selftest.h (struct selftest): Add virtual destructor.
161
162 2017-12-07 Phil Muldoon <pmuldoon@redhat.com>
163
164 * python/py-breakpoint.c (bppy_init): Use string_to_event_location
165 over basic location code. Implement explicit location keywords.
166 (bppy_init_validate_args): New function.
167 * NEWS: Document Python explicit breakpoint locations.
168
169 2017-12-07 Joel Brobecker <brobecker@adacore.com>
170
171 * MAINTAINERS: Restore target entries for m68hc11-elf,
172 score-elf and xstormy16-elf, incorrectly removed in a previous
173 patch meant to only update the list of active maintainers.
174
175 2017-12-06 Pedro Alves <palves@redhat.com>
176
177 * break-catch-syscall.c (insert_catch_syscall)
178 (remove_catch_syscall): Adjust to pass reference to
179 inf_data->syscalls_counts directly via gdb::array_view.
180 * fbsd-nat.c (fbsd_set_syscall_catchpoint): Adjust to use bool
181 and gdb::array_view.
182 * linux-nat.c (linux_child_set_syscall_catchpoint): Likewise.
183 * remote.c (remote_set_syscall_catchpoint): Likewise.
184 * target-debug.h (target_debug_print_bool): New.
185 (define target_debug_print_gdb_array_view_const_int): New.
186 * target-delegates.c: Regenerate.
187 * target.h (target_ops) <to_set_syscall_catchpoint>: Use
188 gdb::array_view and bool.
189 (target_set_syscall_catchpoint): Likewise.
190
191 2017-12-06 Simon Marchi <simon.marchi@ericsson.com>
192
193 * break-catch-syscall.c (catch_syscall_completer): Get pointers
194 to syscall group strings after building the string vector.
195
196 2017-12-06 Pedro Alves <palves@redhat.com>
197
198 * remote.c (remote_query_supported): Don't send "xmlRegisters=" if
199 "qXfer:features:read"" is disabled.
200 (remote_write_qxfer, remote_read_qxfer, remote_search_memory):
201 Check packet_config_support instead of packet->support directly.
202
203 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
204
205 * target-descriptions.c (struct tdesc_feature) <registers>: Use
206 tdesc_reg_up typedef.
207 (struct target_desc) <features>: Use tdesc_feature_up typedef.
208
209 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
210
211 * target-descriptions.c (struct tdesc_type): Use default
212 destructor.
213 <u>: Remove.
214 <accept>: Remove.
215 (struct tdesc_type_builtin): New.
216 (struct tdesc_type_vector): New.
217 (struct tdesc_type_with_fields): New.
218 (tdesc_predefined_types): Change type to tdesc_type_builtin[].
219 (tdesc_gdb_type): Remove.
220 (tdesc_register_type): Adjust.
221 (tdesc_create_vector): Create tdesc_type_vector.
222 (tdesc_create_struct): Create tdesc_type_with_fields.
223 (tdesc_set_struct_size): Change parameter type.
224 (tdesc_create_union): Create tdesc_type_with_fields.
225 (tdesc_create_flags): Likewise.
226 (tdesc_create_enum): Likewise.
227 (tdesc_add_field): Change parameter type.
228 (tdesc_add_typed_bitfield): Likewise.
229 (tdesc_add_bitfield): Likewise.
230 (tdesc_add_flag): Likewise.
231 (tdesc_add_enum_value): Likewise.
232 (print_c_tdesc) <visit>: Remove overload with tdesc_type
233 parameter, add overloads for tdesc_type_builtin,
234 tdesc_type_with_fields and tdesc_type_vector.
235 <m_printed_type>: Remove.
236 <m_printed_element_type, m_printed_type_with_fields>: Add.
237 * target-descriptions.h (tdesc_create_enum): Change return type.
238 (tdesc_add_typed_bitfield): Change parameter type.
239 (tdesc_add_enum_value): Change parameter type.
240 * xml-tdesc.c (struct tdesc_parsing_data) <current_type>: Change
241 type to tdesc_type_with_fields.
242 (tdesc_start_struct): Adjust.
243 (tdesc_start_flags): Adjust.
244 (tdesc_start_enum): Adjust.
245 (tdesc_start_field): Adjust.
246 * arch/tdesc.h (struct tdesc_type_builtin): Forward-declare.
247 (struct tdesc_type_vector): Forward-declare.
248 (struct tdesc_type_with_fields): Forward-declare.
249 (tdesc_create_struct): Change return type.
250 (tdesc_create_union): Likewise.
251 (tdesc_create_flags): Likewise.
252 (tdesc_add_field): Change parameter type.
253 (tdesc_set_struct_size): Likewise.
254 (tdesc_add_bitfield): Likewise.
255 (tdesc_add_flag): Likewise.
256 * features: Re-generate C files.
257
258 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
259
260 * target-descriptions.c (tdesc_arch_reg): Remove typedef.
261 (struct tdesc_arch_reg): Add constructor.
262 (DEF_VEC_O (tdesc_arch_reg)): Remove.
263 (struct tdesc_arch_data): Initialize fields.
264 <arch_regs>: Change type to std::vector.
265 (target_find_description): Adjust.
266 (tdesc_find_type): Adjust.
267 (tdesc_data_init): Call tdesc_arch_data constructor.
268 (tdesc_data_alloc): Allocate tdesc_arch_data with new.
269 (tdesc_data_cleanup): Free data with delete.
270 (tdesc_numbered_register): Adjust.
271 (tdesc_find_arch_register): Adjust.
272 (tdesc_use_registers): Adjust.
273
274 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
275
276 * target-descriptions.c (tdesc_type_field): Remove typedef.
277 (DEF_VEC_O (tdesc_type_field)): Remove.
278 (struct tdesc_type_field): Add constructor.
279 <name>: Change type to std::string.
280 (struct tdesc_type) <tdesc_type>: Instantiate vector if the type
281 kind uses it.
282 <~tdesc_type>: Destroy vector if the type kind uses it.
283 <u::u::fields>: Change type to std::vector.
284 (tdesc_gdb_type): Adjust.
285 (tdesc_add_field): Adjust.
286 (tdesc_add_typed_bitfield): Adjust.
287 (tdesc_add_field): Adjust.
288 (tdesc_add_enum_value): Adjust.
289 (class print_c_tdesc) <visit>: Adjust.
290
291 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
292
293 * target-descriptions.c (struct tdesc_type) <name>: Change type
294 to std::string.
295 <~tdesc_type>: Don't manually free name.
296 <operator==>: Adjust.
297 (tdesc_named_type): Adjust.
298 (tdesc_find_type): Adjust.
299 (tdesc_gdb_type): Adjust.
300 (class print_c_tdesc) <visit>: Adjust.
301
302 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
303
304 * target-descriptions.c (tdesc_type_p): Remove typedef.
305 (DEF_VEC_P (tdesc_type_p)): Remove.
306 (struct tdesc_feature) <types>: Change type to std::vector.
307 <~tdesc_feature>: Replace with default implementation.
308 <accept>: Adjust.
309 (tdesc_named_type): Adjust.
310 (tdesc_create_vector): Adjust.
311 (tdesc_create_struct): Adjust.
312 (tdesc_create_union): Adjust.
313 (tdesc_create_flags): Adjust.
314 (tdesc_create_enum): Adjust.
315
316 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
317
318 * target-descriptions.c (struct tdesc_reg) <tdesc_reg>: Change
319 type of name_ parameter, adjust to std::string change.
320 <name, group, type>: Change type to std::string.
321 <~tdesc_reg>: Replace with default implementation.
322 <operator==>: Adjust.
323 (tdesc_find_register_early): Adjust.
324 (tdesc_register_name): Adjust.
325 (tdesc_register_type): Adjust.
326 (tdesc_register_in_reggroup_p): Adjust.
327 (class print_c_tdesc) <visit>: Adjust.
328 (class print_c_feature) <visit>: Adjust.
329 * features/arc-arcompact.c: Re-generate.
330 * features/arc-v2.c: Re-generate.
331
332 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
333
334 * target-descriptions.c (tdesc_reg_p): Remove typedef.
335 (DEF_VEC_P (tdesc_reg_p)): Remove.
336 (struct tdesc_feature) <registers>: Change type to std::vector.
337 <~tdesc_feature>: Don't manually free registers.
338 <accept>: Adjust.
339 <operator==>: Adjust.
340 (tdesc_has_registers): Adjust.
341 (tdesc_find_register_early): Adjust.
342 (tdesc_use_registers): Adjust.
343 (tdesc_create_reg): Adjust.
344
345 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
346
347 * target-descriptions.c (tdesc_feature) <name>: Change type to
348 std::string.
349 <~tdesc_feature>: Don't manually free name.
350 <operator==>: Adjust.
351 (tdesc_find_feature): Adjust.
352 (tdesc_feature_name): Adjust.
353 (class print_c_tdesc) <visit_pre>: Adjust.
354 (class print_c_feature) <visit_pre>: Adjust.
355
356 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
357
358 * target-descriptions.c (tdesc_feature_p): Remove typedef.
359 (DEF_VEC_P (tdesc_feature_p)): Remove.
360 (struct target_desc) <features>: Change type to std::vector.
361 <~target_desc>: Replace with default implementation.
362 <accept>: Adjust.
363 <operator==>: Adjust.
364 (tdesc_has_registers): Adjust.
365 (tdesc_find_feature): Adjust.
366 (tdesc_use_registers): Adjust.
367 (tdesc_create_feature): Adjust.
368
369 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
370
371 * target-descriptions.c (arch_p): Remove typedef.
372 (DEF_VEC_P (arch_p)): Remove.
373 (struct target_desc) <compatible>: Change type to std::vector.
374 <~target_desc>: Don't manually free compatible.
375 (tdesc_compatible_p): Adjust.
376 (tdesc_add_compatible): Adjust.
377 (class print_c_tdesc) <visit_pre>: Adjust.
378
379 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
380
381 * target-descriptions.c (property_s): Remove typedef.
382 (DEF_VEC_O (property_s)): Remove.
383 (struct target_desc) <properties>: Make an std::vector.
384 <~target_desc>: Don't manually free properties.
385 (tdesc_property): Adjust.
386 (set_tdesc_property): Adjust.
387 (class print_c_tdesc) <visit_pre>: Adjust.
388
389 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
390
391 * common/gdb_assert.h (gdb_static_assert): Redefine using
392 static_assert.
393
394 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
395
396 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
397 unused variables.
398 (ada_is_redundant_range_encoding): Likewise.
399 * ada-varobj.c (ada_varobj_get_value_of_array_variable):
400 Likewise.
401 * alpha-tdep.c (alpha_software_single_step): Likewise.
402 * arm-tdep.c (_initialize_arm_tdep): Likewise.
403 * auto-load.c (info_auto_load_cmd): Likewise.
404 * break-catch-syscall.c (insert_catch_syscall): Likewise.
405 (remove_catch_syscall): Likewise.
406 * breakpoint.c (condition_completer): Likewise.
407 (clear_command): Likewise.
408 (update_breakpoint_locations): Likewise.
409 * btrace.c (btrace_disable): Likewise.
410 (btrace_teardown): Likewise.
411 (btrace_maint_update_pt_packets): Likewise.
412 (maint_btrace_clear_cmd): Likewise.
413 * cli/cli-decode.c (lookup_cmd_1): Likewise.
414 (lookup_cmd_composition): Likewise.
415 * cli/cli-dump.c (scan_filename): Likewise.
416 (restore_command): Likewise.
417 * compile/compile-loc2c.c (compute_stack_depth): Likewise.
418 * compile/compile-object-load.c (compile_object_load): Likewise.
419 * compile/compile-object-run.c (compile_object_run): Likewise.
420 * compile/compile.c (compile_to_object): Likewise.
421 * completer.c (filename_completer): Likewise.
422 (complete_files_symbols): Likewise.
423 (complete_expression): Likewise.
424 * corelow.c (core_open): Likewise.
425 * ctf.c (ctf_start): Likewise.
426 (ctf_write_status): Likewise.
427 (ctf_write_uploaded_tsv): Likewise.
428 (ctf_write_definition_end): Likewise.
429 (ctf_open_dir): Likewise.
430 (ctf_xfer_partial): Likewise.
431 (ctf_trace_find): Likewise.
432 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
433 Likewise.
434 * dwarf2loc.c (allocate_piece_closure): Likewise.
435 (indirect_pieced_value): Likewise.
436 (dwarf2_evaluate_loc_desc_full): Likewise.
437 * dwarf2read.c (dw2_expand_marked_cus): Likewise.
438 (dw2_expand_symtabs_matching): Likewise.
439 (dw2_map_symbol_filenames): Likewise.
440 (read_and_check_comp_unit_head): Likewise.
441 (read_cutu_die_from_dwo): Likewise.
442 (lookup_dwo_unit): Likewise.
443 (read_comp_units_from_section): Likewise.
444 (dwarf2_compute_name): Likewise.
445 (handle_DW_AT_stmt_list): Likewise.
446 (create_cus_hash_table): Likewise.
447 (create_dwp_v2_section): Likewise.
448 (dwarf2_rnglists_process): Likewise.
449 (dwarf2_ranges_process): Likewise.
450 (dwarf2_record_block_ranges): Likewise.
451 (is_vtable_name): Likewise.
452 (read_formatted_entries): Likewise.
453 (skip_form_bytes): Likewise.
454 * elfread.c (elf_symtab_read): Likewise.
455 * exec.c (exec_file_command): Likewise.
456 * f-valprint.c (f_val_print): Likewise.
457 (info_common_command_for_block): Likewise.
458 * guile/guile.c (initialize_scheme_side): Likewise.
459 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Likewise.
460 * guile/scm-cmd.c (cmdscm_completer): Likewise.
461 (gdbscm_register_command_x): Likewise.
462 * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
463 * guile/scm-param.c (gdbscm_parameter_value): Likewise.
464 * guile/scm-ports.c (file_port_magic): Likewise.
465 * guile/scm-pretty-print.c (ppscm_search_pp_list): Likewise.
466 (ppscm_pretty_print_one_value): Likewise.
467 (ppscm_print_children): Likewise.
468 * guile/scm-string.c (gdbscm_string_to_argv): Likewise.
469 * guile/scm-symtab.c (gdbscm_sal_symtab): Likewise.
470 * guile/scm-type.c (gdbscm_type_next_field_x): Likewise.
471 * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
472 * i386-tdep.c (i386_register_reggroup_p): Likewise.
473 * infcmd.c (run_command_1): Likewise.
474 (until_next_fsm_clean_up): Likewise.
475 * linespec.c (linespec_complete): Likewise.
476 (find_label_symbols): Likewise.
477 * m2-valprint.c (m2_val_print): Likewise.
478 * memattr.c (require_user_regions): Likewise.
479 (lookup_mem_region): Likewise.
480 (disable_mem_command): Likewise.
481 (mem_delete): Likewise.
482 * mep-tdep.c (mep_register_name): Likewise.
483 (mep_analyze_prologue): Likewise.
484 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Likewise.
485 * mi/mi-interp.c (mi_on_sync_execution_done): Likewise.
486 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
487 * microblaze-linux-tdep.c (microblaze_linux_init_abi): Likewise.
488 * minidebug.c (lzma_open): Likewise.
489 * minsyms.c (lookup_minimal_symbol): Likewise.
490 * mips-linux-tdep.c (mips64_fill_fpregset): Likewise.
491 * mips-tdep.c (mips_stub_frame_sniffer): Likewise.
492 (mips_o64_return_value): Likewise.
493 (mips_single_step_through_delay): Likewise.
494 (_initialize_mips_tdep): Likewise.
495 * nios2-tdep.c (nios2_push_dummy_call): Likewise.
496 (nios2_software_single_step): Likewise.
497 * parse.c (find_minsym_type_and_address): Likewise.
498 * psymtab.c (psym_relocate): Likewise.
499 * python/py-breakpoint.c (bppy_get_commands): Likewise.
500 (gdbpy_breakpoint_modified): Likewise.
501 * python/py-infevents.c (create_inferior_call_event_object):
502 Likewise.
503 * python/py-record-btrace.c (btpy_list_item): Likewise.
504 * python/py-type.c (typy_str): Likewise.
505 * python/py-value.c (valpy_call): Likewise.
506 * python/python.c (do_start_initialization): Likewise.
507 * record-btrace.c (record_btrace_insn_history_range): Likewise.
508 (record_btrace_call_history_range): Likewise.
509 (record_btrace_record_method): Likewise.
510 (record_btrace_xfer_partial): Likewise.
511 (btrace_get_frame_function): Likewise.
512 * record-full.c (record_full_open): Likewise.
513 * record.c (get_context_size): Likewise.
514 * registry.h (DEFINE_REGISTRY): Likewise.
515 * remote-fileio.c (remote_fileio_request): Likewise.
516 * remote.c (remote_update_thread_list): Likewise.
517 (remote_check_symbols): Likewise.
518 (remote_commit_resume): Likewise.
519 (remote_interrupt): Likewise.
520 (remote_insert_breakpoint): Likewise.
521 (compare_sections_command): Likewise.
522 * rust-exp.y (super_name): Likewise.
523 (lex_string): Likewise.
524 (convert_ast_to_type): Likewise.
525 (convert_ast_to_expression): Likewise.
526 * rust-lang.c (rust_print_struct_def): Likewise.
527 (rust_print_type): Likewise.
528 (rust_evaluate_subexp): Likewise.
529 * rx-tdep.c (rx_register_type): Likewise.
530 * ser-event.c (serial_event_clear): Likewise.
531 * serial.c (serial_open): Likewise.
532 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
533 * symfile.c (section_is_overlay): Likewise.
534 (overlay_unmapped_address): Likewise.
535 (overlay_mapped_address): Likewise.
536 (simple_overlay_update_1): Likewise.
537 (simple_overlay_update): Likewise.
538 * symtab.c (symbol_find_demangled_name): Likewise.
539 (search_symbols): Likewise.
540 * target-descriptions.c (tdesc_predefined_type): Likewise.
541 * target.c (target_commit_resume): Likewise.
542 * thread.c (print_selected_thread_frame): Likewise.
543 * top.c (new_ui_command): Likewise.
544 (gdb_readline_no_editing): Likewise.
545 * tracefile-tfile.c (tfile_open): Likewise.
546 * tracepoint.c (create_tsv_from_upload): Likewise.
547 * utils.c (quit): Likewise.
548 (defaulted_query): Likewise.
549 * valarith.c (value_concat): Likewise.
550 * xml-syscall.c (xml_list_syscalls_by_group): Likewise.
551 * xml-tdesc.c (target_fetch_description_xml): Likewise.
552 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
553 (xtensa_pseudo_register_write): Likewise.
554
555 2017-12-04 Tom Tromey <tom@tromey.com>
556
557 * NEWS: Mention Rust trait object inspection.
558
559 2017-12-04 Pedro Alves <palves@redhat.com>
560
561 PR gdb/22499
562 * amd64-tdep.c (amd64_insn::rex_offset): Rename to...
563 (amd64_insn::enc_prefix_offset): ... this, and tweak comment.
564 (vex2_prefix_p, vex3_prefix_p): New functions.
565 (amd64_get_insn_details): Adjust to rename. Also skip VEX2 and
566 VEX3 prefixes.
567 (fixup_riprel): Set VEX3.!B.
568
569 2017-12-03 Simon Marchi <simon.marchi@ericsson.com>
570
571 * target.h (mem_region_vector): Remove.
572 (struct target_ops) <to_memory_map>: Change return type to
573 std::vector<mem_region>.
574 * target-debug.h (target_debug_print_mem_region_vector): Rename
575 to ...
576 (target_debug_print_std_vector_mem_region): ... this.
577 * target-delegates.c: Re-generate.
578
579 2017-12-03 Pedro Alves <palves@redhat.com>
580
581 * make-target-delegates (munge_type): Also munge '<', '>', and
582 ':'. Avoid double underscores in identifiers, and trailing
583 underscores.
584 * target-debug.h
585 (target_debug_print_VEC_static_tracepoint_marker_p__p): Rename to
586 ...
587 (target_debug_print_VEC_static_tracepoint_marker_p_p): ... this.
588 * target-delegates.c: Regenerate.
589
590 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
591
592 * common/poison.h (XDELETE): Fix typo.
593
594 2017-12-01 Andrew Cagney <cagney@redhat.com>
595 Joel Brobecker <brobecker@adacore.com>
596 Sergio Durigan Junior <sergiodj@redhat.com>
597
598 * NEWS (Changes since GDB 8.0: Mention new '--readnever'
599 feature.
600 * coffread.c (coff_symfile_read): Do not map over sections with
601 'coff_locate_sections' if readnever is on.
602 * dwarf2read.c (dwarf2_has_info): Return 0 if
603 readnever is on.
604 * elfread.c (elf_symfile_read): Do not map over sections with
605 'elf_locate_sections' if readnever is on.
606 * main.c (validate_readnow_readnever): New function.
607 (captured_main_1): Add support for --readnever.
608 (print_gdb_help): Document --readnever.
609 * objfile-flags.h (enum objfile_flag) <OBJF_READNEVER>: New
610 flag.
611 * symfile.c (readnever_symbol_files): New global.
612 (symbol_file_add_with_addrs): Set 'OBJF_READNEVER' when
613 'READNEVER_SYMBOL_FILES' is set.
614 (validate_readnow_readnever): New function.
615 (symbol_file_command): Handle '-readnever' option.
616 Call 'validate_readnow_readnever'.
617 (add_symbol_file_command): Handle '-readnever' option.
618 Call 'validate_readnow_readnever'.
619 (_initialize_symfile): Document new '-readnever' option for
620 both 'symbol-file' and 'add-symbol-file' commands.
621 * top.h (readnever_symbol_files): New extern global.
622 * xcoffread.c (xcoff_initial_scan): Do not read debug
623 information if readnever is on.
624
625 2017-12-01 Sergio Durigan Junior <sergiodj@redhat.com>
626
627 * symfile.c (symbol_file_command): Call
628 'symbol_file_add_main_1' only after processing all command
629 line options.
630 (add_symbol_file_command): Modify logic to make arguments
631 position-independent.
632
633 2017-12-01 Joel Brobecker <brobecker@adacore.com>
634
635 * ada-lang.c (symbol_list_obstack): Delete.
636 (resolve_subexp): Make sure "candidates" gets xfree'ed.
637 (ada_lookup_symbol_list_worker): Remove the limitation that
638 the result is only good until the next call, now making it
639 the responsibility of the caller to free the result when no
640 longer needed. Adjust the function's intro comment accordingly.
641 (ada_lookup_symbol_list): Adjust the function's intro comment.
642 (ada_iterate_over_symbols): Make sure "results" gets xfree'ed.
643 (ada_lookup_encoded_symbol, get_var_value): Likewise.
644 (_initialize_ada_language): Remove symbol_list_obstack
645 initialization.
646 * ada-exp.y (block_lookup): Make sure "syms" gets xfree'ed.
647 (write_var_or_type, write_name_assoc): Likewise.
648
649 2017-12-01 Tom Tromey <tom@tromey.com>
650
651 * Makefile.in (all_deps_files): New variable.
652 Include .Po files using all_deps_files.
653
654 2017-12-01 Joel Brobecker <brobecker@adacore.com>
655
656 * MAINTAINERS: Update list of maintainers, moving those who
657 stepped down or became inactive to the "Past Maintainers"
658 section.
659
660 2017-11-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
661
662 * configure.ac Don't check for sys/fault.h, sys/syscall.h,
663 sys/proc.h.
664 (NEW_PROC_API): Remove.
665 (prsysent_t, pr_sigset_t, pr_sigaction64_t, pr_siginfo64_t):
666 Likewise.
667 * common/common.m4 (GDB_AC_COMMON): Don't check for sys/syscall.h.
668 * configure: Regenerate.
669 * config.in: Regenerate.
670 * gdbserver/configure: Regenerate.
671 * gdbserver/config.in: Regenerate.
672
673 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Remove
674 NEW_PROC_API test.
675 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Likewise.
676
677 * linux-btrace.c: Remove HAVE_SYS_SYSCALL_H test.
678
679 * proc-api.c: Remove !NEW_PROC_API support.
680 Remove HAVE_SYS_PROC_H and HAVE_SYS_USER_H tests.
681 Remove tests for macros always defined on Solaris.
682 * proc-events.c: Remove !NEW_PROC_API support.
683 Remove Remove HAVE_SYS_SYSCALL_H, HAVE_SYS_PROC_H and
684 HAVE_SYS_USER_H tests.
685 (init_syscall_table): Remove non-Solaris syscalls.
686 Remove tests for syscalls present on all Solaris versions.
687 Add missing Solaris 10+ syscalls.
688 (signal_table): Remove non-Solaris signals.
689 Remove tests for signals present on all Solaris versions.
690 (fault_table): Remove non-Solaris faults.
691 Remove tests for faults present on all Solaris versions.
692 * proc-flags.c: Remove !NEW_PROC_API support.
693 (pr_flag_table): Remove non-Solaris and pre-Solaris 7 comments.
694 Remove non-Solaris flags.
695 * proc-why.c: Remove !NEW_PROC_API support.
696 (pr_why_table): Remove meaningless comments.
697 Remove tests for reasons present on all Solaris versions.
698 Remove OSF/1 cases.
699 (proc_prettyfprint_why): Likewise.
700
701 * procfs.c: Remove !NEW_PROC_API and DYNAMIC_SYSCALLS support.
702 Remove HAVE_SYS_FAULT_H and HAVE_SYS_SYSCALL_H tests.
703 Remove WA_READ test, IRIX watchpoint support.
704 (gdb_sigset_t, gdb_sigaction_t, gdb_siginfo_t): Replace by base
705 types. Change users.
706 (gdb_praddset, gdb_prdelset, gdb_premptysysset, gdb_praddsysset)
707 (gdb_prdelset, gdb_pr_issyssetmember): Replace by base macros.
708 Change callers.
709 Remove CTL_PROC_NAME_FMT tests.
710 (gdb_prstatus_t, gdb_lwpstatus_t): Replace by base types. Change
711 users.
712 (sysset_t_size): Remove. Use sizeof (sysset_t) in callers.
713 Remove PROCFS_DONT_PIOCSSIG_CURSIG support.
714 (proc_modify_flag): Replace GDBRESET by PCUNSET.
715 Remove PR_ASYNC, PR_KLC tests.
716 (proc_unset_inherit_on_fork): Remove PR_ASYNC test.
717 (proc_parent_pid): Remove PCWATCH etc. tests.
718 (proc_set_watchpoint): Remove !PCWATCH && !PIOCSWATCH support.
719 Remove PCAGENT test.
720 (proc_get_nthreads) [PIOCNTHR && PIOCTLIST]: Remove.
721 Remove SYS_lwpcreate || SYS_lwp_create test.
722 (proc_get_current_thread): Likewise.
723 [PIOCNTHR && PIOCTLIST]: Remove.
724 [PIOCLSTATUS]: Remove.
725 (procfs_debug_inferior): Remove non-Solaris cases, conditionals.
726 [PRFS_STOPEXEC]: Remove.
727 (syscall_is_lwp_exit): Remove non-Solaris cases, conditionals.
728 (syscall_is_exit): Likewise.
729 (syscall_is_exec): Likewise.
730 (syscall_is_lwp_create): Likewise.
731 Remove SYS_syssgi support.
732 (procfs_wait): Remove PR_ASYNC, !PIOCSSPCACT tests.
733 [SYS_syssgi]: Remove.
734 Remove non-Solaris cases, conditionals.
735 (unconditionally_kill_inferior) [PROCFS_NEED_PIOCSSIG_FOR_KILL]:
736 Remove.
737 (procfs_init_inferior) [SYS_syssgi]: Remove.
738 (procfs_set_exec_trap) [PRFS_STOPEXEC]: Remove.
739 (procfs_inferior_created) [SYS_syssgi]: Remove.
740 (procfs_set_watchpoint): Remove !AIX5 test.
741 (procfs_stopped_by_watchpoint): Remove FLTWATCH test, FLTKWATCH
742 case.
743 (mappingflags) [MA_PHYS]: Remove.
744 (info_mappings_callback): Remove PCAGENT test.
745 Remove PIOCOPENLWP || PCAGENT test.
746
747 2017-11-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
748
749 * sol-thread.c (info_solthreads): Constify args.
750 Cast args to void *.
751
752 2017-11-29 John Baldwin <jhb@FreeBSD.org>
753
754 * target-float.c [HAVE_LIBMPFR]: Define MPFR_USE_INTMAX_T.
755
756 2017-11-29 Joel Brobecker <brobecker@adacore.com>
757
758 * ada-lang.c (to_fixed_range_type): Make sure that the size
759 of the range type being returned is the same as the size
760 of the range type being fixed.
761
762 2017-11-29 Pedro Alves <palves@redhat.com>
763
764 PR c++/19436
765 * NEWS: Mention setting breakpoints on functions with C++ ABI
766 tags.
767 * completer.h (completion_match_for_lcd) <match,
768 mark_ignored_range>: New methods.
769 <finish>: Consider ignored ranges.
770 <clear>: Clear ignored ranges.
771 <m_ignored_ranges, m_finished_storage>: New fields.
772 * cp-support.c (cp_search_name_hash): Ignore ABI tags.
773 (cp_symbol_name_matches_1, cp_fq_symbol_name_matches): Pass the
774 completion_match_for_lcd pointer to strncmp_iw_with_mode.
775 (test_cp_symbol_name_cmp): Add [abi:...] tags unit tests.
776 * language.c (default_symbol_name_matcher): Pass the
777 completion_match_for_lcd pointer to strncmp_iw_with_mode.
778 * linespec.c (linespec_lexer_lex_string): Don't tokenize ABI tags.
779 * utils.c (skip_abi_tag): New function.
780 (strncmp_iw_with_mode): Add completion_match_for_lcd parameter.
781 Handle ABI tags.
782 * utils.h (strncmp_iw_with_mode): Add completion_match_for_lcd
783 parameter.
784
785 2017-11-29 Pedro Alves <palves@redhat.com>
786
787 PR c++/19436
788 * NEWS: Mention setting breakpoints on functions with C++ ABI
789 tags.
790 * completer.h (completion_match_for_lcd) <match,
791 mark_ignored_range>: New methods.
792 <finish>: Consider ignored ranges.
793 <clear>: Clear ignored ranges.
794 <m_ignored_ranges, m_finished_storage>: New fields.
795 * cp-support.c (cp_search_name_hash): Ignore ABI tags.
796 (cp_symbol_name_matches_1, cp_fq_symbol_name_matches): Pass the
797 completion_match_for_lcd pointer to strncmp_iw_with_mode.
798 (test_cp_symbol_name_cmp): Add [abi:...] tags unit tests.
799 * language.c (default_symbol_name_matcher): Pass the
800 completion_match_for_lcd pointer to strncmp_iw_with_mode.
801 * linespec.c (linespec_lexer_lex_string): Don't tokenize ABI tags.
802 * utils.c (skip_abi_tag): New function.
803 (strncmp_iw_with_mode): Add completion_match_for_lcd parameter.
804 Handle ABI tags.
805 * utils.h (strncmp_iw_with_mode): Add completion_match_for_lcd
806 parameter.
807
808 2017-11-29 Pedro Alves <palves@redhat.com>
809
810 * NEWS: Mention that breakpoints on C++ functions are now set on
811 on all namespaces/classes by default, and mention "break
812 -qualified".
813 * ax-gdb.c (agent_command_1): Adjust to pass a
814 symbol_name_match_type to new_linespec_location.
815 * breakpoint.c (parse_breakpoint_sals): Adjust to
816 get_linespec_location's return type change.
817 (strace_marker_create_sals_from_location): Adjust to pass a
818 symbol_name_match_type to new_linespec_location.
819 (strace_marker_decode_location): Adjust to get_linespec_location's
820 return type change.
821 (strace_command): Adjust to pass a symbol_name_match_type to
822 new_linespec_location.
823 (LOCATION_HELP_STRING): Add paragraph about wildmatching, and
824 mention "-qualified".
825 * c-lang.c (cplus_language_defn): Install cp_search_name_hash.
826 * completer.c (explicit_location_match_type::MATCH_QUALIFIED): New
827 enumerator.
828 (complete_address_and_linespec_locations): New parameter
829 'match_type'. Pass it down.
830 (explicit_options): Add "-qualified".
831 (collect_explicit_location_matches): Pass the requested match type
832 to the linespec completers. Handle MATCH_QUALIFIED.
833 (location_completer): Handle "-qualified" combined with linespecs.
834 * cp-support.c (cp_search_name_hash): New.
835 (cp_symbol_name_matches_1): Implement wild matching for C++.
836 (cp_fq_symbol_name_matches): Reimplement.
837 (cp_get_symbol_name_matcher): Return different matchers depending
838 on the lookup name's match type.
839 (selftests::test_cp_symbol_name_matches): Add wild matching tests.
840 * cp-support.h (cp_search_name_hash): New declaration.
841 * dwarf2read.c
842 (selftests::dw2_expand_symtabs_matching::test_symbols): Add
843 symbols.
844 (test_dw2_expand_symtabs_matching_symbol): Add wild matching
845 tests.
846 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Adjust to
847 pass a symbol_name_match_type to new_linespec_location.
848 * linespec.c (linespec_parse_basic): Lookup function symbols using
849 the parser's symbol name match type.
850 (convert_explicit_location_to_linespec): New
851 symbol_name_match_type parameter. Pass it down to
852 find_linespec_symbols.
853 (convert_explicit_location_to_sals): Pass the location's name
854 match type to convert_explicit_location_to_linespec.
855 (parse_linespec): New match_type parameter. Save it in the
856 parser.
857 (linespec_parser_new): Default to symbol_name_match_type::WILD.
858 (linespec_complete_function): New symbol_name_match_type
859 parameter. Use it.
860 (complete_linespec_component): Pass down the parser's recorded
861 name match type.
862 (linespec_complete_label): New symbol_name_match_type parameter.
863 Use it.
864 (linespec_complete): New symbol_name_match_type parameter. Save
865 it in the parser and pass it down. Adjust to
866 get_linespec_location's prototype change.
867 (find_function_symbols, find_linespec_symbols): New
868 symbol_name_match_type parameter. Pass it down instead of
869 assuming symbol_name_match_type::WILD.
870 * linespec.h (linespec_complete, linespec_complete_function)
871 (linespec_complete_label): New symbol_name_match_type parameter.
872 * location.c (event_location::linespec_location): Now a struct
873 linespec_location.
874 (EL_LINESPEC): Adjust.
875 (initialize_explicit_location): Default to
876 symbol_name_match_type::WILD.
877 (new_linespec_location): New symbol_name_match_type parameter.
878 Record it in the location.
879 (get_linespec_location): Now returns a struct linespec_location.
880 (new_explicit_location): Also copy func_name_match_type.
881 (explicit_to_string_internal)
882 (string_to_explicit_location): Handle "-qualified".
883 (copy_event_location): Adjust to LINESPEC_LOCATION type change.
884 Copy symbol_name_match_type fields.
885 (event_location_deleter::operator()): Adjust to LINESPEC_LOCATION
886 type change.
887 (event_location_to_string): Adjust to LINESPEC_LOCATION type
888 change. Handle "-qualfied".
889 (string_to_explicit_location): Handle "-qualified".
890 (string_to_event_location_basic): New symbol_name_match_type
891 parameter. Pass it down.
892 (string_to_event_location): Handle "-qualified".
893 * location.h (struct linespec_location): New.
894 (explicit_location::func_name_match_type): New field.
895 (new_linespec_location): Now returns a const linespec_location *.
896 (string_to_event_location_basic): New symbol_name_match_type
897 parameter.
898 (explicit_completion_info::saw_explicit_location_option): New
899 field.
900 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Adjust to pass a
901 symbol_name_match_type to new_linespec_location.
902 * python/py-breakpoint.c (bppy_init): Likewise.
903 * python/python.c (gdbpy_decode_line): Likewise.
904
905 2017-11-29 Pedro Alves <palves@redhat.com>
906
907 * ada-lang.c (ada_lookup_name_info::matches): Change type of
908 parameter from completion_match to completion_match_result.
909 Adjust.
910 (do_wild_match, do_full_match, ada_symbol_name_matches): Likewise.
911 * completer.c (completion_tracker::maybe_add_completion): Add
912 match_for_lcd parameter and use it.
913 (completion_tracker::add_completion): Likewise.
914 * completer.h (class completion_match_for_lcd): New class.
915 (completion_match_result::match_for_lcd): New field.
916 (completion_match_result::set_match): New method.
917 (completion_tracker): Add comments.
918 (completion_tracker::add_completion): Add match_for_lcd parameter.
919 (completion_tracker::reset_completion_match_result): Reset
920 match_for_lcd too.
921 (completion_tracker::maybe_add_completion): Add match_for_lcd
922 parameter.
923 (completion_tracker::m_lowest_common_denominator_unique): Extend
924 comments.
925 * cp-support.c (cp_symbol_name_matches_1)
926 (cp_fq_symbol_name_matches): Change type of parameter from
927 completion_match to completion_match_result. Adjust.
928 * language.c (default_symbol_name_matcher): Change type of
929 parameter from completion_match to completion_match_result.
930 Adjust.
931 * language.h (completion_match_for_lcd): Forward declare.
932 (default_symbol_name_matcher): Change type of parameter from
933 completion_match to completion_match_result.
934 * symtab.c (compare_symbol_name): Adjust.
935 (completion_list_add_name): Pass the match_for_lcd to the tracker.
936 * symtab.h (ada_lookup_name_info::matches): Change type of
937 parameter from completion_match to completion_match_result.
938 (symbol_name_matcher_ftype): Likewise, and update comments.
939
940 2017-11-29 Pedro Alves <palves@redhat.com>
941
942 * linespec.c (minsym_found, add_minsym): Use msymbol_is_function.
943 * minsyms.c (msymbol_is_text): Delete.
944 (msymbol_is_function): New function.
945 * minsyms.h (msymbol_is_text): Delete.
946 (msymbol_is_function): New declaration.
947 * symtab.c (find_function_alias_target): Use msymbol_is_function.
948
949 2017-11-29 Tom Tromey <tom@tromey.com>
950
951 * Makefile.in (distclean): Handle the case where rmdir fails.
952
953 2017-11-29 Tom Tromey <tom@tromey.com>
954
955 * symfile.c (_initialize_symfile): Update usage text for
956 add-symbol-file, symbol-file, load.
957
958 2017-11-29 Tom Tromey <tom@tromey.com>
959
960 * symfile.c (add_symbol_file_command): Error if some arguments to
961 -s are missing. Change unrecognized-argument error message.
962 (_initialize_symfile): Fix usage text for add-symbol-file.
963
964 2017-11-27 Tom Tromey <tom@tromey.com>
965
966 * Makefile.in (REMOTE_OBS): Remove.
967 (SFILES): Remove remote sources.
968 (COMMON_SFILES): Add remote sources.
969 (ALLDEPFILES): Remove dcache.c.
970
971 2017-11-27 Tom Tromey <tom@tromey.com>
972
973 * Makefile.in (SUBDIR_TARGET_SRCS, SUBDIR_TARGET_OBS): New
974 variables.
975 (SFILES): Use SUBDIR_TARGET_SRCS.
976 (COMMON_OBS): Use SUBDIR_TARGET_OBS. Remove waitstatus.o.
977 (CONFIG_SRC_SUBDIR): Add target.
978 (%.o): Remove target rule.
979
980 2017-11-27 Tom Tromey <tom@tromey.com>
981
982 * Makefile.in (COMMON_OBS): Remove filename-seen-cache.o,
983 registry.o, thread-fsm.o, debug.o.
984 (COMMON_SFILES): Add filename-seen-cache.c, registry.c,
985 thread-fsm.c, debug.c.
986
987 2017-11-27 Tom Tromey <tom@tromey.com>
988
989 * Makefile.in (COMMON_SFILES): New.
990 (SFILES): Move some entries to COMMON_SFILES.
991 (COMMON_OBS): Use COMMON_SFILES.
992
993 2017-11-27 Tom Tromey <tom@tromey.com>
994
995 * Makefile.in (YYFILES): Update comment.
996 (YYOBJ): Redefine.
997
998 2017-11-27 Tom Tromey <tom@tromey.com>
999
1000 * Makefile.in (SUBDIR_PYTHON_OBS): Redefine.
1001 (CONFIG_SRC_SUBDIR): Add python.
1002 (%.o): Remove python rule.
1003 (python/%.o): New rule.
1004 * configure: Rebuild.
1005 * configure.ac (CONFIG_OBS): Refer to python/python.o
1006
1007 2017-11-27 Tom Tromey <tom@tromey.com>
1008
1009 * configure: Rebuild.
1010 * configure.ac (CONFIG_OBS): Refer to guile/guile.o.
1011 * Makefile.in (SUBDIR_GUILE_OBS): Redefine.
1012 (CONFIG_SRC_SUBDIR): Add guile.
1013 (%.o): Remove guile rule.
1014
1015 2017-11-27 Tom Tromey <tom@tromey.com>
1016
1017 * Makefile.in (SUBDIR_UNITTESTS_OBS): Redefine.
1018 (%.o): Remove unittests rule.
1019 (CONFIG_SRC_SUBDIR): Add unittests.
1020
1021 2017-11-27 Tom Tromey <tom@tromey.com>
1022
1023 * Makefile.in (SUBDIR_TUI_OBS): Redefine.
1024 (CONFIG_SRC_SUBDIR): Add tui.
1025 (%.o): Remove tui rule.
1026
1027 2017-11-27 Tom Tromey <tom@tromey.com>
1028
1029 * Makefile.in (SUBDIR_GCC_COMPILE_OBS): Redefine.
1030 (%.o): Remove compile rule.
1031 (CONFIG_SRC_SUBDIR): Add compile.
1032
1033 2017-11-27 Tom Tromey <tom@tromey.com>
1034
1035 * Makefile.in (SUBDIR_MI_OBS): Redefine.
1036 (%.o): Remove mi rule.
1037 (CONFIG_SRC_SUBDIR): Add mi.
1038 (COMMON_OBS): Use mi/mi-common.o
1039
1040 2017-11-27 Tom Tromey <tom@tromey.com>
1041
1042 * Makefile.in (SUBDIR_CLI_OBS): Redefine.
1043 (%.o): Remove cli rule.
1044 (CONFIG_SRC_SUBDIR): Add cli.
1045
1046 2017-11-27 Tom Tromey <tom@tromey.com>
1047
1048 * configure.ac (CONFIG_SRC_SUBDIR): Don't subst.
1049 * configure: Rebuild.
1050 * Makefile.in (CONFIG_SRC_SUBDIR): Redefine.
1051 (CONFIG_DEP_SUBDIR): New variable.
1052 (%.o): Add order-only dependency.
1053 ($(CONFIG_DEP_SUBDIR)): New target.
1054
1055 2017-11-26 Dominik Czarnota <dominik.b.czarnota@gmail.com>
1056
1057 PR gdb/21945
1058 * findcmd.c (_initialize_mem_search): Update find command help
1059 text.
1060
1061 2017-11-26 Simon Marchi <simon.marchi@polymtl.ca>
1062
1063 * python/python.c (do_start_initialization): Change progname
1064 type to gdb::unique_xmalloc_ptr. Release the pointer when using
1065 Python 2.
1066
1067 2017-11-26 Tom Tromey <tom@tromey.com>
1068
1069 * common/format.h: Add include guards.
1070
1071 2017-11-26 Tom Tromey <tom@tromey.com>
1072
1073 * nat/linux-personality.h (class
1074 maybe_disable_address_space_randomization): New class.
1075 (maybe_disable_address_space_randomization): Don't declare
1076 function.
1077 * nat/linux-personality.c (restore_personality)
1078 (make_disable_asr_cleanup): Remove.
1079 (maybe_disable_address_space_randomization): Now a constructor.
1080 (~maybe_disable_address_space_randomization): New destructor.
1081 * linux-nat.c (linux_nat_create_inferior): Update.
1082
1083 2017-11-26 Tom Tromey <tom@tromey.com>
1084
1085 * gcore.c (write_gcore_file_1): Use gdb::unique_xmalloc_ptr.
1086
1087 2017-11-26 Ulrich Weigand <uweigand@de.ibm.com>
1088
1089 * spu-tdep.c (spu_software_single_step): Access SPU_LSLR_REGNUM as
1090 "cooked" register. Access only first four bytes of branch target
1091 registers.
1092
1093 2017-11-25 Sergio Durigan Junior <sergiodj@redhat.com>
1094
1095 PR gdb/22491
1096 * stap-probe.c (relocate_address): New function.
1097 (stap_probe::get_relocated_address): Use 'relocate_address'.
1098 (stap_probe::set_semaphore): Use 'relocate_address' and pass
1099 'm_sem_addr'.
1100 (stap_probe::clear_semaphore): Likewise.
1101
1102 2017-11-25 Pedro Alves <palves@redhat.com>
1103
1104 * dictionary.c: Include "safe-ctype.h".
1105 * minsyms.c: Include "safe-ctype.h".
1106 * minsyms.c (SYMBOL_HASH_NEXT): Use TOLOWER instead of tolower.
1107
1108 2017-11-25 Pedro Alves <palves@redhat.com>
1109
1110 * completer.c (complete_line_internal_1): Skip spaces until the
1111 start of the command.
1112
1113 2017-11-24 Pedro Alves <palves@redhat.com>
1114
1115 * cp-support.c (cp_symbol_name_matches_1): New, factored out from
1116 cp_fq_symbol_name_matches. Pass language_cplus to
1117 strncmp_with_mode.
1118 (cp_fq_symbol_name_matches): Call cp_symbol_name_matches_1.
1119 (selftests::test_cp_symbol_name_cmp): New.
1120 (_initialize_cp_support): Register "cp_symbol_name_matches"
1121 selftests.
1122 * language.c (default_symbol_name_matcher): Pass language_minimal
1123 to strncmp_iw_with_mode.
1124 * utils.c: Include "cp-support.h" and <algorithm>.
1125 (valid_identifier_name_char, cp_skip_operator_token, skip_ws)
1126 (cp_is_operator): New functions.
1127 (strncmp_iw_with_mode): Use them. Add language parameter. Don't
1128 skip whitespace in the symbol name when the lookup name doesn't
1129 have spaces, and vice versa.
1130 (strncmp_iw, strcmp_iw): Pass language to strncmp_iw_with_mode.
1131 * utils.h (strncmp_iw_with_mode): Add language parameter.
1132
1133 2017-11-24 Joel Brobecker <brobecker@adacore.com>
1134
1135 * ada-lang.c (ada_exception_message_1, ada_exception_message):
1136 New functions.
1137 (print_it_exception): If available, display the exception
1138 message as well.
1139 * NEWS: Document new feature.
1140
1141 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
1142
1143 * configure.nat <spu-linux>: Add fork-inferior.o to NATDEPFILES.
1144
1145 2017-11-24 Philipp Rudo <prudo@linux.vnet.ibm.com>
1146
1147 * dtrace-probe.c (dtrace_probe::build_arg_exprs)
1148 (dtrace_probe::is_enabled, dtrace_probe::enable)
1149 (dtrace_probe::disable): Remove keyword 'struct' at for-range
1150 variable
1151 * probe.c (gen_ui_out_table_header_info)
1152 (print_ui_out_not_applicables): Remove keyword 'struct' at
1153 for-range variable
1154
1155 2017-11-24 Alan Hayward <alan.hayward@arm.com>
1156
1157 * configure.tgt: Add arch/aarch64.o
1158
1159 2017-11-24 Simon Marchi <simon.marchi@polymtl.ca>
1160
1161 * common/common-utils.h: Include poison.h.
1162 (xfree): Remove declaration, add definition with static_assert.
1163 * common/common-utils.c (xfree): Remove.
1164 * common/poison.h (IsMallocatable): Define.
1165 (IsFreeable): Define.
1166 (free): Delete for non-freeable types.
1167 (xnew): New.
1168 (XNEW): Undef and redefine.
1169 (xcnew): New.
1170 (XCNEW): Undef and redefine.
1171 (xdelete): New.
1172 (XDELETE): Undef and redefine.
1173 (xnewvec): New.
1174 (XNEWVEC): Undef and redefine.
1175 (xcnewvec): New.
1176 (XCNEWVEC): Undef and redefine.
1177 (xresizevec): New.
1178 (XRESIZEVEC): Undef and redefine.
1179 (xdeletevec): New.
1180 (XDELETEVEC): Undef and redefine.
1181 (xnewvar): New.
1182 (XNEWVAR): Undef and redefine.
1183 (xcnewvar): New.
1184 (XCNEWVAR): Undef and redefine.
1185 (xresizevar): New.
1186 (XRESIZEVAR): Undef and redefine.
1187
1188 2017-11-24 Simon Marchi <simon.marchi@polymtl.ca>
1189
1190 * gdbthread.h (private_thread_info): Define structure type, add
1191 virtual pure destructor.
1192 (thread_info) <priv>: Change type to unique_ptr.
1193 <private_dtor>: Remove.
1194 * thread.c (add_thread_with_info): Adjust to use of unique_ptr.
1195 (private_thread_info::~private_thread_info): Provide default
1196 implementation.
1197 (thread_info::~thread_info): Don't call private_dtor nor
1198 manually free priv.
1199 * aix-thread.c (private_thread_info): Rename to ...
1200 (aix_thread_info): ... this.
1201 (get_aix_thread_info): New.
1202 (sync_threadlists): Adjust.
1203 (iter_tid): Adjust.
1204 (aix_thread_resume): Adjust.
1205 (aix_thread_fetch_registers): Adjust.
1206 (aix_thread_store_registers): Adjust.
1207 (aix_thread_extra_thread_info): Adjust.
1208 * darwin-nat.h (private_thread_info): Rename to ...
1209 (darwin_thread_info): ... this.
1210 (get_darwin_thread_info): New.
1211 * darwin-nat.c (darwin_init_thread_list): Adjust.
1212 (darwin_check_new_threads): Adjust.
1213 (thread_info_from_private_thread_info): Adjust.
1214 * linux-thread-db.c (private_thread_info): Rename to ...
1215 (thread_db_thread_info): ... this, initialize fields.
1216 (get_thread_db_thread_info): New.
1217 <dying>: Change type to bool.
1218 (update_thread_state): Adjust to type rename.
1219 (record_thread): Adjust to type rename an use of unique_ptr.
1220 (thread_db_pid_to_str): Likewise.
1221 (thread_db_extra_thread_info): Likewise.
1222 (thread_db_thread_handle_to_thread_info): Likewise.
1223 (thread_db_get_thread_local_address): Likewise.
1224 * nto-tdep.h (private_thread_info): Rename to ...
1225 (nto_thread_info): ... this, initialize fields.
1226 (get_nto_thread_info): New.
1227 <name>: Change type to std::string.
1228 * nto-tdep.c (nto_extra_thread_info): Adjust to type rename and
1229 use of unique_ptr.
1230 * nto-procfs.c (update_thread_private_data_name): Adjust to
1231 std::string change, allocate nto_private_thread_info with new.
1232 (update_thread_private_data): Adjust to unique_ptr.
1233 * remote.c (private_thread_info): Rename to ...
1234 (remote_thread_info): ... this, initialize data members with
1235 default values.
1236 <extra, name>: Change type to std::string.
1237 <thread_handle>: Change type to non-pointer.
1238 (free_private_thread_info): Remove.
1239 (get_private_info_thread): Rename to...
1240 (get_remote_thread_info): ... this, change return type, adjust to
1241 use of unique_ptr, use remote_thread_info constructor.
1242 (remote_add_thread): Adjust.
1243 (get_private_info_ptid): Rename to...
1244 (get_remote_thread_info): ...this, change return type.
1245 (remote_thread_name): Use get_remote_thread_info, adjust to
1246 change to std::string.
1247 (struct thread_item) <~thread_item>: Remove.
1248 <thread_handle>: Make non pointer.
1249 (start_thread): Adjust to thread_item::thread_handle type
1250 change.
1251 (remote_update_thread_list): Adjust to type name change, move
1252 strings from temporary to long-lived object instead of
1253 duplicating.
1254 (remote_threads_extra_info): Use get_remote_thread_info.
1255 (process_initial_stop_replies): Likewise.
1256 (resume_clear_thread_private_info): Likewise.
1257 (remote_resume): Adjust to type name change.
1258 (remote_commit_resume): Use get_remote_thread_info.
1259 (process_stop_reply): Adjust to type name change.
1260 (remote_stopped_by_sw_breakpoint): Use get_remote_thread_info.
1261 (remote_stopped_by_hw_breakpoint): Likewise.
1262 (remote_stopped_by_watchpoint): Likewise.
1263 (remote_stopped_data_address): Likewise.
1264 (remote_core_of_thread): Likewise.
1265 (remote_thread_handle_to_thread_info): Use
1266 get_private_info_thread, adjust to thread_handle field type
1267 change.
1268
1269 2017-11-24 Simon Marchi <simon.marchi@polymtl.ca>
1270
1271 * remote.c (struct thread_item): Add constructor, disable copy
1272 construction and copy assignment, define default move
1273 construction and move assignment.
1274 <extra, name>: Change type to std::string.
1275 <core>: Initialize.
1276 <thread_handle>: Make non-pointer.
1277 (thread_item_t): Remove typedef.
1278 (DEF_VEC_O(thread_item_t)): Remove.
1279 (threads_listing_context) <contains_thread>: New method.
1280 <remove_thread>: New method.
1281 <items>: Change type to std::vector.
1282 (clear_threads_listing_context): Remove.
1283 (threads_listing_context_remove): Remove.
1284 (remote_newthread_step): Use thread_item constructor, adjust to
1285 change to std::vector.
1286 (start_thread): Use thread_item constructor, adjust to change to
1287 std::vector.
1288 (end_thread): Adjust to change to std::vector and std::string.
1289 (remote_get_threads_with_qthreadinfo): Use thread_item
1290 constructor, adjust to std::vector.
1291 (remote_update_thread_list): Adjust to change to std::vector and
1292 std::string, use threads_listing_context methods.
1293 (remove_child_of_pending_fork): Adjust.
1294 (remove_new_fork_children): Adjust.
1295 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add rsp-low-selftests.c.
1296 (SUBDIR_UNITTESTS_OBS): Add rsp-low-selftests.o.
1297 * unittests/rsp-low-selftests.c: New file.
1298 * common/rsp-low.h: Include common/byte-vector.h.
1299 (hex2bin): New overload.
1300 * common/rsp-low.c (hex2bin): New overload.
1301
1302 2017-11-24 Simon Marchi <simon.marchi@ericsson.com>
1303
1304 * inferior.h (private_inferior): Define structure type, add
1305 virtual pure destructor.
1306 (inferior) <priv>: Change type to unique_ptr.
1307 * inferior.c (private_inferior::~private_inferior): Provide
1308 default implementation.
1309 (inferior::~inferior): Don't free priv field.
1310 (exit_inferior_1): Likewise.
1311 * darwin-nat.h (struct darwin_exception_info): Initialize fields.
1312 (darwin_exception_info): Remove typedef.
1313 (DEF_VEC_O (darwin_thread_t)); Remove.
1314 (private_inferior): Rename to ...
1315 (darwin_private_inferior): ... this, extend private_inferior.
1316 (get_darwin_inferior): New.
1317 <threads>: Change type to std::vector of darwin_thread_t pointers.
1318 * darwin-nat.c (darwin_check_new_threads): Adjust.
1319 (find_inferior_task_it): Adjust.
1320 (darwin_find_thread); Adjust.
1321 (darwin_suspend_inferior): Adjust.
1322 (darwin_resume_inferior): Adjust.
1323 (darwin_find_new_inferior): Adjust.
1324 (darwin_decode_notify_message): Adjust.
1325 (darwin_send_reply): Adjust.
1326 (darwin_resume_inferior_threads): Adjust.
1327 (darwin_suspend_inferior_threads): Adjust.
1328 (darwin_decode_message): Adjust.
1329 (darwin_wait): Adjust.
1330 (darwin_interrupt): Adjust.
1331 (darwin_deallocate_threads): Adjust.
1332 (darwin_mourn_inferior): Adjust, don't free private data.
1333 (darwin_reply_to_all_pending_messages): Adjust.
1334 (darwin_stop_inferior): Adjust.
1335 (darwin_setup_exceptions): Adjust.
1336 (darwin_kill_inferior): Adjust.
1337 (darwin_setup_request_notification): Adjust.
1338 (darwin_attach_pid): Adjust.
1339 (darwin_init_thread_list): Adjust.
1340 (darwin_setup_fake_stop_event): Adjust.
1341 (darwin_attach): Adjust.
1342 (darwin_detach): Adjust.
1343 (darwin_xfer_partial): Adjust.
1344 (set_enable_mach_exceptions): Adjust.
1345 (darwin_pid_to_exec_file): Adjust.
1346 (darwin_get_ada_task_ptid): Adjust.
1347 * darwin-nat-info.c (get_task_from_args): Adjust.
1348 (info_mach_ports_command): Adjust.
1349 (info_mach_region_command): Adjust.
1350 (info_mach_exceptions_command): Adjust.
1351 * remote.c (private_inferior): Rename to ...
1352 (remote_private_inferior): ... this, initialize fields.
1353 (get_remote_inferior); New.
1354 (remote_commit_resume): Use get_remote_inferior.
1355 (check_pending_event_prevents_wildcard_vcont_callback): Likewise.
1356
1357 2017-11-24 Pedro Alves <palves@redhat.com>
1358
1359 * NEWS: Mention linespecs and explicit locations, and completion
1360 improvements.
1361
1362 2017-11-24 Yao Qi <yao.qi@linaro.org>
1363
1364 * regcache.c (regcache::dump): Remove footnote_register_size.
1365
1366 2017-11-24 Yao Qi <yao.qi@linaro.org>
1367
1368 * regcache.c (cooked_read_test): Add more test for readonly
1369 regcache.
1370
1371 2017-11-24 Yao Qi <yao.qi@linaro.org>
1372
1373 * gdbarch-selftests.c (test_target_has_registers): Move it to
1374 target.c.
1375 (test_target_has_stack): Likewise.
1376 (test_target_has_memory): Likewise.
1377 (test_target_prepare_to_store): Likewise.
1378 (test_target_store_registers): Likewise.
1379 (test_target_ops): Likewise.
1380 * regcache.c: Include selftest-arch.h and gdbthread.h.
1381 (target_ops_no_register): New class.
1382 (test_target_fetch_registers): New.
1383 (test_target_store_registers): New.
1384 (test_target_xfer_partial): New.
1385 (readwrite_regcache): New.
1386 (cooked_read_test): New.
1387 (_initialize_regcache): Register the test.
1388 * target.c: (test_target_has_registers): Moved from
1389 gdbarch-selftests.c.
1390 (test_target_has_stack): Likewise.
1391 (test_target_has_memory): Likewise.
1392 (test_target_prepare_to_store): Likewise.
1393 (test_target_store_registers): Likewise.
1394 * target.h (test_target_ops): New class.
1395
1396 2017-11-24 Alan Hayward <alan.hayward@arm.com>
1397
1398 * aarch64-tdep.c (_initialize_aarch64_tdep): Add target desc
1399 selftest.
1400
1401 2017-11-24 Alan Hayward <alan.hayward@arm.com>
1402
1403 * aarch64-tdep.c (_initialize_aarch64_tdep): Remove init.
1404 * arch/aarch64.c (aarch64_create_target_description): Create
1405 new target description.
1406 * features/Makefile: Add new files.
1407 * features/aarch64.c: Remove file.
1408 * features/aarch64-core.c: New autogenerated file.
1409 * features/aarch64-fpu.c: New autogenerated file.
1410 * target-descriptions.c (maint_print_c_tdesc_cmd): Check for aarch64.
1411
1412 2017-11-24 Alan Hayward <alan.hayward@arm.com>
1413
1414 * Makefile.in: Add new files.
1415 * aarch64-linux-nat.c (aarch64_linux_read_description): Call
1416 aarch64_read_description.
1417 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
1418 Call aarch64_read_description.
1419 * aarch64-tdep.c (aarch64_read_description): New function.
1420 (aarch64_gdbarch_init): Call aarch64_read_description.
1421 * aarch64-tdep.h (aarch64_read_description): New function.
1422 * arch/aarch64.c: New file.
1423 * configure.tgt: Add new files.
1424
1425 2017-11-24 Yao Qi <yao.qi@linaro.org>
1426
1427 * mi/mi-main.c (register_changed_p): Update.
1428 * value.c (value_contents_bits_eq): Change return type.
1429 (value_contents_eq): Likewise.
1430 * value.h: Update comments.
1431
1432 2017-11-24 Yao Qi <yao.qi@linaro.org>
1433
1434 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Remove
1435 local 'changed'. Remove error.
1436 (register_changed_p): Change return type to bool.
1437
1438 2017-11-24 Yao Qi <yao.qi@linaro.org>
1439
1440 * arch/tic6x.c: New file.
1441 * arch/tic6x.h: New file.
1442 * features/Makefile (FEATURE_XMLFILES): Add tic6x-c6xp.xml,
1443 tic6x-core.xml and tic6x-gp.xml.
1444 * features/tic6x-c6xp.c: Generated.
1445 * features/tic6x-core.c: Generated.
1446 * features/tic6x-gp.c: Generated.
1447 * target-descriptions.c (maint_print_c_tdesc_cmd): Match
1448 "tic6x-".
1449
1450 2017-11-23 Simon Marchi <simon.marchi@ericsson.com>
1451
1452 * mi/mi-main.c (list_available_thread_groups): Change map value
1453 type to std::vector.
1454
1455 2017-11-23 Simon Marchi <simon.marchi@ericsson.com>
1456
1457 * osdata.c (osdata_end_column, get_osdata): Remove std::move.
1458
1459 2017-11-23 Simon Marchi <simon.marchi@ericsson.com>
1460
1461 * varobj.c (struct varobj_dynamic) <children_requested_>: Rename
1462 back to...
1463 <children_requested>: ... this.
1464 (varobj_get_num_children, varobj_update): Adjust.
1465
1466 2017-11-23 Simon Marchi <simon.marchi@ericsson.com>
1467
1468 * ada-varobj.c (ada_value_is_changeable_p): Change int to bool where applicable.
1469 (ada_value_has_mutated): Likewise.
1470 * c-varobj.c (varobj_is_anonymous_child): Likewise.
1471 (c_is_path_expr_parent): Likewise.
1472 * mi/mi-cmd-var.c (varobj_update_one): Likewise.
1473 (mi_cmd_var_set_frozen): Likewise.
1474 (mi_cmd_var_update_iter): Likewise.
1475 (mi_cmd_var_update): Likewise.
1476 * varobj.c (pretty_printing): Likewise.
1477 (varobj_enable_pretty_printing): Likewise.
1478 (struct varobj_root) <floating, is_valid>: Likewise.
1479 (struct varobj_dynamic) <children_requested>: Likewise.
1480 (delete_variable): Likewise.
1481 (delete_variable_1): Likewise.
1482 (install_variable): Likewise.
1483 (update_type_if_necessary): Likewise.
1484 (install_new_value): Likewise.
1485 (value_of_root): Likewise.
1486 (is_root_p): Likewise.
1487 (varobj_create): Likewise.
1488 (varobj_delete): Likewise.
1489 (varobj_has_more): Likewise.
1490 (varobj_set_frozen): Likewise.
1491 (varobj_get_frozen): Likewise.
1492 (install_dynamic_child): Likewise.
1493 (dynamic_varobj_has_child_method): Likewise.
1494 (update_dynamic_varobj_children): Likewise.
1495 (varobj_get_num_children): Likewise.
1496 (varobj_list_children): Likewise.
1497 (is_path_expr_parent): Likewise.
1498 (varobj_default_is_path_expr_parent): Likewise.
1499 (varobj_is_dynamic_p): Likewise.
1500 (varobj_set_value): Likewise.
1501 (varobj_value_has_mutated): Likewise.
1502 (varobj_update): Likewise.
1503 (check_scope): Likewise.
1504 (value_of_root_1): Likewise.
1505 (varobj_value_get_print_value): Likewise.
1506 (varobj_editable_p): Likewise.
1507 (varobj_value_is_changeable_p): Likewise.
1508 (varobj_floating_p): Likewise.
1509 (varobj_default_value_is_changeable_p): Likewise.
1510 (varobj_invalidate_iter): Likewise.
1511 * varobj.h (struct varobj_update_result) <type_changed,
1512 children_changed, changed, value_installed>: Likewise.
1513 (struct varobj) <updated, frozen, not_fetched>: Likewise.
1514 (struct lang_varobj_ops) <value_is_changeable_p,
1515 value_has_mutated, is_path_expr_parent>: Likewise.
1516 (varobj_delete): Likewise.
1517 (varobj_set_frozen): Likewise.
1518 (varobj_get_frozen): Likewise.
1519 (varobj_set_value): Likewise.
1520 (varobj_update): Likewise.
1521 (varobj_editable_p): Likewise.
1522 (varobj_floating_p): Likewise.
1523 (varobj_has_more): Likewise.
1524 (varobj_is_dynamic_p): Likewise.
1525 (varobj_default_value_is_changeable_p): Likewise.
1526 (varobj_value_is_changeable_p): Likewise.
1527 (varobj_is_anonymous_child): Likewise.
1528 (varobj_default_is_path_expr_parent): Likewise.
1529
1530 2017-11-22 Sergio Durigan Junior <sergiodj@redhat.com>
1531
1532 * dtrace-probe.c (struct probe_ops dtrace_probe_ops): Delete.
1533 (struct dtrace_probe_arg) <dtrace_probe_arg>: New constructor.
1534 <type_str>: Convert to 'std::string'.
1535 <expr>: Convert to 'expression_up'.
1536 (dtrace_probe_arg_s): Delete type and VEC.
1537 (dtrace_probe_enabler_s): Likewise.
1538 (struct dtrace_probe): Replace by...
1539 (class dtrace_static_probe_ops): ...this and...
1540 (class dtrace_probe): ...this.
1541 (dtrace_probe_is_linespec): Rename to...
1542 (dtrace_static_probe_ops::is_linespec): ...this. Adjust code
1543 to reflect change.
1544 (dtrace_process_dof_probe): Use 'std::vector' instead of VEC.
1545 Adjust code. Create new instance of 'dtrace_probe'.
1546 (dtrace_build_arg_exprs): Rename to...
1547 (dtrace_probe::build_arg_exprs): ...this. Adjust code to
1548 reflect change.
1549 (dtrace_get_probes): Rename to...
1550 (dtrace_static_probe_ops::get_probes): ...this. Adjust code
1551 to reflect change.
1552 (dtrace_get_arg): Rename to...
1553 (dtrace_probe::get_arg_by_number): ...this. Adjust code to
1554 reflect change.
1555 (dtrace_probe_is_enabled): Rename to...
1556 (dtrace_probe::is_enabled): ...this. Adjust code to reflect
1557 change.
1558 (dtrace_get_probe_address): Rename to...
1559 (dtrace_probe::get_relocated_address): ...this. Adjust code
1560 to reflect change.
1561 (dtrace_get_probe_argument_count): Rename to...
1562 (dtrace_probe::get_argument_count): ...this. Adjust code to
1563 reflect change.
1564 (dtrace_can_evaluate_probe_arguments): Rename to...
1565 (dtrace_probe::can_evaluate_arguments): ...this. Adjust code
1566 to reflect change.
1567 (dtrace_evaluate_probe_argument): Rename to...
1568 (dtrace_probe::evaluate_argument): ...this. Adjust code to
1569 reflect change.
1570 (dtrace_compile_to_ax): Rename to...
1571 (dtrace_probe::compile_to_ax): ...this. Adjust code to
1572 reflect change.
1573 (dtrace_probe_destroy): Delete.
1574 (dtrace_type_name): Rename to...
1575 (dtrace_static_probe_ops::type_name): ...this. Adjust code to
1576 reflect change.
1577 (dtrace_probe::get_static_ops): New method.
1578 (dtrace_gen_info_probes_table_header): Rename to...
1579 (dtrace_static_probe_ops::gen_info_probes_table_header):
1580 ...this. Adjust code to reflect change.
1581 (dtrace_gen_info_probes_table_values): Rename to...
1582 (dtrace_probe::gen_info_probes_table_values): ...this. Adjust
1583 code to reflect change.
1584 (dtrace_enable_probe): Rename to...
1585 (dtrace_probe::enable_probe): ...this. Adjust code to reflect
1586 change.
1587 (dtrace_disable_probe): Rename to...
1588 (dtrace_probe::disable_probe): ...this. Adjust code to reflect
1589 change.
1590 (struct probe_ops dtrace_probe_ops): Delete.
1591 (info_probes_dtrace_command): Call 'info_probes_for_spops'
1592 instead of 'info_probes_for_ops'.
1593 (_initialize_dtrace_probe): Use 'all_static_probe_ops' instead
1594 of 'all_probe_ops'.
1595
1596 2017-11-22 Sergio Durigan Junior <sergiodj@redhat.com>
1597 Simon Marchi <simark@simark.ca>
1598
1599 * stap-probe.c (struct probe_ops stap_probe_ops): Delete
1600 variable.
1601 (struct stap_probe_arg) <stap_probe_arg>: New constructor.
1602 <aexpr>: Change type to 'expression_up'.
1603 (stap_probe_arg_s): Delete type and VEC.
1604 (struct stap_probe): Delete. Replace by...
1605 (class stap_static_probe_ops): ...this and...
1606 (class stap_probe): ...this. Rename variables to add 'm_'
1607 prefix. Do not use 'union' for arguments anymore.
1608 (stap_get_expected_argument_type): Receive probe name instead
1609 of 'struct stap_probe'. Adjust code.
1610 (stap_parse_probe_arguments): Rename to...
1611 (stap_probe::parse_arguments): ...this. Adjust code to
1612 reflect change.
1613 (stap_get_probe_address): Rename to...
1614 (stap_probe::get_relocated_address): ...this. Adjust code
1615 to reflect change.
1616 (stap_get_probe_argument_count): Rename to...
1617 (stap_probe::get_argument_count): ...this. Adjust code
1618 to reflect change.
1619 (stap_get_arg): Rename to...
1620 (stap_probe::get_arg_by_number'): ...this. Adjust code to
1621 reflect change.
1622 (can_evaluate_probe_arguments): Rename to...
1623 (stap_probe::can_evaluate_arguments): ...this. Adjust code
1624 to reflect change.
1625 (stap_evaluate_probe_argument): Rename to...
1626 (stap_probe::evaluate_argument): ...this. Adjust code
1627 to reflect change.
1628 (stap_compile_to_ax): Rename to...
1629 (stap_probe::compile_to_ax): ...this. Adjust code to
1630 reflect change.
1631 (stap_probe_destroy): Delete.
1632 (stap_modify_semaphore): Adjust comment.
1633 (stap_set_semaphore): Rename to...
1634 (stap_probe::set_semaphore): ...this. Adjust code to reflect
1635 change.
1636 (stap_clear_semaphore): Rename to...
1637 (stap_probe::clear_semaphore): ...this. Adjust code to
1638 reflect change.
1639 (stap_probe::get_static_ops): New method.
1640 (handle_stap_probe): Adjust code to create instance of
1641 'stap_probe'.
1642 (stap_get_probes): Rename to...
1643 (stap_static_probe_ops::get_probes): ...this. Adjust code to
1644 reflect change.
1645 (stap_probe_is_linespec): Rename to...
1646 (stap_static_probe_ops::is_linespec): ...this. Adjust code to
1647 reflect change.
1648 (stap_type_name): Rename to...
1649 (stap_static_probe_ops::type_name): ...this. Adjust code to
1650 reflect change.
1651 (stap_gen_info_probes_table_header): Rename to...
1652 (stap_static_probe_ops::gen_info_probes_table_header):
1653 ...this. Adjust code to reflect change.
1654 (stap_gen_info_probes_table_values): Rename to...
1655 (stap_probe::gen_info_probes_table_values): ...this. Adjust
1656 code to reflect change.
1657 (struct probe_ops stap_probe_ops): Delete.
1658 (info_probes_stap_command): Use 'info_probes_for_spops'
1659 instead of 'info_probes_for_ops'.
1660 (_initialize_stap_probe): Use 'all_static_probe_ops' instead
1661 of 'all_probe_ops'.
1662
1663 2017-11-22 Sergio Durigan Junior <sergiodj@redhat.com>
1664
1665 * break-catch-throw.c (fetch_probe_arguments): Use
1666 'probe.prob' instead of 'probe.probe'.
1667 * breakpoint.c (create_longjmp_master_breakpoint): Call
1668 'can_evaluate_arguments' and 'get_relocated_address' methods
1669 from probe.
1670 (create_exception_master_breakpoint): Likewise.
1671 (add_location_to_breakpoint): Use 'sal->prob' instead of
1672 'sal->probe'.
1673 (bkpt_probe_insert_location): Call 'set_semaphore' method from
1674 probe.
1675 (bkpt_probe_remove_location): Likewise, for 'clear_semaphore'.
1676 * elfread.c (elf_get_probes): Use 'static_probe_ops' instead
1677 of 'probe_ops'.
1678 (probe_key_free): Call 'delete' on probe.
1679 (check_exception_resume): Use 'probe.prob' instead of
1680 'probe.probe'.
1681 * location.c (string_to_event_location_basic): Call
1682 'probe_linespec_to_static_ops'.
1683 * probe.c (class any_static_probe_ops): New class.
1684 (any_static_probe_ops any_static_probe_ops): New variable.
1685 (parse_probes_in_pspace): Receive 'static_probe_ops' as
1686 argument. Adjust code to reflect change.
1687 (parse_probes): Use 'static_probe_ops' instead of
1688 'probe_ops'. Adjust code to reflect change.
1689 (find_probes_in_objfile): Call methods to get name and
1690 provider from probe.
1691 (find_probe_by_pc): Use 'result.prob' instead of
1692 'result.probe'. Call 'get_relocated_address' method from
1693 probe.
1694 (collect_probes): Adjust comment and argument list to receive
1695 'static_probe_ops' instead of 'probe_ops'. Adjust code to
1696 reflect change. Call necessary methods from probe.
1697 (compare_probes): Call methods to get name and provider from
1698 probes.
1699 (gen_ui_out_table_header_info): Receive 'static_probe_ops'
1700 instead of 'probe_ops'. Use 'std::vector' instead of VEC,
1701 adjust code accordingly.
1702 (print_ui_out_not_applicables): Likewise.
1703 (info_probes_for_ops): Rename to...
1704 (info_probes_for_spops): ...this. Receive 'static_probe_ops'
1705 as argument instead of 'probe_ops'. Adjust code. Call
1706 necessary methods from probe.
1707 (info_probes_command): Use 'info_probes_for_spops'.
1708 (enable_probes_command): Pass correct argument to
1709 'collect_probes'. Call methods from probe.
1710 (disable_probes_command): Likewise.
1711 (get_probe_address): Move to 'any_static_probe_ops::get_address'.
1712 (get_probe_argument_count): Move to
1713 'any_static_probe_ops::get_argument_count'.
1714 (can_evaluate_probe_arguments): Move to
1715 'any_static_probe_ops::can_evaluate_arguments'.
1716 (evaluate_probe_argument): Move to
1717 'any_static_probe_ops::evaluate_argument'.
1718 (probe_safe_evaluate_at_pc): Use 'probe.prob' instead of
1719 'probe.probe'.
1720 (probe_linespec_to_ops): Rename to...
1721 (probe_linespec_to_static_ops): ...this. Adjust code.
1722 (probe_any_is_linespec): Rename to...
1723 (any_static_probe_ops::is_linespec): ...this.
1724 (probe_any_get_probes): Rename to...
1725 (any_static_probe_ops::get_probes): ...this.
1726 (any_static_probe_ops::type_name): New method.
1727 (any_static_probe_ops::gen_info_probes_table_header): New
1728 method.
1729 (compute_probe_arg): Use 'pc_probe.prob' instead of
1730 'pc_probe.probe'. Call methods from probe.
1731 (compile_probe_arg): Likewise.
1732 (std::vector<const probe_ops *> all_probe_ops): Delete.
1733 (std::vector<const static_probe_ops *> all_static_probe_ops):
1734 New variable.
1735 (_initialize_probe): Use 'all_static_probe_ops' instead of
1736 'all_probe_ops'.
1737 * probe.h (struct info_probe_column) <field_name>: Delete
1738 extraneous newline
1739 (info_probe_column_s): Delete type and VEC.
1740 (struct probe_ops): Delete. Replace with...
1741 (class static_probe_ops): ...this and...
1742 (clas probe): ...this.
1743 (struct bound_probe) <bound_probe>: Delete extraneous
1744 newline. Adjust constructor to receive 'probe' instead of
1745 'struct probe'.
1746 <probe>: Rename to...
1747 <prob>: ...this. Delete extraneous newline.
1748 <objfile>: Delete extraneous newline.
1749 (register_probe_ops): Delete unused prototype.
1750 (info_probes_for_ops): Rename to...
1751 (info_probes_for_spops): ...this. Adjust comment.
1752 (get_probe_address): Move to 'probe::get_address'.
1753 (get_probe_argument_count): Move to
1754 'probe::get_argument_count'.
1755 (can_evaluate_probe_arguments): Move to
1756 'probe::can_evaluate_arguments'.
1757 (evaluate_probe_argument): Move to 'probe::evaluate_argument'.
1758 * solib-svr4.c (struct svr4_info): Adjust comment.
1759 (struct probe_and_action) <probe>: Rename to...
1760 <prob>: ...this.
1761 (register_solib_event_probe): Receive 'probe' instead of
1762 'struct probe' as argument. Use 'prob' instead of 'probe'
1763 when applicable.
1764 (solib_event_probe_action): Call 'get_argument_count' method
1765 from probe. Adjust comment.
1766 (svr4_handle_solib_event): Adjust comment. Call
1767 'evaluate_argument' method from probe.
1768 (svr4_create_probe_breakpoints): Call 'get_relocated_address'
1769 from probe.
1770 (svr4_create_solib_event_breakpoints): Use 'probe' instead of
1771 'struct probe'. Call 'can_evaluate_arguments' from probe.
1772 * symfile.h: Forward declare 'class probe' instead of 'struct
1773 probe'.
1774 * symtab.h: Likewise.
1775 (struct symtab_and_line) <probe>: Rename to...
1776 <prob>: ...this.
1777 * tracepoint.c (start_tracing): Use 'prob' when applicable.
1778 Call probe methods.
1779 (stop_tracing): Likewise.
1780
1781 2017-11-22 Joel Brobecker <brobecker@adacore.com>
1782
1783 * ravenscar-thread.c (ravenscar_inferior_created): Remove
1784 trailing newline at end of string in call to warning.
1785
1786 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
1787
1788 * osdata.h: Include vector isntead of vec.h.
1789 (osdata_column_s): Remove typedef.
1790 (struct osdata_column): Add constructor.
1791 <name, value>: Change type to std::string.
1792 (DEF_VEC_O (osdata_column_s)): Remove.
1793 (osdata_item_s): Remove typedef.
1794 (struct osdata_item) <columns>: Change type to std::vector.
1795 (DEF_VEC_O (osdata_item_s)): Remove.
1796 (struct osdata): Add constructor.
1797 <type>: Change type to std::string.
1798 <items>: Change type to std::vector.
1799 (osdata_p): Remove typedef.
1800 (DEF_VEC_P (osdata_p)): Remove.
1801 (osdata_parse): Return a unique_ptr.
1802 (osdata_free): Remove.
1803 (make_cleanup_osdata_free): Remove.
1804 (get_osdata): Return a unique_ptr.
1805 (get_osdata_column): Return pointer to std::string, take a
1806 reference to osdata_item as parameter.
1807 * osdata.c (struct osdata_parsing_data) <osdata>: Change type to
1808 unique_ptr.
1809 <property_name>: Change type to std::string.
1810 (osdata_start_osdata): Allocate osdata with new and adjust.
1811 (osdata_start_item): Adjust.
1812 (osdata_start_column): Adjust.
1813 (osdata_end_column): Adjust.
1814 (clear_parsing_data): Remove.
1815 (osdata_parse): Return a unique_ptr and adjust, remove cleanup.
1816 (osdata_item_clear): Remove.
1817 (get_osdata): return a unique_ptr and adjust.
1818 (get_osdata_column): Return a pointer to std::string and adjust.
1819 (info_osdata): Adjust.
1820 * mi/mi-main.c: Include <map>.
1821 (free_vector_of_osdata_items): Remove.
1822 (list_available_thread_groups): Adjust, use std::map instead of
1823 splay tree.
1824
1825 2017-11-22 Simon Marchi <simon.marchi@ericsson.com>
1826
1827 * stack.c (iterate_over_block_locals): Add LOC_OPTIMIZED_OUT
1828 case in switch.
1829
1830 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
1831
1832 * varobj.h (DEF_VEC_P (varobj_p)): Remove.
1833
1834 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
1835
1836 * varobj.h (struct varobj_update_result): Add constructor, add
1837 move constructor, disable copy and assign, initialize fields.
1838 <newobj>: Change type to std::vector.
1839 (varobj_update): Return std::vector.
1840 * varobj.c (install_dynamic_child): Change VEC parameters to
1841 std::vector and adjust.
1842 (update_dynamic_varobj_children): Likewise.
1843 (varobj_update): Return std::vector and adjust.
1844 * mi/mi-cmd-var.c (varobj_update_one): Adjust to vector changes.
1845
1846 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
1847
1848 * varobj.h (struct varobj) <parent>: Remove const.
1849 <children>: Change type to std::vector.
1850 (varobj_list_children): Return std::vector const reference.
1851 (varobj_restrict_range): Change parameter type to std::vector
1852 const reference.
1853 * varobj.c (varobj_has_more): Adjust.
1854 (varobj_restrict_range): Change parameter type to std::vector
1855 const reference and adjust.
1856 (install_dynamic_child): Adjust.
1857 (update_dynamic_varobj_children): Adjust.
1858 (varobj_list_children): Return std::vector const reference and
1859 adjust.
1860 (varobj_add_child): Adjust.
1861 (update_type_if_necessary): Adjust.
1862 (varobj_update): Adjust.
1863 (delete_variable_1): Adjust.
1864 * ada-varobj.c (ada_value_has_mutated): Adjust.
1865 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust.
1866
1867 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
1868
1869 * varobj.h (struct varobj): Add constructor and destructor,
1870 initialize fields.
1871 * varobj.c (struct varobj_root): Initialize fields.
1872 (struct varobj_dynamic): Initialize fields.
1873 (varobj_create): Use unique_ptr instead of cleanup. Create
1874 varobj with new instead of new_root_variable.
1875 (delete_variable_1): Free variable with delete instead of
1876 free_variable.
1877 (create_child_with_value): Create variable with new instead of
1878 new_variable.
1879 (varobj::varobj): New.
1880 (varobj::~varobj): New (body mostly coming from free_variable).
1881 (new_variable): Remove.
1882 (free_variable): Remove.
1883 (do_free_variable_cleanup): Remove.
1884 (make_cleanup_free_variable): Remove.
1885
1886 2017-11-22 Ulrich Weigand <uweigand@de.ibm.com>
1887
1888 * core-regset.c: Remove file.
1889 * Makefile.in (ALLDEPFILES): Remove core-regset.c.
1890
1891 2017-11-22 Ulrich Weigand <uweigand@de.ibm.com>
1892
1893 * NEWS: Document use of GNU MPFR.
1894 * README: Likewise.
1895
1896 * Makefile.in (LIBMPFR): Add define.
1897 (CLIBS): Add $(LIBMPFR).
1898 * configure.ac: Add --with-mpfr configure option.
1899 * configure: Regenerate.
1900 * config.in: Regenerate.
1901
1902 * target-float.c [HAVE_LIBMPFR]: Include <mpfr.h>.
1903 (class mpfr_float_ops): New type.
1904 (mpfr_float_ops::from_target): Two new overloaded functions.
1905 (mpfr_float_ops::to_target): Likewise.
1906 (mpfr_float_ops::to_string): New function.
1907 (mpfr_float_ops::from_string): Likewise.
1908 (mpfr_float_ops::to_longest): Likewise.
1909 (mpfr_float_ops::from_longest): Likewise.
1910 (mpfr_float_ops::from_ulongest): Likewise.
1911 (mpfr_float_ops::to_host_double): Likewise.
1912 (mpfr_float_ops::from_host_double): Likewise.
1913 (mpfr_float_ops::convert): Likewise.
1914 (mpfr_float_ops::binop): Likewise.
1915 (mpfr_float_ops::compare): Likewise.
1916 (get_target_float_ops): Use mpfr_float_ops if available.
1917
1918 2017-11-22 Ulrich Weigand <uweigand@de.ibm.com>
1919
1920 * target-float.c: Do not include <math.h>.
1921 Include <cmath> and <limits>.
1922 (DOUBLEST): Do not define.
1923 (class target_float_ops): New type.
1924 (class host_float_ops): New templated type.
1925 (class decimal_float_ops): New type.
1926
1927 (floatformat_to_doublest): Rename to ...
1928 (host_float_ops<T>::from_target): ... this. Use template type T
1929 instead of DOUBLEST. Use C++ math routines. Update recursive calls.
1930 (host_float_ops<T>::from_target): New overload using a type argument.
1931 (floatformat_from_doublest): Rename to ...
1932 (host_float_ops<T>::to_target): ... this. Use template type T
1933 instead of DOUBLEST. Use C++ math routines. Update recursive calls.
1934 (host_float_ops<T>::to_target): New overload using a type argument.
1935 (floatformat_printf_format): New function.
1936 (struct printf_length_modifier): New templated type.
1937 (floatformat_to_string): Rename to ...
1938 (host_float_ops<T>::to_string): ... this. Use type instead of
1939 floatformat argument. Use floatformat_printf_format and
1940 printf_length_modifier. Remove special handling of invalid numbers,
1941 infinities and NaN (moved to target_float_to_string).
1942 (struct scanf_length_modifier): New templated type.
1943 (floatformat_from_string): Rename to ...
1944 (host_float_ops<T>::from_string): ... this. Use type instead of
1945 floatformat argument. Use scanf_length_modifier.
1946 (floatformat_to_longest): Rename to ...
1947 (host_float_ops<T>::to_longest): ... this. Use type instead of
1948 floatformat argument. Handle out-of-range values deterministically.
1949 (floatformat_from_longest): Rename to ...
1950 (host_float_ops<T>::from_longest): ... this. Use type instead of
1951 floatformat argument.
1952 (floatformat_from_ulongest): Rename to ...
1953 (host_float_ops<T>::from_ulongest): ... this. Use type instead of
1954 floatformat argument.
1955 (floatformat_to_host_double): Rename to ...
1956 (host_float_ops<T>::to_host_double): ... this. Use type instead of
1957 floatformat argument.
1958 (floatformat_from_host_double): Rename to ...
1959 (host_float_ops<T>::from_host_double): ... this. Use type instead of
1960 floatformat argument.
1961 (floatformat_convert): Rename to ...
1962 (host_float_ops<T>::convert): ... this. Use type instead of
1963 floatformat arguments. Remove handling of no-op conversions.
1964 (floatformat_binop): Rename to ...
1965 (host_float_ops<T>::binop): ... this. Use type instead of
1966 floatformat arguments.
1967 (floatformat_compare): Rename to ...
1968 (host_float_ops<T>::compare): ... this. Use type instead of
1969 floatformat arguments.
1970
1971 (match_endianness): Use type instead of length/byte_order arguments.
1972 (set_decnumber_context): Likewise.
1973 (decimal_from_number): Likewise. Update calls.
1974 (decimal_to_number): Likewise.
1975 (decimal_is_zero): Likewise. Update calls. Move to earlier in file.
1976 (decimal_float_ops::to_host_double): New dummy function.
1977 (decimal_float_ops::from_host_double): Likewise.
1978 (decimal_to_string): Rename to ...
1979 (decimal_float_ops::to_string): ... this. Use type instead of
1980 length/byte_order arguments. Update calls.
1981 (decimal_from_string): Rename to ...
1982 (decimal_float_ops::from_string): ... this. Use type instead of
1983 length/byte_order arguments. Update calls.
1984 (decimal_from_longest): Rename to ...
1985 (decimal_float_ops::from_longest): ... this. Use type instead of
1986 length/byte_order arguments. Update calls.
1987 (decimal_from_ulongest): Rename to ...
1988 (decimal_float_ops::from_ulongest): ... this. Use type instead of
1989 length/byte_order arguments. Update calls.
1990 (decimal_to_longest): Rename to ...
1991 (decimal_float_ops::to_longest): ... this. Use type instead of
1992 length/byte_order arguments. Update calls.
1993 (decimal_binop): Rename to ...
1994 (decimal_float_ops::binop): ... this. Use type instead of
1995 length/byte_order arguments. Update calls.
1996 (decimal_compare): Rename to ...
1997 (decimal_float_ops::compare): ... this. Use type instead of
1998 length/byte_order arguments. Update calls.
1999 (decimal_convert): Rename to ...
2000 (decimal_float_ops::convert): ... this. Use type instead of
2001 length/byte_order arguments. Update calls.
2002
2003 (target_float_same_category_p): New function.
2004 (target_float_same_format_p): Likewise.
2005 (target_float_format_length): Likewise.
2006 (enum target_float_ops_kind): New type.
2007 (get_target_float_ops_kind): New function.
2008 (get_target_float_ops): Three new overloaded functions.
2009
2010 (target_float_is_zero): Update call.
2011 (target_float_to_string): Add special handling of invalid numbers,
2012 infinities and NaN (moved from floatformat_to_string). Use
2013 target_float_ops callback.
2014 (target_float_from_string): Use target_float_ops callback.
2015 (target_float_to_longest): Likewise.
2016 (target_float_from_longest): Likewise.
2017 (target_float_from_ulongest): Likewise.
2018 (target_float_to_host_double): Likewise.
2019 (target_float_from_host_double): Likewise.
2020 (target_float_convert): Add special case for no-op conversions.
2021 Use target_float_ops callback.
2022 (target_float_binop): Use target_float_ops callback.
2023 (target_float_compare): Likewise.
2024
2025 2017-11-22 Yao Qi <yao.qi@linaro.org>
2026
2027 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use strcpy.
2028
2029 2017-11-22 Yao Qi <yao.qi@linaro.org>
2030
2031 * cli/cli-decode.c (help_list): Use memcpy instead of strncpy.
2032 * cp-namespace.c (cp_lookup_transparent_type_loop): Likewise.
2033
2034 2017-11-21 Jerome Guitton <guitton@adacore.com>
2035
2036 * ravenscar-thread.c (ravenscar_wait): Update inferior ptid
2037 with event ptid from the lower layer before doing the
2038 ravenscar-specific update.
2039
2040 2017-11-21 Joel Brobecker <brobecker@adacore.com>
2041
2042 * ravenscar-thread.c (is_ravenscar_task): Also verify that
2043 the ptid's TID is nonzero.
2044
2045 2017-11-21 Joel Brobecker <brobecker@adacore.com>
2046
2047 * ada-lang.h (ada_get_tcb_types_info): Add declaration.
2048 * ada-tasks.c (ada_get_tcb_types_info): Renames get_tcb_types_info.
2049 Make non-static. Change return type to char *. Adjust code
2050 accordingly. Rewrite the function's documentation.
2051 (read_atcb): Adjust call to get_tcb_types_info accordingly.
2052 * ravenscar-thread.c (ravenscar_inferior_created): Check that
2053 we have enough debugging information in the runtime to support
2054 Ada task debugging before we enable the ravenscar-thread layer.
2055
2056 2017-11-21 Joel Brobecker <brobecker@adacore.com>
2057
2058 * ada-lang.h (ada_get_task_info_from_ptid): Add declaration.
2059 * ada-tasks.c (ada_get_task_info_from_ptid): New function.
2060 * ravenscar-thread.c: Add into comment.
2061 (base_magic_null_ptid): Delete.
2062 (base_ptid): Change documentation.
2063 (ravenscar_active_task): Renames ravenscar_running_thread.
2064 All callers updated throughout.
2065 (is_ravenscar_task, ravenscar_get_thread_base_cpu): New function.
2066 (ravenscar_task_is_currently_active): Likewise.
2067 (get_base_thread_from_ravenscar_task): Ditto.
2068 (ravenscar_update_inferior_ptid): Adjust to handle multiple CPUs.
2069 (ravenscar_runtime_initialized): Likewise.
2070 (get_running_thread_id): Add new parameter "cpu". Adjust
2071 implementation to handle this new parameter.
2072 (ravenscar_fetch_registers): Small adjustment to use
2073 is_ravenscar_task and ravenscar_task_is_currently_active in
2074 order to decide whether to use the target beneath or this
2075 module's arch_ops.
2076 (ravenscar_store_registers, ravenscar_prepare_to_store): Likewise.
2077 (ravenscar_stopped_by_sw_breakpoint): Use
2078 get_base_thread_from_ravenscar_task to get the underlying
2079 thread, rather than using base_ptid.
2080 (ravenscar_stopped_by_hw_breakpoint, ravenscar_stopped_by_watchpoint)
2081 (ravenscar_stopped_data_address, ravenscar_core_of_thread):
2082 Likewise.
2083 (ravenscar_inferior_created): Do not set base_magic_null_ptid.
2084
2085 2017-11-21 Joel Brobecker <brobecker@adacore.com>
2086
2087 * ada-lang.h (struct ada_task_info) <base_cpu>: New field.
2088 * ada-lang.c (struct atcb_fieldno) <base_cpu>: New field.
2089 (get_tcb_types_info): Set fieldnos.base_cpu.
2090 (read_atcb): Set task_info->base_cpu.
2091 (info_task): Print "Base CPU" info if set by runtime.
2092
2093 2017-11-21 Joel Brobecker <brobecker@adacore.com>
2094
2095 * ravenscar-thread.c (ravenscar_stopped_by_sw_breakpoint)
2096 (ravenscar_stopped_by_hw_breakpoint, ravenscar_stopped_by_watchpoint)
2097 (ravenscar_stopped_data_address, ravenscar_core_of_thread):
2098 New functions.
2099 (init_ravenscar_thread_ops): Set the to_stopped_by_sw_breakpoint,
2100 to_stopped_by_hw_breakpoint, to_stopped_by_watchpoint,
2101 to_stopped_data_address and to_core_of_thread fields of
2102 ravenscar_ops.
2103
2104 2017-11-21 Ulrich Weigand <uweigand@de.ibm.com>
2105
2106 * ppc-tdep.h (enum powerpc_long_double_abi): New data type.
2107 (struct gdbarch_tdep): New member long_double_abi.
2108 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize long_double_abi
2109 member of tdep struct based on Tag_GNU_Power_ABI_FP attribute.
2110 * ppc-linux-tdep.c (ppc_linux_init_abi): Install long double data
2111 format depending on long_double_abi tdep member.
2112 (ppc_floatformat_for_type): Handle __ibm128 type.
2113
2114 2017-11-20 Simon Marchi <simon.marchi@polymtl.ca>
2115
2116 * darwin-nat.c (set_enable_mach_exceptions): Constify parameter.
2117
2118 2017-11-21 Pedro Alves <palves@redhat.com>
2119
2120 * dwarf2read.c (mapped_index::find_name_components_bounds)
2121 <completion mode, upper bound>: Use std::lower_bound instead of
2122 std::upper_bound.
2123 (test_mapped_index_find_name_component_bounds): Remove incorrect
2124 "t1_fund" from expected symbols.
2125
2126 2017-11-21 Pedro Alves <palves@redhat.com>
2127
2128 * dwarf2read.c (mapped_index::name_components_casing): New field.
2129 (mapped_index) <build_name_components,
2130 find_name_components_bounds): Declare new methods.
2131 (mapped_index::find_name_components_bounds)
2132 (mapped_index::build_name_components): New methods, factored out
2133 from dw2_expand_symtabs_matching_symbol.
2134 (check_find_bounds_finds)
2135 (test_mapped_index_find_name_component_bounds): New.
2136 (run_test): Rename to ...
2137 (test_dw2_expand_symtabs_matching_symbol): ... this.
2138 (run_test): Reimplement.
2139
2140 2017-11-21 Pedro Alves <palves@redhat.com>
2141
2142 * cp-name-parser.y (cp_ident_is_alpha, cp_ident_is_alnum): New.
2143 (symbol_end): Use cp_ident_is_alnum.
2144 (yylex): Use cp_ident_is_alpha and cp_ident_is_alnum.
2145 * dwarf2read.c (make_sort_after_prefix_name): New function.
2146 (dw2_expand_symtabs_matching_symbol): Use it.
2147 (test_symbols): Add more symbols.
2148 (run_test): Add tests.
2149
2150 2017-11-17 Tom Tromey <tom@tromey.com>
2151
2152 * symtab.h (enum symbol_subclass_kind): New.
2153 (struct symbol) <is_cplus_template_function, is_rust_vtable>:
2154 Remove.
2155 <subclass>: New member.
2156 (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): Update.
2157 * rust-lang.c (rust_get_trait_object_pointer): Update.
2158 * dwarf2read.c (read_func_scope): Update.
2159 (read_variable): Update.
2160
2161 2017-11-17 Tom Tromey <tom@tromey.com>
2162
2163 * dwarf2read.c (read_func_scope): Update.
2164 * symtab.h (struct template_symbol): Derive from symbol.
2165 <base>: Remove.
2166
2167 2017-11-17 Tom Tromey <tom@tromey.com>
2168
2169 * symtab.h (struct symbol) <is_rust_vtable>: New member.
2170 (struct rust_vtable_symbol): New.
2171 (find_symbol_at_address): Declare.
2172 * symtab.c (find_symbol_at_address): New function.
2173 * symfile.h (struct quick_symbol_functions)
2174 <find_compunit_symtab_by_address>: New member.
2175 * symfile-debug.c (debug_qf_find_compunit_symtab_by_address): New
2176 function.
2177 (debug_sym_quick_functions): Link to
2178 debug_qf_find_compunit_symtab_by_address.
2179 * rust-lang.c (rust_get_trait_object_pointer): New function.
2180 (rust_evaluate_subexp) <case UNOP_IND>: New case. Call
2181 rust_get_trait_object_pointer.
2182 * psymtab.c (psym_relocate): Clear psymbol_map.
2183 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address): New
2184 functions.
2185 (psym_functions): Link to psym_find_compunit_symtab_by_address.
2186 * objfiles.h (struct objfile) <psymbol_map>: New member.
2187 * dwarf2read.c (dwarf2_gdb_index_functions): Update.
2188 (process_die) <DW_TAG_variable>: New case. Call read_variable.
2189 (rust_containing_type, read_variable): New functions.
2190
2191 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
2192
2193 * common/gdb_vecs.h (DEF_VEC_I (int)): Remove.
2194
2195 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
2196
2197 * common/filestuff.c: Include <algorithm>.
2198 (open_fds): Change type to std::vector<int>.
2199 (do_mark_open_fd): Adjust.
2200 (unmark_fd_no_cloexec): Adjust.
2201 (do_close): Adjust.
2202
2203 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
2204
2205 * breakpoint.c (output_thread_groups): Take an std::vector.
2206 (print_one_breakpoint_location): Adjust.
2207
2208 2017-11-17 Joel Brobecker <brobecker@adacore.com>
2209
2210 * ada-lang.c (resolve_subexp): Add handling of OP_VAR_MSYM_VALUE.
2211 (ada_evaluate_subexp_for_cast): New function.
2212 (ada_evaluate_subexp) <UNOP_CAST>: Replace code by call to
2213 ada_evaluate_subexp_for_cast.
2214 (ada_evaluate_subexp) <nosideret>: Replace code by call to
2215 eval_skip_value.
2216 * eval.c (evaluate_var_value): Make non-static.
2217 (evaluate_var_msym_value, eval_skip_value): Likewise.
2218 * value.h (evaluate_var_value, evaluate_var_msym_value)
2219 (eval_skip_value): Declare.
2220
2221 2017-11-16 Joel Brobecker <brobecker@adacore.com>
2222
2223 * ada-lang.c (ada_value_cast): Remove parameter "noside".
2224 Update all callers.
2225
2226 2017-11-16 Pedro Alves <palves@redhat.com>
2227
2228 * python/py-unwind.c (pyuw_sniffer): Translate
2229 PyExc_KeyboardInterrupt to a GDB Quit exception.
2230
2231 2017-11-16 Pedro Alves <palves@redhat.com>
2232
2233 * infrun.c (resume_cleanups): Delete.
2234 (resume): No longer install a resume_cleanups cleanup nor call
2235 QUIT.
2236 (proceed): Pass the terminal to the inferior.
2237 (keep_going_pass_signal): No longer install a resume_cleanups
2238 cleanup.
2239
2240 2017-11-16 Pedro Alves <palves@redhat.com>
2241
2242 * inf-loop.c (inferior_event_handler): Don't swallow the exception
2243 if the prompt is blocked.
2244
2245 2017-11-16 Pedro Alves <palves@redhat.com>
2246
2247 * breakpoint.c (insert_bp_location): Replace bp_err and
2248 bp_err_message locals by a gdb_exception local.
2249
2250 2017-11-16 Pedro Alves <palves@redhat.com>
2251
2252 * inflow.c (scoped_ignore_sigttou): New class.
2253 (child_terminal_ours_1, new_tty): Use it.
2254
2255 2017-11-16 Ulrich Weigand <uweigand@de.ibm.com>
2256
2257 * target-float.c (decimal_from_number): Add byte_order argument and
2258 call match_endianness. Error if unknown floating-point type.
2259 (decimal_to_number): Add byte_order argument and call match_endianness.
2260 (decimal_from_longest): Update call. Do not call match_endianness.
2261 (decimal_from_ulongest): Likewise.
2262 (decimal_binop): Likewise.
2263 (decimal_is_zero): Likewise.
2264 (decimal_compare): Likewise.
2265 (decimal_convert): Likewise.
2266
2267 2017-11-16 Phil Muldoon <pmuldoon@redhat.com>
2268
2269 * python/python.c (gdbpy_rbreak): New function.
2270 * NEWS: Document Python rbreak feature.
2271
2272 2017-11-16 Yao Qi <yao.qi@linaro.org>
2273
2274 * features/tic6x-c62x.xml: Remove.
2275 * features/tic6x-c64x.xml: Remove.
2276 * features/tic6x-c64xp.xml: Remove.
2277
2278 2017-11-15 John Baldwin <jhb@FreeBSD.org>
2279
2280 * symtab.h: Include <array>.
2281
2282 2017-11-15 John Baldwin <jhb@FreeBSD.org>
2283
2284 * bsd-kvm.c (bsd_kvm_cmd): Constify 'arg'.
2285 (bsd_kvm_proc_cmd): Likewise.
2286
2287 2017-11-15 Simon Marchi <simon.marchi@ericsson.com>
2288
2289 * tui/tui-win.c (window_name_completer): Replace VEC with
2290 std::vector.
2291
2292 2017-11-15 Andrew Cagney <cagney@gnu.org>
2293
2294 * MAINTAINERS: Remove no-longer applicable entries.
2295
2296 2017-11-15 Andrew Cagney <cagney@gnu.org>
2297
2298 * MAINTAINERS: Move self to Past Maintainers.
2299
2300 2017-11-15 Yao Qi <yao.qi@linaro.org>
2301
2302 * features/Makefile (XMLTOC): Remove nios2-linux.xml.
2303 * features/nios2-linux.c: Remove.
2304 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Don't call
2305 initialize_tdesc_nios2_linux.
2306
2307 2017-11-15 Yao Qi <yao.qi@linaro.org>
2308
2309 * m68hc11-tdep.c (M68HC11_NUM_REGS): Change it to
2310 M68HC11_LAST_HARD_REG + 1.
2311
2312 2017-11-14 Paul Carroll <pcarroll@codesourcery.com>
2313
2314 PR gdb/22388
2315 * remote.c (remote_write_bytes_aux, remote_read_bytes_1,
2316 remote_read_bytes, remote_write_qxfer, remote_xfer_partial):
2317 Return TARGET_XFER_EOF if size of returned data is 0.
2318
2319 2017-11-14 Simon Marchi <simon.marchi@ericsson.com>
2320
2321 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2322 memory-map-selftests.c.
2323 (SUBDIR_UNITTESTS_OBS): Add memory-map-selftests.o.
2324 * memory-map.c (memory_map_start_memory): Fix computation of hi
2325 address.
2326 * unittests/memory-map-selftests.c: New file.
2327
2328 2017-11-09 Joel Brobecker <brobecker@adacore.com>
2329
2330 * ada-lang.c: Fix some typos in the general command documenting
2331 how Ada expressions are being evaluated and how their result
2332 is printed.
2333
2334 2017-11-09 Tom Tromey <tom@tromey.com>
2335
2336 * psymtab.c (psymbol_hash): Do not hash string contents.
2337 (psymbol_compare): Add comment.
2338
2339 2017-11-09 Tom Tromey <tom@tromey.com>
2340
2341 * dictionary.c (dict_hash): Move "TKB" check into the "switch".
2342
2343 2017-11-08 Joel Brobecker <brobecker@adacore.com>
2344
2345 * ada-exp.y (write_var_from_sym): Remove parameter
2346 "orig_left_context". Update all callers.
2347
2348 2017-11-08 Simon Marchi <simon.marchi@ericsson.com>
2349
2350 * tracepoint.h (class collection_list) <stringify>: Return
2351 std::vector<std::string>.
2352 (encode_actions_rsp): Change parameters to
2353 std::vector<std::string> *.
2354 * tracepoint.c (collection_list::stringify): Return
2355 std::vector<std::string> and adjust accordingly.
2356 (encode_actions_rsp): Changee parameters to
2357 std::vector<std::string> and adjust accordingly.
2358 * remote.c (free_actions_list),
2359 free_actions_list_cleanup_wrapper): Remove.
2360 (remote_download_tracepoint): Adjust to std::vector.
2361
2362 2017-11-08 Tom Tromey <tom@tromey.com>
2363
2364 * dwarf2read.c (symbolp): Remove typedef.
2365 (read_func_scope): Use std::vector.
2366 (process_structure_scope): Use std::vector.
2367
2368 2017-11-08 Pedro Alves <palves@redhat.com>
2369
2370 * ada-lang.c (ada_make_symbol_completion_list): Use
2371 completion_skip_symbol.
2372 * symtab.c (symbol_is_function_or_method(minimal_symbol*)): New.
2373 (symbol_is_function_or_method(symbol*)): New.
2374 (add_symtab_completions): Add complete_symbol_mode parameter. Use
2375 completion_skip_symbol.
2376 (default_collect_symbol_completion_matches_break_on): Use
2377 completion_skip_symbol. Pass down mode.
2378 (collect_file_symbol_completion_matches): Pass down mode.
2379 * symtab.h (symbol_is_function_or_method): New declarations.
2380 (completion_skip_symbol): New template function.
2381
2382 2017-11-08 Pedro Alves <palves@redhat.com>
2383
2384 * linespec.c (iterate_over_all_matching_symtabs): Add
2385 search_domain parameter. Pass it down to expand_symtabs_matching.
2386 (decode_objc): Request FUNCTIONS_DOMAIN symbols only.
2387 (lookup_prefix_sym): Adjust by passing ALL_DOMAIN as
2388 search_domain.
2389 (add_all_symbol_names_from_pspace): Add search_domain parameter.
2390 Pass it down.
2391 (find_method, find_function_symbols): Request FUNCTIONS_DOMAIN
2392 symbols.
2393 (add_matching_symbols_to_info): Add search_domain parameter. Pass
2394 it down.
2395
2396 2017-11-08 Pedro Alves <palves@redhat.com>
2397
2398 * ada-lang.c (ada_make_symbol_completion_list): Remove text and
2399 text_len locals and don't pass them down.
2400 * symtab.c (completion_list_add_name): Remove
2401 sym_text/sym_text_len parameters and adjust.
2402 (completion_list_add_symbol, completion_list_add_msymbol)
2403 (completion_list_objc_symbol, completion_list_add_fields)
2404 (add_symtab_completions): Likewise.
2405 (default_collect_symbol_completion_matches_break_on)
2406 (collect_file_symbol_completion_matches): Remove sym_text_len
2407 local and don't pass it down.
2408 * symtab.h (completion_list_add_name): Remove
2409 sym_text/sym_text_len parameters.
2410
2411 2017-11-08 Pedro Alves <palves@redhat.com>
2412
2413 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2414 unittests/lookup_name_info-selftests.c.
2415 (SUBDIR_UNITTESTS_OBS): Add lookup_name_info-selftests.o.
2416 * cp-support.c: Include "selftest.h".
2417 (cp_remove_params_1): Rename from cp_remove_params. Add
2418 'require_param' parameter, and handle it.
2419 (cp_remove_params): Reimplement.
2420 (cp_remove_params_if_any): New.
2421 (selftests::quote): New.
2422 (selftests::check_remove_params): New.
2423 (selftests::test_cp_remove_params): New.
2424 (_initialize_cp_support): Install
2425 selftests::test_cp_remove_params.
2426 * cp-support.h (cp_remove_params_if_any): Declare.
2427 * dwarf2read.c :Include "selftest.h".
2428 (dw2_expand_symtabs_matching_symbol): Use
2429 lookup_name_info::make_ignore_params.
2430 (selftests::dw2_expand_symtabs_matching::mock_mapped_index)
2431 (selftests::dw2_expand_symtabs_matching::string_or_null)
2432 (selftests::dw2_expand_symtabs_matching::check_match)
2433 (selftests::dw2_expand_symtabs_matching::test_symbols)
2434 (selftests::dw2_expand_symtabs_matching::run_test): New.
2435 (_initialize_dwarf2_read): Register
2436 selftests::dw2_expand_symtabs_matching::run_test.
2437 * psymtab.c (psym_expand_symtabs_matching): Use
2438 lookup_name_info::make_ignore_params.
2439 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info):
2440 If the lookup name wants to ignore parameters, strip them.
2441 (compare_symbol_name): Remove sym_text/sym_text_len parameters and
2442 code handling '('.
2443 (completion_list_add_name): Don't pass down sym_text/sym_text_len.
2444 (default_collect_symbol_completion_matches_break_on): Don't try to
2445 strip parameters.
2446 * symtab.h (lookup_name_info::lookup_name_info): Add
2447 'ignore_parameters' parameter.
2448 (lookup_name_info::ignore_parameters)
2449 (lookup_name_info::make_ignore_params): New methods.
2450 (lookup_name_info::m_ignore_parameters): New field.
2451 * unittests/lookup_name_info-selftests.c: New file.
2452
2453 2017-11-08 Pedro Alves <palves@redhat.com>
2454
2455 * dwarf2read.c (dw2_expand_marked_cus)
2456 (dw2_expand_symtabs_matching_symbol): Remove forward declarations.
2457 (dw2_expand_symtabs_matching): Move further below.
2458 (dw2_expand_marked_cus): Reindent.
2459
2460 2017-11-08 Pedro Alves <palves@redhat.com>
2461
2462 * dwarf2read.c (byte_swap, MAYBE_SWAP): Move higher up in file.
2463 (struct name_component): New.
2464 (mapped_index::name_components): New field.
2465 (mapped_index::symbol_name_at): New method.
2466 (dwarf2_read_index): Call mapped_index ctor.
2467 (dw2_map_matching_symbols): Add comment about name_components
2468 table.
2469 (dw2_expand_symtabs_matching): Factor part to...
2470 (dw2_expand_symtabs_matching_symbol): ... this new function.
2471 Build name components table, and lookup symbols in it before
2472 calling the name matcher.
2473 (dw2_expand_marked_cus): New, factored out from
2474 dw2_expand_symtabs_matching.
2475 (dwarf2_per_objfile_free): Call the mapped_index's dtor.
2476
2477 2017-11-08 Pedro Alves <palves@redhat.com>
2478
2479 * ada-lang.c (ada_encode): Rename to ..
2480 (ada_encode_1): ... this. Add throw_errors parameter and handle
2481 it.
2482 (ada_encode): Reimplement.
2483 (match_name): Delete, folded into full_name.
2484 (resolve_subexp): No longer pass the encoded name to
2485 ada_lookup_symbol_list.
2486 (should_use_wild_match): Delete.
2487 (name_match_type_from_name): New.
2488 (ada_lookup_simple_minsym): Use lookup_name_info and the
2489 language's symbol_name_matcher_ftype.
2490 (add_symbols_from_enclosing_procs, ada_add_local_symbols)
2491 (ada_add_block_renamings): Adjust to use lookup_name_info.
2492 (ada_lookup_name): New.
2493 (add_nonlocal_symbols, ada_add_all_symbols)
2494 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list)
2495 (ada_iterate_over_symbols): Adjust to use lookup_name_info.
2496 (ada_name_for_lookup): Delete.
2497 (ada_lookup_encoded_symbol): Construct a verbatim name.
2498 (wild_match): Reverse sense of return type. Use bool.
2499 (full_match): Reverse sense of return type. Inline bits of old
2500 match_name here.
2501 (ada_add_block_symbols): Adjust to use lookup_name_info.
2502 (symbol_completion_match): Delete, folded into...
2503 (ada_lookup_name_info::matches): ... .this new method.
2504 (symbol_completion_add): Delete.
2505 (ada_collect_symbol_completion_matches): Add name_match_type
2506 parameter. Adjust to use lookup_name_info and
2507 completion_list_add_name.
2508 (get_var_value, ada_add_global_exceptions): Adjust to use
2509 lookup_name_info.
2510 (ada_get_symbol_name_cmp): Delete.
2511 (do_wild_match, do_full_match): New functions.
2512 (ada_lookup_name_info::ada_lookup_name_info): New method.
2513 (ada_symbol_name_matches, ada_get_symbol_name_matcher): New
2514 functions.
2515 (ada_language_defn): Install ada_get_symbol_name_matcher.
2516 * ada-lex.l (processId): If name starts with '<', copy it
2517 verbatim.
2518 * block.c (block_iter_match_step, block_iter_match_first)
2519 (block_iter_match_next, block_lookup_symbol)
2520 (block_lookup_symbol_primary, block_find_symbol): Adjust to use
2521 lookup_name_info.
2522 * block.h (block_iter_match_first, block_iter_match_next)
2523 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use lookup_name_info.
2524 * c-lang.c (c_language_defn, cplus_language_defn)
2525 (asm_language_defn, minimal_language_defn): Adjust comments to
2526 refer to la_get_symbol_name_matcher.
2527 * completer.c (complete_files_symbols)
2528 (collect_explicit_location_matches, symbol_completer): Pass a
2529 symbol_name_match_type down.
2530 * completer.h (class completion_match, completion_match_result):
2531 New classes.
2532 (completion_tracker::reset_completion_match_result): New method.
2533 (completion_tracker::m_completion_match_result): New field.
2534 * cp-support.c (make_symbol_overload_list_block): Adjust to use
2535 lookup_name_info.
2536 (cp_fq_symbol_name_matches, cp_get_symbol_name_matcher): New
2537 functions.
2538 * cp-support.h (cp_get_symbol_name_matcher): New declaration.
2539 * d-lang.c: Adjust comments to refer to
2540 la_get_symbol_name_matcher.
2541 * dictionary.c (dict_vector) <iter_match_first, iter_match_next>:
2542 Adjust to use lookup_name_info.
2543 (dict_iter_match_first, dict_iter_match_next)
2544 (iter_match_first_hashed, iter_match_next_hashed)
2545 (iter_match_first_linear, iter_match_next_linear): Adjust to work
2546 with a lookup_name_info.
2547 * dictionary.h (dict_iter_match_first, dict_iter_match_next):
2548 Likewise.
2549 * dwarf2read.c (dw2_lookup_symbol): Adjust to use lookup_name_info.
2550 (dw2_map_matching_symbols): Adjust to use symbol_name_match_type.
2551 (gdb_index_symbol_name_matcher): New class.
2552 (dw2_expand_symtabs_matching) Adjust to use lookup_name_info and
2553 gdb_index_symbol_name_matcher. Accept a NULL symbol_matcher.
2554 * f-lang.c (f_collect_symbol_completion_matches): Adjust to work
2555 with a symbol_name_match_type.
2556 (f_language_defn): Adjust comments to refer to
2557 la_get_symbol_name_matcher.
2558 * go-lang.c (go_language_defn): Adjust comments to refer to
2559 la_get_symbol_name_matcher.
2560 * language.c (default_symbol_name_matcher)
2561 (language_get_symbol_name_matcher): New functions.
2562 (unknown_language_defn, auto_language_defn): Adjust comments to
2563 refer to la_get_symbol_name_matcher.
2564 * language.h (symbol_name_cmp_ftype): Delete.
2565 (language_defn) <la_collect_symbol_completion_matches>: Add match
2566 type parameter.
2567 <la_get_symbol_name_cmp>: Delete field.
2568 <la_get_symbol_name_matcher>: New field.
2569 <la_iterate_over_symbols>: Adjust to use lookup_name_info.
2570 (default_symbol_name_matcher, language_get_symbol_name_matcher):
2571 Declare.
2572 * linespec.c (iterate_over_all_matching_symtabs)
2573 (iterate_over_file_blocks): Adjust to use lookup_name_info.
2574 (find_methods): Add language parameter, and use lookup_name_info
2575 and the language's symbol_name_matcher_ftype.
2576 (linespec_complete_function): Adjust.
2577 (lookup_prefix_sym): Use lookup_name_info.
2578 (add_all_symbol_names_from_pspace): Adjust.
2579 (find_superclass_methods): Add language parameter and pass it
2580 down.
2581 (find_method): Pass symbol language down.
2582 (find_linespec_symbols): Don't demangle or Ada encode here.
2583 (search_minsyms_for_name): Add lookup_name_info parameter.
2584 (add_matching_symbols_to_info): Add name_match_type parameter.
2585 Use lookup_name_info.
2586 * m2-lang.c (m2_language_defn): Adjust comments to refer to
2587 la_get_symbol_name_matcher.
2588 * minsyms.c: Include <algorithm>.
2589 (add_minsym_to_demangled_hash_table): Remove table parameter and
2590 add objfile parameter. Use search_name_hash, and add language to
2591 demangled languages vector.
2592 (struct found_minimal_symbols): New struct.
2593 (lookup_minimal_symbol_mangled, lookup_minimal_symbol_demangled):
2594 New functions.
2595 (lookup_minimal_symbol): Adjust to use them. Don't canonicalize
2596 input names here. Use lookup_name_info instead. Lookup up
2597 demangled names once for each language in the demangled names
2598 vector.
2599 (iterate_over_minimal_symbols): Use lookup_name_info. Lookup up
2600 demangled names once for each language in the demangled names
2601 vector.
2602 (build_minimal_symbol_hash_tables): Adjust.
2603 * minsyms.h (iterate_over_minimal_symbols): Adjust to pass down a
2604 lookup_name_info.
2605 * objc-lang.c (objc_language_defn): Adjust comment to refer to
2606 la_get_symbol_name_matcher.
2607 * objfiles.h: Include <vector>.
2608 (objfile_per_bfd_storage) <demangled_hash_languages>: New field.
2609 * opencl-lang.c (opencl_language_defn): Adjust comment to refer to
2610 la_get_symbol_name_matcher.
2611 * p-lang.c (pascal_language_defn): Adjust comment to refer to
2612 la_get_symbol_name_matcher.
2613 * psymtab.c (psym_lookup_symbol): Use lookup_name_info.
2614 (match_partial_symbol): Use symbol_name_match_type,
2615 lookup_name_info and psymbol_name_matches.
2616 (lookup_partial_symbol): Use lookup_name_info.
2617 (map_block): Use symbol_name_match_type and lookup_name_info.
2618 (psym_map_matching_symbols): Use symbol_name_match_type.
2619 (psymbol_name_matches): New.
2620 (recursively_search_psymtabs): Use lookup_name_info and
2621 psymbol_name_matches. Rename 'kind' parameter to 'domain'.
2622 (psym_expand_symtabs_matching): Use lookup_name_info. Rename
2623 'kind' parameter to 'domain'.
2624 * rust-lang.c (rust_language_defn): Adjust comment to refer to
2625 la_get_symbol_name_matcher.
2626 * symfile-debug.c (debug_qf_map_matching_symbols)
2627 (debug_qf_map_matching_symbols): Use symbol_name_match_type.
2628 (debug_qf_expand_symtabs_matching): Use lookup_name_info.
2629 * symfile.c (expand_symtabs_matching): Use lookup_name_info.
2630 * symfile.h (quick_symbol_functions) <map_matching_symbols>:
2631 Adjust to use symbol_name_match_type.
2632 <expand_symtabs_matching>: Adjust to use lookup_name_info.
2633 (expand_symtabs_matching): Adjust to use lookup_name_info.
2634 * symmisc.c (maintenance_expand_symtabs): Use
2635 lookup_name_info::match_any ().
2636 * symtab.c (symbol_matches_search_name): New.
2637 (eq_symbol_entry): Adjust to use lookup_name_info and the
2638 language's matcher.
2639 (demangle_for_lookup_info::demangle_for_lookup_info): New.
2640 (lookup_name_info::match_any): New.
2641 (iterate_over_symbols, search_symbols): Use lookup_name_info.
2642 (compare_symbol_name): Add language, lookup_name_info and
2643 completion_match_result parameters, and use them.
2644 (completion_list_add_name): Make extern. Add language and
2645 lookup_name_info parameters. Use them.
2646 (completion_list_add_symbol, completion_list_add_msymbol)
2647 (completion_list_objc_symbol): Add lookup_name_info parameters and
2648 adjust. Pass down language.
2649 (completion_list_add_fields): Add lookup_name_info parameters and
2650 adjust. Pass down language.
2651 (add_symtab_completions): Add lookup_name_info parameters and
2652 adjust.
2653 (default_collect_symbol_completion_matches_break_on): Add
2654 name_match_type parameter, and use it. Use lookup_name_info.
2655 (default_collect_symbol_completion_matches)
2656 (collect_symbol_completion_matches): Add name_match_type
2657 parameter, and pass it down.
2658 (collect_symbol_completion_matches_type): Adjust.
2659 (collect_file_symbol_completion_matches): Add name_match_type
2660 parameter, and use lookup_name_info.
2661 * symtab.h: Include <string> and "common/gdb_optional.h".
2662 (enum class symbol_name_match_type): New.
2663 (class ada_lookup_name_info): New.
2664 (struct demangle_for_lookup_info): New.
2665 (class lookup_name_info): New.
2666 (symbol_name_matcher_ftype): New.
2667 (SYMBOL_MATCHES_SEARCH_NAME): Use symbol_matches_search_name.
2668 (symbol_matches_search_name): Declare.
2669 (MSYMBOL_MATCHES_SEARCH_NAME): Delete.
2670 (default_collect_symbol_completion_matches)
2671 (collect_symbol_completion_matches)
2672 (collect_file_symbol_completion_matches): Add name_match_type
2673 parameter.
2674 (iterate_over_symbols): Use lookup_name_info.
2675 (completion_list_add_name): Declare.
2676 * utils.c (enum class strncmp_iw_mode): Moved to utils.h.
2677 (strncmp_iw_with_mode): Now extern.
2678 * utils.h (enum class strncmp_iw_mode): Moved from utils.c.
2679 (strncmp_iw_with_mode): Declare.
2680
2681 2017-11-08 Keith Seitz <keiths@redhat.com>
2682 Pedro Alves <palves@redhat.com>
2683
2684 * ada-lang.c (ada_language_defn): Install
2685 default_search_name_hash.
2686 * buildsym.c (struct buildsym_compunit): <language>: New field.
2687 (finish_block_internal): Pass language when creating dictionaries.
2688 (start_buildsym_compunit, start_symtab): New language parameters.
2689 Use them.
2690 (restart_symtab): Pass down compilation unit's language.
2691 * buildsym.h (enum language): Forward declare.
2692 (start_symtab): New 'language' parameter.
2693 * c-lang.c (c_language_defn, cplus_language_defn)
2694 (asm_language_defn, minimal_language_defn): Install
2695 default_search_name_hash.
2696 * coffread.c (coff_start_symtab): Adjust.
2697 * d-lang.c (d_language_defn): Install default_search_name_hash.
2698 * dbxread.c (struct symloc): Add 'pst_language' field.
2699 (PST_LANGUAGE): Define.
2700 (start_psymtab, read_ofile_symtab): Use it.
2701 (process_one_symbol): New 'language' parameter. Pass it down.
2702 * dictionary.c (struct dictionary) <language>: New field.
2703 (DICT_LANGUAGE): Define.
2704 (dict_create_hashed, dict_create_hashed_expandable)
2705 (dict_create_linear, dict_create_linear_expandable): New parameter
2706 'language'. Set the dictionary's language.
2707 (iter_match_first_hashed): Adjust to rename.
2708 (insert_symbol_hashed): Assert we don't see mismatching
2709 languages. Adjust to rename.
2710 (dict_hash): Rename to ...
2711 (default_search_name_hash): ... this and make extern.
2712 * dictionary.h (struct language_defn): Forward declare.
2713 (dict_create_hashed): New parameter 'language'.
2714 * dwarf2read.c (dwarf2_start_symtab): Pass down language.
2715 * f-lang.c (f_language_defn): Install default_search_name_hash.
2716 * go-lang.c (go_language_defn): Install default_search_name_hash.
2717 * jit.c (finalize_symtab): Pass compunit's language to dictionary
2718 creation.
2719 * language.c (unknown_language_defn, auto_language_defn):
2720 * language.h (language_defn::la_search_name_hash): New field.
2721 (default_search_name_hash): Declare.
2722 * m2-lang.c (m2_language_defn): Install default_search_name_hash.
2723 * mdebugread.c (new_block): New parameter 'language'.
2724 * mdebugread.c (parse_symbol): Pass symbol language to block
2725 allocation.
2726 (psymtab_to_symtab_1): Pass down language.
2727 (new_symtab): Pass compunit's language to block allocation.
2728 * objc-lang.c (objc_language_defn): Install
2729 default_search_name_hash.
2730 * opencl-lang.c (opencl_language_defn):
2731 * p-lang.c (pascal_language_defn): Install
2732 default_search_name_hash.
2733 * rust-lang.c (rust_language_defn): Install
2734 default_search_name_hash.
2735 * stabsread.h (enum language): Forward declare.
2736 (process_one_symbol): Add 'language' parameter.
2737 * symtab.c (search_name_hash): New function.
2738 * symtab.h (search_name_hash): Declare.
2739 * xcoffread.c (read_xcoff_symtab): Pass language to start_symtab.
2740
2741 2017-11-08 Pedro Alves <palves@redhat.com>
2742
2743 * cp-name-parser.y (main): Don't initialize extra_chars.
2744
2745 2017-11-07 Tom Tromey <tom@tromey.com>
2746
2747 * event-top.h (command_handler): Constify.
2748 * record-full.c (cmd_record_full_start): Update.
2749 * thread.c (thread_apply_all_command): Update.
2750 * printcmd.c (eval_command): Update.
2751 * mi/mi-main.c (mi_execute_cli_command): Update.
2752 (mi_execute_async_cli_command): Update.
2753 * tui/tui-stack.c (tui_update_command): Update.
2754 * cli/cli-interp.c (safe_execute_command): Constify.
2755 * record.c (record_start): Update.
2756 (record_start, record_stop, cmd_record_start): Update.
2757 * record-btrace.c (cmd_record_btrace_bts_start): Update.
2758 (cmd_record_btrace_pt_start): Update.
2759 (cmd_record_btrace_start): Update.
2760 (cmd_record_btrace_start): Update.
2761 * reverse.c (exec_reverse_once): Update.
2762 * python/python.c (execute_gdb_command): Don't copy the command.
2763 * event-top.c (command_line_handler): Update.
2764 (command_handler): Constify.
2765 * defs.h (deprecated_call_command_hook): Constify.
2766 * cli/cli-script.h (execute_user_command): Constify.
2767 * cli/cli-script.c (execute_user_command): Constify.
2768 (execute_cmd_pre_hook, execute_cmd_post_hook): Constify.
2769 (enum command_control_type): Update.
2770 * main.c (catch_command_errors): Remove non-const overload.
2771 (catch_command_errors_ftype): Remove.
2772 * python/py-cmd.c (cmdpy_function): Constify.
2773 * guile/scm-cmd.c (cmdscm_function): Constify.
2774 * cli/cli-dump.c (call_dump_func): Constify.
2775 * cli/cli-decode.c (do_const_cfunc): Constify.
2776 (do_sfunc): Constify.
2777 (cmd_func): Constify.
2778 * gdbcmd.h (execute_command, execute_command_to_string): Constify.
2779 * top.h (execute_command): Constify.
2780 * top.c (execute_command): Constify.
2781 (execute_command_to_string): Constify.
2782 (deprecated_call_command_hook): Constify.
2783 * command.h (cmd_func): Constify.
2784 * cli/cli-decode.h (struct cmd_list_element) <func>: Constify.
2785
2786 2017-11-07 Tom Tromey <tom@tromey.com>
2787
2788 * ada-lang.c (catch_ada_exception_command): Constify.
2789 (catch_assert_command): Constify.
2790 * break-catch-throw.c (catch_catch_command, catch_throw_command)
2791 (catch_rethrow_command): Constify.
2792 (catch_exception_command_1): Constify.
2793 * breakpoint.h (add_catch_command): Constify.
2794 * break-catch-syscall.c (catch_syscall_command_1): Constify.
2795 (catch_syscall_split_args): Constify.
2796 * break-catch-sig.c (catch_signal_command): Constify.
2797 (catch_signal_split_args): Constify.
2798 * cli/cli-decode.h (struct cmd_list_element) <function>: Use
2799 cmd_const_sfunc_ftype.
2800 * cli/cli-decode.c (add_setshow_cmd_full): Constify.
2801 (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd)
2802 (add_setshow_boolean_cmd, add_setshow_filename_cmd)
2803 (add_setshow_string_cmd, struct cmd_list_element)
2804 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
2805 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
2806 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd):
2807 Constify.
2808 (set_cmd_sfunc): Constify.
2809 (empty_sfunc): Constify.
2810 * command.h (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd)
2811 (add_setshow_boolean_cmd, add_setshow_filename_cmd)
2812 (add_setshow_string_cmd, add_setshow_string_noescape_cmd)
2813 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
2814 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
2815 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
2816 Constify.
2817 (set_cmd_sfunc): Constify.
2818 (cmd_sfunc_ftype): Remove.
2819 * compile/compile.c (set_compile_args): Constify.
2820 * infrun.c (set_disable_randomization): Constify.
2821 * infcmd.c (set_args_command, set_cwd_command): Constify.
2822 * breakpoint.c (set_condition_evaluation_mode): Constify.
2823 (add_catch_command): Constify.
2824 (catch_fork_command_1, catch_exec_command_1)
2825 (catch_load_command_1, catch_unload_command_1): Constify.
2826 (catch_load_or_unload): Constify.
2827 * guile/scm-param.c (pascm_set_func): Constify.
2828 (add_setshow_generic): Constify.
2829 * python/py-param.c (get_set_value): Constify.
2830 * top.h (set_verbose): Constify.
2831 * tui/tui-win.c (tui_set_var_cmd): Constify.
2832 * mi/mi-main.c (set_mi_async_command): Constify.
2833 * cli/cli-logging.c (set_logging_overwrite)
2834 (set_logging_redirect): Constify.
2835 * value.c (set_max_value_size): Constify.
2836 * valprint.c (set_input_radix, set_output_radix): Constify.
2837 * utils.c (set_width_command, set_height_command): Constify.
2838 * typeprint.c (set_print_type_methods, set_print_type_typedefs): Constify.
2839 * tracepoint.c (set_disconnected_tracing)
2840 (set_circular_trace_buffer, set_trace_buffer_size)
2841 (set_trace_user, set_trace_notes, set_trace_stop_notes): Constify.
2842 * top.c (set_history_size_command, set_verbose, set_editing)
2843 (set_gdb_datadir, set_history_filename): Constify.
2844 * target.c (set_targetdebug, maint_set_target_async_command)
2845 (maint_set_target_non_stop_command, set_target_permissions)
2846 (set_write_memory_permission): Constify.
2847 (open_target): Constify.
2848 * target-descriptions.c (set_tdesc_filename_cmd): Constify.
2849 * target-dcache.c (set_stack_cache, set_code_cache): Constify.
2850 * symtab.c (set_symbol_cache_size_handler): Constify.
2851 * symfile.c (set_ext_lang_command): Constify.
2852 * symfile-debug.c (set_debug_symfile): Constify.
2853 * source.c (set_directories_command): Constify.
2854 * solib.c (reload_shared_libraries, gdb_sysroot_changed): Constify.
2855 * serial.c (set_parity): Constify.
2856 * rs6000-tdep.c (powerpc_set_soft_float, powerpc_set_vector_abi): Constify.
2857 * remote.c (set_remote_exec_file, set_remotebreak)
2858 (set_remote_protocol_Z_packet_cmd, set_range_stepping): Constify.
2859 * record.c (set_record_insn_history_size)
2860 (set_record_call_history_size): Constify.
2861 * record-full.c (set_record_full_insn_max_num): Constify.
2862 * proc-api.c (set_procfs_trace_cmd, set_procfs_file_cmd): Constify.
2863 * osabi.c (set_osabi): Constify.
2864 * mips-tdep.c (set_mips64_transfers_32bit_regs)
2865 (reinit_frame_cache_sfunc, mips_abi_update): Constify.
2866 * maint.c (maintenance_set_profile_cmd): Constify.
2867 * linux-thread-db.c (set_libthread_db_search_path): Constify.
2868 * language.c (set_language_command, set_range_command)
2869 (set_case_command): Constify.
2870 * infrun.c (set_non_stop, set_observer_mode)
2871 (set_stop_on_solib_events, set_schedlock_func)
2872 (set_exec_direction_func): Constify.
2873 * infcmd.c (set_inferior_tty_command): Constify.
2874 * disasm.c (set_disassembler_options_sfunc): Constify.
2875 * demangle.c (set_demangling_command): Constify.
2876 * dcache.c (set_dcache_size, set_dcache_line_size): Constify.
2877 * cris-tdep.c (set_cris_version, set_cris_mode)
2878 (set_cris_dwarf2_cfi): Constify.
2879 * corefile.c (set_gnutarget_command): Constify.
2880 * charset.c (set_host_charset_sfunc, set_target_charset_sfunc)
2881 (set_target_wide_charset_sfunc): Constify.
2882 * breakpoint.c (update_dprintf_commands): Constify.
2883 * auto-load.c (set_auto_load_dir, set_auto_load_safe_path): Constify.
2884 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi)
2885 (set_disassembly_style_sfunc): Constify.
2886 * arch-utils.c (set_endian, set_architecture): Constify.
2887 * alpha-tdep.c (reinit_frame_cache_sfunc): Constify.
2888 * agent.c (set_can_use_agent): Constify.
2889
2890 2017-11-07 Tom Tromey <tom@tromey.com>
2891
2892 * go32-nat.c (go32_sysinfo, go32_sldt, go32_sgdt, go32_sidt)
2893 (go32_pde, go32_pte, go32_pte_for_address): Constify.
2894 * gnu-nat.c (_parse_bool_arg, show_thread_default_pause_cmd)
2895 (set_thread_default_pause_cmd, set_thread_default_run_cmd)
2896 (show_thread_default_run_cmd, set_thread_default_detach_sc_cmd)
2897 (parse_int_arg, show_thread_default_detach_sc_cmd)
2898 (set_signals_cmd, show_signals_cmd, set_sig_thread_cmd)
2899 (show_sig_thread_cmd, set_stopped_cmd, show_stopped_cmd)
2900 (set_exceptions_cmd, show_exceptions_cmd, set_task_pause_cmd)
2901 (show_task_pause_cmd, set_task_detach_sc_cmd)
2902 (show_task_detach_sc_cmd, set_task_exc_port_cmd)
2903 (set_noninvasive_cmd, set_thread_pause_cmd)
2904 (show_thread_pause_cmd, set_thread_run_cmd, show_thread_run_cmd)
2905 (set_thread_detach_sc_cmd, show_thread_detach_sc_cmd)
2906 (set_thread_exc_port_cmd, thread_takeover_sc_cmd): Constify.
2907 * windows-nat.c (display_selectors): Constify.
2908 * cli/cli-decode.h (struct cmd_list_element) <function>: Remove
2909 non-const "cfunc".
2910 * cli/cli-decode.c (set_cmd_cfunc): Remove non-const overload.
2911 (cmd_cfunc_eq): Likewise.
2912 (struct cmd_list_element): Likewise.
2913 (do_cfunc): Remove.
2914 (cli_user_command_p): Update.
2915 * command.h (add_cmd): Remove non-const overload.
2916 (cmd_cfunc_ftype): Remove typedef.
2917 (cmd_cfunc_eq): Remove non-const overload.
2918 * value.c (show_values): Constify.
2919 * thread.c (thread_apply_all_command): Constify.
2920 * symfile.c (load_command): Constify.
2921 * source.c (directory_command): Constify.
2922 * maint.c (maintenance_internal_error)
2923 (maintenance_demangler_warning, maintenance_space_display)
2924 (maintenance_print_architecture, maintenance_translate_address)
2925 (maintenance_info_selftests, maintenance_internal_warning):
2926 Constify.
2927 * breakpoint.c (disable_trace_command, enable_trace_command):
2928 Constify.
2929 * auto-load.c (info_auto_load_local_gdbinit, add_auto_load_dir):
2930 Constify.
2931 (add_auto_load_safe_path): Constify.
2932 * guile/scm-auto-load.c (info_auto_load_guile_scripts): Constify.
2933 * top.h (show_commands): Constify.
2934 * linux-thread-db.c (info_auto_load_libthread_db): Constify.
2935 * sparc64-tdep.c (adi_examine_command): Constify.
2936 (adi_assign_command): Constify.
2937
2938 2017-11-07 Tom Tromey <tom@tromey.com>
2939
2940 * frame.h (info_locals_command, info_args_command): Constify.
2941 * auto-load.h (auto_load_info_scripts): Constify.
2942 * inferior.h (registers_info): Constify.
2943 * copying.c: Rebuild.
2944 * copying.awk: Constify generated commands.
2945 * auto-load.c (auto_load_info_scripts)
2946 (info_auto_load_gdb_scripts): Constify.
2947 * cli/cli-decode.c (struct cmd_list_element): Take a
2948 cmd_const_cfunc_ftype.
2949 * command.h (add_info): Take a cmd_const_cfunc_ftype.
2950 * tui/tui-win.c (tui_all_windows_info): Constify.
2951 * python/py-auto-load.c (info_auto_load_python_scripts):
2952 Constify.
2953 * cli/cli-cmds.c (show_command): Remove non-const overload.
2954 * tracepoint.c (info_tvariables_command, info_scope_command):
2955 Constify.
2956 (info_static_tracepoint_markers_command): Constify.
2957 * thread.c (info_threads_command): Constify.
2958 (print_thread_info_1): Constify.
2959 * target.c (info_target_command): Constify.
2960 * symtab.c (info_sources_command, info_functions_command)
2961 (info_types_command): Constify.
2962 (info_variables_command): Remove non-const overload.
2963 * symfile.c (info_ext_lang_command): Constify.
2964 * stack.c (info_frame_command, info_locals_command)
2965 (info_args_command): Constify.
2966 (backtrace_command): Remove non-const overload.
2967 * source.c (info_source_command, info_line_command): Constify.
2968 * solib.c (info_sharedlibrary_command): Constify.
2969 * skip.c (info_skip_command): Constify.
2970 * ser-go32.c (info_serial_command): Constify.
2971 * reverse.c (info_bookmarks_command): Constify.
2972 * printcmd.c (info_symbol_command, info_address_command)
2973 (info_display_command): Constify.
2974 * osdata.c (info_osdata_command): Constify.
2975 * objc-lang.c (info_selectors_command, info_classes_command):
2976 Constify.
2977 * nto-procfs.c (procfs_pidlist, procfs_meminfo): Constify.
2978 * memattr.c (info_mem_command): Constify.
2979 * macrocmd.c (info_macro_command, info_macros_command): Constify.
2980 * linux-fork.c (info_checkpoints_command): Constify.
2981 * infrun.c (info_signals_command): Constify.
2982 * inflow.c (info_terminal_command): Constify.
2983 * inferior.c (info_inferiors_command): Constify.
2984 (print_inferior): Constify.
2985 * infcmd.c (info_program_command, info_all_registers_command)
2986 (info_registers_command, info_vector_command)
2987 (info_float_command): Constify.
2988 (registers_info): Constify.
2989 * gnu-nat.c (info_send_rights_cmd, info_recv_rights_cmd)
2990 (info_port_sets_cmd, info_dead_names_cmd, info_port_rights_cmd):
2991 Constify.
2992 * f-valprint.c (info_common_command): Constify.
2993 * dcache.c (info_dcache_command): Constify.
2994 (dcache_info_1): Constify.
2995 * darwin-nat-info.c (info_mach_tasks_command)
2996 (info_mach_task_command, info_mach_ports_command)
2997 (info_mach_port_command, info_mach_threads_command)
2998 (info_mach_thread_command, info_mach_regions_command)
2999 (info_mach_regions_recurse_command, info_mach_region_command)
3000 (info_mach_exceptions_command): Constify.
3001 (get_task_from_args): Constify.
3002 * cp-support.c (info_vtbl_command): Constify.
3003 * breakpoint.c (info_watchpoints_command)
3004 (info_tracepoints_command): Constify.
3005 (info_breakpoints_command): Remove non-const overload.
3006 * avr-tdep.c (avr_io_reg_read_command): Constify.
3007 * auxv.c (info_auxv_command): Constify.
3008 * ada-tasks.c (info_tasks_command): Constify.
3009 (info_task): Constify.
3010 * ada-lang.c (info_exceptions_command): Constify.
3011
3012 2017-11-07 Tom Tromey <tom@tromey.com>
3013
3014 * solib.h (no_shared_libraries): Constify.
3015 * frame.h (return_command): Constify.
3016 * cli/cli-cmds.h (quit_command): Constify.
3017 * top.h (quit_command, execute_command): Constify.
3018 * target.h (flash_erase_command): Constify.
3019 * inferior.h (set_inferior_args, attach_command): Constify.
3020 * tracepoint.h (start_tracing, stop_tracing): Constify.
3021 * breakpoint.h (break_command, tbreak_command)
3022 (hbreak_command_wrapper, thbreak_command_wrapper)
3023 (rbreak_command_wrapper, watch_command_wrapper)
3024 (awatch_command_wrapper, rwatch_command_wrapper)
3025 (get_tracepoint_by_number): Constify.
3026 * symtab.c (info_variables_command, rbreak_command)
3027 (symtab_symbol_info): Constify.
3028 (info_variables_command): Add non-const overload.
3029 * top.c (dont_repeat_command): Constify.
3030 * breakpoint.c (ignore_command, commands_command)
3031 (condition_command, tbreak_command, hbreak_command)
3032 (thbreak_command, clear_command, break_command)
3033 (info_breakpoints_command, watch_command, rwatch_command)
3034 (awatch_command, trace_command, ftrace_command, strace_command)
3035 (trace_pass_command, break_range_command, dprintf_command)
3036 (agent_printf_command, get_tracepoint_by_number)
3037 (watch_maybe_just_location, trace_pass_command): Constify.
3038 (info_breakpoints_command): Add non-const overload.
3039 * tracefile.c (tsave_command): Constify.
3040 * infcmd.c (attach_command, disconnect_command, signal_command)
3041 (queue_signal_command, stepi_command, nexti_command)
3042 (finish_command, next_command, step_command, until_command)
3043 (advance_command, jump_command, continue_command, run_command)
3044 (start_command, starti_command, interrupt_command)
3045 (run_command_1, set_inferior_args, step_1): Constify.
3046 * inferior.c (add_inferior_command, remove_inferior_command)
3047 (clone_inferior_command): Constify.
3048 * linux-fork.c (checkpoint_command, restart_command): Constify.
3049 * windows-nat.c (signal_event_command): Constify.
3050 * guile/guile.c (guile_repl_command, guile_command): Constify.
3051 * printcmd.c (x_command, display_command, printf_command)
3052 (output_command, set_command, call_command, print_command)
3053 (eval_command): Constify.
3054 (non_const_set_command): Remove.
3055 (_initialize_printcmd): Update.
3056 * source.c (forward_search_command, reverse_search_command):
3057 Constify.
3058 * jit.c (jit_reader_load_command, jit_reader_unload_command):
3059 Constify.
3060 * infrun.c (handle_command): Constify.
3061 * memattr.c (mem_command): Constify.
3062 * stack.c (return_command, up_command, up_silently_command)
3063 (down_command, down_silently_command, frame_command)
3064 (backtrace_command, func_command, backtrace_command_1): Constify.
3065 (backtrace_command): Add non-const overload.
3066 * remote-sim.c (simulator_command): Constify.
3067 * exec.c (set_section_command): Constify.
3068 * tracepoint.c (tdump_command, trace_variable_command)
3069 (tstatus_command, tstop_command, tstart_command)
3070 (end_actions_pseudocommand, while_stepping_pseudocommand)
3071 (collect_pseudocommand, teval_pseudocommand, actions_command)
3072 (start_tracing, stop_tracing): Constify.
3073 * value.c (init_if_undefined_command): Constify.
3074 * tui/tui-stack.c (tui_update_command): Constify.
3075 * tui/tui-win.c (tui_refresh_all_command)
3076 (tui_set_tab_width_command, tui_set_win_height_command)
3077 (tui_set_focus_command, tui_scroll_forward_command)
3078 (tui_scroll_backward_command, tui_scroll_left_command)
3079 (tui_scroll_right_command, parse_scrolling_args, tui_set_focus)
3080 (tui_set_win_height): Constify.
3081 * tui/tui-layout.c (tui_layout_command): Constify.
3082 * procfs.c (proc_trace_syscalls, proc_trace_sysentry_cmd)
3083 (proc_trace_sysexit_cmd, proc_untrace_sysentry_cmd)
3084 (proc_untrace_sysexit_cmd): Constify.
3085 * remote.c (threadlist_test_cmd, threadinfo_test_cmd)
3086 (threadset_test_cmd, threadlist_update_test_cmd)
3087 (threadalive_test): Constify.
3088 * objc-lang.c (print_object_command): Constify.
3089 * command.h (add_com): Constify.
3090 * cli/cli-dump.c (restore_command): Constify.
3091 * cli/cli-cmds.c (pwd_command, echo_command, quit_command)
3092 (help_command, complete_command, shell_command, edit_command)
3093 (list_command, disassemble_command, make_command)
3094 (apropos_command, alias_command): Constify.
3095 * cli/cli-script.c (document_command, define_command)
3096 (while_command, if_command, validate_comname): Constify.
3097 * cli/cli-decode.c (struct cmd_list_element): Change type of
3098 "fun".
3099 * target.c (do_monitor_command, flash_erase_command): Constify.
3100 * regcache.c (reg_flush_command): Constify.
3101 * reverse.c (reverse_step, reverse_next, reverse_stepi)
3102 (reverse_nexti, reverse_continue, reverse_finish)
3103 (save_bookmark_command, goto_bookmark_command)
3104 (exec_reverse_once): Constify.
3105 * python/python.c (python_interactive_command, python_command):
3106 Constify.
3107 * typeprint.c (ptype_command, whatis_command, whatis_exp):
3108 Constify.
3109 * solib.c (sharedlibrary_command, no_shared_libraries): Constify.
3110 * gcore.c (gcore_command): Constify.
3111
3112 2017-11-07 Tom Tromey <tom@tromey.com>
3113
3114 * printcmd.c (x_command): Call set_repeat_arguments.
3115 * cli/cli-cmds.c (list_command): Call set_repeat_arguments.
3116 * top.c (repeat_arguments): New global.
3117 (set_repeat_arguments): New function.
3118 (execute_command): Handle repeat_arguments.
3119 (show_commands): Calls set_repeat_arguments.
3120 * command.h (set_repeat_arguments): Declare.
3121
3122 2017-11-07 Tom Tromey <tom@tromey.com>
3123
3124 * stack.c (backtrace_command): Use std::string.
3125 (backtrace_command_1): Make "count_exp" const.
3126
3127 2017-11-07 Tom Tromey <tom@tromey.com>
3128
3129 * source.c (directory_switch, mod_path, add_path): Constify.
3130 * defs.h (add_path, mod_path, directory_switch): Constify.
3131 * mi/mi-cmd-env.c (env_mod_path): Constify.
3132
3133 2017-11-07 Tom Tromey <tom@tromey.com>
3134
3135 * infcmd.c (strip_bg_char): Return gdb::unique_xmalloc_ptr.
3136 (run_command_1, continue_command, step_1, jump_command)
3137 (signal_command, until_command, advance_command, finish_command)
3138 (attach_command): Update.
3139
3140 2017-11-07 Tom Tromey <tom@tromey.com>
3141
3142 * command.h (set_cmd_cfunc): Don't declare.
3143 * cli/cli-decode.c (set_cmd_cfunc): Now static.
3144
3145 2017-11-07 Tom Tromey <tom@tromey.com>
3146
3147 * stack.c (select_frame_command): Constify.
3148 * cli/cli-decode.c (add_com_suppress_notification): Constify.
3149 * command.h (add_com_suppress_notification): Constify.
3150
3151 2017-11-07 Tom Tromey <tom@tromey.com>
3152
3153 * breakpoint.c (stop_command): Constify.
3154 * cli/cli-decode.c (struct cmd_list_element): Constify.
3155 * command.h (add_abbrev_prefix_cmd): Constify.
3156
3157 2017-11-07 Pedro Alves <palves@redhat.com>
3158
3159 * breakpoint.c (extract_bp_kind): New enum.
3160 (extract_bp_num, extract_bp_or_bp_range): New functions, partially
3161 factored out from ...
3162 (extract_bp_number_and_location): ... here.
3163 * cli/cli-utils.c (get_number_trailer): Handle '-$variable'.
3164
3165 2017-11-07 Pedro Alves <palves@redhat.com>
3166
3167 * breakpoint.c (extract_bp_number_and_location): Change return
3168 type to void. Throw error instead of warning.
3169 (enable_disable_command): Adjust.
3170
3171 2017-11-07 Xavier Roirand <roirand@adacore.com>
3172 Pedro Alves <palves@redhat.com>
3173
3174 * breakpoint.c (map_breakpoint_number_range): New, factored out
3175 from ...
3176 (map_breakpoint_numbers): ... here.
3177 (find_location_by_number): Change parameters from string to
3178 breakpoint number and location.
3179 (extract_bp_number_and_location): New function.
3180 (enable_disable_bp_num_loc)
3181 (enable_disable_breakpoint_location_range)
3182 (enable_disable_command): New functions, factored out ...
3183 (enable_command, disable_command): ... these functions, and
3184 adjusted to support ranges.
3185 * NEWS: Document enable/disable breakpoint location range feature.
3186
3187 2017-11-06 Luis Machado <luis.machado@linaro.org>
3188
3189 * MAINTAINERS (Write After Approval): Update my e-mail address.
3190
3191 2017-11-06 Pedro Alves <palves@redhat.com>
3192
3193 * gnu-nat.c (gnu_terminal_init): Delete.
3194 (gnu_target): Don't install gnu_terminal_init.
3195 * inflow.c (child_terminal_init_with_pgrp): Delete, merged with ...
3196 (child_terminal_init): ... this function.
3197
3198 2017-11-06 Pedro Alves <palves@redhat.com>
3199
3200 * common/common.m4 (GDB_AC_COMMON): No longer check termio.h nor
3201 sgtty.h.
3202 * config.in, configure: Regenerate.
3203
3204 2017-11-06 Pedro Alves <palves@redhat.com>
3205
3206 * event-top.c: Check SIGTSTP instead of STOP_SIGNAL thoughout.
3207 (async_init_signals): Adjust.
3208 (handle_stop_sig): Rename to ...
3209 (handle_sigtstp): ... this.
3210 (async_stop_sig): Rename to ...
3211 (async_sigtstp_handler): ... this, and delete STOP_SIGNAL !=
3212 SIGTSTP path.
3213 * event-top.h: Move signal.h include to the top. Check SIGTSTP
3214 instead of STOP_SIGNAL thoughout.
3215 (handle_stop_sig): Rename to ...
3216 (handle_sigtstp): ... this.
3217 * top.c (command_line_input): Replace STOP_SIGNAL -> SIGTSTP.
3218
3219 2017-11-06 Pedro Alves <palves@redhat.com>
3220
3221 * inflow.c (child_terminal_inferior, child_terminal_ours_1): No
3222 longer set flags twice in row.
3223
3224 2017-11-06 Pedro Alves <palves@redhat.com>
3225
3226 * Makefile.in (SER_HARDWIRE): Update comment.
3227 (HFILES_NO_SRCDIR): Remove gdb_termios.h.
3228 * common/gdb_termios.h: Delete file.
3229 * common/job-control.c: Include termios.h and unistd.h instead of
3230 gdb_termios.h.
3231 (gdb_setpgid): Remove HAVE_TERMIOS || TIOCGPGRP preprocessor
3232 check.
3233 (have_job_control): Check HAVE_TERMIOS_H instead of HAVE_TERMIOS.
3234 Remove sgtty code.
3235 * configure.ac: No longer check for termio.h and sgtty.h.
3236 * configure: Regenerate.
3237 * inflow.c: Include termios.h instead of gdb_termios.h. Replace
3238 PROCESS_GROUP_TYPE checks with HAVE_TERMIOS_H checks throughout.
3239 Replace PROCESS_GROUP_TYPE references with pid_t references
3240 throughout.
3241 (gdb_getpgrp): Delete.
3242 (set_initial_gdb_ttystate): Use tcgetpgrp instead of gdb_getpgrp.
3243 (child_terminal_inferior): Remove comment. Remove sgtty code.
3244 (child_terminal_ours_1): Use tcgetpgrp directly instead of
3245 gdb_getpgrp. Use serial_set_tty_state instead aof
3246 serial_noflush_set_tty_state. Remove sgtty code.
3247 * inflow.h: Include unistd.h instead of gdb_termios.h. Replace
3248 PROCESS_GROUP_TYPE check with HAVE_TERMIOS_H check.
3249 (inferior_process_group): Now returns pid_t.
3250 * ser-base.c (ser_base_noflush_set_tty_state): Delete.
3251 * ser-base.h (ser_base_noflush_set_tty_state): Delete.
3252 * ser-event.c (serial_event_ops): Update.
3253 * ser-go32.c (dos_noflush_set_tty_state): Delete.
3254 (dos_ops): Update.
3255 * ser-mingw.c (hardwire_ops, tty_ops, pipe_ops, tcp_ops): Update.
3256 * ser-pipe.c (pipe_ops): Update.
3257 * ser-tcp.c (tcp_ops): Update.
3258 * ser-unix.c: Include termios.h instead of gdb_termios.h. Remove
3259 HAVE_TERMIOS checks.
3260 [HAVE_TERMIO] (struct hardwire_ttystate): Delete.
3261 [HAVE_SGTTY] (struct hardwire_ttystate): Delete.
3262 (get_tty_state, set_tty_state): Drop termio and sgtty code, and
3263 assume termios.
3264 (hardwire_noflush_set_tty_state): Delete.
3265 (hardwire_print_tty_state, hardwire_drain_output)
3266 (hardwire_flush_output, hardwire_flush_input)
3267 (hardwire_send_break, hardwire_raw, hardwire_setbaudrate)
3268 (hardwire_setstopbits, hardwire_setparity): Drop termio and sgtty
3269 code, and assume termios.
3270 (hardwire_ops): Update.
3271 (_initialize_ser_hardwire): Remove HAVE_TERMIOS check.
3272 * serial.c (serial_noflush_set_tty_state): Delete.
3273 * serial.h (serial_noflush_set_tty_state): Delete.
3274 (serial_ops::noflush_set_tty_state): Delete.
3275
3276 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3277
3278 * Makefile.in (SFILES): Remove doublest.c and dfp.c.
3279 (HFILES_NO_SRCDIR): Remove doublest.h and dfp.h.
3280 (COMMON_OBS): Remove doublest.o and dfp.o.
3281 Do not build target-float.c (instead of doublest.c)
3282 with -Wformat-nonliteral.
3283
3284 * doublest.c: Remove file.
3285 * doublest.h: Remove file.
3286 * dfp.c: Remove file.
3287 * dfp.h: Remove file.
3288
3289 * target-float.c: Do not include "doublest.h" and "dfp.h".
3290 (DOUBLEST): Move here from doublest.h.
3291 (enum float_kind): Likewise.
3292 (FLOATFORMAT_CHAR_BIT): Likewise.
3293 (FLOATFORMAT_LARGEST_BYTES): Likewise.
3294 (floatformat_totalsize_bytes): Move here from doublest.c. Make static.
3295 (floatformat_precision): Likewise.
3296 (floatformat_normalize_byteorder, get_field, put_field): Likewise.
3297 (floatformat_is_negative, floatformat_classify, floatformat_mantissa):
3298 Likewise.
3299 (host_float_format, host_double_format, host_long_double_format):
3300 Likewise.
3301 (floatformat_to_string, floatformat_from_string): Likewise.
3302 (floatformat_to_doublest): Likewise. Also, inline the original
3303 convert_floatformat_to_doublest.
3304 (floatformat_from_doublest): Likewise. Also, inline the original
3305 convert_floatformat_from_doublest.
3306
3307 Include "dpd/decimal128.h", "dpd/decimal64.h", and "dpd/decimal32.h".
3308 (MAX_DECIMAL_STRING): Move here from dfp.c.
3309 (match_endianness): Likewise.
3310 (set_decnumber_context, decimal_check_errors): Likewise.
3311 (decimal_from_number, decimal_to_number): Likewise.
3312 (decimal_to_string, decimal_from_string): Likewise. Make static.
3313 (decimal_from_longest, decimal_from_ulongest): Likewise.
3314 (decimal_to_longest): Likewise.
3315 (decimal_binop, decimal_is_zero, decimal_compare): Likewise.
3316 (decimal_convert): Likewise.
3317
3318 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3319
3320 * doublest.c: Do not include "gdbtypes.h".
3321 (extract_typed_floating): Remove.
3322 (store_typed_floating): Remove.
3323 (convert_typed_floating): Remove.
3324 * doublest.h (struct type): Remove.
3325 (DOUBLEST_PRINT_FORMAT): Remove.
3326 (DOUBLEST_SCAN_FORMAT): Remove.
3327 (extract_typed_floating): Remove.
3328 (store_typed_floating): Remove.
3329 (convert_typed_floating): Remove.
3330
3331 * dfp.c (decimal_from_doublest): Remove.
3332 (decimal_to_doublest): Remove.
3333 * dfp.h: Do not include "doublest.h".
3334 (decimal_from_doublest): Remove.
3335 (decimal_to_doublest): Remove.
3336
3337 * value.c: Do not include "doublest.h" and "dfp.h".
3338 (value_as_double): Remove.
3339 (unpack_double): Remove.
3340 (value_from_double): Remove.
3341 (value_from_decfloat): Remove.
3342 * value.h: Do not include "doublest.h".
3343 (value_as_double): Remove.
3344 (unpack_double): Remove.
3345 (value_from_double): Remove.
3346 (value_from_decfloat): Remove.
3347
3348 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3349
3350 * i386-tdep.c: Include "target-float.h". Do not include "doublest.h".
3351 (i386_extract_return_value): Use target_float_convert.
3352 (i386_store_return_value): Likewise.
3353 * i387-tdep.c (i387_register_to_value): Use target_float_convert.
3354 (i387_value_to_register): Likewise.
3355 * ia64-tdep.c: Include "target-float.h". Do not include "doublest.h".
3356 (ia64_register_to_value): Use target_float_convert.
3357 (ia64_value_to_register): Likewise.
3358 (ia64_extract_return_value): Likewise.
3359 (ia64_store_return_value): Likewise.
3360 (ia64_push_dummy_call): Likewise.
3361 * m68k-tdep.c: Include "target-float.h".
3362 (m68k_register_to_value): Use target_float_convert.
3363 (m68k_value_to_register): Likewise.
3364 (m68k_svr4_extract_return_value): Likewise.
3365 (m68k_svr4_store_return_value): Likewise.
3366 * ppc-sysv-tdep.c: Include "target-float.h".
3367 (ppc_sysv_abi_push_dummy_call): Use target_float_convert.
3368 (do_ppc_sysv_return_value): Likewise.
3369 (ppc64_sysv_abi_push_freg): Likewise.
3370 (ppc64_sysv_abi_return_value_base): Likewise.
3371 * rs6000-aix-tdep.c: Include "target-float.h".
3372 (rs6000_push_dummy_call): Use target_float_convert.
3373 (rs6000_return_value): Likewise.
3374 * rs6000-lynx178-tdep.c: Include "target-float.h".
3375 (rs6000_lynx178_push_dummy_call): Use target_float_convert.
3376 (rs6000_lynx178_return_value): Likewise.
3377 * rs6000-tdep.c: Include "target-float.h". Do not include "doublest.h".
3378 (rs6000_register_to_value): Use target_float_convert.
3379 (rs6000_value_to_register): Likewise.
3380 * arm-tdep.c: Include "target-float.h". Do not include "doublest.h".
3381 (arm_extract_return_value): Use target_float_convert.
3382 (arm_store_return_value): Likewise.
3383 * sh-tdep.c: Include "target-float.h". Do not include "doublest.h".
3384 (sh_register_convert_to_virtual): Use target_float_convert.
3385 (sh_register_convert_to_raw): Likewise.
3386 * sh64-tdep.c: Include "target-float.h".
3387 (sh64_extract_return_value): Use target_float_convert.
3388 (sh64_register_convert_to_virtual): Likewise.
3389 (sh64_register_convert_to_raw): Likewise. Fix argument types.
3390
3391 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3392
3393 * target-float.c (floatformat_to_host_double): New function.
3394 (floatformat_from_host_double): Likewise.
3395 (target_float_to_host_double): Likewise.
3396 (target_float_from_host_double): Likewise.
3397 * target-float.h (target_float_to_host_double): Add prototype.
3398 (target_float_from_host_double): Likewise.
3399
3400 * guile/scm-value.c: Include "target-float.h".
3401 (gdbscm_value_to_real): Use target_float_to_host_double.
3402 Handle integer source values via value_as_long.
3403 * guile/scm-math.c: Include "target-float.h". Do not include
3404 "doublest.h", "dfp.h", and "expression.h".
3405 (vlscm_convert_typed_number): Use target_float_from_host_double.
3406 (vlscm_convert_number): Likewise.
3407
3408 * python/py-value.c (valpy_float): Use target_float_to_host_double.
3409 (convert_value_from_python): Use target_float_from_host_double.
3410
3411 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3412
3413 * ada-lang.c (cast_to_fixed): Reimplement in target arithmetic.
3414 (cast_from_fixed): Likewise.
3415 (ada_scaling_type): New function.
3416 (ada_delta): Return value instead of DOUBLEST. Perform target
3417 arithmetic instead of host arithmetic.
3418 (scaling_factor): Rename to ...
3419 (ada_scaling_factor) ... this. Make non-static. Return value instead
3420 of DOUBLEST. Perform target arithmetic instead of host arithmetic.
3421 (ada_fixed_to_float): Remove.
3422 (ada_float_to_fixed): Remove.
3423 * ada-lang.h (ada_fixed_to_float): Remove.
3424 (ada_float_to_fixed): Remove.
3425 (ada_delta): Return value instead of DOUBLEST.
3426 (ada_scaling_factor): Add prototype.
3427
3428 * ada-typeprint.c: Include "target-float.h".
3429 (print_fixed_point_type): Perform target arithmetic instead of
3430 host arithmetic.
3431 * ada-valprint.c: Include "target-float.h".
3432 (ada_val_print_num): Perform target arithmetic instead of
3433 host arithmetic for fixed-point types.
3434
3435 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3436
3437 * target-float.c: Include <math.h>.
3438 (floatformat_binop): New function.
3439 (floatformat_compare): Likewise.
3440 (target_float_binop): Likewise.
3441 (target_float_compare): Likewise.
3442 * target-float.h: Include "expression.h".
3443 (target_float_binop): Add prototype.
3444 (target_float_compare): Likewise.
3445
3446 * valarith.c: Do not include "doublest.h" and "dfp.h".
3447 Include "common/byte-vector.h".
3448 (value_args_as_decimal): Remove, replace by ...
3449 (value_args_as_target_float): ... this function. Handle both
3450 binary and decimal target floating-point formats.
3451 (scalar_binop): Handle both binary and decimal FP using
3452 value_args_as_target_float and target_float_binop.
3453 (value_equal): Handle both binary and decimal FP using
3454 value_args_as_target_float and target_float_compare.
3455 (value_less): Likewise.
3456 (value_pos): Handle all scalar types as simple copy.
3457 (value_neg): Handle all scalar types via BINOP_SUB from 0.
3458 * dfp.c (decimal_binop): Throw error instead of internal_error
3459 when called with an unsupported operation code.
3460
3461 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3462
3463 * target-float.c (target_float_to_string): New function.
3464 (target_float_from_string): New function.
3465 * target-float.h (target_float_to_string): Add prototype.
3466 (target_float_from_string): Add prototype.
3467
3468 * valprint.c: Include "target-float.h". Do not include
3469 "doublest.h" and "dfp.h".
3470 (print_floating): Use target_float_to_string.
3471 * printcmd.c: Include "target-float.h". Do not include "dfp.h".
3472 (printf_floating): Use target_float_to_string.
3473 * i387-tdep.c: Include "target-float.h". Do not include "doublest.h".
3474 (print_i387_value): Use target_float_to_string.
3475 * mips-tdep.c: Include "target-float.h".
3476 (mips_print_fp_register): Use target_float_to_string.
3477 * sh64-tdep.c: Include "target-float.h".
3478 (sh64_do_fp_register): Use target_float_to_string.
3479
3480 * parse.c: Include "target-float.h". Do not include
3481 "doublest.h" and "dfp.h".
3482 (parse_float): Use target_float_from_string.
3483 * stabsread.c: Include "target-float.h". Do not include "doublest.h".
3484 (define_symbol): Use target_float_from_string.
3485 * gdbarch-selftests.c: Include "target-float.h".
3486 (register_to_value_test): Use target_float_from_string.
3487
3488 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3489
3490 * Makefile.c (SFILES): Add target-float.c.
3491 (HFILES_NO_SRCDIR): Add target-float.h.
3492 (COMMON_OBS): Add target-float.o.
3493 * target-float.h: New file.
3494 * target-float.c: New file.
3495
3496 * doublest.c (floatformat_classify): Fix detection of float_zero.
3497
3498 * gdbtypes.c (is_floating_type): New function.
3499 * gdbtypes.h (is_floating_type): Add prototype.
3500
3501 * value.c: Do not include "floatformat.h".
3502 (unpack_double): Use target_float_is_valid.
3503 (is_floating_value): New function.
3504 * value.h (is_floating_value): Add prototype-
3505
3506 * valarith.c: Include "target-float.h".
3507 (value_logical_not): Use target_float_is_zero.
3508
3509 * python/py-value.c: Include "target-float.h".
3510 (valpy_nonzero): Use target_float_is_zero.
3511
3512 2017-11-04 Tom Tromey <tom@tromey.com>
3513
3514 * h8300-tdep.c (h8300_push_dummy_call): Use std::vector.
3515
3516 2017-11-04 Tom Tromey <tom@tromey.com>
3517
3518 * breakpoint.c (set_momentary_breakpoint): Return
3519 breakpoint_up.
3520 (until_break_command): Update.
3521 (new_until_break_fsm): Change argument types to
3522 breakpoint_up.
3523 (set_momentary_breakpoint_at_pc): Return breakpoint_up.
3524 (do_delete_breakpoint_cleanup, make_cleanup_delete_breakpoint):
3525 Remove.
3526 * infcmd.c (finish_forward): Update.
3527 * breakpoint.h (set_momentary_breakpoint)
3528 (set_momentary_breakpoint_at_pc): Return breakpoint_up.
3529 (make_cleanup_delete_breakpoint): Remove.
3530 (struct breakpoint_deleter): New.
3531 (breakpoint_up): New typedef.
3532 * infrun.c (insert_step_resume_breakpoint_at_sal_1): Update.
3533 (insert_exception_resume_breakpoint): Update.
3534 (insert_exception_resume_from_probe): Update.
3535 (insert_longjmp_resume_breakpoint): Update.
3536 * arm-linux-tdep.c (arm_linux_copy_svc): Update.
3537 * elfread.c (elf_gnu_ifunc_resolver_stop): Update.
3538 * infcall.c (call_function_by_hand_dummy): Update
3539
3540 2017-11-04 Tom Tromey <tom@tromey.com>
3541
3542 * c-typeprint.c (c_type_print_base): Use gdb::unique_xmalloc_ptr.
3543
3544 2017-11-04 Tom Tromey <tom@tromey.com>
3545
3546 * linux-tdep.c (linux_core_info_proc_mappings): Use
3547 gdb::def_vector.
3548 (linux_get_siginfo_data): Return gdb::byte_vector. Remove
3549 "size" argument.
3550 (linux_corefile_thread): Update.
3551 (linux_make_corefile_notes): Remove unused variable.
3552
3553 2017-11-04 Tom Tromey <tom@tromey.com>
3554
3555 * ppc-linux-tdep.c (ppc_linux_get_syscall_number): Use
3556 gdb::byte_vector.
3557
3558 2017-11-04 Tom Tromey <tom@tromey.com>
3559
3560 * objfiles.c (do_free_objfile_cleanup): Remove.
3561 * compile/compile-object-load.c (compile_object_load): Update.
3562 * objfiles.h (make_cleanup_free_objfile): Remove.
3563
3564 2017-11-04 Tom Tromey <tom@tromey.com>
3565
3566 * sparc64-tdep.c (do_examine): Use gdb::def_vector.
3567 (adi_read_versions): Change "tags" to "gdb_byte *".
3568 (adi_print_versions): Likewise.
3569
3570 2017-11-04 Tom Tromey <tom@tromey.com>
3571
3572 * breakpoint.c
3573 (scoped_rbreak_breakpoints::scoped_rbreak_breakpoints): Rename
3574 from start_rbreak_breakpoints.
3575 (scoped_rbreak_breakpoints): Rename from end_rbreak_breakpoints.
3576 * breakpoint.h (class scoped_rbreak_breakpoints): New.
3577 (start_rbreak_breakpoints, end_rbreak_breakpoints): Remove.
3578 * symtab.c (do_end_rbreak_breakpoints): Remove.
3579 (rbreak_command): Use scoped_rbreak_breakpoints, std::string.
3580
3581 2017-11-04 Tom Tromey <tom@tromey.com>
3582
3583 * cp-namespace.c (reset_directive_searched): Remove.
3584 (cp_lookup_symbol_via_imports): Use scoped_restore.
3585 * cp-support.c (reset_directive_searched): Remove.
3586 (make_symbol_overload_list_using): Use scoped_restore.
3587 * d-namespace.c (d_lookup_symbol_imports): Use scoped_restore.
3588 (reset_directive_searched): Remove.
3589
3590 2017-11-04 Tom Tromey <tom@tromey.com>
3591
3592 * symfile.c (find_separate_debug_file_by_debuglink): Use
3593 unique_xmalloc_ptr.
3594
3595 2017-11-04 Tom Tromey <tom@tromey.com>
3596
3597 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
3598 type of "info".
3599 (compute_stack_depth): Likewise.
3600 (do_compile_dwarf_expr_to_c): Use std::vector.
3601
3602 2017-11-04 Tom Tromey <tom@tromey.com>
3603
3604 * compile/compile-object-load.c (link_callbacks_einfo): Use
3605 std::string.
3606
3607 2017-11-04 Tom Tromey <tom@tromey.com>
3608
3609 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
3610 Use scoped_free_pendings.
3611 * dbxread.c (dbx_symfile_read, dbx_psymtab_to_symtab_1): Use
3612 scoped_free_pendings.
3613 * xcoffread.c (xcoff_psymtab_to_symtab_1): Use scoped_free_pendings.
3614 (xcoff_initial_scan): Likewise.
3615 * buildsym.c (reset_symtab_globals): Update comment.
3616 (scoped_free_pendings): Rename from really_free_pendings.
3617 (prepare_for_building): Update comment.
3618 (buildsym_init): Likewise.
3619 * buildsym.h (class scoped_free_pendings): New class.
3620 (really_free_pendings): Don't declare.
3621
3622 2017-11-03 Ulrich Weigand <uweigand@de.ibm.com>
3623
3624 * doublest.c (convert_doublest_to_floatformat): Fix uninitialized
3625 output when converting a zero value to a special byteorder format.
3626
3627 2017-11-02 Yao Qi <yao.qi@linaro.org>
3628
3629 * frame.c (do_frame_register_read): Remove aspace.
3630 * jit.c (jit_frame_sniffer): Likwise.
3631 * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
3632 * regcache.c (regcache::regcache): Pass nullptr.
3633 (regcache_print): Caller updated.
3634 * regcache.h (regcache::regcache): Remove one constructor
3635 parameter aspace.
3636
3637 2017-11-02 Yao Qi <yao.qi@linaro.org>
3638
3639 * regcache.h (regcache) <m_readonly_p>: Change it to const bool.
3640
3641 2017-11-02 Yao Qi <yao.qi@linaro.org>
3642
3643 * breakpoint.c (insert_single_step_breakpoints): Update.
3644 * frame.c (struct frame_info) <aspace>: Add const.
3645 (frame_save_as_regcache): Add const.
3646 (get_frame_address_space): Return const address_space *.
3647 * frame.h (get_frame_address_space): Update declaration.
3648 * infrun.c (struct step_over_info) <aspace>: Add const.
3649 (set_step_over_info): Make aspace const.
3650 (displaced_step_prepare_throw): Change variable const.
3651 (resume): Likewise.
3652 (proceed): Likewise.
3653 (adjust_pc_after_break): Likewise.
3654 (save_waitstatus): Likewise.
3655 (handle_signal_stop): Likewise.
3656 (keep_going_pass_signal): Likewise.
3657 * jit.c (jit_frame_sniffer): Add const.
3658 * mips-tdep.c (mips_single_step_through_delay): Likewise.
3659 * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
3660 * record-full.c (record_full_wait_1): Likewise.
3661 * regcache.c (regcache::regcache): Change parameter to const.
3662 * regcache.h (regcache::regcache): Likewise.
3663 (regcache::aspace): Return const address_space *.
3664 (regcache) <m_aspace>: Add const.
3665
3666 2017-11-02 Yao Qi <yao.qi@linaro.org>
3667
3668 * darwin-nat.c (cancel_breakpoint): Use regcache->aspace ().
3669 * frame.c (create_sentinel_frame): Likewise.
3670 * infrun.c (displaced_step_prepare_throw): Likewise.
3671 (resume): Likewise.
3672 (thread_still_needs_step_over_bp): Likewise.
3673 (proceed): Likewise.
3674 (do_target_wait): Likewise.
3675 (adjust_pc_after_break): Likewise.
3676 (handle_syscall_event): Likewise.
3677 (save_waitstatus): Likewise.
3678 (handle_inferior_event_1): Likewise.
3679 (handle_signal_stop): Likewise.
3680 (keep_going_pass_signal): Likewise.
3681 * linux-nat.c (status_callback): Likewise.
3682 (save_stop_reason): Likewise.
3683 (resume_stopped_resumed_lwps): Likewise.
3684 * record-full.c (record_full_exec_insn): Likewise.
3685 (record_full_wait_1): Likewise.
3686 * regcache.c (get_regcache_aspace): Remove.
3687 * regcache.h (get_regcache_aspace): Remove.
3688
3689 2017-11-02 Yao Qi <yao.qi@linaro.org>
3690
3691 * regcache.c (struct regcache_descr) <nr_raw_registers>: Remove.
3692 (init_regcache_descr): Use gdbarch_num_regs.
3693 (regcache::regcache): Likewise.
3694 (regcache::get_register_status): Likewise.
3695 (regcache::assert_raw_regnum): Likewise.
3696 (regcache::cooked_read): Likewise.
3697 (regcache::cooked_read_value): Likewise.
3698 (regcache::cooked_write): Likewise.
3699 (regcache::dump): Likewise.
3700 (regcache::num_raw_registers): New method.
3701 * regcache.h (class regcache) <num_raw_registers>: New.
3702
3703 2017-11-02 Yao Qi <yao.qi@linaro.org>
3704
3705 * regcache.c (regcache::assert_regnum): New method.
3706 (regcache::invalidate): Call assert_regnum.
3707 (regcache::raw_update): Likewise.
3708 (regcache::raw_write): Likewise.
3709 (regcache::raw_read_part): Likewise.
3710 (regcache::raw_write_part): Likewise.
3711 (regcache::raw_supply): Likewise.
3712 (regcache::raw_supply_integer): Likewise.
3713 (regcache::raw_supply_zeroed): Likewise.
3714 (regcache::raw_collect): Likewise.
3715 (regcache::raw_collect_integer): Likewise.
3716 * regcache.h (regcache::assert_regnum): Declare.
3717
3718 2017-11-02 Yao Qi <yao.qi@linaro.org>
3719
3720 * regcache.c (regcache::dump): Remove code.
3721
3722 2017-11-02 Yao Qi <yao.qi@linaro.org>
3723
3724 * regcache.c (struct regcache_descr) <sizeof_raw_register_status>:
3725 Remove.
3726 <sizeof_cooked_register_status>: Remove.
3727 (init_regcache_descr): Update.
3728 (regcache::regcache): Use nr_cooked_registers and nr_raw_registers.
3729 (regcache::save): Likewise.
3730 (regcache::dump): Likewise.
3731
3732 2017-11-01 James Bowman <james.bowman@ftdichip.com>
3733
3734 * ft32-tdep.c (ft32_fetch_instruction): New function.
3735 (ft32_analyze_prologue): Use ft32_fetch_instruction().
3736
3737 2017-10-31 Simon Marchi <simon.marchi@polymtl.ca>
3738
3739 * cli/cli-script.c (execute_control_command): Rename to ...
3740 (execute_control_command_1): ... this.
3741 (execute_control_command): New function.
3742
3743 2017-10-31 Simon Marchi <simon.marchi@ericsson.com>
3744
3745 * tracepoint.c (tfind_command): Remove const_cast.
3746
3747 2017-10-30 Mike Gulick <mgulick@mathworks.com>
3748
3749 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to gdb.h.
3750
3751 2017-10-30 Simon Marchi <simon.marchi@ericsson.com>
3752
3753 * common/common-utils.h (in_inclusive_range): New function.
3754 * arm-tdep.c (arm_record_extension_space): Use
3755 in_inclusive_range.
3756 (thumb_record_ld_st_reg_offset): Use in_inclusive_range.
3757 * cris-tdep.c (cris_spec_reg_applicable): Use
3758 in_inclusive_range.
3759
3760 2017-10-30 Pedro Alves <palves@redhat.com>
3761 Simon Marchi <simon.marchi@ericsson.com>
3762
3763 * remote.c (remote_set_syscall_catchpoint): Build a std::string
3764 instead of a gdb::unique_xmalloc_ptr, using string_appendf.
3765
3766 2017-10-30 Pedro Alves <palves@redhat.com>
3767
3768 * common/common-utils.c (string_appendf, string_vappendf): New
3769 functions.
3770 * common/common-utils.h (string_appendf, string_vappendf): New
3771 declarations.
3772 * unittests/common-utils-selftests.c (string_appendf_func)
3773 (test_appendf_func, string_vappendf_wrapper, string_appendf_tests)
3774 (string_vappendf_tests): New functions.
3775 (_initialize_common_utils_selftests): Register "string_appendf" and
3776 "string_vappendf tests".
3777
3778 2017-10-30 Pedro Alves <palves@redhat.com>
3779
3780 * unittests/common-utils-selftests.c (format_func): New typedef.
3781 (string_printf_tests, string_vprintf_tests): Tests factored out
3782 and merged to ...
3783 (test_format_func): ... this new function.
3784 (string_printf_tests, string_vprintf_tests): Reimplement on top of
3785 test_format_func.
3786
3787 2017-10-29 Simon Marchi <simon.marchi@ericsson.com>
3788
3789 * darwin-nat.c: Remove include of gdb.h.
3790
3791 2017-10-29 Simon Marchi <simon.marchi@ericsson.com>
3792
3793 * xtensa-xtregs.c: Fix formatting issues.
3794
3795 2017-10-29 Simon Marchi <simon.marchi@ericsson.com>
3796
3797 * xtensa-xtregs.c (xtensa_regtable_t) <name>: Constify.
3798
3799 2017-10-28 Maksim Dzabraev <dzabraew@gmail.com>
3800
3801 PR python/21213
3802 * python/py-infthread.c (thpy_get_inferior): Increment reference
3803 of inferior before returning it.
3804
3805 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3806
3807 * unittests/common-utils-selftests.c (format): Add
3808 ATTRIBUTE_PRINTF.
3809
3810 2017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
3811
3812 * xml-syscall.c (struct syscall_desc): Add constructor.
3813 <name>: Change type to std::string.
3814 (syscall_desc_up): New typedef.
3815 (syscall_desc_p): Remove typeder.
3816 (DEF_VEC_P(syscall_desc_p)): Remove.
3817 (struct syscall_group_desc): Add constructor.
3818 <name>: Change type to std::string.
3819 <syscalls>: Change type to std::vector.
3820 (syscall_group_desc_up): New typedef.
3821 (syscall_group_desc_p): Remove typedef.
3822 (DEF_VEC_P(syscall_group_desc_p)): Remove.
3823 (struct syscalls_info) <syscalls>: Change type to std::vector of
3824 unique_ptr.
3825 <groups>: Likewise.
3826 <my_gdb_datadir>: Change type to std::string.
3827 (syscalls_info_up): New typedef.
3828 (allocate_syscalls_info): Remove.
3829 (syscalls_info_free_syscalls_desc): Remove.
3830 (syscalls_info_free_syscall_group_desc): Remove.
3831 (free_syscalls_info): Remove.
3832 (make_cleanup_free_syscalls_info): Remove.
3833 (syscall_group_create_syscall_group_desc): Adjust.
3834 (syscall_group_add_syscall): Adjust.
3835 (syscall_create_syscall_desc): Adjust.
3836 (syscall_parse_xml): Adjust, use unique_ptr instead of cleanup.
3837 (init_syscalls_info): Adjust.
3838 (syscall_group_get_group_by_name): Adjust.
3839 (xml_get_syscall_number): Adjust.
3840 (xml_get_syscall_name): Adjust.
3841 (xml_list_of_syscalls): Adjust.
3842 (xml_list_syscalls_by_group): Adjust.
3843 (xml_list_of_groups): Adjust.
3844
3845 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3846
3847 * probe.h: Don't include gdb_vecs.h.
3848 (DEF_VEC_P (probe_p)): Remove.
3849 (find_probes_in_objfile): Return an std::vector.
3850 * probe.c (find_probes_in_objfile): Likewise.
3851 * breakpoint.c (breakpoint_objfile_data)
3852 <longjmp_probes>: Change type to std::vector.
3853 <exception_probes>: Likewise.
3854 (free_breakpoint_probes): Don't manually free vectors.
3855 (create_longjmp_master_breakpoint): Adjust.
3856 (create_exception_master_breakpoint): Adjust.
3857 * solib-svr4.c (svr4_create_probe_breakpoints): Change
3858 parameter type, adjust.
3859 (svr4_create_solib_event_breakpoints): Adjust.
3860
3861 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3862
3863 * breakpoint.c (breakpoint_objfile_data): Initialize fields.
3864 (get_breakpoint_objfile_data): Allocate breakpoint_objfile_data
3865 with new.
3866 (free_breakpoint_probes): Rename to ...
3867 (free_breakpoint_objfile_data): ... this, and call delete on
3868 bp_objfile_data..
3869
3870 2017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
3871
3872 * auto-load.c: Don't include gdb_vecs.h, include algorithm.
3873 (loaded_script_ptr): Remove typedef.
3874 (DEF_VEC_P (loaded_script_ptr)): Remove.
3875 (struct collect_matching_scripts_data): Add constructor.
3876 <scripts_p>: Change type to (pointer to) std::vector.
3877 (collect_matching_scripts_data): Adjust.
3878 (sort_scripts_by_name): Make suitable for std::sort.
3879 (print_scripts): Don't sort vector, adjust to std::vector.
3880 (auto_load_info_scripts): Sort vectors, adjust to std::vector.
3881
3882 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3883
3884 * symfile.c (filename_language): Make struct, not typedef. Add
3885 constructor.
3886 <ext>: Change type to std::string.
3887 (DEF_VEC_O (filename_language)): Remove.
3888 (filename_language_table): Change type to std::vector.
3889 (add_filename_language): Adjust.
3890 (set_ext_lang_command): Adjust.
3891 (info_ext_lang_command): Adjust.
3892 (deduce_language_from_filename): Adjust.
3893 (class scoped_restore_filename_language_table): Remove.
3894 (test_filename_language): Use scoped_restore.
3895 (test_set_ext_lang_command): Use scoped_restore, adjust to
3896 std::vector change.
3897
3898 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3899
3900 * symfile.c: Include selftest.h.
3901 (class scoped_restore_filename_language_table): New.
3902 (test_filename_language): New test.
3903 (test_set_ext_lang_command): New test.
3904 (_initialize_symfile): Register tests.
3905
3906 2017-10-27 Keith Seitz <keiths@redhat.com>
3907
3908 * breakpoint.c (print_breakpoint_location): Use the symbol saved
3909 in the bp_location, falling back to find_pc_sect_function when
3910 needed.
3911 (add_location_to_breakpoint): Save sal->symbol.
3912 * breakpoint.h (struct bp_location) <symbol>: New field.
3913 * symtab.c (find_function_start_sal): Save the symbol into the SaL.
3914 * symtab.h (struct symtab_and_line) <symbol>: New field.
3915
3916 2017-10-26 Patrick Frants <osscontribute@gmail.com>
3917
3918 PR gdb/13669
3919 * cp-valprint.c (cp_print_value_fields): Use obstack_blank_fast
3920 to rewind obstack.
3921
3922 2017-10-26 Pedro Alves <palves@redhat.com>
3923
3924 * remote.c (remote_async_terminal_ours_p): Delete.
3925 (remote_open_1, remote_terminal_inferior, remote_terminal_ours):
3926 Remove references to 'remote_async_terminal_ours_p'.
3927
3928 2017-10-26 Yao Qi <yao.qi@linaro.org>
3929
3930 * breakpoint.h (regular_breakpoint_inserted_here_p): Remove.
3931
3932 2017-10-26 Yao Qi <yao.qi@linaro.org>
3933
3934 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Make
3935 aspace const.
3936 * break-catch-syscall.c (breakpoint_hit_catch_syscall):
3937 Likewise.
3938 * breakpoint.c (bpstat_check_location): Remove cast.
3939 (breakpoint_hit_catch_fork): Make aspce const.
3940 (breakpoint_hit_catch_solib): Likewise.
3941 (breakpoint_hit_catch_exec): Likewise.
3942 (breakpoint_hit_ranged_breakpoint): Likewise.
3943 (breakpoint_hit_watchpoint): Likewise.
3944 (base_breakpoint_breakpoint_hit): Likewise.
3945 (bkpt_breakpoint_hit): Likewise.
3946 (dprintf_breakpoint_hit): Likewise.
3947 (tracepoint_breakpoint_hit): Likewise.
3948 * breakpoint.h (breakpoint_ops) <breakpoint_hit>: Likewise.
3949
3950 2017-10-26 Yao Qi <yao.qi@linaro.org>
3951
3952 * breakpoint.c (breakpoint_location_address_match): Change
3953 "struct address_space *" to "const address_space".
3954 (breakpoint_location_address_range_overlap): Likewise.
3955 (breakpoint_here_p): Likewise.
3956 (breakpoint_in_range_p): Likewise.
3957 (moribund_breakpoint_here_p): Likewise.
3958 (bp_location_inserted_here_p): Likewise.
3959 (software_breakpoint_inserted_here_p): Likewise.
3960 (hardware_breakpoint_inserted_here_p): Likewise.
3961 (hardware_watchpoint_inserted_in_range): Likewise.
3962 (bpstat_check_location): Likewise.
3963 (bpstat_stop_status): Likewise.
3964 (breakpoint_address_match): Likewise.
3965 (breakpoint_address_match_range): Likewise.
3966 (breakpoint_location_address_match): Likewise.
3967 (breakpoint_location_address_range_overlap): Likewise.
3968 (insert_single_step_breakpoint): Likewise.
3969 (breakpoint_has_location_inserted_here): Likewise.
3970 (single_step_breakpoint_inserted_here_p): Likewise.
3971 (pc_at_non_inline_function): Likewise.
3972 * breakpoint.h (bpstat_stop_status): Update declaration.
3973 (breakpoint_here_p): Likewise.
3974 (breakpoint_in_range_p): Likewise.
3975 (moribund_breakpoint_here_p): Likewise.
3976 (breakpoint_inserted_here_p): Likewise.
3977 (software_breakpoint_inserted_here_p): Likewise.
3978 (hardware_breakpoint_inserted_here_p): Likewise.
3979 (breakpoint_has_location_inserted_here): Likewise.
3980 (single_step_breakpoint_inserted_here_p): Likewise.
3981 (hardware_watchpoint_inserted_in_range): Likewise.
3982 (breakpoint_address_match): Likewise.
3983 (insert_single_step_breakpoint): Likewise.
3984 (pc_at_non_inline_function): Likewise.
3985 * gdbthread.h (thread_has_single_step_breakpoint_here): Likewise.
3986 * record.c (record_check_stopped_by_breakpoint): Likewise.
3987 * record.h (record_check_stopped_by_breakpoint): Likewise.
3988 * thread.c (thread_has_single_step_breakpoint_here): Likewise.
3989
3990 2017-10-25 Yao Qi <yao.qi@linaro.org>
3991
3992 * aarch32-linux-nat.c (aarch32_gp_regcache_supply): Use
3993 regcache->arch () instead get_regcache_arch.
3994 * aarch64-fbsd-nat.c (aarch64_fbsd_fetch_inferior_registers):
3995 Likewise.
3996 (aarch64_fbsd_store_inferior_registers): Likewise.
3997 * aarch64-linux-nat.c (fetch_gregs_from_thread): Likewise.
3998 (store_gregs_to_thread): Likewise.
3999 (fetch_fpregs_from_thread): Likewise.
4000 (store_fpregs_to_thread): Likewise.
4001 * aarch64-tdep.c (aarch64_extract_return_value): Likewise.
4002 (aarch64_store_return_value): Likewise.
4003 (aarch64_software_single_step): Likewise.
4004 * aix-thread.c (aix_thread_wait): Likewise.
4005 (supply_reg32): Likewise.
4006 (supply_sprs64): Likewise.
4007 (supply_sprs32): Likewise.
4008 (fill_gprs64): Likewise.
4009 (fill_gprs32): Likewise.
4010 (fill_sprs64): Likewise.
4011 (fill_sprs32): Likewise.
4012 (store_regs_user_thread): Likewise.
4013 (store_regs_kernel_thread): Likewise.
4014 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
4015 (alphabsd_store_inferior_registers): Likewise.
4016 * alpha-tdep.c (alpha_extract_return_value): Likewise.
4017 (alpha_store_return_value): Likewise.
4018 (alpha_deal_with_atomic_sequence): Likewise.
4019 (alpha_next_pc): Likewise.
4020 (alpha_software_single_step): Likewise.
4021 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
4022 (amd64bsd_store_inferior_registers): Likewise.
4023 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
4024 Likewise.
4025 (amd64_linux_store_inferior_registers): Likewise.
4026 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
4027 (amd64_collect_native_gregset): Likewise.
4028 * amd64-obsd-tdep.c (amd64obsd_supply_uthread): Likewise.
4029 (amd64obsd_collect_uthread): Likewise.
4030 * amd64-tdep.c (amd64_supply_fpregset): Likewise.
4031 (amd64_collect_fpregset): Likewise.
4032 (amd64_supply_fxsave): Likewise.
4033 (amd64_supply_xsave): Likewise.
4034 (amd64_collect_fxsave): Likewise.
4035 (amd64_collect_xsave): Likewise.
4036 * arc-tdep.c (arc_write_pc): Likewise.
4037 * arch-utils.c (default_skip_permanent_breakpoint): Likewise.
4038 * arm-fbsd-nat.c (arm_fbsd_fetch_inferior_registers): Likewise.
4039 (arm_fbsd_store_inferior_registers): Likewise.
4040 * arm-linux-nat.c (fetch_vfp_regs): Likewise.
4041 (store_vfp_regs): Likewise.
4042 (arm_linux_fetch_inferior_registers): Likewise.
4043 (arm_linux_store_inferior_registers): Likewise.
4044 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
4045 (arm_linux_sigreturn_next_pc): Likewise.
4046 (arm_linux_get_next_pcs_syscall_next_pc): Likewise.
4047 * arm-nbsd-nat.c (arm_supply_gregset): Likewise.
4048 (fetch_register): Likewise.
4049 (store_register): Likewise.
4050 * arm-tdep.c (arm_is_thumb): Likewise.
4051 (displaced_in_arm_mode): Likewise.
4052 (bx_write_pc): Likewise.
4053 (arm_get_next_pcs_addr_bits_remove): Likewise.
4054 (arm_software_single_step): Likewise.
4055 (arm_extract_return_value): Likewise.
4056 (arm_store_return_value): Likewise.
4057 (arm_write_pc): Likewise.
4058 * bfin-tdep.c (bfin_extract_return_value): Likewise.
4059 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
4060 (bsd_uthread_store_registers): Likewise.
4061 * core-regset.c (fetch_core_registers): Likewise.
4062 * corelow.c (get_core_registers): Likewise.
4063 * cris-tdep.c (cris_store_return_value): Likewise.
4064 (cris_extract_return_value): Likewise.
4065 (find_step_target): Likewise.
4066 (find_step_target): Likewise.
4067 (cris_software_single_step): Likewise.
4068 * ctf.c (ctf_fetch_registers): Likewise.
4069 * darwin-nat.c (cancel_breakpoint): Likewise.
4070 * fbsd-tdep.c (fbsd_collect_thread_registers): Likewise.
4071 * frv-tdep.c (frv_extract_return_value): Likewise.
4072 * ft32-tdep.c (ft32_store_return_value): Likewise.
4073 (ft32_extract_return_value): Likewise.
4074 * go32-nat.c (fetch_register): Likewise.
4075 (go32_fetch_registers): Likewise.
4076 (go32_store_registers): Likewise.
4077 (store_register): Likewise.
4078 * h8300-tdep.c (h8300_extract_return_value): Likewise.
4079 (h8300_store_return_value): Likewise.
4080 * hppa-linux-nat.c (fetch_register): Likewise.
4081 (store_register): Likewise.
4082 (hppa_linux_fetch_inferior_registers): Likewise.
4083 (hppa_linux_store_inferior_registers): Likewise.
4084 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Likewise.
4085 (i386_darwin_store_inferior_registers): Likewise.
4086 * i386-gnu-nat.c (gnu_fetch_registers): Likewise.
4087 (gnu_store_registers): Likewise.
4088 * i386-linux-nat.c (fetch_register): Likewise.
4089 (store_register): Likewise.
4090 (supply_gregset): Likewise.
4091 (fill_gregset): Likewise.
4092 (i386_linux_fetch_inferior_registers): Likewise.
4093 (i386_linux_store_inferior_registers): Likewise.
4094 (i386_linux_resume): Likewise.
4095 * i386-linux-tdep.c (i386_linux_get_syscall_number_from_regcache):
4096 Likewise.
4097 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
4098 * i386-obsd-nat.c (i386obsd_supply_pcb): Likewise.
4099 * i386-obsd-tdep.c (i386obsd_supply_uthread): Likewise.
4100 (i386obsd_collect_uthread): Likewise.
4101 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
4102 (i386_supply_gregset): Likewise.
4103 (i386_collect_gregset): Likewise.
4104 (i386_supply_fpregset): Likewise.
4105 (i386_collect_fpregset): Likewise.
4106 (i386_mpx_bd_base): Likewise.
4107 * i386-v4-nat.c (supply_fpregset): Likewise.
4108 (fill_fpregset): Likewise.
4109 * i387-tdep.c (i387_supply_fsave): Likewise.
4110 (i387_collect_fsave): Likewise.
4111 (i387_supply_fxsave): Likewise.
4112 (i387_collect_fxsave): Likewise.
4113 (i387_supply_xsave): Likewise.
4114 (i387_collect_xsave): Likewise.
4115 * ia64-linux-nat.c (ia64_linux_fetch_registers): Likewise.
4116 (ia64_linux_store_registers): Likewise.
4117 * ia64-tdep.c (ia64_access_rse_reg): Likewise.
4118 (ia64_extract_return_value): Likewise.
4119 (ia64_store_return_value): Likewise.
4120 (find_func_descr): Likewise.
4121 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
4122 * inf-ptrace.c (inf_ptrace_fetch_registers): Likewise.
4123 (inf_ptrace_store_registers): Likewise.
4124 * infrun.c (use_displaced_stepping): Likewise.
4125 (displaced_step_prepare_throw): Likewise.
4126 (resume): Likewise.
4127 (proceed): Likewise.
4128 (do_target_wait): Likewise.
4129 (adjust_pc_after_break): Likewise.
4130 (handle_inferior_event_1): Likewise.
4131 (handle_signal_stop): Likewise.
4132 (save_infcall_suspend_state): Likewise.
4133 (restore_infcall_suspend_state): Likewise.
4134 * iq2000-tdep.c (iq2000_extract_return_value): Likewise.
4135 * jit.c (jit_frame_prev_register): Likewise.
4136 * linux-nat.c (save_stop_reason): Likewise.
4137 (linux_nat_wait_1): Likewise.
4138 (resume_stopped_resumed_lwps): Likewise.
4139 * linux-record.c (record_linux_sockaddr): Likewise.
4140 (record_linux_msghdr): Likewise.
4141 (record_linux_system_call): Likewise.
4142 * linux-tdep.c (linux_collect_thread_registers): Likewise.
4143 * lm32-tdep.c (lm32_extract_return_value): Likewise.
4144 (lm32_store_return_value): Likewise.
4145 * m32c-tdep.c (m32c_read_flg): Likewise.
4146 (m32c_pseudo_register_read): Likewise.
4147 (m32c_pseudo_register_write): Likewise.
4148 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Likewise.
4149 (m32r_linux_collect_gregset): Likewise.
4150 * m32r-tdep.c (m32r_store_return_value): Likewise.
4151 (m32r_extract_return_value): Likewise.
4152 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
4153 (m68kbsd_collect_fpregset): Likewise.
4154 * m68k-bsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
4155 * m68k-linux-nat.c (fetch_register): Likewise.
4156 (old_fetch_inferior_registers): Likewise.
4157 (old_store_inferior_registers): Likewise.
4158 (store_regs): Likewise.
4159 * m68k-tdep.c (m68k_svr4_extract_return_value): Likewise.
4160 (m68k_svr4_store_return_value): Likewise.
4161 * m88k-tdep.c (m88k_store_arguments): Likewise.
4162 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Likewise.
4163 (mi_cmd_data_write_register_values): Likewise.
4164 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers): Likewise.
4165 (mips_fbsd_store_inferior_registers): Likewise.
4166 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Likewise.
4167 (mips_fbsd_supply_gregs): Likewise.
4168 (mips_fbsd_collect_fpregs): Likewise.
4169 (mips_fbsd_collect_gregs): Likewise.
4170 (mips_fbsd_supply_fpregset): Likewise.
4171 (mips_fbsd_collect_fpregset): Likewise.
4172 (mips_fbsd_supply_gregset): Likewise.
4173 (mips_fbsd_collect_gregset): Likewise.
4174 * mips-linux-nat.c (supply_gregset): Likewise.
4175 (fill_gregset): Likewise.
4176 (supply_fpregset): Likewise.
4177 (fill_fpregset): Likewise.
4178 * mips-linux-tdep.c (mips_supply_gregset): Likewise.
4179 (mips_fill_gregset): Likewise.
4180 (mips_supply_fpregset): Likewise.
4181 (mips_fill_fpregset): Likewise.
4182 (mips64_supply_gregset): Likewise.
4183 (micromips_linux_sigframe_validate): Likewise.
4184 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
4185 (mipsnbsd_fetch_inferior_registers): Likewise.
4186 (mipsnbsd_store_inferior_registers): Likewise.
4187 * mips-nbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
4188 (mipsnbsd_supply_gregset): Likewise.
4189 (mipsnbsd_iterate_over_regset_sections): Likewise.
4190 (mipsnbsd_supply_reg): Likewise.
4191 (mipsnbsd_supply_fpreg): Likewise.
4192 * mips-tdep.c (mips_in_frame_stub): Likewise.
4193 (mips_dummy_id): Likewise.
4194 (is_octeon_bbit_op): Likewise.
4195 (micromips_bc1_pc): Likewise.
4196 (extended_mips16_next_pc): Likewise.
4197 (mips16_next_pc): Likewise.
4198 (deal_with_atomic_sequence): Likewise.
4199 * moxie-tdep.c (moxie_process_readu): Likewise.
4200 * nios2-tdep.c (nios2_get_next_pc): Likewise.
4201 * nto-procfs.c (procfs_store_registers): Likewise.
4202 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers): Likewise.
4203 (ppcfbsd_store_inferior_registers): Likewise.
4204 * ppc-linux-nat.c (fetch_vsx_register): Likewise.
4205 (fetch_altivec_register): Likewise.
4206 (get_spe_registers): Likewise.
4207 (fetch_spe_register): Likewise.
4208 (fetch_altivec_registers): Likewise.
4209 (fetch_all_gp_regs): Likewise.
4210 (fetch_all_fp_regs): Likewise.
4211 (store_vsx_register): Likewise.
4212 (store_altivec_register): Likewise.
4213 (set_spe_registers): Likewise.
4214 (store_spe_register): Likewise.
4215 (store_altivec_registers): Likewise.
4216 (store_all_gp_regs): Likewise.
4217 (store_all_fp_regs): Likewise.
4218 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
4219 (ppc_linux_collect_gregset): Likewise.
4220 (ppc_canonicalize_syscall): Likewise.
4221 (ppc_linux_record_signal): Likewise.
4222 (ppu2spu_prev_register): Likewise.
4223 * ppc-nbsd-nat.c (ppcnbsd_supply_pcb): Likewise.
4224 * ppc-obsd-nat.c (ppcobsd_fetch_registers): Likewise.
4225 (ppcobsd_store_registers): Likewise.
4226 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_fetch_registers):
4227 Likewise.
4228 (ppc_ravenscar_generic_store_registers): Likewise.
4229 * procfs.c (procfs_fetch_registers): Likewise.
4230 (procfs_store_registers): Likewise.
4231 * ravenscar-thread.c (ravenscar_fetch_registers): Likewise.
4232 (ravenscar_store_registers): Likewise.
4233 (ravenscar_prepare_to_store): Likewise.
4234 * record-btrace.c (record_btrace_fetch_registers): Likewise.
4235 * record-full.c (record_full_wait_1): Likewise.
4236 (record_full_registers_change): Likewise.
4237 (record_full_store_registers): Likewise.
4238 (record_full_core_fetch_registers): Likewise.
4239 (record_full_save): Likewise.
4240 (record_full_goto_insn): Likewise.
4241 * regcache.c (regcache_register_size): Likewise.
4242 (get_regcache_arch): Remove.
4243 (regcache_read_pc): Likewise.
4244 * regcache.h (get_regcache_arch): Remove.
4245 * remote-sim.c (gdbsim_fetch_register): Likewise.
4246 (gdbsim_store_register): Likewise.
4247 * remote.c (fetch_register_using_p): Likewise.
4248 (send_g_packet): Likewise.
4249 (remote_prepare_to_store): Likewise.
4250 (store_registers_using_G): Likewise.
4251 * reverse.c (save_bookmark_command): Likewise.
4252 (goto_bookmark_command): Likewise.
4253 * rs6000-aix-tdep.c (branch_dest): Likewise.
4254 * rs6000-nat.c (rs6000_ptrace64): Likewise.
4255 (fetch_register): Likewise.
4256 * rs6000-tdep.c (ppc_supply_reg): Likewise.
4257 (ppc_collect_reg): Likewise.
4258 (ppc_collect_gregset): Likewise.
4259 (ppc_collect_fpregset): Likewise.
4260 (ppc_collect_vsxregset): Likewise.
4261 (ppc_collect_vrregset): Likewise.
4262 (ppc_displaced_step_hw_singlestep): Likewise.
4263 (rs6000_pseudo_register_read): Likewise.
4264 (rs6000_pseudo_register_write): Likewise.
4265 * s390-linux-nat.c (supply_gregset): Likewise.
4266 (fill_gregset): Likewise.
4267 (s390_linux_fetch_inferior_registers): Likewise.
4268 * s390-linux-tdep.c (s390_write_pc): Likewise.
4269 (s390_software_single_step): Likewise.
4270 (s390_all_but_pc_registers_record): Likewise.
4271 (s390_linux_syscall_record): Likewise.
4272 * sentinel-frame.c (sentinel_frame_prev_arch): Likewise.
4273 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
4274 (shnbsd_store_inferior_registers): Likewise.
4275 * sh-tdep.c (sh_extract_return_value_nofpu): Likewise.
4276 (sh_extract_return_value_fpu): Likewise.
4277 (sh_store_return_value_nofpu): Likewise.
4278 (sh_corefile_supply_regset): Likewise.
4279 (sh_corefile_collect_regset): Likewise.
4280 * sh64-tdep.c (sh64_extract_return_value): Likewise.
4281 (sh64_store_return_value): Likewise.
4282 * sparc-linux-tdep.c (sparc32_linux_collect_core_fpregset): Likewise.
4283 * sparc-nat.c (sparc_fetch_inferior_registers): Likewise.
4284 (sparc_store_inferior_registers): Likewise.
4285 * sparc-ravenscar-thread.c (register_in_thread_descriptor_p): Likewise.
4286 (sparc_ravenscar_prepare_to_store): Likewise.
4287 * sparc-tdep.c (sparc32_store_arguments): Likewise.
4288 (sparc_analyze_control_transfer): Likewise.
4289 (sparc_step_trap): Likewise.
4290 (sparc_software_single_step): Likewise.
4291 (sparc32_gdbarch_init): Likewise.
4292 (sparc_supply_rwindow): Likewise.
4293 (sparc_collect_rwindow): Likewise.
4294 * sparc64-linux-tdep.c (sparc64_linux_collect_core_fpregset): Likewise.
4295 * sparc64-nbsd-nat.c (sparc64nbsd_supply_gregset): Likewise.
4296 (sparc64nbsd_collect_gregset): Likewise.
4297 (sparc64nbsd_supply_fpregset): Likewise.
4298 (sparc64nbsd_collect_fpregset): Likewise.
4299 * sparc64-tdep.c (sparc64_store_arguments): Likewise.
4300 (sparc64_supply_gregset): Likewise.
4301 (sparc64_collect_gregset): Likewise.
4302 (sparc64_supply_fpregset): Likewise.
4303 (sparc64_collect_fpregset): Likewise.
4304 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
4305 * spu-tdep.c (spu_unwind_sp): Likewise.
4306 (spu2ppu_prev_register): Likewise.
4307 (spu_memory_remove_breakpoint): Likewise.
4308 * stack.c (return_command): Likewise.
4309 * tic6x-tdep.c (tic6x_extract_signed_field): Likewise.
4310 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
4311 * tracefile.c (trace_save_ctf): Likewise.
4312 * windows-nat.c (do_windows_fetch_inferior_registers): Likewise.
4313 (do_windows_store_inferior_registers): Likewise.
4314 (windows_resume): Likewise.
4315 * xtensa-linux-nat.c (fill_gregset): Likewise.
4316 (supply_gregset_reg): Likewise.
4317 * xtensa-tdep.c (xtensa_register_write_masked): Likewise.
4318 (xtensa_register_read_masked): Likewise.
4319 (xtensa_supply_gregset): Likewise.
4320 (xtensa_extract_return_value): Likewise.
4321 (xtensa_store_return_value): Likewise.
4322
4323 2017-10-25 Ulrich Weigand <uweigand@de.ibm.com>
4324
4325 * doublest.c (floatformat_from_string): New function.
4326 * doublest.h (floatformat_from_string): Add prototype.
4327
4328 * std-operator.def (OP_DOUBLE, OP_DECFLOAT): Remove, replace by ...
4329 (OP_FLOAT): ... this.
4330 * expression.h: Do not include "doublest.h".
4331 (union exp_element): Replace doubleconst and decfloatconst by
4332 new element floatconst.
4333 * ada-lang.c (resolve_subexp): Handle OP_FLOAT instead of OP_DOUBLE.
4334 (ada_evaluate_subexp): Likewise.
4335 * eval.c (evaluate_subexp_standard): Handle OP_FLOAT instead of
4336 OP_DOUBLE and OP_DECFLOAT.
4337 * expprint.c (print_subexp_standard): Likewise.
4338 (dump_subexp_body_standard): Likewise.
4339 * breakpoint.c (watchpoint_exp_is_const): Likewise.
4340
4341 * parse.c: Include "dfp.h".
4342 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
4343 (write_exp_elt_floatcst): New function.
4344 (operator_length_standard): Handle OP_FLOAT instead of OP_DOUBLE
4345 and OP_DECFLOAT.
4346 (operator_check_standard): Likewise.
4347 (parse_float): Do not accept suffix. Take type as input. Return bool.
4348 Return target format buffer instead of host DOUBLEST.
4349 Use floatformat_from_string and decimal_from_string to parse
4350 either binary or decimal floating-point types.
4351 (parse_c_float): Remove.
4352 * parser-defs.h: Do not include "doublest.h".
4353 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
4354 (write_exp_elt_floatcst): Add prototype.
4355 (parse_float): Update prototype.
4356 (parse_c_float): Remove.
4357
4358 * c-exp.y: Do not include "dfp.h".
4359 (typed_val_float): Use byte buffer instead of DOUBLEST.
4360 (typed_val_decfloat): Remove.
4361 (DECFLOAT): Remove.
4362 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4363 (parse_number): Update to new parse_float interface.
4364 Parse suffixes and determine type before calling parse_float.
4365 Handle decimal and binary FP types the same way.
4366
4367 * d-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
4368 (FLOAT_LITERAL): Use OP_FLOAT and write_exp_elt_floatcst.
4369 (parse_number): Update to new parse_float interface.
4370 Parse suffixes and determine type before calling parse_float.
4371
4372 * f-exp.y: Replace dval by typed_val_float.
4373 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4374 (parse_number): Use parse_float instead of atof.
4375
4376 * go-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
4377 (parse_go_float): Remove.
4378 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4379 (parse_number): Call parse_float instead of parse_go_float.
4380 Parse suffixes and determine type before calling parse_float.
4381
4382 * p-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
4383 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4384 (parse_number): Update to new parse_float interface.
4385 Parse suffixes and determine type before calling parse_float.
4386
4387 * m2-exp.y: Replace dval by byte buffer val.
4388 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4389 (parse_number): Call parse_float instead of atof.
4390
4391 * rust-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
4392 (lex_number): Call parse_float instead of strtod.
4393 (ast_dliteral): Use OP_FLOAT instead of OP_DOUBLE.
4394 (convert_ast_to_expression): Handle OP_FLOAT instead of OP_DOUBLE.
4395 Use write_exp_elt_floatcst.
4396 (unit_testing): Remove static variable.
4397 (rust_type): Do not check unit_testing.
4398 (rust_lex_tests): Do not set uint_testing. Set up dummy rust_parser.
4399
4400 * ada-exp.y (type_float, type_double): Remove.
4401 (typed_val_float): Use byte buffer instead of DOUBLEST.
4402 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4403 * ada-lex.l (processReal): Use parse_float instead of sscanf.
4404
4405 2017-10-25 Alan Hayward <alan.hayward@arm.com>
4406
4407 * aarch64-tdep.h (enum aarch64_regnum): Remove.
4408 * arch/aarch64.h: New file.
4409
4410 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4411
4412 * dfp.h (decimal_from_string): Use const reference for argument.
4413 * dfp.c (decimal_from_string): Likewise.
4414
4415 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4416
4417 * i387-tdep.c (print_i387_value): Use floatformat_to_string.
4418 * sh64-tdep.c (sh64_do_fp_register): Likewise.
4419 * mips-tdep.c (mips_print_fp_register): Likewise.
4420
4421 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4422
4423 * common/format.h (enum argclass): Replace decfloat_arg by
4424 dec32float_arg, dec64float_arg, and dec128float_arg.
4425 * common/format.c (parse_format_string): Update to return
4426 new decimal float argument classes.
4427
4428 * printcmd.c (printf_decfloat): Rename to ...
4429 (printf_floating): ... this. Add argclass argument, and use it
4430 instead of parsing the format string again. Add support for
4431 binary floating-point values, using floatformat_to_string.
4432 Convert value to the target format if it doesn't already match.
4433 (ui_printf): Call printf_floating instead of printf_decfloat,
4434 also for double_arg / long_double_arg. Pass argclass.
4435
4436 * dfp.c (decimal_to_string): Add format string argument.
4437 * dfp.h (decimal_to_string): Likewise.
4438
4439 * doublest.c (floatformat_to_string): Add format string argument.
4440 * doublest.h (floatformat_to_string): Likewise.
4441
4442 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4443
4444 * doublest.c (floatformat_precision): New routine.
4445 (floatformat_to_string): Likewise.
4446 * doublest.c (floatformat_to_string): Add prototype.
4447
4448 * printcmd.c (print_scalar_formatted): Only call print_floating
4449 on floating-point types.
4450 * valprint.c: Do not include "floatformat.h".
4451 (generic_val_print_decfloat): Remove.
4452 (generic_val_print): Call generic_val_print_float for both
4453 TYPE_CODE_FLT and TYPE_CODE_DECFLOAT.
4454 (print_floating): Use floatformat_to_string. Handle decimal float.
4455 (print_decimal_floating): Remove, merge into floatformat_to_string.
4456 * value.h (print_decimal_floating): Remove.
4457
4458 * Makefile.in: Do not build doublest.c with -Wformat-nonliteral.
4459
4460 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4461
4462 * buildsym.c (end_symtab_get_static_block): Use std::stable_sort.
4463
4464 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
4465
4466 * memattr.h: Don't include vec.h.
4467 (struct mem_attrib): Initialize fields.
4468 <unknown>: New static method.
4469 (struct mem_region): Add constructors, operator<, initialize
4470 fields.
4471 * memattr.c: Include algorithm.
4472 (default_mem_attrib, unknown_mem_attrib): Remove.
4473 (user_mem_region_list): New global.
4474 (target_mem_region_list, mem_region_list): Change type to
4475 std::vector<mem_region>.
4476 (mem_use_target): Now a function.
4477 (target_mem_regions_valid): Change type to bool.
4478 (mem_region_lessthan, mem_region_cmp, mem_region_init): Remove.
4479 (require_user_regions): Adjust.
4480 (require_target_regions): Adjust.
4481 (create_mem_region): Adjust.
4482 (lookup_mem_region): Adjust.
4483 (invalidate_target_mem_regions): Adjust.
4484 (mem_clear): Rename to...
4485 (user_mem_clear): ... this, and adjust.
4486 (mem_command): Adjust.
4487 (info_mem_command): Adjust.
4488 (mem_enable, enable_mem_command, mem_disable,
4489 disable_mem_command): Adjust.
4490 (mem_delete): Adjust.
4491 (delete_mem_command): Adjust.
4492 * memory-map.h (parse_memory_map): Return an std::vector.
4493 * memory-map.c (parse_memory_map): Likewise.
4494 (struct memory_map_parsing_data): Add constructor.
4495 <memory_map>: Point to std::vector.
4496 (memory_map_start_memory): Adjust.
4497 (memory_map_end_memory): Adjust.
4498 (memory_map_end_property): Adjust.
4499 (clear_result): Remove.
4500 * remote.c (remote_memory_map): Return an std::vector.
4501 * target-debug.h (target_debug_print_VEC_mem_region_s__p):
4502 Remove.
4503 (target_debug_print_mem_region_vector): New.
4504 * target-delegates.c: Regenerate.
4505 * target.h (mem_region_vector): New typedef.
4506 (to_memory_map): Return mem_region_vector.
4507 (target_memory_map): Return an std::vector.
4508 * target.c (target_memory_map): Return an std::vector.
4509 (flash_erase_command): Adjust.
4510
4511 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
4512
4513 * memory-map.c (struct memory_map_parsing_data) <property_name>:
4514 Change type to std::string.
4515 (memory_map_start_property): Adjust.
4516 (memory_map_end_property): Adjust.
4517
4518 2017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
4519
4520 * infrun.h: Include common/byte-vector.h.
4521 (struct displaced_step_closure): New struct.
4522 (struct buf_displaced_step_closure): New struct.
4523 * infrun.c (displaced_step_closure::~displaced_step_closure):
4524 Provide default implementation.
4525 (displaced_step_clear): Deallocate step closure with delete.
4526 * aarch64-tdep.c (displaced_step_closure): Rename to ...
4527 (aarch64_displaced_step_closure): ... this, extend
4528 displaced_step_closure.
4529 (aarch64_displaced_step_data) <dsc>: Change type to
4530 aarch64_displaced_step_closure.
4531 (aarch64_displaced_step_copy_insn): Adjust to type change, use
4532 unique_ptr.
4533 (aarch64_displaced_step_fixup): Add cast for displaced step
4534 closure.
4535 * amd64-tdep.c (displaced_step_closure): Rename to ...
4536 (amd64_displaced_step_closure): ... this, extend
4537 displaced_step_closure.
4538 <insn_buf>: Change type to std::vector<gdb_byte>.
4539 <max_len>: Remove.
4540 (fixup_riprel): Change type of DSC parameter, adjust to type
4541 change of insn_buf.
4542 (fixup_displaced_copy): Change type of DSC parameter.
4543 (amd64_displaced_step_copy_insn): Instantiate
4544 amd64_displaced_step_closure.
4545 (amd64_displaced_step_fixup): Add cast for closure type, adjust
4546 to type change of insn_buf.
4547 * arm-linux-tdep.c (arm_linux_cleanup_svc): Change type of
4548 parameter DSC.
4549 (arm_linux_copy_svc): Likewise.
4550 (cleanup_kernel_helper_return): Likewise.
4551 (arm_catch_kernel_helper_return): Likewise.
4552 (arm_linux_displaced_step_copy_insn): Instantiate
4553 arm_displaced_step_closure.
4554 * arm-tdep.c (arm_pc_is_thumb): Add cast for closure.
4555 (displaced_read_reg): Change type of parameter DSC.
4556 (branch_write_pc): Likewise.
4557 (load_write_pc): Likewise.
4558 (alu_write_pc): Likewise.
4559 (displaced_write_reg): Likewise.
4560 (arm_copy_unmodified): Likewise.
4561 (thumb_copy_unmodified_32bit): Likewise.
4562 (thumb_copy_unmodified_16bit): Likewise.
4563 (cleanup_preload): Likewise.
4564 (install_preload): Likewise.
4565 (arm_copy_preload): Likewise.
4566 (thumb2_copy_preload): Likewise.
4567 (install_preload_reg): Likewise.
4568 (arm_copy_preload_reg): Likewise.
4569 (cleanup_copro_load_store): Likewise.
4570 (install_copro_load_store): Likewise.
4571 (arm_copy_copro_load_store) Likewise.
4572 (thumb2_copy_copro_load_store): Likewise.
4573 (cleanup_branch): Likewise.
4574 (install_b_bl_blx): Likewise.
4575 (arm_copy_b_bl_blx): Likewise.
4576 (thumb2_copy_b_bl_blx): Likewise.
4577 (thumb_copy_b): Likewise.
4578 (install_bx_blx_reg): Likewise.
4579 (arm_copy_bx_blx_reg): Likewise.
4580 (thumb_copy_bx_blx_reg): Likewise.
4581 (cleanup_alu_imm): Likewise.
4582 (arm_copy_alu_imm): Likewise.
4583 (thumb2_copy_alu_imm): Likewise.
4584 (cleanup_alu_reg): Likewise.
4585 (install_alu_reg): Likewise.
4586 (arm_copy_alu_reg): Likewise.
4587 (thumb_copy_alu_reg): Likewise.
4588 (cleanup_alu_shifted_reg): Likewise.
4589 (install_alu_shifted_reg): Likewise.
4590 (arm_copy_alu_shifted_reg): Likewise.
4591 (cleanup_load): Likewise.
4592 (cleanup_store): Likewise.
4593 (arm_copy_extra_ld_st): Likewise.
4594 (install_load_store): Likewise.
4595 (thumb2_copy_load_literal): Likewise.
4596 (thumb2_copy_load_reg_imm): Likewise.
4597 (arm_copy_ldr_str_ldrb_strb): Likewise.
4598 (cleanup_block_load_all): Likewise.
4599 (cleanup_block_store_pc): Likewise.
4600 (cleanup_block_load_pc): Likewise.
4601 (arm_copy_block_xfer): Likewise.
4602 (thumb2_copy_block_xfer): Likewise.
4603 (cleanup_svc): Likewise.
4604 (install_svc): Likewise.
4605 (arm_copy_svc): Likewise.
4606 (thumb_copy_svc): Likewise.
4607 (arm_copy_undef): Likewise.
4608 (thumb_32bit_copy_undef): Likewise.
4609 (arm_copy_unpred): Likewise.
4610 (arm_decode_misc_memhint_neon): Likewise.
4611 (arm_decode_unconditional): Likewise.
4612 (arm_decode_miscellaneous): Likewise.
4613 (arm_decode_dp_misc): Likewise.
4614 (arm_decode_ld_st_word_ubyte): Likewise.
4615 (arm_decode_media): Likewise.
4616 (arm_decode_b_bl_ldmstm): Likewise.
4617 (arm_decode_ext_reg_ld_st): Likewise.
4618 (thumb2_decode_dp_shift_reg): Likewise.
4619 (thumb2_decode_ext_reg_ld_st): Likewise.
4620 (arm_decode_svc_copro): Likewise.
4621 (thumb2_decode_svc_copro): Likewise.
4622 (install_pc_relative): Likewise.
4623 (thumb_copy_pc_relative_16bit): Likewise.
4624 (thumb_decode_pc_relative_16bit): Likewise.
4625 (thumb_copy_pc_relative_32bit): Likewise.
4626 (thumb_copy_16bit_ldr_literal): Likewise.
4627 (thumb_copy_cbnz_cbz): Likewise.
4628 (thumb2_copy_table_branch): Likewise.
4629 (cleanup_pop_pc_16bit_all): Likewise.
4630 (thumb_copy_pop_pc_16bit): Likewise.
4631 (thumb_process_displaced_16bit_insn): Likewise.
4632 (decode_thumb_32bit_ld_mem_hints): Likewise.
4633 (thumb_process_displaced_32bit_insn): Likewise.
4634 (thumb_process_displaced_insn): Likewise.
4635 (arm_process_displaced_insn): Likewise.
4636 (arm_displaced_init_closure): Likewise.
4637 (arm_displaced_step_fixup): Add cast for closure.
4638 * arm-tdep.h: Include infrun.h.
4639 (displaced_step_closure): Rename to ...
4640 (arm_displaced_step_closure): ... this, extend
4641 displaced_step_closure.
4642 <u::svc::copy_svc_os>: Change type of parameter DSC.
4643 <cleanup>: Likewise.
4644 (arm_process_displaced_insn): Likewise.
4645 (arm_displaced_init_closure): Likewise.
4646 (displaced_read_reg): Likewise.
4647 (displaced_write_reg): Likewise.
4648 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
4649 Adjust.
4650 * i386-tdep.h: Include infrun.h.
4651 (i386_displaced_step_closure): New typedef.
4652 * i386-tdep.c (i386_displaced_step_copy_insn): Use
4653 i386_displaced_step_closure.
4654 (i386_displaced_step_fixup): Adjust.
4655 * rs6000-tdep.c (ppc_displaced_step_closure): New typedef.
4656 (ppc_displaced_step_copy_insn): Use ppc_displaced_step_closure
4657 and unique_ptr.
4658 (ppc_displaced_step_fixup): Adjust.
4659 * s390-linux-tdep.c (s390_displaced_step_closure): New typedef.
4660 (s390_displaced_step_copy_insn): Use s390_displaced_step_closure
4661 and unique_ptr.
4662 (s390_displaced_step_fixup): Adjust.
4663
4664 2017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
4665
4666 * interps.h (interp_resume, interp_suspend, interp_set_temp):
4667 Remove declarations.
4668
4669 2017-10-20 Tom Tromey <tom@tromey.com>
4670
4671 * gdb_bfd.c (struct gdb_bfd_data) <included_bfds>: Now a
4672 std::vector.
4673 (gdb_bfd_record_inclusion): Update.
4674 (bfdp): Remove typedef.
4675
4676 2017-10-20 Tom Tromey <tom@tromey.com>
4677
4678 * gdb_bfd.c (gdb_bfd_ref): Use new.
4679 (struct gdb_bfd_data): Add constructor, destructor, and member
4680 initializers.
4681 (gdb_bfd_unref): Use delete.
4682
4683 2017-10-20 Tom Tromey <tom@tromey.com>
4684
4685 * exec.c (exec_file_attach): Use new_bfd_ref.
4686 * symfile-mem.c (symbol_file_add_from_memory): Use new_bfd_ref.
4687 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
4688 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_fdopenr): Use
4689 new_bfd_ref.
4690 * gdb_bfd.h (new_bfd_ref): New function.
4691
4692 2017-10-20 Pedro Alves <palves@redhat.com>
4693
4694 * main.c (captured_command_loop): Add attribute noinline.
4695
4696 2017-10-19 Simon Marchi <simon.marchi@ericsson.com>
4697
4698 * interps.c (struct interp_factory): Add constructor.
4699 (interp_factory_p): Remove typedef.
4700 (DEF_VEC_P(interp_factory_p)): Remove.
4701 (interpreter_factories): Change type to std::vector.
4702 (interp_factory_register): Adjust.
4703 (interp_lookup): Adjust.
4704 (interpreter_completer): Adjust.
4705
4706 2017-10-19 Tom Tromey <tom@tromey.com>
4707
4708 * break-catch-syscall.c (catch_syscall_completer): Use
4709 std::string, gdb::unique_xmalloc_ptr.
4710
4711 2017-10-19 Tom Tromey <tom@tromey.com>
4712
4713 * infcall.c (call_function_by_hand_dummy): Use std::string.
4714
4715 2017-10-19 Tom Tromey <tom@tromey.com>
4716
4717 * mi/mi-main.c (mi_cmd_execute): Update.
4718 * top.h (prepare_execute_command): Return scoped_value_mark.
4719 * value.h (class scoped_value_mark): Use DISABLE_COPY_AND_ASSIGN.
4720 Add move constructor.
4721 * top.c (prepare_execute_command): Return scoped_value_mark.
4722 (execute_command): Update.
4723
4724 2017-10-19 Pedro Alves <palves@redhat.com>
4725
4726 * xml-support.c (xml_fetch_content_from_file): Check fread's
4727 return.
4728
4729 2017-10-19 Pedro Alves <palves@redhat.com>
4730
4731 * ser-base.c (ser_base_read_error_fd): Delete the file handler if
4732 async.
4733 (handle_error_fd): New function.
4734 (ser_base_async): Add/delete an event loop file handler for
4735 error_fd.
4736
4737 2017-10-19 Pedro Alves <palves@redhat.com>
4738
4739 * xml-support.c (xml_fetch_content_from_file): Don't read in
4740 chunks. Instead use fseek to determine the file's size, and read
4741 it in one go.
4742
4743 2017-11-18 Keith Seitz <keiths@redhat.com>
4744
4745 * c-exp.y (oper): Canonicalize conversion operators of user-defined
4746 types.
4747 Add whitespace to front of type name.
4748
4749 2017-10-18 Keith Seitz <keiths@redhat.com>
4750
4751 * dwarf2read.c (dwarf2_add_typedef): Issue a complaint on unhandled
4752 DW_AT_accessibility.
4753
4754 2017-10-18 Yao Qi <yao.qi@linaro.org>
4755
4756 * features/tic6x-c62x-linux.c: Remove.
4757
4758 2017-10-17 Tom Tromey <tom@tromey.com>
4759
4760 * disasm.c (do_mixed_source_and_assembly_deprecated): Use
4761 gdb::optional, ui_out_emit_list, ui_out_emit_tuple.
4762 (do_mixed_source_and_assembly): Likewise.
4763
4764 2017-10-17 Tom Tromey <tom@tromey.com>
4765
4766 * regcache.c (regcache::xfer_part): Remove assertion.
4767
4768 2017-10-17 Pedro Alves <palves@redhat.com>
4769
4770 * xml-support.c (xml_fetch_content_from_file): Call
4771 unique_ptr::release() instead unique_ptr::get() when passing
4772 through xrealloc.
4773
4774 2017-10-17 Yao Qi <yao.qi@linaro.org>
4775
4776 * regcache.c (regcache::xfer_part): Remove parameters read and
4777 write, add parameter is_raw. All callers are updated.
4778
4779 2017-10-16 Keith Seitz <keiths@redhat.com>
4780
4781 * c-typeprint.c (enum access_specifier): Moved here from
4782 c_type_print_base.
4783 (output_access_specifier): New function.
4784 (c_type_print_base): Consider typedefs when assessing
4785 whether access labels are needed.
4786 Use output_access_specifier as needed.
4787 Output access specifier for typedefs, if needed.
4788 * dwarf2read.c (dwarf2_add_typedef): Record DW_AT_accessibility.
4789 * gdbtypes.h (struct typedef_field) <is_protected, is_private>: New
4790 fields.
4791 (TYPE_TYPEDEF_FIELD_PROTECTED, TYPE_TYPEDEF_FIELD_PRIVATE): New
4792 accessor macros.
4793
4794 2017-10-16 Tom Tromey <tom@tromey.com>
4795
4796 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full)
4797 (linux_fill_prpsinfo, linux_vsyscall_range_raw): Update.
4798 * target.c (target_fileio_read_stralloc): Update.
4799 * sparc64-tdep.c (adi_is_addr_mapped): Update.
4800 * target.h (target_fileio_read_stralloc): Return
4801 unique_xmalloc_ptr.
4802
4803 2017-10-16 Tom Tromey <tom@tromey.com>
4804
4805 * xml-syscall.c (xml_init_syscalls_info): Update.
4806 * xml-support.c (xinclude_start_include): Update.
4807 (xml_fetch_content_from_file): Return unique_xmalloc_ptr.
4808 * xml-support.h (xml_fetch_another): Return unique_xmalloc_ptr.
4809 (xml_fetch_content_from_file): Likewise.
4810 * osdata.c (get_osdata): Update.
4811 * target.h (target_read_stralloc, target_get_osdata): Return
4812 unique_xmalloc_ptr.
4813 * solib-aix.c (solib_aix_get_library_list): Update.
4814 * solib-target.c (solib_target_current_sos): Update.
4815 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Update.
4816 * xml-tdesc.c (fetch_available_features_from_target): Update.
4817 (target_fetch_description_xml): Update.
4818 (file_read_description_xml): Update.
4819 * remote.c (remote_get_threads_with_qxfer, remote_memory_map)
4820 (remote_traceframe_info, btrace_read_config, remote_read_btrace)
4821 (remote_pid_to_exec_file): Update.
4822 * target.c (target_read_stralloc): Return unique_xmalloc_ptr.
4823 (target_get_osdata): Likewise.
4824
4825 2017-10-16 Tom Tromey <tom@tromey.com>
4826
4827 * remote.c (remote_register_number_and_offset): Use std::vector.
4828 (remote_set_syscall_catchpoint): Use gdb::unique_xmalloc_ptr.
4829 (putpkt_binary): Use gdb::def_vector.
4830 (compare_sections_command): Use gdb::byte_vector.
4831
4832 2017-10-16 Tom Tromey <tom@tromey.com>
4833
4834 * ppc-linux-nat.c (hwdebug_insert_point): Use
4835 gdb::unique_xmalloc_ptr, XDUP.
4836
4837 2017-10-16 Tom Tromey <tom@tromey.com>
4838
4839 * probe.c (parse_probes): Use std::string.
4840 (info_probes_for_ops, enable_probes_command)
4841 (disable_probes_command): Remove cleanups.
4842
4843 2017-10-16 Tom Tromey <tom@tromey.com>
4844
4845 * buildsym.c (block_compar): Remove.
4846 (end_symtab_get_static_block): Use std::vector.
4847
4848 2017-10-16 Simon Marchi <simon.marchi@ericsson.com>
4849
4850 * memrange.h (struct mem_range): Define operator< and operator==.
4851 (mem_range_s): Remove.
4852 (DEF_VEC_O (mem_range_s)): Remove.
4853 (normalize_mem_ranges): Change parameter type to std::vector.
4854 * memrange.c (compare_mem_ranges): Remove.
4855 (normalize_mem_ranges): Change parameter type to std::vector,
4856 adjust to vector change.
4857 * exec.c (section_table_available_memory): Return vector, remove
4858 parameter.
4859 (section_table_read_available_memory): Adjust to std::vector
4860 change.
4861 * remote.c (remote_read_bytes): Adjust to std::vector
4862 change.
4863 * tracepoint.h (traceframe_available_memory): Change parameter
4864 type to std::vector.
4865 * tracepoint.c (traceframe_available_memory): Change parameter
4866 type to std::vector, adjust.
4867 * gdb/mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to
4868 std::vector change.
4869 * gdb/Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4870 unittests/memrange-selftests.c.
4871 (SUBDIR_UNITTESTS_OBS): Add memrange-selftests.o.
4872 * gdb/unittests/memrange-selftests.c: New file.
4873
4874 2017-10-16 Pedro Alves <palves@redhat.com>
4875
4876 * elfread.c (probe_key_free): Rename range-for variable.
4877 * probe.c (parse_probes_in_pspace, find_probes_in_objfile)
4878 (find_probe_by_pc, collect_probes): Rename range-for variable.
4879
4880 2017-10-16 Yao Qi <yao.qi@linaro.org>
4881
4882 * features/Makefile (XMLTOC): Remove tic6x-*.xml.
4883 * features/tic6x-c62x.c: Remove.
4884 * features/tic6x-c64x-linux.c: Remove.
4885 * features/tic6x-c64x.c: Remove.
4886 * features/tic6x-c64xp-linux.c: Remove.
4887 * features/tic6x-c64xp.c: Remove.
4888 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Don't call
4889 initialize_tdesc_tic6x_*_linux functions.
4890 * tic6x-tdep.c (_initialize_tic6x_tdep): Don't call
4891 initialize_tdesc_tic6x_* functions.
4892
4893 2017-10-16 Yao Qi <yao.qi@linaro.org>
4894
4895 * features/Makefile (WHICH): Remove tic6x-c64xp, tic6x-c64x
4896 tic6x-c62x.
4897 * regformats/tic6x-c62x.dat: Remove.
4898 * regformats/tic6x-c64x.dat: Remove.
4899 * regformats/tic6x-c64xp.dat: Remove.
4900
4901 2017-10-15 Simon Marchi <simon.marchi@ericsson.com>
4902
4903 * tracepoint.c (parse_traceframe_info): Return a unique_ptr
4904 (the !HAVE_LIBEXPAT version).
4905
4906 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
4907
4908 * nat/linux-osdata.c (struct pid_pgid_entry) <operator<>: Make
4909 const.
4910
4911 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4912
4913 * target.h: Include tracepoint.h.
4914 (enum trace_find_type): Move to tracepoint.h.
4915 (struct target_ops) <to_traceframe_info>: Return a unique ptr.
4916 * tracepoint.h: Don't include target.h
4917 (enum trace_find_type): Move from target.h.
4918 (parse_traceframe_info): Return a unique ptr.
4919 * tracepoint.c (current_traceframe_info): Change type to unique
4920 ptr.
4921 (free_traceframe_info): Remove.
4922 (clear_traceframe_info): Don't manually free
4923 current_traceframe_info.
4924 (free_result): Remove.
4925 (parse_traceframe_info): Return a unique ptr.
4926 (get_traceframe_info): Adjust to unique ptr.
4927 * ctf.c (ctf_traceframe_info): Return a unique ptr.
4928 * remote.c (remote_traceframe_info): Return a unique ptr.
4929 * tracefile-tfile.c (tfile_traceframe_info): Return a unique
4930 ptr.
4931 * target-debug.h (target_debug_print_traceframe_info_up): New
4932 macro.
4933 * target-delegates.c: Regenerate.
4934
4935 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4936
4937 * memrange.h (struct mem_range): Add constructors.
4938 * tracepoint.h (struct traceframe_info) <memory>: Change type to
4939 std::vector<mem_range>.
4940 * tracepoint.c (free_traceframe_info): Don't manually free
4941 vector.
4942 (traceframe_info_start_memory): Adjust to vector change.
4943 (traceframe_available_memory): Likewise.
4944 * tracefile-tfile.c (build_traceframe_info): Likewise.
4945 * ctf.c (ctf_traceframe_info): Likewise.
4946
4947 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4948
4949 * tracepoint.h (struct traceframe_info) <tvars>: Change type to
4950 std::vector<int>.
4951 * tracepoint.c (free_traceframe_info): Deallocate with delete.
4952 (traceframe_info_start_tvar): Adjust to vector change.
4953 (parse_traceframe_info): Allocate with new.
4954 * ctf.c (ctf_traceframe_info): Allocate with new, adjust to
4955 vector change.
4956 * tracefile-tfile.c (build_traceframe_info): Adjust to vector
4957 change.
4958 tfile_traceframe_info): Allocate with new.
4959 * mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to vector
4960 change.
4961
4962 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4963
4964 * tracepoint.c (traceframe_info): Rename to...
4965 (current_traceframe_info): ...this.
4966 (clear_traceframe_info): Adjust.
4967 (get_traceframe_info): Adjust.
4968
4969 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
4970
4971 * nat/linux-osdata.c: Include algorithm.
4972 (compare_processes): Remove.
4973 (struct pid_pgid_entry): New struct.
4974 (linux_xfer_osdata_processgroups): Use std::vector instead of
4975 XNEWVEC.
4976
4977 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
4978
4979 * objfiles.h: Don't include symfile.h.
4980 (struct partial_symbol): Remove forward-declaration.
4981 (struct objfile) <global_psymbols, static_psymbols>: Change type
4982 to std::vector<partial_symbol *>.
4983 * objfiles.c (objfile::objfile): Don't memset those fields.
4984 (objfile::~objfile): Don't free those fields.
4985 * psympriv.h (struct psymbol_allocation_list): Remove
4986 forward-declaration.
4987 (add_psymbol_to_list): Change psymbol_allocation_list parameter
4988 to std::vector.
4989 (start_psymtab_common): Change parameters to std::vector.
4990 * psymtab.c: Include algorithm.
4991 (require_partial_symbols): Call shrink_to_fit.
4992 (find_pc_sect_psymbol): Adjust to vector change.
4993 (match_partial_symbol): Likewise.
4994 (lookup_partial_symbol): Likewise.
4995 (psym_relocate): Likewise.
4996 (dump_psymtab): Likewise.
4997 (recursively_search_psymtabs): Likewise.
4998 (compare_psymbols): Remove.
4999 (sort_pst_symbols): Adjust to vector change.
5000 (start_psymtab_common): Likewise.
5001 (end_psymtab_common): Likewise.
5002 (psymbol_bcache_full): De-constify return value.
5003 (add_psymbol_to_bcache): Likewise.
5004 (extend_psymbol_list): Remove.
5005 (append_psymbol_to_list): Adjust to vector change.
5006 (add_psymbol_to_list): Likewise.
5007 (init_psymbol_list): Likewise.
5008 (maintenance_info_psymtabs): Likewise.
5009 (maintenance_check_psymtabs): Likewise.
5010 * symfile.h (struct psymbol_allocation_list): Remove.
5011 * symfile.c (reread_symbols): Adjust to vector change.
5012 * dbxread.c (start_psymtab): Change type of parameters.
5013 (dbx_symfile_read): Adjust to vector change.
5014 (read_dbx_symtab): Likewise.
5015 (start_psymtab): Change type of parameters.
5016 * dwarf2read.c (dwarf2_build_psymtabs): Adjust to vector change.
5017 (create_partial_symtab): Likewise.
5018 (add_partial_symbol): Likewise.
5019 (write_one_signatured_type): Likewise.
5020 (recursively_write_psymbols): Likewise.
5021 * mdebugread.c (parse_partial_symbols): Likewise.
5022 * xcoffread.c (xcoff_start_psymtab): Change type of parameters.
5023 (scan_xcoff_symtab): Adjust to vector change.
5024 (xcoff_initial_scan): Likewise.
5025
5026 2017-10-13 Simon Marchi <simon.marchi@ericsson.com>
5027
5028 * ada-typeprint.c (print_dynamic_range_bound): Use std::string.
5029
5030 2017-10-13 Yao Qi <yao.qi@linaro.org>
5031
5032 * features/Makefile: Remove tic6x-*-expedite, add tic6x-expedite.
5033 Remove s390x-*-expedite, add s390x-expedite.
5034
5035 2017-10-13 Yao Qi <yao.qi@linaro.org>
5036
5037 * features/s390-gs-linux64.c: Regenerated.
5038 * features/s390x-gs-linux64.c: Regenerated.
5039
5040 2017-10-13 Tom Tromey <tom@tromey.com>
5041
5042 * compile/compile-object-run.c (do_module_cleanup): Use delete.
5043 * solib.c (update_solib_list, reload_shared_libraries_1): Use
5044 delete.
5045 * symfile.c (symbol_file_add_with_addrs): Use new.
5046 (symbol_file_add_separate): Update comment.
5047 (syms_from_objfile_1, remove_symbol_file_command): Use delete.
5048 * jit.c (jit_object_close_impl): Use new.
5049 (jit_unregister_code): Use delete.
5050 * objfiles.c (objfile::objfile): Rename from allocate_objfile.
5051 (~objfile): Rename from free_objfile.
5052 (free_objfile_separate_debug, do_free_objfile_cleanup)
5053 (free_all_objfiles, objfile_purge_solibs): Use delete.
5054 * objfiles.h (struct objfile): Add constructor and destructor.
5055 Use DISABLE_COPY_AND_ASSIGN. Add initializers to data members.
5056 (allocate_objfile, free_objfile): Don't declare.
5057 (struct objstats): Add initializers.
5058
5059 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
5060
5061 * arch-utils.h (simple_displaced_step_copy_insn): Remove.
5062 * arch-utils.c (simple_displaced_step_copy_insn): Remove.
5063 * gdbarch.sh (displaced_step_copy_insn): Adjust comment.
5064 * gdbarch.h: Regenerate.
5065 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
5066 Adjust comment.
5067 * i386-tdep.c (i386_displaced_step_copy_insn): Adjust comment.
5068 (i386_displaced_step_fixup): Adjust comment.
5069 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Adjust comment.
5070
5071 2017-10-12 Tom Tromey <tom@tromey.com>
5072
5073 * prologue-value.h (pv_area::store_would_trash): Return bool.
5074 (pv_area::find_reg): Likewise.
5075 * prologue-value.c (pv_area::store_would_trash): Return bool.
5076 (pv_area::find_reg): Likewise.
5077
5078 2017-10-12 Tom Tromey <tom@tromey.com>
5079
5080 * s390-linux-tdep.c (s390_store, s390_load)
5081 (s390_check_for_saved, s390_analyze_prologue): Update.
5082 * rx-tdep.c (check_for_saved, rx_analyze_prologue): Update.
5083 * rl78-tdep.c (rl78_analyze_prologue, check_for_saved): Update.
5084 * prologue-value.h (class pv_area): Move from prologue-value.c.
5085 Change names of members. Add constructor, destructor, member
5086 functions.
5087 (make_pv_area, free_pv_area, make_cleanup_free_pv_area)
5088 (pv_area_store, pv_area_fetch, pv_area_store_would_trash)
5089 (pv_area_fetch, pv_area_scan): Don't declare.
5090 * prologue-value.c (struct pv_area::area_entry): Now member of
5091 pv_area.
5092 (struct pv_area): Move to prologue-value.h.
5093 (pv_area::pv_area): Rename from make_pv_area.
5094 (pv_area::~pv_area): Rename from free_pv_area.
5095 (do_free_pv_area_cleanup, make_cleanup_free_pv_area): Remove.
5096 (clear_entries, find_entry, overlaps, store_would_trash, store)
5097 (fetch, find_reg, scan): Now member of pv_area.
5098 Remove "area" argument. Update.
5099 * msp430-tdep.c (check_for_saved, msp430_analyze_prologue):
5100 Update.
5101 * mn10300-tdep.c (push_reg, check_for_saved)
5102 (mn10300_analyze_prologue): Update.
5103 * mep-tdep.c (is_arg_spill, check_for_saved)
5104 (mep_analyze_prologue): Update.
5105 * m32c-tdep.c (m32c_pv_push, m32c_srcdest_fetch)
5106 (m32c_srcdest_store, m32c_pv_enter, m32c_is_arg_spill)
5107 (m32c_is_struct_return, m32c_analyze_prologue): Update.
5108 * arm-tdep.c (thumb_analyze_prologue, arm_analyze_prologue):
5109 Update.
5110 * arc-tdep.c (arc_is_in_prologue, arc_analyze_prologue): Update.
5111 * aarch64-tdep.c (aarch64_analyze_prologue): Update.
5112
5113 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
5114
5115 * linux-nat.h (linux_nat_set_delete_thread): New declaration.
5116 * linux-nat.c (linux_nat_delete_thread): New variable.
5117 (lwp_free): Invoke linux_nat_delete_thread if set.
5118 (linux_nat_set_delete_thread): New function.
5119 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Assign
5120 thread delete callback.
5121 * arm-linux-nat.c (arm_linux_delete_thread): New function.
5122 (_initialize_arm_linux_nat): Assign thread delete callback.
5123 * s390-linux-nat.c (s390_delete_thread): New function.
5124 (_initialize_s390_nat): Assign thread delete callback.
5125 * x86-linux-nat.c (x86_linux_add_target): Likewise.
5126 * nat/aarch64-linux.c (aarch64_linux_delete_thread): New
5127 function.
5128 * nat/aarch64-linux.h (aarch64_linux_delete_thread): New
5129 declaration.
5130 * nat/x86-linux.c (x86_linux_delete_thread): New function.
5131 * nat/x86-linux.h (x86_linux_delete_thread): New declaration.
5132
5133 2017-10-09 Tom Tromey <tom@tromey.com>
5134
5135 * tui/tui-win.c (tui_set_win_height, parse_scrolling_args): Use
5136 std::string.
5137 * tui/tui-layout.c (enum tui_status): Use std::string.
5138
5139 2017-10-11 Tom Tromey <tom@tromey.com>
5140
5141 * gdbthread.h (thread_command): Constify.
5142 * inferior.h (detach_command): Constify.
5143 * top.h (set_history, show_history): Constify.
5144 * arm-tdep.c (set_arm_command, show_arm_command): Constify.
5145 * serial.c (serial_set_cmd, serial_show_cmd): Constify.
5146 * bsd-kvm.c (bsd_kvm_cmd): Constify.
5147 * printcmd.c (set_command): Constify.
5148 (non_const_set_command): New function.
5149 * dcache.c (set_dcache_command, show_dcache_command): Constify.
5150 * breakpoint.c (enable_command, disable_command, delete_command)
5151 (catch_command, tcatch_command, set_breakpoint_cmd)
5152 (show_breakpoint_cmd): Constify.
5153 * macrocmd.c (macro_command): Constify.
5154 * infcmd.c (unset_command, kill_command, detach_command)
5155 (info_proc_cmd): Constify.
5156 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Constify.
5157 * auto-load.c (show_auto_load_cmd, set_auto_load_cmd)
5158 (info_auto_load_cmd): Constify.
5159 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
5160 (unset_tdesc_cmd): Constify.
5161 * ada-lang.c (set_ada_command, show_ada_command)
5162 (maint_set_ada_cmd, maint_show_ada_cmd): Constify.
5163 * guile/guile.c (set_guile_command, show_guile_command)
5164 (info_guile_command): Constify.
5165 * tui/tui-win.c (tui_command, set_tui_cmd, show_tui_cmd):
5166 Constify.
5167 * skip.c (skip_command): Constify.
5168 * compile/compile.c (_initialize_compile): Constify.
5169 * dwarf2read.c (set_dwarf_cmd, show_dwarf_cmd): Constify.
5170 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
5171 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
5172 (maint_btrace_pt_show_cmd): Constify.
5173 * remote.c (set_remote_cmd, show_remote_cmd, remote_command):
5174 Constify.
5175 * python/python.c (user_show_python, user_set_python): Constify.
5176 * mips-tdep.c (set_mips_command, show_mips_command)
5177 (set_mipsfpu_command): Constify.
5178 * record-btrace.c (cmd_record_btrace_start)
5179 (cmd_set_record_btrace, cmd_show_record_btrace)
5180 (cmd_set_record_btrace_bts, cmd_show_record_btrace_bts)
5181 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): Constify.
5182 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command):
5183 Constify.
5184 * symfile.c (overlay_command): Constify.
5185 * spu-tdep.c (set_spu_command, show_spu_command): Constify.
5186 * cli/cli-logging.c (set_logging_command, show_logging_command):
5187 Constify.
5188 * cli/cli-dump.c (dump_command, append_command)
5189 (srec_dump_command, ihex_dump_command, verilog_dump_command)
5190 (tekhex_dump_command, binary_dump_command)
5191 (binary_append_command): Constify.
5192 * cli/cli-decode.c (struct cmd_list_element): Change type of
5193 "fun".
5194 * cli/cli-cmds.c (info_command, show_command, set_debug)
5195 (show_debug): Constify.
5196 (show_command): Add non-const overload.
5197 * top.c (set_history, show_history): Constify.
5198 * sh-tdep.c (set_sh_command, show_sh_command): Constify.
5199 * command.h (add_prefix_cmd): Accept a cmd_const_cfunc_ftype.
5200 * target.c (target_command): Constify.
5201 * sparc64-tdep.c (info_adi_command): Constify.
5202 * record-full.c (cmd_record_full_start): Constify.
5203 (set_record_full_command): Constify. Fix typo.
5204 (show_record_full_command): Constify.
5205 * thread.c (thread_command, thread_apply_command): Constify.
5206 * memattr.c (dummy_cmd): Constify.
5207 * value.c (function_command): Constify.
5208 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Constify.
5209 * probe.c (info_probes_command): Constify.
5210 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Constify.
5211 * gnu-nat.c (set_task_cmd, show_task_cmd, set_thread_cmd)
5212 (show_thread_cmd, set_thread_default_cmd)
5213 (show_thread_default_cmd): Constify.
5214 (check_empty): Constify.
5215 * tracepoint.c (tfind_command): Constify.
5216 * cp-support.c (maint_cplus_command): Constify.
5217 * windows-tdep.c (info_w32_command): Constify.
5218 * record.c (cmd_record_start, set_record_command)
5219 (show_record_command, info_record_command, cmd_record_goto):
5220 Constify.
5221 * ravenscar-thread.c (set_ravenscar_command)
5222 (show_ravenscar_command): Constify.
5223 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5224 Constify.
5225 (add_internal_problem_command): Remove casts.
5226 * arc-tdep.c (maintenance_print_arc_command): Constify.
5227 * valprint.c (set_print, show_print, set_print_raw)
5228 (show_print_raw): Constify.
5229 * maint.c (maintenance_command, maintenance_info_command)
5230 (maintenance_print_command, maintenance_set_cmd)
5231 (maintenance_show_cmd, set_per_command_cmd)
5232 (show_per_command_cmd, maintenance_check_command): Constify.
5233 * language.c (set_check, show_check): Constify.
5234 * typeprint.c (show_print_type, set_print_type): Constify.
5235 * go32-nat.c (go32_info_dos_command): Constify.
5236
5237 2017-10-11 Tom Tromey <tom@tromey.com>
5238
5239 * breakpoint.c (prepare_re_set_context): Remove.
5240 (breakpoint_re_set_one): Update. Don't use cleanups.
5241 (breakpoint_re_set): Use scoped_restore, std::string, and
5242 scoped_restore_current_language.
5243
5244 2017-10-11 Tom Tromey <tom@tromey.com>
5245
5246 * breakpoint.c (commands_command_1): Use std::string.
5247 (cleanup_executing_breakpoints): Remove.
5248 (bpstat_do_actions_1): Use scoped_restore.
5249 (bpstat_check_watchpoint): Use std::string.
5250 (decode_static_tracepoint_spec): Likewise.
5251 (break_range_command): Likewise.
5252 (watch_command_1): Likewise.
5253 (compare_breakpoints): Change argument types.
5254 (clear_command): Use std::vector.
5255 (cleanup_executing_breakpoints): Remove.
5256 (update_global_location_list): Use unique_xmalloc_ptr.
5257 (strace_command): Remove unused declaration.
5258
5259 2017-10-11 John Baldwin <jhb@FreeBSD.org>
5260
5261 * Makefile.in (ALLDEPFILES): Add arm-fbsd-nat.c.
5262 * NEWS: Mention new FreeBSD/arm native configuration.
5263 * configure.host: Add arm*-*-freebsd*.
5264 * configure.nat: Likewise.
5265 * arm-fbsd-nat.c: New file.
5266
5267 2017-10-11 John Baldwin <jhb@FreeBSD.org>
5268
5269 * Makefile.in (ALL_TARGET_OBS): Add arm-fbsd-tdep.o.
5270 (ALLDEPFILES): Add arm-fbsd-tdep.c.
5271 * NEWS: Mention new FreeBSD/arm target.
5272 * configure.tgt: Add arm*-*-freebsd*.
5273 * arm-fbsd-tdep.c: New file.
5274 * arm-fbsd-tdep.h: New file.
5275
5276 2017-10-11 Maciej W. Rozycki <macro@imgtec.com>
5277
5278 * linux-tdep.c (linux_make_corefile_notes): Remove call to
5279 `gdbarch_elfcore_write_linux_prpsinfo'.
5280 * gdbarch.sh (elfcore_write_linux_prpsinfo): Remove architecture
5281 method.
5282 (elf_internal_linux_prpsinfo): Remove declaration.
5283 * gdbarch.h: Regenerate.
5284 * gdbarch.c: Regenerate.
5285
5286 2017-10-11 Maciej W. Rozycki <macro@imgtec.com>
5287
5288 * ppc-linux-tdep.c (ppc_linux_init_abi): Remove call to
5289 `set_gdbarch_elfcore_write_linux_prpsinfo'.
5290
5291 2017-10-11 Pedro Alves <palves@redhat.com>
5292
5293 * breakpoint.c (reattach_breakpoints): Delete.
5294 * breakpoint.h (reattach_breakpoints): Delete.
5295
5296 2017-10-11 Simon Marchi <simon.marchi@ericsson.com>
5297
5298 * symfile.c (registered_sym_fns): Make struct, not typedef.
5299 (DEF_VEC_O (registered_sym_fns)): Remove.
5300 (symtab_fns): Change type to std::vector.
5301 (add_symtab_fns): Adjust.
5302 (find_sym_fns): Adjust.
5303
5304 2017-10-11 Anton Kolesov <Anton.Kolesov@synopsys.com>
5305
5306 * arc-tdep.c (arc_gdbarch_init): Pass proper cpu value to disassembler.
5307 * arc-tdep.h (arc_arch_is_em): New function.
5308 (arc_arch_is_hs): Likewise.
5309
5310 2017-10-11 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com>
5311
5312 * macrotab.h (macro_lookup_inclusion): Remove unnecessary
5313 parentheses in the declaration.
5314 (macro_lookup_inclusion): Likewise.
5315 (macro_lookup_definition): Likewise.
5316 * p-lang.h (pascal_builtin_types): Likewise.
5317 * tui/tui-data.c (tui_win_list): Likewise.
5318 * tui/tui-data.h (tui_win_list): Likewise.
5319 * utils.h (make_cleanup_free_section_addr_info): Likewise.
5320
5321 2017-10-11 Mark Rages <markrages@gmail.com>
5322
5323 * target-memory.c (block_boundaries): Fix for block address not
5324 aligned on block size.
5325
5326 2017-10-10 Pedro Alves <palves@redhat.com>
5327 Tom Tromey <tom@tromey.com>
5328
5329 * breakpoint.c (struct captured_breakpoint_query_args)
5330 (do_captured_breakpoint_query, gdb_breakpoint_query): Delete.
5331 (print_breakpoint): New.
5332 * breakpoint.h (print_breakpoint): Declare.
5333 * common/common-exceptions.h (enum return_reason): Remove
5334 references to catch_exceptions.
5335 * exceptions.c (catch_exceptions, catch_exceptions_with_msg):
5336 Delete.
5337 * exceptions.h (catch_exceptions_ftype, catch_exceptions)
5338 (catch_exception_ftype, catch_exceptions_with_msg): Delete.
5339 * gdb.h: Delete.
5340 * gdbthread.h (thread_select): Declare.
5341 * mi/mi-cmd-break.c: Don't include gdb.h.
5342 (breakpoint_notify): Use print_breakpoint.
5343 * mi/mi-cmd-catch.c: Don't include gdb.h.
5344 * mi/mi-interp.c: Don't include gdb.h.
5345 (mi_print_breakpoint_for_event): New.
5346 (mi_breakpoint_created, mi_breakpoint_modified): Use
5347 mi_print_breakpoint_for_event.
5348 * mi/mi-main.c: Don't include gdb.h.
5349 (mi_cmd_thread_select): Parse the global thread ID here. Use
5350 thread_select instead of gdb_thread_select.
5351 (mi_cmd_thread_list_ids): Output "thread-ids" tuple here instead
5352 of using gdb_list_thread_ids.
5353 * remote-fileio.c (do_remote_fileio_request): Change type. Reply
5354 FILEIO_ENOSYS here.
5355 (remote_fileio_request): Use TRY/CATCH instead of
5356 catch_exceptions.
5357 * symfile-mem.c (struct symbol_file_add_from_memory_args)
5358 (symbol_file_add_from_memory_wrapper): Delete.
5359 (add_vsyscall_page): Use TRY/CATCH instead of catch_exceptions.
5360 * thread.c: Don't include gdb.h.
5361 (do_captured_list_thread_ids, gdb_list_thread_ids): Delete.
5362 (thread_alive): Use thread_select.
5363 (do_captured_thread_select): Delete, parts salvaged as ...
5364 (thread_select): ... this new function.
5365 (gdb_thread_select): Delete.
5366
5367 2017-10-10 Pedro Alves <palves@redhat.com>
5368 Tom Tromey <tom@tromey.com>
5369
5370 * breakpoint.c (breakpoint_cond_eval): Change return type to bool
5371 and reverse logic.
5372 (WP_DELETED, WP_VALUE_CHANGED, WP_VALUE_NOT_CHANGED, WP_IGNORE):
5373 No longer macros. Instead ...
5374 (enum wp_check_result): They're now values of this new
5375 enumeration.
5376 (watchpoint_check): Change return type to wp_check_result and
5377 parameter type to bpstat.
5378 (bpstat_check_watchpoint): Use TRY/CATCH instead of catch_errors.
5379 (bpstat_check_breakpoint_conditions): Use TRY/CATCH instead of
5380 catch_errors. Reverse logic of watchpoint_check call.
5381 (breakpoint_re_set_one): Now returns void and takes a breakpoint
5382 pointer as parameter.
5383 (breakpoint_re_set): Use TRY/CATCH instead of catch_errors.
5384 * common/common-exceptions.c (throw_exception_sjlj): Update
5385 comments to avoid mentioning catch_errors.
5386 * exceptions.c (catch_errors): Delete.
5387 * exceptions.h: Update comments to avoid mentioning catch_errors.
5388 (catch_errors_ftype, catch_errors): Delete.
5389 * infrun.c (normal_stop): Use TRY/CATCH instead of catch_errors.
5390 (hook_stop_stub): Delete.
5391 (restore_selected_frame): Change return type to void, and
5392 parameter type to const frame_id &.
5393 (restore_infcall_control_state): Use TRY/CATCH instead of
5394 catch_errors.
5395 * main.c (captured_command_loop): Return void and remove
5396 parameter. Remove references to catch_errors.
5397 (captured_main): Use TRY/CATCH instead of catch_errors.
5398 * objc-lang.c (objc_submethod_helper_data)
5399 (find_objc_msgcall_submethod_helper): Delete.
5400 (find_objc_msgcall_submethod): Use TRY/CATCH instead of
5401 catch_errors.
5402 * record-full.c (record_full_message): Return void.
5403 (record_full_message_args, record_full_message_wrapper): Delete.
5404 (record_full_message_wrapper_safe): Return bool and use TRY/CATCH
5405 instead of catch_errors.
5406 * solib-aix.c (solib_aix_open_symbol_file_object): Change
5407 parameter type to int.
5408 * solib-darwin.c (open_symbol_file_object): Ditto.
5409 * solib-dsbt.c (open_symbol_file_object): Ditto.
5410 * solib-frv.c (open_symbol_file_object): Ditto.
5411 * solib-svr4.c (open_symbol_file_object): Ditto.
5412 * solib-target.c (solib_target_open_symbol_file_object): Ditto.
5413 * solib.c (update_solib_list): Use TRY/CATCH instead of
5414 catch_errors.
5415 * solist.h (struct target_so_ops) <open_symbol_file_object>:
5416 Change type.
5417 * symmisc.c (struct print_symbol_args): Remove.
5418 (dump_symtab_1): Use TRY/CATCH instead of catch_errors.
5419 (print_symbol): Change type.
5420 * windows-nat.c (handle_load_dll, handle_unload_dll): Return void
5421 and remove parameters.
5422 (catch_errors): New.
5423 (get_windows_debug_event): Adjust.
5424
5425 2017-10-09 Tom Tromey <tom@tromey.com>
5426
5427 * mi/mi-main.c (free_splay_tree): Remove.
5428 (list_available_thread_groups): Use splay_tree_up.
5429 * common/gdb_splay_tree.h: New file.
5430
5431 2017-10-09 Tom Tromey <tom@tromey.com>
5432
5433 * mi/mi-main.c (do_nothing): Remove.
5434 (list_available_thread_groups): Update.
5435
5436 2017-10-09 Pedro Alves <palves@redhat.com>
5437
5438 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>: Skip
5439 reading registers when switching context.
5440
5441 2017-10-09 John Baldwin <jhb@FreeBSD.org>
5442
5443 * fbsd-nat.c (fbsd_siginfo_size): Use gdbarch_long_bit.
5444 (fbsd_convert_siginfo): Likewise.
5445 * fbsd-tdep.c (fbsd_core_xfer_siginfo): Likewise.
5446
5447 2017-10-09 Simon Marchi <simon.marchi@polymtl.ca>
5448
5449 * configure.ac (try_guile_versions): Remove guile-2.2.
5450 * configure: Regenerate.
5451
5452 2017-10-09 Tom Tromey <tom@tromey.com>
5453
5454 * Makefile.in (COMPILE.post, POSTCOMPILE): Restore $(basename).
5455 (COMPILE.pre): Use $(CXX).
5456
5457 2017-10-09 Pedro Alves <palves@redhat.com>
5458
5459 * cp-support.c (cp_remove_params): Return a gdb::unique_xmalloc_ptr.
5460 Use bool.
5461 (overload_list_add_symbol): Adjust to use gdb::unique_xmalloc_ptr.
5462 * cp-support.h (cp_remove_params): Now returns a
5463 gdb::unique_xmalloc_ptr.
5464 * dwarf2read.c (find_slot_in_mapped_hash): Now returns bool.
5465 Adjust to cp_remove_params returning a gdb::unique_xmalloc_ptr.
5466 * psymtab.c (psymtab_search_name): Adjust to cp_remove_params
5467 returning a gdb::unique_xmalloc_ptr.
5468 (lookup_partial_symbol): Adjust to use gdb::unique_xmalloc_ptr.
5469 * stack.c (find_frame_funname): Adjust to cp_remove_params
5470 returning a gdb::unique_xmalloc_ptr.
5471
5472 2017-10-08 Tom Tromey <tom@tromey.com>
5473
5474 * dwarf2read.c (dwarf2_get_dwz_file): Use
5475 gdb::unique_xmalloc_ptr.
5476 (find_slot_in_mapped_hash): Likewise.
5477 (dwarf2_physname): Likewise.
5478 (create_dwo_unit_in_dwp_v1): Use std::string.
5479 (create_dwo_unit_in_dwp_v2): Likewise.
5480 (lookup_dwo_cutu): Likewise.
5481 (inherit_abstract_dies): Use std::vector.
5482 (read_array_type): Likewise.
5483 (dwarf_decode_macros): Remove unused declaration.
5484 (unsigned_int_compar): Remove.
5485 (dwarf2_build_psymtabs_hard): Use scoped_restore.
5486 (psymtabs_addrmap_cleanup): Remove.
5487
5488 2017-10-08 Tom Tromey <tom@tromey.com>
5489
5490 * frame-unwind.c (frame_unwind_try_unwinder): Update.
5491 * frame.h (frame_cleanup_after_sniffer): Declare.
5492 (frame_prepare_for_sniffer): Return void.
5493 * frame.c (frame_cleanup_after_sniffer): No longer static. Change
5494 type of argument.
5495 (frame_prepare_for_sniffer): Return void.
5496
5497 2017-10-08 Tom Tromey <tom@tromey.com>
5498
5499 * utils.h (make_cleanup_value_free): Remove.
5500 * utils.c (do_value_free, struct cleanup): Remove.
5501 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>:
5502 Use gdb_value_up.
5503 * value.h (struct value_deleter): New.
5504 (gdb_value_up): New typedef.
5505
5506 2017-10-08 Tom Tromey <tom@tromey.com>
5507
5508 * symtab.c (free_search_symbols, do_free_search_symbols_cleanup)
5509 (make_cleanup_free_search_symbols): Remove.
5510 (search_symbols): Return std::vector.
5511 (symbol_search::compare_search_syms): Now member of
5512 symbol_search. Change arguments.
5513 (sort_search_symbols_remove_dups): Change arguments. Rewrite.
5514 (symtab_symbol_info, rbreak_command): Update.
5515 * symtab.h (struct symbol_search) <next>: Remove.
5516 Add constructors.
5517 (symbol_search::operator<): New function.
5518 (symbol_search::operator==): New function.
5519 (search_symbols): Remove std::vector.
5520 (free_search_symbols, make_cleanup_free_search_symbols): Remove.
5521 (symbol_search::compare_search_syms): Declare.
5522
5523 2017-10-06 Yao Qi <yao.qi@linaro.org>
5524
5525 * Makefile.in (ALL_64_TARGET_OBS): Replace aarch64-insn.o with
5526 arch/aarch64-insn.o.
5527 Remove one rule.
5528 * configure.tgt: Replace aarch64-insn.o with arch/aarch64-insn.o.
5529
5530 2017-10-06 Yao Qi <yao.qi@linaro.org>
5531
5532 * Makefile.in (ALL_TARGET_OBS): Replace arm.o, arm-get-next-pcs.o,
5533 and arm-linux.o with arch/arm.o, arch/arm-get-next-pcs.o and
5534 arch/arm-linux.o respectively.
5535 * configure.tgt: Likewise.
5536
5537 2017-10-06 Yao Qi <yao.qi@linaro.org>
5538
5539 * Makefile.in (ALL_TARGET_OBS): Rename i386.o to arch/i386.o.
5540 * configure.tgt (i386_tobjs): Replace i386.o with arch/i386.o.
5541
5542 2017-10-06 Pedro Alves <palves@redhat.com>
5543
5544 * windows-nat.c: Include <algorithm>.
5545
5546 2017-10-06 Yao Qi <yao.qi@linaro.org>
5547
5548 * configure.tgt (i386_tobjs): New variable.
5549 (amd64_tobjs): New variable.
5550 Set $cpu_obs and $os_obs.
5551
5552 2017-10-06 Yao Qi <yao.qi@linaro.org>
5553
5554 * Makefile.in (CONFIG_SRC_SUBDIR): New.
5555 (ALL_64_TARGET_OBS): Replace amd64.o with arch/amd64.o.
5556 (clean): Remove object files and dependency files.
5557 (distclean): Remove the directory.
5558 * configure.ac: Invoke AC_CONFIG_COMMANDS.
5559 * configure: Re-generated.
5560 * configure.tgt: Replace amd64.o with arch/amd64.o.
5561
5562 2017-10-05 Jose E. Marchesi <jose.marchesi@oracle.com>
5563
5564 PR build/22188
5565 * arm-tdep.c (arm_decode_misc_memhint_neon): Fix decoding of CPS
5566 and SETEND.
5567
5568 2017-10-05 Pedro Alves <palves@redhat.com>
5569
5570 * linux-nat.c (linux_child_follow_fork): When following the parent
5571 and detaching the child, consult the parent thread's architecture
5572 instead of the child's.
5573
5574 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
5575
5576 * ax.h: Do not include "doublest.h".
5577 (union agent_val): Remove.
5578
5579 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
5580
5581 * dfp.h (MAX_DECIMAL_STRING): Move to dfp.c.
5582 (decimal_to_string): Return std::string object.
5583 (decimal_from_string): Accept std::string object. Return bool.
5584 (decimal_from_integral, decimal_from_doublest): Remove.
5585 (decimal_from_longest): Add prototype.
5586 (decimal_from_ulongest): Likewise.
5587 (decimal_to_longest): Likewise.
5588 (decimal_from_doublest): Likewise.
5589 * dfp.c: Do not include "gdbtypes.h" or "value.h".
5590 (MAX_DECIMAL_STRING): Move here.
5591 (decimal_to_string): Return std::string object.
5592 (decimal_from_string): Accept std::string object. Return bool.
5593 (decimal_from_integral): Remove, replace by ...
5594 (decimal_from_longest, decimal_from_ulongest): ... these new functions.
5595 (decimal_to_longest): New function.
5596 (decimal_from_floating): Remove, replace by ...
5597 (decimal_from_doublest): ... this new function.
5598 (decimal_to_doublest): Update to new decimal_to_string interface.
5599
5600 * value.c (unpack_long): Use decimal_to_longest.
5601 * valops.c (value_cast): Use decimal_from_doublest instead of
5602 decimal_from_floating. Use decimal_from_[u]longest isntead of
5603 decimal_from_integral.
5604 * valarith.c (value_args_as_decimal): Likewise.
5605 * valprint.c (print_decimal_floating): Update to new
5606 decimal_to_string interface.
5607 * printcmd.c (printf_decfloat): Likewise.
5608 * c-exp.y (parse_number): Update to new decimal_from_string interface.
5609
5610 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
5611
5612 * doublest.h: Do not include "floatformat.h". Remove stale comments.
5613 * gdbtypes.c: Include "floatformat.h".
5614 * value.c: Likewise.
5615 * m68k-tdep.c: Likewise.
5616
5617 * findvar.c: Do not include "floatformat.h".
5618 * amd64-darwin-tdep.c: Likewise.
5619 * arm-linux-tdep.c: Likewise.
5620 * i386-darwin-tdep.c: Likewise.
5621 * i387-tdep.c: Likewise.
5622 * m68k-linux-tdep.c: Likewise.
5623 * mep-tdep.c: Likewise.
5624 * mips-tdep.c: Likewise.
5625 * nios2-tdep.c: Likewise.
5626 * s390-linux-tdep.c: Likewise.
5627 * sparc-obsd-tdep.c: Likewise.
5628 * sparc-tdep.c: Likewise.
5629 * sparc64-tdep.c: Likewise.
5630 * spu-tdep.c: Likewise.
5631 * tic6x-tdep.c: Likewise.
5632 * tilegx-tdep.c: Likewise.
5633 * vax-tdep.c: Likewise.
5634 * xstormy16-tdep.c: Likewise.
5635 * xtensa-tdep.c: Likewise.
5636
5637 * top.c: Do not include "doublest.h".
5638 * aarch64-tdep.c: Likewise.
5639 * alpha-tdep.c: Likewise.
5640 * arm-linux-tdep.c: Likewise.
5641 * m68k-linux-tdep.c: Likewise.
5642 * tilegx-tdep.c: Likewise.
5643 * xstormy16-tdep.c: Likewise.
5644
5645 2017-10-05 John Baldwin <jhb@FreeBSD.org>
5646
5647 * mips-fbsd-tdep.c (MIPS_INST_ADDIU_A0_SP_N32): Define.
5648 (mipsn32_fbsd_sigframe): Define.
5649 (mips_fbsd_init_abi): Install mipsn32_fbsd_sigframe unwinder
5650 for FreeBSD/mipsn32.
5651
5652 2017-10-05 John Baldwin <jhb@FreeBSD.org>
5653
5654 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_EHDRFLAGS and
5655 AT_HWCAP.
5656
5657 2017-10-05 Tristan Gingold <tgingold@free.fr>
5658
5659 * MAINTAINERS (Misc): Update my email address.
5660
5661 2017-10-04 Pedro Alves <palves@redhat.com>
5662
5663 * remote.c (get_remote_arch_state): New 'gdbarch' parameter. Use
5664 it instead of target_gdbarch.
5665 (get_remote_state, get_remote_packet_size): Adjust
5666 get_remote_arch_state calls, passing down target_gdbarch
5667 explicitly.
5668 (packet_reg_from_regnum, packet_reg_from_pnum): New parameter
5669 'gdbarch' and use it instead of target_gdbarch.
5670 (get_memory_packet_size): Adjust get_remote_arch_state calls,
5671 passing down target_gdbarch explicitly.
5672 (struct stop_reply) <arch>: New field.
5673 (remote_parse_stop_reply): Use the stopped thread's architecture,
5674 not the current inferior's. Save the architecture in the
5675 stop_reply.
5676 (process_stop_reply): Use the stop reply's architecture.
5677 (process_g_packet, remote_fetch_registers)
5678 (remote_prepare_to_store, store_registers_using_G)
5679 (remote_store_registers): Adjust get_remote_arch_state calls,
5680 using the regcache's architecture.
5681 (remote_get_trace_status): Adjust get_remote_arch_state calls,
5682 passing down target_gdbarch explicitly.
5683 * spu-multiarch.c (spu_thread_architecture): Defer to the target
5684 beneath instead of calling target_gdbarch.
5685 * target.c (default_thread_architecture): Use the specified
5686 inferior's architecture, instead of the current inferior's
5687 architecture (via target_gdbarch).
5688
5689 2017-10-04 Pedro Alves <palves@redhat.com>
5690
5691 * regcache.c (get_thread_arch_regcache): Remove null_ptid special
5692 case.
5693 (regcache_print): Handle !target_has_registers here instead.
5694
5695 2017-10-04 Pedro Alves <palves@redhat.com>
5696
5697 * frame.c (create_test_frame): Delete.
5698 * frame.h (create_test_frame): Delete.
5699 * gdbarch-selftests.c: Include gdbthread.h and target.h.
5700 (class regcache_test): Delete.
5701 (test_target_has_registers, test_target_has_stack)
5702 (test_target_has_memory, test_target_prepare_to_store)
5703 (test_target_store_registers): New functions.
5704 (test_target_ops): New class.
5705 (register_to_value_test): Error out if there's already a
5706 process_stratum (or higher) target pushed. Create a fuller mock
5707 environment, with mock target_ops, inferior, address space, thread
5708 and inferior_ptid.
5709 * progspace.c (struct address_space): Move to ...
5710 * progspace.h (struct address_space): ... here.
5711 * regcache.h (regcache::~regcache, regcache::raw_write)
5712 [GDB_SELF_TEST]: No longer virtual.
5713
5714 2017-10-04 Simon Marchi <simon.marchi@ericsson.com>
5715
5716 * mi/mi-main.c (list_available_thread_groups): Reverse filter logic.
5717
5718 2017-10-04 Pedro Alves <palves@redhat.com>
5719
5720 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Move code
5721 out of 'between TRY and CATCH'.
5722
5723 2017-10-04 Pedro Alves <palves@redhat.com>
5724
5725 * cli/cli-cmds.c (complete_command): Add missing END_CATCH.
5726 * common/common-exceptions.h (TRY): Open an outermost scope.
5727 Expand intro comment.
5728 (CATCH): Reindent.
5729 (END_CATCH): Close the outermost scope.
5730 * completer.c (complete_line_internal): Add missing END_CATCH.
5731
5732 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
5733
5734 * NEWS (Changes since GDB 8.0): Add entry about new
5735 'set-cwd-on-gdbserver' feature.
5736 (New remote packets): Add entry for QSetWorkingDir.
5737 * common/common-inferior.h (set_inferior_cwd): New prototype.
5738 * infcmd.c (set_inferior_cwd): Remove "static".
5739 (show_cwd_command): Expand text to include remote debugging.
5740 * remote.c: Add PACKET_QSetWorkingDir.
5741 (remote_protocol_features) <QSetWorkingDir>: New entry for
5742 PACKET_QSetWorkingDir.
5743 (extended_remote_set_inferior_cwd): New function.
5744 (extended_remote_create_inferior): Call
5745 "extended_remote_set_inferior_cwd".
5746 (_initialize_remote): Call "add_packet_config_cmd" for
5747 QSetWorkingDir.
5748
5749 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
5750
5751 * NEWS (New commands): Mention "set/show cwd".
5752 * cli/cli-cmds.c (_initialize_cli_cmds): Mention "set cwd" on
5753 "cd" command's help text.
5754 * common/common-inferior.h (get_inferior_cwd): New prototype.
5755 * infcmd.c (inferior_cwd_scratch): New global variable.
5756 (set_inferior_cwd): New function.
5757 (get_inferior_cwd): Likewise.
5758 (set_cwd_command): Likewise.
5759 (show_cwd_command): Likewise.
5760 (_initialize_infcmd): Add "set/show cwd" commands.
5761 * inferior.h (class inferior) <cwd>: New field.
5762 * nat/fork-inferior.c: Include "gdb_tilde_expand.h".
5763 (fork_inferior): Change inferior's cwd before its execution.
5764 * windows-nat.c (windows_create_inferior): Pass inferior's cwd
5765 to CreateProcess.
5766
5767 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
5768
5769 * Makefile.in (SFILES): Add gdb_tilde_expand.c.
5770 (HFILES_NO_SRCDIR): Add gdb_tilde_expand.h.
5771 (COMMON_OBS): Add gdb_tilde_expand.o.
5772 * common/gdb_tilde_expand.c: New file.
5773 * common/gdb_tilde_expand.h: Likewise.
5774
5775 2017-10-03 Maciej W. Rozycki <macro@imgtec.com>
5776
5777 * gdbarch.sh (objfile): Remove duplicate declaration.
5778 * gdbarch.h: Regenerate.
5779
5780 2017-10-03 Tom Tromey <tom@tromey.com>
5781
5782 * utils.c (internal_vproblem): Use string_vprintf.
5783
5784 2017-10-03 Tom Tromey <tom@tromey.com>
5785
5786 * printcmd.c (info_symbol_command): Use std::string.
5787
5788 2017-10-03 Tom Tromey <tom@tromey.com>
5789
5790 * top.c (gdb_safe_append_history): Use std::string.
5791
5792 2017-10-03 Tom Tromey <tom@tromey.com>
5793
5794 * event-top.c (stdin_event_handler): Update.
5795 * main.c (captured_main_1): Update.
5796 * top.h (make_delete_ui_cleanup): Remove.
5797 (struct ui): Add constructor and destructor.
5798 (new_ui, delete_ui): Remove.
5799 * top.c (make_delete_ui_cleanup): Remove.
5800 (new_ui_command): Use std::unique_ptr.
5801 (delete_ui_cleanup): Remove.
5802 (ui::ui): Rename from new_ui. Update.
5803 (free_ui): Remove.
5804 (ui::~ui): Rename from delete_ui. Update.
5805
5806 2017-10-03 Tom Tromey <tom@tromey.com>
5807
5808 * symfile.c (load_progress): Use gdb::byte_vector.
5809
5810 2017-10-03 Tom Tromey <tom@tromey.com>
5811
5812 * mi/mi-main.c (mi_cmd_trace_frame_collected): Remove unused
5813 declaration.
5814 * printcmd.c (x_command): Remove unused declaration.
5815 * symfile.c (symbol_file_command): Remove unused declaration.
5816
5817 2017-10-03 Tom Tromey <tom@tromey.com>
5818
5819 * utils.c (internal_vproblem): Use std::string.
5820 (defaulted_query): Likewise.
5821
5822 2017-10-03 Tom Tromey <tom@tromey.com>
5823
5824 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Update.
5825 * top.c (execute_command_to_string): Update.
5826 * utils.c (make_cleanup_restore_page_info): Remove.
5827 (do_restore_page_info_cleanup): Remove.
5828 (set_batch_flag_and_restore_page_info):
5829 New.
5830 (make_cleanup_restore_page_info): Remove.
5831 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
5832 (~set_batch_flag_and_restore_page_info): New
5833 (make_cleanup_restore_uinteger): Remove.
5834 (make_cleanup_restore_integer): Remove.
5835 (struct restore_integer_closure): Remove.
5836 (restore_integer): Remove.
5837 * utils.h (struct set_batch_flag_and_restore_page_info): New
5838 class.
5839 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
5840 (make_cleanup_restore_page_info): Remove.
5841 (make_cleanup_restore_uinteger) Remove.
5842 (make_cleanup_restore_integer) Remove.
5843
5844 2017-10-03 Tom Tromey <tom@tromey.com>
5845
5846 * record-full.h (record_full_gdb_operation_disable_set): Return
5847 scoped_restore_tmpl<int>.
5848 * infrun.c (adjust_pc_after_break): Update.
5849 (handle_signal_stop): Update.
5850 * record-full.c (record_full_gdb_operation_disable_set): Return
5851 scoped_restore_tmpl<int>.
5852 (record_full_wait_1, record_full_insert_breakpoint)
5853 (record_full_remove_breakpoint, record_full_save)
5854 (record_full_goto_insn): Update.
5855
5856 2017-10-02 Tom Tromey <tom@tromey.com>
5857
5858 PR rust/22236:
5859 * rust-lang.c (rust_val_print_str): New function.
5860 (val_print_struct): Call it.
5861 (rust_subscript): Preserve name of slice type.
5862
5863 2017-10-02 Tom Tromey <tom@tromey.com>
5864
5865 * rust-lang.c (rust_subscript): Handle slices in
5866 EVAL_AVOID_SIDE_EFFECTS case.
5867
5868 2017-10-02 Tom Tromey <tom@tromey.com>
5869
5870 * rust-lang.c (rust_slice_type_p): Recognize &str as a slice type.
5871
5872 2017-10-02 Tom Tromey <tom@tromey.com>
5873
5874 * rust-lang.h (rust_slice_type): Add "extern".
5875
5876 2017-10-02 Tom Tromey <tom@tromey.com>
5877 Pedro Alves <palves@redhat.com>
5878
5879 * ada-lang.h (ada_exc_info::operator<): Make const.
5880 (ada_exc_info::operator==): Make const.
5881 * ada-lang.c (ada_exc_info::operator<, ada_exc_info::operator==):
5882 Make const.
5883
5884 2017-09-29 Tom Tromey <tom@tromey.com>
5885
5886 * target.c (read_whatever_is_readable): Change type of "result".
5887 Update.
5888 (free_memory_read_result_vector): Remove.
5889 (read_memory_robust): Change return type. Update.
5890 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update. Use
5891 bin2hex, std::string.
5892 * target.h (memory_read_result_s): Remove typedef.
5893 (free_memory_read_result_vector): Remove.
5894 (read_memory_robust): Return std::vector.
5895
5896 2017-09-29 Tom Tromey <tom@tromey.com>
5897
5898 * mi/mi-main.c (captured_mi_execute_command): Use scope_restore.
5899
5900 2017-09-29 Tom Tromey <tom@tromey.com>
5901
5902 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Update.
5903 * ada-lang.h (struct ada_exc_info): Remove typedef. Declare
5904 operator< and operator==.
5905 (ada_exceptions_list): Return a std::vector.
5906 * ada-lang.c (ada_exc_info::operator<): Rename from
5907 compare_ada_exception_info.
5908 (ada_exc_info::operator==): New.
5909 (sort_remove_dups_ada_exceptions_list): Change type of
5910 "exceptions".
5911 (ada_add_standard_exceptions, ada_add_exceptions_from_frame)
5912 (ada_add_global_exceptions): Likewise.
5913 (ada_exceptions_list_1): Return a std::vector.
5914 (ada_exceptions_list): Likewise.
5915
5916 2017-09-29 Tom Tromey <tom@tromey.com>
5917
5918 * mi/mi-main.c (struct print_one_inferior_data) <inferiors>: Now a
5919 'std::set *'.
5920 (print_one_inferior): Update.
5921 (free_vector_of_ints): Remove.
5922 (list_available_thread_groups): Change "ids" to std::set.
5923 (mi_cmd_list_thread_groups): Update.
5924 (struct collect_cores_data) <core>: Now a std::set.
5925 (collect_cores): Update.
5926 (unique): Remove.
5927 (print_one_inferior): Update.
5928
5929 2017-09-29 Tom Tromey <tom@tromey.com>
5930
5931 * mi/mi-main.c (mi_execute_cli_command): Use std::string.
5932 (mi_execute_async_cli_command): Likewise.
5933 (mi_cmd_trace_frame_collected): Use field_fmt.
5934
5935 2017-09-29 Tom Tromey <tom@tromey.com>
5936
5937 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Use
5938 gdb::byte_vector.
5939
5940 2017-09-29 Tom Tromey <tom@tromey.com>
5941
5942 * mi/mi-parse.c (mi_parse): Remove unused declaration.
5943
5944 2017-09-29 Tom Tromey <tom@tromey.com>
5945
5946 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Don't copy "oarg".
5947
5948 2017-09-29 Tom Tromey <tom@tromey.com>
5949
5950 * varobj.h (varobj_gen_name): Return std::string.
5951 * varobj.c (varobj_gen_name): Return std::string.
5952 * mi/mi-cmd-var.c (mi_cmd_var_create): Use std::string.
5953 (mi_cmd_var_delete): Don't copy "name".
5954
5955 2017-09-29 Tom Tromey <tom@tromey.com>
5956
5957 * mi/mi-cmd-break.c (mi_argv_to_format): Return std::string.
5958 (mi_cmd_break_insert_1): Update.
5959
5960 2017-09-29 Tom Tromey <tom@tromey.com>
5961
5962 * target.h (make_scoped_defer_target_commit_resume): Update.
5963 * target.c (make_scoped_defer_target_commit_resume): Rename from
5964 make_cleanup_defer_target_commit_resume. Return a
5965 scoped_restore.
5966 * infrun.c (proceed): Use make_scoped_defer_target_commit_resume.
5967
5968 2017-09-29 Tom Tromey <tom@tromey.com>
5969
5970 * main.c (captured_main_1): Remove unused declaration.
5971 * spu-multiarch.c (parse_spufs_run): Remove unused declaration.
5972
5973 2017-09-29 Tom Tromey <tom@tromey.com>
5974
5975 * symtab.c (search_symbols): Remove unused outer cleanup.
5976 (make_source_files_completion_list): Remove unused declaration.
5977
5978 2017-09-29 Tom Tromey <tom@tromey.com>
5979
5980 * mt-tdep.c (mt_push_dummy_call): Use gdb::byte_vector.
5981
5982 2017-09-29 Tom Tromey <tom@tromey.com>
5983
5984 * xstormy16-tdep.c (xstormy16_push_dummy_call): Use
5985 gdb::byte_vector.
5986
5987 2017-09-29 Tom Tromey <tom@tromey.com>
5988
5989 * complaints.c (vcomplaint): Use std::string.
5990
5991 2017-09-29 Tom Tromey <tom@tromey.com>
5992
5993 * tracepoint.c (trace_variable_command): Use std::string.
5994 (encode_actions_1): Remove unused declarations.
5995 (create_tsv_from_upload): Use std::string.
5996
5997 2017-09-29 Tom Tromey <tom@tromey.com>
5998
5999 * cp-support.c (gdb_demangle): Use std::string.
6000
6001 2017-09-29 Tom Tromey <tom@tromey.com>
6002
6003 * stack.c (parse_frame_specification): Use std::string
6004 (info_frame_command): Use gdb::unique_xmalloc_ptr.
6005
6006 2017-09-29 Tom Tromey <tom@tromey.com>
6007
6008 * tilegx-tdep.c (tilegx_push_dummy_call): Use gdb::byte_vector.
6009
6010 2017-09-29 Tom Tromey <tom@tromey.com>
6011
6012 * utils.c (vfprintf_maybe_filtered): Use std::string.
6013 (vfprintf_unfiltered): Likewise.
6014
6015 2017-09-29 Tom Tromey <tom@tromey.com>
6016
6017 * event-top.c (top_level_prompt): Return std::string.
6018 (display_gdb_prompt): Update.
6019
6020 2017-09-29 Tom Tromey <tom@tromey.com>
6021
6022 * unittests/common-utils-selftests.c (format): New function.
6023 (string_vprintf_tests): New function.
6024 (_initialize_common_utils_selftests): Register new tests.
6025 * common/common-utils.c (string_vprintf): New function.
6026 * common/common-utils.h (string_vprintf): Declare.
6027
6028 2017-09-29 Pedro Alves <palves@redhat.com>
6029
6030 * common/rsp-low.c (unpack_varlen_hex): Constify.
6031 * common/rsp-low.h (unpack_varlen_hex): Constify.
6032 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
6033 Constify.
6034 * remote.c (remote_set_permissions, read_ptid)
6035 (remote_current_thread, remote_get_threads_with_qthreadinfo)
6036 (remote_static_tracepoint_marker_at)
6037 (remote_static_tracepoint_markers_by_strid)
6038 (stop_reply_extract_thread, remote_parse_stop_reply): Constify.
6039 * tracepoint.c (parse_trace_status, parse_tracepoint_status)
6040 (parse_tracepoint_definition, parse_tsv_definition)
6041 (parse_static_tracepoint_marker_definition): Constify.
6042 * tracepoint.h (parse_static_tracepoint_marker_definition)
6043 (parse_trace_status, parse_tracepoint_status)
6044 (parse_tracepoint_definition, parse_tsv_definition): Constify.
6045
6046 2017-09-29 Pedro Alves <palves@redhat.com>
6047
6048 * remote.c (target_buf, target_buf_size): Delete.
6049 (remote_get_noisy_reply): Remove buf_p and sizeof_buf parameters.
6050 Use the connection's packet buffer instead.
6051 All callers adjusted.
6052 (_initialize_remote): Remove references to target_buf and
6053 target_buf_size.
6054
6055 2017-09-28 Pedro Alves <palves@redhat.com>
6056
6057 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
6058 unittests/common-utils-selftests.c.
6059 (SUBDIR_UNITTESTS_OBS): Add common-utils-selftests.o.
6060 (COMMON_OBS): Remove utils-selftests.o.
6061 * utils-selftests.c: Move to ...
6062 * unittests/common-utils-selftests.c: ... here and rename self
6063 test to "string_printf".
6064
6065 2017-09-28 Alexander Shaposhnikov <alexander.v.shaposhnikov@gmail.com> (tiny patch)
6066
6067 * dwarf2read.c (open_and_init_dwp_file): Protect against dwp_file
6068 having NULL cus or tus.
6069
6070 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
6071
6072 * arm-tdep.c: (convert_from_extended): Remove.
6073 (convert_to_extended): Likewise.
6074 (arm_extract_return_value): Use convert_typed_floating.
6075 (arm_store_return_value): Likewise.
6076
6077 * sh-tdep.h (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
6078 * sh-tdep.c: Do not include "floatformat.h".
6079 (sh_littlebyte_bigword_type): New function.
6080 (sh_register_convert_to_virtual): Use convert_typed_floating.
6081 (sh_register_convert_to_raw): Likewise.
6082 * sh64-tdep.c: (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
6083 (sh64_littlebyte_bigword_type): New function.
6084 (sh64_extract_return_value): Use convert_typed_floating.
6085 (sh64_register_convert_to_virtual): Likewise.
6086 (sh64_register_convert_to_raw): Likewise.
6087
6088 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
6089
6090 * doublest.h (floatformat_from_type): Move to gdbtypes.h.
6091 * doublest.c (floatformat_from_type): Move to gdbtypes.c.
6092
6093 * gdbtypes.h (union type_specific): Make field floatformat hold
6094 just a single struct floatformat, not an array.
6095 (floatformat_from_type): Move here.
6096 * gdbtypes.c (floatformat_from_type): Move here. Update to
6097 changed TYPE_FLOATFORMAT definition.
6098 (verify_floatformat): Update to changed TYPE_FLOATFORMAT.
6099 (recursive_dump_type): Likewise.
6100 (init_float_type): Install correct floatformat for byte order.
6101 (arch_float_type): Likewise.
6102
6103 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
6104
6105 * gdbtypes.c (init_type): Change incoming argument from
6106 length-in-bytes to length-in-bits. Assert length is a
6107 multiple of TARGET_CHAR_BITS.
6108 (arch_type, arch_flags_type): Likewise.
6109 (init_integer_type): Update call to init_type.
6110 (init_character_type): Likewise.
6111 (init_boolean_type): Likewise.
6112 (init_float_type): Likewise.
6113 (init_decfloat_type): Likewise.
6114 (init_complex_type): Likewise.
6115 (init_pointer_type): Likewise.
6116 (objfile_type): Likewise.
6117 (arch_integer_type): Update call to arch_type.
6118 (arch_character_type): Likewise.
6119 (arch_boolean_type): Likewise.
6120 (arch_float_type): Likewise.
6121 (arch_decfloat_type): Likewise.
6122 (arch_complex_type): Likewise.
6123 (arch_pointer_type): Likewise.
6124 (gdbtypes_post_init): Likewise.
6125
6126 * dwarf2read.c (dwarf2_init_float_type): Update call to init_type.
6127 (read_base_type): Likewise.
6128 * mdebugread.c (basic_type): Likewise.
6129 * stabsread.c (dbx_init_float_type): Likewise.
6130 (rs6000_builtin_type): Likewise.
6131 (read_range_type): Likewise. Also, fix call to init_integer_type
6132 with erroneous length argument.
6133
6134 * ada-lang.c (ada_language_arch_info): Update call to arch_type.
6135 * d-lang.c (build_d_types): Likewise.
6136 * f-lang.c (build_fortran_types): Likewise.
6137 * go-lang.c (build_go_types): Likewise.
6138 * opencl-lang.c (build_opencl_types): Likewise.
6139 * jit.c (finalize_symtab): Likewise.
6140 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
6141 (build_std_type_info_type): Likewise.
6142 * target-descriptions.c (tdesc_gdb_type): Likewise. Also,
6143 update call to arch_flags_type.
6144
6145 * linux-tdep.c (linux_get_siginfo_type_with_fields): Update call to
6146 arch_type.
6147 * fbsd-tdep.c (fbsd_get_siginfo_type): Likewise.
6148 * windows-tdep.c (windows_get_tlb_type): Likewise.
6149
6150 * avr-tdep.c (avr_gdbarch_init): Update call to arch_type.
6151 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
6152 * m32c-tdep.c (make_types): Likewise.
6153 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
6154 (rl78_psw_type): Update call to arch_flags_type.
6155 * m68k-tdep.c (m68k_ps_type): Update call to arch_flags_type.
6156 * rx-tdep.c (rx_psw_type): Likewise.
6157 (rx_fpsw_type): Likewise.
6158 * sparc-tdep.c (sparc_psr_type): Likewise.
6159 (sparc_fsr_type): Likewise.
6160 * sparc64-tdep.c (sparc64_pstate_type): Likewise.
6161 (sparc64_ccr_type): Likewise.
6162 (sparc64_fsr_type): Likewise.
6163 (sparc64_fprs_type): Likewise.
6164
6165 2017-09-27 Tom Tromey <tom@tromey.com>
6166
6167 * findcmd.c (find_command): Constify.
6168
6169 2017-09-27 Tom Tromey <tom@tromey.com>
6170
6171 * ada-tasks.c (task_command_1, task_command): Constify.
6172
6173 2017-09-27 Tom Tromey <tom@tromey.com>
6174
6175 * symtab.c (maintenance_print_symbol_cache)
6176 (maintenance_flush_symbol_cache)
6177 (maintenance_print_symbol_cache_statistics): Constify.
6178
6179 2017-09-27 Tom Tromey <tom@tromey.com>
6180
6181 * inferior.c (detach_inferior_command, kill_inferior_command)
6182 (inferior_command): Constify.
6183
6184 2017-09-27 Tom Tromey <tom@tromey.com>
6185
6186 * regcache.c (regcache_print, maintenance_print_registers)
6187 (maintenance_print_raw_registers)
6188 (maintenance_print_cooked_registers)
6189 (maintenance_print_register_groups)
6190 (maintenance_print_remote_registers): Constify.
6191
6192 2017-09-27 Tom Tromey <tom@tromey.com>
6193
6194 * printcmd.c (map_display_numbers, undisplay_command)
6195 (enable_disable_display_command, enable_display_command)
6196 (disable_display_command): Constify.
6197
6198 2017-09-27 Tom Tromey <tom@tromey.com>
6199
6200 * breakpoint.h (delete_command): Don't declare.
6201 * breakpoint.c (delete_command, enable_once_command)
6202 (enable_count_command, enable_delete_command, breakpoint_1)
6203 (maintenance_info_breakpoints, stopin_command, stopat_command)
6204 (delete_command, delete_trace_command, save_breakpoints)
6205 (save_breakpoints_command, save_tracepoints_command): Constify.
6206
6207 2017-09-27 Tom Tromey <tom@tromey.com>
6208
6209 * macrocmd.c (macro_expand_command, macro_expand_once_command)
6210 (skip_ws, extract_identifier, macro_define_command)
6211 (macro_undef_command, macro_list_command): Constify.
6212
6213 2017-09-27 Tom Tromey <tom@tromey.com>
6214
6215 * infcmd.c (environment_info, set_environment_command)
6216 (unset_environment_command, path_info, info_proc_cmd_1)
6217 (info_proc_cmd_mappings, info_proc_cmd_stat)
6218 (info_proc_cmd_status, info_proc_cmd_cwd, info_proc_cmd_cmdline)
6219 (info_proc_cmd_exe, info_proc_cmd_all): Constify.
6220
6221 2017-09-27 Tom Tromey <tom@tromey.com>
6222
6223 * i386-tdep.c (i386_mpx_info_bounds, i386_mpx_set_bounds):
6224 Constify.
6225
6226 2017-09-27 Tom Tromey <tom@tromey.com>
6227
6228 * symfile-mem.c (add_symbol_file_from_memory_command): Constify.
6229
6230 2017-09-27 Tom Tromey <tom@tromey.com>
6231
6232 * demangle.c (demangle_command): Constify.
6233
6234 2017-09-27 Tom Tromey <tom@tromey.com>
6235
6236 * progspace.c (maintenance_info_program_spaces_command):
6237 Constify.
6238
6239 2017-09-27 Tom Tromey <tom@tromey.com>
6240
6241 * compile/compile.c (check_raw_argument, compile_file_command)
6242 (compile_code_command, compile_print_command): Constify.
6243
6244 2017-09-27 Tom Tromey <tom@tromey.com>
6245
6246 * reggroups.c (maintenance_print_reggroups): Constify.
6247
6248 2017-09-27 Tom Tromey <tom@tromey.com>
6249
6250 * dwarf2read.c (save_gdb_index_command): Constify.
6251
6252 2017-09-27 Tom Tromey <tom@tromey.com>
6253
6254 * stap-probe.c (info_probes_stap_command): Constify.
6255
6256 2017-09-27 Tom Tromey <tom@tromey.com>
6257
6258 * fork-child.c (unset_exec_wrapper_command): Constify.
6259
6260 2017-09-27 Tom Tromey <tom@tromey.com>
6261
6262 * btrace.c (get_uint, get_context_size, no_chunk)
6263 (maint_btrace_packet_history_cmd)
6264 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
6265 (maint_info_btrace_cmd): Constify.
6266
6267 2017-09-27 Tom Tromey <tom@tromey.com>
6268
6269 * reverse.c (delete_bookmark_command): Constify.
6270
6271 2017-09-27 Tom Tromey <tom@tromey.com>
6272
6273 * remote.c (set_memory_packet_size)
6274 (set_memory_write_packet_size, show_memory_write_packet_size)
6275 (set_memory_read_packet_size, show_memory_read_packet_size)
6276 (compare_sections_command, packet_command, remote_put_command)
6277 (remote_get_command, remote_delete_command): Constify.
6278
6279 2017-09-27 Tom Tromey <tom@tromey.com>
6280
6281 * mips-tdep.c (show_mipsfpu_command, set_mipsfpu_single_command)
6282 (set_mipsfpu_double_command, set_mipsfpu_none_command)
6283 (set_mipsfpu_auto_command): Constify.
6284
6285 2017-09-27 Tom Tromey <tom@tromey.com>
6286
6287 * cli/cli-cmds.h (cd_command): Constify.
6288 * cli/cli-cmds.c (cd_command): Constify.
6289
6290 2017-09-27 Tom Tromey <tom@tromey.com>
6291
6292 * thread.c (thread_name_command, thread_find_command): Constify.
6293
6294 2017-09-27 Tom Tromey <tom@tromey.com>
6295
6296 * probe.c (enable_probes_command, disable_probes_command):
6297 Constify.
6298
6299 2017-09-27 Tom Tromey <tom@tromey.com>
6300
6301 * symfile.c (symbol_file_command): Constify.
6302 * gdbcore.h (deprecated_file_changed_hook): Constify.
6303 * exec.c (deprecated_file_changed_hook, exec_file_command)
6304 (file_command): Constify.
6305 * defs.h (symbol_file_command): Constify.
6306
6307 2017-09-27 Tom Tromey <tom@tromey.com>
6308
6309 * remote-fileio.c (set_system_call_allowed)
6310 (show_system_call_allowed): Constify.
6311
6312 2017-09-27 Tom Tromey <tom@tromey.com>
6313
6314 * tracepoint.c (delete_trace_variable_command)
6315 (tfind_end_command, tfind_start_command, tfind_pc_command)
6316 (tfind_tracepoint_command, tfind_line_command)
6317 (tfind_range_command, tfind_outside_command): Constify.
6318
6319 2017-09-27 Tom Tromey <tom@tromey.com>
6320
6321 * ax-gdb.c (maint_agent_printf_command, agent_command)
6322 (agent_eval_command): Constify.
6323
6324 2017-09-27 Tom Tromey <tom@tromey.com>
6325
6326 * tracepoint.c (info_scope_command): Constify.
6327 * python/python.c (gdbpy_decode_line): Constify.
6328 * python/py-breakpoint.c (bppy_init): Constify.
6329 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Constify.
6330 * location.h: (new_linespec_location)
6331 (string_to_event_location_basic, string_to_event_location):
6332 Constify.
6333 * location.c (new_linespec_location)
6334 (string_to_event_location_basic, string_to_event_location):
6335 Constify.
6336 * linespec.h (decode_line_with_current_source)
6337 (decode_line_with_last_displayed, linespec_lex_to_end): Constify.
6338 * linespec.c (linespec_lex_to_end)
6339 (decode_line_with_current_source)
6340 (decode_line_with_last_displayed): Constify.
6341 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x):
6342 Constify.
6343 * cli/cli-cmds.c (edit_command, list_command): Constify.
6344 * breakpoint.h (until_break_command, watch_command_wrapper)
6345 (awatch_command_wrapper, rwatch_command_wrapper)
6346 (init_ada_exception_breakpoint): Constify.
6347 * breakpoint.c (break_command_1, dprintf_command)
6348 (break_range_command, watch_command_wrapper)
6349 (rwatch_command_wrapper, awatch_command_wrapper)
6350 (until_break_command, init_ada_exception_breakpoint)
6351 (strace_marker_create_sals_from_location, trace_command)
6352 (ftrace_command, strace_command, struct tracepoint): Constify.
6353 * ax-gdb.c (agent_command_1): Constify.
6354 * ada-lang.c (ada_exception_sal): Constify.
6355
6356 2017-09-27 Tom Tromey <tom@tromey.com>
6357
6358 * record.c (cmd_record_delete, cmd_record_stop, cmd_record_save)
6359 (cmd_record_goto_begin, cmd_record_goto_end, get_insn_number)
6360 (get_context_size, no_chunk, get_insn_history_modifiers)
6361 (cmd_record_insn_history, get_call_history_modifiers)
6362 (cmd_record_call_history): Constify.
6363
6364 2017-09-27 Tom Tromey <tom@tromey.com>
6365
6366 * source.c (show_substitute_path_command)
6367 (unset_substitute_path_command, set_substitute_path_command):
6368 Constify.
6369
6370 2017-09-27 Tom Tromey <tom@tromey.com>
6371
6372 * typeprint.c (maintenance_print_type): Constify.
6373 * maint.c (maintenance_dump_me, maintenance_demangle)
6374 (maintenance_time_display, maintenance_info_sections)
6375 (maintenance_print_statistics, maintenance_deprecate)
6376 (maintenance_undeprecate): Constify.
6377 (maintenance_do_deprecate): Constify. Use std::string.
6378 (maintenance_selftest): Constify.
6379 * gdbtypes.h (maintenance_print_type): Constify.
6380
6381 2017-09-27 Tom Tromey <tom@tromey.com>
6382
6383 * hppa-tdep.c (unwind_command): Constify.
6384
6385 2017-09-27 Tom Tromey <tom@tromey.com>
6386
6387 * target-descriptions.c (unset_tdesc_filename_cmd)
6388 (maint_print_c_tdesc_cmd, maintenance_check_xml_descriptions):
6389 Constify.
6390
6391 2017-09-27 Tom Tromey <tom@tromey.com>
6392
6393 * dummy-frame.c (maintenance_print_dummy_frames): Constify.
6394
6395 2017-09-27 Tom Tromey <tom@tromey.com>
6396
6397 * tui/tui.c (tui_enable_command, tui_disable_command): Constify.
6398
6399 2017-09-27 Tom Tromey <tom@tromey.com>
6400
6401 * tui/tui-regs.c (tui_reg_command): Constify.
6402
6403 2017-09-27 Tom Tromey <tom@tromey.com>
6404
6405 * skip.c (skip_file_command, skip_function_command)
6406 (skip_enable_command, skip_disable_command, skip_delete_command):
6407 Constify.
6408
6409 2017-09-27 Tom Tromey <tom@tromey.com>
6410
6411 * record-btrace.c (cmd_record_btrace_bts_start)
6412 (cmd_record_btrace_pt_start): Constify.
6413
6414 2017-09-27 Tom Tromey <tom@tromey.com>
6415
6416 * symmisc.c (maintenance_print_symbols)
6417 (maintenance_print_msymbols, maintenance_print_objfiles)
6418 (maintenance_info_symtabs, maintenance_check_symtabs)
6419 (maintenance_expand_symtabs, maintenance_info_line_tables):
6420 Constify.
6421
6422 2017-09-27 Tom Tromey <tom@tromey.com>
6423
6424 * top.c (new_ui_command): Constify.
6425
6426 2017-09-27 Tom Tromey <tom@tromey.com>
6427
6428 * symfile.c (add_symbol_file_command)
6429 (remove_symbol_file_command, list_overlays_command)
6430 (map_overlay_command, unmap_overlay_command)
6431 (overlay_auto_command, overlay_manual_command)
6432 (overlay_off_command, overlay_load_command): Constify.
6433
6434 2017-09-27 Tom Tromey <tom@tromey.com>
6435
6436 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
6437 (info_spu_mailbox_command, info_spu_dma_command)
6438 (info_spu_proxydma_command): Constify.
6439
6440 2017-09-27 Tom Tromey <tom@tromey.com>
6441
6442 * cli/cli-logging.c (set_logging_on, set_logging_off): Constify.
6443
6444 2017-09-27 Tom Tromey <tom@tromey.com>
6445
6446 * cli/cli-script.c (user_defined_command): Constify.
6447
6448 2017-09-27 Tom Tromey <tom@tromey.com>
6449
6450 * cli/cli-dump.c (dump_memory_command, dump_value_command)
6451 (dump_srec_memory, dump_srec_value, dump_ihex_memory)
6452 (dump_ihex_value, dump_verilog_memory, dump_verilog_value)
6453 (dump_tekhex_memory, dump_tekhex_value, dump_binary_memory)
6454 (dump_binary_value, append_binary_memory, append_binary_value):
6455 Constify.
6456 (struct dump_context) <func>: Constify.
6457 (add_dump_command): Update.
6458
6459 2017-09-27 Tom Tromey <tom@tromey.com>
6460
6461 * cli/cli-cmds.c (show_version, show_configuration)
6462 (source_command, show_user): Constify.
6463
6464 2017-09-27 Tom Tromey <tom@tromey.com>
6465
6466 * target.c (maintenance_print_target_stack): Constify.
6467
6468 2017-09-27 Tom Tromey <tom@tromey.com>
6469
6470 * interps.c (interpreter_exec_cmd): Constify.
6471
6472 2017-09-27 Tom Tromey <tom@tromey.com>
6473
6474 * record-full.c (cmd_record_full_restore): Constify.
6475
6476 2017-09-27 Tom Tromey <tom@tromey.com>
6477
6478 * memattr.c (enable_mem_command, disable_mem_command)
6479 (delete_mem_command): Constify.
6480
6481 2017-09-27 Tom Tromey <tom@tromey.com>
6482
6483 * value.c (show_convenience): Constify.
6484
6485 2017-09-27 Tom Tromey <tom@tromey.com>
6486
6487 * gdbcore.h (core_file_command): Update.
6488 * corefile.c (core_file_command): Constify.
6489
6490 2017-09-27 Tom Tromey <tom@tromey.com>
6491
6492 * user-regs.c (maintenance_print_user_registers): Constify.
6493
6494 2017-09-27 Tom Tromey <tom@tromey.com>
6495
6496 * cp-namespace.c (maintenance_cplus_namespace): Constify.
6497
6498 2017-09-27 Tom Tromey <tom@tromey.com>
6499
6500 * cp-support.c (first_component_command): Constify.
6501
6502 2017-09-27 Tom Tromey <tom@tromey.com>
6503
6504 * psymtab.c (maintenance_print_psymbols)
6505 (maintenance_info_psymtabs, maintenance_check_psymtabs):
6506 Constify.
6507
6508 2017-09-27 Tom Tromey <tom@tromey.com>
6509
6510 * windows-tdep.c (display_tib): Constify.
6511
6512 2017-09-27 Tom Tromey <tom@tromey.com>
6513
6514 * linux-fork.c (delete_checkpoint_command)
6515 (detach_checkpoint_command): Constify.
6516
6517 2017-09-27 Tom Tromey <tom@tromey.com>
6518
6519 * cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify.
6520
6521 2017-09-27 Tom Tromey <tom@tromey.com>
6522
6523 * arc-tdep.c (dump_arc_instruction_command): Constify.
6524
6525 2017-09-27 Tom Tromey <tom@tromey.com>
6526
6527 * valprint.c (set_radix, show_radix): Constify.
6528
6529 2017-09-27 Tom Tromey <tom@tromey.com>
6530
6531 * dtrace-probe.c (info_probes_dtrace_command): Constify.
6532
6533 2017-09-27 Tom Tromey <tom@tromey.com>
6534
6535 * command.h (not_just_help_class_command): Update.
6536 * cli/cli-decode.h (not_just_help_class_command): Update.
6537 * cli/cli-decode.c (not_just_help_class_command): Constify.
6538
6539 2017-09-27 Tom Tromey <tom@tromey.com>
6540
6541 * gdb_bfd.c (maintenance_info_bfds): Constify.
6542
6543 2017-09-27 Tom Tromey <tom@tromey.com>
6544
6545 * cli/cli-decode.c (add_cmd, set_cmd_cfunc): New function
6546 overloads.
6547 (do_add_cmd): Rename from add_cmd. Don't call set_cmd_cfunc.
6548 (do_const_cfunc): New function.
6549 (cmd_cfunc_eq): New overload.
6550 (cli_user_command_p): Check do_const_cfunc.
6551 * cli/cli-decode.h (struct cmd_list_element) <function>: New field
6552 const_cfunc.
6553 * command.h (add_cmd): Add const overload and no-function
6554 overload.
6555 (set_cmd_cfunc): Add const overload.
6556 (cmd_const_cfunc_ftype): Declare.
6557 (cmd_cfunc_eq): Add const overload.
6558 * breakpoint.c, cli-cmds.c, cli-dump.c, guile/scm-cmd.c,
6559 python/py-cmd.c, target.c, tracepoint.c: Use no-function add_cmd
6560 overload.
6561
6562 2017-09-27 Tom Tromey <tom@tromey.com>
6563
6564 * macroexp.c (get_next_token_for_substitution): New function.
6565 (substitute_args): Call it. Check for __VA_OPT__.
6566
6567 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
6568 Pedro Alves <palves@redhat.com>
6569
6570 * dwarf2read.c (dwarf2_cu): Remove field producer_is_icc and add
6571 producer_is_icc_lt_14.
6572 (producer_is_icc_lt_14): New function.
6573 (check_producer): Add code for checking version of ICC.
6574 (producer_is_icc): Move to producer.c.
6575 (read_structure_type): Restrict ICC workaround to ICC<14.
6576 * producer.c: Include selftest.h.
6577 (producer_is_icc, producer_parsing_tests, _initialize_producer):
6578 New functions.
6579 * producer.h (producer_is_icc): New declaration.
6580
6581 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
6582
6583 * Makefile.in (SFILES): Add producer.c.
6584 (COMMON_OBS): Add producer.o
6585 * amd64-tdep.c (producer.h): Add new include.
6586 * dwarf2read.c (producer.h): Add new include.
6587 * producer.c: New file.
6588 * producer.h: New file.
6589 * utils.c (producer_is_gcc, producer_is_gcc_ge_4): Move to
6590 producer.c.
6591 * utils.h (producer_is_gcc, producer_is_gcc_ge_4): Move to
6592 producer.h.
6593
6594 2017-09-26 Matthias Klose <doko@ubuntu.com>
6595
6596 * configure.ac: Search ncursesw before ncurses.
6597 Check ncursesw/ncurses.h before ncurses/ncurses.h.
6598 * gdb_curses.h: Include <ncursesw/ncurses.h>
6599 * config.in, configure: Regenerate.
6600
6601 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6602
6603 PR gdb/22185
6604 * configure.host <*-*-solaris2.[01], *-*-solaris2.[2-9]*>: Mark as
6605 obsolete.
6606 Use gdb_host sol2 for i[34567]86-*-solaris2*, x86_64-*-solaris2*.
6607 Remove i386sol2 support.
6608 * configure.nat <i386sol2>: Remove.
6609 <sol2-64>: Fold into ...
6610 <sol2>: ... this.
6611 Move common settings to default section.
6612 Add sol-thread.o.
6613 * configure.tgt <i[34567]86-*-solaris2.1[0-9]*,
6614 x86_64-*-solaris2.1[0-9]*>: Rename to ...
6615 <i[34567]86-*-solaris2*, x86_64-*-solaris2*>: ... this.
6616 <i[34567]86-*-solaris*>: Remove.
6617 <sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*>: Remove.
6618
6619 * configure.ac: Remove wctype in libw check.
6620 (_MSE_INT_H): Don't define on Solaris 7-9.
6621 <solaris*>: Remove libthread_db.so.1 check.
6622 * configure: Regenerate.
6623 * config.in: Regenerate.
6624
6625 * proc-service.c: Remove PROC_SERVICE_IS_OLD handling.
6626 (gdb_ps_prochandle_t, gdb_ps_read_buf_t, gdb_ps_write_buf_t)
6627 (gdb_ps_size_t): Remove.
6628 Use base types in users.
6629 * sol-thread.c: Likewise, also for gdb_ps_addr_t.
6630
6631 * NEWS (Changes since GDB 8.0): Document Solaris 2.0-9 removal.
6632
6633 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6634
6635 PR build/22206
6636 * sparc64-tdep.c (adi_tag_fd): Print pid as long.
6637 (adi_is_addr_mapped): Likewise.
6638 (PSR_ICC): Don't redefine.
6639 (PSR_IMPL): Likewise.
6640
6641 2017-09-25 Tom Tromey <tom@tromey.com>
6642
6643 * regcache.c (regcache::dump): Use string_printf.
6644
6645 2017-09-25 Tom Tromey <tom@tromey.com>
6646
6647 * regcache.c (class regcache_invalidator): New.
6648 (struct register_to_invalidate): Remove.
6649 (make_cleanup_regcache_invalidate): Remove.
6650 (regcache::raw_write): Use regcache_invalidator.
6651
6652 2017-09-25 Tom Tromey <tom@tromey.com>
6653
6654 * spu-tdep.c (spu2ppu_sniffer): Update.
6655 * regcache.h (make_cleanup_regcache_xfree): Don't declare.
6656 * regcache.c (do_regcache_xfree, make_cleanup_regcache_xfree):
6657 Remove.
6658 * ppc-linux-tdep.c (ppu2spu_sniffer): Update.
6659 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Update.
6660 * frame.h (frame_save_as_regcache): Return std::unique_ptr.
6661 * frame.c (frame_save_as_regcache): Return std::unique_ptr.
6662 (frame_pop): Update.
6663
6664 2017-09-25 Tom Tromey <tom@tromey.com>
6665
6666 * spu-tdep.c (spu2ppu_dealloc_cache): Use delete.
6667 * regcache.h (regcache_xfree): Don't declare.
6668 * regcache.c (regcache_xfree): Remove.
6669 (do_regcache_xfree): Use delete.
6670 * ppc-linux-tdep.c (ppu2spu_dealloc_cache): Use delete.
6671 * linux-fork.c (free_fork): Use delete.
6672 (fork_save_infrun_state): Likewise.
6673 * jit.c (jit_dealloc_cache): Use delete.
6674 * infrun.c (discard_infcall_suspend_state): Use delete.
6675
6676 2017-09-25 Tom Tromey <tom@tromey.com>
6677
6678 * regcache.h (regcache_xmalloc): Don't declare.
6679 (regcache_raw_set_cached_value): Update comment.
6680 * regcache.c (regcache_xmalloc): Remove.
6681 * ppc-linux-tdep.c (ppu2spu_sniffer): Use new.
6682 * jit.c (jit_frame_sniffer): Use new.
6683 * frame.c (frame_save_as_regcache): Use new.
6684
6685 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6686
6687 * NEWS: Advertise support for guarded-storage registers on IBM z.
6688
6689 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6690
6691 * s390-linux-nat.c (have_regset_gs): New static variable.
6692 (s390_linux_fetch_inferior_registers): Handle guarded-storage
6693 control block and guarded-storage broadcast control regsets.
6694 (s390_read_description): Detect whether the target has
6695 guarded-storage support, return appropriate tdesc.
6696 * s390-linux-tdep.c (features/s390-gs-linux64.c): New include.
6697 (features/s390x-gs-linux64.c): Likewise.
6698 (struct gdbarch_tdep) <have_gs>: New field.
6699 (s390_regmap_gs, s390_regmap_gsbc, s390_gs_regset)
6700 (s390_gsbc_regset): New variables.
6701 (s390_iterate_over_regset_sections): Iterate over s390_gs_regset
6702 and s390_gsbc_regset, if applicable.
6703 (s390_core_read_description): Check whether core file was from a
6704 target with guarded-storage support; include appropriate regsets.
6705 (s390_gdbarch_init): Add registers for guarded-storage support.
6706 (_initialize_s390_tdep): Initialize new target descriptions that
6707 include registers for guarded-storage support.
6708 * s390-linux-tdep.h (HWCAP_S390_GS, S390_GSD_REGNUM)
6709 (S390_GSSM_REGNUM, S390_GSEPLA_REGNUM)
6710 (S390_BC_GSD_REGNUM, S390_BC_GSSM_REGNUM): New defines.
6711 (S390_NUM_REGS): Adjust macro definition.
6712 (s390_gs_regset, s390_gsbc_regset, tdesc_s390_gs_linux64)
6713 (tdesc_s390x_gs_linux64): New declarations.
6714
6715 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6716
6717 * features/s390-gs-linux64.xml: New file.
6718 * features/s390-gs.xml: New file.
6719 * features/s390-gsbc.xml: New file.
6720 * features/s390x-gs-linux64.xml: New file.
6721 * features/Makefile (WHICH): Add s390-gs-linux64 and
6722 s390x-gs-linux64.
6723 (s390-gs-linux64-expedite, s390x-gs-linux64-expedite): New macros.
6724 (XMLTOC): Add s390-gs-linux64.xml and s390x-linux64.xml.
6725 * features/s390-gs-linux64.c: New generated file.
6726 * features/s390x-gs-linux64.c: New file.
6727 * regformats/s390-gs-linux64.dat: New file.
6728 * regformats/s390x-gs-linux64.dat: New file.
6729
6730 2017-09-23 Tom Tromey <tom@tromey.com>
6731
6732 * defs.h (make_cleanup_override_quit_handler): Don't declare.
6733
6734 2017-09-22 Tom Tromey <tom@tromey.com>
6735
6736 * utils.c (class scoped_input_handler) <m_quit_handler>: Change
6737 type to scoped_restore_tmpl.
6738 <scoped_input_handler>: Initialize m_quit_handler directly.
6739
6740 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
6741
6742 * cli/cli-cmds.c (pwd_command): Use "getcwd (NULL, 0)".
6743 (cd_command): Likewise. Free "current_directory" before
6744 assigning to it.
6745 * main.c (captured_main_1): Use "getcwd (NULL, 0)".
6746 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Likewise.
6747 * top.c (gdb_dirbuf): Remove global declaration.
6748 * top.h (gdb_dirbuf): Likewise.
6749
6750 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
6751
6752 * gnulib/aclocal.m4: Regenerate.
6753 * gnulib/config.in: Regenerate.
6754 * gnulib/configure: Regenerate.
6755 * gnulib/import/Makefile.am: Regenerate.
6756 * gnulib/import/Makefile.in: Regenerate.
6757 * gnulib/import/assure.h: New file.
6758 * gnulib/import/at-func.c: Likewise
6759 * gnulib/import/chdir-long.c: New file.
6760 * gnulib/import/chdir-long.h: New file.
6761 * gnulib/import/cloexec.c: New file.
6762 * gnulib/import/cloexec.h: New file.
6763 * gnulib/import/close.c: New file.
6764 * gnulib/import/closedir.c: New file.
6765 * gnulib/import/dirent-private.h: New file.
6766 * gnulib/import/dup-safer.c: New file.
6767 * gnulib/import/dup.c: New file.
6768 * gnulib/import/dup2.c: New file.
6769 * gnulib/import/error.c: New file.
6770 * gnulib/import/error.h: New file.
6771 * gnulib/import/exitfail.c: New file.
6772 * gnulib/import/exitfail.h: New file.
6773 * gnulib/import/fchdir.c: New file.
6774 * gnulib/import/fcntl.c: New file.
6775 * gnulib/import/fcntl.in.h: New file.
6776 * gnulib/import/fd-hook.c: New file.
6777 * gnulib/import/fd-hook.h: New file.
6778 * gnulib/import/fd-safer.c: New file.
6779 * gnulib/import/fdopendir.c: New file.
6780 * gnulib/import/filename.h: New file.
6781 * gnulib/import/filenamecat-lgpl.c: New file.
6782 * gnulib/import/filenamecat.h: New file.
6783 * gnulib/import/fstat.c: New file.
6784 * gnulib/import/fstatat.c: New file.
6785 * gnulib/import/getcwd-lgpl.c: New file.
6786 * gnulib/import/getcwd.c: New file.
6787 * gnulib/import/getdtablesize.c: New file.
6788 * gnulib/import/getlogin_r.c: New file.
6789 * gnulib/import/getprogname.c: New file.
6790 * gnulib/import/getprogname.h: New file.
6791 * gnulib/import/gettext.h: New file.
6792 * gnulib/import/glob-libc.h: New file.
6793 * gnulib/import/glob.c: New file.
6794 * gnulib/import/glob.in.h: New file.
6795 * gnulib/import/intprops.h: New file.
6796 * gnulib/import/m4/chdir-long.m4: New file.
6797 * gnulib/import/m4/close.m4: New file.
6798 * gnulib/import/m4/closedir.m4: New file.
6799 * gnulib/import/m4/d-ino.m4: New file.
6800 * gnulib/import/m4/d-type.m4: New file.
6801 * gnulib/import/m4/dup.m4: New file.
6802 * gnulib/import/m4/dup2.m4: New file.
6803 * gnulib/import/m4/error.m4: New file.
6804 * gnulib/import/m4/fchdir.m4: New file.
6805 * gnulib/import/m4/fcntl.m4: New file.
6806 * gnulib/import/m4/fcntl_h.m4: New file.
6807 * gnulib/import/m4/fdopendir.m4: New file.
6808 * gnulib/import/m4/filenamecat.m4: New file.
6809 * gnulib/import/m4/fstat.m4: New file.
6810 * gnulib/import/m4/fstatat.m4: New file.
6811 * gnulib/import/m4/getcwd-abort-bug.m4: New file.
6812 * gnulib/import/m4/getcwd-path-max.m4: New file.
6813 * gnulib/import/m4/getcwd.m4: New file.
6814 * gnulib/import/m4/getdtablesize.m4: New file.
6815 * gnulib/import/m4/getlogin_r.m4: New file.
6816 * gnulib/import/m4/getprogname.m4: New file.
6817 * gnulib/import/m4/glob.m4: New file.
6818 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
6819 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
6820 * gnulib/import/m4/mempcpy.m4: New file.
6821 * gnulib/import/m4/memrchr.m4: New file.
6822 * gnulib/import/m4/mode_t.m4: New file.
6823 * gnulib/import/m4/msvc-inval.m4: New file.
6824 * gnulib/import/m4/msvc-nothrow.m4: New file.
6825 * gnulib/import/m4/open.m4: New file.
6826 * gnulib/import/m4/openat.m4: New file.
6827 * gnulib/import/m4/opendir.m4: New file.
6828 * gnulib/import/m4/readdir.m4: New file.
6829 * gnulib/import/m4/realloc.m4: New file.
6830 * gnulib/import/m4/rewinddir.m4: New file.
6831 * gnulib/import/m4/save-cwd.m4: New file.
6832 * gnulib/import/m4/strdup.m4: New file.
6833 * gnulib/import/m4/strerror.m4: New file.
6834 * gnulib/import/m4/unistd-safer.m4: New file.
6835 * gnulib/import/mempcpy.c: New file.
6836 * gnulib/import/memrchr.c: New file.
6837 * gnulib/import/msvc-inval.c: New file.
6838 * gnulib/import/msvc-inval.h: New file.
6839 * gnulib/import/msvc-nothrow.c: New file.
6840 * gnulib/import/msvc-nothrow.h: New file.
6841 * gnulib/import/open.c: New file.
6842 * gnulib/import/openat-die.c: New file.
6843 * gnulib/import/openat-priv.h: New file.
6844 * gnulib/import/openat-proc.c: New file.
6845 * gnulib/import/openat.c: New file.
6846 * gnulib/import/openat.h: New file.
6847 * gnulib/import/opendir.c: New file.
6848 * gnulib/import/pipe-safer.c: New file.
6849 * gnulib/import/readdir.c: New file.
6850 * gnulib/import/realloc.c: New file.
6851 * gnulib/import/rewinddir.c: New file.
6852 * gnulib/import/save-cwd.c: New file.
6853 * gnulib/import/save-cwd.h: New file.
6854 * gnulib/import/strdup.c: New file.
6855 * gnulib/import/strerror-override.c: New file.
6856 * gnulib/import/strerror-override.h: New file.
6857 * gnulib/import/strerror.c: New file.
6858 * gnulib/import/unistd--.h: New file.
6859 * gnulib/import/unistd-safer.h: New file.
6860 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
6861 "getcwd" and "glob".
6862 * ser-tcp.c: Undefine "close" before redefining it.
6863
6864 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
6865
6866 * guile/scm-value.c (gdbscm_value_address): Initialize address,
6867 get rid of res_val.
6868
6869 2017-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6870
6871 * configure.nat <i386sol2,i386>: Add fork-inferior.o to NATDEPFILES.
6872 <sol2,sparc>: Likewise.
6873 <sol2-64,i386>: Likewise.
6874
6875 * warning.m4 (AM_GDB_WARNINGS): Disable -Wunknown-pragmas,
6876 -Wdeprecated-declarations on *-*-solaris*.
6877 * configure: Regenerate.
6878
6879 * procfs.c: Include "nat/inferior.h".
6880 (procfs_info_proc): Fix typo.
6881
6882 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6883
6884 * remote.c (vector): Include.
6885 (struct private_thread_info): Add field, thread_handle.
6886 (free_private_thread_info): Deallocate storage associated with
6887 thread handle.
6888 (get_private_info_thread): Initialize `thread_handle' field.
6889 (struct thread_item): Add field, thread_handle.
6890 (clear_threads_listing_context): Deallocate storage associated
6891 with thread handle.
6892 (start_thread): Add support for "handle" attribute.
6893 (thread_attributes): Add "handle".
6894 (remote_get_threads_with_qthreadinfo): Initialize thread_handle
6895 field.
6896 (remote_update_thread_list): Update thread_handle.
6897 (remote_thread_handle_to_thread_info): New function.
6898 (init_remote_ops): Initialize to_thread_handle_to_thread_info.
6899
6900 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6901
6902 * python/py-inferior.c (gdbpy_thread_from_thread_handle): New
6903 function.
6904 (inferior_object_methods): Add gdbpy_thread_from_thread_handle.
6905 * python/python-internal.h (thread_object_type): Declare.
6906
6907 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6908
6909 * target.h (struct target_ops): Add to_thread_handle_to_thread_info.
6910 (target_thread_handle_to_thread_info): Declare.
6911 * target.c (target_thread_handle_to_thread_info): New function.
6912 * target-delegates.c: Regenerate.
6913 * gdbthread.h (find_thread_by_handle): Declare.
6914 * thread.c (find_thread_by_handle): New function.
6915 * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New
6916 function.
6917 (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info.
6918
6919 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
6920
6921 * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF.
6922
6923 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
6924
6925 * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF.
6926
6927 2017-09-21 Yao Qi <yao.qi@linaro.org>
6928
6929 * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o
6930 to gdb_target_obs.
6931
6932 2017-09-20 Tom Tromey <tom@tromey.com>
6933
6934 * breakpoint.c (struct counted_command_line): Remove.
6935 (breakpoint_commands): Update.
6936 (alloc_counted_command_line, incref_counted_command_line)
6937 (decref_counted_command_line, do_cleanup_counted_command_line)
6938 (make_cleanup_decref_counted_command_line): Remove.
6939 (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats)
6940 (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check)
6941 (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint)
6942 (save_breakpoints): Update.
6943 * breakpoint.h (counted_command_line): Now a typedef to
6944 shared_ptr.
6945 (struct breakpoint) <commands>: Now a counted_command_line.
6946 (struct bpstats) <command>: Likewise.
6947
6948 2017-09-20 Tom Tromey <tom@tromey.com>
6949
6950 * breakpoint.c (struct commands_info, do_map_commands_command):
6951 Remove.
6952 (commands_command_1): Update.
6953 (iterate_over_related_breakpoints): Take a function_view.
6954 (do_delete_breakpoint, do_map_delete_breakpoint): Remove.
6955 (delete_command): Update.
6956 (map_breakpoint_numbers): Take a function_view.
6957 (do_disable_breakpoint, do_map_delete_breakpoint): Remove.
6958 (disable_command): Update.
6959 (do_enable_breakpoint, do_map_enable_breakpoint): Remove.
6960 (enable_command): Update.
6961 (struct disp_data, do_enable_breakpoint_disp)
6962 (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint)
6963 (do_map_enable_delete_breakpoint): Remove.
6964 (enable_once_command, enable_count_command, enable_delete_command)
6965 (delete_trace_variable_command): Update.
6966
6967 2017-09-20 Tom Tromey <tom@tromey.com>
6968
6969 * breakpoint.c (~bpstats): Rename from bpstat_free. Update.
6970 (bpstat_clear): Use delete.
6971 (bpstats): New constructors.
6972 (bpstat_copy, bpstat_stop_status): Use new.
6973 (dprintf_after_condition_true): Update.
6974 * breakpoint.h (bpstats::bpstats): Add constructors.
6975 (bpstats::~bpstats): Add destructor.
6976
6977 2017-09-20 Pedro Alves <palves@redhat.com>
6978
6979 * eval.c (make_params): Delete, refactored as ...
6980 (class fake_method): ... this new type's ctor.
6981 (fake_method::~fake_method): New.
6982 (evaluate_subexp_standard): Use 'fake_method'.
6983
6984 2017-09-20 Tom Tromey <tom@tromey.com>
6985
6986 * windows-nat.c (get_windows_debug_event, windows_wait)
6987 (do_initial_windows_stuff, windows_attach): Update.
6988 * utils.c (vwarning, internal_vproblem): Update.
6989 (ui_unregister_input_event_handler_cleanup)
6990 (prepare_to_handle_input): Remove.
6991 (class scoped_input_handler): New.
6992 (defaulted_query, prompt_for_continue): Update.
6993 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
6994 Update.
6995 * top.c (undo_terminal_modifications_before_exit): Update.
6996 * target/target.h (target_terminal_init, target_terminal_inferior)
6997 (target_terminal_ours): Don't declare.
6998 (class target_terminal): New.
6999 * target.h (target_terminal_is_inferior, target_terminal_is_ours)
7000 (target_terminal_ours_for_output)
7001 (make_cleanup_restore_target_terminal): Don't declare.
7002 (target_terminal_info): Remove.
7003 * target.c (enum terminal_state, terminal_state): Remove.
7004 (target_terminal::terminal_state): Define.
7005 (target_terminal::init): Rename from target_terminal_init.
7006 (target_terminal::inferior): Rename from
7007 target_terminal_inferior.
7008 (target_terminal::ours): Rename from target_terminal_ours.
7009 (target_terminal::ours_for_output): Rename from
7010 target_terminal_ours_for_output.
7011 (target_terminal::info): New method.
7012 (cleanup_restore_target_terminal)
7013 (make_cleanup_restore_target_terminal): Remove.
7014 * solib.c (handle_solib_event): Update.
7015 * remote.c (remote_serial_quit_handler): Update.
7016 (remote_terminal_inferior, remote_wait_as): Update.
7017 * record-full.c (record_full_wait_1): Update.
7018 * nto-procfs.c (procfs_create_inferior): Update.
7019 * nat/fork-inferior.c (startup_inferior): Update.
7020 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
7021 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
7022 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
7023 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
7024 (mi_breakpoint_created, mi_breakpoint_deleted)
7025 (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded)
7026 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
7027 (mi_user_selected_context_changed, report_initial_inferior):
7028 Update.
7029 * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours)
7030 (linux_nat_terminal_inferior): Update.
7031 * infrun.c (follow_fork_inferior)
7032 (handle_vfork_child_exec_or_exit, do_target_resume)
7033 (check_curr_ui_sync_execution_done, handle_inferior_event_1)
7034 (handle_signal_stop, maybe_remove_breakpoints, normal_stop):
7035 Update.
7036 * inflow.c (child_terminal_init, info_terminal_command): Update.
7037 * infcmd.c (post_create_inferior, continue_1, prepare_one_step)
7038 (attach_command): Update.
7039 * infcall.c (call_thread_fsm_should_stop): Update.
7040 * gnu-nat.c (gnu_attach): Update.
7041 * extension.c (struct active_ext_lang_state)
7042 (restore_active_ext_lang): Update.
7043 * exceptions.c (print_flush): Update.
7044 * event-top.c (async_enable_stdin, default_quit_handler): Update.
7045 (struct quit_handler_cleanup_data, restore_quit_handler)
7046 (restore_quit_handler_dtor, make_cleanup_override_quit_handler):
7047 Remove.
7048 * cp-support.c (gdb_demangle): Update.
7049 * breakpoint.c (update_inserted_breakpoint_locations)
7050 (insert_breakpoint_locations, handle_jit_event)
7051 (disable_breakpoints_in_unloaded_shlib): Update.
7052 * annotate.c (annotate_breakpoints_invalid)
7053 (annotate_frames_invalid): Update.
7054
7055 2017-09-20 Tom Tromey <tom@tromey.com>
7056
7057 * main.c (catch_command_errors): Rename from
7058 catch_command_errors_const.
7059 (captured_main_1): Update.
7060
7061 2017-09-20 Pedro Alves <palves@redhat.com>
7062
7063 * cli/cli-cmds.c (list_command): Use print_sal_location.
7064 (print_sal_location): New function.
7065 (ambiguous_line_spec): Use print_sal_location.
7066 * linespec.c (symbol_to_sal): Record the symbol in the sal.
7067 * symtab.c (find_function_start_sal): Likewise.
7068 * symtab.h (symtab_and_line::symbol): New field.
7069
7070 2017-09-20 Pedro Alves <palves@redhat.com>
7071
7072 * linespec.c (minsym_found): Handle non-text minsyms.
7073 (symbol_to_sal): Record a sal.pc for non-block, non-label symbols.
7074
7075 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
7076
7077 * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing
7078 backslash.
7079
7080 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
7081
7082 * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use
7083 vmovups instead vmovaps.
7084 (move_zmm_data_to_memory): Use vmovups instead vmovaps.
7085
7086 2017-09-19 John Baldwin <jhb@FreeBSD.org>
7087
7088 * NEWS (Changes since GDB 8.0): Add starti.
7089 * infcmd.c (enum run_break): New.
7090 (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN
7091 case.
7092 (run_command): Use enum run_how.
7093 (start_command): Likewise.
7094 (starti_command): New function.
7095 (RUN_ARGS_HELP): New macro.
7096 (_initialize_infcmd): Use RUN_ARGS_HELP for run and start
7097 commands. Add starti command.
7098
7099 2017-09-19 Yao Qi <yao.qi@linaro.org>
7100
7101 * Makefile.in (monitor.o): Remove the rule.
7102
7103 2017-09-19 Yao Qi <yao.qi@linaro.org>
7104
7105 * annotate.h (struct annotate_arg_emitter): Use
7106 DISABLE_COPY_AND_ASSIGN.
7107 * common/refcounted-object.h (refcounted_object): Likewise.
7108 * completer.h (struct completion_result): Likewise.
7109 * dwarf2read.c (struct dwarf2_per_objfile): Likewise.
7110 * filename-seen-cache.h (filename_seen_cache): Likewise.
7111 * gdbcore.h (thread_section_name): Likewise.
7112 * gdb_regex.h (compiled_regex): Likewise.
7113 * gdbthread.h (scoped_restore_current_thread): Likewise.
7114 * inferior.h (scoped_restore_current_inferior): Likewise.
7115 * jit.c (jit_reader): Likewise.
7116 * linespec.h (struct linespec_result): Likewise.
7117 * mi/mi-parse.h (struct mi_parse): Likewise.
7118 * nat/fork-inferior.c (execv_argv): Likewise.
7119 * progspace.h (scoped_restore_current_program_space): Likewise.
7120 * python/python-internal.h (class gdbpy_enter): Likewise.
7121 * regcache.h (regcache): Likewise.
7122 * target-descriptions.c (struct tdesc_reg): Likewise.
7123 (struct tdesc_type): Likewise.
7124 (struct tdesc_feature): Likewise.
7125 * ui-out.h (ui_out_emit_type): Likewise.
7126
7127 2017-09-18 Simon Marchi <simon.marchi@ericsson.com>
7128
7129 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove
7130 label abort_expression.
7131
7132 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7133
7134 * common/buffer.c (buffer_xml_printf): Adjust.
7135 * common/xml-utils.c (xml_escape_text): Change return type to
7136 std::string, update code accordingly.
7137 * common/xml-utils.h (xml_escape_text): Change return type to
7138 std::string.
7139 * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust.
7140 * windows-tdep.c (windows_xfer_shared_library): Adjust.
7141 * unittests/xml-utils-selftests.c (test_xml_escape_text):
7142 Adjust.
7143
7144 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7145
7146 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file.
7147 (SUBDIR_UNITTESTS_OBS): Add new object file.
7148 * unittests/xml-utils-selftests.c: New file.
7149
7150 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7151
7152 * common/selftest.h (selftest): New struct/interface.
7153 (register_test): Add name parameter, add new overload.
7154 (run_tests): Add filter parameter.
7155 (for_each_selftest_ftype): New typedef.
7156 (for_each_selftest): New declaration.
7157 * common/selftest.c (tests): Change type to
7158 map<string, unique_ptr<selftest>>.
7159 (simple_selftest): New struct.
7160 (register_test): New function.
7161 (register_test): Add name parameter and use it.
7162 (run_tests): Add filter parameter and use it. Add prints.
7163 Adjust to vector -> map change.
7164 * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when
7165 registering selftests.
7166 * arm-tdep.c (_initialize_arm_tdep): Likewise.
7167 * disasm-selftests.c (_initialize_disasm_selftests): Likewise.
7168 * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise.
7169 * dwarf2loc.c (_initialize_dwarf2loc): Likewise.
7170 * findvar.c (_initialize_findvar): Likewise.
7171 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise.
7172 * maint.c (maintenance_selftest): Update call to run_tests.
7173 (maintenance_info_selftests): New function.
7174 (_initialize_maint_cmds): Register "maintenance info selftests"
7175 command. Update "maintenance selftest" doc.
7176 * regcache.c (_initialize_regcache): Add names when registering
7177 selftests.
7178 * rust-exp.y (_initialize_rust_exp): Likewise.
7179 * selftest-arch.c (gdbarch_selftest): New struct.
7180 (gdbarch_tests): Remove.
7181 (register_test_foreach_arch): Add name parameter. Call
7182 register_test.
7183 (tests_with_arch): Remove, move most content to
7184 gdbarch_selftest::operator().
7185 (_initialize_selftests_foreach_arch): Remove.
7186 * selftest-arch.h (register_test_foreach_arch): Add name
7187 parameter.
7188 (run_tests_with_arch): New declaration.
7189 * utils-selftests.c (_initialize_utils_selftests): Add names
7190 when registering selftests.
7191 * utils.c (_initialize_utils): Likewise.
7192 * unittests/array-view-selftests.c
7193 (_initialize_array_view_selftests): Likewise.
7194 * unittests/environ-selftests.c (_initialize_environ_selftests):
7195 Likewise.
7196 * unittests/function-view-selftests.c
7197 (_initialize_function_view_selftests): Likewise.
7198 * unittests/offset-type-selftests.c
7199 (_initialize_offset_type_selftests): Likewise.
7200 * unittests/optional-selftests.c
7201 (_initialize_optional_selftests): Likewise.
7202 * unittests/scoped_restore-selftests.c
7203 (_initialize_scoped_restore_selftests): Likewise.
7204 * NEWS: Document "maintenance selftest" and "maint info
7205 selftests".
7206
7207 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7208
7209 * mi/mi-main.c (mi_load_progress): Restore current_uiout using a
7210 scoped_restore.
7211
7212 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7213
7214 * mi/mi-main.c (mi_load_progress): Make uiout variable
7215 a unique_ptr.
7216
7217 2017-09-15 Pedro Alves <palves@redhat.com>
7218
7219 * compile/compile-c-types.c (convert_enum, convert_int)
7220 (convert_float): Adjust to refer to int_type_v0 and float_type_v0.
7221
7222 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7223
7224 * dwarf2read.c (copy_string): Remove.
7225 (parse_macro_definition): Replace copy_string with savestring.
7226
7227 2017-09-15 Yao Qi <yao.qi@linaro.org>
7228
7229 * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to
7230 gdb_target_obs.
7231 (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*):
7232 Likewise.
7233 (i[34567]86-*-linux*): Likewise.
7234
7235 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
7236
7237 * dwarf2expr.h (dwarf_stack_value): Add constructor.
7238 (dwarf_expr_context) <~dwarf_expr_context>: Define as default.
7239 <stack>: Change type to std::vector.
7240 <stack_len, stack_allocated>: Remove.
7241 <grow_stack>: Remove.
7242 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
7243 (dwarf_expr_context::~dwarf_expr_context): Remove.
7244 (dwarf_expr_context::grow_stack): Remove.
7245 (dwarf_expr_context::push): Adjust.
7246 (dwarf_expr_context::pop): Adjust.
7247 (dwarf_expr_context::fetch): Adjust.
7248 (dwarf_expr_context::fetch_in_stack_memory): Adjust.
7249 (dwarf_expr_context::stack_empty_p): Adjust.
7250 (dwarf_expr_context::execute_stack_op): Adjust.
7251
7252 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
7253
7254 * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change
7255 return type to bool.
7256 * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise.
7257
7258 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
7259
7260 * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>:
7261 Change type to bool.
7262 (dwarf_stack_value) <in_stack_memory>: Likewise.
7263 (dwarf_expr_context) <push_address>: Change parameter type to
7264 bool.
7265 <fetch_in_stack_memory>: Change return type to bool.
7266 <push>: Change parameter type to bool.
7267 * dwarf2expr.c (dwarf_expr_context::push): Change parameter type
7268 to bool.
7269 (dwarf_expr_context::push_address): Likewise.
7270 (dwarf_expr_context::fetch_in_stack_memory): Change return type
7271 to bool.
7272 (dwarf_expr_context::execute_stack_op): Adjust.
7273 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust.
7274
7275 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
7276
7277 * dwarf2expr.h (struct dwarf_expr_piece): Move up.
7278 (struct dwarf_expr_context) <n_pieces>: Remove.
7279 <pieces>: Change type to std::vector.
7280 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
7281 (dwarf_expr_context::~dwarf_expr_context): Don't manually free
7282 pieces.
7283 (dwarf_expr_context::add_piece): Adjust.
7284 * dwarf2loc.c (struct piece_closure): Initialize fields.
7285 <n_pieces>: Remove.
7286 <pieces>: Change type to std::vector.
7287 (allocate_piece_closure): Adjust, change parameter to
7288 std::vector rvalue and std::move it to piece_closure.
7289 (rw_pieced_value): Adjust.
7290 (check_pieced_synthetic_pointer): Adjust.
7291 (indirect_synthetic_pointer): Adjust.
7292 (coerce_pieced_ref): Adjust.
7293 (free_pieced_value_closure): Adjust. Use delete to free
7294 piece_closure.
7295 (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces
7296 to allocate_piece_closure.
7297 (dwarf2_loc_desc_get_symbol_read_needs): Adjust.
7298
7299 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
7300
7301 * probe.h (probe_ops_cp): Remove typedef.
7302 (DEF_VEC_P (probe_ops_cp)): Remove.
7303 (all_probe_ops): Change type to std::vector.
7304 * probe.c (info_probes_for_ops): Adjust to vector change.
7305 (probe_linespec_to_ops): Likewise.
7306 (all_probe_ops): Change type to std::vector.
7307 (_initialize_probe): Adjust to vector change.
7308 * dtrace-probe.c (_initialize_dtrace_probe): Likewise.
7309 * elfread.c (elf_get_probes): Likewise.
7310 * stap-probe.c (_initialize_stap_probe): Likewise.
7311
7312 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
7313
7314 * probe.h (struct bound_probe): Define constructors.
7315 * probe.c (bound_probe_s): Remove typedef.
7316 (DEF_VEC_O (bound_probe_s)): Remove VEC.
7317 (collect_probes): Change return type to std::vector, remove
7318 cleanup.
7319 (compare_probes): Return bool, change parameter type. Change
7320 semantic to "less than".
7321 (gen_ui_out_table_header_info): Change parameter to std::vector
7322 and update.
7323 (exists_probe_with_pops): Likewise.
7324 (info_probes_for_ops): Update to std::vector change.
7325 (enable_probes_command): Likewise.
7326 (disable_probes_command): Likewise.
7327
7328 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
7329
7330 * probe.h (struct probe_ops) <get_probes>: Change parameter from
7331 vec to std::vector.
7332 * probe.c (parse_probes_in_pspace): Update.
7333 (find_probes_in_objfile): Update.
7334 (find_probe_by_pc): Update.
7335 (collect_probes): Update.
7336 (probe_any_get_probes): Update.
7337 * symfile.h (struct sym_probe_fns) <sym_get_probes> Change
7338 return type to reference to std::vector.
7339 * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to
7340 std::vector and update.
7341 (dtrace_process_dof): Likewise.
7342 (dtrace_get_probes): Likewise.
7343 * elfread.c (elf_get_probes): Change return type to std::vector,
7344 store an std::vector in bfd_data.
7345 (probe_key_free): Update to std::vector.
7346 * stap-probe.c (handle_stap_probe): Change parameter to
7347 std::vector and update.
7348 (stap_get_probes): Likewise.
7349 * symfile-debug.c (debug_sym_get_probes): Change return type to
7350 std::vector and update.
7351
7352 2017-09-11 Tom Tromey <tom@tromey.com>
7353
7354 * breakpoint.c (program_breakpoint_here_p): Update.
7355 * target.c (make_scoped_restore_show_memory_breakpoints): Rename
7356 from make_show_memory_breakpoints_cleanup. Return a
7357 scoped_restore_tmpl<int>.
7358 (restore_show_memory_breakpoints): Remove.
7359 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update.
7360 * mem-break.c (memory_validate_breakpoint): Update.
7361 * ia64-tdep.c (ia64_memory_insert_breakpoint): Update.
7362 (ia64_memory_remove_breakpoint): Update.
7363 (ia64_breakpoint_from_pc): Update.
7364 * target.h (make_scoped_restore_show_memory_breakpoints): Rename
7365 from make_show_memory_breakpoints_cleanup.
7366
7367 2017-09-11 Tom Tromey <tom@tromey.com>
7368
7369 * d-namespace.c (d_lookup_symbol): Use std::string.
7370 (find_symbol_in_baseclass): Likewise.
7371
7372 2017-09-11 Tom Tromey <tom@tromey.com>
7373
7374 * ctf.c (ctf_start): Use std::string.
7375
7376 2017-09-11 Tom Tromey <tom@tromey.com>
7377
7378 * ada-lang.c (is_known_support_routine): Update.
7379 (ada_unhandled_exception_name_addr_from_raise): Update.
7380 * guile/scm-frame.c (gdbscm_frame_name): Update.
7381 * python/py-frame.c (frapy_name): Update.
7382 (frapy_function): Update.
7383 * stack.h (find_frame_funname): Update.
7384 * stack.c (find_frame_funname): Return unique_xmalloc_ptr.
7385 (print_frame): Update.
7386
7387 2017-09-11 Tom Tromey <tom@tromey.com>
7388
7389 * findcmd.c (put_bits): Take a gdb::byte_vector.
7390 (parse_find_args): Return gdb::byte_vector. "args" now const.
7391 Remove "pattern_bufp" and "pattern_lenp" parameters. Remove
7392 cleanups.
7393 (find_command): Update.
7394
7395 2017-09-11 Tom Tromey <tom@tromey.com>
7396
7397 * cli/cli-script.c (class scoped_restore_hook_in): New.
7398 (clear_hook_in_cleanup): Remove.
7399 (execute_cmd_pre_hook, execute_cmd_post_hook): Use
7400 scoped_restore_hook_in.
7401
7402 2017-09-11 Tom Tromey <tom@tromey.com>
7403
7404 * cli/cli-script.c (restore_interp): Remove.
7405 (read_command_lines): Use scoped_restore_interp.
7406 * interps.c (scoped_restore_interp::set_temp): Rename from
7407 interp_set_temp.
7408 * interps.h (class scoped_restore_interp): New.
7409 (interp_set_temp): Remove.
7410
7411 2017-09-11 Tom Tromey <tom@tromey.com>
7412
7413 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
7414 (mi_cmd_catch_exception, mi_catch_load_unload): Update.
7415 * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a
7416 scoped_restore.
7417 (mi_cmd_break_insert_1): Update.
7418 * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a
7419 scoped_restore.
7420
7421 2017-09-11 Tom Tromey <tom@tromey.com>
7422
7423 * demangle.c (demangle_command): Update.
7424 * breakpoint.c (disable_command): Update.
7425 (enable_command): Update.
7426 (find_location_by_number): Make "number" const. Use
7427 get_number_trailer.
7428 * cli/cli-utils.c (extract_arg): Return std::string.
7429 * probe.c (parse_probe_linespec): Update. Change types.
7430 (collect_probes): Take string arguments.
7431 (parse_probe_linespec): Likewise.
7432 (info_probes_for_ops): Update.
7433 (enable_probes_command): Update.
7434 (disable_probes_command): Update.
7435 * break-catch-sig.c (catch_signal_split_args): Update.
7436 * mi/mi-parse.c (mi_parse): Update.
7437
7438 2017-09-11 Tom Tromey <tom@tromey.com>
7439
7440 * language.h (language_enum): Make argument const.
7441 * language.c (language_enum): Make argument const.
7442
7443 2017-09-11 Tom Tromey <tom@tromey.com>
7444
7445 * common/common-utils.h (skip_to_space): Remove macro, redeclare
7446 as function.
7447 (skip_to_space): Rename from skip_to_space_const.
7448 * common/common-utils.c (skip_to_space): New function.
7449 (skip_to_space): Rename from skip_to_space_const.
7450 * cli/cli-utils.h (get_number): Rename from get_number_const.
7451 (extract_arg): Rename from extract_arg_const.
7452 * cli/cli-utils.c (get_number): Rename from get_number_const.
7453 (extract_arg): Rename from extract_arg_const.
7454 (number_or_range_parser::get_number): Use ::get_number.
7455 * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c,
7456 break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c,
7457 cli/cli-script.c, cli/cli-setshow.c, compile/compile.c,
7458 completer.c, demangle.c, disasm.c, findcmd.c, linespec.c,
7459 linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c,
7460 minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c,
7461 python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c,
7462 stap-probe.c, tid-parse.c, tracepoint.c: Update all callers.
7463
7464 2017-09-11 Tom Tromey <tom@tromey.com>
7465
7466 * python/python.c (do_start_initialization): Use
7467 py-event-types.def to initialize types.
7468 Define all object type structures.
7469 * python/python-internal.h: Don't declare event initialization
7470 functions.
7471 * python/py-threadevent.c (thread_event_object_type): Don't
7472 define.
7473 * python/py-stopevent.c (stop_event_object_type): Don't define.
7474 * python/py-signalevent.c (signal_event_object_type): Don't
7475 declare or define.
7476 * python/py-newobjfileevent.c (new_objfile_event_object_type)
7477 (clear_objfiles_event_object_type): Don't declare or define.
7478 * python/py-infevents.c (inferior_call_pre_event_object_type)
7479 (inferior_call_post_event_object_type)
7480 (register_changed_event_object_type)
7481 (memory_changed_event_object_type): Don't declare or define.
7482 * python/py-inferior.c (new_thread_event_object_type)
7483 (new_inferior_event_object_type)
7484 (inferior_deleted_event_object_type): Don't declare or define.
7485 * python/py-exitedevent.c (exited_event_object_type): Don't
7486 declare or define.
7487 * python/py-evts.c (gdbpy_initialize_py_events): Use
7488 py-all-events.def.
7489 * python/py-events.h (thread_event_object_type): Don't declare.
7490 (events_object): Use py-all-events.def.
7491 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use
7492 py-event-types.def.
7493 * python/py-event-types.def: New file.
7494 * python/py-continueevent.c (create_continue_event_object): Don't
7495 declare or define.
7496 * python/py-bpevent.c (breakpoint_event_object_type): Don't
7497 declare or define.
7498 * python/py-all-events.def: New file.
7499
7500 2017-09-11 Tom Tromey <tom@tromey.com>
7501
7502 * python/py-threadevent.c (create_thread_event_object): Return
7503 gdbpy_ref.
7504 * python/py-stopevent.h (create_stop_event_object)
7505 (create_breakpoint_event_object, create_signal_event_object):
7506 Update.
7507 * python/py-stopevent.c (create_stop_event_object): Return
7508 gdbpy_ref.
7509 (emit_stop_event): Update.
7510 * python/py-signalevent.c (create_signal_event_object): Return
7511 gdbpy_ref.
7512 * python/py-infevents.c (create_inferior_call_event_object):
7513 Update.
7514 * python/py-event.h (create_event_object)
7515 (create_thread_event_object): Update.
7516 * python/py-event.c (create_event_object): Return gdbpy_ref.
7517 * python/py-continueevent.c: Return gdbpy_ref.
7518 * python/py-bpevent.c (create_breakpoint_event_object): Return
7519 gdbpy_ref.
7520
7521 2017-09-11 Tom Tromey <tom@tromey.com>
7522
7523 PR python/15622:
7524 * NEWS: Add entry.
7525 * python/python.c (do_start_initialization): Initialize new event
7526 types.
7527 * python/python-internal.h (gdbpy_initialize_new_inferior_event)
7528 (gdbpy_initialize_inferior_deleted_event)
7529 (gdbpy_initialize_new_thread_event): Declare.
7530 * python/py-threadevent.c (create_thread_event_object): Add option
7531 "thread" parameter.
7532 * python/py-inferior.c (new_thread_event_object_type)
7533 (new_inferior_event_object_type)
7534 (inferior_deleted_event_object_type): Declare.
7535 (python_new_inferior, python_inferior_deleted): New functions.
7536 (add_thread_object): Emit new_thread event.
7537 (gdbpy_initialize_inferior): Attach new functions to corresponding
7538 observers.
7539 (new_thread, new_inferior, inferior_deleted): Define new event
7540 types.
7541 * python/py-evts.c (gdbpy_initialize_py_events): Add new
7542 registries.
7543 * python/py-events.h (events_object) <new_inferior,
7544 inferior_deleted, new_thread>: New fields.
7545 * python/py-event.h (create_thread_event_breakpoint): Add optional
7546 "thread" parameter.
7547
7548 2017-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
7549
7550 * utils.c (abort_with_message): Don't compare gdb_stderr to NULL,
7551 check current_ui instead.
7552 (internal_vproblem): Likewise.
7553
7554 2017-09-09 Simon Marchi <simon.marchi@ericsson.com>
7555
7556 * thread.c (print_thread_info_1): Remove unnecessary calls to
7557 uiout->is_mi_like_p.
7558
7559 2017-09-09 Tom Tromey <tom@tromey.com>
7560
7561 * namespace.h (add_using_directive): Update.
7562 * namespace.c (add_using_directive): Change type of excludes to
7563 std::vector.
7564 * dwarf2read.c (read_import_statement): Use std::vector.
7565 (read_namespace): Update.
7566 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
7567
7568 2017-09-09 Tom Tromey <tom@tromey.com>
7569
7570 * linespec.c (create_sals_line_offset): Use gdb::def_vector.
7571
7572 2017-09-09 Tom Tromey <tom@tromey.com>
7573
7574 * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector.
7575
7576 2017-09-09 Tom Tromey <tom@tromey.com>
7577
7578 * stack.c (func_command): Use gdb::def_vector.
7579
7580 2017-09-09 Tom Tromey <tom@tromey.com>
7581
7582 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional,
7583 ui_out_emit_list, ui_out_emit_tuple.
7584 (mi_cmd_var_update): Likewise.
7585
7586 2017-09-09 Tom Tromey <tom@tromey.com>
7587
7588 * mi/mi-interp.c (mi_user_selected_context_changed): Use
7589 ui_out_redirect_pop.
7590 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
7591 ui_out_redirect_pop.
7592 * utils.c (do_ui_out_redirect_pop)
7593 (make_cleanup_ui_out_redirect_pop): Remove.
7594 * top.c (execute_command_to_string): Use ui_out_redirect_pop.
7595 * utils.h (make_cleanup_ui_out_redirect_pop): Remove.
7596 * ui-out.h (ui_out_redirect_pop): New class.
7597
7598 2017-09-09 Tom Tromey <tom@tromey.com>
7599
7600 * mi/mi-main.c (output_cores): Use ui_out_emit_list.
7601 (list_available_thread_groups, mi_cmd_list_thread_groups)
7602 (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory)
7603 (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected):
7604 Likewise.
7605
7606 2017-09-09 Tom Tromey <tom@tromey.com>
7607
7608 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
7609 ui_out_emit_tuple.
7610
7611 2017-09-09 Tom Tromey <tom@tromey.com>
7612
7613 * target.c (flash_erase_command): Use ui_out_emit_tuple.
7614 * stack.c (print_frame): Use ui_out_emit_tuple.
7615 * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple.
7616 (info_spu_mailbox_command, info_spu_dma_command)
7617 (info_spu_proxydma_command): Likewise.
7618 * mi/mi-main.c (mi_cmd_trace_frame_collected): Use
7619 ui_out_emit_tuple, gdb::byte_vector, bin2hex.
7620 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
7621 ui_out_emit_tuple.
7622 * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple.
7623
7624 2017-09-09 Tom Tromey <tom@tromey.com>
7625
7626 * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove.
7627 (class ui_out_emit_table): Update comment.
7628 * ui-out.c (do_cleanup_table_end)
7629 (make_cleanup_ui_out_table_begin_end): Remove.
7630 * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table.
7631 (info_spu_dma_cmdlist): Likewise.
7632 * probe.c (info_probes_for_ops): Use ui_out_emit_table.
7633 * darwin-nat-info.c (darwin_debug_regions_recurse): Use
7634 ui_out_emit_table.
7635
7636 2017-09-09 Tom Tromey <tom@tromey.com>
7637
7638 * thread.c (print_thread_info_1): Use ui_out_emit_table,
7639 ui_out_emit_list, gdb::optional.
7640
7641 2017-09-09 John Baldwin <jhb@FreeBSD.org>
7642
7643 * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat
7644 prototype.
7645 * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep
7646 prototype.
7647 * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep
7648 prototype.
7649 * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype.
7650 * ada-exp.y: Remove _initialize_ada_exp prototype.
7651 * ada-lang.c: Remove _initialize_ada_language prototype.
7652 * ada-tasks.c: Remove _initialize_tasks prototype.
7653 * addrmap.c: Remove _initialize_addrmap prototype.
7654 * agent.c: Remove _initialize_agent prototype.
7655 * aix-thread.c: Remove _initialize_aix_thread prototype.
7656 * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype.
7657 * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype.
7658 * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep
7659 prototype.
7660 * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype.
7661 * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype.
7662 * alpha-tdep.c: Remove _initialize_alpha_tdep prototype.
7663 * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep
7664 prototype.
7665 * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep
7666 prototype.
7667 * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype.
7668 * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype.
7669 * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype.
7670 * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep
7671 prototype.
7672 * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype.
7673 * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype.
7674 * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype.
7675 * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype.
7676 * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
7677 * amd64-tdep.c: Remove _initialize_amd64_tdep prototype.
7678 * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat
7679 prototype.
7680 * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep
7681 prototype.
7682 * annotate.c: Remove _initialize_annotate prototype.
7683 * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype.
7684 * arc-tdep.c: Remove _initialize_arc_tdep prototype.
7685 * arch-utils.c: Remove _initialize_gdbarch_utils prototype.
7686 * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype.
7687 * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype.
7688 * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype.
7689 * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype.
7690 * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep
7691 prototype.
7692 * arm-tdep.c: Remove _initialize_arm_tdep prototype.
7693 * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype.
7694 * auto-load.c: Remove _initialize_auto_load prototype.
7695 * auxv.c: Remove _initialize_auxv prototype.
7696 * avr-tdep.c: Remove _initialize_avr_tdep prototype.
7697 * ax-gdb.c: Remove _initialize_ax_gdb prototype.
7698 * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype.
7699 * bfin-tdep.c: Remove _initialize_bfin_tdep prototype.
7700 * break-catch-sig.c: Remove _initialize_break_catch_sig prototype.
7701 * break-catch-syscall.c: Remove _initialize_break_catch_syscall
7702 prototype.
7703 * break-catch-throw.c: Remove _initialize_break_catch_throw
7704 prototype.
7705 * breakpoint.c: Remove _initialize_breakpoint prototype.
7706 * bsd-uthread.c: Remove _initialize_bsd_uthread prototype.
7707 * btrace.c: Remove _initialize_btrace prototype.
7708 * charset.c: Remove _initialize_charset prototype.
7709 * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype.
7710 * cli/cli-dump.c: Remove _initialize_cli_dump prototype.
7711 * cli/cli-interp.c: Remove _initialize_cli_interp prototype.
7712 * cli/cli-logging.c: Remove _initialize_cli_logging prototype.
7713 * cli/cli-script.c: Remove _initialize_cli_script prototype.
7714 * coff-pe-read.c: Remove _initialize_coff_pe_read prototype.
7715 * coffread.c: Remove _initialize_coffread prototype.
7716 * compile/compile.c: Remove _initialize_compile prototype.
7717 * complaints.c: Remove _initialize_complaints prototype.
7718 * completer.c: Remove _initialize_completer prototype.
7719 * copying.awk: Remove _initialize_copying prototype.
7720 * copying.c: Regenerate.
7721 * core-regset.c: Remove _initialize_core_regset prototype.
7722 * corefile.c: Remove _initialize_core prototype.
7723 * corelow.c: Remove _initialize_corelow prototype.
7724 * cp-abi.c: Remove _initialize_cp_abi prototype.
7725 * cp-namespace.c: Remove _initialize_cp_namespace prototype.
7726 * cp-support.c: Remove _initialize_cp_support prototype.
7727 * cp-valprint.c: Remove _initialize_cp_valprint prototype.
7728 * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype.
7729 * cris-tdep.c: Remove _initialize_cris_tdep prototype.
7730 * ctf.c: Remove _initialize_ctf prototype.
7731 * d-lang.c: Remove _initialize_d_language prototype.
7732 * darwin-nat-info.c: Remove _initialize_darwin_info_commands
7733 prototype.
7734 * darwin-nat.c: Remove _initialize_darwin_inferior prototype.
7735 * dbxread.c: Remove _initialize_dbxread prototype.
7736 * dcache.c: Remove _initialize_dcache prototype.
7737 * demangle.c: Remove _initialize_demangler prototype.
7738 * disasm-selftests.c: Remove _initialize_disasm_selftests
7739 prototype.
7740 * disasm.c: Remove _initialize_disasm prototype.
7741 * dtrace-probe.c: Remove _initialize_dtrace_probe prototype.
7742 * dummy-frame.c: Remove _initialize_dummy_frame prototype.
7743 * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame
7744 prototype.
7745 * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype.
7746 * dwarf2expr.c: Remove _initialize_dwarf2expr prototype.
7747 * dwarf2loc.c: Remove _initialize_dwarf2loc prototype.
7748 * dwarf2read.c: Remove _initialize_dwarf2_read prototype.
7749 * elfread.c: Remove _initialize_elfread prototype.
7750 * exec.c: Remove _initialize_exec prototype.
7751 * extension.c: Remove _initialize_extension prototype.
7752 * f-lang.c: Remove _initialize_f_language prototype.
7753 * f-valprint.c: Remove _initialize_f_valprint prototype.
7754 * fbsd-nat.c: Remove _initialize_fbsd_nat prototype.
7755 * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype.
7756 * filesystem.c: Remove _initialize_filesystem prototype.
7757 * findcmd.c: Remove _initialize_mem_search prototype.
7758 * fork-child.c: Remove _initialize_fork_child prototype.
7759 * frame-base.c: Remove _initialize_frame_base prototype.
7760 * frame-unwind.c: Remove _initialize_frame_unwind prototype.
7761 * frame.c: Remove _initialize_frame prototype.
7762 * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype.
7763 * frv-tdep.c: Remove _initialize_frv_tdep prototype.
7764 * ft32-tdep.c: Remove _initialize_ft32_tdep prototype.
7765 * gcore.c: Remove _initialize_gcore prototype.
7766 * gdb_bfd.c: Remove _initialize_gdb_bfd prototype.
7767 * gdbarch.c: Regenerate.
7768 * gdbarch.sh: Remove _initialize_gdbarch prototype.
7769 * gdbtypes.c: Remove _initialize_gdbtypes prototype.
7770 * gnu-nat.c: Remove _initialize_gnu_nat prototype.
7771 * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype.
7772 * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype.
7773 * go-lang.c: Remove _initialize_go_language prototype.
7774 * go32-nat.c: Remove _initialize_go32_nat prototype.
7775 * guile/guile.c: Remove _initialize_guile prototype.
7776 * h8300-tdep.c: Remove _initialize_h8300_tdep prototype.
7777 * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype.
7778 * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype.
7779 * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype.
7780 * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype.
7781 * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype.
7782 * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype.
7783 * hppa-tdep.c: Remove _initialize_hppa_tdep prototype.
7784 * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype.
7785 * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep
7786 prototype.
7787 * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep
7788 prototype.
7789 * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype.
7790 * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype.
7791 * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype.
7792 * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype.
7793 * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype.
7794 * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype.
7795 * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype.
7796 * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype.
7797 * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype.
7798 * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype.
7799 * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype.
7800 * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype.
7801 * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype.
7802 * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
7803 * i386-tdep.c: Remove _initialize_i386_tdep prototype.
7804 * i386-windows-nat.c: Remove _initialize_i386_windows_nat
7805 prototype.
7806 * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame
7807 prototype.
7808 * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype.
7809 * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype.
7810 * ia64-tdep.c: Remove _initialize_ia64_tdep prototype.
7811 * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype.
7812 * infcall.c: Remove _initialize_infcall prototype.
7813 * infcmd.c: Remove _initialize_infcmd prototype.
7814 * inferior.c: Remove _initialize_inferiors prototype.
7815 * inflow.c: Remove _initialize_inflow prototype.
7816 * infrun.c: Remove _initialize_infrun prototype.
7817 * interps.c: Remove _initialize_interpreter prototype.
7818 * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype.
7819 * jit.c: Remove _initialize_jit prototype.
7820 * language.c: Remove _initialize_language prototype.
7821 * linux-fork.c: Remove _initialize_linux_fork prototype.
7822 * linux-nat.c: Remove _initialize_linux_nat prototype.
7823 * linux-tdep.c: Remove _initialize_linux_tdep prototype.
7824 * linux-thread-db.c: Remove _initialize_thread_db prototype.
7825 * lm32-tdep.c: Remove _initialize_lm32_tdep prototype.
7826 * m2-lang.c: Remove _initialize_m2_language prototype.
7827 * m32c-tdep.c: Remove _initialize_m32c_tdep prototype.
7828 * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype.
7829 * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype.
7830 * m32r-tdep.c: Remove _initialize_m32r_tdep prototype.
7831 * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype.
7832 * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
7833 * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
7834 * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype.
7835 * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype.
7836 * m68k-tdep.c: Remove _initialize_m68k_tdep prototype.
7837 * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
7838 * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
7839 * machoread.c: Remove _initialize_machoread prototype.
7840 * macrocmd.c: Remove _initialize_macrocmd prototype.
7841 * macroscope.c: Remove _initialize_macroscope prototype.
7842 * maint.c: Remove _initialize_maint_cmds prototype.
7843 * mdebugread.c: Remove _initialize_mdebugread prototype.
7844 * memattr.c: Remove _initialize_mem prototype.
7845 * mep-tdep.c: Remove _initialize_mep_tdep prototype.
7846 * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype.
7847 * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype.
7848 * mi/mi-interp.c: Remove _initialize_mi_interp prototype.
7849 * mi/mi-main.c: Remove _initialize_mi_main prototype.
7850 * microblaze-linux-tdep.c: Remove
7851 _initialize_microblaze_linux_tdep prototype.
7852 * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype.
7853 * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype.
7854 * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype.
7855 * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype.
7856 * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype.
7857 * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype.
7858 * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype.
7859 * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype.
7860 * mips-tdep.c: Remove _initialize_mips_tdep prototype.
7861 * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype.
7862 * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep
7863 prototype.
7864 * mipsread.c: Remove _initialize_mipsread prototype.
7865 * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep
7866 prototype.
7867 * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype.
7868 * moxie-tdep.c: Remove _initialize_moxie_tdep prototype.
7869 * msp430-tdep.c: Remove _initialize_msp430_tdep prototype.
7870 * mt-tdep.c: Remove _initialize_mt_tdep prototype.
7871 * nds32-tdep.c: Remove _initialize_nds32_tdep prototype.
7872 * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep
7873 prototype.
7874 * nios2-tdep.c: Remove _initialize_nios2_tdep prototype.
7875 * nto-procfs.c: Remove _initialize_procfs prototype.
7876 * nto-tdep.c: Remove _initialize_nto_tdep prototype.
7877 * objc-lang.c: Remove _initialize_objc_language prototype.
7878 * objfiles.c: Remove _initialize_objfiles prototype.
7879 * observer.c: Remove observer_test_first_notification_function,
7880 observer_test_second_notification_function,
7881 observer_test_third_notification_function, and
7882 _initialize_observer prototypes.
7883 * opencl-lang.c: Remove _initialize_opencl_language prototypes.
7884 * osabi.c: Remove _initialize_gdb_osabi prototype.
7885 * osdata.c: Remove _initialize_osdata prototype.
7886 * p-valprint.c: Remove _initialize_pascal_valprint prototype.
7887 * parse.c: Remove _initialize_parse prototype.
7888 * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype.
7889 * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype.
7890 * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype.
7891 * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype.
7892 * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype.
7893 * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype.
7894 * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype.
7895 * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype.
7896 * printcmd.c: Remove _initialize_printcmd prototype.
7897 * probe.c: Remove _initialize_probe prototype.
7898 * proc-api.c: Remove _initialize_proc_api prototype.
7899 * proc-events.c: Remove _initialize_proc_events prototype.
7900 * proc-service.c: Remove _initialize_proc_service prototype.
7901 * procfs.c: Remove _initialize_procfs prototype.
7902 * psymtab.c: Remove _initialize_psymtab prototype.
7903 * python/python.c: Remove _initialize_python prototype.
7904 * ravenscar-thread.c: Remove _initialize_ravenscar prototype.
7905 * record-btrace.c: Remove _initialize_record_btrace prototype.
7906 * record-full.c: Remove _initialize_record_full prototype.
7907 * record.c: Remove _initialize_record prototype.
7908 * regcache.c: Remove _initialize_regcache prototype.
7909 * reggroups.c: Remove _initialize_reggroup prototype.
7910 * remote-notif.c: Remove _initialize_notif prototype.
7911 * remote-sim.c: Remove _initialize_remote_sim prototype.
7912 * remote.c: Remove _initialize_remote prototype.
7913 * reverse.c: Remove _initialize_reverse prototype.
7914 * rl78-tdep.c: Remove _initialize_rl78_tdep prototype.
7915 * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype.
7916 * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep
7917 prototype.
7918 * rs6000-nat.c: Remove _initialize_rs6000_nat prototype.
7919 * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype.
7920 * rust-exp.y: Remove _initialize_rust_exp prototype.
7921 * rx-tdep.c: Remove _initialize_rx_tdep prototype.
7922 * s390-linux-nat.c: Remove _initialize_s390_nat prototype.
7923 * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype.
7924 * score-tdep.c: Remove _initialize_score_tdep prototype.
7925 * selftest-arch.c: Remove _initialize_selftests_foreach_arch
7926 prototype.
7927 * ser-go32.c: Remove _initialize_ser_dos prototype.
7928 * ser-mingw.c: Remove _initialize_ser_windows prototype.
7929 * ser-pipe.c: Remove _initialize_ser_pipe prototype.
7930 * ser-tcp.c: Remove _initialize_ser_tcp prototype.
7931 * ser-unix.c: Remove _initialize_ser_hardwire prototype.
7932 * serial.c: Remove _initialize_serial prototype.
7933 * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype.
7934 * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype.
7935 * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype.
7936 * sh-tdep.c: Remove _initialize_sh_tdep prototype.
7937 * skip.c: Remove _initialize_step_skip prototype.
7938 * sol-thread.c: Remove _initialize_sol_thread prototype.
7939 * solib-aix.c: Remove _initialize_solib_aix prototype.
7940 * solib-darwin.c: Remove _initialize_darwin_solib prototype.
7941 * solib-dsbt.c: Remove _initialize_dsbt_solib prototype.
7942 * solib-frv.c: Remove _initialize_frv_solib prototype.
7943 * solib-spu.c: Remove _initialize_spu_solib prototype.
7944 * solib-svr4.c: Remove _initialize_svr4_solib prototype.
7945 * solib-target.c: Remove _initialize_solib_target prototype.
7946 * solib.c: Remove _initialize_solib prototype.
7947 * source.c: Remove _initialize_source prototype.
7948 * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype.
7949 * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep
7950 prototype.
7951 * sparc-nat.c: Remove _initialize_sparc_nat prototype.
7952 * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype.
7953 * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype.
7954 * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep
7955 prototype.
7956 * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype.
7957 * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype.
7958 * sparc-tdep.c: Remove _initialize_sparc_tdep prototype.
7959 * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat
7960 prototype.
7961 * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep
7962 prototype.
7963 * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat
7964 prototype.
7965 * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep
7966 prototype.
7967 * sparc64-nat.c: Remove _initialize_sparc64_nat prototype.
7968 * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat
7969 prototype.
7970 * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep
7971 prototype.
7972 * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat
7973 prototype.
7974 * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep
7975 prototype.
7976 * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep
7977 prototype.
7978 * spu-linux-nat.c: Remove _initialize_spu_nat prototype.
7979 * spu-multiarch.c: Remove _initialize_spu_multiarch prototype.
7980 * spu-tdep.c: Remove _initialize_spu_tdep prototype.
7981 * stabsread.c: Remove _initialize_stabsread prototype.
7982 * stack.c: Remove _initialize_stack prototype.
7983 * stap-probe.c: Remove _initialize_stap_probe prototype.
7984 * std-regs.c: Remove _initialize_frame_reg prototype.
7985 * symfile-debug.c: Remove _initialize_symfile_debug prototype.
7986 * symfile-mem.c: Remove _initialize_symfile_mem prototype.
7987 * symfile.c: Remove _initialize_symfile prototype.
7988 * symmisc.c: Remove _initialize_symmisc prototype.
7989 * symtab.c: Remove _initialize_symtab prototype.
7990 * target-dcache.c: Remove _initialize_target_dcache prototype.
7991 * target-descriptions.c: Remove _initialize_target_descriptions
7992 prototype.
7993 * thread.c: Remove _initialize_thread prototype.
7994 * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep
7995 prototype.
7996 * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype.
7997 * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype.
7998 * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep
7999 prototype.
8000 * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype.
8001 * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype.
8002 * tracefile.c: Remove _initialize_tracefile prototype.
8003 * tracepoint.c: Remove _initialize_tracepoint prototype.
8004 * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype.
8005 * tui/tui-interp.c: Remove _initialize_tui_interp prototype.
8006 * tui/tui-layout.c: Remove _initialize_tui_layout prototype.
8007 * tui/tui-regs.c: Remove _initialize_tui_regs prototype.
8008 * tui/tui-stack.c: Remove _initialize_tui_stack prototype.
8009 * tui/tui-win.c: Remove _initialize_tui_win prototype.
8010 * tui/tui.c: Remove _initialize_tui prototype.
8011 * typeprint.c: Remove _initialize_typeprint prototype.
8012 * user-regs.c: Remove _initialize_user_regs prototype.
8013 * utils.c: Remove _initialize_utils prototype.
8014 * v850-tdep.c: Remove _initialize_v850_tdep prototype.
8015 * valarith.c: Remove _initialize_valarith prototype.
8016 * valops.c: Remove _initialize_valops prototype.
8017 * valprint.c: Remove _initialize_valprint prototype.
8018 * value.c: Remove _initialize_values prototype.
8019 * varobj.c: Remove _initialize_varobj prototype.
8020 * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype.
8021 * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype.
8022 * vax-tdep.c: Remove _initialize_vax_tdep prototype.
8023 * windows-nat.c: Remove _initialize_windows_nat,
8024 _initialize_check_for_gdb_ini, and _initialize_loadable
8025 prototypes.
8026 * windows-tdep.c: Remove _initialize_windows_tdep prototype.
8027 * xcoffread.c: Remove _initialize_xcoffread prototype.
8028 * xml-support.c: Remove _initialize_xml_support prototype.
8029 * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype.
8030 * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat
8031 prototype.
8032 * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep
8033 prototype.
8034 * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype.
8035
8036 2017-09-08 Keith Seitz <keiths@redhat.com>
8037
8038 * dwarf2read.c (struct field_info) <fnfields>: Remove unused
8039 field.
8040
8041 2017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com>
8042
8043 * f-valprint.c (f_val_print): Remove check for one byte
8044 sized integers. Remove printing of character type.
8045
8046 2017-09-08 Frank Penczek <frank.penczek@intel.com>
8047 Christoph Weinmann <christoph.t.weinmann@intel.com>
8048 Bernhard Heckel <bernhard.heckel@intel.com>
8049
8050 * f-typeprint.c (f_type_print_base): Use fprintfi_filtered
8051 to maintain proper indentation when printing pointers/refs.
8052
8053 2017-09-07 Joel Brobecker <brobecker@adacore.com>
8054
8055 GDB 8.0.1 released.
8056
8057 2017-09-07 Joel Brobecker <brobecker@adacore.com>
8058
8059 * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell.
8060
8061 2017-09-05 Tom Tromey <tom@tromey.com>
8062
8063 * parse.c (funcall_chain): Now a std::vector.
8064 (start_arglist, end_arglist): Simplify.
8065 (free_funcalls): Remove.
8066 (parse_exp_in_context_1): Remove cleanup.
8067
8068 2017-09-05 Tom Tromey <tom@tromey.com>
8069
8070 * go-exp.y (go_parse): Don't create a cleanup.
8071
8072 2017-09-05 Tom Tromey <tom@tromey.com>
8073
8074 * d-exp.y (PrimaryExpression): Use std::string.
8075 (d_parse): Don't create a cleanup.
8076
8077 2017-09-05 Tom Tromey <tom@tromey.com>
8078
8079 * utils.c (do_clear_parser_state): Remove.
8080 (make_cleanup_clear_parser_state): Remove.
8081 * p-exp.y (pascal_parse): Use scoped_restore.
8082 * m2-exp.y (m2_parse): Use scoped_restore.
8083 * f-exp.y (f_parse): Use scoped_restore.
8084 * d-exp.y (d_parse): Use scoped_restore.
8085 * c-exp.y (c_parse): Use scoped_restore.
8086 * ada-exp.y (ada_parse): Use scoped_restore.
8087 * utils.h (make_cleanup_clear_parser_state): Remove.
8088
8089 2017-09-06 Keith Seitz <keiths@redhat.com>
8090
8091 * dwarf2read.c (dw2_linkage_name_attr): New function.
8092 (dw2_linkage_name): New function.
8093 (dwarf2_compute_name, dwarf2_physname, read_call_site_scope)
8094 (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name.
8095 (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr.
8096
8097 2017-09-06 Kamil Rytarowski <n54@gmx.com>
8098
8099 * config/djgpp/djconfig.sh: Correct shell portability issue.
8100
8101 2017-09-06 Kamil Rytarowski <n54@gmx.com>
8102
8103 * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD.
8104
8105 2017-09-06 John Baldwin <jhb@FreeBSD.org>
8106
8107 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
8108 * NEWS: Mention new FreeBSD/mips native configuration.
8109 * configure.host: Add aarch64*-*-freebsd*.
8110 * configure.nat: Likewise.
8111 * aarch64-fbsd-nat.c: New file.
8112
8113 2017-09-06 John Baldwin <jhb@FreeBSD.org>
8114
8115 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o.
8116 (ALLDEPFILES): Add aarch64-fbsd-tdep.c.
8117 * NEWS: Mention new FreeBSD/aarch64 target.
8118 * configure.tgt: Add aarch64*-*-freebsd*.
8119 * aarch64-fbsd-tdep.c: New file.
8120 * aarch64-fbsd-tdep.h: New file.
8121
8122 2017-09-06 Kamil Rytarowski <n54@gmx.com>
8123
8124 * MAINTAINERS (Write After Approval): Add Kamil Rytarowski.
8125
8126 2017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
8127
8128 * parse.c (find_minsym_type_and_address): Don't relocate addresses
8129 of TLS symbols.
8130
8131 2017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8132
8133 * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
8134 call.
8135
8136 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
8137
8138 * infrun.c (follow_exec): Call add_thread after
8139 target_find_description.
8140
8141 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
8142
8143 * infrun.c (handle_inferior_event_1): When exec'ing, read
8144 stop_pc after follow_exec.
8145
8146 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
8147
8148 * remote.c (process_g_packet): Update error message.
8149
8150 2017-09-05 Yao Qi <yao.qi@linaro.org>
8151
8152 * configure.tgt (gdb_target_obs): Add i386.o for x86_64-*
8153 targets.
8154
8155 2017-09-05 Pedro Alves <palves@redhat.com>
8156
8157 * eval.c (eval_call, evaluate_funcall): New functions, factored
8158 out from ...
8159 (evaluate_subexp_standard): ... this.
8160
8161 2017-09-05 Yao Qi <yao.qi@linaro.org>
8162
8163 * amd64-tdep.c (amd64_target_description): Create target
8164 descriptions.
8165 (_initialize_amd64_tdep): Don't call functions
8166 initialize_tdesc_amd64_*. Add self tests.
8167 * arch/amd64.c (amd64_create_target_description): Add parameter
8168 is_linux. Call set_tdesc_osabi if is_linux is true.
8169 * arch/amd64.h (amd64_create_target_description): Update the
8170 declaration.
8171 * arch/i386.c (i386_create_target_description): Add parameter
8172 is_linux. Call set_tdesc_osabi if is_linux is true.
8173 * arch/i386.h (i386_create_target_description): Update
8174 declaration.
8175 * configure.tgt: Add i386.o to gdb_target_obs.
8176 * features/Makefile (XMLTOC): Remove i386/*.xml.
8177 * features/i386/amd64-avx-avx512.c: Remove.
8178 * features/i386/amd64-avx-mpx-avx512-pku.c: Remove.
8179 * features/i386/amd64-avx-mpx.c: Remove.
8180 * features/i386/amd64-avx.c: Remove.
8181 * features/i386/amd64-mpx.c: Remove.
8182 * features/i386/amd64.c: Remove.
8183 * features/i386/i386-avx-avx512.c: Remove.
8184 * features/i386/i386-avx-mpx-avx512-pku.c: Remove.
8185 * features/i386/i386-avx-mpx.c: Remove.
8186 * features/i386/i386-avx.c: Remove.
8187 * features/i386/i386-mmx.c: Remove.
8188 * features/i386/i386-mpx.c: Remove.
8189 * features/i386/i386.c: Remove.
8190 * i386-tdep.c: Don't include features/i386/i386*.c., include
8191 target-descriptions.h and arch/i386.h.
8192 (i386_target_description): Create target descriptions.
8193 (i386_gdbarch_init): Don't call initialize_tdesc_i386_*
8194 functions. Do self tests.
8195
8196 2017-09-05 Yao Qi <yao.qi@linaro.org>
8197
8198 * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml.
8199 * features/i386/amd64-avx-avx512-linux.c: Removed.
8200 * features/i386/amd64-avx-linux.c: Removed.
8201 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed.
8202 * features/i386/amd64-avx-mpx-linux.c: Removed.
8203 * features/i386/amd64-linux.c: Removed.
8204 * features/i386/amd64-mpx-linux.c: Removed.
8205 * features/i386/x32-avx-avx512-linux.c: Removed.
8206 * features/i386/x32-avx-linux.c: Removed.
8207 * features/i386/x32-linux.c: Removed.
8208
8209 2017-09-05 Yao Qi <yao.qi@linaro.org>
8210
8211 * amd64-linux-tdep.c: Include arch/amd64.h. Don't include
8212 features/i386/*.c.
8213 (amd64_linux_read_description): Call
8214 amd64_create_target_description.
8215 * arch/amd64.c: New file.
8216 * arch/amd64.h: New file.
8217 * configure.tgt (x86_64-*-linux*): Append amd64.o.
8218 * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o.
8219
8220 2017-09-05 Yao Qi <yao.qi@linaro.org>
8221
8222 * amd64-linux-tdep.c: Don't include amd64-XXX-linux and
8223 x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c.
8224 (amd64_linux_read_description): Create target descriptions.
8225 (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX
8226 functions. Add unit tests.
8227 * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and
8228 x32-core.xml.
8229 * features/i386/64bit-avx.c: Generated.
8230 * features/i386/64bit-avx512.c: Generated.
8231 * features/i386/64bit-core.c: Generated.
8232 * features/i386/64bit-linux.c: Generated.
8233 * features/i386/64bit-mpx.c: Generated.
8234 * features/i386/64bit-pkeys.c: Generated.
8235 * features/i386/64bit-segments.c: Generated.
8236 * features/i386/64bit-sse.c: Generated.
8237 * features/i386/x32-core.c: Generated.
8238 * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature
8239 c files for amd64-linux and x32-linux.
8240
8241 2017-09-05 Yao Qi <yao.qi@linaro.org>
8242
8243 * amd64-linux-tdep.c (amd64_linux_read_description): New
8244 function.
8245 (amd64_linux_core_read_description): Call
8246 amd64_linux_read_description.
8247 (amd64_linux_init_abi): Likewise.
8248 (amd64_x32_linux_init_abi): Likewise.
8249 * amd64-linux-tdep.h (amd64_linux_read_description): Declare.
8250 * x86-linux-nat.c (x86_linux_read_description): Call
8251 amd64_linux_read_description.
8252
8253 2017-09-05 Yao Qi <yao.qi@linaro.org>
8254
8255 * amd64-linux-tdep.c (amd64_linux_core_read_description): Update
8256 comments.
8257
8258 2017-09-05 Yao Qi <yao.qi@linaro.org>
8259
8260 * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml.
8261 * features/i386/i386-avx-avx512-linux.c: Remove.
8262 * features/i386/i386-avx-linux.c: Remove.
8263 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove.
8264 * features/i386/i386-avx-mpx-linux.c: Remove.
8265 * features/i386/i386-linux.c: Remove.
8266 * features/i386/i386-mmx-linux.c: Remove.
8267 * features/i386/i386-mpx-linux.c: Remove.
8268
8269 2017-09-05 Yao Qi <yao.qi@linaro.org>
8270
8271 * Makefile.in (ALL_TARGET_OBS): Add i386.o.
8272 (SFILES): Add arch/i386.c.
8273 (HFILES_NO_SRCDIR): Add arch/i386.h.
8274 * arch/i386.c: New file.
8275 * arch/i386.h: New file.
8276 * arch/tdesc.h (allocate_target_description): Declare.
8277 (set_tdesc_architecture): Declare.
8278 (set_tdesc_osabi): Declare.
8279 * configure.tgt (i[34567]86-*-linux*): Add i386.o.
8280 * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c.
8281 include arch/i386.h.
8282 (i386_linux_read_description): Remove code and call
8283 i386_create_target_description.
8284 (set_tdesc_architecture): New function.
8285 (set_tdesc_osabi): New function.
8286 * target-descriptions.h (allocate_target_description): Remove.
8287
8288 2017-09-05 Yao Qi <yao.qi@linaro.org>
8289
8290 * arch/tdesc.h (tdesc_create_feature): Add an argument xml.
8291 * target-descriptions.c (tdesc_create_feature): Likewise, and
8292 adjust code.
8293 * features/i386/32bit-avx.c: Re-generated.
8294 * features/i386/32bit-avx512.c: Re-generated.
8295 * features/i386/32bit-core.c: Re-generated.
8296 * features/i386/32bit-linux.c: Re-generated.
8297 * features/i386/32bit-mpx.c: Re-generated.
8298 * features/i386/32bit-pkeys.c: Re-generated.
8299 * features/i386/32bit-sse.c: Re-generated.
8300
8301 2017-09-05 Yao Qi <yao.qi@linaro.org>
8302
8303 * regformats/regdef.h (struct reg): Override operator == and !=.
8304
8305 2017-09-05 Yao Qi <yao.qi@linaro.org>
8306
8307 * arch/tdesc.h: New file.
8308 * regformats/regdat.sh: Generate code using tdesc_create_reg.
8309 * target-descriptions.c: Update comments.
8310 * target-descriptions.h: Include "arch/tdesc.h". Remove the
8311 declarations.
8312 * features/i386/32bit-avx.c: Re-generated.
8313 * features/i386/32bit-avx512.c: Re-generated.
8314 * features/i386/32bit-core.c: Re-generated.
8315 * features/i386/32bit-linux.c: Re-generated.
8316 * features/i386/32bit-mpx.c: Re-generated.
8317 * features/i386/32bit-pkeys.c: Re-generated.
8318 * features/i386/32bit-sse.c: Re-generated.
8319
8320 2017-09-05 Yao Qi <yao.qi@linaro.org>
8321
8322 * regformats/regdat.sh: Update generated code.
8323
8324 2017-09-05 Yao Qi <yao.qi@linaro.org>
8325
8326 * regformats/regdat.sh: Adjust code order.
8327
8328 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
8329
8330 * expprint.c (dump_subexp_body_standard): Use constant format
8331 string in fprintf_filtered call.
8332
8333 2017-09-04 John Baldwin <jhb@FreeBSD.org>
8334
8335 * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and
8336 NetBSD/i386.
8337 * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX.
8338
8339 2017-09-04 John Baldwin <jhb@FreeBSD.org>
8340
8341 * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H.
8342
8343 2017-09-04 John Baldwin <jhb@FreeBSD.org>
8344
8345 * bsd-kvm.o: Define _KMEMUSER.
8346 * configure.ac: Define _KMEMUSER when checking for "struct lwp".
8347 * configure: Regenerate.
8348
8349 2017-09-04 John Baldwin <jhb@FreeBSD.org>
8350
8351 * amd64-fbsd-nat.c: Add include of "x86-xstate.h".
8352 * i386-fbsd-nat.c: Likewise.
8353
8354 2017-09-04 John Baldwin <jhb@FreeBSD.org>
8355
8356 * unittests/array-view-selftests.c: Add include of <array>.
8357
8358 2017-09-04 John Baldwin <jhb@FreeBSD.org>
8359
8360 * spu-tdep.c (flush_ea_cache): Add missing argument to
8361 call_function_by_hand.
8362
8363 2017-09-04 Pedro Alves <palves@redhat.com>
8364
8365 * NEWS (Safer support for debugging with no debug info): New.
8366
8367 2017-09-04 Pedro Alves <palves@redhat.com>
8368
8369 * c-exp.y (function_method, function_method_void): Add current
8370 instance flags to TYPE_INSTANCE.
8371 * dwarf2read.c (check_modifier): New.
8372 (compute_delayed_physnames): Assert that only C++ adds delayed
8373 physnames. Mark fn_fields as const/volatile depending on
8374 physname.
8375 * eval.c (make_params): New type_instance_flags parameter. Use
8376 it as the new type's instance flags.
8377 (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance
8378 flags element and pass it to make_params.
8379 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle
8380 instance flags element.
8381 (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise.
8382 * gdbtypes.h: Include "enum-flags.h".
8383 (type_instance_flags): New enum-flags type.
8384 (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC)
8385 (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean.
8386 * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust.
8387 (follow_type_instance_flags): New function.
8388 (operator_check_standard) <TYPE_INSTANCE>: Adjust.
8389 * parser-defs.h (follow_type_instance_flags): Declare.
8390 * valops.c (value_struct_elt_for_reference): const/volatile must
8391 match too.
8392
8393 2017-09-04 Pedro Alves <palves@redhat.com>
8394
8395 * cp-namespace.c (cp_search_static_and_baseclasses): Handle
8396 function/method scopes; lookup the nested name as a function local
8397 static variable.
8398
8399 2017-09-04 Pedro Alves <palves@redhat.com>
8400
8401 (%type <voidval>): Add function_method.
8402 * c-exp.y (exp): New production for calls with no arguments.
8403 (function_method, function_method_void_or_typelist): New
8404 productions.
8405 (exp): New production for "method()::static_var".
8406 * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR.
8407 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
8408 Handle OP_FUNC_STATIC_VAR.
8409 * parse.c (operator_length_standard):
8410 Handle OP_FUNC_STATIC_VAR.
8411
8412 2017-09-04 Pedro Alves <palves@redhat.com>
8413
8414 * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS
8415 handling.
8416 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
8417 Ditto.
8418 * parse.c (operator_length_standard, operator_check_standard):
8419 Ditto.
8420 * std-operator.def (UNOP_MEMVAL_TLS): Delete.
8421
8422 2017-09-04 Pedro Alves <palves@redhat.com>
8423
8424 * ax-gdb.c: Include "typeprint.h".
8425 (gen_expr_for_cast): New function.
8426 (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it.
8427 <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's
8428 type is unknown.
8429 * dwarf2read.c (new_symbol_full): Fallback to int instead of
8430 nodebug_data_symbol.
8431 * eval.c: Include "typeprint.h".
8432 (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>:
8433 Error out if symbol has unknown type.
8434 <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to
8435 evaluate_subexp_for_cast.
8436 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle
8437 OP_VAR_MSYM_VALUE.
8438 (evaluate_subexp_for_cast): New function.
8439 * gdbtypes.c (init_nodebug_var_type): New function.
8440 (objfile_type): Use it to initialize types of variables with no
8441 debug info.
8442 * typeprint.c (error_unknown_type): New.
8443 * typeprint.h (error_unknown_type): New declaration.
8444 * compile/compile-c-types.c (convert_type_basic): Handle
8445 TYPE_CODE_ERROR; warn and fallback to int for variables with
8446 unknown type.
8447
8448 2017-09-04 Pedro Alves <palves@redhat.com>
8449
8450 * eval.c (evaluate_var_value): New function, factored out from ...
8451 (evaluate_subexp_standard): ... here.
8452
8453 2017-09-04 Pedro Alves <palves@redhat.com>
8454
8455 * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>:
8456 Remove useless assignments to 'op'.
8457
8458 2017-09-04 Pedro Alves <palves@redhat.com>
8459
8460 * eval.c (eval_skip_value): New function.
8461 (evaluate_subexp_standard): Use it.
8462
8463 2017-09-04 Pedro Alves <palves@redhat.com>
8464
8465 * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract
8466 function name from symbol/minsym and pass it to
8467 error_call_unknown_return_type.
8468
8469 2017-09-04 Pedro Alves <palves@redhat.com>
8470
8471 * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE.
8472 * ax-gdb.c (gen_msym_var_ref): New function.
8473 (gen_expr): Handle OP_VAR_MSYM_VALUE.
8474 * eval.c (evaluate_var_msym_value): New function.
8475 * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE.
8476 <OP_FUNCALL>: Extract function name from symbol/minsym and pass it
8477 to call_function_by_hand.
8478 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
8479 Handle OP_VAR_MSYM_VALUE.
8480 (union exp_element) <msymbol>: New field.
8481 * minsyms.h (struct type): Forward declare.
8482 (find_minsym_type_and_address): Declare.
8483 * parse.c (write_exp_elt_msym): New function.
8484 (write_exp_msymbol): Delete, refactored as ...
8485 (find_minsym_type_and_address): ... this new function.
8486 (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE.
8487 (operator_length_standard, operator_check_standard): Handle
8488 OP_VAR_MSYM_VALUE.
8489 * std-operator.def (OP_VAR_MSYM_VALUE): New.
8490
8491 2017-09-04 Pedro Alves <palves@redhat.com>
8492
8493 * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle
8494 TYPE_GNU_IFUNC specially here. Throw error if return type is
8495 unknown.
8496 * ada-typeprint.c (print_func_type): Handle functions with unknown
8497 return type.
8498 * c-typeprint.c (c_type_print_base): Handle functions and methods
8499 with unknown return type.
8500 * compile/compile-c-symbols.c (convert_symbol_bmsym)
8501 <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol.
8502 * compile/compile-c-types.c: Include "objfiles.h".
8503 (convert_func): For functions with unknown return type, warn and
8504 default to int.
8505 * compile/compile-object-run.c (compile_object_run): Adjust call
8506 to call_function_by_hand_dummy.
8507 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to
8508 call_function_by_hand.
8509 * eval.c (evaluate_subexp_standard): Adjust calls to
8510 call_function_by_hand. Handle functions and methods with unknown
8511 return type. Pass expect_type to call_function_by_hand.
8512 * f-typeprint.c (f_type_print_base): Handle functions with unknown
8513 return type.
8514 * gcore.c (call_target_sbrk): Adjust call to
8515 call_function_by_hand.
8516 * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL
8517 return type instead of int. Make nodebug_text_gnu_ifunc_symbol be
8518 an integer address type instead of nodebug.
8519 * guile/scm-value.c (gdbscm_value_call): Adjust call to
8520 call_function_by_hand.
8521 * infcall.c (error_call_unknown_return_type): New function.
8522 (call_function_by_hand): New "default_return_type" parameter.
8523 Pass it down.
8524 (call_function_by_hand_dummy): New "default_return_type"
8525 parameter. Use it instead of defaulting to int. If there's no
8526 default and the return type is unknown, throw an error. If
8527 there's a default return type, and the called function has no
8528 debug info, then assume the function is prototyped.
8529 * infcall.h (call_function_by_hand, call_function_by_hand_dummy):
8530 New "default_return_type" parameter.
8531 (error_call_unknown_return_type): New declaration.
8532 * linux-fork.c (call_lseek): Cast return type of lseek.
8533 (inferior_call_waitpid, checkpoint_command): Adjust calls to
8534 call_function_by_hand.
8535 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust
8536 calls to call_function_by_hand.
8537 * m2-typeprint.c (m2_procedure): Handle functions with unknown
8538 return type.
8539 * objc-lang.c (lookup_objc_class, lookup_child_selector)
8540 (value_nsstring, print_object_command): Adjust calls to
8541 call_function_by_hand.
8542 * p-typeprint.c (pascal_type_print_varspec_prefix): Handle
8543 functions with unknown return type.
8544 (pascal_type_print_func_varspec_suffix): New function.
8545 (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC,
8546 TYPE_CODE_METHOD>: Use it.
8547 * python/py-value.c (valpy_call): Adjust call to
8548 call_function_by_hand.
8549 * rust-lang.c (rust_evaluate_funcall): Adjust call to
8550 call_function_by_hand.
8551 * valarith.c (value_x_binop, value_x_unop): Adjust calls to
8552 call_function_by_hand.
8553 * valops.c (value_allocate_space_in_inferior): Adjust call to
8554 call_function_by_hand.
8555 * typeprint.c (type_print_unknown_return_type): New function.
8556 * typeprint.h (type_print_unknown_return_type): New declaration.
8557
8558 2017-09-04 Pedro Alves <palves@redhat.com>
8559
8560 * gdbtypes.c (lookup_function_type_with_arguments): Mark function
8561 types with more than one parameter as prototyped.
8562
8563 2017-09-04 Pedro Alves <palves@redhat.com>
8564
8565 * cli/cli-cmds.c (print_disassembly, disassemble_current_function)
8566 (disassemble_command): Use gdb_disassembly_flags instead of bare
8567 int.
8568 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn)
8569 (dump_insns, do_mixed_source_and_assembly_deprecated)
8570 (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly):
8571 Use gdb_disassembly_flags instead of bare int.
8572 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN)
8573 (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME)
8574 (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE)
8575 (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're...
8576 (enum gdb_disassembly_flag): ... values of this new enumeration.
8577 (gdb_disassembly_flags): Define.
8578 (gdb_disassembly)
8579 (gdb_pretty_print_disassembler::pretty_print_insn): Use it.
8580 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use
8581 gdb_disassembly_flags instead of bare int.
8582 * record-btrace.c (btrace_insn_history)
8583 (record_btrace_insn_history, record_btrace_insn_history_range)
8584 (record_btrace_insn_history_from): Use gdb_disassembly_flags
8585 instead of bare int.
8586 * record.c (get_insn_history_modifiers, cmd_record_insn_history):
8587 Use gdb_disassembly_flags instead of bare int.
8588 * target-debug.h (target_debug_print_gdb_disassembly_flags):
8589 Define.
8590 * target-delegates.c: Regenerate.
8591 * target.c (target_insn_history, target_insn_history_from)
8592 (target_insn_history_range): Use gdb_disassembly_flags instead of
8593 bare int.
8594 * target.h: Include "disasm.h".
8595 (struct target_ops) <to_insn_history, to_insn_history_from,
8596 to_insn_history_range>: Use gdb_disassembly_flags instead of bare
8597 int.
8598 (target_insn_history, target_insn_history_from)
8599 (target_insn_history_range): Use gdb_disassembly_flags instead of
8600 bare int.
8601
8602 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
8603
8604 * cli/cli-script.c (build_command_line): For if/while commands,
8605 check whether args is empty.
8606
8607 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
8608
8609 * cli/cli-script.h (enum misc_command_type): Move from defs.h.
8610 (enum command_control_type): Likewise.
8611 (struct command_line): Likewise.
8612 (free_command_lines): Likewise.
8613 (struct command_lines_deleter): Likewise.
8614 (command_line_up): Likewise.
8615 (read_command_lines): Likewise.
8616 (read_command_lines_1): Likewise.
8617 * defs.h (enum misc_command_type): Move to cli/cli-script.h.
8618 (enum command_control_type): Likewise.
8619 (struct command_line): Likewise.
8620 (free_command_lines): Likewise.
8621 (struct command_lines_deleter): Likewise.
8622 (command_line_up): Likewise.
8623 (read_command_lines): Likewise.
8624 (read_command_lines_1): Likewise.
8625 * breakpoint.h: Include cli/cli-script.h.
8626 * extension-priv.h: Likewise.
8627 * gdbcmd.h: Likewise.
8628
8629 2017-09-04 Pedro Alves <palves@redhat.com>
8630
8631 * ada-lang.c (is_known_support_routine): Move sal declaration to
8632 where it is initialized.
8633 * breakpoint.c (create_internal_breakpoint, init_catchpoint)
8634 (parse_breakpoint_sals, decode_static_tracepoint_spec)
8635 (clear_command, update_static_tracepoint): Remove init_sal
8636 references. Move declarations closer to initializations.
8637 * cli/cli-cmds.c (list_command): Move sal declarations closer to
8638 initializations.
8639 * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal
8640 references. Move sal declarations closer to initializations.
8641 * frame.c (find_frame_sal): Return a symtab_and_line via function
8642 return instead of output parameter. Remove init_sal references.
8643 * frame.h (find_frame_sal): Return a symtab_and_line via function
8644 return instead of output parameter.
8645 * guile/scm-frame.c (gdbscm_frame_sal): Adjust.
8646 * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new
8647 instead of memset.
8648 (gdbscm_find_pc_line): Remove init_sal reference.
8649 * infcall.c (call_function_by_hand_dummy): Remove init_sal
8650 references. Move declarations closer to initializations.
8651 * infcmd.c (set_step_frame): Update. Move declarations closer to
8652 initializations.
8653 (finish_backward): Remove init_sal references. Move declarations
8654 closer to initializations.
8655 * infrun.c (process_event_stop_test, handle_step_into_function)
8656 (insert_hp_step_resume_breakpoint_at_frame)
8657 (insert_step_resume_breakpoint_at_caller): Likewise.
8658 * linespec.c (create_sals_line_offset, decode_digits_ordinary)
8659 (symbol_to_sal): Likewise.
8660 * probe.c (parse_probes_in_pspace): Remove init_sal reference.
8661 * python/py-frame.c (frapy_find_sal): Move sal declaration closer
8662 to its initialization.
8663 * reverse.c (save_bookmark_command): Use new/delete. Remove
8664 init_sal references. Move declarations closer to initializations.
8665 * source.c (get_current_source_symtab_and_line): Remove brace
8666 initialization.
8667 (set_current_source_symtab_and_line): Now takes the sal by const
8668 reference. Remove brace initialization.
8669 (line_info): Remove init_sal reference.
8670 * source.h (set_current_source_symtab_and_line): Now takes a
8671 symtab_and_line via const reference.
8672 * stack.c (set_current_sal_from_frame): Adjust.
8673 (print_frame_info): Adjust.
8674 (get_last_displayed_sal): Return the sal via function return
8675 instead of via output parameter. Simplify.
8676 (frame_info): Adjust.
8677 * stack.h (get_last_displayed_sal): Return the sal via function
8678 return instead of via output parameter.
8679 * symtab.c (init_sal): Delete.
8680 (find_pc_sect_line): Remove init_sal references. Move
8681 declarations closer to initializations.
8682 (find_function_start_sal): Remove init_sal references. Move
8683 declarations closer to initializations.
8684 * symtab.h (struct symtab_and_line): In-class initialize all
8685 fields.
8686 * tracepoint.c (set_traceframe_context)
8687 (print_one_static_tracepoint_marker): Remove init_sal references.
8688 Move declarations closer to initializations.
8689 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust.
8690 * tui/tui-stack.c (tui_show_frame_info): Adjust. Move
8691 declarations closer to initializations.
8692 * tui/tui-winsource.c (tui_update_source_window_as_is): Remove
8693 init_sal references. Adjust.
8694
8695 2017-09-04 Pedro Alves <palves@redhat.com>
8696
8697 * ax-gdb.c (agent_command_1): Use range-for.
8698 * break-catch-throw.c (re_set_exception_catchpoint): Update.
8699 * breakpoint.c: Include "common/array-view.h".
8700 (init_breakpoint_sal, create_breakpoint_sal): Change sals
8701 parameter from struct symtabs_and_lines to
8702 array_view<symtab_and_line>. Adjust. Use range-for. Update.
8703 (breakpoint_sals_to_pc): Change sals parameter from struct
8704 symtabs_and_lines to std::vector reference.
8705 (check_fast_tracepoint_sals): Change sals parameter from struct
8706 symtabs_and_lines to std::array_view. Use range-for.
8707 (decode_static_tracepoint_spec): Return a std::vector instead of
8708 symtabs_and_lines. Update.
8709 (create_breakpoint): Update.
8710 (break_range_command, until_break_command, clear_command): Update.
8711 (base_breakpoint_decode_location, bkpt_decode_location)
8712 (bkpt_probe_create_sals_from_location)
8713 (bkpt_probe_decode_location, tracepoint_decode_location)
8714 (tracepoint_probe_decode_location)
8715 (strace_marker_create_sals_from_location): Return a std::vector
8716 instead of symtabs_and_lines.
8717 (strace_marker_create_breakpoints_sal): Update.
8718 (strace_marker_decode_location): Return a std::vector instead of
8719 symtabs_and_lines. Update.
8720 (update_breakpoint_locations): Change struct symtabs_and_lines
8721 parameters to gdb::array_view. Adjust.
8722 (location_to_sals): Return a std::vector instead of
8723 symtabs_and_lines. Update.
8724 (breakpoint_re_set_default): Use std::vector instead of struct
8725 symtabs_and_lines.
8726 (decode_location_default): Return a std::vector instead of
8727 symtabs_and_lines. Update.
8728 * breakpoint.h: Include "common/array-view.h".
8729 (struct breakpoint_ops) <decode_location>: Now returns a
8730 std::vector instead of returning a symtabs_and_lines via output
8731 parameter.
8732 (update_breakpoint_locations): Change sals parameters to use
8733 gdb::array_view.
8734 * cli/cli-cmds.c (edit_command, list_command): Update to use
8735 std::vector and gdb::array_view.
8736 (ambiguous_line_spec): Adjust to use gdb::array_view and
8737 range-for.
8738 (compare_symtabs): Rename to ...
8739 (cmp_symtabs): ... this. Change parameters to symtab_and_line
8740 const reference and adjust.
8741 (filter_sals): Rewrite using std::vector and standard algorithms.
8742 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify.
8743 (jump_command): Update to use std::vector.
8744 * linespec.c (struct linespec_state) <canonical_names>: Update
8745 comment.
8746 (add_sal_to_sals_basic): Delete.
8747 (add_sal_to_sals, filter_results, convert_results_to_lsals)
8748 (decode_line_2, create_sals_line_offset)
8749 (convert_address_location_to_sals, convert_linespec_to_sals)
8750 (convert_explicit_location_to_sals, parse_linespec)
8751 (event_location_to_sals, decode_line_full, decode_line_1)
8752 (decode_line_with_current_source)
8753 (decode_line_with_last_displayed, decode_objc)
8754 (decode_digits_list_mode, decode_digits_ordinary, minsym_found)
8755 (linespec_result::~linespec_result): Adjust to use std::vector
8756 instead of symtabs_and_lines.
8757 * linespec.h (linespec_sals::sals): Now a std::vector.
8758 (struct linespec_result): Use std::vector, bool, and in-class
8759 initialization.
8760 (decode_line_1, decode_line_with_current_source)
8761 (decode_line_with_last_displayed): Return std::vector.
8762 * macrocmd.c (info_macros_command): Use std::vector.
8763 * mi/mi-main.c (mi_cmd_trace_find): Use std::vector.
8764 * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use
8765 std::vector.
8766 * probe.h (parse_probes): Return a std::vector.
8767 * python/python.c (gdbpy_decode_line): Use std::vector and
8768 gdb::array_view.
8769 * source.c (select_source_symtab, line_info): Use std::vector.
8770 * stack.c (func_command): Use std::vector.
8771 * symtab.h (struct symtabs_and_lines): Delete.
8772 * tracepoint.c (tfind_line_command, scope_info): Use std::vector.
8773
8774 2017-09-04 Pedro Alves <palves@redhat.com>
8775
8776 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8777 unittests/array-view-selftests.c.
8778 (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o.
8779 * common/array-view.h: New file.
8780 * unittests/array-view-selftests.c: New file.
8781
8782 2017-09-04 Pedro Alves <palves@redhat.com>
8783
8784 * cli/cli-cmds.c (edit_command): Pass message to
8785 ambiguous_line_spec.
8786 (list_command): Pass message to ambiguous_line_spec. Say
8787 "first"/"last" instead of "start" and "end" to be consistent with
8788 the manual.
8789 (ambiguous_line_spec): Add 'format' and vararg parameters. Use
8790 them to print formatted message.
8791
8792 2017-09-04 Pedro Alves <palves@redhat.com>
8793
8794 * btrace.c (ftrace_add_pt): Pass btrace_insn to
8795 ftrace_update_insns by reference instead of pointer.
8796
8797 2017-09-04 Yao Qi <yao.qi@linaro.org>
8798
8799 * i386-go32-tdep.c: Include x86-xstate.h.
8800 (i386_go32_init_abi): Call i386_target_description.
8801 * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx
8802 if xcr0 is X86_XSTATE_X87_MASK.
8803 * i386-tdep.h (tdesc_i386): Remove the declaration.
8804 (tdesc_i386_mmx): Likewise.
8805
8806 2017-09-04 Yao Qi <yao.qi@linaro.org>
8807
8808 * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return
8809 X86_XSTATE_SSE_MASK instead of 0.
8810
8811 2017-09-04 Yao Qi <yao.qi@linaro.org>
8812
8813 * amd64-fbsd-nat.c (amd64fbsd_read_description): Call
8814 i386_target_description.
8815 * i386-fbsd-nat.c (i386fbsd_read_description): Call
8816 i386_target_description.
8817 * i386-tdep.c (i386_gdbarch_init): Likewise.
8818
8819 2017-09-04 Yao Qi <yao.qi@linaro.org>
8820
8821 * amd64-darwin-tdep.c: Include "x86-xstate.h".
8822 (x86_darwin_init_abi_64): Call amd64_target_description.
8823 * amd64-dicos-tdep.c: Likewise.
8824 * amd64-fbsd-nat.c: Likewise.
8825 * amd64-fbsd-tdep.c: Likewise.
8826 * amd64-nbsd-tdep.c: Likewise.
8827 * amd64-obsd-tdep.c: Likewise.
8828 * amd64-sol2-tdep.c: Likewise.
8829 * amd64-windows-tdep.c: Likewise.
8830 * amd64-tdep.h (tdesc_amd64): Remove the declaration.
8831
8832 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
8833
8834 * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove.
8835 (btrace_function) <insn>: Change type to use std::vector.
8836 * btrace.c (ftrace_debug, ftrace_call_num_insn,
8837 ftrace_find_call, ftrace_new_gap, ftrace_update_function,
8838 ftrace_update_insns, ftrace_compute_global_level_offset,
8839 btrace_stitch_bts, btrace_clear, btrace_insn_get,
8840 btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to
8841 change to std::vector.
8842 (ftrace_update_insns): Adjust to change to std::vector, change
8843 type of INSN parameter.
8844 (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns.
8845 * record-btrace.c (btrace_call_history_insn_range,
8846 btrace_compute_src_line_range,
8847 record_btrace_frame_prev_register): Adjust to change to
8848 std::vector.
8849 * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust
8850 to change to std::vector.
8851
8852 2017-09-03 Tom Tromey <tom@tromey.com>
8853
8854 * corefile.c (reopen_exec_file): Use std::string.
8855
8856 2017-09-03 Tom Tromey <tom@tromey.com>
8857
8858 * compile/compile.c (compile_register_name_mangled): Return
8859 std::string.
8860 * compile/compile-loc2c.c (pushf_register_address): Update.
8861 (pushf_register): Update.
8862 * compile/compile-c-types.c (convert_array): Update.
8863 * compile/compile-c-symbols.c (generate_vla_size): Update.
8864 (error_symbol_once): Use a gdb::unique_xmalloc_ptr.
8865 (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr.
8866 (convert_one_symbol): Update.
8867 (generate_c_for_for_one_variable): Update.
8868 * compile/compile-c-support.c (c_get_range_decl_name): Return a
8869 std::string.
8870 (generate_register_struct): Update.
8871 * compile/compile-internal.h (c_get_range_decl_name): Return a
8872 std::string.
8873 (compile_register_name_mangled): Return std::string.
8874
8875 2017-09-03 Tom Tromey <tom@tromey.com>
8876
8877 * utils.c (perror_string): Return a std::string.
8878 (throw_perror_with_name, perror_warning_with_name): Update.
8879
8880 2017-09-03 Tom Tromey <tom@tromey.com>
8881
8882 * demangle.c (demangle_command): Use std::string,
8883 unique_xmalloc_ptr.
8884
8885 2017-09-03 Tom Tromey <tom@tromey.com>
8886
8887 * cli/cli-setshow.c (do_set_command): Use std::string.
8888
8889 2017-09-03 Tom Tromey <tom@tromey.com>
8890
8891 * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr.
8892
8893 2017-09-03 Tom Tromey <tom@tromey.com>
8894
8895 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string.
8896
8897 2017-09-03 Tom Tromey <tom@tromey.com>
8898
8899 * mi/mi-cmd-env.c (env_execute_cli_command): Use
8900 gdb::unique_xmalloc_ptr.
8901
8902 2017-09-03 Tom Tromey <tom@tromey.com>
8903
8904 * thread.c (print_thread_info_1): Use string_printf.
8905 (thread_apply_command, thread_apply_all_command): Use
8906 std::string.
8907
8908 2017-09-03 Tom Tromey <tom@tromey.com>
8909
8910 * valprint.c (val_print_string): Update.
8911 * gdbcore.h (memory_error_message): Return std::string.
8912 * corefile.c (memory_error_message): Return std::string.
8913 (memory_error): Update.
8914 * breakpoint.c (insert_bp_location): Update.
8915
8916 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
8917
8918 * target/waitstatus.h (target_waitstatus_to_string): Change
8919 return type to std::string.
8920 * target/waitstatus.c (target_waitstatus_to_string): Return
8921 std::string.
8922 * target.h (target_waitstatus_to_string): Remove declaration.
8923 * infrun.c (resume, clear_proceed_status_thread,
8924 print_target_wait_results, do_target_wait, save_waitstatus,
8925 stop_all_threads): Adjust.
8926 * record-btrace.c (record_btrace_wait): Adjust.
8927 * target-debug.h
8928 (target_debug_print_struct_target_waitstatus_p): Adjust.
8929
8930 2017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8931
8932 PR gdb/22046
8933 * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED
8934 detection.
8935
8936 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
8937
8938 * NEWS (Changes since GDB 8.0): Add entry mentioning new support
8939 for setting/unsetting environment variables on the remote target.
8940 (New remote packets): Add entries for QEnvironmentHexEncoded,
8941 QEnvironmentUnset and QEnvironmentReset.
8942 * common/environ.c (gdb_environ::operator=): Extend method to
8943 handle m_user_set_env_list and m_user_unset_env_list.
8944 (gdb_environ::clear): Likewise.
8945 (match_var_in_string): Change type of first parameter from 'char
8946 *' to 'const char *'.
8947 (gdb_environ::set): Extend method to handle
8948 m_user_set_env_list and m_user_unset_env_list.
8949 (gdb_environ::unset): Likewise.
8950 (gdb_environ::clear_user_set_env): New method.
8951 (gdb_environ::user_set_envp): Likewise.
8952 (gdb_environ::user_unset_envp): Likewise.
8953 * common/environ.h (gdb_environ): Handle m_user_set_env_list and
8954 m_user_unset_env_list on move constructor/assignment.
8955 (unset): Add new default parameter 'update_unset_list = true'.
8956 (clear_user_set_env): New method.
8957 (user_set_envp): Likewise.
8958 (user_unset_envp): Likewise.
8959 (m_user_set_env_list): New std::set.
8960 (m_user_unset_env_list): Likewise.
8961 * common/rsp-low.c (hex2str): New function.
8962 (bin2hex): New overload for bin2hex function.
8963 * common/rsp-low.c (hex2str): New prototype.
8964 (str2hex): New overload prototype.
8965 * remote.c: Include "environ.h". Add QEnvironmentHexEncoded,
8966 QEnvironmentUnset and QEnvironmentReset.
8967 (remote_protocol_features): Add QEnvironmentHexEncoded,
8968 QEnvironmentUnset and QEnvironmentReset packets.
8969 (send_environment_packet): New function.
8970 (extended_remote_environment_support): Likewise.
8971 (extended_remote_create_inferior): Call
8972 extended_remote_environment_support.
8973 (_initialize_remote): Add QEnvironmentHexEncoded,
8974 QEnvironmentUnset and QEnvironmentReset packet configs.
8975 * unittests/environ-selftests.c (gdb_selftest_env_var):
8976 New variable.
8977 (test_vector_initialization): New function.
8978 (test_init_from_host_environ): Likewise.
8979 (test_reinit_from_host_environ): Likewise.
8980 (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B):
8981 Likewise.
8982 (test_unset_set_empty_vector): Likewise.
8983 (test_vector_clear): Likewise.
8984 (test_std_move): Likewise.
8985 (test_move_constructor):
8986 (test_self_move): Likewise.
8987 (test_set_unset_reset): Likewise.
8988 (run_tests): Rewrite in terms of the functions above.
8989
8990 2017-08-31 Weimin Pan <weimin.pan@oracle.com>
8991
8992 * sparc64-tdep.c (adi_stat_t): Fix comment formatting.
8993 (adi_available): Use a temp variable of type CORE_ADDR as argument
8994 3 when calling target_auxv_search.
8995 (adi_normalize_address): Use masks and xor operators to calculate
8996 normalized address.
8997 (adi_read_versions, adi_write_versions, adi_print_versions)
8998 (do_examine, do_assign): Use paddress.
8999
9000 2017-08-29 John Baldwin <jhb@FreeBSD.org>
9001
9002 * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR.
9003 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR
9004 out of loop and add supply of FIR.
9005 (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and
9006 add collect of FIR.
9007
9008 2017-08-28 Simon Marchi <simon.marchi@ericsson.com>
9009
9010 PR gdb/21827
9011 * cli/cli-script.c (define_command): Don't convert command name
9012 to lower case.
9013
9014 2017-08-25 Joel Brobecker <brobecker@adacore.com>
9015
9016 * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp".
9017 Update all callers accordingly. Remove all code blocks handling
9018 the case where DISPP is not NULL.
9019
9020 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9021
9022 PR symtab/22003
9023 * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow)
9024 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
9025 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const.
9026
9027 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9028
9029 * dwarf2read.c (build_type_psymtabs_reader): New prototype.
9030 (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES.
9031 (read_comp_units_from_section): New parameter abbrev_section, use
9032 read_and_check_comp_unit_head, allocate signatured_type if needed.
9033 (create_all_comp_units): Update read_comp_units_from_section caller.
9034
9035 2017-08-23 Pedro Alves <palves@redhat.com>
9036
9037 PR remote/21852
9038 * remote.c (add_current_inferior_and_thread): Set inferior_ptid
9039 to null_ptid and switch to thread without reading the registers
9040 after adding the inferior.
9041
9042 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9043
9044 * NEWS (Changes since GDB 8.0): Add set compile-gcc and show
9045 compile-gcc.
9046 * compile/compile.c (compile_gcc, show_compile_gcc): New.
9047 (compile_to_object): Implement compile_gcc.
9048 (_initialize_compile): Install "set compile-gcc". Initialize
9049 compile_gcc.
9050
9051 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9052
9053 * compile/compile.c (compile_to_object): Conditionally call
9054 set_verbose. Conditionally call compile or compile_v0.
9055
9056 2017-08-07 Weimin Pan <weimin.pan@oracle.com>
9057
9058 * sparc64-tdep.h: (adi_normalize_address): New export.
9059 * sparc-nat.h: (open_adi_tag_fd): New export.
9060 * sparc64-linux-nat.c: (open_adi_tag_fd): New function.
9061 * sparc64-linux-tdep.c:
9062 (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines.
9063 (sparc64_linux_handle_segmentation_fault): New function.
9064 (sparc64_linux_init_abi): Register
9065 sparc64_linux_handle_segmentation_fault
9066 * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h.
9067 (sparc64_addr_bits_remove): New function.
9068 (sparc64_init_abi): Register sparc64_addr_bits_remove.
9069 (MAX_PROC_NAME_SIZE): New macro.
9070 (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines.
9071 (sparc64adilist): New variable.
9072 (adi_proc_list): New variable.
9073 (find_adi_info): New function.
9074 (add_adi_info): New function.
9075 (get_adi_info_proc): New function.
9076 (get_adi_info): New function.
9077 (info_adi_command): New function.
9078 (read_maps_entry): New function.
9079 (adi_available): New function.
9080 (adi_normalize_address): New function.
9081 (adi_align_address): New function.
9082 (adi_convert_byte_count): New function.
9083 (adi_tag_fd): New function.
9084 (adi_is_addr_mapped): New function.
9085 (adi_read_versions): New function.
9086 (adi_write_versions): New function.
9087 (adi_print_versions): New function.
9088 (do_examine): New function.
9089 (do_assign): New function.
9090 (adi_examine_command): New function.
9091 (adi_assign_command): New function.
9092 (_initialize_sparc64_adi_tdep): New function.
9093
9094 2017-08-22 Simon Marchi <simon.marchi@ericsson.com>
9095
9096 * breakpoint.c (breakpoints_info): Rename to ...
9097 (info_breakpoints_command): ... this.
9098 (watchpoints_info): Rename to ...
9099 (info_watchpoints_command): ... this.
9100 (tracepoints_info): Rename to ...
9101 (info_tracepoints_command): ... this.
9102 (_initialize_breakpoint): Adjust.
9103 * dcache.c (dcache_info): Rename to ...
9104 (info_display_command): ... this.
9105 (_initialize_dcache): Adjust.
9106 * frame.h (args_info): Rename to ...
9107 (info_args_command): ... this.
9108 (locals_info): Rename to ...
9109 (info_locals_command): ... this.
9110 * infcmd.c (nofp_registers_info): Rename to ...
9111 (info_registers_command): ... this.
9112 (float_info): Rename to ...
9113 (info_float_command): ... this.
9114 (program_info): Rename to ...
9115 (info_program_command): ... this.
9116 (all_registers_info): Rename to ...
9117 (info_all_registers_command): ... this.
9118 (vector_info): Rename to ...
9119 (info_vector_command): ... this.
9120 (float_info): Rename to ...
9121 (info_float_command): ... this.
9122 (_initialize_infcmd): Adjust.
9123 * inferior.h (term_info): Rename to ...
9124 (info_terminal_command): ... this.
9125 * inflow.c (term_info): Rename to ...
9126 (info_terminal_command): ... this.
9127 (_initialize_inflow): Adjust.
9128 * infrun.c (signals_info): Rename to ...
9129 (info_signals_command): ... this.
9130 (_initialize_infrun): Adjust.
9131 * objc-lang.c (classes_info): Rename to ...
9132 (info_classes_command): ... this.
9133 (selectors_info): Rename to ...
9134 (info_selectors_command): ... this.
9135 (_initialize_objc_language): Adjust.
9136 * printcmd.c (sym_info): Rename to ...
9137 (info_symbol_command): ... this.
9138 (address_info): Rename to ...
9139 (info_address_command): ... this.
9140 (display_info): Rename to ...
9141 (info_display_command): ... this.
9142 (_initialize_printcmd): Adjust.
9143 * reverse.c (bookmarks_info): Rename to ...
9144 (info_breakpoints_command): ... this.
9145 (_initialize_reverse): Adjust.
9146 * ser-go32.c (dos_info): Rename to ...
9147 (info_serial_command): ... this.
9148 (_initialize_ser_dos): Adjust.
9149 * skip.c (skip_info): Rename to ...
9150 (info_skip_command): ... this.
9151 (_initialize_step_skip): Adjust.
9152 * source.c (line_info): Rename to ...
9153 (info_line_command): ... this.
9154 (source_info): Rename to ...
9155 (info_source_command)
9156 * stack.c (frame_info): Rename to ...
9157 (info_frame_command): ... this.
9158 (locals_info): Rename to ...
9159 (info_locals_command): ... this.
9160 (args_info): Rename to ...
9161 (info_args_command): ... this.
9162 (_initialize_stack): Adjust.
9163 * symtab.c (sources_info): Rename to ...
9164 (info_sources_command): ... this.
9165 (variables_info): Rename to ...
9166 (info_variables_command): ... this.
9167 (functions_info): Rename to ...
9168 (info_functions_command): ... this.
9169 (types_info): Rename to ...
9170 (info_types_command): ... this.
9171 (_initialize_symtab): Adjust.
9172 * target.c (target_info): Rename to ...
9173 (info_target_command): ... this.
9174 (initialize_targets): Adjust.
9175 * tracepoint.c (tvariables_info): Rename to ...
9176 (info_tvariables_command): ... this.
9177 (scope_info): Rename to ...
9178 (info_scope_command): ... this.
9179 (trace_dump_actions): Adjust.
9180 (_initialize_tracepoint): Adjust.
9181
9182 2017-08-22 Tom Tromey <tom@tromey.com>
9183
9184 * breakpoint.h (install_breakpoint): Update.
9185 * breakpoint.c (add_solib_catchpoint): Update.
9186 (install_breakpoint): Change argument to a std::unique_ptr.
9187 (create_fork_vfork_event_catchpoint): Use std::unique_ptr.
9188 (create_breakpoint_sal, create_breakpoint): Update.
9189 (watch_command_1, catch_exec_command_1)
9190 (strace_marker_create_breakpoints_sal): Use std::unique_ptr.
9191 (add_to_breakpoint_chain): Change argument to a std::unique_ptr.
9192 Return the breakpoint.
9193 (set_raw_breakpoint_without_location, set_raw_breakpoint)
9194 (new_single_step_breakpoint): Update.
9195 * break-catch-throw.c (handle_gnu_v3_exceptions): Use
9196 std::unique_ptr.
9197 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
9198 std::unique_ptr.
9199 * break-catch-sig.c (create_signal_catchpoint): Use
9200 std::unique_ptr.
9201 * ada-lang.c (create_ada_exception_catchpoint): Use
9202 std::unique_ptr.
9203
9204 2017-08-22 Tom Tromey <tom@tromey.com>
9205
9206 * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr.
9207
9208 2017-08-22 Tom Tromey <tom@tromey.com>
9209
9210 * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr.
9211 (lookup_partial_symbol): Update.
9212
9213 2017-08-22 Tom Tromey <tom@tromey.com>
9214
9215 * source.h (rewrite_source_path): Return a unique_xmalloc_ptr.
9216 * source.c (rewrite_source_path): Return a unique_xmalloc_ptr.
9217 (find_and_open_source, symtab_to_fullname): Update.
9218 * psymtab.c (psymtab_to_fullname): Update.
9219
9220 2017-08-22 Tom Tromey <tom@tromey.com>
9221
9222 * exec.c (exec_file_attach): Update.
9223 * linux-thread-db.c (try_thread_db_load): Update.
9224 * guile/scm-safe-call.c (gdbscm_safe_source_script): Update.
9225 * utils.c (gdb_realpath): Change return type.
9226 (gdb_realpath_keepfile): Update.
9227 (gdb_realpath_check_trailer, gdb_realpath_tests): New functions.
9228 (_initialize_utils): Register the new self test.
9229 * source.c (openp): Update.
9230 (find_and_open_source): Update.
9231 * nto-tdep.c (nto_find_and_open_solib): Update.
9232 * main.c (set_gdb_data_directory): Update.
9233 (captured_main_1): Update.
9234 * dwarf2read.c (dwarf2_get_dwz_file): Update
9235 (dw2_map_symbol_filenames): Update.
9236 * auto-load.c (auto_load_safe_path_vec_update): Update.
9237 (filename_is_in_auto_load_safe_path_vec): Change type of
9238 "filename_realp".
9239 (auto_load_objfile_script): Update.
9240 (file_is_auto_load_safe): Update. Use std::string.
9241 * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr.
9242
9243 2017-08-22 Tom Tromey <tom@tromey.com>
9244
9245 * utils.c (gdb_realpath_keepfile): Return a
9246 gdb::unique_xmalloc_ptr.
9247 * exec.c (exec_file_attach): Update.
9248 * utils.h (gdb_realpath_keepfile): Return a
9249 gdb::unique_xmalloc_ptr.
9250
9251 2017-08-22 Tom Tromey <tom@tromey.com>
9252
9253 * compile/compile.c (compile_file_command): Use
9254 gdb::unique_xmalloc_ptr, std::string.
9255 * utils.c (gdb_abspath): Change return type.
9256 * source.c (openp): Update.
9257 * objfiles.c (allocate_objfile): Update.
9258 * main.c (set_gdb_data_directory): Update.
9259 * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr.
9260
9261 2017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com>
9262
9263 * cli-cmds.c (list_commands): List actual code around more than
9264 one location.
9265
9266 2017-08-21 John Baldwin <jhb@FreeBSD.org>
9267
9268 * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'.
9269
9270 2017-08-21 Pedro Alves <palves@redhat.com>
9271
9272 PR gdb/19487
9273 * c-exp.y (variable production): Handle function aliases.
9274 * minsyms.c (msymbol_is_text): New function.
9275 * minsyms.h (msymbol_is_text): Declare.
9276 * symtab.c (find_function_alias_target): New function.
9277 * symtab.h (find_function_alias_target): Declare.
9278
9279 2017-08-21 Pedro Alves <palves@redhat.com>
9280
9281 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past
9282 typedefs.
9283 * typeprint.c (whatis_exp): If handling "whatis", and expression
9284 is OP_TYPE, strip one typedef level. Otherwise don't strip
9285 typedefs here.
9286 * valops.c (value_cast): Save "to" type before resolving
9287 stubs/typedefs. Use that type as resulting value's type.
9288
9289 2017-08-18 Tom Tromey <tom@tromey.com>
9290 Pedro Alves <palves@redhat.com>
9291
9292 * spu-multiarch.c (parse_spufs_run): Use scoped_restore.
9293 * sol-thread.c (sol_thread_resume, sol_thread_wait)
9294 (sol_thread_xfer_partial, rw_common): Use scoped_restore.
9295 * procfs.c (procfs_do_thread_registers): Use scoped_restore.
9296 * proc-service.c (ps_xfer_memory): Use scoped_restore.
9297 * linux-tdep.c (linux_corefile_thread): Remove a cleanup.
9298 (linux_get_siginfo_data): Add "thread" argument. Use
9299 scoped_restore.
9300 * linux-nat.c (linux_child_follow_fork)
9301 (check_stopped_by_watchpoint): Use scoped_restore.
9302 * infrun.c (displaced_step_prepare_throw, write_memory_ptid)
9303 (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore.
9304 (restore_inferior_ptid, save_inferior_ptid): Remove.
9305 * btrace.c (btrace_fetch): Use scoped_restore.
9306 * bsd-uthread.c (bsd_uthread_fetch_registers)
9307 (bsd_uthread_store_registers): Use scoped_restore.
9308 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
9309 scoped_restore.
9310 * aix-thread.c (aix_thread_resume, aix_thread_wait)
9311 (aix_thread_xfer_partial): Use scoped_restore.
9312 * inferior.h (save_inferior_ptid): Remove.
9313
9314 2017-08-18 Yao Qi <yao.qi@linaro.org>
9315
9316 PR tdep/21818
9317 * arm-tdep.c (gdb_print_insn_arm): Mark
9318 USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL.
9319
9320 2017-08-18 Yao Qi <yao.qi@linaro.org>
9321
9322 * NEWS: Mention GDBserver's new option "--selftest".
9323 * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c.
9324 * selftest.c: Move it to common/selftest.c.
9325 * selftest.h: Move it to common/selftest.h.
9326 * selftest-arch.c (reset): New function.
9327 (tests_with_arch): Call reset.
9328
9329 2017-08-18 Yao Qi <yao.qi@linaro.org>
9330
9331 * selftest.c (run_tests): Don't call QUIT. Call debug_printf
9332 instead of exception_fprintf and printf_filtered.
9333
9334 2017-08-18 Yao Qi <yao.qi@linaro.org>
9335
9336 * selftest.c (register_self_test): Rename it to
9337 selftests::register_test.
9338 (run_self_tests): selftest::run_tests.
9339 * selftest.h: Update declarations.
9340 * selftest-arch.c (register_self_test_foreach_arch): Rename it to
9341 selftests::register_test_foreach_arch.
9342 * selftest-arch.h: Update declaration.
9343 * aarch64-tdep.c: Update.
9344 * arm-tdep.c: Likewise.
9345 * disasm-selftests.c: Likewise.
9346 * dwarf2loc.c: Likewise.
9347 * dwarf2-frame.c: Likewise.
9348 * findvar.c: Likewise.
9349 * gdbarch-selftests.c: Likewise.
9350 * maint.c (maintenance_selftest): Likewise.
9351 * regcache.c: Likewise.
9352 * rust-exp.y: Likewise.
9353 * selftest-arch.c: Likewise.
9354 * unittests/environ-selftests.c: Likewise.
9355 * unittests/function-view-selftests.c: Likewise.
9356 * unittests/offset-type-selftests.c: Likewise.
9357 * unittests/optional-selftests.c: Likewise.
9358 * unittests/scoped_restore-selftests.c: Likewise.
9359 * utils-selftests.c: Likewise.
9360
9361 2017-08-17 Pedro Alves <palves@redhat.com>
9362
9363 * cli/cli-cmds.c (source_command): Delete 'old_source_verbose'
9364 local.
9365
9366 2017-08-17 Pedro Alves <palves@redhat.com>
9367
9368 * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New
9369 field.
9370 (reset_die_in_process): Delete, replaced by ...
9371 (process_die_scope): ... this new class. Make it responsible for
9372 freeing cu->line_header too.
9373 (process_die): Use process_die_scope.
9374 (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in
9375 cu->line_header_die_owner. Don't release the line header if it's
9376 owned by the CU.
9377 (setup_type_unit_groups): Make the CU/DIE own the line header.
9378 Don't release the line header here.
9379
9380 2017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change)
9381
9382 * elfread.c (elf_read_minimal_symbols): xfree synthsyms.
9383
9384 2017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com>
9385
9386 * NEWS: Mention new shortcuts for nexti and stepi in TUI
9387 Single-Key mode
9388
9389 2017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com>
9390
9391 * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key
9392 mode command list.
9393
9394 2017-08-15 Stafford Horne <shorne@gmail.com>
9395
9396 * MAINTAINERS (Write After Approval): Add Stafford Horne.
9397
9398 2017-08-15 Stafford Horne <shorne@gmail.com>
9399
9400 * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname.
9401
9402 2017-08-15 Sergio Durigan Junior <sergiodj@redhat.com>
9403
9404 PR gdb/21954
9405 * infcmd.c (unset_environment_command): Use the 'clear' method on
9406 the environment instead of resetting it.
9407
9408 2017-08-15 John Baldwin <jhb@FreeBSD.org>
9409
9410 * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian
9411 platforms.
9412
9413 2017-08-14 Tom Tromey <tom@tromey.com>
9414
9415 * valprint.c (print_octal_chars): Use HOST_CHAR_BIT.
9416 (print_binary_chars): Likewise.
9417 (BITS_IN_BYTES): Remove.
9418
9419 2017-08-14 Tom Tromey <tom@tromey.com>
9420
9421 PR gdb/21675
9422 * valprint.c (LOW_ZERO): Change value to 034.
9423 (print_octal_chars): Add static_asserts for octal constants.
9424 * printcmd.c (print_scalar_formatted): Add 'd' case.
9425
9426 2017-08-11 Tom Tromey <tom@tromey.com>
9427
9428 * symfile.c (add_symbol_file_command): Use std::vector.
9429
9430 2017-08-14 Tom Tromey <tom@tromey.com>
9431
9432 * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move.
9433 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
9434 std::move.
9435 * break-catch-sig.c (create_signal_catchpoint): Use std::move.
9436
9437 2017-08-11 Pedro Alves <palves@redhat.com>
9438
9439 * infrun.c (process_event_stop_test): Adjust
9440 function_name_is_marked_for_skip call.
9441 * skip.c: Include <list>.
9442 (skiplist_entry): Make it a class with private fields, and
9443 getters/setters.
9444 (skiplist_entry_chain): Delete.
9445 (skiplist_entries): New.
9446 (skiplist_entry_count): Delete.
9447 (highest_skiplist_entry_num): New.
9448 (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete.
9449 (add_skiplist_entry): Delete.
9450 (skiplist_entry::skiplist_entry): New.
9451 (skiplist_entry::add_entry): New.
9452 (skip_file_command, skip_function): Adjust.
9453 (compile_skip_regexp): Delete.
9454 (skip_command): Don't compile regexp here. Adjust to use
9455 skiplist_entry::add_entry.
9456 (skip_info): Adjust to use range-for and getters.
9457 (skip_enable_command, skip_disable_command): Adjust to use
9458 range-for and setters.
9459 (skip_delete_command): Adjust to use std::list.
9460 (add_skiplist_entry): Delete.
9461 (skip_file_p): Delete, refactored as ...
9462 (skiplist_entry::do_skip_file_p): ... this new method.
9463 (skip_gfile_p): Delete, refactored as ...
9464 (skiplist_entry::do_gskip_file_p): ... this new method.
9465 (skip_function_p, skip_rfunction_p): Delete, refactored as ...
9466 (skiplist_entry::skip_function_p): ... this new method.
9467 (function_name_is_marked_for_skip): Now returns bool, and takes
9468 the function sal by const reference. Adjust to use range-for and
9469 skiplist_entry methods.
9470 (_initialize_step_skip): Remove references to
9471 skiplist_entry_chain, skiplist_entry_count.
9472 * skip.h (function_name_is_marked_for_skip): Now returns bool, and
9473 takes the function sal by const reference.
9474
9475 2017-08-11 Yao Qi <yao.qi@linaro.org>
9476
9477 * dwarf2-frame.c (clear_pointer_cleanup): Remove.
9478 (dwarf2_frame_cache): Remove reset_cache_cleanup.
9479 (dwarf2_frame_cache):
9480 * frame-unwind.c (frame_unwind_try_unwinder): Catch
9481 RETURN_MASK_ALL and set *this_case to NULL.
9482 * frame-unwind.h: Update comments.
9483
9484 2017-08-11 Yao Qi <yao.qi@linaro.org>
9485
9486 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove.
9487 (dwarf2_frame_state_copy_regs): Remove.
9488 (dwarf2_frame_state_free_regs): Remove.
9489 (dwarf2_frame_state::~dwarf2_frame_state): Remove.
9490 (dwarf2_restore_rule): Call method .alloc_regs instead of
9491 dwarf2_frame_state_alloc_regs.
9492 (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info
9493 constructor. Call std::move.
9494 (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs.
9495 (dwarf2_frame_cache): Likewise.
9496
9497 [GDB_SELF_TEST]: Include selftest.h and
9498 selftest-arch.h.
9499 [GDB_SELF_TEST] (execute_cfa_program_test): New function.
9500 (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register
9501 execute_cfa_program_test.
9502
9503 * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor,
9504 copy ctor, assignment operator, move assignment.
9505 <alloc_regs>: New method.
9506 <swap>: New method.
9507 (struct dwarf2_frame_state): Delete dtor.
9508 (dwarf2_frame_state_alloc_regs): Remove declaration.
9509 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call
9510 dwarf2_frame_state_alloc_regs, use .alloc_regs instead.
9511
9512 2017-08-11 Yao Qi <yao.qi@linaro.org>
9513
9514 * dwarf2-frame.c (dwarf2_frame_state_free): Remove.
9515 (dwarf2_frame_state::dwarf2_frame_state): New.
9516 (dwarf2_frame_state::~dwarf2_frame_state): New.
9517 (dwarf2_fetch_cfa_info): Update.
9518 (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object
9519 rather than a pointer. Update code.
9520 * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and
9521 dtor.
9522 <data_align, code_align, retaddr_column>: Change them to const.
9523 <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them
9524 to bool.
9525
9526 2017-08-11 Yao Qi <yao.qi@linaro.org>
9527
9528 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove.
9529 <loc.exp>: New field.
9530 * dwarf2-frame.c (execute_cfa_program): Update.
9531 (dwarf2_frame_prev_register): Update.
9532
9533 2017-08-10 Pedro Alves <palves@redhat.com>
9534
9535 * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define.
9536
9537 2017-08-09 John Baldwin <jhb@FreeBSD.org>
9538
9539 * fbsd-nat.c (struct fbsd_fork_info): Remove.
9540 (fbsd_pending_children): Use std::list.
9541 (fbsd_remember_child): Likewise.
9542 (fbsd_is_child_pending): Likewise.
9543 (fbsd_pending_vfork_done): Use std::forward_list.
9544 (fbsd_add_vfork_done): Likewise.
9545 (fbsd_is_vfork_done_pending): Likewise.
9546 (fbsd_next_vfork_done): Likewise.
9547
9548 2017-08-09 John Baldwin <jhb@FreeBSD.org>
9549
9550 * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New.
9551 (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr.
9552 [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string
9553 for `mapfilename'.
9554 (fbsd_xfer_partial): Use gdb::byte_vector.
9555 (fbsd_add_threads): Use gdb::unique_xmalloc_ptr.
9556
9557 2017-08-09 John Baldwin <jhb@FreeBSD.org>
9558
9559 * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and
9560 "filestuff.h".
9561 (fbsd_find_memory_regions): Fix `mapfile' initialization.
9562
9563 2017-08-09 Tom Tromey <tom@tromey.com>
9564
9565 * skip.c (skiplist_entry): New constructor.
9566 (skiplist_entry::enabled, skiplist_entry::function_is_regexp)
9567 (skiplist_entry::file_is_glob): Now bool.
9568 (skiplist_entry::file, skiplist_entry::function): Now
9569 std::string.
9570 (make_skip_entry): Return a unique_ptr. Use new.
9571 (free_skiplist_entry, free_skiplist_entry_cleanup)
9572 (make_free_skiplist_entry_cleanup): Remove.
9573 (skip_command, skip_disable_command, add_skiplist_entry)
9574 (skip_form_bytes, compile_skip_regexp, skip_command, skip_info)
9575 (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p)
9576 (function_name_is_marked_for_skip): Update.
9577 (skip_delete_command): Update. Use delete.
9578
9579 2017-08-09 Jiong Wang <jiong.wang@arm.com>
9580
9581 * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h".
9582 (aarch64_linux_core_read_description): New function.
9583 (aarch64_linux_init_abi): Register gdbarch_core_read_description.
9584
9585 2017-08-09 Pedro Alves <palves@redhat.com>
9586
9587 * cp-name-parser.y (cp_comp_to_string): Return a
9588 gdb::unique_xmalloc_ptr<char>.
9589 * cp-support.c (replace_typedefs_qualified_name)
9590 (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>.
9591 (cp_canonicalize_string_full): Use op= instead of explicit
9592 convertion.
9593 (cp_class_name_from_physname, method_name_from_physname)
9594 (cp_func_name, cp_remove_params): Adjust to use
9595 gdb::unique_xmalloc_ptr<char>.
9596 * cp-support.h (cp_comp_to_string): Return a
9597 gdb::unique_xmalloc_ptr<char>.
9598 * python/py-type.c (typy_lookup_type): Adjust to use
9599 gdb::unique_xmalloc_ptr<char>.
9600
9601 2017-08-09 H.J. Lu <hongjiu.lu@intel.com>
9602
9603 * dwarf2read.c (dwarf2_string_attr): Fix a typo.
9604
9605 2017-08-09 Alex Lindsay <alexlindsay239@gmail.com>
9606 Yao Qi <yao.qi@linaro.org>
9607
9608 * cp-support.c (cp_canonicalize_string_full): Use
9609 gdb::unique_xmalloc_ptr<char>.
9610 (cp_canonicalize_string): Likewise.
9611
9612 2017-08-09 Yao Qi <yao.qi@linaro.org>
9613
9614 * features/Makefile (WHICH): Remove i386/ non-linux stuff.
9615 * regformats/i386/amd64-avx-avx512.dat: Remove.
9616 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove.
9617 * regformats/i386/amd64-avx-mpx.dat:Remove.
9618 * regformats/i386/amd64-avx.dat: Remove.
9619 * regformats/i386/amd64-mpx.dat: Remove.
9620 * regformats/i386/i386-avx-avx512.dat: Remove.
9621 * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove.
9622 * regformats/i386/i386-avx-mpx.dat: Remove.
9623 * regformats/i386/i386-mmx.dat: Remove.
9624 * regformats/i386/i386-mpx.dat: Remove.
9625
9626 2017-08-09 Yao Qi <yao.qi@linaro.org>
9627
9628 * amd64-tdep.h (tdesc_x32): Remove the declaration.
9629 * amd64-tdep.c: Don't include features/i386/x32*.c.
9630 (_initialize_amd64_tdep): Don't call initialize_tdesc_x32*
9631 functions.
9632 * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx,
9633 and i386/x32-avx-avx512.
9634 (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml,
9635 and i386/x32.xml.
9636 * features/i386/x32-avx-avx512.c: Removed.
9637 * features/i386/x32-avx-avx512.xml: Removed.
9638 * features/i386/x32-avx.c: Removed.
9639 * features/i386/x32-avx.xml: Removed.
9640 * features/i386/x32.c: Removed.
9641 * features/i386/x32.xml: Removed.
9642 * regformats/i386/x32-avx-avx512.dat: Removed.
9643 * regformats/i386/x32-avx.dat: Removed.
9644 * regformats/i386/x32.dat: Removed.
9645
9646 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
9647
9648 PR breakpoints/21886
9649 * mem-break.c (default_memory_insert_breakpoint): Use
9650 `->placed_address' rather than `->reqstd_address' for the
9651 breakpoint location.
9652
9653 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
9654
9655 * arch-utils.c (default_print_insn): Remove arch/mach/endian
9656 assertions.
9657
9658 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
9659
9660 * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with
9661 a union of `tdep_info', `tdesc_data' and `id'.
9662 * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data'
9663 rather than `info.tdep_info'.
9664 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
9665 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
9666 * i386-tdep.c (i386_gdbarch_init): Likewise.
9667 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
9668 * mips-tdep.c (mips_gdbarch_init): Likewise.
9669 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
9670 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
9671 * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than
9672 `info.tdep_info'.
9673 (ppc_linux_init_abi): Use `info.tdesc_data' rather than
9674 `info.tdep_info'.
9675 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
9676 * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than
9677 `info.tdep_info'.
9678 * spu-tdep.c (spu_gdbarch_init): Likewise.
9679 * gdbarch.h: Regenerate.
9680
9681 2017-08-07 Leszek Swirski <leszeks@google.com>
9682
9683 PR symtab/20899
9684 * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt.
9685
9686 2017-08-07 Simon Marchi <simon.marchi@ericsson.com>
9687
9688 * remote-sim.c (gdbsim_load): Remove char **argv local variable.
9689 (gdbsim_open): Rename gdb_argv args object to argv.
9690
9691 2017-08-05 Tom Tromey <tom@tromey.com>
9692
9693 * compile/compile-object-load.c (compile_object_load): Use
9694 gdb::unique_xmalloc_ptr.
9695 * cli/cli-dump.c (scan_filename): Rename from
9696 scan_filename_with_cleanup. Change return type.
9697 (scan_expression): Rename from scan_expression_with_cleanup.
9698 Change return type.
9699 (dump_memory_to_file, dump_value_to_file, restore_command):
9700 Use gdb::unique_xmalloc_ptr. Update.
9701 * cli/cli-cmds.c (find_and_open_script): Use
9702 gdb::unique_xmalloc_ptr.
9703 * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr.
9704 * symmisc.c (maintenance_print_symbols)
9705 (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr.
9706 * symfile.c (symfile_bfd_open, generic_load)
9707 (add_symbol_file_command, remove_symbol_file_command): Use
9708 gdb::unique_xmalloc_ptr.
9709 * source.c (openp): Use gdb::unique_xmalloc_ptr.
9710 * psymtab.c (maintenance_print_psymbols): Use
9711 gdb::unique_xmalloc_ptr.
9712 * corelow.c (core_open): Use gdb::unique_xmalloc_ptr.
9713 * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr.
9714 * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr.
9715 (reload_shared_libraries_1): Likewise.
9716
9717 2017-08-05 Tom Tromey <tom@tromey.com>
9718
9719 * rust-exp.y (rust_op_ptr, set_field): Remove typedefs.
9720 (rust_op_vector, rust_set_vector): New typedefs.
9721 (current_parser): New global.
9722 (work_obstack): Change to pointer type. Update all users.
9723 (rust_ast, pstate): Remove globals.
9724 (struct rust_parser): New.
9725 (%union) <params, field_inits>: Change type.
9726 (start, tuple_expr, unit_expr, struct_expr_list, literal)
9727 (field_expr, expr_list, maybe_expr_list, type_list): Update.
9728 (ast_call_ish, ast_path, ast_function_type, ast_tuple_type)
9729 (convert_params_to_types, convert_params_to_expression): Change
9730 type of "params".
9731 (ast_string): Change type of "fields".
9732 (rust_parse): Make a rust_parser. Remove cleanups.
9733 (rust_lex_tests): Make and install an auto_obstack.
9734
9735 2017-08-04 Yao Qi <yao.qi@linaro.org>
9736
9737 * configure.srv (ipa_x32_linux_regobj): New.
9738 * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
9739 instead of X86_TDESC_AVX512.
9740 (initialize_low_tracepoint): Call
9741 init_registers_x32_avx_avx512_linux.
9742
9743 2017-08-04 Yao Qi <yao.qi@linaro.org>
9744
9745 * utils.h (gdb_argv): Add namespace std for nullptr_t.
9746
9747 2017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com>
9748
9749 * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev.
9750
9751 2017-08-03 Tom Tromey <tom@tromey.com>
9752
9753 * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv):
9754 Remove.
9755 * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove.
9756
9757 2017-08-03 Tom Tromey <tom@tromey.com>
9758
9759 * python/py-param.c (compute_enum_values): Use gdb_argv.
9760
9761 2017-08-03 Tom Tromey <tom@tromey.com>
9762
9763 * utils.h (struct gdb_argv_deleter): New.
9764 (gdb_argv): New class.
9765 * utils.c (gdb_argv::reset): New method.
9766 * tracepoint.c (delete_trace_variable_command): Use gdb_argv.
9767 * tracefile.c (tsave_command): Use gdb_argv.
9768 * top.c (new_ui_command): Use gdb_argv.
9769 * symmisc.c (maintenance_print_symbols)
9770 (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv.
9771 * symfile.c (symbol_file_command, generic_load)
9772 (remove_symbol_file_command): Use gdb_argv.
9773 * stack.c (backtrace_command): Use gdb_argv.
9774 * source.c (add_path, show_substitute_path_command)
9775 (unset_substitute_path_command, set_substitute_path_command):
9776 Use gdb_argv.
9777 * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv.
9778 * ser-mingw.c (pipe_windows_open): Use gdb_argv.
9779 * remote.c (extended_remote_run, remote_put_command)
9780 (remote_get_command, remote_delete_command): Use gdb_argv.
9781 * remote-sim.c (gdbsim_load, gdbsim_create_inferior)
9782 (gdbsim_open): Use gdb_argv.
9783 * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv.
9784 * psymtab.c (maintenance_print_psymbols): Use gdb_argv.
9785 * procfs.c (procfs_info_proc): Use gdb_argv.
9786 * interps.c (interpreter_exec_cmd): Use gdb_argv.
9787 * infrun.c (handle_command): Use gdb_argv.
9788 * inferior.c (add_inferior_command, clone_inferior_command):
9789 Use gdb_argv.
9790 * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv.
9791 * exec.c (exec_file_command): Use gdb_argv.
9792 * cli/cli-cmds.c (alias_command): Use gdb_argv.
9793 * compile/compile.c (build_argc_argv): Use gdb_argv.
9794
9795 2017-08-03 Tom Tromey <tom@tromey.com>
9796
9797 * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr.
9798
9799 2017-08-03 Tom Tromey <tom@tromey.com>
9800
9801 * python/python.c (compute_python_string): Return std::string.
9802 (gdbpy_eval_from_control_command): Update.
9803 (do_start_initialization): Use std::string.
9804 * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not
9805 xstrprintf.
9806 * python/py-breakpoint.c (local_setattro): Use string_printf, not
9807 xstrprintf.
9808
9809 2017-08-03 Tom Tromey <tom@tromey.com>
9810
9811 * top.h (do_restore_instream_cleanup): Remove.
9812 * top.c (do_restore_instream_cleanup): Remove.
9813 (read_command_file): Use scoped_restore.
9814 * cli/cli-script.c (execute_user_command): Use scoped_restore.
9815
9816 2017-08-03 Tom Tromey <tom@tromey.com>
9817
9818 * cli/cli-script.c (execute_user_command)
9819 (execute_control_command): Use scoped_restore.
9820
9821 2017-08-03 Tom Tromey <tom@tromey.com>
9822
9823 * cli/cli-script.c (do_restore_user_call_depth): Remove.
9824 (execute_user_command): Remove user_call_depth; use
9825 user_args_stack's size instead.
9826
9827 2017-08-03 Tom Tromey <tom@tromey.com>
9828
9829 * top.h (in_user_command): Remove.
9830 * top.c (in_user_command): Remove.
9831 * cli/cli-script.c (do_restore_user_call_depth)
9832 (execute_user_command): Update.
9833
9834 2017-08-03 Tom Tromey <tom@tromey.com>
9835
9836 * valops.c (search_struct_method): Use gdb::byte_vector.
9837 * valarith.c (value_concat): Use std::vector.
9838 * target.c (memory_xfer_partial): Use gdb::byte_vector.
9839 (simple_search_memory): Likewise.
9840 * printcmd.c (find_string_backward): Use gdb::byte_vector.
9841 * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector.
9842 * gcore.c (gcore_copy_callback): Use gdb::byte_vector.
9843 * elfread.c (elf_rel_plt_read): Use std::string.
9844 * cp-valprint.c (cp_print_value): Use gdb::byte_vector.
9845 * cli/cli-dump.c (restore_section_callback): Use
9846 gdb::byte_vector.
9847
9848 2017-08-03 Tom Tromey <tom@tromey.com>
9849
9850 * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr.
9851
9852 2017-08-03 Tom Tromey <tom@tromey.com>
9853
9854 * tui/tui-regs.c (tui_restore_gdbout): Remove.
9855 (tui_register_format): Use scoped_restore.
9856
9857 2017-08-03 Tom Tromey <tom@tromey.com>
9858
9859 * reverse.c (exec_direction_default): Remove.
9860 (exec_reverse_once): Use scoped_restore.
9861 * remote.c (restore_remote_timeout): Remove.
9862 (remote_flash_erase, remote_flash_write, remote_flash_done)
9863 (readchar, remote_serial_write): Use scoped_restore.
9864 * cli/cli-script.c (struct source_cleanup_lines_args)
9865 (source_cleanup_lines): Remove.
9866 (script_from_file): Use scoped_restore.
9867 * cli/cli-cmds.c (source_verbose_cleanup): Remove.
9868 (source_command): Use scoped_restore.
9869
9870 2017-08-03 Tom Tromey <tom@tromey.com>
9871
9872 * utils.h (make_cleanup_free_so): Remove.
9873 * utils.c (do_free_so, make_cleanup_free_so): Remove.
9874 * solist.h (struct so_deleter): New.
9875 (so_list_up): New typedef.
9876 * solib-svr4.c (svr4_read_so_list): Use so_list_up.
9877
9878 2017-08-03 Tom Tromey <tom@tromey.com>
9879
9880 * utils.h (make_cleanup_restore_current_language): Remove.
9881 * utils.c (do_restore_current_language)
9882 (make_cleanup_restore_current_language): Remove.
9883 * parse.c (parse_exp_in_context_1)
9884 (parse_expression_with_language): Use
9885 scoped_restore_current_language.
9886 * mi/mi-main.c (mi_cmd_execute): Use
9887 scoped_restore_current_language.
9888 * language.h (scoped_restore_current_language): New class.
9889
9890 2017-08-03 Tom Tromey <tom@tromey.com>
9891
9892 * compile/compile.c (cleanup_unlink_file): Remove.
9893 (compile_to_object): Use gdb::unlinker.
9894 (eval_compile_command): Likewise.
9895
9896 2017-08-03 Tom Tromey <tom@tromey.com>
9897
9898 * utils.h (make_cleanup_fclose): Remove.
9899 * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove.
9900
9901 2017-08-03 Tom Tromey <tom@tromey.com>
9902
9903 * top.c (open_terminal_stream): Return gdb_file_up.
9904 (new_ui_command): Update.
9905
9906 2017-08-03 Tom Tromey <tom@tromey.com>
9907
9908 * source.c (print_source_lines_base, forward_search_command)
9909 (reverse_search_command): Use gdb_file_up.
9910
9911 2017-08-03 Tom Tromey <tom@tromey.com>
9912
9913 * fbsd-nat.c (fbsd_find_memory_regions): Update.
9914
9915 2017-08-03 Tom Tromey <tom@tromey.com>
9916
9917 * cli/cli-cmds.c (find_and_open_script): Change return type.
9918 Remove "streamp" and "full_path" parameters.
9919 (source_script_with_search): Update.
9920 * auto-load.c (source_script_file): Update.
9921 * cli/cli-cmds.h (find_and_open_script): Change type.
9922 (open_script): New struct.
9923
9924 2017-08-03 Tom Tromey <tom@tromey.com>
9925
9926 * xml-support.c (xml_fetch_content_from_file): Update.
9927 * ui-file.c (stdio_file::open): Update.
9928 * tracefile-tfile.c (tfile_start): Update.
9929 * remote.c (remote_file_put, remote_file_get): Update.
9930 * nat/linux-procfs.c (linux_proc_get_int)
9931 (linux_proc_pid_get_state, linux_proc_tid_get_name): Update.
9932 * nat/linux-osdata.c (linux_common_core_of_thread): Update.
9933 (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus)
9934 (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem)
9935 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update.
9936 * nat/linux-btrace.c (linux_determine_kernel_start): Update.
9937 * linux-nat.c (linux_proc_pending_signals): Update.
9938 * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up.
9939 (file_closer): Remove.
9940 * compile/compile.c (compile_to_object): Update.
9941 * common/filestuff.h (struct gdb_file_deleter): New.
9942 (gdb_file_up): New typedef.
9943 (gdb_fopen_cloexec): Change return type.
9944 * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up.
9945 * cli/cli-dump.c (fopen_with_cleanup): Remove.
9946 (dump_binary_file, restore_binary_file): Update.
9947 * auto-load.c (auto_load_objfile_script_1): Update.
9948
9949 2017-08-03 Tom Tromey <tom@tromey.com>
9950
9951 * tracepoint.c (tvariables_info_1): Use ui_out_emit_table.
9952 (info_static_tracepoint_markers_command): Likewise.
9953 * solib.c (info_sharedlibrary_command): Use ui_out_emit_table.
9954 * skip.c (skip_info): Use ui_out_emit_table.
9955 * progspace.c (print_program_space): Use ui_out_emit_table.
9956 * osdata.c (info_osdata): Use ui_out_emit_table.
9957 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use
9958 ui_out_emit_table.
9959 * linux-thread-db.c (info_auto_load_libthread_db): Use
9960 ui_out_emit_table.
9961 * inferior.c (print_inferior): Use ui_out_emit_table.
9962 * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table.
9963 * breakpoint.c (breakpoint_1): Use ui_out_emit_table.
9964 * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table.
9965 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table.
9966 * ui-out.h (class ui_out_emit_table): New.
9967
9968 2017-08-02 Maciej W. Rozycki <macro@imgtec.com>
9969
9970 * mips-tdep.c (mips_fpu_type_str): New function.
9971 (mips_dump_tdep): Call it.
9972
9973 2017-08-01 Maciej W. Rozycki <macro@imgtec.com>
9974
9975 * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access
9976 `->mips_fpu_type'.
9977
9978 2017-07-31 Xavier Roirand <roirand@adacore.com>
9979
9980 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
9981
9982 2017-07-27 Xavier Roirand <roirand@adacore.com>
9983
9984 * MAINTAINERS (Write After Approval): Add Xavier Roirand.
9985
9986 2017-07-26 Yao Qi <yao.qi@linaro.org>
9987
9988 * cli/cli-cmds.c (maintenancechecklist): New variable.
9989 * gdbcmd.h (maintenancechecklist): Declare it.
9990 * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]:
9991 Call i386_linux_read_description with different masks.
9992 * maint.c (maintenance_check_command): New function.
9993 (_initialize_maint_cmds): Call add_prefix_cmd.
9994 * target-descriptions.c (tdesc_reg): override operator != and ==.
9995 (tdesc_type): Likewise.
9996 (tdesc_feature): Likewise.
9997 (target_desc): Likewise.
9998 [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function.
9999 (maintenance_check_xml_descriptions): New function.
10000 (_initialize_target_descriptions) Add command "xml-descriptions".
10001 * target-descriptions.h (selftests::record_xml_tdesc): Declare.
10002
10003 2017-07-26 Yao Qi <yao.qi@linaro.org>
10004
10005 * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c.
10006 Include features/i386/32bit-*.c.
10007 (i386_linux_read_description): Generate target description if it
10008 doesn't exist.
10009 (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386
10010 functions.
10011 * features/i386/32bit-linux.c: Re-generated.
10012 * features/i386/32bit-sse.c: Likewise.
10013 * target-descriptions.c (print_c_feature::visit): Print code to
10014 set register number if needed.
10015 (print_c_feature) <m_next_regnum>: New field.
10016
10017 2017-07-26 Yao Qi <yao.qi@linaro.org>
10018
10019 * features/Makefile (CFILES): Rename with TDESC_CFILES.
10020 (FEATURE_XMLFILES): New.
10021 (FEATURE_CFILES): New.
10022 New rules.
10023 (clean-cfiles): Remove generated c files.
10024 * features/i386/32bit-avx.c: Generated.
10025 * features/i386/32bit-avx512.c: Generated.
10026 * features/i386/32bit-core.c: Generated.
10027 * features/i386/32bit-linux.c: Generated.
10028 * features/i386/32bit-mpx.c: Generated.
10029 * features/i386/32bit-pkeys.c: Generated.
10030 * features/i386/32bit-sse.c: Generated.
10031 * target-descriptions.c: Include algorithm.
10032 (tdesc_element_visitor): Add method visit_end.
10033 (print_c_tdesc): Implement visit_end.
10034 (print_c_tdesc:: m_filename_after_features): Move it to
10035 protected.
10036 (print_c_feature): New class.
10037 (maint_print_c_tdesc_cmd): Use print_c_feature if XML file
10038 name starts with "i386/32bit-".
10039
10040 2017-07-26 Yao Qi <yao.qi@linaro.org>
10041
10042 * target-descriptions.c (tdesc_element_visitor): New class.
10043 (tdesc_element): New class.
10044 (tdesc_reg): Inherit from tdesc_element.
10045 (tdesc_reg::accept): New function.
10046 (tdesc_type): Inherit from tdesc_element.
10047 (tdesc_type::accept): New function.
10048 (tdesc_feature): Inherit from tdesc_element.
10049 (tdesc_feature::accept): New function.
10050 (target_desc): Inherit from tdesc_element.
10051 (target_desc::target_desc): New.
10052 (target_desc::~target_desc): New.
10053 (target_desc::accept): New.
10054 (allocate_target_description): Use new.
10055 (free_target_description): Use delete.
10056 (print_c_tdesc): New class.
10057 (maint_print_c_tdesc_cmd): Adjust.
10058
10059 * features/aarch64.c: Re-generated.
10060 * features/arc-arcompact.c: Re-generated.
10061 * features/arc-v2.c: Re-generated.
10062 * features/arm/arm-with-iwmmxt.c: Re-generated.
10063 * features/arm/arm-with-m.c: Re-generated.
10064 * features/arm/arm-with-m-fpa-layout.c: Re-generated.
10065 * features/arm/arm-with-m-vfp-d16.c: Re-generated.
10066 * features/arm/arm-with-neon.c: Re-generated.
10067 * features/arm/arm-with-vfpv2.c: Re-generated.
10068 * features/arm/arm-with-vfpv3.c: Re-generated.
10069 * features/i386/amd64-avx-avx512.c: Re-generated.
10070 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
10071 * features/i386/amd64-avx.c: Re-generated.
10072 * features/i386/amd64-avx-linux.c: Re-generated.
10073 * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated.
10074 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
10075 * features/i386/amd64-avx-mpx.c: Re-generated.
10076 * features/i386/amd64-avx-mpx-linux.c: Re-generated.
10077 * features/i386/amd64.c: Re-generated.
10078 * features/i386/amd64-linux.c: Re-generated.
10079 * features/i386/amd64-mpx.c: Re-generated.
10080 * features/i386/amd64-mpx-linux.c: Re-generated.
10081 * features/i386/i386-avx-avx512.c: Re-generated.
10082 * features/i386/i386-avx-avx512-linux.c: Re-generated.
10083 * features/i386/i386-avx.c: Re-generated.
10084 * features/i386/i386-avx-linux.c: Re-generated.
10085 * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated.
10086 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated.
10087 * features/i386/i386-avx-mpx.c: Re-generated.
10088 * features/i386/i386-avx-mpx-linux.c: Re-generated.
10089 * features/i386/i386.c: Re-generated.
10090 * features/i386/i386-linux.c: Re-generated.
10091 * features/i386/i386-mmx.c: Re-generated.
10092 * features/i386/i386-mmx-linux.c: Re-generated.
10093 * features/i386/i386-mpx.c: Re-generated.
10094 * features/i386/i386-mpx-linux.c: Re-generated.
10095 * features/i386/x32-avx-avx512.c: Re-generated.
10096 * features/i386/x32-avx-avx512-linux.c: Re-generated.
10097 * features/i386/x32-avx.c: Re-generated.
10098 * features/i386/x32-avx-linux.c: Re-generated.
10099 * features/i386/x32.c: Re-generated.
10100 * features/i386/x32-linux.c: Re-generated.
10101 * features/microblaze.c: Re-generated.
10102 * features/microblaze-with-stack-protect.c: Re-generated.
10103 * features/mips64-dsp-linux.c: Re-generated.
10104 * features/mips64-linux.c: Re-generated.
10105 * features/mips-dsp-linux.c: Re-generated.
10106 * features/mips-linux.c: Re-generated.
10107 * features/nds32.c: Re-generated.
10108 * features/nios2.c: Re-generated.
10109 * features/nios2-linux.c: Re-generated.
10110 * features/rs6000/powerpc-32.c: Re-generated.
10111 * features/rs6000/powerpc-32l.c: Re-generated.
10112 * features/rs6000/powerpc-403.c: Re-generated.
10113 * features/rs6000/powerpc-403gc.c : Re-generated.
10114 * features/rs6000/powerpc-405.c: Re-generated.
10115 * features/rs6000/powerpc-505.c: Re-generated.
10116 * features/rs6000/powerpc-601.c: Re-generated.
10117 * features/rs6000/powerpc-602.c: Re-generated.
10118 * features/rs6000/powerpc-603.c: Re-generated.
10119 * features/rs6000/powerpc-604.c: Re-generated.
10120 * features/rs6000/powerpc-64.c: Re-generated.
10121 * features/rs6000/powerpc-64l.c: Re-generated.
10122 * features/rs6000/powerpc-7400.c: Re-generated.
10123 * features/rs6000/powerpc-750.c: Re-generated.
10124 * features/rs6000/powerpc-860.c: Re-generated.
10125 * features/rs6000/powerpc-altivec32.c: Re-generated.
10126 * features/rs6000/powerpc-altivec32l.c: Re-generated.
10127 * features/rs6000/powerpc-altivec64.c: Re-generated.
10128 * features/rs6000/powerpc-altivec64l.c: Re-generated.
10129 * features/rs6000/powerpc-cell32l.c: Re-generated.
10130 * features/rs6000/powerpc-cell64l.c: Re-generated.
10131 * features/rs6000/powerpc-e500.c: Re-generated.
10132 * features/rs6000/powerpc-e500l.c: Re-generated.
10133 * features/rs6000/powerpc-isa205-32l.c: Re-generated.
10134 * features/rs6000/powerpc-isa205-64l.c: Re-generated.
10135 * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated.
10136 * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated.
10137 * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated.
10138 * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated.
10139 * features/rs6000/powerpc-vsx32.c: Re-generated.
10140 * features/rs6000/powerpc-vsx32l.c: Re-generated.
10141 * features/rs6000/powerpc-vsx64.c: Re-generated.
10142 * features/rs6000/powerpc-vsx64l.c: Re-generated.
10143 * features/rs6000/rs6000.c: Re-generated.
10144 * features/s390-linux32.c: Re-generated.
10145 * features/s390-linux32v1.c: Re-generated.
10146 * features/s390-linux32v2.c: Re-generated.
10147 * features/s390-linux64.c: Re-generated.
10148 * features/s390-linux64v1.c: Re-generated.
10149 * features/s390-linux64v2.c: Re-generated.
10150 * features/s390-te-linux64.c: Re-generated.
10151 * features/s390-tevx-linux64.c: Re-generated.
10152 * features/s390-vx-linux64.c: Re-generated.
10153 * features/s390x-linux64.c: Re-generated.
10154 * features/s390x-linux64v1.c: Re-generated.
10155 * features/s390x-linux64v2.c: Re-generated.
10156 * features/s390x-te-linux64.c: Re-generated.
10157 * features/s390x-tevx-linux64.c: Re-generated.
10158 * features/s390x-vx-linux64.c: Re-generated.
10159 * features/sparc/sparc32-solaris.c: Re-generated.
10160 * features/sparc/sparc64-solaris.c: Re-generated.
10161 * features/tic6x-c62x.c: Re-generated.
10162 * features/tic6x-c62x-linux.c: Re-generated.
10163 * features/tic6x-c64x.c: Re-generated.
10164 * features/tic6x-c64x-linux.c: Re-generated.
10165 * features/tic6x-c64xp.c: Re-generated.
10166 * features/tic6x-c64xp-linux.c: Re-generated.
10167
10168 2017-07-26 Yao Qi <yao.qi@linaro.org>
10169
10170 * i386-linux-tdep.c (i386_linux_read_description): New function.
10171 (i386_linux_core_read_description): Call
10172 i386_linux_read_description.
10173 * i386-linux-tdep.h (i386_linux_read_description): Declare.
10174 (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations.
10175 (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise
10176 (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise.
10177 (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise.
10178 * x86-linux-nat.c (x86_linux_read_description): Call
10179 i386_linux_read_description.
10180
10181 2017-07-26 Yao Qi <yao.qi@linaro.org>
10182
10183 * NEWS: Mention it.
10184 * features/Makefile (%.c: %.xml): Pass the xml file name to
10185 command "maint print c-tdesc".
10186 * target-descriptions.c (maint_print_c_tdesc_cmd): Get file
10187 name from 'arg'.
10188
10189 2017-07-26 Yao Qi <yao.qi@linaro.org>
10190
10191 * target-descriptions.c (target_desc): Add ctor and dtor. Do
10192 in-class initialization.
10193 (tdesc_create_feature): Call new instead of XCNEW.
10194 (free_target_description): Ue delete.
10195
10196 2017-07-25 John Baldwin <jhb@FreeBSD.org>
10197
10198 * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo.
10199
10200 2017-07-25 Yao Qi <yao.qi@linaro.org>
10201
10202 * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc
10203 constant.
10204 (amd64_x32_init_abi): Likewise.
10205 * amd64-tdep.h (amd64_init_abi): Update declaration.
10206 (amd64_x32_init_abi): Likewise.
10207
10208 2017-07-25 Yao Qi <yao.qi@linaro.org>
10209
10210 PR tdep/21717
10211 * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update
10212 condition for FPSCR.
10213 (arm_linux_store_inferior_registers): Likewise.
10214
10215 2017-07-22 Tom Tromey <tom@tromey.com>
10216
10217 * break-catch-syscall.c (struct catch_syscall_inferior_data)
10218 <syscalls_counts>: Now a std::vector.
10219 (get_catch_syscall_inferior_data): Use "new".
10220 (catch_syscall_inferior_data_cleanup): Use "delete".
10221 (insert_catch_syscall, remove_catch_syscall)
10222 (clear_syscall_counts): Update.
10223
10224 2017-07-22 Tom Tromey <tom@tromey.com>
10225
10226 * break-catch-syscall.c (syscall_catchpoint)
10227 <syscalls_to_be_caught>: Now a std::vector<int>
10228 (~syscall_catchpoint): Remove.
10229 (insert_catch_syscall, remove_catch_syscall)
10230 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
10231 (print_mention_catch_syscall, print_recreate_catch_syscall):
10232 Update.
10233 (create_syscall_event_catchpoint): Change type of "filter"
10234 parameter.
10235 (catch_syscall_split_args): Return a std::vector.
10236 (catch_syscall_command_1, catching_syscall_number_1): Update.
10237
10238 2017-07-22 Tom Tromey <tom@tromey.com>
10239
10240 * break-catch-throw.c (struct exception_catchpoint)
10241 <exception_rx>: Now a std::string.
10242 (~exception_catchpoint): Remove.
10243 (print_one_detail_exception_catchpoint): Update.
10244 (handle_gnu_v3_exceptions): Change type of except_rx.
10245 (extract_exception_regexp): Return a std::string.
10246 (catch_exception_command_1): Update.
10247
10248 2017-07-22 Tom Tromey <tom@tromey.com>
10249
10250 * break-catch-sig.c (gdb_signal_type): Remove typedef.
10251 (struct signal_catchpoint) <signals_to_be_caught>: Now a
10252 std::vector.
10253 <catch_all>: Now a bool.
10254 (~signal_catchpoint): Remove.
10255 (signal_catchpoint_insert_location)
10256 (signal_catchpoint_remove_location)
10257 (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one)
10258 (signal_catchpoint_print_mention)
10259 (signal_catchpoint_print_recreate)
10260 (signal_catchpoint_explains_signal): Update.
10261 (create_signal_catchpoint): Change type of "filter" and
10262 "catch_all".
10263 (catch_signal_split_args): Return a std::vector. Change type of
10264 "catch_all".
10265 (catch_signal_command): Update.
10266
10267 2017-07-20 Pedro Alves <palves@redhat.com>
10268
10269 * ada-lang.c (ada_language_defn): Make extern.
10270 (_initialize_ada_language): Remove add_language call.
10271 * c-lang.c (c_language_defn, cplus_language_defn)
10272 (asm_language_defn, minimal_language_defn): Make extern.
10273 (_initialize_c_language): Delete.
10274 * completer.c (compare_cstrings): Delete, moved to utils.h.
10275 * d-lang.c (d_language_defn): Make extern.
10276 (_initialize_d_language): Remove add_language calls.
10277 * defs.h (enum language): Add comment.
10278 * f-lang.c (f_language_defn): Make extern.
10279 (_initialize_f_language): Remove add_language call.
10280 * go-lang.c (go_language_defn): Make extern.
10281 (_initialize_go_language): Remove add_language call.
10282 * language.c: Include <algorithm>.
10283 (languages): Redefine as const array.
10284 (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete.
10285 (set_language_command): Handle "local". Use for-range loop.
10286 (set_language): Remove loop.
10287 (language_enum): Rewrite.
10288 (language_def, language_str): Remove loops.
10289 (add_language): Delete.
10290 (add_set_language_command): New, based on add_languages.
10291 (skip_language_trampoline): Adjust.
10292 (local_language_defn): Delete.
10293 (language_gdbarch_post_init): Adjust.
10294 (_initialize_language): Remove add_language calls. Call
10295 add_set_language_command.
10296 * language.h (add_language): Delete.
10297 (auto_language_defn)
10298 (unknown_language_defn, minimal_language_defn, ada_language_defn)
10299 (asm_language_defn, c_language_defn, cplus_language_defn)
10300 (d_language_defn, f_language_defn, go_language_defn)
10301 (m2_language_defn, objc_language_defn, opencl_language_defn)
10302 (pascal_language_defn, rust_language_defn): Declare.
10303 * m2-lang.c (m2_language_defn): Make extern.
10304 (_initialize_m2_language): Remove add_language call.
10305 * objc-lang.c (objc_language_defn): Make extern.
10306 (_initialize_objc_language): Remove add_language call.
10307 * opencl-lang.c (opencl_language_defn): Make extern.
10308 (_initialize_opencl_language): Remove add_language call.
10309 * p-lang.c (pascal_language_defn): Make extern.
10310 (_initialize_pascal_language): Delete.
10311 * rust-lang.c (rust_language_defn): Make extern.
10312 (_initialize_rust_language): Delete.
10313 * utils.h (compare_cstrings): New static inline function.
10314
10315 2017-07-20 Pedro Alves <palves@redhat.com>
10316
10317 * ada-lang.c (ada_to_fixed_type_1): Adjust.
10318 (get_var_value): Constify parameters.
10319 (get_int_var_value): Change prototype.
10320 (to_fixed_range_type): Adjust.
10321 * ada-lang.h (get_int_var_value): Change prototype.
10322
10323 2017-07-20 Pedro Alves <palves@redhat.com>
10324
10325 * dwarf2read.c (dw2_lookup_symbol): Use
10326 SYMBOL_MATCHES_SEARCH_NAME.
10327 * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME.
10328
10329 2017-07-20 Pedro Alves <palves@redhat.com>
10330
10331 * block.c (block_iter_name_step, block_iter_name_first)
10332 (block_iter_name_next): Delete.
10333 (block_lookup_symbol_primary): Adjust to use
10334 dict_iter_match_first/dict_iter_match_next.
10335 * block.h (block_iter_name_first, block_iter_name_next): Delete
10336 declarations.
10337 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use
10338 dict_iter_match_first/dict_iter_match_next.
10339
10340 2017-07-20 Pedro Alves <palves@redhat.com>
10341
10342 * cp-support.c (cp_find_first_component_aux): Add missing case for
10343 end of string.
10344
10345 2017-07-18 David Blaikie <dblaikie@gmail.com>
10346
10347 * dwarf2read.c (create_cus_hash_table): Re-add lost initialization
10348 of dwo_cu's dwo_file.
10349
10350 2017-07-18 Yao Qi <yao.qi@linaro.org>
10351
10352 * remote.c (store_registers_using_G): Remove one line comment.
10353
10354 2017-07-18 Yao Qi <yao.qi@linaro.org>
10355
10356 * regcache.c (regcache_cpy): Simplify it.
10357 (regcache::cpy_no_passthrough): Remove it.
10358 * regcache.h (cpy_no_passthrough): Remove it.
10359 (regcache_dup, regcache_cpy): Update comments.
10360
10361 2017-07-18 Pedro Alves <palves@redhat.com>
10362
10363 * remote-sim.c (sim_command_completer): Adjust to work with a
10364 completion_tracker instead of a VEC.
10365
10366 2017-07-17 Pedro Alves <palves@redhat.com>
10367
10368 * completer.c (complete_source_filenames): New function.
10369 (complete_address_and_linespec_locations): New function.
10370 (location_completer): Use complete_address_and_linespec_locations.
10371 (completion_tracker::build_completion_result): Honor the tracker's
10372 request to suppress append.
10373 * completer.h (completion_tracker::suppress_append_ws)
10374 (completion_tracker::set_suppress_append_ws): New methods.
10375 (completion_tracker::m_suppress_append_ws): New field.
10376 (complete_source_filenames): New declaration.
10377 * linespec.c (linespec_complete_what): New.
10378 (struct ls_parser) <complete_what, completion_word,
10379 completion_quote_char, completion_quote_end, completion_tracker>:
10380 New fields.
10381 (string_find_incomplete_keyword_at_end): New.
10382 (linespec_lexer_lex_string): Record quote char. If in completion
10383 mode, don't throw.
10384 (linespec_lexer_consume_token): Advance the completion word point.
10385 (linespec_lexer_peek_token): Save/restore completion info.
10386 (save_stream_and_consume_token): New.
10387 (set_completion_after_number): New.
10388 (linespec_parse_basic): Set what to complete next depending on
10389 token. Handle function and label completions specially.
10390 (parse_linespec): Disable objc shortcut in completion mode. Set
10391 what to complete next depending on token type. Skip keyword if in
10392 completion mode.
10393 (complete_linespec_component, linespec_complete): New.
10394 * linespec.h (linespec_complete): Declare.
10395
10396 2017-07-17 Pedro Alves <palves@redhat.com>
10397
10398 * linespec.c (linespec_lexer_lex_string, find_toplevel_char):
10399 Handle 'operator<' / 'operator<<'.
10400
10401 2017-07-17 Pedro Alves <palves@redhat.com>
10402
10403 * completer.c (collect_explicit_location_matches): Handle
10404 MATCH_LABEL.
10405 (convert_explicit_location_to_linespec): New, factored out from
10406 ...
10407 (convert_explicit_location_to_sals): ... this.
10408 (complete_label): New.
10409 (linespec_complete_label, find_label_symbols_in_block): New.
10410 (find_label_symbols): Add completion_mode parameter and adjust to
10411 call find_label_symbols_in_block.
10412 * linespec.h (linespec_complete_label): Declare.
10413
10414 2017-07-17 Pedro Alves <palves@redhat.com>
10415
10416 * ada-lang.c (ada_collect_symbol_completion_matches): Add
10417 complete_symbol_mode parameter.
10418 * cli/cli-cmds.c (complete_command): Get the completion result out
10419 of the handle_brkchars tracker if used a custom word point.
10420 * completer.c: Include "linespec.h".
10421 (enum explicit_location_match_type) <MATCH_LINE>: New enumerator.
10422 (advance_to_expression_complete_word_point): New.
10423 (completion_tracker::completes_to_completion_word): New.
10424 (complete_files_symbols): Pass down
10425 complete_symbol_mode::EXPRESSION.
10426 (explicit_options, probe_options): New.
10427 (collect_explicit_location_matches): Complete on the
10428 explictit_loc->foo instead of word. Use
10429 linespec_complete_function. Handle MATCH_LINE. Handle offering
10430 keyword and options completions.
10431 (backup_text_ptr): Delete.
10432 (skip_keyword): New.
10433 (complete_explicit_location): Remove 'word' parameter. Add
10434 language, quoted_arg_start and quoted_arg_end parameters.
10435 Rewrite, parsing left to right.
10436 (location_completer): Rewrite.
10437 (location_completer_handle_brkchars): New function.
10438 (symbol_completer): Pass down complete_symbol_mode::EXPRESSION.
10439 (enum complete_line_internal_reason): Adjust comments.
10440 (completion_tracker::discard_completions): New.
10441 (completer_handle_brkchars_func_for_completer): Handle
10442 location_completer.
10443 (gdb_custom_word_point_brkchars)
10444 (gdb_org_rl_basic_quote_characters): New.
10445 (gdb_completion_word_break_characters_throw)
10446 (completion_find_completion_word): Handle trackers that use a
10447 custom word point.
10448 (completion_tracker::advance_custom_word_point_by): New.
10449 (completion_tracker::build_completion_result): Don't rely on
10450 readline appending the quote char.
10451 (gdb_rl_attempted_completion_function_throw): Handle trackers that
10452 use a custom word point.
10453 (gdb_rl_attempted_completion_function): Restore
10454 rl_basic_quote_characters.
10455 * completer.h (class completion_tracker): Extend intro comment.
10456 (completion_tracker::set_quote_char)
10457 (completion_tracker::quote_char)
10458 (completion_tracker::set_use_custom_word_point)
10459 (completion_tracker::use_custom_word_point)
10460 (completion_tracker::custom_word_point)
10461 (completion_tracker::set_custom_word_point)
10462 (completion_tracker::advance_custom_word_point_by)
10463 (completion_tracker::completes_to_completion_word)
10464 (completion_tracker::discard_completions): New methods.
10465 (completion_tracker::m_quote_char)
10466 (completion_tracker::m_use_custom_word_point)
10467 (completion_tracker::m_custom_word_point): New fields.
10468 (advance_to_expression_complete_word_point): Declare.
10469 * f-lang.c (f_collect_symbol_completion_matches): Add
10470 complete_symbol_mode parameter.
10471 * language.h (struct language_defn)
10472 <la_collect_symbol_completion_matches>: Add complete_symbol_mode
10473 parameter.
10474 * linespec.c (linespec_keywords): Add NULL terminator. Make extern.
10475 (linespec_complete_function): New function.
10476 (linespec_lexer_lex_keyword): Adjust.
10477 * linespec.h (linespec_keywords, linespec_complete_function): New
10478 declarations.
10479 * location.c (find_end_quote): New function.
10480 (explicit_location_lex_one): Add explicit_completion_info
10481 parameter. Save quoting info. Don't throw if being called for
10482 completion. Don't handle Ada operators here.
10483 (is_cp_operator, skip_op_false_positives, first_of)
10484 (explicit_location_lex_one_function): New function.
10485 (string_to_explicit_location): Replace 'dont_throw' parameter with
10486 an explicit_completion_info pointer parameter. Handle it. Don't
10487 use explicit_location_lex_one to lex function names. Use
10488 explicit_location_lex_one_function instead.
10489 * location.h (struct explicit_completion_info): New.
10490 (string_to_explicit_location): Replace 'dont_throw' parameter with
10491 an explicit_completion_info pointer parameter.
10492 * symtab.c (default_collect_symbol_completion_matches_break_on):
10493 Add complete_symbol_mode parameter. Handle LINESPEC mode.
10494 (default_collect_symbol_completion_matches)
10495 (collect_symbol_completion_matches): Add complete_symbol_mode
10496 parameter.
10497 (collect_symbol_completion_matches_type): Pass down
10498 complete_symbol_mode::EXPRESSION.
10499 (collect_file_symbol_completion_matches): Add complete_symbol_mode
10500 parameter. Handle LINESPEC mode.
10501 * symtab.h (complete_symbol_mode): New.
10502 (default_collect_symbol_completion_matches_break_on)
10503 (default_collect_symbol_completion_matches)
10504 (collect_symbol_completion_matches)
10505 (collect_file_symbol_completion_matches): Add complete_symbol_mode
10506 parameter.
10507
10508 2017-07-17 Pedro Alves <palves@redhat.com>
10509
10510 * utils.c (enum class strncmp_iw_mode): New.
10511 (strcmp_iw): Rename to ...
10512 (strncmp_iw_with_mode): ... this. Add string2_len and mode
10513 parameters. Handle them.
10514 (strncmp_iw): New.
10515 (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode.
10516 * utils.h (strncmp_iw): Declare.
10517 (strcmp_iw): Move describing comments here.
10518
10519 2017-07-17 Pedro Alves <palves@redhat.com>
10520
10521 * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and
10522 CP_OPERATOR_STR.
10523 * c-typeprint.c (is_type_conversion_operator): Use
10524 CP_OPERATOR_STR.
10525 * cp-support.c (LENGTH_OF_OPERATOR): Delete.
10526 (cp_find_first_component_aux): Use CP_OPERATOR_STR and
10527 CP_OPERATOR_LEN.
10528 * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New.
10529 * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR.
10530 * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR.
10531 * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and
10532 CP_OPERATOR_STR.
10533 * location.c: Include "cp-support.h".
10534 (explicit_location_lex_one): Use CP_OPERATOR_LEN and
10535 CP_OPERATOR_STR.
10536 * symtab.c (operator_chars): Use CP_OPERATOR_STR and
10537 CP_OPERATOR_LEN.
10538
10539 2017-07-17 Pedro Alves <palves@redhat.com>
10540
10541 * cli/cli-cmds.c (complete_command): Use a completion tracker
10542 along with completion_find_completion_word for handle_brkchars
10543 phase.
10544 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
10545 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New.
10546 (struct gdb_rl_completion_word_info): New.
10547 (gdb_rl_find_completion_word): New.
10548 (completion_find_completion_word): New.
10549 * completer.h (completion_find_completion_word): Declare.
10550
10551 2017-07-17 Pedro Alves <palves@redhat.com>
10552
10553 * ada-lang.c (symbol_completion_match): Adjust comments.
10554 (symbol_completion_add): Replace vector parameter with
10555 completion_tracker parameter. Use it.
10556 (ada_make_symbol_completion_list): Rename to...
10557 (ada_collect_symbol_completion_matches): ... this. Add
10558 completion_tracker parameter and use it.
10559 (ada_language_defn): Adjust.
10560 * break-catch-syscall.c (catch_syscall_completer): Adjust
10561 prototype and work with completion_tracker instead of VEC.
10562 * breakpoint.c (condition_completer): Adjust prototype and work
10563 with completion_tracker instead of VEC.
10564 * c-lang.c (c_language_defn, cplus_language_defn)
10565 (asm_language_defn, minimal_language_defn): Adjust to renames.
10566 * cli/cli-cmds.c (complete_command): Rework using
10567 completion_tracker. Catch exceptions when completing.
10568 * cli/cli-decode.c (integer_unlimited_completer)
10569 (complete_on_cmdlist, complete_on_enum): Adjust prototype and work
10570 with completion_tracker instead of VEC.
10571 * command.h (struct completion_tracker): Forward declare.
10572 (completer_ftype, completer_handle_brkchars_ftype): Change
10573 types.
10574 (complete_on_cmdlist, complete_on_enum): Adjust.
10575 * completer.c: Include <algorithm>.
10576 (struct gdb_completer_state): New.
10577 (current_completion): New global.
10578 (readline_line_completion_function): Delete.
10579 (noop_completer, filename_completer)
10580 (filename_completer_handle_brkchars, complete_files_symbols)
10581 (linespec_location_completer): Adjust to work with a
10582 completion_tracker instead of a VEC.
10583 (string_or_empty): New.
10584 (collect_explicit_location_matches): Adjust to work with a
10585 completion_tracker instead of a VEC.
10586 (explicit_location_completer): Rename to ...
10587 (complete_explicit_location): ... this and adjust to work with a
10588 completion_tracker instead of a VEC.
10589 (location_completer): Adjust to work with a completion_tracker
10590 instead of a VEC.
10591 (add_struct_fields): Adjust to work with a completion_list instead
10592 of VEC.
10593 (expression_completer): Rename to ...
10594 (complete_expression): ... this and adjust to work with a
10595 completion_tracker instead of a VEC. Use complete_files_symbols.
10596 (expression_completer): Reimplement on top of complete_expression.
10597 (symbol_completer): Adjust to work with a completion_tracker
10598 instead of a VEC.
10599 (enum complete_line_internal_reason): Add describing comments.
10600 (complete_line_internal_normal_command): Adjust to work with a
10601 completion_tracker instead of a VEC.
10602 (complete_line_internal): Rename to ...
10603 (complete_line_internal_1): ... this and adjust to work with a
10604 completion_tracker instead of a VEC. Assert TEXT is NULL in the
10605 handle_brkchars phase.
10606 (new_completion_tracker): Delete.
10607 (complete_line_internal): Reimplement as TRY/CATCH wrapper around
10608 complete_line_internal_1.
10609 (free_completion_tracker): Delete.
10610 (INITIAL_COMPLETION_HTAB_SIZE): New.
10611 (completion_tracker::completion_tracker)
10612 (completion_tracker::~completion_tracker): New.
10613 (maybe_add_completion): Delete.
10614 (completion_tracker::maybe_add_completion)
10615 (completion_tracker::add_completion)
10616 (completion_tracker::add_completions): New.
10617 (throw_max_completions_reached_error): Delete.
10618 (complete_line): Adjust to work with a completion_tracker instead
10619 of a VEC. Don't create a completion_tracker_t or check for max
10620 completions here.
10621 (command_completer, command_completer_handle_brkchars)
10622 (signal_completer, reg_or_group_completer_1)
10623 (reg_or_group_completer, default_completer_handle_brkchars):
10624 Adjust to work with a completion_tracker.
10625 (gdb_completion_word_break_characters_throw): New.
10626 (gdb_completion_word_break_characters): Reimplement.
10627 (line_completion_function): Delete.
10628 (completion_tracker::recompute_lowest_common_denominator)
10629 (expand_preserving_ws)
10630 (completion_tracker::build_completion_result)
10631 (completion_result::completion_result)
10632 (completion_result::completion_result)
10633 (completion_result::~completion_result)
10634 (completion_result::completion_result)
10635 (completion_result::release_match_list, compare_cstrings)
10636 (completion_result::sort_match_list)
10637 (completion_result::reset_match_list)
10638 (gdb_rl_attempted_completion_function_throw)
10639 (gdb_rl_attempted_completion_function): New.
10640 * completer.h (completion_list, struct completion_result)
10641 (class completion_tracker): New.
10642 (complete_line): Add completion_tracker parameter.
10643 (readline_line_completion_function): Delete.
10644 (gdb_rl_attempted_completion_function): New.
10645 (noop_completer, filename_completer, expression_completer)
10646 (location_completer, symbol_completer, command_completer)
10647 (signal_completer, reg_or_group_completer): Update prototypes.
10648 (completion_tracker_t, new_completion_tracker)
10649 (make_cleanup_free_completion_tracker): Delete.
10650 (enum maybe_add_completion_enum): Delete.
10651 (maybe_add_completion): Delete.
10652 (throw_max_completions_reached_error): Delete.
10653 * corefile.c (complete_set_gnutarget): Adjust to work with a
10654 completion_tracker instead of a VEC.
10655 * cp-abi.c (cp_abi_completer): Adjust to work with a
10656 completion_tracker instead of a VEC.
10657 * d-lang.c (d_language_defn): Adjust.
10658 * disasm.c (disassembler_options_completer): Adjust to work with a
10659 completion_tracker instead of a VEC.
10660 * f-lang.c (f_make_symbol_completion_list): Rename to ...
10661 (f_collect_symbol_completion_matches): ... this. Adjust to work
10662 with a completion_tracker instead of a VEC.
10663 (f_language_defn): Adjust.
10664 * go-lang.c (go_language_defn): Adjust.
10665 * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer):
10666 Adjust to work with a completion_tracker instead of a VEC.
10667 * infrun.c (handle_completer): Likewise.
10668 * interps.c (interpreter_completer): Likewise.
10669 * interps.h (interpreter_completer): Likewise.
10670 * language.c (unknown_language_defn, auto_language_defn)
10671 (local_language_defn): Adjust.
10672 * language.h (language_defn::la_make_symbol_completion_list):
10673 Rename to ...
10674 (language_defn::la_collect_symbol_completion_matches): ... this
10675 and adjust to work with a completion_tracker instead of a VEC.
10676 * m2-lang.c (m2_language_defn): Adjust.
10677 * objc-lang.c (objc_language_defn): Adjust.
10678 * opencl-lang.c (opencl_language_defn): Adjust.
10679 * p-lang.c (pascal_language_defn): Adjust.
10680 * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word.
10681 (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work
10682 with a completion_tracker.
10683 * rust-lang.c (rust_language_defn): Adjust.
10684 * symtab.c (free_completion_list, do_free_completion_list)
10685 (return_val, completion_tracker): Delete.
10686 (completion_list_add_name, completion_list_add_symbol)
10687 (completion_list_add_msymbol, completion_list_objc_symbol)
10688 (completion_list_add_fields, add_symtab_completions): Add
10689 completion_tracker parameter and use it.
10690 (default_make_symbol_completion_list_break_on_1): Rename to...
10691 (default_collect_symbol_completion_matches_break_on): ... this.
10692 Add completion_tracker parameter and use it instead of allocating
10693 a completion tracker here.
10694 (default_make_symbol_completion_list_break_on): Delete old
10695 implementation.
10696 (default_make_symbol_completion_list): Delete.
10697 (default_collect_symbol_completion_matches): New.
10698 (make_symbol_completion_list): Delete.
10699 (collect_symbol_completion_matches): New.
10700 (make_symbol_completion_type): Rename to ...
10701 (collect_symbol_completion_matches_type): ... this. Add
10702 completion_tracker parameter and use it instead of VEC.
10703 (make_file_symbol_completion_list_1): Rename to...
10704 (collect_file_symbol_completion_matches): ... this. Add
10705 completion_tracker parameter and use it instead of VEC.
10706 (make_file_symbol_completion_list): Delete.
10707 (add_filename_to_list): Use completion_list instead of a VEC.
10708 (add_partial_filename_data::list): Now a completion_list.
10709 (make_source_files_completion_list): Work with a completion_list
10710 instead of a VEC.
10711 * symtab.h: Include "completer.h".
10712 (default_make_symbol_completion_list_break_on)
10713 (default_make_symbol_completion_list, make_symbol_completion_list)
10714 (make_symbol_completion_type, make_file_symbol_completion_list)
10715 (make_source_files_completion_list): Delete.
10716 (default_collect_symbol_completion_matches_break_on)
10717 (default_collect_symbol_completion_matches)
10718 (collect_symbol_completion_matches)
10719 (collect_symbol_completion_matches_type)
10720 (collect_file_symbol_completion_matches)
10721 (make_source_files_completion_list): New.
10722 * top.c (init_main): Don't install a rl_completion_entry_function
10723 hook. Install a rl_attempted_completion_function hook instead.
10724 * tui/tui-layout.c (layout_completer): Adjust to work with a
10725 completion_tracker.
10726 * tui/tui-regs.c (tui_reggroup_completer):
10727 * tui/tui-win.c (window_name_completer, focus_completer)
10728 (winheight_completer): Adjust to work with a completion_tracker.
10729 * value.c: Include "completer.h".
10730 (complete_internalvar): Adjust to work with a completion_tracker.
10731 * value.h (complete_internalvar): Likewise.
10732
10733 2017-07-17 Pedro Alves <palves@redhat.com>
10734
10735 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to
10736 renames.
10737 * cli/cli-decode.h (struct cmd_list_element) <completer>: Move
10738 comments to completer_ftype's declaration.
10739 <completer_handle_brkchars>: Change type to
10740 completer_handle_brkchars_ftype.
10741 * command.h (completer_ftype): Add describing comment and give
10742 names to parameters.
10743 (completer_ftype_void): Rename to ...
10744 (completer_handle_brkchars_ftype) ... this. Add describing comment.
10745 (set_cmd_completer_handle_brkchars): Adjust.
10746 * completer.c (filename_completer_handle_brkchars): New function.
10747 (complete_line_internal_normal_command): New function, factored
10748 out from ...
10749 (complete_line_internal): ... here.
10750 (command_completer_handle_brkchars)
10751 (default_completer_handle_brkchars)
10752 (completer_handle_brkchars_func_for_completer): New functions.
10753 * completer.h (set_gdb_completion_word_break_characters): Delete
10754 declaration.
10755 (completer_handle_brkchars_func_for_completer): New declaration.
10756 * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use
10757 completer_handle_brkchars_func_for_completer.
10758
10759 2017-07-17 Pedro Alves <palves@redhat.com>
10760
10761 * completer.c (symbol_completer): New function, based on
10762 make_symbol_completion_list_fn.
10763 * completer.h (symbol_completer): New declaration.
10764 * guile/scm-cmd.c (cmdscm_completers): Adjust.
10765 * python/py-cmd.c (completers): Adjust.
10766 * symtab.c (make_symbol_completion_list_fn): Delete.
10767 * symtab.h (make_symbol_completion_list_fn): Delete.
10768 * cli/cli-decode.c (add_cmd): Adjust.
10769
10770 2017-07-17 Pedro Alves <palves@redhat.com>
10771
10772 * Makefile.in (COMMON_OBS): Add filename-seen-cache.o.
10773 * dwarf2read.c: Include "filename-seen-cache.h".
10774 * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field.
10775 (dw2_map_symbol_filenames): Build and use a filenames_seen_cache.
10776 * filename-seen-cache.c: New file.
10777 * filename-seen-cache.h: New file.
10778 * symtab.c: Include "filename-seen-cache.h".
10779 (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE)
10780 (create_filename_seen_cache, clear_filename_seen_cache)
10781 (delete_filename_seen_cache, filename_seen): Delete, parts moved
10782 to filename-seen-cache.h/filename-seen-cache.c.
10783 (output_source_filename, sources_info)
10784 (maybe_add_partial_symtab_filename)
10785 (make_source_files_completion_list): Adjust to use
10786 filename_seen_cache.
10787
10788 2017-07-17 Pedro Alves <palves@redhat.com>
10789
10790 * dwarf2read.c (dwarf2_per_objfile): In-class initialize all
10791 fields.
10792 (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const
10793 dwarf2_debug_sections*)): New.
10794 (dwarf2_per_objfile::dwarf2_per_objfile(const
10795 dwarf2_per_objfile&)): Declare as deleted.
10796 (dwarf2_per_objfile::operator=): Declare as deleted.
10797 (dwarf2_per_objfile::dwarf2_per_objfile)
10798 (dwarf2_per_objfile::~dwarf2_per_objfile)
10799 (dwarf2_per_objfile::free_cached_comp_units): New.
10800 (dwarf2_has_info): dwarf2_per_objfile initialization code moved to
10801 ctor. Call dwarf2_per_objfile's ctor manually.
10802 (dwarf2_locate_sections): Deleted/refactored as ...
10803 (dwarf2_per_objfile::locate_sections): ... this new method.
10804 (free_cached_comp_units): Defer to
10805 dwarf2_per_objfile::free_cached_comp_units.
10806 (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually.
10807
10808 2017-07-14 Tom Tromey <tom@tromey.com>
10809
10810 PR rust/21764:
10811 * rust-exp.y (convert_ast_to_expression): Add "want_type"
10812 parameter.
10813 <UNOP_SIZEOF>: Split into separate case.
10814 <UNOP_VAR_VALUE>: Handle want_type. Add error case.
10815
10816 2017-07-14 Tom Tromey <tom@tromey.com>
10817
10818 PR rust/21763:
10819 * symtab.c (symbol_matches_domain): Add language_rust to special
10820 case.
10821 * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't
10822 treat LOC_TYPEDEF symbols as variables.
10823
10824 2017-07-14 Pedro Alves <palves@redhat.com>
10825
10826 * symtab.c (make_file_symbol_completion_list_1): Iterate over
10827 symtabs matching all symtabs with SRCFILE as file name instead of
10828 only considering the first hit, with lookup_symtab.
10829
10830 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
10831
10832 * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and
10833 operator_name parameters.
10834 (gen_expr): Update function call.
10835
10836 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
10837
10838 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch
10839 parameter.
10840 * symtab.h (struct symbol_computed_ops::tracepoint_var_ref):
10841 Likewise.
10842 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch
10843 parameter, use agent_expr::gdbarch instead, update function
10844 calls.
10845 (locexpr_tracepoint_var_ref): Likewise.
10846 (loclist_tracepoint_var_ref): Likewise.
10847 * ax-gdb.c (gen_trace_static_fields): Likewise.
10848 (gen_traced_pop): Likewise.
10849 (gen_frame_args_address): Likewise.
10850 (gen_frame_locals_address): Likewise.
10851 (gen_var_ref): Likewise.
10852 (gen_struct_ref_recursive): Likewise.
10853 (gen_static_field): Likewise.
10854 (gen_maybe_namespace_elt): Likewise.
10855 (gen_expr): Likewise.
10856 (gen_trace_for_var): Likewise.
10857 (gen_trace_for_expr): Likewise.
10858 (gen_trace_for_return_address): Likewise.
10859
10860 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
10861
10862 * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax
10863 parameter.
10864 (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call.
10865
10866 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
10867
10868 * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch
10869 from ax, update calls.
10870 (gen_usual_arithmetic): Likewise.
10871 (gen_integral_promotions): Likewise.
10872 (gen_bitfield_ref): Likewise.
10873 (gen_primitive_field): Likewise.
10874 (gen_struct_ref_recursive): Likewise.
10875 (gen_struct_ref): Likewise.
10876 (gen_maybe_namespace_elt): Likewise.
10877 (gen_struct_elt_for_reference): Likewise.
10878 (gen_namespace_elt): Likewise.
10879 (gen_aggregate_elt_ref): Likewise.
10880 (gen_expr): Get gdbarch from ax, update calls.
10881 (gen_expr_binop_rest): Likewise.
10882
10883 2017-07-13 Pedro Alves <palves@redhat.com>
10884
10885 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64
10886 as default tdesc.
10887 * amd64-dicos-tdep.c (amd64_dicos_init_abi):
10888 * amd64-fbsd-tdep.c (amd64fbsd_init_abi):
10889 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass
10890 tdesc_amd64_linux as default tdesc. Get final tdesc from the
10891 tdep.
10892 (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc.
10893 Get final tdesc from the tdep.
10894 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as
10895 default tdesc.
10896 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
10897 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
10898 * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter.
10899 Use it as default tdesc.
10900 (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it
10901 down to amd_init_abi. No longer handle fallback tdesc here.
10902 * amd64-tdep.h (tdesc_x32): Declare.
10903 (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc'
10904 parameter.
10905 * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64
10906 as default tdesc.
10907
10908 2017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10909
10910 * s390-linux-tdep.c (s390_process_record): Add support for
10911 instructions new in arch12.
10912
10913 2017-07-11 John Baldwin <jhb@FreeBSD.org>
10914
10915 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
10916 PT_GETFSBASE and PT_GETGSBASE.
10917 (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and
10918 PT_SETGSBASE.
10919
10920 2017-07-11 John Baldwin <jhb@FreeBSD.org>
10921
10922 * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat)
10923 (amd64-avx-mpx.dat, amd64-avx-avx512.dat)
10924 (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in
10925 those rules.
10926 * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml.
10927 * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml.
10928 * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml.
10929 * features/i386/amd64-avx.xml: Add 64bit-segments.xml.
10930 * features/i386/amd64-mpx.xml: Add 64bit-segments.xml.
10931 * features/i386/amd64.xml: Add 64bit-segments.xml.
10932 * features/i386/amd64-avx-avx512.c: Regenerated.
10933 * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated.
10934 * features/i386/amd64-avx-mpx.c: Regenerated.
10935 * features/i386/amd64-avx.c: Regenerated.
10936 * features/i386/amd64-mpx.c: Regenerated.
10937 * features/i386/amd64.c: Regenerated.
10938 * regformats/i386/amd64-avx-avx512.dat: Regenerated.
10939 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
10940 * regformats/i386/amd64-avx-mpx.dat: Regenerated.
10941 * regformats/i386/amd64-avx.dat: Regenerated.
10942 * regformats/i386/amd64-mpx.dat: Regenerated.
10943 * regformats/i386/amd64.dat: Regenerated.
10944
10945 2017-07-10 Yao Qi <yao.qi@linaro.org>
10946
10947 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
10948 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
10949
10950 2017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com>
10951
10952 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and
10953 unsetenv.
10954 * gnulib/aclocal.m4: Regenerate.
10955 * gnulib/config.in: Regenerate.
10956 * gnulib/configure: Regenerate.
10957 * gnulib/import/Makefile.am: Regenerate.
10958 * gnulib/import/Makefile.in: Regenerate.
10959 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
10960 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
10961 * gnulib/import/m4/environ.m4: New file.
10962 * gnulib/import/m4/setenv.m4: New file.
10963 * gnulib/import/setenv.c: New file.
10964 * gnulib/import/unsetenv.c: New file.
10965
10966 2017-07-09 Simon Marchi <simon.marchi@ericsson.com>
10967
10968 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read
10969 address when op is DW_OP_addr.
10970
10971 2017-07-09 Tom Tromey <tom@tromey.com>
10972
10973 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size
10974 check and apply to outer type.
10975
10976 2017-07-07 John Baldwin <jhb@FreeBSD.org>
10977
10978 * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS)
10979 (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI)
10980 (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New.
10981 (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method.
10982
10983 2017-07-07 John Baldwin <jhb@FreeBSD.org>
10984
10985 * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name.
10986
10987 2017-07-07 John Baldwin <jhb@FreeBSD.org>
10988
10989 * corelow.c (get_core_siginfo): Remove.
10990 (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method
10991 instead of get_core_siginfo.
10992 * gdbarch.sh (core_xfer_siginfo): New gdbarch callback.
10993 * gdbarch.h: Re-generate.
10994 * gdbarch.c: Re-generate.
10995 * linux-tdep.c (linux_core_xfer_siginfo): New.
10996 (linux_init_abi): Install gdbarch "core_xfer_siginfo" method.
10997
10998 2017-07-07 John Baldwin <jhb@FreeBSD.org>
10999
11000 * corelow.c (thread_section_name): Move to ...
11001 * gdbcore.h (thread_section_name): ... here.
11002
11003 2017-07-07 John Baldwin <jhb@FreeBSD.org>
11004
11005 * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32)
11006 (struct siginfo32): New.
11007 [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New.
11008 (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO
11009 via ptrace(PT_LWPINFO).
11010
11011 2017-07-07 John Baldwin <jhb@FreeBSD.org>
11012
11013 * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data)
11014 (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data)
11015 (fbsd_get_siginfo_type): New.
11016 (fbsd_init_abi): Install gdbarch "get_siginfo_type" method.
11017 (_initialize_fbsd_tdep): New.
11018
11019 2017-07-06 David Blaikie <dblaikie@gmail.com>
11020
11021 * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than
11022 a singular dwo_unit*) to support multiple CUs in the same way that
11023 multiple TUs are supported.
11024 (create_cus_hash_table): Replace create_dwo_cu with a function for
11025 parsing multiple CUs from a DWO file.
11026 (open_and_init_dwo_file): Use create_cus_hash_table rather than
11027 create_dwo_cu.
11028 (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with
11029 htab_find, rather than comparing the signature to a singleton CU in
11030 the dwo_file.
11031
11032 2017-07-06 Pedro Alves <palves@redhat.com>
11033
11034 * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition.
11035
11036 2017-07-04 Pedro Alves <palves@redhat.com>
11037
11038 * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC.
11039 * gdbtypes.h (TYPE_STATIC): Delete.
11040 (struct fn_field) <is_public, is_abstract, is_static, is_final,
11041 is_synchronized, is_native>: Delete.
11042 <dummy>: Bump.
11043 (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL)
11044 (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE)
11045 (TYPE_FN_FIELD_ABSTRACT): Delete.
11046
11047 2017-07-03 Simon Marchi <simon.marchi@ericsson.com>
11048
11049 * buffer.h (buffer_finish): Fix spelling mistakes.
11050
11051 2017-07-01 Eli Zaretskii <eliz@gnu.org>
11052
11053 * .dir-locals.el: Automatically switch to C-style comments in
11054 versions of Emacs that support the feature.
11055
11056 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
11057 Pedro Alves <palves@redhat.com>
11058
11059 PR cli/21688
11060 * cli/cli-script.c (command_name_equals_not_inline): Remove function.
11061 (process_next_line): New variable 'inline_cmd'.
11062 Adjust 'if' clauses for "python", "compile" and "guile" to use
11063 'command_name_equals' and check for '!inline_cmd'.
11064
11065 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
11066
11067 PR cli/21688
11068 * cli/cli-script.c (command_name_equals_not_inline): New function.
11069 (process_next_line): Adjust 'if' clauses for "python", "compile"
11070 and "guile" to use command_name_equals_not_inline.
11071
11072 2017-06-29 Pedro Alves <palves@redhat.com>
11073
11074 * completer.c (expression_completer): Call
11075 linespec_location_completer instead of location_completer.
11076
11077 2017-06-29 Pedro Alves <palves@redhat.com>
11078
11079 * completer.c (expression_completer): Remove code that recomputes
11080 'text' from 'word'.
11081
11082 2017-06-29 Yao Qi <yao.qi@linaro.org>
11083
11084 * regformats/regdat.sh: Generate code with
11085 "ifndef IN_PROCESS_AGENT".
11086
11087 2017-06-28 Pedro Alves <palves@redhat.com>
11088
11089 * command.h: Include "common/scoped_restore.h".
11090
11091 2017-06-28 Yao Qi <yao.qi@linaro.org>
11092
11093 * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str
11094 instead of obstack_grow.
11095
11096 2017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com>
11097
11098 PR gdb/21337
11099 * symfile.c (reread_symbols): Call objfiles_changed just before
11100 read_symbols.
11101
11102 2017-06-27 Pedro Alves <palves@redhat.com>
11103
11104 * symtab.c (COMPLETION_LIST_ADD_SYMBOL)
11105 (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ...
11106 (completion_list_add_symbol, completion_list_add_msymbol):
11107 ... these new functions.
11108 (add_symtab_completions)
11109 (default_make_symbol_completion_list_break_on_1): Adjust.
11110
11111 2017-06-27 Pedro Alves <palves@redhat.com>
11112
11113 * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of
11114 bfd_zalloc. Call objfile_per_bfd_storage's ctor.
11115 (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's
11116 dtor.
11117 * objfiles.h (objfile_per_bfd_storage): Add ctor. Make
11118 'storage_obstack' field an auto_obstack. In-class initialize all
11119 non-bitfield fields. Make minsyms_read bool.
11120 * symfile.c (read_symbols): Adjust.
11121
11122 2017-06-27 Alan Hayward <alan.hayward@arm.com>
11123
11124 * remote-sim.c (gdbsim_fetch_register): Use byte_vector.
11125 (gdbsim_store_register): Likewise.
11126
11127 2017-06-27 Pedro Alves <palves@redhat.com>
11128
11129 * c-exp.y (name_obstack): Now an auto_obstack.
11130 (yylex): Use auto_obstack::clear.
11131 (c_parse): Use auto_obstack::clear instead of reinitializing and
11132 freeing the obstack.
11133 * c-lang.c (evaluate_subexp_c): Use auto_obstack.
11134 * d-exp.y (name_obstack): Now an auto_obstack.
11135 (yylex): Use auto_obstack::clear.
11136 (d_parse): Use auto_obstack::clear instead of reinitializing and
11137 freeing the obstack.
11138 * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use
11139 auto_obstack.
11140 * dwarf2read.c (create_addrmap_from_index)
11141 (dwarf2_build_psymtabs_hard)
11142 (update_enumeration_type_from_children): Likewise.
11143 * gdb_obstack.h (auto_obstack): New type.
11144 * go-exp.y (name_obstack): Now an auto_obstack.
11145 (build_packaged_name): Use auto_obstack::clear.
11146 (go_parse): Use auto_obstack::clear instead of reinitializing and
11147 freeing the obstack.
11148 * linux-tdep.c (linux_make_mappings_corefile_notes): Use
11149 auto_obstack.
11150 * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack.
11151 * rust-exp.y (work_obstack): Now an auto_obstack.
11152 (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of
11153 reinitializing and freeing the obstack.
11154 * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete.
11155 (host_char_to_target): Use auto_obstack.
11156 * utils.h (make_cleanup_obstack_free): Delete declaration.
11157 * valprint.c (generic_emit_char, generic_printstr): Use
11158 auto_obstack.
11159
11160 2017-06-27 Simon Marchi <simon.marchi@ericsson.com>
11161
11162 * darwin-nat.c (darwin_check_new_threads): Don't handle dummy
11163 thread.
11164 (darwin_init_thread_list): Don't update dummy thread.
11165 (darwin_create_inferior, darwin_attach): Don't add a dummy thread.
11166
11167 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
11168
11169 * record-full.c (netorder16): Remove.
11170
11171 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
11172
11173 * common/diagnostics.h: Define macros for GCC.
11174 (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro.
11175 * common/vec.h: Include diagnostics.h.
11176 (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro.
11177 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function
11178 warning.
11179
11180 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
11181
11182 * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER):
11183 New macro.
11184 * ada-lex.l: Ignore deprecated register warnings.
11185
11186 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
11187
11188 * main.c (get_init_files): Replace "SYSTEM_GDBINIT +
11189 datadir_len" with "&SYSTEM_GDBINIT[datadir_len]".
11190
11191 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
11192
11193 * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on
11194 its own line.
11195
11196 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
11197
11198 * nat/x86-dregs.c (x86_show_dr): Print registers one per line.
11199
11200 2017-06-23 Alan Hayward <alan.hayward@arm.com>
11201
11202 * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add.
11203 (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE.
11204 (xtensa_register_read_masked): Likewise.
11205
11206 2017-06-22 Sergio Durigan Junior <sergiodj@redhat.com>
11207
11208 * common/environ.c (gdb_environ::unset): Update comment.
11209
11210 2017-06-22 Alan Hayward <alan.hayward@arm.com>
11211
11212 * python/py-unwind.c (pyuw_sniffer): Allocate space for
11213 registers.
11214
11215 2017-06-22 Alan Hayward <alan.hayward@arm.com>
11216
11217 * record-full.c (record_full_exec_insn): Use byte_vector.
11218
11219 2017-06-22 Yao Qi <yao.qi@linaro.org>
11220
11221 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated.
11222 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
11223
11224 2017-06-22 Alan Hayward <alan.hayward@arm.com>
11225
11226 * remote.c (cached_reg): Move from here...
11227 * regcache.h (cached_reg): ...to here.
11228 * python/py-unwind.c (struct reg_info): Remove.
11229 (cached_frame_info): Use cached_reg_t.
11230 (pyuw_prev_register): Likewise.
11231 (pyuw_sniffer): Use cached_reg_t and allocate registers.
11232 (pyuw_dealloc_cache): Free all registers.
11233
11234 2017-06-22 Pedro Alves <palves@redhat.com>
11235 Simon Marchi <simon.marchi@ericsson.com>
11236
11237 * unittests/environ-selftests.c (run_tests): Ignore -Wself-move
11238 warning.
11239 * common/diagnostics.h: New file.
11240
11241 2017-06-22 Pedro Alves <palves@redhat.com>
11242
11243 * common/agent.h: Add include guards.
11244
11245 2017-06-21 Simon Marchi <simon.marchi@ericsson.com>
11246
11247 * target.h (struct target_ops) <to_xfer_partial>: Update doc to
11248 talk about addressable units instead of bytes.
11249
11250 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
11251
11252 * common/environ.c (gdb_environ::unset): Use '::iterator' instead
11253 of '::const_iterator'.
11254
11255 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
11256
11257 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11258 'unittests/environ-selftests.c'.
11259 (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'.
11260 * charset.c (find_charset_names): Declare object 'iconv_env'.
11261 Update code to use 'iconv_env' object. Remove call to
11262 'free_environ'.
11263 * common/environ.c: Include <utility>.
11264 (make_environ): Delete function.
11265 (free_environ): Delete function.
11266 (gdb_environ::clear): New function.
11267 (gdb_environ::operator=): New function.
11268 (gdb_environ::get): Likewise.
11269 (environ_vector): Delete function.
11270 (set_in_environ): Delete function.
11271 (gdb_environ::set): New function.
11272 (unset_in_environ): Delete function.
11273 (gdb_environ::unset): New function.
11274 (gdb_environ::envp): Likewise.
11275 * common/environ.h: Include <vector>.
11276 (struct gdb_environ): Delete; transform into...
11277 (class gdb_environ): ... this class.
11278 (free_environ): Delete prototype.
11279 (init_environ, get_in_environ, set_in_environ, unset_in_environ,
11280 environ_vector): Likewise.
11281 * infcmd.c (run_command_1): Update code to call
11282 'envp' from 'gdb_environ' class.
11283 (environment_info): Update code to call methods from 'gdb_environ'
11284 class.
11285 (unset_environment_command): Likewise.
11286 (path_info): Likewise.
11287 (path_command): Likewise.
11288 * inferior.c (inferior::~inferior): Delete call to 'free_environ'.
11289 (inferior::inferior): Initialize 'environment' using the host's
11290 information.
11291 * inferior.h: Remove forward declaration of 'struct gdb_environ'.
11292 Include "environ.h".
11293 (class inferior) <environment>: Change type from 'struct
11294 gdb_environ' to 'gdb_environ'.
11295 * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call
11296 methods from 'gdb_environ' class.
11297 * solib.c (solib_find_1): Likewise
11298 * unittests/environ-selftests.c: New file.
11299
11300 2017-06-20 Yao Qi <yao.qi@linaro.org>
11301
11302 * features/i386/i386-linux.xml: Exchange the order of including
11303 32bit-linux.xml and 32bit-sse.xml.
11304 * features/i386/i386-linux.c: Regenerated.
11305
11306 2017-06-20 Yao Qi <yao.qi@linaro.org>
11307
11308 * target-descriptions.c (tdesc_reg): Add ctor, dtor.
11309 Delete copy ctor and assignment operator.
11310 (tdesc_type): Likewise.
11311 (tdesc_feature): Likewise.
11312 (tdesc_free_reg): Remove.
11313 (tdesc_create_reg): Use new.
11314 (tdesc_free_type): Remove.
11315 (tdesc_create_vector): Use new.
11316 (tdesc_create_union): Likewise.
11317 (tdesc_create_flags): Likewise.
11318 (tdesc_create_enum): Likewise.
11319 (tdesc_free_feature): Delete.
11320 (free_target_description): Use delete.
11321
11322 2017-06-19 John Baldwin <jhb@FreeBSD.org>
11323
11324 * mips-tdep.c (print_gp_register_row): Don't error for unavailable
11325 registers.
11326
11327 2017-06-19 Pedro Alves <palves@redhat.com>
11328
11329 * dwarf2read.c (write_psymtabs_to_index): Construct file_closer
11330 after gdb::unlinker.
11331
11332 2017-06-19 Sergio Durigan Junior <sergiodj@redhat.com>
11333
11334 * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of
11335 gdb_environ to access an environment variable.
11336
11337 2017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
11338
11339 * nat/linux-ptrace.c (linux_fork_to_function): Add cast to
11340 gdb_byte*.
11341
11342 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
11343
11344 * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF.
11345
11346 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
11347
11348 * configure: Re-generate.
11349 * warning.m4 (build_warnings): Add -Wno-mismatched-tags.
11350
11351 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
11352
11353 * configure: Re-generate.
11354 * warning.m4: Pass -Werror to compiler when checking for
11355 supported warning flags.
11356
11357 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
11358
11359 * Makefile.in (COMPILE.pre): Add "-x c++".
11360
11361 2017-06-16 Alan Hayward <alan.hayward@arm.com>
11362 Pedro Alves <palves@redhat.com>
11363 Yao Qi <yao.qi@linaro.org>
11364
11365 * defs.h (RequireLongest): New.
11366 (extract_integer): Declare function template.
11367 (extract_signed_integer): Remove the declaration, but define it
11368 static inline.
11369 (extract_unsigned_integer): Likewise.
11370 (store_integer): Declare function template.
11371 (store_signed_integer): Remove the declaration, but define it
11372 static inline.
11373 (store_unsigned_integer): Likewise.
11374 * findvar.c (extract_integer): New function template.
11375 (extract_signed_integer): Remove.
11376 (extract_unsigned_integer): Remove.
11377 (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit
11378 instantiations.
11379 (store_integer): New function template.
11380 (store_signed_integer): Remove.
11381 (store_unsigned_integer): Remove.
11382 (store_integer): Explicit instantiations.
11383 * regcache.c (regcache_raw_read_signed): Update.
11384 (regcache::raw_read): New function.
11385 (regcache::raw_read_signed): Remove.
11386 (regcache::raw_read_unsigned): Remove.
11387 (regcache_raw_read_unsigned): Update.
11388 (regcache_raw_write_unsigned): Update.
11389 (regcache::raw_write_signed): Remove.
11390 (regcache::raw_write): New function.
11391 (regcache_cooked_read_signed): Update.
11392 (regcache::raw_write_unsigned): Remove.
11393 (regcache::cooked_read_signed): Remove.
11394 (regcache_cooked_read_unsigned): Update.
11395 (regcache::cooked_read_unsigned): Remove.
11396 (regcache_cooked_write_signed): Update.
11397 (regcache_cooked_write_unsigned): Update.
11398 * regcache.h (regcache) <raw_read_signed>: Remove.
11399 <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove.
11400 <raw_read, raw_write>: New.
11401 <cooked_read_signed, cooked_write_signed>: Remove.
11402 <cooked_write_unsigned, cooked_read_unsigned>: Remove.
11403 <cooked_read, cooked_write>: New.
11404 * sh64-tdep.c (sh64_pseudo_register_read): Update.
11405 (sh64_pseudo_register_write): Update.
11406
11407 2017-06-16 Anton Kolesov <anton.kolesov@synopsys.com>
11408
11409 * arc-tdep.c (arc_disassembler_options): New variable.
11410 (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead
11411 of default_print_insn.
11412 (arc_delayed_print_insn): Set info->section when needed,
11413 use default_print_insn to retrieve a disassembler.
11414
11415 2017-06-14 Sergio Durigan Junior <sergiodj@redhat.com>
11416
11417 PR gdb/21574
11418 * infcmd.c (_initialize_infcmd): Expand "help run" documentation
11419 to mention $SHELL and startup-with-shell.
11420
11421 2017-06-14 Max Filippov <jcmvbkbc@gmail.com>
11422
11423 * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers.
11424
11425 2017-06-14 Yao Qi <yao.qi@linaro.org>
11426
11427 * aarch64-tdep.c (aarch64_gdb_print_insn): Call
11428 default_print_insn instead of print_insn_aarch64.
11429 * arm-tdep.c (gdb_print_insn_arm): Call
11430 default_print_insn instead of print_insn_big_arm
11431 and print_insn_little_arm.
11432 * i386-tdep.c (i386_print_insn): Call default_print_insn
11433 instead of print_insn_i386.
11434 * ia64-tdep.c (ia64_print_insn): Call
11435 default_print_insn instead of print_insn_ia64.
11436 * mips-tdep.c (gdb_print_insn_mips): Call
11437 default_print_insn instead of print_insn_big_mips
11438 and print_insn_little_mips.
11439 * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn
11440 instead of print_insn_spu.
11441
11442 2017-06-14 Pedro Alves <palves@redhat.com>
11443
11444 * ada-lang.c: Include "common/byte-vector.h".
11445 (ada_value_primitive_packed_val): Use gdb::byte_vector.
11446 * charset.c (wchar_iterator::iterate): Resize the vector instead
11447 of reserving it.
11448 * common/byte-vector.h: Include "common/def-vector.h".
11449 (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>.
11450 * cli/cli-dump.c: Include "common/byte-vector.h".
11451 (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector.
11452 * common/byte-vector.h: New file.
11453 * common/def-vector.h: New file.
11454 * common/default-init-alloc.h: New file.
11455 * dwarf2loc.c: Include "common/byte-vector.h".
11456 (rw_pieced_value): Use gdb::byte_vector, and resize the vector
11457 instead of reserving it.
11458 * dwarf2read.c: Include "common/byte-vector.h".
11459 (data_buf::m_vec): Now a gdb::byte_vector.
11460 * gdb_regex.c: Include "common/def-vector.h".
11461 (compiled_regex::compiled_regex): Use gdb::def_vector<char>.
11462 * mi/mi-main.c: Include "common/byte-vector.h".
11463 (mi_cmd_data_read_memory): Use gdb::byte_vector.
11464 * printcmd.c: Include "common/byte-vector.h".
11465 (print_scalar_formatted): Use gdb::byte_vector.
11466 * valprint.c: Include "common/byte-vector.h".
11467 (maybe_negate_by_bytes, print_decimal_chars): Use
11468 gdb::byte_vector.
11469
11470 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
11471
11472 * darwin-nat.c: Include "nat/fork-inferior.h".
11473
11474 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
11475
11476 * configure.nat: Factor out Darwin bits that are not
11477 architecture-specific. Add fork-inferior.o.
11478
11479 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
11480
11481 * configure.nat: Factor out AIX bits that are not
11482 architecture-specific. Add fork-inferior.o.
11483
11484 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11485
11486 * dwarf2loc.c (rw_pieced_value): New. Merge logic from...
11487 (read_pieced_value, write_pieced_value): ...here. Reduce to
11488 wrappers that just call rw_pieced_value.
11489
11490 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11491
11492 * dwarf2loc.c (write_pieced_value): When writing the data for a
11493 memory piece, use write_memory_with_notification instead of
11494 write_memory.
11495
11496 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11497
11498 * valops.c (read_value_memory): Change embedded_offset to
11499 represent a bit offset instead of a byte offset.
11500 * value.h (read_value_memory): Adjust comment.
11501
11502 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11503
11504 * dwarf2loc.c (read_pieced_value): Remove unnecessary variables
11505 dest_offset_bits and source_offset_bits.
11506 (write_pieced_value): Likewise.
11507
11508 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11509
11510 * dwarf2loc.c (read_pieced_value): Respect the piece offset, as
11511 given by DW_OP_bit_piece.
11512 (write_pieced_value): Likewise.
11513
11514 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11515
11516 * dwarf2loc.c (read_pieced_value): Move the buffer allocation and
11517 some other preparations to the places where sufficient information
11518 is available.
11519 (write_pieced_value): Likewise.
11520
11521 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11522
11523 * dwarf2loc.c (bits_to_bytes): New function.
11524 (read_pieced_value): Fix offset calculations for register pieces
11525 on big-endian targets.
11526 (write_pieced_value): Likewise.
11527
11528 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11529
11530 * dwarf2loc.c (read_pieced_value): Remove buffer_size variable.
11531 (write_pieced_value): Likewise.
11532
11533 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11534
11535 * dwarf2loc.c (write_pieced_value): When writing to a bit-field,
11536 transfer the source value's least significant bits, instead of its
11537 lowest-addressed ones. Rename type_len to max_offset.
11538 (read_pieced_value): Mirror above changes to write_pieced_value as
11539 applicable.
11540
11541 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11542
11543 * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY,
11544 truncate full bytes from dest_offset_bits before using it as an
11545 offset into the buffer.
11546
11547 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11548
11549 * dwarf2loc.c (write_pieced_value): Include transfer size in
11550 byte-wise check.
11551
11552 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11553
11554 * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the
11555 calculation of this_size.
11556
11557 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11558
11559 * dwarf2loc.c (read_pieced_value): Respect parent value's offset
11560 when targeting a bit-field.
11561 (write_pieced_value): Likewise.
11562
11563 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11564
11565 * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field.
11566 (allocate_piece_closure): Drop addr_size parameter.
11567 (dwarf2_evaluate_loc_desc_full): Adjust call to
11568 allocate_piece_closure.
11569
11570 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11571
11572 PR gdb/21226
11573 * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at
11574 the LSB end, independent of endianness.
11575
11576 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11577
11578 * dwarf2loc.c (write_pieced_value): Fix order of calculations for
11579 size capping.
11580
11581 2017-06-13 Yao Qi <yao.qi@linaro.org>
11582
11583 * mips-linux-nat.c: Move include features/mips*-linux.c to
11584 mips-linux-tdep.c.
11585 (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls
11586 to mips-linux-tdep.c.
11587 * mips-linux-tdep.c: Include features/mips*-linux.c
11588 (_initialize_mips_linux_tdep): Call initialize_tdesc_mips*
11589 functions.
11590 * mips-linux-tdep.h (tdesc_mips_linux): Declare.
11591 (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare.
11592 (tdesc_mips64_dsp_linux): Declare.
11593
11594 2017-06-12 Tom Tromey <tom@tromey.com>
11595
11596 * valprint.h (val_print_type_code_int): Remove.
11597 * valprint.c (generic_val_print_int): Always call
11598 val_print_scalar_formatted.
11599 (val_print_type_code_int): Remove.
11600 * printcmd.c (print_scalar_formatted): Handle options->format==0.
11601 * f-valprint.c (f_val_print): Use val_print_scalar_formatted.
11602 * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted.
11603 * ada-valprint.c (ada_val_print_num): Use
11604 val_print_scalar_formatted.
11605
11606 2017-06-12 Tom Tromey <tom@tromey.com>
11607
11608 * printcmd.c (print_scalar_formatted): Unify the two switches.
11609 Don't convert scalars to LONGEST.
11610
11611 2017-06-12 Tom Tromey <tom@tromey.com>
11612
11613 PR exp/16225:
11614 * valprint.h (print_decimal_chars): Update.
11615 * valprint.c (maybe_negate_by_bytes): New function.
11616 (print_decimal_chars): Add "is_signed" argument.
11617 * printcmd.c (print_scalar_formatted): Update.
11618
11619 2017-06-12 Tom Tromey <tom@tromey.com>
11620
11621 PR exp/16225:
11622 * valprint.h (print_binary_chars, print_hex_chars): Update.
11623 * valprint.c (val_print_type_code_int): Update.
11624 (print_binary_chars): Add "zero_pad" argument.
11625 (emit_octal_digit): New function.
11626 (print_octal_chars): Don't zero-pad.
11627 (print_decimal_chars): Likewise.
11628 (print_hex_chars): Add "zero_pad" argument.
11629 * sh64-tdep.c (sh64_do_fp_register): Update.
11630 * regcache.c (regcache::dump): Update.
11631 * printcmd.c (print_scalar_formatted): Update.
11632 * infcmd.c (default_print_one_register_info): Update.
11633
11634 2017-06-12 Pedro Alves <palves@redhat.com>
11635 Alan Hayward <alan.hayward@arm.com>
11636
11637 * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New.
11638 (mips_eabi_push_dummy_call): Rename local 'regsize' to
11639 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and
11640 use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it.
11641 Assert that abi_regsize bytes fit in 'ref_valbuf'.
11642
11643 2017-06-12 Pedro Alves <palves@redhat.com>
11644
11645 * dwarf2read.c (mapped_symtab::data): Now a vector of
11646 symtab_index_entry instead of vector of
11647 std::unique_ptr<symtab_index_entry>. All users adjusted to check
11648 whether an element's name is NULL instead of checking whether the
11649 element itself is NULL.
11650 (find_slot): Change return type. Adjust.
11651 (hash_expand, , add_index_entry, uniquify_cu_indices)
11652 (write_hash_table): Adjust.
11653
11654 2017-06-12 Pedro Alves <palves@redhat.com>
11655
11656 * dwarf2read.c (recursively_count_psymbols): New function.
11657 (write_psymtabs_to_index): Call it to compute number of psyms and
11658 pass estimate size of psyms_seen to unordered_set's ctor.
11659
11660 2017-06-12 Pedro Alves <palves@redhat.com>
11661
11662 * dwarf2read.c (write_hash_table): Check if key already exists
11663 before emplacing.
11664
11665 2017-06-12 Pedro Alves <palves@redhat.com>
11666
11667 * dwarf2read.c (data_buf::append_space): Rename to...
11668 (data_buf::grow): ... this, and make private. Adjust all callers.
11669 (data_buf::append_uint): New method.
11670 (add_address_entry, write_one_signatured_type)
11671 (write_psymtabs_to_index): Use it.
11672
11673 2017-06-12 Pedro Alves <palves@redhat.com>
11674
11675 * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete.
11676 (file_write (FILE *, const std::vector<Elem>&)): Delete.
11677 (data_buf::file_write): Call ::fwrite directly.
11678
11679 2017-06-12 Pedro Alves <palves@redhat.com>
11680
11681 * dwarf2read.c (uniquify_cu_indices): Use std::unique and
11682 std::vector::erase.
11683
11684 2017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11685
11686 Code cleanup: C++ify .gdb_index producer.
11687 * dwarf2read.c: Include <unordered_set> and <unordered_map>.
11688 (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type.
11689 (struct strtab_entry, hash_strtab_entry, eq_strtab_entry)
11690 (create_strtab, add_string): Remove.
11691 (file_write, data_buf): New.
11692 (struct symtab_index_entry): Use std::vector for cu_indices.
11693 (struct mapped_symtab): Use std::vector for data.
11694 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry)
11695 (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab):
11696 Remove.
11697 (find_slot): Change return type. Update it to the new data structures.
11698 (hash_expand, add_index_entry): Update it to the new data structures.
11699 (offset_type_compare): Remove.
11700 (uniquify_cu_indices): Update it to the new data structures.
11701 (c_str_view, c_str_view_hasher, vector_hasher): New.
11702 (add_indices_to_cpool): Remove.
11703 (write_hash_table): Update it to the new data structures.
11704 (struct psymtab_cu_index_map, hash_psymtab_cu_index)
11705 (eq_psymtab_cu_index): Remove.
11706 (psym_index_map): New typedef.
11707 (struct addrmap_index_data): Change addr_obstack pointer to data_buf
11708 reference and std::unordered_map for cu_index_htab.
11709 (add_address_entry, add_address_entry_worker, write_address_map)
11710 (write_psymbols): Update it to the new data structures.
11711 (write_obstack): Remove.
11712 (struct signatured_type_index_data): Change types_list to a data_buf
11713 reference and psyms_seen to a std::unordered_set reference.
11714 (write_one_signatured_type, recursively_write_psymbols)
11715 (write_psymtabs_to_index): Update it to the new data structures.
11716
11717 2017-06-11 Simon Marchi <simon.marchi@ericsson.com>
11718
11719 * NEWS (Changes since GDB 8.0): Announce {set,show} debug
11720 separate-debug-file commands.
11721 * symfile.h (separate_debug_file_debug): New global.
11722 * symfile.c (separate_debug_file_debug): New global.
11723 (separate_debug_file_exists, find_separate_debug_file): Add
11724 debug output.
11725 (_initialize_symfile): Add "set debug separate-debug-file"
11726 command.
11727 * build-id.c (build_id_to_debug_bfd,
11728 find_separate_debug_file_by_buildid): Add debug output.
11729
11730 2017-06-10 Simon Marchi <simon.marchi@polymtl.ca>
11731
11732 * gdbarch.sh (displaced_step_free_closure): Remove.
11733 * gdbarch.h, gdbarch.c: Re-generate.
11734 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set
11735 displaced_step_free_closure.
11736 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
11737 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
11738 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
11739 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
11740 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11741 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
11742 * arch-utils.h (simple_displaced_step_free_closure): Remove.
11743 * arch-utils.c (simple_displaced_step_free_closure): Remove.
11744 * infrun.c (displaced_step_clear): Call xfree instead of
11745 gdbarch_displaced_step_free_closure.
11746
11747 2017-06-08 Sergio Durigan Junior <sergiodj@redhat.com>
11748
11749 * common/common-utils.c (stringify_argv): Check for "arg[0] !=
11750 NULL".
11751
11752 2017-06-08 Alan Hayward <alan.hayward@arm.com>
11753
11754 * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add.
11755 (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE.
11756 (mn10300_push_dummy_call): Likewise.
11757
11758 2017-06-08 Alan Hayward <alan.hayward@arm.com>
11759
11760 * mi/mi-main.c (register_changed_p): Use value_contents_eq.
11761
11762 2017-06-08 Alan Hayward <alan.hayward@arm.com>
11763
11764 * mi/mi-main.c (register_changed_p): Use cooked_read_value.
11765
11766 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
11767
11768 * NEWS (Changes since GDB 8.0): Announce that GDBserver is now
11769 able to start inferiors using a shell.
11770 (New remote packets): Announce new packet "QStartupWithShell".
11771 * remote.c: Add PACKET_QStartupWithShell.
11772 (extended_remote_create_inferior): Handle new
11773 PACKET_QStartupWithShell.
11774 (remote_protocol_features) <QStartupWithShell>: New entry for
11775 PACKET_QStartupWithShell.
11776 (_initialize_remote): Call "add_packet_config_cmd" for
11777 QStartupShell.
11778
11779 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
11780 Pedro Alves <palves@redhat.com>
11781
11782 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h"
11783 and "nat/fork-inferior.h".
11784 * common/common-inferior.h: New file, with contents from
11785 "gdb/inferior.h".
11786 * commom/common-utils.c: Include "common-utils.h".
11787 (stringify_argv): New function.
11788 * common/common-utils.h (stringify_argv): New prototype.
11789 * configure.nat: Add "fork-inferior.o" as a dependency for
11790 "*linux*", "fbsd*" and "nbsd*" hosts.
11791 * corefile.c (get_exec_file): Update comment.
11792 * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior"
11793 instead of "startup_inferior".
11794 (darwin_create_inferior): Call "add_thread_silent" after
11795 "fork_inferior".
11796 * fork-child.c: Cleanup unnecessary includes.
11797 (SHELL_FILE): Move to "common/common-fork-child.c".
11798 (environ): Likewise.
11799 (exec_wrapper): Initialize.
11800 (get_exec_wrapper): New function.
11801 (breakup_args): Move to "common/common-fork-child.c"; rename to
11802 "breakup_args_for_exec".
11803 (escape_bang_in_quoted_argument): Move to
11804 "common/common-fork-child.c".
11805 (saved_ui): New variable.
11806 (prefork_hook): New function.
11807 (postfork_hook): Likewise.
11808 (postfork_child_hook): Likewise.
11809 (gdb_startup_inferior): Likewise.
11810 (fork_inferior): Move to "common/common-fork-child.c". Update
11811 function to support gdbserver.
11812 (startup_inferior): Likewise.
11813 * gdbcore.h (get_exec_file): Remove declaration.
11814 * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior"
11815 instead of "startup_inferior". Call "add_thread_silent" after
11816 "fork_inferior".
11817 * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h".
11818 (inf_ptrace_create_inferior): Call "gdb_startup_inferior"
11819 instead of "startup_inferior". Call "add_thread_silent" after
11820 "fork_inferior".
11821 * inferior.h: Include "common-inferior.h".
11822 (trace_start_error): Move to "common/common-utils.h".
11823 (trace_start_error_with_name): Likewise.
11824 (fork_inferior): Move prototype to "nat/fork-inferior.h".
11825 (startup_inferior): Likewise.
11826 (gdb_startup_inferior): New prototype.
11827 * nat/fork-inferior.c: New file, with contents from "fork-child.c".
11828 * nat/fork-inferior.h: New file.
11829 * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior"
11830 instead of "startup_inferior". Call "add_thread_silent" after
11831 "fork_inferior".
11832 * target.h (target_terminal_init): Move prototype to
11833 "target/target.h".
11834 (target_terminal_inferior): Likewise.
11835 (target_terminal_ours): Likewise.
11836 * target/target.h (target_terminal_init): New prototype, moved
11837 from "target.h".
11838 (target_terminal_inferior): Likewise.
11839 (target_terminal_ours): Likewise.
11840 * utils.c (gdb_flush_out_err): New function.
11841
11842 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
11843
11844 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h".
11845 * common/common-gdbthread.h: New file, with parts from
11846 "gdb/gdbthread.h".
11847 * gdbthread.h: Include "common-gdbthread.h".
11848 (switch_to_thread): Moved to "common/common-gdbthread.h".
11849
11850 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
11851
11852 * Makefile.in (SFILES): Add "common/job-control.c".
11853 (HFILES_NO_SRCDIR): Add "common/job-control.h".
11854 (COMMON_OBS): Add "job-control.o".
11855 * common/job-control.c: New file, with contents from
11856 "gdb/inflow.c".
11857 * common/job-control.h: New file, with contents from "terminal.h".
11858 * fork-child.c: Include "job-control.h".
11859 * inflow.c: Include "job-control.h".
11860 (gdb_setpgid): Move to "common/common-inflow.c".
11861 (_initialize_inflow): Move setting of "job_control" to
11862 "handle_job_control".
11863 * terminal.h (job_control): Moved to "common/common-terminal.h".
11864 (gdb_setpgid): Likewise.
11865 * top.c: Include "job_control.h".
11866 * utils.c: Likewise.
11867 (job_control): Moved to "job-control.c".
11868
11869 2017-06-07 Pedro Alves <palves@redhat.com>
11870
11871 * Makefile.in (SFILES): Add gdb_regex.c.
11872 (COMMON_OBS): Add gdb_regex.o.
11873 * ada-lang.c (ada_add_standard_exceptions)
11874 (ada_add_exceptions_from_frame, name_matches_regex)
11875 (ada_add_global_exceptions, ada_exceptions_list_1): Change regex
11876 parameter type to compiled_regex. Adjust.
11877 (ada_exceptions_list): Use compiled_regex.
11878 * break-catch-throw.c (exception_catchpoint::pattern): Now a
11879 std::unique_ptr<compiled_regex>.
11880 (exception_catchpoint::~exception_catchpoint): Remove regfree
11881 call.
11882 (check_status_exception_catchpoint): Adjust to use compiled_regex.
11883 (handle_gnu_v3_exceptions): Adjust to use compiled_regex.
11884 * breakpoint.c (solib_catchpoint::compiled): Now a
11885 std::unique_ptr<compiled_regex>.
11886 (solib_catchpoint::~solib_catchpoint): Remove regfree call.
11887 (check_status_catch_solib): Adjust to use compiled_regex.
11888 (add_solib_catchpoint): Adjust to use compiled_regex.
11889 * cli/cli-cmds.c (apropos_command): Use compiled_regex.
11890 * cli/cli-decode.c (apropos_cmd): Change regex parameter to
11891 compiled_regex reference. Adjust to use it.
11892 * cli/cli-decode.h: Remove struct re_pattern_buffer forward
11893 declaration. Include "gdb_regex.h".
11894 (apropos_cmd): Change regex parameter to compiled_regex reference.
11895 * gdb_regex.c: New file.
11896 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete
11897 declarations.
11898 (class compiled_regex): New.
11899 * linux-tdep.c: Include "common/gdb_optional.h".
11900 (struct mapping_regexes): New, factored out from
11901 mapping_is_anonymous_p, and adjusted to use compiled_regex.
11902 (mapping_is_anonymous_p): Use mapping_regexes wrapped in a
11903 gdb::optional and remove cleanups. Adjust to compiled_regex.
11904 * probe.c: Include "common/gdb_optional.h".
11905 (collect_probes): Use compiled_regex and gdb::optional and remove
11906 cleanups.
11907 * skip.c: Include "common/gdb_optional.h".
11908 (skiplist_entry::compiled_function_regexp): Now a
11909 gdb::optional<compiled_regex>.
11910 (skiplist_entry::compiled_function_regexp_is_valid): Delete field.
11911 (free_skiplist_entry): Remove regfree call.
11912 (compile_skip_regexp, skip_rfunction_p): Adjust to use
11913 compiled_regex and gdb::optional.
11914 * symtab.c: Include "common/gdb_optional.h".
11915 (search_symbols): Use compiled_regex and gdb::optional.
11916 * utils.c (do_regfree_cleanup, make_regfree_cleanup)
11917 (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved
11918 to gdb_regex.c.
11919
11920 2017-06-07 Alan Hayward <alan.hayward@arm.com>
11921
11922 * regcache.c (regcache::save): Avoid buffer use.
11923 (regcache::dump): Likewise.
11924
11925 2017-06-07 Alan Hayward <alan.hayward@arm.com>
11926
11927 * sh-tdep.c (sh_pseudo_register_read): Remove
11928 MAX_REGISTER_SIZE.
11929 (sh_pseudo_register_write): Likewise.
11930 * sh64-tdep.c (sh64_pseudo_register_read): Likewise.
11931 (sh64_pseudo_register_write): Likewise
11932
11933 2017-06-07 Alan Hayward <alan.hayward@arm.com>
11934
11935 * aarch64-tdep.c (aarch64_store_return_value): Use
11936 V_REGISTER_SIZE.
11937 (aarch64_pseudo_read_value): Likewise.
11938 (aarch64_pseudo_write): Likewise.
11939
11940 2017-06-06 Yao Qi <yao.qi@linaro.org>
11941
11942 * regformats/regdef.h (set_register_cache): Remove the
11943 declaration.
11944
11945 2017-06-06 Alan Hayward <alan.hayward@arm.com>
11946
11947 * frame.c (frame_unwind_register_signed): Use
11948 frame_unwind_register_value.
11949
11950 2017-06-06 Pedro Alves <palves@redhat.com>
11951
11952 PR breakpoints/21553
11953 * breakpoint.c (create_breakpoints_sal_default)
11954 (init_breakpoint_sal, create_breakpoint_sal): Use
11955 gdb::unique_xmalloc_ptr for string parameters.
11956 (create_breakpoint): Constify 'extra_string' and 'cond_string'
11957 parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
11958 (base_breakpoint_create_breakpoints_sal)
11959 (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
11960 (strace_marker_create_breakpoints_sal)
11961 (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
11962 string parameters.
11963 * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
11964 gdb::unique_xmalloc_ptr for string parameters.
11965 (create_breakpoint): Constify 'extra_string' and 'cond_string'
11966 parameters.
11967
11968 2017-06-06 Alan Hayward <alan.hayward@arm.com>
11969
11970 * alpha-tdep.c (alpha_register_to_value): Use
11971 get_frame_register_value.
11972 (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
11973
11974 2017-06-06 Alan Hayward <alan.hayward@arm.com>
11975
11976 * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
11977 (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
11978 (ia64_value_to_register): Likewise.
11979 (ia64_extract_return_value): Likewise.
11980 (ia64_store_return_value): Likewise.
11981 (ia64_push_dummy_call): Likewise.
11982
11983 2017-06-04 Joel Brobecker <brobecker@adacore.com>
11984
11985 GDB 8.0 released.
11986
11987 2017-06-03 Simon Marchi <simon.marchi@ericsson.com>
11988
11989 * x86-linux-nat.c (struct arch_lwp_info): Remove.
11990
11991 2017-06-03 Simon Marchi <simon.marchi@polymtl.ca>
11992
11993 * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
11994 parameter.
11995 (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
11996
11997 2017-06-02 Simon Marchi <simon.marchi@ericsson.com>
11998
11999 * event-loop.c (poll_timers): Unallocate timer using delete
12000 instead of xfree.
12001
12002 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
12003
12004 * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
12005 (struct breakpoint) <~breakpoint>: New.
12006 (struct watchpoint): Inherit from breakpoint.
12007 <~watchpoint>: New.
12008 <base>: Remove.
12009 (struct tracepoint): Inherit from breakpoint.
12010 <base>: Remove.
12011 * breakpoint.c (longjmp_breakpoint_ops): Remove.
12012 (struct longjmp_breakpoint): Inherit from breakpoint.
12013 <~longjmp_breakpoint>: New.
12014 <base>: Remove.
12015 (new_breakpoint_from_type): Remove casts.
12016 (watchpoint_in_thread_scope): Remove reference to base field.
12017 (watchpoint_del_at_next_stop): Likewise.
12018 (update_watchpoint): Likewise.
12019 (watchpoint_check): Likewise.
12020 (bpstat_check_watchpoint): Likewise.
12021 (set_longjmp_breakpoint): Likewise.
12022 (struct fork_catchpoint): Inherit from breakpoint.
12023 <base>: Remove.
12024 (struct solib_catchpoint): Inherit from breakpoint.
12025 <~solib_catchpoint>: New.
12026 <base>: Remove.
12027 (dtor_catch_solib): Change to ...
12028 (solib_catchpoint::~solib_catchpoint): ... this.
12029 (breakpoint_hit_catch_solib): Remove reference to base field.
12030 (add_solib_catchpoint): Likewise.
12031 (create_fork_vfork_event_catchpoint): Likewise.
12032 (struct exec_catchpoint): Inherit from breakpoint.
12033 <~exec_catchpoint>: New.
12034 <base>: Remove.
12035 (dtor_catch_exec): Change to ...
12036 (exec_catchpoint::~exec_catchpoint): ... this.
12037 (dtor_watchpoint): Change to ...
12038 (watchpoint::~watchpoint): ... this.
12039 (watch_command_1): Remove reference to base field.
12040 (catch_exec_command_1): Likewise.
12041 (base_breakpoint_dtor): Change to ...
12042 (breakpoint::~breakpoint): ... this.
12043 (base_breakpoint_ops): Remove dtor field value.
12044 (longjmp_bkpt_dtor): Change to ...
12045 (longjmp_breakpoint::~longjmp_breakpoint): ... this.
12046 (strace_marker_create_breakpoints_sal): Remove reference to base
12047 field.
12048 (delete_breakpoint): Don't manually call breakpoint destructor.
12049 (create_tracepoint_from_upload): Remove reference to base field.
12050 (trace_pass_set_count): Likewise.
12051 (initialize_breakpoint_ops): Don't initialize
12052 momentary_breakpoint_ops, don't set dtors.
12053 * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
12054 <~ada_catchpoint>: New.
12055 <base>: Remove.
12056 (create_excep_cond_exprs): Remove reference to base field.
12057 (dtor_exception): Change to ...
12058 (ada_catchpoint::~ada_catchpoint): ... this.
12059 (dtor_catch_exception): Remove.
12060 (dtor_catch_exception_unhandled): Remove.
12061 (dtor_catch_assert): Remove.
12062 (create_ada_exception_catchpoint): Remove reference to base
12063 field.
12064 (initialize_ada_catchpoint_ops): Don't set dtors.
12065 * break-catch-sig.c (struct signal_catchpoint): Inherit from
12066 breakpoint.
12067 <~signal_catchpoint>: New.
12068 <base>: Remove.
12069 (signal_catchpoint_dtor): Change to ...
12070 (signal_catchpoint::~signal_catchpoint): ... this.
12071 (create_signal_catchpoint): Remove reference to base field.
12072 (initialize_signal_catchpoint_ops): Don't set dtor.
12073 * break-catch-syscall.c (struct syscall_catchpoint): Inherit
12074 from breakpoint.
12075 <~syscall_catchpoint>: New.
12076 <base>: Remove.
12077 (dtor_catch_syscall): Change to ...
12078 (syscall_catchpoint::~syscall_catchpoint): ... this.
12079 (create_syscall_event_catchpoint): Remove reference to base
12080 field.
12081 (initialize_syscall_catchpoint_ops): Don't set dtor.
12082 * break-catch-throw.c (struct exception_catchpoint): Inherit
12083 from breakpoint.
12084 <~exception_catchpoint>: New.
12085 <base>: Remove.
12086 (dtor_exception_catchpoint): Change to ...
12087 (exception_catchpoint::~exception_catchpoint): ... this.
12088 (handle_gnu_v3_exceptions): Remove reference to base field.
12089 (initialize_throw_catchpoint_ops): Don't set dtor.
12090 * ctf.c (ctf_get_traceframe_address): Remove reference to base
12091 field.
12092 * remote.c (remote_get_tracepoint_status): Likewise.
12093 * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
12094 * tracefile.c (tracefile_fetch_registers): Likewise.
12095 * tracepoint.c (actions_command): Likewise.
12096 (validate_actionline): Likewise.
12097 (tfind_1): Likewise.
12098 (get_traceframe_location): Likewise.
12099 (find_matching_tracepoint_location): Likewise.
12100 (parse_tracepoint_status): Likewise.
12101 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
12102
12103 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
12104
12105 * breakpoint.c (struct longjmp_breakpoint): New struct.
12106 (is_tracepoint_type): Change return type to bool.
12107 (is_longjmp_type): New function.
12108 (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
12109 (set_raw_breakpoint_without_location): Use
12110 new_breakpoint_from_type.
12111 (set_raw_breakpoint): Likewise.
12112
12113 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
12114
12115 * breakpoint.c (new_breakpoint_from_type): New function.
12116 (create_breakpoint_sal): Use new_breakpoint_from_type and
12117 unique_ptr.
12118 (create_breakpoint): Likewise.
12119
12120 2017-05-31 Simon Marchi <simon.marchi@ericsson.com>
12121
12122 * memattr.c (mem_info_command): Rename to ...
12123 (info_mem_command): ... this.
12124 (mem_enable_command): Rename to ...
12125 (enable_mem_command): ... this.
12126 (mem_disable_command): Rename to ...
12127 (disable_mem_command): ... this.
12128 (mem_delete_command): Rename to ...
12129 (delete_mem_command): ... this.
12130 (_initialize_mem): Adjust function names.
12131
12132 2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
12133
12134 * btrace.c (handle_pt_insn_events): New.
12135 (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into
12136 STATUS. Split into this and ...
12137 (handle_pt_insn_event_flags): ... this.
12138
12139 2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
12140
12141 * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
12142 and struct pt_insn.resynced.
12143 * configure: Regenerated.
12144 * config.in: Regenerated.
12145
12146 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12147
12148 * btrace.c (ftrace_find_call_by_number): New function.
12149 (ftrace_new_function): Store objects, not pointers.
12150 (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
12151 ftrace_new_gap, ftrace_update_function,
12152 ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
12153 btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
12154 btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
12155 btrace_ends_with_single_insn, btrace_call_get): Account for
12156 btrace_thread_info::functions now storing objects.
12157 * btrace.h (struct btrace_thread_info): Add constructor.
12158 (struct btrace_thread_info) <functions>: Make std::vector.
12159 (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
12160 Initialize with default values.
12161 * record-btrace.c (record_btrace_frame_sniffer): Account for
12162 btrace_thread_info::functions now storing objects.
12163
12164 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12165
12166 * btrace.c: Remove typedef bfun_s.
12167 (ftrace_new_gap): Directly add gaps to the list of gaps.
12168 (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
12169 ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
12170 btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
12171 instead of gdb VEC.
12172
12173 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12174
12175 * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
12176 ftrace_bridge_gap): Replace references to btrace_thread_info::segment
12177 with btrace_thread_info::next_segment and
12178 btrace_thread_info::prev_segment.
12179 * btrace.h: Remove struct btrace_func_link.
12180 (struct btrace_function): Replace pair of function segment pointers
12181 with pair of indices.
12182 * python/py-record-btrace.c (btpy_call_prev_sibling,
12183 btpy_call_next_sibling): Replace references to
12184 btrace_thread_info::segment with btrace_thread_info::next_segment and
12185 btrace_thread_info::prev_segment.
12186 * record-btrace.c (record_btrace_frame_this_id): Use
12187 btrace_find_call_by_number.
12188
12189 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12190
12191 * btrace.c (ftrace_new_function, ftrace_fixup_level,
12192 ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
12193 btrace_insn_next, btrace_insn_prev): Remove references to
12194 btrace_thread_info::flow.
12195 * btrace.h (struct btrace_function): Remove FLOW.
12196
12197 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12198
12199 * btrace.c (ftrace_find_call_by_number): New function.
12200 (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
12201 ftrace_get_caller, ftrace_find_call, ftrace_new_return,
12202 ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
12203 ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
12204 index.
12205 * btrace.h (struct btrace_function): Turn UP into an index.
12206 * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
12207 as an index.
12208 * record-btrace.c (record_btrace_frame_unwind_stop_reason,
12209 record_btrace_frame_prev_register, record_btrace_frame_sniffer,
12210 record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
12211
12212 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12213
12214 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
12215 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
12216 ftrace_update_function, ftrace_compute_global_level_offset,
12217 btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
12218 btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
12219 btrace_insn_end, btrace_is_empty): Remove references to
12220 btrace_thread_info::begin and btrace_thread_info::end.
12221 * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
12222 (struct btrace_thread_info) <functions>: Adjust comment.
12223 * record-btrace.c (record_btrace_start_replaying): Remove reference to
12224 btrace_thread_info::begin.
12225
12226 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12227
12228 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
12229 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
12230 ftrace_update_function): Remove arguments that implicitly were always
12231 BTINFO->END.
12232 (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
12233 Don't pass BTINFO->END.
12234
12235 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12236
12237 * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
12238 btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
12239 btrace_find_insn_by_number): Replace function segment pointer with
12240 index.
12241 (btrace_insn_cmp): Simplify.
12242 * btrace.h: (struct btrace_insn_iterator) Rename index to
12243 insn_index. Replace function segment pointer with index into function
12244 segment vector.
12245 * record-btrace.c (record_btrace_call_history): Replace function
12246 segment pointer use with index.
12247 (record_btrace_frame_sniffer): Retrieve function call segment through
12248 vector.
12249 (record_btrace_set_replay): Remove defunc't safety check.
12250
12251 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12252
12253 * btrace.c (btrace_ends_with_single_insn): New function.
12254 (btrace_call_get, btrace_call_number, btrace_call_begin,
12255 btrace_call_end, btrace_call_next, btrace_call_prev,
12256 btrace_find_call_by_number): Use index into call segment vector
12257 instead of pointer.
12258 (btrace_call_cmp): Simplify.
12259 * btrace.h (struct btrace_call_iterator): Replace function call segment
12260 pointer with index into vector.
12261 * record-btrace.c (record_btrace_call_history): Use index instead of
12262 pointer.
12263
12264 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12265
12266 * btrace.c (btrace_insn_begin, btrace_insn_end,
12267 btrace_find_insn_by_number): Add btinfo to iterator.
12268 * btrace.h (struct btrace_insn_iterator): Add btinfo.
12269
12270 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12271
12272 * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
12273 and save pointers directly.
12274 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
12275 ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
12276 ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for
12277 changed signature of functions.
12278 (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
12279 (btrace_fetch): Remove code that adds btrace_function pointers to
12280 vector of btrace_functions.
12281 (btrace_clear): Simplify freeing vector of btrace_functions.
12282
12283 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12284
12285 * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
12286 Replace VEC_* with std::vector functions.
12287 * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
12288 (struct btrace_thread_info)<functions>: Change type to std::vector.
12289
12290 2017-05-30 Simon Marchi <simon.marchi@ericsson.com>
12291
12292 * NEWS (Changes in GDB 8.0): Remove extra empty line. Move
12293 "Removed targets and native configurations" up. Merge duplicate
12294 "New commands" sub-sections. Add "New options" sub-sections.
12295
12296 2017-05-26 Alan Hayward <alan.hayward@arm.com>
12297
12298 * defs.h (copy_integer_to_size): New declaration.
12299 * findvar.c (copy_integer_to_size): New function.
12300 (do_cint_test): New selftest function.
12301 (copy_integer_to_size_test): Likewise.
12302 (_initialize_findvar): Likewise.
12303 * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
12304 (mips_fbsd_collect_reg): Use raw_collect_integer.
12305 * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
12306 (mips64_fill_gregset): Use raw_collect_integer
12307 (mips64_fill_fpregset): Use raw_supply_integer.
12308 * regcache.c (regcache::raw_supply_integer): New function.
12309 (regcache::raw_collect_integer): Likewise.
12310 * regcache.h: (regcache::raw_supply_integer): New declaration.
12311 (regcache::raw_collect_integer): Likewise.
12312
12313 2017-05-24 Yao Qi <yao.qi@linaro.org>
12314
12315 * Makefile.in (SFILES): Add gdbarch-selftests.c.
12316 (COMMON_OBS): Add gdbarch-selftests.o.
12317 * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
12318 * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
12319 * gdbarch-selftests.c: New file.
12320 * regcache.h (regcache) <~regcache>: Mark it virtual if
12321 GDB_SELF_TEST.
12322 <raw_write>: Likewise.
12323
12324 2017-05-24 Yao Qi <yao.qi@linaro.org>
12325
12326 * regcache.c (current_regcache): Change it to
12327 regcache::current_regcache.
12328 (regcache_observer_target_changed): Update.
12329 (regcache_thread_ptid_changed): Make it a regcache static
12330 method.
12331 (regcache_thread_ptid_changed): Update.
12332 (class regcache_access): New.
12333 (current_regcache_test): Update.
12334 (_initialize_regcache): Update.
12335 * regcache.h: Include forward_list.
12336 (regcache): Declare regcache_thread_ptid_changed and declare
12337 registers_changed_ptid as friend.
12338
12339 2017-05-24 Yao Qi <yao.qi@linaro.org>
12340
12341 * i387-tdep.c (i387_register_to_value): Use register_size
12342 instead of TYPE_LENGTH.
12343 * m68k-tdep.c (m68k_register_to_value): Likewise.
12344
12345 2017-05-24 Yao Qi <yao.qi@linaro.org>
12346
12347 * i387-tdep.c (i387_convert_register_p): Return false if type
12348 code isn't TYPE_CODE_FLT.
12349
12350 2017-05-24 Yao Qi <yao.qi@linaro.org>
12351
12352 * alpha-tdep.c (alpha_convert_register_p): Return true if type
12353 length is 4.
12354 (alpha_register_to_value): Remove type length check.
12355 (alpha_value_to_register): Likewise.
12356
12357 2017-05-24 Yao Qi <yao.qi@linaro.org>
12358
12359 * ia64-tdep.c (ia64_convert_register_p): Check type's code is
12360 TYPE_CODE_FLT.
12361
12362 2017-05-24 Yao Qi <yao.qi@linaro.org>
12363
12364 * m68k-tdep.c (m68k_convert_register_p): Check type's code is
12365 TYPE_CODE_FLT or not.
12366
12367 2017-05-24 Yao Qi <yao.qi@linaro.org>
12368
12369 * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
12370 * avr-tdep.c (avr_gdbarch_init): Likewise.
12371 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12372 * cris-tdep.c (cris_gdbarch_init): Likewise.
12373 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
12374 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12375 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12376 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
12377 * mep-tdep.c (mep_gdbarch_init): Likewise.
12378 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12379 * mips-tdep.c (mips_gdbarch_init): Likewise.
12380 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
12381 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12382 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
12383 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12384 * v850-tdep.c (v850_gdbarch_init): Likewise.
12385
12386 2017-05-24 Yao Qi <yao.qi@linaro.org>
12387
12388 * selftest-arch.c (tests_with_arch): Call registers_changed
12389 and reinit_frame_cache.
12390 * selftest.c (run_self_tests): Likewise.
12391
12392 2017-05-24 Yao Qi <yao.qi@linaro.org>
12393
12394 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.
12395 (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn.
12396
12397 2017-05-24 Yao Qi <yao.qi@linaro.org>
12398
12399 * rl78-tdep.c (rl78_gdbarch_init): Don't call
12400 set_gdbarch_print_insn.
12401
12402 2017-05-24 Yao Qi <yao.qi@linaro.org>
12403
12404 * h8300-tdep.c (h8300_gdbarch_init): Don't call
12405 set_gdbarch_print_insn.
12406
12407 2017-05-24 Yao Qi <yao.qi@linaro.org>
12408
12409 * alpha-tdep.c (alpha_gdbarch_init): Don't call
12410 set_gdbarch_print_insn.
12411 * arc-tdep.c (arc_gdbarch_init): Likewise.
12412 * arch-utils.c: include dis-asm.h.
12413 (default_print_insn): New function.
12414 * arch-utils.h (default_print_insn): Declare.
12415 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
12416 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12417 * cris-tdep.c (cris_delayed_get_disassembler): Remove.
12418 (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
12419 * frv-tdep.c (frv_gdbarch_init): Likewise.
12420 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
12421 * gdbarch.sh (print_insn): Use default_print_insn.
12422 * gdbarch.c: Regenerated.
12423 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12424 * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
12425 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12426 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
12427 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12428 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
12429 (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
12430 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
12431 * m88k-tdep.c (m88k_gdbarch_init): Likewise.
12432 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12433 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
12434 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12435 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
12436 * mt-tdep.c (mt_gdbarch_init): Likewise.
12437 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
12438 * nios2-tdep.c (nios2_print_insn): Remove.
12439 (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
12440 * rx-tdep.c (rx_gdbarch_init): Likewise.
12441 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12442 * score-tdep.c (score_print_insn): Remove.
12443 (score_gdbarch_init): Don't call set_gdbarch_print_insn.
12444 * sh-tdep.c (sh_gdbarch_init): Likewise.
12445 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12446 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12447 * tic6x-tdep.c (tic6x_print_insn): Remove.
12448 (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
12449 * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
12450 * v850-tdep.c (v850_gdbarch_init): Likewise.
12451 * vax-tdep.c (vax_gdbarch_init): Likewise.
12452 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
12453 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
12454
12455 2017-05-23 John Baldwin <jhb@FreeBSD.org>
12456
12457 * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
12458 (MIPS_FP0_REGNUM): Remove.
12459 (MIPS_FSR_REGNUM): Remove.
12460 (mips_fbsd_supply_fpregs): Use mips_regnum.
12461 (mips_fbsd_supply_gregs): Likewise.
12462 (mips_fbsd_collect_fpregs): Likewise.
12463 (mips_fbsd_collect_gregs): Likewise.
12464
12465 2017-05-23 John Baldwin <jhb@FreeBSD.org>
12466
12467 * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
12468 (getpfpregs_supplies): New function.
12469 (mips_fbsd_fetch_inferior_registers): Remove early exit and use
12470 getfpregs_supplies.
12471 (mips_fbsd_store_inferior_registers): Likewise.
12472
12473 2017-05-22 Pedro Alves <palves@redhat.com>
12474
12475 * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
12476 maintainer.
12477
12478 2017-05-22 Alan Hayward <alan.hayward@arm.com>
12479
12480 * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
12481 (store_register): Likewise.
12482 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
12483 (get_decimal_float_return_value): Likewise.
12484 (do_ppc_sysv_return_value): Likewise.
12485 (ppc64_sysv_abi_push_integer): Likewise.
12486 (ppc64_sysv_abi_push_freg): Likewise.
12487 (ppc64_sysv_abi_return_value_base): Likewise.
12488 (ppc64_sysv_abi_return_value): Likewise.
12489 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
12490 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
12491 * rs6000-nat.c: Likewise.
12492 * rs6000-tdep.c (rs6000_register_to_value): Likewise.
12493 (rs6000_value_to_register): Likewise.
12494 * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
12495
12496 2017-05-21 Tom Tromey <tom@tromey.com>
12497
12498 PR rust/21466:
12499 * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
12500 arrays as "[T]", not "[T; ]".
12501
12502 2017-05-19 Tom Tromey <tom@tromey.com>
12503
12504 PR rust/21484:
12505 * rust-lang.c (exp_descriptor_rust): New function.
12506 (rust_language_defn): Use it.
12507 * p-lang.c (pascal_language_defn): Update.
12508 * opencl-lang.c (opencl_language_defn): Update.
12509 * objc-lang.c (objc_language_defn): Update.
12510 * m2-lang.c (m2_language_defn): Update.
12511 * language.h (struct language_defn)
12512 <la_watch_location_expression>: New member.
12513 * language.c (unknown_language_defn, auto_language_defn)
12514 (local_language_defn): Update.
12515 * go-lang.c (go_language_defn): Update.
12516 * f-lang.c (f_language_defn): Update.
12517 * d-lang.c (d_language_defn): Update.
12518 * c-lang.h (c_watch_location_expression): Declare.
12519 * c-lang.c (c_watch_location_expression): New function.
12520 (c_language_defn, cplus_language_defn, asm_language_defn)
12521 (minimal_language_defn): Use it.
12522 * breakpoint.c (watch_command_1): Call
12523 la_watch_location_expression.
12524 * ada-lang.c (ada_language_defn): Update.
12525
12526 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12527
12528 PR tui/21482
12529 * gdb_curses.h (NOMACROS): Define.
12530 (NCURSES_NOMACROS): Define.
12531
12532 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12533
12534 PR tui/21482
12535 * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
12536 arg to char *.
12537 * tui/tui-wingeneral.c (box_win): Likewise.
12538 * tui/tui-winsource.c (tui_erase_source_content): Likewise.
12539 (tui_show_source_line): Likewise.
12540 (tui_show_exec_info_content): Likewise.
12541
12542 2017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
12543
12544 * sparc-tdep.c (sparc_structure_return_p)
12545 (sparc_arg_on_registers_p): New functions.
12546 (sparc32_store_arguments): Use them.
12547 * sparc64-tdep.c (sparc64_16_byte_align_p)
12548 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
12549 Handle TYPE_CODE_ARRAY.
12550
12551 2017-05-17 Yao Qi <yao.qi@linaro.org>
12552
12553 * cli/cli-decode.c (add_alias_cmd): New function.
12554 * command.h (add_alias_cmd): Declare.
12555 * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
12556 instead call add_alias_cmd.
12557
12558 2017-05-17 Pedro Alves <palves@redhat.com>
12559
12560 * Makefile.in (nat_extra_makefile_frag): Rename to ...
12561 (nat_makefile_frag): ... this. All references updated.
12562 * configure.ac: Likewise.
12563 * configure.nat: Likewise. Enhance comments.
12564 * configure: Regenerate.
12565
12566 2017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12567
12568 * procfs.c (procfs_create_inferior): Change prototype to match
12569 definition.
12570
12571 2017-05-13 Eli Zaretskii <eliz@gnu.org>
12572
12573 * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
12574 C++ compiler warning.
12575
12576 2017-05-12 Tom Tromey <tom@tromey.com>
12577
12578 PR rust/21483:
12579 * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
12580 recurse, just call value_struct_elt directly.
12581
12582 2017-05-12 Tom Tromey <tom@tromey.com>
12583
12584 * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
12585 OP_RUST_ARRAY>: Fix.
12586
12587 2017-05-12 Tom Tromey <tom@tromey.com>
12588
12589 * rust-lang.c (rust_print_subexp): Replace "return" with "break".
12590
12591 2017-05-09 Yao Qi <yao.qi@linaro.org>
12592
12593 * regcache.c: Include <forward_list>.
12594 (struct regcache_list): Remove.
12595 (current_regcache): Update.
12596 (get_thread_arch_aspace_regcache): Update for std::forward_list.
12597 (regcache_thread_ptid_changed): Likewise.
12598 (registers_changed_ptid): Likewise.
12599 (current_regcache_size): Likewise.
12600
12601 2017-05-09 Yao Qi <yao.qi@linaro.org>
12602
12603 * regcache.c [GDB_SELF_TEST]: Include selftest.h.
12604 (current_regcache_size): New function.
12605 (current_regcache_test): New function.
12606 (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
12607
12608 2017-05-08 Alan Hayward <alan.hayward@arm.com>
12609
12610 * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
12611 (print_gp_register_row): Use get_frame_register_value.
12612
12613 2017-05-08 Alan Hayward <alan.hayward@arm.com>
12614
12615 * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
12616 (mips_supply_fpregset): Likewise.
12617 (mips64_supply_gregset): Likewise.
12618
12619 2017-05-08 Alan Hayward <alan.hayward@arm.com>
12620
12621 * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
12622 regcache->raw_supply_zeroed.
12623
12624 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
12625
12626 * configure.nat: Rearrange 'case' statements to match
12627 host before cpu.
12628
12629 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
12630
12631 * Makefile.in: Remove "@host_makefile_frag@". Add variables
12632 NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
12633 NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
12634 "@nat_extra_makefile_frag@".
12635 (Makefile): Remove dependency on "@frags@".
12636 ($(GNULIB_BUILDDIR)/Makefile): Likewise.
12637 (data-directory/Makefile): Likewise.
12638 * config/aarch64/linux.mh: Deleted; moved contents to
12639 "gdb/configure.nat".
12640 * config/alpha/alpha-linux.mh: Likewise.
12641 * config/alpha/nbsd.mh: Likewise.
12642 * config/arm/linux.mh: Likewise.
12643 * config/arm/nbsdelf.mh: Likewise.
12644 * config/i386/cygwin.mh: Likewise.
12645 * config/i386/cygwin64.mh: Likewise.
12646 * config/i386/darwin.mh: Likewise.
12647 * config/i386/fbsd.mh: Likewise.
12648 * config/i386/fbsd64.mh: Likewise.
12649 * config/i386/go32.mh: Likewise.
12650 * config/i386/i386gnu.mh: Likewise.
12651 * config/i386/i386sol2.mh: Likewise.
12652 * config/i386/linux.mh: Likewise.
12653 * config/i386/linux64.mh: Likewise.
12654 * config/i386/mingw.mh: Likewise.
12655 * config/i386/mingw64.mh: Likewise.
12656 * config/i386/nbsd64.mh: Likewise.
12657 * config/i386/nbsdelf.mh: Likewise.
12658 * config/i386/nto.mh: Likewise.
12659 * config/i386/obsd.mh: Likewise.
12660 * config/i386/obsd64.mh: Likewise.
12661 * config/i386/sol2-64.mh: Likewise.
12662 * config/ia64/linux.mh: Likewise.
12663 * config/m32r/linux.mh: Likewise.
12664 * config/m68k/linux.mh: Likewise.
12665 * config/m68k/nbsdelf.mh: Likewise.
12666 * config/m68k/obsd.mh: Likewise.
12667 * config/m88k/obsd.mh: Likewise.
12668 * config/mips/fbsd.mh: Likewise.
12669 * config/mips/linux.mh: Likewise.
12670 * config/mips/nbsd.mh: Likewise.
12671 * config/mips/obsd64.mh: Likewise.
12672 * config/pa/linux.mh: Likewise.
12673 * config/pa/nbsd.mh: Likewise.
12674 * config/pa/obsd.mh: Likewise.
12675 * config/powerpc/aix.mh: Likewise.
12676 * config/powerpc/fbsd.mh: Likewise.
12677 * config/powerpc/linux.mh: Likewise.
12678 * config/powerpc/nbsd.mh: Likewise.
12679 * config/powerpc/obsd.mh: Likewise.
12680 * config/powerpc/ppc64-linux.mh: Likewise.
12681 * config/powerpc/spu-linux.mh: Likewise.
12682 * config/s390/linux.mh: Likewise.
12683 * config/sh/nbsd.mh: Likewise.
12684 * config/sparc/fbsd.mh: Likewise.
12685 * config/sparc/linux.mh: Likewise.
12686 * config/sparc/linux64.mh: Likewise.
12687 * config/sparc/nbsd64.mh: Likewise.
12688 * config/sparc/nbsdelf.mh: Likewise.
12689 * config/sparc/obsd64.mh: Likewise.
12690 * config/sparc/sol2.mh: Likewise.
12691 * config/tilegx/linux.mh: Likewise.
12692 * config/vax/nbsdelf.mh: Likewise.
12693 * config/vax/obsd.mh: Likewise.
12694 * config/xtensa/linux.mh: Likewise.
12695 * config/i386/i386gnu.mn: New file, with excerpts from
12696 "config/i386/i386gnu.mh".
12697 * configure: Regenerate.
12698 * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
12699 *.mh files under "gdb/config".
12700 * configure.nat: New file, with contents from the
12701 "gdb/config/*/*.mh" files.
12702
12703 2017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
12704
12705 * btrace.c (btrace_clear): Free insn vector.
12706
12707 2017-05-05 Pedro Alves <palves@redhat.com>
12708
12709 * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
12710 * configure: Regenerate.
12711
12712 2017-05-04 Pedro Alves <palves@redhat.com>
12713
12714 * Makefile.in (SFILES): Add progspace-and-thread.c.
12715 (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
12716 (COMMON_OBS): Add progspace-and-thread.o.
12717 * breakpoint.c: Include "progspace-and-thread.h".
12718 (update_inserted_breakpoint_locations)
12719 (insert_breakpoint_locations, create_longjmp_master_breakpoint):
12720 Use scoped_restore_current_pspace_and_thread.
12721 (create_std_terminate_master_breakpoint): Use
12722 scoped_restore_current_program_space.
12723 (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
12724 (print_breakpoint_location): Use
12725 scoped_restore_current_program_space.
12726 (bp_loc_is_permanent): Use
12727 scoped_restore_current_pspace_and_thread.
12728 (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
12729 (download_tracepoint_locations): Use
12730 scoped_restore_current_pspace_and_thread.
12731 (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
12732 * exec.c (exec_close_1): Use scoped_restore_current_program_space.
12733 (enum step_over_calls_kind): Moved from inferior.h.
12734 (class scoped_restore_current_thread): New class.
12735 * gdbthread.h (make_cleanup_restore_current_thread): Delete
12736 declaration.
12737 (scoped_restore_current_thread): New class.
12738 * infcmd.c: Include "common/gdb_optional.h".
12739 (continue_1, proceed_after_attach): Use
12740 scoped_restore_current_thread.
12741 (notice_new_inferior): Use scoped_restore_current_thread.
12742 * inferior.c: Include "progspace-and-thread.h".
12743 (restore_inferior, save_current_inferior): Delete.
12744 (add_inferior_command, clone_inferior_command): Use
12745 scoped_restore_current_pspace_and_thread.
12746 * inferior.h (scoped_restore_current_inferior): New class.
12747 * infrun.c: Include "progspace-and-thread.h" and
12748 "common/gdb_optional.h".
12749 (follow_fork_inferior): Use
12750 scoped_restore_current_pspace_and_thread.
12751 (scoped_restore_exited_inferior): New class.
12752 (handle_vfork_child_exec_or_exit): Use
12753 scoped_restore_exited_inferior,
12754 scoped_restore_current_pspace_and_thread,
12755 scoped_restore_current_thread and scoped_restore.
12756 (fetch_inferior_event): Use scoped_restore_current_thread.
12757 * linespec.c (decode_line_full, decode_line_1): Use
12758 scoped_restore_current_program_space.
12759 * mi/mi-main.c: Include "progspace-and-thread.h".
12760 (exec_continue): Use scoped_restore_current_thread.
12761 (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
12762 (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
12763 * proc-service.c (ps_pglobal_lookup): Use
12764 scoped_restore_current_program_space.
12765 * progspace-and-thread.c: New file.
12766 * progspace-and-thread.h: New file.
12767 * progspace.c (release_program_space, clone_program_space): Use
12768 scoped_restore_current_program_space.
12769 (restore_program_space, save_current_program_space)
12770 (save_current_space_and_thread): Delete.
12771 (switch_to_program_space_and_thread): Moved to
12772 progspace-and-thread.c.
12773 * progspace.h (save_current_program_space)
12774 (save_current_space_and_thread): Delete declarations.
12775 (scoped_restore_current_program_space): New class.
12776 * remote.c (remote_btrace_maybe_reopen): Use
12777 scoped_restore_current_thread.
12778 * symtab.c: Include "progspace-and-thread.h".
12779 (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
12780 * thread.c (print_thread_info_1): Use
12781 scoped_restore_current_thread.
12782 (struct current_thread_cleanup): Delete.
12783 (do_restore_current_thread_cleanup)
12784 (restore_current_thread_cleanup_dtor): Rename/convert both to ...
12785 (scoped_restore_current_thread::~scoped_restore_current_thread):
12786 ... this new dtor.
12787 (make_cleanup_restore_current_thread): Rename/convert to ...
12788 (scoped_restore_current_thread::scoped_restore_current_thread):
12789 ... this new ctor.
12790 (thread_apply_all_command): Use scoped_restore_current_thread.
12791 (thread_apply_command): Use scoped_restore_current_thread.
12792 * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
12793 * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
12794
12795 2017-05-04 Pedro Alves <palves@redhat.com>
12796
12797 * thread.c (make_cleanup_restore_current_thread): Move
12798 find_thread_ptid call before the is_stopped call. Assert that the
12799 thread is found. Replace is_stopped call by checking the thread's
12800 state directly. Remove unnecessary NULL-thread check.
12801
12802 2017-05-04 Pedro Alves <palves@redhat.com>
12803
12804 * corelow.c (thread_section_name): New class.
12805 (get_core_register_section, get_core_siginfo): Use it.
12806
12807 2017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
12808
12809 * corelow.c (sniff_core_bfd): Remove extra semicolon.
12810 (get_core_register_section): Remove xfree of NULL pointer.
12811
12812 2017-05-03 Alan Hayward <alan.hayward@arm.com>
12813
12814 * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed.
12815 * regcache.c (regcache::raw_supply_zeroed): New function.
12816 * regcache.h (regcache::raw_supply_zeroed): New declaration.
12817
12818 2017-05-03 Simon Marchi <simon.marchi@ericsson.com>
12819
12820 * gdbarch.sh: Remove commented out definition of
12821 TARGET_CHAR_BIT.
12822 * gdbarch.h: Re-generate.
12823
12824 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
12825
12826 * configure: Regenerate.
12827
12828 2017-05-02 Simon Marchi <simon.marchi@ericsson.com>
12829
12830 * solib-target.c (solib_target_relocate_section_addresses):
12831 Remove num_section_bases, num_bases, segment_bases variables.
12832
12833 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
12834
12835 * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove.
12836
12837 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
12838
12839 * solib-target.c: Include <vector>
12840 (struct lm_info_target) <~lm_info_target>: Remove.
12841 <segment_bases, section_bases>: Change type to
12842 std::vector<CORE_ADDR>.
12843 (library_list_start_segment, library_list_start_section,
12844 library_list_end_library,
12845 solib_target_relocate_section_addresses): Adjust.
12846
12847 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
12848
12849 * gdbarch.sh (software_single_step): Change return type to
12850 std::vector<CORE_ADDR>.
12851 * gdbarch.c, gdbarch.h: Re-generate.
12852 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
12853 Adjust.
12854 (arm_deal_with_atomic_sequence_raw): Adjust.
12855 (thumb_get_next_pcs_raw): Adjust.
12856 (arm_get_next_pcs_raw): Adjust.
12857 (arm_get_next_pcs): Adjust.
12858 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust.
12859 * aarch64-tdep.c (aarch64_software_single_step): Adjust.
12860 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust.
12861 (alpha_software_single_step): Adjust.
12862 * alpha-tdep.h (alpha_software_single_step): Adjust.
12863 * arm-linux-tdep.c (arm_linux_software_single_step): Adjust.
12864 * arm-tdep.c (arm_software_single_step): Adjust.
12865 (arm_breakpoint_kind_from_current_state): Adjust.
12866 * arm-tdep.h (arm_software_single_step): Adjust.
12867 * breakpoint.c (insert_single_step_breakpoint): Adjust.
12868 * cris-tdep.c (cris_software_single_step): Adjust.
12869 * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust.
12870 (micromips_deal_with_atomic_sequence): Adjust.
12871 (deal_with_atomic_sequence): Adjust.
12872 (mips_software_single_step): Adjust.
12873 * mips-tdep.h (mips_software_single_step): Adjust.
12874 * moxie-tdep.c (moxie_software_single_step): Adjust.
12875 * nios2-tdep.c (nios2_software_single_step): Adjust.
12876 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust.
12877 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
12878 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
12879 * s390-linux-tdep.c (s390_software_single_step): Adjust.
12880 * sparc-tdep.c (sparc_software_single_step): Adjust.
12881 * spu-tdep.c (spu_software_single_step): Adjust.
12882 * tic6x-tdep.c (tic6x_software_single_step): Adjust.
12883
12884 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
12885
12886 * gdbarch.sh: Use semi-colon as field separator instead of colon.
12887 * gdbarch.h: Re-generate.
12888
12889 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
12890
12891 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
12892 (SUBDIR_PYTHON_SRCS): Add py-instruction.c.
12893 * python/py-instruction.c, python/py-instruction.h: New file.
12894 * python/py-record.c: Add py-instruction.h include.
12895 (gdbpy_initialize_record): Make gdb.Instruction a super class of
12896 gdb.RecordInstruction.
12897 * python/python-internal.h: Add gdbpy_initialize_instruction
12898 declaration.
12899 * python/python.c (do_start_initialization): Add
12900 gdbpy_initialize_instruction.
12901
12902 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
12903
12904 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
12905 Remove.
12906 (btrace_func_from_recpy_func): New function.
12907 (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
12908 (btpy_call_level, btpy_call_symbol, btpy_call_instructions,
12909 btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
12910 (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
12911 recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
12912 Also, use new helper functions.
12913 (btpy_list_item): Use new helper functions.
12914 (recpy_bt_function_call_history): Use new type name.
12915 (btpy_call_getset): Remove.
12916 (gdbpy_initialize_btrace): Remove code to initialize
12917 gdb.BtraceFunctionCall.
12918 * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
12919 recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
12920 recpy_bt_func_prev, recpy_bt_func_next): New export.
12921 * python/py-record.c (recpy_func_type): New static object.
12922 (recpy_func_new, recpy_func_level, recpy_func_symbol,
12923 recpy_func_instructions, recpy_func_up, recpy_func_prev,
12924 recpy_func_next): New function.
12925 (recpy_element_hash, recpy_element_richcompare): Updated comment.
12926 (recpy_func_getset): New static object.
12927 (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
12928 * python/py-record.h (recpy_func_type, recpy_func_new): New export.
12929
12930 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
12931
12932 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove.
12933 (btpy_object, btpy_insn_type, btpy_new): Remove.
12934 (btpy_list_object): Use gdb.RecordInstruction type instead of
12935 gdb.BtraceInstruction type.
12936 (btrace_insn_from_recpy_insn): New function.
12937 (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of
12938 btpy_new.
12939 (btpy_call_new, btpy_list_item): Do not use btpy_new anymore.
12940 (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol,
12941 btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling,
12942 btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object
12943 instead of btpy_object.
12944 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
12945 btpy_insn_data, btpy_insn_decode): Rename to ...
12946 (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size,
12947 recpy_bt_insn_is_speculative, recpy_bt_insn_data,
12948 recpy_bt_insn_decode): This. Also, use new helper functions.
12949 (btpy_list_position, recpy_bt_goto): Use recpy_element_object and
12950 recpy_insn_type.
12951 (btpy_insn_getset): Remove.
12952 (gdbpy_initialize_btrace): Remove code to initialize
12953 gdb.BtraceInstruction. Use recpy_element_object.
12954 * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal,
12955 recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded,
12956 recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export.
12957 * python/py-record.c (recpy_insn_type): New static object.
12958 (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data,
12959 recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative,
12960 recpy_element_number, recpy_element_hash, recpy_element_richcompare):
12961 New function.
12962 (recpy_insn_getset): New static object.
12963 (gdbpy_initialize_record): Initialize gdb.RecordInstruction.
12964 * python/py-record.h (recpy_element_object): New typedef.
12965 (recpy_insn_type, recpy_insn_new): New export.
12966
12967 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
12968
12969 * py-record-btrace.c (btpy_insn_new): Removed.
12970 (btpy_insn_or_gap_new): New function.
12971 (btpy_insn_error): Removed.
12972 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
12973 btpy_insn_data, btpy_insn_decode): Remove code path for gaps.
12974 (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call
12975 btpy_insn_or_gap_new instead of btpy_insn_new.
12976 (btpy_insn_getset): Remove btpy_insn_error.
12977 * py-record.c (recpy_gap_type): New static object.
12978 (recpy_gap_object): New typedef.
12979 (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code,
12980 recpy_gap_reason_string): New function.
12981 (recpy_gap_getset): New static object.
12982 (gdbpy_initialize_record): Initialize gdb.RecordGap type.
12983 * py-record.h (recpy_gap_new): New export.
12984
12985 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
12986
12987 * python/py-record.c (recpy_ptid): Remove.
12988 (recpy_record_getset): Remove recpy_ptid.
12989
12990 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
12991
12992 * btrace.c (btrace_fetch): Set inferior_ptid.
12993 * python/py-record-btrace.c: Add "py-record.h" include.
12994 (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin,
12995 recpy_bt_end, recpy_bt_instruction_history,
12996 recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored
12997 in gdb.Record object instead of current ptid.
12998 * python/py-record.c: Include new "py-record.h" file.
12999 (recpy_record_object): Moved to py-record.h.
13000 * python/py-record.h: New file.
13001
13002 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
13003
13004 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
13005 BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
13006 indentation.
13007
13008 2017-05-01 Joel Brobecker <brobecker@adacore.com>
13009
13010 * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to
13011 the past maintainers section.
13012
13013 2017-04-28 Yao Qi <yao.qi@linaro.org>
13014
13015 * infcmd.c (get_return_value): Use regcache ctor, and remove
13016 cleanup.
13017
13018 2017-04-28 Yao Qi <yao.qi@linaro.org>
13019 Pedro Alves <palves@redhat.com>
13020
13021 * regcache.c (regcache::regcache): New tag dispatch ctor.
13022 (do_cooked_read): Moved above.
13023 (regcache_dup): Use the tag dispatch ctor..
13024 * regcache.h (regcache): Declare ctor, delete copy ctor and
13025 assignment operator, remove friend regcache_dup.
13026
13027 2017-04-28 Yao Qi <yao.qi@linaro.org>
13028
13029 * regcache.c (regcache_dup): Assert !src->m_readonly_p and
13030 call method save instead of regcache_cpy.
13031 * regcache.h (struct regcache): Make regcache_dup a friend.
13032
13033 2017-04-28 Yao Qi <yao.qi@linaro.org>
13034
13035 * regcache.c (struct regcache): Move to regcache.h
13036 (regcache::arch): New method.
13037 (regcache_get_ptid): Update.
13038 (get_regcache_arch): Call arch method.
13039 (get_regcache_aspace): Call method aspace.
13040 (register_buffer): Change it to method.
13041 (regcache_save): Change it to regcache::save.
13042 (regcache_restore): Likewise.
13043 (regcache_cpy_no_passthrough): Remove the declaration.
13044 (regcache_cpy): Call methods restore and cpy_no_passthrough.
13045 (regcache_cpy_no_passthrough): Change it to method
13046 cpy_no_passthrough.
13047 (regcache_register_status): Change it to method
13048 get_register_status.
13049 (regcache_invalidate): Change it to method invalidate.
13050 (regcache_thread_ptid_changed): Use methods ptid and set_ptid.
13051 (regcache_raw_update): Change it to method raw_update.
13052 (regcache_raw_read): Likewise.
13053 (regcache_raw_read_signed): Likewise.
13054 (regcache_raw_read_unsigned): Likewise.
13055 (regcache_raw_write_signed): Likewise.
13056 (regcache_raw_write_unsigned): Likewise.
13057 (regcache_cooked_read): Likewise.
13058 (regcache_cooked_read_value): Likewise.
13059 (regcache_cooked_read_signed): Likewise.
13060 (regcache_cooked_read_unsigned): Likewise.
13061 (regcache_cooked_write_signed): Likewise.
13062 (regcache_cooked_write_unsigned): Likewise.
13063 (regcache_raw_set_cached_value): Likewise.
13064 (regcache_raw_write): Likewise.
13065 (regcache_cooked_write): Likewise.
13066 (regcache_xfer_part): Likewise.
13067 (regcache_raw_read_part): Likewise.
13068 (regcache_raw_write_part): Likewise.
13069 (regcache_cooked_read_part): Likewise.
13070 (regcache_cooked_write_part): Likewise.
13071 (regcache_raw_supply): Likewise.
13072 (regcache_raw_collect): Likewise.
13073 (regcache_transfer_regset): Likewise.
13074 (regcache_supply_regset): Likewise.
13075 (regcache_collect_regset): Likewise.
13076 (regcache_debug_print_register): Likewise.
13077 (enum regcache_dump_what): Move it to regcache.h.
13078 (regcache_dump): Change it to method dump.
13079 * regcache.h (enum regcache_dump_what): New.
13080 (class regcache): New.
13081 * target.c (target_fetch_registers): Call method
13082 debug_print_register.
13083 (target_store_registers): Likewise.
13084
13085 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13086
13087 * windows-nat.c (struct lm_info_windows): Initialize field.
13088 (windows_make_so): Allocate lm_info_windows with new.
13089 (windows_free_so): Free lm_info_windows with delete.
13090
13091 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13092
13093 * solib-darwin.c (struct lm_info_darwin): Initialize field.
13094 (darwin_current_sos): Allocate lm_info_darwin with new, remove
13095 cleanup.
13096 (darwin_free_so): Free lm_info_darwin with delete.
13097
13098 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13099
13100 * solib-svr4.h (struct lm_info_svr4): Initialize fields.
13101 <l_addr_p>: Change type to bool.
13102 * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
13103 (svr4_free_so): Free lm_info_svr4 with delete.
13104 (svr4_copy_library_list): Replace memcpy with call to copy
13105 constructor.
13106 (library_list_start_library, svr4_default_sos): Allocate
13107 lm_info_svr4 with new.
13108
13109 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13110
13111 * solib-target.c (struct lm_info_target): Add destructor,
13112 initialize fields.
13113 <name>: Change type to std::string.
13114 (library_list_start_library): Allocate lm_info_target with new.
13115 (solib_target_free_library_list): Free lm_info_target with
13116 delete.
13117 (solib_target_current_sos): Adapt to std::string.
13118 (solib_target_free_so): Free lm_info_target with delete.
13119
13120 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13121
13122 * solib-frv.c (struct lm_info_frv): Add destructor, initialize
13123 fields.
13124 (frv_current_sos): Allocate lm_info_frv with new.
13125 (frv_relocate_main_executable): Free lm_info_frv with delete,
13126 allocate with new.
13127 (frv_clear_solib, frv_free_so): Free lm_info_frv with delete.
13128
13129 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13130
13131 * solib-frv.c (struct lm_info_frv): Fix indentation.
13132
13133 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13134
13135 * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
13136 map field.
13137 (dsbt_current_sos): Allocate lm_info_dsbt with new.
13138 (dsbt_relocate_main_executable): Free lm_info_dsbt with delete
13139 and allocate with new.
13140 (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
13141
13142 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13143
13144 * solib-aix.c (struct lm_info_aix): Initialize fields in-class.
13145 <filename, member_name>: Change type to std::string.
13146 (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
13147 (library_list_start_library): Allocate lm_info_aix with new.
13148 (solib_aix_free_library_list, solib_aix_free_so): Free with delete.
13149 (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
13150 with copy constructor.
13151
13152 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13153
13154 * solist.h (struct lm_info): Remove.
13155 (struct lm_info_base): New class.
13156 (struct so_list) <lm_info>: Change type to lm_info_base *.
13157 * nto-tdep.c (struct lm_info): Remove.
13158 (lm_addr): Adjust.
13159 * solib-aix.c (struct lm_info): Rename to ...
13160 (struct lm_info_aix): ... this. Extend lm_info_base.
13161 (lm_info_p): Rename to ...
13162 (lm_info_aix_p): ... this, and adjust.
13163 (solib_aix_new_lm_info, solib_aix_xfree_lm_info,
13164 solib_aix_parse_libraries, library_list_start_library,
13165 solib_aix_free_library_list, solib_aix_parse_libraries,
13166 solib_aix_get_library_list,
13167 solib_aix_relocate_section_addresses, solib_aix_free_so,
13168 solib_aix_get_section_offsets,
13169 solib_aix_solib_create_inferior_hook, solib_aix_current_sos):
13170 Adjust.
13171 (struct solib_aix_inferior_data) <library_list>: Adjust.
13172 * solib-darwin.c (struct lm_info): Rename to ...
13173 (struct lm_info_darwin): ... this. Extend lm_info_base.
13174 (darwin_current_sos, darwin_relocate_section_addresses): Adjust.
13175 * solib-dsbt.c (struct lm_info): Rename to ...
13176 (struct lm_info_dsbt): ... this. Extend lm_info_base.
13177 (struct dsbt_info) <main_executable_lm_info): Adjust.
13178 (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so,
13179 dsbt_relocate_section_addresses): Adjust.
13180 * solib-frv.c (struct lm_info): Rename to ...
13181 (struct lm_info_frv): ... this. Extend lm_info_base.
13182 (main_executable_lm_info): Adjust.
13183 (frv_current_sos, frv_relocate_main_executable, frv_free_so,
13184 frv_relocate_section_addresses, frv_fdpic_find_global_pointer,
13185 find_canonical_descriptor_in_load_object,
13186 frv_fdpic_find_canonical_descriptor): Adjust.
13187 * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed
13188 to lm_info_svr4.
13189 (lm_info_read, lm_addr_check, svr4_keep_data_in_core,
13190 svr4_clear_so, svr4_copy_library_list,
13191 library_list_start_library, svr4_default_sos, svr4_read_so_list,
13192 svr4_current_sos, svr4_fetch_objfile_link_map,
13193 solist_update_incremental): Adjust.
13194 * solib-svr4.h (struct lm_info_svr4): Move here from
13195 solib-svr4.c.
13196 * solib-target.c (struct lm_info): Rename to ...
13197 (struct lm_info_target): ... this. Extend lm_info_base.
13198 (lm_info_p): Rename to ...
13199 (lm_info_target_p): ... this.
13200 (solib_target_parse_libraries, library_list_start_segment,
13201 library_list_start_section, library_list_start_library,
13202 library_list_end_library, solib_target_free_library_list,
13203 solib_target_current_sos, solib_target_free_so,
13204 solib_target_relocate_section_addresses): Adjust.
13205 * windows-nat.c (struct lm_info): Rename to ...
13206 (struct lm_info_windows): ... this. Extend lm_info_base.
13207 (windows_make_so, handle_load_dll, handle_unload_dll,
13208 windows_xfer_shared_libraries): Adjust.
13209
13210 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13211
13212 * solib-darwin.c (struct darwin_so_list): Remove.
13213 (darwin_current_sos): Allocate an so_list object instead of a
13214 darwin_so_list, separately allocate an lm_info object.
13215 (darwin_free_so): Free lm_info.
13216
13217 2017-04-28 John Baldwin <jhb@FreeBSD.org>
13218
13219 * mips-tdep.c (print_gp_register_row): Replace printf_filtered
13220 with fprintf_filtered.
13221
13222 2017-04-28 Yao Qi <yao.qi@linaro.org>
13223
13224 * regcache.c (regcache::regcache): New function.
13225 (regcache::~regcache): New function.
13226 (regcache_xmalloc_1): Remove.
13227 (regcache_xmalloc): Call new regcache.
13228 (regcache_xfree): Call delete regcache.
13229 (get_thread_arch_aspace_regcache): Call new regcache.
13230
13231 2017-04-28 Yao Qi <yao.qi@linaro.org>
13232
13233 * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
13234 lwp instead of ptid_get_lwp.
13235
13236 2017-04-28 Yao Qi <yao.qi@linaro.org>
13237
13238 * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
13239 lwp_info instead of getting from inferior_ptid.
13240
13241 2017-04-27 Keith Seitz <keiths@redhat.com>
13242
13243 * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS)
13244 DIFFERENT_REFERENCE_TYPE_BADNESS): Remove.
13245 (CV_CONVERSION_BADNESS): Define.
13246 (rank_one_type): Remove overly restrictive rvalue reference
13247 rank checks.
13248 Add cv-qualifier checks and subranks for type equality.
13249 * gdbtypes.h (REFERENCE_CONVERSION_RVALUE,
13250 REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS,
13251 CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare.
13252
13253 2017-04-27 Simon Marchi <simon.marchi@ericsson.com>
13254
13255 * python/py-inferior.c (inferior_to_inferior_object): Increment reference
13256 count when creating the object.
13257
13258 2017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
13259 Ulrich Weigand <uweigand@de.ibm.com>
13260
13261 * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
13262 entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
13263 is used in AIX.
13264 (read_xcoff_symtab): Handle C_WEAKEXT storage class.
13265 (process_xcoff_symbol): Likewise.
13266 (scan_xcoff_symtab): Likewise.
13267
13268 2017-04-26 Alan Hayward <alan.hayward@arm.com>
13269
13270 * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned.
13271 (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer.
13272 (ia64_access_reg): Use get_frame_register_unsigned.
13273 (ia64_access_rse_reg): Likewise.
13274 (ia64_libunwind_frame_prev_register): Likewise.
13275
13276 2017-04-26 Jiong Wang <jiong.wang@arm.com>
13277
13278 * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op.
13279 * gdbarch.c: Regenerated.
13280 * gdbarch.h: Regenerated.
13281 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the
13282 visibility external.
13283 (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI
13284 between DW_CFA_lo_user and DW_CFA_high_user inclusive.
13285 (enum cfa_how_kind): Move to ...
13286 (struct dwarf2_frame_state_reg_info): Likewise.
13287 (struct dwarf2_frame_state): Likewise.
13288 * dwarf2-frame.h: ... here.
13289 (dwarf2_frame_state_alloc_regs): New declaration.
13290 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function.
13291 (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook.
13292
13293 2017-04-26 Alan Hayward <alan.hayward@arm.com>
13294
13295 * xtensa-tdep.c (xtensa_pseudo_register_read): Use
13296 regcache_raw_read_unsigned.
13297 (xtensa_pseudo_register_write): Likewise.
13298
13299 2017-04-26 Alan Hayward <alan.hayward@arm.com>
13300
13301 * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors.
13302 (nds32_pseudo_register_write): Likewise.
13303
13304 2017-04-25 Yao Qi <yao.qi@linaro.org>
13305
13306 * regcache.c (struct regcache) <readonly_p>: Change its type
13307 to bool.
13308 (regcache_xmalloc_1): Update parameter type and callers update.
13309
13310 2017-04-25 Yao Qi <yao.qi@linaro.org>
13311
13312 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
13313 set_gdbarch_wchar_bit.
13314 * arm-tdep.c (arm_gdbarch_init): Likewise.
13315
13316 2017-04-25 Pedro Alves <palves@redhat.com>
13317
13318 * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
13319 (BothAreRelocatable, memcopy, memmove): Don't define.
13320 * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
13321 macros.
13322
13323 2017-04-25 Pedro Alves <palves@redhat.com>
13324
13325 * common/common-defs.h: Include "common/poison.h".
13326 * common/function-view.h: (Not, Or, Requires): Move to traits.h
13327 and adjust.
13328 * common/poison.h: New file.
13329 * common/traits.h: Include <type_traits>.
13330 (Not, Or, Requires): New, moved from common/function-view.h.
13331
13332 2017-04-25 Pedro Alves <palves@redhat.com>
13333
13334 * breakpoint.h (struct breakpoint): In-class initialize all
13335 fields. Make boolean fields "bool".
13336 * breakpoint.c (init_raw_breakpoint_without_location): Remove
13337 memset call and initializations no longer necessary.
13338
13339 2017-04-25 Pedro Alves <palves@redhat.com>
13340
13341 * btrace.c (pt_btrace_insn_flags): Change parameter type to
13342 reference.
13343 (pt_btrace_insn): New function.
13344 (ftrace_add_pt): Remove memset call and use pt_btrace_insn.
13345
13346 2017-04-25 Pedro Alves <palves@redhat.com>
13347
13348 * ada-lang.c (ada_catchpoint_location): Now a "class". Remove
13349 "base" field and inherit from "bp_location" instead. Add
13350 non-default ctor.
13351 (allocate_location_exception): Use new non-default ctor.
13352 * breakpoint.c (get_first_locp_gte_addr): Remove memset call.
13353 (init_bp_location): Convert to ...
13354 (bp_location::bp_location): ... this new ctor, and remove memset
13355 call.
13356 (base_breakpoint_allocate_location): Use the new non-default ctor.
13357 * breakpoint.h (bp_location): Now a class. Declare default and
13358 non-default ctors. In-class initialize all members.
13359 (init_bp_location): Remove declaration.
13360
13361 2017-04-25 Pedro Alves <palves@redhat.com>
13362
13363 * common/enum-flags.h (enum_flags): Don't implement copy ctor and
13364 assignment operator.
13365
13366 2017-04-24 Yao Qi <yao.qi@linaro.org>
13367
13368 * doublest.c (convert_doublest_to_floatformat): Call
13369 floatformat_totalsize_bytes.
13370
13371 2017-04-22 Tom Tromey <tom@tromey.com>
13372
13373 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
13374 ui_out_emit_list.
13375 * stack.c (print_frame): Use ui_out_emit_list.
13376 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
13377 ui_out_emit_list.
13378 * mi/mi-main.c (print_one_inferior)
13379 (mi_cmd_data_list_register_names)
13380 (mi_cmd_data_list_register_values, mi_cmd_list_features)
13381 (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use
13382 ui_out_emit_list.
13383 * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list.
13384 (mi_output_solib_attribs): Use ui_out_emit_list,
13385 ui_out_emit_tuple.
13386 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list.
13387 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
13388 (mi_cmd_stack_list_args, list_args_or_locals): Use
13389 ui_out_emit_list.
13390 * disasm.c (do_assembly_only): Use ui_out_emit_list.
13391 * breakpoint.c (print_solib_event, output_thread_groups): Use
13392 ui_out_emit_list.
13393
13394 2017-04-22 Tom Tromey <tom@tromey.com>
13395
13396 * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple.
13397 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple.
13398 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple.
13399
13400 2017-04-22 Tom Tromey <tom@tromey.com>
13401
13402 * tracepoint.c (tvariables_info_1)
13403 (print_one_static_tracepoint_marker): Use ui_out_emit_tuple.
13404
13405 2017-04-22 Tom Tromey <tom@tromey.com>
13406
13407 * stack.c (print_frame_arg): Use ui_out_emit_tuple,
13408 annotate_arg_emitter.
13409 * breakpoint.c (print_mention_watchpoint)
13410 (print_mention_masked_watchpoint): Use ui_out_emit_tuple.
13411 * annotate.h (struct annotate_arg_emitter): New.
13412
13413 2017-04-22 Tom Tromey <tom@tromey.com>
13414
13415 * record-btrace.c (record_btrace_insn_history)
13416 (record_btrace_insn_history_range, record_btrace_call_history)
13417 (record_btrace_call_history_range): Use ui_out_emit_tuple.
13418 * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use
13419 ui_out_emit_tuple.
13420 * stack.c (print_frame_info): Use ui_out_emit_tuple.
13421 * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple.
13422 * skip.c (skip_info): Use ui_out_emit_tuple.
13423 * remote.c (show_remote_cmd): Use ui_out_emit_tuple.
13424 * progspace.c (print_program_space): Use ui_out_emit_tuple.
13425 * probe.c (info_probes_for_ops): Use ui_out_emit_tuple.
13426 * osdata.c (info_osdata): Use ui_out_emit_tuple.
13427 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
13428 ui_out_emit_tuple.
13429 * mi/mi-main.c (print_one_inferior, list_available_thread_groups)
13430 (output_register, mi_cmd_data_read_memory)
13431 (mi_cmd_data_read_memory_bytes, mi_load_progress)
13432 (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple.
13433 * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one):
13434 Use ui_out_emit_tuple.
13435 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use
13436 ui_out_emit_tuple.
13437 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
13438 (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple.
13439 * linux-thread-db.c (info_auto_load_libthread_db): Use
13440 ui_out_emit_tuple.
13441 * inferior.c (print_inferior): Use ui_out_emit_tuple.
13442 * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple.
13443 * disasm.c (do_mixed_source_and_assembly_deprecated)
13444 (do_mixed_source_and_assembly): Use ui_out_emit_tuple.
13445 * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple.
13446 * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple.
13447 * breakpoint.c (print_one_breakpoint_location)
13448 (print_one_breakpoint): Use ui_out_emit_tuple.
13449 * auto-load.c (print_script, info_auto_load_cmd): Use
13450 ui_out_emit_tuple.
13451 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple.
13452
13453 2017-04-21 Simon Marchi <simon.marchi@ericsson.com>
13454
13455 * thread.c (print_thread_info_1): Remove dead code.
13456
13457 2017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
13458
13459 * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
13460 GDB_SELF_TEST.
13461 * arm-tdep.c (selftests::arm_record_test): Likewise.
13462
13463 2017-04-21 Yao Qi <yao.qi@linaro.org>
13464
13465 * regcache.c (regcache_restore): Remove argument 2. Replace
13466 argument 3 with regcache. Get register status from
13467 src->register_status and get register contents from
13468 register_buffer (src, regnum).
13469 (regcache_cpy): Update.
13470
13471 2017-04-19 Pedro Alves <palves@redhat.com>
13472
13473 * gdbthread.h (thread): Add missing closing parenthesis in
13474 comment.
13475
13476 2017-04-19 Pedro Alves <palves@redhat.com>
13477
13478 * common/refcounted-object.h: New file.
13479 * gdbthread.h: Include "common/refcounted-object.h".
13480 (thread_info): Inherit from refcounted_object and add comments.
13481 (thread_info::incref, thread_info::decref)
13482 (thread_info::m_refcount): Delete.
13483 (thread_info::deletable): Use the refcounted_object::refcount()
13484 method.
13485 * inferior.c (current_inferior_): Add comment.
13486 (set_current_inferior): Increment/decrement refcounts.
13487 (prune_inferiors, remove_inferior_command): Skip inferiors marked
13488 not-deletable instead of comparing with the current inferior.
13489 (initialize_inferiors): Increment the initial inferior's refcount.
13490 * inferior.h (struct inferior): Forward declare.
13491 Include "common/refcounted-object.h".
13492 (current_inferior, set_current_inferior): Move declaration to
13493 before struct inferior's definition, and fix comment.
13494 (inferior): Inherit from refcounted_object. Add comments.
13495 * thread.c (switch_to_thread_no_regs): Reference the thread's
13496 inferior pointer directly instead of doing a ptid lookup.
13497 (switch_to_no_thread): New function.
13498 (switch_to_thread(thread_info *)): New function, factored out
13499 from ...
13500 (switch_to_thread(ptid_t)): ... this.
13501 (restore_current_thread): Delete.
13502 (current_thread_cleanup): Remove 'inf_id' and 'was_removable'
13503 fields, and add 'inf' field.
13504 (do_restore_current_thread_cleanup): Check whether old->inf is
13505 alive instead of looking up an inferior by ptid. Use
13506 switch_to_thread and switch_to_no_thread.
13507 (restore_current_thread_cleanup_dtor): Use old->inf directly
13508 instead of lookup up an inferior by id. Decref the inferior.
13509 Don't restore 'removable'.
13510 (make_cleanup_restore_current_thread): Same the inferior pointer
13511 in old, instead of the inferior number. Incref the inferior.
13512 Don't save/clear 'removable'.
13513
13514 2017-04-19 Pedro Alves <palves@redhat.com>
13515
13516 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13517 unittests/scoped_restore-selftests.c.
13518 (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o.
13519 * common/scoped_restore.h (scoped_restore_base): Make "class".
13520 (scoped_restore_base::release): New public method.
13521 (scoped_restore_base::scoped_restore_base): New protected ctor.
13522 (scoped_restore_base::m_saved_var): New protected field.
13523 (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the
13524 scoped_restore_base base class instead of m_saved_var directly.
13525 (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise.
13526 (scoped_restore_tmpl::scoped_restore_tmpl(const
13527 scoped_restore_tmpl<T>&)): Likewise.
13528 (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var
13529 method.
13530 (scoped_restore_tmpl::saved_var): New method.
13531 (scoped_restore_tmpl::m_saved_var): Delete.
13532 * inferior.h (inferior::detaching): Now a bool.
13533 * infrun.c (prepare_for_detach): Use a scoped_restore instead of a
13534 cleanup.
13535 * unittests/scoped_restore-selftests.c: New file.
13536
13537 2017-04-19 Pedro Alves <palves@redhat.com>
13538
13539 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS):
13540 Re-sort in alphabetic order.
13541
13542 2017-04-18 Pedro Alves <palves@redhat.com>
13543
13544 * xml-support.c (obstack_xml_printf): Delete.
13545 * xml-support.h (obstack_xml_printf): Delete.
13546
13547 2017-04-18 Pedro Alves <palves@redhat.com>
13548
13549 * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse,
13550 vdebug, verror, body_text, start_element, end_element, name,
13551 user_data, set_is_xinclude, set_error, expat_parser>: New methods.
13552 <name, user_data, expat_parser, scopes, error, last_line, dtd_name,
13553 is_xinclude>: Make private and add m_ prefix.
13554 (gdb_xml_parser::body_text): New method, based on ...
13555 (gdb_xml_body_text): ... this. Adjust.
13556 (gdb_xml_parser::vdebug): New method, based on ...
13557 (gdb_xml_debug): ... this. Adjust.
13558 (gdb_xml_parser::verror): New method, based on ...
13559 (gdb_xml_error): ... this. Adjust.
13560 (gdb_xml_parser::start_element): New method, based on ...
13561 (gdb_xml_start_element): ... this. Adjust.
13562 (gdb_xml_start_element_wrapper): Defer to
13563 gdb_xml_parser::start_element and gdb_xml_parser::set_error.
13564 (gdb_xml_parser::end_element): New method, based on ...
13565 (gdb_xml_end_element_wrapper): ... this. Adjust.
13566 (gdb_xml_parser::~gdb_xml_parser): Adjust.
13567 (gdb_xml_parser::gdb_xml_parser): Adjust to field renames.
13568 (gdb_xml_parser::use_dtd): New method, based on ...
13569 (gdb_xml_use_dtd): ... this. Adjust.
13570 (gdb_xml_parser::parse): New method, based on ...
13571 (gdb_xml_parse): ... this. Adjust.
13572 (gdb_xml_parse_quick): Adjust to call the parser's parse method.
13573 (xinclude_start_include): Adjust to call the parser's name method.
13574 (xml_xinclude_default, xml_xinclude_start_doctype)
13575 (xml_xinclude_end_doctype): Adjust to call the parser's user_data
13576 method.
13577 (xml_process_xincludes): Adjust to call parser methods.
13578 * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete
13579 declarations.
13580
13581 2017-04-18 Pedro Alves <palves@redhat.com>
13582
13583 * tracefile-tfile.c (tfile_write_tdesc): Adjust to use
13584 gdb::optional<std::string>.
13585 * xml-support.c: Include <string>.
13586 (scope_level::scope_level(scope_level &&))
13587 (scope_level::~scope_level): Delete.
13588 (scope_level::body): Now a std::string.
13589 (gdb_xml_body_text, gdb_xml_end_element): Adjust.
13590 (xinclude_parsing_data::xinclude_parsing_data): Add 'output'
13591 parameter.
13592 (xinclude_parsing_data::~xinclude_parsing_data): Delete.
13593 (xinclude_parsing_data::output): Now a std::string reference.
13594 (xinclude_start_include): Adjust.
13595 (xml_xinclude_default): Adjust.
13596 (xml_process_xincludes): Add 'output' parameter, and return bool.
13597 * xml-support.h (xml_process_xincludes): Add 'output' parameter,
13598 and return bool.
13599 * xml-tdesc.c: Include <unordered_map> and <string>.
13600 (tdesc_xml_cache): Delete.
13601 (tdesc_xml_cache_s): Delete.
13602 (xml_cache): Now an std::unordered_map.
13603 (tdesc_parse_xml): Adjust to use std::string and unordered_map.
13604 (target_fetch_description_xml): Change return type to
13605 gdb::optional<std::string>, and adjust.
13606 * xml-tdesc.h: Include "common/gdb_optional.h" and <string>.
13607 (target_fetch_description_xml): Change return type to
13608 gdb::optional<std::string>.
13609
13610 2017-04-18 Pedro Alves <palves@redhat.com>
13611
13612 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13613 unittests/optional-selftests.c.
13614 (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o.
13615 * unittests/optional-selftests.c: New file.
13616 * unittests/optional/assignment/1.cc: New file.
13617 * unittests/optional/assignment/2.cc: New file.
13618 * unittests/optional/assignment/3.cc: New file.
13619 * unittests/optional/assignment/4.cc: New file.
13620 * unittests/optional/assignment/5.cc: New file.
13621 * unittests/optional/assignment/6.cc: New file.
13622 * unittests/optional/assignment/7.cc: New file.
13623 * unittests/optional/cons/copy.cc: New file.
13624 * unittests/optional/cons/default.cc: New file.
13625 * unittests/optional/cons/move.cc: New file.
13626 * unittests/optional/cons/value.cc: New file.
13627 * unittests/optional/in_place.cc: New file.
13628 * unittests/optional/observers/1.cc: New file.
13629 * unittests/optional/observers/2.cc: New file.
13630
13631 2017-04-18 Pedro Alves <palves@redhat.com>
13632
13633 * common/gdb_optional.h: Include common/traits.h.
13634 (in_place_t): New type.
13635 (in_place): New constexpr variable.
13636 (optional::optional): Remove member initialization of
13637 m_instantiated.
13638 (optional::optional(in_place_t...)): New constructor.
13639 (optional::~optional): Use reset.
13640 (optional::optional(const optional&)): New.
13641 (optional::optional(const optional&&)): New.
13642 (optional::optional(T &)): New.
13643 (optional::optional(T &&)): New.
13644 (operator::operator=(const optional &)): New.
13645 (operator::operator=(optional &&)): New.
13646 (operator::operator= (const T &))
13647 (operator::operator= (T &&))
13648 (operator::emplace (Args &&... args)): Return a T&. Use reset.
13649 (operator::reset): New.
13650 (operator::m_instantiated):: Add in-class initializer.
13651 * common/traits.h: Include <type_traits>.
13652 (struct And): New types.
13653
13654 2017-04-18 Pedro Alves <palves@redhat.com>
13655
13656 * xml-support.c: Include <vector>.
13657 (scope_level::scope_level(const gdb_xml_element *))
13658 (scope_level::scope_level(scope_level&&)): New.
13659 (scope_level::~scope_level): New.
13660 (scope_level_s): Delete.
13661 (gdb_xml_parser::scopes): Now a std::vector.
13662 (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
13663 Use std::vector.
13664 (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
13665 scope cleanup code.
13666 (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
13667 of the scopes member. Use std::vector::emplace_back.
13668
13669 2017-04-18 Pedro Alves <palves@redhat.com>
13670
13671 * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude
13672 a bool.
13673 (gdb_xml_end_element): Change type of first parameter.
13674 (gdb_xml_cleanup): Rename to ...
13675 (gdb_xml_parser::~gdb_xml_parser): ... this.
13676 (gdb_xml_create_parser_and_cleanup): Delete with ...
13677 (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
13678 to this new ctor.
13679 (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
13680 using gdb_xml_create_parser_and_cleanup.
13681 (xinclude_parsing_data): Add ctor/dtor.
13682 (xml_xinclude_cleanup): Delete.
13683 (xml_process_xincludes): Create a local xinclude_parsing_data
13684 instead of heap-allocating one. Create a local gdb_xml_parser
13685 instead of heap-allocating one with
13686 gdb_xml_create_parser_and_cleanup.
13687
13688 2017-04-18 John Baldwin <jhb@FreeBSD.org>
13689
13690 PR threads/20743
13691 * fbsd-nat.c (resume_one_thread_cb): Remove.
13692 (resume_all_threads_cb): Remove.
13693 (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
13694 iterate_over_threads.
13695
13696 2017-04-17 Joel Brobecker <brobecker@adacore.com>
13697
13698 * NEWS: Create a new section for the next release branch.
13699 Rename the section of the current branch, now that it has
13700 been cut.
13701
13702 2017-04-17 Joel Brobecker <brobecker@adacore.com>
13703
13704 GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
13705 * version.in: Bump version to 8.0.50.DATE-git.
13706
13707 2017-04-13 Sergio Durigan Junior <sergiodj@redhat.com>
13708
13709 PR gdb/21385
13710 * windows-nat.c (windows_create_inferior): Declare 'allargs'
13711 independently of the host, and fix build breakage on Cygwin.
13712
13713 2017-04-13 Pedro Alves <palves@redhat.com>
13714
13715 * inferior.c (free_inferior): Convert to ...
13716 (inferior::~inferior): ... this dtor.
13717 (inferior::inferior): New ctor, factored out from ...
13718 (add_inferior_silent): ... here. Allocate the inferior with a new
13719 expression.
13720 (delete_inferior): Call delete instead of free_inferior.
13721 * inferior.h (gdb_environ, continuation): Forward declare.
13722 (inferior): Now a class. Add in-class initialization to all
13723 members. Make boolean fields bool, except 'detaching'.
13724 (inferior::inferior): New explicit ctor.
13725 (inferior::~inferior): New.
13726
13727 2017-04-13 Pedro Alves <palves@redhat.com>
13728
13729 * inferior.c (init_inferior_list): Delete.
13730 * inferior.h (init_inferior_list): Delete.
13731
13732 2017-04-13 Pedro Alves <palves@redhat.com>
13733
13734 PR threads/13217
13735 * gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
13736 (top level): Call it twice, with different thread sets.
13737
13738 2017-04-13 Pedro Alves <palves@redhat.com>
13739
13740 * thread.c: Include <algorithm>.
13741 (thread_array_cleanup): Delete.
13742 (scoped_inc_dec_ref): New class.
13743 (live_threads_count): New function.
13744 (set_thread_refcount): Delete.
13745 (tp_array_compar_ascending): Now a bool.
13746 (tp_array_compar): Convert to a std::sort comparison function.
13747 (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
13748 and live_threads_count.
13749
13750 2017-04-13 Pedro Alves <palves@redhat.com>
13751
13752 * infrun.c (follow_fork_inferior): Also switch the current
13753 inferior.
13754
13755 2017-04-13 Pedro Alves <palves@redhat.com>
13756
13757 * breakpoint.c (watch_command_1): Save watchpoint-frame info
13758 before calling create_internal_breakpoint.
13759
13760 2017-04-13 Pedro Alves <palves@redhat.com>
13761
13762 * fork-child.c (execv_argv): New class.
13763 (breakup_args): Refactored as ...
13764 (execv_argv::init_for_no_shell): .. this method of execv_argv.
13765 Copy arguments to storage and replace separators with NULL
13766 terminators in place.
13767 (escape_bang_in_quoted_argument): Adjust to return bool.
13768 (execv_argv::execv_argv): New ctor.
13769 (execv_argv::init_for_shell): New method, factored out from
13770 fork_inferior. Don't strdup strings into the vector.
13771 (fork_inferior): Eliminate "shell" local and use execv_argv. Use
13772 Remove free_vector_argv call.
13773
13774 2017-04-13 Yao Qi <yao.qi@linaro.org>
13775
13776 * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
13777 tdep->rx_psw_type.
13778
13779 2017-04-13 Yao Qi <yao.qi@linaro.org>
13780
13781 * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
13782 * rx-tdep.c (rx_gdbarch_init): Likewise.
13783
13784 2017-04-13 Pedro Alves <palves@redhat.com>
13785
13786 * breakpoint.h (struct breakpoint): Reindent.
13787
13788 2017-04-13 Pedro Alves <palves@redhat.com>
13789
13790 * breakpoint.c (bp_location): Rename to ...
13791 (bp_locations): ... this. All references updated.
13792 (bp_location_count): Rename to ...
13793 (bp_locations_count): ... this. All references updated.
13794 (bp_location_placed_address_before_address_max): Rename to ...
13795 (bp_locations_placed_address_before_address_max): ... this. All
13796 references updated.
13797 (bp_location_shadow_len_after_address_max): Rename to ...
13798 (bp_locations_shadow_len_after_address_max): ... this. All
13799 references updated.
13800 (bp_location_compare_addrs): Rename to ...
13801 (bp_locations_compare_addrs): ... this. All references updated.
13802 (bp_location_compare):Rename to ...
13803 (bp_locations_compare): ... this. All references updated.
13804 (bp_location_target_extensions_update): Rename to ...
13805 (bp_locations_target_extensions_update): ... this. All references
13806 updated.
13807
13808 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
13809
13810 * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
13811 * common/common.m4: Check headers 'termios.h', 'termio.h' and
13812 'sgtty.h'.
13813 * common/gdb_termios.h: New file, with parts of "terminal.h".
13814 * inflow.c: Include "gdb_termios.h".
13815 * ser-unix.c: Include "gdb_termios.h".
13816 * terminal.h: Move terminal-related defines to
13817 "common/gdb_termios.h".
13818
13819 2017-04-12 Tom Tromey <tom@tromey.com>
13820
13821 * probe.c (parse_probes): Update.
13822 * location.h (delete_event_location): Don't declare.
13823 (event_location_deleter::operator()): Update.
13824 * location.c (event_location_deleter::operator()): Rename from
13825 delete_event_location.
13826 * linespec.h (linespec_result) <location>: Change type to
13827 event_location_up.
13828 * linespec.c (canonicalize_linespec, event_location_to_sals)
13829 (decode_objc): Update.
13830 (linespec_result): Don't call delete_event_location.
13831 * breakpoint.c (create_breakpoints_sal)
13832 (bkpt_probe_create_sals_from_location)
13833 (strace_marker_create_sals_from_location): Update.
13834
13835 2017-04-12 Tom Tromey <tom@tromey.com>
13836
13837 * linespec.h (struct linespec_result): Add constructor and
13838 destructor.
13839 (init_linespec_result, destroy_linespec_result)
13840 (make_cleanup_destroy_linespec_result): Don't declare.
13841 * linespec.c (init_linespec_result): Remove.
13842 (linespec_result::~linespec_result): Rename from
13843 destroy_linespec_result. Update.
13844 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
13845 Remove.
13846 * breakpoint.c (create_breakpoint, break_range_command)
13847 (decode_location_default): Update.
13848 * ax-gdb.c (agent_command_1): Update.
13849
13850 2017-04-12 Tom Tromey <tom@tromey.com>
13851
13852 * remote.c (remote_download_tracepoint): Update.
13853 * python/py-breakpoint.c (bppy_get_location): Update.
13854 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
13855 (gdbscm_breakpoint_location): Update.
13856 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
13857 * breakpoint.h (struct breakpoint) <location, location_range_end>:
13858 Change type to event_location_up.
13859 * breakpoint.c (create_overlay_event_breakpoint)
13860 (create_longjmp_master_breakpoint)
13861 (create_std_terminate_master_breakpoint)
13862 (create_exception_master_breakpoint)
13863 (breakpoint_event_location_empty_p, print_breakpoint_location)
13864 (print_one_breakpoint_location, create_thread_event_breakpoint)
13865 (init_breakpoint_sal, create_breakpoint)
13866 (print_recreate_ranged_breakpoint, break_range_command)
13867 (init_ada_exception_breakpoint, say_where): Update.
13868 (base_breakpoint_dtor): Don't call delete_event_location.
13869 (bkpt_print_recreate, tracepoint_print_recreate)
13870 (dprintf_print_recreate, update_static_tracepoint)
13871 (breakpoint_re_set_default): Update.
13872
13873 2017-04-12 Tom Tromey <tom@tromey.com>
13874
13875 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
13876 type of "to_do". Update.
13877 (compute_stack_depth): Use std::vector.
13878
13879 2017-04-12 Tom Tromey <tom@tromey.com>
13880
13881 * printcmd.c (find_instruction_backward): Use std::vector.
13882
13883 2017-04-12 Tom Tromey <tom@tromey.com>
13884
13885 * symfile.c (objfilep): Remove typedef.
13886 (reread_symbols): Use a std::vector.
13887
13888 2017-04-12 Tom Tromey <tom@tromey.com>
13889
13890 * mi/mi-main.c (exec_direction_forward): Remove.
13891 (exec_reverse_continue, mi_execute_command): Use scoped_restore.
13892 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
13893 scoped_restore.
13894 * guile/guile.c (guile_repl_command, guile_command)
13895 (gdbscm_execute_gdb_command): Use scoped_restore.
13896 * go-exp.y (go_parse): Use scoped_restore.
13897 * d-exp.y (d_parse): Use scoped_restore.
13898 * cli/cli-decode.c (cmd_func): Use scoped_restore.
13899 * c-exp.y (c_parse): Use scoped_restore.
13900
13901 2017-04-12 Tom Tromey <tom@tromey.com>
13902
13903 * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
13904 (mi_parse): Update return type.
13905 (mi_parse_free): Remove.
13906 * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
13907 (mi_parse::~mi_parse): Rename from mi_parse_free.
13908 (mi_parse_cleanup): Remove.
13909 (mi_parse): Return a unique_ptr. Use new.
13910 * mi/mi-main.c (mi_execute_command): Update.
13911
13912 2017-04-12 Tom Tromey <tom@tromey.com>
13913
13914 * location.c (explicit_location_lex_one): Return a
13915 unique_xmalloc_ptr.
13916 (string_to_explicit_location): Update. Remove cleanups.
13917
13918 2017-04-12 Tom Tromey <tom@tromey.com>
13919
13920 * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
13921 (compare_value_and_voffset): Change type. Update.
13922 (compute_vtable_size): Change type of "offset_vec".
13923 (gnuv3_print_vtable): Use std::vector. Remove cleanups.
13924 (gnuv3_get_typeid): Remove extraneous declaration.
13925
13926 2017-04-12 Tom Tromey <tom@tromey.com>
13927
13928 * charset.h (wchar_iterator): Fix comment.
13929
13930 2017-04-12 Tom Tromey <tom@tromey.com>
13931
13932 * charset.c (iconv_wrapper): New class.
13933 (cleanup_iconv): Remove.
13934 (convert_between_encodings): Use it.
13935
13936 2017-04-12 Tom Tromey <tom@tromey.com>
13937
13938 * symfile.h (increment_reading_symtab): Update type.
13939 * symfile.c (decrement_reading_symtab): Remove.
13940 (increment_reading_symtab): Return a scoped_restore_tmpl<int>.
13941 * psymtab.c (psymtab_to_symtab): Update.
13942 * dwarf2read.c (dw2_instantiate_symtab): Update.
13943
13944 2017-04-12 Tom Tromey <tom@tromey.com>
13945
13946 * jit.c (struct jit_reader): Declare separately. Add constructor
13947 and destructor. Change type of "handle".
13948 (loaded_jit_reader): Define separately.
13949 (jit_reader_load): Update. New "new".
13950 (jit_reader_unload_command): Use "delete".
13951 * gdb-dlfcn.h (struct dlclose_deleter): New.
13952 (gdb_dlhandle_up): New typedef.
13953 (gdb_dlopen, gdb_dlsym): Update types.
13954 (gdb_dlclose): Remove.
13955 * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up.
13956 (gdb_dlsym): Change type of "handle".
13957 (make_cleanup_dlclose): Remove.
13958 (dlclose_deleter::operator()): Rename from gdb_dlclose.
13959 * compile/compile-c-support.c (load_libcc): Update.
13960
13961 2017-04-12 Tom Tromey <tom@tromey.com>
13962
13963 * symtab.h (find_pcs_for_symtab_line): Change return type.
13964 * symtab.c (find_pcs_for_symtab_line): Change return type.
13965 * python/py-linetable.c (build_line_table_tuple_from_pcs): Change
13966 type of "vec". Update.
13967 (ltpy_get_pcs_for_line): Update.
13968 * linespec.c (decode_digits_ordinary): Update.
13969
13970 2017-04-12 Tom Tromey <tom@tromey.com>
13971
13972 * tracepoint.c (actions_command): Update.
13973 * python/python.c (python_command, python_interactive_command):
13974 Update.
13975 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
13976 * guile/guile.c (guile_command): Update.
13977 * defs.h (read_command_lines, read_command_lines_1): Return
13978 command_line_up.
13979 (command_lines_deleter): New struct.
13980 (command_line_up): New typedef.
13981 * compile/compile.c (compile_code_command)
13982 (compile_print_command): Update.
13983 * cli/cli-script.h (get_command_line, copy_command_lines): Return
13984 command_line_up.
13985 (make_cleanup_free_command_lines): Remove.
13986 * cli/cli-script.c (get_command_line, read_command_lines_1)
13987 (copy_command_lines): Return command_line_up.
13988 (while_command, if_command, read_command_lines, define_command)
13989 (document_command): Update.
13990 (do_free_command_lines_cleanup, make_cleanup_free_command_lines):
13991 Remove.
13992 * breakpoint.h (breakpoint_set_commands): Change type of
13993 "commands".
13994 * breakpoint.c (breakpoint_set_commands): Change type of
13995 "commands". Update.
13996 (do_map_commands_command, update_dprintf_command_list)
13997 (create_tracepoint_from_upload): Update.
13998
13999 2017-04-12 Tom Tromey <tom@tromey.com>
14000
14001 * tracepoint.c (scope_info): Update.
14002 * spu-tdep.c (spu_catch_start): Update.
14003 * python/python.c (gdbpy_decode_line): Update.
14004 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
14005 * python/py-breakpoint.c (bppy_init): Update.
14006 * probe.c (parse_probes): Update.
14007 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
14008 * location.h (event_location_deleter): New struct.
14009 (event_location_up): New typedef.
14010 (new_linespec_location, new_address_location, new_probe_location)
14011 (new_explicit_location, copy_event_location)
14012 (string_to_event_location, string_to_event_location_basic)
14013 (string_to_explicit_location): Update return type.
14014 (make_cleanup_delete_event_location): Remove.
14015 * location.c (new_linespec_location, new_address_location)
14016 (new_probe_location, new_explicit_location, copy_event_location):
14017 Return event_location_up.
14018 (delete_event_location_cleanup)
14019 (make_cleanup_delete_event_location): Remove.
14020 (string_to_explicit_location, string_to_event_location_basic)
14021 (string_to_event_location): Return event_location_up.
14022 * linespec.c (canonicalize_linespec, event_location_to_sals)
14023 (decode_line_with_current_source)
14024 (decode_line_with_last_displayed, decode_objc): Update.
14025 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
14026 * completer.c (location_completer): Update.
14027 * cli/cli-cmds.c (edit_command, list_command): Update.
14028 * breakpoint.c (create_overlay_event_breakpoint)
14029 (create_longjmp_master_breakpoint)
14030 (create_std_terminate_master_breakpoint)
14031 (create_exception_master_breakpoint)
14032 (create_thread_event_breakpoint): Update.
14033 (init_breakpoint_sal): Update. Remove some dead code.
14034 (create_breakpoint_sal): Change type of "location". Update.
14035 (create_breakpoints_sal, create_breakpoint, break_command_1)
14036 (dprintf_command, break_range_command, until_break_command)
14037 (init_ada_exception_breakpoint)
14038 (strace_marker_create_sals_from_location)
14039 (update_static_tracepoint, trace_command, ftrace_command)
14040 (strace_command, create_tracepoint_from_upload): Update.
14041 * break-catch-throw.c (re_set_exception_catchpoint): Update.
14042 * ax-gdb.c (agent_command_1): Update.
14043
14044 2017-04-12 Pedro Alves <palves@redhat.com>
14045
14046 * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o.
14047 * configure.tgt: Handle i[34567]86-*-go32* and
14048 i[34567]86-*-msdosdjgpp*.
14049 * i386-tdep.c (i386_svr4_reg_to_regnum):
14050 Make extern.
14051 (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to
14052 i386-go32-tdep.c.
14053 (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c.
14054 * i386-go32-tdep.c: New file.
14055 * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New
14056 declarations.
14057
14058 2017-04-12 Simon Marchi <simon.marchi@ericsson.com>
14059
14060 * aix-thread.c (pd_status2str): Change return type to const char *.
14061
14062 2017-04-12 Pedro Alves <palves@redhat.com>
14063
14064 * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
14065 calls to set_gdbarch_gnu_triplet_regexp.
14066
14067 2017-04-12 Pedro Alves <palves@redhat.com>
14068
14069 PR gdb/21323
14070 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>:
14071 New enum value.
14072 (cplus_language_arch_info): Register cplus_primitive_type_wchar_t.
14073 * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field.
14074 * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type.
14075 * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values.
14076 * gdbarch.h, gdbarch.c: Regenerate.
14077 * aarch64-tdep.c (aarch64_gdbarch_init): Override
14078 gdbarch_wchar_bit and gdbarch_wchar_signed.
14079 * alpha-tdep.c (alpha_gdbarch_init): Likewise.
14080 * arm-tdep.c (arm_gdbarch_init): Likewise.
14081 * avr-tdep.c (avr_gdbarch_init): Likewise.
14082 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
14083 * i386-nto-tdep.c (i386nto_init_abi): Likewise.
14084 * i386-tdep.c (i386_go32_init_abi): Likewise.
14085 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
14086 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
14087 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
14088 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
14089 * sh-tdep.c (sh_gdbarch_init): Likewise.
14090 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
14091 * sparc64-tdep.c (sparc64_init_abi): Likewise.
14092 * windows-tdep.c (windows_init_abi): Likewise.
14093 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
14094
14095 2017-04-12 Pedro Alves <palves@redhat.com>
14096
14097 PR c++/21323
14098 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t,
14099 cplus_primitive_type_char32_t>: New enum values.
14100 (cplus_language_arch_info): Register cplus_primitive_type_char16_t
14101 and cplus_primitive_type_char32_t.
14102 * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or
14103 32, use the archtecture's built-in type for char16_t and char32_t,
14104 respectively. Otherwise, fallback to init_integer_type as before,
14105 but make the type unsigned, and issue a complaint.
14106 * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned.
14107
14108 2017-04-12 Alan Hayward <alan.hayward@arm.com>
14109
14110 * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added.
14111 (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
14112
14113 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
14114
14115 * windows-nat.c (windows_create_inferior): Declare 'toexec' as
14116 'const char *'.
14117
14118 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
14119
14120 * common/common-utils.c (free_vector_argv): New function.
14121 * common/common-utils.h: Include <vector>.
14122 (free_vector_argv): New prototype.
14123 * darwin-nat.c (darwin_create_inferior): Rewrite function
14124 prototype in order to constify "exec_file" and accept a
14125 "std::string" for "allargs".
14126 * fork-child.c: Include <vector>.
14127 (breakup_args): Rewrite function, using C++.
14128 (fork_inferior): Rewrite function header, constify "exec_file_arg"
14129 and accept "std::string" for "allargs". Update the code to
14130 calculate "argv" based on "allargs". Update calls to "exec_fun"
14131 and "execvp".
14132 * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in
14133 order to constify "exec_file" and accept a "std::string" for
14134 "allargs".
14135 * go32-nat.c (go32_create_inferior): Likewise.
14136 * inf-ptrace.c (inf_ptrace_create_inferior): Likewise.
14137 * infcmd.c (run_command_1): Constify "exec_file". Use
14138 "std::string" for inferior arguments.
14139 * inferior.h (fork_inferior): Update prototype.
14140 * linux-nat.c (linux_nat_create_inferior): Rewrite function
14141 prototype in order to constify "exec_file" and accept a
14142 "std::string" for "allargs".
14143 * nto-procfs.c (procfs_create_inferior): Likewise.
14144 * procfs.c (procfs_create_inferior): Likewise.
14145 * remote-sim.c (gdbsim_create_inferior): Likewise.
14146 * remote.c (extended_remote_run): Update code to accept
14147 "std::string" as argument.
14148 (extended_remote_create_inferior): Rewrite function prototype in
14149 order to constify "exec_file" and accept a "std::string" for
14150 "allargs".
14151 * rs6000-nat.c (super_create_inferior): Likewise.
14152 (rs6000_create_inferior): Likewise.
14153 * target.h (struct target_ops) <to_create_inferior>: Likewise.
14154 * windows-nat.c (windows_create_inferior): Likewise.
14155
14156 2017-04-11 Pedro Alves <palves@redhat.com>
14157
14158 * thread.c: Fix whitespace throughout.
14159
14160 2017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com>
14161
14162 * linux-nat.c (linux_nat_detach): Remove delete_lwp call.
14163
14164 2017-04-11 Alan Hayward <alan.hayward@arm.com>
14165
14166 * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
14167
14168 2017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
14169
14170 PR gdb/21364
14171 * osdata.c (info_osdata): Check if 'type' is an empty string
14172 instead of NULL.
14173
14174 2017-04-10 Pedro Alves <palves@redhat.com>
14175
14176 * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid)
14177 (ptid_to_global_thread_id, in_thread_list)
14178 (do_captured_list_thread_ids, set_resumed, set_running)
14179 (set_executing, set_stop_requested, finish_thread_state)
14180 (validate_registers_access, can_access_registers_ptid)
14181 (print_thread_info_1, switch_to_thread)
14182 (do_restore_current_thread_cleanup)
14183 (make_cleanup_restore_current_thread, thread_command)
14184 (thread_name_command): Use operator== instead of ptid_equal.
14185
14186 2017-04-10 Pedro Alves <palves@redhat.com>
14187
14188 * thread.c (struct current_thread_cleanup) <next>: Delete field.
14189 (current_thread_cleanup_chain): Delete.
14190 (restore_current_thread_cleanup_dtor)
14191 (make_cleanup_restore_current_thread): Remove references to
14192 current_thread_cleanup_chain.
14193
14194 2017-04-10 Alan Hayward <alan.hayward@arm.com>
14195
14196 * msp430-tdep.c (msp430_pseudo_register_read): Never return
14197 REG_UNKNOWN.
14198
14199 2017-04-10 Yao Qi <yao.qi@linaro.org>
14200
14201 PR gdb/19942
14202 * gdbthread.h (thread_info::deletable): New method.
14203 (thread_info::incref): New method.
14204 (thread_info::decref): New method.
14205 (thread_info::refcount): Move it to private.
14206 * infrun.c (save_stop_context): Call inc_refcount.
14207 (release_stop_context_cleanup): Likewise.
14208 * thread.c (set_thread_exited): New function.
14209 (init_thread_list): Delete "tp" only it is deletable, otherwise
14210 call set_thread_exited.
14211 (delete_thread_1): Call set_thread_exited.
14212 (current_thread_cleanup) <inferior_pid>: Remove.
14213 <thread>: New field.
14214 (restore_current_thread_ptid_changed): Removed.
14215 (do_restore_current_thread_cleanup): Adjust.
14216 (restore_current_thread_cleanup_dtor): Don't call
14217 find_thread_ptid.
14218 (set_thread_refcount): Use dec_refcount.
14219 (make_cleanup_restore_current_thread): Adjust.
14220 (thread_apply_all_command): Call inc_refcount.
14221 (_initialize_thread): Don't call
14222 observer_attach_thread_ptid_changed.
14223
14224 2017-04-10 Yao Qi <yao.qi@linaro.org>
14225
14226 * thread.c (delete_thread_1): Hoist code on marking thread as
14227 exited.
14228
14229 2017-04-09 Simon Marchi <simon.marchi@polymtl.ca>
14230
14231 * windows-nat.c (windows_detach): Initialize ptid with
14232 minus_one_ptid.
14233
14234 2017-04-07 Simon Marchi <simon.marchi@ericsson.com>
14235
14236 * unittests/ptid-selftests.c: Fix erroneous assert messages.
14237
14238 2017-04-07 Alan Hayward <alan.hayward@arm.com>
14239
14240 * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
14241 (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE.
14242 (bfin_pseudo_register_write): Likewise
14243
14244 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
14245
14246 * common/ptid.h (struct ptid): Change to...
14247 (class ptid_t): ... this.
14248 <ptid_t>: New constructors.
14249 <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=,
14250 matches>: New methods.
14251 <make_null, make_minus_one>: New static methods.
14252 <pid>: Rename to...
14253 <m_pid>: ...this.
14254 <lwp>: Rename to...
14255 <m_lwp>: ...this.
14256 <tid>: Rename to...
14257 <m_tid>: ...this.
14258 (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
14259 ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments
14260 as references, move comment to class ptid_t.
14261 * common/ptid.c (null_ptid, minus_one_ptid): Initialize with
14262 ptid_t static methods.
14263 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid,
14264 ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match):
14265 Take ptid arguments as references, implement using ptid_t methods.
14266 * unittests/ptid-selftests.c: New file.
14267 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14268 unittests/ptid-selftests.c.
14269 (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o.
14270
14271 2017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
14272
14273 * python/python.c (python_run_simple_file): Cast mode literal to
14274 non-const char pointer as expected by PyFile_FromString.
14275
14276 2017-04-05 Simon Marchi <simon.marchi@ericsson.com>
14277
14278 * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with
14279 minus_one_ptid and null_ptid.
14280
14281 2017-04-05 Pedro Alves <palves@redhat.com>
14282
14283 * warning.m4 (build_warnings): Remove -Wno-write-strings.
14284 * configure: Regenerate.
14285
14286 2017-04-05 Pedro Alves <palves@redhat.com>
14287
14288 * ada-exp.y (yyerror): Constify.
14289 * ada-lang.c (bound_name, get_selections)
14290 (ada_variant_discrim_type)
14291 (ada_variant_discrim_name, ada_value_struct_elt)
14292 (ada_lookup_struct_elt_type, is_unchecked_variant)
14293 (ada_which_variant_applies, standard_exc, ada_get_next_arg)
14294 (catch_ada_exception_command_split)
14295 (catch_ada_assert_command_split, catch_assert_command)
14296 (ada_op_name): Constify.
14297 * ada-lang.h (ada_yyerror, get_selections)
14298 (ada_variant_discrim_name, ada_value_struct_elt): Constify.
14299 * arc-tdep.c (arc_print_frame_cache): Constify.
14300 * arm-tdep.c (arm_skip_stub): Constify.
14301 * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref)
14302 (gen_aggregate_elt_ref): Constify.
14303 * bcache.c (print_bcache_statistics): Constify.
14304 * bcache.h (print_bcache_statistics): Constify.
14305 * break-catch-throw.c (catch_exception_command_1):
14306 * breakpoint.c (struct ep_type_description::description):
14307 Constify.
14308 (add_solib_catchpoint): Constify.
14309 (catch_fork_command_1): Add cast.
14310 (add_catch_command): Constify.
14311 * breakpoint.h (add_catch_command, add_solib_catchpoint):
14312 Constify.
14313 * bsd-uthread.c (bsd_uthread_state): Constify.
14314 * buildsym.c (patch_subfile_names): Constify.
14315 * buildsym.h (next_symbol_text_func, patch_subfile_names):
14316 Constify.
14317 * c-exp.y (yyerror): Constify.
14318 (token::oper): Constify.
14319 * c-lang.h (c_yyerror, cp_print_class_member): Constify.
14320 * c-varobj.c (cplus_describe_child): Constify.
14321 * charset.c (find_charset_names): Add cast.
14322 (find_charset_names): Constify array and add const_cast.
14323 * cli/cli-cmds.c (complete_command, cd_command): Constify.
14324 (edit_command): Constify.
14325 * cli/cli-decode.c (lookup_cmd): Constify.
14326 * cli/cli-dump.c (dump_memory_command, dump_value_command):
14327 Constify.
14328 (struct dump_context): Constify.
14329 (add_dump_command, restore_command): Constify.
14330 * cli/cli-script.c (get_command_line): Constify.
14331 * cli/cli-script.h (get_command_line): Constify.
14332 * cli/cli-utils.c (check_for_argument): Constify.
14333 * cli/cli-utils.h (check_for_argument): Constify.
14334 * coff-pe-read.c (struct read_pe_section_data): Constify.
14335 * command.h (lookup_cmd): Constify.
14336 * common/print-utils.c (decimal2str): Constify.
14337 * completer.c (gdb_print_filename): Constify.
14338 * corefile.c (set_gnutarget): Constify.
14339 * cp-name-parser.y (yyerror): Constify.
14340 * cp-valprint.c (cp_print_class_member): Constify.
14341 * cris-tdep.c (cris_register_name, crisv32_register_name):
14342 Constify.
14343 * d-exp.y (yyerror): Constify.
14344 (struct token::oper): Constify.
14345 * d-lang.h (d_yyerror): Constify.
14346 * dbxread.c (struct header_file_location::name): Constify.
14347 (add_old_header_file, add_new_header_file, last_function_name)
14348 (dbx_next_symbol_text, add_bincl_to_list)
14349 (find_corresponding_bincl_psymtab, set_namestring)
14350 (find_stab_function_addr, read_dbx_symtab, start_psymtab)
14351 (dbx_end_psymtab, read_ofile_symtab, process_one_symbol):
14352 * defs.h (command_line_input, print_address_symbolic)
14353 (deprecated_readline_begin_hook): Constify.
14354 * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name):
14355 Constify.
14356 * event-top.c (handle_line_of_input): Constify and add cast.
14357 * exceptions.c (catch_errors): Constify.
14358 * exceptions.h (catch_errors): Constify.
14359 * expprint.c (print_subexp_standard, op_string, op_name)
14360 (op_name_standard, dump_raw_expression, dump_raw_expression):
14361 * expression.h (op_name, op_string, dump_raw_expression):
14362 Constify.
14363 * f-exp.y (yyerror): Constify.
14364 (struct token::oper): Constify.
14365 (struct f77_boolean_val::name): Constify.
14366 * f-lang.c (f_word_break_characters): Constify.
14367 * f-lang.h (f_yyerror): Constify.
14368 * fork-child.c (fork_inferior): Add cast.
14369 * frv-tdep.c (struct gdbarch_tdep::register_names): Constify.
14370 (new_variant): Constify.
14371 * gdbarch.sh (pstring_ptr, pstring_list): Constify.
14372 * gdbarch.c: Regenerate.
14373 * gdbcore.h (set_gnutarget): Constify.
14374 * go-exp.y (yyerror): Constify.
14375 (token::oper): Constify.
14376 * go-lang.h (go_yyerror): Constify.
14377 * go32-nat.c (go32_sysinfo): Constify.
14378 * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify.
14379 * guile/scm-cmd.c (cmdscm_function): Constify.
14380 * guile/scm-param.c (pascm_param_value): Constify.
14381 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
14382 (h8300sx_register_name): Constify.
14383 * hppa-tdep.c (hppa32_register_name, hppa64_register_name):
14384 Constify.
14385 * ia64-tdep.c (ia64_register_names): Constify.
14386 * infcmd.c (construct_inferior_arguments): Constify.
14387 (path_command, attach_post_wait): Constify.
14388 * language.c (show_range_command, show_case_command)
14389 (unk_lang_error): Constify.
14390 * language.h (language_defn::la_error)
14391 (language_defn::la_name_of_this): Constify.
14392 * linespec.c (decode_line_2): Constify.
14393 * linux-thread-db.c (thread_db_err_str): Constify.
14394 * lm32-tdep.c (lm32_register_name): Constify.
14395 * m2-exp.y (yyerror): Constify.
14396 * m2-lang.h (m2_yyerror): Constify.
14397 * m32r-tdep.c (m32r_register_names): Constify and make static.
14398 * m68hc11-tdep.c (m68hc11_register_names): Constify.
14399 * m88k-tdep.c (m88k_register_name): Constify.
14400 * macroexp.c (appendmem): Constify.
14401 * mdebugread.c (fdr_name, add_data_symbol, parse_type)
14402 (upgrade_type, parse_external, parse_partial_symbols)
14403 (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab)
14404 (new_symbol): Constify.
14405 * memattr.c (mem_info_command): Constify.
14406 * mep-tdep.c (register_name_from_keyword): Constify.
14407 * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env):
14408 Constify.
14409 * mi/mi-cmd-stack.c (list_args_or_locals): Constify.
14410 * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify.
14411 * mi/mi-main.c (captured_mi_execute_command): Constify and add
14412 cast.
14413 (mi_execute_async_cli_command): Constify.
14414 * mips-tdep.c (mips_register_name): Constify.
14415 * mn10300-tdep.c (register_name, mn10300_generic_register_name)
14416 (am33_register_name, am33_2_register_name)
14417 * moxie-tdep.c (moxie_register_names): Constify.
14418 * nat/linux-osdata.c (osdata_type): Constify fields.
14419 * nto-tdep.c (nto_parse_redirection): Constify.
14420 * objc-lang.c (lookup_struct_typedef, lookup_objc_class)
14421 (lookup_child_selector): Constify.
14422 (objc_methcall::name): Constify.
14423 * objc-lang.h (lookup_objc_class, lookup_child_selector)
14424 (lookup_struct_typedef): Constify.
14425 * objfiles.c (pc_in_section): Constify.
14426 * objfiles.h (pc_in_section): Constify.
14427 * p-exp.y (struct token::oper): Constify.
14428 (yyerror): Constify.
14429 * p-lang.h (pascal_yyerror): Constify.
14430 * parser-defs.h (op_name_standard): Constify.
14431 (op_print::string): Constify.
14432 (exp_descriptor::op_name): Constify.
14433 * printcmd.c (print_address_symbolic): Constify.
14434 * psymtab.c (print_partial_symbols): Constify.
14435 * python/py-breakpoint.c (stop_func): Constify.
14436 (bppy_get_expression): Constify.
14437 * python/py-cmd.c (cmdpy_completer::name): Constify.
14438 (cmdpy_function): Constify.
14439 * python/py-event.c (evpy_add_attribute)
14440 (gdbpy_initialize_event_generic): Constify.
14441 * python/py-event.h (evpy_add_attribute)
14442 (gdbpy_initialize_event_generic): Constify.
14443 * python/py-evts.c (add_new_registry): Constify.
14444 * python/py-finishbreakpoint.c (outofscope_func): Constify.
14445 * python/py-framefilter.c (get_py_iter_from_func): Constify.
14446 * python/py-inferior.c (get_buffer): Add cast.
14447 * python/py-param.c (parm_constant::name): Constify.
14448 * python/py-unwind.c (fprint_frame_id): Constify.
14449 * python/python.c (gdbpy_parameter_value): Constify.
14450 * remote-fileio.c (remote_fio_func_map): Make 'name' const.
14451 * remote.c (memory_packet_config::name): Constify.
14452 (show_packet_config_cmd, remote_write_bytes)
14453 (remote_buffer_add_string):
14454 * reverse.c (exec_reverse_once): Constify.
14455 * rs6000-tdep.c (variant::name, variant::description): Constify.
14456 * rust-exp.y (rustyyerror): Constify.
14457 * rust-lang.c (rust_op_name): Constify.
14458 * rust-lang.h (rustyyerror): Constify.
14459 * serial.h (serial_ops::name): Constify.
14460 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
14461 (sh_sh3e_register_name, sh_sh2e_register_name)
14462 (sh_sh2a_register_name, sh_sh2a_nofpu_register_name)
14463 (sh_sh_dsp_register_name, sh_sh3_dsp_register_name)
14464 (sh_sh4_register_name, sh_sh4_nofpu_register_name)
14465 (sh_sh4al_dsp_register_name): Constify.
14466 * sh64-tdep.c (sh64_register_name): Constify.
14467 * solib-darwin.c (lookup_symbol_from_bfd): Constify.
14468 * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify.
14469 * stabsread.c (patch_block_stabs, read_type_number)
14470 (ref_map::stabs, ref_add, process_reference)
14471 (symbol_reference_defined, define_symbol, define_symbol)
14472 (error_type, read_type, read_member_functions, read_cpp_abbrev)
14473 (read_one_struct_field, read_struct_fields, read_baseclasses)
14474 (read_tilde_fields, read_struct_type, read_array_type)
14475 (read_enum_type, read_sun_builtin_type, read_sun_floating_type)
14476 (read_huge_number, read_range_type, read_args, common_block_start)
14477 (find_name_end): Constify.
14478 * stabsread.h (common_block_start, define_symbol)
14479 (process_one_symbol, symbol_reference_defined, ref_add):
14480 * symfile.c (get_section_index, add_symbol_file_command):
14481 * symfile.h (get_section_index): Constify.
14482 * target-descriptions.c (tdesc_type::name): Constify.
14483 (tdesc_free_type): Add cast.
14484 * target.c (find_default_run_target):
14485 (add_deprecated_target_alias, find_default_run_target)
14486 (target_announce_detach): Constify.
14487 (do_option): Constify.
14488 * target.h (add_deprecated_target_alias): Constify.
14489 * thread.c (print_thread_info_1): Constify.
14490 * top.c (deprecated_readline_begin_hook, command_line_input):
14491 Constify.
14492 (init_main): Add casts.
14493 * top.h (handle_line_of_input): Constify.
14494 * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify.
14495 * tracepoint.c (tvariables_info_1, trace_status_mi): Constify.
14496 (tfind_command): Rename to ...
14497 (tfind_command_1): ... this and constify.
14498 (tfind_command): New function.
14499 (tfind_end_command, tfind_start_command): Adjust.
14500 (encode_source_string): Constify.
14501 * tracepoint.h (encode_source_string): Constify.
14502 * tui/tui-data.c (tui_partial_win_by_name): Constify.
14503 * tui/tui-data.h (tui_partial_win_by_name): Constify.
14504 * tui/tui-source.c (tui_set_source_content_nil): Constify.
14505 * tui/tui-source.h (tui_set_source_content_nil): Constify.
14506 * tui/tui-win.c (parse_scrolling_args): Constify.
14507 * tui/tui-windata.c (tui_erase_data_content): Constify.
14508 * tui/tui-windata.h (tui_erase_data_content): Constify.
14509 * tui/tui-winsource.c (tui_erase_source_content): Constify.
14510 * tui/tui.c (tui_enable): Add cast.
14511 * utils.c (defaulted_query): Constify.
14512 (init_page_info): Add cast.
14513 (puts_debug, subset_compare): Constify.
14514 * utils.h (subset_compare): Constify.
14515 * varobj.c (varobj_format_string): Constify.
14516 * varobj.h (varobj_format_string): Constify.
14517 * vax-tdep.c (vax_register_name): Constify.
14518 * windows-nat.c (windows_detach): Constify.
14519 * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify.
14520 * xml-support.c (gdb_xml_end_element): Constify.
14521 * xml-tdesc.c (tdesc_start_reg): Constify.
14522 * xstormy16-tdep.c (xstormy16_register_name): Constify.
14523 * xtensa-tdep.c (xtensa_find_register_by_name): Constify.
14524 * xtensa-tdep.h (xtensa_register_t::name): Constify.
14525
14526 2017-04-05 Pedro Alves <palves@redhat.com>
14527
14528 * proc-api.c (struct trans): Constify.
14529 (procfs_note): Constify.
14530 * proc-events.c (struct trans, syscall_table):
14531 * proc-flags.c (struct trans): Constify.
14532 * proc-utils.h (procfs_note): Constify.
14533 * proc-why.c (struct trans): Constify.
14534 * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error)
14535 (procfs_detach): Constify.
14536 * sol-thread.c (struct string_map): Constify.
14537 (td_err_string, td_state_string): Constify.
14538
14539 2017-04-05 Pedro Alves <palves@redhat.com>
14540
14541 * proc-api.c (procfs_filename): Don't initialize
14542 procfs_filename.
14543 (prepare_to_trace): Assume procfs_filename is non-NULL.
14544 (_initialize_proc_api): Give procfs_filename a default value here.
14545
14546 2017-04-05 Pedro Alves <palves@redhat.com>
14547
14548 * break-catch-throw.c (handle_gnu_v3_exceptions): Constify
14549 'cond_string' parameter.
14550 (extract_exception_regexp): Constify 'string' parameter.
14551 (catch_exception_command_1): Constify.
14552 * breakpoint.c (init_catchpoint)
14553 (create_fork_vfork_event_catchpoint): Constify 'cond_string'
14554 parameter.
14555 (ep_parse_optional_if_clause, catch_fork_command_1)
14556 (catch_exec_command_1): Constify.
14557 * breakpoint.h (init_catchpoint): Constify 'cond_string'
14558 parameter.
14559 (ep_parse_optional_if_clause): Constify.
14560 * cli/cli-utils.c (remove_trailing_whitespace)
14561 (check_for_argument): Constify.
14562 * cli/cli-utils.h (remove_trailing_whitespace): Constify and add
14563 non-const overload.
14564 (check_for_argument): Likewise.
14565
14566 2017-04-05 Pedro Alves <palves@redhat.com>
14567
14568 * event-top.c (command_line_handler): Add cast to execute_command
14569 call.
14570 * record-btrace.c (cmd_record_btrace_bts_start)
14571 (cmd_record_btrace_pt_start, cmd_record_btrace_start)
14572 (cmd_record_btrace_start): Add cast to execute_command call.
14573 * record-full.c (record_full_goto_insn):
14574 * record.c (record_start, record_stop): Add cast to
14575 execute_command_to_string calls.
14576 (cmd_record_start): Add cast to execute_command calls.
14577
14578 2017-04-05 Pedro Alves <palves@redhat.com>
14579
14580 * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New
14581 static inline function.
14582 * python/py-arch.c (archpy_disassemble): Constify 'keywords'
14583 array and use gdb_PyArg_ParseTupleAndKeywords.
14584 * python/py-cmd.c (cmdpy_init): Likewise.
14585 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
14586 * python/py-inferior.c (infpy_read_memory, infpy_write_memory)
14587 (infpy_search_memory): Likewise.
14588 * python/py-objfile.c (objfpy_add_separate_debug_file)
14589 (gdbpy_lookup_objfile): Likewise.
14590 * python/py-symbol.c (gdbpy_lookup_symbol)
14591 (gdbpy_lookup_global_symbol): Likewise.
14592 * python/py-type.c (gdbpy_lookup_type): Likewise.
14593 * python/py-value.c (valpy_lazy_string, valpy_string): Likewise.
14594 * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush):
14595 Likewise.
14596
14597 2017-04-05 Pedro Alves <palves@redhat.com>
14598
14599 * python/python-internal.h (gdb_PyGetSetDef): New type.
14600 * python/py-block.c (block_object_getset)
14601 (breakpoint_object_getset): Now a gdb_PyGetSetDef array.
14602 * python/py-event.c (event_object_getset)
14603 (finish_breakpoint_object_getset): Likewise.
14604 * python/py-inferior.c (inferior_object_getset): Likewise.
14605 * python/py-infthread.c (thread_object_getset): Likewise.
14606 * python/py-lazy-string.c (lazy_string_object_getset): Likewise.
14607 * python/py-linetable.c (linetable_entry_object_getset): Likewise.
14608 * python/py-objfile.c (objfile_getset): Likewise.
14609 * python/py-progspace.c (pspace_getset): Likewise.
14610 * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset):
14611 Likewise.
14612 * python/py-record.c (recpy_record_getset): Likewise.
14613 * python/py-symbol.c (symbol_object_getset): Likewise.
14614 * python/py-symtab.c (symtab_object_getset, sal_object_getset):
14615 Likewise.
14616 * python/py-type.c (type_object_getset, field_object_getset):
14617 Likewise.
14618 * python/py-value.c (value_object_getset): Likewise.
14619
14620 2017-04-05 Pedro Alves <palves@redhat.com>
14621
14622 * python/python-internal.h (gdb_PyObject_CallMethod)
14623 (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath):
14624 New functions.
14625 (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException)
14626 (PySys_GetObject, PySys_SetPath): New macros.
14627
14628 2017-04-05 Pedro Alves <palves@redhat.com>
14629
14630 * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of
14631 info_osdata_command.
14632 * osdata.c (info_osdata_command): Rename to ...
14633 (info_osdata): ... this. Constify 'type' parameter, and remove
14634 the 'from_tty' parameter. Accept NULL TYPE.
14635 (info_osdata_command): New function.
14636 * osdata.h (info_osdata_command): Remove declaration.
14637 (info_osdata): New declaration.
14638
14639 2017-04-05 Pedro Alves <palves@redhat.com>
14640
14641 * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert)
14642 (mi_cmd_dprintf_insert, mi_cmd_break_passcount)
14643 (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command'
14644 parameter.
14645 * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception)
14646 (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter.
14647 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command'
14648 parameter.
14649 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path)
14650 (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show)
14651 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
14652 (mi_cmd_file_list_exec_source_files)
14653 (mi_cmd_file_list_shared_libraries): Constify 'command' parameter.
14654 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
14655 (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command'
14656 parameter.
14657 * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters)
14658 (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth)
14659 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
14660 (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame)
14661 (mi_cmd_stack_info_frame): Constify 'command' parameter.
14662 * mi/mi-cmd-target.c (mi_cmd_target_file_get)
14663 (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify
14664 'command' parameter.
14665 * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete)
14666 (mi_cmd_var_set_format, mi_cmd_var_set_visualizer)
14667 (mi_cmd_var_set_frozen, mi_cmd_var_show_format)
14668 (mi_cmd_var_info_num_children, mi_cmd_var_list_children)
14669 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
14670 (mi_cmd_var_info_expression, mi_cmd_var_show_attributes)
14671 (mi_cmd_var_evaluate_expression, mi_cmd_var_assign)
14672 (mi_cmd_var_update, mi_cmd_enable_pretty_printing)
14673 (mi_cmd_var_set_update_range): Constify 'command' parameter.
14674 * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter.
14675 * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command'
14676 parameter.
14677 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next)
14678 (mi_cmd_exec_next_instruction, mi_cmd_exec_step)
14679 (mi_cmd_exec_step_instruction, mi_cmd_exec_finish)
14680 (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue)
14681 (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach)
14682 (mi_cmd_target_flash_erase, mi_cmd_thread_select)
14683 (mi_cmd_thread_list_ids, mi_cmd_thread_info)
14684 (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names)
14685 (mi_cmd_data_list_changed_registers)
14686 (mi_cmd_data_write_register_values)
14687 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
14688 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory)
14689 (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings)
14690 (mi_cmd_list_features, mi_cmd_list_target_features)
14691 (mi_cmd_add_inferior, mi_cmd_remove_inferior)
14692 (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables)
14693 (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start)
14694 (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info)
14695 (mi_cmd_trace_frame_collected): Constify 'command'
14696 parameter.
14697 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify
14698 'command' parameter.
14699
14700 2017-04-05 Pedro Alves <palves@redhat.com>
14701
14702 * ada-lang.c (ada_completer_word_break_characters): Now a const
14703 array.
14704 (ada_get_gdb_completer_word_break_characters): Constify.
14705 * completer.c (gdb_completer_command_word_break_characters)
14706 (gdb_completer_file_name_break_characters)
14707 (gdb_completer_quote_characters): Now const arrays.
14708 (get_gdb_completer_quote_characters): Constify.
14709 (set_rl_completer_word_break_characters): New function.
14710 (set_gdb_completion_word_break_characters)
14711 (complete_line_internal): Use it.
14712 * completer.h (get_gdb_completer_quote_characters): Constify.
14713 (set_rl_completer_word_break_characters): Declare.
14714 * f-lang.c (f_word_break_characters): Constify.
14715 * language.c (default_word_break_characters): Constify.
14716 * language.h (language_defn::la_word_break_characters): Constify.
14717 (default_word_break_characters): Constify.
14718 * top.c (init_main): Use set_rl_completer_word_break_characters.
14719
14720 2017-04-05 Pedro Alves <palves@redhat.com>
14721
14722 * aix-thread.c (aix_thread_pid_to_str)
14723 (aix_thread_extra_thread_info): Constify.
14724 * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
14725 * bsd-uthread.c (bsd_uthread_extra_thread_info)
14726 (bsd_uthread_pid_to_str): Constify.
14727 * corelow.c (core_pid_to_str): Constify.
14728 * darwin-nat.c (darwin_pid_to_str): Constify.
14729 * fbsd-nat.c (fbsd_pid_to_str): Constify.
14730 * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
14731 Constify.
14732 * gnu-nat.c (gnu_pid_to_str): Constify.
14733 * go32-nat.c (go32_pid_to_str): Constify.
14734 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
14735 * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
14736 * inferior.c (inferior_pid_to_str): Constify.
14737 * linux-nat.c (linux_nat_pid_to_str): Constify.
14738 * linux-tdep.c (linux_core_pid_to_str): Constify.
14739 * linux-thread-db.c (thread_db_pid_to_str)
14740 (thread_db_extra_thread_info): Constify.
14741 * nto-tdep.c (nto_extra_thread_info): Constify.
14742 * nto-tdep.h (nto_extra_thread_info): Constify.
14743 * obsd-nat.c (obsd_pid_to_str): Constify.
14744 * procfs.c (procfs_pid_to_str): Constify.
14745 * ravenscar-thread.c (ravenscar_extra_thread_info)
14746 (ravenscar_pid_to_str): Constify.
14747 * remote-sim.c (gdbsim_pid_to_str): Constify.
14748 * remote.c (remote_threads_extra_info, remote_pid_to_str):
14749 Constify.
14750 * sol-thread.c (solaris_pid_to_str): Constify.
14751 * sol2-tdep.c (sol2_core_pid_to_str): Constify.
14752 * sol2-tdep.h (sol2_core_pid_to_str): Constify.
14753 * target.c (default_pid_to_str, target_pid_to_str)
14754 (normal_pid_to_str, default_pid_to_str): Constify.
14755 * target.h (target_ops::to_pid_to_str)
14756 (target_ops::to_extra_thread_info): Constify.
14757 (target_pid_to_str, normal_pid_to_str): Constify.
14758 * windows-nat.c (windows_pid_to_str): Constify.
14759 * gdbarch.sh (core_pid_to_str): Constify.
14760 * target-delegates.c: Regenerate.
14761 * gdbarch.h, gdbarch.c: Regenerate.
14762
14763 2017-04-05 Pedro Alves <palves@redhat.com>
14764
14765 * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
14766 the memory of the temporary warning_pre_print override.
14767 * utils.c (warning_pre_print): Constify.
14768 * utils.h (warning_pre_print): Constify.
14769
14770 2017-04-05 Pedro Alves <palves@redhat.com>
14771
14772 * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
14773 (shell_command): New function.
14774 (make_command): Use std::string.
14775 (init_cli_cmds): Register shell_command instead of shell_escape.
14776
14777 2017-04-05 Pedro Alves <palves@redhat.com>
14778
14779 * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
14780 * tracepoint.c (default_collect): Don't initialize.
14781
14782 2017-04-05 Pedro Alves <palves@redhat.com>
14783
14784 * macroexp.c (macro_buffer::shared): Now a bool.
14785 (init_buffer): Update.
14786 (init_shared_buffer): Constify 'addr' parameter.
14787 (substitute_args, expand, macro_expand, macro_expand_next): Remove
14788 casts.
14789
14790 2017-04-05 Pedro Alves <palves@redhat.com>
14791
14792 * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
14793 * disasm.c (set_disassembler_options): Constify local.
14794 * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
14795
14796 2017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
14797
14798 PR gdb/21352
14799 * tracefile.c (tsave_command): Fix argument parsing for '-r'
14800 option.
14801
14802 2017-04-05 Yao Qi <yao.qi@linaro.org>
14803
14804 * frame.c (frame_unwind_register_unsigned): Call
14805 frame_unwind_register_value.
14806
14807 2017-04-05 Yao Qi <yao.qi@linaro.org>
14808
14809 * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
14810 Use gdb_test_multiple, and don't match anchor.
14811
14812 2017-04-05 Pedro Alves <palves@redhat.com>
14813
14814 * MAINTAINERS (Global Maintainers): Add Simon Marchi.
14815 (Write After Approval): Remove Simon Marchi.
14816
14817 2017-04-05 Pedro Alves <palves@redhat.com>
14818
14819 * common/gdb_optional.h (optional::optional): Make constexpr and
14820 initialize m_dummy.
14821
14822 2017-04-04 John Baldwin <jhb@FreeBSD.org>
14823
14824 * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
14825 (amd64fbsd_jmp_buf_reg_offset): Remove.
14826 (amd64fbsd_supply_uthread): Remove function.
14827 (amd64fbsd_collect_uthread): Remove function.
14828 (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
14829 * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
14830 (x86_64-*-freebsd*): Remove bsd-uthread.o.
14831 (fbsd-nat.c): Update comment.
14832 * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
14833 (i386fbsd_jmp_buf_reg_offset): Remove.
14834 (i386fbsd_supply_uthread): Remove function.
14835 (i386fbsd_collect_uthread): Remove function.
14836 (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
14837
14838 2017-04-04 John Baldwin <jhb@FreeBSD.org>
14839
14840 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
14841 (ALLDEPFILES): Remove alpha-fbsd-tdep.c
14842 * NEWS: Mention that support for FreeBSD/alpha was removed.
14843 * alpha-fbsd-tdep.c: Delete file.
14844 * config/alpha/fbsd.mh: Delete file.
14845 * configure.host: Delete alpha*-*-freebsd* and
14846 alpha*-*-kfreebsd*-gnu.
14847 * configure.tgt: Delete alpha*-*-freebsd* and
14848 alpha*-*-kfreebsd*-gnu.
14849
14850 2017-04-04 John Baldwin <jhb@FreeBSD.org>
14851
14852 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
14853 amd64bsd_store_inferior_registers): Use ptid from regcache.
14854
14855 2017-04-04 Pedro Alves <palves@redhat.com>
14856
14857 * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
14858 data fields, make them private and add "m_" prefixes.
14859 (lnp_state_machine::lnp_state_machine): New ctor.
14860 (record_line, check_line_address, handle_set_discriminator)
14861 (handle_set_address, handle_advance_pc, handle_special_opcode)
14862 (handle_advance_line, handle_set_file, handle_negate_stmt)
14863 (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
14864 (end_sequence, advance_line): New methods.
14865 (m_gdbarch, m_record_lines_p): New fields.
14866 (lnp_reader_state): Delete.
14867 (dwarf_record_line): Rename to ...
14868 (lnp_state_machine::record_line): ... adjust.
14869 (init_lnp_state_machine): Delete.
14870 (lnp_state_machine::lnp_state_machine): New.
14871 (check_line_address): Rename to ...
14872 (lnp_state_machine::check_line_address): This.
14873 (dwarf_decode_lines_1): Remove reference to "reader_state".
14874 Adjust lnp_state_machine having a non-default ctor. Use bool.
14875 State machine internal state manipulation moved to
14876 lnp_state_machine methods.
14877
14878 2017-04-04 Pedro Alves <palves@redhat.com>
14879
14880 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14881 unittests/offset-type-selftests.c.
14882 (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
14883 * common/offset-type.h: New file.
14884 * common/preprocessor.h: New file.
14885 * common/traits.h: New file.
14886 * common/valid-expr.h: New file.
14887 * dwarf2expr.c: Include "common/underlying.h". Adjust to use
14888 sect_offset and cu_offset strong typedefs throughout.
14889 * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
14890 typedefs throughout.
14891 * dwarf2loc.c: Include "common/underlying.h". Adjust to use
14892 sect_offset and cu_offset strong typedefs throughout.
14893 * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
14894 typedefs throughout.
14895 * gdbtypes.h: Include "common/offset-type.h".
14896 (cu_offset): Now an offset type (strong typedef) instead of a
14897 struct.
14898 (sect_offset): Likewise.
14899 (union call_site_parameter_u): Rename "param_offset" field to
14900 "param_cu_off".
14901 * unittests/offset-type-selftests.c: New file.
14902
14903 2017-04-04 Pedro Alves <palves@redhat.com>
14904
14905 * common/underlying.h: New file.
14906 * dwarf2read.c: Include "common/gdb_optional.h" and
14907 "common/underlying.h".
14908 (dir_index, file_name_index): New types.
14909 (file_entry): Use them.
14910 (file_entry::include): Use to_underlying.
14911 (line_header::add_file_name): Use dir_index.
14912 (read_formatted_entries): Use gdb::optional. Read form before
14913 writting to file_entry.
14914 (dwarf_decode_line_header): Use dir_index.
14915 (lnp_state_machine::current_file): Use to_underlying.
14916 (lnp_state_machine::file): Change type to file_name_index.
14917 (dwarf_record_line): Use to_underlying.
14918 (init_lnp_state_machine): Use file_name_index.
14919 (dwarf_decode_lines_1): Use dir_index and file_name_index.
14920
14921 2017-04-04 Pedro Alves <palves@redhat.com>
14922
14923 * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
14924 operator bool, has_value and get methods.
14925
14926 2017-04-04 Pedro Alves <palves@redhat.com>
14927
14928 * dwarf2read.c (struct file_entry): Add ctors, and initialize all
14929 fields.
14930 (line_header): Initialize all data fields. Change type of
14931 standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
14932 Change type of include_dirs to std::vector<const char *>. Remove
14933 num_include_dirs, include_dirs_size. Change type of file_names to
14934 std::vector<file_entry>. Remove num_file_names, file_names_size.
14935 (line_header::line_header): New.
14936 (line_header::add_include_dir, line_header::add_file_name): New
14937 methods.
14938 (line_header::include_dir_at): Remove NULL check.
14939 (line_header::file_name_at): Add const overload.
14940 (line_header_up): New unique_ptr typedef.
14941 (dw2_get_file_names_reader): Use line_header_up. Adjust to use
14942 std::vector. Remove free_line_header call.
14943 (dwarf2_build_include_psymtabs): Use line_header_up. Remove
14944 free_line_header call.
14945 (free_cu_line_header): Delete.
14946 (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
14947 (setup_type_unit_groups): Use line_header_up instead of cleanups.
14948 Adjust to use std::vector.
14949 (free_line_header): Delete.
14950 (free_line_header_voidp): Use delete.
14951 (add_include_dir): Replace with ...
14952 (line_header::add_include_dir): ... this method. Use std::vector.
14953 (add_file_name): Replace with ...
14954 (line_header::add_file_name): ... this method. Use std::vector.
14955 (add_include_dir_stub): Delete.
14956 (read_formatted_entries): Remove memset.
14957 (dwarf_decode_line_header): Return a line_header_up instead of a
14958 raw pointer. Remove cleanup handling. Pass lambdas to
14959 read_formatted_entries. Adjust to use line_header methods.
14960 (dwarf_decode_lines_1): Adjust to use line_header methods.
14961 (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
14962 use std::vector.
14963
14964 2017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
14965
14966 * remote.c (set_general_thread, set_continue_thread): Use ptid_t
14967 instead of struct ptid.
14968
14969 2017-05-04 Alan Hayward <alan.hayward@arm.com>
14970
14971 * frame.c (get_frame_register_bytes): Unwind using value.
14972 (put_frame_register_bytes): Likewise.
14973
14974 2017-03-30 Iain Buclaw <ibuclaw@gdcproject.org>
14975
14976 * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
14977 aggregate-like.
14978
14979 2017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
14980
14981 * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
14982
14983 2017-03-29 Yao Qi <yao.qi@linaro.org>
14984
14985 * gdbthread.h (struct thread_info): Declare constructor and
14986 destructor. Add some in-class member initializers.
14987 * thread.c (free_thread): Remove.
14988 (init_thread_list): Call delete instead of free_thread.
14989 (new_thread): Call thread_info constructor.
14990 (thread_info::thread_info): New function.
14991 (thread_info::~thread_info): New function.
14992 (delete_thread_1): Call delete instead of free_thread.
14993 (make_cleanup_restore_current_thread): Move tp and frame to
14994 inner block.
14995
14996 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
14997
14998 * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
14999 (arc_skip_prologue): Likewise.
15000 (arc_make_frame_cache): Likewise.
15001 (arc_pv_get_operand): New function.
15002 (arc_is_in_prologue): Likewise.
15003 (arc_analyze_prologue): Likewise.
15004 (arc_print_frame_cache): Likewise.
15005 (MAX_PROLOGUE_LENGTH): New constant.
15006
15007 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
15008
15009 * configure.tgt: Add arc-insn.o.
15010 * arc-tdep.c (arc_delayed_print_insn): Make non-static.
15011 (dump_arc_instruction_command): New function.
15012 (arc_fprintf_disasm): Likewise.
15013 (arc_disassemble_info): Likewise.
15014 (arc_insn_get_operand_value): Likewise.
15015 (arc_insn_get_operand_value_signed): Likewise.
15016 (arc_insn_get_memory_base_reg): Likewise.
15017 (arc_insn_get_memory_offset): Likewise.
15018 (arc_insn_get_branch_target): Likewise.
15019 (arc_insn_dump): Likewise.
15020 (arc_insn_get_linear_next_pc): Likewise.
15021 * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
15022 (arc_disassemble_info): Likewise.
15023 (arc_insn_get_branch_target): Likewise.
15024 (arc_insn_get_linear_next_pc): Likewise.
15025 * NEWS: Mention new "maint print arc arc-instruction".
15026
15027 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
15028
15029 * arc-tdep (maintenance_print_arc_list): New variable.
15030 (maintenance_print_arc_command): New function.
15031
15032 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
15033
15034 * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
15035 Add "limm" and "reserved".
15036 (arc_cannot_fetch_register, arc_cannot_store_register): Add
15037 ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
15038 * arc-tdep.h (arc_regnum): Likewise.
15039
15040 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
15041
15042 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
15043 for THREADPTR register.
15044 (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
15045 register.
15046 * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
15047 (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
15048 * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
15049
15050 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
15051
15052 * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
15053 registers above gdbarch_num_regs (gdbarch) as privileged in
15054 call0 ABI.
15055
15056 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
15057
15058 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
15059 for a single specified register or for all registers in
15060 a0_base..a0_base + C0_NREGS range.
15061 (supply_gregset_reg): Call regcache_raw_supply for a single
15062 specified register or for all registers in a0_base..a0_base +
15063 C0_NREGS range.
15064
15065 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
15066
15067 * arch/xtensa.h (C0_NREGS): Add definition.
15068 * xtensa-tdep.c (C0_NREGS): Remove definition.
15069
15070 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
15071
15072 * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
15073 Drop xtensa_default_isa initialization.
15074 (xtensa_gdbarch_init): Initialize xtensa_default_isa.
15075
15076 2017-03-27 Pedro Alves <palves@redhat.com>
15077
15078 * dwarf2read.c (file_entry) <dir_index>: Add comment.
15079 (file_entry::include_dir): New method.
15080 (line_header::include_dir_at, line_header::file_name_at): New
15081 methods.
15082 (setup_type_unit_groups, setup_type_unit_groups)
15083 (psymtab_include_file_name): Simplify using the new methods.
15084 (lnp_state_machine) <the_line_header>: New field.
15085 <file>: Add comment.
15086 (lnp_state_machine::current_file): New method.
15087 (dwarf_record_line): Simplify using the new methods.
15088 (init_lnp_state_machine): Initialize the "the_line_header" field.
15089 (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
15090 Simplify using the new methods.
15091
15092 2017-03-27 Pedro Alves <palves@redhat.com>
15093
15094 * cp-name-parser.y (make_empty): Delete.
15095 (demangler_special, nested_name, ptr_operator, array_indicator)
15096 (direct_declarator, declarator_1): Use fill_comp instead of
15097 make_empty.
15098
15099 2017-03-27 Pedro Alves <palves@redhat.com>
15100
15101 * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
15102 to ATTRIBUTE_PRINTF.
15103 * solib-target.c (library_list_start_list): Print "string" not
15104 "version".
15105 * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
15106 gdb_xml_error call.
15107
15108 2017-03-27 Pedro Alves <palves@redhat.com>
15109
15110 * dwarf2read.c (struct file_and_directory): New.
15111 (dwarf2_get_dwz_file): Adjust to use std::string.
15112 (dw2_get_file_names_reader): Adjust to use file_and_directory.
15113 (find_file_and_directory): Adjust to return a file_and_directory
15114 object.
15115 (read_file_scope): Adjust to use file_and_directory. Remove
15116 make_cleanup/do_cleanups calls.
15117 (open_and_init_dwp_file): Adjust to use std::string. Remove
15118 make_cleanup/do_cleanups calls.
15119 * python/python.c (do_start_initialization): Adjust to ldirname
15120 returning a std::string.
15121 * utils.c (ldirname): Now returns a std::string.
15122 * utils.h (ldirname): Change return type to std::string.
15123 * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
15124 returning a std::string.
15125 * xml-tdesc.c (file_read_description_xml): Likewise.
15126
15127 2017-03-24 Alan Hayward <alan.hayward@arm.com>
15128
15129 * regcache.c (regcache_debug_print_register): New function.
15130 * regcache.h (regcache_debug_print_register): New declaration.
15131 * target.c (debug_print_register): Remove.
15132 (target_fetch_registers): Call regcache_debug_print_register.
15133 (target_store_registers): Likewise.
15134
15135 2017-03-24 Pádraig Brady <pbrady@fb.com>
15136
15137 * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
15138 reference beyond the 'lh->include_dirs' array before accessing to
15139 it.
15140 (psymtab_include_file_name): Likewise.
15141 (dwarf_decode_lines_1): Likewise.
15142 (dwarf_decode_lines): Likewise.
15143 (file_file_name): Likewise.
15144
15145 2017-03-23 Simon Marchi <simon.marchi@ericsson.com>
15146
15147 * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
15148 inferior_ptid.
15149 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
15150 ps_lsetfpregs): Likewise.
15151 * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
15152 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
15153 ps_lsetfpregs): Likewise.
15154 * target.c (target_fetch_registers, target_store_registers):
15155 Remove asserts.
15156
15157 2017-03-23 Alan Hayward <alan.hayward@arm.com>
15158
15159 * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
15160
15161 2017-03-23 Yao Qi <yao.qi@linaro.org>
15162
15163 * aarch64-tdep.c (aarch64_process_record_test): Declare.
15164 (_initialize_aarch64_tdep): Register it.
15165 (aarch64_record_load_store): Handle PRFM instruction.
15166 (aarch64_process_record_test): New function.
15167
15168 2017-03-23 Yao Qi <yao.qi@linaro.org>
15169
15170 * aarch64-tdep.c (aarch64_record_load_store): Fix code
15171 indentation.
15172
15173 2017-03-23 Yao Qi <yao.qi@linaro.org>
15174
15175 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
15176
15177 2017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
15178
15179 python/python.c (do_start_initialization): Fix memory leak.
15180
15181 2017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
15182
15183 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
15184 using get_ptrace_pid.
15185 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
15186 inferior_ptid.
15187 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
15188 inferior_ptid instead of pid.
15189
15190 2017-03-22 Yao Qi <yao.qi@linaro.org>
15191
15192 * aarch64-tdep.c: Wrap locally used classes in anonymous
15193 namespace.
15194 * arm-tdep.c: Likewise.
15195 * linespec.c: Likewise.
15196 * ui-out.c: Likewise.
15197
15198 2017-03-22 Jonah Graham <jonah@kichwacoders.com>
15199
15200 PR gdb/19637
15201 * python/lib/gdb/printer/bound_registers.py: Import sys.
15202
15203 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
15204
15205 * windows-nat.c (do_windows_fetch_inferior_registers): Add
15206 windows_thread_info parameter and use it instead of
15207 current_thread.
15208 (windows_fetch_inferior_registers): Don't set current_thread,
15209 pass the thread to do_windows_fetch_inferior_registers. Use
15210 ptid from regcache instead of inferior_ptid.
15211 (do_windows_store_inferior_registers): Add windows_thread_info
15212 parameter and use it instead of current_thread.
15213 (windows_store_inferior_registers): Don't set current_thread,
15214 pass the thread to do_windows_store_inferior_registers. Use
15215 ptid from regcache instead of inferior_ptid.
15216
15217 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
15218
15219 * ser-mingw.c (ser_windows_raw): Remove reference to
15220 struct serial::current_timeout.
15221
15222 2017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
15223
15224 PR tdep/20928
15225 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
15226 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
15227 (sparc64_fsr_type): Fix %fsr decoding.
15228
15229 2017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
15230
15231 * python/py-record-btrace.c (btpy_insn_data): Change return type
15232 for Python 2.
15233
15234 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
15235
15236 * spu-linux-nat.c (spu_fetch_inferior_registers,
15237 spu_store_inferior_registers): Use ptid from regcache, set and
15238 restore inferior_ptid.
15239 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
15240 Likewise.
15241
15242 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
15243
15244 * i386-linux-nat.c (fetch_register, store_register,
15245 i386_linux_fetch_inferior_registers,
15246 i386_linux_store_inferior_registers): Use ptid from regcache.
15247 * ia64-linux-nat.c (ia64_linux_fetch_register,
15248 ia64_linux_store_register): Likewise.
15249 * inf-ptrace.c (inf_ptrace_fetch_register,
15250 inf_ptrace_store_register): Likewise.
15251 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
15252 m32r_linux_store_inferior_registers): Likewise.
15253 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
15254 m68kbsd_store_inferior_registers): Likewise.
15255 * m68k-linux-nat.c (fetch_register, store_register,
15256 m68k_linux_fetch_inferior_registers,
15257 m68k_linux_store_inferior_registers): Likewise.
15258 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
15259 m88kbsd_store_inferior_registers): Likewise.
15260 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
15261 mips_fbsd_store_inferior_registers): Likewise.
15262 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
15263 mips64_linux_regsets_store_registers): Likewise.
15264 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
15265 mipsnbsd_store_inferior_registers): Likewise.
15266 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
15267 mips64obsd_store_inferior_registers): Likewise.
15268 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
15269 Likewise.
15270 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
15271 ppcfbsd_store_inferior_registers): Likewise.
15272 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
15273 ppc_linux_store_inferior_registers): Likewise.
15274 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
15275 ppcnbsd_store_inferior_registers): Likewise.
15276 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
15277 ppcobsd_store_registers): Likewise.
15278 * procfs.c (procfs_fetch_registers, procfs_store_registers):
15279 Likewise.
15280 * ravenscar-thread.c (ravenscar_fetch_registers,
15281 ravenscar_store_registers, ravenscar_prepare_to_store):
15282 Likewise.
15283 * record-btrace.c (record_btrace_fetch_registers,
15284 record_btrace_store_registers, record_btrace_prepare_to_store):
15285 Likewise.
15286 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
15287 Lookup inferior using ptid from regcache, instead of
15288 current_inferior.
15289 * remote.c (remote_fetch_registers, remote_store_registers): Use
15290 ptid from regcache.
15291 * rs6000-nat.c (fetch_register, store_register): Likewise.
15292 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
15293 s390_linux_store_inferior_registers): Likewise.
15294 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
15295 shnbsd_store_inferior_registers): Likewise.
15296 * sol-thread.c (sol_thread_fetch_registers,
15297 sol_thread_store_registers): Likewise.
15298 * sparc-nat.c (sparc_fetch_inferior_registers,
15299 sparc_store_inferior_registers): Likewise.
15300 * tilegx-linux-nat.c (fetch_inferior_registers,
15301 store_inferior_registers): Likewise.
15302 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
15303 vaxbsd_store_inferior_registers): Likewise.
15304 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
15305 store_xtregs): Likewise.
15306
15307 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15308
15309 PR gdb/14441
15310 * NEWS: Mention support for rvalue references in GDB and python.
15311 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
15312 supports both lvalue and rvalue references.
15313
15314 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15315
15316 PR gdb/14441
15317 * gdbtypes.c (rank_one_type): Implement overloading
15318 resolution rules regarding rvalue references.
15319
15320 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15321
15322 PR gdb/14441
15323 * aarch64-tdep.c (aarch64_type_align)
15324 (aarch64_extract_return_value, aarch64_store_return_value): Change
15325 lvalue reference type checks to general reference type checks.
15326 * amd64-tdep.c (amd64_classify): Likewise.
15327 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
15328 Likewise.
15329 * arm-tdep.c (arm_type_align, arm_extract_return_value)
15330 (arm_store_return_value): Likewise.
15331 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
15332 * c-typeprint.c (c_print_type): Likewise.
15333 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
15334 (cplus_number_of_children, cplus_describe_child): Likewise.
15335 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
15336 * completer.c (expression_completer): Likewise.
15337 * cp-support.c (make_symbol_overload_list_adl_namespace):
15338 Likewise.
15339 * darwin-nat-info.c (info_mach_region_command): Likewise.
15340 * dwarf2loc.c (entry_data_value_coerce_ref)
15341 (value_of_dwarf_reg_entry): Likewise.
15342 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
15343 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
15344 Likewise.
15345 * findvar.c (extract_typed_address, store_typed_address):
15346 Likewise.
15347 * gdbtypes.c (rank_one_type): Likewise.
15348 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
15349 * infcall.c (value_arg_coerce): Likewise.
15350 * language.c (pointer_type): Likewise.
15351 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
15352 Likewise.
15353 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
15354 * mn10300-tdep.c (mn10300_type_align): Likewise.
15355 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
15356 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
15357 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
15358 Likewise.
15359 * printcmd.c (print_formatted, x_command): Likewise.
15360 * python/py-type.c (typy_get_composite, typy_template_argument):
15361 Likewise.
15362 * python/py-value.c (valpy_referenced_value)
15363 (valpy_get_dynamic_type, value_has_field): Likewise.
15364 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
15365 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
15366 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
15367 * spu-tdep.c (spu_scalar_value_p): Likewise.
15368 * symtab.c (lookup_symbol_aux): Likewise.
15369 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
15370 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
15371 Likewise.
15372 * valops.c (value_cast_pointers, value_cast)
15373 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
15374 (value_struct_elt, value_struct_elt_bitpos)
15375 (value_find_oload_method_list, find_overload_match)
15376 (value_rtti_indirect_type): Likewise.
15377 * valprint.c (val_print_scalar_type_p, generic_val_print):
15378 Likewise.
15379 * value.c (value_actual_type, value_as_address, unpack_long)
15380 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
15381 (coerce_ref): Likewise.
15382 * varobj.c (varobj_get_value_type): Likewise.
15383
15384 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15385
15386 PR gdb/14441
15387 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
15388 table of constants.
15389 * python/lib/gdb/command/explore.py: Support exploring values
15390 of rvalue reference types.
15391 * python/lib/gdb/types.py: Implement get_basic_type() for
15392 rvalue reference types.
15393 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
15394 constant.
15395 * python/py-value.c (valpy_getitem): Add an rvalue reference
15396 check.
15397 (valpy_reference_value): Add new parameter "refcode".
15398 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
15399 New wrappers for valpy_reference_value().
15400 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
15401 (gdbpy_invoke_xmethod): Likewise.
15402
15403 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15404
15405 PR gdb/14441
15406 * dwarf2read.c (process_die, read_type_die_1): Handle the
15407 DW_TAG_rvalue_reference_type DIE.
15408 (read_tag_reference_type): Add new parameter "refcode".
15409
15410 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15411
15412 PR gdb/14441
15413 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
15414 (c_type_print_modifier, c_type_print_varspec_suffix)
15415 (c_type_print_base): Support printing rvalue reference types.
15416 * c-valprint.c (c_val_print, c_value_print): Support printing
15417 rvalue reference values.
15418
15419 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15420
15421 PR gdb/14441
15422 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
15423 typename.
15424 * cp-support.c (replace_typedefs): Handle
15425 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
15426 * python/py-type.c (typy_lookup_type): Likewise.
15427
15428 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15429
15430 PR gdb/14441
15431 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
15432 * parse.c (insert_type): Change assert statement.
15433 (follow_types): Handle rvalue reference types.
15434 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
15435 constant.
15436
15437 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15438
15439 PR gdb/14441
15440 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
15441 value_ref() interface.
15442 * c-valprint.c (c_value_print): Likewise.
15443 * infcall.c (value_arg_coerce): Likewise.
15444 * python/py-value.c (valpy_reference_value): Likewise.
15445 * valops.c (value_cast, value_reinterpret_cast)
15446 (value_dynamic_cast, typecmp): Likewise.
15447 (value_ref): Parameterize by kind of return value reference type.
15448 * value.h (value_ref): Add new parameter "refcode".
15449
15450 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15451
15452 PR gdb/14441
15453 * dwarf2read.c (read_tag_reference_type): Use
15454 lookup_lvalue_reference_type() instead of lookup_reference_type().
15455 * eval.c (evaluate_subexp_standard): Likewise.
15456 * f-exp.y: Likewise.
15457 * gdbtypes.c (make_reference_type, lookup_reference_type):
15458 Generalize with rvalue reference types.
15459 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
15460 convenience wrappers for lookup_reference_type().
15461 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
15462 reference kind parameter.
15463 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
15464 wrappers for lookup_reference_type().
15465 * guile/scm-type.c (gdbscm_type_reference): Use
15466 lookup_lvalue_reference_type() instead of lookup_reference_type().
15467 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
15468 * parse.c (follow_types): Likewise.
15469 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
15470 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
15471 Likewise.
15472 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
15473 (gdbpy_invoke_xmethod): Likewise.
15474 * stabsread.c: Provide extra argument to make_reference_type()
15475 call.
15476 * valops.c (value_ref, value_rtti_indirect_type): Use
15477 lookup_lvalue_reference_type() instead of lookup_reference_type().
15478
15479 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15480
15481 PR gdb/14441
15482 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
15483 (TYPE_IS_REFERENCE): New macro.
15484 (struct type): Add rvalue_reference_type field.
15485 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
15486
15487 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
15488
15489 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
15490 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
15491 New function definition.
15492 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
15493 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
15494 New function declaration.
15495 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
15496 * mi/mi-interp.h: New file.
15497 * solib.c (info_sharedlibrary_command): Replace for loop with
15498 ALL_SO_LIBS macro
15499 * solib.h (update_solib_list): New function declaration.
15500 (so_list_head): Move macro.
15501 * solist.h (ALL_SO_LIBS): New macro.
15502
15503 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
15504
15505 * infcmd.c (post_create_inferior): Remove unused argument in
15506 call to solib_add.
15507 * remote.c (remote_start_remote): Likewise.
15508 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
15509 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
15510 (enable_break): Likewise.
15511 * solib.c (update_solib_list): Remove unused target argument
15512 and its documentation.
15513 (solib_add): Remove unused target argument. Remove unused
15514 argument in call to update_solib_list.
15515 (info_sharedlibrary_command): Remove unused argument in call
15516 to update_solib_list.
15517 (sharedlibrary_command): Remove unused argument in call to
15518 solib_add.
15519 (handle_solib_event): Likewise.
15520 (reload_shared_libraries): Likewise.
15521 * solib.h (solib_add): Remove unused target argument.
15522
15523 2017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
15524
15525 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
15526 (s390_displaced_step_fixup): Cover relative branches with the
15527 default fixup handling. This fixes lack of support for some
15528 relative branch instructions.
15529
15530 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15531
15532 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
15533 ptid from regcache.
15534
15535 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15536
15537 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
15538 i386_darwin_store_inferior_registers): Use ptid from regcache.
15539
15540 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15541
15542 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
15543 i386bsd_store_inferior_registers): Use ptid from regcache.
15544
15545 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15546
15547 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
15548 hppaobsd_store_registers): Use ptid from regcache.
15549
15550 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15551
15552 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
15553 hppanbsd_store_registers): Use ptid from regcache.
15554
15555 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15556
15557 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
15558 from regcache. Use get_ptrace_pid.
15559
15560 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15561
15562 * corelow.c (get_core_register_section): Use ptid from regcache,
15563 update doc.
15564
15565 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15566
15567 * bsd-uthread.c (bsd_uthread_fetch_registers,
15568 bsd_uthread_store_registers): Use ptid from regcache, set and
15569 restore inferior_ptid.
15570
15571 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15572
15573 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
15574 fetch_fp_regs, store_register, store_regs, store_fp_register,
15575 store_fp_regs): Use ptid from regcache.
15576
15577 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15578
15579 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
15580 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
15581 store_vfp_regs): Use ptid from regcache.
15582
15583 2017-03-17 Pedro Alves <palves@redhat.com>
15584
15585 PR remote/21188
15586 * ser-base.c (ser_base_wait_for): Add comment.
15587 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
15588 version.
15589 * ser-unix.c (hardwire_raw): Remove reference to
15590 scb->current_timeout.
15591 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
15592 (hardwire_ops): Install ser_base_readchar instead of
15593 hardwire_readchar.
15594 * serial.h (struct serial) <current_timeout, timeout_remaining>:
15595 Remove fields.
15596
15597 2017-03-17 Jonah Graham <jonah@kichwacoders.com>
15598
15599 PR gdb/19637
15600 * python/lib/gdb/printer/bound_registers.py: Add support for
15601 Python 3.
15602
15603 2017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
15604
15605 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
15606 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
15607 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
15608 byte_offset to subobj_byte_offset. Fix the handling of
15609 DWARF_VALUE_STACK on big-endian targets when coming via an
15610 implicit pointer.
15611 (dwarf2_evaluate_loc_desc): Adjust call to
15612 dwarf2_evaluate_loc_desc_full.
15613 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
15614 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
15615
15616 2017-03-16 Yao Qi <yao.qi@linaro.org>
15617
15618 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
15619 and REVSH instructions.
15620
15621 2017-03-16 Yao Qi <yao.qi@linaro.org>
15622
15623 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
15624 (arm_record_test): Declare.
15625 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
15626 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
15627 align with the manual.
15628 (thumb_record_misc): Adjust the code order to align with the
15629 manual.
15630 (thumb2_record_decode_insn_handler): Fix instruction matching.
15631 (instruction_reader_thumb): New class.
15632 (arm_record_test): New function.
15633
15634 2017-03-16 Yao Qi <yao.qi@linaro.org>
15635
15636 * arm-tdep.c (abstract_memory_reader): New class.
15637 (instruction_reader): New class.
15638 (extract_arm_insn): Add argument 'reader'. Callers updated.
15639 (decode_insn): Likewise.
15640
15641 2017-03-16 Doug Evans <dje@google.com>
15642
15643 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
15644 member. Change type of TYPE member to SCM. All uses updated.
15645 (lsscm_make_lazy_string_smob): Add assert.
15646 (lsscm_make_lazy_string): Flag bad length values.
15647 (lsscm_elt_type): New function.
15648 (gdbscm_lazy_string_to_value): Rewrite to use
15649 lsscm_safe_lazy_string_to_value.
15650 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
15651 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
15652 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
15653 in incoming type.
15654 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
15655 * guile/scm-type.c (tyscm_scm_to_type): New function.
15656
15657 2017-03-15 Doug Evans <dje@google.com>
15658
15659 PR python/17728, python/18439, python/18779
15660 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
15661 member. Change type of TYPE member to PyObject *. All uses updated.
15662 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
15663 (gdbpy_create_lazy_string_object): Flag bad length values.
15664 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
15665 Handle typedefs in incoming type.
15666 (stpy_lazy_string_elt_type): New function.
15667 (gdbpy_extract_lazy_string): Call it.
15668 * python/py-value.c (valpy_lazy_string): Flag bad length values.
15669 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
15670 typedefs in incoming type.
15671
15672 2017-03-16 Doug Evans <dje@google.com>
15673
15674 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
15675 * guile/scm-type.c (tyscm_scm_to_type): New function.
15676
15677 2017-03-16 Jiong Wang <jiong.wang@arm.com>
15678
15679 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
15680 "ULONGEST" for "skip".
15681
15682 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
15683
15684 PR gdb/21220
15685 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
15686 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
15687 (inf_ptrace_peek_poke): ...here. New function. Now also loop
15688 over ptrace peek/poke until end of buffer or error.
15689
15690 2017-03-14 Simon Marchi <simon.marchi@ericsson.com>
15691
15692 * parse.c (length_of_subexp): Make static.
15693 * parser-defs.h (length_of_subexp): Remove.
15694
15695 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
15696
15697 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
15698 as well.
15699
15700 2017-03-14 Pedro Alves <palves@redhat.com>
15701
15702 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
15703 (main): Use std::unique_ptr. Remove calls to
15704 cp_demangled_name_parse_free.
15705
15706 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15707
15708 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
15709 alphabsd_store_inferior_registers): Use regcache->ptid instead
15710 of inferior_ptid.
15711
15712 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15713
15714 * aix-thread.c (aix_thread_fetch_registers,
15715 aix_thread_store_registers): Use regcache->ptid instead of
15716 inferior_ptid.
15717
15718 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15719
15720 * aarch64-linux-nat.c (fetch_gregs_from_thread,
15721 store_gregs_to_thread, fetch_fpregs_from_thread,
15722 store_fpregs_to_thread): Use regcache->ptid instead of
15723 inferior_ptid.
15724
15725 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15726
15727 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
15728 amd64_linux_fetch_inferior_registers): Use regcache->ptid
15729 instead of inferior_ptid.
15730
15731 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15732
15733 * target.c (target_fetch_registers, target_store_registers): Add
15734 assert.
15735
15736 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15737
15738 * regcache.h (regcache_get_ptid): New function.
15739 * regcache.c (regcache_get_ptid): New function.
15740
15741 2017-03-13 Mark Wielaard <mark@klomp.org>
15742
15743 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
15744
15745 2017-03-10 Keith Seitz <keiths@redhat.com>
15746
15747 PR c++/8218
15748 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
15749
15750 2017-03-08 Pedro Alves <palves@redhat.com>
15751
15752 PR gdb/18360
15753 * infrun.c (start_step_over, do_target_resume, resume)
15754 (restart_threads): Assert we're not resuming a thread that is
15755 meant to be stopped.
15756 (infrun_thread_stop_requested_callback): Delete.
15757 (infrun_thread_stop_requested): If the thread is internally
15758 stopped, queue a pending stop event and clear the thread's
15759 inline-frame state.
15760 (handle_stop_requested): New function.
15761 (handle_syscall_event, handle_inferior_event_1): Use
15762 handle_stop_requested.
15763 (handle_stop_requested): New function.
15764 (handle_signal_stop): Set the thread's stop_signal here instead of
15765 at caller.
15766 (finish_step_over): Clear step over info unconditionally.
15767 (handle_signal_stop): If the user had interrupted the event
15768 thread, consider the stop a random signal.
15769 (handle_signal_stop) <signal arrived while stepping over
15770 breakpoint>: Don't restart threads here.
15771 (stop_waiting): Don't clear step-over info here.
15772
15773 2017-03-08 Pedro Alves <palves@redhat.com>
15774
15775 PR 21206
15776 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
15777 goes to argument 2, not 1.
15778
15779 2017-03-08 Pedro Alves <palves@redhat.com>
15780
15781 PR cli/21218
15782 * top.c (gdb_readline_wrapper): Avoid passing NULL to
15783 display_gdb_prompt.
15784 (command_line_input): Add comment.
15785
15786 2017-03-08 Pedro Alves <palves@redhat.com>
15787
15788 PR tui/21216
15789 * tui/tui-file.c (tui_file::write): New.
15790 * tui/tui-file.h (tui_file): Override "write".
15791 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
15792 factored out from ...
15793 (tui_puts): ... here.
15794 (tui_putc): Use them.
15795 (tui_write): New function.
15796 * tui/tui-io.h (tui_write): Declare.
15797
15798 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
15799
15800 * Makefile.in (SFILES): Replace "environ.c" with
15801 "common/environ.c".
15802 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
15803 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
15804 to...
15805 * common/environ.c: ... here.
15806 * environ.h: Moved to...
15807 * common/environ.h: ... here.
15808
15809 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
15810
15811 * gdbarch.sh (pstring_ptr): New static function.
15812 (gdbarch_disassembler_options): Use it.
15813 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
15814 not valid_disassembler_option->name.
15815 * gdbarch.c: Regenerate.
15816
15817 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
15818
15819 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
15820
15821 2017-03-07 Pedro Alves <palves@redhat.com>
15822
15823 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
15824
15825 2017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
15826
15827 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
15828 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
15829 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
15830 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
15831
15832 2017-03-06 Simon Marchi <simon.marchi@ericsson.com>
15833
15834 * xtensa-linux-nat.c (fetch_gregs): Remove const.
15835
15836 2017-03-03 Simon Marchi <simon.marchi@ericsson.com>
15837
15838 * remote.c (remote_add_target_side_commands): Use range-based
15839 for loop.
15840
15841 2017-03-03 Yao Qi <yao.qi@linaro.org>
15842
15843 PR gdb/21165
15844 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
15845 value is lazy.
15846 * valprint.c (common_val_print): Likewise.
15847
15848 2017-02-28 Peter Bergner <bergner@vnet.ibm.com>
15849
15850 * NEWS: Mention new set/show disassembler-options commands.
15851 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
15852 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
15853 (prospective_options): New static variable.
15854 (gdb_disassembler::gdb_disassembler): Initialize
15855 m_di.disassembler_options.
15856 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
15857 (get_disassembler_options): New function.
15858 (set_disassembler_options): Likewise.
15859 (set_disassembler_options_sfunc): Likewise.
15860 (show_disassembler_options_sfunc): Likewise.
15861 (disassembler_options_completer): Likewise.
15862 (_initialize_disasm): Likewise.
15863 * disasm.h (get_disassembler_options): New prototype.
15864 (set_disassembler_options): Likewise.
15865 * gdbarch.sh (gdbarch_disassembler_options): New variable.
15866 (gdbarch_verify_disassembler_options): Likewise.
15867 * gdbarch.c: Regenerate.
15868 * gdbarch.h: Likewise.
15869 * arm-tdep.c (num_disassembly_options): Delete.
15870 (set_disassembly_style): Likewise.
15871 (arm_disassembler_options): New static variable.
15872 (set_disassembly_style_sfunc): Convert short style name into long
15873 option name. Call set_disassembler_options.
15874 (show_disassembly_style_sfunc): New function.
15875 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
15876 set_gdbarch_verify_disassembler_options.
15877 (_initialize_arm_tdep): Delete regnames variable and update callers.
15878 (arm_disassembler_options): Initialize.
15879 (disasm_options): New variable.
15880 (num_disassembly_options): Rename from this...
15881 (num_disassembly_styles): ...to this. Compute by scanning through
15882 disasm_options.
15883 (valid_disassembly_styles): Initialize using disasm_options.
15884 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
15885 set_arm_regname_option.
15886 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
15887 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
15888 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
15889 set_gdbarch_verify_disassembler_options.
15890 * s390-tdep.c (s390_disassembler_options): New static variable.
15891 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
15892 set_gdbarch_verify_disassembler_options.
15893
15894 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
15895
15896 * remote.c (remote_add_target_side_condition): Remove "struct"
15897 keyword from range-based for loop.
15898
15899 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
15900
15901 * remote.c (remote_add_target_side_condition): Use range-based
15902 for loop. Update comment.
15903
15904 2017-02-27 Yao Qi <yao.qi@linaro.org>
15905
15906 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
15907
15908 2017-02-26 Alan Hayward <alan.hayward@arm.com>
15909
15910 * regcache.c (regcache_raw_update): New function.
15911 (regcache_raw_read): Move code to regcache_raw_update.
15912 * regcache.h (regcache_raw_update): New declaration.
15913 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
15914
15915 2017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
15916
15917 * dwarf2read.c (create_debug_type_hash_table): Initialize
15918 header.signature and header.type_offset_in_tu.
15919
15920 2017-02-24 Pedro Alves <palves@redhat.com>
15921
15922 * symtab.c (make_file_symbol_completion_list_1): Use
15923 add_symtab_completions.
15924
15925 2017-02-24 Alan Hayward <alan.hayward@arm.com>
15926
15927 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
15928
15929 2017-02-24 Alan Hayward <alan.hayward@arm.com>
15930
15931 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
15932 I386_MAX_REGISTER_SIZE.
15933 (i386_pseudo_register_write): Likewise.
15934 (i386_process_record): Likewise.
15935 * i387-tdep.c (i387_supply_xsave): Likewise.
15936 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
15937 (store_register): Likewise.
15938
15939 2017-02-23 Pedro Alves <palves@redhat.com>
15940
15941 * ada-lang.c: Include "common/function-view.h".
15942 (ada_iterate_over_symbols): Adjust to use function_view as
15943 callback type.
15944 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
15945 (ada_make_symbol_completion_list): Use a lambda.
15946 (ada_exc_search_name_matches): Delete.
15947 (name_matches_regex): New.
15948 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
15949 * compile/compile-c-support.c: Include "common/function-view.h".
15950 (print_one_macro): Change prototype to accept a ui_file pointer.
15951 (write_macro_definitions): Use a lambda.
15952 * dwarf2read.c: Include "common/function-view.h".
15953 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
15954 (dw2_expand_symtabs_matching): Adjust to use function_view as
15955 callback type.
15956 * language.h: Include "common/function-view.h".
15957 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
15958 function_view as callback type.
15959 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
15960 * linespec.c: Include "common/function-view.h".
15961 (collect_info::add_symbol): New method.
15962 (struct symbol_and_data_callback, iterate_inline_only, struct
15963 symbol_matcher_data, iterate_name_matcher): Delete.
15964 (iterate_over_all_matching_symtabs): Adjust to use function_view
15965 as callback type and lambdas.
15966 (iterate_over_file_blocks): Adjust to use function_view as
15967 callback type.
15968 (decode_compound_collector): Now a class with private fields.
15969 (decode_compound_collector::release_symbols): New method.
15970 (collect_one_symbol): Rename to...
15971 (decode_compound_collector::operator()): ... this and adjust.
15972 (lookup_prefix_sym): decode_compound_collector construction bits
15973 move to decode_compound_collector ctor. Pass the
15974 decode_compound_collector object directly as callback. Remove
15975 cleanups and use decode_compound_collector::release_symbols
15976 instead.
15977 (symtab_collector): Now a class with private fields.
15978 (symtab_collector::release_symtabs): New method.
15979 (add_symtabs_to_list): Rename to...
15980 (symtab_collector::operator()): ... this and adjust.
15981 (collect_symtabs_from_filename): symtab_collector construction
15982 bits move to symtab_collector ctor. Pass the symtab_collector
15983 object directly as callback. Remove cleanups and use
15984 symtab_collector::release_symtabs instead.
15985 (collect_symbols): Delete.
15986 (add_matching_symbols_to_info): Use lambdas.
15987 * macrocmd.c (print_macro_callback): Delete.
15988 (info_macro_command): Use a lambda.
15989 (info_macros_command): Pass print_macro_definition as callable
15990 directly.
15991 (print_one_macro): Remove 'ignore' parameter.
15992 (macro_list_command): Adjust.
15993 * macrotab.c (macro_for_each_data::fn): Now a function_view.
15994 (macro_for_each_data::user_data): Delete field.
15995 (foreach_macro): Adjust to call the function_view.
15996 (macro_for_each): Adjust to use function_view as callback type.
15997 (foreach_macro_in_scope): Adjust to call the function_view.
15998 (macro_for_each_in_scope): Adjust to use function_view as callback
15999 type.
16000 * macrotab.h: Include "common/function-view.h".
16001 (macro_callback_fn): Declare a prototype instead of a pointer.
16002 Remove "user_data" parameter.
16003 (macro_for_each, macro_for_each_in_scope): Adjust to use
16004 function_view as callback type.
16005 * psymtab.c (partial_map_expand_apply)
16006 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
16007 Adjust to use function_view as callback type and to return bool.
16008 (psym_expand_symtabs_matching): Adjust to use function_view as
16009 callback types.
16010 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
16011 to use function_view as callback type and to return bool.
16012 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
16013 callback types.
16014 * symfile.c (expand_symtabs_matching): Adjust to use function_view
16015 as callback types.
16016 * symfile.h: Include "common/function-view.h".
16017 (expand_symtabs_file_matcher_ftype)
16018 (expand_symtabs_symbol_matcher_ftype)
16019 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
16020 return bool.
16021 (quick_symbol_functions::map_symtabs_matching_filename)
16022 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
16023 function_view as callback type and return bool.
16024 (expand_symtabs_matching): Adjust to use function_view as callback
16025 type.
16026 (maintenance_expand_name_matcher)
16027 (maintenance_expand_file_matcher): Delete.
16028 (maintenance_expand_symtabs): Use lambdas.
16029 * symtab.c (iterate_over_some_symtabs): Adjust to use
16030 function_view as callback types and return bool.
16031 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
16032 of a cleanup.
16033 (lookup_symtab_callback): Delete.
16034 (lookup_symtab): Use a lambda.
16035 (iterate_over_symbols): Adjust to use function_view as callback
16036 type.
16037 (struct search_symbols_data, search_symbols_file_matches)
16038 (search_symbols_name_matches): Delete.
16039 (search_symbols): Use a pair of lambdas.
16040 (struct add_name_data, add_macro_name, symbol_completion_matcher)
16041 (symtab_expansion_callback): Delete.
16042 (default_make_symbol_completion_list_break_on_1): Use lambdas.
16043 * symtab.h: Include "common/function-view.h".
16044 (iterate_over_some_symtabs): Adjust to use function_view as
16045 callback type and return bool.
16046 (iterate_over_symtabs): Adjust to use function_view as callback
16047 type.
16048 (symbol_found_callback_ftype): Remove 'data' parameter and return
16049 bool.
16050 (iterate_over_symbols): Adjust to use function_view as callback
16051 type.
16052
16053 2017-02-23 Pedro Alves <palves@redhat.com>
16054
16055 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
16056 (%.o) <unittests/%.c>: New pattern.
16057 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
16058 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
16059 * common/function-view.h: New file.
16060 * unittests/function-view-selftests.c: New file.
16061 * configure: Regenerate.
16062
16063 2017-02-23 Simon Marchi <simon.marchi@ericsson.com>
16064
16065 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
16066 inferior_ptid.
16067 * go32-nat.c (go32_thread_alive): Likewise.
16068
16069 2017-02-23 Yao Qi <yao.qi@linaro.org>
16070
16071 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
16072 delete.
16073
16074 2017-02-23 Yao Qi <yao.qi@linaro.org>
16075
16076 * varobj.c (varobj_clear_saved_item): Use delete instead of
16077 xfree.
16078 (update_dynamic_varobj_children): Likewise.
16079
16080 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
16081
16082 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
16083
16084 2017-02-21 Simon Marchi <simon.marchi@ericsson.com>
16085
16086 * common/enum-flags.h (enum_flags::enum_flags): Initialize
16087 m_enum_value to 0 in default constructor.
16088
16089 2017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
16090
16091 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
16092 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
16093 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
16094 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
16095 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
16096 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
16097 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
16098 IS_STORE_CONDITIONAL_INSN.
16099
16100 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
16101
16102 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
16103
16104 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16105
16106 * NEWS (Changes since GDB 7.12): Add DWARF-5.
16107
16108 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16109
16110 * dwarf2read.c (skip_one_die, read_attribute_value)
16111 (dwarf2_const_value_attr, dump_die_shallow)
16112 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
16113 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
16114
16115 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16116
16117 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
16118 (dwarf_parse_macro_header): Accept DWARF version 5.
16119 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
16120
16121 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16122
16123 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
16124 DW_AT_GNU_*.
16125 * common/common-exceptions.h (enum errors): Likewise.
16126 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
16127 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
16128 (dwarf_expr_context::execute_stack_op): Likewise.
16129 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
16130 Likewise.
16131 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
16132 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
16133 (show_entry_values_debug, call_site_to_target_addr)
16134 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
16135 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
16136 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
16137 (value_of_dwarf_block_entry, indirect_pieced_value)
16138 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
16139 (disassemble_dwarf_expression): Likewise.
16140 * dwarf2read.c (process_die, inherit_abstract_dies)
16141 (read_call_site_scope): Likewise.
16142 * gdbtypes.h (struct func_type, struct call_site_parameter)
16143 (struct call_site): Likewise.
16144 * stack.c (read_frame_arg): Likewise.
16145 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
16146
16147 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16148
16149 * defs.h (read_unsigned_leb128): New declaration.
16150 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
16151 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
16152 (dwarf2_find_location_expression): Call also
16153 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
16154 * dwarf2loc.h (dwarf2_version): New declaration.
16155 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
16156 rnglists.
16157 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
16158 .debug_rnglists.
16159 (struct dwop_section_names): Add loclists_dwo.
16160 (dwop_section_names): Add .debug_loclists.dwo.
16161 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
16162 (struct dwarf2_per_cu_data): Add dwarf_version.
16163 (struct dwo_sections): Add loclists.
16164 (struct attr_abbrev): Add implicit_const.
16165 (read_indirect_line_string): New declaration.
16166 (read_unsigned_leb128): Delete declaration.
16167 (rcuh_kind): New definition.
16168 (read_and_check_comp_unit_head): Change parameter
16169 is_debug_types_section to section_kind.
16170 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
16171 (read_comp_unit_head): Change parameter abfd to section, add parameter
16172 section_kind. Handle DWARF-5.
16173 (error_check_comp_unit_head): Accept also DWARF version 5.
16174 (read_and_check_comp_unit_head): Change parameter
16175 is_debug_types_section to section_kind.
16176 (read_and_check_type_unit_head): Delete function.
16177 (read_abbrev_offset): Handle DWARF-5.
16178 (create_debug_type_hash_table): Add parameter section_kind. Process
16179 only DW_UT_type. Use signature and type_offset_in_tu from struct
16180 comp_unit_head.
16181 (create_debug_types_hash_table): Update create_debug_type_hash_table
16182 caller.
16183 (create_all_type_units): Call create_debug_type_hash_table.
16184 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
16185 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
16186 caller.
16187 (skip_one_die): Handle DW_FORM_implicit_const.
16188 (dwarf2_rnglists_process): New function.
16189 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
16190 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
16191 (read_attribute_value): Handle DW_FORM_implicit_const,
16192 DW_FORM_line_strp.
16193 (read_attribute): Handle DW_FORM_implicit_const.
16194 (read_indirect_string_at_offset_from): New function from
16195 read_indirect_string_at_offset.
16196 (read_indirect_string_at_offset): Call
16197 read_indirect_string_at_offset_from.
16198 (read_indirect_line_string_at_offset): New function.
16199 (read_indirect_string): New function comment.
16200 (read_indirect_line_string): New function.
16201 (read_unsigned_leb128): Make it global.
16202 (dwarf2_string_attr): Handle DWARF-5.
16203 (add_include_dir_stub, read_formatted_entries): New functions.
16204 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
16205 Handle DWARF-5.
16206 (per_cu_header_read_in): Update read_comp_unit_head caller.
16207 (dwarf2_version): New function.
16208 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
16209 rnglists.
16210 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
16211 fields.
16212
16213 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16214
16215 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
16216
16217 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16218
16219 * dwarf2read.c (dwarf2_ranges_process): New function from
16220 dwarf2_ranges_read.
16221 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
16222 dwarf2_ranges_process.
16223
16224 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16225
16226 * dwarf2read.c (create_debug_type_hash_table): New function from
16227 create_debug_types_hash_table.
16228 (create_debug_types_hash_table): Call create_debug_type_hash_table.
16229 (create_all_type_units, open_and_init_dwo_file): Update
16230 create_debug_types_hash_table callers.
16231
16232 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
16233
16234 PR gdb/16188
16235 * fork-child.c (trace_start_error): Fix thinko. va_end should
16236 refer to 'ap', not 'args'.
16237
16238 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
16239 Pedro Alves <palves@redhat.com>
16240
16241 PR gdb/16188
16242 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
16243 calls succeeded.
16244 * fork-child.c (trace_start_error): New function.
16245 (trace_start_error_with_name): Likewise.
16246 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
16247 * inf-ptrace.c (inf_ptrace_me): Likewise.
16248 * inferior.h (trace_start_error): New prototype.
16249 (trace_start_error_with_name): Likewise.
16250
16251 2017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
16252
16253 PR gdb/21164
16254 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
16255 NULL before using it.
16256 * symmisc.c (maintenance_print_symbols): Likewise.
16257 (maintenance_print_msymbols): Likewise.
16258
16259 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16260
16261 * NEWS: Add record Python bindings entry.
16262
16263 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16264
16265 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
16266 py-record-full.o.
16267 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
16268 * python/py-record-btrace.c, python/py-record-btrace.h,
16269 python/py-record-full.c, python/py-record-full.h: New file.
16270 * python/py-record.c: Add include for py-record-btrace.h and
16271 py-record-full.h.
16272 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
16273 recpy_instruction_history, recpy_function_call_history, recpy_begin,
16274 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
16275 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
16276 New definition.
16277 (gdbpy_initialize_btrace): New export.
16278 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
16279
16280 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16281
16282 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
16283 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
16284 * python/py-record.c: New file.
16285 * python/python-internal.h (gdbpy_start_recording,
16286 gdbpy_current_recording, gdpy_stop_recording,
16287 gdbpy_initialize_record): New export.
16288 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
16289 (python_GdbMethods): Add gdbpy_start_recording,
16290 gdbpy_current_recording and gdbpy_stop_recording.
16291
16292 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16293
16294 * record-btrace.c (record_btrace_record_method): New function.
16295 (init_record_btrace_ops): Initialize to_record_method.
16296 * record-full.c (record_full_record_method): New function.
16297 (init_record_full_ops, init_record_full_core_ops): Add
16298 record_full_record_method.
16299 * record.h (enum record_method): New enum.
16300 * target-debug.h (target_debug_print_enum_record_method: New define.
16301 * target-delegates.c: Regenerate.
16302 * target.c (target_record_method): New function.
16303 * target.h: Include record.h.
16304 (struct target_ops) <to_record_method>: New field.
16305 (target_record_method): New export.
16306
16307 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16308
16309 * record.h (record_start, record_stop): New export.
16310 * record.c (record_start, record_stop): New function.
16311
16312 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16313
16314 * btrace.c (btrace_fetch): Copy function call segments pointer
16315 into a vector.
16316 (btrace_clear): Clear the vector.
16317 (btrace_find_insn_by_number): Use binary search to find the correct
16318 function call segment.
16319 * btrace.h (brace_fun_p): New typedef.
16320 (struct btrace_thread_info) <functions>: New field.
16321
16322 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16323
16324 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
16325 * btrace.c (btrace_decode_error): ... here. New function.
16326 * btrace.h (btrace_decode_error): New export.
16327
16328 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16329
16330 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
16331 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
16332 btrace_find_insn_by_number): Remove special case for gaps.
16333 * btrace.h (btrace_insn_get_error): New export.
16334 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
16335 * record-btrace.c (btrace_insn_history): Print number for gaps.
16336 (record_btrace_info, record_btrace_goto): Handle gaps.
16337
16338 2017-02-14 Tom Tromey <tom@tromey.com>
16339
16340 PR python/13598:
16341 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
16342 event.
16343 * python/py-evts.c (gdbpy_initialize_py_events): Add
16344 before_prompt registry.
16345 * python/py-events.h (events_object) <before_prompt>: New field.
16346
16347 2017-02-14 Markus Metzger <markus.t.metzger@intel.com>
16348
16349 * btrace.c (ftrace_new_switch): Preserve up link and flags.
16350
16351 2017-02-13 Luis Machado <lgustavo@codesourcery.com>
16352
16353 * symfile (_initialize_symfile): Add usage text to the load command's
16354 help text.
16355
16356 2017-02-10 Simon Marchi <simon.marchi@ericsson.com>
16357
16358 * utils.c (defaulted_query): Don't query on secondary UIs.
16359
16360 2017-02-10 Tom Tromey <tom@tromey.com>
16361
16362 * rust-lang.c (rust_get_disr_info): Remove unused variable.
16363
16364 2017-02-10 Tom Tromey <tom@tromey.com>
16365
16366 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
16367 "cleanup" local.
16368 * python/py-type.c (typy_legacy_template_argument): Remove
16369 unnecessary "cleanup" local.
16370
16371 2017-02-10 Tom Tromey <tom@tromey.com>
16372
16373 * python/python.c (do_start_initialization): New function, from
16374 _initialize_python.
16375 (_initialize_python): Call do_start_initialization.
16376 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
16377 goto.
16378
16379 2017-02-10 Tom Tromey <tom@tromey.com>
16380
16381 * python/py-prettyprint.c (pretty_print_one_value): Use
16382 gdbpy_ref.
16383
16384 2017-02-10 Tom Tromey <tom@tromey.com>
16385
16386 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
16387 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
16388 gdbpy_ref.
16389 * python/py-type.c (field_new): Use gdbpy_ref.
16390 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
16391 gdbpy_ref.
16392 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
16393 (py_free_pspace): Likewise.
16394 (pspace_to_pspace_object): Likewise.
16395 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
16396 (py_free_objfile): Likewise.
16397 (objfile_to_objfile_object): Likewise.
16398 * python/py-inferior.c (delete_thread_object): Use
16399 gdbpy_ref.
16400 (infpy_read_memory): Likewise.
16401 (py_free_inferior): Likewise.
16402 * python/py-evtregistry.c (create_eventregistry_object): Use
16403 gdbpy_ref.
16404 * python/py-event.c (create_event_object): Use gdbpy_ref.
16405
16406 2017-02-10 Tom Tromey <tom@tromey.com>
16407
16408 * python/py-ref.h (gdbpy_ref_policy): Now a template.
16409 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
16410 used.
16411 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
16412 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
16413 python/py-exitedevent.c, python/py-finishbreakpoint.c,
16414 python/py-framefilter.c, python/py-function.c,
16415 python/py-inferior.c, python/py-infevents.c,
16416 python/py-linetable.c, python/py-newobjfileevent.c,
16417 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
16418 python/py-signalevent.c, python/py-stopevent.c,
16419 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
16420 python/py-unwind.c, python/py-utils.c, python/py-value.c,
16421 python/py-varobj.c, python/py-xmethods.c, python/python.c,
16422 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
16423
16424 2017-02-10 Tom Tromey <tom@tromey.com>
16425
16426 * ui-out.h (ui_out_emit_type): New class.
16427 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
16428 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
16429 and ui_out_emit_tuple.
16430 (enumerate_locals): Likewise.
16431 (py_mi_print_variables, py_print_locals, py_print_args): Use
16432 ui_out_emit_list.
16433 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
16434 ui_out_emit_list.
16435 * common/gdb_optional.h: New file.
16436
16437 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
16438
16439 * MAINTAINERS (Write After Approval): Update my e-mail address.
16440
16441 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
16442
16443 PR gdb/21122
16444 * breakpoint.c (_initialize_breakpoint): Update the help description
16445 of the 'commands' command to indicate that it takes a list argument.
16446
16447 2017-02-09 Simon Marchi <simon.marchi@ericsson.com>
16448
16449 * interps.c (current_interp_set_logging): Remove "return".
16450
16451 2017-02-09 Gary Benson <gbenson@redhat.com>
16452
16453 * symtab.c (add_symtab_completions): Prevent NULL pointer
16454 dereference.
16455
16456 2017-02-08 Pedro Alves <palves@redhat.com>
16457
16458 * interps.c (interp::interp): Remove reference to quiet_p.
16459 (interp_set): Make static. Remove dead "Switching to" output
16460 code.
16461 (interp_quiet_p, interp_set_quiet): Delete.
16462 (interpreter_exec_cmd): Don't set the interpreter quiet.
16463 * interps.h (interp_quiet_p): Make static.
16464 (class interp) <quiet_p>: Remove field
16465
16466 2017-02-08 Jerome Guitton <guitton@adacore.com>
16467
16468 * cli/cli-decode.c (find_command_name_length): Make it extern.
16469 * cli/cli-decode.h (find_command_name_length): Declare.
16470 * cli/cli-script.c (command_name_equals, line_first_arg):
16471 New functions.
16472 (process_next_line): Use cli-decode to parse command names.
16473 (build_command_line): Make args a constant pointer.
16474
16475 2017-02-08 Jerome Guitton <guitton@adacore.com>
16476
16477 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
16478 Remove case-insensitive search.
16479
16480 2017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
16481
16482 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
16483 at the end of the line. Avoids an ARI warning.
16484
16485 2017-02-06 Luis Machado <lgustavo@codesourcery.com>
16486
16487 * NEWS: Mention support for record/replay of Intel 64 rdrand and
16488 rdseed instructions.
16489 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
16490
16491 2017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
16492
16493 PR tdep/20936
16494 Provide and use sparc32 and sparc64 target description XML files.
16495 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
16496 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
16497 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
16498 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
16499 * features/sparc/sparc32-solaris.xml: New file.
16500 * features/sparc/sparc64-solaris.xml: New file.
16501 * features/sparc/sparc32-solaris.c: Generated.
16502 * features/sparc/sparc64-solaris.c: Generated.
16503 * sparc-tdep.h: Account for differences in target descriptions.
16504 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
16505 (sparc32_register_type): Use target provided registers.
16506 (validate_tdesc_registers): New function.
16507 (sparc32_gdbarch_init): Use tdesc_has_registers.
16508 Set pseudoregister functions.
16509 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
16510 (sparc64_register_type): Use target provided registers.
16511 (sparc64_init_abi): Set pseudoregister functions.
16512
16513 2017-02-03 Tom Tromey <tom@tromey.com>
16514
16515 PR rust/21097:
16516 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
16517 with a single member.
16518
16519 2017-02-03 Pedro Alves <palves@redhat.com>
16520
16521 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
16522 (cli_interp_base::~cli_interp_base): New.
16523 (cli_interp): New struct.
16524 (as_cli_interp): Cast the interp itself to cli_interp.
16525 (cli_interpreter_pre_command_loop): Rename to ...
16526 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
16527 parameter.
16528 (cli_interpreter_init): Rename to ...
16529 (cli_interp::init): ... this. Remove 'self' parameter. Use
16530 boolean. Make extern.
16531 (cli_interpreter_resume): Rename to ...
16532 (cli_interp::resume): ... this. Remove 'data' parameter. Make
16533 extern.
16534 (cli_interpreter_suspend): Rename to ...
16535 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
16536 extern.
16537 (cli_interpreter_exec): Rename to ...
16538 (cli_interp::exec): ... this. Remove 'data' parameter. Make
16539 extern.
16540 (cli_interpreter_supports_command_editing): Rename to ...
16541 (cli_interp_base::supports_command_editing): ... this. Remove
16542 'interp' parameter. Make extern.
16543 (cli_ui_out): Rename to ...
16544 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
16545 Make extern.
16546 (cli_set_logging): Rename to ...
16547 (cli_interp_base::set_logging): ... this. Remove 'interp'
16548 parameter. Make extern.
16549 (cli_interp_procs): Delete.
16550 (cli_interp_factory): Adjust to use "new".
16551 * cli/cli-interp.h: Include "interps.h".
16552 (struct cli_interp_base): New struct.
16553 * interps.c (struct interp): Delete. Fields moved to interps.h.
16554 (interp_new): Delete.
16555 (interp::interp, interp::~interp): New.
16556 (interp_set): Use bool, and return void. Assume the interpreter
16557 has suspend, init and resume methods, and that the all return
16558 void.
16559 (set_top_level_interpreter): interp_set returns void.
16560 (interp_ui_out): Adapt.
16561 (current_interp_set_logging): Adapt.
16562 (interp_data): Delete.
16563 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
16564 (interp_exec): Adapt.
16565 (top_level_interpreter_data): Delete.
16566 * interps.h (interp_init_ftype, interp_resume_ftype)
16567 (interp_suspend_ftype, interp_exec_ftype)
16568 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
16569 (class interp): New.
16570 (interp_new): Delete.
16571 (interp_set): Now returns void. Use bool.
16572 (interp_data, top_level_interpreter_data): Delete.
16573 * mi/mi-common.h: Include interps.h.
16574 (class mi_interp): Inherit from interp. Define a ctor. Declare
16575 init, resume, suspect, exec, interp_ui_out, set_logging and
16576 pre_command_loop methods.
16577 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
16578 (mi_interpreter_init): Rename to ...
16579 (mi_interp::init): ... this. Remove the 'interp' parameter, use
16580 bool, return void and make extern. Adjust.
16581 (mi_interpreter_resume): ... Rename to ...
16582 (mi_interp::resume): ... this. Remove the 'data' parameter,
16583 return void and make extern. Adjust.
16584 (mi_interpreter_suspend): ... Rename to ...
16585 (mi_interp::suspend): ... this. Remove the 'data' parameter,
16586 return void and make extern. Adjust.
16587 (mi_interpreter_exec): ... Rename to ...
16588 (mi_interp::exec): ... this. Remove the 'data' parameter and make
16589 extern. Adjust.
16590 (mi_interpreter_pre_command_loop): ... Rename to ...
16591 (mi_interp::pre_command_loop): ... this. Remove the 'self'
16592 parameter and make extern.
16593 (mi_on_normal_stop_1): Adjust.
16594 (mi_ui_out): Rename to ...
16595 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
16596 parameter and make extern. Adjust.
16597 (mi_set_logging): Rename to ...
16598 (mi_interp::set_logging): ... this. Remove the 'interp'
16599 parameter and make extern. Adjust.
16600 (mi_interp_procs): Delete.
16601 (mi_interp_factory): Adjust to use 'new'.
16602 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
16603 (mi_print_exception, mi_execute_command, mi_load_progress):
16604 Adjust.
16605 * tui/tui-interp.c (tui_interp): New class.
16606 (as_tui_interp): Return a tui_interp pointer.
16607 (tui_on_normal_stop, tui_on_signal_received)
16608 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
16609 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
16610 to use interp::interp_ui_out.
16611 (tui_init): Rename to ...
16612 (tui_interp::init): ... this. Remove the 'self' parameter, use
16613 bool, return void and make extern. Adjust.
16614 (tui_resume): Rename to ...
16615 (tui_interp::resume): ... this. Remove the 'data' parameter,
16616 return void and make extern. Adjust.
16617 (tui_suspend): Rename to ...
16618 (tui_interp::suspend): ... this. Remove the 'data' parameter,
16619 return void and make extern. Adjust.
16620 (tui_ui_out): Rename to ...
16621 (tui_interp::interp_ui_out): ... this. Remove the 'self'
16622 parameter, and make extern. Adjust.
16623 (tui_exec): Rename to ...
16624 (tui_interp::exec): ... this. Remove the 'data' parameter and
16625 make extern.
16626 (tui_interp_procs): Delete.
16627 (tui_interp_factory): Use "new".
16628
16629 2017-02-02 Tom Tromey <tom@tromey.com>
16630
16631 * rust-exp.y (ends_raw_string, space_then_number)
16632 (rust_identifier_start_p): Return bool.
16633 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
16634 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
16635 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
16636 (rust_chartype_p): Return bool.
16637 (val_print_struct, rust_print_struct_def, rust_print_type):
16638 Update.
16639 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
16640 Return bool.
16641
16642 2017-02-02 Tom Tromey <tom@tromey.com>
16643
16644 * rust-lang.c: Reindent.
16645
16646 2017-02-02 Tom Tromey <tom@tromey.com>
16647
16648 * rust-lang.h (rust_crate_for_block): Update.
16649 * rust-lang.c (rust_crate_for_block): Return std::string.
16650 (rust_get_disr_info): Use std:;string, not
16651 gdb::unique_xmalloc_ptr.
16652 * rust-exp.y (crate_name): Update.
16653
16654 2017-02-02 Pedro Alves <palves@redhat.com>
16655
16656 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
16657 field out of gdb_disassembler_test and make it static.
16658
16659 2017-02-02 Pedro Alves <palves@redhat.com>
16660
16661 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
16662 mi1_interp and mi_interp fields.
16663
16664 2017-02-02 Pedro Alves <palves@redhat.com>
16665
16666 * cli/cli-interp.c (struct saved_output_files, saved_output):
16667 Moved from cli/cli-logging.c.
16668 (cli_set_logging): New function.
16669 (cli_interp_procs): Install cli_set_logging.
16670 * cli/cli-interp.h (make_logging_output, cli_set_logging):
16671 Declare.
16672 * cli/cli-logging.c (struct saved_output_files, saved_output):
16673 Moved to cli/cli-interp.c.
16674 (pop_output_files): Don't save outputs here.
16675 (make_logging_output): New function.
16676 (handle_redirections): Don't build tee nor save previous outputs
16677 here.
16678 * interps.c (current_interp_set_logging): Change prototype.
16679 Assume there's always a set_logging_proc method installed.
16680 * interps.h (interp_set_logging_ftype): Change prototype.
16681 (current_interp_set_logging): Change prototype and adjust comment.
16682 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
16683 use make_logging_output.
16684 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
16685 2017-02-02 Pedro Alves <palves@redhat.com>
16686
16687 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
16688 from ...
16689 (set_logging_overwrite): ... here.
16690 (logging_no_redirect_file): Delete.
16691 (set_logging_redirect): Don't handle redirection on the fly.
16692 Instead warn that "logging off" / "logging on" is necessary.
16693 (pop_output_files): Delete references to logging_no_redirect_file.
16694 (show_logging_command): Always speak in terms of what will happen
16695 once logging is reenabled.
16696
16697 2017-02-02 Pedro Alves <palves@redhat.com>
16698
16699 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
16700
16701 2017-02-02 Pedro Alves <palves@redhat.com>
16702
16703 * disasm.c (gdb_pretty_print_insn): Rename to ...
16704 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
16705 Remove gdbarch parameter. Adapt to clear the object's buffers
16706 instead of allocating new buffers, and to print using the object's
16707 gdb_disassembler instead of calling gdb_print_insn.
16708 (dump_insns): Use gdb_pretty_print_disassembler.
16709 * disasm.h (gdb_pretty_print_insn): Delete declaration.
16710 (gdb_pretty_print_disassembler): New class.
16711 * record-btrace.c (btrace_insn_history): Use
16712 gdb_pretty_print_disassembler.
16713
16714 2017-02-02 Pedro Alves <palves@redhat.com>
16715
16716 * ada-lang.c (type_as_string): Use string_file.
16717 * ada-valprint.c (ada_print_floating): Use string_file.
16718 * ada-varobj.c (ada_varobj_scalar_image)
16719 (ada_varobj_get_value_image): Use string_file.
16720 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
16721 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
16722 * breakpoint.c (update_inserted_breakpoint_locations)
16723 (insert_breakpoint_locations, reattach_breakpoints)
16724 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
16725 (print_it_watchpoint): Use string_file.
16726 (save_breakpoints): Use stdio_file.
16727 * c-exp.y (oper): Use string_file.
16728 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
16729 tee_file.
16730 (pop_output_files): Use delete.
16731 (handle_redirections): Use stdio_file and tee_file.
16732 * cli/cli-setshow.c (do_show_command): Use string_file.
16733 * compile/compile-c-support.c (c_compute_program): Use
16734 string_file.
16735 * compile/compile-c-symbols.c (generate_vla_size): Take a
16736 'string_file &' instead of a 'ui_file *'.
16737 (generate_c_for_for_one_variable): Take a 'string_file &' instead
16738 of a 'ui_file *'. Use string_file.
16739 (generate_c_for_variable_locations): Take a 'string_file &'
16740 instead of a 'ui_file *'.
16741 * compile/compile-internal.h (generate_c_for_for_one_variable):
16742 Take a 'string_file &' instead of a 'ui_file *'.
16743 * compile/compile-loc2c.c (push, pushf, unary, binary)
16744 (print_label, pushf_register_address, pushf_register)
16745 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
16746 'ui_file *'. Adjust.
16747 * compile/compile.c (compile_to_object): Use string_file.
16748 * compile/compile.h (compile_dwarf_expr_to_c)
16749 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
16750 'ui_file *'.
16751 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
16752 (replace_typedefs_qualified_name): Use string_file and
16753 obstack_copy0.
16754 * disasm.c (gdb_pretty_print_insn): Use string_file.
16755 (gdb_disassembly): Adjust reference the null_stream global.
16756 (do_ui_file_delete): Delete.
16757 (gdb_insn_length): Use null_stream.
16758 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
16759 * dwarf2loc.c (dwarf2_compile_property_to_c)
16760 (locexpr_generate_c_location, loclist_generate_c_location): Take a
16761 'string_file &' instead of a 'ui_file *'.
16762 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
16763 * dwarf2read.c (do_ui_file_peek_last): Delete.
16764 (dwarf2_compute_name): Use string_file.
16765 * event-top.c (gdb_setup_readline): Use stdio_file.
16766 * gdbarch.sh (verify_gdbarch): Use string_file.
16767 * gdbtypes.c (safe_parse_type): Use null_stream.
16768 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
16769 string_file.
16770 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
16771 'string_file *' instead of a 'ui_file *'.
16772 (gdbscm_arch_disassemble): Use string_file.
16773 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
16774 * guile/scm-ports.c (class ioscm_file_port): Now a class that
16775 inherits from ui_file.
16776 (ioscm_file_port_delete, ioscm_file_port_rewind)
16777 (ioscm_file_port_put): Delete.
16778 (ioscm_file_port_write): Rename to ...
16779 (ioscm_file_port::write): ... this. Remove file_port_magic
16780 checks.
16781 (ioscm_file_port_new): Delete.
16782 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
16783 ui_file_up.
16784 * guile/scm-type.c (tyscm_type_name): Use string_file.
16785 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
16786 Use string_file.
16787 * infcmd.c (print_return_value_1): Use string_file.
16788 * infrun.c (print_target_wait_results): Use string_file.
16789 * language.c (add_language): Use string_file.
16790 * location.c (explicit_to_string_internal): Use string_file.
16791 * main.c (captured_main_1): Use null_file.
16792 * maint.c (maintenance_print_architecture): Use stdio_file.
16793 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
16794 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
16795 event_channel>: Change type to mi_console_file pointer.
16796 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
16797 (mi_console_file_delete): Delete.
16798 (struct mi_console_file): Delete.
16799 (mi_console_file_magic): Delete.
16800 (mi_console_file_new): Delete.
16801 (mi_console_file::mi_console_file): New.
16802 (mi_console_file_delete): Delete.
16803 (mi_console_file_fputs): Delete.
16804 (mi_console_file::write): New.
16805 (mi_console_raw_packet): Delete.
16806 (mi_console_file::flush): New.
16807 (mi_console_file_flush): Delete.
16808 (mi_console_set_raw): Rename to ...
16809 (mi_console_file::set_raw): ... this.
16810 * mi/mi-console.h (class mi_console_file): New class.
16811 (mi_console_file_new, mi_console_set_raw): Delete.
16812 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
16813 (mi_set_logging): Use delete and tee_file. Adjust.
16814 * mi/mi-main.c (output_register): Use string_file.
16815 (mi_cmd_data_evaluate_expression): Use string_file.
16816 (mi_cmd_data_read_memory): Use string_file.
16817 (mi_cmd_execute, print_variable_or_computed): Use string_file.
16818 * mi/mi-out.c (mi_ui_out::main_stream): New.
16819 (mi_ui_out::rewind): Use main_stream and
16820 string_file.
16821 (mi_ui_out::put): Use main_stream and string_file.
16822 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
16823 Allocate a 'string_file' instead.
16824 (mi_out_new): Don't allocate a mem_fileopen stream here.
16825 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
16826 (mi_ui_out::main_stream): Declare method.
16827 * printcmd.c (eval_command): Use string_file.
16828 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
16829 * python/py-arch.c (archpy_disassemble): Use string_file.
16830 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
16831 * python/py-frame.c (frapy_str): Use string_file.
16832 * python/py-framefilter.c (py_print_type, py_print_single_arg):
16833 Use string_file.
16834 * python/py-type.c (typy_str): Use string_file.
16835 * python/py-unwind.c (unwind_infopy_str): Use string_file.
16836 * python/py-value.c (valpy_str): Use string_file.
16837 * record-btrace.c (btrace_insn_history): Use string_file.
16838 * regcache.c (regcache_print): Use stdio_file.
16839 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
16840 * remote.c (escape_buffer): Use string_file.
16841 * rust-lang.c (rust_get_disr_info): Use string_file.
16842 * serial.c (serial_open_ops_1): Use stdio_file.
16843 (do_serial_close): Use delete.
16844 * stack.c (print_frame_arg): Use string_file.
16845 (print_frame_args): Remove local mem_fileopen stream, not used.
16846 (print_frame): Use string_file.
16847 * symmisc.c (maintenance_print_symbols): Use stdio_file.
16848 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
16849 Take a 'string_file *' instead of a 'ui_file *'.
16850 * top.c (new_ui): Use stdio_file and stderr_file.
16851 (free_ui): Use delete.
16852 (execute_command_to_string): Use string_file.
16853 (quit_confirm): Use string_file.
16854 * tracepoint.c (collection_list::append_exp): Use string_file.
16855 * tui/tui-disasm.c (tui_disassemble): Use string_file.
16856 * tui/tui-file.c: Don't include "ui-file.h".
16857 (enum streamtype, struct tui_stream): Delete.
16858 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
16859 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
16860 (tui_file::tui_file): New method.
16861 (tui_file_fputs): Delete.
16862 (tui_file_get_strbuf): Delete.
16863 (tui_file::puts): New method.
16864 (tui_file_adjust_strbuf): Delete.
16865 (tui_file_flush): Delete.
16866 (tui_file::flush): New method.
16867 * tui/tui-file.h: Tweak intro comment.
16868 Include ui-file.h.
16869 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
16870 (tui_file_adjust_strbuf): Delete declarations.
16871 (class tui_file): New class.
16872 * tui/tui-io.c (tui_initialize_io): Use tui_file.
16873 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
16874 (tui_register_format): Use string_stream.
16875 * tui/tui-stack.c (tui_make_status_line): Use string_file.
16876 (tui_get_function_from_frame): Use string_file.
16877 * typeprint.c (type_to_string): Use string_file.
16878 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
16879 (null_stream): New global.
16880 (ui_file_delete): Delete.
16881 (ui_file::ui_file): New.
16882 (null_file_isatty): Delete.
16883 (ui_file::~ui_file): New.
16884 (null_file_rewind): Delete.
16885 (ui_file::printf): New.
16886 (null_file_put): Delete.
16887 (null_file_flush): Delete.
16888 (ui_file::putstr): New.
16889 (null_file_write): Delete.
16890 (ui_file::putstrn): New.
16891 (null_file_read): Delete.
16892 (ui_file::putc): New.
16893 (null_file_fputs): Delete.
16894 (null_file_write_async_safe): Delete.
16895 (ui_file::vprintf): New.
16896 (null_file_delete): Delete.
16897 (null_file::write): New.
16898 (null_file_fseek): Delete.
16899 (null_file::puts): New.
16900 (ui_file_data): Delete.
16901 (null_file::write_async_safe): New.
16902 (gdb_flush, ui_file_isatty): Adjust.
16903 (ui_file_put, ui_file_rewind): Delete.
16904 (ui_file_write): Adjust.
16905 (ui_file_write_for_put): Delete.
16906 (ui_file_write_async_safe, ui_file_read): Adjust.
16907 (ui_file_fseek): Delete.
16908 (fputs_unfiltered): Adjust.
16909 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
16910 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
16911 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
16912 (set_ui_file_data): Delete.
16913 (string_file::~string_file, string_file::write)
16914 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
16915 (do_ui_file_as_string, ui_file_as_string): Delete.
16916 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
16917 (struct mem_file): Delete.
16918 (mem_file_new): Delete.
16919 (stdio_file::stdio_file): New.
16920 (mem_file_delete): Delete.
16921 (stdio_file::stdio_file): New.
16922 (mem_fileopen): Delete.
16923 (stdio_file::~stdio_file): New.
16924 (mem_file_rewind): Delete.
16925 (stdio_file::set_stream): New.
16926 (mem_file_put): Delete.
16927 (stdio_file::open): New.
16928 (mem_file_write): Delete.
16929 (stdio_file_magic, struct stdio_file): Delete.
16930 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
16931 (stdio_file::flush): New.
16932 (stdio_file_read): Rename to ...
16933 (stdio_file::read): ... this. Adjust.
16934 (stdio_file_write): Rename to ...
16935 (stdio_file::write): ... this. Adjust.
16936 (stdio_file_write_async_safe): Rename to ...
16937 (stdio_file::write_async_safe) ... this. Adjust.
16938 (stdio_file_fputs): Rename to ...
16939 (stdio_file::puts) ... this. Adjust.
16940 (stdio_file_isatty): Delete.
16941 (stdio_file_fseek): Delete.
16942 (stdio_file::isatty): New.
16943 (stderr_file_write): Rename to ...
16944 (stderr_file::write) ... this. Adjust.
16945 (stderr_file_fputs): Rename to ...
16946 (stderr_file::puts) ... this. Adjust.
16947 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
16948 (stderr_file::stderr_file): New.
16949 (tee_file_magic): Delete.
16950 (struct tee_file): Delete.
16951 (tee_file::tee_file): New.
16952 (tee_file_new): Delete.
16953 (tee_file::~tee_file): New.
16954 (tee_file_delete): Delete.
16955 (tee_file_flush): Rename to ...
16956 (tee_file::flush): ... this. Adjust.
16957 (tee_file_write): Rename to ...
16958 (tee_file::write): ... this. Adjust.
16959 (tee_file::write_async_safe): New.
16960 (tee_file_fputs): Rename to ...
16961 (tee_file::puts): ... this. Adjust.
16962 (tee_file_isatty): Rename to ...
16963 (tee_file::isatty): ... this. Adjust.
16964 * ui-file.h (struct obstack, struct ui_file): Don't
16965 forward-declare.
16966 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
16967 (ui_file_write_ftype)
16968 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
16969 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
16970 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
16971 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
16972 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
16973 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
16974 (set_ui_file_fseek): Delete.
16975 (ui_file_data, ui_file_delete, ui_file_rewind)
16976 (struct ui_file): New.
16977 (ui_file_up): New.
16978 (class null_file): New.
16979 (null_stream): Declare.
16980 (ui_file_write_for_put, ui_file_put): Delete.
16981 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
16982 Delete.
16983 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
16984 (gdb_fopen, tee_file_new): Delete.
16985 (struct string_file): New.
16986 (struct stdio_file): New.
16987 (stdio_file_up): New.
16988 (struct stderr_file): New.
16989 (class tee_file): New.
16990 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
16991 of a 'ui_file *'. Adjust.
16992 * ui-out.h (class ui_out) <field_stream>: Likewise.
16993 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
16994 (null_stream): Delete.
16995 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
16996 Adjust.
16997 * utils.h (struct ui_file): Delete forward declaration..
16998 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
16999 (error_stream): Take a 'string_file &' instead of a
17000 'ui_file *'.
17001 * varobj.c (varobj_value_get_print_value): Use string_file.
17002 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
17003 * gdbarch.c: Regenerate.
17004
17005 2017-02-02 Pedro Alves <palves@redhat.com>
17006
17007 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
17008 (gdb_pretty_print_insn): ... this. Now a free function. Add back
17009 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
17010 Adjust to call gdb_print_insn instead of
17011 gdb_disassembler::print_insn.
17012 (dump_insns, do_mixed_source_and_assembly_deprecated)
17013 (do_mixed_source_and_assembly, do_assembly_only): Add back a
17014 'gdbarch' parameter. Remove gdb_disassembler parameter.
17015 (gdb_disassembly): Don't allocate a gdb_disassembler here.
17016 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
17017 declaration.
17018 (gdb_pretty_print_insn): Re-add declaration.
17019 * record-btrace.c (btrace_insn_history): Don't allocate a
17020 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
17021
17022 2017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
17023
17024 * disasm.h (gdb_disassembly): Remove file_string parameter.
17025 * disasm.c (gdb_disassembly): Likewise.
17026 * cli/cli-cmds.c (print_disassembly): Adapt.
17027 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
17028 * stack.c (do_gdb_disassembly): Likewise.
17029
17030 2017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
17031
17032 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
17033 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
17034 targets. And if the implicit value is longer than needed, extract
17035 the first bytes instead of the "least significant" ones.
17036
17037 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
17038
17039 * btrace.c (btrace_enable): Do not call btrace_add_pc for
17040 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
17041 (btrace_fetch): Assert can_access_registers_ptid.
17042 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
17043 validate_registers_access.
17044
17045 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
17046
17047 * gdbthread.h (can_access_registers_ptid): New.
17048 * thread.c (can_access_registers_ptid): New.
17049
17050 2017-02-01 Pedro Alves <palves@redhat.com>
17051
17052 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
17053
17054 2017-01-31 Pedro Alves <palves@redhat.com>
17055
17056 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
17057 Fix typos.
17058
17059 2017-01-31 Pedro Alves <palves@redhat.com>
17060
17061 * stack.c (print_frame_args): Remove local mem_fileopen stream,
17062 not used.
17063
17064 2017-01-31 Pedro Alves <palves@redhat.com>
17065
17066 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
17067
17068 2017-01-31 Pedro Alves <palves@redhat.com>
17069
17070 * common/scoped_restore.h
17071 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
17072 change the value's parameter type to T2.
17073 (make_scoped_restore): Likewise.
17074
17075 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
17076 Richard Henderson <rth@redhat.com>
17077
17078 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
17079 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
17080 GS_BASE for older kernels.
17081 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
17082 GS_BASE for older kernels.
17083 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
17084 and GS_BASE to the offset table.
17085 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
17086 system register group.
17087 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
17088 for older kernels.
17089 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
17090 amd64 ABI.
17091 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
17092 AMD64_GSBASE_REGNUM.
17093 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
17094 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
17095 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
17096 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
17097 i386/64bit-segments.xml in those rules.
17098 * features/i386/64bit-segments.xml: New file.
17099 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
17100 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
17101 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
17102 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
17103 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
17104 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
17105 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
17106 * features/i386/amd64-avx-linux.c: Regenerated.
17107 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
17108 * features/i386/amd64-avx-mpx.c: Regenerated.
17109 * features/i386/amd64-avx512-linux.c: Regenerated.
17110 * features/i386/amd64-linux.c: Regenerated.
17111 * features/i386/amd64-mpx-linux.c: Regenerated.
17112 * features/i386/i386-avx-mpx-linux.c: Regenerated.
17113 * features/i386/i386-avx-mpx.c: Regenerated.
17114 * features/i386/x32-avx-linux.c: Regenerated.
17115 * features/i386/x32-avx512-linux.c: Regenerated.
17116 * regformats/i386/amd64-avx-linux.dat: Regenerated.
17117 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
17118 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
17119 * regformats/i386/amd64-linux.dat: Regenerated.
17120 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
17121 * regformats/i386/x32-avx-linux.dat: Regenerated.
17122 * regformats/i386/x32-avx512-linux.dat: Regenerated.
17123 * regformats/i386/x32-linux.dat: Regenerated.
17124
17125 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
17126
17127 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
17128 Set to AMD64_NUM_REGS.
17129
17130 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
17131
17132 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
17133 that checks validity of a register number.
17134
17135 2017-01-27 Kees Cook <keescook@google.com>
17136
17137 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
17138 fetch_fpregs if target has fpa registers.
17139 (arm_linux_store_inferior_registers): Call store_fpregs if target
17140 has fpa registers.
17141
17142 2017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
17143
17144 * cris-tdep.c (cris_gdbarch_init): Remove check for
17145 info.byte_order and force it to BFD_ENDIAN_LITTLE.
17146
17147 2017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
17148
17149 * corelow.c (get_core_register_section): Check for regset
17150 existence before checking for REGSET_VARIABLE_SIZE.
17151
17152 2017-01-26 Yao Qi <yao.qi@linaro.org>
17153 Pedro Alves <palves@redhat.com>
17154
17155 PR gdb/20939
17156 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
17157 call memory_error, save memaddr instead.
17158 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
17159 negative, cal memory_error.
17160 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
17161
17162 2017-01-26 Yao Qi <yao.qi@linaro.org>
17163
17164 * disasm-selftests.c (memory_error_test): New function.
17165 (_initialize_disasm_selftests): Register memory_error_test.
17166
17167 2017-01-26 Yao Qi <yao.qi@linaro.org>
17168
17169 * Makefile.in (SFILES): Add disasm-selftests.c and
17170 selftest-arch.c.
17171 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
17172 * disasm-selftests.c: New file.
17173 * selftest-arch.c: New file.
17174 * selftest-arch.h: New file.
17175
17176 2017-01-26 Yao Qi <yao.qi@linaro.org>
17177
17178 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
17179 to bfd_arch_mep. Don't return 0 if section is not
17180 found. Call print_insn_mep.
17181
17182 2017-01-26 Pedro Alves <palves@redhat.com>
17183 Yao Qi <yao.qi@linaro.org>
17184
17185 * arm-tdep.c: Include "disasm.h".
17186 (gdb_print_insn_arm): Update code to get gdbarch.
17187 * disasm.c (dis_asm_read_memory): Change it to
17188 gdb_disassembler::dis_asm_read_memory.
17189 (dis_asm_memory_error): Likewise.
17190 (dis_asm_print_address): Likewise.
17191 (gdb_pretty_print_insn): Change it to
17192 gdb_disassembler::pretty_print_insn.
17193 (dump_insns): Add one argument gdb_disassemlber. All
17194 callers updated.
17195 (do_mixed_source_and_assembly_deprecated): Likewise.
17196 (do_mixed_source_and_assembly): Likewise.
17197 (do_assembly_only): Likewise.
17198 (gdb_disassembler::gdb_disassembler): New.
17199 (gdb_disassembler::print_insn): New.
17200 * disasm.h (class gdb_disassembler): New.
17201 (gdb_pretty_print_insn): Remove declaration.
17202 (gdb_disassemble_info): Likewise.
17203 * guile/scm-disasm.c (class gdbscm_disassembler): New.
17204 (gdbscm_disasm_read_memory_worker): Update.
17205 (gdbscm_disasm_read_memory): Update.
17206 (gdbscm_disasm_memory_error): Remove.
17207 (gdbscm_disasm_print_address): Remove.
17208 (gdbscm_disassembler::gdbscm_disassembler): New.
17209 (gdbscm_print_insn_from_port): Update.
17210 * mips-tdep.c: Include disasm.h.
17211 (gdb_print_insn_mips): Update code to get gdbarch.
17212 * record-btrace.c (btrace_insn_history): Update.
17213 * spu-tdep.c: Include disasm.h.
17214 (struct spu_dis_asm_data): Remove.
17215 (struct spu_dis_asm_info): New.
17216 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
17217 SPU id.
17218 (gdb_print_insn_spu): Cast disassemble_info to
17219 spu_dis_asm_info.
17220
17221 2017-01-26 Yao Qi <yao.qi@linaro.org>
17222
17223 * disasm.c (do_ui_file_delete): Delete.
17224 (gdb_insn_length): Move code creating stream to ...
17225 * utils.c (null_stream): ... here. New function.
17226 * utils.h (null_stream): Declare.
17227
17228 2017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
17229
17230 * python/py-inferior.c (find_thread_object): Return directly
17231 from the loop. Remove "found" variable.
17232
17233 2017-01-21 Joel Brobecker <brobecker@adacore.com>
17234
17235 GDB 7.12.1 released.
17236
17237 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
17238
17239 * python/py-function.c (fnpy_call): Reorder declarations to have
17240 the gdbpy_enter object declared first.
17241 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
17242
17243 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
17244
17245 PR python/21068
17246 * python/python-internal.h (PyMem_RawMalloc): Define for
17247 Python < 3.4.
17248 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
17249 PyMem_RawMalloc instead of PyMem_Malloc.
17250
17251 2017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
17252 Luis Machado <lgustavo@codesourcery.com>
17253
17254 * NEWS (New commands): Mention flash-erase.
17255 (New MI commands): Mention target-flash-erase.
17256 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
17257 command.
17258 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
17259 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
17260 * target.c (flash_erase_command): New function.
17261 (initialize_targets): Add new flash-erase command.
17262 * target.h (flash_erase_command): New declaration.
17263
17264 2017-01-20 Joel Brobecker <brobecker@adacore.com>
17265
17266 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
17267 HAVE_SYS_PROCFS_H is defined.
17268
17269 2017-01-18 Alan Hayward <alan.hayward@arm.com>
17270
17271 * remote.c (struct cached_reg): Change data into a pointer.
17272 * (stop_reply_dtr): Free data pointers before deleting vector.
17273 (process_stop_reply): Likewise.
17274 (remote_parse_stop_reply): Allocate space for data
17275
17276 2017-01-18 Alan Hayward <alan.hayward@arm.com>
17277
17278 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
17279 MAX_REGISTER_SIZE.
17280 (amd64_pseudo_register_read_value): Likewise.
17281 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
17282 (store_register_using_P): Likewise.
17283 * regcache.c (regcache_xfer_part): Likewise.
17284
17285 2017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
17286
17287 Split real and pseudo registers.
17288 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
17289 (sparc32_pseudo_regnum): New enum.
17290 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
17291 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
17292 (SPARC32_CP0_REGISTERS): New macro.
17293 (sparc32_pseudo_register_name): New function.
17294 (sparc32_register_name): Use sparc32_pseudo_register_name.
17295 (sparc32_pseudo_register_type): New function.
17296 (sparc32_register_type): Use sparc32_pseudo_register_type.
17297 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
17298 pseudo register numbers.
17299 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
17300 (SPARC64_CP0_REGISTERS): New macro.
17301 (sparc64_pseudo_register_name): New function.
17302 (sparc64_register_name): Use sparc64_pseudo_register_name.
17303 (sparc64_pseudo_register_type): New function.
17304 (sparc64_register_type): Use sparc64_pseudo_register_type.
17305 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
17306 pseudo register numbers.
17307 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
17308 sparc64_store_arguments): Handle pseudo register numbers.
17309
17310 2017-01-13 Yao Qi <yao.qi@linaro.org>
17311
17312 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
17313 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
17314 output.
17315 (getpkt_or_notif_sane_1): Likewise.
17316
17317 2017-01-13 Yao Qi <yao.qi@linaro.org>
17318
17319 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
17320 of CC. Pass "-x c++-header" instead of "-x c".
17321
17322 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
17323
17324 * remote.c (remote_can_async_p): Update comment.
17325
17326 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
17327
17328 * linux-nat.c (linux_nat_can_async_p): Update comment.
17329
17330 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
17331
17332 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
17333
17334 2017-01-11 Simon Marchi <simon.marchi@ericsson.com>
17335
17336 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
17337
17338 2017-01-10 Tom Tromey <tom@tromey.com>
17339
17340 * python/py-type.c (typy_legacy_template_argument): Update.
17341 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
17342 ~demangle_parse_info): Declare new members.
17343 (cp_demangled_name_to_comp): Return unique_ptr.
17344 (cp_demangled_name_parse_free)
17345 (make_cleanup_cp_demangled_name_parse_free)
17346 (cp_new_demangle_parse_info): Remove.
17347 * cp-support.c (do_demangled_name_parse_free_cleanup)
17348 (make_cleanup_cp_demangled_name_parse_free): Remove.
17349 (inspect_type, cp_canonicalize_string_full)
17350 (cp_canonicalize_string): Update.
17351 (mangled_name_to_comp): Change return type.
17352 (cp_class_name_from_physname, method_name_from_physname)
17353 (cp_func_name, cp_remove_params): Update.
17354 * cp-name-parser.y (demangle_parse_info): New constructor, from
17355 cp_new_demangle_parse_info.
17356 (~demangle_parse_info): New destructor, from
17357 cp_demangled_name_parse_free.
17358 (cp_merge_demangle_parse_infos): Update.
17359 (cp_demangled_name_to_comp): Change return type.
17360
17361 2017-01-10 Tom Tromey <tom@tromey.com>
17362
17363 * top.c (prevent_dont_repeat): Change return type.
17364 * python/python.c (execute_gdb_command): Use std::string.
17365 Update.
17366 * guile/guile.c (gdbscm_execute_gdb_command): Update.
17367 * command.h (prevent_dont_repeat): Change return type.
17368 * breakpoint.c (bpstat_do_actions_1): Update.
17369
17370 2017-01-10 Tom Tromey <tom@tromey.com>
17371
17372 * value.h (scoped_value_mark::~scoped_value_mark): Call
17373 free_to_mark.
17374 (scoped_value_mark::free_to_mark): New method.
17375 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
17376 scoped_value_mark.
17377
17378 2017-01-10 Tom Tromey <tom@tromey.com>
17379
17380 * python/py-value.c (valpy_dereference, valpy_referenced_value)
17381 (valpy_reference_value, valpy_const_value, valpy_get_address)
17382 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
17383 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
17384 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
17385 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
17386 scoped_value_mark.
17387 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
17388 * value.h (scoped_value_mark): New class.
17389
17390 2017-01-10 Tom Tromey <tom@tromey.com>
17391
17392 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
17393 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
17394 * psymtab.c (discard_psymtabs_upto): Remove.
17395 (make_cleanup_discard_psymtabs): Remove.
17396 (struct psymtab_state): Remove.
17397
17398 2017-01-10 Tom Tromey <tom@tromey.com>
17399
17400 * record-full.c (record_full_save_cleanups): Remove.
17401 (record_full_save): Use gdb::unlinker.
17402 * gcore.c (do_bfd_delete_cleanup): Remove.
17403 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
17404 cleanups.
17405 * dwarf2read.c (unlink_if_set): Remove.
17406 (write_psymtabs_to_index): Use gdb::unlinker.
17407 * common/gdb_unlinker.h: New file.
17408
17409 2017-01-10 Tom Tromey <tom@tromey.com>
17410
17411 * windows-tdep.c (windows_xfer_shared_library): Update.
17412 * windows-nat.c (windows_make_so): Update.
17413 * utils.h (make_cleanup_bfd_unref): Remove.
17414 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
17415 * symfile.h (symfile_bfd_open)
17416 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
17417 * symfile.c (read_symbols, symbol_file_add)
17418 (separate_debug_file_exists): Update.
17419 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
17420 (generic_load, reread_symbols): Update.
17421 * symfile-mem.c (symbol_file_add_from_memory): Update.
17422 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
17423 (spu_symbol_file_add_from_memory): Update.
17424 * solist.h (struct target_so_ops) <bfd_open>: Return
17425 gdb_bfd_ref_ptr.
17426 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
17427 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
17428 gdb_bfd_ref_ptr.
17429 (solib_map_sections, reload_shared_libraries_1): Update.
17430 * solib-svr4.c (enable_break): Update.
17431 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
17432 * solib-frv.c (enable_break2): Update.
17433 * solib-dsbt.c (enable_break): Update.
17434 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
17435 gdb_bfd_ref_ptr.
17436 (darwin_solib_get_all_image_info_addr_at_init): Update.
17437 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
17438 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
17439 * record-full.c (record_full_save): Update.
17440 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
17441 * procfs.c (insert_dbx_link_bpt_in_file): Update.
17442 * minidebug.c (find_separate_debug_file_in_section): Return
17443 gdb_bfd_ref_ptr.
17444 * machoread.c (macho_add_oso_symfile): Change abfd to
17445 gdb_bfd_ref_ptr.
17446 (macho_symfile_read_all_oso): Update.
17447 (macho_check_dsym): Return gdb_bfd_ref_ptr.
17448 (macho_symfile_read): Update.
17449 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
17450 (jit_bfd_try_read_symtab): Update.
17451 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
17452 (gdb_bfd_openw, gdb_bfd_openr_iovec)
17453 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
17454 gdb_bfd_ref_ptr.
17455 (gdb_bfd_ref_policy): New struct.
17456 (gdb_bfd_ref_ptr): New typedef.
17457 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
17458 (gdb_bfd_openw, gdb_bfd_openr_iovec)
17459 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
17460 gdb_bfd_ref_ptr.
17461 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
17462 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
17463 (gcore_command): Update.
17464 * exec.c (exec_file_attach): Update.
17465 * elfread.c (elf_symfile_read): Update.
17466 * dwarf2read.c (dwarf2_get_dwz_file): Update.
17467 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
17468 (open_and_init_dwo_file): Update.
17469 (open_dwp_file): Return gdb_bfd_ref_ptr.
17470 (open_and_init_dwp_file): Update.
17471 * corelow.c (core_open): Update.
17472 * compile/compile-object-load.c (compile_object_load): Update.
17473 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
17474 * coffread.c (coff_symfile_read): Update.
17475 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
17476 gdb_bfd_ref_ptr. Rename.
17477 (dump_bfd_file, restore_command): Update.
17478 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
17479 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
17480 (find_separate_debug_file_by_buildid): Update.
17481
17482 2017-01-10 Tom Tromey <tom@tromey.com>
17483
17484 * common/gdb_ref_ptr.h: New file.
17485 * python/py-ref.h (struct gdbpy_ref_policy): New.
17486 (gdbpy_ref): Now a typedef.
17487
17488 2017-01-10 Tom Tromey <tom@tromey.com>
17489
17490 * utils.h (make_cleanup_htab_delete): Don't declare.
17491 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
17492 Remove.
17493 * linespec.c (decode_compound_collector): Add constructor,
17494 destructor.
17495 (lookup_prefix_sym): Remove cleanup.
17496 (symtab_collector): Add constructor, destructor.
17497 (collect_symtabs_from_filename): Remove cleanup.
17498 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
17499 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
17500 Use htab_up.
17501 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
17502 * dwarf2read.c (dw2_expand_symtabs_matching)
17503 (dw2_map_symbol_filenames, dwarf_decode_macros)
17504 (write_psymtabs_to_index): Use htab_up.
17505 * dwarf2loc.c (func_verify_no_selftailcall)
17506 (call_site_find_chain_1, func_verify_no_selftailcall)
17507 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
17508 std::vector, gdb::unique_xmalloc_ptr.
17509 (call_sitep): Remove typedef.
17510 (dwarf2_locexpr_baton_eval): Remove unused variable.
17511
17512 2017-01-10 Tom Tromey <tom@tromey.com>
17513
17514 * python/python-internal.h (make_cleanup_py_decref)
17515 (make_cleanup_py_xdecref): Don't declare.
17516 * python/py-utils.c (py_decref, make_cleanup_py_decref)
17517 (py_xdecref, make_cleanup_py_xdecref): Remove.
17518
17519 2017-01-10 Tom Tromey <tom@tromey.com>
17520
17521 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
17522 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
17523
17524 2017-01-10 Tom Tromey <tom@tromey.com>
17525
17526 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
17527
17528 2017-01-10 Tom Tromey <tom@tromey.com>
17529
17530 * python/py-utils.c (unicode_to_encoded_string)
17531 (python_string_to_target_string)
17532 (python_string_to_target_python_string)
17533 (python_string_to_host_string, gdbpy_obj_to_string)
17534 (get_addr_from_python): Use gdbpy_ref.
17535
17536 2017-01-10 Tom Tromey <tom@tromey.com>
17537
17538 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
17539 gdbpy_ref.
17540
17541 2017-01-10 Tom Tromey <tom@tromey.com>
17542
17543 * python/python.c (eval_python_command, gdbpy_decode_line)
17544 (gdbpy_run_events, gdbpy_start_type_printers)
17545 (gdbpy_apply_type_printers): Use gdbpy_ref.
17546
17547 2017-01-10 Tom Tromey <tom@tromey.com>
17548
17549 * python/py-param.c (get_doc_string, compute_enum_values): Use
17550 gdbpy_ref.
17551
17552 2017-01-10 Tom Tromey <tom@tromey.com>
17553
17554 * python/py-inferior.c (find_thread_object, build_inferior_list):
17555 Use gdbpy_ref.
17556
17557 2017-01-10 Tom Tromey <tom@tromey.com>
17558
17559 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
17560
17561 2017-01-10 Tom Tromey <tom@tromey.com>
17562
17563 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
17564 gdbpy_ref.
17565
17566 2017-01-10 Tom Tromey <tom@tromey.com>
17567
17568 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
17569 extra incref.
17570 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
17571 Use gdbpy_ref.
17572
17573 2017-01-10 Tom Tromey <tom@tromey.com>
17574
17575 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
17576 gdbpy_ref.
17577
17578 2017-01-10 Tom Tromey <tom@tromey.com>
17579
17580 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
17581 decref results of PyArg_ParseTupleAndKeywords.
17582
17583 2017-01-10 Tom Tromey <tom@tromey.com>
17584
17585 * python/python.c (python_run_simple_file): Use
17586 unique_xmalloc_ptr, gdbpy_ref.
17587
17588 2017-01-10 Tom Tromey <tom@tromey.com>
17589
17590 * python/py-prettyprint.c (print_stack_unless_memory_error)
17591 (print_string_repr, print_children): Use gdbpy_ref.
17592 (dummy_python_frame): New class.
17593 (dummy_python_frame::dummy_python_frame): Rename from
17594 push_dummy_python_frame.
17595 (py_restore_tstate): Remove.
17596
17597 2017-01-10 Tom Tromey <tom@tromey.com>
17598
17599 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
17600
17601 2017-01-10 Tom Tromey <tom@tromey.com>
17602
17603 * python/python.c (ensure_python_env, restore_python_env):
17604 Remove.
17605 * python/python-internal.h (ensure_python_env): Don't declare.
17606 * varobj.h (varobj_ensure_python_env): Don't declare.
17607 * varobj.c (varobj_ensure_python_env): Remove.
17608
17609 2017-01-10 Tom Tromey <tom@tromey.com>
17610
17611 * varobj.c (varobj_value_get_print_value): Use
17612 gdbpy_enter_varobj.
17613
17614 2017-01-10 Tom Tromey <tom@tromey.com>
17615
17616 * python/py-prettyprint.c (print_string_repr, print_children):
17617 Update.
17618 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
17619 of "encoding".
17620 * varobj.c (varobj_value_get_print_value): Update.
17621 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
17622
17623 2017-01-10 Tom Tromey <tom@tromey.com>
17624
17625 * varobj.c (varobj_get_display_hint)
17626 (dynamic_varobj_has_child_method, install_new_value_visualizer)
17627 (varobj_set_visualizer, free_variable): Use
17628 gdbpy_enter_varobj.
17629
17630 2017-01-10 Tom Tromey <tom@tromey.com>
17631
17632 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
17633 (do_finish_initialization): New function. Use gdbpy_ref.
17634 (gdbpy_finish_initialization): Use gdbpy_enter. Call
17635 do_finish_initialization.
17636
17637 2017-01-10 Tom Tromey <tom@tromey.com>
17638
17639 * python/py-param.c (get_set_value, get_show_value): Use
17640 gdbpy_enter, gdbpy_ref.
17641
17642 2017-01-10 Tom Tromey <tom@tromey.com>
17643
17644 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
17645
17646 2017-01-10 Tom Tromey <tom@tromey.com>
17647
17648 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
17649
17650 2017-01-10 Tom Tromey <tom@tromey.com>
17651
17652 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
17653 Use gdbpy_enter_varobj.
17654
17655 2017-01-10 Tom Tromey <tom@tromey.com>
17656
17657 * varobj.c (gdbpy_enter_varobj): New constructor.
17658 * python/python-internal.h (gdbpy_enter_varobj): New class.
17659 * python/py-varobj.c (py_varobj_get_iterator): Use
17660 gdbpy_enter_varobj.
17661
17662 2017-01-10 Tom Tromey <tom@tromey.com>
17663
17664 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
17665 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
17666 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
17667 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
17668 unique_xmalloc_ptr.
17669 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
17670
17671 2017-01-10 Tom Tromey <tom@tromey.com>
17672
17673 * python/py-xmethods.c (invoke_match_method): Use
17674 gdbpy_ref.
17675
17676 2017-01-10 Tom Tromey <tom@tromey.com>
17677
17678 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
17679 gdbpy_enter, gdbpy_ref.
17680
17681 2017-01-10 Tom Tromey <tom@tromey.com>
17682
17683 * python/python.c (python_interactive_command): Use gdbpy_enter.
17684
17685 2017-01-10 Tom Tromey <tom@tromey.com>
17686
17687 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
17688 gdbpy_ref.
17689
17690 2017-01-10 Tom Tromey <tom@tromey.com>
17691
17692 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
17693 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
17694
17695 2017-01-10 Tom Tromey <tom@tromey.com>
17696
17697 * utils.h (htab_deleter): New struct.
17698 (htab_up): New typedef.
17699 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
17700 gdbpy_enter, gdbpy_ref, htab_up.
17701
17702 2017-01-10 Tom Tromey <tom@tromey.com>
17703
17704 * python/py-unwind.c (pending_frame_invalidate): Remove.
17705 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
17706
17707 2017-01-10 Tom Tromey <tom@tromey.com>
17708
17709 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
17710 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
17711
17712 2017-01-10 Tom Tromey <tom@tromey.com>
17713
17714 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
17715
17716 2017-01-10 Tom Tromey <tom@tromey.com>
17717
17718 * python/python.c (gdbpy_eval_from_control_command)
17719 (gdbpy_source_script, gdbpy_run_events)
17720 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
17721 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
17722 gdbpy_enter.
17723
17724 2017-01-10 Tom Tromey <tom@tromey.com>
17725
17726 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
17727
17728 2017-01-10 Tom Tromey <tom@tromey.com>
17729
17730 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
17731
17732 2017-01-10 Tom Tromey <tom@tromey.com>
17733
17734 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
17735 (python_on_inferior_call_pre, python_on_inferior_call_post)
17736 (python_on_memory_change, python_on_register_change)
17737 (python_inferior_exit, python_new_objfile, add_thread_object)
17738 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
17739
17740 2017-01-10 Tom Tromey <tom@tromey.com>
17741
17742 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
17743 (bpfinishpy_handle_exit): Use gdbpy_enter.
17744
17745 2017-01-10 Tom Tromey <tom@tromey.com>
17746
17747 * python/py-cmd.c (cmdpy_destroyer)
17748 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
17749 gdbpy_enter.
17750
17751 2017-01-10 Tom Tromey <tom@tromey.com>
17752
17753 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
17754 gdbpy_enter.
17755 (gdbpy_breakpoint_has_cond): Likewise.
17756
17757 2017-01-10 Tom Tromey <tom@tromey.com>
17758
17759 * python/python.c (gdbpy_enter): New constructor.
17760 (~gdbpy_enter): New destructor.
17761 (restore_python_env, ensure_python_env): Rewrite.
17762 * python/python-internal.h (gdbpy_enter): New class.
17763
17764 2017-01-10 Tom Tromey <tom@tromey.com>
17765
17766 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
17767
17768 2017-01-10 Tom Tromey <tom@tromey.com>
17769
17770 * python/py-value.c (value_has_field, get_field_flag)
17771 (get_field_type, valpy_getitem, convert_value_from_python): Use
17772 gdbpy_ref.
17773
17774 2017-01-10 Tom Tromey <tom@tromey.com>
17775
17776 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
17777 gdbpy_ref.
17778
17779 2017-01-10 Tom Tromey <tom@tromey.com>
17780
17781 * python/py-prettyprint.c (search_pp_list)
17782 (find_pretty_printer_from_objfiles)
17783 (find_pretty_printer_from_progspace)
17784 (find_pretty_printer_from_gdb, find_pretty_printer)
17785 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
17786 gdbpy_ref.
17787
17788 2017-01-10 Tom Tromey <tom@tromey.com>
17789
17790 * python/py-param.c (call_doc_function): Use gdbpy_ref.
17791
17792 2017-01-10 Tom Tromey <tom@tromey.com>
17793
17794 * python/py-linetable.c (build_line_table_tuple_from_pcs)
17795 (ltpy_get_all_source_lines): Use gdbpy_ref.
17796
17797 2017-01-10 Tom Tromey <tom@tromey.com>
17798
17799 * python/py-framefilter.c (extract_sym, extract_value)
17800 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
17801 gdbpy_ref.
17802
17803 2017-01-10 Tom Tromey <tom@tromey.com>
17804
17805 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
17806
17807 2017-01-10 Tom Tromey <tom@tromey.com>
17808
17809 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
17810
17811 2017-01-10 Tom Tromey <tom@tromey.com>
17812
17813 * python/py-function.c (convert_values_to_python, fnpy_init): Use
17814 gdbpy_ref.
17815
17816 2017-01-10 Tom Tromey <tom@tromey.com>
17817
17818 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
17819
17820 2017-01-10 Tom Tromey <tom@tromey.com>
17821
17822 * python/py-type.c (convert_field, make_fielditem, typy_fields)
17823 (typy_range): Use gdbpy_ref.
17824
17825 2017-01-10 Tom Tromey <tom@tromey.com>
17826
17827 * python/py-threadevent.c (create_thread_event_object): Use
17828 gdbpy_ref.
17829 * python/py-stopevent.c (create_stop_event_object): Simplify.
17830 (emit_stop_event): Use gdbpy_ref.
17831 * python/py-signalevent.c (create_signal_event_object): Use
17832 gdbpy_ref.
17833 * python/py-newobjfileevent.c (create_new_objfile_event_object)
17834 (emit_new_objfile_event, create_clear_objfiles_event_object)
17835 (emit_clear_objfiles_event): Use gdbpy_ref.
17836 * python/py-infevents.c (create_inferior_call_event_object)
17837 (create_register_changed_event_object)
17838 (create_memory_changed_event_object, emit_inferior_call_event)
17839 (emit_memory_changed_event, emit_register_changed_event): Use
17840 gdbpy_ref.
17841 * python/py-exitedevent.c (create_exited_event_object)
17842 (emit_exited_event): Use gdbpy_ref.
17843 * python/py-event.h (evpy_emit_event): Remove
17844 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
17845 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
17846 * python/py-continueevent.c (emit_continue_event): Use
17847 gdbpy_ref.
17848 * python/py-breakpoint.c (gdbpy_breakpoint_created)
17849 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
17850 gdbpy_ref.
17851 * python/py-bpevent.c (create_breakpoint_event_object): Use
17852 gdbpy_ref.
17853
17854 2017-01-10 Tom Tromey <tom@tromey.com>
17855
17856 * python/py-ref.h: New file.
17857
17858 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
17859
17860 * cli-out.c (cli_ui_out::do_redirect): Change return type to
17861 void.
17862 * cli-out.h (cli_ui_out::do_redirect): Likewise.
17863 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
17864 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
17865 * ui-out.c (ui_out::redirect): Likewise.
17866 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
17867 * cli/cli-logging.c (set_logging_redirect): Update call site of
17868 ui_out::redirect.
17869 (handle_redirections): Likewise.
17870 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
17871 * top.c (execute_command_to_string): Likewise.
17872 * utils.c (do_ui_out_redirect_pop): Likewise.
17873
17874 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
17875
17876 * stack.c (_initialize_stack): Update "frame" command help message.
17877
17878 2017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
17879
17880 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
17881
17882 2017-01-06 Yao Qi <yao.qi@linaro.org>
17883
17884 * x86-linux-nat.h: Include gdb_proc_service.h.
17885
17886 2017-01-06 Yao Qi <yao.qi@linaro.org>
17887
17888 * ser-base.h: Include serial.h.
17889
17890 2017-01-06 Yao Qi <yao.qi@linaro.org>
17891
17892 * ppc-linux-tdep.h: Include ppc-tdep.h.
17893
17894 2017-01-06 Yao Qi <yao.qi@linaro.org>
17895
17896 * nat/amd64-linux-siginfo.h: Include signal.h.
17897
17898 2017-01-06 Yao Qi <yao.qi@linaro.org>
17899
17900 * nat/aarch64-linux-hw-point.h: Include break-common.h.
17901
17902 2017-01-06 Yao Qi <yao.qi@linaro.org>
17903
17904 * mi/mi-parse.h: Include mi-cmds.h.
17905
17906 2017-01-06 Yao Qi <yao.qi@linaro.org>
17907
17908 * inf-loop.c: Don't include "target.h".
17909 * inf-loop.h: Include it here.
17910
17911 2017-01-06 Yao Qi <yao.qi@linaro.org>
17912
17913 * dfp.h: Include "dboulest.h" and "expression.h".
17914
17915 2017-01-06 Yao Qi <yao.qi@linaro.org>
17916
17917 * ax-gdb.h: Include "ax.h".
17918
17919 2017-01-06 Yao Qi <yao.qi@linaro.org>
17920
17921 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
17922 with nat/gdb_ptrace.h.
17923
17924 2017-01-05 Yao Qi <yao.qi@linaro.org>
17925
17926 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
17927 new line.
17928 (mips64_fbsd_sigframe_init): Likewise.
17929
17930 2017-01-04 John Baldwin <jhb@FreeBSD.org>
17931
17932 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
17933 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
17934
17935 2017-01-04 John Baldwin <jhb@FreeBSD.org>
17936
17937 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
17938 * NEWS: Mention new FreeBSD/mips native configuration.
17939 * config/mips/fbsd.mh: New file.
17940 * configure.host: Add mips*-*-freebsd*.
17941 * mips-fbsd-nat.c: New file.
17942
17943 2017-01-04 John Baldwin <jhb@FreeBSD.org>
17944
17945 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
17946 (ALLDEPFILES): Add mips-fbsd-tdep.c.
17947 * NEWS: Mention new FreeBSD/mips target.
17948 * configure.tgt: Add mips*-*-freebsd*.
17949 * mips-fbsd-tdep.c: New file.
17950 * mips-fbsd-tdep.h: New file.
17951
17952 2017-01-04 Yao Qi <yao.qi@linaro.org>
17953
17954 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
17955 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
17956
17957 2017-01-01 Joel Brobecker <brobecker@adacore.com>
17958
17959 Update copyright year range in all GDB files.
17960
17961 2017-01-01 Joel Brobecker <brobecker@adacore.com>
17962
17963 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
17964
17965 For older changes see ChangeLog-2016.
17966 \f
17967 Local Variables:
17968 mode: change-log
17969 left-margin: 8
17970 fill-column: 74
17971 version-control: never
17972 coding: utf-8
17973 End: