Tell the linker testsuite that lm32-rtems toolchains do not support the generation...
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
858c9d13
SM
12017-12-05 Simon Marchi <simon.marchi@ericsson.com>
2
3 * target-descriptions.c (struct tdesc_feature) <registers>: Use
4 tdesc_reg_up typedef.
5 (struct target_desc) <features>: Use tdesc_feature_up typedef.
6
d4a0e8b5
SM
72017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
8
9 * target-descriptions.c (struct tdesc_type): Use default
10 destructor.
11 <u>: Remove.
12 <accept>: Remove.
13 (struct tdesc_type_builtin): New.
14 (struct tdesc_type_vector): New.
15 (struct tdesc_type_with_fields): New.
16 (tdesc_predefined_types): Change type to tdesc_type_builtin[].
17 (tdesc_gdb_type): Remove.
18 (tdesc_register_type): Adjust.
19 (tdesc_create_vector): Create tdesc_type_vector.
20 (tdesc_create_struct): Create tdesc_type_with_fields.
21 (tdesc_set_struct_size): Change parameter type.
22 (tdesc_create_union): Create tdesc_type_with_fields.
23 (tdesc_create_flags): Likewise.
24 (tdesc_create_enum): Likewise.
25 (tdesc_add_field): Change parameter type.
26 (tdesc_add_typed_bitfield): Likewise.
27 (tdesc_add_bitfield): Likewise.
28 (tdesc_add_flag): Likewise.
29 (tdesc_add_enum_value): Likewise.
30 (print_c_tdesc) <visit>: Remove overload with tdesc_type
31 parameter, add overloads for tdesc_type_builtin,
32 tdesc_type_with_fields and tdesc_type_vector.
33 <m_printed_type>: Remove.
34 <m_printed_element_type, m_printed_type_with_fields>: Add.
35 * target-descriptions.h (tdesc_create_enum): Change return type.
36 (tdesc_add_typed_bitfield): Change parameter type.
37 (tdesc_add_enum_value): Change parameter type.
38 * xml-tdesc.c (struct tdesc_parsing_data) <current_type>: Change
39 type to tdesc_type_with_fields.
40 (tdesc_start_struct): Adjust.
41 (tdesc_start_flags): Adjust.
42 (tdesc_start_enum): Adjust.
43 (tdesc_start_field): Adjust.
44 * arch/tdesc.h (struct tdesc_type_builtin): Forward-declare.
45 (struct tdesc_type_vector): Forward-declare.
46 (struct tdesc_type_with_fields): Forward-declare.
47 (tdesc_create_struct): Change return type.
48 (tdesc_create_union): Likewise.
49 (tdesc_create_flags): Likewise.
50 (tdesc_add_field): Change parameter type.
51 (tdesc_set_struct_size): Likewise.
52 (tdesc_add_bitfield): Likewise.
53 (tdesc_add_flag): Likewise.
54 * features: Re-generate C files.
55
f0cddbef
SM
562017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
57
58 * target-descriptions.c (tdesc_arch_reg): Remove typedef.
59 (struct tdesc_arch_reg): Add constructor.
60 (DEF_VEC_O (tdesc_arch_reg)): Remove.
61 (struct tdesc_arch_data): Initialize fields.
62 <arch_regs>: Change type to std::vector.
63 (target_find_description): Adjust.
64 (tdesc_find_type): Adjust.
65 (tdesc_data_init): Call tdesc_arch_data constructor.
66 (tdesc_data_alloc): Allocate tdesc_arch_data with new.
67 (tdesc_data_cleanup): Free data with delete.
68 (tdesc_numbered_register): Adjust.
69 (tdesc_find_arch_register): Adjust.
70 (tdesc_use_registers): Adjust.
71
d05200d1
SM
722017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
73
74 * target-descriptions.c (tdesc_type_field): Remove typedef.
75 (DEF_VEC_O (tdesc_type_field)): Remove.
76 (struct tdesc_type_field): Add constructor.
77 <name>: Change type to std::string.
78 (struct tdesc_type) <tdesc_type>: Instantiate vector if the type
79 kind uses it.
80 <~tdesc_type>: Destroy vector if the type kind uses it.
81 <u::u::fields>: Change type to std::vector.
82 (tdesc_gdb_type): Adjust.
83 (tdesc_add_field): Adjust.
84 (tdesc_add_typed_bitfield): Adjust.
85 (tdesc_add_field): Adjust.
86 (tdesc_add_enum_value): Adjust.
87 (class print_c_tdesc) <visit>: Adjust.
88
082b9140
SM
892017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
90
91 * target-descriptions.c (struct tdesc_type) <name>: Change type
92 to std::string.
93 <~tdesc_type>: Don't manually free name.
94 <operator==>: Adjust.
95 (tdesc_named_type): Adjust.
96 (tdesc_find_type): Adjust.
97 (tdesc_gdb_type): Adjust.
98 (class print_c_tdesc) <visit>: Adjust.
99
53c934e9
SM
1002017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
101
102 * target-descriptions.c (tdesc_type_p): Remove typedef.
103 (DEF_VEC_P (tdesc_type_p)): Remove.
104 (struct tdesc_feature) <types>: Change type to std::vector.
105 <~tdesc_feature>: Replace with default implementation.
106 <accept>: Adjust.
107 (tdesc_named_type): Adjust.
108 (tdesc_create_vector): Adjust.
109 (tdesc_create_struct): Adjust.
110 (tdesc_create_union): Adjust.
111 (tdesc_create_flags): Adjust.
112 (tdesc_create_enum): Adjust.
113
a8142ee1
SM
1142017-12-05 Simon Marchi <simon.marchi@ericsson.com>
115
116 * target-descriptions.c (struct tdesc_reg) <tdesc_reg>: Change
117 type of name_ parameter, adjust to std::string change.
118 <name, group, type>: Change type to std::string.
119 <~tdesc_reg>: Replace with default implementation.
120 <operator==>: Adjust.
121 (tdesc_find_register_early): Adjust.
122 (tdesc_register_name): Adjust.
123 (tdesc_register_type): Adjust.
124 (tdesc_register_in_reggroup_p): Adjust.
125 (class print_c_tdesc) <visit>: Adjust.
126 (class print_c_feature) <visit>: Adjust.
858c9d13
SM
127 * features/arc-arcompact.c: Re-generate.
128 * features/arc-v2.c: Re-generate.
a8142ee1 129
c9c895b9
SM
1302017-12-05 Simon Marchi <simon.marchi@ericsson.com>
131
132 * target-descriptions.c (tdesc_reg_p): Remove typedef.
133 (DEF_VEC_P (tdesc_reg_p)): Remove.
134 (struct tdesc_feature) <registers>: Change type to std::vector.
135 <~tdesc_feature>: Don't manually free registers.
136 <accept>: Adjust.
137 <operator==>: Adjust.
138 (tdesc_has_registers): Adjust.
139 (tdesc_find_register_early): Adjust.
140 (tdesc_use_registers): Adjust.
141 (tdesc_create_reg): Adjust.
142
f65ff9f9
SM
1432017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
144
145 * target-descriptions.c (tdesc_feature) <name>: Change type to
146 std::string.
147 <~tdesc_feature>: Don't manually free name.
148 <operator==>: Adjust.
149 (tdesc_find_feature): Adjust.
150 (tdesc_feature_name): Adjust.
151 (class print_c_tdesc) <visit_pre>: Adjust.
152 (class print_c_feature) <visit_pre>: Adjust.
153
3eea796c
SM
1542017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
155
156 * target-descriptions.c (tdesc_feature_p): Remove typedef.
157 (DEF_VEC_P (tdesc_feature_p)): Remove.
158 (struct target_desc) <features>: Change type to std::vector.
159 <~target_desc>: Replace with default implementation.
160 <accept>: Adjust.
161 <operator==>: Adjust.
162 (tdesc_has_registers): Adjust.
163 (tdesc_find_feature): Adjust.
164 (tdesc_use_registers): Adjust.
165 (tdesc_create_feature): Adjust.
166
40e2a983
SM
1672017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
168
169 * target-descriptions.c (arch_p): Remove typedef.
170 (DEF_VEC_P (arch_p)): Remove.
171 (struct target_desc) <compatible>: Change type to std::vector.
172 <~target_desc>: Don't manually free compatible.
173 (tdesc_compatible_p): Adjust.
174 (tdesc_add_compatible): Adjust.
175 (class print_c_tdesc) <visit_pre>: Adjust.
176
129c10bc
SM
1772017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
178
179 * target-descriptions.c (property_s): Remove typedef.
180 (DEF_VEC_O (property_s)): Remove.
181 (struct target_desc) <properties>: Make an std::vector.
182 <~target_desc>: Don't manually free properties.
183 (tdesc_property): Adjust.
184 (set_tdesc_property): Adjust.
185 (class print_c_tdesc) <visit_pre>: Adjust.
186
ed9376bd
SM
1872017-12-05 Simon Marchi <simon.marchi@ericsson.com>
188
189 * common/gdb_assert.h (gdb_static_assert): Redefine using
190 static_assert.
191
798a7429
SM
1922017-12-05 Simon Marchi <simon.marchi@ericsson.com>
193
194 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
195 unused variables.
196 (ada_is_redundant_range_encoding): Likewise.
197 * ada-varobj.c (ada_varobj_get_value_of_array_variable):
198 Likewise.
199 * alpha-tdep.c (alpha_software_single_step): Likewise.
200 * arm-tdep.c (_initialize_arm_tdep): Likewise.
201 * auto-load.c (info_auto_load_cmd): Likewise.
202 * break-catch-syscall.c (insert_catch_syscall): Likewise.
203 (remove_catch_syscall): Likewise.
204 * breakpoint.c (condition_completer): Likewise.
205 (clear_command): Likewise.
206 (update_breakpoint_locations): Likewise.
207 * btrace.c (btrace_disable): Likewise.
208 (btrace_teardown): Likewise.
209 (btrace_maint_update_pt_packets): Likewise.
210 (maint_btrace_clear_cmd): Likewise.
211 * cli/cli-decode.c (lookup_cmd_1): Likewise.
212 (lookup_cmd_composition): Likewise.
213 * cli/cli-dump.c (scan_filename): Likewise.
214 (restore_command): Likewise.
215 * compile/compile-loc2c.c (compute_stack_depth): Likewise.
216 * compile/compile-object-load.c (compile_object_load): Likewise.
217 * compile/compile-object-run.c (compile_object_run): Likewise.
218 * compile/compile.c (compile_to_object): Likewise.
219 * completer.c (filename_completer): Likewise.
220 (complete_files_symbols): Likewise.
221 (complete_expression): Likewise.
222 * corelow.c (core_open): Likewise.
223 * ctf.c (ctf_start): Likewise.
224 (ctf_write_status): Likewise.
225 (ctf_write_uploaded_tsv): Likewise.
226 (ctf_write_definition_end): Likewise.
227 (ctf_open_dir): Likewise.
228 (ctf_xfer_partial): Likewise.
229 (ctf_trace_find): Likewise.
230 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
231 Likewise.
232 * dwarf2loc.c (allocate_piece_closure): Likewise.
233 (indirect_pieced_value): Likewise.
234 (dwarf2_evaluate_loc_desc_full): Likewise.
235 * dwarf2read.c (dw2_expand_marked_cus): Likewise.
236 (dw2_expand_symtabs_matching): Likewise.
237 (dw2_map_symbol_filenames): Likewise.
238 (read_and_check_comp_unit_head): Likewise.
239 (read_cutu_die_from_dwo): Likewise.
240 (lookup_dwo_unit): Likewise.
241 (read_comp_units_from_section): Likewise.
242 (dwarf2_compute_name): Likewise.
243 (handle_DW_AT_stmt_list): Likewise.
244 (create_cus_hash_table): Likewise.
245 (create_dwp_v2_section): Likewise.
246 (dwarf2_rnglists_process): Likewise.
247 (dwarf2_ranges_process): Likewise.
248 (dwarf2_record_block_ranges): Likewise.
249 (is_vtable_name): Likewise.
250 (read_formatted_entries): Likewise.
251 (skip_form_bytes): Likewise.
252 * elfread.c (elf_symtab_read): Likewise.
253 * exec.c (exec_file_command): Likewise.
254 * f-valprint.c (f_val_print): Likewise.
255 (info_common_command_for_block): Likewise.
256 * guile/guile.c (initialize_scheme_side): Likewise.
257 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Likewise.
258 * guile/scm-cmd.c (cmdscm_completer): Likewise.
259 (gdbscm_register_command_x): Likewise.
260 * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
261 * guile/scm-param.c (gdbscm_parameter_value): Likewise.
262 * guile/scm-ports.c (file_port_magic): Likewise.
263 * guile/scm-pretty-print.c (ppscm_search_pp_list): Likewise.
264 (ppscm_pretty_print_one_value): Likewise.
265 (ppscm_print_children): Likewise.
266 * guile/scm-string.c (gdbscm_string_to_argv): Likewise.
267 * guile/scm-symtab.c (gdbscm_sal_symtab): Likewise.
268 * guile/scm-type.c (gdbscm_type_next_field_x): Likewise.
269 * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
270 * i386-tdep.c (i386_register_reggroup_p): Likewise.
271 * infcmd.c (run_command_1): Likewise.
272 (until_next_fsm_clean_up): Likewise.
273 * linespec.c (linespec_complete): Likewise.
274 (find_label_symbols): Likewise.
275 * m2-valprint.c (m2_val_print): Likewise.
276 * memattr.c (require_user_regions): Likewise.
277 (lookup_mem_region): Likewise.
278 (disable_mem_command): Likewise.
279 (mem_delete): Likewise.
280 * mep-tdep.c (mep_register_name): Likewise.
281 (mep_analyze_prologue): Likewise.
282 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Likewise.
283 * mi/mi-interp.c (mi_on_sync_execution_done): Likewise.
284 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
285 * microblaze-linux-tdep.c (microblaze_linux_init_abi): Likewise.
286 * minidebug.c (lzma_open): Likewise.
287 * minsyms.c (lookup_minimal_symbol): Likewise.
288 * mips-linux-tdep.c (mips64_fill_fpregset): Likewise.
289 * mips-tdep.c (mips_stub_frame_sniffer): Likewise.
290 (mips_o64_return_value): Likewise.
291 (mips_single_step_through_delay): Likewise.
292 (_initialize_mips_tdep): Likewise.
293 * nios2-tdep.c (nios2_push_dummy_call): Likewise.
294 (nios2_software_single_step): Likewise.
295 * parse.c (find_minsym_type_and_address): Likewise.
296 * psymtab.c (psym_relocate): Likewise.
297 * python/py-breakpoint.c (bppy_get_commands): Likewise.
298 (gdbpy_breakpoint_modified): Likewise.
299 * python/py-infevents.c (create_inferior_call_event_object):
300 Likewise.
301 * python/py-record-btrace.c (btpy_list_item): Likewise.
302 * python/py-type.c (typy_str): Likewise.
303 * python/py-value.c (valpy_call): Likewise.
304 * python/python.c (do_start_initialization): Likewise.
305 * record-btrace.c (record_btrace_insn_history_range): Likewise.
306 (record_btrace_call_history_range): Likewise.
307 (record_btrace_record_method): Likewise.
308 (record_btrace_xfer_partial): Likewise.
309 (btrace_get_frame_function): Likewise.
310 * record-full.c (record_full_open): Likewise.
311 * record.c (get_context_size): Likewise.
312 * registry.h (DEFINE_REGISTRY): Likewise.
313 * remote-fileio.c (remote_fileio_request): Likewise.
314 * remote.c (remote_update_thread_list): Likewise.
315 (remote_check_symbols): Likewise.
316 (remote_commit_resume): Likewise.
317 (remote_interrupt): Likewise.
318 (remote_insert_breakpoint): Likewise.
319 (compare_sections_command): Likewise.
320 * rust-exp.y (super_name): Likewise.
321 (lex_string): Likewise.
322 (convert_ast_to_type): Likewise.
323 (convert_ast_to_expression): Likewise.
324 * rust-lang.c (rust_print_struct_def): Likewise.
325 (rust_print_type): Likewise.
326 (rust_evaluate_subexp): Likewise.
327 * rx-tdep.c (rx_register_type): Likewise.
328 * ser-event.c (serial_event_clear): Likewise.
329 * serial.c (serial_open): Likewise.
330 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
331 * symfile.c (section_is_overlay): Likewise.
332 (overlay_unmapped_address): Likewise.
333 (overlay_mapped_address): Likewise.
334 (simple_overlay_update_1): Likewise.
335 (simple_overlay_update): Likewise.
336 * symtab.c (symbol_find_demangled_name): Likewise.
337 (search_symbols): Likewise.
338 * target-descriptions.c (tdesc_predefined_type): Likewise.
339 * target.c (target_commit_resume): Likewise.
340 * thread.c (print_selected_thread_frame): Likewise.
341 * top.c (new_ui_command): Likewise.
342 (gdb_readline_no_editing): Likewise.
343 * tracefile-tfile.c (tfile_open): Likewise.
344 * tracepoint.c (create_tsv_from_upload): Likewise.
345 * utils.c (quit): Likewise.
346 (defaulted_query): Likewise.
347 * valarith.c (value_concat): Likewise.
348 * xml-syscall.c (xml_list_syscalls_by_group): Likewise.
349 * xml-tdesc.c (target_fetch_description_xml): Likewise.
350 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
351 (xtensa_pseudo_register_write): Likewise.
352
7403715e
TT
3532017-12-04 Tom Tromey <tom@tromey.com>
354
355 * NEWS: Mention Rust trait object inspection.
356
50a1fdd5
PA
3572017-12-04 Pedro Alves <palves@redhat.com>
358
359 PR gdb/22499
360 * amd64-tdep.c (amd64_insn::rex_offset): Rename to...
361 (amd64_insn::enc_prefix_offset): ... this, and tweak comment.
362 (vex2_prefix_p, vex3_prefix_p): New functions.
363 (amd64_get_insn_details): Adjust to rename. Also skip VEX2 and
364 VEX3 prefixes.
365 (fixup_riprel): Set VEX3.!B.
366
1e97a227
SM
3672017-12-03 Simon Marchi <simon.marchi@ericsson.com>
368
369 * target.h (mem_region_vector): Remove.
370 (struct target_ops) <to_memory_map>: Change return type to
371 std::vector<mem_region>.
372 * target-debug.h (target_debug_print_mem_region_vector): Rename
373 to ...
374 (target_debug_print_std_vector_mem_region): ... this.
375 * target-delegates.c: Re-generate.
376
10f64178
PA
3772017-12-03 Pedro Alves <palves@redhat.com>
378
379 * make-target-delegates (munge_type): Also munge '<', '>', and
380 ':'. Avoid double underscores in identifiers, and trailing
381 underscores.
382 * target-debug.h
383 (target_debug_print_VEC_static_tracepoint_marker_p__p): Rename to
384 ...
385 (target_debug_print_VEC_static_tracepoint_marker_p_p): ... this.
386 * target-delegates.c: Regenerate.
387
6d83e819
SM
3882017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
389
390 * common/poison.h (XDELETE): Fix typo.
391
97cbe998
SDJ
3922017-12-01 Andrew Cagney <cagney@redhat.com>
393 Joel Brobecker <brobecker@adacore.com>
394 Sergio Durigan Junior <sergiodj@redhat.com>
395
396 * NEWS (Changes since GDB 8.0: Mention new '--readnever'
397 feature.
398 * coffread.c (coff_symfile_read): Do not map over sections with
399 'coff_locate_sections' if readnever is on.
400 * dwarf2read.c (dwarf2_has_info): Return 0 if
401 readnever is on.
402 * elfread.c (elf_symfile_read): Do not map over sections with
403 'elf_locate_sections' if readnever is on.
404 * main.c (validate_readnow_readnever): New function.
405 (captured_main_1): Add support for --readnever.
406 (print_gdb_help): Document --readnever.
407 * objfile-flags.h (enum objfile_flag) <OBJF_READNEVER>: New
408 flag.
409 * symfile.c (readnever_symbol_files): New global.
410 (symbol_file_add_with_addrs): Set 'OBJF_READNEVER' when
411 'READNEVER_SYMBOL_FILES' is set.
412 (validate_readnow_readnever): New function.
413 (symbol_file_command): Handle '-readnever' option.
414 Call 'validate_readnow_readnever'.
415 (add_symbol_file_command): Handle '-readnever' option.
416 Call 'validate_readnow_readnever'.
417 (_initialize_symfile): Document new '-readnever' option for
418 both 'symbol-file' and 'add-symbol-file' commands.
419 * top.h (readnever_symbol_files): New extern global.
420 * xcoffread.c (xcoff_initial_scan): Do not read debug
421 information if readnever is on.
422
40fc416f
SDJ
4232017-12-01 Sergio Durigan Junior <sergiodj@redhat.com>
424
425 * symfile.c (symbol_file_command): Call
426 'symbol_file_add_main_1' only after processing all command
427 line options.
428 (add_symbol_file_command): Modify logic to make arguments
429 position-independent.
430
ec6a20c2
JB
4312017-12-01 Joel Brobecker <brobecker@adacore.com>
432
433 * ada-lang.c (symbol_list_obstack): Delete.
434 (resolve_subexp): Make sure "candidates" gets xfree'ed.
435 (ada_lookup_symbol_list_worker): Remove the limitation that
436 the result is only good until the next call, now making it
437 the responsibility of the caller to free the result when no
438 longer needed. Adjust the function's intro comment accordingly.
439 (ada_lookup_symbol_list): Adjust the function's intro comment.
440 (ada_iterate_over_symbols): Make sure "results" gets xfree'ed.
441 (ada_lookup_encoded_symbol, get_var_value): Likewise.
442 (_initialize_ada_language): Remove symbol_list_obstack
443 initialization.
444 * ada-exp.y (block_lookup): Make sure "syms" gets xfree'ed.
445 (write_var_or_type, write_name_assoc): Likewise.
446
d0df06af
TT
4472017-12-01 Tom Tromey <tom@tromey.com>
448
449 * Makefile.in (all_deps_files): New variable.
450 Include .Po files using all_deps_files.
451
2ee0c9b3
JB
4522017-12-01 Joel Brobecker <brobecker@adacore.com>
453
454 * MAINTAINERS: Update list of maintainers, moving those who
455 stepped down or became inactive to the "Past Maintainers"
456 section.
457
44122162
RO
4582017-11-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
459
460 * configure.ac Don't check for sys/fault.h, sys/syscall.h,
461 sys/proc.h.
462 (NEW_PROC_API): Remove.
463 (prsysent_t, pr_sigset_t, pr_sigaction64_t, pr_siginfo64_t):
464 Likewise.
465 * common/common.m4 (GDB_AC_COMMON): Don't check for sys/syscall.h.
466 * configure: Regenerate.
467 * config.in: Regenerate.
468 * gdbserver/configure: Regenerate.
469 * gdbserver/config.in: Regenerate.
470
471 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Remove
472 NEW_PROC_API test.
473 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Likewise.
474
475 * linux-btrace.c: Remove HAVE_SYS_SYSCALL_H test.
476
477 * proc-api.c: Remove !NEW_PROC_API support.
478 Remove HAVE_SYS_PROC_H and HAVE_SYS_USER_H tests.
479 Remove tests for macros always defined on Solaris.
480 * proc-events.c: Remove !NEW_PROC_API support.
481 Remove Remove HAVE_SYS_SYSCALL_H, HAVE_SYS_PROC_H and
482 HAVE_SYS_USER_H tests.
483 (init_syscall_table): Remove non-Solaris syscalls.
484 Remove tests for syscalls present on all Solaris versions.
485 Add missing Solaris 10+ syscalls.
486 (signal_table): Remove non-Solaris signals.
487 Remove tests for signals present on all Solaris versions.
488 (fault_table): Remove non-Solaris faults.
489 Remove tests for faults present on all Solaris versions.
490 * proc-flags.c: Remove !NEW_PROC_API support.
491 (pr_flag_table): Remove non-Solaris and pre-Solaris 7 comments.
492 Remove non-Solaris flags.
493 * proc-why.c: Remove !NEW_PROC_API support.
494 (pr_why_table): Remove meaningless comments.
495 Remove tests for reasons present on all Solaris versions.
496 Remove OSF/1 cases.
497 (proc_prettyfprint_why): Likewise.
498
499 * procfs.c: Remove !NEW_PROC_API and DYNAMIC_SYSCALLS support.
500 Remove HAVE_SYS_FAULT_H and HAVE_SYS_SYSCALL_H tests.
501 Remove WA_READ test, IRIX watchpoint support.
502 (gdb_sigset_t, gdb_sigaction_t, gdb_siginfo_t): Replace by base
503 types. Change users.
504 (gdb_praddset, gdb_prdelset, gdb_premptysysset, gdb_praddsysset)
505 (gdb_prdelset, gdb_pr_issyssetmember): Replace by base macros.
506 Change callers.
507 Remove CTL_PROC_NAME_FMT tests.
508 (gdb_prstatus_t, gdb_lwpstatus_t): Replace by base types. Change
509 users.
510 (sysset_t_size): Remove. Use sizeof (sysset_t) in callers.
511 Remove PROCFS_DONT_PIOCSSIG_CURSIG support.
512 (proc_modify_flag): Replace GDBRESET by PCUNSET.
513 Remove PR_ASYNC, PR_KLC tests.
514 (proc_unset_inherit_on_fork): Remove PR_ASYNC test.
515 (proc_parent_pid): Remove PCWATCH etc. tests.
516 (proc_set_watchpoint): Remove !PCWATCH && !PIOCSWATCH support.
517 Remove PCAGENT test.
518 (proc_get_nthreads) [PIOCNTHR && PIOCTLIST]: Remove.
519 Remove SYS_lwpcreate || SYS_lwp_create test.
520 (proc_get_current_thread): Likewise.
521 [PIOCNTHR && PIOCTLIST]: Remove.
522 [PIOCLSTATUS]: Remove.
523 (procfs_debug_inferior): Remove non-Solaris cases, conditionals.
524 [PRFS_STOPEXEC]: Remove.
525 (syscall_is_lwp_exit): Remove non-Solaris cases, conditionals.
526 (syscall_is_exit): Likewise.
527 (syscall_is_exec): Likewise.
528 (syscall_is_lwp_create): Likewise.
529 Remove SYS_syssgi support.
530 (procfs_wait): Remove PR_ASYNC, !PIOCSSPCACT tests.
531 [SYS_syssgi]: Remove.
532 Remove non-Solaris cases, conditionals.
533 (unconditionally_kill_inferior) [PROCFS_NEED_PIOCSSIG_FOR_KILL]:
534 Remove.
535 (procfs_init_inferior) [SYS_syssgi]: Remove.
536 (procfs_set_exec_trap) [PRFS_STOPEXEC]: Remove.
537 (procfs_inferior_created) [SYS_syssgi]: Remove.
538 (procfs_set_watchpoint): Remove !AIX5 test.
539 (procfs_stopped_by_watchpoint): Remove FLTWATCH test, FLTKWATCH
540 case.
541 (mappingflags) [MA_PHYS]: Remove.
542 (info_mappings_callback): Remove PCAGENT test.
543 Remove PIOCOPENLWP || PCAGENT test.
544
e8020e54
RO
5452017-11-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
546
547 * sol-thread.c (info_solthreads): Constify args.
548 Cast args to void *.
549
75059544
JB
5502017-11-29 John Baldwin <jhb@FreeBSD.org>
551
552 * target-float.c [HAVE_LIBMPFR]: Define MPFR_USE_INTMAX_T.
553
f5a91472
JB
5542017-11-29 Joel Brobecker <brobecker@adacore.com>
555
556 * ada-lang.c (to_fixed_range_type): Make sure that the size
557 of the range type being returned is the same as the size
558 of the range type being fixed.
559
bd69330d
PA
5602017-11-29 Pedro Alves <palves@redhat.com>
561
562 PR c++/19436
563 * NEWS: Mention setting breakpoints on functions with C++ ABI
564 tags.
565 * completer.h (completion_match_for_lcd) <match,
566 mark_ignored_range>: New methods.
567 <finish>: Consider ignored ranges.
568 <clear>: Clear ignored ranges.
569 <m_ignored_ranges, m_finished_storage>: New fields.
570 * cp-support.c (cp_search_name_hash): Ignore ABI tags.
571 (cp_symbol_name_matches_1, cp_fq_symbol_name_matches): Pass the
572 completion_match_for_lcd pointer to strncmp_iw_with_mode.
573 (test_cp_symbol_name_cmp): Add [abi:...] tags unit tests.
574 * language.c (default_symbol_name_matcher): Pass the
575 completion_match_for_lcd pointer to strncmp_iw_with_mode.
576 * linespec.c (linespec_lexer_lex_string): Don't tokenize ABI tags.
577 * utils.c (skip_abi_tag): New function.
578 (strncmp_iw_with_mode): Add completion_match_for_lcd parameter.
579 Handle ABI tags.
580 * utils.h (strncmp_iw_with_mode): Add completion_match_for_lcd
581 parameter.
582
5832017-11-29 Pedro Alves <palves@redhat.com>
584
585 PR c++/19436
586 * NEWS: Mention setting breakpoints on functions with C++ ABI
587 tags.
588 * completer.h (completion_match_for_lcd) <match,
589 mark_ignored_range>: New methods.
590 <finish>: Consider ignored ranges.
591 <clear>: Clear ignored ranges.
592 <m_ignored_ranges, m_finished_storage>: New fields.
593 * cp-support.c (cp_search_name_hash): Ignore ABI tags.
594 (cp_symbol_name_matches_1, cp_fq_symbol_name_matches): Pass the
595 completion_match_for_lcd pointer to strncmp_iw_with_mode.
596 (test_cp_symbol_name_cmp): Add [abi:...] tags unit tests.
597 * language.c (default_symbol_name_matcher): Pass the
598 completion_match_for_lcd pointer to strncmp_iw_with_mode.
599 * linespec.c (linespec_lexer_lex_string): Don't tokenize ABI tags.
600 * utils.c (skip_abi_tag): New function.
601 (strncmp_iw_with_mode): Add completion_match_for_lcd parameter.
602 Handle ABI tags.
603 * utils.h (strncmp_iw_with_mode): Add completion_match_for_lcd
604 parameter.
605
a20714ff
PA
6062017-11-29 Pedro Alves <palves@redhat.com>
607
608 * NEWS: Mention that breakpoints on C++ functions are now set on
609 on all namespaces/classes by default, and mention "break
610 -qualified".
611 * ax-gdb.c (agent_command_1): Adjust to pass a
612 symbol_name_match_type to new_linespec_location.
613 * breakpoint.c (parse_breakpoint_sals): Adjust to
614 get_linespec_location's return type change.
615 (strace_marker_create_sals_from_location): Adjust to pass a
616 symbol_name_match_type to new_linespec_location.
617 (strace_marker_decode_location): Adjust to get_linespec_location's
618 return type change.
619 (strace_command): Adjust to pass a symbol_name_match_type to
620 new_linespec_location.
621 (LOCATION_HELP_STRING): Add paragraph about wildmatching, and
622 mention "-qualified".
623 * c-lang.c (cplus_language_defn): Install cp_search_name_hash.
624 * completer.c (explicit_location_match_type::MATCH_QUALIFIED): New
625 enumerator.
626 (complete_address_and_linespec_locations): New parameter
627 'match_type'. Pass it down.
628 (explicit_options): Add "-qualified".
629 (collect_explicit_location_matches): Pass the requested match type
630 to the linespec completers. Handle MATCH_QUALIFIED.
631 (location_completer): Handle "-qualified" combined with linespecs.
632 * cp-support.c (cp_search_name_hash): New.
633 (cp_symbol_name_matches_1): Implement wild matching for C++.
634 (cp_fq_symbol_name_matches): Reimplement.
635 (cp_get_symbol_name_matcher): Return different matchers depending
636 on the lookup name's match type.
637 (selftests::test_cp_symbol_name_matches): Add wild matching tests.
638 * cp-support.h (cp_search_name_hash): New declaration.
639 * dwarf2read.c
640 (selftests::dw2_expand_symtabs_matching::test_symbols): Add
641 symbols.
642 (test_dw2_expand_symtabs_matching_symbol): Add wild matching
643 tests.
644 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Adjust to
645 pass a symbol_name_match_type to new_linespec_location.
646 * linespec.c (linespec_parse_basic): Lookup function symbols using
647 the parser's symbol name match type.
648 (convert_explicit_location_to_linespec): New
649 symbol_name_match_type parameter. Pass it down to
650 find_linespec_symbols.
651 (convert_explicit_location_to_sals): Pass the location's name
652 match type to convert_explicit_location_to_linespec.
653 (parse_linespec): New match_type parameter. Save it in the
654 parser.
655 (linespec_parser_new): Default to symbol_name_match_type::WILD.
656 (linespec_complete_function): New symbol_name_match_type
657 parameter. Use it.
658 (complete_linespec_component): Pass down the parser's recorded
659 name match type.
660 (linespec_complete_label): New symbol_name_match_type parameter.
661 Use it.
662 (linespec_complete): New symbol_name_match_type parameter. Save
663 it in the parser and pass it down. Adjust to
664 get_linespec_location's prototype change.
665 (find_function_symbols, find_linespec_symbols): New
666 symbol_name_match_type parameter. Pass it down instead of
667 assuming symbol_name_match_type::WILD.
668 * linespec.h (linespec_complete, linespec_complete_function)
669 (linespec_complete_label): New symbol_name_match_type parameter.
670 * location.c (event_location::linespec_location): Now a struct
671 linespec_location.
672 (EL_LINESPEC): Adjust.
673 (initialize_explicit_location): Default to
674 symbol_name_match_type::WILD.
675 (new_linespec_location): New symbol_name_match_type parameter.
676 Record it in the location.
677 (get_linespec_location): Now returns a struct linespec_location.
678 (new_explicit_location): Also copy func_name_match_type.
679 (explicit_to_string_internal)
680 (string_to_explicit_location): Handle "-qualified".
681 (copy_event_location): Adjust to LINESPEC_LOCATION type change.
682 Copy symbol_name_match_type fields.
683 (event_location_deleter::operator()): Adjust to LINESPEC_LOCATION
684 type change.
685 (event_location_to_string): Adjust to LINESPEC_LOCATION type
686 change. Handle "-qualfied".
687 (string_to_explicit_location): Handle "-qualified".
688 (string_to_event_location_basic): New symbol_name_match_type
689 parameter. Pass it down.
690 (string_to_event_location): Handle "-qualified".
691 * location.h (struct linespec_location): New.
692 (explicit_location::func_name_match_type): New field.
693 (new_linespec_location): Now returns a const linespec_location *.
694 (string_to_event_location_basic): New symbol_name_match_type
695 parameter.
696 (explicit_completion_info::saw_explicit_location_option): New
697 field.
698 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Adjust to pass a
699 symbol_name_match_type to new_linespec_location.
700 * python/py-breakpoint.c (bppy_init): Likewise.
701 * python/python.c (gdbpy_decode_line): Likewise.
702
a207cff2
PA
7032017-11-29 Pedro Alves <palves@redhat.com>
704
705 * ada-lang.c (ada_lookup_name_info::matches): Change type of
706 parameter from completion_match to completion_match_result.
707 Adjust.
708 (do_wild_match, do_full_match, ada_symbol_name_matches): Likewise.
709 * completer.c (completion_tracker::maybe_add_completion): Add
710 match_for_lcd parameter and use it.
711 (completion_tracker::add_completion): Likewise.
712 * completer.h (class completion_match_for_lcd): New class.
713 (completion_match_result::match_for_lcd): New field.
714 (completion_match_result::set_match): New method.
715 (completion_tracker): Add comments.
716 (completion_tracker::add_completion): Add match_for_lcd parameter.
717 (completion_tracker::reset_completion_match_result): Reset
718 match_for_lcd too.
719 (completion_tracker::maybe_add_completion): Add match_for_lcd
720 parameter.
721 (completion_tracker::m_lowest_common_denominator_unique): Extend
722 comments.
723 * cp-support.c (cp_symbol_name_matches_1)
724 (cp_fq_symbol_name_matches): Change type of parameter from
725 completion_match to completion_match_result. Adjust.
726 * language.c (default_symbol_name_matcher): Change type of
727 parameter from completion_match to completion_match_result.
728 Adjust.
729 * language.h (completion_match_for_lcd): Forward declare.
730 (default_symbol_name_matcher): Change type of parameter from
731 completion_match to completion_match_result.
732 * symtab.c (compare_symbol_name): Adjust.
733 (completion_list_add_name): Pass the match_for_lcd to the tracker.
734 * symtab.h (ada_lookup_name_info::matches): Change type of
735 parameter from completion_match to completion_match_result.
736 (symbol_name_matcher_ftype): Likewise, and update comments.
737
4024cf2b
PA
7382017-11-29 Pedro Alves <palves@redhat.com>
739
740 * linespec.c (minsym_found, add_minsym): Use msymbol_is_function.
741 * minsyms.c (msymbol_is_text): Delete.
742 (msymbol_is_function): New function.
743 * minsyms.h (msymbol_is_text): Delete.
744 (msymbol_is_function): New declaration.
745 * symtab.c (find_function_alias_target): Use msymbol_is_function.
746
5dcf52c1
TT
7472017-11-29 Tom Tromey <tom@tromey.com>
748
749 * Makefile.in (distclean): Handle the case where rmdir fails.
750
8ca2f0b9
TT
7512017-11-29 Tom Tromey <tom@tromey.com>
752
753 * symfile.c (_initialize_symfile): Update usage text for
754 add-symbol-file, symbol-file, load.
755
02ca603a
TT
7562017-11-29 Tom Tromey <tom@tromey.com>
757
758 * symfile.c (add_symbol_file_command): Error if some arguments to
759 -s are missing. Change unrecognized-argument error message.
760 (_initialize_symfile): Fix usage text for add-symbol-file.
761
18ca7347
TT
7622017-11-27 Tom Tromey <tom@tromey.com>
763
764 * Makefile.in (REMOTE_OBS): Remove.
765 (SFILES): Remove remote sources.
766 (COMMON_SFILES): Add remote sources.
767 (ALLDEPFILES): Remove dcache.c.
768
66599a7d
TT
7692017-11-27 Tom Tromey <tom@tromey.com>
770
771 * Makefile.in (SUBDIR_TARGET_SRCS, SUBDIR_TARGET_OBS): New
772 variables.
773 (SFILES): Use SUBDIR_TARGET_SRCS.
774 (COMMON_OBS): Use SUBDIR_TARGET_OBS. Remove waitstatus.o.
775 (CONFIG_SRC_SUBDIR): Add target.
776 (%.o): Remove target rule.
777
4f04fba8
TT
7782017-11-27 Tom Tromey <tom@tromey.com>
779
780 * Makefile.in (COMMON_OBS): Remove filename-seen-cache.o,
781 registry.o, thread-fsm.o, debug.o.
782 (COMMON_SFILES): Add filename-seen-cache.c, registry.c,
783 thread-fsm.c, debug.c.
784
b5adff3b
TT
7852017-11-27 Tom Tromey <tom@tromey.com>
786
787 * Makefile.in (COMMON_SFILES): New.
788 (SFILES): Move some entries to COMMON_SFILES.
789 (COMMON_OBS): Use COMMON_SFILES.
790
afa0a411
TT
7912017-11-27 Tom Tromey <tom@tromey.com>
792
793 * Makefile.in (YYFILES): Update comment.
794 (YYOBJ): Redefine.
795
8fd8d003
TT
7962017-11-27 Tom Tromey <tom@tromey.com>
797
798 * Makefile.in (SUBDIR_PYTHON_OBS): Redefine.
799 (CONFIG_SRC_SUBDIR): Add python.
800 (%.o): Remove python rule.
801 (python/%.o): New rule.
802 * configure: Rebuild.
803 * configure.ac (CONFIG_OBS): Refer to python/python.o
804
bd810fff
TT
8052017-11-27 Tom Tromey <tom@tromey.com>
806
807 * configure: Rebuild.
808 * configure.ac (CONFIG_OBS): Refer to guile/guile.o.
809 * Makefile.in (SUBDIR_GUILE_OBS): Redefine.
810 (CONFIG_SRC_SUBDIR): Add guile.
811 (%.o): Remove guile rule.
812
75787ac1
TT
8132017-11-27 Tom Tromey <tom@tromey.com>
814
815 * Makefile.in (SUBDIR_UNITTESTS_OBS): Redefine.
816 (%.o): Remove unittests rule.
817 (CONFIG_SRC_SUBDIR): Add unittests.
818
5c8a9431
TT
8192017-11-27 Tom Tromey <tom@tromey.com>
820
821 * Makefile.in (SUBDIR_TUI_OBS): Redefine.
822 (CONFIG_SRC_SUBDIR): Add tui.
823 (%.o): Remove tui rule.
824
a26aa30c
TT
8252017-11-27 Tom Tromey <tom@tromey.com>
826
827 * Makefile.in (SUBDIR_GCC_COMPILE_OBS): Redefine.
828 (%.o): Remove compile rule.
829 (CONFIG_SRC_SUBDIR): Add compile.
830
6f3cdf9a
TT
8312017-11-27 Tom Tromey <tom@tromey.com>
832
833 * Makefile.in (SUBDIR_MI_OBS): Redefine.
834 (%.o): Remove mi rule.
835 (CONFIG_SRC_SUBDIR): Add mi.
836 (COMMON_OBS): Use mi/mi-common.o
837
f06afa53
TT
8382017-11-27 Tom Tromey <tom@tromey.com>
839
840 * Makefile.in (SUBDIR_CLI_OBS): Redefine.
841 (%.o): Remove cli rule.
842 (CONFIG_SRC_SUBDIR): Add cli.
843
b22c88c2
TT
8442017-11-27 Tom Tromey <tom@tromey.com>
845
846 * configure.ac (CONFIG_SRC_SUBDIR): Don't subst.
847 * configure: Rebuild.
848 * Makefile.in (CONFIG_SRC_SUBDIR): Redefine.
849 (CONFIG_DEP_SUBDIR): New variable.
850 (%.o): Add order-only dependency.
851 ($(CONFIG_DEP_SUBDIR)): New target.
852
ee9a09e9
DC
8532017-11-26 Dominik Czarnota <dominik.b.czarnota@gmail.com>
854
855 PR gdb/21945
856 * findcmd.c (_initialize_mem_search): Update find command help
857 text.
858
e8e7d10c
SM
8592017-11-26 Simon Marchi <simon.marchi@polymtl.ca>
860
861 * python/python.c (do_start_initialization): Change progname
862 type to gdb::unique_xmalloc_ptr. Release the pointer when using
863 Python 2.
864
6a997029
TT
8652017-11-26 Tom Tromey <tom@tromey.com>
866
867 * common/format.h: Add include guards.
868
41272101
TT
8692017-11-26 Tom Tromey <tom@tromey.com>
870
871 * nat/linux-personality.h (class
872 maybe_disable_address_space_randomization): New class.
873 (maybe_disable_address_space_randomization): Don't declare
874 function.
875 * nat/linux-personality.c (restore_personality)
876 (make_disable_asr_cleanup): Remove.
877 (maybe_disable_address_space_randomization): Now a constructor.
878 (~maybe_disable_address_space_randomization): New destructor.
879 * linux-nat.c (linux_nat_create_inferior): Update.
880
44287fd8
TT
8812017-11-26 Tom Tromey <tom@tromey.com>
882
883 * gcore.c (write_gcore_file_1): Use gdb::unique_xmalloc_ptr.
884
5ffd2cb7
UW
8852017-11-26 Ulrich Weigand <uweigand@de.ibm.com>
886
887 * spu-tdep.c (spu_software_single_step): Access SPU_LSLR_REGNUM as
888 "cooked" register. Access only first four bytes of branch target
889 registers.
890
0e5457dc
SDJ
8912017-11-25 Sergio Durigan Junior <sergiodj@redhat.com>
892
893 PR gdb/22491
894 * stap-probe.c (relocate_address): New function.
895 (stap_probe::get_relocated_address): Use 'relocate_address'.
896 (stap_probe::set_semaphore): Use 'relocate_address' and pass
897 'm_sem_addr'.
898 (stap_probe::clear_semaphore): Likewise.
899
deeeba55
PA
9002017-11-25 Pedro Alves <palves@redhat.com>
901
902 * dictionary.c: Include "safe-ctype.h".
903 * minsyms.c: Include "safe-ctype.h".
904 * minsyms.c (SYMBOL_HASH_NEXT): Use TOLOWER instead of tolower.
905
a81aaca0
PA
9062017-11-25 Pedro Alves <palves@redhat.com>
907
908 * completer.c (complete_line_internal_1): Skip spaces until the
909 start of the command.
910
0662b6a7
PA
9112017-11-24 Pedro Alves <palves@redhat.com>
912
913 * cp-support.c (cp_symbol_name_matches_1): New, factored out from
914 cp_fq_symbol_name_matches. Pass language_cplus to
915 strncmp_with_mode.
916 (cp_fq_symbol_name_matches): Call cp_symbol_name_matches_1.
917 (selftests::test_cp_symbol_name_cmp): New.
918 (_initialize_cp_support): Register "cp_symbol_name_matches"
919 selftests.
920 * language.c (default_symbol_name_matcher): Pass language_minimal
921 to strncmp_iw_with_mode.
922 * utils.c: Include "cp-support.h" and <algorithm>.
923 (valid_identifier_name_char, cp_skip_operator_token, skip_ws)
924 (cp_is_operator): New functions.
925 (strncmp_iw_with_mode): Use them. Add language parameter. Don't
926 skip whitespace in the symbol name when the lookup name doesn't
927 have spaces, and vice versa.
928 (strncmp_iw, strcmp_iw): Pass language to strncmp_iw_with_mode.
929 * utils.h (strncmp_iw_with_mode): Add language parameter.
930
e547c119
JB
9312017-11-24 Joel Brobecker <brobecker@adacore.com>
932
933 * ada-lang.c (ada_exception_message_1, ada_exception_message):
934 New functions.
935 (print_it_exception): If available, display the exception
936 message as well.
937 * NEWS: Document new feature.
938
d7fcdff9
UW
9392017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
940
941 * configure.nat <spu-linux>: Add fork-inferior.o to NATDEPFILES.
942
30649c14
PR
9432017-11-24 Philipp Rudo <prudo@linux.vnet.ibm.com>
944
945 * dtrace-probe.c (dtrace_probe::build_arg_exprs)
946 (dtrace_probe::is_enabled, dtrace_probe::enable)
947 (dtrace_probe::disable): Remove keyword 'struct' at for-range
948 variable
949 * probe.c (gen_ui_out_table_header_info)
950 (print_ui_out_not_applicables): Remove keyword 'struct' at
951 for-range variable
952
7696f5c9
AH
9532017-11-24 Alan Hayward <alan.hayward@arm.com>
954
955 * configure.tgt: Add arch/aarch64.o
956
8172f16b
SM
9572017-11-24 Simon Marchi <simon.marchi@polymtl.ca>
958
959 * common/common-utils.h: Include poison.h.
960 (xfree): Remove declaration, add definition with static_assert.
961 * common/common-utils.c (xfree): Remove.
962 * common/poison.h (IsMallocatable): Define.
963 (IsFreeable): Define.
964 (free): Delete for non-freeable types.
965 (xnew): New.
966 (XNEW): Undef and redefine.
967 (xcnew): New.
968 (XCNEW): Undef and redefine.
969 (xdelete): New.
970 (XDELETE): Undef and redefine.
971 (xnewvec): New.
972 (XNEWVEC): Undef and redefine.
973 (xcnewvec): New.
974 (XCNEWVEC): Undef and redefine.
975 (xresizevec): New.
976 (XRESIZEVEC): Undef and redefine.
977 (xdeletevec): New.
978 (XDELETEVEC): Undef and redefine.
979 (xnewvar): New.
980 (XNEWVAR): Undef and redefine.
981 (xcnewvar): New.
982 (XCNEWVAR): Undef and redefine.
983 (xresizevar): New.
984 (XRESIZEVAR): Undef and redefine.
985
7aabaf9d
SM
9862017-11-24 Simon Marchi <simon.marchi@polymtl.ca>
987
988 * gdbthread.h (private_thread_info): Define structure type, add
989 virtual pure destructor.
990 (thread_info) <priv>: Change type to unique_ptr.
991 <private_dtor>: Remove.
992 * thread.c (add_thread_with_info): Adjust to use of unique_ptr.
993 (private_thread_info::~private_thread_info): Provide default
994 implementation.
995 (thread_info::~thread_info): Don't call private_dtor nor
996 manually free priv.
997 * aix-thread.c (private_thread_info): Rename to ...
998 (aix_thread_info): ... this.
999 (get_aix_thread_info): New.
1000 (sync_threadlists): Adjust.
1001 (iter_tid): Adjust.
1002 (aix_thread_resume): Adjust.
1003 (aix_thread_fetch_registers): Adjust.
1004 (aix_thread_store_registers): Adjust.
1005 (aix_thread_extra_thread_info): Adjust.
1006 * darwin-nat.h (private_thread_info): Rename to ...
1007 (darwin_thread_info): ... this.
1008 (get_darwin_thread_info): New.
1009 * darwin-nat.c (darwin_init_thread_list): Adjust.
1010 (darwin_check_new_threads): Adjust.
1011 (thread_info_from_private_thread_info): Adjust.
1012 * linux-thread-db.c (private_thread_info): Rename to ...
1013 (thread_db_thread_info): ... this, initialize fields.
1014 (get_thread_db_thread_info): New.
1015 <dying>: Change type to bool.
1016 (update_thread_state): Adjust to type rename.
1017 (record_thread): Adjust to type rename an use of unique_ptr.
1018 (thread_db_pid_to_str): Likewise.
1019 (thread_db_extra_thread_info): Likewise.
1020 (thread_db_thread_handle_to_thread_info): Likewise.
1021 (thread_db_get_thread_local_address): Likewise.
1022 * nto-tdep.h (private_thread_info): Rename to ...
1023 (nto_thread_info): ... this, initialize fields.
1024 (get_nto_thread_info): New.
1025 <name>: Change type to std::string.
1026 * nto-tdep.c (nto_extra_thread_info): Adjust to type rename and
1027 use of unique_ptr.
1028 * nto-procfs.c (update_thread_private_data_name): Adjust to
1029 std::string change, allocate nto_private_thread_info with new.
1030 (update_thread_private_data): Adjust to unique_ptr.
1031 * remote.c (private_thread_info): Rename to ...
1032 (remote_thread_info): ... this, initialize data members with
1033 default values.
1034 <extra, name>: Change type to std::string.
1035 <thread_handle>: Change type to non-pointer.
1036 (free_private_thread_info): Remove.
1037 (get_private_info_thread): Rename to...
1038 (get_remote_thread_info): ... this, change return type, adjust to
1039 use of unique_ptr, use remote_thread_info constructor.
1040 (remote_add_thread): Adjust.
1041 (get_private_info_ptid): Rename to...
1042 (get_remote_thread_info): ...this, change return type.
1043 (remote_thread_name): Use get_remote_thread_info, adjust to
1044 change to std::string.
1045 (struct thread_item) <~thread_item>: Remove.
1046 <thread_handle>: Make non pointer.
1047 (start_thread): Adjust to thread_item::thread_handle type
1048 change.
1049 (remote_update_thread_list): Adjust to type name change, move
1050 strings from temporary to long-lived object instead of
1051 duplicating.
1052 (remote_threads_extra_info): Use get_remote_thread_info.
1053 (process_initial_stop_replies): Likewise.
1054 (resume_clear_thread_private_info): Likewise.
1055 (remote_resume): Adjust to type name change.
1056 (remote_commit_resume): Use get_remote_thread_info.
1057 (process_stop_reply): Adjust to type name change.
1058 (remote_stopped_by_sw_breakpoint): Use get_remote_thread_info.
1059 (remote_stopped_by_hw_breakpoint): Likewise.
1060 (remote_stopped_by_watchpoint): Likewise.
1061 (remote_stopped_data_address): Likewise.
1062 (remote_core_of_thread): Likewise.
1063 (remote_thread_handle_to_thread_info): Use
1064 get_private_info_thread, adjust to thread_handle field type
1065 change.
1066
21fe1c75
SM
10672017-11-24 Simon Marchi <simon.marchi@polymtl.ca>
1068
1069 * remote.c (struct thread_item): Add constructor, disable copy
1070 construction and copy assignment, define default move
1071 construction and move assignment.
1072 <extra, name>: Change type to std::string.
1073 <core>: Initialize.
1074 <thread_handle>: Make non-pointer.
1075 (thread_item_t): Remove typedef.
1076 (DEF_VEC_O(thread_item_t)): Remove.
1077 (threads_listing_context) <contains_thread>: New method.
1078 <remove_thread>: New method.
1079 <items>: Change type to std::vector.
1080 (clear_threads_listing_context): Remove.
1081 (threads_listing_context_remove): Remove.
1082 (remote_newthread_step): Use thread_item constructor, adjust to
1083 change to std::vector.
1084 (start_thread): Use thread_item constructor, adjust to change to
1085 std::vector.
1086 (end_thread): Adjust to change to std::vector and std::string.
1087 (remote_get_threads_with_qthreadinfo): Use thread_item
1088 constructor, adjust to std::vector.
1089 (remote_update_thread_list): Adjust to change to std::vector and
1090 std::string, use threads_listing_context methods.
1091 (remove_child_of_pending_fork): Adjust.
1092 (remove_new_fork_children): Adjust.
1093 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add rsp-low-selftests.c.
1094 (SUBDIR_UNITTESTS_OBS): Add rsp-low-selftests.o.
1095 * unittests/rsp-low-selftests.c: New file.
1096 * common/rsp-low.h: Include common/byte-vector.h.
1097 (hex2bin): New overload.
1098 * common/rsp-low.c (hex2bin): New overload.
1099
089354bb
SM
11002017-11-24 Simon Marchi <simon.marchi@ericsson.com>
1101
1102 * inferior.h (private_inferior): Define structure type, add
1103 virtual pure destructor.
1104 (inferior) <priv>: Change type to unique_ptr.
1105 * inferior.c (private_inferior::~private_inferior): Provide
1106 default implementation.
1107 (inferior::~inferior): Don't free priv field.
1108 (exit_inferior_1): Likewise.
1109 * darwin-nat.h (struct darwin_exception_info): Initialize fields.
1110 (darwin_exception_info): Remove typedef.
1111 (DEF_VEC_O (darwin_thread_t)); Remove.
1112 (private_inferior): Rename to ...
1113 (darwin_private_inferior): ... this, extend private_inferior.
1114 (get_darwin_inferior): New.
1115 <threads>: Change type to std::vector of darwin_thread_t pointers.
1116 * darwin-nat.c (darwin_check_new_threads): Adjust.
1117 (find_inferior_task_it): Adjust.
1118 (darwin_find_thread); Adjust.
1119 (darwin_suspend_inferior): Adjust.
1120 (darwin_resume_inferior): Adjust.
1121 (darwin_find_new_inferior): Adjust.
1122 (darwin_decode_notify_message): Adjust.
1123 (darwin_send_reply): Adjust.
1124 (darwin_resume_inferior_threads): Adjust.
1125 (darwin_suspend_inferior_threads): Adjust.
1126 (darwin_decode_message): Adjust.
1127 (darwin_wait): Adjust.
1128 (darwin_interrupt): Adjust.
1129 (darwin_deallocate_threads): Adjust.
1130 (darwin_mourn_inferior): Adjust, don't free private data.
1131 (darwin_reply_to_all_pending_messages): Adjust.
1132 (darwin_stop_inferior): Adjust.
1133 (darwin_setup_exceptions): Adjust.
1134 (darwin_kill_inferior): Adjust.
1135 (darwin_setup_request_notification): Adjust.
1136 (darwin_attach_pid): Adjust.
1137 (darwin_init_thread_list): Adjust.
1138 (darwin_setup_fake_stop_event): Adjust.
1139 (darwin_attach): Adjust.
1140 (darwin_detach): Adjust.
1141 (darwin_xfer_partial): Adjust.
1142 (set_enable_mach_exceptions): Adjust.
1143 (darwin_pid_to_exec_file): Adjust.
1144 (darwin_get_ada_task_ptid): Adjust.
1145 * darwin-nat-info.c (get_task_from_args): Adjust.
1146 (info_mach_ports_command): Adjust.
1147 (info_mach_region_command): Adjust.
1148 (info_mach_exceptions_command): Adjust.
1149 * remote.c (private_inferior): Rename to ...
1150 (remote_private_inferior): ... this, initialize fields.
1151 (get_remote_inferior); New.
1152 (remote_commit_resume): Use get_remote_inferior.
1153 (check_pending_event_prevents_wildcard_vcont_callback): Likewise.
1154
d044bac8
PA
11552017-11-24 Pedro Alves <palves@redhat.com>
1156
1157 * NEWS: Mention linespecs and explicit locations, and completion
1158 improvements.
1159
e8d58cba
YQ
11602017-11-24 Yao Qi <yao.qi@linaro.org>
1161
1162 * regcache.c (regcache::dump): Remove footnote_register_size.
1163
a63f2d2f
YQ
11642017-11-24 Yao Qi <yao.qi@linaro.org>
1165
1166 * regcache.c (cooked_read_test): Add more test for readonly
1167 regcache.
1168
1b30aaa5
YQ
11692017-11-24 Yao Qi <yao.qi@linaro.org>
1170
1171 * gdbarch-selftests.c (test_target_has_registers): Move it to
1172 target.c.
1173 (test_target_has_stack): Likewise.
1174 (test_target_has_memory): Likewise.
1175 (test_target_prepare_to_store): Likewise.
1176 (test_target_store_registers): Likewise.
1177 (test_target_ops): Likewise.
1178 * regcache.c: Include selftest-arch.h and gdbthread.h.
1179 (target_ops_no_register): New class.
1180 (test_target_fetch_registers): New.
1181 (test_target_store_registers): New.
1182 (test_target_xfer_partial): New.
1183 (readwrite_regcache): New.
1184 (cooked_read_test): New.
1185 (_initialize_regcache): Register the test.
1186 * target.c: (test_target_has_registers): Moved from
1187 gdbarch-selftests.c.
1188 (test_target_has_stack): Likewise.
1189 (test_target_has_memory): Likewise.
1190 (test_target_prepare_to_store): Likewise.
1191 (test_target_store_registers): Likewise.
1192 * target.h (test_target_ops): New class.
1193
6654d750
AH
11942017-11-24 Alan Hayward <alan.hayward@arm.com>
1195
1196 * aarch64-tdep.c (_initialize_aarch64_tdep): Add target desc
1197 selftest.
1198
49bdb7ee
AH
11992017-11-24 Alan Hayward <alan.hayward@arm.com>
1200
1201 * aarch64-tdep.c (_initialize_aarch64_tdep): Remove init.
1202 * arch/aarch64.c (aarch64_create_target_description): Create
1203 new target description.
1204 * features/Makefile: Add new files.
1205 * features/aarch64.c: Remove file.
1206 * features/aarch64-core.c: New autogenerated file.
1207 * features/aarch64-fpu.c: New autogenerated file.
1208 * target-descriptions.c (maint_print_c_tdesc_cmd): Check for aarch64.
da434ccb
AH
1209
12102017-11-24 Alan Hayward <alan.hayward@arm.com>
1211
1212 * Makefile.in: Add new files.
1213 * aarch64-linux-nat.c (aarch64_linux_read_description): Call
1214 aarch64_read_description.
1215 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
1216 Call aarch64_read_description.
1217 * aarch64-tdep.c (aarch64_read_description): New function.
1218 (aarch64_gdbarch_init): Call aarch64_read_description.
1219 * aarch64-tdep.h (aarch64_read_description): New function.
1220 * arch/aarch64.c: New file.
1221 * configure.tgt: Add new files.
1222
98ead37e
YQ
12232017-11-24 Yao Qi <yao.qi@linaro.org>
1224
1225 * mi/mi-main.c (register_changed_p): Update.
1226 * value.c (value_contents_bits_eq): Change return type.
1227 (value_contents_eq): Likewise.
1228 * value.h: Update comments.
1229
62ad7ce7
YQ
12302017-11-24 Yao Qi <yao.qi@linaro.org>
1231
1232 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Remove
1233 local 'changed'. Remove error.
1234 (register_changed_p): Change return type to bool.
1235
506fe5f4
YQ
12362017-11-24 Yao Qi <yao.qi@linaro.org>
1237
1238 * arch/tic6x.c: New file.
1239 * arch/tic6x.h: New file.
1240 * features/Makefile (FEATURE_XMLFILES): Add tic6x-c6xp.xml,
1241 tic6x-core.xml and tic6x-gp.xml.
1242 * features/tic6x-c6xp.c: Generated.
1243 * features/tic6x-core.c: Generated.
1244 * features/tic6x-gp.c: Generated.
1245 * target-descriptions.c (maint_print_c_tdesc_cmd): Match
1246 "tic6x-".
1247
00ea2e2a
SM
12482017-11-23 Simon Marchi <simon.marchi@ericsson.com>
1249
1250 * mi/mi-main.c (list_available_thread_groups): Change map value
1251 type to std::vector.
1252
f45e2a77
SM
12532017-11-23 Simon Marchi <simon.marchi@ericsson.com>
1254
1255 * osdata.c (osdata_end_column, get_osdata): Remove std::move.
1256
bd046f64
SM
12572017-11-23 Simon Marchi <simon.marchi@ericsson.com>
1258
1259 * varobj.c (struct varobj_dynamic) <children_requested_>: Rename
1260 back to...
1261 <children_requested>: ... this.
1262 (varobj_get_num_children, varobj_update): Adjust.
1263
4c37490d
SM
12642017-11-23 Simon Marchi <simon.marchi@ericsson.com>
1265
1266 * ada-varobj.c (ada_value_is_changeable_p): Change int to bool where applicable.
1267 (ada_value_has_mutated): Likewise.
1268 * c-varobj.c (varobj_is_anonymous_child): Likewise.
1269 (c_is_path_expr_parent): Likewise.
1270 * mi/mi-cmd-var.c (varobj_update_one): Likewise.
1271 (mi_cmd_var_set_frozen): Likewise.
1272 (mi_cmd_var_update_iter): Likewise.
1273 (mi_cmd_var_update): Likewise.
1274 * varobj.c (pretty_printing): Likewise.
1275 (varobj_enable_pretty_printing): Likewise.
1276 (struct varobj_root) <floating, is_valid>: Likewise.
1277 (struct varobj_dynamic) <children_requested>: Likewise.
1278 (delete_variable): Likewise.
1279 (delete_variable_1): Likewise.
1280 (install_variable): Likewise.
1281 (update_type_if_necessary): Likewise.
1282 (install_new_value): Likewise.
1283 (value_of_root): Likewise.
1284 (is_root_p): Likewise.
1285 (varobj_create): Likewise.
1286 (varobj_delete): Likewise.
1287 (varobj_has_more): Likewise.
1288 (varobj_set_frozen): Likewise.
1289 (varobj_get_frozen): Likewise.
1290 (install_dynamic_child): Likewise.
1291 (dynamic_varobj_has_child_method): Likewise.
1292 (update_dynamic_varobj_children): Likewise.
1293 (varobj_get_num_children): Likewise.
1294 (varobj_list_children): Likewise.
1295 (is_path_expr_parent): Likewise.
1296 (varobj_default_is_path_expr_parent): Likewise.
1297 (varobj_is_dynamic_p): Likewise.
1298 (varobj_set_value): Likewise.
1299 (varobj_value_has_mutated): Likewise.
1300 (varobj_update): Likewise.
1301 (check_scope): Likewise.
1302 (value_of_root_1): Likewise.
1303 (varobj_value_get_print_value): Likewise.
1304 (varobj_editable_p): Likewise.
1305 (varobj_value_is_changeable_p): Likewise.
1306 (varobj_floating_p): Likewise.
1307 (varobj_default_value_is_changeable_p): Likewise.
1308 (varobj_invalidate_iter): Likewise.
1309 * varobj.h (struct varobj_update_result) <type_changed,
1310 children_changed, changed, value_installed>: Likewise.
1311 (struct varobj) <updated, frozen, not_fetched>: Likewise.
1312 (struct lang_varobj_ops) <value_is_changeable_p,
1313 value_has_mutated, is_path_expr_parent>: Likewise.
1314 (varobj_delete): Likewise.
1315 (varobj_set_frozen): Likewise.
1316 (varobj_get_frozen): Likewise.
1317 (varobj_set_value): Likewise.
1318 (varobj_update): Likewise.
1319 (varobj_editable_p): Likewise.
1320 (varobj_floating_p): Likewise.
1321 (varobj_has_more): Likewise.
1322 (varobj_is_dynamic_p): Likewise.
1323 (varobj_default_value_is_changeable_p): Likewise.
1324 (varobj_value_is_changeable_p): Likewise.
1325 (varobj_is_anonymous_child): Likewise.
1326 (varobj_default_is_path_expr_parent): Likewise.
1327
9c23b42f
SDJ
13282017-11-22 Sergio Durigan Junior <sergiodj@redhat.com>
1329
1330 * dtrace-probe.c (struct probe_ops dtrace_probe_ops): Delete.
1331 (struct dtrace_probe_arg) <dtrace_probe_arg>: New constructor.
1332 <type_str>: Convert to 'std::string'.
1333 <expr>: Convert to 'expression_up'.
1334 (dtrace_probe_arg_s): Delete type and VEC.
1335 (dtrace_probe_enabler_s): Likewise.
1336 (struct dtrace_probe): Replace by...
1337 (class dtrace_static_probe_ops): ...this and...
1338 (class dtrace_probe): ...this.
1339 (dtrace_probe_is_linespec): Rename to...
1340 (dtrace_static_probe_ops::is_linespec): ...this. Adjust code
1341 to reflect change.
1342 (dtrace_process_dof_probe): Use 'std::vector' instead of VEC.
1343 Adjust code. Create new instance of 'dtrace_probe'.
1344 (dtrace_build_arg_exprs): Rename to...
1345 (dtrace_probe::build_arg_exprs): ...this. Adjust code to
1346 reflect change.
1347 (dtrace_get_probes): Rename to...
1348 (dtrace_static_probe_ops::get_probes): ...this. Adjust code
1349 to reflect change.
1350 (dtrace_get_arg): Rename to...
1351 (dtrace_probe::get_arg_by_number): ...this. Adjust code to
1352 reflect change.
1353 (dtrace_probe_is_enabled): Rename to...
1354 (dtrace_probe::is_enabled): ...this. Adjust code to reflect
1355 change.
1356 (dtrace_get_probe_address): Rename to...
1357 (dtrace_probe::get_relocated_address): ...this. Adjust code
1358 to reflect change.
1359 (dtrace_get_probe_argument_count): Rename to...
1360 (dtrace_probe::get_argument_count): ...this. Adjust code to
1361 reflect change.
1362 (dtrace_can_evaluate_probe_arguments): Rename to...
1363 (dtrace_probe::can_evaluate_arguments): ...this. Adjust code
1364 to reflect change.
1365 (dtrace_evaluate_probe_argument): Rename to...
1366 (dtrace_probe::evaluate_argument): ...this. Adjust code to
1367 reflect change.
1368 (dtrace_compile_to_ax): Rename to...
1369 (dtrace_probe::compile_to_ax): ...this. Adjust code to
1370 reflect change.
1371 (dtrace_probe_destroy): Delete.
1372 (dtrace_type_name): Rename to...
1373 (dtrace_static_probe_ops::type_name): ...this. Adjust code to
1374 reflect change.
1375 (dtrace_probe::get_static_ops): New method.
1376 (dtrace_gen_info_probes_table_header): Rename to...
1377 (dtrace_static_probe_ops::gen_info_probes_table_header):
1378 ...this. Adjust code to reflect change.
1379 (dtrace_gen_info_probes_table_values): Rename to...
1380 (dtrace_probe::gen_info_probes_table_values): ...this. Adjust
1381 code to reflect change.
1382 (dtrace_enable_probe): Rename to...
1383 (dtrace_probe::enable_probe): ...this. Adjust code to reflect
1384 change.
1385 (dtrace_disable_probe): Rename to...
1386 (dtrace_probe::disable_probe): ...this. Adjust code to reflect
1387 change.
1388 (struct probe_ops dtrace_probe_ops): Delete.
1389 (info_probes_dtrace_command): Call 'info_probes_for_spops'
1390 instead of 'info_probes_for_ops'.
1391 (_initialize_dtrace_probe): Use 'all_static_probe_ops' instead
1392 of 'all_probe_ops'.
1393
0e9ae10f
SDJ
13942017-11-22 Sergio Durigan Junior <sergiodj@redhat.com>
1395 Simon Marchi <simark@simark.ca>
1396
1397 * stap-probe.c (struct probe_ops stap_probe_ops): Delete
1398 variable.
1399 (struct stap_probe_arg) <stap_probe_arg>: New constructor.
1400 <aexpr>: Change type to 'expression_up'.
1401 (stap_probe_arg_s): Delete type and VEC.
1402 (struct stap_probe): Delete. Replace by...
1403 (class stap_static_probe_ops): ...this and...
1404 (class stap_probe): ...this. Rename variables to add 'm_'
1405 prefix. Do not use 'union' for arguments anymore.
1406 (stap_get_expected_argument_type): Receive probe name instead
1407 of 'struct stap_probe'. Adjust code.
1408 (stap_parse_probe_arguments): Rename to...
1409 (stap_probe::parse_arguments): ...this. Adjust code to
1410 reflect change.
1411 (stap_get_probe_address): Rename to...
1412 (stap_probe::get_relocated_address): ...this. Adjust code
1413 to reflect change.
1414 (stap_get_probe_argument_count): Rename to...
1415 (stap_probe::get_argument_count): ...this. Adjust code
1416 to reflect change.
1417 (stap_get_arg): Rename to...
1418 (stap_probe::get_arg_by_number'): ...this. Adjust code to
1419 reflect change.
1420 (can_evaluate_probe_arguments): Rename to...
1421 (stap_probe::can_evaluate_arguments): ...this. Adjust code
1422 to reflect change.
1423 (stap_evaluate_probe_argument): Rename to...
1424 (stap_probe::evaluate_argument): ...this. Adjust code
1425 to reflect change.
1426 (stap_compile_to_ax): Rename to...
1427 (stap_probe::compile_to_ax): ...this. Adjust code to
1428 reflect change.
1429 (stap_probe_destroy): Delete.
1430 (stap_modify_semaphore): Adjust comment.
1431 (stap_set_semaphore): Rename to...
1432 (stap_probe::set_semaphore): ...this. Adjust code to reflect
1433 change.
1434 (stap_clear_semaphore): Rename to...
1435 (stap_probe::clear_semaphore): ...this. Adjust code to
1436 reflect change.
1437 (stap_probe::get_static_ops): New method.
1438 (handle_stap_probe): Adjust code to create instance of
1439 'stap_probe'.
1440 (stap_get_probes): Rename to...
1441 (stap_static_probe_ops::get_probes): ...this. Adjust code to
1442 reflect change.
1443 (stap_probe_is_linespec): Rename to...
1444 (stap_static_probe_ops::is_linespec): ...this. Adjust code to
1445 reflect change.
1446 (stap_type_name): Rename to...
1447 (stap_static_probe_ops::type_name): ...this. Adjust code to
1448 reflect change.
1449 (stap_gen_info_probes_table_header): Rename to...
1450 (stap_static_probe_ops::gen_info_probes_table_header):
1451 ...this. Adjust code to reflect change.
1452 (stap_gen_info_probes_table_values): Rename to...
1453 (stap_probe::gen_info_probes_table_values): ...this. Adjust
1454 code to reflect change.
1455 (struct probe_ops stap_probe_ops): Delete.
1456 (info_probes_stap_command): Use 'info_probes_for_spops'
1457 instead of 'info_probes_for_ops'.
1458 (_initialize_stap_probe): Use 'all_static_probe_ops' instead
1459 of 'all_probe_ops'.
1460
935676c9
SDJ
14612017-11-22 Sergio Durigan Junior <sergiodj@redhat.com>
1462
1463 * break-catch-throw.c (fetch_probe_arguments): Use
1464 'probe.prob' instead of 'probe.probe'.
1465 * breakpoint.c (create_longjmp_master_breakpoint): Call
1466 'can_evaluate_arguments' and 'get_relocated_address' methods
1467 from probe.
1468 (create_exception_master_breakpoint): Likewise.
1469 (add_location_to_breakpoint): Use 'sal->prob' instead of
1470 'sal->probe'.
1471 (bkpt_probe_insert_location): Call 'set_semaphore' method from
1472 probe.
1473 (bkpt_probe_remove_location): Likewise, for 'clear_semaphore'.
1474 * elfread.c (elf_get_probes): Use 'static_probe_ops' instead
1475 of 'probe_ops'.
1476 (probe_key_free): Call 'delete' on probe.
1477 (check_exception_resume): Use 'probe.prob' instead of
1478 'probe.probe'.
1479 * location.c (string_to_event_location_basic): Call
1480 'probe_linespec_to_static_ops'.
1481 * probe.c (class any_static_probe_ops): New class.
1482 (any_static_probe_ops any_static_probe_ops): New variable.
1483 (parse_probes_in_pspace): Receive 'static_probe_ops' as
1484 argument. Adjust code to reflect change.
1485 (parse_probes): Use 'static_probe_ops' instead of
1486 'probe_ops'. Adjust code to reflect change.
1487 (find_probes_in_objfile): Call methods to get name and
1488 provider from probe.
1489 (find_probe_by_pc): Use 'result.prob' instead of
1490 'result.probe'. Call 'get_relocated_address' method from
1491 probe.
1492 (collect_probes): Adjust comment and argument list to receive
1493 'static_probe_ops' instead of 'probe_ops'. Adjust code to
1494 reflect change. Call necessary methods from probe.
1495 (compare_probes): Call methods to get name and provider from
1496 probes.
1497 (gen_ui_out_table_header_info): Receive 'static_probe_ops'
1498 instead of 'probe_ops'. Use 'std::vector' instead of VEC,
1499 adjust code accordingly.
1500 (print_ui_out_not_applicables): Likewise.
1501 (info_probes_for_ops): Rename to...
1502 (info_probes_for_spops): ...this. Receive 'static_probe_ops'
1503 as argument instead of 'probe_ops'. Adjust code. Call
1504 necessary methods from probe.
1505 (info_probes_command): Use 'info_probes_for_spops'.
1506 (enable_probes_command): Pass correct argument to
1507 'collect_probes'. Call methods from probe.
1508 (disable_probes_command): Likewise.
1509 (get_probe_address): Move to 'any_static_probe_ops::get_address'.
1510 (get_probe_argument_count): Move to
1511 'any_static_probe_ops::get_argument_count'.
1512 (can_evaluate_probe_arguments): Move to
1513 'any_static_probe_ops::can_evaluate_arguments'.
1514 (evaluate_probe_argument): Move to
1515 'any_static_probe_ops::evaluate_argument'.
1516 (probe_safe_evaluate_at_pc): Use 'probe.prob' instead of
1517 'probe.probe'.
1518 (probe_linespec_to_ops): Rename to...
1519 (probe_linespec_to_static_ops): ...this. Adjust code.
1520 (probe_any_is_linespec): Rename to...
1521 (any_static_probe_ops::is_linespec): ...this.
1522 (probe_any_get_probes): Rename to...
1523 (any_static_probe_ops::get_probes): ...this.
1524 (any_static_probe_ops::type_name): New method.
1525 (any_static_probe_ops::gen_info_probes_table_header): New
1526 method.
1527 (compute_probe_arg): Use 'pc_probe.prob' instead of
1528 'pc_probe.probe'. Call methods from probe.
1529 (compile_probe_arg): Likewise.
1530 (std::vector<const probe_ops *> all_probe_ops): Delete.
1531 (std::vector<const static_probe_ops *> all_static_probe_ops):
1532 New variable.
1533 (_initialize_probe): Use 'all_static_probe_ops' instead of
1534 'all_probe_ops'.
1535 * probe.h (struct info_probe_column) <field_name>: Delete
1536 extraneous newline
1537 (info_probe_column_s): Delete type and VEC.
1538 (struct probe_ops): Delete. Replace with...
1539 (class static_probe_ops): ...this and...
1540 (clas probe): ...this.
1541 (struct bound_probe) <bound_probe>: Delete extraneous
1542 newline. Adjust constructor to receive 'probe' instead of
1543 'struct probe'.
1544 <probe>: Rename to...
1545 <prob>: ...this. Delete extraneous newline.
1546 <objfile>: Delete extraneous newline.
1547 (register_probe_ops): Delete unused prototype.
1548 (info_probes_for_ops): Rename to...
1549 (info_probes_for_spops): ...this. Adjust comment.
1550 (get_probe_address): Move to 'probe::get_address'.
1551 (get_probe_argument_count): Move to
1552 'probe::get_argument_count'.
1553 (can_evaluate_probe_arguments): Move to
1554 'probe::can_evaluate_arguments'.
1555 (evaluate_probe_argument): Move to 'probe::evaluate_argument'.
1556 * solib-svr4.c (struct svr4_info): Adjust comment.
1557 (struct probe_and_action) <probe>: Rename to...
1558 <prob>: ...this.
1559 (register_solib_event_probe): Receive 'probe' instead of
1560 'struct probe' as argument. Use 'prob' instead of 'probe'
1561 when applicable.
1562 (solib_event_probe_action): Call 'get_argument_count' method
1563 from probe. Adjust comment.
1564 (svr4_handle_solib_event): Adjust comment. Call
1565 'evaluate_argument' method from probe.
1566 (svr4_create_probe_breakpoints): Call 'get_relocated_address'
1567 from probe.
1568 (svr4_create_solib_event_breakpoints): Use 'probe' instead of
1569 'struct probe'. Call 'can_evaluate_arguments' from probe.
1570 * symfile.h: Forward declare 'class probe' instead of 'struct
1571 probe'.
1572 * symtab.h: Likewise.
1573 (struct symtab_and_line) <probe>: Rename to...
1574 <prob>: ...this.
1575 * tracepoint.c (start_tracing): Use 'prob' when applicable.
1576 Call probe methods.
1577 (stop_tracing): Likewise.
1578
8f6cb6c3
JB
15792017-11-22 Joel Brobecker <brobecker@adacore.com>
1580
1581 * ravenscar-thread.c (ravenscar_inferior_created): Remove
1582 trailing newline at end of string in call to warning.
1583
479f8de1
SM
15842017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
1585
1586 * osdata.h: Include vector isntead of vec.h.
1587 (osdata_column_s): Remove typedef.
1588 (struct osdata_column): Add constructor.
1589 <name, value>: Change type to std::string.
1590 (DEF_VEC_O (osdata_column_s)): Remove.
1591 (osdata_item_s): Remove typedef.
1592 (struct osdata_item) <columns>: Change type to std::vector.
1593 (DEF_VEC_O (osdata_item_s)): Remove.
1594 (struct osdata): Add constructor.
1595 <type>: Change type to std::string.
1596 <items>: Change type to std::vector.
1597 (osdata_p): Remove typedef.
1598 (DEF_VEC_P (osdata_p)): Remove.
1599 (osdata_parse): Return a unique_ptr.
1600 (osdata_free): Remove.
1601 (make_cleanup_osdata_free): Remove.
1602 (get_osdata): Return a unique_ptr.
1603 (get_osdata_column): Return pointer to std::string, take a
1604 reference to osdata_item as parameter.
1605 * osdata.c (struct osdata_parsing_data) <osdata>: Change type to
1606 unique_ptr.
1607 <property_name>: Change type to std::string.
1608 (osdata_start_osdata): Allocate osdata with new and adjust.
1609 (osdata_start_item): Adjust.
1610 (osdata_start_column): Adjust.
1611 (osdata_end_column): Adjust.
1612 (clear_parsing_data): Remove.
1613 (osdata_parse): Return a unique_ptr and adjust, remove cleanup.
1614 (osdata_item_clear): Remove.
1615 (get_osdata): return a unique_ptr and adjust.
1616 (get_osdata_column): Return a pointer to std::string and adjust.
1617 (info_osdata): Adjust.
1618 * mi/mi-main.c: Include <map>.
1619 (free_vector_of_osdata_items): Remove.
1620 (list_available_thread_groups): Adjust, use std::map instead of
1621 splay tree.
1622
41bd68f5
SM
16232017-11-22 Simon Marchi <simon.marchi@ericsson.com>
1624
1625 * stack.c (iterate_over_block_locals): Add LOC_OPTIMIZED_OUT
1626 case in switch.
1627
7e2fd2f4
SM
16282017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
1629
1630 * varobj.h (DEF_VEC_P (varobj_p)): Remove.
1631
0604393c
SM
16322017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
1633
1634 * varobj.h (struct varobj_update_result): Add constructor, add
1635 move constructor, disable copy and assign, initialize fields.
1636 <newobj>: Change type to std::vector.
1637 (varobj_update): Return std::vector.
1638 * varobj.c (install_dynamic_child): Change VEC parameters to
1639 std::vector and adjust.
1640 (update_dynamic_varobj_children): Likewise.
1641 (varobj_update): Return std::vector and adjust.
1642 * mi/mi-cmd-var.c (varobj_update_one): Adjust to vector changes.
1643
ddf0ea08
SM
16442017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
1645
1646 * varobj.h (struct varobj) <parent>: Remove const.
1647 <children>: Change type to std::vector.
1648 (varobj_list_children): Return std::vector const reference.
1649 (varobj_restrict_range): Change parameter type to std::vector
1650 const reference.
1651 * varobj.c (varobj_has_more): Adjust.
1652 (varobj_restrict_range): Change parameter type to std::vector
1653 const reference and adjust.
1654 (install_dynamic_child): Adjust.
1655 (update_dynamic_varobj_children): Adjust.
1656 (varobj_list_children): Return std::vector const reference and
1657 adjust.
1658 (varobj_add_child): Adjust.
1659 (update_type_if_necessary): Adjust.
1660 (varobj_update): Adjust.
1661 (delete_variable_1): Adjust.
1662 * ada-varobj.c (ada_value_has_mutated): Adjust.
1663 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust.
1664
9e5b9d2b
SM
16652017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
1666
1667 * varobj.h (struct varobj): Add constructor and destructor,
1668 initialize fields.
1669 * varobj.c (struct varobj_root): Initialize fields.
1670 (struct varobj_dynamic): Initialize fields.
1671 (varobj_create): Use unique_ptr instead of cleanup. Create
1672 varobj with new instead of new_root_variable.
1673 (delete_variable_1): Free variable with delete instead of
1674 free_variable.
1675 (create_child_with_value): Create variable with new instead of
1676 new_variable.
1677 (varobj::varobj): New.
1678 (varobj::~varobj): New (body mostly coming from free_variable).
1679 (new_variable): Remove.
1680 (free_variable): Remove.
1681 (do_free_variable_cleanup): Remove.
1682 (make_cleanup_free_variable): Remove.
1683
fc35dab1
UW
16842017-11-22 Ulrich Weigand <uweigand@de.ibm.com>
1685
1686 * core-regset.c: Remove file.
1687 * Makefile.in (ALLDEPFILES): Remove core-regset.c.
1688
2400729e
UW
16892017-11-22 Ulrich Weigand <uweigand@de.ibm.com>
1690
1691 * NEWS: Document use of GNU MPFR.
1692 * README: Likewise.
1693
1694 * Makefile.in (LIBMPFR): Add define.
1695 (CLIBS): Add $(LIBMPFR).
1696 * configure.ac: Add --with-mpfr configure option.
1697 * configure: Regenerate.
1698 * config.in: Regenerate.
1699
1700 * target-float.c [HAVE_LIBMPFR]: Include <mpfr.h>.
1701 (class mpfr_float_ops): New type.
1702 (mpfr_float_ops::from_target): Two new overloaded functions.
1703 (mpfr_float_ops::to_target): Likewise.
1704 (mpfr_float_ops::to_string): New function.
1705 (mpfr_float_ops::from_string): Likewise.
1706 (mpfr_float_ops::to_longest): Likewise.
1707 (mpfr_float_ops::from_longest): Likewise.
1708 (mpfr_float_ops::from_ulongest): Likewise.
1709 (mpfr_float_ops::to_host_double): Likewise.
1710 (mpfr_float_ops::from_host_double): Likewise.
1711 (mpfr_float_ops::convert): Likewise.
1712 (mpfr_float_ops::binop): Likewise.
1713 (mpfr_float_ops::compare): Likewise.
1714 (get_target_float_ops): Use mpfr_float_ops if available.
1715
7a26362d
UW
17162017-11-22 Ulrich Weigand <uweigand@de.ibm.com>
1717
1718 * target-float.c: Do not include <math.h>.
1719 Include <cmath> and <limits>.
1720 (DOUBLEST): Do not define.
1721 (class target_float_ops): New type.
1722 (class host_float_ops): New templated type.
1723 (class decimal_float_ops): New type.
1724
1725 (floatformat_to_doublest): Rename to ...
1726 (host_float_ops<T>::from_target): ... this. Use template type T
1727 instead of DOUBLEST. Use C++ math routines. Update recursive calls.
1728 (host_float_ops<T>::from_target): New overload using a type argument.
1729 (floatformat_from_doublest): Rename to ...
1730 (host_float_ops<T>::to_target): ... this. Use template type T
1731 instead of DOUBLEST. Use C++ math routines. Update recursive calls.
1732 (host_float_ops<T>::to_target): New overload using a type argument.
1733 (floatformat_printf_format): New function.
1734 (struct printf_length_modifier): New templated type.
1735 (floatformat_to_string): Rename to ...
1736 (host_float_ops<T>::to_string): ... this. Use type instead of
1737 floatformat argument. Use floatformat_printf_format and
1738 printf_length_modifier. Remove special handling of invalid numbers,
1739 infinities and NaN (moved to target_float_to_string).
1740 (struct scanf_length_modifier): New templated type.
1741 (floatformat_from_string): Rename to ...
1742 (host_float_ops<T>::from_string): ... this. Use type instead of
1743 floatformat argument. Use scanf_length_modifier.
1744 (floatformat_to_longest): Rename to ...
1745 (host_float_ops<T>::to_longest): ... this. Use type instead of
1746 floatformat argument. Handle out-of-range values deterministically.
1747 (floatformat_from_longest): Rename to ...
1748 (host_float_ops<T>::from_longest): ... this. Use type instead of
1749 floatformat argument.
1750 (floatformat_from_ulongest): Rename to ...
1751 (host_float_ops<T>::from_ulongest): ... this. Use type instead of
1752 floatformat argument.
1753 (floatformat_to_host_double): Rename to ...
1754 (host_float_ops<T>::to_host_double): ... this. Use type instead of
1755 floatformat argument.
1756 (floatformat_from_host_double): Rename to ...
1757 (host_float_ops<T>::from_host_double): ... this. Use type instead of
1758 floatformat argument.
1759 (floatformat_convert): Rename to ...
1760 (host_float_ops<T>::convert): ... this. Use type instead of
1761 floatformat arguments. Remove handling of no-op conversions.
1762 (floatformat_binop): Rename to ...
1763 (host_float_ops<T>::binop): ... this. Use type instead of
1764 floatformat arguments.
1765 (floatformat_compare): Rename to ...
1766 (host_float_ops<T>::compare): ... this. Use type instead of
1767 floatformat arguments.
1768
1769 (match_endianness): Use type instead of length/byte_order arguments.
1770 (set_decnumber_context): Likewise.
1771 (decimal_from_number): Likewise. Update calls.
1772 (decimal_to_number): Likewise.
1773 (decimal_is_zero): Likewise. Update calls. Move to earlier in file.
1774 (decimal_float_ops::to_host_double): New dummy function.
1775 (decimal_float_ops::from_host_double): Likewise.
1776 (decimal_to_string): Rename to ...
1777 (decimal_float_ops::to_string): ... this. Use type instead of
1778 length/byte_order arguments. Update calls.
1779 (decimal_from_string): Rename to ...
1780 (decimal_float_ops::from_string): ... this. Use type instead of
1781 length/byte_order arguments. Update calls.
1782 (decimal_from_longest): Rename to ...
1783 (decimal_float_ops::from_longest): ... this. Use type instead of
1784 length/byte_order arguments. Update calls.
1785 (decimal_from_ulongest): Rename to ...
1786 (decimal_float_ops::from_ulongest): ... this. Use type instead of
1787 length/byte_order arguments. Update calls.
1788 (decimal_to_longest): Rename to ...
1789 (decimal_float_ops::to_longest): ... this. Use type instead of
1790 length/byte_order arguments. Update calls.
1791 (decimal_binop): Rename to ...
1792 (decimal_float_ops::binop): ... this. Use type instead of
1793 length/byte_order arguments. Update calls.
1794 (decimal_compare): Rename to ...
1795 (decimal_float_ops::compare): ... this. Use type instead of
1796 length/byte_order arguments. Update calls.
1797 (decimal_convert): Rename to ...
1798 (decimal_float_ops::convert): ... this. Use type instead of
1799 length/byte_order arguments. Update calls.
1800
1801 (target_float_same_category_p): New function.
1802 (target_float_same_format_p): Likewise.
1803 (target_float_format_length): Likewise.
1804 (enum target_float_ops_kind): New type.
1805 (get_target_float_ops_kind): New function.
1806 (get_target_float_ops): Three new overloaded functions.
1807
1808 (target_float_is_zero): Update call.
1809 (target_float_to_string): Add special handling of invalid numbers,
1810 infinities and NaN (moved from floatformat_to_string). Use
1811 target_float_ops callback.
1812 (target_float_from_string): Use target_float_ops callback.
1813 (target_float_to_longest): Likewise.
1814 (target_float_from_longest): Likewise.
1815 (target_float_from_ulongest): Likewise.
1816 (target_float_to_host_double): Likewise.
1817 (target_float_from_host_double): Likewise.
1818 (target_float_convert): Add special case for no-op conversions.
1819 Use target_float_ops callback.
1820 (target_float_binop): Use target_float_ops callback.
1821 (target_float_compare): Likewise.
1822
a9f26f60
YQ
18232017-11-22 Yao Qi <yao.qi@linaro.org>
1824
1825 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use strcpy.
1826
29f9a567
YQ
18272017-11-22 Yao Qi <yao.qi@linaro.org>
1828
1829 * cli/cli-decode.c (help_list): Use memcpy instead of strncpy.
1830 * cp-namespace.c (cp_lookup_transparent_type_loop): Likewise.
1831
3b1b69bf
JG
18322017-11-21 Jerome Guitton <guitton@adacore.com>
1833
1834 * ravenscar-thread.c (ravenscar_wait): Update inferior ptid
1835 with event ptid from the lower layer before doing the
1836 ravenscar-specific update.
1837
54aa6c67
JB
18382017-11-21 Joel Brobecker <brobecker@adacore.com>
1839
1840 * ravenscar-thread.c (is_ravenscar_task): Also verify that
1841 the ptid's TID is nonzero.
1842
cf3fbed4
JB
18432017-11-21 Joel Brobecker <brobecker@adacore.com>
1844
1845 * ada-lang.h (ada_get_tcb_types_info): Add declaration.
1846 * ada-tasks.c (ada_get_tcb_types_info): Renames get_tcb_types_info.
1847 Make non-static. Change return type to char *. Adjust code
1848 accordingly. Rewrite the function's documentation.
1849 (read_atcb): Adjust call to get_tcb_types_info accordingly.
1850 * ravenscar-thread.c (ravenscar_inferior_created): Check that
1851 we have enough debugging information in the runtime to support
1852 Ada task debugging before we enable the ravenscar-thread layer.
1853
9edcc12f
JB
18542017-11-21 Joel Brobecker <brobecker@adacore.com>
1855
1856 * ada-lang.h (ada_get_task_info_from_ptid): Add declaration.
1857 * ada-tasks.c (ada_get_task_info_from_ptid): New function.
1858 * ravenscar-thread.c: Add into comment.
1859 (base_magic_null_ptid): Delete.
1860 (base_ptid): Change documentation.
1861 (ravenscar_active_task): Renames ravenscar_running_thread.
1862 All callers updated throughout.
1863 (is_ravenscar_task, ravenscar_get_thread_base_cpu): New function.
1864 (ravenscar_task_is_currently_active): Likewise.
1865 (get_base_thread_from_ravenscar_task): Ditto.
1866 (ravenscar_update_inferior_ptid): Adjust to handle multiple CPUs.
1867 (ravenscar_runtime_initialized): Likewise.
1868 (get_running_thread_id): Add new parameter "cpu". Adjust
1869 implementation to handle this new parameter.
1870 (ravenscar_fetch_registers): Small adjustment to use
1871 is_ravenscar_task and ravenscar_task_is_currently_active in
1872 order to decide whether to use the target beneath or this
1873 module's arch_ops.
1874 (ravenscar_store_registers, ravenscar_prepare_to_store): Likewise.
1875 (ravenscar_stopped_by_sw_breakpoint): Use
1876 get_base_thread_from_ravenscar_task to get the underlying
1877 thread, rather than using base_ptid.
1878 (ravenscar_stopped_by_hw_breakpoint, ravenscar_stopped_by_watchpoint)
1879 (ravenscar_stopped_data_address, ravenscar_core_of_thread):
1880 Likewise.
1881 (ravenscar_inferior_created): Do not set base_magic_null_ptid.
1882
65d40437
JB
18832017-11-21 Joel Brobecker <brobecker@adacore.com>
1884
1885 * ada-lang.h (struct ada_task_info) <base_cpu>: New field.
1886 * ada-lang.c (struct atcb_fieldno) <base_cpu>: New field.
1887 (get_tcb_types_info): Set fieldnos.base_cpu.
1888 (read_atcb): Set task_info->base_cpu.
1889 (info_task): Print "Base CPU" info if set by runtime.
1890
e02544b2
JB
18912017-11-21 Joel Brobecker <brobecker@adacore.com>
1892
1893 * ravenscar-thread.c (ravenscar_stopped_by_sw_breakpoint)
1894 (ravenscar_stopped_by_hw_breakpoint, ravenscar_stopped_by_watchpoint)
1895 (ravenscar_stopped_data_address, ravenscar_core_of_thread):
1896 New functions.
1897 (init_ravenscar_thread_ops): Set the to_stopped_by_sw_breakpoint,
1898 to_stopped_by_hw_breakpoint, to_stopped_by_watchpoint,
1899 to_stopped_data_address and to_core_of_thread fields of
1900 ravenscar_ops.
1901
ed0f4273
UW
19022017-11-21 Ulrich Weigand <uweigand@de.ibm.com>
1903
1904 * ppc-tdep.h (enum powerpc_long_double_abi): New data type.
1905 (struct gdbarch_tdep): New member long_double_abi.
1906 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize long_double_abi
1907 member of tdep struct based on Tag_GNU_Power_ABI_FP attribute.
1908 * ppc-linux-tdep.c (ppc_linux_init_abi): Install long double data
1909 format depending on long_double_abi tdep member.
1910 (ppc_floatformat_for_type): Handle __ibm128 type.
1911
0fc76421
SM
19122017-11-20 Simon Marchi <simon.marchi@polymtl.ca>
1913
1914 * darwin-nat.c (set_enable_mach_exceptions): Constify parameter.
1915
e6b2f5ef
PA
19162017-11-21 Pedro Alves <palves@redhat.com>
1917
1918 * dwarf2read.c (mapped_index::find_name_components_bounds)
1919 <completion mode, upper bound>: Use std::lower_bound instead of
1920 std::upper_bound.
1921 (test_mapped_index_find_name_component_bounds): Remove incorrect
1922 "t1_fund" from expected symbols.
1923
5c58de74
PA
19242017-11-21 Pedro Alves <palves@redhat.com>
1925
1926 * dwarf2read.c (mapped_index::name_components_casing): New field.
1927 (mapped_index) <build_name_components,
1928 find_name_components_bounds): Declare new methods.
1929 (mapped_index::find_name_components_bounds)
1930 (mapped_index::build_name_components): New methods, factored out
1931 from dw2_expand_symtabs_matching_symbol.
1932 (check_find_bounds_finds)
1933 (test_mapped_index_find_name_component_bounds): New.
1934 (run_test): Rename to ...
1935 (test_dw2_expand_symtabs_matching_symbol): ... this.
1936 (run_test): Reimplement.
1937
e1ef7d7a
PA
19382017-11-21 Pedro Alves <palves@redhat.com>
1939
1940 * cp-name-parser.y (cp_ident_is_alpha, cp_ident_is_alnum): New.
1941 (symbol_end): Use cp_ident_is_alnum.
1942 (yylex): Use cp_ident_is_alpha and cp_ident_is_alnum.
1943 * dwarf2read.c (make_sort_after_prefix_name): New function.
1944 (dw2_expand_symtabs_matching_symbol): Use it.
1945 (test_symbols): Add more symbols.
1946 (run_test): Add tests.
1947
cf724bc9
TT
19482017-11-17 Tom Tromey <tom@tromey.com>
1949
1950 * symtab.h (enum symbol_subclass_kind): New.
1951 (struct symbol) <is_cplus_template_function, is_rust_vtable>:
1952 Remove.
1953 <subclass>: New member.
1954 (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): Update.
1955 * rust-lang.c (rust_get_trait_object_pointer): Update.
1956 * dwarf2read.c (read_func_scope): Update.
1957 (read_variable): Update.
1958
68e745e3
TT
19592017-11-17 Tom Tromey <tom@tromey.com>
1960
1961 * dwarf2read.c (read_func_scope): Update.
1962 * symtab.h (struct template_symbol): Derive from symbol.
1963 <base>: Remove.
1964
71a3c369
TT
19652017-11-17 Tom Tromey <tom@tromey.com>
1966
1967 * symtab.h (struct symbol) <is_rust_vtable>: New member.
1968 (struct rust_vtable_symbol): New.
1969 (find_symbol_at_address): Declare.
1970 * symtab.c (find_symbol_at_address): New function.
1971 * symfile.h (struct quick_symbol_functions)
1972 <find_compunit_symtab_by_address>: New member.
1973 * symfile-debug.c (debug_qf_find_compunit_symtab_by_address): New
1974 function.
1975 (debug_sym_quick_functions): Link to
1976 debug_qf_find_compunit_symtab_by_address.
1977 * rust-lang.c (rust_get_trait_object_pointer): New function.
1978 (rust_evaluate_subexp) <case UNOP_IND>: New case. Call
1979 rust_get_trait_object_pointer.
1980 * psymtab.c (psym_relocate): Clear psymbol_map.
1981 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address): New
1982 functions.
1983 (psym_functions): Link to psym_find_compunit_symtab_by_address.
1984 * objfiles.h (struct objfile) <psymbol_map>: New member.
1985 * dwarf2read.c (dwarf2_gdb_index_functions): Update.
1986 (process_die) <DW_TAG_variable>: New case. Call read_variable.
1987 (rust_containing_type, read_variable): New functions.
1988
7468702d
SM
19892017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
1990
1991 * common/gdb_vecs.h (DEF_VEC_I (int)): Remove.
1992
37269bc9
SM
19932017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
1994
1995 * common/filestuff.c: Include <algorithm>.
1996 (open_fds): Change type to std::vector<int>.
1997 (do_mark_open_fd): Adjust.
1998 (unmark_fd_no_cloexec): Adjust.
1999 (do_close): Adjust.
2000
5c632425
SM
20012017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
2002
2003 * breakpoint.c (output_thread_groups): Take an std::vector.
2004 (print_one_breakpoint_location): Adjust.
2005
ced9779b
JB
20062017-11-17 Joel Brobecker <brobecker@adacore.com>
2007
2008 * ada-lang.c (resolve_subexp): Add handling of OP_VAR_MSYM_VALUE.
2009 (ada_evaluate_subexp_for_cast): New function.
2010 (ada_evaluate_subexp) <UNOP_CAST>: Replace code by call to
2011 ada_evaluate_subexp_for_cast.
2012 (ada_evaluate_subexp) <nosideret>: Replace code by call to
2013 eval_skip_value.
2014 * eval.c (evaluate_var_value): Make non-static.
2015 (evaluate_var_msym_value, eval_skip_value): Likewise.
2016 * value.h (evaluate_var_value, evaluate_var_msym_value)
2017 (eval_skip_value): Declare.
2018
b7e22850
JB
20192017-11-16 Joel Brobecker <brobecker@adacore.com>
2020
2021 * ada-lang.c (ada_value_cast): Remove parameter "noside".
2022 Update all callers.
2023
9ccabccd
PA
20242017-11-16 Pedro Alves <palves@redhat.com>
2025
2026 * python/py-unwind.c (pyuw_sniffer): Translate
2027 PyExc_KeyboardInterrupt to a GDB Quit exception.
2028
d930703d
PA
20292017-11-16 Pedro Alves <palves@redhat.com>
2030
2031 * infrun.c (resume_cleanups): Delete.
2032 (resume): No longer install a resume_cleanups cleanup nor call
2033 QUIT.
2034 (proceed): Pass the terminal to the inferior.
2035 (keep_going_pass_signal): No longer install a resume_cleanups
2036 cleanup.
2037
38dc2859
PA
20382017-11-16 Pedro Alves <palves@redhat.com>
2039
2040 * inf-loop.c (inferior_event_handler): Don't swallow the exception
2041 if the prompt is blocked.
2042
688fca4f
PA
20432017-11-16 Pedro Alves <palves@redhat.com>
2044
2045 * breakpoint.c (insert_bp_location): Replace bp_err and
2046 bp_err_message locals by a gdb_exception local.
2047
e2c33ac7
PA
20482017-11-16 Pedro Alves <palves@redhat.com>
2049
2050 * inflow.c (scoped_ignore_sigttou): New class.
2051 (child_terminal_ours_1, new_tty): Use it.
2052
d7236961
UW
20532017-11-16 Ulrich Weigand <uweigand@de.ibm.com>
2054
2055 * target-float.c (decimal_from_number): Add byte_order argument and
2056 call match_endianness. Error if unknown floating-point type.
2057 (decimal_to_number): Add byte_order argument and call match_endianness.
2058 (decimal_from_longest): Update call. Do not call match_endianness.
2059 (decimal_from_ulongest): Likewise.
2060 (decimal_binop): Likewise.
2061 (decimal_is_zero): Likewise.
2062 (decimal_compare): Likewise.
2063 (decimal_convert): Likewise.
2064
d8ae99a7
PM
20652017-11-16 Phil Muldoon <pmuldoon@redhat.com>
2066
2067 * python/python.c (gdbpy_rbreak): New function.
2068 * NEWS: Document Python rbreak feature.
2069
c632b645
YQ
20702017-11-16 Yao Qi <yao.qi@linaro.org>
2071
2072 * features/tic6x-c62x.xml: Remove.
2073 * features/tic6x-c64x.xml: Remove.
2074 * features/tic6x-c64xp.xml: Remove.
2075
a014b87a
JB
20762017-11-15 John Baldwin <jhb@FreeBSD.org>
2077
2078 * symtab.h: Include <array>.
2079
94765011
JB
20802017-11-15 John Baldwin <jhb@FreeBSD.org>
2081
2082 * bsd-kvm.c (bsd_kvm_cmd): Constify 'arg'.
2083 (bsd_kvm_proc_cmd): Likewise.
2084
625ad440
SM
20852017-11-15 Simon Marchi <simon.marchi@ericsson.com>
2086
2087 * tui/tui-win.c (window_name_completer): Replace VEC with
2088 std::vector.
2089
c0c11fa9
AC
20902017-11-15 Andrew Cagney <cagney@gnu.org>
2091
2092 * MAINTAINERS: Remove no-longer applicable entries.
2093
34a7ebaf
AC
20942017-11-15 Andrew Cagney <cagney@gnu.org>
2095
2096 * MAINTAINERS: Move self to Past Maintainers.
2097
5334ef39
YQ
20982017-11-15 Yao Qi <yao.qi@linaro.org>
2099
2100 * features/Makefile (XMLTOC): Remove nios2-linux.xml.
2101 * features/nios2-linux.c: Remove.
2102 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Don't call
2103 initialize_tdesc_nios2_linux.
2104
a714b0d6
YQ
21052017-11-15 Yao Qi <yao.qi@linaro.org>
2106
2107 * m68hc11-tdep.c (M68HC11_NUM_REGS): Change it to
2108 M68HC11_LAST_HARD_REG + 1.
2109
92ffd475
PC
21102017-11-14 Paul Carroll <pcarroll@codesourcery.com>
2111
2112 PR gdb/22388
2113 * remote.c (remote_write_bytes_aux, remote_read_bytes_1,
2114 remote_read_bytes, remote_write_qxfer, remote_xfer_partial):
2115 Return TARGET_XFER_EOF if size of returned data is 0.
2116
07431908
SM
21172017-11-14 Simon Marchi <simon.marchi@ericsson.com>
2118
2119 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2120 memory-map-selftests.c.
2121 (SUBDIR_UNITTESTS_OBS): Add memory-map-selftests.o.
2122 * memory-map.c (memory_map_start_memory): Fix computation of hi
2123 address.
2124 * unittests/memory-map-selftests.c: New file.
2125
31432a67
JB
21262017-11-09 Joel Brobecker <brobecker@adacore.com>
2127
2128 * ada-lang.c: Fix some typos in the general command documenting
2129 how Ada expressions are being evaluated and how their result
2130 is printed.
2131
e793c052
TT
21322017-11-09 Tom Tromey <tom@tromey.com>
2133
2134 * psymtab.c (psymbol_hash): Do not hash string contents.
2135 (psymbol_compare): Add comment.
2136
7e8835c5
TT
21372017-11-09 Tom Tromey <tom@tromey.com>
2138
2139 * dictionary.c (dict_hash): Move "TKB" check into the "switch".
2140
286acbb5
JB
21412017-11-08 Joel Brobecker <brobecker@adacore.com>
2142
2143 * ada-exp.y (write_var_from_sym): Remove parameter
2144 "orig_left_context". Update all callers.
2145
b44ec619
SM
21462017-11-08 Simon Marchi <simon.marchi@ericsson.com>
2147
2148 * tracepoint.h (class collection_list) <stringify>: Return
2149 std::vector<std::string>.
2150 (encode_actions_rsp): Change parameters to
2151 std::vector<std::string> *.
2152 * tracepoint.c (collection_list::stringify): Return
2153 std::vector<std::string> and adjust accordingly.
2154 (encode_actions_rsp): Changee parameters to
2155 std::vector<std::string> and adjust accordingly.
2156 * remote.c (free_actions_list),
2157 free_actions_list_cleanup_wrapper): Remove.
2158 (remote_download_tracepoint): Adjust to std::vector.
2159
2f4732b0
TT
21602017-11-08 Tom Tromey <tom@tromey.com>
2161
2162 * dwarf2read.c (symbolp): Remove typedef.
2163 (read_func_scope): Use std::vector.
2164 (process_structure_scope): Use std::vector.
2165
f9d67a22
PA
21662017-11-08 Pedro Alves <palves@redhat.com>
2167
2168 * ada-lang.c (ada_make_symbol_completion_list): Use
2169 completion_skip_symbol.
2170 * symtab.c (symbol_is_function_or_method(minimal_symbol*)): New.
2171 (symbol_is_function_or_method(symbol*)): New.
2172 (add_symtab_completions): Add complete_symbol_mode parameter. Use
2173 completion_skip_symbol.
2174 (default_collect_symbol_completion_matches_break_on): Use
2175 completion_skip_symbol. Pass down mode.
2176 (collect_file_symbol_completion_matches): Pass down mode.
2177 * symtab.h (symbol_is_function_or_method): New declarations.
2178 (completion_skip_symbol): New template function.
2179
56d87ef7
PA
21802017-11-08 Pedro Alves <palves@redhat.com>
2181
2182 * linespec.c (iterate_over_all_matching_symtabs): Add
2183 search_domain parameter. Pass it down to expand_symtabs_matching.
2184 (decode_objc): Request FUNCTIONS_DOMAIN symbols only.
2185 (lookup_prefix_sym): Adjust by passing ALL_DOMAIN as
2186 search_domain.
2187 (add_all_symbol_names_from_pspace): Add search_domain parameter.
2188 Pass it down.
2189 (find_method, find_function_symbols): Request FUNCTIONS_DOMAIN
2190 symbols.
2191 (add_matching_symbols_to_info): Add search_domain parameter. Pass
2192 it down.
2193
1b026119
PA
21942017-11-08 Pedro Alves <palves@redhat.com>
2195
2196 * ada-lang.c (ada_make_symbol_completion_list): Remove text and
2197 text_len locals and don't pass them down.
2198 * symtab.c (completion_list_add_name): Remove
2199 sym_text/sym_text_len parameters and adjust.
2200 (completion_list_add_symbol, completion_list_add_msymbol)
2201 (completion_list_objc_symbol, completion_list_add_fields)
2202 (add_symtab_completions): Likewise.
2203 (default_collect_symbol_completion_matches_break_on)
2204 (collect_file_symbol_completion_matches): Remove sym_text_len
2205 local and don't pass it down.
2206 * symtab.h (completion_list_add_name): Remove
2207 sym_text/sym_text_len parameters.
2208
c62446b1
PA
22092017-11-08 Pedro Alves <palves@redhat.com>
2210
2211 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2212 unittests/lookup_name_info-selftests.c.
2213 (SUBDIR_UNITTESTS_OBS): Add lookup_name_info-selftests.o.
2214 * cp-support.c: Include "selftest.h".
2215 (cp_remove_params_1): Rename from cp_remove_params. Add
2216 'require_param' parameter, and handle it.
2217 (cp_remove_params): Reimplement.
2218 (cp_remove_params_if_any): New.
2219 (selftests::quote): New.
2220 (selftests::check_remove_params): New.
2221 (selftests::test_cp_remove_params): New.
2222 (_initialize_cp_support): Install
2223 selftests::test_cp_remove_params.
2224 * cp-support.h (cp_remove_params_if_any): Declare.
2225 * dwarf2read.c :Include "selftest.h".
2226 (dw2_expand_symtabs_matching_symbol): Use
2227 lookup_name_info::make_ignore_params.
2228 (selftests::dw2_expand_symtabs_matching::mock_mapped_index)
2229 (selftests::dw2_expand_symtabs_matching::string_or_null)
2230 (selftests::dw2_expand_symtabs_matching::check_match)
2231 (selftests::dw2_expand_symtabs_matching::test_symbols)
2232 (selftests::dw2_expand_symtabs_matching::run_test): New.
2233 (_initialize_dwarf2_read): Register
2234 selftests::dw2_expand_symtabs_matching::run_test.
2235 * psymtab.c (psym_expand_symtabs_matching): Use
2236 lookup_name_info::make_ignore_params.
2237 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info):
2238 If the lookup name wants to ignore parameters, strip them.
2239 (compare_symbol_name): Remove sym_text/sym_text_len parameters and
2240 code handling '('.
2241 (completion_list_add_name): Don't pass down sym_text/sym_text_len.
2242 (default_collect_symbol_completion_matches_break_on): Don't try to
2243 strip parameters.
2244 * symtab.h (lookup_name_info::lookup_name_info): Add
2245 'ignore_parameters' parameter.
2246 (lookup_name_info::ignore_parameters)
2247 (lookup_name_info::make_ignore_params): New methods.
2248 (lookup_name_info::m_ignore_parameters): New field.
2249 * unittests/lookup_name_info-selftests.c: New file.
2250
61920122
PA
22512017-11-08 Pedro Alves <palves@redhat.com>
2252
2253 * dwarf2read.c (dw2_expand_marked_cus)
2254 (dw2_expand_symtabs_matching_symbol): Remove forward declarations.
2255 (dw2_expand_symtabs_matching): Move further below.
2256 (dw2_expand_marked_cus): Reindent.
2257
3f563c84
PA
22582017-11-08 Pedro Alves <palves@redhat.com>
2259
2260 * dwarf2read.c (byte_swap, MAYBE_SWAP): Move higher up in file.
2261 (struct name_component): New.
2262 (mapped_index::name_components): New field.
2263 (mapped_index::symbol_name_at): New method.
2264 (dwarf2_read_index): Call mapped_index ctor.
2265 (dw2_map_matching_symbols): Add comment about name_components
2266 table.
2267 (dw2_expand_symtabs_matching): Factor part to...
2268 (dw2_expand_symtabs_matching_symbol): ... this new function.
2269 Build name components table, and lookup symbols in it before
2270 calling the name matcher.
2271 (dw2_expand_marked_cus): New, factored out from
2272 dw2_expand_symtabs_matching.
2273 (dwarf2_per_objfile_free): Call the mapped_index's dtor.
2274
b5ec771e
PA
22752017-11-08 Pedro Alves <palves@redhat.com>
2276
2277 * ada-lang.c (ada_encode): Rename to ..
2278 (ada_encode_1): ... this. Add throw_errors parameter and handle
2279 it.
2280 (ada_encode): Reimplement.
2281 (match_name): Delete, folded into full_name.
2282 (resolve_subexp): No longer pass the encoded name to
2283 ada_lookup_symbol_list.
2284 (should_use_wild_match): Delete.
2285 (name_match_type_from_name): New.
2286 (ada_lookup_simple_minsym): Use lookup_name_info and the
2287 language's symbol_name_matcher_ftype.
2288 (add_symbols_from_enclosing_procs, ada_add_local_symbols)
2289 (ada_add_block_renamings): Adjust to use lookup_name_info.
2290 (ada_lookup_name): New.
2291 (add_nonlocal_symbols, ada_add_all_symbols)
2292 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list)
2293 (ada_iterate_over_symbols): Adjust to use lookup_name_info.
2294 (ada_name_for_lookup): Delete.
2295 (ada_lookup_encoded_symbol): Construct a verbatim name.
2296 (wild_match): Reverse sense of return type. Use bool.
2297 (full_match): Reverse sense of return type. Inline bits of old
2298 match_name here.
2299 (ada_add_block_symbols): Adjust to use lookup_name_info.
2300 (symbol_completion_match): Delete, folded into...
2301 (ada_lookup_name_info::matches): ... .this new method.
2302 (symbol_completion_add): Delete.
2303 (ada_collect_symbol_completion_matches): Add name_match_type
2304 parameter. Adjust to use lookup_name_info and
2305 completion_list_add_name.
2306 (get_var_value, ada_add_global_exceptions): Adjust to use
2307 lookup_name_info.
2308 (ada_get_symbol_name_cmp): Delete.
2309 (do_wild_match, do_full_match): New functions.
2310 (ada_lookup_name_info::ada_lookup_name_info): New method.
2311 (ada_symbol_name_matches, ada_get_symbol_name_matcher): New
2312 functions.
2313 (ada_language_defn): Install ada_get_symbol_name_matcher.
2314 * ada-lex.l (processId): If name starts with '<', copy it
2315 verbatim.
2316 * block.c (block_iter_match_step, block_iter_match_first)
2317 (block_iter_match_next, block_lookup_symbol)
2318 (block_lookup_symbol_primary, block_find_symbol): Adjust to use
2319 lookup_name_info.
2320 * block.h (block_iter_match_first, block_iter_match_next)
2321 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use lookup_name_info.
2322 * c-lang.c (c_language_defn, cplus_language_defn)
2323 (asm_language_defn, minimal_language_defn): Adjust comments to
2324 refer to la_get_symbol_name_matcher.
2325 * completer.c (complete_files_symbols)
2326 (collect_explicit_location_matches, symbol_completer): Pass a
2327 symbol_name_match_type down.
2328 * completer.h (class completion_match, completion_match_result):
2329 New classes.
2330 (completion_tracker::reset_completion_match_result): New method.
2331 (completion_tracker::m_completion_match_result): New field.
2332 * cp-support.c (make_symbol_overload_list_block): Adjust to use
2333 lookup_name_info.
2334 (cp_fq_symbol_name_matches, cp_get_symbol_name_matcher): New
2335 functions.
2336 * cp-support.h (cp_get_symbol_name_matcher): New declaration.
2337 * d-lang.c: Adjust comments to refer to
2338 la_get_symbol_name_matcher.
2339 * dictionary.c (dict_vector) <iter_match_first, iter_match_next>:
2340 Adjust to use lookup_name_info.
2341 (dict_iter_match_first, dict_iter_match_next)
2342 (iter_match_first_hashed, iter_match_next_hashed)
2343 (iter_match_first_linear, iter_match_next_linear): Adjust to work
2344 with a lookup_name_info.
2345 * dictionary.h (dict_iter_match_first, dict_iter_match_next):
2346 Likewise.
2347 * dwarf2read.c (dw2_lookup_symbol): Adjust to use lookup_name_info.
2348 (dw2_map_matching_symbols): Adjust to use symbol_name_match_type.
2349 (gdb_index_symbol_name_matcher): New class.
2350 (dw2_expand_symtabs_matching) Adjust to use lookup_name_info and
2351 gdb_index_symbol_name_matcher. Accept a NULL symbol_matcher.
2352 * f-lang.c (f_collect_symbol_completion_matches): Adjust to work
2353 with a symbol_name_match_type.
2354 (f_language_defn): Adjust comments to refer to
2355 la_get_symbol_name_matcher.
2356 * go-lang.c (go_language_defn): Adjust comments to refer to
2357 la_get_symbol_name_matcher.
2358 * language.c (default_symbol_name_matcher)
2359 (language_get_symbol_name_matcher): New functions.
2360 (unknown_language_defn, auto_language_defn): Adjust comments to
2361 refer to la_get_symbol_name_matcher.
2362 * language.h (symbol_name_cmp_ftype): Delete.
2363 (language_defn) <la_collect_symbol_completion_matches>: Add match
2364 type parameter.
2365 <la_get_symbol_name_cmp>: Delete field.
2366 <la_get_symbol_name_matcher>: New field.
2367 <la_iterate_over_symbols>: Adjust to use lookup_name_info.
2368 (default_symbol_name_matcher, language_get_symbol_name_matcher):
2369 Declare.
2370 * linespec.c (iterate_over_all_matching_symtabs)
2371 (iterate_over_file_blocks): Adjust to use lookup_name_info.
2372 (find_methods): Add language parameter, and use lookup_name_info
2373 and the language's symbol_name_matcher_ftype.
2374 (linespec_complete_function): Adjust.
2375 (lookup_prefix_sym): Use lookup_name_info.
2376 (add_all_symbol_names_from_pspace): Adjust.
2377 (find_superclass_methods): Add language parameter and pass it
2378 down.
2379 (find_method): Pass symbol language down.
2380 (find_linespec_symbols): Don't demangle or Ada encode here.
2381 (search_minsyms_for_name): Add lookup_name_info parameter.
2382 (add_matching_symbols_to_info): Add name_match_type parameter.
2383 Use lookup_name_info.
2384 * m2-lang.c (m2_language_defn): Adjust comments to refer to
2385 la_get_symbol_name_matcher.
2386 * minsyms.c: Include <algorithm>.
2387 (add_minsym_to_demangled_hash_table): Remove table parameter and
2388 add objfile parameter. Use search_name_hash, and add language to
2389 demangled languages vector.
2390 (struct found_minimal_symbols): New struct.
2391 (lookup_minimal_symbol_mangled, lookup_minimal_symbol_demangled):
2392 New functions.
2393 (lookup_minimal_symbol): Adjust to use them. Don't canonicalize
2394 input names here. Use lookup_name_info instead. Lookup up
2395 demangled names once for each language in the demangled names
2396 vector.
2397 (iterate_over_minimal_symbols): Use lookup_name_info. Lookup up
2398 demangled names once for each language in the demangled names
2399 vector.
2400 (build_minimal_symbol_hash_tables): Adjust.
2401 * minsyms.h (iterate_over_minimal_symbols): Adjust to pass down a
2402 lookup_name_info.
2403 * objc-lang.c (objc_language_defn): Adjust comment to refer to
2404 la_get_symbol_name_matcher.
2405 * objfiles.h: Include <vector>.
2406 (objfile_per_bfd_storage) <demangled_hash_languages>: New field.
2407 * opencl-lang.c (opencl_language_defn): Adjust comment to refer to
2408 la_get_symbol_name_matcher.
2409 * p-lang.c (pascal_language_defn): Adjust comment to refer to
2410 la_get_symbol_name_matcher.
2411 * psymtab.c (psym_lookup_symbol): Use lookup_name_info.
2412 (match_partial_symbol): Use symbol_name_match_type,
2413 lookup_name_info and psymbol_name_matches.
2414 (lookup_partial_symbol): Use lookup_name_info.
2415 (map_block): Use symbol_name_match_type and lookup_name_info.
2416 (psym_map_matching_symbols): Use symbol_name_match_type.
2417 (psymbol_name_matches): New.
2418 (recursively_search_psymtabs): Use lookup_name_info and
2419 psymbol_name_matches. Rename 'kind' parameter to 'domain'.
2420 (psym_expand_symtabs_matching): Use lookup_name_info. Rename
2421 'kind' parameter to 'domain'.
2422 * rust-lang.c (rust_language_defn): Adjust comment to refer to
2423 la_get_symbol_name_matcher.
2424 * symfile-debug.c (debug_qf_map_matching_symbols)
2425 (debug_qf_map_matching_symbols): Use symbol_name_match_type.
2426 (debug_qf_expand_symtabs_matching): Use lookup_name_info.
2427 * symfile.c (expand_symtabs_matching): Use lookup_name_info.
2428 * symfile.h (quick_symbol_functions) <map_matching_symbols>:
2429 Adjust to use symbol_name_match_type.
2430 <expand_symtabs_matching>: Adjust to use lookup_name_info.
2431 (expand_symtabs_matching): Adjust to use lookup_name_info.
2432 * symmisc.c (maintenance_expand_symtabs): Use
2433 lookup_name_info::match_any ().
2434 * symtab.c (symbol_matches_search_name): New.
2435 (eq_symbol_entry): Adjust to use lookup_name_info and the
2436 language's matcher.
2437 (demangle_for_lookup_info::demangle_for_lookup_info): New.
2438 (lookup_name_info::match_any): New.
2439 (iterate_over_symbols, search_symbols): Use lookup_name_info.
2440 (compare_symbol_name): Add language, lookup_name_info and
2441 completion_match_result parameters, and use them.
2442 (completion_list_add_name): Make extern. Add language and
2443 lookup_name_info parameters. Use them.
2444 (completion_list_add_symbol, completion_list_add_msymbol)
2445 (completion_list_objc_symbol): Add lookup_name_info parameters and
2446 adjust. Pass down language.
2447 (completion_list_add_fields): Add lookup_name_info parameters and
2448 adjust. Pass down language.
2449 (add_symtab_completions): Add lookup_name_info parameters and
2450 adjust.
2451 (default_collect_symbol_completion_matches_break_on): Add
2452 name_match_type parameter, and use it. Use lookup_name_info.
2453 (default_collect_symbol_completion_matches)
2454 (collect_symbol_completion_matches): Add name_match_type
2455 parameter, and pass it down.
2456 (collect_symbol_completion_matches_type): Adjust.
2457 (collect_file_symbol_completion_matches): Add name_match_type
2458 parameter, and use lookup_name_info.
2459 * symtab.h: Include <string> and "common/gdb_optional.h".
2460 (enum class symbol_name_match_type): New.
2461 (class ada_lookup_name_info): New.
2462 (struct demangle_for_lookup_info): New.
2463 (class lookup_name_info): New.
2464 (symbol_name_matcher_ftype): New.
2465 (SYMBOL_MATCHES_SEARCH_NAME): Use symbol_matches_search_name.
2466 (symbol_matches_search_name): Declare.
2467 (MSYMBOL_MATCHES_SEARCH_NAME): Delete.
2468 (default_collect_symbol_completion_matches)
2469 (collect_symbol_completion_matches)
2470 (collect_file_symbol_completion_matches): Add name_match_type
2471 parameter.
2472 (iterate_over_symbols): Use lookup_name_info.
2473 (completion_list_add_name): Declare.
2474 * utils.c (enum class strncmp_iw_mode): Moved to utils.h.
2475 (strncmp_iw_with_mode): Now extern.
2476 * utils.h (enum class strncmp_iw_mode): Moved from utils.c.
2477 (strncmp_iw_with_mode): Declare.
2478
5ffa0793
PA
24792017-11-08 Keith Seitz <keiths@redhat.com>
2480 Pedro Alves <palves@redhat.com>
2481
2482 * ada-lang.c (ada_language_defn): Install
2483 default_search_name_hash.
2484 * buildsym.c (struct buildsym_compunit): <language>: New field.
2485 (finish_block_internal): Pass language when creating dictionaries.
2486 (start_buildsym_compunit, start_symtab): New language parameters.
2487 Use them.
2488 (restart_symtab): Pass down compilation unit's language.
2489 * buildsym.h (enum language): Forward declare.
2490 (start_symtab): New 'language' parameter.
2491 * c-lang.c (c_language_defn, cplus_language_defn)
2492 (asm_language_defn, minimal_language_defn): Install
2493 default_search_name_hash.
2494 * coffread.c (coff_start_symtab): Adjust.
2495 * d-lang.c (d_language_defn): Install default_search_name_hash.
2496 * dbxread.c (struct symloc): Add 'pst_language' field.
2497 (PST_LANGUAGE): Define.
2498 (start_psymtab, read_ofile_symtab): Use it.
2499 (process_one_symbol): New 'language' parameter. Pass it down.
2500 * dictionary.c (struct dictionary) <language>: New field.
2501 (DICT_LANGUAGE): Define.
2502 (dict_create_hashed, dict_create_hashed_expandable)
2503 (dict_create_linear, dict_create_linear_expandable): New parameter
2504 'language'. Set the dictionary's language.
2505 (iter_match_first_hashed): Adjust to rename.
2506 (insert_symbol_hashed): Assert we don't see mismatching
2507 languages. Adjust to rename.
2508 (dict_hash): Rename to ...
2509 (default_search_name_hash): ... this and make extern.
2510 * dictionary.h (struct language_defn): Forward declare.
2511 (dict_create_hashed): New parameter 'language'.
2512 * dwarf2read.c (dwarf2_start_symtab): Pass down language.
2513 * f-lang.c (f_language_defn): Install default_search_name_hash.
2514 * go-lang.c (go_language_defn): Install default_search_name_hash.
2515 * jit.c (finalize_symtab): Pass compunit's language to dictionary
2516 creation.
2517 * language.c (unknown_language_defn, auto_language_defn):
2518 * language.h (language_defn::la_search_name_hash): New field.
2519 (default_search_name_hash): Declare.
2520 * m2-lang.c (m2_language_defn): Install default_search_name_hash.
2521 * mdebugread.c (new_block): New parameter 'language'.
2522 * mdebugread.c (parse_symbol): Pass symbol language to block
2523 allocation.
2524 (psymtab_to_symtab_1): Pass down language.
2525 (new_symtab): Pass compunit's language to block allocation.
2526 * objc-lang.c (objc_language_defn): Install
2527 default_search_name_hash.
2528 * opencl-lang.c (opencl_language_defn):
2529 * p-lang.c (pascal_language_defn): Install
2530 default_search_name_hash.
2531 * rust-lang.c (rust_language_defn): Install
2532 default_search_name_hash.
2533 * stabsread.h (enum language): Forward declare.
2534 (process_one_symbol): Add 'language' parameter.
2535 * symtab.c (search_name_hash): New function.
2536 * symtab.h (search_name_hash): Declare.
2537 * xcoffread.c (read_xcoff_symtab): Pass language to start_symtab.
2538
2a1dde5d
PA
25392017-11-08 Pedro Alves <palves@redhat.com>
2540
2541 * cp-name-parser.y (main): Don't initialize extra_chars.
2542
95a6b0a1
TT
25432017-11-07 Tom Tromey <tom@tromey.com>
2544
2545 * event-top.h (command_handler): Constify.
2546 * record-full.c (cmd_record_full_start): Update.
2547 * thread.c (thread_apply_all_command): Update.
2548 * printcmd.c (eval_command): Update.
2549 * mi/mi-main.c (mi_execute_cli_command): Update.
2550 (mi_execute_async_cli_command): Update.
2551 * tui/tui-stack.c (tui_update_command): Update.
2552 * cli/cli-interp.c (safe_execute_command): Constify.
2553 * record.c (record_start): Update.
2554 (record_start, record_stop, cmd_record_start): Update.
2555 * record-btrace.c (cmd_record_btrace_bts_start): Update.
2556 (cmd_record_btrace_pt_start): Update.
2557 (cmd_record_btrace_start): Update.
2558 (cmd_record_btrace_start): Update.
2559 * reverse.c (exec_reverse_once): Update.
2560 * python/python.c (execute_gdb_command): Don't copy the command.
2561 * event-top.c (command_line_handler): Update.
2562 (command_handler): Constify.
2563 * defs.h (deprecated_call_command_hook): Constify.
2564 * cli/cli-script.h (execute_user_command): Constify.
2565 * cli/cli-script.c (execute_user_command): Constify.
2566 (execute_cmd_pre_hook, execute_cmd_post_hook): Constify.
2567 (enum command_control_type): Update.
2568 * main.c (catch_command_errors): Remove non-const overload.
2569 (catch_command_errors_ftype): Remove.
2570 * python/py-cmd.c (cmdpy_function): Constify.
2571 * guile/scm-cmd.c (cmdscm_function): Constify.
2572 * cli/cli-dump.c (call_dump_func): Constify.
2573 * cli/cli-decode.c (do_const_cfunc): Constify.
2574 (do_sfunc): Constify.
2575 (cmd_func): Constify.
2576 * gdbcmd.h (execute_command, execute_command_to_string): Constify.
2577 * top.h (execute_command): Constify.
2578 * top.c (execute_command): Constify.
2579 (execute_command_to_string): Constify.
2580 (deprecated_call_command_hook): Constify.
2581 * command.h (cmd_func): Constify.
2582 * cli/cli-decode.h (struct cmd_list_element) <func>: Constify.
2583
eb4c3f4a
TT
25842017-11-07 Tom Tromey <tom@tromey.com>
2585
2586 * ada-lang.c (catch_ada_exception_command): Constify.
2587 (catch_assert_command): Constify.
2588 * break-catch-throw.c (catch_catch_command, catch_throw_command)
2589 (catch_rethrow_command): Constify.
2590 (catch_exception_command_1): Constify.
2591 * breakpoint.h (add_catch_command): Constify.
2592 * break-catch-syscall.c (catch_syscall_command_1): Constify.
2593 (catch_syscall_split_args): Constify.
2594 * break-catch-sig.c (catch_signal_command): Constify.
2595 (catch_signal_split_args): Constify.
2596 * cli/cli-decode.h (struct cmd_list_element) <function>: Use
2597 cmd_const_sfunc_ftype.
2598 * cli/cli-decode.c (add_setshow_cmd_full): Constify.
2599 (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd)
2600 (add_setshow_boolean_cmd, add_setshow_filename_cmd)
2601 (add_setshow_string_cmd, struct cmd_list_element)
2602 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
2603 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
2604 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd):
2605 Constify.
2606 (set_cmd_sfunc): Constify.
2607 (empty_sfunc): Constify.
2608 * command.h (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd)
2609 (add_setshow_boolean_cmd, add_setshow_filename_cmd)
2610 (add_setshow_string_cmd, add_setshow_string_noescape_cmd)
2611 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
2612 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
2613 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
2614 Constify.
2615 (set_cmd_sfunc): Constify.
2616 (cmd_sfunc_ftype): Remove.
2617 * compile/compile.c (set_compile_args): Constify.
2618 * infrun.c (set_disable_randomization): Constify.
2619 * infcmd.c (set_args_command, set_cwd_command): Constify.
2620 * breakpoint.c (set_condition_evaluation_mode): Constify.
2621 (add_catch_command): Constify.
2622 (catch_fork_command_1, catch_exec_command_1)
2623 (catch_load_command_1, catch_unload_command_1): Constify.
2624 (catch_load_or_unload): Constify.
2625 * guile/scm-param.c (pascm_set_func): Constify.
2626 (add_setshow_generic): Constify.
2627 * python/py-param.c (get_set_value): Constify.
2628 * top.h (set_verbose): Constify.
2629 * tui/tui-win.c (tui_set_var_cmd): Constify.
2630 * mi/mi-main.c (set_mi_async_command): Constify.
2631 * cli/cli-logging.c (set_logging_overwrite)
2632 (set_logging_redirect): Constify.
2633 * value.c (set_max_value_size): Constify.
2634 * valprint.c (set_input_radix, set_output_radix): Constify.
2635 * utils.c (set_width_command, set_height_command): Constify.
2636 * typeprint.c (set_print_type_methods, set_print_type_typedefs): Constify.
2637 * tracepoint.c (set_disconnected_tracing)
2638 (set_circular_trace_buffer, set_trace_buffer_size)
2639 (set_trace_user, set_trace_notes, set_trace_stop_notes): Constify.
2640 * top.c (set_history_size_command, set_verbose, set_editing)
2641 (set_gdb_datadir, set_history_filename): Constify.
2642 * target.c (set_targetdebug, maint_set_target_async_command)
2643 (maint_set_target_non_stop_command, set_target_permissions)
2644 (set_write_memory_permission): Constify.
2645 (open_target): Constify.
2646 * target-descriptions.c (set_tdesc_filename_cmd): Constify.
2647 * target-dcache.c (set_stack_cache, set_code_cache): Constify.
2648 * symtab.c (set_symbol_cache_size_handler): Constify.
2649 * symfile.c (set_ext_lang_command): Constify.
2650 * symfile-debug.c (set_debug_symfile): Constify.
2651 * source.c (set_directories_command): Constify.
2652 * solib.c (reload_shared_libraries, gdb_sysroot_changed): Constify.
2653 * serial.c (set_parity): Constify.
2654 * rs6000-tdep.c (powerpc_set_soft_float, powerpc_set_vector_abi): Constify.
2655 * remote.c (set_remote_exec_file, set_remotebreak)
2656 (set_remote_protocol_Z_packet_cmd, set_range_stepping): Constify.
2657 * record.c (set_record_insn_history_size)
2658 (set_record_call_history_size): Constify.
2659 * record-full.c (set_record_full_insn_max_num): Constify.
2660 * proc-api.c (set_procfs_trace_cmd, set_procfs_file_cmd): Constify.
2661 * osabi.c (set_osabi): Constify.
2662 * mips-tdep.c (set_mips64_transfers_32bit_regs)
2663 (reinit_frame_cache_sfunc, mips_abi_update): Constify.
2664 * maint.c (maintenance_set_profile_cmd): Constify.
2665 * linux-thread-db.c (set_libthread_db_search_path): Constify.
2666 * language.c (set_language_command, set_range_command)
2667 (set_case_command): Constify.
2668 * infrun.c (set_non_stop, set_observer_mode)
2669 (set_stop_on_solib_events, set_schedlock_func)
2670 (set_exec_direction_func): Constify.
2671 * infcmd.c (set_inferior_tty_command): Constify.
2672 * disasm.c (set_disassembler_options_sfunc): Constify.
2673 * demangle.c (set_demangling_command): Constify.
2674 * dcache.c (set_dcache_size, set_dcache_line_size): Constify.
2675 * cris-tdep.c (set_cris_version, set_cris_mode)
2676 (set_cris_dwarf2_cfi): Constify.
2677 * corefile.c (set_gnutarget_command): Constify.
2678 * charset.c (set_host_charset_sfunc, set_target_charset_sfunc)
2679 (set_target_wide_charset_sfunc): Constify.
2680 * breakpoint.c (update_dprintf_commands): Constify.
2681 * auto-load.c (set_auto_load_dir, set_auto_load_safe_path): Constify.
2682 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi)
2683 (set_disassembly_style_sfunc): Constify.
2684 * arch-utils.c (set_endian, set_architecture): Constify.
2685 * alpha-tdep.c (reinit_frame_cache_sfunc): Constify.
2686 * agent.c (set_can_use_agent): Constify.
2687
5fed81ff
TT
26882017-11-07 Tom Tromey <tom@tromey.com>
2689
2690 * go32-nat.c (go32_sysinfo, go32_sldt, go32_sgdt, go32_sidt)
2691 (go32_pde, go32_pte, go32_pte_for_address): Constify.
2692 * gnu-nat.c (_parse_bool_arg, show_thread_default_pause_cmd)
2693 (set_thread_default_pause_cmd, set_thread_default_run_cmd)
2694 (show_thread_default_run_cmd, set_thread_default_detach_sc_cmd)
2695 (parse_int_arg, show_thread_default_detach_sc_cmd)
2696 (set_signals_cmd, show_signals_cmd, set_sig_thread_cmd)
2697 (show_sig_thread_cmd, set_stopped_cmd, show_stopped_cmd)
2698 (set_exceptions_cmd, show_exceptions_cmd, set_task_pause_cmd)
2699 (show_task_pause_cmd, set_task_detach_sc_cmd)
2700 (show_task_detach_sc_cmd, set_task_exc_port_cmd)
2701 (set_noninvasive_cmd, set_thread_pause_cmd)
2702 (show_thread_pause_cmd, set_thread_run_cmd, show_thread_run_cmd)
2703 (set_thread_detach_sc_cmd, show_thread_detach_sc_cmd)
2704 (set_thread_exc_port_cmd, thread_takeover_sc_cmd): Constify.
2705 * windows-nat.c (display_selectors): Constify.
2706 * cli/cli-decode.h (struct cmd_list_element) <function>: Remove
2707 non-const "cfunc".
2708 * cli/cli-decode.c (set_cmd_cfunc): Remove non-const overload.
2709 (cmd_cfunc_eq): Likewise.
2710 (struct cmd_list_element): Likewise.
2711 (do_cfunc): Remove.
2712 (cli_user_command_p): Update.
2713 * command.h (add_cmd): Remove non-const overload.
2714 (cmd_cfunc_ftype): Remove typedef.
2715 (cmd_cfunc_eq): Remove non-const overload.
2716 * value.c (show_values): Constify.
2717 * thread.c (thread_apply_all_command): Constify.
2718 * symfile.c (load_command): Constify.
2719 * source.c (directory_command): Constify.
2720 * maint.c (maintenance_internal_error)
2721 (maintenance_demangler_warning, maintenance_space_display)
2722 (maintenance_print_architecture, maintenance_translate_address)
2723 (maintenance_info_selftests, maintenance_internal_warning):
2724 Constify.
2725 * breakpoint.c (disable_trace_command, enable_trace_command):
2726 Constify.
2727 * auto-load.c (info_auto_load_local_gdbinit, add_auto_load_dir):
2728 Constify.
2729 (add_auto_load_safe_path): Constify.
2730 * guile/scm-auto-load.c (info_auto_load_guile_scripts): Constify.
2731 * top.h (show_commands): Constify.
2732 * linux-thread-db.c (info_auto_load_libthread_db): Constify.
2733 * sparc64-tdep.c (adi_examine_command): Constify.
2734 (adi_assign_command): Constify.
2735
1d12d88f
TT
27362017-11-07 Tom Tromey <tom@tromey.com>
2737
2738 * frame.h (info_locals_command, info_args_command): Constify.
2739 * auto-load.h (auto_load_info_scripts): Constify.
2740 * inferior.h (registers_info): Constify.
2741 * copying.c: Rebuild.
2742 * copying.awk: Constify generated commands.
2743 * auto-load.c (auto_load_info_scripts)
2744 (info_auto_load_gdb_scripts): Constify.
2745 * cli/cli-decode.c (struct cmd_list_element): Take a
2746 cmd_const_cfunc_ftype.
2747 * command.h (add_info): Take a cmd_const_cfunc_ftype.
2748 * tui/tui-win.c (tui_all_windows_info): Constify.
2749 * python/py-auto-load.c (info_auto_load_python_scripts):
2750 Constify.
2751 * cli/cli-cmds.c (show_command): Remove non-const overload.
2752 * tracepoint.c (info_tvariables_command, info_scope_command):
2753 Constify.
2754 (info_static_tracepoint_markers_command): Constify.
2755 * thread.c (info_threads_command): Constify.
2756 (print_thread_info_1): Constify.
2757 * target.c (info_target_command): Constify.
2758 * symtab.c (info_sources_command, info_functions_command)
2759 (info_types_command): Constify.
2760 (info_variables_command): Remove non-const overload.
2761 * symfile.c (info_ext_lang_command): Constify.
2762 * stack.c (info_frame_command, info_locals_command)
2763 (info_args_command): Constify.
2764 (backtrace_command): Remove non-const overload.
2765 * source.c (info_source_command, info_line_command): Constify.
2766 * solib.c (info_sharedlibrary_command): Constify.
2767 * skip.c (info_skip_command): Constify.
2768 * ser-go32.c (info_serial_command): Constify.
2769 * reverse.c (info_bookmarks_command): Constify.
2770 * printcmd.c (info_symbol_command, info_address_command)
2771 (info_display_command): Constify.
2772 * osdata.c (info_osdata_command): Constify.
2773 * objc-lang.c (info_selectors_command, info_classes_command):
2774 Constify.
2775 * nto-procfs.c (procfs_pidlist, procfs_meminfo): Constify.
2776 * memattr.c (info_mem_command): Constify.
2777 * macrocmd.c (info_macro_command, info_macros_command): Constify.
2778 * linux-fork.c (info_checkpoints_command): Constify.
2779 * infrun.c (info_signals_command): Constify.
2780 * inflow.c (info_terminal_command): Constify.
2781 * inferior.c (info_inferiors_command): Constify.
2782 (print_inferior): Constify.
2783 * infcmd.c (info_program_command, info_all_registers_command)
2784 (info_registers_command, info_vector_command)
2785 (info_float_command): Constify.
2786 (registers_info): Constify.
2787 * gnu-nat.c (info_send_rights_cmd, info_recv_rights_cmd)
2788 (info_port_sets_cmd, info_dead_names_cmd, info_port_rights_cmd):
2789 Constify.
2790 * f-valprint.c (info_common_command): Constify.
2791 * dcache.c (info_dcache_command): Constify.
2792 (dcache_info_1): Constify.
2793 * darwin-nat-info.c (info_mach_tasks_command)
2794 (info_mach_task_command, info_mach_ports_command)
2795 (info_mach_port_command, info_mach_threads_command)
2796 (info_mach_thread_command, info_mach_regions_command)
2797 (info_mach_regions_recurse_command, info_mach_region_command)
2798 (info_mach_exceptions_command): Constify.
2799 (get_task_from_args): Constify.
2800 * cp-support.c (info_vtbl_command): Constify.
2801 * breakpoint.c (info_watchpoints_command)
2802 (info_tracepoints_command): Constify.
2803 (info_breakpoints_command): Remove non-const overload.
2804 * avr-tdep.c (avr_io_reg_read_command): Constify.
2805 * auxv.c (info_auxv_command): Constify.
2806 * ada-tasks.c (info_tasks_command): Constify.
2807 (info_task): Constify.
2808 * ada-lang.c (info_exceptions_command): Constify.
2809
0b39b52e
TT
28102017-11-07 Tom Tromey <tom@tromey.com>
2811
2812 * solib.h (no_shared_libraries): Constify.
2813 * frame.h (return_command): Constify.
2814 * cli/cli-cmds.h (quit_command): Constify.
2815 * top.h (quit_command, execute_command): Constify.
2816 * target.h (flash_erase_command): Constify.
2817 * inferior.h (set_inferior_args, attach_command): Constify.
2818 * tracepoint.h (start_tracing, stop_tracing): Constify.
2819 * breakpoint.h (break_command, tbreak_command)
2820 (hbreak_command_wrapper, thbreak_command_wrapper)
2821 (rbreak_command_wrapper, watch_command_wrapper)
2822 (awatch_command_wrapper, rwatch_command_wrapper)
2823 (get_tracepoint_by_number): Constify.
2824 * symtab.c (info_variables_command, rbreak_command)
2825 (symtab_symbol_info): Constify.
2826 (info_variables_command): Add non-const overload.
2827 * top.c (dont_repeat_command): Constify.
2828 * breakpoint.c (ignore_command, commands_command)
2829 (condition_command, tbreak_command, hbreak_command)
2830 (thbreak_command, clear_command, break_command)
2831 (info_breakpoints_command, watch_command, rwatch_command)
2832 (awatch_command, trace_command, ftrace_command, strace_command)
2833 (trace_pass_command, break_range_command, dprintf_command)
2834 (agent_printf_command, get_tracepoint_by_number)
2835 (watch_maybe_just_location, trace_pass_command): Constify.
2836 (info_breakpoints_command): Add non-const overload.
2837 * tracefile.c (tsave_command): Constify.
2838 * infcmd.c (attach_command, disconnect_command, signal_command)
2839 (queue_signal_command, stepi_command, nexti_command)
2840 (finish_command, next_command, step_command, until_command)
2841 (advance_command, jump_command, continue_command, run_command)
2842 (start_command, starti_command, interrupt_command)
2843 (run_command_1, set_inferior_args, step_1): Constify.
2844 * inferior.c (add_inferior_command, remove_inferior_command)
2845 (clone_inferior_command): Constify.
2846 * linux-fork.c (checkpoint_command, restart_command): Constify.
2847 * windows-nat.c (signal_event_command): Constify.
2848 * guile/guile.c (guile_repl_command, guile_command): Constify.
2849 * printcmd.c (x_command, display_command, printf_command)
2850 (output_command, set_command, call_command, print_command)
2851 (eval_command): Constify.
2852 (non_const_set_command): Remove.
2853 (_initialize_printcmd): Update.
2854 * source.c (forward_search_command, reverse_search_command):
2855 Constify.
2856 * jit.c (jit_reader_load_command, jit_reader_unload_command):
2857 Constify.
2858 * infrun.c (handle_command): Constify.
2859 * memattr.c (mem_command): Constify.
2860 * stack.c (return_command, up_command, up_silently_command)
2861 (down_command, down_silently_command, frame_command)
2862 (backtrace_command, func_command, backtrace_command_1): Constify.
2863 (backtrace_command): Add non-const overload.
2864 * remote-sim.c (simulator_command): Constify.
2865 * exec.c (set_section_command): Constify.
2866 * tracepoint.c (tdump_command, trace_variable_command)
2867 (tstatus_command, tstop_command, tstart_command)
2868 (end_actions_pseudocommand, while_stepping_pseudocommand)
2869 (collect_pseudocommand, teval_pseudocommand, actions_command)
2870 (start_tracing, stop_tracing): Constify.
2871 * value.c (init_if_undefined_command): Constify.
2872 * tui/tui-stack.c (tui_update_command): Constify.
2873 * tui/tui-win.c (tui_refresh_all_command)
2874 (tui_set_tab_width_command, tui_set_win_height_command)
2875 (tui_set_focus_command, tui_scroll_forward_command)
2876 (tui_scroll_backward_command, tui_scroll_left_command)
2877 (tui_scroll_right_command, parse_scrolling_args, tui_set_focus)
2878 (tui_set_win_height): Constify.
2879 * tui/tui-layout.c (tui_layout_command): Constify.
2880 * procfs.c (proc_trace_syscalls, proc_trace_sysentry_cmd)
2881 (proc_trace_sysexit_cmd, proc_untrace_sysentry_cmd)
2882 (proc_untrace_sysexit_cmd): Constify.
2883 * remote.c (threadlist_test_cmd, threadinfo_test_cmd)
2884 (threadset_test_cmd, threadlist_update_test_cmd)
2885 (threadalive_test): Constify.
2886 * objc-lang.c (print_object_command): Constify.
2887 * command.h (add_com): Constify.
2888 * cli/cli-dump.c (restore_command): Constify.
2889 * cli/cli-cmds.c (pwd_command, echo_command, quit_command)
2890 (help_command, complete_command, shell_command, edit_command)
2891 (list_command, disassemble_command, make_command)
2892 (apropos_command, alias_command): Constify.
2893 * cli/cli-script.c (document_command, define_command)
2894 (while_command, if_command, validate_comname): Constify.
2895 * cli/cli-decode.c (struct cmd_list_element): Change type of
2896 "fun".
2897 * target.c (do_monitor_command, flash_erase_command): Constify.
2898 * regcache.c (reg_flush_command): Constify.
2899 * reverse.c (reverse_step, reverse_next, reverse_stepi)
2900 (reverse_nexti, reverse_continue, reverse_finish)
2901 (save_bookmark_command, goto_bookmark_command)
2902 (exec_reverse_once): Constify.
2903 * python/python.c (python_interactive_command, python_command):
2904 Constify.
2905 * typeprint.c (ptype_command, whatis_command, whatis_exp):
2906 Constify.
2907 * solib.c (sharedlibrary_command, no_shared_libraries): Constify.
2908 * gcore.c (gcore_command): Constify.
2909
85c4be7c
TT
29102017-11-07 Tom Tromey <tom@tromey.com>
2911
2912 * printcmd.c (x_command): Call set_repeat_arguments.
2913 * cli/cli-cmds.c (list_command): Call set_repeat_arguments.
2914 * top.c (repeat_arguments): New global.
2915 (set_repeat_arguments): New function.
2916 (execute_command): Handle repeat_arguments.
2917 (show_commands): Calls set_repeat_arguments.
2918 * command.h (set_repeat_arguments): Declare.
2919
022643b4
TT
29202017-11-07 Tom Tromey <tom@tromey.com>
2921
2922 * stack.c (backtrace_command): Use std::string.
2923 (backtrace_command_1): Make "count_exp" const.
2924
5614fb77
TT
29252017-11-07 Tom Tromey <tom@tromey.com>
2926
2927 * source.c (directory_switch, mod_path, add_path): Constify.
2928 * defs.h (add_path, mod_path, directory_switch): Constify.
2929 * mi/mi-cmd-env.c (env_mod_path): Constify.
2930
6be9a197
TT
29312017-11-07 Tom Tromey <tom@tromey.com>
2932
2933 * infcmd.c (strip_bg_char): Return gdb::unique_xmalloc_ptr.
2934 (run_command_1, continue_command, step_1, jump_command)
2935 (signal_command, until_command, advance_command, finish_command)
2936 (attach_command): Update.
2937
c2252c0d
TT
29382017-11-07 Tom Tromey <tom@tromey.com>
2939
2940 * command.h (set_cmd_cfunc): Don't declare.
2941 * cli/cli-decode.c (set_cmd_cfunc): Now static.
2942
1ee870c5
TT
29432017-11-07 Tom Tromey <tom@tromey.com>
2944
2945 * stack.c (select_frame_command): Constify.
2946 * cli/cli-decode.c (add_com_suppress_notification): Constify.
2947 * command.h (add_com_suppress_notification): Constify.
2948
ee7ddd71
TT
29492017-11-07 Tom Tromey <tom@tromey.com>
2950
2951 * breakpoint.c (stop_command): Constify.
2952 * cli/cli-decode.c (struct cmd_list_element): Constify.
2953 * command.h (add_abbrev_prefix_cmd): Constify.
2954
95e95a6d
PA
29552017-11-07 Pedro Alves <palves@redhat.com>
2956
2957 * breakpoint.c (extract_bp_kind): New enum.
2958 (extract_bp_num, extract_bp_or_bp_range): New functions, partially
2959 factored out from ...
2960 (extract_bp_number_and_location): ... here.
2961 * cli/cli-utils.c (get_number_trailer): Handle '-$variable'.
2962
cc638e86
PA
29632017-11-07 Pedro Alves <palves@redhat.com>
2964
2965 * breakpoint.c (extract_bp_number_and_location): Change return
2966 type to void. Throw error instead of warning.
2967 (enable_disable_command): Adjust.
2968
d0fe4701
XR
29692017-11-07 Xavier Roirand <roirand@adacore.com>
2970 Pedro Alves <palves@redhat.com>
2971
2972 * breakpoint.c (map_breakpoint_number_range): New, factored out
2973 from ...
2974 (map_breakpoint_numbers): ... here.
2975 (find_location_by_number): Change parameters from string to
2976 breakpoint number and location.
2977 (extract_bp_number_and_location): New function.
2978 (enable_disable_bp_num_loc)
2979 (enable_disable_breakpoint_location_range)
2980 (enable_disable_command): New functions, factored out ...
2981 (enable_command, disable_command): ... these functions, and
2982 adjusted to support ranges.
2983 * NEWS: Document enable/disable breakpoint location range feature.
2984
635dc5b2
LM
29852017-11-06 Luis Machado <luis.machado@linaro.org>
2986
2987 * MAINTAINERS (Write After Approval): Update my e-mail address.
2988
556e5da5
PA
29892017-11-06 Pedro Alves <palves@redhat.com>
2990
2991 * gnu-nat.c (gnu_terminal_init): Delete.
2992 (gnu_target): Don't install gnu_terminal_init.
2993 * inflow.c (child_terminal_init_with_pgrp): Delete, merged with ...
2994 (child_terminal_init): ... this function.
2995
d1928160
PA
29962017-11-06 Pedro Alves <palves@redhat.com>
2997
2998 * common/common.m4 (GDB_AC_COMMON): No longer check termio.h nor
2999 sgtty.h.
3000 * config.in, configure: Regenerate.
3001
6aa899ce
PA
30022017-11-06 Pedro Alves <palves@redhat.com>
3003
3004 * event-top.c: Check SIGTSTP instead of STOP_SIGNAL thoughout.
3005 (async_init_signals): Adjust.
3006 (handle_stop_sig): Rename to ...
3007 (handle_sigtstp): ... this.
3008 (async_stop_sig): Rename to ...
3009 (async_sigtstp_handler): ... this, and delete STOP_SIGNAL !=
3010 SIGTSTP path.
3011 * event-top.h: Move signal.h include to the top. Check SIGTSTP
3012 instead of STOP_SIGNAL thoughout.
3013 (handle_stop_sig): Rename to ...
3014 (handle_sigtstp): ... this.
3015 * top.c (command_line_input): Replace STOP_SIGNAL -> SIGTSTP.
3016
a94799ac
PA
30172017-11-06 Pedro Alves <palves@redhat.com>
3018
3019 * inflow.c (child_terminal_inferior, child_terminal_ours_1): No
3020 longer set flags twice in row.
3021
726e1356
PA
30222017-11-06 Pedro Alves <palves@redhat.com>
3023
3024 * Makefile.in (SER_HARDWIRE): Update comment.
3025 (HFILES_NO_SRCDIR): Remove gdb_termios.h.
3026 * common/gdb_termios.h: Delete file.
3027 * common/job-control.c: Include termios.h and unistd.h instead of
3028 gdb_termios.h.
3029 (gdb_setpgid): Remove HAVE_TERMIOS || TIOCGPGRP preprocessor
3030 check.
3031 (have_job_control): Check HAVE_TERMIOS_H instead of HAVE_TERMIOS.
3032 Remove sgtty code.
3033 * configure.ac: No longer check for termio.h and sgtty.h.
3034 * configure: Regenerate.
3035 * inflow.c: Include termios.h instead of gdb_termios.h. Replace
3036 PROCESS_GROUP_TYPE checks with HAVE_TERMIOS_H checks throughout.
3037 Replace PROCESS_GROUP_TYPE references with pid_t references
3038 throughout.
3039 (gdb_getpgrp): Delete.
3040 (set_initial_gdb_ttystate): Use tcgetpgrp instead of gdb_getpgrp.
3041 (child_terminal_inferior): Remove comment. Remove sgtty code.
3042 (child_terminal_ours_1): Use tcgetpgrp directly instead of
3043 gdb_getpgrp. Use serial_set_tty_state instead aof
3044 serial_noflush_set_tty_state. Remove sgtty code.
3045 * inflow.h: Include unistd.h instead of gdb_termios.h. Replace
3046 PROCESS_GROUP_TYPE check with HAVE_TERMIOS_H check.
3047 (inferior_process_group): Now returns pid_t.
3048 * ser-base.c (ser_base_noflush_set_tty_state): Delete.
3049 * ser-base.h (ser_base_noflush_set_tty_state): Delete.
3050 * ser-event.c (serial_event_ops): Update.
3051 * ser-go32.c (dos_noflush_set_tty_state): Delete.
3052 (dos_ops): Update.
3053 * ser-mingw.c (hardwire_ops, tty_ops, pipe_ops, tcp_ops): Update.
3054 * ser-pipe.c (pipe_ops): Update.
3055 * ser-tcp.c (tcp_ops): Update.
3056 * ser-unix.c: Include termios.h instead of gdb_termios.h. Remove
3057 HAVE_TERMIOS checks.
3058 [HAVE_TERMIO] (struct hardwire_ttystate): Delete.
3059 [HAVE_SGTTY] (struct hardwire_ttystate): Delete.
3060 (get_tty_state, set_tty_state): Drop termio and sgtty code, and
3061 assume termios.
3062 (hardwire_noflush_set_tty_state): Delete.
3063 (hardwire_print_tty_state, hardwire_drain_output)
3064 (hardwire_flush_output, hardwire_flush_input)
3065 (hardwire_send_break, hardwire_raw, hardwire_setbaudrate)
3066 (hardwire_setstopbits, hardwire_setparity): Drop termio and sgtty
3067 code, and assume termios.
3068 (hardwire_ops): Update.
3069 (_initialize_ser_hardwire): Remove HAVE_TERMIOS check.
3070 * serial.c (serial_noflush_set_tty_state): Delete.
3071 * serial.h (serial_noflush_set_tty_state): Delete.
3072 (serial_ops::noflush_set_tty_state): Delete.
3073
1cfb73db
UW
30742017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3075
3076 * Makefile.in (SFILES): Remove doublest.c and dfp.c.
3077 (HFILES_NO_SRCDIR): Remove doublest.h and dfp.h.
3078 (COMMON_OBS): Remove doublest.o and dfp.o.
3079 Do not build target-float.c (instead of doublest.c)
3080 with -Wformat-nonliteral.
3081
3082 * doublest.c: Remove file.
3083 * doublest.h: Remove file.
3084 * dfp.c: Remove file.
3085 * dfp.h: Remove file.
3086
3087 * target-float.c: Do not include "doublest.h" and "dfp.h".
3088 (DOUBLEST): Move here from doublest.h.
3089 (enum float_kind): Likewise.
3090 (FLOATFORMAT_CHAR_BIT): Likewise.
3091 (FLOATFORMAT_LARGEST_BYTES): Likewise.
3092 (floatformat_totalsize_bytes): Move here from doublest.c. Make static.
3093 (floatformat_precision): Likewise.
3094 (floatformat_normalize_byteorder, get_field, put_field): Likewise.
3095 (floatformat_is_negative, floatformat_classify, floatformat_mantissa):
3096 Likewise.
3097 (host_float_format, host_double_format, host_long_double_format):
3098 Likewise.
3099 (floatformat_to_string, floatformat_from_string): Likewise.
3100 (floatformat_to_doublest): Likewise. Also, inline the original
3101 convert_floatformat_to_doublest.
3102 (floatformat_from_doublest): Likewise. Also, inline the original
3103 convert_floatformat_from_doublest.
3104
3105 Include "dpd/decimal128.h", "dpd/decimal64.h", and "dpd/decimal32.h".
3106 (MAX_DECIMAL_STRING): Move here from dfp.c.
3107 (match_endianness): Likewise.
3108 (set_decnumber_context, decimal_check_errors): Likewise.
3109 (decimal_from_number, decimal_to_number): Likewise.
3110 (decimal_to_string, decimal_from_string): Likewise. Make static.
3111 (decimal_from_longest, decimal_from_ulongest): Likewise.
3112 (decimal_to_longest): Likewise.
3113 (decimal_binop, decimal_is_zero, decimal_compare): Likewise.
3114 (decimal_convert): Likewise.
3115
b07e9c46
UW
31162017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3117
3118 * doublest.c: Do not include "gdbtypes.h".
3119 (extract_typed_floating): Remove.
3120 (store_typed_floating): Remove.
3121 (convert_typed_floating): Remove.
3122 * doublest.h (struct type): Remove.
3123 (DOUBLEST_PRINT_FORMAT): Remove.
3124 (DOUBLEST_SCAN_FORMAT): Remove.
3125 (extract_typed_floating): Remove.
3126 (store_typed_floating): Remove.
3127 (convert_typed_floating): Remove.
3128
3129 * dfp.c (decimal_from_doublest): Remove.
3130 (decimal_to_doublest): Remove.
3131 * dfp.h: Do not include "doublest.h".
3132 (decimal_from_doublest): Remove.
3133 (decimal_to_doublest): Remove.
3134
3135 * value.c: Do not include "doublest.h" and "dfp.h".
3136 (value_as_double): Remove.
3137 (unpack_double): Remove.
3138 (value_from_double): Remove.
3139 (value_from_decfloat): Remove.
3140 * value.h: Do not include "doublest.h".
3141 (value_as_double): Remove.
3142 (unpack_double): Remove.
3143 (value_from_double): Remove.
3144 (value_from_decfloat): Remove.
3145
3b2ca824
UW
31462017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3147
3148 * i386-tdep.c: Include "target-float.h". Do not include "doublest.h".
3149 (i386_extract_return_value): Use target_float_convert.
3150 (i386_store_return_value): Likewise.
3151 * i387-tdep.c (i387_register_to_value): Use target_float_convert.
3152 (i387_value_to_register): Likewise.
3153 * ia64-tdep.c: Include "target-float.h". Do not include "doublest.h".
3154 (ia64_register_to_value): Use target_float_convert.
3155 (ia64_value_to_register): Likewise.
3156 (ia64_extract_return_value): Likewise.
3157 (ia64_store_return_value): Likewise.
3158 (ia64_push_dummy_call): Likewise.
3159 * m68k-tdep.c: Include "target-float.h".
3160 (m68k_register_to_value): Use target_float_convert.
3161 (m68k_value_to_register): Likewise.
3162 (m68k_svr4_extract_return_value): Likewise.
3163 (m68k_svr4_store_return_value): Likewise.
3164 * ppc-sysv-tdep.c: Include "target-float.h".
3165 (ppc_sysv_abi_push_dummy_call): Use target_float_convert.
3166 (do_ppc_sysv_return_value): Likewise.
3167 (ppc64_sysv_abi_push_freg): Likewise.
3168 (ppc64_sysv_abi_return_value_base): Likewise.
3169 * rs6000-aix-tdep.c: Include "target-float.h".
3170 (rs6000_push_dummy_call): Use target_float_convert.
3171 (rs6000_return_value): Likewise.
3172 * rs6000-lynx178-tdep.c: Include "target-float.h".
3173 (rs6000_lynx178_push_dummy_call): Use target_float_convert.
3174 (rs6000_lynx178_return_value): Likewise.
3175 * rs6000-tdep.c: Include "target-float.h". Do not include "doublest.h".
3176 (rs6000_register_to_value): Use target_float_convert.
3177 (rs6000_value_to_register): Likewise.
3178 * arm-tdep.c: Include "target-float.h". Do not include "doublest.h".
3179 (arm_extract_return_value): Use target_float_convert.
3180 (arm_store_return_value): Likewise.
3181 * sh-tdep.c: Include "target-float.h". Do not include "doublest.h".
3182 (sh_register_convert_to_virtual): Use target_float_convert.
3183 (sh_register_convert_to_raw): Likewise.
3184 * sh64-tdep.c: Include "target-float.h".
3185 (sh64_extract_return_value): Use target_float_convert.
3186 (sh64_register_convert_to_virtual): Likewise.
3187 (sh64_register_convert_to_raw): Likewise. Fix argument types.
3188
14ad9311
UW
31892017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3190
3191 * target-float.c (floatformat_to_host_double): New function.
3192 (floatformat_from_host_double): Likewise.
3193 (target_float_to_host_double): Likewise.
3194 (target_float_from_host_double): Likewise.
3195 * target-float.h (target_float_to_host_double): Add prototype.
3196 (target_float_from_host_double): Likewise.
3197
3198 * guile/scm-value.c: Include "target-float.h".
3199 (gdbscm_value_to_real): Use target_float_to_host_double.
3200 Handle integer source values via value_as_long.
3201 * guile/scm-math.c: Include "target-float.h". Do not include
3202 "doublest.h", "dfp.h", and "expression.h".
3203 (vlscm_convert_typed_number): Use target_float_from_host_double.
3204 (vlscm_convert_number): Likewise.
3205
3206 * python/py-value.c (valpy_float): Use target_float_to_host_double.
3207 (convert_value_from_python): Use target_float_from_host_double.
3208
50eff16b
UW
32092017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3210
3211 * ada-lang.c (cast_to_fixed): Reimplement in target arithmetic.
3212 (cast_from_fixed): Likewise.
3213 (ada_scaling_type): New function.
3214 (ada_delta): Return value instead of DOUBLEST. Perform target
3215 arithmetic instead of host arithmetic.
3216 (scaling_factor): Rename to ...
3217 (ada_scaling_factor) ... this. Make non-static. Return value instead
3218 of DOUBLEST. Perform target arithmetic instead of host arithmetic.
3219 (ada_fixed_to_float): Remove.
3220 (ada_float_to_fixed): Remove.
3221 * ada-lang.h (ada_fixed_to_float): Remove.
3222 (ada_float_to_fixed): Remove.
3223 (ada_delta): Return value instead of DOUBLEST.
3224 (ada_scaling_factor): Add prototype.
3225
3226 * ada-typeprint.c: Include "target-float.h".
3227 (print_fixed_point_type): Perform target arithmetic instead of
3228 host arithmetic.
3229 * ada-valprint.c: Include "target-float.h".
3230 (ada_val_print_num): Perform target arithmetic instead of
3231 host arithmetic for fixed-point types.
3232
66c02b9e
UW
32332017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3234
3235 * target-float.c: Include <math.h>.
3236 (floatformat_binop): New function.
3237 (floatformat_compare): Likewise.
3238 (target_float_binop): Likewise.
3239 (target_float_compare): Likewise.
3240 * target-float.h: Include "expression.h".
3241 (target_float_binop): Add prototype.
3242 (target_float_compare): Likewise.
3243
3244 * valarith.c: Do not include "doublest.h" and "dfp.h".
3245 Include "common/byte-vector.h".
3246 (value_args_as_decimal): Remove, replace by ...
3247 (value_args_as_target_float): ... this function. Handle both
3248 binary and decimal target floating-point formats.
3249 (scalar_binop): Handle both binary and decimal FP using
3250 value_args_as_target_float and target_float_binop.
3251 (value_equal): Handle both binary and decimal FP using
3252 value_args_as_target_float and target_float_compare.
3253 (value_less): Likewise.
3254 (value_pos): Handle all scalar types as simple copy.
3255 (value_neg): Handle all scalar types via BINOP_SUB from 0.
3256 * dfp.c (decimal_binop): Throw error instead of internal_error
3257 when called with an unsupported operation code.
3258
f69fdf9b
UW
32592017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3260
3261 * target-float.c (target_float_to_string): New function.
3262 (target_float_from_string): New function.
3263 * target-float.h (target_float_to_string): Add prototype.
3264 (target_float_from_string): Add prototype.
3265
3266 * valprint.c: Include "target-float.h". Do not include
3267 "doublest.h" and "dfp.h".
3268 (print_floating): Use target_float_to_string.
3269 * printcmd.c: Include "target-float.h". Do not include "dfp.h".
3270 (printf_floating): Use target_float_to_string.
3271 * i387-tdep.c: Include "target-float.h". Do not include "doublest.h".
3272 (print_i387_value): Use target_float_to_string.
3273 * mips-tdep.c: Include "target-float.h".
3274 (mips_print_fp_register): Use target_float_to_string.
3275 * sh64-tdep.c: Include "target-float.h".
3276 (sh64_do_fp_register): Use target_float_to_string.
3277
3278 * parse.c: Include "target-float.h". Do not include
3279 "doublest.h" and "dfp.h".
3280 (parse_float): Use target_float_from_string.
3281 * stabsread.c: Include "target-float.h". Do not include "doublest.h".
3282 (define_symbol): Use target_float_from_string.
3283 * gdbarch-selftests.c: Include "target-float.h".
3284 (register_to_value_test): Use target_float_from_string.
3285
70100014
UW
32862017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3287
3288 * Makefile.c (SFILES): Add target-float.c.
3289 (HFILES_NO_SRCDIR): Add target-float.h.
3290 (COMMON_OBS): Add target-float.o.
3291 * target-float.h: New file.
3292 * target-float.c: New file.
3293
3294 * doublest.c (floatformat_classify): Fix detection of float_zero.
3295
3296 * gdbtypes.c (is_floating_type): New function.
3297 * gdbtypes.h (is_floating_type): Add prototype.
3298
3299 * value.c: Do not include "floatformat.h".
3300 (unpack_double): Use target_float_is_valid.
3301 (is_floating_value): New function.
3302 * value.h (is_floating_value): Add prototype-
3303
3304 * valarith.c: Include "target-float.h".
3305 (value_logical_not): Use target_float_is_zero.
3306
3307 * python/py-value.c: Include "target-float.h".
3308 (valpy_nonzero): Use target_float_is_zero.
3309
ab4b1c46
TT
33102017-11-04 Tom Tromey <tom@tromey.com>
3311
3312 * h8300-tdep.c (h8300_push_dummy_call): Use std::vector.
3313
454dafbd
TT
33142017-11-04 Tom Tromey <tom@tromey.com>
3315
3316 * breakpoint.c (set_momentary_breakpoint): Return
3317 breakpoint_up.
3318 (until_break_command): Update.
3319 (new_until_break_fsm): Change argument types to
3320 breakpoint_up.
3321 (set_momentary_breakpoint_at_pc): Return breakpoint_up.
3322 (do_delete_breakpoint_cleanup, make_cleanup_delete_breakpoint):
3323 Remove.
3324 * infcmd.c (finish_forward): Update.
3325 * breakpoint.h (set_momentary_breakpoint)
3326 (set_momentary_breakpoint_at_pc): Return breakpoint_up.
3327 (make_cleanup_delete_breakpoint): Remove.
3328 (struct breakpoint_deleter): New.
3329 (breakpoint_up): New typedef.
3330 * infrun.c (insert_step_resume_breakpoint_at_sal_1): Update.
3331 (insert_exception_resume_breakpoint): Update.
3332 (insert_exception_resume_from_probe): Update.
3333 (insert_longjmp_resume_breakpoint): Update.
3334 * arm-linux-tdep.c (arm_linux_copy_svc): Update.
3335 * elfread.c (elf_gnu_ifunc_resolver_stop): Update.
3336 * infcall.c (call_function_by_hand_dummy): Update
3337
331b71e5
TT
33382017-11-04 Tom Tromey <tom@tromey.com>
3339
3340 * c-typeprint.c (c_type_print_base): Use gdb::unique_xmalloc_ptr.
3341
9f584b37
TT
33422017-11-04 Tom Tromey <tom@tromey.com>
3343
3344 * linux-tdep.c (linux_core_info_proc_mappings): Use
3345 gdb::def_vector.
3346 (linux_get_siginfo_data): Return gdb::byte_vector. Remove
3347 "size" argument.
3348 (linux_corefile_thread): Update.
3349 (linux_make_corefile_notes): Remove unused variable.
3350
779bc38e
TT
33512017-11-04 Tom Tromey <tom@tromey.com>
3352
3353 * ppc-linux-tdep.c (ppc_linux_get_syscall_number): Use
3354 gdb::byte_vector.
3355
ed2b3126
TT
33562017-11-04 Tom Tromey <tom@tromey.com>
3357
3358 * objfiles.c (do_free_objfile_cleanup): Remove.
3359 * compile/compile-object-load.c (compile_object_load): Update.
3360 * objfiles.h (make_cleanup_free_objfile): Remove.
3361
7f6743fd
TT
33622017-11-04 Tom Tromey <tom@tromey.com>
3363
3364 * sparc64-tdep.c (do_examine): Use gdb::def_vector.
3365 (adi_read_versions): Change "tags" to "gdb_byte *".
3366 (adi_print_versions): Likewise.
3367
c80049d3
TT
33682017-11-04 Tom Tromey <tom@tromey.com>
3369
3370 * breakpoint.c
3371 (scoped_rbreak_breakpoints::scoped_rbreak_breakpoints): Rename
3372 from start_rbreak_breakpoints.
3373 (scoped_rbreak_breakpoints): Rename from end_rbreak_breakpoints.
3374 * breakpoint.h (class scoped_rbreak_breakpoints): New.
3375 (start_rbreak_breakpoints, end_rbreak_breakpoints): Remove.
3376 * symtab.c (do_end_rbreak_breakpoints): Remove.
3377 (rbreak_command): Use scoped_rbreak_breakpoints, std::string.
3378
167b0be1
TT
33792017-11-04 Tom Tromey <tom@tromey.com>
3380
3381 * cp-namespace.c (reset_directive_searched): Remove.
3382 (cp_lookup_symbol_via_imports): Use scoped_restore.
3383 * cp-support.c (reset_directive_searched): Remove.
3384 (make_symbol_overload_list_using): Use scoped_restore.
3385 * d-namespace.c (d_lookup_symbol_imports): Use scoped_restore.
3386 (reset_directive_searched): Remove.
3387
5eae7aea
TT
33882017-11-04 Tom Tromey <tom@tromey.com>
3389
3390 * symfile.c (find_separate_debug_file_by_debuglink): Use
3391 unique_xmalloc_ptr.
3392
c6bcad5f
TT
33932017-11-04 Tom Tromey <tom@tromey.com>
3394
3395 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
3396 type of "info".
3397 (compute_stack_depth): Likewise.
3398 (do_compile_dwarf_expr_to_c): Use std::vector.
3399
20dcd8ca
TT
34002017-11-04 Tom Tromey <tom@tromey.com>
3401
3402 * compile/compile-object-load.c (link_callbacks_einfo): Use
3403 std::string.
3404
33c7c59d
TT
34052017-11-04 Tom Tromey <tom@tromey.com>
3406
3407 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
3408 Use scoped_free_pendings.
3409 * dbxread.c (dbx_symfile_read, dbx_psymtab_to_symtab_1): Use
3410 scoped_free_pendings.
3411 * xcoffread.c (xcoff_psymtab_to_symtab_1): Use scoped_free_pendings.
3412 (xcoff_initial_scan): Likewise.
3413 * buildsym.c (reset_symtab_globals): Update comment.
3414 (scoped_free_pendings): Rename from really_free_pendings.
3415 (prepare_for_building): Update comment.
3416 (buildsym_init): Likewise.
3417 * buildsym.h (class scoped_free_pendings): New class.
3418 (really_free_pendings): Don't declare.
3419
67fa57cf
UW
34202017-11-03 Ulrich Weigand <uweigand@de.ibm.com>
3421
3422 * doublest.c (convert_doublest_to_floatformat): Fix uninitialized
3423 output when converting a zero value to a special byteorder format.
3424
f26ae15b
YQ
34252017-11-02 Yao Qi <yao.qi@linaro.org>
3426
3427 * frame.c (do_frame_register_read): Remove aspace.
3428 * jit.c (jit_frame_sniffer): Likwise.
3429 * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
3430 * regcache.c (regcache::regcache): Pass nullptr.
3431 (regcache_print): Caller updated.
3432 * regcache.h (regcache::regcache): Remove one constructor
3433 parameter aspace.
3434
6c6e9412
YQ
34352017-11-02 Yao Qi <yao.qi@linaro.org>
3436
3437 * regcache.h (regcache) <m_readonly_p>: Change it to const bool.
3438
8b86c959
YQ
34392017-11-02 Yao Qi <yao.qi@linaro.org>
3440
3441 * breakpoint.c (insert_single_step_breakpoints): Update.
3442 * frame.c (struct frame_info) <aspace>: Add const.
3443 (frame_save_as_regcache): Add const.
3444 (get_frame_address_space): Return const address_space *.
3445 * frame.h (get_frame_address_space): Update declaration.
3446 * infrun.c (struct step_over_info) <aspace>: Add const.
3447 (set_step_over_info): Make aspace const.
3448 (displaced_step_prepare_throw): Change variable const.
3449 (resume): Likewise.
3450 (proceed): Likewise.
3451 (adjust_pc_after_break): Likewise.
3452 (save_waitstatus): Likewise.
3453 (handle_signal_stop): Likewise.
3454 (keep_going_pass_signal): Likewise.
3455 * jit.c (jit_frame_sniffer): Add const.
3456 * mips-tdep.c (mips_single_step_through_delay): Likewise.
3457 * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
3458 * record-full.c (record_full_wait_1): Likewise.
3459 * regcache.c (regcache::regcache): Change parameter to const.
3460 * regcache.h (regcache::regcache): Likewise.
3461 (regcache::aspace): Return const address_space *.
3462 (regcache) <m_aspace>: Add const.
3463
a01bda52
YQ
34642017-11-02 Yao Qi <yao.qi@linaro.org>
3465
3466 * darwin-nat.c (cancel_breakpoint): Use regcache->aspace ().
3467 * frame.c (create_sentinel_frame): Likewise.
3468 * infrun.c (displaced_step_prepare_throw): Likewise.
3469 (resume): Likewise.
3470 (thread_still_needs_step_over_bp): Likewise.
3471 (proceed): Likewise.
3472 (do_target_wait): Likewise.
3473 (adjust_pc_after_break): Likewise.
3474 (handle_syscall_event): Likewise.
3475 (save_waitstatus): Likewise.
3476 (handle_inferior_event_1): Likewise.
3477 (handle_signal_stop): Likewise.
3478 (keep_going_pass_signal): Likewise.
3479 * linux-nat.c (status_callback): Likewise.
3480 (save_stop_reason): Likewise.
3481 (resume_stopped_resumed_lwps): Likewise.
3482 * record-full.c (record_full_exec_insn): Likewise.
3483 (record_full_wait_1): Likewise.
3484 * regcache.c (get_regcache_aspace): Remove.
3485 * regcache.h (get_regcache_aspace): Remove.
3486
d999647b
YQ
34872017-11-02 Yao Qi <yao.qi@linaro.org>
3488
3489 * regcache.c (struct regcache_descr) <nr_raw_registers>: Remove.
3490 (init_regcache_descr): Use gdbarch_num_regs.
3491 (regcache::regcache): Likewise.
3492 (regcache::get_register_status): Likewise.
3493 (regcache::assert_raw_regnum): Likewise.
3494 (regcache::cooked_read): Likewise.
3495 (regcache::cooked_read_value): Likewise.
3496 (regcache::cooked_write): Likewise.
3497 (regcache::dump): Likewise.
3498 (regcache::num_raw_registers): New method.
3499 * regcache.h (class regcache) <num_raw_registers>: New.
3500
4e888c28
YQ
35012017-11-02 Yao Qi <yao.qi@linaro.org>
3502
3503 * regcache.c (regcache::assert_regnum): New method.
3504 (regcache::invalidate): Call assert_regnum.
3505 (regcache::raw_update): Likewise.
3506 (regcache::raw_write): Likewise.
3507 (regcache::raw_read_part): Likewise.
3508 (regcache::raw_write_part): Likewise.
3509 (regcache::raw_supply): Likewise.
3510 (regcache::raw_supply_integer): Likewise.
3511 (regcache::raw_supply_zeroed): Likewise.
3512 (regcache::raw_collect): Likewise.
3513 (regcache::raw_collect_integer): Likewise.
3514 * regcache.h (regcache::assert_regnum): Declare.
3515
2e1b49b3
YQ
35162017-11-02 Yao Qi <yao.qi@linaro.org>
3517
3518 * regcache.c (regcache::dump): Remove code.
3519
6c5218df
YQ
35202017-11-02 Yao Qi <yao.qi@linaro.org>
3521
3522 * regcache.c (struct regcache_descr) <sizeof_raw_register_status>:
3523 Remove.
3524 <sizeof_cooked_register_status>: Remove.
3525 (init_regcache_descr): Update.
3526 (regcache::regcache): Use nr_cooked_registers and nr_raw_registers.
3527 (regcache::save): Likewise.
3528 (regcache::dump): Likewise.
3529
dcc31d28
JB
35302017-11-01 James Bowman <james.bowman@ftdichip.com>
3531
3532 * ft32-tdep.c (ft32_fetch_instruction): New function.
3533 (ft32_analyze_prologue): Use ft32_fetch_instruction().
3534
3a87ae65
SM
35352017-10-31 Simon Marchi <simon.marchi@polymtl.ca>
3536
3537 * cli/cli-script.c (execute_control_command): Rename to ...
3538 (execute_control_command_1): ... this.
3539 (execute_control_command): New function.
3540
09b847f3
SM
35412017-10-31 Simon Marchi <simon.marchi@ericsson.com>
3542
3543 * tracepoint.c (tfind_command): Remove const_cast.
3544
f871c485
MG
35452017-10-30 Mike Gulick <mgulick@mathworks.com>
3546
3547 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to gdb.h.
3548
b020ff80
SM
35492017-10-30 Simon Marchi <simon.marchi@ericsson.com>
3550
3551 * common/common-utils.h (in_inclusive_range): New function.
3552 * arm-tdep.c (arm_record_extension_space): Use
3553 in_inclusive_range.
3554 (thumb_record_ld_st_reg_offset): Use in_inclusive_range.
3555 * cris-tdep.c (cris_spec_reg_applicable): Use
3556 in_inclusive_range.
3557
1b81856f
PA
35582017-10-30 Pedro Alves <palves@redhat.com>
3559 Simon Marchi <simon.marchi@ericsson.com>
3560
3561 * remote.c (remote_set_syscall_catchpoint): Build a std::string
3562 instead of a gdb::unique_xmalloc_ptr, using string_appendf.
3563
31b833b3
PA
35642017-10-30 Pedro Alves <palves@redhat.com>
3565
3566 * common/common-utils.c (string_appendf, string_vappendf): New
3567 functions.
3568 * common/common-utils.h (string_appendf, string_vappendf): New
3569 declarations.
3570 * unittests/common-utils-selftests.c (string_appendf_func)
3571 (test_appendf_func, string_vappendf_wrapper, string_appendf_tests)
3572 (string_vappendf_tests): New functions.
3573 (_initialize_common_utils_selftests): Register "string_appendf" and
3574 "string_vappendf tests".
3575
4a250334
PA
35762017-10-30 Pedro Alves <palves@redhat.com>
3577
3578 * unittests/common-utils-selftests.c (format_func): New typedef.
3579 (string_printf_tests, string_vprintf_tests): Tests factored out
3580 and merged to ...
3581 (test_format_func): ... this new function.
3582 (string_printf_tests, string_vprintf_tests): Reimplement on top of
3583 test_format_func.
3584
16c5c17e
SM
35852017-10-29 Simon Marchi <simon.marchi@ericsson.com>
3586
3587 * darwin-nat.c: Remove include of gdb.h.
3588
7ca51576
SM
35892017-10-29 Simon Marchi <simon.marchi@ericsson.com>
3590
3591 * xtensa-xtregs.c: Fix formatting issues.
3592
c1342859
SM
35932017-10-29 Simon Marchi <simon.marchi@ericsson.com>
3594
3595 * xtensa-xtregs.c (xtensa_regtable_t) <name>: Constify.
3596
484d8d36
MD
35972017-10-28 Maksim Dzabraev <dzabraew@gmail.com>
3598
3599 PR python/21213
3600 * python/py-infthread.c (thpy_get_inferior): Increment reference
3601 of inferior before returning it.
3602
b5540b5f
SM
36032017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3604
3605 * unittests/common-utils-selftests.c (format): Add
3606 ATTRIBUTE_PRINTF.
3607
5a9dcda1
SM
36082017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
3609
3610 * xml-syscall.c (struct syscall_desc): Add constructor.
3611 <name>: Change type to std::string.
3612 (syscall_desc_up): New typedef.
3613 (syscall_desc_p): Remove typeder.
3614 (DEF_VEC_P(syscall_desc_p)): Remove.
3615 (struct syscall_group_desc): Add constructor.
3616 <name>: Change type to std::string.
3617 <syscalls>: Change type to std::vector.
3618 (syscall_group_desc_up): New typedef.
3619 (syscall_group_desc_p): Remove typedef.
3620 (DEF_VEC_P(syscall_group_desc_p)): Remove.
3621 (struct syscalls_info) <syscalls>: Change type to std::vector of
3622 unique_ptr.
3623 <groups>: Likewise.
3624 <my_gdb_datadir>: Change type to std::string.
3625 (syscalls_info_up): New typedef.
3626 (allocate_syscalls_info): Remove.
3627 (syscalls_info_free_syscalls_desc): Remove.
3628 (syscalls_info_free_syscall_group_desc): Remove.
3629 (free_syscalls_info): Remove.
3630 (make_cleanup_free_syscalls_info): Remove.
3631 (syscall_group_create_syscall_group_desc): Adjust.
3632 (syscall_group_add_syscall): Adjust.
3633 (syscall_create_syscall_desc): Adjust.
3634 (syscall_parse_xml): Adjust, use unique_ptr instead of cleanup.
3635 (init_syscalls_info): Adjust.
3636 (syscall_group_get_group_by_name): Adjust.
3637 (xml_get_syscall_number): Adjust.
3638 (xml_get_syscall_name): Adjust.
3639 (xml_list_of_syscalls): Adjust.
3640 (xml_list_syscalls_by_group): Adjust.
3641 (xml_list_of_groups): Adjust.
3642
45461e0d
SM
36432017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3644
3645 * probe.h: Don't include gdb_vecs.h.
3646 (DEF_VEC_P (probe_p)): Remove.
3647 (find_probes_in_objfile): Return an std::vector.
3648 * probe.c (find_probes_in_objfile): Likewise.
3649 * breakpoint.c (breakpoint_objfile_data)
3650 <longjmp_probes>: Change type to std::vector.
3651 <exception_probes>: Likewise.
3652 (free_breakpoint_probes): Don't manually free vectors.
3653 (create_longjmp_master_breakpoint): Adjust.
3654 (create_exception_master_breakpoint): Adjust.
3655 * solib-svr4.c (svr4_create_probe_breakpoints): Change
3656 parameter type, adjust.
3657 (svr4_create_solib_event_breakpoints): Adjust.
3658
43dce439
SM
36592017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3660
3661 * breakpoint.c (breakpoint_objfile_data): Initialize fields.
3662 (get_breakpoint_objfile_data): Allocate breakpoint_objfile_data
3663 with new.
3664 (free_breakpoint_probes): Rename to ...
3665 (free_breakpoint_objfile_data): ... this, and call delete on
3666 bp_objfile_data..
3667
6a1b9516
SM
36682017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
3669
3670 * auto-load.c: Don't include gdb_vecs.h, include algorithm.
3671 (loaded_script_ptr): Remove typedef.
3672 (DEF_VEC_P (loaded_script_ptr)): Remove.
3673 (struct collect_matching_scripts_data): Add constructor.
3674 <scripts_p>: Change type to (pointer to) std::vector.
3675 (collect_matching_scripts_data): Adjust.
3676 (sort_scripts_by_name): Make suitable for std::sort.
3677 (print_scripts): Don't sort vector, adjust to std::vector.
3678 (auto_load_info_scripts): Sort vectors, adjust to std::vector.
3679
593e3209
SM
36802017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3681
3682 * symfile.c (filename_language): Make struct, not typedef. Add
3683 constructor.
3684 <ext>: Change type to std::string.
3685 (DEF_VEC_O (filename_language)): Remove.
3686 (filename_language_table): Change type to std::vector.
3687 (add_filename_language): Adjust.
3688 (set_ext_lang_command): Adjust.
3689 (info_ext_lang_command): Adjust.
3690 (deduce_language_from_filename): Adjust.
3691 (class scoped_restore_filename_language_table): Remove.
3692 (test_filename_language): Use scoped_restore.
3693 (test_set_ext_lang_command): Use scoped_restore, adjust to
3694 std::vector change.
3695
32fa66eb
SM
36962017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3697
3698 * symfile.c: Include selftest.h.
3699 (class scoped_restore_filename_language_table): New.
3700 (test_filename_language): New test.
3701 (test_set_ext_lang_command): New test.
3702 (_initialize_symfile): Register tests.
3703
4a27f119
KS
37042017-10-27 Keith Seitz <keiths@redhat.com>
3705
3706 * breakpoint.c (print_breakpoint_location): Use the symbol saved
3707 in the bp_location, falling back to find_pc_sect_function when
3708 needed.
3709 (add_location_to_breakpoint): Save sal->symbol.
3710 * breakpoint.h (struct bp_location) <symbol>: New field.
3711 * symtab.c (find_function_start_sal): Save the symbol into the SaL.
3712 * symtab.h (struct symtab_and_line) <symbol>: New field.
3713
a43f3893
PF
37142017-10-26 Patrick Frants <osscontribute@gmail.com>
3715
7453e6b2 3716 PR gdb/13669
a43f3893
PF
3717 * cp-valprint.c (cp_print_value_fields): Use obstack_blank_fast
3718 to rewind obstack.
3719
23cc4e1b
PA
37202017-10-26 Pedro Alves <palves@redhat.com>
3721
3722 * remote.c (remote_async_terminal_ours_p): Delete.
3723 (remote_open_1, remote_terminal_inferior, remote_terminal_ours):
3724 Remove references to 'remote_async_terminal_ours_p'.
3725
6abc18bb
YQ
37262017-10-26 Yao Qi <yao.qi@linaro.org>
3727
3728 * breakpoint.h (regular_breakpoint_inserted_here_p): Remove.
3729
bd522513
YQ
37302017-10-26 Yao Qi <yao.qi@linaro.org>
3731
3732 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Make
3733 aspace const.
3734 * break-catch-syscall.c (breakpoint_hit_catch_syscall):
3735 Likewise.
3736 * breakpoint.c (bpstat_check_location): Remove cast.
3737 (breakpoint_hit_catch_fork): Make aspce const.
3738 (breakpoint_hit_catch_solib): Likewise.
3739 (breakpoint_hit_catch_exec): Likewise.
3740 (breakpoint_hit_ranged_breakpoint): Likewise.
3741 (breakpoint_hit_watchpoint): Likewise.
3742 (base_breakpoint_breakpoint_hit): Likewise.
3743 (bkpt_breakpoint_hit): Likewise.
3744 (dprintf_breakpoint_hit): Likewise.
3745 (tracepoint_breakpoint_hit): Likewise.
3746 * breakpoint.h (breakpoint_ops) <breakpoint_hit>: Likewise.
3747
accd0bcd
YQ
37482017-10-26 Yao Qi <yao.qi@linaro.org>
3749
3750 * breakpoint.c (breakpoint_location_address_match): Change
3751 "struct address_space *" to "const address_space".
3752 (breakpoint_location_address_range_overlap): Likewise.
3753 (breakpoint_here_p): Likewise.
3754 (breakpoint_in_range_p): Likewise.
3755 (moribund_breakpoint_here_p): Likewise.
3756 (bp_location_inserted_here_p): Likewise.
3757 (software_breakpoint_inserted_here_p): Likewise.
3758 (hardware_breakpoint_inserted_here_p): Likewise.
3759 (hardware_watchpoint_inserted_in_range): Likewise.
3760 (bpstat_check_location): Likewise.
3761 (bpstat_stop_status): Likewise.
3762 (breakpoint_address_match): Likewise.
3763 (breakpoint_address_match_range): Likewise.
3764 (breakpoint_location_address_match): Likewise.
3765 (breakpoint_location_address_range_overlap): Likewise.
3766 (insert_single_step_breakpoint): Likewise.
3767 (breakpoint_has_location_inserted_here): Likewise.
3768 (single_step_breakpoint_inserted_here_p): Likewise.
3769 (pc_at_non_inline_function): Likewise.
3770 * breakpoint.h (bpstat_stop_status): Update declaration.
3771 (breakpoint_here_p): Likewise.
3772 (breakpoint_in_range_p): Likewise.
3773 (moribund_breakpoint_here_p): Likewise.
3774 (breakpoint_inserted_here_p): Likewise.
3775 (software_breakpoint_inserted_here_p): Likewise.
3776 (hardware_breakpoint_inserted_here_p): Likewise.
3777 (breakpoint_has_location_inserted_here): Likewise.
3778 (single_step_breakpoint_inserted_here_p): Likewise.
3779 (hardware_watchpoint_inserted_in_range): Likewise.
3780 (breakpoint_address_match): Likewise.
3781 (insert_single_step_breakpoint): Likewise.
3782 (pc_at_non_inline_function): Likewise.
3783 * gdbthread.h (thread_has_single_step_breakpoint_here): Likewise.
3784 * record.c (record_check_stopped_by_breakpoint): Likewise.
3785 * record.h (record_check_stopped_by_breakpoint): Likewise.
3786 * thread.c (thread_has_single_step_breakpoint_here): Likewise.
3787
ac7936df
YQ
37882017-10-25 Yao Qi <yao.qi@linaro.org>
3789
3790 * aarch32-linux-nat.c (aarch32_gp_regcache_supply): Use
3791 regcache->arch () instead get_regcache_arch.
3792 * aarch64-fbsd-nat.c (aarch64_fbsd_fetch_inferior_registers):
3793 Likewise.
3794 (aarch64_fbsd_store_inferior_registers): Likewise.
3795 * aarch64-linux-nat.c (fetch_gregs_from_thread): Likewise.
3796 (store_gregs_to_thread): Likewise.
3797 (fetch_fpregs_from_thread): Likewise.
3798 (store_fpregs_to_thread): Likewise.
3799 * aarch64-tdep.c (aarch64_extract_return_value): Likewise.
3800 (aarch64_store_return_value): Likewise.
3801 (aarch64_software_single_step): Likewise.
3802 * aix-thread.c (aix_thread_wait): Likewise.
3803 (supply_reg32): Likewise.
3804 (supply_sprs64): Likewise.
3805 (supply_sprs32): Likewise.
3806 (fill_gprs64): Likewise.
3807 (fill_gprs32): Likewise.
3808 (fill_sprs64): Likewise.
3809 (fill_sprs32): Likewise.
3810 (store_regs_user_thread): Likewise.
3811 (store_regs_kernel_thread): Likewise.
3812 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
3813 (alphabsd_store_inferior_registers): Likewise.
3814 * alpha-tdep.c (alpha_extract_return_value): Likewise.
3815 (alpha_store_return_value): Likewise.
3816 (alpha_deal_with_atomic_sequence): Likewise.
3817 (alpha_next_pc): Likewise.
3818 (alpha_software_single_step): Likewise.
3819 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
3820 (amd64bsd_store_inferior_registers): Likewise.
3821 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
3822 Likewise.
3823 (amd64_linux_store_inferior_registers): Likewise.
3824 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
3825 (amd64_collect_native_gregset): Likewise.
3826 * amd64-obsd-tdep.c (amd64obsd_supply_uthread): Likewise.
3827 (amd64obsd_collect_uthread): Likewise.
3828 * amd64-tdep.c (amd64_supply_fpregset): Likewise.
3829 (amd64_collect_fpregset): Likewise.
3830 (amd64_supply_fxsave): Likewise.
3831 (amd64_supply_xsave): Likewise.
3832 (amd64_collect_fxsave): Likewise.
3833 (amd64_collect_xsave): Likewise.
3834 * arc-tdep.c (arc_write_pc): Likewise.
3835 * arch-utils.c (default_skip_permanent_breakpoint): Likewise.
3836 * arm-fbsd-nat.c (arm_fbsd_fetch_inferior_registers): Likewise.
3837 (arm_fbsd_store_inferior_registers): Likewise.
3838 * arm-linux-nat.c (fetch_vfp_regs): Likewise.
3839 (store_vfp_regs): Likewise.
3840 (arm_linux_fetch_inferior_registers): Likewise.
3841 (arm_linux_store_inferior_registers): Likewise.
3842 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
3843 (arm_linux_sigreturn_next_pc): Likewise.
3844 (arm_linux_get_next_pcs_syscall_next_pc): Likewise.
3845 * arm-nbsd-nat.c (arm_supply_gregset): Likewise.
3846 (fetch_register): Likewise.
3847 (store_register): Likewise.
3848 * arm-tdep.c (arm_is_thumb): Likewise.
3849 (displaced_in_arm_mode): Likewise.
3850 (bx_write_pc): Likewise.
3851 (arm_get_next_pcs_addr_bits_remove): Likewise.
3852 (arm_software_single_step): Likewise.
3853 (arm_extract_return_value): Likewise.
3854 (arm_store_return_value): Likewise.
3855 (arm_write_pc): Likewise.
3856 * bfin-tdep.c (bfin_extract_return_value): Likewise.
3857 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
3858 (bsd_uthread_store_registers): Likewise.
3859 * core-regset.c (fetch_core_registers): Likewise.
3860 * corelow.c (get_core_registers): Likewise.
3861 * cris-tdep.c (cris_store_return_value): Likewise.
3862 (cris_extract_return_value): Likewise.
3863 (find_step_target): Likewise.
3864 (find_step_target): Likewise.
3865 (cris_software_single_step): Likewise.
3866 * ctf.c (ctf_fetch_registers): Likewise.
3867 * darwin-nat.c (cancel_breakpoint): Likewise.
3868 * fbsd-tdep.c (fbsd_collect_thread_registers): Likewise.
3869 * frv-tdep.c (frv_extract_return_value): Likewise.
3870 * ft32-tdep.c (ft32_store_return_value): Likewise.
3871 (ft32_extract_return_value): Likewise.
3872 * go32-nat.c (fetch_register): Likewise.
3873 (go32_fetch_registers): Likewise.
3874 (go32_store_registers): Likewise.
3875 (store_register): Likewise.
3876 * h8300-tdep.c (h8300_extract_return_value): Likewise.
3877 (h8300_store_return_value): Likewise.
3878 * hppa-linux-nat.c (fetch_register): Likewise.
3879 (store_register): Likewise.
3880 (hppa_linux_fetch_inferior_registers): Likewise.
3881 (hppa_linux_store_inferior_registers): Likewise.
3882 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Likewise.
3883 (i386_darwin_store_inferior_registers): Likewise.
3884 * i386-gnu-nat.c (gnu_fetch_registers): Likewise.
3885 (gnu_store_registers): Likewise.
3886 * i386-linux-nat.c (fetch_register): Likewise.
3887 (store_register): Likewise.
3888 (supply_gregset): Likewise.
3889 (fill_gregset): Likewise.
3890 (i386_linux_fetch_inferior_registers): Likewise.
3891 (i386_linux_store_inferior_registers): Likewise.
3892 (i386_linux_resume): Likewise.
3893 * i386-linux-tdep.c (i386_linux_get_syscall_number_from_regcache):
3894 Likewise.
3895 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
3896 * i386-obsd-nat.c (i386obsd_supply_pcb): Likewise.
3897 * i386-obsd-tdep.c (i386obsd_supply_uthread): Likewise.
3898 (i386obsd_collect_uthread): Likewise.
3899 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
3900 (i386_supply_gregset): Likewise.
3901 (i386_collect_gregset): Likewise.
3902 (i386_supply_fpregset): Likewise.
3903 (i386_collect_fpregset): Likewise.
3904 (i386_mpx_bd_base): Likewise.
3905 * i386-v4-nat.c (supply_fpregset): Likewise.
3906 (fill_fpregset): Likewise.
3907 * i387-tdep.c (i387_supply_fsave): Likewise.
3908 (i387_collect_fsave): Likewise.
3909 (i387_supply_fxsave): Likewise.
3910 (i387_collect_fxsave): Likewise.
3911 (i387_supply_xsave): Likewise.
3912 (i387_collect_xsave): Likewise.
3913 * ia64-linux-nat.c (ia64_linux_fetch_registers): Likewise.
3914 (ia64_linux_store_registers): Likewise.
3915 * ia64-tdep.c (ia64_access_rse_reg): Likewise.
3916 (ia64_extract_return_value): Likewise.
3917 (ia64_store_return_value): Likewise.
3918 (find_func_descr): Likewise.
3919 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
3920 * inf-ptrace.c (inf_ptrace_fetch_registers): Likewise.
3921 (inf_ptrace_store_registers): Likewise.
3922 * infrun.c (use_displaced_stepping): Likewise.
3923 (displaced_step_prepare_throw): Likewise.
3924 (resume): Likewise.
3925 (proceed): Likewise.
3926 (do_target_wait): Likewise.
3927 (adjust_pc_after_break): Likewise.
3928 (handle_inferior_event_1): Likewise.
3929 (handle_signal_stop): Likewise.
3930 (save_infcall_suspend_state): Likewise.
3931 (restore_infcall_suspend_state): Likewise.
3932 * iq2000-tdep.c (iq2000_extract_return_value): Likewise.
3933 * jit.c (jit_frame_prev_register): Likewise.
3934 * linux-nat.c (save_stop_reason): Likewise.
3935 (linux_nat_wait_1): Likewise.
3936 (resume_stopped_resumed_lwps): Likewise.
3937 * linux-record.c (record_linux_sockaddr): Likewise.
3938 (record_linux_msghdr): Likewise.
3939 (record_linux_system_call): Likewise.
3940 * linux-tdep.c (linux_collect_thread_registers): Likewise.
3941 * lm32-tdep.c (lm32_extract_return_value): Likewise.
3942 (lm32_store_return_value): Likewise.
3943 * m32c-tdep.c (m32c_read_flg): Likewise.
3944 (m32c_pseudo_register_read): Likewise.
3945 (m32c_pseudo_register_write): Likewise.
3946 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Likewise.
3947 (m32r_linux_collect_gregset): Likewise.
3948 * m32r-tdep.c (m32r_store_return_value): Likewise.
3949 (m32r_extract_return_value): Likewise.
3950 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
3951 (m68kbsd_collect_fpregset): Likewise.
3952 * m68k-bsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
3953 * m68k-linux-nat.c (fetch_register): Likewise.
3954 (old_fetch_inferior_registers): Likewise.
3955 (old_store_inferior_registers): Likewise.
3956 (store_regs): Likewise.
3957 * m68k-tdep.c (m68k_svr4_extract_return_value): Likewise.
3958 (m68k_svr4_store_return_value): Likewise.
3959 * m88k-tdep.c (m88k_store_arguments): Likewise.
3960 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Likewise.
3961 (mi_cmd_data_write_register_values): Likewise.
3962 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers): Likewise.
3963 (mips_fbsd_store_inferior_registers): Likewise.
3964 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Likewise.
3965 (mips_fbsd_supply_gregs): Likewise.
3966 (mips_fbsd_collect_fpregs): Likewise.
3967 (mips_fbsd_collect_gregs): Likewise.
3968 (mips_fbsd_supply_fpregset): Likewise.
3969 (mips_fbsd_collect_fpregset): Likewise.
3970 (mips_fbsd_supply_gregset): Likewise.
3971 (mips_fbsd_collect_gregset): Likewise.
3972 * mips-linux-nat.c (supply_gregset): Likewise.
3973 (fill_gregset): Likewise.
3974 (supply_fpregset): Likewise.
3975 (fill_fpregset): Likewise.
3976 * mips-linux-tdep.c (mips_supply_gregset): Likewise.
3977 (mips_fill_gregset): Likewise.
3978 (mips_supply_fpregset): Likewise.
3979 (mips_fill_fpregset): Likewise.
3980 (mips64_supply_gregset): Likewise.
3981 (micromips_linux_sigframe_validate): Likewise.
3982 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
3983 (mipsnbsd_fetch_inferior_registers): Likewise.
3984 (mipsnbsd_store_inferior_registers): Likewise.
3985 * mips-nbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
3986 (mipsnbsd_supply_gregset): Likewise.
3987 (mipsnbsd_iterate_over_regset_sections): Likewise.
3988 (mipsnbsd_supply_reg): Likewise.
3989 (mipsnbsd_supply_fpreg): Likewise.
3990 * mips-tdep.c (mips_in_frame_stub): Likewise.
3991 (mips_dummy_id): Likewise.
3992 (is_octeon_bbit_op): Likewise.
3993 (micromips_bc1_pc): Likewise.
3994 (extended_mips16_next_pc): Likewise.
3995 (mips16_next_pc): Likewise.
3996 (deal_with_atomic_sequence): Likewise.
3997 * moxie-tdep.c (moxie_process_readu): Likewise.
3998 * nios2-tdep.c (nios2_get_next_pc): Likewise.
3999 * nto-procfs.c (procfs_store_registers): Likewise.
4000 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers): Likewise.
4001 (ppcfbsd_store_inferior_registers): Likewise.
4002 * ppc-linux-nat.c (fetch_vsx_register): Likewise.
4003 (fetch_altivec_register): Likewise.
4004 (get_spe_registers): Likewise.
4005 (fetch_spe_register): Likewise.
4006 (fetch_altivec_registers): Likewise.
4007 (fetch_all_gp_regs): Likewise.
4008 (fetch_all_fp_regs): Likewise.
4009 (store_vsx_register): Likewise.
4010 (store_altivec_register): Likewise.
4011 (set_spe_registers): Likewise.
4012 (store_spe_register): Likewise.
4013 (store_altivec_registers): Likewise.
4014 (store_all_gp_regs): Likewise.
4015 (store_all_fp_regs): Likewise.
4016 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
4017 (ppc_linux_collect_gregset): Likewise.
4018 (ppc_canonicalize_syscall): Likewise.
4019 (ppc_linux_record_signal): Likewise.
4020 (ppu2spu_prev_register): Likewise.
4021 * ppc-nbsd-nat.c (ppcnbsd_supply_pcb): Likewise.
4022 * ppc-obsd-nat.c (ppcobsd_fetch_registers): Likewise.
4023 (ppcobsd_store_registers): Likewise.
4024 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_fetch_registers):
4025 Likewise.
4026 (ppc_ravenscar_generic_store_registers): Likewise.
4027 * procfs.c (procfs_fetch_registers): Likewise.
4028 (procfs_store_registers): Likewise.
4029 * ravenscar-thread.c (ravenscar_fetch_registers): Likewise.
4030 (ravenscar_store_registers): Likewise.
4031 (ravenscar_prepare_to_store): Likewise.
4032 * record-btrace.c (record_btrace_fetch_registers): Likewise.
4033 * record-full.c (record_full_wait_1): Likewise.
4034 (record_full_registers_change): Likewise.
4035 (record_full_store_registers): Likewise.
4036 (record_full_core_fetch_registers): Likewise.
4037 (record_full_save): Likewise.
4038 (record_full_goto_insn): Likewise.
4039 * regcache.c (regcache_register_size): Likewise.
4040 (get_regcache_arch): Remove.
4041 (regcache_read_pc): Likewise.
4042 * regcache.h (get_regcache_arch): Remove.
4043 * remote-sim.c (gdbsim_fetch_register): Likewise.
4044 (gdbsim_store_register): Likewise.
4045 * remote.c (fetch_register_using_p): Likewise.
4046 (send_g_packet): Likewise.
4047 (remote_prepare_to_store): Likewise.
4048 (store_registers_using_G): Likewise.
4049 * reverse.c (save_bookmark_command): Likewise.
4050 (goto_bookmark_command): Likewise.
4051 * rs6000-aix-tdep.c (branch_dest): Likewise.
4052 * rs6000-nat.c (rs6000_ptrace64): Likewise.
4053 (fetch_register): Likewise.
4054 * rs6000-tdep.c (ppc_supply_reg): Likewise.
4055 (ppc_collect_reg): Likewise.
4056 (ppc_collect_gregset): Likewise.
4057 (ppc_collect_fpregset): Likewise.
4058 (ppc_collect_vsxregset): Likewise.
4059 (ppc_collect_vrregset): Likewise.
4060 (ppc_displaced_step_hw_singlestep): Likewise.
4061 (rs6000_pseudo_register_read): Likewise.
4062 (rs6000_pseudo_register_write): Likewise.
4063 * s390-linux-nat.c (supply_gregset): Likewise.
4064 (fill_gregset): Likewise.
4065 (s390_linux_fetch_inferior_registers): Likewise.
4066 * s390-linux-tdep.c (s390_write_pc): Likewise.
4067 (s390_software_single_step): Likewise.
4068 (s390_all_but_pc_registers_record): Likewise.
4069 (s390_linux_syscall_record): Likewise.
4070 * sentinel-frame.c (sentinel_frame_prev_arch): Likewise.
4071 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
4072 (shnbsd_store_inferior_registers): Likewise.
4073 * sh-tdep.c (sh_extract_return_value_nofpu): Likewise.
4074 (sh_extract_return_value_fpu): Likewise.
4075 (sh_store_return_value_nofpu): Likewise.
4076 (sh_corefile_supply_regset): Likewise.
4077 (sh_corefile_collect_regset): Likewise.
4078 * sh64-tdep.c (sh64_extract_return_value): Likewise.
4079 (sh64_store_return_value): Likewise.
4080 * sparc-linux-tdep.c (sparc32_linux_collect_core_fpregset): Likewise.
4081 * sparc-nat.c (sparc_fetch_inferior_registers): Likewise.
4082 (sparc_store_inferior_registers): Likewise.
4083 * sparc-ravenscar-thread.c (register_in_thread_descriptor_p): Likewise.
4084 (sparc_ravenscar_prepare_to_store): Likewise.
4085 * sparc-tdep.c (sparc32_store_arguments): Likewise.
4086 (sparc_analyze_control_transfer): Likewise.
4087 (sparc_step_trap): Likewise.
4088 (sparc_software_single_step): Likewise.
4089 (sparc32_gdbarch_init): Likewise.
4090 (sparc_supply_rwindow): Likewise.
4091 (sparc_collect_rwindow): Likewise.
4092 * sparc64-linux-tdep.c (sparc64_linux_collect_core_fpregset): Likewise.
4093 * sparc64-nbsd-nat.c (sparc64nbsd_supply_gregset): Likewise.
4094 (sparc64nbsd_collect_gregset): Likewise.
4095 (sparc64nbsd_supply_fpregset): Likewise.
4096 (sparc64nbsd_collect_fpregset): Likewise.
4097 * sparc64-tdep.c (sparc64_store_arguments): Likewise.
4098 (sparc64_supply_gregset): Likewise.
4099 (sparc64_collect_gregset): Likewise.
4100 (sparc64_supply_fpregset): Likewise.
4101 (sparc64_collect_fpregset): Likewise.
4102 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
4103 * spu-tdep.c (spu_unwind_sp): Likewise.
4104 (spu2ppu_prev_register): Likewise.
4105 (spu_memory_remove_breakpoint): Likewise.
4106 * stack.c (return_command): Likewise.
4107 * tic6x-tdep.c (tic6x_extract_signed_field): Likewise.
4108 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
4109 * tracefile.c (trace_save_ctf): Likewise.
4110 * windows-nat.c (do_windows_fetch_inferior_registers): Likewise.
4111 (do_windows_store_inferior_registers): Likewise.
4112 (windows_resume): Likewise.
4113 * xtensa-linux-nat.c (fill_gregset): Likewise.
4114 (supply_gregset_reg): Likewise.
4115 * xtensa-tdep.c (xtensa_register_write_masked): Likewise.
4116 (xtensa_register_read_masked): Likewise.
4117 (xtensa_supply_gregset): Likewise.
4118 (xtensa_extract_return_value): Likewise.
4119 (xtensa_store_return_value): Likewise.
4120
edd079d9
UW
41212017-10-25 Ulrich Weigand <uweigand@de.ibm.com>
4122
4123 * doublest.c (floatformat_from_string): New function.
4124 * doublest.h (floatformat_from_string): Add prototype.
4125
4126 * std-operator.def (OP_DOUBLE, OP_DECFLOAT): Remove, replace by ...
4127 (OP_FLOAT): ... this.
4128 * expression.h: Do not include "doublest.h".
4129 (union exp_element): Replace doubleconst and decfloatconst by
4130 new element floatconst.
4131 * ada-lang.c (resolve_subexp): Handle OP_FLOAT instead of OP_DOUBLE.
4132 (ada_evaluate_subexp): Likewise.
4133 * eval.c (evaluate_subexp_standard): Handle OP_FLOAT instead of
4134 OP_DOUBLE and OP_DECFLOAT.
4135 * expprint.c (print_subexp_standard): Likewise.
4136 (dump_subexp_body_standard): Likewise.
4137 * breakpoint.c (watchpoint_exp_is_const): Likewise.
4138
4139 * parse.c: Include "dfp.h".
4140 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
4141 (write_exp_elt_floatcst): New function.
4142 (operator_length_standard): Handle OP_FLOAT instead of OP_DOUBLE
4143 and OP_DECFLOAT.
4144 (operator_check_standard): Likewise.
4145 (parse_float): Do not accept suffix. Take type as input. Return bool.
4146 Return target format buffer instead of host DOUBLEST.
4147 Use floatformat_from_string and decimal_from_string to parse
4148 either binary or decimal floating-point types.
4149 (parse_c_float): Remove.
4150 * parser-defs.h: Do not include "doublest.h".
4151 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
4152 (write_exp_elt_floatcst): Add prototype.
4153 (parse_float): Update prototype.
4154 (parse_c_float): Remove.
4155
4156 * c-exp.y: Do not include "dfp.h".
4157 (typed_val_float): Use byte buffer instead of DOUBLEST.
4158 (typed_val_decfloat): Remove.
4159 (DECFLOAT): Remove.
4160 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4161 (parse_number): Update to new parse_float interface.
4162 Parse suffixes and determine type before calling parse_float.
4163 Handle decimal and binary FP types the same way.
4164
4165 * d-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
4166 (FLOAT_LITERAL): Use OP_FLOAT and write_exp_elt_floatcst.
4167 (parse_number): Update to new parse_float interface.
4168 Parse suffixes and determine type before calling parse_float.
4169
4170 * f-exp.y: Replace dval by typed_val_float.
4171 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4172 (parse_number): Use parse_float instead of atof.
4173
4174 * go-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
4175 (parse_go_float): Remove.
4176 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4177 (parse_number): Call parse_float instead of parse_go_float.
4178 Parse suffixes and determine type before calling parse_float.
4179
4180 * p-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
4181 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4182 (parse_number): Update to new parse_float interface.
4183 Parse suffixes and determine type before calling parse_float.
4184
4185 * m2-exp.y: Replace dval by byte buffer val.
4186 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4187 (parse_number): Call parse_float instead of atof.
4188
4189 * rust-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
4190 (lex_number): Call parse_float instead of strtod.
4191 (ast_dliteral): Use OP_FLOAT instead of OP_DOUBLE.
4192 (convert_ast_to_expression): Handle OP_FLOAT instead of OP_DOUBLE.
4193 Use write_exp_elt_floatcst.
4194 (unit_testing): Remove static variable.
4195 (rust_type): Do not check unit_testing.
4196 (rust_lex_tests): Do not set uint_testing. Set up dummy rust_parser.
4197
4198 * ada-exp.y (type_float, type_double): Remove.
4199 (typed_val_float): Use byte buffer instead of DOUBLEST.
4200 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4201 * ada-lex.l (processReal): Use parse_float instead of sscanf.
4202
cc628f3d
AH
42032017-10-25 Alan Hayward <alan.hayward@arm.com>
4204
4205 * aarch64-tdep.h (enum aarch64_regnum): Remove.
4206 * arch/aarch64.h: New file.
4207
09a7c6aa
UW
42082017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4209
4210 * dfp.h (decimal_from_string): Use const reference for argument.
4211 * dfp.c (decimal_from_string): Likewise.
4212
8ba0dd51
UW
42132017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4214
4215 * i387-tdep.c (print_i387_value): Use floatformat_to_string.
4216 * sh64-tdep.c (sh64_do_fp_register): Likewise.
4217 * mips-tdep.c (mips_print_fp_register): Likewise.
4218
16e812b2
UW
42192017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4220
4221 * common/format.h (enum argclass): Replace decfloat_arg by
4222 dec32float_arg, dec64float_arg, and dec128float_arg.
4223 * common/format.c (parse_format_string): Update to return
4224 new decimal float argument classes.
4225
4226 * printcmd.c (printf_decfloat): Rename to ...
4227 (printf_floating): ... this. Add argclass argument, and use it
4228 instead of parsing the format string again. Add support for
4229 binary floating-point values, using floatformat_to_string.
4230 Convert value to the target format if it doesn't already match.
4231 (ui_printf): Call printf_floating instead of printf_decfloat,
4232 also for double_arg / long_double_arg. Pass argclass.
4233
4234 * dfp.c (decimal_to_string): Add format string argument.
4235 * dfp.h (decimal_to_string): Likewise.
4236
4237 * doublest.c (floatformat_to_string): Add format string argument.
4238 * doublest.h (floatformat_to_string): Likewise.
4239
fdf0cbc2
UW
42402017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4241
4242 * doublest.c (floatformat_precision): New routine.
4243 (floatformat_to_string): Likewise.
4244 * doublest.c (floatformat_to_string): Add prototype.
4245
4246 * printcmd.c (print_scalar_formatted): Only call print_floating
4247 on floating-point types.
4248 * valprint.c: Do not include "floatformat.h".
4249 (generic_val_print_decfloat): Remove.
4250 (generic_val_print): Call generic_val_print_float for both
4251 TYPE_CODE_FLT and TYPE_CODE_DECFLOAT.
4252 (print_floating): Use floatformat_to_string. Handle decimal float.
4253 (print_decimal_floating): Remove, merge into floatformat_to_string.
4254 * value.h (print_decimal_floating): Remove.
4255
4256 * Makefile.in: Do not build doublest.c with -Wformat-nonliteral.
4257
5033013f
UW
42582017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4259
4260 * buildsym.c (end_symtab_get_static_block): Use std::stable_sort.
4261
a664f67e
SM
42622017-10-21 Simon Marchi <simon.marchi@ericsson.com>
4263
4264 * memattr.h: Don't include vec.h.
4265 (struct mem_attrib): Initialize fields.
4266 <unknown>: New static method.
4267 (struct mem_region): Add constructors, operator<, initialize
4268 fields.
4269 * memattr.c: Include algorithm.
4270 (default_mem_attrib, unknown_mem_attrib): Remove.
4271 (user_mem_region_list): New global.
4272 (target_mem_region_list, mem_region_list): Change type to
4273 std::vector<mem_region>.
4274 (mem_use_target): Now a function.
4275 (target_mem_regions_valid): Change type to bool.
4276 (mem_region_lessthan, mem_region_cmp, mem_region_init): Remove.
4277 (require_user_regions): Adjust.
4278 (require_target_regions): Adjust.
4279 (create_mem_region): Adjust.
4280 (lookup_mem_region): Adjust.
4281 (invalidate_target_mem_regions): Adjust.
4282 (mem_clear): Rename to...
4283 (user_mem_clear): ... this, and adjust.
4284 (mem_command): Adjust.
4285 (info_mem_command): Adjust.
4286 (mem_enable, enable_mem_command, mem_disable,
4287 disable_mem_command): Adjust.
4288 (mem_delete): Adjust.
4289 (delete_mem_command): Adjust.
4290 * memory-map.h (parse_memory_map): Return an std::vector.
4291 * memory-map.c (parse_memory_map): Likewise.
4292 (struct memory_map_parsing_data): Add constructor.
4293 <memory_map>: Point to std::vector.
4294 (memory_map_start_memory): Adjust.
4295 (memory_map_end_memory): Adjust.
4296 (memory_map_end_property): Adjust.
4297 (clear_result): Remove.
4298 * remote.c (remote_memory_map): Return an std::vector.
4299 * target-debug.h (target_debug_print_VEC_mem_region_s__p):
4300 Remove.
4301 (target_debug_print_mem_region_vector): New.
4302 * target-delegates.c: Regenerate.
4303 * target.h (mem_region_vector): New typedef.
4304 (to_memory_map): Return mem_region_vector.
4305 (target_memory_map): Return an std::vector.
4306 * target.c (target_memory_map): Return an std::vector.
4307 (flash_erase_command): Adjust.
4308
6e17c565
SM
43092017-10-21 Simon Marchi <simon.marchi@ericsson.com>
4310
4311 * memory-map.c (struct memory_map_parsing_data) <property_name>:
4312 Change type to std::string.
4313 (memory_map_start_property): Adjust.
4314 (memory_map_end_property): Adjust.
4315
cfba9872
SM
43162017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
4317
4318 * infrun.h: Include common/byte-vector.h.
4319 (struct displaced_step_closure): New struct.
4320 (struct buf_displaced_step_closure): New struct.
4321 * infrun.c (displaced_step_closure::~displaced_step_closure):
4322 Provide default implementation.
4323 (displaced_step_clear): Deallocate step closure with delete.
4324 * aarch64-tdep.c (displaced_step_closure): Rename to ...
4325 (aarch64_displaced_step_closure): ... this, extend
4326 displaced_step_closure.
4327 (aarch64_displaced_step_data) <dsc>: Change type to
4328 aarch64_displaced_step_closure.
4329 (aarch64_displaced_step_copy_insn): Adjust to type change, use
4330 unique_ptr.
4331 (aarch64_displaced_step_fixup): Add cast for displaced step
4332 closure.
4333 * amd64-tdep.c (displaced_step_closure): Rename to ...
4334 (amd64_displaced_step_closure): ... this, extend
4335 displaced_step_closure.
4336 <insn_buf>: Change type to std::vector<gdb_byte>.
4337 <max_len>: Remove.
4338 (fixup_riprel): Change type of DSC parameter, adjust to type
4339 change of insn_buf.
4340 (fixup_displaced_copy): Change type of DSC parameter.
4341 (amd64_displaced_step_copy_insn): Instantiate
4342 amd64_displaced_step_closure.
4343 (amd64_displaced_step_fixup): Add cast for closure type, adjust
4344 to type change of insn_buf.
4345 * arm-linux-tdep.c (arm_linux_cleanup_svc): Change type of
4346 parameter DSC.
4347 (arm_linux_copy_svc): Likewise.
4348 (cleanup_kernel_helper_return): Likewise.
4349 (arm_catch_kernel_helper_return): Likewise.
4350 (arm_linux_displaced_step_copy_insn): Instantiate
4351 arm_displaced_step_closure.
4352 * arm-tdep.c (arm_pc_is_thumb): Add cast for closure.
4353 (displaced_read_reg): Change type of parameter DSC.
4354 (branch_write_pc): Likewise.
4355 (load_write_pc): Likewise.
4356 (alu_write_pc): Likewise.
4357 (displaced_write_reg): Likewise.
4358 (arm_copy_unmodified): Likewise.
4359 (thumb_copy_unmodified_32bit): Likewise.
4360 (thumb_copy_unmodified_16bit): Likewise.
4361 (cleanup_preload): Likewise.
4362 (install_preload): Likewise.
4363 (arm_copy_preload): Likewise.
4364 (thumb2_copy_preload): Likewise.
4365 (install_preload_reg): Likewise.
4366 (arm_copy_preload_reg): Likewise.
4367 (cleanup_copro_load_store): Likewise.
4368 (install_copro_load_store): Likewise.
4369 (arm_copy_copro_load_store) Likewise.
4370 (thumb2_copy_copro_load_store): Likewise.
4371 (cleanup_branch): Likewise.
4372 (install_b_bl_blx): Likewise.
4373 (arm_copy_b_bl_blx): Likewise.
4374 (thumb2_copy_b_bl_blx): Likewise.
4375 (thumb_copy_b): Likewise.
4376 (install_bx_blx_reg): Likewise.
4377 (arm_copy_bx_blx_reg): Likewise.
4378 (thumb_copy_bx_blx_reg): Likewise.
4379 (cleanup_alu_imm): Likewise.
4380 (arm_copy_alu_imm): Likewise.
4381 (thumb2_copy_alu_imm): Likewise.
4382 (cleanup_alu_reg): Likewise.
4383 (install_alu_reg): Likewise.
4384 (arm_copy_alu_reg): Likewise.
4385 (thumb_copy_alu_reg): Likewise.
4386 (cleanup_alu_shifted_reg): Likewise.
4387 (install_alu_shifted_reg): Likewise.
4388 (arm_copy_alu_shifted_reg): Likewise.
4389 (cleanup_load): Likewise.
4390 (cleanup_store): Likewise.
4391 (arm_copy_extra_ld_st): Likewise.
4392 (install_load_store): Likewise.
4393 (thumb2_copy_load_literal): Likewise.
4394 (thumb2_copy_load_reg_imm): Likewise.
4395 (arm_copy_ldr_str_ldrb_strb): Likewise.
4396 (cleanup_block_load_all): Likewise.
4397 (cleanup_block_store_pc): Likewise.
4398 (cleanup_block_load_pc): Likewise.
4399 (arm_copy_block_xfer): Likewise.
4400 (thumb2_copy_block_xfer): Likewise.
4401 (cleanup_svc): Likewise.
4402 (install_svc): Likewise.
4403 (arm_copy_svc): Likewise.
4404 (thumb_copy_svc): Likewise.
4405 (arm_copy_undef): Likewise.
4406 (thumb_32bit_copy_undef): Likewise.
4407 (arm_copy_unpred): Likewise.
4408 (arm_decode_misc_memhint_neon): Likewise.
4409 (arm_decode_unconditional): Likewise.
4410 (arm_decode_miscellaneous): Likewise.
4411 (arm_decode_dp_misc): Likewise.
4412 (arm_decode_ld_st_word_ubyte): Likewise.
4413 (arm_decode_media): Likewise.
4414 (arm_decode_b_bl_ldmstm): Likewise.
4415 (arm_decode_ext_reg_ld_st): Likewise.
4416 (thumb2_decode_dp_shift_reg): Likewise.
4417 (thumb2_decode_ext_reg_ld_st): Likewise.
4418 (arm_decode_svc_copro): Likewise.
4419 (thumb2_decode_svc_copro): Likewise.
4420 (install_pc_relative): Likewise.
4421 (thumb_copy_pc_relative_16bit): Likewise.
4422 (thumb_decode_pc_relative_16bit): Likewise.
4423 (thumb_copy_pc_relative_32bit): Likewise.
4424 (thumb_copy_16bit_ldr_literal): Likewise.
4425 (thumb_copy_cbnz_cbz): Likewise.
4426 (thumb2_copy_table_branch): Likewise.
4427 (cleanup_pop_pc_16bit_all): Likewise.
4428 (thumb_copy_pop_pc_16bit): Likewise.
4429 (thumb_process_displaced_16bit_insn): Likewise.
4430 (decode_thumb_32bit_ld_mem_hints): Likewise.
4431 (thumb_process_displaced_32bit_insn): Likewise.
4432 (thumb_process_displaced_insn): Likewise.
4433 (arm_process_displaced_insn): Likewise.
4434 (arm_displaced_init_closure): Likewise.
4435 (arm_displaced_step_fixup): Add cast for closure.
4436 * arm-tdep.h: Include infrun.h.
4437 (displaced_step_closure): Rename to ...
4438 (arm_displaced_step_closure): ... this, extend
4439 displaced_step_closure.
4440 <u::svc::copy_svc_os>: Change type of parameter DSC.
4441 <cleanup>: Likewise.
4442 (arm_process_displaced_insn): Likewise.
4443 (arm_displaced_init_closure): Likewise.
4444 (displaced_read_reg): Likewise.
4445 (displaced_write_reg): Likewise.
4446 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
4447 Adjust.
4448 * i386-tdep.h: Include infrun.h.
4449 (i386_displaced_step_closure): New typedef.
4450 * i386-tdep.c (i386_displaced_step_copy_insn): Use
4451 i386_displaced_step_closure.
4452 (i386_displaced_step_fixup): Adjust.
4453 * rs6000-tdep.c (ppc_displaced_step_closure): New typedef.
4454 (ppc_displaced_step_copy_insn): Use ppc_displaced_step_closure
4455 and unique_ptr.
4456 (ppc_displaced_step_fixup): Adjust.
4457 * s390-linux-tdep.c (s390_displaced_step_closure): New typedef.
4458 (s390_displaced_step_copy_insn): Use s390_displaced_step_closure
4459 and unique_ptr.
4460 (s390_displaced_step_fixup): Adjust.
4461
b392b304
SM
44622017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
4463
4464 * interps.h (interp_resume, interp_suspend, interp_set_temp):
4465 Remove declarations.
4466
d5833c62
TT
44672017-10-20 Tom Tromey <tom@tromey.com>
4468
4469 * gdb_bfd.c (struct gdb_bfd_data) <included_bfds>: Now a
4470 std::vector.
4471 (gdb_bfd_record_inclusion): Update.
4472 (bfdp): Remove typedef.
4473
06d5bbc8
TT
44742017-10-20 Tom Tromey <tom@tromey.com>
4475
4476 * gdb_bfd.c (gdb_bfd_ref): Use new.
4477 (struct gdb_bfd_data): Add constructor, destructor, and member
4478 initializers.
4479 (gdb_bfd_unref): Use delete.
4480
2712ce2e
TT
44812017-10-20 Tom Tromey <tom@tromey.com>
4482
4483 * exec.c (exec_file_attach): Use new_bfd_ref.
4484 * symfile-mem.c (symbol_file_add_from_memory): Use new_bfd_ref.
4485 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
4486 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_fdopenr): Use
4487 new_bfd_ref.
4488 * gdb_bfd.h (new_bfd_ref): New function.
4489
fcc8fb2f
PA
44902017-10-20 Pedro Alves <palves@redhat.com>
4491
4492 * main.c (captured_command_loop): Add attribute noinline.
4493
4c2287b0
SM
44942017-10-19 Simon Marchi <simon.marchi@ericsson.com>
4495
4496 * interps.c (struct interp_factory): Add constructor.
4497 (interp_factory_p): Remove typedef.
4498 (DEF_VEC_P(interp_factory_p)): Remove.
4499 (interpreter_factories): Change type to std::vector.
4500 (interp_factory_register): Adjust.
4501 (interp_lookup): Adjust.
4502 (interpreter_completer): Adjust.
4503
3d415c26
TT
45042017-10-19 Tom Tromey <tom@tromey.com>
4505
4506 * break-catch-syscall.c (catch_syscall_completer): Use
4507 std::string, gdb::unique_xmalloc_ptr.
4508
395423c4
TT
45092017-10-19 Tom Tromey <tom@tromey.com>
4510
4511 * infcall.c (call_function_by_hand_dummy): Use std::string.
4512
54f70bc1
TT
45132017-10-19 Tom Tromey <tom@tromey.com>
4514
4515 * mi/mi-main.c (mi_cmd_execute): Update.
4516 * top.h (prepare_execute_command): Return scoped_value_mark.
4517 * value.h (class scoped_value_mark): Use DISABLE_COPY_AND_ASSIGN.
4518 Add move constructor.
4519 * top.c (prepare_execute_command): Return scoped_value_mark.
4520 (execute_command): Update.
4521
63929e84
PA
45222017-10-19 Pedro Alves <palves@redhat.com>
4523
4524 * xml-support.c (xml_fetch_content_from_file): Check fread's
4525 return.
4526
a75868f5
PA
45272017-10-19 Pedro Alves <palves@redhat.com>
4528
4529 * ser-base.c (ser_base_read_error_fd): Delete the file handler if
4530 async.
4531 (handle_error_fd): New function.
4532 (ser_base_async): Add/delete an event loop file handler for
4533 error_fd.
4534
2edf834e
PA
45352017-10-19 Pedro Alves <palves@redhat.com>
4536
4537 * xml-support.c (xml_fetch_content_from_file): Don't read in
4538 chunks. Instead use fseek to determine the file's size, and read
4539 it in one go.
4540
c8ba13ad
KS
45412017-11-18 Keith Seitz <keiths@redhat.com>
4542
4543 * c-exp.y (oper): Canonicalize conversion operators of user-defined
4544 types.
4545 Add whitespace to front of type name.
4546
37534686
KS
45472017-10-18 Keith Seitz <keiths@redhat.com>
4548
4549 * dwarf2read.c (dwarf2_add_typedef): Issue a complaint on unhandled
4550 DW_AT_accessibility.
4551
28c7c158
YQ
45522017-10-18 Yao Qi <yao.qi@linaro.org>
4553
4554 * features/tic6x-c62x-linux.c: Remove.
4555
30f0b101
TT
45562017-10-17 Tom Tromey <tom@tromey.com>
4557
4558 * disasm.c (do_mixed_source_and_assembly_deprecated): Use
4559 gdb::optional, ui_out_emit_list, ui_out_emit_tuple.
4560 (do_mixed_source_and_assembly): Likewise.
4561
57e12da9
TT
45622017-10-17 Tom Tromey <tom@tromey.com>
4563
4564 * regcache.c (regcache::xfer_part): Remove assertion.
4565
7b700999
PA
45662017-10-17 Pedro Alves <palves@redhat.com>
4567
4568 * xml-support.c (xml_fetch_content_from_file): Call
4569 unique_ptr::release() instead unique_ptr::get() when passing
4570 through xrealloc.
4571
d3037ba6
YQ
45722017-10-17 Yao Qi <yao.qi@linaro.org>
4573
4574 * regcache.c (regcache::xfer_part): Remove parameters read and
4575 write, add parameter is_raw. All callers are updated.
4576
83d5a34d
KS
45772017-10-16 Keith Seitz <keiths@redhat.com>
4578
4579 * c-typeprint.c (enum access_specifier): Moved here from
4580 c_type_print_base.
4581 (output_access_specifier): New function.
4582 (c_type_print_base): Consider typedefs when assessing
4583 whether access labels are needed.
4584 Use output_access_specifier as needed.
4585 Output access specifier for typedefs, if needed.
4586 * dwarf2read.c (dwarf2_add_typedef): Record DW_AT_accessibility.
4587 * gdbtypes.h (struct typedef_field) <is_protected, is_private>: New
4588 fields.
4589 (TYPE_TYPEDEF_FIELD_PROTECTED, TYPE_TYPEDEF_FIELD_PRIVATE): New
4590 accessor macros.
4591
87028b87
TT
45922017-10-16 Tom Tromey <tom@tromey.com>
4593
4594 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full)
4595 (linux_fill_prpsinfo, linux_vsyscall_range_raw): Update.
4596 * target.c (target_fileio_read_stralloc): Update.
4597 * sparc64-tdep.c (adi_is_addr_mapped): Update.
4598 * target.h (target_fileio_read_stralloc): Return
4599 unique_xmalloc_ptr.
4600
b7b030ad
TT
46012017-10-16 Tom Tromey <tom@tromey.com>
4602
4603 * xml-syscall.c (xml_init_syscalls_info): Update.
4604 * xml-support.c (xinclude_start_include): Update.
4605 (xml_fetch_content_from_file): Return unique_xmalloc_ptr.
4606 * xml-support.h (xml_fetch_another): Return unique_xmalloc_ptr.
4607 (xml_fetch_content_from_file): Likewise.
4608 * osdata.c (get_osdata): Update.
4609 * target.h (target_read_stralloc, target_get_osdata): Return
4610 unique_xmalloc_ptr.
4611 * solib-aix.c (solib_aix_get_library_list): Update.
4612 * solib-target.c (solib_target_current_sos): Update.
4613 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Update.
4614 * xml-tdesc.c (fetch_available_features_from_target): Update.
4615 (target_fetch_description_xml): Update.
4616 (file_read_description_xml): Update.
4617 * remote.c (remote_get_threads_with_qxfer, remote_memory_map)
4618 (remote_traceframe_info, btrace_read_config, remote_read_btrace)
4619 (remote_pid_to_exec_file): Update.
4620 * target.c (target_read_stralloc): Return unique_xmalloc_ptr.
4621 (target_get_osdata): Likewise.
4622
b80406ac
TT
46232017-10-16 Tom Tromey <tom@tromey.com>
4624
4625 * remote.c (remote_register_number_and_offset): Use std::vector.
4626 (remote_set_syscall_catchpoint): Use gdb::unique_xmalloc_ptr.
4627 (putpkt_binary): Use gdb::def_vector.
4628 (compare_sections_command): Use gdb::byte_vector.
4629
a90ecff8
TT
46302017-10-16 Tom Tromey <tom@tromey.com>
4631
4632 * ppc-linux-nat.c (hwdebug_insert_point): Use
4633 gdb::unique_xmalloc_ptr, XDUP.
4634
2dc0e219
TT
46352017-10-16 Tom Tromey <tom@tromey.com>
4636
4637 * probe.c (parse_probes): Use std::string.
4638 (info_probes_for_ops, enable_probes_command)
4639 (disable_probes_command): Remove cleanups.
4640
b05628f0
TT
46412017-10-16 Tom Tromey <tom@tromey.com>
4642
4643 * buildsym.c (block_compar): Remove.
4644 (end_symtab_get_static_block): Use std::vector.
4645
a79b1bc6
SM
46462017-10-16 Simon Marchi <simon.marchi@ericsson.com>
4647
4648 * memrange.h (struct mem_range): Define operator< and operator==.
4649 (mem_range_s): Remove.
4650 (DEF_VEC_O (mem_range_s)): Remove.
4651 (normalize_mem_ranges): Change parameter type to std::vector.
4652 * memrange.c (compare_mem_ranges): Remove.
4653 (normalize_mem_ranges): Change parameter type to std::vector,
4654 adjust to vector change.
4655 * exec.c (section_table_available_memory): Return vector, remove
4656 parameter.
4657 (section_table_read_available_memory): Adjust to std::vector
4658 change.
4659 * remote.c (remote_read_bytes): Adjust to std::vector
4660 change.
4661 * tracepoint.h (traceframe_available_memory): Change parameter
4662 type to std::vector.
4663 * tracepoint.c (traceframe_available_memory): Change parameter
4664 type to std::vector, adjust.
4665 * gdb/mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to
4666 std::vector change.
4667 * gdb/Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4668 unittests/memrange-selftests.c.
4669 (SUBDIR_UNITTESTS_OBS): Add memrange-selftests.o.
4670 * gdb/unittests/memrange-selftests.c: New file.
4671
63f0e930
PA
46722017-10-16 Pedro Alves <palves@redhat.com>
4673
4674 * elfread.c (probe_key_free): Rename range-for variable.
4675 * probe.c (parse_probes_in_pspace, find_probes_in_objfile)
4676 (find_probe_by_pc, collect_probes): Rename range-for variable.
4677
c40c7bfc
YQ
46782017-10-16 Yao Qi <yao.qi@linaro.org>
4679
4680 * features/Makefile (XMLTOC): Remove tic6x-*.xml.
4681 * features/tic6x-c62x.c: Remove.
4682 * features/tic6x-c64x-linux.c: Remove.
4683 * features/tic6x-c64x.c: Remove.
4684 * features/tic6x-c64xp-linux.c: Remove.
4685 * features/tic6x-c64xp.c: Remove.
4686 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Don't call
4687 initialize_tdesc_tic6x_*_linux functions.
4688 * tic6x-tdep.c (_initialize_tic6x_tdep): Don't call
4689 initialize_tdesc_tic6x_* functions.
4690
df27ae6a
YQ
46912017-10-16 Yao Qi <yao.qi@linaro.org>
4692
4693 * features/Makefile (WHICH): Remove tic6x-c64xp, tic6x-c64x
4694 tic6x-c62x.
4695 * regformats/tic6x-c62x.dat: Remove.
4696 * regformats/tic6x-c64x.dat: Remove.
4697 * regformats/tic6x-c64xp.dat: Remove.
4698
86766165
SM
46992017-10-15 Simon Marchi <simon.marchi@ericsson.com>
4700
4701 * tracepoint.c (parse_traceframe_info): Return a unique_ptr
4702 (the !HAVE_LIBEXPAT version).
4703
824dfcc3
SM
47042017-10-14 Simon Marchi <simon.marchi@ericsson.com>
4705
4706 * nat/linux-osdata.c (struct pid_pgid_entry) <operator<>: Make
4707 const.
4708
2098b393
SM
47092017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4710
4711 * target.h: Include tracepoint.h.
4712 (enum trace_find_type): Move to tracepoint.h.
4713 (struct target_ops) <to_traceframe_info>: Return a unique ptr.
4714 * tracepoint.h: Don't include target.h
4715 (enum trace_find_type): Move from target.h.
4716 (parse_traceframe_info): Return a unique ptr.
4717 * tracepoint.c (current_traceframe_info): Change type to unique
4718 ptr.
4719 (free_traceframe_info): Remove.
4720 (clear_traceframe_info): Don't manually free
4721 current_traceframe_info.
4722 (free_result): Remove.
4723 (parse_traceframe_info): Return a unique ptr.
4724 (get_traceframe_info): Adjust to unique ptr.
4725 * ctf.c (ctf_traceframe_info): Return a unique ptr.
4726 * remote.c (remote_traceframe_info): Return a unique ptr.
4727 * tracefile-tfile.c (tfile_traceframe_info): Return a unique
4728 ptr.
4729 * target-debug.h (target_debug_print_traceframe_info_up): New
4730 macro.
4731 * target-delegates.c: Regenerate.
4732
4cdd21a8
SM
47332017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4734
4735 * memrange.h (struct mem_range): Add constructors.
4736 * tracepoint.h (struct traceframe_info) <memory>: Change type to
4737 std::vector<mem_range>.
4738 * tracepoint.c (free_traceframe_info): Don't manually free
4739 vector.
4740 (traceframe_info_start_memory): Adjust to vector change.
4741 (traceframe_available_memory): Likewise.
4742 * tracefile-tfile.c (build_traceframe_info): Likewise.
4743 * ctf.c (ctf_traceframe_info): Likewise.
4744
d0d292a2
SM
47452017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4746
4747 * tracepoint.h (struct traceframe_info) <tvars>: Change type to
4748 std::vector<int>.
4749 * tracepoint.c (free_traceframe_info): Deallocate with delete.
4750 (traceframe_info_start_tvar): Adjust to vector change.
4751 (parse_traceframe_info): Allocate with new.
4752 * ctf.c (ctf_traceframe_info): Allocate with new, adjust to
4753 vector change.
4754 * tracefile-tfile.c (build_traceframe_info): Adjust to vector
4755 change.
4756 tfile_traceframe_info): Allocate with new.
4757 * mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to vector
4758 change.
4759
8d3c73ef
SM
47602017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4761
4762 * tracepoint.c (traceframe_info): Rename to...
4763 (current_traceframe_info): ...this.
4764 (clear_traceframe_info): Adjust.
4765 (get_traceframe_info): Adjust.
4766
b129dcac
SM
47672017-10-14 Simon Marchi <simon.marchi@ericsson.com>
4768
4769 * nat/linux-osdata.c: Include algorithm.
4770 (compare_processes): Remove.
4771 (struct pid_pgid_entry): New struct.
4772 (linux_xfer_osdata_processgroups): Use std::vector instead of
4773 XNEWVEC.
4774
af5bf4ad
SM
47752017-10-14 Simon Marchi <simon.marchi@ericsson.com>
4776
4777 * objfiles.h: Don't include symfile.h.
4778 (struct partial_symbol): Remove forward-declaration.
4779 (struct objfile) <global_psymbols, static_psymbols>: Change type
4780 to std::vector<partial_symbol *>.
4781 * objfiles.c (objfile::objfile): Don't memset those fields.
4782 (objfile::~objfile): Don't free those fields.
4783 * psympriv.h (struct psymbol_allocation_list): Remove
4784 forward-declaration.
4785 (add_psymbol_to_list): Change psymbol_allocation_list parameter
4786 to std::vector.
4787 (start_psymtab_common): Change parameters to std::vector.
4788 * psymtab.c: Include algorithm.
4789 (require_partial_symbols): Call shrink_to_fit.
4790 (find_pc_sect_psymbol): Adjust to vector change.
4791 (match_partial_symbol): Likewise.
4792 (lookup_partial_symbol): Likewise.
4793 (psym_relocate): Likewise.
4794 (dump_psymtab): Likewise.
4795 (recursively_search_psymtabs): Likewise.
4796 (compare_psymbols): Remove.
4797 (sort_pst_symbols): Adjust to vector change.
4798 (start_psymtab_common): Likewise.
4799 (end_psymtab_common): Likewise.
4800 (psymbol_bcache_full): De-constify return value.
4801 (add_psymbol_to_bcache): Likewise.
4802 (extend_psymbol_list): Remove.
4803 (append_psymbol_to_list): Adjust to vector change.
4804 (add_psymbol_to_list): Likewise.
4805 (init_psymbol_list): Likewise.
4806 (maintenance_info_psymtabs): Likewise.
4807 (maintenance_check_psymtabs): Likewise.
4808 * symfile.h (struct psymbol_allocation_list): Remove.
4809 * symfile.c (reread_symbols): Adjust to vector change.
4810 * dbxread.c (start_psymtab): Change type of parameters.
4811 (dbx_symfile_read): Adjust to vector change.
4812 (read_dbx_symtab): Likewise.
4813 (start_psymtab): Change type of parameters.
4814 * dwarf2read.c (dwarf2_build_psymtabs): Adjust to vector change.
4815 (create_partial_symtab): Likewise.
4816 (add_partial_symbol): Likewise.
4817 (write_one_signatured_type): Likewise.
4818 (recursively_write_psymbols): Likewise.
4819 * mdebugread.c (parse_partial_symbols): Likewise.
4820 * xcoffread.c (xcoff_start_psymtab): Change type of parameters.
4821 (scan_xcoff_symtab): Adjust to vector change.
4822 (xcoff_initial_scan): Likewise.
4823
3ec5942f
SM
48242017-10-13 Simon Marchi <simon.marchi@ericsson.com>
4825
4826 * ada-typeprint.c (print_dynamic_range_bound): Use std::string.
4827
2399fe6a
YQ
48282017-10-13 Yao Qi <yao.qi@linaro.org>
4829
4830 * features/Makefile: Remove tic6x-*-expedite, add tic6x-expedite.
4831 Remove s390x-*-expedite, add s390x-expedite.
4832
4bf3f4a8
YQ
48332017-10-13 Yao Qi <yao.qi@linaro.org>
4834
4835 * features/s390-gs-linux64.c: Regenerated.
4836 * features/s390x-gs-linux64.c: Regenerated.
4837
9e86da07
TT
48382017-10-13 Tom Tromey <tom@tromey.com>
4839
4840 * compile/compile-object-run.c (do_module_cleanup): Use delete.
4841 * solib.c (update_solib_list, reload_shared_libraries_1): Use
4842 delete.
4843 * symfile.c (symbol_file_add_with_addrs): Use new.
4844 (symbol_file_add_separate): Update comment.
4845 (syms_from_objfile_1, remove_symbol_file_command): Use delete.
4846 * jit.c (jit_object_close_impl): Use new.
4847 (jit_unregister_code): Use delete.
4848 * objfiles.c (objfile::objfile): Rename from allocate_objfile.
4849 (~objfile): Rename from free_objfile.
4850 (free_objfile_separate_debug, do_free_objfile_cleanup)
4851 (free_all_objfiles, objfile_purge_solibs): Use delete.
4852 * objfiles.h (struct objfile): Add constructor and destructor.
4853 Use DISABLE_COPY_AND_ASSIGN. Add initializers to data members.
4854 (allocate_objfile, free_objfile): Don't declare.
4855 (struct objstats): Add initializers.
4856
c2508e90
SM
48572017-10-12 Simon Marchi <simon.marchi@ericsson.com>
4858
4859 * arch-utils.h (simple_displaced_step_copy_insn): Remove.
4860 * arch-utils.c (simple_displaced_step_copy_insn): Remove.
4861 * gdbarch.sh (displaced_step_copy_insn): Adjust comment.
4862 * gdbarch.h: Regenerate.
4863 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
4864 Adjust comment.
4865 * i386-tdep.c (i386_displaced_step_copy_insn): Adjust comment.
4866 (i386_displaced_step_fixup): Adjust comment.
4867 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Adjust comment.
4868
a900ff72
TT
48692017-10-12 Tom Tromey <tom@tromey.com>
4870
4871 * prologue-value.h (pv_area::store_would_trash): Return bool.
4872 (pv_area::find_reg): Likewise.
4873 * prologue-value.c (pv_area::store_would_trash): Return bool.
4874 (pv_area::find_reg): Likewise.
4875
f7b7ed97
TT
48762017-10-12 Tom Tromey <tom@tromey.com>
4877
4878 * s390-linux-tdep.c (s390_store, s390_load)
4879 (s390_check_for_saved, s390_analyze_prologue): Update.
4880 * rx-tdep.c (check_for_saved, rx_analyze_prologue): Update.
4881 * rl78-tdep.c (rl78_analyze_prologue, check_for_saved): Update.
4882 * prologue-value.h (class pv_area): Move from prologue-value.c.
4883 Change names of members. Add constructor, destructor, member
4884 functions.
4885 (make_pv_area, free_pv_area, make_cleanup_free_pv_area)
4886 (pv_area_store, pv_area_fetch, pv_area_store_would_trash)
4887 (pv_area_fetch, pv_area_scan): Don't declare.
4888 * prologue-value.c (struct pv_area::area_entry): Now member of
4889 pv_area.
4890 (struct pv_area): Move to prologue-value.h.
4891 (pv_area::pv_area): Rename from make_pv_area.
4892 (pv_area::~pv_area): Rename from free_pv_area.
4893 (do_free_pv_area_cleanup, make_cleanup_free_pv_area): Remove.
4894 (clear_entries, find_entry, overlaps, store_would_trash, store)
4895 (fetch, find_reg, scan): Now member of pv_area.
4896 Remove "area" argument. Update.
4897 * msp430-tdep.c (check_for_saved, msp430_analyze_prologue):
4898 Update.
4899 * mn10300-tdep.c (push_reg, check_for_saved)
4900 (mn10300_analyze_prologue): Update.
4901 * mep-tdep.c (is_arg_spill, check_for_saved)
4902 (mep_analyze_prologue): Update.
4903 * m32c-tdep.c (m32c_pv_push, m32c_srcdest_fetch)
4904 (m32c_srcdest_store, m32c_pv_enter, m32c_is_arg_spill)
4905 (m32c_is_struct_return, m32c_analyze_prologue): Update.
4906 * arm-tdep.c (thumb_analyze_prologue, arm_analyze_prologue):
4907 Update.
4908 * arc-tdep.c (arc_is_in_prologue, arc_analyze_prologue): Update.
4909 * aarch64-tdep.c (aarch64_analyze_prologue): Update.
4910
466eecee
SM
49112017-10-12 Simon Marchi <simon.marchi@ericsson.com>
4912
4913 * linux-nat.h (linux_nat_set_delete_thread): New declaration.
4914 * linux-nat.c (linux_nat_delete_thread): New variable.
4915 (lwp_free): Invoke linux_nat_delete_thread if set.
4916 (linux_nat_set_delete_thread): New function.
4917 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Assign
4918 thread delete callback.
4919 * arm-linux-nat.c (arm_linux_delete_thread): New function.
4920 (_initialize_arm_linux_nat): Assign thread delete callback.
4921 * s390-linux-nat.c (s390_delete_thread): New function.
4922 (_initialize_s390_nat): Assign thread delete callback.
4923 * x86-linux-nat.c (x86_linux_add_target): Likewise.
4924 * nat/aarch64-linux.c (aarch64_linux_delete_thread): New
4925 function.
4926 * nat/aarch64-linux.h (aarch64_linux_delete_thread): New
4927 declaration.
4928 * nat/x86-linux.c (x86_linux_delete_thread): New function.
4929 * nat/x86-linux.h (x86_linux_delete_thread): New declaration.
4930
f71c8822
TT
49312017-10-09 Tom Tromey <tom@tromey.com>
4932
4933 * tui/tui-win.c (tui_set_win_height, parse_scrolling_args): Use
4934 std::string.
4935 * tui/tui-layout.c (enum tui_status): Use std::string.
4936
981a3fb3
TT
49372017-10-11 Tom Tromey <tom@tromey.com>
4938
4939 * gdbthread.h (thread_command): Constify.
4940 * inferior.h (detach_command): Constify.
4941 * top.h (set_history, show_history): Constify.
4942 * arm-tdep.c (set_arm_command, show_arm_command): Constify.
4943 * serial.c (serial_set_cmd, serial_show_cmd): Constify.
4944 * bsd-kvm.c (bsd_kvm_cmd): Constify.
4945 * printcmd.c (set_command): Constify.
4946 (non_const_set_command): New function.
4947 * dcache.c (set_dcache_command, show_dcache_command): Constify.
4948 * breakpoint.c (enable_command, disable_command, delete_command)
4949 (catch_command, tcatch_command, set_breakpoint_cmd)
4950 (show_breakpoint_cmd): Constify.
4951 * macrocmd.c (macro_command): Constify.
4952 * infcmd.c (unset_command, kill_command, detach_command)
4953 (info_proc_cmd): Constify.
4954 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Constify.
4955 * auto-load.c (show_auto_load_cmd, set_auto_load_cmd)
4956 (info_auto_load_cmd): Constify.
4957 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
4958 (unset_tdesc_cmd): Constify.
4959 * ada-lang.c (set_ada_command, show_ada_command)
4960 (maint_set_ada_cmd, maint_show_ada_cmd): Constify.
4961 * guile/guile.c (set_guile_command, show_guile_command)
4962 (info_guile_command): Constify.
4963 * tui/tui-win.c (tui_command, set_tui_cmd, show_tui_cmd):
4964 Constify.
4965 * skip.c (skip_command): Constify.
4966 * compile/compile.c (_initialize_compile): Constify.
4967 * dwarf2read.c (set_dwarf_cmd, show_dwarf_cmd): Constify.
4968 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
4969 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
4970 (maint_btrace_pt_show_cmd): Constify.
4971 * remote.c (set_remote_cmd, show_remote_cmd, remote_command):
4972 Constify.
4973 * python/python.c (user_show_python, user_set_python): Constify.
4974 * mips-tdep.c (set_mips_command, show_mips_command)
4975 (set_mipsfpu_command): Constify.
4976 * record-btrace.c (cmd_record_btrace_start)
4977 (cmd_set_record_btrace, cmd_show_record_btrace)
4978 (cmd_set_record_btrace_bts, cmd_show_record_btrace_bts)
4979 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): Constify.
4980 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command):
4981 Constify.
4982 * symfile.c (overlay_command): Constify.
4983 * spu-tdep.c (set_spu_command, show_spu_command): Constify.
4984 * cli/cli-logging.c (set_logging_command, show_logging_command):
4985 Constify.
4986 * cli/cli-dump.c (dump_command, append_command)
4987 (srec_dump_command, ihex_dump_command, verilog_dump_command)
4988 (tekhex_dump_command, binary_dump_command)
4989 (binary_append_command): Constify.
4990 * cli/cli-decode.c (struct cmd_list_element): Change type of
4991 "fun".
4992 * cli/cli-cmds.c (info_command, show_command, set_debug)
4993 (show_debug): Constify.
4994 (show_command): Add non-const overload.
4995 * top.c (set_history, show_history): Constify.
4996 * sh-tdep.c (set_sh_command, show_sh_command): Constify.
4997 * command.h (add_prefix_cmd): Accept a cmd_const_cfunc_ftype.
4998 * target.c (target_command): Constify.
4999 * sparc64-tdep.c (info_adi_command): Constify.
5000 * record-full.c (cmd_record_full_start): Constify.
5001 (set_record_full_command): Constify. Fix typo.
5002 (show_record_full_command): Constify.
5003 * thread.c (thread_command, thread_apply_command): Constify.
5004 * memattr.c (dummy_cmd): Constify.
5005 * value.c (function_command): Constify.
5006 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Constify.
5007 * probe.c (info_probes_command): Constify.
5008 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Constify.
5009 * gnu-nat.c (set_task_cmd, show_task_cmd, set_thread_cmd)
5010 (show_thread_cmd, set_thread_default_cmd)
5011 (show_thread_default_cmd): Constify.
5012 (check_empty): Constify.
5013 * tracepoint.c (tfind_command): Constify.
5014 * cp-support.c (maint_cplus_command): Constify.
5015 * windows-tdep.c (info_w32_command): Constify.
5016 * record.c (cmd_record_start, set_record_command)
5017 (show_record_command, info_record_command, cmd_record_goto):
5018 Constify.
5019 * ravenscar-thread.c (set_ravenscar_command)
5020 (show_ravenscar_command): Constify.
5021 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5022 Constify.
5023 (add_internal_problem_command): Remove casts.
5024 * arc-tdep.c (maintenance_print_arc_command): Constify.
5025 * valprint.c (set_print, show_print, set_print_raw)
5026 (show_print_raw): Constify.
5027 * maint.c (maintenance_command, maintenance_info_command)
5028 (maintenance_print_command, maintenance_set_cmd)
5029 (maintenance_show_cmd, set_per_command_cmd)
5030 (show_per_command_cmd, maintenance_check_command): Constify.
5031 * language.c (set_check, show_check): Constify.
5032 * typeprint.c (show_print_type, set_print_type): Constify.
5033 * go32-nat.c (go32_info_dos_command): Constify.
5034
fdf44873
TT
50352017-10-11 Tom Tromey <tom@tromey.com>
5036
5037 * breakpoint.c (prepare_re_set_context): Remove.
5038 (breakpoint_re_set_one): Update. Don't use cleanups.
5039 (breakpoint_re_set): Use scoped_restore, std::string, and
5040 scoped_restore_current_language.
5041
81b1e71c
TT
50422017-10-11 Tom Tromey <tom@tromey.com>
5043
5044 * breakpoint.c (commands_command_1): Use std::string.
5045 (cleanup_executing_breakpoints): Remove.
5046 (bpstat_do_actions_1): Use scoped_restore.
5047 (bpstat_check_watchpoint): Use std::string.
5048 (decode_static_tracepoint_spec): Likewise.
5049 (break_range_command): Likewise.
5050 (watch_command_1): Likewise.
5051 (compare_breakpoints): Change argument types.
5052 (clear_command): Use std::vector.
5053 (cleanup_executing_breakpoints): Remove.
5054 (update_global_location_list): Use unique_xmalloc_ptr.
5055 (strace_command): Remove unused declaration.
5056
4f9d9906
JB
50572017-10-11 John Baldwin <jhb@FreeBSD.org>
5058
5059 * Makefile.in (ALLDEPFILES): Add arm-fbsd-nat.c.
5060 * NEWS: Mention new FreeBSD/arm native configuration.
5061 * configure.host: Add arm*-*-freebsd*.
5062 * configure.nat: Likewise.
5063 * arm-fbsd-nat.c: New file.
5064
7176dfd2
JB
50652017-10-11 John Baldwin <jhb@FreeBSD.org>
5066
5067 * Makefile.in (ALL_TARGET_OBS): Add arm-fbsd-tdep.o.
5068 (ALLDEPFILES): Add arm-fbsd-tdep.c.
5069 * NEWS: Mention new FreeBSD/arm target.
5070 * configure.tgt: Add arm*-*-freebsd*.
5071 * arm-fbsd-tdep.c: New file.
5072 * arm-fbsd-tdep.h: New file.
5073
fe220226
MR
50742017-10-11 Maciej W. Rozycki <macro@imgtec.com>
5075
5076 * linux-tdep.c (linux_make_corefile_notes): Remove call to
5077 `gdbarch_elfcore_write_linux_prpsinfo'.
5078 * gdbarch.sh (elfcore_write_linux_prpsinfo): Remove architecture
5079 method.
5080 (elf_internal_linux_prpsinfo): Remove declaration.
5081 * gdbarch.h: Regenerate.
5082 * gdbarch.c: Regenerate.
5083
a2f63b2e
MR
50842017-10-11 Maciej W. Rozycki <macro@imgtec.com>
5085
5086 * ppc-linux-tdep.c (ppc_linux_init_abi): Remove call to
5087 `set_gdbarch_elfcore_write_linux_prpsinfo'.
5088
458ca1d0
PA
50892017-10-11 Pedro Alves <palves@redhat.com>
5090
5091 * breakpoint.c (reattach_breakpoints): Delete.
5092 * breakpoint.h (reattach_breakpoints): Delete.
5093
905014d7
SM
50942017-10-11 Simon Marchi <simon.marchi@ericsson.com>
5095
5096 * symfile.c (registered_sym_fns): Make struct, not typedef.
5097 (DEF_VEC_O (registered_sym_fns)): Remove.
5098 (symtab_fns): Change type to std::vector.
5099 (add_symtab_fns): Adjust.
5100 (find_sym_fns): Adjust.
5101
56d704da
AK
51022017-10-11 Anton Kolesov <Anton.Kolesov@synopsys.com>
5103
5104 * arc-tdep.c (arc_gdbarch_init): Pass proper cpu value to disassembler.
5105 * arc-tdep.h (arc_arch_is_em): New function.
5106 (arc_arch_is_hs): Likewise.
5107
7fa29be9
EB
51082017-10-11 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com>
5109
5110 * macrotab.h (macro_lookup_inclusion): Remove unnecessary
5111 parentheses in the declaration.
5112 (macro_lookup_inclusion): Likewise.
5113 (macro_lookup_definition): Likewise.
5114 * p-lang.h (pascal_builtin_types): Likewise.
5115 * tui/tui-data.c (tui_win_list): Likewise.
5116 * tui/tui-data.h (tui_win_list): Likewise.
5117 * utils.h (make_cleanup_free_section_addr_info): Likewise.
5118
d9b477e3
KB
51192017-10-11 Mark Rages <markrages@gmail.com>
5120
5121 * target-memory.c (block_boundaries): Fix for block address not
5122 aligned on block size.
5123
65630365
PA
51242017-10-10 Pedro Alves <palves@redhat.com>
5125 Tom Tromey <tom@tromey.com>
5126
5127 * breakpoint.c (struct captured_breakpoint_query_args)
5128 (do_captured_breakpoint_query, gdb_breakpoint_query): Delete.
5129 (print_breakpoint): New.
5130 * breakpoint.h (print_breakpoint): Declare.
5131 * common/common-exceptions.h (enum return_reason): Remove
5132 references to catch_exceptions.
5133 * exceptions.c (catch_exceptions, catch_exceptions_with_msg):
5134 Delete.
5135 * exceptions.h (catch_exceptions_ftype, catch_exceptions)
5136 (catch_exception_ftype, catch_exceptions_with_msg): Delete.
5137 * gdb.h: Delete.
5138 * gdbthread.h (thread_select): Declare.
5139 * mi/mi-cmd-break.c: Don't include gdb.h.
5140 (breakpoint_notify): Use print_breakpoint.
5141 * mi/mi-cmd-catch.c: Don't include gdb.h.
5142 * mi/mi-interp.c: Don't include gdb.h.
5143 (mi_print_breakpoint_for_event): New.
5144 (mi_breakpoint_created, mi_breakpoint_modified): Use
5145 mi_print_breakpoint_for_event.
5146 * mi/mi-main.c: Don't include gdb.h.
5147 (mi_cmd_thread_select): Parse the global thread ID here. Use
5148 thread_select instead of gdb_thread_select.
5149 (mi_cmd_thread_list_ids): Output "thread-ids" tuple here instead
5150 of using gdb_list_thread_ids.
5151 * remote-fileio.c (do_remote_fileio_request): Change type. Reply
5152 FILEIO_ENOSYS here.
5153 (remote_fileio_request): Use TRY/CATCH instead of
5154 catch_exceptions.
5155 * symfile-mem.c (struct symbol_file_add_from_memory_args)
5156 (symbol_file_add_from_memory_wrapper): Delete.
5157 (add_vsyscall_page): Use TRY/CATCH instead of catch_exceptions.
5158 * thread.c: Don't include gdb.h.
5159 (do_captured_list_thread_ids, gdb_list_thread_ids): Delete.
5160 (thread_alive): Use thread_select.
5161 (do_captured_thread_select): Delete, parts salvaged as ...
5162 (thread_select): ... this new function.
5163 (gdb_thread_select): Delete.
5164
bf469271
PA
51652017-10-10 Pedro Alves <palves@redhat.com>
5166 Tom Tromey <tom@tromey.com>
5167
5168 * breakpoint.c (breakpoint_cond_eval): Change return type to bool
5169 and reverse logic.
5170 (WP_DELETED, WP_VALUE_CHANGED, WP_VALUE_NOT_CHANGED, WP_IGNORE):
5171 No longer macros. Instead ...
5172 (enum wp_check_result): They're now values of this new
5173 enumeration.
5174 (watchpoint_check): Change return type to wp_check_result and
5175 parameter type to bpstat.
5176 (bpstat_check_watchpoint): Use TRY/CATCH instead of catch_errors.
5177 (bpstat_check_breakpoint_conditions): Use TRY/CATCH instead of
5178 catch_errors. Reverse logic of watchpoint_check call.
5179 (breakpoint_re_set_one): Now returns void and takes a breakpoint
5180 pointer as parameter.
5181 (breakpoint_re_set): Use TRY/CATCH instead of catch_errors.
5182 * common/common-exceptions.c (throw_exception_sjlj): Update
5183 comments to avoid mentioning catch_errors.
5184 * exceptions.c (catch_errors): Delete.
5185 * exceptions.h: Update comments to avoid mentioning catch_errors.
5186 (catch_errors_ftype, catch_errors): Delete.
5187 * infrun.c (normal_stop): Use TRY/CATCH instead of catch_errors.
5188 (hook_stop_stub): Delete.
5189 (restore_selected_frame): Change return type to void, and
5190 parameter type to const frame_id &.
5191 (restore_infcall_control_state): Use TRY/CATCH instead of
5192 catch_errors.
5193 * main.c (captured_command_loop): Return void and remove
5194 parameter. Remove references to catch_errors.
5195 (captured_main): Use TRY/CATCH instead of catch_errors.
5196 * objc-lang.c (objc_submethod_helper_data)
5197 (find_objc_msgcall_submethod_helper): Delete.
5198 (find_objc_msgcall_submethod): Use TRY/CATCH instead of
5199 catch_errors.
5200 * record-full.c (record_full_message): Return void.
5201 (record_full_message_args, record_full_message_wrapper): Delete.
5202 (record_full_message_wrapper_safe): Return bool and use TRY/CATCH
5203 instead of catch_errors.
5204 * solib-aix.c (solib_aix_open_symbol_file_object): Change
5205 parameter type to int.
5206 * solib-darwin.c (open_symbol_file_object): Ditto.
5207 * solib-dsbt.c (open_symbol_file_object): Ditto.
5208 * solib-frv.c (open_symbol_file_object): Ditto.
5209 * solib-svr4.c (open_symbol_file_object): Ditto.
5210 * solib-target.c (solib_target_open_symbol_file_object): Ditto.
5211 * solib.c (update_solib_list): Use TRY/CATCH instead of
5212 catch_errors.
5213 * solist.h (struct target_so_ops) <open_symbol_file_object>:
5214 Change type.
5215 * symmisc.c (struct print_symbol_args): Remove.
5216 (dump_symtab_1): Use TRY/CATCH instead of catch_errors.
5217 (print_symbol): Change type.
5218 * windows-nat.c (handle_load_dll, handle_unload_dll): Return void
5219 and remove parameters.
5220 (catch_errors): New.
5221 (get_windows_debug_event): Adjust.
5222
1a56bfa5
TT
52232017-10-09 Tom Tromey <tom@tromey.com>
5224
5225 * mi/mi-main.c (free_splay_tree): Remove.
5226 (list_available_thread_groups): Use splay_tree_up.
5227 * common/gdb_splay_tree.h: New file.
5228
0c478e2d
TT
52292017-10-09 Tom Tromey <tom@tromey.com>
5230
5231 * mi/mi-main.c (do_nothing): Remove.
5232 (list_available_thread_groups): Update.
5233
cbd2b4e3
PA
52342017-10-09 Pedro Alves <palves@redhat.com>
5235
5236 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>: Skip
5237 reading registers when switching context.
5238
a181c0bf
JB
52392017-10-09 John Baldwin <jhb@FreeBSD.org>
5240
5241 * fbsd-nat.c (fbsd_siginfo_size): Use gdbarch_long_bit.
5242 (fbsd_convert_siginfo): Likewise.
5243 * fbsd-tdep.c (fbsd_core_xfer_siginfo): Likewise.
5244
6e66f753
SM
52452017-10-09 Simon Marchi <simon.marchi@polymtl.ca>
5246
5247 * configure.ac (try_guile_versions): Remove guile-2.2.
5248 * configure: Regenerate.
5249
890e9790
TT
52502017-10-09 Tom Tromey <tom@tromey.com>
5251
5252 * Makefile.in (COMPILE.post, POSTCOMPILE): Restore $(basename).
5253 (COMPILE.pre): Use $(CXX).
5254
109483d9
PA
52552017-10-09 Pedro Alves <palves@redhat.com>
5256
5257 * cp-support.c (cp_remove_params): Return a gdb::unique_xmalloc_ptr.
5258 Use bool.
5259 (overload_list_add_symbol): Adjust to use gdb::unique_xmalloc_ptr.
5260 * cp-support.h (cp_remove_params): Now returns a
5261 gdb::unique_xmalloc_ptr.
5262 * dwarf2read.c (find_slot_in_mapped_hash): Now returns bool.
5263 Adjust to cp_remove_params returning a gdb::unique_xmalloc_ptr.
5264 * psymtab.c (psymtab_search_name): Adjust to cp_remove_params
5265 returning a gdb::unique_xmalloc_ptr.
5266 (lookup_partial_symbol): Adjust to use gdb::unique_xmalloc_ptr.
5267 * stack.c (find_frame_funname): Adjust to cp_remove_params
5268 returning a gdb::unique_xmalloc_ptr.
5269
791afaa2
TT
52702017-10-08 Tom Tromey <tom@tromey.com>
5271
5272 * dwarf2read.c (dwarf2_get_dwz_file): Use
5273 gdb::unique_xmalloc_ptr.
5274 (find_slot_in_mapped_hash): Likewise.
5275 (dwarf2_physname): Likewise.
5276 (create_dwo_unit_in_dwp_v1): Use std::string.
5277 (create_dwo_unit_in_dwp_v2): Likewise.
5278 (lookup_dwo_cutu): Likewise.
5279 (inherit_abstract_dies): Use std::vector.
5280 (read_array_type): Likewise.
5281 (dwarf_decode_macros): Remove unused declaration.
5282 (unsigned_int_compar): Remove.
5283 (dwarf2_build_psymtabs_hard): Use scoped_restore.
5284 (psymtabs_addrmap_cleanup): Remove.
5285
30a9c02f
TT
52862017-10-08 Tom Tromey <tom@tromey.com>
5287
5288 * frame-unwind.c (frame_unwind_try_unwinder): Update.
5289 * frame.h (frame_cleanup_after_sniffer): Declare.
5290 (frame_prepare_for_sniffer): Return void.
5291 * frame.c (frame_cleanup_after_sniffer): No longer static. Change
5292 type of argument.
5293 (frame_prepare_for_sniffer): Return void.
5294
757325a3
TT
52952017-10-08 Tom Tromey <tom@tromey.com>
5296
5297 * utils.h (make_cleanup_value_free): Remove.
5298 * utils.c (do_value_free, struct cleanup): Remove.
5299 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>:
5300 Use gdb_value_up.
5301 * value.h (struct value_deleter): New.
5302 (gdb_value_up): New typedef.
5303
b9c04fb2
TT
53042017-10-08 Tom Tromey <tom@tromey.com>
5305
5306 * symtab.c (free_search_symbols, do_free_search_symbols_cleanup)
5307 (make_cleanup_free_search_symbols): Remove.
5308 (search_symbols): Return std::vector.
5309 (symbol_search::compare_search_syms): Now member of
5310 symbol_search. Change arguments.
5311 (sort_search_symbols_remove_dups): Change arguments. Rewrite.
5312 (symtab_symbol_info, rbreak_command): Update.
5313 * symtab.h (struct symbol_search) <next>: Remove.
5314 Add constructors.
5315 (symbol_search::operator<): New function.
5316 (symbol_search::operator==): New function.
5317 (search_symbols): Remove std::vector.
5318 (free_search_symbols, make_cleanup_free_search_symbols): Remove.
5319 (symbol_search::compare_search_syms): Declare.
5320
0d28b0a5
YQ
53212017-10-06 Yao Qi <yao.qi@linaro.org>
5322
5323 * Makefile.in (ALL_64_TARGET_OBS): Replace aarch64-insn.o with
5324 arch/aarch64-insn.o.
5325 Remove one rule.
5326 * configure.tgt: Replace aarch64-insn.o with arch/aarch64-insn.o.
5327
71917808
YQ
53282017-10-06 Yao Qi <yao.qi@linaro.org>
5329
5330 * Makefile.in (ALL_TARGET_OBS): Replace arm.o, arm-get-next-pcs.o,
5331 and arm-linux.o with arch/arm.o, arch/arm-get-next-pcs.o and
5332 arch/arm-linux.o respectively.
5333 * configure.tgt: Likewise.
5334
2081b2b2
YQ
53352017-10-06 Yao Qi <yao.qi@linaro.org>
5336
5337 * Makefile.in (ALL_TARGET_OBS): Rename i386.o to arch/i386.o.
5338 * configure.tgt (i386_tobjs): Replace i386.o with arch/i386.o.
5339
a1b85d28
PA
53402017-10-06 Pedro Alves <palves@redhat.com>
5341
5342 * windows-nat.c: Include <algorithm>.
5343
d97987e2
YQ
53442017-10-06 Yao Qi <yao.qi@linaro.org>
5345
5346 * configure.tgt (i386_tobjs): New variable.
5347 (amd64_tobjs): New variable.
5348 Set $cpu_obs and $os_obs.
5349
f38307f5
YQ
53502017-10-06 Yao Qi <yao.qi@linaro.org>
5351
5352 * Makefile.in (CONFIG_SRC_SUBDIR): New.
5353 (ALL_64_TARGET_OBS): Replace amd64.o with arch/amd64.o.
5354 (clean): Remove object files and dependency files.
5355 (distclean): Remove the directory.
5356 * configure.ac: Invoke AC_CONFIG_COMMANDS.
5357 * configure: Re-generated.
5358 * configure.tgt: Replace amd64.o with arch/amd64.o.
5359
2f924de6
JM
53602017-10-05 Jose E. Marchesi <jose.marchesi@oracle.com>
5361
5362 PR build/22188
5363 * arm-tdep.c (arm_decode_misc_memhint_neon): Fix decoding of CPS
5364 and SETEND.
5365
2fd9d7ca
PA
53662017-10-05 Pedro Alves <palves@redhat.com>
5367
5368 * linux-nat.c (linux_child_follow_fork): When following the parent
5369 and detaching the child, consult the parent thread's architecture
5370 instead of the child's.
5371
d13b8493
UW
53722017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
5373
5374 * ax.h: Do not include "doublest.h".
5375 (union agent_val): Remove.
5376
3b4b2f16
UW
53772017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
5378
5379 * dfp.h (MAX_DECIMAL_STRING): Move to dfp.c.
5380 (decimal_to_string): Return std::string object.
5381 (decimal_from_string): Accept std::string object. Return bool.
5382 (decimal_from_integral, decimal_from_doublest): Remove.
5383 (decimal_from_longest): Add prototype.
5384 (decimal_from_ulongest): Likewise.
5385 (decimal_to_longest): Likewise.
5386 (decimal_from_doublest): Likewise.
5387 * dfp.c: Do not include "gdbtypes.h" or "value.h".
5388 (MAX_DECIMAL_STRING): Move here.
5389 (decimal_to_string): Return std::string object.
5390 (decimal_from_string): Accept std::string object. Return bool.
5391 (decimal_from_integral): Remove, replace by ...
5392 (decimal_from_longest, decimal_from_ulongest): ... these new functions.
5393 (decimal_to_longest): New function.
5394 (decimal_from_floating): Remove, replace by ...
5395 (decimal_from_doublest): ... this new function.
5396 (decimal_to_doublest): Update to new decimal_to_string interface.
5397
5398 * value.c (unpack_long): Use decimal_to_longest.
5399 * valops.c (value_cast): Use decimal_from_doublest instead of
5400 decimal_from_floating. Use decimal_from_[u]longest isntead of
5401 decimal_from_integral.
5402 * valarith.c (value_args_as_decimal): Likewise.
5403 * valprint.c (print_decimal_floating): Update to new
5404 decimal_to_string interface.
5405 * printcmd.c (printf_decfloat): Likewise.
5406 * c-exp.y (parse_number): Update to new decimal_from_string interface.
5407
1841ee5d
UW
54082017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
5409
5410 * doublest.h: Do not include "floatformat.h". Remove stale comments.
5411 * gdbtypes.c: Include "floatformat.h".
5412 * value.c: Likewise.
5413 * m68k-tdep.c: Likewise.
5414
5415 * findvar.c: Do not include "floatformat.h".
5416 * amd64-darwin-tdep.c: Likewise.
5417 * arm-linux-tdep.c: Likewise.
5418 * i386-darwin-tdep.c: Likewise.
5419 * i387-tdep.c: Likewise.
5420 * m68k-linux-tdep.c: Likewise.
5421 * mep-tdep.c: Likewise.
5422 * mips-tdep.c: Likewise.
5423 * nios2-tdep.c: Likewise.
5424 * s390-linux-tdep.c: Likewise.
5425 * sparc-obsd-tdep.c: Likewise.
5426 * sparc-tdep.c: Likewise.
5427 * sparc64-tdep.c: Likewise.
5428 * spu-tdep.c: Likewise.
5429 * tic6x-tdep.c: Likewise.
5430 * tilegx-tdep.c: Likewise.
5431 * vax-tdep.c: Likewise.
5432 * xstormy16-tdep.c: Likewise.
5433 * xtensa-tdep.c: Likewise.
5434
5435 * top.c: Do not include "doublest.h".
5436 * aarch64-tdep.c: Likewise.
5437 * alpha-tdep.c: Likewise.
5438 * arm-linux-tdep.c: Likewise.
5439 * m68k-linux-tdep.c: Likewise.
5440 * tilegx-tdep.c: Likewise.
5441 * xstormy16-tdep.c: Likewise.
5442
a80a6471
JB
54432017-10-05 John Baldwin <jhb@FreeBSD.org>
5444
5445 * mips-fbsd-tdep.c (MIPS_INST_ADDIU_A0_SP_N32): Define.
5446 (mipsn32_fbsd_sigframe): Define.
5447 (mips_fbsd_init_abi): Install mipsn32_fbsd_sigframe unwinder
5448 for FreeBSD/mipsn32.
5449
12c4bd7f
JB
54502017-10-05 John Baldwin <jhb@FreeBSD.org>
5451
5452 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_EHDRFLAGS and
5453 AT_HWCAP.
5454
c91933e9
TG
54552017-10-05 Tristan Gingold <tgingold@free.fr>
5456
5457 * MAINTAINERS (Misc): Update my email address.
5458
5cd63fda
PA
54592017-10-04 Pedro Alves <palves@redhat.com>
5460
5461 * remote.c (get_remote_arch_state): New 'gdbarch' parameter. Use
5462 it instead of target_gdbarch.
5463 (get_remote_state, get_remote_packet_size): Adjust
5464 get_remote_arch_state calls, passing down target_gdbarch
5465 explicitly.
5466 (packet_reg_from_regnum, packet_reg_from_pnum): New parameter
5467 'gdbarch' and use it instead of target_gdbarch.
5468 (get_memory_packet_size): Adjust get_remote_arch_state calls,
5469 passing down target_gdbarch explicitly.
5470 (struct stop_reply) <arch>: New field.
5471 (remote_parse_stop_reply): Use the stopped thread's architecture,
5472 not the current inferior's. Save the architecture in the
5473 stop_reply.
5474 (process_stop_reply): Use the stop reply's architecture.
5475 (process_g_packet, remote_fetch_registers)
5476 (remote_prepare_to_store, store_registers_using_G)
5477 (remote_store_registers): Adjust get_remote_arch_state calls,
5478 using the regcache's architecture.
5479 (remote_get_trace_status): Adjust get_remote_arch_state calls,
5480 passing down target_gdbarch explicitly.
5481 * spu-multiarch.c (spu_thread_architecture): Defer to the target
5482 beneath instead of calling target_gdbarch.
5483 * target.c (default_thread_architecture): Use the specified
5484 inferior's architecture, instead of the current inferior's
5485 architecture (via target_gdbarch).
5486
ed4227b7
PA
54872017-10-04 Pedro Alves <palves@redhat.com>
5488
5489 * regcache.c (get_thread_arch_regcache): Remove null_ptid special
5490 case.
5491 (regcache_print): Handle !target_has_registers here instead.
5492
55b11ddf
PA
54932017-10-04 Pedro Alves <palves@redhat.com>
5494
5495 * frame.c (create_test_frame): Delete.
5496 * frame.h (create_test_frame): Delete.
5497 * gdbarch-selftests.c: Include gdbthread.h and target.h.
5498 (class regcache_test): Delete.
5499 (test_target_has_registers, test_target_has_stack)
5500 (test_target_has_memory, test_target_prepare_to_store)
5501 (test_target_store_registers): New functions.
5502 (test_target_ops): New class.
5503 (register_to_value_test): Error out if there's already a
5504 process_stratum (or higher) target pushed. Create a fuller mock
5505 environment, with mock target_ops, inferior, address space, thread
5506 and inferior_ptid.
5507 * progspace.c (struct address_space): Move to ...
5508 * progspace.h (struct address_space): ... here.
5509 * regcache.h (regcache::~regcache, regcache::raw_write)
5510 [GDB_SELF_TEST]: No longer virtual.
5511
4c71c105
SM
55122017-10-04 Simon Marchi <simon.marchi@ericsson.com>
5513
5514 * mi/mi-main.c (list_available_thread_groups): Reverse filter logic.
5515
73dcd72d
PA
55162017-10-04 Pedro Alves <palves@redhat.com>
5517
5518 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Move code
5519 out of 'between TRY and CATCH'.
5520
44704526
PA
55212017-10-04 Pedro Alves <palves@redhat.com>
5522
5523 * cli/cli-cmds.c (complete_command): Add missing END_CATCH.
5524 * common/common-exceptions.h (TRY): Open an outermost scope.
5525 Expand intro comment.
5526 (CATCH): Reindent.
5527 (END_CATCH): Close the outermost scope.
5528 * completer.c (complete_line_internal): Add missing END_CATCH.
5529
bc3b087d
SDJ
55302017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
5531
5532 * NEWS (Changes since GDB 8.0): Add entry about new
5533 'set-cwd-on-gdbserver' feature.
5534 (New remote packets): Add entry for QSetWorkingDir.
5535 * common/common-inferior.h (set_inferior_cwd): New prototype.
5536 * infcmd.c (set_inferior_cwd): Remove "static".
5537 (show_cwd_command): Expand text to include remote debugging.
5538 * remote.c: Add PACKET_QSetWorkingDir.
5539 (remote_protocol_features) <QSetWorkingDir>: New entry for
5540 PACKET_QSetWorkingDir.
5541 (extended_remote_set_inferior_cwd): New function.
5542 (extended_remote_create_inferior): Call
5543 "extended_remote_set_inferior_cwd".
5544 (_initialize_remote): Call "add_packet_config_cmd" for
5545 QSetWorkingDir.
5546
d092c5a2
SDJ
55472017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
5548
5549 * NEWS (New commands): Mention "set/show cwd".
5550 * cli/cli-cmds.c (_initialize_cli_cmds): Mention "set cwd" on
5551 "cd" command's help text.
5552 * common/common-inferior.h (get_inferior_cwd): New prototype.
5553 * infcmd.c (inferior_cwd_scratch): New global variable.
5554 (set_inferior_cwd): New function.
5555 (get_inferior_cwd): Likewise.
5556 (set_cwd_command): Likewise.
5557 (show_cwd_command): Likewise.
5558 (_initialize_infcmd): Add "set/show cwd" commands.
5559 * inferior.h (class inferior) <cwd>: New field.
5560 * nat/fork-inferior.c: Include "gdb_tilde_expand.h".
5561 (fork_inferior): Change inferior's cwd before its execution.
5562 * windows-nat.c (windows_create_inferior): Pass inferior's cwd
5563 to CreateProcess.
5564
7da0a886
SDJ
55652017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
5566
5567 * Makefile.in (SFILES): Add gdb_tilde_expand.c.
5568 (HFILES_NO_SRCDIR): Add gdb_tilde_expand.h.
5569 (COMMON_OBS): Add gdb_tilde_expand.o.
5570 * common/gdb_tilde_expand.c: New file.
5571 * common/gdb_tilde_expand.h: Likewise.
5572
db8dd160
MR
55732017-10-03 Maciej W. Rozycki <macro@imgtec.com>
5574
5575 * gdbarch.sh (objfile): Remove duplicate declaration.
5576 * gdbarch.h: Regenerate.
5577
f8bfbf22
TT
55782017-10-03 Tom Tromey <tom@tromey.com>
5579
5580 * utils.c (internal_vproblem): Use string_vprintf.
5581
5178ed48
TT
55822017-10-03 Tom Tromey <tom@tromey.com>
5583
5584 * printcmd.c (info_symbol_command): Use std::string.
5585
8cff8730
TT
55862017-10-03 Tom Tromey <tom@tromey.com>
5587
5588 * top.c (gdb_safe_append_history): Use std::string.
5589
895b8f30
TT
55902017-10-03 Tom Tromey <tom@tromey.com>
5591
5592 * event-top.c (stdin_event_handler): Update.
5593 * main.c (captured_main_1): Update.
5594 * top.h (make_delete_ui_cleanup): Remove.
5595 (struct ui): Add constructor and destructor.
5596 (new_ui, delete_ui): Remove.
5597 * top.c (make_delete_ui_cleanup): Remove.
5598 (new_ui_command): Use std::unique_ptr.
5599 (delete_ui_cleanup): Remove.
5600 (ui::ui): Rename from new_ui. Update.
5601 (free_ui): Remove.
5602 (ui::~ui): Rename from delete_ui. Update.
5603
0efef640
TT
56042017-10-03 Tom Tromey <tom@tromey.com>
5605
5606 * symfile.c (load_progress): Use gdb::byte_vector.
5607
245ad7d3
TT
56082017-10-03 Tom Tromey <tom@tromey.com>
5609
5610 * mi/mi-main.c (mi_cmd_trace_frame_collected): Remove unused
5611 declaration.
5612 * printcmd.c (x_command): Remove unused declaration.
5613 * symfile.c (symbol_file_command): Remove unused declaration.
5614
e05550d7
TT
56152017-10-03 Tom Tromey <tom@tromey.com>
5616
5617 * utils.c (internal_vproblem): Use std::string.
5618 (defaulted_query): Likewise.
5619
b95de2b7
TT
56202017-10-03 Tom Tromey <tom@tromey.com>
5621
5622 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Update.
5623 * top.c (execute_command_to_string): Update.
5624 * utils.c (make_cleanup_restore_page_info): Remove.
5625 (do_restore_page_info_cleanup): Remove.
5626 (set_batch_flag_and_restore_page_info):
5627 New.
5628 (make_cleanup_restore_page_info): Remove.
5629 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
5630 (~set_batch_flag_and_restore_page_info): New
5631 (make_cleanup_restore_uinteger): Remove.
5632 (make_cleanup_restore_integer): Remove.
5633 (struct restore_integer_closure): Remove.
5634 (restore_integer): Remove.
5635 * utils.h (struct set_batch_flag_and_restore_page_info): New
5636 class.
5637 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
5638 (make_cleanup_restore_page_info): Remove.
5639 (make_cleanup_restore_uinteger) Remove.
5640 (make_cleanup_restore_integer) Remove.
5641
07036511
TT
56422017-10-03 Tom Tromey <tom@tromey.com>
5643
5644 * record-full.h (record_full_gdb_operation_disable_set): Return
5645 scoped_restore_tmpl<int>.
5646 * infrun.c (adjust_pc_after_break): Update.
5647 (handle_signal_stop): Update.
5648 * record-full.c (record_full_gdb_operation_disable_set): Return
5649 scoped_restore_tmpl<int>.
5650 (record_full_wait_1, record_full_insert_breakpoint)
5651 (record_full_remove_breakpoint, record_full_save)
5652 (record_full_goto_insn): Update.
5653
45320ffa
TT
56542017-10-02 Tom Tromey <tom@tromey.com>
5655
5656 PR rust/22236:
5657 * rust-lang.c (rust_val_print_str): New function.
5658 (val_print_struct): Call it.
5659 (rust_subscript): Preserve name of slice type.
5660
b3e3859b
TT
56612017-10-02 Tom Tromey <tom@tromey.com>
5662
5663 * rust-lang.c (rust_subscript): Handle slices in
5664 EVAL_AVOID_SIDE_EFFECTS case.
5665
01af5e0d
TT
56662017-10-02 Tom Tromey <tom@tromey.com>
5667
5668 * rust-lang.c (rust_slice_type_p): Recognize &str as a slice type.
5669
888e3ddb
TT
56702017-10-02 Tom Tromey <tom@tromey.com>
5671
5672 * rust-lang.h (rust_slice_type): Add "extern".
5673
cc536b21
PA
56742017-10-02 Tom Tromey <tom@tromey.com>
5675 Pedro Alves <palves@redhat.com>
5676
5677 * ada-lang.h (ada_exc_info::operator<): Make const.
5678 (ada_exc_info::operator==): Make const.
5679 * ada-lang.c (ada_exc_info::operator<, ada_exc_info::operator==):
5680 Make const.
5681
386c8614
TT
56822017-09-29 Tom Tromey <tom@tromey.com>
5683
5684 * target.c (read_whatever_is_readable): Change type of "result".
5685 Update.
5686 (free_memory_read_result_vector): Remove.
5687 (read_memory_robust): Change return type. Update.
5688 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update. Use
5689 bin2hex, std::string.
5690 * target.h (memory_read_result_s): Remove typedef.
5691 (free_memory_read_result_vector): Remove.
5692 (read_memory_robust): Return std::vector.
5693
789c4b5e
TT
56942017-09-29 Tom Tromey <tom@tromey.com>
5695
5696 * mi/mi-main.c (captured_mi_execute_command): Use scope_restore.
5697
ab816a27
TT
56982017-09-29 Tom Tromey <tom@tromey.com>
5699
5700 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Update.
5701 * ada-lang.h (struct ada_exc_info): Remove typedef. Declare
5702 operator< and operator==.
5703 (ada_exceptions_list): Return a std::vector.
5704 * ada-lang.c (ada_exc_info::operator<): Rename from
5705 compare_ada_exception_info.
5706 (ada_exc_info::operator==): New.
5707 (sort_remove_dups_ada_exceptions_list): Change type of
5708 "exceptions".
5709 (ada_add_standard_exceptions, ada_add_exceptions_from_frame)
5710 (ada_add_global_exceptions): Likewise.
5711 (ada_exceptions_list_1): Return a std::vector.
5712 (ada_exceptions_list): Likewise.
5713
52f9abe4
TT
57142017-09-29 Tom Tromey <tom@tromey.com>
5715
5716 * mi/mi-main.c (struct print_one_inferior_data) <inferiors>: Now a
5717 'std::set *'.
5718 (print_one_inferior): Update.
5719 (free_vector_of_ints): Remove.
5720 (list_available_thread_groups): Change "ids" to std::set.
5721 (mi_cmd_list_thread_groups): Update.
5722 (struct collect_cores_data) <core>: Now a std::set.
5723 (collect_cores): Update.
5724 (unique): Remove.
5725 (print_one_inferior): Update.
5726
dcd5ddcc
TT
57272017-09-29 Tom Tromey <tom@tromey.com>
5728
5729 * mi/mi-main.c (mi_execute_cli_command): Use std::string.
5730 (mi_execute_async_cli_command): Likewise.
5731 (mi_cmd_trace_frame_collected): Use field_fmt.
5732
45d288cc
TT
57332017-09-29 Tom Tromey <tom@tromey.com>
5734
5735 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Use
5736 gdb::byte_vector.
5737
6afe2f4a
TT
57382017-09-29 Tom Tromey <tom@tromey.com>
5739
5740 * mi/mi-parse.c (mi_parse): Remove unused declaration.
5741
9813429a
TT
57422017-09-29 Tom Tromey <tom@tromey.com>
5743
5744 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Don't copy "oarg".
5745
2d6960b4
TT
57462017-09-29 Tom Tromey <tom@tromey.com>
5747
5748 * varobj.h (varobj_gen_name): Return std::string.
5749 * varobj.c (varobj_gen_name): Return std::string.
5750 * mi/mi-cmd-var.c (mi_cmd_var_create): Use std::string.
5751 (mi_cmd_var_delete): Don't copy "name".
5752
784c453a
TT
57532017-09-29 Tom Tromey <tom@tromey.com>
5754
5755 * mi/mi-cmd-break.c (mi_argv_to_format): Return std::string.
5756 (mi_cmd_break_insert_1): Update.
5757
a9bc57b9
TT
57582017-09-29 Tom Tromey <tom@tromey.com>
5759
5760 * target.h (make_scoped_defer_target_commit_resume): Update.
5761 * target.c (make_scoped_defer_target_commit_resume): Rename from
5762 make_cleanup_defer_target_commit_resume. Return a
5763 scoped_restore.
5764 * infrun.c (proceed): Use make_scoped_defer_target_commit_resume.
5765
9754d8c4
TT
57662017-09-29 Tom Tromey <tom@tromey.com>
5767
5768 * main.c (captured_main_1): Remove unused declaration.
5769 * spu-multiarch.c (parse_spufs_run): Remove unused declaration.
5770
99ef965c
TT
57712017-09-29 Tom Tromey <tom@tromey.com>
5772
5773 * symtab.c (search_symbols): Remove unused outer cleanup.
5774 (make_source_files_completion_list): Remove unused declaration.
5775
42518ba7
TT
57762017-09-29 Tom Tromey <tom@tromey.com>
5777
5778 * mt-tdep.c (mt_push_dummy_call): Use gdb::byte_vector.
5779
726b2169
TT
57802017-09-29 Tom Tromey <tom@tromey.com>
5781
5782 * xstormy16-tdep.c (xstormy16_push_dummy_call): Use
5783 gdb::byte_vector.
5784
55b06432
TT
57852017-09-29 Tom Tromey <tom@tromey.com>
5786
5787 * complaints.c (vcomplaint): Use std::string.
5788
8abcee91
TT
57892017-09-29 Tom Tromey <tom@tromey.com>
5790
5791 * tracepoint.c (trace_variable_command): Use std::string.
5792 (encode_actions_1): Remove unused declarations.
5793 (create_tsv_from_upload): Use std::string.
5794
6ad94bc7
TT
57952017-09-29 Tom Tromey <tom@tromey.com>
5796
5797 * cp-support.c (gdb_demangle): Use std::string.
5798
2003f3d8
TT
57992017-09-29 Tom Tromey <tom@tromey.com>
5800
5801 * stack.c (parse_frame_specification): Use std::string
5802 (info_frame_command): Use gdb::unique_xmalloc_ptr.
5803
8f8accb5
TT
58042017-09-29 Tom Tromey <tom@tromey.com>
5805
5806 * tilegx-tdep.c (tilegx_push_dummy_call): Use gdb::byte_vector.
5807
200aa7b1
TT
58082017-09-29 Tom Tromey <tom@tromey.com>
5809
5810 * utils.c (vfprintf_maybe_filtered): Use std::string.
5811 (vfprintf_unfiltered): Likewise.
5812
606aae8a
TT
58132017-09-29 Tom Tromey <tom@tromey.com>
5814
5815 * event-top.c (top_level_prompt): Return std::string.
5816 (display_gdb_prompt): Update.
5817
bd413795
TT
58182017-09-29 Tom Tromey <tom@tromey.com>
5819
5820 * unittests/common-utils-selftests.c (format): New function.
5821 (string_vprintf_tests): New function.
5822 (_initialize_common_utils_selftests): Register new tests.
5823 * common/common-utils.c (string_vprintf): New function.
5824 * common/common-utils.h (string_vprintf): Declare.
5825
256642e8
PA
58262017-09-29 Pedro Alves <palves@redhat.com>
5827
5828 * common/rsp-low.c (unpack_varlen_hex): Constify.
5829 * common/rsp-low.h (unpack_varlen_hex): Constify.
5830 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
5831 Constify.
5832 * remote.c (remote_set_permissions, read_ptid)
5833 (remote_current_thread, remote_get_threads_with_qthreadinfo)
5834 (remote_static_tracepoint_marker_at)
5835 (remote_static_tracepoint_markers_by_strid)
5836 (stop_reply_extract_thread, remote_parse_stop_reply): Constify.
5837 * tracepoint.c (parse_trace_status, parse_tracepoint_status)
5838 (parse_tracepoint_definition, parse_tsv_definition)
5839 (parse_static_tracepoint_marker_definition): Constify.
5840 * tracepoint.h (parse_static_tracepoint_marker_definition)
5841 (parse_trace_status, parse_tracepoint_status)
5842 (parse_tracepoint_definition, parse_tsv_definition): Constify.
5843
b6bb3468
PA
58442017-09-29 Pedro Alves <palves@redhat.com>
5845
5846 * remote.c (target_buf, target_buf_size): Delete.
5847 (remote_get_noisy_reply): Remove buf_p and sizeof_buf parameters.
5848 Use the connection's packet buffer instead.
5849 All callers adjusted.
5850 (_initialize_remote): Remove references to target_buf and
5851 target_buf_size.
5852
b2f8eb7a
PA
58532017-09-28 Pedro Alves <palves@redhat.com>
5854
5855 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5856 unittests/common-utils-selftests.c.
5857 (SUBDIR_UNITTESTS_OBS): Add common-utils-selftests.o.
5858 (COMMON_OBS): Remove utils-selftests.o.
5859 * utils-selftests.c: Move to ...
5860 * unittests/common-utils-selftests.c: ... here and rename self
5861 test to "string_printf".
5862
08302ed2
DE
58632017-09-28 Alexander Shaposhnikov <alexander.v.shaposhnikov@gmail.com> (tiny patch)
5864
5865 * dwarf2read.c (open_and_init_dwp_file): Protect against dwp_file
5866 having NULL cus or tus.
5867
96a5a1d3
UW
58682017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
5869
5870 * arm-tdep.c: (convert_from_extended): Remove.
5871 (convert_to_extended): Likewise.
5872 (arm_extract_return_value): Use convert_typed_floating.
5873 (arm_store_return_value): Likewise.
5874
5875 * sh-tdep.h (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
5876 * sh-tdep.c: Do not include "floatformat.h".
5877 (sh_littlebyte_bigword_type): New function.
5878 (sh_register_convert_to_virtual): Use convert_typed_floating.
5879 (sh_register_convert_to_raw): Likewise.
5880 * sh64-tdep.c: (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
5881 (sh64_littlebyte_bigword_type): New function.
5882 (sh64_extract_return_value): Use convert_typed_floating.
5883 (sh64_register_convert_to_virtual): Likewise.
5884 (sh64_register_convert_to_raw): Likewise.
5885
0db7851f
UW
58862017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
5887
5888 * doublest.h (floatformat_from_type): Move to gdbtypes.h.
5889 * doublest.c (floatformat_from_type): Move to gdbtypes.c.
5890
5891 * gdbtypes.h (union type_specific): Make field floatformat hold
5892 just a single struct floatformat, not an array.
5893 (floatformat_from_type): Move here.
5894 * gdbtypes.c (floatformat_from_type): Move here. Update to
5895 changed TYPE_FLOATFORMAT definition.
5896 (verify_floatformat): Update to changed TYPE_FLOATFORMAT.
5897 (recursive_dump_type): Likewise.
5898 (init_float_type): Install correct floatformat for byte order.
5899 (arch_float_type): Likewise.
5900
77b7c781
UW
59012017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
5902
5903 * gdbtypes.c (init_type): Change incoming argument from
5904 length-in-bytes to length-in-bits. Assert length is a
5905 multiple of TARGET_CHAR_BITS.
5906 (arch_type, arch_flags_type): Likewise.
5907 (init_integer_type): Update call to init_type.
5908 (init_character_type): Likewise.
5909 (init_boolean_type): Likewise.
5910 (init_float_type): Likewise.
5911 (init_decfloat_type): Likewise.
5912 (init_complex_type): Likewise.
5913 (init_pointer_type): Likewise.
5914 (objfile_type): Likewise.
5915 (arch_integer_type): Update call to arch_type.
5916 (arch_character_type): Likewise.
5917 (arch_boolean_type): Likewise.
5918 (arch_float_type): Likewise.
5919 (arch_decfloat_type): Likewise.
5920 (arch_complex_type): Likewise.
5921 (arch_pointer_type): Likewise.
5922 (gdbtypes_post_init): Likewise.
5923
5924 * dwarf2read.c (dwarf2_init_float_type): Update call to init_type.
5925 (read_base_type): Likewise.
5926 * mdebugread.c (basic_type): Likewise.
5927 * stabsread.c (dbx_init_float_type): Likewise.
5928 (rs6000_builtin_type): Likewise.
5929 (read_range_type): Likewise. Also, fix call to init_integer_type
5930 with erroneous length argument.
5931
5932 * ada-lang.c (ada_language_arch_info): Update call to arch_type.
5933 * d-lang.c (build_d_types): Likewise.
5934 * f-lang.c (build_fortran_types): Likewise.
5935 * go-lang.c (build_go_types): Likewise.
5936 * opencl-lang.c (build_opencl_types): Likewise.
5937 * jit.c (finalize_symtab): Likewise.
5938 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
5939 (build_std_type_info_type): Likewise.
5940 * target-descriptions.c (tdesc_gdb_type): Likewise. Also,
5941 update call to arch_flags_type.
5942
5943 * linux-tdep.c (linux_get_siginfo_type_with_fields): Update call to
5944 arch_type.
5945 * fbsd-tdep.c (fbsd_get_siginfo_type): Likewise.
5946 * windows-tdep.c (windows_get_tlb_type): Likewise.
5947
5948 * avr-tdep.c (avr_gdbarch_init): Update call to arch_type.
5949 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
5950 * m32c-tdep.c (make_types): Likewise.
5951 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
5952 (rl78_psw_type): Update call to arch_flags_type.
5953 * m68k-tdep.c (m68k_ps_type): Update call to arch_flags_type.
5954 * rx-tdep.c (rx_psw_type): Likewise.
5955 (rx_fpsw_type): Likewise.
5956 * sparc-tdep.c (sparc_psr_type): Likewise.
5957 (sparc_fsr_type): Likewise.
5958 * sparc64-tdep.c (sparc64_pstate_type): Likewise.
5959 (sparc64_ccr_type): Likewise.
5960 (sparc64_fsr_type): Likewise.
5961 (sparc64_fprs_type): Likewise.
5962
f21b4d5c
TT
59632017-09-27 Tom Tromey <tom@tromey.com>
5964
5965 * findcmd.c (find_command): Constify.
5966
643c2ffa
TT
59672017-09-27 Tom Tromey <tom@tromey.com>
5968
5969 * ada-tasks.c (task_command_1, task_command): Constify.
5970
510e5e56
TT
59712017-09-27 Tom Tromey <tom@tromey.com>
5972
5973 * symtab.c (maintenance_print_symbol_cache)
5974 (maintenance_flush_symbol_cache)
5975 (maintenance_print_symbol_cache_statistics): Constify.
5976
e503b191
TT
59772017-09-27 Tom Tromey <tom@tromey.com>
5978
5979 * inferior.c (detach_inferior_command, kill_inferior_command)
5980 (inferior_command): Constify.
5981
4e001312
TT
59822017-09-27 Tom Tromey <tom@tromey.com>
5983
5984 * regcache.c (regcache_print, maintenance_print_registers)
5985 (maintenance_print_raw_registers)
5986 (maintenance_print_cooked_registers)
5987 (maintenance_print_register_groups)
5988 (maintenance_print_remote_registers): Constify.
5989
77763700
TT
59902017-09-27 Tom Tromey <tom@tromey.com>
5991
5992 * printcmd.c (map_display_numbers, undisplay_command)
5993 (enable_disable_display_command, enable_display_command)
5994 (disable_display_command): Constify.
5995
4495129a
TT
59962017-09-27 Tom Tromey <tom@tromey.com>
5997
5998 * breakpoint.h (delete_command): Don't declare.
5999 * breakpoint.c (delete_command, enable_once_command)
6000 (enable_count_command, enable_delete_command, breakpoint_1)
6001 (maintenance_info_breakpoints, stopin_command, stopat_command)
6002 (delete_command, delete_trace_command, save_breakpoints)
6003 (save_breakpoints_command, save_tracepoints_command): Constify.
6004
3088cf40
TT
60052017-09-27 Tom Tromey <tom@tromey.com>
6006
6007 * macrocmd.c (macro_expand_command, macro_expand_once_command)
6008 (skip_ws, extract_identifier, macro_define_command)
6009 (macro_undef_command, macro_list_command): Constify.
6010
69f476a3
TT
60112017-09-27 Tom Tromey <tom@tromey.com>
6012
6013 * infcmd.c (environment_info, set_environment_command)
6014 (unset_environment_command, path_info, info_proc_cmd_1)
6015 (info_proc_cmd_mappings, info_proc_cmd_stat)
6016 (info_proc_cmd_status, info_proc_cmd_cwd, info_proc_cmd_cmdline)
6017 (info_proc_cmd_exe, info_proc_cmd_all): Constify.
6018
c4a3e68e
TT
60192017-09-27 Tom Tromey <tom@tromey.com>
6020
6021 * i386-tdep.c (i386_mpx_info_bounds, i386_mpx_set_bounds):
6022 Constify.
6023
c9d31bd6
TT
60242017-09-27 Tom Tromey <tom@tromey.com>
6025
6026 * symfile-mem.c (add_symbol_file_from_memory_command): Constify.
6027
1f3f85eb
TT
60282017-09-27 Tom Tromey <tom@tromey.com>
6029
6030 * demangle.c (demangle_command): Constify.
6031
9c504b5d
TT
60322017-09-27 Tom Tromey <tom@tromey.com>
6033
6034 * progspace.c (maintenance_info_program_spaces_command):
6035 Constify.
6036
6663cf91
TT
60372017-09-27 Tom Tromey <tom@tromey.com>
6038
6039 * compile/compile.c (check_raw_argument, compile_file_command)
6040 (compile_code_command, compile_print_command): Constify.
6041
34e5fa26
TT
60422017-09-27 Tom Tromey <tom@tromey.com>
6043
6044 * reggroups.c (maintenance_print_reggroups): Constify.
6045
8384c356
TT
60462017-09-27 Tom Tromey <tom@tromey.com>
6047
6048 * dwarf2read.c (save_gdb_index_command): Constify.
6049
884beb0c
TT
60502017-09-27 Tom Tromey <tom@tromey.com>
6051
6052 * stap-probe.c (info_probes_stap_command): Constify.
6053
e0b2930c
TT
60542017-09-27 Tom Tromey <tom@tromey.com>
6055
6056 * fork-child.c (unset_exec_wrapper_command): Constify.
6057
f938677d
TT
60582017-09-27 Tom Tromey <tom@tromey.com>
6059
6060 * btrace.c (get_uint, get_context_size, no_chunk)
6061 (maint_btrace_packet_history_cmd)
6062 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
6063 (maint_info_btrace_cmd): Constify.
6064
8949cb87
TT
60652017-09-27 Tom Tromey <tom@tromey.com>
6066
6067 * reverse.c (delete_bookmark_command): Constify.
6068
ac88e2de
TT
60692017-09-27 Tom Tromey <tom@tromey.com>
6070
6071 * remote.c (set_memory_packet_size)
6072 (set_memory_write_packet_size, show_memory_write_packet_size)
6073 (set_memory_read_packet_size, show_memory_read_packet_size)
6074 (compare_sections_command, packet_command, remote_put_command)
6075 (remote_get_command, remote_delete_command): Constify.
6076
bd4c9dfe
TT
60772017-09-27 Tom Tromey <tom@tromey.com>
6078
6079 * mips-tdep.c (show_mipsfpu_command, set_mipsfpu_single_command)
6080 (set_mipsfpu_double_command, set_mipsfpu_none_command)
6081 (set_mipsfpu_auto_command): Constify.
6082
5e93d4c6
TT
60832017-09-27 Tom Tromey <tom@tromey.com>
6084
6085 * cli/cli-cmds.h (cd_command): Constify.
6086 * cli/cli-cmds.c (cd_command): Constify.
6087
fc41a75b
TT
60882017-09-27 Tom Tromey <tom@tromey.com>
6089
6090 * thread.c (thread_name_command, thread_find_command): Constify.
6091
67810076
TT
60922017-09-27 Tom Tromey <tom@tromey.com>
6093
6094 * probe.c (enable_probes_command, disable_probes_command):
6095 Constify.
6096
1d8b34a7
TT
60972017-09-27 Tom Tromey <tom@tromey.com>
6098
6099 * symfile.c (symbol_file_command): Constify.
6100 * gdbcore.h (deprecated_file_changed_hook): Constify.
6101 * exec.c (deprecated_file_changed_hook, exec_file_command)
6102 (file_command): Constify.
6103 * defs.h (symbol_file_command): Constify.
6104
442019e1
TT
61052017-09-27 Tom Tromey <tom@tromey.com>
6106
6107 * remote-fileio.c (set_system_call_allowed)
6108 (show_system_call_allowed): Constify.
6109
2983f7cb
TT
61102017-09-27 Tom Tromey <tom@tromey.com>
6111
6112 * tracepoint.c (delete_trace_variable_command)
6113 (tfind_end_command, tfind_start_command, tfind_pc_command)
6114 (tfind_tracepoint_command, tfind_line_command)
6115 (tfind_range_command, tfind_outside_command): Constify.
6116
4fd41b24
TT
61172017-09-27 Tom Tromey <tom@tromey.com>
6118
6119 * ax-gdb.c (maint_agent_printf_command, agent_command)
6120 (agent_eval_command): Constify.
6121
f2fc3015
TT
61222017-09-27 Tom Tromey <tom@tromey.com>
6123
6124 * tracepoint.c (info_scope_command): Constify.
6125 * python/python.c (gdbpy_decode_line): Constify.
6126 * python/py-breakpoint.c (bppy_init): Constify.
6127 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Constify.
6128 * location.h: (new_linespec_location)
6129 (string_to_event_location_basic, string_to_event_location):
6130 Constify.
6131 * location.c (new_linespec_location)
6132 (string_to_event_location_basic, string_to_event_location):
6133 Constify.
6134 * linespec.h (decode_line_with_current_source)
6135 (decode_line_with_last_displayed, linespec_lex_to_end): Constify.
6136 * linespec.c (linespec_lex_to_end)
6137 (decode_line_with_current_source)
6138 (decode_line_with_last_displayed): Constify.
6139 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x):
6140 Constify.
6141 * cli/cli-cmds.c (edit_command, list_command): Constify.
6142 * breakpoint.h (until_break_command, watch_command_wrapper)
6143 (awatch_command_wrapper, rwatch_command_wrapper)
6144 (init_ada_exception_breakpoint): Constify.
6145 * breakpoint.c (break_command_1, dprintf_command)
6146 (break_range_command, watch_command_wrapper)
6147 (rwatch_command_wrapper, awatch_command_wrapper)
6148 (until_break_command, init_ada_exception_breakpoint)
6149 (strace_marker_create_sals_from_location, trace_command)
6150 (ftrace_command, strace_command, struct tracepoint): Constify.
6151 * ax-gdb.c (agent_command_1): Constify.
6152 * ada-lang.c (ada_exception_sal): Constify.
6153
8c2f95f4
TT
61542017-09-27 Tom Tromey <tom@tromey.com>
6155
6156 * record.c (cmd_record_delete, cmd_record_stop, cmd_record_save)
6157 (cmd_record_goto_begin, cmd_record_goto_end, get_insn_number)
6158 (get_context_size, no_chunk, get_insn_history_modifiers)
6159 (cmd_record_insn_history, get_call_history_modifiers)
6160 (cmd_record_call_history): Constify.
6161
a0d65762
TT
61622017-09-27 Tom Tromey <tom@tromey.com>
6163
6164 * source.c (show_substitute_path_command)
6165 (unset_substitute_path_command, set_substitute_path_command):
6166 Constify.
6167
58971144
TT
61682017-09-27 Tom Tromey <tom@tromey.com>
6169
6170 * typeprint.c (maintenance_print_type): Constify.
6171 * maint.c (maintenance_dump_me, maintenance_demangle)
6172 (maintenance_time_display, maintenance_info_sections)
6173 (maintenance_print_statistics, maintenance_deprecate)
6174 (maintenance_undeprecate): Constify.
6175 (maintenance_do_deprecate): Constify. Use std::string.
6176 (maintenance_selftest): Constify.
6177 * gdbtypes.h (maintenance_print_type): Constify.
6178
c482f52c
TT
61792017-09-27 Tom Tromey <tom@tromey.com>
6180
6181 * hppa-tdep.c (unwind_command): Constify.
6182
e100df1a
TT
61832017-09-27 Tom Tromey <tom@tromey.com>
6184
6185 * target-descriptions.c (unset_tdesc_filename_cmd)
6186 (maint_print_c_tdesc_cmd, maintenance_check_xml_descriptions):
6187 Constify.
6188
31d56ade
TT
61892017-09-27 Tom Tromey <tom@tromey.com>
6190
6191 * dummy-frame.c (maintenance_print_dummy_frames): Constify.
6192
b961da0b
TT
61932017-09-27 Tom Tromey <tom@tromey.com>
6194
6195 * tui/tui.c (tui_enable_command, tui_disable_command): Constify.
6196
e2d8ae16
TT
61972017-09-27 Tom Tromey <tom@tromey.com>
6198
6199 * tui/tui-regs.c (tui_reg_command): Constify.
6200
863779b0
TT
62012017-09-27 Tom Tromey <tom@tromey.com>
6202
6203 * skip.c (skip_file_command, skip_function_command)
6204 (skip_enable_command, skip_disable_command, skip_delete_command):
6205 Constify.
6206
cdb34d4a
TT
62072017-09-27 Tom Tromey <tom@tromey.com>
6208
6209 * record-btrace.c (cmd_record_btrace_bts_start)
6210 (cmd_record_btrace_pt_start): Constify.
6211
e99c83e7
TT
62122017-09-27 Tom Tromey <tom@tromey.com>
6213
6214 * symmisc.c (maintenance_print_symbols)
6215 (maintenance_print_msymbols, maintenance_print_objfiles)
6216 (maintenance_info_symtabs, maintenance_check_symtabs)
6217 (maintenance_expand_symtabs, maintenance_info_line_tables):
6218 Constify.
6219
32faf971
TT
62202017-09-27 Tom Tromey <tom@tromey.com>
6221
6222 * top.c (new_ui_command): Constify.
6223
2cf311eb
TT
62242017-09-27 Tom Tromey <tom@tromey.com>
6225
6226 * symfile.c (add_symbol_file_command)
6227 (remove_symbol_file_command, list_overlays_command)
6228 (map_overlay_command, unmap_overlay_command)
6229 (overlay_auto_command, overlay_manual_command)
6230 (overlay_off_command, overlay_load_command): Constify.
6231
e6738699
TT
62322017-09-27 Tom Tromey <tom@tromey.com>
6233
6234 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
6235 (info_spu_mailbox_command, info_spu_dma_command)
6236 (info_spu_proxydma_command): Constify.
6237
aa360cd5
TT
62382017-09-27 Tom Tromey <tom@tromey.com>
6239
6240 * cli/cli-logging.c (set_logging_on, set_logging_off): Constify.
6241
898241a5
TT
62422017-09-27 Tom Tromey <tom@tromey.com>
6243
6244 * cli/cli-script.c (user_defined_command): Constify.
6245
2d0ac106
TT
62462017-09-27 Tom Tromey <tom@tromey.com>
6247
6248 * cli/cli-dump.c (dump_memory_command, dump_value_command)
6249 (dump_srec_memory, dump_srec_value, dump_ihex_memory)
6250 (dump_ihex_value, dump_verilog_memory, dump_verilog_value)
6251 (dump_tekhex_memory, dump_tekhex_value, dump_binary_memory)
6252 (dump_binary_value, append_binary_memory, append_binary_value):
6253 Constify.
6254 (struct dump_context) <func>: Constify.
6255 (add_dump_command): Update.
6256
dede02ce
TT
62572017-09-27 Tom Tromey <tom@tromey.com>
6258
6259 * cli/cli-cmds.c (show_version, show_configuration)
6260 (source_command, show_user): Constify.
6261
d3cb6b99
TT
62622017-09-27 Tom Tromey <tom@tromey.com>
6263
6264 * target.c (maintenance_print_target_stack): Constify.
6265
1970a12f
TT
62662017-09-27 Tom Tromey <tom@tromey.com>
6267
6268 * interps.c (interpreter_exec_cmd): Constify.
6269
41243651
TT
62702017-09-27 Tom Tromey <tom@tromey.com>
6271
6272 * record-full.c (cmd_record_full_restore): Constify.
6273
4465d9db
TT
62742017-09-27 Tom Tromey <tom@tromey.com>
6275
6276 * memattr.c (enable_mem_command, disable_mem_command)
6277 (delete_mem_command): Constify.
6278
ad25e423
TT
62792017-09-27 Tom Tromey <tom@tromey.com>
6280
6281 * value.c (show_convenience): Constify.
6282
d64097b1
TT
62832017-09-27 Tom Tromey <tom@tromey.com>
6284
6285 * gdbcore.h (core_file_command): Update.
6286 * corefile.c (core_file_command): Constify.
6287
4d4589ef
TT
62882017-09-27 Tom Tromey <tom@tromey.com>
6289
6290 * user-regs.c (maintenance_print_user_registers): Constify.
6291
32a7bf17
TT
62922017-09-27 Tom Tromey <tom@tromey.com>
6293
6294 * cp-namespace.c (maintenance_cplus_namespace): Constify.
6295
4a475551
TT
62962017-09-27 Tom Tromey <tom@tromey.com>
6297
6298 * cp-support.c (first_component_command): Constify.
6299
990b9f9f
TT
63002017-09-27 Tom Tromey <tom@tromey.com>
6301
6302 * psymtab.c (maintenance_print_psymbols)
6303 (maintenance_info_psymtabs, maintenance_check_psymtabs):
6304 Constify.
6305
c281872e
TT
63062017-09-27 Tom Tromey <tom@tromey.com>
6307
6308 * windows-tdep.c (display_tib): Constify.
6309
5b64bf74
TT
63102017-09-27 Tom Tromey <tom@tromey.com>
6311
6312 * linux-fork.c (delete_checkpoint_command)
6313 (detach_checkpoint_command): Constify.
6314
4ada038f
TT
63152017-09-27 Tom Tromey <tom@tromey.com>
6316
6317 * cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify.
6318
57f5a81b
TT
63192017-09-27 Tom Tromey <tom@tromey.com>
6320
6321 * arc-tdep.c (dump_arc_instruction_command): Constify.
6322
b0a8e6c4
TT
63232017-09-27 Tom Tromey <tom@tromey.com>
6324
6325 * valprint.c (set_radix, show_radix): Constify.
6326
8d97dc1c
TT
63272017-09-27 Tom Tromey <tom@tromey.com>
6328
6329 * dtrace-probe.c (info_probes_dtrace_command): Constify.
6330
eb7c454d
TT
63312017-09-27 Tom Tromey <tom@tromey.com>
6332
6333 * command.h (not_just_help_class_command): Update.
6334 * cli/cli-decode.h (not_just_help_class_command): Update.
6335 * cli/cli-decode.c (not_just_help_class_command): Constify.
6336
e4e33335
TT
63372017-09-27 Tom Tromey <tom@tromey.com>
6338
6339 * gdb_bfd.c (maintenance_info_bfds): Constify.
6340
0450cc4c
TT
63412017-09-27 Tom Tromey <tom@tromey.com>
6342
6343 * cli/cli-decode.c (add_cmd, set_cmd_cfunc): New function
6344 overloads.
6345 (do_add_cmd): Rename from add_cmd. Don't call set_cmd_cfunc.
6346 (do_const_cfunc): New function.
6347 (cmd_cfunc_eq): New overload.
6348 (cli_user_command_p): Check do_const_cfunc.
6349 * cli/cli-decode.h (struct cmd_list_element) <function>: New field
6350 const_cfunc.
6351 * command.h (add_cmd): Add const overload and no-function
6352 overload.
6353 (set_cmd_cfunc): Add const overload.
6354 (cmd_const_cfunc_ftype): Declare.
6355 (cmd_cfunc_eq): Add const overload.
6356 * breakpoint.c, cli-cmds.c, cli-dump.c, guile/scm-cmd.c,
6357 python/py-cmd.c, target.c, tracepoint.c: Use no-function add_cmd
6358 overload.
6359
a9bbfbd8
TT
63602017-09-27 Tom Tromey <tom@tromey.com>
6361
6362 * macroexp.c (get_next_token_for_substitution): New function.
6363 (substitute_args): Call it. Check for __VA_OPT__.
6364
5230b05a
WT
63652017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
6366 Pedro Alves <palves@redhat.com>
6367
6368 * dwarf2read.c (dwarf2_cu): Remove field producer_is_icc and add
6369 producer_is_icc_lt_14.
6370 (producer_is_icc_lt_14): New function.
6371 (check_producer): Add code for checking version of ICC.
6372 (producer_is_icc): Move to producer.c.
6373 (read_structure_type): Restrict ICC workaround to ICC<14.
6374 * producer.c: Include selftest.h.
6375 (producer_is_icc, producer_parsing_tests, _initialize_producer):
6376 New functions.
6377 * producer.h (producer_is_icc): New declaration.
6378
b32b108a
WT
63792017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
6380
6381 * Makefile.in (SFILES): Add producer.c.
6382 (COMMON_OBS): Add producer.o
6383 * amd64-tdep.c (producer.h): Add new include.
6384 * dwarf2read.c (producer.h): Add new include.
6385 * producer.c: New file.
6386 * producer.h: New file.
6387 * utils.c (producer_is_gcc, producer_is_gcc_ge_4): Move to
6388 producer.c.
6389 * utils.h (producer_is_gcc, producer_is_gcc_ge_4): Move to
6390 producer.h.
6391
5007d765
MK
63922017-09-26 Matthias Klose <doko@ubuntu.com>
6393
6394 * configure.ac: Search ncursesw before ncurses.
6395 Check ncursesw/ncurses.h before ncurses/ncurses.h.
6396 * gdb_curses.h: Include <ncursesw/ncurses.h>
6397 * config.in, configure: Regenerate.
6398
281c4447
RO
63992017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6400
6401 PR gdb/22185
6402 * configure.host <*-*-solaris2.[01], *-*-solaris2.[2-9]*>: Mark as
6403 obsolete.
6404 Use gdb_host sol2 for i[34567]86-*-solaris2*, x86_64-*-solaris2*.
6405 Remove i386sol2 support.
6406 * configure.nat <i386sol2>: Remove.
6407 <sol2-64>: Fold into ...
6408 <sol2>: ... this.
6409 Move common settings to default section.
6410 Add sol-thread.o.
6411 * configure.tgt <i[34567]86-*-solaris2.1[0-9]*,
6412 x86_64-*-solaris2.1[0-9]*>: Rename to ...
6413 <i[34567]86-*-solaris2*, x86_64-*-solaris2*>: ... this.
6414 <i[34567]86-*-solaris*>: Remove.
6415 <sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*>: Remove.
6416
6417 * configure.ac: Remove wctype in libw check.
6418 (_MSE_INT_H): Don't define on Solaris 7-9.
6419 <solaris*>: Remove libthread_db.so.1 check.
6420 * configure: Regenerate.
6421 * config.in: Regenerate.
6422
6423 * proc-service.c: Remove PROC_SERVICE_IS_OLD handling.
6424 (gdb_ps_prochandle_t, gdb_ps_read_buf_t, gdb_ps_write_buf_t)
6425 (gdb_ps_size_t): Remove.
6426 Use base types in users.
6427 * sol-thread.c: Likewise, also for gdb_ps_addr_t.
6428
6429 * NEWS (Changes since GDB 8.0): Document Solaris 2.0-9 removal.
6430
39b06c20
RO
64312017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6432
6433 PR build/22206
6434 * sparc64-tdep.c (adi_tag_fd): Print pid as long.
6435 (adi_is_addr_mapped): Likewise.
6436 (PSR_ICC): Don't redefine.
6437 (PSR_IMPL): Likewise.
6438
6c3e20f1
TT
64392017-09-25 Tom Tromey <tom@tromey.com>
6440
6441 * regcache.c (regcache::dump): Use string_printf.
6442
b292235f
TT
64432017-09-25 Tom Tromey <tom@tromey.com>
6444
6445 * regcache.c (class regcache_invalidator): New.
6446 (struct register_to_invalidate): Remove.
6447 (make_cleanup_regcache_invalidate): Remove.
6448 (regcache::raw_write): Use regcache_invalidator.
6449
9ac86b52
TT
64502017-09-25 Tom Tromey <tom@tromey.com>
6451
6452 * spu-tdep.c (spu2ppu_sniffer): Update.
6453 * regcache.h (make_cleanup_regcache_xfree): Don't declare.
6454 * regcache.c (do_regcache_xfree, make_cleanup_regcache_xfree):
6455 Remove.
6456 * ppc-linux-tdep.c (ppu2spu_sniffer): Update.
6457 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Update.
6458 * frame.h (frame_save_as_regcache): Return std::unique_ptr.
6459 * frame.c (frame_save_as_regcache): Return std::unique_ptr.
6460 (frame_pop): Update.
6461
c0e383c6
TT
64622017-09-25 Tom Tromey <tom@tromey.com>
6463
6464 * spu-tdep.c (spu2ppu_dealloc_cache): Use delete.
6465 * regcache.h (regcache_xfree): Don't declare.
6466 * regcache.c (regcache_xfree): Remove.
6467 (do_regcache_xfree): Use delete.
6468 * ppc-linux-tdep.c (ppu2spu_dealloc_cache): Use delete.
6469 * linux-fork.c (free_fork): Use delete.
6470 (fork_save_infrun_state): Likewise.
6471 * jit.c (jit_dealloc_cache): Use delete.
6472 * infrun.c (discard_infcall_suspend_state): Use delete.
6473
791199cc
TT
64742017-09-25 Tom Tromey <tom@tromey.com>
6475
6476 * regcache.h (regcache_xmalloc): Don't declare.
6477 (regcache_raw_set_cached_value): Update comment.
6478 * regcache.c (regcache_xmalloc): Remove.
6479 * ppc-linux-tdep.c (ppu2spu_sniffer): Use new.
6480 * jit.c (jit_frame_sniffer): Use new.
6481 * frame.c (frame_save_as_regcache): Use new.
6482
289e23aa
AA
64832017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6484
6485 * NEWS: Advertise support for guarded-storage registers on IBM z.
6486
1b63490c
AA
64872017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6488
6489 * s390-linux-nat.c (have_regset_gs): New static variable.
6490 (s390_linux_fetch_inferior_registers): Handle guarded-storage
6491 control block and guarded-storage broadcast control regsets.
6492 (s390_read_description): Detect whether the target has
6493 guarded-storage support, return appropriate tdesc.
6494 * s390-linux-tdep.c (features/s390-gs-linux64.c): New include.
6495 (features/s390x-gs-linux64.c): Likewise.
6496 (struct gdbarch_tdep) <have_gs>: New field.
6497 (s390_regmap_gs, s390_regmap_gsbc, s390_gs_regset)
6498 (s390_gsbc_regset): New variables.
6499 (s390_iterate_over_regset_sections): Iterate over s390_gs_regset
6500 and s390_gsbc_regset, if applicable.
6501 (s390_core_read_description): Check whether core file was from a
6502 target with guarded-storage support; include appropriate regsets.
6503 (s390_gdbarch_init): Add registers for guarded-storage support.
6504 (_initialize_s390_tdep): Initialize new target descriptions that
6505 include registers for guarded-storage support.
6506 * s390-linux-tdep.h (HWCAP_S390_GS, S390_GSD_REGNUM)
6507 (S390_GSSM_REGNUM, S390_GSEPLA_REGNUM)
6508 (S390_BC_GSD_REGNUM, S390_BC_GSSM_REGNUM): New defines.
6509 (S390_NUM_REGS): Adjust macro definition.
6510 (s390_gs_regset, s390_gsbc_regset, tdesc_s390_gs_linux64)
6511 (tdesc_s390x_gs_linux64): New declarations.
6512
96235dc1
AA
65132017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6514
6515 * features/s390-gs-linux64.xml: New file.
6516 * features/s390-gs.xml: New file.
6517 * features/s390-gsbc.xml: New file.
6518 * features/s390x-gs-linux64.xml: New file.
6519 * features/Makefile (WHICH): Add s390-gs-linux64 and
6520 s390x-gs-linux64.
6521 (s390-gs-linux64-expedite, s390x-gs-linux64-expedite): New macros.
6522 (XMLTOC): Add s390-gs-linux64.xml and s390x-linux64.xml.
6523 * features/s390-gs-linux64.c: New generated file.
6524 * features/s390x-gs-linux64.c: New file.
6525 * regformats/s390-gs-linux64.dat: New file.
6526 * regformats/s390x-gs-linux64.dat: New file.
6527
b4a7c699
TT
65282017-09-23 Tom Tromey <tom@tromey.com>
6529
6530 * defs.h (make_cleanup_override_quit_handler): Don't declare.
6531
c2f97536
TT
65322017-09-22 Tom Tromey <tom@tromey.com>
6533
6534 * utils.c (class scoped_input_handler) <m_quit_handler>: Change
6535 type to scoped_restore_tmpl.
6536 <scoped_input_handler>: Initialize m_quit_handler directly.
6537
43573013
SDJ
65382017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
6539
6540 * cli/cli-cmds.c (pwd_command): Use "getcwd (NULL, 0)".
6541 (cd_command): Likewise. Free "current_directory" before
6542 assigning to it.
6543 * main.c (captured_main_1): Use "getcwd (NULL, 0)".
6544 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Likewise.
6545 * top.c (gdb_dirbuf): Remove global declaration.
6546 * top.h (gdb_dirbuf): Likewise.
6547
6ec2e0f5
SDJ
65482017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
6549
6550 * gnulib/aclocal.m4: Regenerate.
6551 * gnulib/config.in: Regenerate.
6552 * gnulib/configure: Regenerate.
6553 * gnulib/import/Makefile.am: Regenerate.
6554 * gnulib/import/Makefile.in: Regenerate.
6555 * gnulib/import/assure.h: New file.
6556 * gnulib/import/at-func.c: Likewise
6557 * gnulib/import/chdir-long.c: New file.
6558 * gnulib/import/chdir-long.h: New file.
6559 * gnulib/import/cloexec.c: New file.
6560 * gnulib/import/cloexec.h: New file.
6561 * gnulib/import/close.c: New file.
6562 * gnulib/import/closedir.c: New file.
6563 * gnulib/import/dirent-private.h: New file.
6564 * gnulib/import/dup-safer.c: New file.
6565 * gnulib/import/dup.c: New file.
6566 * gnulib/import/dup2.c: New file.
6567 * gnulib/import/error.c: New file.
6568 * gnulib/import/error.h: New file.
6569 * gnulib/import/exitfail.c: New file.
6570 * gnulib/import/exitfail.h: New file.
6571 * gnulib/import/fchdir.c: New file.
6572 * gnulib/import/fcntl.c: New file.
6573 * gnulib/import/fcntl.in.h: New file.
6574 * gnulib/import/fd-hook.c: New file.
6575 * gnulib/import/fd-hook.h: New file.
6576 * gnulib/import/fd-safer.c: New file.
6577 * gnulib/import/fdopendir.c: New file.
6578 * gnulib/import/filename.h: New file.
6579 * gnulib/import/filenamecat-lgpl.c: New file.
6580 * gnulib/import/filenamecat.h: New file.
6581 * gnulib/import/fstat.c: New file.
6582 * gnulib/import/fstatat.c: New file.
6583 * gnulib/import/getcwd-lgpl.c: New file.
6584 * gnulib/import/getcwd.c: New file.
6585 * gnulib/import/getdtablesize.c: New file.
6586 * gnulib/import/getlogin_r.c: New file.
6587 * gnulib/import/getprogname.c: New file.
6588 * gnulib/import/getprogname.h: New file.
6589 * gnulib/import/gettext.h: New file.
6590 * gnulib/import/glob-libc.h: New file.
6591 * gnulib/import/glob.c: New file.
6592 * gnulib/import/glob.in.h: New file.
6593 * gnulib/import/intprops.h: New file.
6594 * gnulib/import/m4/chdir-long.m4: New file.
6595 * gnulib/import/m4/close.m4: New file.
6596 * gnulib/import/m4/closedir.m4: New file.
6597 * gnulib/import/m4/d-ino.m4: New file.
6598 * gnulib/import/m4/d-type.m4: New file.
6599 * gnulib/import/m4/dup.m4: New file.
6600 * gnulib/import/m4/dup2.m4: New file.
6601 * gnulib/import/m4/error.m4: New file.
6602 * gnulib/import/m4/fchdir.m4: New file.
6603 * gnulib/import/m4/fcntl.m4: New file.
6604 * gnulib/import/m4/fcntl_h.m4: New file.
6605 * gnulib/import/m4/fdopendir.m4: New file.
6606 * gnulib/import/m4/filenamecat.m4: New file.
6607 * gnulib/import/m4/fstat.m4: New file.
6608 * gnulib/import/m4/fstatat.m4: New file.
6609 * gnulib/import/m4/getcwd-abort-bug.m4: New file.
6610 * gnulib/import/m4/getcwd-path-max.m4: New file.
6611 * gnulib/import/m4/getcwd.m4: New file.
6612 * gnulib/import/m4/getdtablesize.m4: New file.
6613 * gnulib/import/m4/getlogin_r.m4: New file.
6614 * gnulib/import/m4/getprogname.m4: New file.
6615 * gnulib/import/m4/glob.m4: New file.
6616 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
6617 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
6618 * gnulib/import/m4/mempcpy.m4: New file.
6619 * gnulib/import/m4/memrchr.m4: New file.
6620 * gnulib/import/m4/mode_t.m4: New file.
6621 * gnulib/import/m4/msvc-inval.m4: New file.
6622 * gnulib/import/m4/msvc-nothrow.m4: New file.
6623 * gnulib/import/m4/open.m4: New file.
6624 * gnulib/import/m4/openat.m4: New file.
6625 * gnulib/import/m4/opendir.m4: New file.
6626 * gnulib/import/m4/readdir.m4: New file.
6627 * gnulib/import/m4/realloc.m4: New file.
6628 * gnulib/import/m4/rewinddir.m4: New file.
6629 * gnulib/import/m4/save-cwd.m4: New file.
6630 * gnulib/import/m4/strdup.m4: New file.
6631 * gnulib/import/m4/strerror.m4: New file.
6632 * gnulib/import/m4/unistd-safer.m4: New file.
6633 * gnulib/import/mempcpy.c: New file.
6634 * gnulib/import/memrchr.c: New file.
6635 * gnulib/import/msvc-inval.c: New file.
6636 * gnulib/import/msvc-inval.h: New file.
6637 * gnulib/import/msvc-nothrow.c: New file.
6638 * gnulib/import/msvc-nothrow.h: New file.
6639 * gnulib/import/open.c: New file.
6640 * gnulib/import/openat-die.c: New file.
6641 * gnulib/import/openat-priv.h: New file.
6642 * gnulib/import/openat-proc.c: New file.
6643 * gnulib/import/openat.c: New file.
6644 * gnulib/import/openat.h: New file.
6645 * gnulib/import/opendir.c: New file.
6646 * gnulib/import/pipe-safer.c: New file.
6647 * gnulib/import/readdir.c: New file.
6648 * gnulib/import/realloc.c: New file.
6649 * gnulib/import/rewinddir.c: New file.
6650 * gnulib/import/save-cwd.c: New file.
6651 * gnulib/import/save-cwd.h: New file.
6652 * gnulib/import/strdup.c: New file.
6653 * gnulib/import/strerror-override.c: New file.
6654 * gnulib/import/strerror-override.h: New file.
6655 * gnulib/import/strerror.c: New file.
6656 * gnulib/import/unistd--.h: New file.
6657 * gnulib/import/unistd-safer.h: New file.
6658 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
6659 "getcwd" and "glob".
6660 * ser-tcp.c: Undefine "close" before redefining it.
6661
432ae719
SM
66622017-09-21 Simon Marchi <simon.marchi@ericsson.com>
6663
6664 * guile/scm-value.c (gdbscm_value_address): Initialize address,
6665 get rid of res_val.
6666
4fa7574e
RO
66672017-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6668
6669 * configure.nat <i386sol2,i386>: Add fork-inferior.o to NATDEPFILES.
6670 <sol2,sparc>: Likewise.
6671 <sol2-64,i386>: Likewise.
6672
6673 * warning.m4 (AM_GDB_WARNINGS): Disable -Wunknown-pragmas,
6674 -Wdeprecated-declarations on *-*-solaris*.
6675 * configure: Regenerate.
6676
6677 * procfs.c: Include "nat/inferior.h".
6678 (procfs_info_proc): Fix typo.
6679
f6327dcb
KB
66802017-09-21 Kevin Buettner <kevinb@redhat.com>
6681
6682 * remote.c (vector): Include.
6683 (struct private_thread_info): Add field, thread_handle.
6684 (free_private_thread_info): Deallocate storage associated with
6685 thread handle.
6686 (get_private_info_thread): Initialize `thread_handle' field.
6687 (struct thread_item): Add field, thread_handle.
6688 (clear_threads_listing_context): Deallocate storage associated
6689 with thread handle.
6690 (start_thread): Add support for "handle" attribute.
6691 (thread_attributes): Add "handle".
6692 (remote_get_threads_with_qthreadinfo): Initialize thread_handle
6693 field.
6694 (remote_update_thread_list): Update thread_handle.
6695 (remote_thread_handle_to_thread_info): New function.
6696 (init_remote_ops): Initialize to_thread_handle_to_thread_info.
6697
fbbe5337
KB
66982017-09-21 Kevin Buettner <kevinb@redhat.com>
6699
6700 * python/py-inferior.c (gdbpy_thread_from_thread_handle): New
6701 function.
6702 (inferior_object_methods): Add gdbpy_thread_from_thread_handle.
6703 * python/python-internal.h (thread_object_type): Declare.
6704
e04ee09e
KB
67052017-09-21 Kevin Buettner <kevinb@redhat.com>
6706
6707 * target.h (struct target_ops): Add to_thread_handle_to_thread_info.
6708 (target_thread_handle_to_thread_info): Declare.
6709 * target.c (target_thread_handle_to_thread_info): New function.
6710 * target-delegates.c: Regenerate.
6711 * gdbthread.h (find_thread_by_handle): Declare.
6712 * thread.c (find_thread_by_handle): New function.
6713 * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New
6714 function.
6715 (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info.
6716
1e5b66ed
SM
67172017-09-21 Simon Marchi <simon.marchi@ericsson.com>
6718
6719 * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF.
6720
ebe48ba0
SM
67212017-09-21 Simon Marchi <simon.marchi@ericsson.com>
6722
6723 * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF.
6724
0a0bf5dc
YQ
67252017-09-21 Yao Qi <yao.qi@linaro.org>
6726
6727 * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o
6728 to gdb_target_obs.
6729
d1b0a7bf
TT
67302017-09-20 Tom Tromey <tom@tromey.com>
6731
6732 * breakpoint.c (struct counted_command_line): Remove.
6733 (breakpoint_commands): Update.
6734 (alloc_counted_command_line, incref_counted_command_line)
6735 (decref_counted_command_line, do_cleanup_counted_command_line)
6736 (make_cleanup_decref_counted_command_line): Remove.
6737 (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats)
6738 (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check)
6739 (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint)
6740 (save_breakpoints): Update.
6741 * breakpoint.h (counted_command_line): Now a typedef to
6742 shared_ptr.
6743 (struct breakpoint) <commands>: Now a counted_command_line.
6744 (struct bpstats) <command>: Likewise.
6745
48649e1b
TT
67462017-09-20 Tom Tromey <tom@tromey.com>
6747
6748 * breakpoint.c (struct commands_info, do_map_commands_command):
6749 Remove.
6750 (commands_command_1): Update.
6751 (iterate_over_related_breakpoints): Take a function_view.
6752 (do_delete_breakpoint, do_map_delete_breakpoint): Remove.
6753 (delete_command): Update.
6754 (map_breakpoint_numbers): Take a function_view.
6755 (do_disable_breakpoint, do_map_delete_breakpoint): Remove.
6756 (disable_command): Update.
6757 (do_enable_breakpoint, do_map_enable_breakpoint): Remove.
6758 (enable_command): Update.
6759 (struct disp_data, do_enable_breakpoint_disp)
6760 (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint)
6761 (do_map_enable_delete_breakpoint): Remove.
6762 (enable_once_command, enable_count_command, enable_delete_command)
6763 (delete_trace_variable_command): Update.
6764
04afa70c
TT
67652017-09-20 Tom Tromey <tom@tromey.com>
6766
6767 * breakpoint.c (~bpstats): Rename from bpstat_free. Update.
6768 (bpstat_clear): Use delete.
6769 (bpstats): New constructors.
6770 (bpstat_copy, bpstat_stop_status): Use new.
6771 (dprintf_after_condition_true): Update.
6772 * breakpoint.h (bpstats::bpstats): Add constructors.
6773 (bpstats::~bpstats): Add destructor.
6774
c83833f4
PA
67752017-09-20 Pedro Alves <palves@redhat.com>
6776
6777 * eval.c (make_params): Delete, refactored as ...
6778 (class fake_method): ... this new type's ctor.
6779 (fake_method::~fake_method): New.
6780 (evaluate_subexp_standard): Use 'fake_method'.
6781
223ffa71
TT
67822017-09-20 Tom Tromey <tom@tromey.com>
6783
6784 * windows-nat.c (get_windows_debug_event, windows_wait)
6785 (do_initial_windows_stuff, windows_attach): Update.
6786 * utils.c (vwarning, internal_vproblem): Update.
6787 (ui_unregister_input_event_handler_cleanup)
6788 (prepare_to_handle_input): Remove.
6789 (class scoped_input_handler): New.
6790 (defaulted_query, prompt_for_continue): Update.
6791 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
6792 Update.
6793 * top.c (undo_terminal_modifications_before_exit): Update.
6794 * target/target.h (target_terminal_init, target_terminal_inferior)
6795 (target_terminal_ours): Don't declare.
6796 (class target_terminal): New.
6797 * target.h (target_terminal_is_inferior, target_terminal_is_ours)
6798 (target_terminal_ours_for_output)
6799 (make_cleanup_restore_target_terminal): Don't declare.
6800 (target_terminal_info): Remove.
6801 * target.c (enum terminal_state, terminal_state): Remove.
6802 (target_terminal::terminal_state): Define.
6803 (target_terminal::init): Rename from target_terminal_init.
6804 (target_terminal::inferior): Rename from
6805 target_terminal_inferior.
6806 (target_terminal::ours): Rename from target_terminal_ours.
6807 (target_terminal::ours_for_output): Rename from
6808 target_terminal_ours_for_output.
6809 (target_terminal::info): New method.
6810 (cleanup_restore_target_terminal)
6811 (make_cleanup_restore_target_terminal): Remove.
6812 * solib.c (handle_solib_event): Update.
6813 * remote.c (remote_serial_quit_handler): Update.
6814 (remote_terminal_inferior, remote_wait_as): Update.
6815 * record-full.c (record_full_wait_1): Update.
6816 * nto-procfs.c (procfs_create_inferior): Update.
6817 * nat/fork-inferior.c (startup_inferior): Update.
6818 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
6819 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
6820 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
6821 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
6822 (mi_breakpoint_created, mi_breakpoint_deleted)
6823 (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded)
6824 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
6825 (mi_user_selected_context_changed, report_initial_inferior):
6826 Update.
6827 * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours)
6828 (linux_nat_terminal_inferior): Update.
6829 * infrun.c (follow_fork_inferior)
6830 (handle_vfork_child_exec_or_exit, do_target_resume)
6831 (check_curr_ui_sync_execution_done, handle_inferior_event_1)
6832 (handle_signal_stop, maybe_remove_breakpoints, normal_stop):
6833 Update.
6834 * inflow.c (child_terminal_init, info_terminal_command): Update.
6835 * infcmd.c (post_create_inferior, continue_1, prepare_one_step)
6836 (attach_command): Update.
6837 * infcall.c (call_thread_fsm_should_stop): Update.
6838 * gnu-nat.c (gnu_attach): Update.
6839 * extension.c (struct active_ext_lang_state)
6840 (restore_active_ext_lang): Update.
6841 * exceptions.c (print_flush): Update.
6842 * event-top.c (async_enable_stdin, default_quit_handler): Update.
6843 (struct quit_handler_cleanup_data, restore_quit_handler)
6844 (restore_quit_handler_dtor, make_cleanup_override_quit_handler):
6845 Remove.
6846 * cp-support.c (gdb_demangle): Update.
6847 * breakpoint.c (update_inserted_breakpoint_locations)
6848 (insert_breakpoint_locations, handle_jit_event)
6849 (disable_breakpoints_in_unloaded_shlib): Update.
6850 * annotate.c (annotate_breakpoints_invalid)
6851 (annotate_frames_invalid): Update.
6852
013af3fc
TT
68532017-09-20 Tom Tromey <tom@tromey.com>
6854
6855 * main.c (catch_command_errors): Rename from
6856 catch_command_errors_const.
6857 (captured_main_1): Update.
6858
06871ae8
PA
68592017-09-20 Pedro Alves <palves@redhat.com>
6860
6861 * cli/cli-cmds.c (list_command): Use print_sal_location.
6862 (print_sal_location): New function.
6863 (ambiguous_line_spec): Use print_sal_location.
6864 * linespec.c (symbol_to_sal): Record the symbol in the sal.
6865 * symtab.c (find_function_start_sal): Likewise.
6866 * symtab.h (symtab_and_line::symbol): New field.
6867
e5f25bc5
PA
68682017-09-20 Pedro Alves <palves@redhat.com>
6869
6870 * linespec.c (minsym_found): Handle non-text minsyms.
6871 (symbol_to_sal): Record a sal.pc for non-block, non-label symbols.
6872
1b7fa39e
WT
68732017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
6874
6875 * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing
6876 backslash.
6877
37dd0825
WT
68782017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
6879
6880 * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use
6881 vmovups instead vmovaps.
6882 (move_zmm_data_to_memory): Use vmovups instead vmovaps.
6883
4e5a4f58
JB
68842017-09-19 John Baldwin <jhb@FreeBSD.org>
6885
6886 * NEWS (Changes since GDB 8.0): Add starti.
6887 * infcmd.c (enum run_break): New.
6888 (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN
6889 case.
6890 (run_command): Use enum run_how.
6891 (start_command): Likewise.
6892 (starti_command): New function.
6893 (RUN_ARGS_HELP): New macro.
6894 (_initialize_infcmd): Use RUN_ARGS_HELP for run and start
6895 commands. Add starti command.
6896
aa70c9f1
YQ
68972017-09-19 Yao Qi <yao.qi@linaro.org>
6898
6899 * Makefile.in (monitor.o): Remove the rule.
6900
d6541620
YQ
69012017-09-19 Yao Qi <yao.qi@linaro.org>
6902
6903 * annotate.h (struct annotate_arg_emitter): Use
6904 DISABLE_COPY_AND_ASSIGN.
6905 * common/refcounted-object.h (refcounted_object): Likewise.
6906 * completer.h (struct completion_result): Likewise.
6907 * dwarf2read.c (struct dwarf2_per_objfile): Likewise.
6908 * filename-seen-cache.h (filename_seen_cache): Likewise.
6909 * gdbcore.h (thread_section_name): Likewise.
6910 * gdb_regex.h (compiled_regex): Likewise.
6911 * gdbthread.h (scoped_restore_current_thread): Likewise.
6912 * inferior.h (scoped_restore_current_inferior): Likewise.
6913 * jit.c (jit_reader): Likewise.
6914 * linespec.h (struct linespec_result): Likewise.
6915 * mi/mi-parse.h (struct mi_parse): Likewise.
6916 * nat/fork-inferior.c (execv_argv): Likewise.
6917 * progspace.h (scoped_restore_current_program_space): Likewise.
6918 * python/python-internal.h (class gdbpy_enter): Likewise.
6919 * regcache.h (regcache): Likewise.
6920 * target-descriptions.c (struct tdesc_reg): Likewise.
6921 (struct tdesc_type): Likewise.
6922 (struct tdesc_feature): Likewise.
6923 * ui-out.h (ui_out_emit_type): Likewise.
6924
0615127c
SM
69252017-09-18 Simon Marchi <simon.marchi@ericsson.com>
6926
6927 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove
6928 label abort_expression.
6929
5e187554
SM
69302017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6931
6932 * common/buffer.c (buffer_xml_printf): Adjust.
6933 * common/xml-utils.c (xml_escape_text): Change return type to
6934 std::string, update code accordingly.
6935 * common/xml-utils.h (xml_escape_text): Change return type to
6936 std::string.
6937 * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust.
6938 * windows-tdep.c (windows_xfer_shared_library): Adjust.
6939 * unittests/xml-utils-selftests.c (test_xml_escape_text):
6940 Adjust.
6941
c3d7b541
SM
69422017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6943
6944 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file.
6945 (SUBDIR_UNITTESTS_OBS): Add new object file.
6946 * unittests/xml-utils-selftests.c: New file.
6947
1526853e
SM
69482017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6949
6950 * common/selftest.h (selftest): New struct/interface.
6951 (register_test): Add name parameter, add new overload.
6952 (run_tests): Add filter parameter.
6953 (for_each_selftest_ftype): New typedef.
6954 (for_each_selftest): New declaration.
6955 * common/selftest.c (tests): Change type to
6956 map<string, unique_ptr<selftest>>.
6957 (simple_selftest): New struct.
6958 (register_test): New function.
6959 (register_test): Add name parameter and use it.
6960 (run_tests): Add filter parameter and use it. Add prints.
6961 Adjust to vector -> map change.
6962 * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when
6963 registering selftests.
6964 * arm-tdep.c (_initialize_arm_tdep): Likewise.
6965 * disasm-selftests.c (_initialize_disasm_selftests): Likewise.
6966 * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise.
6967 * dwarf2loc.c (_initialize_dwarf2loc): Likewise.
6968 * findvar.c (_initialize_findvar): Likewise.
6969 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise.
6970 * maint.c (maintenance_selftest): Update call to run_tests.
6971 (maintenance_info_selftests): New function.
6972 (_initialize_maint_cmds): Register "maintenance info selftests"
6973 command. Update "maintenance selftest" doc.
6974 * regcache.c (_initialize_regcache): Add names when registering
6975 selftests.
6976 * rust-exp.y (_initialize_rust_exp): Likewise.
6977 * selftest-arch.c (gdbarch_selftest): New struct.
6978 (gdbarch_tests): Remove.
6979 (register_test_foreach_arch): Add name parameter. Call
6980 register_test.
6981 (tests_with_arch): Remove, move most content to
6982 gdbarch_selftest::operator().
6983 (_initialize_selftests_foreach_arch): Remove.
6984 * selftest-arch.h (register_test_foreach_arch): Add name
6985 parameter.
6986 (run_tests_with_arch): New declaration.
6987 * utils-selftests.c (_initialize_utils_selftests): Add names
6988 when registering selftests.
6989 * utils.c (_initialize_utils): Likewise.
6990 * unittests/array-view-selftests.c
6991 (_initialize_array_view_selftests): Likewise.
6992 * unittests/environ-selftests.c (_initialize_environ_selftests):
6993 Likewise.
6994 * unittests/function-view-selftests.c
6995 (_initialize_function_view_selftests): Likewise.
6996 * unittests/offset-type-selftests.c
6997 (_initialize_offset_type_selftests): Likewise.
6998 * unittests/optional-selftests.c
6999 (_initialize_optional_selftests): Likewise.
7000 * unittests/scoped_restore-selftests.c
7001 (_initialize_scoped_restore_selftests): Likewise.
7002 * NEWS: Document "maintenance selftest" and "maint info
7003 selftests".
7004
5846367a
SM
70052017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7006
7007 * mi/mi-main.c (mi_load_progress): Restore current_uiout using a
7008 scoped_restore.
7009
bd77e8ff
SM
70102017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7011
7012 * mi/mi-main.c (mi_load_progress): Make uiout variable
7013 a unique_ptr.
7014
26a67918
PA
70152017-09-15 Pedro Alves <palves@redhat.com>
7016
7017 * compile/compile-c-types.c (convert_enum, convert_int)
7018 (convert_float): Adjust to refer to int_type_v0 and float_type_v0.
7019
3f8a7804
SM
70202017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7021
7022 * dwarf2read.c (copy_string): Remove.
7023 (parse_macro_definition): Replace copy_string with savestring.
7024
8d200706
YQ
70252017-09-15 Yao Qi <yao.qi@linaro.org>
7026
7027 * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to
7028 gdb_target_obs.
7029 (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*):
7030 Likewise.
7031 (i[34567]86-*-linux*): Likewise.
7032
d185219d
SM
70332017-09-14 Simon Marchi <simon.marchi@ericsson.com>
7034
7035 * dwarf2expr.h (dwarf_stack_value): Add constructor.
7036 (dwarf_expr_context) <~dwarf_expr_context>: Define as default.
7037 <stack>: Change type to std::vector.
7038 <stack_len, stack_allocated>: Remove.
7039 <grow_stack>: Remove.
7040 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
7041 (dwarf_expr_context::~dwarf_expr_context): Remove.
7042 (dwarf_expr_context::grow_stack): Remove.
7043 (dwarf_expr_context::push): Adjust.
7044 (dwarf_expr_context::pop): Adjust.
7045 (dwarf_expr_context::fetch): Adjust.
7046 (dwarf_expr_context::fetch_in_stack_memory): Adjust.
7047 (dwarf_expr_context::stack_empty_p): Adjust.
7048 (dwarf_expr_context::execute_stack_op): Adjust.
7049
eccd80d6
SM
70502017-09-14 Simon Marchi <simon.marchi@ericsson.com>
7051
7052 * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change
7053 return type to bool.
7054 * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise.
7055
69009882
SM
70562017-09-14 Simon Marchi <simon.marchi@ericsson.com>
7057
7058 * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>:
7059 Change type to bool.
7060 (dwarf_stack_value) <in_stack_memory>: Likewise.
7061 (dwarf_expr_context) <push_address>: Change parameter type to
7062 bool.
7063 <fetch_in_stack_memory>: Change return type to bool.
7064 <push>: Change parameter type to bool.
7065 * dwarf2expr.c (dwarf_expr_context::push): Change parameter type
7066 to bool.
7067 (dwarf_expr_context::push_address): Likewise.
7068 (dwarf_expr_context::fetch_in_stack_memory): Change return type
7069 to bool.
7070 (dwarf_expr_context::execute_stack_op): Adjust.
7071 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust.
7072
1e467161
SM
70732017-09-14 Simon Marchi <simon.marchi@ericsson.com>
7074
7075 * dwarf2expr.h (struct dwarf_expr_piece): Move up.
7076 (struct dwarf_expr_context) <n_pieces>: Remove.
7077 <pieces>: Change type to std::vector.
7078 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
7079 (dwarf_expr_context::~dwarf_expr_context): Don't manually free
7080 pieces.
7081 (dwarf_expr_context::add_piece): Adjust.
7082 * dwarf2loc.c (struct piece_closure): Initialize fields.
7083 <n_pieces>: Remove.
7084 <pieces>: Change type to std::vector.
7085 (allocate_piece_closure): Adjust, change parameter to
7086 std::vector rvalue and std::move it to piece_closure.
7087 (rw_pieced_value): Adjust.
7088 (check_pieced_synthetic_pointer): Adjust.
7089 (indirect_synthetic_pointer): Adjust.
7090 (coerce_pieced_ref): Adjust.
7091 (free_pieced_value_closure): Adjust. Use delete to free
7092 piece_closure.
7093 (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces
7094 to allocate_piece_closure.
7095 (dwarf2_loc_desc_get_symbol_read_needs): Adjust.
7096
0782db84
SM
70972017-09-12 Simon Marchi <simon.marchi@ericsson.com>
7098
7099 * probe.h (probe_ops_cp): Remove typedef.
7100 (DEF_VEC_P (probe_ops_cp)): Remove.
7101 (all_probe_ops): Change type to std::vector.
7102 * probe.c (info_probes_for_ops): Adjust to vector change.
7103 (probe_linespec_to_ops): Likewise.
7104 (all_probe_ops): Change type to std::vector.
7105 (_initialize_probe): Adjust to vector change.
7106 * dtrace-probe.c (_initialize_dtrace_probe): Likewise.
7107 * elfread.c (elf_get_probes): Likewise.
7108 * stap-probe.c (_initialize_stap_probe): Likewise.
7109
1eac6bea
SM
71102017-09-12 Simon Marchi <simon.marchi@ericsson.com>
7111
7112 * probe.h (struct bound_probe): Define constructors.
7113 * probe.c (bound_probe_s): Remove typedef.
7114 (DEF_VEC_O (bound_probe_s)): Remove VEC.
7115 (collect_probes): Change return type to std::vector, remove
7116 cleanup.
7117 (compare_probes): Return bool, change parameter type. Change
7118 semantic to "less than".
7119 (gen_ui_out_table_header_info): Change parameter to std::vector
7120 and update.
7121 (exists_probe_with_pops): Likewise.
7122 (info_probes_for_ops): Update to std::vector change.
7123 (enable_probes_command): Likewise.
7124 (disable_probes_command): Likewise.
7125
aaa63a31
SM
71262017-09-12 Simon Marchi <simon.marchi@ericsson.com>
7127
7128 * probe.h (struct probe_ops) <get_probes>: Change parameter from
7129 vec to std::vector.
7130 * probe.c (parse_probes_in_pspace): Update.
7131 (find_probes_in_objfile): Update.
7132 (find_probe_by_pc): Update.
7133 (collect_probes): Update.
7134 (probe_any_get_probes): Update.
7135 * symfile.h (struct sym_probe_fns) <sym_get_probes> Change
7136 return type to reference to std::vector.
7137 * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to
7138 std::vector and update.
7139 (dtrace_process_dof): Likewise.
7140 (dtrace_get_probes): Likewise.
7141 * elfread.c (elf_get_probes): Change return type to std::vector,
7142 store an std::vector in bfd_data.
7143 (probe_key_free): Update to std::vector.
7144 * stap-probe.c (handle_stap_probe): Change parameter to
7145 std::vector and update.
7146 (stap_get_probes): Likewise.
7147 * symfile-debug.c (debug_sym_get_probes): Change return type to
7148 std::vector and update.
7149
cb85b21b
TT
71502017-09-11 Tom Tromey <tom@tromey.com>
7151
7152 * breakpoint.c (program_breakpoint_here_p): Update.
7153 * target.c (make_scoped_restore_show_memory_breakpoints): Rename
7154 from make_show_memory_breakpoints_cleanup. Return a
7155 scoped_restore_tmpl<int>.
7156 (restore_show_memory_breakpoints): Remove.
7157 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update.
7158 * mem-break.c (memory_validate_breakpoint): Update.
7159 * ia64-tdep.c (ia64_memory_insert_breakpoint): Update.
7160 (ia64_memory_remove_breakpoint): Update.
7161 (ia64_breakpoint_from_pc): Update.
7162 * target.h (make_scoped_restore_show_memory_breakpoints): Rename
7163 from make_show_memory_breakpoints_cleanup.
7164
8fbc99ef
TT
71652017-09-11 Tom Tromey <tom@tromey.com>
7166
7167 * d-namespace.c (d_lookup_symbol): Use std::string.
7168 (find_symbol_in_baseclass): Likewise.
7169
50feb4bd
TT
71702017-09-11 Tom Tromey <tom@tromey.com>
7171
7172 * ctf.c (ctf_start): Use std::string.
7173
c6dc63a1
TT
71742017-09-11 Tom Tromey <tom@tromey.com>
7175
7176 * ada-lang.c (is_known_support_routine): Update.
7177 (ada_unhandled_exception_name_addr_from_raise): Update.
7178 * guile/scm-frame.c (gdbscm_frame_name): Update.
7179 * python/py-frame.c (frapy_name): Update.
7180 (frapy_function): Update.
7181 * stack.h (find_frame_funname): Update.
7182 * stack.c (find_frame_funname): Return unique_xmalloc_ptr.
7183 (print_frame): Update.
7184
d6b9b80f
TT
71852017-09-11 Tom Tromey <tom@tromey.com>
7186
7187 * findcmd.c (put_bits): Take a gdb::byte_vector.
7188 (parse_find_args): Return gdb::byte_vector. "args" now const.
7189 Remove "pattern_bufp" and "pattern_lenp" parameters. Remove
7190 cleanups.
7191 (find_command): Update.
7192
a9921622
TT
71932017-09-11 Tom Tromey <tom@tromey.com>
7194
7195 * cli/cli-script.c (class scoped_restore_hook_in): New.
7196 (clear_hook_in_cleanup): Remove.
7197 (execute_cmd_pre_hook, execute_cmd_post_hook): Use
7198 scoped_restore_hook_in.
7199
be0d7abb
TT
72002017-09-11 Tom Tromey <tom@tromey.com>
7201
7202 * cli/cli-script.c (restore_interp): Remove.
7203 (read_command_lines): Use scoped_restore_interp.
7204 * interps.c (scoped_restore_interp::set_temp): Rename from
7205 interp_set_temp.
7206 * interps.h (class scoped_restore_interp): New.
7207 (interp_set_temp): Remove.
7208
00f675ff
TT
72092017-09-11 Tom Tromey <tom@tromey.com>
7210
7211 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
7212 (mi_cmd_catch_exception, mi_catch_load_unload): Update.
7213 * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a
7214 scoped_restore.
7215 (mi_cmd_break_insert_1): Update.
7216 * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a
7217 scoped_restore.
7218
cb791d59
TT
72192017-09-11 Tom Tromey <tom@tromey.com>
7220
7221 * demangle.c (demangle_command): Update.
7222 * breakpoint.c (disable_command): Update.
7223 (enable_command): Update.
7224 (find_location_by_number): Make "number" const. Use
7225 get_number_trailer.
7226 * cli/cli-utils.c (extract_arg): Return std::string.
7227 * probe.c (parse_probe_linespec): Update. Change types.
7228 (collect_probes): Take string arguments.
7229 (parse_probe_linespec): Likewise.
7230 (info_probes_for_ops): Update.
7231 (enable_probes_command): Update.
7232 (disable_probes_command): Update.
7233 * break-catch-sig.c (catch_signal_split_args): Update.
7234 * mi/mi-parse.c (mi_parse): Update.
7235
2039bd9f
TT
72362017-09-11 Tom Tromey <tom@tromey.com>
7237
7238 * language.h (language_enum): Make argument const.
7239 * language.c (language_enum): Make argument const.
7240
f1735a53
TT
72412017-09-11 Tom Tromey <tom@tromey.com>
7242
7243 * common/common-utils.h (skip_to_space): Remove macro, redeclare
7244 as function.
7245 (skip_to_space): Rename from skip_to_space_const.
7246 * common/common-utils.c (skip_to_space): New function.
7247 (skip_to_space): Rename from skip_to_space_const.
7248 * cli/cli-utils.h (get_number): Rename from get_number_const.
7249 (extract_arg): Rename from extract_arg_const.
7250 * cli/cli-utils.c (get_number): Rename from get_number_const.
7251 (extract_arg): Rename from extract_arg_const.
7252 (number_or_range_parser::get_number): Use ::get_number.
7253 * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c,
7254 break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c,
7255 cli/cli-script.c, cli/cli-setshow.c, compile/compile.c,
7256 completer.c, demangle.c, disasm.c, findcmd.c, linespec.c,
7257 linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c,
7258 minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c,
7259 python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c,
7260 stap-probe.c, tid-parse.c, tracepoint.c: Update all callers.
7261
7d221d74
TT
72622017-09-11 Tom Tromey <tom@tromey.com>
7263
7264 * python/python.c (do_start_initialization): Use
7265 py-event-types.def to initialize types.
7266 Define all object type structures.
7267 * python/python-internal.h: Don't declare event initialization
7268 functions.
7269 * python/py-threadevent.c (thread_event_object_type): Don't
7270 define.
7271 * python/py-stopevent.c (stop_event_object_type): Don't define.
7272 * python/py-signalevent.c (signal_event_object_type): Don't
7273 declare or define.
7274 * python/py-newobjfileevent.c (new_objfile_event_object_type)
7275 (clear_objfiles_event_object_type): Don't declare or define.
7276 * python/py-infevents.c (inferior_call_pre_event_object_type)
7277 (inferior_call_post_event_object_type)
7278 (register_changed_event_object_type)
7279 (memory_changed_event_object_type): Don't declare or define.
7280 * python/py-inferior.c (new_thread_event_object_type)
7281 (new_inferior_event_object_type)
7282 (inferior_deleted_event_object_type): Don't declare or define.
7283 * python/py-exitedevent.c (exited_event_object_type): Don't
7284 declare or define.
7285 * python/py-evts.c (gdbpy_initialize_py_events): Use
7286 py-all-events.def.
7287 * python/py-events.h (thread_event_object_type): Don't declare.
7288 (events_object): Use py-all-events.def.
7289 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use
7290 py-event-types.def.
7291 * python/py-event-types.def: New file.
7292 * python/py-continueevent.c (create_continue_event_object): Don't
7293 declare or define.
7294 * python/py-bpevent.c (breakpoint_event_object_type): Don't
7295 declare or define.
7296 * python/py-all-events.def: New file.
7297
35c61a1d
TT
72982017-09-11 Tom Tromey <tom@tromey.com>
7299
7300 * python/py-threadevent.c (create_thread_event_object): Return
7301 gdbpy_ref.
7302 * python/py-stopevent.h (create_stop_event_object)
7303 (create_breakpoint_event_object, create_signal_event_object):
7304 Update.
7305 * python/py-stopevent.c (create_stop_event_object): Return
7306 gdbpy_ref.
7307 (emit_stop_event): Update.
7308 * python/py-signalevent.c (create_signal_event_object): Return
7309 gdbpy_ref.
7310 * python/py-infevents.c (create_inferior_call_event_object):
7311 Update.
7312 * python/py-event.h (create_event_object)
7313 (create_thread_event_object): Update.
7314 * python/py-event.c (create_event_object): Return gdbpy_ref.
7315 * python/py-continueevent.c: Return gdbpy_ref.
7316 * python/py-bpevent.c (create_breakpoint_event_object): Return
7317 gdbpy_ref.
7318
7c96f8c1
TT
73192017-09-11 Tom Tromey <tom@tromey.com>
7320
7321 PR python/15622:
7322 * NEWS: Add entry.
7323 * python/python.c (do_start_initialization): Initialize new event
7324 types.
7325 * python/python-internal.h (gdbpy_initialize_new_inferior_event)
7326 (gdbpy_initialize_inferior_deleted_event)
7327 (gdbpy_initialize_new_thread_event): Declare.
7328 * python/py-threadevent.c (create_thread_event_object): Add option
7329 "thread" parameter.
7330 * python/py-inferior.c (new_thread_event_object_type)
7331 (new_inferior_event_object_type)
7332 (inferior_deleted_event_object_type): Declare.
7333 (python_new_inferior, python_inferior_deleted): New functions.
7334 (add_thread_object): Emit new_thread event.
7335 (gdbpy_initialize_inferior): Attach new functions to corresponding
7336 observers.
7337 (new_thread, new_inferior, inferior_deleted): Define new event
7338 types.
7339 * python/py-evts.c (gdbpy_initialize_py_events): Add new
7340 registries.
7341 * python/py-events.h (events_object) <new_inferior,
7342 inferior_deleted, new_thread>: New fields.
7343 * python/py-event.h (create_thread_event_breakpoint): Add optional
7344 "thread" parameter.
7345
72542b8e
AB
73462017-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
7347
7348 * utils.c (abort_with_message): Don't compare gdb_stderr to NULL,
7349 check current_ui instead.
7350 (internal_vproblem): Likewise.
7351
0d64823e
SM
73522017-09-09 Simon Marchi <simon.marchi@ericsson.com>
7353
7354 * thread.c (print_thread_info_1): Remove unnecessary calls to
7355 uiout->is_mi_like_p.
7356
eb1e02fd
TT
73572017-09-09 Tom Tromey <tom@tromey.com>
7358
7359 * namespace.h (add_using_directive): Update.
7360 * namespace.c (add_using_directive): Change type of excludes to
7361 std::vector.
7362 * dwarf2read.c (read_import_statement): Use std::vector.
7363 (read_namespace): Update.
7364 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
7365
0fc21fd8
TT
73662017-09-09 Tom Tromey <tom@tromey.com>
7367
7368 * linespec.c (create_sals_line_offset): Use gdb::def_vector.
7369
49663d05
TT
73702017-09-09 Tom Tromey <tom@tromey.com>
7371
7372 * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector.
7373
0b868b60
TT
73742017-09-09 Tom Tromey <tom@tromey.com>
7375
7376 * stack.c (func_command): Use gdb::def_vector.
7377
c0470d48
TT
73782017-09-09 Tom Tromey <tom@tromey.com>
7379
7380 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional,
7381 ui_out_emit_list, ui_out_emit_tuple.
7382 (mi_cmd_var_update): Likewise.
7383
ca5909c7
TT
73842017-09-09 Tom Tromey <tom@tromey.com>
7385
7386 * mi/mi-interp.c (mi_user_selected_context_changed): Use
7387 ui_out_redirect_pop.
7388 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
7389 ui_out_redirect_pop.
7390 * utils.c (do_ui_out_redirect_pop)
7391 (make_cleanup_ui_out_redirect_pop): Remove.
7392 * top.c (execute_command_to_string): Use ui_out_redirect_pop.
7393 * utils.h (make_cleanup_ui_out_redirect_pop): Remove.
7394 * ui-out.h (ui_out_redirect_pop): New class.
7395
e6a2252a
TT
73962017-09-09 Tom Tromey <tom@tromey.com>
7397
7398 * mi/mi-main.c (output_cores): Use ui_out_emit_list.
7399 (list_available_thread_groups, mi_cmd_list_thread_groups)
7400 (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory)
7401 (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected):
7402 Likewise.
7403
393702cd
TT
74042017-09-09 Tom Tromey <tom@tromey.com>
7405
7406 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
7407 ui_out_emit_tuple.
7408
76f9c9cf
TT
74092017-09-09 Tom Tromey <tom@tromey.com>
7410
7411 * target.c (flash_erase_command): Use ui_out_emit_tuple.
7412 * stack.c (print_frame): Use ui_out_emit_tuple.
7413 * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple.
7414 (info_spu_mailbox_command, info_spu_dma_command)
7415 (info_spu_proxydma_command): Likewise.
7416 * mi/mi-main.c (mi_cmd_trace_frame_collected): Use
7417 ui_out_emit_tuple, gdb::byte_vector, bin2hex.
7418 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
7419 ui_out_emit_tuple.
7420 * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple.
7421
dc9fe180
TT
74222017-09-09 Tom Tromey <tom@tromey.com>
7423
7424 * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove.
7425 (class ui_out_emit_table): Update comment.
7426 * ui-out.c (do_cleanup_table_end)
7427 (make_cleanup_ui_out_table_begin_end): Remove.
7428 * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table.
7429 (info_spu_dma_cmdlist): Likewise.
7430 * probe.c (info_probes_for_ops): Use ui_out_emit_table.
7431 * darwin-nat-info.c (darwin_debug_regions_recurse): Use
7432 ui_out_emit_table.
7433
f8cc3da6
TT
74342017-09-09 Tom Tromey <tom@tromey.com>
7435
7436 * thread.c (print_thread_info_1): Use ui_out_emit_table,
7437 ui_out_emit_list, gdb::optional.
7438
481695ed
JB
74392017-09-09 John Baldwin <jhb@FreeBSD.org>
7440
7441 * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat
7442 prototype.
7443 * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep
7444 prototype.
7445 * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep
7446 prototype.
7447 * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype.
7448 * ada-exp.y: Remove _initialize_ada_exp prototype.
7449 * ada-lang.c: Remove _initialize_ada_language prototype.
7450 * ada-tasks.c: Remove _initialize_tasks prototype.
7451 * addrmap.c: Remove _initialize_addrmap prototype.
7452 * agent.c: Remove _initialize_agent prototype.
7453 * aix-thread.c: Remove _initialize_aix_thread prototype.
7454 * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype.
7455 * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype.
7456 * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep
7457 prototype.
7458 * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype.
7459 * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype.
7460 * alpha-tdep.c: Remove _initialize_alpha_tdep prototype.
7461 * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep
7462 prototype.
7463 * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep
7464 prototype.
7465 * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype.
7466 * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype.
7467 * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype.
7468 * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep
7469 prototype.
7470 * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype.
7471 * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype.
7472 * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype.
7473 * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype.
7474 * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
7475 * amd64-tdep.c: Remove _initialize_amd64_tdep prototype.
7476 * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat
7477 prototype.
7478 * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep
7479 prototype.
7480 * annotate.c: Remove _initialize_annotate prototype.
7481 * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype.
7482 * arc-tdep.c: Remove _initialize_arc_tdep prototype.
7483 * arch-utils.c: Remove _initialize_gdbarch_utils prototype.
7484 * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype.
7485 * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype.
7486 * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype.
7487 * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype.
7488 * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep
7489 prototype.
7490 * arm-tdep.c: Remove _initialize_arm_tdep prototype.
7491 * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype.
7492 * auto-load.c: Remove _initialize_auto_load prototype.
7493 * auxv.c: Remove _initialize_auxv prototype.
7494 * avr-tdep.c: Remove _initialize_avr_tdep prototype.
7495 * ax-gdb.c: Remove _initialize_ax_gdb prototype.
7496 * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype.
7497 * bfin-tdep.c: Remove _initialize_bfin_tdep prototype.
7498 * break-catch-sig.c: Remove _initialize_break_catch_sig prototype.
7499 * break-catch-syscall.c: Remove _initialize_break_catch_syscall
7500 prototype.
7501 * break-catch-throw.c: Remove _initialize_break_catch_throw
7502 prototype.
7503 * breakpoint.c: Remove _initialize_breakpoint prototype.
7504 * bsd-uthread.c: Remove _initialize_bsd_uthread prototype.
7505 * btrace.c: Remove _initialize_btrace prototype.
7506 * charset.c: Remove _initialize_charset prototype.
7507 * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype.
7508 * cli/cli-dump.c: Remove _initialize_cli_dump prototype.
7509 * cli/cli-interp.c: Remove _initialize_cli_interp prototype.
7510 * cli/cli-logging.c: Remove _initialize_cli_logging prototype.
7511 * cli/cli-script.c: Remove _initialize_cli_script prototype.
7512 * coff-pe-read.c: Remove _initialize_coff_pe_read prototype.
7513 * coffread.c: Remove _initialize_coffread prototype.
7514 * compile/compile.c: Remove _initialize_compile prototype.
7515 * complaints.c: Remove _initialize_complaints prototype.
7516 * completer.c: Remove _initialize_completer prototype.
7517 * copying.awk: Remove _initialize_copying prototype.
7518 * copying.c: Regenerate.
7519 * core-regset.c: Remove _initialize_core_regset prototype.
7520 * corefile.c: Remove _initialize_core prototype.
7521 * corelow.c: Remove _initialize_corelow prototype.
7522 * cp-abi.c: Remove _initialize_cp_abi prototype.
7523 * cp-namespace.c: Remove _initialize_cp_namespace prototype.
7524 * cp-support.c: Remove _initialize_cp_support prototype.
7525 * cp-valprint.c: Remove _initialize_cp_valprint prototype.
7526 * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype.
7527 * cris-tdep.c: Remove _initialize_cris_tdep prototype.
7528 * ctf.c: Remove _initialize_ctf prototype.
7529 * d-lang.c: Remove _initialize_d_language prototype.
7530 * darwin-nat-info.c: Remove _initialize_darwin_info_commands
7531 prototype.
7532 * darwin-nat.c: Remove _initialize_darwin_inferior prototype.
7533 * dbxread.c: Remove _initialize_dbxread prototype.
7534 * dcache.c: Remove _initialize_dcache prototype.
7535 * demangle.c: Remove _initialize_demangler prototype.
7536 * disasm-selftests.c: Remove _initialize_disasm_selftests
7537 prototype.
7538 * disasm.c: Remove _initialize_disasm prototype.
7539 * dtrace-probe.c: Remove _initialize_dtrace_probe prototype.
7540 * dummy-frame.c: Remove _initialize_dummy_frame prototype.
7541 * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame
7542 prototype.
7543 * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype.
7544 * dwarf2expr.c: Remove _initialize_dwarf2expr prototype.
7545 * dwarf2loc.c: Remove _initialize_dwarf2loc prototype.
7546 * dwarf2read.c: Remove _initialize_dwarf2_read prototype.
7547 * elfread.c: Remove _initialize_elfread prototype.
7548 * exec.c: Remove _initialize_exec prototype.
7549 * extension.c: Remove _initialize_extension prototype.
7550 * f-lang.c: Remove _initialize_f_language prototype.
7551 * f-valprint.c: Remove _initialize_f_valprint prototype.
7552 * fbsd-nat.c: Remove _initialize_fbsd_nat prototype.
7553 * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype.
7554 * filesystem.c: Remove _initialize_filesystem prototype.
7555 * findcmd.c: Remove _initialize_mem_search prototype.
7556 * fork-child.c: Remove _initialize_fork_child prototype.
7557 * frame-base.c: Remove _initialize_frame_base prototype.
7558 * frame-unwind.c: Remove _initialize_frame_unwind prototype.
7559 * frame.c: Remove _initialize_frame prototype.
7560 * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype.
7561 * frv-tdep.c: Remove _initialize_frv_tdep prototype.
7562 * ft32-tdep.c: Remove _initialize_ft32_tdep prototype.
7563 * gcore.c: Remove _initialize_gcore prototype.
7564 * gdb_bfd.c: Remove _initialize_gdb_bfd prototype.
7565 * gdbarch.c: Regenerate.
7566 * gdbarch.sh: Remove _initialize_gdbarch prototype.
7567 * gdbtypes.c: Remove _initialize_gdbtypes prototype.
7568 * gnu-nat.c: Remove _initialize_gnu_nat prototype.
7569 * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype.
7570 * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype.
7571 * go-lang.c: Remove _initialize_go_language prototype.
7572 * go32-nat.c: Remove _initialize_go32_nat prototype.
7573 * guile/guile.c: Remove _initialize_guile prototype.
7574 * h8300-tdep.c: Remove _initialize_h8300_tdep prototype.
7575 * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype.
7576 * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype.
7577 * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype.
7578 * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype.
7579 * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype.
7580 * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype.
7581 * hppa-tdep.c: Remove _initialize_hppa_tdep prototype.
7582 * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype.
7583 * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep
7584 prototype.
7585 * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep
7586 prototype.
7587 * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype.
7588 * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype.
7589 * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype.
7590 * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype.
7591 * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype.
7592 * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype.
7593 * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype.
7594 * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype.
7595 * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype.
7596 * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype.
7597 * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype.
7598 * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype.
7599 * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype.
7600 * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
7601 * i386-tdep.c: Remove _initialize_i386_tdep prototype.
7602 * i386-windows-nat.c: Remove _initialize_i386_windows_nat
7603 prototype.
7604 * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame
7605 prototype.
7606 * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype.
7607 * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype.
7608 * ia64-tdep.c: Remove _initialize_ia64_tdep prototype.
7609 * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype.
7610 * infcall.c: Remove _initialize_infcall prototype.
7611 * infcmd.c: Remove _initialize_infcmd prototype.
7612 * inferior.c: Remove _initialize_inferiors prototype.
7613 * inflow.c: Remove _initialize_inflow prototype.
7614 * infrun.c: Remove _initialize_infrun prototype.
7615 * interps.c: Remove _initialize_interpreter prototype.
7616 * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype.
7617 * jit.c: Remove _initialize_jit prototype.
7618 * language.c: Remove _initialize_language prototype.
7619 * linux-fork.c: Remove _initialize_linux_fork prototype.
7620 * linux-nat.c: Remove _initialize_linux_nat prototype.
7621 * linux-tdep.c: Remove _initialize_linux_tdep prototype.
7622 * linux-thread-db.c: Remove _initialize_thread_db prototype.
7623 * lm32-tdep.c: Remove _initialize_lm32_tdep prototype.
7624 * m2-lang.c: Remove _initialize_m2_language prototype.
7625 * m32c-tdep.c: Remove _initialize_m32c_tdep prototype.
7626 * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype.
7627 * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype.
7628 * m32r-tdep.c: Remove _initialize_m32r_tdep prototype.
7629 * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype.
7630 * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
7631 * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
7632 * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype.
7633 * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype.
7634 * m68k-tdep.c: Remove _initialize_m68k_tdep prototype.
7635 * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
7636 * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
7637 * machoread.c: Remove _initialize_machoread prototype.
7638 * macrocmd.c: Remove _initialize_macrocmd prototype.
7639 * macroscope.c: Remove _initialize_macroscope prototype.
7640 * maint.c: Remove _initialize_maint_cmds prototype.
7641 * mdebugread.c: Remove _initialize_mdebugread prototype.
7642 * memattr.c: Remove _initialize_mem prototype.
7643 * mep-tdep.c: Remove _initialize_mep_tdep prototype.
7644 * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype.
7645 * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype.
7646 * mi/mi-interp.c: Remove _initialize_mi_interp prototype.
7647 * mi/mi-main.c: Remove _initialize_mi_main prototype.
7648 * microblaze-linux-tdep.c: Remove
7649 _initialize_microblaze_linux_tdep prototype.
7650 * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype.
7651 * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype.
7652 * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype.
7653 * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype.
7654 * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype.
7655 * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype.
7656 * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype.
7657 * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype.
7658 * mips-tdep.c: Remove _initialize_mips_tdep prototype.
7659 * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype.
7660 * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep
7661 prototype.
7662 * mipsread.c: Remove _initialize_mipsread prototype.
7663 * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep
7664 prototype.
7665 * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype.
7666 * moxie-tdep.c: Remove _initialize_moxie_tdep prototype.
7667 * msp430-tdep.c: Remove _initialize_msp430_tdep prototype.
7668 * mt-tdep.c: Remove _initialize_mt_tdep prototype.
7669 * nds32-tdep.c: Remove _initialize_nds32_tdep prototype.
7670 * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep
7671 prototype.
7672 * nios2-tdep.c: Remove _initialize_nios2_tdep prototype.
7673 * nto-procfs.c: Remove _initialize_procfs prototype.
7674 * nto-tdep.c: Remove _initialize_nto_tdep prototype.
7675 * objc-lang.c: Remove _initialize_objc_language prototype.
7676 * objfiles.c: Remove _initialize_objfiles prototype.
7677 * observer.c: Remove observer_test_first_notification_function,
7678 observer_test_second_notification_function,
7679 observer_test_third_notification_function, and
7680 _initialize_observer prototypes.
7681 * opencl-lang.c: Remove _initialize_opencl_language prototypes.
7682 * osabi.c: Remove _initialize_gdb_osabi prototype.
7683 * osdata.c: Remove _initialize_osdata prototype.
7684 * p-valprint.c: Remove _initialize_pascal_valprint prototype.
7685 * parse.c: Remove _initialize_parse prototype.
7686 * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype.
7687 * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype.
7688 * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype.
7689 * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype.
7690 * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype.
7691 * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype.
7692 * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype.
7693 * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype.
7694 * printcmd.c: Remove _initialize_printcmd prototype.
7695 * probe.c: Remove _initialize_probe prototype.
7696 * proc-api.c: Remove _initialize_proc_api prototype.
7697 * proc-events.c: Remove _initialize_proc_events prototype.
7698 * proc-service.c: Remove _initialize_proc_service prototype.
7699 * procfs.c: Remove _initialize_procfs prototype.
7700 * psymtab.c: Remove _initialize_psymtab prototype.
7701 * python/python.c: Remove _initialize_python prototype.
7702 * ravenscar-thread.c: Remove _initialize_ravenscar prototype.
7703 * record-btrace.c: Remove _initialize_record_btrace prototype.
7704 * record-full.c: Remove _initialize_record_full prototype.
7705 * record.c: Remove _initialize_record prototype.
7706 * regcache.c: Remove _initialize_regcache prototype.
7707 * reggroups.c: Remove _initialize_reggroup prototype.
7708 * remote-notif.c: Remove _initialize_notif prototype.
7709 * remote-sim.c: Remove _initialize_remote_sim prototype.
7710 * remote.c: Remove _initialize_remote prototype.
7711 * reverse.c: Remove _initialize_reverse prototype.
7712 * rl78-tdep.c: Remove _initialize_rl78_tdep prototype.
7713 * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype.
7714 * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep
7715 prototype.
7716 * rs6000-nat.c: Remove _initialize_rs6000_nat prototype.
7717 * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype.
7718 * rust-exp.y: Remove _initialize_rust_exp prototype.
7719 * rx-tdep.c: Remove _initialize_rx_tdep prototype.
7720 * s390-linux-nat.c: Remove _initialize_s390_nat prototype.
7721 * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype.
7722 * score-tdep.c: Remove _initialize_score_tdep prototype.
7723 * selftest-arch.c: Remove _initialize_selftests_foreach_arch
7724 prototype.
7725 * ser-go32.c: Remove _initialize_ser_dos prototype.
7726 * ser-mingw.c: Remove _initialize_ser_windows prototype.
7727 * ser-pipe.c: Remove _initialize_ser_pipe prototype.
7728 * ser-tcp.c: Remove _initialize_ser_tcp prototype.
7729 * ser-unix.c: Remove _initialize_ser_hardwire prototype.
7730 * serial.c: Remove _initialize_serial prototype.
7731 * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype.
7732 * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype.
7733 * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype.
7734 * sh-tdep.c: Remove _initialize_sh_tdep prototype.
7735 * skip.c: Remove _initialize_step_skip prototype.
7736 * sol-thread.c: Remove _initialize_sol_thread prototype.
7737 * solib-aix.c: Remove _initialize_solib_aix prototype.
7738 * solib-darwin.c: Remove _initialize_darwin_solib prototype.
7739 * solib-dsbt.c: Remove _initialize_dsbt_solib prototype.
7740 * solib-frv.c: Remove _initialize_frv_solib prototype.
7741 * solib-spu.c: Remove _initialize_spu_solib prototype.
7742 * solib-svr4.c: Remove _initialize_svr4_solib prototype.
7743 * solib-target.c: Remove _initialize_solib_target prototype.
7744 * solib.c: Remove _initialize_solib prototype.
7745 * source.c: Remove _initialize_source prototype.
7746 * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype.
7747 * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep
7748 prototype.
7749 * sparc-nat.c: Remove _initialize_sparc_nat prototype.
7750 * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype.
7751 * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype.
7752 * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep
7753 prototype.
7754 * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype.
7755 * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype.
7756 * sparc-tdep.c: Remove _initialize_sparc_tdep prototype.
7757 * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat
7758 prototype.
7759 * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep
7760 prototype.
7761 * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat
7762 prototype.
7763 * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep
7764 prototype.
7765 * sparc64-nat.c: Remove _initialize_sparc64_nat prototype.
7766 * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat
7767 prototype.
7768 * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep
7769 prototype.
7770 * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat
7771 prototype.
7772 * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep
7773 prototype.
7774 * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep
7775 prototype.
7776 * spu-linux-nat.c: Remove _initialize_spu_nat prototype.
7777 * spu-multiarch.c: Remove _initialize_spu_multiarch prototype.
7778 * spu-tdep.c: Remove _initialize_spu_tdep prototype.
7779 * stabsread.c: Remove _initialize_stabsread prototype.
7780 * stack.c: Remove _initialize_stack prototype.
7781 * stap-probe.c: Remove _initialize_stap_probe prototype.
7782 * std-regs.c: Remove _initialize_frame_reg prototype.
7783 * symfile-debug.c: Remove _initialize_symfile_debug prototype.
7784 * symfile-mem.c: Remove _initialize_symfile_mem prototype.
7785 * symfile.c: Remove _initialize_symfile prototype.
7786 * symmisc.c: Remove _initialize_symmisc prototype.
7787 * symtab.c: Remove _initialize_symtab prototype.
7788 * target-dcache.c: Remove _initialize_target_dcache prototype.
7789 * target-descriptions.c: Remove _initialize_target_descriptions
7790 prototype.
7791 * thread.c: Remove _initialize_thread prototype.
7792 * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep
7793 prototype.
7794 * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype.
7795 * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype.
7796 * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep
7797 prototype.
7798 * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype.
7799 * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype.
7800 * tracefile.c: Remove _initialize_tracefile prototype.
7801 * tracepoint.c: Remove _initialize_tracepoint prototype.
7802 * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype.
7803 * tui/tui-interp.c: Remove _initialize_tui_interp prototype.
7804 * tui/tui-layout.c: Remove _initialize_tui_layout prototype.
7805 * tui/tui-regs.c: Remove _initialize_tui_regs prototype.
7806 * tui/tui-stack.c: Remove _initialize_tui_stack prototype.
7807 * tui/tui-win.c: Remove _initialize_tui_win prototype.
7808 * tui/tui.c: Remove _initialize_tui prototype.
7809 * typeprint.c: Remove _initialize_typeprint prototype.
7810 * user-regs.c: Remove _initialize_user_regs prototype.
7811 * utils.c: Remove _initialize_utils prototype.
7812 * v850-tdep.c: Remove _initialize_v850_tdep prototype.
7813 * valarith.c: Remove _initialize_valarith prototype.
7814 * valops.c: Remove _initialize_valops prototype.
7815 * valprint.c: Remove _initialize_valprint prototype.
7816 * value.c: Remove _initialize_values prototype.
7817 * varobj.c: Remove _initialize_varobj prototype.
7818 * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype.
7819 * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype.
7820 * vax-tdep.c: Remove _initialize_vax_tdep prototype.
7821 * windows-nat.c: Remove _initialize_windows_nat,
7822 _initialize_check_for_gdb_ini, and _initialize_loadable
7823 prototypes.
7824 * windows-tdep.c: Remove _initialize_windows_tdep prototype.
7825 * xcoffread.c: Remove _initialize_xcoffread prototype.
7826 * xml-support.c: Remove _initialize_xml_support prototype.
7827 * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype.
7828 * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat
7829 prototype.
7830 * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep
7831 prototype.
7832 * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype.
7833
a611b5cb
KS
78342017-09-08 Keith Seitz <keiths@redhat.com>
7835
7836 * dwarf2read.c (struct field_info) <fnfields>: Remove unused
7837 field.
7838
469412dd
CW
78392017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com>
7840
7841 * f-valprint.c (f_val_print): Remove check for one byte
7842 sized integers. Remove printing of character type.
7843
a5ad232b
FP
78442017-09-08 Frank Penczek <frank.penczek@intel.com>
7845 Christoph Weinmann <christoph.t.weinmann@intel.com>
7846 Bernhard Heckel <bernhard.heckel@intel.com>
7847
7848 * f-typeprint.c (f_type_print_base): Use fprintfi_filtered
7849 to maintain proper indentation when printing pointers/refs.
7850
e5014227
JB
78512017-09-07 Joel Brobecker <brobecker@adacore.com>
7852
7853 GDB 8.0.1 released.
7854
63c99141
JB
78552017-09-07 Joel Brobecker <brobecker@adacore.com>
7856
7857 * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell.
7858
69c1e056
TT
78592017-09-05 Tom Tromey <tom@tromey.com>
7860
7861 * parse.c (funcall_chain): Now a std::vector.
7862 (start_arglist, end_arglist): Simplify.
7863 (free_funcalls): Remove.
7864 (parse_exp_in_context_1): Remove cleanup.
7865
fef704bf
TT
78662017-09-05 Tom Tromey <tom@tromey.com>
7867
7868 * go-exp.y (go_parse): Don't create a cleanup.
7869
5613c585
TT
78702017-09-05 Tom Tromey <tom@tromey.com>
7871
7872 * d-exp.y (PrimaryExpression): Use std::string.
7873 (d_parse): Don't create a cleanup.
7874
eae49211
TT
78752017-09-05 Tom Tromey <tom@tromey.com>
7876
7877 * utils.c (do_clear_parser_state): Remove.
7878 (make_cleanup_clear_parser_state): Remove.
7879 * p-exp.y (pascal_parse): Use scoped_restore.
7880 * m2-exp.y (m2_parse): Use scoped_restore.
7881 * f-exp.y (f_parse): Use scoped_restore.
7882 * d-exp.y (d_parse): Use scoped_restore.
7883 * c-exp.y (c_parse): Use scoped_restore.
7884 * ada-exp.y (ada_parse): Use scoped_restore.
7885 * utils.h (make_cleanup_clear_parser_state): Remove.
7886
73b9be8b
KS
78872017-09-06 Keith Seitz <keiths@redhat.com>
7888
7889 * dwarf2read.c (dw2_linkage_name_attr): New function.
7890 (dw2_linkage_name): New function.
7891 (dwarf2_compute_name, dwarf2_physname, read_call_site_scope)
7892 (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name.
7893 (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr.
7894
a102602b
KR
78952017-09-06 Kamil Rytarowski <n54@gmx.com>
7896
7897 * config/djgpp/djconfig.sh: Correct shell portability issue.
7898
28ad437d
KR
78992017-09-06 Kamil Rytarowski <n54@gmx.com>
7900
7901 * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD.
7902
351787dd
JB
79032017-09-06 John Baldwin <jhb@FreeBSD.org>
7904
7905 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
7906 * NEWS: Mention new FreeBSD/mips native configuration.
7907 * configure.host: Add aarch64*-*-freebsd*.
7908 * configure.nat: Likewise.
7909 * aarch64-fbsd-nat.c: New file.
7910
c0f84956
JB
79112017-09-06 John Baldwin <jhb@FreeBSD.org>
7912
7913 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o.
7914 (ALLDEPFILES): Add aarch64-fbsd-tdep.c.
7915 * NEWS: Mention new FreeBSD/aarch64 target.
7916 * configure.tgt: Add aarch64*-*-freebsd*.
7917 * aarch64-fbsd-tdep.c: New file.
7918 * aarch64-fbsd-tdep.h: New file.
7919
7610297a
KR
79202017-09-06 Kamil Rytarowski <n54@gmx.com>
7921
7922 * MAINTAINERS (Write After Approval): Add Kamil Rytarowski.
7923
fbd1b771
JK
79242017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7925
7926 * parse.c (find_minsym_type_and_address): Don't relocate addresses
7927 of TLS symbols.
7928
5ca79eae
PW
79292017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7930
7931 * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
7932 call.
7933
bf93d7ba
SM
79342017-09-05 Simon Marchi <simon.marchi@ericsson.com>
7935
7936 * infrun.c (follow_exec): Call add_thread after
7937 target_find_description.
7938
1bb7c059
SM
79392017-09-05 Simon Marchi <simon.marchi@ericsson.com>
7940
7941 * infrun.c (handle_inferior_event_1): When exec'ing, read
7942 stop_pc after follow_exec.
7943
fc809827
SM
79442017-09-05 Simon Marchi <simon.marchi@ericsson.com>
7945
7946 * remote.c (process_g_packet): Update error message.
7947
d2fcdd85
YQ
79482017-09-05 Yao Qi <yao.qi@linaro.org>
7949
7950 * configure.tgt (gdb_target_obs): Add i386.o for x86_64-*
7951 targets.
7952
e69570ee
PA
79532017-09-05 Pedro Alves <palves@redhat.com>
7954
7955 * eval.c (eval_call, evaluate_funcall): New functions, factored
7956 out from ...
7957 (evaluate_subexp_standard): ... this.
7958
22916b07
YQ
79592017-09-05 Yao Qi <yao.qi@linaro.org>
7960
7961 * amd64-tdep.c (amd64_target_description): Create target
7962 descriptions.
7963 (_initialize_amd64_tdep): Don't call functions
7964 initialize_tdesc_amd64_*. Add self tests.
7965 * arch/amd64.c (amd64_create_target_description): Add parameter
7966 is_linux. Call set_tdesc_osabi if is_linux is true.
7967 * arch/amd64.h (amd64_create_target_description): Update the
7968 declaration.
7969 * arch/i386.c (i386_create_target_description): Add parameter
7970 is_linux. Call set_tdesc_osabi if is_linux is true.
7971 * arch/i386.h (i386_create_target_description): Update
7972 declaration.
7973 * configure.tgt: Add i386.o to gdb_target_obs.
7974 * features/Makefile (XMLTOC): Remove i386/*.xml.
7975 * features/i386/amd64-avx-avx512.c: Remove.
7976 * features/i386/amd64-avx-mpx-avx512-pku.c: Remove.
7977 * features/i386/amd64-avx-mpx.c: Remove.
7978 * features/i386/amd64-avx.c: Remove.
7979 * features/i386/amd64-mpx.c: Remove.
7980 * features/i386/amd64.c: Remove.
7981 * features/i386/i386-avx-avx512.c: Remove.
7982 * features/i386/i386-avx-mpx-avx512-pku.c: Remove.
7983 * features/i386/i386-avx-mpx.c: Remove.
7984 * features/i386/i386-avx.c: Remove.
7985 * features/i386/i386-mmx.c: Remove.
7986 * features/i386/i386-mpx.c: Remove.
7987 * features/i386/i386.c: Remove.
7988 * i386-tdep.c: Don't include features/i386/i386*.c., include
7989 target-descriptions.h and arch/i386.h.
7990 (i386_target_description): Create target descriptions.
7991 (i386_gdbarch_init): Don't call initialize_tdesc_i386_*
7992 functions. Do self tests.
7993
0854b7b1
YQ
79942017-09-05 Yao Qi <yao.qi@linaro.org>
7995
7996 * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml.
7997 * features/i386/amd64-avx-avx512-linux.c: Removed.
7998 * features/i386/amd64-avx-linux.c: Removed.
7999 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed.
8000 * features/i386/amd64-avx-mpx-linux.c: Removed.
8001 * features/i386/amd64-linux.c: Removed.
8002 * features/i386/amd64-mpx-linux.c: Removed.
8003 * features/i386/x32-avx-avx512-linux.c: Removed.
8004 * features/i386/x32-avx-linux.c: Removed.
8005 * features/i386/x32-linux.c: Removed.
8006
b4570e4b
YQ
80072017-09-05 Yao Qi <yao.qi@linaro.org>
8008
8009 * amd64-linux-tdep.c: Include arch/amd64.h. Don't include
8010 features/i386/*.c.
8011 (amd64_linux_read_description): Call
8012 amd64_create_target_description.
8013 * arch/amd64.c: New file.
8014 * arch/amd64.h: New file.
8015 * configure.tgt (x86_64-*-linux*): Append amd64.o.
8016 * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o.
8017
6c73f67f
YQ
80182017-09-05 Yao Qi <yao.qi@linaro.org>
8019
8020 * amd64-linux-tdep.c: Don't include amd64-XXX-linux and
8021 x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c.
8022 (amd64_linux_read_description): Create target descriptions.
8023 (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX
8024 functions. Add unit tests.
8025 * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and
8026 x32-core.xml.
8027 * features/i386/64bit-avx.c: Generated.
8028 * features/i386/64bit-avx512.c: Generated.
8029 * features/i386/64bit-core.c: Generated.
8030 * features/i386/64bit-linux.c: Generated.
8031 * features/i386/64bit-mpx.c: Generated.
8032 * features/i386/64bit-pkeys.c: Generated.
8033 * features/i386/64bit-segments.c: Generated.
8034 * features/i386/64bit-sse.c: Generated.
8035 * features/i386/x32-core.c: Generated.
8036 * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature
8037 c files for amd64-linux and x32-linux.
8038
9d3d478b
YQ
80392017-09-05 Yao Qi <yao.qi@linaro.org>
8040
8041 * amd64-linux-tdep.c (amd64_linux_read_description): New
8042 function.
8043 (amd64_linux_core_read_description): Call
8044 amd64_linux_read_description.
8045 (amd64_linux_init_abi): Likewise.
8046 (amd64_x32_linux_init_abi): Likewise.
8047 * amd64-linux-tdep.h (amd64_linux_read_description): Declare.
8048 * x86-linux-nat.c (x86_linux_read_description): Call
8049 amd64_linux_read_description.
8050
b9f1d50f
YQ
80512017-09-05 Yao Qi <yao.qi@linaro.org>
8052
8053 * amd64-linux-tdep.c (amd64_linux_core_read_description): Update
8054 comments.
8055
188c9e6d
YQ
80562017-09-05 Yao Qi <yao.qi@linaro.org>
8057
8058 * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml.
8059 * features/i386/i386-avx-avx512-linux.c: Remove.
8060 * features/i386/i386-avx-linux.c: Remove.
8061 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove.
8062 * features/i386/i386-avx-mpx-linux.c: Remove.
8063 * features/i386/i386-linux.c: Remove.
8064 * features/i386/i386-mmx-linux.c: Remove.
8065 * features/i386/i386-mpx-linux.c: Remove.
8066
5f035c07
YQ
80672017-09-05 Yao Qi <yao.qi@linaro.org>
8068
8069 * Makefile.in (ALL_TARGET_OBS): Add i386.o.
8070 (SFILES): Add arch/i386.c.
8071 (HFILES_NO_SRCDIR): Add arch/i386.h.
8072 * arch/i386.c: New file.
8073 * arch/i386.h: New file.
8074 * arch/tdesc.h (allocate_target_description): Declare.
8075 (set_tdesc_architecture): Declare.
8076 (set_tdesc_osabi): Declare.
8077 * configure.tgt (i[34567]86-*-linux*): Add i386.o.
8078 * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c.
8079 include arch/i386.h.
8080 (i386_linux_read_description): Remove code and call
8081 i386_create_target_description.
8082 (set_tdesc_architecture): New function.
8083 (set_tdesc_osabi): New function.
8084 * target-descriptions.h (allocate_target_description): Remove.
8085
0abe8a89
YQ
80862017-09-05 Yao Qi <yao.qi@linaro.org>
8087
8088 * arch/tdesc.h (tdesc_create_feature): Add an argument xml.
8089 * target-descriptions.c (tdesc_create_feature): Likewise, and
8090 adjust code.
8091 * features/i386/32bit-avx.c: Re-generated.
8092 * features/i386/32bit-avx512.c: Re-generated.
8093 * features/i386/32bit-core.c: Re-generated.
8094 * features/i386/32bit-linux.c: Re-generated.
8095 * features/i386/32bit-mpx.c: Re-generated.
8096 * features/i386/32bit-pkeys.c: Re-generated.
8097 * features/i386/32bit-sse.c: Re-generated.
8098
0a188386
YQ
80992017-09-05 Yao Qi <yao.qi@linaro.org>
8100
8101 * regformats/regdef.h (struct reg): Override operator == and !=.
8102
f49ff000
YQ
81032017-09-05 Yao Qi <yao.qi@linaro.org>
8104
8105 * arch/tdesc.h: New file.
8106 * regformats/regdat.sh: Generate code using tdesc_create_reg.
8107 * target-descriptions.c: Update comments.
8108 * target-descriptions.h: Include "arch/tdesc.h". Remove the
8109 declarations.
8110 * features/i386/32bit-avx.c: Re-generated.
8111 * features/i386/32bit-avx512.c: Re-generated.
8112 * features/i386/32bit-core.c: Re-generated.
8113 * features/i386/32bit-linux.c: Re-generated.
8114 * features/i386/32bit-mpx.c: Re-generated.
8115 * features/i386/32bit-pkeys.c: Re-generated.
8116 * features/i386/32bit-sse.c: Re-generated.
8117
f7000548
YQ
81182017-09-05 Yao Qi <yao.qi@linaro.org>
8119
8120 * regformats/regdat.sh: Update generated code.
8121
c9a5e2a5
YQ
81222017-09-05 Yao Qi <yao.qi@linaro.org>
8123
8124 * regformats/regdat.sh: Adjust code order.
8125
d6b687ac
SM
81262017-09-05 Simon Marchi <simon.marchi@ericsson.com>
8127
8128 * expprint.c (dump_subexp_body_standard): Use constant format
8129 string in fprintf_filtered call.
8130
a379bfd0
JB
81312017-09-04 John Baldwin <jhb@FreeBSD.org>
8132
8133 * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and
8134 NetBSD/i386.
8135 * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX.
8136
f7efc967
JB
81372017-09-04 John Baldwin <jhb@FreeBSD.org>
8138
8139 * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H.
8140
c49fbc6c
JB
81412017-09-04 John Baldwin <jhb@FreeBSD.org>
8142
8143 * bsd-kvm.o: Define _KMEMUSER.
8144 * configure.ac: Define _KMEMUSER when checking for "struct lwp".
8145 * configure: Regenerate.
8146
26562e73
JB
81472017-09-04 John Baldwin <jhb@FreeBSD.org>
8148
8149 * amd64-fbsd-nat.c: Add include of "x86-xstate.h".
8150 * i386-fbsd-nat.c: Likewise.
8151
31cf1487
JB
81522017-09-04 John Baldwin <jhb@FreeBSD.org>
8153
8154 * unittests/array-view-selftests.c: Add include of <array>.
8155
5b9f8a7c
JB
81562017-09-04 John Baldwin <jhb@FreeBSD.org>
8157
8158 * spu-tdep.c (flush_ea_cache): Add missing argument to
8159 call_function_by_hand.
8160
d69cf9b2
PA
81612017-09-04 Pedro Alves <palves@redhat.com>
8162
8163 * NEWS (Safer support for debugging with no debug info): New.
8164
3693fdb3
PA
81652017-09-04 Pedro Alves <palves@redhat.com>
8166
8167 * c-exp.y (function_method, function_method_void): Add current
8168 instance flags to TYPE_INSTANCE.
8169 * dwarf2read.c (check_modifier): New.
8170 (compute_delayed_physnames): Assert that only C++ adds delayed
8171 physnames. Mark fn_fields as const/volatile depending on
8172 physname.
8173 * eval.c (make_params): New type_instance_flags parameter. Use
8174 it as the new type's instance flags.
8175 (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance
8176 flags element and pass it to make_params.
8177 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle
8178 instance flags element.
8179 (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise.
8180 * gdbtypes.h: Include "enum-flags.h".
8181 (type_instance_flags): New enum-flags type.
8182 (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC)
8183 (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean.
8184 * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust.
8185 (follow_type_instance_flags): New function.
8186 (operator_check_standard) <TYPE_INSTANCE>: Adjust.
8187 * parser-defs.h (follow_type_instance_flags): Declare.
8188 * valops.c (value_struct_elt_for_reference): const/volatile must
8189 match too.
8190
e68cb8e0
PA
81912017-09-04 Pedro Alves <palves@redhat.com>
8192
8193 * cp-namespace.c (cp_search_static_and_baseclasses): Handle
8194 function/method scopes; lookup the nested name as a function local
8195 static variable.
8196
858be34c
PA
81972017-09-04 Pedro Alves <palves@redhat.com>
8198
8199 (%type <voidval>): Add function_method.
8200 * c-exp.y (exp): New production for calls with no arguments.
8201 (function_method, function_method_void_or_typelist): New
8202 productions.
8203 (exp): New production for "method()::static_var".
8204 * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR.
8205 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
8206 Handle OP_FUNC_STATIC_VAR.
8207 * parse.c (operator_length_standard):
8208 Handle OP_FUNC_STATIC_VAR.
8209
dd5901a6
PA
82102017-09-04 Pedro Alves <palves@redhat.com>
8211
8212 * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS
8213 handling.
8214 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
8215 Ditto.
8216 * parse.c (operator_length_standard, operator_check_standard):
8217 Ditto.
8218 * std-operator.def (UNOP_MEMVAL_TLS): Delete.
8219
46a4882b
PA
82202017-09-04 Pedro Alves <palves@redhat.com>
8221
8222 * ax-gdb.c: Include "typeprint.h".
8223 (gen_expr_for_cast): New function.
8224 (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it.
8225 <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's
8226 type is unknown.
8227 * dwarf2read.c (new_symbol_full): Fallback to int instead of
8228 nodebug_data_symbol.
8229 * eval.c: Include "typeprint.h".
8230 (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>:
8231 Error out if symbol has unknown type.
8232 <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to
8233 evaluate_subexp_for_cast.
8234 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle
8235 OP_VAR_MSYM_VALUE.
8236 (evaluate_subexp_for_cast): New function.
8237 * gdbtypes.c (init_nodebug_var_type): New function.
8238 (objfile_type): Use it to initialize types of variables with no
8239 debug info.
8240 * typeprint.c (error_unknown_type): New.
8241 * typeprint.h (error_unknown_type): New declaration.
8242 * compile/compile-c-types.c (convert_type_basic): Handle
8243 TYPE_CODE_ERROR; warn and fallback to int for variables with
8244 unknown type.
8245
fe13dfec
PA
82462017-09-04 Pedro Alves <palves@redhat.com>
8247
8248 * eval.c (evaluate_var_value): New function, factored out from ...
8249 (evaluate_subexp_standard): ... here.
8250
d008ee21
PA
82512017-09-04 Pedro Alves <palves@redhat.com>
8252
8253 * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>:
8254 Remove useless assignments to 'op'.
8255
827d0c51
PA
82562017-09-04 Pedro Alves <palves@redhat.com>
8257
8258 * eval.c (eval_skip_value): New function.
8259 (evaluate_subexp_standard): Use it.
8260
2c5a2be1
PA
82612017-09-04 Pedro Alves <palves@redhat.com>
8262
8263 * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract
8264 function name from symbol/minsym and pass it to
8265 error_call_unknown_return_type.
8266
74ea4be4
PA
82672017-09-04 Pedro Alves <palves@redhat.com>
8268
8269 * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE.
8270 * ax-gdb.c (gen_msym_var_ref): New function.
8271 (gen_expr): Handle OP_VAR_MSYM_VALUE.
8272 * eval.c (evaluate_var_msym_value): New function.
8273 * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE.
8274 <OP_FUNCALL>: Extract function name from symbol/minsym and pass it
8275 to call_function_by_hand.
8276 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
8277 Handle OP_VAR_MSYM_VALUE.
8278 (union exp_element) <msymbol>: New field.
8279 * minsyms.h (struct type): Forward declare.
8280 (find_minsym_type_and_address): Declare.
8281 * parse.c (write_exp_elt_msym): New function.
8282 (write_exp_msymbol): Delete, refactored as ...
8283 (find_minsym_type_and_address): ... this new function.
8284 (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE.
8285 (operator_length_standard, operator_check_standard): Handle
8286 OP_VAR_MSYM_VALUE.
8287 * std-operator.def (OP_VAR_MSYM_VALUE): New.
8288
7022349d
PA
82892017-09-04 Pedro Alves <palves@redhat.com>
8290
8291 * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle
8292 TYPE_GNU_IFUNC specially here. Throw error if return type is
8293 unknown.
8294 * ada-typeprint.c (print_func_type): Handle functions with unknown
8295 return type.
8296 * c-typeprint.c (c_type_print_base): Handle functions and methods
8297 with unknown return type.
8298 * compile/compile-c-symbols.c (convert_symbol_bmsym)
8299 <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol.
8300 * compile/compile-c-types.c: Include "objfiles.h".
8301 (convert_func): For functions with unknown return type, warn and
8302 default to int.
8303 * compile/compile-object-run.c (compile_object_run): Adjust call
8304 to call_function_by_hand_dummy.
8305 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to
8306 call_function_by_hand.
8307 * eval.c (evaluate_subexp_standard): Adjust calls to
8308 call_function_by_hand. Handle functions and methods with unknown
8309 return type. Pass expect_type to call_function_by_hand.
8310 * f-typeprint.c (f_type_print_base): Handle functions with unknown
8311 return type.
8312 * gcore.c (call_target_sbrk): Adjust call to
8313 call_function_by_hand.
8314 * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL
8315 return type instead of int. Make nodebug_text_gnu_ifunc_symbol be
8316 an integer address type instead of nodebug.
8317 * guile/scm-value.c (gdbscm_value_call): Adjust call to
8318 call_function_by_hand.
8319 * infcall.c (error_call_unknown_return_type): New function.
8320 (call_function_by_hand): New "default_return_type" parameter.
8321 Pass it down.
8322 (call_function_by_hand_dummy): New "default_return_type"
8323 parameter. Use it instead of defaulting to int. If there's no
8324 default and the return type is unknown, throw an error. If
8325 there's a default return type, and the called function has no
8326 debug info, then assume the function is prototyped.
8327 * infcall.h (call_function_by_hand, call_function_by_hand_dummy):
8328 New "default_return_type" parameter.
8329 (error_call_unknown_return_type): New declaration.
8330 * linux-fork.c (call_lseek): Cast return type of lseek.
8331 (inferior_call_waitpid, checkpoint_command): Adjust calls to
8332 call_function_by_hand.
8333 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust
8334 calls to call_function_by_hand.
8335 * m2-typeprint.c (m2_procedure): Handle functions with unknown
8336 return type.
8337 * objc-lang.c (lookup_objc_class, lookup_child_selector)
8338 (value_nsstring, print_object_command): Adjust calls to
8339 call_function_by_hand.
8340 * p-typeprint.c (pascal_type_print_varspec_prefix): Handle
8341 functions with unknown return type.
8342 (pascal_type_print_func_varspec_suffix): New function.
8343 (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC,
8344 TYPE_CODE_METHOD>: Use it.
8345 * python/py-value.c (valpy_call): Adjust call to
8346 call_function_by_hand.
8347 * rust-lang.c (rust_evaluate_funcall): Adjust call to
8348 call_function_by_hand.
8349 * valarith.c (value_x_binop, value_x_unop): Adjust calls to
8350 call_function_by_hand.
8351 * valops.c (value_allocate_space_in_inferior): Adjust call to
8352 call_function_by_hand.
8353 * typeprint.c (type_print_unknown_return_type): New function.
8354 * typeprint.h (type_print_unknown_return_type): New declaration.
8355
54990598
PA
83562017-09-04 Pedro Alves <palves@redhat.com>
8357
8358 * gdbtypes.c (lookup_function_type_with_arguments): Mark function
8359 types with more than one parameter as prototyped.
8360
9a24775b
PA
83612017-09-04 Pedro Alves <palves@redhat.com>
8362
8363 * cli/cli-cmds.c (print_disassembly, disassemble_current_function)
8364 (disassemble_command): Use gdb_disassembly_flags instead of bare
8365 int.
8366 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn)
8367 (dump_insns, do_mixed_source_and_assembly_deprecated)
8368 (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly):
8369 Use gdb_disassembly_flags instead of bare int.
8370 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN)
8371 (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME)
8372 (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE)
8373 (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're...
8374 (enum gdb_disassembly_flag): ... values of this new enumeration.
8375 (gdb_disassembly_flags): Define.
8376 (gdb_disassembly)
8377 (gdb_pretty_print_disassembler::pretty_print_insn): Use it.
8378 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use
8379 gdb_disassembly_flags instead of bare int.
8380 * record-btrace.c (btrace_insn_history)
8381 (record_btrace_insn_history, record_btrace_insn_history_range)
8382 (record_btrace_insn_history_from): Use gdb_disassembly_flags
8383 instead of bare int.
8384 * record.c (get_insn_history_modifiers, cmd_record_insn_history):
8385 Use gdb_disassembly_flags instead of bare int.
8386 * target-debug.h (target_debug_print_gdb_disassembly_flags):
8387 Define.
8388 * target-delegates.c: Regenerate.
8389 * target.c (target_insn_history, target_insn_history_from)
8390 (target_insn_history_range): Use gdb_disassembly_flags instead of
8391 bare int.
8392 * target.h: Include "disasm.h".
8393 (struct target_ops) <to_insn_history, to_insn_history_from,
8394 to_insn_history_range>: Use gdb_disassembly_flags instead of bare
8395 int.
8396 (target_insn_history, target_insn_history_from)
8397 (target_insn_history_range): Use gdb_disassembly_flags instead of
8398 bare int.
8399
80a65e9b
SM
84002017-09-04 Simon Marchi <simon.marchi@ericsson.com>
8401
8402 * cli/cli-script.c (build_command_line): For if/while commands,
8403 check whether args is empty.
8404
6b66338c
SM
84052017-09-04 Simon Marchi <simon.marchi@ericsson.com>
8406
8407 * cli/cli-script.h (enum misc_command_type): Move from defs.h.
8408 (enum command_control_type): Likewise.
8409 (struct command_line): Likewise.
8410 (free_command_lines): Likewise.
8411 (struct command_lines_deleter): Likewise.
8412 (command_line_up): Likewise.
8413 (read_command_lines): Likewise.
8414 (read_command_lines_1): Likewise.
8415 * defs.h (enum misc_command_type): Move to cli/cli-script.h.
8416 (enum command_control_type): Likewise.
8417 (struct command_line): Likewise.
8418 (free_command_lines): Likewise.
8419 (struct command_lines_deleter): Likewise.
8420 (command_line_up): Likewise.
8421 (read_command_lines): Likewise.
8422 (read_command_lines_1): Likewise.
8423 * breakpoint.h: Include cli/cli-script.h.
8424 * extension-priv.h: Likewise.
8425 * gdbcmd.h: Likewise.
8426
51abb421
PA
84272017-09-04 Pedro Alves <palves@redhat.com>
8428
8429 * ada-lang.c (is_known_support_routine): Move sal declaration to
8430 where it is initialized.
8431 * breakpoint.c (create_internal_breakpoint, init_catchpoint)
8432 (parse_breakpoint_sals, decode_static_tracepoint_spec)
8433 (clear_command, update_static_tracepoint): Remove init_sal
8434 references. Move declarations closer to initializations.
8435 * cli/cli-cmds.c (list_command): Move sal declarations closer to
8436 initializations.
8437 * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal
8438 references. Move sal declarations closer to initializations.
8439 * frame.c (find_frame_sal): Return a symtab_and_line via function
8440 return instead of output parameter. Remove init_sal references.
8441 * frame.h (find_frame_sal): Return a symtab_and_line via function
8442 return instead of output parameter.
8443 * guile/scm-frame.c (gdbscm_frame_sal): Adjust.
8444 * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new
8445 instead of memset.
8446 (gdbscm_find_pc_line): Remove init_sal reference.
8447 * infcall.c (call_function_by_hand_dummy): Remove init_sal
8448 references. Move declarations closer to initializations.
8449 * infcmd.c (set_step_frame): Update. Move declarations closer to
8450 initializations.
8451 (finish_backward): Remove init_sal references. Move declarations
8452 closer to initializations.
8453 * infrun.c (process_event_stop_test, handle_step_into_function)
8454 (insert_hp_step_resume_breakpoint_at_frame)
8455 (insert_step_resume_breakpoint_at_caller): Likewise.
8456 * linespec.c (create_sals_line_offset, decode_digits_ordinary)
8457 (symbol_to_sal): Likewise.
8458 * probe.c (parse_probes_in_pspace): Remove init_sal reference.
8459 * python/py-frame.c (frapy_find_sal): Move sal declaration closer
8460 to its initialization.
8461 * reverse.c (save_bookmark_command): Use new/delete. Remove
8462 init_sal references. Move declarations closer to initializations.
8463 * source.c (get_current_source_symtab_and_line): Remove brace
8464 initialization.
8465 (set_current_source_symtab_and_line): Now takes the sal by const
8466 reference. Remove brace initialization.
8467 (line_info): Remove init_sal reference.
8468 * source.h (set_current_source_symtab_and_line): Now takes a
8469 symtab_and_line via const reference.
8470 * stack.c (set_current_sal_from_frame): Adjust.
8471 (print_frame_info): Adjust.
8472 (get_last_displayed_sal): Return the sal via function return
8473 instead of via output parameter. Simplify.
8474 (frame_info): Adjust.
8475 * stack.h (get_last_displayed_sal): Return the sal via function
8476 return instead of via output parameter.
8477 * symtab.c (init_sal): Delete.
8478 (find_pc_sect_line): Remove init_sal references. Move
8479 declarations closer to initializations.
8480 (find_function_start_sal): Remove init_sal references. Move
8481 declarations closer to initializations.
8482 * symtab.h (struct symtab_and_line): In-class initialize all
8483 fields.
8484 * tracepoint.c (set_traceframe_context)
8485 (print_one_static_tracepoint_marker): Remove init_sal references.
8486 Move declarations closer to initializations.
8487 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust.
8488 * tui/tui-stack.c (tui_show_frame_info): Adjust. Move
8489 declarations closer to initializations.
8490 * tui/tui-winsource.c (tui_update_source_window_as_is): Remove
8491 init_sal references. Adjust.
8492
6c5b2ebe
PA
84932017-09-04 Pedro Alves <palves@redhat.com>
8494
8495 * ax-gdb.c (agent_command_1): Use range-for.
8496 * break-catch-throw.c (re_set_exception_catchpoint): Update.
8497 * breakpoint.c: Include "common/array-view.h".
8498 (init_breakpoint_sal, create_breakpoint_sal): Change sals
8499 parameter from struct symtabs_and_lines to
8500 array_view<symtab_and_line>. Adjust. Use range-for. Update.
8501 (breakpoint_sals_to_pc): Change sals parameter from struct
8502 symtabs_and_lines to std::vector reference.
8503 (check_fast_tracepoint_sals): Change sals parameter from struct
8504 symtabs_and_lines to std::array_view. Use range-for.
8505 (decode_static_tracepoint_spec): Return a std::vector instead of
8506 symtabs_and_lines. Update.
8507 (create_breakpoint): Update.
8508 (break_range_command, until_break_command, clear_command): Update.
8509 (base_breakpoint_decode_location, bkpt_decode_location)
8510 (bkpt_probe_create_sals_from_location)
8511 (bkpt_probe_decode_location, tracepoint_decode_location)
8512 (tracepoint_probe_decode_location)
8513 (strace_marker_create_sals_from_location): Return a std::vector
8514 instead of symtabs_and_lines.
8515 (strace_marker_create_breakpoints_sal): Update.
8516 (strace_marker_decode_location): Return a std::vector instead of
8517 symtabs_and_lines. Update.
8518 (update_breakpoint_locations): Change struct symtabs_and_lines
8519 parameters to gdb::array_view. Adjust.
8520 (location_to_sals): Return a std::vector instead of
8521 symtabs_and_lines. Update.
8522 (breakpoint_re_set_default): Use std::vector instead of struct
8523 symtabs_and_lines.
8524 (decode_location_default): Return a std::vector instead of
8525 symtabs_and_lines. Update.
8526 * breakpoint.h: Include "common/array-view.h".
8527 (struct breakpoint_ops) <decode_location>: Now returns a
8528 std::vector instead of returning a symtabs_and_lines via output
8529 parameter.
8530 (update_breakpoint_locations): Change sals parameters to use
8531 gdb::array_view.
8532 * cli/cli-cmds.c (edit_command, list_command): Update to use
8533 std::vector and gdb::array_view.
8534 (ambiguous_line_spec): Adjust to use gdb::array_view and
8535 range-for.
8536 (compare_symtabs): Rename to ...
8537 (cmp_symtabs): ... this. Change parameters to symtab_and_line
8538 const reference and adjust.
8539 (filter_sals): Rewrite using std::vector and standard algorithms.
8540 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify.
8541 (jump_command): Update to use std::vector.
8542 * linespec.c (struct linespec_state) <canonical_names>: Update
8543 comment.
8544 (add_sal_to_sals_basic): Delete.
8545 (add_sal_to_sals, filter_results, convert_results_to_lsals)
8546 (decode_line_2, create_sals_line_offset)
8547 (convert_address_location_to_sals, convert_linespec_to_sals)
8548 (convert_explicit_location_to_sals, parse_linespec)
8549 (event_location_to_sals, decode_line_full, decode_line_1)
8550 (decode_line_with_current_source)
8551 (decode_line_with_last_displayed, decode_objc)
8552 (decode_digits_list_mode, decode_digits_ordinary, minsym_found)
8553 (linespec_result::~linespec_result): Adjust to use std::vector
8554 instead of symtabs_and_lines.
8555 * linespec.h (linespec_sals::sals): Now a std::vector.
8556 (struct linespec_result): Use std::vector, bool, and in-class
8557 initialization.
8558 (decode_line_1, decode_line_with_current_source)
8559 (decode_line_with_last_displayed): Return std::vector.
8560 * macrocmd.c (info_macros_command): Use std::vector.
8561 * mi/mi-main.c (mi_cmd_trace_find): Use std::vector.
8562 * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use
8563 std::vector.
8564 * probe.h (parse_probes): Return a std::vector.
8565 * python/python.c (gdbpy_decode_line): Use std::vector and
8566 gdb::array_view.
8567 * source.c (select_source_symtab, line_info): Use std::vector.
8568 * stack.c (func_command): Use std::vector.
8569 * symtab.h (struct symtabs_and_lines): Delete.
8570 * tracepoint.c (tfind_line_command, scope_info): Use std::vector.
8571
7c44b49c
PA
85722017-09-04 Pedro Alves <palves@redhat.com>
8573
8574 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8575 unittests/array-view-selftests.c.
8576 (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o.
8577 * common/array-view.h: New file.
8578 * unittests/array-view-selftests.c: New file.
8579
e439fa14
PA
85802017-09-04 Pedro Alves <palves@redhat.com>
8581
8582 * cli/cli-cmds.c (edit_command): Pass message to
8583 ambiguous_line_spec.
8584 (list_command): Pass message to ambiguous_line_spec. Say
8585 "first"/"last" instead of "start" and "end" to be consistent with
8586 the manual.
8587 (ambiguous_line_spec): Add 'format' and vararg parameters. Use
8588 them to print formatted message.
8589
7525b645
PA
85902017-09-04 Pedro Alves <palves@redhat.com>
8591
8592 * btrace.c (ftrace_add_pt): Pass btrace_insn to
8593 ftrace_update_insns by reference instead of pointer.
8594
badc0020
YQ
85952017-09-04 Yao Qi <yao.qi@linaro.org>
8596
8597 * i386-go32-tdep.c: Include x86-xstate.h.
8598 (i386_go32_init_abi): Call i386_target_description.
8599 * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx
8600 if xcr0 is X86_XSTATE_X87_MASK.
8601 * i386-tdep.h (tdesc_i386): Remove the declaration.
8602 (tdesc_i386_mmx): Likewise.
8603
d78bdb54
YQ
86042017-09-04 Yao Qi <yao.qi@linaro.org>
8605
8606 * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return
8607 X86_XSTATE_SSE_MASK instead of 0.
8608
ca1fa5ee
YQ
86092017-09-04 Yao Qi <yao.qi@linaro.org>
8610
8611 * amd64-fbsd-nat.c (amd64fbsd_read_description): Call
8612 i386_target_description.
8613 * i386-fbsd-nat.c (i386fbsd_read_description): Call
8614 i386_target_description.
8615 * i386-tdep.c (i386_gdbarch_init): Likewise.
8616
2434b019
YQ
86172017-09-04 Yao Qi <yao.qi@linaro.org>
8618
8619 * amd64-darwin-tdep.c: Include "x86-xstate.h".
8620 (x86_darwin_init_abi_64): Call amd64_target_description.
8621 * amd64-dicos-tdep.c: Likewise.
8622 * amd64-fbsd-nat.c: Likewise.
8623 * amd64-fbsd-tdep.c: Likewise.
8624 * amd64-nbsd-tdep.c: Likewise.
8625 * amd64-obsd-tdep.c: Likewise.
8626 * amd64-sol2-tdep.c: Likewise.
8627 * amd64-windows-tdep.c: Likewise.
8628 * amd64-tdep.h (tdesc_amd64): Remove the declaration.
8629
0860c437
SM
86302017-09-04 Simon Marchi <simon.marchi@ericsson.com>
8631
8632 * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove.
8633 (btrace_function) <insn>: Change type to use std::vector.
8634 * btrace.c (ftrace_debug, ftrace_call_num_insn,
8635 ftrace_find_call, ftrace_new_gap, ftrace_update_function,
8636 ftrace_update_insns, ftrace_compute_global_level_offset,
8637 btrace_stitch_bts, btrace_clear, btrace_insn_get,
8638 btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to
8639 change to std::vector.
8640 (ftrace_update_insns): Adjust to change to std::vector, change
8641 type of INSN parameter.
8642 (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns.
8643 * record-btrace.c (btrace_call_history_insn_range,
8644 btrace_compute_src_line_range,
8645 record_btrace_frame_prev_register): Adjust to change to
8646 std::vector.
8647 * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust
8648 to change to std::vector.
8649
0638b7f9
TT
86502017-09-03 Tom Tromey <tom@tromey.com>
8651
8652 * corefile.c (reopen_exec_file): Use std::string.
8653
8f84fb0e
TT
86542017-09-03 Tom Tromey <tom@tromey.com>
8655
8656 * compile/compile.c (compile_register_name_mangled): Return
8657 std::string.
8658 * compile/compile-loc2c.c (pushf_register_address): Update.
8659 (pushf_register): Update.
8660 * compile/compile-c-types.c (convert_array): Update.
8661 * compile/compile-c-symbols.c (generate_vla_size): Update.
8662 (error_symbol_once): Use a gdb::unique_xmalloc_ptr.
8663 (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr.
8664 (convert_one_symbol): Update.
8665 (generate_c_for_for_one_variable): Update.
8666 * compile/compile-c-support.c (c_get_range_decl_name): Return a
8667 std::string.
8668 (generate_register_struct): Update.
8669 * compile/compile-internal.h (c_get_range_decl_name): Return a
8670 std::string.
8671 (compile_register_name_mangled): Return std::string.
8672
18e9961f
TT
86732017-09-03 Tom Tromey <tom@tromey.com>
8674
8675 * utils.c (perror_string): Return a std::string.
8676 (throw_perror_with_name, perror_warning_with_name): Update.
8677
45343786
TT
86782017-09-03 Tom Tromey <tom@tromey.com>
8679
8680 * demangle.c (demangle_command): Use std::string,
8681 unique_xmalloc_ptr.
8682
b57af503
TT
86832017-09-03 Tom Tromey <tom@tromey.com>
8684
8685 * cli/cli-setshow.c (do_set_command): Use std::string.
8686
6eecf35f
TT
86872017-09-03 Tom Tromey <tom@tromey.com>
8688
8689 * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr.
8690
56496dd4
TT
86912017-09-03 Tom Tromey <tom@tromey.com>
8692
8693 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string.
8694
e91a1fa7
TT
86952017-09-03 Tom Tromey <tom@tromey.com>
8696
8697 * mi/mi-cmd-env.c (env_execute_cli_command): Use
8698 gdb::unique_xmalloc_ptr.
8699
7ffd83d7
TT
87002017-09-03 Tom Tromey <tom@tromey.com>
8701
8702 * thread.c (print_thread_info_1): Use string_printf.
8703 (thread_apply_command, thread_apply_all_command): Use
8704 std::string.
8705
1ccbe998
TT
87062017-09-03 Tom Tromey <tom@tromey.com>
8707
8708 * valprint.c (val_print_string): Update.
8709 * gdbcore.h (memory_error_message): Return std::string.
8710 * corefile.c (memory_error_message): Return std::string.
8711 (memory_error): Update.
8712 * breakpoint.c (insert_bp_location): Update.
8713
23fdd69e
SM
87142017-09-03 Simon Marchi <simon.marchi@ericsson.com>
8715
8716 * target/waitstatus.h (target_waitstatus_to_string): Change
8717 return type to std::string.
8718 * target/waitstatus.c (target_waitstatus_to_string): Return
8719 std::string.
8720 * target.h (target_waitstatus_to_string): Remove declaration.
8721 * infrun.c (resume, clear_proceed_status_thread,
8722 print_target_wait_results, do_target_wait, save_waitstatus,
8723 stop_all_threads): Adjust.
8724 * record-btrace.c (record_btrace_wait): Adjust.
8725 * target-debug.h
8726 (target_debug_print_struct_target_waitstatus_p): Adjust.
8727
5c811d30
JK
87282017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8729
8730 PR gdb/22046
8731 * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED
8732 detection.
8733
0a2dde4a
SDJ
87342017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
8735
8736 * NEWS (Changes since GDB 8.0): Add entry mentioning new support
8737 for setting/unsetting environment variables on the remote target.
8738 (New remote packets): Add entries for QEnvironmentHexEncoded,
8739 QEnvironmentUnset and QEnvironmentReset.
8740 * common/environ.c (gdb_environ::operator=): Extend method to
8741 handle m_user_set_env_list and m_user_unset_env_list.
8742 (gdb_environ::clear): Likewise.
8743 (match_var_in_string): Change type of first parameter from 'char
8744 *' to 'const char *'.
8745 (gdb_environ::set): Extend method to handle
8746 m_user_set_env_list and m_user_unset_env_list.
8747 (gdb_environ::unset): Likewise.
8748 (gdb_environ::clear_user_set_env): New method.
8749 (gdb_environ::user_set_envp): Likewise.
8750 (gdb_environ::user_unset_envp): Likewise.
8751 * common/environ.h (gdb_environ): Handle m_user_set_env_list and
8752 m_user_unset_env_list on move constructor/assignment.
8753 (unset): Add new default parameter 'update_unset_list = true'.
8754 (clear_user_set_env): New method.
8755 (user_set_envp): Likewise.
8756 (user_unset_envp): Likewise.
8757 (m_user_set_env_list): New std::set.
8758 (m_user_unset_env_list): Likewise.
8759 * common/rsp-low.c (hex2str): New function.
8760 (bin2hex): New overload for bin2hex function.
8761 * common/rsp-low.c (hex2str): New prototype.
8762 (str2hex): New overload prototype.
8763 * remote.c: Include "environ.h". Add QEnvironmentHexEncoded,
8764 QEnvironmentUnset and QEnvironmentReset.
8765 (remote_protocol_features): Add QEnvironmentHexEncoded,
8766 QEnvironmentUnset and QEnvironmentReset packets.
8767 (send_environment_packet): New function.
8768 (extended_remote_environment_support): Likewise.
8769 (extended_remote_create_inferior): Call
8770 extended_remote_environment_support.
8771 (_initialize_remote): Add QEnvironmentHexEncoded,
8772 QEnvironmentUnset and QEnvironmentReset packet configs.
8773 * unittests/environ-selftests.c (gdb_selftest_env_var):
8774 New variable.
8775 (test_vector_initialization): New function.
8776 (test_init_from_host_environ): Likewise.
8777 (test_reinit_from_host_environ): Likewise.
8778 (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B):
8779 Likewise.
8780 (test_unset_set_empty_vector): Likewise.
8781 (test_vector_clear): Likewise.
8782 (test_std_move): Likewise.
8783 (test_move_constructor):
8784 (test_self_move): Likewise.
8785 (test_set_unset_reset): Likewise.
8786 (run_tests): Rewrite in terms of the functions above.
8787
654670a4
WP
87882017-08-31 Weimin Pan <weimin.pan@oracle.com>
8789
8790 * sparc64-tdep.c (adi_stat_t): Fix comment formatting.
8791 (adi_available): Use a temp variable of type CORE_ADDR as argument
8792 3 when calling target_auxv_search.
8793 (adi_normalize_address): Use masks and xor operators to calculate
8794 normalized address.
8795 (adi_read_versions, adi_write_versions, adi_print_versions)
8796 (do_examine, do_assign): Use paddress.
8797
7755ddb7
JB
87982017-08-29 John Baldwin <jhb@FreeBSD.org>
8799
8800 * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR.
8801 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR
8802 out of loop and add supply of FIR.
8803 (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and
8804 add collect of FIR.
8805
fd437cbc
SM
88062017-08-28 Simon Marchi <simon.marchi@ericsson.com>
8807
3804a343 8808 PR gdb/21827
fd437cbc
SM
8809 * cli/cli-script.c (define_command): Don't convert command name
8810 to lower case.
8811
988f6b3d
JB
88122017-08-25 Joel Brobecker <brobecker@adacore.com>
8813
8814 * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp".
8815 Update all callers accordingly. Remove all code blocks handling
8816 the case where DISPP is not NULL.
8817
663c44ac
JK
88182017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8819
8820 PR symtab/22003
8821 * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow)
8822 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
8823 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const.
8824
f1902523
JK
88252017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8826
8827 * dwarf2read.c (build_type_psymtabs_reader): New prototype.
8828 (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES.
8829 (read_comp_units_from_section): New parameter abbrev_section, use
8830 read_and_check_comp_unit_head, allocate signatured_type if needed.
8831 (create_all_comp_units): Update read_comp_units_from_section caller.
8832
87215ad1
SDJ
88332017-08-23 Pedro Alves <palves@redhat.com>
8834
8835 PR remote/21852
8836 * remote.c (add_current_inferior_and_thread): Set inferior_ptid
8837 to null_ptid and switch to thread without reading the registers
8838 after adding the inferior.
8839
6e41ddec
JK
88402017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
8841
8842 * NEWS (Changes since GDB 8.0): Add set compile-gcc and show
8843 compile-gcc.
8844 * compile/compile.c (compile_gcc, show_compile_gcc): New.
8845 (compile_to_object): Implement compile_gcc.
8846 (_initialize_compile): Install "set compile-gcc". Initialize
8847 compile_gcc.
8848
e68c32d5
JK
88492017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
8850
8851 * compile/compile.c (compile_to_object): Conditionally call
8852 set_verbose. Conditionally call compile or compile_v0.
8853
58afddc6
WP
88542017-08-07 Weimin Pan <weimin.pan@oracle.com>
8855
8856 * sparc64-tdep.h: (adi_normalize_address): New export.
8857 * sparc-nat.h: (open_adi_tag_fd): New export.
8858 * sparc64-linux-nat.c: (open_adi_tag_fd): New function.
8859 * sparc64-linux-tdep.c:
8860 (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines.
8861 (sparc64_linux_handle_segmentation_fault): New function.
8862 (sparc64_linux_init_abi): Register
8863 sparc64_linux_handle_segmentation_fault
8864 * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h.
8865 (sparc64_addr_bits_remove): New function.
8866 (sparc64_init_abi): Register sparc64_addr_bits_remove.
8867 (MAX_PROC_NAME_SIZE): New macro.
8868 (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines.
8869 (sparc64adilist): New variable.
8870 (adi_proc_list): New variable.
8871 (find_adi_info): New function.
8872 (add_adi_info): New function.
8873 (get_adi_info_proc): New function.
8874 (get_adi_info): New function.
8875 (info_adi_command): New function.
8876 (read_maps_entry): New function.
8877 (adi_available): New function.
8878 (adi_normalize_address): New function.
8879 (adi_align_address): New function.
8880 (adi_convert_byte_count): New function.
8881 (adi_tag_fd): New function.
8882 (adi_is_addr_mapped): New function.
8883 (adi_read_versions): New function.
8884 (adi_write_versions): New function.
8885 (adi_print_versions): New function.
8886 (do_examine): New function.
8887 (do_assign): New function.
8888 (adi_examine_command): New function.
8889 (adi_assign_command): New function.
8890 (_initialize_sparc64_adi_tdep): New function.
8891
11db9430
SM
88922017-08-22 Simon Marchi <simon.marchi@ericsson.com>
8893
8894 * breakpoint.c (breakpoints_info): Rename to ...
8895 (info_breakpoints_command): ... this.
8896 (watchpoints_info): Rename to ...
8897 (info_watchpoints_command): ... this.
8898 (tracepoints_info): Rename to ...
8899 (info_tracepoints_command): ... this.
8900 (_initialize_breakpoint): Adjust.
8901 * dcache.c (dcache_info): Rename to ...
8902 (info_display_command): ... this.
8903 (_initialize_dcache): Adjust.
8904 * frame.h (args_info): Rename to ...
8905 (info_args_command): ... this.
8906 (locals_info): Rename to ...
8907 (info_locals_command): ... this.
8908 * infcmd.c (nofp_registers_info): Rename to ...
8909 (info_registers_command): ... this.
8910 (float_info): Rename to ...
8911 (info_float_command): ... this.
8912 (program_info): Rename to ...
8913 (info_program_command): ... this.
8914 (all_registers_info): Rename to ...
8915 (info_all_registers_command): ... this.
8916 (vector_info): Rename to ...
8917 (info_vector_command): ... this.
8918 (float_info): Rename to ...
8919 (info_float_command): ... this.
8920 (_initialize_infcmd): Adjust.
8921 * inferior.h (term_info): Rename to ...
8922 (info_terminal_command): ... this.
8923 * inflow.c (term_info): Rename to ...
8924 (info_terminal_command): ... this.
8925 (_initialize_inflow): Adjust.
8926 * infrun.c (signals_info): Rename to ...
8927 (info_signals_command): ... this.
8928 (_initialize_infrun): Adjust.
8929 * objc-lang.c (classes_info): Rename to ...
8930 (info_classes_command): ... this.
8931 (selectors_info): Rename to ...
8932 (info_selectors_command): ... this.
8933 (_initialize_objc_language): Adjust.
8934 * printcmd.c (sym_info): Rename to ...
8935 (info_symbol_command): ... this.
8936 (address_info): Rename to ...
8937 (info_address_command): ... this.
8938 (display_info): Rename to ...
8939 (info_display_command): ... this.
8940 (_initialize_printcmd): Adjust.
8941 * reverse.c (bookmarks_info): Rename to ...
8942 (info_breakpoints_command): ... this.
8943 (_initialize_reverse): Adjust.
8944 * ser-go32.c (dos_info): Rename to ...
8945 (info_serial_command): ... this.
8946 (_initialize_ser_dos): Adjust.
8947 * skip.c (skip_info): Rename to ...
8948 (info_skip_command): ... this.
8949 (_initialize_step_skip): Adjust.
8950 * source.c (line_info): Rename to ...
8951 (info_line_command): ... this.
8952 (source_info): Rename to ...
8953 (info_source_command)
8954 * stack.c (frame_info): Rename to ...
8955 (info_frame_command): ... this.
8956 (locals_info): Rename to ...
8957 (info_locals_command): ... this.
8958 (args_info): Rename to ...
8959 (info_args_command): ... this.
8960 (_initialize_stack): Adjust.
8961 * symtab.c (sources_info): Rename to ...
8962 (info_sources_command): ... this.
8963 (variables_info): Rename to ...
8964 (info_variables_command): ... this.
8965 (functions_info): Rename to ...
8966 (info_functions_command): ... this.
8967 (types_info): Rename to ...
8968 (info_types_command): ... this.
8969 (_initialize_symtab): Adjust.
8970 * target.c (target_info): Rename to ...
8971 (info_target_command): ... this.
8972 (initialize_targets): Adjust.
8973 * tracepoint.c (tvariables_info): Rename to ...
8974 (info_tvariables_command): ... this.
8975 (scope_info): Rename to ...
8976 (info_scope_command): ... this.
8977 (trace_dump_actions): Adjust.
8978 (_initialize_tracepoint): Adjust.
8979
b270e6f9
TT
89802017-08-22 Tom Tromey <tom@tromey.com>
8981
8982 * breakpoint.h (install_breakpoint): Update.
8983 * breakpoint.c (add_solib_catchpoint): Update.
8984 (install_breakpoint): Change argument to a std::unique_ptr.
8985 (create_fork_vfork_event_catchpoint): Use std::unique_ptr.
8986 (create_breakpoint_sal, create_breakpoint): Update.
8987 (watch_command_1, catch_exec_command_1)
8988 (strace_marker_create_breakpoints_sal): Use std::unique_ptr.
8989 (add_to_breakpoint_chain): Change argument to a std::unique_ptr.
8990 Return the breakpoint.
8991 (set_raw_breakpoint_without_location, set_raw_breakpoint)
8992 (new_single_step_breakpoint): Update.
8993 * break-catch-throw.c (handle_gnu_v3_exceptions): Use
8994 std::unique_ptr.
8995 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
8996 std::unique_ptr.
8997 * break-catch-sig.c (create_signal_catchpoint): Use
8998 std::unique_ptr.
8999 * ada-lang.c (create_ada_exception_catchpoint): Use
9000 std::unique_ptr.
9001
36bd8eaa
TT
90022017-08-22 Tom Tromey <tom@tromey.com>
9003
9004 * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr.
9005
56f37645
TT
90062017-08-22 Tom Tromey <tom@tromey.com>
9007
9008 * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr.
9009 (lookup_partial_symbol): Update.
9010
0b581c69
TT
90112017-08-22 Tom Tromey <tom@tromey.com>
9012
9013 * source.h (rewrite_source_path): Return a unique_xmalloc_ptr.
9014 * source.c (rewrite_source_path): Return a unique_xmalloc_ptr.
9015 (find_and_open_source, symtab_to_fullname): Update.
9016 * psymtab.c (psymtab_to_fullname): Update.
9017
14278e1f
TT
90182017-08-22 Tom Tromey <tom@tromey.com>
9019
9020 * exec.c (exec_file_attach): Update.
9021 * linux-thread-db.c (try_thread_db_load): Update.
9022 * guile/scm-safe-call.c (gdbscm_safe_source_script): Update.
9023 * utils.c (gdb_realpath): Change return type.
9024 (gdb_realpath_keepfile): Update.
9025 (gdb_realpath_check_trailer, gdb_realpath_tests): New functions.
9026 (_initialize_utils): Register the new self test.
9027 * source.c (openp): Update.
9028 (find_and_open_source): Update.
9029 * nto-tdep.c (nto_find_and_open_solib): Update.
9030 * main.c (set_gdb_data_directory): Update.
9031 (captured_main_1): Update.
9032 * dwarf2read.c (dwarf2_get_dwz_file): Update
9033 (dw2_map_symbol_filenames): Update.
9034 * auto-load.c (auto_load_safe_path_vec_update): Update.
9035 (filename_is_in_auto_load_safe_path_vec): Change type of
9036 "filename_realp".
9037 (auto_load_objfile_script): Update.
9038 (file_is_auto_load_safe): Update. Use std::string.
9039 * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr.
9040
4971c9a7
TT
90412017-08-22 Tom Tromey <tom@tromey.com>
9042
9043 * utils.c (gdb_realpath_keepfile): Return a
9044 gdb::unique_xmalloc_ptr.
9045 * exec.c (exec_file_attach): Update.
9046 * utils.h (gdb_realpath_keepfile): Return a
9047 gdb::unique_xmalloc_ptr.
9048
e3e41d58
TT
90492017-08-22 Tom Tromey <tom@tromey.com>
9050
9051 * compile/compile.c (compile_file_command): Use
9052 gdb::unique_xmalloc_ptr, std::string.
9053 * utils.c (gdb_abspath): Change return type.
9054 * source.c (openp): Update.
9055 * objfiles.c (allocate_objfile): Update.
9056 * main.c (set_gdb_data_directory): Update.
9057 * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr.
9058
0d999a6e
ZZ
90592017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com>
9060
9061 * cli-cmds.c (list_commands): List actual code around more than
9062 one location.
9063
329d5e7e
JB
90642017-08-21 John Baldwin <jhb@FreeBSD.org>
9065
9066 * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'.
9067
bf223d3e
PA
90682017-08-21 Pedro Alves <palves@redhat.com>
9069
9070 PR gdb/19487
9071 * c-exp.y (variable production): Handle function aliases.
9072 * minsyms.c (msymbol_is_text): New function.
9073 * minsyms.h (msymbol_is_text): Declare.
9074 * symtab.c (find_function_alias_target): New function.
9075 * symtab.h (find_function_alias_target): Declare.
9076
c973d0aa
PA
90772017-08-21 Pedro Alves <palves@redhat.com>
9078
9079 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past
9080 typedefs.
9081 * typeprint.c (whatis_exp): If handling "whatis", and expression
9082 is OP_TYPE, strip one typedef level. Otherwise don't strip
9083 typedefs here.
9084 * valops.c (value_cast): Save "to" type before resolving
9085 stubs/typedefs. Use that type as resulting value's type.
9086
2989a365
TT
90872017-08-18 Tom Tromey <tom@tromey.com>
9088 Pedro Alves <palves@redhat.com>
9089
9090 * spu-multiarch.c (parse_spufs_run): Use scoped_restore.
9091 * sol-thread.c (sol_thread_resume, sol_thread_wait)
9092 (sol_thread_xfer_partial, rw_common): Use scoped_restore.
9093 * procfs.c (procfs_do_thread_registers): Use scoped_restore.
9094 * proc-service.c (ps_xfer_memory): Use scoped_restore.
9095 * linux-tdep.c (linux_corefile_thread): Remove a cleanup.
9096 (linux_get_siginfo_data): Add "thread" argument. Use
9097 scoped_restore.
9098 * linux-nat.c (linux_child_follow_fork)
9099 (check_stopped_by_watchpoint): Use scoped_restore.
9100 * infrun.c (displaced_step_prepare_throw, write_memory_ptid)
9101 (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore.
9102 (restore_inferior_ptid, save_inferior_ptid): Remove.
9103 * btrace.c (btrace_fetch): Use scoped_restore.
9104 * bsd-uthread.c (bsd_uthread_fetch_registers)
9105 (bsd_uthread_store_registers): Use scoped_restore.
9106 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
9107 scoped_restore.
9108 * aix-thread.c (aix_thread_resume, aix_thread_wait)
9109 (aix_thread_xfer_partial): Use scoped_restore.
9110 * inferior.h (save_inferior_ptid): Remove.
9111
e60eb288
YQ
91122017-08-18 Yao Qi <yao.qi@linaro.org>
9113
9114 PR tdep/21818
9115 * arm-tdep.c (gdb_print_insn_arm): Mark
9116 USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL.
9117
6d580b63
YQ
91182017-08-18 Yao Qi <yao.qi@linaro.org>
9119
9120 * NEWS: Mention GDBserver's new option "--selftest".
9121 * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c.
9122 * selftest.c: Move it to common/selftest.c.
9123 * selftest.h: Move it to common/selftest.h.
9124 * selftest-arch.c (reset): New function.
9125 (tests_with_arch): Call reset.
9126
86dcbf50
YQ
91272017-08-18 Yao Qi <yao.qi@linaro.org>
9128
9129 * selftest.c (run_tests): Don't call QUIT. Call debug_printf
9130 instead of exception_fprintf and printf_filtered.
9131
7649770c
YQ
91322017-08-18 Yao Qi <yao.qi@linaro.org>
9133
9134 * selftest.c (register_self_test): Rename it to
9135 selftests::register_test.
9136 (run_self_tests): selftest::run_tests.
9137 * selftest.h: Update declarations.
9138 * selftest-arch.c (register_self_test_foreach_arch): Rename it to
9139 selftests::register_test_foreach_arch.
9140 * selftest-arch.h: Update declaration.
9141 * aarch64-tdep.c: Update.
9142 * arm-tdep.c: Likewise.
9143 * disasm-selftests.c: Likewise.
9144 * dwarf2loc.c: Likewise.
9145 * dwarf2-frame.c: Likewise.
9146 * findvar.c: Likewise.
9147 * gdbarch-selftests.c: Likewise.
9148 * maint.c (maintenance_selftest): Likewise.
9149 * regcache.c: Likewise.
9150 * rust-exp.y: Likewise.
9151 * selftest-arch.c: Likewise.
9152 * unittests/environ-selftests.c: Likewise.
9153 * unittests/function-view-selftests.c: Likewise.
9154 * unittests/offset-type-selftests.c: Likewise.
9155 * unittests/optional-selftests.c: Likewise.
9156 * unittests/scoped_restore-selftests.c: Likewise.
9157 * utils-selftests.c: Likewise.
9158
b0cba12e
PA
91592017-08-17 Pedro Alves <palves@redhat.com>
9160
9161 * cli/cli-cmds.c (source_command): Delete 'old_source_verbose'
9162 local.
9163
4c8aa72d
PA
91642017-08-17 Pedro Alves <palves@redhat.com>
9165
9166 * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New
9167 field.
9168 (reset_die_in_process): Delete, replaced by ...
9169 (process_die_scope): ... this new class. Make it responsible for
9170 freeing cu->line_header too.
9171 (process_die): Use process_die_scope.
9172 (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in
9173 cu->line_header_die_owner. Don't release the line header if it's
9174 owned by the CU.
9175 (setup_type_unit_groups): Make the CU/DIE own the line header.
9176 Don't release the line header here.
9177
ba713918
AL
91782017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change)
9179
9180 * elfread.c (elf_read_minimal_symbols): xfree synthsyms.
9181
44d0fb3a
RK
91822017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com>
9183
9184 * NEWS: Mention new shortcuts for nexti and stepi in TUI
9185 Single-Key mode
9186
a5afdb16
RK
91872017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com>
9188
9189 * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key
9190 mode command list.
9191
47613aeb
SH
91922017-08-15 Stafford Horne <shorne@gmail.com>
9193
9194 * MAINTAINERS (Write After Approval): Add Stafford Horne.
9195
9c3cc999
SH
91962017-08-15 Stafford Horne <shorne@gmail.com>
9197
9198 * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname.
9199
206726fb
SDJ
92002017-08-15 Sergio Durigan Junior <sergiodj@redhat.com>
9201
9202 PR gdb/21954
9203 * infcmd.c (unset_environment_command): Use the 'clear' method on
9204 the environment instead of resetting it.
9205
0335ac6d
JB
92062017-08-15 John Baldwin <jhb@FreeBSD.org>
9207
9208 * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian
9209 platforms.
9210
d3abe1c8
TT
92112017-08-14 Tom Tromey <tom@tromey.com>
9212
9213 * valprint.c (print_octal_chars): Use HOST_CHAR_BIT.
9214 (print_binary_chars): Likewise.
9215 (BITS_IN_BYTES): Remove.
9216
d6382fff
TT
92172017-08-14 Tom Tromey <tom@tromey.com>
9218
9219 PR gdb/21675
9220 * valprint.c (LOW_ZERO): Change value to 034.
9221 (print_octal_chars): Add static_asserts for octal constants.
9222 * printcmd.c (print_scalar_formatted): Add 'd' case.
9223
f978cb06
TT
92242017-08-11 Tom Tromey <tom@tromey.com>
9225
9226 * symfile.c (add_symbol_file_command): Use std::vector.
9227
2f5404b3
TT
92282017-08-14 Tom Tromey <tom@tromey.com>
9229
9230 * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move.
9231 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
9232 std::move.
9233 * break-catch-sig.c (create_signal_catchpoint): Use std::move.
9234
de7985c3
PA
92352017-08-11 Pedro Alves <palves@redhat.com>
9236
9237 * infrun.c (process_event_stop_test): Adjust
9238 function_name_is_marked_for_skip call.
9239 * skip.c: Include <list>.
9240 (skiplist_entry): Make it a class with private fields, and
9241 getters/setters.
9242 (skiplist_entry_chain): Delete.
9243 (skiplist_entries): New.
9244 (skiplist_entry_count): Delete.
9245 (highest_skiplist_entry_num): New.
9246 (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete.
9247 (add_skiplist_entry): Delete.
9248 (skiplist_entry::skiplist_entry): New.
9249 (skiplist_entry::add_entry): New.
9250 (skip_file_command, skip_function): Adjust.
9251 (compile_skip_regexp): Delete.
9252 (skip_command): Don't compile regexp here. Adjust to use
9253 skiplist_entry::add_entry.
9254 (skip_info): Adjust to use range-for and getters.
9255 (skip_enable_command, skip_disable_command): Adjust to use
9256 range-for and setters.
9257 (skip_delete_command): Adjust to use std::list.
9258 (add_skiplist_entry): Delete.
9259 (skip_file_p): Delete, refactored as ...
9260 (skiplist_entry::do_skip_file_p): ... this new method.
9261 (skip_gfile_p): Delete, refactored as ...
9262 (skiplist_entry::do_gskip_file_p): ... this new method.
9263 (skip_function_p, skip_rfunction_p): Delete, refactored as ...
9264 (skiplist_entry::skip_function_p): ... this new method.
9265 (function_name_is_marked_for_skip): Now returns bool, and takes
9266 the function sal by const reference. Adjust to use range-for and
9267 skiplist_entry methods.
9268 (_initialize_step_skip): Remove references to
9269 skiplist_entry_chain, skiplist_entry_count.
9270 * skip.h (function_name_is_marked_for_skip): Now returns bool, and
9271 takes the function sal by const reference.
9272
be7d3cd5
YQ
92732017-08-11 Yao Qi <yao.qi@linaro.org>
9274
9275 * dwarf2-frame.c (clear_pointer_cleanup): Remove.
9276 (dwarf2_frame_cache): Remove reset_cache_cleanup.
9277 (dwarf2_frame_cache):
9278 * frame-unwind.c (frame_unwind_try_unwinder): Catch
9279 RETURN_MASK_ALL and set *this_case to NULL.
9280 * frame-unwind.h: Update comments.
9281
1c90d9f0
YQ
92822017-08-11 Yao Qi <yao.qi@linaro.org>
9283
9284 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove.
9285 (dwarf2_frame_state_copy_regs): Remove.
9286 (dwarf2_frame_state_free_regs): Remove.
9287 (dwarf2_frame_state::~dwarf2_frame_state): Remove.
9288 (dwarf2_restore_rule): Call method .alloc_regs instead of
9289 dwarf2_frame_state_alloc_regs.
9290 (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info
9291 constructor. Call std::move.
9292 (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs.
9293 (dwarf2_frame_cache): Likewise.
9294
9295 [GDB_SELF_TEST]: Include selftest.h and
9296 selftest-arch.h.
9297 [GDB_SELF_TEST] (execute_cfa_program_test): New function.
9298 (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register
9299 execute_cfa_program_test.
9300
9301 * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor,
9302 copy ctor, assignment operator, move assignment.
9303 <alloc_regs>: New method.
9304 <swap>: New method.
9305 (struct dwarf2_frame_state): Delete dtor.
9306 (dwarf2_frame_state_alloc_regs): Remove declaration.
9307 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call
9308 dwarf2_frame_state_alloc_regs, use .alloc_regs instead.
9309
afe37d6b
YQ
93102017-08-11 Yao Qi <yao.qi@linaro.org>
9311
9312 * dwarf2-frame.c (dwarf2_frame_state_free): Remove.
9313 (dwarf2_frame_state::dwarf2_frame_state): New.
9314 (dwarf2_frame_state::~dwarf2_frame_state): New.
9315 (dwarf2_fetch_cfa_info): Update.
9316 (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object
9317 rather than a pointer. Update code.
9318 * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and
9319 dtor.
9320 <data_align, code_align, retaddr_column>: Change them to const.
9321 <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them
9322 to bool.
9323
b348037f
YQ
93242017-08-11 Yao Qi <yao.qi@linaro.org>
9325
9326 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove.
9327 <loc.exp>: New field.
9328 * dwarf2-frame.c (execute_cfa_program): Update.
9329 (dwarf2_frame_prev_register): Update.
9330
e7c9de26
PA
93312017-08-10 Pedro Alves <palves@redhat.com>
9332
9333 * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define.
9334
e8c6b620
JB
93352017-08-09 John Baldwin <jhb@FreeBSD.org>
9336
9337 * fbsd-nat.c (struct fbsd_fork_info): Remove.
9338 (fbsd_pending_children): Use std::list.
9339 (fbsd_remember_child): Likewise.
9340 (fbsd_is_child_pending): Likewise.
9341 (fbsd_pending_vfork_done): Use std::forward_list.
9342 (fbsd_add_vfork_done): Likewise.
9343 (fbsd_is_vfork_done_pending): Likewise.
9344 (fbsd_next_vfork_done): Likewise.
9345
e4a26669
JB
93462017-08-09 John Baldwin <jhb@FreeBSD.org>
9347
9348 * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New.
9349 (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr.
9350 [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string
9351 for `mapfilename'.
9352 (fbsd_xfer_partial): Use gdb::byte_vector.
af3881e6 9353 (fbsd_add_threads): Use gdb::unique_xmalloc_ptr.
e4a26669 9354
142311d3
JB
93552017-08-09 John Baldwin <jhb@FreeBSD.org>
9356
9357 * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and
9358 "filestuff.h".
9359 (fbsd_find_memory_regions): Fix `mapfile' initialization.
9360
42fa2e0e
TT
93612017-08-09 Tom Tromey <tom@tromey.com>
9362
9363 * skip.c (skiplist_entry): New constructor.
9364 (skiplist_entry::enabled, skiplist_entry::function_is_regexp)
9365 (skiplist_entry::file_is_glob): Now bool.
9366 (skiplist_entry::file, skiplist_entry::function): Now
9367 std::string.
9368 (make_skip_entry): Return a unique_ptr. Use new.
9369 (free_skiplist_entry, free_skiplist_entry_cleanup)
9370 (make_free_skiplist_entry_cleanup): Remove.
9371 (skip_command, skip_disable_command, add_skiplist_entry)
9372 (skip_form_bytes, compile_skip_regexp, skip_command, skip_info)
9373 (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p)
9374 (function_name_is_marked_for_skip): Update.
9375 (skip_delete_command): Update. Use delete.
9376
cd3af38d
JW
93772017-08-09 Jiong Wang <jiong.wang@arm.com>
9378
9379 * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h".
9380 (aarch64_linux_core_read_description): New function.
9381 (aarch64_linux_init_abi): Register gdbarch_core_read_description.
9382
29592bde
PA
93832017-08-09 Pedro Alves <palves@redhat.com>
9384
9385 * cp-name-parser.y (cp_comp_to_string): Return a
9386 gdb::unique_xmalloc_ptr<char>.
9387 * cp-support.c (replace_typedefs_qualified_name)
9388 (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>.
9389 (cp_canonicalize_string_full): Use op= instead of explicit
9390 convertion.
9391 (cp_class_name_from_physname, method_name_from_physname)
9392 (cp_func_name, cp_remove_params): Adjust to use
9393 gdb::unique_xmalloc_ptr<char>.
9394 * cp-support.h (cp_comp_to_string): Return a
9395 gdb::unique_xmalloc_ptr<char>.
9396 * python/py-type.c (typy_lookup_type): Adjust to use
9397 gdb::unique_xmalloc_ptr<char>.
9398
b3340438
L
93992017-08-09 H.J. Lu <hongjiu.lu@intel.com>
9400
9401 * dwarf2read.c (dwarf2_string_attr): Fix a typo.
9402
e88e8651
YQ
94032017-08-09 Alex Lindsay <alexlindsay239@gmail.com>
9404 Yao Qi <yao.qi@linaro.org>
9405
9406 * cp-support.c (cp_canonicalize_string_full): Use
9407 gdb::unique_xmalloc_ptr<char>.
9408 (cp_canonicalize_string): Likewise.
9409
f5a29eb0
YQ
94102017-08-09 Yao Qi <yao.qi@linaro.org>
9411
9412 * features/Makefile (WHICH): Remove i386/ non-linux stuff.
9413 * regformats/i386/amd64-avx-avx512.dat: Remove.
9414 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove.
9415 * regformats/i386/amd64-avx-mpx.dat:Remove.
9416 * regformats/i386/amd64-avx.dat: Remove.
9417 * regformats/i386/amd64-mpx.dat: Remove.
9418 * regformats/i386/i386-avx-avx512.dat: Remove.
9419 * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove.
9420 * regformats/i386/i386-avx-mpx.dat: Remove.
9421 * regformats/i386/i386-mmx.dat: Remove.
9422 * regformats/i386/i386-mpx.dat: Remove.
9423
57757c2f
YQ
94242017-08-09 Yao Qi <yao.qi@linaro.org>
9425
9426 * amd64-tdep.h (tdesc_x32): Remove the declaration.
9427 * amd64-tdep.c: Don't include features/i386/x32*.c.
9428 (_initialize_amd64_tdep): Don't call initialize_tdesc_x32*
9429 functions.
9430 * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx,
9431 and i386/x32-avx-avx512.
9432 (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml,
9433 and i386/x32.xml.
9434 * features/i386/x32-avx-avx512.c: Removed.
9435 * features/i386/x32-avx-avx512.xml: Removed.
9436 * features/i386/x32-avx.c: Removed.
9437 * features/i386/x32-avx.xml: Removed.
9438 * features/i386/x32.c: Removed.
9439 * features/i386/x32.xml: Removed.
9440 * regformats/i386/x32-avx-avx512.dat: Removed.
9441 * regformats/i386/x32-avx.dat: Removed.
9442 * regformats/i386/x32.dat: Removed.
9443
ba7b109b
MR
94442017-08-07 Maciej W. Rozycki <macro@imgtec.com>
9445
9446 PR breakpoints/21886
9447 * mem-break.c (default_memory_insert_breakpoint): Use
9448 `->placed_address' rather than `->reqstd_address' for the
9449 breakpoint location.
9450
e347efc3
MR
94512017-08-07 Maciej W. Rozycki <macro@imgtec.com>
9452
9453 * arch-utils.c (default_print_insn): Remove arch/mach/endian
9454 assertions.
9455
0dba2a6c
MR
94562017-08-07 Maciej W. Rozycki <macro@imgtec.com>
9457
9458 * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with
9459 a union of `tdep_info', `tdesc_data' and `id'.
9460 * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data'
9461 rather than `info.tdep_info'.
9462 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
9463 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
9464 * i386-tdep.c (i386_gdbarch_init): Likewise.
9465 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
9466 * mips-tdep.c (mips_gdbarch_init): Likewise.
9467 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
9468 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
9469 * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than
9470 `info.tdep_info'.
9471 (ppc_linux_init_abi): Use `info.tdesc_data' rather than
9472 `info.tdep_info'.
9473 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
9474 * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than
9475 `info.tdep_info'.
9476 * spu-tdep.c (spu_gdbarch_init): Likewise.
9477 * gdbarch.h: Regenerate.
9478
16eb6b2d
LS
94792017-08-07 Leszek Swirski <leszeks@google.com>
9480
7b005726 9481 PR symtab/20899
16eb6b2d
LS
9482 * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt.
9483
74cbb09e
SM
94842017-08-07 Simon Marchi <simon.marchi@ericsson.com>
9485
9486 * remote-sim.c (gdbsim_load): Remove char **argv local variable.
9487 (gdbsim_open): Rename gdb_argv args object to argv.
9488
ee0c3293
TT
94892017-08-05 Tom Tromey <tom@tromey.com>
9490
9491 * compile/compile-object-load.c (compile_object_load): Use
9492 gdb::unique_xmalloc_ptr.
9493 * cli/cli-dump.c (scan_filename): Rename from
9494 scan_filename_with_cleanup. Change return type.
9495 (scan_expression): Rename from scan_expression_with_cleanup.
9496 Change return type.
9497 (dump_memory_to_file, dump_value_to_file, restore_command):
9498 Use gdb::unique_xmalloc_ptr. Update.
9499 * cli/cli-cmds.c (find_and_open_script): Use
9500 gdb::unique_xmalloc_ptr.
9501 * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr.
9502 * symmisc.c (maintenance_print_symbols)
9503 (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr.
9504 * symfile.c (symfile_bfd_open, generic_load)
9505 (add_symbol_file_command, remove_symbol_file_command): Use
9506 gdb::unique_xmalloc_ptr.
9507 * source.c (openp): Use gdb::unique_xmalloc_ptr.
9508 * psymtab.c (maintenance_print_psymbols): Use
9509 gdb::unique_xmalloc_ptr.
9510 * corelow.c (core_open): Use gdb::unique_xmalloc_ptr.
9511 * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr.
9512 * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr.
9513 (reload_shared_libraries_1): Likewise.
9514
3232fabd
TT
95152017-08-05 Tom Tromey <tom@tromey.com>
9516
9517 * rust-exp.y (rust_op_ptr, set_field): Remove typedefs.
9518 (rust_op_vector, rust_set_vector): New typedefs.
9519 (current_parser): New global.
9520 (work_obstack): Change to pointer type. Update all users.
9521 (rust_ast, pstate): Remove globals.
9522 (struct rust_parser): New.
9523 (%union) <params, field_inits>: Change type.
9524 (start, tuple_expr, unit_expr, struct_expr_list, literal)
9525 (field_expr, expr_list, maybe_expr_list, type_list): Update.
9526 (ast_call_ish, ast_path, ast_function_type, ast_tuple_type)
9527 (convert_params_to_types, convert_params_to_expression): Change
9528 type of "params".
9529 (ast_string): Change type of "fields".
9530 (rust_parse): Make a rust_parser. Remove cleanups.
9531 (rust_lex_tests): Make and install an auto_obstack.
9532
f02fd774
YQ
95332017-08-04 Yao Qi <yao.qi@linaro.org>
9534
9535 * configure.srv (ipa_x32_linux_regobj): New.
9536 * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
9537 instead of X86_TDESC_AVX512.
9538 (initialize_low_tracepoint): Call
9539 init_registers_x32_avx_avx512_linux.
9540
91975afd
YQ
95412017-08-04 Yao Qi <yao.qi@linaro.org>
9542
9543 * utils.h (gdb_argv): Add namespace std for nullptr_t.
9544
2331fa3a
RK
95452017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com>
9546
9547 * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev.
9548
744e4fe1
TT
95492017-08-03 Tom Tromey <tom@tromey.com>
9550
9551 * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv):
9552 Remove.
9553 * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove.
9554
1c034b67
TT
95552017-08-03 Tom Tromey <tom@tromey.com>
9556
9557 * python/py-param.c (compute_enum_values): Use gdb_argv.
9558
773a1edc
TT
95592017-08-03 Tom Tromey <tom@tromey.com>
9560
9561 * utils.h (struct gdb_argv_deleter): New.
9562 (gdb_argv): New class.
9563 * utils.c (gdb_argv::reset): New method.
9564 * tracepoint.c (delete_trace_variable_command): Use gdb_argv.
9565 * tracefile.c (tsave_command): Use gdb_argv.
9566 * top.c (new_ui_command): Use gdb_argv.
9567 * symmisc.c (maintenance_print_symbols)
9568 (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv.
9569 * symfile.c (symbol_file_command, generic_load)
9570 (remove_symbol_file_command): Use gdb_argv.
9571 * stack.c (backtrace_command): Use gdb_argv.
9572 * source.c (add_path, show_substitute_path_command)
9573 (unset_substitute_path_command, set_substitute_path_command):
9574 Use gdb_argv.
9575 * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv.
9576 * ser-mingw.c (pipe_windows_open): Use gdb_argv.
9577 * remote.c (extended_remote_run, remote_put_command)
9578 (remote_get_command, remote_delete_command): Use gdb_argv.
9579 * remote-sim.c (gdbsim_load, gdbsim_create_inferior)
9580 (gdbsim_open): Use gdb_argv.
9581 * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv.
9582 * psymtab.c (maintenance_print_psymbols): Use gdb_argv.
9583 * procfs.c (procfs_info_proc): Use gdb_argv.
9584 * interps.c (interpreter_exec_cmd): Use gdb_argv.
9585 * infrun.c (handle_command): Use gdb_argv.
9586 * inferior.c (add_inferior_command, clone_inferior_command):
9587 Use gdb_argv.
9588 * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv.
9589 * exec.c (exec_file_command): Use gdb_argv.
9590 * cli/cli-cmds.c (alias_command): Use gdb_argv.
9591 * compile/compile.c (build_argc_argv): Use gdb_argv.
9592
0d50bde3
TT
95932017-08-03 Tom Tromey <tom@tromey.com>
9594
9595 * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr.
9596
7f968c89
TT
95972017-08-03 Tom Tromey <tom@tromey.com>
9598
9599 * python/python.c (compute_python_string): Return std::string.
9600 (gdbpy_eval_from_control_command): Update.
9601 (do_start_initialization): Use std::string.
9602 * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not
9603 xstrprintf.
9604 * python/py-breakpoint.c (local_setattro): Use string_printf, not
9605 xstrprintf.
9606
3c9ebddd
TT
96072017-08-03 Tom Tromey <tom@tromey.com>
9608
9609 * top.h (do_restore_instream_cleanup): Remove.
9610 * top.c (do_restore_instream_cleanup): Remove.
9611 (read_command_file): Use scoped_restore.
9612 * cli/cli-script.c (execute_user_command): Use scoped_restore.
9613
b51b225e
TT
96142017-08-03 Tom Tromey <tom@tromey.com>
9615
9616 * cli/cli-script.c (execute_user_command)
9617 (execute_control_command): Use scoped_restore.
9618
ac991630
TT
96192017-08-03 Tom Tromey <tom@tromey.com>
9620
9621 * cli/cli-script.c (do_restore_user_call_depth): Remove.
9622 (execute_user_command): Remove user_call_depth; use
9623 user_args_stack's size instead.
9624
898e0c8e
TT
96252017-08-03 Tom Tromey <tom@tromey.com>
9626
9627 * top.h (in_user_command): Remove.
9628 * top.c (in_user_command): Remove.
9629 * cli/cli-script.c (do_restore_user_call_depth)
9630 (execute_user_command): Update.
9631
26fcd5d7
TT
96322017-08-03 Tom Tromey <tom@tromey.com>
9633
9634 * valops.c (search_struct_method): Use gdb::byte_vector.
9635 * valarith.c (value_concat): Use std::vector.
9636 * target.c (memory_xfer_partial): Use gdb::byte_vector.
9637 (simple_search_memory): Likewise.
9638 * printcmd.c (find_string_backward): Use gdb::byte_vector.
9639 * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector.
9640 * gcore.c (gcore_copy_callback): Use gdb::byte_vector.
9641 * elfread.c (elf_rel_plt_read): Use std::string.
9642 * cp-valprint.c (cp_print_value): Use gdb::byte_vector.
9643 * cli/cli-dump.c (restore_section_callback): Use
9644 gdb::byte_vector.
9645
7c218e6c
TT
96462017-08-03 Tom Tromey <tom@tromey.com>
9647
9648 * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr.
9649
31b68d4a
TT
96502017-08-03 Tom Tromey <tom@tromey.com>
9651
9652 * tui/tui-regs.c (tui_restore_gdbout): Remove.
9653 (tui_register_format): Use scoped_restore.
9654
2ec845e7
TT
96552017-08-03 Tom Tromey <tom@tromey.com>
9656
9657 * reverse.c (exec_direction_default): Remove.
9658 (exec_reverse_once): Use scoped_restore.
9659 * remote.c (restore_remote_timeout): Remove.
9660 (remote_flash_erase, remote_flash_write, remote_flash_done)
9661 (readchar, remote_serial_write): Use scoped_restore.
9662 * cli/cli-script.c (struct source_cleanup_lines_args)
9663 (source_cleanup_lines): Remove.
9664 (script_from_file): Use scoped_restore.
9665 * cli/cli-cmds.c (source_verbose_cleanup): Remove.
9666 (source_command): Use scoped_restore.
9667
b3bc8453
TT
96682017-08-03 Tom Tromey <tom@tromey.com>
9669
9670 * utils.h (make_cleanup_free_so): Remove.
9671 * utils.c (do_free_so, make_cleanup_free_so): Remove.
9672 * solist.h (struct so_deleter): New.
9673 (so_list_up): New typedef.
9674 * solib-svr4.c (svr4_read_so_list): Use so_list_up.
9675
e3ad2841
TT
96762017-08-03 Tom Tromey <tom@tromey.com>
9677
9678 * utils.h (make_cleanup_restore_current_language): Remove.
9679 * utils.c (do_restore_current_language)
9680 (make_cleanup_restore_current_language): Remove.
9681 * parse.c (parse_exp_in_context_1)
9682 (parse_expression_with_language): Use
9683 scoped_restore_current_language.
9684 * mi/mi-main.c (mi_cmd_execute): Use
9685 scoped_restore_current_language.
9686 * language.h (scoped_restore_current_language): New class.
9687
b80cf838
TT
96882017-08-03 Tom Tromey <tom@tromey.com>
9689
9690 * compile/compile.c (cleanup_unlink_file): Remove.
9691 (compile_to_object): Use gdb::unlinker.
9692 (eval_compile_command): Likewise.
9693
fad0444a
TT
96942017-08-03 Tom Tromey <tom@tromey.com>
9695
9696 * utils.h (make_cleanup_fclose): Remove.
9697 * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove.
9698
6e7bc05c
TT
96992017-08-03 Tom Tromey <tom@tromey.com>
9700
9701 * top.c (open_terminal_stream): Return gdb_file_up.
9702 (new_ui_command): Update.
9703
4a45905b
TT
97042017-08-03 Tom Tromey <tom@tromey.com>
9705
9706 * source.c (print_source_lines_base, forward_search_command)
9707 (reverse_search_command): Use gdb_file_up.
9708
7cd06d6e
TT
97092017-08-03 Tom Tromey <tom@tromey.com>
9710
9711 * fbsd-nat.c (fbsd_find_memory_regions): Update.
9712
ed166945
TT
97132017-08-03 Tom Tromey <tom@tromey.com>
9714
9715 * cli/cli-cmds.c (find_and_open_script): Change return type.
9716 Remove "streamp" and "full_path" parameters.
9717 (source_script_with_search): Update.
9718 * auto-load.c (source_script_file): Update.
9719 * cli/cli-cmds.h (find_and_open_script): Change type.
9720 (open_script): New struct.
9721
d419f42d
TT
97222017-08-03 Tom Tromey <tom@tromey.com>
9723
9724 * xml-support.c (xml_fetch_content_from_file): Update.
9725 * ui-file.c (stdio_file::open): Update.
9726 * tracefile-tfile.c (tfile_start): Update.
9727 * remote.c (remote_file_put, remote_file_get): Update.
9728 * nat/linux-procfs.c (linux_proc_get_int)
9729 (linux_proc_pid_get_state, linux_proc_tid_get_name): Update.
9730 * nat/linux-osdata.c (linux_common_core_of_thread): Update.
9731 (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus)
9732 (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem)
9733 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update.
9734 * nat/linux-btrace.c (linux_determine_kernel_start): Update.
9735 * linux-nat.c (linux_proc_pending_signals): Update.
9736 * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up.
9737 (file_closer): Remove.
9738 * compile/compile.c (compile_to_object): Update.
9739 * common/filestuff.h (struct gdb_file_deleter): New.
9740 (gdb_file_up): New typedef.
9741 (gdb_fopen_cloexec): Change return type.
9742 * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up.
9743 * cli/cli-dump.c (fopen_with_cleanup): Remove.
9744 (dump_binary_file, restore_binary_file): Update.
9745 * auto-load.c (auto_load_objfile_script_1): Update.
9746
4a2b031d
TT
97472017-08-03 Tom Tromey <tom@tromey.com>
9748
9749 * tracepoint.c (tvariables_info_1): Use ui_out_emit_table.
9750 (info_static_tracepoint_markers_command): Likewise.
9751 * solib.c (info_sharedlibrary_command): Use ui_out_emit_table.
9752 * skip.c (skip_info): Use ui_out_emit_table.
9753 * progspace.c (print_program_space): Use ui_out_emit_table.
9754 * osdata.c (info_osdata): Use ui_out_emit_table.
9755 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use
9756 ui_out_emit_table.
9757 * linux-thread-db.c (info_auto_load_libthread_db): Use
9758 ui_out_emit_table.
9759 * inferior.c (print_inferior): Use ui_out_emit_table.
9760 * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table.
9761 * breakpoint.c (breakpoint_1): Use ui_out_emit_table.
9762 * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table.
9763 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table.
9764 * ui-out.h (class ui_out_emit_table): New.
9765
a4f320fd
MR
97662017-08-02 Maciej W. Rozycki <macro@imgtec.com>
9767
9768 * mips-tdep.c (mips_fpu_type_str): New function.
9769 (mips_dump_tdep): Call it.
9770
a2f1f308
MR
97712017-08-01 Maciej W. Rozycki <macro@imgtec.com>
9772
9773 * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access
9774 `->mips_fpu_type'.
9775
7e5ed83b
XR
97762017-07-31 Xavier Roirand <roirand@adacore.com>
9777
9778 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
9779
4c9dc811
XR
97802017-07-27 Xavier Roirand <roirand@adacore.com>
9781
9782 * MAINTAINERS (Write After Approval): Add Xavier Roirand.
9783
27d41eac
YQ
97842017-07-26 Yao Qi <yao.qi@linaro.org>
9785
9786 * cli/cli-cmds.c (maintenancechecklist): New variable.
9787 * gdbcmd.h (maintenancechecklist): Declare it.
9788 * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]:
9789 Call i386_linux_read_description with different masks.
9790 * maint.c (maintenance_check_command): New function.
9791 (_initialize_maint_cmds): Call add_prefix_cmd.
9792 * target-descriptions.c (tdesc_reg): override operator != and ==.
9793 (tdesc_type): Likewise.
9794 (tdesc_feature): Likewise.
9795 (target_desc): Likewise.
9796 [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function.
9797 (maintenance_check_xml_descriptions): New function.
9798 (_initialize_target_descriptions) Add command "xml-descriptions".
9799 * target-descriptions.h (selftests::record_xml_tdesc): Declare.
9800
ea03d0d3
YQ
98012017-07-26 Yao Qi <yao.qi@linaro.org>
9802
9803 * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c.
9804 Include features/i386/32bit-*.c.
9805 (i386_linux_read_description): Generate target description if it
9806 doesn't exist.
9807 (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386
9808 functions.
9809 * features/i386/32bit-linux.c: Re-generated.
9810 * features/i386/32bit-sse.c: Likewise.
9811 * target-descriptions.c (print_c_feature::visit): Print code to
9812 set register number if needed.
9813 (print_c_feature) <m_next_regnum>: New field.
9814
25aa13e5
YQ
98152017-07-26 Yao Qi <yao.qi@linaro.org>
9816
9817 * features/Makefile (CFILES): Rename with TDESC_CFILES.
9818 (FEATURE_XMLFILES): New.
9819 (FEATURE_CFILES): New.
9820 New rules.
9821 (clean-cfiles): Remove generated c files.
9822 * features/i386/32bit-avx.c: Generated.
9823 * features/i386/32bit-avx512.c: Generated.
9824 * features/i386/32bit-core.c: Generated.
9825 * features/i386/32bit-linux.c: Generated.
9826 * features/i386/32bit-mpx.c: Generated.
9827 * features/i386/32bit-pkeys.c: Generated.
9828 * features/i386/32bit-sse.c: Generated.
9829 * target-descriptions.c: Include algorithm.
9830 (tdesc_element_visitor): Add method visit_end.
9831 (print_c_tdesc): Implement visit_end.
9832 (print_c_tdesc:: m_filename_after_features): Move it to
9833 protected.
9834 (print_c_feature): New class.
9835 (maint_print_c_tdesc_cmd): Use print_c_feature if XML file
9836 name starts with "i386/32bit-".
9837
6eb1e6a8
YQ
98382017-07-26 Yao Qi <yao.qi@linaro.org>
9839
9840 * target-descriptions.c (tdesc_element_visitor): New class.
9841 (tdesc_element): New class.
9842 (tdesc_reg): Inherit from tdesc_element.
9843 (tdesc_reg::accept): New function.
9844 (tdesc_type): Inherit from tdesc_element.
9845 (tdesc_type::accept): New function.
9846 (tdesc_feature): Inherit from tdesc_element.
9847 (tdesc_feature::accept): New function.
9848 (target_desc): Inherit from tdesc_element.
9849 (target_desc::target_desc): New.
9850 (target_desc::~target_desc): New.
9851 (target_desc::accept): New.
9852 (allocate_target_description): Use new.
9853 (free_target_description): Use delete.
9854 (print_c_tdesc): New class.
9855 (maint_print_c_tdesc_cmd): Adjust.
9856
9857 * features/aarch64.c: Re-generated.
9858 * features/arc-arcompact.c: Re-generated.
9859 * features/arc-v2.c: Re-generated.
9860 * features/arm/arm-with-iwmmxt.c: Re-generated.
9861 * features/arm/arm-with-m.c: Re-generated.
9862 * features/arm/arm-with-m-fpa-layout.c: Re-generated.
9863 * features/arm/arm-with-m-vfp-d16.c: Re-generated.
9864 * features/arm/arm-with-neon.c: Re-generated.
9865 * features/arm/arm-with-vfpv2.c: Re-generated.
9866 * features/arm/arm-with-vfpv3.c: Re-generated.
9867 * features/i386/amd64-avx-avx512.c: Re-generated.
9868 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
9869 * features/i386/amd64-avx.c: Re-generated.
9870 * features/i386/amd64-avx-linux.c: Re-generated.
9871 * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated.
9872 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
9873 * features/i386/amd64-avx-mpx.c: Re-generated.
9874 * features/i386/amd64-avx-mpx-linux.c: Re-generated.
9875 * features/i386/amd64.c: Re-generated.
9876 * features/i386/amd64-linux.c: Re-generated.
9877 * features/i386/amd64-mpx.c: Re-generated.
9878 * features/i386/amd64-mpx-linux.c: Re-generated.
9879 * features/i386/i386-avx-avx512.c: Re-generated.
9880 * features/i386/i386-avx-avx512-linux.c: Re-generated.
9881 * features/i386/i386-avx.c: Re-generated.
9882 * features/i386/i386-avx-linux.c: Re-generated.
9883 * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated.
9884 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated.
9885 * features/i386/i386-avx-mpx.c: Re-generated.
9886 * features/i386/i386-avx-mpx-linux.c: Re-generated.
9887 * features/i386/i386.c: Re-generated.
9888 * features/i386/i386-linux.c: Re-generated.
9889 * features/i386/i386-mmx.c: Re-generated.
9890 * features/i386/i386-mmx-linux.c: Re-generated.
9891 * features/i386/i386-mpx.c: Re-generated.
9892 * features/i386/i386-mpx-linux.c: Re-generated.
9893 * features/i386/x32-avx-avx512.c: Re-generated.
9894 * features/i386/x32-avx-avx512-linux.c: Re-generated.
9895 * features/i386/x32-avx.c: Re-generated.
9896 * features/i386/x32-avx-linux.c: Re-generated.
9897 * features/i386/x32.c: Re-generated.
9898 * features/i386/x32-linux.c: Re-generated.
9899 * features/microblaze.c: Re-generated.
9900 * features/microblaze-with-stack-protect.c: Re-generated.
9901 * features/mips64-dsp-linux.c: Re-generated.
9902 * features/mips64-linux.c: Re-generated.
9903 * features/mips-dsp-linux.c: Re-generated.
9904 * features/mips-linux.c: Re-generated.
9905 * features/nds32.c: Re-generated.
9906 * features/nios2.c: Re-generated.
9907 * features/nios2-linux.c: Re-generated.
9908 * features/rs6000/powerpc-32.c: Re-generated.
9909 * features/rs6000/powerpc-32l.c: Re-generated.
9910 * features/rs6000/powerpc-403.c: Re-generated.
9911 * features/rs6000/powerpc-403gc.c : Re-generated.
9912 * features/rs6000/powerpc-405.c: Re-generated.
9913 * features/rs6000/powerpc-505.c: Re-generated.
9914 * features/rs6000/powerpc-601.c: Re-generated.
9915 * features/rs6000/powerpc-602.c: Re-generated.
9916 * features/rs6000/powerpc-603.c: Re-generated.
9917 * features/rs6000/powerpc-604.c: Re-generated.
9918 * features/rs6000/powerpc-64.c: Re-generated.
9919 * features/rs6000/powerpc-64l.c: Re-generated.
9920 * features/rs6000/powerpc-7400.c: Re-generated.
9921 * features/rs6000/powerpc-750.c: Re-generated.
9922 * features/rs6000/powerpc-860.c: Re-generated.
9923 * features/rs6000/powerpc-altivec32.c: Re-generated.
9924 * features/rs6000/powerpc-altivec32l.c: Re-generated.
9925 * features/rs6000/powerpc-altivec64.c: Re-generated.
9926 * features/rs6000/powerpc-altivec64l.c: Re-generated.
9927 * features/rs6000/powerpc-cell32l.c: Re-generated.
9928 * features/rs6000/powerpc-cell64l.c: Re-generated.
9929 * features/rs6000/powerpc-e500.c: Re-generated.
9930 * features/rs6000/powerpc-e500l.c: Re-generated.
9931 * features/rs6000/powerpc-isa205-32l.c: Re-generated.
9932 * features/rs6000/powerpc-isa205-64l.c: Re-generated.
9933 * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated.
9934 * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated.
9935 * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated.
9936 * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated.
9937 * features/rs6000/powerpc-vsx32.c: Re-generated.
9938 * features/rs6000/powerpc-vsx32l.c: Re-generated.
9939 * features/rs6000/powerpc-vsx64.c: Re-generated.
9940 * features/rs6000/powerpc-vsx64l.c: Re-generated.
9941 * features/rs6000/rs6000.c: Re-generated.
9942 * features/s390-linux32.c: Re-generated.
9943 * features/s390-linux32v1.c: Re-generated.
9944 * features/s390-linux32v2.c: Re-generated.
9945 * features/s390-linux64.c: Re-generated.
9946 * features/s390-linux64v1.c: Re-generated.
9947 * features/s390-linux64v2.c: Re-generated.
9948 * features/s390-te-linux64.c: Re-generated.
9949 * features/s390-tevx-linux64.c: Re-generated.
9950 * features/s390-vx-linux64.c: Re-generated.
9951 * features/s390x-linux64.c: Re-generated.
9952 * features/s390x-linux64v1.c: Re-generated.
9953 * features/s390x-linux64v2.c: Re-generated.
9954 * features/s390x-te-linux64.c: Re-generated.
9955 * features/s390x-tevx-linux64.c: Re-generated.
9956 * features/s390x-vx-linux64.c: Re-generated.
9957 * features/sparc/sparc32-solaris.c: Re-generated.
9958 * features/sparc/sparc64-solaris.c: Re-generated.
9959 * features/tic6x-c62x.c: Re-generated.
9960 * features/tic6x-c62x-linux.c: Re-generated.
9961 * features/tic6x-c64x.c: Re-generated.
9962 * features/tic6x-c64x-linux.c: Re-generated.
9963 * features/tic6x-c64xp.c: Re-generated.
9964 * features/tic6x-c64xp-linux.c: Re-generated.
9965
35b4818d
YQ
99662017-07-26 Yao Qi <yao.qi@linaro.org>
9967
9968 * i386-linux-tdep.c (i386_linux_read_description): New function.
9969 (i386_linux_core_read_description): Call
9970 i386_linux_read_description.
9971 * i386-linux-tdep.h (i386_linux_read_description): Declare.
9972 (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations.
9973 (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise
9974 (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise.
9975 (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise.
9976 * x86-linux-nat.c (x86_linux_read_description): Call
9977 i386_linux_read_description.
9978
8e2141c6
YQ
99792017-07-26 Yao Qi <yao.qi@linaro.org>
9980
9981 * NEWS: Mention it.
9982 * features/Makefile (%.c: %.xml): Pass the xml file name to
9983 command "maint print c-tdesc".
9984 * target-descriptions.c (maint_print_c_tdesc_cmd): Get file
9985 name from 'arg'.
9986
b468ff4c
YQ
99872017-07-26 Yao Qi <yao.qi@linaro.org>
9988
9989 * target-descriptions.c (target_desc): Add ctor and dtor. Do
9990 in-class initialization.
9991 (tdesc_create_feature): Call new instead of XCNEW.
9992 (free_target_description): Ue delete.
9993
b9c0e1b4
JB
99942017-07-25 John Baldwin <jhb@FreeBSD.org>
9995
9996 * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo.
9997
a04b5337
YQ
99982017-07-25 Yao Qi <yao.qi@linaro.org>
9999
10000 * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc
10001 constant.
10002 (amd64_x32_init_abi): Likewise.
10003 * amd64-tdep.h (amd64_init_abi): Update declaration.
10004 (amd64_x32_init_abi): Likewise.
10005
02ad7fc2
YQ
100062017-07-25 Yao Qi <yao.qi@linaro.org>
10007
10008 PR tdep/21717
10009 * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update
10010 condition for FPSCR.
10011 (arm_linux_store_inferior_registers): Likewise.
10012
b6f48cb0
TT
100132017-07-22 Tom Tromey <tom@tromey.com>
10014
10015 * break-catch-syscall.c (struct catch_syscall_inferior_data)
10016 <syscalls_counts>: Now a std::vector.
10017 (get_catch_syscall_inferior_data): Use "new".
10018 (catch_syscall_inferior_data_cleanup): Use "delete".
10019 (insert_catch_syscall, remove_catch_syscall)
10020 (clear_syscall_counts): Update.
10021
e12c9b7a
TT
100222017-07-22 Tom Tromey <tom@tromey.com>
10023
10024 * break-catch-syscall.c (syscall_catchpoint)
10025 <syscalls_to_be_caught>: Now a std::vector<int>
10026 (~syscall_catchpoint): Remove.
10027 (insert_catch_syscall, remove_catch_syscall)
10028 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
10029 (print_mention_catch_syscall, print_recreate_catch_syscall):
10030 Update.
10031 (create_syscall_event_catchpoint): Change type of "filter"
10032 parameter.
10033 (catch_syscall_split_args): Return a std::vector.
10034 (catch_syscall_command_1, catching_syscall_number_1): Update.
10035
4fa8aeac
TT
100362017-07-22 Tom Tromey <tom@tromey.com>
10037
10038 * break-catch-throw.c (struct exception_catchpoint)
10039 <exception_rx>: Now a std::string.
10040 (~exception_catchpoint): Remove.
10041 (print_one_detail_exception_catchpoint): Update.
10042 (handle_gnu_v3_exceptions): Change type of except_rx.
10043 (extract_exception_regexp): Return a std::string.
10044 (catch_exception_command_1): Update.
10045
f746a154
TT
100462017-07-22 Tom Tromey <tom@tromey.com>
10047
10048 * break-catch-sig.c (gdb_signal_type): Remove typedef.
10049 (struct signal_catchpoint) <signals_to_be_caught>: Now a
10050 std::vector.
10051 <catch_all>: Now a bool.
10052 (~signal_catchpoint): Remove.
10053 (signal_catchpoint_insert_location)
10054 (signal_catchpoint_remove_location)
10055 (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one)
10056 (signal_catchpoint_print_mention)
10057 (signal_catchpoint_print_recreate)
10058 (signal_catchpoint_explains_signal): Update.
10059 (create_signal_catchpoint): Change type of "filter" and
10060 "catch_all".
10061 (catch_signal_split_args): Return a std::vector. Change type of
10062 "catch_all".
10063 (catch_signal_command): Update.
10064
47e77640
PA
100652017-07-20 Pedro Alves <palves@redhat.com>
10066
10067 * ada-lang.c (ada_language_defn): Make extern.
10068 (_initialize_ada_language): Remove add_language call.
10069 * c-lang.c (c_language_defn, cplus_language_defn)
10070 (asm_language_defn, minimal_language_defn): Make extern.
10071 (_initialize_c_language): Delete.
10072 * completer.c (compare_cstrings): Delete, moved to utils.h.
10073 * d-lang.c (d_language_defn): Make extern.
10074 (_initialize_d_language): Remove add_language calls.
10075 * defs.h (enum language): Add comment.
10076 * f-lang.c (f_language_defn): Make extern.
10077 (_initialize_f_language): Remove add_language call.
10078 * go-lang.c (go_language_defn): Make extern.
10079 (_initialize_go_language): Remove add_language call.
10080 * language.c: Include <algorithm>.
10081 (languages): Redefine as const array.
10082 (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete.
10083 (set_language_command): Handle "local". Use for-range loop.
10084 (set_language): Remove loop.
10085 (language_enum): Rewrite.
10086 (language_def, language_str): Remove loops.
10087 (add_language): Delete.
10088 (add_set_language_command): New, based on add_languages.
10089 (skip_language_trampoline): Adjust.
10090 (local_language_defn): Delete.
10091 (language_gdbarch_post_init): Adjust.
10092 (_initialize_language): Remove add_language calls. Call
10093 add_set_language_command.
10094 * language.h (add_language): Delete.
10095 (auto_language_defn)
10096 (unknown_language_defn, minimal_language_defn, ada_language_defn)
10097 (asm_language_defn, c_language_defn, cplus_language_defn)
10098 (d_language_defn, f_language_defn, go_language_defn)
10099 (m2_language_defn, objc_language_defn, opencl_language_defn)
10100 (pascal_language_defn, rust_language_defn): Declare.
10101 * m2-lang.c (m2_language_defn): Make extern.
10102 (_initialize_m2_language): Remove add_language call.
10103 * objc-lang.c (objc_language_defn): Make extern.
10104 (_initialize_objc_language): Remove add_language call.
10105 * opencl-lang.c (opencl_language_defn): Make extern.
10106 (_initialize_opencl_language): Remove add_language call.
10107 * p-lang.c (pascal_language_defn): Make extern.
10108 (_initialize_pascal_language): Delete.
10109 * rust-lang.c (rust_language_defn): Make extern.
10110 (_initialize_rust_language): Delete.
10111 * utils.h (compare_cstrings): New static inline function.
10112
edb0c9cb
PA
101132017-07-20 Pedro Alves <palves@redhat.com>
10114
10115 * ada-lang.c (ada_to_fixed_type_1): Adjust.
10116 (get_var_value): Constify parameters.
10117 (get_int_var_value): Change prototype.
10118 (to_fixed_range_type): Adjust.
10119 * ada-lang.h (get_int_var_value): Change prototype.
10120
a778f165
PA
101212017-07-20 Pedro Alves <palves@redhat.com>
10122
10123 * dwarf2read.c (dw2_lookup_symbol): Use
10124 SYMBOL_MATCHES_SEARCH_NAME.
10125 * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME.
10126
42edd901
PA
101272017-07-20 Pedro Alves <palves@redhat.com>
10128
10129 * block.c (block_iter_name_step, block_iter_name_first)
10130 (block_iter_name_next): Delete.
10131 (block_lookup_symbol_primary): Adjust to use
10132 dict_iter_match_first/dict_iter_match_next.
10133 * block.h (block_iter_name_first, block_iter_name_next): Delete
10134 declarations.
10135 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use
10136 dict_iter_match_first/dict_iter_match_next.
10137
cf325299
PA
101382017-07-20 Pedro Alves <palves@redhat.com>
10139
10140 * cp-support.c (cp_find_first_component_aux): Add missing case for
10141 end of string.
10142
c5ed0576
DB
101432017-07-18 David Blaikie <dblaikie@gmail.com>
10144
10145 * dwarf2read.c (create_cus_hash_table): Re-add lost initialization
10146 of dwo_cu's dwo_file.
10147
27841e76
YQ
101482017-07-18 Yao Qi <yao.qi@linaro.org>
10149
10150 * remote.c (store_registers_using_G): Remove one line comment.
10151
cfb7e58b
YQ
101522017-07-18 Yao Qi <yao.qi@linaro.org>
10153
10154 * regcache.c (regcache_cpy): Simplify it.
10155 (regcache::cpy_no_passthrough): Remove it.
10156 * regcache.h (cpy_no_passthrough): Remove it.
10157 (regcache_dup, regcache_cpy): Update comments.
10158
386535dd
PA
101592017-07-18 Pedro Alves <palves@redhat.com>
10160
10161 * remote-sim.c (sim_command_completer): Adjust to work with a
10162 completion_tracker instead of a VEC.
10163
c45ec17c
PA
101642017-07-17 Pedro Alves <palves@redhat.com>
10165
10166 * completer.c (complete_source_filenames): New function.
10167 (complete_address_and_linespec_locations): New function.
10168 (location_completer): Use complete_address_and_linespec_locations.
10169 (completion_tracker::build_completion_result): Honor the tracker's
10170 request to suppress append.
10171 * completer.h (completion_tracker::suppress_append_ws)
10172 (completion_tracker::set_suppress_append_ws): New methods.
10173 (completion_tracker::m_suppress_append_ws): New field.
10174 (complete_source_filenames): New declaration.
10175 * linespec.c (linespec_complete_what): New.
10176 (struct ls_parser) <complete_what, completion_word,
10177 completion_quote_char, completion_quote_end, completion_tracker>:
10178 New fields.
10179 (string_find_incomplete_keyword_at_end): New.
10180 (linespec_lexer_lex_string): Record quote char. If in completion
10181 mode, don't throw.
10182 (linespec_lexer_consume_token): Advance the completion word point.
10183 (linespec_lexer_peek_token): Save/restore completion info.
10184 (save_stream_and_consume_token): New.
10185 (set_completion_after_number): New.
10186 (linespec_parse_basic): Set what to complete next depending on
10187 token. Handle function and label completions specially.
10188 (parse_linespec): Disable objc shortcut in completion mode. Set
10189 what to complete next depending on token type. Skip keyword if in
10190 completion mode.
10191 (complete_linespec_component, linespec_complete): New.
10192 * linespec.h (linespec_complete): Declare.
10193
be966d42
PA
101942017-07-17 Pedro Alves <palves@redhat.com>
10195
10196 * linespec.c (linespec_lexer_lex_string, find_toplevel_char):
10197 Handle 'operator<' / 'operator<<'.
10198
a2459270
PA
101992017-07-17 Pedro Alves <palves@redhat.com>
10200
10201 * completer.c (collect_explicit_location_matches): Handle
10202 MATCH_LABEL.
10203 (convert_explicit_location_to_linespec): New, factored out from
10204 ...
10205 (convert_explicit_location_to_sals): ... this.
10206 (complete_label): New.
10207 (linespec_complete_label, find_label_symbols_in_block): New.
10208 (find_label_symbols): Add completion_mode parameter and adjust to
10209 call find_label_symbols_in_block.
10210 * linespec.h (linespec_complete_label): Declare.
10211
c6756f62
PA
102122017-07-17 Pedro Alves <palves@redhat.com>
10213
10214 * ada-lang.c (ada_collect_symbol_completion_matches): Add
10215 complete_symbol_mode parameter.
10216 * cli/cli-cmds.c (complete_command): Get the completion result out
10217 of the handle_brkchars tracker if used a custom word point.
10218 * completer.c: Include "linespec.h".
10219 (enum explicit_location_match_type) <MATCH_LINE>: New enumerator.
10220 (advance_to_expression_complete_word_point): New.
10221 (completion_tracker::completes_to_completion_word): New.
10222 (complete_files_symbols): Pass down
10223 complete_symbol_mode::EXPRESSION.
10224 (explicit_options, probe_options): New.
10225 (collect_explicit_location_matches): Complete on the
10226 explictit_loc->foo instead of word. Use
10227 linespec_complete_function. Handle MATCH_LINE. Handle offering
10228 keyword and options completions.
10229 (backup_text_ptr): Delete.
10230 (skip_keyword): New.
10231 (complete_explicit_location): Remove 'word' parameter. Add
10232 language, quoted_arg_start and quoted_arg_end parameters.
10233 Rewrite, parsing left to right.
10234 (location_completer): Rewrite.
10235 (location_completer_handle_brkchars): New function.
10236 (symbol_completer): Pass down complete_symbol_mode::EXPRESSION.
10237 (enum complete_line_internal_reason): Adjust comments.
10238 (completion_tracker::discard_completions): New.
10239 (completer_handle_brkchars_func_for_completer): Handle
10240 location_completer.
10241 (gdb_custom_word_point_brkchars)
10242 (gdb_org_rl_basic_quote_characters): New.
10243 (gdb_completion_word_break_characters_throw)
10244 (completion_find_completion_word): Handle trackers that use a
10245 custom word point.
10246 (completion_tracker::advance_custom_word_point_by): New.
10247 (completion_tracker::build_completion_result): Don't rely on
10248 readline appending the quote char.
10249 (gdb_rl_attempted_completion_function_throw): Handle trackers that
10250 use a custom word point.
10251 (gdb_rl_attempted_completion_function): Restore
10252 rl_basic_quote_characters.
10253 * completer.h (class completion_tracker): Extend intro comment.
10254 (completion_tracker::set_quote_char)
10255 (completion_tracker::quote_char)
10256 (completion_tracker::set_use_custom_word_point)
10257 (completion_tracker::use_custom_word_point)
10258 (completion_tracker::custom_word_point)
10259 (completion_tracker::set_custom_word_point)
10260 (completion_tracker::advance_custom_word_point_by)
10261 (completion_tracker::completes_to_completion_word)
10262 (completion_tracker::discard_completions): New methods.
10263 (completion_tracker::m_quote_char)
10264 (completion_tracker::m_use_custom_word_point)
10265 (completion_tracker::m_custom_word_point): New fields.
10266 (advance_to_expression_complete_word_point): Declare.
10267 * f-lang.c (f_collect_symbol_completion_matches): Add
10268 complete_symbol_mode parameter.
10269 * language.h (struct language_defn)
10270 <la_collect_symbol_completion_matches>: Add complete_symbol_mode
10271 parameter.
10272 * linespec.c (linespec_keywords): Add NULL terminator. Make extern.
10273 (linespec_complete_function): New function.
10274 (linespec_lexer_lex_keyword): Adjust.
10275 * linespec.h (linespec_keywords, linespec_complete_function): New
10276 declarations.
10277 * location.c (find_end_quote): New function.
10278 (explicit_location_lex_one): Add explicit_completion_info
10279 parameter. Save quoting info. Don't throw if being called for
10280 completion. Don't handle Ada operators here.
10281 (is_cp_operator, skip_op_false_positives, first_of)
10282 (explicit_location_lex_one_function): New function.
10283 (string_to_explicit_location): Replace 'dont_throw' parameter with
10284 an explicit_completion_info pointer parameter. Handle it. Don't
10285 use explicit_location_lex_one to lex function names. Use
10286 explicit_location_lex_one_function instead.
10287 * location.h (struct explicit_completion_info): New.
10288 (string_to_explicit_location): Replace 'dont_throw' parameter with
10289 an explicit_completion_info pointer parameter.
10290 * symtab.c (default_collect_symbol_completion_matches_break_on):
10291 Add complete_symbol_mode parameter. Handle LINESPEC mode.
10292 (default_collect_symbol_completion_matches)
10293 (collect_symbol_completion_matches): Add complete_symbol_mode
10294 parameter.
10295 (collect_symbol_completion_matches_type): Pass down
10296 complete_symbol_mode::EXPRESSION.
10297 (collect_file_symbol_completion_matches): Add complete_symbol_mode
10298 parameter. Handle LINESPEC mode.
10299 * symtab.h (complete_symbol_mode): New.
10300 (default_collect_symbol_completion_matches_break_on)
10301 (default_collect_symbol_completion_matches)
10302 (collect_symbol_completion_matches)
10303 (collect_file_symbol_completion_matches): Add complete_symbol_mode
10304 parameter.
10305
1d550c82
PA
103062017-07-17 Pedro Alves <palves@redhat.com>
10307
10308 * utils.c (enum class strncmp_iw_mode): New.
10309 (strcmp_iw): Rename to ...
10310 (strncmp_iw_with_mode): ... this. Add string2_len and mode
10311 parameters. Handle them.
10312 (strncmp_iw): New.
10313 (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode.
10314 * utils.h (strncmp_iw): Declare.
10315 (strcmp_iw): Move describing comments here.
10316
8090b426
PA
103172017-07-17 Pedro Alves <palves@redhat.com>
10318
10319 * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and
10320 CP_OPERATOR_STR.
10321 * c-typeprint.c (is_type_conversion_operator): Use
10322 CP_OPERATOR_STR.
10323 * cp-support.c (LENGTH_OF_OPERATOR): Delete.
10324 (cp_find_first_component_aux): Use CP_OPERATOR_STR and
10325 CP_OPERATOR_LEN.
10326 * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New.
10327 * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR.
10328 * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR.
10329 * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and
10330 CP_OPERATOR_STR.
10331 * location.c: Include "cp-support.h".
10332 (explicit_location_lex_one): Use CP_OPERATOR_LEN and
10333 CP_OPERATOR_STR.
10334 * symtab.c (operator_chars): Use CP_OPERATOR_STR and
10335 CP_OPERATOR_LEN.
10336
6a2c1b87
PA
103372017-07-17 Pedro Alves <palves@redhat.com>
10338
10339 * cli/cli-cmds.c (complete_command): Use a completion tracker
10340 along with completion_find_completion_word for handle_brkchars
10341 phase.
10342 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
10343 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New.
10344 (struct gdb_rl_completion_word_info): New.
10345 (gdb_rl_find_completion_word): New.
10346 (completion_find_completion_word): New.
10347 * completer.h (completion_find_completion_word): Declare.
10348
eb3ff9a5
PA
103492017-07-17 Pedro Alves <palves@redhat.com>
10350
10351 * ada-lang.c (symbol_completion_match): Adjust comments.
10352 (symbol_completion_add): Replace vector parameter with
10353 completion_tracker parameter. Use it.
10354 (ada_make_symbol_completion_list): Rename to...
10355 (ada_collect_symbol_completion_matches): ... this. Add
10356 completion_tracker parameter and use it.
10357 (ada_language_defn): Adjust.
10358 * break-catch-syscall.c (catch_syscall_completer): Adjust
10359 prototype and work with completion_tracker instead of VEC.
10360 * breakpoint.c (condition_completer): Adjust prototype and work
10361 with completion_tracker instead of VEC.
10362 * c-lang.c (c_language_defn, cplus_language_defn)
10363 (asm_language_defn, minimal_language_defn): Adjust to renames.
10364 * cli/cli-cmds.c (complete_command): Rework using
10365 completion_tracker. Catch exceptions when completing.
10366 * cli/cli-decode.c (integer_unlimited_completer)
10367 (complete_on_cmdlist, complete_on_enum): Adjust prototype and work
10368 with completion_tracker instead of VEC.
10369 * command.h (struct completion_tracker): Forward declare.
10370 (completer_ftype, completer_handle_brkchars_ftype): Change
10371 types.
10372 (complete_on_cmdlist, complete_on_enum): Adjust.
10373 * completer.c: Include <algorithm>.
10374 (struct gdb_completer_state): New.
10375 (current_completion): New global.
10376 (readline_line_completion_function): Delete.
10377 (noop_completer, filename_completer)
10378 (filename_completer_handle_brkchars, complete_files_symbols)
10379 (linespec_location_completer): Adjust to work with a
10380 completion_tracker instead of a VEC.
10381 (string_or_empty): New.
10382 (collect_explicit_location_matches): Adjust to work with a
10383 completion_tracker instead of a VEC.
10384 (explicit_location_completer): Rename to ...
10385 (complete_explicit_location): ... this and adjust to work with a
10386 completion_tracker instead of a VEC.
10387 (location_completer): Adjust to work with a completion_tracker
10388 instead of a VEC.
10389 (add_struct_fields): Adjust to work with a completion_list instead
10390 of VEC.
10391 (expression_completer): Rename to ...
10392 (complete_expression): ... this and adjust to work with a
10393 completion_tracker instead of a VEC. Use complete_files_symbols.
10394 (expression_completer): Reimplement on top of complete_expression.
10395 (symbol_completer): Adjust to work with a completion_tracker
10396 instead of a VEC.
10397 (enum complete_line_internal_reason): Add describing comments.
10398 (complete_line_internal_normal_command): Adjust to work with a
10399 completion_tracker instead of a VEC.
10400 (complete_line_internal): Rename to ...
10401 (complete_line_internal_1): ... this and adjust to work with a
10402 completion_tracker instead of a VEC. Assert TEXT is NULL in the
10403 handle_brkchars phase.
10404 (new_completion_tracker): Delete.
10405 (complete_line_internal): Reimplement as TRY/CATCH wrapper around
10406 complete_line_internal_1.
10407 (free_completion_tracker): Delete.
10408 (INITIAL_COMPLETION_HTAB_SIZE): New.
10409 (completion_tracker::completion_tracker)
10410 (completion_tracker::~completion_tracker): New.
10411 (maybe_add_completion): Delete.
10412 (completion_tracker::maybe_add_completion)
10413 (completion_tracker::add_completion)
10414 (completion_tracker::add_completions): New.
10415 (throw_max_completions_reached_error): Delete.
10416 (complete_line): Adjust to work with a completion_tracker instead
10417 of a VEC. Don't create a completion_tracker_t or check for max
10418 completions here.
10419 (command_completer, command_completer_handle_brkchars)
10420 (signal_completer, reg_or_group_completer_1)
10421 (reg_or_group_completer, default_completer_handle_brkchars):
10422 Adjust to work with a completion_tracker.
10423 (gdb_completion_word_break_characters_throw): New.
10424 (gdb_completion_word_break_characters): Reimplement.
10425 (line_completion_function): Delete.
10426 (completion_tracker::recompute_lowest_common_denominator)
10427 (expand_preserving_ws)
10428 (completion_tracker::build_completion_result)
10429 (completion_result::completion_result)
10430 (completion_result::completion_result)
10431 (completion_result::~completion_result)
10432 (completion_result::completion_result)
10433 (completion_result::release_match_list, compare_cstrings)
10434 (completion_result::sort_match_list)
10435 (completion_result::reset_match_list)
10436 (gdb_rl_attempted_completion_function_throw)
10437 (gdb_rl_attempted_completion_function): New.
10438 * completer.h (completion_list, struct completion_result)
10439 (class completion_tracker): New.
10440 (complete_line): Add completion_tracker parameter.
10441 (readline_line_completion_function): Delete.
10442 (gdb_rl_attempted_completion_function): New.
10443 (noop_completer, filename_completer, expression_completer)
10444 (location_completer, symbol_completer, command_completer)
10445 (signal_completer, reg_or_group_completer): Update prototypes.
10446 (completion_tracker_t, new_completion_tracker)
10447 (make_cleanup_free_completion_tracker): Delete.
10448 (enum maybe_add_completion_enum): Delete.
10449 (maybe_add_completion): Delete.
10450 (throw_max_completions_reached_error): Delete.
10451 * corefile.c (complete_set_gnutarget): Adjust to work with a
10452 completion_tracker instead of a VEC.
10453 * cp-abi.c (cp_abi_completer): Adjust to work with a
10454 completion_tracker instead of a VEC.
10455 * d-lang.c (d_language_defn): Adjust.
10456 * disasm.c (disassembler_options_completer): Adjust to work with a
10457 completion_tracker instead of a VEC.
10458 * f-lang.c (f_make_symbol_completion_list): Rename to ...
10459 (f_collect_symbol_completion_matches): ... this. Adjust to work
10460 with a completion_tracker instead of a VEC.
10461 (f_language_defn): Adjust.
10462 * go-lang.c (go_language_defn): Adjust.
10463 * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer):
10464 Adjust to work with a completion_tracker instead of a VEC.
10465 * infrun.c (handle_completer): Likewise.
10466 * interps.c (interpreter_completer): Likewise.
10467 * interps.h (interpreter_completer): Likewise.
10468 * language.c (unknown_language_defn, auto_language_defn)
10469 (local_language_defn): Adjust.
10470 * language.h (language_defn::la_make_symbol_completion_list):
10471 Rename to ...
10472 (language_defn::la_collect_symbol_completion_matches): ... this
10473 and adjust to work with a completion_tracker instead of a VEC.
10474 * m2-lang.c (m2_language_defn): Adjust.
10475 * objc-lang.c (objc_language_defn): Adjust.
10476 * opencl-lang.c (opencl_language_defn): Adjust.
10477 * p-lang.c (pascal_language_defn): Adjust.
10478 * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word.
10479 (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work
10480 with a completion_tracker.
10481 * rust-lang.c (rust_language_defn): Adjust.
10482 * symtab.c (free_completion_list, do_free_completion_list)
10483 (return_val, completion_tracker): Delete.
10484 (completion_list_add_name, completion_list_add_symbol)
10485 (completion_list_add_msymbol, completion_list_objc_symbol)
10486 (completion_list_add_fields, add_symtab_completions): Add
10487 completion_tracker parameter and use it.
10488 (default_make_symbol_completion_list_break_on_1): Rename to...
10489 (default_collect_symbol_completion_matches_break_on): ... this.
10490 Add completion_tracker parameter and use it instead of allocating
10491 a completion tracker here.
10492 (default_make_symbol_completion_list_break_on): Delete old
10493 implementation.
10494 (default_make_symbol_completion_list): Delete.
10495 (default_collect_symbol_completion_matches): New.
10496 (make_symbol_completion_list): Delete.
10497 (collect_symbol_completion_matches): New.
10498 (make_symbol_completion_type): Rename to ...
10499 (collect_symbol_completion_matches_type): ... this. Add
10500 completion_tracker parameter and use it instead of VEC.
10501 (make_file_symbol_completion_list_1): Rename to...
10502 (collect_file_symbol_completion_matches): ... this. Add
10503 completion_tracker parameter and use it instead of VEC.
10504 (make_file_symbol_completion_list): Delete.
10505 (add_filename_to_list): Use completion_list instead of a VEC.
10506 (add_partial_filename_data::list): Now a completion_list.
10507 (make_source_files_completion_list): Work with a completion_list
10508 instead of a VEC.
10509 * symtab.h: Include "completer.h".
10510 (default_make_symbol_completion_list_break_on)
10511 (default_make_symbol_completion_list, make_symbol_completion_list)
10512 (make_symbol_completion_type, make_file_symbol_completion_list)
10513 (make_source_files_completion_list): Delete.
10514 (default_collect_symbol_completion_matches_break_on)
10515 (default_collect_symbol_completion_matches)
10516 (collect_symbol_completion_matches)
10517 (collect_symbol_completion_matches_type)
10518 (collect_file_symbol_completion_matches)
10519 (make_source_files_completion_list): New.
10520 * top.c (init_main): Don't install a rl_completion_entry_function
10521 hook. Install a rl_attempted_completion_function hook instead.
10522 * tui/tui-layout.c (layout_completer): Adjust to work with a
10523 completion_tracker.
10524 * tui/tui-regs.c (tui_reggroup_completer):
10525 * tui/tui-win.c (window_name_completer, focus_completer)
10526 (winheight_completer): Adjust to work with a completion_tracker.
10527 * value.c: Include "completer.h".
10528 (complete_internalvar): Adjust to work with a completion_tracker.
10529 * value.h (complete_internalvar): Likewise.
10530
6e1dbf8c
PA
105312017-07-17 Pedro Alves <palves@redhat.com>
10532
10533 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to
10534 renames.
10535 * cli/cli-decode.h (struct cmd_list_element) <completer>: Move
10536 comments to completer_ftype's declaration.
10537 <completer_handle_brkchars>: Change type to
10538 completer_handle_brkchars_ftype.
10539 * command.h (completer_ftype): Add describing comment and give
10540 names to parameters.
10541 (completer_ftype_void): Rename to ...
10542 (completer_handle_brkchars_ftype) ... this. Add describing comment.
10543 (set_cmd_completer_handle_brkchars): Adjust.
10544 * completer.c (filename_completer_handle_brkchars): New function.
10545 (complete_line_internal_normal_command): New function, factored
10546 out from ...
10547 (complete_line_internal): ... here.
10548 (command_completer_handle_brkchars)
10549 (default_completer_handle_brkchars)
10550 (completer_handle_brkchars_func_for_completer): New functions.
10551 * completer.h (set_gdb_completion_word_break_characters): Delete
10552 declaration.
10553 (completer_handle_brkchars_func_for_completer): New declaration.
10554 * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use
10555 completer_handle_brkchars_func_for_completer.
10556
78b13106
PA
105572017-07-17 Pedro Alves <palves@redhat.com>
10558
10559 * completer.c (symbol_completer): New function, based on
10560 make_symbol_completion_list_fn.
10561 * completer.h (symbol_completer): New declaration.
10562 * guile/scm-cmd.c (cmdscm_completers): Adjust.
10563 * python/py-cmd.c (completers): Adjust.
10564 * symtab.c (make_symbol_completion_list_fn): Delete.
10565 * symtab.h (make_symbol_completion_list_fn): Delete.
10566 * cli/cli-decode.c (add_cmd): Adjust.
10567
bbf2f4df
PA
105682017-07-17 Pedro Alves <palves@redhat.com>
10569
10570 * Makefile.in (COMMON_OBS): Add filename-seen-cache.o.
10571 * dwarf2read.c: Include "filename-seen-cache.h".
10572 * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field.
10573 (dw2_map_symbol_filenames): Build and use a filenames_seen_cache.
10574 * filename-seen-cache.c: New file.
10575 * filename-seen-cache.h: New file.
10576 * symtab.c: Include "filename-seen-cache.h".
10577 (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE)
10578 (create_filename_seen_cache, clear_filename_seen_cache)
10579 (delete_filename_seen_cache, filename_seen): Delete, parts moved
10580 to filename-seen-cache.h/filename-seen-cache.c.
10581 (output_source_filename, sources_info)
10582 (maybe_add_partial_symtab_filename)
10583 (make_source_files_completion_list): Adjust to use
10584 filename_seen_cache.
10585
330cdd98
PA
105862017-07-17 Pedro Alves <palves@redhat.com>
10587
10588 * dwarf2read.c (dwarf2_per_objfile): In-class initialize all
10589 fields.
10590 (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const
10591 dwarf2_debug_sections*)): New.
10592 (dwarf2_per_objfile::dwarf2_per_objfile(const
10593 dwarf2_per_objfile&)): Declare as deleted.
10594 (dwarf2_per_objfile::operator=): Declare as deleted.
10595 (dwarf2_per_objfile::dwarf2_per_objfile)
10596 (dwarf2_per_objfile::~dwarf2_per_objfile)
10597 (dwarf2_per_objfile::free_cached_comp_units): New.
10598 (dwarf2_has_info): dwarf2_per_objfile initialization code moved to
10599 ctor. Call dwarf2_per_objfile's ctor manually.
10600 (dwarf2_locate_sections): Deleted/refactored as ...
10601 (dwarf2_per_objfile::locate_sections): ... this new method.
10602 (free_cached_comp_units): Defer to
10603 dwarf2_per_objfile::free_cached_comp_units.
10604 (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually.
10605
8880f2a9
TT
106062017-07-14 Tom Tromey <tom@tromey.com>
10607
10608 PR rust/21764:
10609 * rust-exp.y (convert_ast_to_expression): Add "want_type"
10610 parameter.
10611 <UNOP_SIZEOF>: Split into separate case.
10612 <UNOP_VAR_VALUE>: Handle want_type. Add error case.
10613
65547233
TT
106142017-07-14 Tom Tromey <tom@tromey.com>
10615
10616 PR rust/21763:
10617 * symtab.c (symbol_matches_domain): Add language_rust to special
10618 case.
10619 * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't
10620 treat LOC_TYPEDEF symbols as variables.
10621
8f14146e
PA
106222017-07-14 Pedro Alves <palves@redhat.com>
10623
10624 * symtab.c (make_file_symbol_completion_list_1): Iterate over
10625 symtabs matching all symtabs with SRCFILE as file name instead of
10626 only considering the first hit, with lookup_symtab.
10627
2347965c
SM
106282017-07-14 Simon Marchi <simon.marchi@ericsson.com>
10629
10630 * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and
10631 operator_name parameters.
10632 (gen_expr): Update function call.
10633
40f4af28
SM
106342017-07-14 Simon Marchi <simon.marchi@ericsson.com>
10635
10636 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch
10637 parameter.
10638 * symtab.h (struct symbol_computed_ops::tracepoint_var_ref):
10639 Likewise.
10640 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch
10641 parameter, use agent_expr::gdbarch instead, update function
10642 calls.
10643 (locexpr_tracepoint_var_ref): Likewise.
10644 (loclist_tracepoint_var_ref): Likewise.
10645 * ax-gdb.c (gen_trace_static_fields): Likewise.
10646 (gen_traced_pop): Likewise.
10647 (gen_frame_args_address): Likewise.
10648 (gen_frame_locals_address): Likewise.
10649 (gen_var_ref): Likewise.
10650 (gen_struct_ref_recursive): Likewise.
10651 (gen_static_field): Likewise.
10652 (gen_maybe_namespace_elt): Likewise.
10653 (gen_expr): Likewise.
10654 (gen_trace_for_var): Likewise.
10655 (gen_trace_for_expr): Likewise.
10656 (gen_trace_for_return_address): Likewise.
10657
053f8057
SM
106582017-07-14 Simon Marchi <simon.marchi@ericsson.com>
10659
10660 * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax
10661 parameter.
10662 (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call.
10663
6661ad48
SM
106642017-07-14 Simon Marchi <simon.marchi@ericsson.com>
10665
10666 * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch
10667 from ax, update calls.
10668 (gen_usual_arithmetic): Likewise.
10669 (gen_integral_promotions): Likewise.
10670 (gen_bitfield_ref): Likewise.
10671 (gen_primitive_field): Likewise.
10672 (gen_struct_ref_recursive): Likewise.
10673 (gen_struct_ref): Likewise.
10674 (gen_maybe_namespace_elt): Likewise.
10675 (gen_struct_elt_for_reference): Likewise.
10676 (gen_namespace_elt): Likewise.
10677 (gen_aggregate_elt_ref): Likewise.
10678 (gen_expr): Get gdbarch from ax, update calls.
10679 (gen_expr_binop_rest): Likewise.
10680
c55a47e7
PA
106812017-07-13 Pedro Alves <palves@redhat.com>
10682
10683 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64
10684 as default tdesc.
10685 * amd64-dicos-tdep.c (amd64_dicos_init_abi):
10686 * amd64-fbsd-tdep.c (amd64fbsd_init_abi):
10687 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass
10688 tdesc_amd64_linux as default tdesc. Get final tdesc from the
10689 tdep.
10690 (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc.
10691 Get final tdesc from the tdep.
10692 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as
10693 default tdesc.
10694 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
10695 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
10696 * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter.
10697 Use it as default tdesc.
10698 (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it
10699 down to amd_init_abi. No longer handle fallback tdesc here.
10700 * amd64-tdep.h (tdesc_x32): Declare.
10701 (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc'
10702 parameter.
10703 * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64
10704 as default tdesc.
10705
55efceab
AA
107062017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10707
10708 * s390-linux-tdep.c (s390_process_record): Add support for
10709 instructions new in arch12.
10710
0aa37b65
JB
107112017-07-11 John Baldwin <jhb@FreeBSD.org>
10712
10713 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
10714 PT_GETFSBASE and PT_GETGSBASE.
10715 (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and
10716 PT_SETGSBASE.
10717
48aeef91
JB
107182017-07-11 John Baldwin <jhb@FreeBSD.org>
10719
10720 * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat)
10721 (amd64-avx-mpx.dat, amd64-avx-avx512.dat)
10722 (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in
10723 those rules.
10724 * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml.
10725 * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml.
10726 * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml.
10727 * features/i386/amd64-avx.xml: Add 64bit-segments.xml.
10728 * features/i386/amd64-mpx.xml: Add 64bit-segments.xml.
10729 * features/i386/amd64.xml: Add 64bit-segments.xml.
10730 * features/i386/amd64-avx-avx512.c: Regenerated.
10731 * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated.
10732 * features/i386/amd64-avx-mpx.c: Regenerated.
10733 * features/i386/amd64-avx.c: Regenerated.
10734 * features/i386/amd64-mpx.c: Regenerated.
10735 * features/i386/amd64.c: Regenerated.
10736 * regformats/i386/amd64-avx-avx512.dat: Regenerated.
10737 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
10738 * regformats/i386/amd64-avx-mpx.dat: Regenerated.
10739 * regformats/i386/amd64-avx.dat: Regenerated.
10740 * regformats/i386/amd64-mpx.dat: Regenerated.
10741 * regformats/i386/amd64.dat: Regenerated.
10742
77c501bc
YQ
107432017-07-10 Yao Qi <yao.qi@linaro.org>
10744
10745 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
10746 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
10747
6dc8d757
AK
107482017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com>
10749
10750 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and
10751 unsetenv.
10752 * gnulib/aclocal.m4: Regenerate.
10753 * gnulib/config.in: Regenerate.
10754 * gnulib/configure: Regenerate.
10755 * gnulib/import/Makefile.am: Regenerate.
10756 * gnulib/import/Makefile.in: Regenerate.
10757 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
10758 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
10759 * gnulib/import/m4/environ.m4: New file.
10760 * gnulib/import/m4/setenv.m4: New file.
10761 * gnulib/import/setenv.c: New file.
10762 * gnulib/import/unsetenv.c: New file.
10763
266934d1
SM
107642017-07-09 Simon Marchi <simon.marchi@ericsson.com>
10765
10766 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read
10767 address when op is DW_OP_addr.
10768
03278692
TT
107692017-07-09 Tom Tromey <tom@tromey.com>
10770
10771 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size
10772 check and apply to outer type.
10773
4b654465
JB
107742017-07-07 John Baldwin <jhb@FreeBSD.org>
10775
10776 * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS)
10777 (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI)
10778 (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New.
10779 (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method.
10780
2af9fc44
JB
107812017-07-07 John Baldwin <jhb@FreeBSD.org>
10782
10783 * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name.
10784
382b69bb
JB
107852017-07-07 John Baldwin <jhb@FreeBSD.org>
10786
10787 * corelow.c (get_core_siginfo): Remove.
10788 (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method
10789 instead of get_core_siginfo.
10790 * gdbarch.sh (core_xfer_siginfo): New gdbarch callback.
10791 * gdbarch.h: Re-generate.
10792 * gdbarch.c: Re-generate.
10793 * linux-tdep.c (linux_core_xfer_siginfo): New.
10794 (linux_init_abi): Install gdbarch "core_xfer_siginfo" method.
10795
6e5eab33
JB
107962017-07-07 John Baldwin <jhb@FreeBSD.org>
10797
10798 * corelow.c (thread_section_name): Move to ...
10799 * gdbcore.h (thread_section_name): ... here.
10800
929edea9
JB
108012017-07-07 John Baldwin <jhb@FreeBSD.org>
10802
10803 * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32)
10804 (struct siginfo32): New.
10805 [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New.
10806 (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO
10807 via ptrace(PT_LWPINFO).
10808
762c974a
JB
108092017-07-07 John Baldwin <jhb@FreeBSD.org>
10810
10811 * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data)
10812 (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data)
10813 (fbsd_get_siginfo_type): New.
10814 (fbsd_init_abi): Install gdbarch "get_siginfo_type" method.
10815 (_initialize_fbsd_tdep): New.
10816
33c5cd75
DB
108172017-07-06 David Blaikie <dblaikie@gmail.com>
10818
10819 * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than
10820 a singular dwo_unit*) to support multiple CUs in the same way that
10821 multiple TUs are supported.
10822 (create_cus_hash_table): Replace create_dwo_cu with a function for
10823 parsing multiple CUs from a DWO file.
10824 (open_and_init_dwo_file): Use create_cus_hash_table rather than
10825 create_dwo_cu.
10826 (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with
10827 htab_find, rather than comparing the signature to a singleton CU in
10828 the dwo_file.
10829
8455d262
PA
108302017-07-06 Pedro Alves <palves@redhat.com>
10831
10832 * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition.
10833
4da3eb35
PA
108342017-07-04 Pedro Alves <palves@redhat.com>
10835
10836 * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC.
10837 * gdbtypes.h (TYPE_STATIC): Delete.
10838 (struct fn_field) <is_public, is_abstract, is_static, is_final,
10839 is_synchronized, is_native>: Delete.
10840 <dummy>: Bump.
10841 (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL)
10842 (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE)
10843 (TYPE_FN_FIELD_ABSTRACT): Delete.
10844
5bfd255c
SM
108452017-07-03 Simon Marchi <simon.marchi@ericsson.com>
10846
10847 * buffer.h (buffer_finish): Fix spelling mistakes.
10848
25c54127
EZ
108492017-07-01 Eli Zaretskii <eliz@gnu.org>
10850
10851 * .dir-locals.el: Automatically switch to C-style comments in
10852 versions of Emacs that support the feature.
10853
dc4bde35
SDJ
108542017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
10855 Pedro Alves <palves@redhat.com>
10856
10857 PR cli/21688
10858 * cli/cli-script.c (command_name_equals_not_inline): Remove function.
10859 (process_next_line): New variable 'inline_cmd'.
10860 Adjust 'if' clauses for "python", "compile" and "guile" to use
10861 'command_name_equals' and check for '!inline_cmd'.
10862
51ed89aa
SDJ
108632017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
10864
10865 PR cli/21688
10866 * cli/cli-script.c (command_name_equals_not_inline): New function.
10867 (process_next_line): Adjust 'if' clauses for "python", "compile"
10868 and "guile" to use command_name_equals_not_inline.
10869
eb17d413
PA
108702017-06-29 Pedro Alves <palves@redhat.com>
10871
10872 * completer.c (expression_completer): Call
10873 linespec_location_completer instead of location_completer.
10874
195bcdd5
PA
108752017-06-29 Pedro Alves <palves@redhat.com>
10876
10877 * completer.c (expression_completer): Remove code that recomputes
10878 'text' from 'word'.
10879
adc764e7
YQ
108802017-06-29 Yao Qi <yao.qi@linaro.org>
10881
10882 * regformats/regdat.sh: Generate code with
10883 "ifndef IN_PROCESS_AGENT".
10884
6e75794e
PA
108852017-06-28 Pedro Alves <palves@redhat.com>
10886
10887 * command.h: Include "common/scoped_restore.h".
10888
bc491f2e
YQ
108892017-06-28 Yao Qi <yao.qi@linaro.org>
10890
10891 * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str
10892 instead of obstack_grow.
10893
41664b45
DG
108942017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com>
10895
10896 PR gdb/21337
10897 * symfile.c (reread_symbols): Call objfiles_changed just before
10898 read_symbols.
10899
6da67eb1
PA
109002017-06-27 Pedro Alves <palves@redhat.com>
10901
10902 * symtab.c (COMPLETION_LIST_ADD_SYMBOL)
10903 (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ...
10904 (completion_list_add_symbol, completion_list_add_msymbol):
10905 ... these new functions.
10906 (add_symtab_completions)
10907 (default_make_symbol_completion_list_break_on_1): Adjust.
10908
23732b1e
PA
109092017-06-27 Pedro Alves <palves@redhat.com>
10910
10911 * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of
10912 bfd_zalloc. Call objfile_per_bfd_storage's ctor.
10913 (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's
10914 dtor.
10915 * objfiles.h (objfile_per_bfd_storage): Add ctor. Make
10916 'storage_obstack' field an auto_obstack. In-class initialize all
10917 non-bitfield fields. Make minsyms_read bool.
10918 * symfile.c (read_symbols): Adjust.
10919
a4d1e79a
AH
109202017-06-27 Alan Hayward <alan.hayward@arm.com>
10921
10922 * remote-sim.c (gdbsim_fetch_register): Use byte_vector.
10923 (gdbsim_store_register): Likewise.
10924
8268c778
PA
109252017-06-27 Pedro Alves <palves@redhat.com>
10926
10927 * c-exp.y (name_obstack): Now an auto_obstack.
10928 (yylex): Use auto_obstack::clear.
10929 (c_parse): Use auto_obstack::clear instead of reinitializing and
10930 freeing the obstack.
10931 * c-lang.c (evaluate_subexp_c): Use auto_obstack.
10932 * d-exp.y (name_obstack): Now an auto_obstack.
10933 (yylex): Use auto_obstack::clear.
10934 (d_parse): Use auto_obstack::clear instead of reinitializing and
10935 freeing the obstack.
10936 * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use
10937 auto_obstack.
10938 * dwarf2read.c (create_addrmap_from_index)
10939 (dwarf2_build_psymtabs_hard)
10940 (update_enumeration_type_from_children): Likewise.
10941 * gdb_obstack.h (auto_obstack): New type.
10942 * go-exp.y (name_obstack): Now an auto_obstack.
10943 (build_packaged_name): Use auto_obstack::clear.
10944 (go_parse): Use auto_obstack::clear instead of reinitializing and
10945 freeing the obstack.
10946 * linux-tdep.c (linux_make_mappings_corefile_notes): Use
10947 auto_obstack.
10948 * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack.
10949 * rust-exp.y (work_obstack): Now an auto_obstack.
10950 (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of
10951 reinitializing and freeing the obstack.
10952 * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete.
10953 (host_char_to_target): Use auto_obstack.
10954 * utils.h (make_cleanup_obstack_free): Delete declaration.
10955 * valprint.c (generic_emit_char, generic_printstr): Use
10956 auto_obstack.
10957
db665f42
SM
109582017-06-27 Simon Marchi <simon.marchi@ericsson.com>
10959
10960 * darwin-nat.c (darwin_check_new_threads): Don't handle dummy
10961 thread.
10962 (darwin_init_thread_list): Don't update dummy thread.
10963 (darwin_create_inferior, darwin_attach): Don't add a dummy thread.
10964
873c0814
SM
109652017-06-26 Simon Marchi <simon.marchi@ericsson.com>
10966
10967 * record-full.c (netorder16): Remove.
10968
8b5a7a6e
SM
109692017-06-26 Simon Marchi <simon.marchi@ericsson.com>
10970
10971 * common/diagnostics.h: Define macros for GCC.
10972 (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro.
10973 * common/vec.h: Include diagnostics.h.
10974 (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro.
10975 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function
10976 warning.
10977
d1435379
SM
109782017-06-26 Simon Marchi <simon.marchi@ericsson.com>
10979
10980 * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER):
10981 New macro.
10982 * ada-lex.l: Ignore deprecated register warnings.
10983
cc75e0fd
SM
109842017-06-25 Simon Marchi <simon.marchi@ericsson.com>
10985
10986 * main.c (get_init_files): Replace "SYSTEM_GDBINIT +
10987 datadir_len" with "&SYSTEM_GDBINIT[datadir_len]".
10988
07809eaf
SM
109892017-06-25 Simon Marchi <simon.marchi@ericsson.com>
10990
10991 * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on
10992 its own line.
10993
f076f034
SM
109942017-06-25 Simon Marchi <simon.marchi@ericsson.com>
10995
10996 * nat/x86-dregs.c (x86_show_dr): Print registers one per line.
10997
0dd5cbc5
AH
109982017-06-23 Alan Hayward <alan.hayward@arm.com>
10999
11000 * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add.
11001 (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE.
11002 (xtensa_register_read_masked): Likewise.
11003
d4c6ce5b
SDJ
110042017-06-22 Sergio Durigan Junior <sergiodj@redhat.com>
11005
11006 * common/environ.c (gdb_environ::unset): Update comment.
11007
16892a03
AH
110082017-06-22 Alan Hayward <alan.hayward@arm.com>
11009
11010 * python/py-unwind.c (pyuw_sniffer): Allocate space for
11011 registers.
11012
d7dcbefc
AH
110132017-06-22 Alan Hayward <alan.hayward@arm.com>
11014
11015 * record-full.c (record_full_exec_insn): Use byte_vector.
11016
b30ff123
YQ
110172017-06-22 Yao Qi <yao.qi@linaro.org>
11018
11019 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated.
11020 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
11021
4fa847d7
AH
110222017-06-22 Alan Hayward <alan.hayward@arm.com>
11023
11024 * remote.c (cached_reg): Move from here...
11025 * regcache.h (cached_reg): ...to here.
11026 * python/py-unwind.c (struct reg_info): Remove.
11027 (cached_frame_info): Use cached_reg_t.
11028 (pyuw_prev_register): Likewise.
11029 (pyuw_sniffer): Use cached_reg_t and allocate registers.
11030 (pyuw_dealloc_cache): Free all registers.
11031
f4906a9a
PA
110322017-06-22 Pedro Alves <palves@redhat.com>
11033 Simon Marchi <simon.marchi@ericsson.com>
11034
11035 * unittests/environ-selftests.c (run_tests): Ignore -Wself-move
11036 warning.
11037 * common/diagnostics.h: New file.
11038
b45a1208
PA
110392017-06-22 Pedro Alves <palves@redhat.com>
11040
11041 * common/agent.h: Add include guards.
11042
e4da2c61
SM
110432017-06-21 Simon Marchi <simon.marchi@ericsson.com>
11044
11045 * target.h (struct target_ops) <to_xfer_partial>: Update doc to
11046 talk about addressable units instead of bytes.
11047
96160d60
SDJ
110482017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
11049
11050 * common/environ.c (gdb_environ::unset): Use '::iterator' instead
11051 of '::const_iterator'.
11052
9a6c7d9c
SDJ
110532017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
11054
11055 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11056 'unittests/environ-selftests.c'.
11057 (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'.
11058 * charset.c (find_charset_names): Declare object 'iconv_env'.
11059 Update code to use 'iconv_env' object. Remove call to
11060 'free_environ'.
11061 * common/environ.c: Include <utility>.
11062 (make_environ): Delete function.
11063 (free_environ): Delete function.
11064 (gdb_environ::clear): New function.
11065 (gdb_environ::operator=): New function.
11066 (gdb_environ::get): Likewise.
11067 (environ_vector): Delete function.
11068 (set_in_environ): Delete function.
11069 (gdb_environ::set): New function.
11070 (unset_in_environ): Delete function.
11071 (gdb_environ::unset): New function.
11072 (gdb_environ::envp): Likewise.
11073 * common/environ.h: Include <vector>.
11074 (struct gdb_environ): Delete; transform into...
11075 (class gdb_environ): ... this class.
11076 (free_environ): Delete prototype.
11077 (init_environ, get_in_environ, set_in_environ, unset_in_environ,
11078 environ_vector): Likewise.
11079 * infcmd.c (run_command_1): Update code to call
11080 'envp' from 'gdb_environ' class.
11081 (environment_info): Update code to call methods from 'gdb_environ'
11082 class.
11083 (unset_environment_command): Likewise.
11084 (path_info): Likewise.
11085 (path_command): Likewise.
11086 * inferior.c (inferior::~inferior): Delete call to 'free_environ'.
11087 (inferior::inferior): Initialize 'environment' using the host's
11088 information.
11089 * inferior.h: Remove forward declaration of 'struct gdb_environ'.
11090 Include "environ.h".
11091 (class inferior) <environment>: Change type from 'struct
11092 gdb_environ' to 'gdb_environ'.
11093 * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call
11094 methods from 'gdb_environ' class.
11095 * solib.c (solib_find_1): Likewise
11096 * unittests/environ-selftests.c: New file.
11097
75c554cf
YQ
110982017-06-20 Yao Qi <yao.qi@linaro.org>
11099
11100 * features/i386/i386-linux.xml: Exchange the order of including
11101 32bit-linux.xml and 32bit-sse.xml.
11102 * features/i386/i386-linux.c: Regenerated.
11103
72ddacb7
YQ
111042017-06-20 Yao Qi <yao.qi@linaro.org>
11105
11106 * target-descriptions.c (tdesc_reg): Add ctor, dtor.
11107 Delete copy ctor and assignment operator.
11108 (tdesc_type): Likewise.
11109 (tdesc_feature): Likewise.
11110 (tdesc_free_reg): Remove.
11111 (tdesc_create_reg): Use new.
11112 (tdesc_free_type): Remove.
11113 (tdesc_create_vector): Use new.
11114 (tdesc_create_union): Likewise.
11115 (tdesc_create_flags): Likewise.
11116 (tdesc_create_enum): Likewise.
11117 (tdesc_free_feature): Delete.
11118 (free_target_description): Use delete.
11119
325c9fd4
JB
111202017-06-19 John Baldwin <jhb@FreeBSD.org>
11121
11122 * mips-tdep.c (print_gp_register_row): Don't error for unavailable
11123 registers.
11124
16b7a719
PA
111252017-06-19 Pedro Alves <palves@redhat.com>
11126
11127 * dwarf2read.c (write_psymtabs_to_index): Construct file_closer
11128 after gdb::unlinker.
11129
1c8e01c9
SDJ
111302017-06-19 Sergio Durigan Junior <sergiodj@redhat.com>
11131
11132 * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of
11133 gdb_environ to access an environment variable.
11134
ffce45d2
TP
111352017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
11136
11137 * nat/linux-ptrace.c (linux_fork_to_function): Add cast to
11138 gdb_byte*.
11139
1d4fbac9
SM
111402017-06-17 Simon Marchi <simon.marchi@ericsson.com>
11141
11142 * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF.
11143
8465943a
SM
111442017-06-17 Simon Marchi <simon.marchi@ericsson.com>
11145
11146 * configure: Re-generate.
11147 * warning.m4 (build_warnings): Add -Wno-mismatched-tags.
11148
3e019bdc
SM
111492017-06-17 Simon Marchi <simon.marchi@ericsson.com>
11150
11151 * configure: Re-generate.
11152 * warning.m4: Pass -Werror to compiler when checking for
11153 supported warning flags.
11154
cf0dd6f0
SM
111552017-06-17 Simon Marchi <simon.marchi@ericsson.com>
11156
11157 * Makefile.in (COMPILE.pre): Add "-x c++".
11158
6f98355c
YQ
111592017-06-16 Alan Hayward <alan.hayward@arm.com>
11160 Pedro Alves <palves@redhat.com>
11161 Yao Qi <yao.qi@linaro.org>
11162
11163 * defs.h (RequireLongest): New.
11164 (extract_integer): Declare function template.
11165 (extract_signed_integer): Remove the declaration, but define it
11166 static inline.
11167 (extract_unsigned_integer): Likewise.
11168 (store_integer): Declare function template.
11169 (store_signed_integer): Remove the declaration, but define it
11170 static inline.
11171 (store_unsigned_integer): Likewise.
11172 * findvar.c (extract_integer): New function template.
11173 (extract_signed_integer): Remove.
11174 (extract_unsigned_integer): Remove.
11175 (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit
11176 instantiations.
11177 (store_integer): New function template.
11178 (store_signed_integer): Remove.
11179 (store_unsigned_integer): Remove.
11180 (store_integer): Explicit instantiations.
11181 * regcache.c (regcache_raw_read_signed): Update.
11182 (regcache::raw_read): New function.
11183 (regcache::raw_read_signed): Remove.
11184 (regcache::raw_read_unsigned): Remove.
11185 (regcache_raw_read_unsigned): Update.
11186 (regcache_raw_write_unsigned): Update.
11187 (regcache::raw_write_signed): Remove.
11188 (regcache::raw_write): New function.
11189 (regcache_cooked_read_signed): Update.
11190 (regcache::raw_write_unsigned): Remove.
11191 (regcache::cooked_read_signed): Remove.
11192 (regcache_cooked_read_unsigned): Update.
11193 (regcache::cooked_read_unsigned): Remove.
11194 (regcache_cooked_write_signed): Update.
11195 (regcache_cooked_write_unsigned): Update.
11196 * regcache.h (regcache) <raw_read_signed>: Remove.
11197 <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove.
11198 <raw_read, raw_write>: New.
11199 <cooked_read_signed, cooked_write_signed>: Remove.
11200 <cooked_write_unsigned, cooked_read_unsigned>: Remove.
11201 <cooked_read, cooked_write>: New.
11202 * sh64-tdep.c (sh64_pseudo_register_read): Update.
11203 (sh64_pseudo_register_write): Update.
11204
a87dc45a
AK
112052017-06-16 Anton Kolesov <anton.kolesov@synopsys.com>
11206
11207 * arc-tdep.c (arc_disassembler_options): New variable.
11208 (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead
11209 of default_print_insn.
11210 (arc_delayed_print_insn): Set info->section when needed,
11211 use default_print_insn to retrieve a disassembler.
11212
45159d6a
SDJ
112132017-06-14 Sergio Durigan Junior <sergiodj@redhat.com>
11214
11215 PR gdb/21574
11216 * infcmd.c (_initialize_infcmd): Expand "help run" documentation
11217 to mention $SHELL and startup-with-shell.
11218
b46c4cf0
MF
112192017-06-14 Max Filippov <jcmvbkbc@gmail.com>
11220
11221 * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers.
11222
6394c606
YQ
112232017-06-14 Yao Qi <yao.qi@linaro.org>
11224
11225 * aarch64-tdep.c (aarch64_gdb_print_insn): Call
11226 default_print_insn instead of print_insn_aarch64.
11227 * arm-tdep.c (gdb_print_insn_arm): Call
11228 default_print_insn instead of print_insn_big_arm
11229 and print_insn_little_arm.
11230 * i386-tdep.c (i386_print_insn): Call default_print_insn
11231 instead of print_insn_i386.
11232 * ia64-tdep.c (ia64_print_insn): Call
11233 default_print_insn instead of print_insn_ia64.
11234 * mips-tdep.c (gdb_print_insn_mips): Call
11235 default_print_insn instead of print_insn_big_mips
11236 and print_insn_little_mips.
11237 * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn
11238 instead of print_insn_spu.
11239
d5722aa2
PA
112402017-06-14 Pedro Alves <palves@redhat.com>
11241
11242 * ada-lang.c: Include "common/byte-vector.h".
11243 (ada_value_primitive_packed_val): Use gdb::byte_vector.
11244 * charset.c (wchar_iterator::iterate): Resize the vector instead
11245 of reserving it.
11246 * common/byte-vector.h: Include "common/def-vector.h".
11247 (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>.
11248 * cli/cli-dump.c: Include "common/byte-vector.h".
11249 (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector.
11250 * common/byte-vector.h: New file.
11251 * common/def-vector.h: New file.
11252 * common/default-init-alloc.h: New file.
11253 * dwarf2loc.c: Include "common/byte-vector.h".
11254 (rw_pieced_value): Use gdb::byte_vector, and resize the vector
11255 instead of reserving it.
11256 * dwarf2read.c: Include "common/byte-vector.h".
11257 (data_buf::m_vec): Now a gdb::byte_vector.
11258 * gdb_regex.c: Include "common/def-vector.h".
11259 (compiled_regex::compiled_regex): Use gdb::def_vector<char>.
11260 * mi/mi-main.c: Include "common/byte-vector.h".
11261 (mi_cmd_data_read_memory): Use gdb::byte_vector.
11262 * printcmd.c: Include "common/byte-vector.h".
11263 (print_scalar_formatted): Use gdb::byte_vector.
11264 * valprint.c: Include "common/byte-vector.h".
11265 (maybe_negate_by_bytes, print_decimal_chars): Use
11266 gdb::byte_vector.
11267
01ec7a27
SM
112682017-06-13 Simon Marchi <simon.marchi@ericsson.com>
11269
11270 * darwin-nat.c: Include "nat/fork-inferior.h".
11271
848d9074
SM
112722017-06-13 Simon Marchi <simon.marchi@ericsson.com>
11273
11274 * configure.nat: Factor out Darwin bits that are not
11275 architecture-specific. Add fork-inferior.o.
11276
3b912944
SM
112772017-06-13 Simon Marchi <simon.marchi@ericsson.com>
11278
11279 * configure.nat: Factor out AIX bits that are not
11280 architecture-specific. Add fork-inferior.o.
11281
55acdf22
AA
112822017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11283
11284 * dwarf2loc.c (rw_pieced_value): New. Merge logic from...
11285 (read_pieced_value, write_pieced_value): ...here. Reduce to
11286 wrappers that just call rw_pieced_value.
11287
f65e2044
AA
112882017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11289
11290 * dwarf2loc.c (write_pieced_value): When writing the data for a
11291 memory piece, use write_memory_with_notification instead of
11292 write_memory.
11293
23f945bf
AA
112942017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11295
11296 * valops.c (read_value_memory): Change embedded_offset to
11297 represent a bit offset instead of a byte offset.
11298 * value.h (read_value_memory): Adjust comment.
11299
f236533e
AA
113002017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11301
11302 * dwarf2loc.c (read_pieced_value): Remove unnecessary variables
11303 dest_offset_bits and source_offset_bits.
11304 (write_pieced_value): Likewise.
11305
65d84b76
AA
113062017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11307
11308 * dwarf2loc.c (read_pieced_value): Respect the piece offset, as
11309 given by DW_OP_bit_piece.
11310 (write_pieced_value): Likewise.
11311
242d31ab
AA
113122017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11313
11314 * dwarf2loc.c (read_pieced_value): Move the buffer allocation and
11315 some other preparations to the places where sufficient information
11316 is available.
11317 (write_pieced_value): Likewise.
11318
03c8af18
AA
113192017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11320
11321 * dwarf2loc.c (bits_to_bytes): New function.
11322 (read_pieced_value): Fix offset calculations for register pieces
11323 on big-endian targets.
11324 (write_pieced_value): Likewise.
11325
840989c1
AA
113262017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11327
11328 * dwarf2loc.c (read_pieced_value): Remove buffer_size variable.
11329 (write_pieced_value): Likewise.
11330
359b19bb
AA
113312017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11332
11333 * dwarf2loc.c (write_pieced_value): When writing to a bit-field,
11334 transfer the source value's least significant bits, instead of its
11335 lowest-addressed ones. Rename type_len to max_offset.
11336 (read_pieced_value): Mirror above changes to write_pieced_value as
11337 applicable.
11338
07c9ca3b
AA
113392017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11340
11341 * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY,
11342 truncate full bytes from dest_offset_bits before using it as an
11343 offset into the buffer.
11344
f1cc9874
AA
113452017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11346
11347 * dwarf2loc.c (write_pieced_value): Include transfer size in
11348 byte-wise check.
11349
cdaac320
AA
113502017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11351
11352 * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the
11353 calculation of this_size.
11354
af547a96
AA
113552017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11356
11357 * dwarf2loc.c (read_pieced_value): Respect parent value's offset
11358 when targeting a bit-field.
11359 (write_pieced_value): Likewise.
11360
ddd7882a
AA
113612017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11362
11363 * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field.
11364 (allocate_piece_closure): Drop addr_size parameter.
11365 (dwarf2_evaluate_loc_desc_full): Adjust call to
11366 allocate_piece_closure.
11367
e9352324
AA
113682017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11369
11370 PR gdb/21226
11371 * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at
11372 the LSB end, independent of endianness.
11373
d5d1163e
AA
113742017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11375
11376 * dwarf2loc.c (write_pieced_value): Fix order of calculations for
11377 size capping.
11378
032bb6ea
YQ
113792017-06-13 Yao Qi <yao.qi@linaro.org>
11380
11381 * mips-linux-nat.c: Move include features/mips*-linux.c to
11382 mips-linux-tdep.c.
11383 (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls
11384 to mips-linux-tdep.c.
11385 * mips-linux-tdep.c: Include features/mips*-linux.c
11386 (_initialize_mips_linux_tdep): Call initialize_tdesc_mips*
11387 functions.
11388 * mips-linux-tdep.h (tdesc_mips_linux): Declare.
11389 (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare.
11390 (tdesc_mips64_dsp_linux): Declare.
11391
f12f6bad
TT
113922017-06-12 Tom Tromey <tom@tromey.com>
11393
11394 * valprint.h (val_print_type_code_int): Remove.
11395 * valprint.c (generic_val_print_int): Always call
11396 val_print_scalar_formatted.
11397 (val_print_type_code_int): Remove.
11398 * printcmd.c (print_scalar_formatted): Handle options->format==0.
11399 * f-valprint.c (f_val_print): Use val_print_scalar_formatted.
11400 * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted.
11401 * ada-valprint.c (ada_val_print_num): Use
11402 val_print_scalar_formatted.
11403
d9109c80
TT
114042017-06-12 Tom Tromey <tom@tromey.com>
11405
11406 * printcmd.c (print_scalar_formatted): Unify the two switches.
11407 Don't convert scalars to LONGEST.
11408
4ac0cb1c
TT
114092017-06-12 Tom Tromey <tom@tromey.com>
11410
11411 PR exp/16225:
11412 * valprint.h (print_decimal_chars): Update.
11413 * valprint.c (maybe_negate_by_bytes): New function.
11414 (print_decimal_chars): Add "is_signed" argument.
11415 * printcmd.c (print_scalar_formatted): Update.
11416
30a25466
TT
114172017-06-12 Tom Tromey <tom@tromey.com>
11418
11419 PR exp/16225:
11420 * valprint.h (print_binary_chars, print_hex_chars): Update.
11421 * valprint.c (val_print_type_code_int): Update.
11422 (print_binary_chars): Add "zero_pad" argument.
11423 (emit_octal_digit): New function.
11424 (print_octal_chars): Don't zero-pad.
11425 (print_decimal_chars): Likewise.
11426 (print_hex_chars): Add "zero_pad" argument.
11427 * sh64-tdep.c (sh64_do_fp_register): Update.
11428 * regcache.c (regcache::dump): Update.
11429 * printcmd.c (print_scalar_formatted): Update.
11430 * infcmd.c (default_print_one_register_info): Update.
11431
b3464d03
PA
114322017-06-12 Pedro Alves <palves@redhat.com>
11433 Alan Hayward <alan.hayward@arm.com>
11434
11435 * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New.
11436 (mips_eabi_push_dummy_call): Rename local 'regsize' to
11437 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and
11438 use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it.
11439 Assert that abi_regsize bytes fit in 'ref_valbuf'.
11440
4b76cda9
PA
114412017-06-12 Pedro Alves <palves@redhat.com>
11442
11443 * dwarf2read.c (mapped_symtab::data): Now a vector of
11444 symtab_index_entry instead of vector of
11445 std::unique_ptr<symtab_index_entry>. All users adjusted to check
11446 whether an element's name is NULL instead of checking whether the
11447 element itself is NULL.
11448 (find_slot): Change return type. Adjust.
11449 (hash_expand, , add_index_entry, uniquify_cu_indices)
11450 (write_hash_table): Adjust.
11451
e8f8bcb3
PA
114522017-06-12 Pedro Alves <palves@redhat.com>
11453
11454 * dwarf2read.c (recursively_count_psymbols): New function.
11455 (write_psymtabs_to_index): Call it to compute number of psyms and
11456 pass estimate size of psyms_seen to unordered_set's ctor.
11457
70a1152b
PA
114582017-06-12 Pedro Alves <palves@redhat.com>
11459
11460 * dwarf2read.c (write_hash_table): Check if key already exists
11461 before emplacing.
11462
c2f134ac
PA
114632017-06-12 Pedro Alves <palves@redhat.com>
11464
11465 * dwarf2read.c (data_buf::append_space): Rename to...
11466 (data_buf::grow): ... this, and make private. Adjust all callers.
11467 (data_buf::append_uint): New method.
11468 (add_address_entry, write_one_signatured_type)
11469 (write_psymtabs_to_index): Use it.
11470
a81e6d4d
PA
114712017-06-12 Pedro Alves <palves@redhat.com>
11472
11473 * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete.
11474 (file_write (FILE *, const std::vector<Elem>&)): Delete.
11475 (data_buf::file_write): Call ::fwrite directly.
11476
6fd931f2
PA
114772017-06-12 Pedro Alves <palves@redhat.com>
11478
11479 * dwarf2read.c (uniquify_cu_indices): Use std::unique and
11480 std::vector::erase.
11481
bc8f2430
JK
114822017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11483
11484 Code cleanup: C++ify .gdb_index producer.
11485 * dwarf2read.c: Include <unordered_set> and <unordered_map>.
11486 (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type.
11487 (struct strtab_entry, hash_strtab_entry, eq_strtab_entry)
11488 (create_strtab, add_string): Remove.
11489 (file_write, data_buf): New.
11490 (struct symtab_index_entry): Use std::vector for cu_indices.
11491 (struct mapped_symtab): Use std::vector for data.
11492 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry)
11493 (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab):
11494 Remove.
11495 (find_slot): Change return type. Update it to the new data structures.
11496 (hash_expand, add_index_entry): Update it to the new data structures.
11497 (offset_type_compare): Remove.
11498 (uniquify_cu_indices): Update it to the new data structures.
11499 (c_str_view, c_str_view_hasher, vector_hasher): New.
11500 (add_indices_to_cpool): Remove.
11501 (write_hash_table): Update it to the new data structures.
11502 (struct psymtab_cu_index_map, hash_psymtab_cu_index)
11503 (eq_psymtab_cu_index): Remove.
11504 (psym_index_map): New typedef.
11505 (struct addrmap_index_data): Change addr_obstack pointer to data_buf
11506 reference and std::unordered_map for cu_index_htab.
11507 (add_address_entry, add_address_entry_worker, write_address_map)
11508 (write_psymbols): Update it to the new data structures.
11509 (write_obstack): Remove.
11510 (struct signatured_type_index_data): Change types_list to a data_buf
11511 reference and psyms_seen to a std::unordered_set reference.
11512 (write_one_signatured_type, recursively_write_psymbols)
11513 (write_psymtabs_to_index): Update it to the new data structures.
11514
c4dcb155
SM
115152017-06-11 Simon Marchi <simon.marchi@ericsson.com>
11516
11517 * NEWS (Changes since GDB 8.0): Announce {set,show} debug
11518 separate-debug-file commands.
11519 * symfile.h (separate_debug_file_debug): New global.
11520 * symfile.c (separate_debug_file_debug): New global.
11521 (separate_debug_file_exists, find_separate_debug_file): Add
11522 debug output.
11523 (_initialize_symfile): Add "set debug separate-debug-file"
11524 command.
11525 * build-id.c (build_id_to_debug_bfd,
11526 find_separate_debug_file_by_buildid): Add debug output.
11527
6d45d4b4
SM
115282017-06-10 Simon Marchi <simon.marchi@polymtl.ca>
11529
11530 * gdbarch.sh (displaced_step_free_closure): Remove.
11531 * gdbarch.h, gdbarch.c: Re-generate.
11532 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set
11533 displaced_step_free_closure.
11534 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
11535 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
11536 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
11537 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
11538 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11539 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
11540 * arch-utils.h (simple_displaced_step_free_closure): Remove.
11541 * arch-utils.c (simple_displaced_step_free_closure): Remove.
11542 * infrun.c (displaced_step_clear): Call xfree instead of
11543 gdbarch_displaced_step_free_closure.
11544
2f91880f
SDJ
115452017-06-08 Sergio Durigan Junior <sergiodj@redhat.com>
11546
11547 * common/common-utils.c (stringify_argv): Check for "arg[0] !=
11548 NULL".
11549
b8b6e72f
AH
115502017-06-08 Alan Hayward <alan.hayward@arm.com>
11551
11552 * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add.
11553 (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE.
11554 (mn10300_push_dummy_call): Likewise.
11555
5369082e
AH
115562017-06-08 Alan Hayward <alan.hayward@arm.com>
11557
11558 * mi/mi-main.c (register_changed_p): Use value_contents_eq.
11559
ff4ca5ac
AH
115602017-06-08 Alan Hayward <alan.hayward@arm.com>
11561
11562 * mi/mi-main.c (register_changed_p): Use cooked_read_value.
11563
aefd8b33
SDJ
115642017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
11565
11566 * NEWS (Changes since GDB 8.0): Announce that GDBserver is now
11567 able to start inferiors using a shell.
11568 (New remote packets): Announce new packet "QStartupWithShell".
11569 * remote.c: Add PACKET_QStartupWithShell.
11570 (extended_remote_create_inferior): Handle new
11571 PACKET_QStartupWithShell.
11572 (remote_protocol_features) <QStartupWithShell>: New entry for
11573 PACKET_QStartupWithShell.
11574 (_initialize_remote): Call "add_packet_config_cmd" for
11575 QStartupShell.
11576
2090129c
SDJ
115772017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
11578 Pedro Alves <palves@redhat.com>
11579
11580 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h"
11581 and "nat/fork-inferior.h".
11582 * common/common-inferior.h: New file, with contents from
11583 "gdb/inferior.h".
11584 * commom/common-utils.c: Include "common-utils.h".
11585 (stringify_argv): New function.
11586 * common/common-utils.h (stringify_argv): New prototype.
11587 * configure.nat: Add "fork-inferior.o" as a dependency for
11588 "*linux*", "fbsd*" and "nbsd*" hosts.
11589 * corefile.c (get_exec_file): Update comment.
11590 * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior"
11591 instead of "startup_inferior".
11592 (darwin_create_inferior): Call "add_thread_silent" after
11593 "fork_inferior".
11594 * fork-child.c: Cleanup unnecessary includes.
11595 (SHELL_FILE): Move to "common/common-fork-child.c".
11596 (environ): Likewise.
11597 (exec_wrapper): Initialize.
11598 (get_exec_wrapper): New function.
11599 (breakup_args): Move to "common/common-fork-child.c"; rename to
11600 "breakup_args_for_exec".
11601 (escape_bang_in_quoted_argument): Move to
11602 "common/common-fork-child.c".
11603 (saved_ui): New variable.
11604 (prefork_hook): New function.
11605 (postfork_hook): Likewise.
11606 (postfork_child_hook): Likewise.
11607 (gdb_startup_inferior): Likewise.
11608 (fork_inferior): Move to "common/common-fork-child.c". Update
11609 function to support gdbserver.
11610 (startup_inferior): Likewise.
11611 * gdbcore.h (get_exec_file): Remove declaration.
11612 * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior"
11613 instead of "startup_inferior". Call "add_thread_silent" after
11614 "fork_inferior".
11615 * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h".
11616 (inf_ptrace_create_inferior): Call "gdb_startup_inferior"
11617 instead of "startup_inferior". Call "add_thread_silent" after
11618 "fork_inferior".
11619 * inferior.h: Include "common-inferior.h".
11620 (trace_start_error): Move to "common/common-utils.h".
11621 (trace_start_error_with_name): Likewise.
11622 (fork_inferior): Move prototype to "nat/fork-inferior.h".
11623 (startup_inferior): Likewise.
11624 (gdb_startup_inferior): New prototype.
11625 * nat/fork-inferior.c: New file, with contents from "fork-child.c".
11626 * nat/fork-inferior.h: New file.
11627 * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior"
11628 instead of "startup_inferior". Call "add_thread_silent" after
11629 "fork_inferior".
11630 * target.h (target_terminal_init): Move prototype to
11631 "target/target.h".
11632 (target_terminal_inferior): Likewise.
11633 (target_terminal_ours): Likewise.
11634 * target/target.h (target_terminal_init): New prototype, moved
11635 from "target.h".
11636 (target_terminal_inferior): Likewise.
11637 (target_terminal_ours): Likewise.
11638 * utils.c (gdb_flush_out_err): New function.
11639
043a4934
SDJ
116402017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
11641
11642 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h".
11643 * common/common-gdbthread.h: New file, with parts from
11644 "gdb/gdbthread.h".
11645 * gdbthread.h: Include "common-gdbthread.h".
11646 (switch_to_thread): Moved to "common/common-gdbthread.h".
11647
15652511
SDJ
116482017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
11649
11650 * Makefile.in (SFILES): Add "common/job-control.c".
11651 (HFILES_NO_SRCDIR): Add "common/job-control.h".
11652 (COMMON_OBS): Add "job-control.o".
11653 * common/job-control.c: New file, with contents from
11654 "gdb/inflow.c".
11655 * common/job-control.h: New file, with contents from "terminal.h".
11656 * fork-child.c: Include "job-control.h".
11657 * inflow.c: Include "job-control.h".
11658 (gdb_setpgid): Move to "common/common-inflow.c".
11659 (_initialize_inflow): Move setting of "job_control" to
11660 "handle_job_control".
11661 * terminal.h (job_control): Moved to "common/common-terminal.h".
11662 (gdb_setpgid): Likewise.
11663 * top.c: Include "job_control.h".
11664 * utils.c: Likewise.
11665 (job_control): Moved to "job-control.c".
11666
2d7cc5c7
PA
116672017-06-07 Pedro Alves <palves@redhat.com>
11668
11669 * Makefile.in (SFILES): Add gdb_regex.c.
11670 (COMMON_OBS): Add gdb_regex.o.
11671 * ada-lang.c (ada_add_standard_exceptions)
11672 (ada_add_exceptions_from_frame, name_matches_regex)
11673 (ada_add_global_exceptions, ada_exceptions_list_1): Change regex
11674 parameter type to compiled_regex. Adjust.
11675 (ada_exceptions_list): Use compiled_regex.
11676 * break-catch-throw.c (exception_catchpoint::pattern): Now a
11677 std::unique_ptr<compiled_regex>.
11678 (exception_catchpoint::~exception_catchpoint): Remove regfree
11679 call.
11680 (check_status_exception_catchpoint): Adjust to use compiled_regex.
11681 (handle_gnu_v3_exceptions): Adjust to use compiled_regex.
11682 * breakpoint.c (solib_catchpoint::compiled): Now a
11683 std::unique_ptr<compiled_regex>.
11684 (solib_catchpoint::~solib_catchpoint): Remove regfree call.
11685 (check_status_catch_solib): Adjust to use compiled_regex.
11686 (add_solib_catchpoint): Adjust to use compiled_regex.
11687 * cli/cli-cmds.c (apropos_command): Use compiled_regex.
11688 * cli/cli-decode.c (apropos_cmd): Change regex parameter to
11689 compiled_regex reference. Adjust to use it.
11690 * cli/cli-decode.h: Remove struct re_pattern_buffer forward
11691 declaration. Include "gdb_regex.h".
11692 (apropos_cmd): Change regex parameter to compiled_regex reference.
11693 * gdb_regex.c: New file.
11694 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete
11695 declarations.
11696 (class compiled_regex): New.
11697 * linux-tdep.c: Include "common/gdb_optional.h".
11698 (struct mapping_regexes): New, factored out from
11699 mapping_is_anonymous_p, and adjusted to use compiled_regex.
11700 (mapping_is_anonymous_p): Use mapping_regexes wrapped in a
11701 gdb::optional and remove cleanups. Adjust to compiled_regex.
11702 * probe.c: Include "common/gdb_optional.h".
11703 (collect_probes): Use compiled_regex and gdb::optional and remove
11704 cleanups.
11705 * skip.c: Include "common/gdb_optional.h".
11706 (skiplist_entry::compiled_function_regexp): Now a
11707 gdb::optional<compiled_regex>.
11708 (skiplist_entry::compiled_function_regexp_is_valid): Delete field.
11709 (free_skiplist_entry): Remove regfree call.
11710 (compile_skip_regexp, skip_rfunction_p): Adjust to use
11711 compiled_regex and gdb::optional.
11712 * symtab.c: Include "common/gdb_optional.h".
11713 (search_symbols): Use compiled_regex and gdb::optional.
11714 * utils.c (do_regfree_cleanup, make_regfree_cleanup)
11715 (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved
11716 to gdb_regex.c.
11717
50d6adef
AH
117182017-06-07 Alan Hayward <alan.hayward@arm.com>
11719
11720 * regcache.c (regcache::save): Avoid buffer use.
11721 (regcache::dump): Likewise.
11722
4a8a33c8
AH
117232017-06-07 Alan Hayward <alan.hayward@arm.com>
11724
11725 * sh-tdep.c (sh_pseudo_register_read): Remove
11726 MAX_REGISTER_SIZE.
11727 (sh_pseudo_register_write): Likewise.
11728 * sh64-tdep.c (sh64_pseudo_register_read): Likewise.
11729 (sh64_pseudo_register_write): Likewise
11730
d1be909e
AH
117312017-06-07 Alan Hayward <alan.hayward@arm.com>
11732
11733 * aarch64-tdep.c (aarch64_store_return_value): Use
11734 V_REGISTER_SIZE.
11735 (aarch64_pseudo_read_value): Likewise.
11736 (aarch64_pseudo_write): Likewise.
11737
f4a65042
YQ
117382017-06-06 Yao Qi <yao.qi@linaro.org>
11739
11740 * regformats/regdef.h (set_register_cache): Remove the
11741 declaration.
11742
9f7fb0aa
AH
117432017-06-06 Alan Hayward <alan.hayward@arm.com>
11744
11745 * frame.c (frame_unwind_register_signed): Use
11746 frame_unwind_register_value.
11747
e1e01040
PA
117482017-06-06 Pedro Alves <palves@redhat.com>
11749
11750 PR breakpoints/21553
11751 * breakpoint.c (create_breakpoints_sal_default)
11752 (init_breakpoint_sal, create_breakpoint_sal): Use
11753 gdb::unique_xmalloc_ptr for string parameters.
11754 (create_breakpoint): Constify 'extra_string' and 'cond_string'
11755 parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
11756 (base_breakpoint_create_breakpoints_sal)
11757 (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
11758 (strace_marker_create_breakpoints_sal)
11759 (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
11760 string parameters.
11761 * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
11762 gdb::unique_xmalloc_ptr for string parameters.
11763 (create_breakpoint): Constify 'extra_string' and 'cond_string'
11764 parameters.
11765
fbe654c8
AH
117662017-06-06 Alan Hayward <alan.hayward@arm.com>
11767
11768 * alpha-tdep.c (alpha_register_to_value): Use
11769 get_frame_register_value.
11770 (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
11771
ae0d01d6
AH
117722017-06-06 Alan Hayward <alan.hayward@arm.com>
11773
11774 * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
11775 (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
11776 (ia64_value_to_register): Likewise.
11777 (ia64_extract_return_value): Likewise.
11778 (ia64_store_return_value): Likewise.
11779 (ia64_push_dummy_call): Likewise.
11780
49cf576c
JB
117812017-06-04 Joel Brobecker <brobecker@adacore.com>
11782
11783 GDB 8.0 released.
11784
26b6a6ab
SM
117852017-06-03 Simon Marchi <simon.marchi@ericsson.com>
11786
11787 * x86-linux-nat.c (struct arch_lwp_info): Remove.
11788
22827c51
SM
117892017-06-03 Simon Marchi <simon.marchi@polymtl.ca>
11790
11791 * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
11792 parameter.
11793 (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
11794
0e05cf3a
SM
117952017-06-02 Simon Marchi <simon.marchi@ericsson.com>
11796
11797 * event-loop.c (poll_timers): Unallocate timer using delete
11798 instead of xfree.
11799
c1fc2657
SM
118002017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
11801
11802 * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
11803 (struct breakpoint) <~breakpoint>: New.
11804 (struct watchpoint): Inherit from breakpoint.
11805 <~watchpoint>: New.
11806 <base>: Remove.
11807 (struct tracepoint): Inherit from breakpoint.
11808 <base>: Remove.
11809 * breakpoint.c (longjmp_breakpoint_ops): Remove.
11810 (struct longjmp_breakpoint): Inherit from breakpoint.
11811 <~longjmp_breakpoint>: New.
11812 <base>: Remove.
11813 (new_breakpoint_from_type): Remove casts.
11814 (watchpoint_in_thread_scope): Remove reference to base field.
11815 (watchpoint_del_at_next_stop): Likewise.
11816 (update_watchpoint): Likewise.
11817 (watchpoint_check): Likewise.
11818 (bpstat_check_watchpoint): Likewise.
11819 (set_longjmp_breakpoint): Likewise.
11820 (struct fork_catchpoint): Inherit from breakpoint.
11821 <base>: Remove.
11822 (struct solib_catchpoint): Inherit from breakpoint.
11823 <~solib_catchpoint>: New.
11824 <base>: Remove.
11825 (dtor_catch_solib): Change to ...
11826 (solib_catchpoint::~solib_catchpoint): ... this.
11827 (breakpoint_hit_catch_solib): Remove reference to base field.
11828 (add_solib_catchpoint): Likewise.
11829 (create_fork_vfork_event_catchpoint): Likewise.
11830 (struct exec_catchpoint): Inherit from breakpoint.
11831 <~exec_catchpoint>: New.
11832 <base>: Remove.
11833 (dtor_catch_exec): Change to ...
11834 (exec_catchpoint::~exec_catchpoint): ... this.
11835 (dtor_watchpoint): Change to ...
11836 (watchpoint::~watchpoint): ... this.
11837 (watch_command_1): Remove reference to base field.
11838 (catch_exec_command_1): Likewise.
11839 (base_breakpoint_dtor): Change to ...
11840 (breakpoint::~breakpoint): ... this.
11841 (base_breakpoint_ops): Remove dtor field value.
11842 (longjmp_bkpt_dtor): Change to ...
11843 (longjmp_breakpoint::~longjmp_breakpoint): ... this.
11844 (strace_marker_create_breakpoints_sal): Remove reference to base
11845 field.
11846 (delete_breakpoint): Don't manually call breakpoint destructor.
11847 (create_tracepoint_from_upload): Remove reference to base field.
11848 (trace_pass_set_count): Likewise.
11849 (initialize_breakpoint_ops): Don't initialize
11850 momentary_breakpoint_ops, don't set dtors.
11851 * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
11852 <~ada_catchpoint>: New.
11853 <base>: Remove.
11854 (create_excep_cond_exprs): Remove reference to base field.
11855 (dtor_exception): Change to ...
11856 (ada_catchpoint::~ada_catchpoint): ... this.
11857 (dtor_catch_exception): Remove.
11858 (dtor_catch_exception_unhandled): Remove.
11859 (dtor_catch_assert): Remove.
11860 (create_ada_exception_catchpoint): Remove reference to base
11861 field.
11862 (initialize_ada_catchpoint_ops): Don't set dtors.
11863 * break-catch-sig.c (struct signal_catchpoint): Inherit from
11864 breakpoint.
11865 <~signal_catchpoint>: New.
11866 <base>: Remove.
11867 (signal_catchpoint_dtor): Change to ...
11868 (signal_catchpoint::~signal_catchpoint): ... this.
11869 (create_signal_catchpoint): Remove reference to base field.
11870 (initialize_signal_catchpoint_ops): Don't set dtor.
11871 * break-catch-syscall.c (struct syscall_catchpoint): Inherit
11872 from breakpoint.
11873 <~syscall_catchpoint>: New.
11874 <base>: Remove.
11875 (dtor_catch_syscall): Change to ...
11876 (syscall_catchpoint::~syscall_catchpoint): ... this.
11877 (create_syscall_event_catchpoint): Remove reference to base
11878 field.
11879 (initialize_syscall_catchpoint_ops): Don't set dtor.
11880 * break-catch-throw.c (struct exception_catchpoint): Inherit
11881 from breakpoint.
11882 <~exception_catchpoint>: New.
11883 <base>: Remove.
11884 (dtor_exception_catchpoint): Change to ...
11885 (exception_catchpoint::~exception_catchpoint): ... this.
11886 (handle_gnu_v3_exceptions): Remove reference to base field.
11887 (initialize_throw_catchpoint_ops): Don't set dtor.
11888 * ctf.c (ctf_get_traceframe_address): Remove reference to base
11889 field.
11890 * remote.c (remote_get_tracepoint_status): Likewise.
11891 * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
11892 * tracefile.c (tracefile_fetch_registers): Likewise.
11893 * tracepoint.c (actions_command): Likewise.
11894 (validate_actionline): Likewise.
11895 (tfind_1): Likewise.
11896 (get_traceframe_location): Likewise.
11897 (find_matching_tracepoint_location): Likewise.
11898 (parse_tracepoint_status): Likewise.
11899 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
11900
3b0871f4
SM
119012017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
11902
11903 * breakpoint.c (struct longjmp_breakpoint): New struct.
11904 (is_tracepoint_type): Change return type to bool.
11905 (is_longjmp_type): New function.
11906 (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
11907 (set_raw_breakpoint_without_location): Use
11908 new_breakpoint_from_type.
11909 (set_raw_breakpoint): Likewise.
11910
a5e364af
SM
119112017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
11912
11913 * breakpoint.c (new_breakpoint_from_type): New function.
11914 (create_breakpoint_sal): Use new_breakpoint_from_type and
11915 unique_ptr.
11916 (create_breakpoint): Likewise.
11917
ae3b3f34
SM
119182017-05-31 Simon Marchi <simon.marchi@ericsson.com>
11919
11920 * memattr.c (mem_info_command): Rename to ...
11921 (info_mem_command): ... this.
11922 (mem_enable_command): Rename to ...
11923 (enable_mem_command): ... this.
11924 (mem_disable_command): Rename to ...
11925 (disable_mem_command): ... this.
11926 (mem_delete_command): Rename to ...
11927 (delete_mem_command): ... this.
11928 (_initialize_mem): Adjust function names.
11929
13ace077
MM
119302017-05-31 Markus Metzger <markus.t.metzger@intel.com>
11931
11932 * btrace.c (handle_pt_insn_events): New.
11933 (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into
11934 STATUS. Split into this and ...
11935 (handle_pt_insn_event_flags): ... this.
11936
c56ccc05
MM
119372017-05-31 Markus Metzger <markus.t.metzger@intel.com>
11938
11939 * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
11940 and struct pt_insn.resynced.
11941 * configure: Regenerated.
11942 * config.in: Regenerated.
11943
08c3f6d2
TW
119442017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11945
11946 * btrace.c (ftrace_find_call_by_number): New function.
11947 (ftrace_new_function): Store objects, not pointers.
11948 (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
11949 ftrace_new_gap, ftrace_update_function,
11950 ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
11951 btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
11952 btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
11953 btrace_ends_with_single_insn, btrace_call_get): Account for
11954 btrace_thread_info::functions now storing objects.
11955 * btrace.h (struct btrace_thread_info): Add constructor.
11956 (struct btrace_thread_info) <functions>: Make std::vector.
11957 (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
11958 Initialize with default values.
11959 * record-btrace.c (record_btrace_frame_sniffer): Account for
11960 btrace_thread_info::functions now storing objects.
11961
8ffd39f2
TW
119622017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11963
11964 * btrace.c: Remove typedef bfun_s.
11965 (ftrace_new_gap): Directly add gaps to the list of gaps.
11966 (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
11967 ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
11968 btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
11969 instead of gdb VEC.
11970
4aeb0dfc
TW
119712017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11972
11973 * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
11974 ftrace_bridge_gap): Replace references to btrace_thread_info::segment
11975 with btrace_thread_info::next_segment and
11976 btrace_thread_info::prev_segment.
11977 * btrace.h: Remove struct btrace_func_link.
11978 (struct btrace_function): Replace pair of function segment pointers
11979 with pair of indices.
11980 * python/py-record-btrace.c (btpy_call_prev_sibling,
11981 btpy_call_next_sibling): Replace references to
11982 btrace_thread_info::segment with btrace_thread_info::next_segment and
11983 btrace_thread_info::prev_segment.
11984 * record-btrace.c (record_btrace_frame_this_id): Use
11985 btrace_find_call_by_number.
11986
eb8f2b9c
TW
119872017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11988
11989 * btrace.c (ftrace_new_function, ftrace_fixup_level,
11990 ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
11991 btrace_insn_next, btrace_insn_prev): Remove references to
11992 btrace_thread_info::flow.
11993 * btrace.h (struct btrace_function): Remove FLOW.
11994
42bfe59e
TW
119952017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11996
11997 * btrace.c (ftrace_find_call_by_number): New function.
11998 (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
11999 ftrace_get_caller, ftrace_find_call, ftrace_new_return,
12000 ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
12001 ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
12002 index.
12003 * btrace.h (struct btrace_function): Turn UP into an index.
12004 * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
12005 as an index.
12006 * record-btrace.c (record_btrace_frame_unwind_stop_reason,
12007 record_btrace_frame_prev_register, record_btrace_frame_sniffer,
12008 record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
12009
b54b03bd
TW
120102017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12011
12012 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
12013 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
12014 ftrace_update_function, ftrace_compute_global_level_offset,
12015 btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
12016 btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
12017 btrace_insn_end, btrace_is_empty): Remove references to
12018 btrace_thread_info::begin and btrace_thread_info::end.
12019 * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
12020 (struct btrace_thread_info) <functions>: Adjust comment.
12021 * record-btrace.c (record_btrace_start_replaying): Remove reference to
12022 btrace_thread_info::begin.
12023
8286623c
TW
120242017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12025
12026 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
12027 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
12028 ftrace_update_function): Remove arguments that implicitly were always
12029 BTINFO->END.
12030 (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
12031 Don't pass BTINFO->END.
12032
a0f1b963
TW
120332017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12034
12035 * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
12036 btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
12037 btrace_find_insn_by_number): Replace function segment pointer with
12038 index.
12039 (btrace_insn_cmp): Simplify.
12040 * btrace.h: (struct btrace_insn_iterator) Rename index to
12041 insn_index. Replace function segment pointer with index into function
12042 segment vector.
12043 * record-btrace.c (record_btrace_call_history): Replace function
12044 segment pointer use with index.
12045 (record_btrace_frame_sniffer): Retrieve function call segment through
12046 vector.
12047 (record_btrace_set_replay): Remove defunc't safety check.
12048
f158f208
TW
120492017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12050
12051 * btrace.c (btrace_ends_with_single_insn): New function.
12052 (btrace_call_get, btrace_call_number, btrace_call_begin,
12053 btrace_call_end, btrace_call_next, btrace_call_prev,
12054 btrace_find_call_by_number): Use index into call segment vector
12055 instead of pointer.
12056 (btrace_call_cmp): Simplify.
12057 * btrace.h (struct btrace_call_iterator): Replace function call segment
12058 pointer with index into vector.
12059 * record-btrace.c (record_btrace_call_history): Use index instead of
12060 pointer.
12061
521103fd
TW
120622017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12063
12064 * btrace.c (btrace_insn_begin, btrace_insn_end,
12065 btrace_find_insn_by_number): Add btinfo to iterator.
12066 * btrace.h (struct btrace_insn_iterator): Add btinfo.
12067
17b89b34
TW
120682017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12069
12070 * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
12071 and save pointers directly.
12072 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
12073 ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
12074 ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for
12075 changed signature of functions.
12076 (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
12077 (btrace_fetch): Remove code that adds btrace_function pointers to
12078 vector of btrace_functions.
12079 (btrace_clear): Simplify freeing vector of btrace_functions.
12080
2b51eddc
TW
120812017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12082
12083 * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
12084 Replace VEC_* with std::vector functions.
12085 * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
12086 (struct btrace_thread_info)<functions>: Change type to std::vector.
12087
db6be0d5
SM
120882017-05-30 Simon Marchi <simon.marchi@ericsson.com>
12089
12090 * NEWS (Changes in GDB 8.0): Remove extra empty line. Move
12091 "Removed targets and native configurations" up. Merge duplicate
12092 "New commands" sub-sections. Add "New options" sub-sections.
12093
b057297a
AH
120942017-05-26 Alan Hayward <alan.hayward@arm.com>
12095
12096 * defs.h (copy_integer_to_size): New declaration.
12097 * findvar.c (copy_integer_to_size): New function.
12098 (do_cint_test): New selftest function.
12099 (copy_integer_to_size_test): Likewise.
12100 (_initialize_findvar): Likewise.
12101 * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
12102 (mips_fbsd_collect_reg): Use raw_collect_integer.
12103 * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
12104 (mips64_fill_gregset): Use raw_collect_integer
12105 (mips64_fill_fpregset): Use raw_supply_integer.
12106 * regcache.c (regcache::raw_supply_integer): New function.
12107 (regcache::raw_collect_integer): Likewise.
12108 * regcache.h: (regcache::raw_supply_integer): New declaration.
12109 (regcache::raw_collect_integer): Likewise.
12110
b77b02a5
YQ
121112017-05-24 Yao Qi <yao.qi@linaro.org>
12112
12113 * Makefile.in (SFILES): Add gdbarch-selftests.c.
12114 (COMMON_OBS): Add gdbarch-selftests.o.
12115 * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
12116 * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
12117 * gdbarch-selftests.c: New file.
12118 * regcache.h (regcache) <~regcache>: Mark it virtual if
12119 GDB_SELF_TEST.
12120 <raw_write>: Likewise.
12121
e521e87e
YQ
121222017-05-24 Yao Qi <yao.qi@linaro.org>
12123
12124 * regcache.c (current_regcache): Change it to
12125 regcache::current_regcache.
12126 (regcache_observer_target_changed): Update.
12127 (regcache_thread_ptid_changed): Make it a regcache static
12128 method.
12129 (regcache_thread_ptid_changed): Update.
12130 (class regcache_access): New.
12131 (current_regcache_test): Update.
12132 (_initialize_regcache): Update.
12133 * regcache.h: Include forward_list.
12134 (regcache): Declare regcache_thread_ptid_changed and declare
12135 registers_changed_ptid as friend.
12136
d8e07dda
YQ
121372017-05-24 Yao Qi <yao.qi@linaro.org>
12138
12139 * i387-tdep.c (i387_register_to_value): Use register_size
12140 instead of TYPE_LENGTH.
12141 * m68k-tdep.c (m68k_register_to_value): Likewise.
12142
8c8f9122
YQ
121432017-05-24 Yao Qi <yao.qi@linaro.org>
12144
12145 * i387-tdep.c (i387_convert_register_p): Return false if type
12146 code isn't TYPE_CODE_FLT.
12147
68fce50f
YQ
121482017-05-24 Yao Qi <yao.qi@linaro.org>
12149
12150 * alpha-tdep.c (alpha_convert_register_p): Return true if type
12151 length is 4.
12152 (alpha_register_to_value): Remove type length check.
12153 (alpha_value_to_register): Likewise.
12154
88954b49
YQ
121552017-05-24 Yao Qi <yao.qi@linaro.org>
12156
12157 * ia64-tdep.c (ia64_convert_register_p): Check type's code is
12158 TYPE_CODE_FLT.
12159
e3ec9b69
YQ
121602017-05-24 Yao Qi <yao.qi@linaro.org>
12161
12162 * m68k-tdep.c (m68k_convert_register_p): Check type's code is
12163 TYPE_CODE_FLT or not.
12164
cdd238da
YQ
121652017-05-24 Yao Qi <yao.qi@linaro.org>
12166
12167 * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
12168 * avr-tdep.c (avr_gdbarch_init): Likewise.
12169 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12170 * cris-tdep.c (cris_gdbarch_init): Likewise.
12171 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
12172 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12173 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12174 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
12175 * mep-tdep.c (mep_gdbarch_init): Likewise.
12176 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12177 * mips-tdep.c (mips_gdbarch_init): Likewise.
12178 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
12179 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12180 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
12181 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12182 * v850-tdep.c (v850_gdbarch_init): Likewise.
12183
7a3929c4
YQ
121842017-05-24 Yao Qi <yao.qi@linaro.org>
12185
12186 * selftest-arch.c (tests_with_arch): Call registers_changed
12187 and reinit_frame_cache.
12188 * selftest.c (run_self_tests): Likewise.
12189
f4985dba
YQ
121902017-05-24 Yao Qi <yao.qi@linaro.org>
12191
12192 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.
12193 (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn.
12194
ab20fa4a
YQ
121952017-05-24 Yao Qi <yao.qi@linaro.org>
12196
12197 * rl78-tdep.c (rl78_gdbarch_init): Don't call
12198 set_gdbarch_print_insn.
12199
f532ab94
YQ
122002017-05-24 Yao Qi <yao.qi@linaro.org>
12201
12202 * h8300-tdep.c (h8300_gdbarch_init): Don't call
12203 set_gdbarch_print_insn.
12204
39503f82
YQ
122052017-05-24 Yao Qi <yao.qi@linaro.org>
12206
12207 * alpha-tdep.c (alpha_gdbarch_init): Don't call
12208 set_gdbarch_print_insn.
12209 * arc-tdep.c (arc_gdbarch_init): Likewise.
12210 * arch-utils.c: include dis-asm.h.
12211 (default_print_insn): New function.
12212 * arch-utils.h (default_print_insn): Declare.
12213 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
12214 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12215 * cris-tdep.c (cris_delayed_get_disassembler): Remove.
12216 (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
12217 * frv-tdep.c (frv_gdbarch_init): Likewise.
12218 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
12219 * gdbarch.sh (print_insn): Use default_print_insn.
12220 * gdbarch.c: Regenerated.
12221 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12222 * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
12223 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12224 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
12225 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12226 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
12227 (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
12228 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
12229 * m88k-tdep.c (m88k_gdbarch_init): Likewise.
12230 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12231 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
12232 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12233 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
12234 * mt-tdep.c (mt_gdbarch_init): Likewise.
12235 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
12236 * nios2-tdep.c (nios2_print_insn): Remove.
12237 (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
12238 * rx-tdep.c (rx_gdbarch_init): Likewise.
12239 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12240 * score-tdep.c (score_print_insn): Remove.
12241 (score_gdbarch_init): Don't call set_gdbarch_print_insn.
12242 * sh-tdep.c (sh_gdbarch_init): Likewise.
12243 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12244 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12245 * tic6x-tdep.c (tic6x_print_insn): Remove.
12246 (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
12247 * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
12248 * v850-tdep.c (v850_gdbarch_init): Likewise.
12249 * vax-tdep.c (vax_gdbarch_init): Likewise.
12250 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
12251 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
12252
f7241d4f
JB
122532017-05-23 John Baldwin <jhb@FreeBSD.org>
12254
12255 * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
12256 (MIPS_FP0_REGNUM): Remove.
12257 (MIPS_FSR_REGNUM): Remove.
12258 (mips_fbsd_supply_fpregs): Use mips_regnum.
12259 (mips_fbsd_supply_gregs): Likewise.
12260 (mips_fbsd_collect_fpregs): Likewise.
12261 (mips_fbsd_collect_gregs): Likewise.
12262
d489d81d
JB
122632017-05-23 John Baldwin <jhb@FreeBSD.org>
12264
12265 * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
12266 (getpfpregs_supplies): New function.
12267 (mips_fbsd_fetch_inferior_registers): Remove early exit and use
12268 getfpregs_supplies.
12269 (mips_fbsd_store_inferior_registers): Likewise.
12270
e11b3cdc
PA
122712017-05-22 Pedro Alves <palves@redhat.com>
12272
12273 * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
12274 maintainer.
12275
0f068fb5
AH
122762017-05-22 Alan Hayward <alan.hayward@arm.com>
12277
12278 * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
12279 (store_register): Likewise.
12280 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
12281 (get_decimal_float_return_value): Likewise.
12282 (do_ppc_sysv_return_value): Likewise.
12283 (ppc64_sysv_abi_push_integer): Likewise.
12284 (ppc64_sysv_abi_push_freg): Likewise.
12285 (ppc64_sysv_abi_return_value_base): Likewise.
12286 (ppc64_sysv_abi_return_value): Likewise.
12287 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
12288 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
12289 * rs6000-nat.c: Likewise.
12290 * rs6000-tdep.c (rs6000_register_to_value): Likewise.
12291 (rs6000_value_to_register): Likewise.
12292 * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
12293
e6cf65f2
TT
122942017-05-21 Tom Tromey <tom@tromey.com>
12295
12296 PR rust/21466:
12297 * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
12298 arrays as "[T]", not "[T; ]".
12299
43cc5389
TT
123002017-05-19 Tom Tromey <tom@tromey.com>
12301
12302 PR rust/21484:
12303 * rust-lang.c (exp_descriptor_rust): New function.
12304 (rust_language_defn): Use it.
12305 * p-lang.c (pascal_language_defn): Update.
12306 * opencl-lang.c (opencl_language_defn): Update.
12307 * objc-lang.c (objc_language_defn): Update.
12308 * m2-lang.c (m2_language_defn): Update.
12309 * language.h (struct language_defn)
12310 <la_watch_location_expression>: New member.
12311 * language.c (unknown_language_defn, auto_language_defn)
12312 (local_language_defn): Update.
12313 * go-lang.c (go_language_defn): Update.
12314 * f-lang.c (f_language_defn): Update.
12315 * d-lang.c (d_language_defn): Update.
12316 * c-lang.h (c_watch_location_expression): Declare.
12317 * c-lang.c (c_watch_location_expression): New function.
12318 (c_language_defn, cplus_language_defn, asm_language_defn)
12319 (minimal_language_defn): Use it.
12320 * breakpoint.c (watch_command_1): Call
12321 la_watch_location_expression.
12322 * ada-lang.c (ada_language_defn): Update.
12323
7a6e7fcc
RO
123242017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12325
6e7e1744
RO
12326 PR tui/21482
12327 * gdb_curses.h (NOMACROS): Define.
12328 (NCURSES_NOMACROS): Define.
12329
123302017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12331
12332 PR tui/21482
7a6e7fcc
RO
12333 * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
12334 arg to char *.
12335 * tui/tui-wingeneral.c (box_win): Likewise.
12336 * tui/tui-winsource.c (tui_erase_source_content): Likewise.
12337 (tui_show_source_line): Likewise.
12338 (tui_show_exec_info_content): Likewise.
12339
1933fd8e
VM
123402017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
12341
12342 * sparc-tdep.c (sparc_structure_return_p)
12343 (sparc_arg_on_registers_p): New functions.
12344 (sparc32_store_arguments): Use them.
12345 * sparc64-tdep.c (sparc64_16_byte_align_p)
12346 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
12347 Handle TYPE_CODE_ARRAY.
12348
21873064
YQ
123492017-05-17 Yao Qi <yao.qi@linaro.org>
12350
12351 * cli/cli-decode.c (add_alias_cmd): New function.
12352 * command.h (add_alias_cmd): Declare.
12353 * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
12354 instead call add_alias_cmd.
12355
2b351b19
PA
123562017-05-17 Pedro Alves <palves@redhat.com>
12357
12358 * Makefile.in (nat_extra_makefile_frag): Rename to ...
12359 (nat_makefile_frag): ... this. All references updated.
12360 * configure.ac: Likewise.
12361 * configure.nat: Likewise. Enhance comments.
12362 * configure: Regenerate.
12363
5f2ad7a3
RO
123642017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12365
12366 * procfs.c (procfs_create_inferior): Change prototype to match
12367 definition.
12368
adf3dde5
EZ
123692017-05-13 Eli Zaretskii <eliz@gnu.org>
12370
12371 * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
12372 C++ compiler warning.
12373
6830f270
TT
123742017-05-12 Tom Tromey <tom@tromey.com>
12375
12376 PR rust/21483:
12377 * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
12378 recurse, just call value_struct_elt directly.
12379
68f2f2e3
TT
123802017-05-12 Tom Tromey <tom@tromey.com>
12381
12382 * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
12383 OP_RUST_ARRAY>: Fix.
12384
256afbc2
TT
123852017-05-12 Tom Tromey <tom@tromey.com>
12386
12387 * rust-lang.c (rust_print_subexp): Replace "return" with "break".
12388
94bb8dfe
YQ
123892017-05-09 Yao Qi <yao.qi@linaro.org>
12390
12391 * regcache.c: Include <forward_list>.
12392 (struct regcache_list): Remove.
12393 (current_regcache): Update.
12394 (get_thread_arch_aspace_regcache): Update for std::forward_list.
12395 (regcache_thread_ptid_changed): Likewise.
12396 (registers_changed_ptid): Likewise.
12397 (current_regcache_size): Likewise.
12398
8248946c
YQ
123992017-05-09 Yao Qi <yao.qi@linaro.org>
12400
12401 * regcache.c [GDB_SELF_TEST]: Include selftest.h.
12402 (current_regcache_size): New function.
12403 (current_regcache_test): New function.
12404 (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
12405
313c5961
AH
124062017-05-08 Alan Hayward <alan.hayward@arm.com>
12407
12408 * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
12409 (print_gp_register_row): Use get_frame_register_value.
12410
27bfc1d1
AH
124112017-05-08 Alan Hayward <alan.hayward@arm.com>
12412
12413 * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
12414 (mips_supply_fpregset): Likewise.
12415 (mips64_supply_gregset): Likewise.
12416
146e6c5c
AH
124172017-05-08 Alan Hayward <alan.hayward@arm.com>
12418
12419 * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
12420 regcache->raw_supply_zeroed.
12421
e50f25ec
SDJ
124222017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
12423
12424 * configure.nat: Rearrange 'case' statements to match
12425 host before cpu.
12426
21ea5acd
SDJ
124272017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
12428
12429 * Makefile.in: Remove "@host_makefile_frag@". Add variables
12430 NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
12431 NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
12432 "@nat_extra_makefile_frag@".
12433 (Makefile): Remove dependency on "@frags@".
12434 ($(GNULIB_BUILDDIR)/Makefile): Likewise.
12435 (data-directory/Makefile): Likewise.
12436 * config/aarch64/linux.mh: Deleted; moved contents to
12437 "gdb/configure.nat".
12438 * config/alpha/alpha-linux.mh: Likewise.
12439 * config/alpha/nbsd.mh: Likewise.
12440 * config/arm/linux.mh: Likewise.
12441 * config/arm/nbsdelf.mh: Likewise.
12442 * config/i386/cygwin.mh: Likewise.
12443 * config/i386/cygwin64.mh: Likewise.
12444 * config/i386/darwin.mh: Likewise.
12445 * config/i386/fbsd.mh: Likewise.
12446 * config/i386/fbsd64.mh: Likewise.
12447 * config/i386/go32.mh: Likewise.
12448 * config/i386/i386gnu.mh: Likewise.
12449 * config/i386/i386sol2.mh: Likewise.
12450 * config/i386/linux.mh: Likewise.
12451 * config/i386/linux64.mh: Likewise.
12452 * config/i386/mingw.mh: Likewise.
12453 * config/i386/mingw64.mh: Likewise.
12454 * config/i386/nbsd64.mh: Likewise.
12455 * config/i386/nbsdelf.mh: Likewise.
12456 * config/i386/nto.mh: Likewise.
12457 * config/i386/obsd.mh: Likewise.
12458 * config/i386/obsd64.mh: Likewise.
12459 * config/i386/sol2-64.mh: Likewise.
12460 * config/ia64/linux.mh: Likewise.
12461 * config/m32r/linux.mh: Likewise.
12462 * config/m68k/linux.mh: Likewise.
12463 * config/m68k/nbsdelf.mh: Likewise.
12464 * config/m68k/obsd.mh: Likewise.
12465 * config/m88k/obsd.mh: Likewise.
12466 * config/mips/fbsd.mh: Likewise.
12467 * config/mips/linux.mh: Likewise.
12468 * config/mips/nbsd.mh: Likewise.
12469 * config/mips/obsd64.mh: Likewise.
12470 * config/pa/linux.mh: Likewise.
12471 * config/pa/nbsd.mh: Likewise.
12472 * config/pa/obsd.mh: Likewise.
12473 * config/powerpc/aix.mh: Likewise.
12474 * config/powerpc/fbsd.mh: Likewise.
12475 * config/powerpc/linux.mh: Likewise.
12476 * config/powerpc/nbsd.mh: Likewise.
12477 * config/powerpc/obsd.mh: Likewise.
12478 * config/powerpc/ppc64-linux.mh: Likewise.
12479 * config/powerpc/spu-linux.mh: Likewise.
12480 * config/s390/linux.mh: Likewise.
12481 * config/sh/nbsd.mh: Likewise.
12482 * config/sparc/fbsd.mh: Likewise.
12483 * config/sparc/linux.mh: Likewise.
12484 * config/sparc/linux64.mh: Likewise.
12485 * config/sparc/nbsd64.mh: Likewise.
12486 * config/sparc/nbsdelf.mh: Likewise.
12487 * config/sparc/obsd64.mh: Likewise.
12488 * config/sparc/sol2.mh: Likewise.
12489 * config/tilegx/linux.mh: Likewise.
12490 * config/vax/nbsdelf.mh: Likewise.
12491 * config/vax/obsd.mh: Likewise.
12492 * config/xtensa/linux.mh: Likewise.
12493 * config/i386/i386gnu.mn: New file, with excerpts from
12494 "config/i386/i386gnu.mh".
12495 * configure: Regenerate.
12496 * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
12497 *.mh files under "gdb/config".
12498 * configure.nat: New file, with contents from the
12499 "gdb/config/*/*.mh" files.
12500
7ed1acaf
TW
125012017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
12502
12503 * btrace.c (btrace_clear): Free insn vector.
12504
e13cb306
PA
125052017-05-05 Pedro Alves <palves@redhat.com>
12506
12507 * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
12508 * configure: Regenerate.
12509
5ed8105e
PA
125102017-05-04 Pedro Alves <palves@redhat.com>
12511
12512 * Makefile.in (SFILES): Add progspace-and-thread.c.
12513 (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
12514 (COMMON_OBS): Add progspace-and-thread.o.
12515 * breakpoint.c: Include "progspace-and-thread.h".
12516 (update_inserted_breakpoint_locations)
12517 (insert_breakpoint_locations, create_longjmp_master_breakpoint):
12518 Use scoped_restore_current_pspace_and_thread.
12519 (create_std_terminate_master_breakpoint): Use
12520 scoped_restore_current_program_space.
12521 (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
12522 (print_breakpoint_location): Use
12523 scoped_restore_current_program_space.
12524 (bp_loc_is_permanent): Use
12525 scoped_restore_current_pspace_and_thread.
12526 (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
12527 (download_tracepoint_locations): Use
12528 scoped_restore_current_pspace_and_thread.
12529 (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
12530 * exec.c (exec_close_1): Use scoped_restore_current_program_space.
12531 (enum step_over_calls_kind): Moved from inferior.h.
12532 (class scoped_restore_current_thread): New class.
12533 * gdbthread.h (make_cleanup_restore_current_thread): Delete
12534 declaration.
12535 (scoped_restore_current_thread): New class.
12536 * infcmd.c: Include "common/gdb_optional.h".
12537 (continue_1, proceed_after_attach): Use
12538 scoped_restore_current_thread.
12539 (notice_new_inferior): Use scoped_restore_current_thread.
12540 * inferior.c: Include "progspace-and-thread.h".
12541 (restore_inferior, save_current_inferior): Delete.
12542 (add_inferior_command, clone_inferior_command): Use
12543 scoped_restore_current_pspace_and_thread.
12544 * inferior.h (scoped_restore_current_inferior): New class.
12545 * infrun.c: Include "progspace-and-thread.h" and
12546 "common/gdb_optional.h".
12547 (follow_fork_inferior): Use
12548 scoped_restore_current_pspace_and_thread.
12549 (scoped_restore_exited_inferior): New class.
12550 (handle_vfork_child_exec_or_exit): Use
12551 scoped_restore_exited_inferior,
12552 scoped_restore_current_pspace_and_thread,
12553 scoped_restore_current_thread and scoped_restore.
12554 (fetch_inferior_event): Use scoped_restore_current_thread.
12555 * linespec.c (decode_line_full, decode_line_1): Use
12556 scoped_restore_current_program_space.
12557 * mi/mi-main.c: Include "progspace-and-thread.h".
12558 (exec_continue): Use scoped_restore_current_thread.
12559 (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
12560 (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
12561 * proc-service.c (ps_pglobal_lookup): Use
12562 scoped_restore_current_program_space.
12563 * progspace-and-thread.c: New file.
12564 * progspace-and-thread.h: New file.
12565 * progspace.c (release_program_space, clone_program_space): Use
12566 scoped_restore_current_program_space.
12567 (restore_program_space, save_current_program_space)
12568 (save_current_space_and_thread): Delete.
12569 (switch_to_program_space_and_thread): Moved to
12570 progspace-and-thread.c.
12571 * progspace.h (save_current_program_space)
12572 (save_current_space_and_thread): Delete declarations.
12573 (scoped_restore_current_program_space): New class.
12574 * remote.c (remote_btrace_maybe_reopen): Use
12575 scoped_restore_current_thread.
12576 * symtab.c: Include "progspace-and-thread.h".
12577 (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
12578 * thread.c (print_thread_info_1): Use
12579 scoped_restore_current_thread.
12580 (struct current_thread_cleanup): Delete.
12581 (do_restore_current_thread_cleanup)
12582 (restore_current_thread_cleanup_dtor): Rename/convert both to ...
12583 (scoped_restore_current_thread::~scoped_restore_current_thread):
12584 ... this new dtor.
12585 (make_cleanup_restore_current_thread): Rename/convert to ...
12586 (scoped_restore_current_thread::scoped_restore_current_thread):
12587 ... this new ctor.
12588 (thread_apply_all_command): Use scoped_restore_current_thread.
12589 (thread_apply_command): Use scoped_restore_current_thread.
12590 * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
12591 * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
12592
f6223dbb
PA
125932017-05-04 Pedro Alves <palves@redhat.com>
12594
12595 * thread.c (make_cleanup_restore_current_thread): Move
12596 find_thread_ptid call before the is_stopped call. Assert that the
12597 thread is found. Replace is_stopped call by checking the thread's
12598 state directly. Remove unnecessary NULL-thread check.
12599
3c3ae77e
PA
126002017-05-04 Pedro Alves <palves@redhat.com>
12601
12602 * corelow.c (thread_section_name): New class.
12603 (get_core_register_section, get_core_siginfo): Use it.
12604
45eba0ab
AA
126052017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
12606
12607 * corelow.c (sniff_core_bfd): Remove extra semicolon.
12608 (get_core_register_section): Remove xfree of NULL pointer.
12609
f81fdd35
AH
126102017-05-03 Alan Hayward <alan.hayward@arm.com>
12611
12612 * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed.
12613 * regcache.c (regcache::raw_supply_zeroed): New function.
12614 * regcache.h (regcache::raw_supply_zeroed): New declaration.
12615
35837774
SM
126162017-05-03 Simon Marchi <simon.marchi@ericsson.com>
12617
12618 * gdbarch.sh: Remove commented out definition of
12619 TARGET_CHAR_BIT.
12620 * gdbarch.h: Re-generate.
12621
c94fee56
SDJ
126222017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
12623
12624 * configure: Regenerate.
12625
d17f7b36
SM
126262017-05-02 Simon Marchi <simon.marchi@ericsson.com>
12627
12628 * solib-target.c (solib_target_relocate_section_addresses):
12629 Remove num_section_bases, num_bases, segment_bases variables.
12630
b560ebd6
SM
126312017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
12632
12633 * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove.
12634
f2f46dfc
SM
126352017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
12636
12637 * solib-target.c: Include <vector>
12638 (struct lm_info_target) <~lm_info_target>: Remove.
12639 <segment_bases, section_bases>: Change type to
12640 std::vector<CORE_ADDR>.
12641 (library_list_start_segment, library_list_start_section,
12642 library_list_end_library,
12643 solib_target_relocate_section_addresses): Adjust.
12644
a0ff9e1a
SM
126452017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
12646
12647 * gdbarch.sh (software_single_step): Change return type to
12648 std::vector<CORE_ADDR>.
12649 * gdbarch.c, gdbarch.h: Re-generate.
12650 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
12651 Adjust.
12652 (arm_deal_with_atomic_sequence_raw): Adjust.
12653 (thumb_get_next_pcs_raw): Adjust.
12654 (arm_get_next_pcs_raw): Adjust.
12655 (arm_get_next_pcs): Adjust.
12656 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust.
12657 * aarch64-tdep.c (aarch64_software_single_step): Adjust.
12658 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust.
12659 (alpha_software_single_step): Adjust.
12660 * alpha-tdep.h (alpha_software_single_step): Adjust.
12661 * arm-linux-tdep.c (arm_linux_software_single_step): Adjust.
12662 * arm-tdep.c (arm_software_single_step): Adjust.
12663 (arm_breakpoint_kind_from_current_state): Adjust.
12664 * arm-tdep.h (arm_software_single_step): Adjust.
12665 * breakpoint.c (insert_single_step_breakpoint): Adjust.
12666 * cris-tdep.c (cris_software_single_step): Adjust.
12667 * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust.
12668 (micromips_deal_with_atomic_sequence): Adjust.
12669 (deal_with_atomic_sequence): Adjust.
12670 (mips_software_single_step): Adjust.
12671 * mips-tdep.h (mips_software_single_step): Adjust.
12672 * moxie-tdep.c (moxie_software_single_step): Adjust.
12673 * nios2-tdep.c (nios2_software_single_step): Adjust.
12674 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust.
12675 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
12676 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
12677 * s390-linux-tdep.c (s390_software_single_step): Adjust.
12678 * sparc-tdep.c (sparc_software_single_step): Adjust.
12679 * spu-tdep.c (spu_software_single_step): Adjust.
12680 * tic6x-tdep.c (tic6x_software_single_step): Adjust.
12681
ea480a30
SM
126822017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
12683
12684 * gdbarch.sh: Use semi-colon as field separator instead of colon.
12685 * gdbarch.h: Re-generate.
12686
d050f7d7
TW
126872017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
12688
12689 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
12690 (SUBDIR_PYTHON_SRCS): Add py-instruction.c.
12691 * python/py-instruction.c, python/py-instruction.h: New file.
12692 * python/py-record.c: Add py-instruction.h include.
12693 (gdbpy_initialize_record): Make gdb.Instruction a super class of
12694 gdb.RecordInstruction.
12695 * python/python-internal.h: Add gdbpy_initialize_instruction
12696 declaration.
12697 * python/python.c (do_start_initialization): Add
12698 gdbpy_initialize_instruction.
12699
14f819c8
TW
127002017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
12701
12702 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
12703 Remove.
12704 (btrace_func_from_recpy_func): New function.
12705 (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
12706 (btpy_call_level, btpy_call_symbol, btpy_call_instructions,
12707 btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
12708 (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
12709 recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
12710 Also, use new helper functions.
12711 (btpy_list_item): Use new helper functions.
12712 (recpy_bt_function_call_history): Use new type name.
12713 (btpy_call_getset): Remove.
12714 (gdbpy_initialize_btrace): Remove code to initialize
12715 gdb.BtraceFunctionCall.
12716 * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
12717 recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
12718 recpy_bt_func_prev, recpy_bt_func_next): New export.
12719 * python/py-record.c (recpy_func_type): New static object.
12720 (recpy_func_new, recpy_func_level, recpy_func_symbol,
12721 recpy_func_instructions, recpy_func_up, recpy_func_prev,
12722 recpy_func_next): New function.
12723 (recpy_element_hash, recpy_element_richcompare): Updated comment.
12724 (recpy_func_getset): New static object.
12725 (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
12726 * python/py-record.h (recpy_func_type, recpy_func_new): New export.
12727
0ed5da75
TW
127282017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
12729
12730 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove.
12731 (btpy_object, btpy_insn_type, btpy_new): Remove.
12732 (btpy_list_object): Use gdb.RecordInstruction type instead of
12733 gdb.BtraceInstruction type.
12734 (btrace_insn_from_recpy_insn): New function.
12735 (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of
12736 btpy_new.
12737 (btpy_call_new, btpy_list_item): Do not use btpy_new anymore.
12738 (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol,
12739 btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling,
12740 btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object
12741 instead of btpy_object.
12742 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
12743 btpy_insn_data, btpy_insn_decode): Rename to ...
12744 (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size,
12745 recpy_bt_insn_is_speculative, recpy_bt_insn_data,
12746 recpy_bt_insn_decode): This. Also, use new helper functions.
12747 (btpy_list_position, recpy_bt_goto): Use recpy_element_object and
12748 recpy_insn_type.
12749 (btpy_insn_getset): Remove.
12750 (gdbpy_initialize_btrace): Remove code to initialize
12751 gdb.BtraceInstruction. Use recpy_element_object.
12752 * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal,
12753 recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded,
12754 recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export.
12755 * python/py-record.c (recpy_insn_type): New static object.
12756 (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data,
12757 recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative,
12758 recpy_element_number, recpy_element_hash, recpy_element_richcompare):
12759 New function.
12760 (recpy_insn_getset): New static object.
12761 (gdbpy_initialize_record): Initialize gdb.RecordInstruction.
12762 * python/py-record.h (recpy_element_object): New typedef.
12763 (recpy_insn_type, recpy_insn_new): New export.
12764
913aeadd
TW
127652017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
12766
12767 * py-record-btrace.c (btpy_insn_new): Removed.
12768 (btpy_insn_or_gap_new): New function.
12769 (btpy_insn_error): Removed.
12770 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
12771 btpy_insn_data, btpy_insn_decode): Remove code path for gaps.
12772 (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call
12773 btpy_insn_or_gap_new instead of btpy_insn_new.
12774 (btpy_insn_getset): Remove btpy_insn_error.
12775 * py-record.c (recpy_gap_type): New static object.
12776 (recpy_gap_object): New typedef.
12777 (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code,
12778 recpy_gap_reason_string): New function.
12779 (recpy_gap_getset): New static object.
12780 (gdbpy_initialize_record): Initialize gdb.RecordGap type.
12781 * py-record.h (recpy_gap_new): New export.
12782
a3be24ad
TW
127832017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
12784
12785 * python/py-record.c (recpy_ptid): Remove.
12786 (recpy_record_getset): Remove recpy_ptid.
12787
ae20e79a
TW
127882017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
12789
12790 * btrace.c (btrace_fetch): Set inferior_ptid.
12791 * python/py-record-btrace.c: Add "py-record.h" include.
12792 (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin,
12793 recpy_bt_end, recpy_bt_instruction_history,
12794 recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored
12795 in gdb.Record object instead of current ptid.
12796 * python/py-record.c: Include new "py-record.h" file.
12797 (recpy_record_object): Moved to py-record.h.
12798 * python/py-record.h: New file.
12799
8d0050ea
TW
128002017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
12801
12802 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
12803 BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
12804 indentation.
12805
3f380b50
JB
128062017-05-01 Joel Brobecker <brobecker@adacore.com>
12807
12808 * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to
12809 the past maintainers section.
12810
07495424
YQ
128112017-04-28 Yao Qi <yao.qi@linaro.org>
12812
12813 * infcmd.c (get_return_value): Use regcache ctor, and remove
12814 cleanup.
12815
deb1fa3e
YQ
128162017-04-28 Yao Qi <yao.qi@linaro.org>
12817 Pedro Alves <palves@redhat.com>
12818
12819 * regcache.c (regcache::regcache): New tag dispatch ctor.
12820 (do_cooked_read): Moved above.
12821 (regcache_dup): Use the tag dispatch ctor..
12822 * regcache.h (regcache): Declare ctor, delete copy ctor and
12823 assignment operator, remove friend regcache_dup.
12824
b421c83c
YQ
128252017-04-28 Yao Qi <yao.qi@linaro.org>
12826
12827 * regcache.c (regcache_dup): Assert !src->m_readonly_p and
12828 call method save instead of regcache_cpy.
12829 * regcache.h (struct regcache): Make regcache_dup a friend.
12830
ef79d9a3
YQ
128312017-04-28 Yao Qi <yao.qi@linaro.org>
12832
12833 * regcache.c (struct regcache): Move to regcache.h
12834 (regcache::arch): New method.
12835 (regcache_get_ptid): Update.
12836 (get_regcache_arch): Call arch method.
12837 (get_regcache_aspace): Call method aspace.
12838 (register_buffer): Change it to method.
12839 (regcache_save): Change it to regcache::save.
12840 (regcache_restore): Likewise.
12841 (regcache_cpy_no_passthrough): Remove the declaration.
12842 (regcache_cpy): Call methods restore and cpy_no_passthrough.
12843 (regcache_cpy_no_passthrough): Change it to method
12844 cpy_no_passthrough.
12845 (regcache_register_status): Change it to method
12846 get_register_status.
12847 (regcache_invalidate): Change it to method invalidate.
12848 (regcache_thread_ptid_changed): Use methods ptid and set_ptid.
12849 (regcache_raw_update): Change it to method raw_update.
12850 (regcache_raw_read): Likewise.
12851 (regcache_raw_read_signed): Likewise.
12852 (regcache_raw_read_unsigned): Likewise.
12853 (regcache_raw_write_signed): Likewise.
12854 (regcache_raw_write_unsigned): Likewise.
12855 (regcache_cooked_read): Likewise.
12856 (regcache_cooked_read_value): Likewise.
12857 (regcache_cooked_read_signed): Likewise.
12858 (regcache_cooked_read_unsigned): Likewise.
12859 (regcache_cooked_write_signed): Likewise.
12860 (regcache_cooked_write_unsigned): Likewise.
12861 (regcache_raw_set_cached_value): Likewise.
12862 (regcache_raw_write): Likewise.
12863 (regcache_cooked_write): Likewise.
12864 (regcache_xfer_part): Likewise.
12865 (regcache_raw_read_part): Likewise.
12866 (regcache_raw_write_part): Likewise.
12867 (regcache_cooked_read_part): Likewise.
12868 (regcache_cooked_write_part): Likewise.
12869 (regcache_raw_supply): Likewise.
12870 (regcache_raw_collect): Likewise.
12871 (regcache_transfer_regset): Likewise.
12872 (regcache_supply_regset): Likewise.
12873 (regcache_collect_regset): Likewise.
12874 (regcache_debug_print_register): Likewise.
12875 (enum regcache_dump_what): Move it to regcache.h.
12876 (regcache_dump): Change it to method dump.
12877 * regcache.h (enum regcache_dump_what): New.
12878 (class regcache): New.
12879 * target.c (target_fetch_registers): Call method
12880 debug_print_register.
12881 (target_store_registers): Likewise.
12882
f8fdb78e
SM
128832017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12884
12885 * windows-nat.c (struct lm_info_windows): Initialize field.
12886 (windows_make_so): Allocate lm_info_windows with new.
12887 (windows_free_so): Free lm_info_windows with delete.
12888
9ccbfd7b
SM
128892017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12890
12891 * solib-darwin.c (struct lm_info_darwin): Initialize field.
12892 (darwin_current_sos): Allocate lm_info_darwin with new, remove
12893 cleanup.
12894 (darwin_free_so): Free lm_info_darwin with delete.
12895
76e75227
SM
128962017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12897
12898 * solib-svr4.h (struct lm_info_svr4): Initialize fields.
12899 <l_addr_p>: Change type to bool.
12900 * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
12901 (svr4_free_so): Free lm_info_svr4 with delete.
12902 (svr4_copy_library_list): Replace memcpy with call to copy
12903 constructor.
12904 (library_list_start_library, svr4_default_sos): Allocate
12905 lm_info_svr4 with new.
12906
51046d9e
SM
129072017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12908
12909 * solib-target.c (struct lm_info_target): Add destructor,
12910 initialize fields.
12911 <name>: Change type to std::string.
12912 (library_list_start_library): Allocate lm_info_target with new.
12913 (solib_target_free_library_list): Free lm_info_target with
12914 delete.
12915 (solib_target_current_sos): Adapt to std::string.
12916 (solib_target_free_so): Free lm_info_target with delete.
12917
4023ae76
SM
129182017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12919
12920 * solib-frv.c (struct lm_info_frv): Add destructor, initialize
12921 fields.
12922 (frv_current_sos): Allocate lm_info_frv with new.
12923 (frv_relocate_main_executable): Free lm_info_frv with delete,
12924 allocate with new.
12925 (frv_clear_solib, frv_free_so): Free lm_info_frv with delete.
12926
af43057b
SM
129272017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12928
12929 * solib-frv.c (struct lm_info_frv): Fix indentation.
12930
b0911207
SM
129312017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12932
12933 * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
12934 map field.
12935 (dsbt_current_sos): Allocate lm_info_dsbt with new.
12936 (dsbt_relocate_main_executable): Free lm_info_dsbt with delete
12937 and allocate with new.
12938 (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
12939
6c401f72
SM
129402017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12941
12942 * solib-aix.c (struct lm_info_aix): Initialize fields in-class.
12943 <filename, member_name>: Change type to std::string.
12944 (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
12945 (library_list_start_library): Allocate lm_info_aix with new.
12946 (solib_aix_free_library_list, solib_aix_free_so): Free with delete.
12947 (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
12948 with copy constructor.
12949
d0e449a1
SM
129502017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12951
12952 * solist.h (struct lm_info): Remove.
12953 (struct lm_info_base): New class.
12954 (struct so_list) <lm_info>: Change type to lm_info_base *.
12955 * nto-tdep.c (struct lm_info): Remove.
12956 (lm_addr): Adjust.
12957 * solib-aix.c (struct lm_info): Rename to ...
12958 (struct lm_info_aix): ... this. Extend lm_info_base.
12959 (lm_info_p): Rename to ...
12960 (lm_info_aix_p): ... this, and adjust.
12961 (solib_aix_new_lm_info, solib_aix_xfree_lm_info,
12962 solib_aix_parse_libraries, library_list_start_library,
12963 solib_aix_free_library_list, solib_aix_parse_libraries,
12964 solib_aix_get_library_list,
12965 solib_aix_relocate_section_addresses, solib_aix_free_so,
12966 solib_aix_get_section_offsets,
12967 solib_aix_solib_create_inferior_hook, solib_aix_current_sos):
12968 Adjust.
12969 (struct solib_aix_inferior_data) <library_list>: Adjust.
12970 * solib-darwin.c (struct lm_info): Rename to ...
12971 (struct lm_info_darwin): ... this. Extend lm_info_base.
12972 (darwin_current_sos, darwin_relocate_section_addresses): Adjust.
12973 * solib-dsbt.c (struct lm_info): Rename to ...
12974 (struct lm_info_dsbt): ... this. Extend lm_info_base.
12975 (struct dsbt_info) <main_executable_lm_info): Adjust.
12976 (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so,
12977 dsbt_relocate_section_addresses): Adjust.
12978 * solib-frv.c (struct lm_info): Rename to ...
12979 (struct lm_info_frv): ... this. Extend lm_info_base.
12980 (main_executable_lm_info): Adjust.
12981 (frv_current_sos, frv_relocate_main_executable, frv_free_so,
12982 frv_relocate_section_addresses, frv_fdpic_find_global_pointer,
12983 find_canonical_descriptor_in_load_object,
12984 frv_fdpic_find_canonical_descriptor): Adjust.
12985 * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed
12986 to lm_info_svr4.
12987 (lm_info_read, lm_addr_check, svr4_keep_data_in_core,
12988 svr4_clear_so, svr4_copy_library_list,
12989 library_list_start_library, svr4_default_sos, svr4_read_so_list,
12990 svr4_current_sos, svr4_fetch_objfile_link_map,
12991 solist_update_incremental): Adjust.
12992 * solib-svr4.h (struct lm_info_svr4): Move here from
12993 solib-svr4.c.
12994 * solib-target.c (struct lm_info): Rename to ...
12995 (struct lm_info_target): ... this. Extend lm_info_base.
12996 (lm_info_p): Rename to ...
12997 (lm_info_target_p): ... this.
12998 (solib_target_parse_libraries, library_list_start_segment,
12999 library_list_start_section, library_list_start_library,
13000 library_list_end_library, solib_target_free_library_list,
13001 solib_target_current_sos, solib_target_free_so,
13002 solib_target_relocate_section_addresses): Adjust.
13003 * windows-nat.c (struct lm_info): Rename to ...
13004 (struct lm_info_windows): ... this. Extend lm_info_base.
13005 (windows_make_so, handle_load_dll, handle_unload_dll,
13006 windows_xfer_shared_libraries): Adjust.
13007
434a4023
SM
130082017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13009
13010 * solib-darwin.c (struct darwin_so_list): Remove.
13011 (darwin_current_sos): Allocate an so_list object instead of a
13012 darwin_so_list, separately allocate an lm_info object.
13013 (darwin_free_so): Free lm_info.
13014
428544e8
JB
130152017-04-28 John Baldwin <jhb@FreeBSD.org>
13016
13017 * mips-tdep.c (print_gp_register_row): Replace printf_filtered
13018 with fprintf_filtered.
13019
4621115f
YQ
130202017-04-28 Yao Qi <yao.qi@linaro.org>
13021
13022 * regcache.c (regcache::regcache): New function.
13023 (regcache::~regcache): New function.
13024 (regcache_xmalloc_1): Remove.
13025 (regcache_xmalloc): Call new regcache.
13026 (regcache_xfree): Call delete regcache.
13027 (get_thread_arch_aspace_regcache): Call new regcache.
13028
339053c2
YQ
130292017-04-28 Yao Qi <yao.qi@linaro.org>
13030
13031 * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
13032 lwp instead of ptid_get_lwp.
13033
7974a605
YQ
130342017-04-28 Yao Qi <yao.qi@linaro.org>
13035
13036 * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
13037 lwp_info instead of getting from inferior_ptid.
13038
e15c3eb4
KS
130392017-04-27 Keith Seitz <keiths@redhat.com>
13040
13041 * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS)
13042 DIFFERENT_REFERENCE_TYPE_BADNESS): Remove.
13043 (CV_CONVERSION_BADNESS): Define.
13044 (rank_one_type): Remove overly restrictive rvalue reference
13045 rank checks.
13046 Add cv-qualifier checks and subranks for type equality.
13047 * gdbtypes.h (REFERENCE_CONVERSION_RVALUE,
13048 REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS,
13049 CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare.
13050
72bc1d24
SM
130512017-04-27 Simon Marchi <simon.marchi@ericsson.com>
13052
13053 * python/py-inferior.c (inferior_to_inferior_object): Increment reference
13054 count when creating the object.
13055
55bcecda
UW
130562017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
13057 Ulrich Weigand <uweigand@de.ibm.com>
13058
13059 * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
13060 entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
13061 is used in AIX.
13062 (read_xcoff_symtab): Handle C_WEAKEXT storage class.
13063 (process_xcoff_symbol): Likewise.
13064 (scan_xcoff_symtab): Likewise.
13065
5c99fcf8
AH
130662017-04-26 Alan Hayward <alan.hayward@arm.com>
13067
13068 * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned.
13069 (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer.
13070 (ia64_access_reg): Use get_frame_register_unsigned.
13071 (ia64_access_rse_reg): Likewise.
13072 (ia64_libunwind_frame_prev_register): Likewise.
13073
b41c5a85
JW
130742017-04-26 Jiong Wang <jiong.wang@arm.com>
13075
13076 * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op.
13077 * gdbarch.c: Regenerated.
13078 * gdbarch.h: Regenerated.
13079 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the
13080 visibility external.
13081 (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI
13082 between DW_CFA_lo_user and DW_CFA_high_user inclusive.
13083 (enum cfa_how_kind): Move to ...
13084 (struct dwarf2_frame_state_reg_info): Likewise.
13085 (struct dwarf2_frame_state): Likewise.
13086 * dwarf2-frame.h: ... here.
13087 (dwarf2_frame_state_alloc_regs): New declaration.
13088 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function.
13089 (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook.
13090
c185f580
AH
130912017-04-26 Alan Hayward <alan.hayward@arm.com>
13092
13093 * xtensa-tdep.c (xtensa_pseudo_register_read): Use
13094 regcache_raw_read_unsigned.
13095 (xtensa_pseudo_register_write): Likewise.
13096
19c45594
AH
130972017-04-26 Alan Hayward <alan.hayward@arm.com>
13098
13099 * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors.
13100 (nds32_pseudo_register_write): Likewise.
13101
4658f12e
YQ
131022017-04-25 Yao Qi <yao.qi@linaro.org>
13103
13104 * regcache.c (struct regcache) <readonly_p>: Change its type
13105 to bool.
13106 (regcache_xmalloc_1): Update parameter type and callers update.
13107
d581dda8
YQ
131082017-04-25 Yao Qi <yao.qi@linaro.org>
13109
13110 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
13111 set_gdbarch_wchar_bit.
13112 * arm-tdep.c (arm_gdbarch_init): Likewise.
13113
debed3db
PA
131142017-04-25 Pedro Alves <palves@redhat.com>
13115
13116 * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
13117 (BothAreRelocatable, memcopy, memmove): Don't define.
13118 * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
13119 macros.
13120
b0b92aeb
PA
131212017-04-25 Pedro Alves <palves@redhat.com>
13122
13123 * common/common-defs.h: Include "common/poison.h".
13124 * common/function-view.h: (Not, Or, Requires): Move to traits.h
13125 and adjust.
13126 * common/poison.h: New file.
13127 * common/traits.h: Include <type_traits>.
13128 (Not, Or, Requires): New, moved from common/function-view.h.
13129
16c4d54a
PA
131302017-04-25 Pedro Alves <palves@redhat.com>
13131
13132 * breakpoint.h (struct breakpoint): In-class initialize all
13133 fields. Make boolean fields "bool".
13134 * breakpoint.c (init_raw_breakpoint_without_location): Remove
13135 memset call and initializations no longer necessary.
13136
b5c36682
PA
131372017-04-25 Pedro Alves <palves@redhat.com>
13138
13139 * btrace.c (pt_btrace_insn_flags): Change parameter type to
13140 reference.
13141 (pt_btrace_insn): New function.
13142 (ftrace_add_pt): Remove memset call and use pt_btrace_insn.
13143
5625a286
PA
131442017-04-25 Pedro Alves <palves@redhat.com>
13145
13146 * ada-lang.c (ada_catchpoint_location): Now a "class". Remove
13147 "base" field and inherit from "bp_location" instead. Add
13148 non-default ctor.
13149 (allocate_location_exception): Use new non-default ctor.
13150 * breakpoint.c (get_first_locp_gte_addr): Remove memset call.
13151 (init_bp_location): Convert to ...
13152 (bp_location::bp_location): ... this new ctor, and remove memset
13153 call.
13154 (base_breakpoint_allocate_location): Use the new non-default ctor.
13155 * breakpoint.h (bp_location): Now a class. Declare default and
13156 non-default ctors. In-class initialize all members.
13157 (init_bp_location): Remove declaration.
13158
23bcc18f
PA
131592017-04-25 Pedro Alves <palves@redhat.com>
13160
13161 * common/enum-flags.h (enum_flags): Don't implement copy ctor and
13162 assignment operator.
13163
e1ba3053
YQ
131642017-04-24 Yao Qi <yao.qi@linaro.org>
13165
13166 * doublest.c (convert_doublest_to_floatformat): Call
13167 floatformat_totalsize_bytes.
13168
10f489e5
TT
131692017-04-22 Tom Tromey <tom@tromey.com>
13170
13171 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
13172 ui_out_emit_list.
13173 * stack.c (print_frame): Use ui_out_emit_list.
13174 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
13175 ui_out_emit_list.
13176 * mi/mi-main.c (print_one_inferior)
13177 (mi_cmd_data_list_register_names)
13178 (mi_cmd_data_list_register_values, mi_cmd_list_features)
13179 (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use
13180 ui_out_emit_list.
13181 * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list.
13182 (mi_output_solib_attribs): Use ui_out_emit_list,
13183 ui_out_emit_tuple.
13184 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list.
13185 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
13186 (mi_cmd_stack_list_args, list_args_or_locals): Use
13187 ui_out_emit_list.
13188 * disasm.c (do_assembly_only): Use ui_out_emit_list.
13189 * breakpoint.c (print_solib_event, output_thread_groups): Use
13190 ui_out_emit_list.
13191
0092b74d
TT
131922017-04-22 Tom Tromey <tom@tromey.com>
13193
13194 * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple.
13195 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple.
13196 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple.
13197
a14a62dd
TT
131982017-04-22 Tom Tromey <tom@tromey.com>
13199
13200 * tracepoint.c (tvariables_info_1)
13201 (print_one_static_tracepoint_marker): Use ui_out_emit_tuple.
13202
46b9c129
TT
132032017-04-22 Tom Tromey <tom@tromey.com>
13204
13205 * stack.c (print_frame_arg): Use ui_out_emit_tuple,
13206 annotate_arg_emitter.
13207 * breakpoint.c (print_mention_watchpoint)
13208 (print_mention_masked_watchpoint): Use ui_out_emit_tuple.
13209 * annotate.h (struct annotate_arg_emitter): New.
13210
2e783024
TT
132112017-04-22 Tom Tromey <tom@tromey.com>
13212
13213 * record-btrace.c (record_btrace_insn_history)
13214 (record_btrace_insn_history_range, record_btrace_call_history)
13215 (record_btrace_call_history_range): Use ui_out_emit_tuple.
13216 * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use
13217 ui_out_emit_tuple.
13218 * stack.c (print_frame_info): Use ui_out_emit_tuple.
13219 * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple.
13220 * skip.c (skip_info): Use ui_out_emit_tuple.
13221 * remote.c (show_remote_cmd): Use ui_out_emit_tuple.
13222 * progspace.c (print_program_space): Use ui_out_emit_tuple.
13223 * probe.c (info_probes_for_ops): Use ui_out_emit_tuple.
13224 * osdata.c (info_osdata): Use ui_out_emit_tuple.
13225 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
13226 ui_out_emit_tuple.
13227 * mi/mi-main.c (print_one_inferior, list_available_thread_groups)
13228 (output_register, mi_cmd_data_read_memory)
13229 (mi_cmd_data_read_memory_bytes, mi_load_progress)
13230 (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple.
13231 * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one):
13232 Use ui_out_emit_tuple.
13233 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use
13234 ui_out_emit_tuple.
13235 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
13236 (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple.
13237 * linux-thread-db.c (info_auto_load_libthread_db): Use
13238 ui_out_emit_tuple.
13239 * inferior.c (print_inferior): Use ui_out_emit_tuple.
13240 * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple.
13241 * disasm.c (do_mixed_source_and_assembly_deprecated)
13242 (do_mixed_source_and_assembly): Use ui_out_emit_tuple.
13243 * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple.
13244 * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple.
13245 * breakpoint.c (print_one_breakpoint_location)
13246 (print_one_breakpoint): Use ui_out_emit_tuple.
13247 * auto-load.c (print_script, info_auto_load_cmd): Use
13248 ui_out_emit_tuple.
13249 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple.
13250
9be21bb4
SM
132512017-04-21 Simon Marchi <simon.marchi@ericsson.com>
13252
13253 * thread.c (print_thread_info_1): Remove dead code.
13254
0d4c07af
JK
132552017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
13256
13257 * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
13258 GDB_SELF_TEST.
13259 * arm-tdep.c (selftests::arm_record_test): Likewise.
13260
4daf993d
YQ
132612017-04-21 Yao Qi <yao.qi@linaro.org>
13262
13263 * regcache.c (regcache_restore): Remove argument 2. Replace
13264 argument 3 with regcache. Get register status from
13265 src->register_status and get register contents from
13266 register_buffer (src, regnum).
13267 (regcache_cpy): Update.
13268
a6c21d4a
PA
132692017-04-19 Pedro Alves <palves@redhat.com>
13270
13271 * gdbthread.h (thread): Add missing closing parenthesis in
13272 comment.
13273
3a3fd0fd
PA
132742017-04-19 Pedro Alves <palves@redhat.com>
13275
13276 * common/refcounted-object.h: New file.
13277 * gdbthread.h: Include "common/refcounted-object.h".
13278 (thread_info): Inherit from refcounted_object and add comments.
13279 (thread_info::incref, thread_info::decref)
13280 (thread_info::m_refcount): Delete.
13281 (thread_info::deletable): Use the refcounted_object::refcount()
13282 method.
13283 * inferior.c (current_inferior_): Add comment.
13284 (set_current_inferior): Increment/decrement refcounts.
13285 (prune_inferiors, remove_inferior_command): Skip inferiors marked
13286 not-deletable instead of comparing with the current inferior.
13287 (initialize_inferiors): Increment the initial inferior's refcount.
13288 * inferior.h (struct inferior): Forward declare.
13289 Include "common/refcounted-object.h".
13290 (current_inferior, set_current_inferior): Move declaration to
13291 before struct inferior's definition, and fix comment.
13292 (inferior): Inherit from refcounted_object. Add comments.
13293 * thread.c (switch_to_thread_no_regs): Reference the thread's
13294 inferior pointer directly instead of doing a ptid lookup.
13295 (switch_to_no_thread): New function.
13296 (switch_to_thread(thread_info *)): New function, factored out
13297 from ...
13298 (switch_to_thread(ptid_t)): ... this.
13299 (restore_current_thread): Delete.
13300 (current_thread_cleanup): Remove 'inf_id' and 'was_removable'
13301 fields, and add 'inf' field.
13302 (do_restore_current_thread_cleanup): Check whether old->inf is
13303 alive instead of looking up an inferior by ptid. Use
13304 switch_to_thread and switch_to_no_thread.
13305 (restore_current_thread_cleanup_dtor): Use old->inf directly
13306 instead of lookup up an inferior by id. Decref the inferior.
13307 Don't restore 'removable'.
13308 (make_cleanup_restore_current_thread): Same the inferior pointer
13309 in old, instead of the inferior number. Incref the inferior.
13310 Don't save/clear 'removable'.
13311
9bcb1f16
PA
133122017-04-19 Pedro Alves <palves@redhat.com>
13313
13314 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13315 unittests/scoped_restore-selftests.c.
13316 (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o.
13317 * common/scoped_restore.h (scoped_restore_base): Make "class".
13318 (scoped_restore_base::release): New public method.
13319 (scoped_restore_base::scoped_restore_base): New protected ctor.
13320 (scoped_restore_base::m_saved_var): New protected field.
13321 (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the
13322 scoped_restore_base base class instead of m_saved_var directly.
13323 (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise.
13324 (scoped_restore_tmpl::scoped_restore_tmpl(const
13325 scoped_restore_tmpl<T>&)): Likewise.
13326 (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var
13327 method.
13328 (scoped_restore_tmpl::saved_var): New method.
13329 (scoped_restore_tmpl::m_saved_var): Delete.
13330 * inferior.h (inferior::detaching): Now a bool.
13331 * infrun.c (prepare_for_detach): Use a scoped_restore instead of a
13332 cleanup.
13333 * unittests/scoped_restore-selftests.c: New file.
13334
26fcd539
PA
133352017-04-19 Pedro Alves <palves@redhat.com>
13336
13337 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS):
13338 Re-sort in alphabetic order.
13339
fdd243b0
PA
133402017-04-18 Pedro Alves <palves@redhat.com>
13341
13342 * xml-support.c (obstack_xml_printf): Delete.
13343 * xml-support.h (obstack_xml_printf): Delete.
13344
4895cde2
PA
133452017-04-18 Pedro Alves <palves@redhat.com>
13346
13347 * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse,
13348 vdebug, verror, body_text, start_element, end_element, name,
13349 user_data, set_is_xinclude, set_error, expat_parser>: New methods.
13350 <name, user_data, expat_parser, scopes, error, last_line, dtd_name,
13351 is_xinclude>: Make private and add m_ prefix.
13352 (gdb_xml_parser::body_text): New method, based on ...
13353 (gdb_xml_body_text): ... this. Adjust.
13354 (gdb_xml_parser::vdebug): New method, based on ...
13355 (gdb_xml_debug): ... this. Adjust.
13356 (gdb_xml_parser::verror): New method, based on ...
13357 (gdb_xml_error): ... this. Adjust.
13358 (gdb_xml_parser::start_element): New method, based on ...
13359 (gdb_xml_start_element): ... this. Adjust.
13360 (gdb_xml_start_element_wrapper): Defer to
13361 gdb_xml_parser::start_element and gdb_xml_parser::set_error.
13362 (gdb_xml_parser::end_element): New method, based on ...
13363 (gdb_xml_end_element_wrapper): ... this. Adjust.
13364 (gdb_xml_parser::~gdb_xml_parser): Adjust.
13365 (gdb_xml_parser::gdb_xml_parser): Adjust to field renames.
13366 (gdb_xml_parser::use_dtd): New method, based on ...
13367 (gdb_xml_use_dtd): ... this. Adjust.
13368 (gdb_xml_parser::parse): New method, based on ...
13369 (gdb_xml_parse): ... this. Adjust.
13370 (gdb_xml_parse_quick): Adjust to call the parser's parse method.
13371 (xinclude_start_include): Adjust to call the parser's name method.
13372 (xml_xinclude_default, xml_xinclude_start_doctype)
13373 (xml_xinclude_end_doctype): Adjust to call the parser's user_data
13374 method.
13375 (xml_process_xincludes): Adjust to call parser methods.
13376 * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete
13377 declarations.
13378
bd8a901f
PA
133792017-04-18 Pedro Alves <palves@redhat.com>
13380
13381 * tracefile-tfile.c (tfile_write_tdesc): Adjust to use
13382 gdb::optional<std::string>.
13383 * xml-support.c: Include <string>.
13384 (scope_level::scope_level(scope_level &&))
13385 (scope_level::~scope_level): Delete.
13386 (scope_level::body): Now a std::string.
13387 (gdb_xml_body_text, gdb_xml_end_element): Adjust.
13388 (xinclude_parsing_data::xinclude_parsing_data): Add 'output'
13389 parameter.
13390 (xinclude_parsing_data::~xinclude_parsing_data): Delete.
13391 (xinclude_parsing_data::output): Now a std::string reference.
13392 (xinclude_start_include): Adjust.
13393 (xml_xinclude_default): Adjust.
13394 (xml_process_xincludes): Add 'output' parameter, and return bool.
13395 * xml-support.h (xml_process_xincludes): Add 'output' parameter,
13396 and return bool.
13397 * xml-tdesc.c: Include <unordered_map> and <string>.
13398 (tdesc_xml_cache): Delete.
13399 (tdesc_xml_cache_s): Delete.
13400 (xml_cache): Now an std::unordered_map.
13401 (tdesc_parse_xml): Adjust to use std::string and unordered_map.
13402 (target_fetch_description_xml): Change return type to
13403 gdb::optional<std::string>, and adjust.
13404 * xml-tdesc.h: Include "common/gdb_optional.h" and <string>.
13405 (target_fetch_description_xml): Change return type to
13406 gdb::optional<std::string>.
13407
d35d1958
PA
134082017-04-18 Pedro Alves <palves@redhat.com>
13409
13410 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13411 unittests/optional-selftests.c.
13412 (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o.
13413 * unittests/optional-selftests.c: New file.
13414 * unittests/optional/assignment/1.cc: New file.
13415 * unittests/optional/assignment/2.cc: New file.
13416 * unittests/optional/assignment/3.cc: New file.
13417 * unittests/optional/assignment/4.cc: New file.
13418 * unittests/optional/assignment/5.cc: New file.
13419 * unittests/optional/assignment/6.cc: New file.
13420 * unittests/optional/assignment/7.cc: New file.
13421 * unittests/optional/cons/copy.cc: New file.
13422 * unittests/optional/cons/default.cc: New file.
13423 * unittests/optional/cons/move.cc: New file.
13424 * unittests/optional/cons/value.cc: New file.
13425 * unittests/optional/in_place.cc: New file.
13426 * unittests/optional/observers/1.cc: New file.
13427 * unittests/optional/observers/2.cc: New file.
13428
22796e97
PA
134292017-04-18 Pedro Alves <palves@redhat.com>
13430
13431 * common/gdb_optional.h: Include common/traits.h.
13432 (in_place_t): New type.
13433 (in_place): New constexpr variable.
13434 (optional::optional): Remove member initialization of
13435 m_instantiated.
13436 (optional::optional(in_place_t...)): New constructor.
13437 (optional::~optional): Use reset.
13438 (optional::optional(const optional&)): New.
13439 (optional::optional(const optional&&)): New.
13440 (optional::optional(T &)): New.
13441 (optional::optional(T &&)): New.
13442 (operator::operator=(const optional &)): New.
13443 (operator::operator=(optional &&)): New.
13444 (operator::operator= (const T &))
13445 (operator::operator= (T &&))
13446 (operator::emplace (Args &&... args)): Return a T&. Use reset.
13447 (operator::reset): New.
13448 (operator::m_instantiated):: Add in-class initializer.
13449 * common/traits.h: Include <type_traits>.
13450 (struct And): New types.
13451
a7fc9b61
PA
134522017-04-18 Pedro Alves <palves@redhat.com>
13453
13454 * xml-support.c: Include <vector>.
13455 (scope_level::scope_level(const gdb_xml_element *))
13456 (scope_level::scope_level(scope_level&&)): New.
13457 (scope_level::~scope_level): New.
13458 (scope_level_s): Delete.
13459 (gdb_xml_parser::scopes): Now a std::vector.
13460 (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
13461 Use std::vector.
13462 (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
13463 scope cleanup code.
13464 (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
13465 of the scopes member. Use std::vector::emplace_back.
13466
010151c9
PA
134672017-04-18 Pedro Alves <palves@redhat.com>
13468
13469 * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude
13470 a bool.
13471 (gdb_xml_end_element): Change type of first parameter.
13472 (gdb_xml_cleanup): Rename to ...
13473 (gdb_xml_parser::~gdb_xml_parser): ... this.
13474 (gdb_xml_create_parser_and_cleanup): Delete with ...
13475 (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
13476 to this new ctor.
13477 (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
13478 using gdb_xml_create_parser_and_cleanup.
13479 (xinclude_parsing_data): Add ctor/dtor.
13480 (xml_xinclude_cleanup): Delete.
13481 (xml_process_xincludes): Create a local xinclude_parsing_data
13482 instead of heap-allocating one. Create a local gdb_xml_parser
13483 instead of heap-allocating one with
13484 gdb_xml_create_parser_and_cleanup.
13485
d56060f0
JB
134862017-04-18 John Baldwin <jhb@FreeBSD.org>
13487
13488 PR threads/20743
13489 * fbsd-nat.c (resume_one_thread_cb): Remove.
13490 (resume_all_threads_cb): Remove.
13491 (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
13492 iterate_over_threads.
13493
305d16a9
JB
134942017-04-17 Joel Brobecker <brobecker@adacore.com>
13495
13496 * NEWS: Create a new section for the next release branch.
13497 Rename the section of the current branch, now that it has
13498 been cut.
13499
8bb57231
JB
135002017-04-17 Joel Brobecker <brobecker@adacore.com>
13501
13502 GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
13503 * version.in: Bump version to 8.0.50.DATE-git.
13504
096c92dd
SDJ
135052017-04-13 Sergio Durigan Junior <sergiodj@redhat.com>
13506
13507 PR gdb/21385
13508 * windows-nat.c (windows_create_inferior): Declare 'allargs'
13509 independently of the host, and fix build breakage on Cygwin.
13510
0550c955
PA
135112017-04-13 Pedro Alves <palves@redhat.com>
13512
13513 * inferior.c (free_inferior): Convert to ...
13514 (inferior::~inferior): ... this dtor.
13515 (inferior::inferior): New ctor, factored out from ...
13516 (add_inferior_silent): ... here. Allocate the inferior with a new
13517 expression.
13518 (delete_inferior): Call delete instead of free_inferior.
13519 * inferior.h (gdb_environ, continuation): Forward declare.
13520 (inferior): Now a class. Add in-class initialization to all
13521 members. Make boolean fields bool, except 'detaching'.
13522 (inferior::inferior): New explicit ctor.
13523 (inferior::~inferior): New.
13524
e3d60dfc
PA
135252017-04-13 Pedro Alves <palves@redhat.com>
13526
13527 * inferior.c (init_inferior_list): Delete.
13528 * inferior.h (init_inferior_list): Delete.
13529
5fd69d0a
PA
135302017-04-13 Pedro Alves <palves@redhat.com>
13531
13532 PR threads/13217
13533 * gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
13534 (top level): Call it twice, with different thread sets.
13535
c6609450
PA
135362017-04-13 Pedro Alves <palves@redhat.com>
13537
13538 * thread.c: Include <algorithm>.
13539 (thread_array_cleanup): Delete.
13540 (scoped_inc_dec_ref): New class.
13541 (live_threads_count): New function.
13542 (set_thread_refcount): Delete.
13543 (tp_array_compar_ascending): Now a bool.
13544 (tp_array_compar): Convert to a std::sort comparison function.
13545 (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
13546 and live_threads_count.
13547
2a00d7ce
PA
135482017-04-13 Pedro Alves <palves@redhat.com>
13549
13550 * infrun.c (follow_fork_inferior): Also switch the current
13551 inferior.
13552
441d7c93
PA
135532017-04-13 Pedro Alves <palves@redhat.com>
13554
13555 * breakpoint.c (watch_command_1): Save watchpoint-frame info
13556 before calling create_internal_breakpoint.
13557
808480f6
PA
135582017-04-13 Pedro Alves <palves@redhat.com>
13559
13560 * fork-child.c (execv_argv): New class.
13561 (breakup_args): Refactored as ...
13562 (execv_argv::init_for_no_shell): .. this method of execv_argv.
13563 Copy arguments to storage and replace separators with NULL
13564 terminators in place.
13565 (escape_bang_in_quoted_argument): Adjust to return bool.
13566 (execv_argv::execv_argv): New ctor.
13567 (execv_argv::init_for_shell): New method, factored out from
13568 fork_inferior. Don't strdup strings into the vector.
13569 (fork_inferior): Eliminate "shell" local and use execv_argv. Use
13570 Remove free_vector_argv call.
13571
ad3d022a
YQ
135722017-04-13 Yao Qi <yao.qi@linaro.org>
13573
13574 * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
13575 tdep->rx_psw_type.
13576
e6ddc3bf
YQ
135772017-04-13 Yao Qi <yao.qi@linaro.org>
13578
13579 * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
13580 * rx-tdep.c (rx_gdbarch_init): Likewise.
13581
bfb8cf90
PA
135822017-04-13 Pedro Alves <palves@redhat.com>
13583
13584 * breakpoint.h (struct breakpoint): Reindent.
13585
f5336ca5
PA
135862017-04-13 Pedro Alves <palves@redhat.com>
13587
13588 * breakpoint.c (bp_location): Rename to ...
13589 (bp_locations): ... this. All references updated.
13590 (bp_location_count): Rename to ...
13591 (bp_locations_count): ... this. All references updated.
13592 (bp_location_placed_address_before_address_max): Rename to ...
13593 (bp_locations_placed_address_before_address_max): ... this. All
13594 references updated.
13595 (bp_location_shadow_len_after_address_max): Rename to ...
13596 (bp_locations_shadow_len_after_address_max): ... this. All
13597 references updated.
13598 (bp_location_compare_addrs): Rename to ...
13599 (bp_locations_compare_addrs): ... this. All references updated.
13600 (bp_location_compare):Rename to ...
13601 (bp_locations_compare): ... this. All references updated.
13602 (bp_location_target_extensions_update): Rename to ...
13603 (bp_locations_target_extensions_update): ... this. All references
13604 updated.
13605
be628ab8
SDJ
136062017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
13607
13608 * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
13609 * common/common.m4: Check headers 'termios.h', 'termio.h' and
13610 'sgtty.h'.
13611 * common/gdb_termios.h: New file, with parts of "terminal.h".
13612 * inflow.c: Include "gdb_termios.h".
13613 * ser-unix.c: Include "gdb_termios.h".
13614 * terminal.h: Move terminal-related defines to
13615 "common/gdb_termios.h".
13616
8e9e35b1
TT
136172017-04-12 Tom Tromey <tom@tromey.com>
13618
13619 * probe.c (parse_probes): Update.
13620 * location.h (delete_event_location): Don't declare.
13621 (event_location_deleter::operator()): Update.
13622 * location.c (event_location_deleter::operator()): Rename from
13623 delete_event_location.
13624 * linespec.h (linespec_result) <location>: Change type to
13625 event_location_up.
13626 * linespec.c (canonicalize_linespec, event_location_to_sals)
13627 (decode_objc): Update.
13628 (linespec_result): Don't call delete_event_location.
13629 * breakpoint.c (create_breakpoints_sal)
13630 (bkpt_probe_create_sals_from_location)
13631 (strace_marker_create_sals_from_location): Update.
13632
16e802b9
TT
136332017-04-12 Tom Tromey <tom@tromey.com>
13634
13635 * linespec.h (struct linespec_result): Add constructor and
13636 destructor.
13637 (init_linespec_result, destroy_linespec_result)
13638 (make_cleanup_destroy_linespec_result): Don't declare.
13639 * linespec.c (init_linespec_result): Remove.
13640 (linespec_result::~linespec_result): Rename from
13641 destroy_linespec_result. Update.
13642 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
13643 Remove.
13644 * breakpoint.c (create_breakpoint, break_range_command)
13645 (decode_location_default): Update.
13646 * ax-gdb.c (agent_command_1): Update.
13647
d28cd78a
TT
136482017-04-12 Tom Tromey <tom@tromey.com>
13649
13650 * remote.c (remote_download_tracepoint): Update.
13651 * python/py-breakpoint.c (bppy_get_location): Update.
13652 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
13653 (gdbscm_breakpoint_location): Update.
13654 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
13655 * breakpoint.h (struct breakpoint) <location, location_range_end>:
13656 Change type to event_location_up.
13657 * breakpoint.c (create_overlay_event_breakpoint)
13658 (create_longjmp_master_breakpoint)
13659 (create_std_terminate_master_breakpoint)
13660 (create_exception_master_breakpoint)
13661 (breakpoint_event_location_empty_p, print_breakpoint_location)
13662 (print_one_breakpoint_location, create_thread_event_breakpoint)
13663 (init_breakpoint_sal, create_breakpoint)
13664 (print_recreate_ranged_breakpoint, break_range_command)
13665 (init_ada_exception_breakpoint, say_where): Update.
13666 (base_breakpoint_dtor): Don't call delete_event_location.
13667 (bkpt_print_recreate, tracepoint_print_recreate)
13668 (dprintf_print_recreate, update_static_tracepoint)
13669 (breakpoint_re_set_default): Update.
13670
711799d5
TT
136712017-04-12 Tom Tromey <tom@tromey.com>
13672
13673 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
13674 type of "to_do". Update.
13675 (compute_stack_depth): Use std::vector.
13676
52d214d3
TT
136772017-04-12 Tom Tromey <tom@tromey.com>
13678
13679 * printcmd.c (find_instruction_backward): Use std::vector.
13680
4c404b8b
TT
136812017-04-12 Tom Tromey <tom@tromey.com>
13682
13683 * symfile.c (objfilep): Remove typedef.
13684 (reread_symbols): Use a std::vector.
13685
156d9eab
TT
136862017-04-12 Tom Tromey <tom@tromey.com>
13687
13688 * mi/mi-main.c (exec_direction_forward): Remove.
13689 (exec_reverse_continue, mi_execute_command): Use scoped_restore.
13690 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
13691 scoped_restore.
13692 * guile/guile.c (guile_repl_command, guile_command)
13693 (gdbscm_execute_gdb_command): Use scoped_restore.
13694 * go-exp.y (go_parse): Use scoped_restore.
13695 * d-exp.y (d_parse): Use scoped_restore.
13696 * cli/cli-decode.c (cmd_func): Use scoped_restore.
13697 * c-exp.y (c_parse): Use scoped_restore.
13698
4d89769a
TT
136992017-04-12 Tom Tromey <tom@tromey.com>
13700
13701 * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
13702 (mi_parse): Update return type.
13703 (mi_parse_free): Remove.
13704 * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
13705 (mi_parse::~mi_parse): Rename from mi_parse_free.
13706 (mi_parse_cleanup): Remove.
13707 (mi_parse): Return a unique_ptr. Use new.
13708 * mi/mi-main.c (mi_execute_command): Update.
13709
4b217cc7
TT
137102017-04-12 Tom Tromey <tom@tromey.com>
13711
13712 * location.c (explicit_location_lex_one): Return a
13713 unique_xmalloc_ptr.
13714 (string_to_explicit_location): Update. Remove cleanups.
13715
59d3651b
TT
137162017-04-12 Tom Tromey <tom@tromey.com>
13717
13718 * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
13719 (compare_value_and_voffset): Change type. Update.
13720 (compute_vtable_size): Change type of "offset_vec".
13721 (gnuv3_print_vtable): Use std::vector. Remove cleanups.
13722 (gnuv3_get_typeid): Remove extraneous declaration.
13723
b24b0d6c
TT
137242017-04-12 Tom Tromey <tom@tromey.com>
13725
13726 * charset.h (wchar_iterator): Fix comment.
13727
80a3b8c5
TT
137282017-04-12 Tom Tromey <tom@tromey.com>
13729
13730 * charset.c (iconv_wrapper): New class.
13731 (cleanup_iconv): Remove.
13732 (convert_between_encodings): Use it.
13733
c83dd867
TT
137342017-04-12 Tom Tromey <tom@tromey.com>
13735
13736 * symfile.h (increment_reading_symtab): Update type.
13737 * symfile.c (decrement_reading_symtab): Remove.
13738 (increment_reading_symtab): Return a scoped_restore_tmpl<int>.
13739 * psymtab.c (psymtab_to_symtab): Update.
13740 * dwarf2read.c (dw2_instantiate_symtab): Update.
13741
0e8621a0
TT
137422017-04-12 Tom Tromey <tom@tromey.com>
13743
13744 * jit.c (struct jit_reader): Declare separately. Add constructor
13745 and destructor. Change type of "handle".
13746 (loaded_jit_reader): Define separately.
13747 (jit_reader_load): Update. New "new".
13748 (jit_reader_unload_command): Use "delete".
13749 * gdb-dlfcn.h (struct dlclose_deleter): New.
13750 (gdb_dlhandle_up): New typedef.
13751 (gdb_dlopen, gdb_dlsym): Update types.
13752 (gdb_dlclose): Remove.
13753 * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up.
13754 (gdb_dlsym): Change type of "handle".
13755 (make_cleanup_dlclose): Remove.
13756 (dlclose_deleter::operator()): Rename from gdb_dlclose.
13757 * compile/compile-c-support.c (load_libcc): Update.
13758
67d89901
TT
137592017-04-12 Tom Tromey <tom@tromey.com>
13760
13761 * symtab.h (find_pcs_for_symtab_line): Change return type.
13762 * symtab.c (find_pcs_for_symtab_line): Change return type.
13763 * python/py-linetable.c (build_line_table_tuple_from_pcs): Change
13764 type of "vec". Update.
13765 (ltpy_get_pcs_for_line): Update.
13766 * linespec.c (decode_digits_ordinary): Update.
13767
93921405
TT
137682017-04-12 Tom Tromey <tom@tromey.com>
13769
13770 * tracepoint.c (actions_command): Update.
13771 * python/python.c (python_command, python_interactive_command):
13772 Update.
13773 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
13774 * guile/guile.c (guile_command): Update.
13775 * defs.h (read_command_lines, read_command_lines_1): Return
13776 command_line_up.
13777 (command_lines_deleter): New struct.
13778 (command_line_up): New typedef.
13779 * compile/compile.c (compile_code_command)
13780 (compile_print_command): Update.
13781 * cli/cli-script.h (get_command_line, copy_command_lines): Return
13782 command_line_up.
13783 (make_cleanup_free_command_lines): Remove.
13784 * cli/cli-script.c (get_command_line, read_command_lines_1)
13785 (copy_command_lines): Return command_line_up.
13786 (while_command, if_command, read_command_lines, define_command)
13787 (document_command): Update.
13788 (do_free_command_lines_cleanup, make_cleanup_free_command_lines):
13789 Remove.
13790 * breakpoint.h (breakpoint_set_commands): Change type of
13791 "commands".
13792 * breakpoint.c (breakpoint_set_commands): Change type of
13793 "commands". Update.
13794 (do_map_commands_command, update_dprintf_command_list)
13795 (create_tracepoint_from_upload): Update.
13796
ffc2605c
TT
137972017-04-12 Tom Tromey <tom@tromey.com>
13798
13799 * tracepoint.c (scope_info): Update.
13800 * spu-tdep.c (spu_catch_start): Update.
13801 * python/python.c (gdbpy_decode_line): Update.
13802 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
13803 * python/py-breakpoint.c (bppy_init): Update.
13804 * probe.c (parse_probes): Update.
13805 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
13806 * location.h (event_location_deleter): New struct.
13807 (event_location_up): New typedef.
13808 (new_linespec_location, new_address_location, new_probe_location)
13809 (new_explicit_location, copy_event_location)
13810 (string_to_event_location, string_to_event_location_basic)
13811 (string_to_explicit_location): Update return type.
13812 (make_cleanup_delete_event_location): Remove.
13813 * location.c (new_linespec_location, new_address_location)
13814 (new_probe_location, new_explicit_location, copy_event_location):
13815 Return event_location_up.
13816 (delete_event_location_cleanup)
13817 (make_cleanup_delete_event_location): Remove.
13818 (string_to_explicit_location, string_to_event_location_basic)
13819 (string_to_event_location): Return event_location_up.
13820 * linespec.c (canonicalize_linespec, event_location_to_sals)
13821 (decode_line_with_current_source)
13822 (decode_line_with_last_displayed, decode_objc): Update.
13823 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
13824 * completer.c (location_completer): Update.
13825 * cli/cli-cmds.c (edit_command, list_command): Update.
13826 * breakpoint.c (create_overlay_event_breakpoint)
13827 (create_longjmp_master_breakpoint)
13828 (create_std_terminate_master_breakpoint)
13829 (create_exception_master_breakpoint)
13830 (create_thread_event_breakpoint): Update.
13831 (init_breakpoint_sal): Update. Remove some dead code.
13832 (create_breakpoint_sal): Change type of "location". Update.
13833 (create_breakpoints_sal, create_breakpoint, break_command_1)
13834 (dprintf_command, break_range_command, until_break_command)
13835 (init_ada_exception_breakpoint)
13836 (strace_marker_create_sals_from_location)
13837 (update_static_tracepoint, trace_command, ftrace_command)
13838 (strace_command, create_tracepoint_from_upload): Update.
13839 * break-catch-throw.c (re_set_exception_catchpoint): Update.
13840 * ax-gdb.c (agent_command_1): Update.
13841
8f10c932
PA
138422017-04-12 Pedro Alves <palves@redhat.com>
13843
13844 * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o.
13845 * configure.tgt: Handle i[34567]86-*-go32* and
13846 i[34567]86-*-msdosdjgpp*.
13847 * i386-tdep.c (i386_svr4_reg_to_regnum):
13848 Make extern.
13849 (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to
13850 i386-go32-tdep.c.
13851 (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c.
13852 * i386-go32-tdep.c: New file.
13853 * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New
13854 declarations.
13855
0a31ccfb
SM
138562017-04-12 Simon Marchi <simon.marchi@ericsson.com>
13857
13858 * aix-thread.c (pd_status2str): Change return type to const char *.
13859
e9bb3fbb
PA
138602017-04-12 Pedro Alves <palves@redhat.com>
13861
13862 * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
13863 calls to set_gdbarch_gnu_triplet_regexp.
13864
53375380
PA
138652017-04-12 Pedro Alves <palves@redhat.com>
13866
13867 PR gdb/21323
13868 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>:
13869 New enum value.
13870 (cplus_language_arch_info): Register cplus_primitive_type_wchar_t.
13871 * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field.
13872 * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type.
13873 * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values.
13874 * gdbarch.h, gdbarch.c: Regenerate.
13875 * aarch64-tdep.c (aarch64_gdbarch_init): Override
13876 gdbarch_wchar_bit and gdbarch_wchar_signed.
13877 * alpha-tdep.c (alpha_gdbarch_init): Likewise.
13878 * arm-tdep.c (arm_gdbarch_init): Likewise.
13879 * avr-tdep.c (avr_gdbarch_init): Likewise.
13880 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
13881 * i386-nto-tdep.c (i386nto_init_abi): Likewise.
13882 * i386-tdep.c (i386_go32_init_abi): Likewise.
13883 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
13884 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
13885 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
13886 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
13887 * sh-tdep.c (sh_gdbarch_init): Likewise.
13888 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
13889 * sparc64-tdep.c (sparc64_init_abi): Likewise.
13890 * windows-tdep.c (windows_init_abi): Likewise.
13891 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
13892
53e710ac
PA
138932017-04-12 Pedro Alves <palves@redhat.com>
13894
13895 PR c++/21323
13896 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t,
13897 cplus_primitive_type_char32_t>: New enum values.
13898 (cplus_language_arch_info): Register cplus_primitive_type_char16_t
13899 and cplus_primitive_type_char32_t.
13900 * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or
13901 32, use the archtecture's built-in type for char16_t and char32_t,
13902 respectively. Otherwise, fallback to init_integer_type as before,
13903 but make the type unsigned, and issue a complaint.
13904 * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned.
13905
ab0538b8
AH
139062017-04-12 Alan Hayward <alan.hayward@arm.com>
13907
5e0e0422 13908 * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added.
ab0538b8
AH
13909 (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
13910
5430098f
SDJ
139112017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
13912
13913 * windows-nat.c (windows_create_inferior): Declare 'toexec' as
13914 'const char *'.
13915
7c5ded6a
SDJ
139162017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
13917
13918 * common/common-utils.c (free_vector_argv): New function.
13919 * common/common-utils.h: Include <vector>.
13920 (free_vector_argv): New prototype.
13921 * darwin-nat.c (darwin_create_inferior): Rewrite function
13922 prototype in order to constify "exec_file" and accept a
13923 "std::string" for "allargs".
13924 * fork-child.c: Include <vector>.
13925 (breakup_args): Rewrite function, using C++.
13926 (fork_inferior): Rewrite function header, constify "exec_file_arg"
13927 and accept "std::string" for "allargs". Update the code to
13928 calculate "argv" based on "allargs". Update calls to "exec_fun"
13929 and "execvp".
13930 * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in
13931 order to constify "exec_file" and accept a "std::string" for
13932 "allargs".
13933 * go32-nat.c (go32_create_inferior): Likewise.
13934 * inf-ptrace.c (inf_ptrace_create_inferior): Likewise.
13935 * infcmd.c (run_command_1): Constify "exec_file". Use
13936 "std::string" for inferior arguments.
13937 * inferior.h (fork_inferior): Update prototype.
13938 * linux-nat.c (linux_nat_create_inferior): Rewrite function
13939 prototype in order to constify "exec_file" and accept a
13940 "std::string" for "allargs".
13941 * nto-procfs.c (procfs_create_inferior): Likewise.
13942 * procfs.c (procfs_create_inferior): Likewise.
13943 * remote-sim.c (gdbsim_create_inferior): Likewise.
13944 * remote.c (extended_remote_run): Update code to accept
13945 "std::string" as argument.
13946 (extended_remote_create_inferior): Rewrite function prototype in
13947 order to constify "exec_file" and accept a "std::string" for
13948 "allargs".
13949 * rs6000-nat.c (super_create_inferior): Likewise.
13950 (rs6000_create_inferior): Likewise.
13951 * target.h (struct target_ops) <to_create_inferior>: Likewise.
13952 * windows-nat.c (windows_create_inferior): Likewise.
13953
ae0eee42
PA
139542017-04-11 Pedro Alves <palves@redhat.com>
13955
13956 * thread.c: Fix whitespace throughout.
13957
a6acac06
PR
139582017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com>
13959
13960 * linux-nat.c (linux_nat_detach): Remove delete_lwp call.
13961
64403bd1
AH
139622017-04-11 Alan Hayward <alan.hayward@arm.com>
13963
13964 * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
13965
a5bef50f
SDJ
139662017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
13967
13968 PR gdb/21364
13969 * osdata.c (info_osdata): Check if 'type' is an empty string
13970 instead of NULL.
13971
9295a5a9
PA
139722017-04-10 Pedro Alves <palves@redhat.com>
13973
13974 * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid)
13975 (ptid_to_global_thread_id, in_thread_list)
13976 (do_captured_list_thread_ids, set_resumed, set_running)
13977 (set_executing, set_stop_requested, finish_thread_state)
13978 (validate_registers_access, can_access_registers_ptid)
13979 (print_thread_info_1, switch_to_thread)
13980 (do_restore_current_thread_cleanup)
13981 (make_cleanup_restore_current_thread, thread_command)
13982 (thread_name_command): Use operator== instead of ptid_equal.
13983
996812e3
PA
139842017-04-10 Pedro Alves <palves@redhat.com>
13985
13986 * thread.c (struct current_thread_cleanup) <next>: Delete field.
13987 (current_thread_cleanup_chain): Delete.
13988 (restore_current_thread_cleanup_dtor)
13989 (make_cleanup_restore_current_thread): Remove references to
13990 current_thread_cleanup_chain.
13991
845b344f
AH
139922017-04-10 Alan Hayward <alan.hayward@arm.com>
13993
13994 * msp430-tdep.c (msp430_pseudo_register_read): Never return
13995 REG_UNKNOWN.
13996
803bdfe4
YQ
139972017-04-10 Yao Qi <yao.qi@linaro.org>
13998
13999 PR gdb/19942
14000 * gdbthread.h (thread_info::deletable): New method.
14001 (thread_info::incref): New method.
14002 (thread_info::decref): New method.
14003 (thread_info::refcount): Move it to private.
14004 * infrun.c (save_stop_context): Call inc_refcount.
14005 (release_stop_context_cleanup): Likewise.
14006 * thread.c (set_thread_exited): New function.
14007 (init_thread_list): Delete "tp" only it is deletable, otherwise
14008 call set_thread_exited.
14009 (delete_thread_1): Call set_thread_exited.
14010 (current_thread_cleanup) <inferior_pid>: Remove.
14011 <thread>: New field.
14012 (restore_current_thread_ptid_changed): Removed.
14013 (do_restore_current_thread_cleanup): Adjust.
14014 (restore_current_thread_cleanup_dtor): Don't call
14015 find_thread_ptid.
14016 (set_thread_refcount): Use dec_refcount.
14017 (make_cleanup_restore_current_thread): Adjust.
14018 (thread_apply_all_command): Call inc_refcount.
14019 (_initialize_thread): Don't call
14020 observer_attach_thread_ptid_changed.
14021
8c25b497
YQ
140222017-04-10 Yao Qi <yao.qi@linaro.org>
14023
14024 * thread.c (delete_thread_1): Hoist code on marking thread as
14025 exited.
14026
8473b447
SM
140272017-04-09 Simon Marchi <simon.marchi@polymtl.ca>
14028
14029 * windows-nat.c (windows_detach): Initialize ptid with
14030 minus_one_ptid.
14031
6670ec13
SM
140322017-04-07 Simon Marchi <simon.marchi@ericsson.com>
14033
14034 * unittests/ptid-selftests.c: Fix erroneous assert messages.
14035
ba2f91bb
AH
140362017-04-07 Alan Hayward <alan.hayward@arm.com>
14037
14038 * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
14039 (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE.
14040 (bfin_pseudo_register_write): Likewise
14041
436252de
SM
140422017-04-06 Simon Marchi <simon.marchi@ericsson.com>
14043
14044 * common/ptid.h (struct ptid): Change to...
14045 (class ptid_t): ... this.
14046 <ptid_t>: New constructors.
14047 <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=,
14048 matches>: New methods.
14049 <make_null, make_minus_one>: New static methods.
14050 <pid>: Rename to...
14051 <m_pid>: ...this.
14052 <lwp>: Rename to...
14053 <m_lwp>: ...this.
14054 <tid>: Rename to...
14055 <m_tid>: ...this.
14056 (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
14057 ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments
14058 as references, move comment to class ptid_t.
14059 * common/ptid.c (null_ptid, minus_one_ptid): Initialize with
14060 ptid_t static methods.
14061 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid,
14062 ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match):
14063 Take ptid arguments as references, implement using ptid_t methods.
14064 * unittests/ptid-selftests.c: New file.
14065 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14066 unittests/ptid-selftests.c.
14067 (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o.
14068
0dedf377
TP
140692017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
14070
14071 * python/python.c (python_run_simple_file): Cast mode literal to
14072 non-const char pointer as expected by PyFile_FromString.
14073
4e9868d4
SM
140742017-04-05 Simon Marchi <simon.marchi@ericsson.com>
14075
14076 * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with
14077 minus_one_ptid and null_ptid.
14078
9bf2a700
PA
140792017-04-05 Pedro Alves <palves@redhat.com>
14080
14081 * warning.m4 (build_warnings): Remove -Wno-write-strings.
14082 * configure: Regenerate.
14083
a121b7c1
PA
140842017-04-05 Pedro Alves <palves@redhat.com>
14085
14086 * ada-exp.y (yyerror): Constify.
14087 * ada-lang.c (bound_name, get_selections)
14088 (ada_variant_discrim_type)
14089 (ada_variant_discrim_name, ada_value_struct_elt)
14090 (ada_lookup_struct_elt_type, is_unchecked_variant)
14091 (ada_which_variant_applies, standard_exc, ada_get_next_arg)
14092 (catch_ada_exception_command_split)
14093 (catch_ada_assert_command_split, catch_assert_command)
14094 (ada_op_name): Constify.
14095 * ada-lang.h (ada_yyerror, get_selections)
14096 (ada_variant_discrim_name, ada_value_struct_elt): Constify.
14097 * arc-tdep.c (arc_print_frame_cache): Constify.
14098 * arm-tdep.c (arm_skip_stub): Constify.
14099 * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref)
14100 (gen_aggregate_elt_ref): Constify.
14101 * bcache.c (print_bcache_statistics): Constify.
14102 * bcache.h (print_bcache_statistics): Constify.
14103 * break-catch-throw.c (catch_exception_command_1):
14104 * breakpoint.c (struct ep_type_description::description):
14105 Constify.
14106 (add_solib_catchpoint): Constify.
14107 (catch_fork_command_1): Add cast.
14108 (add_catch_command): Constify.
14109 * breakpoint.h (add_catch_command, add_solib_catchpoint):
14110 Constify.
14111 * bsd-uthread.c (bsd_uthread_state): Constify.
14112 * buildsym.c (patch_subfile_names): Constify.
14113 * buildsym.h (next_symbol_text_func, patch_subfile_names):
14114 Constify.
14115 * c-exp.y (yyerror): Constify.
14116 (token::oper): Constify.
14117 * c-lang.h (c_yyerror, cp_print_class_member): Constify.
14118 * c-varobj.c (cplus_describe_child): Constify.
14119 * charset.c (find_charset_names): Add cast.
14120 (find_charset_names): Constify array and add const_cast.
14121 * cli/cli-cmds.c (complete_command, cd_command): Constify.
14122 (edit_command): Constify.
14123 * cli/cli-decode.c (lookup_cmd): Constify.
14124 * cli/cli-dump.c (dump_memory_command, dump_value_command):
14125 Constify.
14126 (struct dump_context): Constify.
14127 (add_dump_command, restore_command): Constify.
14128 * cli/cli-script.c (get_command_line): Constify.
14129 * cli/cli-script.h (get_command_line): Constify.
14130 * cli/cli-utils.c (check_for_argument): Constify.
14131 * cli/cli-utils.h (check_for_argument): Constify.
14132 * coff-pe-read.c (struct read_pe_section_data): Constify.
14133 * command.h (lookup_cmd): Constify.
14134 * common/print-utils.c (decimal2str): Constify.
14135 * completer.c (gdb_print_filename): Constify.
14136 * corefile.c (set_gnutarget): Constify.
14137 * cp-name-parser.y (yyerror): Constify.
14138 * cp-valprint.c (cp_print_class_member): Constify.
14139 * cris-tdep.c (cris_register_name, crisv32_register_name):
14140 Constify.
14141 * d-exp.y (yyerror): Constify.
14142 (struct token::oper): Constify.
14143 * d-lang.h (d_yyerror): Constify.
14144 * dbxread.c (struct header_file_location::name): Constify.
14145 (add_old_header_file, add_new_header_file, last_function_name)
14146 (dbx_next_symbol_text, add_bincl_to_list)
14147 (find_corresponding_bincl_psymtab, set_namestring)
14148 (find_stab_function_addr, read_dbx_symtab, start_psymtab)
14149 (dbx_end_psymtab, read_ofile_symtab, process_one_symbol):
14150 * defs.h (command_line_input, print_address_symbolic)
14151 (deprecated_readline_begin_hook): Constify.
14152 * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name):
14153 Constify.
14154 * event-top.c (handle_line_of_input): Constify and add cast.
14155 * exceptions.c (catch_errors): Constify.
14156 * exceptions.h (catch_errors): Constify.
14157 * expprint.c (print_subexp_standard, op_string, op_name)
14158 (op_name_standard, dump_raw_expression, dump_raw_expression):
14159 * expression.h (op_name, op_string, dump_raw_expression):
14160 Constify.
14161 * f-exp.y (yyerror): Constify.
14162 (struct token::oper): Constify.
14163 (struct f77_boolean_val::name): Constify.
14164 * f-lang.c (f_word_break_characters): Constify.
14165 * f-lang.h (f_yyerror): Constify.
14166 * fork-child.c (fork_inferior): Add cast.
14167 * frv-tdep.c (struct gdbarch_tdep::register_names): Constify.
14168 (new_variant): Constify.
14169 * gdbarch.sh (pstring_ptr, pstring_list): Constify.
14170 * gdbarch.c: Regenerate.
14171 * gdbcore.h (set_gnutarget): Constify.
14172 * go-exp.y (yyerror): Constify.
14173 (token::oper): Constify.
14174 * go-lang.h (go_yyerror): Constify.
14175 * go32-nat.c (go32_sysinfo): Constify.
14176 * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify.
14177 * guile/scm-cmd.c (cmdscm_function): Constify.
14178 * guile/scm-param.c (pascm_param_value): Constify.
14179 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
14180 (h8300sx_register_name): Constify.
14181 * hppa-tdep.c (hppa32_register_name, hppa64_register_name):
14182 Constify.
14183 * ia64-tdep.c (ia64_register_names): Constify.
14184 * infcmd.c (construct_inferior_arguments): Constify.
14185 (path_command, attach_post_wait): Constify.
14186 * language.c (show_range_command, show_case_command)
14187 (unk_lang_error): Constify.
14188 * language.h (language_defn::la_error)
14189 (language_defn::la_name_of_this): Constify.
14190 * linespec.c (decode_line_2): Constify.
14191 * linux-thread-db.c (thread_db_err_str): Constify.
14192 * lm32-tdep.c (lm32_register_name): Constify.
14193 * m2-exp.y (yyerror): Constify.
14194 * m2-lang.h (m2_yyerror): Constify.
14195 * m32r-tdep.c (m32r_register_names): Constify and make static.
14196 * m68hc11-tdep.c (m68hc11_register_names): Constify.
14197 * m88k-tdep.c (m88k_register_name): Constify.
14198 * macroexp.c (appendmem): Constify.
14199 * mdebugread.c (fdr_name, add_data_symbol, parse_type)
14200 (upgrade_type, parse_external, parse_partial_symbols)
14201 (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab)
14202 (new_symbol): Constify.
14203 * memattr.c (mem_info_command): Constify.
14204 * mep-tdep.c (register_name_from_keyword): Constify.
14205 * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env):
14206 Constify.
14207 * mi/mi-cmd-stack.c (list_args_or_locals): Constify.
14208 * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify.
14209 * mi/mi-main.c (captured_mi_execute_command): Constify and add
14210 cast.
14211 (mi_execute_async_cli_command): Constify.
14212 * mips-tdep.c (mips_register_name): Constify.
14213 * mn10300-tdep.c (register_name, mn10300_generic_register_name)
14214 (am33_register_name, am33_2_register_name)
14215 * moxie-tdep.c (moxie_register_names): Constify.
14216 * nat/linux-osdata.c (osdata_type): Constify fields.
14217 * nto-tdep.c (nto_parse_redirection): Constify.
14218 * objc-lang.c (lookup_struct_typedef, lookup_objc_class)
14219 (lookup_child_selector): Constify.
14220 (objc_methcall::name): Constify.
14221 * objc-lang.h (lookup_objc_class, lookup_child_selector)
14222 (lookup_struct_typedef): Constify.
14223 * objfiles.c (pc_in_section): Constify.
14224 * objfiles.h (pc_in_section): Constify.
14225 * p-exp.y (struct token::oper): Constify.
14226 (yyerror): Constify.
14227 * p-lang.h (pascal_yyerror): Constify.
14228 * parser-defs.h (op_name_standard): Constify.
14229 (op_print::string): Constify.
14230 (exp_descriptor::op_name): Constify.
14231 * printcmd.c (print_address_symbolic): Constify.
14232 * psymtab.c (print_partial_symbols): Constify.
14233 * python/py-breakpoint.c (stop_func): Constify.
14234 (bppy_get_expression): Constify.
14235 * python/py-cmd.c (cmdpy_completer::name): Constify.
14236 (cmdpy_function): Constify.
14237 * python/py-event.c (evpy_add_attribute)
14238 (gdbpy_initialize_event_generic): Constify.
14239 * python/py-event.h (evpy_add_attribute)
14240 (gdbpy_initialize_event_generic): Constify.
14241 * python/py-evts.c (add_new_registry): Constify.
14242 * python/py-finishbreakpoint.c (outofscope_func): Constify.
14243 * python/py-framefilter.c (get_py_iter_from_func): Constify.
14244 * python/py-inferior.c (get_buffer): Add cast.
14245 * python/py-param.c (parm_constant::name): Constify.
14246 * python/py-unwind.c (fprint_frame_id): Constify.
14247 * python/python.c (gdbpy_parameter_value): Constify.
14248 * remote-fileio.c (remote_fio_func_map): Make 'name' const.
14249 * remote.c (memory_packet_config::name): Constify.
14250 (show_packet_config_cmd, remote_write_bytes)
14251 (remote_buffer_add_string):
14252 * reverse.c (exec_reverse_once): Constify.
14253 * rs6000-tdep.c (variant::name, variant::description): Constify.
14254 * rust-exp.y (rustyyerror): Constify.
14255 * rust-lang.c (rust_op_name): Constify.
14256 * rust-lang.h (rustyyerror): Constify.
14257 * serial.h (serial_ops::name): Constify.
14258 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
14259 (sh_sh3e_register_name, sh_sh2e_register_name)
14260 (sh_sh2a_register_name, sh_sh2a_nofpu_register_name)
14261 (sh_sh_dsp_register_name, sh_sh3_dsp_register_name)
14262 (sh_sh4_register_name, sh_sh4_nofpu_register_name)
14263 (sh_sh4al_dsp_register_name): Constify.
14264 * sh64-tdep.c (sh64_register_name): Constify.
14265 * solib-darwin.c (lookup_symbol_from_bfd): Constify.
14266 * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify.
14267 * stabsread.c (patch_block_stabs, read_type_number)
14268 (ref_map::stabs, ref_add, process_reference)
14269 (symbol_reference_defined, define_symbol, define_symbol)
14270 (error_type, read_type, read_member_functions, read_cpp_abbrev)
14271 (read_one_struct_field, read_struct_fields, read_baseclasses)
14272 (read_tilde_fields, read_struct_type, read_array_type)
14273 (read_enum_type, read_sun_builtin_type, read_sun_floating_type)
14274 (read_huge_number, read_range_type, read_args, common_block_start)
14275 (find_name_end): Constify.
14276 * stabsread.h (common_block_start, define_symbol)
14277 (process_one_symbol, symbol_reference_defined, ref_add):
14278 * symfile.c (get_section_index, add_symbol_file_command):
14279 * symfile.h (get_section_index): Constify.
14280 * target-descriptions.c (tdesc_type::name): Constify.
14281 (tdesc_free_type): Add cast.
14282 * target.c (find_default_run_target):
14283 (add_deprecated_target_alias, find_default_run_target)
14284 (target_announce_detach): Constify.
14285 (do_option): Constify.
14286 * target.h (add_deprecated_target_alias): Constify.
14287 * thread.c (print_thread_info_1): Constify.
14288 * top.c (deprecated_readline_begin_hook, command_line_input):
14289 Constify.
14290 (init_main): Add casts.
14291 * top.h (handle_line_of_input): Constify.
14292 * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify.
14293 * tracepoint.c (tvariables_info_1, trace_status_mi): Constify.
14294 (tfind_command): Rename to ...
14295 (tfind_command_1): ... this and constify.
14296 (tfind_command): New function.
14297 (tfind_end_command, tfind_start_command): Adjust.
14298 (encode_source_string): Constify.
14299 * tracepoint.h (encode_source_string): Constify.
14300 * tui/tui-data.c (tui_partial_win_by_name): Constify.
14301 * tui/tui-data.h (tui_partial_win_by_name): Constify.
14302 * tui/tui-source.c (tui_set_source_content_nil): Constify.
14303 * tui/tui-source.h (tui_set_source_content_nil): Constify.
14304 * tui/tui-win.c (parse_scrolling_args): Constify.
14305 * tui/tui-windata.c (tui_erase_data_content): Constify.
14306 * tui/tui-windata.h (tui_erase_data_content): Constify.
14307 * tui/tui-winsource.c (tui_erase_source_content): Constify.
14308 * tui/tui.c (tui_enable): Add cast.
14309 * utils.c (defaulted_query): Constify.
14310 (init_page_info): Add cast.
14311 (puts_debug, subset_compare): Constify.
14312 * utils.h (subset_compare): Constify.
14313 * varobj.c (varobj_format_string): Constify.
14314 * varobj.h (varobj_format_string): Constify.
14315 * vax-tdep.c (vax_register_name): Constify.
14316 * windows-nat.c (windows_detach): Constify.
14317 * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify.
14318 * xml-support.c (gdb_xml_end_element): Constify.
14319 * xml-tdesc.c (tdesc_start_reg): Constify.
14320 * xstormy16-tdep.c (xstormy16_register_name): Constify.
14321 * xtensa-tdep.c (xtensa_find_register_by_name): Constify.
14322 * xtensa-tdep.h (xtensa_register_t::name): Constify.
14323
995816ba
PA
143242017-04-05 Pedro Alves <palves@redhat.com>
14325
14326 * proc-api.c (struct trans): Constify.
14327 (procfs_note): Constify.
14328 * proc-events.c (struct trans, syscall_table):
14329 * proc-flags.c (struct trans): Constify.
14330 * proc-utils.h (procfs_note): Constify.
14331 * proc-why.c (struct trans): Constify.
14332 * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error)
14333 (procfs_detach): Constify.
14334 * sol-thread.c (struct string_map): Constify.
14335 (td_err_string, td_state_string): Constify.
14336
3e83a920
PA
143372017-04-05 Pedro Alves <palves@redhat.com>
14338
14339 * proc-api.c (procfs_filename): Don't initialize
14340 procfs_filename.
14341 (prepare_to_trace): Assume procfs_filename is non-NULL.
14342 (_initialize_proc_api): Give procfs_filename a default value here.
14343
63160a43
PA
143442017-04-05 Pedro Alves <palves@redhat.com>
14345
14346 * break-catch-throw.c (handle_gnu_v3_exceptions): Constify
14347 'cond_string' parameter.
14348 (extract_exception_regexp): Constify 'string' parameter.
14349 (catch_exception_command_1): Constify.
14350 * breakpoint.c (init_catchpoint)
14351 (create_fork_vfork_event_catchpoint): Constify 'cond_string'
14352 parameter.
14353 (ep_parse_optional_if_clause, catch_fork_command_1)
14354 (catch_exec_command_1): Constify.
14355 * breakpoint.h (init_catchpoint): Constify 'cond_string'
14356 parameter.
14357 (ep_parse_optional_if_clause): Constify.
14358 * cli/cli-utils.c (remove_trailing_whitespace)
14359 (check_for_argument): Constify.
14360 * cli/cli-utils.h (remove_trailing_whitespace): Constify and add
14361 non-const overload.
14362 (check_for_argument): Likewise.
14363
9b2eba3d
PA
143642017-04-05 Pedro Alves <palves@redhat.com>
14365
14366 * event-top.c (command_line_handler): Add cast to execute_command
14367 call.
14368 * record-btrace.c (cmd_record_btrace_bts_start)
14369 (cmd_record_btrace_pt_start, cmd_record_btrace_start)
14370 (cmd_record_btrace_start): Add cast to execute_command call.
14371 * record-full.c (record_full_goto_insn):
14372 * record.c (record_start, record_stop): Add cast to
14373 execute_command_to_string calls.
14374 (cmd_record_start): Add cast to execute_command calls.
14375
2adadf51
PA
143762017-04-05 Pedro Alves <palves@redhat.com>
14377
14378 * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New
14379 static inline function.
14380 * python/py-arch.c (archpy_disassemble): Constify 'keywords'
14381 array and use gdb_PyArg_ParseTupleAndKeywords.
14382 * python/py-cmd.c (cmdpy_init): Likewise.
14383 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
14384 * python/py-inferior.c (infpy_read_memory, infpy_write_memory)
14385 (infpy_search_memory): Likewise.
14386 * python/py-objfile.c (objfpy_add_separate_debug_file)
14387 (gdbpy_lookup_objfile): Likewise.
14388 * python/py-symbol.c (gdbpy_lookup_symbol)
14389 (gdbpy_lookup_global_symbol): Likewise.
14390 * python/py-type.c (gdbpy_lookup_type): Likewise.
14391 * python/py-value.c (valpy_lazy_string, valpy_string): Likewise.
14392 * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush):
14393 Likewise.
14394
0d1f4ceb
PA
143952017-04-05 Pedro Alves <palves@redhat.com>
14396
14397 * python/python-internal.h (gdb_PyGetSetDef): New type.
14398 * python/py-block.c (block_object_getset)
14399 (breakpoint_object_getset): Now a gdb_PyGetSetDef array.
14400 * python/py-event.c (event_object_getset)
14401 (finish_breakpoint_object_getset): Likewise.
14402 * python/py-inferior.c (inferior_object_getset): Likewise.
14403 * python/py-infthread.c (thread_object_getset): Likewise.
14404 * python/py-lazy-string.c (lazy_string_object_getset): Likewise.
14405 * python/py-linetable.c (linetable_entry_object_getset): Likewise.
14406 * python/py-objfile.c (objfile_getset): Likewise.
14407 * python/py-progspace.c (pspace_getset): Likewise.
14408 * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset):
14409 Likewise.
14410 * python/py-record.c (recpy_record_getset): Likewise.
14411 * python/py-symbol.c (symbol_object_getset): Likewise.
14412 * python/py-symtab.c (symtab_object_getset, sal_object_getset):
14413 Likewise.
14414 * python/py-type.c (type_object_getset, field_object_getset):
14415 Likewise.
14416 * python/py-value.c (value_object_getset): Likewise.
14417
4d759979
PA
144182017-04-05 Pedro Alves <palves@redhat.com>
14419
14420 * python/python-internal.h (gdb_PyObject_CallMethod)
14421 (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath):
14422 New functions.
14423 (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException)
14424 (PySys_GetObject, PySys_SetPath): New macros.
14425
fdf9e36f
PA
144262017-04-05 Pedro Alves <palves@redhat.com>
14427
14428 * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of
14429 info_osdata_command.
14430 * osdata.c (info_osdata_command): Rename to ...
14431 (info_osdata): ... this. Constify 'type' parameter, and remove
14432 the 'from_tty' parameter. Accept NULL TYPE.
14433 (info_osdata_command): New function.
14434 * osdata.h (info_osdata_command): Remove declaration.
14435 (info_osdata): New declaration.
14436
9f33b8b7
PA
144372017-04-05 Pedro Alves <palves@redhat.com>
14438
14439 * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert)
14440 (mi_cmd_dprintf_insert, mi_cmd_break_passcount)
14441 (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command'
14442 parameter.
14443 * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception)
14444 (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter.
14445 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command'
14446 parameter.
14447 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path)
14448 (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show)
14449 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
14450 (mi_cmd_file_list_exec_source_files)
14451 (mi_cmd_file_list_shared_libraries): Constify 'command' parameter.
14452 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
14453 (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command'
14454 parameter.
14455 * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters)
14456 (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth)
14457 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
14458 (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame)
14459 (mi_cmd_stack_info_frame): Constify 'command' parameter.
14460 * mi/mi-cmd-target.c (mi_cmd_target_file_get)
14461 (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify
14462 'command' parameter.
14463 * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete)
14464 (mi_cmd_var_set_format, mi_cmd_var_set_visualizer)
14465 (mi_cmd_var_set_frozen, mi_cmd_var_show_format)
14466 (mi_cmd_var_info_num_children, mi_cmd_var_list_children)
14467 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
14468 (mi_cmd_var_info_expression, mi_cmd_var_show_attributes)
14469 (mi_cmd_var_evaluate_expression, mi_cmd_var_assign)
14470 (mi_cmd_var_update, mi_cmd_enable_pretty_printing)
14471 (mi_cmd_var_set_update_range): Constify 'command' parameter.
14472 * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter.
14473 * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command'
14474 parameter.
14475 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next)
14476 (mi_cmd_exec_next_instruction, mi_cmd_exec_step)
14477 (mi_cmd_exec_step_instruction, mi_cmd_exec_finish)
14478 (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue)
14479 (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach)
14480 (mi_cmd_target_flash_erase, mi_cmd_thread_select)
14481 (mi_cmd_thread_list_ids, mi_cmd_thread_info)
14482 (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names)
14483 (mi_cmd_data_list_changed_registers)
14484 (mi_cmd_data_write_register_values)
14485 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
14486 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory)
14487 (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings)
14488 (mi_cmd_list_features, mi_cmd_list_target_features)
14489 (mi_cmd_add_inferior, mi_cmd_remove_inferior)
14490 (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables)
14491 (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start)
14492 (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info)
14493 (mi_cmd_trace_frame_collected): Constify 'command'
14494 parameter.
14495 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify
14496 'command' parameter.
14497
67cb5b2d
PA
144982017-04-05 Pedro Alves <palves@redhat.com>
14499
14500 * ada-lang.c (ada_completer_word_break_characters): Now a const
14501 array.
14502 (ada_get_gdb_completer_word_break_characters): Constify.
14503 * completer.c (gdb_completer_command_word_break_characters)
14504 (gdb_completer_file_name_break_characters)
14505 (gdb_completer_quote_characters): Now const arrays.
14506 (get_gdb_completer_quote_characters): Constify.
14507 (set_rl_completer_word_break_characters): New function.
14508 (set_gdb_completion_word_break_characters)
14509 (complete_line_internal): Use it.
14510 * completer.h (get_gdb_completer_quote_characters): Constify.
14511 (set_rl_completer_word_break_characters): Declare.
14512 * f-lang.c (f_word_break_characters): Constify.
14513 * language.c (default_word_break_characters): Constify.
14514 * language.h (language_defn::la_word_break_characters): Constify.
14515 (default_word_break_characters): Constify.
14516 * top.c (init_main): Use set_rl_completer_word_break_characters.
14517
7a114964
PA
145182017-04-05 Pedro Alves <palves@redhat.com>
14519
14520 * aix-thread.c (aix_thread_pid_to_str)
14521 (aix_thread_extra_thread_info): Constify.
14522 * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
14523 * bsd-uthread.c (bsd_uthread_extra_thread_info)
14524 (bsd_uthread_pid_to_str): Constify.
14525 * corelow.c (core_pid_to_str): Constify.
14526 * darwin-nat.c (darwin_pid_to_str): Constify.
14527 * fbsd-nat.c (fbsd_pid_to_str): Constify.
14528 * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
14529 Constify.
14530 * gnu-nat.c (gnu_pid_to_str): Constify.
14531 * go32-nat.c (go32_pid_to_str): Constify.
14532 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
14533 * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
14534 * inferior.c (inferior_pid_to_str): Constify.
14535 * linux-nat.c (linux_nat_pid_to_str): Constify.
14536 * linux-tdep.c (linux_core_pid_to_str): Constify.
14537 * linux-thread-db.c (thread_db_pid_to_str)
14538 (thread_db_extra_thread_info): Constify.
14539 * nto-tdep.c (nto_extra_thread_info): Constify.
14540 * nto-tdep.h (nto_extra_thread_info): Constify.
14541 * obsd-nat.c (obsd_pid_to_str): Constify.
14542 * procfs.c (procfs_pid_to_str): Constify.
14543 * ravenscar-thread.c (ravenscar_extra_thread_info)
14544 (ravenscar_pid_to_str): Constify.
14545 * remote-sim.c (gdbsim_pid_to_str): Constify.
14546 * remote.c (remote_threads_extra_info, remote_pid_to_str):
14547 Constify.
14548 * sol-thread.c (solaris_pid_to_str): Constify.
14549 * sol2-tdep.c (sol2_core_pid_to_str): Constify.
14550 * sol2-tdep.h (sol2_core_pid_to_str): Constify.
14551 * target.c (default_pid_to_str, target_pid_to_str)
14552 (normal_pid_to_str, default_pid_to_str): Constify.
14553 * target.h (target_ops::to_pid_to_str)
14554 (target_ops::to_extra_thread_info): Constify.
14555 (target_pid_to_str, normal_pid_to_str): Constify.
14556 * windows-nat.c (windows_pid_to_str): Constify.
14557 * gdbarch.sh (core_pid_to_str): Constify.
14558 * target-delegates.c: Regenerate.
14559 * gdbarch.h, gdbarch.c: Regenerate.
14560
69bbf465
PA
145612017-04-05 Pedro Alves <palves@redhat.com>
14562
14563 * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
14564 the memory of the temporary warning_pre_print override.
14565 * utils.c (warning_pre_print): Constify.
14566 * utils.h (warning_pre_print): Constify.
14567
be47f9e8
PA
145682017-04-05 Pedro Alves <palves@redhat.com>
14569
14570 * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
14571 (shell_command): New function.
14572 (make_command): Use std::string.
14573 (init_cli_cmds): Register shell_command instead of shell_escape.
14574
bde6261a
PA
145752017-04-05 Pedro Alves <palves@redhat.com>
14576
14577 * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
14578 * tracepoint.c (default_collect): Don't initialize.
14579
b38ef47f
PA
145802017-04-05 Pedro Alves <palves@redhat.com>
14581
14582 * macroexp.c (macro_buffer::shared): Now a bool.
14583 (init_buffer): Update.
14584 (init_shared_buffer): Constify 'addr' parameter.
14585 (substitute_args, expand, macro_expand, macro_expand_next): Remove
14586 casts.
14587
f995bbe8
PA
145882017-04-05 Pedro Alves <palves@redhat.com>
14589
14590 * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
14591 * disasm.c (set_disassembler_options): Constify local.
14592 * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
14593
4a596fe2
SDJ
145942017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
14595
14596 PR gdb/21352
14597 * tracefile.c (tsave_command): Fix argument parsing for '-r'
14598 option.
14599
2cad08ea
YQ
146002017-04-05 Yao Qi <yao.qi@linaro.org>
14601
14602 * frame.c (frame_unwind_register_unsigned): Call
14603 frame_unwind_register_value.
14604
55a98976
YQ
146052017-04-05 Yao Qi <yao.qi@linaro.org>
14606
14607 * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
14608 Use gdb_test_multiple, and don't match anchor.
14609
4ac40124
PA
146102017-04-05 Pedro Alves <palves@redhat.com>
14611
14612 * MAINTAINERS (Global Maintainers): Add Simon Marchi.
14613 (Write After Approval): Remove Simon Marchi.
14614
c053b654
PA
146152017-04-05 Pedro Alves <palves@redhat.com>
14616
14617 * common/gdb_optional.h (optional::optional): Make constexpr and
14618 initialize m_dummy.
14619
4c7bf4f9
JB
146202017-04-04 John Baldwin <jhb@FreeBSD.org>
14621
14622 * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
14623 (amd64fbsd_jmp_buf_reg_offset): Remove.
14624 (amd64fbsd_supply_uthread): Remove function.
14625 (amd64fbsd_collect_uthread): Remove function.
14626 (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
14627 * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
14628 (x86_64-*-freebsd*): Remove bsd-uthread.o.
14629 (fbsd-nat.c): Update comment.
14630 * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
14631 (i386fbsd_jmp_buf_reg_offset): Remove.
14632 (i386fbsd_supply_uthread): Remove function.
14633 (i386fbsd_collect_uthread): Remove function.
14634 (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
14635
1e1a8bef
JB
146362017-04-04 John Baldwin <jhb@FreeBSD.org>
14637
14638 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
14639 (ALLDEPFILES): Remove alpha-fbsd-tdep.c
14640 * NEWS: Mention that support for FreeBSD/alpha was removed.
14641 * alpha-fbsd-tdep.c: Delete file.
14642 * config/alpha/fbsd.mh: Delete file.
14643 * configure.host: Delete alpha*-*-freebsd* and
14644 alpha*-*-kfreebsd*-gnu.
14645 * configure.tgt: Delete alpha*-*-freebsd* and
14646 alpha*-*-kfreebsd*-gnu.
14647
49907934
JB
146482017-04-04 John Baldwin <jhb@FreeBSD.org>
14649
14650 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
14651 amd64bsd_store_inferior_registers): Use ptid from regcache.
14652
6f77053d
PA
146532017-04-04 Pedro Alves <palves@redhat.com>
14654
14655 * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
14656 data fields, make them private and add "m_" prefixes.
14657 (lnp_state_machine::lnp_state_machine): New ctor.
14658 (record_line, check_line_address, handle_set_discriminator)
14659 (handle_set_address, handle_advance_pc, handle_special_opcode)
14660 (handle_advance_line, handle_set_file, handle_negate_stmt)
14661 (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
14662 (end_sequence, advance_line): New methods.
14663 (m_gdbarch, m_record_lines_p): New fields.
14664 (lnp_reader_state): Delete.
14665 (dwarf_record_line): Rename to ...
14666 (lnp_state_machine::record_line): ... adjust.
14667 (init_lnp_state_machine): Delete.
14668 (lnp_state_machine::lnp_state_machine): New.
14669 (check_line_address): Rename to ...
14670 (lnp_state_machine::check_line_address): This.
14671 (dwarf_decode_lines_1): Remove reference to "reader_state".
14672 Adjust lnp_state_machine having a non-default ctor. Use bool.
14673 State machine internal state manipulation moved to
14674 lnp_state_machine methods.
14675
9c541725
PA
146762017-04-04 Pedro Alves <palves@redhat.com>
14677
14678 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14679 unittests/offset-type-selftests.c.
14680 (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
14681 * common/offset-type.h: New file.
14682 * common/preprocessor.h: New file.
14683 * common/traits.h: New file.
14684 * common/valid-expr.h: New file.
14685 * dwarf2expr.c: Include "common/underlying.h". Adjust to use
14686 sect_offset and cu_offset strong typedefs throughout.
14687 * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
14688 typedefs throughout.
14689 * dwarf2loc.c: Include "common/underlying.h". Adjust to use
14690 sect_offset and cu_offset strong typedefs throughout.
14691 * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
14692 typedefs throughout.
14693 * gdbtypes.h: Include "common/offset-type.h".
14694 (cu_offset): Now an offset type (strong typedef) instead of a
14695 struct.
14696 (sect_offset): Likewise.
14697 (union call_site_parameter_u): Rename "param_offset" field to
14698 "param_cu_off".
14699 * unittests/offset-type-selftests.c: New file.
14700
ecfb656c
PA
147012017-04-04 Pedro Alves <palves@redhat.com>
14702
14703 * common/underlying.h: New file.
14704 * dwarf2read.c: Include "common/gdb_optional.h" and
14705 "common/underlying.h".
14706 (dir_index, file_name_index): New types.
14707 (file_entry): Use them.
14708 (file_entry::include): Use to_underlying.
14709 (line_header::add_file_name): Use dir_index.
14710 (read_formatted_entries): Use gdb::optional. Read form before
14711 writting to file_entry.
14712 (dwarf_decode_line_header): Use dir_index.
14713 (lnp_state_machine::current_file): Use to_underlying.
14714 (lnp_state_machine::file): Change type to file_name_index.
14715 (dwarf_record_line): Use to_underlying.
14716 (init_lnp_state_machine): Use file_name_index.
14717 (dwarf_decode_lines_1): Use dir_index and file_name_index.
14718
d194f1fe
PA
147192017-04-04 Pedro Alves <palves@redhat.com>
14720
14721 * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
14722 operator bool, has_value and get methods.
14723
fff8551c
PA
147242017-04-04 Pedro Alves <palves@redhat.com>
14725
14726 * dwarf2read.c (struct file_entry): Add ctors, and initialize all
14727 fields.
14728 (line_header): Initialize all data fields. Change type of
14729 standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
14730 Change type of include_dirs to std::vector<const char *>. Remove
14731 num_include_dirs, include_dirs_size. Change type of file_names to
14732 std::vector<file_entry>. Remove num_file_names, file_names_size.
14733 (line_header::line_header): New.
14734 (line_header::add_include_dir, line_header::add_file_name): New
14735 methods.
14736 (line_header::include_dir_at): Remove NULL check.
14737 (line_header::file_name_at): Add const overload.
14738 (line_header_up): New unique_ptr typedef.
14739 (dw2_get_file_names_reader): Use line_header_up. Adjust to use
14740 std::vector. Remove free_line_header call.
14741 (dwarf2_build_include_psymtabs): Use line_header_up. Remove
14742 free_line_header call.
14743 (free_cu_line_header): Delete.
14744 (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
14745 (setup_type_unit_groups): Use line_header_up instead of cleanups.
14746 Adjust to use std::vector.
14747 (free_line_header): Delete.
14748 (free_line_header_voidp): Use delete.
14749 (add_include_dir): Replace with ...
14750 (line_header::add_include_dir): ... this method. Use std::vector.
14751 (add_file_name): Replace with ...
14752 (line_header::add_file_name): ... this method. Use std::vector.
14753 (add_include_dir_stub): Delete.
14754 (read_formatted_entries): Remove memset.
14755 (dwarf_decode_line_header): Return a line_header_up instead of a
14756 raw pointer. Remove cleanup handling. Pass lambdas to
14757 read_formatted_entries. Adjust to use line_header methods.
14758 (dwarf_decode_lines_1): Adjust to use line_header methods.
14759 (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
14760 use std::vector.
14761
d62a8ae2
SM
147622017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
14763
14764 * remote.c (set_general_thread, set_continue_thread): Use ptid_t
14765 instead of struct ptid.
14766
db3a1dc7
AH
147672017-05-04 Alan Hayward <alan.hayward@arm.com>
14768
14769 * frame.c (get_frame_register_bytes): Unwind using value.
14770 (put_frame_register_bytes): Likewise.
14771
b1b45502
IB
147722017-03-30 Iain Buclaw <ibuclaw@gdcproject.org>
14773
14774 * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
14775 aggregate-like.
14776
ec13808e
JK
147772017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
14778
14779 * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
14780
12316564
YQ
147812017-03-29 Yao Qi <yao.qi@linaro.org>
14782
14783 * gdbthread.h (struct thread_info): Declare constructor and
14784 destructor. Add some in-class member initializers.
14785 * thread.c (free_thread): Remove.
14786 (init_thread_list): Call delete instead of free_thread.
14787 (new_thread): Call thread_info constructor.
14788 (thread_info::thread_info): New function.
14789 (thread_info::~thread_info): New function.
14790 (delete_thread_1): Call delete instead of free_thread.
14791 (make_cleanup_restore_current_thread): Move tp and frame to
14792 inner block.
14793
fe5f7374
AK
147942017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
14795
14796 * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
14797 (arc_skip_prologue): Likewise.
14798 (arc_make_frame_cache): Likewise.
14799 (arc_pv_get_operand): New function.
14800 (arc_is_in_prologue): Likewise.
14801 (arc_analyze_prologue): Likewise.
14802 (arc_print_frame_cache): Likewise.
14803 (MAX_PROLOGUE_LENGTH): New constant.
14804
eea78757
AK
148052017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
14806
14807 * configure.tgt: Add arc-insn.o.
14808 * arc-tdep.c (arc_delayed_print_insn): Make non-static.
14809 (dump_arc_instruction_command): New function.
14810 (arc_fprintf_disasm): Likewise.
14811 (arc_disassemble_info): Likewise.
14812 (arc_insn_get_operand_value): Likewise.
14813 (arc_insn_get_operand_value_signed): Likewise.
14814 (arc_insn_get_memory_base_reg): Likewise.
14815 (arc_insn_get_memory_offset): Likewise.
14816 (arc_insn_get_branch_target): Likewise.
14817 (arc_insn_dump): Likewise.
14818 (arc_insn_get_linear_next_pc): Likewise.
14819 * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
14820 (arc_disassemble_info): Likewise.
14821 (arc_insn_get_branch_target): Likewise.
14822 (arc_insn_get_linear_next_pc): Likewise.
14823 * NEWS: Mention new "maint print arc arc-instruction".
14824
3be78afd
AK
148252017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
14826
14827 * arc-tdep (maintenance_print_arc_list): New variable.
14828 (maintenance_print_arc_command): New function.
14829
296ec4fa
AK
148302017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
14831
14832 * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
14833 Add "limm" and "reserved".
14834 (arc_cannot_fetch_register, arc_cannot_store_register): Add
14835 ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
14836 * arc-tdep.h (arc_regnum): Likewise.
14837
f74f865e
MF
148382017-03-27 Max Filippov <jcmvbkbc@gmail.com>
14839
14840 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
14841 for THREADPTR register.
14842 (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
14843 register.
14844 * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
14845 (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
14846 * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
14847
0d0bf81a
MF
148482017-03-27 Max Filippov <jcmvbkbc@gmail.com>
14849
14850 * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
14851 registers above gdbarch_num_regs (gdbarch) as privileged in
14852 call0 ABI.
14853
0ce4291e
MF
148542017-03-27 Max Filippov <jcmvbkbc@gmail.com>
14855
14856 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
14857 for a single specified register or for all registers in
14858 a0_base..a0_base + C0_NREGS range.
14859 (supply_gregset_reg): Call regcache_raw_supply for a single
14860 specified register or for all registers in a0_base..a0_base +
14861 C0_NREGS range.
14862
c56054f9
MF
148632017-03-27 Max Filippov <jcmvbkbc@gmail.com>
14864
14865 * arch/xtensa.h (C0_NREGS): Add definition.
14866 * xtensa-tdep.c (C0_NREGS): Remove definition.
14867
a4398628
MF
148682017-03-27 Max Filippov <jcmvbkbc@gmail.com>
14869
14870 * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
14871 Drop xtensa_default_isa initialization.
14872 (xtensa_gdbarch_init): Initialize xtensa_default_isa.
14873
8c43009f
PA
148742017-03-27 Pedro Alves <palves@redhat.com>
14875
14876 * dwarf2read.c (file_entry) <dir_index>: Add comment.
14877 (file_entry::include_dir): New method.
14878 (line_header::include_dir_at, line_header::file_name_at): New
14879 methods.
14880 (setup_type_unit_groups, setup_type_unit_groups)
14881 (psymtab_include_file_name): Simplify using the new methods.
14882 (lnp_state_machine) <the_line_header>: New field.
14883 <file>: Add comment.
14884 (lnp_state_machine::current_file): New method.
14885 (dwarf_record_line): Simplify using the new methods.
14886 (init_lnp_state_machine): Initialize the "the_line_header" field.
14887 (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
14888 Simplify using the new methods.
14889
a7e80b9e
PA
148902017-03-27 Pedro Alves <palves@redhat.com>
14891
14892 * cp-name-parser.y (make_empty): Delete.
14893 (demangler_special, nested_name, ptr_operator, array_indicator)
14894 (direct_declarator, declarator_1): Use fill_comp instead of
14895 make_empty.
14896
21047726
PA
148972017-03-27 Pedro Alves <palves@redhat.com>
14898
14899 * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
14900 to ATTRIBUTE_PRINTF.
14901 * solib-target.c (library_list_start_list): Print "string" not
14902 "version".
14903 * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
14904 gdb_xml_error call.
14905
d721ba37
PA
149062017-03-27 Pedro Alves <palves@redhat.com>
14907
14908 * dwarf2read.c (struct file_and_directory): New.
14909 (dwarf2_get_dwz_file): Adjust to use std::string.
14910 (dw2_get_file_names_reader): Adjust to use file_and_directory.
14911 (find_file_and_directory): Adjust to return a file_and_directory
14912 object.
14913 (read_file_scope): Adjust to use file_and_directory. Remove
14914 make_cleanup/do_cleanups calls.
14915 (open_and_init_dwp_file): Adjust to use std::string. Remove
14916 make_cleanup/do_cleanups calls.
14917 * python/python.c (do_start_initialization): Adjust to ldirname
14918 returning a std::string.
14919 * utils.c (ldirname): Now returns a std::string.
14920 * utils.h (ldirname): Change return type to std::string.
14921 * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
14922 returning a std::string.
14923 * xml-tdesc.c (file_read_description_xml): Likewise.
14924
ed771251
AH
149252017-03-24 Alan Hayward <alan.hayward@arm.com>
14926
14927 * regcache.c (regcache_debug_print_register): New function.
14928 * regcache.h (regcache_debug_print_register): New declaration.
14929 * target.c (debug_print_register): Remove.
14930 (target_fetch_registers): Call regcache_debug_print_register.
14931 (target_store_registers): Likewise.
14932
568c1b9f
PB
149332017-03-24 Pádraig Brady <pbrady@fb.com>
14934
14935 * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
14936 reference beyond the 'lh->include_dirs' array before accessing to
14937 it.
14938 (psymtab_include_file_name): Likewise.
14939 (dwarf_decode_lines_1): Likewise.
14940 (dwarf_decode_lines): Likewise.
14941 (file_file_name): Likewise.
14942
3e00d44f
SM
149432017-03-23 Simon Marchi <simon.marchi@ericsson.com>
14944
14945 * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
14946 inferior_ptid.
14947 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
14948 ps_lsetfpregs): Likewise.
14949 * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
14950 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
14951 ps_lsetfpregs): Likewise.
14952 * target.c (target_fetch_registers, target_store_registers):
14953 Remove asserts.
14954
077ae656
AH
149552017-03-23 Alan Hayward <alan.hayward@arm.com>
14956
14957 * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
14958
1e2b521d
YQ
149592017-03-23 Yao Qi <yao.qi@linaro.org>
14960
14961 * aarch64-tdep.c (aarch64_process_record_test): Declare.
14962 (_initialize_aarch64_tdep): Register it.
14963 (aarch64_record_load_store): Handle PRFM instruction.
14964 (aarch64_process_record_test): New function.
14965
33877125
YQ
149662017-03-23 Yao Qi <yao.qi@linaro.org>
14967
14968 * aarch64-tdep.c (aarch64_record_load_store): Fix code
14969 indentation.
14970
a0eef940
YQ
149712017-03-23 Yao Qi <yao.qi@linaro.org>
14972
14973 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
14974
3f2a3564
PR
149752017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
14976
14977 python/python.c (do_start_initialization): Fix memory leak.
14978
b67aeab0
SM
149792017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
14980
14981 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
14982 using get_ptrace_pid.
14983 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
14984 inferior_ptid.
14985 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
14986 inferior_ptid instead of pid.
14987
ffdbe864
YQ
149882017-03-22 Yao Qi <yao.qi@linaro.org>
14989
14990 * aarch64-tdep.c: Wrap locally used classes in anonymous
14991 namespace.
14992 * arm-tdep.c: Likewise.
14993 * linespec.c: Likewise.
14994 * ui-out.c: Likewise.
14995
9d736fbf
JG
149962017-03-22 Jonah Graham <jonah@kichwacoders.com>
14997
14998 PR gdb/19637
14999 * python/lib/gdb/printer/bound_registers.py: Import sys.
15000
3de88e9a
SM
150012017-03-21 Simon Marchi <simon.marchi@ericsson.com>
15002
15003 * windows-nat.c (do_windows_fetch_inferior_registers): Add
15004 windows_thread_info parameter and use it instead of
15005 current_thread.
15006 (windows_fetch_inferior_registers): Don't set current_thread,
15007 pass the thread to do_windows_fetch_inferior_registers. Use
15008 ptid from regcache instead of inferior_ptid.
15009 (do_windows_store_inferior_registers): Add windows_thread_info
15010 parameter and use it instead of current_thread.
15011 (windows_store_inferior_registers): Don't set current_thread,
15012 pass the thread to do_windows_store_inferior_registers. Use
15013 ptid from regcache instead of inferior_ptid.
15014
0e7b8f61
SM
150152017-03-21 Simon Marchi <simon.marchi@ericsson.com>
15016
15017 * ser-mingw.c (ser_windows_raw): Remove reference to
15018 struct serial::current_timeout.
15019
5badf10a
IR
150202017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
15021
15022 PR tdep/20928
15023 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
15024 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
15025 (sparc64_fsr_type): Fix %fsr decoding.
15026
cee59b3f
TW
150272017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
15028
15029 * python/py-record-btrace.c (btpy_insn_data): Change return type
15030 for Python 2.
15031
639a9038
SM
150322017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
15033
15034 * spu-linux-nat.c (spu_fetch_inferior_registers,
15035 spu_store_inferior_registers): Use ptid from regcache, set and
15036 restore inferior_ptid.
15037 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
15038 Likewise.
15039
bcc0c096
SM
150402017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
15041
15042 * i386-linux-nat.c (fetch_register, store_register,
15043 i386_linux_fetch_inferior_registers,
15044 i386_linux_store_inferior_registers): Use ptid from regcache.
15045 * ia64-linux-nat.c (ia64_linux_fetch_register,
15046 ia64_linux_store_register): Likewise.
15047 * inf-ptrace.c (inf_ptrace_fetch_register,
15048 inf_ptrace_store_register): Likewise.
15049 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
15050 m32r_linux_store_inferior_registers): Likewise.
15051 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
15052 m68kbsd_store_inferior_registers): Likewise.
15053 * m68k-linux-nat.c (fetch_register, store_register,
15054 m68k_linux_fetch_inferior_registers,
15055 m68k_linux_store_inferior_registers): Likewise.
15056 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
15057 m88kbsd_store_inferior_registers): Likewise.
15058 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
15059 mips_fbsd_store_inferior_registers): Likewise.
15060 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
15061 mips64_linux_regsets_store_registers): Likewise.
15062 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
15063 mipsnbsd_store_inferior_registers): Likewise.
15064 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
15065 mips64obsd_store_inferior_registers): Likewise.
15066 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
15067 Likewise.
15068 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
15069 ppcfbsd_store_inferior_registers): Likewise.
15070 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
15071 ppc_linux_store_inferior_registers): Likewise.
15072 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
15073 ppcnbsd_store_inferior_registers): Likewise.
15074 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
15075 ppcobsd_store_registers): Likewise.
15076 * procfs.c (procfs_fetch_registers, procfs_store_registers):
15077 Likewise.
15078 * ravenscar-thread.c (ravenscar_fetch_registers,
15079 ravenscar_store_registers, ravenscar_prepare_to_store):
15080 Likewise.
15081 * record-btrace.c (record_btrace_fetch_registers,
15082 record_btrace_store_registers, record_btrace_prepare_to_store):
15083 Likewise.
15084 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
15085 Lookup inferior using ptid from regcache, instead of
15086 current_inferior.
15087 * remote.c (remote_fetch_registers, remote_store_registers): Use
15088 ptid from regcache.
15089 * rs6000-nat.c (fetch_register, store_register): Likewise.
15090 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
15091 s390_linux_store_inferior_registers): Likewise.
15092 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
15093 shnbsd_store_inferior_registers): Likewise.
15094 * sol-thread.c (sol_thread_fetch_registers,
15095 sol_thread_store_registers): Likewise.
15096 * sparc-nat.c (sparc_fetch_inferior_registers,
15097 sparc_store_inferior_registers): Likewise.
15098 * tilegx-linux-nat.c (fetch_inferior_registers,
15099 store_inferior_registers): Likewise.
15100 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
15101 vaxbsd_store_inferior_registers): Likewise.
15102 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
15103 store_xtregs): Likewise.
15104
c0f55cc6
AV
151052017-03-20 Artemiy Volkov <artemiyv@acm.org>
15106
15107 PR gdb/14441
15108 * NEWS: Mention support for rvalue references in GDB and python.
15109 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
15110 supports both lvalue and rvalue references.
15111
15c0a2a9
AV
151122017-03-20 Artemiy Volkov <artemiyv@acm.org>
15113
15114 PR gdb/14441
15115 * gdbtypes.c (rank_one_type): Implement overloading
15116 resolution rules regarding rvalue references.
15117
aa006118
AV
151182017-03-20 Artemiy Volkov <artemiyv@acm.org>
15119
15120 PR gdb/14441
15121 * aarch64-tdep.c (aarch64_type_align)
15122 (aarch64_extract_return_value, aarch64_store_return_value): Change
15123 lvalue reference type checks to general reference type checks.
15124 * amd64-tdep.c (amd64_classify): Likewise.
15125 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
15126 Likewise.
15127 * arm-tdep.c (arm_type_align, arm_extract_return_value)
15128 (arm_store_return_value): Likewise.
15129 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
15130 * c-typeprint.c (c_print_type): Likewise.
15131 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
15132 (cplus_number_of_children, cplus_describe_child): Likewise.
15133 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
15134 * completer.c (expression_completer): Likewise.
15135 * cp-support.c (make_symbol_overload_list_adl_namespace):
15136 Likewise.
15137 * darwin-nat-info.c (info_mach_region_command): Likewise.
15138 * dwarf2loc.c (entry_data_value_coerce_ref)
15139 (value_of_dwarf_reg_entry): Likewise.
15140 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
15141 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
15142 Likewise.
15143 * findvar.c (extract_typed_address, store_typed_address):
15144 Likewise.
15145 * gdbtypes.c (rank_one_type): Likewise.
15146 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
15147 * infcall.c (value_arg_coerce): Likewise.
15148 * language.c (pointer_type): Likewise.
15149 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
15150 Likewise.
15151 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
15152 * mn10300-tdep.c (mn10300_type_align): Likewise.
15153 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
15154 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
15155 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
15156 Likewise.
15157 * printcmd.c (print_formatted, x_command): Likewise.
15158 * python/py-type.c (typy_get_composite, typy_template_argument):
15159 Likewise.
15160 * python/py-value.c (valpy_referenced_value)
15161 (valpy_get_dynamic_type, value_has_field): Likewise.
15162 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
15163 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
15164 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
15165 * spu-tdep.c (spu_scalar_value_p): Likewise.
15166 * symtab.c (lookup_symbol_aux): Likewise.
15167 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
15168 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
15169 Likewise.
15170 * valops.c (value_cast_pointers, value_cast)
15171 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
15172 (value_struct_elt, value_struct_elt_bitpos)
15173 (value_find_oload_method_list, find_overload_match)
15174 (value_rtti_indirect_type): Likewise.
15175 * valprint.c (val_print_scalar_type_p, generic_val_print):
15176 Likewise.
15177 * value.c (value_actual_type, value_as_address, unpack_long)
15178 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
15179 (coerce_ref): Likewise.
15180 * varobj.c (varobj_get_value_type): Likewise.
15181
3fcf899d
AV
151822017-03-20 Artemiy Volkov <artemiyv@acm.org>
15183
15184 PR gdb/14441
15185 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
15186 table of constants.
15187 * python/lib/gdb/command/explore.py: Support exploring values
15188 of rvalue reference types.
15189 * python/lib/gdb/types.py: Implement get_basic_type() for
15190 rvalue reference types.
15191 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
15192 constant.
15193 * python/py-value.c (valpy_getitem): Add an rvalue reference
15194 check.
15195 (valpy_reference_value): Add new parameter "refcode".
15196 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
15197 New wrappers for valpy_reference_value().
15198 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
15199 (gdbpy_invoke_xmethod): Likewise.
15200
4297a3f0
AV
152012017-03-20 Artemiy Volkov <artemiyv@acm.org>
15202
15203 PR gdb/14441
15204 * dwarf2read.c (process_die, read_type_die_1): Handle the
15205 DW_TAG_rvalue_reference_type DIE.
15206 (read_tag_reference_type): Add new parameter "refcode".
15207
e1cb3213
AV
152082017-03-20 Artemiy Volkov <artemiyv@acm.org>
15209
15210 PR gdb/14441
15211 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
15212 (c_type_print_modifier, c_type_print_varspec_suffix)
15213 (c_type_print_base): Support printing rvalue reference types.
15214 * c-valprint.c (c_val_print, c_value_print): Support printing
15215 rvalue reference values.
15216
e4347c89
AV
152172017-03-20 Artemiy Volkov <artemiyv@acm.org>
15218
15219 PR gdb/14441
15220 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
15221 typename.
15222 * cp-support.c (replace_typedefs): Handle
15223 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
15224 * python/py-type.c (typy_lookup_type): Likewise.
15225
53cc15f5
AV
152262017-03-20 Artemiy Volkov <artemiyv@acm.org>
15227
15228 PR gdb/14441
15229 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
15230 * parse.c (insert_type): Change assert statement.
15231 (follow_types): Handle rvalue reference types.
15232 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
15233 constant.
15234
a65cfae5
AV
152352017-03-20 Artemiy Volkov <artemiyv@acm.org>
15236
15237 PR gdb/14441
15238 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
15239 value_ref() interface.
15240 * c-valprint.c (c_value_print): Likewise.
15241 * infcall.c (value_arg_coerce): Likewise.
15242 * python/py-value.c (valpy_reference_value): Likewise.
15243 * valops.c (value_cast, value_reinterpret_cast)
15244 (value_dynamic_cast, typecmp): Likewise.
15245 (value_ref): Parameterize by kind of return value reference type.
15246 * value.h (value_ref): Add new parameter "refcode".
15247
3b224330
AV
152482017-03-20 Artemiy Volkov <artemiyv@acm.org>
15249
15250 PR gdb/14441
15251 * dwarf2read.c (read_tag_reference_type): Use
15252 lookup_lvalue_reference_type() instead of lookup_reference_type().
15253 * eval.c (evaluate_subexp_standard): Likewise.
15254 * f-exp.y: Likewise.
15255 * gdbtypes.c (make_reference_type, lookup_reference_type):
15256 Generalize with rvalue reference types.
15257 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
15258 convenience wrappers for lookup_reference_type().
15259 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
15260 reference kind parameter.
15261 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
15262 wrappers for lookup_reference_type().
15263 * guile/scm-type.c (gdbscm_type_reference): Use
15264 lookup_lvalue_reference_type() instead of lookup_reference_type().
15265 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
15266 * parse.c (follow_types): Likewise.
15267 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
15268 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
15269 Likewise.
15270 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
15271 (gdbpy_invoke_xmethod): Likewise.
15272 * stabsread.c: Provide extra argument to make_reference_type()
15273 call.
15274 * valops.c (value_ref, value_rtti_indirect_type): Use
15275 lookup_lvalue_reference_type() instead of lookup_reference_type().
15276
f9aeb8d4
AV
152772017-03-20 Artemiy Volkov <artemiyv@acm.org>
15278
15279 PR gdb/14441
15280 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
15281 (TYPE_IS_REFERENCE): New macro.
15282 (struct type): Add rvalue_reference_type field.
15283 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
15284
51457a05
MAL
152852017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
15286
15287 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
15288 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
15289 New function definition.
15290 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
15291 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
15292 New function declaration.
15293 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
15294 * mi/mi-interp.h: New file.
15295 * solib.c (info_sharedlibrary_command): Replace for loop with
15296 ALL_SO_LIBS macro
15297 * solib.h (update_solib_list): New function declaration.
15298 (so_list_head): Move macro.
15299 * solist.h (ALL_SO_LIBS): New macro.
15300
e696b3ad
MAL
153012017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
15302
15303 * infcmd.c (post_create_inferior): Remove unused argument in
15304 call to solib_add.
15305 * remote.c (remote_start_remote): Likewise.
15306 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
15307 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
15308 (enable_break): Likewise.
15309 * solib.c (update_solib_list): Remove unused target argument
15310 and its documentation.
15311 (solib_add): Remove unused target argument. Remove unused
15312 argument in call to update_solib_list.
15313 (info_sharedlibrary_command): Remove unused argument in call
15314 to update_solib_list.
15315 (sharedlibrary_command): Remove unused argument in call to
15316 solib_add.
15317 (handle_solib_event): Likewise.
15318 (reload_shared_libraries): Likewise.
15319 * solib.h (solib_add): Remove unused target argument.
15320
dcb84eda
AA
153212017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
15322
15323 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
15324 (s390_displaced_step_fixup): Cover relative branches with the
15325 default fixup handling. This fixes lack of support for some
15326 relative branch instructions.
15327
d9cb6cdc
SM
153282017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15329
15330 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
15331 ptid from regcache.
15332
1afaf9f4
SM
153332017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15334
15335 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
15336 i386_darwin_store_inferior_registers): Use ptid from regcache.
15337
aac12e24
SM
153382017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15339
15340 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
15341 i386bsd_store_inferior_registers): Use ptid from regcache.
15342
bbe1eef1
SM
153432017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15344
15345 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
15346 hppaobsd_store_registers): Use ptid from regcache.
15347
10799020
SM
153482017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15349
15350 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
15351 hppanbsd_store_registers): Use ptid from regcache.
15352
00204cf7
SM
153532017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15354
15355 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
15356 from regcache. Use get_ptrace_pid.
15357
11a33714
SM
153582017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15359
15360 * corelow.c (get_core_register_section): Use ptid from regcache,
15361 update doc.
15362
317cd492
SM
153632017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15364
15365 * bsd-uthread.c (bsd_uthread_fetch_registers,
15366 bsd_uthread_store_registers): Use ptid from regcache, set and
15367 restore inferior_ptid.
15368
9ac8a7c2
SM
153692017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15370
15371 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
15372 fetch_fp_regs, store_register, store_regs, store_fp_register,
15373 store_fp_regs): Use ptid from regcache.
15374
4ac4bb6a
SM
153752017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15376
15377 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
15378 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
15379 store_vfp_regs): Use ptid from regcache.
15380
9bcbdca8
PA
153812017-03-17 Pedro Alves <palves@redhat.com>
15382
15383 PR remote/21188
15384 * ser-base.c (ser_base_wait_for): Add comment.
15385 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
15386 version.
15387 * ser-unix.c (hardwire_raw): Remove reference to
15388 scb->current_timeout.
15389 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
15390 (hardwire_ops): Install ser_base_readchar instead of
15391 hardwire_readchar.
15392 * serial.h (struct serial) <current_timeout, timeout_remaining>:
15393 Remove fields.
15394
7503099f
JG
153952017-03-17 Jonah Graham <jonah@kichwacoders.com>
15396
15397 PR gdb/19637
15398 * python/lib/gdb/printer/bound_registers.py: Add support for
15399 Python 3.
15400
7942e96e
AA
154012017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
15402
15403 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
15404 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
15405 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
15406 byte_offset to subobj_byte_offset. Fix the handling of
15407 DWARF_VALUE_STACK on big-endian targets when coming via an
15408 implicit pointer.
15409 (dwarf2_evaluate_loc_desc): Adjust call to
15410 dwarf2_evaluate_loc_desc_full.
15411 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
15412 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
15413
ba14f379
YQ
154142017-03-16 Yao Qi <yao.qi@linaro.org>
15415
15416 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
15417 and REVSH instructions.
15418
b121eeb9
YQ
154192017-03-16 Yao Qi <yao.qi@linaro.org>
15420
15421 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
15422 (arm_record_test): Declare.
15423 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
15424 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
15425 align with the manual.
15426 (thumb_record_misc): Adjust the code order to align with the
15427 manual.
15428 (thumb2_record_decode_insn_handler): Fix instruction matching.
15429 (instruction_reader_thumb): New class.
15430 (arm_record_test): New function.
15431
728a7913
YQ
154322017-03-16 Yao Qi <yao.qi@linaro.org>
15433
15434 * arm-tdep.c (abstract_memory_reader): New class.
15435 (instruction_reader): New class.
15436 (extract_arm_insn): Add argument 'reader'. Callers updated.
15437 (decode_insn): Likewise.
15438
34b43320
DE
154392017-03-16 Doug Evans <dje@google.com>
15440
a7c0469f
DE
15441 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
15442 member. Change type of TYPE member to SCM. All uses updated.
15443 (lsscm_make_lazy_string_smob): Add assert.
15444 (lsscm_make_lazy_string): Flag bad length values.
15445 (lsscm_elt_type): New function.
15446 (gdbscm_lazy_string_to_value): Rewrite to use
15447 lsscm_safe_lazy_string_to_value.
15448 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
15449 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
15450 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
15451 in incoming type.
15452 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
15453 * guile/scm-type.c (tyscm_scm_to_type): New function.
15454
154552017-03-15 Doug Evans <dje@google.com>
15456
34b43320
DE
15457 PR python/17728, python/18439, python/18779
15458 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
15459 member. Change type of TYPE member to PyObject *. All uses updated.
15460 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
15461 (gdbpy_create_lazy_string_object): Flag bad length values.
15462 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
15463 Handle typedefs in incoming type.
15464 (stpy_lazy_string_elt_type): New function.
15465 (gdbpy_extract_lazy_string): Call it.
15466 * python/py-value.c (valpy_lazy_string): Flag bad length values.
15467 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
15468 typedefs in incoming type.
15469
a3a5fecc
DE
154702017-03-16 Doug Evans <dje@google.com>
15471
15472 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
15473 * guile/scm-type.c (tyscm_scm_to_type): New function.
15474
28f1c605
JW
154752017-03-16 Jiong Wang <jiong.wang@arm.com>
15476
15477 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
15478 "ULONGEST" for "skip".
15479
87c336f6
AA
154802017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
15481
15482 PR gdb/21220
15483 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
15484 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
15485 (inf_ptrace_peek_poke): ...here. New function. Now also loop
15486 over ptrace peek/poke until end of buffer or error.
15487
cf81cf60
SM
154882017-03-14 Simon Marchi <simon.marchi@ericsson.com>
15489
15490 * parse.c (length_of_subexp): Make static.
15491 * parser-defs.h (length_of_subexp): Remove.
15492
a379284a
AA
154932017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
15494
15495 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
15496 as well.
15497
8a6200ba
PA
154982017-03-14 Pedro Alves <palves@redhat.com>
15499
15500 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
15501 (main): Use std::unique_ptr. Remove calls to
15502 cp_demangled_name_parse_free.
15503
f79ec206
SM
155042017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15505
15506 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
15507 alphabsd_store_inferior_registers): Use regcache->ptid instead
15508 of inferior_ptid.
15509
edb5fb00
SM
155102017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15511
15512 * aix-thread.c (aix_thread_fetch_registers,
15513 aix_thread_store_registers): Use regcache->ptid instead of
15514 inferior_ptid.
15515
55119686
SM
155162017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15517
15518 * aarch64-linux-nat.c (fetch_gregs_from_thread,
15519 store_gregs_to_thread, fetch_fpregs_from_thread,
15520 store_fpregs_to_thread): Use regcache->ptid instead of
15521 inferior_ptid.
15522
6a06fbb7
SM
155232017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15524
15525 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
15526 amd64_linux_fetch_inferior_registers): Use regcache->ptid
15527 instead of inferior_ptid.
15528
c6386875
SM
155292017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15530
15531 * target.c (target_fetch_registers, target_store_registers): Add
15532 assert.
15533
ddaaf0fb
SM
155342017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15535
15536 * regcache.h (regcache_get_ptid): New function.
15537 * regcache.c (regcache_get_ptid): New function.
15538
b9da89d1 155392017-03-13 Mark Wielaard <mark@klomp.org>
15540
15541 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
15542
5f4d1085
KS
155432017-03-10 Keith Seitz <keiths@redhat.com>
15544
15545 PR c++/8218
15546 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
15547
c65d6b55
PA
155482017-03-08 Pedro Alves <palves@redhat.com>
15549
15550 PR gdb/18360
15551 * infrun.c (start_step_over, do_target_resume, resume)
15552 (restart_threads): Assert we're not resuming a thread that is
15553 meant to be stopped.
15554 (infrun_thread_stop_requested_callback): Delete.
15555 (infrun_thread_stop_requested): If the thread is internally
15556 stopped, queue a pending stop event and clear the thread's
15557 inline-frame state.
15558 (handle_stop_requested): New function.
15559 (handle_syscall_event, handle_inferior_event_1): Use
15560 handle_stop_requested.
15561 (handle_stop_requested): New function.
15562 (handle_signal_stop): Set the thread's stop_signal here instead of
15563 at caller.
15564 (finish_step_over): Clear step over info unconditionally.
15565 (handle_signal_stop): If the user had interrupted the event
15566 thread, consider the stop a random signal.
15567 (handle_signal_stop) <signal arrived while stepping over
15568 breakpoint>: Don't restart threads here.
15569 (stop_waiting): Don't clear step-over info here.
15570
15c22686
PA
155712017-03-08 Pedro Alves <palves@redhat.com>
15572
15573 PR 21206
15574 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
15575 goes to argument 2, not 1.
15576
6e5d74e7
PA
155772017-03-08 Pedro Alves <palves@redhat.com>
15578
15579 PR cli/21218
15580 * top.c (gdb_readline_wrapper): Avoid passing NULL to
15581 display_gdb_prompt.
15582 (command_line_input): Add comment.
15583
9753a2f6
PA
155842017-03-08 Pedro Alves <palves@redhat.com>
15585
15586 PR tui/21216
15587 * tui/tui-file.c (tui_file::write): New.
15588 * tui/tui-file.h (tui_file): Override "write".
15589 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
15590 factored out from ...
15591 (tui_puts): ... here.
15592 (tui_putc): Use them.
15593 (tui_write): New function.
15594 * tui/tui-io.h (tui_write): Declare.
15595
1672e0d9
SDJ
155962017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
15597
15598 * Makefile.in (SFILES): Replace "environ.c" with
15599 "common/environ.c".
15600 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
15601 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
15602 to...
15603 * common/environ.c: ... here.
15604 * environ.h: Moved to...
15605 * common/environ.h: ... here.
15606
f7bb4e3a
PB
156072017-03-07 Peter Bergner <bergner@vnet.ibm.com>
15608
15609 * gdbarch.sh (pstring_ptr): New static function.
15610 (gdbarch_disassembler_options): Use it.
15611 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
15612 not valid_disassembler_option->name.
15613 * gdbarch.c: Regenerate.
15614
e45ced6c
PB
156152017-03-07 Peter Bergner <bergner@vnet.ibm.com>
15616
15617 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
15618
5f6fd321
PA
156192017-03-07 Pedro Alves <palves@redhat.com>
15620
15621 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
15622
6dbb839a 156232017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
4a612d6f
WT
15624
15625 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
15626 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
15627 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
6dbb839a 15628 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
4a612d6f 15629
d274ecf4
SM
156302017-03-06 Simon Marchi <simon.marchi@ericsson.com>
15631
15632 * xtensa-linux-nat.c (fetch_gregs): Remove const.
15633
df97be55
SM
156342017-03-03 Simon Marchi <simon.marchi@ericsson.com>
15635
15636 * remote.c (remote_add_target_side_commands): Use range-based
15637 for loop.
15638
7d45f3df
YQ
156392017-03-03 Yao Qi <yao.qi@linaro.org>
15640
15641 PR gdb/21165
15642 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
15643 value is lazy.
15644 * valprint.c (common_val_print): Likewise.
15645
65b48a81
PB
156462017-02-28 Peter Bergner <bergner@vnet.ibm.com>
15647
15648 * NEWS: Mention new set/show disassembler-options commands.
15649 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
15650 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
15651 (prospective_options): New static variable.
15652 (gdb_disassembler::gdb_disassembler): Initialize
15653 m_di.disassembler_options.
15654 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
15655 (get_disassembler_options): New function.
15656 (set_disassembler_options): Likewise.
15657 (set_disassembler_options_sfunc): Likewise.
15658 (show_disassembler_options_sfunc): Likewise.
15659 (disassembler_options_completer): Likewise.
15660 (_initialize_disasm): Likewise.
15661 * disasm.h (get_disassembler_options): New prototype.
15662 (set_disassembler_options): Likewise.
15663 * gdbarch.sh (gdbarch_disassembler_options): New variable.
15664 (gdbarch_verify_disassembler_options): Likewise.
15665 * gdbarch.c: Regenerate.
15666 * gdbarch.h: Likewise.
15667 * arm-tdep.c (num_disassembly_options): Delete.
15668 (set_disassembly_style): Likewise.
15669 (arm_disassembler_options): New static variable.
15670 (set_disassembly_style_sfunc): Convert short style name into long
15671 option name. Call set_disassembler_options.
15672 (show_disassembly_style_sfunc): New function.
15673 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
15674 set_gdbarch_verify_disassembler_options.
15675 (_initialize_arm_tdep): Delete regnames variable and update callers.
15676 (arm_disassembler_options): Initialize.
15677 (disasm_options): New variable.
15678 (num_disassembly_options): Rename from this...
15679 (num_disassembly_styles): ...to this. Compute by scanning through
15680 disasm_options.
15681 (valid_disassembly_styles): Initialize using disasm_options.
15682 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
15683 set_arm_regname_option.
15684 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
15685 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
15686 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
15687 set_gdbarch_verify_disassembler_options.
15688 * s390-tdep.c (s390_disassembler_options): New static variable.
15689 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
15690 set_gdbarch_verify_disassembler_options.
15691
d538e36d
SM
156922017-02-27 Simon Marchi <simon.marchi@ericsson.com>
15693
15694 * remote.c (remote_add_target_side_condition): Remove "struct"
15695 keyword from range-based for loop.
15696
83621223
SM
156972017-02-27 Simon Marchi <simon.marchi@ericsson.com>
15698
15699 * remote.c (remote_add_target_side_condition): Use range-based
15700 for loop. Update comment.
15701
2123df0e
YQ
157022017-02-27 Yao Qi <yao.qi@linaro.org>
15703
15704 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
15705
8e368124
AH
157062017-02-26 Alan Hayward <alan.hayward@arm.com>
15707
15708 * regcache.c (regcache_raw_update): New function.
15709 (regcache_raw_read): Move code to regcache_raw_update.
15710 * regcache.h (regcache_raw_update): New declaration.
15711 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
15712
a49dd8dd
JK
157132017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
15714
15715 * dwarf2read.c (create_debug_type_hash_table): Initialize
15716 header.signature and header.type_offset_in_tu.
15717
34e4bae9
PA
157182017-02-24 Pedro Alves <palves@redhat.com>
15719
15720 * symtab.c (make_file_symbol_completion_list_1): Use
15721 add_symtab_completions.
15722
b0e4b369
AH
157232017-02-24 Alan Hayward <alan.hayward@arm.com>
15724
15725 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
15726
975c21ab
AH
157272017-02-24 Alan Hayward <alan.hayward@arm.com>
15728
15729 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
15730 I386_MAX_REGISTER_SIZE.
15731 (i386_pseudo_register_write): Likewise.
15732 (i386_process_record): Likewise.
15733 * i387-tdep.c (i387_supply_xsave): Likewise.
15734 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
15735 (store_register): Likewise.
15736
14bc53a8
PA
157372017-02-23 Pedro Alves <palves@redhat.com>
15738
15739 * ada-lang.c: Include "common/function-view.h".
15740 (ada_iterate_over_symbols): Adjust to use function_view as
15741 callback type.
15742 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
15743 (ada_make_symbol_completion_list): Use a lambda.
15744 (ada_exc_search_name_matches): Delete.
15745 (name_matches_regex): New.
15746 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
15747 * compile/compile-c-support.c: Include "common/function-view.h".
15748 (print_one_macro): Change prototype to accept a ui_file pointer.
15749 (write_macro_definitions): Use a lambda.
15750 * dwarf2read.c: Include "common/function-view.h".
15751 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
15752 (dw2_expand_symtabs_matching): Adjust to use function_view as
15753 callback type.
15754 * language.h: Include "common/function-view.h".
15755 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
15756 function_view as callback type.
15757 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
15758 * linespec.c: Include "common/function-view.h".
15759 (collect_info::add_symbol): New method.
15760 (struct symbol_and_data_callback, iterate_inline_only, struct
15761 symbol_matcher_data, iterate_name_matcher): Delete.
15762 (iterate_over_all_matching_symtabs): Adjust to use function_view
15763 as callback type and lambdas.
15764 (iterate_over_file_blocks): Adjust to use function_view as
15765 callback type.
15766 (decode_compound_collector): Now a class with private fields.
15767 (decode_compound_collector::release_symbols): New method.
15768 (collect_one_symbol): Rename to...
15769 (decode_compound_collector::operator()): ... this and adjust.
15770 (lookup_prefix_sym): decode_compound_collector construction bits
15771 move to decode_compound_collector ctor. Pass the
15772 decode_compound_collector object directly as callback. Remove
15773 cleanups and use decode_compound_collector::release_symbols
15774 instead.
15775 (symtab_collector): Now a class with private fields.
15776 (symtab_collector::release_symtabs): New method.
15777 (add_symtabs_to_list): Rename to...
15778 (symtab_collector::operator()): ... this and adjust.
15779 (collect_symtabs_from_filename): symtab_collector construction
15780 bits move to symtab_collector ctor. Pass the symtab_collector
15781 object directly as callback. Remove cleanups and use
15782 symtab_collector::release_symtabs instead.
15783 (collect_symbols): Delete.
15784 (add_matching_symbols_to_info): Use lambdas.
15785 * macrocmd.c (print_macro_callback): Delete.
15786 (info_macro_command): Use a lambda.
15787 (info_macros_command): Pass print_macro_definition as callable
15788 directly.
15789 (print_one_macro): Remove 'ignore' parameter.
15790 (macro_list_command): Adjust.
15791 * macrotab.c (macro_for_each_data::fn): Now a function_view.
15792 (macro_for_each_data::user_data): Delete field.
15793 (foreach_macro): Adjust to call the function_view.
15794 (macro_for_each): Adjust to use function_view as callback type.
15795 (foreach_macro_in_scope): Adjust to call the function_view.
15796 (macro_for_each_in_scope): Adjust to use function_view as callback
15797 type.
15798 * macrotab.h: Include "common/function-view.h".
15799 (macro_callback_fn): Declare a prototype instead of a pointer.
15800 Remove "user_data" parameter.
15801 (macro_for_each, macro_for_each_in_scope): Adjust to use
15802 function_view as callback type.
15803 * psymtab.c (partial_map_expand_apply)
15804 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
15805 Adjust to use function_view as callback type and to return bool.
15806 (psym_expand_symtabs_matching): Adjust to use function_view as
15807 callback types.
15808 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
15809 to use function_view as callback type and to return bool.
15810 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
15811 callback types.
15812 * symfile.c (expand_symtabs_matching): Adjust to use function_view
15813 as callback types.
15814 * symfile.h: Include "common/function-view.h".
15815 (expand_symtabs_file_matcher_ftype)
15816 (expand_symtabs_symbol_matcher_ftype)
15817 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
15818 return bool.
15819 (quick_symbol_functions::map_symtabs_matching_filename)
15820 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
15821 function_view as callback type and return bool.
15822 (expand_symtabs_matching): Adjust to use function_view as callback
15823 type.
15824 (maintenance_expand_name_matcher)
15825 (maintenance_expand_file_matcher): Delete.
15826 (maintenance_expand_symtabs): Use lambdas.
15827 * symtab.c (iterate_over_some_symtabs): Adjust to use
15828 function_view as callback types and return bool.
15829 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
15830 of a cleanup.
15831 (lookup_symtab_callback): Delete.
15832 (lookup_symtab): Use a lambda.
15833 (iterate_over_symbols): Adjust to use function_view as callback
15834 type.
15835 (struct search_symbols_data, search_symbols_file_matches)
15836 (search_symbols_name_matches): Delete.
15837 (search_symbols): Use a pair of lambdas.
15838 (struct add_name_data, add_macro_name, symbol_completion_matcher)
15839 (symtab_expansion_callback): Delete.
15840 (default_make_symbol_completion_list_break_on_1): Use lambdas.
15841 * symtab.h: Include "common/function-view.h".
15842 (iterate_over_some_symtabs): Adjust to use function_view as
15843 callback type and return bool.
15844 (iterate_over_symtabs): Adjust to use function_view as callback
15845 type.
15846 (symbol_found_callback_ftype): Remove 'data' parameter and return
15847 bool.
15848 (iterate_over_symbols): Adjust to use function_view as callback
15849 type.
15850
07e253aa
PA
158512017-02-23 Pedro Alves <palves@redhat.com>
15852
15853 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
15854 (%.o) <unittests/%.c>: New pattern.
15855 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
15856 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
15857 * common/function-view.h: New file.
15858 * unittests/function-view-selftests.c: New file.
15859 * configure: Regenerate.
15860
8eaf5320
SM
158612017-02-23 Simon Marchi <simon.marchi@ericsson.com>
15862
15863 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
15864 inferior_ptid.
15865 * go32-nat.c (go32_thread_alive): Likewise.
15866
38768751
YQ
158672017-02-23 Yao Qi <yao.qi@linaro.org>
15868
15869 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
15870 delete.
15871
0a8beaba
YQ
158722017-02-23 Yao Qi <yao.qi@linaro.org>
15873
15874 * varobj.c (varobj_clear_saved_item): Use delete instead of
15875 xfree.
15876 (update_dynamic_varobj_children): Likewise.
15877
58fdfd2c
JK
158782017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
15879
15880 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
15881
1b90b139
SM
158822017-02-21 Simon Marchi <simon.marchi@ericsson.com>
15883
15884 * common/enum-flags.h (enum_flags::enum_flags): Initialize
15885 m_enum_value to 0 in default constructor.
15886
2039d74e
EBM
158872017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
15888
15889 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
15890 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
15891 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
15892 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
15893 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
15894 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
15895 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
15896 IS_STORE_CONDITIONAL_INSN.
15897
7814882a
JK
158982017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
15899
15900 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
15901
0ae60b63
JK
159022017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15903
15904 * NEWS (Changes since GDB 7.12): Add DWARF-5.
15905
0224619f
JK
159062017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15907
15908 * dwarf2read.c (skip_one_die, read_attribute_value)
15909 (dwarf2_const_value_attr, dump_die_shallow)
15910 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
15911 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
15912
0af92d60
JK
159132017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15914
15915 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
15916 (dwarf_parse_macro_header): Accept DWARF version 5.
15917 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
15918
216f72a1
JK
159192017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15920
15921 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
15922 DW_AT_GNU_*.
15923 * common/common-exceptions.h (enum errors): Likewise.
15924 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
15925 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
15926 (dwarf_expr_context::execute_stack_op): Likewise.
15927 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
15928 Likewise.
15929 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
15930 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
15931 (show_entry_values_debug, call_site_to_target_addr)
15932 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
15933 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
15934 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
15935 (value_of_dwarf_block_entry, indirect_pieced_value)
15936 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
15937 (disassemble_dwarf_expression): Likewise.
15938 * dwarf2read.c (process_die, inherit_abstract_dies)
15939 (read_call_site_scope): Likewise.
15940 * gdbtypes.h (struct func_type, struct call_site_parameter)
15941 (struct call_site): Likewise.
15942 * stack.c (read_frame_arg): Likewise.
15943 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
15944
43988095
JK
159452017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15946
15947 * defs.h (read_unsigned_leb128): New declaration.
15948 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
15949 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
15950 (dwarf2_find_location_expression): Call also
15951 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
15952 * dwarf2loc.h (dwarf2_version): New declaration.
15953 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
15954 rnglists.
15955 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
15956 .debug_rnglists.
15957 (struct dwop_section_names): Add loclists_dwo.
15958 (dwop_section_names): Add .debug_loclists.dwo.
15959 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
15960 (struct dwarf2_per_cu_data): Add dwarf_version.
15961 (struct dwo_sections): Add loclists.
15962 (struct attr_abbrev): Add implicit_const.
15963 (read_indirect_line_string): New declaration.
15964 (read_unsigned_leb128): Delete declaration.
15965 (rcuh_kind): New definition.
15966 (read_and_check_comp_unit_head): Change parameter
15967 is_debug_types_section to section_kind.
15968 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
15969 (read_comp_unit_head): Change parameter abfd to section, add parameter
15970 section_kind. Handle DWARF-5.
15971 (error_check_comp_unit_head): Accept also DWARF version 5.
15972 (read_and_check_comp_unit_head): Change parameter
15973 is_debug_types_section to section_kind.
15974 (read_and_check_type_unit_head): Delete function.
15975 (read_abbrev_offset): Handle DWARF-5.
15976 (create_debug_type_hash_table): Add parameter section_kind. Process
15977 only DW_UT_type. Use signature and type_offset_in_tu from struct
15978 comp_unit_head.
15979 (create_debug_types_hash_table): Update create_debug_type_hash_table
15980 caller.
15981 (create_all_type_units): Call create_debug_type_hash_table.
15982 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
15983 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
15984 caller.
15985 (skip_one_die): Handle DW_FORM_implicit_const.
15986 (dwarf2_rnglists_process): New function.
15987 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
15988 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
15989 (read_attribute_value): Handle DW_FORM_implicit_const,
15990 DW_FORM_line_strp.
15991 (read_attribute): Handle DW_FORM_implicit_const.
15992 (read_indirect_string_at_offset_from): New function from
15993 read_indirect_string_at_offset.
15994 (read_indirect_string_at_offset): Call
15995 read_indirect_string_at_offset_from.
15996 (read_indirect_line_string_at_offset): New function.
15997 (read_indirect_string): New function comment.
15998 (read_indirect_line_string): New function.
15999 (read_unsigned_leb128): Make it global.
16000 (dwarf2_string_attr): Handle DWARF-5.
16001 (add_include_dir_stub, read_formatted_entries): New functions.
16002 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
16003 Handle DWARF-5.
16004 (per_cu_header_read_in): Update read_comp_unit_head caller.
16005 (dwarf2_version): New function.
16006 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
16007 rnglists.
16008 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
16009 fields.
16010
22d2f3ab
JK
160112017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16012
16013 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
16014
5f46c5a5
JK
160152017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16016
16017 * dwarf2read.c (dwarf2_ranges_process): New function from
16018 dwarf2_ranges_read.
16019 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
16020 dwarf2_ranges_process.
16021
78d4d2c5
JK
160222017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16023
16024 * dwarf2read.c (create_debug_type_hash_table): New function from
16025 create_debug_types_hash_table.
16026 (create_debug_types_hash_table): Call create_debug_type_hash_table.
16027 (create_all_type_units, open_and_init_dwo_file): Update
16028 create_debug_types_hash_table callers.
16029
1b076f25
SDJ
160302017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
16031
16032 PR gdb/16188
16033 * fork-child.c (trace_start_error): Fix thinko. va_end should
16034 refer to 'ap', not 'args'.
16035
0db8980c
SDJ
160362017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
16037 Pedro Alves <palves@redhat.com>
16038
16039 PR gdb/16188
16040 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
16041 calls succeeded.
16042 * fork-child.c (trace_start_error): New function.
16043 (trace_start_error_with_name): Likewise.
16044 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
16045 * inf-ptrace.c (inf_ptrace_me): Likewise.
16046 * inferior.h (trace_start_error): New prototype.
16047 (trace_start_error_with_name): Likewise.
16048
99e8a4f9
SDJ
160492017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
16050
16051 PR gdb/21164
16052 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
16053 NULL before using it.
16054 * symmisc.c (maintenance_print_symbols): Likewise.
16055 (maintenance_print_msymbols): Likewise.
16056
4e746bb6
TW
160572017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16058
16059 * NEWS: Add record Python bindings entry.
16060
160612017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16062
16063 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
16064 py-record-full.o.
16065 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
16066 * python/py-record-btrace.c, python/py-record-btrace.h,
16067 python/py-record-full.c, python/py-record-full.h: New file.
16068 * python/py-record.c: Add include for py-record-btrace.h and
16069 py-record-full.h.
16070 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
16071 recpy_instruction_history, recpy_function_call_history, recpy_begin,
16072 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
16073 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
16074 New definition.
16075 (gdbpy_initialize_btrace): New export.
16076 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
16077
160782017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16079
16080 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
16081 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
16082 * python/py-record.c: New file.
16083 * python/python-internal.h (gdbpy_start_recording,
16084 gdbpy_current_recording, gdpy_stop_recording,
16085 gdbpy_initialize_record): New export.
16086 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
16087 (python_GdbMethods): Add gdbpy_start_recording,
16088 gdbpy_current_recording and gdbpy_stop_recording.
16089
160902017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16091
16092 * record-btrace.c (record_btrace_record_method): New function.
16093 (init_record_btrace_ops): Initialize to_record_method.
16094 * record-full.c (record_full_record_method): New function.
16095 (init_record_full_ops, init_record_full_core_ops): Add
16096 record_full_record_method.
16097 * record.h (enum record_method): New enum.
16098 * target-debug.h (target_debug_print_enum_record_method: New define.
16099 * target-delegates.c: Regenerate.
16100 * target.c (target_record_method): New function.
16101 * target.h: Include record.h.
16102 (struct target_ops) <to_record_method>: New field.
16103 (target_record_method): New export.
16104
161052017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16106
16107 * record.h (record_start, record_stop): New export.
16108 * record.c (record_start, record_stop): New function.
16109
161102017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16111
16112 * btrace.c (btrace_fetch): Copy function call segments pointer
16113 into a vector.
16114 (btrace_clear): Clear the vector.
16115 (btrace_find_insn_by_number): Use binary search to find the correct
16116 function call segment.
16117 * btrace.h (brace_fun_p): New typedef.
16118 (struct btrace_thread_info) <functions>: New field.
16119
161202017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16121
16122 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
16123 * btrace.c (btrace_decode_error): ... here. New function.
16124 * btrace.h (btrace_decode_error): New export.
16125
161262017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16127
16128 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
16129 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
16130 btrace_find_insn_by_number): Remove special case for gaps.
16131 * btrace.h (btrace_insn_get_error): New export.
16132 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
16133 * record-btrace.c (btrace_insn_history): Print number for gaps.
16134 (record_btrace_info, record_btrace_goto): Handle gaps.
16135
3f77c769
TT
161362017-02-14 Tom Tromey <tom@tromey.com>
16137
16138 PR python/13598:
16139 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
16140 event.
16141 * python/py-evts.c (gdbpy_initialize_py_events): Add
16142 before_prompt registry.
16143 * python/py-events.h (events_object) <before_prompt>: New field.
16144
4c2c7ac6
MM
161452017-02-14 Markus Metzger <markus.t.metzger@intel.com>
16146
16147 * btrace.c (ftrace_new_switch): Preserve up link and flags.
16148
5cf30ebf
LM
161492017-02-13 Luis Machado <lgustavo@codesourcery.com>
16150
16151 * symfile (_initialize_symfile): Add usage text to the load command's
16152 help text.
16153
26a06916
SM
161542017-02-10 Simon Marchi <simon.marchi@ericsson.com>
16155
16156 * utils.c (defaulted_query): Don't query on secondary UIs.
16157
0b145e37
TT
161582017-02-10 Tom Tromey <tom@tromey.com>
16159
16160 * rust-lang.c (rust_get_disr_info): Remove unused variable.
16161
2d8365c4
TT
161622017-02-10 Tom Tromey <tom@tromey.com>
16163
16164 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
16165 "cleanup" local.
16166 * python/py-type.c (typy_legacy_template_argument): Remove
16167 unnecessary "cleanup" local.
16168
2bb8f231
TT
161692017-02-10 Tom Tromey <tom@tromey.com>
16170
16171 * python/python.c (do_start_initialization): New function, from
16172 _initialize_python.
16173 (_initialize_python): Call do_start_initialization.
16174 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
16175 goto.
16176
1bdfaf42
TT
161772017-02-10 Tom Tromey <tom@tromey.com>
16178
16179 * python/py-prettyprint.c (pretty_print_one_value): Use
16180 gdbpy_ref.
16181
88b6faea
TT
161822017-02-10 Tom Tromey <tom@tromey.com>
16183
16184 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
16185 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
16186 gdbpy_ref.
16187 * python/py-type.c (field_new): Use gdbpy_ref.
16188 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
16189 gdbpy_ref.
16190 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
16191 (py_free_pspace): Likewise.
16192 (pspace_to_pspace_object): Likewise.
16193 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
16194 (py_free_objfile): Likewise.
16195 (objfile_to_objfile_object): Likewise.
16196 * python/py-inferior.c (delete_thread_object): Use
16197 gdbpy_ref.
16198 (infpy_read_memory): Likewise.
16199 (py_free_inferior): Likewise.
16200 * python/py-evtregistry.c (create_eventregistry_object): Use
16201 gdbpy_ref.
16202 * python/py-event.c (create_event_object): Use gdbpy_ref.
16203
7780f186
TT
162042017-02-10 Tom Tromey <tom@tromey.com>
16205
16206 * python/py-ref.h (gdbpy_ref_policy): Now a template.
16207 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
16208 used.
16209 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
16210 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
16211 python/py-exitedevent.c, python/py-finishbreakpoint.c,
16212 python/py-framefilter.c, python/py-function.c,
16213 python/py-inferior.c, python/py-infevents.c,
16214 python/py-linetable.c, python/py-newobjfileevent.c,
16215 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
16216 python/py-signalevent.c, python/py-stopevent.c,
16217 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
16218 python/py-unwind.c, python/py-utils.c, python/py-value.c,
16219 python/py-varobj.c, python/py-xmethods.c, python/python.c,
16220 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
16221
d4b0bb18
TT
162222017-02-10 Tom Tromey <tom@tromey.com>
16223
16224 * ui-out.h (ui_out_emit_type): New class.
16225 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
16226 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
16227 and ui_out_emit_tuple.
16228 (enumerate_locals): Likewise.
16229 (py_mi_print_variables, py_print_locals, py_print_args): Use
16230 ui_out_emit_list.
16231 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
16232 ui_out_emit_list.
16233 * common/gdb_optional.h: New file.
16234
f67f945c
MG
162352017-02-10 Martin Galvan <martingalvan@sourceware.org>
16236
16237 * MAINTAINERS (Write After Approval): Update my e-mail address.
16238
18da0c51
MG
162392017-02-10 Martin Galvan <martingalvan@sourceware.org>
16240
16241 PR gdb/21122
16242 * breakpoint.c (_initialize_breakpoint): Update the help description
16243 of the 'commands' command to indicate that it takes a list argument.
16244
62c14536
SM
162452017-02-09 Simon Marchi <simon.marchi@ericsson.com>
16246
16247 * interps.c (current_interp_set_logging): Remove "return".
16248
ff6fa247
GB
162492017-02-09 Gary Benson <gbenson@redhat.com>
16250
16251 * symtab.c (add_symtab_completions): Prevent NULL pointer
16252 dereference.
16253
a474bd8e
PA
162542017-02-08 Pedro Alves <palves@redhat.com>
16255
16256 * interps.c (interp::interp): Remove reference to quiet_p.
16257 (interp_set): Make static. Remove dead "Switching to" output
16258 code.
16259 (interp_quiet_p, interp_set_quiet): Delete.
16260 (interpreter_exec_cmd): Don't set the interpreter quiet.
16261 * interps.h (interp_quiet_p): Make static.
16262 (class interp) <quiet_p>: Remove field
16263
3d7b173c
JG
162642017-02-08 Jerome Guitton <guitton@adacore.com>
16265
604c4576
JG
16266 * cli/cli-decode.c (find_command_name_length): Make it extern.
16267 * cli/cli-decode.h (find_command_name_length): Declare.
16268 * cli/cli-script.c (command_name_equals, line_first_arg):
16269 New functions.
16270 (process_next_line): Use cli-decode to parse command names.
16271 (build_command_line): Make args a constant pointer.
16272
162732017-02-08 Jerome Guitton <guitton@adacore.com>
6dbb839a 16274
3d7b173c
JG
16275 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
16276 Remove case-insensitive search.
16277
1291063d
JM
162782017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
16279
16280 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
16281 at the end of the line. Avoids an ARI warning.
16282
20b477a7
LM
162832017-02-06 Luis Machado <lgustavo@codesourcery.com>
16284
16285 * NEWS: Mention support for record/replay of Intel 64 rdrand and
16286 rdseed instructions.
16287 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
16288
3f7b46f2
IR
162892017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
16290
16291 PR tdep/20936
16292 Provide and use sparc32 and sparc64 target description XML files.
16293 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
16294 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
16295 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
16296 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
16297 * features/sparc/sparc32-solaris.xml: New file.
16298 * features/sparc/sparc64-solaris.xml: New file.
16299 * features/sparc/sparc32-solaris.c: Generated.
16300 * features/sparc/sparc64-solaris.c: Generated.
16301 * sparc-tdep.h: Account for differences in target descriptions.
16302 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
16303 (sparc32_register_type): Use target provided registers.
16304 (validate_tdesc_registers): New function.
16305 (sparc32_gdbarch_init): Use tdesc_has_registers.
16306 Set pseudoregister functions.
16307 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
16308 (sparc64_register_type): Use target provided registers.
16309 (sparc64_init_abi): Set pseudoregister functions.
16310
f0fd41c1
TT
163112017-02-03 Tom Tromey <tom@tromey.com>
16312
16313 PR rust/21097:
16314 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
16315 with a single member.
16316
d6f9b0fb
PA
163172017-02-03 Pedro Alves <palves@redhat.com>
16318
16319 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
16320 (cli_interp_base::~cli_interp_base): New.
16321 (cli_interp): New struct.
16322 (as_cli_interp): Cast the interp itself to cli_interp.
16323 (cli_interpreter_pre_command_loop): Rename to ...
16324 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
16325 parameter.
16326 (cli_interpreter_init): Rename to ...
16327 (cli_interp::init): ... this. Remove 'self' parameter. Use
16328 boolean. Make extern.
16329 (cli_interpreter_resume): Rename to ...
16330 (cli_interp::resume): ... this. Remove 'data' parameter. Make
16331 extern.
16332 (cli_interpreter_suspend): Rename to ...
16333 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
16334 extern.
16335 (cli_interpreter_exec): Rename to ...
16336 (cli_interp::exec): ... this. Remove 'data' parameter. Make
16337 extern.
16338 (cli_interpreter_supports_command_editing): Rename to ...
16339 (cli_interp_base::supports_command_editing): ... this. Remove
16340 'interp' parameter. Make extern.
16341 (cli_ui_out): Rename to ...
16342 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
16343 Make extern.
16344 (cli_set_logging): Rename to ...
16345 (cli_interp_base::set_logging): ... this. Remove 'interp'
16346 parameter. Make extern.
16347 (cli_interp_procs): Delete.
16348 (cli_interp_factory): Adjust to use "new".
16349 * cli/cli-interp.h: Include "interps.h".
16350 (struct cli_interp_base): New struct.
16351 * interps.c (struct interp): Delete. Fields moved to interps.h.
16352 (interp_new): Delete.
16353 (interp::interp, interp::~interp): New.
16354 (interp_set): Use bool, and return void. Assume the interpreter
16355 has suspend, init and resume methods, and that the all return
16356 void.
16357 (set_top_level_interpreter): interp_set returns void.
16358 (interp_ui_out): Adapt.
16359 (current_interp_set_logging): Adapt.
16360 (interp_data): Delete.
16361 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
16362 (interp_exec): Adapt.
16363 (top_level_interpreter_data): Delete.
16364 * interps.h (interp_init_ftype, interp_resume_ftype)
16365 (interp_suspend_ftype, interp_exec_ftype)
16366 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
16367 (class interp): New.
16368 (interp_new): Delete.
16369 (interp_set): Now returns void. Use bool.
16370 (interp_data, top_level_interpreter_data): Delete.
16371 * mi/mi-common.h: Include interps.h.
16372 (class mi_interp): Inherit from interp. Define a ctor. Declare
16373 init, resume, suspect, exec, interp_ui_out, set_logging and
16374 pre_command_loop methods.
16375 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
16376 (mi_interpreter_init): Rename to ...
16377 (mi_interp::init): ... this. Remove the 'interp' parameter, use
16378 bool, return void and make extern. Adjust.
16379 (mi_interpreter_resume): ... Rename to ...
16380 (mi_interp::resume): ... this. Remove the 'data' parameter,
16381 return void and make extern. Adjust.
16382 (mi_interpreter_suspend): ... Rename to ...
16383 (mi_interp::suspend): ... this. Remove the 'data' parameter,
16384 return void and make extern. Adjust.
16385 (mi_interpreter_exec): ... Rename to ...
16386 (mi_interp::exec): ... this. Remove the 'data' parameter and make
16387 extern. Adjust.
16388 (mi_interpreter_pre_command_loop): ... Rename to ...
16389 (mi_interp::pre_command_loop): ... this. Remove the 'self'
16390 parameter and make extern.
16391 (mi_on_normal_stop_1): Adjust.
16392 (mi_ui_out): Rename to ...
16393 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
16394 parameter and make extern. Adjust.
16395 (mi_set_logging): Rename to ...
16396 (mi_interp::set_logging): ... this. Remove the 'interp'
16397 parameter and make extern. Adjust.
16398 (mi_interp_procs): Delete.
16399 (mi_interp_factory): Adjust to use 'new'.
16400 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
16401 (mi_print_exception, mi_execute_command, mi_load_progress):
16402 Adjust.
16403 * tui/tui-interp.c (tui_interp): New class.
16404 (as_tui_interp): Return a tui_interp pointer.
16405 (tui_on_normal_stop, tui_on_signal_received)
16406 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
16407 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
16408 to use interp::interp_ui_out.
16409 (tui_init): Rename to ...
16410 (tui_interp::init): ... this. Remove the 'self' parameter, use
16411 bool, return void and make extern. Adjust.
16412 (tui_resume): Rename to ...
16413 (tui_interp::resume): ... this. Remove the 'data' parameter,
16414 return void and make extern. Adjust.
16415 (tui_suspend): Rename to ...
16416 (tui_interp::suspend): ... this. Remove the 'data' parameter,
16417 return void and make extern. Adjust.
16418 (tui_ui_out): Rename to ...
16419 (tui_interp::interp_ui_out): ... this. Remove the 'self'
16420 parameter, and make extern. Adjust.
16421 (tui_exec): Rename to ...
16422 (tui_interp::exec): ... this. Remove the 'data' parameter and
16423 make extern.
16424 (tui_interp_procs): Delete.
16425 (tui_interp_factory): Use "new".
16426
65c40c95
TT
164272017-02-02 Tom Tromey <tom@tromey.com>
16428
16429 * rust-exp.y (ends_raw_string, space_then_number)
16430 (rust_identifier_start_p): Return bool.
16431 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
16432 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
16433 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
16434 (rust_chartype_p): Return bool.
16435 (val_print_struct, rust_print_struct_def, rust_print_type):
16436 Update.
16437 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
16438 Return bool.
16439
b50f188d
TT
164402017-02-02 Tom Tromey <tom@tromey.com>
16441
16442 * rust-lang.c: Reindent.
16443
03c85b11
TT
164442017-02-02 Tom Tromey <tom@tromey.com>
16445
16446 * rust-lang.h (rust_crate_for_block): Update.
16447 * rust-lang.c (rust_crate_for_block): Return std::string.
16448 (rust_get_disr_info): Use std:;string, not
16449 gdb::unique_xmalloc_ptr.
16450 * rust-exp.y (crate_name): Update.
16451
9b6da501
PA
164522017-02-02 Pedro Alves <palves@redhat.com>
16453
16454 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
16455 field out of gdb_disassembler_test and make it static.
16456
ec4cb20b
PA
164572017-02-02 Pedro Alves <palves@redhat.com>
16458
16459 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
16460 mi1_interp and mi_interp fields.
16461
5be5dbf0
PA
164622017-02-02 Pedro Alves <palves@redhat.com>
16463
616268b6
PA
16464 * cli/cli-interp.c (struct saved_output_files, saved_output):
16465 Moved from cli/cli-logging.c.
16466 (cli_set_logging): New function.
16467 (cli_interp_procs): Install cli_set_logging.
16468 * cli/cli-interp.h (make_logging_output, cli_set_logging):
16469 Declare.
16470 * cli/cli-logging.c (struct saved_output_files, saved_output):
16471 Moved to cli/cli-interp.c.
16472 (pop_output_files): Don't save outputs here.
16473 (make_logging_output): New function.
16474 (handle_redirections): Don't build tee nor save previous outputs
16475 here.
16476 * interps.c (current_interp_set_logging): Change prototype.
16477 Assume there's always a set_logging_proc method installed.
16478 * interps.h (interp_set_logging_ftype): Change prototype.
16479 (current_interp_set_logging): Change prototype and adjust comment.
16480 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
16481 use make_logging_output.
16482 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
164832017-02-02 Pedro Alves <palves@redhat.com>
16484
5be5dbf0
PA
16485 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
16486 from ...
16487 (set_logging_overwrite): ... here.
16488 (logging_no_redirect_file): Delete.
16489 (set_logging_redirect): Don't handle redirection on the fly.
16490 Instead warn that "logging off" / "logging on" is necessary.
16491 (pop_output_files): Delete references to logging_no_redirect_file.
16492 (show_logging_command): Always speak in terms of what will happen
16493 once logging is reenabled.
16494
c99cc448
PA
164952017-02-02 Pedro Alves <palves@redhat.com>
16496
16497 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
16498
8b172ce7
PA
164992017-02-02 Pedro Alves <palves@redhat.com>
16500
16501 * disasm.c (gdb_pretty_print_insn): Rename to ...
16502 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
16503 Remove gdbarch parameter. Adapt to clear the object's buffers
16504 instead of allocating new buffers, and to print using the object's
16505 gdb_disassembler instead of calling gdb_print_insn.
16506 (dump_insns): Use gdb_pretty_print_disassembler.
16507 * disasm.h (gdb_pretty_print_insn): Delete declaration.
16508 (gdb_pretty_print_disassembler): New class.
16509 * record-btrace.c (btrace_insn_history): Use
16510 gdb_pretty_print_disassembler.
16511
d7e74731
PA
165122017-02-02 Pedro Alves <palves@redhat.com>
16513
16514 * ada-lang.c (type_as_string): Use string_file.
16515 * ada-valprint.c (ada_print_floating): Use string_file.
16516 * ada-varobj.c (ada_varobj_scalar_image)
16517 (ada_varobj_get_value_image): Use string_file.
16518 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
16519 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
16520 * breakpoint.c (update_inserted_breakpoint_locations)
16521 (insert_breakpoint_locations, reattach_breakpoints)
16522 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
16523 (print_it_watchpoint): Use string_file.
16524 (save_breakpoints): Use stdio_file.
16525 * c-exp.y (oper): Use string_file.
16526 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
16527 tee_file.
16528 (pop_output_files): Use delete.
16529 (handle_redirections): Use stdio_file and tee_file.
16530 * cli/cli-setshow.c (do_show_command): Use string_file.
16531 * compile/compile-c-support.c (c_compute_program): Use
16532 string_file.
16533 * compile/compile-c-symbols.c (generate_vla_size): Take a
16534 'string_file &' instead of a 'ui_file *'.
16535 (generate_c_for_for_one_variable): Take a 'string_file &' instead
16536 of a 'ui_file *'. Use string_file.
16537 (generate_c_for_variable_locations): Take a 'string_file &'
16538 instead of a 'ui_file *'.
16539 * compile/compile-internal.h (generate_c_for_for_one_variable):
16540 Take a 'string_file &' instead of a 'ui_file *'.
16541 * compile/compile-loc2c.c (push, pushf, unary, binary)
16542 (print_label, pushf_register_address, pushf_register)
16543 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
16544 'ui_file *'. Adjust.
16545 * compile/compile.c (compile_to_object): Use string_file.
16546 * compile/compile.h (compile_dwarf_expr_to_c)
16547 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
16548 'ui_file *'.
16549 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
16550 (replace_typedefs_qualified_name): Use string_file and
16551 obstack_copy0.
16552 * disasm.c (gdb_pretty_print_insn): Use string_file.
16553 (gdb_disassembly): Adjust reference the null_stream global.
16554 (do_ui_file_delete): Delete.
16555 (gdb_insn_length): Use null_stream.
16556 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
16557 * dwarf2loc.c (dwarf2_compile_property_to_c)
16558 (locexpr_generate_c_location, loclist_generate_c_location): Take a
16559 'string_file &' instead of a 'ui_file *'.
16560 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
16561 * dwarf2read.c (do_ui_file_peek_last): Delete.
16562 (dwarf2_compute_name): Use string_file.
16563 * event-top.c (gdb_setup_readline): Use stdio_file.
16564 * gdbarch.sh (verify_gdbarch): Use string_file.
16565 * gdbtypes.c (safe_parse_type): Use null_stream.
16566 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
16567 string_file.
16568 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
16569 'string_file *' instead of a 'ui_file *'.
16570 (gdbscm_arch_disassemble): Use string_file.
16571 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
16572 * guile/scm-ports.c (class ioscm_file_port): Now a class that
16573 inherits from ui_file.
16574 (ioscm_file_port_delete, ioscm_file_port_rewind)
16575 (ioscm_file_port_put): Delete.
16576 (ioscm_file_port_write): Rename to ...
16577 (ioscm_file_port::write): ... this. Remove file_port_magic
16578 checks.
16579 (ioscm_file_port_new): Delete.
16580 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
16581 ui_file_up.
16582 * guile/scm-type.c (tyscm_type_name): Use string_file.
16583 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
16584 Use string_file.
16585 * infcmd.c (print_return_value_1): Use string_file.
16586 * infrun.c (print_target_wait_results): Use string_file.
16587 * language.c (add_language): Use string_file.
16588 * location.c (explicit_to_string_internal): Use string_file.
16589 * main.c (captured_main_1): Use null_file.
16590 * maint.c (maintenance_print_architecture): Use stdio_file.
16591 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
16592 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
16593 event_channel>: Change type to mi_console_file pointer.
16594 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
16595 (mi_console_file_delete): Delete.
16596 (struct mi_console_file): Delete.
16597 (mi_console_file_magic): Delete.
16598 (mi_console_file_new): Delete.
16599 (mi_console_file::mi_console_file): New.
16600 (mi_console_file_delete): Delete.
16601 (mi_console_file_fputs): Delete.
16602 (mi_console_file::write): New.
16603 (mi_console_raw_packet): Delete.
16604 (mi_console_file::flush): New.
16605 (mi_console_file_flush): Delete.
16606 (mi_console_set_raw): Rename to ...
16607 (mi_console_file::set_raw): ... this.
16608 * mi/mi-console.h (class mi_console_file): New class.
16609 (mi_console_file_new, mi_console_set_raw): Delete.
16610 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
16611 (mi_set_logging): Use delete and tee_file. Adjust.
16612 * mi/mi-main.c (output_register): Use string_file.
16613 (mi_cmd_data_evaluate_expression): Use string_file.
16614 (mi_cmd_data_read_memory): Use string_file.
16615 (mi_cmd_execute, print_variable_or_computed): Use string_file.
16616 * mi/mi-out.c (mi_ui_out::main_stream): New.
16617 (mi_ui_out::rewind): Use main_stream and
16618 string_file.
16619 (mi_ui_out::put): Use main_stream and string_file.
16620 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
16621 Allocate a 'string_file' instead.
16622 (mi_out_new): Don't allocate a mem_fileopen stream here.
16623 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
16624 (mi_ui_out::main_stream): Declare method.
16625 * printcmd.c (eval_command): Use string_file.
16626 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
16627 * python/py-arch.c (archpy_disassemble): Use string_file.
16628 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
16629 * python/py-frame.c (frapy_str): Use string_file.
16630 * python/py-framefilter.c (py_print_type, py_print_single_arg):
16631 Use string_file.
16632 * python/py-type.c (typy_str): Use string_file.
16633 * python/py-unwind.c (unwind_infopy_str): Use string_file.
16634 * python/py-value.c (valpy_str): Use string_file.
16635 * record-btrace.c (btrace_insn_history): Use string_file.
16636 * regcache.c (regcache_print): Use stdio_file.
16637 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
16638 * remote.c (escape_buffer): Use string_file.
16639 * rust-lang.c (rust_get_disr_info): Use string_file.
16640 * serial.c (serial_open_ops_1): Use stdio_file.
16641 (do_serial_close): Use delete.
16642 * stack.c (print_frame_arg): Use string_file.
16643 (print_frame_args): Remove local mem_fileopen stream, not used.
16644 (print_frame): Use string_file.
16645 * symmisc.c (maintenance_print_symbols): Use stdio_file.
16646 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
16647 Take a 'string_file *' instead of a 'ui_file *'.
16648 * top.c (new_ui): Use stdio_file and stderr_file.
16649 (free_ui): Use delete.
16650 (execute_command_to_string): Use string_file.
16651 (quit_confirm): Use string_file.
16652 * tracepoint.c (collection_list::append_exp): Use string_file.
16653 * tui/tui-disasm.c (tui_disassemble): Use string_file.
16654 * tui/tui-file.c: Don't include "ui-file.h".
16655 (enum streamtype, struct tui_stream): Delete.
16656 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
16657 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
16658 (tui_file::tui_file): New method.
16659 (tui_file_fputs): Delete.
16660 (tui_file_get_strbuf): Delete.
16661 (tui_file::puts): New method.
16662 (tui_file_adjust_strbuf): Delete.
16663 (tui_file_flush): Delete.
16664 (tui_file::flush): New method.
16665 * tui/tui-file.h: Tweak intro comment.
16666 Include ui-file.h.
16667 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
16668 (tui_file_adjust_strbuf): Delete declarations.
16669 (class tui_file): New class.
16670 * tui/tui-io.c (tui_initialize_io): Use tui_file.
16671 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
16672 (tui_register_format): Use string_stream.
16673 * tui/tui-stack.c (tui_make_status_line): Use string_file.
16674 (tui_get_function_from_frame): Use string_file.
16675 * typeprint.c (type_to_string): Use string_file.
16676 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
16677 (null_stream): New global.
16678 (ui_file_delete): Delete.
16679 (ui_file::ui_file): New.
16680 (null_file_isatty): Delete.
16681 (ui_file::~ui_file): New.
16682 (null_file_rewind): Delete.
16683 (ui_file::printf): New.
16684 (null_file_put): Delete.
16685 (null_file_flush): Delete.
16686 (ui_file::putstr): New.
16687 (null_file_write): Delete.
16688 (ui_file::putstrn): New.
16689 (null_file_read): Delete.
16690 (ui_file::putc): New.
16691 (null_file_fputs): Delete.
16692 (null_file_write_async_safe): Delete.
16693 (ui_file::vprintf): New.
16694 (null_file_delete): Delete.
16695 (null_file::write): New.
16696 (null_file_fseek): Delete.
16697 (null_file::puts): New.
16698 (ui_file_data): Delete.
16699 (null_file::write_async_safe): New.
16700 (gdb_flush, ui_file_isatty): Adjust.
16701 (ui_file_put, ui_file_rewind): Delete.
16702 (ui_file_write): Adjust.
16703 (ui_file_write_for_put): Delete.
16704 (ui_file_write_async_safe, ui_file_read): Adjust.
16705 (ui_file_fseek): Delete.
16706 (fputs_unfiltered): Adjust.
16707 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
16708 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
16709 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
16710 (set_ui_file_data): Delete.
16711 (string_file::~string_file, string_file::write)
16712 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
16713 (do_ui_file_as_string, ui_file_as_string): Delete.
16714 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
16715 (struct mem_file): Delete.
16716 (mem_file_new): Delete.
16717 (stdio_file::stdio_file): New.
16718 (mem_file_delete): Delete.
16719 (stdio_file::stdio_file): New.
16720 (mem_fileopen): Delete.
16721 (stdio_file::~stdio_file): New.
16722 (mem_file_rewind): Delete.
16723 (stdio_file::set_stream): New.
16724 (mem_file_put): Delete.
16725 (stdio_file::open): New.
16726 (mem_file_write): Delete.
16727 (stdio_file_magic, struct stdio_file): Delete.
16728 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
16729 (stdio_file::flush): New.
16730 (stdio_file_read): Rename to ...
16731 (stdio_file::read): ... this. Adjust.
16732 (stdio_file_write): Rename to ...
16733 (stdio_file::write): ... this. Adjust.
16734 (stdio_file_write_async_safe): Rename to ...
16735 (stdio_file::write_async_safe) ... this. Adjust.
16736 (stdio_file_fputs): Rename to ...
16737 (stdio_file::puts) ... this. Adjust.
16738 (stdio_file_isatty): Delete.
16739 (stdio_file_fseek): Delete.
16740 (stdio_file::isatty): New.
16741 (stderr_file_write): Rename to ...
16742 (stderr_file::write) ... this. Adjust.
16743 (stderr_file_fputs): Rename to ...
16744 (stderr_file::puts) ... this. Adjust.
16745 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
16746 (stderr_file::stderr_file): New.
16747 (tee_file_magic): Delete.
16748 (struct tee_file): Delete.
16749 (tee_file::tee_file): New.
16750 (tee_file_new): Delete.
16751 (tee_file::~tee_file): New.
16752 (tee_file_delete): Delete.
16753 (tee_file_flush): Rename to ...
16754 (tee_file::flush): ... this. Adjust.
16755 (tee_file_write): Rename to ...
16756 (tee_file::write): ... this. Adjust.
16757 (tee_file::write_async_safe): New.
16758 (tee_file_fputs): Rename to ...
16759 (tee_file::puts): ... this. Adjust.
16760 (tee_file_isatty): Rename to ...
16761 (tee_file::isatty): ... this. Adjust.
16762 * ui-file.h (struct obstack, struct ui_file): Don't
16763 forward-declare.
16764 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
16765 (ui_file_write_ftype)
16766 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
16767 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
16768 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
16769 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
16770 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
16771 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
16772 (set_ui_file_fseek): Delete.
16773 (ui_file_data, ui_file_delete, ui_file_rewind)
16774 (struct ui_file): New.
16775 (ui_file_up): New.
16776 (class null_file): New.
16777 (null_stream): Declare.
16778 (ui_file_write_for_put, ui_file_put): Delete.
16779 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
16780 Delete.
16781 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
16782 (gdb_fopen, tee_file_new): Delete.
16783 (struct string_file): New.
16784 (struct stdio_file): New.
16785 (stdio_file_up): New.
16786 (struct stderr_file): New.
16787 (class tee_file): New.
16788 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
16789 of a 'ui_file *'. Adjust.
16790 * ui-out.h (class ui_out) <field_stream>: Likewise.
16791 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
16792 (null_stream): Delete.
16793 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
16794 Adjust.
16795 * utils.h (struct ui_file): Delete forward declaration..
16796 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
16797 (error_stream): Take a 'string_file &' instead of a
16798 'ui_file *'.
16799 * varobj.c (varobj_value_get_print_value): Use string_file.
16800 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
16801 * gdbarch.c: Regenerate.
16802
187808b0
PA
168032017-02-02 Pedro Alves <palves@redhat.com>
16804
16805 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
16806 (gdb_pretty_print_insn): ... this. Now a free function. Add back
16807 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
16808 Adjust to call gdb_print_insn instead of
16809 gdb_disassembler::print_insn.
16810 (dump_insns, do_mixed_source_and_assembly_deprecated)
16811 (do_mixed_source_and_assembly, do_assembly_only): Add back a
16812 'gdbarch' parameter. Remove gdb_disassembler parameter.
16813 (gdb_disassembly): Don't allocate a gdb_disassembler here.
16814 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
16815 declaration.
16816 (gdb_pretty_print_insn): Re-add declaration.
16817 * record-btrace.c (btrace_insn_history): Don't allocate a
16818 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
16819
7a8eb317
SM
168202017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
16821
16822 * disasm.h (gdb_disassembly): Remove file_string parameter.
16823 * disasm.c (gdb_disassembly): Likewise.
16824 * cli/cli-cmds.c (print_disassembly): Adapt.
16825 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
16826 * stack.c (do_gdb_disassembly): Likewise.
16827
7346ef59
AA
168282017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
16829
16830 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
16831 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
16832 targets. And if the implicit value is longer than needed, extract
16833 the first bytes instead of the "least significant" ones.
16834
cd4007e4
MM
168352017-02-01 Markus Metzger <markus.t.metzger@intel.com>
16836
16837 * btrace.c (btrace_enable): Do not call btrace_add_pc for
16838 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
16839 (btrace_fetch): Assert can_access_registers_ptid.
16840 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
16841 validate_registers_access.
16842
cf77c34e
MM
168432017-02-01 Markus Metzger <markus.t.metzger@intel.com>
16844
16845 * gdbthread.h (can_access_registers_ptid): New.
16846 * thread.c (can_access_registers_ptid): New.
16847
be85ce7d
PA
168482017-02-01 Pedro Alves <palves@redhat.com>
16849
16850 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
16851
29b0b251
PA
168522017-01-31 Pedro Alves <palves@redhat.com>
16853
16854 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
16855 Fix typos.
16856
289b5b24
PA
168572017-01-31 Pedro Alves <palves@redhat.com>
16858
16859 * stack.c (print_frame_args): Remove local mem_fileopen stream,
16860 not used.
16861
b47413b4
PA
168622017-01-31 Pedro Alves <palves@redhat.com>
16863
16864 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
16865
60adb36c
PA
168662017-01-31 Pedro Alves <palves@redhat.com>
16867
16868 * common/scoped_restore.h
16869 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
16870 change the value's parameter type to T2.
16871 (make_scoped_restore): Likewise.
16872
2735833d
WT
168732017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
16874 Richard Henderson <rth@redhat.com>
16875
16876 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
16877 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
16878 GS_BASE for older kernels.
16879 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
16880 GS_BASE for older kernels.
16881 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
16882 and GS_BASE to the offset table.
16883 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
16884 system register group.
16885 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
16886 for older kernels.
16887 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
16888 amd64 ABI.
16889 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
16890 AMD64_GSBASE_REGNUM.
16891 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
16892 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
16893 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
16894 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
16895 i386/64bit-segments.xml in those rules.
16896 * features/i386/64bit-segments.xml: New file.
16897 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
16898 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
16899 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
16900 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
16901 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
16902 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
16903 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
16904 * features/i386/amd64-avx-linux.c: Regenerated.
16905 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
16906 * features/i386/amd64-avx-mpx.c: Regenerated.
16907 * features/i386/amd64-avx512-linux.c: Regenerated.
16908 * features/i386/amd64-linux.c: Regenerated.
16909 * features/i386/amd64-mpx-linux.c: Regenerated.
16910 * features/i386/i386-avx-mpx-linux.c: Regenerated.
16911 * features/i386/i386-avx-mpx.c: Regenerated.
16912 * features/i386/x32-avx-linux.c: Regenerated.
16913 * features/i386/x32-avx512-linux.c: Regenerated.
16914 * regformats/i386/amd64-avx-linux.dat: Regenerated.
16915 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
16916 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
16917 * regformats/i386/amd64-linux.dat: Regenerated.
16918 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
16919 * regformats/i386/x32-avx-linux.dat: Regenerated.
16920 * regformats/i386/x32-avx512-linux.dat: Regenerated.
16921 * regformats/i386/x32-linux.dat: Regenerated.
16922
8884e97e
WT
169232017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
16924
16925 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
16926 Set to AMD64_NUM_REGS.
16927
7005d26a
WT
169282017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
16929
16930 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
16931 that checks validity of a register number.
16932
4bd2e1b2
KC
169332017-01-27 Kees Cook <keescook@google.com>
16934
16935 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
16936 fetch_fpregs if target has fpa registers.
16937 (arm_linux_store_inferior_registers): Call store_fpregs if target
16938 has fpa registers.
16939
7cf1de6c
AA
169402017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
16941
16942 * cris-tdep.c (cris_gdbarch_init): Remove check for
16943 info.byte_order and force it to BFD_ENDIAN_LITTLE.
16944
874a1c8c
AT
169452017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
16946
16947 * corelow.c (get_core_register_section): Check for regset
16948 existence before checking for REGSET_VARIABLE_SIZE.
16949
d8b49cf0
YQ
169502017-01-26 Yao Qi <yao.qi@linaro.org>
16951 Pedro Alves <palves@redhat.com>
16952
16953 PR gdb/20939
16954 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
16955 call memory_error, save memaddr instead.
16956 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
16957 negative, cal memory_error.
16958 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
16959
658ca58c
YQ
169602017-01-26 Yao Qi <yao.qi@linaro.org>
16961
16962 * disasm-selftests.c (memory_error_test): New function.
16963 (_initialize_disasm_selftests): Register memory_error_test.
16964
79843d45
YQ
169652017-01-26 Yao Qi <yao.qi@linaro.org>
16966
16967 * Makefile.in (SFILES): Add disasm-selftests.c and
16968 selftest-arch.c.
16969 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
16970 * disasm-selftests.c: New file.
16971 * selftest-arch.c: New file.
16972 * selftest-arch.h: New file.
16973
8cafda32
YQ
169742017-01-26 Yao Qi <yao.qi@linaro.org>
16975
16976 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
16977 to bfd_arch_mep. Don't return 0 if section is not
16978 found. Call print_insn_mep.
16979
e47ad6c0
YQ
169802017-01-26 Pedro Alves <palves@redhat.com>
16981 Yao Qi <yao.qi@linaro.org>
16982
16983 * arm-tdep.c: Include "disasm.h".
16984 (gdb_print_insn_arm): Update code to get gdbarch.
16985 * disasm.c (dis_asm_read_memory): Change it to
16986 gdb_disassembler::dis_asm_read_memory.
16987 (dis_asm_memory_error): Likewise.
16988 (dis_asm_print_address): Likewise.
16989 (gdb_pretty_print_insn): Change it to
16990 gdb_disassembler::pretty_print_insn.
16991 (dump_insns): Add one argument gdb_disassemlber. All
16992 callers updated.
16993 (do_mixed_source_and_assembly_deprecated): Likewise.
16994 (do_mixed_source_and_assembly): Likewise.
16995 (do_assembly_only): Likewise.
16996 (gdb_disassembler::gdb_disassembler): New.
16997 (gdb_disassembler::print_insn): New.
16998 * disasm.h (class gdb_disassembler): New.
16999 (gdb_pretty_print_insn): Remove declaration.
17000 (gdb_disassemble_info): Likewise.
17001 * guile/scm-disasm.c (class gdbscm_disassembler): New.
17002 (gdbscm_disasm_read_memory_worker): Update.
17003 (gdbscm_disasm_read_memory): Update.
17004 (gdbscm_disasm_memory_error): Remove.
17005 (gdbscm_disasm_print_address): Remove.
17006 (gdbscm_disassembler::gdbscm_disassembler): New.
17007 (gdbscm_print_insn_from_port): Update.
17008 * mips-tdep.c: Include disasm.h.
17009 (gdb_print_insn_mips): Update code to get gdbarch.
17010 * record-btrace.c (btrace_insn_history): Update.
17011 * spu-tdep.c: Include disasm.h.
17012 (struct spu_dis_asm_data): Remove.
17013 (struct spu_dis_asm_info): New.
17014 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
17015 SPU id.
17016 (gdb_print_insn_spu): Cast disassemble_info to
17017 spu_dis_asm_info.
17018
80d75874
YQ
170192017-01-26 Yao Qi <yao.qi@linaro.org>
17020
17021 * disasm.c (do_ui_file_delete): Delete.
17022 (gdb_insn_length): Move code creating stream to ...
17023 * utils.c (null_stream): ... here. New function.
17024 * utils.h (null_stream): Declare.
17025
60685cd0
SM
170262017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
17027
17028 * python/py-inferior.c (find_thread_object): Return directly
17029 from the loop. Remove "found" variable.
17030
eb1cdb62
JB
170312017-01-21 Joel Brobecker <brobecker@adacore.com>
17032
17033 GDB 7.12.1 released.
17034
b1ce6568
SM
170352017-01-20 Simon Marchi <simon.marchi@ericsson.com>
17036
17037 * python/py-function.c (fnpy_call): Reorder declarations to have
17038 the gdbpy_enter object declared first.
17039 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
17040
6f8b0407
SM
170412017-01-20 Simon Marchi <simon.marchi@ericsson.com>
17042
fec93fb1 17043 PR python/21068
6f8b0407
SM
17044 * python/python-internal.h (PyMem_RawMalloc): Define for
17045 Python < 3.4.
17046 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
17047 PyMem_RawMalloc instead of PyMem_Malloc.
17048
78cbbba8
LM
170492017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
17050 Luis Machado <lgustavo@codesourcery.com>
17051
17052 * NEWS (New commands): Mention flash-erase.
17053 (New MI commands): Mention target-flash-erase.
17054 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
17055 command.
17056 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
17057 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
17058 * target.c (flash_erase_command): New function.
17059 (initialize_targets): Add new flash-erase command.
17060 * target.h (flash_erase_command): New declaration.
17061
2132fe85
JB
170622017-01-20 Joel Brobecker <brobecker@adacore.com>
17063
17064 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
17065 HAVE_SYS_PROCFS_H is defined.
17066
d1dff226
AH
170672017-01-18 Alan Hayward <alan.hayward@arm.com>
17068
17069 * remote.c (struct cached_reg): Change data into a pointer.
17070 * (stop_reply_dtr): Free data pointers before deleting vector.
17071 (process_stop_reply): Likewise.
17072 (remote_parse_stop_reply): Allocate space for data
17073
9890e433
AH
170742017-01-18 Alan Hayward <alan.hayward@arm.com>
17075
17076 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
17077 MAX_REGISTER_SIZE.
17078 (amd64_pseudo_register_read_value): Likewise.
17079 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
17080 (store_register_using_P): Likewise.
17081 * regcache.c (regcache_xfer_part): Likewise.
17082
7a36499a
IR
170832017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
17084
17085 Split real and pseudo registers.
17086 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
17087 (sparc32_pseudo_regnum): New enum.
17088 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
17089 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
17090 (SPARC32_CP0_REGISTERS): New macro.
17091 (sparc32_pseudo_register_name): New function.
17092 (sparc32_register_name): Use sparc32_pseudo_register_name.
17093 (sparc32_pseudo_register_type): New function.
17094 (sparc32_register_type): Use sparc32_pseudo_register_type.
17095 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
17096 pseudo register numbers.
17097 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
17098 (SPARC64_CP0_REGISTERS): New macro.
17099 (sparc64_pseudo_register_name): New function.
17100 (sparc64_register_name): Use sparc64_pseudo_register_name.
17101 (sparc64_pseudo_register_type): New function.
17102 (sparc64_register_type): Use sparc64_pseudo_register_type.
17103 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
17104 pseudo register numbers.
17105 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
17106 sparc64_store_arguments): Handle pseudo register numbers.
17107
6f8976bf
YQ
171082017-01-13 Yao Qi <yao.qi@linaro.org>
17109
17110 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
17111 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
17112 output.
17113 (getpkt_or_notif_sane_1): Likewise.
17114
e4241ace
YQ
171152017-01-13 Yao Qi <yao.qi@linaro.org>
17116
17117 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
17118 of CC. Pass "-x c++-header" instead of "-x c".
17119
3015c064
SM
171202017-01-12 Simon Marchi <simon.marchi@ericsson.com>
17121
17122 * remote.c (remote_can_async_p): Update comment.
17123
fde1b17d
SM
171242017-01-12 Simon Marchi <simon.marchi@ericsson.com>
17125
17126 * linux-nat.c (linux_nat_can_async_p): Update comment.
17127
ca1ca08b
SM
171282017-01-12 Simon Marchi <simon.marchi@ericsson.com>
17129
17130 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
17131
4ad2da73
SM
171322017-01-11 Simon Marchi <simon.marchi@ericsson.com>
17133
17134 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
17135
c8b23b3f
TT
171362017-01-10 Tom Tromey <tom@tromey.com>
17137
17138 * python/py-type.c (typy_legacy_template_argument): Update.
17139 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
17140 ~demangle_parse_info): Declare new members.
17141 (cp_demangled_name_to_comp): Return unique_ptr.
17142 (cp_demangled_name_parse_free)
17143 (make_cleanup_cp_demangled_name_parse_free)
17144 (cp_new_demangle_parse_info): Remove.
17145 * cp-support.c (do_demangled_name_parse_free_cleanup)
17146 (make_cleanup_cp_demangled_name_parse_free): Remove.
17147 (inspect_type, cp_canonicalize_string_full)
17148 (cp_canonicalize_string): Update.
17149 (mangled_name_to_comp): Change return type.
17150 (cp_class_name_from_physname, method_name_from_physname)
17151 (cp_func_name, cp_remove_params): Update.
17152 * cp-name-parser.y (demangle_parse_info): New constructor, from
17153 cp_new_demangle_parse_info.
17154 (~demangle_parse_info): New destructor, from
17155 cp_demangled_name_parse_free.
17156 (cp_merge_demangle_parse_infos): Update.
17157 (cp_demangled_name_to_comp): Change return type.
17158
1ac32117
TT
171592017-01-10 Tom Tromey <tom@tromey.com>
17160
17161 * top.c (prevent_dont_repeat): Change return type.
17162 * python/python.c (execute_gdb_command): Use std::string.
17163 Update.
17164 * guile/guile.c (gdbscm_execute_gdb_command): Update.
17165 * command.h (prevent_dont_repeat): Change return type.
17166 * breakpoint.c (bpstat_do_actions_1): Update.
17167
0cf08227
TT
171682017-01-10 Tom Tromey <tom@tromey.com>
17169
17170 * value.h (scoped_value_mark::~scoped_value_mark): Call
17171 free_to_mark.
17172 (scoped_value_mark::free_to_mark): New method.
17173 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
17174 scoped_value_mark.
17175
eb115069
TT
171762017-01-10 Tom Tromey <tom@tromey.com>
17177
17178 * python/py-value.c (valpy_dereference, valpy_referenced_value)
17179 (valpy_reference_value, valpy_const_value, valpy_get_address)
17180 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
17181 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
17182 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
17183 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
17184 scoped_value_mark.
17185 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
17186 * value.h (scoped_value_mark): New class.
17187
906768f9
TT
171882017-01-10 Tom Tromey <tom@tromey.com>
17189
17190 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
17191 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
17192 * psymtab.c (discard_psymtabs_upto): Remove.
17193 (make_cleanup_discard_psymtabs): Remove.
17194 (struct psymtab_state): Remove.
17195
bef155c3
TT
171962017-01-10 Tom Tromey <tom@tromey.com>
17197
17198 * record-full.c (record_full_save_cleanups): Remove.
17199 (record_full_save): Use gdb::unlinker.
17200 * gcore.c (do_bfd_delete_cleanup): Remove.
17201 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
17202 cleanups.
17203 * dwarf2read.c (unlink_if_set): Remove.
17204 (write_psymtabs_to_index): Use gdb::unlinker.
17205 * common/gdb_unlinker.h: New file.
17206
192b62ce
TT
172072017-01-10 Tom Tromey <tom@tromey.com>
17208
17209 * windows-tdep.c (windows_xfer_shared_library): Update.
17210 * windows-nat.c (windows_make_so): Update.
17211 * utils.h (make_cleanup_bfd_unref): Remove.
17212 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
17213 * symfile.h (symfile_bfd_open)
17214 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
17215 * symfile.c (read_symbols, symbol_file_add)
17216 (separate_debug_file_exists): Update.
17217 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
17218 (generic_load, reread_symbols): Update.
17219 * symfile-mem.c (symbol_file_add_from_memory): Update.
17220 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
17221 (spu_symbol_file_add_from_memory): Update.
17222 * solist.h (struct target_so_ops) <bfd_open>: Return
17223 gdb_bfd_ref_ptr.
17224 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
17225 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
17226 gdb_bfd_ref_ptr.
17227 (solib_map_sections, reload_shared_libraries_1): Update.
17228 * solib-svr4.c (enable_break): Update.
17229 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
17230 * solib-frv.c (enable_break2): Update.
17231 * solib-dsbt.c (enable_break): Update.
17232 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
17233 gdb_bfd_ref_ptr.
17234 (darwin_solib_get_all_image_info_addr_at_init): Update.
17235 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
17236 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
17237 * record-full.c (record_full_save): Update.
17238 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
17239 * procfs.c (insert_dbx_link_bpt_in_file): Update.
17240 * minidebug.c (find_separate_debug_file_in_section): Return
17241 gdb_bfd_ref_ptr.
17242 * machoread.c (macho_add_oso_symfile): Change abfd to
17243 gdb_bfd_ref_ptr.
17244 (macho_symfile_read_all_oso): Update.
17245 (macho_check_dsym): Return gdb_bfd_ref_ptr.
17246 (macho_symfile_read): Update.
17247 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
17248 (jit_bfd_try_read_symtab): Update.
17249 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
17250 (gdb_bfd_openw, gdb_bfd_openr_iovec)
17251 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
17252 gdb_bfd_ref_ptr.
17253 (gdb_bfd_ref_policy): New struct.
17254 (gdb_bfd_ref_ptr): New typedef.
17255 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
17256 (gdb_bfd_openw, gdb_bfd_openr_iovec)
17257 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
17258 gdb_bfd_ref_ptr.
17259 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
17260 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
17261 (gcore_command): Update.
17262 * exec.c (exec_file_attach): Update.
17263 * elfread.c (elf_symfile_read): Update.
17264 * dwarf2read.c (dwarf2_get_dwz_file): Update.
17265 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
17266 (open_and_init_dwo_file): Update.
17267 (open_dwp_file): Return gdb_bfd_ref_ptr.
17268 (open_and_init_dwp_file): Update.
17269 * corelow.c (core_open): Update.
17270 * compile/compile-object-load.c (compile_object_load): Update.
17271 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
17272 * coffread.c (coff_symfile_read): Update.
17273 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
17274 gdb_bfd_ref_ptr. Rename.
17275 (dump_bfd_file, restore_command): Update.
17276 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
17277 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
17278 (find_separate_debug_file_by_buildid): Update.
17279
50315b21
TT
172802017-01-10 Tom Tromey <tom@tromey.com>
17281
17282 * common/gdb_ref_ptr.h: New file.
17283 * python/py-ref.h (struct gdbpy_ref_policy): New.
17284 (gdbpy_ref): Now a typedef.
17285
fc4007c9
TT
172862017-01-10 Tom Tromey <tom@tromey.com>
17287
17288 * utils.h (make_cleanup_htab_delete): Don't declare.
17289 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
17290 Remove.
17291 * linespec.c (decode_compound_collector): Add constructor,
17292 destructor.
17293 (lookup_prefix_sym): Remove cleanup.
17294 (symtab_collector): Add constructor, destructor.
17295 (collect_symtabs_from_filename): Remove cleanup.
17296 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
17297 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
17298 Use htab_up.
17299 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
17300 * dwarf2read.c (dw2_expand_symtabs_matching)
17301 (dw2_map_symbol_filenames, dwarf_decode_macros)
17302 (write_psymtabs_to_index): Use htab_up.
17303 * dwarf2loc.c (func_verify_no_selftailcall)
17304 (call_site_find_chain_1, func_verify_no_selftailcall)
17305 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
17306 std::vector, gdb::unique_xmalloc_ptr.
17307 (call_sitep): Remove typedef.
17308 (dwarf2_locexpr_baton_eval): Remove unused variable.
17309
8dbcee67
TT
173102017-01-10 Tom Tromey <tom@tromey.com>
17311
17312 * python/python-internal.h (make_cleanup_py_decref)
17313 (make_cleanup_py_xdecref): Don't declare.
17314 * python/py-utils.c (py_decref, make_cleanup_py_decref)
17315 (py_xdecref, make_cleanup_py_xdecref): Remove.
17316
13df46cc
TT
173172017-01-10 Tom Tromey <tom@tromey.com>
17318
17319 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
17320 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
17321
06fc9bf7
TT
173222017-01-10 Tom Tromey <tom@tromey.com>
17323
17324 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
17325
830a4934
TT
173262017-01-10 Tom Tromey <tom@tromey.com>
17327
17328 * python/py-utils.c (unicode_to_encoded_string)
17329 (python_string_to_target_string)
17330 (python_string_to_target_python_string)
17331 (python_string_to_host_string, gdbpy_obj_to_string)
17332 (get_addr_from_python): Use gdbpy_ref.
17333
4586d543
TT
173342017-01-10 Tom Tromey <tom@tromey.com>
17335
17336 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
17337 gdbpy_ref.
17338
59876f8f
TT
173392017-01-10 Tom Tromey <tom@tromey.com>
17340
17341 * python/python.c (eval_python_command, gdbpy_decode_line)
17342 (gdbpy_run_events, gdbpy_start_type_printers)
17343 (gdbpy_apply_type_printers): Use gdbpy_ref.
17344
97d83487
TT
173452017-01-10 Tom Tromey <tom@tromey.com>
17346
17347 * python/py-param.c (get_doc_string, compute_enum_values): Use
17348 gdbpy_ref.
17349
9205649a
TT
173502017-01-10 Tom Tromey <tom@tromey.com>
17351
17352 * python/py-inferior.c (find_thread_object, build_inferior_list):
17353 Use gdbpy_ref.
17354
74c49d45
TT
173552017-01-10 Tom Tromey <tom@tromey.com>
17356
17357 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
17358
16361ffb
TT
173592017-01-10 Tom Tromey <tom@tromey.com>
17360
17361 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
17362 gdbpy_ref.
17363
905f2cca
TT
173642017-01-10 Tom Tromey <tom@tromey.com>
17365
17366 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
17367 extra incref.
17368 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
17369 Use gdbpy_ref.
17370
64081434
TT
173712017-01-10 Tom Tromey <tom@tromey.com>
17372
17373 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
17374 gdbpy_ref.
17375
59e9e831
TT
173762017-01-10 Tom Tromey <tom@tromey.com>
17377
17378 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
17379 decref results of PyArg_ParseTupleAndKeywords.
17380
9de10f6d
TT
173812017-01-10 Tom Tromey <tom@tromey.com>
17382
17383 * python/python.c (python_run_simple_file): Use
17384 unique_xmalloc_ptr, gdbpy_ref.
17385
2bd5759d
TT
173862017-01-10 Tom Tromey <tom@tromey.com>
17387
17388 * python/py-prettyprint.c (print_stack_unless_memory_error)
17389 (print_string_repr, print_children): Use gdbpy_ref.
17390 (dummy_python_frame): New class.
17391 (dummy_python_frame::dummy_python_frame): Rename from
17392 push_dummy_python_frame.
17393 (py_restore_tstate): Remove.
17394
3b4e0e01
TT
173952017-01-10 Tom Tromey <tom@tromey.com>
17396
17397 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
17398
17a22718
TT
173992017-01-10 Tom Tromey <tom@tromey.com>
17400
17401 * python/python.c (ensure_python_env, restore_python_env):
17402 Remove.
17403 * python/python-internal.h (ensure_python_env): Don't declare.
17404 * varobj.h (varobj_ensure_python_env): Don't declare.
17405 * varobj.c (varobj_ensure_python_env): Remove.
17406
68cdc557
TT
174072017-01-10 Tom Tromey <tom@tromey.com>
17408
17409 * varobj.c (varobj_value_get_print_value): Use
17410 gdbpy_enter_varobj.
17411
1eba6383
TT
174122017-01-10 Tom Tromey <tom@tromey.com>
17413
17414 * python/py-prettyprint.c (print_string_repr, print_children):
17415 Update.
17416 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
17417 of "encoding".
17418 * varobj.c (varobj_value_get_print_value): Update.
17419 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
17420
bde7b3e3
TT
174212017-01-10 Tom Tromey <tom@tromey.com>
17422
17423 * varobj.c (varobj_get_display_hint)
17424 (dynamic_varobj_has_child_method, install_new_value_visualizer)
17425 (varobj_set_visualizer, free_variable): Use
17426 gdbpy_enter_varobj.
17427
a7785f8c
TT
174282017-01-10 Tom Tromey <tom@tromey.com>
17429
17430 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
17431 (do_finish_initialization): New function. Use gdbpy_ref.
17432 (gdbpy_finish_initialization): Use gdbpy_enter. Call
17433 do_finish_initialization.
17434
2865bfce
TT
174352017-01-10 Tom Tromey <tom@tromey.com>
17436
17437 * python/py-param.c (get_set_value, get_show_value): Use
17438 gdbpy_enter, gdbpy_ref.
17439
0e9dcc75
TT
174402017-01-10 Tom Tromey <tom@tromey.com>
17441
17442 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
17443
12a5cedd
TT
174442017-01-10 Tom Tromey <tom@tromey.com>
17445
17446 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
17447
788f2586
TT
174482017-01-10 Tom Tromey <tom@tromey.com>
17449
17450 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
17451 Use gdbpy_enter_varobj.
17452
6cd67bea
TT
174532017-01-10 Tom Tromey <tom@tromey.com>
17454
17455 * varobj.c (gdbpy_enter_varobj): New constructor.
17456 * python/python-internal.h (gdbpy_enter_varobj): New class.
17457 * python/py-varobj.c (py_varobj_get_iterator): Use
17458 gdbpy_enter_varobj.
17459
14b122bf
TT
174602017-01-10 Tom Tromey <tom@tromey.com>
17461
17462 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
17463 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
17464 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
17465 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
17466 unique_xmalloc_ptr.
17467 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
17468
bf1ca3b9
TT
174692017-01-10 Tom Tromey <tom@tromey.com>
17470
17471 * python/py-xmethods.c (invoke_match_method): Use
17472 gdbpy_ref.
17473
572a5524
TT
174742017-01-10 Tom Tromey <tom@tromey.com>
17475
17476 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
17477 gdbpy_enter, gdbpy_ref.
17478
396a78b6
TT
174792017-01-10 Tom Tromey <tom@tromey.com>
17480
17481 * python/python.c (python_interactive_command): Use gdbpy_enter.
17482
a88b13c7
TT
174832017-01-10 Tom Tromey <tom@tromey.com>
17484
17485 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
17486 gdbpy_ref.
17487
e9f0c363
TT
174882017-01-10 Tom Tromey <tom@tromey.com>
17489
17490 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
17491 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
17492
6349f452
TT
174932017-01-10 Tom Tromey <tom@tromey.com>
17494
17495 * utils.h (htab_deleter): New struct.
17496 (htab_up): New typedef.
17497 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
17498 gdbpy_enter, gdbpy_ref, htab_up.
17499
c0171de6
TT
175002017-01-10 Tom Tromey <tom@tromey.com>
17501
17502 * python/py-unwind.c (pending_frame_invalidate): Remove.
17503 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
17504
f18e226f
TT
175052017-01-10 Tom Tromey <tom@tromey.com>
17506
17507 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
17508 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
17509
c57af3f1
TT
175102017-01-10 Tom Tromey <tom@tromey.com>
17511
17512 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
17513
60e600ec
TT
175142017-01-10 Tom Tromey <tom@tromey.com>
17515
17516 * python/python.c (gdbpy_eval_from_control_command)
17517 (gdbpy_source_script, gdbpy_run_events)
17518 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
17519 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
17520 gdbpy_enter.
17521
bf7da5b0
TT
175222017-01-10 Tom Tromey <tom@tromey.com>
17523
17524 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
17525
2d38bced
TT
175262017-01-10 Tom Tromey <tom@tromey.com>
17527
17528 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
17529
07bc7329
TT
175302017-01-10 Tom Tromey <tom@tromey.com>
17531
17532 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
17533 (python_on_inferior_call_pre, python_on_inferior_call_post)
17534 (python_on_memory_change, python_on_register_change)
17535 (python_inferior_exit, python_new_objfile, add_thread_object)
17536 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
17537
6e7c365e
TT
175382017-01-10 Tom Tromey <tom@tromey.com>
17539
17540 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
17541 (bpfinishpy_handle_exit): Use gdbpy_enter.
17542
6ba0cd40
TT
175432017-01-10 Tom Tromey <tom@tromey.com>
17544
17545 * python/py-cmd.c (cmdpy_destroyer)
17546 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
17547 gdbpy_enter.
17548
de2dc875
TT
175492017-01-10 Tom Tromey <tom@tromey.com>
17550
17551 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
17552 gdbpy_enter.
17553 (gdbpy_breakpoint_has_cond): Likewise.
17554
4ecee2c4
TT
175552017-01-10 Tom Tromey <tom@tromey.com>
17556
17557 * python/python.c (gdbpy_enter): New constructor.
17558 (~gdbpy_enter): New destructor.
17559 (restore_python_env, ensure_python_env): Rewrite.
17560 * python/python-internal.h (gdbpy_enter): New class.
17561
37fce74f
TT
175622017-01-10 Tom Tromey <tom@tromey.com>
17563
17564 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
17565
53a0cca3
TT
175662017-01-10 Tom Tromey <tom@tromey.com>
17567
17568 * python/py-value.c (value_has_field, get_field_flag)
17569 (get_field_type, valpy_getitem, convert_value_from_python): Use
17570 gdbpy_ref.
17571
ff3724f5
TT
175722017-01-10 Tom Tromey <tom@tromey.com>
17573
17574 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
17575 gdbpy_ref.
17576
0700aea5
TT
175772017-01-10 Tom Tromey <tom@tromey.com>
17578
17579 * python/py-prettyprint.c (search_pp_list)
17580 (find_pretty_printer_from_objfiles)
17581 (find_pretty_printer_from_progspace)
17582 (find_pretty_printer_from_gdb, find_pretty_printer)
17583 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
17584 gdbpy_ref.
17585
1bb44c9f
TT
175862017-01-10 Tom Tromey <tom@tromey.com>
17587
17588 * python/py-param.c (call_doc_function): Use gdbpy_ref.
17589
87ce03fd
TT
175902017-01-10 Tom Tromey <tom@tromey.com>
17591
17592 * python/py-linetable.c (build_line_table_tuple_from_pcs)
17593 (ltpy_get_all_source_lines): Use gdbpy_ref.
17594
ee0a3fb8
TT
175952017-01-10 Tom Tromey <tom@tromey.com>
17596
17597 * python/py-framefilter.c (extract_sym, extract_value)
17598 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
17599 gdbpy_ref.
17600
bf2a52fa
TT
176012017-01-10 Tom Tromey <tom@tromey.com>
17602
17603 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
17604
f59fe7f8
TT
176052017-01-10 Tom Tromey <tom@tromey.com>
17606
17607 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
17608
80bd970a
TT
176092017-01-10 Tom Tromey <tom@tromey.com>
17610
17611 * python/py-function.c (convert_values_to_python, fnpy_init): Use
17612 gdbpy_ref.
17613
d1b3de2e
TT
176142017-01-10 Tom Tromey <tom@tromey.com>
17615
17616 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
17617
3bb43384
TT
176182017-01-10 Tom Tromey <tom@tromey.com>
17619
17620 * python/py-type.c (convert_field, make_fielditem, typy_fields)
17621 (typy_range): Use gdbpy_ref.
17622
abf5651e
TT
176232017-01-10 Tom Tromey <tom@tromey.com>
17624
17625 * python/py-threadevent.c (create_thread_event_object): Use
17626 gdbpy_ref.
17627 * python/py-stopevent.c (create_stop_event_object): Simplify.
17628 (emit_stop_event): Use gdbpy_ref.
17629 * python/py-signalevent.c (create_signal_event_object): Use
17630 gdbpy_ref.
17631 * python/py-newobjfileevent.c (create_new_objfile_event_object)
17632 (emit_new_objfile_event, create_clear_objfiles_event_object)
17633 (emit_clear_objfiles_event): Use gdbpy_ref.
17634 * python/py-infevents.c (create_inferior_call_event_object)
17635 (create_register_changed_event_object)
17636 (create_memory_changed_event_object, emit_inferior_call_event)
17637 (emit_memory_changed_event, emit_register_changed_event): Use
17638 gdbpy_ref.
17639 * python/py-exitedevent.c (create_exited_event_object)
17640 (emit_exited_event): Use gdbpy_ref.
17641 * python/py-event.h (evpy_emit_event): Remove
17642 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
17643 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
17644 * python/py-continueevent.c (emit_continue_event): Use
17645 gdbpy_ref.
17646 * python/py-breakpoint.c (gdbpy_breakpoint_created)
17647 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
17648 gdbpy_ref.
17649 * python/py-bpevent.c (create_breakpoint_event_object): Use
17650 gdbpy_ref.
17651
a68ff33e
TT
176522017-01-10 Tom Tromey <tom@tromey.com>
17653
17654 * python/py-ref.h: New file.
17655
7becfd03
SM
176562017-01-10 Simon Marchi <simon.marchi@ericsson.com>
17657
17658 * cli-out.c (cli_ui_out::do_redirect): Change return type to
17659 void.
17660 * cli-out.h (cli_ui_out::do_redirect): Likewise.
17661 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
17662 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
17663 * ui-out.c (ui_out::redirect): Likewise.
17664 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
17665 * cli/cli-logging.c (set_logging_redirect): Update call site of
17666 ui_out::redirect.
17667 (handle_redirections): Likewise.
17668 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
17669 * top.c (execute_command_to_string): Likewise.
17670 * utils.c (do_ui_out_redirect_pop): Likewise.
17671
df294654
SM
176722017-01-10 Simon Marchi <simon.marchi@ericsson.com>
17673
17674 * stack.c (_initialize_stack): Update "frame" command help message.
17675
f5e6296e
IB
176762017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
17677
17678 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
17679
0e2d6fa6
YQ
176802017-01-06 Yao Qi <yao.qi@linaro.org>
17681
17682 * x86-linux-nat.h: Include gdb_proc_service.h.
17683
44d6d3f9
YQ
176842017-01-06 Yao Qi <yao.qi@linaro.org>
17685
17686 * ser-base.h: Include serial.h.
17687
656731fe
YQ
176882017-01-06 Yao Qi <yao.qi@linaro.org>
17689
17690 * ppc-linux-tdep.h: Include ppc-tdep.h.
17691
1ca8f924
YQ
176922017-01-06 Yao Qi <yao.qi@linaro.org>
17693
17694 * nat/amd64-linux-siginfo.h: Include signal.h.
17695
bc3008c4
YQ
176962017-01-06 Yao Qi <yao.qi@linaro.org>
17697
17698 * nat/aarch64-linux-hw-point.h: Include break-common.h.
17699
66c80d03
YQ
177002017-01-06 Yao Qi <yao.qi@linaro.org>
17701
17702 * mi/mi-parse.h: Include mi-cmds.h.
17703
051d2dda
YQ
177042017-01-06 Yao Qi <yao.qi@linaro.org>
17705
17706 * inf-loop.c: Don't include "target.h".
17707 * inf-loop.h: Include it here.
17708
8018d34f
YQ
177092017-01-06 Yao Qi <yao.qi@linaro.org>
17710
17711 * dfp.h: Include "dboulest.h" and "expression.h".
17712
c0b8369c
YQ
177132017-01-06 Yao Qi <yao.qi@linaro.org>
17714
17715 * ax-gdb.h: Include "ax.h".
17716
ad5cba2a
YQ
177172017-01-06 Yao Qi <yao.qi@linaro.org>
17718
17719 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
17720 with nat/gdb_ptrace.h.
17721
1c33cd7f
YQ
177222017-01-05 Yao Qi <yao.qi@linaro.org>
17723
17724 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
17725 new line.
17726 (mips64_fbsd_sigframe_init): Likewise.
17727
c988ac1d
JB
177282017-01-04 John Baldwin <jhb@FreeBSD.org>
17729
17730 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
17731 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
17732
b268007c
JB
177332017-01-04 John Baldwin <jhb@FreeBSD.org>
17734
17735 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
17736 * NEWS: Mention new FreeBSD/mips native configuration.
17737 * config/mips/fbsd.mh: New file.
17738 * configure.host: Add mips*-*-freebsd*.
17739 * mips-fbsd-nat.c: New file.
17740
387360da
JB
177412017-01-04 John Baldwin <jhb@FreeBSD.org>
17742
17743 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
17744 (ALLDEPFILES): Add mips-fbsd-tdep.c.
17745 * NEWS: Mention new FreeBSD/mips target.
17746 * configure.tgt: Add mips*-*-freebsd*.
17747 * mips-fbsd-tdep.c: New file.
17748 * mips-fbsd-tdep.h: New file.
17749
2aaaf250
YQ
177502017-01-04 Yao Qi <yao.qi@linaro.org>
17751
17752 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
17753 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
17754
61baf725
JB
177552017-01-01 Joel Brobecker <brobecker@adacore.com>
17756
6dbb839a 17757 Update copyright year range in all GDB files.
61baf725 17758
c113e7ff 177592017-01-01 Joel Brobecker <brobecker@adacore.com>
ce0db137 17760
c113e7ff 17761 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
ce0db137 17762
c113e7ff 17763For older changes see ChangeLog-2016.
c906108c
SS
17764\f
17765Local Variables:
17766mode: change-log
17767left-margin: 8
17768fill-column: 74
17769version-control: never
57da7796 17770coding: utf-8
c906108c 17771End:
This page took 3.024568 seconds and 4 git commands to generate.