[Debugging output] Make remote packet truncation length adjustable
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2019-11-25 Luis Machado <luis.machado@linaro.org>
2
3 * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
4 * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
5 (remote_packet_max_chars): New static global.
6 (show_remote_packet_max_chars): New function.
7 (remote_target::putpkt_binary): Adjust to use new
8 remote_packet_max_chars option.
9 (remote_target::getpkt_or_notif_sane_1): Likewise.
10 (_initialize_remote): Register new remote-packet-max-chars option.
11
12 2019-11-24 Simon Marchi <simon.marchi@efficios.com>
13
14 * m68k-linux-nat.c: Include gdbarch.h.
15
16 2019-11-24 Tom Tromey <tom@tromey.com>
17
18 * symfile.c (read_symbols): Update.
19 * psymtab.c (require_partial_symbols): Change type of "verbose" to
20 bool.
21 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
22 (psym_lookup_symbol, psym_find_last_source_symtab)
23 (psym_forget_cached_source_info, psym_print_stats)
24 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
25 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
26 (psym_map_matching_symbols, psym_expand_symtabs_matching)
27 (psym_find_compunit_symtab_by_address)
28 (maintenance_print_psymbols, maintenance_info_psymtabs)
29 (maintenance_check_psymtabs): Update.
30 * psymtab.h (require_partial_symbols): Change type of "verbose" to
31 bool.
32
33 2019-11-22 Tom Tromey <tom@tromey.com>
34
35 * observable.h: Update comments.
36
37 2019-11-22 Tom Tromey <tromey@adacore.com>
38
39 * ada-tasks.c (ada_task_is_alive): Make parameter const.
40 (print_ada_task_info): Don't try to fetch thread id if task is not
41 alive.
42
43 2019-11-22 Christian Biesinger <cbiesinger@google.com>
44
45 * ada-exp.y: Update.
46 * ada-lang.c (sort_choices): Update.
47 (ada_print_symbol_signature): Update.
48 (resolve_subexp): Update.
49 (ada_parse_renaming): Update.
50 (ada_read_renaming_var_value): Update.
51 (lesseq_defined_than): Update.
52 (remove_extra_symbols): Update.
53 (remove_irrelevant_renamings): Update.
54 (ada_add_block_symbols): Update.
55 (ada_collect_symbol_completion_matches): Update.
56 (ada_is_renaming_symbol): Update.
57 (aggregate_assign_from_choices): Update.
58 (ada_evaluate_subexp): Update.
59 (ada_has_this_exception_support): Update.
60 (ada_is_non_standard_exception_sym): Update.
61 (ada_add_exceptions_from_frame): Update.
62 (ada_add_global_exceptions): Update.
63 (ada_print_subexp): Update.
64 * ax-gdb.c (gen_var_ref): Update.
65 (gen_maybe_namespace_elt): Update.
66 (gen_expr_for_cast): Update.
67 (gen_expr): Update.
68 * block.h: Update.
69 * blockframe.c (find_pc_partial_function): Update.
70 * breakpoint.c (print_breakpoint_location): Update.
71 (update_static_tracepoint): Update.
72 * btrace.c (ftrace_print_function_name): Update.
73 (ftrace_function_switched): Update.
74 * buildsym.c (find_symbol_in_list): Update.
75 * c-exp.y: Update.
76 * c-typeprint.c (c_print_typedef): Update.
77 (c_type_print_template_args): Update.
78 * cli/cli-cmds.c (edit_command): Update.
79 (list_command): Update.
80 (print_sal_location): Update.
81 * coffread.c (patch_opaque_types): Update.
82 (process_coff_symbol): Update.
83 (coff_read_enum_type): Update.
84 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
85 (convert_one_symbol): Update.
86 (hash_symname): Update.
87 (eq_symname): Update.
88 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
89 * compile/compile-cplus-types.c (debug_print_scope): Update.
90 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
91 * compile/compile-object-load.c (get_out_value_type): Update.
92 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
93 (search_symbol_list): Update.
94 (cp_lookup_symbol_imports_or_template): Update.
95 * cp-support.c (overload_list_add_symbol): Update.
96 * ctfread.c (psymtab_to_symtab): Update.
97 * dbxread.c (cp_set_block_scope): Update.
98 * dictionary.c (iter_match_first_hashed): Update.
99 (iter_match_next_hashed): Update.
100 (insert_symbol_hashed): Update.
101 (iter_match_next_linear): Update.
102 * dictionary.h: Update.
103 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
104 (locexpr_describe_location_piece): Update.
105 (locexpr_describe_location_1): Update.
106 (locexpr_generate_c_location): Update.
107 (loclist_describe_location): Update.
108 (loclist_generate_c_location): Update.
109 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
110 (read_func_scope): Update.
111 (process_enumeration_scope): Update.
112 (new_symbol): Update.
113 (dwarf2_const_value): Update.
114 (dwarf2_symbol_mark_computed): Update.
115 * eval.c (evaluate_funcall): Update.
116 (evaluate_subexp_standard): Update.
117 * expprint.c (print_subexp_standard): Update.
118 (dump_subexp_body_standard): Update.
119 * f-valprint.c (info_common_command_for_block): Update.
120 * findvar.c (get_hosting_frame): Update.
121 (default_read_var_value): Update.
122 * go-lang.c (go_symbol_package_name): Update.
123 * guile/scm-block.c (bkscm_print_block_smob): Update.
124 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
125 (gdbscm_symbol_name): Update.
126 (gdbscm_symbol_linkage_name): Update.
127 (gdbscm_symbol_print_name): Update.
128 * infcall.c (get_function_name): Update.
129 * infcmd.c (jump_command): Update.
130 (finish_command): Update.
131 * infrun.c (insert_exception_resume_breakpoint): Update.
132 * linespec.c (canonicalize_linespec): Update.
133 (create_sals_line_offset): Update.
134 (convert_linespec_to_sals): Update.
135 (complete_label): Update.
136 (find_label_symbols_in_block): Update.
137 * m2-typeprint.c (m2_print_typedef): Update.
138 * mdebugread.c (mdebug_reg_to_regnum): Update.
139 (parse_symbol): Update.
140 (mylookup_symbol): Update.
141 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
142 (list_args_or_locals): Update.
143 * objc-lang.c (compare_selectors): Update.
144 (info_selectors_command): Update.
145 (compare_classes): Update.
146 (info_classes_command): Update.
147 (find_imps): Update.
148 * p-typeprint.c (pascal_print_typedef): Update.
149 * printcmd.c (build_address_symbolic): Update.
150 (info_address_command): Update.
151 (print_variable_and_value): Update.
152 * python/py-framefilter.c (extract_sym): Update.
153 (py_print_single_arg): Update.
154 * python/py-symbol.c (sympy_str): Update.
155 (sympy_get_name): Update.
156 (sympy_get_linkage_name): Update.
157 * python/python.c (gdbpy_rbreak): Update.
158 * record-btrace.c (btrace_get_bfun_name): Update.
159 (btrace_call_history): Update.
160 * rust-lang.c (rust_print_typedef): Update.
161 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
162 * stabsread.c (stab_reg_to_regnum): Update.
163 (define_symbol): Update.
164 (read_enum_type): Update.
165 (common_block_end): Update.
166 (cleanup_undefined_types_1): Update.
167 (scan_file_globals): Update.
168 * stack.c (print_frame_arg): Update.
169 (print_frame_args): Update.
170 (find_frame_funname): Update.
171 (info_frame_command_core): Update.
172 (iterate_over_block_locals): Update.
173 (print_block_frame_labels): Update.
174 (do_print_variable_and_value): Update.
175 (iterate_over_block_arg_vars): Update.
176 (return_command): Update.
177 * symmisc.c (dump_symtab_1): Update.
178 (print_symbol): Update.
179 * symtab.c (eq_symbol_entry): Update.
180 (symbol_cache_dump): Update.
181 (lookup_language_this): Update.
182 (find_pc_sect_line): Update.
183 (skip_prologue_sal): Update.
184 (symbol_search::compare_search_syms): Update.
185 (treg_matches_sym_type_name): Update.
186 (search_symbols): Update.
187 (print_symbol_info): Update.
188 (rbreak_command): Update.
189 (completion_list_add_symbol): Update.
190 (find_gnu_ifunc): Update.
191 (get_symbol_address): Update.
192 (search_module_symbols): Update.
193 (info_module_subcommand): Update.
194 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
195 (SYMBOL_LINKAGE_NAME): Remove.
196 (SYMBOL_DEMANGLED_NAME): Remove.
197 (SYMBOL_PRINT_NAME): Remove.
198 (SYMBOL_SEARCH_NAME): Remove.
199 * tracepoint.c (set_traceframe_context): Update.
200 (validate_actionline): Update.
201 (collection_list::collect_symbol): Update.
202 (encode_actions_1): Update.
203 (info_scope_command): Update.
204 (print_one_static_tracepoint_marker): Update.
205 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
206 * valops.c (address_of_variable): Update.
207 (find_overload_match): Update.
208 (find_oload_champ): Update.
209
210 2019-11-22 Christian Biesinger <cbiesinger@google.com>
211
212 * ada-lang.c (ada_lookup_simple_minsym): Update.
213 (ada_collect_symbol_completion_matches): Update.
214 * ada-tasks.c (read_atcb): Update.
215 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
216 (amd64_windows_skip_trampoline_code): Update.
217 * arm-tdep.c (skip_prologue_function): Update.
218 (arm_skip_stack_protector): Update.
219 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
220 (arm_wince_skip_main_prologue): Update.
221 * ax-gdb.c (gen_expr): Update.
222 * block.c (call_site_for_pc): Update.
223 * blockframe.c (find_pc_partial_function): Update.
224 * breakpoint.c (set_breakpoint_location_function): Update.
225 * btrace.c (ftrace_print_function_name): Update.
226 (ftrace_function_switched): Update.
227 * c-valprint.c (print_unpacked_pointer): Update.
228 * coffread.c (coff_symfile_read): Update.
229 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
230 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
231 * dwarf-index-write.c (write_psymbols): Update.
232 * dwarf2loc.c (call_site_to_target_addr): Update.
233 (func_verify_no_selftailcall): Update.
234 (tailcall_dump): Update.
235 (call_site_find_chain_1): Update.
236 (dwarf_expr_reg_to_entry_parameter): Update.
237 * elfread.c (elf_gnu_ifunc_record_cache): Update.
238 * eval.c (evaluate_funcall): Update.
239 (evaluate_subexp_standard): Update.
240 (evaluate_subexp_for_sizeof): Update.
241 * expprint.c (print_subexp_standard): Update.
242 (dump_subexp_body_standard): Update.
243 * frame.c (get_prev_frame_always_1): Update.
244 * frv-tdep.c (frv_skip_main_prologue): Update.
245 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
246 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
247 (gnuv3_get_typename_from_type_info): Update.
248 (gnuv3_skip_trampoline): Update.
249 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
250 * i386-tdep.c (i386_skip_main_prologue): Update.
251 (i386_pe_skip_trampoline_code): Update.
252 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
253 * infcall.c (get_function_name): Update.
254 * linespec.c (minsym_found): Update.
255 * linux-fork.c (info_checkpoints_command): Update.
256 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
257 (m32c_m16c_pointer_to_address): Update.
258 * maint.c (maintenance_translate_address): Update.
259 * minsyms.c (add_minsym_to_hash_table): Update.
260 (add_minsym_to_demangled_hash_table): Update.
261 (lookup_minimal_symbol_mangled): Update.
262 (lookup_minimal_symbol_demangled): Update.
263 (lookup_minimal_symbol_linkage): Update.
264 (lookup_minimal_symbol_text): Update.
265 (lookup_minimal_symbol_by_pc_name): Update.
266 (minimal_symbol_is_less_than): Update.
267 (compact_minimal_symbols): Update.
268 (build_minimal_symbol_hash_tables): Update.
269 (find_solib_trampoline_target): Update.
270 * mips-tdep.c (mips_stub_frame_sniffer): Update.
271 (mips_skip_pic_trampoline_code): Update.
272 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
273 * objc-lang.c (info_selectors_command): Update.
274 (info_classes_command): Update.
275 (find_methods): Update.
276 (find_imps): Update.
277 * p-valprint.c (pascal_val_print): Update.
278 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
279 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
280 * printcmd.c (build_address_symbolic): Update.
281 (info_symbol_command): Update.
282 * psymtab.c (psymbol_name_matches): Update.
283 (match_partial_symbol): Update.
284 (lookup_partial_symbol): Update.
285 (print_partial_symbols): Update.
286 (sort_pst_symbols): Update.
287 (maintenance_check_psymtabs): Update.
288 * python/py-framefilter.c (py_print_frame): Update.
289 * python/python.c (gdbpy_rbreak): Update.
290 * record-btrace.c (btrace_get_bfun_name): Update.
291 (btrace_call_history): Update.
292 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
293 (rs6000_skip_trampoline_code): Update.
294 * sol-thread.c (info_cb): Update.
295 * stabsread.c (scan_file_globals): Update.
296 * stack.c (find_frame_funname): Update.
297 (info_frame_command_core): Update.
298 * symmisc.c (dump_msymbols): Update.
299 * symtab.c (symbol_natural_name): Rename to..,
300 (general_symbol_info::natural_name): ...this.
301 (symbol_demangled_name): Rename to...
302 (general_symbol_info::demangled_name): ...this.
303 (symbol_search_name): Rename to...
304 (general_symbol_info::search_name): ...this.
305 (symbol_matches_search_name): Update.
306 (find_pc_sect_line): Update.
307 (skip_prologue_sal): Update.
308 (search_symbols): Update.
309 (print_msymbol_info): Update.
310 (rbreak_command): Update.
311 (completion_list_add_msymbol): Update.
312 (completion_list_objc_symbol): Update.
313 (get_msymbol_address): Update.
314 * symtab.h (struct general_symbol_info): Add member functions
315 natural_name (), linkage_name (), print_name (), demangled_name (),
316 and search_name ().
317 (SYMBOL_NATURAL_NAME): Update.
318 (symbol_natural_name): Move to a member function on general_symbol_info.
319 (SYMBOL_DEMANGLED_NAME): Update.
320 (symbol_demangled_name): Move to a member function on
321 general_symbol_info.
322 (SYMBOL_SEARCH_NAME): Update.
323 (symbol_search_name): Move to a member function on general_symbol_info.
324 (MSYMBOL_NATURAL_NAME): Remove.
325 (MSYMBOL_LINKAGE_NAME): Remove.
326 (MSYMBOL_PRINT_NAME): Remove.
327 (MSYMBOL_DEMANGLED_NAME): Remove.
328 (MSYMBOL_SEARCH_NAME): Remove.
329 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
330
331 2019-11-22 Christian Biesinger <cbiesinger@google.com>
332
333 * symtab.c (create_demangled_names_hash): Use per_bfd->
334 minimal_symbol_count for computing the initial size, if greater
335 than our default size.
336
337 2019-11-22 Tom de Vries <tdevries@suse.de>
338
339 * contrib/words.sh: Improve words extraction.
340
341 2019-11-22 Tom de Vries <tdevries@suse.de>
342
343 * contrib/words.sh: Combine sed invocations.
344
345 2019-11-21 Christian Biesinger <cbiesinger@google.com>
346
347 * Makefile.in: Update.
348 * demangle.c: Rename to...
349 * gdb-demangle.c: ..this.
350 (is_cplus_marker): Change return type to bool.
351 (_initialize_demangler): Rename to...
352 (_initialize_gdb_demangle): ...this.
353 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
354 * symtab.h (demangle): Remove declaration; instead include
355 gdb-demangle.h.
356
357 2019-11-21 Tom Tromey <tromey@adacore.com>
358
359 * gdbsupport/format.c (format_pieces): Parse %I64d.
360 * unittests/format_pieces-selftests.c (test_windows_formats): New
361 function.
362 (run_tests): Call it.
363
364 2019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
365
366 Byte reverse display of variables with DW_END_big, DW_END_little
367 (DW_AT_endianity) dwarf attributes if different than the native
368 byte order.
369 * ada-lang.c (ada_value_binop):
370 Use type_byte_order instead of gdbarch_byte_order.
371 * ada-valprint.c (printstr):
372 (ada_val_print_string):
373 * ada-lang.c (value_pointer):
374 (ada_value_binop):
375 Use type_byte_order instead of gdbarch_byte_order.
376 * c-lang.c (c_get_string):
377 Use type_byte_order instead of gdbarch_byte_order.
378 * c-valprint.c (c_val_print_array):
379 Use type_byte_order instead of gdbarch_byte_order.
380 * cp-valprint.c (cp_print_class_member):
381 Use type_byte_order instead of gdbarch_byte_order.
382 * dwarf2loc.c (rw_pieced_value):
383 Use type_byte_order instead of gdbarch_byte_order.
384 * dwarf2read.c (read_base_type): Handle DW_END_big,
385 DW_END_little
386 * f-lang.c (f_get_encoding):
387 Use type_byte_order instead of gdbarch_byte_order.
388 * findvar.c (default_read_var_value):
389 Use type_byte_order instead of gdbarch_byte_order.
390 * gdbtypes.c (check_types_equal):
391 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
392 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
393 and TYPE_ENDIANITY_LITTLE if set.
394 (type_byte_order): new function.
395 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
396 (struct main_type) <flag_endianity_not_default>:
397 New field.
398 (type_byte_order): New function.
399 * infcmd.c (default_print_one_register_info):
400 Use type_byte_order instead of gdbarch_byte_order.
401 * p-lang.c (pascal_printstr):
402 Use type_byte_order instead of gdbarch_byte_order.
403 * p-valprint.c (pascal_val_print):
404 Use type_byte_order instead of gdbarch_byte_order.
405 * printcmd.c (print_scalar_formatted):
406 Use type_byte_order instead of gdbarch_byte_order.
407 * solib-darwin.c (darwin_current_sos):
408 Use type_byte_order instead of gdbarch_byte_order.
409 * solib-svr4.c (solib_svr4_r_ldsomap):
410 Use type_byte_order instead of gdbarch_byte_order.
411 * stap-probe.c (stap_modify_semaphore):
412 Use type_byte_order instead of gdbarch_byte_order.
413 * target-float.c (target_float_same_format_p):
414 Use type_byte_order instead of gdbarch_byte_order.
415 * valarith.c (scalar_binop):
416 (value_bit_index):
417 Use type_byte_order instead of gdbarch_byte_order.
418 * valops.c (value_cast):
419 Use type_byte_order instead of gdbarch_byte_order.
420 * valprint.c (generic_emit_char):
421 (generic_printstr):
422 (val_print_string):
423 Use type_byte_order instead of gdbarch_byte_order.
424 * value.c (unpack_long):
425 (unpack_bits_as_long):
426 (unpack_value_bitfield):
427 (modify_field):
428 (pack_long):
429 (pack_unsigned_long):
430 Use type_byte_order instead of gdbarch_byte_order.
431 * findvar.c (unsigned_pointer_to_address):
432 (signed_pointer_to_address):
433 (unsigned_address_to_pointer):
434 (address_to_signed_pointer):
435 (default_read_var_value):
436 (default_value_from_register):
437 Use type_byte_order instead of gdbarch_byte_order.
438 * gnu-v3-abi.c (gnuv3_make_method_ptr):
439 Use type_byte_order instead of gdbarch_byte_order.
440 * riscv-tdep.c (riscv_print_one_register_info):
441 Use type_byte_order instead of gdbarch_byte_order.
442
443 2019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
444
445 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
446 (current_ui_gdb_stdin_ptr): Likewise.
447 (current_ui_gdb_stderr_ptr): Likewise.
448 (current_ui_gdb_stdlog_ptr): Likewise.
449 (current_ui_current_uiout_ptr): Likewise.
450 (gen_ret_current_ui_field_ptr): Remove.
451
452 2019-11-21 Tom de Vries <tdevries@suse.de>
453
454 PR gdb/24956
455 * cli/cli-script.c (execute_control_command): Only switch to
456 INTERP_CONSOLE's ui_out when INTERP_MI is active.
457
458 2019-11-19 Tom Tromey <tom@tromey.com>
459
460 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
461 Now static. Change type of "name".
462 (tui_set_win_height_command): Don't copy "arg".
463 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
464 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
465
466 2019-11-19 Ali Tamur <tamur@google.com>
467
468 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
469 "if (attr != nullptr)".
470 (dwarf2_find_base_address): Likewise.
471 (dwarf2_build_include_psymtabs): Likewise.
472 (read_cutu_die_from_dwo): Likewise.
473 (read_func_scope): Likewise.
474 (read_call_site_scope): Likewise.
475 (dwarf2_get_pc_bounds): Likewise.
476 (dwarf2_record_block_ranges): Likewise.
477 (dwarf2_add_field): Likewise.
478 (dwarf2_add_member_fn): Likewise.
479 (read_structure_type): Likewise.
480 (read_enumeration_type): Likewise.
481 (read_array_type): Likewise.
482 (read_array_order): Likewise.
483 (read_set_type): Likewise.
484 (read_common_block): Likewise.
485 (read_tag_reference_type): Likewise.
486 (read_tag_string_type): Likewise.
487 (read_subroutine_type): Likewise.
488 (read_base_type): Likewise.
489 (read_subrange_type): Likewise.
490 (new_symbol): Likewise.
491 (prepare_one_comp_unit): Likewise.
492
493 2019-11-19 Tom Tromey <tromey@adacore.com>
494
495 * windows-nat.c (windows_nat_target::attach): Include GetLastError
496 result in error when DebugActiveProcess fails.
497
498 2019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
499 Pedro Alves <palves@redhat.com>
500
501 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
502 * target.c (target_stack::push): Call 'unpush' if there's a
503 target on top of the stack.
504
505 2019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
506
507 * python/py-block.c (blpy_dealloc): Call tp_free.
508 (blpy_block_syms_dealloc): Likewise.
509 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
510 * python/py-inferior.c (infpy_dealloc): Likewise.
511 * python/py-lazy-string.c (stpy_dealloc): Likewise.
512 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
513 * python/py-symbol.c (sympy_dealloc): Likewise.
514 * python/py-symtab.c (stpy_dealloc): Likewise.
515 * python/py-type.c (typy_iterator_dealloc): Likewise.
516
517 2019-11-18 Christian Biesinger <cbiesinger@google.com>
518
519 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
520 constructor instead of using a class initializer.
521
522 2019-11-15 Christian Biesinger <cbiesinger@google.com>
523
524 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
525 * configure: Regenerate.
526 * configure.ac: Don't source common.host.
527 * gdbsupport/common.host: Remove.
528 * gdbsupport/mingw-strerror.c: Remove.
529 * gdbsupport/posix-strerror.c: Rename to...
530 * gdbsupport/safe-strerror.c: ...this.
531
532 2019-11-15 Christian Biesinger <cbiesinger@google.com>
533
534 * maint.c (scoped_command_stats::print_time): Use localtime_r
535 instead of localtime (provided through gnulib if necessary).
536 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
537 of ctime.
538
539 2019-11-15 Christian Biesinger <cbiesinger@google.com>
540
541 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
542 avoid compile errors.
543
544 2019-11-15 Christian Biesinger <cbiesinger@google.com>
545
546 * config.in: Regenerate.
547 * configure: Regenerate.
548 * gdbsupport/common.m4: No longer check for strerror_r.
549 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
550 POSIX version of strerror_r, now that gnulib provides it if
551 necessary.
552
553 2019-11-14 Christian Biesinger <cbiesinger@google.com>
554
555 * README (`configure' options): Update.
556
557 2019-11-14 Tom Tromey <tromey@adacore.com>
558
559 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
560 expected type for the RHS if the LHS is a convenience variable.
561
562 2019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
563
564 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
565 Provide explicit default and copy constructor.
566
567 2019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
568
569 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
570 only call Py_INCREF (newbp) in the bppy_pending_object case.
571
572 2019-11-13 Tom Tromey <tromey@adacore.com>
573
574 PR build/25182:
575 * psympriv.h (partial_symbol): Remove static assert.
576 * symtab.h (general_symbol_info, symbol): Remove static assert.
577
578 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
579
580 * gdbsupport/format.c (format_pieces::format_pieces): Support
581 printf 'z' size modifier.
582 * gdbsupport/format.h (enum argclass): Add size_t_arg.
583 * printcmd.c (ui_printf): Handle size_t_arg.
584 * ui-out.c (ui_out::vmessage): Likewise.
585 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
586 function.
587 (run_tests): Call test_format_int_sizes.
588
589 2019-11-12 Christian Biesinger <cbiesinger@google.com>
590
591 * ada-exp.y (write_ambiguous_var): Update.
592 * buildsym.c (add_symbol_to_list): Update.
593 * dwarf2read.c (read_variable): Update.
594 (new_symbol): Update.
595 * jit.c (finalize_symtab): Update.
596 * language.c (language_alloc_type_symbol): Update.
597 * symtab.c (fixup_symbol_section): Update.
598 (initialize_objfile_symbol_1): Move code to...
599 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
600 (allocate_symbol): Update.
601 (allocate_template_symbol): Update.
602 (get_symbol_address): Update.
603 * symtab.h (struct symbol): Inherit from general_symbol_info instead
604 of having as a field, and add a constructor.
605 (SYMBOL_VALUE): Update.
606 (SYMBOL_VALUE_ADDRESS): Update.
607 (SET_SYMBOL_VALUE_ADDRESS): Update.
608 (SYMBOL_VALUE_BYTES): Update.
609 (SYMBOL_VALUE_COMMON_BLOCK): Update.
610 (SYMBOL_BLOCK_VALUE): Update.
611 (SYMBOL_VALUE_CHAIN): Update.
612 (SYMBOL_LANGUAGE): Update.
613 (SYMBOL_SECTION): Update.
614 (SYMBOL_OBJ_SECTION): Update.
615 (SYMBOL_SET_LANGUAGE): Update.
616 (SYMBOL_SET_LINKAGE_NAME): Update.
617 (SYMBOL_SET_NAMES): Update.
618 (SYMBOL_NATURAL_NAME): Update.
619 (SYMBOL_LINKAGE_NAME): Update.
620 (SYMBOL_DEMANGLED_NAME): Update.
621 (SYMBOL_SEARCH_NAME): Update.
622 (SYMBOL_MATCHES_SEARCH_NAME): Update.
623 (struct symbol): Update.
624 (struct template_symbol): Update.
625 (struct rust_vtable_symbol): Update.
626 * xcoffread.c (SYMBOL_DUP): Update.
627
628 2019-11-12 Tom Tromey <tom@tromey.com>
629
630 * tui/tui-layout.c (show_layout): Set current_layout.
631 (show_source_disasm_command, show_data)
632 (show_source_or_disasm_and_command): Don't set current_layout.
633
634 2019-11-12 Tom Tromey <tom@tromey.com>
635
636 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
637
638 2019-11-12 Tom Tromey <tom@tromey.com>
639
640 * tui/tui-win.c (resize_message): New global.
641 (show_tui_resize_message): New function.
642 (tui_async_resize_screen): Print message if requested.
643 (_initialize_tui_win): Add tui-resize-message setting.
644 * NEWS: Add entry for new commands.
645
646 2019-11-11 Tom Tromey <tom@tromey.com>
647
648 * tui/tui.c (tui_initialize_readline): Add new bindable readline
649 functions.
650
651 2019-11-11 Christian Biesinger <cbiesinger@google.com>
652
653 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
654
655 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
656
657 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
658 function.
659 * python/python-internal.h (gdbpy_lookup_static_symbols):
660 Declare new function.
661 * python/python.c (python_GdbMethods): Add
662 gdb.lookup_static_symbols method.
663 * NEWS: Mention gdb.lookup_static_symbols.
664
665 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
666
667 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
668 static block of current object file first. Also fix typo in
669 header comment.
670
671 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
672
673 * stack.c (set_last_displayed_sal): Delete.
674 (last_displayed_sal_valid): Delete.
675 (last_displayed_pspace): Delete.
676 (last_displayed_addr): Delete.
677 (last_displayed_symtab): Delete.
678 (last_displayed_line): Delete.
679 (class last_displayed_symtab_info_type): New.
680 (last_displayed_symtab_info): New static global variable.
681 (print_frame_info): Call methods on last_displayed_symtab_info.
682 (clear_last_displayed_sal): Update header comment, and make use of
683 last_displayed_symtab_info.
684 (last_displayed_sal_is_valid): Likewise.
685 (get_last_displayed_pspace): Likewise.
686 (get_last_displayed_addr): Likewise.
687 (get_last_displayed_symtab): Likewise.
688 (get_last_displayed_line): Likewise.
689 (get_last_displayed_sal): Likewise.
690 * stack.h (clear_last_displayed_sal): Update header comment.
691 (last_displayed_sal_is_valid): Likewise.
692 (get_last_displayed_pspace): Likewise.
693 (get_last_displayed_addr): Likewise.
694 (get_last_displayed_symtab): Likewise.
695 (get_last_displayed_line): Likewise.
696 (get_last_displayed_sal): Likewise.
697
698 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
699
700 * stack.c (frame_show_address): Convert return type to bool.
701 * stack.h (frame_show_address): Likewise, and update header
702 comment.
703
704 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
705
706 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
707 * unittests/vec-utils-selftests.c: New file.
708 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
709
710 2019-11-10 Tom Tromey <tom@tromey.com>
711
712 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
713 (tui_highlight_win): Likewise.
714 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
715 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
716 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
717 Don't set can_highlight.
718
719 2019-11-10 Tom Tromey <tom@tromey.com>
720
721 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
722 Remove unused declaration.
723
724 2019-11-08 Tom Tromey <tromey@adacore.com>
725
726 * top.c (read_command_file): Update.
727 (command_line_input): Make return type const.
728 * python/py-gdb-readline.c: Update.
729 * linespec.c (decode_line_2): Update.
730 * defs.h (command_line_input): Make return type const.
731 * cli/cli-script.c (read_next_line): Make return type const.
732 * ada-lang.c (get_selections): Update.
733
734 2019-11-06 Christian Biesinger <cbiesinger@google.com>
735
736 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
737 * mi/mi-main.c (output_cores): Likewise.
738 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
739 (linux_xfer_osdata_modules): Likewise.
740 * remote.c (register_remote_support_xml): Likewise.
741 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
742 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
743
744 2019-11-06 Tom Tromey <tom@tromey.com>
745
746 * tui/tui-interp.c: Don't include readline.h.
747 * tui/tui-hooks.c: Don't include readline.h.
748 * symmisc.c: Include tilde.h, not readline.h.
749 * symfile.c: Include tilde.h, not readline.h.
750 * source.c: Include tilde.h, not readline.h.
751 * solib.c: Include tilde.h, not readline.h.
752 * psymtab.c: Include tilde.h, not readline.h.
753 * exec.c: Include tilde.h, not readline.h.
754 * corelow.c: Include tilde.h, not readline.h.
755 * cli/cli-dump.c: Include tilde.h, not readline.h.
756 * cli/cli-cmds.c: Don't include readline.h.
757
758 2019-11-05 Tom Tromey <tom@tromey.com>
759
760 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
761 (tui_disassemble): Set addr_size.
762 (tui_disasm_window::set_contents): Use addr_size.
763
764 2019-11-05 Tom Tromey <tom@tromey.com>
765
766 * rust-lang.c (rust_language_defn): Update.
767 * python/py-value.c (valpy_string): Call c_get_string.
768 * p-lang.c (pascal_language_defn): Update.
769 * opencl-lang.c (opencl_language_defn): Update.
770 * objc-lang.c (objc_language_defn): Update.
771 * m2-lang.c (m2_language_defn): Update.
772 * language.c (unknown_language_defn, auto_language_defn): Update.
773 (default_get_string): Remove.
774 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
775 * go-lang.c (go_language_defn): Update.
776 * f-lang.c (f_language_defn): Update.
777 * d-lang.c (d_language_defn): Update.
778 * c-lang.c (c_language_defn, cplus_language_defn)
779 (asm_language_defn, minimal_language_defn): Update.
780 * ada-lang.c (ada_language_defn): Update.
781 * language.h (struct language_defn) <la_get_string>: Remove.
782 (LA_GET_STRING): Remove.
783 (default_get_string): Don't declare.
784
785 2019-11-05 Tom Tromey <tom@tromey.com>
786
787 * tui/tui-source.h (struct tui_source_window): Inline
788 constructor. Remove destructor.
789 <style_changed, m_observable>: Move to superclass.
790 * tui/tui-winsource.h (tui_copy_source_line): Declare.
791 (struct tui_source_window_base): Move private members to end.
792 <style_changed, m_observable>: Move from tui_source_window.
793 * tui/tui-winsource.c (tui_copy_source_line): Move from
794 tui-source.c. Rename from copy_source_line. Add special handling
795 for negative line number.
796 (tui_source_window_base::style_changed): Move from
797 tui_source_window.
798 (tui_source_window_base): Register observer.
799 (~tui_source_window_base): New.
800 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
801 rename.
802 (tui_source_window::set_contents): Use tui_copy_source_line.
803 (tui_source_window::tui_source_window): Move to tui-source.h.
804 (tui_source_window::~tui_source_window): Remove.
805 (tui_source_window::style_changed): Move to superclass.
806 * tui/tui-disasm.c (tui_disassemble): Create string file with
807 styling, when possible. Add "addr_size" parameter.
808 (tui_disasm_window::set_contents): Use tui_copy_source_line.
809 Don't compute maximum size.
810 (len_without_escapes): New function
811
812 2019-11-05 Tom Tromey <tom@tromey.com>
813
814 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
815 std::string.
816 * tui/tui-winsource.c (tui_show_source_line): Update.
817 * tui/tui-source.c (tui_source_window::set_contents): Update.
818 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
819
820 2019-11-05 Christian Biesinger <cbiesinger@google.com>
821
822 * symtab.h (gdb_static_assert): Put && operator at the beginning
823 of the line instead of the end.
824
825 2019-11-04 Christian Biesinger <cbiesinger@google.com>
826
827 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
828 and sizeof (symbol).
829 * symtab.h: Add a static_assert for sizeof (partial_symbol).
830
831 2019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
832
833 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
834 * configure.host: Mark *-*-solaris2.10* obsolete.
835 * configure.tgt: Mark Solaris < 11 obsolete.
836 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
837 Update target triplet.
838
839 2019-11-01 Tom Tromey <tromey@adacore.com>
840
841 * utils.c (print_sys_errmsg): Simplify.
842
843 2019-11-01 Tom Tromey <tromey@adacore.com>
844
845 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
846
847 2019-11-01 Christian Biesinger <cbiesinger@google.com>
848
849 * configure: Regenerate.
850 * configure.ac: Remove check for strerror_r.
851 * gdbsupport/common.m4: Check for strerror_r.
852
853 2019-11-01 Luis Machado <luis.machado@linaro.org>
854
855 PR gdb/25124
856
857 * arm-tdep.c (arm_per_objfile): Rename to ...
858 (arm_per_bfd): ... this.
859 (arm_objfile_data_key): Rename to ...
860 (arm_bfd_data_key): ... this.
861 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
862 data.
863 (arm_record_special_symbol): Likewise.
864
865 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
866
867 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
868 end.
869 * c-typeprint.c (c_print_typedef): Likewise.
870 * f-typeprint.c (f_print_typedef): Likewise.
871 * m2-typeprint.c (m2_print_typedef): Likewise.
872 * p-typeprint.c (pascal_print_typedef): Likewise.
873 * rust-lang.c (rust_print_typedef): Likewise.
874 * symtab.c (print_symbol_info): Print a newline after calling
875 typedef_print.
876
877 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
878
879 * symtab.c (info_module_cmdlist): New variable.
880 (info_module_command): New function.
881 (search_module_symbols): New function.
882 (info_module_subcommand): New function.
883 (struct info_modules_var_func_options): New struct.
884 (info_modules_var_func_options_defs): New variable.
885 (make_info_modules_var_func_options_def_group): New function.
886 (info_module_functions_command): New function.
887 (info_module_variables_command): New function.
888 (info_module_var_func_command_completer): New function.
889 (_initialize_symtab): Register new 'info module functions' and
890 'info module variables' commands.
891 * symtab.h (typedef symbol_search_in_module): New typedef.
892 (search_module_symbols): Declare new function.
893 * NEWS: Mention new commands.
894
895 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
896
897 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
898 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
899 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
900 MODULES_DOMAIN.
901 (scan_partial_symbols): Only create partial module symbols for non
902 declarations.
903 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
904 and MODULES_DOMAIN.
905 * symtab.c (search_domain_name): Likewise.
906 (search_symbols): Likewise.
907 (print_symbol_info): Likewise.
908 (symtab_symbol_info): Likewise.
909 (info_modules_command): New function.
910 (_initialize_symtab): Register 'info modules' command.
911 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
912 * NEWS: Mention new 'info modules' command.
913
914 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
915
916 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
917 and $_gdb_maint_setting_str.
918
919 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
920
921 * cli/cli-cmds.c (setting_cmd, value_from_setting)
922 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
923 (str_value_from_setting, gdb_setting_str_internal_fn)
924 (gdb_maint_setting_str_internal_fn): New functions.
925 (_initialize_cli_cmds): Define the new convenience functions.
926 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
927 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
928
929 2019-10-31 Christian Biesinger <cbiesinger@google.com>
930
931 * agent.c (set_can_use_agent): When the setting is turned on,
932 look up agent symbols if we don't have them yet.
933 (agent_new_objfile): Don't look up agent symbols when the agent
934 setting is off.
935
936 2019-10-31 Christian Biesinger <cbiesinger@google.com>
937
938 * config.in: Regenerate.
939
940 2019-10-31 Christian Biesinger <cbiesinger@google.com>
941
942 * configure: Regenerate.
943 * configure.ac: Check for strerror_r.
944 * gdbsupport/common-utils.h (safe_strerror): Change return value
945 to const char * and document that this function is now threadsafe.
946 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
947 thread_local and call strerror_r, if available.
948 * utils.c (perror_string): Update.
949 (print_sys_errmsg): Update.
950
951 2019-10-31 Luis Machado <luis.machado@linaro.org>
952
953 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
954 objfile_key.
955 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
956 objfile to fetch per-bfd data.
957 (arm_find_exidx_entry): Likewise.
958
959 2019-10-31 Christian Biesinger <cbiesinger@google.com>
960
961 * gdbsupport/agent.c (debug_agent): Change type to bool.
962 (use_agent): Likewise.
963 (all_agent_symbols_look_up): Likewise.
964 (agent_loaded_p): Change return value to bool.
965 (agent_look_up_symbols): Update.
966 (agent_capability_check): Change return value to bool.
967 * gdbsupport/agent.h (agent_loaded_p): Likewise.
968 (debug_agent): Change type to bool.
969 (use_agent): Likewise.
970 (agent_capability_check): Change return value to bool.
971
972 2019-10-30 Christian Biesinger <cbiesinger@google.com>
973
974 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
975 (build_minimal_symbol_hash_tables): Code to clear the table moved
976 to clear_minimal_symbol_hash_tables.
977 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
978 when needed.
979
980 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
981
982 * infcmd.c: Remove includes.
983 * infrun.c: Remove includes.
984
985 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
986
987 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
988 (grow_vect): Remove declaration.
989 (ada_type_of_array): Remove declaration.
990 (ada_update_initial_language): Remove declaration.
991 (ada_fold_name): Remove declaration.
992 (ada_fill_in_ada_prototype): Remove declaration.
993 (user_select_syms): Remove declaration.
994 (get_selections): Remove declaration.
995 (ada_tag_type): Remove declaration.
996 (ada_value_tag): Remove declaration.
997 (ada_is_others_clause): Remove declaration.
998 (ada_in_variant): Remove declaration.
999 (ada_value_struct_elt): Remove declaration.
1000 (ada_attribute_name): Remove declaration.
1001 (ada_system_address_type): Remove declaration.
1002 * ada-lang.c (ada_watch_location_expression): Make static.
1003 (GROW_VECT): Move here from ada-lang.h.
1004 (grow_vect): Make static.
1005 (ada_update_initial_language): Make static.
1006 (ada_fold_name): Make static.
1007 (ada_type_of_array): Make static.
1008 (encoded_ordered_before): Move up.
1009 (sort_choices): Move up.
1010 (print_signatures): Move up.
1011 (ada_print_symbol_signature): Move up.
1012 (get_selections): Move up and make static.
1013 (user_select_syms): Move up and make static.
1014 (ada_value_struct_elt): Move up and make static.
1015 (ada_tag_type): Make static.
1016 (ada_value_tag): Make static.
1017 (ada_is_others_clause): Make static.
1018 (ada_in_variant): Make static.
1019 (ada_attribute_name): Make static.
1020
1021 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1022
1023 * ada-lang.c: Remove includes.
1024 * ada-typeprint.c: Remove includes.
1025 * ada-valprint.c: Remove includes.
1026
1027 2019-10-29 Simon Marchi <simon.marchi@efficios.com>
1028
1029 * addrmap.c: Add static assertions of type size, moved from
1030 _initialize_addrmap.
1031 (_initialize_addrmap): Remove.
1032
1033 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1034
1035 * coffread.c (record_minimal_symbol): Update.
1036 (process_coff_symbol): Update.
1037 * dbxread.c (read_dbx_symtab): Update.
1038 * dwarf2read.c (add_partial_symbol): Update.
1039 (fixup_go_packaging): Update.
1040 (load_partial_dies): Update.
1041 (new_symbol): Update.
1042 * elfread.c (record_minimal_symbol): Change signature to use
1043 gdb::string_view instead of name+len.
1044 (elf_symtab_read): Update.
1045 (elf_rel_plt_read): Update.
1046 * mdebugread.c (parse_partial_symbols): Update.
1047 (handle_psymbol_enumerators): Update.
1048 (new_symbol): Update.
1049 * minsyms.c (minimal_symbol_reader::record_full): Change signature
1050 to use gdb::string_view instead of name+len.
1051 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
1052 * psympriv.h (add_psymbol_to_list): Likewise.
1053 * psymtab.c (add_psymbol_to_bcache): Likewise.
1054 (add_psymbol_to_list): Likewise.
1055 * stabsread.c (define_symbol): Update.
1056 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
1057 * symtab.h (SYMBOL_SET_NAMES): Likewise.
1058 (symbol_set_names): Likewise.
1059 * xcoffread.c (scan_xcoff_symtab): Update.
1060
1061 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1062
1063 * symtab.h (symbol_set_names): Document that copy_name must be
1064 set to true for non-nullterminated strings.
1065 * symtab.c (symbol_set_names): Only make a nullterminated copy of
1066 linkage_name if the entry was not found and we need to demangle.
1067
1068 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1069
1070 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
1071 * dwarf2-frame.c (bsearch_fde_cmp): Update.
1072 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
1073 * gdbsupport/gdb_binary_search.h: New file.
1074
1075 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1076
1077 * NEWS: Mention new --with-system-gdbinit-dir option.
1078 * config.in: Regenerate.
1079 * configure: Regenerate.
1080 * configure.ac: Add new option --with-system-gdbinit-dir.
1081 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
1082 for a ".gdb" suffix.
1083 * main.c (get_init_files): Change system_gdbinit argument to
1084 a vector and return the files in SYSTEM_GDBINIT_DIR in
1085 addition to SYSTEM_GDBINIT.
1086 (captured_main_1): Update.
1087 (print_gdb_help): Update.
1088 * top.c (print_gdb_configuration): Also print the value of
1089 SYSTEM_GDBINIT_DIR.
1090
1091 2019-10-28 Christian Biesinger <cbiesinger@google.com>
1092
1093 * gdbsupport/common-utils.h (startswith): Add an overloaded version
1094 that takes gdb::string_view arguments.
1095
1096 2019-10-26 Tom de Vries <tdevries@suse.de>
1097
1098 * aarch64-linux-tdep.c: Fix typos in comments.
1099 * aarch64-tdep.c: Same.
1100 * ada-lang.c: Same.
1101 * amd64-nat.c: Same.
1102 * arc-tdep.c: Same.
1103 * arch/aarch64-insn.c: Same.
1104 * block.c: Same.
1105 * breakpoint.h: Same.
1106 * btrace.h: Same.
1107 * c-varobj.c: Same.
1108 * cli/cli-decode.c: Same.
1109 * cli/cli-script.c: Same.
1110 * cli/cli-utils.h: Same.
1111 * coff-pe-read.c: Same.
1112 * coffread.c: Same.
1113 * compile/compile-cplus-symbols.c: Same.
1114 * compile/compile-object-run.c: Same.
1115 * completer.c: Same.
1116 * corelow.c: Same.
1117 * cp-support.c: Same.
1118 * demangle.c: Same.
1119 * dwarf-index-write.c: Same.
1120 * dwarf2-frame.c: Same.
1121 * dwarf2-frame.h: Same.
1122 * eval.c: Same.
1123 * frame-base.h: Same.
1124 * frame.h: Same.
1125 * gdbcmd.h: Same.
1126 * gdbtypes.h: Same.
1127 * gnu-nat.c: Same.
1128 * guile/scm-objfile.c: Same.
1129 * i386-tdep.c: Same.
1130 * i386-tdep.h: Same.
1131 * infcall.c: Same.
1132 * infcall.h: Same.
1133 * linux-nat.c: Same.
1134 * m68k-tdep.c: Same.
1135 * macroexp.c: Same.
1136 * memattr.c: Same.
1137 * mi/mi-cmd-disas.c: Same.
1138 * mi/mi-getopt.h: Same.
1139 * mi/mi-main.c: Same.
1140 * minsyms.c: Same.
1141 * nat/aarch64-sve-linux-sigcontext.h: Same.
1142 * objfiles.h: Same.
1143 * ppc-linux-nat.c: Same.
1144 * ppc-linux-tdep.c: Same.
1145 * ppc-tdep.h: Same.
1146 * progspace.h: Same.
1147 * prologue-value.h: Same.
1148 * python/py-evtregistry.c: Same.
1149 * python/py-instruction.h: Same.
1150 * record-btrace.c: Same.
1151 * record-full.c: Same.
1152 * remote.c: Same.
1153 * rs6000-tdep.c: Same.
1154 * ser-tcp.c: Same.
1155 * sol-thread.c: Same.
1156 * sparc-sol2-tdep.c: Same.
1157 * sparc64-tdep.c: Same.
1158 * stabsread.c: Same.
1159 * symfile.c: Same.
1160 * symtab.h: Same.
1161 * target.c: Same.
1162 * tracepoint.c: Same.
1163 * tui/tui-data.h: Same.
1164 * tui/tui-io.c: Same.
1165 * tui/tui-win.c: Same.
1166 * tui/tui.c: Same.
1167 * unittests/rsp-low-selftests.c: Same.
1168 * user-regs.h: Same.
1169 * utils.c: Same.
1170 * utils.h: Same.
1171 * valarith.c: Same.
1172 * valops.c: Same.
1173 * valprint.c: Same.
1174 * valprint.h: Same.
1175 * value.c: Same.
1176 * value.h: Same.
1177 * varobj.c: Same.
1178 * x86-nat.h: Same.
1179 * xtensa-tdep.c: Same.
1180
1181 2019-10-25 Ali Tamur <tamur@google.com>
1182
1183 * charset.c (find_charset_names): Reflect API change.
1184
1185 2019-10-25 Christian Biesinger <cbiesinger@google.com>
1186
1187 * symtab.c (struct demangled_name_entry): Change demangled name
1188 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
1189 part of the struct anymore.
1190 (symbol_set_names): No longer obstack allocate + copy the demangled
1191 name, just store the allocated name from bfd.
1192
1193 2019-10-25 Tom Tromey <tromey@adacore.com>
1194
1195 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
1196 (bsearch_cie_cmp, add_cie): Remove.
1197 (find_cie): Reimplement.
1198 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
1199 (dwarf2_build_frame_info): Update.
1200
1201 2019-10-24 H.J. Lu <hongjiu.lu@intel.com>
1202
1203 PR gdb/25126
1204 * symfile.c (reread_symbols): Call forget_cached_source_info to
1205 clear the stale source cache.
1206
1207 2019-10-24 Christian Biesinger <cbiesinger@google.com>
1208
1209 * configure: Regenerate.
1210 * configure.ac: Remove code that sets python_has_threads.
1211
1212 2019-10-24 Christian Biesinger <cbiesinger@google.com>
1213
1214 * config.in: Regenerate.
1215 * configure: Regenerate.
1216 * configure.ac: Remove the code that uses sed to get the python
1217 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
1218
1219 2019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
1220
1221 * python/py-progspace.c (pspy_block_for_pc): Return None for all
1222 error paths.
1223
1224 2019-10-23 Tom Tromey <tom@tromey.com>
1225
1226 * arc-tdep.c: Remove ".." from include.
1227 * frv-tdep.c: Remove ".." from include.
1228 * lm32-tdep.c: Remove ".." from include.
1229 * microblaze-tdep.c: Remove ".." from include.
1230 * or1k-tdep.h: Remove ".." from include.
1231 * s12z-tdep.c: Remove ".." from include.
1232 * Makefile.in (OPCODES_CFLAGS): Add comment.
1233 (TOP_CFLAGS): New variable.
1234 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
1235
1236 2019-10-23 Tom Tromey <tom@tromey.com>
1237
1238 * Makefile.in (READLINE_DIR): Update.
1239
1240 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1241
1242 * infcall.c (call_function_by_hand_dummy): Fix the function
1243 comment. And extract out a code section into...
1244 (reserve_stack_space): ...this new function.
1245
1246 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1247
1248 * infcall.c (value_arg_coerce): Remove an unused parameter.
1249 (call_function_by_hand_dummy): Update the call to
1250 'value_arg_coerce'.
1251
1252 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1253
1254 * infcall.c (call_function_by_hand_dummy): Refactor.
1255
1256 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1257
1258 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
1259
1260 2019-10-23 Tom Tromey <tom@tromey.com>
1261
1262 * configure: Rebuild.
1263 * configure.ac: Don't check for sigprocmask.
1264 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
1265
1266 2019-10-23 Tom Tromey <tom@tromey.com>
1267
1268 * configure: Rebuild.
1269 * acinclude.m4: Use m4_include, not sinclude.
1270
1271 2019-10-23 Tom de Vries <tdevries@suse.de>
1272
1273 PR breakpoints/24687
1274 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
1275
1276 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1277
1278 * symtab.c (struct demangled_name_entry) <language>: Change from
1279 bitfield to regular variable.
1280
1281 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1282
1283 * symtab.c (struct demangled_name_entry): Add a constructor.
1284 (free_demangled_name_entry): New function to call the destructor
1285 for demangled_name_entry.
1286 (create_demangled_names_hash): Pass free_demangled_name_entry to
1287 htab_create_alloc.
1288 (symbol_set_names): Call placement new for demangled_name_entry.
1289 * utils.c: No longer include xxhash.h here, now that fast_hash
1290 is inlined in the header.
1291 * utils.h: Instead, include it here.
1292
1293 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1294
1295 * Makefile.in: Link with libxxhash.
1296 * config.in: Regenerate.
1297 * configure: Regenerate.
1298 * configure.ac: Search for libxxhash.
1299 * utils.c (fast_hash): Use xxhash if present.
1300
1301 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1302
1303 * utils.h (fast_hash): New function.
1304 * symtab.c (hash_demangled_name_entry): Call new function
1305 fast_hash.
1306
1307 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1308
1309 * symtab.c (struct demangled_name_entry): Change type of mangled
1310 to gdb::string_view. Also adds a constructor that takes the
1311 mangled name.
1312 (hash_demangled_name_entry): Update.
1313 (eq_demangled_name_entry): Update.
1314 (free_demangled_name_entry): New function to call the destructor
1315 now that this is not a POD anymore.
1316 (create_demangled_names_hash): Pass free_demangled_name_entry to
1317 htab_create_alloc.
1318 (symbol_set_names): Update.
1319
1320 2019-10-21 Ali Tamur <tamu@google.com>
1321
1322 * dwarf2read.c (dir_index): Change type.
1323 (file_name_index): Likewise.
1324 (line_header::include_dir_at): Change comment and implementation on
1325 whether it is DWARF 5.
1326 (line_header::is_valid_file_index): New function.
1327 (line_header::file_name_at): Change comment and implementation on
1328 whether it is DWARF 5.
1329 (line_header::file_names): Change to private field renamed as
1330 m_file_names and introduce a new accessor method.
1331 (line_header::file_names_size): New method.
1332 (line_header::include_dirs): Change to private field and rename as
1333 m_include_dirs.
1334 (dw2_get_file_names_reader): Define local var at a smaller scope and
1335 reflect API change.
1336 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
1337 (process_structure_scope): Likewise.
1338 (line_header::add_include_dir): Change message and reflect renaming.
1339 (line_header::add_file_name): Likewise.
1340 (read_formatted_entries): Handle DW_FORM_data16.
1341 (dwarf_decode_line_header): Fix line header length calculation.
1342 (psymtab_include_file_name): Change comment and API.
1343 (lnp_state_machine::m_file): Update comment and reflect type change.
1344 (lnp_state_machine::record_line): Reflect type change.
1345 (dwarf_decode_lines): Reflect API change.
1346 (file_file_name): Likewise.
1347 (file_full_name): Likewise.
1348
1349 2019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
1350
1351 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
1352
1353 2019-10-21 Tom Tromey <tom@tromey.com>
1354
1355 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
1356
1357 2019-10-21 Tom Tromey <tom@tromey.com>
1358
1359 * configure.ac (nm.h): Conditionally create nm.h link. Subst
1360 NM_H. Use AC_CONFIG_LINKS.
1361 * configure: Rebuild.
1362 * Makefile.in (NM_H): New variable.
1363 (generated_files): Add NM_H. Remove gcore.
1364 (nm.h, stamp-nmh): New targets.
1365
1366 2019-10-20 Tom Tromey <tom@tromey.com>
1367
1368 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
1369 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
1370 obsolete comment.
1371 (put_objfile_before): Now static.
1372
1373 2019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
1374
1375 * gdbsupport/common-utils.h (startswith): Change return type to
1376 bool.
1377
1378 2019-10-19 Christian Biesinger <cbiesinger@google.com>
1379
1380 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
1381 * breakpoint.c (bp_locations_compare): Rename to...
1382 (bp_location_is_less_than): ...this, and change to std::sort semantics.
1383 (update_global_location_list): Use std::sort instead of qsort.
1384 * buildsym.c (compare_line_numbers): Rename to...
1385 (lte_is_less_than): ...this, and change to std::sort semantics.
1386 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
1387 instead of qsort.
1388 * disasm.c (compare_lines): Rename to...
1389 (line_is_less_than): ...this, and change to std::sort semantics.
1390 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
1391 of qsort.
1392 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
1393 (fde_is_less_than): ...this, and change to std::sort semantics.
1394 (dwarf2_build_frame_info): Call std::sort instead of qsort.
1395 * mdebugread.c (compare_blocks):
1396 (block_is_less_than): ...this, and change to std::sort semantics.
1397 (sort_blocks): Call std::sort instead of qsort.
1398 * objfiles.c (qsort_cmp): Rename to...
1399 (sort_cmp): ...this, and change to std::sort semantics.
1400 (update_section_map): Call std::sort instead of qsort.
1401 * remote.c (compare_pnums): Remove.
1402 (map_regcache_remote_table): Call std::sort instead of qsort.
1403 * utils.c (compare_positive_ints): Remove.
1404 * utils.h (compare_positive_ints): Remove.
1405 * xcoffread.c (compare_lte): Remove.
1406 (arrange_linetable): Call std::sort instead of qsort.
1407
1408 2019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
1409
1410 * symfile.c (init_entry_point_info): Fix typo.
1411 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
1412
1413 2019-10-18 Tom de Vries <tdevries@suse.de>
1414
1415 * aarch64-tdep.c: Fix typos in comments.
1416 * ada-lang.c: Same.
1417 * ada-tasks.c: Same.
1418 * alpha-tdep.c: Same.
1419 * alpha-tdep.h: Same.
1420 * amd64-nat.c: Same.
1421 * amd64-windows-tdep.c: Same.
1422 * arc-tdep.c: Same.
1423 * arc-tdep.h: Same.
1424 * arch-utils.c: Same.
1425 * arm-nbsd-tdep.c: Same.
1426 * arm-tdep.c: Same.
1427 * ax-gdb.c: Same.
1428 * blockframe.c: Same.
1429 * btrace.c: Same.
1430 * c-varobj.c: Same.
1431 * coff-pe-read.c: Same.
1432 * coffread.c: Same.
1433 * cris-tdep.c: Same.
1434 * darwin-nat.c: Same.
1435 * dbxread.c: Same.
1436 * dcache.c: Same.
1437 * disasm.c: Same.
1438 * dtrace-probe.c: Same.
1439 * dwarf-index-write.c: Same.
1440 * dwarf2-frame-tailcall.c: Same.
1441 * dwarf2-frame.c: Same.
1442 * dwarf2read.c: Same.
1443 * eval.c: Same.
1444 * exceptions.c: Same.
1445 * fbsd-tdep.c: Same.
1446 * findvar.c: Same.
1447 * frame.c: Same.
1448 * frv-tdep.c: Same.
1449 * gnu-v3-abi.c: Same.
1450 * go32-nat.c: Same.
1451 * h8300-tdep.c: Same.
1452 * hppa-tdep.c: Same.
1453 * i386-linux-tdep.c: Same.
1454 * i386-tdep.c: Same.
1455 * ia64-libunwind-tdep.c: Same.
1456 * ia64-tdep.c: Same.
1457 * infcmd.c: Same.
1458 * infrun.c: Same.
1459 * linespec.c: Same.
1460 * linux-nat.c: Same.
1461 * linux-thread-db.c: Same.
1462 * machoread.c: Same.
1463 * mdebugread.c: Same.
1464 * mep-tdep.c: Same.
1465 * mn10300-tdep.c: Same.
1466 * namespace.c: Same.
1467 * objfiles.c: Same.
1468 * opencl-lang.c: Same.
1469 * or1k-tdep.c: Same.
1470 * osabi.c: Same.
1471 * ppc-linux-nat.c: Same.
1472 * ppc-linux-tdep.c: Same.
1473 * ppc-sysv-tdep.c: Same.
1474 * printcmd.c: Same.
1475 * procfs.c: Same.
1476 * record-btrace.c: Same.
1477 * record-full.c: Same.
1478 * remote-fileio.c: Same.
1479 * remote.c: Same.
1480 * rs6000-tdep.c: Same.
1481 * s12z-tdep.c: Same.
1482 * score-tdep.c: Same.
1483 * ser-base.c: Same.
1484 * ser-go32.c: Same.
1485 * skip.c: Same.
1486 * sol-thread.c: Same.
1487 * solib-svr4.c: Same.
1488 * solib.c: Same.
1489 * source.c: Same.
1490 * sparc-nat.c: Same.
1491 * sparc-sol2-tdep.c: Same.
1492 * sparc-tdep.c: Same.
1493 * sparc64-tdep.c: Same.
1494 * stabsread.c: Same.
1495 * stack.c: Same.
1496 * symfile.c: Same.
1497 * symtab.c: Same.
1498 * target-descriptions.c: Same.
1499 * target-float.c: Same.
1500 * thread.c: Same.
1501 * utils.c: Same.
1502 * valops.c: Same.
1503 * valprint.c: Same.
1504 * value.c: Same.
1505 * varobj.c: Same.
1506 * windows-nat.c: Same.
1507 * xcoffread.c: Same.
1508 * xstormy16-tdep.c: Same.
1509 * xtensa-tdep.c: Same.
1510
1511 2019-10-17 Tom Tromey <tromey@adacore.com>
1512
1513 * configure: Rebuild.
1514 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
1515 in AC_CONFIG_FILES invocation.
1516 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
1517 new-style config.status invocation.
1518
1519 2019-10-17 Tom de Vries <tdevries@suse.de>
1520
1521 * arm-nbsd-nat.c: Fix typos in comments.
1522 * arm-tdep.c: Same.
1523 * darwin-nat-info.c: Same.
1524 * dwarf2read.c: Same.
1525 * elfread.c: Same.
1526 * event-top.c: Same.
1527 * findvar.c: Same.
1528 * gdbtypes.c: Same.
1529 * hppa-tdep.c: Same.
1530 * i386-tdep.c: Same.
1531 * jit.c: Same.
1532 * main.c: Same.
1533 * mdebugread.c: Same.
1534 * moxie-tdep.c: Same.
1535 * nto-procfs.c: Same.
1536 * osabi.c: Same.
1537 * ppc-linux-tdep.c: Same.
1538 * remote.c: Same.
1539 * riscv-tdep.c: Same.
1540 * s390-tdep.c: Same.
1541 * sh-tdep.c: Same.
1542 * sparc-linux-tdep.c: Same.
1543 * sparc-nat.c: Same.
1544 * stack.c: Same.
1545 * target-descriptions.c: Same.
1546 * top.c: Same.
1547 * varobj.c: Same.
1548
1549 2019-10-16 Tom Tromey <tom@tromey.com>
1550
1551 * objfiles.h (struct objfile) <original_name>: Now const.
1552
1553 2019-10-16 Christian Biesinger <cbiesinger@google.com>
1554
1555 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
1556 pass on to sigsetjmp's second argument.
1557 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
1558
1559 2019-10-16 Keith Seitz <keiths@redhat.com>
1560
1561 PR gdb/23567
1562 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
1563 sections whose size is greater than the file size.
1564
1565 2019-10-16 Jim Wilson <jimw@sifive.com>
1566
1567 * riscv-tdep.c (riscv_gcc_target_options): New.
1568 (riscv_gnu_triplet_regexp): New.
1569 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
1570 set_gdbarch_gnu_triplet_regexp.
1571
1572 2019-10-16 Christian Biesinger <cbiesinger@google.com>
1573
1574 * Makefile.in: Add xml-builtin.h.
1575 * features/feature_to_c.sh: Add an include for xml-builtin.h
1576 to ensure that the compiler checks that the types match.
1577 * xml-builtin.h: New file.
1578 * xml-support.c (fetch_xml_builtin): Add missing const.
1579 * xml-support.h: Remove declaration of xml_builtins.
1580
1581 2019-10-16 Tom de Vries <tdevries@suse.de>
1582
1583 PR tdep/25096
1584 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
1585 (amd64_classify_aggregate): ... here.
1586 (amd64_classify_aggregate_field): Handled fiels of nested structs
1587 recursively.
1588
1589 2019-10-16 Tom de Vries <tdevries@suse.de>
1590
1591 PR tdep/24104
1592 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
1593 that handles 'theclass'.
1594
1595 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1596
1597 * linespec.c (decode_digits_ordinary): Update comment.
1598 * make-target-delegates: No longer need to handle VEC case.
1599 * memrange.c (normalize_mem_ranges): Update comment.
1600 * namespace.c (add_using_directive): Update comment.
1601 * objc-lang.c (uniquify_strings): Update comment.
1602 * ppc-linux-nat.c (struct thread_points): Update comment.
1603 * probe.h (find_probes_in_objfile): Update comment.
1604 * target.h (enum flash_preserve_mode): Update comment.
1605 * varobj.c (varobj_restrict_range): Update comment.
1606 * varobj.h (varobj_list_children): Update comment.
1607
1608 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1609
1610 * Makefile.in: Remove references to vec.h and vec.c.
1611 * aarch64-tdep.c: No longer include vec.h.
1612 * ada-lang.c: Likewise.
1613 * ada-lang.h: Likewise.
1614 * arm-tdep.c: Likewise.
1615 * ax.h: Likewise.
1616 * breakpoint.h: Likewise.
1617 * charset.c: Likewise.
1618 * cp-support.h: Likewise.
1619 * dtrace-probe.c: Likewise.
1620 * dwarf2read.c: Likewise.
1621 * extension.h: Likewise.
1622 * gdb_bfd.c: Likewise.
1623 * gdbsupport/gdb_vecs.h: Likewise.
1624 * gdbsupport/vec.c: Remove.
1625 * gdbsupport/vec.h: Remove.
1626 * gdbthread.h: Likewise.
1627 * guile/scm-type.c: Likewise.
1628 * inline-frame.c: Likewise.
1629 * machoread.c: Likewise.
1630 * memattr.c: Likewise.
1631 * memrange.h: Likewise.
1632 * namespace.h: Likewise.
1633 * nat/linux-btrace.h: Likewise.
1634 * osdata.c: Likewise.
1635 * parser-defs.h: Likewise.
1636 * progspace.h: Likewise.
1637 * python/py-type.c: Likewise.
1638 * record-btrace.c: Likewise.
1639 * rust-exp.y: Likewise.
1640 * solib-target.c: Likewise.
1641 * stap-probe.c: Likewise.
1642 * target-descriptions.c: Likewise.
1643 * target-memory.c: Likewise.
1644 * target.h: Likewise.
1645 * varobj.c: Likewise.
1646 * varobj.h: Likewise.
1647 * xml-support.h: Likewise.
1648
1649 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1650
1651 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
1652 Update for new std::vector based implementation.
1653 (process_psymtab_comp_unit_reader): Likewise.
1654 (scan_partial_symbols): Likewise.
1655 (recursively_compute_inclusions): Likewise.
1656 (compute_compunit_symtab_includes): Likewise.
1657 (process_imported_unit_die): Likewise.
1658 (queue_and_load_dwo_tu): Likewise.
1659 (follow_die_sig_1): Likewise.
1660 * gdb/dwarf2read.h: Remove DEF_VEC_P.
1661 (typedef dwarf2_per_cu_ptr): Remove.
1662 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
1663 function.
1664 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
1665 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
1666 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
1667 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
1668 std::vector.
1669
1670 2019-10-15 Tom Tromey <tromey@adacore.com>
1671
1672 * windows-nat.c (windows_nat_target::resume): Use %x when logging
1673 TID.
1674
1675 2019-10-15 Tom Tromey <tromey@adacore.com>
1676
1677 * windows-nat.c (windows_nat_target::fetch_registers)
1678 (windows_nat_target::store_registers): Rename "pid" to "tid".
1679
1680 2019-10-15 Tom Tromey <tromey@adacore.com>
1681
1682 * gdbarch.h, gdbarch.c: Rebuild.
1683 * gdbarch.sh (gcc_target_options): Change return type to
1684 std::string.
1685 * compile/compile.c (get_args): Update.
1686 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
1687 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
1688 std::string.
1689 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
1690 std::string.
1691 * arch-utils.c (default_gcc_target_options): Return std::string.
1692 * arch-utils.h (default_gcc_target_options): Return std::string.
1693 * s390-tdep.c (s390_gcc_target_options): Return std::string.
1694
1695 2019-10-15 Christian Biesinger <cbiesinger@google.com>
1696
1697 * breakpoint.c (breakpoint_chain): Make static.
1698 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
1699 of accessing breakpoint_chain.
1700
1701 2019-10-15 Christian Biesinger <cbiesinger@google.com>
1702
1703 * breakpoint.c (iterate_over_breakpoints): Change function pointer
1704 to a gdb::function_view and return value to bool.
1705 * breakpoint.h (iterate_over_breakpoints): Likewise.
1706 * dummy-frame.c (pop_dummy_frame_bpt): Update.
1707 (pop_dummy_frame): Update.
1708 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
1709 (gdbscm_breakpoints): Update.
1710 * python/py-breakpoint.c (build_bp_list): Update.
1711 (gdbpy_breakpoints): Update.
1712 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
1713 Update.
1714 (bpfinishpy_handle_stop): Update.
1715 (bpfinishpy_handle_exit): Update.
1716 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
1717 (svr4_update_solib_event_breakpoints): Update.
1718
1719 2019-10-15 Andreas Arnez <arnez@linux.ibm.com>
1720
1721 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
1722 when unwrapping single-field structs.
1723
1724 2019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1725
1726 * dwarf2read.c: Remove includes.
1727
1728 2019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
1729
1730 * ui-out.c (ui_out::call_do_message): Silence
1731 -Wformat-nonliteral warning.
1732
1733 2019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
1734
1735 * breakpoint.c: Remove some includes: continuations.h, skip.h,
1736 mi/mi-main.h, readline/readline.h, readline/history.h. Add
1737 include: readline/tilde.h.
1738
1739 2019-10-12 Christian Biesinger <cbiesinger@google.com>
1740
1741 * remote.c (remote_target::get_trace_status): Remove declaration of
1742 trace_regblock_size.
1743
1744 2019-10-12 Christian Biesinger <cbiesinger@google.com>
1745
1746 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
1747 (show_user): Remove declaration of cmdlist.
1748 * cli/cli-cmds.h (max_user_call_depth): Declare.
1749 * cli/cli-script.c (execute_user_command): Remove declaration
1750 of max_user_call_depth.
1751
1752 2019-10-11 Jim Wilson <jimw@sifive.com>
1753
1754 * gdbsupport/print-utils.h (pulongest): Fix comment.
1755 (plongest): Likewise.
1756 (phex): Add missing comment, mention leading zeros.
1757 (phex_nz): Add mention of no leading zeros to comment.
1758
1759 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
1760 plongest instead of unsigned long long cast.
1761
1762 2019-10-10 Christian Biesinger <cbiesinger@google.com>
1763
1764 * main.c (captured_main_1): Include gdbtk.h and remove declarations
1765 for external_editor_command and gdbtk_test.
1766
1767 2019-10-10 Christian Biesinger <cbiesinger@google.com>
1768
1769 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
1770 * varobj.c (varobjdebug): Move comment to...
1771 * varobj.h (varobjdebug): ...here, and declare.
1772
1773 2019-10-09 Tom Tromey <tom@tromey.com>
1774
1775 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
1776 erase_data_content.
1777
1778 2019-10-09 Tom Tromey <tom@tromey.com>
1779
1780 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
1781 * tui/tui-stack.c (tui_locator_window::rerender): Update.
1782 * tui/tui-command.c (tui_cmd_window::resize)
1783 (tui_refresh_cmd_win): Update.
1784 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
1785 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
1786 * tui/tui-data.c (~tui_gen_win_info): Remove.
1787 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
1788 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
1789 (tui_redisplay_readline, tui_mld_flush)
1790 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
1791 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
1792 (tui_data_window::erase_data_content)
1793 (tui_data_item_window::rerender)
1794 (tui_data_item_window::refresh_window): Update.
1795 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
1796 (box_win, tui_gen_win_info::make_window)
1797 (tui_gen_win_info::make_visible): Update.
1798 (tui_delete_win): Remove.
1799 * tui/tui-winsource.c
1800 (tui_source_window_base::do_erase_source_content): Update.
1801 (tui_show_source_line, tui_source_window_base::update_tab_width)
1802 (tui_source_window_base::update_exec_info): Update.
1803 * tui/tui-data.h (struct curses_deleter): New.
1804 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
1805 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
1806
1807 2019-10-09 Tom Tromey <tom@tromey.com>
1808
1809 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
1810
1811 2019-10-09 Tom Tromey <tom@tromey.com>
1812
1813 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
1814 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
1815
1816 2019-10-09 Tom Tromey <tom@tromey.com>
1817
1818 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
1819 window height directly.
1820 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
1821 declare.
1822 * tui/tui-layout.c (tui_default_win_height): Remove.
1823 (tui_default_win_viewport_height): Remove.
1824
1825 2019-10-09 Tom Tromey <tom@tromey.com>
1826
1827 * tui/tui.h: Remove comments.
1828
1829 2019-10-09 Tom de Vries <tdevries@suse.de>
1830
1831 * python/lib/gdb/printer/bound_registers.py: Use
1832 '^builtin_type_bound128' as regexp argument for
1833 add_builtin_pretty_printer.
1834
1835 2019-10-09 Christian Biesinger <cbiesinger@google.com>
1836
1837 * guile/guile.c (guile_extension_script_ops): Remove forward
1838 declaration and mark as static.
1839 (guile_script_ops): Likewise.
1840 (extension_language_guile): Move further down in the file so
1841 it can reference the definitions for guile_{extension_,}script_ops.
1842
1843 2019-10-09 Andreas Arnez <arnez@linux.ibm.com>
1844
1845 * s390-tdep.c (390_process_record): Handle new arch13 instructions
1846 except SORTL, DFLTCC, and KDSA.
1847
1848 2019-10-08 Tom Tromey <tromey@adacore.com>
1849
1850 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
1851 (struct safe_symbol_file_add_args): Remove.
1852
1853 2019-10-08 Tom Tromey <tromey@adacore.com>
1854
1855 * windows-nat.c: Don't include buildsym-legacy.h.
1856
1857 2019-10-08 Tom Tromey <tromey@adacore.com>
1858
1859 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
1860
1861 2019-10-08 Christian Biesinger <cbiesinger@google.com>
1862
1863 * gdbtypes.c (overload_debug): Move comment to header.
1864 * gdbtypes.h (overload_debug): Declare.
1865 * valops.c: Remove declaration of overload_debug, instead
1866 include gdbtypes.h.
1867
1868 2019-10-08 Christian Biesinger <cbiesinger@google.com>
1869
1870 * language.c (show_language_command): Pass lang_frame_mismatch_warn
1871 through _().
1872 (lang_frame_mismatch_warn): Make const, mark with N_(), and
1873 move comment...
1874 * language.h (lang_frame_mismatch_warn): ... here. Also add
1875 declaration.
1876 * top.c (lang_frame_mismatch_warn): Remove declaration.
1877 (check_frame_language_change): Pass lang_frame_mismatch_warn
1878 through _().
1879
1880 2019-10-07 Christian Biesinger <cbiesinger@google.com>
1881
1882 * c-lang.h (vtbl_ptr_name): Declare.
1883 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
1884 it from the header.
1885 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
1886
1887 2019-10-07 Christian Biesinger <cbiesinger@google.com>
1888
1889 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
1890 gdb_static_assert.
1891
1892 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
1893
1894 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
1895 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
1896 * ctfread.c: New file.
1897 * ctfread.h: New file.
1898 * elfread.c: Include ctfread.h.
1899 (struct elfinfo text_p): New member ctfsect.
1900 (elf_locate_sections): Mark CTF section.
1901 (elf_symfile_read): Call elfctf_build_psymtabs.
1902 * Makefile.in (LIBCTF): Add.
1903 (CLIBS): Use it.
1904 (CDEPS): Likewise.
1905 (DIST): Add ctfread.c.
1906
1907 2019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
1908
1909 * ctfread.c (struct nextfield): Renamed to ...
1910 (struct ctf_nextfield): ... this.
1911 (struct field_info): Renamed to ...
1912 (strut ctf_field_info): ... this.
1913 (attach_fields_to_type): Update for renamed structures.
1914 (ctf_add_member_cb): Likewise.
1915 (ctf_add_enum_member_cb): Likewise.
1916 (process_struct_members): Likewise.
1917 (process_enum_type): Likewise.
1918
1919 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
1920
1921 * tracectf.h: Rename, was ctf.h.
1922 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
1923 * tracefile.c: Likewise.
1924 * tracepoint.c: Remove unused include ctf.h.
1925 * mi/mi-main.c: Likewise.
1926 * Makefile.in Replace ctf.c with tracectf.c.
1927
1928 2019-10-06 Joel Brobecker <brobecker@adacore.com>
1929
1930 * version.in: Change version number to "9.0.50.DATE-git".
1931
1932 2019-10-03 Tom Tromey <tom@tromey.com>
1933
1934 PR rust/24976:
1935 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
1936
1937 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
1938
1939 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
1940 cp_search_name_hash.
1941 * NEWS: Add entry about nested function support.
1942
1943 2019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
1944 Andrew Burgess <andrew.burgess@embecosm.com>
1945
1946 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
1947 for nested static variables when searchin VAR_DOMAIN.
1948 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
1949 global scope, update comment.
1950 (add_partial_subprogram): Call add_partial_subprogram recursively
1951 for nested subroutines when processinng Fortran.
1952 (load_partial_dies): Process the child entities of a subprogram
1953 when processing Fortran.
1954 (partial_die_parent_scope): Handle building scope
1955 for Fortran nested functions.
1956 (process_die): Record that nested functions have a scope.
1957 (new_symbol): Always record Fortran subprograms on the global
1958 symbol list.
1959 (determine_prefix): How to build the prefix for Fortran
1960 subprograms.
1961
1962 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
1963
1964 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
1965 have just sent the thread a SIGSTOP and are waiting for it to
1966 arrive.
1967
1968 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
1969
1970 * btrace.c (btrace_add_pc): Remove whitespace before the template
1971 parameter in 'std::vector <...>'.
1972 (parse_xml_btrace_block): Likewise.
1973 (btrace_maint_decode_pt): Likewise.
1974 (btrace_maint_update_packets): Likewise.
1975 (btrace_maint_print_packets): Likewise.
1976 * btrace.h (struct btrace_maint_info): Likewise.
1977 * dwarf2read.c (struct type_unit_group): Likewise.
1978 (build_type_psymtabs_reader): Likewise.
1979 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
1980 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
1981 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
1982
1983 2019-10-03 Tom de Vries <tdevries@suse.de>
1984
1985 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
1986 the first line of the help text for set/show style metadata.
1987
1988 2019-10-02 Tom Tromey <tromey@adacore.com>
1989
1990 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
1991 * gdbsupport/common-inferior.c: New file.
1992 * infcmd.c (startup_with_shell): Don't define.
1993 * nat/fork-inferior.h (startup_with_shell): Don't declare.
1994 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
1995 * inferior.h (startup_with_shell): Don't declare.
1996
1997 2019-10-02 Christian Biesinger <cbiesinger@google.com>
1998
1999 * gdbsupport/gdb_assert.h: Include errors.h.
2000 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
2001
2002 2019-10-02 Tom Tromey <tromey@adacore.com>
2003
2004 * NEWS: Add $_ada_exception entry.
2005 * ada-lang.c (struct ada_catchpoint): Add constructor.
2006 <m_kind>: New member.
2007 (allocate_location_exception, re_set_exception): Remove
2008 "ex" parameter.
2009 (should_stop_exception): Compute $_ada_exception.
2010 (check_status_exception, print_it_exception)
2011 (print_one_exception, print_mention_exception): Remove
2012 "ex" parameter.
2013 (allocate_location_catch_exception, re_set_catch_exception)
2014 (check_status_exception, print_it_catch_exception)
2015 (print_one_catch_exception, print_mention_catch_exception)
2016 (print_recreate_catch_exception)
2017 (allocate_location_catch_exception_unhandled)
2018 (re_set_catch_exception_unhandled)
2019 (check_status_exception, print_it_catch_exception_unhandled)
2020 (print_one_catch_exception_unhandled)
2021 (print_mention_catch_exception_unhandled)
2022 (print_recreate_catch_exception_unhandled)
2023 (allocate_location_catch_assert, re_set_catch_assert)
2024 (check_status_assert, print_it_catch_assert)
2025 (print_one_catch_assert, print_mention_catch_assert)
2026 (print_recreate_catch_assert)
2027 (allocate_location_catch_handlers, re_set_catch_handlers)
2028 (check_status_handlers, print_it_catch_handlers)
2029 (print_one_catch_handlers, print_mention_catch_handlers)
2030 (print_recreate_catch_handlers): Remove.
2031 (create_ada_exception_catchpoint): Update.
2032 (initialize_ada_catchpoint_ops): Update.
2033
2034 2019-10-02 Tom Tromey <tromey@adacore.com>
2035
2036 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
2037 (create_excep_cond_exprs): Simplify exception string computation.
2038 (ada_exception_catchpoint_cond_string): Likewise.
2039
2040 2019-10-02 Tom Tromey <tromey@adacore.com>
2041
2042 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
2043 * ada-lang.c (lesseq_defined_than): Handle
2044 LOC_STATIC.
2045 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
2046 parameter.
2047 (dwarf2_has_info): Likewise.
2048 (new_symbol): Set maybe_copied on symbol when
2049 appropriate.
2050 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
2051 parameter.
2052 <can_copy>: New member.
2053 * elfread.c (record_minimal_symbol): Set maybe_copied
2054 on symbol when appropriate.
2055 (elf_symfile_read): Update call to dwarf2_has_info.
2056 * minsyms.c (lookup_minimal_symbol_linkage): New
2057 function.
2058 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
2059 * symtab.c (get_symbol_address, get_msymbol_address):
2060 New functions.
2061 * symtab.h (get_symbol_address, get_msymbol_address):
2062 Declare.
2063 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
2064 maybe_copied.
2065 (struct symbol, struct minimal_symbol) <maybe_copied>:
2066 New member.
2067
2068 2019-10-02 Tom Tromey <tromey@adacore.com>
2069
2070 * source.c (struct current_source_location): New.
2071 (current_source_key): New global.
2072 (current_source_symtab, current_source_line)
2073 (current_source_pspace): Remove.
2074 (get_source_location): New function.
2075 (get_current_source_symtab_and_line)
2076 (set_default_source_symtab_and_line)
2077 (set_current_source_symtab_and_line)
2078 (clear_current_source_symtab_and_line, select_source_symtab)
2079 (info_source_command, print_source_lines_base)
2080 (info_line_command, search_command_helper, _initialize_source):
2081 Update.
2082
2083 2019-10-02 Tom Tromey <tromey@adacore.com>
2084
2085 * source.c (select_source_symtab): Don't call
2086 decode_line_with_current_source.
2087
2088 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2089
2090 * symtab.c (lookup_global_symbol): Search global block.
2091
2092 2019-10-02 Tom Tromey <tromey@adacore.com>
2093
2094 * coffread.c (process_coff_symbol): Update.
2095 * dwarf2read.c (var_decode_location, new_symbol): Update.
2096 * mdebugread.c (parse_symbol): Update.
2097 * objfiles.c (relocate_one_symbol): Update.
2098 * stabsread.c (define_symbol, fix_common_block)
2099 (scan_file_globals): Update.
2100 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
2101 (SET_SYMBOL_VALUE_ADDRESS): New macro.
2102 * xcoffread.c (process_xcoff_symbol): Update.
2103
2104 2019-10-02 Andreas Arnez <arnez@linux.ibm.com>
2105
2106 * MAINTAINERS: Update my email address.
2107
2108 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2109
2110 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
2111 std::vector.
2112 (build_type_psymtabs_reader): Update for std::vector.
2113 (build_type_psymtab_dependencies): Likewise.
2114 * dwarf2read.h: Remove use of DEF_VEC_P.
2115 (typedef sig_type_ptr): Delete.
2116
2117 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2118
2119 * btrace.c (btrace_maint_clear): Update to handle change from VEC
2120 to std::vector.
2121 (btrace_maint_decode_pt): Likewise, and move allocation of the
2122 vector outside of the loop.
2123 (btrace_maint_update_packets): Update to handle change from VEC to
2124 std::vector.
2125 (btrace_maint_print_packets): Likewise.
2126 (maint_info_btrace_cmd): Likewise.
2127 * btrace.h: Remove use of DEF_VEC_O.
2128 (typedef btrace_pt_packet_s): Delete.
2129 (struct btrace_maint_info) <packets>: Change fromm VEC to
2130 std::vector.
2131 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
2132
2133 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2134
2135 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
2136 make accesses into the vector constant references.
2137 (btrace_add_pc): Update for std::vector.
2138 (btrace_stitch_bts): Likewise.
2139 (parse_xml_btrace_block): Likewise.
2140 (btrace_maint_update_packets): Likewise.
2141 (btrace_maint_print_packets): Likewise.
2142 (maint_info_btrace_cmd): Likewise.
2143 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
2144 std::vector.
2145 (btrace_data::empty): Likewise.
2146 (btrace_data_append): Likewise.
2147 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
2148 (typedef btrace_block_s): Delete.
2149 (struct btrace_block): Add constructor.
2150 (struct btrace_data_bts) <blocks>: Change to std::vector.
2151 * nat/linux-btrace.c (perf_event_read_bts): Update for
2152 std::vector.
2153 (linux_read_bts): Likewise.
2154
2155 2019-10-01 Tom Tromey <tom@tromey.com>
2156
2157 * cli/cli-logging.c (show_logging_filename): Use styled_string.
2158
2159 2019-10-01 Tom Tromey <tom@tromey.com>
2160
2161 * stack.c (print_frame, info_frame_command_core): Use
2162 styled_string.
2163 * linux-thread-db.c (try_thread_db_load_1)
2164 (try_thread_db_load_from_pdir_1): Use styled_string.
2165 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
2166 (auto_load_section_scripts, info_auto_load_local_gdbinit)
2167 (maybe_print_unsupported_script_warning)
2168 (maybe_print_script_not_found_warning): Use styled_string.
2169 * ada-lang.c (user_select_syms): Use styled_string.
2170
2171 2019-10-01 Tom Tromey <tom@tromey.com>
2172
2173 * p-lang.c (pascal_printstr): Use metadata style.
2174 * value.c (show_convenience): Use metadata style.
2175 * valprint.c (valprint_check_validity, val_print_optimized_out)
2176 (val_print_not_saved, val_print_unavailable)
2177 (val_print_invalid_address, generic_val_print, val_print)
2178 (value_check_printable, val_print_array_elements): Use metadata
2179 style.
2180 * ui-out.h (class ui_out) <field_fmt>: New overload.
2181 <do_field_fmt>: Add style parameter.
2182 * ui-out.c (ui_out::field_fmt): New overload.
2183 * typeprint.c (type_print_unknown_return_type)
2184 (val_print_not_allocated, val_print_not_associated): Use metadata
2185 style.
2186 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
2187 parameter.
2188 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
2189 * tracepoint.c (tvariables_info_1): Use metadata style.
2190 * stack.c (print_frame_arg, print_frame_info, print_frame)
2191 (info_frame_command_core): Use metadata style.
2192 * skip.c (info_skip_command): Use metadata style.
2193 * rust-lang.c (rust_print_enum): Use metadata style.
2194 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
2195 metadata style.
2196 * python/py-framefilter.c (py_print_single_arg): Use metadata
2197 style.
2198 * printcmd.c (do_one_display, print_variable_and_value): Use
2199 metadata style.
2200 * p-valprint.c (pascal_val_print)
2201 (pascal_object_print_value_fields): Use metadata style.
2202 * p-typeprint.c (pascal_type_print_base): Use metadata style.
2203 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
2204 parameter.
2205 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
2206 * m2-valprint.c (m2_print_long_set): Use metadata style.
2207 * m2-typeprint.c (m2_print_type): Use metadata style.
2208 * infcmd.c (print_return_value_1): Use metadata style.
2209 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
2210 * f-valprint.c (info_common_command_for_block): Use metadata
2211 style.
2212 * f-typeprint.c (f_type_print_base): Use metadata style.
2213 * expprint.c (print_subexp_standard): Use metadata style.
2214 * cp-valprint.c (cp_print_value_fields): Use metadata style.
2215 * cli/cli-style.h (class cli_style_option): Add constructor.
2216 (metadata_style): Declare.
2217 * cli/cli-style.c (metadata_style): New global.
2218 (_initialize_cli_style): Register metadata style.
2219 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
2220 parameter.
2221 * cli-out.c (cli_ui_out::do_field_fmt): Update.
2222 * c-typeprint.c (c_type_print_base_struct_union)
2223 (c_type_print_base_1): Use metadata style.
2224 * breakpoint.c (watchpoint_value_print)
2225 (print_one_breakpoint_location): Use metadata style.
2226 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
2227 style.
2228 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
2229 style.
2230 * ada-valprint.c (val_print_packed_array_elements, printstr)
2231 (print_field_values, ada_val_print_ref, ada_val_print): Use
2232 metadata style.
2233 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
2234 style.
2235 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
2236 style.
2237 * ada-lang.c (user_select_syms): Use metadata style.
2238
2239 2019-10-01 Tom Tromey <tom@tromey.com>
2240
2241 * cli/cli-cmds.c (pwd_command): Style output.
2242
2243 2019-10-01 Pedro Alves <palves@redhat.com>
2244 Tom Tromey <tom@tromey.com>
2245
2246 * symtab.c (print_symbol_info): Use %ps.
2247 (print_msymbol_info): Use %ps.
2248 * symfile.c (symbol_file_add_with_addrs): Use %ps.
2249 * printcmd.c (print_variable_and_value): Use %ps.
2250 * macrocmd.c (show_pp_source_pos): Use %ps.
2251 * infrun.c (print_exited_reason): Use ui_out::message.
2252 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
2253 (describe_other_breakpoints): Use ui_out::message and new
2254 formats.
2255 (say_where): Use new formats.
2256 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
2257 and new formats.
2258
2259 2019-10-01 Pedro Alves <palves@redhat.com>
2260 Tom Tromey <tom@tromey.com>
2261
2262 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
2263 (test_gdb_formats): New function.
2264 (run_tests): Call it.
2265 (test_format_specifier): Update.
2266 * utils.h (fputs_filtered): Update comment.
2267 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
2268 (fputs_styled_unfiltered): Declare.
2269 * utils.c (fputs_styled_unfiltered): New function.
2270 (vfprintf_maybe_filtered): Add gdbfmt parameter.
2271 (vfprintf_filtered): Update.
2272 (vfprintf_unfiltered, vprintf_filtered): Update.
2273 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
2274 * ui-out.h (enum ui_out_flag) <unfiltered_output,
2275 disallow_ui_out_field>: New constants.
2276 (enum class field_kind): New.
2277 (struct base_field_s, struct signed_field_s): New.
2278 (signed_field): New function.
2279 (struct string_field_s): New.
2280 (string_field): New function.
2281 (struct styled_string_s): New.
2282 (styled_string): New function.
2283 (class ui_out) <message>: Add comment.
2284 <vmessage, call_do_message>: New methods.
2285 <do_message>: Add style parameter.
2286 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
2287 methods.
2288 (ui_out::message): Rewrite.
2289 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
2290 parameter.
2291 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
2292 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
2293 gdb_extensions parameter.
2294 (class format_piece): Add parameter to constructor.
2295 (n_int_args): New field.
2296 * gdbsupport/format.c (format_pieces::format_pieces): Add
2297 gdb_extensions parameter. Handle '*'.
2298 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
2299 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
2300 vfprintf_styled_no_gdbfmt.
2301 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
2302 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
2303 unfiltered output.
2304 * ui-style.h (struct ui_file_style) <ptr>: New method.
2305
2306 2019-10-01 Tom Tromey <tom@tromey.com>
2307
2308 * unittests/format_pieces-selftests.c: Update. Add final format.
2309 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
2310 empty literal pieces.
2311
2312 2019-10-01 Tom Tromey <tom@tromey.com>
2313
2314 * ui-out.h (enum class ui_out_style_kind): Remove.
2315 (class ui_out) <field_string, field_stsream, do_field_string>:
2316 Change type of "style".
2317 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
2318 (ui_out::field_string): Update.
2319 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
2320 of "style".
2321 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
2322 * tracepoint.c (print_one_static_tracepoint_marker): Update.
2323 * stack.c (print_frame_arg, print_frame_info, print_frame):
2324 Update.
2325 * source.c (print_source_lines_base): Update.
2326 * solib.c (info_sharedlibrary_command): Update.
2327 * skip.c (info_skip_command): Update.
2328 * record-btrace.c (btrace_call_history_src_line)
2329 (btrace_call_history): Update.
2330 * python/py-framefilter.c (py_print_frame): Update.
2331 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
2332 "style".
2333 * mi/mi-out.c (mi_ui_out::do_table_header)
2334 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
2335 (mi_ui_out::do_field_string): Update.
2336 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2337 Update.
2338 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
2339 "style".
2340 * cli-out.c (cli_ui_out::do_table_header)
2341 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
2342 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
2343 (cli_ui_out::do_field_fmt): Update.
2344 * breakpoint.c (print_breakpoint_location): Update.
2345 (update_static_tracepoint): Update.
2346
2347 2019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2348
2349 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
2350 conversion of gdb_datadir.
2351 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
2352 remove not needed c_str ().
2353
2354 2019-09-30 Ali Tamur <tamur@google.com>
2355
2356 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
2357 (dwarf2_string_attr): Likewise.
2358
2359 2019-09-30 Ali Tamur <tamur@google.com>
2360
2361 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
2362 (process_full_type_unit): Likewise.
2363 (dump_die_shallow): Likewise.
2364 (cu_debug_loc_section): Likewise.
2365
2366 2019-09-28 Christian Biesinger <cbiesinger@google.com>
2367
2368 * minsyms.c (compare_minimal_symbols): Rename to...
2369 (minimal_symbol_is_less_than): ...this, and adjust to STL
2370 conventions (return bool, take arguments as references)
2371 (minimal_symbol_reader::install): Call std::sort instead
2372 of qsort.
2373
2374 2019-09-29 Christian Biesinger <cbiesinger@google.com>
2375
2376 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
2377 hash and why.
2378 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
2379 msymbol_hash, msymbol_demangled_hash>: Improve comments.
2380
2381 2019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
2382
2383 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
2384 * psympriv.h (add_psymbol_to_list): Move comment here and update
2385 it.
2386
2387 2019-09-29 Tom de Vries <tdevries@suse.de>
2388
2389 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
2390 Use $tmpdir/$(basename "$output_file").dwz instead of
2391 "${output_file}.dwz".
2392
2393 2019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2394
2395 PR gdb/25045
2396 * hppa-linux-nat.c: Include gdbarch.h.
2397
2398 2019-09-26 Christian Biesinger <cbiesinger@google.com>
2399
2400 * blockframe.c (find_pc_partial_function): Change return type to bool.
2401 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
2402 * minsyms.c (in_gnu_ifunc_stub): Likewise.
2403 (stub_gnu_ifunc_resolve_name): Likewise.
2404 * symtab.c (compare_filenames_for_search): Likewise.
2405 (compare_glob_filenames_for_search): Likewise.
2406 (matching_obj_sections): Likewise.
2407 (symbol_matches_domain): Likewise.
2408 (find_line_symtab): Change out param EXACT_MATCH to bool *.
2409 (find_line_pc): Change return type to bool.
2410 (find_line_pc_range): Likewise.
2411 (producer_is_realview): Likewise.
2412 * symtab.h (symbol_matches_domain): Likewise.
2413 (find_pc_partial_function): Likewise.
2414 (find_pc_line_pc_range): Likewise.
2415 (in_gnu_ifunc_stub): Likewise.
2416 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
2417 (find_line_pc): Likewise.
2418 (find_line_pc_range): Likewise.
2419 (matching_obj_sections): Likewise.
2420 (find_line_symtab): Change out parameter to bool.
2421 (producer_is_realview): Change return type to bool.
2422 (compare_filenames_for_search): Likewise.
2423 (compare_glob_filenames_for_search): Likewise.
2424
2425 2019-09-26 Tom Tromey <tom@tromey.com>
2426
2427 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
2428 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
2429 * gdb_usleep.h: Remove.
2430 * gdb_usleep.c: Remove.
2431 * utils.c: Don't include gdb_usleep.h.
2432
2433 2019-09-26 Tom Tromey <tromey@adacore.com>
2434
2435 * python/py-type.c (type_to_type_object): Call check_typedef
2436 for stub types.
2437
2438 2019-09-26 Tom Tromey <tom@tromey.com>
2439
2440 * utils.h (initialize_utils): Don't declare.
2441 * top.c (gdb_init): Don't call initialize_utils.
2442 * utils.c (initialize_utils): Remove. Move contents...
2443 (_initialize_utils): ... here.
2444
2445 2019-09-25 Tom Tromey <tom@tromey.com>
2446
2447 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
2448 * utils.h (make_hex_string): Don't declare.
2449 * utils.c (make_hex_string): Remove.
2450
2451 2019-09-24 Tom de Vries <tdevries@suse.de>
2452
2453 PR gdb/23815
2454 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
2455 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
2456
2457 2019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
2458
2459 * NEWS: Mention new simulator port for PRU.
2460
2461 2019-09-23 Christian Biesinger <cbiesinger@google.com>
2462
2463 * ada-exp.y (write_object_remaining): Update.
2464 * ada-lang.c (ada_decode): Return a std::string instead of a char*
2465 and eliminate the static buffer.
2466 (ada_decode_symbol): Update.
2467 (ada_la_decode): Update.
2468 (ada_sniff_from_mangled_name): Update.
2469 (is_valid_name_for_wild_match): Update.
2470 (ada_lookup_name_info::matches): Update and simplify.
2471 (name_matches_regex): Update.
2472 (ada_add_global_exceptions): Update.
2473 * ada-lang.h (ada_decode): Update signature.
2474 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
2475 * dwarf-index-write.c (debug_names::insert): Update.
2476
2477 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
2478
2479 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
2480 formatting.
2481
2482 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
2483
2484 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
2485 Change "nonzero" to "true" in documentation.
2486
2487 2019-09-20 Christian Biesinger <cbiesinger@google.com>
2488
2489 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
2490 (_initialize_darwin_solib): Don't set
2491 darwin_so_ops.lookup_lib_global_symbol.
2492 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
2493 set_gdbarch_iterate_over_objfiles_in_search_order.
2494 (elf_lookup_lib_symbol): Rename to...
2495 (svr4_iterate_over_objfiles_in_search_order): this, and update
2496 to iterate semantics.
2497 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
2498 * solib.c (solib_global_lookup): Remove.
2499 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
2500 (solib_global_lookup): Remove.
2501 * symtab.c (lookup_global_or_static_symbol): Remove call to
2502 solib_global_lookup.
2503
2504 2019-09-20 Joel Brobecker <brobecker@adacore.com>
2505
2506 * NEWS: Move entries about default MI version now being
2507 version 3, and about the GDB/MI fix for multi-location
2508 breakpoints to the "since GDB 8.3" section.
2509
2510 2019-09-20 Joel Brobecker <brobecker@adacore.com>
2511
2512 GDB 8.3.1 released.
2513
2514 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
2515
2516 * NEWS: Mention that Cell/B.E. debugging support was removed.
2517 * MAINTAINERS: Remove spu target.
2518
2519 * config/djgpp/fnchange.lst: Remove entries for removed files.
2520
2521 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
2522 spu-multiarch.o, and spu-tdep.o.
2523 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
2524 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
2525 spu-multiarch.c, and spu-tdep.c.
2526 * spu-linux-nat.c: Remove file.
2527 * spu-multiarch.c: Remove file.
2528 * spu-tdep.c: Remove file.
2529 * spu-tdep.h: Remove file.
2530 * solib-spu.c: Remove file.
2531 * solib-spu.h: Remove file.
2532
2533 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
2534 * configure.nat (spu-linux): Remove.
2535 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
2536 solib-multiarch.o from gdb_target_obs.
2537 (spu*-*-*): Remove.
2538
2539 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
2540 feature flag.
2541 (ppc_linux_no_features): Update.
2542 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
2543 Cell/B.E. support.
2544 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
2545 (tdesc_powerpc_cell64l): Likewise.
2546 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
2547 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
2548 Cell/B.E. support.
2549 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
2550 Do not include "features/rs6000/powerpc-cell32l.c" or
2551 "features/rs6000/powerpc-cell64l.c".
2552 (ppc_linux_spu_section): Remove.
2553 (ppc_linux_core_read_description): Remove Cell/B.E. support.
2554 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
2555 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
2556 (ppc_linux_spe_context_lookup): Remove.
2557 (ppc_linux_spe_context_inferior_created): Remove.
2558 (ppc_linux_spe_context_solib_loaded): Remove.
2559 (ppc_linux_spe_context_solib_unloaded): Remove.
2560 (ppc_linux_spe_context): Remove.
2561 (struct ppu2spu_cache): Remove.
2562 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
2563 (struct ppu2spu_data): Remove.
2564 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
2565 ppu2spu_unwind): Remove.
2566 (ppc_linux_init_abi): Remove Cell/B.E. support.
2567 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
2568
2569 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
2570 (rs6000/powerpc-cell64l-expedite): Likewise
2571 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
2572 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
2573 rs6000/powerpc-cell64l.xml.
2574 * features/rs6000/powerpc-cell32l.xml: Remove.
2575 * features/rs6000/powerpc-cell64l.xml: Likewise.
2576 * features/rs6000/powerpc-cell32l.c: Remove generated file.
2577 * features/rs6000/powerpc-cell64l.c: Likewise.
2578 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
2579 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
2580 * regformats/reg-spu.dat: Remove.
2581
2582 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
2583 * corelow.c (struct spuid_list): Remove.
2584 (add_to_spuid_list): Remove.
2585 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2586 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
2587 (remote_protocol_features): Remove associated entries.
2588 (_initialize_remote): No longer initialize them.
2589 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2590 * linux-nat.c (SPUFS_MAGIC): Remove.
2591 (linux_proc_xfer_spu): Remove.
2592 (spu_enumerate_spu_ids): Remove.
2593 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2594 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
2595 (linux_make_corefile_notes): No longer call it.
2596
2597 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
2598 (cooked_write_test): Likewise.
2599
2600 2019-09-20 Tom Tromey <tom@tromey.com>
2601
2602 * NEWS: Mention case-sensitivity of TUI commands.
2603 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
2604 (tui_set_win_height_command, parse_scrolling_args): Likewise.
2605 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
2606
2607 2019-09-20 Tom Tromey <tom@tromey.com>
2608
2609 * tui/tui-source.c (tui_source_window::set_contents): Use
2610 make_unique_xstrdup.
2611 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
2612 make_unique_xstrdup.
2613
2614 2019-09-20 Tom Tromey <tom@tromey.com>
2615
2616 * tui/tui-data.c: Remove separator comments.
2617 * tui/tui-layout.c: Remove separator comments.
2618 * tui/tui-win.c: Remove separator comments.
2619 * tui/tui-wingeneral.c: Remove separator comments.
2620
2621 2019-09-20 Tom Tromey <tom@tromey.com>
2622
2623 * tui/tui.h (strcat_to_buf): Don't declare.
2624 * tui/tui.c (strcat_to_buf): Remove.
2625
2626 2019-09-20 Tom Tromey <tom@tromey.com>
2627
2628 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
2629 from "fullname".
2630 * tui/tui-source.c (tui_source_window::set_contents)
2631 (tui_source_window::location_matches_p)
2632 (tui_source_window::maybe_update): Update.
2633
2634 2019-09-20 Tom Tromey <tom@tromey.com>
2635
2636 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
2637 Update.
2638 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
2639 prefix.
2640 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
2641 (tui_data_window::line_from_reg_element_no)
2642 (tui_data_window::first_reg_element_no_inline)
2643 (tui_data_window::show_registers)
2644 (tui_data_window::show_register_group)
2645 (tui_data_window::display_registers_from)
2646 (tui_data_window::display_registers_from_line)
2647 (tui_data_window::first_data_item_displayed)
2648 (tui_data_window::delete_data_content_windows)
2649 (tui_data_window::erase_data_content)
2650 (tui_data_window::do_scroll_vertical)
2651 (tui_data_window::refresh_window)
2652 (tui_data_window::check_register_values): Update.
2653
2654 2019-09-20 Tom Tromey <tom@tromey.com>
2655
2656 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
2657 (struct tui_locator_window) <full_name, proc_name>: Now
2658 std::string.
2659 * tui/tui-stack.c (tui_locator_window::make_status_line)
2660 (tui_locator_window::set_locator_fullname)
2661 (tui_locator_window::set_locator_info): Update.
2662 * tui/tui-source.c (tui_source_window::set_contents)
2663 (tui_source_window::showing_source_p): Update.
2664
2665 2019-09-20 Tom Tromey <tom@tromey.com>
2666
2667 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
2668 Don't call tui_locator_win_info_ptr.
2669
2670 2019-09-20 Tom Tromey <tom@tromey.com>
2671
2672 * tui/tui-win.c (tui_resize_all): Don't call refresh.
2673
2674 2019-09-20 Tom Tromey <tom@tromey.com>
2675
2676 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
2677 height for locator.
2678 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
2679 * tui/tui-layout.c (show_source_disasm_command, show_data)
2680 (show_source_or_disasm_and_command): Use 1 as height for locator.
2681
2682 2019-09-20 Tom Tromey <tom@tromey.com>
2683
2684 * tui/tui.c (tui_enable): Update.
2685 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
2686 Update.
2687 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
2688 Update.
2689 * tui/tui-data.c (win_resized): Now bool.
2690 (tui_win_resized): Return bool.
2691 (tui_set_win_resized_to): Accept a bool.
2692
2693 2019-09-20 Tom Tromey <tom@tromey.com>
2694
2695 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
2696 Change type of "refresh_values_only".
2697 * tui/tui-regs.c (tui_data_window::show_register_group): Change
2698 type of "refresh_values_only".
2699
2700 2019-09-20 Tom Tromey <tom@tromey.com>
2701
2702 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
2703 std::string.
2704 (tui_disassemble): Add "pos" parameter.
2705 (tui_disasm_window::set_contents): Simplify.
2706
2707 2019-09-20 Tom Tromey <tom@tromey.com>
2708
2709 * tui/tui-winsource.h (struct tui_source_window_base)
2710 <show_source_content>: Now private.
2711 * tui/tui-winsource.c
2712 (tui_source_window_base::show_source_content): Don't handle empty
2713 content case.
2714
2715 2019-09-20 Tom Tromey <tom@tromey.com>
2716
2717 * tui/tui-layout.c (show_source_disasm_command)
2718 (show_source_or_disasm_and_command): Don't call
2719 show_source_content.
2720
2721 2019-09-20 Tom Tromey <tom@tromey.com>
2722
2723 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
2724 Declare.
2725 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
2726 from tui_make_status_line.
2727 (tui_locator_window::rerender): Update.
2728
2729 2019-09-20 Tom Tromey <tom@tromey.com>
2730
2731 * tui/tui-stack.c (tui_make_status_line): Return std::string.
2732 (tui_locator_window::rerender): Update.
2733
2734 2019-09-20 Tom Tromey <tom@tromey.com>
2735
2736 * tui/tui-winsource.h (struct tui_source_window_base)
2737 <~tui_source_window_base>: Don't declare.
2738 <fullname>: Remove.
2739 * tui/tui-winsource.c (~tui_source_window_base): Remove.
2740 * tui/tui-source.h (struct tui_source_window) <fullname>: New
2741 member.
2742 * tui/tui-source.c (tui_source_window::set_contents): Update.
2743 (tui_source_window::location_matches_p)
2744 (tui_source_window::maybe_update): Update.
2745
2746 2019-09-20 Tom Tromey <tom@tromey.com>
2747
2748 * tui/tui-winsource.h (~tui_source_element): Remove.
2749 (tui_source_element): Update.
2750 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
2751 * tui/tui-winsource.c (tui_show_source_line): Update.
2752 * tui/tui-source.c (tui_source_window::set_contents): Update.
2753 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
2754
2755 2019-09-20 Tom Tromey <tom@tromey.com>
2756
2757 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
2758 declare.
2759 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
2760 tui_clear_source_windows_detail.
2761 * tui/tui-winsource.h (struct tui_source_window_base)
2762 <clear_detail>: Don't declare.
2763 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
2764 Remove.
2765 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
2766
2767 2019-09-20 Tom Tromey <tromey@adacore.com>
2768
2769 PR ada/24919:
2770 * block.c (contained_in): Fix final return value.
2771
2772 2019-09-20 Alan Modra <amodra@gmail.com>
2773
2774 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
2775 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
2776 (read_indirect_string_from_dwz): Use bfd accessor.
2777 * dwarf2read.h (struct dwz_file <filename>): Likewise.
2778 * machoread.c (macho_symfile_read_all_oso): Likewise.
2779 * solib.c (solib_bfd_open): Likewise.
2780
2781 2019-09-19 Christian Biesinger <cbiesinger@google.com>
2782
2783 * eval.c: Move declaration of overload_resolution to...
2784 * value.h: ...here.
2785
2786 2019-09-19 Christian Biesinger <cbiesinger@google.com>
2787
2788 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
2789 * arm-linux-tdep.c: Likewise.
2790 * arm-nbsd-nat.c: Likewise.
2791 * arm-tdep.h: Declare arm_apcs_32.
2792 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
2793
2794 2019-09-19 Christian Biesinger <cbiesinger@google.com>
2795
2796 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
2797 * dwarf2read.h: Declare dwarf_always_disassemble.
2798
2799 2019-09-19 Tom de Vries <tdevries@suse.de>
2800
2801 PR gdb/25009
2802 * source-cache.c (source_cache::ensure): Catch exception thrown during
2803 construction of the highlighter.
2804
2805 2019-09-18 Alan Modra <amodra@gmail.com>
2806
2807 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
2808 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
2809 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
2810 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
2811 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
2812 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
2813 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
2814 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
2815 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
2816 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
2817 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
2818 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
2819 * solib-spu.c, * solib-svr4.c, * solib-target.c,
2820 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
2821 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
2822 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
2823 * mi/mi-interp.c: Update throughout for bfd section macro and
2824 function changes.
2825 * gcore (gcore_create_callback): Use bfd_set_section_lma.
2826 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
2827
2828 2019-09-18 Tom Tromey <tom@tromey.com>
2829
2830 * NEWS: Add entry.
2831 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
2832 call rl_initialize.
2833 (tui_enable): Do not call rl_initialize.
2834
2835 2019-09-18 Christian Groessler <chris@groessler.org>
2836
2837 * alpha-linux-nat.c: Include gdbarch.h.
2838
2839 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
2840
2841 * ui-file.c: Include cli/cli-style.h.
2842 (term_cli_styling): Remove cli_styling declaration.
2843
2844 2019-09-18 Alan Modra <amodra@gmail.com>
2845
2846 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
2847 to bfd_asymbol_section.
2848
2849 2019-09-18 Alan Modra <amodra@gmail.com>
2850
2851 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
2852 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
2853 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
2854
2855 2019-09-18 Alan Modra <amodra@gmail.com>
2856
2857 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
2858 * spu-linux-nat.c (spu_bfd_open): Likewise.
2859
2860 2019-09-18 Christian Biesinger <cbiesinger@google.com>
2861
2862 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
2863 to bool to match definition in dwarf2read.c.
2864
2865 2019-09-17 Christian Biesinger <cbiesinger@google.com>
2866
2867 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
2868 (print_signatures): Likewise.
2869 (trust_pad_over_xvs): Likewise.
2870 * arch/aarch64-insn.c (aarch64_debug): Likewise.
2871 * arch/aarch64-insn.h (aarch64_debug): Likewise.
2872 * arm-linux-nat.c (arm_apcs_32): Likewise.
2873 * arm-linux-tdep.c (arm_apcs_32): Likewise.
2874 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
2875 * arm-tdep.c (arm_debug): Likewise.
2876 (arm_apcs_32): Likewise.
2877 * auto-load.c (debug_auto_load): Likewise.
2878 (auto_load_gdb_scripts): Likewise.
2879 (global_auto_load): Likewise.
2880 (auto_load_local_gdbinit): Likewise.
2881 (auto_load_local_gdbinit_loaded): Likewise.
2882 * auto-load.h (global_auto_load): Likewise.
2883 (auto_load_local_gdbinit): Likewise.
2884 (auto_load_local_gdbinit_loaded): Likewise.
2885 * breakpoint.c (disconnected_dprintf): Likewise.
2886 (breakpoint_proceeded): Likewise.
2887 (automatic_hardware_breakpoints): Likewise.
2888 (always_inserted_mode): Likewise.
2889 (target_exact_watchpoints): Likewise.
2890 (_initialize_breakpoint): Update.
2891 * breakpoint.h (target_exact_watchpoints): Change to bool.
2892 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
2893 * cli/cli-cmds.c (trace_commands): Likewise.
2894 * cli/cli-cmds.h (trace_commands): Likewise.
2895 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
2896 to bool*.
2897 * cli/cli-logging.c (logging_overwrite): Change to bool.
2898 (logging_redirect): Likewise.
2899 (debug_redirect): Likewise.
2900 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
2901 (struct boolean_option_def) <get_var_address_cb_>: Change return type
2902 to bool.
2903 <boolean_option_def>: Update.
2904 (struct flag_option_def): Change default type of Context to bool
2905 from int.
2906 <flag_option_def>: Change return type of var_address_cb_ to bool*.
2907 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
2908 (get_setshow_command_value_string): Likewise.
2909 * cli/cli-style.c (cli_styling): Change to bool.
2910 (source_styling): Likewise.
2911 * cli/cli-style.h (source_styling): Likewise.
2912 (cli_styling): Likewise.
2913 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
2914 to bool.
2915 * command.h (var_types): Update comment.
2916 (add_setshow_boolean_cmd): Change int* var argument to bool*.
2917 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
2918 bool.
2919 (debug_compile_cplus_scopes): Likewise.
2920 * compile/compile-internal.h (compile_debug): Likewise.
2921 * compile/compile.c (compile_debug): Likewise.
2922 (struct compile_options) <raw>: Likewise.
2923 * cp-support.c (catch_demangler_crashes): Likewise.
2924 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
2925 (usr_cmd_cris_dwarf2_cfi): Likewise.
2926 * csky-tdep.c (csky_debug): Likewise.
2927 * darwin-nat.c (enable_mach_exceptions): Likewise.
2928 * dcache.c (dcache_enabled_p): Likewise.
2929 * defs.h (info_verbose): Likewise.
2930 * demangle.c (demangle): Likewise.
2931 (asm_demangle): Likewise.
2932 * dwarf-index-cache.c (debug_index_cache): Likewise.
2933 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
2934 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
2935 * dwarf2read.c (check_physname): Likewise.
2936 (use_deprecated_index_sections): Likewise.
2937 (dwarf_always_disassemble): Likewise.
2938 * eval.c (overload_resolution): Likewise.
2939 * event-top.c (set_editing_cmd_var): Likewise.
2940 (exec_done_display_p): Likewise.
2941 * event-top.h (set_editing_cmd_var): Likewise.
2942 (exec_done_display_p): Likewise.
2943 * exec.c (write_files): Likewise.
2944 * fbsd-nat.c (debug_fbsd_lwp): Likewise
2945 (debug_fbsd_nat): Likewise.
2946 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
2947 Likewise.
2948 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
2949 <backtrace_past_entry> Likewise.
2950 * gdb-demangle.h (demangle): Likewise.
2951 (asm_demangle): Likewise.
2952 * gdb_bfd.c (bfd_sharing): Likewise.
2953 * gdbcore.h (write_files): Likewise.
2954 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
2955 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
2956 * gdbthread.h (print_thread_events): Likewise.
2957 * gdbtypes.c (opaque_type_resolution): Likewise.
2958 (strict_type_checking): Likewise.
2959 * gnu-nat.c (gnu_debug_flag): Likewise.
2960 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
2961 * guile/scm-param.c (pascm_variable): Add boolval.
2962 (add_setshow_generic): Update.
2963 (pascm_param_value): Update.
2964 (pascm_set_param_value_x): Update.
2965 * hppa-tdep.c (hppa_debug): Change to bool..
2966 * infcall.c (may_call_functions_p): Likewise.
2967 (coerce_float_to_double_p): Likewise.
2968 (unwind_on_signal_p): Likewise.
2969 (unwind_on_terminating_exception_p): Likewise.
2970 * infcmd.c (startup_with_shell): Likewise.
2971 * inferior.c (print_inferior_events): Likewise.
2972 * inferior.h (startup_with_shell): Likewise.
2973 (print_inferior_events): Likewise.
2974 * infrun.c (step_stop_if_no_debug): Likewise.
2975 (detach_fork): Likewise.
2976 (debug_displaced): Likewise.
2977 (disable_randomization): Likewise.
2978 (non_stop): Likewise.
2979 (non_stop_1): Likewise.
2980 (observer_mode): Likewise.
2981 (observer_mode_1): Likewise.
2982 (set_observer_mode): Update.
2983 (sched_multi): Change to bool.
2984 * infrun.h (debug_displaced): Likewise.
2985 (sched_multi): Likewise.
2986 (step_stop_if_no_debug): Likewise.
2987 (non_stop): Likewise.
2988 (disable_randomization): Likewise.
2989 * linux-tdep.c (use_coredump_filter): Likewise.
2990 (dump_excluded_mappings): Likewise.
2991 * linux-thread-db.c (auto_load_thread_db): Likewise.
2992 (check_thread_db_on_load): Likewise.
2993 * main.c (captured_main_1): Update.
2994 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
2995 xx2_opt, boolean_opt>: Change to bool.
2996 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
2997 * maint.c (maintenance_profile_p): Likewise.
2998 (per_command_time): Likewise.
2999 (per_command_space): Likewise.
3000 (per_command_symtab): Likewise.
3001 * memattr.c (inaccessible_by_default): Likewise.
3002 * mi/mi-main.c (mi_async): Likewise.
3003 (mi_async_1): Likewise.
3004 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
3005 * nat/fork-inferior.h (startup_with_shell): Likewise.
3006 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
3007 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
3008 * nios2-tdep.c (nios2_debug): Likewise.
3009 * or1k-tdep.c (or1k_debug): Likewise.
3010 * parse.c (parser_debug): Likewise.
3011 * parser-defs.h (parser_debug): Likewise.
3012 * printcmd.c (print_symbol_filename): Likewise.
3013 * proc-api.c (procfs_trace): Likewise.
3014 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
3015 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
3016 (set_parameter_value): Update.
3017 (add_setshow_generic): Update.
3018 * python/py-value.c (copy_py_bool_obj): Change argument from int*
3019 to bool*.
3020 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
3021 int*.
3022 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
3023 * record-btrace.c (record_btrace_target::store_registers): Update.
3024 * record-full.c (record_full_memory_query): Change to bool.
3025 (record_full_stop_at_limit): Likewise.
3026 * record-full.h (record_full_memory_query): Likewise.
3027 * remote-notif.c (notif_debug): Likewise.
3028 * remote-notif.h (notif_debug): Likewise.
3029 * remote.c (use_range_stepping): Likewise.
3030 (interrupt_on_connect): Likewise.
3031 (remote_break): Likewise.
3032 * ser-tcp.c (tcp_auto_retry): Likewise.
3033 * ser-unix.c (serial_hwflow): Likewise.
3034 * skip.c (debug_skip): Likewise.
3035 * solib-aix.c (solib_aix_debug): Likewise.
3036 * spu-tdep.c (spu_stop_on_load_p): Likewise.
3037 (spu_auto_flush_cache_p): Likewise.
3038 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
3039 Likewise.
3040 (struct info_print_options) <quiet>: Likewise.
3041 * symfile-debug.c (debug_symfile): Likewise.
3042 * symfile.c (auto_solib_add): Likewise.
3043 (separate_debug_file_debug): Likewise.
3044 * symfile.h (auto_solib_add): Likewise.
3045 (separate_debug_file_debug): Likewise.
3046 * symtab.c (basenames_may_differ): Likewise.
3047 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
3048 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
3049 (struct info_types_options) <quiet>: Likewise.
3050 * symtab.h (demangle): Likewise.
3051 (basenames_may_differ): Likewise.
3052 * target-dcache.c (stack_cache_enabled_1): Likewise.
3053 (code_cache_enabled_1): Likewise.
3054 * target.c (trust_readonly): Likewise.
3055 (may_write_registers): Likewise.
3056 (may_write_memory): Likewise.
3057 (may_insert_breakpoints): Likewise.
3058 (may_insert_tracepoints): Likewise.
3059 (may_insert_fast_tracepoints): Likewise.
3060 (may_stop): Likewise.
3061 (auto_connect_native_target): Likewise.
3062 (target_stop_and_wait): Update.
3063 (target_async_permitted): Change to bool.
3064 (target_async_permitted_1): Likewise.
3065 (may_write_registers_1): Likewise.
3066 (may_write_memory_1): Likewise.
3067 (may_insert_breakpoints_1): Likewise.
3068 (may_insert_tracepoints_1): Likewise.
3069 (may_insert_fast_tracepoints_1): Likewise.
3070 (may_stop_1): Likewise.
3071 * target.h (target_async_permitted): Likewise.
3072 (may_write_registers): Likewise.
3073 (may_write_memory): Likewise.
3074 (may_insert_breakpoints): Likewise.
3075 (may_insert_tracepoints): Likewise.
3076 (may_insert_fast_tracepoints): Likewise.
3077 (may_stop): Likewise.
3078 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
3079 (make_thread_apply_all_options_def_group): Change argument from int*
3080 to bool*.
3081 (thread_apply_all_command): Update.
3082 (print_thread_events): Change to bool.
3083 * top.c (confirm): Likewise.
3084 (command_editing_p): Likewise.
3085 (history_expansion_p): Likewise.
3086 (write_history_p): Likewise.
3087 (info_verbose): Likewise.
3088 * top.h (confirm): Likewise.
3089 (history_expansion_p): Likewise.
3090 * tracepoint.c (disconnected_tracing): Likewise.
3091 (circular_trace_buffer): Likewise.
3092 * typeprint.c (print_methods): Likewise.
3093 (print_typedefs): Likewise.
3094 * utils.c (debug_timestamp): Likewise.
3095 (sevenbit_strings): Likewise.
3096 (pagination_enabled): Likewise.
3097 * utils.h (sevenbit_strings): Likewise.
3098 (pagination_enabled): Likewise.
3099 * valops.c (overload_resolution): Likewise.
3100 * valprint.h (struct value_print_options) <prettyformat_arrays,
3101 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
3102 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
3103 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
3104 Likewise.
3105 * windows-nat.c (new_console): Likewise.
3106 (cygwin_exceptions): Likewise.
3107 (new_group): Likewise.
3108 (debug_exec): Likewise.
3109 (debug_events): Likewise.
3110 (debug_memory): Likewise.
3111 (debug_exceptions): Likewise.
3112 (useshell): Likewise.
3113 * windows-tdep.c (maint_display_all_tib): Likewise.
3114 * xml-support.c (debug_xml): Likewise.
3115
3116 2019-09-17 Mike Gulick <mgulick@mathworks.com>
3117
3118 * source.c (prepare_path_for_appending): New function.
3119 (openp): Make use of new function.
3120 (find_and_open_source): Search for the compilation directory and
3121 source file as a relative path beneath the directory search path.
3122
3123 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
3124
3125 * source-cache.c (source_cache::get_line_charpos): Catch
3126 exceptions and return false, this matches the behaviour documented
3127 in the header file.
3128
3129 2019-09-17 Joel Brobecker <brobecker@adacore.com>
3130
3131 * ada-tasks.c (info_task): Remove quoting of the task's name.
3132
3133 2019-09-16 Christian Biesinger <cbiesinger@google.com>
3134
3135 * symfile.c (auto_solib_add): Replace comment with a reference
3136 to the header file.
3137
3138 2019-09-14 Christian Biesinger <cbiesinger@google.com>
3139
3140 * NEWS: Mention that gdb can now be compiled with Python 3
3141 on Windows.
3142
3143 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3144
3145 * maint.c (maint_print_section_data::maint_print_section_data):
3146 Force use of 'float log10 (float)' by casting the argument to
3147 float.
3148
3149 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3150
3151 * maint.c: Add 'cmath' include.
3152 (struct maint_print_section_data): New structure.
3153 (print_section_index): New function.
3154 (print_bfd_section_info): Add header comment, small whitespace
3155 cleanup, and update to call new print_section_index function.
3156 (print_objfile_section_info): Likewise.
3157 (maint_obj_section_from_bfd_section): New function.
3158 (print_bfd_section_info_maybe_relocated): New function.
3159 (maintenance_info_sections): Add header comment, always use
3160 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
3161
3162 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3163
3164 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
3165 inner scope, add check that the objfile has psymtabs before
3166 checking psymtabs_addrmap.
3167 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
3168
3169 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3170
3171 * NEWS: Announce that Ada task names are now shown at more places,
3172 and between quotes (except in info task output).
3173 * gdb/ada-tasks.c (task_to_str): New function.
3174 (display_current_task_id): Call task_to_str.
3175 (task_command_1): Likewise.
3176 (print_ada_task_info): In non-mi mode, Properly align headers and data
3177 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
3178
3179 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3180
3181 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
3182 prstatus.pr_lwp.pr_info instead of making it up.
3183
3184 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3185
3186 * auto-load.c (auto_load_expand_dir_vars): Update.
3187 * defs.h (gdb_datadir): Change to std::string.
3188 (python_libdir): Likewise.
3189 (relocate_gdb_directory): Change return type to std::string.
3190 * guile/guile.c (gdbscm_data_directory): Update.
3191 (initialize_scheme_side): Update.
3192 * jit.c (jit_reader_dir): Change to std::string.
3193 (jit_reader_load_command): Update.
3194 * main.c (gdb_datadir): Change to std::string.
3195 (python_libdir): Likewise.
3196 (set_gdb_data_directory): Update.
3197 (relocate_path): Change to return std::string.
3198 (relocate_gdb_directory): Change to return std::string.
3199 (relocate_gdbinit_path_maybe_in_datadir): Update.
3200 (captured_main_1): Update.
3201 * python/python.c (do_start_initialization): Update.
3202 * top.c (show_gdb_datadir): Update.
3203 * xml-syscall.c (xml_init_syscalls_info): Update.
3204 (init_syscalls_info): Update.
3205
3206 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3207
3208 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
3209 out of get_init_files.
3210 (get_init_files): Update.
3211
3212 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3213
3214 * main.c (get_init_files): Change to use std::string.
3215 (captured_main_1): Update.
3216 (print_gdb_help): Update.
3217
3218 2019-09-11 Ali Tamur <tamur@google.com>
3219
3220 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
3221 implementation.
3222
3223 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3224
3225 * dbxread.c (read_dbx_symtab): Update.
3226 * dwarf2read.c (load_partial_dies): Update.
3227 * mdebugread.c (parse_partial_symbols): Update.
3228 (handle_psymbol_enumerators): Update.
3229 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
3230 * psymtab.c (add_psymbol_to_bcache): Likewise.
3231 (add_psymbol_to_list): Likewise.
3232 * symtab.c (symbol_set_names): Likewise.
3233 * symtab.h (symbol_set_names): Likewise.
3234 * xcoffread.c (scan_xcoff_symtab): Update.
3235
3236 2019-09-11 Tom Tromey <tom@tromey.com>
3237
3238 * symfile-mem.c (symbol_file_add_from_memory): Use
3239 bfd_set_filename.
3240 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
3241 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
3242
3243 2019-09-10 Tom Tromey <tromey@adacore.com>
3244
3245 * dwarf-index-write.c (write_psymbols): Extend error message.
3246 (debug_names::insert): Add Ada code.
3247 (debug_names::write_psymbols): Remove Ada check.
3248 (debug_names) <m_string_obstack>: New member.
3249 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
3250 (gdb_index_symbol_name_matcher::matches): Remove.
3251 (mapped_index_base::find_name_components_bounds): Add "lang"
3252 parameter.
3253 (mapped_index_base::build_name_components): Also split names
3254 according to Ada syntax.
3255 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
3256 type of "match_callback".
3257 (check_match, check_find_bounds_finds)
3258 (dw2_expand_symtabs_matching): Update.
3259 (dw2_debug_names_iterator): Add new constructor.
3260 (dw2_debug_names_map_matching_symbols): New function.
3261 (dw2_debug_names_expand_symtabs_matching): Update.
3262 (dwarf2_debug_names_functions): Use
3263 dw2_debug_names_map_matching_symbols.
3264
3265 2019-09-10 Tom Tromey <tromey@adacore.com>
3266
3267 * dwarf2read.c (dw2_get_file_names_reader): Add the
3268 CU's file name to the results.
3269
3270 2019-09-10 Tom Tromey <tromey@adacore.com>
3271
3272 * ada-lang.c (add_nonlocal_symbols): Combine calls to
3273 map_matching_symbols. Update.
3274 * dwarf2read.c (dw2_map_matching_symbols): Update.
3275 * psymtab.c (match_partial_symbol): Change type; update.
3276 (psym_map_matching_symbols): Likewise.
3277 * symfile-debug.c (debug_qf_map_matching_symbols): Change
3278 type; update.
3279 * symfile.h (struct quick_symbol_functions)
3280 <map_matching_symbols>: Change "name" to be a lookup_name_info.
3281 Remove "match".
3282
3283 2019-09-10 Tom Tromey <tromey@adacore.com>
3284
3285 * psymtab.c (map_block): Remove.
3286 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
3287 * symtab.c (iterate_over_symbols_terminated): New function.
3288 * symtab.c (iterate_over_symbols_terminated): Declare.
3289
3290 2019-09-10 Tom Tromey <tromey@adacore.com>
3291
3292 * ada-lang.c (ada_iterate_over_symbols): Return bool.
3293 * language.h (struct language_defn) <la_iterate_over_symbols>:
3294 Return bool.
3295 * symtab.c (iterate_over_symbols): Return bool.
3296 * symtab.h (iterate_over_symbols): Return bool.
3297
3298 2019-09-10 Tom Tromey <tromey@adacore.com>
3299
3300 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
3301 (add_nonlocal_symbols): Update.
3302 * dwarf2read.c (dw2_map_matching_symbols): Change type.
3303 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
3304 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
3305 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
3306 Change type of "callback". Remove "data".
3307
3308
3309 2019-09-09 Ali Tamur <tamur@google.com>
3310
3311 * dwarf2read.c (comp_unit_head): Update comment.
3312 (dwarf2_dwo_name): New function declaration.
3313 (dwarf_unit_type_name): New function declaration.
3314 (read_comp_unit_head): Add support for new compilation units,
3315 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
3316 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
3317 (currently named as "signature") in their header. Also clarify error
3318 messages.
3319 (lookup_dwo_id): New function. Returns the dwo id of the given
3320 compile unit.
3321 (lookup_dwo_unit): Use the new lookup_dwo_id function.
3322 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
3323 functions.
3324 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
3325 (dwarf2_dwo_name): Get the dwo name if present.
3326 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
3327 purposes.
3328
3329 2019-09-09 Tom Tromey <tom@tromey.com>
3330
3331 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
3332
3333 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3334
3335 * python/python.c (do_start_initialization): Make progname_copy static,
3336 to avoid a leak report.
3337
3338 2019-09-08 Tom Tromey <tom@tromey.com>
3339
3340 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
3341
3342 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
3343
3344 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
3345 Change type to gdb::optional<block_enum>.
3346 (dw2_symtab_iter_init): Change block_index parameter type
3347 to gdb::optional<block_enum>.
3348 (dw2_lookup_symbol): Change block_index parameter
3349 type to block_enum.c
3350 (dw2_debug_names_lookup_symbol): Likewise.
3351 * psymtab.c (psym_lookup_symbol): Likewise.
3352 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
3353 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
3354 Likewise.
3355
3356 2019-09-06 Christian Biesinger <cbiesinger@google.com>
3357
3358 * defs.h (relocate_gdb_directory): Change int to bool in
3359 signature and rename flag to relocatable.
3360 * main.c (relocate_path): Likewise.
3361 (relocate_gdb_directory): Likewise.
3362
3363 2019-09-06 Alan Modra <amodra@gmail.com>
3364
3365 * coffread.c (coff_symfile_read): Constify filename variable.
3366 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
3367 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
3368 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
3369 * solib.c (reload_shared_libraries_1): Likewise.
3370 * symfile.c (reread_symbols): Likewise.
3371 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
3372 * solib-darwin.c (darwin_bfd_open): Likewise.
3373 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
3374
3375 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
3376
3377 * psymtab.c (print_partial_symbols): Handle missing domain_enum
3378 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
3379
3380 2019-09-03 Tom Tromey <tromey@adacore.com>
3381
3382 * ada-valprint.c (ada_val_print_num): Don't recurse for range
3383 types.
3384 (has_negatives): Unbias a range type bound.
3385 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
3386 * gdbtypes.c (operator==): Handle new field.
3387 (create_range_type): Add "bias" parameter.
3388 (create_static_range_type, resolve_dynamic_range): Update.
3389 * gdbtypes.h (struct range_bounds) <bias>: New member.
3390 (create_range_type): Add bias parameter.
3391 * printcmd.c (print_scalar_formatted): Unbias range types.
3392 * value.c (unpack_long): Unbias range types.
3393 (pack_long): Bias range types.
3394
3395 2019-09-02 Alan Hayward <alan.hayward@arm.com>
3396
3397 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
3398 probe arguments.
3399
3400 2019-09-02 Alan Hayward <alan.hayward@arm.com>
3401
3402 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
3403 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
3404 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
3405 (compile_probe_arg): Likewise.
3406 * probe.h (get_argument_count): Likewise.
3407 * solib-svr4.c (solib_event_probe_action): Likewise.
3408 * stap-probe.c (stap_probe::get_argument_count): Likewise.
3409
3410 2019-09-02 Alan Hayward <alan.hayward@arm.com>
3411
3412 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
3413 code to here...
3414 (svr4_create_solib_event_breakpoints): ...from here.
3415
3416 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
3417
3418 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
3419 suffix from warning message.
3420
3421 2019-08-30 Tom Tromey <tom@tromey.com>
3422
3423 * tui/tui-winsource.h (struct tui_source_window_base)
3424 <refresh_all>: Don't declare.
3425 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
3426 Remove.
3427 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
3428 tui_show_locator_content.
3429 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
3430 declare.
3431 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
3432 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
3433 declare.
3434
3435 2019-08-30 Tom Tromey <tom@tromey.com>
3436
3437 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
3438
3439 2019-08-30 Tom Tromey <tom@tromey.com>
3440
3441 * tui/tui-stack.c (_initialize_tui_stack): Move later.
3442 Remove unnecessary forward declarations.
3443
3444 2019-08-30 Tom Tromey <tom@tromey.com>
3445
3446 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
3447 rerender.
3448 (tui_update_locator_fullname, tui_show_frame_info): Don't call
3449 tui_show_locator_content.
3450
3451 2019-08-30 Tom Tromey <tom@tromey.com>
3452
3453 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
3454 (tui_locator_window::rerender): Rewrite using body of previous
3455 tui_show_locator_content.
3456
3457 2019-08-30 Tom Tromey <tom@tromey.com>
3458
3459 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
3460 set_locator_fullname>: New methods.
3461 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
3462 Rename from tui_set_locator_fullname.
3463 (tui_locator_window::set_locator_info): Rename from
3464 tui_set_locator_info. Return bool.
3465 (tui_update_locator_fullname, tui_show_frame_info): Update.
3466
3467 2019-08-30 Tom Tromey <tom@tromey.com>
3468
3469 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
3470
3471 2019-08-30 Tom Tromey <tom@tromey.com>
3472
3473 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
3474 call touchwin.
3475
3476 2019-08-30 Tom Tromey <tom@tromey.com>
3477
3478 * tui/tui-wingeneral.c (box_win): Assume win_info and
3479 win_info->handle cannot be NULL.
3480
3481 2019-08-30 Tom Tromey <tom@tromey.com>
3482
3483 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
3484 refresh_window>: Declare.
3485 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
3486 resize.
3487 (tui_data_item_window::rerender): Rename from
3488 tui_display_register.
3489 (tui_data_item_window::refresh_window): New method.
3490 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
3491 no-op.
3492
3493 2019-08-30 Tom Tromey <tom@tromey.com>
3494
3495 * tui/tui-regs.h (struct tui_data_window) <regs_content,
3496 regs_column_count, current_group>: Move later. Now private.
3497 <get_current_group>: New method.
3498 * tui/tui-regs.c (tui_reg_command): Update.
3499 * tui/tui-layout.c (tui_set_layout): Update.
3500
3501 2019-08-30 Tom Tromey <tom@tromey.com>
3502
3503 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
3504 (tui_data_window::rerender): Don't call
3505 check_and_display_highlight_if_needed.
3506 (tui_data_window::refresh_all): Remove call to
3507 erase_data_content.
3508
3509 2019-08-30 Tom Tromey <tom@tromey.com>
3510
3511 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
3512 (tui_data_window::display_registers_from)
3513 (tui_data_window::display_reg_element_at_line)
3514 (tui_data_window::display_registers_from_line): Remove checks of
3515 "empty".
3516
3517 2019-08-30 Tom Tromey <tom@tromey.com>
3518
3519 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
3520 Don't declare.
3521 * tui/tui-regs.c (tui_data_window::show_registers): Call
3522 rerender.
3523 (tui_data_window::rerender): Rename from display_all_data.
3524 (tui_data_window::rerender): Remove old implementation.
3525
3526 2019-08-30 Tom Tromey <tom@tromey.com>
3527
3528 * tui/tui-regs.c (tui_data_window::display_all_data): Change
3529 text.
3530 * tui/tui-data.h (NO_DATA_STRING): Remove define.
3531
3532 2019-08-29 Bernhard Wodok <barto@gmx.net>
3533 Sergio Durigan Junior <sergiodj@redhat.com>
3534
3535 PR win32/24284
3536 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
3537
3538 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
3539
3540 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
3541 when searching for types.
3542
3543 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
3544
3545 * f-lang.c (f_language_defn): Use f_print_typedef.
3546 * f-lang.h (f_print_typedef): Declare.
3547 * f-typeprint.c (f_print_typedef): Define.
3548
3549 2019-08-27 Christian Biesinger <cbiesinger@google.com>
3550
3551 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
3552
3553 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
3554
3555 * cli/cli-utils.c (info_print_options_defs): Delete.
3556 (make_info_print_options_def_group): Delete.
3557 (extract_info_print_options): Delete.
3558 (info_print_command_completer): Delete.
3559 (info_print_args_help): Add extra parameter, and optionally
3560 include text about -n flag.
3561 * cli/cli-utils.h (struct info_print_options): Delete.
3562 (extract_info_print_options): Delete declaration.
3563 (info_print_command_completer): Delete declaration.
3564 (info_print_args_help): Add extra parameter, extend header
3565 comment.
3566 * python/python.c (gdbpy_rbreak): Pass additional parameter to
3567 search_symbols.
3568 * stack.c (struct info_print_options): New type.
3569 (info_print_options_defs): New file scoped variable.
3570 (make_info_print_options_def_group): New static function.
3571 (info_print_command_completer): New static function.
3572 (info_locals_command): Update to use new local functions.
3573 (info_args_command): Likewise.
3574 (_initialize_stack): Add extra parameter to calls to
3575 info_print_args_help.
3576 * symtab.c (search_symbols): Add extra parameter, use this to
3577 possibly excluse non-debug symbols.
3578 (symtab_symbol_info): Add extra parameter, which is passed on to
3579 search_symbols.
3580 (struct info_print_options): New type.
3581 (info_print_options_defs): New file scoped variable.
3582 (make_info_print_options_def_group): New static function.
3583 (info_print_command_completer): New static function.
3584 (info_variables_command): Update to use local functions, and pass
3585 extra parameter through to symtab_symbol_info.
3586 (info_functions_command): Likewise.
3587 (info_types_command): Pass additional argument through to
3588 symtab_symbol_info.
3589 (rbreak_command): Pass extra argument to search_symbols.
3590 (_initialize_symtab): Add extra arguments for calls to
3591 info_print_args_help, and update help text for 'info variables',
3592 'whereis', and 'info functions' commands.
3593 * symtab.h (search_symbols): Add extra argument to declaration.
3594 * NEWS: Mention new flags.
3595
3596 2019-08-26 Christian Biesinger <cbiesinger@google.com>
3597
3598 * symtab.c (lookup_static_symbol): Call the new function (and move
3599 it down to be next to lookup_global_symbol).
3600 (struct global_sym_lookup_data): Add block_enum member and rename to...
3601 (struct global_or_static_sym_lookup_data): ...this.
3602 (lookup_symbol_global_iterator_cb): Pass block_index instead of
3603 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
3604 (lookup_symbol_global_or_static_iterator_cb): ...this.
3605 (lookup_global_or_static_symbol): New function.
3606 (lookup_global_symbol): Call new function.
3607
3608 2019-08-26 Tom de Vries <tdevries@suse.de>
3609
3610 PR c++/24852
3611 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
3612 when pc_probe.prob == NULL.
3613
3614 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
3615
3616 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
3617 variable symbol_linkage to symbol_linkage_.
3618
3619 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
3620
3621 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
3622 represent whether the symbol is static, dynamic, or we don't
3623 know.
3624
3625 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
3626
3627 * gdb/rx-tdep.c (rx_register_names): New.
3628 (rx_register_name): Delete.
3629 (rx_psw_type): Delete.
3630 (rx_fpsw_type): Delete.
3631 (rx_register_type): Delete.
3632 (rx_gdbarch_init): Convert target-descriptions.
3633 (_initialize_rx_tdep): Add initialize_tdesc_rx.
3634 * gdb/features/Makefile: Add rx.xml.
3635 * gdb/features/rx.xml: New.
3636 * gdb/features/rx.c: Generated.
3637 * gdb/NEWS: Mention target description support.
3638
3639 2019-08-22 Christian Biesinger <cbiesinger@google.com>
3640
3641 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
3642 *slot_ptr.
3643
3644 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
3645
3646 * configure.ac: Don't check for 'dlfcn.h' (moved to
3647 gdbsupport/common.m4).
3648 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
3649 'gdbsupport/'.
3650 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
3651 * compile/compile-c-support.c: Include
3652 'gdbsupport/gdb-dlfcn.h'.
3653 * gdbsupport/common.m4: Check for 'dlfcn.h'.
3654 * gdb-dlfcn.c: Move to...
3655 * gdbsupport/gdb-dlfcn.c: ... here.
3656 * gdb-dlfcn.h: Move to...
3657 * gdbsupport/gdb-dlfcn.h: ... here.
3658
3659 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
3660
3661 * nios2-tdep.c (struct reg_value): Improve comments. Make
3662 the offset field signed.
3663
3664 2019-08-22 Christian Biesinger <cbiesinger@google.com>
3665
3666 * python/lib/gdb/__init__.py (_execute_file): New function.
3667 * python/python.c (python_run_simple_file): Call gdb._execute_file
3668 on Windows.
3669
3670 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
3671
3672 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
3673 all uses as this was never set to anything but a zero value.
3674
3675 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
3676
3677 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
3678
3679 2019-08-21 Christian Biesinger <cbiesinger@google.com>
3680
3681 * tui/tui-data.h (tui_gen_win_info): Add an =default
3682 move constructor, required by some GCC versions.
3683
3684 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
3685
3686 * go32-nat.c (go32_sysinfo): Add hygon_p.
3687
3688 2019-08-20 Tom Tromey <tom@tromey.com>
3689
3690 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
3691 line_from_reg_element_no, first_reg_element_no_inline,
3692 display_all_data, delete_data_content_windows,
3693 erase_data_content>: Now private.
3694
3695 2019-08-20 Tom Tromey <tom@tromey.com>
3696
3697 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
3698 (tui_unhighlight_win, tui_highlight_win)
3699 (tui_win_info::make_window): Update.
3700 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
3701
3702 2019-08-20 Tom Tromey <tom@tromey.com>
3703
3704 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
3705 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
3706 (MAX_PID_WIDTH): Move to tui-stack.c.
3707 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
3708 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
3709 (MAX_PID_WIDTH): Move from tui-data.h.
3710
3711 2019-08-20 Tom Tromey <tom@tromey.com>
3712
3713 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
3714 * tui/tui-wingeneral.c (box_win): Change type of win_info.
3715 (box_win): Update.
3716 (tui_gen_win_info::make_window): Rename from tui_make_window.
3717 (tui_win_info::make_window): New method.
3718 (tui_gen_win_info::make_visible): Update.
3719 * tui/tui-source.c (tui_source_window::set_contents): Update.
3720 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3721 (tui_data_window::display_registers_from): Update.
3722 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
3723 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
3724 Declare.
3725 <can_box>: Remove.
3726 <title>: Remove.
3727 (struct tui_win_info) <make_window>: Declare.
3728 <can_box>: Now virtual.
3729 <title>: New member.
3730 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
3731 * tui/tui-command.c (tui_cmd_window::resize): Update.
3732
3733 2019-08-20 Tom Tromey <tom@tromey.com>
3734
3735 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
3736 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3737 (tui_data_window::check_register_values): Update.
3738
3739 2019-08-20 Tom Tromey <tom@tromey.com>
3740
3741 * tui/tui-regs.h (struct tui_data_window): Use
3742 DISABLE_COPY_AND_ASSIGN.
3743 <regs_content>: Change type, removing unique_ptr.
3744 <tui_data_window>: Add move constructor.
3745 * tui/tui-regs.c (tui_data_window::show_registers)
3746 (tui_data_window::show_register_group)
3747 (tui_data_window::display_registers_from)
3748 (tui_data_window::display_registers_from)
3749 (tui_data_window::first_data_item_displayed)
3750 (tui_data_window::delete_data_content_windows)
3751 (tui_data_window::rerender, tui_data_window::refresh_window)
3752 (tui_data_window::check_register_values): Update.
3753
3754 2019-08-20 Tom Tromey <tom@tromey.com>
3755
3756 * tui/tui-regs.h (struct tui_data_window) <show_registers,
3757 show_register_group>: Declare.
3758 (tui_show_register_group): Don't declare.
3759 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
3760 tui_show_registers.
3761 (tui_data_window::show_register_group): Rename from
3762 tui_show_register_group.
3763 (tui_data_window::check_register_values, tui_reg_command):
3764 Update.
3765 * tui/tui-layout.c (tui_set_layout): Update.
3766
3767 2019-08-20 Tom Tromey <tom@tromey.com>
3768
3769 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
3770 Declare.
3771 (tui_check_register_values): Don't declare.
3772 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
3773 from tui_check_register_values.
3774 * tui/tui-hooks.c (tui_register_changed): Update.
3775
3776 2019-08-20 Tom Tromey <tom@tromey.com>
3777
3778 * tui/tui-regs.c (tui_reg_layout): Move later.
3779 (tui_show_registers): Don't enable TUI mode or change layout.
3780
3781 2019-08-20 Tom Tromey <tom@tromey.com>
3782
3783 * tui/tui-regs.h (struct tui_data_item_window)
3784 <~tui_data_item_window>: Remove.
3785 <content>: Now a unique_xmalloc_ptr.
3786 * tui/tui-regs.c (tui_register_format): Return a
3787 unique_xmalloc_ptr.
3788 (tui_get_register): Update.
3789 (~tui_data_item_window): Remove.
3790 (tui_data_window::display_registers_from, tui_display_register):
3791 Update.
3792 * tui/tui-io.h (tui_expand_tabs): Update.
3793 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
3794 Remove "col" parameter.
3795
3796 2019-08-20 Tom Tromey <tom@tromey.com>
3797
3798 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
3799 field.
3800 * tui/tui-regs.c (~tui_data_item_window): Update.
3801
3802 2019-08-20 Tom Tromey <tom@tromey.com>
3803
3804 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
3805 earlier.
3806
3807 2019-08-20 Tom Tromey <tom@tromey.com>
3808
3809 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
3810
3811 2019-08-20 Tom Tromey <tom@tromey.com>
3812
3813 * tui/tui-source.h (struct tui_source_window): Update.
3814 * tui/tui-regs.c (tui_show_registers): Update.
3815 * tui/tui-disasm.h (struct tui_disasm_window): Update.
3816 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
3817 (NO_REGS_STRING): Remove defines.
3818
3819 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
3820
3821 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
3822 unnecessary thread walk if remote doesn't support the packet.
3823
3824 2019-08-19 Tom Tromey <tromey@adacore.com>
3825
3826 * python/py-value.c (value_has_field): Fix indentation.
3827
3828 2019-08-19 Tom Tromey <tromey@adacore.com>
3829
3830 * printcmd.c (do_one_display, info_display_command): Update.
3831 * block.h (contained_in): Return bool. Add allow_nested
3832 parameter.
3833 * block.c (contained_in): Return bool. Add allow_nested
3834 parameter.
3835
3836 2019-08-19 Tom Tromey <tom@tromey.com>
3837
3838 * configure: Rebuild.
3839 * configure.ac: Disallow the combination of -static-libstdc++ and
3840 source highlight.
3841 * source-cache.c (get_language_name): Handle rust.
3842 (source_cache::get_source_lines): Ignore highlighting exceptions.
3843
3844 2019-08-16 Tom Tromey <tom@tromey.com>
3845
3846 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
3847 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
3848 (struct tui_source_window_base) <make_visible, refresh_window,
3849 resize>: Remove methods.
3850 <execution_info>: Remove field.
3851 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
3852 (tui_show_source_line, tui_source_window_base)
3853 (~tui_source_window_base): Update.
3854 (tui_source_window_base::resize)
3855 (tui_source_window_base::make_visible)
3856 (tui_source_window_base::refresh_window): Remove.
3857 (tui_source_window_base::update_exec_info): Update.
3858 * tui/tui-source.c (tui_source_window::set_contents): Update.
3859 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
3860
3861 2019-08-16 Tom Tromey <tom@tromey.com>
3862
3863 * tui/tui-hooks.c (tui_remove_hooks): Don't set
3864 deprecated_query_hook.
3865
3866 2019-08-16 Tom Tromey <tom@tromey.com>
3867
3868 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
3869 (tui_update_source_windows_with_line): Update.
3870 * tui/tui-source.h (struct tui_source_window)
3871 <show_symtab_source>: Declare.
3872 (tui_show_symtab_source): Don't declare.
3873 * tui/tui-source.c (tui_show_symtab_source): Rename from
3874 tui_show_symtab_source.
3875
3876 2019-08-16 Tom Tromey <tom@tromey.com>
3877
3878 * tui/tui-winsource.h (struct tui_source_window_base)
3879 <set_contents>: Declare.
3880 * tui/tui-winsource.c
3881 (tui_source_window_base::update_source_window_as_is): Update.
3882 * tui/tui-source.h (struct tui_source_window) <set_contents>:
3883 Declare.
3884 (tui_set_source_content): Don't declare.
3885 * tui/tui-source.c (tui_source_window::set_contents): Rename from
3886 tui_set_source_content.
3887 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
3888 Declare.
3889 (tui_set_disassem_content): Don't declare.
3890 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
3891 tui_set_disassem_content.
3892
3893 2019-08-16 Tom Tromey <tom@tromey.com>
3894
3895 * tui/tui-winsource.h (struct tui_source_window_base)
3896 <update_breakpoint_info>: Declare.
3897 (tui_update_breakpoint_info): Don't declare.
3898 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
3899 (tui_update_all_breakpoint_info): Update.
3900 (tui_source_window_base::update_breakpoint_info): Rename from
3901 tui_update_breakpoint_info.
3902 (tui_source_window_base::update_exec_info): Update.
3903
3904 2019-08-16 Tom Tromey <tom@tromey.com>
3905
3906 * tui/tui-winsource.h (struct tui_source_window_base)
3907 <update_source_window>: Declare.
3908 (tui_update_source_window): Don't declare.
3909 * tui/tui-winsource.c
3910 (tui_source_window_base::update_source_window): Rename from
3911 tui_update_source_window.
3912 (tui_source_window_base::rerender): Update.
3913 * tui/tui-source.c (tui_source_window::maybe_update): Update.
3914 * tui/tui-disasm.c (tui_show_disassem)
3915 (tui_show_disassem_and_update_source)
3916 (tui_disasm_window::maybe_update): Update.
3917
3918 2019-08-16 Tom Tromey <tom@tromey.com>
3919
3920 * tui/tui-winsource.h (struct tui_source_window_base)
3921 <update_source_window_as_is>: Declare.
3922 (tui_update_source_window_as_is): Don't declare.
3923 * tui/tui-winsource.c (tui_update_source_window): Update
3924 (tui_source_window_base::update_source_window_as_is): Rename from
3925 tui_update_source_window_as_is.
3926 (tui_source_window_base::refill): Update.
3927 * tui/tui-source.c (tui_show_symtab_source): Update.
3928 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
3929 Update.
3930
3931 2019-08-16 Tom Tromey <tom@tromey.com>
3932
3933 * tui/tui-winsource.h (tui_update_source_window)
3934 (tui_update_source_window_as_is): Remove "noerror" parameter.
3935 * tui/tui-winsource.c (tui_update_source_window)
3936 (tui_update_source_window_as_is): Remove "noerror" parameter.
3937 (tui_update_source_windows_with_addr)
3938 (tui_update_source_windows_with_line)
3939 (tui_source_window_base::rerender)
3940 (tui_source_window_base::refill): Update.
3941 * tui/tui-source.h (tui_set_source_content)
3942 (tui_show_symtab_source): Remove "noerror" parameter.
3943 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
3944 parameter.
3945 (tui_show_symtab_source): Likewise.
3946 (tui_source_window::maybe_update): Update.
3947 * tui/tui-disasm.c (tui_show_disassem)
3948 (tui_show_disassem_and_update_source)
3949 (tui_disasm_window::do_scroll_vertical)
3950 (tui_disasm_window::maybe_update): Update.
3951
3952 2019-08-16 Tom Tromey <tom@tromey.com>
3953
3954 * tui/tui.c (tui_is_window_visible): Update.
3955 * tui/tui-wingeneral.c (tui_make_window)
3956 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
3957 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
3958 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
3959 (tui_set_win_height_command, parse_scrolling_args): Update.
3960 * tui/tui-source.c (tui_source_window::style_changed): Update.
3961 * tui/tui-regs.c (tui_show_registers)
3962 (tui_data_window::first_data_item_displayed)
3963 (tui_data_window::delete_data_content_windows)
3964 (tui_check_register_values, tui_reg_command): Update.
3965 * tui/tui-disasm.c (tui_show_disassem): Update.
3966 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
3967 method.
3968 <is_visible>: Remove field.
3969 * tui/tui-data.c (tui_next_win, tui_prev_win)
3970 (tui_delete_invisible_windows): Update.
3971
3972 2019-08-16 Tom Tromey <tom@tromey.com>
3973
3974 * tui/tui-winsource.h (struct tui_source_window_base)
3975 <m_has_locator>: Remove.
3976 * tui/tui-layout.c (show_source_disasm_command, show_data)
3977 (show_source_or_disasm_and_command): Update.
3978
3979 2019-08-16 Alan Hayward <alan.hayward@arm.com>
3980
3981 * NEWS (Other MI changes): New subsection.
3982 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
3983 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
3984 * arch-utils.c (default_get_pc_address_flags): New function.
3985 * arch-utils.h (default_get_pc_address_flags): New declaration.
3986 * gdbarch.sh: Add get_pc_address_flags.
3987 * gdbarch.c: Regenerate.
3988 * gdbarch.h: Likewise.
3989 * stack.c (print_pc): New function.
3990 (print_frame_info) (print_frame): Call print_pc.
3991
3992 2019-08-16 Tom de Vries <tdevries@suse.de>
3993
3994 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
3995 print_objfile_section_info.
3996
3997 2019-08-15 Tom Tromey <tom@tromey.com>
3998
3999 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
4000 calling update_cmdwin_start_line.
4001 * tui/tui-winsource.h (struct tui_source_window_base)
4002 <do_make_visible_with_new_height, set_new_height>: Don't declare.
4003 <rerender>: Declare.
4004 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
4005 Call rerender.
4006 (tui_source_window_base::set_new_height): Remove.
4007 (tui_source_window_base::rerender): Rename from
4008 do_make_visible_with_new_height.
4009 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
4010 resize method.
4011 (tui_win_info::make_invisible_and_set_new_height)
4012 (tui_win_info::make_visible_with_new_height): Remove.
4013 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
4014 Declare.
4015 * tui/tui-stack.c (tui_locator_window::rerender): New method.
4016 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
4017 do_make_visible_with_new_height>: Don't declare.
4018 <rerender>: Declare.
4019 * tui/tui-regs.c (tui_data_window::rerender): Rename from
4020 set_new_height.
4021 (tui_data_window::do_make_visible_with_new_height): Remove.
4022 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
4023 call tui_show_locator_content.
4024 (tui_gen_win_info::resize): Call rerender.
4025 (show_source_or_disasm_and_command): Don't call
4026 tui_show_locator_content.
4027 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
4028 method.
4029 (struct tui_win_info) <rerender>: Declare.
4030 <set_new_height, make_invisible_and_set_new_height,
4031 make_visible_with_new_height>: Don't declare.
4032 * tui/tui-data.c (tui_win_list::rerender): New method.
4033 * tui/tui-command.h (struct tui_cmd_window)
4034 <do_make_visible_with_new_height>: Don't declare.
4035 * tui/tui-command.c
4036 (tui_cmd_window::do_make_visible_with_new_height): Remove.
4037
4038 2019-08-15 Tom Tromey <tromey@adacore.com>
4039
4040 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
4041 * ada-lang.c (ada_enum_name): Likewise.
4042
4043 2019-08-15 Christian Biesinger <cbiesinger@google.com>
4044
4045 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
4046 leading underscore.
4047 (GdbOutputErrorFile): Likewise.
4048 (global scope): Adjust constructor calls to GdbOutput{,Error}File
4049 accordingly.
4050 (execute_unwinders): Rename to have a leading underscore.
4051 (auto_load_packages): Likewise.
4052 (global scope): Adjust call to auto_load_packages accordingly.
4053 (GdbSetPythonDirectory): Likewise.
4054 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
4055 instead of execute_unwinders.
4056
4057 2019-08-15 Tom Tromey <tom@tromey.com>
4058
4059 * tui/tui-layout.c (show_layout, show_source_disasm_command)
4060 (show_data): Don't change window visibility.
4061 (tui_gen_win_info::resize): Remove special case for command
4062 window. Use wresize, when available.
4063 (show_source_or_disasm_and_command): Don't change window
4064 visibility.
4065 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
4066 <make_visible>: New method.
4067 * tui/tui-command.c (tui_cmd_window::resize): New method.
4068
4069 2019-08-15 Tom Tromey <tom@tromey.com>
4070
4071 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
4072 (struct tui_source_windows): New.
4073 * tui/tui-winsource.c (tui_display_main): Update.
4074 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4075 (new_height_ok, parse_scrolling_args): Update.
4076 * tui/tui-layout.c (show_layout, show_data): Update.
4077 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
4078 (tui_add_to_source_windows): Don't declare.
4079 * tui/tui-data.c (source_windows, tui_source_windows)
4080 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
4081
4082 2019-08-15 Tom Tromey <tom@tromey.com>
4083
4084 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
4085 Rename from reset.
4086 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
4087 * tui/tui-layout.c (show_source_disasm_command, show_data):
4088 Update.
4089 (tui_gen_win_info::resize): Rename.
4090 (show_source_or_disasm_and_command): Update.
4091 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
4092 reset.
4093
4094 2019-08-15 Tom Tromey <tom@tromey.com>
4095
4096 * tui/tui-stack.c (tui_initialize_static_data): Remove.
4097 * tui/tui-interp.c (tui_interp::init): Don't call
4098 tui_initialize_static_data.
4099 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
4100
4101 2019-08-15 Tom Tromey <tom@tromey.com>
4102
4103 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
4104 examine tui_win_list.
4105
4106 2019-08-15 Tom Tromey <tom@tromey.com>
4107
4108 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
4109 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
4110 tui_clear_source_content.
4111 (tui_clear_source_content): Remove.
4112 (tui_source_window_base::do_erase_source_content): Hoist call to
4113 content.clear().
4114 * tui/tui-stack.c (tui_show_frame_info): Don't call
4115 tui_clear_source_content.
4116
4117 2019-08-15 Tom Tromey <tom@tromey.com>
4118
4119 * tui/tui-winsource.h (struct tui_source_window_base)
4120 <do_erase_source_content>: New method.
4121 <erase_source_content>: New method.
4122 (tui_erase_source_content): Don't declare.
4123 * tui/tui-winsource.c (tui_clear_source_content): Update.
4124 (tui_source_window_base::do_erase_source_content): Rename from
4125 tui_erase_source_content.
4126 (tui_source_window_base::show_source_content): Update.
4127 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4128 * tui/tui-source.h (struct tui_source_window)
4129 <erase_source_content>: New method.
4130 * tui/tui-disasm.h (struct tui_disasm_window)
4131 <erase_source_content>: New method.
4132
4133 2019-08-15 Tom Tromey <tom@tromey.com>
4134
4135 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
4136 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
4137 constructor.
4138 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
4139 * tui/tui-source.c (tui_set_source_content): Update.
4140 * tui/tui-disasm.c (tui_set_disassem_content): Update.
4141
4142 2019-08-15 Tom Tromey <tom@tromey.com>
4143
4144 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
4145 * tui/tui-winsource.c (tui_line_is_displayed): Move to
4146 tui-source.c.
4147 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
4148 Declare.
4149 * tui/tui-source.c (tui_source_window::line_is_displayed): New
4150 method.
4151 (tui_source_window::maybe_update): Update.
4152
4153 2019-08-15 Tom Tromey <tom@tromey.com>
4154
4155 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
4156 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
4157 tui-disasm.c.
4158 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
4159 Declare.
4160 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
4161 method.
4162 (tui_disasm_window::maybe_update): Update.
4163
4164 2019-08-15 Tom Tromey <tom@tromey.com>
4165
4166 * tui/tui-winsource.h (struct tui_source_window_base)
4167 <maybe_update>: Declare.
4168 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
4169 method.
4170 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
4171 Declare.
4172 * tui/tui-source.c (tui_source_window::maybe_update): New method.
4173 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
4174 Declare.
4175 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
4176
4177 2019-08-15 Tom Tromey <tom@tromey.com>
4178
4179 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
4180
4181 2019-08-15 Tom Tromey <tom@tromey.com>
4182
4183 * tui/tui-wingeneral.c: Include tui-stack.h.
4184 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
4185 (struct tui_locator_window): Move from tui-data.h.
4186 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
4187 (tui_initialize_static_data): Move from tui-data.c.
4188 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
4189 (struct tui_locator_window): Move to tui-stack.c.
4190 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
4191 (tui_initialize_static_data): Move to tui-stack.c.
4192
4193 2019-08-15 Tom Tromey <tom@tromey.com>
4194
4195 * tui/tui-layout.c (show_source_disasm_command)
4196 (show_source_or_disasm_and_command): Use make_visible method, not
4197 tui_make_window.
4198 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
4199 Remove.
4200
4201 2019-08-15 Tom Tromey <tom@tromey.com>
4202
4203 * tui/tui-wingeneral.h (tui_make_window): Update.
4204 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
4205 parameter.
4206 (tui_gen_win_info::make_visible): Update.
4207 * tui/tui-regs.c (tui_data_window::display_registers_from):
4208 Update.
4209 * tui/tui-layout.c (show_source_disasm_command)
4210 (show_source_or_disasm_and_command): Update.
4211 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
4212 (enum tui_box): Remove.
4213 (struct tui_win_info) <can_box>: New method.
4214 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
4215 method.
4216
4217 2019-08-15 Tom de Vries <tdevries@suse.de>
4218
4219 * linux-nat-trad.c: Include gdbarch.h.
4220
4221 2019-08-14 Alan Hayward <alan.hayward@arm.com>
4222
4223 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
4224 register sizes.
4225
4226 2019-08-14 Tom Tromey <tromey@adacore.com>
4227
4228 * darwin-nat.c: Include gdbarch.h.
4229 * darwin-nat-info.c: Include gdbarch.h.
4230
4231 2019-08-13 Tom Tromey <tom@tromey.com>
4232
4233 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
4234 Remove.
4235 * tui/tui-data.c (tui_initialize_static_data): Update.
4236
4237 2019-08-13 Tom Tromey <tom@tromey.com>
4238
4239 * tui/tui-winsource.h (struct tui_exec_info_window)
4240 <~tui_exec_info_window, maybe_allocate_content, get_content,
4241 m_content>: Remove.
4242 (struct tui_source_window_base) <set_exec_info_content,
4243 show_exec_info_content>: Don't declare.
4244 * tui/tui-winsource.c
4245 (tui_exec_info_window::maybe_allocate_content): Remove.
4246 (tui_source_window_base::update_exec_info): Rename from
4247 set_exec_info_content.
4248 (tui_source_window_base::show_exec_info_content)
4249 (tui_source_window_base::update_exec_info): Remove.
4250
4251 2019-08-13 Tom Tromey <tom@tromey.com>
4252
4253 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
4254 declare.
4255 * tui/tui-winsource.c (tui_update_source_window_as_is)
4256 (tui_update_source_windows_with_addr, tui_erase_source_content):
4257 Update.
4258 (tui_clear_exec_info_content): Remove.
4259
4260 2019-08-13 Tom Tromey <tom@tromey.com>
4261
4262 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
4263 declare.
4264 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
4265 call tui_erase_exec_info_content.
4266 (tui_clear_exec_info_content): Rename from
4267 tui_erase_exec_info_content.
4268 (tui_clear_exec_info_content): Delete.
4269
4270 2019-08-13 Tom Tromey <tom@tromey.com>
4271
4272 * tui/tui-winsource.h (struct tui_source_window_base)
4273 <show_exec_info_content>: Declare.
4274 (tui_show_exec_info_content): Don't declare.
4275 * tui/tui-winsource.c
4276 (tui_source_window_base::show_exec_info_content): Rename from
4277 tui_show_exec_info_content.
4278 (tui_source_window_base::update_exec_info): Update.
4279
4280 2019-08-13 Tom Tromey <tom@tromey.com>
4281
4282 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
4283 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
4284 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
4285 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
4286 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
4287 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
4288 ... here.
4289
4290 2019-08-13 Tom Tromey <tom@tromey.com>
4291
4292 * tui/tui-winsource.h (struct tui_source_window_base)
4293 <update_exec_info>: Declare.
4294 (tui_update_exec_info): Don't declare.
4295 * tui/tui-winsource.c (tui_update_source_window_as_is)
4296 (tui_source_window_base::refresh_all)
4297 (tui_update_all_breakpoint_info): Update.
4298 (tui_source_window_base::update_exec_info): Rename from
4299 tui_update_exec_info.
4300 * tui/tui-stack.c (tui_show_frame_info): Update.
4301
4302 2019-08-13 Tom Tromey <tom@tromey.com>
4303
4304 * tui/tui-winsource.h (struct tui_source_window_base)
4305 <set_exec_info_content>: Declare.
4306 (tui_set_exec_info_content): Don't declare.
4307 * tui/tui-winsource.c
4308 (tui_source_window_base::set_exec_info_content): Rename from
4309 tui_set_exec_info_content.
4310 (tui_update_exec_info): Update.
4311
4312 2019-08-13 Tom Tromey <tom@tromey.com>
4313
4314 * tui/tui-winsource.h (struct tui_source_window_base)
4315 <show_source_content>: Declare.
4316 (tui_show_source_content): Don't declare.
4317 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4318 (tui_source_window_base::show_source_content): Rename from
4319 tui_show_source_content.
4320 (tui_source_window_base::refresh_all): Update.
4321 * tui/tui-layout.c (show_source_disasm_command)
4322 (show_source_or_disasm_and_command): Update.
4323
4324 2019-08-13 Tom Tromey <tom@tromey.com>
4325
4326 * tui/tui-winsource.c (tui_erase_source_content)
4327 (tui_show_source_content, tui_source_window_base::refresh_all):
4328 Update.
4329 * tui/tui-wingeneral.h
4330 (tui_check_and_display_highlight_if_needed): Don't declare.
4331 * tui/tui-wingeneral.c
4332 (tui_win_info::check_and_display_highlight_if_needed): Rename from
4333 check_and_display_highlight_if_needed.
4334 * tui/tui-win.c (tui_rehighlight_all)
4335 (tui_win_info::make_visible_with_new_height): Update.
4336 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
4337 (tui_data_window::erase_data_content)
4338 (tui_data_window::display_all_data): Update.
4339 * tui/tui-data.h (struct tui_win_info)
4340 <check_and_display_highlight_if_needed>: Declare.
4341
4342 2019-08-13 Tom Tromey <tom@tromey.com>
4343
4344 * tui/tui-win.c (tui_resize_all): Call
4345 tui_delete_invisible_windows.
4346 * tui/tui-layout.c (show_layout): Call
4347 tui_delete_invisible_windows.
4348 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
4349 * tui/tui-data.c (tui_delete_invisible_windows): New function.
4350
4351 2019-08-13 Tom Tromey <tom@tromey.com>
4352
4353 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
4354 tui_add_win_to_layout.
4355
4356 2019-08-13 Tom Tromey <tom@tromey.com>
4357
4358 * tui/tui-layout.h (tui_default_win_height): Don't declare.
4359 * tui/tui-layout.c (tui_default_win_height): Now static.
4360
4361 2019-08-13 Tom Tromey <tom@tromey.com>
4362
4363 * tui/tui-layout.c (show_layout): Unify all layout cases into a
4364 single switch.
4365 (show_source_disasm_command, show_source_or_disasm_and_command):
4366 Don't check current layout.
4367
4368 2019-08-13 Tom Tromey <tom@tromey.com>
4369
4370 * tui/tui-wingeneral.c (make_all_visible): Remove.
4371 (tui_make_all_invisible): Simplify.
4372 * tui/tui-layout.c (tui_make_all_invisible): Move from
4373 tui-wingeneral.c; simplify.
4374 (show_layout): Hoist call to tui_make_all_invisible.
4375 (show_data): Don't call tui_make_all_invisible.
4376
4377 2019-08-13 Tom Tromey <tom@tromey.com>
4378
4379 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
4380 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
4381
4382 2019-08-13 Tom Tromey <tom@tromey.com>
4383
4384 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
4385 tui-data.c.
4386 (show_source_disasm_command, show_data)
4387 (show_source_or_disasm_and_command): Don't use
4388 tui_set_current_layout_to.
4389 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
4390 * tui/tui-data.c (current_layout, tui_current_layout): Move to
4391 tui-layout.c.
4392 (tui_set_current_layout_to): Remove.
4393
4394 2019-08-13 Tom Tromey <tom@tromey.com>
4395
4396 * tui/tui-layout.c (tui_set_layout): Update.
4397 * tui/tui-data.h (struct tui_layout_def): Remove.
4398 (tui_layout_def): Don't declare.
4399 * tui/tui-data.c (layout_def): Remove.
4400 (tui_layout_def): Remove.
4401
4402 2019-08-13 Tom Tromey <tom@tromey.com>
4403
4404 * tui/tui-winsource.h (struct tui_source_window_base)
4405 <clear_detail>: No longer "override".
4406 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
4407 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
4408 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
4409 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
4410 Remove.
4411 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
4412
4413 2019-08-13 Tom Tromey <tromey@adacore.com>
4414
4415 * tracepoint.c: Don't include readline.h or history.h.
4416
4417 2019-08-12 Tom Tromey <tom@tromey.com>
4418
4419 * configure: Rebuild.
4420 * configure.ac: Check for readline 7.
4421 * NEWS: Mention readline 7 requirement.
4422 * README: Update.
4423
4424 2019-08-12 Tom Tromey <tom@tromey.com>
4425
4426 * mingw-hdep.c (gdb_select): Remove readline hack.
4427
4428 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4429
4430 * blockframe.c (find_pc_partial_function): Set *block to nullptr
4431 when the function fails.
4432
4433 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
4434
4435 * s390-tdep.c (s390_type_align): New function.
4436 (s390_gdbarch_init): Set it as type_align gdbarch method.
4437
4438 2019-08-09 Tom de Vries <tdevries@suse.de>
4439
4440 PR gdb/24591
4441 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
4442 pc_low with relocation offset.
4443
4444 2019-08-07 Tom Tromey <tromey@adacore.com>
4445
4446 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
4447 (print_frame_args): Update.
4448 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
4449 Update.
4450 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
4451 * frame.h (struct frame_arg): Add initializers.
4452 <error>: Now a unique_xmalloc_ptr.
4453
4454 2019-08-07 Alan Hayward <alan.hayward@arm.com>
4455
4456 * NEWS: Expand the Pointer Authentication entry.
4457 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
4458 (aarch64_frame_unmask_lr): ... to this.
4459 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
4460 Call aarch64_frame_unmask_lr.
4461 * frame.c (struct frame_info): Add "masked" variable.
4462 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
4463 (fprint_frame): Check for masked pc.
4464 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
4465 declarations.
4466 * python/py-framefilter.c (py_print_frame): Check for masked pc.
4467 * stack.c (print_frame): Check for masked pc.
4468
4469 2019-08-06 Tom Tromey <tom@tromey.com>
4470
4471 * stabsread.c (patch_block_stabs, read_one_struct_field)
4472 (read_enum_type): Use obstack_strndup.
4473 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
4474 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
4475 * dwarf2read.c (guess_full_die_structure_name)
4476 (anonymous_struct_prefix): Use obstack_strndup.
4477 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
4478 * c-exp.y (yylex): Use obstack_strndup.
4479 * ada-exp.y (write_object_renaming, write_ambiguous_var)
4480 (write_var_or_type): Use obstack_strndup.
4481
4482 2019-08-06 Tom Tromey <tom@tromey.com>
4483
4484 * symfile.c (reread_symbols): Use obstack_strdup.
4485 * stabsread.c (read_type): Use obstack_strdup.
4486 * gdb_obstack.h (obstack_strdup): New overload.
4487 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
4488 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
4489 (dwarf2_canonicalize_name): Use obstack_strdup.
4490 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
4491 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
4492 Use obstack_strdup.
4493
4494 2019-08-06 Tom Tromey <tom@tromey.com>
4495
4496 * gdb_obstack.h (obstack_strdup): Define.
4497 * gdb_obstack.c (obstack_strdup): Don't define.
4498
4499 2019-08-06 Tom Tromey <tom@tromey.com>
4500
4501 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
4502 obstack_strdup.
4503 * typeprint.c (typedef_hash_table::find_global_typedef): Use
4504 obstack_strdup.
4505 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
4506 * stabsread.c (common_block_start): Use obstack_strdup.
4507 * objfiles.c (set_objfile_main_name, objfile): Use
4508 obstack_strdup.
4509 * namespace.c (add_using_directive): Use obstack_strdup.
4510 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
4511 * jit.c (finalize_symtab): Use obstack_strdup.
4512 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
4513 (guess_partial_die_structure_name, partial_die_info::fixup)
4514 (dwarf2_name): Use obstack_strdup.
4515 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
4516 obstack_strdup.
4517 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
4518 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
4519 obstack_strdup.
4520 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
4521
4522 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4523
4524 * unittests/help-doc-selftests.c: New file.
4525 * Makefile.in: Add the new file.
4526
4527 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4528
4529 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
4530 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
4531 the full first line, except when FOR_VALUE_PREFIX. In this case,
4532 the trailing '.' is not output, and the first character is uppercased.
4533 (print_help_for_command): Update call to print_doc_line.
4534 (print_doc_of_command): Likewise.
4535 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
4536 * cli/cli-option.c (append_indented_doc): Do not append newline.
4537 (build_help_option): Append newline after first appended_indented_doc
4538 only if a second call is done.
4539 (build_help): Append 2 new lines before each option, except the first
4540 one.
4541 * compile/compile.c (_initialize_compile): Add new lines after
4542 %OPTIONS%, when not at the end of the help.
4543 Change help doc or code
4544 producing the help doc to respect the invariants.
4545 * maint-test-options.c (_initialize_maint_test_options): Likewise.
4546 Also removed the new line after 'Options:', as all other commands
4547 do not put an empty line between 'Options:' and the first option.
4548 * printcmd.c (_initialize_printcmd): Likewise.
4549 * stack.c (_initialize_stack): Likewise.
4550 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
4551 incorrectly telling COMMAND is optional.
4552 * ada-lang.c (_initialize_ada_language): Change help doc or code
4553 producing the help doc to respect the invariants.
4554 * ada-tasks.c (_initialize_ada_tasks): Likewise.
4555 * breakpoint.c (_initialize_breakpoint): Likewise.
4556 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
4557 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
4558 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
4559 * cli/cli-style.c (cli_style_option::add_setshow_commands,
4560 _initialize_cli_style): Likewise.
4561 * corelow.c (core_target_info): Likewise.
4562 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
4563 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
4564 * filesystem.c (_initialize_filesystem): Likewise.
4565 * frame.c (_initialize_frame): Likewise.
4566 * gnu-nat.c (add_task_commands): Likewise.
4567 * infcall.c (_initialize_infcall): Likewise.
4568 * infcmd.c (_initialize_infcmd): Likewise.
4569 * interps.c (_initialize_interpreter): Likewise.
4570 * language.c (_initialize_language): Likewise.
4571 * linux-fork.c (_initialize_linux_fork): Likewise.
4572 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
4573 * maint.c (_initialize_maint_cmds): Likewise.
4574 * memattr.c (_initialize_mem): Likewise.
4575 * printcmd.c (_initialize_printcmd): Likewise.
4576 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
4577 _RegEx): Likewise.
4578 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
4579 * record-btrace.c (_initialize_record_btrace): Likewise.
4580 * record-full.c (_initialize_record_full): Likewise.
4581 * record.c (_initialize_record): Likewise.
4582 * regcache-dump.c (_initialize_regcache_dump): Likewise.
4583 * regcache.c (_initialize_regcache): Likewise.
4584 * remote.c (add_packet_config_cmd, init_remote_threadtests,
4585 _initialize_remote): Likewise.
4586 * ser-tcp.c (_initialize_ser_tcp): Likewise.
4587 * serial.c (_initialize_serial): Likewise.
4588 * skip.c (_initialize_step_skip): Likewise.
4589 * source.c (_initialize_source): Likewise.
4590 * stack.c (_initialize_stack): Likewise.
4591 * symfile.c (_initialize_symfile): Likewise.
4592 * symtab.c (_initialize_symtab): Likewise.
4593 * target-descriptions.c (_initialize_target_descriptions): Likewise.
4594 * top.c (init_main): Likewise.
4595 * tracefile-tfile.c (tfile_target_info): Likewise.
4596 * tracepoint.c (_initialize_tracepoint): Likewise.
4597 * tui/tui-win.c (_initialize_tui_win): Likewise.
4598 * utils.c (add_internal_problem_command): Likewise.
4599 * valprint.c (value_print_option_defs): Likewise.
4600
4601 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
4602
4603 PR build/24886
4604 * configure.ac: Drop enable-libmcheck support.
4605 * configure, config.in: Rebuild.
4606 * libmcheck.m4: Remove.
4607 * acinclude.m4: Don't include it.
4608 * Makefile.in: Don't distribute it.
4609 * top.c (print_gdb_configuration): Don't mention it.
4610
4611 2019-08-06 Tom Tromey <tom@tromey.com>
4612
4613 * utils.c (set_output_style): Sometimes pass stream to
4614 emit_style_escape.
4615 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
4616 * record-btrace.c (btrace_insn_history): Update.
4617 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
4618 method.
4619 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
4620 Update initializers.
4621 <m_uiout>: New field.
4622 <m_di>: Move lower.
4623 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4624 Remove "uiout" parameter.
4625 (dump_insns): Update.
4626 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
4627 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
4628
4629 2019-08-06 Christian Biesinger <cbiesinger@google.com>
4630
4631 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
4632 (error_in_psymtab_expansion): Likewise.
4633 (lookup_symbol_via_quick_fns): Likewise.
4634 (basic_lookup_transparent_type_quick): Likewise.
4635 (basic_lookup_transparent_type_1): Likewise.
4636
4637 2019-08-06 Tom Tromey <tromey@adacore.com>
4638
4639 * source.c (last_source_error): Now bool.
4640 (print_source_lines_base): Make "noprint" bool. Only open
4641 source file when last_source_visited changes.
4642
4643 2019-08-06 Tom Tromey <tromey@adacore.com>
4644
4645 * annotate.c (annotate_source_line): Use g_source_cache.
4646 * source-cache.c (source_cache::get_plain_source_lines): Change
4647 parameters. Populate m_offset_cache.
4648 (source_cache::ensure): New method.
4649 (source_cache::get_line_charpos): New method.
4650 (extract_lines): Move lower. Change parameters.
4651 (source_cache::get_source_lines): Move lower.
4652 * source-cache.h (class source_cache): Update comment.
4653 <get_line_charpos>: New method.
4654 <get_source_lines>: Update comment.
4655 <clear>: Clear m_offset_cache.
4656 <get_plain_source_lines>: Change parameters.
4657 <ensure>: New method
4658 <m_offset_cache>: New member.
4659 * source.c (forget_cached_source_info_for_objfile): Update.
4660 (info_source_command): Use g_source_cache.
4661 (find_source_lines, open_source_file_with_line_charpos): Remove.
4662 (print_source_lines_base, search_command_helper): Use g_source_cache.
4663 * source.h (open_source_file_with_line_charpos): Don't declare.
4664 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
4665 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
4666 Use g_source_cache.
4667
4668 2019-08-06 Tom Tromey <tromey@adacore.com>
4669
4670 * source-cache.c (source_cache::get_plain_source_lines):
4671 Remove "first_line" and "last_line" parameters.
4672 (source_cache::get_source_lines): Cache plain text.
4673 * source-cache.h (class source_cache)
4674 <get_plain_source_lines>: Update.
4675
4676 2019-08-06 Tom Tromey <tromey@adacore.com>
4677
4678 * source-cache.c (extract_lines): No longer a method.
4679 Changed type of parameter. Include final newline.
4680 (selftests::extract_lines_test): New function.
4681 (_initialize_source_cache): Likewise.
4682 * source-cache.h (class source_cache)
4683 <extract_lines>: Don't declare.
4684
4685 2019-08-06 Tom Tromey <tromey@adacore.com>
4686
4687 * breakpoint.c (init_breakpoint_sal): Update.
4688 (breakpoint): Update.
4689 * breakpoint.h (struct breakpoint) <filter>: Now a
4690 unique_xmalloc_ptr.
4691
4692 2019-08-05 Christian Biesinger <cbiesinger@google.com>
4693
4694 * NEWS: Mention dictionary access on blocks.
4695 * python/py-block.c (blpy_getitem): New function.
4696 (block_object_as_mapping): New struct.
4697 (block_object_type): Use new struct for tp_as_mapping field.
4698
4699 2019-08-05 Christian Biesinger <cbiesinger@google.com>
4700
4701 * objfiles.h (objfile): Add a comment describing partial symbols.
4702
4703 2019-08-05 Tom Tromey <tromey@adacore.com>
4704
4705 * compile/compile.c (_initialize_compile): Use _(), not N_().
4706 * thread.c (_initialize_thread): Use _(), not N_().
4707 * stack.c (_initialize_stack): Use _(), not N_().
4708 * printcmd.c (_initialize_printcmd): Use _(), not N_().
4709
4710 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4711
4712 * dwarf2read.c (struct dw2_symtab_iterator):
4713 <want_specific_block>: Remove.
4714 <block_index>: Change type to gdb::optional.
4715 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
4716 change type of BLOCK_INDEX parameter to gdb::optional.
4717 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
4718 (dw2_lookup_symbol): Don't pass argument for
4719 WANT_SPECIFIC_BLOCK.
4720 (dw2_expand_symtabs_for_function): Don't pass argument for
4721 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
4722 (class dw2_debug_names_iterator)
4723 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
4724 parameter, change BLOCK_INDEX type to gdb::optional.
4725 <m_want_specific_block>: Remove.
4726 <m_block_index>: Change type to gdb::optional.
4727 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
4728 gdb::optional. Re-write in function of gdb::optional.
4729 (dw2_debug_names_lookup_symbol): Don't pass argument for
4730 WANT_SPECIFIC_BLOCK.
4731 (dw2_debug_names_expand_symtabs_for_function): Don't pass
4732 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
4733 BLOCK_INDEX.
4734
4735 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4736
4737 * NEWS: Mention changes to "info sources" command.
4738
4739 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4740
4741 * symtab.c (filename_partial_match_opts): New struct type.
4742 (struct output_source_filename_data): New members
4743 regexp, c_regexp, partial_match.
4744 (output_source_filename): Use new members to decide to print file.
4745 (info_sources_option_defs): New variable.
4746 (make_info_sources_options_def_group, print_info_sources_header,
4747 info_sources_command_completer):
4748 New functions.
4749 (info_sources_command): Read new optional arguments.
4750 (_initialize_symtab): Update info sources help.
4751
4752 2019-08-02 Alexandre Oliva <oliva@adacore.com>
4753
4754 * ada-lang.c (exception_support_info_v0): Renamed from...
4755 (default_exception_support_info): ... this. Create new
4756 definition for v1.
4757 (ada_has_this_exception_support): Look up catch_handlers_sym.
4758 (ada_exception_support_info_sniffer): Try v0 after default.
4759
4760 2019-08-01 Tom Tromey <tromey@adacore.com>
4761
4762 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
4763 gdbarch.h.
4764
4765 2019-08-01 Christian Biesinger <cbiesinger@google.com>
4766
4767 * s12z-tdep.c: Fix include path for s12z-opc.h.
4768
4769 2019-08-01 Alan Hayward <alan.hayward@arm.com>
4770
4771 * NEWS: Require GNU make 3.82.
4772
4773 2019-07-16 Tom Tromey <tom@tromey.com>
4774
4775 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
4776 declare.
4777
4778 2019-07-30 Tom Tromey <tromey@adacore.com>
4779
4780 * block.c (contained_in): Remove BLOCK_FUNCTION check.
4781
4782 2019-07-30 Kevin Buettner <kevinb@redhat.com>
4783
4784 * printcmd.c (print_address_symbolic): Print negative offsets.
4785 (build_address_symbolic): Force signed arithmetic when computing
4786 offset.
4787
4788 2019-07-30 Christian Biesinger <cbiesinger@google.com>
4789
4790 PR/24474: Add a function to lookup static variables.
4791 * NEWS: Mention this new function.
4792 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
4793 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
4794 * python/python.c (python_GdbMethods): Add new function.
4795
4796 2019-07-29 Christian Biesinger <cbiesinger@google.com>
4797
4798 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
4799 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
4800 (objfpy_lookup_static_symbol): New function.
4801 (objfile_object_methods): Add new functions.
4802
4803 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4804
4805 * NEWS: Mention 'set|show print frame-info'. Mention new
4806 'presence' value for 'frame-arguments'. Mention new '-frame-info'
4807 backtrace argument. Mention that python frame filtering code
4808 is now consistent with what 'backtrace' command prints.
4809
4810 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4811
4812 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
4813 comments.
4814 (print_frame_info_auto, print_frame_info_source_line,
4815 print_frame_info_location, print_frame_info_source_and_location,
4816 print_frame_info_location_and_address, print_frame_info_short_location):
4817 New declarations.
4818 (struct frame_print_options): New member print_frame_info.
4819 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
4820 * stack.h (get_user_print_what_frame_info): New declaration.
4821 (frame_show_address): New declaration.
4822 * stack.c (print_frame_arguments_choices): New value 'presence'.
4823 (print_frame_info_auto, print_frame_info_source_line,
4824 print_frame_info_location, print_frame_info_source_and_location,
4825 print_frame_info_location_and_address, print_frame_info_short_location,
4826 print_frame_info_choices, print_frame_info_print_what): New definitions.
4827 (print_frame_args): Only print dots for args if print frame-arguments
4828 is 'presence'.
4829 (frame_print_option_defs): New element for "frame-info".
4830 (get_user_print_what_frame_info): New function.
4831 (frame_show_address): Make non static. Move comment to stack.h.
4832 (print_frame_info_to_print_what): New function.
4833 (print_frame_info): Update comment. Use fp_opts.print_frame_info
4834 to decide what to print.
4835 (backtrace_command_1): Handle the new print_frame_arguments_presence
4836 value.
4837 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
4838 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
4839 (py_print_frame): In non-mi mode, use LOCATION as default for
4840 print_what, similarly to frame information printed directly by
4841 backtrace command. Handle frame-info user option in non MI mode.
4842
4843 2019-07-27 Kevin Buettner <kevinb@redhat.com>
4844
4845 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
4846 Add case for debugging 32-bit target on 64-bit host. Revise
4847 comment.
4848
4849 2019-07-27 Kevin Buettner <kevinb@redhat.com>
4850
4851 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
4852 instead of find_function_entry_range_from_pc.
4853
4854 2019-07-27 Kevin Buettner <kevinb@redhat.com>
4855
4856 * stack.c (find_frame_funname): Remove code which preferred
4857 minsym over symtab sym in "certain pathological cases".
4858
4859 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
4860 parameter. Change type of "do_demangle" to bool.
4861 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4862 Pass suitable "prefer_sym_over_minsym" flag to
4863 build_address_symbolic(). Don't output "+" for negative offsets.
4864 * printcmd.c (print_address_symbolic): Update invocation of
4865 build_address_symbolic to include a "prefer_sym_over_minsym"
4866 flag.
4867 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
4868 Restrict cases in which use of minimal symbol is preferred to that
4869 of a found symbol. Update comments.
4870
4871 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
4872 for entry pc when entry pc is out of range for that FDE.
4873
4874 2019-07-26 Brian Callahan <bcallah@openbsd.org>
4875
4876 PR gdb/24839:
4877 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
4878 type.
4879
4880 2019-07-25 Christian Biesinger <cbiesinger@google.com>
4881
4882 * python/py-objfile.c (add_separate_debug_file): Fix comment about
4883 this function's Python signature.
4884
4885
4886 2019-07-24 Christian Biesinger <cbiesinger@google.com>
4887
4888 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
4889 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
4890 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
4891 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
4892 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
4893
4894
4895 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
4896
4897 * h8300-tdep.c (h8300_register_name_common): New.
4898 h8300_register_name): Use h8300_register_name_common.
4899 (h8300s_register_name): Likewise.
4900 (h8300sx_register_name): Likewise.
4901 (h8300h_register_nam): New.
4902 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
4903
4904
4905 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
4906
4907 * arm-tdep.c (arm_skip_cmse_entry): New function.
4908 (arm_is_sgstubs_section): New function.
4909 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
4910
4911 2019-07-22 Tom Tromey <tom@tromey.com>
4912
4913 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
4914 Don't self-assign.
4915
4916 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4917
4918 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
4919 type_print.
4920
4921 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4922
4923 * symtab.c (search_symbols): Adjust msymbol matching type arrays
4924 so that GDB doesn't match any msymbols when searching in the
4925 TYPES_DOMAIN.
4926 (print_symbol_info): Print using typedef_print or type_print based
4927 on the type of the symbol. Add updated FIXME comment moved from...
4928 (_initialize_symtab): ... move and update FIXME comment to above.
4929
4930 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4931
4932 * NEWS: Mention adding -q option to "info types".
4933 * symtab.c (struct info_types_options): New struct.
4934 (info_types_options_defs): New variable.
4935 (make_info_types_options_def_group): New function.
4936 (info_types_command): Use gdb::option framework to parse options.
4937 (info_types_command_completer): New function.
4938 (_initialize_symtab): Extend the help text on "info types" and
4939 register command completer.
4940
4941 2019-07-21 Christian Biesinger <cbiesinger@google.com>
4942
4943 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
4944 (lookup_symbol_in_objfile): Change int to block_enum and add a
4945 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
4946
4947 2019-07-20 Christian Biesinger <cbiesinger@google.com>
4948
4949 * MAINTAINERS (Write After Approval): Add self.
4950
4951 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
4952
4953 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
4954 instruction to the dummy code region.
4955
4956 2019-07-19 Tom Tromey <tromey@adacore.com>
4957
4958 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
4959 (ARGSUSED, PARAMS, __func__): Remove rules.
4960
4961 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4962
4963 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
4964 * features/arm/arm-with-iwmmxt.c: Remove.
4965 * features/arm/arm-with-iwmmxt.xml: Remove.
4966 * features/arm/arm-with-m-fpa-layout.c: Remove.
4967 * features/arm/arm-with-m-fpa-layout.xml: Remove.
4968 * features/arm/arm-with-m-vfp-d16.c: Remove.
4969 * features/arm/arm-with-m-vfp-d16.xml: Remove.
4970 * features/arm/arm-with-m.c: Remove.
4971 * features/arm/arm-with-m.xml: Remove.
4972 * features/arm/arm-with-neon.c: Remove.
4973 * features/arm/arm-with-neon.xml: Remove.
4974 * features/arm/arm-with-vfpv2.c: Remove.
4975 * features/arm/arm-with-vfpv2.xml: Remove.
4976 * features/arm/arm-with-vfpv3.c: Remove.
4977 * features/arm/arm-with-vfpv3.xml: Remove.
4978
4979 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4980
4981 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
4982
4983 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4984
4985 * arch/aarch32.c (aarch32_create_target_description): Create
4986 target descriptions using features.
4987 * arch/arm.c (arm_create_target_description)
4988 (arm_create_mprofile_target_description): Likewise.
4989 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
4990
4991 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4992
4993 * Makefile.in: Add new files.
4994 * aarch32-tdep.c: New file.
4995 * aarch32-tdep.h: New file.
4996 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
4997 Call aarch32_read_description.
4998 * arch/aarch32.c: New file.
4999 * arch/aarch32.h: New file.
5000 * arch/arm.c (arm_create_target_description)
5001 (arm_create_mprofile_target_description): New function.
5002 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
5003 (arm_create_target_description)
5004 (arm_create_mprofile_target_description): New declaration.
5005 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
5006 read_description functions.
5007 * arm-linux-nat.c (arm_linux_nat_target::read_description):
5008 Likewise.
5009 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
5010 * arm-tdep.c (tdesc_arm_list): New variable.
5011 (arm_register_g_packet_guesses): Call create description functions.
5012 (arm_read_description) (arm_read_mprofile_description): New
5013 function.
5014 * arm-tdep.h (arm_read_description)
5015 (arm_read_mprofile_description): Add declaration.
5016 * configure.tgt: Add new files.
5017
5018 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
5019
5020 * top.c (new_ui_command): Open specified terminal just once.
5021
5022 2019-07-18 Tom Tromey <tromey@adacore.com>
5023
5024 * symtab.c (main_name): Constify return type.
5025 * symfile.c (set_initial_language): Update.
5026 * symtab.h (main_name): Constify return type.
5027
5028 2019-07-17 Tom Tromey <tom@tromey.com>
5029
5030 * tui/tui-winsource.c (tui_update_source_window)
5031 (tui_update_source_window_as_is)
5032 (tui_update_source_windows_with_line): Remove return.
5033 * tui/tui-disasm.c (tui_show_disassem)
5034 (tui_show_disassem_and_update_source): Remove return.
5035 * tui/tui.c (tui_reset): Remove return.
5036 * tui/tui-wingeneral.c
5037 (tui_check_and_display_highlight_if_needed): Remove return.
5038
5039 2019-07-17 Tom Tromey <tom@tromey.com>
5040
5041 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
5042
5043 2019-07-17 Tom Tromey <tom@tromey.com>
5044
5045 * tui/tui-winsource.h (struct tui_exec_info_window)
5046 (struct tui_source_window_base): Move from tui-data.h.
5047 * tui/tui-winsource.c: Move many method definitions from
5048 elsewhere. Remove "structuring" comments.
5049 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
5050 (tui_source_window_base::refresh_window): Move to
5051 tui-winsource.c.
5052 * tui/tui-win.c (tui_source_window_base::refresh_all)
5053 (tui_source_window_base::update_tab_width)
5054 (tui_source_window_base::set_new_height)
5055 (tui_source_window_base::do_make_visible_with_new_height): Move to
5056 tui-winsource.c.
5057 * tui/tui-source.h: Update.
5058 * tui/tui-source.c (tui_source_window_base::reset): Move to
5059 tui-winsource.c.
5060 * tui/tui-disasm.h: Update.
5061 * tui/tui-data.h (struct tui_exec_info_window): Move to
5062 tui-winsource.h.
5063 (struct tui_source_window_base): Likewise.
5064 * tui/tui-data.c (tui_source_window_base::clear_detail)
5065 (tui_source_window_base, ~tui_source_window_base): Move to
5066 tui-winsource.c.
5067
5068 2019-07-17 Tom Tromey <tom@tromey.com>
5069
5070 * tui/tui-win.c (tui_resize_all)
5071 (tui_source_window_base::update_tab_width)
5072 (tui_adjust_win_heights): Update.
5073 (tui_win_info::make_invisible_and_set_new_height): Rename from
5074 make_invisible_and_set_new_height.
5075 * tui/tui-data.h (struct tui_win_info)
5076 <make_invisible_and_set_new_height>: New method.
5077
5078 2019-07-17 Tom Tromey <tom@tromey.com>
5079
5080 * tui/tui.c: Update.
5081 * tui/tui-source.h (struct tui_source_window): Move from
5082 tui-data.h.
5083 * tui/tui-layout.c: Update.
5084 * tui/tui-disasm.c: Update.
5085 * tui/tui-data.h (struct tui_source_window): Move to
5086 tui-source.h.
5087
5088 2019-07-17 Tom Tromey <tom@tromey.com>
5089
5090 * tui/tui-disasm.h (struct tui_disasm_window): Move from
5091 tui-data.h.
5092 * tui/tui-data.h (struct tui_disasm_window): Move to
5093 tui-disasm.h.
5094
5095 2019-07-17 Tom Tromey <tom@tromey.com>
5096
5097 * tui/tui-regs.h (struct tui_data_item_window): Move from
5098 tui-data.h.
5099 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
5100 * tui/tui-data.h (struct tui_data_item_window): Move to
5101 tui-regs.h.
5102 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
5103
5104 2019-07-17 Tom Tromey <tom@tromey.com>
5105
5106 * tui/tui.c: Update.
5107 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
5108 (tui_cmd_window::max_height): Move to tui-command.c.
5109 * tui/tui-layout.c: Update.
5110 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
5111 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
5112 tui-command.c.
5113 * tui/tui-command.h (struct tui_cmd_window): Move from
5114 tui-data.h.
5115 * tui/tui-command.c: Remove "structuring" comments.
5116 (tui_cmd_window::clear_detail)
5117 (tui_cmd_window::do_make_visible_with_new_height)
5118 (tui_cmd_window::max_height): Move from elsewhere.
5119
5120 2019-07-17 Tom Tromey <tom@tromey.com>
5121
5122 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
5123 Now static.
5124 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
5125 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
5126
5127 2019-07-17 Tom Tromey <tom@tromey.com>
5128
5129 * tui/tui.c: Update.
5130 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
5131 tui-regs.c.
5132 * tui/tui-windata.h: Remove file.
5133 * tui/tui-windata.c: Remove file.
5134 * tui/tui-win.c (tui_data_window::set_new_height)
5135 (tui_data_window::do_make_visible_with_new_height): Move to
5136 tui-regs.c.
5137 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
5138 * tui/tui-regs.c: Remove "structuring" comments.
5139 (tui_data_window::first_data_item_displayed)
5140 (tui_data_window::delete_data_content_windows)
5141 (tui_data_window::erase_data_content)
5142 (tui_data_window::display_all_data)
5143 (tui_data_window::refresh_all)
5144 (tui_data_window::do_scroll_vertical)
5145 (tui_data_window::clear_detail, tui_data_window::set_new_height)
5146 (tui_data_window::do_make_visible_with_new_height)
5147 (tui_data_window::refresh_window): Move from elsewhere.
5148 (_initialize_tui_regs): Move to end of file.
5149 * tui/tui-layout.c: Update.
5150 * tui/tui-hooks.c: Update.
5151 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
5152 * tui/tui-data.c (tui_data_window::clear_detail): Move to
5153 tui-regs.c.
5154 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
5155
5156 2019-07-17 Tom Tromey <tom@tromey.com>
5157
5158 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
5159 seen.
5160
5161 2019-07-17 Tom Tromey <tom@tromey.com>
5162
5163 * tui/tui-win.c (tui_source_window_base::set_new_height)
5164 (tui_source_window_base::do_make_visible_with_new_height): Use
5165 m_has_locator field directly.
5166 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
5167 method.
5168 (struct tui_source_window_base) <has_locator>: Likewise.
5169
5170 2019-07-17 Tom Tromey <tom@tromey.com>
5171
5172 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
5173 Don't declare.
5174 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
5175 Remove.
5176 * tui/tui-win.c (tui_source_window_base::set_new_height)
5177 (tui_source_window_base::set_new_height)
5178 (make_invisible_and_set_new_height)
5179 (tui_source_window_base::do_make_visible_with_new_height)
5180 (tui_source_window_base::do_make_visible_with_new_height):
5181 Update.
5182 * tui/tui-layout.c (show_source_disasm_command, show_data)
5183 (show_source_or_disasm_and_command): Update.
5184 * tui/tui-layout.c (show_layout): Update.
5185
5186 2019-07-17 Tom Tromey <tom@tromey.com>
5187
5188 * tui/tui-layout.c (make_data_window): Remove.
5189 (show_data): Unify creation and re-initialization cases.
5190
5191 2019-07-17 Tom Tromey <tom@tromey.com>
5192
5193 * tui/tui-layout.c (make_source_window, make_disasm_window):
5194 Remove.
5195 (show_data): Unify creation and re-initialization cases.
5196
5197 2019-07-17 Tom Tromey <tom@tromey.com>
5198
5199 * tui/tui-layout.c (make_command_window): Remove.
5200 (show_source_disasm_command, show_source_or_disasm_and_command):
5201 Unify creation and re-initialization cases.
5202
5203 2019-07-17 Tom Tromey <tom@tromey.com>
5204
5205 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
5206 creation and re-initialization cases.
5207
5208 2019-07-17 Tom Tromey <tom@tromey.com>
5209
5210 * tui/tui-regs.c (tui_get_register): Return void.
5211
5212 2019-07-17 Tom Tromey <tom@tromey.com>
5213
5214 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
5215 Simplify.
5216
5217 2019-07-17 Tom Tromey <tom@tromey.com>
5218
5219 * tui/tui-layout.c (show_source_disasm_command): Simplify window
5220 resetting.
5221
5222 2019-07-17 Tom Tromey <tom@tromey.com>
5223
5224 * tui/tui.h (tui_set_layout_by_name): Don't declare.
5225 * tui/tui-regs.c (tui_reg_layout): New function.
5226 (tui_show_registers, tui_reg_command): Use it.
5227 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
5228 (tui_layout_command): Rename from tui_set_layout_by_name. Change
5229 parameters.
5230 (tui_layout_command): Remove.
5231
5232 2019-07-17 Tom Tromey <tom@tromey.com>
5233
5234 * tui/tui-layout.h (tui/tui-layout): Return void.
5235 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
5236
5237 2019-07-17 Tom Tromey <tom@tromey.com>
5238
5239 * tui/tui-layout.c (show_source_disasm_command, show_data):
5240 Update.
5241 (reset_locator): Remove.
5242 (show_source_or_disasm_and_command): Update.
5243
5244 2019-07-17 Tom Tromey <tom@tromey.com>
5245
5246 * tui/tui-source.c (tui_source_window_base::reset): Remove
5247 win_type parameter.
5248 * tui/tui-layout.c (make_command_window, make_source_window)
5249 (make_disasm_window, make_data_window)
5250 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
5251 (reset_locator, show_source_or_disasm_and_command): Update.
5252 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
5253 win_type parameter.
5254 (struct tui_source_window_base) <reset>: Likewise.
5255
5256 2019-07-17 Tom Tromey <tom@tromey.com>
5257
5258 * tui/tui-layout.c (show_source_disasm_command): Use
5259 reset_locator.
5260 (reset_locator): New function.
5261 (init_and_make_win): Remove.
5262 (show_source_or_disasm_and_command): Use reset_locator.
5263
5264 2019-07-17 Tom Tromey <tom@tromey.com>
5265
5266 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
5267 condition.
5268 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
5269 Remove condition.
5270 * tui/tui-source.c (tui_source_window_base::reset): New method.
5271 * tui/tui-layout.c (make_command_window): Don't call
5272 init_and_make_win.
5273 (make_source_window, make_disasm_window): Don't call
5274 make_source_or_disasm_window.
5275 (make_data_window): Don't call init_and_make_win. Change calling
5276 convention.
5277 (show_source_disasm_command, show_data): Simplify.
5278 (make_source_or_disasm_window): Remove.
5279 (show_source_or_disasm_and_command): Simplify.
5280 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
5281 (struct tui_source_window_base) <reset>: Likewise.
5282 <execution_info>: Remove initializer.
5283 * tui/tui-data.c (tui_source_window_base): Initialize
5284 execution_info.
5285
5286 2019-07-17 Tom Tromey <tom@tromey.com>
5287
5288 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
5289 variable.
5290
5291 2019-07-17 Tom Tromey <tom@tromey.com>
5292
5293 * tui/tui.c (tui_rl_other_window): Update.
5294 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
5295 superclass method first. Always iterate over regs_content.
5296 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
5297 method.
5298 * tui/tui-win.c (tui_set_focus_command): Update.
5299
5300 2019-07-17 Tom Tromey <tom@tromey.com>
5301
5302 * tui/tui-win.c (tui_set_focus_command): Rename from
5303 tui_set_focus. Call tui_enable.
5304 (tui_set_focus_command): Remove.
5305
5306 2019-07-17 Tom Tromey <tom@tromey.com>
5307
5308 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
5309 refresh_window.
5310 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
5311 touchwin.
5312 (tui_data_window::refresh_window): Call refresh_window on data
5313 items. Always call superclass refresh_window.
5314 (tui_win_info::refresh): Remove.
5315 (tui_source_window_base::refresh_window): Update.
5316 (tui_refresh_all): Update.
5317 * tui/tui-layout.c (show_source_disasm_command): Remove call to
5318 refresh_window.
5319 (show_source_or_disasm_and_command): Likewise.
5320 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
5321 (struct tui_source_window_base) <refresh>: Likewise.
5322
5323 2019-07-17 Tom Tromey <tom@tromey.com>
5324
5325 * tui/tui-winsource.c (tui_clear_source_content)
5326 (tui_show_source_content): Update.
5327 * tui/tui-source.c (tui_source_window::showing_source_p): Check
5328 whether content is empty.
5329 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
5330 Remove.
5331
5332 2019-07-17 Tom Tromey <tom@tromey.com>
5333
5334 * tui/tui-winsource.c (tui_erase_source_content): Clear the
5335 window's contents.
5336 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
5337 * tui/tui-source.c (tui_set_source_content_nil): Remove.
5338
5339 2019-07-17 Tom Tromey <tom@tromey.com>
5340
5341 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
5342 (struct tui_data_item_window): Update.
5343
5344 2019-07-17 Tom Tromey <tom@tromey.com>
5345
5346 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
5347 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
5348 defines.
5349
5350 2019-07-17 Tom Tromey <tom@tromey.com>
5351
5352 * tui/tui-winsource.h (tui_erase_source_content)
5353 (tui_clear_source_content): Remove "display_prompt" parameter.
5354 * tui/tui-winsource.c (tui_update_source_window_as_is)
5355 (tui_update_source_windows_with_addr): Update.
5356 (tui_clear_source_content): Remove "display_prompt" parameter.
5357 (tui_erase_source_content): Likewise. Simplify.
5358 (tui_show_source_content): Update.
5359 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5360 * tui/tui-stack.c (tui_show_frame_info): Update.
5361 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
5362 Remove defines.
5363
5364 2019-07-17 Tom Tromey <tom@tromey.com>
5365
5366 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5367 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
5368 parameter.
5369 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
5370 parameter.
5371
5372 2019-07-17 Tom Tromey <tom@tromey.com>
5373
5374 * tui/tui-winsource.c (tui_clear_source_content)
5375 (tui_show_source_content, tui_show_exec_info_content)
5376 (tui_clear_exec_info_content): Update.
5377 * tui/tui-stack.c (tui_show_locator_content): Update.
5378 (tui_show_frame_info): Update.
5379 * tui/tui-source.h (tui_source_window): Don't declare.
5380 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
5381 from tui_source_is_displayed.
5382 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
5383 Remove field.
5384 (struct tui_source_window_base) <content_in_use>: New field. Now
5385 bool.
5386 (struct tui_source_window) <showing_source_p>: New method.
5387 (TUI_SRC_WIN): Change cast.
5388 * tui/tui-data.c (tui_initialize_static_data): Update.
5389
5390 2019-07-17 Tom Tromey <tom@tromey.com>
5391
5392 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
5393 location_matches_p.
5394 * tui/tui-source.c (tui_source_window::location_matches_p): New
5395 method.
5396 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
5397 method.
5398 * tui/tui-data.h (struct tui_source_window_base)
5399 <location_matches_p>: New method.
5400 (struct tui_source_window, struct tui_disasm_window)
5401 <location_matches_p>: Likewise.
5402
5403 2019-07-17 Tom Tromey <tom@tromey.com>
5404
5405 * tui/tui-win.c (tui_set_win_height_command): Rename from
5406 tui_set_win_height.
5407 (tui_set_win_height_command): Remove.
5408
5409 2019-07-17 Tom Tromey <tom@tromey.com>
5410
5411 * tui/tui-source.c (tui_source_window): New constructor. Add
5412 observer.
5413 (~tui_source_window): New destructor.
5414 (tui_source_window::style_changed): New method.
5415 * tui/tui-hooks.c (tui_redisplay_source): Remove.
5416 (tui_attach_detach_observers): Update.
5417 * tui/tui-data.h (struct tui_source_window): Make constructor not
5418 inline. Add destructor.
5419 (struct tui_source_window) <style_changed>: New method.
5420 <m_observable>: New member.
5421
5422 2019-07-17 Tom Tromey <tom@tromey.com>
5423
5424 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
5425 * tui/tui-win.c (tui_resize_all): Fix typo.
5426
5427 2019-07-17 Tom Tromey <tom@tromey.com>
5428
5429 * tui/tui-wingeneral.h (tui_refresh_all): Update.
5430 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
5431 (tui_refresh_all): Remove "list" parameter. Use foreach.
5432 * tui/tui-win.c (window_name_completer): Use foreach.
5433 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
5434 (update_tab_width): Likewise.
5435 * tui/tui-layout.c (show_layout): Update.
5436 * tui/tui-data.h (class tui_window_iterator): New.
5437 (struct all_tui_windows): New.
5438 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
5439
5440 2019-07-17 Tom Tromey <tom@tromey.com>
5441
5442 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
5443 parameter. Don't reference globals.
5444 (tui_reg_command): Update.
5445
5446 2019-07-17 Tom Tromey <tom@tromey.com>
5447
5448 * tui/tui-regs.c (tui_show_registers): Simplify.
5449
5450 2019-07-17 Tom Tromey <tom@tromey.com>
5451
5452 * tui/tui-regs.c (tui_show_registers): Update.
5453 (tui_show_register_group): Add win_info parameter.
5454
5455 2019-07-17 Tom Tromey <tom@tromey.com>
5456
5457 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
5458 Rename from tui_display_reg_element_at_line.
5459 (tui_data_window::display_registers_from_line): Update.
5460 * tui/tui-data.h (struct tui_data_window)
5461 <display_reg_element_at_line>: New method.
5462
5463 2019-07-17 Tom Tromey <tom@tromey.com>
5464
5465 * tui/tui-regs.h (tui_display_registers_from)
5466 (tui_display_registers_from_line): Don't declare.
5467 * tui/tui-windata.c (tui_data_window::display_all_data)
5468 (tui_data_window::refresh_all)
5469 (tui_data_window::do_scroll_vertical): Update.
5470 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
5471 from tui_display_registers_from.
5472 (tui_display_reg_element_at_line): Update.
5473 (tui_data_window::display_registers_from_line): Rename from
5474 tui_display_registers_from_line.
5475 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
5476 display_registers_from_line>: New methods.
5477
5478 2019-07-17 Tom Tromey <tom@tromey.com>
5479
5480 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
5481 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
5482 from tui_erase_data_content.
5483 (tui_data_window::display_all_data)
5484 (tui_data_window::refresh_all)
5485 (tui_data_window::do_scroll_vertical): Update.
5486 * tui/tui-regs.c (tui_show_registers): Update.
5487 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
5488 New method.
5489
5490 2019-07-17 Tom Tromey <tom@tromey.com>
5491
5492 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
5493 declare.
5494 * tui/tui-windata.c
5495 (tui_data_window::delete_data_content_windows): Rename from
5496 tui_delete_data_content_windows.
5497 (tui_data_window::display_all_data)
5498 (tui_data_window::do_scroll_vertical): Update.
5499 * tui/tui-data.h (struct tui_data_window)
5500 <delete_data_content_windows>: New method.
5501
5502 2019-07-17 Tom Tromey <tom@tromey.com>
5503
5504 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
5505 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
5506
5507 2019-07-17 Tom Tromey <tom@tromey.com>
5508
5509 * tui/tui-windata.h (tui_display_all_data): Don't declare.
5510 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
5511 from tui_display_all_data.
5512 * tui/tui-win.c
5513 (tui_data_window::do_make_visible_with_new_height): Update.
5514 * tui/tui-regs.c (tui_show_registers): Update.
5515 * tui/tui-layout.c (tui_set_layout): Update.
5516 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
5517 method.
5518
5519 2019-07-17 Tom Tromey <tom@tromey.com>
5520
5521 * tui/tui-windata.h (tui_display_data_from): Don't declare.
5522 * tui/tui-windata.c (tui_display_data_from): Remove.
5523 (tui_data_window::refresh_all): Update.
5524
5525 2019-07-17 Tom Tromey <tom@tromey.com>
5526
5527 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
5528 * tui/tui-windata.c (tui_display_data_from_line): Remove.
5529 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
5530 tui_display_registers_from_line.
5531 * tui/tui-regs.h (tui_display_registers_from_line): Update.
5532 * tui/tui-regs.c (tui_display_registers_from_line): Remove
5533 "force_display" parameter.
5534
5535 2019-07-17 Tom Tromey <tom@tromey.com>
5536
5537 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
5538 declare.
5539 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
5540 Rename from tui_first_reg_element_no_inline.
5541 (tui_display_reg_element_at_line)
5542 (tui_display_registers_from_line): Update.
5543 * tui/tui-data.h (struct tui_data_window)
5544 <first_reg_element_no_inline>: New method.
5545
5546 2019-07-17 Tom Tromey <tom@tromey.com>
5547
5548 * tui/tui-windata.c (tui_display_data_from)
5549 (tui_data_window::do_scroll_vertical): Update.
5550 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
5551 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
5552 Rename from tui_line_from_reg_element_no.
5553 (tui_display_registers_from_line): Update.
5554 * tui/tui-data.h (struct tui_data_window)
5555 <line_from_reg_element_no>: New method.
5556
5557 2019-07-17 Tom Tromey <tom@tromey.com>
5558
5559 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
5560 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
5561 tui_last_regs_line_no.
5562 (tui_display_reg_element_at_line)
5563 (tui_display_registers_from_line): Update.
5564 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
5565 method.
5566
5567 2019-07-17 Tom Tromey <tom@tromey.com>
5568
5569 PR tui/24722:
5570 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
5571 (tui_update_breakpoint_info): Add "being_deleted" parameter.
5572 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5573 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
5574 (tui_update_breakpoint_info): Likewise.
5575 * tui/tui-hooks.c (tui_event_create_breakpoint)
5576 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
5577 Update.
5578
5579 2019-07-17 Tom Tromey <tom@tromey.com>
5580
5581 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
5582
5583 2019-07-17 Tom Tromey <tom@tromey.com>
5584
5585 * tui/tui-winsource.c (tui_update_source_window_as_is)
5586 (tui_update_source_windows_with_addr): Update.
5587 * tui/tui-source.h (tui_set_source_content)
5588 (tui_show_symtab_source): Add "win_info" parameter.
5589 * tui/tui-source.c (tui_set_source_content): Add "win_info"
5590 parameter.
5591 (tui_show_symtab_source): Likewise.
5592
5593 2019-07-17 Tom Tromey <tom@tromey.com>
5594
5595 * tui/tui-wingeneral.c
5596 (tui_check_and_display_highlight_if_needed): Check can_highlight.
5597
5598 2019-07-17 Tom Tromey <tom@tromey.com>
5599
5600 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
5601 (struct tui_cmd_window) <can_scroll>: New method.
5602 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
5603 method.
5604
5605 2019-07-17 Tom Tromey <tromey@adacore.com>
5606
5607 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
5608 do_field_signed>: Rename. Change type of "value".
5609 * ui-out.c (ui_out::field_signed): Rename from field_int.
5610 Change type of "value".
5611 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
5612 type of "value".
5613 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
5614 do_field_int. Change type of "value".
5615 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
5616 do_field_int. Change type of "value".
5617 * tracepoint.c (trace_status_mi, tfind_1)
5618 (print_one_static_tracepoint_marker): Update.
5619 * thread.c (print_thread_info_1, print_selected_thread_frame):
5620 Update.
5621 * stack.c (print_frame, print_frame_info): Update.
5622 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
5623 Update.
5624 * source.c (print_source_lines_base): Update.
5625 * skip.c (info_skip_command): Update.
5626 * record-btrace.c (btrace_ui_out_decode_error)
5627 (btrace_call_history_src_line): Update.
5628 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
5629 Update.
5630 * progspace.c (print_program_space): Update.
5631 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
5632 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
5633 do_field_int. Change type of "value".
5634 * mi/mi-out.c (mi_ui_out::do_table_begin)
5635 (mi_ui_out::do_table_header): Update.
5636 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
5637 type of "value".
5638 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
5639 (mi_cmd_data_list_changed_registers, output_register)
5640 (mi_cmd_data_read_memory, mi_load_progress)
5641 (mi_cmd_trace_frame_collected): Update.
5642 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
5643 Update.
5644 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
5645 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
5646 (mi_cmd_var_list_children, varobj_update_one): Update.
5647 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
5648 (mi_cmd_stack_list_args, list_arg_or_local): Update.
5649 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
5650 * inferior.c (print_inferior): Update.
5651 * gdb_bfd.c (print_one_bfd): Update.
5652 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5653 Update.
5654 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
5655 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
5656 do_field_int. Change type of "value".
5657 * cli-out.c (cli_ui_out::do_field_signed): Rename from
5658 do_field_int. Change type of "value".
5659 * breakpoint.c (watchpoint_check, print_breakpoint_location)
5660 (print_one_breakpoint_location, print_it_catch_fork)
5661 (print_one_catch_fork, print_it_catch_vfork)
5662 (print_one_catch_vfork, print_it_catch_solib)
5663 (print_it_catch_exec, print_it_ranged_breakpoint)
5664 (print_mention_watchpoint, print_mention_masked_watchpoint)
5665 (bkpt_print_it, update_static_tracepoint): Update.
5666 * break-catch-throw.c (print_it_exception_catchpoint): Update.
5667 * break-catch-syscall.c (print_it_catch_syscall): Update.
5668 * ada-tasks.c (print_ada_task_info): Update.
5669 * ada-lang.c (print_it_exception, print_mention_exception):
5670 Update.
5671
5672 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
5673
5674 PR breakpoints/24541
5675 * gdbarch.c: Regenerate.
5676 * gdbarch.h: Regenerate.
5677 * gdbarch.sh: Adjust return type and parameter types for
5678 'stap_adjust_register'.
5679 (i386_stap_adjust_register): Adjust signature and return new
5680 register name.
5681 * stap-probe.c (stap_parse_register_operand): Adjust use of
5682 'gdbarch_stap_adjust_register'.
5683
5684 2019-07-17 Tom Tromey <tromey@adacore.com>
5685
5686 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
5687 declare VEC.
5688 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
5689 std::vector.
5690 (struct s390_process_info): Add initializers.
5691 (s390_add_process): Use new.
5692 (s390_linux_nat_target::low_forget_process): Use delete.
5693 (s390_linux_nat_target::low_new_fork)
5694 (s390_linux_nat_target::stopped_by_watchpoint)
5695 (s390_linux_nat_target::low_prepare_to_resume)
5696 (s390_linux_nat_target::insert_watchpoint)
5697 (s390_linux_nat_target::insert_hw_breakpoint)
5698 (s390_linux_nat_target::remove_watchpoint)
5699 (s390_linux_nat_target::remove_hw_breakpoint): Update.
5700
5701 2019-07-16 John Baldwin <jhb@FreeBSD.org>
5702
5703 * aarch64-fbsd-nat.c: Include regcache.h.
5704 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
5705 argument.
5706 (aarch64_fbsd_nat_target::fetch_registers)
5707 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
5708 variable.
5709 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
5710
5711 2019-07-16 John Baldwin <jhb@FreeBSD.org>
5712
5713 * fbsd-nat.c: Include gdbarch.h.
5714
5715 2019-07-15 Tom Tromey <tromey@adacore.com>
5716
5717 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
5718
5719 2019-07-15 Tom Tromey <tromey@adacore.com>
5720
5721 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
5722 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
5723 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
5724 * cli-out.c (cli_ui_out::do_field_int): New method.
5725 * ui-out.c (ui_out::field_unsigned): New method.
5726 * symfile.c (generic_load): Use field_unsigned.
5727 (print_transfer_performance): Likewise.
5728 * record-btrace.c (ui_out_field_uint): Remove.
5729 (btrace_call_history_insn_range, btrace_call_history): Use
5730 field_unsigned.
5731 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
5732 field_unsigned.
5733 * ui-out.h (class ui_out) <field_unsigned>: New method.
5734 <do_field_unsigned>: Likewise.
5735
5736 2019-07-15 Tom Tromey <tromey@adacore.com>
5737
5738 * mi/mi-main.c (list_available_thread_groups): Use field_string.
5739 * mi/mi-interp.c (mi_memory_changed): Use field_string.
5740 * target.c (flash_erase_command): Use field_string.
5741 * infrun.c (print_signal_received_reason): Use field_string.
5742 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
5743 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
5744 field_string.
5745 * ada-tasks.c (print_ada_task_info): Use field_string.
5746
5747 2019-07-15 Tom Tromey <tromey@adacore.com>
5748
5749 * target.c (flash_erase_command): Use field_core_addr.
5750 * symfile.c (generic_load): Use field_core_addr.
5751 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
5752 Use field_core_addr.
5753 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
5754 field_core_addr.
5755
5756 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5757
5758 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
5759 value if its desired type is smaller than a CORE_ADDR and signed.
5760
5761 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5762
5763 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
5764 of changes to field names, and use new is_reference field to
5765 decide if a property is a reference or not.
5766 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
5767 field.
5768 (struct dwarf2_property_baton): Update header comment, rename
5769 'referenced_type' to 'property_type' and update comments.
5770 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
5771 default property type, store in property baton, update to take
5772 accound of renamed field.
5773 (read_func_scope): Update call to attr_to_dynamic_prop.
5774 (read_array_type): Likewise.
5775 (dwarf2_per_cu_addr_sized_int_type): New function.
5776 (read_subrange_index_type): Move type finding code to
5777 dwarf2_per_cu_addr_sized_int_type.
5778 (read_subrange_type): Update calls to attr_to_dynamic_prop.
5779 (dwarf2_per_cu_addr_type): New function.
5780 (set_die_type): Update calls to attr_to_dynamic_prop.
5781
5782 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5783
5784 * dwarf2read.c (read_subrange_index_type): New function.
5785 (read_subrange_type): Move code into new function and call it.
5786 * gdbtypes.c (create_range_type): Add some asserts.
5787
5788 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5789
5790 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
5791 update return statements.
5792 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
5793 declaration, and update comment to match.
5794 * gdbtypes.c (resolve_dynamic_array): Update call to
5795 dwarf2_evaluate_property to match new return type.
5796
5797 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5798
5799 * valarith.c (value_subscripted_rvalue): Change lowerbound
5800 parameter type from int to LONGEST.
5801 * value.h (value_subscripted_rvalue): Likewise in declaration.
5802
5803 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5804
5805 * cli/cli-utils.c (info_print_command_completer): New function.
5806 * cli/cli-utils.h: Add 'completer.h' include, and forward
5807 declaration for 'struct cmd_list_element'.
5808 (info_print_command_completer): Declare.
5809 * stack.c (_initialize_stack): Add completer for 'info locals' and
5810 'info args'.
5811 * symtab.c (_initialize_symtab): Add completer for 'info
5812 variables' and 'info functions'.
5813 * NEWS: Mention completion for additional info commands.
5814
5815 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5816
5817 * cli/cli-utils.c (extract_info_print_args): Delete.
5818 (extract_arg_maybe_quoted): Delete.
5819 (info_print_options_defs): New variable.
5820 (make_info_print_options_def_group): New function.
5821 (extract_info_print_options): Define new function.
5822 * cli/cli-utils.h (extract_info_print_args): Delete.
5823 (struct info_print_options): New structure.
5824 (extract_info_print_options): Declare new function.
5825 * stack.c (info_locals_command): Update to use new
5826 extract_info_print_options, also add a header comment.
5827 (info_args_command): Likewise.
5828 * symtab.c (info_variables_command): Likewise.
5829 (info_functions_command): Likewise.
5830
5831 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5832
5833 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
5834 to extract string arguments.
5835 * common/common-utils.c (extract_string_maybe_quoted): New function.
5836 * common/common-utils.h (extract_string_maybe_quoted): Declare.
5837
5838 2019-07-11 Tom Tromey <tromey@adacore.com>
5839
5840 * main.c (get_init_files): Use GDBINIT, not gdbinit.
5841 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
5842 * top.h (gdbinit): Don't declare.
5843 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
5844 into...
5845 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
5846 * top.c (gdb_init): Don't call init_cli_cmds.
5847 (gdbinit): Remove.
5848 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
5849
5850 2019-07-11 Tom Tromey <tromey@adacore.com>
5851
5852 * python/py-inferior.c (add_thread_object): Don't use thread_obj
5853 after it has been moved.
5854
5855 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5856
5857 * valops.c (value_must_coerce_to_target): Change return type to
5858 bool.
5859 * value.h (value_must_coerce_to_target): Likewise.
5860
5861 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
5862
5863 * breakpoint.c (is_hardware_watchpoint): Remove
5864 forward-declaration.
5865 (is_masked_watchpoint): Change return type to bool.
5866 (is_tracepoint): Likewise.
5867 (is_breakpoint): Likewise.
5868 (is_hardware_watchpoint): Likewise.
5869 (is_watchpoint): Likewise.
5870 (is_no_memory_software_watchpoint): Likewise.
5871 (is_catchpoint): Likewise.
5872 (breakpoint_1): Make FILTER parameter's return type bool.
5873 is_masked_watchpoint): Change return type to bool.
5874 (save_breakpoints): Make FILTER parameter's return type bool.
5875 * breakpoint.h (is_breakpoint): Change return type to bool.
5876 (is_watchpoint): Likewise.
5877 (is_catchpoint): Likewise.
5878 (is_tracepoint): Likewise.
5879
5880 2019-07-10 Tom Tromey <tom@tromey.com>
5881
5882 * defs.h: Don't include gdbarch.h.
5883 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
5884 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
5885 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
5886 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
5887 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
5888 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
5889 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
5890 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
5891 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
5892 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
5893 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
5894 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
5895 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
5896 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
5897 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
5898 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
5899 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
5900 record-btrace.c, record.h, regcache-dump.c, regcache.h,
5901 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
5902 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
5903 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
5904 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
5905 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
5906 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
5907 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
5908 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
5909 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
5910
5911 2019-07-10 Tom Tromey <tromey@adacore.com>
5912
5913 * ada-lang.h (is_ada_exception_catchpoint): Declare.
5914 * breakpoint.c (init_ada_exception_breakpoint): Register as
5915 bp_catchpoint.
5916 (print_one_breakpoint_location, print_one_breakpoint): Use
5917 is_ada_exception_catchpoint.
5918 * ada-lang.c (class ada_catchpoint_location): Pass
5919 bp_loc_software_breakpoint to bp_location constructor.
5920 (is_ada_exception_catchpoint): New function.
5921
5922 2019-07-10 Tom Tromey <tromey@adacore.com>
5923
5924 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
5925 VEC.
5926 (struct arm_exidx_entry): New method operator<.
5927 (struct arm_exidx_data) <section_maps>: Change type.
5928 (arm_exidx_data_free): Remove.
5929 (arm_exidx_data_key): Change type. Move lower.
5930 (arm_exidx_new_objfile): Update.
5931 (arm_compare_exidx_entries): Remove.
5932 (arm_find_exidx_entry, _initialize_arm_tdep)
5933
5934 2019-07-10 Tom Tromey <tromey@adacore.com>
5935
5936 * solib-spu.c (ocl_program_data_key): Change type.
5937 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
5938 Update.
5939
5940 2019-07-10 Tom Tromey <tromey@adacore.com>
5941
5942 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
5943 (struct solib_aix_inferior_data) <library_list>: Change type.
5944 (solib_aix_inferior_data_handle): Change type.
5945 (get_solib_aix_inferior_data): Update.
5946 (solib_aix_free_library_list): Remove.
5947 (library_list_start_library): Update.
5948 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
5949 return type.
5950 (solib_aix_get_library_list)
5951 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
5952 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
5953
5954 2019-07-10 Tom Tromey <tromey@adacore.com>
5955
5956 * solib-dsbt.c (struct dsbt_info): Add initializers.
5957 (solib_dsbt_pspace_data): Change type.
5958 (dsbt_pspace_data_cleanup): Remove.
5959 (get_dsbt_info, _initialize_dsbt_solib): Update.
5960
5961 2019-07-10 Tom Tromey <tromey@adacore.com>
5962
5963 * spu-tdep.c (spu_overlay_data): Change type.
5964 (spu_get_overlay_table, spu_overlay_new_objfile)
5965 (_initialize_spu_tdep): Update.
5966
5967 2019-07-10 Tom Tromey <tromey@adacore.com>
5968
5969 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
5970 destructor.
5971 (dbx_objfile_data_key): Change type and declare later.
5972 (DBX_SYMFILE_INFO): Rewrite.
5973 * dbxread.c (dbx_objfile_data_key): Change type.
5974 (dbx_symfile_init): Update.
5975 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
5976 (coffstab_build_psymtabs, elfstab_build_psymtabs)
5977 (stabsect_build_psymtabs, _initialize_dbxread): Update.
5978
5979 2019-07-10 Tom Tromey <tromey@adacore.com>
5980
5981 * jit.c (jit_program_space_key): Change type. Move lower.
5982 (get_jit_program_space_data): Update.
5983 (jit_program_space_data_cleanup): Remove.
5984 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
5985 Update.
5986 (struct jit_program_space_data): Add initializers.
5987
5988 2019-07-10 Tom Tromey <tromey@adacore.com>
5989
5990 * solib-darwin.c (struct darwin_info): Add initializers.
5991 (solib_darwin_pspace_data): Change type.
5992 (darwin_pspace_data_cleanup): Remove.
5993 (get_darwin_info, _initialize_darwin_solib): Update.
5994
5995 2019-07-10 Tom Tromey <tromey@adacore.com>
5996
5997 * remote-sim.c (struct sim_inferior_data): Add initializers,
5998 constructor, and destructor.
5999 (sim_inferior_data_key): Change type. Move lower.
6000 (check_for_duplicate_sim_descriptor): Update.
6001 (get_sim_inferior_data): Use new. Update.
6002 (~sim_inferior_data_cleanup): Rename from
6003 sim_inferior_data_cleanup. Simplify.
6004 (gdbsim_close_inferior, simulator_command)
6005 (sim_command_completer, _initialize_remote_sim): Update.
6006 (next_pid, INITIAL_PID): Move earlier.
6007
6008 2019-07-10 Tom Tromey <tromey@adacore.com>
6009
6010 * python/python-internal.h (create_thread_object): Return
6011 gdbpy_ref.
6012 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
6013 * python/py-inferior.c (struct threadlist_entry): Add
6014 constructor.
6015 <thread_obj>: Now a gdbpy_ref.
6016 (thread_to_thread_object): Update.
6017 (add_thread_object): Use new.
6018 (delete_thread_object): Use delete.
6019 (infpy_threads): Update.
6020 (py_free_inferior): Update. Construct "inf_obj" after acquiring
6021 GIL.
6022
6023 2019-07-10 Tom Tromey <tromey@adacore.com>
6024
6025 * valops.c (value_cast): Specialize error message for Ada.
6026
6027 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6028
6029 * breakpoint.c (breakpoint_1): Update doc and parameter names.
6030
6031 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6032
6033 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
6034 bpstat_should_step): Return bool, adjust comments.
6035 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
6036 bpstat_should_step): Likewise.
6037
6038 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6039
6040 * features/Makefile: Use feature target descriptions for Arm.
6041 * features/arm/arm-core.c: Generate new file.
6042 * features/arm/arm-fpa.c: Likewise.
6043 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
6044 * features/arm/arm-m-profile.c: Likewise.
6045 * features/arm/arm-vfpv2.c: Likewise.
6046 * features/arm/arm-vfpv3.c: Likewise.
6047 * features/arm/xscale-iwmmxt.c: Likewise.
6048 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
6049
6050 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6051
6052 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
6053 ptrace earlier.
6054
6055 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6056
6057 * features/aarch64-pauth.c: Regenerate.
6058
6059 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
6060
6061 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
6062 bool.
6063 (bpstat_what): Use false instead of 0.
6064
6065 2019-07-09 Pedro Alves <palves@redhat.com>
6066
6067 * break-catch-throw.c (is_exception_catchpoint): New.
6068 * breakpoint.c (print_one_breakpoint_location): New parameter
6069 'raw_loc'. Handle it. Use
6070 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
6071 looking at the breakpoint's type.
6072 (print_one_breakpoint): If handling "maint info breakpoints", also
6073 print locations of exception catchpoints.
6074 * breakpoint.h (is_exception_catchpoint): Declare.
6075
6076 2019-07-09 Pedro Alves <palves@redhat.com>
6077
6078 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
6079 "addr" field.
6080 (allocate_location_exception_catchpoint): New.
6081 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
6082 (initialize_throw_catchpoint_ops): Install
6083 allocate_location_exception_catchpoint as allocate_location
6084 method.
6085 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
6086 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
6087 bp_loc_other.
6088 (breakpoint_address_is_meaningful): Delete.
6089 (bl_address_is_meaningful): New.
6090 (breakpoint_locations_match): Adjust comment.
6091 (bp_location_from_bp_type): New, factored out of...
6092 (bp_location::bp_location(breakpoint *)): ... this.
6093 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
6094 factored out of...
6095 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
6096 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
6097 breakpoint_address_is_meaningful.
6098 (bp_locations_compare): Adjust comment.
6099 (update_global_location_list): Use bl_address_is_meaningful
6100 instead of breakpoint_address_is_meaningful.
6101 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
6102 explicit.
6103 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
6104 * python/py-breakpoint.c (bppy_get_location): No longer check
6105 whether location is null.
6106
6107 2019-07-09 Pedro Alves <palves@redhat.com>
6108
6109 PR c++/15468
6110 * breakpoint.c (print_one_breakpoint_location): Remove
6111 single-location assert.
6112
6113 2019-07-09 Tom Tromey <tom@tromey.com>
6114
6115 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
6116 * configure: Rebuild.
6117 * configure.ac: Change common to gdbsupport.
6118 * gdbsupport: Rename from common.
6119 * acinclude.m4: Change common to gdbsupport.
6120 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
6121 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
6122 gdbsupport.
6123 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
6124 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
6125 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
6126 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
6127 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
6128 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
6129 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
6130 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
6131 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
6132 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
6133 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
6134 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
6135 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
6136 coff-pe-read.c, command.h, compile/compile-c-support.c,
6137 compile/compile-c.h, compile/compile-cplus-symbols.c,
6138 compile/compile-cplus-types.c, compile/compile-cplus.h,
6139 compile/compile-loc2c.c, compile/compile.c, completer.c,
6140 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
6141 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
6142 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
6143 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
6144 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
6145 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
6146 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
6147 features/aarch64-core.c, features/aarch64-fpu.c,
6148 features/aarch64-pauth.c, features/aarch64-sve.c,
6149 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
6150 features/i386/32bit-core.c, features/i386/32bit-linux.c,
6151 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
6152 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
6153 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
6154 features/i386/64bit-core.c, features/i386/64bit-linux.c,
6155 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
6156 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
6157 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
6158 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
6159 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
6160 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
6161 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
6162 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
6163 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
6164 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
6165 go32-nat.c, guile/guile.c, guile/scm-ports.c,
6166 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
6167 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
6168 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
6169 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
6170 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
6171 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
6172 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
6173 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
6174 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
6175 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
6176 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
6177 minsyms.c, mips-linux-tdep.c, namespace.h,
6178 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
6179 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
6180 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
6181 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
6182 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
6183 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
6184 nat/linux-waitpid.c, nat/mips-linux-watch.c,
6185 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
6186 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
6187 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
6188 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
6189 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
6190 procfs.c, producer.c, progspace.h, psymtab.h,
6191 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
6192 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
6193 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
6194 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
6195 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
6196 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
6197 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
6198 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
6199 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
6200 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
6201 target-memory.c, target.c, target.h, target/waitstatus.c,
6202 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
6203 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
6204 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
6205 unittests/array-view-selftests.c,
6206 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
6207 unittests/common-utils-selftests.c,
6208 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
6209 unittests/format_pieces-selftests.c,
6210 unittests/function-view-selftests.c,
6211 unittests/lookup_name_info-selftests.c,
6212 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
6213 unittests/mkdir-recursive-selftests.c,
6214 unittests/observable-selftests.c,
6215 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
6216 unittests/parse-connection-spec-selftests.c,
6217 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
6218 unittests/scoped_fd-selftests.c,
6219 unittests/scoped_mmap-selftests.c,
6220 unittests/scoped_restore-selftests.c,
6221 unittests/string_view-selftests.c, unittests/style-selftests.c,
6222 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
6223 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
6224 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
6225 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
6226 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
6227 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
6228
6229 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6230
6231 * linespec.c (decode_digits_list_mode): Set explicit_line to a
6232 bool value.
6233 (decode_digits_ordinary): Set explicit_line field in sal.
6234 * symtab.c (skip_prologue_sal): Don't skip prologue for a
6235 symtab_and_line that was set on an explicit line number in
6236 assembler code. Do always update the recorded symtab and line if
6237 we do skip the prologue.
6238
6239 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6240
6241 * breakpoint.c (set_breakpoint_location_function): Remove
6242 explicit_loc parameter.
6243 (momentary_breakpoint_from_master): Update call to
6244 set_breakpoint_location_function.
6245 (add_location_to_breakpoint): Likewise.
6246
6247 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6248
6249 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
6250 required features based on default bfd type when no specific bfd
6251 is present.
6252
6253 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6254
6255 * NEWS: Mention that GDB printf and eval commands can now print
6256 C-style and Ada-style convenience var strings without
6257 calling the inferior.
6258 * printcmd.c (printf_c_string): Locally print GDB internal var
6259 instead of transiting via the inferior.
6260 (printf_wide_c_string): Likewise.
6261
6262 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6263
6264 PR breakpoints/25011
6265 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
6266
6267 2019-07-04 Tom Tromey <tom@tromey.com>
6268
6269 PR tui/24724:
6270 * tui/tui-winsource.c (tui_clear_source_content): Update.
6271 (tui_source_window_base::set_is_exec_point_at): Fix comment.
6272 (tui_update_breakpoint_info): Update.
6273 (tui_set_exec_info_content): Update.
6274 * tui/tui-source.c (tui_set_source_content_nil): Update.
6275 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
6276 has_break.
6277 * tui/tui-data.h (enum tui_bp_flag): New.
6278 (tui_bp_flags): New enum flags type.
6279 (struct tui_source_element) <break_mode>: Change type. Rename
6280 from has_break.
6281 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
6282 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
6283 constants.
6284 * tui/tui-winsource.h: Fix comment.
6285
6286 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6287
6288 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
6289 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
6290 (store_fpregs_to_thread)
6291 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6292 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
6293 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
6294 (IWMMXT_REGS_SIZE): Add define.
6295 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
6296 (fetch_vfp_regs, store_vfp_regs)
6297 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6298 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
6299
6300 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6301
6302 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
6303 defines.
6304 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
6305 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
6306 (ARM_INT_REGISTER_SIZE): ...to this.
6307 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
6308 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
6309 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
6310 (arm_linux_collect_gregset, supply_nwfpe_register)
6311 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
6312 defines.
6313 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
6314 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
6315 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
6316 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
6317 (arm_return_in_memory, arm_store_return_value)
6318 (arm_get_longjmp_target, arm_register_g_packet_guesses)
6319 (arm_record_ld_st_multiple): Likewise.
6320 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
6321 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
6322
6323 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6324
6325 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
6326 AARCH64_DISPLACED_MODIFIED_INSNS.
6327 * aarch64-tdep.c (struct aarch64_displaced_step_data)
6328 (aarch64_displaced_step_copy_insn): Likewise.
6329 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
6330 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
6331 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
6332 ARM_DISPLACED_MODIFIED_INSNS.
6333 * arm-tdep.c (arm_gdbarch_init): Likewise.
6334 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
6335 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
6336 (struct arm_displaced_step_closure): Use
6337 ARM_DISPLACED_MODIFIED_INSNS.
6338
6339 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6340
6341 * features/Makefile: Remove unused xml files.
6342 * features/aarch64.xml: Remove.
6343 * features/i386/amd64-avx-avx512-linux.xml: Remove.
6344 * features/i386/amd64-avx-avx512.xml: Remove.
6345 * features/i386/amd64-avx-linux.xml: Remove.
6346 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
6347 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
6348 * features/i386/amd64-avx-mpx-linux.xml: Remove.
6349 * features/i386/amd64-avx-mpx.xml: Remove.
6350 * features/i386/amd64-avx.xml: Remove.
6351 * features/i386/amd64-linux.xml: Remove.
6352 * features/i386/amd64-mpx-linux.xml: Remove.
6353 * features/i386/amd64-mpx.xml: Remove.
6354 * features/i386/amd64.xml: Remove.
6355 * features/i386/i386-avx-avx512-linux.xml: Remove.
6356 * features/i386/i386-avx-avx512.xml: Remove.
6357 * features/i386/i386-avx-linux.xml: Remove.
6358 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
6359 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
6360 * features/i386/i386-avx-mpx-linux.xml: Remove.
6361 * features/i386/i386-avx-mpx.xml: Remove.
6362 * features/i386/i386-avx.xml: Remove.
6363 * features/i386/i386-linux.xml: Remove.
6364 * features/i386/i386-mmx-linux.xml: Remove.
6365 * features/i386/i386-mmx.xml: Remove.
6366 * features/i386/i386-mpx-linux.xml: Remove.
6367 * features/i386/i386-mpx.xml: Remove.
6368 * features/i386/i386.xml: Remove.
6369 * features/i386/x32-avx-avx512-linux.xml: Remove.
6370 * features/i386/x32-avx-linux.xml: Remove.
6371 * features/i386/x32-linux.xml: Remove.
6372
6373 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6374
6375 * regformats/aarch64.dat: Remove.
6376 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
6377 * regformats/i386/amd64-avx-linux.dat: Remove.
6378 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
6379 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
6380 * regformats/i386/amd64-linux.dat: Remove.
6381 * regformats/i386/amd64-mpx-linux.dat: Remove.
6382 * regformats/i386/amd64.dat: Remove.
6383 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
6384 * regformats/i386/i386-avx-linux.dat: Remove.
6385 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
6386 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
6387 * regformats/i386/i386-linux.dat: Remove.
6388 * regformats/i386/i386-mmx-linux.dat: Remove.
6389 * regformats/i386/i386-mpx-linux.dat: Remove.
6390 * regformats/i386/i386.dat: Remove.
6391 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
6392 * regformats/i386/x32-avx-linux.dat: Remove.
6393 * regformats/i386/x32-linux.dat: Remove.
6394
6395 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6396
6397 * aarch64-tdep.c: Remove xml self tests.
6398 * amd64-linux-tdep.c: Likewise.
6399 * amd64-tdep.c: Likewise.
6400 * i386-linux-tdep.c: Likewise.
6401 * i386-tdep.c: Likewise.
6402
6403 2019-07-03 Pedro Alves <palves@redhat.com>
6404
6405 PR cli/24732
6406 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
6407 (pipe_cmd_option_defs): New.
6408 (make_pipe_cmd_options_def_group): New.
6409 (pipe_command): Use gdb::option::process_options.
6410 (pipe_command_completer): New function.
6411 (_initialize_cli_cmds): Install completer for "pipe" command.
6412
6413 2019-07-03 Pedro Alves <palves@redhat.com>
6414
6415 * cli/cli-option.c (union option_value) <string>: New field.
6416 (struct option_def_and_value): Add ctor, move ctor, dtor and
6417 use DISABLE_COPY_AND_ASSIGN.
6418 (option_def_and_value::clear_value): New.
6419 (parse_option, save_option_value_in_ctx, get_val_type_str)
6420 (add_setshow_cmds_for_options): Handle var_string.
6421 * cli-option.h (union option_def::var_address) <string>: New
6422 field.
6423 (struct string_option_def): New.
6424 * maint-test-options.c (struct test_options_opts): Add default
6425 ctor and use DISABLE_COPY_AND_ASSIGN.
6426 <string_opt>: New field.
6427 (test_options_opts::~test_options_opts): New.
6428 (test_options_opts::dump): Also dump "-string".
6429 (test_options_option_defs): Install "string.
6430
6431 2019-07-03 Pedro Alves <palves@redhat.com>
6432
6433 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
6434 option_value with a null enumeration.
6435 (complete_options): Save the option values in the context.
6436 (save_option_value_in_ctx): New, factored out from ...
6437 (process_options): ... here.
6438 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
6439 of the function.
6440 * maint-test-options.c (test_options_opts::dump): New, factored
6441 out from ...
6442 (maintenance_test_options_command_mode): ... here.
6443 (maintenance_test_options_command_completion_result): Delete.
6444 (maintenance_test_options_command_completion_text): Update
6445 comment.
6446 (maintenance_show_test_options_completion_result): Change
6447 prototype. Just print
6448 maintenance_test_options_command_completion_text.
6449 (save_completion_result): New.
6450 (maintenance_test_options_completer_mode): Pass options context to
6451 complete_options, and then save a dump.
6452 (_initialize_maint_test_options): Use add_cmd to install "maint
6453 show test-options-completion-result".
6454
6455 2019-07-03 Pedro Alves <palves@redhat.com>
6456
6457 * NEWS (New commands): Mention "with" and "maint with".
6458 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
6459 (with_command, with_command_completer): New.
6460 (pipe_command): Adjust to new repeat_previous
6461 interface.
6462 (_initialize_cli_cmds): Install the "with" command and its "w"
6463 alias.
6464 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
6465 declarations.
6466 * cli/cli-setshow.c (parse_cli_var_uinteger)
6467 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
6468 argument strings for all var_types.
6469 (get_setshow_command_value_string): New, factored out from ...
6470 (do_show_command): ... this.
6471 * cli/cli-setshow.h: Include <string>.
6472 (get_setshow_command_value_string): Declare.
6473 * command.h (repeat_previous): Now returns const char *. Adjust
6474 comment.
6475 * maint.c: Include "cli/cli-cmds.h".
6476 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
6477 (_initialize_maint_cmds): Register the "maintenance with" command.
6478 * top.c (repeat_previous): Move bits from pipe_command here:
6479 Return the saved command line, if any; error out if there's no
6480 command to relaunch.
6481
6482 2019-07-03 Pedro Alves <palves@redhat.com>
6483
6484 * NEWS (New commands): Mention "maint set/show test-settings"
6485 instead of "maint test-settings".
6486 * maint-test-settings.c (maintenance_test_settings_list): Delete.
6487 (maintenance_test_settings_set_list): Rename to ...
6488 (maintenance_set_test_settings_list): ... this.
6489 (maintenance_test_settings_show_list): Rename to ...
6490 (maintenance_show_test_settings_list): ... this.
6491 (maintenance_test_settings_cmd): Delete.
6492 (maintenance_test_settings_set_cmd): ...
6493 (maintenance_set_test_settings_cmd): ... this.
6494 (maintenance_test_settings_show_cmd): ...
6495 (maintenance_show_test_settings_cmd): ... this.
6496 (maintenance_test_settings_show_value_cmd):
6497 (maintenance_show_test_settings_value_cmd): ... this.
6498 (_initialize_maint_test_settings): No longer install the "maint
6499 test-settings" prefix command. Rename "maint test-settings set"
6500 to "maint set test-settings", and "maint test-settings show" to
6501 "maint show test-settings". Adjust all subcommands.
6502
6503 2019-07-03 Pedro Alves <palves@redhat.com>
6504
6505 * maint-test-settings.c: Fix file's intro comment. Replace all
6506 references to "test-options" with references to "test-settings",
6507 in comments.
6508
6509 2019-07-03 Pedro Alves <palves@redhat.com>
6510
6511 * maint-test-settings.c (maintenance_test_settings_xxx)
6512 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
6513 New.
6514 (maintenance_test_settings_enums): Use them.
6515 (maintenance_test_settings_enum): Default to
6516 maintenance_test_settings_xxx.
6517 (_initialize_maint_test_settings): Initialize
6518 MAINTENANCE_TEST_SETTINGS_FILENAME.
6519
6520 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6521
6522 * breakpoint.h (remove_breakpoints_inf): Change return type to
6523 void, move function documentation here.
6524 * breakpoint.c (remove_breakpoints_inf): Change return type to
6525 void, move function documentation to header.
6526
6527 2019-07-02 Pedro Alves <palves@redhat.com>
6528
6529 * NEWS (Completion improvements): Mention "info threads".
6530 * thread.c (struct info_threads_opts, info_threads_option_defs)
6531 (make_info_threads_options_def_group): New.
6532 (info_threads_command): Use gdb::option::process_options.
6533 (info_threads_command_completer): New.
6534 (_initialize_thread): Use gdb::option::build_help to build the
6535 help text for "info threads".
6536
6537 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6538
6539 * defs.h (generic_load): Move from here...
6540 * symfile.h (generic_load): ... to here. Rename name parameter
6541 to args.
6542 * symfile.c (generic_load): Add comment.
6543
6544 2019-07-01 Tom Tromey <tromey@adacore.com>
6545
6546 * dwarf2read.c
6547 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
6548 declaration of without_params. Fix formatting.
6549
6550 2019-07-01 Tom Tromey <tromey@adacore.com>
6551
6552 * ada-exp.y (find_primitive_type): Update.
6553 * ada-lang.h (ada_lookup_symbol): Update.
6554 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
6555 parameter.
6556 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
6557
6558 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
6559
6560 PR breakpoints/24541
6561 * gdbarch.c: Regenerate.
6562 * gdbarch.h: Regenerate.
6563 * gdbarch.sh: Add 'stap_adjust_register'.
6564 * i386-tdep.c: Include '<unordered_set>'.
6565 (i386_stap_adjust_register): New function.
6566 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
6567 * stap-probe.c (stap_parse_register_operand): Call
6568 'gdbarch_stap_adjust_register'.
6569
6570 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
6571
6572 PR python/24742
6573 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
6574 * python/python.c (do_start_initialization): Use 'xmalloc'
6575 instead of 'PyMem_Malloc'.
6576
6577 2019-06-28 Tom Tromey <tromey@adacore.com>
6578
6579 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
6580 for Ada.
6581
6582 2019-06-27 Tom Tromey <tromey@adacore.com>
6583
6584 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
6585 objfile_key.
6586 (arm_find_mapping_symbol, arm_record_special_symbol)
6587 (_initialize_arm_tdep): Update.
6588 (arm_objfile_data_free): Remove.
6589
6590 2019-06-27 Tom Tromey <tromey@adacore.com>
6591
6592 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
6593 to cp_print_static_field.
6594
6595 2019-06-26 Tom Tromey <tromey@adacore.com>
6596
6597 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
6598 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
6599 declare.
6600
6601 2019-06-26 Alan Hayward <alan.hayward@arm.com>
6602
6603 * features/aarch64-core.c (create_feature_aarch64_core):
6604 Regenerate.
6605 * features/aarch64-core.xml: Add cpsr flags.
6606
6607 2019-06-26 Alan Hayward <alan.hayward@arm.com>
6608
6609 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
6610 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
6611
6612 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
6613
6614 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
6615 field.
6616 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
6617 use.
6618 (arm_record_special_symbol): Don't insert new symbol in sorted
6619 position, push it at the end.
6620
6621 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
6622
6623 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
6624 (arm_mapping_symbol_s): Remove.
6625 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
6626 (arm_mapping_symbol_vec): New typedef.
6627 (struct arm_per_objfile): Add constructor.
6628 <section_maps>: Change type to
6629 std::unique_ptr<arm_mapping_symbol_vec[]>.
6630 (arm_compare_mapping_symbols): Remove.
6631 (arm_find_mapping_symbol): Adjust to section_maps type change.
6632 (arm_objfile_data_free): Call delete on arm_per_objfile.
6633 (arm_record_special_symbol): Adjust to section_maps type change.
6634 Allocate arm_per_objfile with new.
6635
6636 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6637
6638 * cli/cli-cmds.c (alias_command): Compare the alias prefix
6639 with the command prefix.
6640
6641 2019-06-25 Tom Tromey <tom@tromey.com>
6642
6643 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
6644 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
6645
6646 2019-06-25 Tom Tromey <tom@tromey.com>
6647
6648 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
6649 type.
6650 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
6651 protected.
6652
6653 2019-06-25 Tom Tromey <tom@tromey.com>
6654
6655 * tui/tui-winsource.c
6656 (tui_source_window_base::set_is_exec_point_at): Add check against
6657 LOA_ADDRESS.
6658
6659 2019-06-25 Tom Tromey <tom@tromey.com>
6660
6661 * tui/tui-source.c (tui_set_source_content): Don't check before
6662 xfree.
6663 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
6664
6665 2019-06-25 Tom Tromey <tom@tromey.com>
6666
6667 * tui/tui-winsource.h (tui_update_source_window_as_is)
6668 (tui_alloc_source_buffer, tui_line_is_displayed)
6669 (tui_addr_is_displayed): Change type of win_info.
6670 * tui/tui-winsource.c (tui_update_source_window_as_is)
6671 (tui_clear_source_content, tui_show_source_line)
6672 (tui_show_source_content, tui_source_window_base::refill)
6673 (tui_source_window_base::set_is_exec_point_at)
6674 (tui_source_window_base::set_is_exec_point_at)
6675 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
6676 (tui_alloc_source_buffer, tui_line_is_displayed)
6677 (tui_addr_is_displayed): Change type of win_info. Update.
6678 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6679 (tui_source_window_base::do_make_visible_with_new_height):
6680 Update.
6681 * tui/tui-source.c (tui_set_source_content)
6682 (tui_set_source_content_nil)
6683 (tui_source_window::do_scroll_vertical): Update.
6684 * tui/tui-layout.c (show_layout): Update.
6685 * tui/tui-disasm.c (tui_set_disassem_content)
6686 (tui_disasm_window::do_scroll_vertical): Update.
6687 * tui/tui-data.h (tui_win_content): Remove.
6688 (struct tui_gen_win_info) <content, content_size>: Remove.
6689 (struct tui_source_element): Add initializers and destructor.
6690 (union tui_which_element, struct tui_win_element): Remove.
6691 (struct tui_source_window_base) <content>: New field.
6692 (struct tui_data_window): Remove destructor.
6693 (tui_alloc_content, tui_free_win_content)
6694 (tui_free_all_source_wins_content): Don't declare.
6695 * tui/tui-data.c (tui_initialize_static_data): Update.
6696 (init_content_element, tui_alloc_content): Remove.
6697 (~tui_gen_win_info): Update.
6698 (~tui_data_window, tui_free_all_source_wins_content)
6699 (tui_free_win_content, free_content, free_content_elements):
6700 Remove.
6701
6702 2019-06-25 Tom Tromey <tom@tromey.com>
6703
6704 * tui/tui-winsource.h (tui_clear_source_content)
6705 (tui_erase_source_content, tui_show_source_content): Change type
6706 of win_info.
6707 * tui/tui-winsource.c (tui_clear_source_content)
6708 (tui_erase_source_content, tui_show_source_content): Change type
6709 of win_info.
6710 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
6711 * tui/tui-source.h (tui_set_source_content_nil): Change type of
6712 win_info.
6713 * tui/tui-source.c (tui_set_source_content_nil): Change type of
6714 win_info.
6715 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
6716
6717 2019-06-25 Tom Tromey <tom@tromey.com>
6718
6719 * tui/tui-winsource.c (tui_clear_source_content)
6720 (tui_source_window_base::set_is_exec_point_at): Update.
6721 * tui/tui-source.c (tui_set_source_content_nil): Update.
6722 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
6723 a bool.
6724 * tui/tui-data.c (init_content_element): Update.
6725
6726 2019-06-25 Tom Tromey <tom@tromey.com>
6727
6728 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
6729 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
6730 * tui/tui-layout.c (init_and_make_win): Update.
6731 * tui/tui.h (enum tui_win_type): Update.
6732 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
6733 tui_win_is_auxillary.
6734 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
6735 tui_win_is_auxillary.
6736
6737 2019-06-25 Tom Tromey <tom@tromey.com>
6738
6739 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
6740 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
6741 (tui_delete_data_content_windows, tui_display_all_data)
6742 (tui_data_window::do_scroll_vertical, tui_display_data_from):
6743 Update.
6744 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
6745 * tui/tui-regs.c (tui_last_regs_line_no)
6746 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
6747 (tui_show_registers): Update.
6748 (tui_show_register_group): Return void. Update.
6749 (tui_display_registers_from, tui_display_reg_element_at_line)
6750 (tui_display_registers_from_line, tui_check_register_values):
6751 Update.
6752 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
6753 member.
6754 (struct tui_data_window) <regs_content>: Now a std::vector.
6755 <regs_content_count>: Remove.
6756 (tui_add_content_elements, tui_free_data_content): Don't declare.
6757 * tui/tui-data.c (tui_data_window::clear_detail): Update.
6758 (init_content_element): Remove DATA_WIN case. Add assert.
6759 (tui_add_content_elements): Remove.
6760 (tui_data_window): Update.
6761 (tui_free_data_content): Remove.
6762 (free_content_elements): Remove DATA_WIN case.
6763
6764 2019-06-25 Tom Tromey <tom@tromey.com>
6765
6766 * tui/tui-data.c (tui_data_item_window): Update.
6767 * tui/tui-windata.h (tui_check_data_values): Don't declare.
6768 * tui/tui-windata.c (tui_display_all_data)
6769 (tui_display_data_from_line): Update.
6770 (tui_check_data_values): Remove.
6771 * tui/tui-regs.c (tui_show_register_group)
6772 (tui_display_reg_element_at_line): Update.
6773 * tui/tui-hooks.c (tui_register_changed)
6774 (tui_refresh_frame_and_register_information): Call
6775 tui_check_register_values.
6776 * tui/tui-data.h (struct tui_data_window) <data_content,
6777 data_content_count, data_type>: Remove.
6778 (enum tui_data_type): Remove.
6779
6780 * tui/tui-data.c (tui_data_window::clear_detail)
6781 (~tui_data_window): Update.
6782
6783 2019-06-25 Tom Tromey <tom@tromey.com>
6784
6785 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
6786 declare.
6787 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
6788 Rename from tui_first_data_item_displayed. Update.
6789 (tui_data_window::refresh_all)
6790 (tui_data_window::do_scroll_vertical): Update.
6791 * tui/tui-data.h (struct tui_data_window)
6792 <first_data_item_displayed>: Declare new method.
6793
6794 2019-06-25 Tom Tromey <tom@tromey.com>
6795
6796 * tui/tui-data.h (tui_init_generic_part): Don't declare.
6797 * tui/tui-data.c (tui_init_generic_part): Remove, moving
6798 contents...
6799 (tui_initialize_static_data): ...here.
6800
6801 2019-06-25 Tom Tromey <tom@tromey.com>
6802
6803 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
6804 (tui_display_registers_from, tui_check_register_values): Update.
6805 (tui_display_register): Remove win_info parameter; update.
6806 (tui_get_register): Change type of parameters.
6807 * tui/tui-data.h (struct tui_data_element): Remove.
6808 (union tui_which_element) <data>: Remove.
6809 <data_window>: Change type.
6810 (struct tui_data_item_window): New.
6811 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
6812 case. Add assert.
6813 (~tui_data_item_window): New destructor.
6814 (free_content_elements): Remove DATA_ITEM_WIN case.
6815
6816 2019-06-25 Tom Tromey <tom@tromey.com>
6817
6818 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
6819 Remove.
6820
6821 2019-06-25 Tom Tromey <tom@tromey.com>
6822
6823 * tui/tui-data.h (struct tui_command_element): Remove.
6824 (union tui_which_element) <command>: Remove.
6825 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
6826 assert.
6827 (free_content_elements): Remove CMD_WIN case.
6828
6829 2019-06-25 Tom Tromey <tom@tromey.com>
6830
6831 * tui/tui-layout.c (tui_set_layout): Update.
6832 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
6833 * tui/tui-data.c (layout_def): Update.
6834
6835 2019-06-25 Tom Tromey <tom@tromey.com>
6836
6837 * tui/tui-wingeneral.c (tui_refresh_all): Update.
6838 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6839 (tui_source_window_base::set_new_height): Update.
6840 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
6841 Update.
6842 (tui_set_locator_fullname, tui_set_locator_info)
6843 (tui_show_frame_info): Update.
6844 * tui/tui-source.c (tui_set_source_content)
6845 (tui_source_is_displayed): Update.
6846 * tui/tui-layout.c (show_source_disasm_command, show_data)
6847 (show_source_or_disasm_and_command): Update.
6848 * tui/tui-disasm.c (tui_set_disassem_content)
6849 (tui_get_begin_asm_address): Update.
6850 * tui/tui-data.h (struct tui_locator_element): Remove.
6851 (union tui_which_element) <locator>: Remove.
6852 (struct tui_locator_window): New.
6853 (tui_locator_win_info_ptr): Change return type.
6854 * tui/tui-data.c (_locator): Change type.
6855 (tui_locator_win_info_ptr): Change return type.
6856 (init_content_element): Remove LOCATOR_WIN case. Add assert.
6857 (tui_alloc_content): Add assert.
6858
6859 2019-06-25 Tom Tromey <tom@tromey.com>
6860
6861 * tui/tui-winsource.c
6862 (tui_exec_info_window::maybe_allocate_content): New method.
6863 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
6864 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
6865 (make_source_or_disasm_window): Add cast.
6866 * tui/tui-data.h (union tui_which_element) <simple_string>:
6867 Remove.
6868 (struct tui_source_info): New.
6869 (struct tui_source_window_base) <execution_info>: Change type.
6870 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
6871 case, and add assert.
6872 (tui_alloc_content): Add assert.
6873
6874 2019-06-25 Tom Tromey <tom@tromey.com>
6875
6876 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
6877 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
6878 * tui/tui-data.c (tui_alloc_win_info): Remove.
6879
6880 2019-06-25 Tom Tromey <tom@tromey.com>
6881
6882 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
6883 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
6884 can_highlight.
6885
6886 2019-06-25 Tom Tromey <tom@tromey.com>
6887
6888 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
6889 make_visible_with_new_height method.
6890 (tui_win_info::make_visible_with_new_height): New method.
6891 (tui_source_window_base::do_make_visible_with_new_height)
6892 (tui_data_window::do_make_visible_with_new_height)
6893 (tui_cmd_window::do_make_visible_with_new_height): New methods.
6894 (make_visible_with_new_height): Remove.
6895 (tui_resize_all, tui_adjust_win_heights): Use
6896 make_visible_with_new_height method.
6897 * tui/tui-data.h (struct tui_win_info)
6898 <do_make_visible_with_new_height, make_visible_with_new_height>:
6899 New methods.
6900 (struct tui_source_window_base, struct tui_data_window)
6901 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
6902 methods.
6903
6904 2019-06-25 Tom Tromey <tom@tromey.com>
6905
6906 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
6907 method.
6908 (update_tab_width): Call update_tab_width method.
6909 * tui/tui-data.h (struct tui_win_info)
6910 (struct tui_source_window_base) <update_tab_width>: New methods.
6911
6912 2019-06-25 Tom Tromey <tom@tromey.com>
6913
6914 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
6915 parameter.
6916 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
6917 parameter.
6918 (tui_gen_win_info::make_visible): Update.
6919 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
6920 parameter.
6921 * tui/tui-data.h (enum tui_box): New enum.
6922 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
6923
6924 2019-06-25 Tom Tromey <tom@tromey.com>
6925
6926 * tui/tui-layout.c (make_source_or_disasm_window): Always use
6927 init_and_make_win for EXEC_INFO_WIN.
6928 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
6929 longer inline.
6930 (struct tui_win_info) <~tui_win_info>: Inline.
6931 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
6932 Don't declare.
6933 * tui/tui-data.c (source_win, disasm_win): Remove globals.
6934 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
6935 Remove.
6936 (tui_initialize_static_data): Update.
6937 (~tui_gen_win_info): Handle more cleanup here.
6938 (~tui_source_window_base): Delete "execution_info".
6939 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
6940
6941 2019-06-25 Tom Tromey <tom@tromey.com>
6942
6943 * tui/tui-layout.c (make_command_window): Don't set
6944 can_highlight.
6945 (show_source_disasm_command): Call the reset method.
6946 (show_data): Don't set can_highlight. Call the reset method.
6947 (tui_gen_win_info::reset): Rename from init_gen_win_info
6948 (init_and_make_win): Simplify. Return tui_gen_win_info.
6949 (show_source_or_disasm_and_command): Call the reset method.
6950 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
6951 (struct tui_cmd_window): Set can_highlight.
6952
6953 2019-06-25 Tom Tromey <tom@tromey.com>
6954
6955 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
6956 from make_visible.
6957 (tui_make_visible, tui_make_invisible): Rewrite.
6958 (tui_win_info::make_visible): Remove.
6959 (tui_source_window_base::make_visible): Update.
6960 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
6961 method. Moved from...
6962 (struct tui_win_info) <make_visible>: ...here.
6963
6964 2019-06-25 Tom Tromey <tom@tromey.com>
6965
6966 * tui/tui-winsource.c
6967 (tui_source_window_base::do_scroll_horizontal): Remove direction
6968 parameter.
6969 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
6970 direction parameter.
6971 * tui/tui-win.c (tui_win_info::forward_scroll)
6972 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
6973 (tui_win_info::right_scroll): Update.
6974 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
6975 direction parameter.
6976 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
6977 direction parameter.
6978 * tui/tui-data.h (enum tui_scroll_direction): Remove.
6979 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
6980 Remove direction parameter.
6981 (struct tui_source_window_base, struct tui_source_window)
6982 (struct tui_disasm_window, struct tui_data_window)
6983 (struct tui_cmd_window): Update.
6984
6985 2019-06-25 Tom Tromey <tom@tromey.com>
6986
6987 * tui/tui-winsource.h (tui_set_exec_info_content)
6988 (tui_show_exec_info_content, tui_erase_exec_info_content)
6989 (tui_clear_exec_info_content, tui_update_exec_info): Change
6990 argument to tui_source_window_base.
6991 * tui/tui-winsource.c (tui_set_exec_info_content)
6992 (tui_show_exec_info_content, tui_erase_exec_info_content)
6993 (tui_clear_exec_info_content, tui_update_exec_info): Change
6994 argument to tui_source_window_base.
6995
6996 2019-06-25 Tom Tromey <tom@tromey.com>
6997
6998 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
6999 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
7000
7001 2019-06-25 Tom Tromey <tom@tromey.com>
7002
7003 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
7004 check.
7005
7006 2019-06-25 Tom Tromey <tom@tromey.com>
7007
7008 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
7009 type to void.
7010 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
7011 type to void.
7012 * tui/tui-source.c (tui_set_source_content): Update.
7013 * tui/tui-disasm.c (tui_set_disassem_content): Update.
7014
7015 2019-06-25 Tom Tromey <tom@tromey.com>
7016
7017 * tui/tui-win.c (window_name_completer, tui_set_focus)
7018 (tui_all_windows_info): Use name method.
7019 * tui/tui-data.h (struct tui_gen_win_info)
7020 (struct tui_source_window, struct tui_disasm_window)
7021 (struct tui_data_window, struct tui_cmd_window) <name>: New
7022 method.
7023 (tui_win_name): Don't declare.
7024 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
7025 (tui_win_name): Remove.
7026
7027 2019-06-25 Tom Tromey <tom@tromey.com>
7028
7029 * tui/tui-winsource.h (tui_update_source_window)
7030 (tui_update_source_window_as_is): Change parameter type.
7031 * tui/tui-winsource.c (tui_update_source_window): Change win_info
7032 to be a tui_source_window_base.
7033 (tui_update_source_window_as_is): Likewise.
7034 * tui/tui-win.c (make_visible_with_new_height): Update.
7035
7036 2019-06-25 Tom Tromey <tom@tromey.com>
7037
7038 * tui/tui-winsource.c (tui_erase_source_content)
7039 (tui_show_source_content, tui_show_exec_info_content)
7040 (tui_erase_exec_info_content): Use refresh_window method.
7041 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
7042 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
7043 from tui_refresh_win.
7044 (tui_data_window::refresh_window): New method.
7045 (tui_win_info::refresh, tui_source_window_base::refresh)
7046 (tui_refresh_all): Use refresh_window method.
7047 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
7048 method.
7049 * tui/tui-regs.c (tui_display_register): Call refresh_window
7050 method.
7051 * tui/tui-layout.c (show_source_disasm_command)
7052 (show_source_or_disasm_and_command): Call refresh_window method.
7053 * tui/tui-data.h (struct tui_gen_win_info)
7054 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
7055 New method.
7056
7057 2019-06-25 Tom Tromey <tom@tromey.com>
7058
7059 * tui/tui.c (tui_rl_other_window, tui_enable)
7060 (tui_is_window_visible, tui_get_command_dimension): Update.
7061 * tui/tui-winsource.c (tui_update_source_window_as_is)
7062 (tui_clear_source_content, tui_erase_source_content)
7063 (tui_show_source_line, tui_source_window_base::refill)
7064 (tui_source_window_base::do_scroll_horizontal)
7065 (tui_source_window_base::set_is_exec_point_at)
7066 (tui_update_breakpoint_info, tui_set_exec_info_content)
7067 (tui_alloc_source_buffer, tui_line_is_displayed)
7068 (tui_addr_is_displayed): Update.
7069 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
7070 (tui_check_and_display_highlight_if_needed)
7071 (tui_win_info::make_visible, tui_win_info::refresh)
7072 (tui_refresh_all): Update.
7073 * tui/tui-windata.c (tui_first_data_item_displayed)
7074 (tui_delete_data_content_windows, tui_erase_data_content)
7075 (tui_display_all_data, tui_data_window::refresh_all)
7076 (tui_check_data_values): Update.
7077 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
7078 (tui_set_win_focus_to, tui_win_info::forward_scroll)
7079 (tui_win_info::backward_scroll, tui_refresh_all_win)
7080 (tui_resize_all, tui_set_focus, tui_all_windows_info)
7081 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
7082 (tui_source_window_base::set_new_height)
7083 (tui_data_window::set_new_height)
7084 (make_invisible_and_set_new_height)
7085 (make_visible_with_new_height, new_height_ok)
7086 (parse_scrolling_args): Update.
7087 * tui/tui-stack.c (tui_show_frame_info): Update.
7088 * tui/tui-source.c (tui_set_source_content)
7089 (tui_set_source_content_nil, tui_source_is_displayed)
7090 (tui_source_window::do_scroll_vertical): Update.
7091 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7092 (tui_display_registers_from, tui_display_reg_element_at_line)
7093 (tui_check_register_values, tui_reg_command): Update.
7094 * tui/tui-layout.c (tui_default_win_height)
7095 (show_source_disasm_command, show_data, init_and_make_win)
7096 (show_source_or_disasm_and_command): Update.
7097 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
7098 (tui_redisplay_readline, tui_mld_flush)
7099 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
7100 (tui_getc): Update.
7101 * tui/tui-disasm.c (tui_set_disassem_content)
7102 (tui_disasm_window::do_scroll_vertical): Update.
7103 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
7104 Now virtual.
7105 (struct tui_win_info): Derive from tui_gen_win_info.
7106 <~tui_win_info>: Mark as override.
7107 <generic>: Remove member.
7108 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
7109 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
7110 (~tui_data_window, ~tui_win_info)
7111 (tui_free_all_source_wins_content): Update.
7112 * tui/tui-command.c (tui_refresh_cmd_win): Update.
7113
7114 2019-06-25 Tom Tromey <tom@tromey.com>
7115
7116 * tui/tui-layout.c (init_and_make_win): Use new.
7117 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
7118 destructor, initializers.
7119 (tui_alloc_generic_win_info): Don't declare.
7120 * tui/tui-data.c (_locator): Add argument to constructor.
7121 (source_win, disasm_win): New globals.
7122 (exec_info): Remove.
7123 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7124 Update.
7125 (tui_alloc_generic_win_info): Remove.
7126 (init_content_element): Use new.
7127 (tui_win_info::tui_win_info): Update.
7128 (free_content_elements) <case DATA_WIN>: Use delete.
7129
7130 2019-06-25 Tom Tromey <tom@tromey.com>
7131
7132 * tui/tui-wingeneral.c (tui_refresh_win): Update.
7133 * tui/tui-windata.c (tui_first_data_item_displayed)
7134 (tui_delete_data_content_windows): Update.
7135 * tui/tui-win.c (tui_data_window::set_new_height): Update.
7136 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7137 (tui_display_registers_from, tui_check_register_values): Update.
7138 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
7139 pointer.
7140 * tui/tui-data.c (init_content_element): Update. Allocate the new
7141 window.
7142 (tui_free_data_content): Update.
7143 (free_content_elements) <case DATA_WIN>: Free the window.
7144
7145 2019-06-25 Tom Tromey <tom@tromey.com>
7146
7147 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
7148 Update.
7149 * tui/tui-layout.c (make_command_window)
7150 (show_source_disasm_command, show_data, init_and_make_win)
7151 (show_source_or_disasm_and_command): Update.
7152 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
7153 method.
7154 <can_highight, is_highlighted>: Now bool.
7155 (tui_set_win_highlight): Don't declare.
7156 * tui/tui-data.c (tui_set_win_highlight): Remove.
7157
7158 2019-06-25 Tom Tromey <tom@tromey.com>
7159
7160 * tui/tui-wingeneral.c (make_visible): Remove check of window
7161 type.
7162
7163 2019-06-25 Tom Tromey <tom@tromey.com>
7164
7165 * tui/tui-win.c (tui_win_info::max_height)
7166 (tui_cmd_window::max_height): New methods.
7167 (new_height_ok): Call max_height.
7168 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
7169 <max_height>: New method.
7170
7171 2019-06-25 Tom Tromey <tom@tromey.com>
7172
7173 * tui/tui-win.c (tui_source_window_base::set_new_height)
7174 (tui_data_window::set_new_height): New methods.
7175 (make_invisible_and_set_new_height): Call set_new_height method.
7176 * tui/tui-data.h (struct tui_win_info)
7177 (struct tui_source_window_base, struct tui_data_window)
7178 <set_new_height>: New method.
7179
7180 2019-06-25 Tom Tromey <tom@tromey.com>
7181
7182 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
7183 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
7184 tui_refresh_data_win.
7185 * tui/tui-win.c (tui_source_window_base::refresh_all): New
7186 method.
7187 (tui_refresh_all_win): Call the refresh_all method.
7188 (tui_set_focus): Likewise.
7189 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
7190 (struct tui_source_window_base, struct tui_data_window) <refresh>:
7191 Likewise.
7192
7193 2019-06-25 Tom Tromey <tom@tromey.com>
7194
7195 * tui/tui-winsource.h (tui_refill_source_window)
7196 (tui_set_is_exec_point_at): Don't declare.
7197 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
7198 (tui_source_window_base::refill): Rename from
7199 tui_refill_source_window.
7200 (tui_source_window_base::do_scroll_horizontal): Update.
7201 (tui_source_window_base::set_is_exec_point_at): Rename from
7202 tui_set_is_exec_point_at.
7203 (tui_update_all_breakpoint_info): Update.
7204 * tui/tui-stack.c (tui_show_frame_info): Update.
7205 * tui/tui-layout.c (show_data): Add cast.
7206 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
7207 * tui/tui-data.h (struct tui_source_window_base) <refill,
7208 set_is_exec_point_at>: New methods.
7209 (tui_source_windows, tui_add_to_source_windows): Update types.
7210 (tui_add_to_source_windows): Remove redundant declaration.
7211 * tui/tui-data.c (source_windows): Store tui_source_window_base.
7212 (tui_source_windows): Change return type.
7213 (tui_clear_source_windows_detail): Update.
7214 (tui_add_to_source_windows): Change type of parameter.
7215 (tui_free_all_source_wins_content): Update.
7216
7217 2019-06-25 Tom Tromey <tom@tromey.com>
7218
7219 * tui/tui-wingeneral.c (tui_win_info::refresh)
7220 (tui_source_window_base::refresh): New methods.
7221 (tui_refresh_all): Call the refresh method.
7222 * tui/tui-data.h (struct tui_win_info)
7223 (struct tui_source_window_base) <refresh>: New method.
7224
7225 2019-06-25 Tom Tromey <tom@tromey.com>
7226
7227 * tui/tui.h (tui_is_window_visible): Return bool.
7228 * tui/tui.c (tui_is_window_visible): Return bool.
7229 * tui/tui-wingeneral.c (tui_make_window, make_visible)
7230 (tui_make_visible, tui_make_invisible)
7231 (tui_win_info::make_visible)
7232 (tui_source_window_base::make_visible, make_all_visible)
7233 (tui_make_all_visible, tui_make_all_invisible): Update.
7234 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
7235 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
7236 bool.
7237 (struct tui_win_info, struct tui_source_window_base)
7238 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
7239 * tui/tui-data.c (tui_init_generic_part): Update.
7240
7241 2019-06-25 Tom Tromey <tom@tromey.com>
7242
7243 * tui/tui-wingeneral.c (tui_win_info::make_visible)
7244 (tui_source_window_base::make_visible): New methods.
7245 (make_all_visible): Make method call.
7246 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
7247 (struct tui_source_window_base, struct tui_cmd_window): Override
7248 make_visible.
7249 (tui_win_is_source_type): Don't declare.
7250 * tui/tui-data.c (tui_win_is_source_type): Remove.
7251
7252 2019-06-25 Tom Tromey <tom@tromey.com>
7253
7254 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
7255 NULL check.
7256
7257 2019-06-25 Tom Tromey <tom@tromey.com>
7258
7259 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
7260 Inline constructor. Add initializers for members.
7261 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
7262 constructors; now inline in class.
7263
7264 2019-06-25 Tom Tromey <tom@tromey.com>
7265
7266 * tui/tui-regs.c (tui_show_registers): Update.
7267 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
7268 bool.
7269 * tui/tui-data.c (tui_data_window::clear_detail)
7270 (tui_data_window): Update.
7271
7272 2019-06-25 Tom Tromey <tom@tromey.com>
7273
7274 * tui/tui-windata.c (tui_display_all_data)
7275 (tui_display_data_from_line, tui_display_data_from)
7276 (tui_check_data_values, tui_data_window::do_scroll_vertical):
7277 Update.
7278 * tui/tui-regs.c (tui_last_regs_line_no)
7279 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7280 (tui_show_registers, tui_show_register_group)
7281 (tui_display_registers_from, tui_display_reg_element_at_line)
7282 (tui_display_registers_from_line, tui_check_register_values)
7283 (tui_reg_next, tui_reg_prev): Update.
7284 * tui/tui-layout.c (tui_set_layout, show_data): Update.
7285 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
7286 tui_data_window.
7287 (struct tui_win_info) <detail>: Remove. Add new fields from
7288 tui_data_info.
7289 (TUI_DATA_WIN): Add cast.
7290 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
7291 (~tui_data_window): Simplify.
7292
7293 2019-06-25 Tom Tromey <tom@tromey.com>
7294
7295 * tui/tui-layout.c (show_source_disasm_command)
7296 (show_source_or_disasm_and_command): Update.
7297 * tui/tui-io.c (update_cmdwin_start_line)
7298 (tui_redisplay_readline): Update.
7299 * tui/tui-data.h (struct tui_command_info): Remove.
7300 (struct tui_win_info) <detail>: Remove command_info member.
7301 (struct tui_data_window) <start_line>: New member, from
7302 tui_command_info.
7303 (TUI_CMD_WIN): Add casts.
7304
7305 2019-06-25 Tom Tromey <tom@tromey.com>
7306
7307 * tui/tui-winsource.c (tui_update_source_window)
7308 (tui_refill_source_window)
7309 (tui_source_window_base::do_scroll_horizontal)
7310 (tui_update_breakpoint_info, tui_set_exec_info_content)
7311 (tui_show_exec_info_content, tui_erase_exec_info_content)
7312 (tui_clear_exec_info_content): Update.
7313 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
7314 Update.
7315 * tui/tui-win.c (make_invisible_and_set_new_height)
7316 (make_visible_with_new_height): Update.
7317 * tui/tui-source.c (tui_set_source_content)
7318 (tui_show_symtab_source): Update.
7319 * tui/tui-layout.c (extract_display_start_addr)
7320 (show_source_disasm_command, show_data)
7321 (make_source_or_disasm_window)
7322 (show_source_or_disasm_and_command): Update.
7323 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
7324 (tui_disasm_window::do_scroll_vertical): Remove shadowing
7325 "gdbarch".
7326 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
7327 to tui_source_window_base.
7328 (struct tui_win_info) <detail>: Remove source_info member.
7329 (struct tui_source_window_base) <has_locator>: Inline.
7330 Move contents from tui_source_info; rename has_locator member to
7331 m_has_locator.
7332 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
7333 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
7334 header file.
7335 (tui_source_window_base::clear_detail, ~tui_source_window_base):
7336 Simplify.
7337 (tui_free_all_source_wins_content): Cast to
7338 tui_source_window_base.
7339
7340 2019-06-25 Tom Tromey <tom@tromey.com>
7341
7342 * tui/tui-win.c (make_invisible_and_set_new_height)
7343 (make_visible_with_new_height): Call has_locator method.
7344 * tui/tui-layout.c (show_source_disasm_command, show_data)
7345 (show_source_or_disasm_and_command): Update for bool change.
7346 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
7347 (tui_win_info) <has_locator>: New method.
7348 (struct tui_source_window_base) <has_locator>: New method.
7349 (tui_win_has_locator): Don't declare.
7350 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
7351 from tui_win_has_locator.
7352 (tui_source_window_base): Use false, not FALSE.
7353
7354 2019-06-25 Tom Tromey <tom@tromey.com>
7355
7356 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
7357 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
7358 clear_detail method directly.
7359 (tui_clear_win_detail): Remove.
7360
7361 2019-06-25 Tom Tromey <tom@tromey.com>
7362
7363 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
7364 "this", not TUI_DISASM_WIN.
7365
7366 2019-06-25 Tom Tromey <tom@tromey.com>
7367
7368 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
7369 declare.
7370 * tui/tui-winsource.c
7371 (tui_source_window_base::do_scroll_horizontal): Rename from
7372 tui_horizontal_source_scroll.
7373 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
7374 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
7375 from tui_vertical_data_scroll.
7376 * tui/tui-win.h (tui_scroll): Don't declare.
7377 * tui/tui-win.c (tui_win_info::forward_scroll)
7378 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7379 (tui_win_info::right_scroll): Rename and update.
7380 (tui_scroll_forward_command, tui_scroll_backward_command)
7381 (tui_scroll_left_command, tui_scroll_right_command): Update.
7382 (tui_scroll): Remove.
7383 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
7384 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
7385 from tui_vertical_source_scroll.
7386 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
7387 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
7388 from tui_vertical_disassem_scroll.
7389 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
7390 do_scroll_horizontal>: New methods.
7391 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
7392 Likewise.
7393 (struct tui_source_window_base): Add do_scroll_horizontal.
7394 (struct tui_source_window, struct tui_disasm_window): Add
7395 do_scroll_vertical.
7396 (struct tui_data_window, struct tui_cmd_window): Add
7397 do_scroll_horizontal and do_scroll_vertical.
7398 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
7399
7400 2019-06-25 Tom Tromey <tom@tromey.com>
7401
7402 * tui/tui-data.h (struct tui_source_window_base): New struct.
7403 (struct tui_source_window): Derive from tui_source_window_base.
7404 (struct tui_disasm_window): New struct.
7405 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
7406 from tui_source_window::clear_detail.
7407 (tui_source_window_base): Rename from tui_source_window.
7408 (~tui_source_window_base): Rename from ~tui_source_window.
7409 (tui_alloc_win_info): Create a tui_disasm_window.
7410
7411 2019-06-25 Tom Tromey <tom@tromey.com>
7412
7413 * tui/tui-data.h (struct tui_source_window)
7414 (struct tui_data_window): Declare destructors.
7415 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
7416 destructors.
7417 (tui_win_info): Simplify.
7418
7419 2019-06-25 Tom Tromey <tom@tromey.com>
7420
7421 * tui/tui-winsource.c (tui_display_main)
7422 (tui_update_source_windows_with_addr)
7423 (tui_update_all_breakpoint_info): Update.
7424 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7425 (new_height_ok, parse_scrolling_args): Update.
7426 * tui/tui-stack.c (tui_show_frame_info): Update.
7427 * tui/tui-data.h (struct tui_list): Remove.
7428 (tui_source_windows): Return a reference to a std::vector.
7429 * tui/tui-data.c (source_windows): Now a std::vector.
7430 (tui_source_windows): Change return type.
7431 (tui_clear_source_windows): Rewrite.
7432 (tui_clear_source_windows_detail, tui_add_to_source_windows)
7433 (tui_free_all_source_wins_content): Rewrite.
7434
7435 2019-06-25 Tom Tromey <tom@tromey.com>
7436
7437 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
7438 (struct tui_data_window, struct tui_cmd_window): Declare
7439 clear_detail method.
7440 * tui/tui-data.c (tui_source_window::clear_detail)
7441 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
7442 methods.
7443 (tui_clear_win_detail): Simplify.
7444
7445 2019-06-25 Tom Tromey <tom@tromey.com>
7446
7447 * tui/tui-layout.c (make_source_window, make_disasm_window)
7448 (make_source_or_disasm_window): Remove win_info_ptr parameter.
7449 Return the new window.
7450 (show_source_disasm_command, show_data)
7451 (show_source_or_disasm_and_command): Update.
7452
7453 2019-06-25 Tom Tromey <tom@tromey.com>
7454
7455 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
7456 parameter. Return the new window.
7457 (show_source_disasm_command): Update and remove NULL check.
7458 (show_source_or_disasm_and_command): Update.
7459
7460 2019-06-25 Tom Tromey <tom@tromey.com>
7461
7462 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
7463
7464 2019-06-25 Tom Tromey <tom@tromey.com>
7465
7466 * tui/tui-data.h (struct tui_win_info): Make constructor
7467 protected. Make destructor virtual. Add initializers.
7468 (tui_source_window, tui_data_window, tui_cmd_window): New
7469 classes.
7470 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
7471 constructor. Add "type" parameter.
7472 (tui_source_window, tui_data_window, tui_cmd_window): New
7473 constructors.
7474 (tui_alloc_win_info): Instantiate the appropriate subclass.
7475
7476 2019-06-25 Tom Tromey <tom@tromey.com>
7477
7478 * tui/tui-win.c (tui_resize_all): Use delete.
7479 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
7480 destructor.
7481 (tui_free_window): Don't declare.
7482 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
7483 Update.
7484
7485 2019-06-25 Tom Tromey <tom@tromey.com>
7486
7487 * tui/tui-data.h (struct tui_win_info): Add constructor.
7488 * tui/tui-data.c (tui_alloc_win_info): Use new.
7489 (tui_free_window): Use delete.
7490
7491 2019-06-22 Tom Tromey <tom@tromey.com>
7492
7493 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
7494 declare.
7495 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
7496
7497 2019-06-22 Tom Tromey <tom@tromey.com>
7498
7499 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
7500 declare.
7501 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
7502
7503 2019-06-22 Tom de Vries <tdevries@suse.de>
7504
7505 * dwarf2read.c (create_addrmap_from_aranges)
7506 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
7507 instead of '%zu'.
7508
7509 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
7510
7511 * dwarf2read.h (dwarf2_section_info_def): Remove.
7512 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
7513 * dwarf2read.c (struct dwo_sections) <types>: Change type to
7514 std::vector<dwarf2_section_info>.
7515 (struct dwo_file) <~dwo_file>: Remove.
7516 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
7517 types field.
7518 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
7519 (dwarf2_read_debug_names): Likewise.
7520 (create_debug_types_hash_table): Change parameter type to
7521 array_view, adjust code accordingly.
7522 (dwarf2_locate_dwo_sections): Adjust to std::vector.
7523 (partial_die_info::fixup): Likewise.
7524 (determine_prefix): Likewise.
7525 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
7526
7527 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7528
7529 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
7530 gdb_bfd_ref_ptr.
7531 <~dwo_file>: Remove call to gdb_bfd_unref.
7532 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
7533 gdb_bfd_ref_ptr::get.
7534
7535 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7536
7537 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
7538 type to htab_up.
7539 * dwarf2read.c (struct dwo_file): Initialize fields.
7540 <~dwo_file>: New.
7541 (free_dwo_file): Remove, move content to ~dwo_file.
7542 (struct dwo_file_deleter): Remove.
7543 (dwo_file_up>: Remove custom deleter.
7544 (free_dwo_files): Remove.
7545 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
7546 dwo_files.
7547 (process_skeletonless_type_units): Call unique_ptr::get.
7548 (allocate_dwo_file_hash_table): Add deleter to created hash
7549 table. Change return type to htab_up.
7550 (lookup_dwo_file_slot): Don't memset dwo_file, call
7551 unique_ptr::get.
7552 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
7553 (create_dwo_unit_in_dwp_v2): Likewise.
7554 (open_and_init_dwo_file): Likewise.
7555 (free_dwo_file_from_slot): Remove.
7556
7557 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7558
7559 * dwarf2read.h (struct dwarf2_section_info) <readin,
7560 is_virtual>: Change type to bool.
7561 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
7562 true instead of 1.
7563
7564 2019-06-19 Tom Tromey <tom@tromey.com>
7565
7566 * tui/tui-data.h (tui_init_content_element): Don't declare.
7567
7568 2019-06-19 Tom Tromey <tom@tromey.com>
7569
7570 * tui/tui-data.h (tui_init_win_info): Don't declare.
7571
7572 2019-06-19 Tom de Vries <tdevries@suse.de>
7573
7574 * dwarf2read.h (abstract_to_concrete): Change type to
7575 std::unordered_map<sect_offset, std::vector<sect_offset>,
7576 gdb::hash_enum<sect_offset>>.
7577
7578 2019-06-19 Tom Tromey <tromey@adacore.com>
7579
7580 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
7581 EVAL_AVOID_SIDE_EFFECTS specially.
7582
7583 2019-06-19 Tom Tromey <tromey@adacore.com>
7584
7585 * source-cache.c (highlighter): New global.
7586 (source_cache::get_source_lines): Create a highlighter on demand.
7587
7588 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
7589
7590 * defs.h (deprecated_interactive_hook): Delete declaration.
7591 * interps.c (clear_interpreter_hooks): Remove use of
7592 deprecated_interactive_hook.
7593 * top.c (deprecated_interactive_hook): Delete definition.
7594 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
7595
7596 2019-06-18 Tom de Vries <tdevries@suse.de>
7597
7598 PR gdb/24515
7599 * dwarf2read.h (abstract_to_concrete): Change type from
7600 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
7601 std::unordered_map<sect_offset, std::vector<sect_offset>>.
7602 * dwarf2read.c (read_variable): Update.
7603 (dwarf2_fetch_die_loc_sect_off): Update.
7604
7605 2019-06-17 Tom de Vries <tdevries@suse.de>
7606
7607 PR gdb/24617
7608 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
7609 accessing parent[parent_len - 1].
7610
7611 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
7612
7613 PR gdb/24364
7614 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
7615 call dtrace_process_dof with NULL dof.
7616
7617 2019-06-16 Tom de Vries <tdevries@suse.de>
7618
7619 PR gdb/24445
7620 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
7621
7622 2019-06-16 Tom Tromey <tom@tromey.com>
7623
7624 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
7625 (make_all_visible): Use address of member.
7626
7627 2019-06-16 Tom Tromey <tom@tromey.com>
7628
7629 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
7630 (tui_free_window, free_content, free_content_elements): Remove
7631 unnecessary cast.
7632 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
7633 cast.
7634 * tui/tui-regs.c (tui_show_register_group)
7635 (tui_display_registers_from, tui_display_reg_element_at_line):
7636 Remove unnecessary cast.
7637
7638 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
7639
7640 * linux-nat.c (normal_mask): Delete.
7641 (_initialize_linux_nat): Don't initialise normal_mask.
7642
7643 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
7644
7645 PR gdb/24445
7646 * dwarf-index-write.h (write_psymtabs_to_index): Add
7647 dwz_basename parameter.
7648 * dwarf-index-write.c (write_gdbindex): Move file writing to
7649 write_gdbindex_1. Change return type void.
7650 (assert_file_size): Move up, remove filename parameter.
7651 (write_gdbindex_1): New function.
7652 (write_debug_names): Change return type to void, call
7653 assert_file_size.
7654 (struct index_wip_file): New struct.
7655 (write_psymtabs_to_index): Add dwz_basename parameter. Move
7656 file logic to index_wip_file. Write index for dwz file if
7657 needed.
7658 (save_gdb_index_command): Pass basename of dwz file, if present.
7659 * dwarf-index-cache.c (index_cache::store): Obtain and pass
7660 build-id of dwz file, if present.
7661 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
7662 (dwarf2_get_dwz_file): Likewise.
7663 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
7664 (dwarf2_get_dwz_file): Likewise.
7665
7666 2019-06-16 Tom Tromey <tom@tromey.com>
7667
7668 * coffread.c (process_coff_symbol): Use xstrdup.
7669 * value.c (create_internalvar): Use xstrdup.
7670
7671 2019-06-16 Tom Tromey <tom@tromey.com>
7672
7673 * valops.c (value_cast, value_slice): Remove unnecessary cast.
7674 * breakpoint.c (stopin_command, stopat_command)
7675 (until_break_command, decode_location_default): Remove unnecessary
7676 cast.
7677 * utils.c (subset_compare): Remove unnecessary cast.
7678 * ada-lang.c (ada_update_initial_language): Remove unnecessary
7679 cast.
7680 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
7681 cast.
7682 * infcmd.c (path_command): Remove unnecessary cast.
7683 * coffread.c (decode_type): Remove unnecessary cast.
7684 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
7685 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
7686 * tui/tui-stack.c (tui_show_locator_content)
7687 (tui_show_frame_info): Remove unnecessary cast.
7688 * tui/tui-win.c (tui_scroll_forward_command)
7689 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
7690 (parse_scrolling_args): Remove unnecessary cast.
7691 * tui/tui-data.c (init_win_info, tui_del_window)
7692 (tui_free_window, tui_del_data_windows, tui_free_data_content)
7693 (free_content_elements): Remove unnecessary cast.
7694 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
7695 unnecessary cast.
7696 * tui/tui-source.c (tui_set_source_content)
7697 (tui_vertical_source_scroll): Remove unnecessary cast.
7698 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
7699 cast.
7700 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
7701 * tui/tui-regs.c (tui_display_registers_from)
7702 (tui_display_register): Remove unnecessary cast.
7703 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
7704 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
7705 (make_visible): Remove unnecessary cast.
7706 * tui/tui-winsource.c (tui_erase_source_content)
7707 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
7708 unnecessary cast.
7709 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
7710 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
7711 * stabsread.c (read_type, read_array_type, read_range_type):
7712 Remove unnecessary cast.
7713 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
7714 (parse_symbol, parse_type, upgrade_type, parse_external)
7715 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
7716 unnecessary cast.
7717 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
7718
7719 2019-06-16 Tom Tromey <tom@tromey.com>
7720
7721 * tui/tui-data.c (tui_alloc_generic_win_info)
7722 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
7723 checks.
7724
7725 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
7726 Andrew Burgess <andrew.burgess@embecosm.com>
7727
7728 * f-typeprint.c (f_print_type): Don't return early for not
7729 associated or not allocated types.
7730 (f_type_print_varspec_suffix): Add print_rank parameter and print
7731 ranks of array types in case they dangling.
7732 (f_type_print_base): Add print_rank parameter.
7733
7734 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7735
7736 * NEWS: Mention new MI commands.
7737 * break-catch-throw.c (enum exception_event_kind): Move to
7738 breakpoint.h.
7739 (print_mention_exception_catchpoint): Output text as a single
7740 message.
7741 (catch_exception_command_1): Rename to...
7742 (catch_exception_event): ...this, make non-static, update header
7743 command, and change some parameter types.
7744 (catch_catch_command): Update for changes to
7745 catch_exception_command_1.
7746 (catch_throw_command): Likewise.
7747 (catch_rethrow_command): Likewise.
7748 * breakpoint.c (enum exception_event_kind): Delete.
7749 * breakpoint.h (enum exception_event_kind): Moved here from
7750 break-catch-throw.c.
7751 (catch_exception_event): Declare.
7752 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
7753 (mi_cmd_catch_throw): New function.
7754 (mi_cmd_catch_rethrow): New function.
7755 (mi_cmd_catch_catch): New function.
7756 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
7757 'catch-catch' entries.
7758 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
7759 (mi_cmd_catch_rethrow): Declare.
7760 (mi_cmd_catch_catch): Declare.
7761
7762 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7763
7764 * annotate.c (annotate_source_line): Change return type to void,
7765 update implementation to match.
7766 * annotate.h (annotate_source_line): Change return type to void,
7767 update header comment.
7768 * stack.c (print_frame_info): Don't change what frame information
7769 is printed based on whether annotations are on or not.
7770
7771 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7772
7773 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
7774 (annotate_source): Make static.
7775 (annotate_source_line): Moved from source.c and renamed from
7776 identify_source_line. Update the return type.
7777 * annotate.h (annotate_source): Delete declaration.
7778 (annotate_source_line): Declaration moved from source.h, and
7779 renamed from identify_source_line. Return type updated.
7780 * source.c (identify_source_line): Moved to annotate.c and renamed
7781 to annotate_source_line.
7782 (info_line_command): Remove check of annotation_level.
7783 * source.h (identify_source_line): Move declaration to annotate.h
7784 and rename to annotate_source_line.
7785 * stack.c: Add 'annotate.h' include.
7786 (print_frame_info): Remove check of annotation_level before
7787 calling annotate_source_line.
7788
7789 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7790
7791 * source-cache.c (source_cache::get_plain_source_lines): Use
7792 open_source_file_with_line_charpos instead of just
7793 open_source_file, remove call to find_source_lines.
7794 (source_cache::get_source_lines): Likewise.
7795 * source.c (find_source_lines): Make static.
7796 (get_filename_and_charpos): Renamed into...
7797 (open_source_file_with_line_charpos): ..this along with changes to
7798 return a scoped_fd, and some other minor clean ups.
7799 (identify_source_line): Use open_source_file_with_line_charpos.
7800 (search_command_helper): Use open_source_file_with_line_charpos
7801 instead of just open_source_file, remove call to
7802 find_source_lines.
7803 * source.h (open_source_file_with_line_charpos): Declare new
7804 function.
7805 (find_source_lines): Delete declaration.
7806
7807 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7808
7809 * source.c (get_filename_and_charpos): Remove fullname
7810 parameter.
7811 (identify_source_line): Update call to get_filename_and_charpos.
7812
7813 2019-06-14 Tom Tromey <tromey@adacore.com>
7814
7815 PR gdb/24502:
7816 * ui-style.h (skip_ansi_escape): Update comment.
7817 * ui-file.h (class no_terminal_escape_file): New class.
7818 * ui-file.c (no_terminal_escape_file::write)
7819 (no_terminal_escape_file::puts): New methods.
7820 * cli/cli-logging.c (handle_redirections): Use
7821 no_terminal_escape_file.
7822
7823 2019-06-14 Tom Tromey <tromey@adacore.com>
7824
7825 * NEWS: Move convenience variable news above Python news.
7826
7827 2019-06-14 Tom Tromey <tom@tromey.com>
7828
7829 * gnulib: Move directory to top-level.
7830 * configure.ac: Don't configure gnulib.
7831 * configure: Rebuild.
7832 * common/common-defs.h: Use new path to gnulib.
7833 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
7834 (GNULIB_H): Remove.
7835 (INCGNU): Look in new gnulib location.
7836 (HFILES_NO_SRCDIR): Remove gnulib files.
7837 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
7838 (generated_files): Remove GNULIB_H.
7839 ($(LIBGNU), all-lib): Remove targets.
7840 (distclean): Don't mention GNULIB_BUILDDIR.
7841 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
7842
7843 2019-06-14 Tom Tromey <tromey@adacore.com>
7844
7845 * symfile.c (add_symbol_file_command): Remove obsolete comment.
7846 Warn if symbol file does not provide any symbols.
7847
7848 2019-06-14 Tom Tromey <tromey@adacore.com>
7849
7850 * source.c (find_and_open_source): Respect basenames_may_differ.
7851
7852 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
7853
7854 * annotate.c (annotate_breakpoints_invalid): Make use of
7855 scoped_restore_terminal_state.
7856 (annotate_frames_invalid): Likewise.
7857
7858 2019-06-14 Tom Tromey <tromey@adacore.com>
7859
7860 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
7861 allow assignment to an internalvar.
7862
7863 2019-06-14 Tom Tromey <tromey@adacore.com>
7864
7865 * ada-lex.l: Allow "_" in attribute names.
7866
7867 2019-06-14 Tom Tromey <tromey@adacore.com>
7868
7869 PR gdb/24653:
7870 * regcache.c (registers_changed): Don't call alloca.
7871 * top.c (execute_command): Don't call alloca.
7872
7873 2019-06-13 Pedro Alves <palves@redhat.com>
7874
7875 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
7876 'expression'. When parsing an expression, error out if there's
7877 junk after "unlimited".
7878 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
7879 (do_set_command): Adjust calls to is_unlimited_literal.
7880
7881 2019-06-13 Pedro Alves <palves@redhat.com>
7882
7883 * compile/compile.c (make_compile_options_def_group): Add braces
7884 around array_view initializer.
7885 * thread.c (make_thread_apply_all_options_def_group)
7886 (make_thread_apply_all_options_def_group): Likewise.
7887
7888 2019-06-13 Pedro Alves <palves@redhat.com>
7889
7890 * NEWS (New commands): Mention "maint test-options
7891 require-delimiter", "maint test-options unknown-is-error", "maint
7892 test-options unknown-is-operand" and "maint show
7893 test-options-completion-result".
7894 (New command options, command completion): New section.
7895 (Completion improvements): New section.
7896 Mention that you can abbreviate "unlimited".
7897
7898 2019-06-13 Pedro Alves <palves@redhat.com>
7899
7900 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
7901 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
7902 * unittests/cli-utils-selftests.c (test_parse_flags)
7903 (test_parse_flags_qcs): Delete.
7904 (test_cli_utils): Don't call deleted functions.
7905
7906 2019-06-13 Pedro Alves <palves@redhat.com>
7907
7908 * thread.c: Include "cli/cli-option.h".
7909 (tp_array_compar_ascending): Global.
7910 (tp_array_compar): Delete function.
7911 (tp_array_compar_ascending, tp_array_compar_descending): New
7912 functions.
7913 (ascending_option_def, qcs_flag_option_def)
7914 (thr_qcs_flags_option_defs)
7915 (make_thread_apply_all_options_def_group)
7916 (make_thread_apply_options_def_group): New.
7917 (thread_apply_all_command): Use gdb::option::process_options.
7918 (thread_apply_command_completer)
7919 (thread_apply_all_command_completer): New.
7920 (thread_apply_command): Use gdb::option::process_options.
7921 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
7922 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
7923 to generate help text of "thread apply". Adjust "taas"'s help.
7924 * tid-parse.c (tid_range_parser::in_thread_range): New method.
7925 * tid-parse.h (tid_range_parser::in_thread_range): New method.
7926
7927 2019-06-13 Pedro Alves <palves@redhat.com>
7928
7929 * thread.c (thread_apply_command): Check for invalid TID with
7930 isdigit instead of !isalpha.
7931
7932 2019-06-13 Pedro Alves <palves@redhat.com>
7933
7934 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
7935 (validate_flags_qcs): New.
7936 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
7937 (validate_flags_qcs): Declare.
7938 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
7939 (make_frame_apply_options_def_group): New.
7940 (frame_apply_command_count): Process options with
7941 gdb::option::process_options.
7942 (frame_apply_completer): New.
7943 (frame_apply_level_completer, frame_apply_all_completer)
7944 (frame_apply_completer): New.
7945 (_initialize_stack): Update help of "frame apply", "frame apply
7946 level", "frame apply all" and "faas" to mention supported options
7947 and install command completers.
7948 * stack.h (frame_apply_all_completer): Declare.
7949 * thread.c: Include "stack.h".
7950 (tfaas_command): Add "--".
7951 (_initialize_thread): Update help "tfaas" to mention supported
7952 options and install command completer.
7953
7954 2019-06-13 Pedro Alves <palves@redhat.com>
7955
7956 * completer.c (complete_nested_command_line): New.
7957 (gdb_completion_word_break_characters_throw): Add assertion.
7958 * completer.h (complete_nested_command_line): Declare.
7959
7960 2019-06-13 Pedro Alves <palves@redhat.com>
7961
7962 * stack.c (parse_backtrace_qualifiers): New.
7963 (backtrace_command): Use it.
7964 (backtrace_command_completer): Complete on qualifiers.
7965
7966 2019-06-13 Pedro Alves <palves@redhat.com>
7967
7968 * frame.c: Include "cli/cli-option.h.
7969 (user_set_backtrace_options): New.
7970 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
7971 Delete.
7972 (get_prev_frame): Adjust.
7973 (boolean_option_def, uinteger_option_def)
7974 (set_backtrace_option_defs): New.
7975 (_initialize_frame): Adjust and use
7976 gdb::option::add_setshow_cmds_for_options to install "set
7977 backtrace past-main" and "set backtrace past-entry".
7978 * frame.h: Include "cli/cli-option.h".
7979 (struct frame_print_options): Forward declare.
7980 (print_frame_arguments_all, print_frame_arguments_scalars)
7981 (print_frame_arguments_none): Declare.
7982 (print_entry_values): Delete declaration.
7983 (struct frame_print_options, user_frame_print_options): New.
7984 (struct set_backtrace_options): New.
7985 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
7986 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
7987 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
7988 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
7989 (list_args_or_locals): Add frame_print_options parameter.
7990 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
7991 * python/py-framefilter.c (enumerate_args): Pass down
7992 USER_FRAME_PRINT_OPTIONS.
7993 * stack.c: Include "cli/cli-option.h".
7994 (print_frame_arguments_all, print_frame_arguments_scalars)
7995 (print_frame_arguments_none): Declare.
7996 (print_raw_frame_arguments, print_entry_values): Delete.
7997 (user_frame_print_options): New.
7998 (boolean_option_def, enum_option_def, frame_print_option_defs):
7999 New.
8000 (struct backtrace_cmd_options): New.
8001 (bt_flag_option_def): New.
8002 (backtrace_command_option_defs): New.
8003 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8004 (print_frame_arg, read_frame_arg, print_frame_args)
8005 (print_frame_info, print_frame): Add frame_print_options parameter
8006 and use it.
8007 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
8008 (backtrace_command_1): Add frame_print_options and
8009 backtrace_cmd_options parameters and use them.
8010 (make_backtrace_options_def_group): New.
8011 (backtrace_command): Process command options with
8012 gdb::option::process_options.
8013 (backtrace_command_completer): New.
8014 (_initialize_stack): Extend "backtrace"'s help to mention
8015 supported options. Install completer for "backtrace".
8016 Install some settings commands with add_setshow_cmds_for_options.
8017
8018 2019-06-13 Pedro Alves <palves@redhat.com>
8019
8020 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
8021 and that "set/show print raw frame-arguments" are now deprecated.
8022
8023 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
8024 command.
8025 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
8026 * stack.c (_initialize_stack): Install "set/show print
8027 raw-frame-arguments", and deprecate "set/show print raw
8028 frame-arguments".
8029 * valprint.c (_initialize_valprint): Deprecate "set/show print
8030 raw".
8031
8032 2019-06-13 Pedro Alves <palves@redhat.com>
8033
8034 * compile/compile.c (struct compile_options): New.
8035 (compile_flag_option_def, compile_command_option_defs)
8036 (make_compile_options_def_group): New.
8037 (compile_file_command): Handle options with
8038 gdb::option::process_options.
8039 (compile_file_command_completer): New function.
8040 (compile_code_command): Handle options with
8041 gdb::option::process_options.
8042 (compile_code_command_completer): New function.
8043 (_initialize_compiler): Install completers for "compile code" and
8044 "compile file". Mention available options in "compile code" and
8045 "compile code"'s help.
8046 * completer.c (advance_to_completion_word): New, factored out from
8047 ...
8048 (advance_to_expression_complete_word_point): ... this.
8049 (advance_to_filename_complete_word_point): New.
8050 * completer.h (advance_to_filename_complete_word_point): New
8051 declaration.
8052
8053 2019-06-13 Pedro Alves <palves@redhat.com>
8054
8055 * compile/compile.c: Include "cli/cli-option.h".
8056 (compile_print_value): Scope data pointer is now a
8057 value_print_options pointer; adjust.
8058 (compile_print_command): Process options. Scope data pointer is
8059 now a value_print_options pointer; adjust.
8060 (_initialize_compile): Update "compile print"'s help to include
8061 supported options. Install a completer for "compile print".
8062 * cp-valprint.c (show_vtblprint, show_objectprint)
8063 (show_static_field_print): Delete.
8064 (_initialize_cp_valprint): Don't install "set print
8065 static-members", "set print vtbl", "set print object" here.
8066 * printcmd.c: Include "cli/cli-option.h" and
8067 "common/gdb_optional.h".
8068 (print_command_parse_format): Rework to fill in a
8069 value_print_options instead of a format_data.
8070 (print_value): Change parameter type from format_data pointer to
8071 value_print_options reference. Adjust.
8072 (print_command_1): Process options. Adjust to pass down a
8073 value_print_options.
8074 (print_command_completer): New.
8075 (_initialize_printcmd): Install print_command_completer as
8076 handle_brkchars completer for the "print" command. Update
8077 "print"'s help to include supported options.
8078 * valprint.c: Include "cli/cli-option.h".
8079 (show_vtblprint, show_objectprint, show_static_field_print): Moved
8080 here from cp-valprint.c.
8081 (boolean_option_def, uinteger_option_def)
8082 (value_print_option_defs, make_value_print_options_def_group):
8083 New. Use gdb::option::add_setshow_cmds_for_options to install
8084 "set print elements", "set print null-stop", "set print repeats",
8085 "set print pretty", "set print union", "set print array", "set
8086 print address", "set print symbol", "set print array-indexes".
8087 * valprint.h: Include <string> and "cli/cli-option.h".
8088 (make_value_print_options_def_group): Declare.
8089 (print_value): Change parameter type from format_data pointer to
8090 value_print_options reference.
8091 (print_command_completer): Declare.
8092
8093 2019-06-13 Pedro Alves <palves@redhat.com>
8094
8095 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
8096 (COMMON_SFILES): Add maint-test-settings.c.
8097 * cli/cli-decode.c (boolean_enums): New global, factored out from
8098 ...
8099 (add_setshow_boolean_cmd): ... here.
8100 * cli/cli-decode.h (boolean_enums): Declare.
8101 * cli/cli-option.c: New file.
8102 * cli/cli-option.h: New file.
8103 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
8104 factored out from ...
8105 (parse_cli_boolean_value(const char *)): ... this.
8106 (is_unlimited_literal): Change parameter type to pointer to
8107 pointer. Adjust and advance ARG pointer.
8108 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8109 (parse_cli_var_enum): New, factored out from ...
8110 (do_set_command): ... this. Adjust.
8111 * cli/cli-setshow.h (parse_cli_boolean_value)
8112 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8113 (parse_cli_var_enum): Declare.
8114 * cli/cli-utils.c: Include "cli/cli-option.h".
8115 (get_ulongest): New.
8116 * cli/cli-utils.h (get_ulongest): Declare.
8117 (check_for_argument): New overloads.
8118 * maint-test-options.c: New file.
8119
8120 2019-06-13 Pedro Alves <palves@redhat.com>
8121
8122 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
8123 parse a range if "-" is at the end of the string.
8124
8125 2019-06-13 Pedro Alves <palves@redhat.com>
8126
8127 * cli/cli-setshow.c (parse_auto_binary_operation)
8128 (parse_cli_boolean_value): Don't allow "o".
8129
8130 2019-06-13 Pedro Alves <palves@redhat.com>
8131
8132 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
8133 * NEWS: Mention maint test-settings KIND.
8134 * maint-test-settings.c: New file.
8135
8136 2019-06-13 Pedro Alves <palves@redhat.com>
8137
8138 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
8139 completer.
8140 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
8141 "set" completers.
8142
8143 2019-06-13 Pedro Alves <palves@redhat.com>
8144
8145 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
8146 after item.
8147
8148 2019-06-13 Pedro Alves <palves@redhat.com>
8149
8150 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
8151
8152 2019-06-13 Pedro Alves <palves@redhat.com>
8153
8154 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
8155 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
8156 call.
8157 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
8158 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
8159 calls.
8160 (check_for_argument): Skip spaces after argument.
8161
8162 2019-06-13 Pedro Alves <palves@redhat.com>
8163
8164 * thread.c (thread_apply_command): Adjust TID parsing.
8165 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
8166 detected before end of string.
8167 (tid_is_in_list): Error out if LIST is invalid.
8168
8169 2019-06-13 Pedro Alves <palves@redhat.com>
8170
8171 * completer.c (complete_line_internal_1): Rewind completion word
8172 point.
8173 (completion_tracker::advance_custom_word_point_by): Change
8174 parameter type to int.
8175 * completer.h (completion_tracker::advance_custom_word_point_by):
8176 Likewise.
8177
8178 2019-06-13 Pedro Alves <palves@redhat.com>
8179
8180 * completer.c (advance_to_completion_word): Handle delimiters.
8181
8182 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
8183
8184 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
8185
8186 2019-06-11 Tom Tromey <tom@tromey.com>
8187
8188 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
8189 (xmalloc_failed): Move to alloc.c.
8190 * alloc.c: New file.
8191 * Makefile.in (COMMON_SFILES): Add alloc.c.
8192
8193 2019-06-11 Tom Tromey <tom@tromey.com>
8194
8195 * nat/linux-waitpid.c: Don't include server.h.
8196 (linux_debug): Remove.
8197 (my_waitpid): Update.
8198
8199 2019-06-11 Tom Tromey <tromey@adacore.com>
8200
8201 * infcall.c (_initialize_infcall): Remove trailing newline from
8202 help.
8203 * user-regs.c (_initialize_user_regs): Remove trailing newline
8204 from help.
8205 * typeprint.c (_initialize_typeprint): Remove trailing newline
8206 from help.
8207 * reverse.c (_initialize_reverse): Remove trailing newlines from
8208 help.
8209 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
8210 from help.
8211 * language.c (add_set_language_command): Remove trailing newline
8212 from help.
8213 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
8214 help.
8215 * disasm.c (_initialize_disasm): Remove trailing newline from
8216 help.
8217 * top.c (init_main): Remove trailing newline from help.
8218 * interps.c (_initialize_interpreter): Remove trailing newline
8219 from help.
8220 * btrace.c (_initialize_btrace): Remove trailing newlines from
8221 help.
8222 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
8223 from help.
8224 * python/python.c (_initialize_python): Remove trailing newline
8225 from help.
8226 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
8227 help.
8228 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
8229 from help. Reformat some text.
8230 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
8231 from help.
8232 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
8233 newline from help.
8234
8235 2019-06-11 Tom Tromey <tromey@adacore.com>
8236
8237 * darwin-nat.c (darwin_decode_exception_message)
8238 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
8239
8240 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
8241
8242 * valops.c (value_slice): Check for not allocated or not
8243 associated values.
8244
8245 2019-06-10 Tom de Vries <tdevries@suse.de>
8246
8247 PR gdb/24618
8248 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
8249 sure an empty slot (defined by a 32-bit zero pair) is recognized as
8250 invalid.
8251
8252 2019-06-10 Tom de Vries <tdevries@suse.de>
8253
8254 PR gdb/24611
8255 * linespec.c (linespec_lexer_lex_string): Remove incorrect
8256 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
8257
8258 2019-06-10 Tom de Vries <tdevries@suse.de>
8259
8260 PR symtab/24545
8261 * symtab.c (struct demangled_name_entry): Add language field.
8262 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
8263 static minimal symbol". Set and use language field.
8264
8265 2019-06-10 Tom Tromey <tromey@adacore.com>
8266
8267 * ada-lang.c (_initialize_ada_language): Update help text.
8268
8269 2019-06-10 Tom Tromey <tromey@adacore.com>
8270
8271 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
8272 with a newline.
8273 * guile/guile.c (handle_boot_error): Don't end warning with a
8274 newline.
8275 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
8276 warning with a newline.
8277 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
8278 newline.
8279 (s12z_frame_cache): Likewise.
8280 * dwarf-index-cache.c (index_cache::store): Don't end warning with
8281 a newline.
8282 * solib-svr4.c (disable_probes_interface): Don't end warning with
8283 a newline.
8284 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
8285 newline.
8286 * python/python.c (do_finish_initialization): Don't end warning
8287 with a newline.
8288
8289 2019-06-10 Tom Tromey <tom@tromey.com>
8290
8291 * python/py-breakpoint.c (gdbpy_breakpoint_created)
8292 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
8293 gdbpy_enter.
8294
8295 2019-06-10 Tom Tromey <tromey@adacore.com>
8296
8297 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
8298 data.
8299 (elf_new_init): Don't call stabsread_new_init.
8300 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
8301 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
8302 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
8303
8304 2019-06-10 Tom de Vries <tdevries@suse.de>
8305
8306 PR symtab/16264
8307 PR symtab/24517
8308 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
8309
8310 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
8311
8312 * source.c (find_and_open_source): Also rewrite relative file
8313 names.
8314
8315 2019-04-26 Amos Bird <amosbird@gmail.com>
8316
8317 * annotate.c (annotate_thread_exited): Add "thread-exited"
8318 annotation.
8319
8320 2019-06-06 Tom Tromey <tromey@adacore.com>
8321
8322 * maint.h (class scoped_command_stats): Use
8323 DISABLE_COPY_AND_ASSIGN.
8324 <print_time>: New method.
8325 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
8326 print_time.
8327 (scoped_command_stats::print_time): New method.
8328
8329 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8330
8331 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
8332 instructions of lengths 6 or 8 bytes.
8333
8334 2019-06-04 Pedro Alves <palves@redhat.com>
8335
8336 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
8337
8338 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
8339 * breakpoint.c (condition_completer): Likewise.
8340 * cli/cli-dump.c (scan_expression): Likewise.
8341 * common/filestuff.c (mkdir_recursive): Likewise.
8342 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
8343 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
8344 (gdb_abspath): Likewise.
8345 * compile/compile-cplus-types.c
8346 (compile_cplus_instance::decl_name): Likewise.
8347 * completer.c (complete_explicit_location):
8348 (signal_completer, reg_or_group_completer_1): Likewise.
8349 * cp-support.c (cp_remove_params_if_any): Likewise.
8350 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
8351 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
8352 * infcmd.c (strip_bg_char): Likewise.
8353 * linespec.c (copy_token_string): Likewise.
8354 * mi/mi-main.c (output_cores): Likewise.
8355 * psymtab.c (psymtab_search_name):
8356 * symfile.c (test_set_ext_lang_command): Likewise.
8357 * target.c (target_fileio_read_stralloc): Likewise.
8358 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
8359 * value.c (complete_internalvar): Likewise.
8360
8361 2019-06-04 Christian Biesinger <cbiesinger@google.com>
8362
8363 Add objfile property to gdb.Type.
8364 * NEWS: Mention Python API addition.
8365 * python/py-type.c (typy_get_objfile): New method.
8366
8367 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8368
8369 * NEWS: Mention the new set|show style [title|highlight].
8370 Mention changes to "show style", "help" and "apropos".
8371
8372 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8373
8374 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
8375 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
8376 instead of print_help_for_command.
8377 (print_doc_of_command): New function.
8378 (help_list): Add 'apropos -v word' suggestion.
8379 (print_help_for_command): Style the command name using title style.
8380 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
8381 (_initialize_cli_cmds): Describe -v in apropos_command help.
8382
8383 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8384
8385 * cli/cli-style.h (cli_style_option): Add name in constructor,
8386 add m_name class member, add constructor with intensity,
8387 add name class function.
8388 (cli_style_option::add_setshow_commands): Remove name argument.
8389 (highlight_style, title_style): New styles.
8390 * cli/cli-style.c (do_show): New function that shows a style
8391 characteristic styling the style name with itself.
8392 (set_style_name): New function.
8393 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
8394 Update all callers according to the changes in cli/cli-style.h.
8395 * utils.h (fputs_highlighted): New function.
8396 * utils.c (fputs_highlighted): Likewise.
8397
8398 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8399
8400 * NEWS: Mention new pipe command and new convenience variables.
8401
8402 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8403
8404 * cli/cli-cmds.c (pipe_command): New function.
8405 (_initialize_cli_cmds): Call add_com for pipe_command.
8406 Define | as an alias for pipe.
8407 (exit_status_set_internal_vars): New function.
8408 (shell_escape): Call exit_status_set_internal_vars.
8409 cli/cli-decode.c (find_command_name_length): Recognize | as
8410 a single character command.
8411
8412 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8413
8414 * gdbcmd.h (execute_command_to_ui_file): New declaration.
8415 top.c (execute_command_to_ui_file): New function, mostly a copy
8416 of execute_command_to_string.
8417 (execute_command_to_string): Implement by calling
8418 execute_command_to_ui_file.
8419
8420 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8421
8422 * top.h (saved_command_line): Remove declaration.
8423 * top.c (previous_saved_command_line, previous_repeat_arguments):
8424 New variables.
8425 (saved_command_line): Make static, define together with other
8426 'repeat variables'.
8427 (dont_repeat): Clear repeat_arguments.
8428 (repeat_previous, get_saved_command_line, save_command_line):
8429 New functions.
8430 (gdb_init): Initialize saved_command_line
8431 and previous_saved_command_line.
8432 * main.c (captured_main_1): Remove saved_command_line initialization.
8433 * event-top.c (handle_line_of_input): Update to use
8434 the new 'repeat' related functions instead of direct access to
8435 saved_command_line.
8436 * command.h (repeat_previous, get_saved_command_line,
8437 save_command_line): New declarations.
8438 (dont_repeat): Add comment.
8439
8440 2019-05-30 Tom Tromey <tromey@adacore.com>
8441
8442 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
8443 Fix comment.
8444 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
8445
8446 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
8447
8448 PR cli/24587
8449 * completer.c (complete): Initialize variable word.
8450
8451 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
8452
8453 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
8454 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
8455 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
8456 'body' is NULL to the outter 'if', protecting the '!is_define'
8457 situation as well.
8458
8459 2019-05-29 Tom Tromey <tromey@adacore.com>
8460
8461 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
8462 (dwarf_unknown): New function.
8463 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
8464 (dwarf_type_encoding_name): Use dwarf_unknown.
8465
8466 2019-05-29 Tom Tromey <tromey@adacore.com>
8467
8468 PR c++/20020:
8469 * cp-valprint.c (cp_print_value_fields): Call
8470 cp_print_static_field inside "try".
8471
8472 2019-05-29 Tom Tromey <tromey@adacore.com>
8473
8474 * inflow.c (struct terminal_info): Add default operator=.
8475 * configure: Rebuild.
8476 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
8477 -Wdeprecated-copy-dtor, -Wredundant-move.
8478
8479 2019-05-29 Tom Tromey <tromey@adacore.com>
8480
8481 * NEWS: Add entry.
8482 * infcmd.c (print_return_value_1): Handle finish_print
8483 option.
8484 (show_print_finish): New function.
8485 (_initialize_infcmd): Add "set/show print finish" commands.
8486 * valprint.c (user_print_options): Initialize new member.
8487 * valprint.h (struct value_print_options) <finish_print>: New
8488 member.
8489
8490 2019-05-28 Tom Tromey <tromey@adacore.com>
8491
8492 * ada-lang.c (ada_remove_Xbn_suffix)
8493 (find_old_style_renaming_symbol)
8494 (parse_old_style_renaming): Remove.
8495 (ada_find_renaming_symbol): Don't call
8496 find_old_style_renaming_symbol.
8497 (ada_is_renaming_symbol): Rename from
8498 ada_find_renaming_symbol. Remove "block" parameter. Return
8499 bool. Now static.
8500 (ada_read_var_value): Update and simplify.
8501 * ada-exp.y (write_var_or_type): Remove old code.
8502
8503 2019-05-28 Alan Hayward <alan.hayward@arm.com>
8504
8505 PR gdb/25010
8506 * event-top.c: Remove include comment.
8507 * inflow.c (class scoped_ignore_sigttou): Move from here...
8508 * inflow.h (class scoped_ignore_sigttou): ...to here.
8509 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
8510 * top.c: Remove include comment.
8511
8512 2019-05-27 Tom Tromey <tom@tromey.com>
8513
8514 * NEWS: Fix typo.
8515
8516 2019-05-22 Tom Tromey <tromey@adacore.com>
8517
8518 * target.c (target_follow_exec): Constify parameter.
8519 * target-delegates.c: Rebuild.
8520 * remote.c (remote_target::follow_exec): Constify parameter.
8521 * infrun.c (follow_exec): Constify parameter.
8522 * target.h (struct target_ops) <follow_exec>: Constify parameter.
8523 (target_follow_exec): Likewise.
8524
8525 2019-05-22 Alan Hayward <alan.hayward@arm.com>
8526
8527 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
8528 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
8529
8530 2019-05-22 Alan Hayward <alan.hayward@arm.com>
8531
8532 * NEWS: Add debugredirect and testsuite sections.
8533
8534 2019-05-22 Simon Cook <simon.cook@embecosm.com>
8535
8536 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
8537 target descriptions using exclusively floating point register name
8538 aliases.
8539
8540 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8541
8542 PR gdb/18644:
8543 * f-lang.c (build_fortran_types): Handle the case where
8544 gdbarch_floatformat_for_type returns a nullptr.
8545
8546 2019-05-21 Tom de Vries <tdevries@suse.de>
8547
8548 PR cli/24587
8549 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
8550
8551 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
8552
8553 PR gdb/18644:
8554 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
8555 16-byte floats.
8556 * i386-tdep.c (i386_floatformat_for_type): Use
8557 floatformats_ia64_quad for the 16-byte floating point component
8558 within a fortran 32-byte complex number.
8559
8560 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
8561
8562 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
8563 delete default constructor.
8564 (find_partial_die): Update to return const struct.
8565 (partial_die_parent_scope): Move variable declaration into scope
8566 of its use and change its type to auto.
8567 (guess_partial_die_structure_name): Likewise.
8568 (partial_die_info::fixup): Likewise.
8569
8570 2019-05-17 Tom Tromey <tromey@adacore.com>
8571
8572 * source.c (find_and_open_source): Remove cast.
8573
8574 2019-05-17 Tom Tromey <tromey@adacore.com>
8575
8576 * annotate.c (annotate_source): Make "filename" const.
8577 * annotate.h (annotate_source): Use const.
8578
8579 2019-05-17 Alan Hayward <alan.hayward@arm.com>
8580
8581 * disasm.c (set_disassembler_options): Send errors to stderr.
8582
8583 2019-05-17 Alan Hayward <alan.hayward@arm.com>
8584
8585 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
8586 (cli_interp_base::set_logging): Check debug_redirect.
8587 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
8588 * cli/cli-logging.c (debug_redirect): Add static variable.
8589 (pop_output_files): Add default param.
8590 (handle_redirections): Print debug setting.
8591 (show_logging_command): Likewise.
8592 (_initialize_cli_logging): Add debugredirect command.
8593 * interps.c (current_interp_set_logging): Add debug_redirect
8594 parameter.
8595 * interps.h (set_logging): Add debug_redirect parameter.
8596 (current_interp_set_logging): Likewise.
8597 * mi/mi-common.h: Likewise.
8598 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
8599
8600 2019-05-17 Alan Hayward <alan.hayward@arm.com>
8601 Tom Tromey <tromey@adacore.com>
8602
8603 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
8604 directly.
8605 * cli/cli-interp.h (make_logging_output): Remove declaration.
8606 * cli/cli-logging.c (make_logging_output): Remove function.
8607 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
8608 directly.
8609 * ui-file.c (tee_file::tee_file): Remove bools.
8610 (tee_file::~tee_file): Remove deletes.
8611 * ui-file.h (tee_file): Remove bools.
8612
8613 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
8614
8615 * mi/mi-cmds.h (mi_cmd_complete): New function.
8616 * mi/mi-main.c (mi_cmd_complete): Likewise.
8617 * mi/mi-cmds.c: Define new MI command -complete.
8618 * NEWS: Mention new -complete command.
8619
8620 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
8621
8622 * completer.h (complete): New function.
8623 * completer.c (complete): Likewise.
8624 * cli/cli-cmds.c: (complete_command): Update to use new complete()
8625 function defined in completer.h.
8626
8627 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
8628
8629 * MAINTAINERS (Write After Approval): Add myself.
8630
8631 2019-05-17 Tom de Vries <tdevries@suse.de>
8632
8633 PR gdb/24094
8634 * dwarf2read.c (struct cu_partial_die_info): New struct.
8635 (find_partial_die): Return cu_partial_die_info.
8636 (partial_die_parent_scope, guess_partial_die_structure_name)
8637 (partial_die_info::fixup): Handle new return type of find_partial_die.
8638
8639 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8640
8641 PR breakpoints/24541
8642 * stap-probe.c (stap_parse_register_operand): Make "regname" an
8643 "std::string", simplifying the algorithm.
8644
8645 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8646
8647 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
8648 (stap_static_probe_ops::get_probes): Likewise.
8649
8650 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8651
8652 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
8653 '-')" and "else if".
8654 (stap_parse_single_operand): Join checks for
8655 "gdbarch_stap_parse_special_token_p" and
8656 "gdbarch_stap_parse_special_token" in the same "if" statement.
8657 Invert check when verifying for operation on register
8658 displacement.
8659
8660 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8661
8662 * stap-probe.c (stap_get_opcode): Update comment.
8663 (stap_get_expected_argument_type): Likewise.
8664 (handle_stap_probe): Likewise.
8665
8666 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8667
8668 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
8669 return type to 'bool'. Adjust comment. Use 'bool' when
8670 appropriate.
8671 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8672 * stap-probe.c (stap_parse_argument_1): Likewise.
8673 (stap_is_operator): Likewise.
8674 (stap_is_generic_prefix): Likewise.
8675 (stap_is_register_prefix): Likewise.
8676 (stap_is_register_indirection_prefix): Likewise.
8677 (stap_is_integer_prefix): Likewise.
8678 (stap_generic_check_suffix): Likewise.
8679 (stap_check_integer_suffix): Likewise.
8680 (stap_check_register_suffix): Likewise.
8681 (stap_check_register_indirection_suffix): Likewise.
8682 (stap_parse_register_operand): Likewise.
8683 (stap_parse_single_operand): Likewise.
8684 (stap_parse_argument_1): Likewise.
8685 (stap_probe::get_argument_count): Likewise.
8686 (stap_is_operator): Likewise.
8687
8688 2019-05-16 Tom Tromey <tromey@adacore.com>
8689
8690 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
8691 keyword to foreach.
8692
8693 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
8694
8695 * linux-thread-db.c (try_thread_db_load_1): Change return type
8696 to bool.
8697 (try_thread_db_load): Likewise.
8698 (try_thread_db_load_from_pdir_1): Likewise.
8699 (try_thread_db_load_from_pdir): Likewise.
8700 (try_thread_db_load_from_sdir): Likewise.
8701 (try_thread_db_load_from_dir): Likewise.
8702 (thread_db_load_search): Likewise.
8703 (has_libpthread): Likewise.
8704 (thread_db_load): Likewise.
8705
8706 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
8707
8708 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
8709 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
8710 NULL, and complain/return if that's the case.
8711
8712 2019-05-15 John Darrington <john@darrington.wattle.id.au>
8713
8714 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
8715 (advance, posn, abstract_read_memory): New functions.
8716 [struct mem_read_abstraction]: New struct.
8717 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
8718
8719 2019-05-14 Tom Tromey <tromey@adacore.com>
8720
8721 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
8722 value is not lval_memory.
8723
8724 2019-05-14 Tom Tromey <tromey@adacore.com>
8725
8726 * solib.c (info_sharedlibrary_command): Style the file name.
8727
8728 2019-05-14 Alan Hayward <alan.hayward@arm.com>
8729
8730 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
8731 (aarch64_vnv_type): Likewise.
8732 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
8733 * common/tdesc.c: Likewise.
8734 * common/tdesc.h (enum tdesc_type_kind): Likewise.
8735 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
8736 * features/aarch64-fpu.xml: Add ieee half view.
8737 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
8738 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
8739 * gdbtypes.h (struct builtin_type): Likewise.
8740 (struct objfile_type): Likewise.
8741
8742 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
8743
8744 * language.c (language_sniff_from_mangled_name): Fix "langauge"
8745 typo.
8746 * location.h (string_to_event_location): Likewise.
8747
8748 2019-05-11 Joel Brobecker <brobecker@adacore.com>
8749
8750 GDB 8.3 released.
8751
8752 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
8753
8754 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
8755 New variable declaration.
8756 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
8757 New variable.
8758 (print_one_breakpoint): Use ui_out::test_flags and new global
8759 variable to compute use_fixed_output.
8760 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
8761 Remove.
8762 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
8763 (mi_multi_location_breakpoint_output_fixed): Remove.
8764 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
8765 new variable.
8766 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
8767 fix_multi_location_breakpoint_output flag if version >= 3.
8768 * ui-out.h (enum ui_out_flag)
8769 <fix_multi_location_breakpoint_output>: New enumerator.
8770
8771 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
8772
8773 * contrib/cc-with-tweaks.sh: Validate dwz's work.
8774
8775 2019-05-10 Tom Tromey <tromey@adacore.com>
8776
8777 * ada-lang.c (catch_ada_completer): New function.
8778 (_initialize_ada_language): Use it.
8779
8780 2019-05-10 Tom Tromey <tromey@adacore.com>
8781
8782 * thread.c (print_thread_info): Make "requested_threads" const.
8783 * gdbthread.h (print_thread_info): Make "requested_threads"
8784 const.
8785 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
8786 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
8787
8788 2019-05-08 Tom Tromey <tom@tromey.com>
8789
8790 * gdbtypes.c (objfile_type_data): Change type.
8791 (objfile_type, _initialize_gdbtypes): Update.
8792
8793 2019-05-08 Tom Tromey <tom@tromey.com>
8794
8795 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
8796 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
8797 (_initialize_dwarf2_frame): Update.
8798
8799 2019-05-08 Tom Tromey <tom@tromey.com>
8800
8801 * objc-lang.c (objc_objfile_data): Change type.
8802 (find_methods): Update.
8803 (_initialize_objc_lang): Remove.
8804
8805 2019-05-08 Tom Tromey <tom@tromey.com>
8806
8807 * stabsread.c (rs6000_builtin_type_data): Change type.
8808 (rs6000_builtin_type, _initialize_stabsread): Update.
8809
8810 2019-05-08 Tom Tromey <tom@tromey.com>
8811
8812 * mips-tdep.c (mips_pdr_data): Remove.
8813 (_initialize_mips_tdep): Update.
8814
8815 2019-05-08 Tom Tromey <tom@tromey.com>
8816
8817 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
8818 (hppa_init_objfile_priv_data, read_unwind_info)
8819 (find_unwind_entry, _initialize_hppa_tdep): Update.
8820
8821 2019-05-08 Tom Tromey <tom@tromey.com>
8822
8823 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
8824 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
8825 on obstack.
8826 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
8827
8828 2019-05-08 Tom Tromey <tom@tromey.com>
8829
8830 * mdebugread.c (basic_type_data): Change type.
8831 (basic_type, _initialize_mdebugread): Update.
8832
8833 2019-05-08 Tom Tromey <tom@tromey.com>
8834
8835 * common/gdb_unique_ptr.h (struct noop_deleter): New.
8836
8837 2019-05-08 Tom Tromey <tom@tromey.com>
8838
8839 * nto-tdep.c (nto_inferior_data_reg): Change type.
8840 (nto_inferior_data): Update.
8841 (nto_inferior_data_cleanup, nto_new_inferior_data)
8842 (_initialize_nto_tdep): Remove.
8843 * nto-tdep.h (struct nto_inferior_data): Add initializers.
8844
8845 2019-05-08 Tom Tromey <tom@tromey.com>
8846
8847 * ada-lang.c (struct ada_inferior_data): Add initializers.
8848 (ada_inferior_data): Change type.
8849 (ada_inferior_data_cleanup): Remove.
8850 (get_ada_inferior_data, ada_inferior_exit)
8851 (struct ada_pspace_data): Add initializers, destructor.
8852 (ada_pspace_data_handle): Change type.
8853 (get_ada_pspace_data): Update.
8854 (ada_pspace_data_cleanup): Remove.
8855
8856 2019-05-08 Tom Tromey <tom@tromey.com>
8857
8858 * coffread.c (struct coff_symfile_info): Add initializers.
8859 (coff_objfile_data_key): Move lower. Change type.
8860 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
8861 Update.
8862 (coff_free_info): Remove.
8863
8864 2019-05-08 Tom Tromey <tom@tromey.com>
8865
8866 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
8867 (fbsd_pspace_data_handle): Move lower. Change type.
8868 (get_fbsd_pspace_data): Update.
8869 (fbsd_pspace_data_cleanup): Remove.
8870 (_initialize_fbsd_tdep): Update.
8871
8872 2019-05-08 Tom Tromey <tom@tromey.com>
8873
8874 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
8875 (get_ada_tasks_pspace_data): Update.
8876 (ada_tasks_pspace_data_cleanup): Remove.
8877 (_initialize_tasks): Update.
8878 (ada_tasks_inferior_data_handle): Change type.
8879 (get_ada_tasks_inferior_data): Update.
8880 (ada_tasks_inferior_data_cleanup): Remove.
8881 (struct ada_tasks_pspace_data): Add initializers.
8882
8883 2019-05-08 Tom Tromey <tom@tromey.com>
8884
8885 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
8886 * symfile-debug.c (debug_sym_get_probes): Change type.
8887 * stap-probe.c (handle_stap_probe):
8888 (stap_static_probe_ops::get_probes): Change type.
8889 * probe.h (class static_probe_ops) <get_probes>: Change type.
8890 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
8891 (parse_probes_in_pspace): Update.
8892 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
8893 Update.
8894 (any_static_probe_ops::get_probes): Change type.
8895 * elfread.c (elfread_data): New typedef.
8896 (probe_key): Change type.
8897 (elf_get_probes): Likewise. Update.
8898 (probe_key_free): Remove.
8899 (_initialize_elfread): Update.
8900 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
8901 Change type.
8902 (dtrace_process_dof_probe, dtrace_process_dof)
8903 (dtrace_static_probe_ops::get_probe): Change type.
8904
8905 2019-05-08 Tom Tromey <tom@tromey.com>
8906
8907 * xcoffread.c (struct xcoff_symfile_info): Rename from
8908 coff_symfile_info. Add initializers.
8909 (xcoff_objfile_data_key): Move lower. Change type.
8910 (XCOFF_DATA): Rewrite.
8911 (xcoff_free_info): Remove.
8912 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
8913 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
8914 (xcoff_initial_scan): Update.
8915
8916 2019-05-08 Tom Tromey <tom@tromey.com>
8917
8918 * solib-svr4.c (struct svr4_info): Add initializers and
8919 destructor.
8920 <probes_table>: Now an htab_up.
8921 (solib_svr4_pspace_data): Change type.
8922 (free_probes_table): Simplify.
8923 (~svr4_info): Rename from svr4_pspace_data_cleanup.
8924 (get_svr4_info, probes_table_htab_remove_objfile_probes)
8925 (probes_table_remove_objfile_probes, register_solib_event_probe)
8926 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
8927 (_initialize_svr4_solib): Update.
8928
8929 2019-05-08 Tom Tromey <tom@tromey.com>
8930
8931 * remote.c (remote_pspace_data): Change type.
8932 (remote_pspace_data_cleanup): Remove.
8933 (get_remote_exec_file, set_pspace_remote_exec_file)
8934 (_initialize_remote): Update.
8935
8936 2019-05-08 Tom Tromey <tom@tromey.com>
8937
8938 * breakpoint.c (breakpoint_objfile_key): Change type.
8939 (get_breakpoint_objfile_data): Update.
8940 (free_breakpoint_objfile_data): Remove.
8941 (_initialize_breakpoint): Update.
8942
8943 2019-05-08 Tom Tromey <tom@tromey.com>
8944
8945 * linux-tdep.c (struct linux_info): Add initializers.
8946 (linux_inferior_data): Move. Change type.
8947 (invalidate_linux_cache_inf): Update.
8948 (linux_inferior_data_cleanup): Remove.
8949 (get_linux_inferior_data, _initialize_linux_tdep): Update.
8950
8951 2019-05-08 Tom Tromey <tom@tromey.com>
8952
8953 * auxv.c (auxv_inferior_data): Move. Change type.
8954 (auxv_inferior_data_cleanup): Remove.
8955 (invalidate_auxv_cache_inf): Rewrite.
8956 (get_auxv_inferior_data, _initialize_auxv): Update.
8957
8958 2019-05-08 Tom Tromey <tom@tromey.com>
8959
8960 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
8961 (symfile_debug_objfile_data_key): Change type.
8962 (symfile_debug_installed, debug_qf_has_symbols)
8963 (debug_qf_find_last_source_symtab)
8964 (debug_qf_forget_cached_source_info)
8965 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
8966 (debug_qf_print_stats, debug_qf_dump)
8967 (debug_qf_expand_symtabs_for_function)
8968 (debug_qf_expand_all_symtabs)
8969 (debug_qf_expand_symtabs_with_fullname)
8970 (debug_qf_map_matching_symbols)
8971 (debug_qf_expand_symtabs_matching)
8972 (debug_qf_find_pc_sect_compunit_symtab)
8973 (debug_qf_map_symbol_filenames)
8974 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
8975 (debug_sym_new_init, debug_sym_init, debug_sym_read)
8976 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
8977 (debug_sym_read_linetable, debug_sym_relocate): Update.
8978 (symfile_debug_free_objfile): Remove.
8979 (install_symfile_debug_logging, _initialize_symfile_debug):
8980 Update.
8981
8982 2019-05-08 Tom Tromey <tom@tromey.com>
8983
8984 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
8985 allocate_on_obstack.
8986 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
8987 (get_dwarf2_per_objfile): Update.
8988 (set_dwarf2_per_objfile): Remove.
8989 (dwarf2_has_info, dwarf2_get_section_info): Update.
8990 (dwarf2_free_objfile): Remove.
8991 (_initialize_dwarf2_read): Update.
8992
8993 2019-05-08 Tom Tromey <tom@tromey.com>
8994
8995 * auto-load.c (struct auto_load_pspace_info): Add destructor and
8996 initializers.
8997 <unsupported_script_warning_printed,
8998 script_not_found_warning_printed>: Now bool.
8999 (auto_load_pspace_data): Change type.
9000 (~auto_load_pspace_info): Rename from
9001 auto_load_pspace_data_cleanup.
9002 (get_auto_load_pspace_data, init_loaded_scripts_info)
9003 (clear_section_scripts, maybe_print_unsupported_script_warning)
9004 (maybe_print_script_not_found_warning, _initialize_auto_load):
9005 Update.
9006
9007 2019-05-08 Tom Tromey <tom@tromey.com>
9008
9009 * objfiles.c (objfile_pspace_info): Add destructor and
9010 initializers.
9011 (objfiles_pspace_data): Change type.
9012 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
9013 (get_objfile_pspace_data): Update.
9014 (objfiles_bfd_data): Change type.
9015 (get_objfile_bfd_data): Update.
9016 (objfile_bfd_data_free, _initialize_objfiles): Remove.
9017
9018 2019-05-08 Tom Tromey <tom@tromey.com>
9019
9020 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
9021 Change type.
9022 (get_catch_syscall_inferior_data): Update.
9023 (catch_syscall_inferior_data_cleanup): Remove.
9024 (_initialize_break_catch_syscall): Update.
9025
9026 2019-05-08 Tom Tromey <tom@tromey.com>
9027
9028 * inflow.c (struct terminal_info): Add destructor and
9029 initializers.
9030 (inflow_inferior_data): Change type.
9031 (~terminal_info): Rename from inflow_inferior_data_cleanup.
9032 (get_inflow_inferior_data, inflow_inferior_exit)
9033 (swap_terminal_info, _initialize_inflow): Update.
9034
9035 2019-05-08 Tom Tromey <tom@tromey.com>
9036
9037 * target-dcache.c (target_dcache_cleanup): Remove.
9038 (target_dcache_aspace_key): Change type.
9039 (target_dcache_init_p, target_dcache_invalidate)
9040 (target_dcache_get, target_dcache_get_or_init)
9041 (_initialize_target_dcache): Update.
9042 * dcache.h (struct dcache_deleter): New.
9043
9044 2019-05-08 Tom Tromey <tom@tromey.com>
9045
9046 * symtab.c (struct symbol_cache): Add destructor and
9047 initializers.
9048 (symbol_cache_key): Move. Change type.
9049 (make_symbol_cache, free_symbol_cache): Remove.
9050 (get_symbol_cache): Update.
9051 (symbol_cache_cleanup): Remove.
9052 (ALL_PSPACES, symbol_cache_flush)
9053 (maintenance_print_symbol_cache)
9054 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
9055 Update.
9056
9057 2019-05-08 Tom Tromey <tom@tromey.com>
9058
9059 * symtab.c (struct main_info): Add destructor and initializers.
9060 (main_progspace_key): Move. Change type.
9061 (get_main_info): Update.
9062 (main_info_cleanup): Remove.
9063 (_initialize_symtab): Update.
9064
9065 2019-05-08 Tom Tromey <tom@tromey.com>
9066
9067 * registry.h (DECLARE_REGISTRY): Define the _key class.
9068
9069 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
9070
9071 * NEWS: Merge two 'New commands' sections.
9072
9073 2019-05-08 Joel Brobecker <brobecker@adacore.com>
9074
9075 * ada-valprint.c (ada_val_print_gnat_array): Remove language
9076 parameter and use Ada language definition instead.
9077 (ada_val_print_ptr): Remove unused language parameter.
9078 (ada_val_print_num): Remove language parameter and use Ada language
9079 definition instead.
9080 (ada_val_print_enum, ada_val_print_flt): Remove unused language
9081 parameter.
9082 (ada_val_print_struct_union, ada_val_print_ref): Remove language
9083 parameter and use Ada language definition instead.
9084 (ada_val_print_1): Update all ada_val_print_xxx calls.
9085 Remove language parameter.
9086 (ada_val_print): Update ada_val_print_1 call.
9087
9088 2019-05-08 Tom Tromey <tromey@adacore.com>
9089
9090 * remote.c (remote_hw_watchpoint_limit)
9091 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
9092 Now static.
9093
9094 2019-05-08 Tom Tromey <tromey@adacore.com>
9095
9096 * maint.c (_initialize_maint_cmds): Move initialization code to
9097 remote.c.
9098 (watchdog, show_watchdog): Move to remote.c.
9099 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
9100 "watchdog" static.
9101 (_initialize_remote): Move initialization code from maint.c.
9102 * defs.h (watchdog): Don't declare.
9103
9104 2019-05-08 Tom Tromey <tromey@adacore.com>
9105
9106 * tui/tui-interp.c: Include main.h.
9107 * interps.c: Include main.h.
9108 * main.h (interpreter_p): Declare.
9109 * defs.h (interpreter_p): Don't declare.
9110
9111 2019-05-08 Tom Tromey <tromey@adacore.com>
9112
9113 * dwarf2loc.c: Include dwarf2read.h.
9114 * defs.h (read_unsigned_leb128): Don't declare.
9115 * dwarf2read.h (read_unsigned_leb128): Declare.
9116
9117 2019-05-08 Tom Tromey <tromey@adacore.com>
9118
9119 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
9120 method.
9121
9122 2019-05-08 Tom Tromey <tromey@adacore.com>
9123
9124 * utils.c (fputs_maybe_filtered): Reset style after paging, even
9125 when no wrap column is set.
9126
9127 2019-05-08 Tom Tromey <tromey@adacore.com>
9128
9129 * c-lang.c (c_get_string): Handle non-C-style arrays.
9130
9131 2019-05-08 Tom Tromey <tromey@adacore.com>
9132
9133 * typeprint.c (print_offset_data::update): Print the bit offset,
9134 not the number of bits remaining.
9135
9136 2019-05-08 Tom Tromey <tromey@adacore.com>
9137
9138 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
9139 padding at end of comment.
9140
9141 2019-05-08 Tom Tromey <tromey@adacore.com>
9142
9143 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
9144 Compare main types.
9145
9146 2019-05-06 Tom Tromey <tom@tromey.com>
9147
9148 * common/scoped_mmap.c: Include common-defs.h.
9149 * common/scoped_mmap.h: Don't include config.h.
9150
9151 2019-05-04 Tom Tromey <tom@tromey.com>
9152
9153 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
9154 (struct aarch64_call_info): Add initializers.
9155 <si>: Now a std::vector.
9156 (pass_on_stack, aarch64_push_dummy_call): Update.
9157
9158 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
9159 Tom Tromey <tom@tromey.com>
9160
9161 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
9162 (ppc_threads): Now a std::vector. Now static.
9163 (hwdebug_find_thread_points_by_tid)
9164 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
9165 Update.
9166
9167 2019-05-04 Tom Tromey <tom@tromey.com>
9168
9169 * arc-tdep.c (arc_tdesc_init): Return bool.
9170
9171 2019-05-04 Tom Tromey <tom@tromey.com>
9172
9173 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
9174 Use gdb_assert_not_reached.
9175
9176 2019-05-04 Tom Tromey <tom@tromey.com>
9177
9178 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
9179 "false".
9180
9181 2019-05-04 Tom Tromey <tom@tromey.com>
9182
9183 * arc-tdep.c (arc_tdesc_init): Use bool.
9184
9185 2019-05-04 Tom Tromey <tom@tromey.com>
9186
9187 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
9188
9189 2019-05-04 Tom Tromey <tom@tromey.com>
9190
9191 * cli/cli-cmds.c (valid_command_p): Return bool.
9192
9193 2019-05-04 Tom Tromey <tom@tromey.com>
9194
9195 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
9196 * command.h (valid_user_defined_cmd_name_p): Channge return type.
9197
9198 2019-05-04 Raul Tambre <raul@tambre.ee>
9199
9200 * python/lib/gdb/prompt.py (_ExtendedPrompt)
9201 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
9202 operator for comparison.
9203
9204 2019-05-04 Tom Tromey <tom@tromey.com>
9205
9206 * psymtab.c (psymbol_name_matches, match_partial_symbol)
9207 (lookup_partial_symbol, print_partial_symbols)
9208 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
9209 (psymbol_compare): Update.
9210 (add_psymbol_to_bcache): Clear the entire psymbol.
9211 (maintenance_check_psymtabs): Update.
9212 * psympriv.h (struct partial_symbol): Don't derive from
9213 general_symbol_info.
9214 <obj_section, unrelocated_address, address,
9215 set_unrelocated_address>: Update.
9216 <ginfo>: New member.
9217 * dwarf-index-write.c (write_psymbols, debug_names::insert)
9218 (debug_names::write_psymbols): Update.
9219
9220 2019-05-04 Tom de Vries <tdevries@suse.de>
9221
9222 * contrib/cc-with-tweaks.sh: Support -n arg.
9223
9224 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9225
9226 * corelow.c (core_target::detach): Ensure frame cache and
9227 register caches are cleared.
9228 inferior.c (exit_inferior_1): Likewise.
9229
9230 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
9231 Tom Tromey <tom@tromey.com>
9232
9233 * dictionary.c (collate_pending_symbols_by_language): Remove
9234 "struct" from foreach.
9235 * symtab.c (lookup_global_symbol_from_objfile)
9236 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
9237 foreach.
9238 * ser-tcp.c (net_open): Remove "struct" from foreach.
9239 * objfiles.c (objfile_relocate, objfile_rebase)
9240 (objfile_has_symbols): Remove "struct" from foreach.
9241 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
9242 from foreach.
9243 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
9244 foreach.
9245 * darwin-nat.c (thread_info_from_private_thread_info): Remove
9246 "struct" from foreach.
9247 * ada-lang.c (create_excep_cond_exprs)
9248 (ada_exception_catchpoint_cond_string): Remove "struct" from
9249 foreach.
9250
9251 2019-05-03 Tom Tromey <tromey@adacore.com>
9252
9253 * ada-exp.y (convert_char_literal): Check suffix of each
9254 enumerator.
9255
9256 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
9257
9258 PR ada/21406:
9259 * ada-exp.y (yywrap): Don't define.
9260 * ada-lex.l (%option): Add noyywrap
9261 (yywrap): Remove.
9262
9263 2019-05-03 Eli Zaretskii <eliz@gnu.org>
9264
9265 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
9266 _WIN32_WINNT to the XP level, unless already defined to a higher
9267 level.
9268
9269 * unittests/parse-connection-spec-selftests.c:
9270 * ser-tcp.c:
9271 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
9272 override.
9273
9274 * symfile.c (find_separate_debug_file): Remove colon from the
9275 drive spec of DOS/Windows file names of the target, so that the
9276 file name produced from DEBUGDIR and the target's directory will
9277 be valid on DOS/Windows systems.
9278
9279 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
9280
9281 * rust-lang.c (val_print_struct): Handle printing structures
9282 containing strings.
9283
9284 2019-05-02 Tom Tromey <tromey@adacore.com>
9285
9286 * valarith.c (_initialize_valarith): Remove.
9287
9288 2019-05-01 Tom Tromey <tromey@adacore.com>
9289
9290 * ada-lang.c (ada_value_primitive_field): Treat more fields as
9291 bitfields.
9292
9293 2019-05-01 Tom Tromey <tromey@adacore.com>
9294
9295 * ada-lang.c (ada_value_assign): Correctly compute starting offset
9296 for big-endian copies.
9297
9298 2019-04-30 Ali Tamur <tamur@google.com>
9299 * gdb/dwarf2read.c (read_3_bytes): New declaration.
9300 (read_attribute_value): Added DW_FORM_strx1-4 cases.
9301 (read_3_bytes): New function.
9302
9303 2019-04-30 Joel Brobecker <brobecker@adacore.com>
9304
9305 * windows-nat.c (main_thread_id): Delete.
9306 (handle_output_debug_string): Replace main_thread_id by
9307 current_event.dwThreadId.
9308 (fake_create_process): Likewise.
9309 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
9310 Do not set main_thread_id.
9311 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
9312 current_event.dwThreadId.
9313 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
9314
9315 2019-04-30 Joel Brobecker <brobecker@adacore.com>
9316
9317 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
9318 Use current_event.dwThreadId instead of main_thread_id.
9319
9320 2019-04-30 Tom Tromey <tromey@adacore.com>
9321
9322 * ada-lang.c (ada_lookup_simple_minsyms): New function.
9323 (create_excep_cond_exprs): Iterate over program spaces.
9324 (ada_exception_catchpoint_cond_string): Examine all minimal
9325 symbols for exception types.
9326
9327 2019-04-30 Tom Tromey <tromey@adacore.com>
9328
9329 PR c++/24470:
9330 * dwarf2read.c (process_structure_scope): Handle case where type
9331 has template parameters but no symbol was created.
9332
9333 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9334 Chris January <chris.january@arm.com>
9335
9336 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
9337 qualifier.
9338 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
9339
9340 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9341
9342 * f-typeprint.c (f_print_type): Update rules for printing
9343 whitespace.
9344 (f_type_print_varspec_suffix): Likewise.
9345
9346 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9347 Chris January <chris.january@arm.com>
9348
9349 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
9350 function arguments.
9351
9352 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9353
9354 * f-lang.c (build_fortran_types): Change name of void type to
9355 lower case.
9356 * f-typeprint.c (f_type_print_base): Print the name of the void
9357 type, rather than a fixed string.
9358 * f-valprint.c (f_decorations): Use lower case void string.
9359
9360 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9361 Chris January <chris.january@arm.com>
9362
9363 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
9364 types for Fortran.
9365
9366 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9367 Chris January <chris.january@arm.com>
9368 David Lecomber <david.lecomber@arm.com>
9369
9370 * f-exp.y (BINOP_INTRINSIC): New token.
9371 (exp): New parser rule handling BINOP_INTRINSIC.
9372 (f77_keywords): Add new builtin procedures.
9373 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
9374 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9375 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
9376 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9377 (print_unop_subexp_f): New function.
9378 (print_binop_subexp_f): New function.
9379 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
9380 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9381 (dump_subexp_body_f): Likewise.
9382 (operator_check_f): Likewise.
9383 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
9384 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
9385
9386 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9387
9388 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
9389 UNOP_KIND.
9390 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
9391 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
9392 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
9393 (operator_length_f): New fuction.
9394 (print_subexp_f): New function.
9395 (op_name_f): New function.
9396 (dump_subexp_body_f): New function.
9397 (operator_check_f): New function.
9398 (exp_descriptor_f): Replace standard expression handling functions
9399 with new functions.
9400 * gdb/fortran-operator.def: New file.
9401 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
9402 * gdb/std-operator.def: Remove UNOP_KIND.
9403
9404 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9405
9406 * std-operator.def: Remove unbalanced, stray double quote
9407 character.
9408
9409 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9410 Chris January <chris.january@arm.com>
9411 Daniel Everett <daniel.everett@arm.com>
9412 Nick Forrington <nick.forrington@arm.com>
9413 Richard Bunt <richard.bunt@arm.com>
9414
9415 * cp-valprint.c (cp_print_value_fields): Allow an additional level
9416 of depth when printing anonymous structs or unions.
9417 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
9418 Don't print either the top-level value, or the children if the
9419 max-depth is exceeded.
9420 (ppscm_print_children): When printing the key of a map, allow one
9421 extra level of depth.
9422 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
9423 print either the top-level value, or the children if the max-depth
9424 is exceeded.
9425 (print_children): When printing the key of a map, allow one extra
9426 level of depth.
9427 * python/py-value.c (valpy_format_string): Add max_depth keyword.
9428 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
9429 (user_print_options): Initialise max_depth field.
9430 (val_print_scalar_or_string_type_p): New function.
9431 (val_print): Check to see if the max depth has been reached.
9432 (val_print_check_max_depth): Define new function.
9433 (show_print_max_depth): New function.
9434 (_initialize_valprint): Add 'print max-depth' option.
9435 * valprint.h (struct value_print_options) <max_depth>: New field.
9436 (val_print_check_max_depth): Declare new function.
9437 * NEWS: Document new feature.
9438
9439 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9440
9441 * ada-lang.c (ada_language_defn): Initialise new field.
9442 * c-lang.c (c_is_string_type_p): New function.
9443 (c_language_defn): Initialise new field.
9444 (cplus_language_defn): Initialise new field.
9445 (asm_language_defn): Initialise new field.
9446 (minimal_language_defn): Initialise new field.
9447 * c-lang.h (c_is_string_type_p): Declare new function.
9448 * d-lang.c (d_language_defn): Initialise new field.
9449 * f-lang.c (f_is_string_type_p): New function.
9450 (f_language_defn): Initialise new field.
9451 * go-lang.c (go_is_string_type_p): New function.
9452 (go_language_defn): Initialise new field.
9453 * language.c (default_is_string_type_p): New function.
9454 (unknown_language_defn): Initialise new field.
9455 (auto_language_defn): Initialise new field.
9456 * language.h (struct language_defn) <la_is_string_type_p>: New
9457 member variable.
9458 (default_is_string_type_p): Declare new function.
9459 * m2-lang.c (m2_language_defn): Initialise new field.
9460 * objc-lang.c (objc_language_defn): Initialise new field.
9461 * opencl-lang.c (opencl_language_defn): Initialise new field.
9462 * p-lang.c (pascal_is_string_type_p): New function.
9463 (pascal_language_defn): Initialise new field.
9464 * rust-lang.c (rust_is_string_type_p): New function.
9465 (rust_language_defn): Initialise new field.
9466
9467 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9468
9469 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
9470 New field.
9471 * ada-lang.c (ada_language_defn): Initialise new field.
9472 * c-lang.c (c_language_defn): Likewise.
9473 (cplus_language_defn): Likewise.
9474 (asm_language_defn): Likewise.
9475 (minimal_language_defn): Likewise.
9476 * d-lang.c (d_language_defn): Likewise.
9477 * f-lang.c (f_language_defn): Likewise.
9478 * go-lang.c (go_language_defn): Likewise.
9479 * language.c (unknown_language_defn): Likewise.
9480 (auto_language_defn): Likewise.
9481 * m2-lang.c (m2_language_defn): Likewise.
9482 * objc-lang.c (objc_language_defn): Likewise.
9483 * opencl-lang.c (opencl_language_defn): Likewise.
9484 * p-lang.c (pascal_language_defn): Likewise.
9485 * rust-lang.c (rust_language_defn): Likewise.
9486
9487 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9488
9489 * ada-lang.c (ada_is_character_type): Change return type to bool.
9490 (ada_is_string_type): Likewise.
9491 * ada-lang.h (ada_is_character_type): Update declaration
9492 (ada_is_string_type): Likewise.
9493
9494 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9495
9496 Support style in 'frame|thread apply'
9497
9498 * gdbcmd.h (execute_command_to_string): New term_out parameter.
9499 * record.c (record_start, record_stop): Update callers of
9500 execute_command_to_string with false.
9501 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
9502 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
9503 methods.
9504 (class string_file): New constructor with term_out parameter.
9505 Override methods term_out and can_emit_style_escape. New member
9506 term_out.
9507 (class stdio_file): Override can_emit_style_escape.
9508 (class tee_file): Override term_out and can_emit_style_escape.
9509 * utils.h (can_emit_style_escape): Remove.
9510 * utils.c (can_emit_style_escape): Likewise.
9511 Update all callers of can_emit_style_escape (SOMESTREAM) to
9512 SOMESTREAM->can_emit_style_escape.
9513 * source-cache.c (source_cache::get_source_lines): Likewise.
9514 * stack.c (frame_apply_command_count): Call execute_command_to_string
9515 passing the term_out characteristic of the current gdb_stdout.
9516 * thread.c (thr_try_catch_cmd): Likewise.
9517 * top.c (execute_command_to_string): pass term_out parameter
9518 to construct the string_file for the command output.
9519 * ui-file.c (term_cli_styling): New function (most code moved
9520 from utils.c can_emit_style_escape).
9521 (string_file::string_file, string_file::can_emit_style_escape,
9522 stdio_file::can_emit_style_escape, tee_file::term_out,
9523 tee_file::can_emit_style_escape): New functions.
9524
9525 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9526
9527 * NEWS: Mention the new set|show may-call-functions.
9528 * infcall.c (may_call_functions_p): New variable.
9529 (show_may_call_functions_p): New function.
9530 (call_function_by_hand_dummy): Throws an error if not
9531 may-call-functions.
9532 (_initialize_infcall): Call add_setshow_boolean_cmd for
9533 may-call-functions.
9534
9535 2019-04-25 Keith Seitz <keiths@redhat.com>
9536
9537 PR c++/24367
9538 * cp-support.c (inspect_type): Don't attempt substitutions
9539 of symbol with the same name.
9540
9541 2019-04-25 Tom Tromey <tromey@adacore.com>
9542
9543 PR gdb/24475:
9544 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
9545 static.
9546
9547 2019-04-25 Tom Tromey <tromey@adacore.com>
9548
9549 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
9550 rvalue reference.
9551 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
9552 (gdb_xml_parser::parse): Use std::move.
9553 * python/python-internal.h (gdbpy_convert_exception): Take a const
9554 reference.
9555 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
9556 std::move.
9557 * python/py-utils.c (gdbpy_convert_exception): Take a const
9558 reference.
9559 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
9560 Use std::move.
9561 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
9562 Use std::move.
9563 * mi/mi-main.c (mi_print_exception): Take a const reference.
9564 * main.c (handle_command_errors): Take a const reference.
9565 * linespec.c (parse_linespec): Use std::move.
9566 * infcall.c (run_inferior_call): Use std::move.
9567 (call_function_by_hand_dummy): Use std::move.
9568 * exec.c (try_open_exec_file): Use std::move.
9569 * exceptions.h (exception_print, exception_fprintf)
9570 (exception_print_same): Update.
9571 * exceptions.c (print_exception, exception_print)
9572 (exception_fprintf, exception_print_same): Change parameters to
9573 const reference.
9574 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
9575 * common/new-op.c: Use std::move.
9576 * common/common-exceptions.h (struct gdb_exception): Add move
9577 constructor.
9578 (struct gdb_exception_error, struct gdb_exception_quit, struct
9579 gdb_quit_bad_alloc): Change constructor to move constructor.
9580 (throw_exception): Change parameter to rvalue reference.
9581 * common/common-exceptions.c (throw_exception): Take rvalue
9582 reference.
9583 * cli/cli-interp.c (safe_execute_command): Use std::move.
9584 * breakpoint.c (insert_bp_location, location_to_sals): Use
9585 std::move.
9586
9587 2019-04-25 Tom Tromey <tromey@adacore.com>
9588
9589 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
9590 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
9591 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
9592 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
9593 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
9594 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
9595 guile/scm-value.c: Use unpack.
9596 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
9597 gdbscm_gdb_exception.
9598 (gdbscm_throw_gdb_exception): Likewise.
9599 (struct gdbscm_gdb_exception): New.
9600 (unpack): New function.
9601 (gdbscm_wrap): Use unpack.
9602
9603 2019-04-25 Tom Tromey <tromey@adacore.com>
9604
9605 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
9606 (gdb_rl_callback_handler): Use std::move.
9607 * common/common-exceptions.h (struct gdb_exception): Add move
9608 assignment operator.
9609 (throw_exception_sjlj): Change "exception" to const reference.
9610 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
9611 (throw_exception_sjlj): Change "exception" to const reference.
9612
9613 2019-04-25 Tom Tromey <tromey@adacore.com>
9614
9615 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
9616 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
9617 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
9618 Update.
9619 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
9620 Update.
9621 * mi/mi-interp.c (mi_interp::exec): Update.
9622 * linespec.c (parse_linespec): Update.
9623 * infcall.c (run_inferior_call): Update.
9624 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
9625 * guile/scm-symbol.c (gdbscm_lookup_symbol)
9626 (gdbscm_lookup_global_symbol): Update.
9627 * guile/scm-param.c (gdbscm_parameter_value): Update.
9628 * guile/scm-frame.c (gdbscm_frame_read_register)
9629 (gdbscm_frame_read_var): Update.
9630 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
9631 * exec.c (try_open_exec_file): Update.
9632 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
9633 (gdb_rl_callback_handler): Update.
9634 * common/common-exceptions.h (exception_none): Don't declare.
9635 * common/common-exceptions.c (exception_none): Don't define.
9636 (struct catcher) <exception>: Update.
9637 * cli/cli-interp.c (safe_execute_command): Update.
9638 * breakpoint.c (insert_bp_location, location_to_sals): Update.
9639
9640 2019-04-25 Ali Tamur <tamur@google.com>
9641
9642 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
9643 (read_attribute_value): Likewise.
9644 (dwarf2_read_addr_index): Update comment.
9645 (read_str_index): Add DW_FORM_strx.
9646 (dwarf2_string_attr): Likewise.
9647 (dwarf2_const_value_attr): Likewise.
9648 (dump_die_shallow): Likewise.
9649 (dwarf2_fetch_constant_bytes): Likewise.
9650 (skip_form_bytes): Likewise.
9651 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
9652
9653 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
9654
9655 PR corefiles/11608
9656 PR corefiles/18187
9657 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
9658 OFFSET. Verify if current mapping contains an ELF header.
9659 (linux_find_memory_regions_full): Adjust call to
9660 dump_mapping_p.
9661
9662 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
9663 Kang Li <kanglictf@gmail.com>
9664
9665 PR gdb/21600
9666
9667 * dwarf2-frame.c (read_initial_length): Be consistent about using
9668 unsigned representation of length.
9669 (decode_frame_entry_1): Likewise. Check for wraparound of
9670 end pointer as well as buffer overflow.
9671
9672 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
9673
9674 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
9675 "vq".
9676
9677 2019-04-24 Tom Tromey <tromey@adacore.com>
9678
9679 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
9680
9681 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9682
9683 * s12z-tdep.c (s12z_unwind_pc): Delete.
9684 (s12z_unwind_sp): Delete.
9685 (s12z_gdbarch_init): Don't register deleted functions with
9686 gdbarch.
9687
9688 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9689
9690 * rl78-tdep.c (rl78_unwind_sp): Delete.
9691 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
9692
9693 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9694
9695 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
9696 (xstormy16_unwind_pc): Delete.
9697 (xstormy16_dummy_id): Delete.
9698 (xstormy16_gdbarch_init): Don't register deleted functions with
9699 gdbarch.
9700
9701 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9702
9703 * vax-tdep.c (vax_unwind_pc): Delete.
9704 (vax_gdbarch_init): Don't register deleted function with gdbarch.
9705
9706 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9707
9708 * v850-tdep.c (v850_unwind_sp): Delete.
9709 (v850_unwind_pc): Delete.
9710 (v850_dummy_id): Delete.
9711 (v850_gdbarch_init): Don't register deleted functions with
9712 gdbarch.
9713
9714 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9715
9716 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
9717 (tilegx_unwind_pc): Delete.
9718 (tilegx_unwind_dummy_id): Delete.
9719 (tilegx_gdbarch_init): Don't register deleted functions with
9720 gdbarch.
9721
9722 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9723
9724 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
9725 (tic6x_dummy_id): Delete.
9726 (tic6x_gdbarch_init): Don't register deleted functions with
9727 gdbarch.
9728
9729 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9730
9731 * sparc-tdep.c (sparc_unwind_pc): Delete.
9732 (sparc32_gdbarch_init): Don't register deleted function with
9733 gdbarch.
9734
9735 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9736
9737 * sh-tdep.c (sh_unwind_sp): Delete.
9738 (sh_unwind_pc): Delete.
9739 (sh_dummy_id): Delete.
9740 (sh_gdbarch_init): Don't register deleted functions with
9741 gdbarch.
9742
9743 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9744
9745 * score-tdep.c (score_unwind_sp): Delete.
9746 (score_unwind_pc): Delete.
9747 (score_dummy_id): Delete.
9748 (score_gdbarch_init): Don't register deleted functions with
9749 gdbarch.
9750
9751 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9752
9753 * rx-tdep.c (rx_unwind_pc): Delete.
9754 (rx_unwind_sp): Delete.
9755 (rx_dummy_id): Delete.
9756 (rx_gdbarch_init): Don't register deleted functions with
9757 gdbarch. Update comment.
9758
9759 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9760
9761 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
9762 (rs6000_dummy_id): Delete.
9763 (rs6000_gdbarch_init): Don't register deleted functions with
9764 gdbarch.
9765
9766 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9767
9768 * or1k-tdep.c (or1k_dummy_id): Delete.
9769 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
9770
9771 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9772
9773 * nios2-tdep.c (nios2_dummy_id): Delete.
9774 (nios2_unwind_sp): Delete.
9775 (nios2_gdbarch_init): Don't register deleted functions with
9776 gdbarch.
9777
9778 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9779
9780 * nds32-tdep.c (nds32_dummy_id): Delete.
9781 (nds32_unwind_pc): Delete.
9782 (nds32_unwind_sp): Delete.
9783 (nds32_gdbarch_init): Don't register deleted functions with
9784 gdbarch.
9785
9786 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9787
9788 * msp430-tdep.c (msp430_unwind_pc): Delete.
9789 (msp430_unwind_sp): Delete.
9790 (msp430_dummy_id): Delete.
9791 (msp430_gdbarch_init): Don't register deleted functions with
9792 gdbarch.
9793
9794 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9795
9796 * moxie-tdep.c (moxie_unwind_sp): Delete.
9797 (moxie_unwind_pc): Delete.
9798 (moxie_dummy_id): Delete.
9799 (moxie_gdbarch_init): Don't register deleted functions with
9800 gdbarch.
9801
9802 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9803
9804 * mn10300-tdep.c (mn10300_dummy_id): Delete.
9805 (mn10300_unwind_pc): Delete.
9806 (mn10300_unwind_sp): Delete.
9807 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
9808 mn10300_unwind_sp.
9809 (mn10300_frame_unwind_init): Don't register deleted functions with
9810 gdbarch.
9811
9812 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9813
9814 * mep-tdep.c (mep_unwind_pc): Delete.
9815 (mep_unwind_sp): Delete.
9816 (mep_dummy_id): Delete.
9817 (mep_gdbarch_init): Don't register deleted functions with
9818 gdbarch.
9819
9820 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9821
9822 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
9823 (m68hc11_unwind_sp): Delete.
9824 (m68hc11_gdbarch_init): Don't register deleted functions with
9825 gdbarch.
9826
9827 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9828
9829 * m32r-tdep.c (m32r_unwind_sp): Delete.
9830 (m32r_unwind_pc): Delete.
9831 (m32r_dummy_id): Delete.
9832 (m32r_gdbarch_init): Don't register deleted functions with
9833 gdbarch.
9834
9835 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9836
9837 * m32c-tdep.c (m32c_unwind_pc): Delete.
9838 (m32c_unwind_sp): Delete.
9839 (m32c_dummy_id): Delete.
9840 (m32c_gdbarch_init): Don't register deleted functions with
9841 gdbarch.
9842
9843 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9844
9845 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
9846 (lm32_unwind_pc): Delete.
9847 (lm32_dummy_id): Delete.
9848 (lm32_gdbarch_init): Don't register deleted functions with
9849 gdbarch.
9850
9851 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9852
9853 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
9854 (iq2000_unwind_pc): Delete.
9855 (iq2000_dummy_id): Delete.
9856 (iq2000_gdbarch_init): Don't register deleted functions with
9857 gdbarch.
9858
9859 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9860
9861 * nds32-tdep.c (nds32_type_align): Delete.
9862 (nds32_push_dummy_call): Use type_align instead.
9863
9864 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9865
9866 * arm-tdep.c (arm_type_align): Only handle vector override case.
9867 (arm_push_dummy_call): Use type_align.
9868 (arm_gdbarch_init): Register arm_type_align gdbarch function.
9869
9870 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9871
9872 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
9873 case.
9874 (pass_on_stack): Use type_align.
9875 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
9876 function.
9877
9878 2019-04-23 Tom Tromey <tromey@adacore.com>
9879
9880 * dwarf2read.c (line_header::file_name_at): Remove unused
9881 overload.
9882
9883 2019-04-23 Tom de Vries <tdevries@suse.de>
9884
9885 PR gdb/24438
9886 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
9887 invocation.
9888
9889
9890 2019-03-27 Ali Tamur <tamur@google.com>
9891
9892 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
9893 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
9894 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
9895 (dwarf_expr_context::get_addr_index): Likewise
9896 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
9897 (symbol_needs_eval_context::get_addr_index): Likewise
9898 (disassemble_dwarf_expression): Add DW_OP_addrx
9899 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
9900 (read_cutu_die_from_dwo): Update comment
9901 (skip_one_die): Add DW_FORM_addrx
9902 (read_attribute_value): Likewise
9903 (var_decode_location): Add DW_OP_addrx
9904 (dwarf2_const_value_attr): Add DW_FORM_addrx
9905 (dump_die_shallow): Likewise
9906 (dwarf2_fetch_constant_bytes): Likewise
9907 (decode_locdesc): Add DW_OP_addrx
9908 (skip_form_bytes): Add DW_FORM_addrx
9909
9910 2019-04-22 Ali Tamur <tamur@google.com>
9911
9912 * MAINTAINERS (Write After Approval): Add self.
9913
9914 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
9915
9916 * solib-svr4.c (get_svr4_info): Add pspace parameter.
9917 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
9918 (open_symbol_file_object): Likewise.
9919 (svr4_default_sos): Add info parameter.
9920 (svr4_read_so_list): Likewise.
9921 (svr4_current_sos_direct): Adjust functions calls to pass down
9922 info.
9923 (svr4_current_sos_1): Add info parameter.
9924 (svr4_current_sos): Call get_svr4_info, pass info down to
9925 svr4_current_sos_1.
9926 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
9927 get_svr4_info.
9928 (svr4_in_dynsym_resolve_code): Pass current_program_space to
9929 get_svr4_info.
9930 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
9931 to get_svr4_info.
9932 (probes_table_remove_objfile_probes): Likewise.
9933 (register_solib_event_probe): Add info parameter.
9934 (solist_update_incremental): Pass info parameter down to
9935 svr4_read_so_list.
9936 (disable_probes_interface): Add info parameter.
9937 (svr4_handle_solib_event): Pass current_program_space to
9938 get_svr4_info. Adjust disable_probes_interface cleanup.
9939 (svr4_create_probe_breakpoints): Add info parameter, pass it
9940 down to register_solib_event_probe.
9941 (svr4_create_solib_event_breakpoints): Add info parameter,
9942 pass it down to svr4_create_probe_breakpoints.
9943 (enable_break): Pass info down to
9944 svr4_create_solib_event_breakpoints.
9945 (svr4_solib_create_inferior_hook): Pass current_program_space to
9946 get_svr4_info.
9947 (svr4_clear_solib): Likewise.
9948
9949 2019-04-22 Pedro Alves <palves@redhat.com>
9950
9951 * solib-svr4.c (svr4_free_objfile_observer): New.
9952 (probe_and_action::objfile): New field.
9953 (probes_table_htab_remove_objfile_probes)
9954 (probes_table_remove_objfile_probes): New functions.
9955 (register_solib_event_probe): Add 'objfile' parameter. Store it
9956 in the new probe_and_action. Don't store the probe in 'lookup'.
9957 (svr4_create_probe_breakpoints): Pass objfile to
9958 register_solib_event_probe.
9959 (_initialize_svr4_solib): Register a free_objfile observer.
9960
9961 2019-04-19 Tom Tromey <tom@tromey.com>
9962
9963 * common/queue.h: Remove.
9964
9965 2019-04-19 Tom Tromey <tom@tromey.com>
9966
9967 * event-loop.c: Don't include "common/queue.h".
9968
9969 2019-04-19 Tom Tromey <tom@tromey.com>
9970
9971 * remote.c (remote_target): Use delete.
9972 * remote-notif.h: Include <list>, not "common/queue.h".
9973 (notif_client_p): Remove typedef.
9974 (remote_notif_state): Add constructor, destructor, initializer.
9975 <notif_queue>: Now a std::list.
9976 (remote_notif_state_xfree): Don't declare.
9977 * remote-notif.c (remote_notif_process, handle_notification)
9978 (remote_notif_state_allocate): Update.
9979 (~remote_notif_state): Rename from remote_notif_state_xfree.
9980
9981 2019-04-19 Tom Tromey <tom@tromey.com>
9982
9983 * symfile.c (reread_symbols): Update.
9984 * objfiles.c (objfile_register_static_link)
9985 (objfile_lookup_static_link): Update
9986 (~objfile) Don't delete static_links.
9987 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
9988
9989 2019-04-19 Tom Tromey <tom@tromey.com>
9990
9991 * type-stack.h (struct type_stack) <insert>: Constify string.
9992 * type-stack.c (type_stack::insert): Constify string.
9993 * gdbtypes.h (lookup_template_type): Update.
9994 (address_space_name_to_int): Update.
9995 * gdbtypes.c (address_space_name_to_int): Make space_identifier
9996 const.
9997 (lookup_template_type): Make name const.
9998 * c-exp.y: Update rules.
9999 (lex_one_token, classify_name, classify_inner_name)
10000 (c_print_token): Update.
10001 * p-exp.y: Update rules.
10002 (yylex): Update.
10003 * f-exp.y: Update rules.
10004 (yylex): Update.
10005 * d-exp.y: Update rules.
10006 (lex_one_token, classify_name, classify_inner_name): Update.
10007 * parse.c (write_dollar_variable, copy_name): Return std::string.
10008 * parser-defs.h (copy_name): Change return type.
10009 * m2-exp.y: Update rules.
10010 (yylex): Update.
10011 * go-exp.y (lex_one_token): Update.
10012 Update rules.
10013 (classify_unsafe_function, classify_packaged_name)
10014 (classify_name, yylex): Update.
10015
10016 2019-04-19 Sergei Trofimovich <siarheit@google.com>
10017
10018 * configure.ac: add --enable-source-highlight switch.
10019 * configure: Regenerate.
10020 * top.c (print_gdb_version): plumb --enable-source-highlight
10021 status to "show configuration".
10022
10023 2019-04-19 Tom Tromey <tromey@adacore.com>
10024
10025 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
10026 Check ADA_TYPE_P.
10027 (empty_record, ada_template_to_fixed_record_type_1)
10028 (template_to_static_fixed_type)
10029 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
10030 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
10031 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
10032 macros.
10033
10034 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
10035
10036 PR symtab/24423:
10037 * source.c (print_source_lines_base): Advance "iter" when a
10038 control character is seen.
10039
10040 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10041
10042 * inferior.h (struct infcall_suspend_state_deleter):
10043 Catch exception in destructor to avoid crash.
10044
10045 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10046
10047 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
10048 close to the add_com "shell".
10049
10050 2019-04-18 Tom Tromey <tromey@adacore.com>
10051
10052 * process-stratum-target.h (class process_stratum_target)
10053 <stratum>: Add "final".
10054
10055 2019-04-17 Tom Tromey <tromey@adacore.com>
10056
10057 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
10058 against nullptr before use.
10059
10060 2019-04-17 Alan Hayward <alan.hayward@arm.com>
10061
10062 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
10063
10064 2019-04-17 Jim Wilson <jimw@sifive.com>
10065 Andrew Burgess <andrew.burgess@embecosm.com>
10066
10067 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
10068 code read might fail, assume 4-byte breakpoint in that case.
10069
10070 2019-04-15 Leszek Swirski <leszeks@google.com>
10071
10072 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
10073 rather than a hand-rolled POD check when checking for forced MEMORY
10074 classification.
10075
10076 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10077
10078 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
10079 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
10080 function.
10081 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
10082 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
10083 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
10084 declaration.
10085
10086 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10087
10088 * aarch64-linux-nat.c
10089 (aarch64_linux_nat_target::thread_architecture): Add override.
10090 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
10091 each VQ.
10092
10093 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10094
10095 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
10096
10097 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
10098
10099 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
10100 target types of size 96-bits, add some additional comments, and
10101 check that the builtin type we found was the correct size.
10102
10103 2019-04-12 Eli Zaretskii <eliz@gnu.org>
10104
10105 * utils.c (prompt_for_continue): Don't restore the styling at the
10106 end, as applied_style has the wrong value. This fixes styling in
10107 long lists of file names that are interrupted by the "Continue?"
10108 prompt.
10109
10110 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
10111
10112 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
10113 * c-lang.c (c_language_defn): Likewise.
10114 (cplus_language_defn): Likewise.
10115 (asm_language_defn): Likewise.
10116 (minimal_language_defn): Likewise.
10117 * d-lang.c (d_language_defn): Likewise.
10118 * f-lang.c (f_language_defn): Likewise.
10119 * go-lang.c (go_language_defn): Likewise.
10120 * language.c (unknown_language_defn): Likewise.
10121 (auto_language_defn): Likewise.
10122 * language.h (struct language_defn): Remove la_magic field.
10123 (LANG_MAGIC): Delete.
10124 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
10125 * objc-lang.c (objc_language_defn): Likewise.
10126 * opencl-lang.c (opencl_language_defn): Likewise.
10127 * p-lang.c (pascal_language_defn): Likewise.
10128 * rust-lang.c (rust_language_defn): Likewise.
10129
10130 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10131
10132 * riscv-tdep.c (riscv_type_align): New function.
10133 (riscv_type_alignment): Delete.
10134 (riscv_arg_location): Use 'type_align'.
10135 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
10136
10137 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10138
10139 * gdbtypes.c (type_align): A struct with no non-static fields also
10140 has alignment of 1.
10141
10142 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10143
10144 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
10145 component to 0.
10146 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
10147 member.
10148 (riscv_struct_info::analyse): New implementation using new
10149 analyse_inner member function.
10150 (riscv_struct_info::field_offset): New member function.
10151 (riscv_struct_info::m_offsets): New member variable.
10152 (riscv_struct_info::analyse_inner): New private member function,
10153 takes the old implementation of riscv_struct_info::analyse but
10154 extended to track field offsets.
10155 (riscv_call_arg_struct): Update the struct folding special cases
10156 to handle cases where empty C++ structs, which are non-zero
10157 length, are found.
10158 (riscv_arg_location): Initialise the length of each location, a
10159 non-zero length now indicates the location is in use.
10160 (riscv_push_dummy_call): Allow for the first location having a
10161 non-zero offset when setting up arguments.
10162 (riscv_return_value): Likewise, but for return values.
10163
10164 2019-04-11 Tom Tromey <tromey@adacore.com>
10165
10166 * utils.c (internal_vproblem): Make "msg" const.
10167
10168 2019-04-11 Alan Hayward <alan.hayward@arm.com>
10169
10170 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
10171 * trad-frame.c (trad_frame_reset_saved_regs): New function.
10172 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
10173 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
10174
10175 2019-04-10 Kevin Buettner <kevinb@redhat.com>
10176
10177 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
10178 function.
10179 (fill_gregset): Call amd64_linux_collect_native_gregset instead
10180 of amd64_collect_native_gregset.
10181 (amd64_linux_nat_target::store_registers): Likewise.
10182
10183 2019-04-10 Tom Tromey <tom@tromey.com>
10184
10185 * symtab.c (lookup_global_symbol_from_objfile)
10186 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
10187 * objfiles.h (class separate_debug_iterator): New.
10188 (class separate_debug_range): New.
10189 (struct objfile) <separate_debug_objfiles>: New method.
10190 (objfile_separate_debug_iterate): Don't declare.
10191 * objfiles.c (separate_debug_iterator::operator++): Rename from
10192 objfile_separate_debug_iterate.
10193 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
10194 iterator.
10195 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
10196 iterator.
10197
10198 2019-04-10 Tom Tromey <tom@tromey.com>
10199
10200 * symfile.c (reread_symbols): Remove old comment.
10201 * objfiles.c (free_all_objfiles): Fix a typo.
10202
10203 2019-04-10 Tom Tromey <tom@tromey.com>
10204
10205 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
10206 * minsyms.c (lookup_minimal_symbol): Use foreach.
10207 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10208 (lookup_minimal_symbol_solib_trampoline): Likewise.
10209 * symfile.c (reread_symbols): Use foreach.
10210
10211 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
10212 Tom Tromey <tromey@adacore.com>
10213
10214 PR rust/24414:
10215 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
10216 (rust_lex_int_test): Change "value" to be LONGEST.
10217 (rust_lex_tests): Add test for long integer literal.
10218
10219 2019-04-09 Tom Tromey <tromey@adacore.com>
10220
10221 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
10222 to bool.
10223 (extended_remote_target::attach): Update.
10224 (remote_target::remote_notice_new_inferior): Update.
10225 (remote_target::add_current_inferior_and_thread): Update.
10226 * inferior.c (exit_inferior_1): Use "false".
10227 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
10228
10229 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
10230
10231 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
10232 the "start" command.
10233
10234 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10235
10236 * python/py-inferior.c (infpy_thread_from_thread_handle):
10237 Adjust comments to reflect renaming of thread_from_thread_handle
10238 to thread_from_handle. Adjust keywords. Fix type error message.
10239 (inferior_object_methods): Add thread_from_handle. Retain
10240 thread_from_thread_handle, but mark it as deprecated.
10241
10242 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10243
10244 * gdbthread.h (find_thread_by_handle): Revise declaration.
10245 * thread.c (find_thread_by_handle): Likewise. Adjust
10246 implementation too.
10247 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
10248 support for buffer objects as handles.
10249
10250 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10251
10252 * python/py-infthread.c (thpy_thread_handle): New function.
10253 (thread_object_methods): Register thpy_thread_handle.
10254
10255 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10256
10257 * gdbthread.h (thread_to_thread_handle): Declare.
10258 * thread.c (gdbtypes.h): Include.
10259 (thread_to_thread_handle): New function.
10260
10261 * target.h (struct target_ops): Add thread_info_to_thread_handle.
10262 (target_thread_info_to_thread_handle): Declare.
10263 * target.c (target_thread_info_to_thread_handle): New function.
10264 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
10265 * target-delegates.c: Regenerate.
10266
10267 * linux-thread-db.c (class thread_db_target): Add method
10268 thread_info_to_thread_handle.
10269 (thread_db_target::thread_info_to_thread_handle): Define.
10270 * remote.c (class remote_target): Add new method
10271 thread_info_to_thread_handle.
10272 (remote_target::thread_info_to_thread_handle): Define.
10273
10274 2019-04-08 Pedro Alves <palves@redhat.com>
10275
10276 * common/common-exceptions.c (throw_exception): Don't create
10277 named object to throw; throw directly.
10278 (throw_it): Likewise. Don't initialize gdb_exception::message
10279 here, with new; pass FMT and AP to the ctor instead.
10280 * common/common-exceptions.h: Include <string>.
10281 (gdb_exception::gdb_exception(enum return_reason, enum errors,
10282 const char *, va_list)): New ctor. Use std::make_shared.
10283 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
10284 errors)): Delete.
10285 (gdb_exception_error::gdb_exception_error(enum errors, const char
10286 *, va_list)): New.
10287 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
10288 Add assertion.
10289 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
10290 errors)): Delete.
10291 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
10292 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
10293 Add assertion.
10294
10295 2019-04-08 Tom Tromey <tom@tromey.com>
10296
10297 * valops.c (value_rtti_indirect_type): Replace throw_exception
10298 with throw.
10299 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
10300 with throw.
10301 * thread.c (thr_try_catch_cmd): Replace throw_exception with
10302 throw.
10303 * target.c (target_translate_tls_address): Replace throw_exception
10304 with throw.
10305 * stack.c (frame_apply_command_count): Replace throw_exception
10306 with throw.
10307 * solib-spu.c (append_ocl_sos): Replace throw_exception with
10308 throw.
10309 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
10310 with throw.
10311 * rs6000-tdep.c (rs6000_frame_cache)
10312 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
10313 * remote.c: Replace throw_exception with throw.
10314 * record-full.c (record_full_message, record_full_wait_1)
10315 (record_full_restore): Replace throw_exception with throw.
10316 * record-btrace.c:
10317 (get_thread_current_frame_id, record_btrace_start_replaying)
10318 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
10319 (cmd_record_btrace_start): Replace throw_exception with throw.
10320 * parse.c (parse_exp_in_context_1): Replace throw_exception with
10321 throw.
10322 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
10323 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
10324 * linespec.c:
10325 (find_linespec_symbols): Replace throw_exception with throw.
10326 * infrun.c (displaced_step_prepare, resume): Replace
10327 throw_exception with throw.
10328 * infcmd.c (post_create_inferior): Replace throw_exception with
10329 throw.
10330 * inf-loop.c (inferior_event_handler): Replace throw_exception
10331 with throw.
10332 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
10333 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
10334 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
10335 (get_prev_frame_always, get_frame_pc_if_available)
10336 (get_frame_address_in_block_if_available, get_frame_language):
10337 Replace throw_exception with throw.
10338 * frame-unwind.c (frame_unwind_try_unwinder): Replace
10339 throw_exception with throw.
10340 * eval.c (fetch_subexp_value, evaluate_var_value)
10341 (evaluate_funcall, evaluate_subexp_standard): Replace
10342 throw_exception with throw.
10343 * dwarf2loc.c (call_site_find_chain)
10344 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
10345 Replace throw_exception with throw.
10346 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
10347 with throw.
10348 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
10349 throw.
10350 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
10351 * completer.c (complete_line_internal): Replace throw_exception
10352 with throw.
10353 * compile/compile-object-run.c (compile_object_run): Replace
10354 throw_exception with throw.
10355 * cli/cli-script.c (process_next_line): Replace throw_exception
10356 with throw.
10357 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
10358 (btrace_enable, btrace_maint_update_pt_packets): Replace
10359 throw_exception with throw.
10360 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
10361 throw_exception with throw.
10362 * break-catch-throw.c (re_set_exception_catchpoint): Replace
10363 throw_exception with throw.
10364 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
10365 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
10366 * aarch64-tdep.c (aarch64_make_prologue_cache)
10367 (aarch64_make_stub_cache): Replace throw_exception with throw.
10368
10369 2019-04-08 Tom Tromey <tom@tromey.com>
10370
10371 * common/common-exceptions.c (throw_exception): Rename from
10372 throw_exception_cxx. Remove old copy. Make argument const.
10373 (throw_it): Create and throw exception objects directly.
10374 * common/common-exceptions.h (throw_exception): Make argument
10375 const.
10376 (struct gdb_exception_error): Add constructor.
10377 (struct gdb_exception_quit): Add constructor.
10378
10379 2019-04-08 Tom Tromey <tom@tromey.com>
10380
10381 * common/common-exceptions.h (exception_rethrow): Don't declare.
10382 (TRY_SJLJ): Update comment.
10383 (TRY, CATCH, END_CATCH): Remove.
10384 * common/common-exceptions.c (exception_rethrow): Remove.
10385
10386 2019-04-08 Tom Tromey <tom@tromey.com>
10387
10388 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
10389 Remove.
10390 (gdb_exception_error): Rename from
10391 gdb_exception_RETURN_MASK_ERROR.
10392 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
10393 (gdb_quit_bad_alloc): Update.
10394 * aarch64-tdep.c: Update.
10395 * ada-lang.c: Update.
10396 * ada-typeprint.c: Update.
10397 * ada-valprint.c: Update.
10398 * amd64-tdep.c: Update.
10399 * arch-utils.c: Update.
10400 * break-catch-throw.c: Update.
10401 * breakpoint.c: Update.
10402 * btrace.c: Update.
10403 * c-varobj.c: Update.
10404 * cli/cli-cmds.c: Update.
10405 * cli/cli-interp.c: Update.
10406 * cli/cli-script.c: Update.
10407 * common/common-exceptions.c: Update.
10408 * common/new-op.c: Update.
10409 * common/selftest.c: Update.
10410 * compile/compile-c-symbols.c: Update.
10411 * compile/compile-cplus-symbols.c: Update.
10412 * compile/compile-object-load.c: Update.
10413 * compile/compile-object-run.c: Update.
10414 * completer.c: Update.
10415 * corelow.c: Update.
10416 * cp-abi.c: Update.
10417 * cp-support.c: Update.
10418 * cp-valprint.c: Update.
10419 * darwin-nat.c: Update.
10420 * disasm-selftests.c: Update.
10421 * dtrace-probe.c: Update.
10422 * dwarf-index-cache.c: Update.
10423 * dwarf-index-write.c: Update.
10424 * dwarf2-frame-tailcall.c: Update.
10425 * dwarf2-frame.c: Update.
10426 * dwarf2loc.c: Update.
10427 * dwarf2read.c: Update.
10428 * eval.c: Update.
10429 * event-loop.c: Update.
10430 * event-top.c: Update.
10431 * exec.c: Update.
10432 * f-valprint.c: Update.
10433 * fbsd-tdep.c: Update.
10434 * frame-unwind.c: Update.
10435 * frame.c: Update.
10436 * gdbtypes.c: Update.
10437 * gnu-v3-abi.c: Update.
10438 * guile/guile-internal.h: Update.
10439 * guile/scm-block.c: Update.
10440 * guile/scm-breakpoint.c: Update.
10441 * guile/scm-cmd.c: Update.
10442 * guile/scm-disasm.c: Update.
10443 * guile/scm-frame.c: Update.
10444 * guile/scm-lazy-string.c: Update.
10445 * guile/scm-math.c: Update.
10446 * guile/scm-param.c: Update.
10447 * guile/scm-ports.c: Update.
10448 * guile/scm-pretty-print.c: Update.
10449 * guile/scm-symbol.c: Update.
10450 * guile/scm-symtab.c: Update.
10451 * guile/scm-type.c: Update.
10452 * guile/scm-value.c: Update.
10453 * i386-linux-tdep.c: Update.
10454 * i386-tdep.c: Update.
10455 * inf-loop.c: Update.
10456 * infcall.c: Update.
10457 * infcmd.c: Update.
10458 * infrun.c: Update.
10459 * jit.c: Update.
10460 * language.c: Update.
10461 * linespec.c: Update.
10462 * linux-fork.c: Update.
10463 * linux-nat.c: Update.
10464 * linux-tdep.c: Update.
10465 * linux-thread-db.c: Update.
10466 * main.c: Update.
10467 * mi/mi-cmd-break.c: Update.
10468 * mi/mi-cmd-stack.c: Update.
10469 * mi/mi-interp.c: Update.
10470 * mi/mi-main.c: Update.
10471 * objc-lang.c: Update.
10472 * p-valprint.c: Update.
10473 * parse.c: Update.
10474 * ppc-linux-tdep.c: Update.
10475 * printcmd.c: Update.
10476 * python/py-arch.c: Update.
10477 * python/py-breakpoint.c: Update.
10478 * python/py-cmd.c: Update.
10479 * python/py-finishbreakpoint.c: Update.
10480 * python/py-frame.c: Update.
10481 * python/py-framefilter.c: Update.
10482 * python/py-gdb-readline.c: Update.
10483 * python/py-inferior.c: Update.
10484 * python/py-infthread.c: Update.
10485 * python/py-lazy-string.c: Update.
10486 * python/py-linetable.c: Update.
10487 * python/py-objfile.c: Update.
10488 * python/py-param.c: Update.
10489 * python/py-prettyprint.c: Update.
10490 * python/py-progspace.c: Update.
10491 * python/py-record-btrace.c: Update.
10492 * python/py-record.c: Update.
10493 * python/py-symbol.c: Update.
10494 * python/py-type.c: Update.
10495 * python/py-unwind.c: Update.
10496 * python/py-utils.c: Update.
10497 * python/py-value.c: Update.
10498 * python/python.c: Update.
10499 * record-btrace.c: Update.
10500 * record-full.c: Update.
10501 * remote-fileio.c: Update.
10502 * remote.c: Update.
10503 * riscv-tdep.c: Update.
10504 * rs6000-aix-tdep.c: Update.
10505 * rs6000-tdep.c: Update.
10506 * rust-exp.y: Update.
10507 * rust-lang.c: Update.
10508 * s390-tdep.c: Update.
10509 * selftest-arch.c: Update.
10510 * solib-dsbt.c: Update.
10511 * solib-frv.c: Update.
10512 * solib-spu.c: Update.
10513 * solib-svr4.c: Update.
10514 * solib.c: Update.
10515 * sparc64-linux-tdep.c: Update.
10516 * stack.c: Update.
10517 * symfile-mem.c: Update.
10518 * symmisc.c: Update.
10519 * target.c: Update.
10520 * thread.c: Update.
10521 * top.c: Update.
10522 * tracefile-tfile.c: Update.
10523 * tui/tui.c: Update.
10524 * typeprint.c: Update.
10525 * unittests/cli-utils-selftests.c: Update.
10526 * unittests/parse-connection-spec-selftests.c: Update.
10527 * valops.c: Update.
10528 * valprint.c: Update.
10529 * value.c: Update.
10530 * varobj.c: Update.
10531 * windows-nat.c: Update.
10532 * x86-linux-nat.c: Update.
10533 * xml-support.c: Update.
10534
10535 2019-04-08 Tom Tromey <tom@tromey.com>
10536
10537 * xml-support.c: Use C++ exception handling.
10538 * x86-linux-nat.c: Use C++ exception handling.
10539 * windows-nat.c: Use C++ exception handling.
10540 * varobj.c: Use C++ exception handling.
10541 * value.c: Use C++ exception handling.
10542 * valprint.c: Use C++ exception handling.
10543 * valops.c: Use C++ exception handling.
10544 * unittests/parse-connection-spec-selftests.c: Use C++ exception
10545 handling.
10546 * unittests/cli-utils-selftests.c: Use C++ exception handling.
10547 * typeprint.c: Use C++ exception handling.
10548 * tui/tui.c: Use C++ exception handling.
10549 * tracefile-tfile.c: Use C++ exception handling.
10550 * top.c: Use C++ exception handling.
10551 * thread.c: Use C++ exception handling.
10552 * target.c: Use C++ exception handling.
10553 * symmisc.c: Use C++ exception handling.
10554 * symfile-mem.c: Use C++ exception handling.
10555 * stack.c: Use C++ exception handling.
10556 * sparc64-linux-tdep.c: Use C++ exception handling.
10557 * solib.c: Use C++ exception handling.
10558 * solib-svr4.c: Use C++ exception handling.
10559 * solib-spu.c: Use C++ exception handling.
10560 * solib-frv.c: Use C++ exception handling.
10561 * solib-dsbt.c: Use C++ exception handling.
10562 * selftest-arch.c: Use C++ exception handling.
10563 * s390-tdep.c: Use C++ exception handling.
10564 * rust-lang.c: Use C++ exception handling.
10565 * rust-exp.y: Use C++ exception handling.
10566 * rs6000-tdep.c: Use C++ exception handling.
10567 * rs6000-aix-tdep.c: Use C++ exception handling.
10568 * riscv-tdep.c: Use C++ exception handling.
10569 * remote.c: Use C++ exception handling.
10570 * remote-fileio.c: Use C++ exception handling.
10571 * record-full.c: Use C++ exception handling.
10572 * record-btrace.c: Use C++ exception handling.
10573 * python/python.c: Use C++ exception handling.
10574 * python/py-value.c: Use C++ exception handling.
10575 * python/py-utils.c: Use C++ exception handling.
10576 * python/py-unwind.c: Use C++ exception handling.
10577 * python/py-type.c: Use C++ exception handling.
10578 * python/py-symbol.c: Use C++ exception handling.
10579 * python/py-record.c: Use C++ exception handling.
10580 * python/py-record-btrace.c: Use C++ exception handling.
10581 * python/py-progspace.c: Use C++ exception handling.
10582 * python/py-prettyprint.c: Use C++ exception handling.
10583 * python/py-param.c: Use C++ exception handling.
10584 * python/py-objfile.c: Use C++ exception handling.
10585 * python/py-linetable.c: Use C++ exception handling.
10586 * python/py-lazy-string.c: Use C++ exception handling.
10587 * python/py-infthread.c: Use C++ exception handling.
10588 * python/py-inferior.c: Use C++ exception handling.
10589 * python/py-gdb-readline.c: Use C++ exception handling.
10590 * python/py-framefilter.c: Use C++ exception handling.
10591 * python/py-frame.c: Use C++ exception handling.
10592 * python/py-finishbreakpoint.c: Use C++ exception handling.
10593 * python/py-cmd.c: Use C++ exception handling.
10594 * python/py-breakpoint.c: Use C++ exception handling.
10595 * python/py-arch.c: Use C++ exception handling.
10596 * printcmd.c: Use C++ exception handling.
10597 * ppc-linux-tdep.c: Use C++ exception handling.
10598 * parse.c: Use C++ exception handling.
10599 * p-valprint.c: Use C++ exception handling.
10600 * objc-lang.c: Use C++ exception handling.
10601 * mi/mi-main.c: Use C++ exception handling.
10602 * mi/mi-interp.c: Use C++ exception handling.
10603 * mi/mi-cmd-stack.c: Use C++ exception handling.
10604 * mi/mi-cmd-break.c: Use C++ exception handling.
10605 * main.c: Use C++ exception handling.
10606 * linux-thread-db.c: Use C++ exception handling.
10607 * linux-tdep.c: Use C++ exception handling.
10608 * linux-nat.c: Use C++ exception handling.
10609 * linux-fork.c: Use C++ exception handling.
10610 * linespec.c: Use C++ exception handling.
10611 * language.c: Use C++ exception handling.
10612 * jit.c: Use C++ exception handling.
10613 * infrun.c: Use C++ exception handling.
10614 * infcmd.c: Use C++ exception handling.
10615 * infcall.c: Use C++ exception handling.
10616 * inf-loop.c: Use C++ exception handling.
10617 * i386-tdep.c: Use C++ exception handling.
10618 * i386-linux-tdep.c: Use C++ exception handling.
10619 * guile/scm-value.c: Use C++ exception handling.
10620 * guile/scm-type.c: Use C++ exception handling.
10621 * guile/scm-symtab.c: Use C++ exception handling.
10622 * guile/scm-symbol.c: Use C++ exception handling.
10623 * guile/scm-pretty-print.c: Use C++ exception handling.
10624 * guile/scm-ports.c: Use C++ exception handling.
10625 * guile/scm-param.c: Use C++ exception handling.
10626 * guile/scm-math.c: Use C++ exception handling.
10627 * guile/scm-lazy-string.c: Use C++ exception handling.
10628 * guile/scm-frame.c: Use C++ exception handling.
10629 * guile/scm-disasm.c: Use C++ exception handling.
10630 * guile/scm-cmd.c: Use C++ exception handling.
10631 * guile/scm-breakpoint.c: Use C++ exception handling.
10632 * guile/scm-block.c: Use C++ exception handling.
10633 * guile/guile-internal.h: Use C++ exception handling.
10634 * gnu-v3-abi.c: Use C++ exception handling.
10635 * gdbtypes.c: Use C++ exception handling.
10636 * frame.c: Use C++ exception handling.
10637 * frame-unwind.c: Use C++ exception handling.
10638 * fbsd-tdep.c: Use C++ exception handling.
10639 * f-valprint.c: Use C++ exception handling.
10640 * exec.c: Use C++ exception handling.
10641 * event-top.c: Use C++ exception handling.
10642 * event-loop.c: Use C++ exception handling.
10643 * eval.c: Use C++ exception handling.
10644 * dwarf2read.c: Use C++ exception handling.
10645 * dwarf2loc.c: Use C++ exception handling.
10646 * dwarf2-frame.c: Use C++ exception handling.
10647 * dwarf2-frame-tailcall.c: Use C++ exception handling.
10648 * dwarf-index-write.c: Use C++ exception handling.
10649 * dwarf-index-cache.c: Use C++ exception handling.
10650 * dtrace-probe.c: Use C++ exception handling.
10651 * disasm-selftests.c: Use C++ exception handling.
10652 * darwin-nat.c: Use C++ exception handling.
10653 * cp-valprint.c: Use C++ exception handling.
10654 * cp-support.c: Use C++ exception handling.
10655 * cp-abi.c: Use C++ exception handling.
10656 * corelow.c: Use C++ exception handling.
10657 * completer.c: Use C++ exception handling.
10658 * compile/compile-object-run.c: Use C++ exception handling.
10659 * compile/compile-object-load.c: Use C++ exception handling.
10660 * compile/compile-cplus-symbols.c: Use C++ exception handling.
10661 * compile/compile-c-symbols.c: Use C++ exception handling.
10662 * common/selftest.c: Use C++ exception handling.
10663 * common/new-op.c: Use C++ exception handling.
10664 * cli/cli-script.c: Use C++ exception handling.
10665 * cli/cli-interp.c: Use C++ exception handling.
10666 * cli/cli-cmds.c: Use C++ exception handling.
10667 * c-varobj.c: Use C++ exception handling.
10668 * btrace.c: Use C++ exception handling.
10669 * breakpoint.c: Use C++ exception handling.
10670 * break-catch-throw.c: Use C++ exception handling.
10671 * arch-utils.c: Use C++ exception handling.
10672 * amd64-tdep.c: Use C++ exception handling.
10673 * ada-valprint.c: Use C++ exception handling.
10674 * ada-typeprint.c: Use C++ exception handling.
10675 * ada-lang.c: Use C++ exception handling.
10676 * aarch64-tdep.c: Use C++ exception handling.
10677
10678 2019-04-08 Tom Tromey <tom@tromey.com>
10679
10680 * xml-support.c (gdb_xml_parser::parse): Update.
10681 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
10682 * value.c (show_convenience): Update.
10683 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
10684 (test_parse_flags_qcs): Update.
10685 * thread.c (thr_try_catch_cmd): Update.
10686 * target.c (target_translate_tls_address): Update.
10687 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
10688 (info_frame_command_core, frame_apply_command_count): Update.
10689 * rust-exp.y (rust_lex_exception_test): Update.
10690 * riscv-tdep.c (riscv_print_one_register_info): Update.
10691 * remote.c (remote_target::enable_btrace): Update.
10692 * record-btrace.c (record_btrace_enable_warn): Update.
10693 * python/py-utils.c (gdbpy_convert_exception): Update.
10694 * printcmd.c (do_one_display, print_variable_and_value): Update.
10695 * mi/mi-main.c (mi_print_exception): Update.
10696 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
10697 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
10698 * linux-nat.c (linux_nat_target::attach): Update.
10699 * linux-fork.c (class scoped_switch_fork_info): Update.
10700 * infrun.c (displaced_step_prepare): Update.
10701 * infcall.c (call_function_by_hand_dummy): Update.
10702 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
10703 * gnu-v3-abi.c (print_one_vtable): Update.
10704 * frame.c (get_prev_frame_always): Update.
10705 * f-valprint.c (info_common_command_for_block): Update.
10706 * exec.c (try_open_exec_file): Update.
10707 * exceptions.c (print_exception, exception_print)
10708 (exception_fprintf, exception_print_same): Update.
10709 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
10710 * dwarf-index-cache.c (index_cache::store)
10711 (index_cache::lookup_gdb_index): Update.
10712 * darwin-nat.c (maybe_cache_shell): Update.
10713 * cp-valprint.c (cp_print_value_fields): Update.
10714 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
10715 (gcc_cplus_symbol_address): Update.
10716 * compile/compile-c-symbols.c (gcc_convert_symbol)
10717 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
10718 * common/selftest.c: Update.
10719 * common/common-exceptions.h (struct gdb_exception) <message>: Now
10720 a std::string.
10721 (exception_try_scope_entry, exception_try_scope_exit): Don't
10722 declare.
10723 (struct exception_try_scope): Remove.
10724 (TRY): Don't use exception_try_scope.
10725 (struct gdb_exception): Add constructor, operator=.
10726 <what>: New method.
10727 (struct gdb_exception_RETURN_MASK_ALL)
10728 (struct gdb_exception_RETURN_MASK_ERROR)
10729 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
10730 (struct gdb_quit_bad_alloc): Update.
10731 * common/common-exceptions.c (exception_none): Change
10732 initializer.
10733 (struct catcher) <state, exception>: Initialize inline.
10734 <prev>: Remove member.
10735 (current_catcher): Remove.
10736 (catchers): New global.
10737 (exceptions_state_mc_init): Simplify.
10738 (catcher_pop): Remove.
10739 (exceptions_state_mc, exceptions_state_mc_catch): Update.
10740 (try_scope_depth, exception_try_scope_entry)
10741 (exception_try_scope_exit): Remove.
10742 (throw_exception_sjlj): Update.
10743 (exception_messages, exception_messages_size): Remove.
10744 (throw_it): Simplify.
10745 (gdb_exception_sliced_copy): Remove.
10746 (throw_exception_cxx): Update.
10747 * cli/cli-script.c (script_from_file): Update.
10748 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
10749 Update.
10750 * ada-valprint.c (ada_val_print): Update.
10751 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
10752 (create_excep_cond_exprs): Update.
10753
10754 2019-04-08 Tom Tromey <tom@tromey.com>
10755
10756 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
10757 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
10758 (TRY, CATCH, END_CATCH): Remove some definitions.
10759 * common/common-exceptions.c: Don't use GDB_XCPT.
10760 (catcher_list_size): Remove.
10761 (throw_exception, throw_it): Simplify.
10762
10763 2019-04-05 Tom Tromey <tom@tromey.com>
10764
10765 Revert the header-sorting patch.
10766 * ft32-tdep.c: Revert.
10767 * frv-tdep.c: Revert.
10768 * frv-linux-tdep.c: Revert.
10769 * frame.c: Revert.
10770 * frame-unwind.c: Revert.
10771 * frame-base.c: Revert.
10772 * fork-child.c: Revert.
10773 * findvar.c: Revert.
10774 * findcmd.c: Revert.
10775 * filesystem.c: Revert.
10776 * filename-seen-cache.h: Revert.
10777 * filename-seen-cache.c: Revert.
10778 * fbsd-tdep.c: Revert.
10779 * fbsd-nat.h: Revert.
10780 * fbsd-nat.c: Revert.
10781 * f-valprint.c: Revert.
10782 * f-typeprint.c: Revert.
10783 * f-lang.c: Revert.
10784 * extension.h: Revert.
10785 * extension.c: Revert.
10786 * extension-priv.h: Revert.
10787 * expprint.c: Revert.
10788 * exec.h: Revert.
10789 * exec.c: Revert.
10790 * exceptions.c: Revert.
10791 * event-top.c: Revert.
10792 * event-loop.c: Revert.
10793 * eval.c: Revert.
10794 * elfread.c: Revert.
10795 * dwarf2read.h: Revert.
10796 * dwarf2read.c: Revert.
10797 * dwarf2loc.c: Revert.
10798 * dwarf2expr.h: Revert.
10799 * dwarf2expr.c: Revert.
10800 * dwarf2-frame.c: Revert.
10801 * dwarf2-frame-tailcall.c: Revert.
10802 * dwarf-index-write.h: Revert.
10803 * dwarf-index-write.c: Revert.
10804 * dwarf-index-common.c: Revert.
10805 * dwarf-index-cache.h: Revert.
10806 * dwarf-index-cache.c: Revert.
10807 * dummy-frame.c: Revert.
10808 * dtrace-probe.c: Revert.
10809 * disasm.h: Revert.
10810 * disasm.c: Revert.
10811 * disasm-selftests.c: Revert.
10812 * dictionary.c: Revert.
10813 * dicos-tdep.c: Revert.
10814 * demangle.c: Revert.
10815 * dcache.h: Revert.
10816 * dcache.c: Revert.
10817 * darwin-nat.h: Revert.
10818 * darwin-nat.c: Revert.
10819 * darwin-nat-info.c: Revert.
10820 * d-valprint.c: Revert.
10821 * d-namespace.c: Revert.
10822 * d-lang.c: Revert.
10823 * ctf.c: Revert.
10824 * csky-tdep.c: Revert.
10825 * csky-linux-tdep.c: Revert.
10826 * cris-tdep.c: Revert.
10827 * cris-linux-tdep.c: Revert.
10828 * cp-valprint.c: Revert.
10829 * cp-support.c: Revert.
10830 * cp-namespace.c: Revert.
10831 * cp-abi.c: Revert.
10832 * corelow.c: Revert.
10833 * corefile.c: Revert.
10834 * continuations.c: Revert.
10835 * completer.h: Revert.
10836 * completer.c: Revert.
10837 * complaints.c: Revert.
10838 * coffread.c: Revert.
10839 * coff-pe-read.c: Revert.
10840 * cli-out.h: Revert.
10841 * cli-out.c: Revert.
10842 * charset.c: Revert.
10843 * c-varobj.c: Revert.
10844 * c-valprint.c: Revert.
10845 * c-typeprint.c: Revert.
10846 * c-lang.c: Revert.
10847 * buildsym.c: Revert.
10848 * buildsym-legacy.c: Revert.
10849 * build-id.h: Revert.
10850 * build-id.c: Revert.
10851 * btrace.c: Revert.
10852 * bsd-uthread.c: Revert.
10853 * breakpoint.h: Revert.
10854 * breakpoint.c: Revert.
10855 * break-catch-throw.c: Revert.
10856 * break-catch-syscall.c: Revert.
10857 * break-catch-sig.c: Revert.
10858 * blockframe.c: Revert.
10859 * block.c: Revert.
10860 * bfin-tdep.c: Revert.
10861 * bfin-linux-tdep.c: Revert.
10862 * bfd-target.c: Revert.
10863 * bcache.c: Revert.
10864 * ax-general.c: Revert.
10865 * ax-gdb.h: Revert.
10866 * ax-gdb.c: Revert.
10867 * avr-tdep.c: Revert.
10868 * auxv.c: Revert.
10869 * auto-load.c: Revert.
10870 * arm-wince-tdep.c: Revert.
10871 * arm-tdep.c: Revert.
10872 * arm-symbian-tdep.c: Revert.
10873 * arm-pikeos-tdep.c: Revert.
10874 * arm-obsd-tdep.c: Revert.
10875 * arm-nbsd-tdep.c: Revert.
10876 * arm-nbsd-nat.c: Revert.
10877 * arm-linux-tdep.c: Revert.
10878 * arm-linux-nat.c: Revert.
10879 * arm-fbsd-tdep.c: Revert.
10880 * arm-fbsd-nat.c: Revert.
10881 * arm-bsd-tdep.c: Revert.
10882 * arch-utils.c: Revert.
10883 * arc-tdep.c: Revert.
10884 * arc-newlib-tdep.c: Revert.
10885 * annotate.h: Revert.
10886 * annotate.c: Revert.
10887 * amd64-windows-tdep.c: Revert.
10888 * amd64-windows-nat.c: Revert.
10889 * amd64-tdep.c: Revert.
10890 * amd64-sol2-tdep.c: Revert.
10891 * amd64-obsd-tdep.c: Revert.
10892 * amd64-obsd-nat.c: Revert.
10893 * amd64-nbsd-tdep.c: Revert.
10894 * amd64-nbsd-nat.c: Revert.
10895 * amd64-nat.c: Revert.
10896 * amd64-linux-tdep.c: Revert.
10897 * amd64-linux-nat.c: Revert.
10898 * amd64-fbsd-tdep.c: Revert.
10899 * amd64-fbsd-nat.c: Revert.
10900 * amd64-dicos-tdep.c: Revert.
10901 * amd64-darwin-tdep.c: Revert.
10902 * amd64-bsd-nat.c: Revert.
10903 * alpha-tdep.c: Revert.
10904 * alpha-obsd-tdep.c: Revert.
10905 * alpha-nbsd-tdep.c: Revert.
10906 * alpha-mdebug-tdep.c: Revert.
10907 * alpha-linux-tdep.c: Revert.
10908 * alpha-linux-nat.c: Revert.
10909 * alpha-bsd-tdep.c: Revert.
10910 * alpha-bsd-nat.c: Revert.
10911 * aix-thread.c: Revert.
10912 * agent.c: Revert.
10913 * addrmap.c: Revert.
10914 * ada-varobj.c: Revert.
10915 * ada-valprint.c: Revert.
10916 * ada-typeprint.c: Revert.
10917 * ada-tasks.c: Revert.
10918 * ada-lang.c: Revert.
10919 * aarch64-tdep.c: Revert.
10920 * aarch64-ravenscar-thread.c: Revert.
10921 * aarch64-newlib-tdep.c: Revert.
10922 * aarch64-linux-tdep.c: Revert.
10923 * aarch64-linux-nat.c: Revert.
10924 * aarch64-fbsd-tdep.c: Revert.
10925 * aarch64-fbsd-nat.c: Revert.
10926 * aarch32-linux-nat.c: Revert.
10927
10928 2019-04-05 Tom Tromey <tom@tromey.com>
10929
10930 * ft32-tdep.c: Sort headers.
10931 * frv-tdep.c: Sort headers.
10932 * frv-linux-tdep.c: Sort headers.
10933 * frame.c: Sort headers.
10934 * frame-unwind.c: Sort headers.
10935 * frame-base.c: Sort headers.
10936 * fork-child.c: Sort headers.
10937 * findvar.c: Sort headers.
10938 * findcmd.c: Sort headers.
10939 * filesystem.c: Sort headers.
10940 * filename-seen-cache.h: Sort headers.
10941 * filename-seen-cache.c: Sort headers.
10942 * fbsd-tdep.c: Sort headers.
10943 * fbsd-nat.h: Sort headers.
10944 * fbsd-nat.c: Sort headers.
10945 * f-valprint.c: Sort headers.
10946 * f-typeprint.c: Sort headers.
10947 * f-lang.c: Sort headers.
10948 * extension.h: Sort headers.
10949 * extension.c: Sort headers.
10950 * extension-priv.h: Sort headers.
10951 * expprint.c: Sort headers.
10952 * exec.h: Sort headers.
10953 * exec.c: Sort headers.
10954 * exceptions.c: Sort headers.
10955 * event-top.c: Sort headers.
10956 * event-loop.c: Sort headers.
10957 * eval.c: Sort headers.
10958 * elfread.c: Sort headers.
10959 * dwarf2read.h: Sort headers.
10960 * dwarf2read.c: Sort headers.
10961 * dwarf2loc.c: Sort headers.
10962 * dwarf2expr.h: Sort headers.
10963 * dwarf2expr.c: Sort headers.
10964 * dwarf2-frame.c: Sort headers.
10965 * dwarf2-frame-tailcall.c: Sort headers.
10966 * dwarf-index-write.h: Sort headers.
10967 * dwarf-index-write.c: Sort headers.
10968 * dwarf-index-common.c: Sort headers.
10969 * dwarf-index-cache.h: Sort headers.
10970 * dwarf-index-cache.c: Sort headers.
10971 * dummy-frame.c: Sort headers.
10972 * dtrace-probe.c: Sort headers.
10973 * disasm.h: Sort headers.
10974 * disasm.c: Sort headers.
10975 * disasm-selftests.c: Sort headers.
10976 * dictionary.c: Sort headers.
10977 * dicos-tdep.c: Sort headers.
10978 * demangle.c: Sort headers.
10979 * dcache.h: Sort headers.
10980 * dcache.c: Sort headers.
10981 * darwin-nat.h: Sort headers.
10982 * darwin-nat.c: Sort headers.
10983 * darwin-nat-info.c: Sort headers.
10984 * d-valprint.c: Sort headers.
10985 * d-namespace.c: Sort headers.
10986 * d-lang.c: Sort headers.
10987 * ctf.c: Sort headers.
10988 * csky-tdep.c: Sort headers.
10989 * csky-linux-tdep.c: Sort headers.
10990 * cris-tdep.c: Sort headers.
10991 * cris-linux-tdep.c: Sort headers.
10992 * cp-valprint.c: Sort headers.
10993 * cp-support.c: Sort headers.
10994 * cp-namespace.c: Sort headers.
10995 * cp-abi.c: Sort headers.
10996 * corelow.c: Sort headers.
10997 * corefile.c: Sort headers.
10998 * continuations.c: Sort headers.
10999 * completer.h: Sort headers.
11000 * completer.c: Sort headers.
11001 * complaints.c: Sort headers.
11002 * coffread.c: Sort headers.
11003 * coff-pe-read.c: Sort headers.
11004 * cli-out.h: Sort headers.
11005 * cli-out.c: Sort headers.
11006 * charset.c: Sort headers.
11007 * c-varobj.c: Sort headers.
11008 * c-valprint.c: Sort headers.
11009 * c-typeprint.c: Sort headers.
11010 * c-lang.c: Sort headers.
11011 * buildsym.c: Sort headers.
11012 * buildsym-legacy.c: Sort headers.
11013 * build-id.h: Sort headers.
11014 * build-id.c: Sort headers.
11015 * btrace.c: Sort headers.
11016 * bsd-uthread.c: Sort headers.
11017 * breakpoint.h: Sort headers.
11018 * breakpoint.c: Sort headers.
11019 * break-catch-throw.c: Sort headers.
11020 * break-catch-syscall.c: Sort headers.
11021 * break-catch-sig.c: Sort headers.
11022 * blockframe.c: Sort headers.
11023 * block.c: Sort headers.
11024 * bfin-tdep.c: Sort headers.
11025 * bfin-linux-tdep.c: Sort headers.
11026 * bfd-target.c: Sort headers.
11027 * bcache.c: Sort headers.
11028 * ax-general.c: Sort headers.
11029 * ax-gdb.h: Sort headers.
11030 * ax-gdb.c: Sort headers.
11031 * avr-tdep.c: Sort headers.
11032 * auxv.c: Sort headers.
11033 * auto-load.c: Sort headers.
11034 * arm-wince-tdep.c: Sort headers.
11035 * arm-tdep.c: Sort headers.
11036 * arm-symbian-tdep.c: Sort headers.
11037 * arm-pikeos-tdep.c: Sort headers.
11038 * arm-obsd-tdep.c: Sort headers.
11039 * arm-nbsd-tdep.c: Sort headers.
11040 * arm-nbsd-nat.c: Sort headers.
11041 * arm-linux-tdep.c: Sort headers.
11042 * arm-linux-nat.c: Sort headers.
11043 * arm-fbsd-tdep.c: Sort headers.
11044 * arm-fbsd-nat.c: Sort headers.
11045 * arm-bsd-tdep.c: Sort headers.
11046 * arch-utils.c: Sort headers.
11047 * arc-tdep.c: Sort headers.
11048 * arc-newlib-tdep.c: Sort headers.
11049 * annotate.h: Sort headers.
11050 * annotate.c: Sort headers.
11051 * amd64-windows-tdep.c: Sort headers.
11052 * amd64-windows-nat.c: Sort headers.
11053 * amd64-tdep.c: Sort headers.
11054 * amd64-sol2-tdep.c: Sort headers.
11055 * amd64-obsd-tdep.c: Sort headers.
11056 * amd64-obsd-nat.c: Sort headers.
11057 * amd64-nbsd-tdep.c: Sort headers.
11058 * amd64-nbsd-nat.c: Sort headers.
11059 * amd64-nat.c: Sort headers.
11060 * amd64-linux-tdep.c: Sort headers.
11061 * amd64-linux-nat.c: Sort headers.
11062 * amd64-fbsd-tdep.c: Sort headers.
11063 * amd64-fbsd-nat.c: Sort headers.
11064 * amd64-dicos-tdep.c: Sort headers.
11065 * amd64-darwin-tdep.c: Sort headers.
11066 * amd64-bsd-nat.c: Sort headers.
11067 * alpha-tdep.c: Sort headers.
11068 * alpha-obsd-tdep.c: Sort headers.
11069 * alpha-nbsd-tdep.c: Sort headers.
11070 * alpha-mdebug-tdep.c: Sort headers.
11071 * alpha-linux-tdep.c: Sort headers.
11072 * alpha-linux-nat.c: Sort headers.
11073 * alpha-bsd-tdep.c: Sort headers.
11074 * alpha-bsd-nat.c: Sort headers.
11075 * aix-thread.c: Sort headers.
11076 * agent.c: Sort headers.
11077 * addrmap.c: Sort headers.
11078 * ada-varobj.c: Sort headers.
11079 * ada-valprint.c: Sort headers.
11080 * ada-typeprint.c: Sort headers.
11081 * ada-tasks.c: Sort headers.
11082 * ada-lang.c: Sort headers.
11083 * aarch64-tdep.c: Sort headers.
11084 * aarch64-ravenscar-thread.c: Sort headers.
11085 * aarch64-newlib-tdep.c: Sort headers.
11086 * aarch64-linux-tdep.c: Sort headers.
11087 * aarch64-linux-nat.c: Sort headers.
11088 * aarch64-fbsd-tdep.c: Sort headers.
11089 * aarch64-fbsd-nat.c: Sort headers.
11090 * aarch32-linux-nat.c: Sort headers.
11091
11092 2019-04-04 Tom Tromey <tom@tromey.com>
11093
11094 * varobj.c (varobj_create): Update.
11095 * rust-exp.y (struct rust_parser) <update_innermost_block,
11096 lookup_symbol>: New methods.
11097 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
11098 Rename.
11099 (rust_parser::rust_lookup_type)
11100 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11101 * printcmd.c (display_command, do_one_display): Update.
11102 * parser-defs.h (struct parser_state) <parser_state>: Add
11103 "tracker" parameter.
11104 (block_tracker): New member.
11105 (class innermost_block_tracker) <innermost_block_tracker>: Add
11106 "types" parameter.
11107 <reset>: Remove method.
11108 (innermost_block): Don't declare.
11109 (null_post_parser): Update.
11110 * parse.c (innermost_block): Remove global.
11111 (write_dollar_variable): Update.
11112 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
11113 Remove "tracker_types" parameter.
11114 (parse_expression): Add "tracker" parameter.
11115 (parse_expression_for_completion): Update.
11116 (null_post_parser): Add "tracker" parameter.
11117 * p-exp.y: Update rules.
11118 * m2-exp.y: Update rules.
11119 * language.h (struct language_defn) <la_post_parser>: Add
11120 "tracker" parameter.
11121 * go-exp.y: Update rules.
11122 * f-exp.y: Update rules.
11123 * expression.h (parse_expression, parse_exp_1): Add "tracker"
11124 parameter.
11125 * d-exp.y: Update rules.
11126 * c-exp.y: Update rules.
11127 * breakpoint.c (set_breakpoint_condition): Create an
11128 innermost_block_tracker.
11129 (watch_command_1): Likewise.
11130 * ada-lang.c (resolve): Add "tracker" parameter.
11131 (resolve_subexp): Likewise.
11132 * ada-exp.y (write_var_from_sym): Update.
11133
11134 2019-04-04 Tom Tromey <tom@tromey.com>
11135
11136 * type-stack.h: New file.
11137 * type-stack.c: New file.
11138 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
11139 type-stack.h.
11140 (insert_into_type_stack, insert_type, push_type, push_type_int)
11141 (insert_type_address_space, pop_type, pop_type_int)
11142 (pop_typelist, pop_type_stack, append_type_stack)
11143 (push_type_stack, get_type_stack, push_typelist)
11144 (follow_type_instance_flags, follow_types): Don't declare.
11145 * parse.c (type_stack): Remove global.
11146 (parse_exp_in_context): Update.
11147 (insert_into_type_stack, insert_type, push_type, push_type_int)
11148 (insert_type_address_space, pop_type, pop_type_int)
11149 (pop_typelist, pop_type_stack, append_type_stack)
11150 (push_type_stack, get_type_stack, push_typelist)
11151 (follow_type_instance_flags, follow_types): Remove (moved to
11152 type-stack.c).
11153 * f-exp.y (type_stack): New global.
11154 Update rules.
11155 (push_kind_type, f_parse): Update.
11156 * d-exp.y (type_stack): New global.
11157 Update rules.
11158 (d_parse): Update.
11159 * c-exp.y (struct c_parse_state) <type_stack>: New member.
11160 Update rules.
11161 * Makefile.in (COMMON_SFILES): Add type-stack.c.
11162 (HFILES_NO_SRCDIR): Add type-stack.h.
11163
11164 2019-04-04 Tom Tromey <tom@tromey.com>
11165
11166 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
11167 (rust_parser::convert_ast_to_expression, rust_parse)
11168 (rust_lex_test_completion, rust_lex_tests): Update.
11169 * parser-defs.h (struct expr_completion_state): New.
11170 (struct parser_state) <parser_state>: Add completion parameter.
11171 <mark_struct_expression, mark_completion_tag>: New methods.
11172 <parse_completion, m_completion_state>: New members.
11173 (prefixify_expression, null_post_parser): Update.
11174 (mark_struct_expression, mark_completion_tag): Don't declare.
11175 * parse.c (parse_completion, expout_last_struct)
11176 (expout_tag_completion_type, expout_completion_name): Remove
11177 globals.
11178 (parser_state::mark_struct_expression)
11179 (parser_state::mark_completion_tag): Now methods.
11180 (prefixify_expression): Add last_struct parameter.
11181 (prefixify_subexp): Likewise.
11182 (parse_exp_1): Update.
11183 (parse_exp_in_context): Add cstate parameter. Update.
11184 (parse_expression_for_completion): Create an
11185 expr_completion_state.
11186 (null_post_parser): Add "completion" parameter.
11187 * p-exp.y: Update rules.
11188 (yylex): Update.
11189 * language.h (struct language_defn) <la_post_parser>: Add
11190 "completing" parameter.
11191 * go-exp.y: Update rules.
11192 (lex_one_token): Update.
11193 * expression.h (parse_completion): Don't declare.
11194 * d-exp.y: Update rules.
11195 (lex_one_token): Update rules.
11196 * c-exp.y: Update rules.
11197 (lex_one_token): Update.
11198 * ada-lang.c (resolve): Add "parse_completion" parameter.
11199 (resolve_subexp): Likewise.
11200 (ada_resolve_function): Likewise.
11201
11202 2019-04-04 Tom Tromey <tom@tromey.com>
11203
11204 * parser-defs.h (struct parser_state) <start_arglist,
11205 end_arglist>: New methods.
11206 <arglist_len, m_funcall_chain>: New members.
11207 (arglist_len, start_arglist, end_arglist): Don't declare.
11208 * parse.c (arglist_len, funcall_chain): Remove global.
11209 (start_arglist, end_arglist): Remove functions.
11210 (parse_exp_in_context): Update.
11211 * p-exp.y: Update rules.
11212 * m2-exp.y: Update rules.
11213 * go-exp.y: Update rules.
11214 * f-exp.y: Update rules.
11215 * d-exp.y: Update rules.
11216 * c-exp.y: Update rules.
11217
11218 2019-04-04 Tom Tromey <tom@tromey.com>
11219
11220 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
11221 lex_operator, push_back>: New methods.
11222 Update all rules.
11223 (rust_parser::lex_hex, lex_escape): Rename and update.
11224 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
11225 (rust_parser::lex_operator): Rename and update.
11226 (rust_parser::lex_number, rustyylex, rustyyerror)
11227 (rust_lex_test_init, rust_lex_test_sequence)
11228 (rust_lex_test_push_back, rust_lex_tests): Update.
11229 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
11230 parameter.
11231 <lexptr, prev_lexptr>: New members.
11232 (lexptr, prev_lexptr): Don't declare.
11233 * parse.c (lexptr, prev_lexptr): Remove globals.
11234 (parse_exp_in_context): Update.
11235 * p-exp.y (yylex, yyerror): Update.
11236 * m2-exp.y (parse_number, yylex, yyerror): Update.
11237 * go-exp.y (lex_one_token, yyerror): Update.
11238 * f-exp.y (match_string_literal, yylex, yyerror): Update.
11239 * d-exp.y (lex_one_token, yyerror): Update.
11240 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
11241 (lex_one_token, yyerror): Update.
11242 * ada-lex.l (YY_INPUT): Update.
11243 (rewind_to_char): Update.
11244 * ada-exp.y (yyerror): Update.
11245
11246 2019-04-04 Tom Tromey <tom@tromey.com>
11247
11248 * rust-exp.y (rustyylex, rust_lex_tests): Update.
11249 * parser-defs.h (struct parser_state) <parser_state>: Add new
11250 parameter.
11251 <comma_terminates>: New member.
11252 (comma_terminates): Don't declare global.
11253 * parse.c (comma_terminates): Remove global.
11254 (parse_exp_in_context): Update.
11255 * p-exp.y (yylex): Update.
11256 * m2-exp.y (yylex): Update.
11257 * go-exp.y (lex_one_token): Update.
11258 * f-exp.y (yylex): Update.
11259 * d-exp.y (lex_one_token): Update.
11260 * c-exp.y (lex_one_token): Update.
11261 * ada-lex.l: Update.
11262
11263 2019-04-04 Tom Tromey <tom@tromey.com>
11264
11265 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
11266 (rustyylex, rust_lex_test_init, rust_lex_test_one)
11267 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
11268 * parser-defs.h (paren_depth): Don't declare.
11269 * parse.c (paren_depth): Remove global.
11270 (parse_exp_in_context): Update.
11271 * p-exp.y (paren_depth): New global.
11272 (pascal_parse): Initialize it.
11273 * m2-exp.y (paren_depth): New global.
11274 (m2_parse): Initialize it.
11275 * go-exp.y (paren_depth): New global.
11276 (go_parse): Initialize it.
11277 * f-exp.y (paren_depth): New global.
11278 (f_parse): Initialize it.
11279 * d-exp.y (paren_depth): New global.
11280 (d_parse): Initialize it.
11281 * c-exp.y (paren_depth): New global.
11282 (c_parse): Initialize it.
11283 * ada-lex.l (paren_depth): New global.
11284 (lexer_init): Initialize it.
11285
11286 2019-04-04 Tom Tromey <tom@tromey.com>
11287
11288 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
11289 (rust_parser::convert_ast_to_type)
11290 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11291 * parser-defs.h (struct parser_state) <parser_state>: Add
11292 parameters. Initialize new members.
11293 <expression_context_block, expression_context_pc>: New members.
11294 * parse.c (expression_context_block, expression_context_pc):
11295 Remove globals.
11296 (parse_exp_in_context): Update.
11297 * p-exp.y: Update all rules.
11298 (yylex): Update.
11299 * m2-exp.y: Update all rules.
11300 (yylex): Update.
11301 * go-exp.y (yylex): Update.
11302 * f-exp.y (yylex): Update.
11303 * d-exp.y: Update all rules.
11304 (yylex): Update.
11305 * c-exp.y: Update all rules.
11306 (lex_one_token, classify_name, yylex, c_parse): Update.
11307 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
11308
11309 2019-04-04 Tom Tromey <tom@tromey.com>
11310
11311 * gdbarch.h, gdbarch.c: Rebuild.
11312 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
11313 * stap-probe.h:
11314 (struct stap_parse_info): Replace "parser_state" with
11315 "expr_builder".
11316 * parser-defs.h (struct expr_builder): Rename from "parser_state".
11317 (parser_state): New class.
11318 * parse.c (expr_builder): Rename.
11319 (expr_builder::release): Rename.
11320 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
11321 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
11322 (write_exp_elt_longcst, write_exp_elt_floatcst)
11323 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
11324 (write_exp_string_vector, write_exp_bitstring)
11325 (write_exp_msymbol, mark_struct_expression)
11326 (write_dollar_variable)
11327 (insert_type_address_space, increase_expout_size): Replace
11328 "parser_state" with "expr_builder".
11329 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
11330 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
11331 "parser_state" with "expr_builder".
11332
11333 2019-04-04 Tom Tromey <tom@tromey.com>
11334
11335 * rust-exp.y: Replace "parse_language" with method call.
11336 * p-exp.y:
11337 (yylex): Replace "parse_language" with method call.
11338 * m2-exp.y:
11339 (yylex): Replace "parse_language" with method call.
11340 * go-exp.y (classify_name): Replace "parse_language" with method
11341 call.
11342 * f-exp.y (yylex): Replace "parse_language" with method call.
11343 * d-exp.y (lex_one_token): Replace "parse_language" with method
11344 call.
11345 * c-exp.y:
11346 (lex_one_token, classify_name, yylex): Replace "parse_language"
11347 with method call.
11348 * ada-exp.y (find_primitive_type, type_char)
11349 (type_system_address): Replace "parse_language" with method call.
11350
11351 2019-04-04 Tom Tromey <tom@tromey.com>
11352
11353 * rust-exp.y: Replace "parse_gdbarch" with method call.
11354 * parse.c (write_dollar_variable, insert_type_address_space):
11355 Replace "parse_gdbarch" with method call.
11356 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
11357 call.
11358 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
11359 call.
11360 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
11361 "parse_gdbarch" with method call.
11362 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
11363 with method call.
11364 * f-exp.y (parse_type, parse_f_type, yylex): Replace
11365 "parse_gdbarch" with method call.
11366 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
11367 "parse_gdbarch" with method call.
11368 * c-exp.y (parse_type, parse_number, classify_name): Replace
11369 "parse_gdbarch" with method call.
11370 * ada-lex.l: Replace "parse_gdbarch" with method call.
11371 * ada-exp.y (parse_type, find_primitive_type, type_char)
11372 (type_system_address): Replace "parse_gdbarch" with method call.
11373
11374 2019-04-04 Tom Tromey <tom@tromey.com>
11375
11376 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
11377 * stap-probe.c (stap_parse_argument): Update.
11378 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
11379 initial_size parameter.
11380 * rust-exp.y (rust_lex_tests): Update.
11381 * parse.c (parser_state): Update.
11382 (parse_exp_in_context): Update.
11383 * parser-defs.h (struct parser_state) <parser_state>: Remove
11384 "initial_size" parameter.
11385
11386 2019-04-04 Tom Tromey <tom@tromey.com>
11387
11388 * parser-defs.h (increase_expout_size): Don't declare.
11389 * parse.c (increase_expout_size): Now static.
11390
11391 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
11392
11393 * gnu-nat.c (gnu_nat_target::wait): Fix
11394 target_waitstatus_to_string call.
11395
11396 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
11397
11398 * eval.c (evaluate_subexp_standard): Handle internal functions
11399 during Fortran function call handling.
11400
11401 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
11402
11403 * NEWS: Mention new internal functions.
11404 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
11405 (read_base_type): Use dwarf2_init_complex_target_type.
11406 * value.c (creal_internal_fn): New function.
11407 (cimag_internal_fn): New function.
11408 (_initialize_values): Register new internal functions.
11409
11410 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11411
11412 * infrun.c (stop_all_threads): If debug_infrun, always
11413 trace the wait status after wait_one, using
11414 target_waitstatus_to_string and target_pid_to_str.
11415 (handle_inferior_event): Replace various trace of
11416 wait status kind by a single trace.
11417 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
11418 wait status kind image by target_waitstatus_to_string.
11419 * target/waitstatus.c (target_waitstatus_to_string): Fix
11420 obsolete comment.
11421
11422 2019-04-01 Tom Tromey <tromey@adacore.com>
11423
11424 PR symtab/23331:
11425 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
11426
11427 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
11428 Pedro Alves <palves@redhat.com>
11429
11430 * top.c (quit_force): Call 'finalize_values'.
11431 * value.c (finalize_values): New function.
11432 * value.h (finalize_values): Declare.
11433
11434 2019-03-30 Eli Zaretskii <eliz@gnu.org>
11435
11436 * NEWS: Announce $_gdb_major and $_gdb_minor.
11437
11438 * top.c (init_gdb_version_vars): New function.
11439 (gdb_init): Call init_gdb_version_vars.
11440
11441 2019-03-29 Tom Tromey <tromey@adacore.com>
11442
11443 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
11444 help text. Remove dead code.
11445
11446 2019-03-29 Keith Seitz <keiths@redhat.com>
11447
11448 From Siddhesh Poyarekar:
11449 * f-lang.h (f77_get_upperbound): Return LONGEST.
11450 (f77_get_lowerbound): Likewise.
11451 * f-typeprint.c (f_type_print_varspec_suffix): Expand
11452 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
11453 print them.
11454 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
11455 plongest to format print it.
11456 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
11457 (f77_get_upperbound): Likewise.
11458 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
11459 LOWER_BOUND to LONGEST.
11460 (f77_create_arrayprint_offset_tbl): Likewise.
11461
11462 2019-03-29 Keith Seitz <keiths@redhat.com>
11463
11464 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
11465 %s/pulongest for TYPE_LENGTH instead of %d in format
11466 strings.
11467 * ada-typerint.c (ada_print_type): Likewise.
11468 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
11469 * compile/compile-c-support.c (generate_register_struct): Likewise.
11470 * gdbtypes.c (recursive_dump_type): Likewise.
11471 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
11472 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
11473 instead of %d in format strings.
11474 * riscv-tdep.c (riscv_type_alignment): Cast second argument
11475 to std::min to ULONGEST.
11476 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
11477 instead of %d in format strings.
11478 * tracepoint.c (info_scope_command): Likewise.
11479 * typeprint.c (print_offset_data::update)
11480 (print_offset_data::finish): Likewise.
11481 * xtensa-tdep.c (xtensa_store_return_value)
11482 (xtensa_push_dummy_call): Likewise.
11483
11484 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
11485
11486 * windows-nat.c (display_selector): Fixed format specifications
11487 for 64-bit Cygwin.
11488
11489 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11490
11491 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
11492
11493 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
11494
11495 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
11496 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
11497 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
11498 (nios2_linux_init_abi): Install it.
11499
11500 2019-03-28 Alan Hayward <alan.hayward@arm.com>
11501
11502 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
11503
11504 2019-03-28 Alan Hayward <alan.hayward@arm.com>
11505
11506 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
11507
11508 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11509 Tom Tromey <tromey@adacore.com>
11510
11511 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
11512
11513 2019-03-26 Joel Brobecker <brobecker@adacore.com>
11514
11515 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
11516 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
11517 method to compute the bounds of range types. Also print "[evaluated]"
11518 if the bounds' values come from a dynamic evaluation.
11519
11520 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
11521
11522 * cp-valprint.c (cp_print_value_fields): Don't print trailing
11523 whitespace when pretty printing is on.
11524
11525 2019-03-26 Alan Hayward <alan.hayward@arm.com>
11526
11527 * ppc-linux-nat.c: Add include.
11528
11529 2019-03-26 Alan Hayward <alan.hayward@arm.com>
11530
11531 * NEWS: Mention AArch64 Pointer Authentication.
11532
11533 2019-03-26 Alan Hayward <alan.hayward@arm.com>
11534
11535 * arm-linux-nat.c: Add include.
11536
11537 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
11538
11539 * source-cache.c (source_cache::get_source_lines): Re-read
11540 fullname after calling open_source_file.
11541
11542 2019-03-25 John Baldwin <jhb@FreeBSD.org>
11543
11544 * NEWS: Mention TLS support for FreeBSD.
11545
11546 2019-03-25 Tom Tromey <tromey@adacore.com>
11547
11548 * minsyms.c (BUNCH_SIZE): Update comment.
11549 (~minimal_symbol_reader): Remove old comment.
11550 (compact_minimal_symbols): Update comment.
11551 (minimal_symbol_reader::install): Remove old comment. Update
11552 other comments.
11553
11554 2019-03-25 Alan Hayward <alan.hayward@arm.com>
11555
11556 * s390-linux-nat.c: Add include.
11557
11558 2019-03-25 Alan Hayward <alan.hayward@arm.com>
11559
11560 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
11561 Call linux_get_hwcap.
11562 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
11563 Likewise.
11564 (aarch64_linux_get_hwcap): Remove function.
11565 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
11566 declaration.
11567 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
11568 linux_get_hwcap.
11569 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
11570 * linux-tdep.c (linux_get_hwcap): Add function.
11571 (linux_get_hwcap2): Likewise.
11572 * linux-tdep.h (linux_get_hwcap): Add declaration.
11573 (linux_get_hwcap2): Likewise.
11574 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
11575 (ppc_linux_get_hwcap2): Likewise.
11576 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
11577 linux_get_hwcap.
11578 (ppc_linux_nat_target::insert_watchpoint): Likewise.
11579 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
11580 (ppc_linux_nat_target::read_description): Likewise.
11581 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
11582 * s390-linux-nat.c: Likewise.
11583 * s390-linux-tdep.c (s390_core_read_description): Likewise.
11584
11585 2019-03-24 Tom Tromey <tom@tromey.com>
11586
11587 * ada-lang.c (standard_lookup): Simplify initialization.
11588 (ada_lookup_symbol_nonlocal): Simplify return.
11589 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
11590 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
11591 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
11592 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
11593 initialization.
11594 * solib.c (solib_global_lookup): Simplify.
11595 * symtab.c (null_block_symbol): Remove.
11596 (symbol_cache_lookup): Simplify returns.
11597 (lookup_language_this): Simplify returns.
11598 (lookup_symbol_aux): Simplify return.
11599 (lookup_local_symbol): Simplify returns.
11600 (lookup_global_symbol_from_objfile): Simplify return.
11601 (lookup_symbol_in_objfile_symtabs)
11602 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
11603 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
11604 (lookup_static_symbol, lookup_global_symbol): Simplify return.
11605 * cp-namespace.c (cp_lookup_bare_symbol)
11606 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
11607 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
11608 (cp_lookup_nested_symbol): Don't use null_block_symbol.
11609 (cp_lookup_symbol_via_imports): Simplify initialization.
11610 (find_symbol_in_baseclass): Likewise.
11611 * symtab.h (null_block_symbol): Remove.
11612 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
11613 (d_lookup_nested_symbol, d_lookup_symbol_imports)
11614 (d_lookup_symbol_module): Likewise.
11615 (find_symbol_in_baseclass): Simplify initialization.
11616
11617 2019-03-24 Tom Tromey <tom@tromey.com>
11618
11619 * expression.h: Don't include symtab.h.
11620 (struct block): Forward declare.
11621
11622 2019-03-24 Tom Tromey <tom@tromey.com>
11623
11624 * c-exp.y (typebase): Remove casts.
11625 * gdbtypes.c (lookup_unsigned_typename, )
11626 (lookup_signed_typename): Remove cast.
11627 * eval.c (parse_to_comma_and_eval): Remove cast.
11628 * parse.c (write_dollar_variable): Remove cast.
11629 * block.h (struct block) <superblock>: Now const.
11630 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
11631 * psymtab.c (psym_map_matching_symbols): Make "block" const.
11632 (map_block): Make "block" const.
11633 * symfile.h (struct quick_symbol_functions)
11634 <map_matching_symbols>: Constify block argument to "callback".
11635 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
11636 const.
11637 (find_pc_sect_compunit_symtab): Make "b" const.
11638 (find_symbol_at_address): Likewise.
11639 (search_symbols): Likewise.
11640 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
11641 (dw2_debug_names_lookup_symbol): Likewise.
11642 (dw2_map_matching_symbols): Update.
11643 * p-valprint.c (pascal_val_print): Remove "block".
11644 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
11645 (aux_add_nonlocal_symbols): Make "block" const.
11646 (resolve_subexp): Remove cast.
11647 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
11648 const.
11649 (iterate_over_file_blocks): Likewise.
11650 * f-exp.y (%union) <bval>: Remove.
11651 * coffread.c (patch_opaque_types): Make "b" const.
11652 * spu-tdep.c (spu_catch_start): Make "block" const.
11653 * c-valprint.c (print_unpacked_pointer): Remove "block".
11654 * symmisc.c (dump_symtab_1): Make "b" const.
11655 (block_depth): Make "block" const.
11656 * d-exp.y (%union) <bval>: Remove.
11657 * cp-support.h (cp_lookup_rtti_type): Update.
11658 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
11659 * psymtab.c (psym_lookup_symbol): Make "block" const.
11660 (maintenance_check_psymtabs): Make "b" const.
11661 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
11662 (enumerate_locals, enumerate_args): Update.
11663 * python/py-symtab.c (stpy_global_block): Make "block" const.
11664 (stpy_static_block): Likewise.
11665 * inline-frame.c (block_starting_point_at): Make "new_block"
11666 const.
11667 * block.c (find_block_in_blockvector): Make return type const.
11668 (blockvector_for_pc_sect): Make "b" const.
11669 (find_block_in_blockvector): Make "b" const.
11670
11671 2019-03-23 Tom Tromey <tom@tromey.com>
11672
11673 * varobj.c (varobj_create): Update.
11674 * symfile.c (clear_symtab_users): Don't reset innermost_block.
11675 * printcmd.c (display_command, do_one_display): Don't reset
11676 innermost_block.
11677 * parser-defs.h (enum innermost_block_tracker_type): Move to
11678 expression.h.
11679 (innermost_block): Update comment.
11680 * parse.c (parse_exp_1): Add tracker_types parameter.
11681 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
11682 tracker_types parameter. Reset innermost_block.
11683 (parse_exp_in_context): Remove.
11684 (parse_expression_for_completion): Update.
11685 * objfiles.c (~objfile): Don't reset expression_context_block or
11686 innermost_block.
11687 * expression.h (enum innermost_block_tracker_type): Move from
11688 parser-defs.h.
11689 (parse_exp_1): Add tracker_types parameter.
11690 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
11691 reset innermost_block.
11692
11693 2019-03-23 Tom Tromey <tom@tromey.com>
11694
11695 * objfiles.h: Include bcache.h.
11696
11697 2019-03-23 Tom Tromey <tom@tromey.com>
11698
11699 * linespec.c (get_current_search_block): Use
11700 scoped_restore_current_language.
11701 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
11702
11703 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11704 Jiong Wang <jiong.wang@arm.com>
11705
11706 * aarch64-linux-tdep.c
11707 (aarch64_linux_iterate_over_regset_sections): Check for pauth
11708 section.
11709 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
11710
11711 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11712 Jiong Wang <jiong.wang@arm.com>
11713
11714 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
11715 instructions.
11716 (aarch64_analyze_prologue_test): Add PACIASP test.
11717 (aarch64_prologue_prev_register): Unmask PC value.
11718
11719 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11720 Jiong Wang <jiong.wang@arm.com>
11721
11722 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
11723 (aarch64_dwarf2_prev_register): Unmask PC value.
11724 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
11725 (aarch64_execute_dwarf_cfa_vendor_op): Check for
11726 DW_CFA_AARCH64_negate_ra_state.
11727 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
11728
11729 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11730 Jiong Wang <jiong.wang@arm.com>
11731
11732 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
11733 registers.
11734 (aarch64_pseudo_register_name): Likewise.
11735 (aarch64_pseudo_register_type): Likewise.
11736 (aarch64_pseudo_register_reggroup_p): Likewise.
11737 (aarch64_gdbarch_init): Add pauth registers.
11738 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
11739 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
11740 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
11741 (struct gdbarch_tdep): Add regnum for ra_state.
11742
11743 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11744 Jiong Wang <jiong.wang@arm.com>
11745
11746 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
11747
11748 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11749 Jiong Wang <jiong.wang@arm.com>
11750
11751 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
11752 function.
11753 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
11754 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
11755 (aarch64_gdbarch_init): Add puth registers.
11756 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
11757 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
11758 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
11759
11760 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11761 Jiong Wang <jiong.wang@arm.com>
11762
11763 * aarch64-linux-nat.c
11764 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
11765 * aarch64-linux-tdep.c
11766 (aarch64_linux_core_read_description): Likewise.
11767 (aarch64_linux_get_hwcap): New function.
11768 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
11769 (aarch64_linux_get_hwcap): New declaration.
11770
11771 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11772 Jiong Wang <jiong.wang@arm.com>
11773
11774 * aarch64-linux-nat.c
11775 (aarch64_linux_nat_target::read_description): Add pauth param.
11776 * aarch64-linux-tdep.c
11777 (aarch64_linux_core_read_description): Likewise.
11778 * aarch64-tdep.c (struct target_desc): Add in pauth.
11779 (aarch64_read_description): Add pauth param.
11780 (aarch64_gdbarch_init): Likewise.
11781 * aarch64-tdep.h (aarch64_read_description): Likewise.
11782 * arch/aarch64.c (aarch64_create_target_description): Likewise.
11783 * arch/aarch64.h (aarch64_create_target_description): Likewise.
11784 * features/Makefile: Add new files.
11785 * features/aarch64-pauth.c: New file.
11786 * features/aarch64-pauth.xml: New file.
11787
11788 2019-03-20 Tom Tromey <tromey@adacore.com>
11789
11790 * infrun.c (handle_inferior_event): Rename from
11791 handle_inferior_event_1. Create a scoped_value_mark.
11792 (handle_inferior_event): Remove.
11793
11794 2019-03-19 Tom Tromey <tromey@adacore.com>
11795
11796 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
11797 * infrun.h (print_stop_event): Add "displays" parameter.
11798 * infrun.c (print_stop_event): Add "displays" parameter.
11799
11800 2019-03-19 Pedro Alves <palves@redhat.com>
11801
11802 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
11803 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
11804 to -1. Fix TABs vs spaces.
11805 (tui_ui_out::tui_ui_out): Don't initialize fields here.
11806 * tui/tui-out.h (tui_ui_out) Add intro comments.
11807 <m_line, m_start_of_line>: In-class initialize, and add describing
11808 comment.
11809
11810 2019-03-18 Alan Hayward <alan.hayward@arm.com>
11811
11812 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
11813 variable names.
11814 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
11815
11816 2019-03-18 Pedro Alves <palves@redhat.com>
11817 Eli Zaretskii <eliz@gnu.org>
11818
11819 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
11820 m_line and m_start_of_line.
11821
11822 2019-03-18 Eli Zaretskii <eliz@gnu.org>
11823
11824 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
11825 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
11826 it returns a newline. This fixes a regression in TU mode, whereby
11827 the next line is output on the same screen line as the user input.
11828
11829 2019-03-18 Tom Tromey <tromey@adacore.com>
11830
11831 * minsyms.c (minimal_symbol_reader::install): Remove call to
11832 obstack_blank.
11833
11834 2019-03-18 Pedro Alves <palves@redhat.com>
11835
11836 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
11837 New globals.
11838 (apply_style): New, factored out from ...
11839 (apply_ansi_escape): ... this. Handle reverse video mode.
11840 (tui_set_reverse_mode): New function.
11841 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
11842 * tui/tui-winsource.c (tui_show_source_line): Use
11843 tui_set_reverse_mode instead of setting A_STANDOUT.
11844 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
11845 New setter methods.
11846
11847 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
11848
11849 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
11850 Handle tabs.
11851
11852 2019-03-18 Tom Tromey <tromey@adacore.com>
11853
11854 * ada-lang.c (empty_array): Add "high" parameter.
11855 (ada_evaluate_subexp): Update.
11856
11857 2019-03-17 Sergei Trofimovich <siarheit@google.com>
11858
11859 * unittests/string_view-selftests.c: Define
11860 _initialize_string_view_selftests unconditionally.
11861
11862 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
11863
11864 PR gdb/24350
11865 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
11866
11867 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
11868
11869 PR gdb/24351
11870 * windows-nat.c (display_selector): Fix format specifiers.
11871
11872 2019-03-17 Eli Zaretskii <eliz@gnu.org>
11873
11874 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
11875 tui_refill_source_window instead of tui_refresh_win, to update the
11876 current execution line. This fixes redisplay of the current line
11877 when stepping through the code with "next" or "step".
11878
11879 2019-03-16 Eli Zaretskii <eliz@gnu.org>
11880
11881 * source-cache.c (source_cache::get_source_lines): Call
11882 find_source_lines to initialize s->nlines. This fixes vertical
11883 scrolling of TUI source window when the DOWN arrow is pressed.
11884
11885 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11886
11887 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
11888 linux-thread-db.c (_initialize_thread_db): Likewise.
11889
11890 2019-03-16 Eli Zaretskii <eliz@gnu.org>
11891
11892 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
11893 wclrtoeol in tui_show_source_line". This reverts changes made in
11894 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
11895
11896 2019-03-15 Tom Tromey <tom@tromey.com>
11897
11898 * symtab.h (struct minimal_symbol): Derive from
11899 general_symbol_info.
11900 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
11901 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
11902 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
11903 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
11904 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
11905 (MSYMBOL_SEARCH_NAME): Update.
11906 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
11907 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
11908 * minsyms.c (minimal_symbol_reader::record_full): Update.
11909
11910 2019-03-15 Tom Tromey <tom@tromey.com>
11911
11912 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
11913
11914 2019-03-15 Tom Tromey <tom@tromey.com>
11915
11916 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
11917 unique_xmalloc_ptr.
11918 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
11919 Update.
11920 * minsyms.c (lookup_minimal_symbol_by_pc_section)
11921 (build_minimal_symbol_hash_tables)
11922 (minimal_symbol_reader::install): Update.
11923
11924 2019-03-15 Tom Tromey <tom@tromey.com>
11925
11926 * symtab.c (create_demangled_names_hash): Update.
11927 (symbol_set_names): Update.
11928 * objfiles.h (struct objfile_per_bfd_storage)
11929 <demangled_names_hash>: Now an htab_up.
11930 * objfiles.c (objfile_per_bfd_storage): Simplify.
11931
11932 2019-03-15 Tom Tromey <tom@tromey.com>
11933
11934 * objfiles.h (struct objfile_per_bfd_storage): Declare
11935 destructor.
11936 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
11937 New.
11938 (get_objfile_bfd_data): Use new. Don't initialize
11939 language_of_main.
11940 (free_objfile_per_bfd_storage): Remove.
11941 (objfile_bfd_data_free, objfile::~objfile): Use delete.
11942
11943 2019-03-15 Tom Tromey <tom@tromey.com>
11944
11945 * symfile.c (reread_symbols): Update.
11946 * objfiles.c (objfile::objfile): Update.
11947 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
11948 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
11949 comment.
11950 (minimal_symbol_reader::install): Update.
11951 (terminate_minimal_symbol_table): Remove.
11952 * jit.c (jit_object_close_impl): Update.
11953
11954 2019-03-15 Tom Tromey <tom@tromey.com>
11955
11956 * minsyms.c (minimal_symbol_reader::record_full): Remove some
11957 initializations.
11958
11959 2019-03-15 Tom Tromey <tom@tromey.com>
11960
11961 * objfiles.h (struct objfile_per_bfd_storage)
11962 <demangled_hash_languages>: Now a bitset.
11963 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
11964 (lookup_minimal_symbol): Update.
11965
11966 2019-03-15 Tom Tromey <tom@tromey.com>
11967
11968 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
11969 Don't return the symbol.
11970 * coffread.c (record_minimal_symbol): Use record_full.
11971
11972 2019-03-14 Eli Zaretskii <eliz@gnu.org>
11973
11974 The MS-Windows port of ncurses fails to switch to a color pair if
11975 one or both of the colors are the implicit default colors. This
11976 change records the default colors when TUI is initialized, and
11977 then specifies them explicitly when a color pair uses the default
11978 colors. This allows color styling in TUI mode on MS-Windows.
11979
11980 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
11981 ncurses_norm_attr.
11982 (tui_initialize_io) [__MINGW32__]: Record the default terminal
11983 colors in ncurses_norm_attr.
11984 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
11985 "none", replace it with the default color recorded in
11986 ncurses_norm_attr.
11987
11988 2019-03-14 Tom Tromey <tromey@adacore.com>
11989
11990 * source-cache.h (class source_cache) <get_source_lines>: Return
11991 std::string.
11992 * source-cache.c (source_cache::extract_lines): Handle case where
11993 first_pos==npos. Return std::string.
11994 (source_cache::get_source_lines): Update.
11995
11996 2019-03-14 Tom Tromey <tromey@adacore.com>
11997
11998 * NEWS: Add item for "style sources" commands.
11999 * source-cache.c (source_cache::get_source_lines): Check
12000 source_styling.
12001 * cli/cli-style.c (source_styling): New global.
12002 (_initialize_cli_style): Add "style sources" commands.
12003 (show_style_sources): New function.
12004 * cli/cli-style.h (source_styling): Declare.
12005
12006 2019-03-14 Pedro Alves <palves@redhat.com>
12007 Tom Tromey <tromey@adacore.com>
12008
12009 * tui/tui-winsource.h (tui_refill_source_window): Declare.
12010 * tui/tui-winsource.c (tui_refill_source_window): New function,
12011 from...
12012 (tui_horizontal_source_scroll): ... here. Move some logic.
12013 * cli/cli-style.c (set_style_enabled): Notify new observable.
12014 * tui/tui-hooks.c (tui_redisplay_source): New function.
12015 (tui_attach_detach_observers): Attach or detach
12016 tui_redisplay_source.
12017 * observable.h (source_styling_changed): New observable.
12018 * observable.c: Define source_styling_changed observable.
12019
12020 2019-03-13 Tom Tromey <tromey@adacore.com>
12021
12022 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
12023 (i386_gnu_nat_target::store_registers): Update.
12024 * target-debug.h (target_debug_print_std_string): New macro.
12025 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
12026 * windows-tdep.c (display_one_tib): Update.
12027 * tui/tui-stack.c (tui_make_status_line): Update.
12028 * top.c (print_inferior_quit_action): Update.
12029 * thread.c (thr_try_catch_cmd): Update.
12030 (add_thread_with_info): Update.
12031 (thread_target_id_str): Update.
12032 (thr_try_catch_cmd): Update.
12033 (thread_command): Update.
12034 (thread_find_command): Update.
12035 * record-btrace.c (record_btrace_target::info_record)
12036 (record_btrace_resume_thread, record_btrace_target::resume)
12037 (record_btrace_cancel_resume, record_btrace_step_thread)
12038 (record_btrace_target::wait, record_btrace_target::wait)
12039 (record_btrace_target::wait, record_btrace_target::stop): Update.
12040 * progspace.c (print_program_space): Update.
12041 * process-stratum-target.c
12042 (process_stratum_target::thread_address_space): Update.
12043 * linux-fork.c (linux_fork_mourn_inferior)
12044 (detach_checkpoint_command, info_checkpoints_command)
12045 (linux_fork_context): Update.
12046 (linux_fork_detach): Update.
12047 (class scoped_switch_fork_info): Update.
12048 (delete_checkpoint_command): Update.
12049 * infrun.c (follow_fork_inferior): Update.
12050 (follow_fork_inferior): Update.
12051 (proceed_after_vfork_done): Update.
12052 (handle_vfork_child_exec_or_exit): Update.
12053 (follow_exec): Update.
12054 (displaced_step_prepare_throw): Update.
12055 (displaced_step_restore): Update.
12056 (start_step_over): Update.
12057 (resume_1): Update.
12058 (clear_proceed_status_thread): Update.
12059 (proceed): Update.
12060 (print_target_wait_results): Update.
12061 (do_target_wait): Update.
12062 (context_switch): Update.
12063 (stop_all_threads): Update.
12064 (restart_threads): Update.
12065 (finish_step_over): Update.
12066 (handle_signal_stop): Update.
12067 (switch_back_to_stepped_thread): Update.
12068 (keep_going_pass_signal): Update.
12069 (print_exited_reason): Update.
12070 (normal_stop): Update.
12071 * inferior.c (inferior_pid_to_str): Change return type.
12072 (print_selected_inferior): Update.
12073 (add_inferior): Update.
12074 (detach_inferior): Update.
12075 * dummy-frame.c (fprint_dummy_frames): Update.
12076 * dcache.c (dcache_info_1): Update.
12077 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
12078 (btrace_fetch, btrace_clear): Update.
12079 * linux-tdep.c (linux_core_pid_to_str): Change return type.
12080 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
12081 type.
12082 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
12083 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
12084 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
12085 * gdbarch.c, gdbarch.h: Rebuild.
12086 * gdbarch.sh (core_pid_to_str): Change return type.
12087 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
12088 return type.
12089 (windows_nat_target::pid_to_str): Change return type.
12090 (windows_delete_thread): Update.
12091 (windows_nat_target::attach): Update.
12092 (windows_nat_target::files_info): Update.
12093 * target-delegates.c: Rebuild.
12094 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
12095 return type.
12096 (sol_thread_target::pid_to_str): Change return type.
12097 * remote.c (class remote_target) <pid_to_str>: Change return
12098 type.
12099 (remote_target::pid_to_str): Change return type.
12100 (extended_remote_target::attach, remote_target::remote_stop_ns)
12101 (remote_target::remote_notif_remove_queued_reply)
12102 (remote_target::push_stop_reply, remote_target::disable_btrace):
12103 Update.
12104 (extended_remote_target::attach): Update.
12105 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
12106 type.
12107 (gdbsim_target::pid_to_str): Change return type.
12108 * ravenscar-thread.c (struct ravenscar_thread_target)
12109 <pid_to_str>: Change return type.
12110 (ravenscar_thread_target::pid_to_str): Change return type.
12111 * procfs.c (class procfs_target) <pid_to_str>: Change return
12112 type.
12113 (procfs_target::pid_to_str): Change return type.
12114 (procfs_target::attach): Update.
12115 (procfs_target::detach): Update.
12116 (procfs_target::fetch_registers): Update.
12117 (procfs_target::store_registers): Update.
12118 (procfs_target::wait): Update.
12119 (procfs_target::files_info): Update.
12120 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
12121 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
12122 return type.
12123 (nto_procfs_target::pid_to_str): Change return type.
12124 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
12125 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
12126 return type.
12127 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
12128 (exit_lwp): Update.
12129 (attach_proc_task_lwp_callback, get_detach_signal)
12130 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
12131 (linux_nat_target::resume, wait_lwp, stop_callback)
12132 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
12133 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
12134 (linux_nat_wait_1, resume_stopped_resumed_lwps)
12135 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
12136 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
12137 type.
12138 (inf_ptrace_target::attach): Update.
12139 (inf_ptrace_target::files_info): Update.
12140 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
12141 type.
12142 (go32_nat_target::pid_to_str): Change return type.
12143 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
12144 (gnu_nat_target::wait): Update.
12145 (gnu_nat_target::wait): Update.
12146 (gnu_nat_target::resume): Update.
12147 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
12148 (fbsd_nat_target::wait): Update.
12149 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
12150 type.
12151 (darwin_nat_target::attach): Update.
12152 * corelow.c (class core_target) <pid_to_str>: Change return type.
12153 (core_target::pid_to_str): Change return type.
12154 * target.c (normal_pid_to_str): Change return type.
12155 (default_pid_to_str): Likewise.
12156 (target_pid_to_str): Change return type.
12157 (target_translate_tls_address): Update.
12158 (target_announce_detach): Update.
12159 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
12160 return type.
12161 (bsd_uthread_target::pid_to_str): Change return type.
12162 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
12163 type.
12164 (bsd_kvm_target::pid_to_str): Change return type.
12165 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
12166 return type.
12167 (aix_thread_target::pid_to_str): Change return type.
12168 * target.h (struct target_ops) <pid_to_str>: Change return type.
12169 (target_pid_to_str, normal_pid_to_str): Likewise.
12170 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
12171 type.
12172 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
12173 type.
12174 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
12175 return type.
12176 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
12177 type.
12178 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
12179 type.
12180 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
12181 return type.
12182
12183 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
12184
12185 * NEWS: Mention that the new default MI version is 3. Mention
12186 changes to the output of commands and events that deal with
12187 multi-location breakpoints.
12188 * breakpoint.c: Include "mi/mi-out.h".
12189 (print_one_breakpoint): Change output syntax if using MI version
12190 >= 3.
12191 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
12192 New.
12193 (mi_multi_location_breakpoint_output_fixed): New.
12194 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
12195 (mi_cmd_fix_multi_location_breakpoint_output): New.
12196 (mi_multi_location_breakpoint_output_fixed): New.
12197 * mi/mi-cmds.c (mi_cmds): Register command
12198 -fix-multi-location-breakpoint-output.
12199 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
12200 interpreter "mi".
12201
12202 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12203
12204 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
12205 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
12206 instantiate mi_ui_out based on interpreter name.
12207 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
12208 * mi/mi-main.c (mi_load_progress): Likewise.
12209
12210 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12211
12212 * NEWS: Combine separate "New targets" sections for 8.3.
12213
12214 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12215
12216 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
12217 (ppcfbsd_init_abi): Install gdbarch
12218 "fetch_tls_load_module_address" and "get_thread_local_address"
12219 methods.
12220
12221 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12222
12223 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
12224 (riscv_fbsd_init_abi): Install gdbarch
12225 "fetch_tls_load_module_address" and "get_thread_local_address"
12226 methods.
12227
12228 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12229
12230 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
12231 (i386fbsd_init_abi): Install gdbarch
12232 "fetch_tls_load_module_address" and "get_thread_local_address"
12233 methods.
12234
12235 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12236
12237 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
12238 (amd64fbsd_init_abi): Install gdbarch
12239 "fetch_tls_load_module_address" and "get_thread_local_address"
12240 methods.
12241
12242 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12243
12244 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
12245 (struct fbsd_pspace_data): New type.
12246 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
12247 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
12248 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
12249 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
12250 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
12251
12252 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12253
12254 * gdbtypes.c (lookup_struct_elt): New function.
12255 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
12256 * gdbtypes.h (struct struct_elt): New type.
12257 (lookup_struct_elt): New prototype.
12258
12259 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12260
12261 * gdbtypes.c (lookup_struct_elt_type): Update comment and
12262 remove disabled code block.
12263
12264 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12265
12266 * gdbarch.sh (get_thread_local_address): New method.
12267 * gdbarch.h, gdbarch.c: Regenerate.
12268 * target.c (target_translate_tls_address): Use
12269 gdbarch_get_thread_local_address if present instead of
12270 target::get_thread_local_address.
12271
12272 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12273
12274 * target.h (target::get_thread_local_address): Update comment.
12275
12276 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12277
12278 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
12279 objfile->separate_debug_objfile_backlink if not NULL.
12280
12281 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12282
12283 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
12284 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
12285 (amd64bsd_store_inferior_registers): Likewise.
12286 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12287 Enable segment base registers.
12288 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
12289 PT_GETFSBASE and PT_GETGSBASE.
12290 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
12291 PT_SETGSBASE.
12292 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
12293 segment base registers.
12294 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12295
12296 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12297
12298 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12299 Update calls to i386_target_description to add 'segments'
12300 parameter.
12301 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
12302 add segment base registers.
12303 * arch/i386.c (i386_create_target_description): Add 'segments'
12304 parameter to enable segment base registers.
12305 * arch/i386.h (i386_create_target_description): Likewise.
12306 * features/i386/32bit-segments.xml: New file.
12307 * features/i386/32bit-segments.c: Generate.
12308 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
12309 call to i386_target_description to add 'segments' parameter.
12310 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12311 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
12312 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
12313 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
12314 if feature is present.
12315 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
12316 Add 'segments' parameter to call to i386_target_description.
12317 (i386_target_description): Add 'segments' parameter to enable
12318 segment base registers.
12319 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
12320 to call to i386_target_description.
12321 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
12322 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
12323 Define I386_NUM_REGS.
12324 (i386_target_description): Add 'segments' parameter to enable
12325 segment base registers.
12326
12327 2019-03-12 Eli Zaretskii <eliz@gnu.org>
12328
12329 PR/24325
12330 * source-cache.c: #undef open and close, to avoid unresolved
12331 externals during linking.
12332
12333 2019-03-12 Tom Tromey <tromey@adacore.com>
12334
12335 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
12336 const. Add initializers.
12337 (_initialize_remote): Don't initialize ptid globals.
12338
12339 2019-03-12 Pedro Alves <palves@redhat.com>
12340
12341 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
12342
12343 2019-03-12 Pedro Alves <palves@redhat.com>
12344
12345 * cp-name-parser.y (main): Remove unused 'len' variable.
12346
12347 2019-03-12 Tom Tromey <tromey@adacore.com>
12348
12349 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
12350 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
12351
12352 2019-03-12 Tom Tromey <tromey@adacore.com>
12353
12354 * linux-nat.c (iterate_over_lwps): Update.
12355 (stop_callback): Remove parameter.
12356 (stop_wait_callback, detach_callback, resume_set_callback)
12357 (select_singlestep_lwp_callback, set_ignore_sigint)
12358 (status_callback, resumed_callback, resume_clear_callback)
12359 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
12360 data parameter.
12361 (linux_nat_target::detach, linux_nat_target::resume)
12362 (linux_stop_and_wait_all_lwps, select_event_lwp)
12363 (linux_nat_filter_event, linux_nat_wait_1)
12364 (linux_nat_target::kill, linux_nat_target::stop)
12365 (linux_nat_target::stop): Update.
12366 (linux_nat_resume_callback): Change type.
12367 (resume_stopped_resumed_lwps, count_events_callback)
12368 (select_event_lwp_callback): Likewise.
12369 (linux_stop_lwp, linux_nat_stop_lwp): Update.
12370 * arm-linux-nat.c (struct update_registers_data): Remove.
12371 (update_registers_callback): Change type.
12372 (arm_linux_insert_hw_breakpoint1): Update.
12373 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
12374 parameter.
12375 (x86_linux_dr_set_addr): Update.
12376 (x86_linux_dr_set_control): Update.
12377 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
12378 (iterate_over_lwps): Use gdb::function_view.
12379 * nat/aarch64-linux-hw-point.c (struct
12380 aarch64_dr_update_callback_param): Remove.
12381 (debug_reg_change_callback): Change type.
12382 (aarch64_notify_debug_reg_change): Update.
12383 * s390-linux-nat.c (s390_refresh_per_info): Update.
12384
12385 2019-03-11 Tom Tromey <tromey@adacore.com>
12386
12387 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
12388 redundant assignment to "this_cu".
12389
12390 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12391
12392 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
12393
12394 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12395
12396 * gdbtypes.c (rank_one_type_parm_set): New function extracted
12397 from...
12398 (rank_one_type): ... this.
12399
12400 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12401
12402 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
12403 from...
12404 (rank_one_type): ... this.
12405
12406 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12407
12408 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
12409 from...
12410 (rank_one_type): ... this.
12411
12412 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12413
12414 * gdbtypes.c (rank_one_type_parm_float): New function extracted
12415 from...
12416 (rank_one_type): ... this.
12417
12418 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12419
12420 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
12421 from...
12422 (rank_one_type): ... this.
12423
12424 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12425
12426 * gdbtypes.c (rank_one_type_parm_range): New function extracted
12427 from...
12428 (rank_one_type): ... this.
12429
12430 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12431
12432 * gdbtypes.c (rank_one_type_parm_char): New function extracted
12433 from...
12434 (rank_one_type): ... this.
12435
12436 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12437
12438 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
12439 from...
12440 (rank_one_type): ... this.
12441
12442 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12443
12444 * gdbtypes.c (rank_one_type_parm_int): New function extracted
12445 from...
12446 (rank_one_type): ... this.
12447
12448 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12449
12450 * gdbtypes.c (rank_one_type_parm_func): New function extracted
12451 from...
12452 (rank_one_type): ... this.
12453
12454 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12455
12456 * gdbtypes.c (rank_one_type_parm_array): New function extracted
12457 from...
12458 (rank_one_type): ... this.
12459
12460 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12461
12462 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
12463 from...
12464 (rank_one_type): ... this.
12465
12466 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12467
12468 * inferior.c (initialize_inferiors): Ensure 'help set/show print
12469 inferior-events' shows the example events.
12470
12471 2019-03-08 Eli Zaretskii <eliz@gnu.org>
12472
12473 Support styling on native MS-Windows console
12474
12475 PR/24315
12476 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
12477 on MS-Windows if $TERM is not defined.
12478
12479 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
12480
12481 * posix-hdep.c (gdb_console_fputs):
12482 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
12483 functions.
12484 * ui-file.h (gdb_console_fputs): Add prototype.
12485
12486 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
12487 back to fputs only if the former returns zero.
12488
12489 2019-03-07 Tom Tromey <tom@tromey.com>
12490
12491 * symmisc.c (print_symbol_bcache_statistics): Update.
12492 (print_objfile_statistics): Update.
12493 * symfile.c (allocate_symtab): Update.
12494 * stabsread.c: Don't include bcache.h.
12495 * psymtab.h (struct psymbol_bcache): Don't declare.
12496 (class psymtab_storage) <psymbol_cache>: Now a bcache.
12497 (psymbol_bcache_init, psymbol_bcache_free)
12498 (psymbol_bcache_get_bcache): Don't declare.
12499 * psymtab.c (struct psymbol_bcache): Remove.
12500 (psymtab_storage::psymtab_storage): Update.
12501 (psymtab_storage::~psymtab_storage): Update.
12502 (psymbol_bcache_init, psymbol_bcache_free)
12503 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
12504 (add_psymbol_to_bcache): Update.
12505 (allocate_psymtab): Update.
12506 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
12507 macro_cache>: No longer pointers.
12508 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
12509 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
12510 * macrotab.c (macro_bcache): Update.
12511 * macroexp.c: Don't include bcache.h.
12512 * gdbtypes.c (check_types_worklist): Update.
12513 (types_deeply_equal): Remove TRY/CATCH. Update.
12514 * elfread.c (elf_symtab_read): Update.
12515 * dwarf2read.c: Don't include bcache.h.
12516 * buildsym.c (buildsym_compunit::get_macro_table): Update.
12517 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
12518 (print_bcache_statistics, bcache_memory_used): Don't declare.
12519 (struct bcache): Move from bcache.c. Add constructor, destructor,
12520 methods. Rename all data members.
12521 * bcache.c (struct bcache): Move to bcache.h.
12522 (bcache::expand_hash_table): Rename from expand_hash_table.
12523 (bcache): Remove.
12524 (bcache::insert): Rename from bcache_full.
12525 (bcache::compare): Rename from bcache_compare.
12526 (bcache_xmalloc): Remove.
12527 (bcache::~bcache): Rename from bcache_xfree.
12528 (bcache::print_statistics): Rename from print_bcache_statistics.
12529 (bcache::memory_used): Rename from bcache_memory_used.
12530
12531 2019-03-07 Pedro Alves <palves@redhat.com>
12532
12533 * infrun.c (normal_stop): Also check for
12534 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
12535
12536 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
12537
12538 * f-lang.c (value_from_host_double): Moved to...
12539 * value.c (value_from_host_double): ...here.
12540 * value.h (value_from_host_double): Declare.
12541 * guile/scm-math.c (vlscm_convert_typed_number): Use
12542 value_from_host_double.
12543 (vlscm_convert_number): Likewise.
12544 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
12545 * python/py-value.c (convert_value_from_python): Likewise.
12546
12547 2019-03-06 Tom Tromey <tom@tromey.com>
12548
12549 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
12550
12551 2019-03-06 Tom Tromey <tom@tromey.com>
12552
12553 * utils.h (free_current_contents): Don't declare.
12554 * utils.c (free_current_contents): Remove.
12555
12556 2019-03-06 Tom Tromey <tom@tromey.com>
12557
12558 * top.c (quit_force): Update.
12559 * main.c (captured_command_loop): Update.
12560 * common/new-op.c (operator new): Update.
12561 * common/common-exceptions.c (struct catcher)
12562 <save_cleanup_chain>: Remove member.
12563 (exceptions_state_mc_init): Update.
12564 (exception_try_scope_entry): Return nullptr.
12565 (exception_try_scope_exit, exception_rethrow)
12566 (throw_exception_sjlj, throw_exception_cxx): Update.
12567 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
12568 (all_cleanups, do_cleanups, discard_cleanups)
12569 (discard_final_cleanups, save_cleanups, save_final_cleanups)
12570 (restore_cleanups, restore_final_cleanups): Don't declare.
12571 (do_final_cleanups): Remove parameter.
12572 * common/cleanups.c (cleanup_chain, make_cleanup)
12573 (make_cleanup_dtor, all_cleanups, do_cleanups)
12574 (discard_my_cleanups, discard_cleanups)
12575 (discard_final_cleanups, save_my_cleanups, save_cleanups)
12576 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
12577 (null_cleanup): Remove.
12578 (do_final_cleanups): Remove parameter.
12579
12580 2019-03-06 Tom Tromey <tom@tromey.com>
12581
12582 * remote.c (remote_target::remote_parse_stop_reply): Use
12583 unique_xmalloc_ptr.
12584
12585 2019-03-06 Tom Tromey <tom@tromey.com>
12586
12587 * stabsread.c (struct stabs_field_info): Rename from field_info.
12588 <list, fnlist>: Add initializers.
12589 <obstack>: New member.
12590 (read_member_functions, read_struct_fields, read_baseclasses):
12591 Allocate on obstack. Don't use cleanups.
12592 (read_one_struct_field, read_member_functions, read_struct_fields)
12593 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
12594 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
12595 (read_struct_type): Update.
12596
12597 2019-03-06 Tom Tromey <tom@tromey.com>
12598
12599 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
12600 * common/filestuff.h (make_cleanup_close): Don't declare.
12601 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
12602 Remove.
12603
12604 2019-03-06 Tom Tromey <tom@tromey.com>
12605
12606 * solib-aix.c: Use make_scope_exit.
12607
12608 2019-03-06 Tom Tromey <tom@tromey.com>
12609
12610 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
12611 Use make_scope_exit.
12612
12613 2019-03-06 Tom Tromey <tom@tromey.com>
12614
12615 * solib-svr4.c (disable_probes_interface): Remove parameter.
12616 (svr4_handle_solib_event): Use make_scope_exit.
12617
12618 2019-03-06 Tom Tromey <tom@tromey.com>
12619
12620 * remote.c (struct stop_reply_deleter): Remove.
12621 (stop_reply_up): Update.
12622 (struct stop_reply): Derive from notif_event. Don't typedef.
12623 <regcache>: Now a std::vector.
12624 (stop_reply_xfree): Remove.
12625 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
12626 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
12627 (remote_target::discard_pending_stop_replies): Use delete.
12628 (remote_target::remote_parse_stop_reply): Update.
12629 (remote_target::process_stop_reply): Update.
12630 * remote-notif.h (struct notif_event): Add virtual destructor.
12631 Remove "dtr" member.
12632 (struct notif_client) <alloc_event>: Return a unique_ptr.
12633 (notif_event_xfree): Don't declare.
12634 (notif_event_up): New typedef.
12635 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
12636 (notif_event_xfree, do_notif_event_xfree): Remove.
12637 (remote_notif_state_xfree): Update.
12638
12639 2019-03-06 Tom Tromey <tom@tromey.com>
12640
12641 * infrun.c (displaced_step_clear_cleanup): Now a
12642 forward_scope_exit type.
12643 (displaced_step_prepare_throw): Update.
12644 (displaced_step_fixup): Update.
12645
12646 2019-03-06 Tom Tromey <tom@tromey.com>
12647
12648 * inferior.h (class inferior): Update comment.
12649 * gdbthread.h (class thread_info): Update comment.
12650
12651 2019-03-06 Joel Brobecker <brobecker@adacore.com>
12652 Tom Tromey <tom@tromey.com>
12653
12654 * stabsread.h (struct stab_section_list): Remove.
12655 (coffstab_build_psymtabs): Update.
12656 * dbxread.c (symbuf_sections): Now a std::vector.
12657 (sect_idx): New global.
12658 (fill_symbuf): Update.
12659 (coffstab_build_psymtabs): Change type of stabsects parameter.
12660 Update.
12661 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
12662 std::vector.
12663 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
12664 (coff_locate_sections): Update.
12665 (coff_symfile_read): Remove cleanups. Update.
12666 (init_stringtab): Add storage parameter.
12667 (free_stringtab, free_stringtab_cleanup): Remove.
12668 (init_lineno): Add storage parameter.
12669 (free_linetab, free_linetab_cleanup): Remove.
12670
12671 2019-03-06 Pedro Alves <palves@redhat.com>
12672
12673 * linux-fork.c (fork_info::clobber_regs): Delete.
12674 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
12675 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
12676 comment. Adjust.
12677 (scoped_switch_fork_info::scoped_switch_fork_info)
12678 (checkpoint_command, linux_fork_context): Adjust
12679 fork_save_infrun_state calls.
12680
12681 2019-03-06 Pedro Alves <palves@redhat.com>
12682
12683 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
12684 (inf_has_multiple_threads): Return 'bool' and rewrite using
12685 inferior_info::threads().
12686
12687 2019-03-06 Pedro Alves <palves@redhat.com>
12688
12689 * linux-fork.c: Include <list>.
12690 (fork_list): Now a std::list instance.
12691 (fork_info): Add ctor, dtor, and in-class initialize all fields.
12692 (forks_exist_p, find_last_fork): Adjust.
12693 (new_fork): Delete.
12694 (one_fork_p): New.
12695 (add_fork): Adjust.
12696 (free_fork): Delete, folded into fork_info::~fork_info().
12697 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
12698 Adjust.
12699 (init_fork_list): Delete.
12700 (linux_fork_killall, linux_fork_mourn_inferior)
12701 (linux_fork_detach, info_checkpoints_command): Adjust.
12702 (_initialize_linux_fork): No longer call init_fork_list.
12703
12704 2019-03-06 Pedro Alves <palves@redhat.com>
12705
12706 * linux-fork.c (new_fork): New, split out of ...
12707 (add_fork): ... this. Return void. Move "first fork" special
12708 case from here, to ...
12709 (checkpoint_command): ... here.
12710 * linux-linux.h (add_fork): Return void.
12711
12712 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12713
12714 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
12715
12716 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12717 Chris January <chris.january@arm.com>
12718 David Lecomber <david.lecomber@arm.com>
12719
12720 * f-exp.y: New token, UNOP_INTRINSIC.
12721 (exp): New pattern using UNOP_INTRINSIC token.
12722 (f77_keywords): Add 'abs' keyword.
12723 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
12724 (value_from_host_double): New function.
12725 (evaluate_subexp_f): Support UNOP_ABS.
12726
12727 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12728
12729 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
12730 types.
12731
12732 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12733
12734 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
12735 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
12736 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
12737
12738 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12739
12740 * f-exp.y (convert_to_kind_type): Handle more type kinds.
12741
12742 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12743 Chris January <chris.january@arm.com>
12744
12745 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
12746 * f-exp.y: Define 'KIND' token.
12747 (exp): New pattern for KIND expressions.
12748 (ptype): Handle types with a kind extension.
12749 (direct_abs_decl): Extend to spot kind extensions.
12750 (f77_keywords): Add 'kind' to the list.
12751 (push_kind_type): New function.
12752 (convert_to_kind_type): New function.
12753 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
12754 * parse.c (operator_length_standard): Likewise.
12755 * parser-defs.h (enum type_pieces): Add tp_kind.
12756 * std-operator.def: Add UNOP_KIND.
12757
12758 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12759
12760 * f-exp.y (f_parse): Set yydebug.
12761
12762 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12763
12764 * f-lang.c (evaluate_subexp_f): New function.
12765 (exp_descriptor_f): New global.
12766 (f_language_defn): Use exp_descriptor_f instead of
12767 exp_descriptor_standard.
12768
12769 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12770
12771 * f-exp.y (struct token): Add comments.
12772 (dot_ops): Remove uppercase versions and the end marker.
12773 (f77_keywords): Likewise.
12774 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
12775 entries in the dot_ops array are case insensitive, and use
12776 strncasecmp to compare strings. Also some whitespace cleanup in
12777 this area. Similar for the f77_keywords array, except entries in
12778 this list might be case sensitive.
12779
12780 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12781
12782 * f-exp.y (struct f77_boolean_val): Add comments.
12783 (boolean_values): Remove uppercase versions, and end marker.
12784 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
12785 and use strncasecmp to achieve case insensitivity. Additionally,
12786 perform whitespace cleanup around this code.
12787
12788 2019-03-06 Tom Tromey <tromey@adacore.com>
12789
12790 * remote-sim.c (gdbsim_target_open): Use result of
12791 gdb_argv::release.
12792
12793 2019-03-06 Richard Bunt <richard.bunt@arm.com>
12794 Dirk Schubert <dirk.schubert@arm.com>
12795 Chris January <chris.january@arm.com>
12796
12797 * eval.c (evaluate_subexp_standard): Call Fortran argument
12798 wrapping logic.
12799 * f-lang.c (struct value): A value which can be passed into a
12800 Fortran function call.
12801 (fortran_argument_convert): Wrap Fortran arguments in a pointer
12802 where appropriate.
12803 (struct type): Value ready for a Fortran function call.
12804 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
12805 is needed.
12806 * f-lang.h (fortran_argument_convert): Declaration.
12807 (fortran_preserve_arg_pointer): Declaration.
12808 * infcall.c (value_arg_coerce): Call Fortran argument logic.
12809
12810 2019-03-05 Tom Tromey <tromey@adacore.com>
12811
12812 * python/py-prettyprint.c (print_string_repr): Remove #if.
12813 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
12814
12815 2019-03-05 Tom Tromey <tromey@adacore.com>
12816
12817 * target.c (the_dummy_target): Move later. Change type to
12818 "dummy_target".
12819 (initialize_targets): Don't initialize the_dummy_target.
12820
12821 2019-03-05 Tom Tromey <tromey@adacore.com>
12822
12823 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
12824 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
12825
12826 2019-03-05 Tom Tromey <tromey@adacore.com>
12827
12828 * windows-nat.c (windows_nat_target::attach)
12829 (windows_nat_target::detach): Don't call gdb_flush.
12830 * valprint.c (generic_val_print, val_print, val_print_string):
12831 Don't call gdb_flush.
12832 * utils.c (defaulted_query): Don't call gdb_flush.
12833 * typeprint.c (print_type_scalar): Don't call gdb_flush.
12834 * target.c (target_announce_detach): Don't call gdb_flush.
12835 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
12836 * remote.c (extended_remote_target::attach): Don't call
12837 gdb_flush.
12838 * procfs.c (procfs_target::detach): Don't call gdb_flush.
12839 * printcmd.c (do_examine): Don't call gdb_flush.
12840 (info_display_command): Don't call gdb_flush.
12841 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
12842 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
12843 * memattr.c (info_mem_command): Don't call gdb_flush.
12844 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
12845 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
12846 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
12847 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
12848 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
12849 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
12850 (gnu_nat_target::detach): Don't call gdb_flush.
12851 * f-valprint.c (f_val_print): Don't call gdb_flush.
12852 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
12853 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
12854 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
12855 gdb_flush.
12856 * c-valprint.c (c_val_print): Don't call gdb_flush.
12857 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
12858
12859 2019-03-05 Tom Tromey <tromey@adacore.com>
12860
12861 * varobj.c (update_dynamic_varobj_children): Update.
12862 (install_default_visualizer): Use reset, not release.
12863 * value.c (set_internalvar): Update.
12864 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
12865 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
12866 ATTRIBUTE_UNUSED_RESULT.
12867
12868 2019-03-05 Tom Tromey <tromey@adacore.com>
12869
12870 * remote.c (class scoped_remote_fd) <release>: Add
12871 ATTRIBUTE_UNUSED_RESULT.
12872
12873 2019-03-05 Tom Tromey <tromey@adacore.com>
12874
12875 * macroexp.c (struct macro_buffer) <release>: Add
12876 ATTRIBUTE_UNUSED_RESULT.
12877
12878 2019-03-05 Tom Tromey <tromey@adacore.com>
12879
12880 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
12881 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
12882 ATTRIBUTE_UNUSED_RESULT.
12883
12884 2019-03-05 Tom Tromey <tromey@adacore.com>
12885
12886 * common/scoped_fd.h (class scoped_fd) <release>: Add
12887 ATTRIBUTE_UNUSED_RESULT.
12888
12889 2019-03-05 Tom Tromey <tromey@adacore.com>
12890
12891 * parser-defs.h (struct parser_state) <release>: Add
12892 ATTRIBUTE_UNUSED_RESULT.
12893
12894 2019-03-05 Tom Tromey <tromey@adacore.com>
12895
12896 * utils.h (class gdb_argv) <release>: Add
12897 ATTRIBUTE_UNUSED_RESULT.
12898 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
12899
12900 2019-03-02 Eli Zaretskii <eliz@gnu.org>
12901
12902 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
12903 for-loop range, to avoid compiler warnings.
12904
12905 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
12906 avoid compiler warnings about unused variables.
12907
12908 * NEWS: Mention end of support for native debugging on MS-Windows
12909 before XP.
12910
12911 PR gdb/24292
12912 * common/netstuff.c:
12913 * gdbserver/gdbreplay.c
12914 * gdbserver/remote-utils.c:
12915 * ser-tcp.c:
12916 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
12917 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
12918 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
12919 'getaddrinfo' and 'freeaddrinfo' were not available before
12920 Windows XP, and mingw.org's MinGW headers by default define
12921 _WIN32_WINNT to 0x500.
12922
12923 2019-03-01 Gary Benson <gbenson@redhat.com>
12924
12925 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
12926
12927 2019-02-28 Brian Vandenberg <phantall@gmail.com>
12928 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12929
12930 PR gdb/8527
12931 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
12932 set_sigint_trap, clear_sigint_trap.
12933
12934 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12935
12936 * target.c (target_detach): Clear the regcache and the
12937 frame cache.
12938
12939 2019-02-27 Pedro Alves <palves@redhat.com>
12940
12941 * utils.c (set_screen_size): When we cap the height/width sizes,
12942 tweak the corresponding command variable to show "unlimited":
12943
12944 2019-02-27 Saagar Jha <saagar@saagarjha.com>
12945 Pedro Alves <palves@redhat.com>
12946
12947 * utils.c (set_screen_size): Reduce "infinite" rows and columns
12948 before calling rl_set_screen_size.
12949
12950 2019-02-27 Tom Tromey <tromey@adacore.com>
12951
12952 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
12953 define.
12954 * python/py-value.c: Remove Python 2.4 workaround.
12955 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
12956 workaround.
12957 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
12958 Python 2.4 workaround.
12959 * python/python-internal.h: Remove Python 2.4 comment.
12960 (Py_ssize_t): Don't define.
12961 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
12962 (gdb_Py_DECREF): Remove Python 2.4 workaround.
12963 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
12964 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
12965 * python/python.c (do_start_initialization): Remove Python 2.4
12966 workaround.
12967 * python/py-prettyprint.c (class dummy_python_frame): Remove.
12968 (print_children): Remove Python 2.4 workaround.
12969 * python/py-inferior.c (buffer_procs): Remove Python 2.4
12970 workaround.
12971 (CHARBUFFERPROC_NAME): Remove.
12972 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
12973 Python 2.4 workaround.
12974
12975 2019-02-27 Kevin Buettner <kevinb@redhat.com>
12976
12977 * NEWS: Note minimum Python version.
12978
12979 2019-02-27 Kevin Buettner <kevinb@redhat.com>
12980
12981 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
12982 code from these functions. Remove corresponding ifdefs. Use
12983 Py_buffer_up instead of explicit calls to PyBuffer_Release.
12984 Remove gotos and target of gotos.
12985 (infpy_search_memory): Likewise.
12986
12987 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12988
12989 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
12990 (hppa_gdbarch_init): Don't register deleted functions with
12991 gdbarch.
12992
12993 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12994
12995 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
12996 (h8300_unwind_sp): Delete.
12997 (h8300_dummy_id): Delete.
12998 (h8300_gdbarch_init): Don't register deleted functions with
12999 gdbarch.
13000
13001 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13002
13003 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
13004 (ft32_unwind_pc): Delete.
13005 (ft32_unwind_sp): Delete.
13006 (ft32_gdbarch_init): Don't register deleted functions with
13007 gdbarch.
13008
13009 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13010
13011 * gdb/frv-tdep.c (frv_dummy_id): Delete.
13012 (frv_unwind_pc): Delete.
13013 (frv_unwind_sp): Delete.
13014 (frv_gdbarch_init): Don't register deleted functions with
13015 gdbarch.
13016
13017 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13018
13019 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
13020 (riscv_unwind_pc): Delete.
13021 (riscv_unwind_sp): Delete.
13022 (riscv_gdbarch_init): Don't register deleted functions with
13023 gdbarch.
13024
13025 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13026
13027 * gdb/csky-tdep.c (csky_dummy_id): Delete.
13028 (csky_unwind_pc): Delete.
13029 (csky_unwind_sp): Delete.
13030 (csky_gdbarch_init): Don't register deleted functions with
13031 gdbarch.
13032
13033 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13034
13035 * gdb/cris-tdep.c (cris_dummy_id): Delete.
13036 (cris_unwind_pc): Delete.
13037 (cris_unwind_sp): Delete.
13038 (cris_gdbarch_init): Don't register deleted functions with
13039 gdbarch.
13040
13041 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13042
13043 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
13044 (bfin_unwind_pc): Delete.
13045 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
13046
13047 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13048
13049 * gdb/arm-tdep.c (arm_dummy_id): Delete.
13050 (arm_unwind_pc): Delete.
13051 (arm_unwind_sp): Delete.
13052 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
13053
13054 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13055
13056 * gdb/arc-tdep.c (arc_dummy_id): Delete.
13057 (arc_unwind_pc): Delete.
13058 (arc_unwind_sp): Delete.
13059 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
13060
13061 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13062
13063 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
13064 (alpha_unwind_pc): Delete.
13065 (alpha_gdbarch_init): Don't register deleted functions with
13066 gdbarch.
13067
13068 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13069
13070 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
13071 (aarch64_unwind_pc): Delete.
13072 (aarch64_unwind_sp): Delete.
13073 (aarch64_gdbarch_init): Don't register deleted functions with
13074 gdbarch.
13075
13076 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13077
13078 * gdbtypes.c (type_align): Don't consider static members when
13079 computing structure alignment.
13080
13081 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13082
13083 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
13084 return 0 for other types.
13085 * arch-utils.c (default_type_align): Always return 0.
13086 * gdbarch.h: Regenerate.
13087 * gdbarch.sh (type_align): Extend comment.
13088 * gdbtypes.c (type_align): Add additional comments, always call
13089 gdbarch_type_align before applying the default rules.
13090 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
13091 generic code will then apply a suitable default.
13092 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
13093 types, return 0 for other types.
13094
13095 2019-02-27 Joel Brobecker <brobecker@adacore.com>
13096
13097 * NEWS: Create a new section for the next release branch.
13098 Rename the section of the current branch, now that it has
13099 been cut.
13100
13101 2019-02-27 Joel Brobecker <brobecker@adacore.com>
13102
13103 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
13104 * version.in: Bump version to 8.3.50.DATE-git.
13105
13106 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
13107
13108 * aix-thread.c (ptid_cmp): Remove unused variable.
13109 (get_signaled_thread): Likewise.
13110 (store_regs_user_thread): Likewise.
13111 (store_regs_kernel_thread): Likewise.
13112 (fetch_regs_kernel_thread): Remove shadowed variable.
13113
13114 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
13115
13116 * features/riscv/32bit-cpu.xml: Add register numbers.
13117 * features/riscv/32bit-fpu.c: Regenerate.
13118 * features/riscv/32bit-fpu.xml: Add register numbers.
13119 * features/riscv/64bit-cpu.xml: Add register numbers.
13120 * features/riscv/64bit-fpu.c: Regenerate.
13121 * features/riscv/64bit-fpu.xml: Add register numbers.
13122
13123 2019-02-26 Kevin Buettner <kevinb@redhat.com>
13124
13125 * NEWS: Mention two argument form of gdb.Value constructor.
13126 * python/py-value.c (convert_buffer_and_type_to_value): New
13127 function.
13128 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
13129 Add support for handling an optional second argument. Call
13130 convert_buffer_and_type_to_value as appropriate.
13131 * python/python-internal.h (Py_buffer_deleter): New struct.
13132 (Py_buffer_up): New typedef.
13133
13134 2019-02-25 John Baldwin <jhb@FreeBSD.org>
13135
13136 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
13137 instead of releasing ownership.
13138
13139 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
13140
13141 * dwarf2read.c (open_and_init_dwp_file): Call
13142 elf_numsections instead of bfd_count_sections to initialize
13143 dwp_file->num_sections.
13144
13145 2019-02-25 Tom Tromey <tromey@adacore.com>
13146
13147 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
13148
13149 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
13150
13151 * gcore.in: Add '--readnever' option when invoking GDB.
13152
13153 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13154
13155 * MAINTAINERS: Update my email address.
13156
13157 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13158
13159 * build-id.c (build_id_to_debug_bfd_1): New function.
13160 (build_id_to_debug_bfd): Look for separate debug file in
13161 sysroot.
13162
13163 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
13164
13165 * gdbarch.sh: Update the copyright year range that is placed into
13166 generated files.
13167
13168 2019-02-22 Keith Seitz <keiths@redhat.com>
13169
13170 PR symtab/23853
13171 * linespec.c (create_sals_line_offset): Search for the default
13172 symtab's filename instead of its fullname.
13173
13174 2019-02-21 Alan Hayward <alan.hayward@arm.com>
13175
13176 * NEWS: Update style defaults.
13177
13178 2019-02-21 Alan Hayward <alan.hayward@arm.com>
13179
13180 * main.c (captured_main_1): Disable styling in batch mode.
13181
13182 2019-02-20 Tom Tromey <tom@tromey.com>
13183
13184 * symtab.c (symtab_symbol_info): Fix typos.
13185
13186 2019-02-20 Tom Tromey <tromey@adacore.com>
13187
13188 * findcmd.c (_initialize_mem_search): Use upper case for
13189 metasyntactic variables.
13190
13191 2019-02-20 Alan Hayward <alan.hayward@arm.com>
13192
13193 * aarch64-tdep.c (aarch64_add_reggroups): New function.
13194 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
13195
13196 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
13197
13198 * top.h (source_file_name): Change to std::string.
13199 * top.c (source_file_name): Likewise.
13200 (command_line_input): Adjust.
13201 * cli/cli-script.c (script_from_file): Adjust.
13202
13203 2019-02-19 Tom Tromey <tromey@adacore.com>
13204
13205 * ravenscar-thread.c
13206 (ravenscar_thread_target::update_thread_list): Don't call
13207 ada_build_task_list.
13208 * ada-lang.h (ada_build_task_list): Don't declare.
13209 * ada-tasks.c (struct ada_tasks_inferior_data)
13210 <task_list_valid_p>: Now bool.
13211 (read_known_tasks, ada_task_list_changed)
13212 (ada_tasks_invalidate_inferior_data): Update.
13213 (read_known_tasks_array): Return bool.
13214 (read_known_tasks_list): Likewise.
13215 (read_known_tasks): Return void.
13216 (ada_build_task_list): Now static.
13217
13218 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
13219
13220 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
13221 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
13222
13223 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13224
13225 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
13226 variant for ada_tasks_pspace_data_handle and
13227 ada_tasks_inferior_data_handle.
13228 (ada_tasks_pspace_data_cleanup): New function.
13229 (ada_tasks_inferior_data_cleanup): New function.
13230
13231 2019-02-17 Tom Tromey <tom@tromey.com>
13232
13233 * macrotab.h (macro_source_fullname): Return a std::string.
13234 * macrotab.c (macro_include, check_for_redefinition)
13235 (macro_undef, macro_lookup_definition, foreach_macro)
13236 (foreach_macro_in_scope): Update.
13237 (macro_source_fullname): Return a std::string.
13238 * macrocmd.c (show_pp_source_pos): Update.
13239
13240 2019-02-17 Tom Tromey <tom@tromey.com>
13241
13242 * macrocmd.c (show_pp_source_pos): Style the file names.
13243
13244 2019-02-17 Tom Tromey <tom@tromey.com>
13245
13246 PR tui/24197:
13247 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
13248
13249 2019-02-17 Tom Tromey <tom@tromey.com>
13250
13251 * ada-lang.c (user_select_syms): Use filtered printing.
13252 * utils.c (wrap_style): New global.
13253 (desired_style): Remove.
13254 (emit_style_escape): Add stream parameter.
13255 (set_output_style, reset_terminal_style, prompt_for_continue):
13256 Update.
13257 (flush_wrap_buffer): Only flush gdb_stdout.
13258 (wrap_here): Set wrap_style.
13259 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
13260 treat escape sequences as a character. Change when wrap buffer is
13261 flushed.
13262 (fputs_styled): Do not set the output style when the default is
13263 requested.
13264 * ui-style.h (struct ui_file_style) <is_default>: New method.
13265 * source.c (print_source_lines_base): Emit escape sequences in one
13266 piece.
13267
13268 2019-02-17 Joel Brobecker <brobecker@adacore.com>
13269
13270 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
13271 integers and enumeration types.
13272
13273 2019-02-17 Joel Brobecker <brobecker@adacore.com>
13274
13275 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
13276 instead of lookup_symbol_in_language
13277 (do_exact_match): New function.
13278 (ada_get_symbol_name_matcher): Return do_exact_match when
13279 doing a verbatim match.
13280
13281 2019-02-15 Tom Tromey <tromey@adacore.com>
13282
13283 * ravenscar-thread.c (ravenscar_thread_target::resume)
13284 (ravenscar_thread_target::wait): Special case wildcard requests.
13285
13286 2019-02-15 Tom Tromey <tromey@adacore.com>
13287
13288 * ravenscar-thread.c (base_ptid): Remove.
13289 (struct ravenscar_thread_target) <close>: New method.
13290 <m_base_ptid>: New member.
13291 <update_inferior_ptid, active_task, task_is_currently_active,
13292 runtime_initialized>: Declare methods.
13293 <ravenscar_thread_target>: Add constructor.
13294 (ravenscar_thread_target::task_is_currently_active)
13295 (ravenscar_thread_target::update_inferior_ptid)
13296 (ravenscar_runtime_initialized): Rename. Now methods.
13297 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
13298 (ravenscar_thread_target::update_thread_list): Update.
13299 (ravenscar_thread_target::active_task): Now method.
13300 (ravenscar_thread_target::store_registers)
13301 (ravenscar_thread_target::prepare_to_store)
13302 (ravenscar_thread_target::prepare_to_store)
13303 (ravenscar_thread_target::mourn_inferior): Update.
13304 (ravenscar_inferior_created): Use "new" to create target.
13305 (ravenscar_thread_target::get_ada_task_ptid): Update.
13306 (_initialize_ravenscar): Don't initialize base_ptid.
13307 (ravenscar_ops): Remove global.
13308
13309 2019-02-15 Tom Tromey <tromey@adacore.com>
13310
13311 * target.h (push_target): Declare new overload.
13312 * target.c (push_target): New overload, taking an rvalue reference.
13313 * remote.c (remote_target::open_1): Use push_target overload.
13314 * corelow.c (core_target_open): Use push_target overload.
13315
13316 2019-02-15 Tom Tromey <tromey@adacore.com>
13317
13318 * ravenscar-thread.c (is_ravenscar_task)
13319 (ravenscar_task_is_currently_active): Return bool.
13320 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
13321 (_initialize_ravenscar): Remove "(void)".
13322 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
13323 Return bool.
13324
13325 2019-02-15 Tom Tromey <tromey@adacore.com>
13326
13327 * ravenscar-thread.c (ravenscar_runtime_initializer)
13328 (has_ravenscar_runtime, get_running_thread_id)
13329 (ravenscar_thread_target::resume): Fix indentation.
13330
13331 2019-02-15 Tom Tromey <tromey@adacore.com>
13332
13333 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
13334 from ravenscar_arch_ops.
13335 (sparc_ravenscar_ops::fetch_registers)
13336 (sparc_ravenscar_ops::store_registers): Now methods.
13337 (sparc_ravenscar_prepare_to_store): Remove.
13338 (sparc_ravenscar_ops): Redefine.
13339 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
13340 methods and destructor. Remove members.
13341 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
13342 (ravenscar_thread_target::store_registers)
13343 (ravenscar_thread_target::prepare_to_store): Update.
13344 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
13345 Remove.
13346 (struct ppc_ravenscar_powerpc_ops): Derive from
13347 ravenscar_arch_ops.
13348 (ppc_ravenscar_powerpc_ops::fetch_registers)
13349 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
13350 (ppc_ravenscar_powerpc_ops): Redefine.
13351 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
13352 (ppc_ravenscar_e500_ops::fetch_registers)
13353 (ppc_ravenscar_e500_ops::store_registers): Now methods.
13354 (ppc_ravenscar_e500_ops): Redefine.
13355 * aarch64-ravenscar-thread.c
13356 (aarch64_ravenscar_generic_prepare_to_store): Remove.
13357 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
13358 (aarch64_ravenscar_fetch_registers)
13359 (aarch64_ravenscar_store_registers): Now methods.
13360 (aarch64_ravenscar_ops): Redefine.
13361
13362 2019-02-15 Tom Tromey <tromey@adacore.com>
13363
13364 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
13365 (ravenscar_thread_target::stopped_by_hw_breakpoint)
13366 (ravenscar_thread_target::stopped_by_watchpoint)
13367 (ravenscar_thread_target::stopped_data_address)
13368 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
13369
13370 2019-02-15 Tom Tromey <tromey@adacore.com>
13371
13372 * ravenscar-thread.c: Fix some typos.
13373
13374 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13375 Tom Tromey <tromey@adacore.com>
13376
13377 * ada-lang.c (ada_exception_sal): Change addr_string to a
13378 std::string.
13379 (create_ada_exception_catchpoint): Update.
13380
13381 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13382 Tom Tromey <tromey@adacore.com>
13383
13384 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
13385 (bp_location_ops): Remove.
13386 (base_breakpoint_allocate_location): Update.
13387 (free_bp_location): Update.
13388 * ada-lang.c (class ada_catchpoint_location)
13389 <ada_catchpoint_location>: Remove ops parameter.
13390 (ada_catchpoint_location_dtor): Remove.
13391 (ada_catchpoint_location_ops): Remove.
13392 (allocate_location_exception): Update.
13393 * breakpoint.h (struct bp_location_ops): Remove.
13394 (class bp_location) <bp_location>: Remove bp_location_ops
13395 parameter.
13396 <~bp_location>: Add destructor.
13397 <ops>: Remove.
13398
13399 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
13400 Pedro Alves <palves@redhat.com>
13401
13402 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
13403 'PATH_MAX'.
13404
13405 2019-02-14 David Michael <fedora.dm0@gmail.com>
13406 Samuel Thibault <samuel.thibault@gnu.org>
13407 Thomas Schwinge <thomas@codesourcery.com>
13408
13409 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
13410 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
13411
13412 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
13413
13414 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
13415 (check_empty): Use "const char *".
13416
13417 * gnu-nat.c (gnu_nat_target::detach): Instead of
13418 'detach_inferior (pid)' call
13419 'detach_inferior (find_inferior_pid (pid))'.
13420
13421 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
13422 'nat/fork-inferior.o'.
13423 * gnu-nat.c: #include "nat/fork-inferior.h".
13424
13425 * gnu-nat.c (gnu_nat_target::detach): Instead of
13426 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
13427 * gnu-nat.h: #include "inf-child.h".
13428 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
13429 'i386_gnu_nat_target::fetch_registers'.
13430 (gnu_store_registers): Rename/move to
13431 'i386_gnu_nat_target::store_registers'.
13432
13433 * config/i386/nm-i386gnu.h: Don't "#include" any files.
13434 * gnu-nat.h (mach_thread_info): New function.
13435 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
13436
13437 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
13438
13439 2019-02-14 Frederic Konrad <konrad@adacore.com>
13440
13441 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
13442
13443 2019-02-14 Joel Brobecker <brobecker@adacore.com>
13444
13445 * windows-nat.c (windows_add_thread): Add new parameter
13446 "main_thread_p" with default value set to false. Update
13447 function documentation as well as all callers.
13448 (windows_delete_thread): Likewise.
13449 (fake_create_process): Update call to windows_add_thread.
13450 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
13451 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
13452 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
13453 call to windows_delete_thread.
13454
13455 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
13456
13457 * MAINTAINERS: Add Andrew Burgess as global maintainer.
13458
13459 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13460
13461 * symfile.c (find_separate_debug_file): Use canonical path of
13462 sysroot with child_path instead of gdb_sysroot if it is valid.
13463
13464 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13465
13466 * symfile.c (find_separate_debug_file): Use child_path to
13467 determine if an object file is under a sysroot.
13468
13469 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13470
13471 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13472 unittests/child-path-selftests.c.
13473 * common/pathstuff.c (child_path): New function.
13474 * common/pathstuff.h (child_path): New prototype.
13475 * unittests/child-path-selftests.c: New file.
13476
13477 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13478
13479 * symfile.c (find_separate_debug_file): Look for separate debug
13480 files in debug directories under the sysroot.
13481
13482 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13483
13484 * symtab.h (struct minimal_symbol data_p): New const method.
13485 (struct minimal_symbol text_p): Likewise.
13486 * symtab.c (output_source_filename): Use file name style
13487 to print file name.
13488 (print_symbol_info): Likewise.
13489 (print_msymbol_info): Use address style to print addresses.
13490 Use function name style to print executable text symbols.
13491 (expand_symtab_containing_pc): Use data_p.
13492 (find_pc_sect_compunit_symtab): Likewise.
13493
13494 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13495
13496 * breakpoint.c (describe_other_breakpoints): Use address style
13497 to print addresses.
13498 (say_where): Likewise.
13499
13500 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13501
13502 * ada-typeprint.c (print_func_type): Print function name
13503 style to print function name.
13504 * c-typeprint.c (c_print_type_1): Likewise.
13505
13506 2019-02-11 Alan Hayward <alan.hayward@arm.com>
13507
13508 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
13509 for execve.
13510
13511 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13512
13513 * c-exp.y (direct_abs_decl): Use emplace_back to record the
13514 type_stack.
13515
13516 2019-02-10 Joel Brobecker <brobecker@adacore.com>
13517
13518 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
13519 TYPE_CODE_REF types.
13520
13521 2019-02-08 Jim Wilson <jimw@sifive.com>
13522
13523 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
13524 (riscv_linux_fregset): New.
13525 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
13526
13527 2019-02-07 Tom Tromey <tom@tromey.com>
13528
13529 * thread.c (thread_cancel_execution_command): Update.
13530 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
13531 methods.
13532 (struct thread_fsm_ops): Remove.
13533 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
13534 (thread_fsm_should_stop, thread_fsm_return_value)
13535 (thread_fsm_set_finished, thread_fsm_finished_p)
13536 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
13537 Don't declare.
13538 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
13539 * infrun.c (clear_proceed_status_thread)
13540 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
13541 (print_stop_event): Update.
13542 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
13543 Add constructor.
13544 (step_command_fsm_ops): Remove.
13545 (new_step_command_fsm): Remove.
13546 (step_1): Update.
13547 (step_command_fsm::should_stop): Rename from
13548 step_command_fsm_should_stop.
13549 (step_command_fsm::clean_up): Rename from
13550 step_command_fsm_clean_up.
13551 (step_command_fsm::do_async_reply_reason): Rename from
13552 step_command_fsm_async_reply_reason.
13553 (struct until_next_fsm): Inherit from thread_fsm. Add
13554 constructor.
13555 (until_next_fsm_ops): Remove.
13556 (new_until_next_fsm): Remove.
13557 (until_next_fsm::should_stop): Rename from
13558 until_next_fsm_should_stop.
13559 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
13560 (until_next_fsm::do_async_reply_reason): Rename from
13561 until_next_fsm_async_reply_reason.
13562 (struct finish_command_fsm): Inherit from thread_fsm. Add
13563 constructor. Change type of breakpoint.
13564 (finish_command_fsm_ops): Remove.
13565 (new_finish_command_fsm): Remove.
13566 (finish_command_fsm::should_stop): Rename from
13567 finish_command_fsm_should_stop.
13568 (finish_command_fsm::clean_up): Rename from
13569 finish_command_fsm_clean_up.
13570 (finish_command_fsm::return_value): Rename from
13571 finish_command_fsm_return_value.
13572 (finish_command_fsm::do_async_reply_reason): Rename from
13573 finish_command_fsm_async_reply_reason.
13574 (finish_command): Update.
13575 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
13576 Add constructor.
13577 (call_thread_fsm_ops): Remove.
13578 (call_thread_fsm::call_thread_fsm): Rename from
13579 new_call_thread_fsm.
13580 (call_thread_fsm::should_stop): Rename from
13581 call_thread_fsm_should_stop.
13582 (call_thread_fsm::should_notify_stop): Rename from
13583 call_thread_fsm_should_notify_stop.
13584 (run_inferior_call, call_function_by_hand_dummy): Update.
13585 * cli/cli-interp.c (should_print_stop_to_console): Update.
13586 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
13587 Add constructor. Change type of location_breakpoint,
13588 caller_breakpoint.
13589 (until_break_fsm_ops): Remove.
13590 (new_until_break_fsm): Remove.
13591 (until_break_fsm::should_stop): Rename from
13592 until_break_fsm_should_stop.
13593 (until_break_fsm::clean_up): Rename from
13594 until_break_fsm_clean_up.
13595 (until_break_fsm::do_async_reply_reason): Rename from
13596 until_break_fsm_async_reply_reason.
13597 (until_break_command): Update.
13598 * thread-fsm.c: Remove.
13599 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
13600
13601 2019-02-07 Tom Tromey <tom@tromey.com>
13602
13603 * yy-remap.h: Add include guard.
13604 * xtensa-tdep.h: Add include guard.
13605 * xcoffread.h: Rename include guard.
13606 * varobj-iter.h: Add include guard.
13607 * tui/tui.h: Rename include guard.
13608 * tui/tui-winsource.h: Rename include guard.
13609 * tui/tui-wingeneral.h: Rename include guard.
13610 * tui/tui-windata.h: Rename include guard.
13611 * tui/tui-win.h: Rename include guard.
13612 * tui/tui-stack.h: Rename include guard.
13613 * tui/tui-source.h: Rename include guard.
13614 * tui/tui-regs.h: Rename include guard.
13615 * tui/tui-out.h: Rename include guard.
13616 * tui/tui-layout.h: Rename include guard.
13617 * tui/tui-io.h: Rename include guard.
13618 * tui/tui-hooks.h: Rename include guard.
13619 * tui/tui-file.h: Rename include guard.
13620 * tui/tui-disasm.h: Rename include guard.
13621 * tui/tui-data.h: Rename include guard.
13622 * tui/tui-command.h: Rename include guard.
13623 * tic6x-tdep.h: Add include guard.
13624 * target/waitstatus.h: Rename include guard.
13625 * target/wait.h: Rename include guard.
13626 * target/target.h: Rename include guard.
13627 * target/resume.h: Rename include guard.
13628 * target-float.h: Rename include guard.
13629 * stabsread.h: Add include guard.
13630 * rs6000-tdep.h: Add include guard.
13631 * riscv-fbsd-tdep.h: Add include guard.
13632 * regformats/regdef.h: Rename include guard.
13633 * record.h: Rename include guard.
13634 * python/python.h: Rename include guard.
13635 * python/python-internal.h: Rename include guard.
13636 * python/py-stopevent.h: Rename include guard.
13637 * python/py-ref.h: Rename include guard.
13638 * python/py-record.h: Rename include guard.
13639 * python/py-record-full.h: Rename include guard.
13640 * python/py-record-btrace.h: Rename include guard.
13641 * python/py-instruction.h: Rename include guard.
13642 * python/py-events.h: Rename include guard.
13643 * python/py-event.h: Rename include guard.
13644 * procfs.h: Add include guard.
13645 * proc-utils.h: Add include guard.
13646 * p-lang.h: Add include guard.
13647 * or1k-tdep.h: Rename include guard.
13648 * observable.h: Rename include guard.
13649 * nto-tdep.h: Rename include guard.
13650 * nat/x86-linux.h: Rename include guard.
13651 * nat/x86-linux-dregs.h: Rename include guard.
13652 * nat/x86-gcc-cpuid.h: Add include guard.
13653 * nat/x86-dregs.h: Rename include guard.
13654 * nat/x86-cpuid.h: Rename include guard.
13655 * nat/ppc-linux.h: Rename include guard.
13656 * nat/mips-linux-watch.h: Rename include guard.
13657 * nat/linux-waitpid.h: Rename include guard.
13658 * nat/linux-ptrace.h: Rename include guard.
13659 * nat/linux-procfs.h: Rename include guard.
13660 * nat/linux-osdata.h: Rename include guard.
13661 * nat/linux-nat.h: Rename include guard.
13662 * nat/linux-namespaces.h: Rename include guard.
13663 * nat/linux-btrace.h: Rename include guard.
13664 * nat/glibc_thread_db.h: Rename include guard.
13665 * nat/gdb_thread_db.h: Rename include guard.
13666 * nat/gdb_ptrace.h: Rename include guard.
13667 * nat/fork-inferior.h: Rename include guard.
13668 * nat/amd64-linux-siginfo.h: Rename include guard.
13669 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
13670 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
13671 * nat/aarch64-linux.h: Rename include guard.
13672 * nat/aarch64-linux-hw-point.h: Rename include guard.
13673 * mn10300-tdep.h: Add include guard.
13674 * mips-linux-tdep.h: Add include guard.
13675 * mi/mi-parse.h: Rename include guard.
13676 * mi/mi-out.h: Rename include guard.
13677 * mi/mi-main.h: Rename include guard.
13678 * mi/mi-interp.h: Rename include guard.
13679 * mi/mi-getopt.h: Rename include guard.
13680 * mi/mi-console.h: Rename include guard.
13681 * mi/mi-common.h: Rename include guard.
13682 * mi/mi-cmds.h: Rename include guard.
13683 * mi/mi-cmd-break.h: Rename include guard.
13684 * m2-lang.h: Add include guard.
13685 * location.h: Rename include guard.
13686 * linux-record.h: Rename include guard.
13687 * linux-nat.h: Add include guard.
13688 * linux-fork.h: Add include guard.
13689 * i386-darwin-tdep.h: Rename include guard.
13690 * hppa-linux-offsets.h: Add include guard.
13691 * guile/guile.h: Rename include guard.
13692 * guile/guile-internal.h: Rename include guard.
13693 * gnu-nat.h: Rename include guard.
13694 * gdb-stabs.h: Rename include guard.
13695 * frv-tdep.h: Add include guard.
13696 * f-lang.h: Add include guard.
13697 * event-loop.h: Add include guard.
13698 * darwin-nat.h: Rename include guard.
13699 * cp-abi.h: Rename include guard.
13700 * config/sparc/nm-sol2.h: Rename include guard.
13701 * config/nm-nto.h: Rename include guard.
13702 * config/nm-linux.h: Add include guard.
13703 * config/i386/nm-i386gnu.h: Rename include guard.
13704 * config/djgpp/nl_types.h: Rename include guard.
13705 * config/djgpp/langinfo.h: Rename include guard.
13706 * compile/gcc-cp-plugin.h: Add include guard.
13707 * compile/gcc-c-plugin.h: Add include guard.
13708 * compile/compile.h: Rename include guard.
13709 * compile/compile-object-run.h: Rename include guard.
13710 * compile/compile-object-load.h: Rename include guard.
13711 * compile/compile-internal.h: Rename include guard.
13712 * compile/compile-cplus.h: Rename include guard.
13713 * compile/compile-c.h: Rename include guard.
13714 * common/xml-utils.h: Rename include guard.
13715 * common/x86-xstate.h: Rename include guard.
13716 * common/version.h: Rename include guard.
13717 * common/vec.h: Rename include guard.
13718 * common/tdesc.h: Rename include guard.
13719 * common/selftest.h: Rename include guard.
13720 * common/scoped_restore.h: Rename include guard.
13721 * common/scoped_mmap.h: Rename include guard.
13722 * common/scoped_fd.h: Rename include guard.
13723 * common/safe-iterator.h: Rename include guard.
13724 * common/run-time-clock.h: Rename include guard.
13725 * common/refcounted-object.h: Rename include guard.
13726 * common/queue.h: Rename include guard.
13727 * common/ptid.h: Rename include guard.
13728 * common/print-utils.h: Rename include guard.
13729 * common/preprocessor.h: Rename include guard.
13730 * common/pathstuff.h: Rename include guard.
13731 * common/observable.h: Rename include guard.
13732 * common/netstuff.h: Rename include guard.
13733 * common/job-control.h: Rename include guard.
13734 * common/host-defs.h: Rename include guard.
13735 * common/gdb_wait.h: Rename include guard.
13736 * common/gdb_vecs.h: Rename include guard.
13737 * common/gdb_unlinker.h: Rename include guard.
13738 * common/gdb_unique_ptr.h: Rename include guard.
13739 * common/gdb_tilde_expand.h: Rename include guard.
13740 * common/gdb_sys_time.h: Rename include guard.
13741 * common/gdb_string_view.h: Rename include guard.
13742 * common/gdb_splay_tree.h: Rename include guard.
13743 * common/gdb_setjmp.h: Rename include guard.
13744 * common/gdb_ref_ptr.h: Rename include guard.
13745 * common/gdb_optional.h: Rename include guard.
13746 * common/gdb_locale.h: Rename include guard.
13747 * common/gdb_assert.h: Rename include guard.
13748 * common/filtered-iterator.h: Rename include guard.
13749 * common/filestuff.h: Rename include guard.
13750 * common/fileio.h: Rename include guard.
13751 * common/environ.h: Rename include guard.
13752 * common/common-utils.h: Rename include guard.
13753 * common/common-types.h: Rename include guard.
13754 * common/common-regcache.h: Rename include guard.
13755 * common/common-inferior.h: Rename include guard.
13756 * common/common-gdbthread.h: Rename include guard.
13757 * common/common-exceptions.h: Rename include guard.
13758 * common/common-defs.h: Rename include guard.
13759 * common/common-debug.h: Rename include guard.
13760 * common/cleanups.h: Rename include guard.
13761 * common/buffer.h: Rename include guard.
13762 * common/btrace-common.h: Rename include guard.
13763 * common/break-common.h: Rename include guard.
13764 * cli/cli-utils.h: Rename include guard.
13765 * cli/cli-style.h: Rename include guard.
13766 * cli/cli-setshow.h: Rename include guard.
13767 * cli/cli-script.h: Rename include guard.
13768 * cli/cli-interp.h: Rename include guard.
13769 * cli/cli-decode.h: Rename include guard.
13770 * cli/cli-cmds.h: Rename include guard.
13771 * charset-list.h: Add include guard.
13772 * buildsym-legacy.h: Rename include guard.
13773 * bfin-tdep.h: Add include guard.
13774 * ax.h: Rename include guard.
13775 * arm-linux-tdep.h: Add include guard.
13776 * arm-fbsd-tdep.h: Add include guard.
13777 * arch/xtensa.h: Rename include guard.
13778 * arch/tic6x.h: Add include guard.
13779 * arch/i386.h: Add include guard.
13780 * arch/arm.h: Rename include guard.
13781 * arch/arm-linux.h: Rename include guard.
13782 * arch/arm-get-next-pcs.h: Rename include guard.
13783 * arch/amd64.h: Add include guard.
13784 * arch/aarch64-insn.h: Rename include guard.
13785 * arch-utils.h: Rename include guard.
13786 * annotate.h: Add include guard.
13787 * amd64-darwin-tdep.h: Rename include guard.
13788 * aarch64-linux-tdep.h: Add include guard.
13789 * aarch64-fbsd-tdep.h: Add include guard.
13790 * aarch32-linux-nat.h: Add include guard.
13791
13792 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13793
13794 * macrotab.c (macro_define_internal): New function that
13795 factorizes macro_define_object_internal and macro_define_function
13796 code.
13797 (macro_define_object_internal): Use macro_define_internal.
13798 (macro_define_function): Likewise.
13799
13800 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13801
13802 * macrocmd.c (extract_identifier): Return
13803 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
13804 callers.
13805
13806 2019-02-06 John Baldwin <jhb@FreeBSD.org>
13807
13808 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
13809
13810 2019-02-05 Tom Tromey <tom@tromey.com>
13811
13812 * target.c (target_stack::unpush): Move assertion earlier.
13813
13814 2019-01-30 Tom Tromey <tom@tromey.com>
13815
13816 PR python/23615:
13817 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
13818 (gdbpy_parse_and_eval): Likewise.
13819 * python/python-internal.h (gdbpy_allow_threads): New class.
13820
13821 2019-01-28 John Baldwin <jhb@FreeBSD.org>
13822
13823 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
13824 (aarch64_fbsd_fpregmap): Move earlier.
13825 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
13826 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
13827 instead of individual calls to trad_frame_set_reg_addr.
13828 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
13829 earlier.
13830 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
13831 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
13832 instead of individual calls to trad_frame_set_reg_addr.
13833
13834 2019-01-28 Alan Hayward <alan.hayward@arm.com>
13835
13836 * CONTRIBUTE: Replace contribution list with wiki link.
13837
13838 2019-01-25 Tom Tromey <tom@tromey.com>
13839
13840 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
13841
13842 2019-01-25 Tom Tromey <tom@tromey.com>
13843
13844 * xtensa-linux-nat.c: Fix common/ includes.
13845 * xml-support.h: Fix common/ includes.
13846 * xml-support.c: Fix common/ includes.
13847 * x86-linux-nat.c: Fix common/ includes.
13848 * windows-nat.c: Fix common/ includes.
13849 * varobj.h: Fix common/ includes.
13850 * varobj.c: Fix common/ includes.
13851 * value.c: Fix common/ includes.
13852 * valops.c: Fix common/ includes.
13853 * utils.c: Fix common/ includes.
13854 * unittests/xml-utils-selftests.c: Fix common/ includes.
13855 * unittests/utils-selftests.c: Fix common/ includes.
13856 * unittests/unpack-selftests.c: Fix common/ includes.
13857 * unittests/tracepoint-selftests.c: Fix common/ includes.
13858 * unittests/style-selftests.c: Fix common/ includes.
13859 * unittests/string_view-selftests.c: Fix common/ includes.
13860 * unittests/scoped_restore-selftests.c: Fix common/ includes.
13861 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
13862 * unittests/scoped_fd-selftests.c: Fix common/ includes.
13863 * unittests/rsp-low-selftests.c: Fix common/ includes.
13864 * unittests/parse-connection-spec-selftests.c: Fix common/
13865 includes.
13866 * unittests/optional-selftests.c: Fix common/ includes.
13867 * unittests/offset-type-selftests.c: Fix common/ includes.
13868 * unittests/observable-selftests.c: Fix common/ includes.
13869 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
13870 * unittests/memrange-selftests.c: Fix common/ includes.
13871 * unittests/memory-map-selftests.c: Fix common/ includes.
13872 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
13873 * unittests/function-view-selftests.c: Fix common/ includes.
13874 * unittests/environ-selftests.c: Fix common/ includes.
13875 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
13876 * unittests/common-utils-selftests.c: Fix common/ includes.
13877 * unittests/cli-utils-selftests.c: Fix common/ includes.
13878 * unittests/array-view-selftests.c: Fix common/ includes.
13879 * ui-file.c: Fix common/ includes.
13880 * tui/tui-io.c: Fix common/ includes.
13881 * tracepoint.h: Fix common/ includes.
13882 * tracepoint.c: Fix common/ includes.
13883 * tracefile-tfile.c: Fix common/ includes.
13884 * top.h: Fix common/ includes.
13885 * top.c: Fix common/ includes.
13886 * thread.c: Fix common/ includes.
13887 * target/waitstatus.h: Fix common/ includes.
13888 * target/waitstatus.c: Fix common/ includes.
13889 * target.h: Fix common/ includes.
13890 * target.c: Fix common/ includes.
13891 * target-memory.c: Fix common/ includes.
13892 * target-descriptions.c: Fix common/ includes.
13893 * symtab.h: Fix common/ includes.
13894 * symfile.c: Fix common/ includes.
13895 * stap-probe.c: Fix common/ includes.
13896 * spu-linux-nat.c: Fix common/ includes.
13897 * sparc-nat.c: Fix common/ includes.
13898 * source.c: Fix common/ includes.
13899 * solib.c: Fix common/ includes.
13900 * solib-target.c: Fix common/ includes.
13901 * ser-unix.c: Fix common/ includes.
13902 * ser-tcp.c: Fix common/ includes.
13903 * ser-pipe.c: Fix common/ includes.
13904 * ser-base.c: Fix common/ includes.
13905 * selftest-arch.c: Fix common/ includes.
13906 * s12z-tdep.c: Fix common/ includes.
13907 * rust-exp.y: Fix common/ includes.
13908 * rs6000-aix-tdep.c: Fix common/ includes.
13909 * riscv-tdep.c: Fix common/ includes.
13910 * remote.c: Fix common/ includes.
13911 * remote-notif.h: Fix common/ includes.
13912 * remote-fileio.h: Fix common/ includes.
13913 * remote-fileio.c: Fix common/ includes.
13914 * regcache.h: Fix common/ includes.
13915 * regcache.c: Fix common/ includes.
13916 * record-btrace.c: Fix common/ includes.
13917 * python/python.c: Fix common/ includes.
13918 * python/py-type.c: Fix common/ includes.
13919 * python/py-inferior.c: Fix common/ includes.
13920 * progspace.h: Fix common/ includes.
13921 * producer.c: Fix common/ includes.
13922 * procfs.c: Fix common/ includes.
13923 * proc-api.c: Fix common/ includes.
13924 * printcmd.c: Fix common/ includes.
13925 * ppc-linux-nat.c: Fix common/ includes.
13926 * parser-defs.h: Fix common/ includes.
13927 * osdata.c: Fix common/ includes.
13928 * obsd-nat.c: Fix common/ includes.
13929 * nat/x86-linux.c: Fix common/ includes.
13930 * nat/x86-linux-dregs.c: Fix common/ includes.
13931 * nat/x86-dregs.h: Fix common/ includes.
13932 * nat/x86-dregs.c: Fix common/ includes.
13933 * nat/ppc-linux.c: Fix common/ includes.
13934 * nat/mips-linux-watch.h: Fix common/ includes.
13935 * nat/mips-linux-watch.c: Fix common/ includes.
13936 * nat/linux-waitpid.c: Fix common/ includes.
13937 * nat/linux-ptrace.h: Fix common/ includes.
13938 * nat/linux-ptrace.c: Fix common/ includes.
13939 * nat/linux-procfs.c: Fix common/ includes.
13940 * nat/linux-personality.c: Fix common/ includes.
13941 * nat/linux-osdata.c: Fix common/ includes.
13942 * nat/linux-namespaces.c: Fix common/ includes.
13943 * nat/linux-btrace.h: Fix common/ includes.
13944 * nat/linux-btrace.c: Fix common/ includes.
13945 * nat/fork-inferior.c: Fix common/ includes.
13946 * nat/amd64-linux-siginfo.c: Fix common/ includes.
13947 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
13948 * nat/aarch64-linux.c: Fix common/ includes.
13949 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
13950 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
13951 * namespace.h: Fix common/ includes.
13952 * mips-linux-tdep.c: Fix common/ includes.
13953 * minsyms.c: Fix common/ includes.
13954 * mi/mi-parse.h: Fix common/ includes.
13955 * mi/mi-main.c: Fix common/ includes.
13956 * mi/mi-cmd-env.c: Fix common/ includes.
13957 * memrange.h: Fix common/ includes.
13958 * memattr.c: Fix common/ includes.
13959 * maint.h: Fix common/ includes.
13960 * maint.c: Fix common/ includes.
13961 * main.c: Fix common/ includes.
13962 * machoread.c: Fix common/ includes.
13963 * location.c: Fix common/ includes.
13964 * linux-thread-db.c: Fix common/ includes.
13965 * linux-nat.c: Fix common/ includes.
13966 * linux-fork.c: Fix common/ includes.
13967 * inline-frame.c: Fix common/ includes.
13968 * infrun.c: Fix common/ includes.
13969 * inflow.c: Fix common/ includes.
13970 * inferior.h: Fix common/ includes.
13971 * inferior.c: Fix common/ includes.
13972 * infcmd.c: Fix common/ includes.
13973 * inf-ptrace.c: Fix common/ includes.
13974 * inf-child.c: Fix common/ includes.
13975 * ia64-linux-nat.c: Fix common/ includes.
13976 * i387-tdep.c: Fix common/ includes.
13977 * i386-tdep.c: Fix common/ includes.
13978 * i386-linux-tdep.c: Fix common/ includes.
13979 * i386-linux-nat.c: Fix common/ includes.
13980 * i386-go32-tdep.c: Fix common/ includes.
13981 * i386-fbsd-tdep.c: Fix common/ includes.
13982 * i386-fbsd-nat.c: Fix common/ includes.
13983 * guile/scm-type.c: Fix common/ includes.
13984 * guile/guile.c: Fix common/ includes.
13985 * go32-nat.c: Fix common/ includes.
13986 * gnu-nat.c: Fix common/ includes.
13987 * gdbthread.h: Fix common/ includes.
13988 * gdbarch-selftests.c: Fix common/ includes.
13989 * gdb_usleep.c: Fix common/ includes.
13990 * gdb_select.h: Fix common/ includes.
13991 * gdb_bfd.c: Fix common/ includes.
13992 * gcore.c: Fix common/ includes.
13993 * fork-child.c: Fix common/ includes.
13994 * findvar.c: Fix common/ includes.
13995 * fbsd-nat.c: Fix common/ includes.
13996 * event-top.c: Fix common/ includes.
13997 * event-loop.c: Fix common/ includes.
13998 * dwarf2read.c: Fix common/ includes.
13999 * dwarf2loc.c: Fix common/ includes.
14000 * dwarf2-frame.c: Fix common/ includes.
14001 * dwarf-index-cache.c: Fix common/ includes.
14002 * dtrace-probe.c: Fix common/ includes.
14003 * disasm-selftests.c: Fix common/ includes.
14004 * defs.h: Fix common/ includes.
14005 * csky-tdep.c: Fix common/ includes.
14006 * cp-valprint.c: Fix common/ includes.
14007 * cp-support.h: Fix common/ includes.
14008 * cp-support.c: Fix common/ includes.
14009 * corelow.c: Fix common/ includes.
14010 * completer.h: Fix common/ includes.
14011 * completer.c: Fix common/ includes.
14012 * compile/compile.c: Fix common/ includes.
14013 * compile/compile-loc2c.c: Fix common/ includes.
14014 * compile/compile-cplus-types.c: Fix common/ includes.
14015 * compile/compile-cplus-symbols.c: Fix common/ includes.
14016 * command.h: Fix common/ includes.
14017 * cli/cli-dump.c: Fix common/ includes.
14018 * cli/cli-cmds.c: Fix common/ includes.
14019 * charset.c: Fix common/ includes.
14020 * build-id.c: Fix common/ includes.
14021 * btrace.h: Fix common/ includes.
14022 * btrace.c: Fix common/ includes.
14023 * breakpoint.h: Fix common/ includes.
14024 * breakpoint.c: Fix common/ includes.
14025 * ax.h:
14026 (enum agent_op): Fix common/ includes.
14027 * ax-general.c (struct aop_map): Fix common/ includes.
14028 * ax-gdb.c: Fix common/ includes.
14029 * auxv.c: Fix common/ includes.
14030 * auto-load.c: Fix common/ includes.
14031 * arm-tdep.c: Fix common/ includes.
14032 * arch/riscv.c: Fix common/ includes.
14033 * arch/ppc-linux-common.c: Fix common/ includes.
14034 * arch/i386.c: Fix common/ includes.
14035 * arch/arm.c: Fix common/ includes.
14036 * arch/arm-linux.c: Fix common/ includes.
14037 * arch/arm-get-next-pcs.c: Fix common/ includes.
14038 * arch/amd64.c: Fix common/ includes.
14039 * arch/aarch64.c: Fix common/ includes.
14040 * arch/aarch64-insn.c: Fix common/ includes.
14041 * arch-utils.c: Fix common/ includes.
14042 * amd64-windows-tdep.c: Fix common/ includes.
14043 * amd64-tdep.c: Fix common/ includes.
14044 * amd64-sol2-tdep.c: Fix common/ includes.
14045 * amd64-obsd-tdep.c: Fix common/ includes.
14046 * amd64-nbsd-tdep.c: Fix common/ includes.
14047 * amd64-linux-tdep.c: Fix common/ includes.
14048 * amd64-linux-nat.c: Fix common/ includes.
14049 * amd64-fbsd-tdep.c: Fix common/ includes.
14050 * amd64-fbsd-nat.c: Fix common/ includes.
14051 * amd64-dicos-tdep.c: Fix common/ includes.
14052 * amd64-darwin-tdep.c: Fix common/ includes.
14053 * agent.c: Fix common/ includes.
14054 * ada-lang.h: Fix common/ includes.
14055 * ada-lang.c: Fix common/ includes.
14056 * aarch64-tdep.c: Fix common/ includes.
14057
14058 2019-01-25 Tom Tromey <tom@tromey.com>
14059
14060 * common/create-version.sh: Use common/version.h.
14061
14062 2019-01-24 Pedro Alves <palves@redhat.com>
14063
14064 * infrun.c (signal_stop, signal_print, signal_program)
14065 (signal_catch, signal_pass): Now arrays instead of pointers.
14066 (update_signals_program_target, do_target_resume)
14067 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
14068 * linux-nat.c (linux_nat_target::pass_signals)
14069 (linux_nat_target::create_inferior, linux_nat_target::attach):
14070 Adjust.
14071 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
14072 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
14073 * procfs.c (procfs_target::pass_signals): Adjust.
14074 * record-full.c (record_full_target::resume): Adjust.
14075 * remote.c (remote_target::pass_signals)
14076 (remote_target::program_signals): Adjust.
14077 * target-debug.h (target_debug_print_signals): Now takes a
14078 gdb::array_view as parameter. Adjust.
14079 * target.h (target_ops) <pass_signals, program_signals>: Replace
14080 pointer and length parameters with gdb::array_view.
14081 (target_pass_signals, target_program_signals): Likewise.
14082 * target-delegates.c: Regenerate.
14083
14084 2019-01-24 Pedro Alves <palves@redhat.com>
14085
14086 * common/forward-scope-exit.h
14087 (forward_scope_exit::forward_scope_exit): Pass arguments to
14088 m_bind_function directly, instead of creating a std::bind and
14089 copying that.
14090
14091 2019-01-24 Alan Hayward <alan.hayward@arm.com>
14092
14093 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14094 for static members.
14095 (pass_in_v_vfp_candidate): Likewise.
14096
14097 2019-01-23 Tom Tromey <tom@tromey.com>
14098 Pedro Alves <palves@redhat.com>
14099
14100 * regcache.c (class regcache_invalidator): Remove.
14101 (regcache::raw_write): Use make_scope_exit.
14102
14103 2019-01-23 Tom Tromey <tom@tromey.com>
14104
14105 * ui-out.h (class ui_out_emit_type): Update comment.
14106
14107 2019-01-23 Tom Tromey <tom@tromey.com>
14108
14109 * infrun.c (fetch_inferior_event): Update comment.
14110
14111 2019-01-23 Tom Tromey <tom@tromey.com>
14112 Pedro Alves <palves@redhat.com>
14113
14114 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
14115 parameter.
14116 (fetch_inferior_event): Use SCOPE_EXIT.
14117
14118
14119 2019-01-23 Tom Tromey <tom@tromey.com>
14120 Pedro Alves <palves@redhat.com>
14121
14122 * infrun.c (disable_thread_events): Delete.
14123 (stop_all_threads): Use SCOPE_EXIT.
14124
14125 2019-01-23 Tom Tromey <tom@tromey.com>
14126 Pedro Alves <palves@redhat.com>
14127
14128 * symfile.c: Include forward-scope-exit.h.
14129 (clear_symtab_users_cleanup): Replace forward declaration with
14130 a FORWARD_SCOPE_EXIT.
14131 (syms_from_objfile_1): Use the forward_scope_exit and
14132 gdb::optional instead of cleanup_function.
14133 (reread_symbols): Use the forward_scope_exit instead of
14134 cleanup_function.
14135 (clear_symtab_users_cleanup): Remove function.
14136
14137 2019-01-23 Tom Tromey <tom@tromey.com>
14138 Pedro Alves <palves@redhat.com>
14139
14140 * linux-nat.c: Include scope-exit.h.
14141 (cleanup_target_stop): Remove.
14142 (linux_nat_target::static_tracepoint_markers_by_strid): Use
14143 SCOPE_EXIT.
14144
14145 2019-01-23 Tom Tromey <tom@tromey.com>
14146 Pedro Alves <palves@redhat.com>
14147
14148 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
14149 (call_function_by_hand_dummy): Use SCOPE_EXIT.
14150
14151 2019-01-23 Tom Tromey <tom@tromey.com>
14152 Andrew Burgess <andrew.burgess@embecosm.com>
14153 Pedro Alves <palves@redhat.com>
14154
14155 * infrun.c (fetch_inferior_event): Use scope_exit.
14156 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
14157 * top.c (execute_command): Use scope_exit.
14158 * breakpoint.c (bpstat_do_actions): Use scope_exit.
14159 * utils.c (do_bpstat_clear_actions_cleanup)
14160 (make_bpstat_clear_actions_cleanup): Remove.
14161
14162 2019-01-23 Tom Tromey <tom@tromey.com>
14163 Pedro Alves <palves@redhat.com>
14164
14165 * infrun.c: Include "common/scope-exit.h"
14166 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
14167 (wait_for_inferior): Use SCOPE_EXIT.
14168 (fetch_inferior_event): Use scope_exit.
14169
14170 2019-01-23 Tom Tromey <tom@tromey.com>
14171 Pedro Alves <palves@redhat.com>
14172
14173 * breakpoint.c (create_breakpoint): Remove cleanup.
14174
14175 2019-01-23 Tom Tromey <tom@tromey.com>
14176 Andrew Burgess <andrew.burgess@embecosm.com>
14177 Pedro Alves <palves@redhat.com>
14178
14179 2019-01-23 Pedro Alves <palves@redhat.com>
14180
14181 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
14182
14183 2019-01-23 Pedro Alves <palves@redhat.com>
14184 Andrew Burgess <andrew.burgess@embecosm.com>
14185
14186 * gdbthread.h: Include "common/forward-scope-exit.h".
14187 (scoped_finish_thread_state): Redefine custom class in terms of
14188 forward_scope_exit.
14189
14190 2019-01-23 Pedro Alves <palves@redhat.com>
14191 Andrew Burgess <andrew.burgess@embecosm.com>
14192
14193 * common/forward-scope-exit.h: New file.
14194
14195 2019-01-23 Pedro Alves <palves@redhat.com>
14196 Andrew Burgess <andrew.burgess@embecosm.com>
14197 Tom Tromey <tom@tromey.com>
14198
14199 * common/scope-exit.h: New file.
14200
14201 2019-01-23 Pedro Alves <palves@redhat.com>
14202
14203 * common/preprocessor.h (ESC): Rename to ...
14204 (ESC_PARENS): ... this.
14205 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
14206 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
14207
14208 2019-01-23 Tom Tromey <tom@tromey.com>
14209
14210 * language.h (class scoped_switch_to_sym_language_if_auto):
14211 Initialize m_lang in both cases.
14212
14213 2019-01-23 Alan Hayward <alan.hayward@arm.com>
14214
14215 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
14216 with XCNEW.
14217
14218 2019-01-22 Tom Tromey <tom@tromey.com>
14219
14220 * corelow.c: Do not include sys/file.h.
14221
14222 2019-01-22 Tom Tromey <tom@tromey.com>
14223
14224 * tui/tui-wingeneral.h: Include gdb_curses.h.
14225
14226 2019-01-22 Tom Tromey <tom@tromey.com>
14227
14228 * source-cache.h (class source_cache) <get_source_lines,
14229 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
14230
14231 2019-01-22 Tom Tromey <tom@tromey.com>
14232
14233 * remote-fileio.h (struct remote_target): Declare.
14234
14235 2019-01-22 Tom Tromey <tom@tromey.com>
14236
14237 * python/py-arch.c: Do not include py-ref.h.
14238 * python/py-bpevent.c: Do not include py-ref.h.
14239 * python/py-cmd.c: Do not include py-ref.h.
14240 * python/py-continueevent.c: Do not include py-ref.h.
14241 * python/py-event.h: Do not include py-ref.h.
14242 * python/py-evtregistry.c: Do not include py-ref.h.
14243 * python/py-finishbreakpoint.c: Do not include py-ref.h.
14244 * python/py-frame.c: Do not include py-ref.h.
14245 * python/py-framefilter.c: Do not include py-ref.h.
14246 * python/py-function.c: Do not include py-ref.h.
14247 * python/py-infevents.c: Do not include py-ref.h.
14248 * python/py-linetable.c: Do not include py-ref.h.
14249 * python/py-objfile.c: Do not include py-ref.h.
14250 * python/py-param.c: Do not include py-ref.h.
14251 * python/py-prettyprint.c: Do not include py-ref.h.
14252 * python/py-progspace.c: Do not include py-ref.h.
14253 * python/py-symbol.c: Do not include py-ref.h.
14254 * python/py-symtab.c: Do not include py-ref.h.
14255 * python/py-type.c: Do not include py-ref.h.
14256 * python/py-unwind.c: Do not include py-ref.h.
14257 * python/py-utils.c: Do not include py-ref.h.
14258 * python/py-value.c: Do not include py-ref.h.
14259 * python/py-varobj.c: Do not include py-ref.h.
14260 * python/py-xmethods.c: Do not include py-ref.h.
14261 * python/python.c: Do not include py-ref.h.
14262 * varobj.c: Do not include py-ref.h.
14263
14264 2019-01-22 Tom Tromey <tom@tromey.com>
14265
14266 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
14267 keyword for bcache.
14268
14269 2019-01-22 Tom Tromey <tom@tromey.com>
14270
14271 * compile/compile-cplus-types.c: Remove a comment by #include.
14272
14273 2019-01-22 Tom Tromey <tom@tromey.com>
14274
14275 * compile/gcc-c-plugin.h: Include compile-internal.h.
14276
14277 2019-01-22 Tom Tromey <tom@tromey.com>
14278
14279 * stabsread.c (EXTERN): Do not define.
14280 (symnum, next_symbol_text_func, processing_gcc_compilation)
14281 (within_function, global_sym_chain, global_stabs)
14282 (previous_stab_code, this_object_header_files)
14283 (n_this_object_header_files)
14284 (n_allocated_this_object_header_files): Define.
14285 * stabsread.h (EXTERN): Never define. Use "extern".
14286
14287 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14288
14289 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
14290 history_value.
14291
14292 2019-01-21 Tom Tromey <tom@tromey.com>
14293
14294 * ui-out.c: Fix includes.
14295 * tui/tui-source.c: Fix includes.
14296 * target.c: Fix includes.
14297 * remote.c: Fix includes.
14298 * regcache.c: Fix includes.
14299 * python/py-block.c: Fix includes.
14300 * printcmd.c: Fix includes.
14301 * or1k-tdep.c: Fix includes.
14302 * mi/mi-main.c: Fix includes.
14303 * m32r-tdep.c: Fix includes.
14304 * csky-tdep.c: Fix includes.
14305 * compile/compile-cplus-types.c: Fix includes.
14306 * cli/cli-interp.c: Fix includes.
14307
14308 2019-01-21 Alan Hayward <alan.hayward@arm.com>
14309
14310 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14311 for padding.
14312
14313 2019-01-16 Tom Tromey <tom@tromey.com>
14314
14315 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
14316 earlier.
14317 (struct objfile) <msymbols_range>: Move from top level.
14318 <msymbols>: New method.
14319 (class objfile_msymbols): Remove.
14320 * symtab.c (default_collect_symbol_completion_matches_break_on):
14321 Update.
14322 * symmisc.c (dump_msymbols): Update.
14323 * stabsread.c (scan_file_globals): Update.
14324 * objc-lang.c (info_selectors_command, info_classes_command)
14325 (find_methods): Update.
14326 * minsyms.c (find_solib_trampoline_target): Update.
14327 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
14328 * coffread.c (coff_symfile_read): Update.
14329 * ada-lang.c (ada_lookup_simple_minsym)
14330 (ada_collect_symbol_completion_matches): Update.
14331
14332 2019-01-16 Tom Tromey <tom@tromey.com>
14333
14334 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
14335 type. Remove no-argument constructor.
14336 <iterator::operator++>: Simplify.
14337 <begin>: Update.
14338 <end>: Use minimal_symbol_count.
14339
14340 2019-01-16 Tom Tromey <tom@tromey.com>
14341
14342 * objfiles.h (struct objfile) <psymtabs>: New method.
14343 (class objfile_psymtabs): Remove.
14344 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
14345 typedef.
14346 <range>: New method.
14347 (require_partial_symbols): Change return type.
14348 * psymtab.c (require_partial_symbols)
14349 (psym_expand_symtabs_matching): Update.
14350 * mdebugread.c (parse_partial_symbols): Update.
14351 * dbxread.c (dbx_end_psymtab): Update.
14352
14353 2019-01-15 Tom Tromey <tom@tromey.com>
14354
14355 * symtab.c (lookup_objfile_from_block)
14356 (lookup_symbol_in_objfile_symtabs)
14357 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
14358 (find_line_symtab, info_sources_command)
14359 (default_collect_symbol_completion_matches_break_on)
14360 (make_source_files_completion_list): Update.
14361 * symmisc.c (print_objfile_statistics, dump_objfile)
14362 (maintenance_print_symbols, maintenance_info_symtabs)
14363 (maintenance_check_symtabs, maintenance_info_line_tables):
14364 Update.
14365 * source.c (select_source_symtab)
14366 (forget_cached_source_info_for_objfile): Update.
14367 * objfiles.h (class objfile_compunits): Remove.
14368 (struct objfile) <compunits_range>: New typedef.
14369 (compunits): New method.
14370 * objfiles.c (objfile_relocate1): Update.
14371 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
14372 * maint.c (count_symtabs_and_blocks): Update.
14373 * linespec.c (iterate_over_all_matching_symtabs): Update.
14374 * cp-support.c (add_symbol_overload_list_qualified): Update.
14375 * coffread.c (coff_symtab_read): Update.
14376 * ada-lang.c (add_nonlocal_symbols)
14377 (ada_collect_symbol_completion_matches)
14378 (ada_add_global_exceptions): Update.
14379
14380 2019-01-15 Tom Tromey <tom@tromey.com>
14381
14382 * progspace.h (program_space) <objfiles_safe_range>: New
14383 typedef.
14384 <objfiles_safe>: New method.
14385 * objfiles.h (class all_objfiles_safe): Remove.
14386 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
14387 * jit.c (jit_inferior_exit_hook): Update.
14388
14389 2019-01-17 Tom Tromey <tom@tromey.com>
14390
14391 * progspace.h (program_space) <objfiles_range>: New typedef.
14392 <objfiles>: New method.
14393 <objfiles_head>: Rename from objfiles.
14394 (object_files): Update.
14395 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
14396 * guile/scm-pretty-print.c
14397 (ppscm_find_pretty_printer_from_objfiles): Update.
14398 * guile/scm-objfile.c (gdbscm_objfiles): Update.
14399 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
14400 Update.
14401 * python/py-progspace.c (pspy_get_objfiles): Update.
14402 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
14403 Update.
14404 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
14405 (objfpy_lookup_objfile_by_build_id): Update.
14406 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
14407 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
14408 Update.
14409 * symtab.c (iterate_over_symtabs, matching_obj_sections)
14410 (expand_symtab_containing_pc, lookup_objfile_from_block)
14411 (lookup_static_symbol, basic_lookup_transparent_type)
14412 (find_pc_sect_compunit_symtab, find_symbol_at_address)
14413 (find_line_symtab, info_sources_command)
14414 (default_collect_symbol_completion_matches_break_on)
14415 (make_source_files_completion_list, find_main_name): Update.
14416 * symmisc.c (print_symbol_bcache_statistics)
14417 (print_objfile_statistics, maintenance_print_symbols)
14418 (maintenance_print_msymbols, maintenance_print_objfiles)
14419 (maintenance_info_symtabs, maintenance_check_symtabs)
14420 (maintenance_expand_symtabs, maintenance_info_line_tables):
14421 Update.
14422 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
14423 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
14424 (map_overlay_command, unmap_overlay_command)
14425 (simple_overlay_update, expand_symtabs_matching)
14426 (map_symbol_filenames): Update.
14427 * symfile-debug.c (set_debug_symfile): Update.
14428 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
14429 Update.
14430 * source.c (select_source_symtab, forget_cached_source_info):
14431 Update.
14432 * solib.c (solib_read_symbols): Update.
14433 * solib-spu.c (append_ocl_sos): Update.
14434 * psymtab.c (maintenance_print_psymbols)
14435 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
14436 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
14437 * printcmd.c (info_symbol_command): Update.
14438 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
14439 Update.
14440 * objfiles.h (class all_objfiles): Remove.
14441 * objfiles.c (have_partial_symbols, have_full_symbols)
14442 (have_minimal_symbols, qsort_cmp, update_section_map)
14443 (shared_objfile_contains_address_p)
14444 (default_iterate_over_objfiles_in_search_order): Update.
14445 * objc-lang.c (info_selectors_command, info_classes_command)
14446 (find_methods): Update.
14447 * minsyms.c (find_solib_trampoline_target): Update.
14448 * maint.c (maintenance_info_sections)
14449 (maintenance_translate_address, count_symtabs_and_blocks):
14450 Update.
14451 * main.c (captured_main_1): Update.
14452 * linux-thread-db.c (try_thread_db_load_from_pdir)
14453 (has_libpthread): Update.
14454 * linespec.c (iterate_over_all_matching_symtabs)
14455 (search_minsyms_for_name): Update.
14456 * jit.c (jit_find_objf_with_entry_addr): Update.
14457 * hppa-tdep.c (find_unwind_entry)
14458 (hppa_lookup_stub_minimal_symbol): Update.
14459 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
14460 Update.
14461 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
14462 (elf_gnu_ifunc_resolve_by_got): Update.
14463 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
14464 * dwarf-index-write.c (save_gdb_index_command): Update.
14465 * cp-support.c (add_symbol_overload_list_qualified): Update.
14466 * breakpoint.c (create_overlay_event_breakpoint)
14467 (create_longjmp_master_breakpoint)
14468 (create_std_terminate_master_breakpoint)
14469 (create_exception_master_breakpoint): Update.
14470 * blockframe.c (find_pc_partial_function): Update.
14471 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
14472 (ada_collect_symbol_completion_matches)
14473 (ada_add_global_exceptions): Update.
14474
14475 2019-01-17 Tom Tromey <tom@tromey.com>
14476
14477 * solib-target.c (lm_info_target_p): Remove typedef. Don't
14478 declare VEC.
14479 (solib_target_parse_libraries): Change return type.
14480 (library_list_start_segment, library_list_start_section)
14481 (library_list_end_library, library_list_start_library); Update.
14482 (solib_target_free_library_list): Remove.
14483 (solib_target_parse_libraries): Remove cleanup. Change return
14484 type.
14485 (solib_target_current_sos): Update.
14486
14487 2019-01-17 Tom Tromey <tromey@bapiya>
14488
14489 * valprint.c: Replace "the the" with "the".
14490 * symtab.c: Replace "the the" with "the".
14491 * solib.c: Replace "the the" with "the".
14492 * solib-dsbt.c: Replace "the the" with "the".
14493 * linespec.c: Replace "the the" with "the".
14494 * dwarf2loc.h: Replace "the the" with "the".
14495 * amd64-windows-tdep.c: Replace "the the" with "the".
14496 * aarch64-tdep.c: Replace "the the" with "the".
14497
14498 2019-01-16 Keith Seitz <keiths@redhat.com>
14499
14500 PR gdb/23773
14501 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
14502 <builder>: Rename to ..
14503 <m_builder>: ... this and make private.
14504 (dwarf2_cu::get_builder): New method. Change all users of
14505 `builder' to use this method.
14506 (dwarf2_start_symtab): Move to ...
14507 (dwarf2_cu::start_symtab): ... here. Update all callers
14508 (setup_type_unit_groups): Move to ...
14509 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
14510 callers.
14511 (dwarf2_cu::reset_builder): New method.
14512 (process_full_compunit, process_full_type_unit): Use
14513 dwarf2_cu::reset_builder.
14514 (follow_die_offset): Record the ancestor CU if it is different
14515 from the followed DIE's CU.
14516 (follow_die_sig_1): Likewise.
14517
14518 2019-01-15 Tom Tromey <tom@tromey.com>
14519
14520 * remote.c (class remote_state) <buf>: Now a char_vector.
14521 <buf_size>: Remove.
14522 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
14523 parameter.
14524 (remote_target::getpkt_or_notif_sane_1)
14525 (remote_target::getpkt_sane)
14526 (remote_target::getpkt_or_notif_sane): Likewise.
14527 (class remote_target) <putpkt>: New overload.
14528 (remote_target::read_frame): Change type of "buf_p". Remove
14529 sizeof_p parameter.
14530 (packet_ok): New overload.
14531 (packet_check_result): New overload.
14532 Update all uses.
14533
14534 2019-01-14 Tom Tromey <tom@tromey.com>
14535
14536 * remote-notif.c (handle_notification, remote_notif_ack)
14537 (remote_notif_parse): Make "buf" const.
14538 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
14539 const.
14540 (remote_notif_parse, remote_notif_ack, handle_notification):
14541 Likewise.
14542 * remote.c (remote_notif_stop_parse): Make "buf" const.
14543 (remote_target::remote_parse_stop_reply): Make "buf" const.
14544 (remote_notif_stop_ack): Make "buf" const.
14545
14546 2019-01-14 Tom Tromey <tom@tromey.com>
14547
14548 * remote.c (remote_console_output): Make parameter const.
14549
14550 2019-01-14 Tom Tromey <tom@tromey.com>
14551
14552 * target-debug.h (target_debug_print_signals): Constify.
14553 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
14554 * procfs.c (procfs_target::pass_signals): Update.
14555 * linux-nat.c (linux_nat_target::pass_signals): Update.
14556 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
14557 * target-delegates.c: Rebuild.
14558 * remote.c (remote_target::program_signals): Update.
14559 (remote_target::pass_signals): Update.
14560 * target.c (target_pass_signals): Constify argument.
14561 (target_program_signals): Likewise.
14562 * target.h (struct target_ops) <pass_signals, program_signals>:
14563 Constify argument.
14564 (target_pass_signals, target_program_signals): Constify argument.
14565
14566 2019-01-14 Tom Tromey <tom@tromey.com>
14567
14568 PR tui/28819:
14569 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
14570
14571 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
14572
14573 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
14574 field.
14575 * rs6000-tdep.c: Include reggroups.h.
14576 (IS_V_ALIAS_PSEUDOREG): Define.
14577 (rs6000_register_name): Return names for the "vX" aliases.
14578 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
14579 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
14580 aliases. Call default_register_reggroup_p for all other
14581 pseudo-registers.
14582 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
14583 New functions.
14584 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
14585 Handle "vX" aliases.
14586 (v_alias_pseudo_register_collect): New function.
14587 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
14588 (rs6000_gdbarch_init): Initialize "vX" aliases as
14589 pseudo-registers. Restore registration of
14590 rs6000_pseudo_register_reggroup_p with
14591 set_tdesc_pseudo_register_reggroup_p.
14592
14593 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
14594
14595 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
14596 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
14597 set_gdbarch_num_pseudo_regs.
14598
14599 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14600
14601 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
14602 Remove arg prefixname, add do_set and do_show.
14603 Add member functions set_list and show_list.
14604 * cli/cli-style.c (class cli_style_option): Update accordingly.
14605 (style_set_list): Move to file scope.
14606 (style_show_list): Likewise.
14607 (set_style): Call help_list.
14608 (show_style): Call cmd_show_list.
14609 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
14610 Update to use the new macro.
14611
14612 2019-10-12 Joel Brobecker <brobecker@adacore.com>
14613
14614 * ada-lang.c (_initialize_ada_language): Expand the help text
14615 for the "catch exception" command.
14616
14617 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14618
14619 * symtab.c (matching_obj_sections): Initialize obj,
14620 declare it closer to its usage.
14621
14622 2019-01-10 Tom Tromey <tom@tromey.com>
14623
14624 * thread-iter.h (inf_threads_iterator): Use next_iterator.
14625 (basic_inf_threads_range): Remove.
14626 (inf_threads_range, inf_non_exited_threads_range)
14627 (safe_inf_threads_range): Use next_adapter.
14628
14629 2019-01-10 Keith Seitz <keiths@redhat.com>
14630
14631 PR gdb/23712
14632 PR symtab/23010
14633 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
14634 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
14635
14636 2019-01-10 Keith Seitz <keiths@redhat.com>
14637
14638 PR gdb/23712
14639 PR symtab/23010
14640 * dictionary.c (pending_to_vector): Remove.
14641 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
14642 Remove _1 suffix, replacing functions of the same name. Update
14643 all callers.
14644 (dict_create_hashed, dict_create_hashed_expandable)
14645 (dict_create_linear, dict_create_linear_expandable, dict_free)
14646 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
14647 Make functions static.
14648
14649 2019-01-10 Keith Seitz <keiths@redhat.com>
14650
14651 PR gdb/23712
14652 PR symtab/23010
14653 * dictionary.h (struct dictionary): Replace declaration with
14654 multidictionary.
14655 (dict_create_hashed, dict_create_hashed_expandable)
14656 (dict_create_linear, dict_create_linear_expandable)
14657 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
14658 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
14659 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
14660 taking multidictionary argument.
14661 [ALL_DICT_SYMBOLS]: Update for multidictionary.
14662 * block.h (struct block) <dict>: Change to multidictionary
14663 and rename `multidict'.
14664 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
14665 symmisc.c: Update all dictionary references to multidictionary.
14666
14667 2019-01-10 Keith Seitz <keiths@redhat.com>
14668
14669 PR gdb/23712
14670 PR symtab/23010
14671 * dictionary.c: Include unordered_map.
14672 (pending_to_vector): New function.
14673 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
14674 Rewrite the non-"_1" functions to take vector instead
14675 of linked list.
14676 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
14677 "new" _1 versions of the same name.
14678 (multidictionary): Define.
14679 (std::hash<enum language): New definition.
14680 (collate_pending_symbols_by_language, mdict_create_hashed)
14681 (mdict_create_hashed_expandable, mdict_create_linear)
14682 (mdict_create_linear_expandable, mdict_free)
14683 (find_language_dictionary, create_new_language_dictionary)
14684 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
14685 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
14686 (mdict_size, mdict_empty): New functions.
14687 * dictionary.h (mdict_iterator): Define.
14688
14689 2019-01-10 Pedro Alves <palves@redhat.com>
14690
14691 * breakpoint.c (read_uploaded_action)
14692 (create_tracepoint_from_upload): Adjust to use
14693 gdb::unique_xmalloc_ptr.
14694 * ctf.c (ctf_write_uploaded_tp):
14695 (SET_ARRAY_FIELD): Use emplace_back.
14696 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
14697 * tracefile-tfile.c (tfile_write_uploaded_tp):
14698 * tracepoint.c (parse_tracepoint_definition): Adjust to use
14699 gdb::unique_xmalloc_ptr.
14700 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
14701 at_string, cond_string, cmd_strings>: Replace char pointers
14702 with gdb::unique_xmalloc_ptr.
14703
14704 2019-01-10 Pedro Alves <palves@redhat.com>
14705
14706 * solib-target.c (library_list_start_library): Don't xstrdup name.
14707
14708 2019-01-10 Pedro Alves <palves@redhat.com>
14709
14710 * mdebugread.c (parse_partial_symbols): Use
14711 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
14712
14713 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
14714
14715 * linux-fork.c (scoped_switch_fork_info)
14716 <~scoped_switch_fork_info>: Fix incorrect variable name.
14717
14718 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
14719
14720 * linux-fork.c (scoped_switch_fork_info)
14721 <scoped_switch_fork_info>: Make explicit.
14722 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
14723
14724 2019-01-10 Tom Tromey <tom@tromey.com>
14725
14726 * objfiles.h (objfile::reset_psymtabs): Update.
14727 * objfiles.c (objfile::objfile): Update.
14728 * psymtab.h (psymtab_storage::obstack): Update.
14729 (psymtab_storage::m_obstack): Use gdb::optional.
14730 (class psymtab_storage): Update comment. Remove objfile
14731 parameter.
14732 * psymtab.c (psymtab_storage::psymtab_storage): Update.
14733
14734 2019-01-10 Tom Tromey <tom@tromey.com>
14735
14736 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
14737 <free_psymtabs>: Now private.
14738 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
14739 (allocate_psymtab): Use new method.
14740
14741 2019-01-10 Tom Tromey <tom@tromey.com>
14742
14743 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
14744 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
14745 * mdebugread.c (parse_partial_symbols): Use
14746 allocate_dependencies.
14747 * dwarf2read.c (dwarf2_create_include_psymtab): Use
14748 allocate_dependencies.
14749 (process_psymtab_comp_unit_reader)
14750 (build_type_psymtab_dependencies): Likewise.
14751 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
14752
14753 2019-01-10 Tom Tromey <tom@tromey.com>
14754
14755 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
14756 PSYMBOL_SET_LANGUAGE.
14757 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
14758
14759 2019-01-10 Tom Tromey <tom@tromey.com>
14760
14761 * psymtab.h (psymtab_storage::obstack): New method.
14762 <m_obstack>: Rename from obstack; now private.
14763 * psymtab.c (psymtab_storage): Update.
14764 * dwarf2read.c (create_addrmap_from_index)
14765 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
14766 Update.
14767
14768 2019-01-10 Tom Tromey <tom@tromey.com>
14769
14770 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
14771 * objfiles.h (objfile::reset_psymtabs): New method.
14772
14773 2019-01-10 Tom Tromey <tom@tromey.com>
14774
14775 * symmisc.c (print_symbol_bcache_statistics): Update.
14776 (print_objfile_statistics): Update.
14777 * symfile.c (reread_symbols): Update.
14778 * psymtab.h (class psymtab_storage): New.
14779 * psymtab.c (psymtab_storage): New constructor.
14780 (~psymtab_storage): New destructor.
14781 (require_partial_symbols): Update.
14782 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
14783 (find_pc_sect_psymtab, find_pc_sect_psymbol)
14784 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
14785 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
14786 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
14787 (start_psymtab_common, end_psymtab_common)
14788 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
14789 (allocate_psymtab): Update.
14790 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
14791 Update.
14792 (dump_psymtab_addrmap, maintenance_print_psymbols)
14793 (maintenance_check_psymtabs): Update.
14794 (class objfile_psymtabs): Move to objfiles.h.
14795 * psympriv.h (discard_psymtab): Now inline.
14796 (psymtab_discarder::psymtab_discarder): Update.
14797 (psymtab_discarder::~psymtab_discarder): Update.
14798 (ALL_OBJFILE_PSYMTABS): Rewrite.
14799 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
14800 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
14801 Remove fields.
14802 <partial_symtabs>: New field.
14803 (class objfile_psymtabs): Move from psymtab.h. Update.
14804 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
14805 psymbol_cache.
14806 (objfile::~objfile): Don't destroy psymbol_cache.
14807 * mdebugread.c (parse_partial_symbols): Update.
14808 * dwarf2read.c (create_addrmap_from_index)
14809 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
14810 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
14811 (add_partial_subprogram, dwarf2_ranges_read): Update.
14812 * dwarf-index-write.c (write_address_map)
14813 (write_one_signatured_type, recursively_write_psymbols)
14814 (class debug_names, class debug_names, write_psymtabs_to_index):
14815 Update.
14816
14817 2019-01-10 Tom Tromey <tom@tromey.com>
14818
14819 * symtab.h (SYMBOL_SET_NAMES): Update.
14820 (symbol_set_names): Update.
14821 (MSYMBOL_SET_NAMES): Update.
14822 * symtab.c (symbol_set_names): Change argument to be an
14823 objfile_per_bfd_storage.
14824 * psymtab.c (add_psymbol_to_bcache): Update.
14825 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
14826
14827 2019-01-10 Tom Tromey <tom@tromey.com>
14828
14829 * symtab.c (create_demangled_names_hash): Change argument to be an
14830 objfile_per_bfd_storage.
14831 (symbol_set_names): Update.
14832
14833 2019-01-10 Tom Tromey <tom@tromey.com>
14834
14835 * xcoffread.c (xcoff_initial_scan): Unconditionally call
14836 init_psymbol_list.
14837 * psymtab.c (init_psymbol_list): Do nothing if already called.
14838 * psympriv.h (init_psymbol_list): Add comment.
14839 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
14840 init_psymbol_list.
14841 * dbxread.c (dbx_symfile_read): Unconditionally call
14842 init_psymbol_list.
14843
14844 2019-01-10 Tom Tromey <tom@tromey.com>
14845
14846 * xcoffread.c (scan_xcoff_symtab): Update.
14847 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
14848 "where".
14849 * mdebugread.c (parse_partial_symbols)
14850 (handle_psymbol_enumerators): Update.
14851 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
14852 * dbxread.c (read_dbx_symtab): Update.
14853 * psympriv.h (psymbol_placement): New enum.
14854 (add_psymbol_to_list): Update.
14855
14856 2019-01-10 Tom Tromey <tom@tromey.com>
14857
14858 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
14859 static_psymbols parameters.
14860 (scan_xcoff_symtab): Update.
14861 * psymtab.c (start_psymtab_common): Remove global_psymbols and
14862 static_psymbols parameters.
14863 * psympriv.h (start_psymtab_common): Update.
14864 * mdebugread.c (parse_partial_symbols): Update.
14865 * dwarf2read.c (create_partial_symtab): Update.
14866 * dbxread.c (read_dbx_symtab): Update.
14867 (start_psymtab): Remove global_psymbols and static_psymbols
14868 parameters.
14869
14870 2019-01-10 Tom Tromey <tom@tromey.com>
14871
14872 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
14873 * psymtab.c (allocate_psymtab): Add comment.
14874 * psympriv.h (allocate_psymtab): Add comment.
14875 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
14876 initializations.
14877 * dbxread.c (dbx_end_psymtab): Remove some initializations.
14878
14879 2019-01-10 Tom Tromey <tom@tromey.com>
14880
14881 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
14882 Don't declare.
14883 * mipsread.c: Include mdebugread.h.
14884 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
14885 Declare.
14886 * elfread.c: Include mdebugread.h.
14887
14888 2019-01-09 Tom Tromey <tom@tromey.com>
14889
14890 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
14891 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
14892 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
14893 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
14894 (psym_lookup_symbol, psym_find_last_source_symtab)
14895 (psym_forget_cached_source_info, psym_print_stats)
14896 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
14897 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
14898 (psym_map_matching_symbols, psym_expand_symtabs_matching)
14899 (psym_find_compunit_symtab_by_address)
14900 (maintenance_print_psymbols, maintenance_info_psymtabs)
14901 (maintenance_check_psymtabs): Use ranged for.
14902 * psymtab.h (class objfile_psymtabs): New.
14903 (require_partial_symbols): Return objfile_psymtabs.
14904 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
14905
14906 2019-01-09 Tom Tromey <tom@tromey.com>
14907
14908 * symfile.c (overlay_invalidate_all, find_pc_overlay)
14909 (find_pc_mapped_section, list_overlays_command)
14910 (map_overlay_command, unmap_overlay_command)
14911 (simple_overlay_update): Use all_objfiles.
14912 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
14913 * printcmd.c (info_symbol_command): Use all_objfiles.
14914 * objfiles.h (ALL_OBJSECTIONS): Remove.
14915 * maint.c (maintenance_translate_address): Use all_objfiles.
14916 * gcore.c (gcore_create_callback): Use all_objfiles.
14917 (objfile_find_memory_regions): Likewise.
14918
14919 2019-01-09 Tom Tromey <tom@tromey.com>
14920
14921 * symtab.c (find_line_symtab, info_sources_command)
14922 (make_source_files_completion_list): Use objfile_compunits.
14923 * source.c (select_source_symtab): Use objfile_compunits.
14924 * objfiles.h (struct objfile): Update comment.
14925 (ALL_OBJFILES): Remove.
14926 (ALL_FILETABS): Remove.
14927 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
14928 objfile_compunits.
14929
14930 2019-01-09 Tom Tromey <tom@tromey.com>
14931
14932 * symmisc.c (print_objfile_statistics, dump_objfile)
14933 (maintenance_print_symbols): Use compunit_filetabs.
14934 * source.c (forget_cached_source_info_for_objfile): Use
14935 compunit_filetabs.
14936 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
14937 (ALL_FILETABS): Use compunit_filetabs.
14938 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
14939 * coffread.c (coff_symtab_read): Use compunit_filetabs.
14940
14941 2019-01-09 Tom Tromey <tom@tromey.com>
14942
14943 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
14944 (compunit_filetabs): New.
14945 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
14946 compunit_filetabs.
14947 (info_sources_command, make_source_files_completion_list): Remove
14948 declaration.
14949 * symmisc.c (print_objfile_statistics, dump_objfile)
14950 (maintenance_print_symbols): Remove declaration.
14951 (maintenance_info_symtabs): Use compunit_filetabs.
14952 (maintenance_info_line_tables): Likewise.
14953 * source.c (select_source_symtab): Change local variable name.
14954 (forget_cached_source_info_for_objfile): Remove declaration.
14955 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
14956 * objfiles.c (objfile_relocate1): Remove declaration.
14957 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
14958 declaration.
14959 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
14960 * coffread.c (coff_symtab_read): Remove declaration.
14961 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
14962 compunit_filetabs.
14963
14964 2019-01-09 Tom Tromey <tom@tromey.com>
14965
14966 * symtab.c (lookup_objfile_from_block)
14967 (find_pc_sect_compunit_symtab, search_symbols)
14968 (default_collect_symbol_completion_matches_break_on): Use
14969 objfile_compunits.
14970 * objfiles.h (ALL_COMPUNITS): Remove.
14971 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
14972 * cp-support.c (add_symbol_overload_list_qualified): Use
14973 objfile_compunits.
14974 * ada-lang.c (ada_collect_symbol_completion_matches)
14975 (ada_add_global_exceptions): Use objfile_compunits.
14976
14977 2019-01-09 Tom Tromey <tom@tromey.com>
14978
14979 * source.c (select_source_symtab)
14980 (forget_cached_source_info_for_objfile): Remove declaration.
14981 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
14982 declaration.
14983 * maint.c (count_symtabs_and_blocks): Remove declaration.
14984 * cp-support.c (add_symbol_overload_list_qualified): Remove
14985 declaration.
14986 * coffread.c (coff_symtab_read): Remove declaration.
14987 * symtab.c (lookup_symbol_in_objfile_symtabs)
14988 (basic_lookup_transparent_type_1): Use objfile_compunits.
14989 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
14990 (info_sources_command, search_symbols)
14991 (default_collect_symbol_completion_matches_break_on)
14992 (make_source_files_completion_list): Remove declaration.
14993 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
14994 (ada_collect_symbol_completion_matches)
14995 (ada_add_global_exceptions): Remove declaration.
14996 * linespec.c (iterate_over_all_matching_symtabs): Use
14997 objfile_compunits.
14998 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
14999 (class objfile_compunits): New.
15000 (ALL_COMPUNITS): Use objfile_compunits.
15001 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
15002 (maintenance_check_symtabs, maintenance_info_line_tables): Use
15003 objfile_compunits.
15004 * objfiles.c (objfile_relocate1): Use objfile_compunits.
15005
15006 2019-01-09 Tom Tromey <tom@tromey.com>
15007
15008 * symtab.c (search_symbols)
15009 (default_collect_symbol_completion_matches_break_on): Use
15010 objfile_msymbols.
15011 * ada-lang.c (ada_lookup_simple_minsym)
15012 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
15013 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
15014 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
15015 objfile_msymbols.
15016 * coffread.c (coff_symfile_read): Use objfile_msymbols.
15017 * symmisc.c (dump_msymbols): Use objfile_msymbols.
15018 * objc-lang.c (find_methods): Use objfile_msymbols.
15019 (info_selectors_command, info_classes_command): Likewise.
15020 * stabsread.c (scan_file_globals): Use objfile_msymbols.
15021 * objfiles.h (class objfile_msymbols): New.
15022 (ALL_OBJFILE_MSYMBOLS): Remove.
15023 (ALL_MSYMBOLS): Remove.
15024
15025 2019-01-09 Tom Tromey <tom@tromey.com>
15026
15027 * common/next-iterator.h (next_adapter): Add Iterator template
15028 parameter.
15029 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
15030 (class all_objfiles_safe): New.
15031 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
15032 * objfiles.c (put_objfile_before): Update comment.
15033 (add_separate_debug_objfile): Likewise.
15034 (free_all_objfiles): Use all_objfiles_safe.
15035 (objfile_purge_solibs): Likewise.
15036
15037 2019-01-09 Tom Tromey <tom@tromey.com>
15038
15039 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15040 (expand_symtab_containing_pc, lookup_static_symbol)
15041 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
15042 (find_symbol_at_address, find_line_symtab, find_main_name): Use
15043 all_objfiles.
15044 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
15045 * breakpoint.c (create_overlay_event_breakpoint)
15046 (create_longjmp_master_breakpoint)
15047 (create_std_terminate_master_breakpoint)
15048 (create_exception_master_breakpoint): Use all_objfiles.
15049 * linux-thread-db.c (try_thread_db_load_from_pdir)
15050 (has_libpthread): Use all_objfiles.
15051 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
15052 * linespec.c (iterate_over_all_matching_symtabs)
15053 (search_minsyms_for_name): Use all_objfiles.
15054 * maint.c (maintenance_info_sections): Use all_objfiles.
15055 * main.c (captured_main_1): Use all_objfiles.
15056 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
15057 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
15058 * guile/scm-pretty-print.c
15059 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
15060 * solib-spu.c (append_ocl_sos): Use all_objfiles.
15061 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
15062 (maintenance_print_msymbols): Use all_objfiles.
15063 * source.c (select_source_symtab): Use all_objfiles.
15064 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
15065 * symfile.c (remove_symbol_file_command)
15066 (expand_symtabs_matching, map_symbol_filenames): Use
15067 all_objfiles.
15068 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
15069 all_objfiles.
15070 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
15071 * objc-lang.c (find_methods): Use all_objfiles.
15072 * objfiles.c (have_partial_symbols, have_full_symbols)
15073 (have_minimal_symbols, qsort_cmp)
15074 (default_iterate_over_objfiles_in_search_order): Use
15075 all_objfiles.
15076 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
15077 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
15078 (maintenance_check_psymtabs): Use all_objfiles.
15079 (ALL_PSYMTABS): Remove.
15080 * compile/compile-object-run.c (do_module_cleanup): Use
15081 all_objfiles.
15082 * blockframe.c (find_pc_partial_function): Use all_objfiles.
15083 * cp-support.c (add_symbol_overload_list_qualified): Use
15084 all_objfiles.
15085 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15086 Use all_objfiles.
15087 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
15088 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
15089 all_objfiles.
15090 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15091 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
15092 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15093 Uses all_objfiles.
15094 * solib.c (solib_read_symbols): Use all_objfiles
15095
15096 2019-01-09 Tom Tromey <tom@tromey.com>
15097
15098 * probe.c (parse_probes_in_pspace): Use all_objfiles.
15099 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
15100 all_objfiles.
15101 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
15102 * symmisc.c (print_symbol_bcache_statistics)
15103 (print_objfile_statistics, maintenance_print_objfiles)
15104 (maintenance_info_symtabs, maintenance_check_symtabs)
15105 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
15106 all_objfiles.
15107 * source.c (forget_cached_source_info): Use all_objfiles.
15108 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
15109 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
15110 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
15111 * objfiles.c (update_section_map): Use all_objfiles.
15112 (shared_objfile_contains_address_p): Likewise.
15113 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
15114 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
15115
15116 2019-01-09 Tom Tromey <tom@tromey.com>
15117
15118 * common/next-iterator.h: New file.
15119 * objfiles.h (class all_objfiles): New.
15120 (struct objfile_iterator): New.
15121
15122 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15123
15124 * NEWS: Move the description of the changed "frame", "select-frame",
15125 and "info frame" commands to the Changed commands section.
15126
15127 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
15128
15129 * gdbtypes.c (check_stub_method_group): Remove handling of old
15130 mangling schemes.
15131 * linespec.c (find_methods): Likewise.
15132 * stabsread.c (read_member_functions): Likewise.
15133 * valops.c (search_struct_method): Likewise.
15134 (value_struct_elt_for_reference): Likewise.
15135 * NEWS: Mention this change.
15136
15137 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15138
15139 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
15140 print_source_lines.
15141 * source.c (print_source_lines_base): Update line number check.
15142 (print_source_lines): New function.
15143 (source_lines_range::source_lines_range): New function.
15144 * source.h (class source_lines_range): New class.
15145 (print_source_lines): New declaration.
15146
15147 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15148
15149 * linespec.c (linespec_state_destructor): Free self->canonical_names.
15150
15151 2019-01-08 Tom Tromey <tom@tromey.com>
15152 Simon Marchi <simon.marchi@ericsson.com>
15153
15154 PR gdb/24060
15155 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
15156 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
15157 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15158 * f-exp.y (DOLLAR_VARIABLE): Likewise.
15159 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
15160 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15161
15162 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15163
15164 * source.c (select_source_symtab): Move header comment to
15165 declaration in source.h.
15166 (forget_cached_source_info_for_objfile): Likewise.
15167 (forget_cached_source_info): Likewise.
15168 (identify_source_line): Likewise.
15169 * source.h (identify_source_line): Move declaration from symtab.h
15170 and add comment from source.c
15171 (print_source_lines): Likewise.
15172 (forget_cached_source_info_for_objfile): Likewise.
15173 (forget_cached_source_info): Likewise.
15174 (select_source_symtab): Likewise.
15175 (enum print_source_lines_flag): Move definition from symtab.h.
15176 * symtab.h (identify_source_line): Move declaration to source.h.
15177 (print_source_lines): Likewise.
15178 (forget_cached_source_info_for_objfile): Likewise.
15179 (forget_cached_source_info): Likewise.
15180 (select_source_symtab): Likewise.
15181 (enum print_source_lines_flag): Move definition to source.h.
15182 * tui/tui-hooks.c: Add 'source.h' include.
15183
15184 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15185
15186 * source.c (print_source_lines_base): Handle requests to print
15187 reverse line number sequences, and guard against empty lines
15188 string.
15189
15190 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15191
15192 * source.c (print_source_lines_base): Fix skip of '\r' if next
15193 character is '\n'.
15194
15195 2019-01-06 Tom Tromey <tom@tromey.com>
15196
15197 * c-exp.y (struct c_parse_state) <macro_original_text,
15198 expansion_obstack>: New member.
15199 (macro_original_text, expansion_obstack): Remove globals.
15200 (scan_macro_expansion, scanning_macro_expansion)
15201 (finished_macro_expansion): Update.
15202 (scan_macro_cleanup): Remove.
15203 (yylex, c_parse): Update.
15204
15205 2019-01-06 Tom Tromey <tom@tromey.com>
15206
15207 * c-exp.y (struct c_parse_state) <strings>: New member.
15208 (operator_stoken): Update.
15209
15210 2019-01-06 Tom Tromey <tom@tromey.com>
15211
15212 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
15213 (union type_stack_elt) <typelist_val>: Now a pointer to
15214 std::vector.
15215 (type_stack_cleanup): Don't declare.
15216 (push_typelist): Update.
15217 * parse.c (pop_typelist): Return a std::vector.
15218 (push_typelist): Take a std::vector.
15219 (follow_types): Update. Do not free args.
15220 (type_stack_cleanup): Remove.
15221 * c-exp.y (struct c_parse_state): New.
15222 (cpstate): New global.
15223 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
15224 (nonempty_typelist): Update.
15225 (func_mod): Create a new vector.
15226 (c_parse): Create a c_parse_state.
15227 (check_parameter_typelist): Do not delete params.
15228 (function_method): Update. Do not delete type_list.
15229
15230 2019-01-06 Tom Tromey <tom@tromey.com>
15231
15232 PR gdb/28155:
15233 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
15234 check_typedef.
15235 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
15236 (print_return_value): Likewise.
15237
15238 2019-01-05 Tom Tromey <tom@tromey.com>
15239
15240 * contrib/cleanup_check.py: Remove.
15241 * contrib/gcc-with-excheck: Remove.
15242 * contrib/exsummary.py: Remove.
15243 * contrib/excheck.py: Remove.
15244
15245 2019-01-05 Joel Brobecker <brobecker@adacore.com>
15246
15247 * thread.c (delete_thread_1): Add gdb_assert that THR is not
15248 NULL. Initialize tpprev to NULL instead of assigning it
15249 to NULL on the next statement.
15250 * windows-nat.c (windows_delete_thread): Remove check for
15251 main_thread_id before printing thread exit notifications.
15252 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
15253 Remove thread ID check against main_thread_id.
15254 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
15255 windows_delete_thread.
15256 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
15257
15258 2019-01-04 Tom Tromey <tom@tromey.com>
15259
15260 * compile/compile.c (_initialize_compile): Use upper case for
15261 metasyntactic variables.
15262 * symmisc.c (_initialize_symmisc): Use upper case for
15263 metasyntactic variables.
15264 * psymtab.c (_initialize_psymtab): Use upper case for
15265 metasyntactic variables.
15266 * demangle.c (demangle_command): Use upper case for metasyntactic
15267 variables.
15268 (_initialize_demangler): Likewise.
15269 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
15270 variables.
15271
15272 2019-01-03 Tom Tromey <tom@tromey.com>
15273
15274 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
15275
15276 2019-01-03 Tom Tromey <tom@tromey.com>
15277
15278 * python/py-symtab.c (salpy_str): Update.
15279 (struct salpy_sal_object) <symtab>: Now a PyObject.
15280 (salpy_dealloc): Update.
15281 (del_objfile_sal): Use gdbpy_ref.
15282
15283 2019-01-03 Tom Tromey <tom@tromey.com>
15284
15285 * python/py-type.c (convert_field): Use new_reference. Return
15286 gdbpy_ref.
15287 (make_fielditem): Return gdbpy_ref.
15288 (typy_fields): Update.
15289 (typy_getitem): Update.
15290 (field_name): Return gdbpy_ref. Use new_reference.
15291 (typy_iterator_iternext): Update.
15292
15293 2019-01-03 Tom Tromey <tom@tromey.com>
15294
15295 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
15296
15297 2019-01-03 Tom Tromey <tom@tromey.com>
15298
15299 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
15300 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
15301 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
15302 (pspy_set_frame_filters, pspy_set_frame_unwinders)
15303 (pspy_set_type_printers): Likewise.
15304 * python/py-function.c (fnpy_init): Use gdbpy_ref.
15305 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
15306 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
15307 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
15308 (objfpy_set_type_printers): Likewise.
15309
15310 2019-01-03 Tom Tromey <tom@tromey.com>
15311
15312 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
15313 (gdbpy_print_stack): Use gdbpy_err_fetch.
15314 * python/python-internal.h (class gdbpy_err_fetch): New class.
15315 (class gdbpy_enter) <m_error_type, m_error_value,
15316 m_error_traceback>: Remove.
15317 <m_error>: New member.
15318 (gdbpy_exception_to_string): Don't declare.
15319 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
15320 * python/py-value.c (convert_value_from_python): Use
15321 gdbpy_err_fetch.
15322 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
15323 gdbpy_exception_to_string.
15324 (gdbpy_handle_exception): Use gdbpy_err_fetch.
15325 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
15326 gdbpy_err_fetch.
15327
15328 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15329
15330 * linux-nat.c (delete_lwp_cleanup): Delete.
15331 (struct lwp_deleter): New struct.
15332 (lwp_info_up): New typedef.
15333 (linux_nat_target::follow_fork): Delete cleanup, and make use of
15334 lwp_info_up.
15335
15336 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15337
15338 * linux-fork.c (class scoped_switch_fork_info): New class.
15339 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
15340
15341 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15342
15343 * valops.c (find_overload_match): Remove use of null_cleanup, and
15344 calls to do_cleanups.
15345
15346 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15347
15348 * compile/compile-cplus-types.c
15349 (compile_cplus_instance::decl_name): Handle changes to
15350 cp_func_name.
15351 * cp-support.c (cp_func_name): Update header comment, update
15352 return type.
15353 * cp-support.h (cp_func_name): Update return type in declaration.
15354 * valops.c (find_overload_match): Move temp_func local to top
15355 level of function and change its type. Use temp_func to hold and
15356 delete temporary string obtained from cp_func_name.
15357
15358 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15359
15360 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
15361 gdb::char_vector, remove cleanup, and update uses of `msg`.
15362
15363 2019-01-03 Jim Wilson <jimw@sifive.com>
15364
15365 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
15366
15367 2019-01-02 Tom Tromey <tom@tromey.com>
15368
15369 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
15370 (tdesc_parse_xml): Remove cleanups.
15371 * target-descriptions.h (make_cleanup_free_target_description):
15372 Don't declare.
15373 (target_desc_deleter): New struct.
15374 (target_desc_up): New typedef.
15375 * target-descriptions.c (target_desc_deleter::operator()): Rename
15376 from free_target_description.
15377 (make_cleanup_free_target_description): Remove.
15378
15379 2019-01-02 Tom Tromey <tom@tromey.com>
15380
15381 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
15382 constructor, destructor.
15383 (linespec_parser): Remove typedef.
15384 (~linespec_parser): Rename from linespec_parser_delete.
15385 (linespec_lex_to_end, linespec_complete_label)
15386 (linespec_complete): Update.
15387 (decode_line_full): Remove cleanups.
15388 (decode_line_1): Update.
15389
15390 2019-01-02 Tom Tromey <tom@tromey.com>
15391
15392 * python/python-internal.h (inferior_to_inferior_object): Change
15393 return type.
15394 * python/py-exitedevent.c (create_exited_event_object): Update.
15395 * python/py-inferior.c (inferior_to_inferior_object): Return
15396 gdbpy_ref.
15397 (python_new_inferior, python_inferior_deleted)
15398 (thread_to_thread_object, delete_thread_object)
15399 (build_inferior_list, gdbpy_selected_inferior): Update.
15400 * python/py-infthread.c (create_thread_object): Update. Also fail
15401 if inferior_to_inferior_object fails.
15402
15403 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
15404
15405 * inferior.h (class inferior) <displaced_step_state>: New field.
15406 * infrun.h (struct displaced_step_state): Move here from
15407 infrun.c. Initialize fields, add constructor.
15408 <inf>: Remove field.
15409 <reset>: New method.
15410 * infrun.c (struct displaced_step_inferior_state): Move to
15411 infrun.h.
15412 (displaced_step_inferior_states): Remove.
15413 (get_displaced_stepping_state): Adust.
15414 (displaced_step_in_progress_any_inferior): Adjust.
15415 (displaced_step_in_progress_thread): Adjust.
15416 (displaced_step_in_progress): Adjust.
15417 (add_displaced_stepping_state): Remove.
15418 (get_displaced_step_closure_by_addr): Adjust.
15419 (remove_displaced_stepping_state): Remove.
15420 (infrun_inferior_exit): Call displaced_step_state.reset.
15421 (use_displaced_stepping): Don't check for NULL.
15422 (displaced_step_prepare_throw): Call
15423 get_displaced_stepping_state.
15424 (displaced_step_fixup): Don't check for NULL.
15425 (prepare_for_detach): Don't check for NULL.
15426
15427 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15428
15429 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
15430 in case of call that did not complete.
15431
15432 2019-01-02 Andrey Utkin <autkin@undo.io>
15433
15434 * symfile.c (find_separate_debug_file): Fix search of debug files for
15435 remote debuggee.
15436
15437 2019-01-02 Tom Tromey <tom@tromey.com>
15438
15439 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
15440 indentation.
15441 * python/py-frame.c (frapy_older): Remove cast.
15442 (frapy_newer): Likewise.
15443 * python/py-breakpoint.c (local_setattro): Remove cast.
15444 * python/py-arch.c (archpy_name): Remove local variable.
15445 * python/py-type.c (gdbpy_lookup_type): Remove cast.
15446
15447 2019-01-02 Joel Brobecker <brobecker@adacore.com>
15448
15449 * unittests/basic_string_view/element_access/char/empty.cc:
15450 Fix year range in copyright header.
15451
15452 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
15453
15454 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
15455 Delete.
15456 <operator==>: Update with for removed field.
15457 <hash>: Likewise.
15458 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
15459 <isa_features>: ...this.
15460 <abi_features>: New field.
15461 (riscv_isa_flen): Update comment.
15462 (riscv_abi_xlen): New declaration.
15463 (riscv_abi_flen): New declaration.
15464 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
15465 isa_features.
15466 (riscv_abi_xlen): New function.
15467 (riscv_isa_flen): Update to get answer from isa_features.
15468 (riscv_abi_flen): New function.
15469 (riscv_has_fp_abi): Update to get answer from abi_features.
15470 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
15471 xlen and flen.
15472 (riscv_call_info) <xlen, flen>: Update comment.
15473 (riscv_call_arg_struct): Remove invalid assertions
15474 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
15475 is removed.
15476 (riscv_gdbarch_init): Gather isa features and abi features
15477 separately, ensure both match on the gdbarch when reusing an old
15478 gdbarch. Relax an error check to allow 32-bit abi float to run on
15479 a target with 64-bit float hardware.
15480
15481 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15482
15483 * source.c (search_command_helper): Stop reverse search
15484 when line 1 has been searched.
15485
15486 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15487
15488 * record-full.c (record_full_base_target::close): Rewrite
15489 record_full_core_buf_list free logic.
15490
15491 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15492
15493 * break-catch-syscall.c (print_one_catch_syscall): xfree
15494 the last text.
15495
15496 2019-01-01 Joel Brobecker <brobecker@adacore.com>
15497
15498 * top.c (print_gdb_version): Update Copyright year in version
15499 message.
15500
15501 2019-01-01 Joel Brobecker <brobecker@adacore.com>
15502
15503 Update copyright year range in all GDB files.
15504
15505 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
15506
15507 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
15508
15509 For older changes see ChangeLog-2018.
15510 \f
15511 Local Variables:
15512 mode: change-log
15513 left-margin: 8
15514 fill-column: 74
15515 version-control: never
15516 coding: utf-8
15517 End:
15518
This page took 0.366243 seconds and 5 git commands to generate.