1 2017-12-08 Yao Qi <yao.qi@linaro.org>
4 * linespec.c (minsym_found): Set sal.section.
6 2017-12-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
8 * configure.tgt (s390*-*-linux*): Add symfile-mem.o.
10 2017-12-07 Keith Seitz <keiths@redhat.com>
13 * location.c (string_to_explicit_location): When terminating
14 parsing early, break out of enclosing loop instead of returning.
16 2017-12-07 Keith Seitz <keiths@redhat.com>
18 * NEWS (New commands): Mention set/show print type nested-type-limit.
19 * c-typeprint.c (c_type_print_base): Print out nested types.
20 * dwarf2read.c (struct typedef_field_list): Rename to ...
21 (struct decl_field_list): ... this. Change all uses.
22 (struct field_info) <nested_types_list, nested_types_list_count>:
24 (add_partial_symbol): Look for nested type definitions in C++, too.
25 (dwarf2_add_typedef): Rename to ...
26 (dwarf2_add_type_defn): ... this.
27 (type_can_define_types): New function.
28 Update assertion to use type_can_define_types.
29 Permit NULL for a field's name.
30 (process_structure_scope): Handle child DIEs of types that can
32 Copy the list of nested types into the type struct.
33 * gdbtypes.h (struct typedef_field): Rename to ...
34 (struct decl_field): ... this. Change all uses.
35 [is_protected, is_private]: New fields.
36 (struct cplus_struct_type) <nested_types, nested_types_count>: New
38 (TYPE_NESTED_TYPES_ARRAY, TYPE_NESTED_TYPES_FIELD)
39 (TYPE_NESTED_TYPES_FIELD_NAME, TYPE_NESTED_TYPES_FIELD_TYPE)
40 (TYPE_NESTED_TYPES_COUNT, TYPE_NESTED_TYPES_FIELD_PROTECTED)
41 (TYPE_NESTED_TYPES_FIELD_PRIVATE): New macros.
42 * typeprint.c (type_print_raw_options, default_ptype_flags): Add
43 default value for print_nested_type_limit.
44 (print_nested_type_limit): New static variable.
45 (set_print_type_nested_types, show_print_type_nested_types): New
47 (_initialize_typeprint): Register new commands for set/show
48 `print-nested-type-limit'.
49 * typeprint.h (struct type_print_options) [print_nested_type_limit]:
52 2017-12-07 Tom Tromey <tom@tromey.com>
55 * breakpoint.c (commands_command_1): Don't throw an exception when
56 no commands have been read.
58 2017-12-07 Adam Stylinski <adam.stylinski@etegent.com>
61 * target-descriptions.c (print_c_tdesc::visit_pre): Change type of
64 2017-12-07 Simon Marchi <simon.marchi@ericsson.com>
66 * common/selftest.h (struct selftest): Add virtual destructor.
68 2017-12-07 Phil Muldoon <pmuldoon@redhat.com>
70 * python/py-breakpoint.c (bppy_init): Use string_to_event_location
71 over basic location code. Implement explicit location keywords.
72 (bppy_init_validate_args): New function.
73 * NEWS: Document Python explicit breakpoint locations.
75 2017-12-07 Joel Brobecker <brobecker@adacore.com>
77 * MAINTAINERS: Restore target entries for m68hc11-elf,
78 score-elf and xstormy16-elf, incorrectly removed in a previous
79 patch meant to only update the list of active maintainers.
81 2017-12-06 Pedro Alves <palves@redhat.com>
83 * break-catch-syscall.c (insert_catch_syscall)
84 (remove_catch_syscall): Adjust to pass reference to
85 inf_data->syscalls_counts directly via gdb::array_view.
86 * fbsd-nat.c (fbsd_set_syscall_catchpoint): Adjust to use bool
88 * linux-nat.c (linux_child_set_syscall_catchpoint): Likewise.
89 * remote.c (remote_set_syscall_catchpoint): Likewise.
90 * target-debug.h (target_debug_print_bool): New.
91 (define target_debug_print_gdb_array_view_const_int): New.
92 * target-delegates.c: Regenerate.
93 * target.h (target_ops) <to_set_syscall_catchpoint>: Use
94 gdb::array_view and bool.
95 (target_set_syscall_catchpoint): Likewise.
97 2017-12-06 Simon Marchi <simon.marchi@ericsson.com>
99 * break-catch-syscall.c (catch_syscall_completer): Get pointers
100 to syscall group strings after building the string vector.
102 2017-12-06 Pedro Alves <palves@redhat.com>
104 * remote.c (remote_query_supported): Don't send "xmlRegisters=" if
105 "qXfer:features:read"" is disabled.
106 (remote_write_qxfer, remote_read_qxfer, remote_search_memory):
107 Check packet_config_support instead of packet->support directly.
109 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
111 * target-descriptions.c (struct tdesc_feature) <registers>: Use
112 tdesc_reg_up typedef.
113 (struct target_desc) <features>: Use tdesc_feature_up typedef.
115 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
117 * target-descriptions.c (struct tdesc_type): Use default
121 (struct tdesc_type_builtin): New.
122 (struct tdesc_type_vector): New.
123 (struct tdesc_type_with_fields): New.
124 (tdesc_predefined_types): Change type to tdesc_type_builtin[].
125 (tdesc_gdb_type): Remove.
126 (tdesc_register_type): Adjust.
127 (tdesc_create_vector): Create tdesc_type_vector.
128 (tdesc_create_struct): Create tdesc_type_with_fields.
129 (tdesc_set_struct_size): Change parameter type.
130 (tdesc_create_union): Create tdesc_type_with_fields.
131 (tdesc_create_flags): Likewise.
132 (tdesc_create_enum): Likewise.
133 (tdesc_add_field): Change parameter type.
134 (tdesc_add_typed_bitfield): Likewise.
135 (tdesc_add_bitfield): Likewise.
136 (tdesc_add_flag): Likewise.
137 (tdesc_add_enum_value): Likewise.
138 (print_c_tdesc) <visit>: Remove overload with tdesc_type
139 parameter, add overloads for tdesc_type_builtin,
140 tdesc_type_with_fields and tdesc_type_vector.
141 <m_printed_type>: Remove.
142 <m_printed_element_type, m_printed_type_with_fields>: Add.
143 * target-descriptions.h (tdesc_create_enum): Change return type.
144 (tdesc_add_typed_bitfield): Change parameter type.
145 (tdesc_add_enum_value): Change parameter type.
146 * xml-tdesc.c (struct tdesc_parsing_data) <current_type>: Change
147 type to tdesc_type_with_fields.
148 (tdesc_start_struct): Adjust.
149 (tdesc_start_flags): Adjust.
150 (tdesc_start_enum): Adjust.
151 (tdesc_start_field): Adjust.
152 * arch/tdesc.h (struct tdesc_type_builtin): Forward-declare.
153 (struct tdesc_type_vector): Forward-declare.
154 (struct tdesc_type_with_fields): Forward-declare.
155 (tdesc_create_struct): Change return type.
156 (tdesc_create_union): Likewise.
157 (tdesc_create_flags): Likewise.
158 (tdesc_add_field): Change parameter type.
159 (tdesc_set_struct_size): Likewise.
160 (tdesc_add_bitfield): Likewise.
161 (tdesc_add_flag): Likewise.
162 * features: Re-generate C files.
164 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
166 * target-descriptions.c (tdesc_arch_reg): Remove typedef.
167 (struct tdesc_arch_reg): Add constructor.
168 (DEF_VEC_O (tdesc_arch_reg)): Remove.
169 (struct tdesc_arch_data): Initialize fields.
170 <arch_regs>: Change type to std::vector.
171 (target_find_description): Adjust.
172 (tdesc_find_type): Adjust.
173 (tdesc_data_init): Call tdesc_arch_data constructor.
174 (tdesc_data_alloc): Allocate tdesc_arch_data with new.
175 (tdesc_data_cleanup): Free data with delete.
176 (tdesc_numbered_register): Adjust.
177 (tdesc_find_arch_register): Adjust.
178 (tdesc_use_registers): Adjust.
180 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
182 * target-descriptions.c (tdesc_type_field): Remove typedef.
183 (DEF_VEC_O (tdesc_type_field)): Remove.
184 (struct tdesc_type_field): Add constructor.
185 <name>: Change type to std::string.
186 (struct tdesc_type) <tdesc_type>: Instantiate vector if the type
188 <~tdesc_type>: Destroy vector if the type kind uses it.
189 <u::u::fields>: Change type to std::vector.
190 (tdesc_gdb_type): Adjust.
191 (tdesc_add_field): Adjust.
192 (tdesc_add_typed_bitfield): Adjust.
193 (tdesc_add_field): Adjust.
194 (tdesc_add_enum_value): Adjust.
195 (class print_c_tdesc) <visit>: Adjust.
197 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
199 * target-descriptions.c (struct tdesc_type) <name>: Change type
201 <~tdesc_type>: Don't manually free name.
202 <operator==>: Adjust.
203 (tdesc_named_type): Adjust.
204 (tdesc_find_type): Adjust.
205 (tdesc_gdb_type): Adjust.
206 (class print_c_tdesc) <visit>: Adjust.
208 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
210 * target-descriptions.c (tdesc_type_p): Remove typedef.
211 (DEF_VEC_P (tdesc_type_p)): Remove.
212 (struct tdesc_feature) <types>: Change type to std::vector.
213 <~tdesc_feature>: Replace with default implementation.
215 (tdesc_named_type): Adjust.
216 (tdesc_create_vector): Adjust.
217 (tdesc_create_struct): Adjust.
218 (tdesc_create_union): Adjust.
219 (tdesc_create_flags): Adjust.
220 (tdesc_create_enum): Adjust.
222 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
224 * target-descriptions.c (struct tdesc_reg) <tdesc_reg>: Change
225 type of name_ parameter, adjust to std::string change.
226 <name, group, type>: Change type to std::string.
227 <~tdesc_reg>: Replace with default implementation.
228 <operator==>: Adjust.
229 (tdesc_find_register_early): Adjust.
230 (tdesc_register_name): Adjust.
231 (tdesc_register_type): Adjust.
232 (tdesc_register_in_reggroup_p): Adjust.
233 (class print_c_tdesc) <visit>: Adjust.
234 (class print_c_feature) <visit>: Adjust.
235 * features/arc-arcompact.c: Re-generate.
236 * features/arc-v2.c: Re-generate.
238 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
240 * target-descriptions.c (tdesc_reg_p): Remove typedef.
241 (DEF_VEC_P (tdesc_reg_p)): Remove.
242 (struct tdesc_feature) <registers>: Change type to std::vector.
243 <~tdesc_feature>: Don't manually free registers.
245 <operator==>: Adjust.
246 (tdesc_has_registers): Adjust.
247 (tdesc_find_register_early): Adjust.
248 (tdesc_use_registers): Adjust.
249 (tdesc_create_reg): Adjust.
251 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
253 * target-descriptions.c (tdesc_feature) <name>: Change type to
255 <~tdesc_feature>: Don't manually free name.
256 <operator==>: Adjust.
257 (tdesc_find_feature): Adjust.
258 (tdesc_feature_name): Adjust.
259 (class print_c_tdesc) <visit_pre>: Adjust.
260 (class print_c_feature) <visit_pre>: Adjust.
262 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
264 * target-descriptions.c (tdesc_feature_p): Remove typedef.
265 (DEF_VEC_P (tdesc_feature_p)): Remove.
266 (struct target_desc) <features>: Change type to std::vector.
267 <~target_desc>: Replace with default implementation.
269 <operator==>: Adjust.
270 (tdesc_has_registers): Adjust.
271 (tdesc_find_feature): Adjust.
272 (tdesc_use_registers): Adjust.
273 (tdesc_create_feature): Adjust.
275 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
277 * target-descriptions.c (arch_p): Remove typedef.
278 (DEF_VEC_P (arch_p)): Remove.
279 (struct target_desc) <compatible>: Change type to std::vector.
280 <~target_desc>: Don't manually free compatible.
281 (tdesc_compatible_p): Adjust.
282 (tdesc_add_compatible): Adjust.
283 (class print_c_tdesc) <visit_pre>: Adjust.
285 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
287 * target-descriptions.c (property_s): Remove typedef.
288 (DEF_VEC_O (property_s)): Remove.
289 (struct target_desc) <properties>: Make an std::vector.
290 <~target_desc>: Don't manually free properties.
291 (tdesc_property): Adjust.
292 (set_tdesc_property): Adjust.
293 (class print_c_tdesc) <visit_pre>: Adjust.
295 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
297 * common/gdb_assert.h (gdb_static_assert): Redefine using
300 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
302 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
304 (ada_is_redundant_range_encoding): Likewise.
305 * ada-varobj.c (ada_varobj_get_value_of_array_variable):
307 * alpha-tdep.c (alpha_software_single_step): Likewise.
308 * arm-tdep.c (_initialize_arm_tdep): Likewise.
309 * auto-load.c (info_auto_load_cmd): Likewise.
310 * break-catch-syscall.c (insert_catch_syscall): Likewise.
311 (remove_catch_syscall): Likewise.
312 * breakpoint.c (condition_completer): Likewise.
313 (clear_command): Likewise.
314 (update_breakpoint_locations): Likewise.
315 * btrace.c (btrace_disable): Likewise.
316 (btrace_teardown): Likewise.
317 (btrace_maint_update_pt_packets): Likewise.
318 (maint_btrace_clear_cmd): Likewise.
319 * cli/cli-decode.c (lookup_cmd_1): Likewise.
320 (lookup_cmd_composition): Likewise.
321 * cli/cli-dump.c (scan_filename): Likewise.
322 (restore_command): Likewise.
323 * compile/compile-loc2c.c (compute_stack_depth): Likewise.
324 * compile/compile-object-load.c (compile_object_load): Likewise.
325 * compile/compile-object-run.c (compile_object_run): Likewise.
326 * compile/compile.c (compile_to_object): Likewise.
327 * completer.c (filename_completer): Likewise.
328 (complete_files_symbols): Likewise.
329 (complete_expression): Likewise.
330 * corelow.c (core_open): Likewise.
331 * ctf.c (ctf_start): Likewise.
332 (ctf_write_status): Likewise.
333 (ctf_write_uploaded_tsv): Likewise.
334 (ctf_write_definition_end): Likewise.
335 (ctf_open_dir): Likewise.
336 (ctf_xfer_partial): Likewise.
337 (ctf_trace_find): Likewise.
338 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
340 * dwarf2loc.c (allocate_piece_closure): Likewise.
341 (indirect_pieced_value): Likewise.
342 (dwarf2_evaluate_loc_desc_full): Likewise.
343 * dwarf2read.c (dw2_expand_marked_cus): Likewise.
344 (dw2_expand_symtabs_matching): Likewise.
345 (dw2_map_symbol_filenames): Likewise.
346 (read_and_check_comp_unit_head): Likewise.
347 (read_cutu_die_from_dwo): Likewise.
348 (lookup_dwo_unit): Likewise.
349 (read_comp_units_from_section): Likewise.
350 (dwarf2_compute_name): Likewise.
351 (handle_DW_AT_stmt_list): Likewise.
352 (create_cus_hash_table): Likewise.
353 (create_dwp_v2_section): Likewise.
354 (dwarf2_rnglists_process): Likewise.
355 (dwarf2_ranges_process): Likewise.
356 (dwarf2_record_block_ranges): Likewise.
357 (is_vtable_name): Likewise.
358 (read_formatted_entries): Likewise.
359 (skip_form_bytes): Likewise.
360 * elfread.c (elf_symtab_read): Likewise.
361 * exec.c (exec_file_command): Likewise.
362 * f-valprint.c (f_val_print): Likewise.
363 (info_common_command_for_block): Likewise.
364 * guile/guile.c (initialize_scheme_side): Likewise.
365 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Likewise.
366 * guile/scm-cmd.c (cmdscm_completer): Likewise.
367 (gdbscm_register_command_x): Likewise.
368 * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
369 * guile/scm-param.c (gdbscm_parameter_value): Likewise.
370 * guile/scm-ports.c (file_port_magic): Likewise.
371 * guile/scm-pretty-print.c (ppscm_search_pp_list): Likewise.
372 (ppscm_pretty_print_one_value): Likewise.
373 (ppscm_print_children): Likewise.
374 * guile/scm-string.c (gdbscm_string_to_argv): Likewise.
375 * guile/scm-symtab.c (gdbscm_sal_symtab): Likewise.
376 * guile/scm-type.c (gdbscm_type_next_field_x): Likewise.
377 * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
378 * i386-tdep.c (i386_register_reggroup_p): Likewise.
379 * infcmd.c (run_command_1): Likewise.
380 (until_next_fsm_clean_up): Likewise.
381 * linespec.c (linespec_complete): Likewise.
382 (find_label_symbols): Likewise.
383 * m2-valprint.c (m2_val_print): Likewise.
384 * memattr.c (require_user_regions): Likewise.
385 (lookup_mem_region): Likewise.
386 (disable_mem_command): Likewise.
387 (mem_delete): Likewise.
388 * mep-tdep.c (mep_register_name): Likewise.
389 (mep_analyze_prologue): Likewise.
390 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Likewise.
391 * mi/mi-interp.c (mi_on_sync_execution_done): Likewise.
392 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
393 * microblaze-linux-tdep.c (microblaze_linux_init_abi): Likewise.
394 * minidebug.c (lzma_open): Likewise.
395 * minsyms.c (lookup_minimal_symbol): Likewise.
396 * mips-linux-tdep.c (mips64_fill_fpregset): Likewise.
397 * mips-tdep.c (mips_stub_frame_sniffer): Likewise.
398 (mips_o64_return_value): Likewise.
399 (mips_single_step_through_delay): Likewise.
400 (_initialize_mips_tdep): Likewise.
401 * nios2-tdep.c (nios2_push_dummy_call): Likewise.
402 (nios2_software_single_step): Likewise.
403 * parse.c (find_minsym_type_and_address): Likewise.
404 * psymtab.c (psym_relocate): Likewise.
405 * python/py-breakpoint.c (bppy_get_commands): Likewise.
406 (gdbpy_breakpoint_modified): Likewise.
407 * python/py-infevents.c (create_inferior_call_event_object):
409 * python/py-record-btrace.c (btpy_list_item): Likewise.
410 * python/py-type.c (typy_str): Likewise.
411 * python/py-value.c (valpy_call): Likewise.
412 * python/python.c (do_start_initialization): Likewise.
413 * record-btrace.c (record_btrace_insn_history_range): Likewise.
414 (record_btrace_call_history_range): Likewise.
415 (record_btrace_record_method): Likewise.
416 (record_btrace_xfer_partial): Likewise.
417 (btrace_get_frame_function): Likewise.
418 * record-full.c (record_full_open): Likewise.
419 * record.c (get_context_size): Likewise.
420 * registry.h (DEFINE_REGISTRY): Likewise.
421 * remote-fileio.c (remote_fileio_request): Likewise.
422 * remote.c (remote_update_thread_list): Likewise.
423 (remote_check_symbols): Likewise.
424 (remote_commit_resume): Likewise.
425 (remote_interrupt): Likewise.
426 (remote_insert_breakpoint): Likewise.
427 (compare_sections_command): Likewise.
428 * rust-exp.y (super_name): Likewise.
429 (lex_string): Likewise.
430 (convert_ast_to_type): Likewise.
431 (convert_ast_to_expression): Likewise.
432 * rust-lang.c (rust_print_struct_def): Likewise.
433 (rust_print_type): Likewise.
434 (rust_evaluate_subexp): Likewise.
435 * rx-tdep.c (rx_register_type): Likewise.
436 * ser-event.c (serial_event_clear): Likewise.
437 * serial.c (serial_open): Likewise.
438 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
439 * symfile.c (section_is_overlay): Likewise.
440 (overlay_unmapped_address): Likewise.
441 (overlay_mapped_address): Likewise.
442 (simple_overlay_update_1): Likewise.
443 (simple_overlay_update): Likewise.
444 * symtab.c (symbol_find_demangled_name): Likewise.
445 (search_symbols): Likewise.
446 * target-descriptions.c (tdesc_predefined_type): Likewise.
447 * target.c (target_commit_resume): Likewise.
448 * thread.c (print_selected_thread_frame): Likewise.
449 * top.c (new_ui_command): Likewise.
450 (gdb_readline_no_editing): Likewise.
451 * tracefile-tfile.c (tfile_open): Likewise.
452 * tracepoint.c (create_tsv_from_upload): Likewise.
453 * utils.c (quit): Likewise.
454 (defaulted_query): Likewise.
455 * valarith.c (value_concat): Likewise.
456 * xml-syscall.c (xml_list_syscalls_by_group): Likewise.
457 * xml-tdesc.c (target_fetch_description_xml): Likewise.
458 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
459 (xtensa_pseudo_register_write): Likewise.
461 2017-12-04 Tom Tromey <tom@tromey.com>
463 * NEWS: Mention Rust trait object inspection.
465 2017-12-04 Pedro Alves <palves@redhat.com>
468 * amd64-tdep.c (amd64_insn::rex_offset): Rename to...
469 (amd64_insn::enc_prefix_offset): ... this, and tweak comment.
470 (vex2_prefix_p, vex3_prefix_p): New functions.
471 (amd64_get_insn_details): Adjust to rename. Also skip VEX2 and
473 (fixup_riprel): Set VEX3.!B.
475 2017-12-03 Simon Marchi <simon.marchi@ericsson.com>
477 * target.h (mem_region_vector): Remove.
478 (struct target_ops) <to_memory_map>: Change return type to
479 std::vector<mem_region>.
480 * target-debug.h (target_debug_print_mem_region_vector): Rename
482 (target_debug_print_std_vector_mem_region): ... this.
483 * target-delegates.c: Re-generate.
485 2017-12-03 Pedro Alves <palves@redhat.com>
487 * make-target-delegates (munge_type): Also munge '<', '>', and
488 ':'. Avoid double underscores in identifiers, and trailing
491 (target_debug_print_VEC_static_tracepoint_marker_p__p): Rename to
493 (target_debug_print_VEC_static_tracepoint_marker_p_p): ... this.
494 * target-delegates.c: Regenerate.
496 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
498 * common/poison.h (XDELETE): Fix typo.
500 2017-12-01 Andrew Cagney <cagney@redhat.com>
501 Joel Brobecker <brobecker@adacore.com>
502 Sergio Durigan Junior <sergiodj@redhat.com>
504 * NEWS (Changes since GDB 8.0: Mention new '--readnever'
506 * coffread.c (coff_symfile_read): Do not map over sections with
507 'coff_locate_sections' if readnever is on.
508 * dwarf2read.c (dwarf2_has_info): Return 0 if
510 * elfread.c (elf_symfile_read): Do not map over sections with
511 'elf_locate_sections' if readnever is on.
512 * main.c (validate_readnow_readnever): New function.
513 (captured_main_1): Add support for --readnever.
514 (print_gdb_help): Document --readnever.
515 * objfile-flags.h (enum objfile_flag) <OBJF_READNEVER>: New
517 * symfile.c (readnever_symbol_files): New global.
518 (symbol_file_add_with_addrs): Set 'OBJF_READNEVER' when
519 'READNEVER_SYMBOL_FILES' is set.
520 (validate_readnow_readnever): New function.
521 (symbol_file_command): Handle '-readnever' option.
522 Call 'validate_readnow_readnever'.
523 (add_symbol_file_command): Handle '-readnever' option.
524 Call 'validate_readnow_readnever'.
525 (_initialize_symfile): Document new '-readnever' option for
526 both 'symbol-file' and 'add-symbol-file' commands.
527 * top.h (readnever_symbol_files): New extern global.
528 * xcoffread.c (xcoff_initial_scan): Do not read debug
529 information if readnever is on.
531 2017-12-01 Sergio Durigan Junior <sergiodj@redhat.com>
533 * symfile.c (symbol_file_command): Call
534 'symbol_file_add_main_1' only after processing all command
536 (add_symbol_file_command): Modify logic to make arguments
537 position-independent.
539 2017-12-01 Joel Brobecker <brobecker@adacore.com>
541 * ada-lang.c (symbol_list_obstack): Delete.
542 (resolve_subexp): Make sure "candidates" gets xfree'ed.
543 (ada_lookup_symbol_list_worker): Remove the limitation that
544 the result is only good until the next call, now making it
545 the responsibility of the caller to free the result when no
546 longer needed. Adjust the function's intro comment accordingly.
547 (ada_lookup_symbol_list): Adjust the function's intro comment.
548 (ada_iterate_over_symbols): Make sure "results" gets xfree'ed.
549 (ada_lookup_encoded_symbol, get_var_value): Likewise.
550 (_initialize_ada_language): Remove symbol_list_obstack
552 * ada-exp.y (block_lookup): Make sure "syms" gets xfree'ed.
553 (write_var_or_type, write_name_assoc): Likewise.
555 2017-12-01 Tom Tromey <tom@tromey.com>
557 * Makefile.in (all_deps_files): New variable.
558 Include .Po files using all_deps_files.
560 2017-12-01 Joel Brobecker <brobecker@adacore.com>
562 * MAINTAINERS: Update list of maintainers, moving those who
563 stepped down or became inactive to the "Past Maintainers"
566 2017-11-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
568 * configure.ac Don't check for sys/fault.h, sys/syscall.h,
570 (NEW_PROC_API): Remove.
571 (prsysent_t, pr_sigset_t, pr_sigaction64_t, pr_siginfo64_t):
573 * common/common.m4 (GDB_AC_COMMON): Don't check for sys/syscall.h.
574 * configure: Regenerate.
575 * config.in: Regenerate.
576 * gdbserver/configure: Regenerate.
577 * gdbserver/config.in: Regenerate.
579 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Remove
581 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Likewise.
583 * linux-btrace.c: Remove HAVE_SYS_SYSCALL_H test.
585 * proc-api.c: Remove !NEW_PROC_API support.
586 Remove HAVE_SYS_PROC_H and HAVE_SYS_USER_H tests.
587 Remove tests for macros always defined on Solaris.
588 * proc-events.c: Remove !NEW_PROC_API support.
589 Remove Remove HAVE_SYS_SYSCALL_H, HAVE_SYS_PROC_H and
590 HAVE_SYS_USER_H tests.
591 (init_syscall_table): Remove non-Solaris syscalls.
592 Remove tests for syscalls present on all Solaris versions.
593 Add missing Solaris 10+ syscalls.
594 (signal_table): Remove non-Solaris signals.
595 Remove tests for signals present on all Solaris versions.
596 (fault_table): Remove non-Solaris faults.
597 Remove tests for faults present on all Solaris versions.
598 * proc-flags.c: Remove !NEW_PROC_API support.
599 (pr_flag_table): Remove non-Solaris and pre-Solaris 7 comments.
600 Remove non-Solaris flags.
601 * proc-why.c: Remove !NEW_PROC_API support.
602 (pr_why_table): Remove meaningless comments.
603 Remove tests for reasons present on all Solaris versions.
605 (proc_prettyfprint_why): Likewise.
607 * procfs.c: Remove !NEW_PROC_API and DYNAMIC_SYSCALLS support.
608 Remove HAVE_SYS_FAULT_H and HAVE_SYS_SYSCALL_H tests.
609 Remove WA_READ test, IRIX watchpoint support.
610 (gdb_sigset_t, gdb_sigaction_t, gdb_siginfo_t): Replace by base
612 (gdb_praddset, gdb_prdelset, gdb_premptysysset, gdb_praddsysset)
613 (gdb_prdelset, gdb_pr_issyssetmember): Replace by base macros.
615 Remove CTL_PROC_NAME_FMT tests.
616 (gdb_prstatus_t, gdb_lwpstatus_t): Replace by base types. Change
618 (sysset_t_size): Remove. Use sizeof (sysset_t) in callers.
619 Remove PROCFS_DONT_PIOCSSIG_CURSIG support.
620 (proc_modify_flag): Replace GDBRESET by PCUNSET.
621 Remove PR_ASYNC, PR_KLC tests.
622 (proc_unset_inherit_on_fork): Remove PR_ASYNC test.
623 (proc_parent_pid): Remove PCWATCH etc. tests.
624 (proc_set_watchpoint): Remove !PCWATCH && !PIOCSWATCH support.
626 (proc_get_nthreads) [PIOCNTHR && PIOCTLIST]: Remove.
627 Remove SYS_lwpcreate || SYS_lwp_create test.
628 (proc_get_current_thread): Likewise.
629 [PIOCNTHR && PIOCTLIST]: Remove.
630 [PIOCLSTATUS]: Remove.
631 (procfs_debug_inferior): Remove non-Solaris cases, conditionals.
632 [PRFS_STOPEXEC]: Remove.
633 (syscall_is_lwp_exit): Remove non-Solaris cases, conditionals.
634 (syscall_is_exit): Likewise.
635 (syscall_is_exec): Likewise.
636 (syscall_is_lwp_create): Likewise.
637 Remove SYS_syssgi support.
638 (procfs_wait): Remove PR_ASYNC, !PIOCSSPCACT tests.
639 [SYS_syssgi]: Remove.
640 Remove non-Solaris cases, conditionals.
641 (unconditionally_kill_inferior) [PROCFS_NEED_PIOCSSIG_FOR_KILL]:
643 (procfs_init_inferior) [SYS_syssgi]: Remove.
644 (procfs_set_exec_trap) [PRFS_STOPEXEC]: Remove.
645 (procfs_inferior_created) [SYS_syssgi]: Remove.
646 (procfs_set_watchpoint): Remove !AIX5 test.
647 (procfs_stopped_by_watchpoint): Remove FLTWATCH test, FLTKWATCH
649 (mappingflags) [MA_PHYS]: Remove.
650 (info_mappings_callback): Remove PCAGENT test.
651 Remove PIOCOPENLWP || PCAGENT test.
653 2017-11-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
655 * sol-thread.c (info_solthreads): Constify args.
658 2017-11-29 John Baldwin <jhb@FreeBSD.org>
660 * target-float.c [HAVE_LIBMPFR]: Define MPFR_USE_INTMAX_T.
662 2017-11-29 Joel Brobecker <brobecker@adacore.com>
664 * ada-lang.c (to_fixed_range_type): Make sure that the size
665 of the range type being returned is the same as the size
666 of the range type being fixed.
668 2017-11-29 Pedro Alves <palves@redhat.com>
671 * NEWS: Mention setting breakpoints on functions with C++ ABI
673 * completer.h (completion_match_for_lcd) <match,
674 mark_ignored_range>: New methods.
675 <finish>: Consider ignored ranges.
676 <clear>: Clear ignored ranges.
677 <m_ignored_ranges, m_finished_storage>: New fields.
678 * cp-support.c (cp_search_name_hash): Ignore ABI tags.
679 (cp_symbol_name_matches_1, cp_fq_symbol_name_matches): Pass the
680 completion_match_for_lcd pointer to strncmp_iw_with_mode.
681 (test_cp_symbol_name_cmp): Add [abi:...] tags unit tests.
682 * language.c (default_symbol_name_matcher): Pass the
683 completion_match_for_lcd pointer to strncmp_iw_with_mode.
684 * linespec.c (linespec_lexer_lex_string): Don't tokenize ABI tags.
685 * utils.c (skip_abi_tag): New function.
686 (strncmp_iw_with_mode): Add completion_match_for_lcd parameter.
688 * utils.h (strncmp_iw_with_mode): Add completion_match_for_lcd
691 2017-11-29 Pedro Alves <palves@redhat.com>
694 * NEWS: Mention setting breakpoints on functions with C++ ABI
696 * completer.h (completion_match_for_lcd) <match,
697 mark_ignored_range>: New methods.
698 <finish>: Consider ignored ranges.
699 <clear>: Clear ignored ranges.
700 <m_ignored_ranges, m_finished_storage>: New fields.
701 * cp-support.c (cp_search_name_hash): Ignore ABI tags.
702 (cp_symbol_name_matches_1, cp_fq_symbol_name_matches): Pass the
703 completion_match_for_lcd pointer to strncmp_iw_with_mode.
704 (test_cp_symbol_name_cmp): Add [abi:...] tags unit tests.
705 * language.c (default_symbol_name_matcher): Pass the
706 completion_match_for_lcd pointer to strncmp_iw_with_mode.
707 * linespec.c (linespec_lexer_lex_string): Don't tokenize ABI tags.
708 * utils.c (skip_abi_tag): New function.
709 (strncmp_iw_with_mode): Add completion_match_for_lcd parameter.
711 * utils.h (strncmp_iw_with_mode): Add completion_match_for_lcd
714 2017-11-29 Pedro Alves <palves@redhat.com>
716 * NEWS: Mention that breakpoints on C++ functions are now set on
717 on all namespaces/classes by default, and mention "break
719 * ax-gdb.c (agent_command_1): Adjust to pass a
720 symbol_name_match_type to new_linespec_location.
721 * breakpoint.c (parse_breakpoint_sals): Adjust to
722 get_linespec_location's return type change.
723 (strace_marker_create_sals_from_location): Adjust to pass a
724 symbol_name_match_type to new_linespec_location.
725 (strace_marker_decode_location): Adjust to get_linespec_location's
727 (strace_command): Adjust to pass a symbol_name_match_type to
728 new_linespec_location.
729 (LOCATION_HELP_STRING): Add paragraph about wildmatching, and
730 mention "-qualified".
731 * c-lang.c (cplus_language_defn): Install cp_search_name_hash.
732 * completer.c (explicit_location_match_type::MATCH_QUALIFIED): New
734 (complete_address_and_linespec_locations): New parameter
735 'match_type'. Pass it down.
736 (explicit_options): Add "-qualified".
737 (collect_explicit_location_matches): Pass the requested match type
738 to the linespec completers. Handle MATCH_QUALIFIED.
739 (location_completer): Handle "-qualified" combined with linespecs.
740 * cp-support.c (cp_search_name_hash): New.
741 (cp_symbol_name_matches_1): Implement wild matching for C++.
742 (cp_fq_symbol_name_matches): Reimplement.
743 (cp_get_symbol_name_matcher): Return different matchers depending
744 on the lookup name's match type.
745 (selftests::test_cp_symbol_name_matches): Add wild matching tests.
746 * cp-support.h (cp_search_name_hash): New declaration.
748 (selftests::dw2_expand_symtabs_matching::test_symbols): Add
750 (test_dw2_expand_symtabs_matching_symbol): Add wild matching
752 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Adjust to
753 pass a symbol_name_match_type to new_linespec_location.
754 * linespec.c (linespec_parse_basic): Lookup function symbols using
755 the parser's symbol name match type.
756 (convert_explicit_location_to_linespec): New
757 symbol_name_match_type parameter. Pass it down to
758 find_linespec_symbols.
759 (convert_explicit_location_to_sals): Pass the location's name
760 match type to convert_explicit_location_to_linespec.
761 (parse_linespec): New match_type parameter. Save it in the
763 (linespec_parser_new): Default to symbol_name_match_type::WILD.
764 (linespec_complete_function): New symbol_name_match_type
766 (complete_linespec_component): Pass down the parser's recorded
768 (linespec_complete_label): New symbol_name_match_type parameter.
770 (linespec_complete): New symbol_name_match_type parameter. Save
771 it in the parser and pass it down. Adjust to
772 get_linespec_location's prototype change.
773 (find_function_symbols, find_linespec_symbols): New
774 symbol_name_match_type parameter. Pass it down instead of
775 assuming symbol_name_match_type::WILD.
776 * linespec.h (linespec_complete, linespec_complete_function)
777 (linespec_complete_label): New symbol_name_match_type parameter.
778 * location.c (event_location::linespec_location): Now a struct
780 (EL_LINESPEC): Adjust.
781 (initialize_explicit_location): Default to
782 symbol_name_match_type::WILD.
783 (new_linespec_location): New symbol_name_match_type parameter.
784 Record it in the location.
785 (get_linespec_location): Now returns a struct linespec_location.
786 (new_explicit_location): Also copy func_name_match_type.
787 (explicit_to_string_internal)
788 (string_to_explicit_location): Handle "-qualified".
789 (copy_event_location): Adjust to LINESPEC_LOCATION type change.
790 Copy symbol_name_match_type fields.
791 (event_location_deleter::operator()): Adjust to LINESPEC_LOCATION
793 (event_location_to_string): Adjust to LINESPEC_LOCATION type
794 change. Handle "-qualfied".
795 (string_to_explicit_location): Handle "-qualified".
796 (string_to_event_location_basic): New symbol_name_match_type
797 parameter. Pass it down.
798 (string_to_event_location): Handle "-qualified".
799 * location.h (struct linespec_location): New.
800 (explicit_location::func_name_match_type): New field.
801 (new_linespec_location): Now returns a const linespec_location *.
802 (string_to_event_location_basic): New symbol_name_match_type
804 (explicit_completion_info::saw_explicit_location_option): New
806 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Adjust to pass a
807 symbol_name_match_type to new_linespec_location.
808 * python/py-breakpoint.c (bppy_init): Likewise.
809 * python/python.c (gdbpy_decode_line): Likewise.
811 2017-11-29 Pedro Alves <palves@redhat.com>
813 * ada-lang.c (ada_lookup_name_info::matches): Change type of
814 parameter from completion_match to completion_match_result.
816 (do_wild_match, do_full_match, ada_symbol_name_matches): Likewise.
817 * completer.c (completion_tracker::maybe_add_completion): Add
818 match_for_lcd parameter and use it.
819 (completion_tracker::add_completion): Likewise.
820 * completer.h (class completion_match_for_lcd): New class.
821 (completion_match_result::match_for_lcd): New field.
822 (completion_match_result::set_match): New method.
823 (completion_tracker): Add comments.
824 (completion_tracker::add_completion): Add match_for_lcd parameter.
825 (completion_tracker::reset_completion_match_result): Reset
827 (completion_tracker::maybe_add_completion): Add match_for_lcd
829 (completion_tracker::m_lowest_common_denominator_unique): Extend
831 * cp-support.c (cp_symbol_name_matches_1)
832 (cp_fq_symbol_name_matches): Change type of parameter from
833 completion_match to completion_match_result. Adjust.
834 * language.c (default_symbol_name_matcher): Change type of
835 parameter from completion_match to completion_match_result.
837 * language.h (completion_match_for_lcd): Forward declare.
838 (default_symbol_name_matcher): Change type of parameter from
839 completion_match to completion_match_result.
840 * symtab.c (compare_symbol_name): Adjust.
841 (completion_list_add_name): Pass the match_for_lcd to the tracker.
842 * symtab.h (ada_lookup_name_info::matches): Change type of
843 parameter from completion_match to completion_match_result.
844 (symbol_name_matcher_ftype): Likewise, and update comments.
846 2017-11-29 Pedro Alves <palves@redhat.com>
848 * linespec.c (minsym_found, add_minsym): Use msymbol_is_function.
849 * minsyms.c (msymbol_is_text): Delete.
850 (msymbol_is_function): New function.
851 * minsyms.h (msymbol_is_text): Delete.
852 (msymbol_is_function): New declaration.
853 * symtab.c (find_function_alias_target): Use msymbol_is_function.
855 2017-11-29 Tom Tromey <tom@tromey.com>
857 * Makefile.in (distclean): Handle the case where rmdir fails.
859 2017-11-29 Tom Tromey <tom@tromey.com>
861 * symfile.c (_initialize_symfile): Update usage text for
862 add-symbol-file, symbol-file, load.
864 2017-11-29 Tom Tromey <tom@tromey.com>
866 * symfile.c (add_symbol_file_command): Error if some arguments to
867 -s are missing. Change unrecognized-argument error message.
868 (_initialize_symfile): Fix usage text for add-symbol-file.
870 2017-11-27 Tom Tromey <tom@tromey.com>
872 * Makefile.in (REMOTE_OBS): Remove.
873 (SFILES): Remove remote sources.
874 (COMMON_SFILES): Add remote sources.
875 (ALLDEPFILES): Remove dcache.c.
877 2017-11-27 Tom Tromey <tom@tromey.com>
879 * Makefile.in (SUBDIR_TARGET_SRCS, SUBDIR_TARGET_OBS): New
881 (SFILES): Use SUBDIR_TARGET_SRCS.
882 (COMMON_OBS): Use SUBDIR_TARGET_OBS. Remove waitstatus.o.
883 (CONFIG_SRC_SUBDIR): Add target.
884 (%.o): Remove target rule.
886 2017-11-27 Tom Tromey <tom@tromey.com>
888 * Makefile.in (COMMON_OBS): Remove filename-seen-cache.o,
889 registry.o, thread-fsm.o, debug.o.
890 (COMMON_SFILES): Add filename-seen-cache.c, registry.c,
891 thread-fsm.c, debug.c.
893 2017-11-27 Tom Tromey <tom@tromey.com>
895 * Makefile.in (COMMON_SFILES): New.
896 (SFILES): Move some entries to COMMON_SFILES.
897 (COMMON_OBS): Use COMMON_SFILES.
899 2017-11-27 Tom Tromey <tom@tromey.com>
901 * Makefile.in (YYFILES): Update comment.
904 2017-11-27 Tom Tromey <tom@tromey.com>
906 * Makefile.in (SUBDIR_PYTHON_OBS): Redefine.
907 (CONFIG_SRC_SUBDIR): Add python.
908 (%.o): Remove python rule.
909 (python/%.o): New rule.
910 * configure: Rebuild.
911 * configure.ac (CONFIG_OBS): Refer to python/python.o
913 2017-11-27 Tom Tromey <tom@tromey.com>
915 * configure: Rebuild.
916 * configure.ac (CONFIG_OBS): Refer to guile/guile.o.
917 * Makefile.in (SUBDIR_GUILE_OBS): Redefine.
918 (CONFIG_SRC_SUBDIR): Add guile.
919 (%.o): Remove guile rule.
921 2017-11-27 Tom Tromey <tom@tromey.com>
923 * Makefile.in (SUBDIR_UNITTESTS_OBS): Redefine.
924 (%.o): Remove unittests rule.
925 (CONFIG_SRC_SUBDIR): Add unittests.
927 2017-11-27 Tom Tromey <tom@tromey.com>
929 * Makefile.in (SUBDIR_TUI_OBS): Redefine.
930 (CONFIG_SRC_SUBDIR): Add tui.
931 (%.o): Remove tui rule.
933 2017-11-27 Tom Tromey <tom@tromey.com>
935 * Makefile.in (SUBDIR_GCC_COMPILE_OBS): Redefine.
936 (%.o): Remove compile rule.
937 (CONFIG_SRC_SUBDIR): Add compile.
939 2017-11-27 Tom Tromey <tom@tromey.com>
941 * Makefile.in (SUBDIR_MI_OBS): Redefine.
942 (%.o): Remove mi rule.
943 (CONFIG_SRC_SUBDIR): Add mi.
944 (COMMON_OBS): Use mi/mi-common.o
946 2017-11-27 Tom Tromey <tom@tromey.com>
948 * Makefile.in (SUBDIR_CLI_OBS): Redefine.
949 (%.o): Remove cli rule.
950 (CONFIG_SRC_SUBDIR): Add cli.
952 2017-11-27 Tom Tromey <tom@tromey.com>
954 * configure.ac (CONFIG_SRC_SUBDIR): Don't subst.
955 * configure: Rebuild.
956 * Makefile.in (CONFIG_SRC_SUBDIR): Redefine.
957 (CONFIG_DEP_SUBDIR): New variable.
958 (%.o): Add order-only dependency.
959 ($(CONFIG_DEP_SUBDIR)): New target.
961 2017-11-26 Dominik Czarnota <dominik.b.czarnota@gmail.com>
964 * findcmd.c (_initialize_mem_search): Update find command help
967 2017-11-26 Simon Marchi <simon.marchi@polymtl.ca>
969 * python/python.c (do_start_initialization): Change progname
970 type to gdb::unique_xmalloc_ptr. Release the pointer when using
973 2017-11-26 Tom Tromey <tom@tromey.com>
975 * common/format.h: Add include guards.
977 2017-11-26 Tom Tromey <tom@tromey.com>
979 * nat/linux-personality.h (class
980 maybe_disable_address_space_randomization): New class.
981 (maybe_disable_address_space_randomization): Don't declare
983 * nat/linux-personality.c (restore_personality)
984 (make_disable_asr_cleanup): Remove.
985 (maybe_disable_address_space_randomization): Now a constructor.
986 (~maybe_disable_address_space_randomization): New destructor.
987 * linux-nat.c (linux_nat_create_inferior): Update.
989 2017-11-26 Tom Tromey <tom@tromey.com>
991 * gcore.c (write_gcore_file_1): Use gdb::unique_xmalloc_ptr.
993 2017-11-26 Ulrich Weigand <uweigand@de.ibm.com>
995 * spu-tdep.c (spu_software_single_step): Access SPU_LSLR_REGNUM as
996 "cooked" register. Access only first four bytes of branch target
999 2017-11-25 Sergio Durigan Junior <sergiodj@redhat.com>
1002 * stap-probe.c (relocate_address): New function.
1003 (stap_probe::get_relocated_address): Use 'relocate_address'.
1004 (stap_probe::set_semaphore): Use 'relocate_address' and pass
1006 (stap_probe::clear_semaphore): Likewise.
1008 2017-11-25 Pedro Alves <palves@redhat.com>
1010 * dictionary.c: Include "safe-ctype.h".
1011 * minsyms.c: Include "safe-ctype.h".
1012 * minsyms.c (SYMBOL_HASH_NEXT): Use TOLOWER instead of tolower.
1014 2017-11-25 Pedro Alves <palves@redhat.com>
1016 * completer.c (complete_line_internal_1): Skip spaces until the
1017 start of the command.
1019 2017-11-24 Pedro Alves <palves@redhat.com>
1021 * cp-support.c (cp_symbol_name_matches_1): New, factored out from
1022 cp_fq_symbol_name_matches. Pass language_cplus to
1024 (cp_fq_symbol_name_matches): Call cp_symbol_name_matches_1.
1025 (selftests::test_cp_symbol_name_cmp): New.
1026 (_initialize_cp_support): Register "cp_symbol_name_matches"
1028 * language.c (default_symbol_name_matcher): Pass language_minimal
1029 to strncmp_iw_with_mode.
1030 * utils.c: Include "cp-support.h" and <algorithm>.
1031 (valid_identifier_name_char, cp_skip_operator_token, skip_ws)
1032 (cp_is_operator): New functions.
1033 (strncmp_iw_with_mode): Use them. Add language parameter. Don't
1034 skip whitespace in the symbol name when the lookup name doesn't
1035 have spaces, and vice versa.
1036 (strncmp_iw, strcmp_iw): Pass language to strncmp_iw_with_mode.
1037 * utils.h (strncmp_iw_with_mode): Add language parameter.
1039 2017-11-24 Joel Brobecker <brobecker@adacore.com>
1041 * ada-lang.c (ada_exception_message_1, ada_exception_message):
1043 (print_it_exception): If available, display the exception
1045 * NEWS: Document new feature.
1047 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
1049 * configure.nat <spu-linux>: Add fork-inferior.o to NATDEPFILES.
1051 2017-11-24 Philipp Rudo <prudo@linux.vnet.ibm.com>
1053 * dtrace-probe.c (dtrace_probe::build_arg_exprs)
1054 (dtrace_probe::is_enabled, dtrace_probe::enable)
1055 (dtrace_probe::disable): Remove keyword 'struct' at for-range
1057 * probe.c (gen_ui_out_table_header_info)
1058 (print_ui_out_not_applicables): Remove keyword 'struct' at
1061 2017-11-24 Alan Hayward <alan.hayward@arm.com>
1063 * configure.tgt: Add arch/aarch64.o
1065 2017-11-24 Simon Marchi <simon.marchi@polymtl.ca>
1067 * common/common-utils.h: Include poison.h.
1068 (xfree): Remove declaration, add definition with static_assert.
1069 * common/common-utils.c (xfree): Remove.
1070 * common/poison.h (IsMallocatable): Define.
1071 (IsFreeable): Define.
1072 (free): Delete for non-freeable types.
1074 (XNEW): Undef and redefine.
1076 (XCNEW): Undef and redefine.
1078 (XDELETE): Undef and redefine.
1080 (XNEWVEC): Undef and redefine.
1082 (XCNEWVEC): Undef and redefine.
1084 (XRESIZEVEC): Undef and redefine.
1086 (XDELETEVEC): Undef and redefine.
1088 (XNEWVAR): Undef and redefine.
1090 (XCNEWVAR): Undef and redefine.
1092 (XRESIZEVAR): Undef and redefine.
1094 2017-11-24 Simon Marchi <simon.marchi@polymtl.ca>
1096 * gdbthread.h (private_thread_info): Define structure type, add
1097 virtual pure destructor.
1098 (thread_info) <priv>: Change type to unique_ptr.
1099 <private_dtor>: Remove.
1100 * thread.c (add_thread_with_info): Adjust to use of unique_ptr.
1101 (private_thread_info::~private_thread_info): Provide default
1103 (thread_info::~thread_info): Don't call private_dtor nor
1105 * aix-thread.c (private_thread_info): Rename to ...
1106 (aix_thread_info): ... this.
1107 (get_aix_thread_info): New.
1108 (sync_threadlists): Adjust.
1110 (aix_thread_resume): Adjust.
1111 (aix_thread_fetch_registers): Adjust.
1112 (aix_thread_store_registers): Adjust.
1113 (aix_thread_extra_thread_info): Adjust.
1114 * darwin-nat.h (private_thread_info): Rename to ...
1115 (darwin_thread_info): ... this.
1116 (get_darwin_thread_info): New.
1117 * darwin-nat.c (darwin_init_thread_list): Adjust.
1118 (darwin_check_new_threads): Adjust.
1119 (thread_info_from_private_thread_info): Adjust.
1120 * linux-thread-db.c (private_thread_info): Rename to ...
1121 (thread_db_thread_info): ... this, initialize fields.
1122 (get_thread_db_thread_info): New.
1123 <dying>: Change type to bool.
1124 (update_thread_state): Adjust to type rename.
1125 (record_thread): Adjust to type rename an use of unique_ptr.
1126 (thread_db_pid_to_str): Likewise.
1127 (thread_db_extra_thread_info): Likewise.
1128 (thread_db_thread_handle_to_thread_info): Likewise.
1129 (thread_db_get_thread_local_address): Likewise.
1130 * nto-tdep.h (private_thread_info): Rename to ...
1131 (nto_thread_info): ... this, initialize fields.
1132 (get_nto_thread_info): New.
1133 <name>: Change type to std::string.
1134 * nto-tdep.c (nto_extra_thread_info): Adjust to type rename and
1136 * nto-procfs.c (update_thread_private_data_name): Adjust to
1137 std::string change, allocate nto_private_thread_info with new.
1138 (update_thread_private_data): Adjust to unique_ptr.
1139 * remote.c (private_thread_info): Rename to ...
1140 (remote_thread_info): ... this, initialize data members with
1142 <extra, name>: Change type to std::string.
1143 <thread_handle>: Change type to non-pointer.
1144 (free_private_thread_info): Remove.
1145 (get_private_info_thread): Rename to...
1146 (get_remote_thread_info): ... this, change return type, adjust to
1147 use of unique_ptr, use remote_thread_info constructor.
1148 (remote_add_thread): Adjust.
1149 (get_private_info_ptid): Rename to...
1150 (get_remote_thread_info): ...this, change return type.
1151 (remote_thread_name): Use get_remote_thread_info, adjust to
1152 change to std::string.
1153 (struct thread_item) <~thread_item>: Remove.
1154 <thread_handle>: Make non pointer.
1155 (start_thread): Adjust to thread_item::thread_handle type
1157 (remote_update_thread_list): Adjust to type name change, move
1158 strings from temporary to long-lived object instead of
1160 (remote_threads_extra_info): Use get_remote_thread_info.
1161 (process_initial_stop_replies): Likewise.
1162 (resume_clear_thread_private_info): Likewise.
1163 (remote_resume): Adjust to type name change.
1164 (remote_commit_resume): Use get_remote_thread_info.
1165 (process_stop_reply): Adjust to type name change.
1166 (remote_stopped_by_sw_breakpoint): Use get_remote_thread_info.
1167 (remote_stopped_by_hw_breakpoint): Likewise.
1168 (remote_stopped_by_watchpoint): Likewise.
1169 (remote_stopped_data_address): Likewise.
1170 (remote_core_of_thread): Likewise.
1171 (remote_thread_handle_to_thread_info): Use
1172 get_private_info_thread, adjust to thread_handle field type
1175 2017-11-24 Simon Marchi <simon.marchi@polymtl.ca>
1177 * remote.c (struct thread_item): Add constructor, disable copy
1178 construction and copy assignment, define default move
1179 construction and move assignment.
1180 <extra, name>: Change type to std::string.
1182 <thread_handle>: Make non-pointer.
1183 (thread_item_t): Remove typedef.
1184 (DEF_VEC_O(thread_item_t)): Remove.
1185 (threads_listing_context) <contains_thread>: New method.
1186 <remove_thread>: New method.
1187 <items>: Change type to std::vector.
1188 (clear_threads_listing_context): Remove.
1189 (threads_listing_context_remove): Remove.
1190 (remote_newthread_step): Use thread_item constructor, adjust to
1191 change to std::vector.
1192 (start_thread): Use thread_item constructor, adjust to change to
1194 (end_thread): Adjust to change to std::vector and std::string.
1195 (remote_get_threads_with_qthreadinfo): Use thread_item
1196 constructor, adjust to std::vector.
1197 (remote_update_thread_list): Adjust to change to std::vector and
1198 std::string, use threads_listing_context methods.
1199 (remove_child_of_pending_fork): Adjust.
1200 (remove_new_fork_children): Adjust.
1201 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add rsp-low-selftests.c.
1202 (SUBDIR_UNITTESTS_OBS): Add rsp-low-selftests.o.
1203 * unittests/rsp-low-selftests.c: New file.
1204 * common/rsp-low.h: Include common/byte-vector.h.
1205 (hex2bin): New overload.
1206 * common/rsp-low.c (hex2bin): New overload.
1208 2017-11-24 Simon Marchi <simon.marchi@ericsson.com>
1210 * inferior.h (private_inferior): Define structure type, add
1211 virtual pure destructor.
1212 (inferior) <priv>: Change type to unique_ptr.
1213 * inferior.c (private_inferior::~private_inferior): Provide
1214 default implementation.
1215 (inferior::~inferior): Don't free priv field.
1216 (exit_inferior_1): Likewise.
1217 * darwin-nat.h (struct darwin_exception_info): Initialize fields.
1218 (darwin_exception_info): Remove typedef.
1219 (DEF_VEC_O (darwin_thread_t)); Remove.
1220 (private_inferior): Rename to ...
1221 (darwin_private_inferior): ... this, extend private_inferior.
1222 (get_darwin_inferior): New.
1223 <threads>: Change type to std::vector of darwin_thread_t pointers.
1224 * darwin-nat.c (darwin_check_new_threads): Adjust.
1225 (find_inferior_task_it): Adjust.
1226 (darwin_find_thread); Adjust.
1227 (darwin_suspend_inferior): Adjust.
1228 (darwin_resume_inferior): Adjust.
1229 (darwin_find_new_inferior): Adjust.
1230 (darwin_decode_notify_message): Adjust.
1231 (darwin_send_reply): Adjust.
1232 (darwin_resume_inferior_threads): Adjust.
1233 (darwin_suspend_inferior_threads): Adjust.
1234 (darwin_decode_message): Adjust.
1235 (darwin_wait): Adjust.
1236 (darwin_interrupt): Adjust.
1237 (darwin_deallocate_threads): Adjust.
1238 (darwin_mourn_inferior): Adjust, don't free private data.
1239 (darwin_reply_to_all_pending_messages): Adjust.
1240 (darwin_stop_inferior): Adjust.
1241 (darwin_setup_exceptions): Adjust.
1242 (darwin_kill_inferior): Adjust.
1243 (darwin_setup_request_notification): Adjust.
1244 (darwin_attach_pid): Adjust.
1245 (darwin_init_thread_list): Adjust.
1246 (darwin_setup_fake_stop_event): Adjust.
1247 (darwin_attach): Adjust.
1248 (darwin_detach): Adjust.
1249 (darwin_xfer_partial): Adjust.
1250 (set_enable_mach_exceptions): Adjust.
1251 (darwin_pid_to_exec_file): Adjust.
1252 (darwin_get_ada_task_ptid): Adjust.
1253 * darwin-nat-info.c (get_task_from_args): Adjust.
1254 (info_mach_ports_command): Adjust.
1255 (info_mach_region_command): Adjust.
1256 (info_mach_exceptions_command): Adjust.
1257 * remote.c (private_inferior): Rename to ...
1258 (remote_private_inferior): ... this, initialize fields.
1259 (get_remote_inferior); New.
1260 (remote_commit_resume): Use get_remote_inferior.
1261 (check_pending_event_prevents_wildcard_vcont_callback): Likewise.
1263 2017-11-24 Pedro Alves <palves@redhat.com>
1265 * NEWS: Mention linespecs and explicit locations, and completion
1268 2017-11-24 Yao Qi <yao.qi@linaro.org>
1270 * regcache.c (regcache::dump): Remove footnote_register_size.
1272 2017-11-24 Yao Qi <yao.qi@linaro.org>
1274 * regcache.c (cooked_read_test): Add more test for readonly
1277 2017-11-24 Yao Qi <yao.qi@linaro.org>
1279 * gdbarch-selftests.c (test_target_has_registers): Move it to
1281 (test_target_has_stack): Likewise.
1282 (test_target_has_memory): Likewise.
1283 (test_target_prepare_to_store): Likewise.
1284 (test_target_store_registers): Likewise.
1285 (test_target_ops): Likewise.
1286 * regcache.c: Include selftest-arch.h and gdbthread.h.
1287 (target_ops_no_register): New class.
1288 (test_target_fetch_registers): New.
1289 (test_target_store_registers): New.
1290 (test_target_xfer_partial): New.
1291 (readwrite_regcache): New.
1292 (cooked_read_test): New.
1293 (_initialize_regcache): Register the test.
1294 * target.c: (test_target_has_registers): Moved from
1295 gdbarch-selftests.c.
1296 (test_target_has_stack): Likewise.
1297 (test_target_has_memory): Likewise.
1298 (test_target_prepare_to_store): Likewise.
1299 (test_target_store_registers): Likewise.
1300 * target.h (test_target_ops): New class.
1302 2017-11-24 Alan Hayward <alan.hayward@arm.com>
1304 * aarch64-tdep.c (_initialize_aarch64_tdep): Add target desc
1307 2017-11-24 Alan Hayward <alan.hayward@arm.com>
1309 * aarch64-tdep.c (_initialize_aarch64_tdep): Remove init.
1310 * arch/aarch64.c (aarch64_create_target_description): Create
1311 new target description.
1312 * features/Makefile: Add new files.
1313 * features/aarch64.c: Remove file.
1314 * features/aarch64-core.c: New autogenerated file.
1315 * features/aarch64-fpu.c: New autogenerated file.
1316 * target-descriptions.c (maint_print_c_tdesc_cmd): Check for aarch64.
1318 2017-11-24 Alan Hayward <alan.hayward@arm.com>
1320 * Makefile.in: Add new files.
1321 * aarch64-linux-nat.c (aarch64_linux_read_description): Call
1322 aarch64_read_description.
1323 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
1324 Call aarch64_read_description.
1325 * aarch64-tdep.c (aarch64_read_description): New function.
1326 (aarch64_gdbarch_init): Call aarch64_read_description.
1327 * aarch64-tdep.h (aarch64_read_description): New function.
1328 * arch/aarch64.c: New file.
1329 * configure.tgt: Add new files.
1331 2017-11-24 Yao Qi <yao.qi@linaro.org>
1333 * mi/mi-main.c (register_changed_p): Update.
1334 * value.c (value_contents_bits_eq): Change return type.
1335 (value_contents_eq): Likewise.
1336 * value.h: Update comments.
1338 2017-11-24 Yao Qi <yao.qi@linaro.org>
1340 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Remove
1341 local 'changed'. Remove error.
1342 (register_changed_p): Change return type to bool.
1344 2017-11-24 Yao Qi <yao.qi@linaro.org>
1346 * arch/tic6x.c: New file.
1347 * arch/tic6x.h: New file.
1348 * features/Makefile (FEATURE_XMLFILES): Add tic6x-c6xp.xml,
1349 tic6x-core.xml and tic6x-gp.xml.
1350 * features/tic6x-c6xp.c: Generated.
1351 * features/tic6x-core.c: Generated.
1352 * features/tic6x-gp.c: Generated.
1353 * target-descriptions.c (maint_print_c_tdesc_cmd): Match
1356 2017-11-23 Simon Marchi <simon.marchi@ericsson.com>
1358 * mi/mi-main.c (list_available_thread_groups): Change map value
1359 type to std::vector.
1361 2017-11-23 Simon Marchi <simon.marchi@ericsson.com>
1363 * osdata.c (osdata_end_column, get_osdata): Remove std::move.
1365 2017-11-23 Simon Marchi <simon.marchi@ericsson.com>
1367 * varobj.c (struct varobj_dynamic) <children_requested_>: Rename
1369 <children_requested>: ... this.
1370 (varobj_get_num_children, varobj_update): Adjust.
1372 2017-11-23 Simon Marchi <simon.marchi@ericsson.com>
1374 * ada-varobj.c (ada_value_is_changeable_p): Change int to bool where applicable.
1375 (ada_value_has_mutated): Likewise.
1376 * c-varobj.c (varobj_is_anonymous_child): Likewise.
1377 (c_is_path_expr_parent): Likewise.
1378 * mi/mi-cmd-var.c (varobj_update_one): Likewise.
1379 (mi_cmd_var_set_frozen): Likewise.
1380 (mi_cmd_var_update_iter): Likewise.
1381 (mi_cmd_var_update): Likewise.
1382 * varobj.c (pretty_printing): Likewise.
1383 (varobj_enable_pretty_printing): Likewise.
1384 (struct varobj_root) <floating, is_valid>: Likewise.
1385 (struct varobj_dynamic) <children_requested>: Likewise.
1386 (delete_variable): Likewise.
1387 (delete_variable_1): Likewise.
1388 (install_variable): Likewise.
1389 (update_type_if_necessary): Likewise.
1390 (install_new_value): Likewise.
1391 (value_of_root): Likewise.
1392 (is_root_p): Likewise.
1393 (varobj_create): Likewise.
1394 (varobj_delete): Likewise.
1395 (varobj_has_more): Likewise.
1396 (varobj_set_frozen): Likewise.
1397 (varobj_get_frozen): Likewise.
1398 (install_dynamic_child): Likewise.
1399 (dynamic_varobj_has_child_method): Likewise.
1400 (update_dynamic_varobj_children): Likewise.
1401 (varobj_get_num_children): Likewise.
1402 (varobj_list_children): Likewise.
1403 (is_path_expr_parent): Likewise.
1404 (varobj_default_is_path_expr_parent): Likewise.
1405 (varobj_is_dynamic_p): Likewise.
1406 (varobj_set_value): Likewise.
1407 (varobj_value_has_mutated): Likewise.
1408 (varobj_update): Likewise.
1409 (check_scope): Likewise.
1410 (value_of_root_1): Likewise.
1411 (varobj_value_get_print_value): Likewise.
1412 (varobj_editable_p): Likewise.
1413 (varobj_value_is_changeable_p): Likewise.
1414 (varobj_floating_p): Likewise.
1415 (varobj_default_value_is_changeable_p): Likewise.
1416 (varobj_invalidate_iter): Likewise.
1417 * varobj.h (struct varobj_update_result) <type_changed,
1418 children_changed, changed, value_installed>: Likewise.
1419 (struct varobj) <updated, frozen, not_fetched>: Likewise.
1420 (struct lang_varobj_ops) <value_is_changeable_p,
1421 value_has_mutated, is_path_expr_parent>: Likewise.
1422 (varobj_delete): Likewise.
1423 (varobj_set_frozen): Likewise.
1424 (varobj_get_frozen): Likewise.
1425 (varobj_set_value): Likewise.
1426 (varobj_update): Likewise.
1427 (varobj_editable_p): Likewise.
1428 (varobj_floating_p): Likewise.
1429 (varobj_has_more): Likewise.
1430 (varobj_is_dynamic_p): Likewise.
1431 (varobj_default_value_is_changeable_p): Likewise.
1432 (varobj_value_is_changeable_p): Likewise.
1433 (varobj_is_anonymous_child): Likewise.
1434 (varobj_default_is_path_expr_parent): Likewise.
1436 2017-11-22 Sergio Durigan Junior <sergiodj@redhat.com>
1438 * dtrace-probe.c (struct probe_ops dtrace_probe_ops): Delete.
1439 (struct dtrace_probe_arg) <dtrace_probe_arg>: New constructor.
1440 <type_str>: Convert to 'std::string'.
1441 <expr>: Convert to 'expression_up'.
1442 (dtrace_probe_arg_s): Delete type and VEC.
1443 (dtrace_probe_enabler_s): Likewise.
1444 (struct dtrace_probe): Replace by...
1445 (class dtrace_static_probe_ops): ...this and...
1446 (class dtrace_probe): ...this.
1447 (dtrace_probe_is_linespec): Rename to...
1448 (dtrace_static_probe_ops::is_linespec): ...this. Adjust code
1450 (dtrace_process_dof_probe): Use 'std::vector' instead of VEC.
1451 Adjust code. Create new instance of 'dtrace_probe'.
1452 (dtrace_build_arg_exprs): Rename to...
1453 (dtrace_probe::build_arg_exprs): ...this. Adjust code to
1455 (dtrace_get_probes): Rename to...
1456 (dtrace_static_probe_ops::get_probes): ...this. Adjust code
1458 (dtrace_get_arg): Rename to...
1459 (dtrace_probe::get_arg_by_number): ...this. Adjust code to
1461 (dtrace_probe_is_enabled): Rename to...
1462 (dtrace_probe::is_enabled): ...this. Adjust code to reflect
1464 (dtrace_get_probe_address): Rename to...
1465 (dtrace_probe::get_relocated_address): ...this. Adjust code
1467 (dtrace_get_probe_argument_count): Rename to...
1468 (dtrace_probe::get_argument_count): ...this. Adjust code to
1470 (dtrace_can_evaluate_probe_arguments): Rename to...
1471 (dtrace_probe::can_evaluate_arguments): ...this. Adjust code
1473 (dtrace_evaluate_probe_argument): Rename to...
1474 (dtrace_probe::evaluate_argument): ...this. Adjust code to
1476 (dtrace_compile_to_ax): Rename to...
1477 (dtrace_probe::compile_to_ax): ...this. Adjust code to
1479 (dtrace_probe_destroy): Delete.
1480 (dtrace_type_name): Rename to...
1481 (dtrace_static_probe_ops::type_name): ...this. Adjust code to
1483 (dtrace_probe::get_static_ops): New method.
1484 (dtrace_gen_info_probes_table_header): Rename to...
1485 (dtrace_static_probe_ops::gen_info_probes_table_header):
1486 ...this. Adjust code to reflect change.
1487 (dtrace_gen_info_probes_table_values): Rename to...
1488 (dtrace_probe::gen_info_probes_table_values): ...this. Adjust
1489 code to reflect change.
1490 (dtrace_enable_probe): Rename to...
1491 (dtrace_probe::enable_probe): ...this. Adjust code to reflect
1493 (dtrace_disable_probe): Rename to...
1494 (dtrace_probe::disable_probe): ...this. Adjust code to reflect
1496 (struct probe_ops dtrace_probe_ops): Delete.
1497 (info_probes_dtrace_command): Call 'info_probes_for_spops'
1498 instead of 'info_probes_for_ops'.
1499 (_initialize_dtrace_probe): Use 'all_static_probe_ops' instead
1502 2017-11-22 Sergio Durigan Junior <sergiodj@redhat.com>
1503 Simon Marchi <simark@simark.ca>
1505 * stap-probe.c (struct probe_ops stap_probe_ops): Delete
1507 (struct stap_probe_arg) <stap_probe_arg>: New constructor.
1508 <aexpr>: Change type to 'expression_up'.
1509 (stap_probe_arg_s): Delete type and VEC.
1510 (struct stap_probe): Delete. Replace by...
1511 (class stap_static_probe_ops): ...this and...
1512 (class stap_probe): ...this. Rename variables to add 'm_'
1513 prefix. Do not use 'union' for arguments anymore.
1514 (stap_get_expected_argument_type): Receive probe name instead
1515 of 'struct stap_probe'. Adjust code.
1516 (stap_parse_probe_arguments): Rename to...
1517 (stap_probe::parse_arguments): ...this. Adjust code to
1519 (stap_get_probe_address): Rename to...
1520 (stap_probe::get_relocated_address): ...this. Adjust code
1522 (stap_get_probe_argument_count): Rename to...
1523 (stap_probe::get_argument_count): ...this. Adjust code
1525 (stap_get_arg): Rename to...
1526 (stap_probe::get_arg_by_number'): ...this. Adjust code to
1528 (can_evaluate_probe_arguments): Rename to...
1529 (stap_probe::can_evaluate_arguments): ...this. Adjust code
1531 (stap_evaluate_probe_argument): Rename to...
1532 (stap_probe::evaluate_argument): ...this. Adjust code
1534 (stap_compile_to_ax): Rename to...
1535 (stap_probe::compile_to_ax): ...this. Adjust code to
1537 (stap_probe_destroy): Delete.
1538 (stap_modify_semaphore): Adjust comment.
1539 (stap_set_semaphore): Rename to...
1540 (stap_probe::set_semaphore): ...this. Adjust code to reflect
1542 (stap_clear_semaphore): Rename to...
1543 (stap_probe::clear_semaphore): ...this. Adjust code to
1545 (stap_probe::get_static_ops): New method.
1546 (handle_stap_probe): Adjust code to create instance of
1548 (stap_get_probes): Rename to...
1549 (stap_static_probe_ops::get_probes): ...this. Adjust code to
1551 (stap_probe_is_linespec): Rename to...
1552 (stap_static_probe_ops::is_linespec): ...this. Adjust code to
1554 (stap_type_name): Rename to...
1555 (stap_static_probe_ops::type_name): ...this. Adjust code to
1557 (stap_gen_info_probes_table_header): Rename to...
1558 (stap_static_probe_ops::gen_info_probes_table_header):
1559 ...this. Adjust code to reflect change.
1560 (stap_gen_info_probes_table_values): Rename to...
1561 (stap_probe::gen_info_probes_table_values): ...this. Adjust
1562 code to reflect change.
1563 (struct probe_ops stap_probe_ops): Delete.
1564 (info_probes_stap_command): Use 'info_probes_for_spops'
1565 instead of 'info_probes_for_ops'.
1566 (_initialize_stap_probe): Use 'all_static_probe_ops' instead
1569 2017-11-22 Sergio Durigan Junior <sergiodj@redhat.com>
1571 * break-catch-throw.c (fetch_probe_arguments): Use
1572 'probe.prob' instead of 'probe.probe'.
1573 * breakpoint.c (create_longjmp_master_breakpoint): Call
1574 'can_evaluate_arguments' and 'get_relocated_address' methods
1576 (create_exception_master_breakpoint): Likewise.
1577 (add_location_to_breakpoint): Use 'sal->prob' instead of
1579 (bkpt_probe_insert_location): Call 'set_semaphore' method from
1581 (bkpt_probe_remove_location): Likewise, for 'clear_semaphore'.
1582 * elfread.c (elf_get_probes): Use 'static_probe_ops' instead
1584 (probe_key_free): Call 'delete' on probe.
1585 (check_exception_resume): Use 'probe.prob' instead of
1587 * location.c (string_to_event_location_basic): Call
1588 'probe_linespec_to_static_ops'.
1589 * probe.c (class any_static_probe_ops): New class.
1590 (any_static_probe_ops any_static_probe_ops): New variable.
1591 (parse_probes_in_pspace): Receive 'static_probe_ops' as
1592 argument. Adjust code to reflect change.
1593 (parse_probes): Use 'static_probe_ops' instead of
1594 'probe_ops'. Adjust code to reflect change.
1595 (find_probes_in_objfile): Call methods to get name and
1596 provider from probe.
1597 (find_probe_by_pc): Use 'result.prob' instead of
1598 'result.probe'. Call 'get_relocated_address' method from
1600 (collect_probes): Adjust comment and argument list to receive
1601 'static_probe_ops' instead of 'probe_ops'. Adjust code to
1602 reflect change. Call necessary methods from probe.
1603 (compare_probes): Call methods to get name and provider from
1605 (gen_ui_out_table_header_info): Receive 'static_probe_ops'
1606 instead of 'probe_ops'. Use 'std::vector' instead of VEC,
1607 adjust code accordingly.
1608 (print_ui_out_not_applicables): Likewise.
1609 (info_probes_for_ops): Rename to...
1610 (info_probes_for_spops): ...this. Receive 'static_probe_ops'
1611 as argument instead of 'probe_ops'. Adjust code. Call
1612 necessary methods from probe.
1613 (info_probes_command): Use 'info_probes_for_spops'.
1614 (enable_probes_command): Pass correct argument to
1615 'collect_probes'. Call methods from probe.
1616 (disable_probes_command): Likewise.
1617 (get_probe_address): Move to 'any_static_probe_ops::get_address'.
1618 (get_probe_argument_count): Move to
1619 'any_static_probe_ops::get_argument_count'.
1620 (can_evaluate_probe_arguments): Move to
1621 'any_static_probe_ops::can_evaluate_arguments'.
1622 (evaluate_probe_argument): Move to
1623 'any_static_probe_ops::evaluate_argument'.
1624 (probe_safe_evaluate_at_pc): Use 'probe.prob' instead of
1626 (probe_linespec_to_ops): Rename to...
1627 (probe_linespec_to_static_ops): ...this. Adjust code.
1628 (probe_any_is_linespec): Rename to...
1629 (any_static_probe_ops::is_linespec): ...this.
1630 (probe_any_get_probes): Rename to...
1631 (any_static_probe_ops::get_probes): ...this.
1632 (any_static_probe_ops::type_name): New method.
1633 (any_static_probe_ops::gen_info_probes_table_header): New
1635 (compute_probe_arg): Use 'pc_probe.prob' instead of
1636 'pc_probe.probe'. Call methods from probe.
1637 (compile_probe_arg): Likewise.
1638 (std::vector<const probe_ops *> all_probe_ops): Delete.
1639 (std::vector<const static_probe_ops *> all_static_probe_ops):
1641 (_initialize_probe): Use 'all_static_probe_ops' instead of
1643 * probe.h (struct info_probe_column) <field_name>: Delete
1645 (info_probe_column_s): Delete type and VEC.
1646 (struct probe_ops): Delete. Replace with...
1647 (class static_probe_ops): ...this and...
1648 (clas probe): ...this.
1649 (struct bound_probe) <bound_probe>: Delete extraneous
1650 newline. Adjust constructor to receive 'probe' instead of
1652 <probe>: Rename to...
1653 <prob>: ...this. Delete extraneous newline.
1654 <objfile>: Delete extraneous newline.
1655 (register_probe_ops): Delete unused prototype.
1656 (info_probes_for_ops): Rename to...
1657 (info_probes_for_spops): ...this. Adjust comment.
1658 (get_probe_address): Move to 'probe::get_address'.
1659 (get_probe_argument_count): Move to
1660 'probe::get_argument_count'.
1661 (can_evaluate_probe_arguments): Move to
1662 'probe::can_evaluate_arguments'.
1663 (evaluate_probe_argument): Move to 'probe::evaluate_argument'.
1664 * solib-svr4.c (struct svr4_info): Adjust comment.
1665 (struct probe_and_action) <probe>: Rename to...
1667 (register_solib_event_probe): Receive 'probe' instead of
1668 'struct probe' as argument. Use 'prob' instead of 'probe'
1670 (solib_event_probe_action): Call 'get_argument_count' method
1671 from probe. Adjust comment.
1672 (svr4_handle_solib_event): Adjust comment. Call
1673 'evaluate_argument' method from probe.
1674 (svr4_create_probe_breakpoints): Call 'get_relocated_address'
1676 (svr4_create_solib_event_breakpoints): Use 'probe' instead of
1677 'struct probe'. Call 'can_evaluate_arguments' from probe.
1678 * symfile.h: Forward declare 'class probe' instead of 'struct
1680 * symtab.h: Likewise.
1681 (struct symtab_and_line) <probe>: Rename to...
1683 * tracepoint.c (start_tracing): Use 'prob' when applicable.
1685 (stop_tracing): Likewise.
1687 2017-11-22 Joel Brobecker <brobecker@adacore.com>
1689 * ravenscar-thread.c (ravenscar_inferior_created): Remove
1690 trailing newline at end of string in call to warning.
1692 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
1694 * osdata.h: Include vector isntead of vec.h.
1695 (osdata_column_s): Remove typedef.
1696 (struct osdata_column): Add constructor.
1697 <name, value>: Change type to std::string.
1698 (DEF_VEC_O (osdata_column_s)): Remove.
1699 (osdata_item_s): Remove typedef.
1700 (struct osdata_item) <columns>: Change type to std::vector.
1701 (DEF_VEC_O (osdata_item_s)): Remove.
1702 (struct osdata): Add constructor.
1703 <type>: Change type to std::string.
1704 <items>: Change type to std::vector.
1705 (osdata_p): Remove typedef.
1706 (DEF_VEC_P (osdata_p)): Remove.
1707 (osdata_parse): Return a unique_ptr.
1708 (osdata_free): Remove.
1709 (make_cleanup_osdata_free): Remove.
1710 (get_osdata): Return a unique_ptr.
1711 (get_osdata_column): Return pointer to std::string, take a
1712 reference to osdata_item as parameter.
1713 * osdata.c (struct osdata_parsing_data) <osdata>: Change type to
1715 <property_name>: Change type to std::string.
1716 (osdata_start_osdata): Allocate osdata with new and adjust.
1717 (osdata_start_item): Adjust.
1718 (osdata_start_column): Adjust.
1719 (osdata_end_column): Adjust.
1720 (clear_parsing_data): Remove.
1721 (osdata_parse): Return a unique_ptr and adjust, remove cleanup.
1722 (osdata_item_clear): Remove.
1723 (get_osdata): return a unique_ptr and adjust.
1724 (get_osdata_column): Return a pointer to std::string and adjust.
1725 (info_osdata): Adjust.
1726 * mi/mi-main.c: Include <map>.
1727 (free_vector_of_osdata_items): Remove.
1728 (list_available_thread_groups): Adjust, use std::map instead of
1731 2017-11-22 Simon Marchi <simon.marchi@ericsson.com>
1733 * stack.c (iterate_over_block_locals): Add LOC_OPTIMIZED_OUT
1736 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
1738 * varobj.h (DEF_VEC_P (varobj_p)): Remove.
1740 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
1742 * varobj.h (struct varobj_update_result): Add constructor, add
1743 move constructor, disable copy and assign, initialize fields.
1744 <newobj>: Change type to std::vector.
1745 (varobj_update): Return std::vector.
1746 * varobj.c (install_dynamic_child): Change VEC parameters to
1747 std::vector and adjust.
1748 (update_dynamic_varobj_children): Likewise.
1749 (varobj_update): Return std::vector and adjust.
1750 * mi/mi-cmd-var.c (varobj_update_one): Adjust to vector changes.
1752 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
1754 * varobj.h (struct varobj) <parent>: Remove const.
1755 <children>: Change type to std::vector.
1756 (varobj_list_children): Return std::vector const reference.
1757 (varobj_restrict_range): Change parameter type to std::vector
1759 * varobj.c (varobj_has_more): Adjust.
1760 (varobj_restrict_range): Change parameter type to std::vector
1761 const reference and adjust.
1762 (install_dynamic_child): Adjust.
1763 (update_dynamic_varobj_children): Adjust.
1764 (varobj_list_children): Return std::vector const reference and
1766 (varobj_add_child): Adjust.
1767 (update_type_if_necessary): Adjust.
1768 (varobj_update): Adjust.
1769 (delete_variable_1): Adjust.
1770 * ada-varobj.c (ada_value_has_mutated): Adjust.
1771 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust.
1773 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
1775 * varobj.h (struct varobj): Add constructor and destructor,
1777 * varobj.c (struct varobj_root): Initialize fields.
1778 (struct varobj_dynamic): Initialize fields.
1779 (varobj_create): Use unique_ptr instead of cleanup. Create
1780 varobj with new instead of new_root_variable.
1781 (delete_variable_1): Free variable with delete instead of
1783 (create_child_with_value): Create variable with new instead of
1785 (varobj::varobj): New.
1786 (varobj::~varobj): New (body mostly coming from free_variable).
1787 (new_variable): Remove.
1788 (free_variable): Remove.
1789 (do_free_variable_cleanup): Remove.
1790 (make_cleanup_free_variable): Remove.
1792 2017-11-22 Ulrich Weigand <uweigand@de.ibm.com>
1794 * core-regset.c: Remove file.
1795 * Makefile.in (ALLDEPFILES): Remove core-regset.c.
1797 2017-11-22 Ulrich Weigand <uweigand@de.ibm.com>
1799 * NEWS: Document use of GNU MPFR.
1802 * Makefile.in (LIBMPFR): Add define.
1803 (CLIBS): Add $(LIBMPFR).
1804 * configure.ac: Add --with-mpfr configure option.
1805 * configure: Regenerate.
1806 * config.in: Regenerate.
1808 * target-float.c [HAVE_LIBMPFR]: Include <mpfr.h>.
1809 (class mpfr_float_ops): New type.
1810 (mpfr_float_ops::from_target): Two new overloaded functions.
1811 (mpfr_float_ops::to_target): Likewise.
1812 (mpfr_float_ops::to_string): New function.
1813 (mpfr_float_ops::from_string): Likewise.
1814 (mpfr_float_ops::to_longest): Likewise.
1815 (mpfr_float_ops::from_longest): Likewise.
1816 (mpfr_float_ops::from_ulongest): Likewise.
1817 (mpfr_float_ops::to_host_double): Likewise.
1818 (mpfr_float_ops::from_host_double): Likewise.
1819 (mpfr_float_ops::convert): Likewise.
1820 (mpfr_float_ops::binop): Likewise.
1821 (mpfr_float_ops::compare): Likewise.
1822 (get_target_float_ops): Use mpfr_float_ops if available.
1824 2017-11-22 Ulrich Weigand <uweigand@de.ibm.com>
1826 * target-float.c: Do not include <math.h>.
1827 Include <cmath> and <limits>.
1828 (DOUBLEST): Do not define.
1829 (class target_float_ops): New type.
1830 (class host_float_ops): New templated type.
1831 (class decimal_float_ops): New type.
1833 (floatformat_to_doublest): Rename to ...
1834 (host_float_ops<T>::from_target): ... this. Use template type T
1835 instead of DOUBLEST. Use C++ math routines. Update recursive calls.
1836 (host_float_ops<T>::from_target): New overload using a type argument.
1837 (floatformat_from_doublest): Rename to ...
1838 (host_float_ops<T>::to_target): ... this. Use template type T
1839 instead of DOUBLEST. Use C++ math routines. Update recursive calls.
1840 (host_float_ops<T>::to_target): New overload using a type argument.
1841 (floatformat_printf_format): New function.
1842 (struct printf_length_modifier): New templated type.
1843 (floatformat_to_string): Rename to ...
1844 (host_float_ops<T>::to_string): ... this. Use type instead of
1845 floatformat argument. Use floatformat_printf_format and
1846 printf_length_modifier. Remove special handling of invalid numbers,
1847 infinities and NaN (moved to target_float_to_string).
1848 (struct scanf_length_modifier): New templated type.
1849 (floatformat_from_string): Rename to ...
1850 (host_float_ops<T>::from_string): ... this. Use type instead of
1851 floatformat argument. Use scanf_length_modifier.
1852 (floatformat_to_longest): Rename to ...
1853 (host_float_ops<T>::to_longest): ... this. Use type instead of
1854 floatformat argument. Handle out-of-range values deterministically.
1855 (floatformat_from_longest): Rename to ...
1856 (host_float_ops<T>::from_longest): ... this. Use type instead of
1857 floatformat argument.
1858 (floatformat_from_ulongest): Rename to ...
1859 (host_float_ops<T>::from_ulongest): ... this. Use type instead of
1860 floatformat argument.
1861 (floatformat_to_host_double): Rename to ...
1862 (host_float_ops<T>::to_host_double): ... this. Use type instead of
1863 floatformat argument.
1864 (floatformat_from_host_double): Rename to ...
1865 (host_float_ops<T>::from_host_double): ... this. Use type instead of
1866 floatformat argument.
1867 (floatformat_convert): Rename to ...
1868 (host_float_ops<T>::convert): ... this. Use type instead of
1869 floatformat arguments. Remove handling of no-op conversions.
1870 (floatformat_binop): Rename to ...
1871 (host_float_ops<T>::binop): ... this. Use type instead of
1872 floatformat arguments.
1873 (floatformat_compare): Rename to ...
1874 (host_float_ops<T>::compare): ... this. Use type instead of
1875 floatformat arguments.
1877 (match_endianness): Use type instead of length/byte_order arguments.
1878 (set_decnumber_context): Likewise.
1879 (decimal_from_number): Likewise. Update calls.
1880 (decimal_to_number): Likewise.
1881 (decimal_is_zero): Likewise. Update calls. Move to earlier in file.
1882 (decimal_float_ops::to_host_double): New dummy function.
1883 (decimal_float_ops::from_host_double): Likewise.
1884 (decimal_to_string): Rename to ...
1885 (decimal_float_ops::to_string): ... this. Use type instead of
1886 length/byte_order arguments. Update calls.
1887 (decimal_from_string): Rename to ...
1888 (decimal_float_ops::from_string): ... this. Use type instead of
1889 length/byte_order arguments. Update calls.
1890 (decimal_from_longest): Rename to ...
1891 (decimal_float_ops::from_longest): ... this. Use type instead of
1892 length/byte_order arguments. Update calls.
1893 (decimal_from_ulongest): Rename to ...
1894 (decimal_float_ops::from_ulongest): ... this. Use type instead of
1895 length/byte_order arguments. Update calls.
1896 (decimal_to_longest): Rename to ...
1897 (decimal_float_ops::to_longest): ... this. Use type instead of
1898 length/byte_order arguments. Update calls.
1899 (decimal_binop): Rename to ...
1900 (decimal_float_ops::binop): ... this. Use type instead of
1901 length/byte_order arguments. Update calls.
1902 (decimal_compare): Rename to ...
1903 (decimal_float_ops::compare): ... this. Use type instead of
1904 length/byte_order arguments. Update calls.
1905 (decimal_convert): Rename to ...
1906 (decimal_float_ops::convert): ... this. Use type instead of
1907 length/byte_order arguments. Update calls.
1909 (target_float_same_category_p): New function.
1910 (target_float_same_format_p): Likewise.
1911 (target_float_format_length): Likewise.
1912 (enum target_float_ops_kind): New type.
1913 (get_target_float_ops_kind): New function.
1914 (get_target_float_ops): Three new overloaded functions.
1916 (target_float_is_zero): Update call.
1917 (target_float_to_string): Add special handling of invalid numbers,
1918 infinities and NaN (moved from floatformat_to_string). Use
1919 target_float_ops callback.
1920 (target_float_from_string): Use target_float_ops callback.
1921 (target_float_to_longest): Likewise.
1922 (target_float_from_longest): Likewise.
1923 (target_float_from_ulongest): Likewise.
1924 (target_float_to_host_double): Likewise.
1925 (target_float_from_host_double): Likewise.
1926 (target_float_convert): Add special case for no-op conversions.
1927 Use target_float_ops callback.
1928 (target_float_binop): Use target_float_ops callback.
1929 (target_float_compare): Likewise.
1931 2017-11-22 Yao Qi <yao.qi@linaro.org>
1933 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use strcpy.
1935 2017-11-22 Yao Qi <yao.qi@linaro.org>
1937 * cli/cli-decode.c (help_list): Use memcpy instead of strncpy.
1938 * cp-namespace.c (cp_lookup_transparent_type_loop): Likewise.
1940 2017-11-21 Jerome Guitton <guitton@adacore.com>
1942 * ravenscar-thread.c (ravenscar_wait): Update inferior ptid
1943 with event ptid from the lower layer before doing the
1944 ravenscar-specific update.
1946 2017-11-21 Joel Brobecker <brobecker@adacore.com>
1948 * ravenscar-thread.c (is_ravenscar_task): Also verify that
1949 the ptid's TID is nonzero.
1951 2017-11-21 Joel Brobecker <brobecker@adacore.com>
1953 * ada-lang.h (ada_get_tcb_types_info): Add declaration.
1954 * ada-tasks.c (ada_get_tcb_types_info): Renames get_tcb_types_info.
1955 Make non-static. Change return type to char *. Adjust code
1956 accordingly. Rewrite the function's documentation.
1957 (read_atcb): Adjust call to get_tcb_types_info accordingly.
1958 * ravenscar-thread.c (ravenscar_inferior_created): Check that
1959 we have enough debugging information in the runtime to support
1960 Ada task debugging before we enable the ravenscar-thread layer.
1962 2017-11-21 Joel Brobecker <brobecker@adacore.com>
1964 * ada-lang.h (ada_get_task_info_from_ptid): Add declaration.
1965 * ada-tasks.c (ada_get_task_info_from_ptid): New function.
1966 * ravenscar-thread.c: Add into comment.
1967 (base_magic_null_ptid): Delete.
1968 (base_ptid): Change documentation.
1969 (ravenscar_active_task): Renames ravenscar_running_thread.
1970 All callers updated throughout.
1971 (is_ravenscar_task, ravenscar_get_thread_base_cpu): New function.
1972 (ravenscar_task_is_currently_active): Likewise.
1973 (get_base_thread_from_ravenscar_task): Ditto.
1974 (ravenscar_update_inferior_ptid): Adjust to handle multiple CPUs.
1975 (ravenscar_runtime_initialized): Likewise.
1976 (get_running_thread_id): Add new parameter "cpu". Adjust
1977 implementation to handle this new parameter.
1978 (ravenscar_fetch_registers): Small adjustment to use
1979 is_ravenscar_task and ravenscar_task_is_currently_active in
1980 order to decide whether to use the target beneath or this
1982 (ravenscar_store_registers, ravenscar_prepare_to_store): Likewise.
1983 (ravenscar_stopped_by_sw_breakpoint): Use
1984 get_base_thread_from_ravenscar_task to get the underlying
1985 thread, rather than using base_ptid.
1986 (ravenscar_stopped_by_hw_breakpoint, ravenscar_stopped_by_watchpoint)
1987 (ravenscar_stopped_data_address, ravenscar_core_of_thread):
1989 (ravenscar_inferior_created): Do not set base_magic_null_ptid.
1991 2017-11-21 Joel Brobecker <brobecker@adacore.com>
1993 * ada-lang.h (struct ada_task_info) <base_cpu>: New field.
1994 * ada-lang.c (struct atcb_fieldno) <base_cpu>: New field.
1995 (get_tcb_types_info): Set fieldnos.base_cpu.
1996 (read_atcb): Set task_info->base_cpu.
1997 (info_task): Print "Base CPU" info if set by runtime.
1999 2017-11-21 Joel Brobecker <brobecker@adacore.com>
2001 * ravenscar-thread.c (ravenscar_stopped_by_sw_breakpoint)
2002 (ravenscar_stopped_by_hw_breakpoint, ravenscar_stopped_by_watchpoint)
2003 (ravenscar_stopped_data_address, ravenscar_core_of_thread):
2005 (init_ravenscar_thread_ops): Set the to_stopped_by_sw_breakpoint,
2006 to_stopped_by_hw_breakpoint, to_stopped_by_watchpoint,
2007 to_stopped_data_address and to_core_of_thread fields of
2010 2017-11-21 Ulrich Weigand <uweigand@de.ibm.com>
2012 * ppc-tdep.h (enum powerpc_long_double_abi): New data type.
2013 (struct gdbarch_tdep): New member long_double_abi.
2014 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize long_double_abi
2015 member of tdep struct based on Tag_GNU_Power_ABI_FP attribute.
2016 * ppc-linux-tdep.c (ppc_linux_init_abi): Install long double data
2017 format depending on long_double_abi tdep member.
2018 (ppc_floatformat_for_type): Handle __ibm128 type.
2020 2017-11-20 Simon Marchi <simon.marchi@polymtl.ca>
2022 * darwin-nat.c (set_enable_mach_exceptions): Constify parameter.
2024 2017-11-21 Pedro Alves <palves@redhat.com>
2026 * dwarf2read.c (mapped_index::find_name_components_bounds)
2027 <completion mode, upper bound>: Use std::lower_bound instead of
2029 (test_mapped_index_find_name_component_bounds): Remove incorrect
2030 "t1_fund" from expected symbols.
2032 2017-11-21 Pedro Alves <palves@redhat.com>
2034 * dwarf2read.c (mapped_index::name_components_casing): New field.
2035 (mapped_index) <build_name_components,
2036 find_name_components_bounds): Declare new methods.
2037 (mapped_index::find_name_components_bounds)
2038 (mapped_index::build_name_components): New methods, factored out
2039 from dw2_expand_symtabs_matching_symbol.
2040 (check_find_bounds_finds)
2041 (test_mapped_index_find_name_component_bounds): New.
2042 (run_test): Rename to ...
2043 (test_dw2_expand_symtabs_matching_symbol): ... this.
2044 (run_test): Reimplement.
2046 2017-11-21 Pedro Alves <palves@redhat.com>
2048 * cp-name-parser.y (cp_ident_is_alpha, cp_ident_is_alnum): New.
2049 (symbol_end): Use cp_ident_is_alnum.
2050 (yylex): Use cp_ident_is_alpha and cp_ident_is_alnum.
2051 * dwarf2read.c (make_sort_after_prefix_name): New function.
2052 (dw2_expand_symtabs_matching_symbol): Use it.
2053 (test_symbols): Add more symbols.
2054 (run_test): Add tests.
2056 2017-11-17 Tom Tromey <tom@tromey.com>
2058 * symtab.h (enum symbol_subclass_kind): New.
2059 (struct symbol) <is_cplus_template_function, is_rust_vtable>:
2061 <subclass>: New member.
2062 (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): Update.
2063 * rust-lang.c (rust_get_trait_object_pointer): Update.
2064 * dwarf2read.c (read_func_scope): Update.
2065 (read_variable): Update.
2067 2017-11-17 Tom Tromey <tom@tromey.com>
2069 * dwarf2read.c (read_func_scope): Update.
2070 * symtab.h (struct template_symbol): Derive from symbol.
2073 2017-11-17 Tom Tromey <tom@tromey.com>
2075 * symtab.h (struct symbol) <is_rust_vtable>: New member.
2076 (struct rust_vtable_symbol): New.
2077 (find_symbol_at_address): Declare.
2078 * symtab.c (find_symbol_at_address): New function.
2079 * symfile.h (struct quick_symbol_functions)
2080 <find_compunit_symtab_by_address>: New member.
2081 * symfile-debug.c (debug_qf_find_compunit_symtab_by_address): New
2083 (debug_sym_quick_functions): Link to
2084 debug_qf_find_compunit_symtab_by_address.
2085 * rust-lang.c (rust_get_trait_object_pointer): New function.
2086 (rust_evaluate_subexp) <case UNOP_IND>: New case. Call
2087 rust_get_trait_object_pointer.
2088 * psymtab.c (psym_relocate): Clear psymbol_map.
2089 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address): New
2091 (psym_functions): Link to psym_find_compunit_symtab_by_address.
2092 * objfiles.h (struct objfile) <psymbol_map>: New member.
2093 * dwarf2read.c (dwarf2_gdb_index_functions): Update.
2094 (process_die) <DW_TAG_variable>: New case. Call read_variable.
2095 (rust_containing_type, read_variable): New functions.
2097 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
2099 * common/gdb_vecs.h (DEF_VEC_I (int)): Remove.
2101 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
2103 * common/filestuff.c: Include <algorithm>.
2104 (open_fds): Change type to std::vector<int>.
2105 (do_mark_open_fd): Adjust.
2106 (unmark_fd_no_cloexec): Adjust.
2109 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
2111 * breakpoint.c (output_thread_groups): Take an std::vector.
2112 (print_one_breakpoint_location): Adjust.
2114 2017-11-17 Joel Brobecker <brobecker@adacore.com>
2116 * ada-lang.c (resolve_subexp): Add handling of OP_VAR_MSYM_VALUE.
2117 (ada_evaluate_subexp_for_cast): New function.
2118 (ada_evaluate_subexp) <UNOP_CAST>: Replace code by call to
2119 ada_evaluate_subexp_for_cast.
2120 (ada_evaluate_subexp) <nosideret>: Replace code by call to
2122 * eval.c (evaluate_var_value): Make non-static.
2123 (evaluate_var_msym_value, eval_skip_value): Likewise.
2124 * value.h (evaluate_var_value, evaluate_var_msym_value)
2125 (eval_skip_value): Declare.
2127 2017-11-16 Joel Brobecker <brobecker@adacore.com>
2129 * ada-lang.c (ada_value_cast): Remove parameter "noside".
2132 2017-11-16 Pedro Alves <palves@redhat.com>
2134 * python/py-unwind.c (pyuw_sniffer): Translate
2135 PyExc_KeyboardInterrupt to a GDB Quit exception.
2137 2017-11-16 Pedro Alves <palves@redhat.com>
2139 * infrun.c (resume_cleanups): Delete.
2140 (resume): No longer install a resume_cleanups cleanup nor call
2142 (proceed): Pass the terminal to the inferior.
2143 (keep_going_pass_signal): No longer install a resume_cleanups
2146 2017-11-16 Pedro Alves <palves@redhat.com>
2148 * inf-loop.c (inferior_event_handler): Don't swallow the exception
2149 if the prompt is blocked.
2151 2017-11-16 Pedro Alves <palves@redhat.com>
2153 * breakpoint.c (insert_bp_location): Replace bp_err and
2154 bp_err_message locals by a gdb_exception local.
2156 2017-11-16 Pedro Alves <palves@redhat.com>
2158 * inflow.c (scoped_ignore_sigttou): New class.
2159 (child_terminal_ours_1, new_tty): Use it.
2161 2017-11-16 Ulrich Weigand <uweigand@de.ibm.com>
2163 * target-float.c (decimal_from_number): Add byte_order argument and
2164 call match_endianness. Error if unknown floating-point type.
2165 (decimal_to_number): Add byte_order argument and call match_endianness.
2166 (decimal_from_longest): Update call. Do not call match_endianness.
2167 (decimal_from_ulongest): Likewise.
2168 (decimal_binop): Likewise.
2169 (decimal_is_zero): Likewise.
2170 (decimal_compare): Likewise.
2171 (decimal_convert): Likewise.
2173 2017-11-16 Phil Muldoon <pmuldoon@redhat.com>
2175 * python/python.c (gdbpy_rbreak): New function.
2176 * NEWS: Document Python rbreak feature.
2178 2017-11-16 Yao Qi <yao.qi@linaro.org>
2180 * features/tic6x-c62x.xml: Remove.
2181 * features/tic6x-c64x.xml: Remove.
2182 * features/tic6x-c64xp.xml: Remove.
2184 2017-11-15 John Baldwin <jhb@FreeBSD.org>
2186 * symtab.h: Include <array>.
2188 2017-11-15 John Baldwin <jhb@FreeBSD.org>
2190 * bsd-kvm.c (bsd_kvm_cmd): Constify 'arg'.
2191 (bsd_kvm_proc_cmd): Likewise.
2193 2017-11-15 Simon Marchi <simon.marchi@ericsson.com>
2195 * tui/tui-win.c (window_name_completer): Replace VEC with
2198 2017-11-15 Andrew Cagney <cagney@gnu.org>
2200 * MAINTAINERS: Remove no-longer applicable entries.
2202 2017-11-15 Andrew Cagney <cagney@gnu.org>
2204 * MAINTAINERS: Move self to Past Maintainers.
2206 2017-11-15 Yao Qi <yao.qi@linaro.org>
2208 * features/Makefile (XMLTOC): Remove nios2-linux.xml.
2209 * features/nios2-linux.c: Remove.
2210 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Don't call
2211 initialize_tdesc_nios2_linux.
2213 2017-11-15 Yao Qi <yao.qi@linaro.org>
2215 * m68hc11-tdep.c (M68HC11_NUM_REGS): Change it to
2216 M68HC11_LAST_HARD_REG + 1.
2218 2017-11-14 Paul Carroll <pcarroll@codesourcery.com>
2221 * remote.c (remote_write_bytes_aux, remote_read_bytes_1,
2222 remote_read_bytes, remote_write_qxfer, remote_xfer_partial):
2223 Return TARGET_XFER_EOF if size of returned data is 0.
2225 2017-11-14 Simon Marchi <simon.marchi@ericsson.com>
2227 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2228 memory-map-selftests.c.
2229 (SUBDIR_UNITTESTS_OBS): Add memory-map-selftests.o.
2230 * memory-map.c (memory_map_start_memory): Fix computation of hi
2232 * unittests/memory-map-selftests.c: New file.
2234 2017-11-09 Joel Brobecker <brobecker@adacore.com>
2236 * ada-lang.c: Fix some typos in the general command documenting
2237 how Ada expressions are being evaluated and how their result
2240 2017-11-09 Tom Tromey <tom@tromey.com>
2242 * psymtab.c (psymbol_hash): Do not hash string contents.
2243 (psymbol_compare): Add comment.
2245 2017-11-09 Tom Tromey <tom@tromey.com>
2247 * dictionary.c (dict_hash): Move "TKB" check into the "switch".
2249 2017-11-08 Joel Brobecker <brobecker@adacore.com>
2251 * ada-exp.y (write_var_from_sym): Remove parameter
2252 "orig_left_context". Update all callers.
2254 2017-11-08 Simon Marchi <simon.marchi@ericsson.com>
2256 * tracepoint.h (class collection_list) <stringify>: Return
2257 std::vector<std::string>.
2258 (encode_actions_rsp): Change parameters to
2259 std::vector<std::string> *.
2260 * tracepoint.c (collection_list::stringify): Return
2261 std::vector<std::string> and adjust accordingly.
2262 (encode_actions_rsp): Changee parameters to
2263 std::vector<std::string> and adjust accordingly.
2264 * remote.c (free_actions_list),
2265 free_actions_list_cleanup_wrapper): Remove.
2266 (remote_download_tracepoint): Adjust to std::vector.
2268 2017-11-08 Tom Tromey <tom@tromey.com>
2270 * dwarf2read.c (symbolp): Remove typedef.
2271 (read_func_scope): Use std::vector.
2272 (process_structure_scope): Use std::vector.
2274 2017-11-08 Pedro Alves <palves@redhat.com>
2276 * ada-lang.c (ada_make_symbol_completion_list): Use
2277 completion_skip_symbol.
2278 * symtab.c (symbol_is_function_or_method(minimal_symbol*)): New.
2279 (symbol_is_function_or_method(symbol*)): New.
2280 (add_symtab_completions): Add complete_symbol_mode parameter. Use
2281 completion_skip_symbol.
2282 (default_collect_symbol_completion_matches_break_on): Use
2283 completion_skip_symbol. Pass down mode.
2284 (collect_file_symbol_completion_matches): Pass down mode.
2285 * symtab.h (symbol_is_function_or_method): New declarations.
2286 (completion_skip_symbol): New template function.
2288 2017-11-08 Pedro Alves <palves@redhat.com>
2290 * linespec.c (iterate_over_all_matching_symtabs): Add
2291 search_domain parameter. Pass it down to expand_symtabs_matching.
2292 (decode_objc): Request FUNCTIONS_DOMAIN symbols only.
2293 (lookup_prefix_sym): Adjust by passing ALL_DOMAIN as
2295 (add_all_symbol_names_from_pspace): Add search_domain parameter.
2297 (find_method, find_function_symbols): Request FUNCTIONS_DOMAIN
2299 (add_matching_symbols_to_info): Add search_domain parameter. Pass
2302 2017-11-08 Pedro Alves <palves@redhat.com>
2304 * ada-lang.c (ada_make_symbol_completion_list): Remove text and
2305 text_len locals and don't pass them down.
2306 * symtab.c (completion_list_add_name): Remove
2307 sym_text/sym_text_len parameters and adjust.
2308 (completion_list_add_symbol, completion_list_add_msymbol)
2309 (completion_list_objc_symbol, completion_list_add_fields)
2310 (add_symtab_completions): Likewise.
2311 (default_collect_symbol_completion_matches_break_on)
2312 (collect_file_symbol_completion_matches): Remove sym_text_len
2313 local and don't pass it down.
2314 * symtab.h (completion_list_add_name): Remove
2315 sym_text/sym_text_len parameters.
2317 2017-11-08 Pedro Alves <palves@redhat.com>
2319 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2320 unittests/lookup_name_info-selftests.c.
2321 (SUBDIR_UNITTESTS_OBS): Add lookup_name_info-selftests.o.
2322 * cp-support.c: Include "selftest.h".
2323 (cp_remove_params_1): Rename from cp_remove_params. Add
2324 'require_param' parameter, and handle it.
2325 (cp_remove_params): Reimplement.
2326 (cp_remove_params_if_any): New.
2327 (selftests::quote): New.
2328 (selftests::check_remove_params): New.
2329 (selftests::test_cp_remove_params): New.
2330 (_initialize_cp_support): Install
2331 selftests::test_cp_remove_params.
2332 * cp-support.h (cp_remove_params_if_any): Declare.
2333 * dwarf2read.c :Include "selftest.h".
2334 (dw2_expand_symtabs_matching_symbol): Use
2335 lookup_name_info::make_ignore_params.
2336 (selftests::dw2_expand_symtabs_matching::mock_mapped_index)
2337 (selftests::dw2_expand_symtabs_matching::string_or_null)
2338 (selftests::dw2_expand_symtabs_matching::check_match)
2339 (selftests::dw2_expand_symtabs_matching::test_symbols)
2340 (selftests::dw2_expand_symtabs_matching::run_test): New.
2341 (_initialize_dwarf2_read): Register
2342 selftests::dw2_expand_symtabs_matching::run_test.
2343 * psymtab.c (psym_expand_symtabs_matching): Use
2344 lookup_name_info::make_ignore_params.
2345 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info):
2346 If the lookup name wants to ignore parameters, strip them.
2347 (compare_symbol_name): Remove sym_text/sym_text_len parameters and
2349 (completion_list_add_name): Don't pass down sym_text/sym_text_len.
2350 (default_collect_symbol_completion_matches_break_on): Don't try to
2352 * symtab.h (lookup_name_info::lookup_name_info): Add
2353 'ignore_parameters' parameter.
2354 (lookup_name_info::ignore_parameters)
2355 (lookup_name_info::make_ignore_params): New methods.
2356 (lookup_name_info::m_ignore_parameters): New field.
2357 * unittests/lookup_name_info-selftests.c: New file.
2359 2017-11-08 Pedro Alves <palves@redhat.com>
2361 * dwarf2read.c (dw2_expand_marked_cus)
2362 (dw2_expand_symtabs_matching_symbol): Remove forward declarations.
2363 (dw2_expand_symtabs_matching): Move further below.
2364 (dw2_expand_marked_cus): Reindent.
2366 2017-11-08 Pedro Alves <palves@redhat.com>
2368 * dwarf2read.c (byte_swap, MAYBE_SWAP): Move higher up in file.
2369 (struct name_component): New.
2370 (mapped_index::name_components): New field.
2371 (mapped_index::symbol_name_at): New method.
2372 (dwarf2_read_index): Call mapped_index ctor.
2373 (dw2_map_matching_symbols): Add comment about name_components
2375 (dw2_expand_symtabs_matching): Factor part to...
2376 (dw2_expand_symtabs_matching_symbol): ... this new function.
2377 Build name components table, and lookup symbols in it before
2378 calling the name matcher.
2379 (dw2_expand_marked_cus): New, factored out from
2380 dw2_expand_symtabs_matching.
2381 (dwarf2_per_objfile_free): Call the mapped_index's dtor.
2383 2017-11-08 Pedro Alves <palves@redhat.com>
2385 * ada-lang.c (ada_encode): Rename to ..
2386 (ada_encode_1): ... this. Add throw_errors parameter and handle
2388 (ada_encode): Reimplement.
2389 (match_name): Delete, folded into full_name.
2390 (resolve_subexp): No longer pass the encoded name to
2391 ada_lookup_symbol_list.
2392 (should_use_wild_match): Delete.
2393 (name_match_type_from_name): New.
2394 (ada_lookup_simple_minsym): Use lookup_name_info and the
2395 language's symbol_name_matcher_ftype.
2396 (add_symbols_from_enclosing_procs, ada_add_local_symbols)
2397 (ada_add_block_renamings): Adjust to use lookup_name_info.
2398 (ada_lookup_name): New.
2399 (add_nonlocal_symbols, ada_add_all_symbols)
2400 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list)
2401 (ada_iterate_over_symbols): Adjust to use lookup_name_info.
2402 (ada_name_for_lookup): Delete.
2403 (ada_lookup_encoded_symbol): Construct a verbatim name.
2404 (wild_match): Reverse sense of return type. Use bool.
2405 (full_match): Reverse sense of return type. Inline bits of old
2407 (ada_add_block_symbols): Adjust to use lookup_name_info.
2408 (symbol_completion_match): Delete, folded into...
2409 (ada_lookup_name_info::matches): ... .this new method.
2410 (symbol_completion_add): Delete.
2411 (ada_collect_symbol_completion_matches): Add name_match_type
2412 parameter. Adjust to use lookup_name_info and
2413 completion_list_add_name.
2414 (get_var_value, ada_add_global_exceptions): Adjust to use
2416 (ada_get_symbol_name_cmp): Delete.
2417 (do_wild_match, do_full_match): New functions.
2418 (ada_lookup_name_info::ada_lookup_name_info): New method.
2419 (ada_symbol_name_matches, ada_get_symbol_name_matcher): New
2421 (ada_language_defn): Install ada_get_symbol_name_matcher.
2422 * ada-lex.l (processId): If name starts with '<', copy it
2424 * block.c (block_iter_match_step, block_iter_match_first)
2425 (block_iter_match_next, block_lookup_symbol)
2426 (block_lookup_symbol_primary, block_find_symbol): Adjust to use
2428 * block.h (block_iter_match_first, block_iter_match_next)
2429 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use lookup_name_info.
2430 * c-lang.c (c_language_defn, cplus_language_defn)
2431 (asm_language_defn, minimal_language_defn): Adjust comments to
2432 refer to la_get_symbol_name_matcher.
2433 * completer.c (complete_files_symbols)
2434 (collect_explicit_location_matches, symbol_completer): Pass a
2435 symbol_name_match_type down.
2436 * completer.h (class completion_match, completion_match_result):
2438 (completion_tracker::reset_completion_match_result): New method.
2439 (completion_tracker::m_completion_match_result): New field.
2440 * cp-support.c (make_symbol_overload_list_block): Adjust to use
2442 (cp_fq_symbol_name_matches, cp_get_symbol_name_matcher): New
2444 * cp-support.h (cp_get_symbol_name_matcher): New declaration.
2445 * d-lang.c: Adjust comments to refer to
2446 la_get_symbol_name_matcher.
2447 * dictionary.c (dict_vector) <iter_match_first, iter_match_next>:
2448 Adjust to use lookup_name_info.
2449 (dict_iter_match_first, dict_iter_match_next)
2450 (iter_match_first_hashed, iter_match_next_hashed)
2451 (iter_match_first_linear, iter_match_next_linear): Adjust to work
2452 with a lookup_name_info.
2453 * dictionary.h (dict_iter_match_first, dict_iter_match_next):
2455 * dwarf2read.c (dw2_lookup_symbol): Adjust to use lookup_name_info.
2456 (dw2_map_matching_symbols): Adjust to use symbol_name_match_type.
2457 (gdb_index_symbol_name_matcher): New class.
2458 (dw2_expand_symtabs_matching) Adjust to use lookup_name_info and
2459 gdb_index_symbol_name_matcher. Accept a NULL symbol_matcher.
2460 * f-lang.c (f_collect_symbol_completion_matches): Adjust to work
2461 with a symbol_name_match_type.
2462 (f_language_defn): Adjust comments to refer to
2463 la_get_symbol_name_matcher.
2464 * go-lang.c (go_language_defn): Adjust comments to refer to
2465 la_get_symbol_name_matcher.
2466 * language.c (default_symbol_name_matcher)
2467 (language_get_symbol_name_matcher): New functions.
2468 (unknown_language_defn, auto_language_defn): Adjust comments to
2469 refer to la_get_symbol_name_matcher.
2470 * language.h (symbol_name_cmp_ftype): Delete.
2471 (language_defn) <la_collect_symbol_completion_matches>: Add match
2473 <la_get_symbol_name_cmp>: Delete field.
2474 <la_get_symbol_name_matcher>: New field.
2475 <la_iterate_over_symbols>: Adjust to use lookup_name_info.
2476 (default_symbol_name_matcher, language_get_symbol_name_matcher):
2478 * linespec.c (iterate_over_all_matching_symtabs)
2479 (iterate_over_file_blocks): Adjust to use lookup_name_info.
2480 (find_methods): Add language parameter, and use lookup_name_info
2481 and the language's symbol_name_matcher_ftype.
2482 (linespec_complete_function): Adjust.
2483 (lookup_prefix_sym): Use lookup_name_info.
2484 (add_all_symbol_names_from_pspace): Adjust.
2485 (find_superclass_methods): Add language parameter and pass it
2487 (find_method): Pass symbol language down.
2488 (find_linespec_symbols): Don't demangle or Ada encode here.
2489 (search_minsyms_for_name): Add lookup_name_info parameter.
2490 (add_matching_symbols_to_info): Add name_match_type parameter.
2491 Use lookup_name_info.
2492 * m2-lang.c (m2_language_defn): Adjust comments to refer to
2493 la_get_symbol_name_matcher.
2494 * minsyms.c: Include <algorithm>.
2495 (add_minsym_to_demangled_hash_table): Remove table parameter and
2496 add objfile parameter. Use search_name_hash, and add language to
2497 demangled languages vector.
2498 (struct found_minimal_symbols): New struct.
2499 (lookup_minimal_symbol_mangled, lookup_minimal_symbol_demangled):
2501 (lookup_minimal_symbol): Adjust to use them. Don't canonicalize
2502 input names here. Use lookup_name_info instead. Lookup up
2503 demangled names once for each language in the demangled names
2505 (iterate_over_minimal_symbols): Use lookup_name_info. Lookup up
2506 demangled names once for each language in the demangled names
2508 (build_minimal_symbol_hash_tables): Adjust.
2509 * minsyms.h (iterate_over_minimal_symbols): Adjust to pass down a
2511 * objc-lang.c (objc_language_defn): Adjust comment to refer to
2512 la_get_symbol_name_matcher.
2513 * objfiles.h: Include <vector>.
2514 (objfile_per_bfd_storage) <demangled_hash_languages>: New field.
2515 * opencl-lang.c (opencl_language_defn): Adjust comment to refer to
2516 la_get_symbol_name_matcher.
2517 * p-lang.c (pascal_language_defn): Adjust comment to refer to
2518 la_get_symbol_name_matcher.
2519 * psymtab.c (psym_lookup_symbol): Use lookup_name_info.
2520 (match_partial_symbol): Use symbol_name_match_type,
2521 lookup_name_info and psymbol_name_matches.
2522 (lookup_partial_symbol): Use lookup_name_info.
2523 (map_block): Use symbol_name_match_type and lookup_name_info.
2524 (psym_map_matching_symbols): Use symbol_name_match_type.
2525 (psymbol_name_matches): New.
2526 (recursively_search_psymtabs): Use lookup_name_info and
2527 psymbol_name_matches. Rename 'kind' parameter to 'domain'.
2528 (psym_expand_symtabs_matching): Use lookup_name_info. Rename
2529 'kind' parameter to 'domain'.
2530 * rust-lang.c (rust_language_defn): Adjust comment to refer to
2531 la_get_symbol_name_matcher.
2532 * symfile-debug.c (debug_qf_map_matching_symbols)
2533 (debug_qf_map_matching_symbols): Use symbol_name_match_type.
2534 (debug_qf_expand_symtabs_matching): Use lookup_name_info.
2535 * symfile.c (expand_symtabs_matching): Use lookup_name_info.
2536 * symfile.h (quick_symbol_functions) <map_matching_symbols>:
2537 Adjust to use symbol_name_match_type.
2538 <expand_symtabs_matching>: Adjust to use lookup_name_info.
2539 (expand_symtabs_matching): Adjust to use lookup_name_info.
2540 * symmisc.c (maintenance_expand_symtabs): Use
2541 lookup_name_info::match_any ().
2542 * symtab.c (symbol_matches_search_name): New.
2543 (eq_symbol_entry): Adjust to use lookup_name_info and the
2545 (demangle_for_lookup_info::demangle_for_lookup_info): New.
2546 (lookup_name_info::match_any): New.
2547 (iterate_over_symbols, search_symbols): Use lookup_name_info.
2548 (compare_symbol_name): Add language, lookup_name_info and
2549 completion_match_result parameters, and use them.
2550 (completion_list_add_name): Make extern. Add language and
2551 lookup_name_info parameters. Use them.
2552 (completion_list_add_symbol, completion_list_add_msymbol)
2553 (completion_list_objc_symbol): Add lookup_name_info parameters and
2554 adjust. Pass down language.
2555 (completion_list_add_fields): Add lookup_name_info parameters and
2556 adjust. Pass down language.
2557 (add_symtab_completions): Add lookup_name_info parameters and
2559 (default_collect_symbol_completion_matches_break_on): Add
2560 name_match_type parameter, and use it. Use lookup_name_info.
2561 (default_collect_symbol_completion_matches)
2562 (collect_symbol_completion_matches): Add name_match_type
2563 parameter, and pass it down.
2564 (collect_symbol_completion_matches_type): Adjust.
2565 (collect_file_symbol_completion_matches): Add name_match_type
2566 parameter, and use lookup_name_info.
2567 * symtab.h: Include <string> and "common/gdb_optional.h".
2568 (enum class symbol_name_match_type): New.
2569 (class ada_lookup_name_info): New.
2570 (struct demangle_for_lookup_info): New.
2571 (class lookup_name_info): New.
2572 (symbol_name_matcher_ftype): New.
2573 (SYMBOL_MATCHES_SEARCH_NAME): Use symbol_matches_search_name.
2574 (symbol_matches_search_name): Declare.
2575 (MSYMBOL_MATCHES_SEARCH_NAME): Delete.
2576 (default_collect_symbol_completion_matches)
2577 (collect_symbol_completion_matches)
2578 (collect_file_symbol_completion_matches): Add name_match_type
2580 (iterate_over_symbols): Use lookup_name_info.
2581 (completion_list_add_name): Declare.
2582 * utils.c (enum class strncmp_iw_mode): Moved to utils.h.
2583 (strncmp_iw_with_mode): Now extern.
2584 * utils.h (enum class strncmp_iw_mode): Moved from utils.c.
2585 (strncmp_iw_with_mode): Declare.
2587 2017-11-08 Keith Seitz <keiths@redhat.com>
2588 Pedro Alves <palves@redhat.com>
2590 * ada-lang.c (ada_language_defn): Install
2591 default_search_name_hash.
2592 * buildsym.c (struct buildsym_compunit): <language>: New field.
2593 (finish_block_internal): Pass language when creating dictionaries.
2594 (start_buildsym_compunit, start_symtab): New language parameters.
2596 (restart_symtab): Pass down compilation unit's language.
2597 * buildsym.h (enum language): Forward declare.
2598 (start_symtab): New 'language' parameter.
2599 * c-lang.c (c_language_defn, cplus_language_defn)
2600 (asm_language_defn, minimal_language_defn): Install
2601 default_search_name_hash.
2602 * coffread.c (coff_start_symtab): Adjust.
2603 * d-lang.c (d_language_defn): Install default_search_name_hash.
2604 * dbxread.c (struct symloc): Add 'pst_language' field.
2605 (PST_LANGUAGE): Define.
2606 (start_psymtab, read_ofile_symtab): Use it.
2607 (process_one_symbol): New 'language' parameter. Pass it down.
2608 * dictionary.c (struct dictionary) <language>: New field.
2609 (DICT_LANGUAGE): Define.
2610 (dict_create_hashed, dict_create_hashed_expandable)
2611 (dict_create_linear, dict_create_linear_expandable): New parameter
2612 'language'. Set the dictionary's language.
2613 (iter_match_first_hashed): Adjust to rename.
2614 (insert_symbol_hashed): Assert we don't see mismatching
2615 languages. Adjust to rename.
2616 (dict_hash): Rename to ...
2617 (default_search_name_hash): ... this and make extern.
2618 * dictionary.h (struct language_defn): Forward declare.
2619 (dict_create_hashed): New parameter 'language'.
2620 * dwarf2read.c (dwarf2_start_symtab): Pass down language.
2621 * f-lang.c (f_language_defn): Install default_search_name_hash.
2622 * go-lang.c (go_language_defn): Install default_search_name_hash.
2623 * jit.c (finalize_symtab): Pass compunit's language to dictionary
2625 * language.c (unknown_language_defn, auto_language_defn):
2626 * language.h (language_defn::la_search_name_hash): New field.
2627 (default_search_name_hash): Declare.
2628 * m2-lang.c (m2_language_defn): Install default_search_name_hash.
2629 * mdebugread.c (new_block): New parameter 'language'.
2630 * mdebugread.c (parse_symbol): Pass symbol language to block
2632 (psymtab_to_symtab_1): Pass down language.
2633 (new_symtab): Pass compunit's language to block allocation.
2634 * objc-lang.c (objc_language_defn): Install
2635 default_search_name_hash.
2636 * opencl-lang.c (opencl_language_defn):
2637 * p-lang.c (pascal_language_defn): Install
2638 default_search_name_hash.
2639 * rust-lang.c (rust_language_defn): Install
2640 default_search_name_hash.
2641 * stabsread.h (enum language): Forward declare.
2642 (process_one_symbol): Add 'language' parameter.
2643 * symtab.c (search_name_hash): New function.
2644 * symtab.h (search_name_hash): Declare.
2645 * xcoffread.c (read_xcoff_symtab): Pass language to start_symtab.
2647 2017-11-08 Pedro Alves <palves@redhat.com>
2649 * cp-name-parser.y (main): Don't initialize extra_chars.
2651 2017-11-07 Tom Tromey <tom@tromey.com>
2653 * event-top.h (command_handler): Constify.
2654 * record-full.c (cmd_record_full_start): Update.
2655 * thread.c (thread_apply_all_command): Update.
2656 * printcmd.c (eval_command): Update.
2657 * mi/mi-main.c (mi_execute_cli_command): Update.
2658 (mi_execute_async_cli_command): Update.
2659 * tui/tui-stack.c (tui_update_command): Update.
2660 * cli/cli-interp.c (safe_execute_command): Constify.
2661 * record.c (record_start): Update.
2662 (record_start, record_stop, cmd_record_start): Update.
2663 * record-btrace.c (cmd_record_btrace_bts_start): Update.
2664 (cmd_record_btrace_pt_start): Update.
2665 (cmd_record_btrace_start): Update.
2666 (cmd_record_btrace_start): Update.
2667 * reverse.c (exec_reverse_once): Update.
2668 * python/python.c (execute_gdb_command): Don't copy the command.
2669 * event-top.c (command_line_handler): Update.
2670 (command_handler): Constify.
2671 * defs.h (deprecated_call_command_hook): Constify.
2672 * cli/cli-script.h (execute_user_command): Constify.
2673 * cli/cli-script.c (execute_user_command): Constify.
2674 (execute_cmd_pre_hook, execute_cmd_post_hook): Constify.
2675 (enum command_control_type): Update.
2676 * main.c (catch_command_errors): Remove non-const overload.
2677 (catch_command_errors_ftype): Remove.
2678 * python/py-cmd.c (cmdpy_function): Constify.
2679 * guile/scm-cmd.c (cmdscm_function): Constify.
2680 * cli/cli-dump.c (call_dump_func): Constify.
2681 * cli/cli-decode.c (do_const_cfunc): Constify.
2682 (do_sfunc): Constify.
2683 (cmd_func): Constify.
2684 * gdbcmd.h (execute_command, execute_command_to_string): Constify.
2685 * top.h (execute_command): Constify.
2686 * top.c (execute_command): Constify.
2687 (execute_command_to_string): Constify.
2688 (deprecated_call_command_hook): Constify.
2689 * command.h (cmd_func): Constify.
2690 * cli/cli-decode.h (struct cmd_list_element) <func>: Constify.
2692 2017-11-07 Tom Tromey <tom@tromey.com>
2694 * ada-lang.c (catch_ada_exception_command): Constify.
2695 (catch_assert_command): Constify.
2696 * break-catch-throw.c (catch_catch_command, catch_throw_command)
2697 (catch_rethrow_command): Constify.
2698 (catch_exception_command_1): Constify.
2699 * breakpoint.h (add_catch_command): Constify.
2700 * break-catch-syscall.c (catch_syscall_command_1): Constify.
2701 (catch_syscall_split_args): Constify.
2702 * break-catch-sig.c (catch_signal_command): Constify.
2703 (catch_signal_split_args): Constify.
2704 * cli/cli-decode.h (struct cmd_list_element) <function>: Use
2705 cmd_const_sfunc_ftype.
2706 * cli/cli-decode.c (add_setshow_cmd_full): Constify.
2707 (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd)
2708 (add_setshow_boolean_cmd, add_setshow_filename_cmd)
2709 (add_setshow_string_cmd, struct cmd_list_element)
2710 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
2711 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
2712 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd):
2714 (set_cmd_sfunc): Constify.
2715 (empty_sfunc): Constify.
2716 * command.h (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd)
2717 (add_setshow_boolean_cmd, add_setshow_filename_cmd)
2718 (add_setshow_string_cmd, add_setshow_string_noescape_cmd)
2719 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
2720 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
2721 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
2723 (set_cmd_sfunc): Constify.
2724 (cmd_sfunc_ftype): Remove.
2725 * compile/compile.c (set_compile_args): Constify.
2726 * infrun.c (set_disable_randomization): Constify.
2727 * infcmd.c (set_args_command, set_cwd_command): Constify.
2728 * breakpoint.c (set_condition_evaluation_mode): Constify.
2729 (add_catch_command): Constify.
2730 (catch_fork_command_1, catch_exec_command_1)
2731 (catch_load_command_1, catch_unload_command_1): Constify.
2732 (catch_load_or_unload): Constify.
2733 * guile/scm-param.c (pascm_set_func): Constify.
2734 (add_setshow_generic): Constify.
2735 * python/py-param.c (get_set_value): Constify.
2736 * top.h (set_verbose): Constify.
2737 * tui/tui-win.c (tui_set_var_cmd): Constify.
2738 * mi/mi-main.c (set_mi_async_command): Constify.
2739 * cli/cli-logging.c (set_logging_overwrite)
2740 (set_logging_redirect): Constify.
2741 * value.c (set_max_value_size): Constify.
2742 * valprint.c (set_input_radix, set_output_radix): Constify.
2743 * utils.c (set_width_command, set_height_command): Constify.
2744 * typeprint.c (set_print_type_methods, set_print_type_typedefs): Constify.
2745 * tracepoint.c (set_disconnected_tracing)
2746 (set_circular_trace_buffer, set_trace_buffer_size)
2747 (set_trace_user, set_trace_notes, set_trace_stop_notes): Constify.
2748 * top.c (set_history_size_command, set_verbose, set_editing)
2749 (set_gdb_datadir, set_history_filename): Constify.
2750 * target.c (set_targetdebug, maint_set_target_async_command)
2751 (maint_set_target_non_stop_command, set_target_permissions)
2752 (set_write_memory_permission): Constify.
2753 (open_target): Constify.
2754 * target-descriptions.c (set_tdesc_filename_cmd): Constify.
2755 * target-dcache.c (set_stack_cache, set_code_cache): Constify.
2756 * symtab.c (set_symbol_cache_size_handler): Constify.
2757 * symfile.c (set_ext_lang_command): Constify.
2758 * symfile-debug.c (set_debug_symfile): Constify.
2759 * source.c (set_directories_command): Constify.
2760 * solib.c (reload_shared_libraries, gdb_sysroot_changed): Constify.
2761 * serial.c (set_parity): Constify.
2762 * rs6000-tdep.c (powerpc_set_soft_float, powerpc_set_vector_abi): Constify.
2763 * remote.c (set_remote_exec_file, set_remotebreak)
2764 (set_remote_protocol_Z_packet_cmd, set_range_stepping): Constify.
2765 * record.c (set_record_insn_history_size)
2766 (set_record_call_history_size): Constify.
2767 * record-full.c (set_record_full_insn_max_num): Constify.
2768 * proc-api.c (set_procfs_trace_cmd, set_procfs_file_cmd): Constify.
2769 * osabi.c (set_osabi): Constify.
2770 * mips-tdep.c (set_mips64_transfers_32bit_regs)
2771 (reinit_frame_cache_sfunc, mips_abi_update): Constify.
2772 * maint.c (maintenance_set_profile_cmd): Constify.
2773 * linux-thread-db.c (set_libthread_db_search_path): Constify.
2774 * language.c (set_language_command, set_range_command)
2775 (set_case_command): Constify.
2776 * infrun.c (set_non_stop, set_observer_mode)
2777 (set_stop_on_solib_events, set_schedlock_func)
2778 (set_exec_direction_func): Constify.
2779 * infcmd.c (set_inferior_tty_command): Constify.
2780 * disasm.c (set_disassembler_options_sfunc): Constify.
2781 * demangle.c (set_demangling_command): Constify.
2782 * dcache.c (set_dcache_size, set_dcache_line_size): Constify.
2783 * cris-tdep.c (set_cris_version, set_cris_mode)
2784 (set_cris_dwarf2_cfi): Constify.
2785 * corefile.c (set_gnutarget_command): Constify.
2786 * charset.c (set_host_charset_sfunc, set_target_charset_sfunc)
2787 (set_target_wide_charset_sfunc): Constify.
2788 * breakpoint.c (update_dprintf_commands): Constify.
2789 * auto-load.c (set_auto_load_dir, set_auto_load_safe_path): Constify.
2790 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi)
2791 (set_disassembly_style_sfunc): Constify.
2792 * arch-utils.c (set_endian, set_architecture): Constify.
2793 * alpha-tdep.c (reinit_frame_cache_sfunc): Constify.
2794 * agent.c (set_can_use_agent): Constify.
2796 2017-11-07 Tom Tromey <tom@tromey.com>
2798 * go32-nat.c (go32_sysinfo, go32_sldt, go32_sgdt, go32_sidt)
2799 (go32_pde, go32_pte, go32_pte_for_address): Constify.
2800 * gnu-nat.c (_parse_bool_arg, show_thread_default_pause_cmd)
2801 (set_thread_default_pause_cmd, set_thread_default_run_cmd)
2802 (show_thread_default_run_cmd, set_thread_default_detach_sc_cmd)
2803 (parse_int_arg, show_thread_default_detach_sc_cmd)
2804 (set_signals_cmd, show_signals_cmd, set_sig_thread_cmd)
2805 (show_sig_thread_cmd, set_stopped_cmd, show_stopped_cmd)
2806 (set_exceptions_cmd, show_exceptions_cmd, set_task_pause_cmd)
2807 (show_task_pause_cmd, set_task_detach_sc_cmd)
2808 (show_task_detach_sc_cmd, set_task_exc_port_cmd)
2809 (set_noninvasive_cmd, set_thread_pause_cmd)
2810 (show_thread_pause_cmd, set_thread_run_cmd, show_thread_run_cmd)
2811 (set_thread_detach_sc_cmd, show_thread_detach_sc_cmd)
2812 (set_thread_exc_port_cmd, thread_takeover_sc_cmd): Constify.
2813 * windows-nat.c (display_selectors): Constify.
2814 * cli/cli-decode.h (struct cmd_list_element) <function>: Remove
2816 * cli/cli-decode.c (set_cmd_cfunc): Remove non-const overload.
2817 (cmd_cfunc_eq): Likewise.
2818 (struct cmd_list_element): Likewise.
2820 (cli_user_command_p): Update.
2821 * command.h (add_cmd): Remove non-const overload.
2822 (cmd_cfunc_ftype): Remove typedef.
2823 (cmd_cfunc_eq): Remove non-const overload.
2824 * value.c (show_values): Constify.
2825 * thread.c (thread_apply_all_command): Constify.
2826 * symfile.c (load_command): Constify.
2827 * source.c (directory_command): Constify.
2828 * maint.c (maintenance_internal_error)
2829 (maintenance_demangler_warning, maintenance_space_display)
2830 (maintenance_print_architecture, maintenance_translate_address)
2831 (maintenance_info_selftests, maintenance_internal_warning):
2833 * breakpoint.c (disable_trace_command, enable_trace_command):
2835 * auto-load.c (info_auto_load_local_gdbinit, add_auto_load_dir):
2837 (add_auto_load_safe_path): Constify.
2838 * guile/scm-auto-load.c (info_auto_load_guile_scripts): Constify.
2839 * top.h (show_commands): Constify.
2840 * linux-thread-db.c (info_auto_load_libthread_db): Constify.
2841 * sparc64-tdep.c (adi_examine_command): Constify.
2842 (adi_assign_command): Constify.
2844 2017-11-07 Tom Tromey <tom@tromey.com>
2846 * frame.h (info_locals_command, info_args_command): Constify.
2847 * auto-load.h (auto_load_info_scripts): Constify.
2848 * inferior.h (registers_info): Constify.
2849 * copying.c: Rebuild.
2850 * copying.awk: Constify generated commands.
2851 * auto-load.c (auto_load_info_scripts)
2852 (info_auto_load_gdb_scripts): Constify.
2853 * cli/cli-decode.c (struct cmd_list_element): Take a
2854 cmd_const_cfunc_ftype.
2855 * command.h (add_info): Take a cmd_const_cfunc_ftype.
2856 * tui/tui-win.c (tui_all_windows_info): Constify.
2857 * python/py-auto-load.c (info_auto_load_python_scripts):
2859 * cli/cli-cmds.c (show_command): Remove non-const overload.
2860 * tracepoint.c (info_tvariables_command, info_scope_command):
2862 (info_static_tracepoint_markers_command): Constify.
2863 * thread.c (info_threads_command): Constify.
2864 (print_thread_info_1): Constify.
2865 * target.c (info_target_command): Constify.
2866 * symtab.c (info_sources_command, info_functions_command)
2867 (info_types_command): Constify.
2868 (info_variables_command): Remove non-const overload.
2869 * symfile.c (info_ext_lang_command): Constify.
2870 * stack.c (info_frame_command, info_locals_command)
2871 (info_args_command): Constify.
2872 (backtrace_command): Remove non-const overload.
2873 * source.c (info_source_command, info_line_command): Constify.
2874 * solib.c (info_sharedlibrary_command): Constify.
2875 * skip.c (info_skip_command): Constify.
2876 * ser-go32.c (info_serial_command): Constify.
2877 * reverse.c (info_bookmarks_command): Constify.
2878 * printcmd.c (info_symbol_command, info_address_command)
2879 (info_display_command): Constify.
2880 * osdata.c (info_osdata_command): Constify.
2881 * objc-lang.c (info_selectors_command, info_classes_command):
2883 * nto-procfs.c (procfs_pidlist, procfs_meminfo): Constify.
2884 * memattr.c (info_mem_command): Constify.
2885 * macrocmd.c (info_macro_command, info_macros_command): Constify.
2886 * linux-fork.c (info_checkpoints_command): Constify.
2887 * infrun.c (info_signals_command): Constify.
2888 * inflow.c (info_terminal_command): Constify.
2889 * inferior.c (info_inferiors_command): Constify.
2890 (print_inferior): Constify.
2891 * infcmd.c (info_program_command, info_all_registers_command)
2892 (info_registers_command, info_vector_command)
2893 (info_float_command): Constify.
2894 (registers_info): Constify.
2895 * gnu-nat.c (info_send_rights_cmd, info_recv_rights_cmd)
2896 (info_port_sets_cmd, info_dead_names_cmd, info_port_rights_cmd):
2898 * f-valprint.c (info_common_command): Constify.
2899 * dcache.c (info_dcache_command): Constify.
2900 (dcache_info_1): Constify.
2901 * darwin-nat-info.c (info_mach_tasks_command)
2902 (info_mach_task_command, info_mach_ports_command)
2903 (info_mach_port_command, info_mach_threads_command)
2904 (info_mach_thread_command, info_mach_regions_command)
2905 (info_mach_regions_recurse_command, info_mach_region_command)
2906 (info_mach_exceptions_command): Constify.
2907 (get_task_from_args): Constify.
2908 * cp-support.c (info_vtbl_command): Constify.
2909 * breakpoint.c (info_watchpoints_command)
2910 (info_tracepoints_command): Constify.
2911 (info_breakpoints_command): Remove non-const overload.
2912 * avr-tdep.c (avr_io_reg_read_command): Constify.
2913 * auxv.c (info_auxv_command): Constify.
2914 * ada-tasks.c (info_tasks_command): Constify.
2915 (info_task): Constify.
2916 * ada-lang.c (info_exceptions_command): Constify.
2918 2017-11-07 Tom Tromey <tom@tromey.com>
2920 * solib.h (no_shared_libraries): Constify.
2921 * frame.h (return_command): Constify.
2922 * cli/cli-cmds.h (quit_command): Constify.
2923 * top.h (quit_command, execute_command): Constify.
2924 * target.h (flash_erase_command): Constify.
2925 * inferior.h (set_inferior_args, attach_command): Constify.
2926 * tracepoint.h (start_tracing, stop_tracing): Constify.
2927 * breakpoint.h (break_command, tbreak_command)
2928 (hbreak_command_wrapper, thbreak_command_wrapper)
2929 (rbreak_command_wrapper, watch_command_wrapper)
2930 (awatch_command_wrapper, rwatch_command_wrapper)
2931 (get_tracepoint_by_number): Constify.
2932 * symtab.c (info_variables_command, rbreak_command)
2933 (symtab_symbol_info): Constify.
2934 (info_variables_command): Add non-const overload.
2935 * top.c (dont_repeat_command): Constify.
2936 * breakpoint.c (ignore_command, commands_command)
2937 (condition_command, tbreak_command, hbreak_command)
2938 (thbreak_command, clear_command, break_command)
2939 (info_breakpoints_command, watch_command, rwatch_command)
2940 (awatch_command, trace_command, ftrace_command, strace_command)
2941 (trace_pass_command, break_range_command, dprintf_command)
2942 (agent_printf_command, get_tracepoint_by_number)
2943 (watch_maybe_just_location, trace_pass_command): Constify.
2944 (info_breakpoints_command): Add non-const overload.
2945 * tracefile.c (tsave_command): Constify.
2946 * infcmd.c (attach_command, disconnect_command, signal_command)
2947 (queue_signal_command, stepi_command, nexti_command)
2948 (finish_command, next_command, step_command, until_command)
2949 (advance_command, jump_command, continue_command, run_command)
2950 (start_command, starti_command, interrupt_command)
2951 (run_command_1, set_inferior_args, step_1): Constify.
2952 * inferior.c (add_inferior_command, remove_inferior_command)
2953 (clone_inferior_command): Constify.
2954 * linux-fork.c (checkpoint_command, restart_command): Constify.
2955 * windows-nat.c (signal_event_command): Constify.
2956 * guile/guile.c (guile_repl_command, guile_command): Constify.
2957 * printcmd.c (x_command, display_command, printf_command)
2958 (output_command, set_command, call_command, print_command)
2959 (eval_command): Constify.
2960 (non_const_set_command): Remove.
2961 (_initialize_printcmd): Update.
2962 * source.c (forward_search_command, reverse_search_command):
2964 * jit.c (jit_reader_load_command, jit_reader_unload_command):
2966 * infrun.c (handle_command): Constify.
2967 * memattr.c (mem_command): Constify.
2968 * stack.c (return_command, up_command, up_silently_command)
2969 (down_command, down_silently_command, frame_command)
2970 (backtrace_command, func_command, backtrace_command_1): Constify.
2971 (backtrace_command): Add non-const overload.
2972 * remote-sim.c (simulator_command): Constify.
2973 * exec.c (set_section_command): Constify.
2974 * tracepoint.c (tdump_command, trace_variable_command)
2975 (tstatus_command, tstop_command, tstart_command)
2976 (end_actions_pseudocommand, while_stepping_pseudocommand)
2977 (collect_pseudocommand, teval_pseudocommand, actions_command)
2978 (start_tracing, stop_tracing): Constify.
2979 * value.c (init_if_undefined_command): Constify.
2980 * tui/tui-stack.c (tui_update_command): Constify.
2981 * tui/tui-win.c (tui_refresh_all_command)
2982 (tui_set_tab_width_command, tui_set_win_height_command)
2983 (tui_set_focus_command, tui_scroll_forward_command)
2984 (tui_scroll_backward_command, tui_scroll_left_command)
2985 (tui_scroll_right_command, parse_scrolling_args, tui_set_focus)
2986 (tui_set_win_height): Constify.
2987 * tui/tui-layout.c (tui_layout_command): Constify.
2988 * procfs.c (proc_trace_syscalls, proc_trace_sysentry_cmd)
2989 (proc_trace_sysexit_cmd, proc_untrace_sysentry_cmd)
2990 (proc_untrace_sysexit_cmd): Constify.
2991 * remote.c (threadlist_test_cmd, threadinfo_test_cmd)
2992 (threadset_test_cmd, threadlist_update_test_cmd)
2993 (threadalive_test): Constify.
2994 * objc-lang.c (print_object_command): Constify.
2995 * command.h (add_com): Constify.
2996 * cli/cli-dump.c (restore_command): Constify.
2997 * cli/cli-cmds.c (pwd_command, echo_command, quit_command)
2998 (help_command, complete_command, shell_command, edit_command)
2999 (list_command, disassemble_command, make_command)
3000 (apropos_command, alias_command): Constify.
3001 * cli/cli-script.c (document_command, define_command)
3002 (while_command, if_command, validate_comname): Constify.
3003 * cli/cli-decode.c (struct cmd_list_element): Change type of
3005 * target.c (do_monitor_command, flash_erase_command): Constify.
3006 * regcache.c (reg_flush_command): Constify.
3007 * reverse.c (reverse_step, reverse_next, reverse_stepi)
3008 (reverse_nexti, reverse_continue, reverse_finish)
3009 (save_bookmark_command, goto_bookmark_command)
3010 (exec_reverse_once): Constify.
3011 * python/python.c (python_interactive_command, python_command):
3013 * typeprint.c (ptype_command, whatis_command, whatis_exp):
3015 * solib.c (sharedlibrary_command, no_shared_libraries): Constify.
3016 * gcore.c (gcore_command): Constify.
3018 2017-11-07 Tom Tromey <tom@tromey.com>
3020 * printcmd.c (x_command): Call set_repeat_arguments.
3021 * cli/cli-cmds.c (list_command): Call set_repeat_arguments.
3022 * top.c (repeat_arguments): New global.
3023 (set_repeat_arguments): New function.
3024 (execute_command): Handle repeat_arguments.
3025 (show_commands): Calls set_repeat_arguments.
3026 * command.h (set_repeat_arguments): Declare.
3028 2017-11-07 Tom Tromey <tom@tromey.com>
3030 * stack.c (backtrace_command): Use std::string.
3031 (backtrace_command_1): Make "count_exp" const.
3033 2017-11-07 Tom Tromey <tom@tromey.com>
3035 * source.c (directory_switch, mod_path, add_path): Constify.
3036 * defs.h (add_path, mod_path, directory_switch): Constify.
3037 * mi/mi-cmd-env.c (env_mod_path): Constify.
3039 2017-11-07 Tom Tromey <tom@tromey.com>
3041 * infcmd.c (strip_bg_char): Return gdb::unique_xmalloc_ptr.
3042 (run_command_1, continue_command, step_1, jump_command)
3043 (signal_command, until_command, advance_command, finish_command)
3044 (attach_command): Update.
3046 2017-11-07 Tom Tromey <tom@tromey.com>
3048 * command.h (set_cmd_cfunc): Don't declare.
3049 * cli/cli-decode.c (set_cmd_cfunc): Now static.
3051 2017-11-07 Tom Tromey <tom@tromey.com>
3053 * stack.c (select_frame_command): Constify.
3054 * cli/cli-decode.c (add_com_suppress_notification): Constify.
3055 * command.h (add_com_suppress_notification): Constify.
3057 2017-11-07 Tom Tromey <tom@tromey.com>
3059 * breakpoint.c (stop_command): Constify.
3060 * cli/cli-decode.c (struct cmd_list_element): Constify.
3061 * command.h (add_abbrev_prefix_cmd): Constify.
3063 2017-11-07 Pedro Alves <palves@redhat.com>
3065 * breakpoint.c (extract_bp_kind): New enum.
3066 (extract_bp_num, extract_bp_or_bp_range): New functions, partially
3067 factored out from ...
3068 (extract_bp_number_and_location): ... here.
3069 * cli/cli-utils.c (get_number_trailer): Handle '-$variable'.
3071 2017-11-07 Pedro Alves <palves@redhat.com>
3073 * breakpoint.c (extract_bp_number_and_location): Change return
3074 type to void. Throw error instead of warning.
3075 (enable_disable_command): Adjust.
3077 2017-11-07 Xavier Roirand <roirand@adacore.com>
3078 Pedro Alves <palves@redhat.com>
3080 * breakpoint.c (map_breakpoint_number_range): New, factored out
3082 (map_breakpoint_numbers): ... here.
3083 (find_location_by_number): Change parameters from string to
3084 breakpoint number and location.
3085 (extract_bp_number_and_location): New function.
3086 (enable_disable_bp_num_loc)
3087 (enable_disable_breakpoint_location_range)
3088 (enable_disable_command): New functions, factored out ...
3089 (enable_command, disable_command): ... these functions, and
3090 adjusted to support ranges.
3091 * NEWS: Document enable/disable breakpoint location range feature.
3093 2017-11-06 Luis Machado <luis.machado@linaro.org>
3095 * MAINTAINERS (Write After Approval): Update my e-mail address.
3097 2017-11-06 Pedro Alves <palves@redhat.com>
3099 * gnu-nat.c (gnu_terminal_init): Delete.
3100 (gnu_target): Don't install gnu_terminal_init.
3101 * inflow.c (child_terminal_init_with_pgrp): Delete, merged with ...
3102 (child_terminal_init): ... this function.
3104 2017-11-06 Pedro Alves <palves@redhat.com>
3106 * common/common.m4 (GDB_AC_COMMON): No longer check termio.h nor
3108 * config.in, configure: Regenerate.
3110 2017-11-06 Pedro Alves <palves@redhat.com>
3112 * event-top.c: Check SIGTSTP instead of STOP_SIGNAL thoughout.
3113 (async_init_signals): Adjust.
3114 (handle_stop_sig): Rename to ...
3115 (handle_sigtstp): ... this.
3116 (async_stop_sig): Rename to ...
3117 (async_sigtstp_handler): ... this, and delete STOP_SIGNAL !=
3119 * event-top.h: Move signal.h include to the top. Check SIGTSTP
3120 instead of STOP_SIGNAL thoughout.
3121 (handle_stop_sig): Rename to ...
3122 (handle_sigtstp): ... this.
3123 * top.c (command_line_input): Replace STOP_SIGNAL -> SIGTSTP.
3125 2017-11-06 Pedro Alves <palves@redhat.com>
3127 * inflow.c (child_terminal_inferior, child_terminal_ours_1): No
3128 longer set flags twice in row.
3130 2017-11-06 Pedro Alves <palves@redhat.com>
3132 * Makefile.in (SER_HARDWIRE): Update comment.
3133 (HFILES_NO_SRCDIR): Remove gdb_termios.h.
3134 * common/gdb_termios.h: Delete file.
3135 * common/job-control.c: Include termios.h and unistd.h instead of
3137 (gdb_setpgid): Remove HAVE_TERMIOS || TIOCGPGRP preprocessor
3139 (have_job_control): Check HAVE_TERMIOS_H instead of HAVE_TERMIOS.
3141 * configure.ac: No longer check for termio.h and sgtty.h.
3142 * configure: Regenerate.
3143 * inflow.c: Include termios.h instead of gdb_termios.h. Replace
3144 PROCESS_GROUP_TYPE checks with HAVE_TERMIOS_H checks throughout.
3145 Replace PROCESS_GROUP_TYPE references with pid_t references
3147 (gdb_getpgrp): Delete.
3148 (set_initial_gdb_ttystate): Use tcgetpgrp instead of gdb_getpgrp.
3149 (child_terminal_inferior): Remove comment. Remove sgtty code.
3150 (child_terminal_ours_1): Use tcgetpgrp directly instead of
3151 gdb_getpgrp. Use serial_set_tty_state instead aof
3152 serial_noflush_set_tty_state. Remove sgtty code.
3153 * inflow.h: Include unistd.h instead of gdb_termios.h. Replace
3154 PROCESS_GROUP_TYPE check with HAVE_TERMIOS_H check.
3155 (inferior_process_group): Now returns pid_t.
3156 * ser-base.c (ser_base_noflush_set_tty_state): Delete.
3157 * ser-base.h (ser_base_noflush_set_tty_state): Delete.
3158 * ser-event.c (serial_event_ops): Update.
3159 * ser-go32.c (dos_noflush_set_tty_state): Delete.
3161 * ser-mingw.c (hardwire_ops, tty_ops, pipe_ops, tcp_ops): Update.
3162 * ser-pipe.c (pipe_ops): Update.
3163 * ser-tcp.c (tcp_ops): Update.
3164 * ser-unix.c: Include termios.h instead of gdb_termios.h. Remove
3165 HAVE_TERMIOS checks.
3166 [HAVE_TERMIO] (struct hardwire_ttystate): Delete.
3167 [HAVE_SGTTY] (struct hardwire_ttystate): Delete.
3168 (get_tty_state, set_tty_state): Drop termio and sgtty code, and
3170 (hardwire_noflush_set_tty_state): Delete.
3171 (hardwire_print_tty_state, hardwire_drain_output)
3172 (hardwire_flush_output, hardwire_flush_input)
3173 (hardwire_send_break, hardwire_raw, hardwire_setbaudrate)
3174 (hardwire_setstopbits, hardwire_setparity): Drop termio and sgtty
3175 code, and assume termios.
3176 (hardwire_ops): Update.
3177 (_initialize_ser_hardwire): Remove HAVE_TERMIOS check.
3178 * serial.c (serial_noflush_set_tty_state): Delete.
3179 * serial.h (serial_noflush_set_tty_state): Delete.
3180 (serial_ops::noflush_set_tty_state): Delete.
3182 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3184 * Makefile.in (SFILES): Remove doublest.c and dfp.c.
3185 (HFILES_NO_SRCDIR): Remove doublest.h and dfp.h.
3186 (COMMON_OBS): Remove doublest.o and dfp.o.
3187 Do not build target-float.c (instead of doublest.c)
3188 with -Wformat-nonliteral.
3190 * doublest.c: Remove file.
3191 * doublest.h: Remove file.
3192 * dfp.c: Remove file.
3193 * dfp.h: Remove file.
3195 * target-float.c: Do not include "doublest.h" and "dfp.h".
3196 (DOUBLEST): Move here from doublest.h.
3197 (enum float_kind): Likewise.
3198 (FLOATFORMAT_CHAR_BIT): Likewise.
3199 (FLOATFORMAT_LARGEST_BYTES): Likewise.
3200 (floatformat_totalsize_bytes): Move here from doublest.c. Make static.
3201 (floatformat_precision): Likewise.
3202 (floatformat_normalize_byteorder, get_field, put_field): Likewise.
3203 (floatformat_is_negative, floatformat_classify, floatformat_mantissa):
3205 (host_float_format, host_double_format, host_long_double_format):
3207 (floatformat_to_string, floatformat_from_string): Likewise.
3208 (floatformat_to_doublest): Likewise. Also, inline the original
3209 convert_floatformat_to_doublest.
3210 (floatformat_from_doublest): Likewise. Also, inline the original
3211 convert_floatformat_from_doublest.
3213 Include "dpd/decimal128.h", "dpd/decimal64.h", and "dpd/decimal32.h".
3214 (MAX_DECIMAL_STRING): Move here from dfp.c.
3215 (match_endianness): Likewise.
3216 (set_decnumber_context, decimal_check_errors): Likewise.
3217 (decimal_from_number, decimal_to_number): Likewise.
3218 (decimal_to_string, decimal_from_string): Likewise. Make static.
3219 (decimal_from_longest, decimal_from_ulongest): Likewise.
3220 (decimal_to_longest): Likewise.
3221 (decimal_binop, decimal_is_zero, decimal_compare): Likewise.
3222 (decimal_convert): Likewise.
3224 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3226 * doublest.c: Do not include "gdbtypes.h".
3227 (extract_typed_floating): Remove.
3228 (store_typed_floating): Remove.
3229 (convert_typed_floating): Remove.
3230 * doublest.h (struct type): Remove.
3231 (DOUBLEST_PRINT_FORMAT): Remove.
3232 (DOUBLEST_SCAN_FORMAT): Remove.
3233 (extract_typed_floating): Remove.
3234 (store_typed_floating): Remove.
3235 (convert_typed_floating): Remove.
3237 * dfp.c (decimal_from_doublest): Remove.
3238 (decimal_to_doublest): Remove.
3239 * dfp.h: Do not include "doublest.h".
3240 (decimal_from_doublest): Remove.
3241 (decimal_to_doublest): Remove.
3243 * value.c: Do not include "doublest.h" and "dfp.h".
3244 (value_as_double): Remove.
3245 (unpack_double): Remove.
3246 (value_from_double): Remove.
3247 (value_from_decfloat): Remove.
3248 * value.h: Do not include "doublest.h".
3249 (value_as_double): Remove.
3250 (unpack_double): Remove.
3251 (value_from_double): Remove.
3252 (value_from_decfloat): Remove.
3254 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3256 * i386-tdep.c: Include "target-float.h". Do not include "doublest.h".
3257 (i386_extract_return_value): Use target_float_convert.
3258 (i386_store_return_value): Likewise.
3259 * i387-tdep.c (i387_register_to_value): Use target_float_convert.
3260 (i387_value_to_register): Likewise.
3261 * ia64-tdep.c: Include "target-float.h". Do not include "doublest.h".
3262 (ia64_register_to_value): Use target_float_convert.
3263 (ia64_value_to_register): Likewise.
3264 (ia64_extract_return_value): Likewise.
3265 (ia64_store_return_value): Likewise.
3266 (ia64_push_dummy_call): Likewise.
3267 * m68k-tdep.c: Include "target-float.h".
3268 (m68k_register_to_value): Use target_float_convert.
3269 (m68k_value_to_register): Likewise.
3270 (m68k_svr4_extract_return_value): Likewise.
3271 (m68k_svr4_store_return_value): Likewise.
3272 * ppc-sysv-tdep.c: Include "target-float.h".
3273 (ppc_sysv_abi_push_dummy_call): Use target_float_convert.
3274 (do_ppc_sysv_return_value): Likewise.
3275 (ppc64_sysv_abi_push_freg): Likewise.
3276 (ppc64_sysv_abi_return_value_base): Likewise.
3277 * rs6000-aix-tdep.c: Include "target-float.h".
3278 (rs6000_push_dummy_call): Use target_float_convert.
3279 (rs6000_return_value): Likewise.
3280 * rs6000-lynx178-tdep.c: Include "target-float.h".
3281 (rs6000_lynx178_push_dummy_call): Use target_float_convert.
3282 (rs6000_lynx178_return_value): Likewise.
3283 * rs6000-tdep.c: Include "target-float.h". Do not include "doublest.h".
3284 (rs6000_register_to_value): Use target_float_convert.
3285 (rs6000_value_to_register): Likewise.
3286 * arm-tdep.c: Include "target-float.h". Do not include "doublest.h".
3287 (arm_extract_return_value): Use target_float_convert.
3288 (arm_store_return_value): Likewise.
3289 * sh-tdep.c: Include "target-float.h". Do not include "doublest.h".
3290 (sh_register_convert_to_virtual): Use target_float_convert.
3291 (sh_register_convert_to_raw): Likewise.
3292 * sh64-tdep.c: Include "target-float.h".
3293 (sh64_extract_return_value): Use target_float_convert.
3294 (sh64_register_convert_to_virtual): Likewise.
3295 (sh64_register_convert_to_raw): Likewise. Fix argument types.
3297 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3299 * target-float.c (floatformat_to_host_double): New function.
3300 (floatformat_from_host_double): Likewise.
3301 (target_float_to_host_double): Likewise.
3302 (target_float_from_host_double): Likewise.
3303 * target-float.h (target_float_to_host_double): Add prototype.
3304 (target_float_from_host_double): Likewise.
3306 * guile/scm-value.c: Include "target-float.h".
3307 (gdbscm_value_to_real): Use target_float_to_host_double.
3308 Handle integer source values via value_as_long.
3309 * guile/scm-math.c: Include "target-float.h". Do not include
3310 "doublest.h", "dfp.h", and "expression.h".
3311 (vlscm_convert_typed_number): Use target_float_from_host_double.
3312 (vlscm_convert_number): Likewise.
3314 * python/py-value.c (valpy_float): Use target_float_to_host_double.
3315 (convert_value_from_python): Use target_float_from_host_double.
3317 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3319 * ada-lang.c (cast_to_fixed): Reimplement in target arithmetic.
3320 (cast_from_fixed): Likewise.
3321 (ada_scaling_type): New function.
3322 (ada_delta): Return value instead of DOUBLEST. Perform target
3323 arithmetic instead of host arithmetic.
3324 (scaling_factor): Rename to ...
3325 (ada_scaling_factor) ... this. Make non-static. Return value instead
3326 of DOUBLEST. Perform target arithmetic instead of host arithmetic.
3327 (ada_fixed_to_float): Remove.
3328 (ada_float_to_fixed): Remove.
3329 * ada-lang.h (ada_fixed_to_float): Remove.
3330 (ada_float_to_fixed): Remove.
3331 (ada_delta): Return value instead of DOUBLEST.
3332 (ada_scaling_factor): Add prototype.
3334 * ada-typeprint.c: Include "target-float.h".
3335 (print_fixed_point_type): Perform target arithmetic instead of
3337 * ada-valprint.c: Include "target-float.h".
3338 (ada_val_print_num): Perform target arithmetic instead of
3339 host arithmetic for fixed-point types.
3341 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3343 * target-float.c: Include <math.h>.
3344 (floatformat_binop): New function.
3345 (floatformat_compare): Likewise.
3346 (target_float_binop): Likewise.
3347 (target_float_compare): Likewise.
3348 * target-float.h: Include "expression.h".
3349 (target_float_binop): Add prototype.
3350 (target_float_compare): Likewise.
3352 * valarith.c: Do not include "doublest.h" and "dfp.h".
3353 Include "common/byte-vector.h".
3354 (value_args_as_decimal): Remove, replace by ...
3355 (value_args_as_target_float): ... this function. Handle both
3356 binary and decimal target floating-point formats.
3357 (scalar_binop): Handle both binary and decimal FP using
3358 value_args_as_target_float and target_float_binop.
3359 (value_equal): Handle both binary and decimal FP using
3360 value_args_as_target_float and target_float_compare.
3361 (value_less): Likewise.
3362 (value_pos): Handle all scalar types as simple copy.
3363 (value_neg): Handle all scalar types via BINOP_SUB from 0.
3364 * dfp.c (decimal_binop): Throw error instead of internal_error
3365 when called with an unsupported operation code.
3367 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3369 * target-float.c (target_float_to_string): New function.
3370 (target_float_from_string): New function.
3371 * target-float.h (target_float_to_string): Add prototype.
3372 (target_float_from_string): Add prototype.
3374 * valprint.c: Include "target-float.h". Do not include
3375 "doublest.h" and "dfp.h".
3376 (print_floating): Use target_float_to_string.
3377 * printcmd.c: Include "target-float.h". Do not include "dfp.h".
3378 (printf_floating): Use target_float_to_string.
3379 * i387-tdep.c: Include "target-float.h". Do not include "doublest.h".
3380 (print_i387_value): Use target_float_to_string.
3381 * mips-tdep.c: Include "target-float.h".
3382 (mips_print_fp_register): Use target_float_to_string.
3383 * sh64-tdep.c: Include "target-float.h".
3384 (sh64_do_fp_register): Use target_float_to_string.
3386 * parse.c: Include "target-float.h". Do not include
3387 "doublest.h" and "dfp.h".
3388 (parse_float): Use target_float_from_string.
3389 * stabsread.c: Include "target-float.h". Do not include "doublest.h".
3390 (define_symbol): Use target_float_from_string.
3391 * gdbarch-selftests.c: Include "target-float.h".
3392 (register_to_value_test): Use target_float_from_string.
3394 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3396 * Makefile.c (SFILES): Add target-float.c.
3397 (HFILES_NO_SRCDIR): Add target-float.h.
3398 (COMMON_OBS): Add target-float.o.
3399 * target-float.h: New file.
3400 * target-float.c: New file.
3402 * doublest.c (floatformat_classify): Fix detection of float_zero.
3404 * gdbtypes.c (is_floating_type): New function.
3405 * gdbtypes.h (is_floating_type): Add prototype.
3407 * value.c: Do not include "floatformat.h".
3408 (unpack_double): Use target_float_is_valid.
3409 (is_floating_value): New function.
3410 * value.h (is_floating_value): Add prototype-
3412 * valarith.c: Include "target-float.h".
3413 (value_logical_not): Use target_float_is_zero.
3415 * python/py-value.c: Include "target-float.h".
3416 (valpy_nonzero): Use target_float_is_zero.
3418 2017-11-04 Tom Tromey <tom@tromey.com>
3420 * h8300-tdep.c (h8300_push_dummy_call): Use std::vector.
3422 2017-11-04 Tom Tromey <tom@tromey.com>
3424 * breakpoint.c (set_momentary_breakpoint): Return
3426 (until_break_command): Update.
3427 (new_until_break_fsm): Change argument types to
3429 (set_momentary_breakpoint_at_pc): Return breakpoint_up.
3430 (do_delete_breakpoint_cleanup, make_cleanup_delete_breakpoint):
3432 * infcmd.c (finish_forward): Update.
3433 * breakpoint.h (set_momentary_breakpoint)
3434 (set_momentary_breakpoint_at_pc): Return breakpoint_up.
3435 (make_cleanup_delete_breakpoint): Remove.
3436 (struct breakpoint_deleter): New.
3437 (breakpoint_up): New typedef.
3438 * infrun.c (insert_step_resume_breakpoint_at_sal_1): Update.
3439 (insert_exception_resume_breakpoint): Update.
3440 (insert_exception_resume_from_probe): Update.
3441 (insert_longjmp_resume_breakpoint): Update.
3442 * arm-linux-tdep.c (arm_linux_copy_svc): Update.
3443 * elfread.c (elf_gnu_ifunc_resolver_stop): Update.
3444 * infcall.c (call_function_by_hand_dummy): Update
3446 2017-11-04 Tom Tromey <tom@tromey.com>
3448 * c-typeprint.c (c_type_print_base): Use gdb::unique_xmalloc_ptr.
3450 2017-11-04 Tom Tromey <tom@tromey.com>
3452 * linux-tdep.c (linux_core_info_proc_mappings): Use
3454 (linux_get_siginfo_data): Return gdb::byte_vector. Remove
3456 (linux_corefile_thread): Update.
3457 (linux_make_corefile_notes): Remove unused variable.
3459 2017-11-04 Tom Tromey <tom@tromey.com>
3461 * ppc-linux-tdep.c (ppc_linux_get_syscall_number): Use
3464 2017-11-04 Tom Tromey <tom@tromey.com>
3466 * objfiles.c (do_free_objfile_cleanup): Remove.
3467 * compile/compile-object-load.c (compile_object_load): Update.
3468 * objfiles.h (make_cleanup_free_objfile): Remove.
3470 2017-11-04 Tom Tromey <tom@tromey.com>
3472 * sparc64-tdep.c (do_examine): Use gdb::def_vector.
3473 (adi_read_versions): Change "tags" to "gdb_byte *".
3474 (adi_print_versions): Likewise.
3476 2017-11-04 Tom Tromey <tom@tromey.com>
3479 (scoped_rbreak_breakpoints::scoped_rbreak_breakpoints): Rename
3480 from start_rbreak_breakpoints.
3481 (scoped_rbreak_breakpoints): Rename from end_rbreak_breakpoints.
3482 * breakpoint.h (class scoped_rbreak_breakpoints): New.
3483 (start_rbreak_breakpoints, end_rbreak_breakpoints): Remove.
3484 * symtab.c (do_end_rbreak_breakpoints): Remove.
3485 (rbreak_command): Use scoped_rbreak_breakpoints, std::string.
3487 2017-11-04 Tom Tromey <tom@tromey.com>
3489 * cp-namespace.c (reset_directive_searched): Remove.
3490 (cp_lookup_symbol_via_imports): Use scoped_restore.
3491 * cp-support.c (reset_directive_searched): Remove.
3492 (make_symbol_overload_list_using): Use scoped_restore.
3493 * d-namespace.c (d_lookup_symbol_imports): Use scoped_restore.
3494 (reset_directive_searched): Remove.
3496 2017-11-04 Tom Tromey <tom@tromey.com>
3498 * symfile.c (find_separate_debug_file_by_debuglink): Use
3501 2017-11-04 Tom Tromey <tom@tromey.com>
3503 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
3505 (compute_stack_depth): Likewise.
3506 (do_compile_dwarf_expr_to_c): Use std::vector.
3508 2017-11-04 Tom Tromey <tom@tromey.com>
3510 * compile/compile-object-load.c (link_callbacks_einfo): Use
3513 2017-11-04 Tom Tromey <tom@tromey.com>
3515 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
3516 Use scoped_free_pendings.
3517 * dbxread.c (dbx_symfile_read, dbx_psymtab_to_symtab_1): Use
3518 scoped_free_pendings.
3519 * xcoffread.c (xcoff_psymtab_to_symtab_1): Use scoped_free_pendings.
3520 (xcoff_initial_scan): Likewise.
3521 * buildsym.c (reset_symtab_globals): Update comment.
3522 (scoped_free_pendings): Rename from really_free_pendings.
3523 (prepare_for_building): Update comment.
3524 (buildsym_init): Likewise.
3525 * buildsym.h (class scoped_free_pendings): New class.
3526 (really_free_pendings): Don't declare.
3528 2017-11-03 Ulrich Weigand <uweigand@de.ibm.com>
3530 * doublest.c (convert_doublest_to_floatformat): Fix uninitialized
3531 output when converting a zero value to a special byteorder format.
3533 2017-11-02 Yao Qi <yao.qi@linaro.org>
3535 * frame.c (do_frame_register_read): Remove aspace.
3536 * jit.c (jit_frame_sniffer): Likwise.
3537 * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
3538 * regcache.c (regcache::regcache): Pass nullptr.
3539 (regcache_print): Caller updated.
3540 * regcache.h (regcache::regcache): Remove one constructor
3543 2017-11-02 Yao Qi <yao.qi@linaro.org>
3545 * regcache.h (regcache) <m_readonly_p>: Change it to const bool.
3547 2017-11-02 Yao Qi <yao.qi@linaro.org>
3549 * breakpoint.c (insert_single_step_breakpoints): Update.
3550 * frame.c (struct frame_info) <aspace>: Add const.
3551 (frame_save_as_regcache): Add const.
3552 (get_frame_address_space): Return const address_space *.
3553 * frame.h (get_frame_address_space): Update declaration.
3554 * infrun.c (struct step_over_info) <aspace>: Add const.
3555 (set_step_over_info): Make aspace const.
3556 (displaced_step_prepare_throw): Change variable const.
3558 (proceed): Likewise.
3559 (adjust_pc_after_break): Likewise.
3560 (save_waitstatus): Likewise.
3561 (handle_signal_stop): Likewise.
3562 (keep_going_pass_signal): Likewise.
3563 * jit.c (jit_frame_sniffer): Add const.
3564 * mips-tdep.c (mips_single_step_through_delay): Likewise.
3565 * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
3566 * record-full.c (record_full_wait_1): Likewise.
3567 * regcache.c (regcache::regcache): Change parameter to const.
3568 * regcache.h (regcache::regcache): Likewise.
3569 (regcache::aspace): Return const address_space *.
3570 (regcache) <m_aspace>: Add const.
3572 2017-11-02 Yao Qi <yao.qi@linaro.org>
3574 * darwin-nat.c (cancel_breakpoint): Use regcache->aspace ().
3575 * frame.c (create_sentinel_frame): Likewise.
3576 * infrun.c (displaced_step_prepare_throw): Likewise.
3578 (thread_still_needs_step_over_bp): Likewise.
3579 (proceed): Likewise.
3580 (do_target_wait): Likewise.
3581 (adjust_pc_after_break): Likewise.
3582 (handle_syscall_event): Likewise.
3583 (save_waitstatus): Likewise.
3584 (handle_inferior_event_1): Likewise.
3585 (handle_signal_stop): Likewise.
3586 (keep_going_pass_signal): Likewise.
3587 * linux-nat.c (status_callback): Likewise.
3588 (save_stop_reason): Likewise.
3589 (resume_stopped_resumed_lwps): Likewise.
3590 * record-full.c (record_full_exec_insn): Likewise.
3591 (record_full_wait_1): Likewise.
3592 * regcache.c (get_regcache_aspace): Remove.
3593 * regcache.h (get_regcache_aspace): Remove.
3595 2017-11-02 Yao Qi <yao.qi@linaro.org>
3597 * regcache.c (struct regcache_descr) <nr_raw_registers>: Remove.
3598 (init_regcache_descr): Use gdbarch_num_regs.
3599 (regcache::regcache): Likewise.
3600 (regcache::get_register_status): Likewise.
3601 (regcache::assert_raw_regnum): Likewise.
3602 (regcache::cooked_read): Likewise.
3603 (regcache::cooked_read_value): Likewise.
3604 (regcache::cooked_write): Likewise.
3605 (regcache::dump): Likewise.
3606 (regcache::num_raw_registers): New method.
3607 * regcache.h (class regcache) <num_raw_registers>: New.
3609 2017-11-02 Yao Qi <yao.qi@linaro.org>
3611 * regcache.c (regcache::assert_regnum): New method.
3612 (regcache::invalidate): Call assert_regnum.
3613 (regcache::raw_update): Likewise.
3614 (regcache::raw_write): Likewise.
3615 (regcache::raw_read_part): Likewise.
3616 (regcache::raw_write_part): Likewise.
3617 (regcache::raw_supply): Likewise.
3618 (regcache::raw_supply_integer): Likewise.
3619 (regcache::raw_supply_zeroed): Likewise.
3620 (regcache::raw_collect): Likewise.
3621 (regcache::raw_collect_integer): Likewise.
3622 * regcache.h (regcache::assert_regnum): Declare.
3624 2017-11-02 Yao Qi <yao.qi@linaro.org>
3626 * regcache.c (regcache::dump): Remove code.
3628 2017-11-02 Yao Qi <yao.qi@linaro.org>
3630 * regcache.c (struct regcache_descr) <sizeof_raw_register_status>:
3632 <sizeof_cooked_register_status>: Remove.
3633 (init_regcache_descr): Update.
3634 (regcache::regcache): Use nr_cooked_registers and nr_raw_registers.
3635 (regcache::save): Likewise.
3636 (regcache::dump): Likewise.
3638 2017-11-01 James Bowman <james.bowman@ftdichip.com>
3640 * ft32-tdep.c (ft32_fetch_instruction): New function.
3641 (ft32_analyze_prologue): Use ft32_fetch_instruction().
3643 2017-10-31 Simon Marchi <simon.marchi@polymtl.ca>
3645 * cli/cli-script.c (execute_control_command): Rename to ...
3646 (execute_control_command_1): ... this.
3647 (execute_control_command): New function.
3649 2017-10-31 Simon Marchi <simon.marchi@ericsson.com>
3651 * tracepoint.c (tfind_command): Remove const_cast.
3653 2017-10-30 Mike Gulick <mgulick@mathworks.com>
3655 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to gdb.h.
3657 2017-10-30 Simon Marchi <simon.marchi@ericsson.com>
3659 * common/common-utils.h (in_inclusive_range): New function.
3660 * arm-tdep.c (arm_record_extension_space): Use
3662 (thumb_record_ld_st_reg_offset): Use in_inclusive_range.
3663 * cris-tdep.c (cris_spec_reg_applicable): Use
3666 2017-10-30 Pedro Alves <palves@redhat.com>
3667 Simon Marchi <simon.marchi@ericsson.com>
3669 * remote.c (remote_set_syscall_catchpoint): Build a std::string
3670 instead of a gdb::unique_xmalloc_ptr, using string_appendf.
3672 2017-10-30 Pedro Alves <palves@redhat.com>
3674 * common/common-utils.c (string_appendf, string_vappendf): New
3676 * common/common-utils.h (string_appendf, string_vappendf): New
3678 * unittests/common-utils-selftests.c (string_appendf_func)
3679 (test_appendf_func, string_vappendf_wrapper, string_appendf_tests)
3680 (string_vappendf_tests): New functions.
3681 (_initialize_common_utils_selftests): Register "string_appendf" and
3682 "string_vappendf tests".
3684 2017-10-30 Pedro Alves <palves@redhat.com>
3686 * unittests/common-utils-selftests.c (format_func): New typedef.
3687 (string_printf_tests, string_vprintf_tests): Tests factored out
3689 (test_format_func): ... this new function.
3690 (string_printf_tests, string_vprintf_tests): Reimplement on top of
3693 2017-10-29 Simon Marchi <simon.marchi@ericsson.com>
3695 * darwin-nat.c: Remove include of gdb.h.
3697 2017-10-29 Simon Marchi <simon.marchi@ericsson.com>
3699 * xtensa-xtregs.c: Fix formatting issues.
3701 2017-10-29 Simon Marchi <simon.marchi@ericsson.com>
3703 * xtensa-xtregs.c (xtensa_regtable_t) <name>: Constify.
3705 2017-10-28 Maksim Dzabraev <dzabraew@gmail.com>
3708 * python/py-infthread.c (thpy_get_inferior): Increment reference
3709 of inferior before returning it.
3711 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3713 * unittests/common-utils-selftests.c (format): Add
3716 2017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
3718 * xml-syscall.c (struct syscall_desc): Add constructor.
3719 <name>: Change type to std::string.
3720 (syscall_desc_up): New typedef.
3721 (syscall_desc_p): Remove typeder.
3722 (DEF_VEC_P(syscall_desc_p)): Remove.
3723 (struct syscall_group_desc): Add constructor.
3724 <name>: Change type to std::string.
3725 <syscalls>: Change type to std::vector.
3726 (syscall_group_desc_up): New typedef.
3727 (syscall_group_desc_p): Remove typedef.
3728 (DEF_VEC_P(syscall_group_desc_p)): Remove.
3729 (struct syscalls_info) <syscalls>: Change type to std::vector of
3732 <my_gdb_datadir>: Change type to std::string.
3733 (syscalls_info_up): New typedef.
3734 (allocate_syscalls_info): Remove.
3735 (syscalls_info_free_syscalls_desc): Remove.
3736 (syscalls_info_free_syscall_group_desc): Remove.
3737 (free_syscalls_info): Remove.
3738 (make_cleanup_free_syscalls_info): Remove.
3739 (syscall_group_create_syscall_group_desc): Adjust.
3740 (syscall_group_add_syscall): Adjust.
3741 (syscall_create_syscall_desc): Adjust.
3742 (syscall_parse_xml): Adjust, use unique_ptr instead of cleanup.
3743 (init_syscalls_info): Adjust.
3744 (syscall_group_get_group_by_name): Adjust.
3745 (xml_get_syscall_number): Adjust.
3746 (xml_get_syscall_name): Adjust.
3747 (xml_list_of_syscalls): Adjust.
3748 (xml_list_syscalls_by_group): Adjust.
3749 (xml_list_of_groups): Adjust.
3751 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3753 * probe.h: Don't include gdb_vecs.h.
3754 (DEF_VEC_P (probe_p)): Remove.
3755 (find_probes_in_objfile): Return an std::vector.
3756 * probe.c (find_probes_in_objfile): Likewise.
3757 * breakpoint.c (breakpoint_objfile_data)
3758 <longjmp_probes>: Change type to std::vector.
3759 <exception_probes>: Likewise.
3760 (free_breakpoint_probes): Don't manually free vectors.
3761 (create_longjmp_master_breakpoint): Adjust.
3762 (create_exception_master_breakpoint): Adjust.
3763 * solib-svr4.c (svr4_create_probe_breakpoints): Change
3764 parameter type, adjust.
3765 (svr4_create_solib_event_breakpoints): Adjust.
3767 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3769 * breakpoint.c (breakpoint_objfile_data): Initialize fields.
3770 (get_breakpoint_objfile_data): Allocate breakpoint_objfile_data
3772 (free_breakpoint_probes): Rename to ...
3773 (free_breakpoint_objfile_data): ... this, and call delete on
3776 2017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
3778 * auto-load.c: Don't include gdb_vecs.h, include algorithm.
3779 (loaded_script_ptr): Remove typedef.
3780 (DEF_VEC_P (loaded_script_ptr)): Remove.
3781 (struct collect_matching_scripts_data): Add constructor.
3782 <scripts_p>: Change type to (pointer to) std::vector.
3783 (collect_matching_scripts_data): Adjust.
3784 (sort_scripts_by_name): Make suitable for std::sort.
3785 (print_scripts): Don't sort vector, adjust to std::vector.
3786 (auto_load_info_scripts): Sort vectors, adjust to std::vector.
3788 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3790 * symfile.c (filename_language): Make struct, not typedef. Add
3792 <ext>: Change type to std::string.
3793 (DEF_VEC_O (filename_language)): Remove.
3794 (filename_language_table): Change type to std::vector.
3795 (add_filename_language): Adjust.
3796 (set_ext_lang_command): Adjust.
3797 (info_ext_lang_command): Adjust.
3798 (deduce_language_from_filename): Adjust.
3799 (class scoped_restore_filename_language_table): Remove.
3800 (test_filename_language): Use scoped_restore.
3801 (test_set_ext_lang_command): Use scoped_restore, adjust to
3804 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3806 * symfile.c: Include selftest.h.
3807 (class scoped_restore_filename_language_table): New.
3808 (test_filename_language): New test.
3809 (test_set_ext_lang_command): New test.
3810 (_initialize_symfile): Register tests.
3812 2017-10-27 Keith Seitz <keiths@redhat.com>
3814 * breakpoint.c (print_breakpoint_location): Use the symbol saved
3815 in the bp_location, falling back to find_pc_sect_function when
3817 (add_location_to_breakpoint): Save sal->symbol.
3818 * breakpoint.h (struct bp_location) <symbol>: New field.
3819 * symtab.c (find_function_start_sal): Save the symbol into the SaL.
3820 * symtab.h (struct symtab_and_line) <symbol>: New field.
3822 2017-10-26 Patrick Frants <osscontribute@gmail.com>
3825 * cp-valprint.c (cp_print_value_fields): Use obstack_blank_fast
3828 2017-10-26 Pedro Alves <palves@redhat.com>
3830 * remote.c (remote_async_terminal_ours_p): Delete.
3831 (remote_open_1, remote_terminal_inferior, remote_terminal_ours):
3832 Remove references to 'remote_async_terminal_ours_p'.
3834 2017-10-26 Yao Qi <yao.qi@linaro.org>
3836 * breakpoint.h (regular_breakpoint_inserted_here_p): Remove.
3838 2017-10-26 Yao Qi <yao.qi@linaro.org>
3840 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Make
3842 * break-catch-syscall.c (breakpoint_hit_catch_syscall):
3844 * breakpoint.c (bpstat_check_location): Remove cast.
3845 (breakpoint_hit_catch_fork): Make aspce const.
3846 (breakpoint_hit_catch_solib): Likewise.
3847 (breakpoint_hit_catch_exec): Likewise.
3848 (breakpoint_hit_ranged_breakpoint): Likewise.
3849 (breakpoint_hit_watchpoint): Likewise.
3850 (base_breakpoint_breakpoint_hit): Likewise.
3851 (bkpt_breakpoint_hit): Likewise.
3852 (dprintf_breakpoint_hit): Likewise.
3853 (tracepoint_breakpoint_hit): Likewise.
3854 * breakpoint.h (breakpoint_ops) <breakpoint_hit>: Likewise.
3856 2017-10-26 Yao Qi <yao.qi@linaro.org>
3858 * breakpoint.c (breakpoint_location_address_match): Change
3859 "struct address_space *" to "const address_space".
3860 (breakpoint_location_address_range_overlap): Likewise.
3861 (breakpoint_here_p): Likewise.
3862 (breakpoint_in_range_p): Likewise.
3863 (moribund_breakpoint_here_p): Likewise.
3864 (bp_location_inserted_here_p): Likewise.
3865 (software_breakpoint_inserted_here_p): Likewise.
3866 (hardware_breakpoint_inserted_here_p): Likewise.
3867 (hardware_watchpoint_inserted_in_range): Likewise.
3868 (bpstat_check_location): Likewise.
3869 (bpstat_stop_status): Likewise.
3870 (breakpoint_address_match): Likewise.
3871 (breakpoint_address_match_range): Likewise.
3872 (breakpoint_location_address_match): Likewise.
3873 (breakpoint_location_address_range_overlap): Likewise.
3874 (insert_single_step_breakpoint): Likewise.
3875 (breakpoint_has_location_inserted_here): Likewise.
3876 (single_step_breakpoint_inserted_here_p): Likewise.
3877 (pc_at_non_inline_function): Likewise.
3878 * breakpoint.h (bpstat_stop_status): Update declaration.
3879 (breakpoint_here_p): Likewise.
3880 (breakpoint_in_range_p): Likewise.
3881 (moribund_breakpoint_here_p): Likewise.
3882 (breakpoint_inserted_here_p): Likewise.
3883 (software_breakpoint_inserted_here_p): Likewise.
3884 (hardware_breakpoint_inserted_here_p): Likewise.
3885 (breakpoint_has_location_inserted_here): Likewise.
3886 (single_step_breakpoint_inserted_here_p): Likewise.
3887 (hardware_watchpoint_inserted_in_range): Likewise.
3888 (breakpoint_address_match): Likewise.
3889 (insert_single_step_breakpoint): Likewise.
3890 (pc_at_non_inline_function): Likewise.
3891 * gdbthread.h (thread_has_single_step_breakpoint_here): Likewise.
3892 * record.c (record_check_stopped_by_breakpoint): Likewise.
3893 * record.h (record_check_stopped_by_breakpoint): Likewise.
3894 * thread.c (thread_has_single_step_breakpoint_here): Likewise.
3896 2017-10-25 Yao Qi <yao.qi@linaro.org>
3898 * aarch32-linux-nat.c (aarch32_gp_regcache_supply): Use
3899 regcache->arch () instead get_regcache_arch.
3900 * aarch64-fbsd-nat.c (aarch64_fbsd_fetch_inferior_registers):
3902 (aarch64_fbsd_store_inferior_registers): Likewise.
3903 * aarch64-linux-nat.c (fetch_gregs_from_thread): Likewise.
3904 (store_gregs_to_thread): Likewise.
3905 (fetch_fpregs_from_thread): Likewise.
3906 (store_fpregs_to_thread): Likewise.
3907 * aarch64-tdep.c (aarch64_extract_return_value): Likewise.
3908 (aarch64_store_return_value): Likewise.
3909 (aarch64_software_single_step): Likewise.
3910 * aix-thread.c (aix_thread_wait): Likewise.
3911 (supply_reg32): Likewise.
3912 (supply_sprs64): Likewise.
3913 (supply_sprs32): Likewise.
3914 (fill_gprs64): Likewise.
3915 (fill_gprs32): Likewise.
3916 (fill_sprs64): Likewise.
3917 (fill_sprs32): Likewise.
3918 (store_regs_user_thread): Likewise.
3919 (store_regs_kernel_thread): Likewise.
3920 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
3921 (alphabsd_store_inferior_registers): Likewise.
3922 * alpha-tdep.c (alpha_extract_return_value): Likewise.
3923 (alpha_store_return_value): Likewise.
3924 (alpha_deal_with_atomic_sequence): Likewise.
3925 (alpha_next_pc): Likewise.
3926 (alpha_software_single_step): Likewise.
3927 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
3928 (amd64bsd_store_inferior_registers): Likewise.
3929 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
3931 (amd64_linux_store_inferior_registers): Likewise.
3932 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
3933 (amd64_collect_native_gregset): Likewise.
3934 * amd64-obsd-tdep.c (amd64obsd_supply_uthread): Likewise.
3935 (amd64obsd_collect_uthread): Likewise.
3936 * amd64-tdep.c (amd64_supply_fpregset): Likewise.
3937 (amd64_collect_fpregset): Likewise.
3938 (amd64_supply_fxsave): Likewise.
3939 (amd64_supply_xsave): Likewise.
3940 (amd64_collect_fxsave): Likewise.
3941 (amd64_collect_xsave): Likewise.
3942 * arc-tdep.c (arc_write_pc): Likewise.
3943 * arch-utils.c (default_skip_permanent_breakpoint): Likewise.
3944 * arm-fbsd-nat.c (arm_fbsd_fetch_inferior_registers): Likewise.
3945 (arm_fbsd_store_inferior_registers): Likewise.
3946 * arm-linux-nat.c (fetch_vfp_regs): Likewise.
3947 (store_vfp_regs): Likewise.
3948 (arm_linux_fetch_inferior_registers): Likewise.
3949 (arm_linux_store_inferior_registers): Likewise.
3950 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
3951 (arm_linux_sigreturn_next_pc): Likewise.
3952 (arm_linux_get_next_pcs_syscall_next_pc): Likewise.
3953 * arm-nbsd-nat.c (arm_supply_gregset): Likewise.
3954 (fetch_register): Likewise.
3955 (store_register): Likewise.
3956 * arm-tdep.c (arm_is_thumb): Likewise.
3957 (displaced_in_arm_mode): Likewise.
3958 (bx_write_pc): Likewise.
3959 (arm_get_next_pcs_addr_bits_remove): Likewise.
3960 (arm_software_single_step): Likewise.
3961 (arm_extract_return_value): Likewise.
3962 (arm_store_return_value): Likewise.
3963 (arm_write_pc): Likewise.
3964 * bfin-tdep.c (bfin_extract_return_value): Likewise.
3965 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
3966 (bsd_uthread_store_registers): Likewise.
3967 * core-regset.c (fetch_core_registers): Likewise.
3968 * corelow.c (get_core_registers): Likewise.
3969 * cris-tdep.c (cris_store_return_value): Likewise.
3970 (cris_extract_return_value): Likewise.
3971 (find_step_target): Likewise.
3972 (find_step_target): Likewise.
3973 (cris_software_single_step): Likewise.
3974 * ctf.c (ctf_fetch_registers): Likewise.
3975 * darwin-nat.c (cancel_breakpoint): Likewise.
3976 * fbsd-tdep.c (fbsd_collect_thread_registers): Likewise.
3977 * frv-tdep.c (frv_extract_return_value): Likewise.
3978 * ft32-tdep.c (ft32_store_return_value): Likewise.
3979 (ft32_extract_return_value): Likewise.
3980 * go32-nat.c (fetch_register): Likewise.
3981 (go32_fetch_registers): Likewise.
3982 (go32_store_registers): Likewise.
3983 (store_register): Likewise.
3984 * h8300-tdep.c (h8300_extract_return_value): Likewise.
3985 (h8300_store_return_value): Likewise.
3986 * hppa-linux-nat.c (fetch_register): Likewise.
3987 (store_register): Likewise.
3988 (hppa_linux_fetch_inferior_registers): Likewise.
3989 (hppa_linux_store_inferior_registers): Likewise.
3990 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Likewise.
3991 (i386_darwin_store_inferior_registers): Likewise.
3992 * i386-gnu-nat.c (gnu_fetch_registers): Likewise.
3993 (gnu_store_registers): Likewise.
3994 * i386-linux-nat.c (fetch_register): Likewise.
3995 (store_register): Likewise.
3996 (supply_gregset): Likewise.
3997 (fill_gregset): Likewise.
3998 (i386_linux_fetch_inferior_registers): Likewise.
3999 (i386_linux_store_inferior_registers): Likewise.
4000 (i386_linux_resume): Likewise.
4001 * i386-linux-tdep.c (i386_linux_get_syscall_number_from_regcache):
4003 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
4004 * i386-obsd-nat.c (i386obsd_supply_pcb): Likewise.
4005 * i386-obsd-tdep.c (i386obsd_supply_uthread): Likewise.
4006 (i386obsd_collect_uthread): Likewise.
4007 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
4008 (i386_supply_gregset): Likewise.
4009 (i386_collect_gregset): Likewise.
4010 (i386_supply_fpregset): Likewise.
4011 (i386_collect_fpregset): Likewise.
4012 (i386_mpx_bd_base): Likewise.
4013 * i386-v4-nat.c (supply_fpregset): Likewise.
4014 (fill_fpregset): Likewise.
4015 * i387-tdep.c (i387_supply_fsave): Likewise.
4016 (i387_collect_fsave): Likewise.
4017 (i387_supply_fxsave): Likewise.
4018 (i387_collect_fxsave): Likewise.
4019 (i387_supply_xsave): Likewise.
4020 (i387_collect_xsave): Likewise.
4021 * ia64-linux-nat.c (ia64_linux_fetch_registers): Likewise.
4022 (ia64_linux_store_registers): Likewise.
4023 * ia64-tdep.c (ia64_access_rse_reg): Likewise.
4024 (ia64_extract_return_value): Likewise.
4025 (ia64_store_return_value): Likewise.
4026 (find_func_descr): Likewise.
4027 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
4028 * inf-ptrace.c (inf_ptrace_fetch_registers): Likewise.
4029 (inf_ptrace_store_registers): Likewise.
4030 * infrun.c (use_displaced_stepping): Likewise.
4031 (displaced_step_prepare_throw): Likewise.
4033 (proceed): Likewise.
4034 (do_target_wait): Likewise.
4035 (adjust_pc_after_break): Likewise.
4036 (handle_inferior_event_1): Likewise.
4037 (handle_signal_stop): Likewise.
4038 (save_infcall_suspend_state): Likewise.
4039 (restore_infcall_suspend_state): Likewise.
4040 * iq2000-tdep.c (iq2000_extract_return_value): Likewise.
4041 * jit.c (jit_frame_prev_register): Likewise.
4042 * linux-nat.c (save_stop_reason): Likewise.
4043 (linux_nat_wait_1): Likewise.
4044 (resume_stopped_resumed_lwps): Likewise.
4045 * linux-record.c (record_linux_sockaddr): Likewise.
4046 (record_linux_msghdr): Likewise.
4047 (record_linux_system_call): Likewise.
4048 * linux-tdep.c (linux_collect_thread_registers): Likewise.
4049 * lm32-tdep.c (lm32_extract_return_value): Likewise.
4050 (lm32_store_return_value): Likewise.
4051 * m32c-tdep.c (m32c_read_flg): Likewise.
4052 (m32c_pseudo_register_read): Likewise.
4053 (m32c_pseudo_register_write): Likewise.
4054 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Likewise.
4055 (m32r_linux_collect_gregset): Likewise.
4056 * m32r-tdep.c (m32r_store_return_value): Likewise.
4057 (m32r_extract_return_value): Likewise.
4058 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
4059 (m68kbsd_collect_fpregset): Likewise.
4060 * m68k-bsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
4061 * m68k-linux-nat.c (fetch_register): Likewise.
4062 (old_fetch_inferior_registers): Likewise.
4063 (old_store_inferior_registers): Likewise.
4064 (store_regs): Likewise.
4065 * m68k-tdep.c (m68k_svr4_extract_return_value): Likewise.
4066 (m68k_svr4_store_return_value): Likewise.
4067 * m88k-tdep.c (m88k_store_arguments): Likewise.
4068 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Likewise.
4069 (mi_cmd_data_write_register_values): Likewise.
4070 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers): Likewise.
4071 (mips_fbsd_store_inferior_registers): Likewise.
4072 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Likewise.
4073 (mips_fbsd_supply_gregs): Likewise.
4074 (mips_fbsd_collect_fpregs): Likewise.
4075 (mips_fbsd_collect_gregs): Likewise.
4076 (mips_fbsd_supply_fpregset): Likewise.
4077 (mips_fbsd_collect_fpregset): Likewise.
4078 (mips_fbsd_supply_gregset): Likewise.
4079 (mips_fbsd_collect_gregset): Likewise.
4080 * mips-linux-nat.c (supply_gregset): Likewise.
4081 (fill_gregset): Likewise.
4082 (supply_fpregset): Likewise.
4083 (fill_fpregset): Likewise.
4084 * mips-linux-tdep.c (mips_supply_gregset): Likewise.
4085 (mips_fill_gregset): Likewise.
4086 (mips_supply_fpregset): Likewise.
4087 (mips_fill_fpregset): Likewise.
4088 (mips64_supply_gregset): Likewise.
4089 (micromips_linux_sigframe_validate): Likewise.
4090 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
4091 (mipsnbsd_fetch_inferior_registers): Likewise.
4092 (mipsnbsd_store_inferior_registers): Likewise.
4093 * mips-nbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
4094 (mipsnbsd_supply_gregset): Likewise.
4095 (mipsnbsd_iterate_over_regset_sections): Likewise.
4096 (mipsnbsd_supply_reg): Likewise.
4097 (mipsnbsd_supply_fpreg): Likewise.
4098 * mips-tdep.c (mips_in_frame_stub): Likewise.
4099 (mips_dummy_id): Likewise.
4100 (is_octeon_bbit_op): Likewise.
4101 (micromips_bc1_pc): Likewise.
4102 (extended_mips16_next_pc): Likewise.
4103 (mips16_next_pc): Likewise.
4104 (deal_with_atomic_sequence): Likewise.
4105 * moxie-tdep.c (moxie_process_readu): Likewise.
4106 * nios2-tdep.c (nios2_get_next_pc): Likewise.
4107 * nto-procfs.c (procfs_store_registers): Likewise.
4108 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers): Likewise.
4109 (ppcfbsd_store_inferior_registers): Likewise.
4110 * ppc-linux-nat.c (fetch_vsx_register): Likewise.
4111 (fetch_altivec_register): Likewise.
4112 (get_spe_registers): Likewise.
4113 (fetch_spe_register): Likewise.
4114 (fetch_altivec_registers): Likewise.
4115 (fetch_all_gp_regs): Likewise.
4116 (fetch_all_fp_regs): Likewise.
4117 (store_vsx_register): Likewise.
4118 (store_altivec_register): Likewise.
4119 (set_spe_registers): Likewise.
4120 (store_spe_register): Likewise.
4121 (store_altivec_registers): Likewise.
4122 (store_all_gp_regs): Likewise.
4123 (store_all_fp_regs): Likewise.
4124 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
4125 (ppc_linux_collect_gregset): Likewise.
4126 (ppc_canonicalize_syscall): Likewise.
4127 (ppc_linux_record_signal): Likewise.
4128 (ppu2spu_prev_register): Likewise.
4129 * ppc-nbsd-nat.c (ppcnbsd_supply_pcb): Likewise.
4130 * ppc-obsd-nat.c (ppcobsd_fetch_registers): Likewise.
4131 (ppcobsd_store_registers): Likewise.
4132 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_fetch_registers):
4134 (ppc_ravenscar_generic_store_registers): Likewise.
4135 * procfs.c (procfs_fetch_registers): Likewise.
4136 (procfs_store_registers): Likewise.
4137 * ravenscar-thread.c (ravenscar_fetch_registers): Likewise.
4138 (ravenscar_store_registers): Likewise.
4139 (ravenscar_prepare_to_store): Likewise.
4140 * record-btrace.c (record_btrace_fetch_registers): Likewise.
4141 * record-full.c (record_full_wait_1): Likewise.
4142 (record_full_registers_change): Likewise.
4143 (record_full_store_registers): Likewise.
4144 (record_full_core_fetch_registers): Likewise.
4145 (record_full_save): Likewise.
4146 (record_full_goto_insn): Likewise.
4147 * regcache.c (regcache_register_size): Likewise.
4148 (get_regcache_arch): Remove.
4149 (regcache_read_pc): Likewise.
4150 * regcache.h (get_regcache_arch): Remove.
4151 * remote-sim.c (gdbsim_fetch_register): Likewise.
4152 (gdbsim_store_register): Likewise.
4153 * remote.c (fetch_register_using_p): Likewise.
4154 (send_g_packet): Likewise.
4155 (remote_prepare_to_store): Likewise.
4156 (store_registers_using_G): Likewise.
4157 * reverse.c (save_bookmark_command): Likewise.
4158 (goto_bookmark_command): Likewise.
4159 * rs6000-aix-tdep.c (branch_dest): Likewise.
4160 * rs6000-nat.c (rs6000_ptrace64): Likewise.
4161 (fetch_register): Likewise.
4162 * rs6000-tdep.c (ppc_supply_reg): Likewise.
4163 (ppc_collect_reg): Likewise.
4164 (ppc_collect_gregset): Likewise.
4165 (ppc_collect_fpregset): Likewise.
4166 (ppc_collect_vsxregset): Likewise.
4167 (ppc_collect_vrregset): Likewise.
4168 (ppc_displaced_step_hw_singlestep): Likewise.
4169 (rs6000_pseudo_register_read): Likewise.
4170 (rs6000_pseudo_register_write): Likewise.
4171 * s390-linux-nat.c (supply_gregset): Likewise.
4172 (fill_gregset): Likewise.
4173 (s390_linux_fetch_inferior_registers): Likewise.
4174 * s390-linux-tdep.c (s390_write_pc): Likewise.
4175 (s390_software_single_step): Likewise.
4176 (s390_all_but_pc_registers_record): Likewise.
4177 (s390_linux_syscall_record): Likewise.
4178 * sentinel-frame.c (sentinel_frame_prev_arch): Likewise.
4179 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
4180 (shnbsd_store_inferior_registers): Likewise.
4181 * sh-tdep.c (sh_extract_return_value_nofpu): Likewise.
4182 (sh_extract_return_value_fpu): Likewise.
4183 (sh_store_return_value_nofpu): Likewise.
4184 (sh_corefile_supply_regset): Likewise.
4185 (sh_corefile_collect_regset): Likewise.
4186 * sh64-tdep.c (sh64_extract_return_value): Likewise.
4187 (sh64_store_return_value): Likewise.
4188 * sparc-linux-tdep.c (sparc32_linux_collect_core_fpregset): Likewise.
4189 * sparc-nat.c (sparc_fetch_inferior_registers): Likewise.
4190 (sparc_store_inferior_registers): Likewise.
4191 * sparc-ravenscar-thread.c (register_in_thread_descriptor_p): Likewise.
4192 (sparc_ravenscar_prepare_to_store): Likewise.
4193 * sparc-tdep.c (sparc32_store_arguments): Likewise.
4194 (sparc_analyze_control_transfer): Likewise.
4195 (sparc_step_trap): Likewise.
4196 (sparc_software_single_step): Likewise.
4197 (sparc32_gdbarch_init): Likewise.
4198 (sparc_supply_rwindow): Likewise.
4199 (sparc_collect_rwindow): Likewise.
4200 * sparc64-linux-tdep.c (sparc64_linux_collect_core_fpregset): Likewise.
4201 * sparc64-nbsd-nat.c (sparc64nbsd_supply_gregset): Likewise.
4202 (sparc64nbsd_collect_gregset): Likewise.
4203 (sparc64nbsd_supply_fpregset): Likewise.
4204 (sparc64nbsd_collect_fpregset): Likewise.
4205 * sparc64-tdep.c (sparc64_store_arguments): Likewise.
4206 (sparc64_supply_gregset): Likewise.
4207 (sparc64_collect_gregset): Likewise.
4208 (sparc64_supply_fpregset): Likewise.
4209 (sparc64_collect_fpregset): Likewise.
4210 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
4211 * spu-tdep.c (spu_unwind_sp): Likewise.
4212 (spu2ppu_prev_register): Likewise.
4213 (spu_memory_remove_breakpoint): Likewise.
4214 * stack.c (return_command): Likewise.
4215 * tic6x-tdep.c (tic6x_extract_signed_field): Likewise.
4216 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
4217 * tracefile.c (trace_save_ctf): Likewise.
4218 * windows-nat.c (do_windows_fetch_inferior_registers): Likewise.
4219 (do_windows_store_inferior_registers): Likewise.
4220 (windows_resume): Likewise.
4221 * xtensa-linux-nat.c (fill_gregset): Likewise.
4222 (supply_gregset_reg): Likewise.
4223 * xtensa-tdep.c (xtensa_register_write_masked): Likewise.
4224 (xtensa_register_read_masked): Likewise.
4225 (xtensa_supply_gregset): Likewise.
4226 (xtensa_extract_return_value): Likewise.
4227 (xtensa_store_return_value): Likewise.
4229 2017-10-25 Ulrich Weigand <uweigand@de.ibm.com>
4231 * doublest.c (floatformat_from_string): New function.
4232 * doublest.h (floatformat_from_string): Add prototype.
4234 * std-operator.def (OP_DOUBLE, OP_DECFLOAT): Remove, replace by ...
4235 (OP_FLOAT): ... this.
4236 * expression.h: Do not include "doublest.h".
4237 (union exp_element): Replace doubleconst and decfloatconst by
4238 new element floatconst.
4239 * ada-lang.c (resolve_subexp): Handle OP_FLOAT instead of OP_DOUBLE.
4240 (ada_evaluate_subexp): Likewise.
4241 * eval.c (evaluate_subexp_standard): Handle OP_FLOAT instead of
4242 OP_DOUBLE and OP_DECFLOAT.
4243 * expprint.c (print_subexp_standard): Likewise.
4244 (dump_subexp_body_standard): Likewise.
4245 * breakpoint.c (watchpoint_exp_is_const): Likewise.
4247 * parse.c: Include "dfp.h".
4248 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
4249 (write_exp_elt_floatcst): New function.
4250 (operator_length_standard): Handle OP_FLOAT instead of OP_DOUBLE
4252 (operator_check_standard): Likewise.
4253 (parse_float): Do not accept suffix. Take type as input. Return bool.
4254 Return target format buffer instead of host DOUBLEST.
4255 Use floatformat_from_string and decimal_from_string to parse
4256 either binary or decimal floating-point types.
4257 (parse_c_float): Remove.
4258 * parser-defs.h: Do not include "doublest.h".
4259 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
4260 (write_exp_elt_floatcst): Add prototype.
4261 (parse_float): Update prototype.
4262 (parse_c_float): Remove.
4264 * c-exp.y: Do not include "dfp.h".
4265 (typed_val_float): Use byte buffer instead of DOUBLEST.
4266 (typed_val_decfloat): Remove.
4268 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4269 (parse_number): Update to new parse_float interface.
4270 Parse suffixes and determine type before calling parse_float.
4271 Handle decimal and binary FP types the same way.
4273 * d-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
4274 (FLOAT_LITERAL): Use OP_FLOAT and write_exp_elt_floatcst.
4275 (parse_number): Update to new parse_float interface.
4276 Parse suffixes and determine type before calling parse_float.
4278 * f-exp.y: Replace dval by typed_val_float.
4279 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4280 (parse_number): Use parse_float instead of atof.
4282 * go-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
4283 (parse_go_float): Remove.
4284 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4285 (parse_number): Call parse_float instead of parse_go_float.
4286 Parse suffixes and determine type before calling parse_float.
4288 * p-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
4289 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4290 (parse_number): Update to new parse_float interface.
4291 Parse suffixes and determine type before calling parse_float.
4293 * m2-exp.y: Replace dval by byte buffer val.
4294 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4295 (parse_number): Call parse_float instead of atof.
4297 * rust-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
4298 (lex_number): Call parse_float instead of strtod.
4299 (ast_dliteral): Use OP_FLOAT instead of OP_DOUBLE.
4300 (convert_ast_to_expression): Handle OP_FLOAT instead of OP_DOUBLE.
4301 Use write_exp_elt_floatcst.
4302 (unit_testing): Remove static variable.
4303 (rust_type): Do not check unit_testing.
4304 (rust_lex_tests): Do not set uint_testing. Set up dummy rust_parser.
4306 * ada-exp.y (type_float, type_double): Remove.
4307 (typed_val_float): Use byte buffer instead of DOUBLEST.
4308 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4309 * ada-lex.l (processReal): Use parse_float instead of sscanf.
4311 2017-10-25 Alan Hayward <alan.hayward@arm.com>
4313 * aarch64-tdep.h (enum aarch64_regnum): Remove.
4314 * arch/aarch64.h: New file.
4316 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4318 * dfp.h (decimal_from_string): Use const reference for argument.
4319 * dfp.c (decimal_from_string): Likewise.
4321 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4323 * i387-tdep.c (print_i387_value): Use floatformat_to_string.
4324 * sh64-tdep.c (sh64_do_fp_register): Likewise.
4325 * mips-tdep.c (mips_print_fp_register): Likewise.
4327 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4329 * common/format.h (enum argclass): Replace decfloat_arg by
4330 dec32float_arg, dec64float_arg, and dec128float_arg.
4331 * common/format.c (parse_format_string): Update to return
4332 new decimal float argument classes.
4334 * printcmd.c (printf_decfloat): Rename to ...
4335 (printf_floating): ... this. Add argclass argument, and use it
4336 instead of parsing the format string again. Add support for
4337 binary floating-point values, using floatformat_to_string.
4338 Convert value to the target format if it doesn't already match.
4339 (ui_printf): Call printf_floating instead of printf_decfloat,
4340 also for double_arg / long_double_arg. Pass argclass.
4342 * dfp.c (decimal_to_string): Add format string argument.
4343 * dfp.h (decimal_to_string): Likewise.
4345 * doublest.c (floatformat_to_string): Add format string argument.
4346 * doublest.h (floatformat_to_string): Likewise.
4348 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4350 * doublest.c (floatformat_precision): New routine.
4351 (floatformat_to_string): Likewise.
4352 * doublest.c (floatformat_to_string): Add prototype.
4354 * printcmd.c (print_scalar_formatted): Only call print_floating
4355 on floating-point types.
4356 * valprint.c: Do not include "floatformat.h".
4357 (generic_val_print_decfloat): Remove.
4358 (generic_val_print): Call generic_val_print_float for both
4359 TYPE_CODE_FLT and TYPE_CODE_DECFLOAT.
4360 (print_floating): Use floatformat_to_string. Handle decimal float.
4361 (print_decimal_floating): Remove, merge into floatformat_to_string.
4362 * value.h (print_decimal_floating): Remove.
4364 * Makefile.in: Do not build doublest.c with -Wformat-nonliteral.
4366 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4368 * buildsym.c (end_symtab_get_static_block): Use std::stable_sort.
4370 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
4372 * memattr.h: Don't include vec.h.
4373 (struct mem_attrib): Initialize fields.
4374 <unknown>: New static method.
4375 (struct mem_region): Add constructors, operator<, initialize
4377 * memattr.c: Include algorithm.
4378 (default_mem_attrib, unknown_mem_attrib): Remove.
4379 (user_mem_region_list): New global.
4380 (target_mem_region_list, mem_region_list): Change type to
4381 std::vector<mem_region>.
4382 (mem_use_target): Now a function.
4383 (target_mem_regions_valid): Change type to bool.
4384 (mem_region_lessthan, mem_region_cmp, mem_region_init): Remove.
4385 (require_user_regions): Adjust.
4386 (require_target_regions): Adjust.
4387 (create_mem_region): Adjust.
4388 (lookup_mem_region): Adjust.
4389 (invalidate_target_mem_regions): Adjust.
4390 (mem_clear): Rename to...
4391 (user_mem_clear): ... this, and adjust.
4392 (mem_command): Adjust.
4393 (info_mem_command): Adjust.
4394 (mem_enable, enable_mem_command, mem_disable,
4395 disable_mem_command): Adjust.
4396 (mem_delete): Adjust.
4397 (delete_mem_command): Adjust.
4398 * memory-map.h (parse_memory_map): Return an std::vector.
4399 * memory-map.c (parse_memory_map): Likewise.
4400 (struct memory_map_parsing_data): Add constructor.
4401 <memory_map>: Point to std::vector.
4402 (memory_map_start_memory): Adjust.
4403 (memory_map_end_memory): Adjust.
4404 (memory_map_end_property): Adjust.
4405 (clear_result): Remove.
4406 * remote.c (remote_memory_map): Return an std::vector.
4407 * target-debug.h (target_debug_print_VEC_mem_region_s__p):
4409 (target_debug_print_mem_region_vector): New.
4410 * target-delegates.c: Regenerate.
4411 * target.h (mem_region_vector): New typedef.
4412 (to_memory_map): Return mem_region_vector.
4413 (target_memory_map): Return an std::vector.
4414 * target.c (target_memory_map): Return an std::vector.
4415 (flash_erase_command): Adjust.
4417 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
4419 * memory-map.c (struct memory_map_parsing_data) <property_name>:
4420 Change type to std::string.
4421 (memory_map_start_property): Adjust.
4422 (memory_map_end_property): Adjust.
4424 2017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
4426 * infrun.h: Include common/byte-vector.h.
4427 (struct displaced_step_closure): New struct.
4428 (struct buf_displaced_step_closure): New struct.
4429 * infrun.c (displaced_step_closure::~displaced_step_closure):
4430 Provide default implementation.
4431 (displaced_step_clear): Deallocate step closure with delete.
4432 * aarch64-tdep.c (displaced_step_closure): Rename to ...
4433 (aarch64_displaced_step_closure): ... this, extend
4434 displaced_step_closure.
4435 (aarch64_displaced_step_data) <dsc>: Change type to
4436 aarch64_displaced_step_closure.
4437 (aarch64_displaced_step_copy_insn): Adjust to type change, use
4439 (aarch64_displaced_step_fixup): Add cast for displaced step
4441 * amd64-tdep.c (displaced_step_closure): Rename to ...
4442 (amd64_displaced_step_closure): ... this, extend
4443 displaced_step_closure.
4444 <insn_buf>: Change type to std::vector<gdb_byte>.
4446 (fixup_riprel): Change type of DSC parameter, adjust to type
4448 (fixup_displaced_copy): Change type of DSC parameter.
4449 (amd64_displaced_step_copy_insn): Instantiate
4450 amd64_displaced_step_closure.
4451 (amd64_displaced_step_fixup): Add cast for closure type, adjust
4452 to type change of insn_buf.
4453 * arm-linux-tdep.c (arm_linux_cleanup_svc): Change type of
4455 (arm_linux_copy_svc): Likewise.
4456 (cleanup_kernel_helper_return): Likewise.
4457 (arm_catch_kernel_helper_return): Likewise.
4458 (arm_linux_displaced_step_copy_insn): Instantiate
4459 arm_displaced_step_closure.
4460 * arm-tdep.c (arm_pc_is_thumb): Add cast for closure.
4461 (displaced_read_reg): Change type of parameter DSC.
4462 (branch_write_pc): Likewise.
4463 (load_write_pc): Likewise.
4464 (alu_write_pc): Likewise.
4465 (displaced_write_reg): Likewise.
4466 (arm_copy_unmodified): Likewise.
4467 (thumb_copy_unmodified_32bit): Likewise.
4468 (thumb_copy_unmodified_16bit): Likewise.
4469 (cleanup_preload): Likewise.
4470 (install_preload): Likewise.
4471 (arm_copy_preload): Likewise.
4472 (thumb2_copy_preload): Likewise.
4473 (install_preload_reg): Likewise.
4474 (arm_copy_preload_reg): Likewise.
4475 (cleanup_copro_load_store): Likewise.
4476 (install_copro_load_store): Likewise.
4477 (arm_copy_copro_load_store) Likewise.
4478 (thumb2_copy_copro_load_store): Likewise.
4479 (cleanup_branch): Likewise.
4480 (install_b_bl_blx): Likewise.
4481 (arm_copy_b_bl_blx): Likewise.
4482 (thumb2_copy_b_bl_blx): Likewise.
4483 (thumb_copy_b): Likewise.
4484 (install_bx_blx_reg): Likewise.
4485 (arm_copy_bx_blx_reg): Likewise.
4486 (thumb_copy_bx_blx_reg): Likewise.
4487 (cleanup_alu_imm): Likewise.
4488 (arm_copy_alu_imm): Likewise.
4489 (thumb2_copy_alu_imm): Likewise.
4490 (cleanup_alu_reg): Likewise.
4491 (install_alu_reg): Likewise.
4492 (arm_copy_alu_reg): Likewise.
4493 (thumb_copy_alu_reg): Likewise.
4494 (cleanup_alu_shifted_reg): Likewise.
4495 (install_alu_shifted_reg): Likewise.
4496 (arm_copy_alu_shifted_reg): Likewise.
4497 (cleanup_load): Likewise.
4498 (cleanup_store): Likewise.
4499 (arm_copy_extra_ld_st): Likewise.
4500 (install_load_store): Likewise.
4501 (thumb2_copy_load_literal): Likewise.
4502 (thumb2_copy_load_reg_imm): Likewise.
4503 (arm_copy_ldr_str_ldrb_strb): Likewise.
4504 (cleanup_block_load_all): Likewise.
4505 (cleanup_block_store_pc): Likewise.
4506 (cleanup_block_load_pc): Likewise.
4507 (arm_copy_block_xfer): Likewise.
4508 (thumb2_copy_block_xfer): Likewise.
4509 (cleanup_svc): Likewise.
4510 (install_svc): Likewise.
4511 (arm_copy_svc): Likewise.
4512 (thumb_copy_svc): Likewise.
4513 (arm_copy_undef): Likewise.
4514 (thumb_32bit_copy_undef): Likewise.
4515 (arm_copy_unpred): Likewise.
4516 (arm_decode_misc_memhint_neon): Likewise.
4517 (arm_decode_unconditional): Likewise.
4518 (arm_decode_miscellaneous): Likewise.
4519 (arm_decode_dp_misc): Likewise.
4520 (arm_decode_ld_st_word_ubyte): Likewise.
4521 (arm_decode_media): Likewise.
4522 (arm_decode_b_bl_ldmstm): Likewise.
4523 (arm_decode_ext_reg_ld_st): Likewise.
4524 (thumb2_decode_dp_shift_reg): Likewise.
4525 (thumb2_decode_ext_reg_ld_st): Likewise.
4526 (arm_decode_svc_copro): Likewise.
4527 (thumb2_decode_svc_copro): Likewise.
4528 (install_pc_relative): Likewise.
4529 (thumb_copy_pc_relative_16bit): Likewise.
4530 (thumb_decode_pc_relative_16bit): Likewise.
4531 (thumb_copy_pc_relative_32bit): Likewise.
4532 (thumb_copy_16bit_ldr_literal): Likewise.
4533 (thumb_copy_cbnz_cbz): Likewise.
4534 (thumb2_copy_table_branch): Likewise.
4535 (cleanup_pop_pc_16bit_all): Likewise.
4536 (thumb_copy_pop_pc_16bit): Likewise.
4537 (thumb_process_displaced_16bit_insn): Likewise.
4538 (decode_thumb_32bit_ld_mem_hints): Likewise.
4539 (thumb_process_displaced_32bit_insn): Likewise.
4540 (thumb_process_displaced_insn): Likewise.
4541 (arm_process_displaced_insn): Likewise.
4542 (arm_displaced_init_closure): Likewise.
4543 (arm_displaced_step_fixup): Add cast for closure.
4544 * arm-tdep.h: Include infrun.h.
4545 (displaced_step_closure): Rename to ...
4546 (arm_displaced_step_closure): ... this, extend
4547 displaced_step_closure.
4548 <u::svc::copy_svc_os>: Change type of parameter DSC.
4549 <cleanup>: Likewise.
4550 (arm_process_displaced_insn): Likewise.
4551 (arm_displaced_init_closure): Likewise.
4552 (displaced_read_reg): Likewise.
4553 (displaced_write_reg): Likewise.
4554 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
4556 * i386-tdep.h: Include infrun.h.
4557 (i386_displaced_step_closure): New typedef.
4558 * i386-tdep.c (i386_displaced_step_copy_insn): Use
4559 i386_displaced_step_closure.
4560 (i386_displaced_step_fixup): Adjust.
4561 * rs6000-tdep.c (ppc_displaced_step_closure): New typedef.
4562 (ppc_displaced_step_copy_insn): Use ppc_displaced_step_closure
4564 (ppc_displaced_step_fixup): Adjust.
4565 * s390-linux-tdep.c (s390_displaced_step_closure): New typedef.
4566 (s390_displaced_step_copy_insn): Use s390_displaced_step_closure
4568 (s390_displaced_step_fixup): Adjust.
4570 2017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
4572 * interps.h (interp_resume, interp_suspend, interp_set_temp):
4573 Remove declarations.
4575 2017-10-20 Tom Tromey <tom@tromey.com>
4577 * gdb_bfd.c (struct gdb_bfd_data) <included_bfds>: Now a
4579 (gdb_bfd_record_inclusion): Update.
4580 (bfdp): Remove typedef.
4582 2017-10-20 Tom Tromey <tom@tromey.com>
4584 * gdb_bfd.c (gdb_bfd_ref): Use new.
4585 (struct gdb_bfd_data): Add constructor, destructor, and member
4587 (gdb_bfd_unref): Use delete.
4589 2017-10-20 Tom Tromey <tom@tromey.com>
4591 * exec.c (exec_file_attach): Use new_bfd_ref.
4592 * symfile-mem.c (symbol_file_add_from_memory): Use new_bfd_ref.
4593 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
4594 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_fdopenr): Use
4596 * gdb_bfd.h (new_bfd_ref): New function.
4598 2017-10-20 Pedro Alves <palves@redhat.com>
4600 * main.c (captured_command_loop): Add attribute noinline.
4602 2017-10-19 Simon Marchi <simon.marchi@ericsson.com>
4604 * interps.c (struct interp_factory): Add constructor.
4605 (interp_factory_p): Remove typedef.
4606 (DEF_VEC_P(interp_factory_p)): Remove.
4607 (interpreter_factories): Change type to std::vector.
4608 (interp_factory_register): Adjust.
4609 (interp_lookup): Adjust.
4610 (interpreter_completer): Adjust.
4612 2017-10-19 Tom Tromey <tom@tromey.com>
4614 * break-catch-syscall.c (catch_syscall_completer): Use
4615 std::string, gdb::unique_xmalloc_ptr.
4617 2017-10-19 Tom Tromey <tom@tromey.com>
4619 * infcall.c (call_function_by_hand_dummy): Use std::string.
4621 2017-10-19 Tom Tromey <tom@tromey.com>
4623 * mi/mi-main.c (mi_cmd_execute): Update.
4624 * top.h (prepare_execute_command): Return scoped_value_mark.
4625 * value.h (class scoped_value_mark): Use DISABLE_COPY_AND_ASSIGN.
4626 Add move constructor.
4627 * top.c (prepare_execute_command): Return scoped_value_mark.
4628 (execute_command): Update.
4630 2017-10-19 Pedro Alves <palves@redhat.com>
4632 * xml-support.c (xml_fetch_content_from_file): Check fread's
4635 2017-10-19 Pedro Alves <palves@redhat.com>
4637 * ser-base.c (ser_base_read_error_fd): Delete the file handler if
4639 (handle_error_fd): New function.
4640 (ser_base_async): Add/delete an event loop file handler for
4643 2017-10-19 Pedro Alves <palves@redhat.com>
4645 * xml-support.c (xml_fetch_content_from_file): Don't read in
4646 chunks. Instead use fseek to determine the file's size, and read
4649 2017-11-18 Keith Seitz <keiths@redhat.com>
4651 * c-exp.y (oper): Canonicalize conversion operators of user-defined
4653 Add whitespace to front of type name.
4655 2017-10-18 Keith Seitz <keiths@redhat.com>
4657 * dwarf2read.c (dwarf2_add_typedef): Issue a complaint on unhandled
4658 DW_AT_accessibility.
4660 2017-10-18 Yao Qi <yao.qi@linaro.org>
4662 * features/tic6x-c62x-linux.c: Remove.
4664 2017-10-17 Tom Tromey <tom@tromey.com>
4666 * disasm.c (do_mixed_source_and_assembly_deprecated): Use
4667 gdb::optional, ui_out_emit_list, ui_out_emit_tuple.
4668 (do_mixed_source_and_assembly): Likewise.
4670 2017-10-17 Tom Tromey <tom@tromey.com>
4672 * regcache.c (regcache::xfer_part): Remove assertion.
4674 2017-10-17 Pedro Alves <palves@redhat.com>
4676 * xml-support.c (xml_fetch_content_from_file): Call
4677 unique_ptr::release() instead unique_ptr::get() when passing
4680 2017-10-17 Yao Qi <yao.qi@linaro.org>
4682 * regcache.c (regcache::xfer_part): Remove parameters read and
4683 write, add parameter is_raw. All callers are updated.
4685 2017-10-16 Keith Seitz <keiths@redhat.com>
4687 * c-typeprint.c (enum access_specifier): Moved here from
4689 (output_access_specifier): New function.
4690 (c_type_print_base): Consider typedefs when assessing
4691 whether access labels are needed.
4692 Use output_access_specifier as needed.
4693 Output access specifier for typedefs, if needed.
4694 * dwarf2read.c (dwarf2_add_typedef): Record DW_AT_accessibility.
4695 * gdbtypes.h (struct typedef_field) <is_protected, is_private>: New
4697 (TYPE_TYPEDEF_FIELD_PROTECTED, TYPE_TYPEDEF_FIELD_PRIVATE): New
4700 2017-10-16 Tom Tromey <tom@tromey.com>
4702 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full)
4703 (linux_fill_prpsinfo, linux_vsyscall_range_raw): Update.
4704 * target.c (target_fileio_read_stralloc): Update.
4705 * sparc64-tdep.c (adi_is_addr_mapped): Update.
4706 * target.h (target_fileio_read_stralloc): Return
4709 2017-10-16 Tom Tromey <tom@tromey.com>
4711 * xml-syscall.c (xml_init_syscalls_info): Update.
4712 * xml-support.c (xinclude_start_include): Update.
4713 (xml_fetch_content_from_file): Return unique_xmalloc_ptr.
4714 * xml-support.h (xml_fetch_another): Return unique_xmalloc_ptr.
4715 (xml_fetch_content_from_file): Likewise.
4716 * osdata.c (get_osdata): Update.
4717 * target.h (target_read_stralloc, target_get_osdata): Return
4719 * solib-aix.c (solib_aix_get_library_list): Update.
4720 * solib-target.c (solib_target_current_sos): Update.
4721 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Update.
4722 * xml-tdesc.c (fetch_available_features_from_target): Update.
4723 (target_fetch_description_xml): Update.
4724 (file_read_description_xml): Update.
4725 * remote.c (remote_get_threads_with_qxfer, remote_memory_map)
4726 (remote_traceframe_info, btrace_read_config, remote_read_btrace)
4727 (remote_pid_to_exec_file): Update.
4728 * target.c (target_read_stralloc): Return unique_xmalloc_ptr.
4729 (target_get_osdata): Likewise.
4731 2017-10-16 Tom Tromey <tom@tromey.com>
4733 * remote.c (remote_register_number_and_offset): Use std::vector.
4734 (remote_set_syscall_catchpoint): Use gdb::unique_xmalloc_ptr.
4735 (putpkt_binary): Use gdb::def_vector.
4736 (compare_sections_command): Use gdb::byte_vector.
4738 2017-10-16 Tom Tromey <tom@tromey.com>
4740 * ppc-linux-nat.c (hwdebug_insert_point): Use
4741 gdb::unique_xmalloc_ptr, XDUP.
4743 2017-10-16 Tom Tromey <tom@tromey.com>
4745 * probe.c (parse_probes): Use std::string.
4746 (info_probes_for_ops, enable_probes_command)
4747 (disable_probes_command): Remove cleanups.
4749 2017-10-16 Tom Tromey <tom@tromey.com>
4751 * buildsym.c (block_compar): Remove.
4752 (end_symtab_get_static_block): Use std::vector.
4754 2017-10-16 Simon Marchi <simon.marchi@ericsson.com>
4756 * memrange.h (struct mem_range): Define operator< and operator==.
4757 (mem_range_s): Remove.
4758 (DEF_VEC_O (mem_range_s)): Remove.
4759 (normalize_mem_ranges): Change parameter type to std::vector.
4760 * memrange.c (compare_mem_ranges): Remove.
4761 (normalize_mem_ranges): Change parameter type to std::vector,
4762 adjust to vector change.
4763 * exec.c (section_table_available_memory): Return vector, remove
4765 (section_table_read_available_memory): Adjust to std::vector
4767 * remote.c (remote_read_bytes): Adjust to std::vector
4769 * tracepoint.h (traceframe_available_memory): Change parameter
4770 type to std::vector.
4771 * tracepoint.c (traceframe_available_memory): Change parameter
4772 type to std::vector, adjust.
4773 * gdb/mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to
4775 * gdb/Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4776 unittests/memrange-selftests.c.
4777 (SUBDIR_UNITTESTS_OBS): Add memrange-selftests.o.
4778 * gdb/unittests/memrange-selftests.c: New file.
4780 2017-10-16 Pedro Alves <palves@redhat.com>
4782 * elfread.c (probe_key_free): Rename range-for variable.
4783 * probe.c (parse_probes_in_pspace, find_probes_in_objfile)
4784 (find_probe_by_pc, collect_probes): Rename range-for variable.
4786 2017-10-16 Yao Qi <yao.qi@linaro.org>
4788 * features/Makefile (XMLTOC): Remove tic6x-*.xml.
4789 * features/tic6x-c62x.c: Remove.
4790 * features/tic6x-c64x-linux.c: Remove.
4791 * features/tic6x-c64x.c: Remove.
4792 * features/tic6x-c64xp-linux.c: Remove.
4793 * features/tic6x-c64xp.c: Remove.
4794 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Don't call
4795 initialize_tdesc_tic6x_*_linux functions.
4796 * tic6x-tdep.c (_initialize_tic6x_tdep): Don't call
4797 initialize_tdesc_tic6x_* functions.
4799 2017-10-16 Yao Qi <yao.qi@linaro.org>
4801 * features/Makefile (WHICH): Remove tic6x-c64xp, tic6x-c64x
4803 * regformats/tic6x-c62x.dat: Remove.
4804 * regformats/tic6x-c64x.dat: Remove.
4805 * regformats/tic6x-c64xp.dat: Remove.
4807 2017-10-15 Simon Marchi <simon.marchi@ericsson.com>
4809 * tracepoint.c (parse_traceframe_info): Return a unique_ptr
4810 (the !HAVE_LIBEXPAT version).
4812 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
4814 * nat/linux-osdata.c (struct pid_pgid_entry) <operator<>: Make
4817 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4819 * target.h: Include tracepoint.h.
4820 (enum trace_find_type): Move to tracepoint.h.
4821 (struct target_ops) <to_traceframe_info>: Return a unique ptr.
4822 * tracepoint.h: Don't include target.h
4823 (enum trace_find_type): Move from target.h.
4824 (parse_traceframe_info): Return a unique ptr.
4825 * tracepoint.c (current_traceframe_info): Change type to unique
4827 (free_traceframe_info): Remove.
4828 (clear_traceframe_info): Don't manually free
4829 current_traceframe_info.
4830 (free_result): Remove.
4831 (parse_traceframe_info): Return a unique ptr.
4832 (get_traceframe_info): Adjust to unique ptr.
4833 * ctf.c (ctf_traceframe_info): Return a unique ptr.
4834 * remote.c (remote_traceframe_info): Return a unique ptr.
4835 * tracefile-tfile.c (tfile_traceframe_info): Return a unique
4837 * target-debug.h (target_debug_print_traceframe_info_up): New
4839 * target-delegates.c: Regenerate.
4841 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4843 * memrange.h (struct mem_range): Add constructors.
4844 * tracepoint.h (struct traceframe_info) <memory>: Change type to
4845 std::vector<mem_range>.
4846 * tracepoint.c (free_traceframe_info): Don't manually free
4848 (traceframe_info_start_memory): Adjust to vector change.
4849 (traceframe_available_memory): Likewise.
4850 * tracefile-tfile.c (build_traceframe_info): Likewise.
4851 * ctf.c (ctf_traceframe_info): Likewise.
4853 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4855 * tracepoint.h (struct traceframe_info) <tvars>: Change type to
4857 * tracepoint.c (free_traceframe_info): Deallocate with delete.
4858 (traceframe_info_start_tvar): Adjust to vector change.
4859 (parse_traceframe_info): Allocate with new.
4860 * ctf.c (ctf_traceframe_info): Allocate with new, adjust to
4862 * tracefile-tfile.c (build_traceframe_info): Adjust to vector
4864 tfile_traceframe_info): Allocate with new.
4865 * mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to vector
4868 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4870 * tracepoint.c (traceframe_info): Rename to...
4871 (current_traceframe_info): ...this.
4872 (clear_traceframe_info): Adjust.
4873 (get_traceframe_info): Adjust.
4875 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
4877 * nat/linux-osdata.c: Include algorithm.
4878 (compare_processes): Remove.
4879 (struct pid_pgid_entry): New struct.
4880 (linux_xfer_osdata_processgroups): Use std::vector instead of
4883 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
4885 * objfiles.h: Don't include symfile.h.
4886 (struct partial_symbol): Remove forward-declaration.
4887 (struct objfile) <global_psymbols, static_psymbols>: Change type
4888 to std::vector<partial_symbol *>.
4889 * objfiles.c (objfile::objfile): Don't memset those fields.
4890 (objfile::~objfile): Don't free those fields.
4891 * psympriv.h (struct psymbol_allocation_list): Remove
4892 forward-declaration.
4893 (add_psymbol_to_list): Change psymbol_allocation_list parameter
4895 (start_psymtab_common): Change parameters to std::vector.
4896 * psymtab.c: Include algorithm.
4897 (require_partial_symbols): Call shrink_to_fit.
4898 (find_pc_sect_psymbol): Adjust to vector change.
4899 (match_partial_symbol): Likewise.
4900 (lookup_partial_symbol): Likewise.
4901 (psym_relocate): Likewise.
4902 (dump_psymtab): Likewise.
4903 (recursively_search_psymtabs): Likewise.
4904 (compare_psymbols): Remove.
4905 (sort_pst_symbols): Adjust to vector change.
4906 (start_psymtab_common): Likewise.
4907 (end_psymtab_common): Likewise.
4908 (psymbol_bcache_full): De-constify return value.
4909 (add_psymbol_to_bcache): Likewise.
4910 (extend_psymbol_list): Remove.
4911 (append_psymbol_to_list): Adjust to vector change.
4912 (add_psymbol_to_list): Likewise.
4913 (init_psymbol_list): Likewise.
4914 (maintenance_info_psymtabs): Likewise.
4915 (maintenance_check_psymtabs): Likewise.
4916 * symfile.h (struct psymbol_allocation_list): Remove.
4917 * symfile.c (reread_symbols): Adjust to vector change.
4918 * dbxread.c (start_psymtab): Change type of parameters.
4919 (dbx_symfile_read): Adjust to vector change.
4920 (read_dbx_symtab): Likewise.
4921 (start_psymtab): Change type of parameters.
4922 * dwarf2read.c (dwarf2_build_psymtabs): Adjust to vector change.
4923 (create_partial_symtab): Likewise.
4924 (add_partial_symbol): Likewise.
4925 (write_one_signatured_type): Likewise.
4926 (recursively_write_psymbols): Likewise.
4927 * mdebugread.c (parse_partial_symbols): Likewise.
4928 * xcoffread.c (xcoff_start_psymtab): Change type of parameters.
4929 (scan_xcoff_symtab): Adjust to vector change.
4930 (xcoff_initial_scan): Likewise.
4932 2017-10-13 Simon Marchi <simon.marchi@ericsson.com>
4934 * ada-typeprint.c (print_dynamic_range_bound): Use std::string.
4936 2017-10-13 Yao Qi <yao.qi@linaro.org>
4938 * features/Makefile: Remove tic6x-*-expedite, add tic6x-expedite.
4939 Remove s390x-*-expedite, add s390x-expedite.
4941 2017-10-13 Yao Qi <yao.qi@linaro.org>
4943 * features/s390-gs-linux64.c: Regenerated.
4944 * features/s390x-gs-linux64.c: Regenerated.
4946 2017-10-13 Tom Tromey <tom@tromey.com>
4948 * compile/compile-object-run.c (do_module_cleanup): Use delete.
4949 * solib.c (update_solib_list, reload_shared_libraries_1): Use
4951 * symfile.c (symbol_file_add_with_addrs): Use new.
4952 (symbol_file_add_separate): Update comment.
4953 (syms_from_objfile_1, remove_symbol_file_command): Use delete.
4954 * jit.c (jit_object_close_impl): Use new.
4955 (jit_unregister_code): Use delete.
4956 * objfiles.c (objfile::objfile): Rename from allocate_objfile.
4957 (~objfile): Rename from free_objfile.
4958 (free_objfile_separate_debug, do_free_objfile_cleanup)
4959 (free_all_objfiles, objfile_purge_solibs): Use delete.
4960 * objfiles.h (struct objfile): Add constructor and destructor.
4961 Use DISABLE_COPY_AND_ASSIGN. Add initializers to data members.
4962 (allocate_objfile, free_objfile): Don't declare.
4963 (struct objstats): Add initializers.
4965 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
4967 * arch-utils.h (simple_displaced_step_copy_insn): Remove.
4968 * arch-utils.c (simple_displaced_step_copy_insn): Remove.
4969 * gdbarch.sh (displaced_step_copy_insn): Adjust comment.
4970 * gdbarch.h: Regenerate.
4971 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
4973 * i386-tdep.c (i386_displaced_step_copy_insn): Adjust comment.
4974 (i386_displaced_step_fixup): Adjust comment.
4975 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Adjust comment.
4977 2017-10-12 Tom Tromey <tom@tromey.com>
4979 * prologue-value.h (pv_area::store_would_trash): Return bool.
4980 (pv_area::find_reg): Likewise.
4981 * prologue-value.c (pv_area::store_would_trash): Return bool.
4982 (pv_area::find_reg): Likewise.
4984 2017-10-12 Tom Tromey <tom@tromey.com>
4986 * s390-linux-tdep.c (s390_store, s390_load)
4987 (s390_check_for_saved, s390_analyze_prologue): Update.
4988 * rx-tdep.c (check_for_saved, rx_analyze_prologue): Update.
4989 * rl78-tdep.c (rl78_analyze_prologue, check_for_saved): Update.
4990 * prologue-value.h (class pv_area): Move from prologue-value.c.
4991 Change names of members. Add constructor, destructor, member
4993 (make_pv_area, free_pv_area, make_cleanup_free_pv_area)
4994 (pv_area_store, pv_area_fetch, pv_area_store_would_trash)
4995 (pv_area_fetch, pv_area_scan): Don't declare.
4996 * prologue-value.c (struct pv_area::area_entry): Now member of
4998 (struct pv_area): Move to prologue-value.h.
4999 (pv_area::pv_area): Rename from make_pv_area.
5000 (pv_area::~pv_area): Rename from free_pv_area.
5001 (do_free_pv_area_cleanup, make_cleanup_free_pv_area): Remove.
5002 (clear_entries, find_entry, overlaps, store_would_trash, store)
5003 (fetch, find_reg, scan): Now member of pv_area.
5004 Remove "area" argument. Update.
5005 * msp430-tdep.c (check_for_saved, msp430_analyze_prologue):
5007 * mn10300-tdep.c (push_reg, check_for_saved)
5008 (mn10300_analyze_prologue): Update.
5009 * mep-tdep.c (is_arg_spill, check_for_saved)
5010 (mep_analyze_prologue): Update.
5011 * m32c-tdep.c (m32c_pv_push, m32c_srcdest_fetch)
5012 (m32c_srcdest_store, m32c_pv_enter, m32c_is_arg_spill)
5013 (m32c_is_struct_return, m32c_analyze_prologue): Update.
5014 * arm-tdep.c (thumb_analyze_prologue, arm_analyze_prologue):
5016 * arc-tdep.c (arc_is_in_prologue, arc_analyze_prologue): Update.
5017 * aarch64-tdep.c (aarch64_analyze_prologue): Update.
5019 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
5021 * linux-nat.h (linux_nat_set_delete_thread): New declaration.
5022 * linux-nat.c (linux_nat_delete_thread): New variable.
5023 (lwp_free): Invoke linux_nat_delete_thread if set.
5024 (linux_nat_set_delete_thread): New function.
5025 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Assign
5026 thread delete callback.
5027 * arm-linux-nat.c (arm_linux_delete_thread): New function.
5028 (_initialize_arm_linux_nat): Assign thread delete callback.
5029 * s390-linux-nat.c (s390_delete_thread): New function.
5030 (_initialize_s390_nat): Assign thread delete callback.
5031 * x86-linux-nat.c (x86_linux_add_target): Likewise.
5032 * nat/aarch64-linux.c (aarch64_linux_delete_thread): New
5034 * nat/aarch64-linux.h (aarch64_linux_delete_thread): New
5036 * nat/x86-linux.c (x86_linux_delete_thread): New function.
5037 * nat/x86-linux.h (x86_linux_delete_thread): New declaration.
5039 2017-10-09 Tom Tromey <tom@tromey.com>
5041 * tui/tui-win.c (tui_set_win_height, parse_scrolling_args): Use
5043 * tui/tui-layout.c (enum tui_status): Use std::string.
5045 2017-10-11 Tom Tromey <tom@tromey.com>
5047 * gdbthread.h (thread_command): Constify.
5048 * inferior.h (detach_command): Constify.
5049 * top.h (set_history, show_history): Constify.
5050 * arm-tdep.c (set_arm_command, show_arm_command): Constify.
5051 * serial.c (serial_set_cmd, serial_show_cmd): Constify.
5052 * bsd-kvm.c (bsd_kvm_cmd): Constify.
5053 * printcmd.c (set_command): Constify.
5054 (non_const_set_command): New function.
5055 * dcache.c (set_dcache_command, show_dcache_command): Constify.
5056 * breakpoint.c (enable_command, disable_command, delete_command)
5057 (catch_command, tcatch_command, set_breakpoint_cmd)
5058 (show_breakpoint_cmd): Constify.
5059 * macrocmd.c (macro_command): Constify.
5060 * infcmd.c (unset_command, kill_command, detach_command)
5061 (info_proc_cmd): Constify.
5062 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Constify.
5063 * auto-load.c (show_auto_load_cmd, set_auto_load_cmd)
5064 (info_auto_load_cmd): Constify.
5065 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
5066 (unset_tdesc_cmd): Constify.
5067 * ada-lang.c (set_ada_command, show_ada_command)
5068 (maint_set_ada_cmd, maint_show_ada_cmd): Constify.
5069 * guile/guile.c (set_guile_command, show_guile_command)
5070 (info_guile_command): Constify.
5071 * tui/tui-win.c (tui_command, set_tui_cmd, show_tui_cmd):
5073 * skip.c (skip_command): Constify.
5074 * compile/compile.c (_initialize_compile): Constify.
5075 * dwarf2read.c (set_dwarf_cmd, show_dwarf_cmd): Constify.
5076 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
5077 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
5078 (maint_btrace_pt_show_cmd): Constify.
5079 * remote.c (set_remote_cmd, show_remote_cmd, remote_command):
5081 * python/python.c (user_show_python, user_set_python): Constify.
5082 * mips-tdep.c (set_mips_command, show_mips_command)
5083 (set_mipsfpu_command): Constify.
5084 * record-btrace.c (cmd_record_btrace_start)
5085 (cmd_set_record_btrace, cmd_show_record_btrace)
5086 (cmd_set_record_btrace_bts, cmd_show_record_btrace_bts)
5087 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): Constify.
5088 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command):
5090 * symfile.c (overlay_command): Constify.
5091 * spu-tdep.c (set_spu_command, show_spu_command): Constify.
5092 * cli/cli-logging.c (set_logging_command, show_logging_command):
5094 * cli/cli-dump.c (dump_command, append_command)
5095 (srec_dump_command, ihex_dump_command, verilog_dump_command)
5096 (tekhex_dump_command, binary_dump_command)
5097 (binary_append_command): Constify.
5098 * cli/cli-decode.c (struct cmd_list_element): Change type of
5100 * cli/cli-cmds.c (info_command, show_command, set_debug)
5101 (show_debug): Constify.
5102 (show_command): Add non-const overload.
5103 * top.c (set_history, show_history): Constify.
5104 * sh-tdep.c (set_sh_command, show_sh_command): Constify.
5105 * command.h (add_prefix_cmd): Accept a cmd_const_cfunc_ftype.
5106 * target.c (target_command): Constify.
5107 * sparc64-tdep.c (info_adi_command): Constify.
5108 * record-full.c (cmd_record_full_start): Constify.
5109 (set_record_full_command): Constify. Fix typo.
5110 (show_record_full_command): Constify.
5111 * thread.c (thread_command, thread_apply_command): Constify.
5112 * memattr.c (dummy_cmd): Constify.
5113 * value.c (function_command): Constify.
5114 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Constify.
5115 * probe.c (info_probes_command): Constify.
5116 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Constify.
5117 * gnu-nat.c (set_task_cmd, show_task_cmd, set_thread_cmd)
5118 (show_thread_cmd, set_thread_default_cmd)
5119 (show_thread_default_cmd): Constify.
5120 (check_empty): Constify.
5121 * tracepoint.c (tfind_command): Constify.
5122 * cp-support.c (maint_cplus_command): Constify.
5123 * windows-tdep.c (info_w32_command): Constify.
5124 * record.c (cmd_record_start, set_record_command)
5125 (show_record_command, info_record_command, cmd_record_goto):
5127 * ravenscar-thread.c (set_ravenscar_command)
5128 (show_ravenscar_command): Constify.
5129 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5131 (add_internal_problem_command): Remove casts.
5132 * arc-tdep.c (maintenance_print_arc_command): Constify.
5133 * valprint.c (set_print, show_print, set_print_raw)
5134 (show_print_raw): Constify.
5135 * maint.c (maintenance_command, maintenance_info_command)
5136 (maintenance_print_command, maintenance_set_cmd)
5137 (maintenance_show_cmd, set_per_command_cmd)
5138 (show_per_command_cmd, maintenance_check_command): Constify.
5139 * language.c (set_check, show_check): Constify.
5140 * typeprint.c (show_print_type, set_print_type): Constify.
5141 * go32-nat.c (go32_info_dos_command): Constify.
5143 2017-10-11 Tom Tromey <tom@tromey.com>
5145 * breakpoint.c (prepare_re_set_context): Remove.
5146 (breakpoint_re_set_one): Update. Don't use cleanups.
5147 (breakpoint_re_set): Use scoped_restore, std::string, and
5148 scoped_restore_current_language.
5150 2017-10-11 Tom Tromey <tom@tromey.com>
5152 * breakpoint.c (commands_command_1): Use std::string.
5153 (cleanup_executing_breakpoints): Remove.
5154 (bpstat_do_actions_1): Use scoped_restore.
5155 (bpstat_check_watchpoint): Use std::string.
5156 (decode_static_tracepoint_spec): Likewise.
5157 (break_range_command): Likewise.
5158 (watch_command_1): Likewise.
5159 (compare_breakpoints): Change argument types.
5160 (clear_command): Use std::vector.
5161 (cleanup_executing_breakpoints): Remove.
5162 (update_global_location_list): Use unique_xmalloc_ptr.
5163 (strace_command): Remove unused declaration.
5165 2017-10-11 John Baldwin <jhb@FreeBSD.org>
5167 * Makefile.in (ALLDEPFILES): Add arm-fbsd-nat.c.
5168 * NEWS: Mention new FreeBSD/arm native configuration.
5169 * configure.host: Add arm*-*-freebsd*.
5170 * configure.nat: Likewise.
5171 * arm-fbsd-nat.c: New file.
5173 2017-10-11 John Baldwin <jhb@FreeBSD.org>
5175 * Makefile.in (ALL_TARGET_OBS): Add arm-fbsd-tdep.o.
5176 (ALLDEPFILES): Add arm-fbsd-tdep.c.
5177 * NEWS: Mention new FreeBSD/arm target.
5178 * configure.tgt: Add arm*-*-freebsd*.
5179 * arm-fbsd-tdep.c: New file.
5180 * arm-fbsd-tdep.h: New file.
5182 2017-10-11 Maciej W. Rozycki <macro@imgtec.com>
5184 * linux-tdep.c (linux_make_corefile_notes): Remove call to
5185 `gdbarch_elfcore_write_linux_prpsinfo'.
5186 * gdbarch.sh (elfcore_write_linux_prpsinfo): Remove architecture
5188 (elf_internal_linux_prpsinfo): Remove declaration.
5189 * gdbarch.h: Regenerate.
5190 * gdbarch.c: Regenerate.
5192 2017-10-11 Maciej W. Rozycki <macro@imgtec.com>
5194 * ppc-linux-tdep.c (ppc_linux_init_abi): Remove call to
5195 `set_gdbarch_elfcore_write_linux_prpsinfo'.
5197 2017-10-11 Pedro Alves <palves@redhat.com>
5199 * breakpoint.c (reattach_breakpoints): Delete.
5200 * breakpoint.h (reattach_breakpoints): Delete.
5202 2017-10-11 Simon Marchi <simon.marchi@ericsson.com>
5204 * symfile.c (registered_sym_fns): Make struct, not typedef.
5205 (DEF_VEC_O (registered_sym_fns)): Remove.
5206 (symtab_fns): Change type to std::vector.
5207 (add_symtab_fns): Adjust.
5208 (find_sym_fns): Adjust.
5210 2017-10-11 Anton Kolesov <Anton.Kolesov@synopsys.com>
5212 * arc-tdep.c (arc_gdbarch_init): Pass proper cpu value to disassembler.
5213 * arc-tdep.h (arc_arch_is_em): New function.
5214 (arc_arch_is_hs): Likewise.
5216 2017-10-11 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com>
5218 * macrotab.h (macro_lookup_inclusion): Remove unnecessary
5219 parentheses in the declaration.
5220 (macro_lookup_inclusion): Likewise.
5221 (macro_lookup_definition): Likewise.
5222 * p-lang.h (pascal_builtin_types): Likewise.
5223 * tui/tui-data.c (tui_win_list): Likewise.
5224 * tui/tui-data.h (tui_win_list): Likewise.
5225 * utils.h (make_cleanup_free_section_addr_info): Likewise.
5227 2017-10-11 Mark Rages <markrages@gmail.com>
5229 * target-memory.c (block_boundaries): Fix for block address not
5230 aligned on block size.
5232 2017-10-10 Pedro Alves <palves@redhat.com>
5233 Tom Tromey <tom@tromey.com>
5235 * breakpoint.c (struct captured_breakpoint_query_args)
5236 (do_captured_breakpoint_query, gdb_breakpoint_query): Delete.
5237 (print_breakpoint): New.
5238 * breakpoint.h (print_breakpoint): Declare.
5239 * common/common-exceptions.h (enum return_reason): Remove
5240 references to catch_exceptions.
5241 * exceptions.c (catch_exceptions, catch_exceptions_with_msg):
5243 * exceptions.h (catch_exceptions_ftype, catch_exceptions)
5244 (catch_exception_ftype, catch_exceptions_with_msg): Delete.
5246 * gdbthread.h (thread_select): Declare.
5247 * mi/mi-cmd-break.c: Don't include gdb.h.
5248 (breakpoint_notify): Use print_breakpoint.
5249 * mi/mi-cmd-catch.c: Don't include gdb.h.
5250 * mi/mi-interp.c: Don't include gdb.h.
5251 (mi_print_breakpoint_for_event): New.
5252 (mi_breakpoint_created, mi_breakpoint_modified): Use
5253 mi_print_breakpoint_for_event.
5254 * mi/mi-main.c: Don't include gdb.h.
5255 (mi_cmd_thread_select): Parse the global thread ID here. Use
5256 thread_select instead of gdb_thread_select.
5257 (mi_cmd_thread_list_ids): Output "thread-ids" tuple here instead
5258 of using gdb_list_thread_ids.
5259 * remote-fileio.c (do_remote_fileio_request): Change type. Reply
5261 (remote_fileio_request): Use TRY/CATCH instead of
5263 * symfile-mem.c (struct symbol_file_add_from_memory_args)
5264 (symbol_file_add_from_memory_wrapper): Delete.
5265 (add_vsyscall_page): Use TRY/CATCH instead of catch_exceptions.
5266 * thread.c: Don't include gdb.h.
5267 (do_captured_list_thread_ids, gdb_list_thread_ids): Delete.
5268 (thread_alive): Use thread_select.
5269 (do_captured_thread_select): Delete, parts salvaged as ...
5270 (thread_select): ... this new function.
5271 (gdb_thread_select): Delete.
5273 2017-10-10 Pedro Alves <palves@redhat.com>
5274 Tom Tromey <tom@tromey.com>
5276 * breakpoint.c (breakpoint_cond_eval): Change return type to bool
5278 (WP_DELETED, WP_VALUE_CHANGED, WP_VALUE_NOT_CHANGED, WP_IGNORE):
5279 No longer macros. Instead ...
5280 (enum wp_check_result): They're now values of this new
5282 (watchpoint_check): Change return type to wp_check_result and
5283 parameter type to bpstat.
5284 (bpstat_check_watchpoint): Use TRY/CATCH instead of catch_errors.
5285 (bpstat_check_breakpoint_conditions): Use TRY/CATCH instead of
5286 catch_errors. Reverse logic of watchpoint_check call.
5287 (breakpoint_re_set_one): Now returns void and takes a breakpoint
5288 pointer as parameter.
5289 (breakpoint_re_set): Use TRY/CATCH instead of catch_errors.
5290 * common/common-exceptions.c (throw_exception_sjlj): Update
5291 comments to avoid mentioning catch_errors.
5292 * exceptions.c (catch_errors): Delete.
5293 * exceptions.h: Update comments to avoid mentioning catch_errors.
5294 (catch_errors_ftype, catch_errors): Delete.
5295 * infrun.c (normal_stop): Use TRY/CATCH instead of catch_errors.
5296 (hook_stop_stub): Delete.
5297 (restore_selected_frame): Change return type to void, and
5298 parameter type to const frame_id &.
5299 (restore_infcall_control_state): Use TRY/CATCH instead of
5301 * main.c (captured_command_loop): Return void and remove
5302 parameter. Remove references to catch_errors.
5303 (captured_main): Use TRY/CATCH instead of catch_errors.
5304 * objc-lang.c (objc_submethod_helper_data)
5305 (find_objc_msgcall_submethod_helper): Delete.
5306 (find_objc_msgcall_submethod): Use TRY/CATCH instead of
5308 * record-full.c (record_full_message): Return void.
5309 (record_full_message_args, record_full_message_wrapper): Delete.
5310 (record_full_message_wrapper_safe): Return bool and use TRY/CATCH
5311 instead of catch_errors.
5312 * solib-aix.c (solib_aix_open_symbol_file_object): Change
5313 parameter type to int.
5314 * solib-darwin.c (open_symbol_file_object): Ditto.
5315 * solib-dsbt.c (open_symbol_file_object): Ditto.
5316 * solib-frv.c (open_symbol_file_object): Ditto.
5317 * solib-svr4.c (open_symbol_file_object): Ditto.
5318 * solib-target.c (solib_target_open_symbol_file_object): Ditto.
5319 * solib.c (update_solib_list): Use TRY/CATCH instead of
5321 * solist.h (struct target_so_ops) <open_symbol_file_object>:
5323 * symmisc.c (struct print_symbol_args): Remove.
5324 (dump_symtab_1): Use TRY/CATCH instead of catch_errors.
5325 (print_symbol): Change type.
5326 * windows-nat.c (handle_load_dll, handle_unload_dll): Return void
5327 and remove parameters.
5328 (catch_errors): New.
5329 (get_windows_debug_event): Adjust.
5331 2017-10-09 Tom Tromey <tom@tromey.com>
5333 * mi/mi-main.c (free_splay_tree): Remove.
5334 (list_available_thread_groups): Use splay_tree_up.
5335 * common/gdb_splay_tree.h: New file.
5337 2017-10-09 Tom Tromey <tom@tromey.com>
5339 * mi/mi-main.c (do_nothing): Remove.
5340 (list_available_thread_groups): Update.
5342 2017-10-09 Pedro Alves <palves@redhat.com>
5344 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>: Skip
5345 reading registers when switching context.
5347 2017-10-09 John Baldwin <jhb@FreeBSD.org>
5349 * fbsd-nat.c (fbsd_siginfo_size): Use gdbarch_long_bit.
5350 (fbsd_convert_siginfo): Likewise.
5351 * fbsd-tdep.c (fbsd_core_xfer_siginfo): Likewise.
5353 2017-10-09 Simon Marchi <simon.marchi@polymtl.ca>
5355 * configure.ac (try_guile_versions): Remove guile-2.2.
5356 * configure: Regenerate.
5358 2017-10-09 Tom Tromey <tom@tromey.com>
5360 * Makefile.in (COMPILE.post, POSTCOMPILE): Restore $(basename).
5361 (COMPILE.pre): Use $(CXX).
5363 2017-10-09 Pedro Alves <palves@redhat.com>
5365 * cp-support.c (cp_remove_params): Return a gdb::unique_xmalloc_ptr.
5367 (overload_list_add_symbol): Adjust to use gdb::unique_xmalloc_ptr.
5368 * cp-support.h (cp_remove_params): Now returns a
5369 gdb::unique_xmalloc_ptr.
5370 * dwarf2read.c (find_slot_in_mapped_hash): Now returns bool.
5371 Adjust to cp_remove_params returning a gdb::unique_xmalloc_ptr.
5372 * psymtab.c (psymtab_search_name): Adjust to cp_remove_params
5373 returning a gdb::unique_xmalloc_ptr.
5374 (lookup_partial_symbol): Adjust to use gdb::unique_xmalloc_ptr.
5375 * stack.c (find_frame_funname): Adjust to cp_remove_params
5376 returning a gdb::unique_xmalloc_ptr.
5378 2017-10-08 Tom Tromey <tom@tromey.com>
5380 * dwarf2read.c (dwarf2_get_dwz_file): Use
5381 gdb::unique_xmalloc_ptr.
5382 (find_slot_in_mapped_hash): Likewise.
5383 (dwarf2_physname): Likewise.
5384 (create_dwo_unit_in_dwp_v1): Use std::string.
5385 (create_dwo_unit_in_dwp_v2): Likewise.
5386 (lookup_dwo_cutu): Likewise.
5387 (inherit_abstract_dies): Use std::vector.
5388 (read_array_type): Likewise.
5389 (dwarf_decode_macros): Remove unused declaration.
5390 (unsigned_int_compar): Remove.
5391 (dwarf2_build_psymtabs_hard): Use scoped_restore.
5392 (psymtabs_addrmap_cleanup): Remove.
5394 2017-10-08 Tom Tromey <tom@tromey.com>
5396 * frame-unwind.c (frame_unwind_try_unwinder): Update.
5397 * frame.h (frame_cleanup_after_sniffer): Declare.
5398 (frame_prepare_for_sniffer): Return void.
5399 * frame.c (frame_cleanup_after_sniffer): No longer static. Change
5401 (frame_prepare_for_sniffer): Return void.
5403 2017-10-08 Tom Tromey <tom@tromey.com>
5405 * utils.h (make_cleanup_value_free): Remove.
5406 * utils.c (do_value_free, struct cleanup): Remove.
5407 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>:
5409 * value.h (struct value_deleter): New.
5410 (gdb_value_up): New typedef.
5412 2017-10-08 Tom Tromey <tom@tromey.com>
5414 * symtab.c (free_search_symbols, do_free_search_symbols_cleanup)
5415 (make_cleanup_free_search_symbols): Remove.
5416 (search_symbols): Return std::vector.
5417 (symbol_search::compare_search_syms): Now member of
5418 symbol_search. Change arguments.
5419 (sort_search_symbols_remove_dups): Change arguments. Rewrite.
5420 (symtab_symbol_info, rbreak_command): Update.
5421 * symtab.h (struct symbol_search) <next>: Remove.
5423 (symbol_search::operator<): New function.
5424 (symbol_search::operator==): New function.
5425 (search_symbols): Remove std::vector.
5426 (free_search_symbols, make_cleanup_free_search_symbols): Remove.
5427 (symbol_search::compare_search_syms): Declare.
5429 2017-10-06 Yao Qi <yao.qi@linaro.org>
5431 * Makefile.in (ALL_64_TARGET_OBS): Replace aarch64-insn.o with
5432 arch/aarch64-insn.o.
5434 * configure.tgt: Replace aarch64-insn.o with arch/aarch64-insn.o.
5436 2017-10-06 Yao Qi <yao.qi@linaro.org>
5438 * Makefile.in (ALL_TARGET_OBS): Replace arm.o, arm-get-next-pcs.o,
5439 and arm-linux.o with arch/arm.o, arch/arm-get-next-pcs.o and
5440 arch/arm-linux.o respectively.
5441 * configure.tgt: Likewise.
5443 2017-10-06 Yao Qi <yao.qi@linaro.org>
5445 * Makefile.in (ALL_TARGET_OBS): Rename i386.o to arch/i386.o.
5446 * configure.tgt (i386_tobjs): Replace i386.o with arch/i386.o.
5448 2017-10-06 Pedro Alves <palves@redhat.com>
5450 * windows-nat.c: Include <algorithm>.
5452 2017-10-06 Yao Qi <yao.qi@linaro.org>
5454 * configure.tgt (i386_tobjs): New variable.
5455 (amd64_tobjs): New variable.
5456 Set $cpu_obs and $os_obs.
5458 2017-10-06 Yao Qi <yao.qi@linaro.org>
5460 * Makefile.in (CONFIG_SRC_SUBDIR): New.
5461 (ALL_64_TARGET_OBS): Replace amd64.o with arch/amd64.o.
5462 (clean): Remove object files and dependency files.
5463 (distclean): Remove the directory.
5464 * configure.ac: Invoke AC_CONFIG_COMMANDS.
5465 * configure: Re-generated.
5466 * configure.tgt: Replace amd64.o with arch/amd64.o.
5468 2017-10-05 Jose E. Marchesi <jose.marchesi@oracle.com>
5471 * arm-tdep.c (arm_decode_misc_memhint_neon): Fix decoding of CPS
5474 2017-10-05 Pedro Alves <palves@redhat.com>
5476 * linux-nat.c (linux_child_follow_fork): When following the parent
5477 and detaching the child, consult the parent thread's architecture
5478 instead of the child's.
5480 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
5482 * ax.h: Do not include "doublest.h".
5483 (union agent_val): Remove.
5485 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
5487 * dfp.h (MAX_DECIMAL_STRING): Move to dfp.c.
5488 (decimal_to_string): Return std::string object.
5489 (decimal_from_string): Accept std::string object. Return bool.
5490 (decimal_from_integral, decimal_from_doublest): Remove.
5491 (decimal_from_longest): Add prototype.
5492 (decimal_from_ulongest): Likewise.
5493 (decimal_to_longest): Likewise.
5494 (decimal_from_doublest): Likewise.
5495 * dfp.c: Do not include "gdbtypes.h" or "value.h".
5496 (MAX_DECIMAL_STRING): Move here.
5497 (decimal_to_string): Return std::string object.
5498 (decimal_from_string): Accept std::string object. Return bool.
5499 (decimal_from_integral): Remove, replace by ...
5500 (decimal_from_longest, decimal_from_ulongest): ... these new functions.
5501 (decimal_to_longest): New function.
5502 (decimal_from_floating): Remove, replace by ...
5503 (decimal_from_doublest): ... this new function.
5504 (decimal_to_doublest): Update to new decimal_to_string interface.
5506 * value.c (unpack_long): Use decimal_to_longest.
5507 * valops.c (value_cast): Use decimal_from_doublest instead of
5508 decimal_from_floating. Use decimal_from_[u]longest isntead of
5509 decimal_from_integral.
5510 * valarith.c (value_args_as_decimal): Likewise.
5511 * valprint.c (print_decimal_floating): Update to new
5512 decimal_to_string interface.
5513 * printcmd.c (printf_decfloat): Likewise.
5514 * c-exp.y (parse_number): Update to new decimal_from_string interface.
5516 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
5518 * doublest.h: Do not include "floatformat.h". Remove stale comments.
5519 * gdbtypes.c: Include "floatformat.h".
5520 * value.c: Likewise.
5521 * m68k-tdep.c: Likewise.
5523 * findvar.c: Do not include "floatformat.h".
5524 * amd64-darwin-tdep.c: Likewise.
5525 * arm-linux-tdep.c: Likewise.
5526 * i386-darwin-tdep.c: Likewise.
5527 * i387-tdep.c: Likewise.
5528 * m68k-linux-tdep.c: Likewise.
5529 * mep-tdep.c: Likewise.
5530 * mips-tdep.c: Likewise.
5531 * nios2-tdep.c: Likewise.
5532 * s390-linux-tdep.c: Likewise.
5533 * sparc-obsd-tdep.c: Likewise.
5534 * sparc-tdep.c: Likewise.
5535 * sparc64-tdep.c: Likewise.
5536 * spu-tdep.c: Likewise.
5537 * tic6x-tdep.c: Likewise.
5538 * tilegx-tdep.c: Likewise.
5539 * vax-tdep.c: Likewise.
5540 * xstormy16-tdep.c: Likewise.
5541 * xtensa-tdep.c: Likewise.
5543 * top.c: Do not include "doublest.h".
5544 * aarch64-tdep.c: Likewise.
5545 * alpha-tdep.c: Likewise.
5546 * arm-linux-tdep.c: Likewise.
5547 * m68k-linux-tdep.c: Likewise.
5548 * tilegx-tdep.c: Likewise.
5549 * xstormy16-tdep.c: Likewise.
5551 2017-10-05 John Baldwin <jhb@FreeBSD.org>
5553 * mips-fbsd-tdep.c (MIPS_INST_ADDIU_A0_SP_N32): Define.
5554 (mipsn32_fbsd_sigframe): Define.
5555 (mips_fbsd_init_abi): Install mipsn32_fbsd_sigframe unwinder
5556 for FreeBSD/mipsn32.
5558 2017-10-05 John Baldwin <jhb@FreeBSD.org>
5560 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_EHDRFLAGS and
5563 2017-10-05 Tristan Gingold <tgingold@free.fr>
5565 * MAINTAINERS (Misc): Update my email address.
5567 2017-10-04 Pedro Alves <palves@redhat.com>
5569 * remote.c (get_remote_arch_state): New 'gdbarch' parameter. Use
5570 it instead of target_gdbarch.
5571 (get_remote_state, get_remote_packet_size): Adjust
5572 get_remote_arch_state calls, passing down target_gdbarch
5574 (packet_reg_from_regnum, packet_reg_from_pnum): New parameter
5575 'gdbarch' and use it instead of target_gdbarch.
5576 (get_memory_packet_size): Adjust get_remote_arch_state calls,
5577 passing down target_gdbarch explicitly.
5578 (struct stop_reply) <arch>: New field.
5579 (remote_parse_stop_reply): Use the stopped thread's architecture,
5580 not the current inferior's. Save the architecture in the
5582 (process_stop_reply): Use the stop reply's architecture.
5583 (process_g_packet, remote_fetch_registers)
5584 (remote_prepare_to_store, store_registers_using_G)
5585 (remote_store_registers): Adjust get_remote_arch_state calls,
5586 using the regcache's architecture.
5587 (remote_get_trace_status): Adjust get_remote_arch_state calls,
5588 passing down target_gdbarch explicitly.
5589 * spu-multiarch.c (spu_thread_architecture): Defer to the target
5590 beneath instead of calling target_gdbarch.
5591 * target.c (default_thread_architecture): Use the specified
5592 inferior's architecture, instead of the current inferior's
5593 architecture (via target_gdbarch).
5595 2017-10-04 Pedro Alves <palves@redhat.com>
5597 * regcache.c (get_thread_arch_regcache): Remove null_ptid special
5599 (regcache_print): Handle !target_has_registers here instead.
5601 2017-10-04 Pedro Alves <palves@redhat.com>
5603 * frame.c (create_test_frame): Delete.
5604 * frame.h (create_test_frame): Delete.
5605 * gdbarch-selftests.c: Include gdbthread.h and target.h.
5606 (class regcache_test): Delete.
5607 (test_target_has_registers, test_target_has_stack)
5608 (test_target_has_memory, test_target_prepare_to_store)
5609 (test_target_store_registers): New functions.
5610 (test_target_ops): New class.
5611 (register_to_value_test): Error out if there's already a
5612 process_stratum (or higher) target pushed. Create a fuller mock
5613 environment, with mock target_ops, inferior, address space, thread
5615 * progspace.c (struct address_space): Move to ...
5616 * progspace.h (struct address_space): ... here.
5617 * regcache.h (regcache::~regcache, regcache::raw_write)
5618 [GDB_SELF_TEST]: No longer virtual.
5620 2017-10-04 Simon Marchi <simon.marchi@ericsson.com>
5622 * mi/mi-main.c (list_available_thread_groups): Reverse filter logic.
5624 2017-10-04 Pedro Alves <palves@redhat.com>
5626 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Move code
5627 out of 'between TRY and CATCH'.
5629 2017-10-04 Pedro Alves <palves@redhat.com>
5631 * cli/cli-cmds.c (complete_command): Add missing END_CATCH.
5632 * common/common-exceptions.h (TRY): Open an outermost scope.
5633 Expand intro comment.
5635 (END_CATCH): Close the outermost scope.
5636 * completer.c (complete_line_internal): Add missing END_CATCH.
5638 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
5640 * NEWS (Changes since GDB 8.0): Add entry about new
5641 'set-cwd-on-gdbserver' feature.
5642 (New remote packets): Add entry for QSetWorkingDir.
5643 * common/common-inferior.h (set_inferior_cwd): New prototype.
5644 * infcmd.c (set_inferior_cwd): Remove "static".
5645 (show_cwd_command): Expand text to include remote debugging.
5646 * remote.c: Add PACKET_QSetWorkingDir.
5647 (remote_protocol_features) <QSetWorkingDir>: New entry for
5648 PACKET_QSetWorkingDir.
5649 (extended_remote_set_inferior_cwd): New function.
5650 (extended_remote_create_inferior): Call
5651 "extended_remote_set_inferior_cwd".
5652 (_initialize_remote): Call "add_packet_config_cmd" for
5655 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
5657 * NEWS (New commands): Mention "set/show cwd".
5658 * cli/cli-cmds.c (_initialize_cli_cmds): Mention "set cwd" on
5659 "cd" command's help text.
5660 * common/common-inferior.h (get_inferior_cwd): New prototype.
5661 * infcmd.c (inferior_cwd_scratch): New global variable.
5662 (set_inferior_cwd): New function.
5663 (get_inferior_cwd): Likewise.
5664 (set_cwd_command): Likewise.
5665 (show_cwd_command): Likewise.
5666 (_initialize_infcmd): Add "set/show cwd" commands.
5667 * inferior.h (class inferior) <cwd>: New field.
5668 * nat/fork-inferior.c: Include "gdb_tilde_expand.h".
5669 (fork_inferior): Change inferior's cwd before its execution.
5670 * windows-nat.c (windows_create_inferior): Pass inferior's cwd
5673 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
5675 * Makefile.in (SFILES): Add gdb_tilde_expand.c.
5676 (HFILES_NO_SRCDIR): Add gdb_tilde_expand.h.
5677 (COMMON_OBS): Add gdb_tilde_expand.o.
5678 * common/gdb_tilde_expand.c: New file.
5679 * common/gdb_tilde_expand.h: Likewise.
5681 2017-10-03 Maciej W. Rozycki <macro@imgtec.com>
5683 * gdbarch.sh (objfile): Remove duplicate declaration.
5684 * gdbarch.h: Regenerate.
5686 2017-10-03 Tom Tromey <tom@tromey.com>
5688 * utils.c (internal_vproblem): Use string_vprintf.
5690 2017-10-03 Tom Tromey <tom@tromey.com>
5692 * printcmd.c (info_symbol_command): Use std::string.
5694 2017-10-03 Tom Tromey <tom@tromey.com>
5696 * top.c (gdb_safe_append_history): Use std::string.
5698 2017-10-03 Tom Tromey <tom@tromey.com>
5700 * event-top.c (stdin_event_handler): Update.
5701 * main.c (captured_main_1): Update.
5702 * top.h (make_delete_ui_cleanup): Remove.
5703 (struct ui): Add constructor and destructor.
5704 (new_ui, delete_ui): Remove.
5705 * top.c (make_delete_ui_cleanup): Remove.
5706 (new_ui_command): Use std::unique_ptr.
5707 (delete_ui_cleanup): Remove.
5708 (ui::ui): Rename from new_ui. Update.
5710 (ui::~ui): Rename from delete_ui. Update.
5712 2017-10-03 Tom Tromey <tom@tromey.com>
5714 * symfile.c (load_progress): Use gdb::byte_vector.
5716 2017-10-03 Tom Tromey <tom@tromey.com>
5718 * mi/mi-main.c (mi_cmd_trace_frame_collected): Remove unused
5720 * printcmd.c (x_command): Remove unused declaration.
5721 * symfile.c (symbol_file_command): Remove unused declaration.
5723 2017-10-03 Tom Tromey <tom@tromey.com>
5725 * utils.c (internal_vproblem): Use std::string.
5726 (defaulted_query): Likewise.
5728 2017-10-03 Tom Tromey <tom@tromey.com>
5730 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Update.
5731 * top.c (execute_command_to_string): Update.
5732 * utils.c (make_cleanup_restore_page_info): Remove.
5733 (do_restore_page_info_cleanup): Remove.
5734 (set_batch_flag_and_restore_page_info):
5736 (make_cleanup_restore_page_info): Remove.
5737 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
5738 (~set_batch_flag_and_restore_page_info): New
5739 (make_cleanup_restore_uinteger): Remove.
5740 (make_cleanup_restore_integer): Remove.
5741 (struct restore_integer_closure): Remove.
5742 (restore_integer): Remove.
5743 * utils.h (struct set_batch_flag_and_restore_page_info): New
5745 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
5746 (make_cleanup_restore_page_info): Remove.
5747 (make_cleanup_restore_uinteger) Remove.
5748 (make_cleanup_restore_integer) Remove.
5750 2017-10-03 Tom Tromey <tom@tromey.com>
5752 * record-full.h (record_full_gdb_operation_disable_set): Return
5753 scoped_restore_tmpl<int>.
5754 * infrun.c (adjust_pc_after_break): Update.
5755 (handle_signal_stop): Update.
5756 * record-full.c (record_full_gdb_operation_disable_set): Return
5757 scoped_restore_tmpl<int>.
5758 (record_full_wait_1, record_full_insert_breakpoint)
5759 (record_full_remove_breakpoint, record_full_save)
5760 (record_full_goto_insn): Update.
5762 2017-10-02 Tom Tromey <tom@tromey.com>
5765 * rust-lang.c (rust_val_print_str): New function.
5766 (val_print_struct): Call it.
5767 (rust_subscript): Preserve name of slice type.
5769 2017-10-02 Tom Tromey <tom@tromey.com>
5771 * rust-lang.c (rust_subscript): Handle slices in
5772 EVAL_AVOID_SIDE_EFFECTS case.
5774 2017-10-02 Tom Tromey <tom@tromey.com>
5776 * rust-lang.c (rust_slice_type_p): Recognize &str as a slice type.
5778 2017-10-02 Tom Tromey <tom@tromey.com>
5780 * rust-lang.h (rust_slice_type): Add "extern".
5782 2017-10-02 Tom Tromey <tom@tromey.com>
5783 Pedro Alves <palves@redhat.com>
5785 * ada-lang.h (ada_exc_info::operator<): Make const.
5786 (ada_exc_info::operator==): Make const.
5787 * ada-lang.c (ada_exc_info::operator<, ada_exc_info::operator==):
5790 2017-09-29 Tom Tromey <tom@tromey.com>
5792 * target.c (read_whatever_is_readable): Change type of "result".
5794 (free_memory_read_result_vector): Remove.
5795 (read_memory_robust): Change return type. Update.
5796 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update. Use
5797 bin2hex, std::string.
5798 * target.h (memory_read_result_s): Remove typedef.
5799 (free_memory_read_result_vector): Remove.
5800 (read_memory_robust): Return std::vector.
5802 2017-09-29 Tom Tromey <tom@tromey.com>
5804 * mi/mi-main.c (captured_mi_execute_command): Use scope_restore.
5806 2017-09-29 Tom Tromey <tom@tromey.com>
5808 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Update.
5809 * ada-lang.h (struct ada_exc_info): Remove typedef. Declare
5810 operator< and operator==.
5811 (ada_exceptions_list): Return a std::vector.
5812 * ada-lang.c (ada_exc_info::operator<): Rename from
5813 compare_ada_exception_info.
5814 (ada_exc_info::operator==): New.
5815 (sort_remove_dups_ada_exceptions_list): Change type of
5817 (ada_add_standard_exceptions, ada_add_exceptions_from_frame)
5818 (ada_add_global_exceptions): Likewise.
5819 (ada_exceptions_list_1): Return a std::vector.
5820 (ada_exceptions_list): Likewise.
5822 2017-09-29 Tom Tromey <tom@tromey.com>
5824 * mi/mi-main.c (struct print_one_inferior_data) <inferiors>: Now a
5826 (print_one_inferior): Update.
5827 (free_vector_of_ints): Remove.
5828 (list_available_thread_groups): Change "ids" to std::set.
5829 (mi_cmd_list_thread_groups): Update.
5830 (struct collect_cores_data) <core>: Now a std::set.
5831 (collect_cores): Update.
5833 (print_one_inferior): Update.
5835 2017-09-29 Tom Tromey <tom@tromey.com>
5837 * mi/mi-main.c (mi_execute_cli_command): Use std::string.
5838 (mi_execute_async_cli_command): Likewise.
5839 (mi_cmd_trace_frame_collected): Use field_fmt.
5841 2017-09-29 Tom Tromey <tom@tromey.com>
5843 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Use
5846 2017-09-29 Tom Tromey <tom@tromey.com>
5848 * mi/mi-parse.c (mi_parse): Remove unused declaration.
5850 2017-09-29 Tom Tromey <tom@tromey.com>
5852 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Don't copy "oarg".
5854 2017-09-29 Tom Tromey <tom@tromey.com>
5856 * varobj.h (varobj_gen_name): Return std::string.
5857 * varobj.c (varobj_gen_name): Return std::string.
5858 * mi/mi-cmd-var.c (mi_cmd_var_create): Use std::string.
5859 (mi_cmd_var_delete): Don't copy "name".
5861 2017-09-29 Tom Tromey <tom@tromey.com>
5863 * mi/mi-cmd-break.c (mi_argv_to_format): Return std::string.
5864 (mi_cmd_break_insert_1): Update.
5866 2017-09-29 Tom Tromey <tom@tromey.com>
5868 * target.h (make_scoped_defer_target_commit_resume): Update.
5869 * target.c (make_scoped_defer_target_commit_resume): Rename from
5870 make_cleanup_defer_target_commit_resume. Return a
5872 * infrun.c (proceed): Use make_scoped_defer_target_commit_resume.
5874 2017-09-29 Tom Tromey <tom@tromey.com>
5876 * main.c (captured_main_1): Remove unused declaration.
5877 * spu-multiarch.c (parse_spufs_run): Remove unused declaration.
5879 2017-09-29 Tom Tromey <tom@tromey.com>
5881 * symtab.c (search_symbols): Remove unused outer cleanup.
5882 (make_source_files_completion_list): Remove unused declaration.
5884 2017-09-29 Tom Tromey <tom@tromey.com>
5886 * mt-tdep.c (mt_push_dummy_call): Use gdb::byte_vector.
5888 2017-09-29 Tom Tromey <tom@tromey.com>
5890 * xstormy16-tdep.c (xstormy16_push_dummy_call): Use
5893 2017-09-29 Tom Tromey <tom@tromey.com>
5895 * complaints.c (vcomplaint): Use std::string.
5897 2017-09-29 Tom Tromey <tom@tromey.com>
5899 * tracepoint.c (trace_variable_command): Use std::string.
5900 (encode_actions_1): Remove unused declarations.
5901 (create_tsv_from_upload): Use std::string.
5903 2017-09-29 Tom Tromey <tom@tromey.com>
5905 * cp-support.c (gdb_demangle): Use std::string.
5907 2017-09-29 Tom Tromey <tom@tromey.com>
5909 * stack.c (parse_frame_specification): Use std::string
5910 (info_frame_command): Use gdb::unique_xmalloc_ptr.
5912 2017-09-29 Tom Tromey <tom@tromey.com>
5914 * tilegx-tdep.c (tilegx_push_dummy_call): Use gdb::byte_vector.
5916 2017-09-29 Tom Tromey <tom@tromey.com>
5918 * utils.c (vfprintf_maybe_filtered): Use std::string.
5919 (vfprintf_unfiltered): Likewise.
5921 2017-09-29 Tom Tromey <tom@tromey.com>
5923 * event-top.c (top_level_prompt): Return std::string.
5924 (display_gdb_prompt): Update.
5926 2017-09-29 Tom Tromey <tom@tromey.com>
5928 * unittests/common-utils-selftests.c (format): New function.
5929 (string_vprintf_tests): New function.
5930 (_initialize_common_utils_selftests): Register new tests.
5931 * common/common-utils.c (string_vprintf): New function.
5932 * common/common-utils.h (string_vprintf): Declare.
5934 2017-09-29 Pedro Alves <palves@redhat.com>
5936 * common/rsp-low.c (unpack_varlen_hex): Constify.
5937 * common/rsp-low.h (unpack_varlen_hex): Constify.
5938 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
5940 * remote.c (remote_set_permissions, read_ptid)
5941 (remote_current_thread, remote_get_threads_with_qthreadinfo)
5942 (remote_static_tracepoint_marker_at)
5943 (remote_static_tracepoint_markers_by_strid)
5944 (stop_reply_extract_thread, remote_parse_stop_reply): Constify.
5945 * tracepoint.c (parse_trace_status, parse_tracepoint_status)
5946 (parse_tracepoint_definition, parse_tsv_definition)
5947 (parse_static_tracepoint_marker_definition): Constify.
5948 * tracepoint.h (parse_static_tracepoint_marker_definition)
5949 (parse_trace_status, parse_tracepoint_status)
5950 (parse_tracepoint_definition, parse_tsv_definition): Constify.
5952 2017-09-29 Pedro Alves <palves@redhat.com>
5954 * remote.c (target_buf, target_buf_size): Delete.
5955 (remote_get_noisy_reply): Remove buf_p and sizeof_buf parameters.
5956 Use the connection's packet buffer instead.
5957 All callers adjusted.
5958 (_initialize_remote): Remove references to target_buf and
5961 2017-09-28 Pedro Alves <palves@redhat.com>
5963 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5964 unittests/common-utils-selftests.c.
5965 (SUBDIR_UNITTESTS_OBS): Add common-utils-selftests.o.
5966 (COMMON_OBS): Remove utils-selftests.o.
5967 * utils-selftests.c: Move to ...
5968 * unittests/common-utils-selftests.c: ... here and rename self
5969 test to "string_printf".
5971 2017-09-28 Alexander Shaposhnikov <alexander.v.shaposhnikov@gmail.com> (tiny patch)
5973 * dwarf2read.c (open_and_init_dwp_file): Protect against dwp_file
5974 having NULL cus or tus.
5976 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
5978 * arm-tdep.c: (convert_from_extended): Remove.
5979 (convert_to_extended): Likewise.
5980 (arm_extract_return_value): Use convert_typed_floating.
5981 (arm_store_return_value): Likewise.
5983 * sh-tdep.h (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
5984 * sh-tdep.c: Do not include "floatformat.h".
5985 (sh_littlebyte_bigword_type): New function.
5986 (sh_register_convert_to_virtual): Use convert_typed_floating.
5987 (sh_register_convert_to_raw): Likewise.
5988 * sh64-tdep.c: (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
5989 (sh64_littlebyte_bigword_type): New function.
5990 (sh64_extract_return_value): Use convert_typed_floating.
5991 (sh64_register_convert_to_virtual): Likewise.
5992 (sh64_register_convert_to_raw): Likewise.
5994 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
5996 * doublest.h (floatformat_from_type): Move to gdbtypes.h.
5997 * doublest.c (floatformat_from_type): Move to gdbtypes.c.
5999 * gdbtypes.h (union type_specific): Make field floatformat hold
6000 just a single struct floatformat, not an array.
6001 (floatformat_from_type): Move here.
6002 * gdbtypes.c (floatformat_from_type): Move here. Update to
6003 changed TYPE_FLOATFORMAT definition.
6004 (verify_floatformat): Update to changed TYPE_FLOATFORMAT.
6005 (recursive_dump_type): Likewise.
6006 (init_float_type): Install correct floatformat for byte order.
6007 (arch_float_type): Likewise.
6009 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
6011 * gdbtypes.c (init_type): Change incoming argument from
6012 length-in-bytes to length-in-bits. Assert length is a
6013 multiple of TARGET_CHAR_BITS.
6014 (arch_type, arch_flags_type): Likewise.
6015 (init_integer_type): Update call to init_type.
6016 (init_character_type): Likewise.
6017 (init_boolean_type): Likewise.
6018 (init_float_type): Likewise.
6019 (init_decfloat_type): Likewise.
6020 (init_complex_type): Likewise.
6021 (init_pointer_type): Likewise.
6022 (objfile_type): Likewise.
6023 (arch_integer_type): Update call to arch_type.
6024 (arch_character_type): Likewise.
6025 (arch_boolean_type): Likewise.
6026 (arch_float_type): Likewise.
6027 (arch_decfloat_type): Likewise.
6028 (arch_complex_type): Likewise.
6029 (arch_pointer_type): Likewise.
6030 (gdbtypes_post_init): Likewise.
6032 * dwarf2read.c (dwarf2_init_float_type): Update call to init_type.
6033 (read_base_type): Likewise.
6034 * mdebugread.c (basic_type): Likewise.
6035 * stabsread.c (dbx_init_float_type): Likewise.
6036 (rs6000_builtin_type): Likewise.
6037 (read_range_type): Likewise. Also, fix call to init_integer_type
6038 with erroneous length argument.
6040 * ada-lang.c (ada_language_arch_info): Update call to arch_type.
6041 * d-lang.c (build_d_types): Likewise.
6042 * f-lang.c (build_fortran_types): Likewise.
6043 * go-lang.c (build_go_types): Likewise.
6044 * opencl-lang.c (build_opencl_types): Likewise.
6045 * jit.c (finalize_symtab): Likewise.
6046 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
6047 (build_std_type_info_type): Likewise.
6048 * target-descriptions.c (tdesc_gdb_type): Likewise. Also,
6049 update call to arch_flags_type.
6051 * linux-tdep.c (linux_get_siginfo_type_with_fields): Update call to
6053 * fbsd-tdep.c (fbsd_get_siginfo_type): Likewise.
6054 * windows-tdep.c (windows_get_tlb_type): Likewise.
6056 * avr-tdep.c (avr_gdbarch_init): Update call to arch_type.
6057 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
6058 * m32c-tdep.c (make_types): Likewise.
6059 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
6060 (rl78_psw_type): Update call to arch_flags_type.
6061 * m68k-tdep.c (m68k_ps_type): Update call to arch_flags_type.
6062 * rx-tdep.c (rx_psw_type): Likewise.
6063 (rx_fpsw_type): Likewise.
6064 * sparc-tdep.c (sparc_psr_type): Likewise.
6065 (sparc_fsr_type): Likewise.
6066 * sparc64-tdep.c (sparc64_pstate_type): Likewise.
6067 (sparc64_ccr_type): Likewise.
6068 (sparc64_fsr_type): Likewise.
6069 (sparc64_fprs_type): Likewise.
6071 2017-09-27 Tom Tromey <tom@tromey.com>
6073 * findcmd.c (find_command): Constify.
6075 2017-09-27 Tom Tromey <tom@tromey.com>
6077 * ada-tasks.c (task_command_1, task_command): Constify.
6079 2017-09-27 Tom Tromey <tom@tromey.com>
6081 * symtab.c (maintenance_print_symbol_cache)
6082 (maintenance_flush_symbol_cache)
6083 (maintenance_print_symbol_cache_statistics): Constify.
6085 2017-09-27 Tom Tromey <tom@tromey.com>
6087 * inferior.c (detach_inferior_command, kill_inferior_command)
6088 (inferior_command): Constify.
6090 2017-09-27 Tom Tromey <tom@tromey.com>
6092 * regcache.c (regcache_print, maintenance_print_registers)
6093 (maintenance_print_raw_registers)
6094 (maintenance_print_cooked_registers)
6095 (maintenance_print_register_groups)
6096 (maintenance_print_remote_registers): Constify.
6098 2017-09-27 Tom Tromey <tom@tromey.com>
6100 * printcmd.c (map_display_numbers, undisplay_command)
6101 (enable_disable_display_command, enable_display_command)
6102 (disable_display_command): Constify.
6104 2017-09-27 Tom Tromey <tom@tromey.com>
6106 * breakpoint.h (delete_command): Don't declare.
6107 * breakpoint.c (delete_command, enable_once_command)
6108 (enable_count_command, enable_delete_command, breakpoint_1)
6109 (maintenance_info_breakpoints, stopin_command, stopat_command)
6110 (delete_command, delete_trace_command, save_breakpoints)
6111 (save_breakpoints_command, save_tracepoints_command): Constify.
6113 2017-09-27 Tom Tromey <tom@tromey.com>
6115 * macrocmd.c (macro_expand_command, macro_expand_once_command)
6116 (skip_ws, extract_identifier, macro_define_command)
6117 (macro_undef_command, macro_list_command): Constify.
6119 2017-09-27 Tom Tromey <tom@tromey.com>
6121 * infcmd.c (environment_info, set_environment_command)
6122 (unset_environment_command, path_info, info_proc_cmd_1)
6123 (info_proc_cmd_mappings, info_proc_cmd_stat)
6124 (info_proc_cmd_status, info_proc_cmd_cwd, info_proc_cmd_cmdline)
6125 (info_proc_cmd_exe, info_proc_cmd_all): Constify.
6127 2017-09-27 Tom Tromey <tom@tromey.com>
6129 * i386-tdep.c (i386_mpx_info_bounds, i386_mpx_set_bounds):
6132 2017-09-27 Tom Tromey <tom@tromey.com>
6134 * symfile-mem.c (add_symbol_file_from_memory_command): Constify.
6136 2017-09-27 Tom Tromey <tom@tromey.com>
6138 * demangle.c (demangle_command): Constify.
6140 2017-09-27 Tom Tromey <tom@tromey.com>
6142 * progspace.c (maintenance_info_program_spaces_command):
6145 2017-09-27 Tom Tromey <tom@tromey.com>
6147 * compile/compile.c (check_raw_argument, compile_file_command)
6148 (compile_code_command, compile_print_command): Constify.
6150 2017-09-27 Tom Tromey <tom@tromey.com>
6152 * reggroups.c (maintenance_print_reggroups): Constify.
6154 2017-09-27 Tom Tromey <tom@tromey.com>
6156 * dwarf2read.c (save_gdb_index_command): Constify.
6158 2017-09-27 Tom Tromey <tom@tromey.com>
6160 * stap-probe.c (info_probes_stap_command): Constify.
6162 2017-09-27 Tom Tromey <tom@tromey.com>
6164 * fork-child.c (unset_exec_wrapper_command): Constify.
6166 2017-09-27 Tom Tromey <tom@tromey.com>
6168 * btrace.c (get_uint, get_context_size, no_chunk)
6169 (maint_btrace_packet_history_cmd)
6170 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
6171 (maint_info_btrace_cmd): Constify.
6173 2017-09-27 Tom Tromey <tom@tromey.com>
6175 * reverse.c (delete_bookmark_command): Constify.
6177 2017-09-27 Tom Tromey <tom@tromey.com>
6179 * remote.c (set_memory_packet_size)
6180 (set_memory_write_packet_size, show_memory_write_packet_size)
6181 (set_memory_read_packet_size, show_memory_read_packet_size)
6182 (compare_sections_command, packet_command, remote_put_command)
6183 (remote_get_command, remote_delete_command): Constify.
6185 2017-09-27 Tom Tromey <tom@tromey.com>
6187 * mips-tdep.c (show_mipsfpu_command, set_mipsfpu_single_command)
6188 (set_mipsfpu_double_command, set_mipsfpu_none_command)
6189 (set_mipsfpu_auto_command): Constify.
6191 2017-09-27 Tom Tromey <tom@tromey.com>
6193 * cli/cli-cmds.h (cd_command): Constify.
6194 * cli/cli-cmds.c (cd_command): Constify.
6196 2017-09-27 Tom Tromey <tom@tromey.com>
6198 * thread.c (thread_name_command, thread_find_command): Constify.
6200 2017-09-27 Tom Tromey <tom@tromey.com>
6202 * probe.c (enable_probes_command, disable_probes_command):
6205 2017-09-27 Tom Tromey <tom@tromey.com>
6207 * symfile.c (symbol_file_command): Constify.
6208 * gdbcore.h (deprecated_file_changed_hook): Constify.
6209 * exec.c (deprecated_file_changed_hook, exec_file_command)
6210 (file_command): Constify.
6211 * defs.h (symbol_file_command): Constify.
6213 2017-09-27 Tom Tromey <tom@tromey.com>
6215 * remote-fileio.c (set_system_call_allowed)
6216 (show_system_call_allowed): Constify.
6218 2017-09-27 Tom Tromey <tom@tromey.com>
6220 * tracepoint.c (delete_trace_variable_command)
6221 (tfind_end_command, tfind_start_command, tfind_pc_command)
6222 (tfind_tracepoint_command, tfind_line_command)
6223 (tfind_range_command, tfind_outside_command): Constify.
6225 2017-09-27 Tom Tromey <tom@tromey.com>
6227 * ax-gdb.c (maint_agent_printf_command, agent_command)
6228 (agent_eval_command): Constify.
6230 2017-09-27 Tom Tromey <tom@tromey.com>
6232 * tracepoint.c (info_scope_command): Constify.
6233 * python/python.c (gdbpy_decode_line): Constify.
6234 * python/py-breakpoint.c (bppy_init): Constify.
6235 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Constify.
6236 * location.h: (new_linespec_location)
6237 (string_to_event_location_basic, string_to_event_location):
6239 * location.c (new_linespec_location)
6240 (string_to_event_location_basic, string_to_event_location):
6242 * linespec.h (decode_line_with_current_source)
6243 (decode_line_with_last_displayed, linespec_lex_to_end): Constify.
6244 * linespec.c (linespec_lex_to_end)
6245 (decode_line_with_current_source)
6246 (decode_line_with_last_displayed): Constify.
6247 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x):
6249 * cli/cli-cmds.c (edit_command, list_command): Constify.
6250 * breakpoint.h (until_break_command, watch_command_wrapper)
6251 (awatch_command_wrapper, rwatch_command_wrapper)
6252 (init_ada_exception_breakpoint): Constify.
6253 * breakpoint.c (break_command_1, dprintf_command)
6254 (break_range_command, watch_command_wrapper)
6255 (rwatch_command_wrapper, awatch_command_wrapper)
6256 (until_break_command, init_ada_exception_breakpoint)
6257 (strace_marker_create_sals_from_location, trace_command)
6258 (ftrace_command, strace_command, struct tracepoint): Constify.
6259 * ax-gdb.c (agent_command_1): Constify.
6260 * ada-lang.c (ada_exception_sal): Constify.
6262 2017-09-27 Tom Tromey <tom@tromey.com>
6264 * record.c (cmd_record_delete, cmd_record_stop, cmd_record_save)
6265 (cmd_record_goto_begin, cmd_record_goto_end, get_insn_number)
6266 (get_context_size, no_chunk, get_insn_history_modifiers)
6267 (cmd_record_insn_history, get_call_history_modifiers)
6268 (cmd_record_call_history): Constify.
6270 2017-09-27 Tom Tromey <tom@tromey.com>
6272 * source.c (show_substitute_path_command)
6273 (unset_substitute_path_command, set_substitute_path_command):
6276 2017-09-27 Tom Tromey <tom@tromey.com>
6278 * typeprint.c (maintenance_print_type): Constify.
6279 * maint.c (maintenance_dump_me, maintenance_demangle)
6280 (maintenance_time_display, maintenance_info_sections)
6281 (maintenance_print_statistics, maintenance_deprecate)
6282 (maintenance_undeprecate): Constify.
6283 (maintenance_do_deprecate): Constify. Use std::string.
6284 (maintenance_selftest): Constify.
6285 * gdbtypes.h (maintenance_print_type): Constify.
6287 2017-09-27 Tom Tromey <tom@tromey.com>
6289 * hppa-tdep.c (unwind_command): Constify.
6291 2017-09-27 Tom Tromey <tom@tromey.com>
6293 * target-descriptions.c (unset_tdesc_filename_cmd)
6294 (maint_print_c_tdesc_cmd, maintenance_check_xml_descriptions):
6297 2017-09-27 Tom Tromey <tom@tromey.com>
6299 * dummy-frame.c (maintenance_print_dummy_frames): Constify.
6301 2017-09-27 Tom Tromey <tom@tromey.com>
6303 * tui/tui.c (tui_enable_command, tui_disable_command): Constify.
6305 2017-09-27 Tom Tromey <tom@tromey.com>
6307 * tui/tui-regs.c (tui_reg_command): Constify.
6309 2017-09-27 Tom Tromey <tom@tromey.com>
6311 * skip.c (skip_file_command, skip_function_command)
6312 (skip_enable_command, skip_disable_command, skip_delete_command):
6315 2017-09-27 Tom Tromey <tom@tromey.com>
6317 * record-btrace.c (cmd_record_btrace_bts_start)
6318 (cmd_record_btrace_pt_start): Constify.
6320 2017-09-27 Tom Tromey <tom@tromey.com>
6322 * symmisc.c (maintenance_print_symbols)
6323 (maintenance_print_msymbols, maintenance_print_objfiles)
6324 (maintenance_info_symtabs, maintenance_check_symtabs)
6325 (maintenance_expand_symtabs, maintenance_info_line_tables):
6328 2017-09-27 Tom Tromey <tom@tromey.com>
6330 * top.c (new_ui_command): Constify.
6332 2017-09-27 Tom Tromey <tom@tromey.com>
6334 * symfile.c (add_symbol_file_command)
6335 (remove_symbol_file_command, list_overlays_command)
6336 (map_overlay_command, unmap_overlay_command)
6337 (overlay_auto_command, overlay_manual_command)
6338 (overlay_off_command, overlay_load_command): Constify.
6340 2017-09-27 Tom Tromey <tom@tromey.com>
6342 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
6343 (info_spu_mailbox_command, info_spu_dma_command)
6344 (info_spu_proxydma_command): Constify.
6346 2017-09-27 Tom Tromey <tom@tromey.com>
6348 * cli/cli-logging.c (set_logging_on, set_logging_off): Constify.
6350 2017-09-27 Tom Tromey <tom@tromey.com>
6352 * cli/cli-script.c (user_defined_command): Constify.
6354 2017-09-27 Tom Tromey <tom@tromey.com>
6356 * cli/cli-dump.c (dump_memory_command, dump_value_command)
6357 (dump_srec_memory, dump_srec_value, dump_ihex_memory)
6358 (dump_ihex_value, dump_verilog_memory, dump_verilog_value)
6359 (dump_tekhex_memory, dump_tekhex_value, dump_binary_memory)
6360 (dump_binary_value, append_binary_memory, append_binary_value):
6362 (struct dump_context) <func>: Constify.
6363 (add_dump_command): Update.
6365 2017-09-27 Tom Tromey <tom@tromey.com>
6367 * cli/cli-cmds.c (show_version, show_configuration)
6368 (source_command, show_user): Constify.
6370 2017-09-27 Tom Tromey <tom@tromey.com>
6372 * target.c (maintenance_print_target_stack): Constify.
6374 2017-09-27 Tom Tromey <tom@tromey.com>
6376 * interps.c (interpreter_exec_cmd): Constify.
6378 2017-09-27 Tom Tromey <tom@tromey.com>
6380 * record-full.c (cmd_record_full_restore): Constify.
6382 2017-09-27 Tom Tromey <tom@tromey.com>
6384 * memattr.c (enable_mem_command, disable_mem_command)
6385 (delete_mem_command): Constify.
6387 2017-09-27 Tom Tromey <tom@tromey.com>
6389 * value.c (show_convenience): Constify.
6391 2017-09-27 Tom Tromey <tom@tromey.com>
6393 * gdbcore.h (core_file_command): Update.
6394 * corefile.c (core_file_command): Constify.
6396 2017-09-27 Tom Tromey <tom@tromey.com>
6398 * user-regs.c (maintenance_print_user_registers): Constify.
6400 2017-09-27 Tom Tromey <tom@tromey.com>
6402 * cp-namespace.c (maintenance_cplus_namespace): Constify.
6404 2017-09-27 Tom Tromey <tom@tromey.com>
6406 * cp-support.c (first_component_command): Constify.
6408 2017-09-27 Tom Tromey <tom@tromey.com>
6410 * psymtab.c (maintenance_print_psymbols)
6411 (maintenance_info_psymtabs, maintenance_check_psymtabs):
6414 2017-09-27 Tom Tromey <tom@tromey.com>
6416 * windows-tdep.c (display_tib): Constify.
6418 2017-09-27 Tom Tromey <tom@tromey.com>
6420 * linux-fork.c (delete_checkpoint_command)
6421 (detach_checkpoint_command): Constify.
6423 2017-09-27 Tom Tromey <tom@tromey.com>
6425 * cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify.
6427 2017-09-27 Tom Tromey <tom@tromey.com>
6429 * arc-tdep.c (dump_arc_instruction_command): Constify.
6431 2017-09-27 Tom Tromey <tom@tromey.com>
6433 * valprint.c (set_radix, show_radix): Constify.
6435 2017-09-27 Tom Tromey <tom@tromey.com>
6437 * dtrace-probe.c (info_probes_dtrace_command): Constify.
6439 2017-09-27 Tom Tromey <tom@tromey.com>
6441 * command.h (not_just_help_class_command): Update.
6442 * cli/cli-decode.h (not_just_help_class_command): Update.
6443 * cli/cli-decode.c (not_just_help_class_command): Constify.
6445 2017-09-27 Tom Tromey <tom@tromey.com>
6447 * gdb_bfd.c (maintenance_info_bfds): Constify.
6449 2017-09-27 Tom Tromey <tom@tromey.com>
6451 * cli/cli-decode.c (add_cmd, set_cmd_cfunc): New function
6453 (do_add_cmd): Rename from add_cmd. Don't call set_cmd_cfunc.
6454 (do_const_cfunc): New function.
6455 (cmd_cfunc_eq): New overload.
6456 (cli_user_command_p): Check do_const_cfunc.
6457 * cli/cli-decode.h (struct cmd_list_element) <function>: New field
6459 * command.h (add_cmd): Add const overload and no-function
6461 (set_cmd_cfunc): Add const overload.
6462 (cmd_const_cfunc_ftype): Declare.
6463 (cmd_cfunc_eq): Add const overload.
6464 * breakpoint.c, cli-cmds.c, cli-dump.c, guile/scm-cmd.c,
6465 python/py-cmd.c, target.c, tracepoint.c: Use no-function add_cmd
6468 2017-09-27 Tom Tromey <tom@tromey.com>
6470 * macroexp.c (get_next_token_for_substitution): New function.
6471 (substitute_args): Call it. Check for __VA_OPT__.
6473 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
6474 Pedro Alves <palves@redhat.com>
6476 * dwarf2read.c (dwarf2_cu): Remove field producer_is_icc and add
6477 producer_is_icc_lt_14.
6478 (producer_is_icc_lt_14): New function.
6479 (check_producer): Add code for checking version of ICC.
6480 (producer_is_icc): Move to producer.c.
6481 (read_structure_type): Restrict ICC workaround to ICC<14.
6482 * producer.c: Include selftest.h.
6483 (producer_is_icc, producer_parsing_tests, _initialize_producer):
6485 * producer.h (producer_is_icc): New declaration.
6487 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
6489 * Makefile.in (SFILES): Add producer.c.
6490 (COMMON_OBS): Add producer.o
6491 * amd64-tdep.c (producer.h): Add new include.
6492 * dwarf2read.c (producer.h): Add new include.
6493 * producer.c: New file.
6494 * producer.h: New file.
6495 * utils.c (producer_is_gcc, producer_is_gcc_ge_4): Move to
6497 * utils.h (producer_is_gcc, producer_is_gcc_ge_4): Move to
6500 2017-09-26 Matthias Klose <doko@ubuntu.com>
6502 * configure.ac: Search ncursesw before ncurses.
6503 Check ncursesw/ncurses.h before ncurses/ncurses.h.
6504 * gdb_curses.h: Include <ncursesw/ncurses.h>
6505 * config.in, configure: Regenerate.
6507 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6510 * configure.host <*-*-solaris2.[01], *-*-solaris2.[2-9]*>: Mark as
6512 Use gdb_host sol2 for i[34567]86-*-solaris2*, x86_64-*-solaris2*.
6513 Remove i386sol2 support.
6514 * configure.nat <i386sol2>: Remove.
6515 <sol2-64>: Fold into ...
6517 Move common settings to default section.
6519 * configure.tgt <i[34567]86-*-solaris2.1[0-9]*,
6520 x86_64-*-solaris2.1[0-9]*>: Rename to ...
6521 <i[34567]86-*-solaris2*, x86_64-*-solaris2*>: ... this.
6522 <i[34567]86-*-solaris*>: Remove.
6523 <sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*>: Remove.
6525 * configure.ac: Remove wctype in libw check.
6526 (_MSE_INT_H): Don't define on Solaris 7-9.
6527 <solaris*>: Remove libthread_db.so.1 check.
6528 * configure: Regenerate.
6529 * config.in: Regenerate.
6531 * proc-service.c: Remove PROC_SERVICE_IS_OLD handling.
6532 (gdb_ps_prochandle_t, gdb_ps_read_buf_t, gdb_ps_write_buf_t)
6533 (gdb_ps_size_t): Remove.
6534 Use base types in users.
6535 * sol-thread.c: Likewise, also for gdb_ps_addr_t.
6537 * NEWS (Changes since GDB 8.0): Document Solaris 2.0-9 removal.
6539 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6542 * sparc64-tdep.c (adi_tag_fd): Print pid as long.
6543 (adi_is_addr_mapped): Likewise.
6544 (PSR_ICC): Don't redefine.
6545 (PSR_IMPL): Likewise.
6547 2017-09-25 Tom Tromey <tom@tromey.com>
6549 * regcache.c (regcache::dump): Use string_printf.
6551 2017-09-25 Tom Tromey <tom@tromey.com>
6553 * regcache.c (class regcache_invalidator): New.
6554 (struct register_to_invalidate): Remove.
6555 (make_cleanup_regcache_invalidate): Remove.
6556 (regcache::raw_write): Use regcache_invalidator.
6558 2017-09-25 Tom Tromey <tom@tromey.com>
6560 * spu-tdep.c (spu2ppu_sniffer): Update.
6561 * regcache.h (make_cleanup_regcache_xfree): Don't declare.
6562 * regcache.c (do_regcache_xfree, make_cleanup_regcache_xfree):
6564 * ppc-linux-tdep.c (ppu2spu_sniffer): Update.
6565 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Update.
6566 * frame.h (frame_save_as_regcache): Return std::unique_ptr.
6567 * frame.c (frame_save_as_regcache): Return std::unique_ptr.
6568 (frame_pop): Update.
6570 2017-09-25 Tom Tromey <tom@tromey.com>
6572 * spu-tdep.c (spu2ppu_dealloc_cache): Use delete.
6573 * regcache.h (regcache_xfree): Don't declare.
6574 * regcache.c (regcache_xfree): Remove.
6575 (do_regcache_xfree): Use delete.
6576 * ppc-linux-tdep.c (ppu2spu_dealloc_cache): Use delete.
6577 * linux-fork.c (free_fork): Use delete.
6578 (fork_save_infrun_state): Likewise.
6579 * jit.c (jit_dealloc_cache): Use delete.
6580 * infrun.c (discard_infcall_suspend_state): Use delete.
6582 2017-09-25 Tom Tromey <tom@tromey.com>
6584 * regcache.h (regcache_xmalloc): Don't declare.
6585 (regcache_raw_set_cached_value): Update comment.
6586 * regcache.c (regcache_xmalloc): Remove.
6587 * ppc-linux-tdep.c (ppu2spu_sniffer): Use new.
6588 * jit.c (jit_frame_sniffer): Use new.
6589 * frame.c (frame_save_as_regcache): Use new.
6591 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6593 * NEWS: Advertise support for guarded-storage registers on IBM z.
6595 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6597 * s390-linux-nat.c (have_regset_gs): New static variable.
6598 (s390_linux_fetch_inferior_registers): Handle guarded-storage
6599 control block and guarded-storage broadcast control regsets.
6600 (s390_read_description): Detect whether the target has
6601 guarded-storage support, return appropriate tdesc.
6602 * s390-linux-tdep.c (features/s390-gs-linux64.c): New include.
6603 (features/s390x-gs-linux64.c): Likewise.
6604 (struct gdbarch_tdep) <have_gs>: New field.
6605 (s390_regmap_gs, s390_regmap_gsbc, s390_gs_regset)
6606 (s390_gsbc_regset): New variables.
6607 (s390_iterate_over_regset_sections): Iterate over s390_gs_regset
6608 and s390_gsbc_regset, if applicable.
6609 (s390_core_read_description): Check whether core file was from a
6610 target with guarded-storage support; include appropriate regsets.
6611 (s390_gdbarch_init): Add registers for guarded-storage support.
6612 (_initialize_s390_tdep): Initialize new target descriptions that
6613 include registers for guarded-storage support.
6614 * s390-linux-tdep.h (HWCAP_S390_GS, S390_GSD_REGNUM)
6615 (S390_GSSM_REGNUM, S390_GSEPLA_REGNUM)
6616 (S390_BC_GSD_REGNUM, S390_BC_GSSM_REGNUM): New defines.
6617 (S390_NUM_REGS): Adjust macro definition.
6618 (s390_gs_regset, s390_gsbc_regset, tdesc_s390_gs_linux64)
6619 (tdesc_s390x_gs_linux64): New declarations.
6621 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6623 * features/s390-gs-linux64.xml: New file.
6624 * features/s390-gs.xml: New file.
6625 * features/s390-gsbc.xml: New file.
6626 * features/s390x-gs-linux64.xml: New file.
6627 * features/Makefile (WHICH): Add s390-gs-linux64 and
6629 (s390-gs-linux64-expedite, s390x-gs-linux64-expedite): New macros.
6630 (XMLTOC): Add s390-gs-linux64.xml and s390x-linux64.xml.
6631 * features/s390-gs-linux64.c: New generated file.
6632 * features/s390x-gs-linux64.c: New file.
6633 * regformats/s390-gs-linux64.dat: New file.
6634 * regformats/s390x-gs-linux64.dat: New file.
6636 2017-09-23 Tom Tromey <tom@tromey.com>
6638 * defs.h (make_cleanup_override_quit_handler): Don't declare.
6640 2017-09-22 Tom Tromey <tom@tromey.com>
6642 * utils.c (class scoped_input_handler) <m_quit_handler>: Change
6643 type to scoped_restore_tmpl.
6644 <scoped_input_handler>: Initialize m_quit_handler directly.
6646 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
6648 * cli/cli-cmds.c (pwd_command): Use "getcwd (NULL, 0)".
6649 (cd_command): Likewise. Free "current_directory" before
6651 * main.c (captured_main_1): Use "getcwd (NULL, 0)".
6652 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Likewise.
6653 * top.c (gdb_dirbuf): Remove global declaration.
6654 * top.h (gdb_dirbuf): Likewise.
6656 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
6658 * gnulib/aclocal.m4: Regenerate.
6659 * gnulib/config.in: Regenerate.
6660 * gnulib/configure: Regenerate.
6661 * gnulib/import/Makefile.am: Regenerate.
6662 * gnulib/import/Makefile.in: Regenerate.
6663 * gnulib/import/assure.h: New file.
6664 * gnulib/import/at-func.c: Likewise
6665 * gnulib/import/chdir-long.c: New file.
6666 * gnulib/import/chdir-long.h: New file.
6667 * gnulib/import/cloexec.c: New file.
6668 * gnulib/import/cloexec.h: New file.
6669 * gnulib/import/close.c: New file.
6670 * gnulib/import/closedir.c: New file.
6671 * gnulib/import/dirent-private.h: New file.
6672 * gnulib/import/dup-safer.c: New file.
6673 * gnulib/import/dup.c: New file.
6674 * gnulib/import/dup2.c: New file.
6675 * gnulib/import/error.c: New file.
6676 * gnulib/import/error.h: New file.
6677 * gnulib/import/exitfail.c: New file.
6678 * gnulib/import/exitfail.h: New file.
6679 * gnulib/import/fchdir.c: New file.
6680 * gnulib/import/fcntl.c: New file.
6681 * gnulib/import/fcntl.in.h: New file.
6682 * gnulib/import/fd-hook.c: New file.
6683 * gnulib/import/fd-hook.h: New file.
6684 * gnulib/import/fd-safer.c: New file.
6685 * gnulib/import/fdopendir.c: New file.
6686 * gnulib/import/filename.h: New file.
6687 * gnulib/import/filenamecat-lgpl.c: New file.
6688 * gnulib/import/filenamecat.h: New file.
6689 * gnulib/import/fstat.c: New file.
6690 * gnulib/import/fstatat.c: New file.
6691 * gnulib/import/getcwd-lgpl.c: New file.
6692 * gnulib/import/getcwd.c: New file.
6693 * gnulib/import/getdtablesize.c: New file.
6694 * gnulib/import/getlogin_r.c: New file.
6695 * gnulib/import/getprogname.c: New file.
6696 * gnulib/import/getprogname.h: New file.
6697 * gnulib/import/gettext.h: New file.
6698 * gnulib/import/glob-libc.h: New file.
6699 * gnulib/import/glob.c: New file.
6700 * gnulib/import/glob.in.h: New file.
6701 * gnulib/import/intprops.h: New file.
6702 * gnulib/import/m4/chdir-long.m4: New file.
6703 * gnulib/import/m4/close.m4: New file.
6704 * gnulib/import/m4/closedir.m4: New file.
6705 * gnulib/import/m4/d-ino.m4: New file.
6706 * gnulib/import/m4/d-type.m4: New file.
6707 * gnulib/import/m4/dup.m4: New file.
6708 * gnulib/import/m4/dup2.m4: New file.
6709 * gnulib/import/m4/error.m4: New file.
6710 * gnulib/import/m4/fchdir.m4: New file.
6711 * gnulib/import/m4/fcntl.m4: New file.
6712 * gnulib/import/m4/fcntl_h.m4: New file.
6713 * gnulib/import/m4/fdopendir.m4: New file.
6714 * gnulib/import/m4/filenamecat.m4: New file.
6715 * gnulib/import/m4/fstat.m4: New file.
6716 * gnulib/import/m4/fstatat.m4: New file.
6717 * gnulib/import/m4/getcwd-abort-bug.m4: New file.
6718 * gnulib/import/m4/getcwd-path-max.m4: New file.
6719 * gnulib/import/m4/getcwd.m4: New file.
6720 * gnulib/import/m4/getdtablesize.m4: New file.
6721 * gnulib/import/m4/getlogin_r.m4: New file.
6722 * gnulib/import/m4/getprogname.m4: New file.
6723 * gnulib/import/m4/glob.m4: New file.
6724 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
6725 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
6726 * gnulib/import/m4/mempcpy.m4: New file.
6727 * gnulib/import/m4/memrchr.m4: New file.
6728 * gnulib/import/m4/mode_t.m4: New file.
6729 * gnulib/import/m4/msvc-inval.m4: New file.
6730 * gnulib/import/m4/msvc-nothrow.m4: New file.
6731 * gnulib/import/m4/open.m4: New file.
6732 * gnulib/import/m4/openat.m4: New file.
6733 * gnulib/import/m4/opendir.m4: New file.
6734 * gnulib/import/m4/readdir.m4: New file.
6735 * gnulib/import/m4/realloc.m4: New file.
6736 * gnulib/import/m4/rewinddir.m4: New file.
6737 * gnulib/import/m4/save-cwd.m4: New file.
6738 * gnulib/import/m4/strdup.m4: New file.
6739 * gnulib/import/m4/strerror.m4: New file.
6740 * gnulib/import/m4/unistd-safer.m4: New file.
6741 * gnulib/import/mempcpy.c: New file.
6742 * gnulib/import/memrchr.c: New file.
6743 * gnulib/import/msvc-inval.c: New file.
6744 * gnulib/import/msvc-inval.h: New file.
6745 * gnulib/import/msvc-nothrow.c: New file.
6746 * gnulib/import/msvc-nothrow.h: New file.
6747 * gnulib/import/open.c: New file.
6748 * gnulib/import/openat-die.c: New file.
6749 * gnulib/import/openat-priv.h: New file.
6750 * gnulib/import/openat-proc.c: New file.
6751 * gnulib/import/openat.c: New file.
6752 * gnulib/import/openat.h: New file.
6753 * gnulib/import/opendir.c: New file.
6754 * gnulib/import/pipe-safer.c: New file.
6755 * gnulib/import/readdir.c: New file.
6756 * gnulib/import/realloc.c: New file.
6757 * gnulib/import/rewinddir.c: New file.
6758 * gnulib/import/save-cwd.c: New file.
6759 * gnulib/import/save-cwd.h: New file.
6760 * gnulib/import/strdup.c: New file.
6761 * gnulib/import/strerror-override.c: New file.
6762 * gnulib/import/strerror-override.h: New file.
6763 * gnulib/import/strerror.c: New file.
6764 * gnulib/import/unistd--.h: New file.
6765 * gnulib/import/unistd-safer.h: New file.
6766 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
6767 "getcwd" and "glob".
6768 * ser-tcp.c: Undefine "close" before redefining it.
6770 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
6772 * guile/scm-value.c (gdbscm_value_address): Initialize address,
6775 2017-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6777 * configure.nat <i386sol2,i386>: Add fork-inferior.o to NATDEPFILES.
6778 <sol2,sparc>: Likewise.
6779 <sol2-64,i386>: Likewise.
6781 * warning.m4 (AM_GDB_WARNINGS): Disable -Wunknown-pragmas,
6782 -Wdeprecated-declarations on *-*-solaris*.
6783 * configure: Regenerate.
6785 * procfs.c: Include "nat/inferior.h".
6786 (procfs_info_proc): Fix typo.
6788 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6790 * remote.c (vector): Include.
6791 (struct private_thread_info): Add field, thread_handle.
6792 (free_private_thread_info): Deallocate storage associated with
6794 (get_private_info_thread): Initialize `thread_handle' field.
6795 (struct thread_item): Add field, thread_handle.
6796 (clear_threads_listing_context): Deallocate storage associated
6798 (start_thread): Add support for "handle" attribute.
6799 (thread_attributes): Add "handle".
6800 (remote_get_threads_with_qthreadinfo): Initialize thread_handle
6802 (remote_update_thread_list): Update thread_handle.
6803 (remote_thread_handle_to_thread_info): New function.
6804 (init_remote_ops): Initialize to_thread_handle_to_thread_info.
6806 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6808 * python/py-inferior.c (gdbpy_thread_from_thread_handle): New
6810 (inferior_object_methods): Add gdbpy_thread_from_thread_handle.
6811 * python/python-internal.h (thread_object_type): Declare.
6813 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6815 * target.h (struct target_ops): Add to_thread_handle_to_thread_info.
6816 (target_thread_handle_to_thread_info): Declare.
6817 * target.c (target_thread_handle_to_thread_info): New function.
6818 * target-delegates.c: Regenerate.
6819 * gdbthread.h (find_thread_by_handle): Declare.
6820 * thread.c (find_thread_by_handle): New function.
6821 * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New
6823 (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info.
6825 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
6827 * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF.
6829 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
6831 * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF.
6833 2017-09-21 Yao Qi <yao.qi@linaro.org>
6835 * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o
6838 2017-09-20 Tom Tromey <tom@tromey.com>
6840 * breakpoint.c (struct counted_command_line): Remove.
6841 (breakpoint_commands): Update.
6842 (alloc_counted_command_line, incref_counted_command_line)
6843 (decref_counted_command_line, do_cleanup_counted_command_line)
6844 (make_cleanup_decref_counted_command_line): Remove.
6845 (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats)
6846 (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check)
6847 (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint)
6848 (save_breakpoints): Update.
6849 * breakpoint.h (counted_command_line): Now a typedef to
6851 (struct breakpoint) <commands>: Now a counted_command_line.
6852 (struct bpstats) <command>: Likewise.
6854 2017-09-20 Tom Tromey <tom@tromey.com>
6856 * breakpoint.c (struct commands_info, do_map_commands_command):
6858 (commands_command_1): Update.
6859 (iterate_over_related_breakpoints): Take a function_view.
6860 (do_delete_breakpoint, do_map_delete_breakpoint): Remove.
6861 (delete_command): Update.
6862 (map_breakpoint_numbers): Take a function_view.
6863 (do_disable_breakpoint, do_map_delete_breakpoint): Remove.
6864 (disable_command): Update.
6865 (do_enable_breakpoint, do_map_enable_breakpoint): Remove.
6866 (enable_command): Update.
6867 (struct disp_data, do_enable_breakpoint_disp)
6868 (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint)
6869 (do_map_enable_delete_breakpoint): Remove.
6870 (enable_once_command, enable_count_command, enable_delete_command)
6871 (delete_trace_variable_command): Update.
6873 2017-09-20 Tom Tromey <tom@tromey.com>
6875 * breakpoint.c (~bpstats): Rename from bpstat_free. Update.
6876 (bpstat_clear): Use delete.
6877 (bpstats): New constructors.
6878 (bpstat_copy, bpstat_stop_status): Use new.
6879 (dprintf_after_condition_true): Update.
6880 * breakpoint.h (bpstats::bpstats): Add constructors.
6881 (bpstats::~bpstats): Add destructor.
6883 2017-09-20 Pedro Alves <palves@redhat.com>
6885 * eval.c (make_params): Delete, refactored as ...
6886 (class fake_method): ... this new type's ctor.
6887 (fake_method::~fake_method): New.
6888 (evaluate_subexp_standard): Use 'fake_method'.
6890 2017-09-20 Tom Tromey <tom@tromey.com>
6892 * windows-nat.c (get_windows_debug_event, windows_wait)
6893 (do_initial_windows_stuff, windows_attach): Update.
6894 * utils.c (vwarning, internal_vproblem): Update.
6895 (ui_unregister_input_event_handler_cleanup)
6896 (prepare_to_handle_input): Remove.
6897 (class scoped_input_handler): New.
6898 (defaulted_query, prompt_for_continue): Update.
6899 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
6901 * top.c (undo_terminal_modifications_before_exit): Update.
6902 * target/target.h (target_terminal_init, target_terminal_inferior)
6903 (target_terminal_ours): Don't declare.
6904 (class target_terminal): New.
6905 * target.h (target_terminal_is_inferior, target_terminal_is_ours)
6906 (target_terminal_ours_for_output)
6907 (make_cleanup_restore_target_terminal): Don't declare.
6908 (target_terminal_info): Remove.
6909 * target.c (enum terminal_state, terminal_state): Remove.
6910 (target_terminal::terminal_state): Define.
6911 (target_terminal::init): Rename from target_terminal_init.
6912 (target_terminal::inferior): Rename from
6913 target_terminal_inferior.
6914 (target_terminal::ours): Rename from target_terminal_ours.
6915 (target_terminal::ours_for_output): Rename from
6916 target_terminal_ours_for_output.
6917 (target_terminal::info): New method.
6918 (cleanup_restore_target_terminal)
6919 (make_cleanup_restore_target_terminal): Remove.
6920 * solib.c (handle_solib_event): Update.
6921 * remote.c (remote_serial_quit_handler): Update.
6922 (remote_terminal_inferior, remote_wait_as): Update.
6923 * record-full.c (record_full_wait_1): Update.
6924 * nto-procfs.c (procfs_create_inferior): Update.
6925 * nat/fork-inferior.c (startup_inferior): Update.
6926 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
6927 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
6928 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
6929 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
6930 (mi_breakpoint_created, mi_breakpoint_deleted)
6931 (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded)
6932 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
6933 (mi_user_selected_context_changed, report_initial_inferior):
6935 * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours)
6936 (linux_nat_terminal_inferior): Update.
6937 * infrun.c (follow_fork_inferior)
6938 (handle_vfork_child_exec_or_exit, do_target_resume)
6939 (check_curr_ui_sync_execution_done, handle_inferior_event_1)
6940 (handle_signal_stop, maybe_remove_breakpoints, normal_stop):
6942 * inflow.c (child_terminal_init, info_terminal_command): Update.
6943 * infcmd.c (post_create_inferior, continue_1, prepare_one_step)
6944 (attach_command): Update.
6945 * infcall.c (call_thread_fsm_should_stop): Update.
6946 * gnu-nat.c (gnu_attach): Update.
6947 * extension.c (struct active_ext_lang_state)
6948 (restore_active_ext_lang): Update.
6949 * exceptions.c (print_flush): Update.
6950 * event-top.c (async_enable_stdin, default_quit_handler): Update.
6951 (struct quit_handler_cleanup_data, restore_quit_handler)
6952 (restore_quit_handler_dtor, make_cleanup_override_quit_handler):
6954 * cp-support.c (gdb_demangle): Update.
6955 * breakpoint.c (update_inserted_breakpoint_locations)
6956 (insert_breakpoint_locations, handle_jit_event)
6957 (disable_breakpoints_in_unloaded_shlib): Update.
6958 * annotate.c (annotate_breakpoints_invalid)
6959 (annotate_frames_invalid): Update.
6961 2017-09-20 Tom Tromey <tom@tromey.com>
6963 * main.c (catch_command_errors): Rename from
6964 catch_command_errors_const.
6965 (captured_main_1): Update.
6967 2017-09-20 Pedro Alves <palves@redhat.com>
6969 * cli/cli-cmds.c (list_command): Use print_sal_location.
6970 (print_sal_location): New function.
6971 (ambiguous_line_spec): Use print_sal_location.
6972 * linespec.c (symbol_to_sal): Record the symbol in the sal.
6973 * symtab.c (find_function_start_sal): Likewise.
6974 * symtab.h (symtab_and_line::symbol): New field.
6976 2017-09-20 Pedro Alves <palves@redhat.com>
6978 * linespec.c (minsym_found): Handle non-text minsyms.
6979 (symbol_to_sal): Record a sal.pc for non-block, non-label symbols.
6981 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
6983 * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing
6986 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
6988 * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use
6989 vmovups instead vmovaps.
6990 (move_zmm_data_to_memory): Use vmovups instead vmovaps.
6992 2017-09-19 John Baldwin <jhb@FreeBSD.org>
6994 * NEWS (Changes since GDB 8.0): Add starti.
6995 * infcmd.c (enum run_break): New.
6996 (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN
6998 (run_command): Use enum run_how.
6999 (start_command): Likewise.
7000 (starti_command): New function.
7001 (RUN_ARGS_HELP): New macro.
7002 (_initialize_infcmd): Use RUN_ARGS_HELP for run and start
7003 commands. Add starti command.
7005 2017-09-19 Yao Qi <yao.qi@linaro.org>
7007 * Makefile.in (monitor.o): Remove the rule.
7009 2017-09-19 Yao Qi <yao.qi@linaro.org>
7011 * annotate.h (struct annotate_arg_emitter): Use
7012 DISABLE_COPY_AND_ASSIGN.
7013 * common/refcounted-object.h (refcounted_object): Likewise.
7014 * completer.h (struct completion_result): Likewise.
7015 * dwarf2read.c (struct dwarf2_per_objfile): Likewise.
7016 * filename-seen-cache.h (filename_seen_cache): Likewise.
7017 * gdbcore.h (thread_section_name): Likewise.
7018 * gdb_regex.h (compiled_regex): Likewise.
7019 * gdbthread.h (scoped_restore_current_thread): Likewise.
7020 * inferior.h (scoped_restore_current_inferior): Likewise.
7021 * jit.c (jit_reader): Likewise.
7022 * linespec.h (struct linespec_result): Likewise.
7023 * mi/mi-parse.h (struct mi_parse): Likewise.
7024 * nat/fork-inferior.c (execv_argv): Likewise.
7025 * progspace.h (scoped_restore_current_program_space): Likewise.
7026 * python/python-internal.h (class gdbpy_enter): Likewise.
7027 * regcache.h (regcache): Likewise.
7028 * target-descriptions.c (struct tdesc_reg): Likewise.
7029 (struct tdesc_type): Likewise.
7030 (struct tdesc_feature): Likewise.
7031 * ui-out.h (ui_out_emit_type): Likewise.
7033 2017-09-18 Simon Marchi <simon.marchi@ericsson.com>
7035 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove
7036 label abort_expression.
7038 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7040 * common/buffer.c (buffer_xml_printf): Adjust.
7041 * common/xml-utils.c (xml_escape_text): Change return type to
7042 std::string, update code accordingly.
7043 * common/xml-utils.h (xml_escape_text): Change return type to
7045 * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust.
7046 * windows-tdep.c (windows_xfer_shared_library): Adjust.
7047 * unittests/xml-utils-selftests.c (test_xml_escape_text):
7050 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7052 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file.
7053 (SUBDIR_UNITTESTS_OBS): Add new object file.
7054 * unittests/xml-utils-selftests.c: New file.
7056 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7058 * common/selftest.h (selftest): New struct/interface.
7059 (register_test): Add name parameter, add new overload.
7060 (run_tests): Add filter parameter.
7061 (for_each_selftest_ftype): New typedef.
7062 (for_each_selftest): New declaration.
7063 * common/selftest.c (tests): Change type to
7064 map<string, unique_ptr<selftest>>.
7065 (simple_selftest): New struct.
7066 (register_test): New function.
7067 (register_test): Add name parameter and use it.
7068 (run_tests): Add filter parameter and use it. Add prints.
7069 Adjust to vector -> map change.
7070 * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when
7071 registering selftests.
7072 * arm-tdep.c (_initialize_arm_tdep): Likewise.
7073 * disasm-selftests.c (_initialize_disasm_selftests): Likewise.
7074 * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise.
7075 * dwarf2loc.c (_initialize_dwarf2loc): Likewise.
7076 * findvar.c (_initialize_findvar): Likewise.
7077 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise.
7078 * maint.c (maintenance_selftest): Update call to run_tests.
7079 (maintenance_info_selftests): New function.
7080 (_initialize_maint_cmds): Register "maintenance info selftests"
7081 command. Update "maintenance selftest" doc.
7082 * regcache.c (_initialize_regcache): Add names when registering
7084 * rust-exp.y (_initialize_rust_exp): Likewise.
7085 * selftest-arch.c (gdbarch_selftest): New struct.
7086 (gdbarch_tests): Remove.
7087 (register_test_foreach_arch): Add name parameter. Call
7089 (tests_with_arch): Remove, move most content to
7090 gdbarch_selftest::operator().
7091 (_initialize_selftests_foreach_arch): Remove.
7092 * selftest-arch.h (register_test_foreach_arch): Add name
7094 (run_tests_with_arch): New declaration.
7095 * utils-selftests.c (_initialize_utils_selftests): Add names
7096 when registering selftests.
7097 * utils.c (_initialize_utils): Likewise.
7098 * unittests/array-view-selftests.c
7099 (_initialize_array_view_selftests): Likewise.
7100 * unittests/environ-selftests.c (_initialize_environ_selftests):
7102 * unittests/function-view-selftests.c
7103 (_initialize_function_view_selftests): Likewise.
7104 * unittests/offset-type-selftests.c
7105 (_initialize_offset_type_selftests): Likewise.
7106 * unittests/optional-selftests.c
7107 (_initialize_optional_selftests): Likewise.
7108 * unittests/scoped_restore-selftests.c
7109 (_initialize_scoped_restore_selftests): Likewise.
7110 * NEWS: Document "maintenance selftest" and "maint info
7113 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7115 * mi/mi-main.c (mi_load_progress): Restore current_uiout using a
7118 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7120 * mi/mi-main.c (mi_load_progress): Make uiout variable
7123 2017-09-15 Pedro Alves <palves@redhat.com>
7125 * compile/compile-c-types.c (convert_enum, convert_int)
7126 (convert_float): Adjust to refer to int_type_v0 and float_type_v0.
7128 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7130 * dwarf2read.c (copy_string): Remove.
7131 (parse_macro_definition): Replace copy_string with savestring.
7133 2017-09-15 Yao Qi <yao.qi@linaro.org>
7135 * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to
7137 (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*):
7139 (i[34567]86-*-linux*): Likewise.
7141 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
7143 * dwarf2expr.h (dwarf_stack_value): Add constructor.
7144 (dwarf_expr_context) <~dwarf_expr_context>: Define as default.
7145 <stack>: Change type to std::vector.
7146 <stack_len, stack_allocated>: Remove.
7147 <grow_stack>: Remove.
7148 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
7149 (dwarf_expr_context::~dwarf_expr_context): Remove.
7150 (dwarf_expr_context::grow_stack): Remove.
7151 (dwarf_expr_context::push): Adjust.
7152 (dwarf_expr_context::pop): Adjust.
7153 (dwarf_expr_context::fetch): Adjust.
7154 (dwarf_expr_context::fetch_in_stack_memory): Adjust.
7155 (dwarf_expr_context::stack_empty_p): Adjust.
7156 (dwarf_expr_context::execute_stack_op): Adjust.
7158 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
7160 * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change
7161 return type to bool.
7162 * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise.
7164 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
7166 * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>:
7167 Change type to bool.
7168 (dwarf_stack_value) <in_stack_memory>: Likewise.
7169 (dwarf_expr_context) <push_address>: Change parameter type to
7171 <fetch_in_stack_memory>: Change return type to bool.
7172 <push>: Change parameter type to bool.
7173 * dwarf2expr.c (dwarf_expr_context::push): Change parameter type
7175 (dwarf_expr_context::push_address): Likewise.
7176 (dwarf_expr_context::fetch_in_stack_memory): Change return type
7178 (dwarf_expr_context::execute_stack_op): Adjust.
7179 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust.
7181 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
7183 * dwarf2expr.h (struct dwarf_expr_piece): Move up.
7184 (struct dwarf_expr_context) <n_pieces>: Remove.
7185 <pieces>: Change type to std::vector.
7186 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
7187 (dwarf_expr_context::~dwarf_expr_context): Don't manually free
7189 (dwarf_expr_context::add_piece): Adjust.
7190 * dwarf2loc.c (struct piece_closure): Initialize fields.
7192 <pieces>: Change type to std::vector.
7193 (allocate_piece_closure): Adjust, change parameter to
7194 std::vector rvalue and std::move it to piece_closure.
7195 (rw_pieced_value): Adjust.
7196 (check_pieced_synthetic_pointer): Adjust.
7197 (indirect_synthetic_pointer): Adjust.
7198 (coerce_pieced_ref): Adjust.
7199 (free_pieced_value_closure): Adjust. Use delete to free
7201 (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces
7202 to allocate_piece_closure.
7203 (dwarf2_loc_desc_get_symbol_read_needs): Adjust.
7205 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
7207 * probe.h (probe_ops_cp): Remove typedef.
7208 (DEF_VEC_P (probe_ops_cp)): Remove.
7209 (all_probe_ops): Change type to std::vector.
7210 * probe.c (info_probes_for_ops): Adjust to vector change.
7211 (probe_linespec_to_ops): Likewise.
7212 (all_probe_ops): Change type to std::vector.
7213 (_initialize_probe): Adjust to vector change.
7214 * dtrace-probe.c (_initialize_dtrace_probe): Likewise.
7215 * elfread.c (elf_get_probes): Likewise.
7216 * stap-probe.c (_initialize_stap_probe): Likewise.
7218 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
7220 * probe.h (struct bound_probe): Define constructors.
7221 * probe.c (bound_probe_s): Remove typedef.
7222 (DEF_VEC_O (bound_probe_s)): Remove VEC.
7223 (collect_probes): Change return type to std::vector, remove
7225 (compare_probes): Return bool, change parameter type. Change
7226 semantic to "less than".
7227 (gen_ui_out_table_header_info): Change parameter to std::vector
7229 (exists_probe_with_pops): Likewise.
7230 (info_probes_for_ops): Update to std::vector change.
7231 (enable_probes_command): Likewise.
7232 (disable_probes_command): Likewise.
7234 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
7236 * probe.h (struct probe_ops) <get_probes>: Change parameter from
7238 * probe.c (parse_probes_in_pspace): Update.
7239 (find_probes_in_objfile): Update.
7240 (find_probe_by_pc): Update.
7241 (collect_probes): Update.
7242 (probe_any_get_probes): Update.
7243 * symfile.h (struct sym_probe_fns) <sym_get_probes> Change
7244 return type to reference to std::vector.
7245 * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to
7246 std::vector and update.
7247 (dtrace_process_dof): Likewise.
7248 (dtrace_get_probes): Likewise.
7249 * elfread.c (elf_get_probes): Change return type to std::vector,
7250 store an std::vector in bfd_data.
7251 (probe_key_free): Update to std::vector.
7252 * stap-probe.c (handle_stap_probe): Change parameter to
7253 std::vector and update.
7254 (stap_get_probes): Likewise.
7255 * symfile-debug.c (debug_sym_get_probes): Change return type to
7256 std::vector and update.
7258 2017-09-11 Tom Tromey <tom@tromey.com>
7260 * breakpoint.c (program_breakpoint_here_p): Update.
7261 * target.c (make_scoped_restore_show_memory_breakpoints): Rename
7262 from make_show_memory_breakpoints_cleanup. Return a
7263 scoped_restore_tmpl<int>.
7264 (restore_show_memory_breakpoints): Remove.
7265 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update.
7266 * mem-break.c (memory_validate_breakpoint): Update.
7267 * ia64-tdep.c (ia64_memory_insert_breakpoint): Update.
7268 (ia64_memory_remove_breakpoint): Update.
7269 (ia64_breakpoint_from_pc): Update.
7270 * target.h (make_scoped_restore_show_memory_breakpoints): Rename
7271 from make_show_memory_breakpoints_cleanup.
7273 2017-09-11 Tom Tromey <tom@tromey.com>
7275 * d-namespace.c (d_lookup_symbol): Use std::string.
7276 (find_symbol_in_baseclass): Likewise.
7278 2017-09-11 Tom Tromey <tom@tromey.com>
7280 * ctf.c (ctf_start): Use std::string.
7282 2017-09-11 Tom Tromey <tom@tromey.com>
7284 * ada-lang.c (is_known_support_routine): Update.
7285 (ada_unhandled_exception_name_addr_from_raise): Update.
7286 * guile/scm-frame.c (gdbscm_frame_name): Update.
7287 * python/py-frame.c (frapy_name): Update.
7288 (frapy_function): Update.
7289 * stack.h (find_frame_funname): Update.
7290 * stack.c (find_frame_funname): Return unique_xmalloc_ptr.
7291 (print_frame): Update.
7293 2017-09-11 Tom Tromey <tom@tromey.com>
7295 * findcmd.c (put_bits): Take a gdb::byte_vector.
7296 (parse_find_args): Return gdb::byte_vector. "args" now const.
7297 Remove "pattern_bufp" and "pattern_lenp" parameters. Remove
7299 (find_command): Update.
7301 2017-09-11 Tom Tromey <tom@tromey.com>
7303 * cli/cli-script.c (class scoped_restore_hook_in): New.
7304 (clear_hook_in_cleanup): Remove.
7305 (execute_cmd_pre_hook, execute_cmd_post_hook): Use
7306 scoped_restore_hook_in.
7308 2017-09-11 Tom Tromey <tom@tromey.com>
7310 * cli/cli-script.c (restore_interp): Remove.
7311 (read_command_lines): Use scoped_restore_interp.
7312 * interps.c (scoped_restore_interp::set_temp): Rename from
7314 * interps.h (class scoped_restore_interp): New.
7315 (interp_set_temp): Remove.
7317 2017-09-11 Tom Tromey <tom@tromey.com>
7319 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
7320 (mi_cmd_catch_exception, mi_catch_load_unload): Update.
7321 * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a
7323 (mi_cmd_break_insert_1): Update.
7324 * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a
7327 2017-09-11 Tom Tromey <tom@tromey.com>
7329 * demangle.c (demangle_command): Update.
7330 * breakpoint.c (disable_command): Update.
7331 (enable_command): Update.
7332 (find_location_by_number): Make "number" const. Use
7334 * cli/cli-utils.c (extract_arg): Return std::string.
7335 * probe.c (parse_probe_linespec): Update. Change types.
7336 (collect_probes): Take string arguments.
7337 (parse_probe_linespec): Likewise.
7338 (info_probes_for_ops): Update.
7339 (enable_probes_command): Update.
7340 (disable_probes_command): Update.
7341 * break-catch-sig.c (catch_signal_split_args): Update.
7342 * mi/mi-parse.c (mi_parse): Update.
7344 2017-09-11 Tom Tromey <tom@tromey.com>
7346 * language.h (language_enum): Make argument const.
7347 * language.c (language_enum): Make argument const.
7349 2017-09-11 Tom Tromey <tom@tromey.com>
7351 * common/common-utils.h (skip_to_space): Remove macro, redeclare
7353 (skip_to_space): Rename from skip_to_space_const.
7354 * common/common-utils.c (skip_to_space): New function.
7355 (skip_to_space): Rename from skip_to_space_const.
7356 * cli/cli-utils.h (get_number): Rename from get_number_const.
7357 (extract_arg): Rename from extract_arg_const.
7358 * cli/cli-utils.c (get_number): Rename from get_number_const.
7359 (extract_arg): Rename from extract_arg_const.
7360 (number_or_range_parser::get_number): Use ::get_number.
7361 * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c,
7362 break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c,
7363 cli/cli-script.c, cli/cli-setshow.c, compile/compile.c,
7364 completer.c, demangle.c, disasm.c, findcmd.c, linespec.c,
7365 linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c,
7366 minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c,
7367 python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c,
7368 stap-probe.c, tid-parse.c, tracepoint.c: Update all callers.
7370 2017-09-11 Tom Tromey <tom@tromey.com>
7372 * python/python.c (do_start_initialization): Use
7373 py-event-types.def to initialize types.
7374 Define all object type structures.
7375 * python/python-internal.h: Don't declare event initialization
7377 * python/py-threadevent.c (thread_event_object_type): Don't
7379 * python/py-stopevent.c (stop_event_object_type): Don't define.
7380 * python/py-signalevent.c (signal_event_object_type): Don't
7382 * python/py-newobjfileevent.c (new_objfile_event_object_type)
7383 (clear_objfiles_event_object_type): Don't declare or define.
7384 * python/py-infevents.c (inferior_call_pre_event_object_type)
7385 (inferior_call_post_event_object_type)
7386 (register_changed_event_object_type)
7387 (memory_changed_event_object_type): Don't declare or define.
7388 * python/py-inferior.c (new_thread_event_object_type)
7389 (new_inferior_event_object_type)
7390 (inferior_deleted_event_object_type): Don't declare or define.
7391 * python/py-exitedevent.c (exited_event_object_type): Don't
7393 * python/py-evts.c (gdbpy_initialize_py_events): Use
7395 * python/py-events.h (thread_event_object_type): Don't declare.
7396 (events_object): Use py-all-events.def.
7397 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use
7399 * python/py-event-types.def: New file.
7400 * python/py-continueevent.c (create_continue_event_object): Don't
7402 * python/py-bpevent.c (breakpoint_event_object_type): Don't
7404 * python/py-all-events.def: New file.
7406 2017-09-11 Tom Tromey <tom@tromey.com>
7408 * python/py-threadevent.c (create_thread_event_object): Return
7410 * python/py-stopevent.h (create_stop_event_object)
7411 (create_breakpoint_event_object, create_signal_event_object):
7413 * python/py-stopevent.c (create_stop_event_object): Return
7415 (emit_stop_event): Update.
7416 * python/py-signalevent.c (create_signal_event_object): Return
7418 * python/py-infevents.c (create_inferior_call_event_object):
7420 * python/py-event.h (create_event_object)
7421 (create_thread_event_object): Update.
7422 * python/py-event.c (create_event_object): Return gdbpy_ref.
7423 * python/py-continueevent.c: Return gdbpy_ref.
7424 * python/py-bpevent.c (create_breakpoint_event_object): Return
7427 2017-09-11 Tom Tromey <tom@tromey.com>
7431 * python/python.c (do_start_initialization): Initialize new event
7433 * python/python-internal.h (gdbpy_initialize_new_inferior_event)
7434 (gdbpy_initialize_inferior_deleted_event)
7435 (gdbpy_initialize_new_thread_event): Declare.
7436 * python/py-threadevent.c (create_thread_event_object): Add option
7438 * python/py-inferior.c (new_thread_event_object_type)
7439 (new_inferior_event_object_type)
7440 (inferior_deleted_event_object_type): Declare.
7441 (python_new_inferior, python_inferior_deleted): New functions.
7442 (add_thread_object): Emit new_thread event.
7443 (gdbpy_initialize_inferior): Attach new functions to corresponding
7445 (new_thread, new_inferior, inferior_deleted): Define new event
7447 * python/py-evts.c (gdbpy_initialize_py_events): Add new
7449 * python/py-events.h (events_object) <new_inferior,
7450 inferior_deleted, new_thread>: New fields.
7451 * python/py-event.h (create_thread_event_breakpoint): Add optional
7454 2017-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
7456 * utils.c (abort_with_message): Don't compare gdb_stderr to NULL,
7457 check current_ui instead.
7458 (internal_vproblem): Likewise.
7460 2017-09-09 Simon Marchi <simon.marchi@ericsson.com>
7462 * thread.c (print_thread_info_1): Remove unnecessary calls to
7463 uiout->is_mi_like_p.
7465 2017-09-09 Tom Tromey <tom@tromey.com>
7467 * namespace.h (add_using_directive): Update.
7468 * namespace.c (add_using_directive): Change type of excludes to
7470 * dwarf2read.c (read_import_statement): Use std::vector.
7471 (read_namespace): Update.
7472 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
7474 2017-09-09 Tom Tromey <tom@tromey.com>
7476 * linespec.c (create_sals_line_offset): Use gdb::def_vector.
7478 2017-09-09 Tom Tromey <tom@tromey.com>
7480 * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector.
7482 2017-09-09 Tom Tromey <tom@tromey.com>
7484 * stack.c (func_command): Use gdb::def_vector.
7486 2017-09-09 Tom Tromey <tom@tromey.com>
7488 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional,
7489 ui_out_emit_list, ui_out_emit_tuple.
7490 (mi_cmd_var_update): Likewise.
7492 2017-09-09 Tom Tromey <tom@tromey.com>
7494 * mi/mi-interp.c (mi_user_selected_context_changed): Use
7495 ui_out_redirect_pop.
7496 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
7497 ui_out_redirect_pop.
7498 * utils.c (do_ui_out_redirect_pop)
7499 (make_cleanup_ui_out_redirect_pop): Remove.
7500 * top.c (execute_command_to_string): Use ui_out_redirect_pop.
7501 * utils.h (make_cleanup_ui_out_redirect_pop): Remove.
7502 * ui-out.h (ui_out_redirect_pop): New class.
7504 2017-09-09 Tom Tromey <tom@tromey.com>
7506 * mi/mi-main.c (output_cores): Use ui_out_emit_list.
7507 (list_available_thread_groups, mi_cmd_list_thread_groups)
7508 (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory)
7509 (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected):
7512 2017-09-09 Tom Tromey <tom@tromey.com>
7514 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
7517 2017-09-09 Tom Tromey <tom@tromey.com>
7519 * target.c (flash_erase_command): Use ui_out_emit_tuple.
7520 * stack.c (print_frame): Use ui_out_emit_tuple.
7521 * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple.
7522 (info_spu_mailbox_command, info_spu_dma_command)
7523 (info_spu_proxydma_command): Likewise.
7524 * mi/mi-main.c (mi_cmd_trace_frame_collected): Use
7525 ui_out_emit_tuple, gdb::byte_vector, bin2hex.
7526 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
7528 * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple.
7530 2017-09-09 Tom Tromey <tom@tromey.com>
7532 * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove.
7533 (class ui_out_emit_table): Update comment.
7534 * ui-out.c (do_cleanup_table_end)
7535 (make_cleanup_ui_out_table_begin_end): Remove.
7536 * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table.
7537 (info_spu_dma_cmdlist): Likewise.
7538 * probe.c (info_probes_for_ops): Use ui_out_emit_table.
7539 * darwin-nat-info.c (darwin_debug_regions_recurse): Use
7542 2017-09-09 Tom Tromey <tom@tromey.com>
7544 * thread.c (print_thread_info_1): Use ui_out_emit_table,
7545 ui_out_emit_list, gdb::optional.
7547 2017-09-09 John Baldwin <jhb@FreeBSD.org>
7549 * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat
7551 * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep
7553 * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep
7555 * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype.
7556 * ada-exp.y: Remove _initialize_ada_exp prototype.
7557 * ada-lang.c: Remove _initialize_ada_language prototype.
7558 * ada-tasks.c: Remove _initialize_tasks prototype.
7559 * addrmap.c: Remove _initialize_addrmap prototype.
7560 * agent.c: Remove _initialize_agent prototype.
7561 * aix-thread.c: Remove _initialize_aix_thread prototype.
7562 * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype.
7563 * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype.
7564 * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep
7566 * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype.
7567 * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype.
7568 * alpha-tdep.c: Remove _initialize_alpha_tdep prototype.
7569 * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep
7571 * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep
7573 * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype.
7574 * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype.
7575 * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype.
7576 * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep
7578 * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype.
7579 * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype.
7580 * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype.
7581 * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype.
7582 * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
7583 * amd64-tdep.c: Remove _initialize_amd64_tdep prototype.
7584 * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat
7586 * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep
7588 * annotate.c: Remove _initialize_annotate prototype.
7589 * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype.
7590 * arc-tdep.c: Remove _initialize_arc_tdep prototype.
7591 * arch-utils.c: Remove _initialize_gdbarch_utils prototype.
7592 * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype.
7593 * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype.
7594 * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype.
7595 * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype.
7596 * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep
7598 * arm-tdep.c: Remove _initialize_arm_tdep prototype.
7599 * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype.
7600 * auto-load.c: Remove _initialize_auto_load prototype.
7601 * auxv.c: Remove _initialize_auxv prototype.
7602 * avr-tdep.c: Remove _initialize_avr_tdep prototype.
7603 * ax-gdb.c: Remove _initialize_ax_gdb prototype.
7604 * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype.
7605 * bfin-tdep.c: Remove _initialize_bfin_tdep prototype.
7606 * break-catch-sig.c: Remove _initialize_break_catch_sig prototype.
7607 * break-catch-syscall.c: Remove _initialize_break_catch_syscall
7609 * break-catch-throw.c: Remove _initialize_break_catch_throw
7611 * breakpoint.c: Remove _initialize_breakpoint prototype.
7612 * bsd-uthread.c: Remove _initialize_bsd_uthread prototype.
7613 * btrace.c: Remove _initialize_btrace prototype.
7614 * charset.c: Remove _initialize_charset prototype.
7615 * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype.
7616 * cli/cli-dump.c: Remove _initialize_cli_dump prototype.
7617 * cli/cli-interp.c: Remove _initialize_cli_interp prototype.
7618 * cli/cli-logging.c: Remove _initialize_cli_logging prototype.
7619 * cli/cli-script.c: Remove _initialize_cli_script prototype.
7620 * coff-pe-read.c: Remove _initialize_coff_pe_read prototype.
7621 * coffread.c: Remove _initialize_coffread prototype.
7622 * compile/compile.c: Remove _initialize_compile prototype.
7623 * complaints.c: Remove _initialize_complaints prototype.
7624 * completer.c: Remove _initialize_completer prototype.
7625 * copying.awk: Remove _initialize_copying prototype.
7626 * copying.c: Regenerate.
7627 * core-regset.c: Remove _initialize_core_regset prototype.
7628 * corefile.c: Remove _initialize_core prototype.
7629 * corelow.c: Remove _initialize_corelow prototype.
7630 * cp-abi.c: Remove _initialize_cp_abi prototype.
7631 * cp-namespace.c: Remove _initialize_cp_namespace prototype.
7632 * cp-support.c: Remove _initialize_cp_support prototype.
7633 * cp-valprint.c: Remove _initialize_cp_valprint prototype.
7634 * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype.
7635 * cris-tdep.c: Remove _initialize_cris_tdep prototype.
7636 * ctf.c: Remove _initialize_ctf prototype.
7637 * d-lang.c: Remove _initialize_d_language prototype.
7638 * darwin-nat-info.c: Remove _initialize_darwin_info_commands
7640 * darwin-nat.c: Remove _initialize_darwin_inferior prototype.
7641 * dbxread.c: Remove _initialize_dbxread prototype.
7642 * dcache.c: Remove _initialize_dcache prototype.
7643 * demangle.c: Remove _initialize_demangler prototype.
7644 * disasm-selftests.c: Remove _initialize_disasm_selftests
7646 * disasm.c: Remove _initialize_disasm prototype.
7647 * dtrace-probe.c: Remove _initialize_dtrace_probe prototype.
7648 * dummy-frame.c: Remove _initialize_dummy_frame prototype.
7649 * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame
7651 * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype.
7652 * dwarf2expr.c: Remove _initialize_dwarf2expr prototype.
7653 * dwarf2loc.c: Remove _initialize_dwarf2loc prototype.
7654 * dwarf2read.c: Remove _initialize_dwarf2_read prototype.
7655 * elfread.c: Remove _initialize_elfread prototype.
7656 * exec.c: Remove _initialize_exec prototype.
7657 * extension.c: Remove _initialize_extension prototype.
7658 * f-lang.c: Remove _initialize_f_language prototype.
7659 * f-valprint.c: Remove _initialize_f_valprint prototype.
7660 * fbsd-nat.c: Remove _initialize_fbsd_nat prototype.
7661 * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype.
7662 * filesystem.c: Remove _initialize_filesystem prototype.
7663 * findcmd.c: Remove _initialize_mem_search prototype.
7664 * fork-child.c: Remove _initialize_fork_child prototype.
7665 * frame-base.c: Remove _initialize_frame_base prototype.
7666 * frame-unwind.c: Remove _initialize_frame_unwind prototype.
7667 * frame.c: Remove _initialize_frame prototype.
7668 * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype.
7669 * frv-tdep.c: Remove _initialize_frv_tdep prototype.
7670 * ft32-tdep.c: Remove _initialize_ft32_tdep prototype.
7671 * gcore.c: Remove _initialize_gcore prototype.
7672 * gdb_bfd.c: Remove _initialize_gdb_bfd prototype.
7673 * gdbarch.c: Regenerate.
7674 * gdbarch.sh: Remove _initialize_gdbarch prototype.
7675 * gdbtypes.c: Remove _initialize_gdbtypes prototype.
7676 * gnu-nat.c: Remove _initialize_gnu_nat prototype.
7677 * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype.
7678 * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype.
7679 * go-lang.c: Remove _initialize_go_language prototype.
7680 * go32-nat.c: Remove _initialize_go32_nat prototype.
7681 * guile/guile.c: Remove _initialize_guile prototype.
7682 * h8300-tdep.c: Remove _initialize_h8300_tdep prototype.
7683 * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype.
7684 * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype.
7685 * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype.
7686 * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype.
7687 * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype.
7688 * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype.
7689 * hppa-tdep.c: Remove _initialize_hppa_tdep prototype.
7690 * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype.
7691 * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep
7693 * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep
7695 * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype.
7696 * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype.
7697 * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype.
7698 * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype.
7699 * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype.
7700 * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype.
7701 * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype.
7702 * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype.
7703 * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype.
7704 * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype.
7705 * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype.
7706 * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype.
7707 * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype.
7708 * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
7709 * i386-tdep.c: Remove _initialize_i386_tdep prototype.
7710 * i386-windows-nat.c: Remove _initialize_i386_windows_nat
7712 * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame
7714 * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype.
7715 * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype.
7716 * ia64-tdep.c: Remove _initialize_ia64_tdep prototype.
7717 * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype.
7718 * infcall.c: Remove _initialize_infcall prototype.
7719 * infcmd.c: Remove _initialize_infcmd prototype.
7720 * inferior.c: Remove _initialize_inferiors prototype.
7721 * inflow.c: Remove _initialize_inflow prototype.
7722 * infrun.c: Remove _initialize_infrun prototype.
7723 * interps.c: Remove _initialize_interpreter prototype.
7724 * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype.
7725 * jit.c: Remove _initialize_jit prototype.
7726 * language.c: Remove _initialize_language prototype.
7727 * linux-fork.c: Remove _initialize_linux_fork prototype.
7728 * linux-nat.c: Remove _initialize_linux_nat prototype.
7729 * linux-tdep.c: Remove _initialize_linux_tdep prototype.
7730 * linux-thread-db.c: Remove _initialize_thread_db prototype.
7731 * lm32-tdep.c: Remove _initialize_lm32_tdep prototype.
7732 * m2-lang.c: Remove _initialize_m2_language prototype.
7733 * m32c-tdep.c: Remove _initialize_m32c_tdep prototype.
7734 * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype.
7735 * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype.
7736 * m32r-tdep.c: Remove _initialize_m32r_tdep prototype.
7737 * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype.
7738 * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
7739 * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
7740 * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype.
7741 * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype.
7742 * m68k-tdep.c: Remove _initialize_m68k_tdep prototype.
7743 * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
7744 * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
7745 * machoread.c: Remove _initialize_machoread prototype.
7746 * macrocmd.c: Remove _initialize_macrocmd prototype.
7747 * macroscope.c: Remove _initialize_macroscope prototype.
7748 * maint.c: Remove _initialize_maint_cmds prototype.
7749 * mdebugread.c: Remove _initialize_mdebugread prototype.
7750 * memattr.c: Remove _initialize_mem prototype.
7751 * mep-tdep.c: Remove _initialize_mep_tdep prototype.
7752 * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype.
7753 * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype.
7754 * mi/mi-interp.c: Remove _initialize_mi_interp prototype.
7755 * mi/mi-main.c: Remove _initialize_mi_main prototype.
7756 * microblaze-linux-tdep.c: Remove
7757 _initialize_microblaze_linux_tdep prototype.
7758 * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype.
7759 * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype.
7760 * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype.
7761 * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype.
7762 * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype.
7763 * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype.
7764 * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype.
7765 * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype.
7766 * mips-tdep.c: Remove _initialize_mips_tdep prototype.
7767 * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype.
7768 * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep
7770 * mipsread.c: Remove _initialize_mipsread prototype.
7771 * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep
7773 * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype.
7774 * moxie-tdep.c: Remove _initialize_moxie_tdep prototype.
7775 * msp430-tdep.c: Remove _initialize_msp430_tdep prototype.
7776 * mt-tdep.c: Remove _initialize_mt_tdep prototype.
7777 * nds32-tdep.c: Remove _initialize_nds32_tdep prototype.
7778 * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep
7780 * nios2-tdep.c: Remove _initialize_nios2_tdep prototype.
7781 * nto-procfs.c: Remove _initialize_procfs prototype.
7782 * nto-tdep.c: Remove _initialize_nto_tdep prototype.
7783 * objc-lang.c: Remove _initialize_objc_language prototype.
7784 * objfiles.c: Remove _initialize_objfiles prototype.
7785 * observer.c: Remove observer_test_first_notification_function,
7786 observer_test_second_notification_function,
7787 observer_test_third_notification_function, and
7788 _initialize_observer prototypes.
7789 * opencl-lang.c: Remove _initialize_opencl_language prototypes.
7790 * osabi.c: Remove _initialize_gdb_osabi prototype.
7791 * osdata.c: Remove _initialize_osdata prototype.
7792 * p-valprint.c: Remove _initialize_pascal_valprint prototype.
7793 * parse.c: Remove _initialize_parse prototype.
7794 * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype.
7795 * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype.
7796 * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype.
7797 * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype.
7798 * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype.
7799 * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype.
7800 * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype.
7801 * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype.
7802 * printcmd.c: Remove _initialize_printcmd prototype.
7803 * probe.c: Remove _initialize_probe prototype.
7804 * proc-api.c: Remove _initialize_proc_api prototype.
7805 * proc-events.c: Remove _initialize_proc_events prototype.
7806 * proc-service.c: Remove _initialize_proc_service prototype.
7807 * procfs.c: Remove _initialize_procfs prototype.
7808 * psymtab.c: Remove _initialize_psymtab prototype.
7809 * python/python.c: Remove _initialize_python prototype.
7810 * ravenscar-thread.c: Remove _initialize_ravenscar prototype.
7811 * record-btrace.c: Remove _initialize_record_btrace prototype.
7812 * record-full.c: Remove _initialize_record_full prototype.
7813 * record.c: Remove _initialize_record prototype.
7814 * regcache.c: Remove _initialize_regcache prototype.
7815 * reggroups.c: Remove _initialize_reggroup prototype.
7816 * remote-notif.c: Remove _initialize_notif prototype.
7817 * remote-sim.c: Remove _initialize_remote_sim prototype.
7818 * remote.c: Remove _initialize_remote prototype.
7819 * reverse.c: Remove _initialize_reverse prototype.
7820 * rl78-tdep.c: Remove _initialize_rl78_tdep prototype.
7821 * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype.
7822 * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep
7824 * rs6000-nat.c: Remove _initialize_rs6000_nat prototype.
7825 * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype.
7826 * rust-exp.y: Remove _initialize_rust_exp prototype.
7827 * rx-tdep.c: Remove _initialize_rx_tdep prototype.
7828 * s390-linux-nat.c: Remove _initialize_s390_nat prototype.
7829 * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype.
7830 * score-tdep.c: Remove _initialize_score_tdep prototype.
7831 * selftest-arch.c: Remove _initialize_selftests_foreach_arch
7833 * ser-go32.c: Remove _initialize_ser_dos prototype.
7834 * ser-mingw.c: Remove _initialize_ser_windows prototype.
7835 * ser-pipe.c: Remove _initialize_ser_pipe prototype.
7836 * ser-tcp.c: Remove _initialize_ser_tcp prototype.
7837 * ser-unix.c: Remove _initialize_ser_hardwire prototype.
7838 * serial.c: Remove _initialize_serial prototype.
7839 * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype.
7840 * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype.
7841 * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype.
7842 * sh-tdep.c: Remove _initialize_sh_tdep prototype.
7843 * skip.c: Remove _initialize_step_skip prototype.
7844 * sol-thread.c: Remove _initialize_sol_thread prototype.
7845 * solib-aix.c: Remove _initialize_solib_aix prototype.
7846 * solib-darwin.c: Remove _initialize_darwin_solib prototype.
7847 * solib-dsbt.c: Remove _initialize_dsbt_solib prototype.
7848 * solib-frv.c: Remove _initialize_frv_solib prototype.
7849 * solib-spu.c: Remove _initialize_spu_solib prototype.
7850 * solib-svr4.c: Remove _initialize_svr4_solib prototype.
7851 * solib-target.c: Remove _initialize_solib_target prototype.
7852 * solib.c: Remove _initialize_solib prototype.
7853 * source.c: Remove _initialize_source prototype.
7854 * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype.
7855 * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep
7857 * sparc-nat.c: Remove _initialize_sparc_nat prototype.
7858 * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype.
7859 * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype.
7860 * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep
7862 * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype.
7863 * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype.
7864 * sparc-tdep.c: Remove _initialize_sparc_tdep prototype.
7865 * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat
7867 * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep
7869 * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat
7871 * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep
7873 * sparc64-nat.c: Remove _initialize_sparc64_nat prototype.
7874 * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat
7876 * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep
7878 * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat
7880 * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep
7882 * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep
7884 * spu-linux-nat.c: Remove _initialize_spu_nat prototype.
7885 * spu-multiarch.c: Remove _initialize_spu_multiarch prototype.
7886 * spu-tdep.c: Remove _initialize_spu_tdep prototype.
7887 * stabsread.c: Remove _initialize_stabsread prototype.
7888 * stack.c: Remove _initialize_stack prototype.
7889 * stap-probe.c: Remove _initialize_stap_probe prototype.
7890 * std-regs.c: Remove _initialize_frame_reg prototype.
7891 * symfile-debug.c: Remove _initialize_symfile_debug prototype.
7892 * symfile-mem.c: Remove _initialize_symfile_mem prototype.
7893 * symfile.c: Remove _initialize_symfile prototype.
7894 * symmisc.c: Remove _initialize_symmisc prototype.
7895 * symtab.c: Remove _initialize_symtab prototype.
7896 * target-dcache.c: Remove _initialize_target_dcache prototype.
7897 * target-descriptions.c: Remove _initialize_target_descriptions
7899 * thread.c: Remove _initialize_thread prototype.
7900 * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep
7902 * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype.
7903 * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype.
7904 * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep
7906 * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype.
7907 * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype.
7908 * tracefile.c: Remove _initialize_tracefile prototype.
7909 * tracepoint.c: Remove _initialize_tracepoint prototype.
7910 * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype.
7911 * tui/tui-interp.c: Remove _initialize_tui_interp prototype.
7912 * tui/tui-layout.c: Remove _initialize_tui_layout prototype.
7913 * tui/tui-regs.c: Remove _initialize_tui_regs prototype.
7914 * tui/tui-stack.c: Remove _initialize_tui_stack prototype.
7915 * tui/tui-win.c: Remove _initialize_tui_win prototype.
7916 * tui/tui.c: Remove _initialize_tui prototype.
7917 * typeprint.c: Remove _initialize_typeprint prototype.
7918 * user-regs.c: Remove _initialize_user_regs prototype.
7919 * utils.c: Remove _initialize_utils prototype.
7920 * v850-tdep.c: Remove _initialize_v850_tdep prototype.
7921 * valarith.c: Remove _initialize_valarith prototype.
7922 * valops.c: Remove _initialize_valops prototype.
7923 * valprint.c: Remove _initialize_valprint prototype.
7924 * value.c: Remove _initialize_values prototype.
7925 * varobj.c: Remove _initialize_varobj prototype.
7926 * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype.
7927 * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype.
7928 * vax-tdep.c: Remove _initialize_vax_tdep prototype.
7929 * windows-nat.c: Remove _initialize_windows_nat,
7930 _initialize_check_for_gdb_ini, and _initialize_loadable
7932 * windows-tdep.c: Remove _initialize_windows_tdep prototype.
7933 * xcoffread.c: Remove _initialize_xcoffread prototype.
7934 * xml-support.c: Remove _initialize_xml_support prototype.
7935 * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype.
7936 * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat
7938 * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep
7940 * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype.
7942 2017-09-08 Keith Seitz <keiths@redhat.com>
7944 * dwarf2read.c (struct field_info) <fnfields>: Remove unused
7947 2017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com>
7949 * f-valprint.c (f_val_print): Remove check for one byte
7950 sized integers. Remove printing of character type.
7952 2017-09-08 Frank Penczek <frank.penczek@intel.com>
7953 Christoph Weinmann <christoph.t.weinmann@intel.com>
7954 Bernhard Heckel <bernhard.heckel@intel.com>
7956 * f-typeprint.c (f_type_print_base): Use fprintfi_filtered
7957 to maintain proper indentation when printing pointers/refs.
7959 2017-09-07 Joel Brobecker <brobecker@adacore.com>
7963 2017-09-07 Joel Brobecker <brobecker@adacore.com>
7965 * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell.
7967 2017-09-05 Tom Tromey <tom@tromey.com>
7969 * parse.c (funcall_chain): Now a std::vector.
7970 (start_arglist, end_arglist): Simplify.
7971 (free_funcalls): Remove.
7972 (parse_exp_in_context_1): Remove cleanup.
7974 2017-09-05 Tom Tromey <tom@tromey.com>
7976 * go-exp.y (go_parse): Don't create a cleanup.
7978 2017-09-05 Tom Tromey <tom@tromey.com>
7980 * d-exp.y (PrimaryExpression): Use std::string.
7981 (d_parse): Don't create a cleanup.
7983 2017-09-05 Tom Tromey <tom@tromey.com>
7985 * utils.c (do_clear_parser_state): Remove.
7986 (make_cleanup_clear_parser_state): Remove.
7987 * p-exp.y (pascal_parse): Use scoped_restore.
7988 * m2-exp.y (m2_parse): Use scoped_restore.
7989 * f-exp.y (f_parse): Use scoped_restore.
7990 * d-exp.y (d_parse): Use scoped_restore.
7991 * c-exp.y (c_parse): Use scoped_restore.
7992 * ada-exp.y (ada_parse): Use scoped_restore.
7993 * utils.h (make_cleanup_clear_parser_state): Remove.
7995 2017-09-06 Keith Seitz <keiths@redhat.com>
7997 * dwarf2read.c (dw2_linkage_name_attr): New function.
7998 (dw2_linkage_name): New function.
7999 (dwarf2_compute_name, dwarf2_physname, read_call_site_scope)
8000 (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name.
8001 (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr.
8003 2017-09-06 Kamil Rytarowski <n54@gmx.com>
8005 * config/djgpp/djconfig.sh: Correct shell portability issue.
8007 2017-09-06 Kamil Rytarowski <n54@gmx.com>
8009 * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD.
8011 2017-09-06 John Baldwin <jhb@FreeBSD.org>
8013 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
8014 * NEWS: Mention new FreeBSD/mips native configuration.
8015 * configure.host: Add aarch64*-*-freebsd*.
8016 * configure.nat: Likewise.
8017 * aarch64-fbsd-nat.c: New file.
8019 2017-09-06 John Baldwin <jhb@FreeBSD.org>
8021 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o.
8022 (ALLDEPFILES): Add aarch64-fbsd-tdep.c.
8023 * NEWS: Mention new FreeBSD/aarch64 target.
8024 * configure.tgt: Add aarch64*-*-freebsd*.
8025 * aarch64-fbsd-tdep.c: New file.
8026 * aarch64-fbsd-tdep.h: New file.
8028 2017-09-06 Kamil Rytarowski <n54@gmx.com>
8030 * MAINTAINERS (Write After Approval): Add Kamil Rytarowski.
8032 2017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
8034 * parse.c (find_minsym_type_and_address): Don't relocate addresses
8037 2017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8039 * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
8042 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
8044 * infrun.c (follow_exec): Call add_thread after
8045 target_find_description.
8047 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
8049 * infrun.c (handle_inferior_event_1): When exec'ing, read
8050 stop_pc after follow_exec.
8052 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
8054 * remote.c (process_g_packet): Update error message.
8056 2017-09-05 Yao Qi <yao.qi@linaro.org>
8058 * configure.tgt (gdb_target_obs): Add i386.o for x86_64-*
8061 2017-09-05 Pedro Alves <palves@redhat.com>
8063 * eval.c (eval_call, evaluate_funcall): New functions, factored
8065 (evaluate_subexp_standard): ... this.
8067 2017-09-05 Yao Qi <yao.qi@linaro.org>
8069 * amd64-tdep.c (amd64_target_description): Create target
8071 (_initialize_amd64_tdep): Don't call functions
8072 initialize_tdesc_amd64_*. Add self tests.
8073 * arch/amd64.c (amd64_create_target_description): Add parameter
8074 is_linux. Call set_tdesc_osabi if is_linux is true.
8075 * arch/amd64.h (amd64_create_target_description): Update the
8077 * arch/i386.c (i386_create_target_description): Add parameter
8078 is_linux. Call set_tdesc_osabi if is_linux is true.
8079 * arch/i386.h (i386_create_target_description): Update
8081 * configure.tgt: Add i386.o to gdb_target_obs.
8082 * features/Makefile (XMLTOC): Remove i386/*.xml.
8083 * features/i386/amd64-avx-avx512.c: Remove.
8084 * features/i386/amd64-avx-mpx-avx512-pku.c: Remove.
8085 * features/i386/amd64-avx-mpx.c: Remove.
8086 * features/i386/amd64-avx.c: Remove.
8087 * features/i386/amd64-mpx.c: Remove.
8088 * features/i386/amd64.c: Remove.
8089 * features/i386/i386-avx-avx512.c: Remove.
8090 * features/i386/i386-avx-mpx-avx512-pku.c: Remove.
8091 * features/i386/i386-avx-mpx.c: Remove.
8092 * features/i386/i386-avx.c: Remove.
8093 * features/i386/i386-mmx.c: Remove.
8094 * features/i386/i386-mpx.c: Remove.
8095 * features/i386/i386.c: Remove.
8096 * i386-tdep.c: Don't include features/i386/i386*.c., include
8097 target-descriptions.h and arch/i386.h.
8098 (i386_target_description): Create target descriptions.
8099 (i386_gdbarch_init): Don't call initialize_tdesc_i386_*
8100 functions. Do self tests.
8102 2017-09-05 Yao Qi <yao.qi@linaro.org>
8104 * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml.
8105 * features/i386/amd64-avx-avx512-linux.c: Removed.
8106 * features/i386/amd64-avx-linux.c: Removed.
8107 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed.
8108 * features/i386/amd64-avx-mpx-linux.c: Removed.
8109 * features/i386/amd64-linux.c: Removed.
8110 * features/i386/amd64-mpx-linux.c: Removed.
8111 * features/i386/x32-avx-avx512-linux.c: Removed.
8112 * features/i386/x32-avx-linux.c: Removed.
8113 * features/i386/x32-linux.c: Removed.
8115 2017-09-05 Yao Qi <yao.qi@linaro.org>
8117 * amd64-linux-tdep.c: Include arch/amd64.h. Don't include
8119 (amd64_linux_read_description): Call
8120 amd64_create_target_description.
8121 * arch/amd64.c: New file.
8122 * arch/amd64.h: New file.
8123 * configure.tgt (x86_64-*-linux*): Append amd64.o.
8124 * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o.
8126 2017-09-05 Yao Qi <yao.qi@linaro.org>
8128 * amd64-linux-tdep.c: Don't include amd64-XXX-linux and
8129 x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c.
8130 (amd64_linux_read_description): Create target descriptions.
8131 (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX
8132 functions. Add unit tests.
8133 * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and
8135 * features/i386/64bit-avx.c: Generated.
8136 * features/i386/64bit-avx512.c: Generated.
8137 * features/i386/64bit-core.c: Generated.
8138 * features/i386/64bit-linux.c: Generated.
8139 * features/i386/64bit-mpx.c: Generated.
8140 * features/i386/64bit-pkeys.c: Generated.
8141 * features/i386/64bit-segments.c: Generated.
8142 * features/i386/64bit-sse.c: Generated.
8143 * features/i386/x32-core.c: Generated.
8144 * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature
8145 c files for amd64-linux and x32-linux.
8147 2017-09-05 Yao Qi <yao.qi@linaro.org>
8149 * amd64-linux-tdep.c (amd64_linux_read_description): New
8151 (amd64_linux_core_read_description): Call
8152 amd64_linux_read_description.
8153 (amd64_linux_init_abi): Likewise.
8154 (amd64_x32_linux_init_abi): Likewise.
8155 * amd64-linux-tdep.h (amd64_linux_read_description): Declare.
8156 * x86-linux-nat.c (x86_linux_read_description): Call
8157 amd64_linux_read_description.
8159 2017-09-05 Yao Qi <yao.qi@linaro.org>
8161 * amd64-linux-tdep.c (amd64_linux_core_read_description): Update
8164 2017-09-05 Yao Qi <yao.qi@linaro.org>
8166 * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml.
8167 * features/i386/i386-avx-avx512-linux.c: Remove.
8168 * features/i386/i386-avx-linux.c: Remove.
8169 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove.
8170 * features/i386/i386-avx-mpx-linux.c: Remove.
8171 * features/i386/i386-linux.c: Remove.
8172 * features/i386/i386-mmx-linux.c: Remove.
8173 * features/i386/i386-mpx-linux.c: Remove.
8175 2017-09-05 Yao Qi <yao.qi@linaro.org>
8177 * Makefile.in (ALL_TARGET_OBS): Add i386.o.
8178 (SFILES): Add arch/i386.c.
8179 (HFILES_NO_SRCDIR): Add arch/i386.h.
8180 * arch/i386.c: New file.
8181 * arch/i386.h: New file.
8182 * arch/tdesc.h (allocate_target_description): Declare.
8183 (set_tdesc_architecture): Declare.
8184 (set_tdesc_osabi): Declare.
8185 * configure.tgt (i[34567]86-*-linux*): Add i386.o.
8186 * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c.
8187 include arch/i386.h.
8188 (i386_linux_read_description): Remove code and call
8189 i386_create_target_description.
8190 (set_tdesc_architecture): New function.
8191 (set_tdesc_osabi): New function.
8192 * target-descriptions.h (allocate_target_description): Remove.
8194 2017-09-05 Yao Qi <yao.qi@linaro.org>
8196 * arch/tdesc.h (tdesc_create_feature): Add an argument xml.
8197 * target-descriptions.c (tdesc_create_feature): Likewise, and
8199 * features/i386/32bit-avx.c: Re-generated.
8200 * features/i386/32bit-avx512.c: Re-generated.
8201 * features/i386/32bit-core.c: Re-generated.
8202 * features/i386/32bit-linux.c: Re-generated.
8203 * features/i386/32bit-mpx.c: Re-generated.
8204 * features/i386/32bit-pkeys.c: Re-generated.
8205 * features/i386/32bit-sse.c: Re-generated.
8207 2017-09-05 Yao Qi <yao.qi@linaro.org>
8209 * regformats/regdef.h (struct reg): Override operator == and !=.
8211 2017-09-05 Yao Qi <yao.qi@linaro.org>
8213 * arch/tdesc.h: New file.
8214 * regformats/regdat.sh: Generate code using tdesc_create_reg.
8215 * target-descriptions.c: Update comments.
8216 * target-descriptions.h: Include "arch/tdesc.h". Remove the
8218 * features/i386/32bit-avx.c: Re-generated.
8219 * features/i386/32bit-avx512.c: Re-generated.
8220 * features/i386/32bit-core.c: Re-generated.
8221 * features/i386/32bit-linux.c: Re-generated.
8222 * features/i386/32bit-mpx.c: Re-generated.
8223 * features/i386/32bit-pkeys.c: Re-generated.
8224 * features/i386/32bit-sse.c: Re-generated.
8226 2017-09-05 Yao Qi <yao.qi@linaro.org>
8228 * regformats/regdat.sh: Update generated code.
8230 2017-09-05 Yao Qi <yao.qi@linaro.org>
8232 * regformats/regdat.sh: Adjust code order.
8234 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
8236 * expprint.c (dump_subexp_body_standard): Use constant format
8237 string in fprintf_filtered call.
8239 2017-09-04 John Baldwin <jhb@FreeBSD.org>
8241 * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and
8243 * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX.
8245 2017-09-04 John Baldwin <jhb@FreeBSD.org>
8247 * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H.
8249 2017-09-04 John Baldwin <jhb@FreeBSD.org>
8251 * bsd-kvm.o: Define _KMEMUSER.
8252 * configure.ac: Define _KMEMUSER when checking for "struct lwp".
8253 * configure: Regenerate.
8255 2017-09-04 John Baldwin <jhb@FreeBSD.org>
8257 * amd64-fbsd-nat.c: Add include of "x86-xstate.h".
8258 * i386-fbsd-nat.c: Likewise.
8260 2017-09-04 John Baldwin <jhb@FreeBSD.org>
8262 * unittests/array-view-selftests.c: Add include of <array>.
8264 2017-09-04 John Baldwin <jhb@FreeBSD.org>
8266 * spu-tdep.c (flush_ea_cache): Add missing argument to
8267 call_function_by_hand.
8269 2017-09-04 Pedro Alves <palves@redhat.com>
8271 * NEWS (Safer support for debugging with no debug info): New.
8273 2017-09-04 Pedro Alves <palves@redhat.com>
8275 * c-exp.y (function_method, function_method_void): Add current
8276 instance flags to TYPE_INSTANCE.
8277 * dwarf2read.c (check_modifier): New.
8278 (compute_delayed_physnames): Assert that only C++ adds delayed
8279 physnames. Mark fn_fields as const/volatile depending on
8281 * eval.c (make_params): New type_instance_flags parameter. Use
8282 it as the new type's instance flags.
8283 (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance
8284 flags element and pass it to make_params.
8285 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle
8286 instance flags element.
8287 (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise.
8288 * gdbtypes.h: Include "enum-flags.h".
8289 (type_instance_flags): New enum-flags type.
8290 (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC)
8291 (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean.
8292 * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust.
8293 (follow_type_instance_flags): New function.
8294 (operator_check_standard) <TYPE_INSTANCE>: Adjust.
8295 * parser-defs.h (follow_type_instance_flags): Declare.
8296 * valops.c (value_struct_elt_for_reference): const/volatile must
8299 2017-09-04 Pedro Alves <palves@redhat.com>
8301 * cp-namespace.c (cp_search_static_and_baseclasses): Handle
8302 function/method scopes; lookup the nested name as a function local
8305 2017-09-04 Pedro Alves <palves@redhat.com>
8307 (%type <voidval>): Add function_method.
8308 * c-exp.y (exp): New production for calls with no arguments.
8309 (function_method, function_method_void_or_typelist): New
8311 (exp): New production for "method()::static_var".
8312 * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR.
8313 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
8314 Handle OP_FUNC_STATIC_VAR.
8315 * parse.c (operator_length_standard):
8316 Handle OP_FUNC_STATIC_VAR.
8318 2017-09-04 Pedro Alves <palves@redhat.com>
8320 * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS
8322 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
8324 * parse.c (operator_length_standard, operator_check_standard):
8326 * std-operator.def (UNOP_MEMVAL_TLS): Delete.
8328 2017-09-04 Pedro Alves <palves@redhat.com>
8330 * ax-gdb.c: Include "typeprint.h".
8331 (gen_expr_for_cast): New function.
8332 (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it.
8333 <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's
8335 * dwarf2read.c (new_symbol_full): Fallback to int instead of
8336 nodebug_data_symbol.
8337 * eval.c: Include "typeprint.h".
8338 (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>:
8339 Error out if symbol has unknown type.
8340 <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to
8341 evaluate_subexp_for_cast.
8342 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle
8344 (evaluate_subexp_for_cast): New function.
8345 * gdbtypes.c (init_nodebug_var_type): New function.
8346 (objfile_type): Use it to initialize types of variables with no
8348 * typeprint.c (error_unknown_type): New.
8349 * typeprint.h (error_unknown_type): New declaration.
8350 * compile/compile-c-types.c (convert_type_basic): Handle
8351 TYPE_CODE_ERROR; warn and fallback to int for variables with
8354 2017-09-04 Pedro Alves <palves@redhat.com>
8356 * eval.c (evaluate_var_value): New function, factored out from ...
8357 (evaluate_subexp_standard): ... here.
8359 2017-09-04 Pedro Alves <palves@redhat.com>
8361 * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>:
8362 Remove useless assignments to 'op'.
8364 2017-09-04 Pedro Alves <palves@redhat.com>
8366 * eval.c (eval_skip_value): New function.
8367 (evaluate_subexp_standard): Use it.
8369 2017-09-04 Pedro Alves <palves@redhat.com>
8371 * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract
8372 function name from symbol/minsym and pass it to
8373 error_call_unknown_return_type.
8375 2017-09-04 Pedro Alves <palves@redhat.com>
8377 * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE.
8378 * ax-gdb.c (gen_msym_var_ref): New function.
8379 (gen_expr): Handle OP_VAR_MSYM_VALUE.
8380 * eval.c (evaluate_var_msym_value): New function.
8381 * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE.
8382 <OP_FUNCALL>: Extract function name from symbol/minsym and pass it
8383 to call_function_by_hand.
8384 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
8385 Handle OP_VAR_MSYM_VALUE.
8386 (union exp_element) <msymbol>: New field.
8387 * minsyms.h (struct type): Forward declare.
8388 (find_minsym_type_and_address): Declare.
8389 * parse.c (write_exp_elt_msym): New function.
8390 (write_exp_msymbol): Delete, refactored as ...
8391 (find_minsym_type_and_address): ... this new function.
8392 (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE.
8393 (operator_length_standard, operator_check_standard): Handle
8395 * std-operator.def (OP_VAR_MSYM_VALUE): New.
8397 2017-09-04 Pedro Alves <palves@redhat.com>
8399 * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle
8400 TYPE_GNU_IFUNC specially here. Throw error if return type is
8402 * ada-typeprint.c (print_func_type): Handle functions with unknown
8404 * c-typeprint.c (c_type_print_base): Handle functions and methods
8405 with unknown return type.
8406 * compile/compile-c-symbols.c (convert_symbol_bmsym)
8407 <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol.
8408 * compile/compile-c-types.c: Include "objfiles.h".
8409 (convert_func): For functions with unknown return type, warn and
8411 * compile/compile-object-run.c (compile_object_run): Adjust call
8412 to call_function_by_hand_dummy.
8413 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to
8414 call_function_by_hand.
8415 * eval.c (evaluate_subexp_standard): Adjust calls to
8416 call_function_by_hand. Handle functions and methods with unknown
8417 return type. Pass expect_type to call_function_by_hand.
8418 * f-typeprint.c (f_type_print_base): Handle functions with unknown
8420 * gcore.c (call_target_sbrk): Adjust call to
8421 call_function_by_hand.
8422 * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL
8423 return type instead of int. Make nodebug_text_gnu_ifunc_symbol be
8424 an integer address type instead of nodebug.
8425 * guile/scm-value.c (gdbscm_value_call): Adjust call to
8426 call_function_by_hand.
8427 * infcall.c (error_call_unknown_return_type): New function.
8428 (call_function_by_hand): New "default_return_type" parameter.
8430 (call_function_by_hand_dummy): New "default_return_type"
8431 parameter. Use it instead of defaulting to int. If there's no
8432 default and the return type is unknown, throw an error. If
8433 there's a default return type, and the called function has no
8434 debug info, then assume the function is prototyped.
8435 * infcall.h (call_function_by_hand, call_function_by_hand_dummy):
8436 New "default_return_type" parameter.
8437 (error_call_unknown_return_type): New declaration.
8438 * linux-fork.c (call_lseek): Cast return type of lseek.
8439 (inferior_call_waitpid, checkpoint_command): Adjust calls to
8440 call_function_by_hand.
8441 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust
8442 calls to call_function_by_hand.
8443 * m2-typeprint.c (m2_procedure): Handle functions with unknown
8445 * objc-lang.c (lookup_objc_class, lookup_child_selector)
8446 (value_nsstring, print_object_command): Adjust calls to
8447 call_function_by_hand.
8448 * p-typeprint.c (pascal_type_print_varspec_prefix): Handle
8449 functions with unknown return type.
8450 (pascal_type_print_func_varspec_suffix): New function.
8451 (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC,
8452 TYPE_CODE_METHOD>: Use it.
8453 * python/py-value.c (valpy_call): Adjust call to
8454 call_function_by_hand.
8455 * rust-lang.c (rust_evaluate_funcall): Adjust call to
8456 call_function_by_hand.
8457 * valarith.c (value_x_binop, value_x_unop): Adjust calls to
8458 call_function_by_hand.
8459 * valops.c (value_allocate_space_in_inferior): Adjust call to
8460 call_function_by_hand.
8461 * typeprint.c (type_print_unknown_return_type): New function.
8462 * typeprint.h (type_print_unknown_return_type): New declaration.
8464 2017-09-04 Pedro Alves <palves@redhat.com>
8466 * gdbtypes.c (lookup_function_type_with_arguments): Mark function
8467 types with more than one parameter as prototyped.
8469 2017-09-04 Pedro Alves <palves@redhat.com>
8471 * cli/cli-cmds.c (print_disassembly, disassemble_current_function)
8472 (disassemble_command): Use gdb_disassembly_flags instead of bare
8474 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn)
8475 (dump_insns, do_mixed_source_and_assembly_deprecated)
8476 (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly):
8477 Use gdb_disassembly_flags instead of bare int.
8478 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN)
8479 (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME)
8480 (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE)
8481 (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're...
8482 (enum gdb_disassembly_flag): ... values of this new enumeration.
8483 (gdb_disassembly_flags): Define.
8485 (gdb_pretty_print_disassembler::pretty_print_insn): Use it.
8486 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use
8487 gdb_disassembly_flags instead of bare int.
8488 * record-btrace.c (btrace_insn_history)
8489 (record_btrace_insn_history, record_btrace_insn_history_range)
8490 (record_btrace_insn_history_from): Use gdb_disassembly_flags
8491 instead of bare int.
8492 * record.c (get_insn_history_modifiers, cmd_record_insn_history):
8493 Use gdb_disassembly_flags instead of bare int.
8494 * target-debug.h (target_debug_print_gdb_disassembly_flags):
8496 * target-delegates.c: Regenerate.
8497 * target.c (target_insn_history, target_insn_history_from)
8498 (target_insn_history_range): Use gdb_disassembly_flags instead of
8500 * target.h: Include "disasm.h".
8501 (struct target_ops) <to_insn_history, to_insn_history_from,
8502 to_insn_history_range>: Use gdb_disassembly_flags instead of bare
8504 (target_insn_history, target_insn_history_from)
8505 (target_insn_history_range): Use gdb_disassembly_flags instead of
8508 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
8510 * cli/cli-script.c (build_command_line): For if/while commands,
8511 check whether args is empty.
8513 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
8515 * cli/cli-script.h (enum misc_command_type): Move from defs.h.
8516 (enum command_control_type): Likewise.
8517 (struct command_line): Likewise.
8518 (free_command_lines): Likewise.
8519 (struct command_lines_deleter): Likewise.
8520 (command_line_up): Likewise.
8521 (read_command_lines): Likewise.
8522 (read_command_lines_1): Likewise.
8523 * defs.h (enum misc_command_type): Move to cli/cli-script.h.
8524 (enum command_control_type): Likewise.
8525 (struct command_line): Likewise.
8526 (free_command_lines): Likewise.
8527 (struct command_lines_deleter): Likewise.
8528 (command_line_up): Likewise.
8529 (read_command_lines): Likewise.
8530 (read_command_lines_1): Likewise.
8531 * breakpoint.h: Include cli/cli-script.h.
8532 * extension-priv.h: Likewise.
8533 * gdbcmd.h: Likewise.
8535 2017-09-04 Pedro Alves <palves@redhat.com>
8537 * ada-lang.c (is_known_support_routine): Move sal declaration to
8538 where it is initialized.
8539 * breakpoint.c (create_internal_breakpoint, init_catchpoint)
8540 (parse_breakpoint_sals, decode_static_tracepoint_spec)
8541 (clear_command, update_static_tracepoint): Remove init_sal
8542 references. Move declarations closer to initializations.
8543 * cli/cli-cmds.c (list_command): Move sal declarations closer to
8545 * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal
8546 references. Move sal declarations closer to initializations.
8547 * frame.c (find_frame_sal): Return a symtab_and_line via function
8548 return instead of output parameter. Remove init_sal references.
8549 * frame.h (find_frame_sal): Return a symtab_and_line via function
8550 return instead of output parameter.
8551 * guile/scm-frame.c (gdbscm_frame_sal): Adjust.
8552 * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new
8554 (gdbscm_find_pc_line): Remove init_sal reference.
8555 * infcall.c (call_function_by_hand_dummy): Remove init_sal
8556 references. Move declarations closer to initializations.
8557 * infcmd.c (set_step_frame): Update. Move declarations closer to
8559 (finish_backward): Remove init_sal references. Move declarations
8560 closer to initializations.
8561 * infrun.c (process_event_stop_test, handle_step_into_function)
8562 (insert_hp_step_resume_breakpoint_at_frame)
8563 (insert_step_resume_breakpoint_at_caller): Likewise.
8564 * linespec.c (create_sals_line_offset, decode_digits_ordinary)
8565 (symbol_to_sal): Likewise.
8566 * probe.c (parse_probes_in_pspace): Remove init_sal reference.
8567 * python/py-frame.c (frapy_find_sal): Move sal declaration closer
8568 to its initialization.
8569 * reverse.c (save_bookmark_command): Use new/delete. Remove
8570 init_sal references. Move declarations closer to initializations.
8571 * source.c (get_current_source_symtab_and_line): Remove brace
8573 (set_current_source_symtab_and_line): Now takes the sal by const
8574 reference. Remove brace initialization.
8575 (line_info): Remove init_sal reference.
8576 * source.h (set_current_source_symtab_and_line): Now takes a
8577 symtab_and_line via const reference.
8578 * stack.c (set_current_sal_from_frame): Adjust.
8579 (print_frame_info): Adjust.
8580 (get_last_displayed_sal): Return the sal via function return
8581 instead of via output parameter. Simplify.
8582 (frame_info): Adjust.
8583 * stack.h (get_last_displayed_sal): Return the sal via function
8584 return instead of via output parameter.
8585 * symtab.c (init_sal): Delete.
8586 (find_pc_sect_line): Remove init_sal references. Move
8587 declarations closer to initializations.
8588 (find_function_start_sal): Remove init_sal references. Move
8589 declarations closer to initializations.
8590 * symtab.h (struct symtab_and_line): In-class initialize all
8592 * tracepoint.c (set_traceframe_context)
8593 (print_one_static_tracepoint_marker): Remove init_sal references.
8594 Move declarations closer to initializations.
8595 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust.
8596 * tui/tui-stack.c (tui_show_frame_info): Adjust. Move
8597 declarations closer to initializations.
8598 * tui/tui-winsource.c (tui_update_source_window_as_is): Remove
8599 init_sal references. Adjust.
8601 2017-09-04 Pedro Alves <palves@redhat.com>
8603 * ax-gdb.c (agent_command_1): Use range-for.
8604 * break-catch-throw.c (re_set_exception_catchpoint): Update.
8605 * breakpoint.c: Include "common/array-view.h".
8606 (init_breakpoint_sal, create_breakpoint_sal): Change sals
8607 parameter from struct symtabs_and_lines to
8608 array_view<symtab_and_line>. Adjust. Use range-for. Update.
8609 (breakpoint_sals_to_pc): Change sals parameter from struct
8610 symtabs_and_lines to std::vector reference.
8611 (check_fast_tracepoint_sals): Change sals parameter from struct
8612 symtabs_and_lines to std::array_view. Use range-for.
8613 (decode_static_tracepoint_spec): Return a std::vector instead of
8614 symtabs_and_lines. Update.
8615 (create_breakpoint): Update.
8616 (break_range_command, until_break_command, clear_command): Update.
8617 (base_breakpoint_decode_location, bkpt_decode_location)
8618 (bkpt_probe_create_sals_from_location)
8619 (bkpt_probe_decode_location, tracepoint_decode_location)
8620 (tracepoint_probe_decode_location)
8621 (strace_marker_create_sals_from_location): Return a std::vector
8622 instead of symtabs_and_lines.
8623 (strace_marker_create_breakpoints_sal): Update.
8624 (strace_marker_decode_location): Return a std::vector instead of
8625 symtabs_and_lines. Update.
8626 (update_breakpoint_locations): Change struct symtabs_and_lines
8627 parameters to gdb::array_view. Adjust.
8628 (location_to_sals): Return a std::vector instead of
8629 symtabs_and_lines. Update.
8630 (breakpoint_re_set_default): Use std::vector instead of struct
8632 (decode_location_default): Return a std::vector instead of
8633 symtabs_and_lines. Update.
8634 * breakpoint.h: Include "common/array-view.h".
8635 (struct breakpoint_ops) <decode_location>: Now returns a
8636 std::vector instead of returning a symtabs_and_lines via output
8638 (update_breakpoint_locations): Change sals parameters to use
8640 * cli/cli-cmds.c (edit_command, list_command): Update to use
8641 std::vector and gdb::array_view.
8642 (ambiguous_line_spec): Adjust to use gdb::array_view and
8644 (compare_symtabs): Rename to ...
8645 (cmp_symtabs): ... this. Change parameters to symtab_and_line
8646 const reference and adjust.
8647 (filter_sals): Rewrite using std::vector and standard algorithms.
8648 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify.
8649 (jump_command): Update to use std::vector.
8650 * linespec.c (struct linespec_state) <canonical_names>: Update
8652 (add_sal_to_sals_basic): Delete.
8653 (add_sal_to_sals, filter_results, convert_results_to_lsals)
8654 (decode_line_2, create_sals_line_offset)
8655 (convert_address_location_to_sals, convert_linespec_to_sals)
8656 (convert_explicit_location_to_sals, parse_linespec)
8657 (event_location_to_sals, decode_line_full, decode_line_1)
8658 (decode_line_with_current_source)
8659 (decode_line_with_last_displayed, decode_objc)
8660 (decode_digits_list_mode, decode_digits_ordinary, minsym_found)
8661 (linespec_result::~linespec_result): Adjust to use std::vector
8662 instead of symtabs_and_lines.
8663 * linespec.h (linespec_sals::sals): Now a std::vector.
8664 (struct linespec_result): Use std::vector, bool, and in-class
8666 (decode_line_1, decode_line_with_current_source)
8667 (decode_line_with_last_displayed): Return std::vector.
8668 * macrocmd.c (info_macros_command): Use std::vector.
8669 * mi/mi-main.c (mi_cmd_trace_find): Use std::vector.
8670 * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use
8672 * probe.h (parse_probes): Return a std::vector.
8673 * python/python.c (gdbpy_decode_line): Use std::vector and
8675 * source.c (select_source_symtab, line_info): Use std::vector.
8676 * stack.c (func_command): Use std::vector.
8677 * symtab.h (struct symtabs_and_lines): Delete.
8678 * tracepoint.c (tfind_line_command, scope_info): Use std::vector.
8680 2017-09-04 Pedro Alves <palves@redhat.com>
8682 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8683 unittests/array-view-selftests.c.
8684 (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o.
8685 * common/array-view.h: New file.
8686 * unittests/array-view-selftests.c: New file.
8688 2017-09-04 Pedro Alves <palves@redhat.com>
8690 * cli/cli-cmds.c (edit_command): Pass message to
8691 ambiguous_line_spec.
8692 (list_command): Pass message to ambiguous_line_spec. Say
8693 "first"/"last" instead of "start" and "end" to be consistent with
8695 (ambiguous_line_spec): Add 'format' and vararg parameters. Use
8696 them to print formatted message.
8698 2017-09-04 Pedro Alves <palves@redhat.com>
8700 * btrace.c (ftrace_add_pt): Pass btrace_insn to
8701 ftrace_update_insns by reference instead of pointer.
8703 2017-09-04 Yao Qi <yao.qi@linaro.org>
8705 * i386-go32-tdep.c: Include x86-xstate.h.
8706 (i386_go32_init_abi): Call i386_target_description.
8707 * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx
8708 if xcr0 is X86_XSTATE_X87_MASK.
8709 * i386-tdep.h (tdesc_i386): Remove the declaration.
8710 (tdesc_i386_mmx): Likewise.
8712 2017-09-04 Yao Qi <yao.qi@linaro.org>
8714 * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return
8715 X86_XSTATE_SSE_MASK instead of 0.
8717 2017-09-04 Yao Qi <yao.qi@linaro.org>
8719 * amd64-fbsd-nat.c (amd64fbsd_read_description): Call
8720 i386_target_description.
8721 * i386-fbsd-nat.c (i386fbsd_read_description): Call
8722 i386_target_description.
8723 * i386-tdep.c (i386_gdbarch_init): Likewise.
8725 2017-09-04 Yao Qi <yao.qi@linaro.org>
8727 * amd64-darwin-tdep.c: Include "x86-xstate.h".
8728 (x86_darwin_init_abi_64): Call amd64_target_description.
8729 * amd64-dicos-tdep.c: Likewise.
8730 * amd64-fbsd-nat.c: Likewise.
8731 * amd64-fbsd-tdep.c: Likewise.
8732 * amd64-nbsd-tdep.c: Likewise.
8733 * amd64-obsd-tdep.c: Likewise.
8734 * amd64-sol2-tdep.c: Likewise.
8735 * amd64-windows-tdep.c: Likewise.
8736 * amd64-tdep.h (tdesc_amd64): Remove the declaration.
8738 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
8740 * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove.
8741 (btrace_function) <insn>: Change type to use std::vector.
8742 * btrace.c (ftrace_debug, ftrace_call_num_insn,
8743 ftrace_find_call, ftrace_new_gap, ftrace_update_function,
8744 ftrace_update_insns, ftrace_compute_global_level_offset,
8745 btrace_stitch_bts, btrace_clear, btrace_insn_get,
8746 btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to
8747 change to std::vector.
8748 (ftrace_update_insns): Adjust to change to std::vector, change
8749 type of INSN parameter.
8750 (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns.
8751 * record-btrace.c (btrace_call_history_insn_range,
8752 btrace_compute_src_line_range,
8753 record_btrace_frame_prev_register): Adjust to change to
8755 * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust
8756 to change to std::vector.
8758 2017-09-03 Tom Tromey <tom@tromey.com>
8760 * corefile.c (reopen_exec_file): Use std::string.
8762 2017-09-03 Tom Tromey <tom@tromey.com>
8764 * compile/compile.c (compile_register_name_mangled): Return
8766 * compile/compile-loc2c.c (pushf_register_address): Update.
8767 (pushf_register): Update.
8768 * compile/compile-c-types.c (convert_array): Update.
8769 * compile/compile-c-symbols.c (generate_vla_size): Update.
8770 (error_symbol_once): Use a gdb::unique_xmalloc_ptr.
8771 (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr.
8772 (convert_one_symbol): Update.
8773 (generate_c_for_for_one_variable): Update.
8774 * compile/compile-c-support.c (c_get_range_decl_name): Return a
8776 (generate_register_struct): Update.
8777 * compile/compile-internal.h (c_get_range_decl_name): Return a
8779 (compile_register_name_mangled): Return std::string.
8781 2017-09-03 Tom Tromey <tom@tromey.com>
8783 * utils.c (perror_string): Return a std::string.
8784 (throw_perror_with_name, perror_warning_with_name): Update.
8786 2017-09-03 Tom Tromey <tom@tromey.com>
8788 * demangle.c (demangle_command): Use std::string,
8791 2017-09-03 Tom Tromey <tom@tromey.com>
8793 * cli/cli-setshow.c (do_set_command): Use std::string.
8795 2017-09-03 Tom Tromey <tom@tromey.com>
8797 * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr.
8799 2017-09-03 Tom Tromey <tom@tromey.com>
8801 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string.
8803 2017-09-03 Tom Tromey <tom@tromey.com>
8805 * mi/mi-cmd-env.c (env_execute_cli_command): Use
8806 gdb::unique_xmalloc_ptr.
8808 2017-09-03 Tom Tromey <tom@tromey.com>
8810 * thread.c (print_thread_info_1): Use string_printf.
8811 (thread_apply_command, thread_apply_all_command): Use
8814 2017-09-03 Tom Tromey <tom@tromey.com>
8816 * valprint.c (val_print_string): Update.
8817 * gdbcore.h (memory_error_message): Return std::string.
8818 * corefile.c (memory_error_message): Return std::string.
8819 (memory_error): Update.
8820 * breakpoint.c (insert_bp_location): Update.
8822 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
8824 * target/waitstatus.h (target_waitstatus_to_string): Change
8825 return type to std::string.
8826 * target/waitstatus.c (target_waitstatus_to_string): Return
8828 * target.h (target_waitstatus_to_string): Remove declaration.
8829 * infrun.c (resume, clear_proceed_status_thread,
8830 print_target_wait_results, do_target_wait, save_waitstatus,
8831 stop_all_threads): Adjust.
8832 * record-btrace.c (record_btrace_wait): Adjust.
8834 (target_debug_print_struct_target_waitstatus_p): Adjust.
8836 2017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8839 * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED
8842 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
8844 * NEWS (Changes since GDB 8.0): Add entry mentioning new support
8845 for setting/unsetting environment variables on the remote target.
8846 (New remote packets): Add entries for QEnvironmentHexEncoded,
8847 QEnvironmentUnset and QEnvironmentReset.
8848 * common/environ.c (gdb_environ::operator=): Extend method to
8849 handle m_user_set_env_list and m_user_unset_env_list.
8850 (gdb_environ::clear): Likewise.
8851 (match_var_in_string): Change type of first parameter from 'char
8852 *' to 'const char *'.
8853 (gdb_environ::set): Extend method to handle
8854 m_user_set_env_list and m_user_unset_env_list.
8855 (gdb_environ::unset): Likewise.
8856 (gdb_environ::clear_user_set_env): New method.
8857 (gdb_environ::user_set_envp): Likewise.
8858 (gdb_environ::user_unset_envp): Likewise.
8859 * common/environ.h (gdb_environ): Handle m_user_set_env_list and
8860 m_user_unset_env_list on move constructor/assignment.
8861 (unset): Add new default parameter 'update_unset_list = true'.
8862 (clear_user_set_env): New method.
8863 (user_set_envp): Likewise.
8864 (user_unset_envp): Likewise.
8865 (m_user_set_env_list): New std::set.
8866 (m_user_unset_env_list): Likewise.
8867 * common/rsp-low.c (hex2str): New function.
8868 (bin2hex): New overload for bin2hex function.
8869 * common/rsp-low.c (hex2str): New prototype.
8870 (str2hex): New overload prototype.
8871 * remote.c: Include "environ.h". Add QEnvironmentHexEncoded,
8872 QEnvironmentUnset and QEnvironmentReset.
8873 (remote_protocol_features): Add QEnvironmentHexEncoded,
8874 QEnvironmentUnset and QEnvironmentReset packets.
8875 (send_environment_packet): New function.
8876 (extended_remote_environment_support): Likewise.
8877 (extended_remote_create_inferior): Call
8878 extended_remote_environment_support.
8879 (_initialize_remote): Add QEnvironmentHexEncoded,
8880 QEnvironmentUnset and QEnvironmentReset packet configs.
8881 * unittests/environ-selftests.c (gdb_selftest_env_var):
8883 (test_vector_initialization): New function.
8884 (test_init_from_host_environ): Likewise.
8885 (test_reinit_from_host_environ): Likewise.
8886 (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B):
8888 (test_unset_set_empty_vector): Likewise.
8889 (test_vector_clear): Likewise.
8890 (test_std_move): Likewise.
8891 (test_move_constructor):
8892 (test_self_move): Likewise.
8893 (test_set_unset_reset): Likewise.
8894 (run_tests): Rewrite in terms of the functions above.
8896 2017-08-31 Weimin Pan <weimin.pan@oracle.com>
8898 * sparc64-tdep.c (adi_stat_t): Fix comment formatting.
8899 (adi_available): Use a temp variable of type CORE_ADDR as argument
8900 3 when calling target_auxv_search.
8901 (adi_normalize_address): Use masks and xor operators to calculate
8903 (adi_read_versions, adi_write_versions, adi_print_versions)
8904 (do_examine, do_assign): Use paddress.
8906 2017-08-29 John Baldwin <jhb@FreeBSD.org>
8908 * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR.
8909 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR
8910 out of loop and add supply of FIR.
8911 (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and
8914 2017-08-28 Simon Marchi <simon.marchi@ericsson.com>
8917 * cli/cli-script.c (define_command): Don't convert command name
8920 2017-08-25 Joel Brobecker <brobecker@adacore.com>
8922 * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp".
8923 Update all callers accordingly. Remove all code blocks handling
8924 the case where DISPP is not NULL.
8926 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8929 * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow)
8930 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
8931 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const.
8933 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8935 * dwarf2read.c (build_type_psymtabs_reader): New prototype.
8936 (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES.
8937 (read_comp_units_from_section): New parameter abbrev_section, use
8938 read_and_check_comp_unit_head, allocate signatured_type if needed.
8939 (create_all_comp_units): Update read_comp_units_from_section caller.
8941 2017-08-23 Pedro Alves <palves@redhat.com>
8944 * remote.c (add_current_inferior_and_thread): Set inferior_ptid
8945 to null_ptid and switch to thread without reading the registers
8946 after adding the inferior.
8948 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
8950 * NEWS (Changes since GDB 8.0): Add set compile-gcc and show
8952 * compile/compile.c (compile_gcc, show_compile_gcc): New.
8953 (compile_to_object): Implement compile_gcc.
8954 (_initialize_compile): Install "set compile-gcc". Initialize
8957 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
8959 * compile/compile.c (compile_to_object): Conditionally call
8960 set_verbose. Conditionally call compile or compile_v0.
8962 2017-08-07 Weimin Pan <weimin.pan@oracle.com>
8964 * sparc64-tdep.h: (adi_normalize_address): New export.
8965 * sparc-nat.h: (open_adi_tag_fd): New export.
8966 * sparc64-linux-nat.c: (open_adi_tag_fd): New function.
8967 * sparc64-linux-tdep.c:
8968 (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines.
8969 (sparc64_linux_handle_segmentation_fault): New function.
8970 (sparc64_linux_init_abi): Register
8971 sparc64_linux_handle_segmentation_fault
8972 * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h.
8973 (sparc64_addr_bits_remove): New function.
8974 (sparc64_init_abi): Register sparc64_addr_bits_remove.
8975 (MAX_PROC_NAME_SIZE): New macro.
8976 (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines.
8977 (sparc64adilist): New variable.
8978 (adi_proc_list): New variable.
8979 (find_adi_info): New function.
8980 (add_adi_info): New function.
8981 (get_adi_info_proc): New function.
8982 (get_adi_info): New function.
8983 (info_adi_command): New function.
8984 (read_maps_entry): New function.
8985 (adi_available): New function.
8986 (adi_normalize_address): New function.
8987 (adi_align_address): New function.
8988 (adi_convert_byte_count): New function.
8989 (adi_tag_fd): New function.
8990 (adi_is_addr_mapped): New function.
8991 (adi_read_versions): New function.
8992 (adi_write_versions): New function.
8993 (adi_print_versions): New function.
8994 (do_examine): New function.
8995 (do_assign): New function.
8996 (adi_examine_command): New function.
8997 (adi_assign_command): New function.
8998 (_initialize_sparc64_adi_tdep): New function.
9000 2017-08-22 Simon Marchi <simon.marchi@ericsson.com>
9002 * breakpoint.c (breakpoints_info): Rename to ...
9003 (info_breakpoints_command): ... this.
9004 (watchpoints_info): Rename to ...
9005 (info_watchpoints_command): ... this.
9006 (tracepoints_info): Rename to ...
9007 (info_tracepoints_command): ... this.
9008 (_initialize_breakpoint): Adjust.
9009 * dcache.c (dcache_info): Rename to ...
9010 (info_display_command): ... this.
9011 (_initialize_dcache): Adjust.
9012 * frame.h (args_info): Rename to ...
9013 (info_args_command): ... this.
9014 (locals_info): Rename to ...
9015 (info_locals_command): ... this.
9016 * infcmd.c (nofp_registers_info): Rename to ...
9017 (info_registers_command): ... this.
9018 (float_info): Rename to ...
9019 (info_float_command): ... this.
9020 (program_info): Rename to ...
9021 (info_program_command): ... this.
9022 (all_registers_info): Rename to ...
9023 (info_all_registers_command): ... this.
9024 (vector_info): Rename to ...
9025 (info_vector_command): ... this.
9026 (float_info): Rename to ...
9027 (info_float_command): ... this.
9028 (_initialize_infcmd): Adjust.
9029 * inferior.h (term_info): Rename to ...
9030 (info_terminal_command): ... this.
9031 * inflow.c (term_info): Rename to ...
9032 (info_terminal_command): ... this.
9033 (_initialize_inflow): Adjust.
9034 * infrun.c (signals_info): Rename to ...
9035 (info_signals_command): ... this.
9036 (_initialize_infrun): Adjust.
9037 * objc-lang.c (classes_info): Rename to ...
9038 (info_classes_command): ... this.
9039 (selectors_info): Rename to ...
9040 (info_selectors_command): ... this.
9041 (_initialize_objc_language): Adjust.
9042 * printcmd.c (sym_info): Rename to ...
9043 (info_symbol_command): ... this.
9044 (address_info): Rename to ...
9045 (info_address_command): ... this.
9046 (display_info): Rename to ...
9047 (info_display_command): ... this.
9048 (_initialize_printcmd): Adjust.
9049 * reverse.c (bookmarks_info): Rename to ...
9050 (info_breakpoints_command): ... this.
9051 (_initialize_reverse): Adjust.
9052 * ser-go32.c (dos_info): Rename to ...
9053 (info_serial_command): ... this.
9054 (_initialize_ser_dos): Adjust.
9055 * skip.c (skip_info): Rename to ...
9056 (info_skip_command): ... this.
9057 (_initialize_step_skip): Adjust.
9058 * source.c (line_info): Rename to ...
9059 (info_line_command): ... this.
9060 (source_info): Rename to ...
9061 (info_source_command)
9062 * stack.c (frame_info): Rename to ...
9063 (info_frame_command): ... this.
9064 (locals_info): Rename to ...
9065 (info_locals_command): ... this.
9066 (args_info): Rename to ...
9067 (info_args_command): ... this.
9068 (_initialize_stack): Adjust.
9069 * symtab.c (sources_info): Rename to ...
9070 (info_sources_command): ... this.
9071 (variables_info): Rename to ...
9072 (info_variables_command): ... this.
9073 (functions_info): Rename to ...
9074 (info_functions_command): ... this.
9075 (types_info): Rename to ...
9076 (info_types_command): ... this.
9077 (_initialize_symtab): Adjust.
9078 * target.c (target_info): Rename to ...
9079 (info_target_command): ... this.
9080 (initialize_targets): Adjust.
9081 * tracepoint.c (tvariables_info): Rename to ...
9082 (info_tvariables_command): ... this.
9083 (scope_info): Rename to ...
9084 (info_scope_command): ... this.
9085 (trace_dump_actions): Adjust.
9086 (_initialize_tracepoint): Adjust.
9088 2017-08-22 Tom Tromey <tom@tromey.com>
9090 * breakpoint.h (install_breakpoint): Update.
9091 * breakpoint.c (add_solib_catchpoint): Update.
9092 (install_breakpoint): Change argument to a std::unique_ptr.
9093 (create_fork_vfork_event_catchpoint): Use std::unique_ptr.
9094 (create_breakpoint_sal, create_breakpoint): Update.
9095 (watch_command_1, catch_exec_command_1)
9096 (strace_marker_create_breakpoints_sal): Use std::unique_ptr.
9097 (add_to_breakpoint_chain): Change argument to a std::unique_ptr.
9098 Return the breakpoint.
9099 (set_raw_breakpoint_without_location, set_raw_breakpoint)
9100 (new_single_step_breakpoint): Update.
9101 * break-catch-throw.c (handle_gnu_v3_exceptions): Use
9103 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
9105 * break-catch-sig.c (create_signal_catchpoint): Use
9107 * ada-lang.c (create_ada_exception_catchpoint): Use
9110 2017-08-22 Tom Tromey <tom@tromey.com>
9112 * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr.
9114 2017-08-22 Tom Tromey <tom@tromey.com>
9116 * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr.
9117 (lookup_partial_symbol): Update.
9119 2017-08-22 Tom Tromey <tom@tromey.com>
9121 * source.h (rewrite_source_path): Return a unique_xmalloc_ptr.
9122 * source.c (rewrite_source_path): Return a unique_xmalloc_ptr.
9123 (find_and_open_source, symtab_to_fullname): Update.
9124 * psymtab.c (psymtab_to_fullname): Update.
9126 2017-08-22 Tom Tromey <tom@tromey.com>
9128 * exec.c (exec_file_attach): Update.
9129 * linux-thread-db.c (try_thread_db_load): Update.
9130 * guile/scm-safe-call.c (gdbscm_safe_source_script): Update.
9131 * utils.c (gdb_realpath): Change return type.
9132 (gdb_realpath_keepfile): Update.
9133 (gdb_realpath_check_trailer, gdb_realpath_tests): New functions.
9134 (_initialize_utils): Register the new self test.
9135 * source.c (openp): Update.
9136 (find_and_open_source): Update.
9137 * nto-tdep.c (nto_find_and_open_solib): Update.
9138 * main.c (set_gdb_data_directory): Update.
9139 (captured_main_1): Update.
9140 * dwarf2read.c (dwarf2_get_dwz_file): Update
9141 (dw2_map_symbol_filenames): Update.
9142 * auto-load.c (auto_load_safe_path_vec_update): Update.
9143 (filename_is_in_auto_load_safe_path_vec): Change type of
9145 (auto_load_objfile_script): Update.
9146 (file_is_auto_load_safe): Update. Use std::string.
9147 * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr.
9149 2017-08-22 Tom Tromey <tom@tromey.com>
9151 * utils.c (gdb_realpath_keepfile): Return a
9152 gdb::unique_xmalloc_ptr.
9153 * exec.c (exec_file_attach): Update.
9154 * utils.h (gdb_realpath_keepfile): Return a
9155 gdb::unique_xmalloc_ptr.
9157 2017-08-22 Tom Tromey <tom@tromey.com>
9159 * compile/compile.c (compile_file_command): Use
9160 gdb::unique_xmalloc_ptr, std::string.
9161 * utils.c (gdb_abspath): Change return type.
9162 * source.c (openp): Update.
9163 * objfiles.c (allocate_objfile): Update.
9164 * main.c (set_gdb_data_directory): Update.
9165 * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr.
9167 2017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com>
9169 * cli-cmds.c (list_commands): List actual code around more than
9172 2017-08-21 John Baldwin <jhb@FreeBSD.org>
9174 * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'.
9176 2017-08-21 Pedro Alves <palves@redhat.com>
9179 * c-exp.y (variable production): Handle function aliases.
9180 * minsyms.c (msymbol_is_text): New function.
9181 * minsyms.h (msymbol_is_text): Declare.
9182 * symtab.c (find_function_alias_target): New function.
9183 * symtab.h (find_function_alias_target): Declare.
9185 2017-08-21 Pedro Alves <palves@redhat.com>
9187 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past
9189 * typeprint.c (whatis_exp): If handling "whatis", and expression
9190 is OP_TYPE, strip one typedef level. Otherwise don't strip
9192 * valops.c (value_cast): Save "to" type before resolving
9193 stubs/typedefs. Use that type as resulting value's type.
9195 2017-08-18 Tom Tromey <tom@tromey.com>
9196 Pedro Alves <palves@redhat.com>
9198 * spu-multiarch.c (parse_spufs_run): Use scoped_restore.
9199 * sol-thread.c (sol_thread_resume, sol_thread_wait)
9200 (sol_thread_xfer_partial, rw_common): Use scoped_restore.
9201 * procfs.c (procfs_do_thread_registers): Use scoped_restore.
9202 * proc-service.c (ps_xfer_memory): Use scoped_restore.
9203 * linux-tdep.c (linux_corefile_thread): Remove a cleanup.
9204 (linux_get_siginfo_data): Add "thread" argument. Use
9206 * linux-nat.c (linux_child_follow_fork)
9207 (check_stopped_by_watchpoint): Use scoped_restore.
9208 * infrun.c (displaced_step_prepare_throw, write_memory_ptid)
9209 (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore.
9210 (restore_inferior_ptid, save_inferior_ptid): Remove.
9211 * btrace.c (btrace_fetch): Use scoped_restore.
9212 * bsd-uthread.c (bsd_uthread_fetch_registers)
9213 (bsd_uthread_store_registers): Use scoped_restore.
9214 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
9216 * aix-thread.c (aix_thread_resume, aix_thread_wait)
9217 (aix_thread_xfer_partial): Use scoped_restore.
9218 * inferior.h (save_inferior_ptid): Remove.
9220 2017-08-18 Yao Qi <yao.qi@linaro.org>
9223 * arm-tdep.c (gdb_print_insn_arm): Mark
9224 USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL.
9226 2017-08-18 Yao Qi <yao.qi@linaro.org>
9228 * NEWS: Mention GDBserver's new option "--selftest".
9229 * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c.
9230 * selftest.c: Move it to common/selftest.c.
9231 * selftest.h: Move it to common/selftest.h.
9232 * selftest-arch.c (reset): New function.
9233 (tests_with_arch): Call reset.
9235 2017-08-18 Yao Qi <yao.qi@linaro.org>
9237 * selftest.c (run_tests): Don't call QUIT. Call debug_printf
9238 instead of exception_fprintf and printf_filtered.
9240 2017-08-18 Yao Qi <yao.qi@linaro.org>
9242 * selftest.c (register_self_test): Rename it to
9243 selftests::register_test.
9244 (run_self_tests): selftest::run_tests.
9245 * selftest.h: Update declarations.
9246 * selftest-arch.c (register_self_test_foreach_arch): Rename it to
9247 selftests::register_test_foreach_arch.
9248 * selftest-arch.h: Update declaration.
9249 * aarch64-tdep.c: Update.
9250 * arm-tdep.c: Likewise.
9251 * disasm-selftests.c: Likewise.
9252 * dwarf2loc.c: Likewise.
9253 * dwarf2-frame.c: Likewise.
9254 * findvar.c: Likewise.
9255 * gdbarch-selftests.c: Likewise.
9256 * maint.c (maintenance_selftest): Likewise.
9257 * regcache.c: Likewise.
9258 * rust-exp.y: Likewise.
9259 * selftest-arch.c: Likewise.
9260 * unittests/environ-selftests.c: Likewise.
9261 * unittests/function-view-selftests.c: Likewise.
9262 * unittests/offset-type-selftests.c: Likewise.
9263 * unittests/optional-selftests.c: Likewise.
9264 * unittests/scoped_restore-selftests.c: Likewise.
9265 * utils-selftests.c: Likewise.
9267 2017-08-17 Pedro Alves <palves@redhat.com>
9269 * cli/cli-cmds.c (source_command): Delete 'old_source_verbose'
9272 2017-08-17 Pedro Alves <palves@redhat.com>
9274 * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New
9276 (reset_die_in_process): Delete, replaced by ...
9277 (process_die_scope): ... this new class. Make it responsible for
9278 freeing cu->line_header too.
9279 (process_die): Use process_die_scope.
9280 (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in
9281 cu->line_header_die_owner. Don't release the line header if it's
9283 (setup_type_unit_groups): Make the CU/DIE own the line header.
9284 Don't release the line header here.
9286 2017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change)
9288 * elfread.c (elf_read_minimal_symbols): xfree synthsyms.
9290 2017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com>
9292 * NEWS: Mention new shortcuts for nexti and stepi in TUI
9295 2017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com>
9297 * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key
9300 2017-08-15 Stafford Horne <shorne@gmail.com>
9302 * MAINTAINERS (Write After Approval): Add Stafford Horne.
9304 2017-08-15 Stafford Horne <shorne@gmail.com>
9306 * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname.
9308 2017-08-15 Sergio Durigan Junior <sergiodj@redhat.com>
9311 * infcmd.c (unset_environment_command): Use the 'clear' method on
9312 the environment instead of resetting it.
9314 2017-08-15 John Baldwin <jhb@FreeBSD.org>
9316 * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian
9319 2017-08-14 Tom Tromey <tom@tromey.com>
9321 * valprint.c (print_octal_chars): Use HOST_CHAR_BIT.
9322 (print_binary_chars): Likewise.
9323 (BITS_IN_BYTES): Remove.
9325 2017-08-14 Tom Tromey <tom@tromey.com>
9328 * valprint.c (LOW_ZERO): Change value to 034.
9329 (print_octal_chars): Add static_asserts for octal constants.
9330 * printcmd.c (print_scalar_formatted): Add 'd' case.
9332 2017-08-11 Tom Tromey <tom@tromey.com>
9334 * symfile.c (add_symbol_file_command): Use std::vector.
9336 2017-08-14 Tom Tromey <tom@tromey.com>
9338 * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move.
9339 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
9341 * break-catch-sig.c (create_signal_catchpoint): Use std::move.
9343 2017-08-11 Pedro Alves <palves@redhat.com>
9345 * infrun.c (process_event_stop_test): Adjust
9346 function_name_is_marked_for_skip call.
9347 * skip.c: Include <list>.
9348 (skiplist_entry): Make it a class with private fields, and
9350 (skiplist_entry_chain): Delete.
9351 (skiplist_entries): New.
9352 (skiplist_entry_count): Delete.
9353 (highest_skiplist_entry_num): New.
9354 (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete.
9355 (add_skiplist_entry): Delete.
9356 (skiplist_entry::skiplist_entry): New.
9357 (skiplist_entry::add_entry): New.
9358 (skip_file_command, skip_function): Adjust.
9359 (compile_skip_regexp): Delete.
9360 (skip_command): Don't compile regexp here. Adjust to use
9361 skiplist_entry::add_entry.
9362 (skip_info): Adjust to use range-for and getters.
9363 (skip_enable_command, skip_disable_command): Adjust to use
9364 range-for and setters.
9365 (skip_delete_command): Adjust to use std::list.
9366 (add_skiplist_entry): Delete.
9367 (skip_file_p): Delete, refactored as ...
9368 (skiplist_entry::do_skip_file_p): ... this new method.
9369 (skip_gfile_p): Delete, refactored as ...
9370 (skiplist_entry::do_gskip_file_p): ... this new method.
9371 (skip_function_p, skip_rfunction_p): Delete, refactored as ...
9372 (skiplist_entry::skip_function_p): ... this new method.
9373 (function_name_is_marked_for_skip): Now returns bool, and takes
9374 the function sal by const reference. Adjust to use range-for and
9375 skiplist_entry methods.
9376 (_initialize_step_skip): Remove references to
9377 skiplist_entry_chain, skiplist_entry_count.
9378 * skip.h (function_name_is_marked_for_skip): Now returns bool, and
9379 takes the function sal by const reference.
9381 2017-08-11 Yao Qi <yao.qi@linaro.org>
9383 * dwarf2-frame.c (clear_pointer_cleanup): Remove.
9384 (dwarf2_frame_cache): Remove reset_cache_cleanup.
9385 (dwarf2_frame_cache):
9386 * frame-unwind.c (frame_unwind_try_unwinder): Catch
9387 RETURN_MASK_ALL and set *this_case to NULL.
9388 * frame-unwind.h: Update comments.
9390 2017-08-11 Yao Qi <yao.qi@linaro.org>
9392 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove.
9393 (dwarf2_frame_state_copy_regs): Remove.
9394 (dwarf2_frame_state_free_regs): Remove.
9395 (dwarf2_frame_state::~dwarf2_frame_state): Remove.
9396 (dwarf2_restore_rule): Call method .alloc_regs instead of
9397 dwarf2_frame_state_alloc_regs.
9398 (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info
9399 constructor. Call std::move.
9400 (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs.
9401 (dwarf2_frame_cache): Likewise.
9403 [GDB_SELF_TEST]: Include selftest.h and
9405 [GDB_SELF_TEST] (execute_cfa_program_test): New function.
9406 (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register
9407 execute_cfa_program_test.
9409 * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor,
9410 copy ctor, assignment operator, move assignment.
9411 <alloc_regs>: New method.
9413 (struct dwarf2_frame_state): Delete dtor.
9414 (dwarf2_frame_state_alloc_regs): Remove declaration.
9415 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call
9416 dwarf2_frame_state_alloc_regs, use .alloc_regs instead.
9418 2017-08-11 Yao Qi <yao.qi@linaro.org>
9420 * dwarf2-frame.c (dwarf2_frame_state_free): Remove.
9421 (dwarf2_frame_state::dwarf2_frame_state): New.
9422 (dwarf2_frame_state::~dwarf2_frame_state): New.
9423 (dwarf2_fetch_cfa_info): Update.
9424 (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object
9425 rather than a pointer. Update code.
9426 * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and
9428 <data_align, code_align, retaddr_column>: Change them to const.
9429 <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them
9432 2017-08-11 Yao Qi <yao.qi@linaro.org>
9434 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove.
9435 <loc.exp>: New field.
9436 * dwarf2-frame.c (execute_cfa_program): Update.
9437 (dwarf2_frame_prev_register): Update.
9439 2017-08-10 Pedro Alves <palves@redhat.com>
9441 * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define.
9443 2017-08-09 John Baldwin <jhb@FreeBSD.org>
9445 * fbsd-nat.c (struct fbsd_fork_info): Remove.
9446 (fbsd_pending_children): Use std::list.
9447 (fbsd_remember_child): Likewise.
9448 (fbsd_is_child_pending): Likewise.
9449 (fbsd_pending_vfork_done): Use std::forward_list.
9450 (fbsd_add_vfork_done): Likewise.
9451 (fbsd_is_vfork_done_pending): Likewise.
9452 (fbsd_next_vfork_done): Likewise.
9454 2017-08-09 John Baldwin <jhb@FreeBSD.org>
9456 * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New.
9457 (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr.
9458 [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string
9460 (fbsd_xfer_partial): Use gdb::byte_vector.
9461 (fbsd_add_threads): Use gdb::unique_xmalloc_ptr.
9463 2017-08-09 John Baldwin <jhb@FreeBSD.org>
9465 * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and
9467 (fbsd_find_memory_regions): Fix `mapfile' initialization.
9469 2017-08-09 Tom Tromey <tom@tromey.com>
9471 * skip.c (skiplist_entry): New constructor.
9472 (skiplist_entry::enabled, skiplist_entry::function_is_regexp)
9473 (skiplist_entry::file_is_glob): Now bool.
9474 (skiplist_entry::file, skiplist_entry::function): Now
9476 (make_skip_entry): Return a unique_ptr. Use new.
9477 (free_skiplist_entry, free_skiplist_entry_cleanup)
9478 (make_free_skiplist_entry_cleanup): Remove.
9479 (skip_command, skip_disable_command, add_skiplist_entry)
9480 (skip_form_bytes, compile_skip_regexp, skip_command, skip_info)
9481 (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p)
9482 (function_name_is_marked_for_skip): Update.
9483 (skip_delete_command): Update. Use delete.
9485 2017-08-09 Jiong Wang <jiong.wang@arm.com>
9487 * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h".
9488 (aarch64_linux_core_read_description): New function.
9489 (aarch64_linux_init_abi): Register gdbarch_core_read_description.
9491 2017-08-09 Pedro Alves <palves@redhat.com>
9493 * cp-name-parser.y (cp_comp_to_string): Return a
9494 gdb::unique_xmalloc_ptr<char>.
9495 * cp-support.c (replace_typedefs_qualified_name)
9496 (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>.
9497 (cp_canonicalize_string_full): Use op= instead of explicit
9499 (cp_class_name_from_physname, method_name_from_physname)
9500 (cp_func_name, cp_remove_params): Adjust to use
9501 gdb::unique_xmalloc_ptr<char>.
9502 * cp-support.h (cp_comp_to_string): Return a
9503 gdb::unique_xmalloc_ptr<char>.
9504 * python/py-type.c (typy_lookup_type): Adjust to use
9505 gdb::unique_xmalloc_ptr<char>.
9507 2017-08-09 H.J. Lu <hongjiu.lu@intel.com>
9509 * dwarf2read.c (dwarf2_string_attr): Fix a typo.
9511 2017-08-09 Alex Lindsay <alexlindsay239@gmail.com>
9512 Yao Qi <yao.qi@linaro.org>
9514 * cp-support.c (cp_canonicalize_string_full): Use
9515 gdb::unique_xmalloc_ptr<char>.
9516 (cp_canonicalize_string): Likewise.
9518 2017-08-09 Yao Qi <yao.qi@linaro.org>
9520 * features/Makefile (WHICH): Remove i386/ non-linux stuff.
9521 * regformats/i386/amd64-avx-avx512.dat: Remove.
9522 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove.
9523 * regformats/i386/amd64-avx-mpx.dat:Remove.
9524 * regformats/i386/amd64-avx.dat: Remove.
9525 * regformats/i386/amd64-mpx.dat: Remove.
9526 * regformats/i386/i386-avx-avx512.dat: Remove.
9527 * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove.
9528 * regformats/i386/i386-avx-mpx.dat: Remove.
9529 * regformats/i386/i386-mmx.dat: Remove.
9530 * regformats/i386/i386-mpx.dat: Remove.
9532 2017-08-09 Yao Qi <yao.qi@linaro.org>
9534 * amd64-tdep.h (tdesc_x32): Remove the declaration.
9535 * amd64-tdep.c: Don't include features/i386/x32*.c.
9536 (_initialize_amd64_tdep): Don't call initialize_tdesc_x32*
9538 * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx,
9539 and i386/x32-avx-avx512.
9540 (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml,
9542 * features/i386/x32-avx-avx512.c: Removed.
9543 * features/i386/x32-avx-avx512.xml: Removed.
9544 * features/i386/x32-avx.c: Removed.
9545 * features/i386/x32-avx.xml: Removed.
9546 * features/i386/x32.c: Removed.
9547 * features/i386/x32.xml: Removed.
9548 * regformats/i386/x32-avx-avx512.dat: Removed.
9549 * regformats/i386/x32-avx.dat: Removed.
9550 * regformats/i386/x32.dat: Removed.
9552 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
9554 PR breakpoints/21886
9555 * mem-break.c (default_memory_insert_breakpoint): Use
9556 `->placed_address' rather than `->reqstd_address' for the
9557 breakpoint location.
9559 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
9561 * arch-utils.c (default_print_insn): Remove arch/mach/endian
9564 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
9566 * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with
9567 a union of `tdep_info', `tdesc_data' and `id'.
9568 * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data'
9569 rather than `info.tdep_info'.
9570 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
9571 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
9572 * i386-tdep.c (i386_gdbarch_init): Likewise.
9573 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
9574 * mips-tdep.c (mips_gdbarch_init): Likewise.
9575 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
9576 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
9577 * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than
9579 (ppc_linux_init_abi): Use `info.tdesc_data' rather than
9581 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
9582 * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than
9584 * spu-tdep.c (spu_gdbarch_init): Likewise.
9585 * gdbarch.h: Regenerate.
9587 2017-08-07 Leszek Swirski <leszeks@google.com>
9590 * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt.
9592 2017-08-07 Simon Marchi <simon.marchi@ericsson.com>
9594 * remote-sim.c (gdbsim_load): Remove char **argv local variable.
9595 (gdbsim_open): Rename gdb_argv args object to argv.
9597 2017-08-05 Tom Tromey <tom@tromey.com>
9599 * compile/compile-object-load.c (compile_object_load): Use
9600 gdb::unique_xmalloc_ptr.
9601 * cli/cli-dump.c (scan_filename): Rename from
9602 scan_filename_with_cleanup. Change return type.
9603 (scan_expression): Rename from scan_expression_with_cleanup.
9605 (dump_memory_to_file, dump_value_to_file, restore_command):
9606 Use gdb::unique_xmalloc_ptr. Update.
9607 * cli/cli-cmds.c (find_and_open_script): Use
9608 gdb::unique_xmalloc_ptr.
9609 * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr.
9610 * symmisc.c (maintenance_print_symbols)
9611 (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr.
9612 * symfile.c (symfile_bfd_open, generic_load)
9613 (add_symbol_file_command, remove_symbol_file_command): Use
9614 gdb::unique_xmalloc_ptr.
9615 * source.c (openp): Use gdb::unique_xmalloc_ptr.
9616 * psymtab.c (maintenance_print_psymbols): Use
9617 gdb::unique_xmalloc_ptr.
9618 * corelow.c (core_open): Use gdb::unique_xmalloc_ptr.
9619 * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr.
9620 * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr.
9621 (reload_shared_libraries_1): Likewise.
9623 2017-08-05 Tom Tromey <tom@tromey.com>
9625 * rust-exp.y (rust_op_ptr, set_field): Remove typedefs.
9626 (rust_op_vector, rust_set_vector): New typedefs.
9627 (current_parser): New global.
9628 (work_obstack): Change to pointer type. Update all users.
9629 (rust_ast, pstate): Remove globals.
9630 (struct rust_parser): New.
9631 (%union) <params, field_inits>: Change type.
9632 (start, tuple_expr, unit_expr, struct_expr_list, literal)
9633 (field_expr, expr_list, maybe_expr_list, type_list): Update.
9634 (ast_call_ish, ast_path, ast_function_type, ast_tuple_type)
9635 (convert_params_to_types, convert_params_to_expression): Change
9637 (ast_string): Change type of "fields".
9638 (rust_parse): Make a rust_parser. Remove cleanups.
9639 (rust_lex_tests): Make and install an auto_obstack.
9641 2017-08-04 Yao Qi <yao.qi@linaro.org>
9643 * configure.srv (ipa_x32_linux_regobj): New.
9644 * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
9645 instead of X86_TDESC_AVX512.
9646 (initialize_low_tracepoint): Call
9647 init_registers_x32_avx_avx512_linux.
9649 2017-08-04 Yao Qi <yao.qi@linaro.org>
9651 * utils.h (gdb_argv): Add namespace std for nullptr_t.
9653 2017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com>
9655 * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev.
9657 2017-08-03 Tom Tromey <tom@tromey.com>
9659 * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv):
9661 * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove.
9663 2017-08-03 Tom Tromey <tom@tromey.com>
9665 * python/py-param.c (compute_enum_values): Use gdb_argv.
9667 2017-08-03 Tom Tromey <tom@tromey.com>
9669 * utils.h (struct gdb_argv_deleter): New.
9670 (gdb_argv): New class.
9671 * utils.c (gdb_argv::reset): New method.
9672 * tracepoint.c (delete_trace_variable_command): Use gdb_argv.
9673 * tracefile.c (tsave_command): Use gdb_argv.
9674 * top.c (new_ui_command): Use gdb_argv.
9675 * symmisc.c (maintenance_print_symbols)
9676 (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv.
9677 * symfile.c (symbol_file_command, generic_load)
9678 (remove_symbol_file_command): Use gdb_argv.
9679 * stack.c (backtrace_command): Use gdb_argv.
9680 * source.c (add_path, show_substitute_path_command)
9681 (unset_substitute_path_command, set_substitute_path_command):
9683 * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv.
9684 * ser-mingw.c (pipe_windows_open): Use gdb_argv.
9685 * remote.c (extended_remote_run, remote_put_command)
9686 (remote_get_command, remote_delete_command): Use gdb_argv.
9687 * remote-sim.c (gdbsim_load, gdbsim_create_inferior)
9688 (gdbsim_open): Use gdb_argv.
9689 * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv.
9690 * psymtab.c (maintenance_print_psymbols): Use gdb_argv.
9691 * procfs.c (procfs_info_proc): Use gdb_argv.
9692 * interps.c (interpreter_exec_cmd): Use gdb_argv.
9693 * infrun.c (handle_command): Use gdb_argv.
9694 * inferior.c (add_inferior_command, clone_inferior_command):
9696 * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv.
9697 * exec.c (exec_file_command): Use gdb_argv.
9698 * cli/cli-cmds.c (alias_command): Use gdb_argv.
9699 * compile/compile.c (build_argc_argv): Use gdb_argv.
9701 2017-08-03 Tom Tromey <tom@tromey.com>
9703 * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr.
9705 2017-08-03 Tom Tromey <tom@tromey.com>
9707 * python/python.c (compute_python_string): Return std::string.
9708 (gdbpy_eval_from_control_command): Update.
9709 (do_start_initialization): Use std::string.
9710 * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not
9712 * python/py-breakpoint.c (local_setattro): Use string_printf, not
9715 2017-08-03 Tom Tromey <tom@tromey.com>
9717 * top.h (do_restore_instream_cleanup): Remove.
9718 * top.c (do_restore_instream_cleanup): Remove.
9719 (read_command_file): Use scoped_restore.
9720 * cli/cli-script.c (execute_user_command): Use scoped_restore.
9722 2017-08-03 Tom Tromey <tom@tromey.com>
9724 * cli/cli-script.c (execute_user_command)
9725 (execute_control_command): Use scoped_restore.
9727 2017-08-03 Tom Tromey <tom@tromey.com>
9729 * cli/cli-script.c (do_restore_user_call_depth): Remove.
9730 (execute_user_command): Remove user_call_depth; use
9731 user_args_stack's size instead.
9733 2017-08-03 Tom Tromey <tom@tromey.com>
9735 * top.h (in_user_command): Remove.
9736 * top.c (in_user_command): Remove.
9737 * cli/cli-script.c (do_restore_user_call_depth)
9738 (execute_user_command): Update.
9740 2017-08-03 Tom Tromey <tom@tromey.com>
9742 * valops.c (search_struct_method): Use gdb::byte_vector.
9743 * valarith.c (value_concat): Use std::vector.
9744 * target.c (memory_xfer_partial): Use gdb::byte_vector.
9745 (simple_search_memory): Likewise.
9746 * printcmd.c (find_string_backward): Use gdb::byte_vector.
9747 * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector.
9748 * gcore.c (gcore_copy_callback): Use gdb::byte_vector.
9749 * elfread.c (elf_rel_plt_read): Use std::string.
9750 * cp-valprint.c (cp_print_value): Use gdb::byte_vector.
9751 * cli/cli-dump.c (restore_section_callback): Use
9754 2017-08-03 Tom Tromey <tom@tromey.com>
9756 * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr.
9758 2017-08-03 Tom Tromey <tom@tromey.com>
9760 * tui/tui-regs.c (tui_restore_gdbout): Remove.
9761 (tui_register_format): Use scoped_restore.
9763 2017-08-03 Tom Tromey <tom@tromey.com>
9765 * reverse.c (exec_direction_default): Remove.
9766 (exec_reverse_once): Use scoped_restore.
9767 * remote.c (restore_remote_timeout): Remove.
9768 (remote_flash_erase, remote_flash_write, remote_flash_done)
9769 (readchar, remote_serial_write): Use scoped_restore.
9770 * cli/cli-script.c (struct source_cleanup_lines_args)
9771 (source_cleanup_lines): Remove.
9772 (script_from_file): Use scoped_restore.
9773 * cli/cli-cmds.c (source_verbose_cleanup): Remove.
9774 (source_command): Use scoped_restore.
9776 2017-08-03 Tom Tromey <tom@tromey.com>
9778 * utils.h (make_cleanup_free_so): Remove.
9779 * utils.c (do_free_so, make_cleanup_free_so): Remove.
9780 * solist.h (struct so_deleter): New.
9781 (so_list_up): New typedef.
9782 * solib-svr4.c (svr4_read_so_list): Use so_list_up.
9784 2017-08-03 Tom Tromey <tom@tromey.com>
9786 * utils.h (make_cleanup_restore_current_language): Remove.
9787 * utils.c (do_restore_current_language)
9788 (make_cleanup_restore_current_language): Remove.
9789 * parse.c (parse_exp_in_context_1)
9790 (parse_expression_with_language): Use
9791 scoped_restore_current_language.
9792 * mi/mi-main.c (mi_cmd_execute): Use
9793 scoped_restore_current_language.
9794 * language.h (scoped_restore_current_language): New class.
9796 2017-08-03 Tom Tromey <tom@tromey.com>
9798 * compile/compile.c (cleanup_unlink_file): Remove.
9799 (compile_to_object): Use gdb::unlinker.
9800 (eval_compile_command): Likewise.
9802 2017-08-03 Tom Tromey <tom@tromey.com>
9804 * utils.h (make_cleanup_fclose): Remove.
9805 * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove.
9807 2017-08-03 Tom Tromey <tom@tromey.com>
9809 * top.c (open_terminal_stream): Return gdb_file_up.
9810 (new_ui_command): Update.
9812 2017-08-03 Tom Tromey <tom@tromey.com>
9814 * source.c (print_source_lines_base, forward_search_command)
9815 (reverse_search_command): Use gdb_file_up.
9817 2017-08-03 Tom Tromey <tom@tromey.com>
9819 * fbsd-nat.c (fbsd_find_memory_regions): Update.
9821 2017-08-03 Tom Tromey <tom@tromey.com>
9823 * cli/cli-cmds.c (find_and_open_script): Change return type.
9824 Remove "streamp" and "full_path" parameters.
9825 (source_script_with_search): Update.
9826 * auto-load.c (source_script_file): Update.
9827 * cli/cli-cmds.h (find_and_open_script): Change type.
9828 (open_script): New struct.
9830 2017-08-03 Tom Tromey <tom@tromey.com>
9832 * xml-support.c (xml_fetch_content_from_file): Update.
9833 * ui-file.c (stdio_file::open): Update.
9834 * tracefile-tfile.c (tfile_start): Update.
9835 * remote.c (remote_file_put, remote_file_get): Update.
9836 * nat/linux-procfs.c (linux_proc_get_int)
9837 (linux_proc_pid_get_state, linux_proc_tid_get_name): Update.
9838 * nat/linux-osdata.c (linux_common_core_of_thread): Update.
9839 (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus)
9840 (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem)
9841 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update.
9842 * nat/linux-btrace.c (linux_determine_kernel_start): Update.
9843 * linux-nat.c (linux_proc_pending_signals): Update.
9844 * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up.
9845 (file_closer): Remove.
9846 * compile/compile.c (compile_to_object): Update.
9847 * common/filestuff.h (struct gdb_file_deleter): New.
9848 (gdb_file_up): New typedef.
9849 (gdb_fopen_cloexec): Change return type.
9850 * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up.
9851 * cli/cli-dump.c (fopen_with_cleanup): Remove.
9852 (dump_binary_file, restore_binary_file): Update.
9853 * auto-load.c (auto_load_objfile_script_1): Update.
9855 2017-08-03 Tom Tromey <tom@tromey.com>
9857 * tracepoint.c (tvariables_info_1): Use ui_out_emit_table.
9858 (info_static_tracepoint_markers_command): Likewise.
9859 * solib.c (info_sharedlibrary_command): Use ui_out_emit_table.
9860 * skip.c (skip_info): Use ui_out_emit_table.
9861 * progspace.c (print_program_space): Use ui_out_emit_table.
9862 * osdata.c (info_osdata): Use ui_out_emit_table.
9863 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use
9865 * linux-thread-db.c (info_auto_load_libthread_db): Use
9867 * inferior.c (print_inferior): Use ui_out_emit_table.
9868 * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table.
9869 * breakpoint.c (breakpoint_1): Use ui_out_emit_table.
9870 * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table.
9871 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table.
9872 * ui-out.h (class ui_out_emit_table): New.
9874 2017-08-02 Maciej W. Rozycki <macro@imgtec.com>
9876 * mips-tdep.c (mips_fpu_type_str): New function.
9877 (mips_dump_tdep): Call it.
9879 2017-08-01 Maciej W. Rozycki <macro@imgtec.com>
9881 * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access
9884 2017-07-31 Xavier Roirand <roirand@adacore.com>
9886 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
9888 2017-07-27 Xavier Roirand <roirand@adacore.com>
9890 * MAINTAINERS (Write After Approval): Add Xavier Roirand.
9892 2017-07-26 Yao Qi <yao.qi@linaro.org>
9894 * cli/cli-cmds.c (maintenancechecklist): New variable.
9895 * gdbcmd.h (maintenancechecklist): Declare it.
9896 * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]:
9897 Call i386_linux_read_description with different masks.
9898 * maint.c (maintenance_check_command): New function.
9899 (_initialize_maint_cmds): Call add_prefix_cmd.
9900 * target-descriptions.c (tdesc_reg): override operator != and ==.
9901 (tdesc_type): Likewise.
9902 (tdesc_feature): Likewise.
9903 (target_desc): Likewise.
9904 [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function.
9905 (maintenance_check_xml_descriptions): New function.
9906 (_initialize_target_descriptions) Add command "xml-descriptions".
9907 * target-descriptions.h (selftests::record_xml_tdesc): Declare.
9909 2017-07-26 Yao Qi <yao.qi@linaro.org>
9911 * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c.
9912 Include features/i386/32bit-*.c.
9913 (i386_linux_read_description): Generate target description if it
9915 (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386
9917 * features/i386/32bit-linux.c: Re-generated.
9918 * features/i386/32bit-sse.c: Likewise.
9919 * target-descriptions.c (print_c_feature::visit): Print code to
9920 set register number if needed.
9921 (print_c_feature) <m_next_regnum>: New field.
9923 2017-07-26 Yao Qi <yao.qi@linaro.org>
9925 * features/Makefile (CFILES): Rename with TDESC_CFILES.
9926 (FEATURE_XMLFILES): New.
9927 (FEATURE_CFILES): New.
9929 (clean-cfiles): Remove generated c files.
9930 * features/i386/32bit-avx.c: Generated.
9931 * features/i386/32bit-avx512.c: Generated.
9932 * features/i386/32bit-core.c: Generated.
9933 * features/i386/32bit-linux.c: Generated.
9934 * features/i386/32bit-mpx.c: Generated.
9935 * features/i386/32bit-pkeys.c: Generated.
9936 * features/i386/32bit-sse.c: Generated.
9937 * target-descriptions.c: Include algorithm.
9938 (tdesc_element_visitor): Add method visit_end.
9939 (print_c_tdesc): Implement visit_end.
9940 (print_c_tdesc:: m_filename_after_features): Move it to
9942 (print_c_feature): New class.
9943 (maint_print_c_tdesc_cmd): Use print_c_feature if XML file
9944 name starts with "i386/32bit-".
9946 2017-07-26 Yao Qi <yao.qi@linaro.org>
9948 * target-descriptions.c (tdesc_element_visitor): New class.
9949 (tdesc_element): New class.
9950 (tdesc_reg): Inherit from tdesc_element.
9951 (tdesc_reg::accept): New function.
9952 (tdesc_type): Inherit from tdesc_element.
9953 (tdesc_type::accept): New function.
9954 (tdesc_feature): Inherit from tdesc_element.
9955 (tdesc_feature::accept): New function.
9956 (target_desc): Inherit from tdesc_element.
9957 (target_desc::target_desc): New.
9958 (target_desc::~target_desc): New.
9959 (target_desc::accept): New.
9960 (allocate_target_description): Use new.
9961 (free_target_description): Use delete.
9962 (print_c_tdesc): New class.
9963 (maint_print_c_tdesc_cmd): Adjust.
9965 * features/aarch64.c: Re-generated.
9966 * features/arc-arcompact.c: Re-generated.
9967 * features/arc-v2.c: Re-generated.
9968 * features/arm/arm-with-iwmmxt.c: Re-generated.
9969 * features/arm/arm-with-m.c: Re-generated.
9970 * features/arm/arm-with-m-fpa-layout.c: Re-generated.
9971 * features/arm/arm-with-m-vfp-d16.c: Re-generated.
9972 * features/arm/arm-with-neon.c: Re-generated.
9973 * features/arm/arm-with-vfpv2.c: Re-generated.
9974 * features/arm/arm-with-vfpv3.c: Re-generated.
9975 * features/i386/amd64-avx-avx512.c: Re-generated.
9976 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
9977 * features/i386/amd64-avx.c: Re-generated.
9978 * features/i386/amd64-avx-linux.c: Re-generated.
9979 * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated.
9980 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
9981 * features/i386/amd64-avx-mpx.c: Re-generated.
9982 * features/i386/amd64-avx-mpx-linux.c: Re-generated.
9983 * features/i386/amd64.c: Re-generated.
9984 * features/i386/amd64-linux.c: Re-generated.
9985 * features/i386/amd64-mpx.c: Re-generated.
9986 * features/i386/amd64-mpx-linux.c: Re-generated.
9987 * features/i386/i386-avx-avx512.c: Re-generated.
9988 * features/i386/i386-avx-avx512-linux.c: Re-generated.
9989 * features/i386/i386-avx.c: Re-generated.
9990 * features/i386/i386-avx-linux.c: Re-generated.
9991 * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated.
9992 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated.
9993 * features/i386/i386-avx-mpx.c: Re-generated.
9994 * features/i386/i386-avx-mpx-linux.c: Re-generated.
9995 * features/i386/i386.c: Re-generated.
9996 * features/i386/i386-linux.c: Re-generated.
9997 * features/i386/i386-mmx.c: Re-generated.
9998 * features/i386/i386-mmx-linux.c: Re-generated.
9999 * features/i386/i386-mpx.c: Re-generated.
10000 * features/i386/i386-mpx-linux.c: Re-generated.
10001 * features/i386/x32-avx-avx512.c: Re-generated.
10002 * features/i386/x32-avx-avx512-linux.c: Re-generated.
10003 * features/i386/x32-avx.c: Re-generated.
10004 * features/i386/x32-avx-linux.c: Re-generated.
10005 * features/i386/x32.c: Re-generated.
10006 * features/i386/x32-linux.c: Re-generated.
10007 * features/microblaze.c: Re-generated.
10008 * features/microblaze-with-stack-protect.c: Re-generated.
10009 * features/mips64-dsp-linux.c: Re-generated.
10010 * features/mips64-linux.c: Re-generated.
10011 * features/mips-dsp-linux.c: Re-generated.
10012 * features/mips-linux.c: Re-generated.
10013 * features/nds32.c: Re-generated.
10014 * features/nios2.c: Re-generated.
10015 * features/nios2-linux.c: Re-generated.
10016 * features/rs6000/powerpc-32.c: Re-generated.
10017 * features/rs6000/powerpc-32l.c: Re-generated.
10018 * features/rs6000/powerpc-403.c: Re-generated.
10019 * features/rs6000/powerpc-403gc.c : Re-generated.
10020 * features/rs6000/powerpc-405.c: Re-generated.
10021 * features/rs6000/powerpc-505.c: Re-generated.
10022 * features/rs6000/powerpc-601.c: Re-generated.
10023 * features/rs6000/powerpc-602.c: Re-generated.
10024 * features/rs6000/powerpc-603.c: Re-generated.
10025 * features/rs6000/powerpc-604.c: Re-generated.
10026 * features/rs6000/powerpc-64.c: Re-generated.
10027 * features/rs6000/powerpc-64l.c: Re-generated.
10028 * features/rs6000/powerpc-7400.c: Re-generated.
10029 * features/rs6000/powerpc-750.c: Re-generated.
10030 * features/rs6000/powerpc-860.c: Re-generated.
10031 * features/rs6000/powerpc-altivec32.c: Re-generated.
10032 * features/rs6000/powerpc-altivec32l.c: Re-generated.
10033 * features/rs6000/powerpc-altivec64.c: Re-generated.
10034 * features/rs6000/powerpc-altivec64l.c: Re-generated.
10035 * features/rs6000/powerpc-cell32l.c: Re-generated.
10036 * features/rs6000/powerpc-cell64l.c: Re-generated.
10037 * features/rs6000/powerpc-e500.c: Re-generated.
10038 * features/rs6000/powerpc-e500l.c: Re-generated.
10039 * features/rs6000/powerpc-isa205-32l.c: Re-generated.
10040 * features/rs6000/powerpc-isa205-64l.c: Re-generated.
10041 * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated.
10042 * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated.
10043 * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated.
10044 * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated.
10045 * features/rs6000/powerpc-vsx32.c: Re-generated.
10046 * features/rs6000/powerpc-vsx32l.c: Re-generated.
10047 * features/rs6000/powerpc-vsx64.c: Re-generated.
10048 * features/rs6000/powerpc-vsx64l.c: Re-generated.
10049 * features/rs6000/rs6000.c: Re-generated.
10050 * features/s390-linux32.c: Re-generated.
10051 * features/s390-linux32v1.c: Re-generated.
10052 * features/s390-linux32v2.c: Re-generated.
10053 * features/s390-linux64.c: Re-generated.
10054 * features/s390-linux64v1.c: Re-generated.
10055 * features/s390-linux64v2.c: Re-generated.
10056 * features/s390-te-linux64.c: Re-generated.
10057 * features/s390-tevx-linux64.c: Re-generated.
10058 * features/s390-vx-linux64.c: Re-generated.
10059 * features/s390x-linux64.c: Re-generated.
10060 * features/s390x-linux64v1.c: Re-generated.
10061 * features/s390x-linux64v2.c: Re-generated.
10062 * features/s390x-te-linux64.c: Re-generated.
10063 * features/s390x-tevx-linux64.c: Re-generated.
10064 * features/s390x-vx-linux64.c: Re-generated.
10065 * features/sparc/sparc32-solaris.c: Re-generated.
10066 * features/sparc/sparc64-solaris.c: Re-generated.
10067 * features/tic6x-c62x.c: Re-generated.
10068 * features/tic6x-c62x-linux.c: Re-generated.
10069 * features/tic6x-c64x.c: Re-generated.
10070 * features/tic6x-c64x-linux.c: Re-generated.
10071 * features/tic6x-c64xp.c: Re-generated.
10072 * features/tic6x-c64xp-linux.c: Re-generated.
10074 2017-07-26 Yao Qi <yao.qi@linaro.org>
10076 * i386-linux-tdep.c (i386_linux_read_description): New function.
10077 (i386_linux_core_read_description): Call
10078 i386_linux_read_description.
10079 * i386-linux-tdep.h (i386_linux_read_description): Declare.
10080 (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations.
10081 (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise
10082 (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise.
10083 (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise.
10084 * x86-linux-nat.c (x86_linux_read_description): Call
10085 i386_linux_read_description.
10087 2017-07-26 Yao Qi <yao.qi@linaro.org>
10089 * NEWS: Mention it.
10090 * features/Makefile (%.c: %.xml): Pass the xml file name to
10091 command "maint print c-tdesc".
10092 * target-descriptions.c (maint_print_c_tdesc_cmd): Get file
10095 2017-07-26 Yao Qi <yao.qi@linaro.org>
10097 * target-descriptions.c (target_desc): Add ctor and dtor. Do
10098 in-class initialization.
10099 (tdesc_create_feature): Call new instead of XCNEW.
10100 (free_target_description): Ue delete.
10102 2017-07-25 John Baldwin <jhb@FreeBSD.org>
10104 * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo.
10106 2017-07-25 Yao Qi <yao.qi@linaro.org>
10108 * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc
10110 (amd64_x32_init_abi): Likewise.
10111 * amd64-tdep.h (amd64_init_abi): Update declaration.
10112 (amd64_x32_init_abi): Likewise.
10114 2017-07-25 Yao Qi <yao.qi@linaro.org>
10117 * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update
10118 condition for FPSCR.
10119 (arm_linux_store_inferior_registers): Likewise.
10121 2017-07-22 Tom Tromey <tom@tromey.com>
10123 * break-catch-syscall.c (struct catch_syscall_inferior_data)
10124 <syscalls_counts>: Now a std::vector.
10125 (get_catch_syscall_inferior_data): Use "new".
10126 (catch_syscall_inferior_data_cleanup): Use "delete".
10127 (insert_catch_syscall, remove_catch_syscall)
10128 (clear_syscall_counts): Update.
10130 2017-07-22 Tom Tromey <tom@tromey.com>
10132 * break-catch-syscall.c (syscall_catchpoint)
10133 <syscalls_to_be_caught>: Now a std::vector<int>
10134 (~syscall_catchpoint): Remove.
10135 (insert_catch_syscall, remove_catch_syscall)
10136 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
10137 (print_mention_catch_syscall, print_recreate_catch_syscall):
10139 (create_syscall_event_catchpoint): Change type of "filter"
10141 (catch_syscall_split_args): Return a std::vector.
10142 (catch_syscall_command_1, catching_syscall_number_1): Update.
10144 2017-07-22 Tom Tromey <tom@tromey.com>
10146 * break-catch-throw.c (struct exception_catchpoint)
10147 <exception_rx>: Now a std::string.
10148 (~exception_catchpoint): Remove.
10149 (print_one_detail_exception_catchpoint): Update.
10150 (handle_gnu_v3_exceptions): Change type of except_rx.
10151 (extract_exception_regexp): Return a std::string.
10152 (catch_exception_command_1): Update.
10154 2017-07-22 Tom Tromey <tom@tromey.com>
10156 * break-catch-sig.c (gdb_signal_type): Remove typedef.
10157 (struct signal_catchpoint) <signals_to_be_caught>: Now a
10159 <catch_all>: Now a bool.
10160 (~signal_catchpoint): Remove.
10161 (signal_catchpoint_insert_location)
10162 (signal_catchpoint_remove_location)
10163 (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one)
10164 (signal_catchpoint_print_mention)
10165 (signal_catchpoint_print_recreate)
10166 (signal_catchpoint_explains_signal): Update.
10167 (create_signal_catchpoint): Change type of "filter" and
10169 (catch_signal_split_args): Return a std::vector. Change type of
10171 (catch_signal_command): Update.
10173 2017-07-20 Pedro Alves <palves@redhat.com>
10175 * ada-lang.c (ada_language_defn): Make extern.
10176 (_initialize_ada_language): Remove add_language call.
10177 * c-lang.c (c_language_defn, cplus_language_defn)
10178 (asm_language_defn, minimal_language_defn): Make extern.
10179 (_initialize_c_language): Delete.
10180 * completer.c (compare_cstrings): Delete, moved to utils.h.
10181 * d-lang.c (d_language_defn): Make extern.
10182 (_initialize_d_language): Remove add_language calls.
10183 * defs.h (enum language): Add comment.
10184 * f-lang.c (f_language_defn): Make extern.
10185 (_initialize_f_language): Remove add_language call.
10186 * go-lang.c (go_language_defn): Make extern.
10187 (_initialize_go_language): Remove add_language call.
10188 * language.c: Include <algorithm>.
10189 (languages): Redefine as const array.
10190 (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete.
10191 (set_language_command): Handle "local". Use for-range loop.
10192 (set_language): Remove loop.
10193 (language_enum): Rewrite.
10194 (language_def, language_str): Remove loops.
10195 (add_language): Delete.
10196 (add_set_language_command): New, based on add_languages.
10197 (skip_language_trampoline): Adjust.
10198 (local_language_defn): Delete.
10199 (language_gdbarch_post_init): Adjust.
10200 (_initialize_language): Remove add_language calls. Call
10201 add_set_language_command.
10202 * language.h (add_language): Delete.
10203 (auto_language_defn)
10204 (unknown_language_defn, minimal_language_defn, ada_language_defn)
10205 (asm_language_defn, c_language_defn, cplus_language_defn)
10206 (d_language_defn, f_language_defn, go_language_defn)
10207 (m2_language_defn, objc_language_defn, opencl_language_defn)
10208 (pascal_language_defn, rust_language_defn): Declare.
10209 * m2-lang.c (m2_language_defn): Make extern.
10210 (_initialize_m2_language): Remove add_language call.
10211 * objc-lang.c (objc_language_defn): Make extern.
10212 (_initialize_objc_language): Remove add_language call.
10213 * opencl-lang.c (opencl_language_defn): Make extern.
10214 (_initialize_opencl_language): Remove add_language call.
10215 * p-lang.c (pascal_language_defn): Make extern.
10216 (_initialize_pascal_language): Delete.
10217 * rust-lang.c (rust_language_defn): Make extern.
10218 (_initialize_rust_language): Delete.
10219 * utils.h (compare_cstrings): New static inline function.
10221 2017-07-20 Pedro Alves <palves@redhat.com>
10223 * ada-lang.c (ada_to_fixed_type_1): Adjust.
10224 (get_var_value): Constify parameters.
10225 (get_int_var_value): Change prototype.
10226 (to_fixed_range_type): Adjust.
10227 * ada-lang.h (get_int_var_value): Change prototype.
10229 2017-07-20 Pedro Alves <palves@redhat.com>
10231 * dwarf2read.c (dw2_lookup_symbol): Use
10232 SYMBOL_MATCHES_SEARCH_NAME.
10233 * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME.
10235 2017-07-20 Pedro Alves <palves@redhat.com>
10237 * block.c (block_iter_name_step, block_iter_name_first)
10238 (block_iter_name_next): Delete.
10239 (block_lookup_symbol_primary): Adjust to use
10240 dict_iter_match_first/dict_iter_match_next.
10241 * block.h (block_iter_name_first, block_iter_name_next): Delete
10243 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use
10244 dict_iter_match_first/dict_iter_match_next.
10246 2017-07-20 Pedro Alves <palves@redhat.com>
10248 * cp-support.c (cp_find_first_component_aux): Add missing case for
10251 2017-07-18 David Blaikie <dblaikie@gmail.com>
10253 * dwarf2read.c (create_cus_hash_table): Re-add lost initialization
10254 of dwo_cu's dwo_file.
10256 2017-07-18 Yao Qi <yao.qi@linaro.org>
10258 * remote.c (store_registers_using_G): Remove one line comment.
10260 2017-07-18 Yao Qi <yao.qi@linaro.org>
10262 * regcache.c (regcache_cpy): Simplify it.
10263 (regcache::cpy_no_passthrough): Remove it.
10264 * regcache.h (cpy_no_passthrough): Remove it.
10265 (regcache_dup, regcache_cpy): Update comments.
10267 2017-07-18 Pedro Alves <palves@redhat.com>
10269 * remote-sim.c (sim_command_completer): Adjust to work with a
10270 completion_tracker instead of a VEC.
10272 2017-07-17 Pedro Alves <palves@redhat.com>
10274 * completer.c (complete_source_filenames): New function.
10275 (complete_address_and_linespec_locations): New function.
10276 (location_completer): Use complete_address_and_linespec_locations.
10277 (completion_tracker::build_completion_result): Honor the tracker's
10278 request to suppress append.
10279 * completer.h (completion_tracker::suppress_append_ws)
10280 (completion_tracker::set_suppress_append_ws): New methods.
10281 (completion_tracker::m_suppress_append_ws): New field.
10282 (complete_source_filenames): New declaration.
10283 * linespec.c (linespec_complete_what): New.
10284 (struct ls_parser) <complete_what, completion_word,
10285 completion_quote_char, completion_quote_end, completion_tracker>:
10287 (string_find_incomplete_keyword_at_end): New.
10288 (linespec_lexer_lex_string): Record quote char. If in completion
10290 (linespec_lexer_consume_token): Advance the completion word point.
10291 (linespec_lexer_peek_token): Save/restore completion info.
10292 (save_stream_and_consume_token): New.
10293 (set_completion_after_number): New.
10294 (linespec_parse_basic): Set what to complete next depending on
10295 token. Handle function and label completions specially.
10296 (parse_linespec): Disable objc shortcut in completion mode. Set
10297 what to complete next depending on token type. Skip keyword if in
10299 (complete_linespec_component, linespec_complete): New.
10300 * linespec.h (linespec_complete): Declare.
10302 2017-07-17 Pedro Alves <palves@redhat.com>
10304 * linespec.c (linespec_lexer_lex_string, find_toplevel_char):
10305 Handle 'operator<' / 'operator<<'.
10307 2017-07-17 Pedro Alves <palves@redhat.com>
10309 * completer.c (collect_explicit_location_matches): Handle
10311 (convert_explicit_location_to_linespec): New, factored out from
10313 (convert_explicit_location_to_sals): ... this.
10314 (complete_label): New.
10315 (linespec_complete_label, find_label_symbols_in_block): New.
10316 (find_label_symbols): Add completion_mode parameter and adjust to
10317 call find_label_symbols_in_block.
10318 * linespec.h (linespec_complete_label): Declare.
10320 2017-07-17 Pedro Alves <palves@redhat.com>
10322 * ada-lang.c (ada_collect_symbol_completion_matches): Add
10323 complete_symbol_mode parameter.
10324 * cli/cli-cmds.c (complete_command): Get the completion result out
10325 of the handle_brkchars tracker if used a custom word point.
10326 * completer.c: Include "linespec.h".
10327 (enum explicit_location_match_type) <MATCH_LINE>: New enumerator.
10328 (advance_to_expression_complete_word_point): New.
10329 (completion_tracker::completes_to_completion_word): New.
10330 (complete_files_symbols): Pass down
10331 complete_symbol_mode::EXPRESSION.
10332 (explicit_options, probe_options): New.
10333 (collect_explicit_location_matches): Complete on the
10334 explictit_loc->foo instead of word. Use
10335 linespec_complete_function. Handle MATCH_LINE. Handle offering
10336 keyword and options completions.
10337 (backup_text_ptr): Delete.
10338 (skip_keyword): New.
10339 (complete_explicit_location): Remove 'word' parameter. Add
10340 language, quoted_arg_start and quoted_arg_end parameters.
10341 Rewrite, parsing left to right.
10342 (location_completer): Rewrite.
10343 (location_completer_handle_brkchars): New function.
10344 (symbol_completer): Pass down complete_symbol_mode::EXPRESSION.
10345 (enum complete_line_internal_reason): Adjust comments.
10346 (completion_tracker::discard_completions): New.
10347 (completer_handle_brkchars_func_for_completer): Handle
10348 location_completer.
10349 (gdb_custom_word_point_brkchars)
10350 (gdb_org_rl_basic_quote_characters): New.
10351 (gdb_completion_word_break_characters_throw)
10352 (completion_find_completion_word): Handle trackers that use a
10354 (completion_tracker::advance_custom_word_point_by): New.
10355 (completion_tracker::build_completion_result): Don't rely on
10356 readline appending the quote char.
10357 (gdb_rl_attempted_completion_function_throw): Handle trackers that
10358 use a custom word point.
10359 (gdb_rl_attempted_completion_function): Restore
10360 rl_basic_quote_characters.
10361 * completer.h (class completion_tracker): Extend intro comment.
10362 (completion_tracker::set_quote_char)
10363 (completion_tracker::quote_char)
10364 (completion_tracker::set_use_custom_word_point)
10365 (completion_tracker::use_custom_word_point)
10366 (completion_tracker::custom_word_point)
10367 (completion_tracker::set_custom_word_point)
10368 (completion_tracker::advance_custom_word_point_by)
10369 (completion_tracker::completes_to_completion_word)
10370 (completion_tracker::discard_completions): New methods.
10371 (completion_tracker::m_quote_char)
10372 (completion_tracker::m_use_custom_word_point)
10373 (completion_tracker::m_custom_word_point): New fields.
10374 (advance_to_expression_complete_word_point): Declare.
10375 * f-lang.c (f_collect_symbol_completion_matches): Add
10376 complete_symbol_mode parameter.
10377 * language.h (struct language_defn)
10378 <la_collect_symbol_completion_matches>: Add complete_symbol_mode
10380 * linespec.c (linespec_keywords): Add NULL terminator. Make extern.
10381 (linespec_complete_function): New function.
10382 (linespec_lexer_lex_keyword): Adjust.
10383 * linespec.h (linespec_keywords, linespec_complete_function): New
10385 * location.c (find_end_quote): New function.
10386 (explicit_location_lex_one): Add explicit_completion_info
10387 parameter. Save quoting info. Don't throw if being called for
10388 completion. Don't handle Ada operators here.
10389 (is_cp_operator, skip_op_false_positives, first_of)
10390 (explicit_location_lex_one_function): New function.
10391 (string_to_explicit_location): Replace 'dont_throw' parameter with
10392 an explicit_completion_info pointer parameter. Handle it. Don't
10393 use explicit_location_lex_one to lex function names. Use
10394 explicit_location_lex_one_function instead.
10395 * location.h (struct explicit_completion_info): New.
10396 (string_to_explicit_location): Replace 'dont_throw' parameter with
10397 an explicit_completion_info pointer parameter.
10398 * symtab.c (default_collect_symbol_completion_matches_break_on):
10399 Add complete_symbol_mode parameter. Handle LINESPEC mode.
10400 (default_collect_symbol_completion_matches)
10401 (collect_symbol_completion_matches): Add complete_symbol_mode
10403 (collect_symbol_completion_matches_type): Pass down
10404 complete_symbol_mode::EXPRESSION.
10405 (collect_file_symbol_completion_matches): Add complete_symbol_mode
10406 parameter. Handle LINESPEC mode.
10407 * symtab.h (complete_symbol_mode): New.
10408 (default_collect_symbol_completion_matches_break_on)
10409 (default_collect_symbol_completion_matches)
10410 (collect_symbol_completion_matches)
10411 (collect_file_symbol_completion_matches): Add complete_symbol_mode
10414 2017-07-17 Pedro Alves <palves@redhat.com>
10416 * utils.c (enum class strncmp_iw_mode): New.
10417 (strcmp_iw): Rename to ...
10418 (strncmp_iw_with_mode): ... this. Add string2_len and mode
10419 parameters. Handle them.
10421 (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode.
10422 * utils.h (strncmp_iw): Declare.
10423 (strcmp_iw): Move describing comments here.
10425 2017-07-17 Pedro Alves <palves@redhat.com>
10427 * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and
10429 * c-typeprint.c (is_type_conversion_operator): Use
10431 * cp-support.c (LENGTH_OF_OPERATOR): Delete.
10432 (cp_find_first_component_aux): Use CP_OPERATOR_STR and
10434 * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New.
10435 * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR.
10436 * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR.
10437 * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and
10439 * location.c: Include "cp-support.h".
10440 (explicit_location_lex_one): Use CP_OPERATOR_LEN and
10442 * symtab.c (operator_chars): Use CP_OPERATOR_STR and
10445 2017-07-17 Pedro Alves <palves@redhat.com>
10447 * cli/cli-cmds.c (complete_command): Use a completion tracker
10448 along with completion_find_completion_word for handle_brkchars
10450 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
10451 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New.
10452 (struct gdb_rl_completion_word_info): New.
10453 (gdb_rl_find_completion_word): New.
10454 (completion_find_completion_word): New.
10455 * completer.h (completion_find_completion_word): Declare.
10457 2017-07-17 Pedro Alves <palves@redhat.com>
10459 * ada-lang.c (symbol_completion_match): Adjust comments.
10460 (symbol_completion_add): Replace vector parameter with
10461 completion_tracker parameter. Use it.
10462 (ada_make_symbol_completion_list): Rename to...
10463 (ada_collect_symbol_completion_matches): ... this. Add
10464 completion_tracker parameter and use it.
10465 (ada_language_defn): Adjust.
10466 * break-catch-syscall.c (catch_syscall_completer): Adjust
10467 prototype and work with completion_tracker instead of VEC.
10468 * breakpoint.c (condition_completer): Adjust prototype and work
10469 with completion_tracker instead of VEC.
10470 * c-lang.c (c_language_defn, cplus_language_defn)
10471 (asm_language_defn, minimal_language_defn): Adjust to renames.
10472 * cli/cli-cmds.c (complete_command): Rework using
10473 completion_tracker. Catch exceptions when completing.
10474 * cli/cli-decode.c (integer_unlimited_completer)
10475 (complete_on_cmdlist, complete_on_enum): Adjust prototype and work
10476 with completion_tracker instead of VEC.
10477 * command.h (struct completion_tracker): Forward declare.
10478 (completer_ftype, completer_handle_brkchars_ftype): Change
10480 (complete_on_cmdlist, complete_on_enum): Adjust.
10481 * completer.c: Include <algorithm>.
10482 (struct gdb_completer_state): New.
10483 (current_completion): New global.
10484 (readline_line_completion_function): Delete.
10485 (noop_completer, filename_completer)
10486 (filename_completer_handle_brkchars, complete_files_symbols)
10487 (linespec_location_completer): Adjust to work with a
10488 completion_tracker instead of a VEC.
10489 (string_or_empty): New.
10490 (collect_explicit_location_matches): Adjust to work with a
10491 completion_tracker instead of a VEC.
10492 (explicit_location_completer): Rename to ...
10493 (complete_explicit_location): ... this and adjust to work with a
10494 completion_tracker instead of a VEC.
10495 (location_completer): Adjust to work with a completion_tracker
10497 (add_struct_fields): Adjust to work with a completion_list instead
10499 (expression_completer): Rename to ...
10500 (complete_expression): ... this and adjust to work with a
10501 completion_tracker instead of a VEC. Use complete_files_symbols.
10502 (expression_completer): Reimplement on top of complete_expression.
10503 (symbol_completer): Adjust to work with a completion_tracker
10505 (enum complete_line_internal_reason): Add describing comments.
10506 (complete_line_internal_normal_command): Adjust to work with a
10507 completion_tracker instead of a VEC.
10508 (complete_line_internal): Rename to ...
10509 (complete_line_internal_1): ... this and adjust to work with a
10510 completion_tracker instead of a VEC. Assert TEXT is NULL in the
10511 handle_brkchars phase.
10512 (new_completion_tracker): Delete.
10513 (complete_line_internal): Reimplement as TRY/CATCH wrapper around
10514 complete_line_internal_1.
10515 (free_completion_tracker): Delete.
10516 (INITIAL_COMPLETION_HTAB_SIZE): New.
10517 (completion_tracker::completion_tracker)
10518 (completion_tracker::~completion_tracker): New.
10519 (maybe_add_completion): Delete.
10520 (completion_tracker::maybe_add_completion)
10521 (completion_tracker::add_completion)
10522 (completion_tracker::add_completions): New.
10523 (throw_max_completions_reached_error): Delete.
10524 (complete_line): Adjust to work with a completion_tracker instead
10525 of a VEC. Don't create a completion_tracker_t or check for max
10527 (command_completer, command_completer_handle_brkchars)
10528 (signal_completer, reg_or_group_completer_1)
10529 (reg_or_group_completer, default_completer_handle_brkchars):
10530 Adjust to work with a completion_tracker.
10531 (gdb_completion_word_break_characters_throw): New.
10532 (gdb_completion_word_break_characters): Reimplement.
10533 (line_completion_function): Delete.
10534 (completion_tracker::recompute_lowest_common_denominator)
10535 (expand_preserving_ws)
10536 (completion_tracker::build_completion_result)
10537 (completion_result::completion_result)
10538 (completion_result::completion_result)
10539 (completion_result::~completion_result)
10540 (completion_result::completion_result)
10541 (completion_result::release_match_list, compare_cstrings)
10542 (completion_result::sort_match_list)
10543 (completion_result::reset_match_list)
10544 (gdb_rl_attempted_completion_function_throw)
10545 (gdb_rl_attempted_completion_function): New.
10546 * completer.h (completion_list, struct completion_result)
10547 (class completion_tracker): New.
10548 (complete_line): Add completion_tracker parameter.
10549 (readline_line_completion_function): Delete.
10550 (gdb_rl_attempted_completion_function): New.
10551 (noop_completer, filename_completer, expression_completer)
10552 (location_completer, symbol_completer, command_completer)
10553 (signal_completer, reg_or_group_completer): Update prototypes.
10554 (completion_tracker_t, new_completion_tracker)
10555 (make_cleanup_free_completion_tracker): Delete.
10556 (enum maybe_add_completion_enum): Delete.
10557 (maybe_add_completion): Delete.
10558 (throw_max_completions_reached_error): Delete.
10559 * corefile.c (complete_set_gnutarget): Adjust to work with a
10560 completion_tracker instead of a VEC.
10561 * cp-abi.c (cp_abi_completer): Adjust to work with a
10562 completion_tracker instead of a VEC.
10563 * d-lang.c (d_language_defn): Adjust.
10564 * disasm.c (disassembler_options_completer): Adjust to work with a
10565 completion_tracker instead of a VEC.
10566 * f-lang.c (f_make_symbol_completion_list): Rename to ...
10567 (f_collect_symbol_completion_matches): ... this. Adjust to work
10568 with a completion_tracker instead of a VEC.
10569 (f_language_defn): Adjust.
10570 * go-lang.c (go_language_defn): Adjust.
10571 * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer):
10572 Adjust to work with a completion_tracker instead of a VEC.
10573 * infrun.c (handle_completer): Likewise.
10574 * interps.c (interpreter_completer): Likewise.
10575 * interps.h (interpreter_completer): Likewise.
10576 * language.c (unknown_language_defn, auto_language_defn)
10577 (local_language_defn): Adjust.
10578 * language.h (language_defn::la_make_symbol_completion_list):
10580 (language_defn::la_collect_symbol_completion_matches): ... this
10581 and adjust to work with a completion_tracker instead of a VEC.
10582 * m2-lang.c (m2_language_defn): Adjust.
10583 * objc-lang.c (objc_language_defn): Adjust.
10584 * opencl-lang.c (opencl_language_defn): Adjust.
10585 * p-lang.c (pascal_language_defn): Adjust.
10586 * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word.
10587 (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work
10588 with a completion_tracker.
10589 * rust-lang.c (rust_language_defn): Adjust.
10590 * symtab.c (free_completion_list, do_free_completion_list)
10591 (return_val, completion_tracker): Delete.
10592 (completion_list_add_name, completion_list_add_symbol)
10593 (completion_list_add_msymbol, completion_list_objc_symbol)
10594 (completion_list_add_fields, add_symtab_completions): Add
10595 completion_tracker parameter and use it.
10596 (default_make_symbol_completion_list_break_on_1): Rename to...
10597 (default_collect_symbol_completion_matches_break_on): ... this.
10598 Add completion_tracker parameter and use it instead of allocating
10599 a completion tracker here.
10600 (default_make_symbol_completion_list_break_on): Delete old
10602 (default_make_symbol_completion_list): Delete.
10603 (default_collect_symbol_completion_matches): New.
10604 (make_symbol_completion_list): Delete.
10605 (collect_symbol_completion_matches): New.
10606 (make_symbol_completion_type): Rename to ...
10607 (collect_symbol_completion_matches_type): ... this. Add
10608 completion_tracker parameter and use it instead of VEC.
10609 (make_file_symbol_completion_list_1): Rename to...
10610 (collect_file_symbol_completion_matches): ... this. Add
10611 completion_tracker parameter and use it instead of VEC.
10612 (make_file_symbol_completion_list): Delete.
10613 (add_filename_to_list): Use completion_list instead of a VEC.
10614 (add_partial_filename_data::list): Now a completion_list.
10615 (make_source_files_completion_list): Work with a completion_list
10617 * symtab.h: Include "completer.h".
10618 (default_make_symbol_completion_list_break_on)
10619 (default_make_symbol_completion_list, make_symbol_completion_list)
10620 (make_symbol_completion_type, make_file_symbol_completion_list)
10621 (make_source_files_completion_list): Delete.
10622 (default_collect_symbol_completion_matches_break_on)
10623 (default_collect_symbol_completion_matches)
10624 (collect_symbol_completion_matches)
10625 (collect_symbol_completion_matches_type)
10626 (collect_file_symbol_completion_matches)
10627 (make_source_files_completion_list): New.
10628 * top.c (init_main): Don't install a rl_completion_entry_function
10629 hook. Install a rl_attempted_completion_function hook instead.
10630 * tui/tui-layout.c (layout_completer): Adjust to work with a
10631 completion_tracker.
10632 * tui/tui-regs.c (tui_reggroup_completer):
10633 * tui/tui-win.c (window_name_completer, focus_completer)
10634 (winheight_completer): Adjust to work with a completion_tracker.
10635 * value.c: Include "completer.h".
10636 (complete_internalvar): Adjust to work with a completion_tracker.
10637 * value.h (complete_internalvar): Likewise.
10639 2017-07-17 Pedro Alves <palves@redhat.com>
10641 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to
10643 * cli/cli-decode.h (struct cmd_list_element) <completer>: Move
10644 comments to completer_ftype's declaration.
10645 <completer_handle_brkchars>: Change type to
10646 completer_handle_brkchars_ftype.
10647 * command.h (completer_ftype): Add describing comment and give
10648 names to parameters.
10649 (completer_ftype_void): Rename to ...
10650 (completer_handle_brkchars_ftype) ... this. Add describing comment.
10651 (set_cmd_completer_handle_brkchars): Adjust.
10652 * completer.c (filename_completer_handle_brkchars): New function.
10653 (complete_line_internal_normal_command): New function, factored
10655 (complete_line_internal): ... here.
10656 (command_completer_handle_brkchars)
10657 (default_completer_handle_brkchars)
10658 (completer_handle_brkchars_func_for_completer): New functions.
10659 * completer.h (set_gdb_completion_word_break_characters): Delete
10661 (completer_handle_brkchars_func_for_completer): New declaration.
10662 * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use
10663 completer_handle_brkchars_func_for_completer.
10665 2017-07-17 Pedro Alves <palves@redhat.com>
10667 * completer.c (symbol_completer): New function, based on
10668 make_symbol_completion_list_fn.
10669 * completer.h (symbol_completer): New declaration.
10670 * guile/scm-cmd.c (cmdscm_completers): Adjust.
10671 * python/py-cmd.c (completers): Adjust.
10672 * symtab.c (make_symbol_completion_list_fn): Delete.
10673 * symtab.h (make_symbol_completion_list_fn): Delete.
10674 * cli/cli-decode.c (add_cmd): Adjust.
10676 2017-07-17 Pedro Alves <palves@redhat.com>
10678 * Makefile.in (COMMON_OBS): Add filename-seen-cache.o.
10679 * dwarf2read.c: Include "filename-seen-cache.h".
10680 * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field.
10681 (dw2_map_symbol_filenames): Build and use a filenames_seen_cache.
10682 * filename-seen-cache.c: New file.
10683 * filename-seen-cache.h: New file.
10684 * symtab.c: Include "filename-seen-cache.h".
10685 (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE)
10686 (create_filename_seen_cache, clear_filename_seen_cache)
10687 (delete_filename_seen_cache, filename_seen): Delete, parts moved
10688 to filename-seen-cache.h/filename-seen-cache.c.
10689 (output_source_filename, sources_info)
10690 (maybe_add_partial_symtab_filename)
10691 (make_source_files_completion_list): Adjust to use
10692 filename_seen_cache.
10694 2017-07-17 Pedro Alves <palves@redhat.com>
10696 * dwarf2read.c (dwarf2_per_objfile): In-class initialize all
10698 (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const
10699 dwarf2_debug_sections*)): New.
10700 (dwarf2_per_objfile::dwarf2_per_objfile(const
10701 dwarf2_per_objfile&)): Declare as deleted.
10702 (dwarf2_per_objfile::operator=): Declare as deleted.
10703 (dwarf2_per_objfile::dwarf2_per_objfile)
10704 (dwarf2_per_objfile::~dwarf2_per_objfile)
10705 (dwarf2_per_objfile::free_cached_comp_units): New.
10706 (dwarf2_has_info): dwarf2_per_objfile initialization code moved to
10707 ctor. Call dwarf2_per_objfile's ctor manually.
10708 (dwarf2_locate_sections): Deleted/refactored as ...
10709 (dwarf2_per_objfile::locate_sections): ... this new method.
10710 (free_cached_comp_units): Defer to
10711 dwarf2_per_objfile::free_cached_comp_units.
10712 (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually.
10714 2017-07-14 Tom Tromey <tom@tromey.com>
10717 * rust-exp.y (convert_ast_to_expression): Add "want_type"
10719 <UNOP_SIZEOF>: Split into separate case.
10720 <UNOP_VAR_VALUE>: Handle want_type. Add error case.
10722 2017-07-14 Tom Tromey <tom@tromey.com>
10725 * symtab.c (symbol_matches_domain): Add language_rust to special
10727 * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't
10728 treat LOC_TYPEDEF symbols as variables.
10730 2017-07-14 Pedro Alves <palves@redhat.com>
10732 * symtab.c (make_file_symbol_completion_list_1): Iterate over
10733 symtabs matching all symtabs with SRCFILE as file name instead of
10734 only considering the first hit, with lookup_symtab.
10736 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
10738 * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and
10739 operator_name parameters.
10740 (gen_expr): Update function call.
10742 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
10744 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch
10746 * symtab.h (struct symbol_computed_ops::tracepoint_var_ref):
10748 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch
10749 parameter, use agent_expr::gdbarch instead, update function
10751 (locexpr_tracepoint_var_ref): Likewise.
10752 (loclist_tracepoint_var_ref): Likewise.
10753 * ax-gdb.c (gen_trace_static_fields): Likewise.
10754 (gen_traced_pop): Likewise.
10755 (gen_frame_args_address): Likewise.
10756 (gen_frame_locals_address): Likewise.
10757 (gen_var_ref): Likewise.
10758 (gen_struct_ref_recursive): Likewise.
10759 (gen_static_field): Likewise.
10760 (gen_maybe_namespace_elt): Likewise.
10761 (gen_expr): Likewise.
10762 (gen_trace_for_var): Likewise.
10763 (gen_trace_for_expr): Likewise.
10764 (gen_trace_for_return_address): Likewise.
10766 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
10768 * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax
10770 (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call.
10772 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
10774 * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch
10775 from ax, update calls.
10776 (gen_usual_arithmetic): Likewise.
10777 (gen_integral_promotions): Likewise.
10778 (gen_bitfield_ref): Likewise.
10779 (gen_primitive_field): Likewise.
10780 (gen_struct_ref_recursive): Likewise.
10781 (gen_struct_ref): Likewise.
10782 (gen_maybe_namespace_elt): Likewise.
10783 (gen_struct_elt_for_reference): Likewise.
10784 (gen_namespace_elt): Likewise.
10785 (gen_aggregate_elt_ref): Likewise.
10786 (gen_expr): Get gdbarch from ax, update calls.
10787 (gen_expr_binop_rest): Likewise.
10789 2017-07-13 Pedro Alves <palves@redhat.com>
10791 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64
10793 * amd64-dicos-tdep.c (amd64_dicos_init_abi):
10794 * amd64-fbsd-tdep.c (amd64fbsd_init_abi):
10795 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass
10796 tdesc_amd64_linux as default tdesc. Get final tdesc from the
10798 (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc.
10799 Get final tdesc from the tdep.
10800 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as
10802 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
10803 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
10804 * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter.
10805 Use it as default tdesc.
10806 (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it
10807 down to amd_init_abi. No longer handle fallback tdesc here.
10808 * amd64-tdep.h (tdesc_x32): Declare.
10809 (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc'
10811 * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64
10814 2017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10816 * s390-linux-tdep.c (s390_process_record): Add support for
10817 instructions new in arch12.
10819 2017-07-11 John Baldwin <jhb@FreeBSD.org>
10821 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
10822 PT_GETFSBASE and PT_GETGSBASE.
10823 (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and
10826 2017-07-11 John Baldwin <jhb@FreeBSD.org>
10828 * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat)
10829 (amd64-avx-mpx.dat, amd64-avx-avx512.dat)
10830 (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in
10832 * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml.
10833 * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml.
10834 * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml.
10835 * features/i386/amd64-avx.xml: Add 64bit-segments.xml.
10836 * features/i386/amd64-mpx.xml: Add 64bit-segments.xml.
10837 * features/i386/amd64.xml: Add 64bit-segments.xml.
10838 * features/i386/amd64-avx-avx512.c: Regenerated.
10839 * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated.
10840 * features/i386/amd64-avx-mpx.c: Regenerated.
10841 * features/i386/amd64-avx.c: Regenerated.
10842 * features/i386/amd64-mpx.c: Regenerated.
10843 * features/i386/amd64.c: Regenerated.
10844 * regformats/i386/amd64-avx-avx512.dat: Regenerated.
10845 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
10846 * regformats/i386/amd64-avx-mpx.dat: Regenerated.
10847 * regformats/i386/amd64-avx.dat: Regenerated.
10848 * regformats/i386/amd64-mpx.dat: Regenerated.
10849 * regformats/i386/amd64.dat: Regenerated.
10851 2017-07-10 Yao Qi <yao.qi@linaro.org>
10853 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
10854 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
10856 2017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com>
10858 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and
10860 * gnulib/aclocal.m4: Regenerate.
10861 * gnulib/config.in: Regenerate.
10862 * gnulib/configure: Regenerate.
10863 * gnulib/import/Makefile.am: Regenerate.
10864 * gnulib/import/Makefile.in: Regenerate.
10865 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
10866 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
10867 * gnulib/import/m4/environ.m4: New file.
10868 * gnulib/import/m4/setenv.m4: New file.
10869 * gnulib/import/setenv.c: New file.
10870 * gnulib/import/unsetenv.c: New file.
10872 2017-07-09 Simon Marchi <simon.marchi@ericsson.com>
10874 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read
10875 address when op is DW_OP_addr.
10877 2017-07-09 Tom Tromey <tom@tromey.com>
10879 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size
10880 check and apply to outer type.
10882 2017-07-07 John Baldwin <jhb@FreeBSD.org>
10884 * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS)
10885 (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI)
10886 (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New.
10887 (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method.
10889 2017-07-07 John Baldwin <jhb@FreeBSD.org>
10891 * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name.
10893 2017-07-07 John Baldwin <jhb@FreeBSD.org>
10895 * corelow.c (get_core_siginfo): Remove.
10896 (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method
10897 instead of get_core_siginfo.
10898 * gdbarch.sh (core_xfer_siginfo): New gdbarch callback.
10899 * gdbarch.h: Re-generate.
10900 * gdbarch.c: Re-generate.
10901 * linux-tdep.c (linux_core_xfer_siginfo): New.
10902 (linux_init_abi): Install gdbarch "core_xfer_siginfo" method.
10904 2017-07-07 John Baldwin <jhb@FreeBSD.org>
10906 * corelow.c (thread_section_name): Move to ...
10907 * gdbcore.h (thread_section_name): ... here.
10909 2017-07-07 John Baldwin <jhb@FreeBSD.org>
10911 * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32)
10912 (struct siginfo32): New.
10913 [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New.
10914 (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO
10915 via ptrace(PT_LWPINFO).
10917 2017-07-07 John Baldwin <jhb@FreeBSD.org>
10919 * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data)
10920 (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data)
10921 (fbsd_get_siginfo_type): New.
10922 (fbsd_init_abi): Install gdbarch "get_siginfo_type" method.
10923 (_initialize_fbsd_tdep): New.
10925 2017-07-06 David Blaikie <dblaikie@gmail.com>
10927 * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than
10928 a singular dwo_unit*) to support multiple CUs in the same way that
10929 multiple TUs are supported.
10930 (create_cus_hash_table): Replace create_dwo_cu with a function for
10931 parsing multiple CUs from a DWO file.
10932 (open_and_init_dwo_file): Use create_cus_hash_table rather than
10934 (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with
10935 htab_find, rather than comparing the signature to a singleton CU in
10938 2017-07-06 Pedro Alves <palves@redhat.com>
10940 * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition.
10942 2017-07-04 Pedro Alves <palves@redhat.com>
10944 * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC.
10945 * gdbtypes.h (TYPE_STATIC): Delete.
10946 (struct fn_field) <is_public, is_abstract, is_static, is_final,
10947 is_synchronized, is_native>: Delete.
10949 (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL)
10950 (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE)
10951 (TYPE_FN_FIELD_ABSTRACT): Delete.
10953 2017-07-03 Simon Marchi <simon.marchi@ericsson.com>
10955 * buffer.h (buffer_finish): Fix spelling mistakes.
10957 2017-07-01 Eli Zaretskii <eliz@gnu.org>
10959 * .dir-locals.el: Automatically switch to C-style comments in
10960 versions of Emacs that support the feature.
10962 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
10963 Pedro Alves <palves@redhat.com>
10966 * cli/cli-script.c (command_name_equals_not_inline): Remove function.
10967 (process_next_line): New variable 'inline_cmd'.
10968 Adjust 'if' clauses for "python", "compile" and "guile" to use
10969 'command_name_equals' and check for '!inline_cmd'.
10971 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
10974 * cli/cli-script.c (command_name_equals_not_inline): New function.
10975 (process_next_line): Adjust 'if' clauses for "python", "compile"
10976 and "guile" to use command_name_equals_not_inline.
10978 2017-06-29 Pedro Alves <palves@redhat.com>
10980 * completer.c (expression_completer): Call
10981 linespec_location_completer instead of location_completer.
10983 2017-06-29 Pedro Alves <palves@redhat.com>
10985 * completer.c (expression_completer): Remove code that recomputes
10986 'text' from 'word'.
10988 2017-06-29 Yao Qi <yao.qi@linaro.org>
10990 * regformats/regdat.sh: Generate code with
10991 "ifndef IN_PROCESS_AGENT".
10993 2017-06-28 Pedro Alves <palves@redhat.com>
10995 * command.h: Include "common/scoped_restore.h".
10997 2017-06-28 Yao Qi <yao.qi@linaro.org>
10999 * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str
11000 instead of obstack_grow.
11002 2017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com>
11005 * symfile.c (reread_symbols): Call objfiles_changed just before
11008 2017-06-27 Pedro Alves <palves@redhat.com>
11010 * symtab.c (COMPLETION_LIST_ADD_SYMBOL)
11011 (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ...
11012 (completion_list_add_symbol, completion_list_add_msymbol):
11013 ... these new functions.
11014 (add_symtab_completions)
11015 (default_make_symbol_completion_list_break_on_1): Adjust.
11017 2017-06-27 Pedro Alves <palves@redhat.com>
11019 * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of
11020 bfd_zalloc. Call objfile_per_bfd_storage's ctor.
11021 (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's
11023 * objfiles.h (objfile_per_bfd_storage): Add ctor. Make
11024 'storage_obstack' field an auto_obstack. In-class initialize all
11025 non-bitfield fields. Make minsyms_read bool.
11026 * symfile.c (read_symbols): Adjust.
11028 2017-06-27 Alan Hayward <alan.hayward@arm.com>
11030 * remote-sim.c (gdbsim_fetch_register): Use byte_vector.
11031 (gdbsim_store_register): Likewise.
11033 2017-06-27 Pedro Alves <palves@redhat.com>
11035 * c-exp.y (name_obstack): Now an auto_obstack.
11036 (yylex): Use auto_obstack::clear.
11037 (c_parse): Use auto_obstack::clear instead of reinitializing and
11038 freeing the obstack.
11039 * c-lang.c (evaluate_subexp_c): Use auto_obstack.
11040 * d-exp.y (name_obstack): Now an auto_obstack.
11041 (yylex): Use auto_obstack::clear.
11042 (d_parse): Use auto_obstack::clear instead of reinitializing and
11043 freeing the obstack.
11044 * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use
11046 * dwarf2read.c (create_addrmap_from_index)
11047 (dwarf2_build_psymtabs_hard)
11048 (update_enumeration_type_from_children): Likewise.
11049 * gdb_obstack.h (auto_obstack): New type.
11050 * go-exp.y (name_obstack): Now an auto_obstack.
11051 (build_packaged_name): Use auto_obstack::clear.
11052 (go_parse): Use auto_obstack::clear instead of reinitializing and
11053 freeing the obstack.
11054 * linux-tdep.c (linux_make_mappings_corefile_notes): Use
11056 * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack.
11057 * rust-exp.y (work_obstack): Now an auto_obstack.
11058 (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of
11059 reinitializing and freeing the obstack.
11060 * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete.
11061 (host_char_to_target): Use auto_obstack.
11062 * utils.h (make_cleanup_obstack_free): Delete declaration.
11063 * valprint.c (generic_emit_char, generic_printstr): Use
11066 2017-06-27 Simon Marchi <simon.marchi@ericsson.com>
11068 * darwin-nat.c (darwin_check_new_threads): Don't handle dummy
11070 (darwin_init_thread_list): Don't update dummy thread.
11071 (darwin_create_inferior, darwin_attach): Don't add a dummy thread.
11073 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
11075 * record-full.c (netorder16): Remove.
11077 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
11079 * common/diagnostics.h: Define macros for GCC.
11080 (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro.
11081 * common/vec.h: Include diagnostics.h.
11082 (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro.
11083 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function
11086 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
11088 * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER):
11090 * ada-lex.l: Ignore deprecated register warnings.
11092 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
11094 * main.c (get_init_files): Replace "SYSTEM_GDBINIT +
11095 datadir_len" with "&SYSTEM_GDBINIT[datadir_len]".
11097 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
11099 * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on
11102 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
11104 * nat/x86-dregs.c (x86_show_dr): Print registers one per line.
11106 2017-06-23 Alan Hayward <alan.hayward@arm.com>
11108 * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add.
11109 (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE.
11110 (xtensa_register_read_masked): Likewise.
11112 2017-06-22 Sergio Durigan Junior <sergiodj@redhat.com>
11114 * common/environ.c (gdb_environ::unset): Update comment.
11116 2017-06-22 Alan Hayward <alan.hayward@arm.com>
11118 * python/py-unwind.c (pyuw_sniffer): Allocate space for
11121 2017-06-22 Alan Hayward <alan.hayward@arm.com>
11123 * record-full.c (record_full_exec_insn): Use byte_vector.
11125 2017-06-22 Yao Qi <yao.qi@linaro.org>
11127 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated.
11128 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
11130 2017-06-22 Alan Hayward <alan.hayward@arm.com>
11132 * remote.c (cached_reg): Move from here...
11133 * regcache.h (cached_reg): ...to here.
11134 * python/py-unwind.c (struct reg_info): Remove.
11135 (cached_frame_info): Use cached_reg_t.
11136 (pyuw_prev_register): Likewise.
11137 (pyuw_sniffer): Use cached_reg_t and allocate registers.
11138 (pyuw_dealloc_cache): Free all registers.
11140 2017-06-22 Pedro Alves <palves@redhat.com>
11141 Simon Marchi <simon.marchi@ericsson.com>
11143 * unittests/environ-selftests.c (run_tests): Ignore -Wself-move
11145 * common/diagnostics.h: New file.
11147 2017-06-22 Pedro Alves <palves@redhat.com>
11149 * common/agent.h: Add include guards.
11151 2017-06-21 Simon Marchi <simon.marchi@ericsson.com>
11153 * target.h (struct target_ops) <to_xfer_partial>: Update doc to
11154 talk about addressable units instead of bytes.
11156 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
11158 * common/environ.c (gdb_environ::unset): Use '::iterator' instead
11159 of '::const_iterator'.
11161 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
11163 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11164 'unittests/environ-selftests.c'.
11165 (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'.
11166 * charset.c (find_charset_names): Declare object 'iconv_env'.
11167 Update code to use 'iconv_env' object. Remove call to
11169 * common/environ.c: Include <utility>.
11170 (make_environ): Delete function.
11171 (free_environ): Delete function.
11172 (gdb_environ::clear): New function.
11173 (gdb_environ::operator=): New function.
11174 (gdb_environ::get): Likewise.
11175 (environ_vector): Delete function.
11176 (set_in_environ): Delete function.
11177 (gdb_environ::set): New function.
11178 (unset_in_environ): Delete function.
11179 (gdb_environ::unset): New function.
11180 (gdb_environ::envp): Likewise.
11181 * common/environ.h: Include <vector>.
11182 (struct gdb_environ): Delete; transform into...
11183 (class gdb_environ): ... this class.
11184 (free_environ): Delete prototype.
11185 (init_environ, get_in_environ, set_in_environ, unset_in_environ,
11186 environ_vector): Likewise.
11187 * infcmd.c (run_command_1): Update code to call
11188 'envp' from 'gdb_environ' class.
11189 (environment_info): Update code to call methods from 'gdb_environ'
11191 (unset_environment_command): Likewise.
11192 (path_info): Likewise.
11193 (path_command): Likewise.
11194 * inferior.c (inferior::~inferior): Delete call to 'free_environ'.
11195 (inferior::inferior): Initialize 'environment' using the host's
11197 * inferior.h: Remove forward declaration of 'struct gdb_environ'.
11198 Include "environ.h".
11199 (class inferior) <environment>: Change type from 'struct
11200 gdb_environ' to 'gdb_environ'.
11201 * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call
11202 methods from 'gdb_environ' class.
11203 * solib.c (solib_find_1): Likewise
11204 * unittests/environ-selftests.c: New file.
11206 2017-06-20 Yao Qi <yao.qi@linaro.org>
11208 * features/i386/i386-linux.xml: Exchange the order of including
11209 32bit-linux.xml and 32bit-sse.xml.
11210 * features/i386/i386-linux.c: Regenerated.
11212 2017-06-20 Yao Qi <yao.qi@linaro.org>
11214 * target-descriptions.c (tdesc_reg): Add ctor, dtor.
11215 Delete copy ctor and assignment operator.
11216 (tdesc_type): Likewise.
11217 (tdesc_feature): Likewise.
11218 (tdesc_free_reg): Remove.
11219 (tdesc_create_reg): Use new.
11220 (tdesc_free_type): Remove.
11221 (tdesc_create_vector): Use new.
11222 (tdesc_create_union): Likewise.
11223 (tdesc_create_flags): Likewise.
11224 (tdesc_create_enum): Likewise.
11225 (tdesc_free_feature): Delete.
11226 (free_target_description): Use delete.
11228 2017-06-19 John Baldwin <jhb@FreeBSD.org>
11230 * mips-tdep.c (print_gp_register_row): Don't error for unavailable
11233 2017-06-19 Pedro Alves <palves@redhat.com>
11235 * dwarf2read.c (write_psymtabs_to_index): Construct file_closer
11236 after gdb::unlinker.
11238 2017-06-19 Sergio Durigan Junior <sergiodj@redhat.com>
11240 * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of
11241 gdb_environ to access an environment variable.
11243 2017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
11245 * nat/linux-ptrace.c (linux_fork_to_function): Add cast to
11248 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
11250 * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF.
11252 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
11254 * configure: Re-generate.
11255 * warning.m4 (build_warnings): Add -Wno-mismatched-tags.
11257 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
11259 * configure: Re-generate.
11260 * warning.m4: Pass -Werror to compiler when checking for
11261 supported warning flags.
11263 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
11265 * Makefile.in (COMPILE.pre): Add "-x c++".
11267 2017-06-16 Alan Hayward <alan.hayward@arm.com>
11268 Pedro Alves <palves@redhat.com>
11269 Yao Qi <yao.qi@linaro.org>
11271 * defs.h (RequireLongest): New.
11272 (extract_integer): Declare function template.
11273 (extract_signed_integer): Remove the declaration, but define it
11275 (extract_unsigned_integer): Likewise.
11276 (store_integer): Declare function template.
11277 (store_signed_integer): Remove the declaration, but define it
11279 (store_unsigned_integer): Likewise.
11280 * findvar.c (extract_integer): New function template.
11281 (extract_signed_integer): Remove.
11282 (extract_unsigned_integer): Remove.
11283 (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit
11285 (store_integer): New function template.
11286 (store_signed_integer): Remove.
11287 (store_unsigned_integer): Remove.
11288 (store_integer): Explicit instantiations.
11289 * regcache.c (regcache_raw_read_signed): Update.
11290 (regcache::raw_read): New function.
11291 (regcache::raw_read_signed): Remove.
11292 (regcache::raw_read_unsigned): Remove.
11293 (regcache_raw_read_unsigned): Update.
11294 (regcache_raw_write_unsigned): Update.
11295 (regcache::raw_write_signed): Remove.
11296 (regcache::raw_write): New function.
11297 (regcache_cooked_read_signed): Update.
11298 (regcache::raw_write_unsigned): Remove.
11299 (regcache::cooked_read_signed): Remove.
11300 (regcache_cooked_read_unsigned): Update.
11301 (regcache::cooked_read_unsigned): Remove.
11302 (regcache_cooked_write_signed): Update.
11303 (regcache_cooked_write_unsigned): Update.
11304 * regcache.h (regcache) <raw_read_signed>: Remove.
11305 <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove.
11306 <raw_read, raw_write>: New.
11307 <cooked_read_signed, cooked_write_signed>: Remove.
11308 <cooked_write_unsigned, cooked_read_unsigned>: Remove.
11309 <cooked_read, cooked_write>: New.
11310 * sh64-tdep.c (sh64_pseudo_register_read): Update.
11311 (sh64_pseudo_register_write): Update.
11313 2017-06-16 Anton Kolesov <anton.kolesov@synopsys.com>
11315 * arc-tdep.c (arc_disassembler_options): New variable.
11316 (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead
11317 of default_print_insn.
11318 (arc_delayed_print_insn): Set info->section when needed,
11319 use default_print_insn to retrieve a disassembler.
11321 2017-06-14 Sergio Durigan Junior <sergiodj@redhat.com>
11324 * infcmd.c (_initialize_infcmd): Expand "help run" documentation
11325 to mention $SHELL and startup-with-shell.
11327 2017-06-14 Max Filippov <jcmvbkbc@gmail.com>
11329 * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers.
11331 2017-06-14 Yao Qi <yao.qi@linaro.org>
11333 * aarch64-tdep.c (aarch64_gdb_print_insn): Call
11334 default_print_insn instead of print_insn_aarch64.
11335 * arm-tdep.c (gdb_print_insn_arm): Call
11336 default_print_insn instead of print_insn_big_arm
11337 and print_insn_little_arm.
11338 * i386-tdep.c (i386_print_insn): Call default_print_insn
11339 instead of print_insn_i386.
11340 * ia64-tdep.c (ia64_print_insn): Call
11341 default_print_insn instead of print_insn_ia64.
11342 * mips-tdep.c (gdb_print_insn_mips): Call
11343 default_print_insn instead of print_insn_big_mips
11344 and print_insn_little_mips.
11345 * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn
11346 instead of print_insn_spu.
11348 2017-06-14 Pedro Alves <palves@redhat.com>
11350 * ada-lang.c: Include "common/byte-vector.h".
11351 (ada_value_primitive_packed_val): Use gdb::byte_vector.
11352 * charset.c (wchar_iterator::iterate): Resize the vector instead
11354 * common/byte-vector.h: Include "common/def-vector.h".
11355 (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>.
11356 * cli/cli-dump.c: Include "common/byte-vector.h".
11357 (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector.
11358 * common/byte-vector.h: New file.
11359 * common/def-vector.h: New file.
11360 * common/default-init-alloc.h: New file.
11361 * dwarf2loc.c: Include "common/byte-vector.h".
11362 (rw_pieced_value): Use gdb::byte_vector, and resize the vector
11363 instead of reserving it.
11364 * dwarf2read.c: Include "common/byte-vector.h".
11365 (data_buf::m_vec): Now a gdb::byte_vector.
11366 * gdb_regex.c: Include "common/def-vector.h".
11367 (compiled_regex::compiled_regex): Use gdb::def_vector<char>.
11368 * mi/mi-main.c: Include "common/byte-vector.h".
11369 (mi_cmd_data_read_memory): Use gdb::byte_vector.
11370 * printcmd.c: Include "common/byte-vector.h".
11371 (print_scalar_formatted): Use gdb::byte_vector.
11372 * valprint.c: Include "common/byte-vector.h".
11373 (maybe_negate_by_bytes, print_decimal_chars): Use
11376 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
11378 * darwin-nat.c: Include "nat/fork-inferior.h".
11380 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
11382 * configure.nat: Factor out Darwin bits that are not
11383 architecture-specific. Add fork-inferior.o.
11385 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
11387 * configure.nat: Factor out AIX bits that are not
11388 architecture-specific. Add fork-inferior.o.
11390 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11392 * dwarf2loc.c (rw_pieced_value): New. Merge logic from...
11393 (read_pieced_value, write_pieced_value): ...here. Reduce to
11394 wrappers that just call rw_pieced_value.
11396 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11398 * dwarf2loc.c (write_pieced_value): When writing the data for a
11399 memory piece, use write_memory_with_notification instead of
11402 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11404 * valops.c (read_value_memory): Change embedded_offset to
11405 represent a bit offset instead of a byte offset.
11406 * value.h (read_value_memory): Adjust comment.
11408 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11410 * dwarf2loc.c (read_pieced_value): Remove unnecessary variables
11411 dest_offset_bits and source_offset_bits.
11412 (write_pieced_value): Likewise.
11414 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11416 * dwarf2loc.c (read_pieced_value): Respect the piece offset, as
11417 given by DW_OP_bit_piece.
11418 (write_pieced_value): Likewise.
11420 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11422 * dwarf2loc.c (read_pieced_value): Move the buffer allocation and
11423 some other preparations to the places where sufficient information
11425 (write_pieced_value): Likewise.
11427 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11429 * dwarf2loc.c (bits_to_bytes): New function.
11430 (read_pieced_value): Fix offset calculations for register pieces
11431 on big-endian targets.
11432 (write_pieced_value): Likewise.
11434 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11436 * dwarf2loc.c (read_pieced_value): Remove buffer_size variable.
11437 (write_pieced_value): Likewise.
11439 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11441 * dwarf2loc.c (write_pieced_value): When writing to a bit-field,
11442 transfer the source value's least significant bits, instead of its
11443 lowest-addressed ones. Rename type_len to max_offset.
11444 (read_pieced_value): Mirror above changes to write_pieced_value as
11447 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11449 * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY,
11450 truncate full bytes from dest_offset_bits before using it as an
11451 offset into the buffer.
11453 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11455 * dwarf2loc.c (write_pieced_value): Include transfer size in
11458 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11460 * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the
11461 calculation of this_size.
11463 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11465 * dwarf2loc.c (read_pieced_value): Respect parent value's offset
11466 when targeting a bit-field.
11467 (write_pieced_value): Likewise.
11469 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11471 * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field.
11472 (allocate_piece_closure): Drop addr_size parameter.
11473 (dwarf2_evaluate_loc_desc_full): Adjust call to
11474 allocate_piece_closure.
11476 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11479 * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at
11480 the LSB end, independent of endianness.
11482 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11484 * dwarf2loc.c (write_pieced_value): Fix order of calculations for
11487 2017-06-13 Yao Qi <yao.qi@linaro.org>
11489 * mips-linux-nat.c: Move include features/mips*-linux.c to
11491 (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls
11492 to mips-linux-tdep.c.
11493 * mips-linux-tdep.c: Include features/mips*-linux.c
11494 (_initialize_mips_linux_tdep): Call initialize_tdesc_mips*
11496 * mips-linux-tdep.h (tdesc_mips_linux): Declare.
11497 (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare.
11498 (tdesc_mips64_dsp_linux): Declare.
11500 2017-06-12 Tom Tromey <tom@tromey.com>
11502 * valprint.h (val_print_type_code_int): Remove.
11503 * valprint.c (generic_val_print_int): Always call
11504 val_print_scalar_formatted.
11505 (val_print_type_code_int): Remove.
11506 * printcmd.c (print_scalar_formatted): Handle options->format==0.
11507 * f-valprint.c (f_val_print): Use val_print_scalar_formatted.
11508 * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted.
11509 * ada-valprint.c (ada_val_print_num): Use
11510 val_print_scalar_formatted.
11512 2017-06-12 Tom Tromey <tom@tromey.com>
11514 * printcmd.c (print_scalar_formatted): Unify the two switches.
11515 Don't convert scalars to LONGEST.
11517 2017-06-12 Tom Tromey <tom@tromey.com>
11520 * valprint.h (print_decimal_chars): Update.
11521 * valprint.c (maybe_negate_by_bytes): New function.
11522 (print_decimal_chars): Add "is_signed" argument.
11523 * printcmd.c (print_scalar_formatted): Update.
11525 2017-06-12 Tom Tromey <tom@tromey.com>
11528 * valprint.h (print_binary_chars, print_hex_chars): Update.
11529 * valprint.c (val_print_type_code_int): Update.
11530 (print_binary_chars): Add "zero_pad" argument.
11531 (emit_octal_digit): New function.
11532 (print_octal_chars): Don't zero-pad.
11533 (print_decimal_chars): Likewise.
11534 (print_hex_chars): Add "zero_pad" argument.
11535 * sh64-tdep.c (sh64_do_fp_register): Update.
11536 * regcache.c (regcache::dump): Update.
11537 * printcmd.c (print_scalar_formatted): Update.
11538 * infcmd.c (default_print_one_register_info): Update.
11540 2017-06-12 Pedro Alves <palves@redhat.com>
11541 Alan Hayward <alan.hayward@arm.com>
11543 * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New.
11544 (mips_eabi_push_dummy_call): Rename local 'regsize' to
11545 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and
11546 use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it.
11547 Assert that abi_regsize bytes fit in 'ref_valbuf'.
11549 2017-06-12 Pedro Alves <palves@redhat.com>
11551 * dwarf2read.c (mapped_symtab::data): Now a vector of
11552 symtab_index_entry instead of vector of
11553 std::unique_ptr<symtab_index_entry>. All users adjusted to check
11554 whether an element's name is NULL instead of checking whether the
11555 element itself is NULL.
11556 (find_slot): Change return type. Adjust.
11557 (hash_expand, , add_index_entry, uniquify_cu_indices)
11558 (write_hash_table): Adjust.
11560 2017-06-12 Pedro Alves <palves@redhat.com>
11562 * dwarf2read.c (recursively_count_psymbols): New function.
11563 (write_psymtabs_to_index): Call it to compute number of psyms and
11564 pass estimate size of psyms_seen to unordered_set's ctor.
11566 2017-06-12 Pedro Alves <palves@redhat.com>
11568 * dwarf2read.c (write_hash_table): Check if key already exists
11571 2017-06-12 Pedro Alves <palves@redhat.com>
11573 * dwarf2read.c (data_buf::append_space): Rename to...
11574 (data_buf::grow): ... this, and make private. Adjust all callers.
11575 (data_buf::append_uint): New method.
11576 (add_address_entry, write_one_signatured_type)
11577 (write_psymtabs_to_index): Use it.
11579 2017-06-12 Pedro Alves <palves@redhat.com>
11581 * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete.
11582 (file_write (FILE *, const std::vector<Elem>&)): Delete.
11583 (data_buf::file_write): Call ::fwrite directly.
11585 2017-06-12 Pedro Alves <palves@redhat.com>
11587 * dwarf2read.c (uniquify_cu_indices): Use std::unique and
11588 std::vector::erase.
11590 2017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11592 Code cleanup: C++ify .gdb_index producer.
11593 * dwarf2read.c: Include <unordered_set> and <unordered_map>.
11594 (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type.
11595 (struct strtab_entry, hash_strtab_entry, eq_strtab_entry)
11596 (create_strtab, add_string): Remove.
11597 (file_write, data_buf): New.
11598 (struct symtab_index_entry): Use std::vector for cu_indices.
11599 (struct mapped_symtab): Use std::vector for data.
11600 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry)
11601 (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab):
11603 (find_slot): Change return type. Update it to the new data structures.
11604 (hash_expand, add_index_entry): Update it to the new data structures.
11605 (offset_type_compare): Remove.
11606 (uniquify_cu_indices): Update it to the new data structures.
11607 (c_str_view, c_str_view_hasher, vector_hasher): New.
11608 (add_indices_to_cpool): Remove.
11609 (write_hash_table): Update it to the new data structures.
11610 (struct psymtab_cu_index_map, hash_psymtab_cu_index)
11611 (eq_psymtab_cu_index): Remove.
11612 (psym_index_map): New typedef.
11613 (struct addrmap_index_data): Change addr_obstack pointer to data_buf
11614 reference and std::unordered_map for cu_index_htab.
11615 (add_address_entry, add_address_entry_worker, write_address_map)
11616 (write_psymbols): Update it to the new data structures.
11617 (write_obstack): Remove.
11618 (struct signatured_type_index_data): Change types_list to a data_buf
11619 reference and psyms_seen to a std::unordered_set reference.
11620 (write_one_signatured_type, recursively_write_psymbols)
11621 (write_psymtabs_to_index): Update it to the new data structures.
11623 2017-06-11 Simon Marchi <simon.marchi@ericsson.com>
11625 * NEWS (Changes since GDB 8.0): Announce {set,show} debug
11626 separate-debug-file commands.
11627 * symfile.h (separate_debug_file_debug): New global.
11628 * symfile.c (separate_debug_file_debug): New global.
11629 (separate_debug_file_exists, find_separate_debug_file): Add
11631 (_initialize_symfile): Add "set debug separate-debug-file"
11633 * build-id.c (build_id_to_debug_bfd,
11634 find_separate_debug_file_by_buildid): Add debug output.
11636 2017-06-10 Simon Marchi <simon.marchi@polymtl.ca>
11638 * gdbarch.sh (displaced_step_free_closure): Remove.
11639 * gdbarch.h, gdbarch.c: Re-generate.
11640 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set
11641 displaced_step_free_closure.
11642 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
11643 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
11644 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
11645 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
11646 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11647 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
11648 * arch-utils.h (simple_displaced_step_free_closure): Remove.
11649 * arch-utils.c (simple_displaced_step_free_closure): Remove.
11650 * infrun.c (displaced_step_clear): Call xfree instead of
11651 gdbarch_displaced_step_free_closure.
11653 2017-06-08 Sergio Durigan Junior <sergiodj@redhat.com>
11655 * common/common-utils.c (stringify_argv): Check for "arg[0] !=
11658 2017-06-08 Alan Hayward <alan.hayward@arm.com>
11660 * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add.
11661 (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE.
11662 (mn10300_push_dummy_call): Likewise.
11664 2017-06-08 Alan Hayward <alan.hayward@arm.com>
11666 * mi/mi-main.c (register_changed_p): Use value_contents_eq.
11668 2017-06-08 Alan Hayward <alan.hayward@arm.com>
11670 * mi/mi-main.c (register_changed_p): Use cooked_read_value.
11672 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
11674 * NEWS (Changes since GDB 8.0): Announce that GDBserver is now
11675 able to start inferiors using a shell.
11676 (New remote packets): Announce new packet "QStartupWithShell".
11677 * remote.c: Add PACKET_QStartupWithShell.
11678 (extended_remote_create_inferior): Handle new
11679 PACKET_QStartupWithShell.
11680 (remote_protocol_features) <QStartupWithShell>: New entry for
11681 PACKET_QStartupWithShell.
11682 (_initialize_remote): Call "add_packet_config_cmd" for
11685 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
11686 Pedro Alves <palves@redhat.com>
11688 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h"
11689 and "nat/fork-inferior.h".
11690 * common/common-inferior.h: New file, with contents from
11692 * commom/common-utils.c: Include "common-utils.h".
11693 (stringify_argv): New function.
11694 * common/common-utils.h (stringify_argv): New prototype.
11695 * configure.nat: Add "fork-inferior.o" as a dependency for
11696 "*linux*", "fbsd*" and "nbsd*" hosts.
11697 * corefile.c (get_exec_file): Update comment.
11698 * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior"
11699 instead of "startup_inferior".
11700 (darwin_create_inferior): Call "add_thread_silent" after
11702 * fork-child.c: Cleanup unnecessary includes.
11703 (SHELL_FILE): Move to "common/common-fork-child.c".
11704 (environ): Likewise.
11705 (exec_wrapper): Initialize.
11706 (get_exec_wrapper): New function.
11707 (breakup_args): Move to "common/common-fork-child.c"; rename to
11708 "breakup_args_for_exec".
11709 (escape_bang_in_quoted_argument): Move to
11710 "common/common-fork-child.c".
11711 (saved_ui): New variable.
11712 (prefork_hook): New function.
11713 (postfork_hook): Likewise.
11714 (postfork_child_hook): Likewise.
11715 (gdb_startup_inferior): Likewise.
11716 (fork_inferior): Move to "common/common-fork-child.c". Update
11717 function to support gdbserver.
11718 (startup_inferior): Likewise.
11719 * gdbcore.h (get_exec_file): Remove declaration.
11720 * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior"
11721 instead of "startup_inferior". Call "add_thread_silent" after
11723 * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h".
11724 (inf_ptrace_create_inferior): Call "gdb_startup_inferior"
11725 instead of "startup_inferior". Call "add_thread_silent" after
11727 * inferior.h: Include "common-inferior.h".
11728 (trace_start_error): Move to "common/common-utils.h".
11729 (trace_start_error_with_name): Likewise.
11730 (fork_inferior): Move prototype to "nat/fork-inferior.h".
11731 (startup_inferior): Likewise.
11732 (gdb_startup_inferior): New prototype.
11733 * nat/fork-inferior.c: New file, with contents from "fork-child.c".
11734 * nat/fork-inferior.h: New file.
11735 * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior"
11736 instead of "startup_inferior". Call "add_thread_silent" after
11738 * target.h (target_terminal_init): Move prototype to
11740 (target_terminal_inferior): Likewise.
11741 (target_terminal_ours): Likewise.
11742 * target/target.h (target_terminal_init): New prototype, moved
11744 (target_terminal_inferior): Likewise.
11745 (target_terminal_ours): Likewise.
11746 * utils.c (gdb_flush_out_err): New function.
11748 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
11750 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h".
11751 * common/common-gdbthread.h: New file, with parts from
11753 * gdbthread.h: Include "common-gdbthread.h".
11754 (switch_to_thread): Moved to "common/common-gdbthread.h".
11756 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
11758 * Makefile.in (SFILES): Add "common/job-control.c".
11759 (HFILES_NO_SRCDIR): Add "common/job-control.h".
11760 (COMMON_OBS): Add "job-control.o".
11761 * common/job-control.c: New file, with contents from
11763 * common/job-control.h: New file, with contents from "terminal.h".
11764 * fork-child.c: Include "job-control.h".
11765 * inflow.c: Include "job-control.h".
11766 (gdb_setpgid): Move to "common/common-inflow.c".
11767 (_initialize_inflow): Move setting of "job_control" to
11768 "handle_job_control".
11769 * terminal.h (job_control): Moved to "common/common-terminal.h".
11770 (gdb_setpgid): Likewise.
11771 * top.c: Include "job_control.h".
11772 * utils.c: Likewise.
11773 (job_control): Moved to "job-control.c".
11775 2017-06-07 Pedro Alves <palves@redhat.com>
11777 * Makefile.in (SFILES): Add gdb_regex.c.
11778 (COMMON_OBS): Add gdb_regex.o.
11779 * ada-lang.c (ada_add_standard_exceptions)
11780 (ada_add_exceptions_from_frame, name_matches_regex)
11781 (ada_add_global_exceptions, ada_exceptions_list_1): Change regex
11782 parameter type to compiled_regex. Adjust.
11783 (ada_exceptions_list): Use compiled_regex.
11784 * break-catch-throw.c (exception_catchpoint::pattern): Now a
11785 std::unique_ptr<compiled_regex>.
11786 (exception_catchpoint::~exception_catchpoint): Remove regfree
11788 (check_status_exception_catchpoint): Adjust to use compiled_regex.
11789 (handle_gnu_v3_exceptions): Adjust to use compiled_regex.
11790 * breakpoint.c (solib_catchpoint::compiled): Now a
11791 std::unique_ptr<compiled_regex>.
11792 (solib_catchpoint::~solib_catchpoint): Remove regfree call.
11793 (check_status_catch_solib): Adjust to use compiled_regex.
11794 (add_solib_catchpoint): Adjust to use compiled_regex.
11795 * cli/cli-cmds.c (apropos_command): Use compiled_regex.
11796 * cli/cli-decode.c (apropos_cmd): Change regex parameter to
11797 compiled_regex reference. Adjust to use it.
11798 * cli/cli-decode.h: Remove struct re_pattern_buffer forward
11799 declaration. Include "gdb_regex.h".
11800 (apropos_cmd): Change regex parameter to compiled_regex reference.
11801 * gdb_regex.c: New file.
11802 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete
11804 (class compiled_regex): New.
11805 * linux-tdep.c: Include "common/gdb_optional.h".
11806 (struct mapping_regexes): New, factored out from
11807 mapping_is_anonymous_p, and adjusted to use compiled_regex.
11808 (mapping_is_anonymous_p): Use mapping_regexes wrapped in a
11809 gdb::optional and remove cleanups. Adjust to compiled_regex.
11810 * probe.c: Include "common/gdb_optional.h".
11811 (collect_probes): Use compiled_regex and gdb::optional and remove
11813 * skip.c: Include "common/gdb_optional.h".
11814 (skiplist_entry::compiled_function_regexp): Now a
11815 gdb::optional<compiled_regex>.
11816 (skiplist_entry::compiled_function_regexp_is_valid): Delete field.
11817 (free_skiplist_entry): Remove regfree call.
11818 (compile_skip_regexp, skip_rfunction_p): Adjust to use
11819 compiled_regex and gdb::optional.
11820 * symtab.c: Include "common/gdb_optional.h".
11821 (search_symbols): Use compiled_regex and gdb::optional.
11822 * utils.c (do_regfree_cleanup, make_regfree_cleanup)
11823 (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved
11826 2017-06-07 Alan Hayward <alan.hayward@arm.com>
11828 * regcache.c (regcache::save): Avoid buffer use.
11829 (regcache::dump): Likewise.
11831 2017-06-07 Alan Hayward <alan.hayward@arm.com>
11833 * sh-tdep.c (sh_pseudo_register_read): Remove
11835 (sh_pseudo_register_write): Likewise.
11836 * sh64-tdep.c (sh64_pseudo_register_read): Likewise.
11837 (sh64_pseudo_register_write): Likewise
11839 2017-06-07 Alan Hayward <alan.hayward@arm.com>
11841 * aarch64-tdep.c (aarch64_store_return_value): Use
11843 (aarch64_pseudo_read_value): Likewise.
11844 (aarch64_pseudo_write): Likewise.
11846 2017-06-06 Yao Qi <yao.qi@linaro.org>
11848 * regformats/regdef.h (set_register_cache): Remove the
11851 2017-06-06 Alan Hayward <alan.hayward@arm.com>
11853 * frame.c (frame_unwind_register_signed): Use
11854 frame_unwind_register_value.
11856 2017-06-06 Pedro Alves <palves@redhat.com>
11858 PR breakpoints/21553
11859 * breakpoint.c (create_breakpoints_sal_default)
11860 (init_breakpoint_sal, create_breakpoint_sal): Use
11861 gdb::unique_xmalloc_ptr for string parameters.
11862 (create_breakpoint): Constify 'extra_string' and 'cond_string'
11863 parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
11864 (base_breakpoint_create_breakpoints_sal)
11865 (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
11866 (strace_marker_create_breakpoints_sal)
11867 (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
11869 * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
11870 gdb::unique_xmalloc_ptr for string parameters.
11871 (create_breakpoint): Constify 'extra_string' and 'cond_string'
11874 2017-06-06 Alan Hayward <alan.hayward@arm.com>
11876 * alpha-tdep.c (alpha_register_to_value): Use
11877 get_frame_register_value.
11878 (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
11880 2017-06-06 Alan Hayward <alan.hayward@arm.com>
11882 * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
11883 (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
11884 (ia64_value_to_register): Likewise.
11885 (ia64_extract_return_value): Likewise.
11886 (ia64_store_return_value): Likewise.
11887 (ia64_push_dummy_call): Likewise.
11889 2017-06-04 Joel Brobecker <brobecker@adacore.com>
11893 2017-06-03 Simon Marchi <simon.marchi@ericsson.com>
11895 * x86-linux-nat.c (struct arch_lwp_info): Remove.
11897 2017-06-03 Simon Marchi <simon.marchi@polymtl.ca>
11899 * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
11901 (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
11903 2017-06-02 Simon Marchi <simon.marchi@ericsson.com>
11905 * event-loop.c (poll_timers): Unallocate timer using delete
11908 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
11910 * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
11911 (struct breakpoint) <~breakpoint>: New.
11912 (struct watchpoint): Inherit from breakpoint.
11913 <~watchpoint>: New.
11915 (struct tracepoint): Inherit from breakpoint.
11917 * breakpoint.c (longjmp_breakpoint_ops): Remove.
11918 (struct longjmp_breakpoint): Inherit from breakpoint.
11919 <~longjmp_breakpoint>: New.
11921 (new_breakpoint_from_type): Remove casts.
11922 (watchpoint_in_thread_scope): Remove reference to base field.
11923 (watchpoint_del_at_next_stop): Likewise.
11924 (update_watchpoint): Likewise.
11925 (watchpoint_check): Likewise.
11926 (bpstat_check_watchpoint): Likewise.
11927 (set_longjmp_breakpoint): Likewise.
11928 (struct fork_catchpoint): Inherit from breakpoint.
11930 (struct solib_catchpoint): Inherit from breakpoint.
11931 <~solib_catchpoint>: New.
11933 (dtor_catch_solib): Change to ...
11934 (solib_catchpoint::~solib_catchpoint): ... this.
11935 (breakpoint_hit_catch_solib): Remove reference to base field.
11936 (add_solib_catchpoint): Likewise.
11937 (create_fork_vfork_event_catchpoint): Likewise.
11938 (struct exec_catchpoint): Inherit from breakpoint.
11939 <~exec_catchpoint>: New.
11941 (dtor_catch_exec): Change to ...
11942 (exec_catchpoint::~exec_catchpoint): ... this.
11943 (dtor_watchpoint): Change to ...
11944 (watchpoint::~watchpoint): ... this.
11945 (watch_command_1): Remove reference to base field.
11946 (catch_exec_command_1): Likewise.
11947 (base_breakpoint_dtor): Change to ...
11948 (breakpoint::~breakpoint): ... this.
11949 (base_breakpoint_ops): Remove dtor field value.
11950 (longjmp_bkpt_dtor): Change to ...
11951 (longjmp_breakpoint::~longjmp_breakpoint): ... this.
11952 (strace_marker_create_breakpoints_sal): Remove reference to base
11954 (delete_breakpoint): Don't manually call breakpoint destructor.
11955 (create_tracepoint_from_upload): Remove reference to base field.
11956 (trace_pass_set_count): Likewise.
11957 (initialize_breakpoint_ops): Don't initialize
11958 momentary_breakpoint_ops, don't set dtors.
11959 * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
11960 <~ada_catchpoint>: New.
11962 (create_excep_cond_exprs): Remove reference to base field.
11963 (dtor_exception): Change to ...
11964 (ada_catchpoint::~ada_catchpoint): ... this.
11965 (dtor_catch_exception): Remove.
11966 (dtor_catch_exception_unhandled): Remove.
11967 (dtor_catch_assert): Remove.
11968 (create_ada_exception_catchpoint): Remove reference to base
11970 (initialize_ada_catchpoint_ops): Don't set dtors.
11971 * break-catch-sig.c (struct signal_catchpoint): Inherit from
11973 <~signal_catchpoint>: New.
11975 (signal_catchpoint_dtor): Change to ...
11976 (signal_catchpoint::~signal_catchpoint): ... this.
11977 (create_signal_catchpoint): Remove reference to base field.
11978 (initialize_signal_catchpoint_ops): Don't set dtor.
11979 * break-catch-syscall.c (struct syscall_catchpoint): Inherit
11981 <~syscall_catchpoint>: New.
11983 (dtor_catch_syscall): Change to ...
11984 (syscall_catchpoint::~syscall_catchpoint): ... this.
11985 (create_syscall_event_catchpoint): Remove reference to base
11987 (initialize_syscall_catchpoint_ops): Don't set dtor.
11988 * break-catch-throw.c (struct exception_catchpoint): Inherit
11990 <~exception_catchpoint>: New.
11992 (dtor_exception_catchpoint): Change to ...
11993 (exception_catchpoint::~exception_catchpoint): ... this.
11994 (handle_gnu_v3_exceptions): Remove reference to base field.
11995 (initialize_throw_catchpoint_ops): Don't set dtor.
11996 * ctf.c (ctf_get_traceframe_address): Remove reference to base
11998 * remote.c (remote_get_tracepoint_status): Likewise.
11999 * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
12000 * tracefile.c (tracefile_fetch_registers): Likewise.
12001 * tracepoint.c (actions_command): Likewise.
12002 (validate_actionline): Likewise.
12003 (tfind_1): Likewise.
12004 (get_traceframe_location): Likewise.
12005 (find_matching_tracepoint_location): Likewise.
12006 (parse_tracepoint_status): Likewise.
12007 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
12009 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
12011 * breakpoint.c (struct longjmp_breakpoint): New struct.
12012 (is_tracepoint_type): Change return type to bool.
12013 (is_longjmp_type): New function.
12014 (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
12015 (set_raw_breakpoint_without_location): Use
12016 new_breakpoint_from_type.
12017 (set_raw_breakpoint): Likewise.
12019 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
12021 * breakpoint.c (new_breakpoint_from_type): New function.
12022 (create_breakpoint_sal): Use new_breakpoint_from_type and
12024 (create_breakpoint): Likewise.
12026 2017-05-31 Simon Marchi <simon.marchi@ericsson.com>
12028 * memattr.c (mem_info_command): Rename to ...
12029 (info_mem_command): ... this.
12030 (mem_enable_command): Rename to ...
12031 (enable_mem_command): ... this.
12032 (mem_disable_command): Rename to ...
12033 (disable_mem_command): ... this.
12034 (mem_delete_command): Rename to ...
12035 (delete_mem_command): ... this.
12036 (_initialize_mem): Adjust function names.
12038 2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
12040 * btrace.c (handle_pt_insn_events): New.
12041 (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into
12042 STATUS. Split into this and ...
12043 (handle_pt_insn_event_flags): ... this.
12045 2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
12047 * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
12048 and struct pt_insn.resynced.
12049 * configure: Regenerated.
12050 * config.in: Regenerated.
12052 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12054 * btrace.c (ftrace_find_call_by_number): New function.
12055 (ftrace_new_function): Store objects, not pointers.
12056 (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
12057 ftrace_new_gap, ftrace_update_function,
12058 ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
12059 btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
12060 btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
12061 btrace_ends_with_single_insn, btrace_call_get): Account for
12062 btrace_thread_info::functions now storing objects.
12063 * btrace.h (struct btrace_thread_info): Add constructor.
12064 (struct btrace_thread_info) <functions>: Make std::vector.
12065 (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
12066 Initialize with default values.
12067 * record-btrace.c (record_btrace_frame_sniffer): Account for
12068 btrace_thread_info::functions now storing objects.
12070 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12072 * btrace.c: Remove typedef bfun_s.
12073 (ftrace_new_gap): Directly add gaps to the list of gaps.
12074 (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
12075 ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
12076 btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
12077 instead of gdb VEC.
12079 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12081 * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
12082 ftrace_bridge_gap): Replace references to btrace_thread_info::segment
12083 with btrace_thread_info::next_segment and
12084 btrace_thread_info::prev_segment.
12085 * btrace.h: Remove struct btrace_func_link.
12086 (struct btrace_function): Replace pair of function segment pointers
12087 with pair of indices.
12088 * python/py-record-btrace.c (btpy_call_prev_sibling,
12089 btpy_call_next_sibling): Replace references to
12090 btrace_thread_info::segment with btrace_thread_info::next_segment and
12091 btrace_thread_info::prev_segment.
12092 * record-btrace.c (record_btrace_frame_this_id): Use
12093 btrace_find_call_by_number.
12095 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12097 * btrace.c (ftrace_new_function, ftrace_fixup_level,
12098 ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
12099 btrace_insn_next, btrace_insn_prev): Remove references to
12100 btrace_thread_info::flow.
12101 * btrace.h (struct btrace_function): Remove FLOW.
12103 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12105 * btrace.c (ftrace_find_call_by_number): New function.
12106 (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
12107 ftrace_get_caller, ftrace_find_call, ftrace_new_return,
12108 ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
12109 ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
12111 * btrace.h (struct btrace_function): Turn UP into an index.
12112 * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
12114 * record-btrace.c (record_btrace_frame_unwind_stop_reason,
12115 record_btrace_frame_prev_register, record_btrace_frame_sniffer,
12116 record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
12118 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12120 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
12121 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
12122 ftrace_update_function, ftrace_compute_global_level_offset,
12123 btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
12124 btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
12125 btrace_insn_end, btrace_is_empty): Remove references to
12126 btrace_thread_info::begin and btrace_thread_info::end.
12127 * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
12128 (struct btrace_thread_info) <functions>: Adjust comment.
12129 * record-btrace.c (record_btrace_start_replaying): Remove reference to
12130 btrace_thread_info::begin.
12132 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12134 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
12135 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
12136 ftrace_update_function): Remove arguments that implicitly were always
12138 (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
12139 Don't pass BTINFO->END.
12141 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12143 * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
12144 btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
12145 btrace_find_insn_by_number): Replace function segment pointer with
12147 (btrace_insn_cmp): Simplify.
12148 * btrace.h: (struct btrace_insn_iterator) Rename index to
12149 insn_index. Replace function segment pointer with index into function
12151 * record-btrace.c (record_btrace_call_history): Replace function
12152 segment pointer use with index.
12153 (record_btrace_frame_sniffer): Retrieve function call segment through
12155 (record_btrace_set_replay): Remove defunc't safety check.
12157 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12159 * btrace.c (btrace_ends_with_single_insn): New function.
12160 (btrace_call_get, btrace_call_number, btrace_call_begin,
12161 btrace_call_end, btrace_call_next, btrace_call_prev,
12162 btrace_find_call_by_number): Use index into call segment vector
12163 instead of pointer.
12164 (btrace_call_cmp): Simplify.
12165 * btrace.h (struct btrace_call_iterator): Replace function call segment
12166 pointer with index into vector.
12167 * record-btrace.c (record_btrace_call_history): Use index instead of
12170 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12172 * btrace.c (btrace_insn_begin, btrace_insn_end,
12173 btrace_find_insn_by_number): Add btinfo to iterator.
12174 * btrace.h (struct btrace_insn_iterator): Add btinfo.
12176 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12178 * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
12179 and save pointers directly.
12180 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
12181 ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
12182 ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for
12183 changed signature of functions.
12184 (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
12185 (btrace_fetch): Remove code that adds btrace_function pointers to
12186 vector of btrace_functions.
12187 (btrace_clear): Simplify freeing vector of btrace_functions.
12189 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12191 * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
12192 Replace VEC_* with std::vector functions.
12193 * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
12194 (struct btrace_thread_info)<functions>: Change type to std::vector.
12196 2017-05-30 Simon Marchi <simon.marchi@ericsson.com>
12198 * NEWS (Changes in GDB 8.0): Remove extra empty line. Move
12199 "Removed targets and native configurations" up. Merge duplicate
12200 "New commands" sub-sections. Add "New options" sub-sections.
12202 2017-05-26 Alan Hayward <alan.hayward@arm.com>
12204 * defs.h (copy_integer_to_size): New declaration.
12205 * findvar.c (copy_integer_to_size): New function.
12206 (do_cint_test): New selftest function.
12207 (copy_integer_to_size_test): Likewise.
12208 (_initialize_findvar): Likewise.
12209 * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
12210 (mips_fbsd_collect_reg): Use raw_collect_integer.
12211 * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
12212 (mips64_fill_gregset): Use raw_collect_integer
12213 (mips64_fill_fpregset): Use raw_supply_integer.
12214 * regcache.c (regcache::raw_supply_integer): New function.
12215 (regcache::raw_collect_integer): Likewise.
12216 * regcache.h: (regcache::raw_supply_integer): New declaration.
12217 (regcache::raw_collect_integer): Likewise.
12219 2017-05-24 Yao Qi <yao.qi@linaro.org>
12221 * Makefile.in (SFILES): Add gdbarch-selftests.c.
12222 (COMMON_OBS): Add gdbarch-selftests.o.
12223 * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
12224 * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
12225 * gdbarch-selftests.c: New file.
12226 * regcache.h (regcache) <~regcache>: Mark it virtual if
12228 <raw_write>: Likewise.
12230 2017-05-24 Yao Qi <yao.qi@linaro.org>
12232 * regcache.c (current_regcache): Change it to
12233 regcache::current_regcache.
12234 (regcache_observer_target_changed): Update.
12235 (regcache_thread_ptid_changed): Make it a regcache static
12237 (regcache_thread_ptid_changed): Update.
12238 (class regcache_access): New.
12239 (current_regcache_test): Update.
12240 (_initialize_regcache): Update.
12241 * regcache.h: Include forward_list.
12242 (regcache): Declare regcache_thread_ptid_changed and declare
12243 registers_changed_ptid as friend.
12245 2017-05-24 Yao Qi <yao.qi@linaro.org>
12247 * i387-tdep.c (i387_register_to_value): Use register_size
12248 instead of TYPE_LENGTH.
12249 * m68k-tdep.c (m68k_register_to_value): Likewise.
12251 2017-05-24 Yao Qi <yao.qi@linaro.org>
12253 * i387-tdep.c (i387_convert_register_p): Return false if type
12254 code isn't TYPE_CODE_FLT.
12256 2017-05-24 Yao Qi <yao.qi@linaro.org>
12258 * alpha-tdep.c (alpha_convert_register_p): Return true if type
12260 (alpha_register_to_value): Remove type length check.
12261 (alpha_value_to_register): Likewise.
12263 2017-05-24 Yao Qi <yao.qi@linaro.org>
12265 * ia64-tdep.c (ia64_convert_register_p): Check type's code is
12268 2017-05-24 Yao Qi <yao.qi@linaro.org>
12270 * m68k-tdep.c (m68k_convert_register_p): Check type's code is
12271 TYPE_CODE_FLT or not.
12273 2017-05-24 Yao Qi <yao.qi@linaro.org>
12275 * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
12276 * avr-tdep.c (avr_gdbarch_init): Likewise.
12277 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12278 * cris-tdep.c (cris_gdbarch_init): Likewise.
12279 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
12280 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12281 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12282 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
12283 * mep-tdep.c (mep_gdbarch_init): Likewise.
12284 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12285 * mips-tdep.c (mips_gdbarch_init): Likewise.
12286 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
12287 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12288 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
12289 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12290 * v850-tdep.c (v850_gdbarch_init): Likewise.
12292 2017-05-24 Yao Qi <yao.qi@linaro.org>
12294 * selftest-arch.c (tests_with_arch): Call registers_changed
12295 and reinit_frame_cache.
12296 * selftest.c (run_self_tests): Likewise.
12298 2017-05-24 Yao Qi <yao.qi@linaro.org>
12300 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.
12301 (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn.
12303 2017-05-24 Yao Qi <yao.qi@linaro.org>
12305 * rl78-tdep.c (rl78_gdbarch_init): Don't call
12306 set_gdbarch_print_insn.
12308 2017-05-24 Yao Qi <yao.qi@linaro.org>
12310 * h8300-tdep.c (h8300_gdbarch_init): Don't call
12311 set_gdbarch_print_insn.
12313 2017-05-24 Yao Qi <yao.qi@linaro.org>
12315 * alpha-tdep.c (alpha_gdbarch_init): Don't call
12316 set_gdbarch_print_insn.
12317 * arc-tdep.c (arc_gdbarch_init): Likewise.
12318 * arch-utils.c: include dis-asm.h.
12319 (default_print_insn): New function.
12320 * arch-utils.h (default_print_insn): Declare.
12321 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
12322 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12323 * cris-tdep.c (cris_delayed_get_disassembler): Remove.
12324 (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
12325 * frv-tdep.c (frv_gdbarch_init): Likewise.
12326 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
12327 * gdbarch.sh (print_insn): Use default_print_insn.
12328 * gdbarch.c: Regenerated.
12329 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12330 * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
12331 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12332 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
12333 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12334 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
12335 (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
12336 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
12337 * m88k-tdep.c (m88k_gdbarch_init): Likewise.
12338 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12339 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
12340 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12341 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
12342 * mt-tdep.c (mt_gdbarch_init): Likewise.
12343 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
12344 * nios2-tdep.c (nios2_print_insn): Remove.
12345 (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
12346 * rx-tdep.c (rx_gdbarch_init): Likewise.
12347 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12348 * score-tdep.c (score_print_insn): Remove.
12349 (score_gdbarch_init): Don't call set_gdbarch_print_insn.
12350 * sh-tdep.c (sh_gdbarch_init): Likewise.
12351 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12352 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12353 * tic6x-tdep.c (tic6x_print_insn): Remove.
12354 (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
12355 * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
12356 * v850-tdep.c (v850_gdbarch_init): Likewise.
12357 * vax-tdep.c (vax_gdbarch_init): Likewise.
12358 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
12359 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
12361 2017-05-23 John Baldwin <jhb@FreeBSD.org>
12363 * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
12364 (MIPS_FP0_REGNUM): Remove.
12365 (MIPS_FSR_REGNUM): Remove.
12366 (mips_fbsd_supply_fpregs): Use mips_regnum.
12367 (mips_fbsd_supply_gregs): Likewise.
12368 (mips_fbsd_collect_fpregs): Likewise.
12369 (mips_fbsd_collect_gregs): Likewise.
12371 2017-05-23 John Baldwin <jhb@FreeBSD.org>
12373 * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
12374 (getpfpregs_supplies): New function.
12375 (mips_fbsd_fetch_inferior_registers): Remove early exit and use
12376 getfpregs_supplies.
12377 (mips_fbsd_store_inferior_registers): Likewise.
12379 2017-05-22 Pedro Alves <palves@redhat.com>
12381 * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
12384 2017-05-22 Alan Hayward <alan.hayward@arm.com>
12386 * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
12387 (store_register): Likewise.
12388 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
12389 (get_decimal_float_return_value): Likewise.
12390 (do_ppc_sysv_return_value): Likewise.
12391 (ppc64_sysv_abi_push_integer): Likewise.
12392 (ppc64_sysv_abi_push_freg): Likewise.
12393 (ppc64_sysv_abi_return_value_base): Likewise.
12394 (ppc64_sysv_abi_return_value): Likewise.
12395 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
12396 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
12397 * rs6000-nat.c: Likewise.
12398 * rs6000-tdep.c (rs6000_register_to_value): Likewise.
12399 (rs6000_value_to_register): Likewise.
12400 * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
12402 2017-05-21 Tom Tromey <tom@tromey.com>
12405 * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
12406 arrays as "[T]", not "[T; ]".
12408 2017-05-19 Tom Tromey <tom@tromey.com>
12411 * rust-lang.c (exp_descriptor_rust): New function.
12412 (rust_language_defn): Use it.
12413 * p-lang.c (pascal_language_defn): Update.
12414 * opencl-lang.c (opencl_language_defn): Update.
12415 * objc-lang.c (objc_language_defn): Update.
12416 * m2-lang.c (m2_language_defn): Update.
12417 * language.h (struct language_defn)
12418 <la_watch_location_expression>: New member.
12419 * language.c (unknown_language_defn, auto_language_defn)
12420 (local_language_defn): Update.
12421 * go-lang.c (go_language_defn): Update.
12422 * f-lang.c (f_language_defn): Update.
12423 * d-lang.c (d_language_defn): Update.
12424 * c-lang.h (c_watch_location_expression): Declare.
12425 * c-lang.c (c_watch_location_expression): New function.
12426 (c_language_defn, cplus_language_defn, asm_language_defn)
12427 (minimal_language_defn): Use it.
12428 * breakpoint.c (watch_command_1): Call
12429 la_watch_location_expression.
12430 * ada-lang.c (ada_language_defn): Update.
12432 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12435 * gdb_curses.h (NOMACROS): Define.
12436 (NCURSES_NOMACROS): Define.
12438 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12441 * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
12443 * tui/tui-wingeneral.c (box_win): Likewise.
12444 * tui/tui-winsource.c (tui_erase_source_content): Likewise.
12445 (tui_show_source_line): Likewise.
12446 (tui_show_exec_info_content): Likewise.
12448 2017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
12450 * sparc-tdep.c (sparc_structure_return_p)
12451 (sparc_arg_on_registers_p): New functions.
12452 (sparc32_store_arguments): Use them.
12453 * sparc64-tdep.c (sparc64_16_byte_align_p)
12454 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
12455 Handle TYPE_CODE_ARRAY.
12457 2017-05-17 Yao Qi <yao.qi@linaro.org>
12459 * cli/cli-decode.c (add_alias_cmd): New function.
12460 * command.h (add_alias_cmd): Declare.
12461 * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
12462 instead call add_alias_cmd.
12464 2017-05-17 Pedro Alves <palves@redhat.com>
12466 * Makefile.in (nat_extra_makefile_frag): Rename to ...
12467 (nat_makefile_frag): ... this. All references updated.
12468 * configure.ac: Likewise.
12469 * configure.nat: Likewise. Enhance comments.
12470 * configure: Regenerate.
12472 2017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12474 * procfs.c (procfs_create_inferior): Change prototype to match
12477 2017-05-13 Eli Zaretskii <eliz@gnu.org>
12479 * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
12480 C++ compiler warning.
12482 2017-05-12 Tom Tromey <tom@tromey.com>
12485 * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
12486 recurse, just call value_struct_elt directly.
12488 2017-05-12 Tom Tromey <tom@tromey.com>
12490 * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
12491 OP_RUST_ARRAY>: Fix.
12493 2017-05-12 Tom Tromey <tom@tromey.com>
12495 * rust-lang.c (rust_print_subexp): Replace "return" with "break".
12497 2017-05-09 Yao Qi <yao.qi@linaro.org>
12499 * regcache.c: Include <forward_list>.
12500 (struct regcache_list): Remove.
12501 (current_regcache): Update.
12502 (get_thread_arch_aspace_regcache): Update for std::forward_list.
12503 (regcache_thread_ptid_changed): Likewise.
12504 (registers_changed_ptid): Likewise.
12505 (current_regcache_size): Likewise.
12507 2017-05-09 Yao Qi <yao.qi@linaro.org>
12509 * regcache.c [GDB_SELF_TEST]: Include selftest.h.
12510 (current_regcache_size): New function.
12511 (current_regcache_test): New function.
12512 (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
12514 2017-05-08 Alan Hayward <alan.hayward@arm.com>
12516 * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
12517 (print_gp_register_row): Use get_frame_register_value.
12519 2017-05-08 Alan Hayward <alan.hayward@arm.com>
12521 * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
12522 (mips_supply_fpregset): Likewise.
12523 (mips64_supply_gregset): Likewise.
12525 2017-05-08 Alan Hayward <alan.hayward@arm.com>
12527 * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
12528 regcache->raw_supply_zeroed.
12530 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
12532 * configure.nat: Rearrange 'case' statements to match
12535 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
12537 * Makefile.in: Remove "@host_makefile_frag@". Add variables
12538 NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
12539 NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
12540 "@nat_extra_makefile_frag@".
12541 (Makefile): Remove dependency on "@frags@".
12542 ($(GNULIB_BUILDDIR)/Makefile): Likewise.
12543 (data-directory/Makefile): Likewise.
12544 * config/aarch64/linux.mh: Deleted; moved contents to
12545 "gdb/configure.nat".
12546 * config/alpha/alpha-linux.mh: Likewise.
12547 * config/alpha/nbsd.mh: Likewise.
12548 * config/arm/linux.mh: Likewise.
12549 * config/arm/nbsdelf.mh: Likewise.
12550 * config/i386/cygwin.mh: Likewise.
12551 * config/i386/cygwin64.mh: Likewise.
12552 * config/i386/darwin.mh: Likewise.
12553 * config/i386/fbsd.mh: Likewise.
12554 * config/i386/fbsd64.mh: Likewise.
12555 * config/i386/go32.mh: Likewise.
12556 * config/i386/i386gnu.mh: Likewise.
12557 * config/i386/i386sol2.mh: Likewise.
12558 * config/i386/linux.mh: Likewise.
12559 * config/i386/linux64.mh: Likewise.
12560 * config/i386/mingw.mh: Likewise.
12561 * config/i386/mingw64.mh: Likewise.
12562 * config/i386/nbsd64.mh: Likewise.
12563 * config/i386/nbsdelf.mh: Likewise.
12564 * config/i386/nto.mh: Likewise.
12565 * config/i386/obsd.mh: Likewise.
12566 * config/i386/obsd64.mh: Likewise.
12567 * config/i386/sol2-64.mh: Likewise.
12568 * config/ia64/linux.mh: Likewise.
12569 * config/m32r/linux.mh: Likewise.
12570 * config/m68k/linux.mh: Likewise.
12571 * config/m68k/nbsdelf.mh: Likewise.
12572 * config/m68k/obsd.mh: Likewise.
12573 * config/m88k/obsd.mh: Likewise.
12574 * config/mips/fbsd.mh: Likewise.
12575 * config/mips/linux.mh: Likewise.
12576 * config/mips/nbsd.mh: Likewise.
12577 * config/mips/obsd64.mh: Likewise.
12578 * config/pa/linux.mh: Likewise.
12579 * config/pa/nbsd.mh: Likewise.
12580 * config/pa/obsd.mh: Likewise.
12581 * config/powerpc/aix.mh: Likewise.
12582 * config/powerpc/fbsd.mh: Likewise.
12583 * config/powerpc/linux.mh: Likewise.
12584 * config/powerpc/nbsd.mh: Likewise.
12585 * config/powerpc/obsd.mh: Likewise.
12586 * config/powerpc/ppc64-linux.mh: Likewise.
12587 * config/powerpc/spu-linux.mh: Likewise.
12588 * config/s390/linux.mh: Likewise.
12589 * config/sh/nbsd.mh: Likewise.
12590 * config/sparc/fbsd.mh: Likewise.
12591 * config/sparc/linux.mh: Likewise.
12592 * config/sparc/linux64.mh: Likewise.
12593 * config/sparc/nbsd64.mh: Likewise.
12594 * config/sparc/nbsdelf.mh: Likewise.
12595 * config/sparc/obsd64.mh: Likewise.
12596 * config/sparc/sol2.mh: Likewise.
12597 * config/tilegx/linux.mh: Likewise.
12598 * config/vax/nbsdelf.mh: Likewise.
12599 * config/vax/obsd.mh: Likewise.
12600 * config/xtensa/linux.mh: Likewise.
12601 * config/i386/i386gnu.mn: New file, with excerpts from
12602 "config/i386/i386gnu.mh".
12603 * configure: Regenerate.
12604 * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
12605 *.mh files under "gdb/config".
12606 * configure.nat: New file, with contents from the
12607 "gdb/config/*/*.mh" files.
12609 2017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
12611 * btrace.c (btrace_clear): Free insn vector.
12613 2017-05-05 Pedro Alves <palves@redhat.com>
12615 * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
12616 * configure: Regenerate.
12618 2017-05-04 Pedro Alves <palves@redhat.com>
12620 * Makefile.in (SFILES): Add progspace-and-thread.c.
12621 (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
12622 (COMMON_OBS): Add progspace-and-thread.o.
12623 * breakpoint.c: Include "progspace-and-thread.h".
12624 (update_inserted_breakpoint_locations)
12625 (insert_breakpoint_locations, create_longjmp_master_breakpoint):
12626 Use scoped_restore_current_pspace_and_thread.
12627 (create_std_terminate_master_breakpoint): Use
12628 scoped_restore_current_program_space.
12629 (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
12630 (print_breakpoint_location): Use
12631 scoped_restore_current_program_space.
12632 (bp_loc_is_permanent): Use
12633 scoped_restore_current_pspace_and_thread.
12634 (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
12635 (download_tracepoint_locations): Use
12636 scoped_restore_current_pspace_and_thread.
12637 (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
12638 * exec.c (exec_close_1): Use scoped_restore_current_program_space.
12639 (enum step_over_calls_kind): Moved from inferior.h.
12640 (class scoped_restore_current_thread): New class.
12641 * gdbthread.h (make_cleanup_restore_current_thread): Delete
12643 (scoped_restore_current_thread): New class.
12644 * infcmd.c: Include "common/gdb_optional.h".
12645 (continue_1, proceed_after_attach): Use
12646 scoped_restore_current_thread.
12647 (notice_new_inferior): Use scoped_restore_current_thread.
12648 * inferior.c: Include "progspace-and-thread.h".
12649 (restore_inferior, save_current_inferior): Delete.
12650 (add_inferior_command, clone_inferior_command): Use
12651 scoped_restore_current_pspace_and_thread.
12652 * inferior.h (scoped_restore_current_inferior): New class.
12653 * infrun.c: Include "progspace-and-thread.h" and
12654 "common/gdb_optional.h".
12655 (follow_fork_inferior): Use
12656 scoped_restore_current_pspace_and_thread.
12657 (scoped_restore_exited_inferior): New class.
12658 (handle_vfork_child_exec_or_exit): Use
12659 scoped_restore_exited_inferior,
12660 scoped_restore_current_pspace_and_thread,
12661 scoped_restore_current_thread and scoped_restore.
12662 (fetch_inferior_event): Use scoped_restore_current_thread.
12663 * linespec.c (decode_line_full, decode_line_1): Use
12664 scoped_restore_current_program_space.
12665 * mi/mi-main.c: Include "progspace-and-thread.h".
12666 (exec_continue): Use scoped_restore_current_thread.
12667 (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
12668 (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
12669 * proc-service.c (ps_pglobal_lookup): Use
12670 scoped_restore_current_program_space.
12671 * progspace-and-thread.c: New file.
12672 * progspace-and-thread.h: New file.
12673 * progspace.c (release_program_space, clone_program_space): Use
12674 scoped_restore_current_program_space.
12675 (restore_program_space, save_current_program_space)
12676 (save_current_space_and_thread): Delete.
12677 (switch_to_program_space_and_thread): Moved to
12678 progspace-and-thread.c.
12679 * progspace.h (save_current_program_space)
12680 (save_current_space_and_thread): Delete declarations.
12681 (scoped_restore_current_program_space): New class.
12682 * remote.c (remote_btrace_maybe_reopen): Use
12683 scoped_restore_current_thread.
12684 * symtab.c: Include "progspace-and-thread.h".
12685 (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
12686 * thread.c (print_thread_info_1): Use
12687 scoped_restore_current_thread.
12688 (struct current_thread_cleanup): Delete.
12689 (do_restore_current_thread_cleanup)
12690 (restore_current_thread_cleanup_dtor): Rename/convert both to ...
12691 (scoped_restore_current_thread::~scoped_restore_current_thread):
12693 (make_cleanup_restore_current_thread): Rename/convert to ...
12694 (scoped_restore_current_thread::scoped_restore_current_thread):
12696 (thread_apply_all_command): Use scoped_restore_current_thread.
12697 (thread_apply_command): Use scoped_restore_current_thread.
12698 * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
12699 * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
12701 2017-05-04 Pedro Alves <palves@redhat.com>
12703 * thread.c (make_cleanup_restore_current_thread): Move
12704 find_thread_ptid call before the is_stopped call. Assert that the
12705 thread is found. Replace is_stopped call by checking the thread's
12706 state directly. Remove unnecessary NULL-thread check.
12708 2017-05-04 Pedro Alves <palves@redhat.com>
12710 * corelow.c (thread_section_name): New class.
12711 (get_core_register_section, get_core_siginfo): Use it.
12713 2017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
12715 * corelow.c (sniff_core_bfd): Remove extra semicolon.
12716 (get_core_register_section): Remove xfree of NULL pointer.
12718 2017-05-03 Alan Hayward <alan.hayward@arm.com>
12720 * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed.
12721 * regcache.c (regcache::raw_supply_zeroed): New function.
12722 * regcache.h (regcache::raw_supply_zeroed): New declaration.
12724 2017-05-03 Simon Marchi <simon.marchi@ericsson.com>
12726 * gdbarch.sh: Remove commented out definition of
12728 * gdbarch.h: Re-generate.
12730 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
12732 * configure: Regenerate.
12734 2017-05-02 Simon Marchi <simon.marchi@ericsson.com>
12736 * solib-target.c (solib_target_relocate_section_addresses):
12737 Remove num_section_bases, num_bases, segment_bases variables.
12739 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
12741 * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove.
12743 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
12745 * solib-target.c: Include <vector>
12746 (struct lm_info_target) <~lm_info_target>: Remove.
12747 <segment_bases, section_bases>: Change type to
12748 std::vector<CORE_ADDR>.
12749 (library_list_start_segment, library_list_start_section,
12750 library_list_end_library,
12751 solib_target_relocate_section_addresses): Adjust.
12753 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
12755 * gdbarch.sh (software_single_step): Change return type to
12756 std::vector<CORE_ADDR>.
12757 * gdbarch.c, gdbarch.h: Re-generate.
12758 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
12760 (arm_deal_with_atomic_sequence_raw): Adjust.
12761 (thumb_get_next_pcs_raw): Adjust.
12762 (arm_get_next_pcs_raw): Adjust.
12763 (arm_get_next_pcs): Adjust.
12764 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust.
12765 * aarch64-tdep.c (aarch64_software_single_step): Adjust.
12766 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust.
12767 (alpha_software_single_step): Adjust.
12768 * alpha-tdep.h (alpha_software_single_step): Adjust.
12769 * arm-linux-tdep.c (arm_linux_software_single_step): Adjust.
12770 * arm-tdep.c (arm_software_single_step): Adjust.
12771 (arm_breakpoint_kind_from_current_state): Adjust.
12772 * arm-tdep.h (arm_software_single_step): Adjust.
12773 * breakpoint.c (insert_single_step_breakpoint): Adjust.
12774 * cris-tdep.c (cris_software_single_step): Adjust.
12775 * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust.
12776 (micromips_deal_with_atomic_sequence): Adjust.
12777 (deal_with_atomic_sequence): Adjust.
12778 (mips_software_single_step): Adjust.
12779 * mips-tdep.h (mips_software_single_step): Adjust.
12780 * moxie-tdep.c (moxie_software_single_step): Adjust.
12781 * nios2-tdep.c (nios2_software_single_step): Adjust.
12782 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust.
12783 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
12784 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
12785 * s390-linux-tdep.c (s390_software_single_step): Adjust.
12786 * sparc-tdep.c (sparc_software_single_step): Adjust.
12787 * spu-tdep.c (spu_software_single_step): Adjust.
12788 * tic6x-tdep.c (tic6x_software_single_step): Adjust.
12790 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
12792 * gdbarch.sh: Use semi-colon as field separator instead of colon.
12793 * gdbarch.h: Re-generate.
12795 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
12797 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
12798 (SUBDIR_PYTHON_SRCS): Add py-instruction.c.
12799 * python/py-instruction.c, python/py-instruction.h: New file.
12800 * python/py-record.c: Add py-instruction.h include.
12801 (gdbpy_initialize_record): Make gdb.Instruction a super class of
12802 gdb.RecordInstruction.
12803 * python/python-internal.h: Add gdbpy_initialize_instruction
12805 * python/python.c (do_start_initialization): Add
12806 gdbpy_initialize_instruction.
12808 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
12810 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
12812 (btrace_func_from_recpy_func): New function.
12813 (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
12814 (btpy_call_level, btpy_call_symbol, btpy_call_instructions,
12815 btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
12816 (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
12817 recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
12818 Also, use new helper functions.
12819 (btpy_list_item): Use new helper functions.
12820 (recpy_bt_function_call_history): Use new type name.
12821 (btpy_call_getset): Remove.
12822 (gdbpy_initialize_btrace): Remove code to initialize
12823 gdb.BtraceFunctionCall.
12824 * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
12825 recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
12826 recpy_bt_func_prev, recpy_bt_func_next): New export.
12827 * python/py-record.c (recpy_func_type): New static object.
12828 (recpy_func_new, recpy_func_level, recpy_func_symbol,
12829 recpy_func_instructions, recpy_func_up, recpy_func_prev,
12830 recpy_func_next): New function.
12831 (recpy_element_hash, recpy_element_richcompare): Updated comment.
12832 (recpy_func_getset): New static object.
12833 (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
12834 * python/py-record.h (recpy_func_type, recpy_func_new): New export.
12836 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
12838 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove.
12839 (btpy_object, btpy_insn_type, btpy_new): Remove.
12840 (btpy_list_object): Use gdb.RecordInstruction type instead of
12841 gdb.BtraceInstruction type.
12842 (btrace_insn_from_recpy_insn): New function.
12843 (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of
12845 (btpy_call_new, btpy_list_item): Do not use btpy_new anymore.
12846 (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol,
12847 btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling,
12848 btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object
12849 instead of btpy_object.
12850 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
12851 btpy_insn_data, btpy_insn_decode): Rename to ...
12852 (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size,
12853 recpy_bt_insn_is_speculative, recpy_bt_insn_data,
12854 recpy_bt_insn_decode): This. Also, use new helper functions.
12855 (btpy_list_position, recpy_bt_goto): Use recpy_element_object and
12857 (btpy_insn_getset): Remove.
12858 (gdbpy_initialize_btrace): Remove code to initialize
12859 gdb.BtraceInstruction. Use recpy_element_object.
12860 * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal,
12861 recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded,
12862 recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export.
12863 * python/py-record.c (recpy_insn_type): New static object.
12864 (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data,
12865 recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative,
12866 recpy_element_number, recpy_element_hash, recpy_element_richcompare):
12868 (recpy_insn_getset): New static object.
12869 (gdbpy_initialize_record): Initialize gdb.RecordInstruction.
12870 * python/py-record.h (recpy_element_object): New typedef.
12871 (recpy_insn_type, recpy_insn_new): New export.
12873 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
12875 * py-record-btrace.c (btpy_insn_new): Removed.
12876 (btpy_insn_or_gap_new): New function.
12877 (btpy_insn_error): Removed.
12878 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
12879 btpy_insn_data, btpy_insn_decode): Remove code path for gaps.
12880 (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call
12881 btpy_insn_or_gap_new instead of btpy_insn_new.
12882 (btpy_insn_getset): Remove btpy_insn_error.
12883 * py-record.c (recpy_gap_type): New static object.
12884 (recpy_gap_object): New typedef.
12885 (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code,
12886 recpy_gap_reason_string): New function.
12887 (recpy_gap_getset): New static object.
12888 (gdbpy_initialize_record): Initialize gdb.RecordGap type.
12889 * py-record.h (recpy_gap_new): New export.
12891 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
12893 * python/py-record.c (recpy_ptid): Remove.
12894 (recpy_record_getset): Remove recpy_ptid.
12896 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
12898 * btrace.c (btrace_fetch): Set inferior_ptid.
12899 * python/py-record-btrace.c: Add "py-record.h" include.
12900 (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin,
12901 recpy_bt_end, recpy_bt_instruction_history,
12902 recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored
12903 in gdb.Record object instead of current ptid.
12904 * python/py-record.c: Include new "py-record.h" file.
12905 (recpy_record_object): Moved to py-record.h.
12906 * python/py-record.h: New file.
12908 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
12910 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
12911 BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
12914 2017-05-01 Joel Brobecker <brobecker@adacore.com>
12916 * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to
12917 the past maintainers section.
12919 2017-04-28 Yao Qi <yao.qi@linaro.org>
12921 * infcmd.c (get_return_value): Use regcache ctor, and remove
12924 2017-04-28 Yao Qi <yao.qi@linaro.org>
12925 Pedro Alves <palves@redhat.com>
12927 * regcache.c (regcache::regcache): New tag dispatch ctor.
12928 (do_cooked_read): Moved above.
12929 (regcache_dup): Use the tag dispatch ctor..
12930 * regcache.h (regcache): Declare ctor, delete copy ctor and
12931 assignment operator, remove friend regcache_dup.
12933 2017-04-28 Yao Qi <yao.qi@linaro.org>
12935 * regcache.c (regcache_dup): Assert !src->m_readonly_p and
12936 call method save instead of regcache_cpy.
12937 * regcache.h (struct regcache): Make regcache_dup a friend.
12939 2017-04-28 Yao Qi <yao.qi@linaro.org>
12941 * regcache.c (struct regcache): Move to regcache.h
12942 (regcache::arch): New method.
12943 (regcache_get_ptid): Update.
12944 (get_regcache_arch): Call arch method.
12945 (get_regcache_aspace): Call method aspace.
12946 (register_buffer): Change it to method.
12947 (regcache_save): Change it to regcache::save.
12948 (regcache_restore): Likewise.
12949 (regcache_cpy_no_passthrough): Remove the declaration.
12950 (regcache_cpy): Call methods restore and cpy_no_passthrough.
12951 (regcache_cpy_no_passthrough): Change it to method
12952 cpy_no_passthrough.
12953 (regcache_register_status): Change it to method
12954 get_register_status.
12955 (regcache_invalidate): Change it to method invalidate.
12956 (regcache_thread_ptid_changed): Use methods ptid and set_ptid.
12957 (regcache_raw_update): Change it to method raw_update.
12958 (regcache_raw_read): Likewise.
12959 (regcache_raw_read_signed): Likewise.
12960 (regcache_raw_read_unsigned): Likewise.
12961 (regcache_raw_write_signed): Likewise.
12962 (regcache_raw_write_unsigned): Likewise.
12963 (regcache_cooked_read): Likewise.
12964 (regcache_cooked_read_value): Likewise.
12965 (regcache_cooked_read_signed): Likewise.
12966 (regcache_cooked_read_unsigned): Likewise.
12967 (regcache_cooked_write_signed): Likewise.
12968 (regcache_cooked_write_unsigned): Likewise.
12969 (regcache_raw_set_cached_value): Likewise.
12970 (regcache_raw_write): Likewise.
12971 (regcache_cooked_write): Likewise.
12972 (regcache_xfer_part): Likewise.
12973 (regcache_raw_read_part): Likewise.
12974 (regcache_raw_write_part): Likewise.
12975 (regcache_cooked_read_part): Likewise.
12976 (regcache_cooked_write_part): Likewise.
12977 (regcache_raw_supply): Likewise.
12978 (regcache_raw_collect): Likewise.
12979 (regcache_transfer_regset): Likewise.
12980 (regcache_supply_regset): Likewise.
12981 (regcache_collect_regset): Likewise.
12982 (regcache_debug_print_register): Likewise.
12983 (enum regcache_dump_what): Move it to regcache.h.
12984 (regcache_dump): Change it to method dump.
12985 * regcache.h (enum regcache_dump_what): New.
12986 (class regcache): New.
12987 * target.c (target_fetch_registers): Call method
12988 debug_print_register.
12989 (target_store_registers): Likewise.
12991 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12993 * windows-nat.c (struct lm_info_windows): Initialize field.
12994 (windows_make_so): Allocate lm_info_windows with new.
12995 (windows_free_so): Free lm_info_windows with delete.
12997 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12999 * solib-darwin.c (struct lm_info_darwin): Initialize field.
13000 (darwin_current_sos): Allocate lm_info_darwin with new, remove
13002 (darwin_free_so): Free lm_info_darwin with delete.
13004 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13006 * solib-svr4.h (struct lm_info_svr4): Initialize fields.
13007 <l_addr_p>: Change type to bool.
13008 * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
13009 (svr4_free_so): Free lm_info_svr4 with delete.
13010 (svr4_copy_library_list): Replace memcpy with call to copy
13012 (library_list_start_library, svr4_default_sos): Allocate
13013 lm_info_svr4 with new.
13015 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13017 * solib-target.c (struct lm_info_target): Add destructor,
13019 <name>: Change type to std::string.
13020 (library_list_start_library): Allocate lm_info_target with new.
13021 (solib_target_free_library_list): Free lm_info_target with
13023 (solib_target_current_sos): Adapt to std::string.
13024 (solib_target_free_so): Free lm_info_target with delete.
13026 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13028 * solib-frv.c (struct lm_info_frv): Add destructor, initialize
13030 (frv_current_sos): Allocate lm_info_frv with new.
13031 (frv_relocate_main_executable): Free lm_info_frv with delete,
13033 (frv_clear_solib, frv_free_so): Free lm_info_frv with delete.
13035 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13037 * solib-frv.c (struct lm_info_frv): Fix indentation.
13039 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13041 * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
13043 (dsbt_current_sos): Allocate lm_info_dsbt with new.
13044 (dsbt_relocate_main_executable): Free lm_info_dsbt with delete
13045 and allocate with new.
13046 (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
13048 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13050 * solib-aix.c (struct lm_info_aix): Initialize fields in-class.
13051 <filename, member_name>: Change type to std::string.
13052 (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
13053 (library_list_start_library): Allocate lm_info_aix with new.
13054 (solib_aix_free_library_list, solib_aix_free_so): Free with delete.
13055 (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
13056 with copy constructor.
13058 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13060 * solist.h (struct lm_info): Remove.
13061 (struct lm_info_base): New class.
13062 (struct so_list) <lm_info>: Change type to lm_info_base *.
13063 * nto-tdep.c (struct lm_info): Remove.
13065 * solib-aix.c (struct lm_info): Rename to ...
13066 (struct lm_info_aix): ... this. Extend lm_info_base.
13067 (lm_info_p): Rename to ...
13068 (lm_info_aix_p): ... this, and adjust.
13069 (solib_aix_new_lm_info, solib_aix_xfree_lm_info,
13070 solib_aix_parse_libraries, library_list_start_library,
13071 solib_aix_free_library_list, solib_aix_parse_libraries,
13072 solib_aix_get_library_list,
13073 solib_aix_relocate_section_addresses, solib_aix_free_so,
13074 solib_aix_get_section_offsets,
13075 solib_aix_solib_create_inferior_hook, solib_aix_current_sos):
13077 (struct solib_aix_inferior_data) <library_list>: Adjust.
13078 * solib-darwin.c (struct lm_info): Rename to ...
13079 (struct lm_info_darwin): ... this. Extend lm_info_base.
13080 (darwin_current_sos, darwin_relocate_section_addresses): Adjust.
13081 * solib-dsbt.c (struct lm_info): Rename to ...
13082 (struct lm_info_dsbt): ... this. Extend lm_info_base.
13083 (struct dsbt_info) <main_executable_lm_info): Adjust.
13084 (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so,
13085 dsbt_relocate_section_addresses): Adjust.
13086 * solib-frv.c (struct lm_info): Rename to ...
13087 (struct lm_info_frv): ... this. Extend lm_info_base.
13088 (main_executable_lm_info): Adjust.
13089 (frv_current_sos, frv_relocate_main_executable, frv_free_so,
13090 frv_relocate_section_addresses, frv_fdpic_find_global_pointer,
13091 find_canonical_descriptor_in_load_object,
13092 frv_fdpic_find_canonical_descriptor): Adjust.
13093 * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed
13095 (lm_info_read, lm_addr_check, svr4_keep_data_in_core,
13096 svr4_clear_so, svr4_copy_library_list,
13097 library_list_start_library, svr4_default_sos, svr4_read_so_list,
13098 svr4_current_sos, svr4_fetch_objfile_link_map,
13099 solist_update_incremental): Adjust.
13100 * solib-svr4.h (struct lm_info_svr4): Move here from
13102 * solib-target.c (struct lm_info): Rename to ...
13103 (struct lm_info_target): ... this. Extend lm_info_base.
13104 (lm_info_p): Rename to ...
13105 (lm_info_target_p): ... this.
13106 (solib_target_parse_libraries, library_list_start_segment,
13107 library_list_start_section, library_list_start_library,
13108 library_list_end_library, solib_target_free_library_list,
13109 solib_target_current_sos, solib_target_free_so,
13110 solib_target_relocate_section_addresses): Adjust.
13111 * windows-nat.c (struct lm_info): Rename to ...
13112 (struct lm_info_windows): ... this. Extend lm_info_base.
13113 (windows_make_so, handle_load_dll, handle_unload_dll,
13114 windows_xfer_shared_libraries): Adjust.
13116 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13118 * solib-darwin.c (struct darwin_so_list): Remove.
13119 (darwin_current_sos): Allocate an so_list object instead of a
13120 darwin_so_list, separately allocate an lm_info object.
13121 (darwin_free_so): Free lm_info.
13123 2017-04-28 John Baldwin <jhb@FreeBSD.org>
13125 * mips-tdep.c (print_gp_register_row): Replace printf_filtered
13126 with fprintf_filtered.
13128 2017-04-28 Yao Qi <yao.qi@linaro.org>
13130 * regcache.c (regcache::regcache): New function.
13131 (regcache::~regcache): New function.
13132 (regcache_xmalloc_1): Remove.
13133 (regcache_xmalloc): Call new regcache.
13134 (regcache_xfree): Call delete regcache.
13135 (get_thread_arch_aspace_regcache): Call new regcache.
13137 2017-04-28 Yao Qi <yao.qi@linaro.org>
13139 * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
13140 lwp instead of ptid_get_lwp.
13142 2017-04-28 Yao Qi <yao.qi@linaro.org>
13144 * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
13145 lwp_info instead of getting from inferior_ptid.
13147 2017-04-27 Keith Seitz <keiths@redhat.com>
13149 * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS)
13150 DIFFERENT_REFERENCE_TYPE_BADNESS): Remove.
13151 (CV_CONVERSION_BADNESS): Define.
13152 (rank_one_type): Remove overly restrictive rvalue reference
13154 Add cv-qualifier checks and subranks for type equality.
13155 * gdbtypes.h (REFERENCE_CONVERSION_RVALUE,
13156 REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS,
13157 CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare.
13159 2017-04-27 Simon Marchi <simon.marchi@ericsson.com>
13161 * python/py-inferior.c (inferior_to_inferior_object): Increment reference
13162 count when creating the object.
13164 2017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
13165 Ulrich Weigand <uweigand@de.ibm.com>
13167 * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
13168 entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
13170 (read_xcoff_symtab): Handle C_WEAKEXT storage class.
13171 (process_xcoff_symbol): Likewise.
13172 (scan_xcoff_symtab): Likewise.
13174 2017-04-26 Alan Hayward <alan.hayward@arm.com>
13176 * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned.
13177 (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer.
13178 (ia64_access_reg): Use get_frame_register_unsigned.
13179 (ia64_access_rse_reg): Likewise.
13180 (ia64_libunwind_frame_prev_register): Likewise.
13182 2017-04-26 Jiong Wang <jiong.wang@arm.com>
13184 * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op.
13185 * gdbarch.c: Regenerated.
13186 * gdbarch.h: Regenerated.
13187 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the
13188 visibility external.
13189 (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI
13190 between DW_CFA_lo_user and DW_CFA_high_user inclusive.
13191 (enum cfa_how_kind): Move to ...
13192 (struct dwarf2_frame_state_reg_info): Likewise.
13193 (struct dwarf2_frame_state): Likewise.
13194 * dwarf2-frame.h: ... here.
13195 (dwarf2_frame_state_alloc_regs): New declaration.
13196 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function.
13197 (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook.
13199 2017-04-26 Alan Hayward <alan.hayward@arm.com>
13201 * xtensa-tdep.c (xtensa_pseudo_register_read): Use
13202 regcache_raw_read_unsigned.
13203 (xtensa_pseudo_register_write): Likewise.
13205 2017-04-26 Alan Hayward <alan.hayward@arm.com>
13207 * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors.
13208 (nds32_pseudo_register_write): Likewise.
13210 2017-04-25 Yao Qi <yao.qi@linaro.org>
13212 * regcache.c (struct regcache) <readonly_p>: Change its type
13214 (regcache_xmalloc_1): Update parameter type and callers update.
13216 2017-04-25 Yao Qi <yao.qi@linaro.org>
13218 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
13219 set_gdbarch_wchar_bit.
13220 * arm-tdep.c (arm_gdbarch_init): Likewise.
13222 2017-04-25 Pedro Alves <palves@redhat.com>
13224 * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
13225 (BothAreRelocatable, memcopy, memmove): Don't define.
13226 * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
13229 2017-04-25 Pedro Alves <palves@redhat.com>
13231 * common/common-defs.h: Include "common/poison.h".
13232 * common/function-view.h: (Not, Or, Requires): Move to traits.h
13234 * common/poison.h: New file.
13235 * common/traits.h: Include <type_traits>.
13236 (Not, Or, Requires): New, moved from common/function-view.h.
13238 2017-04-25 Pedro Alves <palves@redhat.com>
13240 * breakpoint.h (struct breakpoint): In-class initialize all
13241 fields. Make boolean fields "bool".
13242 * breakpoint.c (init_raw_breakpoint_without_location): Remove
13243 memset call and initializations no longer necessary.
13245 2017-04-25 Pedro Alves <palves@redhat.com>
13247 * btrace.c (pt_btrace_insn_flags): Change parameter type to
13249 (pt_btrace_insn): New function.
13250 (ftrace_add_pt): Remove memset call and use pt_btrace_insn.
13252 2017-04-25 Pedro Alves <palves@redhat.com>
13254 * ada-lang.c (ada_catchpoint_location): Now a "class". Remove
13255 "base" field and inherit from "bp_location" instead. Add
13257 (allocate_location_exception): Use new non-default ctor.
13258 * breakpoint.c (get_first_locp_gte_addr): Remove memset call.
13259 (init_bp_location): Convert to ...
13260 (bp_location::bp_location): ... this new ctor, and remove memset
13262 (base_breakpoint_allocate_location): Use the new non-default ctor.
13263 * breakpoint.h (bp_location): Now a class. Declare default and
13264 non-default ctors. In-class initialize all members.
13265 (init_bp_location): Remove declaration.
13267 2017-04-25 Pedro Alves <palves@redhat.com>
13269 * common/enum-flags.h (enum_flags): Don't implement copy ctor and
13270 assignment operator.
13272 2017-04-24 Yao Qi <yao.qi@linaro.org>
13274 * doublest.c (convert_doublest_to_floatformat): Call
13275 floatformat_totalsize_bytes.
13277 2017-04-22 Tom Tromey <tom@tromey.com>
13279 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
13281 * stack.c (print_frame): Use ui_out_emit_list.
13282 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
13284 * mi/mi-main.c (print_one_inferior)
13285 (mi_cmd_data_list_register_names)
13286 (mi_cmd_data_list_register_values, mi_cmd_list_features)
13287 (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use
13289 * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list.
13290 (mi_output_solib_attribs): Use ui_out_emit_list,
13292 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list.
13293 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
13294 (mi_cmd_stack_list_args, list_args_or_locals): Use
13296 * disasm.c (do_assembly_only): Use ui_out_emit_list.
13297 * breakpoint.c (print_solib_event, output_thread_groups): Use
13300 2017-04-22 Tom Tromey <tom@tromey.com>
13302 * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple.
13303 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple.
13304 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple.
13306 2017-04-22 Tom Tromey <tom@tromey.com>
13308 * tracepoint.c (tvariables_info_1)
13309 (print_one_static_tracepoint_marker): Use ui_out_emit_tuple.
13311 2017-04-22 Tom Tromey <tom@tromey.com>
13313 * stack.c (print_frame_arg): Use ui_out_emit_tuple,
13314 annotate_arg_emitter.
13315 * breakpoint.c (print_mention_watchpoint)
13316 (print_mention_masked_watchpoint): Use ui_out_emit_tuple.
13317 * annotate.h (struct annotate_arg_emitter): New.
13319 2017-04-22 Tom Tromey <tom@tromey.com>
13321 * record-btrace.c (record_btrace_insn_history)
13322 (record_btrace_insn_history_range, record_btrace_call_history)
13323 (record_btrace_call_history_range): Use ui_out_emit_tuple.
13324 * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use
13326 * stack.c (print_frame_info): Use ui_out_emit_tuple.
13327 * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple.
13328 * skip.c (skip_info): Use ui_out_emit_tuple.
13329 * remote.c (show_remote_cmd): Use ui_out_emit_tuple.
13330 * progspace.c (print_program_space): Use ui_out_emit_tuple.
13331 * probe.c (info_probes_for_ops): Use ui_out_emit_tuple.
13332 * osdata.c (info_osdata): Use ui_out_emit_tuple.
13333 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
13335 * mi/mi-main.c (print_one_inferior, list_available_thread_groups)
13336 (output_register, mi_cmd_data_read_memory)
13337 (mi_cmd_data_read_memory_bytes, mi_load_progress)
13338 (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple.
13339 * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one):
13340 Use ui_out_emit_tuple.
13341 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use
13343 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
13344 (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple.
13345 * linux-thread-db.c (info_auto_load_libthread_db): Use
13347 * inferior.c (print_inferior): Use ui_out_emit_tuple.
13348 * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple.
13349 * disasm.c (do_mixed_source_and_assembly_deprecated)
13350 (do_mixed_source_and_assembly): Use ui_out_emit_tuple.
13351 * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple.
13352 * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple.
13353 * breakpoint.c (print_one_breakpoint_location)
13354 (print_one_breakpoint): Use ui_out_emit_tuple.
13355 * auto-load.c (print_script, info_auto_load_cmd): Use
13357 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple.
13359 2017-04-21 Simon Marchi <simon.marchi@ericsson.com>
13361 * thread.c (print_thread_info_1): Remove dead code.
13363 2017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
13365 * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
13367 * arm-tdep.c (selftests::arm_record_test): Likewise.
13369 2017-04-21 Yao Qi <yao.qi@linaro.org>
13371 * regcache.c (regcache_restore): Remove argument 2. Replace
13372 argument 3 with regcache. Get register status from
13373 src->register_status and get register contents from
13374 register_buffer (src, regnum).
13375 (regcache_cpy): Update.
13377 2017-04-19 Pedro Alves <palves@redhat.com>
13379 * gdbthread.h (thread): Add missing closing parenthesis in
13382 2017-04-19 Pedro Alves <palves@redhat.com>
13384 * common/refcounted-object.h: New file.
13385 * gdbthread.h: Include "common/refcounted-object.h".
13386 (thread_info): Inherit from refcounted_object and add comments.
13387 (thread_info::incref, thread_info::decref)
13388 (thread_info::m_refcount): Delete.
13389 (thread_info::deletable): Use the refcounted_object::refcount()
13391 * inferior.c (current_inferior_): Add comment.
13392 (set_current_inferior): Increment/decrement refcounts.
13393 (prune_inferiors, remove_inferior_command): Skip inferiors marked
13394 not-deletable instead of comparing with the current inferior.
13395 (initialize_inferiors): Increment the initial inferior's refcount.
13396 * inferior.h (struct inferior): Forward declare.
13397 Include "common/refcounted-object.h".
13398 (current_inferior, set_current_inferior): Move declaration to
13399 before struct inferior's definition, and fix comment.
13400 (inferior): Inherit from refcounted_object. Add comments.
13401 * thread.c (switch_to_thread_no_regs): Reference the thread's
13402 inferior pointer directly instead of doing a ptid lookup.
13403 (switch_to_no_thread): New function.
13404 (switch_to_thread(thread_info *)): New function, factored out
13406 (switch_to_thread(ptid_t)): ... this.
13407 (restore_current_thread): Delete.
13408 (current_thread_cleanup): Remove 'inf_id' and 'was_removable'
13409 fields, and add 'inf' field.
13410 (do_restore_current_thread_cleanup): Check whether old->inf is
13411 alive instead of looking up an inferior by ptid. Use
13412 switch_to_thread and switch_to_no_thread.
13413 (restore_current_thread_cleanup_dtor): Use old->inf directly
13414 instead of lookup up an inferior by id. Decref the inferior.
13415 Don't restore 'removable'.
13416 (make_cleanup_restore_current_thread): Same the inferior pointer
13417 in old, instead of the inferior number. Incref the inferior.
13418 Don't save/clear 'removable'.
13420 2017-04-19 Pedro Alves <palves@redhat.com>
13422 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13423 unittests/scoped_restore-selftests.c.
13424 (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o.
13425 * common/scoped_restore.h (scoped_restore_base): Make "class".
13426 (scoped_restore_base::release): New public method.
13427 (scoped_restore_base::scoped_restore_base): New protected ctor.
13428 (scoped_restore_base::m_saved_var): New protected field.
13429 (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the
13430 scoped_restore_base base class instead of m_saved_var directly.
13431 (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise.
13432 (scoped_restore_tmpl::scoped_restore_tmpl(const
13433 scoped_restore_tmpl<T>&)): Likewise.
13434 (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var
13436 (scoped_restore_tmpl::saved_var): New method.
13437 (scoped_restore_tmpl::m_saved_var): Delete.
13438 * inferior.h (inferior::detaching): Now a bool.
13439 * infrun.c (prepare_for_detach): Use a scoped_restore instead of a
13441 * unittests/scoped_restore-selftests.c: New file.
13443 2017-04-19 Pedro Alves <palves@redhat.com>
13445 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS):
13446 Re-sort in alphabetic order.
13448 2017-04-18 Pedro Alves <palves@redhat.com>
13450 * xml-support.c (obstack_xml_printf): Delete.
13451 * xml-support.h (obstack_xml_printf): Delete.
13453 2017-04-18 Pedro Alves <palves@redhat.com>
13455 * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse,
13456 vdebug, verror, body_text, start_element, end_element, name,
13457 user_data, set_is_xinclude, set_error, expat_parser>: New methods.
13458 <name, user_data, expat_parser, scopes, error, last_line, dtd_name,
13459 is_xinclude>: Make private and add m_ prefix.
13460 (gdb_xml_parser::body_text): New method, based on ...
13461 (gdb_xml_body_text): ... this. Adjust.
13462 (gdb_xml_parser::vdebug): New method, based on ...
13463 (gdb_xml_debug): ... this. Adjust.
13464 (gdb_xml_parser::verror): New method, based on ...
13465 (gdb_xml_error): ... this. Adjust.
13466 (gdb_xml_parser::start_element): New method, based on ...
13467 (gdb_xml_start_element): ... this. Adjust.
13468 (gdb_xml_start_element_wrapper): Defer to
13469 gdb_xml_parser::start_element and gdb_xml_parser::set_error.
13470 (gdb_xml_parser::end_element): New method, based on ...
13471 (gdb_xml_end_element_wrapper): ... this. Adjust.
13472 (gdb_xml_parser::~gdb_xml_parser): Adjust.
13473 (gdb_xml_parser::gdb_xml_parser): Adjust to field renames.
13474 (gdb_xml_parser::use_dtd): New method, based on ...
13475 (gdb_xml_use_dtd): ... this. Adjust.
13476 (gdb_xml_parser::parse): New method, based on ...
13477 (gdb_xml_parse): ... this. Adjust.
13478 (gdb_xml_parse_quick): Adjust to call the parser's parse method.
13479 (xinclude_start_include): Adjust to call the parser's name method.
13480 (xml_xinclude_default, xml_xinclude_start_doctype)
13481 (xml_xinclude_end_doctype): Adjust to call the parser's user_data
13483 (xml_process_xincludes): Adjust to call parser methods.
13484 * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete
13487 2017-04-18 Pedro Alves <palves@redhat.com>
13489 * tracefile-tfile.c (tfile_write_tdesc): Adjust to use
13490 gdb::optional<std::string>.
13491 * xml-support.c: Include <string>.
13492 (scope_level::scope_level(scope_level &&))
13493 (scope_level::~scope_level): Delete.
13494 (scope_level::body): Now a std::string.
13495 (gdb_xml_body_text, gdb_xml_end_element): Adjust.
13496 (xinclude_parsing_data::xinclude_parsing_data): Add 'output'
13498 (xinclude_parsing_data::~xinclude_parsing_data): Delete.
13499 (xinclude_parsing_data::output): Now a std::string reference.
13500 (xinclude_start_include): Adjust.
13501 (xml_xinclude_default): Adjust.
13502 (xml_process_xincludes): Add 'output' parameter, and return bool.
13503 * xml-support.h (xml_process_xincludes): Add 'output' parameter,
13505 * xml-tdesc.c: Include <unordered_map> and <string>.
13506 (tdesc_xml_cache): Delete.
13507 (tdesc_xml_cache_s): Delete.
13508 (xml_cache): Now an std::unordered_map.
13509 (tdesc_parse_xml): Adjust to use std::string and unordered_map.
13510 (target_fetch_description_xml): Change return type to
13511 gdb::optional<std::string>, and adjust.
13512 * xml-tdesc.h: Include "common/gdb_optional.h" and <string>.
13513 (target_fetch_description_xml): Change return type to
13514 gdb::optional<std::string>.
13516 2017-04-18 Pedro Alves <palves@redhat.com>
13518 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13519 unittests/optional-selftests.c.
13520 (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o.
13521 * unittests/optional-selftests.c: New file.
13522 * unittests/optional/assignment/1.cc: New file.
13523 * unittests/optional/assignment/2.cc: New file.
13524 * unittests/optional/assignment/3.cc: New file.
13525 * unittests/optional/assignment/4.cc: New file.
13526 * unittests/optional/assignment/5.cc: New file.
13527 * unittests/optional/assignment/6.cc: New file.
13528 * unittests/optional/assignment/7.cc: New file.
13529 * unittests/optional/cons/copy.cc: New file.
13530 * unittests/optional/cons/default.cc: New file.
13531 * unittests/optional/cons/move.cc: New file.
13532 * unittests/optional/cons/value.cc: New file.
13533 * unittests/optional/in_place.cc: New file.
13534 * unittests/optional/observers/1.cc: New file.
13535 * unittests/optional/observers/2.cc: New file.
13537 2017-04-18 Pedro Alves <palves@redhat.com>
13539 * common/gdb_optional.h: Include common/traits.h.
13540 (in_place_t): New type.
13541 (in_place): New constexpr variable.
13542 (optional::optional): Remove member initialization of
13544 (optional::optional(in_place_t...)): New constructor.
13545 (optional::~optional): Use reset.
13546 (optional::optional(const optional&)): New.
13547 (optional::optional(const optional&&)): New.
13548 (optional::optional(T &)): New.
13549 (optional::optional(T &&)): New.
13550 (operator::operator=(const optional &)): New.
13551 (operator::operator=(optional &&)): New.
13552 (operator::operator= (const T &))
13553 (operator::operator= (T &&))
13554 (operator::emplace (Args &&... args)): Return a T&. Use reset.
13555 (operator::reset): New.
13556 (operator::m_instantiated):: Add in-class initializer.
13557 * common/traits.h: Include <type_traits>.
13558 (struct And): New types.
13560 2017-04-18 Pedro Alves <palves@redhat.com>
13562 * xml-support.c: Include <vector>.
13563 (scope_level::scope_level(const gdb_xml_element *))
13564 (scope_level::scope_level(scope_level&&)): New.
13565 (scope_level::~scope_level): New.
13566 (scope_level_s): Delete.
13567 (gdb_xml_parser::scopes): Now a std::vector.
13568 (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
13570 (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
13571 scope cleanup code.
13572 (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
13573 of the scopes member. Use std::vector::emplace_back.
13575 2017-04-18 Pedro Alves <palves@redhat.com>
13577 * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude
13579 (gdb_xml_end_element): Change type of first parameter.
13580 (gdb_xml_cleanup): Rename to ...
13581 (gdb_xml_parser::~gdb_xml_parser): ... this.
13582 (gdb_xml_create_parser_and_cleanup): Delete with ...
13583 (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
13585 (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
13586 using gdb_xml_create_parser_and_cleanup.
13587 (xinclude_parsing_data): Add ctor/dtor.
13588 (xml_xinclude_cleanup): Delete.
13589 (xml_process_xincludes): Create a local xinclude_parsing_data
13590 instead of heap-allocating one. Create a local gdb_xml_parser
13591 instead of heap-allocating one with
13592 gdb_xml_create_parser_and_cleanup.
13594 2017-04-18 John Baldwin <jhb@FreeBSD.org>
13597 * fbsd-nat.c (resume_one_thread_cb): Remove.
13598 (resume_all_threads_cb): Remove.
13599 (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
13600 iterate_over_threads.
13602 2017-04-17 Joel Brobecker <brobecker@adacore.com>
13604 * NEWS: Create a new section for the next release branch.
13605 Rename the section of the current branch, now that it has
13608 2017-04-17 Joel Brobecker <brobecker@adacore.com>
13610 GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
13611 * version.in: Bump version to 8.0.50.DATE-git.
13613 2017-04-13 Sergio Durigan Junior <sergiodj@redhat.com>
13616 * windows-nat.c (windows_create_inferior): Declare 'allargs'
13617 independently of the host, and fix build breakage on Cygwin.
13619 2017-04-13 Pedro Alves <palves@redhat.com>
13621 * inferior.c (free_inferior): Convert to ...
13622 (inferior::~inferior): ... this dtor.
13623 (inferior::inferior): New ctor, factored out from ...
13624 (add_inferior_silent): ... here. Allocate the inferior with a new
13626 (delete_inferior): Call delete instead of free_inferior.
13627 * inferior.h (gdb_environ, continuation): Forward declare.
13628 (inferior): Now a class. Add in-class initialization to all
13629 members. Make boolean fields bool, except 'detaching'.
13630 (inferior::inferior): New explicit ctor.
13631 (inferior::~inferior): New.
13633 2017-04-13 Pedro Alves <palves@redhat.com>
13635 * inferior.c (init_inferior_list): Delete.
13636 * inferior.h (init_inferior_list): Delete.
13638 2017-04-13 Pedro Alves <palves@redhat.com>
13641 * gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
13642 (top level): Call it twice, with different thread sets.
13644 2017-04-13 Pedro Alves <palves@redhat.com>
13646 * thread.c: Include <algorithm>.
13647 (thread_array_cleanup): Delete.
13648 (scoped_inc_dec_ref): New class.
13649 (live_threads_count): New function.
13650 (set_thread_refcount): Delete.
13651 (tp_array_compar_ascending): Now a bool.
13652 (tp_array_compar): Convert to a std::sort comparison function.
13653 (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
13654 and live_threads_count.
13656 2017-04-13 Pedro Alves <palves@redhat.com>
13658 * infrun.c (follow_fork_inferior): Also switch the current
13661 2017-04-13 Pedro Alves <palves@redhat.com>
13663 * breakpoint.c (watch_command_1): Save watchpoint-frame info
13664 before calling create_internal_breakpoint.
13666 2017-04-13 Pedro Alves <palves@redhat.com>
13668 * fork-child.c (execv_argv): New class.
13669 (breakup_args): Refactored as ...
13670 (execv_argv::init_for_no_shell): .. this method of execv_argv.
13671 Copy arguments to storage and replace separators with NULL
13672 terminators in place.
13673 (escape_bang_in_quoted_argument): Adjust to return bool.
13674 (execv_argv::execv_argv): New ctor.
13675 (execv_argv::init_for_shell): New method, factored out from
13676 fork_inferior. Don't strdup strings into the vector.
13677 (fork_inferior): Eliminate "shell" local and use execv_argv. Use
13678 Remove free_vector_argv call.
13680 2017-04-13 Yao Qi <yao.qi@linaro.org>
13682 * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
13685 2017-04-13 Yao Qi <yao.qi@linaro.org>
13687 * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
13688 * rx-tdep.c (rx_gdbarch_init): Likewise.
13690 2017-04-13 Pedro Alves <palves@redhat.com>
13692 * breakpoint.h (struct breakpoint): Reindent.
13694 2017-04-13 Pedro Alves <palves@redhat.com>
13696 * breakpoint.c (bp_location): Rename to ...
13697 (bp_locations): ... this. All references updated.
13698 (bp_location_count): Rename to ...
13699 (bp_locations_count): ... this. All references updated.
13700 (bp_location_placed_address_before_address_max): Rename to ...
13701 (bp_locations_placed_address_before_address_max): ... this. All
13702 references updated.
13703 (bp_location_shadow_len_after_address_max): Rename to ...
13704 (bp_locations_shadow_len_after_address_max): ... this. All
13705 references updated.
13706 (bp_location_compare_addrs): Rename to ...
13707 (bp_locations_compare_addrs): ... this. All references updated.
13708 (bp_location_compare):Rename to ...
13709 (bp_locations_compare): ... this. All references updated.
13710 (bp_location_target_extensions_update): Rename to ...
13711 (bp_locations_target_extensions_update): ... this. All references
13714 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
13716 * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
13717 * common/common.m4: Check headers 'termios.h', 'termio.h' and
13719 * common/gdb_termios.h: New file, with parts of "terminal.h".
13720 * inflow.c: Include "gdb_termios.h".
13721 * ser-unix.c: Include "gdb_termios.h".
13722 * terminal.h: Move terminal-related defines to
13723 "common/gdb_termios.h".
13725 2017-04-12 Tom Tromey <tom@tromey.com>
13727 * probe.c (parse_probes): Update.
13728 * location.h (delete_event_location): Don't declare.
13729 (event_location_deleter::operator()): Update.
13730 * location.c (event_location_deleter::operator()): Rename from
13731 delete_event_location.
13732 * linespec.h (linespec_result) <location>: Change type to
13734 * linespec.c (canonicalize_linespec, event_location_to_sals)
13735 (decode_objc): Update.
13736 (linespec_result): Don't call delete_event_location.
13737 * breakpoint.c (create_breakpoints_sal)
13738 (bkpt_probe_create_sals_from_location)
13739 (strace_marker_create_sals_from_location): Update.
13741 2017-04-12 Tom Tromey <tom@tromey.com>
13743 * linespec.h (struct linespec_result): Add constructor and
13745 (init_linespec_result, destroy_linespec_result)
13746 (make_cleanup_destroy_linespec_result): Don't declare.
13747 * linespec.c (init_linespec_result): Remove.
13748 (linespec_result::~linespec_result): Rename from
13749 destroy_linespec_result. Update.
13750 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
13752 * breakpoint.c (create_breakpoint, break_range_command)
13753 (decode_location_default): Update.
13754 * ax-gdb.c (agent_command_1): Update.
13756 2017-04-12 Tom Tromey <tom@tromey.com>
13758 * remote.c (remote_download_tracepoint): Update.
13759 * python/py-breakpoint.c (bppy_get_location): Update.
13760 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
13761 (gdbscm_breakpoint_location): Update.
13762 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
13763 * breakpoint.h (struct breakpoint) <location, location_range_end>:
13764 Change type to event_location_up.
13765 * breakpoint.c (create_overlay_event_breakpoint)
13766 (create_longjmp_master_breakpoint)
13767 (create_std_terminate_master_breakpoint)
13768 (create_exception_master_breakpoint)
13769 (breakpoint_event_location_empty_p, print_breakpoint_location)
13770 (print_one_breakpoint_location, create_thread_event_breakpoint)
13771 (init_breakpoint_sal, create_breakpoint)
13772 (print_recreate_ranged_breakpoint, break_range_command)
13773 (init_ada_exception_breakpoint, say_where): Update.
13774 (base_breakpoint_dtor): Don't call delete_event_location.
13775 (bkpt_print_recreate, tracepoint_print_recreate)
13776 (dprintf_print_recreate, update_static_tracepoint)
13777 (breakpoint_re_set_default): Update.
13779 2017-04-12 Tom Tromey <tom@tromey.com>
13781 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
13782 type of "to_do". Update.
13783 (compute_stack_depth): Use std::vector.
13785 2017-04-12 Tom Tromey <tom@tromey.com>
13787 * printcmd.c (find_instruction_backward): Use std::vector.
13789 2017-04-12 Tom Tromey <tom@tromey.com>
13791 * symfile.c (objfilep): Remove typedef.
13792 (reread_symbols): Use a std::vector.
13794 2017-04-12 Tom Tromey <tom@tromey.com>
13796 * mi/mi-main.c (exec_direction_forward): Remove.
13797 (exec_reverse_continue, mi_execute_command): Use scoped_restore.
13798 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
13800 * guile/guile.c (guile_repl_command, guile_command)
13801 (gdbscm_execute_gdb_command): Use scoped_restore.
13802 * go-exp.y (go_parse): Use scoped_restore.
13803 * d-exp.y (d_parse): Use scoped_restore.
13804 * cli/cli-decode.c (cmd_func): Use scoped_restore.
13805 * c-exp.y (c_parse): Use scoped_restore.
13807 2017-04-12 Tom Tromey <tom@tromey.com>
13809 * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
13810 (mi_parse): Update return type.
13811 (mi_parse_free): Remove.
13812 * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
13813 (mi_parse::~mi_parse): Rename from mi_parse_free.
13814 (mi_parse_cleanup): Remove.
13815 (mi_parse): Return a unique_ptr. Use new.
13816 * mi/mi-main.c (mi_execute_command): Update.
13818 2017-04-12 Tom Tromey <tom@tromey.com>
13820 * location.c (explicit_location_lex_one): Return a
13821 unique_xmalloc_ptr.
13822 (string_to_explicit_location): Update. Remove cleanups.
13824 2017-04-12 Tom Tromey <tom@tromey.com>
13826 * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
13827 (compare_value_and_voffset): Change type. Update.
13828 (compute_vtable_size): Change type of "offset_vec".
13829 (gnuv3_print_vtable): Use std::vector. Remove cleanups.
13830 (gnuv3_get_typeid): Remove extraneous declaration.
13832 2017-04-12 Tom Tromey <tom@tromey.com>
13834 * charset.h (wchar_iterator): Fix comment.
13836 2017-04-12 Tom Tromey <tom@tromey.com>
13838 * charset.c (iconv_wrapper): New class.
13839 (cleanup_iconv): Remove.
13840 (convert_between_encodings): Use it.
13842 2017-04-12 Tom Tromey <tom@tromey.com>
13844 * symfile.h (increment_reading_symtab): Update type.
13845 * symfile.c (decrement_reading_symtab): Remove.
13846 (increment_reading_symtab): Return a scoped_restore_tmpl<int>.
13847 * psymtab.c (psymtab_to_symtab): Update.
13848 * dwarf2read.c (dw2_instantiate_symtab): Update.
13850 2017-04-12 Tom Tromey <tom@tromey.com>
13852 * jit.c (struct jit_reader): Declare separately. Add constructor
13853 and destructor. Change type of "handle".
13854 (loaded_jit_reader): Define separately.
13855 (jit_reader_load): Update. New "new".
13856 (jit_reader_unload_command): Use "delete".
13857 * gdb-dlfcn.h (struct dlclose_deleter): New.
13858 (gdb_dlhandle_up): New typedef.
13859 (gdb_dlopen, gdb_dlsym): Update types.
13860 (gdb_dlclose): Remove.
13861 * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up.
13862 (gdb_dlsym): Change type of "handle".
13863 (make_cleanup_dlclose): Remove.
13864 (dlclose_deleter::operator()): Rename from gdb_dlclose.
13865 * compile/compile-c-support.c (load_libcc): Update.
13867 2017-04-12 Tom Tromey <tom@tromey.com>
13869 * symtab.h (find_pcs_for_symtab_line): Change return type.
13870 * symtab.c (find_pcs_for_symtab_line): Change return type.
13871 * python/py-linetable.c (build_line_table_tuple_from_pcs): Change
13872 type of "vec". Update.
13873 (ltpy_get_pcs_for_line): Update.
13874 * linespec.c (decode_digits_ordinary): Update.
13876 2017-04-12 Tom Tromey <tom@tromey.com>
13878 * tracepoint.c (actions_command): Update.
13879 * python/python.c (python_command, python_interactive_command):
13881 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
13882 * guile/guile.c (guile_command): Update.
13883 * defs.h (read_command_lines, read_command_lines_1): Return
13885 (command_lines_deleter): New struct.
13886 (command_line_up): New typedef.
13887 * compile/compile.c (compile_code_command)
13888 (compile_print_command): Update.
13889 * cli/cli-script.h (get_command_line, copy_command_lines): Return
13891 (make_cleanup_free_command_lines): Remove.
13892 * cli/cli-script.c (get_command_line, read_command_lines_1)
13893 (copy_command_lines): Return command_line_up.
13894 (while_command, if_command, read_command_lines, define_command)
13895 (document_command): Update.
13896 (do_free_command_lines_cleanup, make_cleanup_free_command_lines):
13898 * breakpoint.h (breakpoint_set_commands): Change type of
13900 * breakpoint.c (breakpoint_set_commands): Change type of
13901 "commands". Update.
13902 (do_map_commands_command, update_dprintf_command_list)
13903 (create_tracepoint_from_upload): Update.
13905 2017-04-12 Tom Tromey <tom@tromey.com>
13907 * tracepoint.c (scope_info): Update.
13908 * spu-tdep.c (spu_catch_start): Update.
13909 * python/python.c (gdbpy_decode_line): Update.
13910 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
13911 * python/py-breakpoint.c (bppy_init): Update.
13912 * probe.c (parse_probes): Update.
13913 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
13914 * location.h (event_location_deleter): New struct.
13915 (event_location_up): New typedef.
13916 (new_linespec_location, new_address_location, new_probe_location)
13917 (new_explicit_location, copy_event_location)
13918 (string_to_event_location, string_to_event_location_basic)
13919 (string_to_explicit_location): Update return type.
13920 (make_cleanup_delete_event_location): Remove.
13921 * location.c (new_linespec_location, new_address_location)
13922 (new_probe_location, new_explicit_location, copy_event_location):
13923 Return event_location_up.
13924 (delete_event_location_cleanup)
13925 (make_cleanup_delete_event_location): Remove.
13926 (string_to_explicit_location, string_to_event_location_basic)
13927 (string_to_event_location): Return event_location_up.
13928 * linespec.c (canonicalize_linespec, event_location_to_sals)
13929 (decode_line_with_current_source)
13930 (decode_line_with_last_displayed, decode_objc): Update.
13931 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
13932 * completer.c (location_completer): Update.
13933 * cli/cli-cmds.c (edit_command, list_command): Update.
13934 * breakpoint.c (create_overlay_event_breakpoint)
13935 (create_longjmp_master_breakpoint)
13936 (create_std_terminate_master_breakpoint)
13937 (create_exception_master_breakpoint)
13938 (create_thread_event_breakpoint): Update.
13939 (init_breakpoint_sal): Update. Remove some dead code.
13940 (create_breakpoint_sal): Change type of "location". Update.
13941 (create_breakpoints_sal, create_breakpoint, break_command_1)
13942 (dprintf_command, break_range_command, until_break_command)
13943 (init_ada_exception_breakpoint)
13944 (strace_marker_create_sals_from_location)
13945 (update_static_tracepoint, trace_command, ftrace_command)
13946 (strace_command, create_tracepoint_from_upload): Update.
13947 * break-catch-throw.c (re_set_exception_catchpoint): Update.
13948 * ax-gdb.c (agent_command_1): Update.
13950 2017-04-12 Pedro Alves <palves@redhat.com>
13952 * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o.
13953 * configure.tgt: Handle i[34567]86-*-go32* and
13954 i[34567]86-*-msdosdjgpp*.
13955 * i386-tdep.c (i386_svr4_reg_to_regnum):
13957 (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to
13959 (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c.
13960 * i386-go32-tdep.c: New file.
13961 * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New
13964 2017-04-12 Simon Marchi <simon.marchi@ericsson.com>
13966 * aix-thread.c (pd_status2str): Change return type to const char *.
13968 2017-04-12 Pedro Alves <palves@redhat.com>
13970 * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
13971 calls to set_gdbarch_gnu_triplet_regexp.
13973 2017-04-12 Pedro Alves <palves@redhat.com>
13976 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>:
13978 (cplus_language_arch_info): Register cplus_primitive_type_wchar_t.
13979 * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field.
13980 * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type.
13981 * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values.
13982 * gdbarch.h, gdbarch.c: Regenerate.
13983 * aarch64-tdep.c (aarch64_gdbarch_init): Override
13984 gdbarch_wchar_bit and gdbarch_wchar_signed.
13985 * alpha-tdep.c (alpha_gdbarch_init): Likewise.
13986 * arm-tdep.c (arm_gdbarch_init): Likewise.
13987 * avr-tdep.c (avr_gdbarch_init): Likewise.
13988 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
13989 * i386-nto-tdep.c (i386nto_init_abi): Likewise.
13990 * i386-tdep.c (i386_go32_init_abi): Likewise.
13991 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
13992 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
13993 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
13994 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
13995 * sh-tdep.c (sh_gdbarch_init): Likewise.
13996 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
13997 * sparc64-tdep.c (sparc64_init_abi): Likewise.
13998 * windows-tdep.c (windows_init_abi): Likewise.
13999 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
14001 2017-04-12 Pedro Alves <palves@redhat.com>
14004 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t,
14005 cplus_primitive_type_char32_t>: New enum values.
14006 (cplus_language_arch_info): Register cplus_primitive_type_char16_t
14007 and cplus_primitive_type_char32_t.
14008 * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or
14009 32, use the archtecture's built-in type for char16_t and char32_t,
14010 respectively. Otherwise, fallback to init_integer_type as before,
14011 but make the type unsigned, and issue a complaint.
14012 * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned.
14014 2017-04-12 Alan Hayward <alan.hayward@arm.com>
14016 * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added.
14017 (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
14019 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
14021 * windows-nat.c (windows_create_inferior): Declare 'toexec' as
14024 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
14026 * common/common-utils.c (free_vector_argv): New function.
14027 * common/common-utils.h: Include <vector>.
14028 (free_vector_argv): New prototype.
14029 * darwin-nat.c (darwin_create_inferior): Rewrite function
14030 prototype in order to constify "exec_file" and accept a
14031 "std::string" for "allargs".
14032 * fork-child.c: Include <vector>.
14033 (breakup_args): Rewrite function, using C++.
14034 (fork_inferior): Rewrite function header, constify "exec_file_arg"
14035 and accept "std::string" for "allargs". Update the code to
14036 calculate "argv" based on "allargs". Update calls to "exec_fun"
14038 * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in
14039 order to constify "exec_file" and accept a "std::string" for
14041 * go32-nat.c (go32_create_inferior): Likewise.
14042 * inf-ptrace.c (inf_ptrace_create_inferior): Likewise.
14043 * infcmd.c (run_command_1): Constify "exec_file". Use
14044 "std::string" for inferior arguments.
14045 * inferior.h (fork_inferior): Update prototype.
14046 * linux-nat.c (linux_nat_create_inferior): Rewrite function
14047 prototype in order to constify "exec_file" and accept a
14048 "std::string" for "allargs".
14049 * nto-procfs.c (procfs_create_inferior): Likewise.
14050 * procfs.c (procfs_create_inferior): Likewise.
14051 * remote-sim.c (gdbsim_create_inferior): Likewise.
14052 * remote.c (extended_remote_run): Update code to accept
14053 "std::string" as argument.
14054 (extended_remote_create_inferior): Rewrite function prototype in
14055 order to constify "exec_file" and accept a "std::string" for
14057 * rs6000-nat.c (super_create_inferior): Likewise.
14058 (rs6000_create_inferior): Likewise.
14059 * target.h (struct target_ops) <to_create_inferior>: Likewise.
14060 * windows-nat.c (windows_create_inferior): Likewise.
14062 2017-04-11 Pedro Alves <palves@redhat.com>
14064 * thread.c: Fix whitespace throughout.
14066 2017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com>
14068 * linux-nat.c (linux_nat_detach): Remove delete_lwp call.
14070 2017-04-11 Alan Hayward <alan.hayward@arm.com>
14072 * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
14074 2017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
14077 * osdata.c (info_osdata): Check if 'type' is an empty string
14080 2017-04-10 Pedro Alves <palves@redhat.com>
14082 * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid)
14083 (ptid_to_global_thread_id, in_thread_list)
14084 (do_captured_list_thread_ids, set_resumed, set_running)
14085 (set_executing, set_stop_requested, finish_thread_state)
14086 (validate_registers_access, can_access_registers_ptid)
14087 (print_thread_info_1, switch_to_thread)
14088 (do_restore_current_thread_cleanup)
14089 (make_cleanup_restore_current_thread, thread_command)
14090 (thread_name_command): Use operator== instead of ptid_equal.
14092 2017-04-10 Pedro Alves <palves@redhat.com>
14094 * thread.c (struct current_thread_cleanup) <next>: Delete field.
14095 (current_thread_cleanup_chain): Delete.
14096 (restore_current_thread_cleanup_dtor)
14097 (make_cleanup_restore_current_thread): Remove references to
14098 current_thread_cleanup_chain.
14100 2017-04-10 Alan Hayward <alan.hayward@arm.com>
14102 * msp430-tdep.c (msp430_pseudo_register_read): Never return
14105 2017-04-10 Yao Qi <yao.qi@linaro.org>
14108 * gdbthread.h (thread_info::deletable): New method.
14109 (thread_info::incref): New method.
14110 (thread_info::decref): New method.
14111 (thread_info::refcount): Move it to private.
14112 * infrun.c (save_stop_context): Call inc_refcount.
14113 (release_stop_context_cleanup): Likewise.
14114 * thread.c (set_thread_exited): New function.
14115 (init_thread_list): Delete "tp" only it is deletable, otherwise
14116 call set_thread_exited.
14117 (delete_thread_1): Call set_thread_exited.
14118 (current_thread_cleanup) <inferior_pid>: Remove.
14119 <thread>: New field.
14120 (restore_current_thread_ptid_changed): Removed.
14121 (do_restore_current_thread_cleanup): Adjust.
14122 (restore_current_thread_cleanup_dtor): Don't call
14124 (set_thread_refcount): Use dec_refcount.
14125 (make_cleanup_restore_current_thread): Adjust.
14126 (thread_apply_all_command): Call inc_refcount.
14127 (_initialize_thread): Don't call
14128 observer_attach_thread_ptid_changed.
14130 2017-04-10 Yao Qi <yao.qi@linaro.org>
14132 * thread.c (delete_thread_1): Hoist code on marking thread as
14135 2017-04-09 Simon Marchi <simon.marchi@polymtl.ca>
14137 * windows-nat.c (windows_detach): Initialize ptid with
14140 2017-04-07 Simon Marchi <simon.marchi@ericsson.com>
14142 * unittests/ptid-selftests.c: Fix erroneous assert messages.
14144 2017-04-07 Alan Hayward <alan.hayward@arm.com>
14146 * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
14147 (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE.
14148 (bfin_pseudo_register_write): Likewise
14150 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
14152 * common/ptid.h (struct ptid): Change to...
14153 (class ptid_t): ... this.
14154 <ptid_t>: New constructors.
14155 <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=,
14156 matches>: New methods.
14157 <make_null, make_minus_one>: New static methods.
14158 <pid>: Rename to...
14160 <lwp>: Rename to...
14162 <tid>: Rename to...
14164 (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
14165 ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments
14166 as references, move comment to class ptid_t.
14167 * common/ptid.c (null_ptid, minus_one_ptid): Initialize with
14168 ptid_t static methods.
14169 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid,
14170 ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match):
14171 Take ptid arguments as references, implement using ptid_t methods.
14172 * unittests/ptid-selftests.c: New file.
14173 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14174 unittests/ptid-selftests.c.
14175 (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o.
14177 2017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
14179 * python/python.c (python_run_simple_file): Cast mode literal to
14180 non-const char pointer as expected by PyFile_FromString.
14182 2017-04-05 Simon Marchi <simon.marchi@ericsson.com>
14184 * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with
14185 minus_one_ptid and null_ptid.
14187 2017-04-05 Pedro Alves <palves@redhat.com>
14189 * warning.m4 (build_warnings): Remove -Wno-write-strings.
14190 * configure: Regenerate.
14192 2017-04-05 Pedro Alves <palves@redhat.com>
14194 * ada-exp.y (yyerror): Constify.
14195 * ada-lang.c (bound_name, get_selections)
14196 (ada_variant_discrim_type)
14197 (ada_variant_discrim_name, ada_value_struct_elt)
14198 (ada_lookup_struct_elt_type, is_unchecked_variant)
14199 (ada_which_variant_applies, standard_exc, ada_get_next_arg)
14200 (catch_ada_exception_command_split)
14201 (catch_ada_assert_command_split, catch_assert_command)
14202 (ada_op_name): Constify.
14203 * ada-lang.h (ada_yyerror, get_selections)
14204 (ada_variant_discrim_name, ada_value_struct_elt): Constify.
14205 * arc-tdep.c (arc_print_frame_cache): Constify.
14206 * arm-tdep.c (arm_skip_stub): Constify.
14207 * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref)
14208 (gen_aggregate_elt_ref): Constify.
14209 * bcache.c (print_bcache_statistics): Constify.
14210 * bcache.h (print_bcache_statistics): Constify.
14211 * break-catch-throw.c (catch_exception_command_1):
14212 * breakpoint.c (struct ep_type_description::description):
14214 (add_solib_catchpoint): Constify.
14215 (catch_fork_command_1): Add cast.
14216 (add_catch_command): Constify.
14217 * breakpoint.h (add_catch_command, add_solib_catchpoint):
14219 * bsd-uthread.c (bsd_uthread_state): Constify.
14220 * buildsym.c (patch_subfile_names): Constify.
14221 * buildsym.h (next_symbol_text_func, patch_subfile_names):
14223 * c-exp.y (yyerror): Constify.
14224 (token::oper): Constify.
14225 * c-lang.h (c_yyerror, cp_print_class_member): Constify.
14226 * c-varobj.c (cplus_describe_child): Constify.
14227 * charset.c (find_charset_names): Add cast.
14228 (find_charset_names): Constify array and add const_cast.
14229 * cli/cli-cmds.c (complete_command, cd_command): Constify.
14230 (edit_command): Constify.
14231 * cli/cli-decode.c (lookup_cmd): Constify.
14232 * cli/cli-dump.c (dump_memory_command, dump_value_command):
14234 (struct dump_context): Constify.
14235 (add_dump_command, restore_command): Constify.
14236 * cli/cli-script.c (get_command_line): Constify.
14237 * cli/cli-script.h (get_command_line): Constify.
14238 * cli/cli-utils.c (check_for_argument): Constify.
14239 * cli/cli-utils.h (check_for_argument): Constify.
14240 * coff-pe-read.c (struct read_pe_section_data): Constify.
14241 * command.h (lookup_cmd): Constify.
14242 * common/print-utils.c (decimal2str): Constify.
14243 * completer.c (gdb_print_filename): Constify.
14244 * corefile.c (set_gnutarget): Constify.
14245 * cp-name-parser.y (yyerror): Constify.
14246 * cp-valprint.c (cp_print_class_member): Constify.
14247 * cris-tdep.c (cris_register_name, crisv32_register_name):
14249 * d-exp.y (yyerror): Constify.
14250 (struct token::oper): Constify.
14251 * d-lang.h (d_yyerror): Constify.
14252 * dbxread.c (struct header_file_location::name): Constify.
14253 (add_old_header_file, add_new_header_file, last_function_name)
14254 (dbx_next_symbol_text, add_bincl_to_list)
14255 (find_corresponding_bincl_psymtab, set_namestring)
14256 (find_stab_function_addr, read_dbx_symtab, start_psymtab)
14257 (dbx_end_psymtab, read_ofile_symtab, process_one_symbol):
14258 * defs.h (command_line_input, print_address_symbolic)
14259 (deprecated_readline_begin_hook): Constify.
14260 * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name):
14262 * event-top.c (handle_line_of_input): Constify and add cast.
14263 * exceptions.c (catch_errors): Constify.
14264 * exceptions.h (catch_errors): Constify.
14265 * expprint.c (print_subexp_standard, op_string, op_name)
14266 (op_name_standard, dump_raw_expression, dump_raw_expression):
14267 * expression.h (op_name, op_string, dump_raw_expression):
14269 * f-exp.y (yyerror): Constify.
14270 (struct token::oper): Constify.
14271 (struct f77_boolean_val::name): Constify.
14272 * f-lang.c (f_word_break_characters): Constify.
14273 * f-lang.h (f_yyerror): Constify.
14274 * fork-child.c (fork_inferior): Add cast.
14275 * frv-tdep.c (struct gdbarch_tdep::register_names): Constify.
14276 (new_variant): Constify.
14277 * gdbarch.sh (pstring_ptr, pstring_list): Constify.
14278 * gdbarch.c: Regenerate.
14279 * gdbcore.h (set_gnutarget): Constify.
14280 * go-exp.y (yyerror): Constify.
14281 (token::oper): Constify.
14282 * go-lang.h (go_yyerror): Constify.
14283 * go32-nat.c (go32_sysinfo): Constify.
14284 * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify.
14285 * guile/scm-cmd.c (cmdscm_function): Constify.
14286 * guile/scm-param.c (pascm_param_value): Constify.
14287 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
14288 (h8300sx_register_name): Constify.
14289 * hppa-tdep.c (hppa32_register_name, hppa64_register_name):
14291 * ia64-tdep.c (ia64_register_names): Constify.
14292 * infcmd.c (construct_inferior_arguments): Constify.
14293 (path_command, attach_post_wait): Constify.
14294 * language.c (show_range_command, show_case_command)
14295 (unk_lang_error): Constify.
14296 * language.h (language_defn::la_error)
14297 (language_defn::la_name_of_this): Constify.
14298 * linespec.c (decode_line_2): Constify.
14299 * linux-thread-db.c (thread_db_err_str): Constify.
14300 * lm32-tdep.c (lm32_register_name): Constify.
14301 * m2-exp.y (yyerror): Constify.
14302 * m2-lang.h (m2_yyerror): Constify.
14303 * m32r-tdep.c (m32r_register_names): Constify and make static.
14304 * m68hc11-tdep.c (m68hc11_register_names): Constify.
14305 * m88k-tdep.c (m88k_register_name): Constify.
14306 * macroexp.c (appendmem): Constify.
14307 * mdebugread.c (fdr_name, add_data_symbol, parse_type)
14308 (upgrade_type, parse_external, parse_partial_symbols)
14309 (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab)
14310 (new_symbol): Constify.
14311 * memattr.c (mem_info_command): Constify.
14312 * mep-tdep.c (register_name_from_keyword): Constify.
14313 * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env):
14315 * mi/mi-cmd-stack.c (list_args_or_locals): Constify.
14316 * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify.
14317 * mi/mi-main.c (captured_mi_execute_command): Constify and add
14319 (mi_execute_async_cli_command): Constify.
14320 * mips-tdep.c (mips_register_name): Constify.
14321 * mn10300-tdep.c (register_name, mn10300_generic_register_name)
14322 (am33_register_name, am33_2_register_name)
14323 * moxie-tdep.c (moxie_register_names): Constify.
14324 * nat/linux-osdata.c (osdata_type): Constify fields.
14325 * nto-tdep.c (nto_parse_redirection): Constify.
14326 * objc-lang.c (lookup_struct_typedef, lookup_objc_class)
14327 (lookup_child_selector): Constify.
14328 (objc_methcall::name): Constify.
14329 * objc-lang.h (lookup_objc_class, lookup_child_selector)
14330 (lookup_struct_typedef): Constify.
14331 * objfiles.c (pc_in_section): Constify.
14332 * objfiles.h (pc_in_section): Constify.
14333 * p-exp.y (struct token::oper): Constify.
14334 (yyerror): Constify.
14335 * p-lang.h (pascal_yyerror): Constify.
14336 * parser-defs.h (op_name_standard): Constify.
14337 (op_print::string): Constify.
14338 (exp_descriptor::op_name): Constify.
14339 * printcmd.c (print_address_symbolic): Constify.
14340 * psymtab.c (print_partial_symbols): Constify.
14341 * python/py-breakpoint.c (stop_func): Constify.
14342 (bppy_get_expression): Constify.
14343 * python/py-cmd.c (cmdpy_completer::name): Constify.
14344 (cmdpy_function): Constify.
14345 * python/py-event.c (evpy_add_attribute)
14346 (gdbpy_initialize_event_generic): Constify.
14347 * python/py-event.h (evpy_add_attribute)
14348 (gdbpy_initialize_event_generic): Constify.
14349 * python/py-evts.c (add_new_registry): Constify.
14350 * python/py-finishbreakpoint.c (outofscope_func): Constify.
14351 * python/py-framefilter.c (get_py_iter_from_func): Constify.
14352 * python/py-inferior.c (get_buffer): Add cast.
14353 * python/py-param.c (parm_constant::name): Constify.
14354 * python/py-unwind.c (fprint_frame_id): Constify.
14355 * python/python.c (gdbpy_parameter_value): Constify.
14356 * remote-fileio.c (remote_fio_func_map): Make 'name' const.
14357 * remote.c (memory_packet_config::name): Constify.
14358 (show_packet_config_cmd, remote_write_bytes)
14359 (remote_buffer_add_string):
14360 * reverse.c (exec_reverse_once): Constify.
14361 * rs6000-tdep.c (variant::name, variant::description): Constify.
14362 * rust-exp.y (rustyyerror): Constify.
14363 * rust-lang.c (rust_op_name): Constify.
14364 * rust-lang.h (rustyyerror): Constify.
14365 * serial.h (serial_ops::name): Constify.
14366 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
14367 (sh_sh3e_register_name, sh_sh2e_register_name)
14368 (sh_sh2a_register_name, sh_sh2a_nofpu_register_name)
14369 (sh_sh_dsp_register_name, sh_sh3_dsp_register_name)
14370 (sh_sh4_register_name, sh_sh4_nofpu_register_name)
14371 (sh_sh4al_dsp_register_name): Constify.
14372 * sh64-tdep.c (sh64_register_name): Constify.
14373 * solib-darwin.c (lookup_symbol_from_bfd): Constify.
14374 * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify.
14375 * stabsread.c (patch_block_stabs, read_type_number)
14376 (ref_map::stabs, ref_add, process_reference)
14377 (symbol_reference_defined, define_symbol, define_symbol)
14378 (error_type, read_type, read_member_functions, read_cpp_abbrev)
14379 (read_one_struct_field, read_struct_fields, read_baseclasses)
14380 (read_tilde_fields, read_struct_type, read_array_type)
14381 (read_enum_type, read_sun_builtin_type, read_sun_floating_type)
14382 (read_huge_number, read_range_type, read_args, common_block_start)
14383 (find_name_end): Constify.
14384 * stabsread.h (common_block_start, define_symbol)
14385 (process_one_symbol, symbol_reference_defined, ref_add):
14386 * symfile.c (get_section_index, add_symbol_file_command):
14387 * symfile.h (get_section_index): Constify.
14388 * target-descriptions.c (tdesc_type::name): Constify.
14389 (tdesc_free_type): Add cast.
14390 * target.c (find_default_run_target):
14391 (add_deprecated_target_alias, find_default_run_target)
14392 (target_announce_detach): Constify.
14393 (do_option): Constify.
14394 * target.h (add_deprecated_target_alias): Constify.
14395 * thread.c (print_thread_info_1): Constify.
14396 * top.c (deprecated_readline_begin_hook, command_line_input):
14398 (init_main): Add casts.
14399 * top.h (handle_line_of_input): Constify.
14400 * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify.
14401 * tracepoint.c (tvariables_info_1, trace_status_mi): Constify.
14402 (tfind_command): Rename to ...
14403 (tfind_command_1): ... this and constify.
14404 (tfind_command): New function.
14405 (tfind_end_command, tfind_start_command): Adjust.
14406 (encode_source_string): Constify.
14407 * tracepoint.h (encode_source_string): Constify.
14408 * tui/tui-data.c (tui_partial_win_by_name): Constify.
14409 * tui/tui-data.h (tui_partial_win_by_name): Constify.
14410 * tui/tui-source.c (tui_set_source_content_nil): Constify.
14411 * tui/tui-source.h (tui_set_source_content_nil): Constify.
14412 * tui/tui-win.c (parse_scrolling_args): Constify.
14413 * tui/tui-windata.c (tui_erase_data_content): Constify.
14414 * tui/tui-windata.h (tui_erase_data_content): Constify.
14415 * tui/tui-winsource.c (tui_erase_source_content): Constify.
14416 * tui/tui.c (tui_enable): Add cast.
14417 * utils.c (defaulted_query): Constify.
14418 (init_page_info): Add cast.
14419 (puts_debug, subset_compare): Constify.
14420 * utils.h (subset_compare): Constify.
14421 * varobj.c (varobj_format_string): Constify.
14422 * varobj.h (varobj_format_string): Constify.
14423 * vax-tdep.c (vax_register_name): Constify.
14424 * windows-nat.c (windows_detach): Constify.
14425 * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify.
14426 * xml-support.c (gdb_xml_end_element): Constify.
14427 * xml-tdesc.c (tdesc_start_reg): Constify.
14428 * xstormy16-tdep.c (xstormy16_register_name): Constify.
14429 * xtensa-tdep.c (xtensa_find_register_by_name): Constify.
14430 * xtensa-tdep.h (xtensa_register_t::name): Constify.
14432 2017-04-05 Pedro Alves <palves@redhat.com>
14434 * proc-api.c (struct trans): Constify.
14435 (procfs_note): Constify.
14436 * proc-events.c (struct trans, syscall_table):
14437 * proc-flags.c (struct trans): Constify.
14438 * proc-utils.h (procfs_note): Constify.
14439 * proc-why.c (struct trans): Constify.
14440 * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error)
14441 (procfs_detach): Constify.
14442 * sol-thread.c (struct string_map): Constify.
14443 (td_err_string, td_state_string): Constify.
14445 2017-04-05 Pedro Alves <palves@redhat.com>
14447 * proc-api.c (procfs_filename): Don't initialize
14449 (prepare_to_trace): Assume procfs_filename is non-NULL.
14450 (_initialize_proc_api): Give procfs_filename a default value here.
14452 2017-04-05 Pedro Alves <palves@redhat.com>
14454 * break-catch-throw.c (handle_gnu_v3_exceptions): Constify
14455 'cond_string' parameter.
14456 (extract_exception_regexp): Constify 'string' parameter.
14457 (catch_exception_command_1): Constify.
14458 * breakpoint.c (init_catchpoint)
14459 (create_fork_vfork_event_catchpoint): Constify 'cond_string'
14461 (ep_parse_optional_if_clause, catch_fork_command_1)
14462 (catch_exec_command_1): Constify.
14463 * breakpoint.h (init_catchpoint): Constify 'cond_string'
14465 (ep_parse_optional_if_clause): Constify.
14466 * cli/cli-utils.c (remove_trailing_whitespace)
14467 (check_for_argument): Constify.
14468 * cli/cli-utils.h (remove_trailing_whitespace): Constify and add
14469 non-const overload.
14470 (check_for_argument): Likewise.
14472 2017-04-05 Pedro Alves <palves@redhat.com>
14474 * event-top.c (command_line_handler): Add cast to execute_command
14476 * record-btrace.c (cmd_record_btrace_bts_start)
14477 (cmd_record_btrace_pt_start, cmd_record_btrace_start)
14478 (cmd_record_btrace_start): Add cast to execute_command call.
14479 * record-full.c (record_full_goto_insn):
14480 * record.c (record_start, record_stop): Add cast to
14481 execute_command_to_string calls.
14482 (cmd_record_start): Add cast to execute_command calls.
14484 2017-04-05 Pedro Alves <palves@redhat.com>
14486 * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New
14487 static inline function.
14488 * python/py-arch.c (archpy_disassemble): Constify 'keywords'
14489 array and use gdb_PyArg_ParseTupleAndKeywords.
14490 * python/py-cmd.c (cmdpy_init): Likewise.
14491 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
14492 * python/py-inferior.c (infpy_read_memory, infpy_write_memory)
14493 (infpy_search_memory): Likewise.
14494 * python/py-objfile.c (objfpy_add_separate_debug_file)
14495 (gdbpy_lookup_objfile): Likewise.
14496 * python/py-symbol.c (gdbpy_lookup_symbol)
14497 (gdbpy_lookup_global_symbol): Likewise.
14498 * python/py-type.c (gdbpy_lookup_type): Likewise.
14499 * python/py-value.c (valpy_lazy_string, valpy_string): Likewise.
14500 * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush):
14503 2017-04-05 Pedro Alves <palves@redhat.com>
14505 * python/python-internal.h (gdb_PyGetSetDef): New type.
14506 * python/py-block.c (block_object_getset)
14507 (breakpoint_object_getset): Now a gdb_PyGetSetDef array.
14508 * python/py-event.c (event_object_getset)
14509 (finish_breakpoint_object_getset): Likewise.
14510 * python/py-inferior.c (inferior_object_getset): Likewise.
14511 * python/py-infthread.c (thread_object_getset): Likewise.
14512 * python/py-lazy-string.c (lazy_string_object_getset): Likewise.
14513 * python/py-linetable.c (linetable_entry_object_getset): Likewise.
14514 * python/py-objfile.c (objfile_getset): Likewise.
14515 * python/py-progspace.c (pspace_getset): Likewise.
14516 * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset):
14518 * python/py-record.c (recpy_record_getset): Likewise.
14519 * python/py-symbol.c (symbol_object_getset): Likewise.
14520 * python/py-symtab.c (symtab_object_getset, sal_object_getset):
14522 * python/py-type.c (type_object_getset, field_object_getset):
14524 * python/py-value.c (value_object_getset): Likewise.
14526 2017-04-05 Pedro Alves <palves@redhat.com>
14528 * python/python-internal.h (gdb_PyObject_CallMethod)
14529 (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath):
14531 (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException)
14532 (PySys_GetObject, PySys_SetPath): New macros.
14534 2017-04-05 Pedro Alves <palves@redhat.com>
14536 * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of
14537 info_osdata_command.
14538 * osdata.c (info_osdata_command): Rename to ...
14539 (info_osdata): ... this. Constify 'type' parameter, and remove
14540 the 'from_tty' parameter. Accept NULL TYPE.
14541 (info_osdata_command): New function.
14542 * osdata.h (info_osdata_command): Remove declaration.
14543 (info_osdata): New declaration.
14545 2017-04-05 Pedro Alves <palves@redhat.com>
14547 * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert)
14548 (mi_cmd_dprintf_insert, mi_cmd_break_passcount)
14549 (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command'
14551 * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception)
14552 (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter.
14553 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command'
14555 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path)
14556 (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show)
14557 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
14558 (mi_cmd_file_list_exec_source_files)
14559 (mi_cmd_file_list_shared_libraries): Constify 'command' parameter.
14560 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
14561 (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command'
14563 * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters)
14564 (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth)
14565 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
14566 (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame)
14567 (mi_cmd_stack_info_frame): Constify 'command' parameter.
14568 * mi/mi-cmd-target.c (mi_cmd_target_file_get)
14569 (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify
14570 'command' parameter.
14571 * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete)
14572 (mi_cmd_var_set_format, mi_cmd_var_set_visualizer)
14573 (mi_cmd_var_set_frozen, mi_cmd_var_show_format)
14574 (mi_cmd_var_info_num_children, mi_cmd_var_list_children)
14575 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
14576 (mi_cmd_var_info_expression, mi_cmd_var_show_attributes)
14577 (mi_cmd_var_evaluate_expression, mi_cmd_var_assign)
14578 (mi_cmd_var_update, mi_cmd_enable_pretty_printing)
14579 (mi_cmd_var_set_update_range): Constify 'command' parameter.
14580 * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter.
14581 * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command'
14583 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next)
14584 (mi_cmd_exec_next_instruction, mi_cmd_exec_step)
14585 (mi_cmd_exec_step_instruction, mi_cmd_exec_finish)
14586 (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue)
14587 (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach)
14588 (mi_cmd_target_flash_erase, mi_cmd_thread_select)
14589 (mi_cmd_thread_list_ids, mi_cmd_thread_info)
14590 (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names)
14591 (mi_cmd_data_list_changed_registers)
14592 (mi_cmd_data_write_register_values)
14593 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
14594 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory)
14595 (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings)
14596 (mi_cmd_list_features, mi_cmd_list_target_features)
14597 (mi_cmd_add_inferior, mi_cmd_remove_inferior)
14598 (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables)
14599 (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start)
14600 (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info)
14601 (mi_cmd_trace_frame_collected): Constify 'command'
14603 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify
14604 'command' parameter.
14606 2017-04-05 Pedro Alves <palves@redhat.com>
14608 * ada-lang.c (ada_completer_word_break_characters): Now a const
14610 (ada_get_gdb_completer_word_break_characters): Constify.
14611 * completer.c (gdb_completer_command_word_break_characters)
14612 (gdb_completer_file_name_break_characters)
14613 (gdb_completer_quote_characters): Now const arrays.
14614 (get_gdb_completer_quote_characters): Constify.
14615 (set_rl_completer_word_break_characters): New function.
14616 (set_gdb_completion_word_break_characters)
14617 (complete_line_internal): Use it.
14618 * completer.h (get_gdb_completer_quote_characters): Constify.
14619 (set_rl_completer_word_break_characters): Declare.
14620 * f-lang.c (f_word_break_characters): Constify.
14621 * language.c (default_word_break_characters): Constify.
14622 * language.h (language_defn::la_word_break_characters): Constify.
14623 (default_word_break_characters): Constify.
14624 * top.c (init_main): Use set_rl_completer_word_break_characters.
14626 2017-04-05 Pedro Alves <palves@redhat.com>
14628 * aix-thread.c (aix_thread_pid_to_str)
14629 (aix_thread_extra_thread_info): Constify.
14630 * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
14631 * bsd-uthread.c (bsd_uthread_extra_thread_info)
14632 (bsd_uthread_pid_to_str): Constify.
14633 * corelow.c (core_pid_to_str): Constify.
14634 * darwin-nat.c (darwin_pid_to_str): Constify.
14635 * fbsd-nat.c (fbsd_pid_to_str): Constify.
14636 * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
14638 * gnu-nat.c (gnu_pid_to_str): Constify.
14639 * go32-nat.c (go32_pid_to_str): Constify.
14640 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
14641 * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
14642 * inferior.c (inferior_pid_to_str): Constify.
14643 * linux-nat.c (linux_nat_pid_to_str): Constify.
14644 * linux-tdep.c (linux_core_pid_to_str): Constify.
14645 * linux-thread-db.c (thread_db_pid_to_str)
14646 (thread_db_extra_thread_info): Constify.
14647 * nto-tdep.c (nto_extra_thread_info): Constify.
14648 * nto-tdep.h (nto_extra_thread_info): Constify.
14649 * obsd-nat.c (obsd_pid_to_str): Constify.
14650 * procfs.c (procfs_pid_to_str): Constify.
14651 * ravenscar-thread.c (ravenscar_extra_thread_info)
14652 (ravenscar_pid_to_str): Constify.
14653 * remote-sim.c (gdbsim_pid_to_str): Constify.
14654 * remote.c (remote_threads_extra_info, remote_pid_to_str):
14656 * sol-thread.c (solaris_pid_to_str): Constify.
14657 * sol2-tdep.c (sol2_core_pid_to_str): Constify.
14658 * sol2-tdep.h (sol2_core_pid_to_str): Constify.
14659 * target.c (default_pid_to_str, target_pid_to_str)
14660 (normal_pid_to_str, default_pid_to_str): Constify.
14661 * target.h (target_ops::to_pid_to_str)
14662 (target_ops::to_extra_thread_info): Constify.
14663 (target_pid_to_str, normal_pid_to_str): Constify.
14664 * windows-nat.c (windows_pid_to_str): Constify.
14665 * gdbarch.sh (core_pid_to_str): Constify.
14666 * target-delegates.c: Regenerate.
14667 * gdbarch.h, gdbarch.c: Regenerate.
14669 2017-04-05 Pedro Alves <palves@redhat.com>
14671 * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
14672 the memory of the temporary warning_pre_print override.
14673 * utils.c (warning_pre_print): Constify.
14674 * utils.h (warning_pre_print): Constify.
14676 2017-04-05 Pedro Alves <palves@redhat.com>
14678 * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
14679 (shell_command): New function.
14680 (make_command): Use std::string.
14681 (init_cli_cmds): Register shell_command instead of shell_escape.
14683 2017-04-05 Pedro Alves <palves@redhat.com>
14685 * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
14686 * tracepoint.c (default_collect): Don't initialize.
14688 2017-04-05 Pedro Alves <palves@redhat.com>
14690 * macroexp.c (macro_buffer::shared): Now a bool.
14691 (init_buffer): Update.
14692 (init_shared_buffer): Constify 'addr' parameter.
14693 (substitute_args, expand, macro_expand, macro_expand_next): Remove
14696 2017-04-05 Pedro Alves <palves@redhat.com>
14698 * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
14699 * disasm.c (set_disassembler_options): Constify local.
14700 * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
14702 2017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
14705 * tracefile.c (tsave_command): Fix argument parsing for '-r'
14708 2017-04-05 Yao Qi <yao.qi@linaro.org>
14710 * frame.c (frame_unwind_register_unsigned): Call
14711 frame_unwind_register_value.
14713 2017-04-05 Yao Qi <yao.qi@linaro.org>
14715 * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
14716 Use gdb_test_multiple, and don't match anchor.
14718 2017-04-05 Pedro Alves <palves@redhat.com>
14720 * MAINTAINERS (Global Maintainers): Add Simon Marchi.
14721 (Write After Approval): Remove Simon Marchi.
14723 2017-04-05 Pedro Alves <palves@redhat.com>
14725 * common/gdb_optional.h (optional::optional): Make constexpr and
14726 initialize m_dummy.
14728 2017-04-04 John Baldwin <jhb@FreeBSD.org>
14730 * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
14731 (amd64fbsd_jmp_buf_reg_offset): Remove.
14732 (amd64fbsd_supply_uthread): Remove function.
14733 (amd64fbsd_collect_uthread): Remove function.
14734 (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
14735 * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
14736 (x86_64-*-freebsd*): Remove bsd-uthread.o.
14737 (fbsd-nat.c): Update comment.
14738 * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
14739 (i386fbsd_jmp_buf_reg_offset): Remove.
14740 (i386fbsd_supply_uthread): Remove function.
14741 (i386fbsd_collect_uthread): Remove function.
14742 (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
14744 2017-04-04 John Baldwin <jhb@FreeBSD.org>
14746 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
14747 (ALLDEPFILES): Remove alpha-fbsd-tdep.c
14748 * NEWS: Mention that support for FreeBSD/alpha was removed.
14749 * alpha-fbsd-tdep.c: Delete file.
14750 * config/alpha/fbsd.mh: Delete file.
14751 * configure.host: Delete alpha*-*-freebsd* and
14752 alpha*-*-kfreebsd*-gnu.
14753 * configure.tgt: Delete alpha*-*-freebsd* and
14754 alpha*-*-kfreebsd*-gnu.
14756 2017-04-04 John Baldwin <jhb@FreeBSD.org>
14758 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
14759 amd64bsd_store_inferior_registers): Use ptid from regcache.
14761 2017-04-04 Pedro Alves <palves@redhat.com>
14763 * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
14764 data fields, make them private and add "m_" prefixes.
14765 (lnp_state_machine::lnp_state_machine): New ctor.
14766 (record_line, check_line_address, handle_set_discriminator)
14767 (handle_set_address, handle_advance_pc, handle_special_opcode)
14768 (handle_advance_line, handle_set_file, handle_negate_stmt)
14769 (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
14770 (end_sequence, advance_line): New methods.
14771 (m_gdbarch, m_record_lines_p): New fields.
14772 (lnp_reader_state): Delete.
14773 (dwarf_record_line): Rename to ...
14774 (lnp_state_machine::record_line): ... adjust.
14775 (init_lnp_state_machine): Delete.
14776 (lnp_state_machine::lnp_state_machine): New.
14777 (check_line_address): Rename to ...
14778 (lnp_state_machine::check_line_address): This.
14779 (dwarf_decode_lines_1): Remove reference to "reader_state".
14780 Adjust lnp_state_machine having a non-default ctor. Use bool.
14781 State machine internal state manipulation moved to
14782 lnp_state_machine methods.
14784 2017-04-04 Pedro Alves <palves@redhat.com>
14786 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14787 unittests/offset-type-selftests.c.
14788 (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
14789 * common/offset-type.h: New file.
14790 * common/preprocessor.h: New file.
14791 * common/traits.h: New file.
14792 * common/valid-expr.h: New file.
14793 * dwarf2expr.c: Include "common/underlying.h". Adjust to use
14794 sect_offset and cu_offset strong typedefs throughout.
14795 * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
14796 typedefs throughout.
14797 * dwarf2loc.c: Include "common/underlying.h". Adjust to use
14798 sect_offset and cu_offset strong typedefs throughout.
14799 * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
14800 typedefs throughout.
14801 * gdbtypes.h: Include "common/offset-type.h".
14802 (cu_offset): Now an offset type (strong typedef) instead of a
14804 (sect_offset): Likewise.
14805 (union call_site_parameter_u): Rename "param_offset" field to
14807 * unittests/offset-type-selftests.c: New file.
14809 2017-04-04 Pedro Alves <palves@redhat.com>
14811 * common/underlying.h: New file.
14812 * dwarf2read.c: Include "common/gdb_optional.h" and
14813 "common/underlying.h".
14814 (dir_index, file_name_index): New types.
14815 (file_entry): Use them.
14816 (file_entry::include): Use to_underlying.
14817 (line_header::add_file_name): Use dir_index.
14818 (read_formatted_entries): Use gdb::optional. Read form before
14819 writting to file_entry.
14820 (dwarf_decode_line_header): Use dir_index.
14821 (lnp_state_machine::current_file): Use to_underlying.
14822 (lnp_state_machine::file): Change type to file_name_index.
14823 (dwarf_record_line): Use to_underlying.
14824 (init_lnp_state_machine): Use file_name_index.
14825 (dwarf_decode_lines_1): Use dir_index and file_name_index.
14827 2017-04-04 Pedro Alves <palves@redhat.com>
14829 * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
14830 operator bool, has_value and get methods.
14832 2017-04-04 Pedro Alves <palves@redhat.com>
14834 * dwarf2read.c (struct file_entry): Add ctors, and initialize all
14836 (line_header): Initialize all data fields. Change type of
14837 standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
14838 Change type of include_dirs to std::vector<const char *>. Remove
14839 num_include_dirs, include_dirs_size. Change type of file_names to
14840 std::vector<file_entry>. Remove num_file_names, file_names_size.
14841 (line_header::line_header): New.
14842 (line_header::add_include_dir, line_header::add_file_name): New
14844 (line_header::include_dir_at): Remove NULL check.
14845 (line_header::file_name_at): Add const overload.
14846 (line_header_up): New unique_ptr typedef.
14847 (dw2_get_file_names_reader): Use line_header_up. Adjust to use
14848 std::vector. Remove free_line_header call.
14849 (dwarf2_build_include_psymtabs): Use line_header_up. Remove
14850 free_line_header call.
14851 (free_cu_line_header): Delete.
14852 (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
14853 (setup_type_unit_groups): Use line_header_up instead of cleanups.
14854 Adjust to use std::vector.
14855 (free_line_header): Delete.
14856 (free_line_header_voidp): Use delete.
14857 (add_include_dir): Replace with ...
14858 (line_header::add_include_dir): ... this method. Use std::vector.
14859 (add_file_name): Replace with ...
14860 (line_header::add_file_name): ... this method. Use std::vector.
14861 (add_include_dir_stub): Delete.
14862 (read_formatted_entries): Remove memset.
14863 (dwarf_decode_line_header): Return a line_header_up instead of a
14864 raw pointer. Remove cleanup handling. Pass lambdas to
14865 read_formatted_entries. Adjust to use line_header methods.
14866 (dwarf_decode_lines_1): Adjust to use line_header methods.
14867 (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
14870 2017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
14872 * remote.c (set_general_thread, set_continue_thread): Use ptid_t
14873 instead of struct ptid.
14875 2017-05-04 Alan Hayward <alan.hayward@arm.com>
14877 * frame.c (get_frame_register_bytes): Unwind using value.
14878 (put_frame_register_bytes): Likewise.
14880 2017-03-30 Iain Buclaw <ibuclaw@gdcproject.org>
14882 * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
14885 2017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
14887 * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
14889 2017-03-29 Yao Qi <yao.qi@linaro.org>
14891 * gdbthread.h (struct thread_info): Declare constructor and
14892 destructor. Add some in-class member initializers.
14893 * thread.c (free_thread): Remove.
14894 (init_thread_list): Call delete instead of free_thread.
14895 (new_thread): Call thread_info constructor.
14896 (thread_info::thread_info): New function.
14897 (thread_info::~thread_info): New function.
14898 (delete_thread_1): Call delete instead of free_thread.
14899 (make_cleanup_restore_current_thread): Move tp and frame to
14902 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
14904 * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
14905 (arc_skip_prologue): Likewise.
14906 (arc_make_frame_cache): Likewise.
14907 (arc_pv_get_operand): New function.
14908 (arc_is_in_prologue): Likewise.
14909 (arc_analyze_prologue): Likewise.
14910 (arc_print_frame_cache): Likewise.
14911 (MAX_PROLOGUE_LENGTH): New constant.
14913 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
14915 * configure.tgt: Add arc-insn.o.
14916 * arc-tdep.c (arc_delayed_print_insn): Make non-static.
14917 (dump_arc_instruction_command): New function.
14918 (arc_fprintf_disasm): Likewise.
14919 (arc_disassemble_info): Likewise.
14920 (arc_insn_get_operand_value): Likewise.
14921 (arc_insn_get_operand_value_signed): Likewise.
14922 (arc_insn_get_memory_base_reg): Likewise.
14923 (arc_insn_get_memory_offset): Likewise.
14924 (arc_insn_get_branch_target): Likewise.
14925 (arc_insn_dump): Likewise.
14926 (arc_insn_get_linear_next_pc): Likewise.
14927 * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
14928 (arc_disassemble_info): Likewise.
14929 (arc_insn_get_branch_target): Likewise.
14930 (arc_insn_get_linear_next_pc): Likewise.
14931 * NEWS: Mention new "maint print arc arc-instruction".
14933 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
14935 * arc-tdep (maintenance_print_arc_list): New variable.
14936 (maintenance_print_arc_command): New function.
14938 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
14940 * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
14941 Add "limm" and "reserved".
14942 (arc_cannot_fetch_register, arc_cannot_store_register): Add
14943 ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
14944 * arc-tdep.h (arc_regnum): Likewise.
14946 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
14948 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
14949 for THREADPTR register.
14950 (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
14952 * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
14953 (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
14954 * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
14956 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
14958 * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
14959 registers above gdbarch_num_regs (gdbarch) as privileged in
14962 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
14964 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
14965 for a single specified register or for all registers in
14966 a0_base..a0_base + C0_NREGS range.
14967 (supply_gregset_reg): Call regcache_raw_supply for a single
14968 specified register or for all registers in a0_base..a0_base +
14971 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
14973 * arch/xtensa.h (C0_NREGS): Add definition.
14974 * xtensa-tdep.c (C0_NREGS): Remove definition.
14976 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
14978 * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
14979 Drop xtensa_default_isa initialization.
14980 (xtensa_gdbarch_init): Initialize xtensa_default_isa.
14982 2017-03-27 Pedro Alves <palves@redhat.com>
14984 * dwarf2read.c (file_entry) <dir_index>: Add comment.
14985 (file_entry::include_dir): New method.
14986 (line_header::include_dir_at, line_header::file_name_at): New
14988 (setup_type_unit_groups, setup_type_unit_groups)
14989 (psymtab_include_file_name): Simplify using the new methods.
14990 (lnp_state_machine) <the_line_header>: New field.
14991 <file>: Add comment.
14992 (lnp_state_machine::current_file): New method.
14993 (dwarf_record_line): Simplify using the new methods.
14994 (init_lnp_state_machine): Initialize the "the_line_header" field.
14995 (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
14996 Simplify using the new methods.
14998 2017-03-27 Pedro Alves <palves@redhat.com>
15000 * cp-name-parser.y (make_empty): Delete.
15001 (demangler_special, nested_name, ptr_operator, array_indicator)
15002 (direct_declarator, declarator_1): Use fill_comp instead of
15005 2017-03-27 Pedro Alves <palves@redhat.com>
15007 * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
15008 to ATTRIBUTE_PRINTF.
15009 * solib-target.c (library_list_start_list): Print "string" not
15011 * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
15012 gdb_xml_error call.
15014 2017-03-27 Pedro Alves <palves@redhat.com>
15016 * dwarf2read.c (struct file_and_directory): New.
15017 (dwarf2_get_dwz_file): Adjust to use std::string.
15018 (dw2_get_file_names_reader): Adjust to use file_and_directory.
15019 (find_file_and_directory): Adjust to return a file_and_directory
15021 (read_file_scope): Adjust to use file_and_directory. Remove
15022 make_cleanup/do_cleanups calls.
15023 (open_and_init_dwp_file): Adjust to use std::string. Remove
15024 make_cleanup/do_cleanups calls.
15025 * python/python.c (do_start_initialization): Adjust to ldirname
15026 returning a std::string.
15027 * utils.c (ldirname): Now returns a std::string.
15028 * utils.h (ldirname): Change return type to std::string.
15029 * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
15030 returning a std::string.
15031 * xml-tdesc.c (file_read_description_xml): Likewise.
15033 2017-03-24 Alan Hayward <alan.hayward@arm.com>
15035 * regcache.c (regcache_debug_print_register): New function.
15036 * regcache.h (regcache_debug_print_register): New declaration.
15037 * target.c (debug_print_register): Remove.
15038 (target_fetch_registers): Call regcache_debug_print_register.
15039 (target_store_registers): Likewise.
15041 2017-03-24 Pádraig Brady <pbrady@fb.com>
15043 * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
15044 reference beyond the 'lh->include_dirs' array before accessing to
15046 (psymtab_include_file_name): Likewise.
15047 (dwarf_decode_lines_1): Likewise.
15048 (dwarf_decode_lines): Likewise.
15049 (file_file_name): Likewise.
15051 2017-03-23 Simon Marchi <simon.marchi@ericsson.com>
15053 * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
15055 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
15056 ps_lsetfpregs): Likewise.
15057 * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
15058 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
15059 ps_lsetfpregs): Likewise.
15060 * target.c (target_fetch_registers, target_store_registers):
15063 2017-03-23 Alan Hayward <alan.hayward@arm.com>
15065 * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
15067 2017-03-23 Yao Qi <yao.qi@linaro.org>
15069 * aarch64-tdep.c (aarch64_process_record_test): Declare.
15070 (_initialize_aarch64_tdep): Register it.
15071 (aarch64_record_load_store): Handle PRFM instruction.
15072 (aarch64_process_record_test): New function.
15074 2017-03-23 Yao Qi <yao.qi@linaro.org>
15076 * aarch64-tdep.c (aarch64_record_load_store): Fix code
15079 2017-03-23 Yao Qi <yao.qi@linaro.org>
15081 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
15083 2017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
15085 python/python.c (do_start_initialization): Fix memory leak.
15087 2017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
15089 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
15090 using get_ptrace_pid.
15091 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
15093 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
15094 inferior_ptid instead of pid.
15096 2017-03-22 Yao Qi <yao.qi@linaro.org>
15098 * aarch64-tdep.c: Wrap locally used classes in anonymous
15100 * arm-tdep.c: Likewise.
15101 * linespec.c: Likewise.
15102 * ui-out.c: Likewise.
15104 2017-03-22 Jonah Graham <jonah@kichwacoders.com>
15107 * python/lib/gdb/printer/bound_registers.py: Import sys.
15109 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
15111 * windows-nat.c (do_windows_fetch_inferior_registers): Add
15112 windows_thread_info parameter and use it instead of
15114 (windows_fetch_inferior_registers): Don't set current_thread,
15115 pass the thread to do_windows_fetch_inferior_registers. Use
15116 ptid from regcache instead of inferior_ptid.
15117 (do_windows_store_inferior_registers): Add windows_thread_info
15118 parameter and use it instead of current_thread.
15119 (windows_store_inferior_registers): Don't set current_thread,
15120 pass the thread to do_windows_store_inferior_registers. Use
15121 ptid from regcache instead of inferior_ptid.
15123 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
15125 * ser-mingw.c (ser_windows_raw): Remove reference to
15126 struct serial::current_timeout.
15128 2017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
15131 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
15132 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
15133 (sparc64_fsr_type): Fix %fsr decoding.
15135 2017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
15137 * python/py-record-btrace.c (btpy_insn_data): Change return type
15140 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
15142 * spu-linux-nat.c (spu_fetch_inferior_registers,
15143 spu_store_inferior_registers): Use ptid from regcache, set and
15144 restore inferior_ptid.
15145 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
15148 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
15150 * i386-linux-nat.c (fetch_register, store_register,
15151 i386_linux_fetch_inferior_registers,
15152 i386_linux_store_inferior_registers): Use ptid from regcache.
15153 * ia64-linux-nat.c (ia64_linux_fetch_register,
15154 ia64_linux_store_register): Likewise.
15155 * inf-ptrace.c (inf_ptrace_fetch_register,
15156 inf_ptrace_store_register): Likewise.
15157 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
15158 m32r_linux_store_inferior_registers): Likewise.
15159 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
15160 m68kbsd_store_inferior_registers): Likewise.
15161 * m68k-linux-nat.c (fetch_register, store_register,
15162 m68k_linux_fetch_inferior_registers,
15163 m68k_linux_store_inferior_registers): Likewise.
15164 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
15165 m88kbsd_store_inferior_registers): Likewise.
15166 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
15167 mips_fbsd_store_inferior_registers): Likewise.
15168 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
15169 mips64_linux_regsets_store_registers): Likewise.
15170 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
15171 mipsnbsd_store_inferior_registers): Likewise.
15172 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
15173 mips64obsd_store_inferior_registers): Likewise.
15174 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
15176 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
15177 ppcfbsd_store_inferior_registers): Likewise.
15178 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
15179 ppc_linux_store_inferior_registers): Likewise.
15180 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
15181 ppcnbsd_store_inferior_registers): Likewise.
15182 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
15183 ppcobsd_store_registers): Likewise.
15184 * procfs.c (procfs_fetch_registers, procfs_store_registers):
15186 * ravenscar-thread.c (ravenscar_fetch_registers,
15187 ravenscar_store_registers, ravenscar_prepare_to_store):
15189 * record-btrace.c (record_btrace_fetch_registers,
15190 record_btrace_store_registers, record_btrace_prepare_to_store):
15192 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
15193 Lookup inferior using ptid from regcache, instead of
15195 * remote.c (remote_fetch_registers, remote_store_registers): Use
15196 ptid from regcache.
15197 * rs6000-nat.c (fetch_register, store_register): Likewise.
15198 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
15199 s390_linux_store_inferior_registers): Likewise.
15200 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
15201 shnbsd_store_inferior_registers): Likewise.
15202 * sol-thread.c (sol_thread_fetch_registers,
15203 sol_thread_store_registers): Likewise.
15204 * sparc-nat.c (sparc_fetch_inferior_registers,
15205 sparc_store_inferior_registers): Likewise.
15206 * tilegx-linux-nat.c (fetch_inferior_registers,
15207 store_inferior_registers): Likewise.
15208 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
15209 vaxbsd_store_inferior_registers): Likewise.
15210 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
15211 store_xtregs): Likewise.
15213 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15216 * NEWS: Mention support for rvalue references in GDB and python.
15217 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
15218 supports both lvalue and rvalue references.
15220 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15223 * gdbtypes.c (rank_one_type): Implement overloading
15224 resolution rules regarding rvalue references.
15226 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15229 * aarch64-tdep.c (aarch64_type_align)
15230 (aarch64_extract_return_value, aarch64_store_return_value): Change
15231 lvalue reference type checks to general reference type checks.
15232 * amd64-tdep.c (amd64_classify): Likewise.
15233 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
15235 * arm-tdep.c (arm_type_align, arm_extract_return_value)
15236 (arm_store_return_value): Likewise.
15237 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
15238 * c-typeprint.c (c_print_type): Likewise.
15239 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
15240 (cplus_number_of_children, cplus_describe_child): Likewise.
15241 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
15242 * completer.c (expression_completer): Likewise.
15243 * cp-support.c (make_symbol_overload_list_adl_namespace):
15245 * darwin-nat-info.c (info_mach_region_command): Likewise.
15246 * dwarf2loc.c (entry_data_value_coerce_ref)
15247 (value_of_dwarf_reg_entry): Likewise.
15248 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
15249 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
15251 * findvar.c (extract_typed_address, store_typed_address):
15253 * gdbtypes.c (rank_one_type): Likewise.
15254 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
15255 * infcall.c (value_arg_coerce): Likewise.
15256 * language.c (pointer_type): Likewise.
15257 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
15259 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
15260 * mn10300-tdep.c (mn10300_type_align): Likewise.
15261 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
15262 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
15263 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
15265 * printcmd.c (print_formatted, x_command): Likewise.
15266 * python/py-type.c (typy_get_composite, typy_template_argument):
15268 * python/py-value.c (valpy_referenced_value)
15269 (valpy_get_dynamic_type, value_has_field): Likewise.
15270 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
15271 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
15272 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
15273 * spu-tdep.c (spu_scalar_value_p): Likewise.
15274 * symtab.c (lookup_symbol_aux): Likewise.
15275 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
15276 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
15278 * valops.c (value_cast_pointers, value_cast)
15279 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
15280 (value_struct_elt, value_struct_elt_bitpos)
15281 (value_find_oload_method_list, find_overload_match)
15282 (value_rtti_indirect_type): Likewise.
15283 * valprint.c (val_print_scalar_type_p, generic_val_print):
15285 * value.c (value_actual_type, value_as_address, unpack_long)
15286 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
15287 (coerce_ref): Likewise.
15288 * varobj.c (varobj_get_value_type): Likewise.
15290 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15293 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
15294 table of constants.
15295 * python/lib/gdb/command/explore.py: Support exploring values
15296 of rvalue reference types.
15297 * python/lib/gdb/types.py: Implement get_basic_type() for
15298 rvalue reference types.
15299 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
15301 * python/py-value.c (valpy_getitem): Add an rvalue reference
15303 (valpy_reference_value): Add new parameter "refcode".
15304 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
15305 New wrappers for valpy_reference_value().
15306 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
15307 (gdbpy_invoke_xmethod): Likewise.
15309 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15312 * dwarf2read.c (process_die, read_type_die_1): Handle the
15313 DW_TAG_rvalue_reference_type DIE.
15314 (read_tag_reference_type): Add new parameter "refcode".
15316 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15319 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
15320 (c_type_print_modifier, c_type_print_varspec_suffix)
15321 (c_type_print_base): Support printing rvalue reference types.
15322 * c-valprint.c (c_val_print, c_value_print): Support printing
15323 rvalue reference values.
15325 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15328 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
15330 * cp-support.c (replace_typedefs): Handle
15331 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
15332 * python/py-type.c (typy_lookup_type): Likewise.
15334 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15337 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
15338 * parse.c (insert_type): Change assert statement.
15339 (follow_types): Handle rvalue reference types.
15340 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
15343 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15346 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
15347 value_ref() interface.
15348 * c-valprint.c (c_value_print): Likewise.
15349 * infcall.c (value_arg_coerce): Likewise.
15350 * python/py-value.c (valpy_reference_value): Likewise.
15351 * valops.c (value_cast, value_reinterpret_cast)
15352 (value_dynamic_cast, typecmp): Likewise.
15353 (value_ref): Parameterize by kind of return value reference type.
15354 * value.h (value_ref): Add new parameter "refcode".
15356 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15359 * dwarf2read.c (read_tag_reference_type): Use
15360 lookup_lvalue_reference_type() instead of lookup_reference_type().
15361 * eval.c (evaluate_subexp_standard): Likewise.
15362 * f-exp.y: Likewise.
15363 * gdbtypes.c (make_reference_type, lookup_reference_type):
15364 Generalize with rvalue reference types.
15365 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
15366 convenience wrappers for lookup_reference_type().
15367 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
15368 reference kind parameter.
15369 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
15370 wrappers for lookup_reference_type().
15371 * guile/scm-type.c (gdbscm_type_reference): Use
15372 lookup_lvalue_reference_type() instead of lookup_reference_type().
15373 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
15374 * parse.c (follow_types): Likewise.
15375 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
15376 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
15378 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
15379 (gdbpy_invoke_xmethod): Likewise.
15380 * stabsread.c: Provide extra argument to make_reference_type()
15382 * valops.c (value_ref, value_rtti_indirect_type): Use
15383 lookup_lvalue_reference_type() instead of lookup_reference_type().
15385 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15388 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
15389 (TYPE_IS_REFERENCE): New macro.
15390 (struct type): Add rvalue_reference_type field.
15391 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
15393 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
15395 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
15396 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
15397 New function definition.
15398 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
15399 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
15400 New function declaration.
15401 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
15402 * mi/mi-interp.h: New file.
15403 * solib.c (info_sharedlibrary_command): Replace for loop with
15405 * solib.h (update_solib_list): New function declaration.
15406 (so_list_head): Move macro.
15407 * solist.h (ALL_SO_LIBS): New macro.
15409 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
15411 * infcmd.c (post_create_inferior): Remove unused argument in
15413 * remote.c (remote_start_remote): Likewise.
15414 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
15415 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
15416 (enable_break): Likewise.
15417 * solib.c (update_solib_list): Remove unused target argument
15418 and its documentation.
15419 (solib_add): Remove unused target argument. Remove unused
15420 argument in call to update_solib_list.
15421 (info_sharedlibrary_command): Remove unused argument in call
15422 to update_solib_list.
15423 (sharedlibrary_command): Remove unused argument in call to
15425 (handle_solib_event): Likewise.
15426 (reload_shared_libraries): Likewise.
15427 * solib.h (solib_add): Remove unused target argument.
15429 2017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
15431 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
15432 (s390_displaced_step_fixup): Cover relative branches with the
15433 default fixup handling. This fixes lack of support for some
15434 relative branch instructions.
15436 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15438 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
15439 ptid from regcache.
15441 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15443 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
15444 i386_darwin_store_inferior_registers): Use ptid from regcache.
15446 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15448 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
15449 i386bsd_store_inferior_registers): Use ptid from regcache.
15451 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15453 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
15454 hppaobsd_store_registers): Use ptid from regcache.
15456 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15458 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
15459 hppanbsd_store_registers): Use ptid from regcache.
15461 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15463 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
15464 from regcache. Use get_ptrace_pid.
15466 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15468 * corelow.c (get_core_register_section): Use ptid from regcache,
15471 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15473 * bsd-uthread.c (bsd_uthread_fetch_registers,
15474 bsd_uthread_store_registers): Use ptid from regcache, set and
15475 restore inferior_ptid.
15477 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15479 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
15480 fetch_fp_regs, store_register, store_regs, store_fp_register,
15481 store_fp_regs): Use ptid from regcache.
15483 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15485 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
15486 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
15487 store_vfp_regs): Use ptid from regcache.
15489 2017-03-17 Pedro Alves <palves@redhat.com>
15492 * ser-base.c (ser_base_wait_for): Add comment.
15493 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
15495 * ser-unix.c (hardwire_raw): Remove reference to
15496 scb->current_timeout.
15497 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
15498 (hardwire_ops): Install ser_base_readchar instead of
15500 * serial.h (struct serial) <current_timeout, timeout_remaining>:
15503 2017-03-17 Jonah Graham <jonah@kichwacoders.com>
15506 * python/lib/gdb/printer/bound_registers.py: Add support for
15509 2017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
15511 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
15512 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
15513 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
15514 byte_offset to subobj_byte_offset. Fix the handling of
15515 DWARF_VALUE_STACK on big-endian targets when coming via an
15517 (dwarf2_evaluate_loc_desc): Adjust call to
15518 dwarf2_evaluate_loc_desc_full.
15519 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
15520 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
15522 2017-03-16 Yao Qi <yao.qi@linaro.org>
15524 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
15525 and REVSH instructions.
15527 2017-03-16 Yao Qi <yao.qi@linaro.org>
15529 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
15530 (arm_record_test): Declare.
15531 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
15532 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
15533 align with the manual.
15534 (thumb_record_misc): Adjust the code order to align with the
15536 (thumb2_record_decode_insn_handler): Fix instruction matching.
15537 (instruction_reader_thumb): New class.
15538 (arm_record_test): New function.
15540 2017-03-16 Yao Qi <yao.qi@linaro.org>
15542 * arm-tdep.c (abstract_memory_reader): New class.
15543 (instruction_reader): New class.
15544 (extract_arm_insn): Add argument 'reader'. Callers updated.
15545 (decode_insn): Likewise.
15547 2017-03-16 Doug Evans <dje@google.com>
15549 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
15550 member. Change type of TYPE member to SCM. All uses updated.
15551 (lsscm_make_lazy_string_smob): Add assert.
15552 (lsscm_make_lazy_string): Flag bad length values.
15553 (lsscm_elt_type): New function.
15554 (gdbscm_lazy_string_to_value): Rewrite to use
15555 lsscm_safe_lazy_string_to_value.
15556 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
15557 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
15558 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
15560 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
15561 * guile/scm-type.c (tyscm_scm_to_type): New function.
15563 2017-03-15 Doug Evans <dje@google.com>
15565 PR python/17728, python/18439, python/18779
15566 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
15567 member. Change type of TYPE member to PyObject *. All uses updated.
15568 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
15569 (gdbpy_create_lazy_string_object): Flag bad length values.
15570 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
15571 Handle typedefs in incoming type.
15572 (stpy_lazy_string_elt_type): New function.
15573 (gdbpy_extract_lazy_string): Call it.
15574 * python/py-value.c (valpy_lazy_string): Flag bad length values.
15575 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
15576 typedefs in incoming type.
15578 2017-03-16 Doug Evans <dje@google.com>
15580 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
15581 * guile/scm-type.c (tyscm_scm_to_type): New function.
15583 2017-03-16 Jiong Wang <jiong.wang@arm.com>
15585 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
15586 "ULONGEST" for "skip".
15588 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
15591 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
15592 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
15593 (inf_ptrace_peek_poke): ...here. New function. Now also loop
15594 over ptrace peek/poke until end of buffer or error.
15596 2017-03-14 Simon Marchi <simon.marchi@ericsson.com>
15598 * parse.c (length_of_subexp): Make static.
15599 * parser-defs.h (length_of_subexp): Remove.
15601 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
15603 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
15606 2017-03-14 Pedro Alves <palves@redhat.com>
15608 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
15609 (main): Use std::unique_ptr. Remove calls to
15610 cp_demangled_name_parse_free.
15612 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15614 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
15615 alphabsd_store_inferior_registers): Use regcache->ptid instead
15618 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15620 * aix-thread.c (aix_thread_fetch_registers,
15621 aix_thread_store_registers): Use regcache->ptid instead of
15624 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15626 * aarch64-linux-nat.c (fetch_gregs_from_thread,
15627 store_gregs_to_thread, fetch_fpregs_from_thread,
15628 store_fpregs_to_thread): Use regcache->ptid instead of
15631 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15633 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
15634 amd64_linux_fetch_inferior_registers): Use regcache->ptid
15635 instead of inferior_ptid.
15637 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15639 * target.c (target_fetch_registers, target_store_registers): Add
15642 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15644 * regcache.h (regcache_get_ptid): New function.
15645 * regcache.c (regcache_get_ptid): New function.
15647 2017-03-13 Mark Wielaard <mark@klomp.org>
15649 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
15651 2017-03-10 Keith Seitz <keiths@redhat.com>
15654 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
15656 2017-03-08 Pedro Alves <palves@redhat.com>
15659 * infrun.c (start_step_over, do_target_resume, resume)
15660 (restart_threads): Assert we're not resuming a thread that is
15661 meant to be stopped.
15662 (infrun_thread_stop_requested_callback): Delete.
15663 (infrun_thread_stop_requested): If the thread is internally
15664 stopped, queue a pending stop event and clear the thread's
15665 inline-frame state.
15666 (handle_stop_requested): New function.
15667 (handle_syscall_event, handle_inferior_event_1): Use
15668 handle_stop_requested.
15669 (handle_stop_requested): New function.
15670 (handle_signal_stop): Set the thread's stop_signal here instead of
15672 (finish_step_over): Clear step over info unconditionally.
15673 (handle_signal_stop): If the user had interrupted the event
15674 thread, consider the stop a random signal.
15675 (handle_signal_stop) <signal arrived while stepping over
15676 breakpoint>: Don't restart threads here.
15677 (stop_waiting): Don't clear step-over info here.
15679 2017-03-08 Pedro Alves <palves@redhat.com>
15682 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
15683 goes to argument 2, not 1.
15685 2017-03-08 Pedro Alves <palves@redhat.com>
15688 * top.c (gdb_readline_wrapper): Avoid passing NULL to
15689 display_gdb_prompt.
15690 (command_line_input): Add comment.
15692 2017-03-08 Pedro Alves <palves@redhat.com>
15695 * tui/tui-file.c (tui_file::write): New.
15696 * tui/tui-file.h (tui_file): Override "write".
15697 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
15698 factored out from ...
15699 (tui_puts): ... here.
15700 (tui_putc): Use them.
15701 (tui_write): New function.
15702 * tui/tui-io.h (tui_write): Declare.
15704 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
15706 * Makefile.in (SFILES): Replace "environ.c" with
15707 "common/environ.c".
15708 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
15709 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
15711 * common/environ.c: ... here.
15712 * environ.h: Moved to...
15713 * common/environ.h: ... here.
15715 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
15717 * gdbarch.sh (pstring_ptr): New static function.
15718 (gdbarch_disassembler_options): Use it.
15719 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
15720 not valid_disassembler_option->name.
15721 * gdbarch.c: Regenerate.
15723 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
15725 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
15727 2017-03-07 Pedro Alves <palves@redhat.com>
15729 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
15731 2017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
15733 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
15734 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
15735 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
15736 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
15738 2017-03-06 Simon Marchi <simon.marchi@ericsson.com>
15740 * xtensa-linux-nat.c (fetch_gregs): Remove const.
15742 2017-03-03 Simon Marchi <simon.marchi@ericsson.com>
15744 * remote.c (remote_add_target_side_commands): Use range-based
15747 2017-03-03 Yao Qi <yao.qi@linaro.org>
15750 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
15752 * valprint.c (common_val_print): Likewise.
15754 2017-02-28 Peter Bergner <bergner@vnet.ibm.com>
15756 * NEWS: Mention new set/show disassembler-options commands.
15757 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
15758 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
15759 (prospective_options): New static variable.
15760 (gdb_disassembler::gdb_disassembler): Initialize
15761 m_di.disassembler_options.
15762 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
15763 (get_disassembler_options): New function.
15764 (set_disassembler_options): Likewise.
15765 (set_disassembler_options_sfunc): Likewise.
15766 (show_disassembler_options_sfunc): Likewise.
15767 (disassembler_options_completer): Likewise.
15768 (_initialize_disasm): Likewise.
15769 * disasm.h (get_disassembler_options): New prototype.
15770 (set_disassembler_options): Likewise.
15771 * gdbarch.sh (gdbarch_disassembler_options): New variable.
15772 (gdbarch_verify_disassembler_options): Likewise.
15773 * gdbarch.c: Regenerate.
15774 * gdbarch.h: Likewise.
15775 * arm-tdep.c (num_disassembly_options): Delete.
15776 (set_disassembly_style): Likewise.
15777 (arm_disassembler_options): New static variable.
15778 (set_disassembly_style_sfunc): Convert short style name into long
15779 option name. Call set_disassembler_options.
15780 (show_disassembly_style_sfunc): New function.
15781 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
15782 set_gdbarch_verify_disassembler_options.
15783 (_initialize_arm_tdep): Delete regnames variable and update callers.
15784 (arm_disassembler_options): Initialize.
15785 (disasm_options): New variable.
15786 (num_disassembly_options): Rename from this...
15787 (num_disassembly_styles): ...to this. Compute by scanning through
15789 (valid_disassembly_styles): Initialize using disasm_options.
15790 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
15791 set_arm_regname_option.
15792 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
15793 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
15794 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
15795 set_gdbarch_verify_disassembler_options.
15796 * s390-tdep.c (s390_disassembler_options): New static variable.
15797 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
15798 set_gdbarch_verify_disassembler_options.
15800 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
15802 * remote.c (remote_add_target_side_condition): Remove "struct"
15803 keyword from range-based for loop.
15805 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
15807 * remote.c (remote_add_target_side_condition): Use range-based
15808 for loop. Update comment.
15810 2017-02-27 Yao Qi <yao.qi@linaro.org>
15812 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
15814 2017-02-26 Alan Hayward <alan.hayward@arm.com>
15816 * regcache.c (regcache_raw_update): New function.
15817 (regcache_raw_read): Move code to regcache_raw_update.
15818 * regcache.h (regcache_raw_update): New declaration.
15819 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
15821 2017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
15823 * dwarf2read.c (create_debug_type_hash_table): Initialize
15824 header.signature and header.type_offset_in_tu.
15826 2017-02-24 Pedro Alves <palves@redhat.com>
15828 * symtab.c (make_file_symbol_completion_list_1): Use
15829 add_symtab_completions.
15831 2017-02-24 Alan Hayward <alan.hayward@arm.com>
15833 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
15835 2017-02-24 Alan Hayward <alan.hayward@arm.com>
15837 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
15838 I386_MAX_REGISTER_SIZE.
15839 (i386_pseudo_register_write): Likewise.
15840 (i386_process_record): Likewise.
15841 * i387-tdep.c (i387_supply_xsave): Likewise.
15842 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
15843 (store_register): Likewise.
15845 2017-02-23 Pedro Alves <palves@redhat.com>
15847 * ada-lang.c: Include "common/function-view.h".
15848 (ada_iterate_over_symbols): Adjust to use function_view as
15850 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
15851 (ada_make_symbol_completion_list): Use a lambda.
15852 (ada_exc_search_name_matches): Delete.
15853 (name_matches_regex): New.
15854 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
15855 * compile/compile-c-support.c: Include "common/function-view.h".
15856 (print_one_macro): Change prototype to accept a ui_file pointer.
15857 (write_macro_definitions): Use a lambda.
15858 * dwarf2read.c: Include "common/function-view.h".
15859 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
15860 (dw2_expand_symtabs_matching): Adjust to use function_view as
15862 * language.h: Include "common/function-view.h".
15863 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
15864 function_view as callback type.
15865 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
15866 * linespec.c: Include "common/function-view.h".
15867 (collect_info::add_symbol): New method.
15868 (struct symbol_and_data_callback, iterate_inline_only, struct
15869 symbol_matcher_data, iterate_name_matcher): Delete.
15870 (iterate_over_all_matching_symtabs): Adjust to use function_view
15871 as callback type and lambdas.
15872 (iterate_over_file_blocks): Adjust to use function_view as
15874 (decode_compound_collector): Now a class with private fields.
15875 (decode_compound_collector::release_symbols): New method.
15876 (collect_one_symbol): Rename to...
15877 (decode_compound_collector::operator()): ... this and adjust.
15878 (lookup_prefix_sym): decode_compound_collector construction bits
15879 move to decode_compound_collector ctor. Pass the
15880 decode_compound_collector object directly as callback. Remove
15881 cleanups and use decode_compound_collector::release_symbols
15883 (symtab_collector): Now a class with private fields.
15884 (symtab_collector::release_symtabs): New method.
15885 (add_symtabs_to_list): Rename to...
15886 (symtab_collector::operator()): ... this and adjust.
15887 (collect_symtabs_from_filename): symtab_collector construction
15888 bits move to symtab_collector ctor. Pass the symtab_collector
15889 object directly as callback. Remove cleanups and use
15890 symtab_collector::release_symtabs instead.
15891 (collect_symbols): Delete.
15892 (add_matching_symbols_to_info): Use lambdas.
15893 * macrocmd.c (print_macro_callback): Delete.
15894 (info_macro_command): Use a lambda.
15895 (info_macros_command): Pass print_macro_definition as callable
15897 (print_one_macro): Remove 'ignore' parameter.
15898 (macro_list_command): Adjust.
15899 * macrotab.c (macro_for_each_data::fn): Now a function_view.
15900 (macro_for_each_data::user_data): Delete field.
15901 (foreach_macro): Adjust to call the function_view.
15902 (macro_for_each): Adjust to use function_view as callback type.
15903 (foreach_macro_in_scope): Adjust to call the function_view.
15904 (macro_for_each_in_scope): Adjust to use function_view as callback
15906 * macrotab.h: Include "common/function-view.h".
15907 (macro_callback_fn): Declare a prototype instead of a pointer.
15908 Remove "user_data" parameter.
15909 (macro_for_each, macro_for_each_in_scope): Adjust to use
15910 function_view as callback type.
15911 * psymtab.c (partial_map_expand_apply)
15912 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
15913 Adjust to use function_view as callback type and to return bool.
15914 (psym_expand_symtabs_matching): Adjust to use function_view as
15916 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
15917 to use function_view as callback type and to return bool.
15918 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
15920 * symfile.c (expand_symtabs_matching): Adjust to use function_view
15922 * symfile.h: Include "common/function-view.h".
15923 (expand_symtabs_file_matcher_ftype)
15924 (expand_symtabs_symbol_matcher_ftype)
15925 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
15927 (quick_symbol_functions::map_symtabs_matching_filename)
15928 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
15929 function_view as callback type and return bool.
15930 (expand_symtabs_matching): Adjust to use function_view as callback
15932 (maintenance_expand_name_matcher)
15933 (maintenance_expand_file_matcher): Delete.
15934 (maintenance_expand_symtabs): Use lambdas.
15935 * symtab.c (iterate_over_some_symtabs): Adjust to use
15936 function_view as callback types and return bool.
15937 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
15939 (lookup_symtab_callback): Delete.
15940 (lookup_symtab): Use a lambda.
15941 (iterate_over_symbols): Adjust to use function_view as callback
15943 (struct search_symbols_data, search_symbols_file_matches)
15944 (search_symbols_name_matches): Delete.
15945 (search_symbols): Use a pair of lambdas.
15946 (struct add_name_data, add_macro_name, symbol_completion_matcher)
15947 (symtab_expansion_callback): Delete.
15948 (default_make_symbol_completion_list_break_on_1): Use lambdas.
15949 * symtab.h: Include "common/function-view.h".
15950 (iterate_over_some_symtabs): Adjust to use function_view as
15951 callback type and return bool.
15952 (iterate_over_symtabs): Adjust to use function_view as callback
15954 (symbol_found_callback_ftype): Remove 'data' parameter and return
15956 (iterate_over_symbols): Adjust to use function_view as callback
15959 2017-02-23 Pedro Alves <palves@redhat.com>
15961 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
15962 (%.o) <unittests/%.c>: New pattern.
15963 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
15964 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
15965 * common/function-view.h: New file.
15966 * unittests/function-view-selftests.c: New file.
15967 * configure: Regenerate.
15969 2017-02-23 Simon Marchi <simon.marchi@ericsson.com>
15971 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
15973 * go32-nat.c (go32_thread_alive): Likewise.
15975 2017-02-23 Yao Qi <yao.qi@linaro.org>
15977 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
15980 2017-02-23 Yao Qi <yao.qi@linaro.org>
15982 * varobj.c (varobj_clear_saved_item): Use delete instead of
15984 (update_dynamic_varobj_children): Likewise.
15986 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
15988 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
15990 2017-02-21 Simon Marchi <simon.marchi@ericsson.com>
15992 * common/enum-flags.h (enum_flags::enum_flags): Initialize
15993 m_enum_value to 0 in default constructor.
15995 2017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
15997 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
15998 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
15999 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
16000 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
16001 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
16002 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
16003 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
16004 IS_STORE_CONDITIONAL_INSN.
16006 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
16008 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
16010 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16012 * NEWS (Changes since GDB 7.12): Add DWARF-5.
16014 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16016 * dwarf2read.c (skip_one_die, read_attribute_value)
16017 (dwarf2_const_value_attr, dump_die_shallow)
16018 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
16019 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
16021 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16023 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
16024 (dwarf_parse_macro_header): Accept DWARF version 5.
16025 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
16027 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16029 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
16031 * common/common-exceptions.h (enum errors): Likewise.
16032 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
16033 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
16034 (dwarf_expr_context::execute_stack_op): Likewise.
16035 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
16037 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
16038 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
16039 (show_entry_values_debug, call_site_to_target_addr)
16040 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
16041 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
16042 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
16043 (value_of_dwarf_block_entry, indirect_pieced_value)
16044 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
16045 (disassemble_dwarf_expression): Likewise.
16046 * dwarf2read.c (process_die, inherit_abstract_dies)
16047 (read_call_site_scope): Likewise.
16048 * gdbtypes.h (struct func_type, struct call_site_parameter)
16049 (struct call_site): Likewise.
16050 * stack.c (read_frame_arg): Likewise.
16051 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
16053 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16055 * defs.h (read_unsigned_leb128): New declaration.
16056 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
16057 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
16058 (dwarf2_find_location_expression): Call also
16059 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
16060 * dwarf2loc.h (dwarf2_version): New declaration.
16061 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
16063 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
16065 (struct dwop_section_names): Add loclists_dwo.
16066 (dwop_section_names): Add .debug_loclists.dwo.
16067 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
16068 (struct dwarf2_per_cu_data): Add dwarf_version.
16069 (struct dwo_sections): Add loclists.
16070 (struct attr_abbrev): Add implicit_const.
16071 (read_indirect_line_string): New declaration.
16072 (read_unsigned_leb128): Delete declaration.
16073 (rcuh_kind): New definition.
16074 (read_and_check_comp_unit_head): Change parameter
16075 is_debug_types_section to section_kind.
16076 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
16077 (read_comp_unit_head): Change parameter abfd to section, add parameter
16078 section_kind. Handle DWARF-5.
16079 (error_check_comp_unit_head): Accept also DWARF version 5.
16080 (read_and_check_comp_unit_head): Change parameter
16081 is_debug_types_section to section_kind.
16082 (read_and_check_type_unit_head): Delete function.
16083 (read_abbrev_offset): Handle DWARF-5.
16084 (create_debug_type_hash_table): Add parameter section_kind. Process
16085 only DW_UT_type. Use signature and type_offset_in_tu from struct
16087 (create_debug_types_hash_table): Update create_debug_type_hash_table
16089 (create_all_type_units): Call create_debug_type_hash_table.
16090 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
16091 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
16093 (skip_one_die): Handle DW_FORM_implicit_const.
16094 (dwarf2_rnglists_process): New function.
16095 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
16096 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
16097 (read_attribute_value): Handle DW_FORM_implicit_const,
16099 (read_attribute): Handle DW_FORM_implicit_const.
16100 (read_indirect_string_at_offset_from): New function from
16101 read_indirect_string_at_offset.
16102 (read_indirect_string_at_offset): Call
16103 read_indirect_string_at_offset_from.
16104 (read_indirect_line_string_at_offset): New function.
16105 (read_indirect_string): New function comment.
16106 (read_indirect_line_string): New function.
16107 (read_unsigned_leb128): Make it global.
16108 (dwarf2_string_attr): Handle DWARF-5.
16109 (add_include_dir_stub, read_formatted_entries): New functions.
16110 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
16112 (per_cu_header_read_in): Update read_comp_unit_head caller.
16113 (dwarf2_version): New function.
16114 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
16116 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
16119 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16121 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
16123 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16125 * dwarf2read.c (dwarf2_ranges_process): New function from
16126 dwarf2_ranges_read.
16127 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
16128 dwarf2_ranges_process.
16130 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16132 * dwarf2read.c (create_debug_type_hash_table): New function from
16133 create_debug_types_hash_table.
16134 (create_debug_types_hash_table): Call create_debug_type_hash_table.
16135 (create_all_type_units, open_and_init_dwo_file): Update
16136 create_debug_types_hash_table callers.
16138 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
16141 * fork-child.c (trace_start_error): Fix thinko. va_end should
16142 refer to 'ap', not 'args'.
16144 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
16145 Pedro Alves <palves@redhat.com>
16148 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
16150 * fork-child.c (trace_start_error): New function.
16151 (trace_start_error_with_name): Likewise.
16152 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
16153 * inf-ptrace.c (inf_ptrace_me): Likewise.
16154 * inferior.h (trace_start_error): New prototype.
16155 (trace_start_error_with_name): Likewise.
16157 2017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
16160 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
16161 NULL before using it.
16162 * symmisc.c (maintenance_print_symbols): Likewise.
16163 (maintenance_print_msymbols): Likewise.
16165 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16167 * NEWS: Add record Python bindings entry.
16169 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16171 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
16173 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
16174 * python/py-record-btrace.c, python/py-record-btrace.h,
16175 python/py-record-full.c, python/py-record-full.h: New file.
16176 * python/py-record.c: Add include for py-record-btrace.h and
16178 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
16179 recpy_instruction_history, recpy_function_call_history, recpy_begin,
16180 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
16181 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
16183 (gdbpy_initialize_btrace): New export.
16184 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
16186 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16188 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
16189 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
16190 * python/py-record.c: New file.
16191 * python/python-internal.h (gdbpy_start_recording,
16192 gdbpy_current_recording, gdpy_stop_recording,
16193 gdbpy_initialize_record): New export.
16194 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
16195 (python_GdbMethods): Add gdbpy_start_recording,
16196 gdbpy_current_recording and gdbpy_stop_recording.
16198 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16200 * record-btrace.c (record_btrace_record_method): New function.
16201 (init_record_btrace_ops): Initialize to_record_method.
16202 * record-full.c (record_full_record_method): New function.
16203 (init_record_full_ops, init_record_full_core_ops): Add
16204 record_full_record_method.
16205 * record.h (enum record_method): New enum.
16206 * target-debug.h (target_debug_print_enum_record_method: New define.
16207 * target-delegates.c: Regenerate.
16208 * target.c (target_record_method): New function.
16209 * target.h: Include record.h.
16210 (struct target_ops) <to_record_method>: New field.
16211 (target_record_method): New export.
16213 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16215 * record.h (record_start, record_stop): New export.
16216 * record.c (record_start, record_stop): New function.
16218 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16220 * btrace.c (btrace_fetch): Copy function call segments pointer
16222 (btrace_clear): Clear the vector.
16223 (btrace_find_insn_by_number): Use binary search to find the correct
16224 function call segment.
16225 * btrace.h (brace_fun_p): New typedef.
16226 (struct btrace_thread_info) <functions>: New field.
16228 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16230 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
16231 * btrace.c (btrace_decode_error): ... here. New function.
16232 * btrace.h (btrace_decode_error): New export.
16234 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16236 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
16237 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
16238 btrace_find_insn_by_number): Remove special case for gaps.
16239 * btrace.h (btrace_insn_get_error): New export.
16240 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
16241 * record-btrace.c (btrace_insn_history): Print number for gaps.
16242 (record_btrace_info, record_btrace_goto): Handle gaps.
16244 2017-02-14 Tom Tromey <tom@tromey.com>
16247 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
16249 * python/py-evts.c (gdbpy_initialize_py_events): Add
16250 before_prompt registry.
16251 * python/py-events.h (events_object) <before_prompt>: New field.
16253 2017-02-14 Markus Metzger <markus.t.metzger@intel.com>
16255 * btrace.c (ftrace_new_switch): Preserve up link and flags.
16257 2017-02-13 Luis Machado <lgustavo@codesourcery.com>
16259 * symfile (_initialize_symfile): Add usage text to the load command's
16262 2017-02-10 Simon Marchi <simon.marchi@ericsson.com>
16264 * utils.c (defaulted_query): Don't query on secondary UIs.
16266 2017-02-10 Tom Tromey <tom@tromey.com>
16268 * rust-lang.c (rust_get_disr_info): Remove unused variable.
16270 2017-02-10 Tom Tromey <tom@tromey.com>
16272 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
16274 * python/py-type.c (typy_legacy_template_argument): Remove
16275 unnecessary "cleanup" local.
16277 2017-02-10 Tom Tromey <tom@tromey.com>
16279 * python/python.c (do_start_initialization): New function, from
16280 _initialize_python.
16281 (_initialize_python): Call do_start_initialization.
16282 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
16285 2017-02-10 Tom Tromey <tom@tromey.com>
16287 * python/py-prettyprint.c (pretty_print_one_value): Use
16290 2017-02-10 Tom Tromey <tom@tromey.com>
16292 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
16293 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
16295 * python/py-type.c (field_new): Use gdbpy_ref.
16296 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
16298 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
16299 (py_free_pspace): Likewise.
16300 (pspace_to_pspace_object): Likewise.
16301 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
16302 (py_free_objfile): Likewise.
16303 (objfile_to_objfile_object): Likewise.
16304 * python/py-inferior.c (delete_thread_object): Use
16306 (infpy_read_memory): Likewise.
16307 (py_free_inferior): Likewise.
16308 * python/py-evtregistry.c (create_eventregistry_object): Use
16310 * python/py-event.c (create_event_object): Use gdbpy_ref.
16312 2017-02-10 Tom Tromey <tom@tromey.com>
16314 * python/py-ref.h (gdbpy_ref_policy): Now a template.
16315 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
16317 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
16318 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
16319 python/py-exitedevent.c, python/py-finishbreakpoint.c,
16320 python/py-framefilter.c, python/py-function.c,
16321 python/py-inferior.c, python/py-infevents.c,
16322 python/py-linetable.c, python/py-newobjfileevent.c,
16323 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
16324 python/py-signalevent.c, python/py-stopevent.c,
16325 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
16326 python/py-unwind.c, python/py-utils.c, python/py-value.c,
16327 python/py-varobj.c, python/py-xmethods.c, python/python.c,
16328 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
16330 2017-02-10 Tom Tromey <tom@tromey.com>
16332 * ui-out.h (ui_out_emit_type): New class.
16333 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
16334 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
16335 and ui_out_emit_tuple.
16336 (enumerate_locals): Likewise.
16337 (py_mi_print_variables, py_print_locals, py_print_args): Use
16339 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
16341 * common/gdb_optional.h: New file.
16343 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
16345 * MAINTAINERS (Write After Approval): Update my e-mail address.
16347 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
16350 * breakpoint.c (_initialize_breakpoint): Update the help description
16351 of the 'commands' command to indicate that it takes a list argument.
16353 2017-02-09 Simon Marchi <simon.marchi@ericsson.com>
16355 * interps.c (current_interp_set_logging): Remove "return".
16357 2017-02-09 Gary Benson <gbenson@redhat.com>
16359 * symtab.c (add_symtab_completions): Prevent NULL pointer
16362 2017-02-08 Pedro Alves <palves@redhat.com>
16364 * interps.c (interp::interp): Remove reference to quiet_p.
16365 (interp_set): Make static. Remove dead "Switching to" output
16367 (interp_quiet_p, interp_set_quiet): Delete.
16368 (interpreter_exec_cmd): Don't set the interpreter quiet.
16369 * interps.h (interp_quiet_p): Make static.
16370 (class interp) <quiet_p>: Remove field
16372 2017-02-08 Jerome Guitton <guitton@adacore.com>
16374 * cli/cli-decode.c (find_command_name_length): Make it extern.
16375 * cli/cli-decode.h (find_command_name_length): Declare.
16376 * cli/cli-script.c (command_name_equals, line_first_arg):
16378 (process_next_line): Use cli-decode to parse command names.
16379 (build_command_line): Make args a constant pointer.
16381 2017-02-08 Jerome Guitton <guitton@adacore.com>
16383 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
16384 Remove case-insensitive search.
16386 2017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
16388 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
16389 at the end of the line. Avoids an ARI warning.
16391 2017-02-06 Luis Machado <lgustavo@codesourcery.com>
16393 * NEWS: Mention support for record/replay of Intel 64 rdrand and
16394 rdseed instructions.
16395 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
16397 2017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
16400 Provide and use sparc32 and sparc64 target description XML files.
16401 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
16402 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
16403 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
16404 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
16405 * features/sparc/sparc32-solaris.xml: New file.
16406 * features/sparc/sparc64-solaris.xml: New file.
16407 * features/sparc/sparc32-solaris.c: Generated.
16408 * features/sparc/sparc64-solaris.c: Generated.
16409 * sparc-tdep.h: Account for differences in target descriptions.
16410 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
16411 (sparc32_register_type): Use target provided registers.
16412 (validate_tdesc_registers): New function.
16413 (sparc32_gdbarch_init): Use tdesc_has_registers.
16414 Set pseudoregister functions.
16415 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
16416 (sparc64_register_type): Use target provided registers.
16417 (sparc64_init_abi): Set pseudoregister functions.
16419 2017-02-03 Tom Tromey <tom@tromey.com>
16422 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
16423 with a single member.
16425 2017-02-03 Pedro Alves <palves@redhat.com>
16427 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
16428 (cli_interp_base::~cli_interp_base): New.
16429 (cli_interp): New struct.
16430 (as_cli_interp): Cast the interp itself to cli_interp.
16431 (cli_interpreter_pre_command_loop): Rename to ...
16432 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
16434 (cli_interpreter_init): Rename to ...
16435 (cli_interp::init): ... this. Remove 'self' parameter. Use
16436 boolean. Make extern.
16437 (cli_interpreter_resume): Rename to ...
16438 (cli_interp::resume): ... this. Remove 'data' parameter. Make
16440 (cli_interpreter_suspend): Rename to ...
16441 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
16443 (cli_interpreter_exec): Rename to ...
16444 (cli_interp::exec): ... this. Remove 'data' parameter. Make
16446 (cli_interpreter_supports_command_editing): Rename to ...
16447 (cli_interp_base::supports_command_editing): ... this. Remove
16448 'interp' parameter. Make extern.
16449 (cli_ui_out): Rename to ...
16450 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
16452 (cli_set_logging): Rename to ...
16453 (cli_interp_base::set_logging): ... this. Remove 'interp'
16454 parameter. Make extern.
16455 (cli_interp_procs): Delete.
16456 (cli_interp_factory): Adjust to use "new".
16457 * cli/cli-interp.h: Include "interps.h".
16458 (struct cli_interp_base): New struct.
16459 * interps.c (struct interp): Delete. Fields moved to interps.h.
16460 (interp_new): Delete.
16461 (interp::interp, interp::~interp): New.
16462 (interp_set): Use bool, and return void. Assume the interpreter
16463 has suspend, init and resume methods, and that the all return
16465 (set_top_level_interpreter): interp_set returns void.
16466 (interp_ui_out): Adapt.
16467 (current_interp_set_logging): Adapt.
16468 (interp_data): Delete.
16469 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
16470 (interp_exec): Adapt.
16471 (top_level_interpreter_data): Delete.
16472 * interps.h (interp_init_ftype, interp_resume_ftype)
16473 (interp_suspend_ftype, interp_exec_ftype)
16474 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
16475 (class interp): New.
16476 (interp_new): Delete.
16477 (interp_set): Now returns void. Use bool.
16478 (interp_data, top_level_interpreter_data): Delete.
16479 * mi/mi-common.h: Include interps.h.
16480 (class mi_interp): Inherit from interp. Define a ctor. Declare
16481 init, resume, suspect, exec, interp_ui_out, set_logging and
16482 pre_command_loop methods.
16483 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
16484 (mi_interpreter_init): Rename to ...
16485 (mi_interp::init): ... this. Remove the 'interp' parameter, use
16486 bool, return void and make extern. Adjust.
16487 (mi_interpreter_resume): ... Rename to ...
16488 (mi_interp::resume): ... this. Remove the 'data' parameter,
16489 return void and make extern. Adjust.
16490 (mi_interpreter_suspend): ... Rename to ...
16491 (mi_interp::suspend): ... this. Remove the 'data' parameter,
16492 return void and make extern. Adjust.
16493 (mi_interpreter_exec): ... Rename to ...
16494 (mi_interp::exec): ... this. Remove the 'data' parameter and make
16496 (mi_interpreter_pre_command_loop): ... Rename to ...
16497 (mi_interp::pre_command_loop): ... this. Remove the 'self'
16498 parameter and make extern.
16499 (mi_on_normal_stop_1): Adjust.
16500 (mi_ui_out): Rename to ...
16501 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
16502 parameter and make extern. Adjust.
16503 (mi_set_logging): Rename to ...
16504 (mi_interp::set_logging): ... this. Remove the 'interp'
16505 parameter and make extern. Adjust.
16506 (mi_interp_procs): Delete.
16507 (mi_interp_factory): Adjust to use 'new'.
16508 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
16509 (mi_print_exception, mi_execute_command, mi_load_progress):
16511 * tui/tui-interp.c (tui_interp): New class.
16512 (as_tui_interp): Return a tui_interp pointer.
16513 (tui_on_normal_stop, tui_on_signal_received)
16514 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
16515 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
16516 to use interp::interp_ui_out.
16517 (tui_init): Rename to ...
16518 (tui_interp::init): ... this. Remove the 'self' parameter, use
16519 bool, return void and make extern. Adjust.
16520 (tui_resume): Rename to ...
16521 (tui_interp::resume): ... this. Remove the 'data' parameter,
16522 return void and make extern. Adjust.
16523 (tui_suspend): Rename to ...
16524 (tui_interp::suspend): ... this. Remove the 'data' parameter,
16525 return void and make extern. Adjust.
16526 (tui_ui_out): Rename to ...
16527 (tui_interp::interp_ui_out): ... this. Remove the 'self'
16528 parameter, and make extern. Adjust.
16529 (tui_exec): Rename to ...
16530 (tui_interp::exec): ... this. Remove the 'data' parameter and
16532 (tui_interp_procs): Delete.
16533 (tui_interp_factory): Use "new".
16535 2017-02-02 Tom Tromey <tom@tromey.com>
16537 * rust-exp.y (ends_raw_string, space_then_number)
16538 (rust_identifier_start_p): Return bool.
16539 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
16540 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
16541 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
16542 (rust_chartype_p): Return bool.
16543 (val_print_struct, rust_print_struct_def, rust_print_type):
16545 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
16548 2017-02-02 Tom Tromey <tom@tromey.com>
16550 * rust-lang.c: Reindent.
16552 2017-02-02 Tom Tromey <tom@tromey.com>
16554 * rust-lang.h (rust_crate_for_block): Update.
16555 * rust-lang.c (rust_crate_for_block): Return std::string.
16556 (rust_get_disr_info): Use std:;string, not
16557 gdb::unique_xmalloc_ptr.
16558 * rust-exp.y (crate_name): Update.
16560 2017-02-02 Pedro Alves <palves@redhat.com>
16562 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
16563 field out of gdb_disassembler_test and make it static.
16565 2017-02-02 Pedro Alves <palves@redhat.com>
16567 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
16568 mi1_interp and mi_interp fields.
16570 2017-02-02 Pedro Alves <palves@redhat.com>
16572 * cli/cli-interp.c (struct saved_output_files, saved_output):
16573 Moved from cli/cli-logging.c.
16574 (cli_set_logging): New function.
16575 (cli_interp_procs): Install cli_set_logging.
16576 * cli/cli-interp.h (make_logging_output, cli_set_logging):
16578 * cli/cli-logging.c (struct saved_output_files, saved_output):
16579 Moved to cli/cli-interp.c.
16580 (pop_output_files): Don't save outputs here.
16581 (make_logging_output): New function.
16582 (handle_redirections): Don't build tee nor save previous outputs
16584 * interps.c (current_interp_set_logging): Change prototype.
16585 Assume there's always a set_logging_proc method installed.
16586 * interps.h (interp_set_logging_ftype): Change prototype.
16587 (current_interp_set_logging): Change prototype and adjust comment.
16588 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
16589 use make_logging_output.
16590 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
16591 2017-02-02 Pedro Alves <palves@redhat.com>
16593 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
16595 (set_logging_overwrite): ... here.
16596 (logging_no_redirect_file): Delete.
16597 (set_logging_redirect): Don't handle redirection on the fly.
16598 Instead warn that "logging off" / "logging on" is necessary.
16599 (pop_output_files): Delete references to logging_no_redirect_file.
16600 (show_logging_command): Always speak in terms of what will happen
16601 once logging is reenabled.
16603 2017-02-02 Pedro Alves <palves@redhat.com>
16605 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
16607 2017-02-02 Pedro Alves <palves@redhat.com>
16609 * disasm.c (gdb_pretty_print_insn): Rename to ...
16610 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
16611 Remove gdbarch parameter. Adapt to clear the object's buffers
16612 instead of allocating new buffers, and to print using the object's
16613 gdb_disassembler instead of calling gdb_print_insn.
16614 (dump_insns): Use gdb_pretty_print_disassembler.
16615 * disasm.h (gdb_pretty_print_insn): Delete declaration.
16616 (gdb_pretty_print_disassembler): New class.
16617 * record-btrace.c (btrace_insn_history): Use
16618 gdb_pretty_print_disassembler.
16620 2017-02-02 Pedro Alves <palves@redhat.com>
16622 * ada-lang.c (type_as_string): Use string_file.
16623 * ada-valprint.c (ada_print_floating): Use string_file.
16624 * ada-varobj.c (ada_varobj_scalar_image)
16625 (ada_varobj_get_value_image): Use string_file.
16626 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
16627 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
16628 * breakpoint.c (update_inserted_breakpoint_locations)
16629 (insert_breakpoint_locations, reattach_breakpoints)
16630 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
16631 (print_it_watchpoint): Use string_file.
16632 (save_breakpoints): Use stdio_file.
16633 * c-exp.y (oper): Use string_file.
16634 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
16636 (pop_output_files): Use delete.
16637 (handle_redirections): Use stdio_file and tee_file.
16638 * cli/cli-setshow.c (do_show_command): Use string_file.
16639 * compile/compile-c-support.c (c_compute_program): Use
16641 * compile/compile-c-symbols.c (generate_vla_size): Take a
16642 'string_file &' instead of a 'ui_file *'.
16643 (generate_c_for_for_one_variable): Take a 'string_file &' instead
16644 of a 'ui_file *'. Use string_file.
16645 (generate_c_for_variable_locations): Take a 'string_file &'
16646 instead of a 'ui_file *'.
16647 * compile/compile-internal.h (generate_c_for_for_one_variable):
16648 Take a 'string_file &' instead of a 'ui_file *'.
16649 * compile/compile-loc2c.c (push, pushf, unary, binary)
16650 (print_label, pushf_register_address, pushf_register)
16651 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
16652 'ui_file *'. Adjust.
16653 * compile/compile.c (compile_to_object): Use string_file.
16654 * compile/compile.h (compile_dwarf_expr_to_c)
16655 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
16657 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
16658 (replace_typedefs_qualified_name): Use string_file and
16660 * disasm.c (gdb_pretty_print_insn): Use string_file.
16661 (gdb_disassembly): Adjust reference the null_stream global.
16662 (do_ui_file_delete): Delete.
16663 (gdb_insn_length): Use null_stream.
16664 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
16665 * dwarf2loc.c (dwarf2_compile_property_to_c)
16666 (locexpr_generate_c_location, loclist_generate_c_location): Take a
16667 'string_file &' instead of a 'ui_file *'.
16668 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
16669 * dwarf2read.c (do_ui_file_peek_last): Delete.
16670 (dwarf2_compute_name): Use string_file.
16671 * event-top.c (gdb_setup_readline): Use stdio_file.
16672 * gdbarch.sh (verify_gdbarch): Use string_file.
16673 * gdbtypes.c (safe_parse_type): Use null_stream.
16674 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
16676 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
16677 'string_file *' instead of a 'ui_file *'.
16678 (gdbscm_arch_disassemble): Use string_file.
16679 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
16680 * guile/scm-ports.c (class ioscm_file_port): Now a class that
16681 inherits from ui_file.
16682 (ioscm_file_port_delete, ioscm_file_port_rewind)
16683 (ioscm_file_port_put): Delete.
16684 (ioscm_file_port_write): Rename to ...
16685 (ioscm_file_port::write): ... this. Remove file_port_magic
16687 (ioscm_file_port_new): Delete.
16688 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
16690 * guile/scm-type.c (tyscm_type_name): Use string_file.
16691 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
16693 * infcmd.c (print_return_value_1): Use string_file.
16694 * infrun.c (print_target_wait_results): Use string_file.
16695 * language.c (add_language): Use string_file.
16696 * location.c (explicit_to_string_internal): Use string_file.
16697 * main.c (captured_main_1): Use null_file.
16698 * maint.c (maintenance_print_architecture): Use stdio_file.
16699 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
16700 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
16701 event_channel>: Change type to mi_console_file pointer.
16702 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
16703 (mi_console_file_delete): Delete.
16704 (struct mi_console_file): Delete.
16705 (mi_console_file_magic): Delete.
16706 (mi_console_file_new): Delete.
16707 (mi_console_file::mi_console_file): New.
16708 (mi_console_file_delete): Delete.
16709 (mi_console_file_fputs): Delete.
16710 (mi_console_file::write): New.
16711 (mi_console_raw_packet): Delete.
16712 (mi_console_file::flush): New.
16713 (mi_console_file_flush): Delete.
16714 (mi_console_set_raw): Rename to ...
16715 (mi_console_file::set_raw): ... this.
16716 * mi/mi-console.h (class mi_console_file): New class.
16717 (mi_console_file_new, mi_console_set_raw): Delete.
16718 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
16719 (mi_set_logging): Use delete and tee_file. Adjust.
16720 * mi/mi-main.c (output_register): Use string_file.
16721 (mi_cmd_data_evaluate_expression): Use string_file.
16722 (mi_cmd_data_read_memory): Use string_file.
16723 (mi_cmd_execute, print_variable_or_computed): Use string_file.
16724 * mi/mi-out.c (mi_ui_out::main_stream): New.
16725 (mi_ui_out::rewind): Use main_stream and
16727 (mi_ui_out::put): Use main_stream and string_file.
16728 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
16729 Allocate a 'string_file' instead.
16730 (mi_out_new): Don't allocate a mem_fileopen stream here.
16731 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
16732 (mi_ui_out::main_stream): Declare method.
16733 * printcmd.c (eval_command): Use string_file.
16734 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
16735 * python/py-arch.c (archpy_disassemble): Use string_file.
16736 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
16737 * python/py-frame.c (frapy_str): Use string_file.
16738 * python/py-framefilter.c (py_print_type, py_print_single_arg):
16740 * python/py-type.c (typy_str): Use string_file.
16741 * python/py-unwind.c (unwind_infopy_str): Use string_file.
16742 * python/py-value.c (valpy_str): Use string_file.
16743 * record-btrace.c (btrace_insn_history): Use string_file.
16744 * regcache.c (regcache_print): Use stdio_file.
16745 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
16746 * remote.c (escape_buffer): Use string_file.
16747 * rust-lang.c (rust_get_disr_info): Use string_file.
16748 * serial.c (serial_open_ops_1): Use stdio_file.
16749 (do_serial_close): Use delete.
16750 * stack.c (print_frame_arg): Use string_file.
16751 (print_frame_args): Remove local mem_fileopen stream, not used.
16752 (print_frame): Use string_file.
16753 * symmisc.c (maintenance_print_symbols): Use stdio_file.
16754 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
16755 Take a 'string_file *' instead of a 'ui_file *'.
16756 * top.c (new_ui): Use stdio_file and stderr_file.
16757 (free_ui): Use delete.
16758 (execute_command_to_string): Use string_file.
16759 (quit_confirm): Use string_file.
16760 * tracepoint.c (collection_list::append_exp): Use string_file.
16761 * tui/tui-disasm.c (tui_disassemble): Use string_file.
16762 * tui/tui-file.c: Don't include "ui-file.h".
16763 (enum streamtype, struct tui_stream): Delete.
16764 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
16765 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
16766 (tui_file::tui_file): New method.
16767 (tui_file_fputs): Delete.
16768 (tui_file_get_strbuf): Delete.
16769 (tui_file::puts): New method.
16770 (tui_file_adjust_strbuf): Delete.
16771 (tui_file_flush): Delete.
16772 (tui_file::flush): New method.
16773 * tui/tui-file.h: Tweak intro comment.
16775 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
16776 (tui_file_adjust_strbuf): Delete declarations.
16777 (class tui_file): New class.
16778 * tui/tui-io.c (tui_initialize_io): Use tui_file.
16779 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
16780 (tui_register_format): Use string_stream.
16781 * tui/tui-stack.c (tui_make_status_line): Use string_file.
16782 (tui_get_function_from_frame): Use string_file.
16783 * typeprint.c (type_to_string): Use string_file.
16784 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
16785 (null_stream): New global.
16786 (ui_file_delete): Delete.
16787 (ui_file::ui_file): New.
16788 (null_file_isatty): Delete.
16789 (ui_file::~ui_file): New.
16790 (null_file_rewind): Delete.
16791 (ui_file::printf): New.
16792 (null_file_put): Delete.
16793 (null_file_flush): Delete.
16794 (ui_file::putstr): New.
16795 (null_file_write): Delete.
16796 (ui_file::putstrn): New.
16797 (null_file_read): Delete.
16798 (ui_file::putc): New.
16799 (null_file_fputs): Delete.
16800 (null_file_write_async_safe): Delete.
16801 (ui_file::vprintf): New.
16802 (null_file_delete): Delete.
16803 (null_file::write): New.
16804 (null_file_fseek): Delete.
16805 (null_file::puts): New.
16806 (ui_file_data): Delete.
16807 (null_file::write_async_safe): New.
16808 (gdb_flush, ui_file_isatty): Adjust.
16809 (ui_file_put, ui_file_rewind): Delete.
16810 (ui_file_write): Adjust.
16811 (ui_file_write_for_put): Delete.
16812 (ui_file_write_async_safe, ui_file_read): Adjust.
16813 (ui_file_fseek): Delete.
16814 (fputs_unfiltered): Adjust.
16815 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
16816 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
16817 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
16818 (set_ui_file_data): Delete.
16819 (string_file::~string_file, string_file::write)
16820 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
16821 (do_ui_file_as_string, ui_file_as_string): Delete.
16822 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
16823 (struct mem_file): Delete.
16824 (mem_file_new): Delete.
16825 (stdio_file::stdio_file): New.
16826 (mem_file_delete): Delete.
16827 (stdio_file::stdio_file): New.
16828 (mem_fileopen): Delete.
16829 (stdio_file::~stdio_file): New.
16830 (mem_file_rewind): Delete.
16831 (stdio_file::set_stream): New.
16832 (mem_file_put): Delete.
16833 (stdio_file::open): New.
16834 (mem_file_write): Delete.
16835 (stdio_file_magic, struct stdio_file): Delete.
16836 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
16837 (stdio_file::flush): New.
16838 (stdio_file_read): Rename to ...
16839 (stdio_file::read): ... this. Adjust.
16840 (stdio_file_write): Rename to ...
16841 (stdio_file::write): ... this. Adjust.
16842 (stdio_file_write_async_safe): Rename to ...
16843 (stdio_file::write_async_safe) ... this. Adjust.
16844 (stdio_file_fputs): Rename to ...
16845 (stdio_file::puts) ... this. Adjust.
16846 (stdio_file_isatty): Delete.
16847 (stdio_file_fseek): Delete.
16848 (stdio_file::isatty): New.
16849 (stderr_file_write): Rename to ...
16850 (stderr_file::write) ... this. Adjust.
16851 (stderr_file_fputs): Rename to ...
16852 (stderr_file::puts) ... this. Adjust.
16853 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
16854 (stderr_file::stderr_file): New.
16855 (tee_file_magic): Delete.
16856 (struct tee_file): Delete.
16857 (tee_file::tee_file): New.
16858 (tee_file_new): Delete.
16859 (tee_file::~tee_file): New.
16860 (tee_file_delete): Delete.
16861 (tee_file_flush): Rename to ...
16862 (tee_file::flush): ... this. Adjust.
16863 (tee_file_write): Rename to ...
16864 (tee_file::write): ... this. Adjust.
16865 (tee_file::write_async_safe): New.
16866 (tee_file_fputs): Rename to ...
16867 (tee_file::puts): ... this. Adjust.
16868 (tee_file_isatty): Rename to ...
16869 (tee_file::isatty): ... this. Adjust.
16870 * ui-file.h (struct obstack, struct ui_file): Don't
16872 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
16873 (ui_file_write_ftype)
16874 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
16875 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
16876 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
16877 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
16878 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
16879 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
16880 (set_ui_file_fseek): Delete.
16881 (ui_file_data, ui_file_delete, ui_file_rewind)
16882 (struct ui_file): New.
16884 (class null_file): New.
16885 (null_stream): Declare.
16886 (ui_file_write_for_put, ui_file_put): Delete.
16887 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
16889 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
16890 (gdb_fopen, tee_file_new): Delete.
16891 (struct string_file): New.
16892 (struct stdio_file): New.
16893 (stdio_file_up): New.
16894 (struct stderr_file): New.
16895 (class tee_file): New.
16896 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
16897 of a 'ui_file *'. Adjust.
16898 * ui-out.h (class ui_out) <field_stream>: Likewise.
16899 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
16900 (null_stream): Delete.
16901 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
16903 * utils.h (struct ui_file): Delete forward declaration..
16904 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
16905 (error_stream): Take a 'string_file &' instead of a
16907 * varobj.c (varobj_value_get_print_value): Use string_file.
16908 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
16909 * gdbarch.c: Regenerate.
16911 2017-02-02 Pedro Alves <palves@redhat.com>
16913 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
16914 (gdb_pretty_print_insn): ... this. Now a free function. Add back
16915 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
16916 Adjust to call gdb_print_insn instead of
16917 gdb_disassembler::print_insn.
16918 (dump_insns, do_mixed_source_and_assembly_deprecated)
16919 (do_mixed_source_and_assembly, do_assembly_only): Add back a
16920 'gdbarch' parameter. Remove gdb_disassembler parameter.
16921 (gdb_disassembly): Don't allocate a gdb_disassembler here.
16922 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
16924 (gdb_pretty_print_insn): Re-add declaration.
16925 * record-btrace.c (btrace_insn_history): Don't allocate a
16926 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
16928 2017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
16930 * disasm.h (gdb_disassembly): Remove file_string parameter.
16931 * disasm.c (gdb_disassembly): Likewise.
16932 * cli/cli-cmds.c (print_disassembly): Adapt.
16933 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
16934 * stack.c (do_gdb_disassembly): Likewise.
16936 2017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
16938 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
16939 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
16940 targets. And if the implicit value is longer than needed, extract
16941 the first bytes instead of the "least significant" ones.
16943 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
16945 * btrace.c (btrace_enable): Do not call btrace_add_pc for
16946 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
16947 (btrace_fetch): Assert can_access_registers_ptid.
16948 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
16949 validate_registers_access.
16951 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
16953 * gdbthread.h (can_access_registers_ptid): New.
16954 * thread.c (can_access_registers_ptid): New.
16956 2017-02-01 Pedro Alves <palves@redhat.com>
16958 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
16960 2017-01-31 Pedro Alves <palves@redhat.com>
16962 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
16965 2017-01-31 Pedro Alves <palves@redhat.com>
16967 * stack.c (print_frame_args): Remove local mem_fileopen stream,
16970 2017-01-31 Pedro Alves <palves@redhat.com>
16972 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
16974 2017-01-31 Pedro Alves <palves@redhat.com>
16976 * common/scoped_restore.h
16977 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
16978 change the value's parameter type to T2.
16979 (make_scoped_restore): Likewise.
16981 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
16982 Richard Henderson <rth@redhat.com>
16984 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
16985 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
16986 GS_BASE for older kernels.
16987 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
16988 GS_BASE for older kernels.
16989 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
16990 and GS_BASE to the offset table.
16991 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
16992 system register group.
16993 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
16995 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
16997 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
16998 AMD64_GSBASE_REGNUM.
16999 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
17000 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
17001 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
17002 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
17003 i386/64bit-segments.xml in those rules.
17004 * features/i386/64bit-segments.xml: New file.
17005 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
17006 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
17007 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
17008 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
17009 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
17010 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
17011 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
17012 * features/i386/amd64-avx-linux.c: Regenerated.
17013 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
17014 * features/i386/amd64-avx-mpx.c: Regenerated.
17015 * features/i386/amd64-avx512-linux.c: Regenerated.
17016 * features/i386/amd64-linux.c: Regenerated.
17017 * features/i386/amd64-mpx-linux.c: Regenerated.
17018 * features/i386/i386-avx-mpx-linux.c: Regenerated.
17019 * features/i386/i386-avx-mpx.c: Regenerated.
17020 * features/i386/x32-avx-linux.c: Regenerated.
17021 * features/i386/x32-avx512-linux.c: Regenerated.
17022 * regformats/i386/amd64-avx-linux.dat: Regenerated.
17023 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
17024 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
17025 * regformats/i386/amd64-linux.dat: Regenerated.
17026 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
17027 * regformats/i386/x32-avx-linux.dat: Regenerated.
17028 * regformats/i386/x32-avx512-linux.dat: Regenerated.
17029 * regformats/i386/x32-linux.dat: Regenerated.
17031 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
17033 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
17034 Set to AMD64_NUM_REGS.
17036 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
17038 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
17039 that checks validity of a register number.
17041 2017-01-27 Kees Cook <keescook@google.com>
17043 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
17044 fetch_fpregs if target has fpa registers.
17045 (arm_linux_store_inferior_registers): Call store_fpregs if target
17048 2017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
17050 * cris-tdep.c (cris_gdbarch_init): Remove check for
17051 info.byte_order and force it to BFD_ENDIAN_LITTLE.
17053 2017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
17055 * corelow.c (get_core_register_section): Check for regset
17056 existence before checking for REGSET_VARIABLE_SIZE.
17058 2017-01-26 Yao Qi <yao.qi@linaro.org>
17059 Pedro Alves <palves@redhat.com>
17062 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
17063 call memory_error, save memaddr instead.
17064 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
17065 negative, cal memory_error.
17066 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
17068 2017-01-26 Yao Qi <yao.qi@linaro.org>
17070 * disasm-selftests.c (memory_error_test): New function.
17071 (_initialize_disasm_selftests): Register memory_error_test.
17073 2017-01-26 Yao Qi <yao.qi@linaro.org>
17075 * Makefile.in (SFILES): Add disasm-selftests.c and
17077 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
17078 * disasm-selftests.c: New file.
17079 * selftest-arch.c: New file.
17080 * selftest-arch.h: New file.
17082 2017-01-26 Yao Qi <yao.qi@linaro.org>
17084 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
17085 to bfd_arch_mep. Don't return 0 if section is not
17086 found. Call print_insn_mep.
17088 2017-01-26 Pedro Alves <palves@redhat.com>
17089 Yao Qi <yao.qi@linaro.org>
17091 * arm-tdep.c: Include "disasm.h".
17092 (gdb_print_insn_arm): Update code to get gdbarch.
17093 * disasm.c (dis_asm_read_memory): Change it to
17094 gdb_disassembler::dis_asm_read_memory.
17095 (dis_asm_memory_error): Likewise.
17096 (dis_asm_print_address): Likewise.
17097 (gdb_pretty_print_insn): Change it to
17098 gdb_disassembler::pretty_print_insn.
17099 (dump_insns): Add one argument gdb_disassemlber. All
17101 (do_mixed_source_and_assembly_deprecated): Likewise.
17102 (do_mixed_source_and_assembly): Likewise.
17103 (do_assembly_only): Likewise.
17104 (gdb_disassembler::gdb_disassembler): New.
17105 (gdb_disassembler::print_insn): New.
17106 * disasm.h (class gdb_disassembler): New.
17107 (gdb_pretty_print_insn): Remove declaration.
17108 (gdb_disassemble_info): Likewise.
17109 * guile/scm-disasm.c (class gdbscm_disassembler): New.
17110 (gdbscm_disasm_read_memory_worker): Update.
17111 (gdbscm_disasm_read_memory): Update.
17112 (gdbscm_disasm_memory_error): Remove.
17113 (gdbscm_disasm_print_address): Remove.
17114 (gdbscm_disassembler::gdbscm_disassembler): New.
17115 (gdbscm_print_insn_from_port): Update.
17116 * mips-tdep.c: Include disasm.h.
17117 (gdb_print_insn_mips): Update code to get gdbarch.
17118 * record-btrace.c (btrace_insn_history): Update.
17119 * spu-tdep.c: Include disasm.h.
17120 (struct spu_dis_asm_data): Remove.
17121 (struct spu_dis_asm_info): New.
17122 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
17124 (gdb_print_insn_spu): Cast disassemble_info to
17127 2017-01-26 Yao Qi <yao.qi@linaro.org>
17129 * disasm.c (do_ui_file_delete): Delete.
17130 (gdb_insn_length): Move code creating stream to ...
17131 * utils.c (null_stream): ... here. New function.
17132 * utils.h (null_stream): Declare.
17134 2017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
17136 * python/py-inferior.c (find_thread_object): Return directly
17137 from the loop. Remove "found" variable.
17139 2017-01-21 Joel Brobecker <brobecker@adacore.com>
17141 GDB 7.12.1 released.
17143 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
17145 * python/py-function.c (fnpy_call): Reorder declarations to have
17146 the gdbpy_enter object declared first.
17147 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
17149 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
17152 * python/python-internal.h (PyMem_RawMalloc): Define for
17154 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
17155 PyMem_RawMalloc instead of PyMem_Malloc.
17157 2017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
17158 Luis Machado <lgustavo@codesourcery.com>
17160 * NEWS (New commands): Mention flash-erase.
17161 (New MI commands): Mention target-flash-erase.
17162 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
17164 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
17165 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
17166 * target.c (flash_erase_command): New function.
17167 (initialize_targets): Add new flash-erase command.
17168 * target.h (flash_erase_command): New declaration.
17170 2017-01-20 Joel Brobecker <brobecker@adacore.com>
17172 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
17173 HAVE_SYS_PROCFS_H is defined.
17175 2017-01-18 Alan Hayward <alan.hayward@arm.com>
17177 * remote.c (struct cached_reg): Change data into a pointer.
17178 * (stop_reply_dtr): Free data pointers before deleting vector.
17179 (process_stop_reply): Likewise.
17180 (remote_parse_stop_reply): Allocate space for data
17182 2017-01-18 Alan Hayward <alan.hayward@arm.com>
17184 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
17186 (amd64_pseudo_register_read_value): Likewise.
17187 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
17188 (store_register_using_P): Likewise.
17189 * regcache.c (regcache_xfer_part): Likewise.
17191 2017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
17193 Split real and pseudo registers.
17194 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
17195 (sparc32_pseudo_regnum): New enum.
17196 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
17197 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
17198 (SPARC32_CP0_REGISTERS): New macro.
17199 (sparc32_pseudo_register_name): New function.
17200 (sparc32_register_name): Use sparc32_pseudo_register_name.
17201 (sparc32_pseudo_register_type): New function.
17202 (sparc32_register_type): Use sparc32_pseudo_register_type.
17203 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
17204 pseudo register numbers.
17205 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
17206 (SPARC64_CP0_REGISTERS): New macro.
17207 (sparc64_pseudo_register_name): New function.
17208 (sparc64_register_name): Use sparc64_pseudo_register_name.
17209 (sparc64_pseudo_register_type): New function.
17210 (sparc64_register_type): Use sparc64_pseudo_register_type.
17211 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
17212 pseudo register numbers.
17213 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
17214 sparc64_store_arguments): Handle pseudo register numbers.
17216 2017-01-13 Yao Qi <yao.qi@linaro.org>
17218 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
17219 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
17221 (getpkt_or_notif_sane_1): Likewise.
17223 2017-01-13 Yao Qi <yao.qi@linaro.org>
17225 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
17226 of CC. Pass "-x c++-header" instead of "-x c".
17228 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
17230 * remote.c (remote_can_async_p): Update comment.
17232 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
17234 * linux-nat.c (linux_nat_can_async_p): Update comment.
17236 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
17238 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
17240 2017-01-11 Simon Marchi <simon.marchi@ericsson.com>
17242 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
17244 2017-01-10 Tom Tromey <tom@tromey.com>
17246 * python/py-type.c (typy_legacy_template_argument): Update.
17247 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
17248 ~demangle_parse_info): Declare new members.
17249 (cp_demangled_name_to_comp): Return unique_ptr.
17250 (cp_demangled_name_parse_free)
17251 (make_cleanup_cp_demangled_name_parse_free)
17252 (cp_new_demangle_parse_info): Remove.
17253 * cp-support.c (do_demangled_name_parse_free_cleanup)
17254 (make_cleanup_cp_demangled_name_parse_free): Remove.
17255 (inspect_type, cp_canonicalize_string_full)
17256 (cp_canonicalize_string): Update.
17257 (mangled_name_to_comp): Change return type.
17258 (cp_class_name_from_physname, method_name_from_physname)
17259 (cp_func_name, cp_remove_params): Update.
17260 * cp-name-parser.y (demangle_parse_info): New constructor, from
17261 cp_new_demangle_parse_info.
17262 (~demangle_parse_info): New destructor, from
17263 cp_demangled_name_parse_free.
17264 (cp_merge_demangle_parse_infos): Update.
17265 (cp_demangled_name_to_comp): Change return type.
17267 2017-01-10 Tom Tromey <tom@tromey.com>
17269 * top.c (prevent_dont_repeat): Change return type.
17270 * python/python.c (execute_gdb_command): Use std::string.
17272 * guile/guile.c (gdbscm_execute_gdb_command): Update.
17273 * command.h (prevent_dont_repeat): Change return type.
17274 * breakpoint.c (bpstat_do_actions_1): Update.
17276 2017-01-10 Tom Tromey <tom@tromey.com>
17278 * value.h (scoped_value_mark::~scoped_value_mark): Call
17280 (scoped_value_mark::free_to_mark): New method.
17281 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
17284 2017-01-10 Tom Tromey <tom@tromey.com>
17286 * python/py-value.c (valpy_dereference, valpy_referenced_value)
17287 (valpy_reference_value, valpy_const_value, valpy_get_address)
17288 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
17289 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
17290 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
17291 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
17293 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
17294 * value.h (scoped_value_mark): New class.
17296 2017-01-10 Tom Tromey <tom@tromey.com>
17298 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
17299 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
17300 * psymtab.c (discard_psymtabs_upto): Remove.
17301 (make_cleanup_discard_psymtabs): Remove.
17302 (struct psymtab_state): Remove.
17304 2017-01-10 Tom Tromey <tom@tromey.com>
17306 * record-full.c (record_full_save_cleanups): Remove.
17307 (record_full_save): Use gdb::unlinker.
17308 * gcore.c (do_bfd_delete_cleanup): Remove.
17309 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
17311 * dwarf2read.c (unlink_if_set): Remove.
17312 (write_psymtabs_to_index): Use gdb::unlinker.
17313 * common/gdb_unlinker.h: New file.
17315 2017-01-10 Tom Tromey <tom@tromey.com>
17317 * windows-tdep.c (windows_xfer_shared_library): Update.
17318 * windows-nat.c (windows_make_so): Update.
17319 * utils.h (make_cleanup_bfd_unref): Remove.
17320 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
17321 * symfile.h (symfile_bfd_open)
17322 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
17323 * symfile.c (read_symbols, symbol_file_add)
17324 (separate_debug_file_exists): Update.
17325 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
17326 (generic_load, reread_symbols): Update.
17327 * symfile-mem.c (symbol_file_add_from_memory): Update.
17328 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
17329 (spu_symbol_file_add_from_memory): Update.
17330 * solist.h (struct target_so_ops) <bfd_open>: Return
17332 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
17333 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
17335 (solib_map_sections, reload_shared_libraries_1): Update.
17336 * solib-svr4.c (enable_break): Update.
17337 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
17338 * solib-frv.c (enable_break2): Update.
17339 * solib-dsbt.c (enable_break): Update.
17340 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
17342 (darwin_solib_get_all_image_info_addr_at_init): Update.
17343 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
17344 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
17345 * record-full.c (record_full_save): Update.
17346 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
17347 * procfs.c (insert_dbx_link_bpt_in_file): Update.
17348 * minidebug.c (find_separate_debug_file_in_section): Return
17350 * machoread.c (macho_add_oso_symfile): Change abfd to
17352 (macho_symfile_read_all_oso): Update.
17353 (macho_check_dsym): Return gdb_bfd_ref_ptr.
17354 (macho_symfile_read): Update.
17355 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
17356 (jit_bfd_try_read_symtab): Update.
17357 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
17358 (gdb_bfd_openw, gdb_bfd_openr_iovec)
17359 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
17361 (gdb_bfd_ref_policy): New struct.
17362 (gdb_bfd_ref_ptr): New typedef.
17363 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
17364 (gdb_bfd_openw, gdb_bfd_openr_iovec)
17365 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
17367 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
17368 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
17369 (gcore_command): Update.
17370 * exec.c (exec_file_attach): Update.
17371 * elfread.c (elf_symfile_read): Update.
17372 * dwarf2read.c (dwarf2_get_dwz_file): Update.
17373 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
17374 (open_and_init_dwo_file): Update.
17375 (open_dwp_file): Return gdb_bfd_ref_ptr.
17376 (open_and_init_dwp_file): Update.
17377 * corelow.c (core_open): Update.
17378 * compile/compile-object-load.c (compile_object_load): Update.
17379 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
17380 * coffread.c (coff_symfile_read): Update.
17381 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
17382 gdb_bfd_ref_ptr. Rename.
17383 (dump_bfd_file, restore_command): Update.
17384 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
17385 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
17386 (find_separate_debug_file_by_buildid): Update.
17388 2017-01-10 Tom Tromey <tom@tromey.com>
17390 * common/gdb_ref_ptr.h: New file.
17391 * python/py-ref.h (struct gdbpy_ref_policy): New.
17392 (gdbpy_ref): Now a typedef.
17394 2017-01-10 Tom Tromey <tom@tromey.com>
17396 * utils.h (make_cleanup_htab_delete): Don't declare.
17397 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
17399 * linespec.c (decode_compound_collector): Add constructor,
17401 (lookup_prefix_sym): Remove cleanup.
17402 (symtab_collector): Add constructor, destructor.
17403 (collect_symtabs_from_filename): Remove cleanup.
17404 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
17405 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
17407 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
17408 * dwarf2read.c (dw2_expand_symtabs_matching)
17409 (dw2_map_symbol_filenames, dwarf_decode_macros)
17410 (write_psymtabs_to_index): Use htab_up.
17411 * dwarf2loc.c (func_verify_no_selftailcall)
17412 (call_site_find_chain_1, func_verify_no_selftailcall)
17413 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
17414 std::vector, gdb::unique_xmalloc_ptr.
17415 (call_sitep): Remove typedef.
17416 (dwarf2_locexpr_baton_eval): Remove unused variable.
17418 2017-01-10 Tom Tromey <tom@tromey.com>
17420 * python/python-internal.h (make_cleanup_py_decref)
17421 (make_cleanup_py_xdecref): Don't declare.
17422 * python/py-utils.c (py_decref, make_cleanup_py_decref)
17423 (py_xdecref, make_cleanup_py_xdecref): Remove.
17425 2017-01-10 Tom Tromey <tom@tromey.com>
17427 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
17428 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
17430 2017-01-10 Tom Tromey <tom@tromey.com>
17432 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
17434 2017-01-10 Tom Tromey <tom@tromey.com>
17436 * python/py-utils.c (unicode_to_encoded_string)
17437 (python_string_to_target_string)
17438 (python_string_to_target_python_string)
17439 (python_string_to_host_string, gdbpy_obj_to_string)
17440 (get_addr_from_python): Use gdbpy_ref.
17442 2017-01-10 Tom Tromey <tom@tromey.com>
17444 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
17447 2017-01-10 Tom Tromey <tom@tromey.com>
17449 * python/python.c (eval_python_command, gdbpy_decode_line)
17450 (gdbpy_run_events, gdbpy_start_type_printers)
17451 (gdbpy_apply_type_printers): Use gdbpy_ref.
17453 2017-01-10 Tom Tromey <tom@tromey.com>
17455 * python/py-param.c (get_doc_string, compute_enum_values): Use
17458 2017-01-10 Tom Tromey <tom@tromey.com>
17460 * python/py-inferior.c (find_thread_object, build_inferior_list):
17463 2017-01-10 Tom Tromey <tom@tromey.com>
17465 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
17467 2017-01-10 Tom Tromey <tom@tromey.com>
17469 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
17472 2017-01-10 Tom Tromey <tom@tromey.com>
17474 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
17476 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
17479 2017-01-10 Tom Tromey <tom@tromey.com>
17481 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
17484 2017-01-10 Tom Tromey <tom@tromey.com>
17486 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
17487 decref results of PyArg_ParseTupleAndKeywords.
17489 2017-01-10 Tom Tromey <tom@tromey.com>
17491 * python/python.c (python_run_simple_file): Use
17492 unique_xmalloc_ptr, gdbpy_ref.
17494 2017-01-10 Tom Tromey <tom@tromey.com>
17496 * python/py-prettyprint.c (print_stack_unless_memory_error)
17497 (print_string_repr, print_children): Use gdbpy_ref.
17498 (dummy_python_frame): New class.
17499 (dummy_python_frame::dummy_python_frame): Rename from
17500 push_dummy_python_frame.
17501 (py_restore_tstate): Remove.
17503 2017-01-10 Tom Tromey <tom@tromey.com>
17505 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
17507 2017-01-10 Tom Tromey <tom@tromey.com>
17509 * python/python.c (ensure_python_env, restore_python_env):
17511 * python/python-internal.h (ensure_python_env): Don't declare.
17512 * varobj.h (varobj_ensure_python_env): Don't declare.
17513 * varobj.c (varobj_ensure_python_env): Remove.
17515 2017-01-10 Tom Tromey <tom@tromey.com>
17517 * varobj.c (varobj_value_get_print_value): Use
17518 gdbpy_enter_varobj.
17520 2017-01-10 Tom Tromey <tom@tromey.com>
17522 * python/py-prettyprint.c (print_string_repr, print_children):
17524 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
17526 * varobj.c (varobj_value_get_print_value): Update.
17527 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
17529 2017-01-10 Tom Tromey <tom@tromey.com>
17531 * varobj.c (varobj_get_display_hint)
17532 (dynamic_varobj_has_child_method, install_new_value_visualizer)
17533 (varobj_set_visualizer, free_variable): Use
17534 gdbpy_enter_varobj.
17536 2017-01-10 Tom Tromey <tom@tromey.com>
17538 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
17539 (do_finish_initialization): New function. Use gdbpy_ref.
17540 (gdbpy_finish_initialization): Use gdbpy_enter. Call
17541 do_finish_initialization.
17543 2017-01-10 Tom Tromey <tom@tromey.com>
17545 * python/py-param.c (get_set_value, get_show_value): Use
17546 gdbpy_enter, gdbpy_ref.
17548 2017-01-10 Tom Tromey <tom@tromey.com>
17550 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
17552 2017-01-10 Tom Tromey <tom@tromey.com>
17554 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
17556 2017-01-10 Tom Tromey <tom@tromey.com>
17558 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
17559 Use gdbpy_enter_varobj.
17561 2017-01-10 Tom Tromey <tom@tromey.com>
17563 * varobj.c (gdbpy_enter_varobj): New constructor.
17564 * python/python-internal.h (gdbpy_enter_varobj): New class.
17565 * python/py-varobj.c (py_varobj_get_iterator): Use
17566 gdbpy_enter_varobj.
17568 2017-01-10 Tom Tromey <tom@tromey.com>
17570 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
17571 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
17572 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
17573 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
17574 unique_xmalloc_ptr.
17575 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
17577 2017-01-10 Tom Tromey <tom@tromey.com>
17579 * python/py-xmethods.c (invoke_match_method): Use
17582 2017-01-10 Tom Tromey <tom@tromey.com>
17584 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
17585 gdbpy_enter, gdbpy_ref.
17587 2017-01-10 Tom Tromey <tom@tromey.com>
17589 * python/python.c (python_interactive_command): Use gdbpy_enter.
17591 2017-01-10 Tom Tromey <tom@tromey.com>
17593 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
17596 2017-01-10 Tom Tromey <tom@tromey.com>
17598 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
17599 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
17601 2017-01-10 Tom Tromey <tom@tromey.com>
17603 * utils.h (htab_deleter): New struct.
17604 (htab_up): New typedef.
17605 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
17606 gdbpy_enter, gdbpy_ref, htab_up.
17608 2017-01-10 Tom Tromey <tom@tromey.com>
17610 * python/py-unwind.c (pending_frame_invalidate): Remove.
17611 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
17613 2017-01-10 Tom Tromey <tom@tromey.com>
17615 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
17616 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
17618 2017-01-10 Tom Tromey <tom@tromey.com>
17620 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
17622 2017-01-10 Tom Tromey <tom@tromey.com>
17624 * python/python.c (gdbpy_eval_from_control_command)
17625 (gdbpy_source_script, gdbpy_run_events)
17626 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
17627 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
17630 2017-01-10 Tom Tromey <tom@tromey.com>
17632 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
17634 2017-01-10 Tom Tromey <tom@tromey.com>
17636 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
17638 2017-01-10 Tom Tromey <tom@tromey.com>
17640 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
17641 (python_on_inferior_call_pre, python_on_inferior_call_post)
17642 (python_on_memory_change, python_on_register_change)
17643 (python_inferior_exit, python_new_objfile, add_thread_object)
17644 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
17646 2017-01-10 Tom Tromey <tom@tromey.com>
17648 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
17649 (bpfinishpy_handle_exit): Use gdbpy_enter.
17651 2017-01-10 Tom Tromey <tom@tromey.com>
17653 * python/py-cmd.c (cmdpy_destroyer)
17654 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
17657 2017-01-10 Tom Tromey <tom@tromey.com>
17659 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
17661 (gdbpy_breakpoint_has_cond): Likewise.
17663 2017-01-10 Tom Tromey <tom@tromey.com>
17665 * python/python.c (gdbpy_enter): New constructor.
17666 (~gdbpy_enter): New destructor.
17667 (restore_python_env, ensure_python_env): Rewrite.
17668 * python/python-internal.h (gdbpy_enter): New class.
17670 2017-01-10 Tom Tromey <tom@tromey.com>
17672 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
17674 2017-01-10 Tom Tromey <tom@tromey.com>
17676 * python/py-value.c (value_has_field, get_field_flag)
17677 (get_field_type, valpy_getitem, convert_value_from_python): Use
17680 2017-01-10 Tom Tromey <tom@tromey.com>
17682 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
17685 2017-01-10 Tom Tromey <tom@tromey.com>
17687 * python/py-prettyprint.c (search_pp_list)
17688 (find_pretty_printer_from_objfiles)
17689 (find_pretty_printer_from_progspace)
17690 (find_pretty_printer_from_gdb, find_pretty_printer)
17691 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
17694 2017-01-10 Tom Tromey <tom@tromey.com>
17696 * python/py-param.c (call_doc_function): Use gdbpy_ref.
17698 2017-01-10 Tom Tromey <tom@tromey.com>
17700 * python/py-linetable.c (build_line_table_tuple_from_pcs)
17701 (ltpy_get_all_source_lines): Use gdbpy_ref.
17703 2017-01-10 Tom Tromey <tom@tromey.com>
17705 * python/py-framefilter.c (extract_sym, extract_value)
17706 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
17709 2017-01-10 Tom Tromey <tom@tromey.com>
17711 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
17713 2017-01-10 Tom Tromey <tom@tromey.com>
17715 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
17717 2017-01-10 Tom Tromey <tom@tromey.com>
17719 * python/py-function.c (convert_values_to_python, fnpy_init): Use
17722 2017-01-10 Tom Tromey <tom@tromey.com>
17724 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
17726 2017-01-10 Tom Tromey <tom@tromey.com>
17728 * python/py-type.c (convert_field, make_fielditem, typy_fields)
17729 (typy_range): Use gdbpy_ref.
17731 2017-01-10 Tom Tromey <tom@tromey.com>
17733 * python/py-threadevent.c (create_thread_event_object): Use
17735 * python/py-stopevent.c (create_stop_event_object): Simplify.
17736 (emit_stop_event): Use gdbpy_ref.
17737 * python/py-signalevent.c (create_signal_event_object): Use
17739 * python/py-newobjfileevent.c (create_new_objfile_event_object)
17740 (emit_new_objfile_event, create_clear_objfiles_event_object)
17741 (emit_clear_objfiles_event): Use gdbpy_ref.
17742 * python/py-infevents.c (create_inferior_call_event_object)
17743 (create_register_changed_event_object)
17744 (create_memory_changed_event_object, emit_inferior_call_event)
17745 (emit_memory_changed_event, emit_register_changed_event): Use
17747 * python/py-exitedevent.c (create_exited_event_object)
17748 (emit_exited_event): Use gdbpy_ref.
17749 * python/py-event.h (evpy_emit_event): Remove
17750 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
17751 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
17752 * python/py-continueevent.c (emit_continue_event): Use
17754 * python/py-breakpoint.c (gdbpy_breakpoint_created)
17755 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
17757 * python/py-bpevent.c (create_breakpoint_event_object): Use
17760 2017-01-10 Tom Tromey <tom@tromey.com>
17762 * python/py-ref.h: New file.
17764 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
17766 * cli-out.c (cli_ui_out::do_redirect): Change return type to
17768 * cli-out.h (cli_ui_out::do_redirect): Likewise.
17769 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
17770 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
17771 * ui-out.c (ui_out::redirect): Likewise.
17772 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
17773 * cli/cli-logging.c (set_logging_redirect): Update call site of
17775 (handle_redirections): Likewise.
17776 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
17777 * top.c (execute_command_to_string): Likewise.
17778 * utils.c (do_ui_out_redirect_pop): Likewise.
17780 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
17782 * stack.c (_initialize_stack): Update "frame" command help message.
17784 2017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
17786 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
17788 2017-01-06 Yao Qi <yao.qi@linaro.org>
17790 * x86-linux-nat.h: Include gdb_proc_service.h.
17792 2017-01-06 Yao Qi <yao.qi@linaro.org>
17794 * ser-base.h: Include serial.h.
17796 2017-01-06 Yao Qi <yao.qi@linaro.org>
17798 * ppc-linux-tdep.h: Include ppc-tdep.h.
17800 2017-01-06 Yao Qi <yao.qi@linaro.org>
17802 * nat/amd64-linux-siginfo.h: Include signal.h.
17804 2017-01-06 Yao Qi <yao.qi@linaro.org>
17806 * nat/aarch64-linux-hw-point.h: Include break-common.h.
17808 2017-01-06 Yao Qi <yao.qi@linaro.org>
17810 * mi/mi-parse.h: Include mi-cmds.h.
17812 2017-01-06 Yao Qi <yao.qi@linaro.org>
17814 * inf-loop.c: Don't include "target.h".
17815 * inf-loop.h: Include it here.
17817 2017-01-06 Yao Qi <yao.qi@linaro.org>
17819 * dfp.h: Include "dboulest.h" and "expression.h".
17821 2017-01-06 Yao Qi <yao.qi@linaro.org>
17823 * ax-gdb.h: Include "ax.h".
17825 2017-01-06 Yao Qi <yao.qi@linaro.org>
17827 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
17828 with nat/gdb_ptrace.h.
17830 2017-01-05 Yao Qi <yao.qi@linaro.org>
17832 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
17834 (mips64_fbsd_sigframe_init): Likewise.
17836 2017-01-04 John Baldwin <jhb@FreeBSD.org>
17838 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
17839 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
17841 2017-01-04 John Baldwin <jhb@FreeBSD.org>
17843 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
17844 * NEWS: Mention new FreeBSD/mips native configuration.
17845 * config/mips/fbsd.mh: New file.
17846 * configure.host: Add mips*-*-freebsd*.
17847 * mips-fbsd-nat.c: New file.
17849 2017-01-04 John Baldwin <jhb@FreeBSD.org>
17851 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
17852 (ALLDEPFILES): Add mips-fbsd-tdep.c.
17853 * NEWS: Mention new FreeBSD/mips target.
17854 * configure.tgt: Add mips*-*-freebsd*.
17855 * mips-fbsd-tdep.c: New file.
17856 * mips-fbsd-tdep.h: New file.
17858 2017-01-04 Yao Qi <yao.qi@linaro.org>
17860 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
17861 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
17863 2017-01-01 Joel Brobecker <brobecker@adacore.com>
17865 Update copyright year range in all GDB files.
17867 2017-01-01 Joel Brobecker <brobecker@adacore.com>
17869 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
17871 For older changes see ChangeLog-2016.
17877 version-control: never