Clear non-significant bits of address on memory access
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2017-12-08 Yao Qi <yao.qi@linaro.org>
2
3 * aarch64-tdep.c (aarch64_gdbarch_init): Install gdbarch
4 significant_addr_bit.
5 * gdbarch.sh (significant_addr_bit): New.
6 * gdbarch.c, gdbarch.h: Re-generated.
7 * target.c (memory_xfer_partial): Call address_significant.
8 * utils.c (address_significant): New function.
9 * utils.h (address_significant): Declare.
10
11 2017-12-08 Tom Tromey <tom@tromey.com>
12
13 * printcmd.c (ui_printf): Update. Use std::vector.
14 * common/format.h (struct format_piece): Add constructor.
15 <string>: Now const.
16 (class format_pieces): New class.
17 (parse_format_string, free_format_pieces)
18 (free_format_pieces_cleanup): Remove.
19 * common/format.c (format_pieces::format_pieces): Rename from
20 parse_format_string. Update.
21 (free_format_pieces, free_format_pieces_cleanup): Remove.
22 * breakpoint.c (parse_cmd_to_aexpr): Update. Use std::vector.
23 * ax-gdb.h (gen_printf): Remove argument.
24 * ax-gdb.c (gen_printf): Remove "frags" argument.
25 (maint_agent_printf_command): Update. Use std::vector.
26
27 2017-12-08 Yao Qi <yao.qi@linaro.org>
28
29 PR breakpionts/22567
30 * linespec.c (minsym_found): Set sal.section.
31
32 2017-12-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
33
34 * configure.tgt (s390*-*-linux*): Add symfile-mem.o.
35
36 2017-12-07 Keith Seitz <keiths@redhat.com>
37
38 PR breakpoints/22569
39 * location.c (string_to_explicit_location): When terminating
40 parsing early, break out of enclosing loop instead of returning.
41
42 2017-12-07 Keith Seitz <keiths@redhat.com>
43
44 * NEWS (New commands): Mention set/show print type nested-type-limit.
45 * c-typeprint.c (c_type_print_base): Print out nested types.
46 * dwarf2read.c (struct typedef_field_list): Rename to ...
47 (struct decl_field_list): ... this. Change all uses.
48 (struct field_info) <nested_types_list, nested_types_list_count>:
49 New fields.
50 (add_partial_symbol): Look for nested type definitions in C++, too.
51 (dwarf2_add_typedef): Rename to ...
52 (dwarf2_add_type_defn): ... this.
53 (type_can_define_types): New function.
54 Update assertion to use type_can_define_types.
55 Permit NULL for a field's name.
56 (process_structure_scope): Handle child DIEs of types that can
57 define types.
58 Copy the list of nested types into the type struct.
59 * gdbtypes.h (struct typedef_field): Rename to ...
60 (struct decl_field): ... this. Change all uses.
61 [is_protected, is_private]: New fields.
62 (struct cplus_struct_type) <nested_types, nested_types_count>: New
63 fields.
64 (TYPE_NESTED_TYPES_ARRAY, TYPE_NESTED_TYPES_FIELD)
65 (TYPE_NESTED_TYPES_FIELD_NAME, TYPE_NESTED_TYPES_FIELD_TYPE)
66 (TYPE_NESTED_TYPES_COUNT, TYPE_NESTED_TYPES_FIELD_PROTECTED)
67 (TYPE_NESTED_TYPES_FIELD_PRIVATE): New macros.
68 * typeprint.c (type_print_raw_options, default_ptype_flags): Add
69 default value for print_nested_type_limit.
70 (print_nested_type_limit): New static variable.
71 (set_print_type_nested_types, show_print_type_nested_types): New
72 functions.
73 (_initialize_typeprint): Register new commands for set/show
74 `print-nested-type-limit'.
75 * typeprint.h (struct type_print_options) [print_nested_type_limit]:
76 New field.
77
78 2017-12-07 Tom Tromey <tom@tromey.com>
79
80 PR breakpoints/22511:
81 * breakpoint.c (commands_command_1): Don't throw an exception when
82 no commands have been read.
83
84 2017-12-07 Adam Stylinski <adam.stylinski@etegent.com>
85
86 PR c++/21222
87 * target-descriptions.c (print_c_tdesc::visit_pre): Change type of
88 range-for variable.
89
90 2017-12-07 Simon Marchi <simon.marchi@ericsson.com>
91
92 * common/selftest.h (struct selftest): Add virtual destructor.
93
94 2017-12-07 Phil Muldoon <pmuldoon@redhat.com>
95
96 * python/py-breakpoint.c (bppy_init): Use string_to_event_location
97 over basic location code. Implement explicit location keywords.
98 (bppy_init_validate_args): New function.
99 * NEWS: Document Python explicit breakpoint locations.
100
101 2017-12-07 Joel Brobecker <brobecker@adacore.com>
102
103 * MAINTAINERS: Restore target entries for m68hc11-elf,
104 score-elf and xstormy16-elf, incorrectly removed in a previous
105 patch meant to only update the list of active maintainers.
106
107 2017-12-06 Pedro Alves <palves@redhat.com>
108
109 * break-catch-syscall.c (insert_catch_syscall)
110 (remove_catch_syscall): Adjust to pass reference to
111 inf_data->syscalls_counts directly via gdb::array_view.
112 * fbsd-nat.c (fbsd_set_syscall_catchpoint): Adjust to use bool
113 and gdb::array_view.
114 * linux-nat.c (linux_child_set_syscall_catchpoint): Likewise.
115 * remote.c (remote_set_syscall_catchpoint): Likewise.
116 * target-debug.h (target_debug_print_bool): New.
117 (define target_debug_print_gdb_array_view_const_int): New.
118 * target-delegates.c: Regenerate.
119 * target.h (target_ops) <to_set_syscall_catchpoint>: Use
120 gdb::array_view and bool.
121 (target_set_syscall_catchpoint): Likewise.
122
123 2017-12-06 Simon Marchi <simon.marchi@ericsson.com>
124
125 * break-catch-syscall.c (catch_syscall_completer): Get pointers
126 to syscall group strings after building the string vector.
127
128 2017-12-06 Pedro Alves <palves@redhat.com>
129
130 * remote.c (remote_query_supported): Don't send "xmlRegisters=" if
131 "qXfer:features:read"" is disabled.
132 (remote_write_qxfer, remote_read_qxfer, remote_search_memory):
133 Check packet_config_support instead of packet->support directly.
134
135 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
136
137 * target-descriptions.c (struct tdesc_feature) <registers>: Use
138 tdesc_reg_up typedef.
139 (struct target_desc) <features>: Use tdesc_feature_up typedef.
140
141 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
142
143 * target-descriptions.c (struct tdesc_type): Use default
144 destructor.
145 <u>: Remove.
146 <accept>: Remove.
147 (struct tdesc_type_builtin): New.
148 (struct tdesc_type_vector): New.
149 (struct tdesc_type_with_fields): New.
150 (tdesc_predefined_types): Change type to tdesc_type_builtin[].
151 (tdesc_gdb_type): Remove.
152 (tdesc_register_type): Adjust.
153 (tdesc_create_vector): Create tdesc_type_vector.
154 (tdesc_create_struct): Create tdesc_type_with_fields.
155 (tdesc_set_struct_size): Change parameter type.
156 (tdesc_create_union): Create tdesc_type_with_fields.
157 (tdesc_create_flags): Likewise.
158 (tdesc_create_enum): Likewise.
159 (tdesc_add_field): Change parameter type.
160 (tdesc_add_typed_bitfield): Likewise.
161 (tdesc_add_bitfield): Likewise.
162 (tdesc_add_flag): Likewise.
163 (tdesc_add_enum_value): Likewise.
164 (print_c_tdesc) <visit>: Remove overload with tdesc_type
165 parameter, add overloads for tdesc_type_builtin,
166 tdesc_type_with_fields and tdesc_type_vector.
167 <m_printed_type>: Remove.
168 <m_printed_element_type, m_printed_type_with_fields>: Add.
169 * target-descriptions.h (tdesc_create_enum): Change return type.
170 (tdesc_add_typed_bitfield): Change parameter type.
171 (tdesc_add_enum_value): Change parameter type.
172 * xml-tdesc.c (struct tdesc_parsing_data) <current_type>: Change
173 type to tdesc_type_with_fields.
174 (tdesc_start_struct): Adjust.
175 (tdesc_start_flags): Adjust.
176 (tdesc_start_enum): Adjust.
177 (tdesc_start_field): Adjust.
178 * arch/tdesc.h (struct tdesc_type_builtin): Forward-declare.
179 (struct tdesc_type_vector): Forward-declare.
180 (struct tdesc_type_with_fields): Forward-declare.
181 (tdesc_create_struct): Change return type.
182 (tdesc_create_union): Likewise.
183 (tdesc_create_flags): Likewise.
184 (tdesc_add_field): Change parameter type.
185 (tdesc_set_struct_size): Likewise.
186 (tdesc_add_bitfield): Likewise.
187 (tdesc_add_flag): Likewise.
188 * features: Re-generate C files.
189
190 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
191
192 * target-descriptions.c (tdesc_arch_reg): Remove typedef.
193 (struct tdesc_arch_reg): Add constructor.
194 (DEF_VEC_O (tdesc_arch_reg)): Remove.
195 (struct tdesc_arch_data): Initialize fields.
196 <arch_regs>: Change type to std::vector.
197 (target_find_description): Adjust.
198 (tdesc_find_type): Adjust.
199 (tdesc_data_init): Call tdesc_arch_data constructor.
200 (tdesc_data_alloc): Allocate tdesc_arch_data with new.
201 (tdesc_data_cleanup): Free data with delete.
202 (tdesc_numbered_register): Adjust.
203 (tdesc_find_arch_register): Adjust.
204 (tdesc_use_registers): Adjust.
205
206 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
207
208 * target-descriptions.c (tdesc_type_field): Remove typedef.
209 (DEF_VEC_O (tdesc_type_field)): Remove.
210 (struct tdesc_type_field): Add constructor.
211 <name>: Change type to std::string.
212 (struct tdesc_type) <tdesc_type>: Instantiate vector if the type
213 kind uses it.
214 <~tdesc_type>: Destroy vector if the type kind uses it.
215 <u::u::fields>: Change type to std::vector.
216 (tdesc_gdb_type): Adjust.
217 (tdesc_add_field): Adjust.
218 (tdesc_add_typed_bitfield): Adjust.
219 (tdesc_add_field): Adjust.
220 (tdesc_add_enum_value): Adjust.
221 (class print_c_tdesc) <visit>: Adjust.
222
223 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
224
225 * target-descriptions.c (struct tdesc_type) <name>: Change type
226 to std::string.
227 <~tdesc_type>: Don't manually free name.
228 <operator==>: Adjust.
229 (tdesc_named_type): Adjust.
230 (tdesc_find_type): Adjust.
231 (tdesc_gdb_type): Adjust.
232 (class print_c_tdesc) <visit>: Adjust.
233
234 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
235
236 * target-descriptions.c (tdesc_type_p): Remove typedef.
237 (DEF_VEC_P (tdesc_type_p)): Remove.
238 (struct tdesc_feature) <types>: Change type to std::vector.
239 <~tdesc_feature>: Replace with default implementation.
240 <accept>: Adjust.
241 (tdesc_named_type): Adjust.
242 (tdesc_create_vector): Adjust.
243 (tdesc_create_struct): Adjust.
244 (tdesc_create_union): Adjust.
245 (tdesc_create_flags): Adjust.
246 (tdesc_create_enum): Adjust.
247
248 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
249
250 * target-descriptions.c (struct tdesc_reg) <tdesc_reg>: Change
251 type of name_ parameter, adjust to std::string change.
252 <name, group, type>: Change type to std::string.
253 <~tdesc_reg>: Replace with default implementation.
254 <operator==>: Adjust.
255 (tdesc_find_register_early): Adjust.
256 (tdesc_register_name): Adjust.
257 (tdesc_register_type): Adjust.
258 (tdesc_register_in_reggroup_p): Adjust.
259 (class print_c_tdesc) <visit>: Adjust.
260 (class print_c_feature) <visit>: Adjust.
261 * features/arc-arcompact.c: Re-generate.
262 * features/arc-v2.c: Re-generate.
263
264 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
265
266 * target-descriptions.c (tdesc_reg_p): Remove typedef.
267 (DEF_VEC_P (tdesc_reg_p)): Remove.
268 (struct tdesc_feature) <registers>: Change type to std::vector.
269 <~tdesc_feature>: Don't manually free registers.
270 <accept>: Adjust.
271 <operator==>: Adjust.
272 (tdesc_has_registers): Adjust.
273 (tdesc_find_register_early): Adjust.
274 (tdesc_use_registers): Adjust.
275 (tdesc_create_reg): Adjust.
276
277 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
278
279 * target-descriptions.c (tdesc_feature) <name>: Change type to
280 std::string.
281 <~tdesc_feature>: Don't manually free name.
282 <operator==>: Adjust.
283 (tdesc_find_feature): Adjust.
284 (tdesc_feature_name): Adjust.
285 (class print_c_tdesc) <visit_pre>: Adjust.
286 (class print_c_feature) <visit_pre>: Adjust.
287
288 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
289
290 * target-descriptions.c (tdesc_feature_p): Remove typedef.
291 (DEF_VEC_P (tdesc_feature_p)): Remove.
292 (struct target_desc) <features>: Change type to std::vector.
293 <~target_desc>: Replace with default implementation.
294 <accept>: Adjust.
295 <operator==>: Adjust.
296 (tdesc_has_registers): Adjust.
297 (tdesc_find_feature): Adjust.
298 (tdesc_use_registers): Adjust.
299 (tdesc_create_feature): Adjust.
300
301 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
302
303 * target-descriptions.c (arch_p): Remove typedef.
304 (DEF_VEC_P (arch_p)): Remove.
305 (struct target_desc) <compatible>: Change type to std::vector.
306 <~target_desc>: Don't manually free compatible.
307 (tdesc_compatible_p): Adjust.
308 (tdesc_add_compatible): Adjust.
309 (class print_c_tdesc) <visit_pre>: Adjust.
310
311 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
312
313 * target-descriptions.c (property_s): Remove typedef.
314 (DEF_VEC_O (property_s)): Remove.
315 (struct target_desc) <properties>: Make an std::vector.
316 <~target_desc>: Don't manually free properties.
317 (tdesc_property): Adjust.
318 (set_tdesc_property): Adjust.
319 (class print_c_tdesc) <visit_pre>: Adjust.
320
321 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
322
323 * common/gdb_assert.h (gdb_static_assert): Redefine using
324 static_assert.
325
326 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
327
328 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
329 unused variables.
330 (ada_is_redundant_range_encoding): Likewise.
331 * ada-varobj.c (ada_varobj_get_value_of_array_variable):
332 Likewise.
333 * alpha-tdep.c (alpha_software_single_step): Likewise.
334 * arm-tdep.c (_initialize_arm_tdep): Likewise.
335 * auto-load.c (info_auto_load_cmd): Likewise.
336 * break-catch-syscall.c (insert_catch_syscall): Likewise.
337 (remove_catch_syscall): Likewise.
338 * breakpoint.c (condition_completer): Likewise.
339 (clear_command): Likewise.
340 (update_breakpoint_locations): Likewise.
341 * btrace.c (btrace_disable): Likewise.
342 (btrace_teardown): Likewise.
343 (btrace_maint_update_pt_packets): Likewise.
344 (maint_btrace_clear_cmd): Likewise.
345 * cli/cli-decode.c (lookup_cmd_1): Likewise.
346 (lookup_cmd_composition): Likewise.
347 * cli/cli-dump.c (scan_filename): Likewise.
348 (restore_command): Likewise.
349 * compile/compile-loc2c.c (compute_stack_depth): Likewise.
350 * compile/compile-object-load.c (compile_object_load): Likewise.
351 * compile/compile-object-run.c (compile_object_run): Likewise.
352 * compile/compile.c (compile_to_object): Likewise.
353 * completer.c (filename_completer): Likewise.
354 (complete_files_symbols): Likewise.
355 (complete_expression): Likewise.
356 * corelow.c (core_open): Likewise.
357 * ctf.c (ctf_start): Likewise.
358 (ctf_write_status): Likewise.
359 (ctf_write_uploaded_tsv): Likewise.
360 (ctf_write_definition_end): Likewise.
361 (ctf_open_dir): Likewise.
362 (ctf_xfer_partial): Likewise.
363 (ctf_trace_find): Likewise.
364 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
365 Likewise.
366 * dwarf2loc.c (allocate_piece_closure): Likewise.
367 (indirect_pieced_value): Likewise.
368 (dwarf2_evaluate_loc_desc_full): Likewise.
369 * dwarf2read.c (dw2_expand_marked_cus): Likewise.
370 (dw2_expand_symtabs_matching): Likewise.
371 (dw2_map_symbol_filenames): Likewise.
372 (read_and_check_comp_unit_head): Likewise.
373 (read_cutu_die_from_dwo): Likewise.
374 (lookup_dwo_unit): Likewise.
375 (read_comp_units_from_section): Likewise.
376 (dwarf2_compute_name): Likewise.
377 (handle_DW_AT_stmt_list): Likewise.
378 (create_cus_hash_table): Likewise.
379 (create_dwp_v2_section): Likewise.
380 (dwarf2_rnglists_process): Likewise.
381 (dwarf2_ranges_process): Likewise.
382 (dwarf2_record_block_ranges): Likewise.
383 (is_vtable_name): Likewise.
384 (read_formatted_entries): Likewise.
385 (skip_form_bytes): Likewise.
386 * elfread.c (elf_symtab_read): Likewise.
387 * exec.c (exec_file_command): Likewise.
388 * f-valprint.c (f_val_print): Likewise.
389 (info_common_command_for_block): Likewise.
390 * guile/guile.c (initialize_scheme_side): Likewise.
391 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Likewise.
392 * guile/scm-cmd.c (cmdscm_completer): Likewise.
393 (gdbscm_register_command_x): Likewise.
394 * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
395 * guile/scm-param.c (gdbscm_parameter_value): Likewise.
396 * guile/scm-ports.c (file_port_magic): Likewise.
397 * guile/scm-pretty-print.c (ppscm_search_pp_list): Likewise.
398 (ppscm_pretty_print_one_value): Likewise.
399 (ppscm_print_children): Likewise.
400 * guile/scm-string.c (gdbscm_string_to_argv): Likewise.
401 * guile/scm-symtab.c (gdbscm_sal_symtab): Likewise.
402 * guile/scm-type.c (gdbscm_type_next_field_x): Likewise.
403 * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
404 * i386-tdep.c (i386_register_reggroup_p): Likewise.
405 * infcmd.c (run_command_1): Likewise.
406 (until_next_fsm_clean_up): Likewise.
407 * linespec.c (linespec_complete): Likewise.
408 (find_label_symbols): Likewise.
409 * m2-valprint.c (m2_val_print): Likewise.
410 * memattr.c (require_user_regions): Likewise.
411 (lookup_mem_region): Likewise.
412 (disable_mem_command): Likewise.
413 (mem_delete): Likewise.
414 * mep-tdep.c (mep_register_name): Likewise.
415 (mep_analyze_prologue): Likewise.
416 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Likewise.
417 * mi/mi-interp.c (mi_on_sync_execution_done): Likewise.
418 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
419 * microblaze-linux-tdep.c (microblaze_linux_init_abi): Likewise.
420 * minidebug.c (lzma_open): Likewise.
421 * minsyms.c (lookup_minimal_symbol): Likewise.
422 * mips-linux-tdep.c (mips64_fill_fpregset): Likewise.
423 * mips-tdep.c (mips_stub_frame_sniffer): Likewise.
424 (mips_o64_return_value): Likewise.
425 (mips_single_step_through_delay): Likewise.
426 (_initialize_mips_tdep): Likewise.
427 * nios2-tdep.c (nios2_push_dummy_call): Likewise.
428 (nios2_software_single_step): Likewise.
429 * parse.c (find_minsym_type_and_address): Likewise.
430 * psymtab.c (psym_relocate): Likewise.
431 * python/py-breakpoint.c (bppy_get_commands): Likewise.
432 (gdbpy_breakpoint_modified): Likewise.
433 * python/py-infevents.c (create_inferior_call_event_object):
434 Likewise.
435 * python/py-record-btrace.c (btpy_list_item): Likewise.
436 * python/py-type.c (typy_str): Likewise.
437 * python/py-value.c (valpy_call): Likewise.
438 * python/python.c (do_start_initialization): Likewise.
439 * record-btrace.c (record_btrace_insn_history_range): Likewise.
440 (record_btrace_call_history_range): Likewise.
441 (record_btrace_record_method): Likewise.
442 (record_btrace_xfer_partial): Likewise.
443 (btrace_get_frame_function): Likewise.
444 * record-full.c (record_full_open): Likewise.
445 * record.c (get_context_size): Likewise.
446 * registry.h (DEFINE_REGISTRY): Likewise.
447 * remote-fileio.c (remote_fileio_request): Likewise.
448 * remote.c (remote_update_thread_list): Likewise.
449 (remote_check_symbols): Likewise.
450 (remote_commit_resume): Likewise.
451 (remote_interrupt): Likewise.
452 (remote_insert_breakpoint): Likewise.
453 (compare_sections_command): Likewise.
454 * rust-exp.y (super_name): Likewise.
455 (lex_string): Likewise.
456 (convert_ast_to_type): Likewise.
457 (convert_ast_to_expression): Likewise.
458 * rust-lang.c (rust_print_struct_def): Likewise.
459 (rust_print_type): Likewise.
460 (rust_evaluate_subexp): Likewise.
461 * rx-tdep.c (rx_register_type): Likewise.
462 * ser-event.c (serial_event_clear): Likewise.
463 * serial.c (serial_open): Likewise.
464 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
465 * symfile.c (section_is_overlay): Likewise.
466 (overlay_unmapped_address): Likewise.
467 (overlay_mapped_address): Likewise.
468 (simple_overlay_update_1): Likewise.
469 (simple_overlay_update): Likewise.
470 * symtab.c (symbol_find_demangled_name): Likewise.
471 (search_symbols): Likewise.
472 * target-descriptions.c (tdesc_predefined_type): Likewise.
473 * target.c (target_commit_resume): Likewise.
474 * thread.c (print_selected_thread_frame): Likewise.
475 * top.c (new_ui_command): Likewise.
476 (gdb_readline_no_editing): Likewise.
477 * tracefile-tfile.c (tfile_open): Likewise.
478 * tracepoint.c (create_tsv_from_upload): Likewise.
479 * utils.c (quit): Likewise.
480 (defaulted_query): Likewise.
481 * valarith.c (value_concat): Likewise.
482 * xml-syscall.c (xml_list_syscalls_by_group): Likewise.
483 * xml-tdesc.c (target_fetch_description_xml): Likewise.
484 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
485 (xtensa_pseudo_register_write): Likewise.
486
487 2017-12-04 Tom Tromey <tom@tromey.com>
488
489 * NEWS: Mention Rust trait object inspection.
490
491 2017-12-04 Pedro Alves <palves@redhat.com>
492
493 PR gdb/22499
494 * amd64-tdep.c (amd64_insn::rex_offset): Rename to...
495 (amd64_insn::enc_prefix_offset): ... this, and tweak comment.
496 (vex2_prefix_p, vex3_prefix_p): New functions.
497 (amd64_get_insn_details): Adjust to rename. Also skip VEX2 and
498 VEX3 prefixes.
499 (fixup_riprel): Set VEX3.!B.
500
501 2017-12-03 Simon Marchi <simon.marchi@ericsson.com>
502
503 * target.h (mem_region_vector): Remove.
504 (struct target_ops) <to_memory_map>: Change return type to
505 std::vector<mem_region>.
506 * target-debug.h (target_debug_print_mem_region_vector): Rename
507 to ...
508 (target_debug_print_std_vector_mem_region): ... this.
509 * target-delegates.c: Re-generate.
510
511 2017-12-03 Pedro Alves <palves@redhat.com>
512
513 * make-target-delegates (munge_type): Also munge '<', '>', and
514 ':'. Avoid double underscores in identifiers, and trailing
515 underscores.
516 * target-debug.h
517 (target_debug_print_VEC_static_tracepoint_marker_p__p): Rename to
518 ...
519 (target_debug_print_VEC_static_tracepoint_marker_p_p): ... this.
520 * target-delegates.c: Regenerate.
521
522 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
523
524 * common/poison.h (XDELETE): Fix typo.
525
526 2017-12-01 Andrew Cagney <cagney@redhat.com>
527 Joel Brobecker <brobecker@adacore.com>
528 Sergio Durigan Junior <sergiodj@redhat.com>
529
530 * NEWS (Changes since GDB 8.0: Mention new '--readnever'
531 feature.
532 * coffread.c (coff_symfile_read): Do not map over sections with
533 'coff_locate_sections' if readnever is on.
534 * dwarf2read.c (dwarf2_has_info): Return 0 if
535 readnever is on.
536 * elfread.c (elf_symfile_read): Do not map over sections with
537 'elf_locate_sections' if readnever is on.
538 * main.c (validate_readnow_readnever): New function.
539 (captured_main_1): Add support for --readnever.
540 (print_gdb_help): Document --readnever.
541 * objfile-flags.h (enum objfile_flag) <OBJF_READNEVER>: New
542 flag.
543 * symfile.c (readnever_symbol_files): New global.
544 (symbol_file_add_with_addrs): Set 'OBJF_READNEVER' when
545 'READNEVER_SYMBOL_FILES' is set.
546 (validate_readnow_readnever): New function.
547 (symbol_file_command): Handle '-readnever' option.
548 Call 'validate_readnow_readnever'.
549 (add_symbol_file_command): Handle '-readnever' option.
550 Call 'validate_readnow_readnever'.
551 (_initialize_symfile): Document new '-readnever' option for
552 both 'symbol-file' and 'add-symbol-file' commands.
553 * top.h (readnever_symbol_files): New extern global.
554 * xcoffread.c (xcoff_initial_scan): Do not read debug
555 information if readnever is on.
556
557 2017-12-01 Sergio Durigan Junior <sergiodj@redhat.com>
558
559 * symfile.c (symbol_file_command): Call
560 'symbol_file_add_main_1' only after processing all command
561 line options.
562 (add_symbol_file_command): Modify logic to make arguments
563 position-independent.
564
565 2017-12-01 Joel Brobecker <brobecker@adacore.com>
566
567 * ada-lang.c (symbol_list_obstack): Delete.
568 (resolve_subexp): Make sure "candidates" gets xfree'ed.
569 (ada_lookup_symbol_list_worker): Remove the limitation that
570 the result is only good until the next call, now making it
571 the responsibility of the caller to free the result when no
572 longer needed. Adjust the function's intro comment accordingly.
573 (ada_lookup_symbol_list): Adjust the function's intro comment.
574 (ada_iterate_over_symbols): Make sure "results" gets xfree'ed.
575 (ada_lookup_encoded_symbol, get_var_value): Likewise.
576 (_initialize_ada_language): Remove symbol_list_obstack
577 initialization.
578 * ada-exp.y (block_lookup): Make sure "syms" gets xfree'ed.
579 (write_var_or_type, write_name_assoc): Likewise.
580
581 2017-12-01 Tom Tromey <tom@tromey.com>
582
583 * Makefile.in (all_deps_files): New variable.
584 Include .Po files using all_deps_files.
585
586 2017-12-01 Joel Brobecker <brobecker@adacore.com>
587
588 * MAINTAINERS: Update list of maintainers, moving those who
589 stepped down or became inactive to the "Past Maintainers"
590 section.
591
592 2017-11-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
593
594 * configure.ac Don't check for sys/fault.h, sys/syscall.h,
595 sys/proc.h.
596 (NEW_PROC_API): Remove.
597 (prsysent_t, pr_sigset_t, pr_sigaction64_t, pr_siginfo64_t):
598 Likewise.
599 * common/common.m4 (GDB_AC_COMMON): Don't check for sys/syscall.h.
600 * configure: Regenerate.
601 * config.in: Regenerate.
602 * gdbserver/configure: Regenerate.
603 * gdbserver/config.in: Regenerate.
604
605 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Remove
606 NEW_PROC_API test.
607 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Likewise.
608
609 * linux-btrace.c: Remove HAVE_SYS_SYSCALL_H test.
610
611 * proc-api.c: Remove !NEW_PROC_API support.
612 Remove HAVE_SYS_PROC_H and HAVE_SYS_USER_H tests.
613 Remove tests for macros always defined on Solaris.
614 * proc-events.c: Remove !NEW_PROC_API support.
615 Remove Remove HAVE_SYS_SYSCALL_H, HAVE_SYS_PROC_H and
616 HAVE_SYS_USER_H tests.
617 (init_syscall_table): Remove non-Solaris syscalls.
618 Remove tests for syscalls present on all Solaris versions.
619 Add missing Solaris 10+ syscalls.
620 (signal_table): Remove non-Solaris signals.
621 Remove tests for signals present on all Solaris versions.
622 (fault_table): Remove non-Solaris faults.
623 Remove tests for faults present on all Solaris versions.
624 * proc-flags.c: Remove !NEW_PROC_API support.
625 (pr_flag_table): Remove non-Solaris and pre-Solaris 7 comments.
626 Remove non-Solaris flags.
627 * proc-why.c: Remove !NEW_PROC_API support.
628 (pr_why_table): Remove meaningless comments.
629 Remove tests for reasons present on all Solaris versions.
630 Remove OSF/1 cases.
631 (proc_prettyfprint_why): Likewise.
632
633 * procfs.c: Remove !NEW_PROC_API and DYNAMIC_SYSCALLS support.
634 Remove HAVE_SYS_FAULT_H and HAVE_SYS_SYSCALL_H tests.
635 Remove WA_READ test, IRIX watchpoint support.
636 (gdb_sigset_t, gdb_sigaction_t, gdb_siginfo_t): Replace by base
637 types. Change users.
638 (gdb_praddset, gdb_prdelset, gdb_premptysysset, gdb_praddsysset)
639 (gdb_prdelset, gdb_pr_issyssetmember): Replace by base macros.
640 Change callers.
641 Remove CTL_PROC_NAME_FMT tests.
642 (gdb_prstatus_t, gdb_lwpstatus_t): Replace by base types. Change
643 users.
644 (sysset_t_size): Remove. Use sizeof (sysset_t) in callers.
645 Remove PROCFS_DONT_PIOCSSIG_CURSIG support.
646 (proc_modify_flag): Replace GDBRESET by PCUNSET.
647 Remove PR_ASYNC, PR_KLC tests.
648 (proc_unset_inherit_on_fork): Remove PR_ASYNC test.
649 (proc_parent_pid): Remove PCWATCH etc. tests.
650 (proc_set_watchpoint): Remove !PCWATCH && !PIOCSWATCH support.
651 Remove PCAGENT test.
652 (proc_get_nthreads) [PIOCNTHR && PIOCTLIST]: Remove.
653 Remove SYS_lwpcreate || SYS_lwp_create test.
654 (proc_get_current_thread): Likewise.
655 [PIOCNTHR && PIOCTLIST]: Remove.
656 [PIOCLSTATUS]: Remove.
657 (procfs_debug_inferior): Remove non-Solaris cases, conditionals.
658 [PRFS_STOPEXEC]: Remove.
659 (syscall_is_lwp_exit): Remove non-Solaris cases, conditionals.
660 (syscall_is_exit): Likewise.
661 (syscall_is_exec): Likewise.
662 (syscall_is_lwp_create): Likewise.
663 Remove SYS_syssgi support.
664 (procfs_wait): Remove PR_ASYNC, !PIOCSSPCACT tests.
665 [SYS_syssgi]: Remove.
666 Remove non-Solaris cases, conditionals.
667 (unconditionally_kill_inferior) [PROCFS_NEED_PIOCSSIG_FOR_KILL]:
668 Remove.
669 (procfs_init_inferior) [SYS_syssgi]: Remove.
670 (procfs_set_exec_trap) [PRFS_STOPEXEC]: Remove.
671 (procfs_inferior_created) [SYS_syssgi]: Remove.
672 (procfs_set_watchpoint): Remove !AIX5 test.
673 (procfs_stopped_by_watchpoint): Remove FLTWATCH test, FLTKWATCH
674 case.
675 (mappingflags) [MA_PHYS]: Remove.
676 (info_mappings_callback): Remove PCAGENT test.
677 Remove PIOCOPENLWP || PCAGENT test.
678
679 2017-11-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
680
681 * sol-thread.c (info_solthreads): Constify args.
682 Cast args to void *.
683
684 2017-11-29 John Baldwin <jhb@FreeBSD.org>
685
686 * target-float.c [HAVE_LIBMPFR]: Define MPFR_USE_INTMAX_T.
687
688 2017-11-29 Joel Brobecker <brobecker@adacore.com>
689
690 * ada-lang.c (to_fixed_range_type): Make sure that the size
691 of the range type being returned is the same as the size
692 of the range type being fixed.
693
694 2017-11-29 Pedro Alves <palves@redhat.com>
695
696 PR c++/19436
697 * NEWS: Mention setting breakpoints on functions with C++ ABI
698 tags.
699 * completer.h (completion_match_for_lcd) <match,
700 mark_ignored_range>: New methods.
701 <finish>: Consider ignored ranges.
702 <clear>: Clear ignored ranges.
703 <m_ignored_ranges, m_finished_storage>: New fields.
704 * cp-support.c (cp_search_name_hash): Ignore ABI tags.
705 (cp_symbol_name_matches_1, cp_fq_symbol_name_matches): Pass the
706 completion_match_for_lcd pointer to strncmp_iw_with_mode.
707 (test_cp_symbol_name_cmp): Add [abi:...] tags unit tests.
708 * language.c (default_symbol_name_matcher): Pass the
709 completion_match_for_lcd pointer to strncmp_iw_with_mode.
710 * linespec.c (linespec_lexer_lex_string): Don't tokenize ABI tags.
711 * utils.c (skip_abi_tag): New function.
712 (strncmp_iw_with_mode): Add completion_match_for_lcd parameter.
713 Handle ABI tags.
714 * utils.h (strncmp_iw_with_mode): Add completion_match_for_lcd
715 parameter.
716
717 2017-11-29 Pedro Alves <palves@redhat.com>
718
719 PR c++/19436
720 * NEWS: Mention setting breakpoints on functions with C++ ABI
721 tags.
722 * completer.h (completion_match_for_lcd) <match,
723 mark_ignored_range>: New methods.
724 <finish>: Consider ignored ranges.
725 <clear>: Clear ignored ranges.
726 <m_ignored_ranges, m_finished_storage>: New fields.
727 * cp-support.c (cp_search_name_hash): Ignore ABI tags.
728 (cp_symbol_name_matches_1, cp_fq_symbol_name_matches): Pass the
729 completion_match_for_lcd pointer to strncmp_iw_with_mode.
730 (test_cp_symbol_name_cmp): Add [abi:...] tags unit tests.
731 * language.c (default_symbol_name_matcher): Pass the
732 completion_match_for_lcd pointer to strncmp_iw_with_mode.
733 * linespec.c (linespec_lexer_lex_string): Don't tokenize ABI tags.
734 * utils.c (skip_abi_tag): New function.
735 (strncmp_iw_with_mode): Add completion_match_for_lcd parameter.
736 Handle ABI tags.
737 * utils.h (strncmp_iw_with_mode): Add completion_match_for_lcd
738 parameter.
739
740 2017-11-29 Pedro Alves <palves@redhat.com>
741
742 * NEWS: Mention that breakpoints on C++ functions are now set on
743 on all namespaces/classes by default, and mention "break
744 -qualified".
745 * ax-gdb.c (agent_command_1): Adjust to pass a
746 symbol_name_match_type to new_linespec_location.
747 * breakpoint.c (parse_breakpoint_sals): Adjust to
748 get_linespec_location's return type change.
749 (strace_marker_create_sals_from_location): Adjust to pass a
750 symbol_name_match_type to new_linespec_location.
751 (strace_marker_decode_location): Adjust to get_linespec_location's
752 return type change.
753 (strace_command): Adjust to pass a symbol_name_match_type to
754 new_linespec_location.
755 (LOCATION_HELP_STRING): Add paragraph about wildmatching, and
756 mention "-qualified".
757 * c-lang.c (cplus_language_defn): Install cp_search_name_hash.
758 * completer.c (explicit_location_match_type::MATCH_QUALIFIED): New
759 enumerator.
760 (complete_address_and_linespec_locations): New parameter
761 'match_type'. Pass it down.
762 (explicit_options): Add "-qualified".
763 (collect_explicit_location_matches): Pass the requested match type
764 to the linespec completers. Handle MATCH_QUALIFIED.
765 (location_completer): Handle "-qualified" combined with linespecs.
766 * cp-support.c (cp_search_name_hash): New.
767 (cp_symbol_name_matches_1): Implement wild matching for C++.
768 (cp_fq_symbol_name_matches): Reimplement.
769 (cp_get_symbol_name_matcher): Return different matchers depending
770 on the lookup name's match type.
771 (selftests::test_cp_symbol_name_matches): Add wild matching tests.
772 * cp-support.h (cp_search_name_hash): New declaration.
773 * dwarf2read.c
774 (selftests::dw2_expand_symtabs_matching::test_symbols): Add
775 symbols.
776 (test_dw2_expand_symtabs_matching_symbol): Add wild matching
777 tests.
778 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Adjust to
779 pass a symbol_name_match_type to new_linespec_location.
780 * linespec.c (linespec_parse_basic): Lookup function symbols using
781 the parser's symbol name match type.
782 (convert_explicit_location_to_linespec): New
783 symbol_name_match_type parameter. Pass it down to
784 find_linespec_symbols.
785 (convert_explicit_location_to_sals): Pass the location's name
786 match type to convert_explicit_location_to_linespec.
787 (parse_linespec): New match_type parameter. Save it in the
788 parser.
789 (linespec_parser_new): Default to symbol_name_match_type::WILD.
790 (linespec_complete_function): New symbol_name_match_type
791 parameter. Use it.
792 (complete_linespec_component): Pass down the parser's recorded
793 name match type.
794 (linespec_complete_label): New symbol_name_match_type parameter.
795 Use it.
796 (linespec_complete): New symbol_name_match_type parameter. Save
797 it in the parser and pass it down. Adjust to
798 get_linespec_location's prototype change.
799 (find_function_symbols, find_linespec_symbols): New
800 symbol_name_match_type parameter. Pass it down instead of
801 assuming symbol_name_match_type::WILD.
802 * linespec.h (linespec_complete, linespec_complete_function)
803 (linespec_complete_label): New symbol_name_match_type parameter.
804 * location.c (event_location::linespec_location): Now a struct
805 linespec_location.
806 (EL_LINESPEC): Adjust.
807 (initialize_explicit_location): Default to
808 symbol_name_match_type::WILD.
809 (new_linespec_location): New symbol_name_match_type parameter.
810 Record it in the location.
811 (get_linespec_location): Now returns a struct linespec_location.
812 (new_explicit_location): Also copy func_name_match_type.
813 (explicit_to_string_internal)
814 (string_to_explicit_location): Handle "-qualified".
815 (copy_event_location): Adjust to LINESPEC_LOCATION type change.
816 Copy symbol_name_match_type fields.
817 (event_location_deleter::operator()): Adjust to LINESPEC_LOCATION
818 type change.
819 (event_location_to_string): Adjust to LINESPEC_LOCATION type
820 change. Handle "-qualfied".
821 (string_to_explicit_location): Handle "-qualified".
822 (string_to_event_location_basic): New symbol_name_match_type
823 parameter. Pass it down.
824 (string_to_event_location): Handle "-qualified".
825 * location.h (struct linespec_location): New.
826 (explicit_location::func_name_match_type): New field.
827 (new_linespec_location): Now returns a const linespec_location *.
828 (string_to_event_location_basic): New symbol_name_match_type
829 parameter.
830 (explicit_completion_info::saw_explicit_location_option): New
831 field.
832 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Adjust to pass a
833 symbol_name_match_type to new_linespec_location.
834 * python/py-breakpoint.c (bppy_init): Likewise.
835 * python/python.c (gdbpy_decode_line): Likewise.
836
837 2017-11-29 Pedro Alves <palves@redhat.com>
838
839 * ada-lang.c (ada_lookup_name_info::matches): Change type of
840 parameter from completion_match to completion_match_result.
841 Adjust.
842 (do_wild_match, do_full_match, ada_symbol_name_matches): Likewise.
843 * completer.c (completion_tracker::maybe_add_completion): Add
844 match_for_lcd parameter and use it.
845 (completion_tracker::add_completion): Likewise.
846 * completer.h (class completion_match_for_lcd): New class.
847 (completion_match_result::match_for_lcd): New field.
848 (completion_match_result::set_match): New method.
849 (completion_tracker): Add comments.
850 (completion_tracker::add_completion): Add match_for_lcd parameter.
851 (completion_tracker::reset_completion_match_result): Reset
852 match_for_lcd too.
853 (completion_tracker::maybe_add_completion): Add match_for_lcd
854 parameter.
855 (completion_tracker::m_lowest_common_denominator_unique): Extend
856 comments.
857 * cp-support.c (cp_symbol_name_matches_1)
858 (cp_fq_symbol_name_matches): Change type of parameter from
859 completion_match to completion_match_result. Adjust.
860 * language.c (default_symbol_name_matcher): Change type of
861 parameter from completion_match to completion_match_result.
862 Adjust.
863 * language.h (completion_match_for_lcd): Forward declare.
864 (default_symbol_name_matcher): Change type of parameter from
865 completion_match to completion_match_result.
866 * symtab.c (compare_symbol_name): Adjust.
867 (completion_list_add_name): Pass the match_for_lcd to the tracker.
868 * symtab.h (ada_lookup_name_info::matches): Change type of
869 parameter from completion_match to completion_match_result.
870 (symbol_name_matcher_ftype): Likewise, and update comments.
871
872 2017-11-29 Pedro Alves <palves@redhat.com>
873
874 * linespec.c (minsym_found, add_minsym): Use msymbol_is_function.
875 * minsyms.c (msymbol_is_text): Delete.
876 (msymbol_is_function): New function.
877 * minsyms.h (msymbol_is_text): Delete.
878 (msymbol_is_function): New declaration.
879 * symtab.c (find_function_alias_target): Use msymbol_is_function.
880
881 2017-11-29 Tom Tromey <tom@tromey.com>
882
883 * Makefile.in (distclean): Handle the case where rmdir fails.
884
885 2017-11-29 Tom Tromey <tom@tromey.com>
886
887 * symfile.c (_initialize_symfile): Update usage text for
888 add-symbol-file, symbol-file, load.
889
890 2017-11-29 Tom Tromey <tom@tromey.com>
891
892 * symfile.c (add_symbol_file_command): Error if some arguments to
893 -s are missing. Change unrecognized-argument error message.
894 (_initialize_symfile): Fix usage text for add-symbol-file.
895
896 2017-11-27 Tom Tromey <tom@tromey.com>
897
898 * Makefile.in (REMOTE_OBS): Remove.
899 (SFILES): Remove remote sources.
900 (COMMON_SFILES): Add remote sources.
901 (ALLDEPFILES): Remove dcache.c.
902
903 2017-11-27 Tom Tromey <tom@tromey.com>
904
905 * Makefile.in (SUBDIR_TARGET_SRCS, SUBDIR_TARGET_OBS): New
906 variables.
907 (SFILES): Use SUBDIR_TARGET_SRCS.
908 (COMMON_OBS): Use SUBDIR_TARGET_OBS. Remove waitstatus.o.
909 (CONFIG_SRC_SUBDIR): Add target.
910 (%.o): Remove target rule.
911
912 2017-11-27 Tom Tromey <tom@tromey.com>
913
914 * Makefile.in (COMMON_OBS): Remove filename-seen-cache.o,
915 registry.o, thread-fsm.o, debug.o.
916 (COMMON_SFILES): Add filename-seen-cache.c, registry.c,
917 thread-fsm.c, debug.c.
918
919 2017-11-27 Tom Tromey <tom@tromey.com>
920
921 * Makefile.in (COMMON_SFILES): New.
922 (SFILES): Move some entries to COMMON_SFILES.
923 (COMMON_OBS): Use COMMON_SFILES.
924
925 2017-11-27 Tom Tromey <tom@tromey.com>
926
927 * Makefile.in (YYFILES): Update comment.
928 (YYOBJ): Redefine.
929
930 2017-11-27 Tom Tromey <tom@tromey.com>
931
932 * Makefile.in (SUBDIR_PYTHON_OBS): Redefine.
933 (CONFIG_SRC_SUBDIR): Add python.
934 (%.o): Remove python rule.
935 (python/%.o): New rule.
936 * configure: Rebuild.
937 * configure.ac (CONFIG_OBS): Refer to python/python.o
938
939 2017-11-27 Tom Tromey <tom@tromey.com>
940
941 * configure: Rebuild.
942 * configure.ac (CONFIG_OBS): Refer to guile/guile.o.
943 * Makefile.in (SUBDIR_GUILE_OBS): Redefine.
944 (CONFIG_SRC_SUBDIR): Add guile.
945 (%.o): Remove guile rule.
946
947 2017-11-27 Tom Tromey <tom@tromey.com>
948
949 * Makefile.in (SUBDIR_UNITTESTS_OBS): Redefine.
950 (%.o): Remove unittests rule.
951 (CONFIG_SRC_SUBDIR): Add unittests.
952
953 2017-11-27 Tom Tromey <tom@tromey.com>
954
955 * Makefile.in (SUBDIR_TUI_OBS): Redefine.
956 (CONFIG_SRC_SUBDIR): Add tui.
957 (%.o): Remove tui rule.
958
959 2017-11-27 Tom Tromey <tom@tromey.com>
960
961 * Makefile.in (SUBDIR_GCC_COMPILE_OBS): Redefine.
962 (%.o): Remove compile rule.
963 (CONFIG_SRC_SUBDIR): Add compile.
964
965 2017-11-27 Tom Tromey <tom@tromey.com>
966
967 * Makefile.in (SUBDIR_MI_OBS): Redefine.
968 (%.o): Remove mi rule.
969 (CONFIG_SRC_SUBDIR): Add mi.
970 (COMMON_OBS): Use mi/mi-common.o
971
972 2017-11-27 Tom Tromey <tom@tromey.com>
973
974 * Makefile.in (SUBDIR_CLI_OBS): Redefine.
975 (%.o): Remove cli rule.
976 (CONFIG_SRC_SUBDIR): Add cli.
977
978 2017-11-27 Tom Tromey <tom@tromey.com>
979
980 * configure.ac (CONFIG_SRC_SUBDIR): Don't subst.
981 * configure: Rebuild.
982 * Makefile.in (CONFIG_SRC_SUBDIR): Redefine.
983 (CONFIG_DEP_SUBDIR): New variable.
984 (%.o): Add order-only dependency.
985 ($(CONFIG_DEP_SUBDIR)): New target.
986
987 2017-11-26 Dominik Czarnota <dominik.b.czarnota@gmail.com>
988
989 PR gdb/21945
990 * findcmd.c (_initialize_mem_search): Update find command help
991 text.
992
993 2017-11-26 Simon Marchi <simon.marchi@polymtl.ca>
994
995 * python/python.c (do_start_initialization): Change progname
996 type to gdb::unique_xmalloc_ptr. Release the pointer when using
997 Python 2.
998
999 2017-11-26 Tom Tromey <tom@tromey.com>
1000
1001 * common/format.h: Add include guards.
1002
1003 2017-11-26 Tom Tromey <tom@tromey.com>
1004
1005 * nat/linux-personality.h (class
1006 maybe_disable_address_space_randomization): New class.
1007 (maybe_disable_address_space_randomization): Don't declare
1008 function.
1009 * nat/linux-personality.c (restore_personality)
1010 (make_disable_asr_cleanup): Remove.
1011 (maybe_disable_address_space_randomization): Now a constructor.
1012 (~maybe_disable_address_space_randomization): New destructor.
1013 * linux-nat.c (linux_nat_create_inferior): Update.
1014
1015 2017-11-26 Tom Tromey <tom@tromey.com>
1016
1017 * gcore.c (write_gcore_file_1): Use gdb::unique_xmalloc_ptr.
1018
1019 2017-11-26 Ulrich Weigand <uweigand@de.ibm.com>
1020
1021 * spu-tdep.c (spu_software_single_step): Access SPU_LSLR_REGNUM as
1022 "cooked" register. Access only first four bytes of branch target
1023 registers.
1024
1025 2017-11-25 Sergio Durigan Junior <sergiodj@redhat.com>
1026
1027 PR gdb/22491
1028 * stap-probe.c (relocate_address): New function.
1029 (stap_probe::get_relocated_address): Use 'relocate_address'.
1030 (stap_probe::set_semaphore): Use 'relocate_address' and pass
1031 'm_sem_addr'.
1032 (stap_probe::clear_semaphore): Likewise.
1033
1034 2017-11-25 Pedro Alves <palves@redhat.com>
1035
1036 * dictionary.c: Include "safe-ctype.h".
1037 * minsyms.c: Include "safe-ctype.h".
1038 * minsyms.c (SYMBOL_HASH_NEXT): Use TOLOWER instead of tolower.
1039
1040 2017-11-25 Pedro Alves <palves@redhat.com>
1041
1042 * completer.c (complete_line_internal_1): Skip spaces until the
1043 start of the command.
1044
1045 2017-11-24 Pedro Alves <palves@redhat.com>
1046
1047 * cp-support.c (cp_symbol_name_matches_1): New, factored out from
1048 cp_fq_symbol_name_matches. Pass language_cplus to
1049 strncmp_with_mode.
1050 (cp_fq_symbol_name_matches): Call cp_symbol_name_matches_1.
1051 (selftests::test_cp_symbol_name_cmp): New.
1052 (_initialize_cp_support): Register "cp_symbol_name_matches"
1053 selftests.
1054 * language.c (default_symbol_name_matcher): Pass language_minimal
1055 to strncmp_iw_with_mode.
1056 * utils.c: Include "cp-support.h" and <algorithm>.
1057 (valid_identifier_name_char, cp_skip_operator_token, skip_ws)
1058 (cp_is_operator): New functions.
1059 (strncmp_iw_with_mode): Use them. Add language parameter. Don't
1060 skip whitespace in the symbol name when the lookup name doesn't
1061 have spaces, and vice versa.
1062 (strncmp_iw, strcmp_iw): Pass language to strncmp_iw_with_mode.
1063 * utils.h (strncmp_iw_with_mode): Add language parameter.
1064
1065 2017-11-24 Joel Brobecker <brobecker@adacore.com>
1066
1067 * ada-lang.c (ada_exception_message_1, ada_exception_message):
1068 New functions.
1069 (print_it_exception): If available, display the exception
1070 message as well.
1071 * NEWS: Document new feature.
1072
1073 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
1074
1075 * configure.nat <spu-linux>: Add fork-inferior.o to NATDEPFILES.
1076
1077 2017-11-24 Philipp Rudo <prudo@linux.vnet.ibm.com>
1078
1079 * dtrace-probe.c (dtrace_probe::build_arg_exprs)
1080 (dtrace_probe::is_enabled, dtrace_probe::enable)
1081 (dtrace_probe::disable): Remove keyword 'struct' at for-range
1082 variable
1083 * probe.c (gen_ui_out_table_header_info)
1084 (print_ui_out_not_applicables): Remove keyword 'struct' at
1085 for-range variable
1086
1087 2017-11-24 Alan Hayward <alan.hayward@arm.com>
1088
1089 * configure.tgt: Add arch/aarch64.o
1090
1091 2017-11-24 Simon Marchi <simon.marchi@polymtl.ca>
1092
1093 * common/common-utils.h: Include poison.h.
1094 (xfree): Remove declaration, add definition with static_assert.
1095 * common/common-utils.c (xfree): Remove.
1096 * common/poison.h (IsMallocatable): Define.
1097 (IsFreeable): Define.
1098 (free): Delete for non-freeable types.
1099 (xnew): New.
1100 (XNEW): Undef and redefine.
1101 (xcnew): New.
1102 (XCNEW): Undef and redefine.
1103 (xdelete): New.
1104 (XDELETE): Undef and redefine.
1105 (xnewvec): New.
1106 (XNEWVEC): Undef and redefine.
1107 (xcnewvec): New.
1108 (XCNEWVEC): Undef and redefine.
1109 (xresizevec): New.
1110 (XRESIZEVEC): Undef and redefine.
1111 (xdeletevec): New.
1112 (XDELETEVEC): Undef and redefine.
1113 (xnewvar): New.
1114 (XNEWVAR): Undef and redefine.
1115 (xcnewvar): New.
1116 (XCNEWVAR): Undef and redefine.
1117 (xresizevar): New.
1118 (XRESIZEVAR): Undef and redefine.
1119
1120 2017-11-24 Simon Marchi <simon.marchi@polymtl.ca>
1121
1122 * gdbthread.h (private_thread_info): Define structure type, add
1123 virtual pure destructor.
1124 (thread_info) <priv>: Change type to unique_ptr.
1125 <private_dtor>: Remove.
1126 * thread.c (add_thread_with_info): Adjust to use of unique_ptr.
1127 (private_thread_info::~private_thread_info): Provide default
1128 implementation.
1129 (thread_info::~thread_info): Don't call private_dtor nor
1130 manually free priv.
1131 * aix-thread.c (private_thread_info): Rename to ...
1132 (aix_thread_info): ... this.
1133 (get_aix_thread_info): New.
1134 (sync_threadlists): Adjust.
1135 (iter_tid): Adjust.
1136 (aix_thread_resume): Adjust.
1137 (aix_thread_fetch_registers): Adjust.
1138 (aix_thread_store_registers): Adjust.
1139 (aix_thread_extra_thread_info): Adjust.
1140 * darwin-nat.h (private_thread_info): Rename to ...
1141 (darwin_thread_info): ... this.
1142 (get_darwin_thread_info): New.
1143 * darwin-nat.c (darwin_init_thread_list): Adjust.
1144 (darwin_check_new_threads): Adjust.
1145 (thread_info_from_private_thread_info): Adjust.
1146 * linux-thread-db.c (private_thread_info): Rename to ...
1147 (thread_db_thread_info): ... this, initialize fields.
1148 (get_thread_db_thread_info): New.
1149 <dying>: Change type to bool.
1150 (update_thread_state): Adjust to type rename.
1151 (record_thread): Adjust to type rename an use of unique_ptr.
1152 (thread_db_pid_to_str): Likewise.
1153 (thread_db_extra_thread_info): Likewise.
1154 (thread_db_thread_handle_to_thread_info): Likewise.
1155 (thread_db_get_thread_local_address): Likewise.
1156 * nto-tdep.h (private_thread_info): Rename to ...
1157 (nto_thread_info): ... this, initialize fields.
1158 (get_nto_thread_info): New.
1159 <name>: Change type to std::string.
1160 * nto-tdep.c (nto_extra_thread_info): Adjust to type rename and
1161 use of unique_ptr.
1162 * nto-procfs.c (update_thread_private_data_name): Adjust to
1163 std::string change, allocate nto_private_thread_info with new.
1164 (update_thread_private_data): Adjust to unique_ptr.
1165 * remote.c (private_thread_info): Rename to ...
1166 (remote_thread_info): ... this, initialize data members with
1167 default values.
1168 <extra, name>: Change type to std::string.
1169 <thread_handle>: Change type to non-pointer.
1170 (free_private_thread_info): Remove.
1171 (get_private_info_thread): Rename to...
1172 (get_remote_thread_info): ... this, change return type, adjust to
1173 use of unique_ptr, use remote_thread_info constructor.
1174 (remote_add_thread): Adjust.
1175 (get_private_info_ptid): Rename to...
1176 (get_remote_thread_info): ...this, change return type.
1177 (remote_thread_name): Use get_remote_thread_info, adjust to
1178 change to std::string.
1179 (struct thread_item) <~thread_item>: Remove.
1180 <thread_handle>: Make non pointer.
1181 (start_thread): Adjust to thread_item::thread_handle type
1182 change.
1183 (remote_update_thread_list): Adjust to type name change, move
1184 strings from temporary to long-lived object instead of
1185 duplicating.
1186 (remote_threads_extra_info): Use get_remote_thread_info.
1187 (process_initial_stop_replies): Likewise.
1188 (resume_clear_thread_private_info): Likewise.
1189 (remote_resume): Adjust to type name change.
1190 (remote_commit_resume): Use get_remote_thread_info.
1191 (process_stop_reply): Adjust to type name change.
1192 (remote_stopped_by_sw_breakpoint): Use get_remote_thread_info.
1193 (remote_stopped_by_hw_breakpoint): Likewise.
1194 (remote_stopped_by_watchpoint): Likewise.
1195 (remote_stopped_data_address): Likewise.
1196 (remote_core_of_thread): Likewise.
1197 (remote_thread_handle_to_thread_info): Use
1198 get_private_info_thread, adjust to thread_handle field type
1199 change.
1200
1201 2017-11-24 Simon Marchi <simon.marchi@polymtl.ca>
1202
1203 * remote.c (struct thread_item): Add constructor, disable copy
1204 construction and copy assignment, define default move
1205 construction and move assignment.
1206 <extra, name>: Change type to std::string.
1207 <core>: Initialize.
1208 <thread_handle>: Make non-pointer.
1209 (thread_item_t): Remove typedef.
1210 (DEF_VEC_O(thread_item_t)): Remove.
1211 (threads_listing_context) <contains_thread>: New method.
1212 <remove_thread>: New method.
1213 <items>: Change type to std::vector.
1214 (clear_threads_listing_context): Remove.
1215 (threads_listing_context_remove): Remove.
1216 (remote_newthread_step): Use thread_item constructor, adjust to
1217 change to std::vector.
1218 (start_thread): Use thread_item constructor, adjust to change to
1219 std::vector.
1220 (end_thread): Adjust to change to std::vector and std::string.
1221 (remote_get_threads_with_qthreadinfo): Use thread_item
1222 constructor, adjust to std::vector.
1223 (remote_update_thread_list): Adjust to change to std::vector and
1224 std::string, use threads_listing_context methods.
1225 (remove_child_of_pending_fork): Adjust.
1226 (remove_new_fork_children): Adjust.
1227 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add rsp-low-selftests.c.
1228 (SUBDIR_UNITTESTS_OBS): Add rsp-low-selftests.o.
1229 * unittests/rsp-low-selftests.c: New file.
1230 * common/rsp-low.h: Include common/byte-vector.h.
1231 (hex2bin): New overload.
1232 * common/rsp-low.c (hex2bin): New overload.
1233
1234 2017-11-24 Simon Marchi <simon.marchi@ericsson.com>
1235
1236 * inferior.h (private_inferior): Define structure type, add
1237 virtual pure destructor.
1238 (inferior) <priv>: Change type to unique_ptr.
1239 * inferior.c (private_inferior::~private_inferior): Provide
1240 default implementation.
1241 (inferior::~inferior): Don't free priv field.
1242 (exit_inferior_1): Likewise.
1243 * darwin-nat.h (struct darwin_exception_info): Initialize fields.
1244 (darwin_exception_info): Remove typedef.
1245 (DEF_VEC_O (darwin_thread_t)); Remove.
1246 (private_inferior): Rename to ...
1247 (darwin_private_inferior): ... this, extend private_inferior.
1248 (get_darwin_inferior): New.
1249 <threads>: Change type to std::vector of darwin_thread_t pointers.
1250 * darwin-nat.c (darwin_check_new_threads): Adjust.
1251 (find_inferior_task_it): Adjust.
1252 (darwin_find_thread); Adjust.
1253 (darwin_suspend_inferior): Adjust.
1254 (darwin_resume_inferior): Adjust.
1255 (darwin_find_new_inferior): Adjust.
1256 (darwin_decode_notify_message): Adjust.
1257 (darwin_send_reply): Adjust.
1258 (darwin_resume_inferior_threads): Adjust.
1259 (darwin_suspend_inferior_threads): Adjust.
1260 (darwin_decode_message): Adjust.
1261 (darwin_wait): Adjust.
1262 (darwin_interrupt): Adjust.
1263 (darwin_deallocate_threads): Adjust.
1264 (darwin_mourn_inferior): Adjust, don't free private data.
1265 (darwin_reply_to_all_pending_messages): Adjust.
1266 (darwin_stop_inferior): Adjust.
1267 (darwin_setup_exceptions): Adjust.
1268 (darwin_kill_inferior): Adjust.
1269 (darwin_setup_request_notification): Adjust.
1270 (darwin_attach_pid): Adjust.
1271 (darwin_init_thread_list): Adjust.
1272 (darwin_setup_fake_stop_event): Adjust.
1273 (darwin_attach): Adjust.
1274 (darwin_detach): Adjust.
1275 (darwin_xfer_partial): Adjust.
1276 (set_enable_mach_exceptions): Adjust.
1277 (darwin_pid_to_exec_file): Adjust.
1278 (darwin_get_ada_task_ptid): Adjust.
1279 * darwin-nat-info.c (get_task_from_args): Adjust.
1280 (info_mach_ports_command): Adjust.
1281 (info_mach_region_command): Adjust.
1282 (info_mach_exceptions_command): Adjust.
1283 * remote.c (private_inferior): Rename to ...
1284 (remote_private_inferior): ... this, initialize fields.
1285 (get_remote_inferior); New.
1286 (remote_commit_resume): Use get_remote_inferior.
1287 (check_pending_event_prevents_wildcard_vcont_callback): Likewise.
1288
1289 2017-11-24 Pedro Alves <palves@redhat.com>
1290
1291 * NEWS: Mention linespecs and explicit locations, and completion
1292 improvements.
1293
1294 2017-11-24 Yao Qi <yao.qi@linaro.org>
1295
1296 * regcache.c (regcache::dump): Remove footnote_register_size.
1297
1298 2017-11-24 Yao Qi <yao.qi@linaro.org>
1299
1300 * regcache.c (cooked_read_test): Add more test for readonly
1301 regcache.
1302
1303 2017-11-24 Yao Qi <yao.qi@linaro.org>
1304
1305 * gdbarch-selftests.c (test_target_has_registers): Move it to
1306 target.c.
1307 (test_target_has_stack): Likewise.
1308 (test_target_has_memory): Likewise.
1309 (test_target_prepare_to_store): Likewise.
1310 (test_target_store_registers): Likewise.
1311 (test_target_ops): Likewise.
1312 * regcache.c: Include selftest-arch.h and gdbthread.h.
1313 (target_ops_no_register): New class.
1314 (test_target_fetch_registers): New.
1315 (test_target_store_registers): New.
1316 (test_target_xfer_partial): New.
1317 (readwrite_regcache): New.
1318 (cooked_read_test): New.
1319 (_initialize_regcache): Register the test.
1320 * target.c: (test_target_has_registers): Moved from
1321 gdbarch-selftests.c.
1322 (test_target_has_stack): Likewise.
1323 (test_target_has_memory): Likewise.
1324 (test_target_prepare_to_store): Likewise.
1325 (test_target_store_registers): Likewise.
1326 * target.h (test_target_ops): New class.
1327
1328 2017-11-24 Alan Hayward <alan.hayward@arm.com>
1329
1330 * aarch64-tdep.c (_initialize_aarch64_tdep): Add target desc
1331 selftest.
1332
1333 2017-11-24 Alan Hayward <alan.hayward@arm.com>
1334
1335 * aarch64-tdep.c (_initialize_aarch64_tdep): Remove init.
1336 * arch/aarch64.c (aarch64_create_target_description): Create
1337 new target description.
1338 * features/Makefile: Add new files.
1339 * features/aarch64.c: Remove file.
1340 * features/aarch64-core.c: New autogenerated file.
1341 * features/aarch64-fpu.c: New autogenerated file.
1342 * target-descriptions.c (maint_print_c_tdesc_cmd): Check for aarch64.
1343
1344 2017-11-24 Alan Hayward <alan.hayward@arm.com>
1345
1346 * Makefile.in: Add new files.
1347 * aarch64-linux-nat.c (aarch64_linux_read_description): Call
1348 aarch64_read_description.
1349 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
1350 Call aarch64_read_description.
1351 * aarch64-tdep.c (aarch64_read_description): New function.
1352 (aarch64_gdbarch_init): Call aarch64_read_description.
1353 * aarch64-tdep.h (aarch64_read_description): New function.
1354 * arch/aarch64.c: New file.
1355 * configure.tgt: Add new files.
1356
1357 2017-11-24 Yao Qi <yao.qi@linaro.org>
1358
1359 * mi/mi-main.c (register_changed_p): Update.
1360 * value.c (value_contents_bits_eq): Change return type.
1361 (value_contents_eq): Likewise.
1362 * value.h: Update comments.
1363
1364 2017-11-24 Yao Qi <yao.qi@linaro.org>
1365
1366 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Remove
1367 local 'changed'. Remove error.
1368 (register_changed_p): Change return type to bool.
1369
1370 2017-11-24 Yao Qi <yao.qi@linaro.org>
1371
1372 * arch/tic6x.c: New file.
1373 * arch/tic6x.h: New file.
1374 * features/Makefile (FEATURE_XMLFILES): Add tic6x-c6xp.xml,
1375 tic6x-core.xml and tic6x-gp.xml.
1376 * features/tic6x-c6xp.c: Generated.
1377 * features/tic6x-core.c: Generated.
1378 * features/tic6x-gp.c: Generated.
1379 * target-descriptions.c (maint_print_c_tdesc_cmd): Match
1380 "tic6x-".
1381
1382 2017-11-23 Simon Marchi <simon.marchi@ericsson.com>
1383
1384 * mi/mi-main.c (list_available_thread_groups): Change map value
1385 type to std::vector.
1386
1387 2017-11-23 Simon Marchi <simon.marchi@ericsson.com>
1388
1389 * osdata.c (osdata_end_column, get_osdata): Remove std::move.
1390
1391 2017-11-23 Simon Marchi <simon.marchi@ericsson.com>
1392
1393 * varobj.c (struct varobj_dynamic) <children_requested_>: Rename
1394 back to...
1395 <children_requested>: ... this.
1396 (varobj_get_num_children, varobj_update): Adjust.
1397
1398 2017-11-23 Simon Marchi <simon.marchi@ericsson.com>
1399
1400 * ada-varobj.c (ada_value_is_changeable_p): Change int to bool where applicable.
1401 (ada_value_has_mutated): Likewise.
1402 * c-varobj.c (varobj_is_anonymous_child): Likewise.
1403 (c_is_path_expr_parent): Likewise.
1404 * mi/mi-cmd-var.c (varobj_update_one): Likewise.
1405 (mi_cmd_var_set_frozen): Likewise.
1406 (mi_cmd_var_update_iter): Likewise.
1407 (mi_cmd_var_update): Likewise.
1408 * varobj.c (pretty_printing): Likewise.
1409 (varobj_enable_pretty_printing): Likewise.
1410 (struct varobj_root) <floating, is_valid>: Likewise.
1411 (struct varobj_dynamic) <children_requested>: Likewise.
1412 (delete_variable): Likewise.
1413 (delete_variable_1): Likewise.
1414 (install_variable): Likewise.
1415 (update_type_if_necessary): Likewise.
1416 (install_new_value): Likewise.
1417 (value_of_root): Likewise.
1418 (is_root_p): Likewise.
1419 (varobj_create): Likewise.
1420 (varobj_delete): Likewise.
1421 (varobj_has_more): Likewise.
1422 (varobj_set_frozen): Likewise.
1423 (varobj_get_frozen): Likewise.
1424 (install_dynamic_child): Likewise.
1425 (dynamic_varobj_has_child_method): Likewise.
1426 (update_dynamic_varobj_children): Likewise.
1427 (varobj_get_num_children): Likewise.
1428 (varobj_list_children): Likewise.
1429 (is_path_expr_parent): Likewise.
1430 (varobj_default_is_path_expr_parent): Likewise.
1431 (varobj_is_dynamic_p): Likewise.
1432 (varobj_set_value): Likewise.
1433 (varobj_value_has_mutated): Likewise.
1434 (varobj_update): Likewise.
1435 (check_scope): Likewise.
1436 (value_of_root_1): Likewise.
1437 (varobj_value_get_print_value): Likewise.
1438 (varobj_editable_p): Likewise.
1439 (varobj_value_is_changeable_p): Likewise.
1440 (varobj_floating_p): Likewise.
1441 (varobj_default_value_is_changeable_p): Likewise.
1442 (varobj_invalidate_iter): Likewise.
1443 * varobj.h (struct varobj_update_result) <type_changed,
1444 children_changed, changed, value_installed>: Likewise.
1445 (struct varobj) <updated, frozen, not_fetched>: Likewise.
1446 (struct lang_varobj_ops) <value_is_changeable_p,
1447 value_has_mutated, is_path_expr_parent>: Likewise.
1448 (varobj_delete): Likewise.
1449 (varobj_set_frozen): Likewise.
1450 (varobj_get_frozen): Likewise.
1451 (varobj_set_value): Likewise.
1452 (varobj_update): Likewise.
1453 (varobj_editable_p): Likewise.
1454 (varobj_floating_p): Likewise.
1455 (varobj_has_more): Likewise.
1456 (varobj_is_dynamic_p): Likewise.
1457 (varobj_default_value_is_changeable_p): Likewise.
1458 (varobj_value_is_changeable_p): Likewise.
1459 (varobj_is_anonymous_child): Likewise.
1460 (varobj_default_is_path_expr_parent): Likewise.
1461
1462 2017-11-22 Sergio Durigan Junior <sergiodj@redhat.com>
1463
1464 * dtrace-probe.c (struct probe_ops dtrace_probe_ops): Delete.
1465 (struct dtrace_probe_arg) <dtrace_probe_arg>: New constructor.
1466 <type_str>: Convert to 'std::string'.
1467 <expr>: Convert to 'expression_up'.
1468 (dtrace_probe_arg_s): Delete type and VEC.
1469 (dtrace_probe_enabler_s): Likewise.
1470 (struct dtrace_probe): Replace by...
1471 (class dtrace_static_probe_ops): ...this and...
1472 (class dtrace_probe): ...this.
1473 (dtrace_probe_is_linespec): Rename to...
1474 (dtrace_static_probe_ops::is_linespec): ...this. Adjust code
1475 to reflect change.
1476 (dtrace_process_dof_probe): Use 'std::vector' instead of VEC.
1477 Adjust code. Create new instance of 'dtrace_probe'.
1478 (dtrace_build_arg_exprs): Rename to...
1479 (dtrace_probe::build_arg_exprs): ...this. Adjust code to
1480 reflect change.
1481 (dtrace_get_probes): Rename to...
1482 (dtrace_static_probe_ops::get_probes): ...this. Adjust code
1483 to reflect change.
1484 (dtrace_get_arg): Rename to...
1485 (dtrace_probe::get_arg_by_number): ...this. Adjust code to
1486 reflect change.
1487 (dtrace_probe_is_enabled): Rename to...
1488 (dtrace_probe::is_enabled): ...this. Adjust code to reflect
1489 change.
1490 (dtrace_get_probe_address): Rename to...
1491 (dtrace_probe::get_relocated_address): ...this. Adjust code
1492 to reflect change.
1493 (dtrace_get_probe_argument_count): Rename to...
1494 (dtrace_probe::get_argument_count): ...this. Adjust code to
1495 reflect change.
1496 (dtrace_can_evaluate_probe_arguments): Rename to...
1497 (dtrace_probe::can_evaluate_arguments): ...this. Adjust code
1498 to reflect change.
1499 (dtrace_evaluate_probe_argument): Rename to...
1500 (dtrace_probe::evaluate_argument): ...this. Adjust code to
1501 reflect change.
1502 (dtrace_compile_to_ax): Rename to...
1503 (dtrace_probe::compile_to_ax): ...this. Adjust code to
1504 reflect change.
1505 (dtrace_probe_destroy): Delete.
1506 (dtrace_type_name): Rename to...
1507 (dtrace_static_probe_ops::type_name): ...this. Adjust code to
1508 reflect change.
1509 (dtrace_probe::get_static_ops): New method.
1510 (dtrace_gen_info_probes_table_header): Rename to...
1511 (dtrace_static_probe_ops::gen_info_probes_table_header):
1512 ...this. Adjust code to reflect change.
1513 (dtrace_gen_info_probes_table_values): Rename to...
1514 (dtrace_probe::gen_info_probes_table_values): ...this. Adjust
1515 code to reflect change.
1516 (dtrace_enable_probe): Rename to...
1517 (dtrace_probe::enable_probe): ...this. Adjust code to reflect
1518 change.
1519 (dtrace_disable_probe): Rename to...
1520 (dtrace_probe::disable_probe): ...this. Adjust code to reflect
1521 change.
1522 (struct probe_ops dtrace_probe_ops): Delete.
1523 (info_probes_dtrace_command): Call 'info_probes_for_spops'
1524 instead of 'info_probes_for_ops'.
1525 (_initialize_dtrace_probe): Use 'all_static_probe_ops' instead
1526 of 'all_probe_ops'.
1527
1528 2017-11-22 Sergio Durigan Junior <sergiodj@redhat.com>
1529 Simon Marchi <simark@simark.ca>
1530
1531 * stap-probe.c (struct probe_ops stap_probe_ops): Delete
1532 variable.
1533 (struct stap_probe_arg) <stap_probe_arg>: New constructor.
1534 <aexpr>: Change type to 'expression_up'.
1535 (stap_probe_arg_s): Delete type and VEC.
1536 (struct stap_probe): Delete. Replace by...
1537 (class stap_static_probe_ops): ...this and...
1538 (class stap_probe): ...this. Rename variables to add 'm_'
1539 prefix. Do not use 'union' for arguments anymore.
1540 (stap_get_expected_argument_type): Receive probe name instead
1541 of 'struct stap_probe'. Adjust code.
1542 (stap_parse_probe_arguments): Rename to...
1543 (stap_probe::parse_arguments): ...this. Adjust code to
1544 reflect change.
1545 (stap_get_probe_address): Rename to...
1546 (stap_probe::get_relocated_address): ...this. Adjust code
1547 to reflect change.
1548 (stap_get_probe_argument_count): Rename to...
1549 (stap_probe::get_argument_count): ...this. Adjust code
1550 to reflect change.
1551 (stap_get_arg): Rename to...
1552 (stap_probe::get_arg_by_number'): ...this. Adjust code to
1553 reflect change.
1554 (can_evaluate_probe_arguments): Rename to...
1555 (stap_probe::can_evaluate_arguments): ...this. Adjust code
1556 to reflect change.
1557 (stap_evaluate_probe_argument): Rename to...
1558 (stap_probe::evaluate_argument): ...this. Adjust code
1559 to reflect change.
1560 (stap_compile_to_ax): Rename to...
1561 (stap_probe::compile_to_ax): ...this. Adjust code to
1562 reflect change.
1563 (stap_probe_destroy): Delete.
1564 (stap_modify_semaphore): Adjust comment.
1565 (stap_set_semaphore): Rename to...
1566 (stap_probe::set_semaphore): ...this. Adjust code to reflect
1567 change.
1568 (stap_clear_semaphore): Rename to...
1569 (stap_probe::clear_semaphore): ...this. Adjust code to
1570 reflect change.
1571 (stap_probe::get_static_ops): New method.
1572 (handle_stap_probe): Adjust code to create instance of
1573 'stap_probe'.
1574 (stap_get_probes): Rename to...
1575 (stap_static_probe_ops::get_probes): ...this. Adjust code to
1576 reflect change.
1577 (stap_probe_is_linespec): Rename to...
1578 (stap_static_probe_ops::is_linespec): ...this. Adjust code to
1579 reflect change.
1580 (stap_type_name): Rename to...
1581 (stap_static_probe_ops::type_name): ...this. Adjust code to
1582 reflect change.
1583 (stap_gen_info_probes_table_header): Rename to...
1584 (stap_static_probe_ops::gen_info_probes_table_header):
1585 ...this. Adjust code to reflect change.
1586 (stap_gen_info_probes_table_values): Rename to...
1587 (stap_probe::gen_info_probes_table_values): ...this. Adjust
1588 code to reflect change.
1589 (struct probe_ops stap_probe_ops): Delete.
1590 (info_probes_stap_command): Use 'info_probes_for_spops'
1591 instead of 'info_probes_for_ops'.
1592 (_initialize_stap_probe): Use 'all_static_probe_ops' instead
1593 of 'all_probe_ops'.
1594
1595 2017-11-22 Sergio Durigan Junior <sergiodj@redhat.com>
1596
1597 * break-catch-throw.c (fetch_probe_arguments): Use
1598 'probe.prob' instead of 'probe.probe'.
1599 * breakpoint.c (create_longjmp_master_breakpoint): Call
1600 'can_evaluate_arguments' and 'get_relocated_address' methods
1601 from probe.
1602 (create_exception_master_breakpoint): Likewise.
1603 (add_location_to_breakpoint): Use 'sal->prob' instead of
1604 'sal->probe'.
1605 (bkpt_probe_insert_location): Call 'set_semaphore' method from
1606 probe.
1607 (bkpt_probe_remove_location): Likewise, for 'clear_semaphore'.
1608 * elfread.c (elf_get_probes): Use 'static_probe_ops' instead
1609 of 'probe_ops'.
1610 (probe_key_free): Call 'delete' on probe.
1611 (check_exception_resume): Use 'probe.prob' instead of
1612 'probe.probe'.
1613 * location.c (string_to_event_location_basic): Call
1614 'probe_linespec_to_static_ops'.
1615 * probe.c (class any_static_probe_ops): New class.
1616 (any_static_probe_ops any_static_probe_ops): New variable.
1617 (parse_probes_in_pspace): Receive 'static_probe_ops' as
1618 argument. Adjust code to reflect change.
1619 (parse_probes): Use 'static_probe_ops' instead of
1620 'probe_ops'. Adjust code to reflect change.
1621 (find_probes_in_objfile): Call methods to get name and
1622 provider from probe.
1623 (find_probe_by_pc): Use 'result.prob' instead of
1624 'result.probe'. Call 'get_relocated_address' method from
1625 probe.
1626 (collect_probes): Adjust comment and argument list to receive
1627 'static_probe_ops' instead of 'probe_ops'. Adjust code to
1628 reflect change. Call necessary methods from probe.
1629 (compare_probes): Call methods to get name and provider from
1630 probes.
1631 (gen_ui_out_table_header_info): Receive 'static_probe_ops'
1632 instead of 'probe_ops'. Use 'std::vector' instead of VEC,
1633 adjust code accordingly.
1634 (print_ui_out_not_applicables): Likewise.
1635 (info_probes_for_ops): Rename to...
1636 (info_probes_for_spops): ...this. Receive 'static_probe_ops'
1637 as argument instead of 'probe_ops'. Adjust code. Call
1638 necessary methods from probe.
1639 (info_probes_command): Use 'info_probes_for_spops'.
1640 (enable_probes_command): Pass correct argument to
1641 'collect_probes'. Call methods from probe.
1642 (disable_probes_command): Likewise.
1643 (get_probe_address): Move to 'any_static_probe_ops::get_address'.
1644 (get_probe_argument_count): Move to
1645 'any_static_probe_ops::get_argument_count'.
1646 (can_evaluate_probe_arguments): Move to
1647 'any_static_probe_ops::can_evaluate_arguments'.
1648 (evaluate_probe_argument): Move to
1649 'any_static_probe_ops::evaluate_argument'.
1650 (probe_safe_evaluate_at_pc): Use 'probe.prob' instead of
1651 'probe.probe'.
1652 (probe_linespec_to_ops): Rename to...
1653 (probe_linespec_to_static_ops): ...this. Adjust code.
1654 (probe_any_is_linespec): Rename to...
1655 (any_static_probe_ops::is_linespec): ...this.
1656 (probe_any_get_probes): Rename to...
1657 (any_static_probe_ops::get_probes): ...this.
1658 (any_static_probe_ops::type_name): New method.
1659 (any_static_probe_ops::gen_info_probes_table_header): New
1660 method.
1661 (compute_probe_arg): Use 'pc_probe.prob' instead of
1662 'pc_probe.probe'. Call methods from probe.
1663 (compile_probe_arg): Likewise.
1664 (std::vector<const probe_ops *> all_probe_ops): Delete.
1665 (std::vector<const static_probe_ops *> all_static_probe_ops):
1666 New variable.
1667 (_initialize_probe): Use 'all_static_probe_ops' instead of
1668 'all_probe_ops'.
1669 * probe.h (struct info_probe_column) <field_name>: Delete
1670 extraneous newline
1671 (info_probe_column_s): Delete type and VEC.
1672 (struct probe_ops): Delete. Replace with...
1673 (class static_probe_ops): ...this and...
1674 (clas probe): ...this.
1675 (struct bound_probe) <bound_probe>: Delete extraneous
1676 newline. Adjust constructor to receive 'probe' instead of
1677 'struct probe'.
1678 <probe>: Rename to...
1679 <prob>: ...this. Delete extraneous newline.
1680 <objfile>: Delete extraneous newline.
1681 (register_probe_ops): Delete unused prototype.
1682 (info_probes_for_ops): Rename to...
1683 (info_probes_for_spops): ...this. Adjust comment.
1684 (get_probe_address): Move to 'probe::get_address'.
1685 (get_probe_argument_count): Move to
1686 'probe::get_argument_count'.
1687 (can_evaluate_probe_arguments): Move to
1688 'probe::can_evaluate_arguments'.
1689 (evaluate_probe_argument): Move to 'probe::evaluate_argument'.
1690 * solib-svr4.c (struct svr4_info): Adjust comment.
1691 (struct probe_and_action) <probe>: Rename to...
1692 <prob>: ...this.
1693 (register_solib_event_probe): Receive 'probe' instead of
1694 'struct probe' as argument. Use 'prob' instead of 'probe'
1695 when applicable.
1696 (solib_event_probe_action): Call 'get_argument_count' method
1697 from probe. Adjust comment.
1698 (svr4_handle_solib_event): Adjust comment. Call
1699 'evaluate_argument' method from probe.
1700 (svr4_create_probe_breakpoints): Call 'get_relocated_address'
1701 from probe.
1702 (svr4_create_solib_event_breakpoints): Use 'probe' instead of
1703 'struct probe'. Call 'can_evaluate_arguments' from probe.
1704 * symfile.h: Forward declare 'class probe' instead of 'struct
1705 probe'.
1706 * symtab.h: Likewise.
1707 (struct symtab_and_line) <probe>: Rename to...
1708 <prob>: ...this.
1709 * tracepoint.c (start_tracing): Use 'prob' when applicable.
1710 Call probe methods.
1711 (stop_tracing): Likewise.
1712
1713 2017-11-22 Joel Brobecker <brobecker@adacore.com>
1714
1715 * ravenscar-thread.c (ravenscar_inferior_created): Remove
1716 trailing newline at end of string in call to warning.
1717
1718 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
1719
1720 * osdata.h: Include vector isntead of vec.h.
1721 (osdata_column_s): Remove typedef.
1722 (struct osdata_column): Add constructor.
1723 <name, value>: Change type to std::string.
1724 (DEF_VEC_O (osdata_column_s)): Remove.
1725 (osdata_item_s): Remove typedef.
1726 (struct osdata_item) <columns>: Change type to std::vector.
1727 (DEF_VEC_O (osdata_item_s)): Remove.
1728 (struct osdata): Add constructor.
1729 <type>: Change type to std::string.
1730 <items>: Change type to std::vector.
1731 (osdata_p): Remove typedef.
1732 (DEF_VEC_P (osdata_p)): Remove.
1733 (osdata_parse): Return a unique_ptr.
1734 (osdata_free): Remove.
1735 (make_cleanup_osdata_free): Remove.
1736 (get_osdata): Return a unique_ptr.
1737 (get_osdata_column): Return pointer to std::string, take a
1738 reference to osdata_item as parameter.
1739 * osdata.c (struct osdata_parsing_data) <osdata>: Change type to
1740 unique_ptr.
1741 <property_name>: Change type to std::string.
1742 (osdata_start_osdata): Allocate osdata with new and adjust.
1743 (osdata_start_item): Adjust.
1744 (osdata_start_column): Adjust.
1745 (osdata_end_column): Adjust.
1746 (clear_parsing_data): Remove.
1747 (osdata_parse): Return a unique_ptr and adjust, remove cleanup.
1748 (osdata_item_clear): Remove.
1749 (get_osdata): return a unique_ptr and adjust.
1750 (get_osdata_column): Return a pointer to std::string and adjust.
1751 (info_osdata): Adjust.
1752 * mi/mi-main.c: Include <map>.
1753 (free_vector_of_osdata_items): Remove.
1754 (list_available_thread_groups): Adjust, use std::map instead of
1755 splay tree.
1756
1757 2017-11-22 Simon Marchi <simon.marchi@ericsson.com>
1758
1759 * stack.c (iterate_over_block_locals): Add LOC_OPTIMIZED_OUT
1760 case in switch.
1761
1762 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
1763
1764 * varobj.h (DEF_VEC_P (varobj_p)): Remove.
1765
1766 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
1767
1768 * varobj.h (struct varobj_update_result): Add constructor, add
1769 move constructor, disable copy and assign, initialize fields.
1770 <newobj>: Change type to std::vector.
1771 (varobj_update): Return std::vector.
1772 * varobj.c (install_dynamic_child): Change VEC parameters to
1773 std::vector and adjust.
1774 (update_dynamic_varobj_children): Likewise.
1775 (varobj_update): Return std::vector and adjust.
1776 * mi/mi-cmd-var.c (varobj_update_one): Adjust to vector changes.
1777
1778 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
1779
1780 * varobj.h (struct varobj) <parent>: Remove const.
1781 <children>: Change type to std::vector.
1782 (varobj_list_children): Return std::vector const reference.
1783 (varobj_restrict_range): Change parameter type to std::vector
1784 const reference.
1785 * varobj.c (varobj_has_more): Adjust.
1786 (varobj_restrict_range): Change parameter type to std::vector
1787 const reference and adjust.
1788 (install_dynamic_child): Adjust.
1789 (update_dynamic_varobj_children): Adjust.
1790 (varobj_list_children): Return std::vector const reference and
1791 adjust.
1792 (varobj_add_child): Adjust.
1793 (update_type_if_necessary): Adjust.
1794 (varobj_update): Adjust.
1795 (delete_variable_1): Adjust.
1796 * ada-varobj.c (ada_value_has_mutated): Adjust.
1797 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust.
1798
1799 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
1800
1801 * varobj.h (struct varobj): Add constructor and destructor,
1802 initialize fields.
1803 * varobj.c (struct varobj_root): Initialize fields.
1804 (struct varobj_dynamic): Initialize fields.
1805 (varobj_create): Use unique_ptr instead of cleanup. Create
1806 varobj with new instead of new_root_variable.
1807 (delete_variable_1): Free variable with delete instead of
1808 free_variable.
1809 (create_child_with_value): Create variable with new instead of
1810 new_variable.
1811 (varobj::varobj): New.
1812 (varobj::~varobj): New (body mostly coming from free_variable).
1813 (new_variable): Remove.
1814 (free_variable): Remove.
1815 (do_free_variable_cleanup): Remove.
1816 (make_cleanup_free_variable): Remove.
1817
1818 2017-11-22 Ulrich Weigand <uweigand@de.ibm.com>
1819
1820 * core-regset.c: Remove file.
1821 * Makefile.in (ALLDEPFILES): Remove core-regset.c.
1822
1823 2017-11-22 Ulrich Weigand <uweigand@de.ibm.com>
1824
1825 * NEWS: Document use of GNU MPFR.
1826 * README: Likewise.
1827
1828 * Makefile.in (LIBMPFR): Add define.
1829 (CLIBS): Add $(LIBMPFR).
1830 * configure.ac: Add --with-mpfr configure option.
1831 * configure: Regenerate.
1832 * config.in: Regenerate.
1833
1834 * target-float.c [HAVE_LIBMPFR]: Include <mpfr.h>.
1835 (class mpfr_float_ops): New type.
1836 (mpfr_float_ops::from_target): Two new overloaded functions.
1837 (mpfr_float_ops::to_target): Likewise.
1838 (mpfr_float_ops::to_string): New function.
1839 (mpfr_float_ops::from_string): Likewise.
1840 (mpfr_float_ops::to_longest): Likewise.
1841 (mpfr_float_ops::from_longest): Likewise.
1842 (mpfr_float_ops::from_ulongest): Likewise.
1843 (mpfr_float_ops::to_host_double): Likewise.
1844 (mpfr_float_ops::from_host_double): Likewise.
1845 (mpfr_float_ops::convert): Likewise.
1846 (mpfr_float_ops::binop): Likewise.
1847 (mpfr_float_ops::compare): Likewise.
1848 (get_target_float_ops): Use mpfr_float_ops if available.
1849
1850 2017-11-22 Ulrich Weigand <uweigand@de.ibm.com>
1851
1852 * target-float.c: Do not include <math.h>.
1853 Include <cmath> and <limits>.
1854 (DOUBLEST): Do not define.
1855 (class target_float_ops): New type.
1856 (class host_float_ops): New templated type.
1857 (class decimal_float_ops): New type.
1858
1859 (floatformat_to_doublest): Rename to ...
1860 (host_float_ops<T>::from_target): ... this. Use template type T
1861 instead of DOUBLEST. Use C++ math routines. Update recursive calls.
1862 (host_float_ops<T>::from_target): New overload using a type argument.
1863 (floatformat_from_doublest): Rename to ...
1864 (host_float_ops<T>::to_target): ... this. Use template type T
1865 instead of DOUBLEST. Use C++ math routines. Update recursive calls.
1866 (host_float_ops<T>::to_target): New overload using a type argument.
1867 (floatformat_printf_format): New function.
1868 (struct printf_length_modifier): New templated type.
1869 (floatformat_to_string): Rename to ...
1870 (host_float_ops<T>::to_string): ... this. Use type instead of
1871 floatformat argument. Use floatformat_printf_format and
1872 printf_length_modifier. Remove special handling of invalid numbers,
1873 infinities and NaN (moved to target_float_to_string).
1874 (struct scanf_length_modifier): New templated type.
1875 (floatformat_from_string): Rename to ...
1876 (host_float_ops<T>::from_string): ... this. Use type instead of
1877 floatformat argument. Use scanf_length_modifier.
1878 (floatformat_to_longest): Rename to ...
1879 (host_float_ops<T>::to_longest): ... this. Use type instead of
1880 floatformat argument. Handle out-of-range values deterministically.
1881 (floatformat_from_longest): Rename to ...
1882 (host_float_ops<T>::from_longest): ... this. Use type instead of
1883 floatformat argument.
1884 (floatformat_from_ulongest): Rename to ...
1885 (host_float_ops<T>::from_ulongest): ... this. Use type instead of
1886 floatformat argument.
1887 (floatformat_to_host_double): Rename to ...
1888 (host_float_ops<T>::to_host_double): ... this. Use type instead of
1889 floatformat argument.
1890 (floatformat_from_host_double): Rename to ...
1891 (host_float_ops<T>::from_host_double): ... this. Use type instead of
1892 floatformat argument.
1893 (floatformat_convert): Rename to ...
1894 (host_float_ops<T>::convert): ... this. Use type instead of
1895 floatformat arguments. Remove handling of no-op conversions.
1896 (floatformat_binop): Rename to ...
1897 (host_float_ops<T>::binop): ... this. Use type instead of
1898 floatformat arguments.
1899 (floatformat_compare): Rename to ...
1900 (host_float_ops<T>::compare): ... this. Use type instead of
1901 floatformat arguments.
1902
1903 (match_endianness): Use type instead of length/byte_order arguments.
1904 (set_decnumber_context): Likewise.
1905 (decimal_from_number): Likewise. Update calls.
1906 (decimal_to_number): Likewise.
1907 (decimal_is_zero): Likewise. Update calls. Move to earlier in file.
1908 (decimal_float_ops::to_host_double): New dummy function.
1909 (decimal_float_ops::from_host_double): Likewise.
1910 (decimal_to_string): Rename to ...
1911 (decimal_float_ops::to_string): ... this. Use type instead of
1912 length/byte_order arguments. Update calls.
1913 (decimal_from_string): Rename to ...
1914 (decimal_float_ops::from_string): ... this. Use type instead of
1915 length/byte_order arguments. Update calls.
1916 (decimal_from_longest): Rename to ...
1917 (decimal_float_ops::from_longest): ... this. Use type instead of
1918 length/byte_order arguments. Update calls.
1919 (decimal_from_ulongest): Rename to ...
1920 (decimal_float_ops::from_ulongest): ... this. Use type instead of
1921 length/byte_order arguments. Update calls.
1922 (decimal_to_longest): Rename to ...
1923 (decimal_float_ops::to_longest): ... this. Use type instead of
1924 length/byte_order arguments. Update calls.
1925 (decimal_binop): Rename to ...
1926 (decimal_float_ops::binop): ... this. Use type instead of
1927 length/byte_order arguments. Update calls.
1928 (decimal_compare): Rename to ...
1929 (decimal_float_ops::compare): ... this. Use type instead of
1930 length/byte_order arguments. Update calls.
1931 (decimal_convert): Rename to ...
1932 (decimal_float_ops::convert): ... this. Use type instead of
1933 length/byte_order arguments. Update calls.
1934
1935 (target_float_same_category_p): New function.
1936 (target_float_same_format_p): Likewise.
1937 (target_float_format_length): Likewise.
1938 (enum target_float_ops_kind): New type.
1939 (get_target_float_ops_kind): New function.
1940 (get_target_float_ops): Three new overloaded functions.
1941
1942 (target_float_is_zero): Update call.
1943 (target_float_to_string): Add special handling of invalid numbers,
1944 infinities and NaN (moved from floatformat_to_string). Use
1945 target_float_ops callback.
1946 (target_float_from_string): Use target_float_ops callback.
1947 (target_float_to_longest): Likewise.
1948 (target_float_from_longest): Likewise.
1949 (target_float_from_ulongest): Likewise.
1950 (target_float_to_host_double): Likewise.
1951 (target_float_from_host_double): Likewise.
1952 (target_float_convert): Add special case for no-op conversions.
1953 Use target_float_ops callback.
1954 (target_float_binop): Use target_float_ops callback.
1955 (target_float_compare): Likewise.
1956
1957 2017-11-22 Yao Qi <yao.qi@linaro.org>
1958
1959 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use strcpy.
1960
1961 2017-11-22 Yao Qi <yao.qi@linaro.org>
1962
1963 * cli/cli-decode.c (help_list): Use memcpy instead of strncpy.
1964 * cp-namespace.c (cp_lookup_transparent_type_loop): Likewise.
1965
1966 2017-11-21 Jerome Guitton <guitton@adacore.com>
1967
1968 * ravenscar-thread.c (ravenscar_wait): Update inferior ptid
1969 with event ptid from the lower layer before doing the
1970 ravenscar-specific update.
1971
1972 2017-11-21 Joel Brobecker <brobecker@adacore.com>
1973
1974 * ravenscar-thread.c (is_ravenscar_task): Also verify that
1975 the ptid's TID is nonzero.
1976
1977 2017-11-21 Joel Brobecker <brobecker@adacore.com>
1978
1979 * ada-lang.h (ada_get_tcb_types_info): Add declaration.
1980 * ada-tasks.c (ada_get_tcb_types_info): Renames get_tcb_types_info.
1981 Make non-static. Change return type to char *. Adjust code
1982 accordingly. Rewrite the function's documentation.
1983 (read_atcb): Adjust call to get_tcb_types_info accordingly.
1984 * ravenscar-thread.c (ravenscar_inferior_created): Check that
1985 we have enough debugging information in the runtime to support
1986 Ada task debugging before we enable the ravenscar-thread layer.
1987
1988 2017-11-21 Joel Brobecker <brobecker@adacore.com>
1989
1990 * ada-lang.h (ada_get_task_info_from_ptid): Add declaration.
1991 * ada-tasks.c (ada_get_task_info_from_ptid): New function.
1992 * ravenscar-thread.c: Add into comment.
1993 (base_magic_null_ptid): Delete.
1994 (base_ptid): Change documentation.
1995 (ravenscar_active_task): Renames ravenscar_running_thread.
1996 All callers updated throughout.
1997 (is_ravenscar_task, ravenscar_get_thread_base_cpu): New function.
1998 (ravenscar_task_is_currently_active): Likewise.
1999 (get_base_thread_from_ravenscar_task): Ditto.
2000 (ravenscar_update_inferior_ptid): Adjust to handle multiple CPUs.
2001 (ravenscar_runtime_initialized): Likewise.
2002 (get_running_thread_id): Add new parameter "cpu". Adjust
2003 implementation to handle this new parameter.
2004 (ravenscar_fetch_registers): Small adjustment to use
2005 is_ravenscar_task and ravenscar_task_is_currently_active in
2006 order to decide whether to use the target beneath or this
2007 module's arch_ops.
2008 (ravenscar_store_registers, ravenscar_prepare_to_store): Likewise.
2009 (ravenscar_stopped_by_sw_breakpoint): Use
2010 get_base_thread_from_ravenscar_task to get the underlying
2011 thread, rather than using base_ptid.
2012 (ravenscar_stopped_by_hw_breakpoint, ravenscar_stopped_by_watchpoint)
2013 (ravenscar_stopped_data_address, ravenscar_core_of_thread):
2014 Likewise.
2015 (ravenscar_inferior_created): Do not set base_magic_null_ptid.
2016
2017 2017-11-21 Joel Brobecker <brobecker@adacore.com>
2018
2019 * ada-lang.h (struct ada_task_info) <base_cpu>: New field.
2020 * ada-lang.c (struct atcb_fieldno) <base_cpu>: New field.
2021 (get_tcb_types_info): Set fieldnos.base_cpu.
2022 (read_atcb): Set task_info->base_cpu.
2023 (info_task): Print "Base CPU" info if set by runtime.
2024
2025 2017-11-21 Joel Brobecker <brobecker@adacore.com>
2026
2027 * ravenscar-thread.c (ravenscar_stopped_by_sw_breakpoint)
2028 (ravenscar_stopped_by_hw_breakpoint, ravenscar_stopped_by_watchpoint)
2029 (ravenscar_stopped_data_address, ravenscar_core_of_thread):
2030 New functions.
2031 (init_ravenscar_thread_ops): Set the to_stopped_by_sw_breakpoint,
2032 to_stopped_by_hw_breakpoint, to_stopped_by_watchpoint,
2033 to_stopped_data_address and to_core_of_thread fields of
2034 ravenscar_ops.
2035
2036 2017-11-21 Ulrich Weigand <uweigand@de.ibm.com>
2037
2038 * ppc-tdep.h (enum powerpc_long_double_abi): New data type.
2039 (struct gdbarch_tdep): New member long_double_abi.
2040 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize long_double_abi
2041 member of tdep struct based on Tag_GNU_Power_ABI_FP attribute.
2042 * ppc-linux-tdep.c (ppc_linux_init_abi): Install long double data
2043 format depending on long_double_abi tdep member.
2044 (ppc_floatformat_for_type): Handle __ibm128 type.
2045
2046 2017-11-20 Simon Marchi <simon.marchi@polymtl.ca>
2047
2048 * darwin-nat.c (set_enable_mach_exceptions): Constify parameter.
2049
2050 2017-11-21 Pedro Alves <palves@redhat.com>
2051
2052 * dwarf2read.c (mapped_index::find_name_components_bounds)
2053 <completion mode, upper bound>: Use std::lower_bound instead of
2054 std::upper_bound.
2055 (test_mapped_index_find_name_component_bounds): Remove incorrect
2056 "t1_fund" from expected symbols.
2057
2058 2017-11-21 Pedro Alves <palves@redhat.com>
2059
2060 * dwarf2read.c (mapped_index::name_components_casing): New field.
2061 (mapped_index) <build_name_components,
2062 find_name_components_bounds): Declare new methods.
2063 (mapped_index::find_name_components_bounds)
2064 (mapped_index::build_name_components): New methods, factored out
2065 from dw2_expand_symtabs_matching_symbol.
2066 (check_find_bounds_finds)
2067 (test_mapped_index_find_name_component_bounds): New.
2068 (run_test): Rename to ...
2069 (test_dw2_expand_symtabs_matching_symbol): ... this.
2070 (run_test): Reimplement.
2071
2072 2017-11-21 Pedro Alves <palves@redhat.com>
2073
2074 * cp-name-parser.y (cp_ident_is_alpha, cp_ident_is_alnum): New.
2075 (symbol_end): Use cp_ident_is_alnum.
2076 (yylex): Use cp_ident_is_alpha and cp_ident_is_alnum.
2077 * dwarf2read.c (make_sort_after_prefix_name): New function.
2078 (dw2_expand_symtabs_matching_symbol): Use it.
2079 (test_symbols): Add more symbols.
2080 (run_test): Add tests.
2081
2082 2017-11-17 Tom Tromey <tom@tromey.com>
2083
2084 * symtab.h (enum symbol_subclass_kind): New.
2085 (struct symbol) <is_cplus_template_function, is_rust_vtable>:
2086 Remove.
2087 <subclass>: New member.
2088 (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): Update.
2089 * rust-lang.c (rust_get_trait_object_pointer): Update.
2090 * dwarf2read.c (read_func_scope): Update.
2091 (read_variable): Update.
2092
2093 2017-11-17 Tom Tromey <tom@tromey.com>
2094
2095 * dwarf2read.c (read_func_scope): Update.
2096 * symtab.h (struct template_symbol): Derive from symbol.
2097 <base>: Remove.
2098
2099 2017-11-17 Tom Tromey <tom@tromey.com>
2100
2101 * symtab.h (struct symbol) <is_rust_vtable>: New member.
2102 (struct rust_vtable_symbol): New.
2103 (find_symbol_at_address): Declare.
2104 * symtab.c (find_symbol_at_address): New function.
2105 * symfile.h (struct quick_symbol_functions)
2106 <find_compunit_symtab_by_address>: New member.
2107 * symfile-debug.c (debug_qf_find_compunit_symtab_by_address): New
2108 function.
2109 (debug_sym_quick_functions): Link to
2110 debug_qf_find_compunit_symtab_by_address.
2111 * rust-lang.c (rust_get_trait_object_pointer): New function.
2112 (rust_evaluate_subexp) <case UNOP_IND>: New case. Call
2113 rust_get_trait_object_pointer.
2114 * psymtab.c (psym_relocate): Clear psymbol_map.
2115 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address): New
2116 functions.
2117 (psym_functions): Link to psym_find_compunit_symtab_by_address.
2118 * objfiles.h (struct objfile) <psymbol_map>: New member.
2119 * dwarf2read.c (dwarf2_gdb_index_functions): Update.
2120 (process_die) <DW_TAG_variable>: New case. Call read_variable.
2121 (rust_containing_type, read_variable): New functions.
2122
2123 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
2124
2125 * common/gdb_vecs.h (DEF_VEC_I (int)): Remove.
2126
2127 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
2128
2129 * common/filestuff.c: Include <algorithm>.
2130 (open_fds): Change type to std::vector<int>.
2131 (do_mark_open_fd): Adjust.
2132 (unmark_fd_no_cloexec): Adjust.
2133 (do_close): Adjust.
2134
2135 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
2136
2137 * breakpoint.c (output_thread_groups): Take an std::vector.
2138 (print_one_breakpoint_location): Adjust.
2139
2140 2017-11-17 Joel Brobecker <brobecker@adacore.com>
2141
2142 * ada-lang.c (resolve_subexp): Add handling of OP_VAR_MSYM_VALUE.
2143 (ada_evaluate_subexp_for_cast): New function.
2144 (ada_evaluate_subexp) <UNOP_CAST>: Replace code by call to
2145 ada_evaluate_subexp_for_cast.
2146 (ada_evaluate_subexp) <nosideret>: Replace code by call to
2147 eval_skip_value.
2148 * eval.c (evaluate_var_value): Make non-static.
2149 (evaluate_var_msym_value, eval_skip_value): Likewise.
2150 * value.h (evaluate_var_value, evaluate_var_msym_value)
2151 (eval_skip_value): Declare.
2152
2153 2017-11-16 Joel Brobecker <brobecker@adacore.com>
2154
2155 * ada-lang.c (ada_value_cast): Remove parameter "noside".
2156 Update all callers.
2157
2158 2017-11-16 Pedro Alves <palves@redhat.com>
2159
2160 * python/py-unwind.c (pyuw_sniffer): Translate
2161 PyExc_KeyboardInterrupt to a GDB Quit exception.
2162
2163 2017-11-16 Pedro Alves <palves@redhat.com>
2164
2165 * infrun.c (resume_cleanups): Delete.
2166 (resume): No longer install a resume_cleanups cleanup nor call
2167 QUIT.
2168 (proceed): Pass the terminal to the inferior.
2169 (keep_going_pass_signal): No longer install a resume_cleanups
2170 cleanup.
2171
2172 2017-11-16 Pedro Alves <palves@redhat.com>
2173
2174 * inf-loop.c (inferior_event_handler): Don't swallow the exception
2175 if the prompt is blocked.
2176
2177 2017-11-16 Pedro Alves <palves@redhat.com>
2178
2179 * breakpoint.c (insert_bp_location): Replace bp_err and
2180 bp_err_message locals by a gdb_exception local.
2181
2182 2017-11-16 Pedro Alves <palves@redhat.com>
2183
2184 * inflow.c (scoped_ignore_sigttou): New class.
2185 (child_terminal_ours_1, new_tty): Use it.
2186
2187 2017-11-16 Ulrich Weigand <uweigand@de.ibm.com>
2188
2189 * target-float.c (decimal_from_number): Add byte_order argument and
2190 call match_endianness. Error if unknown floating-point type.
2191 (decimal_to_number): Add byte_order argument and call match_endianness.
2192 (decimal_from_longest): Update call. Do not call match_endianness.
2193 (decimal_from_ulongest): Likewise.
2194 (decimal_binop): Likewise.
2195 (decimal_is_zero): Likewise.
2196 (decimal_compare): Likewise.
2197 (decimal_convert): Likewise.
2198
2199 2017-11-16 Phil Muldoon <pmuldoon@redhat.com>
2200
2201 * python/python.c (gdbpy_rbreak): New function.
2202 * NEWS: Document Python rbreak feature.
2203
2204 2017-11-16 Yao Qi <yao.qi@linaro.org>
2205
2206 * features/tic6x-c62x.xml: Remove.
2207 * features/tic6x-c64x.xml: Remove.
2208 * features/tic6x-c64xp.xml: Remove.
2209
2210 2017-11-15 John Baldwin <jhb@FreeBSD.org>
2211
2212 * symtab.h: Include <array>.
2213
2214 2017-11-15 John Baldwin <jhb@FreeBSD.org>
2215
2216 * bsd-kvm.c (bsd_kvm_cmd): Constify 'arg'.
2217 (bsd_kvm_proc_cmd): Likewise.
2218
2219 2017-11-15 Simon Marchi <simon.marchi@ericsson.com>
2220
2221 * tui/tui-win.c (window_name_completer): Replace VEC with
2222 std::vector.
2223
2224 2017-11-15 Andrew Cagney <cagney@gnu.org>
2225
2226 * MAINTAINERS: Remove no-longer applicable entries.
2227
2228 2017-11-15 Andrew Cagney <cagney@gnu.org>
2229
2230 * MAINTAINERS: Move self to Past Maintainers.
2231
2232 2017-11-15 Yao Qi <yao.qi@linaro.org>
2233
2234 * features/Makefile (XMLTOC): Remove nios2-linux.xml.
2235 * features/nios2-linux.c: Remove.
2236 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Don't call
2237 initialize_tdesc_nios2_linux.
2238
2239 2017-11-15 Yao Qi <yao.qi@linaro.org>
2240
2241 * m68hc11-tdep.c (M68HC11_NUM_REGS): Change it to
2242 M68HC11_LAST_HARD_REG + 1.
2243
2244 2017-11-14 Paul Carroll <pcarroll@codesourcery.com>
2245
2246 PR gdb/22388
2247 * remote.c (remote_write_bytes_aux, remote_read_bytes_1,
2248 remote_read_bytes, remote_write_qxfer, remote_xfer_partial):
2249 Return TARGET_XFER_EOF if size of returned data is 0.
2250
2251 2017-11-14 Simon Marchi <simon.marchi@ericsson.com>
2252
2253 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2254 memory-map-selftests.c.
2255 (SUBDIR_UNITTESTS_OBS): Add memory-map-selftests.o.
2256 * memory-map.c (memory_map_start_memory): Fix computation of hi
2257 address.
2258 * unittests/memory-map-selftests.c: New file.
2259
2260 2017-11-09 Joel Brobecker <brobecker@adacore.com>
2261
2262 * ada-lang.c: Fix some typos in the general command documenting
2263 how Ada expressions are being evaluated and how their result
2264 is printed.
2265
2266 2017-11-09 Tom Tromey <tom@tromey.com>
2267
2268 * psymtab.c (psymbol_hash): Do not hash string contents.
2269 (psymbol_compare): Add comment.
2270
2271 2017-11-09 Tom Tromey <tom@tromey.com>
2272
2273 * dictionary.c (dict_hash): Move "TKB" check into the "switch".
2274
2275 2017-11-08 Joel Brobecker <brobecker@adacore.com>
2276
2277 * ada-exp.y (write_var_from_sym): Remove parameter
2278 "orig_left_context". Update all callers.
2279
2280 2017-11-08 Simon Marchi <simon.marchi@ericsson.com>
2281
2282 * tracepoint.h (class collection_list) <stringify>: Return
2283 std::vector<std::string>.
2284 (encode_actions_rsp): Change parameters to
2285 std::vector<std::string> *.
2286 * tracepoint.c (collection_list::stringify): Return
2287 std::vector<std::string> and adjust accordingly.
2288 (encode_actions_rsp): Changee parameters to
2289 std::vector<std::string> and adjust accordingly.
2290 * remote.c (free_actions_list),
2291 free_actions_list_cleanup_wrapper): Remove.
2292 (remote_download_tracepoint): Adjust to std::vector.
2293
2294 2017-11-08 Tom Tromey <tom@tromey.com>
2295
2296 * dwarf2read.c (symbolp): Remove typedef.
2297 (read_func_scope): Use std::vector.
2298 (process_structure_scope): Use std::vector.
2299
2300 2017-11-08 Pedro Alves <palves@redhat.com>
2301
2302 * ada-lang.c (ada_make_symbol_completion_list): Use
2303 completion_skip_symbol.
2304 * symtab.c (symbol_is_function_or_method(minimal_symbol*)): New.
2305 (symbol_is_function_or_method(symbol*)): New.
2306 (add_symtab_completions): Add complete_symbol_mode parameter. Use
2307 completion_skip_symbol.
2308 (default_collect_symbol_completion_matches_break_on): Use
2309 completion_skip_symbol. Pass down mode.
2310 (collect_file_symbol_completion_matches): Pass down mode.
2311 * symtab.h (symbol_is_function_or_method): New declarations.
2312 (completion_skip_symbol): New template function.
2313
2314 2017-11-08 Pedro Alves <palves@redhat.com>
2315
2316 * linespec.c (iterate_over_all_matching_symtabs): Add
2317 search_domain parameter. Pass it down to expand_symtabs_matching.
2318 (decode_objc): Request FUNCTIONS_DOMAIN symbols only.
2319 (lookup_prefix_sym): Adjust by passing ALL_DOMAIN as
2320 search_domain.
2321 (add_all_symbol_names_from_pspace): Add search_domain parameter.
2322 Pass it down.
2323 (find_method, find_function_symbols): Request FUNCTIONS_DOMAIN
2324 symbols.
2325 (add_matching_symbols_to_info): Add search_domain parameter. Pass
2326 it down.
2327
2328 2017-11-08 Pedro Alves <palves@redhat.com>
2329
2330 * ada-lang.c (ada_make_symbol_completion_list): Remove text and
2331 text_len locals and don't pass them down.
2332 * symtab.c (completion_list_add_name): Remove
2333 sym_text/sym_text_len parameters and adjust.
2334 (completion_list_add_symbol, completion_list_add_msymbol)
2335 (completion_list_objc_symbol, completion_list_add_fields)
2336 (add_symtab_completions): Likewise.
2337 (default_collect_symbol_completion_matches_break_on)
2338 (collect_file_symbol_completion_matches): Remove sym_text_len
2339 local and don't pass it down.
2340 * symtab.h (completion_list_add_name): Remove
2341 sym_text/sym_text_len parameters.
2342
2343 2017-11-08 Pedro Alves <palves@redhat.com>
2344
2345 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2346 unittests/lookup_name_info-selftests.c.
2347 (SUBDIR_UNITTESTS_OBS): Add lookup_name_info-selftests.o.
2348 * cp-support.c: Include "selftest.h".
2349 (cp_remove_params_1): Rename from cp_remove_params. Add
2350 'require_param' parameter, and handle it.
2351 (cp_remove_params): Reimplement.
2352 (cp_remove_params_if_any): New.
2353 (selftests::quote): New.
2354 (selftests::check_remove_params): New.
2355 (selftests::test_cp_remove_params): New.
2356 (_initialize_cp_support): Install
2357 selftests::test_cp_remove_params.
2358 * cp-support.h (cp_remove_params_if_any): Declare.
2359 * dwarf2read.c :Include "selftest.h".
2360 (dw2_expand_symtabs_matching_symbol): Use
2361 lookup_name_info::make_ignore_params.
2362 (selftests::dw2_expand_symtabs_matching::mock_mapped_index)
2363 (selftests::dw2_expand_symtabs_matching::string_or_null)
2364 (selftests::dw2_expand_symtabs_matching::check_match)
2365 (selftests::dw2_expand_symtabs_matching::test_symbols)
2366 (selftests::dw2_expand_symtabs_matching::run_test): New.
2367 (_initialize_dwarf2_read): Register
2368 selftests::dw2_expand_symtabs_matching::run_test.
2369 * psymtab.c (psym_expand_symtabs_matching): Use
2370 lookup_name_info::make_ignore_params.
2371 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info):
2372 If the lookup name wants to ignore parameters, strip them.
2373 (compare_symbol_name): Remove sym_text/sym_text_len parameters and
2374 code handling '('.
2375 (completion_list_add_name): Don't pass down sym_text/sym_text_len.
2376 (default_collect_symbol_completion_matches_break_on): Don't try to
2377 strip parameters.
2378 * symtab.h (lookup_name_info::lookup_name_info): Add
2379 'ignore_parameters' parameter.
2380 (lookup_name_info::ignore_parameters)
2381 (lookup_name_info::make_ignore_params): New methods.
2382 (lookup_name_info::m_ignore_parameters): New field.
2383 * unittests/lookup_name_info-selftests.c: New file.
2384
2385 2017-11-08 Pedro Alves <palves@redhat.com>
2386
2387 * dwarf2read.c (dw2_expand_marked_cus)
2388 (dw2_expand_symtabs_matching_symbol): Remove forward declarations.
2389 (dw2_expand_symtabs_matching): Move further below.
2390 (dw2_expand_marked_cus): Reindent.
2391
2392 2017-11-08 Pedro Alves <palves@redhat.com>
2393
2394 * dwarf2read.c (byte_swap, MAYBE_SWAP): Move higher up in file.
2395 (struct name_component): New.
2396 (mapped_index::name_components): New field.
2397 (mapped_index::symbol_name_at): New method.
2398 (dwarf2_read_index): Call mapped_index ctor.
2399 (dw2_map_matching_symbols): Add comment about name_components
2400 table.
2401 (dw2_expand_symtabs_matching): Factor part to...
2402 (dw2_expand_symtabs_matching_symbol): ... this new function.
2403 Build name components table, and lookup symbols in it before
2404 calling the name matcher.
2405 (dw2_expand_marked_cus): New, factored out from
2406 dw2_expand_symtabs_matching.
2407 (dwarf2_per_objfile_free): Call the mapped_index's dtor.
2408
2409 2017-11-08 Pedro Alves <palves@redhat.com>
2410
2411 * ada-lang.c (ada_encode): Rename to ..
2412 (ada_encode_1): ... this. Add throw_errors parameter and handle
2413 it.
2414 (ada_encode): Reimplement.
2415 (match_name): Delete, folded into full_name.
2416 (resolve_subexp): No longer pass the encoded name to
2417 ada_lookup_symbol_list.
2418 (should_use_wild_match): Delete.
2419 (name_match_type_from_name): New.
2420 (ada_lookup_simple_minsym): Use lookup_name_info and the
2421 language's symbol_name_matcher_ftype.
2422 (add_symbols_from_enclosing_procs, ada_add_local_symbols)
2423 (ada_add_block_renamings): Adjust to use lookup_name_info.
2424 (ada_lookup_name): New.
2425 (add_nonlocal_symbols, ada_add_all_symbols)
2426 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list)
2427 (ada_iterate_over_symbols): Adjust to use lookup_name_info.
2428 (ada_name_for_lookup): Delete.
2429 (ada_lookup_encoded_symbol): Construct a verbatim name.
2430 (wild_match): Reverse sense of return type. Use bool.
2431 (full_match): Reverse sense of return type. Inline bits of old
2432 match_name here.
2433 (ada_add_block_symbols): Adjust to use lookup_name_info.
2434 (symbol_completion_match): Delete, folded into...
2435 (ada_lookup_name_info::matches): ... .this new method.
2436 (symbol_completion_add): Delete.
2437 (ada_collect_symbol_completion_matches): Add name_match_type
2438 parameter. Adjust to use lookup_name_info and
2439 completion_list_add_name.
2440 (get_var_value, ada_add_global_exceptions): Adjust to use
2441 lookup_name_info.
2442 (ada_get_symbol_name_cmp): Delete.
2443 (do_wild_match, do_full_match): New functions.
2444 (ada_lookup_name_info::ada_lookup_name_info): New method.
2445 (ada_symbol_name_matches, ada_get_symbol_name_matcher): New
2446 functions.
2447 (ada_language_defn): Install ada_get_symbol_name_matcher.
2448 * ada-lex.l (processId): If name starts with '<', copy it
2449 verbatim.
2450 * block.c (block_iter_match_step, block_iter_match_first)
2451 (block_iter_match_next, block_lookup_symbol)
2452 (block_lookup_symbol_primary, block_find_symbol): Adjust to use
2453 lookup_name_info.
2454 * block.h (block_iter_match_first, block_iter_match_next)
2455 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use lookup_name_info.
2456 * c-lang.c (c_language_defn, cplus_language_defn)
2457 (asm_language_defn, minimal_language_defn): Adjust comments to
2458 refer to la_get_symbol_name_matcher.
2459 * completer.c (complete_files_symbols)
2460 (collect_explicit_location_matches, symbol_completer): Pass a
2461 symbol_name_match_type down.
2462 * completer.h (class completion_match, completion_match_result):
2463 New classes.
2464 (completion_tracker::reset_completion_match_result): New method.
2465 (completion_tracker::m_completion_match_result): New field.
2466 * cp-support.c (make_symbol_overload_list_block): Adjust to use
2467 lookup_name_info.
2468 (cp_fq_symbol_name_matches, cp_get_symbol_name_matcher): New
2469 functions.
2470 * cp-support.h (cp_get_symbol_name_matcher): New declaration.
2471 * d-lang.c: Adjust comments to refer to
2472 la_get_symbol_name_matcher.
2473 * dictionary.c (dict_vector) <iter_match_first, iter_match_next>:
2474 Adjust to use lookup_name_info.
2475 (dict_iter_match_first, dict_iter_match_next)
2476 (iter_match_first_hashed, iter_match_next_hashed)
2477 (iter_match_first_linear, iter_match_next_linear): Adjust to work
2478 with a lookup_name_info.
2479 * dictionary.h (dict_iter_match_first, dict_iter_match_next):
2480 Likewise.
2481 * dwarf2read.c (dw2_lookup_symbol): Adjust to use lookup_name_info.
2482 (dw2_map_matching_symbols): Adjust to use symbol_name_match_type.
2483 (gdb_index_symbol_name_matcher): New class.
2484 (dw2_expand_symtabs_matching) Adjust to use lookup_name_info and
2485 gdb_index_symbol_name_matcher. Accept a NULL symbol_matcher.
2486 * f-lang.c (f_collect_symbol_completion_matches): Adjust to work
2487 with a symbol_name_match_type.
2488 (f_language_defn): Adjust comments to refer to
2489 la_get_symbol_name_matcher.
2490 * go-lang.c (go_language_defn): Adjust comments to refer to
2491 la_get_symbol_name_matcher.
2492 * language.c (default_symbol_name_matcher)
2493 (language_get_symbol_name_matcher): New functions.
2494 (unknown_language_defn, auto_language_defn): Adjust comments to
2495 refer to la_get_symbol_name_matcher.
2496 * language.h (symbol_name_cmp_ftype): Delete.
2497 (language_defn) <la_collect_symbol_completion_matches>: Add match
2498 type parameter.
2499 <la_get_symbol_name_cmp>: Delete field.
2500 <la_get_symbol_name_matcher>: New field.
2501 <la_iterate_over_symbols>: Adjust to use lookup_name_info.
2502 (default_symbol_name_matcher, language_get_symbol_name_matcher):
2503 Declare.
2504 * linespec.c (iterate_over_all_matching_symtabs)
2505 (iterate_over_file_blocks): Adjust to use lookup_name_info.
2506 (find_methods): Add language parameter, and use lookup_name_info
2507 and the language's symbol_name_matcher_ftype.
2508 (linespec_complete_function): Adjust.
2509 (lookup_prefix_sym): Use lookup_name_info.
2510 (add_all_symbol_names_from_pspace): Adjust.
2511 (find_superclass_methods): Add language parameter and pass it
2512 down.
2513 (find_method): Pass symbol language down.
2514 (find_linespec_symbols): Don't demangle or Ada encode here.
2515 (search_minsyms_for_name): Add lookup_name_info parameter.
2516 (add_matching_symbols_to_info): Add name_match_type parameter.
2517 Use lookup_name_info.
2518 * m2-lang.c (m2_language_defn): Adjust comments to refer to
2519 la_get_symbol_name_matcher.
2520 * minsyms.c: Include <algorithm>.
2521 (add_minsym_to_demangled_hash_table): Remove table parameter and
2522 add objfile parameter. Use search_name_hash, and add language to
2523 demangled languages vector.
2524 (struct found_minimal_symbols): New struct.
2525 (lookup_minimal_symbol_mangled, lookup_minimal_symbol_demangled):
2526 New functions.
2527 (lookup_minimal_symbol): Adjust to use them. Don't canonicalize
2528 input names here. Use lookup_name_info instead. Lookup up
2529 demangled names once for each language in the demangled names
2530 vector.
2531 (iterate_over_minimal_symbols): Use lookup_name_info. Lookup up
2532 demangled names once for each language in the demangled names
2533 vector.
2534 (build_minimal_symbol_hash_tables): Adjust.
2535 * minsyms.h (iterate_over_minimal_symbols): Adjust to pass down a
2536 lookup_name_info.
2537 * objc-lang.c (objc_language_defn): Adjust comment to refer to
2538 la_get_symbol_name_matcher.
2539 * objfiles.h: Include <vector>.
2540 (objfile_per_bfd_storage) <demangled_hash_languages>: New field.
2541 * opencl-lang.c (opencl_language_defn): Adjust comment to refer to
2542 la_get_symbol_name_matcher.
2543 * p-lang.c (pascal_language_defn): Adjust comment to refer to
2544 la_get_symbol_name_matcher.
2545 * psymtab.c (psym_lookup_symbol): Use lookup_name_info.
2546 (match_partial_symbol): Use symbol_name_match_type,
2547 lookup_name_info and psymbol_name_matches.
2548 (lookup_partial_symbol): Use lookup_name_info.
2549 (map_block): Use symbol_name_match_type and lookup_name_info.
2550 (psym_map_matching_symbols): Use symbol_name_match_type.
2551 (psymbol_name_matches): New.
2552 (recursively_search_psymtabs): Use lookup_name_info and
2553 psymbol_name_matches. Rename 'kind' parameter to 'domain'.
2554 (psym_expand_symtabs_matching): Use lookup_name_info. Rename
2555 'kind' parameter to 'domain'.
2556 * rust-lang.c (rust_language_defn): Adjust comment to refer to
2557 la_get_symbol_name_matcher.
2558 * symfile-debug.c (debug_qf_map_matching_symbols)
2559 (debug_qf_map_matching_symbols): Use symbol_name_match_type.
2560 (debug_qf_expand_symtabs_matching): Use lookup_name_info.
2561 * symfile.c (expand_symtabs_matching): Use lookup_name_info.
2562 * symfile.h (quick_symbol_functions) <map_matching_symbols>:
2563 Adjust to use symbol_name_match_type.
2564 <expand_symtabs_matching>: Adjust to use lookup_name_info.
2565 (expand_symtabs_matching): Adjust to use lookup_name_info.
2566 * symmisc.c (maintenance_expand_symtabs): Use
2567 lookup_name_info::match_any ().
2568 * symtab.c (symbol_matches_search_name): New.
2569 (eq_symbol_entry): Adjust to use lookup_name_info and the
2570 language's matcher.
2571 (demangle_for_lookup_info::demangle_for_lookup_info): New.
2572 (lookup_name_info::match_any): New.
2573 (iterate_over_symbols, search_symbols): Use lookup_name_info.
2574 (compare_symbol_name): Add language, lookup_name_info and
2575 completion_match_result parameters, and use them.
2576 (completion_list_add_name): Make extern. Add language and
2577 lookup_name_info parameters. Use them.
2578 (completion_list_add_symbol, completion_list_add_msymbol)
2579 (completion_list_objc_symbol): Add lookup_name_info parameters and
2580 adjust. Pass down language.
2581 (completion_list_add_fields): Add lookup_name_info parameters and
2582 adjust. Pass down language.
2583 (add_symtab_completions): Add lookup_name_info parameters and
2584 adjust.
2585 (default_collect_symbol_completion_matches_break_on): Add
2586 name_match_type parameter, and use it. Use lookup_name_info.
2587 (default_collect_symbol_completion_matches)
2588 (collect_symbol_completion_matches): Add name_match_type
2589 parameter, and pass it down.
2590 (collect_symbol_completion_matches_type): Adjust.
2591 (collect_file_symbol_completion_matches): Add name_match_type
2592 parameter, and use lookup_name_info.
2593 * symtab.h: Include <string> and "common/gdb_optional.h".
2594 (enum class symbol_name_match_type): New.
2595 (class ada_lookup_name_info): New.
2596 (struct demangle_for_lookup_info): New.
2597 (class lookup_name_info): New.
2598 (symbol_name_matcher_ftype): New.
2599 (SYMBOL_MATCHES_SEARCH_NAME): Use symbol_matches_search_name.
2600 (symbol_matches_search_name): Declare.
2601 (MSYMBOL_MATCHES_SEARCH_NAME): Delete.
2602 (default_collect_symbol_completion_matches)
2603 (collect_symbol_completion_matches)
2604 (collect_file_symbol_completion_matches): Add name_match_type
2605 parameter.
2606 (iterate_over_symbols): Use lookup_name_info.
2607 (completion_list_add_name): Declare.
2608 * utils.c (enum class strncmp_iw_mode): Moved to utils.h.
2609 (strncmp_iw_with_mode): Now extern.
2610 * utils.h (enum class strncmp_iw_mode): Moved from utils.c.
2611 (strncmp_iw_with_mode): Declare.
2612
2613 2017-11-08 Keith Seitz <keiths@redhat.com>
2614 Pedro Alves <palves@redhat.com>
2615
2616 * ada-lang.c (ada_language_defn): Install
2617 default_search_name_hash.
2618 * buildsym.c (struct buildsym_compunit): <language>: New field.
2619 (finish_block_internal): Pass language when creating dictionaries.
2620 (start_buildsym_compunit, start_symtab): New language parameters.
2621 Use them.
2622 (restart_symtab): Pass down compilation unit's language.
2623 * buildsym.h (enum language): Forward declare.
2624 (start_symtab): New 'language' parameter.
2625 * c-lang.c (c_language_defn, cplus_language_defn)
2626 (asm_language_defn, minimal_language_defn): Install
2627 default_search_name_hash.
2628 * coffread.c (coff_start_symtab): Adjust.
2629 * d-lang.c (d_language_defn): Install default_search_name_hash.
2630 * dbxread.c (struct symloc): Add 'pst_language' field.
2631 (PST_LANGUAGE): Define.
2632 (start_psymtab, read_ofile_symtab): Use it.
2633 (process_one_symbol): New 'language' parameter. Pass it down.
2634 * dictionary.c (struct dictionary) <language>: New field.
2635 (DICT_LANGUAGE): Define.
2636 (dict_create_hashed, dict_create_hashed_expandable)
2637 (dict_create_linear, dict_create_linear_expandable): New parameter
2638 'language'. Set the dictionary's language.
2639 (iter_match_first_hashed): Adjust to rename.
2640 (insert_symbol_hashed): Assert we don't see mismatching
2641 languages. Adjust to rename.
2642 (dict_hash): Rename to ...
2643 (default_search_name_hash): ... this and make extern.
2644 * dictionary.h (struct language_defn): Forward declare.
2645 (dict_create_hashed): New parameter 'language'.
2646 * dwarf2read.c (dwarf2_start_symtab): Pass down language.
2647 * f-lang.c (f_language_defn): Install default_search_name_hash.
2648 * go-lang.c (go_language_defn): Install default_search_name_hash.
2649 * jit.c (finalize_symtab): Pass compunit's language to dictionary
2650 creation.
2651 * language.c (unknown_language_defn, auto_language_defn):
2652 * language.h (language_defn::la_search_name_hash): New field.
2653 (default_search_name_hash): Declare.
2654 * m2-lang.c (m2_language_defn): Install default_search_name_hash.
2655 * mdebugread.c (new_block): New parameter 'language'.
2656 * mdebugread.c (parse_symbol): Pass symbol language to block
2657 allocation.
2658 (psymtab_to_symtab_1): Pass down language.
2659 (new_symtab): Pass compunit's language to block allocation.
2660 * objc-lang.c (objc_language_defn): Install
2661 default_search_name_hash.
2662 * opencl-lang.c (opencl_language_defn):
2663 * p-lang.c (pascal_language_defn): Install
2664 default_search_name_hash.
2665 * rust-lang.c (rust_language_defn): Install
2666 default_search_name_hash.
2667 * stabsread.h (enum language): Forward declare.
2668 (process_one_symbol): Add 'language' parameter.
2669 * symtab.c (search_name_hash): New function.
2670 * symtab.h (search_name_hash): Declare.
2671 * xcoffread.c (read_xcoff_symtab): Pass language to start_symtab.
2672
2673 2017-11-08 Pedro Alves <palves@redhat.com>
2674
2675 * cp-name-parser.y (main): Don't initialize extra_chars.
2676
2677 2017-11-07 Tom Tromey <tom@tromey.com>
2678
2679 * event-top.h (command_handler): Constify.
2680 * record-full.c (cmd_record_full_start): Update.
2681 * thread.c (thread_apply_all_command): Update.
2682 * printcmd.c (eval_command): Update.
2683 * mi/mi-main.c (mi_execute_cli_command): Update.
2684 (mi_execute_async_cli_command): Update.
2685 * tui/tui-stack.c (tui_update_command): Update.
2686 * cli/cli-interp.c (safe_execute_command): Constify.
2687 * record.c (record_start): Update.
2688 (record_start, record_stop, cmd_record_start): Update.
2689 * record-btrace.c (cmd_record_btrace_bts_start): Update.
2690 (cmd_record_btrace_pt_start): Update.
2691 (cmd_record_btrace_start): Update.
2692 (cmd_record_btrace_start): Update.
2693 * reverse.c (exec_reverse_once): Update.
2694 * python/python.c (execute_gdb_command): Don't copy the command.
2695 * event-top.c (command_line_handler): Update.
2696 (command_handler): Constify.
2697 * defs.h (deprecated_call_command_hook): Constify.
2698 * cli/cli-script.h (execute_user_command): Constify.
2699 * cli/cli-script.c (execute_user_command): Constify.
2700 (execute_cmd_pre_hook, execute_cmd_post_hook): Constify.
2701 (enum command_control_type): Update.
2702 * main.c (catch_command_errors): Remove non-const overload.
2703 (catch_command_errors_ftype): Remove.
2704 * python/py-cmd.c (cmdpy_function): Constify.
2705 * guile/scm-cmd.c (cmdscm_function): Constify.
2706 * cli/cli-dump.c (call_dump_func): Constify.
2707 * cli/cli-decode.c (do_const_cfunc): Constify.
2708 (do_sfunc): Constify.
2709 (cmd_func): Constify.
2710 * gdbcmd.h (execute_command, execute_command_to_string): Constify.
2711 * top.h (execute_command): Constify.
2712 * top.c (execute_command): Constify.
2713 (execute_command_to_string): Constify.
2714 (deprecated_call_command_hook): Constify.
2715 * command.h (cmd_func): Constify.
2716 * cli/cli-decode.h (struct cmd_list_element) <func>: Constify.
2717
2718 2017-11-07 Tom Tromey <tom@tromey.com>
2719
2720 * ada-lang.c (catch_ada_exception_command): Constify.
2721 (catch_assert_command): Constify.
2722 * break-catch-throw.c (catch_catch_command, catch_throw_command)
2723 (catch_rethrow_command): Constify.
2724 (catch_exception_command_1): Constify.
2725 * breakpoint.h (add_catch_command): Constify.
2726 * break-catch-syscall.c (catch_syscall_command_1): Constify.
2727 (catch_syscall_split_args): Constify.
2728 * break-catch-sig.c (catch_signal_command): Constify.
2729 (catch_signal_split_args): Constify.
2730 * cli/cli-decode.h (struct cmd_list_element) <function>: Use
2731 cmd_const_sfunc_ftype.
2732 * cli/cli-decode.c (add_setshow_cmd_full): Constify.
2733 (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd)
2734 (add_setshow_boolean_cmd, add_setshow_filename_cmd)
2735 (add_setshow_string_cmd, struct cmd_list_element)
2736 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
2737 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
2738 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd):
2739 Constify.
2740 (set_cmd_sfunc): Constify.
2741 (empty_sfunc): Constify.
2742 * command.h (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd)
2743 (add_setshow_boolean_cmd, add_setshow_filename_cmd)
2744 (add_setshow_string_cmd, add_setshow_string_noescape_cmd)
2745 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
2746 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
2747 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
2748 Constify.
2749 (set_cmd_sfunc): Constify.
2750 (cmd_sfunc_ftype): Remove.
2751 * compile/compile.c (set_compile_args): Constify.
2752 * infrun.c (set_disable_randomization): Constify.
2753 * infcmd.c (set_args_command, set_cwd_command): Constify.
2754 * breakpoint.c (set_condition_evaluation_mode): Constify.
2755 (add_catch_command): Constify.
2756 (catch_fork_command_1, catch_exec_command_1)
2757 (catch_load_command_1, catch_unload_command_1): Constify.
2758 (catch_load_or_unload): Constify.
2759 * guile/scm-param.c (pascm_set_func): Constify.
2760 (add_setshow_generic): Constify.
2761 * python/py-param.c (get_set_value): Constify.
2762 * top.h (set_verbose): Constify.
2763 * tui/tui-win.c (tui_set_var_cmd): Constify.
2764 * mi/mi-main.c (set_mi_async_command): Constify.
2765 * cli/cli-logging.c (set_logging_overwrite)
2766 (set_logging_redirect): Constify.
2767 * value.c (set_max_value_size): Constify.
2768 * valprint.c (set_input_radix, set_output_radix): Constify.
2769 * utils.c (set_width_command, set_height_command): Constify.
2770 * typeprint.c (set_print_type_methods, set_print_type_typedefs): Constify.
2771 * tracepoint.c (set_disconnected_tracing)
2772 (set_circular_trace_buffer, set_trace_buffer_size)
2773 (set_trace_user, set_trace_notes, set_trace_stop_notes): Constify.
2774 * top.c (set_history_size_command, set_verbose, set_editing)
2775 (set_gdb_datadir, set_history_filename): Constify.
2776 * target.c (set_targetdebug, maint_set_target_async_command)
2777 (maint_set_target_non_stop_command, set_target_permissions)
2778 (set_write_memory_permission): Constify.
2779 (open_target): Constify.
2780 * target-descriptions.c (set_tdesc_filename_cmd): Constify.
2781 * target-dcache.c (set_stack_cache, set_code_cache): Constify.
2782 * symtab.c (set_symbol_cache_size_handler): Constify.
2783 * symfile.c (set_ext_lang_command): Constify.
2784 * symfile-debug.c (set_debug_symfile): Constify.
2785 * source.c (set_directories_command): Constify.
2786 * solib.c (reload_shared_libraries, gdb_sysroot_changed): Constify.
2787 * serial.c (set_parity): Constify.
2788 * rs6000-tdep.c (powerpc_set_soft_float, powerpc_set_vector_abi): Constify.
2789 * remote.c (set_remote_exec_file, set_remotebreak)
2790 (set_remote_protocol_Z_packet_cmd, set_range_stepping): Constify.
2791 * record.c (set_record_insn_history_size)
2792 (set_record_call_history_size): Constify.
2793 * record-full.c (set_record_full_insn_max_num): Constify.
2794 * proc-api.c (set_procfs_trace_cmd, set_procfs_file_cmd): Constify.
2795 * osabi.c (set_osabi): Constify.
2796 * mips-tdep.c (set_mips64_transfers_32bit_regs)
2797 (reinit_frame_cache_sfunc, mips_abi_update): Constify.
2798 * maint.c (maintenance_set_profile_cmd): Constify.
2799 * linux-thread-db.c (set_libthread_db_search_path): Constify.
2800 * language.c (set_language_command, set_range_command)
2801 (set_case_command): Constify.
2802 * infrun.c (set_non_stop, set_observer_mode)
2803 (set_stop_on_solib_events, set_schedlock_func)
2804 (set_exec_direction_func): Constify.
2805 * infcmd.c (set_inferior_tty_command): Constify.
2806 * disasm.c (set_disassembler_options_sfunc): Constify.
2807 * demangle.c (set_demangling_command): Constify.
2808 * dcache.c (set_dcache_size, set_dcache_line_size): Constify.
2809 * cris-tdep.c (set_cris_version, set_cris_mode)
2810 (set_cris_dwarf2_cfi): Constify.
2811 * corefile.c (set_gnutarget_command): Constify.
2812 * charset.c (set_host_charset_sfunc, set_target_charset_sfunc)
2813 (set_target_wide_charset_sfunc): Constify.
2814 * breakpoint.c (update_dprintf_commands): Constify.
2815 * auto-load.c (set_auto_load_dir, set_auto_load_safe_path): Constify.
2816 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi)
2817 (set_disassembly_style_sfunc): Constify.
2818 * arch-utils.c (set_endian, set_architecture): Constify.
2819 * alpha-tdep.c (reinit_frame_cache_sfunc): Constify.
2820 * agent.c (set_can_use_agent): Constify.
2821
2822 2017-11-07 Tom Tromey <tom@tromey.com>
2823
2824 * go32-nat.c (go32_sysinfo, go32_sldt, go32_sgdt, go32_sidt)
2825 (go32_pde, go32_pte, go32_pte_for_address): Constify.
2826 * gnu-nat.c (_parse_bool_arg, show_thread_default_pause_cmd)
2827 (set_thread_default_pause_cmd, set_thread_default_run_cmd)
2828 (show_thread_default_run_cmd, set_thread_default_detach_sc_cmd)
2829 (parse_int_arg, show_thread_default_detach_sc_cmd)
2830 (set_signals_cmd, show_signals_cmd, set_sig_thread_cmd)
2831 (show_sig_thread_cmd, set_stopped_cmd, show_stopped_cmd)
2832 (set_exceptions_cmd, show_exceptions_cmd, set_task_pause_cmd)
2833 (show_task_pause_cmd, set_task_detach_sc_cmd)
2834 (show_task_detach_sc_cmd, set_task_exc_port_cmd)
2835 (set_noninvasive_cmd, set_thread_pause_cmd)
2836 (show_thread_pause_cmd, set_thread_run_cmd, show_thread_run_cmd)
2837 (set_thread_detach_sc_cmd, show_thread_detach_sc_cmd)
2838 (set_thread_exc_port_cmd, thread_takeover_sc_cmd): Constify.
2839 * windows-nat.c (display_selectors): Constify.
2840 * cli/cli-decode.h (struct cmd_list_element) <function>: Remove
2841 non-const "cfunc".
2842 * cli/cli-decode.c (set_cmd_cfunc): Remove non-const overload.
2843 (cmd_cfunc_eq): Likewise.
2844 (struct cmd_list_element): Likewise.
2845 (do_cfunc): Remove.
2846 (cli_user_command_p): Update.
2847 * command.h (add_cmd): Remove non-const overload.
2848 (cmd_cfunc_ftype): Remove typedef.
2849 (cmd_cfunc_eq): Remove non-const overload.
2850 * value.c (show_values): Constify.
2851 * thread.c (thread_apply_all_command): Constify.
2852 * symfile.c (load_command): Constify.
2853 * source.c (directory_command): Constify.
2854 * maint.c (maintenance_internal_error)
2855 (maintenance_demangler_warning, maintenance_space_display)
2856 (maintenance_print_architecture, maintenance_translate_address)
2857 (maintenance_info_selftests, maintenance_internal_warning):
2858 Constify.
2859 * breakpoint.c (disable_trace_command, enable_trace_command):
2860 Constify.
2861 * auto-load.c (info_auto_load_local_gdbinit, add_auto_load_dir):
2862 Constify.
2863 (add_auto_load_safe_path): Constify.
2864 * guile/scm-auto-load.c (info_auto_load_guile_scripts): Constify.
2865 * top.h (show_commands): Constify.
2866 * linux-thread-db.c (info_auto_load_libthread_db): Constify.
2867 * sparc64-tdep.c (adi_examine_command): Constify.
2868 (adi_assign_command): Constify.
2869
2870 2017-11-07 Tom Tromey <tom@tromey.com>
2871
2872 * frame.h (info_locals_command, info_args_command): Constify.
2873 * auto-load.h (auto_load_info_scripts): Constify.
2874 * inferior.h (registers_info): Constify.
2875 * copying.c: Rebuild.
2876 * copying.awk: Constify generated commands.
2877 * auto-load.c (auto_load_info_scripts)
2878 (info_auto_load_gdb_scripts): Constify.
2879 * cli/cli-decode.c (struct cmd_list_element): Take a
2880 cmd_const_cfunc_ftype.
2881 * command.h (add_info): Take a cmd_const_cfunc_ftype.
2882 * tui/tui-win.c (tui_all_windows_info): Constify.
2883 * python/py-auto-load.c (info_auto_load_python_scripts):
2884 Constify.
2885 * cli/cli-cmds.c (show_command): Remove non-const overload.
2886 * tracepoint.c (info_tvariables_command, info_scope_command):
2887 Constify.
2888 (info_static_tracepoint_markers_command): Constify.
2889 * thread.c (info_threads_command): Constify.
2890 (print_thread_info_1): Constify.
2891 * target.c (info_target_command): Constify.
2892 * symtab.c (info_sources_command, info_functions_command)
2893 (info_types_command): Constify.
2894 (info_variables_command): Remove non-const overload.
2895 * symfile.c (info_ext_lang_command): Constify.
2896 * stack.c (info_frame_command, info_locals_command)
2897 (info_args_command): Constify.
2898 (backtrace_command): Remove non-const overload.
2899 * source.c (info_source_command, info_line_command): Constify.
2900 * solib.c (info_sharedlibrary_command): Constify.
2901 * skip.c (info_skip_command): Constify.
2902 * ser-go32.c (info_serial_command): Constify.
2903 * reverse.c (info_bookmarks_command): Constify.
2904 * printcmd.c (info_symbol_command, info_address_command)
2905 (info_display_command): Constify.
2906 * osdata.c (info_osdata_command): Constify.
2907 * objc-lang.c (info_selectors_command, info_classes_command):
2908 Constify.
2909 * nto-procfs.c (procfs_pidlist, procfs_meminfo): Constify.
2910 * memattr.c (info_mem_command): Constify.
2911 * macrocmd.c (info_macro_command, info_macros_command): Constify.
2912 * linux-fork.c (info_checkpoints_command): Constify.
2913 * infrun.c (info_signals_command): Constify.
2914 * inflow.c (info_terminal_command): Constify.
2915 * inferior.c (info_inferiors_command): Constify.
2916 (print_inferior): Constify.
2917 * infcmd.c (info_program_command, info_all_registers_command)
2918 (info_registers_command, info_vector_command)
2919 (info_float_command): Constify.
2920 (registers_info): Constify.
2921 * gnu-nat.c (info_send_rights_cmd, info_recv_rights_cmd)
2922 (info_port_sets_cmd, info_dead_names_cmd, info_port_rights_cmd):
2923 Constify.
2924 * f-valprint.c (info_common_command): Constify.
2925 * dcache.c (info_dcache_command): Constify.
2926 (dcache_info_1): Constify.
2927 * darwin-nat-info.c (info_mach_tasks_command)
2928 (info_mach_task_command, info_mach_ports_command)
2929 (info_mach_port_command, info_mach_threads_command)
2930 (info_mach_thread_command, info_mach_regions_command)
2931 (info_mach_regions_recurse_command, info_mach_region_command)
2932 (info_mach_exceptions_command): Constify.
2933 (get_task_from_args): Constify.
2934 * cp-support.c (info_vtbl_command): Constify.
2935 * breakpoint.c (info_watchpoints_command)
2936 (info_tracepoints_command): Constify.
2937 (info_breakpoints_command): Remove non-const overload.
2938 * avr-tdep.c (avr_io_reg_read_command): Constify.
2939 * auxv.c (info_auxv_command): Constify.
2940 * ada-tasks.c (info_tasks_command): Constify.
2941 (info_task): Constify.
2942 * ada-lang.c (info_exceptions_command): Constify.
2943
2944 2017-11-07 Tom Tromey <tom@tromey.com>
2945
2946 * solib.h (no_shared_libraries): Constify.
2947 * frame.h (return_command): Constify.
2948 * cli/cli-cmds.h (quit_command): Constify.
2949 * top.h (quit_command, execute_command): Constify.
2950 * target.h (flash_erase_command): Constify.
2951 * inferior.h (set_inferior_args, attach_command): Constify.
2952 * tracepoint.h (start_tracing, stop_tracing): Constify.
2953 * breakpoint.h (break_command, tbreak_command)
2954 (hbreak_command_wrapper, thbreak_command_wrapper)
2955 (rbreak_command_wrapper, watch_command_wrapper)
2956 (awatch_command_wrapper, rwatch_command_wrapper)
2957 (get_tracepoint_by_number): Constify.
2958 * symtab.c (info_variables_command, rbreak_command)
2959 (symtab_symbol_info): Constify.
2960 (info_variables_command): Add non-const overload.
2961 * top.c (dont_repeat_command): Constify.
2962 * breakpoint.c (ignore_command, commands_command)
2963 (condition_command, tbreak_command, hbreak_command)
2964 (thbreak_command, clear_command, break_command)
2965 (info_breakpoints_command, watch_command, rwatch_command)
2966 (awatch_command, trace_command, ftrace_command, strace_command)
2967 (trace_pass_command, break_range_command, dprintf_command)
2968 (agent_printf_command, get_tracepoint_by_number)
2969 (watch_maybe_just_location, trace_pass_command): Constify.
2970 (info_breakpoints_command): Add non-const overload.
2971 * tracefile.c (tsave_command): Constify.
2972 * infcmd.c (attach_command, disconnect_command, signal_command)
2973 (queue_signal_command, stepi_command, nexti_command)
2974 (finish_command, next_command, step_command, until_command)
2975 (advance_command, jump_command, continue_command, run_command)
2976 (start_command, starti_command, interrupt_command)
2977 (run_command_1, set_inferior_args, step_1): Constify.
2978 * inferior.c (add_inferior_command, remove_inferior_command)
2979 (clone_inferior_command): Constify.
2980 * linux-fork.c (checkpoint_command, restart_command): Constify.
2981 * windows-nat.c (signal_event_command): Constify.
2982 * guile/guile.c (guile_repl_command, guile_command): Constify.
2983 * printcmd.c (x_command, display_command, printf_command)
2984 (output_command, set_command, call_command, print_command)
2985 (eval_command): Constify.
2986 (non_const_set_command): Remove.
2987 (_initialize_printcmd): Update.
2988 * source.c (forward_search_command, reverse_search_command):
2989 Constify.
2990 * jit.c (jit_reader_load_command, jit_reader_unload_command):
2991 Constify.
2992 * infrun.c (handle_command): Constify.
2993 * memattr.c (mem_command): Constify.
2994 * stack.c (return_command, up_command, up_silently_command)
2995 (down_command, down_silently_command, frame_command)
2996 (backtrace_command, func_command, backtrace_command_1): Constify.
2997 (backtrace_command): Add non-const overload.
2998 * remote-sim.c (simulator_command): Constify.
2999 * exec.c (set_section_command): Constify.
3000 * tracepoint.c (tdump_command, trace_variable_command)
3001 (tstatus_command, tstop_command, tstart_command)
3002 (end_actions_pseudocommand, while_stepping_pseudocommand)
3003 (collect_pseudocommand, teval_pseudocommand, actions_command)
3004 (start_tracing, stop_tracing): Constify.
3005 * value.c (init_if_undefined_command): Constify.
3006 * tui/tui-stack.c (tui_update_command): Constify.
3007 * tui/tui-win.c (tui_refresh_all_command)
3008 (tui_set_tab_width_command, tui_set_win_height_command)
3009 (tui_set_focus_command, tui_scroll_forward_command)
3010 (tui_scroll_backward_command, tui_scroll_left_command)
3011 (tui_scroll_right_command, parse_scrolling_args, tui_set_focus)
3012 (tui_set_win_height): Constify.
3013 * tui/tui-layout.c (tui_layout_command): Constify.
3014 * procfs.c (proc_trace_syscalls, proc_trace_sysentry_cmd)
3015 (proc_trace_sysexit_cmd, proc_untrace_sysentry_cmd)
3016 (proc_untrace_sysexit_cmd): Constify.
3017 * remote.c (threadlist_test_cmd, threadinfo_test_cmd)
3018 (threadset_test_cmd, threadlist_update_test_cmd)
3019 (threadalive_test): Constify.
3020 * objc-lang.c (print_object_command): Constify.
3021 * command.h (add_com): Constify.
3022 * cli/cli-dump.c (restore_command): Constify.
3023 * cli/cli-cmds.c (pwd_command, echo_command, quit_command)
3024 (help_command, complete_command, shell_command, edit_command)
3025 (list_command, disassemble_command, make_command)
3026 (apropos_command, alias_command): Constify.
3027 * cli/cli-script.c (document_command, define_command)
3028 (while_command, if_command, validate_comname): Constify.
3029 * cli/cli-decode.c (struct cmd_list_element): Change type of
3030 "fun".
3031 * target.c (do_monitor_command, flash_erase_command): Constify.
3032 * regcache.c (reg_flush_command): Constify.
3033 * reverse.c (reverse_step, reverse_next, reverse_stepi)
3034 (reverse_nexti, reverse_continue, reverse_finish)
3035 (save_bookmark_command, goto_bookmark_command)
3036 (exec_reverse_once): Constify.
3037 * python/python.c (python_interactive_command, python_command):
3038 Constify.
3039 * typeprint.c (ptype_command, whatis_command, whatis_exp):
3040 Constify.
3041 * solib.c (sharedlibrary_command, no_shared_libraries): Constify.
3042 * gcore.c (gcore_command): Constify.
3043
3044 2017-11-07 Tom Tromey <tom@tromey.com>
3045
3046 * printcmd.c (x_command): Call set_repeat_arguments.
3047 * cli/cli-cmds.c (list_command): Call set_repeat_arguments.
3048 * top.c (repeat_arguments): New global.
3049 (set_repeat_arguments): New function.
3050 (execute_command): Handle repeat_arguments.
3051 (show_commands): Calls set_repeat_arguments.
3052 * command.h (set_repeat_arguments): Declare.
3053
3054 2017-11-07 Tom Tromey <tom@tromey.com>
3055
3056 * stack.c (backtrace_command): Use std::string.
3057 (backtrace_command_1): Make "count_exp" const.
3058
3059 2017-11-07 Tom Tromey <tom@tromey.com>
3060
3061 * source.c (directory_switch, mod_path, add_path): Constify.
3062 * defs.h (add_path, mod_path, directory_switch): Constify.
3063 * mi/mi-cmd-env.c (env_mod_path): Constify.
3064
3065 2017-11-07 Tom Tromey <tom@tromey.com>
3066
3067 * infcmd.c (strip_bg_char): Return gdb::unique_xmalloc_ptr.
3068 (run_command_1, continue_command, step_1, jump_command)
3069 (signal_command, until_command, advance_command, finish_command)
3070 (attach_command): Update.
3071
3072 2017-11-07 Tom Tromey <tom@tromey.com>
3073
3074 * command.h (set_cmd_cfunc): Don't declare.
3075 * cli/cli-decode.c (set_cmd_cfunc): Now static.
3076
3077 2017-11-07 Tom Tromey <tom@tromey.com>
3078
3079 * stack.c (select_frame_command): Constify.
3080 * cli/cli-decode.c (add_com_suppress_notification): Constify.
3081 * command.h (add_com_suppress_notification): Constify.
3082
3083 2017-11-07 Tom Tromey <tom@tromey.com>
3084
3085 * breakpoint.c (stop_command): Constify.
3086 * cli/cli-decode.c (struct cmd_list_element): Constify.
3087 * command.h (add_abbrev_prefix_cmd): Constify.
3088
3089 2017-11-07 Pedro Alves <palves@redhat.com>
3090
3091 * breakpoint.c (extract_bp_kind): New enum.
3092 (extract_bp_num, extract_bp_or_bp_range): New functions, partially
3093 factored out from ...
3094 (extract_bp_number_and_location): ... here.
3095 * cli/cli-utils.c (get_number_trailer): Handle '-$variable'.
3096
3097 2017-11-07 Pedro Alves <palves@redhat.com>
3098
3099 * breakpoint.c (extract_bp_number_and_location): Change return
3100 type to void. Throw error instead of warning.
3101 (enable_disable_command): Adjust.
3102
3103 2017-11-07 Xavier Roirand <roirand@adacore.com>
3104 Pedro Alves <palves@redhat.com>
3105
3106 * breakpoint.c (map_breakpoint_number_range): New, factored out
3107 from ...
3108 (map_breakpoint_numbers): ... here.
3109 (find_location_by_number): Change parameters from string to
3110 breakpoint number and location.
3111 (extract_bp_number_and_location): New function.
3112 (enable_disable_bp_num_loc)
3113 (enable_disable_breakpoint_location_range)
3114 (enable_disable_command): New functions, factored out ...
3115 (enable_command, disable_command): ... these functions, and
3116 adjusted to support ranges.
3117 * NEWS: Document enable/disable breakpoint location range feature.
3118
3119 2017-11-06 Luis Machado <luis.machado@linaro.org>
3120
3121 * MAINTAINERS (Write After Approval): Update my e-mail address.
3122
3123 2017-11-06 Pedro Alves <palves@redhat.com>
3124
3125 * gnu-nat.c (gnu_terminal_init): Delete.
3126 (gnu_target): Don't install gnu_terminal_init.
3127 * inflow.c (child_terminal_init_with_pgrp): Delete, merged with ...
3128 (child_terminal_init): ... this function.
3129
3130 2017-11-06 Pedro Alves <palves@redhat.com>
3131
3132 * common/common.m4 (GDB_AC_COMMON): No longer check termio.h nor
3133 sgtty.h.
3134 * config.in, configure: Regenerate.
3135
3136 2017-11-06 Pedro Alves <palves@redhat.com>
3137
3138 * event-top.c: Check SIGTSTP instead of STOP_SIGNAL thoughout.
3139 (async_init_signals): Adjust.
3140 (handle_stop_sig): Rename to ...
3141 (handle_sigtstp): ... this.
3142 (async_stop_sig): Rename to ...
3143 (async_sigtstp_handler): ... this, and delete STOP_SIGNAL !=
3144 SIGTSTP path.
3145 * event-top.h: Move signal.h include to the top. Check SIGTSTP
3146 instead of STOP_SIGNAL thoughout.
3147 (handle_stop_sig): Rename to ...
3148 (handle_sigtstp): ... this.
3149 * top.c (command_line_input): Replace STOP_SIGNAL -> SIGTSTP.
3150
3151 2017-11-06 Pedro Alves <palves@redhat.com>
3152
3153 * inflow.c (child_terminal_inferior, child_terminal_ours_1): No
3154 longer set flags twice in row.
3155
3156 2017-11-06 Pedro Alves <palves@redhat.com>
3157
3158 * Makefile.in (SER_HARDWIRE): Update comment.
3159 (HFILES_NO_SRCDIR): Remove gdb_termios.h.
3160 * common/gdb_termios.h: Delete file.
3161 * common/job-control.c: Include termios.h and unistd.h instead of
3162 gdb_termios.h.
3163 (gdb_setpgid): Remove HAVE_TERMIOS || TIOCGPGRP preprocessor
3164 check.
3165 (have_job_control): Check HAVE_TERMIOS_H instead of HAVE_TERMIOS.
3166 Remove sgtty code.
3167 * configure.ac: No longer check for termio.h and sgtty.h.
3168 * configure: Regenerate.
3169 * inflow.c: Include termios.h instead of gdb_termios.h. Replace
3170 PROCESS_GROUP_TYPE checks with HAVE_TERMIOS_H checks throughout.
3171 Replace PROCESS_GROUP_TYPE references with pid_t references
3172 throughout.
3173 (gdb_getpgrp): Delete.
3174 (set_initial_gdb_ttystate): Use tcgetpgrp instead of gdb_getpgrp.
3175 (child_terminal_inferior): Remove comment. Remove sgtty code.
3176 (child_terminal_ours_1): Use tcgetpgrp directly instead of
3177 gdb_getpgrp. Use serial_set_tty_state instead aof
3178 serial_noflush_set_tty_state. Remove sgtty code.
3179 * inflow.h: Include unistd.h instead of gdb_termios.h. Replace
3180 PROCESS_GROUP_TYPE check with HAVE_TERMIOS_H check.
3181 (inferior_process_group): Now returns pid_t.
3182 * ser-base.c (ser_base_noflush_set_tty_state): Delete.
3183 * ser-base.h (ser_base_noflush_set_tty_state): Delete.
3184 * ser-event.c (serial_event_ops): Update.
3185 * ser-go32.c (dos_noflush_set_tty_state): Delete.
3186 (dos_ops): Update.
3187 * ser-mingw.c (hardwire_ops, tty_ops, pipe_ops, tcp_ops): Update.
3188 * ser-pipe.c (pipe_ops): Update.
3189 * ser-tcp.c (tcp_ops): Update.
3190 * ser-unix.c: Include termios.h instead of gdb_termios.h. Remove
3191 HAVE_TERMIOS checks.
3192 [HAVE_TERMIO] (struct hardwire_ttystate): Delete.
3193 [HAVE_SGTTY] (struct hardwire_ttystate): Delete.
3194 (get_tty_state, set_tty_state): Drop termio and sgtty code, and
3195 assume termios.
3196 (hardwire_noflush_set_tty_state): Delete.
3197 (hardwire_print_tty_state, hardwire_drain_output)
3198 (hardwire_flush_output, hardwire_flush_input)
3199 (hardwire_send_break, hardwire_raw, hardwire_setbaudrate)
3200 (hardwire_setstopbits, hardwire_setparity): Drop termio and sgtty
3201 code, and assume termios.
3202 (hardwire_ops): Update.
3203 (_initialize_ser_hardwire): Remove HAVE_TERMIOS check.
3204 * serial.c (serial_noflush_set_tty_state): Delete.
3205 * serial.h (serial_noflush_set_tty_state): Delete.
3206 (serial_ops::noflush_set_tty_state): Delete.
3207
3208 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3209
3210 * Makefile.in (SFILES): Remove doublest.c and dfp.c.
3211 (HFILES_NO_SRCDIR): Remove doublest.h and dfp.h.
3212 (COMMON_OBS): Remove doublest.o and dfp.o.
3213 Do not build target-float.c (instead of doublest.c)
3214 with -Wformat-nonliteral.
3215
3216 * doublest.c: Remove file.
3217 * doublest.h: Remove file.
3218 * dfp.c: Remove file.
3219 * dfp.h: Remove file.
3220
3221 * target-float.c: Do not include "doublest.h" and "dfp.h".
3222 (DOUBLEST): Move here from doublest.h.
3223 (enum float_kind): Likewise.
3224 (FLOATFORMAT_CHAR_BIT): Likewise.
3225 (FLOATFORMAT_LARGEST_BYTES): Likewise.
3226 (floatformat_totalsize_bytes): Move here from doublest.c. Make static.
3227 (floatformat_precision): Likewise.
3228 (floatformat_normalize_byteorder, get_field, put_field): Likewise.
3229 (floatformat_is_negative, floatformat_classify, floatformat_mantissa):
3230 Likewise.
3231 (host_float_format, host_double_format, host_long_double_format):
3232 Likewise.
3233 (floatformat_to_string, floatformat_from_string): Likewise.
3234 (floatformat_to_doublest): Likewise. Also, inline the original
3235 convert_floatformat_to_doublest.
3236 (floatformat_from_doublest): Likewise. Also, inline the original
3237 convert_floatformat_from_doublest.
3238
3239 Include "dpd/decimal128.h", "dpd/decimal64.h", and "dpd/decimal32.h".
3240 (MAX_DECIMAL_STRING): Move here from dfp.c.
3241 (match_endianness): Likewise.
3242 (set_decnumber_context, decimal_check_errors): Likewise.
3243 (decimal_from_number, decimal_to_number): Likewise.
3244 (decimal_to_string, decimal_from_string): Likewise. Make static.
3245 (decimal_from_longest, decimal_from_ulongest): Likewise.
3246 (decimal_to_longest): Likewise.
3247 (decimal_binop, decimal_is_zero, decimal_compare): Likewise.
3248 (decimal_convert): Likewise.
3249
3250 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3251
3252 * doublest.c: Do not include "gdbtypes.h".
3253 (extract_typed_floating): Remove.
3254 (store_typed_floating): Remove.
3255 (convert_typed_floating): Remove.
3256 * doublest.h (struct type): Remove.
3257 (DOUBLEST_PRINT_FORMAT): Remove.
3258 (DOUBLEST_SCAN_FORMAT): Remove.
3259 (extract_typed_floating): Remove.
3260 (store_typed_floating): Remove.
3261 (convert_typed_floating): Remove.
3262
3263 * dfp.c (decimal_from_doublest): Remove.
3264 (decimal_to_doublest): Remove.
3265 * dfp.h: Do not include "doublest.h".
3266 (decimal_from_doublest): Remove.
3267 (decimal_to_doublest): Remove.
3268
3269 * value.c: Do not include "doublest.h" and "dfp.h".
3270 (value_as_double): Remove.
3271 (unpack_double): Remove.
3272 (value_from_double): Remove.
3273 (value_from_decfloat): Remove.
3274 * value.h: Do not include "doublest.h".
3275 (value_as_double): Remove.
3276 (unpack_double): Remove.
3277 (value_from_double): Remove.
3278 (value_from_decfloat): Remove.
3279
3280 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3281
3282 * i386-tdep.c: Include "target-float.h". Do not include "doublest.h".
3283 (i386_extract_return_value): Use target_float_convert.
3284 (i386_store_return_value): Likewise.
3285 * i387-tdep.c (i387_register_to_value): Use target_float_convert.
3286 (i387_value_to_register): Likewise.
3287 * ia64-tdep.c: Include "target-float.h". Do not include "doublest.h".
3288 (ia64_register_to_value): Use target_float_convert.
3289 (ia64_value_to_register): Likewise.
3290 (ia64_extract_return_value): Likewise.
3291 (ia64_store_return_value): Likewise.
3292 (ia64_push_dummy_call): Likewise.
3293 * m68k-tdep.c: Include "target-float.h".
3294 (m68k_register_to_value): Use target_float_convert.
3295 (m68k_value_to_register): Likewise.
3296 (m68k_svr4_extract_return_value): Likewise.
3297 (m68k_svr4_store_return_value): Likewise.
3298 * ppc-sysv-tdep.c: Include "target-float.h".
3299 (ppc_sysv_abi_push_dummy_call): Use target_float_convert.
3300 (do_ppc_sysv_return_value): Likewise.
3301 (ppc64_sysv_abi_push_freg): Likewise.
3302 (ppc64_sysv_abi_return_value_base): Likewise.
3303 * rs6000-aix-tdep.c: Include "target-float.h".
3304 (rs6000_push_dummy_call): Use target_float_convert.
3305 (rs6000_return_value): Likewise.
3306 * rs6000-lynx178-tdep.c: Include "target-float.h".
3307 (rs6000_lynx178_push_dummy_call): Use target_float_convert.
3308 (rs6000_lynx178_return_value): Likewise.
3309 * rs6000-tdep.c: Include "target-float.h". Do not include "doublest.h".
3310 (rs6000_register_to_value): Use target_float_convert.
3311 (rs6000_value_to_register): Likewise.
3312 * arm-tdep.c: Include "target-float.h". Do not include "doublest.h".
3313 (arm_extract_return_value): Use target_float_convert.
3314 (arm_store_return_value): Likewise.
3315 * sh-tdep.c: Include "target-float.h". Do not include "doublest.h".
3316 (sh_register_convert_to_virtual): Use target_float_convert.
3317 (sh_register_convert_to_raw): Likewise.
3318 * sh64-tdep.c: Include "target-float.h".
3319 (sh64_extract_return_value): Use target_float_convert.
3320 (sh64_register_convert_to_virtual): Likewise.
3321 (sh64_register_convert_to_raw): Likewise. Fix argument types.
3322
3323 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3324
3325 * target-float.c (floatformat_to_host_double): New function.
3326 (floatformat_from_host_double): Likewise.
3327 (target_float_to_host_double): Likewise.
3328 (target_float_from_host_double): Likewise.
3329 * target-float.h (target_float_to_host_double): Add prototype.
3330 (target_float_from_host_double): Likewise.
3331
3332 * guile/scm-value.c: Include "target-float.h".
3333 (gdbscm_value_to_real): Use target_float_to_host_double.
3334 Handle integer source values via value_as_long.
3335 * guile/scm-math.c: Include "target-float.h". Do not include
3336 "doublest.h", "dfp.h", and "expression.h".
3337 (vlscm_convert_typed_number): Use target_float_from_host_double.
3338 (vlscm_convert_number): Likewise.
3339
3340 * python/py-value.c (valpy_float): Use target_float_to_host_double.
3341 (convert_value_from_python): Use target_float_from_host_double.
3342
3343 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3344
3345 * ada-lang.c (cast_to_fixed): Reimplement in target arithmetic.
3346 (cast_from_fixed): Likewise.
3347 (ada_scaling_type): New function.
3348 (ada_delta): Return value instead of DOUBLEST. Perform target
3349 arithmetic instead of host arithmetic.
3350 (scaling_factor): Rename to ...
3351 (ada_scaling_factor) ... this. Make non-static. Return value instead
3352 of DOUBLEST. Perform target arithmetic instead of host arithmetic.
3353 (ada_fixed_to_float): Remove.
3354 (ada_float_to_fixed): Remove.
3355 * ada-lang.h (ada_fixed_to_float): Remove.
3356 (ada_float_to_fixed): Remove.
3357 (ada_delta): Return value instead of DOUBLEST.
3358 (ada_scaling_factor): Add prototype.
3359
3360 * ada-typeprint.c: Include "target-float.h".
3361 (print_fixed_point_type): Perform target arithmetic instead of
3362 host arithmetic.
3363 * ada-valprint.c: Include "target-float.h".
3364 (ada_val_print_num): Perform target arithmetic instead of
3365 host arithmetic for fixed-point types.
3366
3367 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3368
3369 * target-float.c: Include <math.h>.
3370 (floatformat_binop): New function.
3371 (floatformat_compare): Likewise.
3372 (target_float_binop): Likewise.
3373 (target_float_compare): Likewise.
3374 * target-float.h: Include "expression.h".
3375 (target_float_binop): Add prototype.
3376 (target_float_compare): Likewise.
3377
3378 * valarith.c: Do not include "doublest.h" and "dfp.h".
3379 Include "common/byte-vector.h".
3380 (value_args_as_decimal): Remove, replace by ...
3381 (value_args_as_target_float): ... this function. Handle both
3382 binary and decimal target floating-point formats.
3383 (scalar_binop): Handle both binary and decimal FP using
3384 value_args_as_target_float and target_float_binop.
3385 (value_equal): Handle both binary and decimal FP using
3386 value_args_as_target_float and target_float_compare.
3387 (value_less): Likewise.
3388 (value_pos): Handle all scalar types as simple copy.
3389 (value_neg): Handle all scalar types via BINOP_SUB from 0.
3390 * dfp.c (decimal_binop): Throw error instead of internal_error
3391 when called with an unsupported operation code.
3392
3393 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3394
3395 * target-float.c (target_float_to_string): New function.
3396 (target_float_from_string): New function.
3397 * target-float.h (target_float_to_string): Add prototype.
3398 (target_float_from_string): Add prototype.
3399
3400 * valprint.c: Include "target-float.h". Do not include
3401 "doublest.h" and "dfp.h".
3402 (print_floating): Use target_float_to_string.
3403 * printcmd.c: Include "target-float.h". Do not include "dfp.h".
3404 (printf_floating): Use target_float_to_string.
3405 * i387-tdep.c: Include "target-float.h". Do not include "doublest.h".
3406 (print_i387_value): Use target_float_to_string.
3407 * mips-tdep.c: Include "target-float.h".
3408 (mips_print_fp_register): Use target_float_to_string.
3409 * sh64-tdep.c: Include "target-float.h".
3410 (sh64_do_fp_register): Use target_float_to_string.
3411
3412 * parse.c: Include "target-float.h". Do not include
3413 "doublest.h" and "dfp.h".
3414 (parse_float): Use target_float_from_string.
3415 * stabsread.c: Include "target-float.h". Do not include "doublest.h".
3416 (define_symbol): Use target_float_from_string.
3417 * gdbarch-selftests.c: Include "target-float.h".
3418 (register_to_value_test): Use target_float_from_string.
3419
3420 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3421
3422 * Makefile.c (SFILES): Add target-float.c.
3423 (HFILES_NO_SRCDIR): Add target-float.h.
3424 (COMMON_OBS): Add target-float.o.
3425 * target-float.h: New file.
3426 * target-float.c: New file.
3427
3428 * doublest.c (floatformat_classify): Fix detection of float_zero.
3429
3430 * gdbtypes.c (is_floating_type): New function.
3431 * gdbtypes.h (is_floating_type): Add prototype.
3432
3433 * value.c: Do not include "floatformat.h".
3434 (unpack_double): Use target_float_is_valid.
3435 (is_floating_value): New function.
3436 * value.h (is_floating_value): Add prototype-
3437
3438 * valarith.c: Include "target-float.h".
3439 (value_logical_not): Use target_float_is_zero.
3440
3441 * python/py-value.c: Include "target-float.h".
3442 (valpy_nonzero): Use target_float_is_zero.
3443
3444 2017-11-04 Tom Tromey <tom@tromey.com>
3445
3446 * h8300-tdep.c (h8300_push_dummy_call): Use std::vector.
3447
3448 2017-11-04 Tom Tromey <tom@tromey.com>
3449
3450 * breakpoint.c (set_momentary_breakpoint): Return
3451 breakpoint_up.
3452 (until_break_command): Update.
3453 (new_until_break_fsm): Change argument types to
3454 breakpoint_up.
3455 (set_momentary_breakpoint_at_pc): Return breakpoint_up.
3456 (do_delete_breakpoint_cleanup, make_cleanup_delete_breakpoint):
3457 Remove.
3458 * infcmd.c (finish_forward): Update.
3459 * breakpoint.h (set_momentary_breakpoint)
3460 (set_momentary_breakpoint_at_pc): Return breakpoint_up.
3461 (make_cleanup_delete_breakpoint): Remove.
3462 (struct breakpoint_deleter): New.
3463 (breakpoint_up): New typedef.
3464 * infrun.c (insert_step_resume_breakpoint_at_sal_1): Update.
3465 (insert_exception_resume_breakpoint): Update.
3466 (insert_exception_resume_from_probe): Update.
3467 (insert_longjmp_resume_breakpoint): Update.
3468 * arm-linux-tdep.c (arm_linux_copy_svc): Update.
3469 * elfread.c (elf_gnu_ifunc_resolver_stop): Update.
3470 * infcall.c (call_function_by_hand_dummy): Update
3471
3472 2017-11-04 Tom Tromey <tom@tromey.com>
3473
3474 * c-typeprint.c (c_type_print_base): Use gdb::unique_xmalloc_ptr.
3475
3476 2017-11-04 Tom Tromey <tom@tromey.com>
3477
3478 * linux-tdep.c (linux_core_info_proc_mappings): Use
3479 gdb::def_vector.
3480 (linux_get_siginfo_data): Return gdb::byte_vector. Remove
3481 "size" argument.
3482 (linux_corefile_thread): Update.
3483 (linux_make_corefile_notes): Remove unused variable.
3484
3485 2017-11-04 Tom Tromey <tom@tromey.com>
3486
3487 * ppc-linux-tdep.c (ppc_linux_get_syscall_number): Use
3488 gdb::byte_vector.
3489
3490 2017-11-04 Tom Tromey <tom@tromey.com>
3491
3492 * objfiles.c (do_free_objfile_cleanup): Remove.
3493 * compile/compile-object-load.c (compile_object_load): Update.
3494 * objfiles.h (make_cleanup_free_objfile): Remove.
3495
3496 2017-11-04 Tom Tromey <tom@tromey.com>
3497
3498 * sparc64-tdep.c (do_examine): Use gdb::def_vector.
3499 (adi_read_versions): Change "tags" to "gdb_byte *".
3500 (adi_print_versions): Likewise.
3501
3502 2017-11-04 Tom Tromey <tom@tromey.com>
3503
3504 * breakpoint.c
3505 (scoped_rbreak_breakpoints::scoped_rbreak_breakpoints): Rename
3506 from start_rbreak_breakpoints.
3507 (scoped_rbreak_breakpoints): Rename from end_rbreak_breakpoints.
3508 * breakpoint.h (class scoped_rbreak_breakpoints): New.
3509 (start_rbreak_breakpoints, end_rbreak_breakpoints): Remove.
3510 * symtab.c (do_end_rbreak_breakpoints): Remove.
3511 (rbreak_command): Use scoped_rbreak_breakpoints, std::string.
3512
3513 2017-11-04 Tom Tromey <tom@tromey.com>
3514
3515 * cp-namespace.c (reset_directive_searched): Remove.
3516 (cp_lookup_symbol_via_imports): Use scoped_restore.
3517 * cp-support.c (reset_directive_searched): Remove.
3518 (make_symbol_overload_list_using): Use scoped_restore.
3519 * d-namespace.c (d_lookup_symbol_imports): Use scoped_restore.
3520 (reset_directive_searched): Remove.
3521
3522 2017-11-04 Tom Tromey <tom@tromey.com>
3523
3524 * symfile.c (find_separate_debug_file_by_debuglink): Use
3525 unique_xmalloc_ptr.
3526
3527 2017-11-04 Tom Tromey <tom@tromey.com>
3528
3529 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
3530 type of "info".
3531 (compute_stack_depth): Likewise.
3532 (do_compile_dwarf_expr_to_c): Use std::vector.
3533
3534 2017-11-04 Tom Tromey <tom@tromey.com>
3535
3536 * compile/compile-object-load.c (link_callbacks_einfo): Use
3537 std::string.
3538
3539 2017-11-04 Tom Tromey <tom@tromey.com>
3540
3541 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
3542 Use scoped_free_pendings.
3543 * dbxread.c (dbx_symfile_read, dbx_psymtab_to_symtab_1): Use
3544 scoped_free_pendings.
3545 * xcoffread.c (xcoff_psymtab_to_symtab_1): Use scoped_free_pendings.
3546 (xcoff_initial_scan): Likewise.
3547 * buildsym.c (reset_symtab_globals): Update comment.
3548 (scoped_free_pendings): Rename from really_free_pendings.
3549 (prepare_for_building): Update comment.
3550 (buildsym_init): Likewise.
3551 * buildsym.h (class scoped_free_pendings): New class.
3552 (really_free_pendings): Don't declare.
3553
3554 2017-11-03 Ulrich Weigand <uweigand@de.ibm.com>
3555
3556 * doublest.c (convert_doublest_to_floatformat): Fix uninitialized
3557 output when converting a zero value to a special byteorder format.
3558
3559 2017-11-02 Yao Qi <yao.qi@linaro.org>
3560
3561 * frame.c (do_frame_register_read): Remove aspace.
3562 * jit.c (jit_frame_sniffer): Likwise.
3563 * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
3564 * regcache.c (regcache::regcache): Pass nullptr.
3565 (regcache_print): Caller updated.
3566 * regcache.h (regcache::regcache): Remove one constructor
3567 parameter aspace.
3568
3569 2017-11-02 Yao Qi <yao.qi@linaro.org>
3570
3571 * regcache.h (regcache) <m_readonly_p>: Change it to const bool.
3572
3573 2017-11-02 Yao Qi <yao.qi@linaro.org>
3574
3575 * breakpoint.c (insert_single_step_breakpoints): Update.
3576 * frame.c (struct frame_info) <aspace>: Add const.
3577 (frame_save_as_regcache): Add const.
3578 (get_frame_address_space): Return const address_space *.
3579 * frame.h (get_frame_address_space): Update declaration.
3580 * infrun.c (struct step_over_info) <aspace>: Add const.
3581 (set_step_over_info): Make aspace const.
3582 (displaced_step_prepare_throw): Change variable const.
3583 (resume): Likewise.
3584 (proceed): Likewise.
3585 (adjust_pc_after_break): Likewise.
3586 (save_waitstatus): Likewise.
3587 (handle_signal_stop): Likewise.
3588 (keep_going_pass_signal): Likewise.
3589 * jit.c (jit_frame_sniffer): Add const.
3590 * mips-tdep.c (mips_single_step_through_delay): Likewise.
3591 * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
3592 * record-full.c (record_full_wait_1): Likewise.
3593 * regcache.c (regcache::regcache): Change parameter to const.
3594 * regcache.h (regcache::regcache): Likewise.
3595 (regcache::aspace): Return const address_space *.
3596 (regcache) <m_aspace>: Add const.
3597
3598 2017-11-02 Yao Qi <yao.qi@linaro.org>
3599
3600 * darwin-nat.c (cancel_breakpoint): Use regcache->aspace ().
3601 * frame.c (create_sentinel_frame): Likewise.
3602 * infrun.c (displaced_step_prepare_throw): Likewise.
3603 (resume): Likewise.
3604 (thread_still_needs_step_over_bp): Likewise.
3605 (proceed): Likewise.
3606 (do_target_wait): Likewise.
3607 (adjust_pc_after_break): Likewise.
3608 (handle_syscall_event): Likewise.
3609 (save_waitstatus): Likewise.
3610 (handle_inferior_event_1): Likewise.
3611 (handle_signal_stop): Likewise.
3612 (keep_going_pass_signal): Likewise.
3613 * linux-nat.c (status_callback): Likewise.
3614 (save_stop_reason): Likewise.
3615 (resume_stopped_resumed_lwps): Likewise.
3616 * record-full.c (record_full_exec_insn): Likewise.
3617 (record_full_wait_1): Likewise.
3618 * regcache.c (get_regcache_aspace): Remove.
3619 * regcache.h (get_regcache_aspace): Remove.
3620
3621 2017-11-02 Yao Qi <yao.qi@linaro.org>
3622
3623 * regcache.c (struct regcache_descr) <nr_raw_registers>: Remove.
3624 (init_regcache_descr): Use gdbarch_num_regs.
3625 (regcache::regcache): Likewise.
3626 (regcache::get_register_status): Likewise.
3627 (regcache::assert_raw_regnum): Likewise.
3628 (regcache::cooked_read): Likewise.
3629 (regcache::cooked_read_value): Likewise.
3630 (regcache::cooked_write): Likewise.
3631 (regcache::dump): Likewise.
3632 (regcache::num_raw_registers): New method.
3633 * regcache.h (class regcache) <num_raw_registers>: New.
3634
3635 2017-11-02 Yao Qi <yao.qi@linaro.org>
3636
3637 * regcache.c (regcache::assert_regnum): New method.
3638 (regcache::invalidate): Call assert_regnum.
3639 (regcache::raw_update): Likewise.
3640 (regcache::raw_write): Likewise.
3641 (regcache::raw_read_part): Likewise.
3642 (regcache::raw_write_part): Likewise.
3643 (regcache::raw_supply): Likewise.
3644 (regcache::raw_supply_integer): Likewise.
3645 (regcache::raw_supply_zeroed): Likewise.
3646 (regcache::raw_collect): Likewise.
3647 (regcache::raw_collect_integer): Likewise.
3648 * regcache.h (regcache::assert_regnum): Declare.
3649
3650 2017-11-02 Yao Qi <yao.qi@linaro.org>
3651
3652 * regcache.c (regcache::dump): Remove code.
3653
3654 2017-11-02 Yao Qi <yao.qi@linaro.org>
3655
3656 * regcache.c (struct regcache_descr) <sizeof_raw_register_status>:
3657 Remove.
3658 <sizeof_cooked_register_status>: Remove.
3659 (init_regcache_descr): Update.
3660 (regcache::regcache): Use nr_cooked_registers and nr_raw_registers.
3661 (regcache::save): Likewise.
3662 (regcache::dump): Likewise.
3663
3664 2017-11-01 James Bowman <james.bowman@ftdichip.com>
3665
3666 * ft32-tdep.c (ft32_fetch_instruction): New function.
3667 (ft32_analyze_prologue): Use ft32_fetch_instruction().
3668
3669 2017-10-31 Simon Marchi <simon.marchi@polymtl.ca>
3670
3671 * cli/cli-script.c (execute_control_command): Rename to ...
3672 (execute_control_command_1): ... this.
3673 (execute_control_command): New function.
3674
3675 2017-10-31 Simon Marchi <simon.marchi@ericsson.com>
3676
3677 * tracepoint.c (tfind_command): Remove const_cast.
3678
3679 2017-10-30 Mike Gulick <mgulick@mathworks.com>
3680
3681 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to gdb.h.
3682
3683 2017-10-30 Simon Marchi <simon.marchi@ericsson.com>
3684
3685 * common/common-utils.h (in_inclusive_range): New function.
3686 * arm-tdep.c (arm_record_extension_space): Use
3687 in_inclusive_range.
3688 (thumb_record_ld_st_reg_offset): Use in_inclusive_range.
3689 * cris-tdep.c (cris_spec_reg_applicable): Use
3690 in_inclusive_range.
3691
3692 2017-10-30 Pedro Alves <palves@redhat.com>
3693 Simon Marchi <simon.marchi@ericsson.com>
3694
3695 * remote.c (remote_set_syscall_catchpoint): Build a std::string
3696 instead of a gdb::unique_xmalloc_ptr, using string_appendf.
3697
3698 2017-10-30 Pedro Alves <palves@redhat.com>
3699
3700 * common/common-utils.c (string_appendf, string_vappendf): New
3701 functions.
3702 * common/common-utils.h (string_appendf, string_vappendf): New
3703 declarations.
3704 * unittests/common-utils-selftests.c (string_appendf_func)
3705 (test_appendf_func, string_vappendf_wrapper, string_appendf_tests)
3706 (string_vappendf_tests): New functions.
3707 (_initialize_common_utils_selftests): Register "string_appendf" and
3708 "string_vappendf tests".
3709
3710 2017-10-30 Pedro Alves <palves@redhat.com>
3711
3712 * unittests/common-utils-selftests.c (format_func): New typedef.
3713 (string_printf_tests, string_vprintf_tests): Tests factored out
3714 and merged to ...
3715 (test_format_func): ... this new function.
3716 (string_printf_tests, string_vprintf_tests): Reimplement on top of
3717 test_format_func.
3718
3719 2017-10-29 Simon Marchi <simon.marchi@ericsson.com>
3720
3721 * darwin-nat.c: Remove include of gdb.h.
3722
3723 2017-10-29 Simon Marchi <simon.marchi@ericsson.com>
3724
3725 * xtensa-xtregs.c: Fix formatting issues.
3726
3727 2017-10-29 Simon Marchi <simon.marchi@ericsson.com>
3728
3729 * xtensa-xtregs.c (xtensa_regtable_t) <name>: Constify.
3730
3731 2017-10-28 Maksim Dzabraev <dzabraew@gmail.com>
3732
3733 PR python/21213
3734 * python/py-infthread.c (thpy_get_inferior): Increment reference
3735 of inferior before returning it.
3736
3737 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3738
3739 * unittests/common-utils-selftests.c (format): Add
3740 ATTRIBUTE_PRINTF.
3741
3742 2017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
3743
3744 * xml-syscall.c (struct syscall_desc): Add constructor.
3745 <name>: Change type to std::string.
3746 (syscall_desc_up): New typedef.
3747 (syscall_desc_p): Remove typeder.
3748 (DEF_VEC_P(syscall_desc_p)): Remove.
3749 (struct syscall_group_desc): Add constructor.
3750 <name>: Change type to std::string.
3751 <syscalls>: Change type to std::vector.
3752 (syscall_group_desc_up): New typedef.
3753 (syscall_group_desc_p): Remove typedef.
3754 (DEF_VEC_P(syscall_group_desc_p)): Remove.
3755 (struct syscalls_info) <syscalls>: Change type to std::vector of
3756 unique_ptr.
3757 <groups>: Likewise.
3758 <my_gdb_datadir>: Change type to std::string.
3759 (syscalls_info_up): New typedef.
3760 (allocate_syscalls_info): Remove.
3761 (syscalls_info_free_syscalls_desc): Remove.
3762 (syscalls_info_free_syscall_group_desc): Remove.
3763 (free_syscalls_info): Remove.
3764 (make_cleanup_free_syscalls_info): Remove.
3765 (syscall_group_create_syscall_group_desc): Adjust.
3766 (syscall_group_add_syscall): Adjust.
3767 (syscall_create_syscall_desc): Adjust.
3768 (syscall_parse_xml): Adjust, use unique_ptr instead of cleanup.
3769 (init_syscalls_info): Adjust.
3770 (syscall_group_get_group_by_name): Adjust.
3771 (xml_get_syscall_number): Adjust.
3772 (xml_get_syscall_name): Adjust.
3773 (xml_list_of_syscalls): Adjust.
3774 (xml_list_syscalls_by_group): Adjust.
3775 (xml_list_of_groups): Adjust.
3776
3777 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3778
3779 * probe.h: Don't include gdb_vecs.h.
3780 (DEF_VEC_P (probe_p)): Remove.
3781 (find_probes_in_objfile): Return an std::vector.
3782 * probe.c (find_probes_in_objfile): Likewise.
3783 * breakpoint.c (breakpoint_objfile_data)
3784 <longjmp_probes>: Change type to std::vector.
3785 <exception_probes>: Likewise.
3786 (free_breakpoint_probes): Don't manually free vectors.
3787 (create_longjmp_master_breakpoint): Adjust.
3788 (create_exception_master_breakpoint): Adjust.
3789 * solib-svr4.c (svr4_create_probe_breakpoints): Change
3790 parameter type, adjust.
3791 (svr4_create_solib_event_breakpoints): Adjust.
3792
3793 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3794
3795 * breakpoint.c (breakpoint_objfile_data): Initialize fields.
3796 (get_breakpoint_objfile_data): Allocate breakpoint_objfile_data
3797 with new.
3798 (free_breakpoint_probes): Rename to ...
3799 (free_breakpoint_objfile_data): ... this, and call delete on
3800 bp_objfile_data..
3801
3802 2017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
3803
3804 * auto-load.c: Don't include gdb_vecs.h, include algorithm.
3805 (loaded_script_ptr): Remove typedef.
3806 (DEF_VEC_P (loaded_script_ptr)): Remove.
3807 (struct collect_matching_scripts_data): Add constructor.
3808 <scripts_p>: Change type to (pointer to) std::vector.
3809 (collect_matching_scripts_data): Adjust.
3810 (sort_scripts_by_name): Make suitable for std::sort.
3811 (print_scripts): Don't sort vector, adjust to std::vector.
3812 (auto_load_info_scripts): Sort vectors, adjust to std::vector.
3813
3814 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3815
3816 * symfile.c (filename_language): Make struct, not typedef. Add
3817 constructor.
3818 <ext>: Change type to std::string.
3819 (DEF_VEC_O (filename_language)): Remove.
3820 (filename_language_table): Change type to std::vector.
3821 (add_filename_language): Adjust.
3822 (set_ext_lang_command): Adjust.
3823 (info_ext_lang_command): Adjust.
3824 (deduce_language_from_filename): Adjust.
3825 (class scoped_restore_filename_language_table): Remove.
3826 (test_filename_language): Use scoped_restore.
3827 (test_set_ext_lang_command): Use scoped_restore, adjust to
3828 std::vector change.
3829
3830 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3831
3832 * symfile.c: Include selftest.h.
3833 (class scoped_restore_filename_language_table): New.
3834 (test_filename_language): New test.
3835 (test_set_ext_lang_command): New test.
3836 (_initialize_symfile): Register tests.
3837
3838 2017-10-27 Keith Seitz <keiths@redhat.com>
3839
3840 * breakpoint.c (print_breakpoint_location): Use the symbol saved
3841 in the bp_location, falling back to find_pc_sect_function when
3842 needed.
3843 (add_location_to_breakpoint): Save sal->symbol.
3844 * breakpoint.h (struct bp_location) <symbol>: New field.
3845 * symtab.c (find_function_start_sal): Save the symbol into the SaL.
3846 * symtab.h (struct symtab_and_line) <symbol>: New field.
3847
3848 2017-10-26 Patrick Frants <osscontribute@gmail.com>
3849
3850 PR gdb/13669
3851 * cp-valprint.c (cp_print_value_fields): Use obstack_blank_fast
3852 to rewind obstack.
3853
3854 2017-10-26 Pedro Alves <palves@redhat.com>
3855
3856 * remote.c (remote_async_terminal_ours_p): Delete.
3857 (remote_open_1, remote_terminal_inferior, remote_terminal_ours):
3858 Remove references to 'remote_async_terminal_ours_p'.
3859
3860 2017-10-26 Yao Qi <yao.qi@linaro.org>
3861
3862 * breakpoint.h (regular_breakpoint_inserted_here_p): Remove.
3863
3864 2017-10-26 Yao Qi <yao.qi@linaro.org>
3865
3866 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Make
3867 aspace const.
3868 * break-catch-syscall.c (breakpoint_hit_catch_syscall):
3869 Likewise.
3870 * breakpoint.c (bpstat_check_location): Remove cast.
3871 (breakpoint_hit_catch_fork): Make aspce const.
3872 (breakpoint_hit_catch_solib): Likewise.
3873 (breakpoint_hit_catch_exec): Likewise.
3874 (breakpoint_hit_ranged_breakpoint): Likewise.
3875 (breakpoint_hit_watchpoint): Likewise.
3876 (base_breakpoint_breakpoint_hit): Likewise.
3877 (bkpt_breakpoint_hit): Likewise.
3878 (dprintf_breakpoint_hit): Likewise.
3879 (tracepoint_breakpoint_hit): Likewise.
3880 * breakpoint.h (breakpoint_ops) <breakpoint_hit>: Likewise.
3881
3882 2017-10-26 Yao Qi <yao.qi@linaro.org>
3883
3884 * breakpoint.c (breakpoint_location_address_match): Change
3885 "struct address_space *" to "const address_space".
3886 (breakpoint_location_address_range_overlap): Likewise.
3887 (breakpoint_here_p): Likewise.
3888 (breakpoint_in_range_p): Likewise.
3889 (moribund_breakpoint_here_p): Likewise.
3890 (bp_location_inserted_here_p): Likewise.
3891 (software_breakpoint_inserted_here_p): Likewise.
3892 (hardware_breakpoint_inserted_here_p): Likewise.
3893 (hardware_watchpoint_inserted_in_range): Likewise.
3894 (bpstat_check_location): Likewise.
3895 (bpstat_stop_status): Likewise.
3896 (breakpoint_address_match): Likewise.
3897 (breakpoint_address_match_range): Likewise.
3898 (breakpoint_location_address_match): Likewise.
3899 (breakpoint_location_address_range_overlap): Likewise.
3900 (insert_single_step_breakpoint): Likewise.
3901 (breakpoint_has_location_inserted_here): Likewise.
3902 (single_step_breakpoint_inserted_here_p): Likewise.
3903 (pc_at_non_inline_function): Likewise.
3904 * breakpoint.h (bpstat_stop_status): Update declaration.
3905 (breakpoint_here_p): Likewise.
3906 (breakpoint_in_range_p): Likewise.
3907 (moribund_breakpoint_here_p): Likewise.
3908 (breakpoint_inserted_here_p): Likewise.
3909 (software_breakpoint_inserted_here_p): Likewise.
3910 (hardware_breakpoint_inserted_here_p): Likewise.
3911 (breakpoint_has_location_inserted_here): Likewise.
3912 (single_step_breakpoint_inserted_here_p): Likewise.
3913 (hardware_watchpoint_inserted_in_range): Likewise.
3914 (breakpoint_address_match): Likewise.
3915 (insert_single_step_breakpoint): Likewise.
3916 (pc_at_non_inline_function): Likewise.
3917 * gdbthread.h (thread_has_single_step_breakpoint_here): Likewise.
3918 * record.c (record_check_stopped_by_breakpoint): Likewise.
3919 * record.h (record_check_stopped_by_breakpoint): Likewise.
3920 * thread.c (thread_has_single_step_breakpoint_here): Likewise.
3921
3922 2017-10-25 Yao Qi <yao.qi@linaro.org>
3923
3924 * aarch32-linux-nat.c (aarch32_gp_regcache_supply): Use
3925 regcache->arch () instead get_regcache_arch.
3926 * aarch64-fbsd-nat.c (aarch64_fbsd_fetch_inferior_registers):
3927 Likewise.
3928 (aarch64_fbsd_store_inferior_registers): Likewise.
3929 * aarch64-linux-nat.c (fetch_gregs_from_thread): Likewise.
3930 (store_gregs_to_thread): Likewise.
3931 (fetch_fpregs_from_thread): Likewise.
3932 (store_fpregs_to_thread): Likewise.
3933 * aarch64-tdep.c (aarch64_extract_return_value): Likewise.
3934 (aarch64_store_return_value): Likewise.
3935 (aarch64_software_single_step): Likewise.
3936 * aix-thread.c (aix_thread_wait): Likewise.
3937 (supply_reg32): Likewise.
3938 (supply_sprs64): Likewise.
3939 (supply_sprs32): Likewise.
3940 (fill_gprs64): Likewise.
3941 (fill_gprs32): Likewise.
3942 (fill_sprs64): Likewise.
3943 (fill_sprs32): Likewise.
3944 (store_regs_user_thread): Likewise.
3945 (store_regs_kernel_thread): Likewise.
3946 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
3947 (alphabsd_store_inferior_registers): Likewise.
3948 * alpha-tdep.c (alpha_extract_return_value): Likewise.
3949 (alpha_store_return_value): Likewise.
3950 (alpha_deal_with_atomic_sequence): Likewise.
3951 (alpha_next_pc): Likewise.
3952 (alpha_software_single_step): Likewise.
3953 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
3954 (amd64bsd_store_inferior_registers): Likewise.
3955 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
3956 Likewise.
3957 (amd64_linux_store_inferior_registers): Likewise.
3958 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
3959 (amd64_collect_native_gregset): Likewise.
3960 * amd64-obsd-tdep.c (amd64obsd_supply_uthread): Likewise.
3961 (amd64obsd_collect_uthread): Likewise.
3962 * amd64-tdep.c (amd64_supply_fpregset): Likewise.
3963 (amd64_collect_fpregset): Likewise.
3964 (amd64_supply_fxsave): Likewise.
3965 (amd64_supply_xsave): Likewise.
3966 (amd64_collect_fxsave): Likewise.
3967 (amd64_collect_xsave): Likewise.
3968 * arc-tdep.c (arc_write_pc): Likewise.
3969 * arch-utils.c (default_skip_permanent_breakpoint): Likewise.
3970 * arm-fbsd-nat.c (arm_fbsd_fetch_inferior_registers): Likewise.
3971 (arm_fbsd_store_inferior_registers): Likewise.
3972 * arm-linux-nat.c (fetch_vfp_regs): Likewise.
3973 (store_vfp_regs): Likewise.
3974 (arm_linux_fetch_inferior_registers): Likewise.
3975 (arm_linux_store_inferior_registers): Likewise.
3976 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
3977 (arm_linux_sigreturn_next_pc): Likewise.
3978 (arm_linux_get_next_pcs_syscall_next_pc): Likewise.
3979 * arm-nbsd-nat.c (arm_supply_gregset): Likewise.
3980 (fetch_register): Likewise.
3981 (store_register): Likewise.
3982 * arm-tdep.c (arm_is_thumb): Likewise.
3983 (displaced_in_arm_mode): Likewise.
3984 (bx_write_pc): Likewise.
3985 (arm_get_next_pcs_addr_bits_remove): Likewise.
3986 (arm_software_single_step): Likewise.
3987 (arm_extract_return_value): Likewise.
3988 (arm_store_return_value): Likewise.
3989 (arm_write_pc): Likewise.
3990 * bfin-tdep.c (bfin_extract_return_value): Likewise.
3991 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
3992 (bsd_uthread_store_registers): Likewise.
3993 * core-regset.c (fetch_core_registers): Likewise.
3994 * corelow.c (get_core_registers): Likewise.
3995 * cris-tdep.c (cris_store_return_value): Likewise.
3996 (cris_extract_return_value): Likewise.
3997 (find_step_target): Likewise.
3998 (find_step_target): Likewise.
3999 (cris_software_single_step): Likewise.
4000 * ctf.c (ctf_fetch_registers): Likewise.
4001 * darwin-nat.c (cancel_breakpoint): Likewise.
4002 * fbsd-tdep.c (fbsd_collect_thread_registers): Likewise.
4003 * frv-tdep.c (frv_extract_return_value): Likewise.
4004 * ft32-tdep.c (ft32_store_return_value): Likewise.
4005 (ft32_extract_return_value): Likewise.
4006 * go32-nat.c (fetch_register): Likewise.
4007 (go32_fetch_registers): Likewise.
4008 (go32_store_registers): Likewise.
4009 (store_register): Likewise.
4010 * h8300-tdep.c (h8300_extract_return_value): Likewise.
4011 (h8300_store_return_value): Likewise.
4012 * hppa-linux-nat.c (fetch_register): Likewise.
4013 (store_register): Likewise.
4014 (hppa_linux_fetch_inferior_registers): Likewise.
4015 (hppa_linux_store_inferior_registers): Likewise.
4016 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Likewise.
4017 (i386_darwin_store_inferior_registers): Likewise.
4018 * i386-gnu-nat.c (gnu_fetch_registers): Likewise.
4019 (gnu_store_registers): Likewise.
4020 * i386-linux-nat.c (fetch_register): Likewise.
4021 (store_register): Likewise.
4022 (supply_gregset): Likewise.
4023 (fill_gregset): Likewise.
4024 (i386_linux_fetch_inferior_registers): Likewise.
4025 (i386_linux_store_inferior_registers): Likewise.
4026 (i386_linux_resume): Likewise.
4027 * i386-linux-tdep.c (i386_linux_get_syscall_number_from_regcache):
4028 Likewise.
4029 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
4030 * i386-obsd-nat.c (i386obsd_supply_pcb): Likewise.
4031 * i386-obsd-tdep.c (i386obsd_supply_uthread): Likewise.
4032 (i386obsd_collect_uthread): Likewise.
4033 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
4034 (i386_supply_gregset): Likewise.
4035 (i386_collect_gregset): Likewise.
4036 (i386_supply_fpregset): Likewise.
4037 (i386_collect_fpregset): Likewise.
4038 (i386_mpx_bd_base): Likewise.
4039 * i386-v4-nat.c (supply_fpregset): Likewise.
4040 (fill_fpregset): Likewise.
4041 * i387-tdep.c (i387_supply_fsave): Likewise.
4042 (i387_collect_fsave): Likewise.
4043 (i387_supply_fxsave): Likewise.
4044 (i387_collect_fxsave): Likewise.
4045 (i387_supply_xsave): Likewise.
4046 (i387_collect_xsave): Likewise.
4047 * ia64-linux-nat.c (ia64_linux_fetch_registers): Likewise.
4048 (ia64_linux_store_registers): Likewise.
4049 * ia64-tdep.c (ia64_access_rse_reg): Likewise.
4050 (ia64_extract_return_value): Likewise.
4051 (ia64_store_return_value): Likewise.
4052 (find_func_descr): Likewise.
4053 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
4054 * inf-ptrace.c (inf_ptrace_fetch_registers): Likewise.
4055 (inf_ptrace_store_registers): Likewise.
4056 * infrun.c (use_displaced_stepping): Likewise.
4057 (displaced_step_prepare_throw): Likewise.
4058 (resume): Likewise.
4059 (proceed): Likewise.
4060 (do_target_wait): Likewise.
4061 (adjust_pc_after_break): Likewise.
4062 (handle_inferior_event_1): Likewise.
4063 (handle_signal_stop): Likewise.
4064 (save_infcall_suspend_state): Likewise.
4065 (restore_infcall_suspend_state): Likewise.
4066 * iq2000-tdep.c (iq2000_extract_return_value): Likewise.
4067 * jit.c (jit_frame_prev_register): Likewise.
4068 * linux-nat.c (save_stop_reason): Likewise.
4069 (linux_nat_wait_1): Likewise.
4070 (resume_stopped_resumed_lwps): Likewise.
4071 * linux-record.c (record_linux_sockaddr): Likewise.
4072 (record_linux_msghdr): Likewise.
4073 (record_linux_system_call): Likewise.
4074 * linux-tdep.c (linux_collect_thread_registers): Likewise.
4075 * lm32-tdep.c (lm32_extract_return_value): Likewise.
4076 (lm32_store_return_value): Likewise.
4077 * m32c-tdep.c (m32c_read_flg): Likewise.
4078 (m32c_pseudo_register_read): Likewise.
4079 (m32c_pseudo_register_write): Likewise.
4080 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Likewise.
4081 (m32r_linux_collect_gregset): Likewise.
4082 * m32r-tdep.c (m32r_store_return_value): Likewise.
4083 (m32r_extract_return_value): Likewise.
4084 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
4085 (m68kbsd_collect_fpregset): Likewise.
4086 * m68k-bsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
4087 * m68k-linux-nat.c (fetch_register): Likewise.
4088 (old_fetch_inferior_registers): Likewise.
4089 (old_store_inferior_registers): Likewise.
4090 (store_regs): Likewise.
4091 * m68k-tdep.c (m68k_svr4_extract_return_value): Likewise.
4092 (m68k_svr4_store_return_value): Likewise.
4093 * m88k-tdep.c (m88k_store_arguments): Likewise.
4094 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Likewise.
4095 (mi_cmd_data_write_register_values): Likewise.
4096 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers): Likewise.
4097 (mips_fbsd_store_inferior_registers): Likewise.
4098 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Likewise.
4099 (mips_fbsd_supply_gregs): Likewise.
4100 (mips_fbsd_collect_fpregs): Likewise.
4101 (mips_fbsd_collect_gregs): Likewise.
4102 (mips_fbsd_supply_fpregset): Likewise.
4103 (mips_fbsd_collect_fpregset): Likewise.
4104 (mips_fbsd_supply_gregset): Likewise.
4105 (mips_fbsd_collect_gregset): Likewise.
4106 * mips-linux-nat.c (supply_gregset): Likewise.
4107 (fill_gregset): Likewise.
4108 (supply_fpregset): Likewise.
4109 (fill_fpregset): Likewise.
4110 * mips-linux-tdep.c (mips_supply_gregset): Likewise.
4111 (mips_fill_gregset): Likewise.
4112 (mips_supply_fpregset): Likewise.
4113 (mips_fill_fpregset): Likewise.
4114 (mips64_supply_gregset): Likewise.
4115 (micromips_linux_sigframe_validate): Likewise.
4116 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
4117 (mipsnbsd_fetch_inferior_registers): Likewise.
4118 (mipsnbsd_store_inferior_registers): Likewise.
4119 * mips-nbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
4120 (mipsnbsd_supply_gregset): Likewise.
4121 (mipsnbsd_iterate_over_regset_sections): Likewise.
4122 (mipsnbsd_supply_reg): Likewise.
4123 (mipsnbsd_supply_fpreg): Likewise.
4124 * mips-tdep.c (mips_in_frame_stub): Likewise.
4125 (mips_dummy_id): Likewise.
4126 (is_octeon_bbit_op): Likewise.
4127 (micromips_bc1_pc): Likewise.
4128 (extended_mips16_next_pc): Likewise.
4129 (mips16_next_pc): Likewise.
4130 (deal_with_atomic_sequence): Likewise.
4131 * moxie-tdep.c (moxie_process_readu): Likewise.
4132 * nios2-tdep.c (nios2_get_next_pc): Likewise.
4133 * nto-procfs.c (procfs_store_registers): Likewise.
4134 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers): Likewise.
4135 (ppcfbsd_store_inferior_registers): Likewise.
4136 * ppc-linux-nat.c (fetch_vsx_register): Likewise.
4137 (fetch_altivec_register): Likewise.
4138 (get_spe_registers): Likewise.
4139 (fetch_spe_register): Likewise.
4140 (fetch_altivec_registers): Likewise.
4141 (fetch_all_gp_regs): Likewise.
4142 (fetch_all_fp_regs): Likewise.
4143 (store_vsx_register): Likewise.
4144 (store_altivec_register): Likewise.
4145 (set_spe_registers): Likewise.
4146 (store_spe_register): Likewise.
4147 (store_altivec_registers): Likewise.
4148 (store_all_gp_regs): Likewise.
4149 (store_all_fp_regs): Likewise.
4150 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
4151 (ppc_linux_collect_gregset): Likewise.
4152 (ppc_canonicalize_syscall): Likewise.
4153 (ppc_linux_record_signal): Likewise.
4154 (ppu2spu_prev_register): Likewise.
4155 * ppc-nbsd-nat.c (ppcnbsd_supply_pcb): Likewise.
4156 * ppc-obsd-nat.c (ppcobsd_fetch_registers): Likewise.
4157 (ppcobsd_store_registers): Likewise.
4158 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_fetch_registers):
4159 Likewise.
4160 (ppc_ravenscar_generic_store_registers): Likewise.
4161 * procfs.c (procfs_fetch_registers): Likewise.
4162 (procfs_store_registers): Likewise.
4163 * ravenscar-thread.c (ravenscar_fetch_registers): Likewise.
4164 (ravenscar_store_registers): Likewise.
4165 (ravenscar_prepare_to_store): Likewise.
4166 * record-btrace.c (record_btrace_fetch_registers): Likewise.
4167 * record-full.c (record_full_wait_1): Likewise.
4168 (record_full_registers_change): Likewise.
4169 (record_full_store_registers): Likewise.
4170 (record_full_core_fetch_registers): Likewise.
4171 (record_full_save): Likewise.
4172 (record_full_goto_insn): Likewise.
4173 * regcache.c (regcache_register_size): Likewise.
4174 (get_regcache_arch): Remove.
4175 (regcache_read_pc): Likewise.
4176 * regcache.h (get_regcache_arch): Remove.
4177 * remote-sim.c (gdbsim_fetch_register): Likewise.
4178 (gdbsim_store_register): Likewise.
4179 * remote.c (fetch_register_using_p): Likewise.
4180 (send_g_packet): Likewise.
4181 (remote_prepare_to_store): Likewise.
4182 (store_registers_using_G): Likewise.
4183 * reverse.c (save_bookmark_command): Likewise.
4184 (goto_bookmark_command): Likewise.
4185 * rs6000-aix-tdep.c (branch_dest): Likewise.
4186 * rs6000-nat.c (rs6000_ptrace64): Likewise.
4187 (fetch_register): Likewise.
4188 * rs6000-tdep.c (ppc_supply_reg): Likewise.
4189 (ppc_collect_reg): Likewise.
4190 (ppc_collect_gregset): Likewise.
4191 (ppc_collect_fpregset): Likewise.
4192 (ppc_collect_vsxregset): Likewise.
4193 (ppc_collect_vrregset): Likewise.
4194 (ppc_displaced_step_hw_singlestep): Likewise.
4195 (rs6000_pseudo_register_read): Likewise.
4196 (rs6000_pseudo_register_write): Likewise.
4197 * s390-linux-nat.c (supply_gregset): Likewise.
4198 (fill_gregset): Likewise.
4199 (s390_linux_fetch_inferior_registers): Likewise.
4200 * s390-linux-tdep.c (s390_write_pc): Likewise.
4201 (s390_software_single_step): Likewise.
4202 (s390_all_but_pc_registers_record): Likewise.
4203 (s390_linux_syscall_record): Likewise.
4204 * sentinel-frame.c (sentinel_frame_prev_arch): Likewise.
4205 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
4206 (shnbsd_store_inferior_registers): Likewise.
4207 * sh-tdep.c (sh_extract_return_value_nofpu): Likewise.
4208 (sh_extract_return_value_fpu): Likewise.
4209 (sh_store_return_value_nofpu): Likewise.
4210 (sh_corefile_supply_regset): Likewise.
4211 (sh_corefile_collect_regset): Likewise.
4212 * sh64-tdep.c (sh64_extract_return_value): Likewise.
4213 (sh64_store_return_value): Likewise.
4214 * sparc-linux-tdep.c (sparc32_linux_collect_core_fpregset): Likewise.
4215 * sparc-nat.c (sparc_fetch_inferior_registers): Likewise.
4216 (sparc_store_inferior_registers): Likewise.
4217 * sparc-ravenscar-thread.c (register_in_thread_descriptor_p): Likewise.
4218 (sparc_ravenscar_prepare_to_store): Likewise.
4219 * sparc-tdep.c (sparc32_store_arguments): Likewise.
4220 (sparc_analyze_control_transfer): Likewise.
4221 (sparc_step_trap): Likewise.
4222 (sparc_software_single_step): Likewise.
4223 (sparc32_gdbarch_init): Likewise.
4224 (sparc_supply_rwindow): Likewise.
4225 (sparc_collect_rwindow): Likewise.
4226 * sparc64-linux-tdep.c (sparc64_linux_collect_core_fpregset): Likewise.
4227 * sparc64-nbsd-nat.c (sparc64nbsd_supply_gregset): Likewise.
4228 (sparc64nbsd_collect_gregset): Likewise.
4229 (sparc64nbsd_supply_fpregset): Likewise.
4230 (sparc64nbsd_collect_fpregset): Likewise.
4231 * sparc64-tdep.c (sparc64_store_arguments): Likewise.
4232 (sparc64_supply_gregset): Likewise.
4233 (sparc64_collect_gregset): Likewise.
4234 (sparc64_supply_fpregset): Likewise.
4235 (sparc64_collect_fpregset): Likewise.
4236 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
4237 * spu-tdep.c (spu_unwind_sp): Likewise.
4238 (spu2ppu_prev_register): Likewise.
4239 (spu_memory_remove_breakpoint): Likewise.
4240 * stack.c (return_command): Likewise.
4241 * tic6x-tdep.c (tic6x_extract_signed_field): Likewise.
4242 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
4243 * tracefile.c (trace_save_ctf): Likewise.
4244 * windows-nat.c (do_windows_fetch_inferior_registers): Likewise.
4245 (do_windows_store_inferior_registers): Likewise.
4246 (windows_resume): Likewise.
4247 * xtensa-linux-nat.c (fill_gregset): Likewise.
4248 (supply_gregset_reg): Likewise.
4249 * xtensa-tdep.c (xtensa_register_write_masked): Likewise.
4250 (xtensa_register_read_masked): Likewise.
4251 (xtensa_supply_gregset): Likewise.
4252 (xtensa_extract_return_value): Likewise.
4253 (xtensa_store_return_value): Likewise.
4254
4255 2017-10-25 Ulrich Weigand <uweigand@de.ibm.com>
4256
4257 * doublest.c (floatformat_from_string): New function.
4258 * doublest.h (floatformat_from_string): Add prototype.
4259
4260 * std-operator.def (OP_DOUBLE, OP_DECFLOAT): Remove, replace by ...
4261 (OP_FLOAT): ... this.
4262 * expression.h: Do not include "doublest.h".
4263 (union exp_element): Replace doubleconst and decfloatconst by
4264 new element floatconst.
4265 * ada-lang.c (resolve_subexp): Handle OP_FLOAT instead of OP_DOUBLE.
4266 (ada_evaluate_subexp): Likewise.
4267 * eval.c (evaluate_subexp_standard): Handle OP_FLOAT instead of
4268 OP_DOUBLE and OP_DECFLOAT.
4269 * expprint.c (print_subexp_standard): Likewise.
4270 (dump_subexp_body_standard): Likewise.
4271 * breakpoint.c (watchpoint_exp_is_const): Likewise.
4272
4273 * parse.c: Include "dfp.h".
4274 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
4275 (write_exp_elt_floatcst): New function.
4276 (operator_length_standard): Handle OP_FLOAT instead of OP_DOUBLE
4277 and OP_DECFLOAT.
4278 (operator_check_standard): Likewise.
4279 (parse_float): Do not accept suffix. Take type as input. Return bool.
4280 Return target format buffer instead of host DOUBLEST.
4281 Use floatformat_from_string and decimal_from_string to parse
4282 either binary or decimal floating-point types.
4283 (parse_c_float): Remove.
4284 * parser-defs.h: Do not include "doublest.h".
4285 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
4286 (write_exp_elt_floatcst): Add prototype.
4287 (parse_float): Update prototype.
4288 (parse_c_float): Remove.
4289
4290 * c-exp.y: Do not include "dfp.h".
4291 (typed_val_float): Use byte buffer instead of DOUBLEST.
4292 (typed_val_decfloat): Remove.
4293 (DECFLOAT): Remove.
4294 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4295 (parse_number): Update to new parse_float interface.
4296 Parse suffixes and determine type before calling parse_float.
4297 Handle decimal and binary FP types the same way.
4298
4299 * d-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
4300 (FLOAT_LITERAL): Use OP_FLOAT and write_exp_elt_floatcst.
4301 (parse_number): Update to new parse_float interface.
4302 Parse suffixes and determine type before calling parse_float.
4303
4304 * f-exp.y: Replace dval by typed_val_float.
4305 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4306 (parse_number): Use parse_float instead of atof.
4307
4308 * go-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
4309 (parse_go_float): Remove.
4310 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4311 (parse_number): Call parse_float instead of parse_go_float.
4312 Parse suffixes and determine type before calling parse_float.
4313
4314 * p-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
4315 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4316 (parse_number): Update to new parse_float interface.
4317 Parse suffixes and determine type before calling parse_float.
4318
4319 * m2-exp.y: Replace dval by byte buffer val.
4320 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4321 (parse_number): Call parse_float instead of atof.
4322
4323 * rust-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
4324 (lex_number): Call parse_float instead of strtod.
4325 (ast_dliteral): Use OP_FLOAT instead of OP_DOUBLE.
4326 (convert_ast_to_expression): Handle OP_FLOAT instead of OP_DOUBLE.
4327 Use write_exp_elt_floatcst.
4328 (unit_testing): Remove static variable.
4329 (rust_type): Do not check unit_testing.
4330 (rust_lex_tests): Do not set uint_testing. Set up dummy rust_parser.
4331
4332 * ada-exp.y (type_float, type_double): Remove.
4333 (typed_val_float): Use byte buffer instead of DOUBLEST.
4334 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4335 * ada-lex.l (processReal): Use parse_float instead of sscanf.
4336
4337 2017-10-25 Alan Hayward <alan.hayward@arm.com>
4338
4339 * aarch64-tdep.h (enum aarch64_regnum): Remove.
4340 * arch/aarch64.h: New file.
4341
4342 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4343
4344 * dfp.h (decimal_from_string): Use const reference for argument.
4345 * dfp.c (decimal_from_string): Likewise.
4346
4347 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4348
4349 * i387-tdep.c (print_i387_value): Use floatformat_to_string.
4350 * sh64-tdep.c (sh64_do_fp_register): Likewise.
4351 * mips-tdep.c (mips_print_fp_register): Likewise.
4352
4353 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4354
4355 * common/format.h (enum argclass): Replace decfloat_arg by
4356 dec32float_arg, dec64float_arg, and dec128float_arg.
4357 * common/format.c (parse_format_string): Update to return
4358 new decimal float argument classes.
4359
4360 * printcmd.c (printf_decfloat): Rename to ...
4361 (printf_floating): ... this. Add argclass argument, and use it
4362 instead of parsing the format string again. Add support for
4363 binary floating-point values, using floatformat_to_string.
4364 Convert value to the target format if it doesn't already match.
4365 (ui_printf): Call printf_floating instead of printf_decfloat,
4366 also for double_arg / long_double_arg. Pass argclass.
4367
4368 * dfp.c (decimal_to_string): Add format string argument.
4369 * dfp.h (decimal_to_string): Likewise.
4370
4371 * doublest.c (floatformat_to_string): Add format string argument.
4372 * doublest.h (floatformat_to_string): Likewise.
4373
4374 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4375
4376 * doublest.c (floatformat_precision): New routine.
4377 (floatformat_to_string): Likewise.
4378 * doublest.c (floatformat_to_string): Add prototype.
4379
4380 * printcmd.c (print_scalar_formatted): Only call print_floating
4381 on floating-point types.
4382 * valprint.c: Do not include "floatformat.h".
4383 (generic_val_print_decfloat): Remove.
4384 (generic_val_print): Call generic_val_print_float for both
4385 TYPE_CODE_FLT and TYPE_CODE_DECFLOAT.
4386 (print_floating): Use floatformat_to_string. Handle decimal float.
4387 (print_decimal_floating): Remove, merge into floatformat_to_string.
4388 * value.h (print_decimal_floating): Remove.
4389
4390 * Makefile.in: Do not build doublest.c with -Wformat-nonliteral.
4391
4392 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4393
4394 * buildsym.c (end_symtab_get_static_block): Use std::stable_sort.
4395
4396 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
4397
4398 * memattr.h: Don't include vec.h.
4399 (struct mem_attrib): Initialize fields.
4400 <unknown>: New static method.
4401 (struct mem_region): Add constructors, operator<, initialize
4402 fields.
4403 * memattr.c: Include algorithm.
4404 (default_mem_attrib, unknown_mem_attrib): Remove.
4405 (user_mem_region_list): New global.
4406 (target_mem_region_list, mem_region_list): Change type to
4407 std::vector<mem_region>.
4408 (mem_use_target): Now a function.
4409 (target_mem_regions_valid): Change type to bool.
4410 (mem_region_lessthan, mem_region_cmp, mem_region_init): Remove.
4411 (require_user_regions): Adjust.
4412 (require_target_regions): Adjust.
4413 (create_mem_region): Adjust.
4414 (lookup_mem_region): Adjust.
4415 (invalidate_target_mem_regions): Adjust.
4416 (mem_clear): Rename to...
4417 (user_mem_clear): ... this, and adjust.
4418 (mem_command): Adjust.
4419 (info_mem_command): Adjust.
4420 (mem_enable, enable_mem_command, mem_disable,
4421 disable_mem_command): Adjust.
4422 (mem_delete): Adjust.
4423 (delete_mem_command): Adjust.
4424 * memory-map.h (parse_memory_map): Return an std::vector.
4425 * memory-map.c (parse_memory_map): Likewise.
4426 (struct memory_map_parsing_data): Add constructor.
4427 <memory_map>: Point to std::vector.
4428 (memory_map_start_memory): Adjust.
4429 (memory_map_end_memory): Adjust.
4430 (memory_map_end_property): Adjust.
4431 (clear_result): Remove.
4432 * remote.c (remote_memory_map): Return an std::vector.
4433 * target-debug.h (target_debug_print_VEC_mem_region_s__p):
4434 Remove.
4435 (target_debug_print_mem_region_vector): New.
4436 * target-delegates.c: Regenerate.
4437 * target.h (mem_region_vector): New typedef.
4438 (to_memory_map): Return mem_region_vector.
4439 (target_memory_map): Return an std::vector.
4440 * target.c (target_memory_map): Return an std::vector.
4441 (flash_erase_command): Adjust.
4442
4443 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
4444
4445 * memory-map.c (struct memory_map_parsing_data) <property_name>:
4446 Change type to std::string.
4447 (memory_map_start_property): Adjust.
4448 (memory_map_end_property): Adjust.
4449
4450 2017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
4451
4452 * infrun.h: Include common/byte-vector.h.
4453 (struct displaced_step_closure): New struct.
4454 (struct buf_displaced_step_closure): New struct.
4455 * infrun.c (displaced_step_closure::~displaced_step_closure):
4456 Provide default implementation.
4457 (displaced_step_clear): Deallocate step closure with delete.
4458 * aarch64-tdep.c (displaced_step_closure): Rename to ...
4459 (aarch64_displaced_step_closure): ... this, extend
4460 displaced_step_closure.
4461 (aarch64_displaced_step_data) <dsc>: Change type to
4462 aarch64_displaced_step_closure.
4463 (aarch64_displaced_step_copy_insn): Adjust to type change, use
4464 unique_ptr.
4465 (aarch64_displaced_step_fixup): Add cast for displaced step
4466 closure.
4467 * amd64-tdep.c (displaced_step_closure): Rename to ...
4468 (amd64_displaced_step_closure): ... this, extend
4469 displaced_step_closure.
4470 <insn_buf>: Change type to std::vector<gdb_byte>.
4471 <max_len>: Remove.
4472 (fixup_riprel): Change type of DSC parameter, adjust to type
4473 change of insn_buf.
4474 (fixup_displaced_copy): Change type of DSC parameter.
4475 (amd64_displaced_step_copy_insn): Instantiate
4476 amd64_displaced_step_closure.
4477 (amd64_displaced_step_fixup): Add cast for closure type, adjust
4478 to type change of insn_buf.
4479 * arm-linux-tdep.c (arm_linux_cleanup_svc): Change type of
4480 parameter DSC.
4481 (arm_linux_copy_svc): Likewise.
4482 (cleanup_kernel_helper_return): Likewise.
4483 (arm_catch_kernel_helper_return): Likewise.
4484 (arm_linux_displaced_step_copy_insn): Instantiate
4485 arm_displaced_step_closure.
4486 * arm-tdep.c (arm_pc_is_thumb): Add cast for closure.
4487 (displaced_read_reg): Change type of parameter DSC.
4488 (branch_write_pc): Likewise.
4489 (load_write_pc): Likewise.
4490 (alu_write_pc): Likewise.
4491 (displaced_write_reg): Likewise.
4492 (arm_copy_unmodified): Likewise.
4493 (thumb_copy_unmodified_32bit): Likewise.
4494 (thumb_copy_unmodified_16bit): Likewise.
4495 (cleanup_preload): Likewise.
4496 (install_preload): Likewise.
4497 (arm_copy_preload): Likewise.
4498 (thumb2_copy_preload): Likewise.
4499 (install_preload_reg): Likewise.
4500 (arm_copy_preload_reg): Likewise.
4501 (cleanup_copro_load_store): Likewise.
4502 (install_copro_load_store): Likewise.
4503 (arm_copy_copro_load_store) Likewise.
4504 (thumb2_copy_copro_load_store): Likewise.
4505 (cleanup_branch): Likewise.
4506 (install_b_bl_blx): Likewise.
4507 (arm_copy_b_bl_blx): Likewise.
4508 (thumb2_copy_b_bl_blx): Likewise.
4509 (thumb_copy_b): Likewise.
4510 (install_bx_blx_reg): Likewise.
4511 (arm_copy_bx_blx_reg): Likewise.
4512 (thumb_copy_bx_blx_reg): Likewise.
4513 (cleanup_alu_imm): Likewise.
4514 (arm_copy_alu_imm): Likewise.
4515 (thumb2_copy_alu_imm): Likewise.
4516 (cleanup_alu_reg): Likewise.
4517 (install_alu_reg): Likewise.
4518 (arm_copy_alu_reg): Likewise.
4519 (thumb_copy_alu_reg): Likewise.
4520 (cleanup_alu_shifted_reg): Likewise.
4521 (install_alu_shifted_reg): Likewise.
4522 (arm_copy_alu_shifted_reg): Likewise.
4523 (cleanup_load): Likewise.
4524 (cleanup_store): Likewise.
4525 (arm_copy_extra_ld_st): Likewise.
4526 (install_load_store): Likewise.
4527 (thumb2_copy_load_literal): Likewise.
4528 (thumb2_copy_load_reg_imm): Likewise.
4529 (arm_copy_ldr_str_ldrb_strb): Likewise.
4530 (cleanup_block_load_all): Likewise.
4531 (cleanup_block_store_pc): Likewise.
4532 (cleanup_block_load_pc): Likewise.
4533 (arm_copy_block_xfer): Likewise.
4534 (thumb2_copy_block_xfer): Likewise.
4535 (cleanup_svc): Likewise.
4536 (install_svc): Likewise.
4537 (arm_copy_svc): Likewise.
4538 (thumb_copy_svc): Likewise.
4539 (arm_copy_undef): Likewise.
4540 (thumb_32bit_copy_undef): Likewise.
4541 (arm_copy_unpred): Likewise.
4542 (arm_decode_misc_memhint_neon): Likewise.
4543 (arm_decode_unconditional): Likewise.
4544 (arm_decode_miscellaneous): Likewise.
4545 (arm_decode_dp_misc): Likewise.
4546 (arm_decode_ld_st_word_ubyte): Likewise.
4547 (arm_decode_media): Likewise.
4548 (arm_decode_b_bl_ldmstm): Likewise.
4549 (arm_decode_ext_reg_ld_st): Likewise.
4550 (thumb2_decode_dp_shift_reg): Likewise.
4551 (thumb2_decode_ext_reg_ld_st): Likewise.
4552 (arm_decode_svc_copro): Likewise.
4553 (thumb2_decode_svc_copro): Likewise.
4554 (install_pc_relative): Likewise.
4555 (thumb_copy_pc_relative_16bit): Likewise.
4556 (thumb_decode_pc_relative_16bit): Likewise.
4557 (thumb_copy_pc_relative_32bit): Likewise.
4558 (thumb_copy_16bit_ldr_literal): Likewise.
4559 (thumb_copy_cbnz_cbz): Likewise.
4560 (thumb2_copy_table_branch): Likewise.
4561 (cleanup_pop_pc_16bit_all): Likewise.
4562 (thumb_copy_pop_pc_16bit): Likewise.
4563 (thumb_process_displaced_16bit_insn): Likewise.
4564 (decode_thumb_32bit_ld_mem_hints): Likewise.
4565 (thumb_process_displaced_32bit_insn): Likewise.
4566 (thumb_process_displaced_insn): Likewise.
4567 (arm_process_displaced_insn): Likewise.
4568 (arm_displaced_init_closure): Likewise.
4569 (arm_displaced_step_fixup): Add cast for closure.
4570 * arm-tdep.h: Include infrun.h.
4571 (displaced_step_closure): Rename to ...
4572 (arm_displaced_step_closure): ... this, extend
4573 displaced_step_closure.
4574 <u::svc::copy_svc_os>: Change type of parameter DSC.
4575 <cleanup>: Likewise.
4576 (arm_process_displaced_insn): Likewise.
4577 (arm_displaced_init_closure): Likewise.
4578 (displaced_read_reg): Likewise.
4579 (displaced_write_reg): Likewise.
4580 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
4581 Adjust.
4582 * i386-tdep.h: Include infrun.h.
4583 (i386_displaced_step_closure): New typedef.
4584 * i386-tdep.c (i386_displaced_step_copy_insn): Use
4585 i386_displaced_step_closure.
4586 (i386_displaced_step_fixup): Adjust.
4587 * rs6000-tdep.c (ppc_displaced_step_closure): New typedef.
4588 (ppc_displaced_step_copy_insn): Use ppc_displaced_step_closure
4589 and unique_ptr.
4590 (ppc_displaced_step_fixup): Adjust.
4591 * s390-linux-tdep.c (s390_displaced_step_closure): New typedef.
4592 (s390_displaced_step_copy_insn): Use s390_displaced_step_closure
4593 and unique_ptr.
4594 (s390_displaced_step_fixup): Adjust.
4595
4596 2017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
4597
4598 * interps.h (interp_resume, interp_suspend, interp_set_temp):
4599 Remove declarations.
4600
4601 2017-10-20 Tom Tromey <tom@tromey.com>
4602
4603 * gdb_bfd.c (struct gdb_bfd_data) <included_bfds>: Now a
4604 std::vector.
4605 (gdb_bfd_record_inclusion): Update.
4606 (bfdp): Remove typedef.
4607
4608 2017-10-20 Tom Tromey <tom@tromey.com>
4609
4610 * gdb_bfd.c (gdb_bfd_ref): Use new.
4611 (struct gdb_bfd_data): Add constructor, destructor, and member
4612 initializers.
4613 (gdb_bfd_unref): Use delete.
4614
4615 2017-10-20 Tom Tromey <tom@tromey.com>
4616
4617 * exec.c (exec_file_attach): Use new_bfd_ref.
4618 * symfile-mem.c (symbol_file_add_from_memory): Use new_bfd_ref.
4619 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
4620 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_fdopenr): Use
4621 new_bfd_ref.
4622 * gdb_bfd.h (new_bfd_ref): New function.
4623
4624 2017-10-20 Pedro Alves <palves@redhat.com>
4625
4626 * main.c (captured_command_loop): Add attribute noinline.
4627
4628 2017-10-19 Simon Marchi <simon.marchi@ericsson.com>
4629
4630 * interps.c (struct interp_factory): Add constructor.
4631 (interp_factory_p): Remove typedef.
4632 (DEF_VEC_P(interp_factory_p)): Remove.
4633 (interpreter_factories): Change type to std::vector.
4634 (interp_factory_register): Adjust.
4635 (interp_lookup): Adjust.
4636 (interpreter_completer): Adjust.
4637
4638 2017-10-19 Tom Tromey <tom@tromey.com>
4639
4640 * break-catch-syscall.c (catch_syscall_completer): Use
4641 std::string, gdb::unique_xmalloc_ptr.
4642
4643 2017-10-19 Tom Tromey <tom@tromey.com>
4644
4645 * infcall.c (call_function_by_hand_dummy): Use std::string.
4646
4647 2017-10-19 Tom Tromey <tom@tromey.com>
4648
4649 * mi/mi-main.c (mi_cmd_execute): Update.
4650 * top.h (prepare_execute_command): Return scoped_value_mark.
4651 * value.h (class scoped_value_mark): Use DISABLE_COPY_AND_ASSIGN.
4652 Add move constructor.
4653 * top.c (prepare_execute_command): Return scoped_value_mark.
4654 (execute_command): Update.
4655
4656 2017-10-19 Pedro Alves <palves@redhat.com>
4657
4658 * xml-support.c (xml_fetch_content_from_file): Check fread's
4659 return.
4660
4661 2017-10-19 Pedro Alves <palves@redhat.com>
4662
4663 * ser-base.c (ser_base_read_error_fd): Delete the file handler if
4664 async.
4665 (handle_error_fd): New function.
4666 (ser_base_async): Add/delete an event loop file handler for
4667 error_fd.
4668
4669 2017-10-19 Pedro Alves <palves@redhat.com>
4670
4671 * xml-support.c (xml_fetch_content_from_file): Don't read in
4672 chunks. Instead use fseek to determine the file's size, and read
4673 it in one go.
4674
4675 2017-11-18 Keith Seitz <keiths@redhat.com>
4676
4677 * c-exp.y (oper): Canonicalize conversion operators of user-defined
4678 types.
4679 Add whitespace to front of type name.
4680
4681 2017-10-18 Keith Seitz <keiths@redhat.com>
4682
4683 * dwarf2read.c (dwarf2_add_typedef): Issue a complaint on unhandled
4684 DW_AT_accessibility.
4685
4686 2017-10-18 Yao Qi <yao.qi@linaro.org>
4687
4688 * features/tic6x-c62x-linux.c: Remove.
4689
4690 2017-10-17 Tom Tromey <tom@tromey.com>
4691
4692 * disasm.c (do_mixed_source_and_assembly_deprecated): Use
4693 gdb::optional, ui_out_emit_list, ui_out_emit_tuple.
4694 (do_mixed_source_and_assembly): Likewise.
4695
4696 2017-10-17 Tom Tromey <tom@tromey.com>
4697
4698 * regcache.c (regcache::xfer_part): Remove assertion.
4699
4700 2017-10-17 Pedro Alves <palves@redhat.com>
4701
4702 * xml-support.c (xml_fetch_content_from_file): Call
4703 unique_ptr::release() instead unique_ptr::get() when passing
4704 through xrealloc.
4705
4706 2017-10-17 Yao Qi <yao.qi@linaro.org>
4707
4708 * regcache.c (regcache::xfer_part): Remove parameters read and
4709 write, add parameter is_raw. All callers are updated.
4710
4711 2017-10-16 Keith Seitz <keiths@redhat.com>
4712
4713 * c-typeprint.c (enum access_specifier): Moved here from
4714 c_type_print_base.
4715 (output_access_specifier): New function.
4716 (c_type_print_base): Consider typedefs when assessing
4717 whether access labels are needed.
4718 Use output_access_specifier as needed.
4719 Output access specifier for typedefs, if needed.
4720 * dwarf2read.c (dwarf2_add_typedef): Record DW_AT_accessibility.
4721 * gdbtypes.h (struct typedef_field) <is_protected, is_private>: New
4722 fields.
4723 (TYPE_TYPEDEF_FIELD_PROTECTED, TYPE_TYPEDEF_FIELD_PRIVATE): New
4724 accessor macros.
4725
4726 2017-10-16 Tom Tromey <tom@tromey.com>
4727
4728 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full)
4729 (linux_fill_prpsinfo, linux_vsyscall_range_raw): Update.
4730 * target.c (target_fileio_read_stralloc): Update.
4731 * sparc64-tdep.c (adi_is_addr_mapped): Update.
4732 * target.h (target_fileio_read_stralloc): Return
4733 unique_xmalloc_ptr.
4734
4735 2017-10-16 Tom Tromey <tom@tromey.com>
4736
4737 * xml-syscall.c (xml_init_syscalls_info): Update.
4738 * xml-support.c (xinclude_start_include): Update.
4739 (xml_fetch_content_from_file): Return unique_xmalloc_ptr.
4740 * xml-support.h (xml_fetch_another): Return unique_xmalloc_ptr.
4741 (xml_fetch_content_from_file): Likewise.
4742 * osdata.c (get_osdata): Update.
4743 * target.h (target_read_stralloc, target_get_osdata): Return
4744 unique_xmalloc_ptr.
4745 * solib-aix.c (solib_aix_get_library_list): Update.
4746 * solib-target.c (solib_target_current_sos): Update.
4747 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Update.
4748 * xml-tdesc.c (fetch_available_features_from_target): Update.
4749 (target_fetch_description_xml): Update.
4750 (file_read_description_xml): Update.
4751 * remote.c (remote_get_threads_with_qxfer, remote_memory_map)
4752 (remote_traceframe_info, btrace_read_config, remote_read_btrace)
4753 (remote_pid_to_exec_file): Update.
4754 * target.c (target_read_stralloc): Return unique_xmalloc_ptr.
4755 (target_get_osdata): Likewise.
4756
4757 2017-10-16 Tom Tromey <tom@tromey.com>
4758
4759 * remote.c (remote_register_number_and_offset): Use std::vector.
4760 (remote_set_syscall_catchpoint): Use gdb::unique_xmalloc_ptr.
4761 (putpkt_binary): Use gdb::def_vector.
4762 (compare_sections_command): Use gdb::byte_vector.
4763
4764 2017-10-16 Tom Tromey <tom@tromey.com>
4765
4766 * ppc-linux-nat.c (hwdebug_insert_point): Use
4767 gdb::unique_xmalloc_ptr, XDUP.
4768
4769 2017-10-16 Tom Tromey <tom@tromey.com>
4770
4771 * probe.c (parse_probes): Use std::string.
4772 (info_probes_for_ops, enable_probes_command)
4773 (disable_probes_command): Remove cleanups.
4774
4775 2017-10-16 Tom Tromey <tom@tromey.com>
4776
4777 * buildsym.c (block_compar): Remove.
4778 (end_symtab_get_static_block): Use std::vector.
4779
4780 2017-10-16 Simon Marchi <simon.marchi@ericsson.com>
4781
4782 * memrange.h (struct mem_range): Define operator< and operator==.
4783 (mem_range_s): Remove.
4784 (DEF_VEC_O (mem_range_s)): Remove.
4785 (normalize_mem_ranges): Change parameter type to std::vector.
4786 * memrange.c (compare_mem_ranges): Remove.
4787 (normalize_mem_ranges): Change parameter type to std::vector,
4788 adjust to vector change.
4789 * exec.c (section_table_available_memory): Return vector, remove
4790 parameter.
4791 (section_table_read_available_memory): Adjust to std::vector
4792 change.
4793 * remote.c (remote_read_bytes): Adjust to std::vector
4794 change.
4795 * tracepoint.h (traceframe_available_memory): Change parameter
4796 type to std::vector.
4797 * tracepoint.c (traceframe_available_memory): Change parameter
4798 type to std::vector, adjust.
4799 * gdb/mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to
4800 std::vector change.
4801 * gdb/Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4802 unittests/memrange-selftests.c.
4803 (SUBDIR_UNITTESTS_OBS): Add memrange-selftests.o.
4804 * gdb/unittests/memrange-selftests.c: New file.
4805
4806 2017-10-16 Pedro Alves <palves@redhat.com>
4807
4808 * elfread.c (probe_key_free): Rename range-for variable.
4809 * probe.c (parse_probes_in_pspace, find_probes_in_objfile)
4810 (find_probe_by_pc, collect_probes): Rename range-for variable.
4811
4812 2017-10-16 Yao Qi <yao.qi@linaro.org>
4813
4814 * features/Makefile (XMLTOC): Remove tic6x-*.xml.
4815 * features/tic6x-c62x.c: Remove.
4816 * features/tic6x-c64x-linux.c: Remove.
4817 * features/tic6x-c64x.c: Remove.
4818 * features/tic6x-c64xp-linux.c: Remove.
4819 * features/tic6x-c64xp.c: Remove.
4820 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Don't call
4821 initialize_tdesc_tic6x_*_linux functions.
4822 * tic6x-tdep.c (_initialize_tic6x_tdep): Don't call
4823 initialize_tdesc_tic6x_* functions.
4824
4825 2017-10-16 Yao Qi <yao.qi@linaro.org>
4826
4827 * features/Makefile (WHICH): Remove tic6x-c64xp, tic6x-c64x
4828 tic6x-c62x.
4829 * regformats/tic6x-c62x.dat: Remove.
4830 * regformats/tic6x-c64x.dat: Remove.
4831 * regformats/tic6x-c64xp.dat: Remove.
4832
4833 2017-10-15 Simon Marchi <simon.marchi@ericsson.com>
4834
4835 * tracepoint.c (parse_traceframe_info): Return a unique_ptr
4836 (the !HAVE_LIBEXPAT version).
4837
4838 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
4839
4840 * nat/linux-osdata.c (struct pid_pgid_entry) <operator<>: Make
4841 const.
4842
4843 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4844
4845 * target.h: Include tracepoint.h.
4846 (enum trace_find_type): Move to tracepoint.h.
4847 (struct target_ops) <to_traceframe_info>: Return a unique ptr.
4848 * tracepoint.h: Don't include target.h
4849 (enum trace_find_type): Move from target.h.
4850 (parse_traceframe_info): Return a unique ptr.
4851 * tracepoint.c (current_traceframe_info): Change type to unique
4852 ptr.
4853 (free_traceframe_info): Remove.
4854 (clear_traceframe_info): Don't manually free
4855 current_traceframe_info.
4856 (free_result): Remove.
4857 (parse_traceframe_info): Return a unique ptr.
4858 (get_traceframe_info): Adjust to unique ptr.
4859 * ctf.c (ctf_traceframe_info): Return a unique ptr.
4860 * remote.c (remote_traceframe_info): Return a unique ptr.
4861 * tracefile-tfile.c (tfile_traceframe_info): Return a unique
4862 ptr.
4863 * target-debug.h (target_debug_print_traceframe_info_up): New
4864 macro.
4865 * target-delegates.c: Regenerate.
4866
4867 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4868
4869 * memrange.h (struct mem_range): Add constructors.
4870 * tracepoint.h (struct traceframe_info) <memory>: Change type to
4871 std::vector<mem_range>.
4872 * tracepoint.c (free_traceframe_info): Don't manually free
4873 vector.
4874 (traceframe_info_start_memory): Adjust to vector change.
4875 (traceframe_available_memory): Likewise.
4876 * tracefile-tfile.c (build_traceframe_info): Likewise.
4877 * ctf.c (ctf_traceframe_info): Likewise.
4878
4879 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4880
4881 * tracepoint.h (struct traceframe_info) <tvars>: Change type to
4882 std::vector<int>.
4883 * tracepoint.c (free_traceframe_info): Deallocate with delete.
4884 (traceframe_info_start_tvar): Adjust to vector change.
4885 (parse_traceframe_info): Allocate with new.
4886 * ctf.c (ctf_traceframe_info): Allocate with new, adjust to
4887 vector change.
4888 * tracefile-tfile.c (build_traceframe_info): Adjust to vector
4889 change.
4890 tfile_traceframe_info): Allocate with new.
4891 * mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to vector
4892 change.
4893
4894 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4895
4896 * tracepoint.c (traceframe_info): Rename to...
4897 (current_traceframe_info): ...this.
4898 (clear_traceframe_info): Adjust.
4899 (get_traceframe_info): Adjust.
4900
4901 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
4902
4903 * nat/linux-osdata.c: Include algorithm.
4904 (compare_processes): Remove.
4905 (struct pid_pgid_entry): New struct.
4906 (linux_xfer_osdata_processgroups): Use std::vector instead of
4907 XNEWVEC.
4908
4909 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
4910
4911 * objfiles.h: Don't include symfile.h.
4912 (struct partial_symbol): Remove forward-declaration.
4913 (struct objfile) <global_psymbols, static_psymbols>: Change type
4914 to std::vector<partial_symbol *>.
4915 * objfiles.c (objfile::objfile): Don't memset those fields.
4916 (objfile::~objfile): Don't free those fields.
4917 * psympriv.h (struct psymbol_allocation_list): Remove
4918 forward-declaration.
4919 (add_psymbol_to_list): Change psymbol_allocation_list parameter
4920 to std::vector.
4921 (start_psymtab_common): Change parameters to std::vector.
4922 * psymtab.c: Include algorithm.
4923 (require_partial_symbols): Call shrink_to_fit.
4924 (find_pc_sect_psymbol): Adjust to vector change.
4925 (match_partial_symbol): Likewise.
4926 (lookup_partial_symbol): Likewise.
4927 (psym_relocate): Likewise.
4928 (dump_psymtab): Likewise.
4929 (recursively_search_psymtabs): Likewise.
4930 (compare_psymbols): Remove.
4931 (sort_pst_symbols): Adjust to vector change.
4932 (start_psymtab_common): Likewise.
4933 (end_psymtab_common): Likewise.
4934 (psymbol_bcache_full): De-constify return value.
4935 (add_psymbol_to_bcache): Likewise.
4936 (extend_psymbol_list): Remove.
4937 (append_psymbol_to_list): Adjust to vector change.
4938 (add_psymbol_to_list): Likewise.
4939 (init_psymbol_list): Likewise.
4940 (maintenance_info_psymtabs): Likewise.
4941 (maintenance_check_psymtabs): Likewise.
4942 * symfile.h (struct psymbol_allocation_list): Remove.
4943 * symfile.c (reread_symbols): Adjust to vector change.
4944 * dbxread.c (start_psymtab): Change type of parameters.
4945 (dbx_symfile_read): Adjust to vector change.
4946 (read_dbx_symtab): Likewise.
4947 (start_psymtab): Change type of parameters.
4948 * dwarf2read.c (dwarf2_build_psymtabs): Adjust to vector change.
4949 (create_partial_symtab): Likewise.
4950 (add_partial_symbol): Likewise.
4951 (write_one_signatured_type): Likewise.
4952 (recursively_write_psymbols): Likewise.
4953 * mdebugread.c (parse_partial_symbols): Likewise.
4954 * xcoffread.c (xcoff_start_psymtab): Change type of parameters.
4955 (scan_xcoff_symtab): Adjust to vector change.
4956 (xcoff_initial_scan): Likewise.
4957
4958 2017-10-13 Simon Marchi <simon.marchi@ericsson.com>
4959
4960 * ada-typeprint.c (print_dynamic_range_bound): Use std::string.
4961
4962 2017-10-13 Yao Qi <yao.qi@linaro.org>
4963
4964 * features/Makefile: Remove tic6x-*-expedite, add tic6x-expedite.
4965 Remove s390x-*-expedite, add s390x-expedite.
4966
4967 2017-10-13 Yao Qi <yao.qi@linaro.org>
4968
4969 * features/s390-gs-linux64.c: Regenerated.
4970 * features/s390x-gs-linux64.c: Regenerated.
4971
4972 2017-10-13 Tom Tromey <tom@tromey.com>
4973
4974 * compile/compile-object-run.c (do_module_cleanup): Use delete.
4975 * solib.c (update_solib_list, reload_shared_libraries_1): Use
4976 delete.
4977 * symfile.c (symbol_file_add_with_addrs): Use new.
4978 (symbol_file_add_separate): Update comment.
4979 (syms_from_objfile_1, remove_symbol_file_command): Use delete.
4980 * jit.c (jit_object_close_impl): Use new.
4981 (jit_unregister_code): Use delete.
4982 * objfiles.c (objfile::objfile): Rename from allocate_objfile.
4983 (~objfile): Rename from free_objfile.
4984 (free_objfile_separate_debug, do_free_objfile_cleanup)
4985 (free_all_objfiles, objfile_purge_solibs): Use delete.
4986 * objfiles.h (struct objfile): Add constructor and destructor.
4987 Use DISABLE_COPY_AND_ASSIGN. Add initializers to data members.
4988 (allocate_objfile, free_objfile): Don't declare.
4989 (struct objstats): Add initializers.
4990
4991 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
4992
4993 * arch-utils.h (simple_displaced_step_copy_insn): Remove.
4994 * arch-utils.c (simple_displaced_step_copy_insn): Remove.
4995 * gdbarch.sh (displaced_step_copy_insn): Adjust comment.
4996 * gdbarch.h: Regenerate.
4997 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
4998 Adjust comment.
4999 * i386-tdep.c (i386_displaced_step_copy_insn): Adjust comment.
5000 (i386_displaced_step_fixup): Adjust comment.
5001 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Adjust comment.
5002
5003 2017-10-12 Tom Tromey <tom@tromey.com>
5004
5005 * prologue-value.h (pv_area::store_would_trash): Return bool.
5006 (pv_area::find_reg): Likewise.
5007 * prologue-value.c (pv_area::store_would_trash): Return bool.
5008 (pv_area::find_reg): Likewise.
5009
5010 2017-10-12 Tom Tromey <tom@tromey.com>
5011
5012 * s390-linux-tdep.c (s390_store, s390_load)
5013 (s390_check_for_saved, s390_analyze_prologue): Update.
5014 * rx-tdep.c (check_for_saved, rx_analyze_prologue): Update.
5015 * rl78-tdep.c (rl78_analyze_prologue, check_for_saved): Update.
5016 * prologue-value.h (class pv_area): Move from prologue-value.c.
5017 Change names of members. Add constructor, destructor, member
5018 functions.
5019 (make_pv_area, free_pv_area, make_cleanup_free_pv_area)
5020 (pv_area_store, pv_area_fetch, pv_area_store_would_trash)
5021 (pv_area_fetch, pv_area_scan): Don't declare.
5022 * prologue-value.c (struct pv_area::area_entry): Now member of
5023 pv_area.
5024 (struct pv_area): Move to prologue-value.h.
5025 (pv_area::pv_area): Rename from make_pv_area.
5026 (pv_area::~pv_area): Rename from free_pv_area.
5027 (do_free_pv_area_cleanup, make_cleanup_free_pv_area): Remove.
5028 (clear_entries, find_entry, overlaps, store_would_trash, store)
5029 (fetch, find_reg, scan): Now member of pv_area.
5030 Remove "area" argument. Update.
5031 * msp430-tdep.c (check_for_saved, msp430_analyze_prologue):
5032 Update.
5033 * mn10300-tdep.c (push_reg, check_for_saved)
5034 (mn10300_analyze_prologue): Update.
5035 * mep-tdep.c (is_arg_spill, check_for_saved)
5036 (mep_analyze_prologue): Update.
5037 * m32c-tdep.c (m32c_pv_push, m32c_srcdest_fetch)
5038 (m32c_srcdest_store, m32c_pv_enter, m32c_is_arg_spill)
5039 (m32c_is_struct_return, m32c_analyze_prologue): Update.
5040 * arm-tdep.c (thumb_analyze_prologue, arm_analyze_prologue):
5041 Update.
5042 * arc-tdep.c (arc_is_in_prologue, arc_analyze_prologue): Update.
5043 * aarch64-tdep.c (aarch64_analyze_prologue): Update.
5044
5045 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
5046
5047 * linux-nat.h (linux_nat_set_delete_thread): New declaration.
5048 * linux-nat.c (linux_nat_delete_thread): New variable.
5049 (lwp_free): Invoke linux_nat_delete_thread if set.
5050 (linux_nat_set_delete_thread): New function.
5051 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Assign
5052 thread delete callback.
5053 * arm-linux-nat.c (arm_linux_delete_thread): New function.
5054 (_initialize_arm_linux_nat): Assign thread delete callback.
5055 * s390-linux-nat.c (s390_delete_thread): New function.
5056 (_initialize_s390_nat): Assign thread delete callback.
5057 * x86-linux-nat.c (x86_linux_add_target): Likewise.
5058 * nat/aarch64-linux.c (aarch64_linux_delete_thread): New
5059 function.
5060 * nat/aarch64-linux.h (aarch64_linux_delete_thread): New
5061 declaration.
5062 * nat/x86-linux.c (x86_linux_delete_thread): New function.
5063 * nat/x86-linux.h (x86_linux_delete_thread): New declaration.
5064
5065 2017-10-09 Tom Tromey <tom@tromey.com>
5066
5067 * tui/tui-win.c (tui_set_win_height, parse_scrolling_args): Use
5068 std::string.
5069 * tui/tui-layout.c (enum tui_status): Use std::string.
5070
5071 2017-10-11 Tom Tromey <tom@tromey.com>
5072
5073 * gdbthread.h (thread_command): Constify.
5074 * inferior.h (detach_command): Constify.
5075 * top.h (set_history, show_history): Constify.
5076 * arm-tdep.c (set_arm_command, show_arm_command): Constify.
5077 * serial.c (serial_set_cmd, serial_show_cmd): Constify.
5078 * bsd-kvm.c (bsd_kvm_cmd): Constify.
5079 * printcmd.c (set_command): Constify.
5080 (non_const_set_command): New function.
5081 * dcache.c (set_dcache_command, show_dcache_command): Constify.
5082 * breakpoint.c (enable_command, disable_command, delete_command)
5083 (catch_command, tcatch_command, set_breakpoint_cmd)
5084 (show_breakpoint_cmd): Constify.
5085 * macrocmd.c (macro_command): Constify.
5086 * infcmd.c (unset_command, kill_command, detach_command)
5087 (info_proc_cmd): Constify.
5088 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Constify.
5089 * auto-load.c (show_auto_load_cmd, set_auto_load_cmd)
5090 (info_auto_load_cmd): Constify.
5091 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
5092 (unset_tdesc_cmd): Constify.
5093 * ada-lang.c (set_ada_command, show_ada_command)
5094 (maint_set_ada_cmd, maint_show_ada_cmd): Constify.
5095 * guile/guile.c (set_guile_command, show_guile_command)
5096 (info_guile_command): Constify.
5097 * tui/tui-win.c (tui_command, set_tui_cmd, show_tui_cmd):
5098 Constify.
5099 * skip.c (skip_command): Constify.
5100 * compile/compile.c (_initialize_compile): Constify.
5101 * dwarf2read.c (set_dwarf_cmd, show_dwarf_cmd): Constify.
5102 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
5103 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
5104 (maint_btrace_pt_show_cmd): Constify.
5105 * remote.c (set_remote_cmd, show_remote_cmd, remote_command):
5106 Constify.
5107 * python/python.c (user_show_python, user_set_python): Constify.
5108 * mips-tdep.c (set_mips_command, show_mips_command)
5109 (set_mipsfpu_command): Constify.
5110 * record-btrace.c (cmd_record_btrace_start)
5111 (cmd_set_record_btrace, cmd_show_record_btrace)
5112 (cmd_set_record_btrace_bts, cmd_show_record_btrace_bts)
5113 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): Constify.
5114 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command):
5115 Constify.
5116 * symfile.c (overlay_command): Constify.
5117 * spu-tdep.c (set_spu_command, show_spu_command): Constify.
5118 * cli/cli-logging.c (set_logging_command, show_logging_command):
5119 Constify.
5120 * cli/cli-dump.c (dump_command, append_command)
5121 (srec_dump_command, ihex_dump_command, verilog_dump_command)
5122 (tekhex_dump_command, binary_dump_command)
5123 (binary_append_command): Constify.
5124 * cli/cli-decode.c (struct cmd_list_element): Change type of
5125 "fun".
5126 * cli/cli-cmds.c (info_command, show_command, set_debug)
5127 (show_debug): Constify.
5128 (show_command): Add non-const overload.
5129 * top.c (set_history, show_history): Constify.
5130 * sh-tdep.c (set_sh_command, show_sh_command): Constify.
5131 * command.h (add_prefix_cmd): Accept a cmd_const_cfunc_ftype.
5132 * target.c (target_command): Constify.
5133 * sparc64-tdep.c (info_adi_command): Constify.
5134 * record-full.c (cmd_record_full_start): Constify.
5135 (set_record_full_command): Constify. Fix typo.
5136 (show_record_full_command): Constify.
5137 * thread.c (thread_command, thread_apply_command): Constify.
5138 * memattr.c (dummy_cmd): Constify.
5139 * value.c (function_command): Constify.
5140 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Constify.
5141 * probe.c (info_probes_command): Constify.
5142 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Constify.
5143 * gnu-nat.c (set_task_cmd, show_task_cmd, set_thread_cmd)
5144 (show_thread_cmd, set_thread_default_cmd)
5145 (show_thread_default_cmd): Constify.
5146 (check_empty): Constify.
5147 * tracepoint.c (tfind_command): Constify.
5148 * cp-support.c (maint_cplus_command): Constify.
5149 * windows-tdep.c (info_w32_command): Constify.
5150 * record.c (cmd_record_start, set_record_command)
5151 (show_record_command, info_record_command, cmd_record_goto):
5152 Constify.
5153 * ravenscar-thread.c (set_ravenscar_command)
5154 (show_ravenscar_command): Constify.
5155 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5156 Constify.
5157 (add_internal_problem_command): Remove casts.
5158 * arc-tdep.c (maintenance_print_arc_command): Constify.
5159 * valprint.c (set_print, show_print, set_print_raw)
5160 (show_print_raw): Constify.
5161 * maint.c (maintenance_command, maintenance_info_command)
5162 (maintenance_print_command, maintenance_set_cmd)
5163 (maintenance_show_cmd, set_per_command_cmd)
5164 (show_per_command_cmd, maintenance_check_command): Constify.
5165 * language.c (set_check, show_check): Constify.
5166 * typeprint.c (show_print_type, set_print_type): Constify.
5167 * go32-nat.c (go32_info_dos_command): Constify.
5168
5169 2017-10-11 Tom Tromey <tom@tromey.com>
5170
5171 * breakpoint.c (prepare_re_set_context): Remove.
5172 (breakpoint_re_set_one): Update. Don't use cleanups.
5173 (breakpoint_re_set): Use scoped_restore, std::string, and
5174 scoped_restore_current_language.
5175
5176 2017-10-11 Tom Tromey <tom@tromey.com>
5177
5178 * breakpoint.c (commands_command_1): Use std::string.
5179 (cleanup_executing_breakpoints): Remove.
5180 (bpstat_do_actions_1): Use scoped_restore.
5181 (bpstat_check_watchpoint): Use std::string.
5182 (decode_static_tracepoint_spec): Likewise.
5183 (break_range_command): Likewise.
5184 (watch_command_1): Likewise.
5185 (compare_breakpoints): Change argument types.
5186 (clear_command): Use std::vector.
5187 (cleanup_executing_breakpoints): Remove.
5188 (update_global_location_list): Use unique_xmalloc_ptr.
5189 (strace_command): Remove unused declaration.
5190
5191 2017-10-11 John Baldwin <jhb@FreeBSD.org>
5192
5193 * Makefile.in (ALLDEPFILES): Add arm-fbsd-nat.c.
5194 * NEWS: Mention new FreeBSD/arm native configuration.
5195 * configure.host: Add arm*-*-freebsd*.
5196 * configure.nat: Likewise.
5197 * arm-fbsd-nat.c: New file.
5198
5199 2017-10-11 John Baldwin <jhb@FreeBSD.org>
5200
5201 * Makefile.in (ALL_TARGET_OBS): Add arm-fbsd-tdep.o.
5202 (ALLDEPFILES): Add arm-fbsd-tdep.c.
5203 * NEWS: Mention new FreeBSD/arm target.
5204 * configure.tgt: Add arm*-*-freebsd*.
5205 * arm-fbsd-tdep.c: New file.
5206 * arm-fbsd-tdep.h: New file.
5207
5208 2017-10-11 Maciej W. Rozycki <macro@imgtec.com>
5209
5210 * linux-tdep.c (linux_make_corefile_notes): Remove call to
5211 `gdbarch_elfcore_write_linux_prpsinfo'.
5212 * gdbarch.sh (elfcore_write_linux_prpsinfo): Remove architecture
5213 method.
5214 (elf_internal_linux_prpsinfo): Remove declaration.
5215 * gdbarch.h: Regenerate.
5216 * gdbarch.c: Regenerate.
5217
5218 2017-10-11 Maciej W. Rozycki <macro@imgtec.com>
5219
5220 * ppc-linux-tdep.c (ppc_linux_init_abi): Remove call to
5221 `set_gdbarch_elfcore_write_linux_prpsinfo'.
5222
5223 2017-10-11 Pedro Alves <palves@redhat.com>
5224
5225 * breakpoint.c (reattach_breakpoints): Delete.
5226 * breakpoint.h (reattach_breakpoints): Delete.
5227
5228 2017-10-11 Simon Marchi <simon.marchi@ericsson.com>
5229
5230 * symfile.c (registered_sym_fns): Make struct, not typedef.
5231 (DEF_VEC_O (registered_sym_fns)): Remove.
5232 (symtab_fns): Change type to std::vector.
5233 (add_symtab_fns): Adjust.
5234 (find_sym_fns): Adjust.
5235
5236 2017-10-11 Anton Kolesov <Anton.Kolesov@synopsys.com>
5237
5238 * arc-tdep.c (arc_gdbarch_init): Pass proper cpu value to disassembler.
5239 * arc-tdep.h (arc_arch_is_em): New function.
5240 (arc_arch_is_hs): Likewise.
5241
5242 2017-10-11 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com>
5243
5244 * macrotab.h (macro_lookup_inclusion): Remove unnecessary
5245 parentheses in the declaration.
5246 (macro_lookup_inclusion): Likewise.
5247 (macro_lookup_definition): Likewise.
5248 * p-lang.h (pascal_builtin_types): Likewise.
5249 * tui/tui-data.c (tui_win_list): Likewise.
5250 * tui/tui-data.h (tui_win_list): Likewise.
5251 * utils.h (make_cleanup_free_section_addr_info): Likewise.
5252
5253 2017-10-11 Mark Rages <markrages@gmail.com>
5254
5255 * target-memory.c (block_boundaries): Fix for block address not
5256 aligned on block size.
5257
5258 2017-10-10 Pedro Alves <palves@redhat.com>
5259 Tom Tromey <tom@tromey.com>
5260
5261 * breakpoint.c (struct captured_breakpoint_query_args)
5262 (do_captured_breakpoint_query, gdb_breakpoint_query): Delete.
5263 (print_breakpoint): New.
5264 * breakpoint.h (print_breakpoint): Declare.
5265 * common/common-exceptions.h (enum return_reason): Remove
5266 references to catch_exceptions.
5267 * exceptions.c (catch_exceptions, catch_exceptions_with_msg):
5268 Delete.
5269 * exceptions.h (catch_exceptions_ftype, catch_exceptions)
5270 (catch_exception_ftype, catch_exceptions_with_msg): Delete.
5271 * gdb.h: Delete.
5272 * gdbthread.h (thread_select): Declare.
5273 * mi/mi-cmd-break.c: Don't include gdb.h.
5274 (breakpoint_notify): Use print_breakpoint.
5275 * mi/mi-cmd-catch.c: Don't include gdb.h.
5276 * mi/mi-interp.c: Don't include gdb.h.
5277 (mi_print_breakpoint_for_event): New.
5278 (mi_breakpoint_created, mi_breakpoint_modified): Use
5279 mi_print_breakpoint_for_event.
5280 * mi/mi-main.c: Don't include gdb.h.
5281 (mi_cmd_thread_select): Parse the global thread ID here. Use
5282 thread_select instead of gdb_thread_select.
5283 (mi_cmd_thread_list_ids): Output "thread-ids" tuple here instead
5284 of using gdb_list_thread_ids.
5285 * remote-fileio.c (do_remote_fileio_request): Change type. Reply
5286 FILEIO_ENOSYS here.
5287 (remote_fileio_request): Use TRY/CATCH instead of
5288 catch_exceptions.
5289 * symfile-mem.c (struct symbol_file_add_from_memory_args)
5290 (symbol_file_add_from_memory_wrapper): Delete.
5291 (add_vsyscall_page): Use TRY/CATCH instead of catch_exceptions.
5292 * thread.c: Don't include gdb.h.
5293 (do_captured_list_thread_ids, gdb_list_thread_ids): Delete.
5294 (thread_alive): Use thread_select.
5295 (do_captured_thread_select): Delete, parts salvaged as ...
5296 (thread_select): ... this new function.
5297 (gdb_thread_select): Delete.
5298
5299 2017-10-10 Pedro Alves <palves@redhat.com>
5300 Tom Tromey <tom@tromey.com>
5301
5302 * breakpoint.c (breakpoint_cond_eval): Change return type to bool
5303 and reverse logic.
5304 (WP_DELETED, WP_VALUE_CHANGED, WP_VALUE_NOT_CHANGED, WP_IGNORE):
5305 No longer macros. Instead ...
5306 (enum wp_check_result): They're now values of this new
5307 enumeration.
5308 (watchpoint_check): Change return type to wp_check_result and
5309 parameter type to bpstat.
5310 (bpstat_check_watchpoint): Use TRY/CATCH instead of catch_errors.
5311 (bpstat_check_breakpoint_conditions): Use TRY/CATCH instead of
5312 catch_errors. Reverse logic of watchpoint_check call.
5313 (breakpoint_re_set_one): Now returns void and takes a breakpoint
5314 pointer as parameter.
5315 (breakpoint_re_set): Use TRY/CATCH instead of catch_errors.
5316 * common/common-exceptions.c (throw_exception_sjlj): Update
5317 comments to avoid mentioning catch_errors.
5318 * exceptions.c (catch_errors): Delete.
5319 * exceptions.h: Update comments to avoid mentioning catch_errors.
5320 (catch_errors_ftype, catch_errors): Delete.
5321 * infrun.c (normal_stop): Use TRY/CATCH instead of catch_errors.
5322 (hook_stop_stub): Delete.
5323 (restore_selected_frame): Change return type to void, and
5324 parameter type to const frame_id &.
5325 (restore_infcall_control_state): Use TRY/CATCH instead of
5326 catch_errors.
5327 * main.c (captured_command_loop): Return void and remove
5328 parameter. Remove references to catch_errors.
5329 (captured_main): Use TRY/CATCH instead of catch_errors.
5330 * objc-lang.c (objc_submethod_helper_data)
5331 (find_objc_msgcall_submethod_helper): Delete.
5332 (find_objc_msgcall_submethod): Use TRY/CATCH instead of
5333 catch_errors.
5334 * record-full.c (record_full_message): Return void.
5335 (record_full_message_args, record_full_message_wrapper): Delete.
5336 (record_full_message_wrapper_safe): Return bool and use TRY/CATCH
5337 instead of catch_errors.
5338 * solib-aix.c (solib_aix_open_symbol_file_object): Change
5339 parameter type to int.
5340 * solib-darwin.c (open_symbol_file_object): Ditto.
5341 * solib-dsbt.c (open_symbol_file_object): Ditto.
5342 * solib-frv.c (open_symbol_file_object): Ditto.
5343 * solib-svr4.c (open_symbol_file_object): Ditto.
5344 * solib-target.c (solib_target_open_symbol_file_object): Ditto.
5345 * solib.c (update_solib_list): Use TRY/CATCH instead of
5346 catch_errors.
5347 * solist.h (struct target_so_ops) <open_symbol_file_object>:
5348 Change type.
5349 * symmisc.c (struct print_symbol_args): Remove.
5350 (dump_symtab_1): Use TRY/CATCH instead of catch_errors.
5351 (print_symbol): Change type.
5352 * windows-nat.c (handle_load_dll, handle_unload_dll): Return void
5353 and remove parameters.
5354 (catch_errors): New.
5355 (get_windows_debug_event): Adjust.
5356
5357 2017-10-09 Tom Tromey <tom@tromey.com>
5358
5359 * mi/mi-main.c (free_splay_tree): Remove.
5360 (list_available_thread_groups): Use splay_tree_up.
5361 * common/gdb_splay_tree.h: New file.
5362
5363 2017-10-09 Tom Tromey <tom@tromey.com>
5364
5365 * mi/mi-main.c (do_nothing): Remove.
5366 (list_available_thread_groups): Update.
5367
5368 2017-10-09 Pedro Alves <palves@redhat.com>
5369
5370 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>: Skip
5371 reading registers when switching context.
5372
5373 2017-10-09 John Baldwin <jhb@FreeBSD.org>
5374
5375 * fbsd-nat.c (fbsd_siginfo_size): Use gdbarch_long_bit.
5376 (fbsd_convert_siginfo): Likewise.
5377 * fbsd-tdep.c (fbsd_core_xfer_siginfo): Likewise.
5378
5379 2017-10-09 Simon Marchi <simon.marchi@polymtl.ca>
5380
5381 * configure.ac (try_guile_versions): Remove guile-2.2.
5382 * configure: Regenerate.
5383
5384 2017-10-09 Tom Tromey <tom@tromey.com>
5385
5386 * Makefile.in (COMPILE.post, POSTCOMPILE): Restore $(basename).
5387 (COMPILE.pre): Use $(CXX).
5388
5389 2017-10-09 Pedro Alves <palves@redhat.com>
5390
5391 * cp-support.c (cp_remove_params): Return a gdb::unique_xmalloc_ptr.
5392 Use bool.
5393 (overload_list_add_symbol): Adjust to use gdb::unique_xmalloc_ptr.
5394 * cp-support.h (cp_remove_params): Now returns a
5395 gdb::unique_xmalloc_ptr.
5396 * dwarf2read.c (find_slot_in_mapped_hash): Now returns bool.
5397 Adjust to cp_remove_params returning a gdb::unique_xmalloc_ptr.
5398 * psymtab.c (psymtab_search_name): Adjust to cp_remove_params
5399 returning a gdb::unique_xmalloc_ptr.
5400 (lookup_partial_symbol): Adjust to use gdb::unique_xmalloc_ptr.
5401 * stack.c (find_frame_funname): Adjust to cp_remove_params
5402 returning a gdb::unique_xmalloc_ptr.
5403
5404 2017-10-08 Tom Tromey <tom@tromey.com>
5405
5406 * dwarf2read.c (dwarf2_get_dwz_file): Use
5407 gdb::unique_xmalloc_ptr.
5408 (find_slot_in_mapped_hash): Likewise.
5409 (dwarf2_physname): Likewise.
5410 (create_dwo_unit_in_dwp_v1): Use std::string.
5411 (create_dwo_unit_in_dwp_v2): Likewise.
5412 (lookup_dwo_cutu): Likewise.
5413 (inherit_abstract_dies): Use std::vector.
5414 (read_array_type): Likewise.
5415 (dwarf_decode_macros): Remove unused declaration.
5416 (unsigned_int_compar): Remove.
5417 (dwarf2_build_psymtabs_hard): Use scoped_restore.
5418 (psymtabs_addrmap_cleanup): Remove.
5419
5420 2017-10-08 Tom Tromey <tom@tromey.com>
5421
5422 * frame-unwind.c (frame_unwind_try_unwinder): Update.
5423 * frame.h (frame_cleanup_after_sniffer): Declare.
5424 (frame_prepare_for_sniffer): Return void.
5425 * frame.c (frame_cleanup_after_sniffer): No longer static. Change
5426 type of argument.
5427 (frame_prepare_for_sniffer): Return void.
5428
5429 2017-10-08 Tom Tromey <tom@tromey.com>
5430
5431 * utils.h (make_cleanup_value_free): Remove.
5432 * utils.c (do_value_free, struct cleanup): Remove.
5433 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>:
5434 Use gdb_value_up.
5435 * value.h (struct value_deleter): New.
5436 (gdb_value_up): New typedef.
5437
5438 2017-10-08 Tom Tromey <tom@tromey.com>
5439
5440 * symtab.c (free_search_symbols, do_free_search_symbols_cleanup)
5441 (make_cleanup_free_search_symbols): Remove.
5442 (search_symbols): Return std::vector.
5443 (symbol_search::compare_search_syms): Now member of
5444 symbol_search. Change arguments.
5445 (sort_search_symbols_remove_dups): Change arguments. Rewrite.
5446 (symtab_symbol_info, rbreak_command): Update.
5447 * symtab.h (struct symbol_search) <next>: Remove.
5448 Add constructors.
5449 (symbol_search::operator<): New function.
5450 (symbol_search::operator==): New function.
5451 (search_symbols): Remove std::vector.
5452 (free_search_symbols, make_cleanup_free_search_symbols): Remove.
5453 (symbol_search::compare_search_syms): Declare.
5454
5455 2017-10-06 Yao Qi <yao.qi@linaro.org>
5456
5457 * Makefile.in (ALL_64_TARGET_OBS): Replace aarch64-insn.o with
5458 arch/aarch64-insn.o.
5459 Remove one rule.
5460 * configure.tgt: Replace aarch64-insn.o with arch/aarch64-insn.o.
5461
5462 2017-10-06 Yao Qi <yao.qi@linaro.org>
5463
5464 * Makefile.in (ALL_TARGET_OBS): Replace arm.o, arm-get-next-pcs.o,
5465 and arm-linux.o with arch/arm.o, arch/arm-get-next-pcs.o and
5466 arch/arm-linux.o respectively.
5467 * configure.tgt: Likewise.
5468
5469 2017-10-06 Yao Qi <yao.qi@linaro.org>
5470
5471 * Makefile.in (ALL_TARGET_OBS): Rename i386.o to arch/i386.o.
5472 * configure.tgt (i386_tobjs): Replace i386.o with arch/i386.o.
5473
5474 2017-10-06 Pedro Alves <palves@redhat.com>
5475
5476 * windows-nat.c: Include <algorithm>.
5477
5478 2017-10-06 Yao Qi <yao.qi@linaro.org>
5479
5480 * configure.tgt (i386_tobjs): New variable.
5481 (amd64_tobjs): New variable.
5482 Set $cpu_obs and $os_obs.
5483
5484 2017-10-06 Yao Qi <yao.qi@linaro.org>
5485
5486 * Makefile.in (CONFIG_SRC_SUBDIR): New.
5487 (ALL_64_TARGET_OBS): Replace amd64.o with arch/amd64.o.
5488 (clean): Remove object files and dependency files.
5489 (distclean): Remove the directory.
5490 * configure.ac: Invoke AC_CONFIG_COMMANDS.
5491 * configure: Re-generated.
5492 * configure.tgt: Replace amd64.o with arch/amd64.o.
5493
5494 2017-10-05 Jose E. Marchesi <jose.marchesi@oracle.com>
5495
5496 PR build/22188
5497 * arm-tdep.c (arm_decode_misc_memhint_neon): Fix decoding of CPS
5498 and SETEND.
5499
5500 2017-10-05 Pedro Alves <palves@redhat.com>
5501
5502 * linux-nat.c (linux_child_follow_fork): When following the parent
5503 and detaching the child, consult the parent thread's architecture
5504 instead of the child's.
5505
5506 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
5507
5508 * ax.h: Do not include "doublest.h".
5509 (union agent_val): Remove.
5510
5511 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
5512
5513 * dfp.h (MAX_DECIMAL_STRING): Move to dfp.c.
5514 (decimal_to_string): Return std::string object.
5515 (decimal_from_string): Accept std::string object. Return bool.
5516 (decimal_from_integral, decimal_from_doublest): Remove.
5517 (decimal_from_longest): Add prototype.
5518 (decimal_from_ulongest): Likewise.
5519 (decimal_to_longest): Likewise.
5520 (decimal_from_doublest): Likewise.
5521 * dfp.c: Do not include "gdbtypes.h" or "value.h".
5522 (MAX_DECIMAL_STRING): Move here.
5523 (decimal_to_string): Return std::string object.
5524 (decimal_from_string): Accept std::string object. Return bool.
5525 (decimal_from_integral): Remove, replace by ...
5526 (decimal_from_longest, decimal_from_ulongest): ... these new functions.
5527 (decimal_to_longest): New function.
5528 (decimal_from_floating): Remove, replace by ...
5529 (decimal_from_doublest): ... this new function.
5530 (decimal_to_doublest): Update to new decimal_to_string interface.
5531
5532 * value.c (unpack_long): Use decimal_to_longest.
5533 * valops.c (value_cast): Use decimal_from_doublest instead of
5534 decimal_from_floating. Use decimal_from_[u]longest isntead of
5535 decimal_from_integral.
5536 * valarith.c (value_args_as_decimal): Likewise.
5537 * valprint.c (print_decimal_floating): Update to new
5538 decimal_to_string interface.
5539 * printcmd.c (printf_decfloat): Likewise.
5540 * c-exp.y (parse_number): Update to new decimal_from_string interface.
5541
5542 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
5543
5544 * doublest.h: Do not include "floatformat.h". Remove stale comments.
5545 * gdbtypes.c: Include "floatformat.h".
5546 * value.c: Likewise.
5547 * m68k-tdep.c: Likewise.
5548
5549 * findvar.c: Do not include "floatformat.h".
5550 * amd64-darwin-tdep.c: Likewise.
5551 * arm-linux-tdep.c: Likewise.
5552 * i386-darwin-tdep.c: Likewise.
5553 * i387-tdep.c: Likewise.
5554 * m68k-linux-tdep.c: Likewise.
5555 * mep-tdep.c: Likewise.
5556 * mips-tdep.c: Likewise.
5557 * nios2-tdep.c: Likewise.
5558 * s390-linux-tdep.c: Likewise.
5559 * sparc-obsd-tdep.c: Likewise.
5560 * sparc-tdep.c: Likewise.
5561 * sparc64-tdep.c: Likewise.
5562 * spu-tdep.c: Likewise.
5563 * tic6x-tdep.c: Likewise.
5564 * tilegx-tdep.c: Likewise.
5565 * vax-tdep.c: Likewise.
5566 * xstormy16-tdep.c: Likewise.
5567 * xtensa-tdep.c: Likewise.
5568
5569 * top.c: Do not include "doublest.h".
5570 * aarch64-tdep.c: Likewise.
5571 * alpha-tdep.c: Likewise.
5572 * arm-linux-tdep.c: Likewise.
5573 * m68k-linux-tdep.c: Likewise.
5574 * tilegx-tdep.c: Likewise.
5575 * xstormy16-tdep.c: Likewise.
5576
5577 2017-10-05 John Baldwin <jhb@FreeBSD.org>
5578
5579 * mips-fbsd-tdep.c (MIPS_INST_ADDIU_A0_SP_N32): Define.
5580 (mipsn32_fbsd_sigframe): Define.
5581 (mips_fbsd_init_abi): Install mipsn32_fbsd_sigframe unwinder
5582 for FreeBSD/mipsn32.
5583
5584 2017-10-05 John Baldwin <jhb@FreeBSD.org>
5585
5586 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_EHDRFLAGS and
5587 AT_HWCAP.
5588
5589 2017-10-05 Tristan Gingold <tgingold@free.fr>
5590
5591 * MAINTAINERS (Misc): Update my email address.
5592
5593 2017-10-04 Pedro Alves <palves@redhat.com>
5594
5595 * remote.c (get_remote_arch_state): New 'gdbarch' parameter. Use
5596 it instead of target_gdbarch.
5597 (get_remote_state, get_remote_packet_size): Adjust
5598 get_remote_arch_state calls, passing down target_gdbarch
5599 explicitly.
5600 (packet_reg_from_regnum, packet_reg_from_pnum): New parameter
5601 'gdbarch' and use it instead of target_gdbarch.
5602 (get_memory_packet_size): Adjust get_remote_arch_state calls,
5603 passing down target_gdbarch explicitly.
5604 (struct stop_reply) <arch>: New field.
5605 (remote_parse_stop_reply): Use the stopped thread's architecture,
5606 not the current inferior's. Save the architecture in the
5607 stop_reply.
5608 (process_stop_reply): Use the stop reply's architecture.
5609 (process_g_packet, remote_fetch_registers)
5610 (remote_prepare_to_store, store_registers_using_G)
5611 (remote_store_registers): Adjust get_remote_arch_state calls,
5612 using the regcache's architecture.
5613 (remote_get_trace_status): Adjust get_remote_arch_state calls,
5614 passing down target_gdbarch explicitly.
5615 * spu-multiarch.c (spu_thread_architecture): Defer to the target
5616 beneath instead of calling target_gdbarch.
5617 * target.c (default_thread_architecture): Use the specified
5618 inferior's architecture, instead of the current inferior's
5619 architecture (via target_gdbarch).
5620
5621 2017-10-04 Pedro Alves <palves@redhat.com>
5622
5623 * regcache.c (get_thread_arch_regcache): Remove null_ptid special
5624 case.
5625 (regcache_print): Handle !target_has_registers here instead.
5626
5627 2017-10-04 Pedro Alves <palves@redhat.com>
5628
5629 * frame.c (create_test_frame): Delete.
5630 * frame.h (create_test_frame): Delete.
5631 * gdbarch-selftests.c: Include gdbthread.h and target.h.
5632 (class regcache_test): Delete.
5633 (test_target_has_registers, test_target_has_stack)
5634 (test_target_has_memory, test_target_prepare_to_store)
5635 (test_target_store_registers): New functions.
5636 (test_target_ops): New class.
5637 (register_to_value_test): Error out if there's already a
5638 process_stratum (or higher) target pushed. Create a fuller mock
5639 environment, with mock target_ops, inferior, address space, thread
5640 and inferior_ptid.
5641 * progspace.c (struct address_space): Move to ...
5642 * progspace.h (struct address_space): ... here.
5643 * regcache.h (regcache::~regcache, regcache::raw_write)
5644 [GDB_SELF_TEST]: No longer virtual.
5645
5646 2017-10-04 Simon Marchi <simon.marchi@ericsson.com>
5647
5648 * mi/mi-main.c (list_available_thread_groups): Reverse filter logic.
5649
5650 2017-10-04 Pedro Alves <palves@redhat.com>
5651
5652 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Move code
5653 out of 'between TRY and CATCH'.
5654
5655 2017-10-04 Pedro Alves <palves@redhat.com>
5656
5657 * cli/cli-cmds.c (complete_command): Add missing END_CATCH.
5658 * common/common-exceptions.h (TRY): Open an outermost scope.
5659 Expand intro comment.
5660 (CATCH): Reindent.
5661 (END_CATCH): Close the outermost scope.
5662 * completer.c (complete_line_internal): Add missing END_CATCH.
5663
5664 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
5665
5666 * NEWS (Changes since GDB 8.0): Add entry about new
5667 'set-cwd-on-gdbserver' feature.
5668 (New remote packets): Add entry for QSetWorkingDir.
5669 * common/common-inferior.h (set_inferior_cwd): New prototype.
5670 * infcmd.c (set_inferior_cwd): Remove "static".
5671 (show_cwd_command): Expand text to include remote debugging.
5672 * remote.c: Add PACKET_QSetWorkingDir.
5673 (remote_protocol_features) <QSetWorkingDir>: New entry for
5674 PACKET_QSetWorkingDir.
5675 (extended_remote_set_inferior_cwd): New function.
5676 (extended_remote_create_inferior): Call
5677 "extended_remote_set_inferior_cwd".
5678 (_initialize_remote): Call "add_packet_config_cmd" for
5679 QSetWorkingDir.
5680
5681 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
5682
5683 * NEWS (New commands): Mention "set/show cwd".
5684 * cli/cli-cmds.c (_initialize_cli_cmds): Mention "set cwd" on
5685 "cd" command's help text.
5686 * common/common-inferior.h (get_inferior_cwd): New prototype.
5687 * infcmd.c (inferior_cwd_scratch): New global variable.
5688 (set_inferior_cwd): New function.
5689 (get_inferior_cwd): Likewise.
5690 (set_cwd_command): Likewise.
5691 (show_cwd_command): Likewise.
5692 (_initialize_infcmd): Add "set/show cwd" commands.
5693 * inferior.h (class inferior) <cwd>: New field.
5694 * nat/fork-inferior.c: Include "gdb_tilde_expand.h".
5695 (fork_inferior): Change inferior's cwd before its execution.
5696 * windows-nat.c (windows_create_inferior): Pass inferior's cwd
5697 to CreateProcess.
5698
5699 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
5700
5701 * Makefile.in (SFILES): Add gdb_tilde_expand.c.
5702 (HFILES_NO_SRCDIR): Add gdb_tilde_expand.h.
5703 (COMMON_OBS): Add gdb_tilde_expand.o.
5704 * common/gdb_tilde_expand.c: New file.
5705 * common/gdb_tilde_expand.h: Likewise.
5706
5707 2017-10-03 Maciej W. Rozycki <macro@imgtec.com>
5708
5709 * gdbarch.sh (objfile): Remove duplicate declaration.
5710 * gdbarch.h: Regenerate.
5711
5712 2017-10-03 Tom Tromey <tom@tromey.com>
5713
5714 * utils.c (internal_vproblem): Use string_vprintf.
5715
5716 2017-10-03 Tom Tromey <tom@tromey.com>
5717
5718 * printcmd.c (info_symbol_command): Use std::string.
5719
5720 2017-10-03 Tom Tromey <tom@tromey.com>
5721
5722 * top.c (gdb_safe_append_history): Use std::string.
5723
5724 2017-10-03 Tom Tromey <tom@tromey.com>
5725
5726 * event-top.c (stdin_event_handler): Update.
5727 * main.c (captured_main_1): Update.
5728 * top.h (make_delete_ui_cleanup): Remove.
5729 (struct ui): Add constructor and destructor.
5730 (new_ui, delete_ui): Remove.
5731 * top.c (make_delete_ui_cleanup): Remove.
5732 (new_ui_command): Use std::unique_ptr.
5733 (delete_ui_cleanup): Remove.
5734 (ui::ui): Rename from new_ui. Update.
5735 (free_ui): Remove.
5736 (ui::~ui): Rename from delete_ui. Update.
5737
5738 2017-10-03 Tom Tromey <tom@tromey.com>
5739
5740 * symfile.c (load_progress): Use gdb::byte_vector.
5741
5742 2017-10-03 Tom Tromey <tom@tromey.com>
5743
5744 * mi/mi-main.c (mi_cmd_trace_frame_collected): Remove unused
5745 declaration.
5746 * printcmd.c (x_command): Remove unused declaration.
5747 * symfile.c (symbol_file_command): Remove unused declaration.
5748
5749 2017-10-03 Tom Tromey <tom@tromey.com>
5750
5751 * utils.c (internal_vproblem): Use std::string.
5752 (defaulted_query): Likewise.
5753
5754 2017-10-03 Tom Tromey <tom@tromey.com>
5755
5756 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Update.
5757 * top.c (execute_command_to_string): Update.
5758 * utils.c (make_cleanup_restore_page_info): Remove.
5759 (do_restore_page_info_cleanup): Remove.
5760 (set_batch_flag_and_restore_page_info):
5761 New.
5762 (make_cleanup_restore_page_info): Remove.
5763 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
5764 (~set_batch_flag_and_restore_page_info): New
5765 (make_cleanup_restore_uinteger): Remove.
5766 (make_cleanup_restore_integer): Remove.
5767 (struct restore_integer_closure): Remove.
5768 (restore_integer): Remove.
5769 * utils.h (struct set_batch_flag_and_restore_page_info): New
5770 class.
5771 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
5772 (make_cleanup_restore_page_info): Remove.
5773 (make_cleanup_restore_uinteger) Remove.
5774 (make_cleanup_restore_integer) Remove.
5775
5776 2017-10-03 Tom Tromey <tom@tromey.com>
5777
5778 * record-full.h (record_full_gdb_operation_disable_set): Return
5779 scoped_restore_tmpl<int>.
5780 * infrun.c (adjust_pc_after_break): Update.
5781 (handle_signal_stop): Update.
5782 * record-full.c (record_full_gdb_operation_disable_set): Return
5783 scoped_restore_tmpl<int>.
5784 (record_full_wait_1, record_full_insert_breakpoint)
5785 (record_full_remove_breakpoint, record_full_save)
5786 (record_full_goto_insn): Update.
5787
5788 2017-10-02 Tom Tromey <tom@tromey.com>
5789
5790 PR rust/22236:
5791 * rust-lang.c (rust_val_print_str): New function.
5792 (val_print_struct): Call it.
5793 (rust_subscript): Preserve name of slice type.
5794
5795 2017-10-02 Tom Tromey <tom@tromey.com>
5796
5797 * rust-lang.c (rust_subscript): Handle slices in
5798 EVAL_AVOID_SIDE_EFFECTS case.
5799
5800 2017-10-02 Tom Tromey <tom@tromey.com>
5801
5802 * rust-lang.c (rust_slice_type_p): Recognize &str as a slice type.
5803
5804 2017-10-02 Tom Tromey <tom@tromey.com>
5805
5806 * rust-lang.h (rust_slice_type): Add "extern".
5807
5808 2017-10-02 Tom Tromey <tom@tromey.com>
5809 Pedro Alves <palves@redhat.com>
5810
5811 * ada-lang.h (ada_exc_info::operator<): Make const.
5812 (ada_exc_info::operator==): Make const.
5813 * ada-lang.c (ada_exc_info::operator<, ada_exc_info::operator==):
5814 Make const.
5815
5816 2017-09-29 Tom Tromey <tom@tromey.com>
5817
5818 * target.c (read_whatever_is_readable): Change type of "result".
5819 Update.
5820 (free_memory_read_result_vector): Remove.
5821 (read_memory_robust): Change return type. Update.
5822 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update. Use
5823 bin2hex, std::string.
5824 * target.h (memory_read_result_s): Remove typedef.
5825 (free_memory_read_result_vector): Remove.
5826 (read_memory_robust): Return std::vector.
5827
5828 2017-09-29 Tom Tromey <tom@tromey.com>
5829
5830 * mi/mi-main.c (captured_mi_execute_command): Use scope_restore.
5831
5832 2017-09-29 Tom Tromey <tom@tromey.com>
5833
5834 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Update.
5835 * ada-lang.h (struct ada_exc_info): Remove typedef. Declare
5836 operator< and operator==.
5837 (ada_exceptions_list): Return a std::vector.
5838 * ada-lang.c (ada_exc_info::operator<): Rename from
5839 compare_ada_exception_info.
5840 (ada_exc_info::operator==): New.
5841 (sort_remove_dups_ada_exceptions_list): Change type of
5842 "exceptions".
5843 (ada_add_standard_exceptions, ada_add_exceptions_from_frame)
5844 (ada_add_global_exceptions): Likewise.
5845 (ada_exceptions_list_1): Return a std::vector.
5846 (ada_exceptions_list): Likewise.
5847
5848 2017-09-29 Tom Tromey <tom@tromey.com>
5849
5850 * mi/mi-main.c (struct print_one_inferior_data) <inferiors>: Now a
5851 'std::set *'.
5852 (print_one_inferior): Update.
5853 (free_vector_of_ints): Remove.
5854 (list_available_thread_groups): Change "ids" to std::set.
5855 (mi_cmd_list_thread_groups): Update.
5856 (struct collect_cores_data) <core>: Now a std::set.
5857 (collect_cores): Update.
5858 (unique): Remove.
5859 (print_one_inferior): Update.
5860
5861 2017-09-29 Tom Tromey <tom@tromey.com>
5862
5863 * mi/mi-main.c (mi_execute_cli_command): Use std::string.
5864 (mi_execute_async_cli_command): Likewise.
5865 (mi_cmd_trace_frame_collected): Use field_fmt.
5866
5867 2017-09-29 Tom Tromey <tom@tromey.com>
5868
5869 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Use
5870 gdb::byte_vector.
5871
5872 2017-09-29 Tom Tromey <tom@tromey.com>
5873
5874 * mi/mi-parse.c (mi_parse): Remove unused declaration.
5875
5876 2017-09-29 Tom Tromey <tom@tromey.com>
5877
5878 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Don't copy "oarg".
5879
5880 2017-09-29 Tom Tromey <tom@tromey.com>
5881
5882 * varobj.h (varobj_gen_name): Return std::string.
5883 * varobj.c (varobj_gen_name): Return std::string.
5884 * mi/mi-cmd-var.c (mi_cmd_var_create): Use std::string.
5885 (mi_cmd_var_delete): Don't copy "name".
5886
5887 2017-09-29 Tom Tromey <tom@tromey.com>
5888
5889 * mi/mi-cmd-break.c (mi_argv_to_format): Return std::string.
5890 (mi_cmd_break_insert_1): Update.
5891
5892 2017-09-29 Tom Tromey <tom@tromey.com>
5893
5894 * target.h (make_scoped_defer_target_commit_resume): Update.
5895 * target.c (make_scoped_defer_target_commit_resume): Rename from
5896 make_cleanup_defer_target_commit_resume. Return a
5897 scoped_restore.
5898 * infrun.c (proceed): Use make_scoped_defer_target_commit_resume.
5899
5900 2017-09-29 Tom Tromey <tom@tromey.com>
5901
5902 * main.c (captured_main_1): Remove unused declaration.
5903 * spu-multiarch.c (parse_spufs_run): Remove unused declaration.
5904
5905 2017-09-29 Tom Tromey <tom@tromey.com>
5906
5907 * symtab.c (search_symbols): Remove unused outer cleanup.
5908 (make_source_files_completion_list): Remove unused declaration.
5909
5910 2017-09-29 Tom Tromey <tom@tromey.com>
5911
5912 * mt-tdep.c (mt_push_dummy_call): Use gdb::byte_vector.
5913
5914 2017-09-29 Tom Tromey <tom@tromey.com>
5915
5916 * xstormy16-tdep.c (xstormy16_push_dummy_call): Use
5917 gdb::byte_vector.
5918
5919 2017-09-29 Tom Tromey <tom@tromey.com>
5920
5921 * complaints.c (vcomplaint): Use std::string.
5922
5923 2017-09-29 Tom Tromey <tom@tromey.com>
5924
5925 * tracepoint.c (trace_variable_command): Use std::string.
5926 (encode_actions_1): Remove unused declarations.
5927 (create_tsv_from_upload): Use std::string.
5928
5929 2017-09-29 Tom Tromey <tom@tromey.com>
5930
5931 * cp-support.c (gdb_demangle): Use std::string.
5932
5933 2017-09-29 Tom Tromey <tom@tromey.com>
5934
5935 * stack.c (parse_frame_specification): Use std::string
5936 (info_frame_command): Use gdb::unique_xmalloc_ptr.
5937
5938 2017-09-29 Tom Tromey <tom@tromey.com>
5939
5940 * tilegx-tdep.c (tilegx_push_dummy_call): Use gdb::byte_vector.
5941
5942 2017-09-29 Tom Tromey <tom@tromey.com>
5943
5944 * utils.c (vfprintf_maybe_filtered): Use std::string.
5945 (vfprintf_unfiltered): Likewise.
5946
5947 2017-09-29 Tom Tromey <tom@tromey.com>
5948
5949 * event-top.c (top_level_prompt): Return std::string.
5950 (display_gdb_prompt): Update.
5951
5952 2017-09-29 Tom Tromey <tom@tromey.com>
5953
5954 * unittests/common-utils-selftests.c (format): New function.
5955 (string_vprintf_tests): New function.
5956 (_initialize_common_utils_selftests): Register new tests.
5957 * common/common-utils.c (string_vprintf): New function.
5958 * common/common-utils.h (string_vprintf): Declare.
5959
5960 2017-09-29 Pedro Alves <palves@redhat.com>
5961
5962 * common/rsp-low.c (unpack_varlen_hex): Constify.
5963 * common/rsp-low.h (unpack_varlen_hex): Constify.
5964 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
5965 Constify.
5966 * remote.c (remote_set_permissions, read_ptid)
5967 (remote_current_thread, remote_get_threads_with_qthreadinfo)
5968 (remote_static_tracepoint_marker_at)
5969 (remote_static_tracepoint_markers_by_strid)
5970 (stop_reply_extract_thread, remote_parse_stop_reply): Constify.
5971 * tracepoint.c (parse_trace_status, parse_tracepoint_status)
5972 (parse_tracepoint_definition, parse_tsv_definition)
5973 (parse_static_tracepoint_marker_definition): Constify.
5974 * tracepoint.h (parse_static_tracepoint_marker_definition)
5975 (parse_trace_status, parse_tracepoint_status)
5976 (parse_tracepoint_definition, parse_tsv_definition): Constify.
5977
5978 2017-09-29 Pedro Alves <palves@redhat.com>
5979
5980 * remote.c (target_buf, target_buf_size): Delete.
5981 (remote_get_noisy_reply): Remove buf_p and sizeof_buf parameters.
5982 Use the connection's packet buffer instead.
5983 All callers adjusted.
5984 (_initialize_remote): Remove references to target_buf and
5985 target_buf_size.
5986
5987 2017-09-28 Pedro Alves <palves@redhat.com>
5988
5989 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5990 unittests/common-utils-selftests.c.
5991 (SUBDIR_UNITTESTS_OBS): Add common-utils-selftests.o.
5992 (COMMON_OBS): Remove utils-selftests.o.
5993 * utils-selftests.c: Move to ...
5994 * unittests/common-utils-selftests.c: ... here and rename self
5995 test to "string_printf".
5996
5997 2017-09-28 Alexander Shaposhnikov <alexander.v.shaposhnikov@gmail.com> (tiny patch)
5998
5999 * dwarf2read.c (open_and_init_dwp_file): Protect against dwp_file
6000 having NULL cus or tus.
6001
6002 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
6003
6004 * arm-tdep.c: (convert_from_extended): Remove.
6005 (convert_to_extended): Likewise.
6006 (arm_extract_return_value): Use convert_typed_floating.
6007 (arm_store_return_value): Likewise.
6008
6009 * sh-tdep.h (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
6010 * sh-tdep.c: Do not include "floatformat.h".
6011 (sh_littlebyte_bigword_type): New function.
6012 (sh_register_convert_to_virtual): Use convert_typed_floating.
6013 (sh_register_convert_to_raw): Likewise.
6014 * sh64-tdep.c: (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
6015 (sh64_littlebyte_bigword_type): New function.
6016 (sh64_extract_return_value): Use convert_typed_floating.
6017 (sh64_register_convert_to_virtual): Likewise.
6018 (sh64_register_convert_to_raw): Likewise.
6019
6020 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
6021
6022 * doublest.h (floatformat_from_type): Move to gdbtypes.h.
6023 * doublest.c (floatformat_from_type): Move to gdbtypes.c.
6024
6025 * gdbtypes.h (union type_specific): Make field floatformat hold
6026 just a single struct floatformat, not an array.
6027 (floatformat_from_type): Move here.
6028 * gdbtypes.c (floatformat_from_type): Move here. Update to
6029 changed TYPE_FLOATFORMAT definition.
6030 (verify_floatformat): Update to changed TYPE_FLOATFORMAT.
6031 (recursive_dump_type): Likewise.
6032 (init_float_type): Install correct floatformat for byte order.
6033 (arch_float_type): Likewise.
6034
6035 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
6036
6037 * gdbtypes.c (init_type): Change incoming argument from
6038 length-in-bytes to length-in-bits. Assert length is a
6039 multiple of TARGET_CHAR_BITS.
6040 (arch_type, arch_flags_type): Likewise.
6041 (init_integer_type): Update call to init_type.
6042 (init_character_type): Likewise.
6043 (init_boolean_type): Likewise.
6044 (init_float_type): Likewise.
6045 (init_decfloat_type): Likewise.
6046 (init_complex_type): Likewise.
6047 (init_pointer_type): Likewise.
6048 (objfile_type): Likewise.
6049 (arch_integer_type): Update call to arch_type.
6050 (arch_character_type): Likewise.
6051 (arch_boolean_type): Likewise.
6052 (arch_float_type): Likewise.
6053 (arch_decfloat_type): Likewise.
6054 (arch_complex_type): Likewise.
6055 (arch_pointer_type): Likewise.
6056 (gdbtypes_post_init): Likewise.
6057
6058 * dwarf2read.c (dwarf2_init_float_type): Update call to init_type.
6059 (read_base_type): Likewise.
6060 * mdebugread.c (basic_type): Likewise.
6061 * stabsread.c (dbx_init_float_type): Likewise.
6062 (rs6000_builtin_type): Likewise.
6063 (read_range_type): Likewise. Also, fix call to init_integer_type
6064 with erroneous length argument.
6065
6066 * ada-lang.c (ada_language_arch_info): Update call to arch_type.
6067 * d-lang.c (build_d_types): Likewise.
6068 * f-lang.c (build_fortran_types): Likewise.
6069 * go-lang.c (build_go_types): Likewise.
6070 * opencl-lang.c (build_opencl_types): Likewise.
6071 * jit.c (finalize_symtab): Likewise.
6072 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
6073 (build_std_type_info_type): Likewise.
6074 * target-descriptions.c (tdesc_gdb_type): Likewise. Also,
6075 update call to arch_flags_type.
6076
6077 * linux-tdep.c (linux_get_siginfo_type_with_fields): Update call to
6078 arch_type.
6079 * fbsd-tdep.c (fbsd_get_siginfo_type): Likewise.
6080 * windows-tdep.c (windows_get_tlb_type): Likewise.
6081
6082 * avr-tdep.c (avr_gdbarch_init): Update call to arch_type.
6083 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
6084 * m32c-tdep.c (make_types): Likewise.
6085 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
6086 (rl78_psw_type): Update call to arch_flags_type.
6087 * m68k-tdep.c (m68k_ps_type): Update call to arch_flags_type.
6088 * rx-tdep.c (rx_psw_type): Likewise.
6089 (rx_fpsw_type): Likewise.
6090 * sparc-tdep.c (sparc_psr_type): Likewise.
6091 (sparc_fsr_type): Likewise.
6092 * sparc64-tdep.c (sparc64_pstate_type): Likewise.
6093 (sparc64_ccr_type): Likewise.
6094 (sparc64_fsr_type): Likewise.
6095 (sparc64_fprs_type): Likewise.
6096
6097 2017-09-27 Tom Tromey <tom@tromey.com>
6098
6099 * findcmd.c (find_command): Constify.
6100
6101 2017-09-27 Tom Tromey <tom@tromey.com>
6102
6103 * ada-tasks.c (task_command_1, task_command): Constify.
6104
6105 2017-09-27 Tom Tromey <tom@tromey.com>
6106
6107 * symtab.c (maintenance_print_symbol_cache)
6108 (maintenance_flush_symbol_cache)
6109 (maintenance_print_symbol_cache_statistics): Constify.
6110
6111 2017-09-27 Tom Tromey <tom@tromey.com>
6112
6113 * inferior.c (detach_inferior_command, kill_inferior_command)
6114 (inferior_command): Constify.
6115
6116 2017-09-27 Tom Tromey <tom@tromey.com>
6117
6118 * regcache.c (regcache_print, maintenance_print_registers)
6119 (maintenance_print_raw_registers)
6120 (maintenance_print_cooked_registers)
6121 (maintenance_print_register_groups)
6122 (maintenance_print_remote_registers): Constify.
6123
6124 2017-09-27 Tom Tromey <tom@tromey.com>
6125
6126 * printcmd.c (map_display_numbers, undisplay_command)
6127 (enable_disable_display_command, enable_display_command)
6128 (disable_display_command): Constify.
6129
6130 2017-09-27 Tom Tromey <tom@tromey.com>
6131
6132 * breakpoint.h (delete_command): Don't declare.
6133 * breakpoint.c (delete_command, enable_once_command)
6134 (enable_count_command, enable_delete_command, breakpoint_1)
6135 (maintenance_info_breakpoints, stopin_command, stopat_command)
6136 (delete_command, delete_trace_command, save_breakpoints)
6137 (save_breakpoints_command, save_tracepoints_command): Constify.
6138
6139 2017-09-27 Tom Tromey <tom@tromey.com>
6140
6141 * macrocmd.c (macro_expand_command, macro_expand_once_command)
6142 (skip_ws, extract_identifier, macro_define_command)
6143 (macro_undef_command, macro_list_command): Constify.
6144
6145 2017-09-27 Tom Tromey <tom@tromey.com>
6146
6147 * infcmd.c (environment_info, set_environment_command)
6148 (unset_environment_command, path_info, info_proc_cmd_1)
6149 (info_proc_cmd_mappings, info_proc_cmd_stat)
6150 (info_proc_cmd_status, info_proc_cmd_cwd, info_proc_cmd_cmdline)
6151 (info_proc_cmd_exe, info_proc_cmd_all): Constify.
6152
6153 2017-09-27 Tom Tromey <tom@tromey.com>
6154
6155 * i386-tdep.c (i386_mpx_info_bounds, i386_mpx_set_bounds):
6156 Constify.
6157
6158 2017-09-27 Tom Tromey <tom@tromey.com>
6159
6160 * symfile-mem.c (add_symbol_file_from_memory_command): Constify.
6161
6162 2017-09-27 Tom Tromey <tom@tromey.com>
6163
6164 * demangle.c (demangle_command): Constify.
6165
6166 2017-09-27 Tom Tromey <tom@tromey.com>
6167
6168 * progspace.c (maintenance_info_program_spaces_command):
6169 Constify.
6170
6171 2017-09-27 Tom Tromey <tom@tromey.com>
6172
6173 * compile/compile.c (check_raw_argument, compile_file_command)
6174 (compile_code_command, compile_print_command): Constify.
6175
6176 2017-09-27 Tom Tromey <tom@tromey.com>
6177
6178 * reggroups.c (maintenance_print_reggroups): Constify.
6179
6180 2017-09-27 Tom Tromey <tom@tromey.com>
6181
6182 * dwarf2read.c (save_gdb_index_command): Constify.
6183
6184 2017-09-27 Tom Tromey <tom@tromey.com>
6185
6186 * stap-probe.c (info_probes_stap_command): Constify.
6187
6188 2017-09-27 Tom Tromey <tom@tromey.com>
6189
6190 * fork-child.c (unset_exec_wrapper_command): Constify.
6191
6192 2017-09-27 Tom Tromey <tom@tromey.com>
6193
6194 * btrace.c (get_uint, get_context_size, no_chunk)
6195 (maint_btrace_packet_history_cmd)
6196 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
6197 (maint_info_btrace_cmd): Constify.
6198
6199 2017-09-27 Tom Tromey <tom@tromey.com>
6200
6201 * reverse.c (delete_bookmark_command): Constify.
6202
6203 2017-09-27 Tom Tromey <tom@tromey.com>
6204
6205 * remote.c (set_memory_packet_size)
6206 (set_memory_write_packet_size, show_memory_write_packet_size)
6207 (set_memory_read_packet_size, show_memory_read_packet_size)
6208 (compare_sections_command, packet_command, remote_put_command)
6209 (remote_get_command, remote_delete_command): Constify.
6210
6211 2017-09-27 Tom Tromey <tom@tromey.com>
6212
6213 * mips-tdep.c (show_mipsfpu_command, set_mipsfpu_single_command)
6214 (set_mipsfpu_double_command, set_mipsfpu_none_command)
6215 (set_mipsfpu_auto_command): Constify.
6216
6217 2017-09-27 Tom Tromey <tom@tromey.com>
6218
6219 * cli/cli-cmds.h (cd_command): Constify.
6220 * cli/cli-cmds.c (cd_command): Constify.
6221
6222 2017-09-27 Tom Tromey <tom@tromey.com>
6223
6224 * thread.c (thread_name_command, thread_find_command): Constify.
6225
6226 2017-09-27 Tom Tromey <tom@tromey.com>
6227
6228 * probe.c (enable_probes_command, disable_probes_command):
6229 Constify.
6230
6231 2017-09-27 Tom Tromey <tom@tromey.com>
6232
6233 * symfile.c (symbol_file_command): Constify.
6234 * gdbcore.h (deprecated_file_changed_hook): Constify.
6235 * exec.c (deprecated_file_changed_hook, exec_file_command)
6236 (file_command): Constify.
6237 * defs.h (symbol_file_command): Constify.
6238
6239 2017-09-27 Tom Tromey <tom@tromey.com>
6240
6241 * remote-fileio.c (set_system_call_allowed)
6242 (show_system_call_allowed): Constify.
6243
6244 2017-09-27 Tom Tromey <tom@tromey.com>
6245
6246 * tracepoint.c (delete_trace_variable_command)
6247 (tfind_end_command, tfind_start_command, tfind_pc_command)
6248 (tfind_tracepoint_command, tfind_line_command)
6249 (tfind_range_command, tfind_outside_command): Constify.
6250
6251 2017-09-27 Tom Tromey <tom@tromey.com>
6252
6253 * ax-gdb.c (maint_agent_printf_command, agent_command)
6254 (agent_eval_command): Constify.
6255
6256 2017-09-27 Tom Tromey <tom@tromey.com>
6257
6258 * tracepoint.c (info_scope_command): Constify.
6259 * python/python.c (gdbpy_decode_line): Constify.
6260 * python/py-breakpoint.c (bppy_init): Constify.
6261 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Constify.
6262 * location.h: (new_linespec_location)
6263 (string_to_event_location_basic, string_to_event_location):
6264 Constify.
6265 * location.c (new_linespec_location)
6266 (string_to_event_location_basic, string_to_event_location):
6267 Constify.
6268 * linespec.h (decode_line_with_current_source)
6269 (decode_line_with_last_displayed, linespec_lex_to_end): Constify.
6270 * linespec.c (linespec_lex_to_end)
6271 (decode_line_with_current_source)
6272 (decode_line_with_last_displayed): Constify.
6273 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x):
6274 Constify.
6275 * cli/cli-cmds.c (edit_command, list_command): Constify.
6276 * breakpoint.h (until_break_command, watch_command_wrapper)
6277 (awatch_command_wrapper, rwatch_command_wrapper)
6278 (init_ada_exception_breakpoint): Constify.
6279 * breakpoint.c (break_command_1, dprintf_command)
6280 (break_range_command, watch_command_wrapper)
6281 (rwatch_command_wrapper, awatch_command_wrapper)
6282 (until_break_command, init_ada_exception_breakpoint)
6283 (strace_marker_create_sals_from_location, trace_command)
6284 (ftrace_command, strace_command, struct tracepoint): Constify.
6285 * ax-gdb.c (agent_command_1): Constify.
6286 * ada-lang.c (ada_exception_sal): Constify.
6287
6288 2017-09-27 Tom Tromey <tom@tromey.com>
6289
6290 * record.c (cmd_record_delete, cmd_record_stop, cmd_record_save)
6291 (cmd_record_goto_begin, cmd_record_goto_end, get_insn_number)
6292 (get_context_size, no_chunk, get_insn_history_modifiers)
6293 (cmd_record_insn_history, get_call_history_modifiers)
6294 (cmd_record_call_history): Constify.
6295
6296 2017-09-27 Tom Tromey <tom@tromey.com>
6297
6298 * source.c (show_substitute_path_command)
6299 (unset_substitute_path_command, set_substitute_path_command):
6300 Constify.
6301
6302 2017-09-27 Tom Tromey <tom@tromey.com>
6303
6304 * typeprint.c (maintenance_print_type): Constify.
6305 * maint.c (maintenance_dump_me, maintenance_demangle)
6306 (maintenance_time_display, maintenance_info_sections)
6307 (maintenance_print_statistics, maintenance_deprecate)
6308 (maintenance_undeprecate): Constify.
6309 (maintenance_do_deprecate): Constify. Use std::string.
6310 (maintenance_selftest): Constify.
6311 * gdbtypes.h (maintenance_print_type): Constify.
6312
6313 2017-09-27 Tom Tromey <tom@tromey.com>
6314
6315 * hppa-tdep.c (unwind_command): Constify.
6316
6317 2017-09-27 Tom Tromey <tom@tromey.com>
6318
6319 * target-descriptions.c (unset_tdesc_filename_cmd)
6320 (maint_print_c_tdesc_cmd, maintenance_check_xml_descriptions):
6321 Constify.
6322
6323 2017-09-27 Tom Tromey <tom@tromey.com>
6324
6325 * dummy-frame.c (maintenance_print_dummy_frames): Constify.
6326
6327 2017-09-27 Tom Tromey <tom@tromey.com>
6328
6329 * tui/tui.c (tui_enable_command, tui_disable_command): Constify.
6330
6331 2017-09-27 Tom Tromey <tom@tromey.com>
6332
6333 * tui/tui-regs.c (tui_reg_command): Constify.
6334
6335 2017-09-27 Tom Tromey <tom@tromey.com>
6336
6337 * skip.c (skip_file_command, skip_function_command)
6338 (skip_enable_command, skip_disable_command, skip_delete_command):
6339 Constify.
6340
6341 2017-09-27 Tom Tromey <tom@tromey.com>
6342
6343 * record-btrace.c (cmd_record_btrace_bts_start)
6344 (cmd_record_btrace_pt_start): Constify.
6345
6346 2017-09-27 Tom Tromey <tom@tromey.com>
6347
6348 * symmisc.c (maintenance_print_symbols)
6349 (maintenance_print_msymbols, maintenance_print_objfiles)
6350 (maintenance_info_symtabs, maintenance_check_symtabs)
6351 (maintenance_expand_symtabs, maintenance_info_line_tables):
6352 Constify.
6353
6354 2017-09-27 Tom Tromey <tom@tromey.com>
6355
6356 * top.c (new_ui_command): Constify.
6357
6358 2017-09-27 Tom Tromey <tom@tromey.com>
6359
6360 * symfile.c (add_symbol_file_command)
6361 (remove_symbol_file_command, list_overlays_command)
6362 (map_overlay_command, unmap_overlay_command)
6363 (overlay_auto_command, overlay_manual_command)
6364 (overlay_off_command, overlay_load_command): Constify.
6365
6366 2017-09-27 Tom Tromey <tom@tromey.com>
6367
6368 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
6369 (info_spu_mailbox_command, info_spu_dma_command)
6370 (info_spu_proxydma_command): Constify.
6371
6372 2017-09-27 Tom Tromey <tom@tromey.com>
6373
6374 * cli/cli-logging.c (set_logging_on, set_logging_off): Constify.
6375
6376 2017-09-27 Tom Tromey <tom@tromey.com>
6377
6378 * cli/cli-script.c (user_defined_command): Constify.
6379
6380 2017-09-27 Tom Tromey <tom@tromey.com>
6381
6382 * cli/cli-dump.c (dump_memory_command, dump_value_command)
6383 (dump_srec_memory, dump_srec_value, dump_ihex_memory)
6384 (dump_ihex_value, dump_verilog_memory, dump_verilog_value)
6385 (dump_tekhex_memory, dump_tekhex_value, dump_binary_memory)
6386 (dump_binary_value, append_binary_memory, append_binary_value):
6387 Constify.
6388 (struct dump_context) <func>: Constify.
6389 (add_dump_command): Update.
6390
6391 2017-09-27 Tom Tromey <tom@tromey.com>
6392
6393 * cli/cli-cmds.c (show_version, show_configuration)
6394 (source_command, show_user): Constify.
6395
6396 2017-09-27 Tom Tromey <tom@tromey.com>
6397
6398 * target.c (maintenance_print_target_stack): Constify.
6399
6400 2017-09-27 Tom Tromey <tom@tromey.com>
6401
6402 * interps.c (interpreter_exec_cmd): Constify.
6403
6404 2017-09-27 Tom Tromey <tom@tromey.com>
6405
6406 * record-full.c (cmd_record_full_restore): Constify.
6407
6408 2017-09-27 Tom Tromey <tom@tromey.com>
6409
6410 * memattr.c (enable_mem_command, disable_mem_command)
6411 (delete_mem_command): Constify.
6412
6413 2017-09-27 Tom Tromey <tom@tromey.com>
6414
6415 * value.c (show_convenience): Constify.
6416
6417 2017-09-27 Tom Tromey <tom@tromey.com>
6418
6419 * gdbcore.h (core_file_command): Update.
6420 * corefile.c (core_file_command): Constify.
6421
6422 2017-09-27 Tom Tromey <tom@tromey.com>
6423
6424 * user-regs.c (maintenance_print_user_registers): Constify.
6425
6426 2017-09-27 Tom Tromey <tom@tromey.com>
6427
6428 * cp-namespace.c (maintenance_cplus_namespace): Constify.
6429
6430 2017-09-27 Tom Tromey <tom@tromey.com>
6431
6432 * cp-support.c (first_component_command): Constify.
6433
6434 2017-09-27 Tom Tromey <tom@tromey.com>
6435
6436 * psymtab.c (maintenance_print_psymbols)
6437 (maintenance_info_psymtabs, maintenance_check_psymtabs):
6438 Constify.
6439
6440 2017-09-27 Tom Tromey <tom@tromey.com>
6441
6442 * windows-tdep.c (display_tib): Constify.
6443
6444 2017-09-27 Tom Tromey <tom@tromey.com>
6445
6446 * linux-fork.c (delete_checkpoint_command)
6447 (detach_checkpoint_command): Constify.
6448
6449 2017-09-27 Tom Tromey <tom@tromey.com>
6450
6451 * cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify.
6452
6453 2017-09-27 Tom Tromey <tom@tromey.com>
6454
6455 * arc-tdep.c (dump_arc_instruction_command): Constify.
6456
6457 2017-09-27 Tom Tromey <tom@tromey.com>
6458
6459 * valprint.c (set_radix, show_radix): Constify.
6460
6461 2017-09-27 Tom Tromey <tom@tromey.com>
6462
6463 * dtrace-probe.c (info_probes_dtrace_command): Constify.
6464
6465 2017-09-27 Tom Tromey <tom@tromey.com>
6466
6467 * command.h (not_just_help_class_command): Update.
6468 * cli/cli-decode.h (not_just_help_class_command): Update.
6469 * cli/cli-decode.c (not_just_help_class_command): Constify.
6470
6471 2017-09-27 Tom Tromey <tom@tromey.com>
6472
6473 * gdb_bfd.c (maintenance_info_bfds): Constify.
6474
6475 2017-09-27 Tom Tromey <tom@tromey.com>
6476
6477 * cli/cli-decode.c (add_cmd, set_cmd_cfunc): New function
6478 overloads.
6479 (do_add_cmd): Rename from add_cmd. Don't call set_cmd_cfunc.
6480 (do_const_cfunc): New function.
6481 (cmd_cfunc_eq): New overload.
6482 (cli_user_command_p): Check do_const_cfunc.
6483 * cli/cli-decode.h (struct cmd_list_element) <function>: New field
6484 const_cfunc.
6485 * command.h (add_cmd): Add const overload and no-function
6486 overload.
6487 (set_cmd_cfunc): Add const overload.
6488 (cmd_const_cfunc_ftype): Declare.
6489 (cmd_cfunc_eq): Add const overload.
6490 * breakpoint.c, cli-cmds.c, cli-dump.c, guile/scm-cmd.c,
6491 python/py-cmd.c, target.c, tracepoint.c: Use no-function add_cmd
6492 overload.
6493
6494 2017-09-27 Tom Tromey <tom@tromey.com>
6495
6496 * macroexp.c (get_next_token_for_substitution): New function.
6497 (substitute_args): Call it. Check for __VA_OPT__.
6498
6499 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
6500 Pedro Alves <palves@redhat.com>
6501
6502 * dwarf2read.c (dwarf2_cu): Remove field producer_is_icc and add
6503 producer_is_icc_lt_14.
6504 (producer_is_icc_lt_14): New function.
6505 (check_producer): Add code for checking version of ICC.
6506 (producer_is_icc): Move to producer.c.
6507 (read_structure_type): Restrict ICC workaround to ICC<14.
6508 * producer.c: Include selftest.h.
6509 (producer_is_icc, producer_parsing_tests, _initialize_producer):
6510 New functions.
6511 * producer.h (producer_is_icc): New declaration.
6512
6513 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
6514
6515 * Makefile.in (SFILES): Add producer.c.
6516 (COMMON_OBS): Add producer.o
6517 * amd64-tdep.c (producer.h): Add new include.
6518 * dwarf2read.c (producer.h): Add new include.
6519 * producer.c: New file.
6520 * producer.h: New file.
6521 * utils.c (producer_is_gcc, producer_is_gcc_ge_4): Move to
6522 producer.c.
6523 * utils.h (producer_is_gcc, producer_is_gcc_ge_4): Move to
6524 producer.h.
6525
6526 2017-09-26 Matthias Klose <doko@ubuntu.com>
6527
6528 * configure.ac: Search ncursesw before ncurses.
6529 Check ncursesw/ncurses.h before ncurses/ncurses.h.
6530 * gdb_curses.h: Include <ncursesw/ncurses.h>
6531 * config.in, configure: Regenerate.
6532
6533 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6534
6535 PR gdb/22185
6536 * configure.host <*-*-solaris2.[01], *-*-solaris2.[2-9]*>: Mark as
6537 obsolete.
6538 Use gdb_host sol2 for i[34567]86-*-solaris2*, x86_64-*-solaris2*.
6539 Remove i386sol2 support.
6540 * configure.nat <i386sol2>: Remove.
6541 <sol2-64>: Fold into ...
6542 <sol2>: ... this.
6543 Move common settings to default section.
6544 Add sol-thread.o.
6545 * configure.tgt <i[34567]86-*-solaris2.1[0-9]*,
6546 x86_64-*-solaris2.1[0-9]*>: Rename to ...
6547 <i[34567]86-*-solaris2*, x86_64-*-solaris2*>: ... this.
6548 <i[34567]86-*-solaris*>: Remove.
6549 <sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*>: Remove.
6550
6551 * configure.ac: Remove wctype in libw check.
6552 (_MSE_INT_H): Don't define on Solaris 7-9.
6553 <solaris*>: Remove libthread_db.so.1 check.
6554 * configure: Regenerate.
6555 * config.in: Regenerate.
6556
6557 * proc-service.c: Remove PROC_SERVICE_IS_OLD handling.
6558 (gdb_ps_prochandle_t, gdb_ps_read_buf_t, gdb_ps_write_buf_t)
6559 (gdb_ps_size_t): Remove.
6560 Use base types in users.
6561 * sol-thread.c: Likewise, also for gdb_ps_addr_t.
6562
6563 * NEWS (Changes since GDB 8.0): Document Solaris 2.0-9 removal.
6564
6565 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6566
6567 PR build/22206
6568 * sparc64-tdep.c (adi_tag_fd): Print pid as long.
6569 (adi_is_addr_mapped): Likewise.
6570 (PSR_ICC): Don't redefine.
6571 (PSR_IMPL): Likewise.
6572
6573 2017-09-25 Tom Tromey <tom@tromey.com>
6574
6575 * regcache.c (regcache::dump): Use string_printf.
6576
6577 2017-09-25 Tom Tromey <tom@tromey.com>
6578
6579 * regcache.c (class regcache_invalidator): New.
6580 (struct register_to_invalidate): Remove.
6581 (make_cleanup_regcache_invalidate): Remove.
6582 (regcache::raw_write): Use regcache_invalidator.
6583
6584 2017-09-25 Tom Tromey <tom@tromey.com>
6585
6586 * spu-tdep.c (spu2ppu_sniffer): Update.
6587 * regcache.h (make_cleanup_regcache_xfree): Don't declare.
6588 * regcache.c (do_regcache_xfree, make_cleanup_regcache_xfree):
6589 Remove.
6590 * ppc-linux-tdep.c (ppu2spu_sniffer): Update.
6591 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Update.
6592 * frame.h (frame_save_as_regcache): Return std::unique_ptr.
6593 * frame.c (frame_save_as_regcache): Return std::unique_ptr.
6594 (frame_pop): Update.
6595
6596 2017-09-25 Tom Tromey <tom@tromey.com>
6597
6598 * spu-tdep.c (spu2ppu_dealloc_cache): Use delete.
6599 * regcache.h (regcache_xfree): Don't declare.
6600 * regcache.c (regcache_xfree): Remove.
6601 (do_regcache_xfree): Use delete.
6602 * ppc-linux-tdep.c (ppu2spu_dealloc_cache): Use delete.
6603 * linux-fork.c (free_fork): Use delete.
6604 (fork_save_infrun_state): Likewise.
6605 * jit.c (jit_dealloc_cache): Use delete.
6606 * infrun.c (discard_infcall_suspend_state): Use delete.
6607
6608 2017-09-25 Tom Tromey <tom@tromey.com>
6609
6610 * regcache.h (regcache_xmalloc): Don't declare.
6611 (regcache_raw_set_cached_value): Update comment.
6612 * regcache.c (regcache_xmalloc): Remove.
6613 * ppc-linux-tdep.c (ppu2spu_sniffer): Use new.
6614 * jit.c (jit_frame_sniffer): Use new.
6615 * frame.c (frame_save_as_regcache): Use new.
6616
6617 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6618
6619 * NEWS: Advertise support for guarded-storage registers on IBM z.
6620
6621 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6622
6623 * s390-linux-nat.c (have_regset_gs): New static variable.
6624 (s390_linux_fetch_inferior_registers): Handle guarded-storage
6625 control block and guarded-storage broadcast control regsets.
6626 (s390_read_description): Detect whether the target has
6627 guarded-storage support, return appropriate tdesc.
6628 * s390-linux-tdep.c (features/s390-gs-linux64.c): New include.
6629 (features/s390x-gs-linux64.c): Likewise.
6630 (struct gdbarch_tdep) <have_gs>: New field.
6631 (s390_regmap_gs, s390_regmap_gsbc, s390_gs_regset)
6632 (s390_gsbc_regset): New variables.
6633 (s390_iterate_over_regset_sections): Iterate over s390_gs_regset
6634 and s390_gsbc_regset, if applicable.
6635 (s390_core_read_description): Check whether core file was from a
6636 target with guarded-storage support; include appropriate regsets.
6637 (s390_gdbarch_init): Add registers for guarded-storage support.
6638 (_initialize_s390_tdep): Initialize new target descriptions that
6639 include registers for guarded-storage support.
6640 * s390-linux-tdep.h (HWCAP_S390_GS, S390_GSD_REGNUM)
6641 (S390_GSSM_REGNUM, S390_GSEPLA_REGNUM)
6642 (S390_BC_GSD_REGNUM, S390_BC_GSSM_REGNUM): New defines.
6643 (S390_NUM_REGS): Adjust macro definition.
6644 (s390_gs_regset, s390_gsbc_regset, tdesc_s390_gs_linux64)
6645 (tdesc_s390x_gs_linux64): New declarations.
6646
6647 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6648
6649 * features/s390-gs-linux64.xml: New file.
6650 * features/s390-gs.xml: New file.
6651 * features/s390-gsbc.xml: New file.
6652 * features/s390x-gs-linux64.xml: New file.
6653 * features/Makefile (WHICH): Add s390-gs-linux64 and
6654 s390x-gs-linux64.
6655 (s390-gs-linux64-expedite, s390x-gs-linux64-expedite): New macros.
6656 (XMLTOC): Add s390-gs-linux64.xml and s390x-linux64.xml.
6657 * features/s390-gs-linux64.c: New generated file.
6658 * features/s390x-gs-linux64.c: New file.
6659 * regformats/s390-gs-linux64.dat: New file.
6660 * regformats/s390x-gs-linux64.dat: New file.
6661
6662 2017-09-23 Tom Tromey <tom@tromey.com>
6663
6664 * defs.h (make_cleanup_override_quit_handler): Don't declare.
6665
6666 2017-09-22 Tom Tromey <tom@tromey.com>
6667
6668 * utils.c (class scoped_input_handler) <m_quit_handler>: Change
6669 type to scoped_restore_tmpl.
6670 <scoped_input_handler>: Initialize m_quit_handler directly.
6671
6672 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
6673
6674 * cli/cli-cmds.c (pwd_command): Use "getcwd (NULL, 0)".
6675 (cd_command): Likewise. Free "current_directory" before
6676 assigning to it.
6677 * main.c (captured_main_1): Use "getcwd (NULL, 0)".
6678 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Likewise.
6679 * top.c (gdb_dirbuf): Remove global declaration.
6680 * top.h (gdb_dirbuf): Likewise.
6681
6682 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
6683
6684 * gnulib/aclocal.m4: Regenerate.
6685 * gnulib/config.in: Regenerate.
6686 * gnulib/configure: Regenerate.
6687 * gnulib/import/Makefile.am: Regenerate.
6688 * gnulib/import/Makefile.in: Regenerate.
6689 * gnulib/import/assure.h: New file.
6690 * gnulib/import/at-func.c: Likewise
6691 * gnulib/import/chdir-long.c: New file.
6692 * gnulib/import/chdir-long.h: New file.
6693 * gnulib/import/cloexec.c: New file.
6694 * gnulib/import/cloexec.h: New file.
6695 * gnulib/import/close.c: New file.
6696 * gnulib/import/closedir.c: New file.
6697 * gnulib/import/dirent-private.h: New file.
6698 * gnulib/import/dup-safer.c: New file.
6699 * gnulib/import/dup.c: New file.
6700 * gnulib/import/dup2.c: New file.
6701 * gnulib/import/error.c: New file.
6702 * gnulib/import/error.h: New file.
6703 * gnulib/import/exitfail.c: New file.
6704 * gnulib/import/exitfail.h: New file.
6705 * gnulib/import/fchdir.c: New file.
6706 * gnulib/import/fcntl.c: New file.
6707 * gnulib/import/fcntl.in.h: New file.
6708 * gnulib/import/fd-hook.c: New file.
6709 * gnulib/import/fd-hook.h: New file.
6710 * gnulib/import/fd-safer.c: New file.
6711 * gnulib/import/fdopendir.c: New file.
6712 * gnulib/import/filename.h: New file.
6713 * gnulib/import/filenamecat-lgpl.c: New file.
6714 * gnulib/import/filenamecat.h: New file.
6715 * gnulib/import/fstat.c: New file.
6716 * gnulib/import/fstatat.c: New file.
6717 * gnulib/import/getcwd-lgpl.c: New file.
6718 * gnulib/import/getcwd.c: New file.
6719 * gnulib/import/getdtablesize.c: New file.
6720 * gnulib/import/getlogin_r.c: New file.
6721 * gnulib/import/getprogname.c: New file.
6722 * gnulib/import/getprogname.h: New file.
6723 * gnulib/import/gettext.h: New file.
6724 * gnulib/import/glob-libc.h: New file.
6725 * gnulib/import/glob.c: New file.
6726 * gnulib/import/glob.in.h: New file.
6727 * gnulib/import/intprops.h: New file.
6728 * gnulib/import/m4/chdir-long.m4: New file.
6729 * gnulib/import/m4/close.m4: New file.
6730 * gnulib/import/m4/closedir.m4: New file.
6731 * gnulib/import/m4/d-ino.m4: New file.
6732 * gnulib/import/m4/d-type.m4: New file.
6733 * gnulib/import/m4/dup.m4: New file.
6734 * gnulib/import/m4/dup2.m4: New file.
6735 * gnulib/import/m4/error.m4: New file.
6736 * gnulib/import/m4/fchdir.m4: New file.
6737 * gnulib/import/m4/fcntl.m4: New file.
6738 * gnulib/import/m4/fcntl_h.m4: New file.
6739 * gnulib/import/m4/fdopendir.m4: New file.
6740 * gnulib/import/m4/filenamecat.m4: New file.
6741 * gnulib/import/m4/fstat.m4: New file.
6742 * gnulib/import/m4/fstatat.m4: New file.
6743 * gnulib/import/m4/getcwd-abort-bug.m4: New file.
6744 * gnulib/import/m4/getcwd-path-max.m4: New file.
6745 * gnulib/import/m4/getcwd.m4: New file.
6746 * gnulib/import/m4/getdtablesize.m4: New file.
6747 * gnulib/import/m4/getlogin_r.m4: New file.
6748 * gnulib/import/m4/getprogname.m4: New file.
6749 * gnulib/import/m4/glob.m4: New file.
6750 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
6751 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
6752 * gnulib/import/m4/mempcpy.m4: New file.
6753 * gnulib/import/m4/memrchr.m4: New file.
6754 * gnulib/import/m4/mode_t.m4: New file.
6755 * gnulib/import/m4/msvc-inval.m4: New file.
6756 * gnulib/import/m4/msvc-nothrow.m4: New file.
6757 * gnulib/import/m4/open.m4: New file.
6758 * gnulib/import/m4/openat.m4: New file.
6759 * gnulib/import/m4/opendir.m4: New file.
6760 * gnulib/import/m4/readdir.m4: New file.
6761 * gnulib/import/m4/realloc.m4: New file.
6762 * gnulib/import/m4/rewinddir.m4: New file.
6763 * gnulib/import/m4/save-cwd.m4: New file.
6764 * gnulib/import/m4/strdup.m4: New file.
6765 * gnulib/import/m4/strerror.m4: New file.
6766 * gnulib/import/m4/unistd-safer.m4: New file.
6767 * gnulib/import/mempcpy.c: New file.
6768 * gnulib/import/memrchr.c: New file.
6769 * gnulib/import/msvc-inval.c: New file.
6770 * gnulib/import/msvc-inval.h: New file.
6771 * gnulib/import/msvc-nothrow.c: New file.
6772 * gnulib/import/msvc-nothrow.h: New file.
6773 * gnulib/import/open.c: New file.
6774 * gnulib/import/openat-die.c: New file.
6775 * gnulib/import/openat-priv.h: New file.
6776 * gnulib/import/openat-proc.c: New file.
6777 * gnulib/import/openat.c: New file.
6778 * gnulib/import/openat.h: New file.
6779 * gnulib/import/opendir.c: New file.
6780 * gnulib/import/pipe-safer.c: New file.
6781 * gnulib/import/readdir.c: New file.
6782 * gnulib/import/realloc.c: New file.
6783 * gnulib/import/rewinddir.c: New file.
6784 * gnulib/import/save-cwd.c: New file.
6785 * gnulib/import/save-cwd.h: New file.
6786 * gnulib/import/strdup.c: New file.
6787 * gnulib/import/strerror-override.c: New file.
6788 * gnulib/import/strerror-override.h: New file.
6789 * gnulib/import/strerror.c: New file.
6790 * gnulib/import/unistd--.h: New file.
6791 * gnulib/import/unistd-safer.h: New file.
6792 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
6793 "getcwd" and "glob".
6794 * ser-tcp.c: Undefine "close" before redefining it.
6795
6796 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
6797
6798 * guile/scm-value.c (gdbscm_value_address): Initialize address,
6799 get rid of res_val.
6800
6801 2017-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6802
6803 * configure.nat <i386sol2,i386>: Add fork-inferior.o to NATDEPFILES.
6804 <sol2,sparc>: Likewise.
6805 <sol2-64,i386>: Likewise.
6806
6807 * warning.m4 (AM_GDB_WARNINGS): Disable -Wunknown-pragmas,
6808 -Wdeprecated-declarations on *-*-solaris*.
6809 * configure: Regenerate.
6810
6811 * procfs.c: Include "nat/inferior.h".
6812 (procfs_info_proc): Fix typo.
6813
6814 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6815
6816 * remote.c (vector): Include.
6817 (struct private_thread_info): Add field, thread_handle.
6818 (free_private_thread_info): Deallocate storage associated with
6819 thread handle.
6820 (get_private_info_thread): Initialize `thread_handle' field.
6821 (struct thread_item): Add field, thread_handle.
6822 (clear_threads_listing_context): Deallocate storage associated
6823 with thread handle.
6824 (start_thread): Add support for "handle" attribute.
6825 (thread_attributes): Add "handle".
6826 (remote_get_threads_with_qthreadinfo): Initialize thread_handle
6827 field.
6828 (remote_update_thread_list): Update thread_handle.
6829 (remote_thread_handle_to_thread_info): New function.
6830 (init_remote_ops): Initialize to_thread_handle_to_thread_info.
6831
6832 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6833
6834 * python/py-inferior.c (gdbpy_thread_from_thread_handle): New
6835 function.
6836 (inferior_object_methods): Add gdbpy_thread_from_thread_handle.
6837 * python/python-internal.h (thread_object_type): Declare.
6838
6839 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6840
6841 * target.h (struct target_ops): Add to_thread_handle_to_thread_info.
6842 (target_thread_handle_to_thread_info): Declare.
6843 * target.c (target_thread_handle_to_thread_info): New function.
6844 * target-delegates.c: Regenerate.
6845 * gdbthread.h (find_thread_by_handle): Declare.
6846 * thread.c (find_thread_by_handle): New function.
6847 * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New
6848 function.
6849 (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info.
6850
6851 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
6852
6853 * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF.
6854
6855 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
6856
6857 * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF.
6858
6859 2017-09-21 Yao Qi <yao.qi@linaro.org>
6860
6861 * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o
6862 to gdb_target_obs.
6863
6864 2017-09-20 Tom Tromey <tom@tromey.com>
6865
6866 * breakpoint.c (struct counted_command_line): Remove.
6867 (breakpoint_commands): Update.
6868 (alloc_counted_command_line, incref_counted_command_line)
6869 (decref_counted_command_line, do_cleanup_counted_command_line)
6870 (make_cleanup_decref_counted_command_line): Remove.
6871 (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats)
6872 (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check)
6873 (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint)
6874 (save_breakpoints): Update.
6875 * breakpoint.h (counted_command_line): Now a typedef to
6876 shared_ptr.
6877 (struct breakpoint) <commands>: Now a counted_command_line.
6878 (struct bpstats) <command>: Likewise.
6879
6880 2017-09-20 Tom Tromey <tom@tromey.com>
6881
6882 * breakpoint.c (struct commands_info, do_map_commands_command):
6883 Remove.
6884 (commands_command_1): Update.
6885 (iterate_over_related_breakpoints): Take a function_view.
6886 (do_delete_breakpoint, do_map_delete_breakpoint): Remove.
6887 (delete_command): Update.
6888 (map_breakpoint_numbers): Take a function_view.
6889 (do_disable_breakpoint, do_map_delete_breakpoint): Remove.
6890 (disable_command): Update.
6891 (do_enable_breakpoint, do_map_enable_breakpoint): Remove.
6892 (enable_command): Update.
6893 (struct disp_data, do_enable_breakpoint_disp)
6894 (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint)
6895 (do_map_enable_delete_breakpoint): Remove.
6896 (enable_once_command, enable_count_command, enable_delete_command)
6897 (delete_trace_variable_command): Update.
6898
6899 2017-09-20 Tom Tromey <tom@tromey.com>
6900
6901 * breakpoint.c (~bpstats): Rename from bpstat_free. Update.
6902 (bpstat_clear): Use delete.
6903 (bpstats): New constructors.
6904 (bpstat_copy, bpstat_stop_status): Use new.
6905 (dprintf_after_condition_true): Update.
6906 * breakpoint.h (bpstats::bpstats): Add constructors.
6907 (bpstats::~bpstats): Add destructor.
6908
6909 2017-09-20 Pedro Alves <palves@redhat.com>
6910
6911 * eval.c (make_params): Delete, refactored as ...
6912 (class fake_method): ... this new type's ctor.
6913 (fake_method::~fake_method): New.
6914 (evaluate_subexp_standard): Use 'fake_method'.
6915
6916 2017-09-20 Tom Tromey <tom@tromey.com>
6917
6918 * windows-nat.c (get_windows_debug_event, windows_wait)
6919 (do_initial_windows_stuff, windows_attach): Update.
6920 * utils.c (vwarning, internal_vproblem): Update.
6921 (ui_unregister_input_event_handler_cleanup)
6922 (prepare_to_handle_input): Remove.
6923 (class scoped_input_handler): New.
6924 (defaulted_query, prompt_for_continue): Update.
6925 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
6926 Update.
6927 * top.c (undo_terminal_modifications_before_exit): Update.
6928 * target/target.h (target_terminal_init, target_terminal_inferior)
6929 (target_terminal_ours): Don't declare.
6930 (class target_terminal): New.
6931 * target.h (target_terminal_is_inferior, target_terminal_is_ours)
6932 (target_terminal_ours_for_output)
6933 (make_cleanup_restore_target_terminal): Don't declare.
6934 (target_terminal_info): Remove.
6935 * target.c (enum terminal_state, terminal_state): Remove.
6936 (target_terminal::terminal_state): Define.
6937 (target_terminal::init): Rename from target_terminal_init.
6938 (target_terminal::inferior): Rename from
6939 target_terminal_inferior.
6940 (target_terminal::ours): Rename from target_terminal_ours.
6941 (target_terminal::ours_for_output): Rename from
6942 target_terminal_ours_for_output.
6943 (target_terminal::info): New method.
6944 (cleanup_restore_target_terminal)
6945 (make_cleanup_restore_target_terminal): Remove.
6946 * solib.c (handle_solib_event): Update.
6947 * remote.c (remote_serial_quit_handler): Update.
6948 (remote_terminal_inferior, remote_wait_as): Update.
6949 * record-full.c (record_full_wait_1): Update.
6950 * nto-procfs.c (procfs_create_inferior): Update.
6951 * nat/fork-inferior.c (startup_inferior): Update.
6952 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
6953 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
6954 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
6955 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
6956 (mi_breakpoint_created, mi_breakpoint_deleted)
6957 (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded)
6958 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
6959 (mi_user_selected_context_changed, report_initial_inferior):
6960 Update.
6961 * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours)
6962 (linux_nat_terminal_inferior): Update.
6963 * infrun.c (follow_fork_inferior)
6964 (handle_vfork_child_exec_or_exit, do_target_resume)
6965 (check_curr_ui_sync_execution_done, handle_inferior_event_1)
6966 (handle_signal_stop, maybe_remove_breakpoints, normal_stop):
6967 Update.
6968 * inflow.c (child_terminal_init, info_terminal_command): Update.
6969 * infcmd.c (post_create_inferior, continue_1, prepare_one_step)
6970 (attach_command): Update.
6971 * infcall.c (call_thread_fsm_should_stop): Update.
6972 * gnu-nat.c (gnu_attach): Update.
6973 * extension.c (struct active_ext_lang_state)
6974 (restore_active_ext_lang): Update.
6975 * exceptions.c (print_flush): Update.
6976 * event-top.c (async_enable_stdin, default_quit_handler): Update.
6977 (struct quit_handler_cleanup_data, restore_quit_handler)
6978 (restore_quit_handler_dtor, make_cleanup_override_quit_handler):
6979 Remove.
6980 * cp-support.c (gdb_demangle): Update.
6981 * breakpoint.c (update_inserted_breakpoint_locations)
6982 (insert_breakpoint_locations, handle_jit_event)
6983 (disable_breakpoints_in_unloaded_shlib): Update.
6984 * annotate.c (annotate_breakpoints_invalid)
6985 (annotate_frames_invalid): Update.
6986
6987 2017-09-20 Tom Tromey <tom@tromey.com>
6988
6989 * main.c (catch_command_errors): Rename from
6990 catch_command_errors_const.
6991 (captured_main_1): Update.
6992
6993 2017-09-20 Pedro Alves <palves@redhat.com>
6994
6995 * cli/cli-cmds.c (list_command): Use print_sal_location.
6996 (print_sal_location): New function.
6997 (ambiguous_line_spec): Use print_sal_location.
6998 * linespec.c (symbol_to_sal): Record the symbol in the sal.
6999 * symtab.c (find_function_start_sal): Likewise.
7000 * symtab.h (symtab_and_line::symbol): New field.
7001
7002 2017-09-20 Pedro Alves <palves@redhat.com>
7003
7004 * linespec.c (minsym_found): Handle non-text minsyms.
7005 (symbol_to_sal): Record a sal.pc for non-block, non-label symbols.
7006
7007 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
7008
7009 * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing
7010 backslash.
7011
7012 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
7013
7014 * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use
7015 vmovups instead vmovaps.
7016 (move_zmm_data_to_memory): Use vmovups instead vmovaps.
7017
7018 2017-09-19 John Baldwin <jhb@FreeBSD.org>
7019
7020 * NEWS (Changes since GDB 8.0): Add starti.
7021 * infcmd.c (enum run_break): New.
7022 (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN
7023 case.
7024 (run_command): Use enum run_how.
7025 (start_command): Likewise.
7026 (starti_command): New function.
7027 (RUN_ARGS_HELP): New macro.
7028 (_initialize_infcmd): Use RUN_ARGS_HELP for run and start
7029 commands. Add starti command.
7030
7031 2017-09-19 Yao Qi <yao.qi@linaro.org>
7032
7033 * Makefile.in (monitor.o): Remove the rule.
7034
7035 2017-09-19 Yao Qi <yao.qi@linaro.org>
7036
7037 * annotate.h (struct annotate_arg_emitter): Use
7038 DISABLE_COPY_AND_ASSIGN.
7039 * common/refcounted-object.h (refcounted_object): Likewise.
7040 * completer.h (struct completion_result): Likewise.
7041 * dwarf2read.c (struct dwarf2_per_objfile): Likewise.
7042 * filename-seen-cache.h (filename_seen_cache): Likewise.
7043 * gdbcore.h (thread_section_name): Likewise.
7044 * gdb_regex.h (compiled_regex): Likewise.
7045 * gdbthread.h (scoped_restore_current_thread): Likewise.
7046 * inferior.h (scoped_restore_current_inferior): Likewise.
7047 * jit.c (jit_reader): Likewise.
7048 * linespec.h (struct linespec_result): Likewise.
7049 * mi/mi-parse.h (struct mi_parse): Likewise.
7050 * nat/fork-inferior.c (execv_argv): Likewise.
7051 * progspace.h (scoped_restore_current_program_space): Likewise.
7052 * python/python-internal.h (class gdbpy_enter): Likewise.
7053 * regcache.h (regcache): Likewise.
7054 * target-descriptions.c (struct tdesc_reg): Likewise.
7055 (struct tdesc_type): Likewise.
7056 (struct tdesc_feature): Likewise.
7057 * ui-out.h (ui_out_emit_type): Likewise.
7058
7059 2017-09-18 Simon Marchi <simon.marchi@ericsson.com>
7060
7061 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove
7062 label abort_expression.
7063
7064 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7065
7066 * common/buffer.c (buffer_xml_printf): Adjust.
7067 * common/xml-utils.c (xml_escape_text): Change return type to
7068 std::string, update code accordingly.
7069 * common/xml-utils.h (xml_escape_text): Change return type to
7070 std::string.
7071 * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust.
7072 * windows-tdep.c (windows_xfer_shared_library): Adjust.
7073 * unittests/xml-utils-selftests.c (test_xml_escape_text):
7074 Adjust.
7075
7076 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7077
7078 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file.
7079 (SUBDIR_UNITTESTS_OBS): Add new object file.
7080 * unittests/xml-utils-selftests.c: New file.
7081
7082 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7083
7084 * common/selftest.h (selftest): New struct/interface.
7085 (register_test): Add name parameter, add new overload.
7086 (run_tests): Add filter parameter.
7087 (for_each_selftest_ftype): New typedef.
7088 (for_each_selftest): New declaration.
7089 * common/selftest.c (tests): Change type to
7090 map<string, unique_ptr<selftest>>.
7091 (simple_selftest): New struct.
7092 (register_test): New function.
7093 (register_test): Add name parameter and use it.
7094 (run_tests): Add filter parameter and use it. Add prints.
7095 Adjust to vector -> map change.
7096 * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when
7097 registering selftests.
7098 * arm-tdep.c (_initialize_arm_tdep): Likewise.
7099 * disasm-selftests.c (_initialize_disasm_selftests): Likewise.
7100 * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise.
7101 * dwarf2loc.c (_initialize_dwarf2loc): Likewise.
7102 * findvar.c (_initialize_findvar): Likewise.
7103 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise.
7104 * maint.c (maintenance_selftest): Update call to run_tests.
7105 (maintenance_info_selftests): New function.
7106 (_initialize_maint_cmds): Register "maintenance info selftests"
7107 command. Update "maintenance selftest" doc.
7108 * regcache.c (_initialize_regcache): Add names when registering
7109 selftests.
7110 * rust-exp.y (_initialize_rust_exp): Likewise.
7111 * selftest-arch.c (gdbarch_selftest): New struct.
7112 (gdbarch_tests): Remove.
7113 (register_test_foreach_arch): Add name parameter. Call
7114 register_test.
7115 (tests_with_arch): Remove, move most content to
7116 gdbarch_selftest::operator().
7117 (_initialize_selftests_foreach_arch): Remove.
7118 * selftest-arch.h (register_test_foreach_arch): Add name
7119 parameter.
7120 (run_tests_with_arch): New declaration.
7121 * utils-selftests.c (_initialize_utils_selftests): Add names
7122 when registering selftests.
7123 * utils.c (_initialize_utils): Likewise.
7124 * unittests/array-view-selftests.c
7125 (_initialize_array_view_selftests): Likewise.
7126 * unittests/environ-selftests.c (_initialize_environ_selftests):
7127 Likewise.
7128 * unittests/function-view-selftests.c
7129 (_initialize_function_view_selftests): Likewise.
7130 * unittests/offset-type-selftests.c
7131 (_initialize_offset_type_selftests): Likewise.
7132 * unittests/optional-selftests.c
7133 (_initialize_optional_selftests): Likewise.
7134 * unittests/scoped_restore-selftests.c
7135 (_initialize_scoped_restore_selftests): Likewise.
7136 * NEWS: Document "maintenance selftest" and "maint info
7137 selftests".
7138
7139 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7140
7141 * mi/mi-main.c (mi_load_progress): Restore current_uiout using a
7142 scoped_restore.
7143
7144 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7145
7146 * mi/mi-main.c (mi_load_progress): Make uiout variable
7147 a unique_ptr.
7148
7149 2017-09-15 Pedro Alves <palves@redhat.com>
7150
7151 * compile/compile-c-types.c (convert_enum, convert_int)
7152 (convert_float): Adjust to refer to int_type_v0 and float_type_v0.
7153
7154 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7155
7156 * dwarf2read.c (copy_string): Remove.
7157 (parse_macro_definition): Replace copy_string with savestring.
7158
7159 2017-09-15 Yao Qi <yao.qi@linaro.org>
7160
7161 * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to
7162 gdb_target_obs.
7163 (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*):
7164 Likewise.
7165 (i[34567]86-*-linux*): Likewise.
7166
7167 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
7168
7169 * dwarf2expr.h (dwarf_stack_value): Add constructor.
7170 (dwarf_expr_context) <~dwarf_expr_context>: Define as default.
7171 <stack>: Change type to std::vector.
7172 <stack_len, stack_allocated>: Remove.
7173 <grow_stack>: Remove.
7174 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
7175 (dwarf_expr_context::~dwarf_expr_context): Remove.
7176 (dwarf_expr_context::grow_stack): Remove.
7177 (dwarf_expr_context::push): Adjust.
7178 (dwarf_expr_context::pop): Adjust.
7179 (dwarf_expr_context::fetch): Adjust.
7180 (dwarf_expr_context::fetch_in_stack_memory): Adjust.
7181 (dwarf_expr_context::stack_empty_p): Adjust.
7182 (dwarf_expr_context::execute_stack_op): Adjust.
7183
7184 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
7185
7186 * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change
7187 return type to bool.
7188 * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise.
7189
7190 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
7191
7192 * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>:
7193 Change type to bool.
7194 (dwarf_stack_value) <in_stack_memory>: Likewise.
7195 (dwarf_expr_context) <push_address>: Change parameter type to
7196 bool.
7197 <fetch_in_stack_memory>: Change return type to bool.
7198 <push>: Change parameter type to bool.
7199 * dwarf2expr.c (dwarf_expr_context::push): Change parameter type
7200 to bool.
7201 (dwarf_expr_context::push_address): Likewise.
7202 (dwarf_expr_context::fetch_in_stack_memory): Change return type
7203 to bool.
7204 (dwarf_expr_context::execute_stack_op): Adjust.
7205 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust.
7206
7207 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
7208
7209 * dwarf2expr.h (struct dwarf_expr_piece): Move up.
7210 (struct dwarf_expr_context) <n_pieces>: Remove.
7211 <pieces>: Change type to std::vector.
7212 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
7213 (dwarf_expr_context::~dwarf_expr_context): Don't manually free
7214 pieces.
7215 (dwarf_expr_context::add_piece): Adjust.
7216 * dwarf2loc.c (struct piece_closure): Initialize fields.
7217 <n_pieces>: Remove.
7218 <pieces>: Change type to std::vector.
7219 (allocate_piece_closure): Adjust, change parameter to
7220 std::vector rvalue and std::move it to piece_closure.
7221 (rw_pieced_value): Adjust.
7222 (check_pieced_synthetic_pointer): Adjust.
7223 (indirect_synthetic_pointer): Adjust.
7224 (coerce_pieced_ref): Adjust.
7225 (free_pieced_value_closure): Adjust. Use delete to free
7226 piece_closure.
7227 (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces
7228 to allocate_piece_closure.
7229 (dwarf2_loc_desc_get_symbol_read_needs): Adjust.
7230
7231 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
7232
7233 * probe.h (probe_ops_cp): Remove typedef.
7234 (DEF_VEC_P (probe_ops_cp)): Remove.
7235 (all_probe_ops): Change type to std::vector.
7236 * probe.c (info_probes_for_ops): Adjust to vector change.
7237 (probe_linespec_to_ops): Likewise.
7238 (all_probe_ops): Change type to std::vector.
7239 (_initialize_probe): Adjust to vector change.
7240 * dtrace-probe.c (_initialize_dtrace_probe): Likewise.
7241 * elfread.c (elf_get_probes): Likewise.
7242 * stap-probe.c (_initialize_stap_probe): Likewise.
7243
7244 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
7245
7246 * probe.h (struct bound_probe): Define constructors.
7247 * probe.c (bound_probe_s): Remove typedef.
7248 (DEF_VEC_O (bound_probe_s)): Remove VEC.
7249 (collect_probes): Change return type to std::vector, remove
7250 cleanup.
7251 (compare_probes): Return bool, change parameter type. Change
7252 semantic to "less than".
7253 (gen_ui_out_table_header_info): Change parameter to std::vector
7254 and update.
7255 (exists_probe_with_pops): Likewise.
7256 (info_probes_for_ops): Update to std::vector change.
7257 (enable_probes_command): Likewise.
7258 (disable_probes_command): Likewise.
7259
7260 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
7261
7262 * probe.h (struct probe_ops) <get_probes>: Change parameter from
7263 vec to std::vector.
7264 * probe.c (parse_probes_in_pspace): Update.
7265 (find_probes_in_objfile): Update.
7266 (find_probe_by_pc): Update.
7267 (collect_probes): Update.
7268 (probe_any_get_probes): Update.
7269 * symfile.h (struct sym_probe_fns) <sym_get_probes> Change
7270 return type to reference to std::vector.
7271 * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to
7272 std::vector and update.
7273 (dtrace_process_dof): Likewise.
7274 (dtrace_get_probes): Likewise.
7275 * elfread.c (elf_get_probes): Change return type to std::vector,
7276 store an std::vector in bfd_data.
7277 (probe_key_free): Update to std::vector.
7278 * stap-probe.c (handle_stap_probe): Change parameter to
7279 std::vector and update.
7280 (stap_get_probes): Likewise.
7281 * symfile-debug.c (debug_sym_get_probes): Change return type to
7282 std::vector and update.
7283
7284 2017-09-11 Tom Tromey <tom@tromey.com>
7285
7286 * breakpoint.c (program_breakpoint_here_p): Update.
7287 * target.c (make_scoped_restore_show_memory_breakpoints): Rename
7288 from make_show_memory_breakpoints_cleanup. Return a
7289 scoped_restore_tmpl<int>.
7290 (restore_show_memory_breakpoints): Remove.
7291 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update.
7292 * mem-break.c (memory_validate_breakpoint): Update.
7293 * ia64-tdep.c (ia64_memory_insert_breakpoint): Update.
7294 (ia64_memory_remove_breakpoint): Update.
7295 (ia64_breakpoint_from_pc): Update.
7296 * target.h (make_scoped_restore_show_memory_breakpoints): Rename
7297 from make_show_memory_breakpoints_cleanup.
7298
7299 2017-09-11 Tom Tromey <tom@tromey.com>
7300
7301 * d-namespace.c (d_lookup_symbol): Use std::string.
7302 (find_symbol_in_baseclass): Likewise.
7303
7304 2017-09-11 Tom Tromey <tom@tromey.com>
7305
7306 * ctf.c (ctf_start): Use std::string.
7307
7308 2017-09-11 Tom Tromey <tom@tromey.com>
7309
7310 * ada-lang.c (is_known_support_routine): Update.
7311 (ada_unhandled_exception_name_addr_from_raise): Update.
7312 * guile/scm-frame.c (gdbscm_frame_name): Update.
7313 * python/py-frame.c (frapy_name): Update.
7314 (frapy_function): Update.
7315 * stack.h (find_frame_funname): Update.
7316 * stack.c (find_frame_funname): Return unique_xmalloc_ptr.
7317 (print_frame): Update.
7318
7319 2017-09-11 Tom Tromey <tom@tromey.com>
7320
7321 * findcmd.c (put_bits): Take a gdb::byte_vector.
7322 (parse_find_args): Return gdb::byte_vector. "args" now const.
7323 Remove "pattern_bufp" and "pattern_lenp" parameters. Remove
7324 cleanups.
7325 (find_command): Update.
7326
7327 2017-09-11 Tom Tromey <tom@tromey.com>
7328
7329 * cli/cli-script.c (class scoped_restore_hook_in): New.
7330 (clear_hook_in_cleanup): Remove.
7331 (execute_cmd_pre_hook, execute_cmd_post_hook): Use
7332 scoped_restore_hook_in.
7333
7334 2017-09-11 Tom Tromey <tom@tromey.com>
7335
7336 * cli/cli-script.c (restore_interp): Remove.
7337 (read_command_lines): Use scoped_restore_interp.
7338 * interps.c (scoped_restore_interp::set_temp): Rename from
7339 interp_set_temp.
7340 * interps.h (class scoped_restore_interp): New.
7341 (interp_set_temp): Remove.
7342
7343 2017-09-11 Tom Tromey <tom@tromey.com>
7344
7345 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
7346 (mi_cmd_catch_exception, mi_catch_load_unload): Update.
7347 * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a
7348 scoped_restore.
7349 (mi_cmd_break_insert_1): Update.
7350 * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a
7351 scoped_restore.
7352
7353 2017-09-11 Tom Tromey <tom@tromey.com>
7354
7355 * demangle.c (demangle_command): Update.
7356 * breakpoint.c (disable_command): Update.
7357 (enable_command): Update.
7358 (find_location_by_number): Make "number" const. Use
7359 get_number_trailer.
7360 * cli/cli-utils.c (extract_arg): Return std::string.
7361 * probe.c (parse_probe_linespec): Update. Change types.
7362 (collect_probes): Take string arguments.
7363 (parse_probe_linespec): Likewise.
7364 (info_probes_for_ops): Update.
7365 (enable_probes_command): Update.
7366 (disable_probes_command): Update.
7367 * break-catch-sig.c (catch_signal_split_args): Update.
7368 * mi/mi-parse.c (mi_parse): Update.
7369
7370 2017-09-11 Tom Tromey <tom@tromey.com>
7371
7372 * language.h (language_enum): Make argument const.
7373 * language.c (language_enum): Make argument const.
7374
7375 2017-09-11 Tom Tromey <tom@tromey.com>
7376
7377 * common/common-utils.h (skip_to_space): Remove macro, redeclare
7378 as function.
7379 (skip_to_space): Rename from skip_to_space_const.
7380 * common/common-utils.c (skip_to_space): New function.
7381 (skip_to_space): Rename from skip_to_space_const.
7382 * cli/cli-utils.h (get_number): Rename from get_number_const.
7383 (extract_arg): Rename from extract_arg_const.
7384 * cli/cli-utils.c (get_number): Rename from get_number_const.
7385 (extract_arg): Rename from extract_arg_const.
7386 (number_or_range_parser::get_number): Use ::get_number.
7387 * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c,
7388 break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c,
7389 cli/cli-script.c, cli/cli-setshow.c, compile/compile.c,
7390 completer.c, demangle.c, disasm.c, findcmd.c, linespec.c,
7391 linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c,
7392 minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c,
7393 python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c,
7394 stap-probe.c, tid-parse.c, tracepoint.c: Update all callers.
7395
7396 2017-09-11 Tom Tromey <tom@tromey.com>
7397
7398 * python/python.c (do_start_initialization): Use
7399 py-event-types.def to initialize types.
7400 Define all object type structures.
7401 * python/python-internal.h: Don't declare event initialization
7402 functions.
7403 * python/py-threadevent.c (thread_event_object_type): Don't
7404 define.
7405 * python/py-stopevent.c (stop_event_object_type): Don't define.
7406 * python/py-signalevent.c (signal_event_object_type): Don't
7407 declare or define.
7408 * python/py-newobjfileevent.c (new_objfile_event_object_type)
7409 (clear_objfiles_event_object_type): Don't declare or define.
7410 * python/py-infevents.c (inferior_call_pre_event_object_type)
7411 (inferior_call_post_event_object_type)
7412 (register_changed_event_object_type)
7413 (memory_changed_event_object_type): Don't declare or define.
7414 * python/py-inferior.c (new_thread_event_object_type)
7415 (new_inferior_event_object_type)
7416 (inferior_deleted_event_object_type): Don't declare or define.
7417 * python/py-exitedevent.c (exited_event_object_type): Don't
7418 declare or define.
7419 * python/py-evts.c (gdbpy_initialize_py_events): Use
7420 py-all-events.def.
7421 * python/py-events.h (thread_event_object_type): Don't declare.
7422 (events_object): Use py-all-events.def.
7423 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use
7424 py-event-types.def.
7425 * python/py-event-types.def: New file.
7426 * python/py-continueevent.c (create_continue_event_object): Don't
7427 declare or define.
7428 * python/py-bpevent.c (breakpoint_event_object_type): Don't
7429 declare or define.
7430 * python/py-all-events.def: New file.
7431
7432 2017-09-11 Tom Tromey <tom@tromey.com>
7433
7434 * python/py-threadevent.c (create_thread_event_object): Return
7435 gdbpy_ref.
7436 * python/py-stopevent.h (create_stop_event_object)
7437 (create_breakpoint_event_object, create_signal_event_object):
7438 Update.
7439 * python/py-stopevent.c (create_stop_event_object): Return
7440 gdbpy_ref.
7441 (emit_stop_event): Update.
7442 * python/py-signalevent.c (create_signal_event_object): Return
7443 gdbpy_ref.
7444 * python/py-infevents.c (create_inferior_call_event_object):
7445 Update.
7446 * python/py-event.h (create_event_object)
7447 (create_thread_event_object): Update.
7448 * python/py-event.c (create_event_object): Return gdbpy_ref.
7449 * python/py-continueevent.c: Return gdbpy_ref.
7450 * python/py-bpevent.c (create_breakpoint_event_object): Return
7451 gdbpy_ref.
7452
7453 2017-09-11 Tom Tromey <tom@tromey.com>
7454
7455 PR python/15622:
7456 * NEWS: Add entry.
7457 * python/python.c (do_start_initialization): Initialize new event
7458 types.
7459 * python/python-internal.h (gdbpy_initialize_new_inferior_event)
7460 (gdbpy_initialize_inferior_deleted_event)
7461 (gdbpy_initialize_new_thread_event): Declare.
7462 * python/py-threadevent.c (create_thread_event_object): Add option
7463 "thread" parameter.
7464 * python/py-inferior.c (new_thread_event_object_type)
7465 (new_inferior_event_object_type)
7466 (inferior_deleted_event_object_type): Declare.
7467 (python_new_inferior, python_inferior_deleted): New functions.
7468 (add_thread_object): Emit new_thread event.
7469 (gdbpy_initialize_inferior): Attach new functions to corresponding
7470 observers.
7471 (new_thread, new_inferior, inferior_deleted): Define new event
7472 types.
7473 * python/py-evts.c (gdbpy_initialize_py_events): Add new
7474 registries.
7475 * python/py-events.h (events_object) <new_inferior,
7476 inferior_deleted, new_thread>: New fields.
7477 * python/py-event.h (create_thread_event_breakpoint): Add optional
7478 "thread" parameter.
7479
7480 2017-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
7481
7482 * utils.c (abort_with_message): Don't compare gdb_stderr to NULL,
7483 check current_ui instead.
7484 (internal_vproblem): Likewise.
7485
7486 2017-09-09 Simon Marchi <simon.marchi@ericsson.com>
7487
7488 * thread.c (print_thread_info_1): Remove unnecessary calls to
7489 uiout->is_mi_like_p.
7490
7491 2017-09-09 Tom Tromey <tom@tromey.com>
7492
7493 * namespace.h (add_using_directive): Update.
7494 * namespace.c (add_using_directive): Change type of excludes to
7495 std::vector.
7496 * dwarf2read.c (read_import_statement): Use std::vector.
7497 (read_namespace): Update.
7498 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
7499
7500 2017-09-09 Tom Tromey <tom@tromey.com>
7501
7502 * linespec.c (create_sals_line_offset): Use gdb::def_vector.
7503
7504 2017-09-09 Tom Tromey <tom@tromey.com>
7505
7506 * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector.
7507
7508 2017-09-09 Tom Tromey <tom@tromey.com>
7509
7510 * stack.c (func_command): Use gdb::def_vector.
7511
7512 2017-09-09 Tom Tromey <tom@tromey.com>
7513
7514 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional,
7515 ui_out_emit_list, ui_out_emit_tuple.
7516 (mi_cmd_var_update): Likewise.
7517
7518 2017-09-09 Tom Tromey <tom@tromey.com>
7519
7520 * mi/mi-interp.c (mi_user_selected_context_changed): Use
7521 ui_out_redirect_pop.
7522 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
7523 ui_out_redirect_pop.
7524 * utils.c (do_ui_out_redirect_pop)
7525 (make_cleanup_ui_out_redirect_pop): Remove.
7526 * top.c (execute_command_to_string): Use ui_out_redirect_pop.
7527 * utils.h (make_cleanup_ui_out_redirect_pop): Remove.
7528 * ui-out.h (ui_out_redirect_pop): New class.
7529
7530 2017-09-09 Tom Tromey <tom@tromey.com>
7531
7532 * mi/mi-main.c (output_cores): Use ui_out_emit_list.
7533 (list_available_thread_groups, mi_cmd_list_thread_groups)
7534 (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory)
7535 (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected):
7536 Likewise.
7537
7538 2017-09-09 Tom Tromey <tom@tromey.com>
7539
7540 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
7541 ui_out_emit_tuple.
7542
7543 2017-09-09 Tom Tromey <tom@tromey.com>
7544
7545 * target.c (flash_erase_command): Use ui_out_emit_tuple.
7546 * stack.c (print_frame): Use ui_out_emit_tuple.
7547 * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple.
7548 (info_spu_mailbox_command, info_spu_dma_command)
7549 (info_spu_proxydma_command): Likewise.
7550 * mi/mi-main.c (mi_cmd_trace_frame_collected): Use
7551 ui_out_emit_tuple, gdb::byte_vector, bin2hex.
7552 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
7553 ui_out_emit_tuple.
7554 * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple.
7555
7556 2017-09-09 Tom Tromey <tom@tromey.com>
7557
7558 * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove.
7559 (class ui_out_emit_table): Update comment.
7560 * ui-out.c (do_cleanup_table_end)
7561 (make_cleanup_ui_out_table_begin_end): Remove.
7562 * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table.
7563 (info_spu_dma_cmdlist): Likewise.
7564 * probe.c (info_probes_for_ops): Use ui_out_emit_table.
7565 * darwin-nat-info.c (darwin_debug_regions_recurse): Use
7566 ui_out_emit_table.
7567
7568 2017-09-09 Tom Tromey <tom@tromey.com>
7569
7570 * thread.c (print_thread_info_1): Use ui_out_emit_table,
7571 ui_out_emit_list, gdb::optional.
7572
7573 2017-09-09 John Baldwin <jhb@FreeBSD.org>
7574
7575 * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat
7576 prototype.
7577 * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep
7578 prototype.
7579 * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep
7580 prototype.
7581 * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype.
7582 * ada-exp.y: Remove _initialize_ada_exp prototype.
7583 * ada-lang.c: Remove _initialize_ada_language prototype.
7584 * ada-tasks.c: Remove _initialize_tasks prototype.
7585 * addrmap.c: Remove _initialize_addrmap prototype.
7586 * agent.c: Remove _initialize_agent prototype.
7587 * aix-thread.c: Remove _initialize_aix_thread prototype.
7588 * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype.
7589 * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype.
7590 * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep
7591 prototype.
7592 * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype.
7593 * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype.
7594 * alpha-tdep.c: Remove _initialize_alpha_tdep prototype.
7595 * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep
7596 prototype.
7597 * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep
7598 prototype.
7599 * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype.
7600 * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype.
7601 * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype.
7602 * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep
7603 prototype.
7604 * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype.
7605 * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype.
7606 * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype.
7607 * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype.
7608 * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
7609 * amd64-tdep.c: Remove _initialize_amd64_tdep prototype.
7610 * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat
7611 prototype.
7612 * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep
7613 prototype.
7614 * annotate.c: Remove _initialize_annotate prototype.
7615 * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype.
7616 * arc-tdep.c: Remove _initialize_arc_tdep prototype.
7617 * arch-utils.c: Remove _initialize_gdbarch_utils prototype.
7618 * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype.
7619 * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype.
7620 * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype.
7621 * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype.
7622 * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep
7623 prototype.
7624 * arm-tdep.c: Remove _initialize_arm_tdep prototype.
7625 * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype.
7626 * auto-load.c: Remove _initialize_auto_load prototype.
7627 * auxv.c: Remove _initialize_auxv prototype.
7628 * avr-tdep.c: Remove _initialize_avr_tdep prototype.
7629 * ax-gdb.c: Remove _initialize_ax_gdb prototype.
7630 * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype.
7631 * bfin-tdep.c: Remove _initialize_bfin_tdep prototype.
7632 * break-catch-sig.c: Remove _initialize_break_catch_sig prototype.
7633 * break-catch-syscall.c: Remove _initialize_break_catch_syscall
7634 prototype.
7635 * break-catch-throw.c: Remove _initialize_break_catch_throw
7636 prototype.
7637 * breakpoint.c: Remove _initialize_breakpoint prototype.
7638 * bsd-uthread.c: Remove _initialize_bsd_uthread prototype.
7639 * btrace.c: Remove _initialize_btrace prototype.
7640 * charset.c: Remove _initialize_charset prototype.
7641 * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype.
7642 * cli/cli-dump.c: Remove _initialize_cli_dump prototype.
7643 * cli/cli-interp.c: Remove _initialize_cli_interp prototype.
7644 * cli/cli-logging.c: Remove _initialize_cli_logging prototype.
7645 * cli/cli-script.c: Remove _initialize_cli_script prototype.
7646 * coff-pe-read.c: Remove _initialize_coff_pe_read prototype.
7647 * coffread.c: Remove _initialize_coffread prototype.
7648 * compile/compile.c: Remove _initialize_compile prototype.
7649 * complaints.c: Remove _initialize_complaints prototype.
7650 * completer.c: Remove _initialize_completer prototype.
7651 * copying.awk: Remove _initialize_copying prototype.
7652 * copying.c: Regenerate.
7653 * core-regset.c: Remove _initialize_core_regset prototype.
7654 * corefile.c: Remove _initialize_core prototype.
7655 * corelow.c: Remove _initialize_corelow prototype.
7656 * cp-abi.c: Remove _initialize_cp_abi prototype.
7657 * cp-namespace.c: Remove _initialize_cp_namespace prototype.
7658 * cp-support.c: Remove _initialize_cp_support prototype.
7659 * cp-valprint.c: Remove _initialize_cp_valprint prototype.
7660 * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype.
7661 * cris-tdep.c: Remove _initialize_cris_tdep prototype.
7662 * ctf.c: Remove _initialize_ctf prototype.
7663 * d-lang.c: Remove _initialize_d_language prototype.
7664 * darwin-nat-info.c: Remove _initialize_darwin_info_commands
7665 prototype.
7666 * darwin-nat.c: Remove _initialize_darwin_inferior prototype.
7667 * dbxread.c: Remove _initialize_dbxread prototype.
7668 * dcache.c: Remove _initialize_dcache prototype.
7669 * demangle.c: Remove _initialize_demangler prototype.
7670 * disasm-selftests.c: Remove _initialize_disasm_selftests
7671 prototype.
7672 * disasm.c: Remove _initialize_disasm prototype.
7673 * dtrace-probe.c: Remove _initialize_dtrace_probe prototype.
7674 * dummy-frame.c: Remove _initialize_dummy_frame prototype.
7675 * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame
7676 prototype.
7677 * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype.
7678 * dwarf2expr.c: Remove _initialize_dwarf2expr prototype.
7679 * dwarf2loc.c: Remove _initialize_dwarf2loc prototype.
7680 * dwarf2read.c: Remove _initialize_dwarf2_read prototype.
7681 * elfread.c: Remove _initialize_elfread prototype.
7682 * exec.c: Remove _initialize_exec prototype.
7683 * extension.c: Remove _initialize_extension prototype.
7684 * f-lang.c: Remove _initialize_f_language prototype.
7685 * f-valprint.c: Remove _initialize_f_valprint prototype.
7686 * fbsd-nat.c: Remove _initialize_fbsd_nat prototype.
7687 * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype.
7688 * filesystem.c: Remove _initialize_filesystem prototype.
7689 * findcmd.c: Remove _initialize_mem_search prototype.
7690 * fork-child.c: Remove _initialize_fork_child prototype.
7691 * frame-base.c: Remove _initialize_frame_base prototype.
7692 * frame-unwind.c: Remove _initialize_frame_unwind prototype.
7693 * frame.c: Remove _initialize_frame prototype.
7694 * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype.
7695 * frv-tdep.c: Remove _initialize_frv_tdep prototype.
7696 * ft32-tdep.c: Remove _initialize_ft32_tdep prototype.
7697 * gcore.c: Remove _initialize_gcore prototype.
7698 * gdb_bfd.c: Remove _initialize_gdb_bfd prototype.
7699 * gdbarch.c: Regenerate.
7700 * gdbarch.sh: Remove _initialize_gdbarch prototype.
7701 * gdbtypes.c: Remove _initialize_gdbtypes prototype.
7702 * gnu-nat.c: Remove _initialize_gnu_nat prototype.
7703 * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype.
7704 * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype.
7705 * go-lang.c: Remove _initialize_go_language prototype.
7706 * go32-nat.c: Remove _initialize_go32_nat prototype.
7707 * guile/guile.c: Remove _initialize_guile prototype.
7708 * h8300-tdep.c: Remove _initialize_h8300_tdep prototype.
7709 * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype.
7710 * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype.
7711 * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype.
7712 * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype.
7713 * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype.
7714 * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype.
7715 * hppa-tdep.c: Remove _initialize_hppa_tdep prototype.
7716 * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype.
7717 * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep
7718 prototype.
7719 * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep
7720 prototype.
7721 * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype.
7722 * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype.
7723 * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype.
7724 * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype.
7725 * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype.
7726 * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype.
7727 * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype.
7728 * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype.
7729 * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype.
7730 * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype.
7731 * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype.
7732 * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype.
7733 * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype.
7734 * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
7735 * i386-tdep.c: Remove _initialize_i386_tdep prototype.
7736 * i386-windows-nat.c: Remove _initialize_i386_windows_nat
7737 prototype.
7738 * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame
7739 prototype.
7740 * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype.
7741 * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype.
7742 * ia64-tdep.c: Remove _initialize_ia64_tdep prototype.
7743 * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype.
7744 * infcall.c: Remove _initialize_infcall prototype.
7745 * infcmd.c: Remove _initialize_infcmd prototype.
7746 * inferior.c: Remove _initialize_inferiors prototype.
7747 * inflow.c: Remove _initialize_inflow prototype.
7748 * infrun.c: Remove _initialize_infrun prototype.
7749 * interps.c: Remove _initialize_interpreter prototype.
7750 * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype.
7751 * jit.c: Remove _initialize_jit prototype.
7752 * language.c: Remove _initialize_language prototype.
7753 * linux-fork.c: Remove _initialize_linux_fork prototype.
7754 * linux-nat.c: Remove _initialize_linux_nat prototype.
7755 * linux-tdep.c: Remove _initialize_linux_tdep prototype.
7756 * linux-thread-db.c: Remove _initialize_thread_db prototype.
7757 * lm32-tdep.c: Remove _initialize_lm32_tdep prototype.
7758 * m2-lang.c: Remove _initialize_m2_language prototype.
7759 * m32c-tdep.c: Remove _initialize_m32c_tdep prototype.
7760 * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype.
7761 * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype.
7762 * m32r-tdep.c: Remove _initialize_m32r_tdep prototype.
7763 * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype.
7764 * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
7765 * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
7766 * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype.
7767 * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype.
7768 * m68k-tdep.c: Remove _initialize_m68k_tdep prototype.
7769 * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
7770 * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
7771 * machoread.c: Remove _initialize_machoread prototype.
7772 * macrocmd.c: Remove _initialize_macrocmd prototype.
7773 * macroscope.c: Remove _initialize_macroscope prototype.
7774 * maint.c: Remove _initialize_maint_cmds prototype.
7775 * mdebugread.c: Remove _initialize_mdebugread prototype.
7776 * memattr.c: Remove _initialize_mem prototype.
7777 * mep-tdep.c: Remove _initialize_mep_tdep prototype.
7778 * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype.
7779 * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype.
7780 * mi/mi-interp.c: Remove _initialize_mi_interp prototype.
7781 * mi/mi-main.c: Remove _initialize_mi_main prototype.
7782 * microblaze-linux-tdep.c: Remove
7783 _initialize_microblaze_linux_tdep prototype.
7784 * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype.
7785 * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype.
7786 * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype.
7787 * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype.
7788 * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype.
7789 * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype.
7790 * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype.
7791 * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype.
7792 * mips-tdep.c: Remove _initialize_mips_tdep prototype.
7793 * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype.
7794 * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep
7795 prototype.
7796 * mipsread.c: Remove _initialize_mipsread prototype.
7797 * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep
7798 prototype.
7799 * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype.
7800 * moxie-tdep.c: Remove _initialize_moxie_tdep prototype.
7801 * msp430-tdep.c: Remove _initialize_msp430_tdep prototype.
7802 * mt-tdep.c: Remove _initialize_mt_tdep prototype.
7803 * nds32-tdep.c: Remove _initialize_nds32_tdep prototype.
7804 * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep
7805 prototype.
7806 * nios2-tdep.c: Remove _initialize_nios2_tdep prototype.
7807 * nto-procfs.c: Remove _initialize_procfs prototype.
7808 * nto-tdep.c: Remove _initialize_nto_tdep prototype.
7809 * objc-lang.c: Remove _initialize_objc_language prototype.
7810 * objfiles.c: Remove _initialize_objfiles prototype.
7811 * observer.c: Remove observer_test_first_notification_function,
7812 observer_test_second_notification_function,
7813 observer_test_third_notification_function, and
7814 _initialize_observer prototypes.
7815 * opencl-lang.c: Remove _initialize_opencl_language prototypes.
7816 * osabi.c: Remove _initialize_gdb_osabi prototype.
7817 * osdata.c: Remove _initialize_osdata prototype.
7818 * p-valprint.c: Remove _initialize_pascal_valprint prototype.
7819 * parse.c: Remove _initialize_parse prototype.
7820 * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype.
7821 * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype.
7822 * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype.
7823 * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype.
7824 * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype.
7825 * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype.
7826 * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype.
7827 * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype.
7828 * printcmd.c: Remove _initialize_printcmd prototype.
7829 * probe.c: Remove _initialize_probe prototype.
7830 * proc-api.c: Remove _initialize_proc_api prototype.
7831 * proc-events.c: Remove _initialize_proc_events prototype.
7832 * proc-service.c: Remove _initialize_proc_service prototype.
7833 * procfs.c: Remove _initialize_procfs prototype.
7834 * psymtab.c: Remove _initialize_psymtab prototype.
7835 * python/python.c: Remove _initialize_python prototype.
7836 * ravenscar-thread.c: Remove _initialize_ravenscar prototype.
7837 * record-btrace.c: Remove _initialize_record_btrace prototype.
7838 * record-full.c: Remove _initialize_record_full prototype.
7839 * record.c: Remove _initialize_record prototype.
7840 * regcache.c: Remove _initialize_regcache prototype.
7841 * reggroups.c: Remove _initialize_reggroup prototype.
7842 * remote-notif.c: Remove _initialize_notif prototype.
7843 * remote-sim.c: Remove _initialize_remote_sim prototype.
7844 * remote.c: Remove _initialize_remote prototype.
7845 * reverse.c: Remove _initialize_reverse prototype.
7846 * rl78-tdep.c: Remove _initialize_rl78_tdep prototype.
7847 * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype.
7848 * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep
7849 prototype.
7850 * rs6000-nat.c: Remove _initialize_rs6000_nat prototype.
7851 * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype.
7852 * rust-exp.y: Remove _initialize_rust_exp prototype.
7853 * rx-tdep.c: Remove _initialize_rx_tdep prototype.
7854 * s390-linux-nat.c: Remove _initialize_s390_nat prototype.
7855 * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype.
7856 * score-tdep.c: Remove _initialize_score_tdep prototype.
7857 * selftest-arch.c: Remove _initialize_selftests_foreach_arch
7858 prototype.
7859 * ser-go32.c: Remove _initialize_ser_dos prototype.
7860 * ser-mingw.c: Remove _initialize_ser_windows prototype.
7861 * ser-pipe.c: Remove _initialize_ser_pipe prototype.
7862 * ser-tcp.c: Remove _initialize_ser_tcp prototype.
7863 * ser-unix.c: Remove _initialize_ser_hardwire prototype.
7864 * serial.c: Remove _initialize_serial prototype.
7865 * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype.
7866 * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype.
7867 * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype.
7868 * sh-tdep.c: Remove _initialize_sh_tdep prototype.
7869 * skip.c: Remove _initialize_step_skip prototype.
7870 * sol-thread.c: Remove _initialize_sol_thread prototype.
7871 * solib-aix.c: Remove _initialize_solib_aix prototype.
7872 * solib-darwin.c: Remove _initialize_darwin_solib prototype.
7873 * solib-dsbt.c: Remove _initialize_dsbt_solib prototype.
7874 * solib-frv.c: Remove _initialize_frv_solib prototype.
7875 * solib-spu.c: Remove _initialize_spu_solib prototype.
7876 * solib-svr4.c: Remove _initialize_svr4_solib prototype.
7877 * solib-target.c: Remove _initialize_solib_target prototype.
7878 * solib.c: Remove _initialize_solib prototype.
7879 * source.c: Remove _initialize_source prototype.
7880 * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype.
7881 * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep
7882 prototype.
7883 * sparc-nat.c: Remove _initialize_sparc_nat prototype.
7884 * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype.
7885 * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype.
7886 * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep
7887 prototype.
7888 * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype.
7889 * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype.
7890 * sparc-tdep.c: Remove _initialize_sparc_tdep prototype.
7891 * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat
7892 prototype.
7893 * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep
7894 prototype.
7895 * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat
7896 prototype.
7897 * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep
7898 prototype.
7899 * sparc64-nat.c: Remove _initialize_sparc64_nat prototype.
7900 * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat
7901 prototype.
7902 * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep
7903 prototype.
7904 * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat
7905 prototype.
7906 * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep
7907 prototype.
7908 * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep
7909 prototype.
7910 * spu-linux-nat.c: Remove _initialize_spu_nat prototype.
7911 * spu-multiarch.c: Remove _initialize_spu_multiarch prototype.
7912 * spu-tdep.c: Remove _initialize_spu_tdep prototype.
7913 * stabsread.c: Remove _initialize_stabsread prototype.
7914 * stack.c: Remove _initialize_stack prototype.
7915 * stap-probe.c: Remove _initialize_stap_probe prototype.
7916 * std-regs.c: Remove _initialize_frame_reg prototype.
7917 * symfile-debug.c: Remove _initialize_symfile_debug prototype.
7918 * symfile-mem.c: Remove _initialize_symfile_mem prototype.
7919 * symfile.c: Remove _initialize_symfile prototype.
7920 * symmisc.c: Remove _initialize_symmisc prototype.
7921 * symtab.c: Remove _initialize_symtab prototype.
7922 * target-dcache.c: Remove _initialize_target_dcache prototype.
7923 * target-descriptions.c: Remove _initialize_target_descriptions
7924 prototype.
7925 * thread.c: Remove _initialize_thread prototype.
7926 * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep
7927 prototype.
7928 * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype.
7929 * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype.
7930 * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep
7931 prototype.
7932 * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype.
7933 * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype.
7934 * tracefile.c: Remove _initialize_tracefile prototype.
7935 * tracepoint.c: Remove _initialize_tracepoint prototype.
7936 * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype.
7937 * tui/tui-interp.c: Remove _initialize_tui_interp prototype.
7938 * tui/tui-layout.c: Remove _initialize_tui_layout prototype.
7939 * tui/tui-regs.c: Remove _initialize_tui_regs prototype.
7940 * tui/tui-stack.c: Remove _initialize_tui_stack prototype.
7941 * tui/tui-win.c: Remove _initialize_tui_win prototype.
7942 * tui/tui.c: Remove _initialize_tui prototype.
7943 * typeprint.c: Remove _initialize_typeprint prototype.
7944 * user-regs.c: Remove _initialize_user_regs prototype.
7945 * utils.c: Remove _initialize_utils prototype.
7946 * v850-tdep.c: Remove _initialize_v850_tdep prototype.
7947 * valarith.c: Remove _initialize_valarith prototype.
7948 * valops.c: Remove _initialize_valops prototype.
7949 * valprint.c: Remove _initialize_valprint prototype.
7950 * value.c: Remove _initialize_values prototype.
7951 * varobj.c: Remove _initialize_varobj prototype.
7952 * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype.
7953 * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype.
7954 * vax-tdep.c: Remove _initialize_vax_tdep prototype.
7955 * windows-nat.c: Remove _initialize_windows_nat,
7956 _initialize_check_for_gdb_ini, and _initialize_loadable
7957 prototypes.
7958 * windows-tdep.c: Remove _initialize_windows_tdep prototype.
7959 * xcoffread.c: Remove _initialize_xcoffread prototype.
7960 * xml-support.c: Remove _initialize_xml_support prototype.
7961 * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype.
7962 * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat
7963 prototype.
7964 * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep
7965 prototype.
7966 * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype.
7967
7968 2017-09-08 Keith Seitz <keiths@redhat.com>
7969
7970 * dwarf2read.c (struct field_info) <fnfields>: Remove unused
7971 field.
7972
7973 2017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com>
7974
7975 * f-valprint.c (f_val_print): Remove check for one byte
7976 sized integers. Remove printing of character type.
7977
7978 2017-09-08 Frank Penczek <frank.penczek@intel.com>
7979 Christoph Weinmann <christoph.t.weinmann@intel.com>
7980 Bernhard Heckel <bernhard.heckel@intel.com>
7981
7982 * f-typeprint.c (f_type_print_base): Use fprintfi_filtered
7983 to maintain proper indentation when printing pointers/refs.
7984
7985 2017-09-07 Joel Brobecker <brobecker@adacore.com>
7986
7987 GDB 8.0.1 released.
7988
7989 2017-09-07 Joel Brobecker <brobecker@adacore.com>
7990
7991 * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell.
7992
7993 2017-09-05 Tom Tromey <tom@tromey.com>
7994
7995 * parse.c (funcall_chain): Now a std::vector.
7996 (start_arglist, end_arglist): Simplify.
7997 (free_funcalls): Remove.
7998 (parse_exp_in_context_1): Remove cleanup.
7999
8000 2017-09-05 Tom Tromey <tom@tromey.com>
8001
8002 * go-exp.y (go_parse): Don't create a cleanup.
8003
8004 2017-09-05 Tom Tromey <tom@tromey.com>
8005
8006 * d-exp.y (PrimaryExpression): Use std::string.
8007 (d_parse): Don't create a cleanup.
8008
8009 2017-09-05 Tom Tromey <tom@tromey.com>
8010
8011 * utils.c (do_clear_parser_state): Remove.
8012 (make_cleanup_clear_parser_state): Remove.
8013 * p-exp.y (pascal_parse): Use scoped_restore.
8014 * m2-exp.y (m2_parse): Use scoped_restore.
8015 * f-exp.y (f_parse): Use scoped_restore.
8016 * d-exp.y (d_parse): Use scoped_restore.
8017 * c-exp.y (c_parse): Use scoped_restore.
8018 * ada-exp.y (ada_parse): Use scoped_restore.
8019 * utils.h (make_cleanup_clear_parser_state): Remove.
8020
8021 2017-09-06 Keith Seitz <keiths@redhat.com>
8022
8023 * dwarf2read.c (dw2_linkage_name_attr): New function.
8024 (dw2_linkage_name): New function.
8025 (dwarf2_compute_name, dwarf2_physname, read_call_site_scope)
8026 (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name.
8027 (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr.
8028
8029 2017-09-06 Kamil Rytarowski <n54@gmx.com>
8030
8031 * config/djgpp/djconfig.sh: Correct shell portability issue.
8032
8033 2017-09-06 Kamil Rytarowski <n54@gmx.com>
8034
8035 * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD.
8036
8037 2017-09-06 John Baldwin <jhb@FreeBSD.org>
8038
8039 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
8040 * NEWS: Mention new FreeBSD/mips native configuration.
8041 * configure.host: Add aarch64*-*-freebsd*.
8042 * configure.nat: Likewise.
8043 * aarch64-fbsd-nat.c: New file.
8044
8045 2017-09-06 John Baldwin <jhb@FreeBSD.org>
8046
8047 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o.
8048 (ALLDEPFILES): Add aarch64-fbsd-tdep.c.
8049 * NEWS: Mention new FreeBSD/aarch64 target.
8050 * configure.tgt: Add aarch64*-*-freebsd*.
8051 * aarch64-fbsd-tdep.c: New file.
8052 * aarch64-fbsd-tdep.h: New file.
8053
8054 2017-09-06 Kamil Rytarowski <n54@gmx.com>
8055
8056 * MAINTAINERS (Write After Approval): Add Kamil Rytarowski.
8057
8058 2017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
8059
8060 * parse.c (find_minsym_type_and_address): Don't relocate addresses
8061 of TLS symbols.
8062
8063 2017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8064
8065 * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
8066 call.
8067
8068 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
8069
8070 * infrun.c (follow_exec): Call add_thread after
8071 target_find_description.
8072
8073 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
8074
8075 * infrun.c (handle_inferior_event_1): When exec'ing, read
8076 stop_pc after follow_exec.
8077
8078 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
8079
8080 * remote.c (process_g_packet): Update error message.
8081
8082 2017-09-05 Yao Qi <yao.qi@linaro.org>
8083
8084 * configure.tgt (gdb_target_obs): Add i386.o for x86_64-*
8085 targets.
8086
8087 2017-09-05 Pedro Alves <palves@redhat.com>
8088
8089 * eval.c (eval_call, evaluate_funcall): New functions, factored
8090 out from ...
8091 (evaluate_subexp_standard): ... this.
8092
8093 2017-09-05 Yao Qi <yao.qi@linaro.org>
8094
8095 * amd64-tdep.c (amd64_target_description): Create target
8096 descriptions.
8097 (_initialize_amd64_tdep): Don't call functions
8098 initialize_tdesc_amd64_*. Add self tests.
8099 * arch/amd64.c (amd64_create_target_description): Add parameter
8100 is_linux. Call set_tdesc_osabi if is_linux is true.
8101 * arch/amd64.h (amd64_create_target_description): Update the
8102 declaration.
8103 * arch/i386.c (i386_create_target_description): Add parameter
8104 is_linux. Call set_tdesc_osabi if is_linux is true.
8105 * arch/i386.h (i386_create_target_description): Update
8106 declaration.
8107 * configure.tgt: Add i386.o to gdb_target_obs.
8108 * features/Makefile (XMLTOC): Remove i386/*.xml.
8109 * features/i386/amd64-avx-avx512.c: Remove.
8110 * features/i386/amd64-avx-mpx-avx512-pku.c: Remove.
8111 * features/i386/amd64-avx-mpx.c: Remove.
8112 * features/i386/amd64-avx.c: Remove.
8113 * features/i386/amd64-mpx.c: Remove.
8114 * features/i386/amd64.c: Remove.
8115 * features/i386/i386-avx-avx512.c: Remove.
8116 * features/i386/i386-avx-mpx-avx512-pku.c: Remove.
8117 * features/i386/i386-avx-mpx.c: Remove.
8118 * features/i386/i386-avx.c: Remove.
8119 * features/i386/i386-mmx.c: Remove.
8120 * features/i386/i386-mpx.c: Remove.
8121 * features/i386/i386.c: Remove.
8122 * i386-tdep.c: Don't include features/i386/i386*.c., include
8123 target-descriptions.h and arch/i386.h.
8124 (i386_target_description): Create target descriptions.
8125 (i386_gdbarch_init): Don't call initialize_tdesc_i386_*
8126 functions. Do self tests.
8127
8128 2017-09-05 Yao Qi <yao.qi@linaro.org>
8129
8130 * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml.
8131 * features/i386/amd64-avx-avx512-linux.c: Removed.
8132 * features/i386/amd64-avx-linux.c: Removed.
8133 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed.
8134 * features/i386/amd64-avx-mpx-linux.c: Removed.
8135 * features/i386/amd64-linux.c: Removed.
8136 * features/i386/amd64-mpx-linux.c: Removed.
8137 * features/i386/x32-avx-avx512-linux.c: Removed.
8138 * features/i386/x32-avx-linux.c: Removed.
8139 * features/i386/x32-linux.c: Removed.
8140
8141 2017-09-05 Yao Qi <yao.qi@linaro.org>
8142
8143 * amd64-linux-tdep.c: Include arch/amd64.h. Don't include
8144 features/i386/*.c.
8145 (amd64_linux_read_description): Call
8146 amd64_create_target_description.
8147 * arch/amd64.c: New file.
8148 * arch/amd64.h: New file.
8149 * configure.tgt (x86_64-*-linux*): Append amd64.o.
8150 * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o.
8151
8152 2017-09-05 Yao Qi <yao.qi@linaro.org>
8153
8154 * amd64-linux-tdep.c: Don't include amd64-XXX-linux and
8155 x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c.
8156 (amd64_linux_read_description): Create target descriptions.
8157 (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX
8158 functions. Add unit tests.
8159 * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and
8160 x32-core.xml.
8161 * features/i386/64bit-avx.c: Generated.
8162 * features/i386/64bit-avx512.c: Generated.
8163 * features/i386/64bit-core.c: Generated.
8164 * features/i386/64bit-linux.c: Generated.
8165 * features/i386/64bit-mpx.c: Generated.
8166 * features/i386/64bit-pkeys.c: Generated.
8167 * features/i386/64bit-segments.c: Generated.
8168 * features/i386/64bit-sse.c: Generated.
8169 * features/i386/x32-core.c: Generated.
8170 * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature
8171 c files for amd64-linux and x32-linux.
8172
8173 2017-09-05 Yao Qi <yao.qi@linaro.org>
8174
8175 * amd64-linux-tdep.c (amd64_linux_read_description): New
8176 function.
8177 (amd64_linux_core_read_description): Call
8178 amd64_linux_read_description.
8179 (amd64_linux_init_abi): Likewise.
8180 (amd64_x32_linux_init_abi): Likewise.
8181 * amd64-linux-tdep.h (amd64_linux_read_description): Declare.
8182 * x86-linux-nat.c (x86_linux_read_description): Call
8183 amd64_linux_read_description.
8184
8185 2017-09-05 Yao Qi <yao.qi@linaro.org>
8186
8187 * amd64-linux-tdep.c (amd64_linux_core_read_description): Update
8188 comments.
8189
8190 2017-09-05 Yao Qi <yao.qi@linaro.org>
8191
8192 * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml.
8193 * features/i386/i386-avx-avx512-linux.c: Remove.
8194 * features/i386/i386-avx-linux.c: Remove.
8195 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove.
8196 * features/i386/i386-avx-mpx-linux.c: Remove.
8197 * features/i386/i386-linux.c: Remove.
8198 * features/i386/i386-mmx-linux.c: Remove.
8199 * features/i386/i386-mpx-linux.c: Remove.
8200
8201 2017-09-05 Yao Qi <yao.qi@linaro.org>
8202
8203 * Makefile.in (ALL_TARGET_OBS): Add i386.o.
8204 (SFILES): Add arch/i386.c.
8205 (HFILES_NO_SRCDIR): Add arch/i386.h.
8206 * arch/i386.c: New file.
8207 * arch/i386.h: New file.
8208 * arch/tdesc.h (allocate_target_description): Declare.
8209 (set_tdesc_architecture): Declare.
8210 (set_tdesc_osabi): Declare.
8211 * configure.tgt (i[34567]86-*-linux*): Add i386.o.
8212 * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c.
8213 include arch/i386.h.
8214 (i386_linux_read_description): Remove code and call
8215 i386_create_target_description.
8216 (set_tdesc_architecture): New function.
8217 (set_tdesc_osabi): New function.
8218 * target-descriptions.h (allocate_target_description): Remove.
8219
8220 2017-09-05 Yao Qi <yao.qi@linaro.org>
8221
8222 * arch/tdesc.h (tdesc_create_feature): Add an argument xml.
8223 * target-descriptions.c (tdesc_create_feature): Likewise, and
8224 adjust code.
8225 * features/i386/32bit-avx.c: Re-generated.
8226 * features/i386/32bit-avx512.c: Re-generated.
8227 * features/i386/32bit-core.c: Re-generated.
8228 * features/i386/32bit-linux.c: Re-generated.
8229 * features/i386/32bit-mpx.c: Re-generated.
8230 * features/i386/32bit-pkeys.c: Re-generated.
8231 * features/i386/32bit-sse.c: Re-generated.
8232
8233 2017-09-05 Yao Qi <yao.qi@linaro.org>
8234
8235 * regformats/regdef.h (struct reg): Override operator == and !=.
8236
8237 2017-09-05 Yao Qi <yao.qi@linaro.org>
8238
8239 * arch/tdesc.h: New file.
8240 * regformats/regdat.sh: Generate code using tdesc_create_reg.
8241 * target-descriptions.c: Update comments.
8242 * target-descriptions.h: Include "arch/tdesc.h". Remove the
8243 declarations.
8244 * features/i386/32bit-avx.c: Re-generated.
8245 * features/i386/32bit-avx512.c: Re-generated.
8246 * features/i386/32bit-core.c: Re-generated.
8247 * features/i386/32bit-linux.c: Re-generated.
8248 * features/i386/32bit-mpx.c: Re-generated.
8249 * features/i386/32bit-pkeys.c: Re-generated.
8250 * features/i386/32bit-sse.c: Re-generated.
8251
8252 2017-09-05 Yao Qi <yao.qi@linaro.org>
8253
8254 * regformats/regdat.sh: Update generated code.
8255
8256 2017-09-05 Yao Qi <yao.qi@linaro.org>
8257
8258 * regformats/regdat.sh: Adjust code order.
8259
8260 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
8261
8262 * expprint.c (dump_subexp_body_standard): Use constant format
8263 string in fprintf_filtered call.
8264
8265 2017-09-04 John Baldwin <jhb@FreeBSD.org>
8266
8267 * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and
8268 NetBSD/i386.
8269 * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX.
8270
8271 2017-09-04 John Baldwin <jhb@FreeBSD.org>
8272
8273 * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H.
8274
8275 2017-09-04 John Baldwin <jhb@FreeBSD.org>
8276
8277 * bsd-kvm.o: Define _KMEMUSER.
8278 * configure.ac: Define _KMEMUSER when checking for "struct lwp".
8279 * configure: Regenerate.
8280
8281 2017-09-04 John Baldwin <jhb@FreeBSD.org>
8282
8283 * amd64-fbsd-nat.c: Add include of "x86-xstate.h".
8284 * i386-fbsd-nat.c: Likewise.
8285
8286 2017-09-04 John Baldwin <jhb@FreeBSD.org>
8287
8288 * unittests/array-view-selftests.c: Add include of <array>.
8289
8290 2017-09-04 John Baldwin <jhb@FreeBSD.org>
8291
8292 * spu-tdep.c (flush_ea_cache): Add missing argument to
8293 call_function_by_hand.
8294
8295 2017-09-04 Pedro Alves <palves@redhat.com>
8296
8297 * NEWS (Safer support for debugging with no debug info): New.
8298
8299 2017-09-04 Pedro Alves <palves@redhat.com>
8300
8301 * c-exp.y (function_method, function_method_void): Add current
8302 instance flags to TYPE_INSTANCE.
8303 * dwarf2read.c (check_modifier): New.
8304 (compute_delayed_physnames): Assert that only C++ adds delayed
8305 physnames. Mark fn_fields as const/volatile depending on
8306 physname.
8307 * eval.c (make_params): New type_instance_flags parameter. Use
8308 it as the new type's instance flags.
8309 (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance
8310 flags element and pass it to make_params.
8311 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle
8312 instance flags element.
8313 (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise.
8314 * gdbtypes.h: Include "enum-flags.h".
8315 (type_instance_flags): New enum-flags type.
8316 (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC)
8317 (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean.
8318 * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust.
8319 (follow_type_instance_flags): New function.
8320 (operator_check_standard) <TYPE_INSTANCE>: Adjust.
8321 * parser-defs.h (follow_type_instance_flags): Declare.
8322 * valops.c (value_struct_elt_for_reference): const/volatile must
8323 match too.
8324
8325 2017-09-04 Pedro Alves <palves@redhat.com>
8326
8327 * cp-namespace.c (cp_search_static_and_baseclasses): Handle
8328 function/method scopes; lookup the nested name as a function local
8329 static variable.
8330
8331 2017-09-04 Pedro Alves <palves@redhat.com>
8332
8333 (%type <voidval>): Add function_method.
8334 * c-exp.y (exp): New production for calls with no arguments.
8335 (function_method, function_method_void_or_typelist): New
8336 productions.
8337 (exp): New production for "method()::static_var".
8338 * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR.
8339 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
8340 Handle OP_FUNC_STATIC_VAR.
8341 * parse.c (operator_length_standard):
8342 Handle OP_FUNC_STATIC_VAR.
8343
8344 2017-09-04 Pedro Alves <palves@redhat.com>
8345
8346 * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS
8347 handling.
8348 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
8349 Ditto.
8350 * parse.c (operator_length_standard, operator_check_standard):
8351 Ditto.
8352 * std-operator.def (UNOP_MEMVAL_TLS): Delete.
8353
8354 2017-09-04 Pedro Alves <palves@redhat.com>
8355
8356 * ax-gdb.c: Include "typeprint.h".
8357 (gen_expr_for_cast): New function.
8358 (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it.
8359 <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's
8360 type is unknown.
8361 * dwarf2read.c (new_symbol_full): Fallback to int instead of
8362 nodebug_data_symbol.
8363 * eval.c: Include "typeprint.h".
8364 (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>:
8365 Error out if symbol has unknown type.
8366 <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to
8367 evaluate_subexp_for_cast.
8368 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle
8369 OP_VAR_MSYM_VALUE.
8370 (evaluate_subexp_for_cast): New function.
8371 * gdbtypes.c (init_nodebug_var_type): New function.
8372 (objfile_type): Use it to initialize types of variables with no
8373 debug info.
8374 * typeprint.c (error_unknown_type): New.
8375 * typeprint.h (error_unknown_type): New declaration.
8376 * compile/compile-c-types.c (convert_type_basic): Handle
8377 TYPE_CODE_ERROR; warn and fallback to int for variables with
8378 unknown type.
8379
8380 2017-09-04 Pedro Alves <palves@redhat.com>
8381
8382 * eval.c (evaluate_var_value): New function, factored out from ...
8383 (evaluate_subexp_standard): ... here.
8384
8385 2017-09-04 Pedro Alves <palves@redhat.com>
8386
8387 * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>:
8388 Remove useless assignments to 'op'.
8389
8390 2017-09-04 Pedro Alves <palves@redhat.com>
8391
8392 * eval.c (eval_skip_value): New function.
8393 (evaluate_subexp_standard): Use it.
8394
8395 2017-09-04 Pedro Alves <palves@redhat.com>
8396
8397 * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract
8398 function name from symbol/minsym and pass it to
8399 error_call_unknown_return_type.
8400
8401 2017-09-04 Pedro Alves <palves@redhat.com>
8402
8403 * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE.
8404 * ax-gdb.c (gen_msym_var_ref): New function.
8405 (gen_expr): Handle OP_VAR_MSYM_VALUE.
8406 * eval.c (evaluate_var_msym_value): New function.
8407 * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE.
8408 <OP_FUNCALL>: Extract function name from symbol/minsym and pass it
8409 to call_function_by_hand.
8410 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
8411 Handle OP_VAR_MSYM_VALUE.
8412 (union exp_element) <msymbol>: New field.
8413 * minsyms.h (struct type): Forward declare.
8414 (find_minsym_type_and_address): Declare.
8415 * parse.c (write_exp_elt_msym): New function.
8416 (write_exp_msymbol): Delete, refactored as ...
8417 (find_minsym_type_and_address): ... this new function.
8418 (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE.
8419 (operator_length_standard, operator_check_standard): Handle
8420 OP_VAR_MSYM_VALUE.
8421 * std-operator.def (OP_VAR_MSYM_VALUE): New.
8422
8423 2017-09-04 Pedro Alves <palves@redhat.com>
8424
8425 * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle
8426 TYPE_GNU_IFUNC specially here. Throw error if return type is
8427 unknown.
8428 * ada-typeprint.c (print_func_type): Handle functions with unknown
8429 return type.
8430 * c-typeprint.c (c_type_print_base): Handle functions and methods
8431 with unknown return type.
8432 * compile/compile-c-symbols.c (convert_symbol_bmsym)
8433 <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol.
8434 * compile/compile-c-types.c: Include "objfiles.h".
8435 (convert_func): For functions with unknown return type, warn and
8436 default to int.
8437 * compile/compile-object-run.c (compile_object_run): Adjust call
8438 to call_function_by_hand_dummy.
8439 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to
8440 call_function_by_hand.
8441 * eval.c (evaluate_subexp_standard): Adjust calls to
8442 call_function_by_hand. Handle functions and methods with unknown
8443 return type. Pass expect_type to call_function_by_hand.
8444 * f-typeprint.c (f_type_print_base): Handle functions with unknown
8445 return type.
8446 * gcore.c (call_target_sbrk): Adjust call to
8447 call_function_by_hand.
8448 * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL
8449 return type instead of int. Make nodebug_text_gnu_ifunc_symbol be
8450 an integer address type instead of nodebug.
8451 * guile/scm-value.c (gdbscm_value_call): Adjust call to
8452 call_function_by_hand.
8453 * infcall.c (error_call_unknown_return_type): New function.
8454 (call_function_by_hand): New "default_return_type" parameter.
8455 Pass it down.
8456 (call_function_by_hand_dummy): New "default_return_type"
8457 parameter. Use it instead of defaulting to int. If there's no
8458 default and the return type is unknown, throw an error. If
8459 there's a default return type, and the called function has no
8460 debug info, then assume the function is prototyped.
8461 * infcall.h (call_function_by_hand, call_function_by_hand_dummy):
8462 New "default_return_type" parameter.
8463 (error_call_unknown_return_type): New declaration.
8464 * linux-fork.c (call_lseek): Cast return type of lseek.
8465 (inferior_call_waitpid, checkpoint_command): Adjust calls to
8466 call_function_by_hand.
8467 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust
8468 calls to call_function_by_hand.
8469 * m2-typeprint.c (m2_procedure): Handle functions with unknown
8470 return type.
8471 * objc-lang.c (lookup_objc_class, lookup_child_selector)
8472 (value_nsstring, print_object_command): Adjust calls to
8473 call_function_by_hand.
8474 * p-typeprint.c (pascal_type_print_varspec_prefix): Handle
8475 functions with unknown return type.
8476 (pascal_type_print_func_varspec_suffix): New function.
8477 (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC,
8478 TYPE_CODE_METHOD>: Use it.
8479 * python/py-value.c (valpy_call): Adjust call to
8480 call_function_by_hand.
8481 * rust-lang.c (rust_evaluate_funcall): Adjust call to
8482 call_function_by_hand.
8483 * valarith.c (value_x_binop, value_x_unop): Adjust calls to
8484 call_function_by_hand.
8485 * valops.c (value_allocate_space_in_inferior): Adjust call to
8486 call_function_by_hand.
8487 * typeprint.c (type_print_unknown_return_type): New function.
8488 * typeprint.h (type_print_unknown_return_type): New declaration.
8489
8490 2017-09-04 Pedro Alves <palves@redhat.com>
8491
8492 * gdbtypes.c (lookup_function_type_with_arguments): Mark function
8493 types with more than one parameter as prototyped.
8494
8495 2017-09-04 Pedro Alves <palves@redhat.com>
8496
8497 * cli/cli-cmds.c (print_disassembly, disassemble_current_function)
8498 (disassemble_command): Use gdb_disassembly_flags instead of bare
8499 int.
8500 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn)
8501 (dump_insns, do_mixed_source_and_assembly_deprecated)
8502 (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly):
8503 Use gdb_disassembly_flags instead of bare int.
8504 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN)
8505 (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME)
8506 (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE)
8507 (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're...
8508 (enum gdb_disassembly_flag): ... values of this new enumeration.
8509 (gdb_disassembly_flags): Define.
8510 (gdb_disassembly)
8511 (gdb_pretty_print_disassembler::pretty_print_insn): Use it.
8512 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use
8513 gdb_disassembly_flags instead of bare int.
8514 * record-btrace.c (btrace_insn_history)
8515 (record_btrace_insn_history, record_btrace_insn_history_range)
8516 (record_btrace_insn_history_from): Use gdb_disassembly_flags
8517 instead of bare int.
8518 * record.c (get_insn_history_modifiers, cmd_record_insn_history):
8519 Use gdb_disassembly_flags instead of bare int.
8520 * target-debug.h (target_debug_print_gdb_disassembly_flags):
8521 Define.
8522 * target-delegates.c: Regenerate.
8523 * target.c (target_insn_history, target_insn_history_from)
8524 (target_insn_history_range): Use gdb_disassembly_flags instead of
8525 bare int.
8526 * target.h: Include "disasm.h".
8527 (struct target_ops) <to_insn_history, to_insn_history_from,
8528 to_insn_history_range>: Use gdb_disassembly_flags instead of bare
8529 int.
8530 (target_insn_history, target_insn_history_from)
8531 (target_insn_history_range): Use gdb_disassembly_flags instead of
8532 bare int.
8533
8534 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
8535
8536 * cli/cli-script.c (build_command_line): For if/while commands,
8537 check whether args is empty.
8538
8539 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
8540
8541 * cli/cli-script.h (enum misc_command_type): Move from defs.h.
8542 (enum command_control_type): Likewise.
8543 (struct command_line): Likewise.
8544 (free_command_lines): Likewise.
8545 (struct command_lines_deleter): Likewise.
8546 (command_line_up): Likewise.
8547 (read_command_lines): Likewise.
8548 (read_command_lines_1): Likewise.
8549 * defs.h (enum misc_command_type): Move to cli/cli-script.h.
8550 (enum command_control_type): Likewise.
8551 (struct command_line): Likewise.
8552 (free_command_lines): Likewise.
8553 (struct command_lines_deleter): Likewise.
8554 (command_line_up): Likewise.
8555 (read_command_lines): Likewise.
8556 (read_command_lines_1): Likewise.
8557 * breakpoint.h: Include cli/cli-script.h.
8558 * extension-priv.h: Likewise.
8559 * gdbcmd.h: Likewise.
8560
8561 2017-09-04 Pedro Alves <palves@redhat.com>
8562
8563 * ada-lang.c (is_known_support_routine): Move sal declaration to
8564 where it is initialized.
8565 * breakpoint.c (create_internal_breakpoint, init_catchpoint)
8566 (parse_breakpoint_sals, decode_static_tracepoint_spec)
8567 (clear_command, update_static_tracepoint): Remove init_sal
8568 references. Move declarations closer to initializations.
8569 * cli/cli-cmds.c (list_command): Move sal declarations closer to
8570 initializations.
8571 * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal
8572 references. Move sal declarations closer to initializations.
8573 * frame.c (find_frame_sal): Return a symtab_and_line via function
8574 return instead of output parameter. Remove init_sal references.
8575 * frame.h (find_frame_sal): Return a symtab_and_line via function
8576 return instead of output parameter.
8577 * guile/scm-frame.c (gdbscm_frame_sal): Adjust.
8578 * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new
8579 instead of memset.
8580 (gdbscm_find_pc_line): Remove init_sal reference.
8581 * infcall.c (call_function_by_hand_dummy): Remove init_sal
8582 references. Move declarations closer to initializations.
8583 * infcmd.c (set_step_frame): Update. Move declarations closer to
8584 initializations.
8585 (finish_backward): Remove init_sal references. Move declarations
8586 closer to initializations.
8587 * infrun.c (process_event_stop_test, handle_step_into_function)
8588 (insert_hp_step_resume_breakpoint_at_frame)
8589 (insert_step_resume_breakpoint_at_caller): Likewise.
8590 * linespec.c (create_sals_line_offset, decode_digits_ordinary)
8591 (symbol_to_sal): Likewise.
8592 * probe.c (parse_probes_in_pspace): Remove init_sal reference.
8593 * python/py-frame.c (frapy_find_sal): Move sal declaration closer
8594 to its initialization.
8595 * reverse.c (save_bookmark_command): Use new/delete. Remove
8596 init_sal references. Move declarations closer to initializations.
8597 * source.c (get_current_source_symtab_and_line): Remove brace
8598 initialization.
8599 (set_current_source_symtab_and_line): Now takes the sal by const
8600 reference. Remove brace initialization.
8601 (line_info): Remove init_sal reference.
8602 * source.h (set_current_source_symtab_and_line): Now takes a
8603 symtab_and_line via const reference.
8604 * stack.c (set_current_sal_from_frame): Adjust.
8605 (print_frame_info): Adjust.
8606 (get_last_displayed_sal): Return the sal via function return
8607 instead of via output parameter. Simplify.
8608 (frame_info): Adjust.
8609 * stack.h (get_last_displayed_sal): Return the sal via function
8610 return instead of via output parameter.
8611 * symtab.c (init_sal): Delete.
8612 (find_pc_sect_line): Remove init_sal references. Move
8613 declarations closer to initializations.
8614 (find_function_start_sal): Remove init_sal references. Move
8615 declarations closer to initializations.
8616 * symtab.h (struct symtab_and_line): In-class initialize all
8617 fields.
8618 * tracepoint.c (set_traceframe_context)
8619 (print_one_static_tracepoint_marker): Remove init_sal references.
8620 Move declarations closer to initializations.
8621 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust.
8622 * tui/tui-stack.c (tui_show_frame_info): Adjust. Move
8623 declarations closer to initializations.
8624 * tui/tui-winsource.c (tui_update_source_window_as_is): Remove
8625 init_sal references. Adjust.
8626
8627 2017-09-04 Pedro Alves <palves@redhat.com>
8628
8629 * ax-gdb.c (agent_command_1): Use range-for.
8630 * break-catch-throw.c (re_set_exception_catchpoint): Update.
8631 * breakpoint.c: Include "common/array-view.h".
8632 (init_breakpoint_sal, create_breakpoint_sal): Change sals
8633 parameter from struct symtabs_and_lines to
8634 array_view<symtab_and_line>. Adjust. Use range-for. Update.
8635 (breakpoint_sals_to_pc): Change sals parameter from struct
8636 symtabs_and_lines to std::vector reference.
8637 (check_fast_tracepoint_sals): Change sals parameter from struct
8638 symtabs_and_lines to std::array_view. Use range-for.
8639 (decode_static_tracepoint_spec): Return a std::vector instead of
8640 symtabs_and_lines. Update.
8641 (create_breakpoint): Update.
8642 (break_range_command, until_break_command, clear_command): Update.
8643 (base_breakpoint_decode_location, bkpt_decode_location)
8644 (bkpt_probe_create_sals_from_location)
8645 (bkpt_probe_decode_location, tracepoint_decode_location)
8646 (tracepoint_probe_decode_location)
8647 (strace_marker_create_sals_from_location): Return a std::vector
8648 instead of symtabs_and_lines.
8649 (strace_marker_create_breakpoints_sal): Update.
8650 (strace_marker_decode_location): Return a std::vector instead of
8651 symtabs_and_lines. Update.
8652 (update_breakpoint_locations): Change struct symtabs_and_lines
8653 parameters to gdb::array_view. Adjust.
8654 (location_to_sals): Return a std::vector instead of
8655 symtabs_and_lines. Update.
8656 (breakpoint_re_set_default): Use std::vector instead of struct
8657 symtabs_and_lines.
8658 (decode_location_default): Return a std::vector instead of
8659 symtabs_and_lines. Update.
8660 * breakpoint.h: Include "common/array-view.h".
8661 (struct breakpoint_ops) <decode_location>: Now returns a
8662 std::vector instead of returning a symtabs_and_lines via output
8663 parameter.
8664 (update_breakpoint_locations): Change sals parameters to use
8665 gdb::array_view.
8666 * cli/cli-cmds.c (edit_command, list_command): Update to use
8667 std::vector and gdb::array_view.
8668 (ambiguous_line_spec): Adjust to use gdb::array_view and
8669 range-for.
8670 (compare_symtabs): Rename to ...
8671 (cmp_symtabs): ... this. Change parameters to symtab_and_line
8672 const reference and adjust.
8673 (filter_sals): Rewrite using std::vector and standard algorithms.
8674 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify.
8675 (jump_command): Update to use std::vector.
8676 * linespec.c (struct linespec_state) <canonical_names>: Update
8677 comment.
8678 (add_sal_to_sals_basic): Delete.
8679 (add_sal_to_sals, filter_results, convert_results_to_lsals)
8680 (decode_line_2, create_sals_line_offset)
8681 (convert_address_location_to_sals, convert_linespec_to_sals)
8682 (convert_explicit_location_to_sals, parse_linespec)
8683 (event_location_to_sals, decode_line_full, decode_line_1)
8684 (decode_line_with_current_source)
8685 (decode_line_with_last_displayed, decode_objc)
8686 (decode_digits_list_mode, decode_digits_ordinary, minsym_found)
8687 (linespec_result::~linespec_result): Adjust to use std::vector
8688 instead of symtabs_and_lines.
8689 * linespec.h (linespec_sals::sals): Now a std::vector.
8690 (struct linespec_result): Use std::vector, bool, and in-class
8691 initialization.
8692 (decode_line_1, decode_line_with_current_source)
8693 (decode_line_with_last_displayed): Return std::vector.
8694 * macrocmd.c (info_macros_command): Use std::vector.
8695 * mi/mi-main.c (mi_cmd_trace_find): Use std::vector.
8696 * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use
8697 std::vector.
8698 * probe.h (parse_probes): Return a std::vector.
8699 * python/python.c (gdbpy_decode_line): Use std::vector and
8700 gdb::array_view.
8701 * source.c (select_source_symtab, line_info): Use std::vector.
8702 * stack.c (func_command): Use std::vector.
8703 * symtab.h (struct symtabs_and_lines): Delete.
8704 * tracepoint.c (tfind_line_command, scope_info): Use std::vector.
8705
8706 2017-09-04 Pedro Alves <palves@redhat.com>
8707
8708 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8709 unittests/array-view-selftests.c.
8710 (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o.
8711 * common/array-view.h: New file.
8712 * unittests/array-view-selftests.c: New file.
8713
8714 2017-09-04 Pedro Alves <palves@redhat.com>
8715
8716 * cli/cli-cmds.c (edit_command): Pass message to
8717 ambiguous_line_spec.
8718 (list_command): Pass message to ambiguous_line_spec. Say
8719 "first"/"last" instead of "start" and "end" to be consistent with
8720 the manual.
8721 (ambiguous_line_spec): Add 'format' and vararg parameters. Use
8722 them to print formatted message.
8723
8724 2017-09-04 Pedro Alves <palves@redhat.com>
8725
8726 * btrace.c (ftrace_add_pt): Pass btrace_insn to
8727 ftrace_update_insns by reference instead of pointer.
8728
8729 2017-09-04 Yao Qi <yao.qi@linaro.org>
8730
8731 * i386-go32-tdep.c: Include x86-xstate.h.
8732 (i386_go32_init_abi): Call i386_target_description.
8733 * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx
8734 if xcr0 is X86_XSTATE_X87_MASK.
8735 * i386-tdep.h (tdesc_i386): Remove the declaration.
8736 (tdesc_i386_mmx): Likewise.
8737
8738 2017-09-04 Yao Qi <yao.qi@linaro.org>
8739
8740 * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return
8741 X86_XSTATE_SSE_MASK instead of 0.
8742
8743 2017-09-04 Yao Qi <yao.qi@linaro.org>
8744
8745 * amd64-fbsd-nat.c (amd64fbsd_read_description): Call
8746 i386_target_description.
8747 * i386-fbsd-nat.c (i386fbsd_read_description): Call
8748 i386_target_description.
8749 * i386-tdep.c (i386_gdbarch_init): Likewise.
8750
8751 2017-09-04 Yao Qi <yao.qi@linaro.org>
8752
8753 * amd64-darwin-tdep.c: Include "x86-xstate.h".
8754 (x86_darwin_init_abi_64): Call amd64_target_description.
8755 * amd64-dicos-tdep.c: Likewise.
8756 * amd64-fbsd-nat.c: Likewise.
8757 * amd64-fbsd-tdep.c: Likewise.
8758 * amd64-nbsd-tdep.c: Likewise.
8759 * amd64-obsd-tdep.c: Likewise.
8760 * amd64-sol2-tdep.c: Likewise.
8761 * amd64-windows-tdep.c: Likewise.
8762 * amd64-tdep.h (tdesc_amd64): Remove the declaration.
8763
8764 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
8765
8766 * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove.
8767 (btrace_function) <insn>: Change type to use std::vector.
8768 * btrace.c (ftrace_debug, ftrace_call_num_insn,
8769 ftrace_find_call, ftrace_new_gap, ftrace_update_function,
8770 ftrace_update_insns, ftrace_compute_global_level_offset,
8771 btrace_stitch_bts, btrace_clear, btrace_insn_get,
8772 btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to
8773 change to std::vector.
8774 (ftrace_update_insns): Adjust to change to std::vector, change
8775 type of INSN parameter.
8776 (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns.
8777 * record-btrace.c (btrace_call_history_insn_range,
8778 btrace_compute_src_line_range,
8779 record_btrace_frame_prev_register): Adjust to change to
8780 std::vector.
8781 * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust
8782 to change to std::vector.
8783
8784 2017-09-03 Tom Tromey <tom@tromey.com>
8785
8786 * corefile.c (reopen_exec_file): Use std::string.
8787
8788 2017-09-03 Tom Tromey <tom@tromey.com>
8789
8790 * compile/compile.c (compile_register_name_mangled): Return
8791 std::string.
8792 * compile/compile-loc2c.c (pushf_register_address): Update.
8793 (pushf_register): Update.
8794 * compile/compile-c-types.c (convert_array): Update.
8795 * compile/compile-c-symbols.c (generate_vla_size): Update.
8796 (error_symbol_once): Use a gdb::unique_xmalloc_ptr.
8797 (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr.
8798 (convert_one_symbol): Update.
8799 (generate_c_for_for_one_variable): Update.
8800 * compile/compile-c-support.c (c_get_range_decl_name): Return a
8801 std::string.
8802 (generate_register_struct): Update.
8803 * compile/compile-internal.h (c_get_range_decl_name): Return a
8804 std::string.
8805 (compile_register_name_mangled): Return std::string.
8806
8807 2017-09-03 Tom Tromey <tom@tromey.com>
8808
8809 * utils.c (perror_string): Return a std::string.
8810 (throw_perror_with_name, perror_warning_with_name): Update.
8811
8812 2017-09-03 Tom Tromey <tom@tromey.com>
8813
8814 * demangle.c (demangle_command): Use std::string,
8815 unique_xmalloc_ptr.
8816
8817 2017-09-03 Tom Tromey <tom@tromey.com>
8818
8819 * cli/cli-setshow.c (do_set_command): Use std::string.
8820
8821 2017-09-03 Tom Tromey <tom@tromey.com>
8822
8823 * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr.
8824
8825 2017-09-03 Tom Tromey <tom@tromey.com>
8826
8827 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string.
8828
8829 2017-09-03 Tom Tromey <tom@tromey.com>
8830
8831 * mi/mi-cmd-env.c (env_execute_cli_command): Use
8832 gdb::unique_xmalloc_ptr.
8833
8834 2017-09-03 Tom Tromey <tom@tromey.com>
8835
8836 * thread.c (print_thread_info_1): Use string_printf.
8837 (thread_apply_command, thread_apply_all_command): Use
8838 std::string.
8839
8840 2017-09-03 Tom Tromey <tom@tromey.com>
8841
8842 * valprint.c (val_print_string): Update.
8843 * gdbcore.h (memory_error_message): Return std::string.
8844 * corefile.c (memory_error_message): Return std::string.
8845 (memory_error): Update.
8846 * breakpoint.c (insert_bp_location): Update.
8847
8848 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
8849
8850 * target/waitstatus.h (target_waitstatus_to_string): Change
8851 return type to std::string.
8852 * target/waitstatus.c (target_waitstatus_to_string): Return
8853 std::string.
8854 * target.h (target_waitstatus_to_string): Remove declaration.
8855 * infrun.c (resume, clear_proceed_status_thread,
8856 print_target_wait_results, do_target_wait, save_waitstatus,
8857 stop_all_threads): Adjust.
8858 * record-btrace.c (record_btrace_wait): Adjust.
8859 * target-debug.h
8860 (target_debug_print_struct_target_waitstatus_p): Adjust.
8861
8862 2017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8863
8864 PR gdb/22046
8865 * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED
8866 detection.
8867
8868 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
8869
8870 * NEWS (Changes since GDB 8.0): Add entry mentioning new support
8871 for setting/unsetting environment variables on the remote target.
8872 (New remote packets): Add entries for QEnvironmentHexEncoded,
8873 QEnvironmentUnset and QEnvironmentReset.
8874 * common/environ.c (gdb_environ::operator=): Extend method to
8875 handle m_user_set_env_list and m_user_unset_env_list.
8876 (gdb_environ::clear): Likewise.
8877 (match_var_in_string): Change type of first parameter from 'char
8878 *' to 'const char *'.
8879 (gdb_environ::set): Extend method to handle
8880 m_user_set_env_list and m_user_unset_env_list.
8881 (gdb_environ::unset): Likewise.
8882 (gdb_environ::clear_user_set_env): New method.
8883 (gdb_environ::user_set_envp): Likewise.
8884 (gdb_environ::user_unset_envp): Likewise.
8885 * common/environ.h (gdb_environ): Handle m_user_set_env_list and
8886 m_user_unset_env_list on move constructor/assignment.
8887 (unset): Add new default parameter 'update_unset_list = true'.
8888 (clear_user_set_env): New method.
8889 (user_set_envp): Likewise.
8890 (user_unset_envp): Likewise.
8891 (m_user_set_env_list): New std::set.
8892 (m_user_unset_env_list): Likewise.
8893 * common/rsp-low.c (hex2str): New function.
8894 (bin2hex): New overload for bin2hex function.
8895 * common/rsp-low.c (hex2str): New prototype.
8896 (str2hex): New overload prototype.
8897 * remote.c: Include "environ.h". Add QEnvironmentHexEncoded,
8898 QEnvironmentUnset and QEnvironmentReset.
8899 (remote_protocol_features): Add QEnvironmentHexEncoded,
8900 QEnvironmentUnset and QEnvironmentReset packets.
8901 (send_environment_packet): New function.
8902 (extended_remote_environment_support): Likewise.
8903 (extended_remote_create_inferior): Call
8904 extended_remote_environment_support.
8905 (_initialize_remote): Add QEnvironmentHexEncoded,
8906 QEnvironmentUnset and QEnvironmentReset packet configs.
8907 * unittests/environ-selftests.c (gdb_selftest_env_var):
8908 New variable.
8909 (test_vector_initialization): New function.
8910 (test_init_from_host_environ): Likewise.
8911 (test_reinit_from_host_environ): Likewise.
8912 (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B):
8913 Likewise.
8914 (test_unset_set_empty_vector): Likewise.
8915 (test_vector_clear): Likewise.
8916 (test_std_move): Likewise.
8917 (test_move_constructor):
8918 (test_self_move): Likewise.
8919 (test_set_unset_reset): Likewise.
8920 (run_tests): Rewrite in terms of the functions above.
8921
8922 2017-08-31 Weimin Pan <weimin.pan@oracle.com>
8923
8924 * sparc64-tdep.c (adi_stat_t): Fix comment formatting.
8925 (adi_available): Use a temp variable of type CORE_ADDR as argument
8926 3 when calling target_auxv_search.
8927 (adi_normalize_address): Use masks and xor operators to calculate
8928 normalized address.
8929 (adi_read_versions, adi_write_versions, adi_print_versions)
8930 (do_examine, do_assign): Use paddress.
8931
8932 2017-08-29 John Baldwin <jhb@FreeBSD.org>
8933
8934 * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR.
8935 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR
8936 out of loop and add supply of FIR.
8937 (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and
8938 add collect of FIR.
8939
8940 2017-08-28 Simon Marchi <simon.marchi@ericsson.com>
8941
8942 PR gdb/21827
8943 * cli/cli-script.c (define_command): Don't convert command name
8944 to lower case.
8945
8946 2017-08-25 Joel Brobecker <brobecker@adacore.com>
8947
8948 * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp".
8949 Update all callers accordingly. Remove all code blocks handling
8950 the case where DISPP is not NULL.
8951
8952 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8953
8954 PR symtab/22003
8955 * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow)
8956 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
8957 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const.
8958
8959 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8960
8961 * dwarf2read.c (build_type_psymtabs_reader): New prototype.
8962 (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES.
8963 (read_comp_units_from_section): New parameter abbrev_section, use
8964 read_and_check_comp_unit_head, allocate signatured_type if needed.
8965 (create_all_comp_units): Update read_comp_units_from_section caller.
8966
8967 2017-08-23 Pedro Alves <palves@redhat.com>
8968
8969 PR remote/21852
8970 * remote.c (add_current_inferior_and_thread): Set inferior_ptid
8971 to null_ptid and switch to thread without reading the registers
8972 after adding the inferior.
8973
8974 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
8975
8976 * NEWS (Changes since GDB 8.0): Add set compile-gcc and show
8977 compile-gcc.
8978 * compile/compile.c (compile_gcc, show_compile_gcc): New.
8979 (compile_to_object): Implement compile_gcc.
8980 (_initialize_compile): Install "set compile-gcc". Initialize
8981 compile_gcc.
8982
8983 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
8984
8985 * compile/compile.c (compile_to_object): Conditionally call
8986 set_verbose. Conditionally call compile or compile_v0.
8987
8988 2017-08-07 Weimin Pan <weimin.pan@oracle.com>
8989
8990 * sparc64-tdep.h: (adi_normalize_address): New export.
8991 * sparc-nat.h: (open_adi_tag_fd): New export.
8992 * sparc64-linux-nat.c: (open_adi_tag_fd): New function.
8993 * sparc64-linux-tdep.c:
8994 (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines.
8995 (sparc64_linux_handle_segmentation_fault): New function.
8996 (sparc64_linux_init_abi): Register
8997 sparc64_linux_handle_segmentation_fault
8998 * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h.
8999 (sparc64_addr_bits_remove): New function.
9000 (sparc64_init_abi): Register sparc64_addr_bits_remove.
9001 (MAX_PROC_NAME_SIZE): New macro.
9002 (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines.
9003 (sparc64adilist): New variable.
9004 (adi_proc_list): New variable.
9005 (find_adi_info): New function.
9006 (add_adi_info): New function.
9007 (get_adi_info_proc): New function.
9008 (get_adi_info): New function.
9009 (info_adi_command): New function.
9010 (read_maps_entry): New function.
9011 (adi_available): New function.
9012 (adi_normalize_address): New function.
9013 (adi_align_address): New function.
9014 (adi_convert_byte_count): New function.
9015 (adi_tag_fd): New function.
9016 (adi_is_addr_mapped): New function.
9017 (adi_read_versions): New function.
9018 (adi_write_versions): New function.
9019 (adi_print_versions): New function.
9020 (do_examine): New function.
9021 (do_assign): New function.
9022 (adi_examine_command): New function.
9023 (adi_assign_command): New function.
9024 (_initialize_sparc64_adi_tdep): New function.
9025
9026 2017-08-22 Simon Marchi <simon.marchi@ericsson.com>
9027
9028 * breakpoint.c (breakpoints_info): Rename to ...
9029 (info_breakpoints_command): ... this.
9030 (watchpoints_info): Rename to ...
9031 (info_watchpoints_command): ... this.
9032 (tracepoints_info): Rename to ...
9033 (info_tracepoints_command): ... this.
9034 (_initialize_breakpoint): Adjust.
9035 * dcache.c (dcache_info): Rename to ...
9036 (info_display_command): ... this.
9037 (_initialize_dcache): Adjust.
9038 * frame.h (args_info): Rename to ...
9039 (info_args_command): ... this.
9040 (locals_info): Rename to ...
9041 (info_locals_command): ... this.
9042 * infcmd.c (nofp_registers_info): Rename to ...
9043 (info_registers_command): ... this.
9044 (float_info): Rename to ...
9045 (info_float_command): ... this.
9046 (program_info): Rename to ...
9047 (info_program_command): ... this.
9048 (all_registers_info): Rename to ...
9049 (info_all_registers_command): ... this.
9050 (vector_info): Rename to ...
9051 (info_vector_command): ... this.
9052 (float_info): Rename to ...
9053 (info_float_command): ... this.
9054 (_initialize_infcmd): Adjust.
9055 * inferior.h (term_info): Rename to ...
9056 (info_terminal_command): ... this.
9057 * inflow.c (term_info): Rename to ...
9058 (info_terminal_command): ... this.
9059 (_initialize_inflow): Adjust.
9060 * infrun.c (signals_info): Rename to ...
9061 (info_signals_command): ... this.
9062 (_initialize_infrun): Adjust.
9063 * objc-lang.c (classes_info): Rename to ...
9064 (info_classes_command): ... this.
9065 (selectors_info): Rename to ...
9066 (info_selectors_command): ... this.
9067 (_initialize_objc_language): Adjust.
9068 * printcmd.c (sym_info): Rename to ...
9069 (info_symbol_command): ... this.
9070 (address_info): Rename to ...
9071 (info_address_command): ... this.
9072 (display_info): Rename to ...
9073 (info_display_command): ... this.
9074 (_initialize_printcmd): Adjust.
9075 * reverse.c (bookmarks_info): Rename to ...
9076 (info_breakpoints_command): ... this.
9077 (_initialize_reverse): Adjust.
9078 * ser-go32.c (dos_info): Rename to ...
9079 (info_serial_command): ... this.
9080 (_initialize_ser_dos): Adjust.
9081 * skip.c (skip_info): Rename to ...
9082 (info_skip_command): ... this.
9083 (_initialize_step_skip): Adjust.
9084 * source.c (line_info): Rename to ...
9085 (info_line_command): ... this.
9086 (source_info): Rename to ...
9087 (info_source_command)
9088 * stack.c (frame_info): Rename to ...
9089 (info_frame_command): ... this.
9090 (locals_info): Rename to ...
9091 (info_locals_command): ... this.
9092 (args_info): Rename to ...
9093 (info_args_command): ... this.
9094 (_initialize_stack): Adjust.
9095 * symtab.c (sources_info): Rename to ...
9096 (info_sources_command): ... this.
9097 (variables_info): Rename to ...
9098 (info_variables_command): ... this.
9099 (functions_info): Rename to ...
9100 (info_functions_command): ... this.
9101 (types_info): Rename to ...
9102 (info_types_command): ... this.
9103 (_initialize_symtab): Adjust.
9104 * target.c (target_info): Rename to ...
9105 (info_target_command): ... this.
9106 (initialize_targets): Adjust.
9107 * tracepoint.c (tvariables_info): Rename to ...
9108 (info_tvariables_command): ... this.
9109 (scope_info): Rename to ...
9110 (info_scope_command): ... this.
9111 (trace_dump_actions): Adjust.
9112 (_initialize_tracepoint): Adjust.
9113
9114 2017-08-22 Tom Tromey <tom@tromey.com>
9115
9116 * breakpoint.h (install_breakpoint): Update.
9117 * breakpoint.c (add_solib_catchpoint): Update.
9118 (install_breakpoint): Change argument to a std::unique_ptr.
9119 (create_fork_vfork_event_catchpoint): Use std::unique_ptr.
9120 (create_breakpoint_sal, create_breakpoint): Update.
9121 (watch_command_1, catch_exec_command_1)
9122 (strace_marker_create_breakpoints_sal): Use std::unique_ptr.
9123 (add_to_breakpoint_chain): Change argument to a std::unique_ptr.
9124 Return the breakpoint.
9125 (set_raw_breakpoint_without_location, set_raw_breakpoint)
9126 (new_single_step_breakpoint): Update.
9127 * break-catch-throw.c (handle_gnu_v3_exceptions): Use
9128 std::unique_ptr.
9129 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
9130 std::unique_ptr.
9131 * break-catch-sig.c (create_signal_catchpoint): Use
9132 std::unique_ptr.
9133 * ada-lang.c (create_ada_exception_catchpoint): Use
9134 std::unique_ptr.
9135
9136 2017-08-22 Tom Tromey <tom@tromey.com>
9137
9138 * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr.
9139
9140 2017-08-22 Tom Tromey <tom@tromey.com>
9141
9142 * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr.
9143 (lookup_partial_symbol): Update.
9144
9145 2017-08-22 Tom Tromey <tom@tromey.com>
9146
9147 * source.h (rewrite_source_path): Return a unique_xmalloc_ptr.
9148 * source.c (rewrite_source_path): Return a unique_xmalloc_ptr.
9149 (find_and_open_source, symtab_to_fullname): Update.
9150 * psymtab.c (psymtab_to_fullname): Update.
9151
9152 2017-08-22 Tom Tromey <tom@tromey.com>
9153
9154 * exec.c (exec_file_attach): Update.
9155 * linux-thread-db.c (try_thread_db_load): Update.
9156 * guile/scm-safe-call.c (gdbscm_safe_source_script): Update.
9157 * utils.c (gdb_realpath): Change return type.
9158 (gdb_realpath_keepfile): Update.
9159 (gdb_realpath_check_trailer, gdb_realpath_tests): New functions.
9160 (_initialize_utils): Register the new self test.
9161 * source.c (openp): Update.
9162 (find_and_open_source): Update.
9163 * nto-tdep.c (nto_find_and_open_solib): Update.
9164 * main.c (set_gdb_data_directory): Update.
9165 (captured_main_1): Update.
9166 * dwarf2read.c (dwarf2_get_dwz_file): Update
9167 (dw2_map_symbol_filenames): Update.
9168 * auto-load.c (auto_load_safe_path_vec_update): Update.
9169 (filename_is_in_auto_load_safe_path_vec): Change type of
9170 "filename_realp".
9171 (auto_load_objfile_script): Update.
9172 (file_is_auto_load_safe): Update. Use std::string.
9173 * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr.
9174
9175 2017-08-22 Tom Tromey <tom@tromey.com>
9176
9177 * utils.c (gdb_realpath_keepfile): Return a
9178 gdb::unique_xmalloc_ptr.
9179 * exec.c (exec_file_attach): Update.
9180 * utils.h (gdb_realpath_keepfile): Return a
9181 gdb::unique_xmalloc_ptr.
9182
9183 2017-08-22 Tom Tromey <tom@tromey.com>
9184
9185 * compile/compile.c (compile_file_command): Use
9186 gdb::unique_xmalloc_ptr, std::string.
9187 * utils.c (gdb_abspath): Change return type.
9188 * source.c (openp): Update.
9189 * objfiles.c (allocate_objfile): Update.
9190 * main.c (set_gdb_data_directory): Update.
9191 * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr.
9192
9193 2017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com>
9194
9195 * cli-cmds.c (list_commands): List actual code around more than
9196 one location.
9197
9198 2017-08-21 John Baldwin <jhb@FreeBSD.org>
9199
9200 * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'.
9201
9202 2017-08-21 Pedro Alves <palves@redhat.com>
9203
9204 PR gdb/19487
9205 * c-exp.y (variable production): Handle function aliases.
9206 * minsyms.c (msymbol_is_text): New function.
9207 * minsyms.h (msymbol_is_text): Declare.
9208 * symtab.c (find_function_alias_target): New function.
9209 * symtab.h (find_function_alias_target): Declare.
9210
9211 2017-08-21 Pedro Alves <palves@redhat.com>
9212
9213 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past
9214 typedefs.
9215 * typeprint.c (whatis_exp): If handling "whatis", and expression
9216 is OP_TYPE, strip one typedef level. Otherwise don't strip
9217 typedefs here.
9218 * valops.c (value_cast): Save "to" type before resolving
9219 stubs/typedefs. Use that type as resulting value's type.
9220
9221 2017-08-18 Tom Tromey <tom@tromey.com>
9222 Pedro Alves <palves@redhat.com>
9223
9224 * spu-multiarch.c (parse_spufs_run): Use scoped_restore.
9225 * sol-thread.c (sol_thread_resume, sol_thread_wait)
9226 (sol_thread_xfer_partial, rw_common): Use scoped_restore.
9227 * procfs.c (procfs_do_thread_registers): Use scoped_restore.
9228 * proc-service.c (ps_xfer_memory): Use scoped_restore.
9229 * linux-tdep.c (linux_corefile_thread): Remove a cleanup.
9230 (linux_get_siginfo_data): Add "thread" argument. Use
9231 scoped_restore.
9232 * linux-nat.c (linux_child_follow_fork)
9233 (check_stopped_by_watchpoint): Use scoped_restore.
9234 * infrun.c (displaced_step_prepare_throw, write_memory_ptid)
9235 (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore.
9236 (restore_inferior_ptid, save_inferior_ptid): Remove.
9237 * btrace.c (btrace_fetch): Use scoped_restore.
9238 * bsd-uthread.c (bsd_uthread_fetch_registers)
9239 (bsd_uthread_store_registers): Use scoped_restore.
9240 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
9241 scoped_restore.
9242 * aix-thread.c (aix_thread_resume, aix_thread_wait)
9243 (aix_thread_xfer_partial): Use scoped_restore.
9244 * inferior.h (save_inferior_ptid): Remove.
9245
9246 2017-08-18 Yao Qi <yao.qi@linaro.org>
9247
9248 PR tdep/21818
9249 * arm-tdep.c (gdb_print_insn_arm): Mark
9250 USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL.
9251
9252 2017-08-18 Yao Qi <yao.qi@linaro.org>
9253
9254 * NEWS: Mention GDBserver's new option "--selftest".
9255 * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c.
9256 * selftest.c: Move it to common/selftest.c.
9257 * selftest.h: Move it to common/selftest.h.
9258 * selftest-arch.c (reset): New function.
9259 (tests_with_arch): Call reset.
9260
9261 2017-08-18 Yao Qi <yao.qi@linaro.org>
9262
9263 * selftest.c (run_tests): Don't call QUIT. Call debug_printf
9264 instead of exception_fprintf and printf_filtered.
9265
9266 2017-08-18 Yao Qi <yao.qi@linaro.org>
9267
9268 * selftest.c (register_self_test): Rename it to
9269 selftests::register_test.
9270 (run_self_tests): selftest::run_tests.
9271 * selftest.h: Update declarations.
9272 * selftest-arch.c (register_self_test_foreach_arch): Rename it to
9273 selftests::register_test_foreach_arch.
9274 * selftest-arch.h: Update declaration.
9275 * aarch64-tdep.c: Update.
9276 * arm-tdep.c: Likewise.
9277 * disasm-selftests.c: Likewise.
9278 * dwarf2loc.c: Likewise.
9279 * dwarf2-frame.c: Likewise.
9280 * findvar.c: Likewise.
9281 * gdbarch-selftests.c: Likewise.
9282 * maint.c (maintenance_selftest): Likewise.
9283 * regcache.c: Likewise.
9284 * rust-exp.y: Likewise.
9285 * selftest-arch.c: Likewise.
9286 * unittests/environ-selftests.c: Likewise.
9287 * unittests/function-view-selftests.c: Likewise.
9288 * unittests/offset-type-selftests.c: Likewise.
9289 * unittests/optional-selftests.c: Likewise.
9290 * unittests/scoped_restore-selftests.c: Likewise.
9291 * utils-selftests.c: Likewise.
9292
9293 2017-08-17 Pedro Alves <palves@redhat.com>
9294
9295 * cli/cli-cmds.c (source_command): Delete 'old_source_verbose'
9296 local.
9297
9298 2017-08-17 Pedro Alves <palves@redhat.com>
9299
9300 * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New
9301 field.
9302 (reset_die_in_process): Delete, replaced by ...
9303 (process_die_scope): ... this new class. Make it responsible for
9304 freeing cu->line_header too.
9305 (process_die): Use process_die_scope.
9306 (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in
9307 cu->line_header_die_owner. Don't release the line header if it's
9308 owned by the CU.
9309 (setup_type_unit_groups): Make the CU/DIE own the line header.
9310 Don't release the line header here.
9311
9312 2017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change)
9313
9314 * elfread.c (elf_read_minimal_symbols): xfree synthsyms.
9315
9316 2017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com>
9317
9318 * NEWS: Mention new shortcuts for nexti and stepi in TUI
9319 Single-Key mode
9320
9321 2017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com>
9322
9323 * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key
9324 mode command list.
9325
9326 2017-08-15 Stafford Horne <shorne@gmail.com>
9327
9328 * MAINTAINERS (Write After Approval): Add Stafford Horne.
9329
9330 2017-08-15 Stafford Horne <shorne@gmail.com>
9331
9332 * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname.
9333
9334 2017-08-15 Sergio Durigan Junior <sergiodj@redhat.com>
9335
9336 PR gdb/21954
9337 * infcmd.c (unset_environment_command): Use the 'clear' method on
9338 the environment instead of resetting it.
9339
9340 2017-08-15 John Baldwin <jhb@FreeBSD.org>
9341
9342 * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian
9343 platforms.
9344
9345 2017-08-14 Tom Tromey <tom@tromey.com>
9346
9347 * valprint.c (print_octal_chars): Use HOST_CHAR_BIT.
9348 (print_binary_chars): Likewise.
9349 (BITS_IN_BYTES): Remove.
9350
9351 2017-08-14 Tom Tromey <tom@tromey.com>
9352
9353 PR gdb/21675
9354 * valprint.c (LOW_ZERO): Change value to 034.
9355 (print_octal_chars): Add static_asserts for octal constants.
9356 * printcmd.c (print_scalar_formatted): Add 'd' case.
9357
9358 2017-08-11 Tom Tromey <tom@tromey.com>
9359
9360 * symfile.c (add_symbol_file_command): Use std::vector.
9361
9362 2017-08-14 Tom Tromey <tom@tromey.com>
9363
9364 * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move.
9365 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
9366 std::move.
9367 * break-catch-sig.c (create_signal_catchpoint): Use std::move.
9368
9369 2017-08-11 Pedro Alves <palves@redhat.com>
9370
9371 * infrun.c (process_event_stop_test): Adjust
9372 function_name_is_marked_for_skip call.
9373 * skip.c: Include <list>.
9374 (skiplist_entry): Make it a class with private fields, and
9375 getters/setters.
9376 (skiplist_entry_chain): Delete.
9377 (skiplist_entries): New.
9378 (skiplist_entry_count): Delete.
9379 (highest_skiplist_entry_num): New.
9380 (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete.
9381 (add_skiplist_entry): Delete.
9382 (skiplist_entry::skiplist_entry): New.
9383 (skiplist_entry::add_entry): New.
9384 (skip_file_command, skip_function): Adjust.
9385 (compile_skip_regexp): Delete.
9386 (skip_command): Don't compile regexp here. Adjust to use
9387 skiplist_entry::add_entry.
9388 (skip_info): Adjust to use range-for and getters.
9389 (skip_enable_command, skip_disable_command): Adjust to use
9390 range-for and setters.
9391 (skip_delete_command): Adjust to use std::list.
9392 (add_skiplist_entry): Delete.
9393 (skip_file_p): Delete, refactored as ...
9394 (skiplist_entry::do_skip_file_p): ... this new method.
9395 (skip_gfile_p): Delete, refactored as ...
9396 (skiplist_entry::do_gskip_file_p): ... this new method.
9397 (skip_function_p, skip_rfunction_p): Delete, refactored as ...
9398 (skiplist_entry::skip_function_p): ... this new method.
9399 (function_name_is_marked_for_skip): Now returns bool, and takes
9400 the function sal by const reference. Adjust to use range-for and
9401 skiplist_entry methods.
9402 (_initialize_step_skip): Remove references to
9403 skiplist_entry_chain, skiplist_entry_count.
9404 * skip.h (function_name_is_marked_for_skip): Now returns bool, and
9405 takes the function sal by const reference.
9406
9407 2017-08-11 Yao Qi <yao.qi@linaro.org>
9408
9409 * dwarf2-frame.c (clear_pointer_cleanup): Remove.
9410 (dwarf2_frame_cache): Remove reset_cache_cleanup.
9411 (dwarf2_frame_cache):
9412 * frame-unwind.c (frame_unwind_try_unwinder): Catch
9413 RETURN_MASK_ALL and set *this_case to NULL.
9414 * frame-unwind.h: Update comments.
9415
9416 2017-08-11 Yao Qi <yao.qi@linaro.org>
9417
9418 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove.
9419 (dwarf2_frame_state_copy_regs): Remove.
9420 (dwarf2_frame_state_free_regs): Remove.
9421 (dwarf2_frame_state::~dwarf2_frame_state): Remove.
9422 (dwarf2_restore_rule): Call method .alloc_regs instead of
9423 dwarf2_frame_state_alloc_regs.
9424 (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info
9425 constructor. Call std::move.
9426 (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs.
9427 (dwarf2_frame_cache): Likewise.
9428
9429 [GDB_SELF_TEST]: Include selftest.h and
9430 selftest-arch.h.
9431 [GDB_SELF_TEST] (execute_cfa_program_test): New function.
9432 (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register
9433 execute_cfa_program_test.
9434
9435 * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor,
9436 copy ctor, assignment operator, move assignment.
9437 <alloc_regs>: New method.
9438 <swap>: New method.
9439 (struct dwarf2_frame_state): Delete dtor.
9440 (dwarf2_frame_state_alloc_regs): Remove declaration.
9441 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call
9442 dwarf2_frame_state_alloc_regs, use .alloc_regs instead.
9443
9444 2017-08-11 Yao Qi <yao.qi@linaro.org>
9445
9446 * dwarf2-frame.c (dwarf2_frame_state_free): Remove.
9447 (dwarf2_frame_state::dwarf2_frame_state): New.
9448 (dwarf2_frame_state::~dwarf2_frame_state): New.
9449 (dwarf2_fetch_cfa_info): Update.
9450 (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object
9451 rather than a pointer. Update code.
9452 * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and
9453 dtor.
9454 <data_align, code_align, retaddr_column>: Change them to const.
9455 <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them
9456 to bool.
9457
9458 2017-08-11 Yao Qi <yao.qi@linaro.org>
9459
9460 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove.
9461 <loc.exp>: New field.
9462 * dwarf2-frame.c (execute_cfa_program): Update.
9463 (dwarf2_frame_prev_register): Update.
9464
9465 2017-08-10 Pedro Alves <palves@redhat.com>
9466
9467 * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define.
9468
9469 2017-08-09 John Baldwin <jhb@FreeBSD.org>
9470
9471 * fbsd-nat.c (struct fbsd_fork_info): Remove.
9472 (fbsd_pending_children): Use std::list.
9473 (fbsd_remember_child): Likewise.
9474 (fbsd_is_child_pending): Likewise.
9475 (fbsd_pending_vfork_done): Use std::forward_list.
9476 (fbsd_add_vfork_done): Likewise.
9477 (fbsd_is_vfork_done_pending): Likewise.
9478 (fbsd_next_vfork_done): Likewise.
9479
9480 2017-08-09 John Baldwin <jhb@FreeBSD.org>
9481
9482 * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New.
9483 (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr.
9484 [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string
9485 for `mapfilename'.
9486 (fbsd_xfer_partial): Use gdb::byte_vector.
9487 (fbsd_add_threads): Use gdb::unique_xmalloc_ptr.
9488
9489 2017-08-09 John Baldwin <jhb@FreeBSD.org>
9490
9491 * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and
9492 "filestuff.h".
9493 (fbsd_find_memory_regions): Fix `mapfile' initialization.
9494
9495 2017-08-09 Tom Tromey <tom@tromey.com>
9496
9497 * skip.c (skiplist_entry): New constructor.
9498 (skiplist_entry::enabled, skiplist_entry::function_is_regexp)
9499 (skiplist_entry::file_is_glob): Now bool.
9500 (skiplist_entry::file, skiplist_entry::function): Now
9501 std::string.
9502 (make_skip_entry): Return a unique_ptr. Use new.
9503 (free_skiplist_entry, free_skiplist_entry_cleanup)
9504 (make_free_skiplist_entry_cleanup): Remove.
9505 (skip_command, skip_disable_command, add_skiplist_entry)
9506 (skip_form_bytes, compile_skip_regexp, skip_command, skip_info)
9507 (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p)
9508 (function_name_is_marked_for_skip): Update.
9509 (skip_delete_command): Update. Use delete.
9510
9511 2017-08-09 Jiong Wang <jiong.wang@arm.com>
9512
9513 * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h".
9514 (aarch64_linux_core_read_description): New function.
9515 (aarch64_linux_init_abi): Register gdbarch_core_read_description.
9516
9517 2017-08-09 Pedro Alves <palves@redhat.com>
9518
9519 * cp-name-parser.y (cp_comp_to_string): Return a
9520 gdb::unique_xmalloc_ptr<char>.
9521 * cp-support.c (replace_typedefs_qualified_name)
9522 (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>.
9523 (cp_canonicalize_string_full): Use op= instead of explicit
9524 convertion.
9525 (cp_class_name_from_physname, method_name_from_physname)
9526 (cp_func_name, cp_remove_params): Adjust to use
9527 gdb::unique_xmalloc_ptr<char>.
9528 * cp-support.h (cp_comp_to_string): Return a
9529 gdb::unique_xmalloc_ptr<char>.
9530 * python/py-type.c (typy_lookup_type): Adjust to use
9531 gdb::unique_xmalloc_ptr<char>.
9532
9533 2017-08-09 H.J. Lu <hongjiu.lu@intel.com>
9534
9535 * dwarf2read.c (dwarf2_string_attr): Fix a typo.
9536
9537 2017-08-09 Alex Lindsay <alexlindsay239@gmail.com>
9538 Yao Qi <yao.qi@linaro.org>
9539
9540 * cp-support.c (cp_canonicalize_string_full): Use
9541 gdb::unique_xmalloc_ptr<char>.
9542 (cp_canonicalize_string): Likewise.
9543
9544 2017-08-09 Yao Qi <yao.qi@linaro.org>
9545
9546 * features/Makefile (WHICH): Remove i386/ non-linux stuff.
9547 * regformats/i386/amd64-avx-avx512.dat: Remove.
9548 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove.
9549 * regformats/i386/amd64-avx-mpx.dat:Remove.
9550 * regformats/i386/amd64-avx.dat: Remove.
9551 * regformats/i386/amd64-mpx.dat: Remove.
9552 * regformats/i386/i386-avx-avx512.dat: Remove.
9553 * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove.
9554 * regformats/i386/i386-avx-mpx.dat: Remove.
9555 * regformats/i386/i386-mmx.dat: Remove.
9556 * regformats/i386/i386-mpx.dat: Remove.
9557
9558 2017-08-09 Yao Qi <yao.qi@linaro.org>
9559
9560 * amd64-tdep.h (tdesc_x32): Remove the declaration.
9561 * amd64-tdep.c: Don't include features/i386/x32*.c.
9562 (_initialize_amd64_tdep): Don't call initialize_tdesc_x32*
9563 functions.
9564 * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx,
9565 and i386/x32-avx-avx512.
9566 (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml,
9567 and i386/x32.xml.
9568 * features/i386/x32-avx-avx512.c: Removed.
9569 * features/i386/x32-avx-avx512.xml: Removed.
9570 * features/i386/x32-avx.c: Removed.
9571 * features/i386/x32-avx.xml: Removed.
9572 * features/i386/x32.c: Removed.
9573 * features/i386/x32.xml: Removed.
9574 * regformats/i386/x32-avx-avx512.dat: Removed.
9575 * regformats/i386/x32-avx.dat: Removed.
9576 * regformats/i386/x32.dat: Removed.
9577
9578 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
9579
9580 PR breakpoints/21886
9581 * mem-break.c (default_memory_insert_breakpoint): Use
9582 `->placed_address' rather than `->reqstd_address' for the
9583 breakpoint location.
9584
9585 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
9586
9587 * arch-utils.c (default_print_insn): Remove arch/mach/endian
9588 assertions.
9589
9590 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
9591
9592 * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with
9593 a union of `tdep_info', `tdesc_data' and `id'.
9594 * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data'
9595 rather than `info.tdep_info'.
9596 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
9597 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
9598 * i386-tdep.c (i386_gdbarch_init): Likewise.
9599 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
9600 * mips-tdep.c (mips_gdbarch_init): Likewise.
9601 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
9602 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
9603 * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than
9604 `info.tdep_info'.
9605 (ppc_linux_init_abi): Use `info.tdesc_data' rather than
9606 `info.tdep_info'.
9607 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
9608 * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than
9609 `info.tdep_info'.
9610 * spu-tdep.c (spu_gdbarch_init): Likewise.
9611 * gdbarch.h: Regenerate.
9612
9613 2017-08-07 Leszek Swirski <leszeks@google.com>
9614
9615 PR symtab/20899
9616 * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt.
9617
9618 2017-08-07 Simon Marchi <simon.marchi@ericsson.com>
9619
9620 * remote-sim.c (gdbsim_load): Remove char **argv local variable.
9621 (gdbsim_open): Rename gdb_argv args object to argv.
9622
9623 2017-08-05 Tom Tromey <tom@tromey.com>
9624
9625 * compile/compile-object-load.c (compile_object_load): Use
9626 gdb::unique_xmalloc_ptr.
9627 * cli/cli-dump.c (scan_filename): Rename from
9628 scan_filename_with_cleanup. Change return type.
9629 (scan_expression): Rename from scan_expression_with_cleanup.
9630 Change return type.
9631 (dump_memory_to_file, dump_value_to_file, restore_command):
9632 Use gdb::unique_xmalloc_ptr. Update.
9633 * cli/cli-cmds.c (find_and_open_script): Use
9634 gdb::unique_xmalloc_ptr.
9635 * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr.
9636 * symmisc.c (maintenance_print_symbols)
9637 (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr.
9638 * symfile.c (symfile_bfd_open, generic_load)
9639 (add_symbol_file_command, remove_symbol_file_command): Use
9640 gdb::unique_xmalloc_ptr.
9641 * source.c (openp): Use gdb::unique_xmalloc_ptr.
9642 * psymtab.c (maintenance_print_psymbols): Use
9643 gdb::unique_xmalloc_ptr.
9644 * corelow.c (core_open): Use gdb::unique_xmalloc_ptr.
9645 * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr.
9646 * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr.
9647 (reload_shared_libraries_1): Likewise.
9648
9649 2017-08-05 Tom Tromey <tom@tromey.com>
9650
9651 * rust-exp.y (rust_op_ptr, set_field): Remove typedefs.
9652 (rust_op_vector, rust_set_vector): New typedefs.
9653 (current_parser): New global.
9654 (work_obstack): Change to pointer type. Update all users.
9655 (rust_ast, pstate): Remove globals.
9656 (struct rust_parser): New.
9657 (%union) <params, field_inits>: Change type.
9658 (start, tuple_expr, unit_expr, struct_expr_list, literal)
9659 (field_expr, expr_list, maybe_expr_list, type_list): Update.
9660 (ast_call_ish, ast_path, ast_function_type, ast_tuple_type)
9661 (convert_params_to_types, convert_params_to_expression): Change
9662 type of "params".
9663 (ast_string): Change type of "fields".
9664 (rust_parse): Make a rust_parser. Remove cleanups.
9665 (rust_lex_tests): Make and install an auto_obstack.
9666
9667 2017-08-04 Yao Qi <yao.qi@linaro.org>
9668
9669 * configure.srv (ipa_x32_linux_regobj): New.
9670 * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
9671 instead of X86_TDESC_AVX512.
9672 (initialize_low_tracepoint): Call
9673 init_registers_x32_avx_avx512_linux.
9674
9675 2017-08-04 Yao Qi <yao.qi@linaro.org>
9676
9677 * utils.h (gdb_argv): Add namespace std for nullptr_t.
9678
9679 2017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com>
9680
9681 * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev.
9682
9683 2017-08-03 Tom Tromey <tom@tromey.com>
9684
9685 * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv):
9686 Remove.
9687 * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove.
9688
9689 2017-08-03 Tom Tromey <tom@tromey.com>
9690
9691 * python/py-param.c (compute_enum_values): Use gdb_argv.
9692
9693 2017-08-03 Tom Tromey <tom@tromey.com>
9694
9695 * utils.h (struct gdb_argv_deleter): New.
9696 (gdb_argv): New class.
9697 * utils.c (gdb_argv::reset): New method.
9698 * tracepoint.c (delete_trace_variable_command): Use gdb_argv.
9699 * tracefile.c (tsave_command): Use gdb_argv.
9700 * top.c (new_ui_command): Use gdb_argv.
9701 * symmisc.c (maintenance_print_symbols)
9702 (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv.
9703 * symfile.c (symbol_file_command, generic_load)
9704 (remove_symbol_file_command): Use gdb_argv.
9705 * stack.c (backtrace_command): Use gdb_argv.
9706 * source.c (add_path, show_substitute_path_command)
9707 (unset_substitute_path_command, set_substitute_path_command):
9708 Use gdb_argv.
9709 * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv.
9710 * ser-mingw.c (pipe_windows_open): Use gdb_argv.
9711 * remote.c (extended_remote_run, remote_put_command)
9712 (remote_get_command, remote_delete_command): Use gdb_argv.
9713 * remote-sim.c (gdbsim_load, gdbsim_create_inferior)
9714 (gdbsim_open): Use gdb_argv.
9715 * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv.
9716 * psymtab.c (maintenance_print_psymbols): Use gdb_argv.
9717 * procfs.c (procfs_info_proc): Use gdb_argv.
9718 * interps.c (interpreter_exec_cmd): Use gdb_argv.
9719 * infrun.c (handle_command): Use gdb_argv.
9720 * inferior.c (add_inferior_command, clone_inferior_command):
9721 Use gdb_argv.
9722 * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv.
9723 * exec.c (exec_file_command): Use gdb_argv.
9724 * cli/cli-cmds.c (alias_command): Use gdb_argv.
9725 * compile/compile.c (build_argc_argv): Use gdb_argv.
9726
9727 2017-08-03 Tom Tromey <tom@tromey.com>
9728
9729 * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr.
9730
9731 2017-08-03 Tom Tromey <tom@tromey.com>
9732
9733 * python/python.c (compute_python_string): Return std::string.
9734 (gdbpy_eval_from_control_command): Update.
9735 (do_start_initialization): Use std::string.
9736 * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not
9737 xstrprintf.
9738 * python/py-breakpoint.c (local_setattro): Use string_printf, not
9739 xstrprintf.
9740
9741 2017-08-03 Tom Tromey <tom@tromey.com>
9742
9743 * top.h (do_restore_instream_cleanup): Remove.
9744 * top.c (do_restore_instream_cleanup): Remove.
9745 (read_command_file): Use scoped_restore.
9746 * cli/cli-script.c (execute_user_command): Use scoped_restore.
9747
9748 2017-08-03 Tom Tromey <tom@tromey.com>
9749
9750 * cli/cli-script.c (execute_user_command)
9751 (execute_control_command): Use scoped_restore.
9752
9753 2017-08-03 Tom Tromey <tom@tromey.com>
9754
9755 * cli/cli-script.c (do_restore_user_call_depth): Remove.
9756 (execute_user_command): Remove user_call_depth; use
9757 user_args_stack's size instead.
9758
9759 2017-08-03 Tom Tromey <tom@tromey.com>
9760
9761 * top.h (in_user_command): Remove.
9762 * top.c (in_user_command): Remove.
9763 * cli/cli-script.c (do_restore_user_call_depth)
9764 (execute_user_command): Update.
9765
9766 2017-08-03 Tom Tromey <tom@tromey.com>
9767
9768 * valops.c (search_struct_method): Use gdb::byte_vector.
9769 * valarith.c (value_concat): Use std::vector.
9770 * target.c (memory_xfer_partial): Use gdb::byte_vector.
9771 (simple_search_memory): Likewise.
9772 * printcmd.c (find_string_backward): Use gdb::byte_vector.
9773 * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector.
9774 * gcore.c (gcore_copy_callback): Use gdb::byte_vector.
9775 * elfread.c (elf_rel_plt_read): Use std::string.
9776 * cp-valprint.c (cp_print_value): Use gdb::byte_vector.
9777 * cli/cli-dump.c (restore_section_callback): Use
9778 gdb::byte_vector.
9779
9780 2017-08-03 Tom Tromey <tom@tromey.com>
9781
9782 * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr.
9783
9784 2017-08-03 Tom Tromey <tom@tromey.com>
9785
9786 * tui/tui-regs.c (tui_restore_gdbout): Remove.
9787 (tui_register_format): Use scoped_restore.
9788
9789 2017-08-03 Tom Tromey <tom@tromey.com>
9790
9791 * reverse.c (exec_direction_default): Remove.
9792 (exec_reverse_once): Use scoped_restore.
9793 * remote.c (restore_remote_timeout): Remove.
9794 (remote_flash_erase, remote_flash_write, remote_flash_done)
9795 (readchar, remote_serial_write): Use scoped_restore.
9796 * cli/cli-script.c (struct source_cleanup_lines_args)
9797 (source_cleanup_lines): Remove.
9798 (script_from_file): Use scoped_restore.
9799 * cli/cli-cmds.c (source_verbose_cleanup): Remove.
9800 (source_command): Use scoped_restore.
9801
9802 2017-08-03 Tom Tromey <tom@tromey.com>
9803
9804 * utils.h (make_cleanup_free_so): Remove.
9805 * utils.c (do_free_so, make_cleanup_free_so): Remove.
9806 * solist.h (struct so_deleter): New.
9807 (so_list_up): New typedef.
9808 * solib-svr4.c (svr4_read_so_list): Use so_list_up.
9809
9810 2017-08-03 Tom Tromey <tom@tromey.com>
9811
9812 * utils.h (make_cleanup_restore_current_language): Remove.
9813 * utils.c (do_restore_current_language)
9814 (make_cleanup_restore_current_language): Remove.
9815 * parse.c (parse_exp_in_context_1)
9816 (parse_expression_with_language): Use
9817 scoped_restore_current_language.
9818 * mi/mi-main.c (mi_cmd_execute): Use
9819 scoped_restore_current_language.
9820 * language.h (scoped_restore_current_language): New class.
9821
9822 2017-08-03 Tom Tromey <tom@tromey.com>
9823
9824 * compile/compile.c (cleanup_unlink_file): Remove.
9825 (compile_to_object): Use gdb::unlinker.
9826 (eval_compile_command): Likewise.
9827
9828 2017-08-03 Tom Tromey <tom@tromey.com>
9829
9830 * utils.h (make_cleanup_fclose): Remove.
9831 * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove.
9832
9833 2017-08-03 Tom Tromey <tom@tromey.com>
9834
9835 * top.c (open_terminal_stream): Return gdb_file_up.
9836 (new_ui_command): Update.
9837
9838 2017-08-03 Tom Tromey <tom@tromey.com>
9839
9840 * source.c (print_source_lines_base, forward_search_command)
9841 (reverse_search_command): Use gdb_file_up.
9842
9843 2017-08-03 Tom Tromey <tom@tromey.com>
9844
9845 * fbsd-nat.c (fbsd_find_memory_regions): Update.
9846
9847 2017-08-03 Tom Tromey <tom@tromey.com>
9848
9849 * cli/cli-cmds.c (find_and_open_script): Change return type.
9850 Remove "streamp" and "full_path" parameters.
9851 (source_script_with_search): Update.
9852 * auto-load.c (source_script_file): Update.
9853 * cli/cli-cmds.h (find_and_open_script): Change type.
9854 (open_script): New struct.
9855
9856 2017-08-03 Tom Tromey <tom@tromey.com>
9857
9858 * xml-support.c (xml_fetch_content_from_file): Update.
9859 * ui-file.c (stdio_file::open): Update.
9860 * tracefile-tfile.c (tfile_start): Update.
9861 * remote.c (remote_file_put, remote_file_get): Update.
9862 * nat/linux-procfs.c (linux_proc_get_int)
9863 (linux_proc_pid_get_state, linux_proc_tid_get_name): Update.
9864 * nat/linux-osdata.c (linux_common_core_of_thread): Update.
9865 (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus)
9866 (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem)
9867 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update.
9868 * nat/linux-btrace.c (linux_determine_kernel_start): Update.
9869 * linux-nat.c (linux_proc_pending_signals): Update.
9870 * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up.
9871 (file_closer): Remove.
9872 * compile/compile.c (compile_to_object): Update.
9873 * common/filestuff.h (struct gdb_file_deleter): New.
9874 (gdb_file_up): New typedef.
9875 (gdb_fopen_cloexec): Change return type.
9876 * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up.
9877 * cli/cli-dump.c (fopen_with_cleanup): Remove.
9878 (dump_binary_file, restore_binary_file): Update.
9879 * auto-load.c (auto_load_objfile_script_1): Update.
9880
9881 2017-08-03 Tom Tromey <tom@tromey.com>
9882
9883 * tracepoint.c (tvariables_info_1): Use ui_out_emit_table.
9884 (info_static_tracepoint_markers_command): Likewise.
9885 * solib.c (info_sharedlibrary_command): Use ui_out_emit_table.
9886 * skip.c (skip_info): Use ui_out_emit_table.
9887 * progspace.c (print_program_space): Use ui_out_emit_table.
9888 * osdata.c (info_osdata): Use ui_out_emit_table.
9889 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use
9890 ui_out_emit_table.
9891 * linux-thread-db.c (info_auto_load_libthread_db): Use
9892 ui_out_emit_table.
9893 * inferior.c (print_inferior): Use ui_out_emit_table.
9894 * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table.
9895 * breakpoint.c (breakpoint_1): Use ui_out_emit_table.
9896 * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table.
9897 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table.
9898 * ui-out.h (class ui_out_emit_table): New.
9899
9900 2017-08-02 Maciej W. Rozycki <macro@imgtec.com>
9901
9902 * mips-tdep.c (mips_fpu_type_str): New function.
9903 (mips_dump_tdep): Call it.
9904
9905 2017-08-01 Maciej W. Rozycki <macro@imgtec.com>
9906
9907 * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access
9908 `->mips_fpu_type'.
9909
9910 2017-07-31 Xavier Roirand <roirand@adacore.com>
9911
9912 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
9913
9914 2017-07-27 Xavier Roirand <roirand@adacore.com>
9915
9916 * MAINTAINERS (Write After Approval): Add Xavier Roirand.
9917
9918 2017-07-26 Yao Qi <yao.qi@linaro.org>
9919
9920 * cli/cli-cmds.c (maintenancechecklist): New variable.
9921 * gdbcmd.h (maintenancechecklist): Declare it.
9922 * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]:
9923 Call i386_linux_read_description with different masks.
9924 * maint.c (maintenance_check_command): New function.
9925 (_initialize_maint_cmds): Call add_prefix_cmd.
9926 * target-descriptions.c (tdesc_reg): override operator != and ==.
9927 (tdesc_type): Likewise.
9928 (tdesc_feature): Likewise.
9929 (target_desc): Likewise.
9930 [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function.
9931 (maintenance_check_xml_descriptions): New function.
9932 (_initialize_target_descriptions) Add command "xml-descriptions".
9933 * target-descriptions.h (selftests::record_xml_tdesc): Declare.
9934
9935 2017-07-26 Yao Qi <yao.qi@linaro.org>
9936
9937 * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c.
9938 Include features/i386/32bit-*.c.
9939 (i386_linux_read_description): Generate target description if it
9940 doesn't exist.
9941 (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386
9942 functions.
9943 * features/i386/32bit-linux.c: Re-generated.
9944 * features/i386/32bit-sse.c: Likewise.
9945 * target-descriptions.c (print_c_feature::visit): Print code to
9946 set register number if needed.
9947 (print_c_feature) <m_next_regnum>: New field.
9948
9949 2017-07-26 Yao Qi <yao.qi@linaro.org>
9950
9951 * features/Makefile (CFILES): Rename with TDESC_CFILES.
9952 (FEATURE_XMLFILES): New.
9953 (FEATURE_CFILES): New.
9954 New rules.
9955 (clean-cfiles): Remove generated c files.
9956 * features/i386/32bit-avx.c: Generated.
9957 * features/i386/32bit-avx512.c: Generated.
9958 * features/i386/32bit-core.c: Generated.
9959 * features/i386/32bit-linux.c: Generated.
9960 * features/i386/32bit-mpx.c: Generated.
9961 * features/i386/32bit-pkeys.c: Generated.
9962 * features/i386/32bit-sse.c: Generated.
9963 * target-descriptions.c: Include algorithm.
9964 (tdesc_element_visitor): Add method visit_end.
9965 (print_c_tdesc): Implement visit_end.
9966 (print_c_tdesc:: m_filename_after_features): Move it to
9967 protected.
9968 (print_c_feature): New class.
9969 (maint_print_c_tdesc_cmd): Use print_c_feature if XML file
9970 name starts with "i386/32bit-".
9971
9972 2017-07-26 Yao Qi <yao.qi@linaro.org>
9973
9974 * target-descriptions.c (tdesc_element_visitor): New class.
9975 (tdesc_element): New class.
9976 (tdesc_reg): Inherit from tdesc_element.
9977 (tdesc_reg::accept): New function.
9978 (tdesc_type): Inherit from tdesc_element.
9979 (tdesc_type::accept): New function.
9980 (tdesc_feature): Inherit from tdesc_element.
9981 (tdesc_feature::accept): New function.
9982 (target_desc): Inherit from tdesc_element.
9983 (target_desc::target_desc): New.
9984 (target_desc::~target_desc): New.
9985 (target_desc::accept): New.
9986 (allocate_target_description): Use new.
9987 (free_target_description): Use delete.
9988 (print_c_tdesc): New class.
9989 (maint_print_c_tdesc_cmd): Adjust.
9990
9991 * features/aarch64.c: Re-generated.
9992 * features/arc-arcompact.c: Re-generated.
9993 * features/arc-v2.c: Re-generated.
9994 * features/arm/arm-with-iwmmxt.c: Re-generated.
9995 * features/arm/arm-with-m.c: Re-generated.
9996 * features/arm/arm-with-m-fpa-layout.c: Re-generated.
9997 * features/arm/arm-with-m-vfp-d16.c: Re-generated.
9998 * features/arm/arm-with-neon.c: Re-generated.
9999 * features/arm/arm-with-vfpv2.c: Re-generated.
10000 * features/arm/arm-with-vfpv3.c: Re-generated.
10001 * features/i386/amd64-avx-avx512.c: Re-generated.
10002 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
10003 * features/i386/amd64-avx.c: Re-generated.
10004 * features/i386/amd64-avx-linux.c: Re-generated.
10005 * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated.
10006 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
10007 * features/i386/amd64-avx-mpx.c: Re-generated.
10008 * features/i386/amd64-avx-mpx-linux.c: Re-generated.
10009 * features/i386/amd64.c: Re-generated.
10010 * features/i386/amd64-linux.c: Re-generated.
10011 * features/i386/amd64-mpx.c: Re-generated.
10012 * features/i386/amd64-mpx-linux.c: Re-generated.
10013 * features/i386/i386-avx-avx512.c: Re-generated.
10014 * features/i386/i386-avx-avx512-linux.c: Re-generated.
10015 * features/i386/i386-avx.c: Re-generated.
10016 * features/i386/i386-avx-linux.c: Re-generated.
10017 * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated.
10018 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated.
10019 * features/i386/i386-avx-mpx.c: Re-generated.
10020 * features/i386/i386-avx-mpx-linux.c: Re-generated.
10021 * features/i386/i386.c: Re-generated.
10022 * features/i386/i386-linux.c: Re-generated.
10023 * features/i386/i386-mmx.c: Re-generated.
10024 * features/i386/i386-mmx-linux.c: Re-generated.
10025 * features/i386/i386-mpx.c: Re-generated.
10026 * features/i386/i386-mpx-linux.c: Re-generated.
10027 * features/i386/x32-avx-avx512.c: Re-generated.
10028 * features/i386/x32-avx-avx512-linux.c: Re-generated.
10029 * features/i386/x32-avx.c: Re-generated.
10030 * features/i386/x32-avx-linux.c: Re-generated.
10031 * features/i386/x32.c: Re-generated.
10032 * features/i386/x32-linux.c: Re-generated.
10033 * features/microblaze.c: Re-generated.
10034 * features/microblaze-with-stack-protect.c: Re-generated.
10035 * features/mips64-dsp-linux.c: Re-generated.
10036 * features/mips64-linux.c: Re-generated.
10037 * features/mips-dsp-linux.c: Re-generated.
10038 * features/mips-linux.c: Re-generated.
10039 * features/nds32.c: Re-generated.
10040 * features/nios2.c: Re-generated.
10041 * features/nios2-linux.c: Re-generated.
10042 * features/rs6000/powerpc-32.c: Re-generated.
10043 * features/rs6000/powerpc-32l.c: Re-generated.
10044 * features/rs6000/powerpc-403.c: Re-generated.
10045 * features/rs6000/powerpc-403gc.c : Re-generated.
10046 * features/rs6000/powerpc-405.c: Re-generated.
10047 * features/rs6000/powerpc-505.c: Re-generated.
10048 * features/rs6000/powerpc-601.c: Re-generated.
10049 * features/rs6000/powerpc-602.c: Re-generated.
10050 * features/rs6000/powerpc-603.c: Re-generated.
10051 * features/rs6000/powerpc-604.c: Re-generated.
10052 * features/rs6000/powerpc-64.c: Re-generated.
10053 * features/rs6000/powerpc-64l.c: Re-generated.
10054 * features/rs6000/powerpc-7400.c: Re-generated.
10055 * features/rs6000/powerpc-750.c: Re-generated.
10056 * features/rs6000/powerpc-860.c: Re-generated.
10057 * features/rs6000/powerpc-altivec32.c: Re-generated.
10058 * features/rs6000/powerpc-altivec32l.c: Re-generated.
10059 * features/rs6000/powerpc-altivec64.c: Re-generated.
10060 * features/rs6000/powerpc-altivec64l.c: Re-generated.
10061 * features/rs6000/powerpc-cell32l.c: Re-generated.
10062 * features/rs6000/powerpc-cell64l.c: Re-generated.
10063 * features/rs6000/powerpc-e500.c: Re-generated.
10064 * features/rs6000/powerpc-e500l.c: Re-generated.
10065 * features/rs6000/powerpc-isa205-32l.c: Re-generated.
10066 * features/rs6000/powerpc-isa205-64l.c: Re-generated.
10067 * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated.
10068 * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated.
10069 * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated.
10070 * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated.
10071 * features/rs6000/powerpc-vsx32.c: Re-generated.
10072 * features/rs6000/powerpc-vsx32l.c: Re-generated.
10073 * features/rs6000/powerpc-vsx64.c: Re-generated.
10074 * features/rs6000/powerpc-vsx64l.c: Re-generated.
10075 * features/rs6000/rs6000.c: Re-generated.
10076 * features/s390-linux32.c: Re-generated.
10077 * features/s390-linux32v1.c: Re-generated.
10078 * features/s390-linux32v2.c: Re-generated.
10079 * features/s390-linux64.c: Re-generated.
10080 * features/s390-linux64v1.c: Re-generated.
10081 * features/s390-linux64v2.c: Re-generated.
10082 * features/s390-te-linux64.c: Re-generated.
10083 * features/s390-tevx-linux64.c: Re-generated.
10084 * features/s390-vx-linux64.c: Re-generated.
10085 * features/s390x-linux64.c: Re-generated.
10086 * features/s390x-linux64v1.c: Re-generated.
10087 * features/s390x-linux64v2.c: Re-generated.
10088 * features/s390x-te-linux64.c: Re-generated.
10089 * features/s390x-tevx-linux64.c: Re-generated.
10090 * features/s390x-vx-linux64.c: Re-generated.
10091 * features/sparc/sparc32-solaris.c: Re-generated.
10092 * features/sparc/sparc64-solaris.c: Re-generated.
10093 * features/tic6x-c62x.c: Re-generated.
10094 * features/tic6x-c62x-linux.c: Re-generated.
10095 * features/tic6x-c64x.c: Re-generated.
10096 * features/tic6x-c64x-linux.c: Re-generated.
10097 * features/tic6x-c64xp.c: Re-generated.
10098 * features/tic6x-c64xp-linux.c: Re-generated.
10099
10100 2017-07-26 Yao Qi <yao.qi@linaro.org>
10101
10102 * i386-linux-tdep.c (i386_linux_read_description): New function.
10103 (i386_linux_core_read_description): Call
10104 i386_linux_read_description.
10105 * i386-linux-tdep.h (i386_linux_read_description): Declare.
10106 (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations.
10107 (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise
10108 (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise.
10109 (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise.
10110 * x86-linux-nat.c (x86_linux_read_description): Call
10111 i386_linux_read_description.
10112
10113 2017-07-26 Yao Qi <yao.qi@linaro.org>
10114
10115 * NEWS: Mention it.
10116 * features/Makefile (%.c: %.xml): Pass the xml file name to
10117 command "maint print c-tdesc".
10118 * target-descriptions.c (maint_print_c_tdesc_cmd): Get file
10119 name from 'arg'.
10120
10121 2017-07-26 Yao Qi <yao.qi@linaro.org>
10122
10123 * target-descriptions.c (target_desc): Add ctor and dtor. Do
10124 in-class initialization.
10125 (tdesc_create_feature): Call new instead of XCNEW.
10126 (free_target_description): Ue delete.
10127
10128 2017-07-25 John Baldwin <jhb@FreeBSD.org>
10129
10130 * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo.
10131
10132 2017-07-25 Yao Qi <yao.qi@linaro.org>
10133
10134 * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc
10135 constant.
10136 (amd64_x32_init_abi): Likewise.
10137 * amd64-tdep.h (amd64_init_abi): Update declaration.
10138 (amd64_x32_init_abi): Likewise.
10139
10140 2017-07-25 Yao Qi <yao.qi@linaro.org>
10141
10142 PR tdep/21717
10143 * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update
10144 condition for FPSCR.
10145 (arm_linux_store_inferior_registers): Likewise.
10146
10147 2017-07-22 Tom Tromey <tom@tromey.com>
10148
10149 * break-catch-syscall.c (struct catch_syscall_inferior_data)
10150 <syscalls_counts>: Now a std::vector.
10151 (get_catch_syscall_inferior_data): Use "new".
10152 (catch_syscall_inferior_data_cleanup): Use "delete".
10153 (insert_catch_syscall, remove_catch_syscall)
10154 (clear_syscall_counts): Update.
10155
10156 2017-07-22 Tom Tromey <tom@tromey.com>
10157
10158 * break-catch-syscall.c (syscall_catchpoint)
10159 <syscalls_to_be_caught>: Now a std::vector<int>
10160 (~syscall_catchpoint): Remove.
10161 (insert_catch_syscall, remove_catch_syscall)
10162 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
10163 (print_mention_catch_syscall, print_recreate_catch_syscall):
10164 Update.
10165 (create_syscall_event_catchpoint): Change type of "filter"
10166 parameter.
10167 (catch_syscall_split_args): Return a std::vector.
10168 (catch_syscall_command_1, catching_syscall_number_1): Update.
10169
10170 2017-07-22 Tom Tromey <tom@tromey.com>
10171
10172 * break-catch-throw.c (struct exception_catchpoint)
10173 <exception_rx>: Now a std::string.
10174 (~exception_catchpoint): Remove.
10175 (print_one_detail_exception_catchpoint): Update.
10176 (handle_gnu_v3_exceptions): Change type of except_rx.
10177 (extract_exception_regexp): Return a std::string.
10178 (catch_exception_command_1): Update.
10179
10180 2017-07-22 Tom Tromey <tom@tromey.com>
10181
10182 * break-catch-sig.c (gdb_signal_type): Remove typedef.
10183 (struct signal_catchpoint) <signals_to_be_caught>: Now a
10184 std::vector.
10185 <catch_all>: Now a bool.
10186 (~signal_catchpoint): Remove.
10187 (signal_catchpoint_insert_location)
10188 (signal_catchpoint_remove_location)
10189 (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one)
10190 (signal_catchpoint_print_mention)
10191 (signal_catchpoint_print_recreate)
10192 (signal_catchpoint_explains_signal): Update.
10193 (create_signal_catchpoint): Change type of "filter" and
10194 "catch_all".
10195 (catch_signal_split_args): Return a std::vector. Change type of
10196 "catch_all".
10197 (catch_signal_command): Update.
10198
10199 2017-07-20 Pedro Alves <palves@redhat.com>
10200
10201 * ada-lang.c (ada_language_defn): Make extern.
10202 (_initialize_ada_language): Remove add_language call.
10203 * c-lang.c (c_language_defn, cplus_language_defn)
10204 (asm_language_defn, minimal_language_defn): Make extern.
10205 (_initialize_c_language): Delete.
10206 * completer.c (compare_cstrings): Delete, moved to utils.h.
10207 * d-lang.c (d_language_defn): Make extern.
10208 (_initialize_d_language): Remove add_language calls.
10209 * defs.h (enum language): Add comment.
10210 * f-lang.c (f_language_defn): Make extern.
10211 (_initialize_f_language): Remove add_language call.
10212 * go-lang.c (go_language_defn): Make extern.
10213 (_initialize_go_language): Remove add_language call.
10214 * language.c: Include <algorithm>.
10215 (languages): Redefine as const array.
10216 (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete.
10217 (set_language_command): Handle "local". Use for-range loop.
10218 (set_language): Remove loop.
10219 (language_enum): Rewrite.
10220 (language_def, language_str): Remove loops.
10221 (add_language): Delete.
10222 (add_set_language_command): New, based on add_languages.
10223 (skip_language_trampoline): Adjust.
10224 (local_language_defn): Delete.
10225 (language_gdbarch_post_init): Adjust.
10226 (_initialize_language): Remove add_language calls. Call
10227 add_set_language_command.
10228 * language.h (add_language): Delete.
10229 (auto_language_defn)
10230 (unknown_language_defn, minimal_language_defn, ada_language_defn)
10231 (asm_language_defn, c_language_defn, cplus_language_defn)
10232 (d_language_defn, f_language_defn, go_language_defn)
10233 (m2_language_defn, objc_language_defn, opencl_language_defn)
10234 (pascal_language_defn, rust_language_defn): Declare.
10235 * m2-lang.c (m2_language_defn): Make extern.
10236 (_initialize_m2_language): Remove add_language call.
10237 * objc-lang.c (objc_language_defn): Make extern.
10238 (_initialize_objc_language): Remove add_language call.
10239 * opencl-lang.c (opencl_language_defn): Make extern.
10240 (_initialize_opencl_language): Remove add_language call.
10241 * p-lang.c (pascal_language_defn): Make extern.
10242 (_initialize_pascal_language): Delete.
10243 * rust-lang.c (rust_language_defn): Make extern.
10244 (_initialize_rust_language): Delete.
10245 * utils.h (compare_cstrings): New static inline function.
10246
10247 2017-07-20 Pedro Alves <palves@redhat.com>
10248
10249 * ada-lang.c (ada_to_fixed_type_1): Adjust.
10250 (get_var_value): Constify parameters.
10251 (get_int_var_value): Change prototype.
10252 (to_fixed_range_type): Adjust.
10253 * ada-lang.h (get_int_var_value): Change prototype.
10254
10255 2017-07-20 Pedro Alves <palves@redhat.com>
10256
10257 * dwarf2read.c (dw2_lookup_symbol): Use
10258 SYMBOL_MATCHES_SEARCH_NAME.
10259 * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME.
10260
10261 2017-07-20 Pedro Alves <palves@redhat.com>
10262
10263 * block.c (block_iter_name_step, block_iter_name_first)
10264 (block_iter_name_next): Delete.
10265 (block_lookup_symbol_primary): Adjust to use
10266 dict_iter_match_first/dict_iter_match_next.
10267 * block.h (block_iter_name_first, block_iter_name_next): Delete
10268 declarations.
10269 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use
10270 dict_iter_match_first/dict_iter_match_next.
10271
10272 2017-07-20 Pedro Alves <palves@redhat.com>
10273
10274 * cp-support.c (cp_find_first_component_aux): Add missing case for
10275 end of string.
10276
10277 2017-07-18 David Blaikie <dblaikie@gmail.com>
10278
10279 * dwarf2read.c (create_cus_hash_table): Re-add lost initialization
10280 of dwo_cu's dwo_file.
10281
10282 2017-07-18 Yao Qi <yao.qi@linaro.org>
10283
10284 * remote.c (store_registers_using_G): Remove one line comment.
10285
10286 2017-07-18 Yao Qi <yao.qi@linaro.org>
10287
10288 * regcache.c (regcache_cpy): Simplify it.
10289 (regcache::cpy_no_passthrough): Remove it.
10290 * regcache.h (cpy_no_passthrough): Remove it.
10291 (regcache_dup, regcache_cpy): Update comments.
10292
10293 2017-07-18 Pedro Alves <palves@redhat.com>
10294
10295 * remote-sim.c (sim_command_completer): Adjust to work with a
10296 completion_tracker instead of a VEC.
10297
10298 2017-07-17 Pedro Alves <palves@redhat.com>
10299
10300 * completer.c (complete_source_filenames): New function.
10301 (complete_address_and_linespec_locations): New function.
10302 (location_completer): Use complete_address_and_linespec_locations.
10303 (completion_tracker::build_completion_result): Honor the tracker's
10304 request to suppress append.
10305 * completer.h (completion_tracker::suppress_append_ws)
10306 (completion_tracker::set_suppress_append_ws): New methods.
10307 (completion_tracker::m_suppress_append_ws): New field.
10308 (complete_source_filenames): New declaration.
10309 * linespec.c (linespec_complete_what): New.
10310 (struct ls_parser) <complete_what, completion_word,
10311 completion_quote_char, completion_quote_end, completion_tracker>:
10312 New fields.
10313 (string_find_incomplete_keyword_at_end): New.
10314 (linespec_lexer_lex_string): Record quote char. If in completion
10315 mode, don't throw.
10316 (linespec_lexer_consume_token): Advance the completion word point.
10317 (linespec_lexer_peek_token): Save/restore completion info.
10318 (save_stream_and_consume_token): New.
10319 (set_completion_after_number): New.
10320 (linespec_parse_basic): Set what to complete next depending on
10321 token. Handle function and label completions specially.
10322 (parse_linespec): Disable objc shortcut in completion mode. Set
10323 what to complete next depending on token type. Skip keyword if in
10324 completion mode.
10325 (complete_linespec_component, linespec_complete): New.
10326 * linespec.h (linespec_complete): Declare.
10327
10328 2017-07-17 Pedro Alves <palves@redhat.com>
10329
10330 * linespec.c (linespec_lexer_lex_string, find_toplevel_char):
10331 Handle 'operator<' / 'operator<<'.
10332
10333 2017-07-17 Pedro Alves <palves@redhat.com>
10334
10335 * completer.c (collect_explicit_location_matches): Handle
10336 MATCH_LABEL.
10337 (convert_explicit_location_to_linespec): New, factored out from
10338 ...
10339 (convert_explicit_location_to_sals): ... this.
10340 (complete_label): New.
10341 (linespec_complete_label, find_label_symbols_in_block): New.
10342 (find_label_symbols): Add completion_mode parameter and adjust to
10343 call find_label_symbols_in_block.
10344 * linespec.h (linespec_complete_label): Declare.
10345
10346 2017-07-17 Pedro Alves <palves@redhat.com>
10347
10348 * ada-lang.c (ada_collect_symbol_completion_matches): Add
10349 complete_symbol_mode parameter.
10350 * cli/cli-cmds.c (complete_command): Get the completion result out
10351 of the handle_brkchars tracker if used a custom word point.
10352 * completer.c: Include "linespec.h".
10353 (enum explicit_location_match_type) <MATCH_LINE>: New enumerator.
10354 (advance_to_expression_complete_word_point): New.
10355 (completion_tracker::completes_to_completion_word): New.
10356 (complete_files_symbols): Pass down
10357 complete_symbol_mode::EXPRESSION.
10358 (explicit_options, probe_options): New.
10359 (collect_explicit_location_matches): Complete on the
10360 explictit_loc->foo instead of word. Use
10361 linespec_complete_function. Handle MATCH_LINE. Handle offering
10362 keyword and options completions.
10363 (backup_text_ptr): Delete.
10364 (skip_keyword): New.
10365 (complete_explicit_location): Remove 'word' parameter. Add
10366 language, quoted_arg_start and quoted_arg_end parameters.
10367 Rewrite, parsing left to right.
10368 (location_completer): Rewrite.
10369 (location_completer_handle_brkchars): New function.
10370 (symbol_completer): Pass down complete_symbol_mode::EXPRESSION.
10371 (enum complete_line_internal_reason): Adjust comments.
10372 (completion_tracker::discard_completions): New.
10373 (completer_handle_brkchars_func_for_completer): Handle
10374 location_completer.
10375 (gdb_custom_word_point_brkchars)
10376 (gdb_org_rl_basic_quote_characters): New.
10377 (gdb_completion_word_break_characters_throw)
10378 (completion_find_completion_word): Handle trackers that use a
10379 custom word point.
10380 (completion_tracker::advance_custom_word_point_by): New.
10381 (completion_tracker::build_completion_result): Don't rely on
10382 readline appending the quote char.
10383 (gdb_rl_attempted_completion_function_throw): Handle trackers that
10384 use a custom word point.
10385 (gdb_rl_attempted_completion_function): Restore
10386 rl_basic_quote_characters.
10387 * completer.h (class completion_tracker): Extend intro comment.
10388 (completion_tracker::set_quote_char)
10389 (completion_tracker::quote_char)
10390 (completion_tracker::set_use_custom_word_point)
10391 (completion_tracker::use_custom_word_point)
10392 (completion_tracker::custom_word_point)
10393 (completion_tracker::set_custom_word_point)
10394 (completion_tracker::advance_custom_word_point_by)
10395 (completion_tracker::completes_to_completion_word)
10396 (completion_tracker::discard_completions): New methods.
10397 (completion_tracker::m_quote_char)
10398 (completion_tracker::m_use_custom_word_point)
10399 (completion_tracker::m_custom_word_point): New fields.
10400 (advance_to_expression_complete_word_point): Declare.
10401 * f-lang.c (f_collect_symbol_completion_matches): Add
10402 complete_symbol_mode parameter.
10403 * language.h (struct language_defn)
10404 <la_collect_symbol_completion_matches>: Add complete_symbol_mode
10405 parameter.
10406 * linespec.c (linespec_keywords): Add NULL terminator. Make extern.
10407 (linespec_complete_function): New function.
10408 (linespec_lexer_lex_keyword): Adjust.
10409 * linespec.h (linespec_keywords, linespec_complete_function): New
10410 declarations.
10411 * location.c (find_end_quote): New function.
10412 (explicit_location_lex_one): Add explicit_completion_info
10413 parameter. Save quoting info. Don't throw if being called for
10414 completion. Don't handle Ada operators here.
10415 (is_cp_operator, skip_op_false_positives, first_of)
10416 (explicit_location_lex_one_function): New function.
10417 (string_to_explicit_location): Replace 'dont_throw' parameter with
10418 an explicit_completion_info pointer parameter. Handle it. Don't
10419 use explicit_location_lex_one to lex function names. Use
10420 explicit_location_lex_one_function instead.
10421 * location.h (struct explicit_completion_info): New.
10422 (string_to_explicit_location): Replace 'dont_throw' parameter with
10423 an explicit_completion_info pointer parameter.
10424 * symtab.c (default_collect_symbol_completion_matches_break_on):
10425 Add complete_symbol_mode parameter. Handle LINESPEC mode.
10426 (default_collect_symbol_completion_matches)
10427 (collect_symbol_completion_matches): Add complete_symbol_mode
10428 parameter.
10429 (collect_symbol_completion_matches_type): Pass down
10430 complete_symbol_mode::EXPRESSION.
10431 (collect_file_symbol_completion_matches): Add complete_symbol_mode
10432 parameter. Handle LINESPEC mode.
10433 * symtab.h (complete_symbol_mode): New.
10434 (default_collect_symbol_completion_matches_break_on)
10435 (default_collect_symbol_completion_matches)
10436 (collect_symbol_completion_matches)
10437 (collect_file_symbol_completion_matches): Add complete_symbol_mode
10438 parameter.
10439
10440 2017-07-17 Pedro Alves <palves@redhat.com>
10441
10442 * utils.c (enum class strncmp_iw_mode): New.
10443 (strcmp_iw): Rename to ...
10444 (strncmp_iw_with_mode): ... this. Add string2_len and mode
10445 parameters. Handle them.
10446 (strncmp_iw): New.
10447 (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode.
10448 * utils.h (strncmp_iw): Declare.
10449 (strcmp_iw): Move describing comments here.
10450
10451 2017-07-17 Pedro Alves <palves@redhat.com>
10452
10453 * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and
10454 CP_OPERATOR_STR.
10455 * c-typeprint.c (is_type_conversion_operator): Use
10456 CP_OPERATOR_STR.
10457 * cp-support.c (LENGTH_OF_OPERATOR): Delete.
10458 (cp_find_first_component_aux): Use CP_OPERATOR_STR and
10459 CP_OPERATOR_LEN.
10460 * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New.
10461 * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR.
10462 * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR.
10463 * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and
10464 CP_OPERATOR_STR.
10465 * location.c: Include "cp-support.h".
10466 (explicit_location_lex_one): Use CP_OPERATOR_LEN and
10467 CP_OPERATOR_STR.
10468 * symtab.c (operator_chars): Use CP_OPERATOR_STR and
10469 CP_OPERATOR_LEN.
10470
10471 2017-07-17 Pedro Alves <palves@redhat.com>
10472
10473 * cli/cli-cmds.c (complete_command): Use a completion tracker
10474 along with completion_find_completion_word for handle_brkchars
10475 phase.
10476 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
10477 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New.
10478 (struct gdb_rl_completion_word_info): New.
10479 (gdb_rl_find_completion_word): New.
10480 (completion_find_completion_word): New.
10481 * completer.h (completion_find_completion_word): Declare.
10482
10483 2017-07-17 Pedro Alves <palves@redhat.com>
10484
10485 * ada-lang.c (symbol_completion_match): Adjust comments.
10486 (symbol_completion_add): Replace vector parameter with
10487 completion_tracker parameter. Use it.
10488 (ada_make_symbol_completion_list): Rename to...
10489 (ada_collect_symbol_completion_matches): ... this. Add
10490 completion_tracker parameter and use it.
10491 (ada_language_defn): Adjust.
10492 * break-catch-syscall.c (catch_syscall_completer): Adjust
10493 prototype and work with completion_tracker instead of VEC.
10494 * breakpoint.c (condition_completer): Adjust prototype and work
10495 with completion_tracker instead of VEC.
10496 * c-lang.c (c_language_defn, cplus_language_defn)
10497 (asm_language_defn, minimal_language_defn): Adjust to renames.
10498 * cli/cli-cmds.c (complete_command): Rework using
10499 completion_tracker. Catch exceptions when completing.
10500 * cli/cli-decode.c (integer_unlimited_completer)
10501 (complete_on_cmdlist, complete_on_enum): Adjust prototype and work
10502 with completion_tracker instead of VEC.
10503 * command.h (struct completion_tracker): Forward declare.
10504 (completer_ftype, completer_handle_brkchars_ftype): Change
10505 types.
10506 (complete_on_cmdlist, complete_on_enum): Adjust.
10507 * completer.c: Include <algorithm>.
10508 (struct gdb_completer_state): New.
10509 (current_completion): New global.
10510 (readline_line_completion_function): Delete.
10511 (noop_completer, filename_completer)
10512 (filename_completer_handle_brkchars, complete_files_symbols)
10513 (linespec_location_completer): Adjust to work with a
10514 completion_tracker instead of a VEC.
10515 (string_or_empty): New.
10516 (collect_explicit_location_matches): Adjust to work with a
10517 completion_tracker instead of a VEC.
10518 (explicit_location_completer): Rename to ...
10519 (complete_explicit_location): ... this and adjust to work with a
10520 completion_tracker instead of a VEC.
10521 (location_completer): Adjust to work with a completion_tracker
10522 instead of a VEC.
10523 (add_struct_fields): Adjust to work with a completion_list instead
10524 of VEC.
10525 (expression_completer): Rename to ...
10526 (complete_expression): ... this and adjust to work with a
10527 completion_tracker instead of a VEC. Use complete_files_symbols.
10528 (expression_completer): Reimplement on top of complete_expression.
10529 (symbol_completer): Adjust to work with a completion_tracker
10530 instead of a VEC.
10531 (enum complete_line_internal_reason): Add describing comments.
10532 (complete_line_internal_normal_command): Adjust to work with a
10533 completion_tracker instead of a VEC.
10534 (complete_line_internal): Rename to ...
10535 (complete_line_internal_1): ... this and adjust to work with a
10536 completion_tracker instead of a VEC. Assert TEXT is NULL in the
10537 handle_brkchars phase.
10538 (new_completion_tracker): Delete.
10539 (complete_line_internal): Reimplement as TRY/CATCH wrapper around
10540 complete_line_internal_1.
10541 (free_completion_tracker): Delete.
10542 (INITIAL_COMPLETION_HTAB_SIZE): New.
10543 (completion_tracker::completion_tracker)
10544 (completion_tracker::~completion_tracker): New.
10545 (maybe_add_completion): Delete.
10546 (completion_tracker::maybe_add_completion)
10547 (completion_tracker::add_completion)
10548 (completion_tracker::add_completions): New.
10549 (throw_max_completions_reached_error): Delete.
10550 (complete_line): Adjust to work with a completion_tracker instead
10551 of a VEC. Don't create a completion_tracker_t or check for max
10552 completions here.
10553 (command_completer, command_completer_handle_brkchars)
10554 (signal_completer, reg_or_group_completer_1)
10555 (reg_or_group_completer, default_completer_handle_brkchars):
10556 Adjust to work with a completion_tracker.
10557 (gdb_completion_word_break_characters_throw): New.
10558 (gdb_completion_word_break_characters): Reimplement.
10559 (line_completion_function): Delete.
10560 (completion_tracker::recompute_lowest_common_denominator)
10561 (expand_preserving_ws)
10562 (completion_tracker::build_completion_result)
10563 (completion_result::completion_result)
10564 (completion_result::completion_result)
10565 (completion_result::~completion_result)
10566 (completion_result::completion_result)
10567 (completion_result::release_match_list, compare_cstrings)
10568 (completion_result::sort_match_list)
10569 (completion_result::reset_match_list)
10570 (gdb_rl_attempted_completion_function_throw)
10571 (gdb_rl_attempted_completion_function): New.
10572 * completer.h (completion_list, struct completion_result)
10573 (class completion_tracker): New.
10574 (complete_line): Add completion_tracker parameter.
10575 (readline_line_completion_function): Delete.
10576 (gdb_rl_attempted_completion_function): New.
10577 (noop_completer, filename_completer, expression_completer)
10578 (location_completer, symbol_completer, command_completer)
10579 (signal_completer, reg_or_group_completer): Update prototypes.
10580 (completion_tracker_t, new_completion_tracker)
10581 (make_cleanup_free_completion_tracker): Delete.
10582 (enum maybe_add_completion_enum): Delete.
10583 (maybe_add_completion): Delete.
10584 (throw_max_completions_reached_error): Delete.
10585 * corefile.c (complete_set_gnutarget): Adjust to work with a
10586 completion_tracker instead of a VEC.
10587 * cp-abi.c (cp_abi_completer): Adjust to work with a
10588 completion_tracker instead of a VEC.
10589 * d-lang.c (d_language_defn): Adjust.
10590 * disasm.c (disassembler_options_completer): Adjust to work with a
10591 completion_tracker instead of a VEC.
10592 * f-lang.c (f_make_symbol_completion_list): Rename to ...
10593 (f_collect_symbol_completion_matches): ... this. Adjust to work
10594 with a completion_tracker instead of a VEC.
10595 (f_language_defn): Adjust.
10596 * go-lang.c (go_language_defn): Adjust.
10597 * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer):
10598 Adjust to work with a completion_tracker instead of a VEC.
10599 * infrun.c (handle_completer): Likewise.
10600 * interps.c (interpreter_completer): Likewise.
10601 * interps.h (interpreter_completer): Likewise.
10602 * language.c (unknown_language_defn, auto_language_defn)
10603 (local_language_defn): Adjust.
10604 * language.h (language_defn::la_make_symbol_completion_list):
10605 Rename to ...
10606 (language_defn::la_collect_symbol_completion_matches): ... this
10607 and adjust to work with a completion_tracker instead of a VEC.
10608 * m2-lang.c (m2_language_defn): Adjust.
10609 * objc-lang.c (objc_language_defn): Adjust.
10610 * opencl-lang.c (opencl_language_defn): Adjust.
10611 * p-lang.c (pascal_language_defn): Adjust.
10612 * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word.
10613 (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work
10614 with a completion_tracker.
10615 * rust-lang.c (rust_language_defn): Adjust.
10616 * symtab.c (free_completion_list, do_free_completion_list)
10617 (return_val, completion_tracker): Delete.
10618 (completion_list_add_name, completion_list_add_symbol)
10619 (completion_list_add_msymbol, completion_list_objc_symbol)
10620 (completion_list_add_fields, add_symtab_completions): Add
10621 completion_tracker parameter and use it.
10622 (default_make_symbol_completion_list_break_on_1): Rename to...
10623 (default_collect_symbol_completion_matches_break_on): ... this.
10624 Add completion_tracker parameter and use it instead of allocating
10625 a completion tracker here.
10626 (default_make_symbol_completion_list_break_on): Delete old
10627 implementation.
10628 (default_make_symbol_completion_list): Delete.
10629 (default_collect_symbol_completion_matches): New.
10630 (make_symbol_completion_list): Delete.
10631 (collect_symbol_completion_matches): New.
10632 (make_symbol_completion_type): Rename to ...
10633 (collect_symbol_completion_matches_type): ... this. Add
10634 completion_tracker parameter and use it instead of VEC.
10635 (make_file_symbol_completion_list_1): Rename to...
10636 (collect_file_symbol_completion_matches): ... this. Add
10637 completion_tracker parameter and use it instead of VEC.
10638 (make_file_symbol_completion_list): Delete.
10639 (add_filename_to_list): Use completion_list instead of a VEC.
10640 (add_partial_filename_data::list): Now a completion_list.
10641 (make_source_files_completion_list): Work with a completion_list
10642 instead of a VEC.
10643 * symtab.h: Include "completer.h".
10644 (default_make_symbol_completion_list_break_on)
10645 (default_make_symbol_completion_list, make_symbol_completion_list)
10646 (make_symbol_completion_type, make_file_symbol_completion_list)
10647 (make_source_files_completion_list): Delete.
10648 (default_collect_symbol_completion_matches_break_on)
10649 (default_collect_symbol_completion_matches)
10650 (collect_symbol_completion_matches)
10651 (collect_symbol_completion_matches_type)
10652 (collect_file_symbol_completion_matches)
10653 (make_source_files_completion_list): New.
10654 * top.c (init_main): Don't install a rl_completion_entry_function
10655 hook. Install a rl_attempted_completion_function hook instead.
10656 * tui/tui-layout.c (layout_completer): Adjust to work with a
10657 completion_tracker.
10658 * tui/tui-regs.c (tui_reggroup_completer):
10659 * tui/tui-win.c (window_name_completer, focus_completer)
10660 (winheight_completer): Adjust to work with a completion_tracker.
10661 * value.c: Include "completer.h".
10662 (complete_internalvar): Adjust to work with a completion_tracker.
10663 * value.h (complete_internalvar): Likewise.
10664
10665 2017-07-17 Pedro Alves <palves@redhat.com>
10666
10667 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to
10668 renames.
10669 * cli/cli-decode.h (struct cmd_list_element) <completer>: Move
10670 comments to completer_ftype's declaration.
10671 <completer_handle_brkchars>: Change type to
10672 completer_handle_brkchars_ftype.
10673 * command.h (completer_ftype): Add describing comment and give
10674 names to parameters.
10675 (completer_ftype_void): Rename to ...
10676 (completer_handle_brkchars_ftype) ... this. Add describing comment.
10677 (set_cmd_completer_handle_brkchars): Adjust.
10678 * completer.c (filename_completer_handle_brkchars): New function.
10679 (complete_line_internal_normal_command): New function, factored
10680 out from ...
10681 (complete_line_internal): ... here.
10682 (command_completer_handle_brkchars)
10683 (default_completer_handle_brkchars)
10684 (completer_handle_brkchars_func_for_completer): New functions.
10685 * completer.h (set_gdb_completion_word_break_characters): Delete
10686 declaration.
10687 (completer_handle_brkchars_func_for_completer): New declaration.
10688 * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use
10689 completer_handle_brkchars_func_for_completer.
10690
10691 2017-07-17 Pedro Alves <palves@redhat.com>
10692
10693 * completer.c (symbol_completer): New function, based on
10694 make_symbol_completion_list_fn.
10695 * completer.h (symbol_completer): New declaration.
10696 * guile/scm-cmd.c (cmdscm_completers): Adjust.
10697 * python/py-cmd.c (completers): Adjust.
10698 * symtab.c (make_symbol_completion_list_fn): Delete.
10699 * symtab.h (make_symbol_completion_list_fn): Delete.
10700 * cli/cli-decode.c (add_cmd): Adjust.
10701
10702 2017-07-17 Pedro Alves <palves@redhat.com>
10703
10704 * Makefile.in (COMMON_OBS): Add filename-seen-cache.o.
10705 * dwarf2read.c: Include "filename-seen-cache.h".
10706 * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field.
10707 (dw2_map_symbol_filenames): Build and use a filenames_seen_cache.
10708 * filename-seen-cache.c: New file.
10709 * filename-seen-cache.h: New file.
10710 * symtab.c: Include "filename-seen-cache.h".
10711 (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE)
10712 (create_filename_seen_cache, clear_filename_seen_cache)
10713 (delete_filename_seen_cache, filename_seen): Delete, parts moved
10714 to filename-seen-cache.h/filename-seen-cache.c.
10715 (output_source_filename, sources_info)
10716 (maybe_add_partial_symtab_filename)
10717 (make_source_files_completion_list): Adjust to use
10718 filename_seen_cache.
10719
10720 2017-07-17 Pedro Alves <palves@redhat.com>
10721
10722 * dwarf2read.c (dwarf2_per_objfile): In-class initialize all
10723 fields.
10724 (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const
10725 dwarf2_debug_sections*)): New.
10726 (dwarf2_per_objfile::dwarf2_per_objfile(const
10727 dwarf2_per_objfile&)): Declare as deleted.
10728 (dwarf2_per_objfile::operator=): Declare as deleted.
10729 (dwarf2_per_objfile::dwarf2_per_objfile)
10730 (dwarf2_per_objfile::~dwarf2_per_objfile)
10731 (dwarf2_per_objfile::free_cached_comp_units): New.
10732 (dwarf2_has_info): dwarf2_per_objfile initialization code moved to
10733 ctor. Call dwarf2_per_objfile's ctor manually.
10734 (dwarf2_locate_sections): Deleted/refactored as ...
10735 (dwarf2_per_objfile::locate_sections): ... this new method.
10736 (free_cached_comp_units): Defer to
10737 dwarf2_per_objfile::free_cached_comp_units.
10738 (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually.
10739
10740 2017-07-14 Tom Tromey <tom@tromey.com>
10741
10742 PR rust/21764:
10743 * rust-exp.y (convert_ast_to_expression): Add "want_type"
10744 parameter.
10745 <UNOP_SIZEOF>: Split into separate case.
10746 <UNOP_VAR_VALUE>: Handle want_type. Add error case.
10747
10748 2017-07-14 Tom Tromey <tom@tromey.com>
10749
10750 PR rust/21763:
10751 * symtab.c (symbol_matches_domain): Add language_rust to special
10752 case.
10753 * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't
10754 treat LOC_TYPEDEF symbols as variables.
10755
10756 2017-07-14 Pedro Alves <palves@redhat.com>
10757
10758 * symtab.c (make_file_symbol_completion_list_1): Iterate over
10759 symtabs matching all symtabs with SRCFILE as file name instead of
10760 only considering the first hit, with lookup_symtab.
10761
10762 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
10763
10764 * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and
10765 operator_name parameters.
10766 (gen_expr): Update function call.
10767
10768 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
10769
10770 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch
10771 parameter.
10772 * symtab.h (struct symbol_computed_ops::tracepoint_var_ref):
10773 Likewise.
10774 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch
10775 parameter, use agent_expr::gdbarch instead, update function
10776 calls.
10777 (locexpr_tracepoint_var_ref): Likewise.
10778 (loclist_tracepoint_var_ref): Likewise.
10779 * ax-gdb.c (gen_trace_static_fields): Likewise.
10780 (gen_traced_pop): Likewise.
10781 (gen_frame_args_address): Likewise.
10782 (gen_frame_locals_address): Likewise.
10783 (gen_var_ref): Likewise.
10784 (gen_struct_ref_recursive): Likewise.
10785 (gen_static_field): Likewise.
10786 (gen_maybe_namespace_elt): Likewise.
10787 (gen_expr): Likewise.
10788 (gen_trace_for_var): Likewise.
10789 (gen_trace_for_expr): Likewise.
10790 (gen_trace_for_return_address): Likewise.
10791
10792 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
10793
10794 * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax
10795 parameter.
10796 (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call.
10797
10798 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
10799
10800 * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch
10801 from ax, update calls.
10802 (gen_usual_arithmetic): Likewise.
10803 (gen_integral_promotions): Likewise.
10804 (gen_bitfield_ref): Likewise.
10805 (gen_primitive_field): Likewise.
10806 (gen_struct_ref_recursive): Likewise.
10807 (gen_struct_ref): Likewise.
10808 (gen_maybe_namespace_elt): Likewise.
10809 (gen_struct_elt_for_reference): Likewise.
10810 (gen_namespace_elt): Likewise.
10811 (gen_aggregate_elt_ref): Likewise.
10812 (gen_expr): Get gdbarch from ax, update calls.
10813 (gen_expr_binop_rest): Likewise.
10814
10815 2017-07-13 Pedro Alves <palves@redhat.com>
10816
10817 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64
10818 as default tdesc.
10819 * amd64-dicos-tdep.c (amd64_dicos_init_abi):
10820 * amd64-fbsd-tdep.c (amd64fbsd_init_abi):
10821 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass
10822 tdesc_amd64_linux as default tdesc. Get final tdesc from the
10823 tdep.
10824 (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc.
10825 Get final tdesc from the tdep.
10826 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as
10827 default tdesc.
10828 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
10829 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
10830 * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter.
10831 Use it as default tdesc.
10832 (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it
10833 down to amd_init_abi. No longer handle fallback tdesc here.
10834 * amd64-tdep.h (tdesc_x32): Declare.
10835 (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc'
10836 parameter.
10837 * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64
10838 as default tdesc.
10839
10840 2017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10841
10842 * s390-linux-tdep.c (s390_process_record): Add support for
10843 instructions new in arch12.
10844
10845 2017-07-11 John Baldwin <jhb@FreeBSD.org>
10846
10847 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
10848 PT_GETFSBASE and PT_GETGSBASE.
10849 (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and
10850 PT_SETGSBASE.
10851
10852 2017-07-11 John Baldwin <jhb@FreeBSD.org>
10853
10854 * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat)
10855 (amd64-avx-mpx.dat, amd64-avx-avx512.dat)
10856 (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in
10857 those rules.
10858 * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml.
10859 * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml.
10860 * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml.
10861 * features/i386/amd64-avx.xml: Add 64bit-segments.xml.
10862 * features/i386/amd64-mpx.xml: Add 64bit-segments.xml.
10863 * features/i386/amd64.xml: Add 64bit-segments.xml.
10864 * features/i386/amd64-avx-avx512.c: Regenerated.
10865 * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated.
10866 * features/i386/amd64-avx-mpx.c: Regenerated.
10867 * features/i386/amd64-avx.c: Regenerated.
10868 * features/i386/amd64-mpx.c: Regenerated.
10869 * features/i386/amd64.c: Regenerated.
10870 * regformats/i386/amd64-avx-avx512.dat: Regenerated.
10871 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
10872 * regformats/i386/amd64-avx-mpx.dat: Regenerated.
10873 * regformats/i386/amd64-avx.dat: Regenerated.
10874 * regformats/i386/amd64-mpx.dat: Regenerated.
10875 * regformats/i386/amd64.dat: Regenerated.
10876
10877 2017-07-10 Yao Qi <yao.qi@linaro.org>
10878
10879 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
10880 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
10881
10882 2017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com>
10883
10884 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and
10885 unsetenv.
10886 * gnulib/aclocal.m4: Regenerate.
10887 * gnulib/config.in: Regenerate.
10888 * gnulib/configure: Regenerate.
10889 * gnulib/import/Makefile.am: Regenerate.
10890 * gnulib/import/Makefile.in: Regenerate.
10891 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
10892 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
10893 * gnulib/import/m4/environ.m4: New file.
10894 * gnulib/import/m4/setenv.m4: New file.
10895 * gnulib/import/setenv.c: New file.
10896 * gnulib/import/unsetenv.c: New file.
10897
10898 2017-07-09 Simon Marchi <simon.marchi@ericsson.com>
10899
10900 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read
10901 address when op is DW_OP_addr.
10902
10903 2017-07-09 Tom Tromey <tom@tromey.com>
10904
10905 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size
10906 check and apply to outer type.
10907
10908 2017-07-07 John Baldwin <jhb@FreeBSD.org>
10909
10910 * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS)
10911 (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI)
10912 (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New.
10913 (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method.
10914
10915 2017-07-07 John Baldwin <jhb@FreeBSD.org>
10916
10917 * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name.
10918
10919 2017-07-07 John Baldwin <jhb@FreeBSD.org>
10920
10921 * corelow.c (get_core_siginfo): Remove.
10922 (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method
10923 instead of get_core_siginfo.
10924 * gdbarch.sh (core_xfer_siginfo): New gdbarch callback.
10925 * gdbarch.h: Re-generate.
10926 * gdbarch.c: Re-generate.
10927 * linux-tdep.c (linux_core_xfer_siginfo): New.
10928 (linux_init_abi): Install gdbarch "core_xfer_siginfo" method.
10929
10930 2017-07-07 John Baldwin <jhb@FreeBSD.org>
10931
10932 * corelow.c (thread_section_name): Move to ...
10933 * gdbcore.h (thread_section_name): ... here.
10934
10935 2017-07-07 John Baldwin <jhb@FreeBSD.org>
10936
10937 * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32)
10938 (struct siginfo32): New.
10939 [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New.
10940 (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO
10941 via ptrace(PT_LWPINFO).
10942
10943 2017-07-07 John Baldwin <jhb@FreeBSD.org>
10944
10945 * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data)
10946 (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data)
10947 (fbsd_get_siginfo_type): New.
10948 (fbsd_init_abi): Install gdbarch "get_siginfo_type" method.
10949 (_initialize_fbsd_tdep): New.
10950
10951 2017-07-06 David Blaikie <dblaikie@gmail.com>
10952
10953 * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than
10954 a singular dwo_unit*) to support multiple CUs in the same way that
10955 multiple TUs are supported.
10956 (create_cus_hash_table): Replace create_dwo_cu with a function for
10957 parsing multiple CUs from a DWO file.
10958 (open_and_init_dwo_file): Use create_cus_hash_table rather than
10959 create_dwo_cu.
10960 (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with
10961 htab_find, rather than comparing the signature to a singleton CU in
10962 the dwo_file.
10963
10964 2017-07-06 Pedro Alves <palves@redhat.com>
10965
10966 * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition.
10967
10968 2017-07-04 Pedro Alves <palves@redhat.com>
10969
10970 * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC.
10971 * gdbtypes.h (TYPE_STATIC): Delete.
10972 (struct fn_field) <is_public, is_abstract, is_static, is_final,
10973 is_synchronized, is_native>: Delete.
10974 <dummy>: Bump.
10975 (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL)
10976 (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE)
10977 (TYPE_FN_FIELD_ABSTRACT): Delete.
10978
10979 2017-07-03 Simon Marchi <simon.marchi@ericsson.com>
10980
10981 * buffer.h (buffer_finish): Fix spelling mistakes.
10982
10983 2017-07-01 Eli Zaretskii <eliz@gnu.org>
10984
10985 * .dir-locals.el: Automatically switch to C-style comments in
10986 versions of Emacs that support the feature.
10987
10988 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
10989 Pedro Alves <palves@redhat.com>
10990
10991 PR cli/21688
10992 * cli/cli-script.c (command_name_equals_not_inline): Remove function.
10993 (process_next_line): New variable 'inline_cmd'.
10994 Adjust 'if' clauses for "python", "compile" and "guile" to use
10995 'command_name_equals' and check for '!inline_cmd'.
10996
10997 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
10998
10999 PR cli/21688
11000 * cli/cli-script.c (command_name_equals_not_inline): New function.
11001 (process_next_line): Adjust 'if' clauses for "python", "compile"
11002 and "guile" to use command_name_equals_not_inline.
11003
11004 2017-06-29 Pedro Alves <palves@redhat.com>
11005
11006 * completer.c (expression_completer): Call
11007 linespec_location_completer instead of location_completer.
11008
11009 2017-06-29 Pedro Alves <palves@redhat.com>
11010
11011 * completer.c (expression_completer): Remove code that recomputes
11012 'text' from 'word'.
11013
11014 2017-06-29 Yao Qi <yao.qi@linaro.org>
11015
11016 * regformats/regdat.sh: Generate code with
11017 "ifndef IN_PROCESS_AGENT".
11018
11019 2017-06-28 Pedro Alves <palves@redhat.com>
11020
11021 * command.h: Include "common/scoped_restore.h".
11022
11023 2017-06-28 Yao Qi <yao.qi@linaro.org>
11024
11025 * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str
11026 instead of obstack_grow.
11027
11028 2017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com>
11029
11030 PR gdb/21337
11031 * symfile.c (reread_symbols): Call objfiles_changed just before
11032 read_symbols.
11033
11034 2017-06-27 Pedro Alves <palves@redhat.com>
11035
11036 * symtab.c (COMPLETION_LIST_ADD_SYMBOL)
11037 (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ...
11038 (completion_list_add_symbol, completion_list_add_msymbol):
11039 ... these new functions.
11040 (add_symtab_completions)
11041 (default_make_symbol_completion_list_break_on_1): Adjust.
11042
11043 2017-06-27 Pedro Alves <palves@redhat.com>
11044
11045 * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of
11046 bfd_zalloc. Call objfile_per_bfd_storage's ctor.
11047 (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's
11048 dtor.
11049 * objfiles.h (objfile_per_bfd_storage): Add ctor. Make
11050 'storage_obstack' field an auto_obstack. In-class initialize all
11051 non-bitfield fields. Make minsyms_read bool.
11052 * symfile.c (read_symbols): Adjust.
11053
11054 2017-06-27 Alan Hayward <alan.hayward@arm.com>
11055
11056 * remote-sim.c (gdbsim_fetch_register): Use byte_vector.
11057 (gdbsim_store_register): Likewise.
11058
11059 2017-06-27 Pedro Alves <palves@redhat.com>
11060
11061 * c-exp.y (name_obstack): Now an auto_obstack.
11062 (yylex): Use auto_obstack::clear.
11063 (c_parse): Use auto_obstack::clear instead of reinitializing and
11064 freeing the obstack.
11065 * c-lang.c (evaluate_subexp_c): Use auto_obstack.
11066 * d-exp.y (name_obstack): Now an auto_obstack.
11067 (yylex): Use auto_obstack::clear.
11068 (d_parse): Use auto_obstack::clear instead of reinitializing and
11069 freeing the obstack.
11070 * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use
11071 auto_obstack.
11072 * dwarf2read.c (create_addrmap_from_index)
11073 (dwarf2_build_psymtabs_hard)
11074 (update_enumeration_type_from_children): Likewise.
11075 * gdb_obstack.h (auto_obstack): New type.
11076 * go-exp.y (name_obstack): Now an auto_obstack.
11077 (build_packaged_name): Use auto_obstack::clear.
11078 (go_parse): Use auto_obstack::clear instead of reinitializing and
11079 freeing the obstack.
11080 * linux-tdep.c (linux_make_mappings_corefile_notes): Use
11081 auto_obstack.
11082 * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack.
11083 * rust-exp.y (work_obstack): Now an auto_obstack.
11084 (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of
11085 reinitializing and freeing the obstack.
11086 * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete.
11087 (host_char_to_target): Use auto_obstack.
11088 * utils.h (make_cleanup_obstack_free): Delete declaration.
11089 * valprint.c (generic_emit_char, generic_printstr): Use
11090 auto_obstack.
11091
11092 2017-06-27 Simon Marchi <simon.marchi@ericsson.com>
11093
11094 * darwin-nat.c (darwin_check_new_threads): Don't handle dummy
11095 thread.
11096 (darwin_init_thread_list): Don't update dummy thread.
11097 (darwin_create_inferior, darwin_attach): Don't add a dummy thread.
11098
11099 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
11100
11101 * record-full.c (netorder16): Remove.
11102
11103 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
11104
11105 * common/diagnostics.h: Define macros for GCC.
11106 (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro.
11107 * common/vec.h: Include diagnostics.h.
11108 (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro.
11109 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function
11110 warning.
11111
11112 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
11113
11114 * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER):
11115 New macro.
11116 * ada-lex.l: Ignore deprecated register warnings.
11117
11118 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
11119
11120 * main.c (get_init_files): Replace "SYSTEM_GDBINIT +
11121 datadir_len" with "&SYSTEM_GDBINIT[datadir_len]".
11122
11123 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
11124
11125 * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on
11126 its own line.
11127
11128 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
11129
11130 * nat/x86-dregs.c (x86_show_dr): Print registers one per line.
11131
11132 2017-06-23 Alan Hayward <alan.hayward@arm.com>
11133
11134 * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add.
11135 (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE.
11136 (xtensa_register_read_masked): Likewise.
11137
11138 2017-06-22 Sergio Durigan Junior <sergiodj@redhat.com>
11139
11140 * common/environ.c (gdb_environ::unset): Update comment.
11141
11142 2017-06-22 Alan Hayward <alan.hayward@arm.com>
11143
11144 * python/py-unwind.c (pyuw_sniffer): Allocate space for
11145 registers.
11146
11147 2017-06-22 Alan Hayward <alan.hayward@arm.com>
11148
11149 * record-full.c (record_full_exec_insn): Use byte_vector.
11150
11151 2017-06-22 Yao Qi <yao.qi@linaro.org>
11152
11153 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated.
11154 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
11155
11156 2017-06-22 Alan Hayward <alan.hayward@arm.com>
11157
11158 * remote.c (cached_reg): Move from here...
11159 * regcache.h (cached_reg): ...to here.
11160 * python/py-unwind.c (struct reg_info): Remove.
11161 (cached_frame_info): Use cached_reg_t.
11162 (pyuw_prev_register): Likewise.
11163 (pyuw_sniffer): Use cached_reg_t and allocate registers.
11164 (pyuw_dealloc_cache): Free all registers.
11165
11166 2017-06-22 Pedro Alves <palves@redhat.com>
11167 Simon Marchi <simon.marchi@ericsson.com>
11168
11169 * unittests/environ-selftests.c (run_tests): Ignore -Wself-move
11170 warning.
11171 * common/diagnostics.h: New file.
11172
11173 2017-06-22 Pedro Alves <palves@redhat.com>
11174
11175 * common/agent.h: Add include guards.
11176
11177 2017-06-21 Simon Marchi <simon.marchi@ericsson.com>
11178
11179 * target.h (struct target_ops) <to_xfer_partial>: Update doc to
11180 talk about addressable units instead of bytes.
11181
11182 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
11183
11184 * common/environ.c (gdb_environ::unset): Use '::iterator' instead
11185 of '::const_iterator'.
11186
11187 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
11188
11189 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11190 'unittests/environ-selftests.c'.
11191 (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'.
11192 * charset.c (find_charset_names): Declare object 'iconv_env'.
11193 Update code to use 'iconv_env' object. Remove call to
11194 'free_environ'.
11195 * common/environ.c: Include <utility>.
11196 (make_environ): Delete function.
11197 (free_environ): Delete function.
11198 (gdb_environ::clear): New function.
11199 (gdb_environ::operator=): New function.
11200 (gdb_environ::get): Likewise.
11201 (environ_vector): Delete function.
11202 (set_in_environ): Delete function.
11203 (gdb_environ::set): New function.
11204 (unset_in_environ): Delete function.
11205 (gdb_environ::unset): New function.
11206 (gdb_environ::envp): Likewise.
11207 * common/environ.h: Include <vector>.
11208 (struct gdb_environ): Delete; transform into...
11209 (class gdb_environ): ... this class.
11210 (free_environ): Delete prototype.
11211 (init_environ, get_in_environ, set_in_environ, unset_in_environ,
11212 environ_vector): Likewise.
11213 * infcmd.c (run_command_1): Update code to call
11214 'envp' from 'gdb_environ' class.
11215 (environment_info): Update code to call methods from 'gdb_environ'
11216 class.
11217 (unset_environment_command): Likewise.
11218 (path_info): Likewise.
11219 (path_command): Likewise.
11220 * inferior.c (inferior::~inferior): Delete call to 'free_environ'.
11221 (inferior::inferior): Initialize 'environment' using the host's
11222 information.
11223 * inferior.h: Remove forward declaration of 'struct gdb_environ'.
11224 Include "environ.h".
11225 (class inferior) <environment>: Change type from 'struct
11226 gdb_environ' to 'gdb_environ'.
11227 * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call
11228 methods from 'gdb_environ' class.
11229 * solib.c (solib_find_1): Likewise
11230 * unittests/environ-selftests.c: New file.
11231
11232 2017-06-20 Yao Qi <yao.qi@linaro.org>
11233
11234 * features/i386/i386-linux.xml: Exchange the order of including
11235 32bit-linux.xml and 32bit-sse.xml.
11236 * features/i386/i386-linux.c: Regenerated.
11237
11238 2017-06-20 Yao Qi <yao.qi@linaro.org>
11239
11240 * target-descriptions.c (tdesc_reg): Add ctor, dtor.
11241 Delete copy ctor and assignment operator.
11242 (tdesc_type): Likewise.
11243 (tdesc_feature): Likewise.
11244 (tdesc_free_reg): Remove.
11245 (tdesc_create_reg): Use new.
11246 (tdesc_free_type): Remove.
11247 (tdesc_create_vector): Use new.
11248 (tdesc_create_union): Likewise.
11249 (tdesc_create_flags): Likewise.
11250 (tdesc_create_enum): Likewise.
11251 (tdesc_free_feature): Delete.
11252 (free_target_description): Use delete.
11253
11254 2017-06-19 John Baldwin <jhb@FreeBSD.org>
11255
11256 * mips-tdep.c (print_gp_register_row): Don't error for unavailable
11257 registers.
11258
11259 2017-06-19 Pedro Alves <palves@redhat.com>
11260
11261 * dwarf2read.c (write_psymtabs_to_index): Construct file_closer
11262 after gdb::unlinker.
11263
11264 2017-06-19 Sergio Durigan Junior <sergiodj@redhat.com>
11265
11266 * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of
11267 gdb_environ to access an environment variable.
11268
11269 2017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
11270
11271 * nat/linux-ptrace.c (linux_fork_to_function): Add cast to
11272 gdb_byte*.
11273
11274 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
11275
11276 * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF.
11277
11278 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
11279
11280 * configure: Re-generate.
11281 * warning.m4 (build_warnings): Add -Wno-mismatched-tags.
11282
11283 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
11284
11285 * configure: Re-generate.
11286 * warning.m4: Pass -Werror to compiler when checking for
11287 supported warning flags.
11288
11289 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
11290
11291 * Makefile.in (COMPILE.pre): Add "-x c++".
11292
11293 2017-06-16 Alan Hayward <alan.hayward@arm.com>
11294 Pedro Alves <palves@redhat.com>
11295 Yao Qi <yao.qi@linaro.org>
11296
11297 * defs.h (RequireLongest): New.
11298 (extract_integer): Declare function template.
11299 (extract_signed_integer): Remove the declaration, but define it
11300 static inline.
11301 (extract_unsigned_integer): Likewise.
11302 (store_integer): Declare function template.
11303 (store_signed_integer): Remove the declaration, but define it
11304 static inline.
11305 (store_unsigned_integer): Likewise.
11306 * findvar.c (extract_integer): New function template.
11307 (extract_signed_integer): Remove.
11308 (extract_unsigned_integer): Remove.
11309 (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit
11310 instantiations.
11311 (store_integer): New function template.
11312 (store_signed_integer): Remove.
11313 (store_unsigned_integer): Remove.
11314 (store_integer): Explicit instantiations.
11315 * regcache.c (regcache_raw_read_signed): Update.
11316 (regcache::raw_read): New function.
11317 (regcache::raw_read_signed): Remove.
11318 (regcache::raw_read_unsigned): Remove.
11319 (regcache_raw_read_unsigned): Update.
11320 (regcache_raw_write_unsigned): Update.
11321 (regcache::raw_write_signed): Remove.
11322 (regcache::raw_write): New function.
11323 (regcache_cooked_read_signed): Update.
11324 (regcache::raw_write_unsigned): Remove.
11325 (regcache::cooked_read_signed): Remove.
11326 (regcache_cooked_read_unsigned): Update.
11327 (regcache::cooked_read_unsigned): Remove.
11328 (regcache_cooked_write_signed): Update.
11329 (regcache_cooked_write_unsigned): Update.
11330 * regcache.h (regcache) <raw_read_signed>: Remove.
11331 <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove.
11332 <raw_read, raw_write>: New.
11333 <cooked_read_signed, cooked_write_signed>: Remove.
11334 <cooked_write_unsigned, cooked_read_unsigned>: Remove.
11335 <cooked_read, cooked_write>: New.
11336 * sh64-tdep.c (sh64_pseudo_register_read): Update.
11337 (sh64_pseudo_register_write): Update.
11338
11339 2017-06-16 Anton Kolesov <anton.kolesov@synopsys.com>
11340
11341 * arc-tdep.c (arc_disassembler_options): New variable.
11342 (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead
11343 of default_print_insn.
11344 (arc_delayed_print_insn): Set info->section when needed,
11345 use default_print_insn to retrieve a disassembler.
11346
11347 2017-06-14 Sergio Durigan Junior <sergiodj@redhat.com>
11348
11349 PR gdb/21574
11350 * infcmd.c (_initialize_infcmd): Expand "help run" documentation
11351 to mention $SHELL and startup-with-shell.
11352
11353 2017-06-14 Max Filippov <jcmvbkbc@gmail.com>
11354
11355 * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers.
11356
11357 2017-06-14 Yao Qi <yao.qi@linaro.org>
11358
11359 * aarch64-tdep.c (aarch64_gdb_print_insn): Call
11360 default_print_insn instead of print_insn_aarch64.
11361 * arm-tdep.c (gdb_print_insn_arm): Call
11362 default_print_insn instead of print_insn_big_arm
11363 and print_insn_little_arm.
11364 * i386-tdep.c (i386_print_insn): Call default_print_insn
11365 instead of print_insn_i386.
11366 * ia64-tdep.c (ia64_print_insn): Call
11367 default_print_insn instead of print_insn_ia64.
11368 * mips-tdep.c (gdb_print_insn_mips): Call
11369 default_print_insn instead of print_insn_big_mips
11370 and print_insn_little_mips.
11371 * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn
11372 instead of print_insn_spu.
11373
11374 2017-06-14 Pedro Alves <palves@redhat.com>
11375
11376 * ada-lang.c: Include "common/byte-vector.h".
11377 (ada_value_primitive_packed_val): Use gdb::byte_vector.
11378 * charset.c (wchar_iterator::iterate): Resize the vector instead
11379 of reserving it.
11380 * common/byte-vector.h: Include "common/def-vector.h".
11381 (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>.
11382 * cli/cli-dump.c: Include "common/byte-vector.h".
11383 (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector.
11384 * common/byte-vector.h: New file.
11385 * common/def-vector.h: New file.
11386 * common/default-init-alloc.h: New file.
11387 * dwarf2loc.c: Include "common/byte-vector.h".
11388 (rw_pieced_value): Use gdb::byte_vector, and resize the vector
11389 instead of reserving it.
11390 * dwarf2read.c: Include "common/byte-vector.h".
11391 (data_buf::m_vec): Now a gdb::byte_vector.
11392 * gdb_regex.c: Include "common/def-vector.h".
11393 (compiled_regex::compiled_regex): Use gdb::def_vector<char>.
11394 * mi/mi-main.c: Include "common/byte-vector.h".
11395 (mi_cmd_data_read_memory): Use gdb::byte_vector.
11396 * printcmd.c: Include "common/byte-vector.h".
11397 (print_scalar_formatted): Use gdb::byte_vector.
11398 * valprint.c: Include "common/byte-vector.h".
11399 (maybe_negate_by_bytes, print_decimal_chars): Use
11400 gdb::byte_vector.
11401
11402 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
11403
11404 * darwin-nat.c: Include "nat/fork-inferior.h".
11405
11406 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
11407
11408 * configure.nat: Factor out Darwin bits that are not
11409 architecture-specific. Add fork-inferior.o.
11410
11411 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
11412
11413 * configure.nat: Factor out AIX bits that are not
11414 architecture-specific. Add fork-inferior.o.
11415
11416 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11417
11418 * dwarf2loc.c (rw_pieced_value): New. Merge logic from...
11419 (read_pieced_value, write_pieced_value): ...here. Reduce to
11420 wrappers that just call rw_pieced_value.
11421
11422 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11423
11424 * dwarf2loc.c (write_pieced_value): When writing the data for a
11425 memory piece, use write_memory_with_notification instead of
11426 write_memory.
11427
11428 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11429
11430 * valops.c (read_value_memory): Change embedded_offset to
11431 represent a bit offset instead of a byte offset.
11432 * value.h (read_value_memory): Adjust comment.
11433
11434 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11435
11436 * dwarf2loc.c (read_pieced_value): Remove unnecessary variables
11437 dest_offset_bits and source_offset_bits.
11438 (write_pieced_value): Likewise.
11439
11440 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11441
11442 * dwarf2loc.c (read_pieced_value): Respect the piece offset, as
11443 given by DW_OP_bit_piece.
11444 (write_pieced_value): Likewise.
11445
11446 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11447
11448 * dwarf2loc.c (read_pieced_value): Move the buffer allocation and
11449 some other preparations to the places where sufficient information
11450 is available.
11451 (write_pieced_value): Likewise.
11452
11453 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11454
11455 * dwarf2loc.c (bits_to_bytes): New function.
11456 (read_pieced_value): Fix offset calculations for register pieces
11457 on big-endian targets.
11458 (write_pieced_value): Likewise.
11459
11460 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11461
11462 * dwarf2loc.c (read_pieced_value): Remove buffer_size variable.
11463 (write_pieced_value): Likewise.
11464
11465 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11466
11467 * dwarf2loc.c (write_pieced_value): When writing to a bit-field,
11468 transfer the source value's least significant bits, instead of its
11469 lowest-addressed ones. Rename type_len to max_offset.
11470 (read_pieced_value): Mirror above changes to write_pieced_value as
11471 applicable.
11472
11473 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11474
11475 * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY,
11476 truncate full bytes from dest_offset_bits before using it as an
11477 offset into the buffer.
11478
11479 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11480
11481 * dwarf2loc.c (write_pieced_value): Include transfer size in
11482 byte-wise check.
11483
11484 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11485
11486 * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the
11487 calculation of this_size.
11488
11489 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11490
11491 * dwarf2loc.c (read_pieced_value): Respect parent value's offset
11492 when targeting a bit-field.
11493 (write_pieced_value): Likewise.
11494
11495 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11496
11497 * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field.
11498 (allocate_piece_closure): Drop addr_size parameter.
11499 (dwarf2_evaluate_loc_desc_full): Adjust call to
11500 allocate_piece_closure.
11501
11502 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11503
11504 PR gdb/21226
11505 * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at
11506 the LSB end, independent of endianness.
11507
11508 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11509
11510 * dwarf2loc.c (write_pieced_value): Fix order of calculations for
11511 size capping.
11512
11513 2017-06-13 Yao Qi <yao.qi@linaro.org>
11514
11515 * mips-linux-nat.c: Move include features/mips*-linux.c to
11516 mips-linux-tdep.c.
11517 (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls
11518 to mips-linux-tdep.c.
11519 * mips-linux-tdep.c: Include features/mips*-linux.c
11520 (_initialize_mips_linux_tdep): Call initialize_tdesc_mips*
11521 functions.
11522 * mips-linux-tdep.h (tdesc_mips_linux): Declare.
11523 (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare.
11524 (tdesc_mips64_dsp_linux): Declare.
11525
11526 2017-06-12 Tom Tromey <tom@tromey.com>
11527
11528 * valprint.h (val_print_type_code_int): Remove.
11529 * valprint.c (generic_val_print_int): Always call
11530 val_print_scalar_formatted.
11531 (val_print_type_code_int): Remove.
11532 * printcmd.c (print_scalar_formatted): Handle options->format==0.
11533 * f-valprint.c (f_val_print): Use val_print_scalar_formatted.
11534 * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted.
11535 * ada-valprint.c (ada_val_print_num): Use
11536 val_print_scalar_formatted.
11537
11538 2017-06-12 Tom Tromey <tom@tromey.com>
11539
11540 * printcmd.c (print_scalar_formatted): Unify the two switches.
11541 Don't convert scalars to LONGEST.
11542
11543 2017-06-12 Tom Tromey <tom@tromey.com>
11544
11545 PR exp/16225:
11546 * valprint.h (print_decimal_chars): Update.
11547 * valprint.c (maybe_negate_by_bytes): New function.
11548 (print_decimal_chars): Add "is_signed" argument.
11549 * printcmd.c (print_scalar_formatted): Update.
11550
11551 2017-06-12 Tom Tromey <tom@tromey.com>
11552
11553 PR exp/16225:
11554 * valprint.h (print_binary_chars, print_hex_chars): Update.
11555 * valprint.c (val_print_type_code_int): Update.
11556 (print_binary_chars): Add "zero_pad" argument.
11557 (emit_octal_digit): New function.
11558 (print_octal_chars): Don't zero-pad.
11559 (print_decimal_chars): Likewise.
11560 (print_hex_chars): Add "zero_pad" argument.
11561 * sh64-tdep.c (sh64_do_fp_register): Update.
11562 * regcache.c (regcache::dump): Update.
11563 * printcmd.c (print_scalar_formatted): Update.
11564 * infcmd.c (default_print_one_register_info): Update.
11565
11566 2017-06-12 Pedro Alves <palves@redhat.com>
11567 Alan Hayward <alan.hayward@arm.com>
11568
11569 * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New.
11570 (mips_eabi_push_dummy_call): Rename local 'regsize' to
11571 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and
11572 use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it.
11573 Assert that abi_regsize bytes fit in 'ref_valbuf'.
11574
11575 2017-06-12 Pedro Alves <palves@redhat.com>
11576
11577 * dwarf2read.c (mapped_symtab::data): Now a vector of
11578 symtab_index_entry instead of vector of
11579 std::unique_ptr<symtab_index_entry>. All users adjusted to check
11580 whether an element's name is NULL instead of checking whether the
11581 element itself is NULL.
11582 (find_slot): Change return type. Adjust.
11583 (hash_expand, , add_index_entry, uniquify_cu_indices)
11584 (write_hash_table): Adjust.
11585
11586 2017-06-12 Pedro Alves <palves@redhat.com>
11587
11588 * dwarf2read.c (recursively_count_psymbols): New function.
11589 (write_psymtabs_to_index): Call it to compute number of psyms and
11590 pass estimate size of psyms_seen to unordered_set's ctor.
11591
11592 2017-06-12 Pedro Alves <palves@redhat.com>
11593
11594 * dwarf2read.c (write_hash_table): Check if key already exists
11595 before emplacing.
11596
11597 2017-06-12 Pedro Alves <palves@redhat.com>
11598
11599 * dwarf2read.c (data_buf::append_space): Rename to...
11600 (data_buf::grow): ... this, and make private. Adjust all callers.
11601 (data_buf::append_uint): New method.
11602 (add_address_entry, write_one_signatured_type)
11603 (write_psymtabs_to_index): Use it.
11604
11605 2017-06-12 Pedro Alves <palves@redhat.com>
11606
11607 * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete.
11608 (file_write (FILE *, const std::vector<Elem>&)): Delete.
11609 (data_buf::file_write): Call ::fwrite directly.
11610
11611 2017-06-12 Pedro Alves <palves@redhat.com>
11612
11613 * dwarf2read.c (uniquify_cu_indices): Use std::unique and
11614 std::vector::erase.
11615
11616 2017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11617
11618 Code cleanup: C++ify .gdb_index producer.
11619 * dwarf2read.c: Include <unordered_set> and <unordered_map>.
11620 (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type.
11621 (struct strtab_entry, hash_strtab_entry, eq_strtab_entry)
11622 (create_strtab, add_string): Remove.
11623 (file_write, data_buf): New.
11624 (struct symtab_index_entry): Use std::vector for cu_indices.
11625 (struct mapped_symtab): Use std::vector for data.
11626 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry)
11627 (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab):
11628 Remove.
11629 (find_slot): Change return type. Update it to the new data structures.
11630 (hash_expand, add_index_entry): Update it to the new data structures.
11631 (offset_type_compare): Remove.
11632 (uniquify_cu_indices): Update it to the new data structures.
11633 (c_str_view, c_str_view_hasher, vector_hasher): New.
11634 (add_indices_to_cpool): Remove.
11635 (write_hash_table): Update it to the new data structures.
11636 (struct psymtab_cu_index_map, hash_psymtab_cu_index)
11637 (eq_psymtab_cu_index): Remove.
11638 (psym_index_map): New typedef.
11639 (struct addrmap_index_data): Change addr_obstack pointer to data_buf
11640 reference and std::unordered_map for cu_index_htab.
11641 (add_address_entry, add_address_entry_worker, write_address_map)
11642 (write_psymbols): Update it to the new data structures.
11643 (write_obstack): Remove.
11644 (struct signatured_type_index_data): Change types_list to a data_buf
11645 reference and psyms_seen to a std::unordered_set reference.
11646 (write_one_signatured_type, recursively_write_psymbols)
11647 (write_psymtabs_to_index): Update it to the new data structures.
11648
11649 2017-06-11 Simon Marchi <simon.marchi@ericsson.com>
11650
11651 * NEWS (Changes since GDB 8.0): Announce {set,show} debug
11652 separate-debug-file commands.
11653 * symfile.h (separate_debug_file_debug): New global.
11654 * symfile.c (separate_debug_file_debug): New global.
11655 (separate_debug_file_exists, find_separate_debug_file): Add
11656 debug output.
11657 (_initialize_symfile): Add "set debug separate-debug-file"
11658 command.
11659 * build-id.c (build_id_to_debug_bfd,
11660 find_separate_debug_file_by_buildid): Add debug output.
11661
11662 2017-06-10 Simon Marchi <simon.marchi@polymtl.ca>
11663
11664 * gdbarch.sh (displaced_step_free_closure): Remove.
11665 * gdbarch.h, gdbarch.c: Re-generate.
11666 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set
11667 displaced_step_free_closure.
11668 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
11669 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
11670 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
11671 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
11672 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11673 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
11674 * arch-utils.h (simple_displaced_step_free_closure): Remove.
11675 * arch-utils.c (simple_displaced_step_free_closure): Remove.
11676 * infrun.c (displaced_step_clear): Call xfree instead of
11677 gdbarch_displaced_step_free_closure.
11678
11679 2017-06-08 Sergio Durigan Junior <sergiodj@redhat.com>
11680
11681 * common/common-utils.c (stringify_argv): Check for "arg[0] !=
11682 NULL".
11683
11684 2017-06-08 Alan Hayward <alan.hayward@arm.com>
11685
11686 * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add.
11687 (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE.
11688 (mn10300_push_dummy_call): Likewise.
11689
11690 2017-06-08 Alan Hayward <alan.hayward@arm.com>
11691
11692 * mi/mi-main.c (register_changed_p): Use value_contents_eq.
11693
11694 2017-06-08 Alan Hayward <alan.hayward@arm.com>
11695
11696 * mi/mi-main.c (register_changed_p): Use cooked_read_value.
11697
11698 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
11699
11700 * NEWS (Changes since GDB 8.0): Announce that GDBserver is now
11701 able to start inferiors using a shell.
11702 (New remote packets): Announce new packet "QStartupWithShell".
11703 * remote.c: Add PACKET_QStartupWithShell.
11704 (extended_remote_create_inferior): Handle new
11705 PACKET_QStartupWithShell.
11706 (remote_protocol_features) <QStartupWithShell>: New entry for
11707 PACKET_QStartupWithShell.
11708 (_initialize_remote): Call "add_packet_config_cmd" for
11709 QStartupShell.
11710
11711 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
11712 Pedro Alves <palves@redhat.com>
11713
11714 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h"
11715 and "nat/fork-inferior.h".
11716 * common/common-inferior.h: New file, with contents from
11717 "gdb/inferior.h".
11718 * commom/common-utils.c: Include "common-utils.h".
11719 (stringify_argv): New function.
11720 * common/common-utils.h (stringify_argv): New prototype.
11721 * configure.nat: Add "fork-inferior.o" as a dependency for
11722 "*linux*", "fbsd*" and "nbsd*" hosts.
11723 * corefile.c (get_exec_file): Update comment.
11724 * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior"
11725 instead of "startup_inferior".
11726 (darwin_create_inferior): Call "add_thread_silent" after
11727 "fork_inferior".
11728 * fork-child.c: Cleanup unnecessary includes.
11729 (SHELL_FILE): Move to "common/common-fork-child.c".
11730 (environ): Likewise.
11731 (exec_wrapper): Initialize.
11732 (get_exec_wrapper): New function.
11733 (breakup_args): Move to "common/common-fork-child.c"; rename to
11734 "breakup_args_for_exec".
11735 (escape_bang_in_quoted_argument): Move to
11736 "common/common-fork-child.c".
11737 (saved_ui): New variable.
11738 (prefork_hook): New function.
11739 (postfork_hook): Likewise.
11740 (postfork_child_hook): Likewise.
11741 (gdb_startup_inferior): Likewise.
11742 (fork_inferior): Move to "common/common-fork-child.c". Update
11743 function to support gdbserver.
11744 (startup_inferior): Likewise.
11745 * gdbcore.h (get_exec_file): Remove declaration.
11746 * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior"
11747 instead of "startup_inferior". Call "add_thread_silent" after
11748 "fork_inferior".
11749 * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h".
11750 (inf_ptrace_create_inferior): Call "gdb_startup_inferior"
11751 instead of "startup_inferior". Call "add_thread_silent" after
11752 "fork_inferior".
11753 * inferior.h: Include "common-inferior.h".
11754 (trace_start_error): Move to "common/common-utils.h".
11755 (trace_start_error_with_name): Likewise.
11756 (fork_inferior): Move prototype to "nat/fork-inferior.h".
11757 (startup_inferior): Likewise.
11758 (gdb_startup_inferior): New prototype.
11759 * nat/fork-inferior.c: New file, with contents from "fork-child.c".
11760 * nat/fork-inferior.h: New file.
11761 * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior"
11762 instead of "startup_inferior". Call "add_thread_silent" after
11763 "fork_inferior".
11764 * target.h (target_terminal_init): Move prototype to
11765 "target/target.h".
11766 (target_terminal_inferior): Likewise.
11767 (target_terminal_ours): Likewise.
11768 * target/target.h (target_terminal_init): New prototype, moved
11769 from "target.h".
11770 (target_terminal_inferior): Likewise.
11771 (target_terminal_ours): Likewise.
11772 * utils.c (gdb_flush_out_err): New function.
11773
11774 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
11775
11776 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h".
11777 * common/common-gdbthread.h: New file, with parts from
11778 "gdb/gdbthread.h".
11779 * gdbthread.h: Include "common-gdbthread.h".
11780 (switch_to_thread): Moved to "common/common-gdbthread.h".
11781
11782 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
11783
11784 * Makefile.in (SFILES): Add "common/job-control.c".
11785 (HFILES_NO_SRCDIR): Add "common/job-control.h".
11786 (COMMON_OBS): Add "job-control.o".
11787 * common/job-control.c: New file, with contents from
11788 "gdb/inflow.c".
11789 * common/job-control.h: New file, with contents from "terminal.h".
11790 * fork-child.c: Include "job-control.h".
11791 * inflow.c: Include "job-control.h".
11792 (gdb_setpgid): Move to "common/common-inflow.c".
11793 (_initialize_inflow): Move setting of "job_control" to
11794 "handle_job_control".
11795 * terminal.h (job_control): Moved to "common/common-terminal.h".
11796 (gdb_setpgid): Likewise.
11797 * top.c: Include "job_control.h".
11798 * utils.c: Likewise.
11799 (job_control): Moved to "job-control.c".
11800
11801 2017-06-07 Pedro Alves <palves@redhat.com>
11802
11803 * Makefile.in (SFILES): Add gdb_regex.c.
11804 (COMMON_OBS): Add gdb_regex.o.
11805 * ada-lang.c (ada_add_standard_exceptions)
11806 (ada_add_exceptions_from_frame, name_matches_regex)
11807 (ada_add_global_exceptions, ada_exceptions_list_1): Change regex
11808 parameter type to compiled_regex. Adjust.
11809 (ada_exceptions_list): Use compiled_regex.
11810 * break-catch-throw.c (exception_catchpoint::pattern): Now a
11811 std::unique_ptr<compiled_regex>.
11812 (exception_catchpoint::~exception_catchpoint): Remove regfree
11813 call.
11814 (check_status_exception_catchpoint): Adjust to use compiled_regex.
11815 (handle_gnu_v3_exceptions): Adjust to use compiled_regex.
11816 * breakpoint.c (solib_catchpoint::compiled): Now a
11817 std::unique_ptr<compiled_regex>.
11818 (solib_catchpoint::~solib_catchpoint): Remove regfree call.
11819 (check_status_catch_solib): Adjust to use compiled_regex.
11820 (add_solib_catchpoint): Adjust to use compiled_regex.
11821 * cli/cli-cmds.c (apropos_command): Use compiled_regex.
11822 * cli/cli-decode.c (apropos_cmd): Change regex parameter to
11823 compiled_regex reference. Adjust to use it.
11824 * cli/cli-decode.h: Remove struct re_pattern_buffer forward
11825 declaration. Include "gdb_regex.h".
11826 (apropos_cmd): Change regex parameter to compiled_regex reference.
11827 * gdb_regex.c: New file.
11828 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete
11829 declarations.
11830 (class compiled_regex): New.
11831 * linux-tdep.c: Include "common/gdb_optional.h".
11832 (struct mapping_regexes): New, factored out from
11833 mapping_is_anonymous_p, and adjusted to use compiled_regex.
11834 (mapping_is_anonymous_p): Use mapping_regexes wrapped in a
11835 gdb::optional and remove cleanups. Adjust to compiled_regex.
11836 * probe.c: Include "common/gdb_optional.h".
11837 (collect_probes): Use compiled_regex and gdb::optional and remove
11838 cleanups.
11839 * skip.c: Include "common/gdb_optional.h".
11840 (skiplist_entry::compiled_function_regexp): Now a
11841 gdb::optional<compiled_regex>.
11842 (skiplist_entry::compiled_function_regexp_is_valid): Delete field.
11843 (free_skiplist_entry): Remove regfree call.
11844 (compile_skip_regexp, skip_rfunction_p): Adjust to use
11845 compiled_regex and gdb::optional.
11846 * symtab.c: Include "common/gdb_optional.h".
11847 (search_symbols): Use compiled_regex and gdb::optional.
11848 * utils.c (do_regfree_cleanup, make_regfree_cleanup)
11849 (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved
11850 to gdb_regex.c.
11851
11852 2017-06-07 Alan Hayward <alan.hayward@arm.com>
11853
11854 * regcache.c (regcache::save): Avoid buffer use.
11855 (regcache::dump): Likewise.
11856
11857 2017-06-07 Alan Hayward <alan.hayward@arm.com>
11858
11859 * sh-tdep.c (sh_pseudo_register_read): Remove
11860 MAX_REGISTER_SIZE.
11861 (sh_pseudo_register_write): Likewise.
11862 * sh64-tdep.c (sh64_pseudo_register_read): Likewise.
11863 (sh64_pseudo_register_write): Likewise
11864
11865 2017-06-07 Alan Hayward <alan.hayward@arm.com>
11866
11867 * aarch64-tdep.c (aarch64_store_return_value): Use
11868 V_REGISTER_SIZE.
11869 (aarch64_pseudo_read_value): Likewise.
11870 (aarch64_pseudo_write): Likewise.
11871
11872 2017-06-06 Yao Qi <yao.qi@linaro.org>
11873
11874 * regformats/regdef.h (set_register_cache): Remove the
11875 declaration.
11876
11877 2017-06-06 Alan Hayward <alan.hayward@arm.com>
11878
11879 * frame.c (frame_unwind_register_signed): Use
11880 frame_unwind_register_value.
11881
11882 2017-06-06 Pedro Alves <palves@redhat.com>
11883
11884 PR breakpoints/21553
11885 * breakpoint.c (create_breakpoints_sal_default)
11886 (init_breakpoint_sal, create_breakpoint_sal): Use
11887 gdb::unique_xmalloc_ptr for string parameters.
11888 (create_breakpoint): Constify 'extra_string' and 'cond_string'
11889 parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
11890 (base_breakpoint_create_breakpoints_sal)
11891 (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
11892 (strace_marker_create_breakpoints_sal)
11893 (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
11894 string parameters.
11895 * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
11896 gdb::unique_xmalloc_ptr for string parameters.
11897 (create_breakpoint): Constify 'extra_string' and 'cond_string'
11898 parameters.
11899
11900 2017-06-06 Alan Hayward <alan.hayward@arm.com>
11901
11902 * alpha-tdep.c (alpha_register_to_value): Use
11903 get_frame_register_value.
11904 (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
11905
11906 2017-06-06 Alan Hayward <alan.hayward@arm.com>
11907
11908 * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
11909 (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
11910 (ia64_value_to_register): Likewise.
11911 (ia64_extract_return_value): Likewise.
11912 (ia64_store_return_value): Likewise.
11913 (ia64_push_dummy_call): Likewise.
11914
11915 2017-06-04 Joel Brobecker <brobecker@adacore.com>
11916
11917 GDB 8.0 released.
11918
11919 2017-06-03 Simon Marchi <simon.marchi@ericsson.com>
11920
11921 * x86-linux-nat.c (struct arch_lwp_info): Remove.
11922
11923 2017-06-03 Simon Marchi <simon.marchi@polymtl.ca>
11924
11925 * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
11926 parameter.
11927 (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
11928
11929 2017-06-02 Simon Marchi <simon.marchi@ericsson.com>
11930
11931 * event-loop.c (poll_timers): Unallocate timer using delete
11932 instead of xfree.
11933
11934 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
11935
11936 * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
11937 (struct breakpoint) <~breakpoint>: New.
11938 (struct watchpoint): Inherit from breakpoint.
11939 <~watchpoint>: New.
11940 <base>: Remove.
11941 (struct tracepoint): Inherit from breakpoint.
11942 <base>: Remove.
11943 * breakpoint.c (longjmp_breakpoint_ops): Remove.
11944 (struct longjmp_breakpoint): Inherit from breakpoint.
11945 <~longjmp_breakpoint>: New.
11946 <base>: Remove.
11947 (new_breakpoint_from_type): Remove casts.
11948 (watchpoint_in_thread_scope): Remove reference to base field.
11949 (watchpoint_del_at_next_stop): Likewise.
11950 (update_watchpoint): Likewise.
11951 (watchpoint_check): Likewise.
11952 (bpstat_check_watchpoint): Likewise.
11953 (set_longjmp_breakpoint): Likewise.
11954 (struct fork_catchpoint): Inherit from breakpoint.
11955 <base>: Remove.
11956 (struct solib_catchpoint): Inherit from breakpoint.
11957 <~solib_catchpoint>: New.
11958 <base>: Remove.
11959 (dtor_catch_solib): Change to ...
11960 (solib_catchpoint::~solib_catchpoint): ... this.
11961 (breakpoint_hit_catch_solib): Remove reference to base field.
11962 (add_solib_catchpoint): Likewise.
11963 (create_fork_vfork_event_catchpoint): Likewise.
11964 (struct exec_catchpoint): Inherit from breakpoint.
11965 <~exec_catchpoint>: New.
11966 <base>: Remove.
11967 (dtor_catch_exec): Change to ...
11968 (exec_catchpoint::~exec_catchpoint): ... this.
11969 (dtor_watchpoint): Change to ...
11970 (watchpoint::~watchpoint): ... this.
11971 (watch_command_1): Remove reference to base field.
11972 (catch_exec_command_1): Likewise.
11973 (base_breakpoint_dtor): Change to ...
11974 (breakpoint::~breakpoint): ... this.
11975 (base_breakpoint_ops): Remove dtor field value.
11976 (longjmp_bkpt_dtor): Change to ...
11977 (longjmp_breakpoint::~longjmp_breakpoint): ... this.
11978 (strace_marker_create_breakpoints_sal): Remove reference to base
11979 field.
11980 (delete_breakpoint): Don't manually call breakpoint destructor.
11981 (create_tracepoint_from_upload): Remove reference to base field.
11982 (trace_pass_set_count): Likewise.
11983 (initialize_breakpoint_ops): Don't initialize
11984 momentary_breakpoint_ops, don't set dtors.
11985 * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
11986 <~ada_catchpoint>: New.
11987 <base>: Remove.
11988 (create_excep_cond_exprs): Remove reference to base field.
11989 (dtor_exception): Change to ...
11990 (ada_catchpoint::~ada_catchpoint): ... this.
11991 (dtor_catch_exception): Remove.
11992 (dtor_catch_exception_unhandled): Remove.
11993 (dtor_catch_assert): Remove.
11994 (create_ada_exception_catchpoint): Remove reference to base
11995 field.
11996 (initialize_ada_catchpoint_ops): Don't set dtors.
11997 * break-catch-sig.c (struct signal_catchpoint): Inherit from
11998 breakpoint.
11999 <~signal_catchpoint>: New.
12000 <base>: Remove.
12001 (signal_catchpoint_dtor): Change to ...
12002 (signal_catchpoint::~signal_catchpoint): ... this.
12003 (create_signal_catchpoint): Remove reference to base field.
12004 (initialize_signal_catchpoint_ops): Don't set dtor.
12005 * break-catch-syscall.c (struct syscall_catchpoint): Inherit
12006 from breakpoint.
12007 <~syscall_catchpoint>: New.
12008 <base>: Remove.
12009 (dtor_catch_syscall): Change to ...
12010 (syscall_catchpoint::~syscall_catchpoint): ... this.
12011 (create_syscall_event_catchpoint): Remove reference to base
12012 field.
12013 (initialize_syscall_catchpoint_ops): Don't set dtor.
12014 * break-catch-throw.c (struct exception_catchpoint): Inherit
12015 from breakpoint.
12016 <~exception_catchpoint>: New.
12017 <base>: Remove.
12018 (dtor_exception_catchpoint): Change to ...
12019 (exception_catchpoint::~exception_catchpoint): ... this.
12020 (handle_gnu_v3_exceptions): Remove reference to base field.
12021 (initialize_throw_catchpoint_ops): Don't set dtor.
12022 * ctf.c (ctf_get_traceframe_address): Remove reference to base
12023 field.
12024 * remote.c (remote_get_tracepoint_status): Likewise.
12025 * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
12026 * tracefile.c (tracefile_fetch_registers): Likewise.
12027 * tracepoint.c (actions_command): Likewise.
12028 (validate_actionline): Likewise.
12029 (tfind_1): Likewise.
12030 (get_traceframe_location): Likewise.
12031 (find_matching_tracepoint_location): Likewise.
12032 (parse_tracepoint_status): Likewise.
12033 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
12034
12035 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
12036
12037 * breakpoint.c (struct longjmp_breakpoint): New struct.
12038 (is_tracepoint_type): Change return type to bool.
12039 (is_longjmp_type): New function.
12040 (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
12041 (set_raw_breakpoint_without_location): Use
12042 new_breakpoint_from_type.
12043 (set_raw_breakpoint): Likewise.
12044
12045 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
12046
12047 * breakpoint.c (new_breakpoint_from_type): New function.
12048 (create_breakpoint_sal): Use new_breakpoint_from_type and
12049 unique_ptr.
12050 (create_breakpoint): Likewise.
12051
12052 2017-05-31 Simon Marchi <simon.marchi@ericsson.com>
12053
12054 * memattr.c (mem_info_command): Rename to ...
12055 (info_mem_command): ... this.
12056 (mem_enable_command): Rename to ...
12057 (enable_mem_command): ... this.
12058 (mem_disable_command): Rename to ...
12059 (disable_mem_command): ... this.
12060 (mem_delete_command): Rename to ...
12061 (delete_mem_command): ... this.
12062 (_initialize_mem): Adjust function names.
12063
12064 2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
12065
12066 * btrace.c (handle_pt_insn_events): New.
12067 (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into
12068 STATUS. Split into this and ...
12069 (handle_pt_insn_event_flags): ... this.
12070
12071 2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
12072
12073 * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
12074 and struct pt_insn.resynced.
12075 * configure: Regenerated.
12076 * config.in: Regenerated.
12077
12078 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12079
12080 * btrace.c (ftrace_find_call_by_number): New function.
12081 (ftrace_new_function): Store objects, not pointers.
12082 (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
12083 ftrace_new_gap, ftrace_update_function,
12084 ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
12085 btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
12086 btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
12087 btrace_ends_with_single_insn, btrace_call_get): Account for
12088 btrace_thread_info::functions now storing objects.
12089 * btrace.h (struct btrace_thread_info): Add constructor.
12090 (struct btrace_thread_info) <functions>: Make std::vector.
12091 (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
12092 Initialize with default values.
12093 * record-btrace.c (record_btrace_frame_sniffer): Account for
12094 btrace_thread_info::functions now storing objects.
12095
12096 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12097
12098 * btrace.c: Remove typedef bfun_s.
12099 (ftrace_new_gap): Directly add gaps to the list of gaps.
12100 (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
12101 ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
12102 btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
12103 instead of gdb VEC.
12104
12105 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12106
12107 * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
12108 ftrace_bridge_gap): Replace references to btrace_thread_info::segment
12109 with btrace_thread_info::next_segment and
12110 btrace_thread_info::prev_segment.
12111 * btrace.h: Remove struct btrace_func_link.
12112 (struct btrace_function): Replace pair of function segment pointers
12113 with pair of indices.
12114 * python/py-record-btrace.c (btpy_call_prev_sibling,
12115 btpy_call_next_sibling): Replace references to
12116 btrace_thread_info::segment with btrace_thread_info::next_segment and
12117 btrace_thread_info::prev_segment.
12118 * record-btrace.c (record_btrace_frame_this_id): Use
12119 btrace_find_call_by_number.
12120
12121 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12122
12123 * btrace.c (ftrace_new_function, ftrace_fixup_level,
12124 ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
12125 btrace_insn_next, btrace_insn_prev): Remove references to
12126 btrace_thread_info::flow.
12127 * btrace.h (struct btrace_function): Remove FLOW.
12128
12129 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12130
12131 * btrace.c (ftrace_find_call_by_number): New function.
12132 (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
12133 ftrace_get_caller, ftrace_find_call, ftrace_new_return,
12134 ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
12135 ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
12136 index.
12137 * btrace.h (struct btrace_function): Turn UP into an index.
12138 * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
12139 as an index.
12140 * record-btrace.c (record_btrace_frame_unwind_stop_reason,
12141 record_btrace_frame_prev_register, record_btrace_frame_sniffer,
12142 record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
12143
12144 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12145
12146 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
12147 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
12148 ftrace_update_function, ftrace_compute_global_level_offset,
12149 btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
12150 btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
12151 btrace_insn_end, btrace_is_empty): Remove references to
12152 btrace_thread_info::begin and btrace_thread_info::end.
12153 * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
12154 (struct btrace_thread_info) <functions>: Adjust comment.
12155 * record-btrace.c (record_btrace_start_replaying): Remove reference to
12156 btrace_thread_info::begin.
12157
12158 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12159
12160 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
12161 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
12162 ftrace_update_function): Remove arguments that implicitly were always
12163 BTINFO->END.
12164 (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
12165 Don't pass BTINFO->END.
12166
12167 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12168
12169 * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
12170 btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
12171 btrace_find_insn_by_number): Replace function segment pointer with
12172 index.
12173 (btrace_insn_cmp): Simplify.
12174 * btrace.h: (struct btrace_insn_iterator) Rename index to
12175 insn_index. Replace function segment pointer with index into function
12176 segment vector.
12177 * record-btrace.c (record_btrace_call_history): Replace function
12178 segment pointer use with index.
12179 (record_btrace_frame_sniffer): Retrieve function call segment through
12180 vector.
12181 (record_btrace_set_replay): Remove defunc't safety check.
12182
12183 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12184
12185 * btrace.c (btrace_ends_with_single_insn): New function.
12186 (btrace_call_get, btrace_call_number, btrace_call_begin,
12187 btrace_call_end, btrace_call_next, btrace_call_prev,
12188 btrace_find_call_by_number): Use index into call segment vector
12189 instead of pointer.
12190 (btrace_call_cmp): Simplify.
12191 * btrace.h (struct btrace_call_iterator): Replace function call segment
12192 pointer with index into vector.
12193 * record-btrace.c (record_btrace_call_history): Use index instead of
12194 pointer.
12195
12196 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12197
12198 * btrace.c (btrace_insn_begin, btrace_insn_end,
12199 btrace_find_insn_by_number): Add btinfo to iterator.
12200 * btrace.h (struct btrace_insn_iterator): Add btinfo.
12201
12202 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12203
12204 * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
12205 and save pointers directly.
12206 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
12207 ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
12208 ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for
12209 changed signature of functions.
12210 (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
12211 (btrace_fetch): Remove code that adds btrace_function pointers to
12212 vector of btrace_functions.
12213 (btrace_clear): Simplify freeing vector of btrace_functions.
12214
12215 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12216
12217 * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
12218 Replace VEC_* with std::vector functions.
12219 * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
12220 (struct btrace_thread_info)<functions>: Change type to std::vector.
12221
12222 2017-05-30 Simon Marchi <simon.marchi@ericsson.com>
12223
12224 * NEWS (Changes in GDB 8.0): Remove extra empty line. Move
12225 "Removed targets and native configurations" up. Merge duplicate
12226 "New commands" sub-sections. Add "New options" sub-sections.
12227
12228 2017-05-26 Alan Hayward <alan.hayward@arm.com>
12229
12230 * defs.h (copy_integer_to_size): New declaration.
12231 * findvar.c (copy_integer_to_size): New function.
12232 (do_cint_test): New selftest function.
12233 (copy_integer_to_size_test): Likewise.
12234 (_initialize_findvar): Likewise.
12235 * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
12236 (mips_fbsd_collect_reg): Use raw_collect_integer.
12237 * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
12238 (mips64_fill_gregset): Use raw_collect_integer
12239 (mips64_fill_fpregset): Use raw_supply_integer.
12240 * regcache.c (regcache::raw_supply_integer): New function.
12241 (regcache::raw_collect_integer): Likewise.
12242 * regcache.h: (regcache::raw_supply_integer): New declaration.
12243 (regcache::raw_collect_integer): Likewise.
12244
12245 2017-05-24 Yao Qi <yao.qi@linaro.org>
12246
12247 * Makefile.in (SFILES): Add gdbarch-selftests.c.
12248 (COMMON_OBS): Add gdbarch-selftests.o.
12249 * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
12250 * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
12251 * gdbarch-selftests.c: New file.
12252 * regcache.h (regcache) <~regcache>: Mark it virtual if
12253 GDB_SELF_TEST.
12254 <raw_write>: Likewise.
12255
12256 2017-05-24 Yao Qi <yao.qi@linaro.org>
12257
12258 * regcache.c (current_regcache): Change it to
12259 regcache::current_regcache.
12260 (regcache_observer_target_changed): Update.
12261 (regcache_thread_ptid_changed): Make it a regcache static
12262 method.
12263 (regcache_thread_ptid_changed): Update.
12264 (class regcache_access): New.
12265 (current_regcache_test): Update.
12266 (_initialize_regcache): Update.
12267 * regcache.h: Include forward_list.
12268 (regcache): Declare regcache_thread_ptid_changed and declare
12269 registers_changed_ptid as friend.
12270
12271 2017-05-24 Yao Qi <yao.qi@linaro.org>
12272
12273 * i387-tdep.c (i387_register_to_value): Use register_size
12274 instead of TYPE_LENGTH.
12275 * m68k-tdep.c (m68k_register_to_value): Likewise.
12276
12277 2017-05-24 Yao Qi <yao.qi@linaro.org>
12278
12279 * i387-tdep.c (i387_convert_register_p): Return false if type
12280 code isn't TYPE_CODE_FLT.
12281
12282 2017-05-24 Yao Qi <yao.qi@linaro.org>
12283
12284 * alpha-tdep.c (alpha_convert_register_p): Return true if type
12285 length is 4.
12286 (alpha_register_to_value): Remove type length check.
12287 (alpha_value_to_register): Likewise.
12288
12289 2017-05-24 Yao Qi <yao.qi@linaro.org>
12290
12291 * ia64-tdep.c (ia64_convert_register_p): Check type's code is
12292 TYPE_CODE_FLT.
12293
12294 2017-05-24 Yao Qi <yao.qi@linaro.org>
12295
12296 * m68k-tdep.c (m68k_convert_register_p): Check type's code is
12297 TYPE_CODE_FLT or not.
12298
12299 2017-05-24 Yao Qi <yao.qi@linaro.org>
12300
12301 * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
12302 * avr-tdep.c (avr_gdbarch_init): Likewise.
12303 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12304 * cris-tdep.c (cris_gdbarch_init): Likewise.
12305 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
12306 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12307 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12308 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
12309 * mep-tdep.c (mep_gdbarch_init): Likewise.
12310 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12311 * mips-tdep.c (mips_gdbarch_init): Likewise.
12312 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
12313 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12314 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
12315 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12316 * v850-tdep.c (v850_gdbarch_init): Likewise.
12317
12318 2017-05-24 Yao Qi <yao.qi@linaro.org>
12319
12320 * selftest-arch.c (tests_with_arch): Call registers_changed
12321 and reinit_frame_cache.
12322 * selftest.c (run_self_tests): Likewise.
12323
12324 2017-05-24 Yao Qi <yao.qi@linaro.org>
12325
12326 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.
12327 (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn.
12328
12329 2017-05-24 Yao Qi <yao.qi@linaro.org>
12330
12331 * rl78-tdep.c (rl78_gdbarch_init): Don't call
12332 set_gdbarch_print_insn.
12333
12334 2017-05-24 Yao Qi <yao.qi@linaro.org>
12335
12336 * h8300-tdep.c (h8300_gdbarch_init): Don't call
12337 set_gdbarch_print_insn.
12338
12339 2017-05-24 Yao Qi <yao.qi@linaro.org>
12340
12341 * alpha-tdep.c (alpha_gdbarch_init): Don't call
12342 set_gdbarch_print_insn.
12343 * arc-tdep.c (arc_gdbarch_init): Likewise.
12344 * arch-utils.c: include dis-asm.h.
12345 (default_print_insn): New function.
12346 * arch-utils.h (default_print_insn): Declare.
12347 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
12348 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12349 * cris-tdep.c (cris_delayed_get_disassembler): Remove.
12350 (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
12351 * frv-tdep.c (frv_gdbarch_init): Likewise.
12352 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
12353 * gdbarch.sh (print_insn): Use default_print_insn.
12354 * gdbarch.c: Regenerated.
12355 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12356 * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
12357 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12358 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
12359 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12360 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
12361 (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
12362 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
12363 * m88k-tdep.c (m88k_gdbarch_init): Likewise.
12364 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12365 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
12366 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12367 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
12368 * mt-tdep.c (mt_gdbarch_init): Likewise.
12369 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
12370 * nios2-tdep.c (nios2_print_insn): Remove.
12371 (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
12372 * rx-tdep.c (rx_gdbarch_init): Likewise.
12373 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12374 * score-tdep.c (score_print_insn): Remove.
12375 (score_gdbarch_init): Don't call set_gdbarch_print_insn.
12376 * sh-tdep.c (sh_gdbarch_init): Likewise.
12377 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12378 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12379 * tic6x-tdep.c (tic6x_print_insn): Remove.
12380 (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
12381 * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
12382 * v850-tdep.c (v850_gdbarch_init): Likewise.
12383 * vax-tdep.c (vax_gdbarch_init): Likewise.
12384 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
12385 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
12386
12387 2017-05-23 John Baldwin <jhb@FreeBSD.org>
12388
12389 * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
12390 (MIPS_FP0_REGNUM): Remove.
12391 (MIPS_FSR_REGNUM): Remove.
12392 (mips_fbsd_supply_fpregs): Use mips_regnum.
12393 (mips_fbsd_supply_gregs): Likewise.
12394 (mips_fbsd_collect_fpregs): Likewise.
12395 (mips_fbsd_collect_gregs): Likewise.
12396
12397 2017-05-23 John Baldwin <jhb@FreeBSD.org>
12398
12399 * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
12400 (getpfpregs_supplies): New function.
12401 (mips_fbsd_fetch_inferior_registers): Remove early exit and use
12402 getfpregs_supplies.
12403 (mips_fbsd_store_inferior_registers): Likewise.
12404
12405 2017-05-22 Pedro Alves <palves@redhat.com>
12406
12407 * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
12408 maintainer.
12409
12410 2017-05-22 Alan Hayward <alan.hayward@arm.com>
12411
12412 * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
12413 (store_register): Likewise.
12414 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
12415 (get_decimal_float_return_value): Likewise.
12416 (do_ppc_sysv_return_value): Likewise.
12417 (ppc64_sysv_abi_push_integer): Likewise.
12418 (ppc64_sysv_abi_push_freg): Likewise.
12419 (ppc64_sysv_abi_return_value_base): Likewise.
12420 (ppc64_sysv_abi_return_value): Likewise.
12421 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
12422 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
12423 * rs6000-nat.c: Likewise.
12424 * rs6000-tdep.c (rs6000_register_to_value): Likewise.
12425 (rs6000_value_to_register): Likewise.
12426 * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
12427
12428 2017-05-21 Tom Tromey <tom@tromey.com>
12429
12430 PR rust/21466:
12431 * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
12432 arrays as "[T]", not "[T; ]".
12433
12434 2017-05-19 Tom Tromey <tom@tromey.com>
12435
12436 PR rust/21484:
12437 * rust-lang.c (exp_descriptor_rust): New function.
12438 (rust_language_defn): Use it.
12439 * p-lang.c (pascal_language_defn): Update.
12440 * opencl-lang.c (opencl_language_defn): Update.
12441 * objc-lang.c (objc_language_defn): Update.
12442 * m2-lang.c (m2_language_defn): Update.
12443 * language.h (struct language_defn)
12444 <la_watch_location_expression>: New member.
12445 * language.c (unknown_language_defn, auto_language_defn)
12446 (local_language_defn): Update.
12447 * go-lang.c (go_language_defn): Update.
12448 * f-lang.c (f_language_defn): Update.
12449 * d-lang.c (d_language_defn): Update.
12450 * c-lang.h (c_watch_location_expression): Declare.
12451 * c-lang.c (c_watch_location_expression): New function.
12452 (c_language_defn, cplus_language_defn, asm_language_defn)
12453 (minimal_language_defn): Use it.
12454 * breakpoint.c (watch_command_1): Call
12455 la_watch_location_expression.
12456 * ada-lang.c (ada_language_defn): Update.
12457
12458 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12459
12460 PR tui/21482
12461 * gdb_curses.h (NOMACROS): Define.
12462 (NCURSES_NOMACROS): Define.
12463
12464 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12465
12466 PR tui/21482
12467 * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
12468 arg to char *.
12469 * tui/tui-wingeneral.c (box_win): Likewise.
12470 * tui/tui-winsource.c (tui_erase_source_content): Likewise.
12471 (tui_show_source_line): Likewise.
12472 (tui_show_exec_info_content): Likewise.
12473
12474 2017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
12475
12476 * sparc-tdep.c (sparc_structure_return_p)
12477 (sparc_arg_on_registers_p): New functions.
12478 (sparc32_store_arguments): Use them.
12479 * sparc64-tdep.c (sparc64_16_byte_align_p)
12480 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
12481 Handle TYPE_CODE_ARRAY.
12482
12483 2017-05-17 Yao Qi <yao.qi@linaro.org>
12484
12485 * cli/cli-decode.c (add_alias_cmd): New function.
12486 * command.h (add_alias_cmd): Declare.
12487 * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
12488 instead call add_alias_cmd.
12489
12490 2017-05-17 Pedro Alves <palves@redhat.com>
12491
12492 * Makefile.in (nat_extra_makefile_frag): Rename to ...
12493 (nat_makefile_frag): ... this. All references updated.
12494 * configure.ac: Likewise.
12495 * configure.nat: Likewise. Enhance comments.
12496 * configure: Regenerate.
12497
12498 2017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12499
12500 * procfs.c (procfs_create_inferior): Change prototype to match
12501 definition.
12502
12503 2017-05-13 Eli Zaretskii <eliz@gnu.org>
12504
12505 * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
12506 C++ compiler warning.
12507
12508 2017-05-12 Tom Tromey <tom@tromey.com>
12509
12510 PR rust/21483:
12511 * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
12512 recurse, just call value_struct_elt directly.
12513
12514 2017-05-12 Tom Tromey <tom@tromey.com>
12515
12516 * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
12517 OP_RUST_ARRAY>: Fix.
12518
12519 2017-05-12 Tom Tromey <tom@tromey.com>
12520
12521 * rust-lang.c (rust_print_subexp): Replace "return" with "break".
12522
12523 2017-05-09 Yao Qi <yao.qi@linaro.org>
12524
12525 * regcache.c: Include <forward_list>.
12526 (struct regcache_list): Remove.
12527 (current_regcache): Update.
12528 (get_thread_arch_aspace_regcache): Update for std::forward_list.
12529 (regcache_thread_ptid_changed): Likewise.
12530 (registers_changed_ptid): Likewise.
12531 (current_regcache_size): Likewise.
12532
12533 2017-05-09 Yao Qi <yao.qi@linaro.org>
12534
12535 * regcache.c [GDB_SELF_TEST]: Include selftest.h.
12536 (current_regcache_size): New function.
12537 (current_regcache_test): New function.
12538 (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
12539
12540 2017-05-08 Alan Hayward <alan.hayward@arm.com>
12541
12542 * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
12543 (print_gp_register_row): Use get_frame_register_value.
12544
12545 2017-05-08 Alan Hayward <alan.hayward@arm.com>
12546
12547 * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
12548 (mips_supply_fpregset): Likewise.
12549 (mips64_supply_gregset): Likewise.
12550
12551 2017-05-08 Alan Hayward <alan.hayward@arm.com>
12552
12553 * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
12554 regcache->raw_supply_zeroed.
12555
12556 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
12557
12558 * configure.nat: Rearrange 'case' statements to match
12559 host before cpu.
12560
12561 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
12562
12563 * Makefile.in: Remove "@host_makefile_frag@". Add variables
12564 NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
12565 NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
12566 "@nat_extra_makefile_frag@".
12567 (Makefile): Remove dependency on "@frags@".
12568 ($(GNULIB_BUILDDIR)/Makefile): Likewise.
12569 (data-directory/Makefile): Likewise.
12570 * config/aarch64/linux.mh: Deleted; moved contents to
12571 "gdb/configure.nat".
12572 * config/alpha/alpha-linux.mh: Likewise.
12573 * config/alpha/nbsd.mh: Likewise.
12574 * config/arm/linux.mh: Likewise.
12575 * config/arm/nbsdelf.mh: Likewise.
12576 * config/i386/cygwin.mh: Likewise.
12577 * config/i386/cygwin64.mh: Likewise.
12578 * config/i386/darwin.mh: Likewise.
12579 * config/i386/fbsd.mh: Likewise.
12580 * config/i386/fbsd64.mh: Likewise.
12581 * config/i386/go32.mh: Likewise.
12582 * config/i386/i386gnu.mh: Likewise.
12583 * config/i386/i386sol2.mh: Likewise.
12584 * config/i386/linux.mh: Likewise.
12585 * config/i386/linux64.mh: Likewise.
12586 * config/i386/mingw.mh: Likewise.
12587 * config/i386/mingw64.mh: Likewise.
12588 * config/i386/nbsd64.mh: Likewise.
12589 * config/i386/nbsdelf.mh: Likewise.
12590 * config/i386/nto.mh: Likewise.
12591 * config/i386/obsd.mh: Likewise.
12592 * config/i386/obsd64.mh: Likewise.
12593 * config/i386/sol2-64.mh: Likewise.
12594 * config/ia64/linux.mh: Likewise.
12595 * config/m32r/linux.mh: Likewise.
12596 * config/m68k/linux.mh: Likewise.
12597 * config/m68k/nbsdelf.mh: Likewise.
12598 * config/m68k/obsd.mh: Likewise.
12599 * config/m88k/obsd.mh: Likewise.
12600 * config/mips/fbsd.mh: Likewise.
12601 * config/mips/linux.mh: Likewise.
12602 * config/mips/nbsd.mh: Likewise.
12603 * config/mips/obsd64.mh: Likewise.
12604 * config/pa/linux.mh: Likewise.
12605 * config/pa/nbsd.mh: Likewise.
12606 * config/pa/obsd.mh: Likewise.
12607 * config/powerpc/aix.mh: Likewise.
12608 * config/powerpc/fbsd.mh: Likewise.
12609 * config/powerpc/linux.mh: Likewise.
12610 * config/powerpc/nbsd.mh: Likewise.
12611 * config/powerpc/obsd.mh: Likewise.
12612 * config/powerpc/ppc64-linux.mh: Likewise.
12613 * config/powerpc/spu-linux.mh: Likewise.
12614 * config/s390/linux.mh: Likewise.
12615 * config/sh/nbsd.mh: Likewise.
12616 * config/sparc/fbsd.mh: Likewise.
12617 * config/sparc/linux.mh: Likewise.
12618 * config/sparc/linux64.mh: Likewise.
12619 * config/sparc/nbsd64.mh: Likewise.
12620 * config/sparc/nbsdelf.mh: Likewise.
12621 * config/sparc/obsd64.mh: Likewise.
12622 * config/sparc/sol2.mh: Likewise.
12623 * config/tilegx/linux.mh: Likewise.
12624 * config/vax/nbsdelf.mh: Likewise.
12625 * config/vax/obsd.mh: Likewise.
12626 * config/xtensa/linux.mh: Likewise.
12627 * config/i386/i386gnu.mn: New file, with excerpts from
12628 "config/i386/i386gnu.mh".
12629 * configure: Regenerate.
12630 * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
12631 *.mh files under "gdb/config".
12632 * configure.nat: New file, with contents from the
12633 "gdb/config/*/*.mh" files.
12634
12635 2017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
12636
12637 * btrace.c (btrace_clear): Free insn vector.
12638
12639 2017-05-05 Pedro Alves <palves@redhat.com>
12640
12641 * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
12642 * configure: Regenerate.
12643
12644 2017-05-04 Pedro Alves <palves@redhat.com>
12645
12646 * Makefile.in (SFILES): Add progspace-and-thread.c.
12647 (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
12648 (COMMON_OBS): Add progspace-and-thread.o.
12649 * breakpoint.c: Include "progspace-and-thread.h".
12650 (update_inserted_breakpoint_locations)
12651 (insert_breakpoint_locations, create_longjmp_master_breakpoint):
12652 Use scoped_restore_current_pspace_and_thread.
12653 (create_std_terminate_master_breakpoint): Use
12654 scoped_restore_current_program_space.
12655 (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
12656 (print_breakpoint_location): Use
12657 scoped_restore_current_program_space.
12658 (bp_loc_is_permanent): Use
12659 scoped_restore_current_pspace_and_thread.
12660 (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
12661 (download_tracepoint_locations): Use
12662 scoped_restore_current_pspace_and_thread.
12663 (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
12664 * exec.c (exec_close_1): Use scoped_restore_current_program_space.
12665 (enum step_over_calls_kind): Moved from inferior.h.
12666 (class scoped_restore_current_thread): New class.
12667 * gdbthread.h (make_cleanup_restore_current_thread): Delete
12668 declaration.
12669 (scoped_restore_current_thread): New class.
12670 * infcmd.c: Include "common/gdb_optional.h".
12671 (continue_1, proceed_after_attach): Use
12672 scoped_restore_current_thread.
12673 (notice_new_inferior): Use scoped_restore_current_thread.
12674 * inferior.c: Include "progspace-and-thread.h".
12675 (restore_inferior, save_current_inferior): Delete.
12676 (add_inferior_command, clone_inferior_command): Use
12677 scoped_restore_current_pspace_and_thread.
12678 * inferior.h (scoped_restore_current_inferior): New class.
12679 * infrun.c: Include "progspace-and-thread.h" and
12680 "common/gdb_optional.h".
12681 (follow_fork_inferior): Use
12682 scoped_restore_current_pspace_and_thread.
12683 (scoped_restore_exited_inferior): New class.
12684 (handle_vfork_child_exec_or_exit): Use
12685 scoped_restore_exited_inferior,
12686 scoped_restore_current_pspace_and_thread,
12687 scoped_restore_current_thread and scoped_restore.
12688 (fetch_inferior_event): Use scoped_restore_current_thread.
12689 * linespec.c (decode_line_full, decode_line_1): Use
12690 scoped_restore_current_program_space.
12691 * mi/mi-main.c: Include "progspace-and-thread.h".
12692 (exec_continue): Use scoped_restore_current_thread.
12693 (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
12694 (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
12695 * proc-service.c (ps_pglobal_lookup): Use
12696 scoped_restore_current_program_space.
12697 * progspace-and-thread.c: New file.
12698 * progspace-and-thread.h: New file.
12699 * progspace.c (release_program_space, clone_program_space): Use
12700 scoped_restore_current_program_space.
12701 (restore_program_space, save_current_program_space)
12702 (save_current_space_and_thread): Delete.
12703 (switch_to_program_space_and_thread): Moved to
12704 progspace-and-thread.c.
12705 * progspace.h (save_current_program_space)
12706 (save_current_space_and_thread): Delete declarations.
12707 (scoped_restore_current_program_space): New class.
12708 * remote.c (remote_btrace_maybe_reopen): Use
12709 scoped_restore_current_thread.
12710 * symtab.c: Include "progspace-and-thread.h".
12711 (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
12712 * thread.c (print_thread_info_1): Use
12713 scoped_restore_current_thread.
12714 (struct current_thread_cleanup): Delete.
12715 (do_restore_current_thread_cleanup)
12716 (restore_current_thread_cleanup_dtor): Rename/convert both to ...
12717 (scoped_restore_current_thread::~scoped_restore_current_thread):
12718 ... this new dtor.
12719 (make_cleanup_restore_current_thread): Rename/convert to ...
12720 (scoped_restore_current_thread::scoped_restore_current_thread):
12721 ... this new ctor.
12722 (thread_apply_all_command): Use scoped_restore_current_thread.
12723 (thread_apply_command): Use scoped_restore_current_thread.
12724 * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
12725 * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
12726
12727 2017-05-04 Pedro Alves <palves@redhat.com>
12728
12729 * thread.c (make_cleanup_restore_current_thread): Move
12730 find_thread_ptid call before the is_stopped call. Assert that the
12731 thread is found. Replace is_stopped call by checking the thread's
12732 state directly. Remove unnecessary NULL-thread check.
12733
12734 2017-05-04 Pedro Alves <palves@redhat.com>
12735
12736 * corelow.c (thread_section_name): New class.
12737 (get_core_register_section, get_core_siginfo): Use it.
12738
12739 2017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
12740
12741 * corelow.c (sniff_core_bfd): Remove extra semicolon.
12742 (get_core_register_section): Remove xfree of NULL pointer.
12743
12744 2017-05-03 Alan Hayward <alan.hayward@arm.com>
12745
12746 * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed.
12747 * regcache.c (regcache::raw_supply_zeroed): New function.
12748 * regcache.h (regcache::raw_supply_zeroed): New declaration.
12749
12750 2017-05-03 Simon Marchi <simon.marchi@ericsson.com>
12751
12752 * gdbarch.sh: Remove commented out definition of
12753 TARGET_CHAR_BIT.
12754 * gdbarch.h: Re-generate.
12755
12756 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
12757
12758 * configure: Regenerate.
12759
12760 2017-05-02 Simon Marchi <simon.marchi@ericsson.com>
12761
12762 * solib-target.c (solib_target_relocate_section_addresses):
12763 Remove num_section_bases, num_bases, segment_bases variables.
12764
12765 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
12766
12767 * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove.
12768
12769 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
12770
12771 * solib-target.c: Include <vector>
12772 (struct lm_info_target) <~lm_info_target>: Remove.
12773 <segment_bases, section_bases>: Change type to
12774 std::vector<CORE_ADDR>.
12775 (library_list_start_segment, library_list_start_section,
12776 library_list_end_library,
12777 solib_target_relocate_section_addresses): Adjust.
12778
12779 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
12780
12781 * gdbarch.sh (software_single_step): Change return type to
12782 std::vector<CORE_ADDR>.
12783 * gdbarch.c, gdbarch.h: Re-generate.
12784 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
12785 Adjust.
12786 (arm_deal_with_atomic_sequence_raw): Adjust.
12787 (thumb_get_next_pcs_raw): Adjust.
12788 (arm_get_next_pcs_raw): Adjust.
12789 (arm_get_next_pcs): Adjust.
12790 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust.
12791 * aarch64-tdep.c (aarch64_software_single_step): Adjust.
12792 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust.
12793 (alpha_software_single_step): Adjust.
12794 * alpha-tdep.h (alpha_software_single_step): Adjust.
12795 * arm-linux-tdep.c (arm_linux_software_single_step): Adjust.
12796 * arm-tdep.c (arm_software_single_step): Adjust.
12797 (arm_breakpoint_kind_from_current_state): Adjust.
12798 * arm-tdep.h (arm_software_single_step): Adjust.
12799 * breakpoint.c (insert_single_step_breakpoint): Adjust.
12800 * cris-tdep.c (cris_software_single_step): Adjust.
12801 * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust.
12802 (micromips_deal_with_atomic_sequence): Adjust.
12803 (deal_with_atomic_sequence): Adjust.
12804 (mips_software_single_step): Adjust.
12805 * mips-tdep.h (mips_software_single_step): Adjust.
12806 * moxie-tdep.c (moxie_software_single_step): Adjust.
12807 * nios2-tdep.c (nios2_software_single_step): Adjust.
12808 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust.
12809 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
12810 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
12811 * s390-linux-tdep.c (s390_software_single_step): Adjust.
12812 * sparc-tdep.c (sparc_software_single_step): Adjust.
12813 * spu-tdep.c (spu_software_single_step): Adjust.
12814 * tic6x-tdep.c (tic6x_software_single_step): Adjust.
12815
12816 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
12817
12818 * gdbarch.sh: Use semi-colon as field separator instead of colon.
12819 * gdbarch.h: Re-generate.
12820
12821 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
12822
12823 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
12824 (SUBDIR_PYTHON_SRCS): Add py-instruction.c.
12825 * python/py-instruction.c, python/py-instruction.h: New file.
12826 * python/py-record.c: Add py-instruction.h include.
12827 (gdbpy_initialize_record): Make gdb.Instruction a super class of
12828 gdb.RecordInstruction.
12829 * python/python-internal.h: Add gdbpy_initialize_instruction
12830 declaration.
12831 * python/python.c (do_start_initialization): Add
12832 gdbpy_initialize_instruction.
12833
12834 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
12835
12836 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
12837 Remove.
12838 (btrace_func_from_recpy_func): New function.
12839 (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
12840 (btpy_call_level, btpy_call_symbol, btpy_call_instructions,
12841 btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
12842 (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
12843 recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
12844 Also, use new helper functions.
12845 (btpy_list_item): Use new helper functions.
12846 (recpy_bt_function_call_history): Use new type name.
12847 (btpy_call_getset): Remove.
12848 (gdbpy_initialize_btrace): Remove code to initialize
12849 gdb.BtraceFunctionCall.
12850 * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
12851 recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
12852 recpy_bt_func_prev, recpy_bt_func_next): New export.
12853 * python/py-record.c (recpy_func_type): New static object.
12854 (recpy_func_new, recpy_func_level, recpy_func_symbol,
12855 recpy_func_instructions, recpy_func_up, recpy_func_prev,
12856 recpy_func_next): New function.
12857 (recpy_element_hash, recpy_element_richcompare): Updated comment.
12858 (recpy_func_getset): New static object.
12859 (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
12860 * python/py-record.h (recpy_func_type, recpy_func_new): New export.
12861
12862 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
12863
12864 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove.
12865 (btpy_object, btpy_insn_type, btpy_new): Remove.
12866 (btpy_list_object): Use gdb.RecordInstruction type instead of
12867 gdb.BtraceInstruction type.
12868 (btrace_insn_from_recpy_insn): New function.
12869 (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of
12870 btpy_new.
12871 (btpy_call_new, btpy_list_item): Do not use btpy_new anymore.
12872 (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol,
12873 btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling,
12874 btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object
12875 instead of btpy_object.
12876 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
12877 btpy_insn_data, btpy_insn_decode): Rename to ...
12878 (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size,
12879 recpy_bt_insn_is_speculative, recpy_bt_insn_data,
12880 recpy_bt_insn_decode): This. Also, use new helper functions.
12881 (btpy_list_position, recpy_bt_goto): Use recpy_element_object and
12882 recpy_insn_type.
12883 (btpy_insn_getset): Remove.
12884 (gdbpy_initialize_btrace): Remove code to initialize
12885 gdb.BtraceInstruction. Use recpy_element_object.
12886 * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal,
12887 recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded,
12888 recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export.
12889 * python/py-record.c (recpy_insn_type): New static object.
12890 (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data,
12891 recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative,
12892 recpy_element_number, recpy_element_hash, recpy_element_richcompare):
12893 New function.
12894 (recpy_insn_getset): New static object.
12895 (gdbpy_initialize_record): Initialize gdb.RecordInstruction.
12896 * python/py-record.h (recpy_element_object): New typedef.
12897 (recpy_insn_type, recpy_insn_new): New export.
12898
12899 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
12900
12901 * py-record-btrace.c (btpy_insn_new): Removed.
12902 (btpy_insn_or_gap_new): New function.
12903 (btpy_insn_error): Removed.
12904 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
12905 btpy_insn_data, btpy_insn_decode): Remove code path for gaps.
12906 (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call
12907 btpy_insn_or_gap_new instead of btpy_insn_new.
12908 (btpy_insn_getset): Remove btpy_insn_error.
12909 * py-record.c (recpy_gap_type): New static object.
12910 (recpy_gap_object): New typedef.
12911 (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code,
12912 recpy_gap_reason_string): New function.
12913 (recpy_gap_getset): New static object.
12914 (gdbpy_initialize_record): Initialize gdb.RecordGap type.
12915 * py-record.h (recpy_gap_new): New export.
12916
12917 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
12918
12919 * python/py-record.c (recpy_ptid): Remove.
12920 (recpy_record_getset): Remove recpy_ptid.
12921
12922 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
12923
12924 * btrace.c (btrace_fetch): Set inferior_ptid.
12925 * python/py-record-btrace.c: Add "py-record.h" include.
12926 (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin,
12927 recpy_bt_end, recpy_bt_instruction_history,
12928 recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored
12929 in gdb.Record object instead of current ptid.
12930 * python/py-record.c: Include new "py-record.h" file.
12931 (recpy_record_object): Moved to py-record.h.
12932 * python/py-record.h: New file.
12933
12934 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
12935
12936 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
12937 BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
12938 indentation.
12939
12940 2017-05-01 Joel Brobecker <brobecker@adacore.com>
12941
12942 * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to
12943 the past maintainers section.
12944
12945 2017-04-28 Yao Qi <yao.qi@linaro.org>
12946
12947 * infcmd.c (get_return_value): Use regcache ctor, and remove
12948 cleanup.
12949
12950 2017-04-28 Yao Qi <yao.qi@linaro.org>
12951 Pedro Alves <palves@redhat.com>
12952
12953 * regcache.c (regcache::regcache): New tag dispatch ctor.
12954 (do_cooked_read): Moved above.
12955 (regcache_dup): Use the tag dispatch ctor..
12956 * regcache.h (regcache): Declare ctor, delete copy ctor and
12957 assignment operator, remove friend regcache_dup.
12958
12959 2017-04-28 Yao Qi <yao.qi@linaro.org>
12960
12961 * regcache.c (regcache_dup): Assert !src->m_readonly_p and
12962 call method save instead of regcache_cpy.
12963 * regcache.h (struct regcache): Make regcache_dup a friend.
12964
12965 2017-04-28 Yao Qi <yao.qi@linaro.org>
12966
12967 * regcache.c (struct regcache): Move to regcache.h
12968 (regcache::arch): New method.
12969 (regcache_get_ptid): Update.
12970 (get_regcache_arch): Call arch method.
12971 (get_regcache_aspace): Call method aspace.
12972 (register_buffer): Change it to method.
12973 (regcache_save): Change it to regcache::save.
12974 (regcache_restore): Likewise.
12975 (regcache_cpy_no_passthrough): Remove the declaration.
12976 (regcache_cpy): Call methods restore and cpy_no_passthrough.
12977 (regcache_cpy_no_passthrough): Change it to method
12978 cpy_no_passthrough.
12979 (regcache_register_status): Change it to method
12980 get_register_status.
12981 (regcache_invalidate): Change it to method invalidate.
12982 (regcache_thread_ptid_changed): Use methods ptid and set_ptid.
12983 (regcache_raw_update): Change it to method raw_update.
12984 (regcache_raw_read): Likewise.
12985 (regcache_raw_read_signed): Likewise.
12986 (regcache_raw_read_unsigned): Likewise.
12987 (regcache_raw_write_signed): Likewise.
12988 (regcache_raw_write_unsigned): Likewise.
12989 (regcache_cooked_read): Likewise.
12990 (regcache_cooked_read_value): Likewise.
12991 (regcache_cooked_read_signed): Likewise.
12992 (regcache_cooked_read_unsigned): Likewise.
12993 (regcache_cooked_write_signed): Likewise.
12994 (regcache_cooked_write_unsigned): Likewise.
12995 (regcache_raw_set_cached_value): Likewise.
12996 (regcache_raw_write): Likewise.
12997 (regcache_cooked_write): Likewise.
12998 (regcache_xfer_part): Likewise.
12999 (regcache_raw_read_part): Likewise.
13000 (regcache_raw_write_part): Likewise.
13001 (regcache_cooked_read_part): Likewise.
13002 (regcache_cooked_write_part): Likewise.
13003 (regcache_raw_supply): Likewise.
13004 (regcache_raw_collect): Likewise.
13005 (regcache_transfer_regset): Likewise.
13006 (regcache_supply_regset): Likewise.
13007 (regcache_collect_regset): Likewise.
13008 (regcache_debug_print_register): Likewise.
13009 (enum regcache_dump_what): Move it to regcache.h.
13010 (regcache_dump): Change it to method dump.
13011 * regcache.h (enum regcache_dump_what): New.
13012 (class regcache): New.
13013 * target.c (target_fetch_registers): Call method
13014 debug_print_register.
13015 (target_store_registers): Likewise.
13016
13017 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13018
13019 * windows-nat.c (struct lm_info_windows): Initialize field.
13020 (windows_make_so): Allocate lm_info_windows with new.
13021 (windows_free_so): Free lm_info_windows with delete.
13022
13023 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13024
13025 * solib-darwin.c (struct lm_info_darwin): Initialize field.
13026 (darwin_current_sos): Allocate lm_info_darwin with new, remove
13027 cleanup.
13028 (darwin_free_so): Free lm_info_darwin with delete.
13029
13030 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13031
13032 * solib-svr4.h (struct lm_info_svr4): Initialize fields.
13033 <l_addr_p>: Change type to bool.
13034 * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
13035 (svr4_free_so): Free lm_info_svr4 with delete.
13036 (svr4_copy_library_list): Replace memcpy with call to copy
13037 constructor.
13038 (library_list_start_library, svr4_default_sos): Allocate
13039 lm_info_svr4 with new.
13040
13041 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13042
13043 * solib-target.c (struct lm_info_target): Add destructor,
13044 initialize fields.
13045 <name>: Change type to std::string.
13046 (library_list_start_library): Allocate lm_info_target with new.
13047 (solib_target_free_library_list): Free lm_info_target with
13048 delete.
13049 (solib_target_current_sos): Adapt to std::string.
13050 (solib_target_free_so): Free lm_info_target with delete.
13051
13052 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13053
13054 * solib-frv.c (struct lm_info_frv): Add destructor, initialize
13055 fields.
13056 (frv_current_sos): Allocate lm_info_frv with new.
13057 (frv_relocate_main_executable): Free lm_info_frv with delete,
13058 allocate with new.
13059 (frv_clear_solib, frv_free_so): Free lm_info_frv with delete.
13060
13061 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13062
13063 * solib-frv.c (struct lm_info_frv): Fix indentation.
13064
13065 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13066
13067 * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
13068 map field.
13069 (dsbt_current_sos): Allocate lm_info_dsbt with new.
13070 (dsbt_relocate_main_executable): Free lm_info_dsbt with delete
13071 and allocate with new.
13072 (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
13073
13074 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13075
13076 * solib-aix.c (struct lm_info_aix): Initialize fields in-class.
13077 <filename, member_name>: Change type to std::string.
13078 (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
13079 (library_list_start_library): Allocate lm_info_aix with new.
13080 (solib_aix_free_library_list, solib_aix_free_so): Free with delete.
13081 (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
13082 with copy constructor.
13083
13084 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13085
13086 * solist.h (struct lm_info): Remove.
13087 (struct lm_info_base): New class.
13088 (struct so_list) <lm_info>: Change type to lm_info_base *.
13089 * nto-tdep.c (struct lm_info): Remove.
13090 (lm_addr): Adjust.
13091 * solib-aix.c (struct lm_info): Rename to ...
13092 (struct lm_info_aix): ... this. Extend lm_info_base.
13093 (lm_info_p): Rename to ...
13094 (lm_info_aix_p): ... this, and adjust.
13095 (solib_aix_new_lm_info, solib_aix_xfree_lm_info,
13096 solib_aix_parse_libraries, library_list_start_library,
13097 solib_aix_free_library_list, solib_aix_parse_libraries,
13098 solib_aix_get_library_list,
13099 solib_aix_relocate_section_addresses, solib_aix_free_so,
13100 solib_aix_get_section_offsets,
13101 solib_aix_solib_create_inferior_hook, solib_aix_current_sos):
13102 Adjust.
13103 (struct solib_aix_inferior_data) <library_list>: Adjust.
13104 * solib-darwin.c (struct lm_info): Rename to ...
13105 (struct lm_info_darwin): ... this. Extend lm_info_base.
13106 (darwin_current_sos, darwin_relocate_section_addresses): Adjust.
13107 * solib-dsbt.c (struct lm_info): Rename to ...
13108 (struct lm_info_dsbt): ... this. Extend lm_info_base.
13109 (struct dsbt_info) <main_executable_lm_info): Adjust.
13110 (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so,
13111 dsbt_relocate_section_addresses): Adjust.
13112 * solib-frv.c (struct lm_info): Rename to ...
13113 (struct lm_info_frv): ... this. Extend lm_info_base.
13114 (main_executable_lm_info): Adjust.
13115 (frv_current_sos, frv_relocate_main_executable, frv_free_so,
13116 frv_relocate_section_addresses, frv_fdpic_find_global_pointer,
13117 find_canonical_descriptor_in_load_object,
13118 frv_fdpic_find_canonical_descriptor): Adjust.
13119 * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed
13120 to lm_info_svr4.
13121 (lm_info_read, lm_addr_check, svr4_keep_data_in_core,
13122 svr4_clear_so, svr4_copy_library_list,
13123 library_list_start_library, svr4_default_sos, svr4_read_so_list,
13124 svr4_current_sos, svr4_fetch_objfile_link_map,
13125 solist_update_incremental): Adjust.
13126 * solib-svr4.h (struct lm_info_svr4): Move here from
13127 solib-svr4.c.
13128 * solib-target.c (struct lm_info): Rename to ...
13129 (struct lm_info_target): ... this. Extend lm_info_base.
13130 (lm_info_p): Rename to ...
13131 (lm_info_target_p): ... this.
13132 (solib_target_parse_libraries, library_list_start_segment,
13133 library_list_start_section, library_list_start_library,
13134 library_list_end_library, solib_target_free_library_list,
13135 solib_target_current_sos, solib_target_free_so,
13136 solib_target_relocate_section_addresses): Adjust.
13137 * windows-nat.c (struct lm_info): Rename to ...
13138 (struct lm_info_windows): ... this. Extend lm_info_base.
13139 (windows_make_so, handle_load_dll, handle_unload_dll,
13140 windows_xfer_shared_libraries): Adjust.
13141
13142 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13143
13144 * solib-darwin.c (struct darwin_so_list): Remove.
13145 (darwin_current_sos): Allocate an so_list object instead of a
13146 darwin_so_list, separately allocate an lm_info object.
13147 (darwin_free_so): Free lm_info.
13148
13149 2017-04-28 John Baldwin <jhb@FreeBSD.org>
13150
13151 * mips-tdep.c (print_gp_register_row): Replace printf_filtered
13152 with fprintf_filtered.
13153
13154 2017-04-28 Yao Qi <yao.qi@linaro.org>
13155
13156 * regcache.c (regcache::regcache): New function.
13157 (regcache::~regcache): New function.
13158 (regcache_xmalloc_1): Remove.
13159 (regcache_xmalloc): Call new regcache.
13160 (regcache_xfree): Call delete regcache.
13161 (get_thread_arch_aspace_regcache): Call new regcache.
13162
13163 2017-04-28 Yao Qi <yao.qi@linaro.org>
13164
13165 * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
13166 lwp instead of ptid_get_lwp.
13167
13168 2017-04-28 Yao Qi <yao.qi@linaro.org>
13169
13170 * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
13171 lwp_info instead of getting from inferior_ptid.
13172
13173 2017-04-27 Keith Seitz <keiths@redhat.com>
13174
13175 * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS)
13176 DIFFERENT_REFERENCE_TYPE_BADNESS): Remove.
13177 (CV_CONVERSION_BADNESS): Define.
13178 (rank_one_type): Remove overly restrictive rvalue reference
13179 rank checks.
13180 Add cv-qualifier checks and subranks for type equality.
13181 * gdbtypes.h (REFERENCE_CONVERSION_RVALUE,
13182 REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS,
13183 CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare.
13184
13185 2017-04-27 Simon Marchi <simon.marchi@ericsson.com>
13186
13187 * python/py-inferior.c (inferior_to_inferior_object): Increment reference
13188 count when creating the object.
13189
13190 2017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
13191 Ulrich Weigand <uweigand@de.ibm.com>
13192
13193 * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
13194 entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
13195 is used in AIX.
13196 (read_xcoff_symtab): Handle C_WEAKEXT storage class.
13197 (process_xcoff_symbol): Likewise.
13198 (scan_xcoff_symtab): Likewise.
13199
13200 2017-04-26 Alan Hayward <alan.hayward@arm.com>
13201
13202 * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned.
13203 (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer.
13204 (ia64_access_reg): Use get_frame_register_unsigned.
13205 (ia64_access_rse_reg): Likewise.
13206 (ia64_libunwind_frame_prev_register): Likewise.
13207
13208 2017-04-26 Jiong Wang <jiong.wang@arm.com>
13209
13210 * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op.
13211 * gdbarch.c: Regenerated.
13212 * gdbarch.h: Regenerated.
13213 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the
13214 visibility external.
13215 (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI
13216 between DW_CFA_lo_user and DW_CFA_high_user inclusive.
13217 (enum cfa_how_kind): Move to ...
13218 (struct dwarf2_frame_state_reg_info): Likewise.
13219 (struct dwarf2_frame_state): Likewise.
13220 * dwarf2-frame.h: ... here.
13221 (dwarf2_frame_state_alloc_regs): New declaration.
13222 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function.
13223 (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook.
13224
13225 2017-04-26 Alan Hayward <alan.hayward@arm.com>
13226
13227 * xtensa-tdep.c (xtensa_pseudo_register_read): Use
13228 regcache_raw_read_unsigned.
13229 (xtensa_pseudo_register_write): Likewise.
13230
13231 2017-04-26 Alan Hayward <alan.hayward@arm.com>
13232
13233 * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors.
13234 (nds32_pseudo_register_write): Likewise.
13235
13236 2017-04-25 Yao Qi <yao.qi@linaro.org>
13237
13238 * regcache.c (struct regcache) <readonly_p>: Change its type
13239 to bool.
13240 (regcache_xmalloc_1): Update parameter type and callers update.
13241
13242 2017-04-25 Yao Qi <yao.qi@linaro.org>
13243
13244 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
13245 set_gdbarch_wchar_bit.
13246 * arm-tdep.c (arm_gdbarch_init): Likewise.
13247
13248 2017-04-25 Pedro Alves <palves@redhat.com>
13249
13250 * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
13251 (BothAreRelocatable, memcopy, memmove): Don't define.
13252 * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
13253 macros.
13254
13255 2017-04-25 Pedro Alves <palves@redhat.com>
13256
13257 * common/common-defs.h: Include "common/poison.h".
13258 * common/function-view.h: (Not, Or, Requires): Move to traits.h
13259 and adjust.
13260 * common/poison.h: New file.
13261 * common/traits.h: Include <type_traits>.
13262 (Not, Or, Requires): New, moved from common/function-view.h.
13263
13264 2017-04-25 Pedro Alves <palves@redhat.com>
13265
13266 * breakpoint.h (struct breakpoint): In-class initialize all
13267 fields. Make boolean fields "bool".
13268 * breakpoint.c (init_raw_breakpoint_without_location): Remove
13269 memset call and initializations no longer necessary.
13270
13271 2017-04-25 Pedro Alves <palves@redhat.com>
13272
13273 * btrace.c (pt_btrace_insn_flags): Change parameter type to
13274 reference.
13275 (pt_btrace_insn): New function.
13276 (ftrace_add_pt): Remove memset call and use pt_btrace_insn.
13277
13278 2017-04-25 Pedro Alves <palves@redhat.com>
13279
13280 * ada-lang.c (ada_catchpoint_location): Now a "class". Remove
13281 "base" field and inherit from "bp_location" instead. Add
13282 non-default ctor.
13283 (allocate_location_exception): Use new non-default ctor.
13284 * breakpoint.c (get_first_locp_gte_addr): Remove memset call.
13285 (init_bp_location): Convert to ...
13286 (bp_location::bp_location): ... this new ctor, and remove memset
13287 call.
13288 (base_breakpoint_allocate_location): Use the new non-default ctor.
13289 * breakpoint.h (bp_location): Now a class. Declare default and
13290 non-default ctors. In-class initialize all members.
13291 (init_bp_location): Remove declaration.
13292
13293 2017-04-25 Pedro Alves <palves@redhat.com>
13294
13295 * common/enum-flags.h (enum_flags): Don't implement copy ctor and
13296 assignment operator.
13297
13298 2017-04-24 Yao Qi <yao.qi@linaro.org>
13299
13300 * doublest.c (convert_doublest_to_floatformat): Call
13301 floatformat_totalsize_bytes.
13302
13303 2017-04-22 Tom Tromey <tom@tromey.com>
13304
13305 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
13306 ui_out_emit_list.
13307 * stack.c (print_frame): Use ui_out_emit_list.
13308 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
13309 ui_out_emit_list.
13310 * mi/mi-main.c (print_one_inferior)
13311 (mi_cmd_data_list_register_names)
13312 (mi_cmd_data_list_register_values, mi_cmd_list_features)
13313 (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use
13314 ui_out_emit_list.
13315 * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list.
13316 (mi_output_solib_attribs): Use ui_out_emit_list,
13317 ui_out_emit_tuple.
13318 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list.
13319 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
13320 (mi_cmd_stack_list_args, list_args_or_locals): Use
13321 ui_out_emit_list.
13322 * disasm.c (do_assembly_only): Use ui_out_emit_list.
13323 * breakpoint.c (print_solib_event, output_thread_groups): Use
13324 ui_out_emit_list.
13325
13326 2017-04-22 Tom Tromey <tom@tromey.com>
13327
13328 * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple.
13329 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple.
13330 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple.
13331
13332 2017-04-22 Tom Tromey <tom@tromey.com>
13333
13334 * tracepoint.c (tvariables_info_1)
13335 (print_one_static_tracepoint_marker): Use ui_out_emit_tuple.
13336
13337 2017-04-22 Tom Tromey <tom@tromey.com>
13338
13339 * stack.c (print_frame_arg): Use ui_out_emit_tuple,
13340 annotate_arg_emitter.
13341 * breakpoint.c (print_mention_watchpoint)
13342 (print_mention_masked_watchpoint): Use ui_out_emit_tuple.
13343 * annotate.h (struct annotate_arg_emitter): New.
13344
13345 2017-04-22 Tom Tromey <tom@tromey.com>
13346
13347 * record-btrace.c (record_btrace_insn_history)
13348 (record_btrace_insn_history_range, record_btrace_call_history)
13349 (record_btrace_call_history_range): Use ui_out_emit_tuple.
13350 * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use
13351 ui_out_emit_tuple.
13352 * stack.c (print_frame_info): Use ui_out_emit_tuple.
13353 * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple.
13354 * skip.c (skip_info): Use ui_out_emit_tuple.
13355 * remote.c (show_remote_cmd): Use ui_out_emit_tuple.
13356 * progspace.c (print_program_space): Use ui_out_emit_tuple.
13357 * probe.c (info_probes_for_ops): Use ui_out_emit_tuple.
13358 * osdata.c (info_osdata): Use ui_out_emit_tuple.
13359 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
13360 ui_out_emit_tuple.
13361 * mi/mi-main.c (print_one_inferior, list_available_thread_groups)
13362 (output_register, mi_cmd_data_read_memory)
13363 (mi_cmd_data_read_memory_bytes, mi_load_progress)
13364 (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple.
13365 * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one):
13366 Use ui_out_emit_tuple.
13367 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use
13368 ui_out_emit_tuple.
13369 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
13370 (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple.
13371 * linux-thread-db.c (info_auto_load_libthread_db): Use
13372 ui_out_emit_tuple.
13373 * inferior.c (print_inferior): Use ui_out_emit_tuple.
13374 * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple.
13375 * disasm.c (do_mixed_source_and_assembly_deprecated)
13376 (do_mixed_source_and_assembly): Use ui_out_emit_tuple.
13377 * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple.
13378 * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple.
13379 * breakpoint.c (print_one_breakpoint_location)
13380 (print_one_breakpoint): Use ui_out_emit_tuple.
13381 * auto-load.c (print_script, info_auto_load_cmd): Use
13382 ui_out_emit_tuple.
13383 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple.
13384
13385 2017-04-21 Simon Marchi <simon.marchi@ericsson.com>
13386
13387 * thread.c (print_thread_info_1): Remove dead code.
13388
13389 2017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
13390
13391 * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
13392 GDB_SELF_TEST.
13393 * arm-tdep.c (selftests::arm_record_test): Likewise.
13394
13395 2017-04-21 Yao Qi <yao.qi@linaro.org>
13396
13397 * regcache.c (regcache_restore): Remove argument 2. Replace
13398 argument 3 with regcache. Get register status from
13399 src->register_status and get register contents from
13400 register_buffer (src, regnum).
13401 (regcache_cpy): Update.
13402
13403 2017-04-19 Pedro Alves <palves@redhat.com>
13404
13405 * gdbthread.h (thread): Add missing closing parenthesis in
13406 comment.
13407
13408 2017-04-19 Pedro Alves <palves@redhat.com>
13409
13410 * common/refcounted-object.h: New file.
13411 * gdbthread.h: Include "common/refcounted-object.h".
13412 (thread_info): Inherit from refcounted_object and add comments.
13413 (thread_info::incref, thread_info::decref)
13414 (thread_info::m_refcount): Delete.
13415 (thread_info::deletable): Use the refcounted_object::refcount()
13416 method.
13417 * inferior.c (current_inferior_): Add comment.
13418 (set_current_inferior): Increment/decrement refcounts.
13419 (prune_inferiors, remove_inferior_command): Skip inferiors marked
13420 not-deletable instead of comparing with the current inferior.
13421 (initialize_inferiors): Increment the initial inferior's refcount.
13422 * inferior.h (struct inferior): Forward declare.
13423 Include "common/refcounted-object.h".
13424 (current_inferior, set_current_inferior): Move declaration to
13425 before struct inferior's definition, and fix comment.
13426 (inferior): Inherit from refcounted_object. Add comments.
13427 * thread.c (switch_to_thread_no_regs): Reference the thread's
13428 inferior pointer directly instead of doing a ptid lookup.
13429 (switch_to_no_thread): New function.
13430 (switch_to_thread(thread_info *)): New function, factored out
13431 from ...
13432 (switch_to_thread(ptid_t)): ... this.
13433 (restore_current_thread): Delete.
13434 (current_thread_cleanup): Remove 'inf_id' and 'was_removable'
13435 fields, and add 'inf' field.
13436 (do_restore_current_thread_cleanup): Check whether old->inf is
13437 alive instead of looking up an inferior by ptid. Use
13438 switch_to_thread and switch_to_no_thread.
13439 (restore_current_thread_cleanup_dtor): Use old->inf directly
13440 instead of lookup up an inferior by id. Decref the inferior.
13441 Don't restore 'removable'.
13442 (make_cleanup_restore_current_thread): Same the inferior pointer
13443 in old, instead of the inferior number. Incref the inferior.
13444 Don't save/clear 'removable'.
13445
13446 2017-04-19 Pedro Alves <palves@redhat.com>
13447
13448 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13449 unittests/scoped_restore-selftests.c.
13450 (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o.
13451 * common/scoped_restore.h (scoped_restore_base): Make "class".
13452 (scoped_restore_base::release): New public method.
13453 (scoped_restore_base::scoped_restore_base): New protected ctor.
13454 (scoped_restore_base::m_saved_var): New protected field.
13455 (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the
13456 scoped_restore_base base class instead of m_saved_var directly.
13457 (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise.
13458 (scoped_restore_tmpl::scoped_restore_tmpl(const
13459 scoped_restore_tmpl<T>&)): Likewise.
13460 (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var
13461 method.
13462 (scoped_restore_tmpl::saved_var): New method.
13463 (scoped_restore_tmpl::m_saved_var): Delete.
13464 * inferior.h (inferior::detaching): Now a bool.
13465 * infrun.c (prepare_for_detach): Use a scoped_restore instead of a
13466 cleanup.
13467 * unittests/scoped_restore-selftests.c: New file.
13468
13469 2017-04-19 Pedro Alves <palves@redhat.com>
13470
13471 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS):
13472 Re-sort in alphabetic order.
13473
13474 2017-04-18 Pedro Alves <palves@redhat.com>
13475
13476 * xml-support.c (obstack_xml_printf): Delete.
13477 * xml-support.h (obstack_xml_printf): Delete.
13478
13479 2017-04-18 Pedro Alves <palves@redhat.com>
13480
13481 * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse,
13482 vdebug, verror, body_text, start_element, end_element, name,
13483 user_data, set_is_xinclude, set_error, expat_parser>: New methods.
13484 <name, user_data, expat_parser, scopes, error, last_line, dtd_name,
13485 is_xinclude>: Make private and add m_ prefix.
13486 (gdb_xml_parser::body_text): New method, based on ...
13487 (gdb_xml_body_text): ... this. Adjust.
13488 (gdb_xml_parser::vdebug): New method, based on ...
13489 (gdb_xml_debug): ... this. Adjust.
13490 (gdb_xml_parser::verror): New method, based on ...
13491 (gdb_xml_error): ... this. Adjust.
13492 (gdb_xml_parser::start_element): New method, based on ...
13493 (gdb_xml_start_element): ... this. Adjust.
13494 (gdb_xml_start_element_wrapper): Defer to
13495 gdb_xml_parser::start_element and gdb_xml_parser::set_error.
13496 (gdb_xml_parser::end_element): New method, based on ...
13497 (gdb_xml_end_element_wrapper): ... this. Adjust.
13498 (gdb_xml_parser::~gdb_xml_parser): Adjust.
13499 (gdb_xml_parser::gdb_xml_parser): Adjust to field renames.
13500 (gdb_xml_parser::use_dtd): New method, based on ...
13501 (gdb_xml_use_dtd): ... this. Adjust.
13502 (gdb_xml_parser::parse): New method, based on ...
13503 (gdb_xml_parse): ... this. Adjust.
13504 (gdb_xml_parse_quick): Adjust to call the parser's parse method.
13505 (xinclude_start_include): Adjust to call the parser's name method.
13506 (xml_xinclude_default, xml_xinclude_start_doctype)
13507 (xml_xinclude_end_doctype): Adjust to call the parser's user_data
13508 method.
13509 (xml_process_xincludes): Adjust to call parser methods.
13510 * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete
13511 declarations.
13512
13513 2017-04-18 Pedro Alves <palves@redhat.com>
13514
13515 * tracefile-tfile.c (tfile_write_tdesc): Adjust to use
13516 gdb::optional<std::string>.
13517 * xml-support.c: Include <string>.
13518 (scope_level::scope_level(scope_level &&))
13519 (scope_level::~scope_level): Delete.
13520 (scope_level::body): Now a std::string.
13521 (gdb_xml_body_text, gdb_xml_end_element): Adjust.
13522 (xinclude_parsing_data::xinclude_parsing_data): Add 'output'
13523 parameter.
13524 (xinclude_parsing_data::~xinclude_parsing_data): Delete.
13525 (xinclude_parsing_data::output): Now a std::string reference.
13526 (xinclude_start_include): Adjust.
13527 (xml_xinclude_default): Adjust.
13528 (xml_process_xincludes): Add 'output' parameter, and return bool.
13529 * xml-support.h (xml_process_xincludes): Add 'output' parameter,
13530 and return bool.
13531 * xml-tdesc.c: Include <unordered_map> and <string>.
13532 (tdesc_xml_cache): Delete.
13533 (tdesc_xml_cache_s): Delete.
13534 (xml_cache): Now an std::unordered_map.
13535 (tdesc_parse_xml): Adjust to use std::string and unordered_map.
13536 (target_fetch_description_xml): Change return type to
13537 gdb::optional<std::string>, and adjust.
13538 * xml-tdesc.h: Include "common/gdb_optional.h" and <string>.
13539 (target_fetch_description_xml): Change return type to
13540 gdb::optional<std::string>.
13541
13542 2017-04-18 Pedro Alves <palves@redhat.com>
13543
13544 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13545 unittests/optional-selftests.c.
13546 (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o.
13547 * unittests/optional-selftests.c: New file.
13548 * unittests/optional/assignment/1.cc: New file.
13549 * unittests/optional/assignment/2.cc: New file.
13550 * unittests/optional/assignment/3.cc: New file.
13551 * unittests/optional/assignment/4.cc: New file.
13552 * unittests/optional/assignment/5.cc: New file.
13553 * unittests/optional/assignment/6.cc: New file.
13554 * unittests/optional/assignment/7.cc: New file.
13555 * unittests/optional/cons/copy.cc: New file.
13556 * unittests/optional/cons/default.cc: New file.
13557 * unittests/optional/cons/move.cc: New file.
13558 * unittests/optional/cons/value.cc: New file.
13559 * unittests/optional/in_place.cc: New file.
13560 * unittests/optional/observers/1.cc: New file.
13561 * unittests/optional/observers/2.cc: New file.
13562
13563 2017-04-18 Pedro Alves <palves@redhat.com>
13564
13565 * common/gdb_optional.h: Include common/traits.h.
13566 (in_place_t): New type.
13567 (in_place): New constexpr variable.
13568 (optional::optional): Remove member initialization of
13569 m_instantiated.
13570 (optional::optional(in_place_t...)): New constructor.
13571 (optional::~optional): Use reset.
13572 (optional::optional(const optional&)): New.
13573 (optional::optional(const optional&&)): New.
13574 (optional::optional(T &)): New.
13575 (optional::optional(T &&)): New.
13576 (operator::operator=(const optional &)): New.
13577 (operator::operator=(optional &&)): New.
13578 (operator::operator= (const T &))
13579 (operator::operator= (T &&))
13580 (operator::emplace (Args &&... args)): Return a T&. Use reset.
13581 (operator::reset): New.
13582 (operator::m_instantiated):: Add in-class initializer.
13583 * common/traits.h: Include <type_traits>.
13584 (struct And): New types.
13585
13586 2017-04-18 Pedro Alves <palves@redhat.com>
13587
13588 * xml-support.c: Include <vector>.
13589 (scope_level::scope_level(const gdb_xml_element *))
13590 (scope_level::scope_level(scope_level&&)): New.
13591 (scope_level::~scope_level): New.
13592 (scope_level_s): Delete.
13593 (gdb_xml_parser::scopes): Now a std::vector.
13594 (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
13595 Use std::vector.
13596 (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
13597 scope cleanup code.
13598 (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
13599 of the scopes member. Use std::vector::emplace_back.
13600
13601 2017-04-18 Pedro Alves <palves@redhat.com>
13602
13603 * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude
13604 a bool.
13605 (gdb_xml_end_element): Change type of first parameter.
13606 (gdb_xml_cleanup): Rename to ...
13607 (gdb_xml_parser::~gdb_xml_parser): ... this.
13608 (gdb_xml_create_parser_and_cleanup): Delete with ...
13609 (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
13610 to this new ctor.
13611 (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
13612 using gdb_xml_create_parser_and_cleanup.
13613 (xinclude_parsing_data): Add ctor/dtor.
13614 (xml_xinclude_cleanup): Delete.
13615 (xml_process_xincludes): Create a local xinclude_parsing_data
13616 instead of heap-allocating one. Create a local gdb_xml_parser
13617 instead of heap-allocating one with
13618 gdb_xml_create_parser_and_cleanup.
13619
13620 2017-04-18 John Baldwin <jhb@FreeBSD.org>
13621
13622 PR threads/20743
13623 * fbsd-nat.c (resume_one_thread_cb): Remove.
13624 (resume_all_threads_cb): Remove.
13625 (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
13626 iterate_over_threads.
13627
13628 2017-04-17 Joel Brobecker <brobecker@adacore.com>
13629
13630 * NEWS: Create a new section for the next release branch.
13631 Rename the section of the current branch, now that it has
13632 been cut.
13633
13634 2017-04-17 Joel Brobecker <brobecker@adacore.com>
13635
13636 GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
13637 * version.in: Bump version to 8.0.50.DATE-git.
13638
13639 2017-04-13 Sergio Durigan Junior <sergiodj@redhat.com>
13640
13641 PR gdb/21385
13642 * windows-nat.c (windows_create_inferior): Declare 'allargs'
13643 independently of the host, and fix build breakage on Cygwin.
13644
13645 2017-04-13 Pedro Alves <palves@redhat.com>
13646
13647 * inferior.c (free_inferior): Convert to ...
13648 (inferior::~inferior): ... this dtor.
13649 (inferior::inferior): New ctor, factored out from ...
13650 (add_inferior_silent): ... here. Allocate the inferior with a new
13651 expression.
13652 (delete_inferior): Call delete instead of free_inferior.
13653 * inferior.h (gdb_environ, continuation): Forward declare.
13654 (inferior): Now a class. Add in-class initialization to all
13655 members. Make boolean fields bool, except 'detaching'.
13656 (inferior::inferior): New explicit ctor.
13657 (inferior::~inferior): New.
13658
13659 2017-04-13 Pedro Alves <palves@redhat.com>
13660
13661 * inferior.c (init_inferior_list): Delete.
13662 * inferior.h (init_inferior_list): Delete.
13663
13664 2017-04-13 Pedro Alves <palves@redhat.com>
13665
13666 PR threads/13217
13667 * gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
13668 (top level): Call it twice, with different thread sets.
13669
13670 2017-04-13 Pedro Alves <palves@redhat.com>
13671
13672 * thread.c: Include <algorithm>.
13673 (thread_array_cleanup): Delete.
13674 (scoped_inc_dec_ref): New class.
13675 (live_threads_count): New function.
13676 (set_thread_refcount): Delete.
13677 (tp_array_compar_ascending): Now a bool.
13678 (tp_array_compar): Convert to a std::sort comparison function.
13679 (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
13680 and live_threads_count.
13681
13682 2017-04-13 Pedro Alves <palves@redhat.com>
13683
13684 * infrun.c (follow_fork_inferior): Also switch the current
13685 inferior.
13686
13687 2017-04-13 Pedro Alves <palves@redhat.com>
13688
13689 * breakpoint.c (watch_command_1): Save watchpoint-frame info
13690 before calling create_internal_breakpoint.
13691
13692 2017-04-13 Pedro Alves <palves@redhat.com>
13693
13694 * fork-child.c (execv_argv): New class.
13695 (breakup_args): Refactored as ...
13696 (execv_argv::init_for_no_shell): .. this method of execv_argv.
13697 Copy arguments to storage and replace separators with NULL
13698 terminators in place.
13699 (escape_bang_in_quoted_argument): Adjust to return bool.
13700 (execv_argv::execv_argv): New ctor.
13701 (execv_argv::init_for_shell): New method, factored out from
13702 fork_inferior. Don't strdup strings into the vector.
13703 (fork_inferior): Eliminate "shell" local and use execv_argv. Use
13704 Remove free_vector_argv call.
13705
13706 2017-04-13 Yao Qi <yao.qi@linaro.org>
13707
13708 * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
13709 tdep->rx_psw_type.
13710
13711 2017-04-13 Yao Qi <yao.qi@linaro.org>
13712
13713 * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
13714 * rx-tdep.c (rx_gdbarch_init): Likewise.
13715
13716 2017-04-13 Pedro Alves <palves@redhat.com>
13717
13718 * breakpoint.h (struct breakpoint): Reindent.
13719
13720 2017-04-13 Pedro Alves <palves@redhat.com>
13721
13722 * breakpoint.c (bp_location): Rename to ...
13723 (bp_locations): ... this. All references updated.
13724 (bp_location_count): Rename to ...
13725 (bp_locations_count): ... this. All references updated.
13726 (bp_location_placed_address_before_address_max): Rename to ...
13727 (bp_locations_placed_address_before_address_max): ... this. All
13728 references updated.
13729 (bp_location_shadow_len_after_address_max): Rename to ...
13730 (bp_locations_shadow_len_after_address_max): ... this. All
13731 references updated.
13732 (bp_location_compare_addrs): Rename to ...
13733 (bp_locations_compare_addrs): ... this. All references updated.
13734 (bp_location_compare):Rename to ...
13735 (bp_locations_compare): ... this. All references updated.
13736 (bp_location_target_extensions_update): Rename to ...
13737 (bp_locations_target_extensions_update): ... this. All references
13738 updated.
13739
13740 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
13741
13742 * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
13743 * common/common.m4: Check headers 'termios.h', 'termio.h' and
13744 'sgtty.h'.
13745 * common/gdb_termios.h: New file, with parts of "terminal.h".
13746 * inflow.c: Include "gdb_termios.h".
13747 * ser-unix.c: Include "gdb_termios.h".
13748 * terminal.h: Move terminal-related defines to
13749 "common/gdb_termios.h".
13750
13751 2017-04-12 Tom Tromey <tom@tromey.com>
13752
13753 * probe.c (parse_probes): Update.
13754 * location.h (delete_event_location): Don't declare.
13755 (event_location_deleter::operator()): Update.
13756 * location.c (event_location_deleter::operator()): Rename from
13757 delete_event_location.
13758 * linespec.h (linespec_result) <location>: Change type to
13759 event_location_up.
13760 * linespec.c (canonicalize_linespec, event_location_to_sals)
13761 (decode_objc): Update.
13762 (linespec_result): Don't call delete_event_location.
13763 * breakpoint.c (create_breakpoints_sal)
13764 (bkpt_probe_create_sals_from_location)
13765 (strace_marker_create_sals_from_location): Update.
13766
13767 2017-04-12 Tom Tromey <tom@tromey.com>
13768
13769 * linespec.h (struct linespec_result): Add constructor and
13770 destructor.
13771 (init_linespec_result, destroy_linespec_result)
13772 (make_cleanup_destroy_linespec_result): Don't declare.
13773 * linespec.c (init_linespec_result): Remove.
13774 (linespec_result::~linespec_result): Rename from
13775 destroy_linespec_result. Update.
13776 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
13777 Remove.
13778 * breakpoint.c (create_breakpoint, break_range_command)
13779 (decode_location_default): Update.
13780 * ax-gdb.c (agent_command_1): Update.
13781
13782 2017-04-12 Tom Tromey <tom@tromey.com>
13783
13784 * remote.c (remote_download_tracepoint): Update.
13785 * python/py-breakpoint.c (bppy_get_location): Update.
13786 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
13787 (gdbscm_breakpoint_location): Update.
13788 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
13789 * breakpoint.h (struct breakpoint) <location, location_range_end>:
13790 Change type to event_location_up.
13791 * breakpoint.c (create_overlay_event_breakpoint)
13792 (create_longjmp_master_breakpoint)
13793 (create_std_terminate_master_breakpoint)
13794 (create_exception_master_breakpoint)
13795 (breakpoint_event_location_empty_p, print_breakpoint_location)
13796 (print_one_breakpoint_location, create_thread_event_breakpoint)
13797 (init_breakpoint_sal, create_breakpoint)
13798 (print_recreate_ranged_breakpoint, break_range_command)
13799 (init_ada_exception_breakpoint, say_where): Update.
13800 (base_breakpoint_dtor): Don't call delete_event_location.
13801 (bkpt_print_recreate, tracepoint_print_recreate)
13802 (dprintf_print_recreate, update_static_tracepoint)
13803 (breakpoint_re_set_default): Update.
13804
13805 2017-04-12 Tom Tromey <tom@tromey.com>
13806
13807 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
13808 type of "to_do". Update.
13809 (compute_stack_depth): Use std::vector.
13810
13811 2017-04-12 Tom Tromey <tom@tromey.com>
13812
13813 * printcmd.c (find_instruction_backward): Use std::vector.
13814
13815 2017-04-12 Tom Tromey <tom@tromey.com>
13816
13817 * symfile.c (objfilep): Remove typedef.
13818 (reread_symbols): Use a std::vector.
13819
13820 2017-04-12 Tom Tromey <tom@tromey.com>
13821
13822 * mi/mi-main.c (exec_direction_forward): Remove.
13823 (exec_reverse_continue, mi_execute_command): Use scoped_restore.
13824 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
13825 scoped_restore.
13826 * guile/guile.c (guile_repl_command, guile_command)
13827 (gdbscm_execute_gdb_command): Use scoped_restore.
13828 * go-exp.y (go_parse): Use scoped_restore.
13829 * d-exp.y (d_parse): Use scoped_restore.
13830 * cli/cli-decode.c (cmd_func): Use scoped_restore.
13831 * c-exp.y (c_parse): Use scoped_restore.
13832
13833 2017-04-12 Tom Tromey <tom@tromey.com>
13834
13835 * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
13836 (mi_parse): Update return type.
13837 (mi_parse_free): Remove.
13838 * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
13839 (mi_parse::~mi_parse): Rename from mi_parse_free.
13840 (mi_parse_cleanup): Remove.
13841 (mi_parse): Return a unique_ptr. Use new.
13842 * mi/mi-main.c (mi_execute_command): Update.
13843
13844 2017-04-12 Tom Tromey <tom@tromey.com>
13845
13846 * location.c (explicit_location_lex_one): Return a
13847 unique_xmalloc_ptr.
13848 (string_to_explicit_location): Update. Remove cleanups.
13849
13850 2017-04-12 Tom Tromey <tom@tromey.com>
13851
13852 * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
13853 (compare_value_and_voffset): Change type. Update.
13854 (compute_vtable_size): Change type of "offset_vec".
13855 (gnuv3_print_vtable): Use std::vector. Remove cleanups.
13856 (gnuv3_get_typeid): Remove extraneous declaration.
13857
13858 2017-04-12 Tom Tromey <tom@tromey.com>
13859
13860 * charset.h (wchar_iterator): Fix comment.
13861
13862 2017-04-12 Tom Tromey <tom@tromey.com>
13863
13864 * charset.c (iconv_wrapper): New class.
13865 (cleanup_iconv): Remove.
13866 (convert_between_encodings): Use it.
13867
13868 2017-04-12 Tom Tromey <tom@tromey.com>
13869
13870 * symfile.h (increment_reading_symtab): Update type.
13871 * symfile.c (decrement_reading_symtab): Remove.
13872 (increment_reading_symtab): Return a scoped_restore_tmpl<int>.
13873 * psymtab.c (psymtab_to_symtab): Update.
13874 * dwarf2read.c (dw2_instantiate_symtab): Update.
13875
13876 2017-04-12 Tom Tromey <tom@tromey.com>
13877
13878 * jit.c (struct jit_reader): Declare separately. Add constructor
13879 and destructor. Change type of "handle".
13880 (loaded_jit_reader): Define separately.
13881 (jit_reader_load): Update. New "new".
13882 (jit_reader_unload_command): Use "delete".
13883 * gdb-dlfcn.h (struct dlclose_deleter): New.
13884 (gdb_dlhandle_up): New typedef.
13885 (gdb_dlopen, gdb_dlsym): Update types.
13886 (gdb_dlclose): Remove.
13887 * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up.
13888 (gdb_dlsym): Change type of "handle".
13889 (make_cleanup_dlclose): Remove.
13890 (dlclose_deleter::operator()): Rename from gdb_dlclose.
13891 * compile/compile-c-support.c (load_libcc): Update.
13892
13893 2017-04-12 Tom Tromey <tom@tromey.com>
13894
13895 * symtab.h (find_pcs_for_symtab_line): Change return type.
13896 * symtab.c (find_pcs_for_symtab_line): Change return type.
13897 * python/py-linetable.c (build_line_table_tuple_from_pcs): Change
13898 type of "vec". Update.
13899 (ltpy_get_pcs_for_line): Update.
13900 * linespec.c (decode_digits_ordinary): Update.
13901
13902 2017-04-12 Tom Tromey <tom@tromey.com>
13903
13904 * tracepoint.c (actions_command): Update.
13905 * python/python.c (python_command, python_interactive_command):
13906 Update.
13907 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
13908 * guile/guile.c (guile_command): Update.
13909 * defs.h (read_command_lines, read_command_lines_1): Return
13910 command_line_up.
13911 (command_lines_deleter): New struct.
13912 (command_line_up): New typedef.
13913 * compile/compile.c (compile_code_command)
13914 (compile_print_command): Update.
13915 * cli/cli-script.h (get_command_line, copy_command_lines): Return
13916 command_line_up.
13917 (make_cleanup_free_command_lines): Remove.
13918 * cli/cli-script.c (get_command_line, read_command_lines_1)
13919 (copy_command_lines): Return command_line_up.
13920 (while_command, if_command, read_command_lines, define_command)
13921 (document_command): Update.
13922 (do_free_command_lines_cleanup, make_cleanup_free_command_lines):
13923 Remove.
13924 * breakpoint.h (breakpoint_set_commands): Change type of
13925 "commands".
13926 * breakpoint.c (breakpoint_set_commands): Change type of
13927 "commands". Update.
13928 (do_map_commands_command, update_dprintf_command_list)
13929 (create_tracepoint_from_upload): Update.
13930
13931 2017-04-12 Tom Tromey <tom@tromey.com>
13932
13933 * tracepoint.c (scope_info): Update.
13934 * spu-tdep.c (spu_catch_start): Update.
13935 * python/python.c (gdbpy_decode_line): Update.
13936 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
13937 * python/py-breakpoint.c (bppy_init): Update.
13938 * probe.c (parse_probes): Update.
13939 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
13940 * location.h (event_location_deleter): New struct.
13941 (event_location_up): New typedef.
13942 (new_linespec_location, new_address_location, new_probe_location)
13943 (new_explicit_location, copy_event_location)
13944 (string_to_event_location, string_to_event_location_basic)
13945 (string_to_explicit_location): Update return type.
13946 (make_cleanup_delete_event_location): Remove.
13947 * location.c (new_linespec_location, new_address_location)
13948 (new_probe_location, new_explicit_location, copy_event_location):
13949 Return event_location_up.
13950 (delete_event_location_cleanup)
13951 (make_cleanup_delete_event_location): Remove.
13952 (string_to_explicit_location, string_to_event_location_basic)
13953 (string_to_event_location): Return event_location_up.
13954 * linespec.c (canonicalize_linespec, event_location_to_sals)
13955 (decode_line_with_current_source)
13956 (decode_line_with_last_displayed, decode_objc): Update.
13957 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
13958 * completer.c (location_completer): Update.
13959 * cli/cli-cmds.c (edit_command, list_command): Update.
13960 * breakpoint.c (create_overlay_event_breakpoint)
13961 (create_longjmp_master_breakpoint)
13962 (create_std_terminate_master_breakpoint)
13963 (create_exception_master_breakpoint)
13964 (create_thread_event_breakpoint): Update.
13965 (init_breakpoint_sal): Update. Remove some dead code.
13966 (create_breakpoint_sal): Change type of "location". Update.
13967 (create_breakpoints_sal, create_breakpoint, break_command_1)
13968 (dprintf_command, break_range_command, until_break_command)
13969 (init_ada_exception_breakpoint)
13970 (strace_marker_create_sals_from_location)
13971 (update_static_tracepoint, trace_command, ftrace_command)
13972 (strace_command, create_tracepoint_from_upload): Update.
13973 * break-catch-throw.c (re_set_exception_catchpoint): Update.
13974 * ax-gdb.c (agent_command_1): Update.
13975
13976 2017-04-12 Pedro Alves <palves@redhat.com>
13977
13978 * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o.
13979 * configure.tgt: Handle i[34567]86-*-go32* and
13980 i[34567]86-*-msdosdjgpp*.
13981 * i386-tdep.c (i386_svr4_reg_to_regnum):
13982 Make extern.
13983 (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to
13984 i386-go32-tdep.c.
13985 (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c.
13986 * i386-go32-tdep.c: New file.
13987 * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New
13988 declarations.
13989
13990 2017-04-12 Simon Marchi <simon.marchi@ericsson.com>
13991
13992 * aix-thread.c (pd_status2str): Change return type to const char *.
13993
13994 2017-04-12 Pedro Alves <palves@redhat.com>
13995
13996 * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
13997 calls to set_gdbarch_gnu_triplet_regexp.
13998
13999 2017-04-12 Pedro Alves <palves@redhat.com>
14000
14001 PR gdb/21323
14002 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>:
14003 New enum value.
14004 (cplus_language_arch_info): Register cplus_primitive_type_wchar_t.
14005 * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field.
14006 * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type.
14007 * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values.
14008 * gdbarch.h, gdbarch.c: Regenerate.
14009 * aarch64-tdep.c (aarch64_gdbarch_init): Override
14010 gdbarch_wchar_bit and gdbarch_wchar_signed.
14011 * alpha-tdep.c (alpha_gdbarch_init): Likewise.
14012 * arm-tdep.c (arm_gdbarch_init): Likewise.
14013 * avr-tdep.c (avr_gdbarch_init): Likewise.
14014 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
14015 * i386-nto-tdep.c (i386nto_init_abi): Likewise.
14016 * i386-tdep.c (i386_go32_init_abi): Likewise.
14017 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
14018 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
14019 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
14020 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
14021 * sh-tdep.c (sh_gdbarch_init): Likewise.
14022 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
14023 * sparc64-tdep.c (sparc64_init_abi): Likewise.
14024 * windows-tdep.c (windows_init_abi): Likewise.
14025 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
14026
14027 2017-04-12 Pedro Alves <palves@redhat.com>
14028
14029 PR c++/21323
14030 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t,
14031 cplus_primitive_type_char32_t>: New enum values.
14032 (cplus_language_arch_info): Register cplus_primitive_type_char16_t
14033 and cplus_primitive_type_char32_t.
14034 * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or
14035 32, use the archtecture's built-in type for char16_t and char32_t,
14036 respectively. Otherwise, fallback to init_integer_type as before,
14037 but make the type unsigned, and issue a complaint.
14038 * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned.
14039
14040 2017-04-12 Alan Hayward <alan.hayward@arm.com>
14041
14042 * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added.
14043 (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
14044
14045 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
14046
14047 * windows-nat.c (windows_create_inferior): Declare 'toexec' as
14048 'const char *'.
14049
14050 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
14051
14052 * common/common-utils.c (free_vector_argv): New function.
14053 * common/common-utils.h: Include <vector>.
14054 (free_vector_argv): New prototype.
14055 * darwin-nat.c (darwin_create_inferior): Rewrite function
14056 prototype in order to constify "exec_file" and accept a
14057 "std::string" for "allargs".
14058 * fork-child.c: Include <vector>.
14059 (breakup_args): Rewrite function, using C++.
14060 (fork_inferior): Rewrite function header, constify "exec_file_arg"
14061 and accept "std::string" for "allargs". Update the code to
14062 calculate "argv" based on "allargs". Update calls to "exec_fun"
14063 and "execvp".
14064 * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in
14065 order to constify "exec_file" and accept a "std::string" for
14066 "allargs".
14067 * go32-nat.c (go32_create_inferior): Likewise.
14068 * inf-ptrace.c (inf_ptrace_create_inferior): Likewise.
14069 * infcmd.c (run_command_1): Constify "exec_file". Use
14070 "std::string" for inferior arguments.
14071 * inferior.h (fork_inferior): Update prototype.
14072 * linux-nat.c (linux_nat_create_inferior): Rewrite function
14073 prototype in order to constify "exec_file" and accept a
14074 "std::string" for "allargs".
14075 * nto-procfs.c (procfs_create_inferior): Likewise.
14076 * procfs.c (procfs_create_inferior): Likewise.
14077 * remote-sim.c (gdbsim_create_inferior): Likewise.
14078 * remote.c (extended_remote_run): Update code to accept
14079 "std::string" as argument.
14080 (extended_remote_create_inferior): Rewrite function prototype in
14081 order to constify "exec_file" and accept a "std::string" for
14082 "allargs".
14083 * rs6000-nat.c (super_create_inferior): Likewise.
14084 (rs6000_create_inferior): Likewise.
14085 * target.h (struct target_ops) <to_create_inferior>: Likewise.
14086 * windows-nat.c (windows_create_inferior): Likewise.
14087
14088 2017-04-11 Pedro Alves <palves@redhat.com>
14089
14090 * thread.c: Fix whitespace throughout.
14091
14092 2017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com>
14093
14094 * linux-nat.c (linux_nat_detach): Remove delete_lwp call.
14095
14096 2017-04-11 Alan Hayward <alan.hayward@arm.com>
14097
14098 * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
14099
14100 2017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
14101
14102 PR gdb/21364
14103 * osdata.c (info_osdata): Check if 'type' is an empty string
14104 instead of NULL.
14105
14106 2017-04-10 Pedro Alves <palves@redhat.com>
14107
14108 * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid)
14109 (ptid_to_global_thread_id, in_thread_list)
14110 (do_captured_list_thread_ids, set_resumed, set_running)
14111 (set_executing, set_stop_requested, finish_thread_state)
14112 (validate_registers_access, can_access_registers_ptid)
14113 (print_thread_info_1, switch_to_thread)
14114 (do_restore_current_thread_cleanup)
14115 (make_cleanup_restore_current_thread, thread_command)
14116 (thread_name_command): Use operator== instead of ptid_equal.
14117
14118 2017-04-10 Pedro Alves <palves@redhat.com>
14119
14120 * thread.c (struct current_thread_cleanup) <next>: Delete field.
14121 (current_thread_cleanup_chain): Delete.
14122 (restore_current_thread_cleanup_dtor)
14123 (make_cleanup_restore_current_thread): Remove references to
14124 current_thread_cleanup_chain.
14125
14126 2017-04-10 Alan Hayward <alan.hayward@arm.com>
14127
14128 * msp430-tdep.c (msp430_pseudo_register_read): Never return
14129 REG_UNKNOWN.
14130
14131 2017-04-10 Yao Qi <yao.qi@linaro.org>
14132
14133 PR gdb/19942
14134 * gdbthread.h (thread_info::deletable): New method.
14135 (thread_info::incref): New method.
14136 (thread_info::decref): New method.
14137 (thread_info::refcount): Move it to private.
14138 * infrun.c (save_stop_context): Call inc_refcount.
14139 (release_stop_context_cleanup): Likewise.
14140 * thread.c (set_thread_exited): New function.
14141 (init_thread_list): Delete "tp" only it is deletable, otherwise
14142 call set_thread_exited.
14143 (delete_thread_1): Call set_thread_exited.
14144 (current_thread_cleanup) <inferior_pid>: Remove.
14145 <thread>: New field.
14146 (restore_current_thread_ptid_changed): Removed.
14147 (do_restore_current_thread_cleanup): Adjust.
14148 (restore_current_thread_cleanup_dtor): Don't call
14149 find_thread_ptid.
14150 (set_thread_refcount): Use dec_refcount.
14151 (make_cleanup_restore_current_thread): Adjust.
14152 (thread_apply_all_command): Call inc_refcount.
14153 (_initialize_thread): Don't call
14154 observer_attach_thread_ptid_changed.
14155
14156 2017-04-10 Yao Qi <yao.qi@linaro.org>
14157
14158 * thread.c (delete_thread_1): Hoist code on marking thread as
14159 exited.
14160
14161 2017-04-09 Simon Marchi <simon.marchi@polymtl.ca>
14162
14163 * windows-nat.c (windows_detach): Initialize ptid with
14164 minus_one_ptid.
14165
14166 2017-04-07 Simon Marchi <simon.marchi@ericsson.com>
14167
14168 * unittests/ptid-selftests.c: Fix erroneous assert messages.
14169
14170 2017-04-07 Alan Hayward <alan.hayward@arm.com>
14171
14172 * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
14173 (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE.
14174 (bfin_pseudo_register_write): Likewise
14175
14176 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
14177
14178 * common/ptid.h (struct ptid): Change to...
14179 (class ptid_t): ... this.
14180 <ptid_t>: New constructors.
14181 <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=,
14182 matches>: New methods.
14183 <make_null, make_minus_one>: New static methods.
14184 <pid>: Rename to...
14185 <m_pid>: ...this.
14186 <lwp>: Rename to...
14187 <m_lwp>: ...this.
14188 <tid>: Rename to...
14189 <m_tid>: ...this.
14190 (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
14191 ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments
14192 as references, move comment to class ptid_t.
14193 * common/ptid.c (null_ptid, minus_one_ptid): Initialize with
14194 ptid_t static methods.
14195 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid,
14196 ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match):
14197 Take ptid arguments as references, implement using ptid_t methods.
14198 * unittests/ptid-selftests.c: New file.
14199 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14200 unittests/ptid-selftests.c.
14201 (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o.
14202
14203 2017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
14204
14205 * python/python.c (python_run_simple_file): Cast mode literal to
14206 non-const char pointer as expected by PyFile_FromString.
14207
14208 2017-04-05 Simon Marchi <simon.marchi@ericsson.com>
14209
14210 * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with
14211 minus_one_ptid and null_ptid.
14212
14213 2017-04-05 Pedro Alves <palves@redhat.com>
14214
14215 * warning.m4 (build_warnings): Remove -Wno-write-strings.
14216 * configure: Regenerate.
14217
14218 2017-04-05 Pedro Alves <palves@redhat.com>
14219
14220 * ada-exp.y (yyerror): Constify.
14221 * ada-lang.c (bound_name, get_selections)
14222 (ada_variant_discrim_type)
14223 (ada_variant_discrim_name, ada_value_struct_elt)
14224 (ada_lookup_struct_elt_type, is_unchecked_variant)
14225 (ada_which_variant_applies, standard_exc, ada_get_next_arg)
14226 (catch_ada_exception_command_split)
14227 (catch_ada_assert_command_split, catch_assert_command)
14228 (ada_op_name): Constify.
14229 * ada-lang.h (ada_yyerror, get_selections)
14230 (ada_variant_discrim_name, ada_value_struct_elt): Constify.
14231 * arc-tdep.c (arc_print_frame_cache): Constify.
14232 * arm-tdep.c (arm_skip_stub): Constify.
14233 * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref)
14234 (gen_aggregate_elt_ref): Constify.
14235 * bcache.c (print_bcache_statistics): Constify.
14236 * bcache.h (print_bcache_statistics): Constify.
14237 * break-catch-throw.c (catch_exception_command_1):
14238 * breakpoint.c (struct ep_type_description::description):
14239 Constify.
14240 (add_solib_catchpoint): Constify.
14241 (catch_fork_command_1): Add cast.
14242 (add_catch_command): Constify.
14243 * breakpoint.h (add_catch_command, add_solib_catchpoint):
14244 Constify.
14245 * bsd-uthread.c (bsd_uthread_state): Constify.
14246 * buildsym.c (patch_subfile_names): Constify.
14247 * buildsym.h (next_symbol_text_func, patch_subfile_names):
14248 Constify.
14249 * c-exp.y (yyerror): Constify.
14250 (token::oper): Constify.
14251 * c-lang.h (c_yyerror, cp_print_class_member): Constify.
14252 * c-varobj.c (cplus_describe_child): Constify.
14253 * charset.c (find_charset_names): Add cast.
14254 (find_charset_names): Constify array and add const_cast.
14255 * cli/cli-cmds.c (complete_command, cd_command): Constify.
14256 (edit_command): Constify.
14257 * cli/cli-decode.c (lookup_cmd): Constify.
14258 * cli/cli-dump.c (dump_memory_command, dump_value_command):
14259 Constify.
14260 (struct dump_context): Constify.
14261 (add_dump_command, restore_command): Constify.
14262 * cli/cli-script.c (get_command_line): Constify.
14263 * cli/cli-script.h (get_command_line): Constify.
14264 * cli/cli-utils.c (check_for_argument): Constify.
14265 * cli/cli-utils.h (check_for_argument): Constify.
14266 * coff-pe-read.c (struct read_pe_section_data): Constify.
14267 * command.h (lookup_cmd): Constify.
14268 * common/print-utils.c (decimal2str): Constify.
14269 * completer.c (gdb_print_filename): Constify.
14270 * corefile.c (set_gnutarget): Constify.
14271 * cp-name-parser.y (yyerror): Constify.
14272 * cp-valprint.c (cp_print_class_member): Constify.
14273 * cris-tdep.c (cris_register_name, crisv32_register_name):
14274 Constify.
14275 * d-exp.y (yyerror): Constify.
14276 (struct token::oper): Constify.
14277 * d-lang.h (d_yyerror): Constify.
14278 * dbxread.c (struct header_file_location::name): Constify.
14279 (add_old_header_file, add_new_header_file, last_function_name)
14280 (dbx_next_symbol_text, add_bincl_to_list)
14281 (find_corresponding_bincl_psymtab, set_namestring)
14282 (find_stab_function_addr, read_dbx_symtab, start_psymtab)
14283 (dbx_end_psymtab, read_ofile_symtab, process_one_symbol):
14284 * defs.h (command_line_input, print_address_symbolic)
14285 (deprecated_readline_begin_hook): Constify.
14286 * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name):
14287 Constify.
14288 * event-top.c (handle_line_of_input): Constify and add cast.
14289 * exceptions.c (catch_errors): Constify.
14290 * exceptions.h (catch_errors): Constify.
14291 * expprint.c (print_subexp_standard, op_string, op_name)
14292 (op_name_standard, dump_raw_expression, dump_raw_expression):
14293 * expression.h (op_name, op_string, dump_raw_expression):
14294 Constify.
14295 * f-exp.y (yyerror): Constify.
14296 (struct token::oper): Constify.
14297 (struct f77_boolean_val::name): Constify.
14298 * f-lang.c (f_word_break_characters): Constify.
14299 * f-lang.h (f_yyerror): Constify.
14300 * fork-child.c (fork_inferior): Add cast.
14301 * frv-tdep.c (struct gdbarch_tdep::register_names): Constify.
14302 (new_variant): Constify.
14303 * gdbarch.sh (pstring_ptr, pstring_list): Constify.
14304 * gdbarch.c: Regenerate.
14305 * gdbcore.h (set_gnutarget): Constify.
14306 * go-exp.y (yyerror): Constify.
14307 (token::oper): Constify.
14308 * go-lang.h (go_yyerror): Constify.
14309 * go32-nat.c (go32_sysinfo): Constify.
14310 * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify.
14311 * guile/scm-cmd.c (cmdscm_function): Constify.
14312 * guile/scm-param.c (pascm_param_value): Constify.
14313 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
14314 (h8300sx_register_name): Constify.
14315 * hppa-tdep.c (hppa32_register_name, hppa64_register_name):
14316 Constify.
14317 * ia64-tdep.c (ia64_register_names): Constify.
14318 * infcmd.c (construct_inferior_arguments): Constify.
14319 (path_command, attach_post_wait): Constify.
14320 * language.c (show_range_command, show_case_command)
14321 (unk_lang_error): Constify.
14322 * language.h (language_defn::la_error)
14323 (language_defn::la_name_of_this): Constify.
14324 * linespec.c (decode_line_2): Constify.
14325 * linux-thread-db.c (thread_db_err_str): Constify.
14326 * lm32-tdep.c (lm32_register_name): Constify.
14327 * m2-exp.y (yyerror): Constify.
14328 * m2-lang.h (m2_yyerror): Constify.
14329 * m32r-tdep.c (m32r_register_names): Constify and make static.
14330 * m68hc11-tdep.c (m68hc11_register_names): Constify.
14331 * m88k-tdep.c (m88k_register_name): Constify.
14332 * macroexp.c (appendmem): Constify.
14333 * mdebugread.c (fdr_name, add_data_symbol, parse_type)
14334 (upgrade_type, parse_external, parse_partial_symbols)
14335 (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab)
14336 (new_symbol): Constify.
14337 * memattr.c (mem_info_command): Constify.
14338 * mep-tdep.c (register_name_from_keyword): Constify.
14339 * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env):
14340 Constify.
14341 * mi/mi-cmd-stack.c (list_args_or_locals): Constify.
14342 * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify.
14343 * mi/mi-main.c (captured_mi_execute_command): Constify and add
14344 cast.
14345 (mi_execute_async_cli_command): Constify.
14346 * mips-tdep.c (mips_register_name): Constify.
14347 * mn10300-tdep.c (register_name, mn10300_generic_register_name)
14348 (am33_register_name, am33_2_register_name)
14349 * moxie-tdep.c (moxie_register_names): Constify.
14350 * nat/linux-osdata.c (osdata_type): Constify fields.
14351 * nto-tdep.c (nto_parse_redirection): Constify.
14352 * objc-lang.c (lookup_struct_typedef, lookup_objc_class)
14353 (lookup_child_selector): Constify.
14354 (objc_methcall::name): Constify.
14355 * objc-lang.h (lookup_objc_class, lookup_child_selector)
14356 (lookup_struct_typedef): Constify.
14357 * objfiles.c (pc_in_section): Constify.
14358 * objfiles.h (pc_in_section): Constify.
14359 * p-exp.y (struct token::oper): Constify.
14360 (yyerror): Constify.
14361 * p-lang.h (pascal_yyerror): Constify.
14362 * parser-defs.h (op_name_standard): Constify.
14363 (op_print::string): Constify.
14364 (exp_descriptor::op_name): Constify.
14365 * printcmd.c (print_address_symbolic): Constify.
14366 * psymtab.c (print_partial_symbols): Constify.
14367 * python/py-breakpoint.c (stop_func): Constify.
14368 (bppy_get_expression): Constify.
14369 * python/py-cmd.c (cmdpy_completer::name): Constify.
14370 (cmdpy_function): Constify.
14371 * python/py-event.c (evpy_add_attribute)
14372 (gdbpy_initialize_event_generic): Constify.
14373 * python/py-event.h (evpy_add_attribute)
14374 (gdbpy_initialize_event_generic): Constify.
14375 * python/py-evts.c (add_new_registry): Constify.
14376 * python/py-finishbreakpoint.c (outofscope_func): Constify.
14377 * python/py-framefilter.c (get_py_iter_from_func): Constify.
14378 * python/py-inferior.c (get_buffer): Add cast.
14379 * python/py-param.c (parm_constant::name): Constify.
14380 * python/py-unwind.c (fprint_frame_id): Constify.
14381 * python/python.c (gdbpy_parameter_value): Constify.
14382 * remote-fileio.c (remote_fio_func_map): Make 'name' const.
14383 * remote.c (memory_packet_config::name): Constify.
14384 (show_packet_config_cmd, remote_write_bytes)
14385 (remote_buffer_add_string):
14386 * reverse.c (exec_reverse_once): Constify.
14387 * rs6000-tdep.c (variant::name, variant::description): Constify.
14388 * rust-exp.y (rustyyerror): Constify.
14389 * rust-lang.c (rust_op_name): Constify.
14390 * rust-lang.h (rustyyerror): Constify.
14391 * serial.h (serial_ops::name): Constify.
14392 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
14393 (sh_sh3e_register_name, sh_sh2e_register_name)
14394 (sh_sh2a_register_name, sh_sh2a_nofpu_register_name)
14395 (sh_sh_dsp_register_name, sh_sh3_dsp_register_name)
14396 (sh_sh4_register_name, sh_sh4_nofpu_register_name)
14397 (sh_sh4al_dsp_register_name): Constify.
14398 * sh64-tdep.c (sh64_register_name): Constify.
14399 * solib-darwin.c (lookup_symbol_from_bfd): Constify.
14400 * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify.
14401 * stabsread.c (patch_block_stabs, read_type_number)
14402 (ref_map::stabs, ref_add, process_reference)
14403 (symbol_reference_defined, define_symbol, define_symbol)
14404 (error_type, read_type, read_member_functions, read_cpp_abbrev)
14405 (read_one_struct_field, read_struct_fields, read_baseclasses)
14406 (read_tilde_fields, read_struct_type, read_array_type)
14407 (read_enum_type, read_sun_builtin_type, read_sun_floating_type)
14408 (read_huge_number, read_range_type, read_args, common_block_start)
14409 (find_name_end): Constify.
14410 * stabsread.h (common_block_start, define_symbol)
14411 (process_one_symbol, symbol_reference_defined, ref_add):
14412 * symfile.c (get_section_index, add_symbol_file_command):
14413 * symfile.h (get_section_index): Constify.
14414 * target-descriptions.c (tdesc_type::name): Constify.
14415 (tdesc_free_type): Add cast.
14416 * target.c (find_default_run_target):
14417 (add_deprecated_target_alias, find_default_run_target)
14418 (target_announce_detach): Constify.
14419 (do_option): Constify.
14420 * target.h (add_deprecated_target_alias): Constify.
14421 * thread.c (print_thread_info_1): Constify.
14422 * top.c (deprecated_readline_begin_hook, command_line_input):
14423 Constify.
14424 (init_main): Add casts.
14425 * top.h (handle_line_of_input): Constify.
14426 * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify.
14427 * tracepoint.c (tvariables_info_1, trace_status_mi): Constify.
14428 (tfind_command): Rename to ...
14429 (tfind_command_1): ... this and constify.
14430 (tfind_command): New function.
14431 (tfind_end_command, tfind_start_command): Adjust.
14432 (encode_source_string): Constify.
14433 * tracepoint.h (encode_source_string): Constify.
14434 * tui/tui-data.c (tui_partial_win_by_name): Constify.
14435 * tui/tui-data.h (tui_partial_win_by_name): Constify.
14436 * tui/tui-source.c (tui_set_source_content_nil): Constify.
14437 * tui/tui-source.h (tui_set_source_content_nil): Constify.
14438 * tui/tui-win.c (parse_scrolling_args): Constify.
14439 * tui/tui-windata.c (tui_erase_data_content): Constify.
14440 * tui/tui-windata.h (tui_erase_data_content): Constify.
14441 * tui/tui-winsource.c (tui_erase_source_content): Constify.
14442 * tui/tui.c (tui_enable): Add cast.
14443 * utils.c (defaulted_query): Constify.
14444 (init_page_info): Add cast.
14445 (puts_debug, subset_compare): Constify.
14446 * utils.h (subset_compare): Constify.
14447 * varobj.c (varobj_format_string): Constify.
14448 * varobj.h (varobj_format_string): Constify.
14449 * vax-tdep.c (vax_register_name): Constify.
14450 * windows-nat.c (windows_detach): Constify.
14451 * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify.
14452 * xml-support.c (gdb_xml_end_element): Constify.
14453 * xml-tdesc.c (tdesc_start_reg): Constify.
14454 * xstormy16-tdep.c (xstormy16_register_name): Constify.
14455 * xtensa-tdep.c (xtensa_find_register_by_name): Constify.
14456 * xtensa-tdep.h (xtensa_register_t::name): Constify.
14457
14458 2017-04-05 Pedro Alves <palves@redhat.com>
14459
14460 * proc-api.c (struct trans): Constify.
14461 (procfs_note): Constify.
14462 * proc-events.c (struct trans, syscall_table):
14463 * proc-flags.c (struct trans): Constify.
14464 * proc-utils.h (procfs_note): Constify.
14465 * proc-why.c (struct trans): Constify.
14466 * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error)
14467 (procfs_detach): Constify.
14468 * sol-thread.c (struct string_map): Constify.
14469 (td_err_string, td_state_string): Constify.
14470
14471 2017-04-05 Pedro Alves <palves@redhat.com>
14472
14473 * proc-api.c (procfs_filename): Don't initialize
14474 procfs_filename.
14475 (prepare_to_trace): Assume procfs_filename is non-NULL.
14476 (_initialize_proc_api): Give procfs_filename a default value here.
14477
14478 2017-04-05 Pedro Alves <palves@redhat.com>
14479
14480 * break-catch-throw.c (handle_gnu_v3_exceptions): Constify
14481 'cond_string' parameter.
14482 (extract_exception_regexp): Constify 'string' parameter.
14483 (catch_exception_command_1): Constify.
14484 * breakpoint.c (init_catchpoint)
14485 (create_fork_vfork_event_catchpoint): Constify 'cond_string'
14486 parameter.
14487 (ep_parse_optional_if_clause, catch_fork_command_1)
14488 (catch_exec_command_1): Constify.
14489 * breakpoint.h (init_catchpoint): Constify 'cond_string'
14490 parameter.
14491 (ep_parse_optional_if_clause): Constify.
14492 * cli/cli-utils.c (remove_trailing_whitespace)
14493 (check_for_argument): Constify.
14494 * cli/cli-utils.h (remove_trailing_whitespace): Constify and add
14495 non-const overload.
14496 (check_for_argument): Likewise.
14497
14498 2017-04-05 Pedro Alves <palves@redhat.com>
14499
14500 * event-top.c (command_line_handler): Add cast to execute_command
14501 call.
14502 * record-btrace.c (cmd_record_btrace_bts_start)
14503 (cmd_record_btrace_pt_start, cmd_record_btrace_start)
14504 (cmd_record_btrace_start): Add cast to execute_command call.
14505 * record-full.c (record_full_goto_insn):
14506 * record.c (record_start, record_stop): Add cast to
14507 execute_command_to_string calls.
14508 (cmd_record_start): Add cast to execute_command calls.
14509
14510 2017-04-05 Pedro Alves <palves@redhat.com>
14511
14512 * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New
14513 static inline function.
14514 * python/py-arch.c (archpy_disassemble): Constify 'keywords'
14515 array and use gdb_PyArg_ParseTupleAndKeywords.
14516 * python/py-cmd.c (cmdpy_init): Likewise.
14517 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
14518 * python/py-inferior.c (infpy_read_memory, infpy_write_memory)
14519 (infpy_search_memory): Likewise.
14520 * python/py-objfile.c (objfpy_add_separate_debug_file)
14521 (gdbpy_lookup_objfile): Likewise.
14522 * python/py-symbol.c (gdbpy_lookup_symbol)
14523 (gdbpy_lookup_global_symbol): Likewise.
14524 * python/py-type.c (gdbpy_lookup_type): Likewise.
14525 * python/py-value.c (valpy_lazy_string, valpy_string): Likewise.
14526 * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush):
14527 Likewise.
14528
14529 2017-04-05 Pedro Alves <palves@redhat.com>
14530
14531 * python/python-internal.h (gdb_PyGetSetDef): New type.
14532 * python/py-block.c (block_object_getset)
14533 (breakpoint_object_getset): Now a gdb_PyGetSetDef array.
14534 * python/py-event.c (event_object_getset)
14535 (finish_breakpoint_object_getset): Likewise.
14536 * python/py-inferior.c (inferior_object_getset): Likewise.
14537 * python/py-infthread.c (thread_object_getset): Likewise.
14538 * python/py-lazy-string.c (lazy_string_object_getset): Likewise.
14539 * python/py-linetable.c (linetable_entry_object_getset): Likewise.
14540 * python/py-objfile.c (objfile_getset): Likewise.
14541 * python/py-progspace.c (pspace_getset): Likewise.
14542 * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset):
14543 Likewise.
14544 * python/py-record.c (recpy_record_getset): Likewise.
14545 * python/py-symbol.c (symbol_object_getset): Likewise.
14546 * python/py-symtab.c (symtab_object_getset, sal_object_getset):
14547 Likewise.
14548 * python/py-type.c (type_object_getset, field_object_getset):
14549 Likewise.
14550 * python/py-value.c (value_object_getset): Likewise.
14551
14552 2017-04-05 Pedro Alves <palves@redhat.com>
14553
14554 * python/python-internal.h (gdb_PyObject_CallMethod)
14555 (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath):
14556 New functions.
14557 (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException)
14558 (PySys_GetObject, PySys_SetPath): New macros.
14559
14560 2017-04-05 Pedro Alves <palves@redhat.com>
14561
14562 * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of
14563 info_osdata_command.
14564 * osdata.c (info_osdata_command): Rename to ...
14565 (info_osdata): ... this. Constify 'type' parameter, and remove
14566 the 'from_tty' parameter. Accept NULL TYPE.
14567 (info_osdata_command): New function.
14568 * osdata.h (info_osdata_command): Remove declaration.
14569 (info_osdata): New declaration.
14570
14571 2017-04-05 Pedro Alves <palves@redhat.com>
14572
14573 * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert)
14574 (mi_cmd_dprintf_insert, mi_cmd_break_passcount)
14575 (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command'
14576 parameter.
14577 * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception)
14578 (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter.
14579 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command'
14580 parameter.
14581 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path)
14582 (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show)
14583 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
14584 (mi_cmd_file_list_exec_source_files)
14585 (mi_cmd_file_list_shared_libraries): Constify 'command' parameter.
14586 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
14587 (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command'
14588 parameter.
14589 * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters)
14590 (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth)
14591 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
14592 (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame)
14593 (mi_cmd_stack_info_frame): Constify 'command' parameter.
14594 * mi/mi-cmd-target.c (mi_cmd_target_file_get)
14595 (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify
14596 'command' parameter.
14597 * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete)
14598 (mi_cmd_var_set_format, mi_cmd_var_set_visualizer)
14599 (mi_cmd_var_set_frozen, mi_cmd_var_show_format)
14600 (mi_cmd_var_info_num_children, mi_cmd_var_list_children)
14601 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
14602 (mi_cmd_var_info_expression, mi_cmd_var_show_attributes)
14603 (mi_cmd_var_evaluate_expression, mi_cmd_var_assign)
14604 (mi_cmd_var_update, mi_cmd_enable_pretty_printing)
14605 (mi_cmd_var_set_update_range): Constify 'command' parameter.
14606 * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter.
14607 * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command'
14608 parameter.
14609 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next)
14610 (mi_cmd_exec_next_instruction, mi_cmd_exec_step)
14611 (mi_cmd_exec_step_instruction, mi_cmd_exec_finish)
14612 (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue)
14613 (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach)
14614 (mi_cmd_target_flash_erase, mi_cmd_thread_select)
14615 (mi_cmd_thread_list_ids, mi_cmd_thread_info)
14616 (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names)
14617 (mi_cmd_data_list_changed_registers)
14618 (mi_cmd_data_write_register_values)
14619 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
14620 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory)
14621 (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings)
14622 (mi_cmd_list_features, mi_cmd_list_target_features)
14623 (mi_cmd_add_inferior, mi_cmd_remove_inferior)
14624 (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables)
14625 (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start)
14626 (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info)
14627 (mi_cmd_trace_frame_collected): Constify 'command'
14628 parameter.
14629 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify
14630 'command' parameter.
14631
14632 2017-04-05 Pedro Alves <palves@redhat.com>
14633
14634 * ada-lang.c (ada_completer_word_break_characters): Now a const
14635 array.
14636 (ada_get_gdb_completer_word_break_characters): Constify.
14637 * completer.c (gdb_completer_command_word_break_characters)
14638 (gdb_completer_file_name_break_characters)
14639 (gdb_completer_quote_characters): Now const arrays.
14640 (get_gdb_completer_quote_characters): Constify.
14641 (set_rl_completer_word_break_characters): New function.
14642 (set_gdb_completion_word_break_characters)
14643 (complete_line_internal): Use it.
14644 * completer.h (get_gdb_completer_quote_characters): Constify.
14645 (set_rl_completer_word_break_characters): Declare.
14646 * f-lang.c (f_word_break_characters): Constify.
14647 * language.c (default_word_break_characters): Constify.
14648 * language.h (language_defn::la_word_break_characters): Constify.
14649 (default_word_break_characters): Constify.
14650 * top.c (init_main): Use set_rl_completer_word_break_characters.
14651
14652 2017-04-05 Pedro Alves <palves@redhat.com>
14653
14654 * aix-thread.c (aix_thread_pid_to_str)
14655 (aix_thread_extra_thread_info): Constify.
14656 * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
14657 * bsd-uthread.c (bsd_uthread_extra_thread_info)
14658 (bsd_uthread_pid_to_str): Constify.
14659 * corelow.c (core_pid_to_str): Constify.
14660 * darwin-nat.c (darwin_pid_to_str): Constify.
14661 * fbsd-nat.c (fbsd_pid_to_str): Constify.
14662 * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
14663 Constify.
14664 * gnu-nat.c (gnu_pid_to_str): Constify.
14665 * go32-nat.c (go32_pid_to_str): Constify.
14666 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
14667 * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
14668 * inferior.c (inferior_pid_to_str): Constify.
14669 * linux-nat.c (linux_nat_pid_to_str): Constify.
14670 * linux-tdep.c (linux_core_pid_to_str): Constify.
14671 * linux-thread-db.c (thread_db_pid_to_str)
14672 (thread_db_extra_thread_info): Constify.
14673 * nto-tdep.c (nto_extra_thread_info): Constify.
14674 * nto-tdep.h (nto_extra_thread_info): Constify.
14675 * obsd-nat.c (obsd_pid_to_str): Constify.
14676 * procfs.c (procfs_pid_to_str): Constify.
14677 * ravenscar-thread.c (ravenscar_extra_thread_info)
14678 (ravenscar_pid_to_str): Constify.
14679 * remote-sim.c (gdbsim_pid_to_str): Constify.
14680 * remote.c (remote_threads_extra_info, remote_pid_to_str):
14681 Constify.
14682 * sol-thread.c (solaris_pid_to_str): Constify.
14683 * sol2-tdep.c (sol2_core_pid_to_str): Constify.
14684 * sol2-tdep.h (sol2_core_pid_to_str): Constify.
14685 * target.c (default_pid_to_str, target_pid_to_str)
14686 (normal_pid_to_str, default_pid_to_str): Constify.
14687 * target.h (target_ops::to_pid_to_str)
14688 (target_ops::to_extra_thread_info): Constify.
14689 (target_pid_to_str, normal_pid_to_str): Constify.
14690 * windows-nat.c (windows_pid_to_str): Constify.
14691 * gdbarch.sh (core_pid_to_str): Constify.
14692 * target-delegates.c: Regenerate.
14693 * gdbarch.h, gdbarch.c: Regenerate.
14694
14695 2017-04-05 Pedro Alves <palves@redhat.com>
14696
14697 * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
14698 the memory of the temporary warning_pre_print override.
14699 * utils.c (warning_pre_print): Constify.
14700 * utils.h (warning_pre_print): Constify.
14701
14702 2017-04-05 Pedro Alves <palves@redhat.com>
14703
14704 * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
14705 (shell_command): New function.
14706 (make_command): Use std::string.
14707 (init_cli_cmds): Register shell_command instead of shell_escape.
14708
14709 2017-04-05 Pedro Alves <palves@redhat.com>
14710
14711 * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
14712 * tracepoint.c (default_collect): Don't initialize.
14713
14714 2017-04-05 Pedro Alves <palves@redhat.com>
14715
14716 * macroexp.c (macro_buffer::shared): Now a bool.
14717 (init_buffer): Update.
14718 (init_shared_buffer): Constify 'addr' parameter.
14719 (substitute_args, expand, macro_expand, macro_expand_next): Remove
14720 casts.
14721
14722 2017-04-05 Pedro Alves <palves@redhat.com>
14723
14724 * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
14725 * disasm.c (set_disassembler_options): Constify local.
14726 * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
14727
14728 2017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
14729
14730 PR gdb/21352
14731 * tracefile.c (tsave_command): Fix argument parsing for '-r'
14732 option.
14733
14734 2017-04-05 Yao Qi <yao.qi@linaro.org>
14735
14736 * frame.c (frame_unwind_register_unsigned): Call
14737 frame_unwind_register_value.
14738
14739 2017-04-05 Yao Qi <yao.qi@linaro.org>
14740
14741 * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
14742 Use gdb_test_multiple, and don't match anchor.
14743
14744 2017-04-05 Pedro Alves <palves@redhat.com>
14745
14746 * MAINTAINERS (Global Maintainers): Add Simon Marchi.
14747 (Write After Approval): Remove Simon Marchi.
14748
14749 2017-04-05 Pedro Alves <palves@redhat.com>
14750
14751 * common/gdb_optional.h (optional::optional): Make constexpr and
14752 initialize m_dummy.
14753
14754 2017-04-04 John Baldwin <jhb@FreeBSD.org>
14755
14756 * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
14757 (amd64fbsd_jmp_buf_reg_offset): Remove.
14758 (amd64fbsd_supply_uthread): Remove function.
14759 (amd64fbsd_collect_uthread): Remove function.
14760 (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
14761 * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
14762 (x86_64-*-freebsd*): Remove bsd-uthread.o.
14763 (fbsd-nat.c): Update comment.
14764 * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
14765 (i386fbsd_jmp_buf_reg_offset): Remove.
14766 (i386fbsd_supply_uthread): Remove function.
14767 (i386fbsd_collect_uthread): Remove function.
14768 (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
14769
14770 2017-04-04 John Baldwin <jhb@FreeBSD.org>
14771
14772 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
14773 (ALLDEPFILES): Remove alpha-fbsd-tdep.c
14774 * NEWS: Mention that support for FreeBSD/alpha was removed.
14775 * alpha-fbsd-tdep.c: Delete file.
14776 * config/alpha/fbsd.mh: Delete file.
14777 * configure.host: Delete alpha*-*-freebsd* and
14778 alpha*-*-kfreebsd*-gnu.
14779 * configure.tgt: Delete alpha*-*-freebsd* and
14780 alpha*-*-kfreebsd*-gnu.
14781
14782 2017-04-04 John Baldwin <jhb@FreeBSD.org>
14783
14784 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
14785 amd64bsd_store_inferior_registers): Use ptid from regcache.
14786
14787 2017-04-04 Pedro Alves <palves@redhat.com>
14788
14789 * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
14790 data fields, make them private and add "m_" prefixes.
14791 (lnp_state_machine::lnp_state_machine): New ctor.
14792 (record_line, check_line_address, handle_set_discriminator)
14793 (handle_set_address, handle_advance_pc, handle_special_opcode)
14794 (handle_advance_line, handle_set_file, handle_negate_stmt)
14795 (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
14796 (end_sequence, advance_line): New methods.
14797 (m_gdbarch, m_record_lines_p): New fields.
14798 (lnp_reader_state): Delete.
14799 (dwarf_record_line): Rename to ...
14800 (lnp_state_machine::record_line): ... adjust.
14801 (init_lnp_state_machine): Delete.
14802 (lnp_state_machine::lnp_state_machine): New.
14803 (check_line_address): Rename to ...
14804 (lnp_state_machine::check_line_address): This.
14805 (dwarf_decode_lines_1): Remove reference to "reader_state".
14806 Adjust lnp_state_machine having a non-default ctor. Use bool.
14807 State machine internal state manipulation moved to
14808 lnp_state_machine methods.
14809
14810 2017-04-04 Pedro Alves <palves@redhat.com>
14811
14812 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14813 unittests/offset-type-selftests.c.
14814 (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
14815 * common/offset-type.h: New file.
14816 * common/preprocessor.h: New file.
14817 * common/traits.h: New file.
14818 * common/valid-expr.h: New file.
14819 * dwarf2expr.c: Include "common/underlying.h". Adjust to use
14820 sect_offset and cu_offset strong typedefs throughout.
14821 * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
14822 typedefs throughout.
14823 * dwarf2loc.c: Include "common/underlying.h". Adjust to use
14824 sect_offset and cu_offset strong typedefs throughout.
14825 * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
14826 typedefs throughout.
14827 * gdbtypes.h: Include "common/offset-type.h".
14828 (cu_offset): Now an offset type (strong typedef) instead of a
14829 struct.
14830 (sect_offset): Likewise.
14831 (union call_site_parameter_u): Rename "param_offset" field to
14832 "param_cu_off".
14833 * unittests/offset-type-selftests.c: New file.
14834
14835 2017-04-04 Pedro Alves <palves@redhat.com>
14836
14837 * common/underlying.h: New file.
14838 * dwarf2read.c: Include "common/gdb_optional.h" and
14839 "common/underlying.h".
14840 (dir_index, file_name_index): New types.
14841 (file_entry): Use them.
14842 (file_entry::include): Use to_underlying.
14843 (line_header::add_file_name): Use dir_index.
14844 (read_formatted_entries): Use gdb::optional. Read form before
14845 writting to file_entry.
14846 (dwarf_decode_line_header): Use dir_index.
14847 (lnp_state_machine::current_file): Use to_underlying.
14848 (lnp_state_machine::file): Change type to file_name_index.
14849 (dwarf_record_line): Use to_underlying.
14850 (init_lnp_state_machine): Use file_name_index.
14851 (dwarf_decode_lines_1): Use dir_index and file_name_index.
14852
14853 2017-04-04 Pedro Alves <palves@redhat.com>
14854
14855 * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
14856 operator bool, has_value and get methods.
14857
14858 2017-04-04 Pedro Alves <palves@redhat.com>
14859
14860 * dwarf2read.c (struct file_entry): Add ctors, and initialize all
14861 fields.
14862 (line_header): Initialize all data fields. Change type of
14863 standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
14864 Change type of include_dirs to std::vector<const char *>. Remove
14865 num_include_dirs, include_dirs_size. Change type of file_names to
14866 std::vector<file_entry>. Remove num_file_names, file_names_size.
14867 (line_header::line_header): New.
14868 (line_header::add_include_dir, line_header::add_file_name): New
14869 methods.
14870 (line_header::include_dir_at): Remove NULL check.
14871 (line_header::file_name_at): Add const overload.
14872 (line_header_up): New unique_ptr typedef.
14873 (dw2_get_file_names_reader): Use line_header_up. Adjust to use
14874 std::vector. Remove free_line_header call.
14875 (dwarf2_build_include_psymtabs): Use line_header_up. Remove
14876 free_line_header call.
14877 (free_cu_line_header): Delete.
14878 (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
14879 (setup_type_unit_groups): Use line_header_up instead of cleanups.
14880 Adjust to use std::vector.
14881 (free_line_header): Delete.
14882 (free_line_header_voidp): Use delete.
14883 (add_include_dir): Replace with ...
14884 (line_header::add_include_dir): ... this method. Use std::vector.
14885 (add_file_name): Replace with ...
14886 (line_header::add_file_name): ... this method. Use std::vector.
14887 (add_include_dir_stub): Delete.
14888 (read_formatted_entries): Remove memset.
14889 (dwarf_decode_line_header): Return a line_header_up instead of a
14890 raw pointer. Remove cleanup handling. Pass lambdas to
14891 read_formatted_entries. Adjust to use line_header methods.
14892 (dwarf_decode_lines_1): Adjust to use line_header methods.
14893 (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
14894 use std::vector.
14895
14896 2017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
14897
14898 * remote.c (set_general_thread, set_continue_thread): Use ptid_t
14899 instead of struct ptid.
14900
14901 2017-05-04 Alan Hayward <alan.hayward@arm.com>
14902
14903 * frame.c (get_frame_register_bytes): Unwind using value.
14904 (put_frame_register_bytes): Likewise.
14905
14906 2017-03-30 Iain Buclaw <ibuclaw@gdcproject.org>
14907
14908 * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
14909 aggregate-like.
14910
14911 2017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
14912
14913 * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
14914
14915 2017-03-29 Yao Qi <yao.qi@linaro.org>
14916
14917 * gdbthread.h (struct thread_info): Declare constructor and
14918 destructor. Add some in-class member initializers.
14919 * thread.c (free_thread): Remove.
14920 (init_thread_list): Call delete instead of free_thread.
14921 (new_thread): Call thread_info constructor.
14922 (thread_info::thread_info): New function.
14923 (thread_info::~thread_info): New function.
14924 (delete_thread_1): Call delete instead of free_thread.
14925 (make_cleanup_restore_current_thread): Move tp and frame to
14926 inner block.
14927
14928 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
14929
14930 * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
14931 (arc_skip_prologue): Likewise.
14932 (arc_make_frame_cache): Likewise.
14933 (arc_pv_get_operand): New function.
14934 (arc_is_in_prologue): Likewise.
14935 (arc_analyze_prologue): Likewise.
14936 (arc_print_frame_cache): Likewise.
14937 (MAX_PROLOGUE_LENGTH): New constant.
14938
14939 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
14940
14941 * configure.tgt: Add arc-insn.o.
14942 * arc-tdep.c (arc_delayed_print_insn): Make non-static.
14943 (dump_arc_instruction_command): New function.
14944 (arc_fprintf_disasm): Likewise.
14945 (arc_disassemble_info): Likewise.
14946 (arc_insn_get_operand_value): Likewise.
14947 (arc_insn_get_operand_value_signed): Likewise.
14948 (arc_insn_get_memory_base_reg): Likewise.
14949 (arc_insn_get_memory_offset): Likewise.
14950 (arc_insn_get_branch_target): Likewise.
14951 (arc_insn_dump): Likewise.
14952 (arc_insn_get_linear_next_pc): Likewise.
14953 * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
14954 (arc_disassemble_info): Likewise.
14955 (arc_insn_get_branch_target): Likewise.
14956 (arc_insn_get_linear_next_pc): Likewise.
14957 * NEWS: Mention new "maint print arc arc-instruction".
14958
14959 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
14960
14961 * arc-tdep (maintenance_print_arc_list): New variable.
14962 (maintenance_print_arc_command): New function.
14963
14964 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
14965
14966 * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
14967 Add "limm" and "reserved".
14968 (arc_cannot_fetch_register, arc_cannot_store_register): Add
14969 ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
14970 * arc-tdep.h (arc_regnum): Likewise.
14971
14972 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
14973
14974 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
14975 for THREADPTR register.
14976 (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
14977 register.
14978 * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
14979 (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
14980 * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
14981
14982 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
14983
14984 * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
14985 registers above gdbarch_num_regs (gdbarch) as privileged in
14986 call0 ABI.
14987
14988 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
14989
14990 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
14991 for a single specified register or for all registers in
14992 a0_base..a0_base + C0_NREGS range.
14993 (supply_gregset_reg): Call regcache_raw_supply for a single
14994 specified register or for all registers in a0_base..a0_base +
14995 C0_NREGS range.
14996
14997 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
14998
14999 * arch/xtensa.h (C0_NREGS): Add definition.
15000 * xtensa-tdep.c (C0_NREGS): Remove definition.
15001
15002 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
15003
15004 * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
15005 Drop xtensa_default_isa initialization.
15006 (xtensa_gdbarch_init): Initialize xtensa_default_isa.
15007
15008 2017-03-27 Pedro Alves <palves@redhat.com>
15009
15010 * dwarf2read.c (file_entry) <dir_index>: Add comment.
15011 (file_entry::include_dir): New method.
15012 (line_header::include_dir_at, line_header::file_name_at): New
15013 methods.
15014 (setup_type_unit_groups, setup_type_unit_groups)
15015 (psymtab_include_file_name): Simplify using the new methods.
15016 (lnp_state_machine) <the_line_header>: New field.
15017 <file>: Add comment.
15018 (lnp_state_machine::current_file): New method.
15019 (dwarf_record_line): Simplify using the new methods.
15020 (init_lnp_state_machine): Initialize the "the_line_header" field.
15021 (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
15022 Simplify using the new methods.
15023
15024 2017-03-27 Pedro Alves <palves@redhat.com>
15025
15026 * cp-name-parser.y (make_empty): Delete.
15027 (demangler_special, nested_name, ptr_operator, array_indicator)
15028 (direct_declarator, declarator_1): Use fill_comp instead of
15029 make_empty.
15030
15031 2017-03-27 Pedro Alves <palves@redhat.com>
15032
15033 * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
15034 to ATTRIBUTE_PRINTF.
15035 * solib-target.c (library_list_start_list): Print "string" not
15036 "version".
15037 * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
15038 gdb_xml_error call.
15039
15040 2017-03-27 Pedro Alves <palves@redhat.com>
15041
15042 * dwarf2read.c (struct file_and_directory): New.
15043 (dwarf2_get_dwz_file): Adjust to use std::string.
15044 (dw2_get_file_names_reader): Adjust to use file_and_directory.
15045 (find_file_and_directory): Adjust to return a file_and_directory
15046 object.
15047 (read_file_scope): Adjust to use file_and_directory. Remove
15048 make_cleanup/do_cleanups calls.
15049 (open_and_init_dwp_file): Adjust to use std::string. Remove
15050 make_cleanup/do_cleanups calls.
15051 * python/python.c (do_start_initialization): Adjust to ldirname
15052 returning a std::string.
15053 * utils.c (ldirname): Now returns a std::string.
15054 * utils.h (ldirname): Change return type to std::string.
15055 * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
15056 returning a std::string.
15057 * xml-tdesc.c (file_read_description_xml): Likewise.
15058
15059 2017-03-24 Alan Hayward <alan.hayward@arm.com>
15060
15061 * regcache.c (regcache_debug_print_register): New function.
15062 * regcache.h (regcache_debug_print_register): New declaration.
15063 * target.c (debug_print_register): Remove.
15064 (target_fetch_registers): Call regcache_debug_print_register.
15065 (target_store_registers): Likewise.
15066
15067 2017-03-24 Pádraig Brady <pbrady@fb.com>
15068
15069 * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
15070 reference beyond the 'lh->include_dirs' array before accessing to
15071 it.
15072 (psymtab_include_file_name): Likewise.
15073 (dwarf_decode_lines_1): Likewise.
15074 (dwarf_decode_lines): Likewise.
15075 (file_file_name): Likewise.
15076
15077 2017-03-23 Simon Marchi <simon.marchi@ericsson.com>
15078
15079 * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
15080 inferior_ptid.
15081 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
15082 ps_lsetfpregs): Likewise.
15083 * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
15084 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
15085 ps_lsetfpregs): Likewise.
15086 * target.c (target_fetch_registers, target_store_registers):
15087 Remove asserts.
15088
15089 2017-03-23 Alan Hayward <alan.hayward@arm.com>
15090
15091 * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
15092
15093 2017-03-23 Yao Qi <yao.qi@linaro.org>
15094
15095 * aarch64-tdep.c (aarch64_process_record_test): Declare.
15096 (_initialize_aarch64_tdep): Register it.
15097 (aarch64_record_load_store): Handle PRFM instruction.
15098 (aarch64_process_record_test): New function.
15099
15100 2017-03-23 Yao Qi <yao.qi@linaro.org>
15101
15102 * aarch64-tdep.c (aarch64_record_load_store): Fix code
15103 indentation.
15104
15105 2017-03-23 Yao Qi <yao.qi@linaro.org>
15106
15107 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
15108
15109 2017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
15110
15111 python/python.c (do_start_initialization): Fix memory leak.
15112
15113 2017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
15114
15115 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
15116 using get_ptrace_pid.
15117 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
15118 inferior_ptid.
15119 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
15120 inferior_ptid instead of pid.
15121
15122 2017-03-22 Yao Qi <yao.qi@linaro.org>
15123
15124 * aarch64-tdep.c: Wrap locally used classes in anonymous
15125 namespace.
15126 * arm-tdep.c: Likewise.
15127 * linespec.c: Likewise.
15128 * ui-out.c: Likewise.
15129
15130 2017-03-22 Jonah Graham <jonah@kichwacoders.com>
15131
15132 PR gdb/19637
15133 * python/lib/gdb/printer/bound_registers.py: Import sys.
15134
15135 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
15136
15137 * windows-nat.c (do_windows_fetch_inferior_registers): Add
15138 windows_thread_info parameter and use it instead of
15139 current_thread.
15140 (windows_fetch_inferior_registers): Don't set current_thread,
15141 pass the thread to do_windows_fetch_inferior_registers. Use
15142 ptid from regcache instead of inferior_ptid.
15143 (do_windows_store_inferior_registers): Add windows_thread_info
15144 parameter and use it instead of current_thread.
15145 (windows_store_inferior_registers): Don't set current_thread,
15146 pass the thread to do_windows_store_inferior_registers. Use
15147 ptid from regcache instead of inferior_ptid.
15148
15149 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
15150
15151 * ser-mingw.c (ser_windows_raw): Remove reference to
15152 struct serial::current_timeout.
15153
15154 2017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
15155
15156 PR tdep/20928
15157 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
15158 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
15159 (sparc64_fsr_type): Fix %fsr decoding.
15160
15161 2017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
15162
15163 * python/py-record-btrace.c (btpy_insn_data): Change return type
15164 for Python 2.
15165
15166 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
15167
15168 * spu-linux-nat.c (spu_fetch_inferior_registers,
15169 spu_store_inferior_registers): Use ptid from regcache, set and
15170 restore inferior_ptid.
15171 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
15172 Likewise.
15173
15174 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
15175
15176 * i386-linux-nat.c (fetch_register, store_register,
15177 i386_linux_fetch_inferior_registers,
15178 i386_linux_store_inferior_registers): Use ptid from regcache.
15179 * ia64-linux-nat.c (ia64_linux_fetch_register,
15180 ia64_linux_store_register): Likewise.
15181 * inf-ptrace.c (inf_ptrace_fetch_register,
15182 inf_ptrace_store_register): Likewise.
15183 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
15184 m32r_linux_store_inferior_registers): Likewise.
15185 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
15186 m68kbsd_store_inferior_registers): Likewise.
15187 * m68k-linux-nat.c (fetch_register, store_register,
15188 m68k_linux_fetch_inferior_registers,
15189 m68k_linux_store_inferior_registers): Likewise.
15190 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
15191 m88kbsd_store_inferior_registers): Likewise.
15192 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
15193 mips_fbsd_store_inferior_registers): Likewise.
15194 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
15195 mips64_linux_regsets_store_registers): Likewise.
15196 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
15197 mipsnbsd_store_inferior_registers): Likewise.
15198 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
15199 mips64obsd_store_inferior_registers): Likewise.
15200 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
15201 Likewise.
15202 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
15203 ppcfbsd_store_inferior_registers): Likewise.
15204 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
15205 ppc_linux_store_inferior_registers): Likewise.
15206 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
15207 ppcnbsd_store_inferior_registers): Likewise.
15208 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
15209 ppcobsd_store_registers): Likewise.
15210 * procfs.c (procfs_fetch_registers, procfs_store_registers):
15211 Likewise.
15212 * ravenscar-thread.c (ravenscar_fetch_registers,
15213 ravenscar_store_registers, ravenscar_prepare_to_store):
15214 Likewise.
15215 * record-btrace.c (record_btrace_fetch_registers,
15216 record_btrace_store_registers, record_btrace_prepare_to_store):
15217 Likewise.
15218 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
15219 Lookup inferior using ptid from regcache, instead of
15220 current_inferior.
15221 * remote.c (remote_fetch_registers, remote_store_registers): Use
15222 ptid from regcache.
15223 * rs6000-nat.c (fetch_register, store_register): Likewise.
15224 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
15225 s390_linux_store_inferior_registers): Likewise.
15226 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
15227 shnbsd_store_inferior_registers): Likewise.
15228 * sol-thread.c (sol_thread_fetch_registers,
15229 sol_thread_store_registers): Likewise.
15230 * sparc-nat.c (sparc_fetch_inferior_registers,
15231 sparc_store_inferior_registers): Likewise.
15232 * tilegx-linux-nat.c (fetch_inferior_registers,
15233 store_inferior_registers): Likewise.
15234 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
15235 vaxbsd_store_inferior_registers): Likewise.
15236 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
15237 store_xtregs): Likewise.
15238
15239 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15240
15241 PR gdb/14441
15242 * NEWS: Mention support for rvalue references in GDB and python.
15243 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
15244 supports both lvalue and rvalue references.
15245
15246 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15247
15248 PR gdb/14441
15249 * gdbtypes.c (rank_one_type): Implement overloading
15250 resolution rules regarding rvalue references.
15251
15252 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15253
15254 PR gdb/14441
15255 * aarch64-tdep.c (aarch64_type_align)
15256 (aarch64_extract_return_value, aarch64_store_return_value): Change
15257 lvalue reference type checks to general reference type checks.
15258 * amd64-tdep.c (amd64_classify): Likewise.
15259 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
15260 Likewise.
15261 * arm-tdep.c (arm_type_align, arm_extract_return_value)
15262 (arm_store_return_value): Likewise.
15263 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
15264 * c-typeprint.c (c_print_type): Likewise.
15265 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
15266 (cplus_number_of_children, cplus_describe_child): Likewise.
15267 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
15268 * completer.c (expression_completer): Likewise.
15269 * cp-support.c (make_symbol_overload_list_adl_namespace):
15270 Likewise.
15271 * darwin-nat-info.c (info_mach_region_command): Likewise.
15272 * dwarf2loc.c (entry_data_value_coerce_ref)
15273 (value_of_dwarf_reg_entry): Likewise.
15274 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
15275 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
15276 Likewise.
15277 * findvar.c (extract_typed_address, store_typed_address):
15278 Likewise.
15279 * gdbtypes.c (rank_one_type): Likewise.
15280 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
15281 * infcall.c (value_arg_coerce): Likewise.
15282 * language.c (pointer_type): Likewise.
15283 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
15284 Likewise.
15285 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
15286 * mn10300-tdep.c (mn10300_type_align): Likewise.
15287 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
15288 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
15289 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
15290 Likewise.
15291 * printcmd.c (print_formatted, x_command): Likewise.
15292 * python/py-type.c (typy_get_composite, typy_template_argument):
15293 Likewise.
15294 * python/py-value.c (valpy_referenced_value)
15295 (valpy_get_dynamic_type, value_has_field): Likewise.
15296 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
15297 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
15298 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
15299 * spu-tdep.c (spu_scalar_value_p): Likewise.
15300 * symtab.c (lookup_symbol_aux): Likewise.
15301 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
15302 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
15303 Likewise.
15304 * valops.c (value_cast_pointers, value_cast)
15305 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
15306 (value_struct_elt, value_struct_elt_bitpos)
15307 (value_find_oload_method_list, find_overload_match)
15308 (value_rtti_indirect_type): Likewise.
15309 * valprint.c (val_print_scalar_type_p, generic_val_print):
15310 Likewise.
15311 * value.c (value_actual_type, value_as_address, unpack_long)
15312 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
15313 (coerce_ref): Likewise.
15314 * varobj.c (varobj_get_value_type): Likewise.
15315
15316 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15317
15318 PR gdb/14441
15319 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
15320 table of constants.
15321 * python/lib/gdb/command/explore.py: Support exploring values
15322 of rvalue reference types.
15323 * python/lib/gdb/types.py: Implement get_basic_type() for
15324 rvalue reference types.
15325 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
15326 constant.
15327 * python/py-value.c (valpy_getitem): Add an rvalue reference
15328 check.
15329 (valpy_reference_value): Add new parameter "refcode".
15330 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
15331 New wrappers for valpy_reference_value().
15332 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
15333 (gdbpy_invoke_xmethod): Likewise.
15334
15335 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15336
15337 PR gdb/14441
15338 * dwarf2read.c (process_die, read_type_die_1): Handle the
15339 DW_TAG_rvalue_reference_type DIE.
15340 (read_tag_reference_type): Add new parameter "refcode".
15341
15342 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15343
15344 PR gdb/14441
15345 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
15346 (c_type_print_modifier, c_type_print_varspec_suffix)
15347 (c_type_print_base): Support printing rvalue reference types.
15348 * c-valprint.c (c_val_print, c_value_print): Support printing
15349 rvalue reference values.
15350
15351 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15352
15353 PR gdb/14441
15354 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
15355 typename.
15356 * cp-support.c (replace_typedefs): Handle
15357 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
15358 * python/py-type.c (typy_lookup_type): Likewise.
15359
15360 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15361
15362 PR gdb/14441
15363 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
15364 * parse.c (insert_type): Change assert statement.
15365 (follow_types): Handle rvalue reference types.
15366 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
15367 constant.
15368
15369 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15370
15371 PR gdb/14441
15372 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
15373 value_ref() interface.
15374 * c-valprint.c (c_value_print): Likewise.
15375 * infcall.c (value_arg_coerce): Likewise.
15376 * python/py-value.c (valpy_reference_value): Likewise.
15377 * valops.c (value_cast, value_reinterpret_cast)
15378 (value_dynamic_cast, typecmp): Likewise.
15379 (value_ref): Parameterize by kind of return value reference type.
15380 * value.h (value_ref): Add new parameter "refcode".
15381
15382 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15383
15384 PR gdb/14441
15385 * dwarf2read.c (read_tag_reference_type): Use
15386 lookup_lvalue_reference_type() instead of lookup_reference_type().
15387 * eval.c (evaluate_subexp_standard): Likewise.
15388 * f-exp.y: Likewise.
15389 * gdbtypes.c (make_reference_type, lookup_reference_type):
15390 Generalize with rvalue reference types.
15391 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
15392 convenience wrappers for lookup_reference_type().
15393 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
15394 reference kind parameter.
15395 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
15396 wrappers for lookup_reference_type().
15397 * guile/scm-type.c (gdbscm_type_reference): Use
15398 lookup_lvalue_reference_type() instead of lookup_reference_type().
15399 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
15400 * parse.c (follow_types): Likewise.
15401 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
15402 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
15403 Likewise.
15404 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
15405 (gdbpy_invoke_xmethod): Likewise.
15406 * stabsread.c: Provide extra argument to make_reference_type()
15407 call.
15408 * valops.c (value_ref, value_rtti_indirect_type): Use
15409 lookup_lvalue_reference_type() instead of lookup_reference_type().
15410
15411 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15412
15413 PR gdb/14441
15414 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
15415 (TYPE_IS_REFERENCE): New macro.
15416 (struct type): Add rvalue_reference_type field.
15417 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
15418
15419 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
15420
15421 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
15422 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
15423 New function definition.
15424 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
15425 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
15426 New function declaration.
15427 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
15428 * mi/mi-interp.h: New file.
15429 * solib.c (info_sharedlibrary_command): Replace for loop with
15430 ALL_SO_LIBS macro
15431 * solib.h (update_solib_list): New function declaration.
15432 (so_list_head): Move macro.
15433 * solist.h (ALL_SO_LIBS): New macro.
15434
15435 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
15436
15437 * infcmd.c (post_create_inferior): Remove unused argument in
15438 call to solib_add.
15439 * remote.c (remote_start_remote): Likewise.
15440 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
15441 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
15442 (enable_break): Likewise.
15443 * solib.c (update_solib_list): Remove unused target argument
15444 and its documentation.
15445 (solib_add): Remove unused target argument. Remove unused
15446 argument in call to update_solib_list.
15447 (info_sharedlibrary_command): Remove unused argument in call
15448 to update_solib_list.
15449 (sharedlibrary_command): Remove unused argument in call to
15450 solib_add.
15451 (handle_solib_event): Likewise.
15452 (reload_shared_libraries): Likewise.
15453 * solib.h (solib_add): Remove unused target argument.
15454
15455 2017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
15456
15457 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
15458 (s390_displaced_step_fixup): Cover relative branches with the
15459 default fixup handling. This fixes lack of support for some
15460 relative branch instructions.
15461
15462 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15463
15464 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
15465 ptid from regcache.
15466
15467 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15468
15469 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
15470 i386_darwin_store_inferior_registers): Use ptid from regcache.
15471
15472 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15473
15474 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
15475 i386bsd_store_inferior_registers): Use ptid from regcache.
15476
15477 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15478
15479 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
15480 hppaobsd_store_registers): Use ptid from regcache.
15481
15482 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15483
15484 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
15485 hppanbsd_store_registers): Use ptid from regcache.
15486
15487 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15488
15489 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
15490 from regcache. Use get_ptrace_pid.
15491
15492 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15493
15494 * corelow.c (get_core_register_section): Use ptid from regcache,
15495 update doc.
15496
15497 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15498
15499 * bsd-uthread.c (bsd_uthread_fetch_registers,
15500 bsd_uthread_store_registers): Use ptid from regcache, set and
15501 restore inferior_ptid.
15502
15503 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15504
15505 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
15506 fetch_fp_regs, store_register, store_regs, store_fp_register,
15507 store_fp_regs): Use ptid from regcache.
15508
15509 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15510
15511 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
15512 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
15513 store_vfp_regs): Use ptid from regcache.
15514
15515 2017-03-17 Pedro Alves <palves@redhat.com>
15516
15517 PR remote/21188
15518 * ser-base.c (ser_base_wait_for): Add comment.
15519 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
15520 version.
15521 * ser-unix.c (hardwire_raw): Remove reference to
15522 scb->current_timeout.
15523 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
15524 (hardwire_ops): Install ser_base_readchar instead of
15525 hardwire_readchar.
15526 * serial.h (struct serial) <current_timeout, timeout_remaining>:
15527 Remove fields.
15528
15529 2017-03-17 Jonah Graham <jonah@kichwacoders.com>
15530
15531 PR gdb/19637
15532 * python/lib/gdb/printer/bound_registers.py: Add support for
15533 Python 3.
15534
15535 2017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
15536
15537 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
15538 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
15539 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
15540 byte_offset to subobj_byte_offset. Fix the handling of
15541 DWARF_VALUE_STACK on big-endian targets when coming via an
15542 implicit pointer.
15543 (dwarf2_evaluate_loc_desc): Adjust call to
15544 dwarf2_evaluate_loc_desc_full.
15545 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
15546 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
15547
15548 2017-03-16 Yao Qi <yao.qi@linaro.org>
15549
15550 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
15551 and REVSH instructions.
15552
15553 2017-03-16 Yao Qi <yao.qi@linaro.org>
15554
15555 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
15556 (arm_record_test): Declare.
15557 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
15558 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
15559 align with the manual.
15560 (thumb_record_misc): Adjust the code order to align with the
15561 manual.
15562 (thumb2_record_decode_insn_handler): Fix instruction matching.
15563 (instruction_reader_thumb): New class.
15564 (arm_record_test): New function.
15565
15566 2017-03-16 Yao Qi <yao.qi@linaro.org>
15567
15568 * arm-tdep.c (abstract_memory_reader): New class.
15569 (instruction_reader): New class.
15570 (extract_arm_insn): Add argument 'reader'. Callers updated.
15571 (decode_insn): Likewise.
15572
15573 2017-03-16 Doug Evans <dje@google.com>
15574
15575 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
15576 member. Change type of TYPE member to SCM. All uses updated.
15577 (lsscm_make_lazy_string_smob): Add assert.
15578 (lsscm_make_lazy_string): Flag bad length values.
15579 (lsscm_elt_type): New function.
15580 (gdbscm_lazy_string_to_value): Rewrite to use
15581 lsscm_safe_lazy_string_to_value.
15582 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
15583 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
15584 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
15585 in incoming type.
15586 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
15587 * guile/scm-type.c (tyscm_scm_to_type): New function.
15588
15589 2017-03-15 Doug Evans <dje@google.com>
15590
15591 PR python/17728, python/18439, python/18779
15592 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
15593 member. Change type of TYPE member to PyObject *. All uses updated.
15594 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
15595 (gdbpy_create_lazy_string_object): Flag bad length values.
15596 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
15597 Handle typedefs in incoming type.
15598 (stpy_lazy_string_elt_type): New function.
15599 (gdbpy_extract_lazy_string): Call it.
15600 * python/py-value.c (valpy_lazy_string): Flag bad length values.
15601 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
15602 typedefs in incoming type.
15603
15604 2017-03-16 Doug Evans <dje@google.com>
15605
15606 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
15607 * guile/scm-type.c (tyscm_scm_to_type): New function.
15608
15609 2017-03-16 Jiong Wang <jiong.wang@arm.com>
15610
15611 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
15612 "ULONGEST" for "skip".
15613
15614 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
15615
15616 PR gdb/21220
15617 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
15618 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
15619 (inf_ptrace_peek_poke): ...here. New function. Now also loop
15620 over ptrace peek/poke until end of buffer or error.
15621
15622 2017-03-14 Simon Marchi <simon.marchi@ericsson.com>
15623
15624 * parse.c (length_of_subexp): Make static.
15625 * parser-defs.h (length_of_subexp): Remove.
15626
15627 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
15628
15629 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
15630 as well.
15631
15632 2017-03-14 Pedro Alves <palves@redhat.com>
15633
15634 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
15635 (main): Use std::unique_ptr. Remove calls to
15636 cp_demangled_name_parse_free.
15637
15638 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15639
15640 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
15641 alphabsd_store_inferior_registers): Use regcache->ptid instead
15642 of inferior_ptid.
15643
15644 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15645
15646 * aix-thread.c (aix_thread_fetch_registers,
15647 aix_thread_store_registers): Use regcache->ptid instead of
15648 inferior_ptid.
15649
15650 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15651
15652 * aarch64-linux-nat.c (fetch_gregs_from_thread,
15653 store_gregs_to_thread, fetch_fpregs_from_thread,
15654 store_fpregs_to_thread): Use regcache->ptid instead of
15655 inferior_ptid.
15656
15657 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15658
15659 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
15660 amd64_linux_fetch_inferior_registers): Use regcache->ptid
15661 instead of inferior_ptid.
15662
15663 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15664
15665 * target.c (target_fetch_registers, target_store_registers): Add
15666 assert.
15667
15668 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15669
15670 * regcache.h (regcache_get_ptid): New function.
15671 * regcache.c (regcache_get_ptid): New function.
15672
15673 2017-03-13 Mark Wielaard <mark@klomp.org>
15674
15675 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
15676
15677 2017-03-10 Keith Seitz <keiths@redhat.com>
15678
15679 PR c++/8218
15680 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
15681
15682 2017-03-08 Pedro Alves <palves@redhat.com>
15683
15684 PR gdb/18360
15685 * infrun.c (start_step_over, do_target_resume, resume)
15686 (restart_threads): Assert we're not resuming a thread that is
15687 meant to be stopped.
15688 (infrun_thread_stop_requested_callback): Delete.
15689 (infrun_thread_stop_requested): If the thread is internally
15690 stopped, queue a pending stop event and clear the thread's
15691 inline-frame state.
15692 (handle_stop_requested): New function.
15693 (handle_syscall_event, handle_inferior_event_1): Use
15694 handle_stop_requested.
15695 (handle_stop_requested): New function.
15696 (handle_signal_stop): Set the thread's stop_signal here instead of
15697 at caller.
15698 (finish_step_over): Clear step over info unconditionally.
15699 (handle_signal_stop): If the user had interrupted the event
15700 thread, consider the stop a random signal.
15701 (handle_signal_stop) <signal arrived while stepping over
15702 breakpoint>: Don't restart threads here.
15703 (stop_waiting): Don't clear step-over info here.
15704
15705 2017-03-08 Pedro Alves <palves@redhat.com>
15706
15707 PR 21206
15708 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
15709 goes to argument 2, not 1.
15710
15711 2017-03-08 Pedro Alves <palves@redhat.com>
15712
15713 PR cli/21218
15714 * top.c (gdb_readline_wrapper): Avoid passing NULL to
15715 display_gdb_prompt.
15716 (command_line_input): Add comment.
15717
15718 2017-03-08 Pedro Alves <palves@redhat.com>
15719
15720 PR tui/21216
15721 * tui/tui-file.c (tui_file::write): New.
15722 * tui/tui-file.h (tui_file): Override "write".
15723 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
15724 factored out from ...
15725 (tui_puts): ... here.
15726 (tui_putc): Use them.
15727 (tui_write): New function.
15728 * tui/tui-io.h (tui_write): Declare.
15729
15730 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
15731
15732 * Makefile.in (SFILES): Replace "environ.c" with
15733 "common/environ.c".
15734 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
15735 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
15736 to...
15737 * common/environ.c: ... here.
15738 * environ.h: Moved to...
15739 * common/environ.h: ... here.
15740
15741 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
15742
15743 * gdbarch.sh (pstring_ptr): New static function.
15744 (gdbarch_disassembler_options): Use it.
15745 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
15746 not valid_disassembler_option->name.
15747 * gdbarch.c: Regenerate.
15748
15749 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
15750
15751 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
15752
15753 2017-03-07 Pedro Alves <palves@redhat.com>
15754
15755 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
15756
15757 2017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
15758
15759 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
15760 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
15761 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
15762 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
15763
15764 2017-03-06 Simon Marchi <simon.marchi@ericsson.com>
15765
15766 * xtensa-linux-nat.c (fetch_gregs): Remove const.
15767
15768 2017-03-03 Simon Marchi <simon.marchi@ericsson.com>
15769
15770 * remote.c (remote_add_target_side_commands): Use range-based
15771 for loop.
15772
15773 2017-03-03 Yao Qi <yao.qi@linaro.org>
15774
15775 PR gdb/21165
15776 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
15777 value is lazy.
15778 * valprint.c (common_val_print): Likewise.
15779
15780 2017-02-28 Peter Bergner <bergner@vnet.ibm.com>
15781
15782 * NEWS: Mention new set/show disassembler-options commands.
15783 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
15784 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
15785 (prospective_options): New static variable.
15786 (gdb_disassembler::gdb_disassembler): Initialize
15787 m_di.disassembler_options.
15788 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
15789 (get_disassembler_options): New function.
15790 (set_disassembler_options): Likewise.
15791 (set_disassembler_options_sfunc): Likewise.
15792 (show_disassembler_options_sfunc): Likewise.
15793 (disassembler_options_completer): Likewise.
15794 (_initialize_disasm): Likewise.
15795 * disasm.h (get_disassembler_options): New prototype.
15796 (set_disassembler_options): Likewise.
15797 * gdbarch.sh (gdbarch_disassembler_options): New variable.
15798 (gdbarch_verify_disassembler_options): Likewise.
15799 * gdbarch.c: Regenerate.
15800 * gdbarch.h: Likewise.
15801 * arm-tdep.c (num_disassembly_options): Delete.
15802 (set_disassembly_style): Likewise.
15803 (arm_disassembler_options): New static variable.
15804 (set_disassembly_style_sfunc): Convert short style name into long
15805 option name. Call set_disassembler_options.
15806 (show_disassembly_style_sfunc): New function.
15807 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
15808 set_gdbarch_verify_disassembler_options.
15809 (_initialize_arm_tdep): Delete regnames variable and update callers.
15810 (arm_disassembler_options): Initialize.
15811 (disasm_options): New variable.
15812 (num_disassembly_options): Rename from this...
15813 (num_disassembly_styles): ...to this. Compute by scanning through
15814 disasm_options.
15815 (valid_disassembly_styles): Initialize using disasm_options.
15816 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
15817 set_arm_regname_option.
15818 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
15819 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
15820 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
15821 set_gdbarch_verify_disassembler_options.
15822 * s390-tdep.c (s390_disassembler_options): New static variable.
15823 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
15824 set_gdbarch_verify_disassembler_options.
15825
15826 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
15827
15828 * remote.c (remote_add_target_side_condition): Remove "struct"
15829 keyword from range-based for loop.
15830
15831 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
15832
15833 * remote.c (remote_add_target_side_condition): Use range-based
15834 for loop. Update comment.
15835
15836 2017-02-27 Yao Qi <yao.qi@linaro.org>
15837
15838 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
15839
15840 2017-02-26 Alan Hayward <alan.hayward@arm.com>
15841
15842 * regcache.c (regcache_raw_update): New function.
15843 (regcache_raw_read): Move code to regcache_raw_update.
15844 * regcache.h (regcache_raw_update): New declaration.
15845 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
15846
15847 2017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
15848
15849 * dwarf2read.c (create_debug_type_hash_table): Initialize
15850 header.signature and header.type_offset_in_tu.
15851
15852 2017-02-24 Pedro Alves <palves@redhat.com>
15853
15854 * symtab.c (make_file_symbol_completion_list_1): Use
15855 add_symtab_completions.
15856
15857 2017-02-24 Alan Hayward <alan.hayward@arm.com>
15858
15859 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
15860
15861 2017-02-24 Alan Hayward <alan.hayward@arm.com>
15862
15863 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
15864 I386_MAX_REGISTER_SIZE.
15865 (i386_pseudo_register_write): Likewise.
15866 (i386_process_record): Likewise.
15867 * i387-tdep.c (i387_supply_xsave): Likewise.
15868 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
15869 (store_register): Likewise.
15870
15871 2017-02-23 Pedro Alves <palves@redhat.com>
15872
15873 * ada-lang.c: Include "common/function-view.h".
15874 (ada_iterate_over_symbols): Adjust to use function_view as
15875 callback type.
15876 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
15877 (ada_make_symbol_completion_list): Use a lambda.
15878 (ada_exc_search_name_matches): Delete.
15879 (name_matches_regex): New.
15880 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
15881 * compile/compile-c-support.c: Include "common/function-view.h".
15882 (print_one_macro): Change prototype to accept a ui_file pointer.
15883 (write_macro_definitions): Use a lambda.
15884 * dwarf2read.c: Include "common/function-view.h".
15885 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
15886 (dw2_expand_symtabs_matching): Adjust to use function_view as
15887 callback type.
15888 * language.h: Include "common/function-view.h".
15889 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
15890 function_view as callback type.
15891 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
15892 * linespec.c: Include "common/function-view.h".
15893 (collect_info::add_symbol): New method.
15894 (struct symbol_and_data_callback, iterate_inline_only, struct
15895 symbol_matcher_data, iterate_name_matcher): Delete.
15896 (iterate_over_all_matching_symtabs): Adjust to use function_view
15897 as callback type and lambdas.
15898 (iterate_over_file_blocks): Adjust to use function_view as
15899 callback type.
15900 (decode_compound_collector): Now a class with private fields.
15901 (decode_compound_collector::release_symbols): New method.
15902 (collect_one_symbol): Rename to...
15903 (decode_compound_collector::operator()): ... this and adjust.
15904 (lookup_prefix_sym): decode_compound_collector construction bits
15905 move to decode_compound_collector ctor. Pass the
15906 decode_compound_collector object directly as callback. Remove
15907 cleanups and use decode_compound_collector::release_symbols
15908 instead.
15909 (symtab_collector): Now a class with private fields.
15910 (symtab_collector::release_symtabs): New method.
15911 (add_symtabs_to_list): Rename to...
15912 (symtab_collector::operator()): ... this and adjust.
15913 (collect_symtabs_from_filename): symtab_collector construction
15914 bits move to symtab_collector ctor. Pass the symtab_collector
15915 object directly as callback. Remove cleanups and use
15916 symtab_collector::release_symtabs instead.
15917 (collect_symbols): Delete.
15918 (add_matching_symbols_to_info): Use lambdas.
15919 * macrocmd.c (print_macro_callback): Delete.
15920 (info_macro_command): Use a lambda.
15921 (info_macros_command): Pass print_macro_definition as callable
15922 directly.
15923 (print_one_macro): Remove 'ignore' parameter.
15924 (macro_list_command): Adjust.
15925 * macrotab.c (macro_for_each_data::fn): Now a function_view.
15926 (macro_for_each_data::user_data): Delete field.
15927 (foreach_macro): Adjust to call the function_view.
15928 (macro_for_each): Adjust to use function_view as callback type.
15929 (foreach_macro_in_scope): Adjust to call the function_view.
15930 (macro_for_each_in_scope): Adjust to use function_view as callback
15931 type.
15932 * macrotab.h: Include "common/function-view.h".
15933 (macro_callback_fn): Declare a prototype instead of a pointer.
15934 Remove "user_data" parameter.
15935 (macro_for_each, macro_for_each_in_scope): Adjust to use
15936 function_view as callback type.
15937 * psymtab.c (partial_map_expand_apply)
15938 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
15939 Adjust to use function_view as callback type and to return bool.
15940 (psym_expand_symtabs_matching): Adjust to use function_view as
15941 callback types.
15942 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
15943 to use function_view as callback type and to return bool.
15944 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
15945 callback types.
15946 * symfile.c (expand_symtabs_matching): Adjust to use function_view
15947 as callback types.
15948 * symfile.h: Include "common/function-view.h".
15949 (expand_symtabs_file_matcher_ftype)
15950 (expand_symtabs_symbol_matcher_ftype)
15951 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
15952 return bool.
15953 (quick_symbol_functions::map_symtabs_matching_filename)
15954 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
15955 function_view as callback type and return bool.
15956 (expand_symtabs_matching): Adjust to use function_view as callback
15957 type.
15958 (maintenance_expand_name_matcher)
15959 (maintenance_expand_file_matcher): Delete.
15960 (maintenance_expand_symtabs): Use lambdas.
15961 * symtab.c (iterate_over_some_symtabs): Adjust to use
15962 function_view as callback types and return bool.
15963 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
15964 of a cleanup.
15965 (lookup_symtab_callback): Delete.
15966 (lookup_symtab): Use a lambda.
15967 (iterate_over_symbols): Adjust to use function_view as callback
15968 type.
15969 (struct search_symbols_data, search_symbols_file_matches)
15970 (search_symbols_name_matches): Delete.
15971 (search_symbols): Use a pair of lambdas.
15972 (struct add_name_data, add_macro_name, symbol_completion_matcher)
15973 (symtab_expansion_callback): Delete.
15974 (default_make_symbol_completion_list_break_on_1): Use lambdas.
15975 * symtab.h: Include "common/function-view.h".
15976 (iterate_over_some_symtabs): Adjust to use function_view as
15977 callback type and return bool.
15978 (iterate_over_symtabs): Adjust to use function_view as callback
15979 type.
15980 (symbol_found_callback_ftype): Remove 'data' parameter and return
15981 bool.
15982 (iterate_over_symbols): Adjust to use function_view as callback
15983 type.
15984
15985 2017-02-23 Pedro Alves <palves@redhat.com>
15986
15987 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
15988 (%.o) <unittests/%.c>: New pattern.
15989 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
15990 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
15991 * common/function-view.h: New file.
15992 * unittests/function-view-selftests.c: New file.
15993 * configure: Regenerate.
15994
15995 2017-02-23 Simon Marchi <simon.marchi@ericsson.com>
15996
15997 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
15998 inferior_ptid.
15999 * go32-nat.c (go32_thread_alive): Likewise.
16000
16001 2017-02-23 Yao Qi <yao.qi@linaro.org>
16002
16003 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
16004 delete.
16005
16006 2017-02-23 Yao Qi <yao.qi@linaro.org>
16007
16008 * varobj.c (varobj_clear_saved_item): Use delete instead of
16009 xfree.
16010 (update_dynamic_varobj_children): Likewise.
16011
16012 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
16013
16014 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
16015
16016 2017-02-21 Simon Marchi <simon.marchi@ericsson.com>
16017
16018 * common/enum-flags.h (enum_flags::enum_flags): Initialize
16019 m_enum_value to 0 in default constructor.
16020
16021 2017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
16022
16023 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
16024 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
16025 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
16026 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
16027 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
16028 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
16029 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
16030 IS_STORE_CONDITIONAL_INSN.
16031
16032 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
16033
16034 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
16035
16036 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16037
16038 * NEWS (Changes since GDB 7.12): Add DWARF-5.
16039
16040 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16041
16042 * dwarf2read.c (skip_one_die, read_attribute_value)
16043 (dwarf2_const_value_attr, dump_die_shallow)
16044 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
16045 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
16046
16047 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16048
16049 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
16050 (dwarf_parse_macro_header): Accept DWARF version 5.
16051 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
16052
16053 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16054
16055 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
16056 DW_AT_GNU_*.
16057 * common/common-exceptions.h (enum errors): Likewise.
16058 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
16059 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
16060 (dwarf_expr_context::execute_stack_op): Likewise.
16061 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
16062 Likewise.
16063 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
16064 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
16065 (show_entry_values_debug, call_site_to_target_addr)
16066 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
16067 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
16068 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
16069 (value_of_dwarf_block_entry, indirect_pieced_value)
16070 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
16071 (disassemble_dwarf_expression): Likewise.
16072 * dwarf2read.c (process_die, inherit_abstract_dies)
16073 (read_call_site_scope): Likewise.
16074 * gdbtypes.h (struct func_type, struct call_site_parameter)
16075 (struct call_site): Likewise.
16076 * stack.c (read_frame_arg): Likewise.
16077 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
16078
16079 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16080
16081 * defs.h (read_unsigned_leb128): New declaration.
16082 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
16083 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
16084 (dwarf2_find_location_expression): Call also
16085 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
16086 * dwarf2loc.h (dwarf2_version): New declaration.
16087 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
16088 rnglists.
16089 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
16090 .debug_rnglists.
16091 (struct dwop_section_names): Add loclists_dwo.
16092 (dwop_section_names): Add .debug_loclists.dwo.
16093 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
16094 (struct dwarf2_per_cu_data): Add dwarf_version.
16095 (struct dwo_sections): Add loclists.
16096 (struct attr_abbrev): Add implicit_const.
16097 (read_indirect_line_string): New declaration.
16098 (read_unsigned_leb128): Delete declaration.
16099 (rcuh_kind): New definition.
16100 (read_and_check_comp_unit_head): Change parameter
16101 is_debug_types_section to section_kind.
16102 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
16103 (read_comp_unit_head): Change parameter abfd to section, add parameter
16104 section_kind. Handle DWARF-5.
16105 (error_check_comp_unit_head): Accept also DWARF version 5.
16106 (read_and_check_comp_unit_head): Change parameter
16107 is_debug_types_section to section_kind.
16108 (read_and_check_type_unit_head): Delete function.
16109 (read_abbrev_offset): Handle DWARF-5.
16110 (create_debug_type_hash_table): Add parameter section_kind. Process
16111 only DW_UT_type. Use signature and type_offset_in_tu from struct
16112 comp_unit_head.
16113 (create_debug_types_hash_table): Update create_debug_type_hash_table
16114 caller.
16115 (create_all_type_units): Call create_debug_type_hash_table.
16116 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
16117 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
16118 caller.
16119 (skip_one_die): Handle DW_FORM_implicit_const.
16120 (dwarf2_rnglists_process): New function.
16121 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
16122 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
16123 (read_attribute_value): Handle DW_FORM_implicit_const,
16124 DW_FORM_line_strp.
16125 (read_attribute): Handle DW_FORM_implicit_const.
16126 (read_indirect_string_at_offset_from): New function from
16127 read_indirect_string_at_offset.
16128 (read_indirect_string_at_offset): Call
16129 read_indirect_string_at_offset_from.
16130 (read_indirect_line_string_at_offset): New function.
16131 (read_indirect_string): New function comment.
16132 (read_indirect_line_string): New function.
16133 (read_unsigned_leb128): Make it global.
16134 (dwarf2_string_attr): Handle DWARF-5.
16135 (add_include_dir_stub, read_formatted_entries): New functions.
16136 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
16137 Handle DWARF-5.
16138 (per_cu_header_read_in): Update read_comp_unit_head caller.
16139 (dwarf2_version): New function.
16140 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
16141 rnglists.
16142 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
16143 fields.
16144
16145 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16146
16147 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
16148
16149 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16150
16151 * dwarf2read.c (dwarf2_ranges_process): New function from
16152 dwarf2_ranges_read.
16153 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
16154 dwarf2_ranges_process.
16155
16156 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16157
16158 * dwarf2read.c (create_debug_type_hash_table): New function from
16159 create_debug_types_hash_table.
16160 (create_debug_types_hash_table): Call create_debug_type_hash_table.
16161 (create_all_type_units, open_and_init_dwo_file): Update
16162 create_debug_types_hash_table callers.
16163
16164 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
16165
16166 PR gdb/16188
16167 * fork-child.c (trace_start_error): Fix thinko. va_end should
16168 refer to 'ap', not 'args'.
16169
16170 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
16171 Pedro Alves <palves@redhat.com>
16172
16173 PR gdb/16188
16174 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
16175 calls succeeded.
16176 * fork-child.c (trace_start_error): New function.
16177 (trace_start_error_with_name): Likewise.
16178 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
16179 * inf-ptrace.c (inf_ptrace_me): Likewise.
16180 * inferior.h (trace_start_error): New prototype.
16181 (trace_start_error_with_name): Likewise.
16182
16183 2017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
16184
16185 PR gdb/21164
16186 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
16187 NULL before using it.
16188 * symmisc.c (maintenance_print_symbols): Likewise.
16189 (maintenance_print_msymbols): Likewise.
16190
16191 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16192
16193 * NEWS: Add record Python bindings entry.
16194
16195 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16196
16197 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
16198 py-record-full.o.
16199 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
16200 * python/py-record-btrace.c, python/py-record-btrace.h,
16201 python/py-record-full.c, python/py-record-full.h: New file.
16202 * python/py-record.c: Add include for py-record-btrace.h and
16203 py-record-full.h.
16204 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
16205 recpy_instruction_history, recpy_function_call_history, recpy_begin,
16206 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
16207 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
16208 New definition.
16209 (gdbpy_initialize_btrace): New export.
16210 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
16211
16212 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16213
16214 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
16215 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
16216 * python/py-record.c: New file.
16217 * python/python-internal.h (gdbpy_start_recording,
16218 gdbpy_current_recording, gdpy_stop_recording,
16219 gdbpy_initialize_record): New export.
16220 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
16221 (python_GdbMethods): Add gdbpy_start_recording,
16222 gdbpy_current_recording and gdbpy_stop_recording.
16223
16224 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16225
16226 * record-btrace.c (record_btrace_record_method): New function.
16227 (init_record_btrace_ops): Initialize to_record_method.
16228 * record-full.c (record_full_record_method): New function.
16229 (init_record_full_ops, init_record_full_core_ops): Add
16230 record_full_record_method.
16231 * record.h (enum record_method): New enum.
16232 * target-debug.h (target_debug_print_enum_record_method: New define.
16233 * target-delegates.c: Regenerate.
16234 * target.c (target_record_method): New function.
16235 * target.h: Include record.h.
16236 (struct target_ops) <to_record_method>: New field.
16237 (target_record_method): New export.
16238
16239 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16240
16241 * record.h (record_start, record_stop): New export.
16242 * record.c (record_start, record_stop): New function.
16243
16244 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16245
16246 * btrace.c (btrace_fetch): Copy function call segments pointer
16247 into a vector.
16248 (btrace_clear): Clear the vector.
16249 (btrace_find_insn_by_number): Use binary search to find the correct
16250 function call segment.
16251 * btrace.h (brace_fun_p): New typedef.
16252 (struct btrace_thread_info) <functions>: New field.
16253
16254 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16255
16256 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
16257 * btrace.c (btrace_decode_error): ... here. New function.
16258 * btrace.h (btrace_decode_error): New export.
16259
16260 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16261
16262 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
16263 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
16264 btrace_find_insn_by_number): Remove special case for gaps.
16265 * btrace.h (btrace_insn_get_error): New export.
16266 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
16267 * record-btrace.c (btrace_insn_history): Print number for gaps.
16268 (record_btrace_info, record_btrace_goto): Handle gaps.
16269
16270 2017-02-14 Tom Tromey <tom@tromey.com>
16271
16272 PR python/13598:
16273 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
16274 event.
16275 * python/py-evts.c (gdbpy_initialize_py_events): Add
16276 before_prompt registry.
16277 * python/py-events.h (events_object) <before_prompt>: New field.
16278
16279 2017-02-14 Markus Metzger <markus.t.metzger@intel.com>
16280
16281 * btrace.c (ftrace_new_switch): Preserve up link and flags.
16282
16283 2017-02-13 Luis Machado <lgustavo@codesourcery.com>
16284
16285 * symfile (_initialize_symfile): Add usage text to the load command's
16286 help text.
16287
16288 2017-02-10 Simon Marchi <simon.marchi@ericsson.com>
16289
16290 * utils.c (defaulted_query): Don't query on secondary UIs.
16291
16292 2017-02-10 Tom Tromey <tom@tromey.com>
16293
16294 * rust-lang.c (rust_get_disr_info): Remove unused variable.
16295
16296 2017-02-10 Tom Tromey <tom@tromey.com>
16297
16298 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
16299 "cleanup" local.
16300 * python/py-type.c (typy_legacy_template_argument): Remove
16301 unnecessary "cleanup" local.
16302
16303 2017-02-10 Tom Tromey <tom@tromey.com>
16304
16305 * python/python.c (do_start_initialization): New function, from
16306 _initialize_python.
16307 (_initialize_python): Call do_start_initialization.
16308 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
16309 goto.
16310
16311 2017-02-10 Tom Tromey <tom@tromey.com>
16312
16313 * python/py-prettyprint.c (pretty_print_one_value): Use
16314 gdbpy_ref.
16315
16316 2017-02-10 Tom Tromey <tom@tromey.com>
16317
16318 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
16319 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
16320 gdbpy_ref.
16321 * python/py-type.c (field_new): Use gdbpy_ref.
16322 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
16323 gdbpy_ref.
16324 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
16325 (py_free_pspace): Likewise.
16326 (pspace_to_pspace_object): Likewise.
16327 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
16328 (py_free_objfile): Likewise.
16329 (objfile_to_objfile_object): Likewise.
16330 * python/py-inferior.c (delete_thread_object): Use
16331 gdbpy_ref.
16332 (infpy_read_memory): Likewise.
16333 (py_free_inferior): Likewise.
16334 * python/py-evtregistry.c (create_eventregistry_object): Use
16335 gdbpy_ref.
16336 * python/py-event.c (create_event_object): Use gdbpy_ref.
16337
16338 2017-02-10 Tom Tromey <tom@tromey.com>
16339
16340 * python/py-ref.h (gdbpy_ref_policy): Now a template.
16341 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
16342 used.
16343 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
16344 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
16345 python/py-exitedevent.c, python/py-finishbreakpoint.c,
16346 python/py-framefilter.c, python/py-function.c,
16347 python/py-inferior.c, python/py-infevents.c,
16348 python/py-linetable.c, python/py-newobjfileevent.c,
16349 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
16350 python/py-signalevent.c, python/py-stopevent.c,
16351 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
16352 python/py-unwind.c, python/py-utils.c, python/py-value.c,
16353 python/py-varobj.c, python/py-xmethods.c, python/python.c,
16354 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
16355
16356 2017-02-10 Tom Tromey <tom@tromey.com>
16357
16358 * ui-out.h (ui_out_emit_type): New class.
16359 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
16360 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
16361 and ui_out_emit_tuple.
16362 (enumerate_locals): Likewise.
16363 (py_mi_print_variables, py_print_locals, py_print_args): Use
16364 ui_out_emit_list.
16365 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
16366 ui_out_emit_list.
16367 * common/gdb_optional.h: New file.
16368
16369 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
16370
16371 * MAINTAINERS (Write After Approval): Update my e-mail address.
16372
16373 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
16374
16375 PR gdb/21122
16376 * breakpoint.c (_initialize_breakpoint): Update the help description
16377 of the 'commands' command to indicate that it takes a list argument.
16378
16379 2017-02-09 Simon Marchi <simon.marchi@ericsson.com>
16380
16381 * interps.c (current_interp_set_logging): Remove "return".
16382
16383 2017-02-09 Gary Benson <gbenson@redhat.com>
16384
16385 * symtab.c (add_symtab_completions): Prevent NULL pointer
16386 dereference.
16387
16388 2017-02-08 Pedro Alves <palves@redhat.com>
16389
16390 * interps.c (interp::interp): Remove reference to quiet_p.
16391 (interp_set): Make static. Remove dead "Switching to" output
16392 code.
16393 (interp_quiet_p, interp_set_quiet): Delete.
16394 (interpreter_exec_cmd): Don't set the interpreter quiet.
16395 * interps.h (interp_quiet_p): Make static.
16396 (class interp) <quiet_p>: Remove field
16397
16398 2017-02-08 Jerome Guitton <guitton@adacore.com>
16399
16400 * cli/cli-decode.c (find_command_name_length): Make it extern.
16401 * cli/cli-decode.h (find_command_name_length): Declare.
16402 * cli/cli-script.c (command_name_equals, line_first_arg):
16403 New functions.
16404 (process_next_line): Use cli-decode to parse command names.
16405 (build_command_line): Make args a constant pointer.
16406
16407 2017-02-08 Jerome Guitton <guitton@adacore.com>
16408
16409 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
16410 Remove case-insensitive search.
16411
16412 2017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
16413
16414 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
16415 at the end of the line. Avoids an ARI warning.
16416
16417 2017-02-06 Luis Machado <lgustavo@codesourcery.com>
16418
16419 * NEWS: Mention support for record/replay of Intel 64 rdrand and
16420 rdseed instructions.
16421 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
16422
16423 2017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
16424
16425 PR tdep/20936
16426 Provide and use sparc32 and sparc64 target description XML files.
16427 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
16428 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
16429 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
16430 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
16431 * features/sparc/sparc32-solaris.xml: New file.
16432 * features/sparc/sparc64-solaris.xml: New file.
16433 * features/sparc/sparc32-solaris.c: Generated.
16434 * features/sparc/sparc64-solaris.c: Generated.
16435 * sparc-tdep.h: Account for differences in target descriptions.
16436 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
16437 (sparc32_register_type): Use target provided registers.
16438 (validate_tdesc_registers): New function.
16439 (sparc32_gdbarch_init): Use tdesc_has_registers.
16440 Set pseudoregister functions.
16441 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
16442 (sparc64_register_type): Use target provided registers.
16443 (sparc64_init_abi): Set pseudoregister functions.
16444
16445 2017-02-03 Tom Tromey <tom@tromey.com>
16446
16447 PR rust/21097:
16448 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
16449 with a single member.
16450
16451 2017-02-03 Pedro Alves <palves@redhat.com>
16452
16453 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
16454 (cli_interp_base::~cli_interp_base): New.
16455 (cli_interp): New struct.
16456 (as_cli_interp): Cast the interp itself to cli_interp.
16457 (cli_interpreter_pre_command_loop): Rename to ...
16458 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
16459 parameter.
16460 (cli_interpreter_init): Rename to ...
16461 (cli_interp::init): ... this. Remove 'self' parameter. Use
16462 boolean. Make extern.
16463 (cli_interpreter_resume): Rename to ...
16464 (cli_interp::resume): ... this. Remove 'data' parameter. Make
16465 extern.
16466 (cli_interpreter_suspend): Rename to ...
16467 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
16468 extern.
16469 (cli_interpreter_exec): Rename to ...
16470 (cli_interp::exec): ... this. Remove 'data' parameter. Make
16471 extern.
16472 (cli_interpreter_supports_command_editing): Rename to ...
16473 (cli_interp_base::supports_command_editing): ... this. Remove
16474 'interp' parameter. Make extern.
16475 (cli_ui_out): Rename to ...
16476 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
16477 Make extern.
16478 (cli_set_logging): Rename to ...
16479 (cli_interp_base::set_logging): ... this. Remove 'interp'
16480 parameter. Make extern.
16481 (cli_interp_procs): Delete.
16482 (cli_interp_factory): Adjust to use "new".
16483 * cli/cli-interp.h: Include "interps.h".
16484 (struct cli_interp_base): New struct.
16485 * interps.c (struct interp): Delete. Fields moved to interps.h.
16486 (interp_new): Delete.
16487 (interp::interp, interp::~interp): New.
16488 (interp_set): Use bool, and return void. Assume the interpreter
16489 has suspend, init and resume methods, and that the all return
16490 void.
16491 (set_top_level_interpreter): interp_set returns void.
16492 (interp_ui_out): Adapt.
16493 (current_interp_set_logging): Adapt.
16494 (interp_data): Delete.
16495 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
16496 (interp_exec): Adapt.
16497 (top_level_interpreter_data): Delete.
16498 * interps.h (interp_init_ftype, interp_resume_ftype)
16499 (interp_suspend_ftype, interp_exec_ftype)
16500 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
16501 (class interp): New.
16502 (interp_new): Delete.
16503 (interp_set): Now returns void. Use bool.
16504 (interp_data, top_level_interpreter_data): Delete.
16505 * mi/mi-common.h: Include interps.h.
16506 (class mi_interp): Inherit from interp. Define a ctor. Declare
16507 init, resume, suspect, exec, interp_ui_out, set_logging and
16508 pre_command_loop methods.
16509 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
16510 (mi_interpreter_init): Rename to ...
16511 (mi_interp::init): ... this. Remove the 'interp' parameter, use
16512 bool, return void and make extern. Adjust.
16513 (mi_interpreter_resume): ... Rename to ...
16514 (mi_interp::resume): ... this. Remove the 'data' parameter,
16515 return void and make extern. Adjust.
16516 (mi_interpreter_suspend): ... Rename to ...
16517 (mi_interp::suspend): ... this. Remove the 'data' parameter,
16518 return void and make extern. Adjust.
16519 (mi_interpreter_exec): ... Rename to ...
16520 (mi_interp::exec): ... this. Remove the 'data' parameter and make
16521 extern. Adjust.
16522 (mi_interpreter_pre_command_loop): ... Rename to ...
16523 (mi_interp::pre_command_loop): ... this. Remove the 'self'
16524 parameter and make extern.
16525 (mi_on_normal_stop_1): Adjust.
16526 (mi_ui_out): Rename to ...
16527 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
16528 parameter and make extern. Adjust.
16529 (mi_set_logging): Rename to ...
16530 (mi_interp::set_logging): ... this. Remove the 'interp'
16531 parameter and make extern. Adjust.
16532 (mi_interp_procs): Delete.
16533 (mi_interp_factory): Adjust to use 'new'.
16534 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
16535 (mi_print_exception, mi_execute_command, mi_load_progress):
16536 Adjust.
16537 * tui/tui-interp.c (tui_interp): New class.
16538 (as_tui_interp): Return a tui_interp pointer.
16539 (tui_on_normal_stop, tui_on_signal_received)
16540 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
16541 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
16542 to use interp::interp_ui_out.
16543 (tui_init): Rename to ...
16544 (tui_interp::init): ... this. Remove the 'self' parameter, use
16545 bool, return void and make extern. Adjust.
16546 (tui_resume): Rename to ...
16547 (tui_interp::resume): ... this. Remove the 'data' parameter,
16548 return void and make extern. Adjust.
16549 (tui_suspend): Rename to ...
16550 (tui_interp::suspend): ... this. Remove the 'data' parameter,
16551 return void and make extern. Adjust.
16552 (tui_ui_out): Rename to ...
16553 (tui_interp::interp_ui_out): ... this. Remove the 'self'
16554 parameter, and make extern. Adjust.
16555 (tui_exec): Rename to ...
16556 (tui_interp::exec): ... this. Remove the 'data' parameter and
16557 make extern.
16558 (tui_interp_procs): Delete.
16559 (tui_interp_factory): Use "new".
16560
16561 2017-02-02 Tom Tromey <tom@tromey.com>
16562
16563 * rust-exp.y (ends_raw_string, space_then_number)
16564 (rust_identifier_start_p): Return bool.
16565 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
16566 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
16567 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
16568 (rust_chartype_p): Return bool.
16569 (val_print_struct, rust_print_struct_def, rust_print_type):
16570 Update.
16571 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
16572 Return bool.
16573
16574 2017-02-02 Tom Tromey <tom@tromey.com>
16575
16576 * rust-lang.c: Reindent.
16577
16578 2017-02-02 Tom Tromey <tom@tromey.com>
16579
16580 * rust-lang.h (rust_crate_for_block): Update.
16581 * rust-lang.c (rust_crate_for_block): Return std::string.
16582 (rust_get_disr_info): Use std:;string, not
16583 gdb::unique_xmalloc_ptr.
16584 * rust-exp.y (crate_name): Update.
16585
16586 2017-02-02 Pedro Alves <palves@redhat.com>
16587
16588 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
16589 field out of gdb_disassembler_test and make it static.
16590
16591 2017-02-02 Pedro Alves <palves@redhat.com>
16592
16593 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
16594 mi1_interp and mi_interp fields.
16595
16596 2017-02-02 Pedro Alves <palves@redhat.com>
16597
16598 * cli/cli-interp.c (struct saved_output_files, saved_output):
16599 Moved from cli/cli-logging.c.
16600 (cli_set_logging): New function.
16601 (cli_interp_procs): Install cli_set_logging.
16602 * cli/cli-interp.h (make_logging_output, cli_set_logging):
16603 Declare.
16604 * cli/cli-logging.c (struct saved_output_files, saved_output):
16605 Moved to cli/cli-interp.c.
16606 (pop_output_files): Don't save outputs here.
16607 (make_logging_output): New function.
16608 (handle_redirections): Don't build tee nor save previous outputs
16609 here.
16610 * interps.c (current_interp_set_logging): Change prototype.
16611 Assume there's always a set_logging_proc method installed.
16612 * interps.h (interp_set_logging_ftype): Change prototype.
16613 (current_interp_set_logging): Change prototype and adjust comment.
16614 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
16615 use make_logging_output.
16616 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
16617 2017-02-02 Pedro Alves <palves@redhat.com>
16618
16619 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
16620 from ...
16621 (set_logging_overwrite): ... here.
16622 (logging_no_redirect_file): Delete.
16623 (set_logging_redirect): Don't handle redirection on the fly.
16624 Instead warn that "logging off" / "logging on" is necessary.
16625 (pop_output_files): Delete references to logging_no_redirect_file.
16626 (show_logging_command): Always speak in terms of what will happen
16627 once logging is reenabled.
16628
16629 2017-02-02 Pedro Alves <palves@redhat.com>
16630
16631 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
16632
16633 2017-02-02 Pedro Alves <palves@redhat.com>
16634
16635 * disasm.c (gdb_pretty_print_insn): Rename to ...
16636 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
16637 Remove gdbarch parameter. Adapt to clear the object's buffers
16638 instead of allocating new buffers, and to print using the object's
16639 gdb_disassembler instead of calling gdb_print_insn.
16640 (dump_insns): Use gdb_pretty_print_disassembler.
16641 * disasm.h (gdb_pretty_print_insn): Delete declaration.
16642 (gdb_pretty_print_disassembler): New class.
16643 * record-btrace.c (btrace_insn_history): Use
16644 gdb_pretty_print_disassembler.
16645
16646 2017-02-02 Pedro Alves <palves@redhat.com>
16647
16648 * ada-lang.c (type_as_string): Use string_file.
16649 * ada-valprint.c (ada_print_floating): Use string_file.
16650 * ada-varobj.c (ada_varobj_scalar_image)
16651 (ada_varobj_get_value_image): Use string_file.
16652 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
16653 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
16654 * breakpoint.c (update_inserted_breakpoint_locations)
16655 (insert_breakpoint_locations, reattach_breakpoints)
16656 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
16657 (print_it_watchpoint): Use string_file.
16658 (save_breakpoints): Use stdio_file.
16659 * c-exp.y (oper): Use string_file.
16660 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
16661 tee_file.
16662 (pop_output_files): Use delete.
16663 (handle_redirections): Use stdio_file and tee_file.
16664 * cli/cli-setshow.c (do_show_command): Use string_file.
16665 * compile/compile-c-support.c (c_compute_program): Use
16666 string_file.
16667 * compile/compile-c-symbols.c (generate_vla_size): Take a
16668 'string_file &' instead of a 'ui_file *'.
16669 (generate_c_for_for_one_variable): Take a 'string_file &' instead
16670 of a 'ui_file *'. Use string_file.
16671 (generate_c_for_variable_locations): Take a 'string_file &'
16672 instead of a 'ui_file *'.
16673 * compile/compile-internal.h (generate_c_for_for_one_variable):
16674 Take a 'string_file &' instead of a 'ui_file *'.
16675 * compile/compile-loc2c.c (push, pushf, unary, binary)
16676 (print_label, pushf_register_address, pushf_register)
16677 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
16678 'ui_file *'. Adjust.
16679 * compile/compile.c (compile_to_object): Use string_file.
16680 * compile/compile.h (compile_dwarf_expr_to_c)
16681 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
16682 'ui_file *'.
16683 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
16684 (replace_typedefs_qualified_name): Use string_file and
16685 obstack_copy0.
16686 * disasm.c (gdb_pretty_print_insn): Use string_file.
16687 (gdb_disassembly): Adjust reference the null_stream global.
16688 (do_ui_file_delete): Delete.
16689 (gdb_insn_length): Use null_stream.
16690 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
16691 * dwarf2loc.c (dwarf2_compile_property_to_c)
16692 (locexpr_generate_c_location, loclist_generate_c_location): Take a
16693 'string_file &' instead of a 'ui_file *'.
16694 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
16695 * dwarf2read.c (do_ui_file_peek_last): Delete.
16696 (dwarf2_compute_name): Use string_file.
16697 * event-top.c (gdb_setup_readline): Use stdio_file.
16698 * gdbarch.sh (verify_gdbarch): Use string_file.
16699 * gdbtypes.c (safe_parse_type): Use null_stream.
16700 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
16701 string_file.
16702 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
16703 'string_file *' instead of a 'ui_file *'.
16704 (gdbscm_arch_disassemble): Use string_file.
16705 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
16706 * guile/scm-ports.c (class ioscm_file_port): Now a class that
16707 inherits from ui_file.
16708 (ioscm_file_port_delete, ioscm_file_port_rewind)
16709 (ioscm_file_port_put): Delete.
16710 (ioscm_file_port_write): Rename to ...
16711 (ioscm_file_port::write): ... this. Remove file_port_magic
16712 checks.
16713 (ioscm_file_port_new): Delete.
16714 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
16715 ui_file_up.
16716 * guile/scm-type.c (tyscm_type_name): Use string_file.
16717 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
16718 Use string_file.
16719 * infcmd.c (print_return_value_1): Use string_file.
16720 * infrun.c (print_target_wait_results): Use string_file.
16721 * language.c (add_language): Use string_file.
16722 * location.c (explicit_to_string_internal): Use string_file.
16723 * main.c (captured_main_1): Use null_file.
16724 * maint.c (maintenance_print_architecture): Use stdio_file.
16725 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
16726 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
16727 event_channel>: Change type to mi_console_file pointer.
16728 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
16729 (mi_console_file_delete): Delete.
16730 (struct mi_console_file): Delete.
16731 (mi_console_file_magic): Delete.
16732 (mi_console_file_new): Delete.
16733 (mi_console_file::mi_console_file): New.
16734 (mi_console_file_delete): Delete.
16735 (mi_console_file_fputs): Delete.
16736 (mi_console_file::write): New.
16737 (mi_console_raw_packet): Delete.
16738 (mi_console_file::flush): New.
16739 (mi_console_file_flush): Delete.
16740 (mi_console_set_raw): Rename to ...
16741 (mi_console_file::set_raw): ... this.
16742 * mi/mi-console.h (class mi_console_file): New class.
16743 (mi_console_file_new, mi_console_set_raw): Delete.
16744 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
16745 (mi_set_logging): Use delete and tee_file. Adjust.
16746 * mi/mi-main.c (output_register): Use string_file.
16747 (mi_cmd_data_evaluate_expression): Use string_file.
16748 (mi_cmd_data_read_memory): Use string_file.
16749 (mi_cmd_execute, print_variable_or_computed): Use string_file.
16750 * mi/mi-out.c (mi_ui_out::main_stream): New.
16751 (mi_ui_out::rewind): Use main_stream and
16752 string_file.
16753 (mi_ui_out::put): Use main_stream and string_file.
16754 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
16755 Allocate a 'string_file' instead.
16756 (mi_out_new): Don't allocate a mem_fileopen stream here.
16757 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
16758 (mi_ui_out::main_stream): Declare method.
16759 * printcmd.c (eval_command): Use string_file.
16760 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
16761 * python/py-arch.c (archpy_disassemble): Use string_file.
16762 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
16763 * python/py-frame.c (frapy_str): Use string_file.
16764 * python/py-framefilter.c (py_print_type, py_print_single_arg):
16765 Use string_file.
16766 * python/py-type.c (typy_str): Use string_file.
16767 * python/py-unwind.c (unwind_infopy_str): Use string_file.
16768 * python/py-value.c (valpy_str): Use string_file.
16769 * record-btrace.c (btrace_insn_history): Use string_file.
16770 * regcache.c (regcache_print): Use stdio_file.
16771 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
16772 * remote.c (escape_buffer): Use string_file.
16773 * rust-lang.c (rust_get_disr_info): Use string_file.
16774 * serial.c (serial_open_ops_1): Use stdio_file.
16775 (do_serial_close): Use delete.
16776 * stack.c (print_frame_arg): Use string_file.
16777 (print_frame_args): Remove local mem_fileopen stream, not used.
16778 (print_frame): Use string_file.
16779 * symmisc.c (maintenance_print_symbols): Use stdio_file.
16780 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
16781 Take a 'string_file *' instead of a 'ui_file *'.
16782 * top.c (new_ui): Use stdio_file and stderr_file.
16783 (free_ui): Use delete.
16784 (execute_command_to_string): Use string_file.
16785 (quit_confirm): Use string_file.
16786 * tracepoint.c (collection_list::append_exp): Use string_file.
16787 * tui/tui-disasm.c (tui_disassemble): Use string_file.
16788 * tui/tui-file.c: Don't include "ui-file.h".
16789 (enum streamtype, struct tui_stream): Delete.
16790 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
16791 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
16792 (tui_file::tui_file): New method.
16793 (tui_file_fputs): Delete.
16794 (tui_file_get_strbuf): Delete.
16795 (tui_file::puts): New method.
16796 (tui_file_adjust_strbuf): Delete.
16797 (tui_file_flush): Delete.
16798 (tui_file::flush): New method.
16799 * tui/tui-file.h: Tweak intro comment.
16800 Include ui-file.h.
16801 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
16802 (tui_file_adjust_strbuf): Delete declarations.
16803 (class tui_file): New class.
16804 * tui/tui-io.c (tui_initialize_io): Use tui_file.
16805 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
16806 (tui_register_format): Use string_stream.
16807 * tui/tui-stack.c (tui_make_status_line): Use string_file.
16808 (tui_get_function_from_frame): Use string_file.
16809 * typeprint.c (type_to_string): Use string_file.
16810 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
16811 (null_stream): New global.
16812 (ui_file_delete): Delete.
16813 (ui_file::ui_file): New.
16814 (null_file_isatty): Delete.
16815 (ui_file::~ui_file): New.
16816 (null_file_rewind): Delete.
16817 (ui_file::printf): New.
16818 (null_file_put): Delete.
16819 (null_file_flush): Delete.
16820 (ui_file::putstr): New.
16821 (null_file_write): Delete.
16822 (ui_file::putstrn): New.
16823 (null_file_read): Delete.
16824 (ui_file::putc): New.
16825 (null_file_fputs): Delete.
16826 (null_file_write_async_safe): Delete.
16827 (ui_file::vprintf): New.
16828 (null_file_delete): Delete.
16829 (null_file::write): New.
16830 (null_file_fseek): Delete.
16831 (null_file::puts): New.
16832 (ui_file_data): Delete.
16833 (null_file::write_async_safe): New.
16834 (gdb_flush, ui_file_isatty): Adjust.
16835 (ui_file_put, ui_file_rewind): Delete.
16836 (ui_file_write): Adjust.
16837 (ui_file_write_for_put): Delete.
16838 (ui_file_write_async_safe, ui_file_read): Adjust.
16839 (ui_file_fseek): Delete.
16840 (fputs_unfiltered): Adjust.
16841 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
16842 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
16843 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
16844 (set_ui_file_data): Delete.
16845 (string_file::~string_file, string_file::write)
16846 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
16847 (do_ui_file_as_string, ui_file_as_string): Delete.
16848 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
16849 (struct mem_file): Delete.
16850 (mem_file_new): Delete.
16851 (stdio_file::stdio_file): New.
16852 (mem_file_delete): Delete.
16853 (stdio_file::stdio_file): New.
16854 (mem_fileopen): Delete.
16855 (stdio_file::~stdio_file): New.
16856 (mem_file_rewind): Delete.
16857 (stdio_file::set_stream): New.
16858 (mem_file_put): Delete.
16859 (stdio_file::open): New.
16860 (mem_file_write): Delete.
16861 (stdio_file_magic, struct stdio_file): Delete.
16862 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
16863 (stdio_file::flush): New.
16864 (stdio_file_read): Rename to ...
16865 (stdio_file::read): ... this. Adjust.
16866 (stdio_file_write): Rename to ...
16867 (stdio_file::write): ... this. Adjust.
16868 (stdio_file_write_async_safe): Rename to ...
16869 (stdio_file::write_async_safe) ... this. Adjust.
16870 (stdio_file_fputs): Rename to ...
16871 (stdio_file::puts) ... this. Adjust.
16872 (stdio_file_isatty): Delete.
16873 (stdio_file_fseek): Delete.
16874 (stdio_file::isatty): New.
16875 (stderr_file_write): Rename to ...
16876 (stderr_file::write) ... this. Adjust.
16877 (stderr_file_fputs): Rename to ...
16878 (stderr_file::puts) ... this. Adjust.
16879 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
16880 (stderr_file::stderr_file): New.
16881 (tee_file_magic): Delete.
16882 (struct tee_file): Delete.
16883 (tee_file::tee_file): New.
16884 (tee_file_new): Delete.
16885 (tee_file::~tee_file): New.
16886 (tee_file_delete): Delete.
16887 (tee_file_flush): Rename to ...
16888 (tee_file::flush): ... this. Adjust.
16889 (tee_file_write): Rename to ...
16890 (tee_file::write): ... this. Adjust.
16891 (tee_file::write_async_safe): New.
16892 (tee_file_fputs): Rename to ...
16893 (tee_file::puts): ... this. Adjust.
16894 (tee_file_isatty): Rename to ...
16895 (tee_file::isatty): ... this. Adjust.
16896 * ui-file.h (struct obstack, struct ui_file): Don't
16897 forward-declare.
16898 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
16899 (ui_file_write_ftype)
16900 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
16901 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
16902 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
16903 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
16904 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
16905 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
16906 (set_ui_file_fseek): Delete.
16907 (ui_file_data, ui_file_delete, ui_file_rewind)
16908 (struct ui_file): New.
16909 (ui_file_up): New.
16910 (class null_file): New.
16911 (null_stream): Declare.
16912 (ui_file_write_for_put, ui_file_put): Delete.
16913 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
16914 Delete.
16915 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
16916 (gdb_fopen, tee_file_new): Delete.
16917 (struct string_file): New.
16918 (struct stdio_file): New.
16919 (stdio_file_up): New.
16920 (struct stderr_file): New.
16921 (class tee_file): New.
16922 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
16923 of a 'ui_file *'. Adjust.
16924 * ui-out.h (class ui_out) <field_stream>: Likewise.
16925 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
16926 (null_stream): Delete.
16927 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
16928 Adjust.
16929 * utils.h (struct ui_file): Delete forward declaration..
16930 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
16931 (error_stream): Take a 'string_file &' instead of a
16932 'ui_file *'.
16933 * varobj.c (varobj_value_get_print_value): Use string_file.
16934 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
16935 * gdbarch.c: Regenerate.
16936
16937 2017-02-02 Pedro Alves <palves@redhat.com>
16938
16939 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
16940 (gdb_pretty_print_insn): ... this. Now a free function. Add back
16941 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
16942 Adjust to call gdb_print_insn instead of
16943 gdb_disassembler::print_insn.
16944 (dump_insns, do_mixed_source_and_assembly_deprecated)
16945 (do_mixed_source_and_assembly, do_assembly_only): Add back a
16946 'gdbarch' parameter. Remove gdb_disassembler parameter.
16947 (gdb_disassembly): Don't allocate a gdb_disassembler here.
16948 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
16949 declaration.
16950 (gdb_pretty_print_insn): Re-add declaration.
16951 * record-btrace.c (btrace_insn_history): Don't allocate a
16952 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
16953
16954 2017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
16955
16956 * disasm.h (gdb_disassembly): Remove file_string parameter.
16957 * disasm.c (gdb_disassembly): Likewise.
16958 * cli/cli-cmds.c (print_disassembly): Adapt.
16959 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
16960 * stack.c (do_gdb_disassembly): Likewise.
16961
16962 2017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
16963
16964 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
16965 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
16966 targets. And if the implicit value is longer than needed, extract
16967 the first bytes instead of the "least significant" ones.
16968
16969 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
16970
16971 * btrace.c (btrace_enable): Do not call btrace_add_pc for
16972 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
16973 (btrace_fetch): Assert can_access_registers_ptid.
16974 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
16975 validate_registers_access.
16976
16977 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
16978
16979 * gdbthread.h (can_access_registers_ptid): New.
16980 * thread.c (can_access_registers_ptid): New.
16981
16982 2017-02-01 Pedro Alves <palves@redhat.com>
16983
16984 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
16985
16986 2017-01-31 Pedro Alves <palves@redhat.com>
16987
16988 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
16989 Fix typos.
16990
16991 2017-01-31 Pedro Alves <palves@redhat.com>
16992
16993 * stack.c (print_frame_args): Remove local mem_fileopen stream,
16994 not used.
16995
16996 2017-01-31 Pedro Alves <palves@redhat.com>
16997
16998 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
16999
17000 2017-01-31 Pedro Alves <palves@redhat.com>
17001
17002 * common/scoped_restore.h
17003 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
17004 change the value's parameter type to T2.
17005 (make_scoped_restore): Likewise.
17006
17007 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
17008 Richard Henderson <rth@redhat.com>
17009
17010 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
17011 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
17012 GS_BASE for older kernels.
17013 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
17014 GS_BASE for older kernels.
17015 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
17016 and GS_BASE to the offset table.
17017 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
17018 system register group.
17019 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
17020 for older kernels.
17021 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
17022 amd64 ABI.
17023 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
17024 AMD64_GSBASE_REGNUM.
17025 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
17026 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
17027 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
17028 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
17029 i386/64bit-segments.xml in those rules.
17030 * features/i386/64bit-segments.xml: New file.
17031 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
17032 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
17033 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
17034 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
17035 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
17036 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
17037 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
17038 * features/i386/amd64-avx-linux.c: Regenerated.
17039 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
17040 * features/i386/amd64-avx-mpx.c: Regenerated.
17041 * features/i386/amd64-avx512-linux.c: Regenerated.
17042 * features/i386/amd64-linux.c: Regenerated.
17043 * features/i386/amd64-mpx-linux.c: Regenerated.
17044 * features/i386/i386-avx-mpx-linux.c: Regenerated.
17045 * features/i386/i386-avx-mpx.c: Regenerated.
17046 * features/i386/x32-avx-linux.c: Regenerated.
17047 * features/i386/x32-avx512-linux.c: Regenerated.
17048 * regformats/i386/amd64-avx-linux.dat: Regenerated.
17049 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
17050 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
17051 * regformats/i386/amd64-linux.dat: Regenerated.
17052 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
17053 * regformats/i386/x32-avx-linux.dat: Regenerated.
17054 * regformats/i386/x32-avx512-linux.dat: Regenerated.
17055 * regformats/i386/x32-linux.dat: Regenerated.
17056
17057 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
17058
17059 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
17060 Set to AMD64_NUM_REGS.
17061
17062 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
17063
17064 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
17065 that checks validity of a register number.
17066
17067 2017-01-27 Kees Cook <keescook@google.com>
17068
17069 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
17070 fetch_fpregs if target has fpa registers.
17071 (arm_linux_store_inferior_registers): Call store_fpregs if target
17072 has fpa registers.
17073
17074 2017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
17075
17076 * cris-tdep.c (cris_gdbarch_init): Remove check for
17077 info.byte_order and force it to BFD_ENDIAN_LITTLE.
17078
17079 2017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
17080
17081 * corelow.c (get_core_register_section): Check for regset
17082 existence before checking for REGSET_VARIABLE_SIZE.
17083
17084 2017-01-26 Yao Qi <yao.qi@linaro.org>
17085 Pedro Alves <palves@redhat.com>
17086
17087 PR gdb/20939
17088 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
17089 call memory_error, save memaddr instead.
17090 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
17091 negative, cal memory_error.
17092 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
17093
17094 2017-01-26 Yao Qi <yao.qi@linaro.org>
17095
17096 * disasm-selftests.c (memory_error_test): New function.
17097 (_initialize_disasm_selftests): Register memory_error_test.
17098
17099 2017-01-26 Yao Qi <yao.qi@linaro.org>
17100
17101 * Makefile.in (SFILES): Add disasm-selftests.c and
17102 selftest-arch.c.
17103 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
17104 * disasm-selftests.c: New file.
17105 * selftest-arch.c: New file.
17106 * selftest-arch.h: New file.
17107
17108 2017-01-26 Yao Qi <yao.qi@linaro.org>
17109
17110 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
17111 to bfd_arch_mep. Don't return 0 if section is not
17112 found. Call print_insn_mep.
17113
17114 2017-01-26 Pedro Alves <palves@redhat.com>
17115 Yao Qi <yao.qi@linaro.org>
17116
17117 * arm-tdep.c: Include "disasm.h".
17118 (gdb_print_insn_arm): Update code to get gdbarch.
17119 * disasm.c (dis_asm_read_memory): Change it to
17120 gdb_disassembler::dis_asm_read_memory.
17121 (dis_asm_memory_error): Likewise.
17122 (dis_asm_print_address): Likewise.
17123 (gdb_pretty_print_insn): Change it to
17124 gdb_disassembler::pretty_print_insn.
17125 (dump_insns): Add one argument gdb_disassemlber. All
17126 callers updated.
17127 (do_mixed_source_and_assembly_deprecated): Likewise.
17128 (do_mixed_source_and_assembly): Likewise.
17129 (do_assembly_only): Likewise.
17130 (gdb_disassembler::gdb_disassembler): New.
17131 (gdb_disassembler::print_insn): New.
17132 * disasm.h (class gdb_disassembler): New.
17133 (gdb_pretty_print_insn): Remove declaration.
17134 (gdb_disassemble_info): Likewise.
17135 * guile/scm-disasm.c (class gdbscm_disassembler): New.
17136 (gdbscm_disasm_read_memory_worker): Update.
17137 (gdbscm_disasm_read_memory): Update.
17138 (gdbscm_disasm_memory_error): Remove.
17139 (gdbscm_disasm_print_address): Remove.
17140 (gdbscm_disassembler::gdbscm_disassembler): New.
17141 (gdbscm_print_insn_from_port): Update.
17142 * mips-tdep.c: Include disasm.h.
17143 (gdb_print_insn_mips): Update code to get gdbarch.
17144 * record-btrace.c (btrace_insn_history): Update.
17145 * spu-tdep.c: Include disasm.h.
17146 (struct spu_dis_asm_data): Remove.
17147 (struct spu_dis_asm_info): New.
17148 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
17149 SPU id.
17150 (gdb_print_insn_spu): Cast disassemble_info to
17151 spu_dis_asm_info.
17152
17153 2017-01-26 Yao Qi <yao.qi@linaro.org>
17154
17155 * disasm.c (do_ui_file_delete): Delete.
17156 (gdb_insn_length): Move code creating stream to ...
17157 * utils.c (null_stream): ... here. New function.
17158 * utils.h (null_stream): Declare.
17159
17160 2017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
17161
17162 * python/py-inferior.c (find_thread_object): Return directly
17163 from the loop. Remove "found" variable.
17164
17165 2017-01-21 Joel Brobecker <brobecker@adacore.com>
17166
17167 GDB 7.12.1 released.
17168
17169 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
17170
17171 * python/py-function.c (fnpy_call): Reorder declarations to have
17172 the gdbpy_enter object declared first.
17173 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
17174
17175 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
17176
17177 PR python/21068
17178 * python/python-internal.h (PyMem_RawMalloc): Define for
17179 Python < 3.4.
17180 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
17181 PyMem_RawMalloc instead of PyMem_Malloc.
17182
17183 2017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
17184 Luis Machado <lgustavo@codesourcery.com>
17185
17186 * NEWS (New commands): Mention flash-erase.
17187 (New MI commands): Mention target-flash-erase.
17188 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
17189 command.
17190 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
17191 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
17192 * target.c (flash_erase_command): New function.
17193 (initialize_targets): Add new flash-erase command.
17194 * target.h (flash_erase_command): New declaration.
17195
17196 2017-01-20 Joel Brobecker <brobecker@adacore.com>
17197
17198 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
17199 HAVE_SYS_PROCFS_H is defined.
17200
17201 2017-01-18 Alan Hayward <alan.hayward@arm.com>
17202
17203 * remote.c (struct cached_reg): Change data into a pointer.
17204 * (stop_reply_dtr): Free data pointers before deleting vector.
17205 (process_stop_reply): Likewise.
17206 (remote_parse_stop_reply): Allocate space for data
17207
17208 2017-01-18 Alan Hayward <alan.hayward@arm.com>
17209
17210 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
17211 MAX_REGISTER_SIZE.
17212 (amd64_pseudo_register_read_value): Likewise.
17213 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
17214 (store_register_using_P): Likewise.
17215 * regcache.c (regcache_xfer_part): Likewise.
17216
17217 2017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
17218
17219 Split real and pseudo registers.
17220 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
17221 (sparc32_pseudo_regnum): New enum.
17222 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
17223 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
17224 (SPARC32_CP0_REGISTERS): New macro.
17225 (sparc32_pseudo_register_name): New function.
17226 (sparc32_register_name): Use sparc32_pseudo_register_name.
17227 (sparc32_pseudo_register_type): New function.
17228 (sparc32_register_type): Use sparc32_pseudo_register_type.
17229 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
17230 pseudo register numbers.
17231 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
17232 (SPARC64_CP0_REGISTERS): New macro.
17233 (sparc64_pseudo_register_name): New function.
17234 (sparc64_register_name): Use sparc64_pseudo_register_name.
17235 (sparc64_pseudo_register_type): New function.
17236 (sparc64_register_type): Use sparc64_pseudo_register_type.
17237 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
17238 pseudo register numbers.
17239 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
17240 sparc64_store_arguments): Handle pseudo register numbers.
17241
17242 2017-01-13 Yao Qi <yao.qi@linaro.org>
17243
17244 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
17245 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
17246 output.
17247 (getpkt_or_notif_sane_1): Likewise.
17248
17249 2017-01-13 Yao Qi <yao.qi@linaro.org>
17250
17251 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
17252 of CC. Pass "-x c++-header" instead of "-x c".
17253
17254 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
17255
17256 * remote.c (remote_can_async_p): Update comment.
17257
17258 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
17259
17260 * linux-nat.c (linux_nat_can_async_p): Update comment.
17261
17262 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
17263
17264 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
17265
17266 2017-01-11 Simon Marchi <simon.marchi@ericsson.com>
17267
17268 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
17269
17270 2017-01-10 Tom Tromey <tom@tromey.com>
17271
17272 * python/py-type.c (typy_legacy_template_argument): Update.
17273 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
17274 ~demangle_parse_info): Declare new members.
17275 (cp_demangled_name_to_comp): Return unique_ptr.
17276 (cp_demangled_name_parse_free)
17277 (make_cleanup_cp_demangled_name_parse_free)
17278 (cp_new_demangle_parse_info): Remove.
17279 * cp-support.c (do_demangled_name_parse_free_cleanup)
17280 (make_cleanup_cp_demangled_name_parse_free): Remove.
17281 (inspect_type, cp_canonicalize_string_full)
17282 (cp_canonicalize_string): Update.
17283 (mangled_name_to_comp): Change return type.
17284 (cp_class_name_from_physname, method_name_from_physname)
17285 (cp_func_name, cp_remove_params): Update.
17286 * cp-name-parser.y (demangle_parse_info): New constructor, from
17287 cp_new_demangle_parse_info.
17288 (~demangle_parse_info): New destructor, from
17289 cp_demangled_name_parse_free.
17290 (cp_merge_demangle_parse_infos): Update.
17291 (cp_demangled_name_to_comp): Change return type.
17292
17293 2017-01-10 Tom Tromey <tom@tromey.com>
17294
17295 * top.c (prevent_dont_repeat): Change return type.
17296 * python/python.c (execute_gdb_command): Use std::string.
17297 Update.
17298 * guile/guile.c (gdbscm_execute_gdb_command): Update.
17299 * command.h (prevent_dont_repeat): Change return type.
17300 * breakpoint.c (bpstat_do_actions_1): Update.
17301
17302 2017-01-10 Tom Tromey <tom@tromey.com>
17303
17304 * value.h (scoped_value_mark::~scoped_value_mark): Call
17305 free_to_mark.
17306 (scoped_value_mark::free_to_mark): New method.
17307 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
17308 scoped_value_mark.
17309
17310 2017-01-10 Tom Tromey <tom@tromey.com>
17311
17312 * python/py-value.c (valpy_dereference, valpy_referenced_value)
17313 (valpy_reference_value, valpy_const_value, valpy_get_address)
17314 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
17315 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
17316 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
17317 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
17318 scoped_value_mark.
17319 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
17320 * value.h (scoped_value_mark): New class.
17321
17322 2017-01-10 Tom Tromey <tom@tromey.com>
17323
17324 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
17325 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
17326 * psymtab.c (discard_psymtabs_upto): Remove.
17327 (make_cleanup_discard_psymtabs): Remove.
17328 (struct psymtab_state): Remove.
17329
17330 2017-01-10 Tom Tromey <tom@tromey.com>
17331
17332 * record-full.c (record_full_save_cleanups): Remove.
17333 (record_full_save): Use gdb::unlinker.
17334 * gcore.c (do_bfd_delete_cleanup): Remove.
17335 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
17336 cleanups.
17337 * dwarf2read.c (unlink_if_set): Remove.
17338 (write_psymtabs_to_index): Use gdb::unlinker.
17339 * common/gdb_unlinker.h: New file.
17340
17341 2017-01-10 Tom Tromey <tom@tromey.com>
17342
17343 * windows-tdep.c (windows_xfer_shared_library): Update.
17344 * windows-nat.c (windows_make_so): Update.
17345 * utils.h (make_cleanup_bfd_unref): Remove.
17346 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
17347 * symfile.h (symfile_bfd_open)
17348 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
17349 * symfile.c (read_symbols, symbol_file_add)
17350 (separate_debug_file_exists): Update.
17351 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
17352 (generic_load, reread_symbols): Update.
17353 * symfile-mem.c (symbol_file_add_from_memory): Update.
17354 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
17355 (spu_symbol_file_add_from_memory): Update.
17356 * solist.h (struct target_so_ops) <bfd_open>: Return
17357 gdb_bfd_ref_ptr.
17358 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
17359 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
17360 gdb_bfd_ref_ptr.
17361 (solib_map_sections, reload_shared_libraries_1): Update.
17362 * solib-svr4.c (enable_break): Update.
17363 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
17364 * solib-frv.c (enable_break2): Update.
17365 * solib-dsbt.c (enable_break): Update.
17366 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
17367 gdb_bfd_ref_ptr.
17368 (darwin_solib_get_all_image_info_addr_at_init): Update.
17369 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
17370 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
17371 * record-full.c (record_full_save): Update.
17372 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
17373 * procfs.c (insert_dbx_link_bpt_in_file): Update.
17374 * minidebug.c (find_separate_debug_file_in_section): Return
17375 gdb_bfd_ref_ptr.
17376 * machoread.c (macho_add_oso_symfile): Change abfd to
17377 gdb_bfd_ref_ptr.
17378 (macho_symfile_read_all_oso): Update.
17379 (macho_check_dsym): Return gdb_bfd_ref_ptr.
17380 (macho_symfile_read): Update.
17381 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
17382 (jit_bfd_try_read_symtab): Update.
17383 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
17384 (gdb_bfd_openw, gdb_bfd_openr_iovec)
17385 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
17386 gdb_bfd_ref_ptr.
17387 (gdb_bfd_ref_policy): New struct.
17388 (gdb_bfd_ref_ptr): New typedef.
17389 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
17390 (gdb_bfd_openw, gdb_bfd_openr_iovec)
17391 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
17392 gdb_bfd_ref_ptr.
17393 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
17394 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
17395 (gcore_command): Update.
17396 * exec.c (exec_file_attach): Update.
17397 * elfread.c (elf_symfile_read): Update.
17398 * dwarf2read.c (dwarf2_get_dwz_file): Update.
17399 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
17400 (open_and_init_dwo_file): Update.
17401 (open_dwp_file): Return gdb_bfd_ref_ptr.
17402 (open_and_init_dwp_file): Update.
17403 * corelow.c (core_open): Update.
17404 * compile/compile-object-load.c (compile_object_load): Update.
17405 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
17406 * coffread.c (coff_symfile_read): Update.
17407 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
17408 gdb_bfd_ref_ptr. Rename.
17409 (dump_bfd_file, restore_command): Update.
17410 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
17411 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
17412 (find_separate_debug_file_by_buildid): Update.
17413
17414 2017-01-10 Tom Tromey <tom@tromey.com>
17415
17416 * common/gdb_ref_ptr.h: New file.
17417 * python/py-ref.h (struct gdbpy_ref_policy): New.
17418 (gdbpy_ref): Now a typedef.
17419
17420 2017-01-10 Tom Tromey <tom@tromey.com>
17421
17422 * utils.h (make_cleanup_htab_delete): Don't declare.
17423 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
17424 Remove.
17425 * linespec.c (decode_compound_collector): Add constructor,
17426 destructor.
17427 (lookup_prefix_sym): Remove cleanup.
17428 (symtab_collector): Add constructor, destructor.
17429 (collect_symtabs_from_filename): Remove cleanup.
17430 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
17431 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
17432 Use htab_up.
17433 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
17434 * dwarf2read.c (dw2_expand_symtabs_matching)
17435 (dw2_map_symbol_filenames, dwarf_decode_macros)
17436 (write_psymtabs_to_index): Use htab_up.
17437 * dwarf2loc.c (func_verify_no_selftailcall)
17438 (call_site_find_chain_1, func_verify_no_selftailcall)
17439 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
17440 std::vector, gdb::unique_xmalloc_ptr.
17441 (call_sitep): Remove typedef.
17442 (dwarf2_locexpr_baton_eval): Remove unused variable.
17443
17444 2017-01-10 Tom Tromey <tom@tromey.com>
17445
17446 * python/python-internal.h (make_cleanup_py_decref)
17447 (make_cleanup_py_xdecref): Don't declare.
17448 * python/py-utils.c (py_decref, make_cleanup_py_decref)
17449 (py_xdecref, make_cleanup_py_xdecref): Remove.
17450
17451 2017-01-10 Tom Tromey <tom@tromey.com>
17452
17453 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
17454 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
17455
17456 2017-01-10 Tom Tromey <tom@tromey.com>
17457
17458 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
17459
17460 2017-01-10 Tom Tromey <tom@tromey.com>
17461
17462 * python/py-utils.c (unicode_to_encoded_string)
17463 (python_string_to_target_string)
17464 (python_string_to_target_python_string)
17465 (python_string_to_host_string, gdbpy_obj_to_string)
17466 (get_addr_from_python): Use gdbpy_ref.
17467
17468 2017-01-10 Tom Tromey <tom@tromey.com>
17469
17470 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
17471 gdbpy_ref.
17472
17473 2017-01-10 Tom Tromey <tom@tromey.com>
17474
17475 * python/python.c (eval_python_command, gdbpy_decode_line)
17476 (gdbpy_run_events, gdbpy_start_type_printers)
17477 (gdbpy_apply_type_printers): Use gdbpy_ref.
17478
17479 2017-01-10 Tom Tromey <tom@tromey.com>
17480
17481 * python/py-param.c (get_doc_string, compute_enum_values): Use
17482 gdbpy_ref.
17483
17484 2017-01-10 Tom Tromey <tom@tromey.com>
17485
17486 * python/py-inferior.c (find_thread_object, build_inferior_list):
17487 Use gdbpy_ref.
17488
17489 2017-01-10 Tom Tromey <tom@tromey.com>
17490
17491 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
17492
17493 2017-01-10 Tom Tromey <tom@tromey.com>
17494
17495 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
17496 gdbpy_ref.
17497
17498 2017-01-10 Tom Tromey <tom@tromey.com>
17499
17500 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
17501 extra incref.
17502 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
17503 Use gdbpy_ref.
17504
17505 2017-01-10 Tom Tromey <tom@tromey.com>
17506
17507 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
17508 gdbpy_ref.
17509
17510 2017-01-10 Tom Tromey <tom@tromey.com>
17511
17512 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
17513 decref results of PyArg_ParseTupleAndKeywords.
17514
17515 2017-01-10 Tom Tromey <tom@tromey.com>
17516
17517 * python/python.c (python_run_simple_file): Use
17518 unique_xmalloc_ptr, gdbpy_ref.
17519
17520 2017-01-10 Tom Tromey <tom@tromey.com>
17521
17522 * python/py-prettyprint.c (print_stack_unless_memory_error)
17523 (print_string_repr, print_children): Use gdbpy_ref.
17524 (dummy_python_frame): New class.
17525 (dummy_python_frame::dummy_python_frame): Rename from
17526 push_dummy_python_frame.
17527 (py_restore_tstate): Remove.
17528
17529 2017-01-10 Tom Tromey <tom@tromey.com>
17530
17531 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
17532
17533 2017-01-10 Tom Tromey <tom@tromey.com>
17534
17535 * python/python.c (ensure_python_env, restore_python_env):
17536 Remove.
17537 * python/python-internal.h (ensure_python_env): Don't declare.
17538 * varobj.h (varobj_ensure_python_env): Don't declare.
17539 * varobj.c (varobj_ensure_python_env): Remove.
17540
17541 2017-01-10 Tom Tromey <tom@tromey.com>
17542
17543 * varobj.c (varobj_value_get_print_value): Use
17544 gdbpy_enter_varobj.
17545
17546 2017-01-10 Tom Tromey <tom@tromey.com>
17547
17548 * python/py-prettyprint.c (print_string_repr, print_children):
17549 Update.
17550 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
17551 of "encoding".
17552 * varobj.c (varobj_value_get_print_value): Update.
17553 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
17554
17555 2017-01-10 Tom Tromey <tom@tromey.com>
17556
17557 * varobj.c (varobj_get_display_hint)
17558 (dynamic_varobj_has_child_method, install_new_value_visualizer)
17559 (varobj_set_visualizer, free_variable): Use
17560 gdbpy_enter_varobj.
17561
17562 2017-01-10 Tom Tromey <tom@tromey.com>
17563
17564 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
17565 (do_finish_initialization): New function. Use gdbpy_ref.
17566 (gdbpy_finish_initialization): Use gdbpy_enter. Call
17567 do_finish_initialization.
17568
17569 2017-01-10 Tom Tromey <tom@tromey.com>
17570
17571 * python/py-param.c (get_set_value, get_show_value): Use
17572 gdbpy_enter, gdbpy_ref.
17573
17574 2017-01-10 Tom Tromey <tom@tromey.com>
17575
17576 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
17577
17578 2017-01-10 Tom Tromey <tom@tromey.com>
17579
17580 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
17581
17582 2017-01-10 Tom Tromey <tom@tromey.com>
17583
17584 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
17585 Use gdbpy_enter_varobj.
17586
17587 2017-01-10 Tom Tromey <tom@tromey.com>
17588
17589 * varobj.c (gdbpy_enter_varobj): New constructor.
17590 * python/python-internal.h (gdbpy_enter_varobj): New class.
17591 * python/py-varobj.c (py_varobj_get_iterator): Use
17592 gdbpy_enter_varobj.
17593
17594 2017-01-10 Tom Tromey <tom@tromey.com>
17595
17596 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
17597 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
17598 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
17599 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
17600 unique_xmalloc_ptr.
17601 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
17602
17603 2017-01-10 Tom Tromey <tom@tromey.com>
17604
17605 * python/py-xmethods.c (invoke_match_method): Use
17606 gdbpy_ref.
17607
17608 2017-01-10 Tom Tromey <tom@tromey.com>
17609
17610 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
17611 gdbpy_enter, gdbpy_ref.
17612
17613 2017-01-10 Tom Tromey <tom@tromey.com>
17614
17615 * python/python.c (python_interactive_command): Use gdbpy_enter.
17616
17617 2017-01-10 Tom Tromey <tom@tromey.com>
17618
17619 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
17620 gdbpy_ref.
17621
17622 2017-01-10 Tom Tromey <tom@tromey.com>
17623
17624 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
17625 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
17626
17627 2017-01-10 Tom Tromey <tom@tromey.com>
17628
17629 * utils.h (htab_deleter): New struct.
17630 (htab_up): New typedef.
17631 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
17632 gdbpy_enter, gdbpy_ref, htab_up.
17633
17634 2017-01-10 Tom Tromey <tom@tromey.com>
17635
17636 * python/py-unwind.c (pending_frame_invalidate): Remove.
17637 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
17638
17639 2017-01-10 Tom Tromey <tom@tromey.com>
17640
17641 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
17642 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
17643
17644 2017-01-10 Tom Tromey <tom@tromey.com>
17645
17646 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
17647
17648 2017-01-10 Tom Tromey <tom@tromey.com>
17649
17650 * python/python.c (gdbpy_eval_from_control_command)
17651 (gdbpy_source_script, gdbpy_run_events)
17652 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
17653 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
17654 gdbpy_enter.
17655
17656 2017-01-10 Tom Tromey <tom@tromey.com>
17657
17658 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
17659
17660 2017-01-10 Tom Tromey <tom@tromey.com>
17661
17662 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
17663
17664 2017-01-10 Tom Tromey <tom@tromey.com>
17665
17666 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
17667 (python_on_inferior_call_pre, python_on_inferior_call_post)
17668 (python_on_memory_change, python_on_register_change)
17669 (python_inferior_exit, python_new_objfile, add_thread_object)
17670 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
17671
17672 2017-01-10 Tom Tromey <tom@tromey.com>
17673
17674 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
17675 (bpfinishpy_handle_exit): Use gdbpy_enter.
17676
17677 2017-01-10 Tom Tromey <tom@tromey.com>
17678
17679 * python/py-cmd.c (cmdpy_destroyer)
17680 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
17681 gdbpy_enter.
17682
17683 2017-01-10 Tom Tromey <tom@tromey.com>
17684
17685 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
17686 gdbpy_enter.
17687 (gdbpy_breakpoint_has_cond): Likewise.
17688
17689 2017-01-10 Tom Tromey <tom@tromey.com>
17690
17691 * python/python.c (gdbpy_enter): New constructor.
17692 (~gdbpy_enter): New destructor.
17693 (restore_python_env, ensure_python_env): Rewrite.
17694 * python/python-internal.h (gdbpy_enter): New class.
17695
17696 2017-01-10 Tom Tromey <tom@tromey.com>
17697
17698 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
17699
17700 2017-01-10 Tom Tromey <tom@tromey.com>
17701
17702 * python/py-value.c (value_has_field, get_field_flag)
17703 (get_field_type, valpy_getitem, convert_value_from_python): Use
17704 gdbpy_ref.
17705
17706 2017-01-10 Tom Tromey <tom@tromey.com>
17707
17708 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
17709 gdbpy_ref.
17710
17711 2017-01-10 Tom Tromey <tom@tromey.com>
17712
17713 * python/py-prettyprint.c (search_pp_list)
17714 (find_pretty_printer_from_objfiles)
17715 (find_pretty_printer_from_progspace)
17716 (find_pretty_printer_from_gdb, find_pretty_printer)
17717 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
17718 gdbpy_ref.
17719
17720 2017-01-10 Tom Tromey <tom@tromey.com>
17721
17722 * python/py-param.c (call_doc_function): Use gdbpy_ref.
17723
17724 2017-01-10 Tom Tromey <tom@tromey.com>
17725
17726 * python/py-linetable.c (build_line_table_tuple_from_pcs)
17727 (ltpy_get_all_source_lines): Use gdbpy_ref.
17728
17729 2017-01-10 Tom Tromey <tom@tromey.com>
17730
17731 * python/py-framefilter.c (extract_sym, extract_value)
17732 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
17733 gdbpy_ref.
17734
17735 2017-01-10 Tom Tromey <tom@tromey.com>
17736
17737 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
17738
17739 2017-01-10 Tom Tromey <tom@tromey.com>
17740
17741 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
17742
17743 2017-01-10 Tom Tromey <tom@tromey.com>
17744
17745 * python/py-function.c (convert_values_to_python, fnpy_init): Use
17746 gdbpy_ref.
17747
17748 2017-01-10 Tom Tromey <tom@tromey.com>
17749
17750 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
17751
17752 2017-01-10 Tom Tromey <tom@tromey.com>
17753
17754 * python/py-type.c (convert_field, make_fielditem, typy_fields)
17755 (typy_range): Use gdbpy_ref.
17756
17757 2017-01-10 Tom Tromey <tom@tromey.com>
17758
17759 * python/py-threadevent.c (create_thread_event_object): Use
17760 gdbpy_ref.
17761 * python/py-stopevent.c (create_stop_event_object): Simplify.
17762 (emit_stop_event): Use gdbpy_ref.
17763 * python/py-signalevent.c (create_signal_event_object): Use
17764 gdbpy_ref.
17765 * python/py-newobjfileevent.c (create_new_objfile_event_object)
17766 (emit_new_objfile_event, create_clear_objfiles_event_object)
17767 (emit_clear_objfiles_event): Use gdbpy_ref.
17768 * python/py-infevents.c (create_inferior_call_event_object)
17769 (create_register_changed_event_object)
17770 (create_memory_changed_event_object, emit_inferior_call_event)
17771 (emit_memory_changed_event, emit_register_changed_event): Use
17772 gdbpy_ref.
17773 * python/py-exitedevent.c (create_exited_event_object)
17774 (emit_exited_event): Use gdbpy_ref.
17775 * python/py-event.h (evpy_emit_event): Remove
17776 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
17777 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
17778 * python/py-continueevent.c (emit_continue_event): Use
17779 gdbpy_ref.
17780 * python/py-breakpoint.c (gdbpy_breakpoint_created)
17781 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
17782 gdbpy_ref.
17783 * python/py-bpevent.c (create_breakpoint_event_object): Use
17784 gdbpy_ref.
17785
17786 2017-01-10 Tom Tromey <tom@tromey.com>
17787
17788 * python/py-ref.h: New file.
17789
17790 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
17791
17792 * cli-out.c (cli_ui_out::do_redirect): Change return type to
17793 void.
17794 * cli-out.h (cli_ui_out::do_redirect): Likewise.
17795 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
17796 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
17797 * ui-out.c (ui_out::redirect): Likewise.
17798 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
17799 * cli/cli-logging.c (set_logging_redirect): Update call site of
17800 ui_out::redirect.
17801 (handle_redirections): Likewise.
17802 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
17803 * top.c (execute_command_to_string): Likewise.
17804 * utils.c (do_ui_out_redirect_pop): Likewise.
17805
17806 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
17807
17808 * stack.c (_initialize_stack): Update "frame" command help message.
17809
17810 2017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
17811
17812 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
17813
17814 2017-01-06 Yao Qi <yao.qi@linaro.org>
17815
17816 * x86-linux-nat.h: Include gdb_proc_service.h.
17817
17818 2017-01-06 Yao Qi <yao.qi@linaro.org>
17819
17820 * ser-base.h: Include serial.h.
17821
17822 2017-01-06 Yao Qi <yao.qi@linaro.org>
17823
17824 * ppc-linux-tdep.h: Include ppc-tdep.h.
17825
17826 2017-01-06 Yao Qi <yao.qi@linaro.org>
17827
17828 * nat/amd64-linux-siginfo.h: Include signal.h.
17829
17830 2017-01-06 Yao Qi <yao.qi@linaro.org>
17831
17832 * nat/aarch64-linux-hw-point.h: Include break-common.h.
17833
17834 2017-01-06 Yao Qi <yao.qi@linaro.org>
17835
17836 * mi/mi-parse.h: Include mi-cmds.h.
17837
17838 2017-01-06 Yao Qi <yao.qi@linaro.org>
17839
17840 * inf-loop.c: Don't include "target.h".
17841 * inf-loop.h: Include it here.
17842
17843 2017-01-06 Yao Qi <yao.qi@linaro.org>
17844
17845 * dfp.h: Include "dboulest.h" and "expression.h".
17846
17847 2017-01-06 Yao Qi <yao.qi@linaro.org>
17848
17849 * ax-gdb.h: Include "ax.h".
17850
17851 2017-01-06 Yao Qi <yao.qi@linaro.org>
17852
17853 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
17854 with nat/gdb_ptrace.h.
17855
17856 2017-01-05 Yao Qi <yao.qi@linaro.org>
17857
17858 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
17859 new line.
17860 (mips64_fbsd_sigframe_init): Likewise.
17861
17862 2017-01-04 John Baldwin <jhb@FreeBSD.org>
17863
17864 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
17865 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
17866
17867 2017-01-04 John Baldwin <jhb@FreeBSD.org>
17868
17869 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
17870 * NEWS: Mention new FreeBSD/mips native configuration.
17871 * config/mips/fbsd.mh: New file.
17872 * configure.host: Add mips*-*-freebsd*.
17873 * mips-fbsd-nat.c: New file.
17874
17875 2017-01-04 John Baldwin <jhb@FreeBSD.org>
17876
17877 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
17878 (ALLDEPFILES): Add mips-fbsd-tdep.c.
17879 * NEWS: Mention new FreeBSD/mips target.
17880 * configure.tgt: Add mips*-*-freebsd*.
17881 * mips-fbsd-tdep.c: New file.
17882 * mips-fbsd-tdep.h: New file.
17883
17884 2017-01-04 Yao Qi <yao.qi@linaro.org>
17885
17886 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
17887 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
17888
17889 2017-01-01 Joel Brobecker <brobecker@adacore.com>
17890
17891 Update copyright year range in all GDB files.
17892
17893 2017-01-01 Joel Brobecker <brobecker@adacore.com>
17894
17895 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
17896
17897 For older changes see ChangeLog-2016.
17898 \f
17899 Local Variables:
17900 mode: change-log
17901 left-margin: 8
17902 fill-column: 74
17903 version-control: never
17904 coding: utf-8
17905 End:
This page took 0.493089 seconds and 4 git commands to generate.